highsoft-ui 1.0.63 → 1.0.65
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/components/Button/index.js +50 -50
- package/dist/components/Container/index.js +1 -1
- package/dist/components/Footer/index.js +237 -237
- package/dist/components/GPTInput/index.js +31 -31
- package/dist/components/Header/index.js +130 -130
- package/dist/components/NewTag/index.js +15 -15
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/PrefPanel/index.js +227 -227
- package/dist/highsoft-ui.css +1 -1
- package/dist/index-pnL-sAld.js +68 -0
- package/dist/main.js +1 -1
- package/package.json +2 -1
- package/dist/index-DvBbx2s8.js +0 -68
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as w, jsxs as
|
|
2
|
-
import { z as
|
|
1
|
+
import { jsx as w, jsxs as q, Fragment as ee } from "react/jsx-runtime";
|
|
2
|
+
import { z as Xe, b as Qe } from "../../utils-C7rfowvr.js";
|
|
3
3
|
import * as g from "react";
|
|
4
|
-
import { useLayoutEffect as
|
|
5
|
-
import { u as kt, P as ft, c as ne, a as yt, b as
|
|
4
|
+
import { useLayoutEffect as qe } from "react";
|
|
5
|
+
import { u as kt, P as ft, c as ne, a as yt, b as Ge, d as Ue, e as Ze, f as st, g as oe, h as Je, i as tn, R as en, j as nn, k as on, F as rn, D as sn, C as cn } from "../../index-CM3YgRXK.js";
|
|
6
6
|
import { _ as At } from "../../extends-hS2Bh-Yp.js";
|
|
7
7
|
import { c as an } from "../../clsx-OuTLNxxd.js";
|
|
8
8
|
import { Button as ln } from "../Button/index.js";
|
|
@@ -94,7 +94,7 @@ function mn(t) {
|
|
|
94
94
|
n(void 0);
|
|
95
95
|
}, [t]), e;
|
|
96
96
|
}
|
|
97
|
-
const gn = ["top", "right", "bottom", "left"],
|
|
97
|
+
const gn = ["top", "right", "bottom", "left"], G = Math.min, H = Math.max, gt = Math.round, ht = Math.floor, j = (t) => ({
|
|
98
98
|
x: t,
|
|
99
99
|
y: t
|
|
100
100
|
}), wn = {
|
|
@@ -106,13 +106,13 @@ const gn = ["top", "right", "bottom", "left"], U = Math.min, H = Math.max, gt =
|
|
|
106
106
|
start: "end",
|
|
107
107
|
end: "start"
|
|
108
108
|
};
|
|
109
|
-
function
|
|
110
|
-
return H(t,
|
|
109
|
+
function Mt(t, e, n) {
|
|
110
|
+
return H(t, G(e, n));
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function X(t, e) {
|
|
113
113
|
return typeof t == "function" ? t(e) : t;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Q(t) {
|
|
116
116
|
return t.split("-")[0];
|
|
117
117
|
}
|
|
118
118
|
function ot(t) {
|
|
@@ -126,7 +126,7 @@ function Tt(t) {
|
|
|
126
126
|
}
|
|
127
127
|
const xn = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
128
128
|
function V(t) {
|
|
129
|
-
return xn.has(
|
|
129
|
+
return xn.has(Q(t)) ? "y" : "x";
|
|
130
130
|
}
|
|
131
131
|
function Nt(t) {
|
|
132
132
|
return Lt(V(t));
|
|
@@ -139,17 +139,17 @@ function yn(t, e, n) {
|
|
|
139
139
|
}
|
|
140
140
|
function An(t) {
|
|
141
141
|
const e = wt(t);
|
|
142
|
-
return [
|
|
142
|
+
return [Dt(t), e, Dt(e)];
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Dt(t) {
|
|
145
145
|
return t.replace(/start|end/g, (e) => vn[e]);
|
|
146
146
|
}
|
|
147
|
-
const Yt = ["left", "right"],
|
|
147
|
+
const Yt = ["left", "right"], Kt = ["right", "left"], Pn = ["top", "bottom"], bn = ["bottom", "top"];
|
|
148
148
|
function Cn(t, e, n) {
|
|
149
149
|
switch (t) {
|
|
150
150
|
case "top":
|
|
151
151
|
case "bottom":
|
|
152
|
-
return n ? e ?
|
|
152
|
+
return n ? e ? Kt : Yt : e ? Yt : Kt;
|
|
153
153
|
case "left":
|
|
154
154
|
case "right":
|
|
155
155
|
return e ? Pn : bn;
|
|
@@ -159,8 +159,8 @@ function Cn(t, e, n) {
|
|
|
159
159
|
}
|
|
160
160
|
function Rn(t, e, n, o) {
|
|
161
161
|
const r = ot(t);
|
|
162
|
-
let i = Cn(
|
|
163
|
-
return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(
|
|
162
|
+
let i = Cn(Q(t), n === "start", o);
|
|
163
|
+
return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(Dt)))), i;
|
|
164
164
|
}
|
|
165
165
|
function wt(t) {
|
|
166
166
|
return t.replace(/left|right|bottom|top/g, (e) => wn[e]);
|
|
@@ -200,12 +200,12 @@ function vt(t) {
|
|
|
200
200
|
y: n
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Xt(t, e, n) {
|
|
204
204
|
let {
|
|
205
205
|
reference: o,
|
|
206
206
|
floating: r
|
|
207
207
|
} = t;
|
|
208
|
-
const i = V(e), s = Nt(e), c = Tt(s), a =
|
|
208
|
+
const i = V(e), s = Nt(e), c = Tt(s), a = Q(e), l = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, p = o[c] / 2 - r[c] / 2;
|
|
209
209
|
let d;
|
|
210
210
|
switch (a) {
|
|
211
211
|
case "top":
|
|
@@ -262,7 +262,7 @@ const Sn = async (t, e, n) => {
|
|
|
262
262
|
}), {
|
|
263
263
|
x: f,
|
|
264
264
|
y: u
|
|
265
|
-
} =
|
|
265
|
+
} = Xt(l, o, a), p = o, d = {}, h = 0;
|
|
266
266
|
for (let m = 0; m < c.length; m++) {
|
|
267
267
|
const {
|
|
268
268
|
name: x,
|
|
@@ -299,7 +299,7 @@ const Sn = async (t, e, n) => {
|
|
|
299
299
|
}) : P.rects), {
|
|
300
300
|
x: f,
|
|
301
301
|
y: u
|
|
302
|
-
} =
|
|
302
|
+
} = Xt(l, p, a)), m = -1);
|
|
303
303
|
}
|
|
304
304
|
return {
|
|
305
305
|
x: f,
|
|
@@ -325,7 +325,7 @@ async function at(t, e) {
|
|
|
325
325
|
elementContext: u = "floating",
|
|
326
326
|
altBoundary: p = !1,
|
|
327
327
|
padding: d = 0
|
|
328
|
-
} =
|
|
328
|
+
} = X(e, t), h = re(d), x = c[p ? u === "floating" ? "reference" : "floating" : u], v = vt(await i.getClippingRect({
|
|
329
329
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(x))) == null || n ? x : x.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
|
|
330
330
|
boundary: l,
|
|
331
331
|
rootBoundary: f,
|
|
@@ -369,7 +369,7 @@ const En = (t) => ({
|
|
|
369
369
|
} = e, {
|
|
370
370
|
element: l,
|
|
371
371
|
padding: f = 0
|
|
372
|
-
} =
|
|
372
|
+
} = X(t, e) || {};
|
|
373
373
|
if (l == null)
|
|
374
374
|
return {};
|
|
375
375
|
const u = re(f), p = {
|
|
@@ -378,14 +378,14 @@ const En = (t) => ({
|
|
|
378
378
|
}, d = Nt(r), h = Tt(d), m = await s.getDimensions(l), x = d === "y", v = x ? "top" : "left", y = x ? "bottom" : "right", b = x ? "clientHeight" : "clientWidth", A = i.reference[h] + i.reference[d] - p[d] - i.floating[h], P = p[d] - i.reference[d], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
379
379
|
let R = O ? O[b] : 0;
|
|
380
380
|
(!R || !await (s.isElement == null ? void 0 : s.isElement(O))) && (R = c.floating[b] || i.floating[h]);
|
|
381
|
-
const
|
|
381
|
+
const _ = A / 2 - P / 2, F = R / 2 - m[h] / 2 - 1, D = G(u[v], F), T = G(u[y], F), N = D, E = R - m[h] - T, S = R / 2 - m[h] / 2 + _, $ = Mt(N, S, E), k = !a.arrow && ot(r) != null && S !== $ && i.reference[h] / 2 - (S < N ? D : T) - m[h] / 2 < 0, M = k ? S < N ? S - N : S - E : 0;
|
|
382
382
|
return {
|
|
383
|
-
[d]: p[d] +
|
|
383
|
+
[d]: p[d] + M,
|
|
384
384
|
data: {
|
|
385
385
|
[d]: $,
|
|
386
|
-
centerOffset: S - $ -
|
|
386
|
+
centerOffset: S - $ - M,
|
|
387
387
|
...k && {
|
|
388
|
-
alignmentOffset:
|
|
388
|
+
alignmentOffset: M
|
|
389
389
|
}
|
|
390
390
|
},
|
|
391
391
|
reset: k
|
|
@@ -412,18 +412,18 @@ const En = (t) => ({
|
|
|
412
412
|
fallbackAxisSideDirection: h = "none",
|
|
413
413
|
flipAlignment: m = !0,
|
|
414
414
|
...x
|
|
415
|
-
} =
|
|
415
|
+
} = X(t, e);
|
|
416
416
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
417
417
|
return {};
|
|
418
|
-
const v =
|
|
418
|
+
const v = Q(r), y = V(c), b = Q(c) === c, A = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), P = p || (b || !m ? [wt(c)] : An(c)), O = h !== "none";
|
|
419
419
|
!p && O && P.push(...Rn(c, m, h, A));
|
|
420
|
-
const R = [c, ...P],
|
|
421
|
-
let
|
|
422
|
-
if (f && F.push(
|
|
420
|
+
const R = [c, ...P], _ = await at(e, x), F = [];
|
|
421
|
+
let D = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
422
|
+
if (f && F.push(_[v]), u) {
|
|
423
423
|
const S = yn(r, s, A);
|
|
424
|
-
F.push(
|
|
424
|
+
F.push(_[S[0]], _[S[1]]);
|
|
425
425
|
}
|
|
426
|
-
if (
|
|
426
|
+
if (D = [...D, {
|
|
427
427
|
placement: r,
|
|
428
428
|
overflows: F
|
|
429
429
|
}], !F.every((S) => S <= 0)) {
|
|
@@ -431,22 +431,22 @@ const En = (t) => ({
|
|
|
431
431
|
const S = (((T = i.flip) == null ? void 0 : T.index) || 0) + 1, $ = R[S];
|
|
432
432
|
if ($ && (!(u === "alignment" ? y !== V($) : !1) || // We leave the current main axis only if every placement on that axis
|
|
433
433
|
// overflows the main axis.
|
|
434
|
-
|
|
434
|
+
D.every((C) => V(C.placement) === y ? C.overflows[0] > 0 : !0)))
|
|
435
435
|
return {
|
|
436
436
|
data: {
|
|
437
437
|
index: S,
|
|
438
|
-
overflows:
|
|
438
|
+
overflows: D
|
|
439
439
|
},
|
|
440
440
|
reset: {
|
|
441
441
|
placement: $
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
|
-
let k = (N =
|
|
444
|
+
let k = (N = D.filter((M) => M.overflows[0] <= 0).sort((M, C) => M.overflows[1] - C.overflows[1])[0]) == null ? void 0 : N.placement;
|
|
445
445
|
if (!k)
|
|
446
446
|
switch (d) {
|
|
447
447
|
case "bestFit": {
|
|
448
448
|
var E;
|
|
449
|
-
const
|
|
449
|
+
const M = (E = D.filter((C) => {
|
|
450
450
|
if (O) {
|
|
451
451
|
const L = V(C.placement);
|
|
452
452
|
return L === y || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -454,8 +454,8 @@ const En = (t) => ({
|
|
|
454
454
|
L === "y";
|
|
455
455
|
}
|
|
456
456
|
return !0;
|
|
457
|
-
}).map((C) => [C.placement, C.overflows.filter((L) => L > 0).reduce((L,
|
|
458
|
-
|
|
457
|
+
}).map((C) => [C.placement, C.overflows.filter((L) => L > 0).reduce((L, z) => L + z, 0)]).sort((C, L) => C[1] - L[1])[0]) == null ? void 0 : E[0];
|
|
458
|
+
M && (k = M);
|
|
459
459
|
break;
|
|
460
460
|
}
|
|
461
461
|
case "initialPlacement":
|
|
@@ -473,7 +473,7 @@ const En = (t) => ({
|
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
};
|
|
476
|
-
function
|
|
476
|
+
function Qt(t, e) {
|
|
477
477
|
return {
|
|
478
478
|
top: t.top - e.height,
|
|
479
479
|
right: t.right - e.width,
|
|
@@ -481,10 +481,10 @@ function Gt(t, e) {
|
|
|
481
481
|
left: t.left - e.width
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function qt(t) {
|
|
485
485
|
return gn.some((e) => t[e] >= 0);
|
|
486
486
|
}
|
|
487
|
-
const
|
|
487
|
+
const Mn = function(t) {
|
|
488
488
|
return t === void 0 && (t = {}), {
|
|
489
489
|
name: "hide",
|
|
490
490
|
options: t,
|
|
@@ -494,17 +494,17 @@ const _n = function(t) {
|
|
|
494
494
|
} = e, {
|
|
495
495
|
strategy: o = "referenceHidden",
|
|
496
496
|
...r
|
|
497
|
-
} =
|
|
497
|
+
} = X(t, e);
|
|
498
498
|
switch (o) {
|
|
499
499
|
case "referenceHidden": {
|
|
500
500
|
const i = await at(e, {
|
|
501
501
|
...r,
|
|
502
502
|
elementContext: "reference"
|
|
503
|
-
}), s =
|
|
503
|
+
}), s = Qt(i, n.reference);
|
|
504
504
|
return {
|
|
505
505
|
data: {
|
|
506
506
|
referenceHiddenOffsets: s,
|
|
507
|
-
referenceHidden:
|
|
507
|
+
referenceHidden: qt(s)
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
510
|
}
|
|
@@ -512,11 +512,11 @@ const _n = function(t) {
|
|
|
512
512
|
const i = await at(e, {
|
|
513
513
|
...r,
|
|
514
514
|
altBoundary: !0
|
|
515
|
-
}), s =
|
|
515
|
+
}), s = Qt(i, n.floating);
|
|
516
516
|
return {
|
|
517
517
|
data: {
|
|
518
518
|
escapedOffsets: s,
|
|
519
|
-
escaped:
|
|
519
|
+
escaped: qt(s)
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
522
|
}
|
|
@@ -526,12 +526,12 @@ const _n = function(t) {
|
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
528
|
}, ie = /* @__PURE__ */ new Set(["left", "top"]);
|
|
529
|
-
async function
|
|
529
|
+
async function Dn(t, e) {
|
|
530
530
|
const {
|
|
531
531
|
placement: n,
|
|
532
532
|
platform: o,
|
|
533
533
|
elements: r
|
|
534
|
-
} = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s =
|
|
534
|
+
} = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = Q(n), c = ot(n), a = V(n) === "y", l = ie.has(s) ? -1 : 1, f = i && a ? -1 : 1, u = X(e, t);
|
|
535
535
|
let {
|
|
536
536
|
mainAxis: p,
|
|
537
537
|
crossAxis: d,
|
|
@@ -553,7 +553,7 @@ async function Mn(t, e) {
|
|
|
553
553
|
y: d * f
|
|
554
554
|
};
|
|
555
555
|
}
|
|
556
|
-
const
|
|
556
|
+
const _n = function(t) {
|
|
557
557
|
return t === void 0 && (t = 0), {
|
|
558
558
|
name: "offset",
|
|
559
559
|
options: t,
|
|
@@ -564,7 +564,7 @@ const Dn = function(t) {
|
|
|
564
564
|
y: i,
|
|
565
565
|
placement: s,
|
|
566
566
|
middlewareData: c
|
|
567
|
-
} = e, a = await
|
|
567
|
+
} = e, a = await Dn(e, t);
|
|
568
568
|
return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
569
569
|
x: r + a.x,
|
|
570
570
|
y: i + a.y,
|
|
@@ -600,18 +600,18 @@ const Dn = function(t) {
|
|
|
600
600
|
}
|
|
601
601
|
},
|
|
602
602
|
...a
|
|
603
|
-
} =
|
|
603
|
+
} = X(t, e), l = {
|
|
604
604
|
x: n,
|
|
605
605
|
y: o
|
|
606
|
-
}, f = await at(e, a), u = V(
|
|
606
|
+
}, f = await at(e, a), u = V(Q(r)), p = Lt(u);
|
|
607
607
|
let d = l[p], h = l[u];
|
|
608
608
|
if (i) {
|
|
609
609
|
const x = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = d + f[x], b = d - f[v];
|
|
610
|
-
d =
|
|
610
|
+
d = Mt(y, d, b);
|
|
611
611
|
}
|
|
612
612
|
if (s) {
|
|
613
613
|
const x = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", y = h + f[x], b = h - f[v];
|
|
614
|
-
h =
|
|
614
|
+
h = Mt(y, h, b);
|
|
615
615
|
}
|
|
616
616
|
const m = c.fn({
|
|
617
617
|
...e,
|
|
@@ -645,12 +645,12 @@ const Dn = function(t) {
|
|
|
645
645
|
offset: c = 0,
|
|
646
646
|
mainAxis: a = !0,
|
|
647
647
|
crossAxis: l = !0
|
|
648
|
-
} =
|
|
648
|
+
} = X(t, e), f = {
|
|
649
649
|
x: n,
|
|
650
650
|
y: o
|
|
651
651
|
}, u = V(r), p = Lt(u);
|
|
652
652
|
let d = f[p], h = f[u];
|
|
653
|
-
const m =
|
|
653
|
+
const m = X(c, e), x = typeof m == "number" ? {
|
|
654
654
|
mainAxis: m,
|
|
655
655
|
crossAxis: 0
|
|
656
656
|
} : {
|
|
@@ -664,7 +664,7 @@ const Dn = function(t) {
|
|
|
664
664
|
}
|
|
665
665
|
if (l) {
|
|
666
666
|
var v, y;
|
|
667
|
-
const b = p === "y" ? "width" : "height", A = ie.has(
|
|
667
|
+
const b = p === "y" ? "width" : "height", A = ie.has(Q(r)), P = i.reference[u] - i.floating[b] + (A && ((v = s.offset) == null ? void 0 : v[u]) || 0) + (A ? 0 : x.crossAxis), O = i.reference[u] + i.reference[b] + (A ? 0 : ((y = s.offset) == null ? void 0 : y[u]) || 0) - (A ? x.crossAxis : 0);
|
|
668
668
|
h < P ? h = P : h > O && (h = O);
|
|
669
669
|
}
|
|
670
670
|
return {
|
|
@@ -688,21 +688,21 @@ const Dn = function(t) {
|
|
|
688
688
|
apply: a = () => {
|
|
689
689
|
},
|
|
690
690
|
...l
|
|
691
|
-
} =
|
|
691
|
+
} = X(t, e), f = await at(e, l), u = Q(r), p = ot(r), d = V(r) === "y", {
|
|
692
692
|
width: h,
|
|
693
693
|
height: m
|
|
694
694
|
} = i.floating;
|
|
695
695
|
let x, v;
|
|
696
696
|
u === "top" || u === "bottom" ? (x = u, v = p === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (v = u, x = p === "end" ? "top" : "bottom");
|
|
697
|
-
const y = m - f.top - f.bottom, b = h - f.left - f.right, A =
|
|
698
|
-
let R = A,
|
|
699
|
-
if ((n = e.middlewareData.shift) != null && n.enabled.x && (
|
|
700
|
-
const
|
|
701
|
-
d ?
|
|
697
|
+
const y = m - f.top - f.bottom, b = h - f.left - f.right, A = G(m - f[x], y), P = G(h - f[v], b), O = !e.middlewareData.shift;
|
|
698
|
+
let R = A, _ = P;
|
|
699
|
+
if ((n = e.middlewareData.shift) != null && n.enabled.x && (_ = b), (o = e.middlewareData.shift) != null && o.enabled.y && (R = y), O && !p) {
|
|
700
|
+
const D = H(f.left, 0), T = H(f.right, 0), N = H(f.top, 0), E = H(f.bottom, 0);
|
|
701
|
+
d ? _ = h - 2 * (D !== 0 || T !== 0 ? D + T : H(f.left, f.right)) : R = m - 2 * (N !== 0 || E !== 0 ? N + E : H(f.top, f.bottom));
|
|
702
702
|
}
|
|
703
703
|
await a({
|
|
704
704
|
...e,
|
|
705
|
-
availableWidth:
|
|
705
|
+
availableWidth: _,
|
|
706
706
|
availableHeight: R
|
|
707
707
|
});
|
|
708
708
|
const F = await s.getDimensions(c.floating);
|
|
@@ -724,20 +724,20 @@ function W(t) {
|
|
|
724
724
|
var e;
|
|
725
725
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function K(t) {
|
|
728
728
|
var e;
|
|
729
729
|
return (e = (se(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
730
730
|
}
|
|
731
731
|
function se(t) {
|
|
732
732
|
return Pt() ? t instanceof Node || t instanceof W(t).Node : !1;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function I(t) {
|
|
735
735
|
return Pt() ? t instanceof Element || t instanceof W(t).Element : !1;
|
|
736
736
|
}
|
|
737
737
|
function Y(t) {
|
|
738
738
|
return Pt() ? t instanceof HTMLElement || t instanceof W(t).HTMLElement : !1;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function Gt(t) {
|
|
741
741
|
return !Pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof W(t).ShadowRoot;
|
|
742
742
|
}
|
|
743
743
|
const Fn = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
@@ -747,7 +747,7 @@ function ut(t) {
|
|
|
747
747
|
overflowX: n,
|
|
748
748
|
overflowY: o,
|
|
749
749
|
display: r
|
|
750
|
-
} =
|
|
750
|
+
} = B(t);
|
|
751
751
|
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Fn.has(r);
|
|
752
752
|
}
|
|
753
753
|
const $n = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
@@ -764,19 +764,19 @@ function bt(t) {
|
|
|
764
764
|
}
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
|
-
const
|
|
767
|
+
const In = ["transform", "translate", "scale", "rotate", "perspective"], Bn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], zn = ["paint", "layout", "strict", "content"];
|
|
768
768
|
function Ft(t) {
|
|
769
|
-
const e = $t(), n =
|
|
770
|
-
return
|
|
769
|
+
const e = $t(), n = I(t) ? B(t) : t;
|
|
770
|
+
return In.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Bn.some((o) => (n.willChange || "").includes(o)) || zn.some((o) => (n.contain || "").includes(o));
|
|
771
771
|
}
|
|
772
772
|
function Vn(t) {
|
|
773
|
-
let e =
|
|
773
|
+
let e = U(t);
|
|
774
774
|
for (; Y(e) && !et(e); ) {
|
|
775
775
|
if (Ft(e))
|
|
776
776
|
return e;
|
|
777
777
|
if (bt(e))
|
|
778
778
|
return null;
|
|
779
|
-
e =
|
|
779
|
+
e = U(e);
|
|
780
780
|
}
|
|
781
781
|
return null;
|
|
782
782
|
}
|
|
@@ -787,11 +787,11 @@ const jn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
|
787
787
|
function et(t) {
|
|
788
788
|
return jn.has(rt(t));
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function B(t) {
|
|
791
791
|
return W(t).getComputedStyle(t);
|
|
792
792
|
}
|
|
793
793
|
function Ct(t) {
|
|
794
|
-
return
|
|
794
|
+
return I(t) ? {
|
|
795
795
|
scrollLeft: t.scrollLeft,
|
|
796
796
|
scrollTop: t.scrollTop
|
|
797
797
|
} : {
|
|
@@ -799,20 +799,20 @@ function Ct(t) {
|
|
|
799
799
|
scrollTop: t.scrollY
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function U(t) {
|
|
803
803
|
if (rt(t) === "html")
|
|
804
804
|
return t;
|
|
805
805
|
const e = (
|
|
806
806
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
807
807
|
t.assignedSlot || // DOM Element detected.
|
|
808
808
|
t.parentNode || // ShadowRoot detected.
|
|
809
|
-
|
|
810
|
-
|
|
809
|
+
Gt(t) && t.host || // Fallback.
|
|
810
|
+
K(t)
|
|
811
811
|
);
|
|
812
|
-
return
|
|
812
|
+
return Gt(e) ? e.host : e;
|
|
813
813
|
}
|
|
814
814
|
function ce(t) {
|
|
815
|
-
const e =
|
|
815
|
+
const e = U(t);
|
|
816
816
|
return et(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && ut(e) ? e : ce(e);
|
|
817
817
|
}
|
|
818
818
|
function lt(t, e, n) {
|
|
@@ -820,16 +820,16 @@ function lt(t, e, n) {
|
|
|
820
820
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
821
821
|
const r = ce(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = W(r);
|
|
822
822
|
if (i) {
|
|
823
|
-
const c =
|
|
823
|
+
const c = _t(s);
|
|
824
824
|
return e.concat(s, s.visualViewport || [], ut(r) ? r : [], c && n ? lt(c) : []);
|
|
825
825
|
}
|
|
826
826
|
return e.concat(r, lt(r, [], n));
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function _t(t) {
|
|
829
829
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
830
830
|
}
|
|
831
831
|
function ae(t) {
|
|
832
|
-
const e =
|
|
832
|
+
const e = B(t);
|
|
833
833
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
834
834
|
const r = Y(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = gt(n) !== i || gt(o) !== s;
|
|
835
835
|
return c && (n = i, o = s), {
|
|
@@ -839,7 +839,7 @@ function ae(t) {
|
|
|
839
839
|
};
|
|
840
840
|
}
|
|
841
841
|
function Ht(t) {
|
|
842
|
-
return
|
|
842
|
+
return I(t) ? t : t.contextElement;
|
|
843
843
|
}
|
|
844
844
|
function tt(t) {
|
|
845
845
|
const e = Ht(t);
|
|
@@ -864,22 +864,22 @@ function le(t) {
|
|
|
864
864
|
y: e.visualViewport.offsetTop
|
|
865
865
|
};
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Kn(t, e, n) {
|
|
868
868
|
return e === void 0 && (e = !1), !n || e && n !== W(t) ? !1 : e;
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function J(t, e, n, o) {
|
|
871
871
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
872
872
|
const r = t.getBoundingClientRect(), i = Ht(t);
|
|
873
873
|
let s = j(1);
|
|
874
|
-
e && (o ?
|
|
875
|
-
const c =
|
|
874
|
+
e && (o ? I(o) && (s = tt(o)) : s = tt(t));
|
|
875
|
+
const c = Kn(i, n, o) ? le(i) : j(0);
|
|
876
876
|
let a = (r.left + c.x) / s.x, l = (r.top + c.y) / s.y, f = r.width / s.x, u = r.height / s.y;
|
|
877
877
|
if (i) {
|
|
878
|
-
const p = W(i), d = o &&
|
|
879
|
-
let h = p, m =
|
|
878
|
+
const p = W(i), d = o && I(o) ? W(o) : o;
|
|
879
|
+
let h = p, m = _t(h);
|
|
880
880
|
for (; m && o && d !== h; ) {
|
|
881
|
-
const x = tt(m), v = m.getBoundingClientRect(), y =
|
|
882
|
-
a *= x.x, l *= x.y, f *= x.x, u *= x.y, a += b, l += A, h = W(m), m =
|
|
881
|
+
const x = tt(m), v = m.getBoundingClientRect(), y = B(m), b = v.left + (m.clientLeft + parseFloat(y.paddingLeft)) * x.x, A = v.top + (m.clientTop + parseFloat(y.paddingTop)) * x.y;
|
|
882
|
+
a *= x.x, l *= x.y, f *= x.x, u *= x.y, a += b, l += A, h = W(m), m = _t(h);
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
return vt({
|
|
@@ -891,7 +891,7 @@ function Q(t, e, n, o) {
|
|
|
891
891
|
}
|
|
892
892
|
function Wt(t, e) {
|
|
893
893
|
const n = Ct(t).scrollLeft;
|
|
894
|
-
return e ? e.left + n :
|
|
894
|
+
return e ? e.left + n : J(K(t)).left + n;
|
|
895
895
|
}
|
|
896
896
|
function fe(t, e, n) {
|
|
897
897
|
n === void 0 && (n = !1);
|
|
@@ -904,14 +904,14 @@ function fe(t, e, n) {
|
|
|
904
904
|
y: i
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function Xn(t) {
|
|
908
908
|
let {
|
|
909
909
|
elements: e,
|
|
910
910
|
rect: n,
|
|
911
911
|
offsetParent: o,
|
|
912
912
|
strategy: r
|
|
913
913
|
} = t;
|
|
914
|
-
const i = r === "fixed", s =
|
|
914
|
+
const i = r === "fixed", s = K(o), c = e ? bt(e.floating) : !1;
|
|
915
915
|
if (o === s || c && i)
|
|
916
916
|
return n;
|
|
917
917
|
let a = {
|
|
@@ -920,7 +920,7 @@ function qn(t) {
|
|
|
920
920
|
}, l = j(1);
|
|
921
921
|
const f = j(0), u = Y(o);
|
|
922
922
|
if ((u || !u && !i) && ((rt(o) !== "body" || ut(s)) && (a = Ct(o)), Y(o))) {
|
|
923
|
-
const d =
|
|
923
|
+
const d = J(o);
|
|
924
924
|
l = tt(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
|
|
925
925
|
}
|
|
926
926
|
const p = s && !u && !i ? fe(s, a, !0) : j(0);
|
|
@@ -931,22 +931,22 @@ function qn(t) {
|
|
|
931
931
|
y: n.y * l.y - a.scrollTop * l.y + f.y + p.y
|
|
932
932
|
};
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function Qn(t) {
|
|
935
935
|
return Array.from(t.getClientRects());
|
|
936
936
|
}
|
|
937
|
-
function
|
|
938
|
-
const e =
|
|
937
|
+
function qn(t) {
|
|
938
|
+
const e = K(t), n = Ct(t), o = t.ownerDocument.body, r = H(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = H(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
939
939
|
let s = -n.scrollLeft + Wt(t);
|
|
940
940
|
const c = -n.scrollTop;
|
|
941
|
-
return
|
|
941
|
+
return B(o).direction === "rtl" && (s += H(e.clientWidth, o.clientWidth) - r), {
|
|
942
942
|
width: r,
|
|
943
943
|
height: i,
|
|
944
944
|
x: s,
|
|
945
945
|
y: c
|
|
946
946
|
};
|
|
947
947
|
}
|
|
948
|
-
function
|
|
949
|
-
const n = W(t), o =
|
|
948
|
+
function Gn(t, e) {
|
|
949
|
+
const n = W(t), o = K(t), r = n.visualViewport;
|
|
950
950
|
let i = o.clientWidth, s = o.clientHeight, c = 0, a = 0;
|
|
951
951
|
if (r) {
|
|
952
952
|
i = r.width, s = r.height;
|
|
@@ -960,9 +960,9 @@ function Un(t, e) {
|
|
|
960
960
|
y: a
|
|
961
961
|
};
|
|
962
962
|
}
|
|
963
|
-
const
|
|
964
|
-
function
|
|
965
|
-
const n =
|
|
963
|
+
const Un = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
964
|
+
function Zn(t, e) {
|
|
965
|
+
const n = J(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = Y(t) ? tt(t) : j(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, a = r * i.x, l = o * i.y;
|
|
966
966
|
return {
|
|
967
967
|
width: s,
|
|
968
968
|
height: c,
|
|
@@ -970,14 +970,14 @@ function Jn(t, e) {
|
|
|
970
970
|
y: l
|
|
971
971
|
};
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function Ut(t, e, n) {
|
|
974
974
|
let o;
|
|
975
975
|
if (e === "viewport")
|
|
976
|
-
o =
|
|
976
|
+
o = Gn(t, n);
|
|
977
977
|
else if (e === "document")
|
|
978
|
-
o =
|
|
979
|
-
else if (
|
|
980
|
-
o =
|
|
978
|
+
o = qn(K(t));
|
|
979
|
+
else if (I(e))
|
|
980
|
+
o = Zn(e, n);
|
|
981
981
|
else {
|
|
982
982
|
const r = le(t);
|
|
983
983
|
o = {
|
|
@@ -990,19 +990,19 @@ function Zt(t, e, n) {
|
|
|
990
990
|
return vt(o);
|
|
991
991
|
}
|
|
992
992
|
function ue(t, e) {
|
|
993
|
-
const n =
|
|
994
|
-
return n === e || !
|
|
993
|
+
const n = U(t);
|
|
994
|
+
return n === e || !I(n) || et(n) ? !1 : B(n).position === "fixed" || ue(n, e);
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function Jn(t, e) {
|
|
997
997
|
const n = e.get(t);
|
|
998
998
|
if (n)
|
|
999
999
|
return n;
|
|
1000
|
-
let o = lt(t, [], !1).filter((c) =>
|
|
1001
|
-
const i =
|
|
1002
|
-
let s = i ?
|
|
1003
|
-
for (;
|
|
1004
|
-
const c =
|
|
1005
|
-
!a && c.position === "fixed" && (r = null), (i ? !a && !r : !a && c.position === "static" && !!r &&
|
|
1000
|
+
let o = lt(t, [], !1).filter((c) => I(c) && rt(c) !== "body"), r = null;
|
|
1001
|
+
const i = B(t).position === "fixed";
|
|
1002
|
+
let s = i ? U(t) : t;
|
|
1003
|
+
for (; I(s) && !et(s); ) {
|
|
1004
|
+
const c = B(s), a = Ft(s);
|
|
1005
|
+
!a && c.position === "fixed" && (r = null), (i ? !a && !r : !a && c.position === "static" && !!r && Un.has(r.position) || ut(s) && !a && ue(t, s)) ? o = o.filter((f) => f !== s) : r = c, s = U(s);
|
|
1006
1006
|
}
|
|
1007
1007
|
return e.set(t, o), o;
|
|
1008
1008
|
}
|
|
@@ -1013,10 +1013,10 @@ function to(t) {
|
|
|
1013
1013
|
rootBoundary: o,
|
|
1014
1014
|
strategy: r
|
|
1015
1015
|
} = t;
|
|
1016
|
-
const s = [...n === "clippingAncestors" ? bt(e) ? [] :
|
|
1017
|
-
const u =
|
|
1018
|
-
return l.top = H(u.top, l.top), l.right =
|
|
1019
|
-
},
|
|
1016
|
+
const s = [...n === "clippingAncestors" ? bt(e) ? [] : Jn(e, this._c) : [].concat(n), o], c = s[0], a = s.reduce((l, f) => {
|
|
1017
|
+
const u = Ut(e, f, r);
|
|
1018
|
+
return l.top = H(u.top, l.top), l.right = G(u.right, l.right), l.bottom = G(u.bottom, l.bottom), l.left = H(u.left, l.left), l;
|
|
1019
|
+
}, Ut(e, c, r));
|
|
1020
1020
|
return {
|
|
1021
1021
|
width: a.right - a.left,
|
|
1022
1022
|
height: a.bottom - a.top,
|
|
@@ -1035,7 +1035,7 @@ function eo(t) {
|
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
1037
|
function no(t, e, n) {
|
|
1038
|
-
const o = Y(e), r =
|
|
1038
|
+
const o = Y(e), r = K(e), i = n === "fixed", s = J(t, !0, i, e);
|
|
1039
1039
|
let c = {
|
|
1040
1040
|
scrollLeft: 0,
|
|
1041
1041
|
scrollTop: 0
|
|
@@ -1046,7 +1046,7 @@ function no(t, e, n) {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
if (o || !o && !i)
|
|
1048
1048
|
if ((rt(e) !== "body" || ut(r)) && (c = Ct(e)), o) {
|
|
1049
|
-
const d =
|
|
1049
|
+
const d = J(e, !0, i, e);
|
|
1050
1050
|
a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
|
|
1051
1051
|
} else r && l();
|
|
1052
1052
|
i && !o && r && l();
|
|
@@ -1059,32 +1059,32 @@ function no(t, e, n) {
|
|
|
1059
1059
|
};
|
|
1060
1060
|
}
|
|
1061
1061
|
function Ot(t) {
|
|
1062
|
-
return
|
|
1062
|
+
return B(t).position === "static";
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1065
|
-
if (!Y(t) ||
|
|
1064
|
+
function Zt(t, e) {
|
|
1065
|
+
if (!Y(t) || B(t).position === "fixed")
|
|
1066
1066
|
return null;
|
|
1067
1067
|
if (e)
|
|
1068
1068
|
return e(t);
|
|
1069
1069
|
let n = t.offsetParent;
|
|
1070
|
-
return
|
|
1070
|
+
return K(t) === n && (n = n.ownerDocument.body), n;
|
|
1071
1071
|
}
|
|
1072
1072
|
function de(t, e) {
|
|
1073
1073
|
const n = W(t);
|
|
1074
1074
|
if (bt(t))
|
|
1075
1075
|
return n;
|
|
1076
1076
|
if (!Y(t)) {
|
|
1077
|
-
let r =
|
|
1077
|
+
let r = U(t);
|
|
1078
1078
|
for (; r && !et(r); ) {
|
|
1079
|
-
if (
|
|
1079
|
+
if (I(r) && !Ot(r))
|
|
1080
1080
|
return r;
|
|
1081
|
-
r =
|
|
1081
|
+
r = U(r);
|
|
1082
1082
|
}
|
|
1083
1083
|
return n;
|
|
1084
1084
|
}
|
|
1085
|
-
let o =
|
|
1085
|
+
let o = Zt(t, e);
|
|
1086
1086
|
for (; o && Hn(o) && Ot(o); )
|
|
1087
|
-
o =
|
|
1087
|
+
o = Zt(o, e);
|
|
1088
1088
|
return o && et(o) && Ot(o) && !Ft(o) ? n : o || Vn(t) || n;
|
|
1089
1089
|
}
|
|
1090
1090
|
const oo = async function(t) {
|
|
@@ -1100,18 +1100,18 @@ const oo = async function(t) {
|
|
|
1100
1100
|
};
|
|
1101
1101
|
};
|
|
1102
1102
|
function ro(t) {
|
|
1103
|
-
return
|
|
1103
|
+
return B(t).direction === "rtl";
|
|
1104
1104
|
}
|
|
1105
1105
|
const io = {
|
|
1106
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1107
|
-
getDocumentElement:
|
|
1106
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Xn,
|
|
1107
|
+
getDocumentElement: K,
|
|
1108
1108
|
getClippingRect: to,
|
|
1109
1109
|
getOffsetParent: de,
|
|
1110
1110
|
getElementRects: oo,
|
|
1111
|
-
getClientRects:
|
|
1111
|
+
getClientRects: Qn,
|
|
1112
1112
|
getDimensions: eo,
|
|
1113
1113
|
getScale: tt,
|
|
1114
|
-
isElement:
|
|
1114
|
+
isElement: I,
|
|
1115
1115
|
isRTL: ro
|
|
1116
1116
|
};
|
|
1117
1117
|
function pe(t, e) {
|
|
@@ -1119,7 +1119,7 @@ function pe(t, e) {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
function so(t, e) {
|
|
1121
1121
|
let n = null, o;
|
|
1122
|
-
const r =
|
|
1122
|
+
const r = K(t);
|
|
1123
1123
|
function i() {
|
|
1124
1124
|
var c;
|
|
1125
1125
|
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
@@ -1136,7 +1136,7 @@ function so(t, e) {
|
|
|
1136
1136
|
return;
|
|
1137
1137
|
const h = ht(u), m = ht(r.clientWidth - (f + p)), x = ht(r.clientHeight - (u + d)), v = ht(f), b = {
|
|
1138
1138
|
rootMargin: -h + "px " + -m + "px " + -x + "px " + -v + "px",
|
|
1139
|
-
threshold: H(0,
|
|
1139
|
+
threshold: H(0, G(1, a)) || 1
|
|
1140
1140
|
};
|
|
1141
1141
|
let A = !0;
|
|
1142
1142
|
function P(O) {
|
|
@@ -1186,10 +1186,10 @@ function co(t, e, n, o) {
|
|
|
1186
1186
|
(b = d) == null || b.observe(e);
|
|
1187
1187
|
})), n();
|
|
1188
1188
|
}), l && !a && d.observe(l), d.observe(e));
|
|
1189
|
-
let h, m = a ?
|
|
1189
|
+
let h, m = a ? J(t) : null;
|
|
1190
1190
|
a && x();
|
|
1191
1191
|
function x() {
|
|
1192
|
-
const v =
|
|
1192
|
+
const v = J(t);
|
|
1193
1193
|
m && !pe(m, v) && n(), m = v, h = requestAnimationFrame(x);
|
|
1194
1194
|
}
|
|
1195
1195
|
return n(), () => {
|
|
@@ -1199,7 +1199,7 @@ function co(t, e, n, o) {
|
|
|
1199
1199
|
}), u?.(), (v = d) == null || v.disconnect(), d = null, a && cancelAnimationFrame(h);
|
|
1200
1200
|
};
|
|
1201
1201
|
}
|
|
1202
|
-
const ao =
|
|
1202
|
+
const ao = _n, lo = Ln, fo = kn, uo = Nn, po = Mn, Jt = En, ho = Tn, mo = (t, e, n) => {
|
|
1203
1203
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1204
1204
|
platform: io,
|
|
1205
1205
|
...n
|
|
@@ -1213,7 +1213,7 @@ const ao = Dn, lo = Ln, fo = kn, uo = Nn, po = _n, Qt = En, ho = Tn, mo = (t, e,
|
|
|
1213
1213
|
});
|
|
1214
1214
|
};
|
|
1215
1215
|
var go = typeof document < "u", wo = function() {
|
|
1216
|
-
}, mt = go ?
|
|
1216
|
+
}, mt = go ? qe : wo;
|
|
1217
1217
|
function xt(t, e) {
|
|
1218
1218
|
if (t === e)
|
|
1219
1219
|
return !0;
|
|
@@ -1284,7 +1284,7 @@ function vo(t) {
|
|
|
1284
1284
|
C !== O.current && (O.current = C, m(C));
|
|
1285
1285
|
}, []), b = g.useCallback((C) => {
|
|
1286
1286
|
C !== R.current && (R.current = C, v(C));
|
|
1287
|
-
}, []), A = i || h, P = s || x, O = g.useRef(null), R = g.useRef(null),
|
|
1287
|
+
}, []), A = i || h, P = s || x, O = g.useRef(null), R = g.useRef(null), _ = g.useRef(f), F = a != null, D = St(a), T = St(r), N = St(l), E = g.useCallback(() => {
|
|
1288
1288
|
if (!O.current || !R.current)
|
|
1289
1289
|
return;
|
|
1290
1290
|
const C = {
|
|
@@ -1293,7 +1293,7 @@ function vo(t) {
|
|
|
1293
1293
|
middleware: p
|
|
1294
1294
|
};
|
|
1295
1295
|
T.current && (C.platform = T.current), mo(O.current, R.current, C).then((L) => {
|
|
1296
|
-
const
|
|
1296
|
+
const z = {
|
|
1297
1297
|
...L,
|
|
1298
1298
|
// The floating element's position may be recomputed while it's closed
|
|
1299
1299
|
// but still mounted (such as when transitioning out). To ensure
|
|
@@ -1301,13 +1301,13 @@ function vo(t) {
|
|
|
1301
1301
|
// setting it to `true` when `open === false` (must be specified).
|
|
1302
1302
|
isPositioned: N.current !== !1
|
|
1303
1303
|
};
|
|
1304
|
-
S.current && !xt(
|
|
1305
|
-
u(
|
|
1304
|
+
S.current && !xt(_.current, z) && (_.current = z, fn.flushSync(() => {
|
|
1305
|
+
u(z);
|
|
1306
1306
|
}));
|
|
1307
1307
|
});
|
|
1308
1308
|
}, [p, e, n, T, N]);
|
|
1309
1309
|
mt(() => {
|
|
1310
|
-
l === !1 &&
|
|
1310
|
+
l === !1 && _.current.isPositioned && (_.current.isPositioned = !1, u((C) => ({
|
|
1311
1311
|
...C,
|
|
1312
1312
|
isPositioned: !1
|
|
1313
1313
|
})));
|
|
@@ -1317,11 +1317,11 @@ function vo(t) {
|
|
|
1317
1317
|
S.current = !1;
|
|
1318
1318
|
}), []), mt(() => {
|
|
1319
1319
|
if (A && (O.current = A), P && (R.current = P), A && P) {
|
|
1320
|
-
if (
|
|
1321
|
-
return
|
|
1320
|
+
if (D.current)
|
|
1321
|
+
return D.current(A, P, E);
|
|
1322
1322
|
E();
|
|
1323
1323
|
}
|
|
1324
|
-
}, [A, P, E,
|
|
1324
|
+
}, [A, P, E, D, F]);
|
|
1325
1325
|
const $ = g.useMemo(() => ({
|
|
1326
1326
|
reference: O,
|
|
1327
1327
|
floating: R,
|
|
@@ -1330,7 +1330,7 @@ function vo(t) {
|
|
|
1330
1330
|
}), [y, b]), k = g.useMemo(() => ({
|
|
1331
1331
|
reference: A,
|
|
1332
1332
|
floating: P
|
|
1333
|
-
}), [A, P]),
|
|
1333
|
+
}), [A, P]), M = g.useMemo(() => {
|
|
1334
1334
|
const C = {
|
|
1335
1335
|
position: n,
|
|
1336
1336
|
left: 0,
|
|
@@ -1338,17 +1338,17 @@ function vo(t) {
|
|
|
1338
1338
|
};
|
|
1339
1339
|
if (!k.floating)
|
|
1340
1340
|
return C;
|
|
1341
|
-
const L = te(k.floating, f.x),
|
|
1341
|
+
const L = te(k.floating, f.x), z = te(k.floating, f.y);
|
|
1342
1342
|
return c ? {
|
|
1343
1343
|
...C,
|
|
1344
|
-
transform: "translate(" + L + "px, " +
|
|
1344
|
+
transform: "translate(" + L + "px, " + z + "px)",
|
|
1345
1345
|
...he(k.floating) >= 1.5 && {
|
|
1346
1346
|
willChange: "transform"
|
|
1347
1347
|
}
|
|
1348
1348
|
} : {
|
|
1349
1349
|
position: n,
|
|
1350
1350
|
left: L,
|
|
1351
|
-
top:
|
|
1351
|
+
top: z
|
|
1352
1352
|
};
|
|
1353
1353
|
}, [n, c, k.floating, f.x, f.y]);
|
|
1354
1354
|
return g.useMemo(() => ({
|
|
@@ -1356,8 +1356,8 @@ function vo(t) {
|
|
|
1356
1356
|
update: E,
|
|
1357
1357
|
refs: $,
|
|
1358
1358
|
elements: k,
|
|
1359
|
-
floatingStyles:
|
|
1360
|
-
}), [f, E, $, k,
|
|
1359
|
+
floatingStyles: M
|
|
1360
|
+
}), [f, E, $, k, M]);
|
|
1361
1361
|
}
|
|
1362
1362
|
const xo = (t) => {
|
|
1363
1363
|
function e(n) {
|
|
@@ -1371,10 +1371,10 @@ const xo = (t) => {
|
|
|
1371
1371
|
element: o,
|
|
1372
1372
|
padding: r
|
|
1373
1373
|
} = typeof t == "function" ? t(n) : t;
|
|
1374
|
-
return o && e(o) ? o.current != null ?
|
|
1374
|
+
return o && e(o) ? o.current != null ? Jt({
|
|
1375
1375
|
element: o.current,
|
|
1376
1376
|
padding: r
|
|
1377
|
-
}).fn(n) : {} : o ?
|
|
1377
|
+
}).fn(n) : {} : o ? Jt({
|
|
1378
1378
|
element: o,
|
|
1379
1379
|
padding: r
|
|
1380
1380
|
}).fn(n) : {};
|
|
@@ -1418,11 +1418,11 @@ var So = "Arrow", me = g.forwardRef((t, e) => {
|
|
|
1418
1418
|
);
|
|
1419
1419
|
});
|
|
1420
1420
|
me.displayName = So;
|
|
1421
|
-
var Eo = me,
|
|
1421
|
+
var Eo = me, It = "Popper", [ge, we] = ne(It), [ko, ve] = ge(It), xe = (t) => {
|
|
1422
1422
|
const { __scopePopper: e, children: n } = t, [o, r] = g.useState(null);
|
|
1423
1423
|
return /* @__PURE__ */ w(ko, { scope: e, anchor: o, onAnchorChange: r, children: n });
|
|
1424
1424
|
};
|
|
1425
|
-
xe.displayName =
|
|
1425
|
+
xe.displayName = It;
|
|
1426
1426
|
var ye = "PopperAnchor", Ae = g.forwardRef(
|
|
1427
1427
|
(t, e) => {
|
|
1428
1428
|
const { __scopePopper: n, virtualRef: o, ...r } = t, i = ve(ye, n), s = g.useRef(null), c = yt(e, s), a = g.useRef(null);
|
|
@@ -1433,7 +1433,7 @@ var ye = "PopperAnchor", Ae = g.forwardRef(
|
|
|
1433
1433
|
}
|
|
1434
1434
|
);
|
|
1435
1435
|
Ae.displayName = ye;
|
|
1436
|
-
var
|
|
1436
|
+
var Bt = "PopperContent", [Mo, Do] = ge(Bt), Pe = g.forwardRef(
|
|
1437
1437
|
(t, e) => {
|
|
1438
1438
|
const {
|
|
1439
1439
|
__scopePopper: n,
|
|
@@ -1450,12 +1450,12 @@ var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = g.forwardRef(
|
|
|
1450
1450
|
updatePositionStrategy: d = "optimized",
|
|
1451
1451
|
onPlaced: h,
|
|
1452
1452
|
...m
|
|
1453
|
-
} = t, x = ve(
|
|
1454
|
-
padding:
|
|
1453
|
+
} = t, x = ve(Bt, n), [v, y] = g.useState(null), b = yt(e, (it) => y(it)), [A, P] = g.useState(null), O = mn(A), R = O?.width ?? 0, _ = O?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, T = Array.isArray(l) ? l : [l], N = T.length > 0, E = {
|
|
1454
|
+
padding: D,
|
|
1455
1455
|
boundary: T.filter(Lo),
|
|
1456
1456
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
1457
1457
|
altBoundary: N
|
|
1458
|
-
}, { refs: S, floatingStyles: $, placement: k, isPositioned:
|
|
1458
|
+
}, { refs: S, floatingStyles: $, placement: k, isPositioned: M, middlewareData: C } = vo({
|
|
1459
1459
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
1460
1460
|
strategy: "fixed",
|
|
1461
1461
|
placement: F,
|
|
@@ -1466,7 +1466,7 @@ var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = g.forwardRef(
|
|
|
1466
1466
|
reference: x.anchor
|
|
1467
1467
|
},
|
|
1468
1468
|
middleware: [
|
|
1469
|
-
yo({ mainAxis: r +
|
|
1469
|
+
yo({ mainAxis: r + _, alignmentAxis: s }),
|
|
1470
1470
|
a && Ao({
|
|
1471
1471
|
mainAxis: !0,
|
|
1472
1472
|
crossAxis: !1,
|
|
@@ -1477,21 +1477,21 @@ var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = g.forwardRef(
|
|
|
1477
1477
|
Co({
|
|
1478
1478
|
...E,
|
|
1479
1479
|
apply: ({ elements: it, rects: jt, availableWidth: Ve, availableHeight: je }) => {
|
|
1480
|
-
const { width: Ye, height:
|
|
1481
|
-
pt.setProperty("--radix-popper-available-width", `${Ve}px`), pt.setProperty("--radix-popper-available-height", `${je}px`), pt.setProperty("--radix-popper-anchor-width", `${Ye}px`), pt.setProperty("--radix-popper-anchor-height", `${
|
|
1480
|
+
const { width: Ye, height: Ke } = jt.reference, pt = it.floating.style;
|
|
1481
|
+
pt.setProperty("--radix-popper-available-width", `${Ve}px`), pt.setProperty("--radix-popper-available-height", `${je}px`), pt.setProperty("--radix-popper-anchor-width", `${Ye}px`), pt.setProperty("--radix-popper-anchor-height", `${Ke}px`);
|
|
1482
1482
|
}
|
|
1483
1483
|
}),
|
|
1484
1484
|
A && Oo({ element: A, padding: c }),
|
|
1485
|
-
To({ arrowWidth: R, arrowHeight:
|
|
1485
|
+
To({ arrowWidth: R, arrowHeight: _ }),
|
|
1486
1486
|
p && Ro({ strategy: "referenceHidden", ...E })
|
|
1487
1487
|
]
|
|
1488
|
-
}), [L,
|
|
1488
|
+
}), [L, z] = Re(k), Vt = Ge(h);
|
|
1489
1489
|
kt(() => {
|
|
1490
|
-
|
|
1491
|
-
}, [
|
|
1492
|
-
const He = C.arrow?.x, We = C.arrow?.y,
|
|
1490
|
+
M && Vt?.();
|
|
1491
|
+
}, [M, Vt]);
|
|
1492
|
+
const He = C.arrow?.x, We = C.arrow?.y, Ie = C.arrow?.centerOffset !== 0, [Be, ze] = g.useState();
|
|
1493
1493
|
return kt(() => {
|
|
1494
|
-
v &&
|
|
1494
|
+
v && ze(window.getComputedStyle(v).zIndex);
|
|
1495
1495
|
}, [v]), /* @__PURE__ */ w(
|
|
1496
1496
|
"div",
|
|
1497
1497
|
{
|
|
@@ -1499,10 +1499,10 @@ var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = g.forwardRef(
|
|
|
1499
1499
|
"data-radix-popper-content-wrapper": "",
|
|
1500
1500
|
style: {
|
|
1501
1501
|
...$,
|
|
1502
|
-
transform:
|
|
1502
|
+
transform: M ? $.transform : "translate(0, -200%)",
|
|
1503
1503
|
// keep off the page when measuring
|
|
1504
1504
|
minWidth: "max-content",
|
|
1505
|
-
zIndex:
|
|
1505
|
+
zIndex: Be,
|
|
1506
1506
|
"--radix-popper-transform-origin": [
|
|
1507
1507
|
C.transformOrigin?.x,
|
|
1508
1508
|
C.transformOrigin?.y
|
|
@@ -1517,26 +1517,26 @@ var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = g.forwardRef(
|
|
|
1517
1517
|
},
|
|
1518
1518
|
dir: t.dir,
|
|
1519
1519
|
children: /* @__PURE__ */ w(
|
|
1520
|
-
|
|
1520
|
+
Mo,
|
|
1521
1521
|
{
|
|
1522
1522
|
scope: n,
|
|
1523
1523
|
placedSide: L,
|
|
1524
1524
|
onArrowChange: P,
|
|
1525
1525
|
arrowX: He,
|
|
1526
1526
|
arrowY: We,
|
|
1527
|
-
shouldHideArrow:
|
|
1527
|
+
shouldHideArrow: Ie,
|
|
1528
1528
|
children: /* @__PURE__ */ w(
|
|
1529
1529
|
ft.div,
|
|
1530
1530
|
{
|
|
1531
1531
|
"data-side": L,
|
|
1532
|
-
"data-align":
|
|
1532
|
+
"data-align": z,
|
|
1533
1533
|
...m,
|
|
1534
1534
|
ref: b,
|
|
1535
1535
|
style: {
|
|
1536
1536
|
...m.style,
|
|
1537
1537
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
1538
1538
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
1539
|
-
animation:
|
|
1539
|
+
animation: M ? void 0 : "none"
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
1542
|
)
|
|
@@ -1546,14 +1546,14 @@ var zt = "PopperContent", [_o, Mo] = ge(zt), Pe = g.forwardRef(
|
|
|
1546
1546
|
);
|
|
1547
1547
|
}
|
|
1548
1548
|
);
|
|
1549
|
-
Pe.displayName =
|
|
1550
|
-
var be = "PopperArrow",
|
|
1549
|
+
Pe.displayName = Bt;
|
|
1550
|
+
var be = "PopperArrow", _o = {
|
|
1551
1551
|
top: "bottom",
|
|
1552
1552
|
right: "left",
|
|
1553
1553
|
bottom: "top",
|
|
1554
1554
|
left: "right"
|
|
1555
1555
|
}, Ce = g.forwardRef(function(e, n) {
|
|
1556
|
-
const { __scopePopper: o, ...r } = e, i =
|
|
1556
|
+
const { __scopePopper: o, ...r } = e, i = Do(be, o), s = _o[i.placedSide];
|
|
1557
1557
|
return (
|
|
1558
1558
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
1559
1559
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -1616,7 +1616,7 @@ function Re(t) {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
var No = xe, Oe = Ae, Fo = Pe, $o = Ce, Rt = "Popover", [Se, fr] = ne(Rt, [
|
|
1618
1618
|
we
|
|
1619
|
-
]), dt = we(), [Ho,
|
|
1619
|
+
]), dt = we(), [Ho, Z] = Se(Rt), Ee = (t) => {
|
|
1620
1620
|
const {
|
|
1621
1621
|
__scopePopover: e,
|
|
1622
1622
|
children: n,
|
|
@@ -1624,7 +1624,7 @@ var No = xe, Oe = Ae, Fo = Pe, $o = Ce, Rt = "Popover", [Se, fr] = ne(Rt, [
|
|
|
1624
1624
|
defaultOpen: r,
|
|
1625
1625
|
onOpenChange: i,
|
|
1626
1626
|
modal: s = !1
|
|
1627
|
-
} = t, c = dt(e), a = g.useRef(null), [l, f] = g.useState(!1), [u, p] =
|
|
1627
|
+
} = t, c = dt(e), a = g.useRef(null), [l, f] = g.useState(!1), [u, p] = Ue({
|
|
1628
1628
|
prop: o,
|
|
1629
1629
|
defaultProp: r ?? !1,
|
|
1630
1630
|
onChange: i,
|
|
@@ -1634,7 +1634,7 @@ var No = xe, Oe = Ae, Fo = Pe, $o = Ce, Rt = "Popover", [Se, fr] = ne(Rt, [
|
|
|
1634
1634
|
Ho,
|
|
1635
1635
|
{
|
|
1636
1636
|
scope: e,
|
|
1637
|
-
contentId:
|
|
1637
|
+
contentId: Ze(),
|
|
1638
1638
|
triggerRef: a,
|
|
1639
1639
|
open: u,
|
|
1640
1640
|
onOpenChange: p,
|
|
@@ -1648,16 +1648,16 @@ var No = xe, Oe = Ae, Fo = Pe, $o = Ce, Rt = "Popover", [Se, fr] = ne(Rt, [
|
|
|
1648
1648
|
) });
|
|
1649
1649
|
};
|
|
1650
1650
|
Ee.displayName = Rt;
|
|
1651
|
-
var ke = "PopoverAnchor",
|
|
1651
|
+
var ke = "PopoverAnchor", Me = g.forwardRef(
|
|
1652
1652
|
(t, e) => {
|
|
1653
|
-
const { __scopePopover: n, ...o } = t, r =
|
|
1653
|
+
const { __scopePopover: n, ...o } = t, r = Z(ke, n), i = dt(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = r;
|
|
1654
1654
|
return g.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ w(Oe, { ...i, ...o, ref: e });
|
|
1655
1655
|
}
|
|
1656
1656
|
);
|
|
1657
|
-
|
|
1658
|
-
var
|
|
1657
|
+
Me.displayName = ke;
|
|
1658
|
+
var De = "PopoverTrigger", _e = g.forwardRef(
|
|
1659
1659
|
(t, e) => {
|
|
1660
|
-
const { __scopePopover: n, ...o } = t, r =
|
|
1660
|
+
const { __scopePopover: n, ...o } = t, r = Z(De, n), i = dt(n), s = yt(e, r.triggerRef), c = /* @__PURE__ */ w(
|
|
1661
1661
|
ft.button,
|
|
1662
1662
|
{
|
|
1663
1663
|
type: "button",
|
|
@@ -1673,28 +1673,28 @@ var Me = "PopoverTrigger", De = g.forwardRef(
|
|
|
1673
1673
|
return r.hasCustomAnchor ? c : /* @__PURE__ */ w(Oe, { asChild: !0, ...i, children: c });
|
|
1674
1674
|
}
|
|
1675
1675
|
);
|
|
1676
|
-
|
|
1677
|
-
var
|
|
1676
|
+
_e.displayName = De;
|
|
1677
|
+
var zt = "PopoverPortal", [Wo, Io] = Se(zt, {
|
|
1678
1678
|
forceMount: void 0
|
|
1679
1679
|
}), Le = (t) => {
|
|
1680
|
-
const { __scopePopover: e, forceMount: n, children: o, container: r } = t, i =
|
|
1681
|
-
return /* @__PURE__ */ w(Wo, { scope: e, forceMount: n, children: /* @__PURE__ */ w(oe, { present: n || i.open, children: /* @__PURE__ */ w(
|
|
1680
|
+
const { __scopePopover: e, forceMount: n, children: o, container: r } = t, i = Z(zt, e);
|
|
1681
|
+
return /* @__PURE__ */ w(Wo, { scope: e, forceMount: n, children: /* @__PURE__ */ w(oe, { present: n || i.open, children: /* @__PURE__ */ w(Je, { asChild: !0, container: r, children: o }) }) });
|
|
1682
1682
|
};
|
|
1683
|
-
Le.displayName =
|
|
1683
|
+
Le.displayName = zt;
|
|
1684
1684
|
var nt = "PopoverContent", Te = g.forwardRef(
|
|
1685
1685
|
(t, e) => {
|
|
1686
|
-
const n =
|
|
1687
|
-
return /* @__PURE__ */ w(oe, { present: o || i.open, children: i.modal ? /* @__PURE__ */ w(
|
|
1686
|
+
const n = Io(nt, t.__scopePopover), { forceMount: o = n.forceMount, ...r } = t, i = Z(nt, t.__scopePopover);
|
|
1687
|
+
return /* @__PURE__ */ w(oe, { present: o || i.open, children: i.modal ? /* @__PURE__ */ w(zo, { ...r, ref: e }) : /* @__PURE__ */ w(Vo, { ...r, ref: e }) });
|
|
1688
1688
|
}
|
|
1689
1689
|
);
|
|
1690
1690
|
Te.displayName = nt;
|
|
1691
|
-
var
|
|
1691
|
+
var Bo = nn("PopoverContent.RemoveScroll"), zo = g.forwardRef(
|
|
1692
1692
|
(t, e) => {
|
|
1693
|
-
const n =
|
|
1693
|
+
const n = Z(nt, t.__scopePopover), o = g.useRef(null), r = yt(e, o), i = g.useRef(!1);
|
|
1694
1694
|
return g.useEffect(() => {
|
|
1695
1695
|
const s = o.current;
|
|
1696
1696
|
if (s) return tn(s);
|
|
1697
|
-
}, []), /* @__PURE__ */ w(en, { as:
|
|
1697
|
+
}, []), /* @__PURE__ */ w(en, { as: Bo, allowPinchZoom: !0, children: /* @__PURE__ */ w(
|
|
1698
1698
|
Ne,
|
|
1699
1699
|
{
|
|
1700
1700
|
...t,
|
|
@@ -1722,7 +1722,7 @@ var zo = nn("PopoverContent.RemoveScroll"), Io = g.forwardRef(
|
|
|
1722
1722
|
}
|
|
1723
1723
|
), Vo = g.forwardRef(
|
|
1724
1724
|
(t, e) => {
|
|
1725
|
-
const n =
|
|
1725
|
+
const n = Z(nt, t.__scopePopover), o = g.useRef(!1), r = g.useRef(!1);
|
|
1726
1726
|
return /* @__PURE__ */ w(
|
|
1727
1727
|
Ne,
|
|
1728
1728
|
{
|
|
@@ -1754,7 +1754,7 @@ var zo = nn("PopoverContent.RemoveScroll"), Io = g.forwardRef(
|
|
|
1754
1754
|
onFocusOutside: l,
|
|
1755
1755
|
onInteractOutside: f,
|
|
1756
1756
|
...u
|
|
1757
|
-
} = t, p =
|
|
1757
|
+
} = t, p = Z(nt, n), d = dt(n);
|
|
1758
1758
|
return on(), /* @__PURE__ */ w(
|
|
1759
1759
|
rn,
|
|
1760
1760
|
{
|
|
@@ -1799,7 +1799,7 @@ var zo = nn("PopoverContent.RemoveScroll"), Io = g.forwardRef(
|
|
|
1799
1799
|
}
|
|
1800
1800
|
), Fe = "PopoverClose", jo = g.forwardRef(
|
|
1801
1801
|
(t, e) => {
|
|
1802
|
-
const { __scopePopover: n, ...o } = t, r =
|
|
1802
|
+
const { __scopePopover: n, ...o } = t, r = Z(Fe, n);
|
|
1803
1803
|
return /* @__PURE__ */ w(
|
|
1804
1804
|
ft.button,
|
|
1805
1805
|
{
|
|
@@ -1812,26 +1812,26 @@ var zo = nn("PopoverContent.RemoveScroll"), Io = g.forwardRef(
|
|
|
1812
1812
|
}
|
|
1813
1813
|
);
|
|
1814
1814
|
jo.displayName = Fe;
|
|
1815
|
-
var Yo = "PopoverArrow",
|
|
1815
|
+
var Yo = "PopoverArrow", Ko = g.forwardRef(
|
|
1816
1816
|
(t, e) => {
|
|
1817
1817
|
const { __scopePopover: n, ...o } = t, r = dt(n);
|
|
1818
1818
|
return /* @__PURE__ */ w($o, { ...r, ...o, ref: e });
|
|
1819
1819
|
}
|
|
1820
1820
|
);
|
|
1821
|
-
|
|
1821
|
+
Ko.displayName = Yo;
|
|
1822
1822
|
function $e(t) {
|
|
1823
1823
|
return t ? "open" : "closed";
|
|
1824
1824
|
}
|
|
1825
|
-
var
|
|
1826
|
-
const
|
|
1827
|
-
anchor:
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1825
|
+
var Xo = Ee, Qo = Me, qo = _e, Go = Le, Uo = Te;
|
|
1826
|
+
const Zo = "gQIKVa_anchor", Jo = "gQIKVa_check", tr = "gQIKVa_container", er = "gQIKVa_radio", nr = "gQIKVa_radioInput", ct = {
|
|
1827
|
+
anchor: Zo,
|
|
1828
|
+
check: Jo,
|
|
1829
|
+
container: tr,
|
|
1830
|
+
radio: er,
|
|
1831
1831
|
radioInput: nr
|
|
1832
1832
|
};
|
|
1833
1833
|
function Et({ children: t, id: e, ...n }) {
|
|
1834
|
-
return /* @__PURE__ */
|
|
1834
|
+
return /* @__PURE__ */ q(ee, { children: [
|
|
1835
1835
|
/* @__PURE__ */ w(
|
|
1836
1836
|
"input",
|
|
1837
1837
|
{
|
|
@@ -1841,28 +1841,28 @@ function Et({ children: t, id: e, ...n }) {
|
|
|
1841
1841
|
...n
|
|
1842
1842
|
}
|
|
1843
1843
|
),
|
|
1844
|
-
/* @__PURE__ */
|
|
1844
|
+
/* @__PURE__ */ q("label", { htmlFor: e, className: ct.radio, children: [
|
|
1845
1845
|
t,
|
|
1846
1846
|
/* @__PURE__ */ w(cn, { className: ct.check })
|
|
1847
1847
|
] })
|
|
1848
1848
|
] });
|
|
1849
1849
|
}
|
|
1850
1850
|
function ur() {
|
|
1851
|
-
const { theme: t, systemTheme: e, setTheme: n } =
|
|
1852
|
-
return /* @__PURE__ */
|
|
1853
|
-
/* @__PURE__ */ w(
|
|
1851
|
+
const { theme: t, systemTheme: e, setTheme: n } = Xe(), o = Qe();
|
|
1852
|
+
return /* @__PURE__ */ q(Xo, { children: [
|
|
1853
|
+
/* @__PURE__ */ w(qo, { asChild: !0, children: /* @__PURE__ */ q(ln, { variant: "transparent", "aria-label": "Preferences", children: [
|
|
1854
1854
|
/* @__PURE__ */ w(pn, {}),
|
|
1855
|
-
/* @__PURE__ */ w(
|
|
1855
|
+
/* @__PURE__ */ w(Qo, { className: ct.anchor })
|
|
1856
1856
|
] }) }),
|
|
1857
|
-
/* @__PURE__ */ w(
|
|
1858
|
-
|
|
1857
|
+
/* @__PURE__ */ w(Go, { children: /* @__PURE__ */ w(
|
|
1858
|
+
Uo,
|
|
1859
1859
|
{
|
|
1860
1860
|
sideOffset: 8,
|
|
1861
1861
|
hideWhenDetached: !0,
|
|
1862
1862
|
className: ct.container,
|
|
1863
|
-
children: o && /* @__PURE__ */
|
|
1863
|
+
children: o && /* @__PURE__ */ q(ee, { children: [
|
|
1864
1864
|
/* @__PURE__ */ w("span", { children: "Appearance" }),
|
|
1865
|
-
/* @__PURE__ */
|
|
1865
|
+
/* @__PURE__ */ q(
|
|
1866
1866
|
Et,
|
|
1867
1867
|
{
|
|
1868
1868
|
id: "system",
|
|
@@ -1877,7 +1877,7 @@ function ur() {
|
|
|
1877
1877
|
]
|
|
1878
1878
|
}
|
|
1879
1879
|
),
|
|
1880
|
-
/* @__PURE__ */
|
|
1880
|
+
/* @__PURE__ */ q(
|
|
1881
1881
|
Et,
|
|
1882
1882
|
{
|
|
1883
1883
|
id: "light",
|
|
@@ -1890,7 +1890,7 @@ function ur() {
|
|
|
1890
1890
|
]
|
|
1891
1891
|
}
|
|
1892
1892
|
),
|
|
1893
|
-
/* @__PURE__ */
|
|
1893
|
+
/* @__PURE__ */ q(
|
|
1894
1894
|
Et,
|
|
1895
1895
|
{
|
|
1896
1896
|
id: "dark",
|