@a4ui/core 0.35.0 → 0.35.1
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/elements.css +3 -0
- package/dist/elements.iife.js +2 -2
- package/dist/elements.js +115 -114
- package/dist/full.css +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3352 -3347
- package/dist/ui/RingProgress.d.ts +2 -0
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/ui/AudioWaveform.tsx +1 -3
- package/src/ui/EventScheduler.tsx +7 -1
- package/src/ui/GanttChart.tsx +9 -1
- package/src/ui/OnboardingChecklist.tsx +1 -0
- package/src/ui/PivotTable.tsx +0 -0
- package/src/ui/QueryBuilder.tsx +4 -3
- package/src/ui/RingProgress.tsx +3 -0
- package/src/ui/SpreadsheetGrid.tsx +16 -13
package/dist/elements.js
CHANGED
|
@@ -43,7 +43,7 @@ function Je(e, t) {
|
|
|
43
43
|
Y = n, F = r;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Q(e, t) {
|
|
47
47
|
t = t ? Object.assign({}, Yt, t) : Yt;
|
|
48
48
|
const n = {
|
|
49
49
|
value: e,
|
|
@@ -331,7 +331,7 @@ function Eo(e, t, n = {}) {
|
|
|
331
331
|
});
|
|
332
332
|
function f(h) {
|
|
333
333
|
if (i[d] = h, a) {
|
|
334
|
-
const [y, m] =
|
|
334
|
+
const [y, m] = Q(d);
|
|
335
335
|
return a[d] = m, t(l[d], y);
|
|
336
336
|
}
|
|
337
337
|
return t(l[d]);
|
|
@@ -353,7 +353,7 @@ function Io(e, t, n = {}) {
|
|
|
353
353
|
});
|
|
354
354
|
function d(f) {
|
|
355
355
|
i[l] = f;
|
|
356
|
-
const [h, y] =
|
|
356
|
+
const [h, y] = Q(c[l]);
|
|
357
357
|
return o[l] = y, t(h, l);
|
|
358
358
|
}
|
|
359
359
|
};
|
|
@@ -508,7 +508,7 @@ function Xn(e) {
|
|
|
508
508
|
};
|
|
509
509
|
return oe(Io(() => e.each, e.children, t || void 0));
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function J(e) {
|
|
512
512
|
const t = e.keyed, n = oe(() => e.when, void 0, void 0), r = t ? n : oe(n, void 0, {
|
|
513
513
|
equals: (s, i) => !s == !i
|
|
514
514
|
});
|
|
@@ -819,7 +819,7 @@ function Rt(e, t = window.document) {
|
|
|
819
819
|
n.has(i) || (n.add(i), t.addEventListener(i, ea));
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function E(e, t, n) {
|
|
823
823
|
Ke(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
|
|
824
824
|
}
|
|
825
825
|
function Uo(e, t, n, r) {
|
|
@@ -853,7 +853,7 @@ function Ho(e, t, n = {}) {
|
|
|
853
853
|
return n;
|
|
854
854
|
}
|
|
855
855
|
function qo(e, t, n) {
|
|
856
|
-
if (!t) return n ?
|
|
856
|
+
if (!t) return n ? E(e, "style") : t;
|
|
857
857
|
const r = e.style;
|
|
858
858
|
if (typeof t == "string") return r.cssText = t;
|
|
859
859
|
typeof n == "string" && (r.cssText = n = void 0), n || (n = {}), t || (t = {});
|
|
@@ -927,7 +927,7 @@ function Sr(e, t, n, r, s, i, o) {
|
|
|
927
927
|
}
|
|
928
928
|
(h || n) && (Xo(e, f, n, h), h && Rt([f]));
|
|
929
929
|
} else if (t.slice(0, 5) === "attr:")
|
|
930
|
-
|
|
930
|
+
E(e, t.slice(5), n);
|
|
931
931
|
else if (t.slice(0, 5) === "bool:")
|
|
932
932
|
Yo(e, t.slice(5), n);
|
|
933
933
|
else if ((d = t.slice(0, 5) === "prop:") || (c = Fo.has(t)) || !s && ((u = Bo(t, e.tagName)) || (l = Do.has(t))) || (a = e.nodeName.includes("-") || "is" in o)) {
|
|
@@ -937,7 +937,7 @@ function Sr(e, t, n, r, s, i, o) {
|
|
|
937
937
|
t === "class" || t === "className" ? xe(e, n) : a && !l && !c ? e[Qo(t)] = n : e[u || t] = n;
|
|
938
938
|
} else {
|
|
939
939
|
const f = s && t.indexOf(":") > -1 && Go[t.split(":")[0]];
|
|
940
|
-
f ? Uo(e, f, t, n) :
|
|
940
|
+
f ? Uo(e, f, t, n) : E(e, No[t] || t, n);
|
|
941
941
|
}
|
|
942
942
|
return n;
|
|
943
943
|
}
|
|
@@ -1237,7 +1237,7 @@ function ha(e, t = {}, n = {}) {
|
|
|
1237
1237
|
function ma(e) {
|
|
1238
1238
|
const t = Object.keys(e), n = {};
|
|
1239
1239
|
for (let r = 0; r < t.length; r++) {
|
|
1240
|
-
const [s, i] =
|
|
1240
|
+
const [s, i] = Q(e[t[r]]);
|
|
1241
1241
|
Object.defineProperty(n, t[r], {
|
|
1242
1242
|
get: s,
|
|
1243
1243
|
set(o) {
|
|
@@ -1521,8 +1521,8 @@ const ya = (e, t) => {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
let v = !!b, x;
|
|
1523
1523
|
if (v) {
|
|
1524
|
-
const
|
|
1525
|
-
x = r(
|
|
1524
|
+
const I = m.substring(0, b);
|
|
1525
|
+
x = r(I);
|
|
1526
1526
|
const g = x && o[x] ? r(m) : void 0;
|
|
1527
1527
|
g && g !== x && (x = g, v = !1);
|
|
1528
1528
|
} else
|
|
@@ -1543,8 +1543,8 @@ const ya = (e, t) => {
|
|
|
1543
1543
|
continue;
|
|
1544
1544
|
a.push(A);
|
|
1545
1545
|
const R = s(x, v);
|
|
1546
|
-
for (let
|
|
1547
|
-
const g = R[
|
|
1546
|
+
for (let I = 0; I < R.length; ++I) {
|
|
1547
|
+
const g = R[I];
|
|
1548
1548
|
a.push(S + g);
|
|
1549
1549
|
}
|
|
1550
1550
|
c = d + (c.length > 0 ? " " + c : c);
|
|
@@ -1575,7 +1575,7 @@ const ya = (e, t) => {
|
|
|
1575
1575
|
return s(l, u), u;
|
|
1576
1576
|
};
|
|
1577
1577
|
return i = o, (...l) => i(Fa(...l));
|
|
1578
|
-
}, za = [],
|
|
1578
|
+
}, za = [], Z = (e) => {
|
|
1579
1579
|
const t = (n) => n[e] || za;
|
|
1580
1580
|
return t.isThemeGetter = !0, t;
|
|
1581
1581
|
}, Ps = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Es = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ba = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ja = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ka = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ga = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Wa = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ua = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Me = (e) => Ba.test(e), O = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => !!e && Number.isInteger(Number(e)), fn = (e) => e.endsWith("%") && O(e.slice(0, -1)), Se = (e) => ja.test(e), Is = () => !0, Ya = (e) => (
|
|
@@ -1590,7 +1590,7 @@ const ya = (e, t) => {
|
|
|
1590
1590
|
const r = Es.exec(e);
|
|
1591
1591
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1592
1592
|
}, Rs = (e) => e === "position" || e === "percentage", Os = (e) => e === "image" || e === "url", _s = (e) => e === "length" || e === "size" || e === "bg-size", Ls = (e) => e === "length", ol = (e) => e === "number", Ds = (e) => e === "family-name", Fs = (e) => e === "number" || e === "weight", Ns = (e) => e === "shadow", al = () => {
|
|
1593
|
-
const e =
|
|
1593
|
+
const e = Z("color"), t = Z("font"), n = Z("text"), r = Z("font-weight"), s = Z("tracking"), i = Z("leading"), o = Z("breakpoint"), a = Z("container"), l = Z("spacing"), c = Z("radius"), u = Z("shadow"), d = Z("inset-shadow"), f = Z("text-shadow"), h = Z("drop-shadow"), y = Z("blur"), m = Z("perspective"), b = Z("aspect"), v = Z("ease"), x = Z("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
1594
1594
|
"center",
|
|
1595
1595
|
"top",
|
|
1596
1596
|
"bottom",
|
|
@@ -1608,9 +1608,9 @@ const ya = (e, t) => {
|
|
|
1608
1608
|
"bottom-left",
|
|
1609
1609
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1610
1610
|
"left-bottom"
|
|
1611
|
-
], A = () => [...S(), k, w], R = () => ["auto", "hidden", "clip", "visible", "scroll"],
|
|
1611
|
+
], A = () => [...S(), k, w], R = () => ["auto", "hidden", "clip", "visible", "scroll"], I = () => ["auto", "contain", "none"], g = () => [k, w, l], V = () => [Me, "full", "auto", ...g()], M = () => [be, "none", "subgrid", k, w], _ = () => ["auto", {
|
|
1612
1612
|
span: ["full", be, k, w]
|
|
1613
|
-
}, be, k, w], N = () => [be, "auto", k, w],
|
|
1613
|
+
}, be, k, w], N = () => [be, "auto", k, w], te = () => ["auto", "min", "max", "fr", k, w], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], ne = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...g()], ee = () => [Me, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], le = () => [Me, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...g()], We = () => [Me, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...g()], $ = () => [e, k, w], at = () => [...S(), Er, Pr, {
|
|
1614
1614
|
position: [k, w]
|
|
1615
1615
|
}], lt = () => ["no-repeat", {
|
|
1616
1616
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -1795,21 +1795,21 @@ const ya = (e, t) => {
|
|
|
1795
1795
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1796
1796
|
*/
|
|
1797
1797
|
overscroll: [{
|
|
1798
|
-
overscroll:
|
|
1798
|
+
overscroll: I()
|
|
1799
1799
|
}],
|
|
1800
1800
|
/**
|
|
1801
1801
|
* Overscroll Behavior X
|
|
1802
1802
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1803
1803
|
*/
|
|
1804
1804
|
"overscroll-x": [{
|
|
1805
|
-
"overscroll-x":
|
|
1805
|
+
"overscroll-x": I()
|
|
1806
1806
|
}],
|
|
1807
1807
|
/**
|
|
1808
1808
|
* Overscroll Behavior Y
|
|
1809
1809
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1810
1810
|
*/
|
|
1811
1811
|
"overscroll-y": [{
|
|
1812
|
-
"overscroll-y":
|
|
1812
|
+
"overscroll-y": I()
|
|
1813
1813
|
}],
|
|
1814
1814
|
/**
|
|
1815
1815
|
* Position
|
|
@@ -2037,14 +2037,14 @@ const ya = (e, t) => {
|
|
|
2037
2037
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
2038
2038
|
*/
|
|
2039
2039
|
"auto-cols": [{
|
|
2040
|
-
"auto-cols":
|
|
2040
|
+
"auto-cols": te()
|
|
2041
2041
|
}],
|
|
2042
2042
|
/**
|
|
2043
2043
|
* Grid Auto Rows
|
|
2044
2044
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
2045
2045
|
*/
|
|
2046
2046
|
"auto-rows": [{
|
|
2047
|
-
"auto-rows":
|
|
2047
|
+
"auto-rows": te()
|
|
2048
2048
|
}],
|
|
2049
2049
|
/**
|
|
2050
2050
|
* Gap
|
|
@@ -2072,7 +2072,7 @@ const ya = (e, t) => {
|
|
|
2072
2072
|
* @see https://tailwindcss.com/docs/justify-content
|
|
2073
2073
|
*/
|
|
2074
2074
|
"justify-content": [{
|
|
2075
|
-
justify: [...
|
|
2075
|
+
justify: [...q(), "normal"]
|
|
2076
2076
|
}],
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Justify Items
|
|
@@ -2093,7 +2093,7 @@ const ya = (e, t) => {
|
|
|
2093
2093
|
* @see https://tailwindcss.com/docs/align-content
|
|
2094
2094
|
*/
|
|
2095
2095
|
"align-content": [{
|
|
2096
|
-
content: ["normal", ...
|
|
2096
|
+
content: ["normal", ...q()]
|
|
2097
2097
|
}],
|
|
2098
2098
|
/**
|
|
2099
2099
|
* Align Items
|
|
@@ -2118,7 +2118,7 @@ const ya = (e, t) => {
|
|
|
2118
2118
|
* @see https://tailwindcss.com/docs/place-content
|
|
2119
2119
|
*/
|
|
2120
2120
|
"place-content": [{
|
|
2121
|
-
"place-content":
|
|
2121
|
+
"place-content": q()
|
|
2122
2122
|
}],
|
|
2123
2123
|
/**
|
|
2124
2124
|
* Place Items
|
|
@@ -2321,7 +2321,7 @@ const ya = (e, t) => {
|
|
|
2321
2321
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
2322
2322
|
*/
|
|
2323
2323
|
size: [{
|
|
2324
|
-
size:
|
|
2324
|
+
size: ee()
|
|
2325
2325
|
}],
|
|
2326
2326
|
/**
|
|
2327
2327
|
* Inline Size
|
|
@@ -2370,7 +2370,7 @@ const ya = (e, t) => {
|
|
|
2370
2370
|
* @see https://tailwindcss.com/docs/width
|
|
2371
2371
|
*/
|
|
2372
2372
|
w: [{
|
|
2373
|
-
w: [a, "screen", ...
|
|
2373
|
+
w: [a, "screen", ...ee()]
|
|
2374
2374
|
}],
|
|
2375
2375
|
/**
|
|
2376
2376
|
* Min-Width
|
|
@@ -2382,7 +2382,7 @@ const ya = (e, t) => {
|
|
|
2382
2382
|
"screen",
|
|
2383
2383
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2384
2384
|
"none",
|
|
2385
|
-
...
|
|
2385
|
+
...ee()
|
|
2386
2386
|
]
|
|
2387
2387
|
}],
|
|
2388
2388
|
/**
|
|
@@ -2400,7 +2400,7 @@ const ya = (e, t) => {
|
|
|
2400
2400
|
{
|
|
2401
2401
|
screen: [o]
|
|
2402
2402
|
},
|
|
2403
|
-
...
|
|
2403
|
+
...ee()
|
|
2404
2404
|
]
|
|
2405
2405
|
}],
|
|
2406
2406
|
/**
|
|
@@ -2408,21 +2408,21 @@ const ya = (e, t) => {
|
|
|
2408
2408
|
* @see https://tailwindcss.com/docs/height
|
|
2409
2409
|
*/
|
|
2410
2410
|
h: [{
|
|
2411
|
-
h: ["screen", "lh", ...
|
|
2411
|
+
h: ["screen", "lh", ...ee()]
|
|
2412
2412
|
}],
|
|
2413
2413
|
/**
|
|
2414
2414
|
* Min-Height
|
|
2415
2415
|
* @see https://tailwindcss.com/docs/min-height
|
|
2416
2416
|
*/
|
|
2417
2417
|
"min-h": [{
|
|
2418
|
-
"min-h": ["screen", "lh", "none", ...
|
|
2418
|
+
"min-h": ["screen", "lh", "none", ...ee()]
|
|
2419
2419
|
}],
|
|
2420
2420
|
/**
|
|
2421
2421
|
* Max-Height
|
|
2422
2422
|
* @see https://tailwindcss.com/docs/max-height
|
|
2423
2423
|
*/
|
|
2424
2424
|
"max-h": [{
|
|
2425
|
-
"max-h": ["screen", "lh", ...
|
|
2425
|
+
"max-h": ["screen", "lh", ...ee()]
|
|
2426
2426
|
}],
|
|
2427
2427
|
// ------------------
|
|
2428
2428
|
// --- Typography ---
|
|
@@ -4311,7 +4311,7 @@ function hl(e) {
|
|
|
4311
4311
|
return P(l, () => {
|
|
4312
4312
|
var h;
|
|
4313
4313
|
return (h = i()) == null ? void 0 : h.label;
|
|
4314
|
-
}), P(a, p(
|
|
4314
|
+
}), P(a, p(J, {
|
|
4315
4315
|
get when() {
|
|
4316
4316
|
return e.showValue ?? !0;
|
|
4317
4317
|
},
|
|
@@ -4330,7 +4330,7 @@ function hl(e) {
|
|
|
4330
4330
|
})), z((h) => {
|
|
4331
4331
|
var A;
|
|
4332
4332
|
var y = G("flex flex-col gap-2", e.class), m = t(), b = n(), v = e.value, x = ((A = i()) == null ? void 0 : A.label) ?? "Condition", C = `${s()}%`, S = `${s()}%`;
|
|
4333
|
-
return y !== h.e && xe(o, h.e = y), m !== h.t &&
|
|
4333
|
+
return y !== h.e && xe(o, h.e = y), m !== h.t && E(c, "aria-valuemin", h.t = m), b !== h.a && E(c, "aria-valuemax", h.a = b), v !== h.o && E(c, "aria-valuenow", h.o = v), x !== h.i && E(c, "aria-label", h.i = x), C !== h.n && $e(u, "width", h.n = C), S !== h.s && $e(d, "left", h.s = S), h;
|
|
4334
4334
|
}, {
|
|
4335
4335
|
e: void 0,
|
|
4336
4336
|
t: void 0,
|
|
@@ -4559,7 +4559,7 @@ function ql(e) {
|
|
|
4559
4559
|
}
|
|
4560
4560
|
}), (() => {
|
|
4561
4561
|
var n = Xl(), r = n.firstChild;
|
|
4562
|
-
return P(n, p(
|
|
4562
|
+
return P(n, p(J, {
|
|
4563
4563
|
get when() {
|
|
4564
4564
|
return e.title;
|
|
4565
4565
|
},
|
|
@@ -4579,20 +4579,20 @@ const nc = {
|
|
|
4579
4579
|
neutral: "bg-muted text-foreground"
|
|
4580
4580
|
};
|
|
4581
4581
|
function rc(e) {
|
|
4582
|
-
const [t, n] =
|
|
4582
|
+
const [t, n] = Q(!1), [r, s] = Q(!1), i = async () => {
|
|
4583
4583
|
const a = e.couponCode;
|
|
4584
4584
|
!a || !navigator.clipboard || (await navigator.clipboard.writeText(a), s(!0), setTimeout(() => s(!1), 1500));
|
|
4585
4585
|
}, o = () => {
|
|
4586
4586
|
var a;
|
|
4587
4587
|
n(!0), (a = e.onDismiss) == null || a.call(e);
|
|
4588
4588
|
};
|
|
4589
|
-
return p(
|
|
4589
|
+
return p(J, {
|
|
4590
4590
|
get when() {
|
|
4591
4591
|
return !t();
|
|
4592
4592
|
},
|
|
4593
4593
|
get children() {
|
|
4594
4594
|
var a = Ql();
|
|
4595
|
-
return P(a, p(
|
|
4595
|
+
return P(a, p(J, {
|
|
4596
4596
|
get when() {
|
|
4597
4597
|
return e.href;
|
|
4598
4598
|
},
|
|
@@ -4604,15 +4604,15 @@ function rc(e) {
|
|
|
4604
4604
|
},
|
|
4605
4605
|
get children() {
|
|
4606
4606
|
var l = Zl();
|
|
4607
|
-
return P(l, () => e.children), z(() =>
|
|
4607
|
+
return P(l, () => e.children), z(() => E(l, "href", e.href)), l;
|
|
4608
4608
|
}
|
|
4609
|
-
}), null), P(a, p(
|
|
4609
|
+
}), null), P(a, p(J, {
|
|
4610
4610
|
get when() {
|
|
4611
4611
|
return e.couponCode;
|
|
4612
4612
|
},
|
|
4613
4613
|
children: (l) => (() => {
|
|
4614
4614
|
var c = tc(), u = c.firstChild;
|
|
4615
|
-
return P(c, l, u), u.$$click = i, P(u, p(
|
|
4615
|
+
return P(c, l, u), u.$$click = i, P(u, p(J, {
|
|
4616
4616
|
get when() {
|
|
4617
4617
|
return r();
|
|
4618
4618
|
},
|
|
@@ -4626,9 +4626,9 @@ function rc(e) {
|
|
|
4626
4626
|
class: "h-3 w-3"
|
|
4627
4627
|
}), "Copied"];
|
|
4628
4628
|
}
|
|
4629
|
-
})), z(() =>
|
|
4629
|
+
})), z(() => E(u, "aria-label", r() ? "Coupon code copied" : "Copy coupon code")), c;
|
|
4630
4630
|
})()
|
|
4631
|
-
}), null), P(a, p(
|
|
4631
|
+
}), null), P(a, p(J, {
|
|
4632
4632
|
get when() {
|
|
4633
4633
|
return e.dismissible;
|
|
4634
4634
|
},
|
|
@@ -4659,14 +4659,14 @@ function er() {
|
|
|
4659
4659
|
return e;
|
|
4660
4660
|
}
|
|
4661
4661
|
function Ks(e) {
|
|
4662
|
-
const t = er(), [n, r] =
|
|
4662
|
+
const t = er(), [n, r] = Q(t.fallbackDelay() === void 0);
|
|
4663
4663
|
return Pe(() => {
|
|
4664
4664
|
const s = t.fallbackDelay();
|
|
4665
4665
|
if (s !== void 0) {
|
|
4666
4666
|
const i = window.setTimeout(() => r(!0), s);
|
|
4667
4667
|
pe(() => window.clearTimeout(i));
|
|
4668
4668
|
}
|
|
4669
|
-
}), p(
|
|
4669
|
+
}), p(J, {
|
|
4670
4670
|
get when() {
|
|
4671
4671
|
return Hn(() => !!n())() && t.imageLoadingStatus() !== "loaded";
|
|
4672
4672
|
},
|
|
@@ -4678,7 +4678,7 @@ function Ks(e) {
|
|
|
4678
4678
|
});
|
|
4679
4679
|
}
|
|
4680
4680
|
function Gs(e) {
|
|
4681
|
-
const t = er(), [n, r] =
|
|
4681
|
+
const t = er(), [n, r] = Q("idle");
|
|
4682
4682
|
return Pe(To(() => e.src, (s) => {
|
|
4683
4683
|
if (!s) {
|
|
4684
4684
|
r("error");
|
|
@@ -4694,7 +4694,7 @@ function Gs(e) {
|
|
|
4694
4694
|
})), Pe(() => {
|
|
4695
4695
|
const s = n();
|
|
4696
4696
|
s !== "idle" && t.onImageLoadingStatusChange(s);
|
|
4697
|
-
}), p(
|
|
4697
|
+
}), p(J, {
|
|
4698
4698
|
get when() {
|
|
4699
4699
|
return n() === "loaded";
|
|
4700
4700
|
},
|
|
@@ -4706,7 +4706,7 @@ function Gs(e) {
|
|
|
4706
4706
|
});
|
|
4707
4707
|
}
|
|
4708
4708
|
function Ws(e) {
|
|
4709
|
-
const [t, n] = ue(e, ["fallbackDelay", "onLoadingStatusChange"]), [r, s] =
|
|
4709
|
+
const [t, n] = ue(e, ["fallbackDelay", "onLoadingStatusChange"]), [r, s] = Q("idle"), i = {
|
|
4710
4710
|
fallbackDelay: () => t.fallbackDelay,
|
|
4711
4711
|
imageLoadingStatus: r,
|
|
4712
4712
|
onImageLoadingStatusChange: (o) => {
|
|
@@ -4766,7 +4766,7 @@ function uc(e) {
|
|
|
4766
4766
|
get class() {
|
|
4767
4767
|
return G(cc, lc[t.tone ?? "neutral"], t.class);
|
|
4768
4768
|
}
|
|
4769
|
-
}, n), !1, !0), P(r, p(
|
|
4769
|
+
}, n), !1, !0), P(r, p(J, {
|
|
4770
4770
|
get when() {
|
|
4771
4771
|
return t.pulse;
|
|
4772
4772
|
},
|
|
@@ -4937,7 +4937,7 @@ function ai(e, t) {
|
|
|
4937
4937
|
};
|
|
4938
4938
|
return { schedule: jt.reduce((C, S) => {
|
|
4939
4939
|
const A = o[S];
|
|
4940
|
-
return C[S] = (R,
|
|
4940
|
+
return C[S] = (R, I = !1, g = !1) => (n || b(), A.schedule(R, I, g)), C;
|
|
4941
4941
|
}, {}), cancel: (C) => {
|
|
4942
4942
|
for (let S = 0; S < jt.length; S++)
|
|
4943
4943
|
o[jt[S]].cancel(C);
|
|
@@ -5298,26 +5298,26 @@ function Ct(e = K.visualDuration, t = K.bounce) {
|
|
|
5298
5298
|
velocity: -/* @__PURE__ */ me(n.velocity || 0)
|
|
5299
5299
|
}), y = f || 0, m = c / (2 * Math.sqrt(l * u)), b = o - i, v = /* @__PURE__ */ me(Math.sqrt(l / u)), x = Math.abs(b) < 5;
|
|
5300
5300
|
r || (r = x ? K.restSpeed.granular : K.restSpeed.default), s || (s = x ? K.restDelta.granular : K.restDelta.default);
|
|
5301
|
-
let C, S, A, R,
|
|
5301
|
+
let C, S, A, R, I, g;
|
|
5302
5302
|
if (m < 1)
|
|
5303
5303
|
A = Vn(v, m), R = (y + m * v * b) / A, C = (M) => {
|
|
5304
5304
|
const _ = Math.exp(-m * v * M);
|
|
5305
5305
|
return o - _ * (R * Math.sin(A * M) + b * Math.cos(A * M));
|
|
5306
|
-
},
|
|
5306
|
+
}, I = m * v * R + b * A, g = m * v * b - R * A, S = (M) => Math.exp(-m * v * M) * (I * Math.sin(A * M) + g * Math.cos(A * M));
|
|
5307
5307
|
else if (m === 1) {
|
|
5308
5308
|
C = (_) => o - Math.exp(-v * _) * (b + (y + v * b) * _);
|
|
5309
5309
|
const M = y + v * b;
|
|
5310
5310
|
S = (_) => Math.exp(-v * _) * (v * M * _ - y);
|
|
5311
5311
|
} else {
|
|
5312
5312
|
const M = v * Math.sqrt(m * m - 1);
|
|
5313
|
-
C = (
|
|
5314
|
-
const ne = Math.exp(-m * v *
|
|
5313
|
+
C = (q) => {
|
|
5314
|
+
const ne = Math.exp(-m * v * q), W = Math.min(M * q, 300);
|
|
5315
5315
|
return o - ne * ((y + m * v * b) * Math.sinh(W) + M * b * Math.cosh(W)) / M;
|
|
5316
5316
|
};
|
|
5317
|
-
const _ = (y + m * v * b) / M, N = m * v * _ - b * M,
|
|
5318
|
-
S = (
|
|
5319
|
-
const ne = Math.exp(-m * v *
|
|
5320
|
-
return ne * (N * Math.sinh(W) +
|
|
5317
|
+
const _ = (y + m * v * b) / M, N = m * v * _ - b * M, te = m * v * b - _ * M;
|
|
5318
|
+
S = (q) => {
|
|
5319
|
+
const ne = Math.exp(-m * v * q), W = Math.min(M * q, 300);
|
|
5320
|
+
return ne * (N * Math.sinh(W) + te * Math.cosh(W));
|
|
5321
5321
|
};
|
|
5322
5322
|
}
|
|
5323
5323
|
const V = {
|
|
@@ -5325,7 +5325,7 @@ function Ct(e = K.visualDuration, t = K.bounce) {
|
|
|
5325
5325
|
velocity: (M) => /* @__PURE__ */ he(S(M)),
|
|
5326
5326
|
next: (M) => {
|
|
5327
5327
|
if (!h && m < 1) {
|
|
5328
|
-
const N = Math.exp(-m * v * M),
|
|
5328
|
+
const N = Math.exp(-m * v * M), te = Math.sin(A * M), q = Math.cos(A * M), ne = o - N * (R * te + b * q), W = /* @__PURE__ */ he(N * (I * te + g * q));
|
|
5329
5329
|
return a.done = Math.abs(W) <= r && Math.abs(o - ne) <= s, a.value = a.done ? o : ne, a;
|
|
5330
5330
|
}
|
|
5331
5331
|
const _ = C(M);
|
|
@@ -5368,7 +5368,7 @@ function $n({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
5368
5368
|
f.done = Math.abs(V) <= c, f.value = f.done ? v : M;
|
|
5369
5369
|
};
|
|
5370
5370
|
let A, R;
|
|
5371
|
-
const
|
|
5371
|
+
const I = (g) => {
|
|
5372
5372
|
h(f.value) && (A = g, R = Ct({
|
|
5373
5373
|
keyframes: [f.value, y(f.value)],
|
|
5374
5374
|
velocity: yi(C, g, f.value),
|
|
@@ -5379,11 +5379,11 @@ function $n({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
5379
5379
|
restSpeed: u
|
|
5380
5380
|
}));
|
|
5381
5381
|
};
|
|
5382
|
-
return
|
|
5382
|
+
return I(0), {
|
|
5383
5383
|
calculatedDuration: null,
|
|
5384
5384
|
next: (g) => {
|
|
5385
5385
|
let V = !1;
|
|
5386
|
-
return !R && A === void 0 && (V = !0, S(g),
|
|
5386
|
+
return !R && A === void 0 && (V = !0, S(g), I(g)), A !== void 0 && g >= A ? R.next(g - A) : (!V && S(g), f);
|
|
5387
5387
|
}
|
|
5388
5388
|
};
|
|
5389
5389
|
}
|
|
@@ -5542,8 +5542,8 @@ class nn extends hr {
|
|
|
5542
5542
|
x ? (this.delayState.value = u[0], A = this.delayState) : A = S.next(C), i && !x && (A.value = i(A.value));
|
|
5543
5543
|
let { done: R } = A;
|
|
5544
5544
|
!x && l !== null && (R = this.playbackSpeed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
|
|
5545
|
-
const
|
|
5546
|
-
return
|
|
5545
|
+
const I = this.holdTime === null && (this.state === "finished" || this.state === "running" && R);
|
|
5546
|
+
return I && y !== $n && (A.value = ln(u, this.options, b, this.speed)), m && m(A.value), I && this.finish(), A;
|
|
5547
5547
|
}
|
|
5548
5548
|
/**
|
|
5549
5549
|
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
@@ -6642,8 +6642,8 @@ function ld(e, t, { delay: n = 0, transitionOverride: r, type: s } = {}) {
|
|
|
6642
6642
|
if (window.MotionHandoffAnimation) {
|
|
6643
6643
|
const R = od(e);
|
|
6644
6644
|
if (R) {
|
|
6645
|
-
const
|
|
6646
|
-
|
|
6645
|
+
const I = window.MotionHandoffAnimation(R, y, ve);
|
|
6646
|
+
I !== null && (v.startTime = I, C = !0);
|
|
6647
6647
|
}
|
|
6648
6648
|
}
|
|
6649
6649
|
rd(e, y);
|
|
@@ -7560,10 +7560,10 @@ function df(e, { defaultTransition: t = {}, ...n } = {}, r, s) {
|
|
|
7560
7560
|
let [m, b, v = {}] = y;
|
|
7561
7561
|
v.at !== void 0 && (d = ns(d, v.at, u, c));
|
|
7562
7562
|
let x = 0;
|
|
7563
|
-
const C = (S, A, R,
|
|
7564
|
-
const V = ff(S), { delay: M = 0, times: _ = xi(V), type: N = t.type || "keyframes", repeat:
|
|
7565
|
-
let { ease:
|
|
7566
|
-
const We = typeof M == "function" ? M(
|
|
7563
|
+
const C = (S, A, R, I = 0, g = 0) => {
|
|
7564
|
+
const V = ff(S), { delay: M = 0, times: _ = xi(V), type: N = t.type || "keyframes", repeat: te, repeatType: q, repeatDelay: ne = 0, ...W } = A;
|
|
7565
|
+
let { ease: ee = t.ease || "easeOut", duration: le } = A;
|
|
7566
|
+
const We = typeof M == "function" ? M(I, g) : M, $ = V.length, at = gr(N) ? N : s == null ? void 0 : s[N || "keyframes"];
|
|
7567
7567
|
if ($ <= 2 && at) {
|
|
7568
7568
|
let B = 100;
|
|
7569
7569
|
if ($ === 2 && gf(V)) {
|
|
@@ -7576,30 +7576,30 @@ function df(e, { defaultTransition: t = {}, ...n } = {}, r, s) {
|
|
|
7576
7576
|
};
|
|
7577
7577
|
le !== void 0 && (j.duration = /* @__PURE__ */ he(le));
|
|
7578
7578
|
const ke = bi(j, B, at);
|
|
7579
|
-
|
|
7579
|
+
ee = ke.ease, le = ke.duration;
|
|
7580
7580
|
}
|
|
7581
7581
|
le ?? (le = i);
|
|
7582
7582
|
const lt = d + We;
|
|
7583
7583
|
_.length === 1 && _[0] === 0 && (_[1] = 1);
|
|
7584
7584
|
const ct = _.length - V.length;
|
|
7585
|
-
if (ct > 0 && vi(_, ct), V.length === 1 && V.unshift(null),
|
|
7585
|
+
if (ct > 0 && vi(_, ct), V.length === 1 && V.unshift(null), te && te < uf) {
|
|
7586
7586
|
const B = le > 0 ? ne / le : 0;
|
|
7587
|
-
le = rf(le,
|
|
7587
|
+
le = rf(le, te, ne);
|
|
7588
7588
|
const j = [...V], ke = [..._];
|
|
7589
|
-
|
|
7590
|
-
const Ce = [...
|
|
7589
|
+
ee = Array.isArray(ee) ? [...ee] : [ee];
|
|
7590
|
+
const Ce = [...ee], U = q === "reverse" || q === "mirror";
|
|
7591
7591
|
let ut = j, Le = Ce;
|
|
7592
|
-
U && (ut = [...j].reverse(),
|
|
7593
|
-
for (let de = 0; de <
|
|
7592
|
+
U && (ut = [...j].reverse(), q === "reverse" && (Le = [...Ce].reverse().map((de) => typeof de == "function" ? /* @__PURE__ */ ir(de) : de)));
|
|
7593
|
+
for (let de = 0; de < te; de++) {
|
|
7594
7594
|
const Ye = U && de % 2 === 0, De = Ye ? ut : j, vo = Ye ? Le : Ce, vr = (de + 1) * (1 + B);
|
|
7595
|
-
B > 0 && (V.push(V[V.length - 1]), _.push(vr),
|
|
7595
|
+
B > 0 && (V.push(V[V.length - 1]), _.push(vr), ee.push("linear")), V.push(...De);
|
|
7596
7596
|
for (let dt = 0; dt < De.length; dt++)
|
|
7597
|
-
_.push(ke[dt] + vr),
|
|
7597
|
+
_.push(ke[dt] + vr), ee.push(dt === 0 ? "linear" : /* @__PURE__ */ ii(vo, dt - 1));
|
|
7598
7598
|
}
|
|
7599
|
-
af(_,
|
|
7599
|
+
af(_, te, B);
|
|
7600
7600
|
}
|
|
7601
7601
|
const Ue = lt + le;
|
|
7602
|
-
of(R, V,
|
|
7602
|
+
of(R, V, ee, _, lt, Ue), x = Math.max(We + le, x), f = Math.max(Ue, f);
|
|
7603
7603
|
};
|
|
7604
7604
|
if (ce(m)) {
|
|
7605
7605
|
const S = rs(m, a);
|
|
@@ -7608,7 +7608,7 @@ function df(e, { defaultTransition: t = {}, ...n } = {}, r, s) {
|
|
|
7608
7608
|
const S = qi(m, b, r, l), A = S.length;
|
|
7609
7609
|
for (let R = 0; R < A; R++) {
|
|
7610
7610
|
b = b, v = v;
|
|
7611
|
-
const
|
|
7611
|
+
const I = S[R], g = rs(I, a);
|
|
7612
7612
|
for (const V in b)
|
|
7613
7613
|
C(b[V], hf(v, V), ss(V, g), R, A);
|
|
7614
7614
|
}
|
|
@@ -7620,8 +7620,8 @@ function df(e, { defaultTransition: t = {}, ...n } = {}, r, s) {
|
|
|
7620
7620
|
const b = h[m];
|
|
7621
7621
|
b.sort(lf);
|
|
7622
7622
|
const v = [], x = [], C = [];
|
|
7623
|
-
for (let
|
|
7624
|
-
const { at: g, value: V, easing: M } = b[
|
|
7623
|
+
for (let I = 0; I < b.length; I++) {
|
|
7624
|
+
const { at: g, value: V, easing: M } = b[I];
|
|
7625
7625
|
v.push(V), x.push(/* @__PURE__ */ sr(0, f, g)), C.push(M || "easeOut");
|
|
7626
7626
|
}
|
|
7627
7627
|
x[0] !== 0 && (x.unshift(0), v.unshift(v[0]), C.unshift(cf)), x[x.length - 1] !== 1 && (x.push(1), v.push(null)), o.has(y) || o.set(y, {
|
|
@@ -7763,7 +7763,7 @@ function Af(e) {
|
|
|
7763
7763
|
}
|
|
7764
7764
|
const Qi = Tf();
|
|
7765
7765
|
Af(Qi);
|
|
7766
|
-
const [Cf] =
|
|
7766
|
+
const [Cf] = Q(Qi);
|
|
7767
7767
|
function Mf() {
|
|
7768
7768
|
return !Cf();
|
|
7769
7769
|
}
|
|
@@ -7780,13 +7780,13 @@ function Ef() {
|
|
|
7780
7780
|
}
|
|
7781
7781
|
}
|
|
7782
7782
|
var fs;
|
|
7783
|
-
const [eo] =
|
|
7783
|
+
const [eo] = Q(((fs = Ef()) == null ? void 0 : fs.getItem(Pf)) === "1");
|
|
7784
7784
|
typeof document < "u" && document.documentElement.classList.toggle("force-motion", ae(eo));
|
|
7785
7785
|
function Lt() {
|
|
7786
7786
|
return Mf() || $f() && !eo();
|
|
7787
7787
|
}
|
|
7788
7788
|
function If(e, t = 600) {
|
|
7789
|
-
const [n, r] =
|
|
7789
|
+
const [n, r] = Q(0);
|
|
7790
7790
|
let s;
|
|
7791
7791
|
return Pe(() => {
|
|
7792
7792
|
const i = e();
|
|
@@ -7851,7 +7851,7 @@ function Nf(e) {
|
|
|
7851
7851
|
const o = t.onPointerDown;
|
|
7852
7852
|
typeof o == "function" ? o(i) : o && o[0](o[1], i);
|
|
7853
7853
|
};
|
|
7854
|
-
return p(
|
|
7854
|
+
return p(J, {
|
|
7855
7855
|
get when() {
|
|
7856
7856
|
return t.href !== void 0;
|
|
7857
7857
|
},
|
|
@@ -7928,7 +7928,7 @@ function Uf(e) {
|
|
|
7928
7928
|
};
|
|
7929
7929
|
return (() => {
|
|
7930
7930
|
var n = Bf(), r = n.firstChild, s = r.firstChild;
|
|
7931
|
-
return P(s, () => t().time), P(r, p(
|
|
7931
|
+
return P(s, () => t().time), P(r, p(J, {
|
|
7932
7932
|
get when() {
|
|
7933
7933
|
return e.hour12;
|
|
7934
7934
|
},
|
|
@@ -7953,11 +7953,11 @@ function Yf(e) {
|
|
|
7953
7953
|
children: (m) => {
|
|
7954
7954
|
const b = m * 30, v = s() - 4, x = s() - (m % 3 === 0 ? 14 : 9), C = n() + v * Math.sin(b * Math.PI / 180), S = r() - v * Math.cos(b * Math.PI / 180), A = n() + x * Math.sin(b * Math.PI / 180), R = r() - x * Math.cos(b * Math.PI / 180);
|
|
7955
7955
|
return (() => {
|
|
7956
|
-
var
|
|
7957
|
-
return I
|
|
7956
|
+
var I = Gf();
|
|
7957
|
+
return E(I, "x1", C), E(I, "y1", S), E(I, "x2", A), E(I, "y2", R), E(I, "stroke-width", m % 3 === 0 ? 2 : 1), I;
|
|
7958
7958
|
})();
|
|
7959
7959
|
}
|
|
7960
|
-
}), f), P(u, p(
|
|
7960
|
+
}), f), P(u, p(J, {
|
|
7961
7961
|
get when() {
|
|
7962
7962
|
return e.seconds;
|
|
7963
7963
|
},
|
|
@@ -7965,15 +7965,15 @@ function Yf(e) {
|
|
|
7965
7965
|
var m = jf();
|
|
7966
7966
|
return z((b) => {
|
|
7967
7967
|
var v = c(0.75), x = `rotate(${a()}deg)`;
|
|
7968
|
-
return v !== b.e &&
|
|
7968
|
+
return v !== b.e && E(m, "points", b.e = v), x !== b.t && $e(m, "transform", b.t = x), b;
|
|
7969
7969
|
}, {
|
|
7970
7970
|
e: void 0,
|
|
7971
7971
|
t: void 0
|
|
7972
7972
|
}), m;
|
|
7973
7973
|
}
|
|
7974
7974
|
}), y), z((m) => {
|
|
7975
|
-
var b = t(), v = t(), x = `0 0 ${t()} ${t()}`, C = G("inline-block", e.class), S = n(), A = r(), R = s() - 2,
|
|
7976
|
-
return b !== m.e &&
|
|
7975
|
+
var b = t(), v = t(), x = `0 0 ${t()} ${t()}`, C = G("inline-block", e.class), S = n(), A = r(), R = s() - 2, I = c(0.45), g = `rotate(${i()}deg)`, V = c(0.65), M = `rotate(${o()}deg)`, _ = n(), N = r();
|
|
7976
|
+
return b !== m.e && E(u, "width", m.e = b), v !== m.t && E(u, "height", m.t = v), x !== m.a && E(u, "viewBox", m.a = x), C !== m.o && E(u, "class", m.o = C), S !== m.i && E(d, "cx", m.i = S), A !== m.n && E(d, "cy", m.n = A), R !== m.s && E(d, "r", m.s = R), I !== m.h && E(f, "points", m.h = I), g !== m.r && $e(f, "transform", m.r = g), V !== m.d && E(h, "points", m.d = V), M !== m.l && $e(h, "transform", m.l = M), _ !== m.u && E(y, "cx", m.u = _), N !== m.c && E(y, "cy", m.c = N), m;
|
|
7977
7977
|
}, {
|
|
7978
7978
|
e: void 0,
|
|
7979
7979
|
t: void 0,
|
|
@@ -7992,13 +7992,13 @@ function Yf(e) {
|
|
|
7992
7992
|
})();
|
|
7993
7993
|
}
|
|
7994
7994
|
function Xf(e) {
|
|
7995
|
-
const [t, n] =
|
|
7995
|
+
const [t, n] = Q(/* @__PURE__ */ new Date());
|
|
7996
7996
|
Vt(() => {
|
|
7997
7997
|
const l = setInterval(() => n(/* @__PURE__ */ new Date()), 1e3);
|
|
7998
7998
|
pe(() => clearInterval(l));
|
|
7999
7999
|
});
|
|
8000
8000
|
const r = () => e.variant ?? "digital", s = () => e.seconds ?? !0, i = () => e.hour12 ?? !1, o = () => e.size ?? 160, a = () => Wf(t(), e.timeZone);
|
|
8001
|
-
return p(
|
|
8001
|
+
return p(J, {
|
|
8002
8002
|
get when() {
|
|
8003
8003
|
return r() === "analog";
|
|
8004
8004
|
},
|
|
@@ -8068,7 +8068,7 @@ function nh(e) {
|
|
|
8068
8068
|
})();
|
|
8069
8069
|
}
|
|
8070
8070
|
function rh(e) {
|
|
8071
|
-
const t = oe(() => e.to.getTime()), n = () => Math.max(0, t() - Date.now()), [r, s] =
|
|
8071
|
+
const t = oe(() => e.to.getTime()), n = () => Math.max(0, t() - Date.now()), [r, s] = Q(n());
|
|
8072
8072
|
let i = !1;
|
|
8073
8073
|
const o = (f) => {
|
|
8074
8074
|
var h;
|
|
@@ -8335,7 +8335,7 @@ function cs() {
|
|
|
8335
8335
|
e(Un);
|
|
8336
8336
|
}
|
|
8337
8337
|
function vh() {
|
|
8338
|
-
const [e, t] =
|
|
8338
|
+
const [e, t] = Q(Un), n = oe(() => e());
|
|
8339
8339
|
return Vt(() => {
|
|
8340
8340
|
yt.size === 0 && window.addEventListener("languagechange", cs), yt.add(t), pe(() => {
|
|
8341
8341
|
yt.delete(t), yt.size === 0 && window.removeEventListener("languagechange", cs);
|
|
@@ -8396,7 +8396,7 @@ function Th(e) {
|
|
|
8396
8396
|
maxValue: 100,
|
|
8397
8397
|
role: "meter",
|
|
8398
8398
|
indeterminate: !1
|
|
8399
|
-
}, e), [r, s] = ue(n, ["value", "minValue", "maxValue", "getValueLabel", "role", "aria-valuetext", "aria-labelledby", "aria-valuemax", "aria-valuemin", "aria-valuenow", "indeterminate"]), [i, o] =
|
|
8399
|
+
}, e), [r, s] = ue(n, ["value", "minValue", "maxValue", "getValueLabel", "role", "aria-valuetext", "aria-labelledby", "aria-valuemax", "aria-valuemin", "aria-valuenow", "indeterminate"]), [i, o] = Q(), a = oo(() => ({
|
|
8400
8400
|
style: "percent"
|
|
8401
8401
|
})), l = () => ro(r.value, r.minValue, r.maxValue), c = () => (l() - r.minValue) / (r.maxValue - r.minValue), u = () => {
|
|
8402
8402
|
if (!r.indeterminate)
|
|
@@ -8481,7 +8481,7 @@ function Vh(e) {
|
|
|
8481
8481
|
return G("flex flex-col gap-1.5", e.class);
|
|
8482
8482
|
},
|
|
8483
8483
|
get children() {
|
|
8484
|
-
return [p(
|
|
8484
|
+
return [p(J, {
|
|
8485
8485
|
get when() {
|
|
8486
8486
|
return e.label;
|
|
8487
8487
|
},
|
|
@@ -8554,7 +8554,7 @@ function ho(e) {
|
|
|
8554
8554
|
value: 0,
|
|
8555
8555
|
minValue: 0,
|
|
8556
8556
|
maxValue: 100
|
|
8557
|
-
}, e), [r, s] = ue(n, ["value", "minValue", "maxValue", "indeterminate", "getValueLabel"]), [i, o] =
|
|
8557
|
+
}, e), [r, s] = ue(n, ["value", "minValue", "maxValue", "indeterminate", "getValueLabel"]), [i, o] = Q(), a = oo(() => ({
|
|
8558
8558
|
style: "percent"
|
|
8559
8559
|
})), l = () => ro(r.value, r.minValue, r.maxValue), c = () => (l() - r.minValue) / (r.maxValue - r.minValue), u = () => {
|
|
8560
8560
|
if (!r.indeterminate)
|
|
@@ -8622,7 +8622,7 @@ function Eh(e) {
|
|
|
8622
8622
|
return G("flex flex-col gap-1.5", e.class);
|
|
8623
8623
|
},
|
|
8624
8624
|
get children() {
|
|
8625
|
-
return [p(
|
|
8625
|
+
return [p(J, {
|
|
8626
8626
|
get when() {
|
|
8627
8627
|
return e.label;
|
|
8628
8628
|
},
|
|
@@ -8654,13 +8654,13 @@ function Eh(e) {
|
|
|
8654
8654
|
}
|
|
8655
8655
|
var Ih = /* @__PURE__ */ L("<div role=radiogroup>"), Rh = /* @__PURE__ */ L("<div role=img>"), Oh = /* @__PURE__ */ L('<button type=button role=radio class="rounded outline-none focus-visible:ring-2 focus-visible:ring-ring/40">');
|
|
8656
8656
|
function _h(e) {
|
|
8657
|
-
const [t, n] =
|
|
8657
|
+
const [t, n] = Q(0), r = () => e.max ?? 5, s = () => Array.from({
|
|
8658
8658
|
length: r()
|
|
8659
8659
|
}, (l, c) => c + 1), i = () => t() > 0 ? t() : e.value, o = (l) => {
|
|
8660
8660
|
var c;
|
|
8661
8661
|
e.readonly || (c = e.onChange) == null || c.call(e, l);
|
|
8662
8662
|
}, a = (l) => G("h-5 w-5 transition-colors", l <= i() ? "fill-primary text-primary" : "fill-transparent text-muted-foreground");
|
|
8663
|
-
return p(
|
|
8663
|
+
return p(J, {
|
|
8664
8664
|
get when() {
|
|
8665
8665
|
return !e.readonly;
|
|
8666
8666
|
},
|
|
@@ -8679,7 +8679,7 @@ function _h(e) {
|
|
|
8679
8679
|
})
|
|
8680
8680
|
})), z((c) => {
|
|
8681
8681
|
var u = G("inline-flex items-center gap-1", e.class), d = `Rating ${e.value} of ${r()}`;
|
|
8682
|
-
return u !== c.e && xe(l, c.e = u), d !== c.t &&
|
|
8682
|
+
return u !== c.e && xe(l, c.e = u), d !== c.t && E(l, "aria-label", c.t = d), c;
|
|
8683
8683
|
}, {
|
|
8684
8684
|
e: void 0,
|
|
8685
8685
|
t: void 0
|
|
@@ -8703,7 +8703,7 @@ function _h(e) {
|
|
|
8703
8703
|
"aria-hidden": "true"
|
|
8704
8704
|
})), z((d) => {
|
|
8705
8705
|
var f = e.value === c, h = `Rate ${c} of ${r()}`;
|
|
8706
|
-
return f !== d.e &&
|
|
8706
|
+
return f !== d.e && E(u, "aria-checked", d.e = f), h !== d.t && E(u, "aria-label", d.t = h), d;
|
|
8707
8707
|
}, {
|
|
8708
8708
|
e: void 0,
|
|
8709
8709
|
t: void 0
|
|
@@ -8719,7 +8719,7 @@ function Dh(e) {
|
|
|
8719
8719
|
const t = () => e.size ?? 96, n = () => e.thickness ?? 8, r = () => Math.min(100, Math.max(0, e.value)), s = () => (t() - n()) / 2, i = () => 2 * Math.PI * s(), o = () => i() * (1 - r() / 100);
|
|
8720
8720
|
return (() => {
|
|
8721
8721
|
var a = Lh(), l = a.firstChild, c = l.firstChild, u = c.nextSibling, d = l.nextSibling;
|
|
8722
|
-
return P(d, p(
|
|
8722
|
+
return P(d, p(J, {
|
|
8723
8723
|
get when() {
|
|
8724
8724
|
return e.label;
|
|
8725
8725
|
},
|
|
@@ -8730,8 +8730,8 @@ function Dh(e) {
|
|
|
8730
8730
|
return e.label;
|
|
8731
8731
|
}
|
|
8732
8732
|
})), z((f) => {
|
|
8733
|
-
var h = r(),
|
|
8734
|
-
return h !== f.e &&
|
|
8733
|
+
var h = e["aria-label"], y = r(), m = G("relative inline-flex items-center justify-center", e.class), b = `${t()}px`, v = `${t()}px`, x = t(), C = t(), S = `0 0 ${t()} ${t()}`, A = t() / 2, R = t() / 2, I = s(), g = n(), V = t() / 2, M = t() / 2, _ = s(), N = n(), te = String(i()), q = String(o());
|
|
8734
|
+
return h !== f.e && E(a, "aria-label", f.e = h), y !== f.t && E(a, "aria-valuenow", f.t = y), m !== f.a && xe(a, f.a = m), b !== f.o && $e(a, "width", f.o = b), v !== f.i && $e(a, "height", f.i = v), x !== f.n && E(l, "width", f.n = x), C !== f.s && E(l, "height", f.s = C), S !== f.h && E(l, "viewBox", f.h = S), A !== f.r && E(c, "cx", f.r = A), R !== f.d && E(c, "cy", f.d = R), I !== f.l && E(c, "r", f.l = I), g !== f.u && E(c, "stroke-width", f.u = g), V !== f.c && E(u, "cx", f.c = V), M !== f.w && E(u, "cy", f.w = M), _ !== f.m && E(u, "r", f.m = _), N !== f.f && E(u, "stroke-width", f.f = N), te !== f.y && E(u, "stroke-dasharray", f.y = te), q !== f.g && E(u, "stroke-dashoffset", f.g = q), f;
|
|
8735
8735
|
}, {
|
|
8736
8736
|
e: void 0,
|
|
8737
8737
|
t: void 0,
|
|
@@ -8749,12 +8749,13 @@ function Dh(e) {
|
|
|
8749
8749
|
w: void 0,
|
|
8750
8750
|
m: void 0,
|
|
8751
8751
|
f: void 0,
|
|
8752
|
-
y: void 0
|
|
8752
|
+
y: void 0,
|
|
8753
|
+
g: void 0
|
|
8753
8754
|
}), a;
|
|
8754
8755
|
})();
|
|
8755
8756
|
}
|
|
8756
8757
|
function Fh(e, t) {
|
|
8757
|
-
const [n, r] =
|
|
8758
|
+
const [n, r] = Q(us(t == null ? void 0 : t()));
|
|
8758
8759
|
return Pe(() => {
|
|
8759
8760
|
var s;
|
|
8760
8761
|
r(((s = e()) == null ? void 0 : s.tagName.toLowerCase()) || us(t == null ? void 0 : t()));
|
|
@@ -8808,7 +8809,7 @@ function jh(e) {
|
|
|
8808
8809
|
var t = Bh();
|
|
8809
8810
|
return z((n) => {
|
|
8810
8811
|
var r = G("h-5 w-5 animate-spin text-muted-foreground", e.class), s = e.label ?? "Loading";
|
|
8811
|
-
return r !== n.e &&
|
|
8812
|
+
return r !== n.e && E(t, "class", n.e = r), s !== n.t && E(t, "aria-label", n.t = s), n;
|
|
8812
8813
|
}, {
|
|
8813
8814
|
e: void 0,
|
|
8814
8815
|
t: void 0
|
|
@@ -8901,7 +8902,7 @@ function Hh(e) {
|
|
|
8901
8902
|
return p(Uh, {
|
|
8902
8903
|
class: "flex items-center gap-4 p-5",
|
|
8903
8904
|
get children() {
|
|
8904
|
-
return [p(
|
|
8905
|
+
return [p(J, {
|
|
8905
8906
|
get when() {
|
|
8906
8907
|
return e.icon;
|
|
8907
8908
|
},
|