@datavac/ui-kit 1.2.0 → 1.3.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/components/Tabs/Tabs.d.ts +27 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1045 -755
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -188,8 +188,8 @@ var _ = (e, t) => {
|
|
|
188
188
|
parseClassName: ie(e),
|
|
189
189
|
sortModifiers: I(e),
|
|
190
190
|
...C(e)
|
|
191
|
-
}),
|
|
192
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(
|
|
191
|
+
}), ae = /\s+/, oe = (e, t) => {
|
|
192
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(ae), c = "";
|
|
193
193
|
for (let e = s.length - 1; e >= 0; --e) {
|
|
194
194
|
let t = s[e], { isExternal: l, modifiers: u, hasImportantModifier: d, baseClassName: f, maybePostfixModifierPosition: p } = n(t);
|
|
195
195
|
if (l) {
|
|
@@ -219,34 +219,34 @@ var _ = (e, t) => {
|
|
|
219
219
|
c = t + (c.length > 0 ? " " + c : c);
|
|
220
220
|
}
|
|
221
221
|
return c;
|
|
222
|
-
},
|
|
222
|
+
}, R = (...e) => {
|
|
223
223
|
let t = 0, n, r, i = "";
|
|
224
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
224
|
+
for (; t < e.length;) (n = e[t++]) && (r = se(n)) && (i && (i += " "), i += r);
|
|
225
225
|
return i;
|
|
226
|
-
},
|
|
226
|
+
}, se = (e) => {
|
|
227
227
|
if (typeof e == "string") return e;
|
|
228
228
|
let t, n = "";
|
|
229
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
229
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = se(e[r])) && (n && (n += " "), n += t);
|
|
230
230
|
return n;
|
|
231
|
-
},
|
|
231
|
+
}, ce = (e, ...t) => {
|
|
232
232
|
let n, r, i, a, o = (o) => (n = L(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
233
233
|
let t = r(e);
|
|
234
234
|
if (t) return t;
|
|
235
|
-
let a =
|
|
235
|
+
let a = oe(e, n);
|
|
236
236
|
return i(e, a), a;
|
|
237
237
|
};
|
|
238
|
-
return a = o, (...e) => a(
|
|
239
|
-
},
|
|
240
|
-
let t = (t) => t[e] ||
|
|
238
|
+
return a = o, (...e) => a(R(...e));
|
|
239
|
+
}, le = [], z = (e) => {
|
|
240
|
+
let t = (t) => t[e] || le;
|
|
241
241
|
return t.isThemeGetter = !0, t;
|
|
242
|
-
},
|
|
243
|
-
let r = le.exec(e);
|
|
244
|
-
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
245
|
-
}, He = (e, t, n = !1) => {
|
|
242
|
+
}, ue = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, de = /^\((?:(\w[\w-]*):)?(.+)\)$/i, fe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, pe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, me = /\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$/, he = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ge = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _e = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ve = (e) => fe.test(e), B = (e) => !!e && !Number.isNaN(Number(e)), ye = (e) => !!e && Number.isInteger(Number(e)), be = (e) => e.endsWith("%") && B(e.slice(0, -1)), V = (e) => pe.test(e), xe = () => !0, Se = (e) => me.test(e) && !he.test(e), Ce = () => !1, we = (e) => ge.test(e), Te = (e) => _e.test(e), Ee = (e) => !H(e) && !U(e), De = (e) => He(e, Ke, Ce), H = (e) => ue.test(e), Oe = (e) => He(e, qe, Se), ke = (e) => He(e, Je, B), Ae = (e) => He(e, Xe, xe), je = (e) => He(e, Ye, Ce), Me = (e) => He(e, We, Ce), Ne = (e) => He(e, Ge, Te), Pe = (e) => He(e, Ze, we), U = (e) => de.test(e), Fe = (e) => Ue(e, qe), Ie = (e) => Ue(e, Ye), Le = (e) => Ue(e, We), Re = (e) => Ue(e, Ke), ze = (e) => Ue(e, Ge), Be = (e) => Ue(e, Ze, !0), Ve = (e) => Ue(e, Xe, !0), He = (e, t, n) => {
|
|
246
243
|
let r = ue.exec(e);
|
|
244
|
+
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
245
|
+
}, Ue = (e, t, n = !1) => {
|
|
246
|
+
let r = de.exec(e);
|
|
247
247
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
248
|
-
},
|
|
249
|
-
let e =
|
|
248
|
+
}, We = (e) => e === "position" || e === "percentage", Ge = (e) => e === "image" || e === "url", Ke = (e) => e === "length" || e === "size" || e === "bg-size", qe = (e) => e === "length", Je = (e) => e === "number", Ye = (e) => e === "family-name", Xe = (e) => e === "number" || e === "weight", Ze = (e) => e === "shadow", Qe = /* @__PURE__ */ ce(() => {
|
|
249
|
+
let e = z("color"), t = z("font"), n = z("text"), r = z("font-weight"), i = z("tracking"), a = z("leading"), o = z("breakpoint"), s = z("container"), c = z("spacing"), l = z("radius"), u = z("shadow"), d = z("inset-shadow"), f = z("text-shadow"), p = z("drop-shadow"), m = z("blur"), h = z("perspective"), g = z("aspect"), _ = z("ease"), v = z("animate"), y = () => [
|
|
250
250
|
"auto",
|
|
251
251
|
"avoid",
|
|
252
252
|
"all",
|
|
@@ -271,8 +271,8 @@ var _ = (e, t) => {
|
|
|
271
271
|
"left-bottom"
|
|
272
272
|
], x = () => [
|
|
273
273
|
...b(),
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
U,
|
|
275
|
+
H
|
|
276
276
|
], S = () => [
|
|
277
277
|
"auto",
|
|
278
278
|
"hidden",
|
|
@@ -284,43 +284,43 @@ var _ = (e, t) => {
|
|
|
284
284
|
"contain",
|
|
285
285
|
"none"
|
|
286
286
|
], w = () => [
|
|
287
|
-
W,
|
|
288
287
|
U,
|
|
288
|
+
H,
|
|
289
289
|
c
|
|
290
290
|
], T = () => [
|
|
291
|
-
|
|
291
|
+
ve,
|
|
292
292
|
"full",
|
|
293
293
|
"auto",
|
|
294
294
|
...w()
|
|
295
295
|
], E = () => [
|
|
296
|
-
|
|
296
|
+
ye,
|
|
297
297
|
"none",
|
|
298
298
|
"subgrid",
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
U,
|
|
300
|
+
H
|
|
301
301
|
], ee = () => [
|
|
302
302
|
"auto",
|
|
303
303
|
{ span: [
|
|
304
304
|
"full",
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
305
|
+
ye,
|
|
306
|
+
U,
|
|
307
|
+
H
|
|
308
308
|
] },
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
ye,
|
|
310
|
+
U,
|
|
311
|
+
H
|
|
312
312
|
], D = () => [
|
|
313
|
-
|
|
313
|
+
ye,
|
|
314
314
|
"auto",
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
U,
|
|
316
|
+
H
|
|
317
317
|
], O = () => [
|
|
318
318
|
"auto",
|
|
319
319
|
"min",
|
|
320
320
|
"max",
|
|
321
321
|
"fr",
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
U,
|
|
323
|
+
H
|
|
324
324
|
], k = () => [
|
|
325
325
|
"start",
|
|
326
326
|
"end",
|
|
@@ -340,7 +340,7 @@ var _ = (e, t) => {
|
|
|
340
340
|
"center-safe",
|
|
341
341
|
"end-safe"
|
|
342
342
|
], j = () => ["auto", ...w()], M = () => [
|
|
343
|
-
|
|
343
|
+
ve,
|
|
344
344
|
"auto",
|
|
345
345
|
"full",
|
|
346
346
|
"dvw",
|
|
@@ -354,7 +354,7 @@ var _ = (e, t) => {
|
|
|
354
354
|
"fit",
|
|
355
355
|
...w()
|
|
356
356
|
], N = () => [
|
|
357
|
-
|
|
357
|
+
ve,
|
|
358
358
|
"screen",
|
|
359
359
|
"full",
|
|
360
360
|
"dvw",
|
|
@@ -365,7 +365,7 @@ var _ = (e, t) => {
|
|
|
365
365
|
"fit",
|
|
366
366
|
...w()
|
|
367
367
|
], P = () => [
|
|
368
|
-
|
|
368
|
+
ve,
|
|
369
369
|
"screen",
|
|
370
370
|
"full",
|
|
371
371
|
"lh",
|
|
@@ -378,13 +378,13 @@ var _ = (e, t) => {
|
|
|
378
378
|
...w()
|
|
379
379
|
], F = () => [
|
|
380
380
|
e,
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
U,
|
|
382
|
+
H
|
|
383
383
|
], te = () => [
|
|
384
384
|
...b(),
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
{ position: [
|
|
385
|
+
Le,
|
|
386
|
+
Me,
|
|
387
|
+
{ position: [U, H] }
|
|
388
388
|
], ne = () => ["no-repeat", { repeat: [
|
|
389
389
|
"",
|
|
390
390
|
"x",
|
|
@@ -395,31 +395,31 @@ var _ = (e, t) => {
|
|
|
395
395
|
"auto",
|
|
396
396
|
"cover",
|
|
397
397
|
"contain",
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
{ size: [
|
|
398
|
+
Re,
|
|
399
|
+
De,
|
|
400
|
+
{ size: [U, H] }
|
|
401
401
|
], ie = () => [
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
402
|
+
be,
|
|
403
|
+
Fe,
|
|
404
|
+
Oe
|
|
405
405
|
], I = () => [
|
|
406
406
|
"",
|
|
407
407
|
"none",
|
|
408
408
|
"full",
|
|
409
409
|
l,
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
U,
|
|
411
|
+
H
|
|
412
412
|
], L = () => [
|
|
413
413
|
"",
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
],
|
|
414
|
+
B,
|
|
415
|
+
Fe,
|
|
416
|
+
Oe
|
|
417
|
+
], ae = () => [
|
|
418
418
|
"solid",
|
|
419
419
|
"dashed",
|
|
420
420
|
"dotted",
|
|
421
421
|
"double"
|
|
422
|
-
],
|
|
422
|
+
], oe = () => [
|
|
423
423
|
"normal",
|
|
424
424
|
"multiply",
|
|
425
425
|
"screen",
|
|
@@ -436,33 +436,33 @@ var _ = (e, t) => {
|
|
|
436
436
|
"saturation",
|
|
437
437
|
"color",
|
|
438
438
|
"luminosity"
|
|
439
|
-
],
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
],
|
|
439
|
+
], R = () => [
|
|
440
|
+
B,
|
|
441
|
+
be,
|
|
442
|
+
Le,
|
|
443
|
+
Me
|
|
444
|
+
], se = () => [
|
|
445
445
|
"",
|
|
446
446
|
"none",
|
|
447
447
|
m,
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
], se = () => [
|
|
451
|
-
"none",
|
|
452
|
-
V,
|
|
453
|
-
W,
|
|
454
|
-
U
|
|
448
|
+
U,
|
|
449
|
+
H
|
|
455
450
|
], ce = () => [
|
|
456
451
|
"none",
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
452
|
+
B,
|
|
453
|
+
U,
|
|
454
|
+
H
|
|
460
455
|
], le = () => [
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
U
|
|
456
|
+
"none",
|
|
457
|
+
B,
|
|
458
|
+
U,
|
|
459
|
+
H
|
|
464
460
|
], ue = () => [
|
|
465
|
-
|
|
461
|
+
B,
|
|
462
|
+
U,
|
|
463
|
+
H
|
|
464
|
+
], de = () => [
|
|
465
|
+
ve,
|
|
466
466
|
"full",
|
|
467
467
|
...w()
|
|
468
468
|
];
|
|
@@ -476,17 +476,17 @@ var _ = (e, t) => {
|
|
|
476
476
|
"bounce"
|
|
477
477
|
],
|
|
478
478
|
aspect: ["video"],
|
|
479
|
-
blur: [
|
|
480
|
-
breakpoint: [
|
|
481
|
-
color: [
|
|
482
|
-
container: [
|
|
483
|
-
"drop-shadow": [
|
|
479
|
+
blur: [V],
|
|
480
|
+
breakpoint: [V],
|
|
481
|
+
color: [xe],
|
|
482
|
+
container: [V],
|
|
483
|
+
"drop-shadow": [V],
|
|
484
484
|
ease: [
|
|
485
485
|
"in",
|
|
486
486
|
"out",
|
|
487
487
|
"in-out"
|
|
488
488
|
],
|
|
489
|
-
font: [
|
|
489
|
+
font: [Ee],
|
|
490
490
|
"font-weight": [
|
|
491
491
|
"thin",
|
|
492
492
|
"extralight",
|
|
@@ -498,7 +498,7 @@ var _ = (e, t) => {
|
|
|
498
498
|
"extrabold",
|
|
499
499
|
"black"
|
|
500
500
|
],
|
|
501
|
-
"inset-shadow": [
|
|
501
|
+
"inset-shadow": [V],
|
|
502
502
|
leading: [
|
|
503
503
|
"none",
|
|
504
504
|
"tight",
|
|
@@ -515,11 +515,11 @@ var _ = (e, t) => {
|
|
|
515
515
|
"distant",
|
|
516
516
|
"none"
|
|
517
517
|
],
|
|
518
|
-
radius: [
|
|
519
|
-
shadow: [
|
|
520
|
-
spacing: ["px",
|
|
521
|
-
text: [
|
|
522
|
-
"text-shadow": [
|
|
518
|
+
radius: [V],
|
|
519
|
+
shadow: [V],
|
|
520
|
+
spacing: ["px", B],
|
|
521
|
+
text: [V],
|
|
522
|
+
"text-shadow": [V],
|
|
523
523
|
tracking: [
|
|
524
524
|
"tighter",
|
|
525
525
|
"tight",
|
|
@@ -533,16 +533,16 @@ var _ = (e, t) => {
|
|
|
533
533
|
aspect: [{ aspect: [
|
|
534
534
|
"auto",
|
|
535
535
|
"square",
|
|
536
|
-
|
|
536
|
+
ve,
|
|
537
|
+
H,
|
|
537
538
|
U,
|
|
538
|
-
W,
|
|
539
539
|
g
|
|
540
540
|
] }],
|
|
541
541
|
container: ["container"],
|
|
542
542
|
columns: [{ columns: [
|
|
543
|
-
|
|
543
|
+
B,
|
|
544
|
+
H,
|
|
544
545
|
U,
|
|
545
|
-
W,
|
|
546
546
|
s
|
|
547
547
|
] }],
|
|
548
548
|
"break-after": [{ "break-after": y() }],
|
|
@@ -639,13 +639,13 @@ var _ = (e, t) => {
|
|
|
639
639
|
"collapse"
|
|
640
640
|
],
|
|
641
641
|
z: [{ z: [
|
|
642
|
-
|
|
642
|
+
ye,
|
|
643
643
|
"auto",
|
|
644
|
-
|
|
645
|
-
|
|
644
|
+
U,
|
|
645
|
+
H
|
|
646
646
|
] }],
|
|
647
647
|
basis: [{ basis: [
|
|
648
|
-
|
|
648
|
+
ve,
|
|
649
649
|
"full",
|
|
650
650
|
"auto",
|
|
651
651
|
s,
|
|
@@ -663,32 +663,32 @@ var _ = (e, t) => {
|
|
|
663
663
|
"wrap-reverse"
|
|
664
664
|
] }],
|
|
665
665
|
flex: [{ flex: [
|
|
666
|
-
|
|
667
|
-
|
|
666
|
+
B,
|
|
667
|
+
ve,
|
|
668
668
|
"auto",
|
|
669
669
|
"initial",
|
|
670
670
|
"none",
|
|
671
|
-
|
|
671
|
+
H
|
|
672
672
|
] }],
|
|
673
673
|
grow: [{ grow: [
|
|
674
674
|
"",
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
675
|
+
B,
|
|
676
|
+
U,
|
|
677
|
+
H
|
|
678
678
|
] }],
|
|
679
679
|
shrink: [{ shrink: [
|
|
680
680
|
"",
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
681
|
+
B,
|
|
682
|
+
U,
|
|
683
|
+
H
|
|
684
684
|
] }],
|
|
685
685
|
order: [{ order: [
|
|
686
|
-
|
|
686
|
+
ye,
|
|
687
687
|
"first",
|
|
688
688
|
"last",
|
|
689
689
|
"none",
|
|
690
|
-
|
|
691
|
-
|
|
690
|
+
U,
|
|
691
|
+
H
|
|
692
692
|
] }],
|
|
693
693
|
"grid-cols": [{ "grid-cols": E() }],
|
|
694
694
|
"col-start-end": [{ col: ee() }],
|
|
@@ -794,15 +794,15 @@ var _ = (e, t) => {
|
|
|
794
794
|
"font-size": [{ text: [
|
|
795
795
|
"base",
|
|
796
796
|
n,
|
|
797
|
-
|
|
798
|
-
|
|
797
|
+
Fe,
|
|
798
|
+
Oe
|
|
799
799
|
] }],
|
|
800
800
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
801
801
|
"font-style": ["italic", "not-italic"],
|
|
802
802
|
"font-weight": [{ font: [
|
|
803
803
|
r,
|
|
804
|
-
|
|
805
|
-
|
|
804
|
+
Ve,
|
|
805
|
+
Ae
|
|
806
806
|
] }],
|
|
807
807
|
"font-stretch": [{ "font-stretch": [
|
|
808
808
|
"ultra-condensed",
|
|
@@ -814,15 +814,15 @@ var _ = (e, t) => {
|
|
|
814
814
|
"expanded",
|
|
815
815
|
"extra-expanded",
|
|
816
816
|
"ultra-expanded",
|
|
817
|
-
|
|
818
|
-
|
|
817
|
+
be,
|
|
818
|
+
H
|
|
819
819
|
] }],
|
|
820
820
|
"font-family": [{ font: [
|
|
821
|
-
|
|
822
|
-
|
|
821
|
+
Ie,
|
|
822
|
+
je,
|
|
823
823
|
t
|
|
824
824
|
] }],
|
|
825
|
-
"font-features": [{ "font-features": [
|
|
825
|
+
"font-features": [{ "font-features": [H] }],
|
|
826
826
|
"fvn-normal": ["normal-nums"],
|
|
827
827
|
"fvn-ordinal": ["ordinal"],
|
|
828
828
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -831,28 +831,28 @@ var _ = (e, t) => {
|
|
|
831
831
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
832
832
|
tracking: [{ tracking: [
|
|
833
833
|
i,
|
|
834
|
-
|
|
835
|
-
|
|
834
|
+
U,
|
|
835
|
+
H
|
|
836
836
|
] }],
|
|
837
837
|
"line-clamp": [{ "line-clamp": [
|
|
838
|
-
|
|
838
|
+
B,
|
|
839
839
|
"none",
|
|
840
|
-
|
|
841
|
-
|
|
840
|
+
U,
|
|
841
|
+
ke
|
|
842
842
|
] }],
|
|
843
843
|
leading: [{ leading: [a, ...w()] }],
|
|
844
844
|
"list-image": [{ "list-image": [
|
|
845
845
|
"none",
|
|
846
|
-
|
|
847
|
-
|
|
846
|
+
U,
|
|
847
|
+
H
|
|
848
848
|
] }],
|
|
849
849
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
850
850
|
"list-style-type": [{ list: [
|
|
851
851
|
"disc",
|
|
852
852
|
"decimal",
|
|
853
853
|
"none",
|
|
854
|
-
|
|
855
|
-
|
|
854
|
+
U,
|
|
855
|
+
H
|
|
856
856
|
] }],
|
|
857
857
|
"text-alignment": [{ text: [
|
|
858
858
|
"left",
|
|
@@ -870,20 +870,20 @@ var _ = (e, t) => {
|
|
|
870
870
|
"line-through",
|
|
871
871
|
"no-underline"
|
|
872
872
|
],
|
|
873
|
-
"text-decoration-style": [{ decoration: [...
|
|
873
|
+
"text-decoration-style": [{ decoration: [...ae(), "wavy"] }],
|
|
874
874
|
"text-decoration-thickness": [{ decoration: [
|
|
875
|
-
|
|
875
|
+
B,
|
|
876
876
|
"from-font",
|
|
877
877
|
"auto",
|
|
878
|
-
|
|
879
|
-
|
|
878
|
+
U,
|
|
879
|
+
Oe
|
|
880
880
|
] }],
|
|
881
881
|
"text-decoration-color": [{ decoration: F() }],
|
|
882
882
|
"underline-offset": [{ "underline-offset": [
|
|
883
|
-
|
|
883
|
+
B,
|
|
884
884
|
"auto",
|
|
885
|
-
|
|
886
|
-
|
|
885
|
+
U,
|
|
886
|
+
H
|
|
887
887
|
] }],
|
|
888
888
|
"text-transform": [
|
|
889
889
|
"uppercase",
|
|
@@ -912,8 +912,8 @@ var _ = (e, t) => {
|
|
|
912
912
|
"text-bottom",
|
|
913
913
|
"sub",
|
|
914
914
|
"super",
|
|
915
|
-
|
|
916
|
-
|
|
915
|
+
U,
|
|
916
|
+
H
|
|
917
917
|
] }],
|
|
918
918
|
whitespace: [{ whitespace: [
|
|
919
919
|
"normal",
|
|
@@ -941,8 +941,8 @@ var _ = (e, t) => {
|
|
|
941
941
|
] }],
|
|
942
942
|
content: [{ content: [
|
|
943
943
|
"none",
|
|
944
|
-
|
|
945
|
-
|
|
944
|
+
U,
|
|
945
|
+
H
|
|
946
946
|
] }],
|
|
947
947
|
"bg-attachment": [{ bg: [
|
|
948
948
|
"fixed",
|
|
@@ -977,23 +977,23 @@ var _ = (e, t) => {
|
|
|
977
977
|
"l",
|
|
978
978
|
"tl"
|
|
979
979
|
] },
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
980
|
+
ye,
|
|
981
|
+
U,
|
|
982
|
+
H
|
|
983
983
|
],
|
|
984
984
|
radial: [
|
|
985
985
|
"",
|
|
986
|
-
|
|
987
|
-
|
|
986
|
+
U,
|
|
987
|
+
H
|
|
988
988
|
],
|
|
989
989
|
conic: [
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
990
|
+
ye,
|
|
991
|
+
U,
|
|
992
|
+
H
|
|
993
993
|
]
|
|
994
994
|
},
|
|
995
|
-
|
|
996
|
-
|
|
995
|
+
ze,
|
|
996
|
+
Ne
|
|
997
997
|
] }],
|
|
998
998
|
"bg-color": [{ bg: F() }],
|
|
999
999
|
"gradient-from-pos": [{ from: ie() }],
|
|
@@ -1033,12 +1033,12 @@ var _ = (e, t) => {
|
|
|
1033
1033
|
"divide-y": [{ "divide-y": L() }],
|
|
1034
1034
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1035
1035
|
"border-style": [{ border: [
|
|
1036
|
-
...
|
|
1036
|
+
...ae(),
|
|
1037
1037
|
"hidden",
|
|
1038
1038
|
"none"
|
|
1039
1039
|
] }],
|
|
1040
1040
|
"divide-style": [{ divide: [
|
|
1041
|
-
...
|
|
1041
|
+
...ae(),
|
|
1042
1042
|
"hidden",
|
|
1043
1043
|
"none"
|
|
1044
1044
|
] }],
|
|
@@ -1055,62 +1055,62 @@ var _ = (e, t) => {
|
|
|
1055
1055
|
"border-color-l": [{ "border-l": F() }],
|
|
1056
1056
|
"divide-color": [{ divide: F() }],
|
|
1057
1057
|
"outline-style": [{ outline: [
|
|
1058
|
-
...
|
|
1058
|
+
...ae(),
|
|
1059
1059
|
"none",
|
|
1060
1060
|
"hidden"
|
|
1061
1061
|
] }],
|
|
1062
1062
|
"outline-offset": [{ "outline-offset": [
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1063
|
+
B,
|
|
1064
|
+
U,
|
|
1065
|
+
H
|
|
1066
1066
|
] }],
|
|
1067
1067
|
"outline-w": [{ outline: [
|
|
1068
1068
|
"",
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1069
|
+
B,
|
|
1070
|
+
Fe,
|
|
1071
|
+
Oe
|
|
1072
1072
|
] }],
|
|
1073
1073
|
"outline-color": [{ outline: F() }],
|
|
1074
1074
|
shadow: [{ shadow: [
|
|
1075
1075
|
"",
|
|
1076
1076
|
"none",
|
|
1077
1077
|
u,
|
|
1078
|
-
|
|
1079
|
-
|
|
1078
|
+
Be,
|
|
1079
|
+
Pe
|
|
1080
1080
|
] }],
|
|
1081
1081
|
"shadow-color": [{ shadow: F() }],
|
|
1082
1082
|
"inset-shadow": [{ "inset-shadow": [
|
|
1083
1083
|
"none",
|
|
1084
1084
|
d,
|
|
1085
|
-
|
|
1086
|
-
|
|
1085
|
+
Be,
|
|
1086
|
+
Pe
|
|
1087
1087
|
] }],
|
|
1088
1088
|
"inset-shadow-color": [{ "inset-shadow": F() }],
|
|
1089
1089
|
"ring-w": [{ ring: L() }],
|
|
1090
1090
|
"ring-w-inset": ["ring-inset"],
|
|
1091
1091
|
"ring-color": [{ ring: F() }],
|
|
1092
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1092
|
+
"ring-offset-w": [{ "ring-offset": [B, Oe] }],
|
|
1093
1093
|
"ring-offset-color": [{ "ring-offset": F() }],
|
|
1094
1094
|
"inset-ring-w": [{ "inset-ring": L() }],
|
|
1095
1095
|
"inset-ring-color": [{ "inset-ring": F() }],
|
|
1096
1096
|
"text-shadow": [{ "text-shadow": [
|
|
1097
1097
|
"none",
|
|
1098
1098
|
f,
|
|
1099
|
-
|
|
1100
|
-
|
|
1099
|
+
Be,
|
|
1100
|
+
Pe
|
|
1101
1101
|
] }],
|
|
1102
1102
|
"text-shadow-color": [{ "text-shadow": F() }],
|
|
1103
1103
|
opacity: [{ opacity: [
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1104
|
+
B,
|
|
1105
|
+
U,
|
|
1106
|
+
H
|
|
1107
1107
|
] }],
|
|
1108
1108
|
"mix-blend": [{ "mix-blend": [
|
|
1109
|
-
...
|
|
1109
|
+
...oe(),
|
|
1110
1110
|
"plus-darker",
|
|
1111
1111
|
"plus-lighter"
|
|
1112
1112
|
] }],
|
|
1113
|
-
"bg-blend": [{ "bg-blend":
|
|
1113
|
+
"bg-blend": [{ "bg-blend": oe() }],
|
|
1114
1114
|
"mask-clip": [{ "mask-clip": [
|
|
1115
1115
|
"border",
|
|
1116
1116
|
"padding",
|
|
@@ -1125,38 +1125,38 @@ var _ = (e, t) => {
|
|
|
1125
1125
|
"intersect",
|
|
1126
1126
|
"exclude"
|
|
1127
1127
|
] }],
|
|
1128
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1129
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1130
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1128
|
+
"mask-image-linear-pos": [{ "mask-linear": [B] }],
|
|
1129
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": R() }],
|
|
1130
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": R() }],
|
|
1131
1131
|
"mask-image-linear-from-color": [{ "mask-linear-from": F() }],
|
|
1132
1132
|
"mask-image-linear-to-color": [{ "mask-linear-to": F() }],
|
|
1133
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1134
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1133
|
+
"mask-image-t-from-pos": [{ "mask-t-from": R() }],
|
|
1134
|
+
"mask-image-t-to-pos": [{ "mask-t-to": R() }],
|
|
1135
1135
|
"mask-image-t-from-color": [{ "mask-t-from": F() }],
|
|
1136
1136
|
"mask-image-t-to-color": [{ "mask-t-to": F() }],
|
|
1137
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1138
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1137
|
+
"mask-image-r-from-pos": [{ "mask-r-from": R() }],
|
|
1138
|
+
"mask-image-r-to-pos": [{ "mask-r-to": R() }],
|
|
1139
1139
|
"mask-image-r-from-color": [{ "mask-r-from": F() }],
|
|
1140
1140
|
"mask-image-r-to-color": [{ "mask-r-to": F() }],
|
|
1141
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1142
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1141
|
+
"mask-image-b-from-pos": [{ "mask-b-from": R() }],
|
|
1142
|
+
"mask-image-b-to-pos": [{ "mask-b-to": R() }],
|
|
1143
1143
|
"mask-image-b-from-color": [{ "mask-b-from": F() }],
|
|
1144
1144
|
"mask-image-b-to-color": [{ "mask-b-to": F() }],
|
|
1145
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1146
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1145
|
+
"mask-image-l-from-pos": [{ "mask-l-from": R() }],
|
|
1146
|
+
"mask-image-l-to-pos": [{ "mask-l-to": R() }],
|
|
1147
1147
|
"mask-image-l-from-color": [{ "mask-l-from": F() }],
|
|
1148
1148
|
"mask-image-l-to-color": [{ "mask-l-to": F() }],
|
|
1149
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1150
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1149
|
+
"mask-image-x-from-pos": [{ "mask-x-from": R() }],
|
|
1150
|
+
"mask-image-x-to-pos": [{ "mask-x-to": R() }],
|
|
1151
1151
|
"mask-image-x-from-color": [{ "mask-x-from": F() }],
|
|
1152
1152
|
"mask-image-x-to-color": [{ "mask-x-to": F() }],
|
|
1153
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1154
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1153
|
+
"mask-image-y-from-pos": [{ "mask-y-from": R() }],
|
|
1154
|
+
"mask-image-y-to-pos": [{ "mask-y-to": R() }],
|
|
1155
1155
|
"mask-image-y-from-color": [{ "mask-y-from": F() }],
|
|
1156
1156
|
"mask-image-y-to-color": [{ "mask-y-to": F() }],
|
|
1157
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1158
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1159
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1157
|
+
"mask-image-radial": [{ "mask-radial": [U, H] }],
|
|
1158
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": R() }],
|
|
1159
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": R() }],
|
|
1160
1160
|
"mask-image-radial-from-color": [{ "mask-radial-from": F() }],
|
|
1161
1161
|
"mask-image-radial-to-color": [{ "mask-radial-to": F() }],
|
|
1162
1162
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
@@ -1165,9 +1165,9 @@ var _ = (e, t) => {
|
|
|
1165
1165
|
farthest: ["side", "corner"]
|
|
1166
1166
|
}] }],
|
|
1167
1167
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1168
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1169
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1170
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1168
|
+
"mask-image-conic-pos": [{ "mask-conic": [B] }],
|
|
1169
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": R() }],
|
|
1170
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": R() }],
|
|
1171
1171
|
"mask-image-conic-from-color": [{ "mask-conic-from": F() }],
|
|
1172
1172
|
"mask-image-conic-to-color": [{ "mask-conic-to": F() }],
|
|
1173
1173
|
"mask-mode": [{ mask: [
|
|
@@ -1189,111 +1189,111 @@ var _ = (e, t) => {
|
|
|
1189
1189
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1190
1190
|
"mask-image": [{ mask: [
|
|
1191
1191
|
"none",
|
|
1192
|
-
|
|
1193
|
-
|
|
1192
|
+
U,
|
|
1193
|
+
H
|
|
1194
1194
|
] }],
|
|
1195
1195
|
filter: [{ filter: [
|
|
1196
1196
|
"",
|
|
1197
1197
|
"none",
|
|
1198
|
-
|
|
1199
|
-
|
|
1198
|
+
U,
|
|
1199
|
+
H
|
|
1200
1200
|
] }],
|
|
1201
|
-
blur: [{ blur:
|
|
1201
|
+
blur: [{ blur: se() }],
|
|
1202
1202
|
brightness: [{ brightness: [
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1203
|
+
B,
|
|
1204
|
+
U,
|
|
1205
|
+
H
|
|
1206
1206
|
] }],
|
|
1207
1207
|
contrast: [{ contrast: [
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1208
|
+
B,
|
|
1209
|
+
U,
|
|
1210
|
+
H
|
|
1211
1211
|
] }],
|
|
1212
1212
|
"drop-shadow": [{ "drop-shadow": [
|
|
1213
1213
|
"",
|
|
1214
1214
|
"none",
|
|
1215
1215
|
p,
|
|
1216
|
-
|
|
1217
|
-
|
|
1216
|
+
Be,
|
|
1217
|
+
Pe
|
|
1218
1218
|
] }],
|
|
1219
1219
|
"drop-shadow-color": [{ "drop-shadow": F() }],
|
|
1220
1220
|
grayscale: [{ grayscale: [
|
|
1221
1221
|
"",
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1222
|
+
B,
|
|
1223
|
+
U,
|
|
1224
|
+
H
|
|
1225
1225
|
] }],
|
|
1226
1226
|
"hue-rotate": [{ "hue-rotate": [
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1227
|
+
B,
|
|
1228
|
+
U,
|
|
1229
|
+
H
|
|
1230
1230
|
] }],
|
|
1231
1231
|
invert: [{ invert: [
|
|
1232
1232
|
"",
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1233
|
+
B,
|
|
1234
|
+
U,
|
|
1235
|
+
H
|
|
1236
1236
|
] }],
|
|
1237
1237
|
saturate: [{ saturate: [
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1238
|
+
B,
|
|
1239
|
+
U,
|
|
1240
|
+
H
|
|
1241
1241
|
] }],
|
|
1242
1242
|
sepia: [{ sepia: [
|
|
1243
1243
|
"",
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1244
|
+
B,
|
|
1245
|
+
U,
|
|
1246
|
+
H
|
|
1247
1247
|
] }],
|
|
1248
1248
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1249
1249
|
"",
|
|
1250
1250
|
"none",
|
|
1251
|
-
|
|
1252
|
-
|
|
1251
|
+
U,
|
|
1252
|
+
H
|
|
1253
1253
|
] }],
|
|
1254
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1254
|
+
"backdrop-blur": [{ "backdrop-blur": se() }],
|
|
1255
1255
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1256
|
+
B,
|
|
1257
|
+
U,
|
|
1258
|
+
H
|
|
1259
1259
|
] }],
|
|
1260
1260
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1261
|
+
B,
|
|
1262
|
+
U,
|
|
1263
|
+
H
|
|
1264
1264
|
] }],
|
|
1265
1265
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1266
1266
|
"",
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1267
|
+
B,
|
|
1268
|
+
U,
|
|
1269
|
+
H
|
|
1270
1270
|
] }],
|
|
1271
1271
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1272
|
+
B,
|
|
1273
|
+
U,
|
|
1274
|
+
H
|
|
1275
1275
|
] }],
|
|
1276
1276
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1277
1277
|
"",
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1278
|
+
B,
|
|
1279
|
+
U,
|
|
1280
|
+
H
|
|
1281
1281
|
] }],
|
|
1282
1282
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1283
|
+
B,
|
|
1284
|
+
U,
|
|
1285
|
+
H
|
|
1286
1286
|
] }],
|
|
1287
1287
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1288
|
+
B,
|
|
1289
|
+
U,
|
|
1290
|
+
H
|
|
1291
1291
|
] }],
|
|
1292
1292
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1293
1293
|
"",
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1294
|
+
B,
|
|
1295
|
+
U,
|
|
1296
|
+
H
|
|
1297
1297
|
] }],
|
|
1298
1298
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1299
1299
|
"border-spacing": [{ "border-spacing": w() }],
|
|
@@ -1309,56 +1309,56 @@ var _ = (e, t) => {
|
|
|
1309
1309
|
"shadow",
|
|
1310
1310
|
"transform",
|
|
1311
1311
|
"none",
|
|
1312
|
-
|
|
1313
|
-
|
|
1312
|
+
U,
|
|
1313
|
+
H
|
|
1314
1314
|
] }],
|
|
1315
1315
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1316
1316
|
duration: [{ duration: [
|
|
1317
|
-
|
|
1317
|
+
B,
|
|
1318
1318
|
"initial",
|
|
1319
|
-
|
|
1320
|
-
|
|
1319
|
+
U,
|
|
1320
|
+
H
|
|
1321
1321
|
] }],
|
|
1322
1322
|
ease: [{ ease: [
|
|
1323
1323
|
"linear",
|
|
1324
1324
|
"initial",
|
|
1325
1325
|
_,
|
|
1326
|
-
|
|
1327
|
-
|
|
1326
|
+
U,
|
|
1327
|
+
H
|
|
1328
1328
|
] }],
|
|
1329
1329
|
delay: [{ delay: [
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1330
|
+
B,
|
|
1331
|
+
U,
|
|
1332
|
+
H
|
|
1333
1333
|
] }],
|
|
1334
1334
|
animate: [{ animate: [
|
|
1335
1335
|
"none",
|
|
1336
1336
|
v,
|
|
1337
|
-
|
|
1338
|
-
|
|
1337
|
+
U,
|
|
1338
|
+
H
|
|
1339
1339
|
] }],
|
|
1340
1340
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1341
1341
|
perspective: [{ perspective: [
|
|
1342
1342
|
h,
|
|
1343
|
-
|
|
1344
|
-
|
|
1343
|
+
U,
|
|
1344
|
+
H
|
|
1345
1345
|
] }],
|
|
1346
1346
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1347
|
-
rotate: [{ rotate:
|
|
1348
|
-
"rotate-x": [{ "rotate-x":
|
|
1349
|
-
"rotate-y": [{ "rotate-y":
|
|
1350
|
-
"rotate-z": [{ "rotate-z":
|
|
1351
|
-
scale: [{ scale:
|
|
1352
|
-
"scale-x": [{ "scale-x":
|
|
1353
|
-
"scale-y": [{ "scale-y":
|
|
1354
|
-
"scale-z": [{ "scale-z":
|
|
1347
|
+
rotate: [{ rotate: ce() }],
|
|
1348
|
+
"rotate-x": [{ "rotate-x": ce() }],
|
|
1349
|
+
"rotate-y": [{ "rotate-y": ce() }],
|
|
1350
|
+
"rotate-z": [{ "rotate-z": ce() }],
|
|
1351
|
+
scale: [{ scale: le() }],
|
|
1352
|
+
"scale-x": [{ "scale-x": le() }],
|
|
1353
|
+
"scale-y": [{ "scale-y": le() }],
|
|
1354
|
+
"scale-z": [{ "scale-z": le() }],
|
|
1355
1355
|
"scale-3d": ["scale-3d"],
|
|
1356
|
-
skew: [{ skew:
|
|
1357
|
-
"skew-x": [{ "skew-x":
|
|
1358
|
-
"skew-y": [{ "skew-y":
|
|
1356
|
+
skew: [{ skew: ue() }],
|
|
1357
|
+
"skew-x": [{ "skew-x": ue() }],
|
|
1358
|
+
"skew-y": [{ "skew-y": ue() }],
|
|
1359
1359
|
transform: [{ transform: [
|
|
1360
|
-
W,
|
|
1361
1360
|
U,
|
|
1361
|
+
H,
|
|
1362
1362
|
"",
|
|
1363
1363
|
"none",
|
|
1364
1364
|
"gpu",
|
|
@@ -1366,10 +1366,10 @@ var _ = (e, t) => {
|
|
|
1366
1366
|
] }],
|
|
1367
1367
|
"transform-origin": [{ origin: x() }],
|
|
1368
1368
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1369
|
-
translate: [{ translate:
|
|
1370
|
-
"translate-x": [{ "translate-x":
|
|
1371
|
-
"translate-y": [{ "translate-y":
|
|
1372
|
-
"translate-z": [{ "translate-z":
|
|
1369
|
+
translate: [{ translate: de() }],
|
|
1370
|
+
"translate-x": [{ "translate-x": de() }],
|
|
1371
|
+
"translate-y": [{ "translate-y": de() }],
|
|
1372
|
+
"translate-z": [{ "translate-z": de() }],
|
|
1373
1373
|
"translate-none": ["translate-none"],
|
|
1374
1374
|
accent: [{ accent: F() }],
|
|
1375
1375
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
@@ -1419,8 +1419,8 @@ var _ = (e, t) => {
|
|
|
1419
1419
|
"nwse-resize",
|
|
1420
1420
|
"zoom-in",
|
|
1421
1421
|
"zoom-out",
|
|
1422
|
-
|
|
1423
|
-
|
|
1422
|
+
U,
|
|
1423
|
+
H
|
|
1424
1424
|
] }],
|
|
1425
1425
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1426
1426
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -1494,15 +1494,15 @@ var _ = (e, t) => {
|
|
|
1494
1494
|
"scroll",
|
|
1495
1495
|
"contents",
|
|
1496
1496
|
"transform",
|
|
1497
|
-
|
|
1498
|
-
|
|
1497
|
+
U,
|
|
1498
|
+
H
|
|
1499
1499
|
] }],
|
|
1500
1500
|
fill: [{ fill: ["none", ...F()] }],
|
|
1501
1501
|
"stroke-w": [{ stroke: [
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1502
|
+
B,
|
|
1503
|
+
Fe,
|
|
1504
|
+
Oe,
|
|
1505
|
+
ke
|
|
1506
1506
|
] }],
|
|
1507
1507
|
stroke: [{ stroke: ["none", ...F()] }],
|
|
1508
1508
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
@@ -1691,80 +1691,80 @@ var _ = (e, t) => {
|
|
|
1691
1691
|
});
|
|
1692
1692
|
//#endregion
|
|
1693
1693
|
//#region src/lib/utils.ts
|
|
1694
|
-
function
|
|
1695
|
-
return
|
|
1694
|
+
function W(...e) {
|
|
1695
|
+
return Qe(g(e));
|
|
1696
1696
|
}
|
|
1697
1697
|
//#endregion
|
|
1698
1698
|
//#region src/components/Typography/Typography.tsx
|
|
1699
|
-
var
|
|
1699
|
+
var $e = r(({ as: e = "h1", size: t = "xl", className: n, ...r }, i) => /* @__PURE__ */ d(e, {
|
|
1700
1700
|
ref: i,
|
|
1701
|
-
className:
|
|
1701
|
+
className: W("font-sans text-fg", {
|
|
1702
1702
|
xl: "text-2xl font-semibold leading-tight",
|
|
1703
1703
|
lg: "text-lg font-semibold leading-snug",
|
|
1704
1704
|
md: "text-base font-semibold leading-snug"
|
|
1705
1705
|
}[t], n),
|
|
1706
1706
|
...r
|
|
1707
1707
|
}));
|
|
1708
|
-
|
|
1709
|
-
var
|
|
1708
|
+
$e.displayName = "Heading";
|
|
1709
|
+
var et = r(({ size: e = "md", className: t, ...n }, r) => /* @__PURE__ */ d("p", {
|
|
1710
1710
|
ref: r,
|
|
1711
|
-
className:
|
|
1711
|
+
className: W("font-sans text-fg", {
|
|
1712
1712
|
md: "text-base leading-5",
|
|
1713
1713
|
sm: "text-sm leading-tight"
|
|
1714
1714
|
}[e], t),
|
|
1715
1715
|
...n
|
|
1716
1716
|
}));
|
|
1717
|
-
|
|
1718
|
-
var
|
|
1717
|
+
et.displayName = "Text";
|
|
1718
|
+
var tt = r(({ className: e, ...t }, n) => /* @__PURE__ */ d("p", {
|
|
1719
1719
|
ref: n,
|
|
1720
|
-
className:
|
|
1720
|
+
className: W("font-sans text-xs text-fg-muted leading-tight", e),
|
|
1721
1721
|
...t
|
|
1722
1722
|
}));
|
|
1723
|
-
|
|
1724
|
-
var
|
|
1723
|
+
tt.displayName = "Label";
|
|
1724
|
+
var nt = r(({ className: e, ...t }, n) => /* @__PURE__ */ d("p", {
|
|
1725
1725
|
ref: n,
|
|
1726
|
-
className:
|
|
1726
|
+
className: W("font-sans text-[10px] text-fg-muted leading-tight", e),
|
|
1727
1727
|
...t
|
|
1728
1728
|
}));
|
|
1729
|
-
|
|
1729
|
+
nt.displayName = "Caption";
|
|
1730
1730
|
//#endregion
|
|
1731
1731
|
//#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
1732
|
-
function
|
|
1732
|
+
function rt(e, t) {
|
|
1733
1733
|
if (typeof e == "function") return e(t);
|
|
1734
1734
|
e != null && (e.current = t);
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1736
|
+
function it(...e) {
|
|
1737
1737
|
return (t) => {
|
|
1738
1738
|
let n = !1, r = e.map((e) => {
|
|
1739
|
-
let r =
|
|
1739
|
+
let r = rt(e, t);
|
|
1740
1740
|
return !n && typeof r == "function" && (n = !0), r;
|
|
1741
1741
|
});
|
|
1742
1742
|
if (n) return () => {
|
|
1743
1743
|
for (let t = 0; t < r.length; t++) {
|
|
1744
1744
|
let n = r[t];
|
|
1745
|
-
typeof n == "function" ? n() :
|
|
1745
|
+
typeof n == "function" ? n() : rt(e[t], null);
|
|
1746
1746
|
}
|
|
1747
1747
|
};
|
|
1748
1748
|
};
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1751
|
-
return e.useCallback(
|
|
1750
|
+
function G(...t) {
|
|
1751
|
+
return e.useCallback(it(...t), t);
|
|
1752
1752
|
}
|
|
1753
1753
|
//#endregion
|
|
1754
1754
|
//#region node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
1755
|
-
var
|
|
1756
|
-
function
|
|
1755
|
+
var at = Symbol.for("react.lazy"), ot = e.use;
|
|
1756
|
+
function st(e) {
|
|
1757
1757
|
return typeof e == "object" && !!e && "then" in e;
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1760
|
-
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof ===
|
|
1759
|
+
function ct(e) {
|
|
1760
|
+
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === at && "_payload" in e && st(e._payload);
|
|
1761
1761
|
}
|
|
1762
1762
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1763
|
-
function
|
|
1764
|
-
let n = /* @__PURE__ */
|
|
1763
|
+
function lt(t) {
|
|
1764
|
+
let n = /* @__PURE__ */ dt(t), r = e.forwardRef((t, r) => {
|
|
1765
1765
|
let { children: i, ...a } = t;
|
|
1766
|
-
|
|
1767
|
-
let o = e.Children.toArray(i), s = o.find(
|
|
1766
|
+
ct(i) && typeof ot == "function" && (i = ot(i._payload));
|
|
1767
|
+
let o = e.Children.toArray(i), s = o.find(pt);
|
|
1768
1768
|
if (s) {
|
|
1769
1769
|
let t = s.props.children, i = o.map((n) => n === s ? e.Children.count(t) > 1 ? e.Children.only(null) : e.isValidElement(t) ? t.props.children : null : n);
|
|
1770
1770
|
return /* @__PURE__ */ d(n, {
|
|
@@ -1781,24 +1781,24 @@ function ct(t) {
|
|
|
1781
1781
|
});
|
|
1782
1782
|
return r.displayName = `${t}.Slot`, r;
|
|
1783
1783
|
}
|
|
1784
|
-
var
|
|
1784
|
+
var ut = /* @__PURE__ */ lt("Slot");
|
|
1785
1785
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1786
|
-
function
|
|
1786
|
+
function dt(t) {
|
|
1787
1787
|
let n = e.forwardRef((t, n) => {
|
|
1788
1788
|
let { children: r, ...i } = t;
|
|
1789
|
-
if (
|
|
1790
|
-
let t =
|
|
1791
|
-
return r.type !== e.Fragment && (a.ref = n ?
|
|
1789
|
+
if (ct(r) && typeof ot == "function" && (r = ot(r._payload)), e.isValidElement(r)) {
|
|
1790
|
+
let t = ht(r), a = mt(i, r.props);
|
|
1791
|
+
return r.type !== e.Fragment && (a.ref = n ? it(n, t) : t), e.cloneElement(r, a);
|
|
1792
1792
|
}
|
|
1793
1793
|
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
1794
1794
|
});
|
|
1795
1795
|
return n.displayName = `${t}.SlotClone`, n;
|
|
1796
1796
|
}
|
|
1797
|
-
var
|
|
1798
|
-
function
|
|
1799
|
-
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
1797
|
+
var ft = Symbol("radix.slottable");
|
|
1798
|
+
function pt(t) {
|
|
1799
|
+
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === ft;
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function mt(e, t) {
|
|
1802
1802
|
let n = { ...t };
|
|
1803
1803
|
for (let r in t) {
|
|
1804
1804
|
let i = e[r], a = t[r];
|
|
@@ -1815,24 +1815,24 @@ function pt(e, t) {
|
|
|
1815
1815
|
...n
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1818
|
+
function ht(e) {
|
|
1819
1819
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1820
1820
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1821
1821
|
}
|
|
1822
1822
|
//#endregion
|
|
1823
1823
|
//#region node_modules/class-variance-authority/dist/index.mjs
|
|
1824
|
-
var
|
|
1825
|
-
if (t?.variants == null) return
|
|
1824
|
+
var gt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _t = g, vt = ((e, t) => (n) => {
|
|
1825
|
+
if (t?.variants == null) return _t(e, n?.class, n?.className);
|
|
1826
1826
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
1827
1827
|
let t = n?.[e], a = i?.[e];
|
|
1828
1828
|
if (t === null) return null;
|
|
1829
|
-
let o =
|
|
1829
|
+
let o = gt(t) || gt(a);
|
|
1830
1830
|
return r[e][o];
|
|
1831
1831
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
1832
1832
|
let [n, r] = t;
|
|
1833
1833
|
return r === void 0 || (e[n] = r), e;
|
|
1834
1834
|
}, {});
|
|
1835
|
-
return
|
|
1835
|
+
return _t(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
1836
1836
|
let { class: n, className: r, ...a } = t;
|
|
1837
1837
|
return Object.entries(a).every((e) => {
|
|
1838
1838
|
let [t, n] = e;
|
|
@@ -1865,8 +1865,8 @@ var ht = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gt = g, _t =
|
|
|
1865
1865
|
variant: "primary",
|
|
1866
1866
|
size: "md"
|
|
1867
1867
|
}
|
|
1868
|
-
}),
|
|
1869
|
-
className:
|
|
1868
|
+
}), yt = r(({ className: e, variant: t, size: n, asChild: r = !1, ...i }, a) => /* @__PURE__ */ d(r ? ut : "button", {
|
|
1869
|
+
className: W(vt({
|
|
1870
1870
|
variant: t,
|
|
1871
1871
|
size: n,
|
|
1872
1872
|
className: e
|
|
@@ -1874,59 +1874,72 @@ var ht = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gt = g, _t =
|
|
|
1874
1874
|
ref: a,
|
|
1875
1875
|
...i
|
|
1876
1876
|
}));
|
|
1877
|
-
|
|
1877
|
+
yt.displayName = "Button";
|
|
1878
1878
|
//#endregion
|
|
1879
1879
|
//#region src/components/Badge/Badge.tsx
|
|
1880
|
-
function
|
|
1880
|
+
function bt({ className: e, ...t }) {
|
|
1881
1881
|
return /* @__PURE__ */ d("span", {
|
|
1882
|
-
className:
|
|
1882
|
+
className: W("inline-flex items-center px-2 py-0.5 rounded-pill text-xs font-medium bg-subtle text-fg-secondary", e),
|
|
1883
1883
|
...t
|
|
1884
1884
|
});
|
|
1885
1885
|
}
|
|
1886
|
-
function
|
|
1886
|
+
function xt({ selected: e, className: t, ...n }) {
|
|
1887
1887
|
return /* @__PURE__ */ d("button", {
|
|
1888
1888
|
type: "button",
|
|
1889
|
-
className:
|
|
1889
|
+
className: W("inline-flex items-center px-3 py-1 rounded-pill text-sm font-medium transition-colors", e ? "bg-accent text-white" : "bg-subtle text-fg hover:bg-accent/10", t),
|
|
1890
1890
|
...n
|
|
1891
1891
|
});
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function St({ count: e, className: t, ...n }) {
|
|
1894
1894
|
return /* @__PURE__ */ f("span", {
|
|
1895
|
-
className:
|
|
1895
|
+
className: W("inline-flex items-center px-1 py-px rounded-pill bg-subtle text-accent text-xs", t),
|
|
1896
1896
|
...n,
|
|
1897
1897
|
children: ["+", e]
|
|
1898
1898
|
});
|
|
1899
1899
|
}
|
|
1900
1900
|
//#endregion
|
|
1901
1901
|
//#region src/components/Input/Input.tsx
|
|
1902
|
-
var
|
|
1902
|
+
var Ct = r(({ variant: e = "white", className: t, ...n }, r) => /* @__PURE__ */ d("input", {
|
|
1903
1903
|
ref: r,
|
|
1904
|
-
className:
|
|
1904
|
+
className: W("w-full h-14 px-5 rounded-input font-sans text-base text-fg placeholder:text-fg-secondary outline-none transition-colors", e === "white" && "bg-card border border-border focus:border-accent", e === "grey" && "bg-subtle border-transparent focus:border-accent", t),
|
|
1905
1905
|
...n
|
|
1906
1906
|
}));
|
|
1907
|
-
|
|
1908
|
-
var
|
|
1909
|
-
className:
|
|
1910
|
-
children: [/* @__PURE__ */ d("
|
|
1911
|
-
src: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23A6A6A6' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E",
|
|
1912
|
-
alt: "",
|
|
1907
|
+
Ct.displayName = "Input";
|
|
1908
|
+
var wt = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
1909
|
+
className: W("relative flex items-center w-full", e),
|
|
1910
|
+
children: [/* @__PURE__ */ d("span", {
|
|
1913
1911
|
"aria-hidden": "true",
|
|
1914
|
-
className: "absolute left-3 w-6 h-6 pointer-events-none"
|
|
1912
|
+
className: "absolute left-3 w-6 h-6 pointer-events-none text-fg-muted",
|
|
1913
|
+
children: /* @__PURE__ */ f("svg", {
|
|
1914
|
+
width: "24",
|
|
1915
|
+
height: "24",
|
|
1916
|
+
viewBox: "0 0 24 24",
|
|
1917
|
+
fill: "none",
|
|
1918
|
+
stroke: "currentColor",
|
|
1919
|
+
strokeWidth: "2",
|
|
1920
|
+
strokeLinecap: "round",
|
|
1921
|
+
strokeLinejoin: "round",
|
|
1922
|
+
children: [/* @__PURE__ */ d("circle", {
|
|
1923
|
+
cx: "11",
|
|
1924
|
+
cy: "11",
|
|
1925
|
+
r: "8"
|
|
1926
|
+
}), /* @__PURE__ */ d("path", { d: "m21 21-4.35-4.35" })]
|
|
1927
|
+
})
|
|
1915
1928
|
}), /* @__PURE__ */ d("input", {
|
|
1916
1929
|
ref: n,
|
|
1917
|
-
className:
|
|
1930
|
+
className: W("w-full h-12 pl-12 pr-4 bg-card rounded-card font-sans text-sm text-fg placeholder:text-fg-muted outline-none"),
|
|
1918
1931
|
...t
|
|
1919
1932
|
})]
|
|
1920
1933
|
}));
|
|
1921
|
-
|
|
1922
|
-
function
|
|
1934
|
+
wt.displayName = "SearchBar", typeof window < "u" && window.document && window.document.createElement;
|
|
1935
|
+
function K(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
1923
1936
|
return function(r) {
|
|
1924
1937
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
1925
1938
|
};
|
|
1926
1939
|
}
|
|
1927
1940
|
//#endregion
|
|
1928
1941
|
//#region node_modules/@radix-ui/react-context/dist/index.mjs
|
|
1929
|
-
function
|
|
1942
|
+
function Tt(t, n) {
|
|
1930
1943
|
let r = e.createContext(n), i = (t) => {
|
|
1931
1944
|
let { children: n, ...i } = t, a = e.useMemo(() => i, Object.values(i));
|
|
1932
1945
|
return /* @__PURE__ */ d(r.Provider, {
|
|
@@ -1943,7 +1956,7 @@ function wt(t, n) {
|
|
|
1943
1956
|
}
|
|
1944
1957
|
return [i, a];
|
|
1945
1958
|
}
|
|
1946
|
-
function
|
|
1959
|
+
function Et(t, n = []) {
|
|
1947
1960
|
let r = [];
|
|
1948
1961
|
function i(n, i) {
|
|
1949
1962
|
let a = e.createContext(i), o = r.length;
|
|
@@ -1974,9 +1987,9 @@ function Tt(t, n = []) {
|
|
|
1974
1987
|
} }), [r, i]);
|
|
1975
1988
|
};
|
|
1976
1989
|
};
|
|
1977
|
-
return a.scopeName = t, [i,
|
|
1990
|
+
return a.scopeName = t, [i, Dt(a, ...n)];
|
|
1978
1991
|
}
|
|
1979
|
-
function
|
|
1992
|
+
function Dt(...t) {
|
|
1980
1993
|
let n = t[0];
|
|
1981
1994
|
if (t.length === 1) return n;
|
|
1982
1995
|
let r = () => {
|
|
@@ -2000,9 +2013,9 @@ function Et(...t) {
|
|
|
2000
2013
|
//#endregion
|
|
2001
2014
|
//#region node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
2002
2015
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2003
|
-
function
|
|
2004
|
-
let n = /* @__PURE__ */
|
|
2005
|
-
let { children: i, ...a } = t, o = e.Children.toArray(i), s = o.find(
|
|
2016
|
+
function Ot(t) {
|
|
2017
|
+
let n = /* @__PURE__ */ kt(t), r = e.forwardRef((t, r) => {
|
|
2018
|
+
let { children: i, ...a } = t, o = e.Children.toArray(i), s = o.find(jt);
|
|
2006
2019
|
if (s) {
|
|
2007
2020
|
let t = s.props.children, i = o.map((n) => n === s ? e.Children.count(t) > 1 ? e.Children.only(null) : e.isValidElement(t) ? t.props.children : null : n);
|
|
2008
2021
|
return /* @__PURE__ */ d(n, {
|
|
@@ -2020,22 +2033,22 @@ function Dt(t) {
|
|
|
2020
2033
|
return r.displayName = `${t}.Slot`, r;
|
|
2021
2034
|
}
|
|
2022
2035
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2023
|
-
function
|
|
2036
|
+
function kt(t) {
|
|
2024
2037
|
let n = e.forwardRef((t, n) => {
|
|
2025
2038
|
let { children: r, ...i } = t;
|
|
2026
2039
|
if (e.isValidElement(r)) {
|
|
2027
|
-
let t =
|
|
2028
|
-
return r.type !== e.Fragment && (a.ref = n ?
|
|
2040
|
+
let t = Nt(r), a = Mt(i, r.props);
|
|
2041
|
+
return r.type !== e.Fragment && (a.ref = n ? it(n, t) : t), e.cloneElement(r, a);
|
|
2029
2042
|
}
|
|
2030
2043
|
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
2031
2044
|
});
|
|
2032
2045
|
return n.displayName = `${t}.SlotClone`, n;
|
|
2033
2046
|
}
|
|
2034
|
-
var
|
|
2035
|
-
function
|
|
2036
|
-
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
2047
|
+
var At = Symbol("radix.slottable");
|
|
2048
|
+
function jt(t) {
|
|
2049
|
+
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === At;
|
|
2037
2050
|
}
|
|
2038
|
-
function
|
|
2051
|
+
function Mt(e, t) {
|
|
2039
2052
|
let n = { ...t };
|
|
2040
2053
|
for (let r in t) {
|
|
2041
2054
|
let i = e[r], a = t[r];
|
|
@@ -2052,13 +2065,13 @@ function jt(e, t) {
|
|
|
2052
2065
|
...n
|
|
2053
2066
|
};
|
|
2054
2067
|
}
|
|
2055
|
-
function
|
|
2068
|
+
function Nt(e) {
|
|
2056
2069
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2057
2070
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2058
2071
|
}
|
|
2059
2072
|
//#endregion
|
|
2060
2073
|
//#region node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
2061
|
-
var
|
|
2074
|
+
var q = [
|
|
2062
2075
|
"a",
|
|
2063
2076
|
"button",
|
|
2064
2077
|
"div",
|
|
@@ -2077,7 +2090,7 @@ var J = [
|
|
|
2077
2090
|
"svg",
|
|
2078
2091
|
"ul"
|
|
2079
2092
|
].reduce((t, n) => {
|
|
2080
|
-
let r = /* @__PURE__ */
|
|
2093
|
+
let r = /* @__PURE__ */ Ot(`Primitive.${n}`), i = e.forwardRef((e, t) => {
|
|
2081
2094
|
let { asChild: i, ...a } = e, o = i ? r : n;
|
|
2082
2095
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(o, {
|
|
2083
2096
|
...a,
|
|
@@ -2089,12 +2102,12 @@ var J = [
|
|
|
2089
2102
|
[n]: i
|
|
2090
2103
|
};
|
|
2091
2104
|
}, {});
|
|
2092
|
-
function
|
|
2105
|
+
function Pt(e, t) {
|
|
2093
2106
|
e && p.flushSync(() => e.dispatchEvent(t));
|
|
2094
2107
|
}
|
|
2095
2108
|
//#endregion
|
|
2096
2109
|
//#region node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
2097
|
-
function
|
|
2110
|
+
function Ft(t) {
|
|
2098
2111
|
let n = e.useRef(t);
|
|
2099
2112
|
return e.useEffect(() => {
|
|
2100
2113
|
n.current = t;
|
|
@@ -2102,8 +2115,8 @@ function Pt(t) {
|
|
|
2102
2115
|
}
|
|
2103
2116
|
//#endregion
|
|
2104
2117
|
//#region node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
2105
|
-
function
|
|
2106
|
-
let r =
|
|
2118
|
+
function It(t, n = globalThis?.document) {
|
|
2119
|
+
let r = Ft(t);
|
|
2107
2120
|
e.useEffect(() => {
|
|
2108
2121
|
let e = (e) => {
|
|
2109
2122
|
e.key === "Escape" && r(e);
|
|
@@ -2113,23 +2126,23 @@ function Ft(t, n = globalThis?.document) {
|
|
|
2113
2126
|
}
|
|
2114
2127
|
//#endregion
|
|
2115
2128
|
//#region node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
2116
|
-
var
|
|
2129
|
+
var Lt = "DismissableLayer", Rt = "dismissableLayer.update", zt = "dismissableLayer.pointerDownOutside", Bt = "dismissableLayer.focusOutside", Vt, Ht = e.createContext({
|
|
2117
2130
|
layers: /* @__PURE__ */ new Set(),
|
|
2118
2131
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
2119
2132
|
branches: /* @__PURE__ */ new Set()
|
|
2120
|
-
}),
|
|
2121
|
-
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = t, u = e.useContext(
|
|
2133
|
+
}), Ut = e.forwardRef((t, n) => {
|
|
2134
|
+
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = t, u = e.useContext(Ht), [f, p] = e.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = e.useState({}), g = G(n, (e) => p(e)), _ = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = _.indexOf(v), b = f ? _.indexOf(f) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, S = b >= y, C = Kt((e) => {
|
|
2122
2135
|
let t = e.target, n = [...u.branches].some((e) => e.contains(t));
|
|
2123
2136
|
!S || n || (a?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
2124
|
-
}, m), w =
|
|
2137
|
+
}, m), w = qt((e) => {
|
|
2125
2138
|
let t = e.target;
|
|
2126
2139
|
[...u.branches].some((e) => e.contains(t)) || (o?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
2127
2140
|
}, m);
|
|
2128
|
-
return
|
|
2141
|
+
return It((e) => {
|
|
2129
2142
|
b === u.layers.size - 1 && (i?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
2130
2143
|
}, m), e.useEffect(() => {
|
|
2131
|
-
if (f) return r && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
2132
|
-
r && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents =
|
|
2144
|
+
if (f) return r && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Vt = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), Jt(), () => {
|
|
2145
|
+
r && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Vt);
|
|
2133
2146
|
};
|
|
2134
2147
|
}, [
|
|
2135
2148
|
f,
|
|
@@ -2137,43 +2150,43 @@ var It = "DismissableLayer", Lt = "dismissableLayer.update", Rt = "dismissableLa
|
|
|
2137
2150
|
r,
|
|
2138
2151
|
u
|
|
2139
2152
|
]), e.useEffect(() => () => {
|
|
2140
|
-
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f),
|
|
2153
|
+
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), Jt());
|
|
2141
2154
|
}, [f, u]), e.useEffect(() => {
|
|
2142
2155
|
let e = () => h({});
|
|
2143
|
-
return document.addEventListener(
|
|
2144
|
-
}, []), /* @__PURE__ */ d(
|
|
2156
|
+
return document.addEventListener(Rt, e), () => document.removeEventListener(Rt, e);
|
|
2157
|
+
}, []), /* @__PURE__ */ d(q.div, {
|
|
2145
2158
|
...l,
|
|
2146
2159
|
ref: g,
|
|
2147
2160
|
style: {
|
|
2148
2161
|
pointerEvents: x ? S ? "auto" : "none" : void 0,
|
|
2149
2162
|
...t.style
|
|
2150
2163
|
},
|
|
2151
|
-
onFocusCapture:
|
|
2152
|
-
onBlurCapture:
|
|
2153
|
-
onPointerDownCapture:
|
|
2164
|
+
onFocusCapture: K(t.onFocusCapture, w.onFocusCapture),
|
|
2165
|
+
onBlurCapture: K(t.onBlurCapture, w.onBlurCapture),
|
|
2166
|
+
onPointerDownCapture: K(t.onPointerDownCapture, C.onPointerDownCapture)
|
|
2154
2167
|
});
|
|
2155
2168
|
});
|
|
2156
|
-
|
|
2157
|
-
var
|
|
2158
|
-
let r = e.useContext(
|
|
2169
|
+
Ut.displayName = Lt;
|
|
2170
|
+
var Wt = "DismissableLayerBranch", Gt = e.forwardRef((t, n) => {
|
|
2171
|
+
let r = e.useContext(Ht), i = e.useRef(null), a = G(n, i);
|
|
2159
2172
|
return e.useEffect(() => {
|
|
2160
2173
|
let e = i.current;
|
|
2161
2174
|
if (e) return r.branches.add(e), () => {
|
|
2162
2175
|
r.branches.delete(e);
|
|
2163
2176
|
};
|
|
2164
|
-
}, [r.branches]), /* @__PURE__ */ d(
|
|
2177
|
+
}, [r.branches]), /* @__PURE__ */ d(q.div, {
|
|
2165
2178
|
...t,
|
|
2166
2179
|
ref: a
|
|
2167
2180
|
});
|
|
2168
2181
|
});
|
|
2169
|
-
|
|
2170
|
-
function
|
|
2171
|
-
let r =
|
|
2182
|
+
Gt.displayName = Wt;
|
|
2183
|
+
function Kt(t, n = globalThis?.document) {
|
|
2184
|
+
let r = Ft(t), i = e.useRef(!1), a = e.useRef(() => {});
|
|
2172
2185
|
return e.useEffect(() => {
|
|
2173
2186
|
let e = (e) => {
|
|
2174
2187
|
if (e.target && !i.current) {
|
|
2175
2188
|
let t = function() {
|
|
2176
|
-
|
|
2189
|
+
Yt(zt, r, i, { discrete: !0 });
|
|
2177
2190
|
}, i = { originalEvent: e };
|
|
2178
2191
|
e.pointerType === "touch" ? (n.removeEventListener("click", a.current), a.current = t, n.addEventListener("click", a.current, { once: !0 })) : t();
|
|
2179
2192
|
} else n.removeEventListener("click", a.current);
|
|
@@ -2186,11 +2199,11 @@ function Gt(t, n = globalThis?.document) {
|
|
|
2186
2199
|
};
|
|
2187
2200
|
}, [n, r]), { onPointerDownCapture: () => i.current = !0 };
|
|
2188
2201
|
}
|
|
2189
|
-
function
|
|
2190
|
-
let r =
|
|
2202
|
+
function qt(t, n = globalThis?.document) {
|
|
2203
|
+
let r = Ft(t), i = e.useRef(!1);
|
|
2191
2204
|
return e.useEffect(() => {
|
|
2192
2205
|
let e = (e) => {
|
|
2193
|
-
e.target && !i.current &&
|
|
2206
|
+
e.target && !i.current && Yt(Bt, r, { originalEvent: e }, { discrete: !1 });
|
|
2194
2207
|
};
|
|
2195
2208
|
return n.addEventListener("focusin", e), () => n.removeEventListener("focusin", e);
|
|
2196
2209
|
}, [n, r]), {
|
|
@@ -2198,103 +2211,103 @@ function Kt(t, n = globalThis?.document) {
|
|
|
2198
2211
|
onBlurCapture: () => i.current = !1
|
|
2199
2212
|
};
|
|
2200
2213
|
}
|
|
2201
|
-
function
|
|
2202
|
-
let e = new CustomEvent(
|
|
2214
|
+
function Jt() {
|
|
2215
|
+
let e = new CustomEvent(Rt);
|
|
2203
2216
|
document.dispatchEvent(e);
|
|
2204
2217
|
}
|
|
2205
|
-
function
|
|
2218
|
+
function Yt(e, t, n, { discrete: r }) {
|
|
2206
2219
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
2207
2220
|
bubbles: !1,
|
|
2208
2221
|
cancelable: !0,
|
|
2209
2222
|
detail: n
|
|
2210
2223
|
});
|
|
2211
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
2224
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? Pt(i, a) : i.dispatchEvent(a);
|
|
2212
2225
|
}
|
|
2213
2226
|
//#endregion
|
|
2214
2227
|
//#region node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
2215
|
-
var
|
|
2216
|
-
function
|
|
2217
|
-
let [n, r] = e.useState(
|
|
2218
|
-
return
|
|
2219
|
-
t || r((e) => e ?? String(
|
|
2228
|
+
var Xt = globalThis?.document ? e.useLayoutEffect : () => {}, Zt = e.useId || (() => void 0), Qt = 0;
|
|
2229
|
+
function $t(t) {
|
|
2230
|
+
let [n, r] = e.useState(Zt());
|
|
2231
|
+
return Xt(() => {
|
|
2232
|
+
t || r((e) => e ?? String(Qt++));
|
|
2220
2233
|
}, [t]), t || (n ? `radix-${n}` : "");
|
|
2221
2234
|
}
|
|
2222
2235
|
//#endregion
|
|
2223
2236
|
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
2224
|
-
var
|
|
2237
|
+
var en = [
|
|
2225
2238
|
"top",
|
|
2226
2239
|
"right",
|
|
2227
2240
|
"bottom",
|
|
2228
2241
|
"left"
|
|
2229
|
-
],
|
|
2242
|
+
], tn = Math.min, J = Math.max, nn = Math.round, rn = Math.floor, an = (e) => ({
|
|
2230
2243
|
x: e,
|
|
2231
2244
|
y: e
|
|
2232
|
-
}),
|
|
2245
|
+
}), on = {
|
|
2233
2246
|
left: "right",
|
|
2234
2247
|
right: "left",
|
|
2235
2248
|
bottom: "top",
|
|
2236
2249
|
top: "bottom"
|
|
2237
2250
|
};
|
|
2238
|
-
function
|
|
2239
|
-
return
|
|
2251
|
+
function sn(e, t, n) {
|
|
2252
|
+
return J(e, tn(t, n));
|
|
2240
2253
|
}
|
|
2241
|
-
function
|
|
2254
|
+
function cn(e, t) {
|
|
2242
2255
|
return typeof e == "function" ? e(t) : e;
|
|
2243
2256
|
}
|
|
2244
|
-
function
|
|
2257
|
+
function ln(e) {
|
|
2245
2258
|
return e.split("-")[0];
|
|
2246
2259
|
}
|
|
2247
|
-
function
|
|
2260
|
+
function un(e) {
|
|
2248
2261
|
return e.split("-")[1];
|
|
2249
2262
|
}
|
|
2250
|
-
function
|
|
2263
|
+
function dn(e) {
|
|
2251
2264
|
return e === "x" ? "y" : "x";
|
|
2252
2265
|
}
|
|
2253
|
-
function
|
|
2266
|
+
function fn(e) {
|
|
2254
2267
|
return e === "y" ? "height" : "width";
|
|
2255
2268
|
}
|
|
2256
|
-
function
|
|
2269
|
+
function pn(e) {
|
|
2257
2270
|
let t = e[0];
|
|
2258
2271
|
return t === "t" || t === "b" ? "y" : "x";
|
|
2259
2272
|
}
|
|
2260
|
-
function
|
|
2261
|
-
return
|
|
2273
|
+
function mn(e) {
|
|
2274
|
+
return dn(pn(e));
|
|
2262
2275
|
}
|
|
2263
|
-
function
|
|
2276
|
+
function hn(e, t, n) {
|
|
2264
2277
|
n === void 0 && (n = !1);
|
|
2265
|
-
let r =
|
|
2266
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
2278
|
+
let r = un(e), i = mn(e), a = fn(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
2279
|
+
return t.reference[a] > t.floating[a] && (o = wn(o)), [o, wn(o)];
|
|
2267
2280
|
}
|
|
2268
|
-
function
|
|
2269
|
-
let t =
|
|
2281
|
+
function gn(e) {
|
|
2282
|
+
let t = wn(e);
|
|
2270
2283
|
return [
|
|
2271
|
-
|
|
2284
|
+
_n(e),
|
|
2272
2285
|
t,
|
|
2273
|
-
|
|
2286
|
+
_n(t)
|
|
2274
2287
|
];
|
|
2275
2288
|
}
|
|
2276
|
-
function
|
|
2289
|
+
function _n(e) {
|
|
2277
2290
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
2278
2291
|
}
|
|
2279
|
-
var
|
|
2280
|
-
function
|
|
2292
|
+
var vn = ["left", "right"], yn = ["right", "left"], bn = ["top", "bottom"], xn = ["bottom", "top"];
|
|
2293
|
+
function Sn(e, t, n) {
|
|
2281
2294
|
switch (e) {
|
|
2282
2295
|
case "top":
|
|
2283
|
-
case "bottom": return n ? t ?
|
|
2296
|
+
case "bottom": return n ? t ? yn : vn : t ? vn : yn;
|
|
2284
2297
|
case "left":
|
|
2285
|
-
case "right": return t ?
|
|
2298
|
+
case "right": return t ? bn : xn;
|
|
2286
2299
|
default: return [];
|
|
2287
2300
|
}
|
|
2288
2301
|
}
|
|
2289
|
-
function
|
|
2290
|
-
let i =
|
|
2291
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
2292
|
-
}
|
|
2293
|
-
function Cn(e) {
|
|
2294
|
-
let t = cn(e);
|
|
2295
|
-
return an[t] + e.slice(t.length);
|
|
2302
|
+
function Cn(e, t, n, r) {
|
|
2303
|
+
let i = un(e), a = Sn(ln(e), n === "start", r);
|
|
2304
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(_n)))), a;
|
|
2296
2305
|
}
|
|
2297
2306
|
function wn(e) {
|
|
2307
|
+
let t = ln(e);
|
|
2308
|
+
return on[t] + e.slice(t.length);
|
|
2309
|
+
}
|
|
2310
|
+
function Tn(e) {
|
|
2298
2311
|
return {
|
|
2299
2312
|
top: 0,
|
|
2300
2313
|
right: 0,
|
|
@@ -2303,15 +2316,15 @@ function wn(e) {
|
|
|
2303
2316
|
...e
|
|
2304
2317
|
};
|
|
2305
2318
|
}
|
|
2306
|
-
function
|
|
2319
|
+
function En(e) {
|
|
2307
2320
|
return typeof e == "number" ? {
|
|
2308
2321
|
top: e,
|
|
2309
2322
|
right: e,
|
|
2310
2323
|
bottom: e,
|
|
2311
2324
|
left: e
|
|
2312
|
-
} :
|
|
2325
|
+
} : Tn(e);
|
|
2313
2326
|
}
|
|
2314
|
-
function
|
|
2327
|
+
function Dn(e) {
|
|
2315
2328
|
let { x: t, y: n, width: r, height: i } = e;
|
|
2316
2329
|
return {
|
|
2317
2330
|
width: r,
|
|
@@ -2326,8 +2339,8 @@ function En(e) {
|
|
|
2326
2339
|
}
|
|
2327
2340
|
//#endregion
|
|
2328
2341
|
//#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
2329
|
-
function
|
|
2330
|
-
let { reference: r, floating: i } = e, a =
|
|
2342
|
+
function On(e, t, n) {
|
|
2343
|
+
let { reference: r, floating: i } = e, a = pn(t), o = mn(t), s = fn(o), c = ln(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
2331
2344
|
switch (c) {
|
|
2332
2345
|
case "top":
|
|
2333
2346
|
p = {
|
|
@@ -2358,7 +2371,7 @@ function Dn(e, t, n) {
|
|
|
2358
2371
|
y: r.y
|
|
2359
2372
|
};
|
|
2360
2373
|
}
|
|
2361
|
-
switch (
|
|
2374
|
+
switch (un(t)) {
|
|
2362
2375
|
case "start":
|
|
2363
2376
|
p[o] -= f * (n && l ? -1 : 1);
|
|
2364
2377
|
break;
|
|
@@ -2368,9 +2381,9 @@ function Dn(e, t, n) {
|
|
|
2368
2381
|
}
|
|
2369
2382
|
return p;
|
|
2370
2383
|
}
|
|
2371
|
-
async function
|
|
2384
|
+
async function kn(e, t) {
|
|
2372
2385
|
t === void 0 && (t = {});
|
|
2373
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
2386
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = cn(t, e), p = En(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Dn(await i.getClippingRect({
|
|
2374
2387
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
2375
2388
|
boundary: c,
|
|
2376
2389
|
rootBoundary: l,
|
|
@@ -2383,7 +2396,7 @@ async function On(e, t) {
|
|
|
2383
2396
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
2384
2397
|
x: 1,
|
|
2385
2398
|
y: 1
|
|
2386
|
-
}, y =
|
|
2399
|
+
}, y = Dn(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2387
2400
|
elements: o,
|
|
2388
2401
|
rect: g,
|
|
2389
2402
|
offsetParent: _,
|
|
@@ -2396,15 +2409,15 @@ async function On(e, t) {
|
|
|
2396
2409
|
right: (y.right - h.right + p.right) / v.x
|
|
2397
2410
|
};
|
|
2398
2411
|
}
|
|
2399
|
-
var
|
|
2412
|
+
var An = 50, jn = async (e, t, n) => {
|
|
2400
2413
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
2401
2414
|
...o,
|
|
2402
|
-
detectOverflow:
|
|
2415
|
+
detectOverflow: kn
|
|
2403
2416
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
2404
2417
|
reference: e,
|
|
2405
2418
|
floating: t,
|
|
2406
2419
|
strategy: i
|
|
2407
|
-
}), { x: u, y: d } =
|
|
2420
|
+
}), { x: u, y: d } = On(l, r, c), f = r, p = 0, m = {};
|
|
2408
2421
|
for (let n = 0; n < a.length; n++) {
|
|
2409
2422
|
let h = a[n];
|
|
2410
2423
|
if (!h) continue;
|
|
@@ -2425,11 +2438,11 @@ var kn = 50, An = async (e, t, n) => {
|
|
|
2425
2438
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
2426
2439
|
...m[g],
|
|
2427
2440
|
...b
|
|
2428
|
-
}, x && p <
|
|
2441
|
+
}, x && p < An && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
2429
2442
|
reference: e,
|
|
2430
2443
|
floating: t,
|
|
2431
2444
|
strategy: i
|
|
2432
|
-
}) : x.rects), {x: u, y: d} =
|
|
2445
|
+
}) : x.rects), {x: u, y: d} = On(l, f, c)), n = -1);
|
|
2433
2446
|
}
|
|
2434
2447
|
return {
|
|
2435
2448
|
x: u,
|
|
@@ -2438,18 +2451,18 @@ var kn = 50, An = async (e, t, n) => {
|
|
|
2438
2451
|
strategy: i,
|
|
2439
2452
|
middlewareData: m
|
|
2440
2453
|
};
|
|
2441
|
-
},
|
|
2454
|
+
}, Mn = (e) => ({
|
|
2442
2455
|
name: "arrow",
|
|
2443
2456
|
options: e,
|
|
2444
2457
|
async fn(t) {
|
|
2445
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
2458
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = cn(e, t) || {};
|
|
2446
2459
|
if (l == null) return {};
|
|
2447
|
-
let d =
|
|
2460
|
+
let d = En(u), f = {
|
|
2448
2461
|
x: n,
|
|
2449
2462
|
y: r
|
|
2450
|
-
}, p =
|
|
2463
|
+
}, p = mn(i), m = fn(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
2451
2464
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
2452
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E =
|
|
2465
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = tn(d[_], T), ee = tn(d[v], T), D = E, O = C - h[m] - ee, k = C / 2 - h[m] / 2 + w, A = sn(D, k, O), j = !c.arrow && un(i) != null && k !== A && a.reference[m] / 2 - (k < D ? E : ee) - h[m] / 2 < 0, M = j ? k < D ? k - D : k - O : 0;
|
|
2453
2466
|
return {
|
|
2454
2467
|
[p]: f[p] + M,
|
|
2455
2468
|
data: {
|
|
@@ -2460,19 +2473,19 @@ var kn = 50, An = async (e, t, n) => {
|
|
|
2460
2473
|
reset: j
|
|
2461
2474
|
};
|
|
2462
2475
|
}
|
|
2463
|
-
}),
|
|
2476
|
+
}), Nn = function(e) {
|
|
2464
2477
|
return e === void 0 && (e = {}), {
|
|
2465
2478
|
name: "flip",
|
|
2466
2479
|
options: e,
|
|
2467
2480
|
async fn(t) {
|
|
2468
2481
|
var n;
|
|
2469
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
2482
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = cn(e, t);
|
|
2470
2483
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
2471
|
-
let g =
|
|
2472
|
-
!d && x && b.push(...
|
|
2484
|
+
let g = ln(r), _ = pn(o), v = ln(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [wn(o)] : gn(o)), x = p !== "none";
|
|
2485
|
+
!d && x && b.push(...Cn(o, m, p, y));
|
|
2473
2486
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
2474
2487
|
if (l && w.push(C[g]), u) {
|
|
2475
|
-
let e =
|
|
2488
|
+
let e = hn(r, a, y);
|
|
2476
2489
|
w.push(C[e[0]], C[e[1]]);
|
|
2477
2490
|
}
|
|
2478
2491
|
if (T = [...T, {
|
|
@@ -2480,7 +2493,7 @@ var kn = 50, An = async (e, t, n) => {
|
|
|
2480
2493
|
overflows: w
|
|
2481
2494
|
}], !w.every((e) => e <= 0)) {
|
|
2482
2495
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
2483
|
-
if (t && (!(u === "alignment" && _ !==
|
|
2496
|
+
if (t && (!(u === "alignment" && _ !== pn(t)) || T.every((e) => pn(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
2484
2497
|
data: {
|
|
2485
2498
|
index: e,
|
|
2486
2499
|
overflows: T
|
|
@@ -2492,7 +2505,7 @@ var kn = 50, An = async (e, t, n) => {
|
|
|
2492
2505
|
case "bestFit": {
|
|
2493
2506
|
let e = T.filter((e) => {
|
|
2494
2507
|
if (x) {
|
|
2495
|
-
let t =
|
|
2508
|
+
let t = pn(e.placement);
|
|
2496
2509
|
return t === _ || t === "y";
|
|
2497
2510
|
}
|
|
2498
2511
|
return !0;
|
|
@@ -2510,7 +2523,7 @@ var kn = 50, An = async (e, t, n) => {
|
|
|
2510
2523
|
}
|
|
2511
2524
|
};
|
|
2512
2525
|
};
|
|
2513
|
-
function
|
|
2526
|
+
function Pn(e, t) {
|
|
2514
2527
|
return {
|
|
2515
2528
|
top: e.top - t.height,
|
|
2516
2529
|
right: e.right - t.width,
|
|
@@ -2518,43 +2531,43 @@ function Nn(e, t) {
|
|
|
2518
2531
|
left: e.left - t.width
|
|
2519
2532
|
};
|
|
2520
2533
|
}
|
|
2521
|
-
function
|
|
2522
|
-
return
|
|
2534
|
+
function Fn(e) {
|
|
2535
|
+
return en.some((t) => e[t] >= 0);
|
|
2523
2536
|
}
|
|
2524
|
-
var
|
|
2537
|
+
var In = function(e) {
|
|
2525
2538
|
return e === void 0 && (e = {}), {
|
|
2526
2539
|
name: "hide",
|
|
2527
2540
|
options: e,
|
|
2528
2541
|
async fn(t) {
|
|
2529
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } =
|
|
2542
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = cn(e, t);
|
|
2530
2543
|
switch (i) {
|
|
2531
2544
|
case "referenceHidden": {
|
|
2532
|
-
let e =
|
|
2545
|
+
let e = Pn(await r.detectOverflow(t, {
|
|
2533
2546
|
...a,
|
|
2534
2547
|
elementContext: "reference"
|
|
2535
2548
|
}), n.reference);
|
|
2536
2549
|
return { data: {
|
|
2537
2550
|
referenceHiddenOffsets: e,
|
|
2538
|
-
referenceHidden:
|
|
2551
|
+
referenceHidden: Fn(e)
|
|
2539
2552
|
} };
|
|
2540
2553
|
}
|
|
2541
2554
|
case "escaped": {
|
|
2542
|
-
let e =
|
|
2555
|
+
let e = Pn(await r.detectOverflow(t, {
|
|
2543
2556
|
...a,
|
|
2544
2557
|
altBoundary: !0
|
|
2545
2558
|
}), n.floating);
|
|
2546
2559
|
return { data: {
|
|
2547
2560
|
escapedOffsets: e,
|
|
2548
|
-
escaped:
|
|
2561
|
+
escaped: Fn(e)
|
|
2549
2562
|
} };
|
|
2550
2563
|
}
|
|
2551
2564
|
default: return {};
|
|
2552
2565
|
}
|
|
2553
2566
|
}
|
|
2554
2567
|
};
|
|
2555
|
-
},
|
|
2556
|
-
async function
|
|
2557
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
2568
|
+
}, Ln = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2569
|
+
async function Rn(e, t) {
|
|
2570
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = ln(n), s = un(n), c = pn(n) === "y", l = Ln.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = cn(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
2558
2571
|
mainAxis: d,
|
|
2559
2572
|
crossAxis: 0,
|
|
2560
2573
|
alignmentAxis: null
|
|
@@ -2571,13 +2584,13 @@ async function Ln(e, t) {
|
|
|
2571
2584
|
y: p * u
|
|
2572
2585
|
};
|
|
2573
2586
|
}
|
|
2574
|
-
var
|
|
2587
|
+
var zn = function(e) {
|
|
2575
2588
|
return e === void 0 && (e = 0), {
|
|
2576
2589
|
name: "offset",
|
|
2577
2590
|
options: e,
|
|
2578
2591
|
async fn(t) {
|
|
2579
2592
|
var n;
|
|
2580
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
2593
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Rn(t, e);
|
|
2581
2594
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
2582
2595
|
x: r + s.x,
|
|
2583
2596
|
y: i + s.y,
|
|
@@ -2588,7 +2601,7 @@ var Rn = function(e) {
|
|
|
2588
2601
|
};
|
|
2589
2602
|
}
|
|
2590
2603
|
};
|
|
2591
|
-
},
|
|
2604
|
+
}, Bn = function(e) {
|
|
2592
2605
|
return e === void 0 && (e = {}), {
|
|
2593
2606
|
name: "shift",
|
|
2594
2607
|
options: e,
|
|
@@ -2599,17 +2612,17 @@ var Rn = function(e) {
|
|
|
2599
2612
|
x: t,
|
|
2600
2613
|
y: n
|
|
2601
2614
|
};
|
|
2602
|
-
} }, ...l } =
|
|
2615
|
+
} }, ...l } = cn(e, t), u = {
|
|
2603
2616
|
x: n,
|
|
2604
2617
|
y: r
|
|
2605
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
2618
|
+
}, d = await a.detectOverflow(t, l), f = pn(ln(i)), p = dn(f), m = u[p], h = u[f];
|
|
2606
2619
|
if (o) {
|
|
2607
2620
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
2608
|
-
m =
|
|
2621
|
+
m = sn(n, m, r);
|
|
2609
2622
|
}
|
|
2610
2623
|
if (s) {
|
|
2611
2624
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
2612
|
-
h =
|
|
2625
|
+
h = sn(n, h, r);
|
|
2613
2626
|
}
|
|
2614
2627
|
let g = c.fn({
|
|
2615
2628
|
...t,
|
|
@@ -2629,14 +2642,14 @@ var Rn = function(e) {
|
|
|
2629
2642
|
};
|
|
2630
2643
|
}
|
|
2631
2644
|
};
|
|
2632
|
-
},
|
|
2645
|
+
}, Vn = function(e) {
|
|
2633
2646
|
return e === void 0 && (e = {}), {
|
|
2634
2647
|
options: e,
|
|
2635
2648
|
fn(t) {
|
|
2636
|
-
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } =
|
|
2649
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = cn(e, t), u = {
|
|
2637
2650
|
x: n,
|
|
2638
2651
|
y: r
|
|
2639
|
-
}, d =
|
|
2652
|
+
}, d = pn(i), f = dn(d), p = u[f], m = u[d], h = cn(s, t), g = typeof h == "number" ? {
|
|
2640
2653
|
mainAxis: h,
|
|
2641
2654
|
crossAxis: 0
|
|
2642
2655
|
} : {
|
|
@@ -2649,7 +2662,7 @@ var Rn = function(e) {
|
|
|
2649
2662
|
p < t ? p = t : p > n && (p = n);
|
|
2650
2663
|
}
|
|
2651
2664
|
if (l) {
|
|
2652
|
-
let e = f === "y" ? "width" : "height", t =
|
|
2665
|
+
let e = f === "y" ? "width" : "height", t = Ln.has(ln(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
2653
2666
|
m < n ? m = n : m > r && (m = r);
|
|
2654
2667
|
}
|
|
2655
2668
|
return {
|
|
@@ -2658,18 +2671,18 @@ var Rn = function(e) {
|
|
|
2658
2671
|
};
|
|
2659
2672
|
}
|
|
2660
2673
|
};
|
|
2661
|
-
},
|
|
2674
|
+
}, Hn = function(e) {
|
|
2662
2675
|
return e === void 0 && (e = {}), {
|
|
2663
2676
|
name: "size",
|
|
2664
2677
|
options: e,
|
|
2665
2678
|
async fn(t) {
|
|
2666
2679
|
var n, r;
|
|
2667
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
2680
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = cn(e, t), u = await o.detectOverflow(t, l), d = ln(i), f = un(i), p = pn(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
2668
2681
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
2669
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
2682
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = tn(h - u[g], v), x = tn(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
2670
2683
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
2671
|
-
let e =
|
|
2672
|
-
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t :
|
|
2684
|
+
let e = J(u.left, 0), t = J(u.right, 0), n = J(u.top, 0), r = J(u.bottom, 0);
|
|
2685
|
+
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : J(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : J(u.top, u.bottom));
|
|
2673
2686
|
}
|
|
2674
2687
|
await c({
|
|
2675
2688
|
...t,
|
|
@@ -2683,37 +2696,37 @@ var Rn = function(e) {
|
|
|
2683
2696
|
};
|
|
2684
2697
|
//#endregion
|
|
2685
2698
|
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2686
|
-
function
|
|
2699
|
+
function Un() {
|
|
2687
2700
|
return typeof window < "u";
|
|
2688
2701
|
}
|
|
2689
|
-
function
|
|
2690
|
-
return
|
|
2702
|
+
function Wn(e) {
|
|
2703
|
+
return Kn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2691
2704
|
}
|
|
2692
|
-
function
|
|
2705
|
+
function Y(e) {
|
|
2693
2706
|
var t;
|
|
2694
2707
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2695
2708
|
}
|
|
2696
|
-
function Wn(e) {
|
|
2697
|
-
return ((Gn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
2698
|
-
}
|
|
2699
2709
|
function Gn(e) {
|
|
2700
|
-
return
|
|
2710
|
+
return ((Kn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
2701
2711
|
}
|
|
2702
2712
|
function Kn(e) {
|
|
2703
|
-
return
|
|
2713
|
+
return Un() ? e instanceof Node || e instanceof Y(e).Node : !1;
|
|
2714
|
+
}
|
|
2715
|
+
function X(e) {
|
|
2716
|
+
return Un() ? e instanceof Element || e instanceof Y(e).Element : !1;
|
|
2704
2717
|
}
|
|
2705
2718
|
function qn(e) {
|
|
2706
|
-
return
|
|
2719
|
+
return Un() ? e instanceof HTMLElement || e instanceof Y(e).HTMLElement : !1;
|
|
2707
2720
|
}
|
|
2708
2721
|
function Jn(e) {
|
|
2709
|
-
return !
|
|
2722
|
+
return !Un() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
|
|
2710
2723
|
}
|
|
2711
2724
|
function Yn(e) {
|
|
2712
2725
|
let { overflow: t, overflowX: n, overflowY: r, display: i } = or(e);
|
|
2713
2726
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
2714
2727
|
}
|
|
2715
2728
|
function Xn(e) {
|
|
2716
|
-
return /^(table|td|th)$/.test(
|
|
2729
|
+
return /^(table|td|th)$/.test(Wn(e));
|
|
2717
2730
|
}
|
|
2718
2731
|
function Zn(e) {
|
|
2719
2732
|
try {
|
|
@@ -2727,7 +2740,7 @@ function Zn(e) {
|
|
|
2727
2740
|
}
|
|
2728
2741
|
var Qn = /transform|translate|scale|rotate|perspective|filter/, $n = /paint|layout|strict|content/, er = (e) => !!e && e !== "none", tr;
|
|
2729
2742
|
function nr(e) {
|
|
2730
|
-
let t =
|
|
2743
|
+
let t = X(e) ? or(e) : e;
|
|
2731
2744
|
return er(t.transform) || er(t.translate) || er(t.scale) || er(t.rotate) || er(t.perspective) || !ir() && (er(t.backdropFilter) || er(t.filter)) || Qn.test(t.willChange || "") || $n.test(t.contain || "");
|
|
2732
2745
|
}
|
|
2733
2746
|
function rr(e) {
|
|
@@ -2743,13 +2756,13 @@ function ir() {
|
|
|
2743
2756
|
return tr ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), tr;
|
|
2744
2757
|
}
|
|
2745
2758
|
function ar(e) {
|
|
2746
|
-
return /^(html|body|#document)$/.test(
|
|
2759
|
+
return /^(html|body|#document)$/.test(Wn(e));
|
|
2747
2760
|
}
|
|
2748
2761
|
function or(e) {
|
|
2749
|
-
return
|
|
2762
|
+
return Y(e).getComputedStyle(e);
|
|
2750
2763
|
}
|
|
2751
2764
|
function sr(e) {
|
|
2752
|
-
return
|
|
2765
|
+
return X(e) ? {
|
|
2753
2766
|
scrollLeft: e.scrollLeft,
|
|
2754
2767
|
scrollTop: e.scrollTop
|
|
2755
2768
|
} : {
|
|
@@ -2758,8 +2771,8 @@ function sr(e) {
|
|
|
2758
2771
|
};
|
|
2759
2772
|
}
|
|
2760
2773
|
function cr(e) {
|
|
2761
|
-
if (
|
|
2762
|
-
let t = e.assignedSlot || e.parentNode || Jn(e) && e.host ||
|
|
2774
|
+
if (Wn(e) === "html") return e;
|
|
2775
|
+
let t = e.assignedSlot || e.parentNode || Jn(e) && e.host || Gn(e);
|
|
2763
2776
|
return Jn(t) ? t.host : t;
|
|
2764
2777
|
}
|
|
2765
2778
|
function lr(e) {
|
|
@@ -2768,7 +2781,7 @@ function lr(e) {
|
|
|
2768
2781
|
}
|
|
2769
2782
|
function ur(e, t, n) {
|
|
2770
2783
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2771
|
-
let r = lr(e), i = r === e.ownerDocument?.body, a =
|
|
2784
|
+
let r = lr(e), i = r === e.ownerDocument?.body, a = Y(r);
|
|
2772
2785
|
if (i) {
|
|
2773
2786
|
let e = dr(a);
|
|
2774
2787
|
return t.concat(a, a.visualViewport || [], Yn(r) ? r : [], e && n ? ur(e) : []);
|
|
@@ -2780,7 +2793,7 @@ function dr(e) {
|
|
|
2780
2793
|
//#endregion
|
|
2781
2794
|
//#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
2782
2795
|
function fr(e) {
|
|
2783
|
-
let t = or(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = qn(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
2796
|
+
let t = or(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = qn(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = nn(n) !== a || nn(r) !== o;
|
|
2784
2797
|
return s && (n = a, r = o), {
|
|
2785
2798
|
width: n,
|
|
2786
2799
|
height: r,
|
|
@@ -2788,41 +2801,41 @@ function fr(e) {
|
|
|
2788
2801
|
};
|
|
2789
2802
|
}
|
|
2790
2803
|
function pr(e) {
|
|
2791
|
-
return
|
|
2804
|
+
return X(e) ? e : e.contextElement;
|
|
2792
2805
|
}
|
|
2793
2806
|
function mr(e) {
|
|
2794
2807
|
let t = pr(e);
|
|
2795
|
-
if (!qn(t)) return
|
|
2796
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = fr(t), o = (a ?
|
|
2808
|
+
if (!qn(t)) return an(1);
|
|
2809
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = fr(t), o = (a ? nn(n.width) : n.width) / r, s = (a ? nn(n.height) : n.height) / i;
|
|
2797
2810
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
2798
2811
|
x: o,
|
|
2799
2812
|
y: s
|
|
2800
2813
|
};
|
|
2801
2814
|
}
|
|
2802
|
-
var hr = /* @__PURE__ */
|
|
2815
|
+
var hr = /* @__PURE__ */ an(0);
|
|
2803
2816
|
function gr(e) {
|
|
2804
|
-
let t =
|
|
2817
|
+
let t = Y(e);
|
|
2805
2818
|
return !ir() || !t.visualViewport ? hr : {
|
|
2806
2819
|
x: t.visualViewport.offsetLeft,
|
|
2807
2820
|
y: t.visualViewport.offsetTop
|
|
2808
2821
|
};
|
|
2809
2822
|
}
|
|
2810
2823
|
function _r(e, t, n) {
|
|
2811
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
2824
|
+
return t === void 0 && (t = !1), !n || t && n !== Y(e) ? !1 : t;
|
|
2812
2825
|
}
|
|
2813
2826
|
function vr(e, t, n, r) {
|
|
2814
2827
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2815
|
-
let i = e.getBoundingClientRect(), a = pr(e), o =
|
|
2816
|
-
t && (r ?
|
|
2817
|
-
let s = _r(a, n, r) ? gr(a) :
|
|
2828
|
+
let i = e.getBoundingClientRect(), a = pr(e), o = an(1);
|
|
2829
|
+
t && (r ? X(r) && (o = mr(r)) : o = mr(e));
|
|
2830
|
+
let s = _r(a, n, r) ? gr(a) : an(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
2818
2831
|
if (a) {
|
|
2819
|
-
let e =
|
|
2832
|
+
let e = Y(a), t = r && X(r) ? Y(r) : r, n = e, i = dr(n);
|
|
2820
2833
|
for (; i && r && t !== n;) {
|
|
2821
2834
|
let e = mr(i), t = i.getBoundingClientRect(), r = or(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
2822
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
2835
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Y(i), i = dr(n);
|
|
2823
2836
|
}
|
|
2824
2837
|
}
|
|
2825
|
-
return
|
|
2838
|
+
return Dn({
|
|
2826
2839
|
width: u,
|
|
2827
2840
|
height: d,
|
|
2828
2841
|
x: c,
|
|
@@ -2831,7 +2844,7 @@ function vr(e, t, n, r) {
|
|
|
2831
2844
|
}
|
|
2832
2845
|
function yr(e, t) {
|
|
2833
2846
|
let n = sr(e).scrollLeft;
|
|
2834
|
-
return t ? t.left + n : vr(
|
|
2847
|
+
return t ? t.left + n : vr(Gn(e)).left + n;
|
|
2835
2848
|
}
|
|
2836
2849
|
function br(e, t) {
|
|
2837
2850
|
let n = e.getBoundingClientRect();
|
|
@@ -2841,17 +2854,17 @@ function br(e, t) {
|
|
|
2841
2854
|
};
|
|
2842
2855
|
}
|
|
2843
2856
|
function xr(e) {
|
|
2844
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
2857
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Gn(r), s = t ? Zn(t.floating) : !1;
|
|
2845
2858
|
if (r === o || s && a) return n;
|
|
2846
2859
|
let c = {
|
|
2847
2860
|
scrollLeft: 0,
|
|
2848
2861
|
scrollTop: 0
|
|
2849
|
-
}, l =
|
|
2850
|
-
if ((d || !d && !a) && ((
|
|
2862
|
+
}, l = an(1), u = an(0), d = qn(r);
|
|
2863
|
+
if ((d || !d && !a) && ((Wn(r) !== "body" || Yn(o)) && (c = sr(r)), d)) {
|
|
2851
2864
|
let e = vr(r);
|
|
2852
2865
|
l = mr(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
2853
2866
|
}
|
|
2854
|
-
let f = o && !d && !a ? br(o, c) :
|
|
2867
|
+
let f = o && !d && !a ? br(o, c) : an(0);
|
|
2855
2868
|
return {
|
|
2856
2869
|
width: n.width * l.x,
|
|
2857
2870
|
height: n.height * l.y,
|
|
@@ -2863,8 +2876,8 @@ function Sr(e) {
|
|
|
2863
2876
|
return Array.from(e.getClientRects());
|
|
2864
2877
|
}
|
|
2865
2878
|
function Cr(e) {
|
|
2866
|
-
let t =
|
|
2867
|
-
return or(r).direction === "rtl" && (o +=
|
|
2879
|
+
let t = Gn(e), n = sr(e), r = e.ownerDocument.body, i = J(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = J(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + yr(e), s = -n.scrollTop;
|
|
2880
|
+
return or(r).direction === "rtl" && (o += J(t.clientWidth, r.clientWidth) - i), {
|
|
2868
2881
|
width: i,
|
|
2869
2882
|
height: a,
|
|
2870
2883
|
x: o,
|
|
@@ -2873,7 +2886,7 @@ function Cr(e) {
|
|
|
2873
2886
|
}
|
|
2874
2887
|
var wr = 25;
|
|
2875
2888
|
function Tr(e, t) {
|
|
2876
|
-
let n =
|
|
2889
|
+
let n = Y(e), r = Gn(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
2877
2890
|
if (i) {
|
|
2878
2891
|
a = i.width, o = i.height;
|
|
2879
2892
|
let e = ir();
|
|
@@ -2892,7 +2905,7 @@ function Tr(e, t) {
|
|
|
2892
2905
|
};
|
|
2893
2906
|
}
|
|
2894
2907
|
function Er(e, t) {
|
|
2895
|
-
let n = vr(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = qn(e) ? mr(e) :
|
|
2908
|
+
let n = vr(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = qn(e) ? mr(e) : an(1);
|
|
2896
2909
|
return {
|
|
2897
2910
|
width: e.clientWidth * a.x,
|
|
2898
2911
|
height: e.clientHeight * a.y,
|
|
@@ -2903,8 +2916,8 @@ function Er(e, t) {
|
|
|
2903
2916
|
function Dr(e, t, n) {
|
|
2904
2917
|
let r;
|
|
2905
2918
|
if (t === "viewport") r = Tr(e, n);
|
|
2906
|
-
else if (t === "document") r = Cr(
|
|
2907
|
-
else if (
|
|
2919
|
+
else if (t === "document") r = Cr(Gn(e));
|
|
2920
|
+
else if (X(t)) r = Er(t, n);
|
|
2908
2921
|
else {
|
|
2909
2922
|
let n = gr(e);
|
|
2910
2923
|
r = {
|
|
@@ -2914,17 +2927,17 @@ function Dr(e, t, n) {
|
|
|
2914
2927
|
height: t.height
|
|
2915
2928
|
};
|
|
2916
2929
|
}
|
|
2917
|
-
return
|
|
2930
|
+
return Dn(r);
|
|
2918
2931
|
}
|
|
2919
2932
|
function Or(e, t) {
|
|
2920
2933
|
let n = cr(e);
|
|
2921
|
-
return n === t || !
|
|
2934
|
+
return n === t || !X(n) || ar(n) ? !1 : or(n).position === "fixed" || Or(n, t);
|
|
2922
2935
|
}
|
|
2923
2936
|
function kr(e, t) {
|
|
2924
2937
|
let n = t.get(e);
|
|
2925
2938
|
if (n) return n;
|
|
2926
|
-
let r = ur(e, [], !1).filter((e) =>
|
|
2927
|
-
for (;
|
|
2939
|
+
let r = ur(e, [], !1).filter((e) => X(e) && Wn(e) !== "body"), i = null, a = or(e).position === "fixed", o = a ? cr(e) : e;
|
|
2940
|
+
for (; X(o) && !ar(o);) {
|
|
2928
2941
|
let t = or(o), n = nr(o);
|
|
2929
2942
|
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Yn(o) && !n && Or(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = cr(o);
|
|
2930
2943
|
}
|
|
@@ -2934,7 +2947,7 @@ function Ar(e) {
|
|
|
2934
2947
|
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Zn(t) ? [] : kr(t, this._c) : [].concat(n), r], o = Dr(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
2935
2948
|
for (let e = 1; e < a.length; e++) {
|
|
2936
2949
|
let n = Dr(t, a[e], i);
|
|
2937
|
-
s =
|
|
2950
|
+
s = J(n.top, s), c = tn(n.right, c), l = tn(n.bottom, l), u = J(n.left, u);
|
|
2938
2951
|
}
|
|
2939
2952
|
return {
|
|
2940
2953
|
width: c - u,
|
|
@@ -2951,19 +2964,19 @@ function jr(e) {
|
|
|
2951
2964
|
};
|
|
2952
2965
|
}
|
|
2953
2966
|
function Mr(e, t, n) {
|
|
2954
|
-
let r = qn(t), i =
|
|
2967
|
+
let r = qn(t), i = Gn(t), a = n === "fixed", o = vr(e, !0, a, t), s = {
|
|
2955
2968
|
scrollLeft: 0,
|
|
2956
2969
|
scrollTop: 0
|
|
2957
|
-
}, c =
|
|
2970
|
+
}, c = an(0);
|
|
2958
2971
|
function l() {
|
|
2959
2972
|
c.x = yr(i);
|
|
2960
2973
|
}
|
|
2961
|
-
if (r || !r && !a) if ((
|
|
2974
|
+
if (r || !r && !a) if ((Wn(t) !== "body" || Yn(i)) && (s = sr(t)), r) {
|
|
2962
2975
|
let e = vr(t, !0, a, t);
|
|
2963
2976
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
2964
2977
|
} else i && l();
|
|
2965
2978
|
a && !r && i && l();
|
|
2966
|
-
let u = i && !r && !a ? br(i, s) :
|
|
2979
|
+
let u = i && !r && !a ? br(i, s) : an(0);
|
|
2967
2980
|
return {
|
|
2968
2981
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
2969
2982
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -2978,15 +2991,15 @@ function Pr(e, t) {
|
|
|
2978
2991
|
if (!qn(e) || or(e).position === "fixed") return null;
|
|
2979
2992
|
if (t) return t(e);
|
|
2980
2993
|
let n = e.offsetParent;
|
|
2981
|
-
return
|
|
2994
|
+
return Gn(e) === n && (n = n.ownerDocument.body), n;
|
|
2982
2995
|
}
|
|
2983
2996
|
function Fr(e, t) {
|
|
2984
|
-
let n =
|
|
2997
|
+
let n = Y(e);
|
|
2985
2998
|
if (Zn(e)) return n;
|
|
2986
2999
|
if (!qn(e)) {
|
|
2987
3000
|
let t = cr(e);
|
|
2988
3001
|
for (; t && !ar(t);) {
|
|
2989
|
-
if (
|
|
3002
|
+
if (X(t) && !Nr(t)) return t;
|
|
2990
3003
|
t = cr(t);
|
|
2991
3004
|
}
|
|
2992
3005
|
return n;
|
|
@@ -3012,21 +3025,21 @@ function Lr(e) {
|
|
|
3012
3025
|
}
|
|
3013
3026
|
var Rr = {
|
|
3014
3027
|
convertOffsetParentRelativeRectToViewportRelativeRect: xr,
|
|
3015
|
-
getDocumentElement:
|
|
3028
|
+
getDocumentElement: Gn,
|
|
3016
3029
|
getClippingRect: Ar,
|
|
3017
3030
|
getOffsetParent: Fr,
|
|
3018
3031
|
getElementRects: Ir,
|
|
3019
3032
|
getClientRects: Sr,
|
|
3020
3033
|
getDimensions: jr,
|
|
3021
3034
|
getScale: mr,
|
|
3022
|
-
isElement:
|
|
3035
|
+
isElement: X,
|
|
3023
3036
|
isRTL: Lr
|
|
3024
3037
|
};
|
|
3025
3038
|
function zr(e, t) {
|
|
3026
3039
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
3027
3040
|
}
|
|
3028
3041
|
function Br(e, t) {
|
|
3029
|
-
let n = null, r, i =
|
|
3042
|
+
let n = null, r, i = Gn(e);
|
|
3030
3043
|
function a() {
|
|
3031
3044
|
var e;
|
|
3032
3045
|
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
@@ -3035,9 +3048,9 @@ function Br(e, t) {
|
|
|
3035
3048
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
3036
3049
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
3037
3050
|
if (s || t(), !f || !p) return;
|
|
3038
|
-
let m =
|
|
3051
|
+
let m = rn(d), h = rn(i.clientWidth - (u + f)), g = rn(i.clientHeight - (d + p)), _ = rn(u), v = {
|
|
3039
3052
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
3040
|
-
threshold:
|
|
3053
|
+
threshold: J(0, tn(1, c)) || 1
|
|
3041
3054
|
}, y = !0;
|
|
3042
3055
|
function b(t) {
|
|
3043
3056
|
let n = t[0].intersectionRatio;
|
|
@@ -3088,7 +3101,7 @@ function Vr(e, t, n, r) {
|
|
|
3088
3101
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
3089
3102
|
};
|
|
3090
3103
|
}
|
|
3091
|
-
var Hr =
|
|
3104
|
+
var Hr = zn, Ur = Bn, Wr = Nn, Gr = Hn, Kr = In, qr = Mn, Jr = Vn, Yr = (e, t, n) => {
|
|
3092
3105
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
3093
3106
|
platform: Rr,
|
|
3094
3107
|
...n
|
|
@@ -3096,7 +3109,7 @@ var Hr = Rn, Ur = zn, Wr = Mn, Gr = Vn, Kr = Fn, qr = jn, Jr = Bn, Yr = (e, t, n
|
|
|
3096
3109
|
...i.platform,
|
|
3097
3110
|
_c: r
|
|
3098
3111
|
};
|
|
3099
|
-
return
|
|
3112
|
+
return jn(e, t, {
|
|
3100
3113
|
...i,
|
|
3101
3114
|
platform: a
|
|
3102
3115
|
});
|
|
@@ -3305,7 +3318,7 @@ var ni = (e) => {
|
|
|
3305
3318
|
};
|
|
3306
3319
|
}, ui = "Arrow", di = e.forwardRef((e, t) => {
|
|
3307
3320
|
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
3308
|
-
return /* @__PURE__ */ d(
|
|
3321
|
+
return /* @__PURE__ */ d(q.svg, {
|
|
3309
3322
|
...a,
|
|
3310
3323
|
ref: t,
|
|
3311
3324
|
width: r,
|
|
@@ -3321,7 +3334,7 @@ var fi = di;
|
|
|
3321
3334
|
//#region node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
3322
3335
|
function pi(t) {
|
|
3323
3336
|
let [n, r] = e.useState(void 0);
|
|
3324
|
-
return
|
|
3337
|
+
return Xt(() => {
|
|
3325
3338
|
if (t) {
|
|
3326
3339
|
r({
|
|
3327
3340
|
width: t.offsetWidth,
|
|
@@ -3345,7 +3358,7 @@ function pi(t) {
|
|
|
3345
3358
|
}
|
|
3346
3359
|
//#endregion
|
|
3347
3360
|
//#region node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
3348
|
-
var mi = "Popper", [hi, gi] =
|
|
3361
|
+
var mi = "Popper", [hi, gi] = Et(mi), [_i, vi] = hi(mi), yi = (t) => {
|
|
3349
3362
|
let { __scopePopper: n, children: r } = t, [i, a] = e.useState(null);
|
|
3350
3363
|
return /* @__PURE__ */ d(_i, {
|
|
3351
3364
|
scope: n,
|
|
@@ -3356,18 +3369,18 @@ var mi = "Popper", [hi, gi] = Tt(mi), [_i, vi] = hi(mi), yi = (t) => {
|
|
|
3356
3369
|
};
|
|
3357
3370
|
yi.displayName = mi;
|
|
3358
3371
|
var bi = "PopperAnchor", xi = e.forwardRef((t, n) => {
|
|
3359
|
-
let { __scopePopper: r, virtualRef: i, ...a } = t, o = vi(bi, r), s = e.useRef(null), c =
|
|
3372
|
+
let { __scopePopper: r, virtualRef: i, ...a } = t, o = vi(bi, r), s = e.useRef(null), c = G(n, s), l = e.useRef(null);
|
|
3360
3373
|
return e.useEffect(() => {
|
|
3361
3374
|
let e = l.current;
|
|
3362
3375
|
l.current = i?.current || s.current, e !== l.current && o.onAnchorChange(l.current);
|
|
3363
|
-
}), i ? null : /* @__PURE__ */ d(
|
|
3376
|
+
}), i ? null : /* @__PURE__ */ d(q.div, {
|
|
3364
3377
|
...a,
|
|
3365
3378
|
ref: c
|
|
3366
3379
|
});
|
|
3367
3380
|
});
|
|
3368
3381
|
xi.displayName = bi;
|
|
3369
3382
|
var Si = "PopperContent", [Ci, wi] = hi(Si), Ti = e.forwardRef((t, n) => {
|
|
3370
|
-
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: f = 0, sticky: p = "partial", hideWhenDetached: m = !1, updatePositionStrategy: h = "optimized", onPlaced: g, ..._ } = t, v = vi(Si, r), [y, b] = e.useState(null), x =
|
|
3383
|
+
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: f = 0, sticky: p = "partial", hideWhenDetached: m = !1, updatePositionStrategy: h = "optimized", onPlaced: g, ..._ } = t, v = vi(Si, r), [y, b] = e.useState(null), x = G(n, (e) => b(e)), [S, C] = e.useState(null), w = pi(S), T = w?.width ?? 0, E = w?.height ?? 0, ee = i + (o === "center" ? "" : "-" + o), D = typeof f == "number" ? f : {
|
|
3371
3384
|
top: 0,
|
|
3372
3385
|
right: 0,
|
|
3373
3386
|
bottom: 0,
|
|
@@ -3414,13 +3427,13 @@ var Si = "PopperContent", [Ci, wi] = hi(Si), Ti = e.forwardRef((t, n) => {
|
|
|
3414
3427
|
...A
|
|
3415
3428
|
})
|
|
3416
3429
|
]
|
|
3417
|
-
}), [te, ne] = ji(N), re =
|
|
3418
|
-
|
|
3430
|
+
}), [te, ne] = ji(N), re = Ft(g);
|
|
3431
|
+
Xt(() => {
|
|
3419
3432
|
P && re?.();
|
|
3420
3433
|
}, [P, re]);
|
|
3421
|
-
let ie = F.arrow?.x, I = F.arrow?.y, L = F.arrow?.centerOffset !== 0, [
|
|
3422
|
-
return
|
|
3423
|
-
y &&
|
|
3434
|
+
let ie = F.arrow?.x, I = F.arrow?.y, L = F.arrow?.centerOffset !== 0, [ae, oe] = e.useState();
|
|
3435
|
+
return Xt(() => {
|
|
3436
|
+
y && oe(window.getComputedStyle(y).zIndex);
|
|
3424
3437
|
}, [y]), /* @__PURE__ */ d("div", {
|
|
3425
3438
|
ref: j.setFloating,
|
|
3426
3439
|
"data-radix-popper-content-wrapper": "",
|
|
@@ -3428,7 +3441,7 @@ var Si = "PopperContent", [Ci, wi] = hi(Si), Ti = e.forwardRef((t, n) => {
|
|
|
3428
3441
|
...M,
|
|
3429
3442
|
transform: P ? M.transform : "translate(0, -200%)",
|
|
3430
3443
|
minWidth: "max-content",
|
|
3431
|
-
zIndex:
|
|
3444
|
+
zIndex: ae,
|
|
3432
3445
|
"--radix-popper-transform-origin": [F.transformOrigin?.x, F.transformOrigin?.y].join(" "),
|
|
3433
3446
|
...F.hide?.referenceHidden && {
|
|
3434
3447
|
visibility: "hidden",
|
|
@@ -3443,7 +3456,7 @@ var Si = "PopperContent", [Ci, wi] = hi(Si), Ti = e.forwardRef((t, n) => {
|
|
|
3443
3456
|
arrowX: ie,
|
|
3444
3457
|
arrowY: I,
|
|
3445
3458
|
shouldHideArrow: L,
|
|
3446
|
-
children: /* @__PURE__ */ d(
|
|
3459
|
+
children: /* @__PURE__ */ d(q.div, {
|
|
3447
3460
|
"data-side": te,
|
|
3448
3461
|
"data-align": ne,
|
|
3449
3462
|
..._,
|
|
@@ -3520,9 +3533,9 @@ function ji(e) {
|
|
|
3520
3533
|
}
|
|
3521
3534
|
var Mi = yi, Ni = xi, Pi = Ti, Fi = Oi, Ii = "Portal", Li = e.forwardRef((t, n) => {
|
|
3522
3535
|
let { container: r, ...i } = t, [a, o] = e.useState(!1);
|
|
3523
|
-
|
|
3536
|
+
Xt(() => o(!0), []);
|
|
3524
3537
|
let s = r || a && globalThis?.document?.body;
|
|
3525
|
-
return s ? m.createPortal(/* @__PURE__ */ d(
|
|
3538
|
+
return s ? m.createPortal(/* @__PURE__ */ d(q.div, {
|
|
3526
3539
|
...i,
|
|
3527
3540
|
ref: n
|
|
3528
3541
|
}), s) : null;
|
|
@@ -3534,7 +3547,7 @@ function Ri(t, n) {
|
|
|
3534
3547
|
return e.useReducer((e, t) => n[e][t] ?? e, t);
|
|
3535
3548
|
}
|
|
3536
3549
|
var zi = (t) => {
|
|
3537
|
-
let { present: n, children: r } = t, i = Bi(n), a = typeof r == "function" ? r({ present: i.isPresent }) : e.Children.only(r), o =
|
|
3550
|
+
let { present: n, children: r } = t, i = Bi(n), a = typeof r == "function" ? r({ present: i.isPresent }) : e.Children.only(r), o = G(i.ref, Hi(a));
|
|
3538
3551
|
return typeof r == "function" || i.isPresent ? e.cloneElement(a, { ref: o }) : null;
|
|
3539
3552
|
};
|
|
3540
3553
|
zi.displayName = "Presence";
|
|
@@ -3553,13 +3566,13 @@ function Bi(t) {
|
|
|
3553
3566
|
return e.useEffect(() => {
|
|
3554
3567
|
let e = Vi(i.current);
|
|
3555
3568
|
o.current = s === "mounted" ? e : "none";
|
|
3556
|
-
}, [s]),
|
|
3569
|
+
}, [s]), Xt(() => {
|
|
3557
3570
|
let e = i.current, n = a.current;
|
|
3558
3571
|
if (n !== t) {
|
|
3559
3572
|
let r = o.current, i = Vi(e);
|
|
3560
3573
|
t ? c("MOUNT") : i === "none" || e?.display === "none" ? c("UNMOUNT") : c(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = t;
|
|
3561
3574
|
}
|
|
3562
|
-
}, [t, c]),
|
|
3575
|
+
}, [t, c]), Xt(() => {
|
|
3563
3576
|
if (n) {
|
|
3564
3577
|
let e, t = n.ownerDocument.defaultView ?? window, r = (r) => {
|
|
3565
3578
|
let o = Vi(i.current).includes(CSS.escape(r.animationName));
|
|
@@ -3600,7 +3613,7 @@ function Wi(e) {
|
|
|
3600
3613
|
}
|
|
3601
3614
|
//#endregion
|
|
3602
3615
|
//#region node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
3603
|
-
var Gi = e.useInsertionEffect ||
|
|
3616
|
+
var Gi = e.useInsertionEffect || Xt;
|
|
3604
3617
|
function Ki({ prop: t, defaultProp: n, onChange: r = () => {}, caller: i }) {
|
|
3605
3618
|
let [a, o, s] = qi({
|
|
3606
3619
|
defaultProp: n,
|
|
@@ -3653,7 +3666,7 @@ var Yi = Object.freeze({
|
|
|
3653
3666
|
clip: "rect(0, 0, 0, 0)",
|
|
3654
3667
|
whiteSpace: "nowrap",
|
|
3655
3668
|
wordWrap: "normal"
|
|
3656
|
-
}), Xi = "VisuallyHidden", Zi = e.forwardRef((e, t) => /* @__PURE__ */ d(
|
|
3669
|
+
}), Xi = "VisuallyHidden", Zi = e.forwardRef((e, t) => /* @__PURE__ */ d(q.span, {
|
|
3657
3670
|
...e,
|
|
3658
3671
|
ref: t,
|
|
3659
3672
|
style: {
|
|
@@ -3662,7 +3675,7 @@ var Yi = Object.freeze({
|
|
|
3662
3675
|
}
|
|
3663
3676
|
}));
|
|
3664
3677
|
Zi.displayName = Xi;
|
|
3665
|
-
var Qi = Zi, [$i, ea] =
|
|
3678
|
+
var Qi = Zi, [$i, ea] = Et("Tooltip", [gi]), ta = gi(), na = "TooltipProvider", ra = 700, ia = "tooltip.open", [aa, oa] = $i(na), sa = (t) => {
|
|
3666
3679
|
let { __scopeTooltip: n, delayDuration: r = ra, skipDelayDuration: i = 300, disableHoverableContent: a = !1, children: o } = t, s = e.useRef(!0), c = e.useRef(!1), l = e.useRef(0);
|
|
3667
3680
|
return e.useEffect(() => {
|
|
3668
3681
|
let e = l.current;
|
|
@@ -3687,7 +3700,7 @@ var Qi = Zi, [$i, ea] = Tt("Tooltip", [gi]), ta = gi(), na = "TooltipProvider",
|
|
|
3687
3700
|
};
|
|
3688
3701
|
sa.displayName = na;
|
|
3689
3702
|
var ca = "Tooltip", [la, ua] = $i(ca), da = (t) => {
|
|
3690
|
-
let { __scopeTooltip: n, children: r, open: i, defaultOpen: a, onOpenChange: o, disableHoverableContent: s, delayDuration: c } = t, l = oa(ca, t.__scopeTooltip), u = ta(n), [f, p] = e.useState(null), m =
|
|
3703
|
+
let { __scopeTooltip: n, children: r, open: i, defaultOpen: a, onOpenChange: o, disableHoverableContent: s, delayDuration: c } = t, l = oa(ca, t.__scopeTooltip), u = ta(n), [f, p] = e.useState(null), m = $t(), h = e.useRef(0), g = s ?? l.disableHoverableContent, _ = c ?? l.delayDuration, v = e.useRef(!1), [y, b] = Ki({
|
|
3691
3704
|
prop: i,
|
|
3692
3705
|
defaultProp: a ?? !1,
|
|
3693
3706
|
onChange: (e) => {
|
|
@@ -3733,29 +3746,29 @@ var ca = "Tooltip", [la, ua] = $i(ca), da = (t) => {
|
|
|
3733
3746
|
};
|
|
3734
3747
|
da.displayName = ca;
|
|
3735
3748
|
var fa = "TooltipTrigger", pa = e.forwardRef((t, n) => {
|
|
3736
|
-
let { __scopeTooltip: r, ...i } = t, a = ua(fa, r), o = oa(fa, r), s = ta(r), c =
|
|
3749
|
+
let { __scopeTooltip: r, ...i } = t, a = ua(fa, r), o = oa(fa, r), s = ta(r), c = G(n, e.useRef(null), a.onTriggerChange), l = e.useRef(!1), u = e.useRef(!1), f = e.useCallback(() => l.current = !1, []);
|
|
3737
3750
|
return e.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ d(Ni, {
|
|
3738
3751
|
asChild: !0,
|
|
3739
3752
|
...s,
|
|
3740
|
-
children: /* @__PURE__ */ d(
|
|
3753
|
+
children: /* @__PURE__ */ d(q.button, {
|
|
3741
3754
|
"aria-describedby": a.open ? a.contentId : void 0,
|
|
3742
3755
|
"data-state": a.stateAttribute,
|
|
3743
3756
|
...i,
|
|
3744
3757
|
ref: c,
|
|
3745
|
-
onPointerMove:
|
|
3758
|
+
onPointerMove: K(t.onPointerMove, (e) => {
|
|
3746
3759
|
e.pointerType !== "touch" && !u.current && !o.isPointerInTransitRef.current && (a.onTriggerEnter(), u.current = !0);
|
|
3747
3760
|
}),
|
|
3748
|
-
onPointerLeave:
|
|
3761
|
+
onPointerLeave: K(t.onPointerLeave, () => {
|
|
3749
3762
|
a.onTriggerLeave(), u.current = !1;
|
|
3750
3763
|
}),
|
|
3751
|
-
onPointerDown:
|
|
3764
|
+
onPointerDown: K(t.onPointerDown, () => {
|
|
3752
3765
|
a.open && a.onClose(), l.current = !0, document.addEventListener("pointerup", f, { once: !0 });
|
|
3753
3766
|
}),
|
|
3754
|
-
onFocus:
|
|
3767
|
+
onFocus: K(t.onFocus, () => {
|
|
3755
3768
|
l.current || a.onOpen();
|
|
3756
3769
|
}),
|
|
3757
|
-
onBlur:
|
|
3758
|
-
onClick:
|
|
3770
|
+
onBlur: K(t.onBlur, a.onClose),
|
|
3771
|
+
onClick: K(t.onClick, a.onClose)
|
|
3759
3772
|
})
|
|
3760
3773
|
});
|
|
3761
3774
|
});
|
|
@@ -3791,7 +3804,7 @@ var va = "TooltipContent", ya = e.forwardRef((e, t) => {
|
|
|
3791
3804
|
})
|
|
3792
3805
|
});
|
|
3793
3806
|
}), ba = e.forwardRef((t, n) => {
|
|
3794
|
-
let r = ua(va, t.__scopeTooltip), i = oa(va, t.__scopeTooltip), a = e.useRef(null), o =
|
|
3807
|
+
let r = ua(va, t.__scopeTooltip), i = oa(va, t.__scopeTooltip), a = e.useRef(null), o = G(n, a), [s, c] = e.useState(null), { trigger: l, onClose: u } = r, f = a.current, { onPointerInTransitChange: p } = i, m = e.useCallback(() => {
|
|
3795
3808
|
c(null), p(!1);
|
|
3796
3809
|
}, [p]), h = e.useCallback((e, t) => {
|
|
3797
3810
|
let n = e.currentTarget, r = {
|
|
@@ -3842,7 +3855,7 @@ var va = "TooltipContent", ya = e.forwardRef((e, t) => {
|
|
|
3842
3855
|
};
|
|
3843
3856
|
return window.addEventListener("scroll", e, { capture: !0 }), () => window.removeEventListener("scroll", e, { capture: !0 });
|
|
3844
3857
|
}
|
|
3845
|
-
}, [l.trigger, p]), /* @__PURE__ */ d(
|
|
3858
|
+
}, [l.trigger, p]), /* @__PURE__ */ d(Ut, {
|
|
3846
3859
|
asChild: !0,
|
|
3847
3860
|
disableOutsidePointerEvents: !1,
|
|
3848
3861
|
onEscapeKeyDown: o,
|
|
@@ -4004,9 +4017,9 @@ function za({ content: e, children: t, className: n }) {
|
|
|
4004
4017
|
asChild: !0,
|
|
4005
4018
|
children: t
|
|
4006
4019
|
}), /* @__PURE__ */ d(Ia, { children: /* @__PURE__ */ f(La, {
|
|
4007
|
-
className:
|
|
4020
|
+
className: W("z-50 px-3 py-2 rounded-tooltip text-xs text-white bg-neutral", "animate-in fade-in-0 zoom-in-95", n),
|
|
4008
4021
|
sideOffset: 4,
|
|
4009
|
-
children: [e, /* @__PURE__ */ d(Ra, { className: "fill-
|
|
4022
|
+
children: [e, /* @__PURE__ */ d(Ra, { className: "fill-neutral" })]
|
|
4010
4023
|
}) })] })
|
|
4011
4024
|
});
|
|
4012
4025
|
}
|
|
@@ -4016,7 +4029,7 @@ var Ba = "focusScope.autoFocusOnMount", Va = "focusScope.autoFocusOnUnmount", Ha
|
|
|
4016
4029
|
bubbles: !1,
|
|
4017
4030
|
cancelable: !0
|
|
4018
4031
|
}, Ua = "FocusScope", Wa = e.forwardRef((t, n) => {
|
|
4019
|
-
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = t, [c, l] = e.useState(null), u =
|
|
4032
|
+
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = t, [c, l] = e.useState(null), u = Ft(a), f = Ft(o), p = e.useRef(null), m = G(n, (e) => l(e)), h = e.useRef({
|
|
4020
4033
|
paused: !1,
|
|
4021
4034
|
pause() {
|
|
4022
4035
|
this.paused = !0;
|
|
@@ -4084,7 +4097,7 @@ var Ba = "focusScope.autoFocusOnMount", Va = "focusScope.autoFocusOnUnmount", Ha
|
|
|
4084
4097
|
i,
|
|
4085
4098
|
h.paused
|
|
4086
4099
|
]);
|
|
4087
|
-
return /* @__PURE__ */ d(
|
|
4100
|
+
return /* @__PURE__ */ d(q.div, {
|
|
4088
4101
|
tabIndex: -1,
|
|
4089
4102
|
...s,
|
|
4090
4103
|
ref: m,
|
|
@@ -4732,7 +4745,7 @@ function Ts(t) {
|
|
|
4732
4745
|
let { children: r, ...i } = t;
|
|
4733
4746
|
if (e.isValidElement(r)) {
|
|
4734
4747
|
let t = ks(r), a = Os(i, r.props);
|
|
4735
|
-
return r.type !== e.Fragment && (a.ref = n ?
|
|
4748
|
+
return r.type !== e.Fragment && (a.ref = n ? it(n, t) : t), e.cloneElement(r, a);
|
|
4736
4749
|
}
|
|
4737
4750
|
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
4738
4751
|
});
|
|
@@ -4765,7 +4778,7 @@ function ks(e) {
|
|
|
4765
4778
|
}
|
|
4766
4779
|
//#endregion
|
|
4767
4780
|
//#region node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
4768
|
-
var As = "Dialog", [js, Ms] =
|
|
4781
|
+
var As = "Dialog", [js, Ms] = Et(As), [Ns, Ps] = js(As), Fs = (t) => {
|
|
4769
4782
|
let { __scopeDialog: n, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = t, c = e.useRef(null), l = e.useRef(null), [u, f] = Ki({
|
|
4770
4783
|
prop: i,
|
|
4771
4784
|
defaultProp: a ?? !1,
|
|
@@ -4776,9 +4789,9 @@ var As = "Dialog", [js, Ms] = Tt(As), [Ns, Ps] = js(As), Fs = (t) => {
|
|
|
4776
4789
|
scope: n,
|
|
4777
4790
|
triggerRef: c,
|
|
4778
4791
|
contentRef: l,
|
|
4779
|
-
contentId:
|
|
4780
|
-
titleId:
|
|
4781
|
-
descriptionId:
|
|
4792
|
+
contentId: $t(),
|
|
4793
|
+
titleId: $t(),
|
|
4794
|
+
descriptionId: $t(),
|
|
4782
4795
|
open: u,
|
|
4783
4796
|
onOpenChange: f,
|
|
4784
4797
|
onOpenToggle: e.useCallback(() => f((e) => !e), [f]),
|
|
@@ -4788,8 +4801,8 @@ var As = "Dialog", [js, Ms] = Tt(As), [Ns, Ps] = js(As), Fs = (t) => {
|
|
|
4788
4801
|
};
|
|
4789
4802
|
Fs.displayName = As;
|
|
4790
4803
|
var Is = "DialogTrigger", Ls = e.forwardRef((e, t) => {
|
|
4791
|
-
let { __scopeDialog: n, ...r } = e, i = Ps(Is, n), a =
|
|
4792
|
-
return /* @__PURE__ */ d(
|
|
4804
|
+
let { __scopeDialog: n, ...r } = e, i = Ps(Is, n), a = G(t, i.triggerRef);
|
|
4805
|
+
return /* @__PURE__ */ d(q.button, {
|
|
4793
4806
|
type: "button",
|
|
4794
4807
|
"aria-haspopup": "dialog",
|
|
4795
4808
|
"aria-expanded": i.open,
|
|
@@ -4797,7 +4810,7 @@ var Is = "DialogTrigger", Ls = e.forwardRef((e, t) => {
|
|
|
4797
4810
|
"data-state": rc(i.open),
|
|
4798
4811
|
...r,
|
|
4799
4812
|
ref: a,
|
|
4800
|
-
onClick:
|
|
4813
|
+
onClick: K(e.onClick, i.onOpenToggle)
|
|
4801
4814
|
});
|
|
4802
4815
|
});
|
|
4803
4816
|
Ls.displayName = Is;
|
|
@@ -4834,7 +4847,7 @@ var Ws = /* @__PURE__ */ ws("DialogOverlay.RemoveScroll"), Gs = e.forwardRef((e,
|
|
|
4834
4847
|
as: Ws,
|
|
4835
4848
|
allowPinchZoom: !0,
|
|
4836
4849
|
shards: [i.contentRef],
|
|
4837
|
-
children: /* @__PURE__ */ d(
|
|
4850
|
+
children: /* @__PURE__ */ d(q.div, {
|
|
4838
4851
|
"data-state": rc(i.open),
|
|
4839
4852
|
...r,
|
|
4840
4853
|
ref: t,
|
|
@@ -4859,7 +4872,7 @@ var Ws = /* @__PURE__ */ ws("DialogOverlay.RemoveScroll"), Gs = e.forwardRef((e,
|
|
|
4859
4872
|
});
|
|
4860
4873
|
qs.displayName = Ks;
|
|
4861
4874
|
var Js = e.forwardRef((t, n) => {
|
|
4862
|
-
let r = Ps(Ks, t.__scopeDialog), i = e.useRef(null), a =
|
|
4875
|
+
let r = Ps(Ks, t.__scopeDialog), i = e.useRef(null), a = G(n, r.contentRef, i);
|
|
4863
4876
|
return e.useEffect(() => {
|
|
4864
4877
|
let e = i.current;
|
|
4865
4878
|
if (e) return Cs(e);
|
|
@@ -4868,14 +4881,14 @@ var Js = e.forwardRef((t, n) => {
|
|
|
4868
4881
|
ref: a,
|
|
4869
4882
|
trapFocus: r.open,
|
|
4870
4883
|
disableOutsidePointerEvents: !0,
|
|
4871
|
-
onCloseAutoFocus:
|
|
4884
|
+
onCloseAutoFocus: K(t.onCloseAutoFocus, (e) => {
|
|
4872
4885
|
e.preventDefault(), r.triggerRef.current?.focus();
|
|
4873
4886
|
}),
|
|
4874
|
-
onPointerDownOutside:
|
|
4887
|
+
onPointerDownOutside: K(t.onPointerDownOutside, (e) => {
|
|
4875
4888
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
4876
4889
|
(t.button === 2 || n) && e.preventDefault();
|
|
4877
4890
|
}),
|
|
4878
|
-
onFocusOutside:
|
|
4891
|
+
onFocusOutside: K(t.onFocusOutside, (e) => e.preventDefault())
|
|
4879
4892
|
});
|
|
4880
4893
|
}), Ys = e.forwardRef((t, n) => {
|
|
4881
4894
|
let r = Ps(Ks, t.__scopeDialog), i = e.useRef(!1), a = e.useRef(!1);
|
|
@@ -4894,14 +4907,14 @@ var Js = e.forwardRef((t, n) => {
|
|
|
4894
4907
|
}
|
|
4895
4908
|
});
|
|
4896
4909
|
}), Xs = e.forwardRef((t, n) => {
|
|
4897
|
-
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = t, c = Ps(Ks, r), l = e.useRef(null), p =
|
|
4910
|
+
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = t, c = Ps(Ks, r), l = e.useRef(null), p = G(n, l);
|
|
4898
4911
|
return ro(), /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(Wa, {
|
|
4899
4912
|
asChild: !0,
|
|
4900
4913
|
loop: !0,
|
|
4901
4914
|
trapped: i,
|
|
4902
4915
|
onMountAutoFocus: a,
|
|
4903
4916
|
onUnmountAutoFocus: o,
|
|
4904
|
-
children: /* @__PURE__ */ d(
|
|
4917
|
+
children: /* @__PURE__ */ d(Ut, {
|
|
4905
4918
|
role: "dialog",
|
|
4906
4919
|
id: c.contentId,
|
|
4907
4920
|
"aria-describedby": c.descriptionId,
|
|
@@ -4917,7 +4930,7 @@ var Js = e.forwardRef((t, n) => {
|
|
|
4917
4930
|
})] })] });
|
|
4918
4931
|
}), Zs = "DialogTitle", Qs = e.forwardRef((e, t) => {
|
|
4919
4932
|
let { __scopeDialog: n, ...r } = e, i = Ps(Zs, n);
|
|
4920
|
-
return /* @__PURE__ */ d(
|
|
4933
|
+
return /* @__PURE__ */ d(q.h2, {
|
|
4921
4934
|
id: i.titleId,
|
|
4922
4935
|
...r,
|
|
4923
4936
|
ref: t
|
|
@@ -4926,7 +4939,7 @@ var Js = e.forwardRef((t, n) => {
|
|
|
4926
4939
|
Qs.displayName = Zs;
|
|
4927
4940
|
var $s = "DialogDescription", ec = e.forwardRef((e, t) => {
|
|
4928
4941
|
let { __scopeDialog: n, ...r } = e, i = Ps($s, n);
|
|
4929
|
-
return /* @__PURE__ */ d(
|
|
4942
|
+
return /* @__PURE__ */ d(q.p, {
|
|
4930
4943
|
id: i.descriptionId,
|
|
4931
4944
|
...r,
|
|
4932
4945
|
ref: t
|
|
@@ -4935,18 +4948,18 @@ var $s = "DialogDescription", ec = e.forwardRef((e, t) => {
|
|
|
4935
4948
|
ec.displayName = $s;
|
|
4936
4949
|
var tc = "DialogClose", nc = e.forwardRef((e, t) => {
|
|
4937
4950
|
let { __scopeDialog: n, ...r } = e, i = Ps(tc, n);
|
|
4938
|
-
return /* @__PURE__ */ d(
|
|
4951
|
+
return /* @__PURE__ */ d(q.button, {
|
|
4939
4952
|
type: "button",
|
|
4940
4953
|
...r,
|
|
4941
4954
|
ref: t,
|
|
4942
|
-
onClick:
|
|
4955
|
+
onClick: K(e.onClick, () => i.onOpenChange(!1))
|
|
4943
4956
|
});
|
|
4944
4957
|
});
|
|
4945
4958
|
nc.displayName = tc;
|
|
4946
4959
|
function rc(e) {
|
|
4947
4960
|
return e ? "open" : "closed";
|
|
4948
4961
|
}
|
|
4949
|
-
var ic = "DialogTitleWarning", [ac, oc] =
|
|
4962
|
+
var ic = "DialogTitleWarning", [ac, oc] = Tt(ic, {
|
|
4950
4963
|
contentName: Ks,
|
|
4951
4964
|
titleName: Zs,
|
|
4952
4965
|
docsSlug: "dialog"
|
|
@@ -5447,28 +5460,28 @@ function dl({ open: e, onOpenChange: n, children: r, onDrag: i, onRelease: a, sn
|
|
|
5447
5460
|
defaultProp: S,
|
|
5448
5461
|
prop: e,
|
|
5449
5462
|
onChange: (e) => {
|
|
5450
|
-
n?.(e), !e && !y &&
|
|
5463
|
+
n?.(e), !e && !y && be(), setTimeout(() => {
|
|
5451
5464
|
ee?.(e);
|
|
5452
5465
|
}, $.DURATION * 1e3), e && !_ && typeof window < "u" && window.requestAnimationFrame(() => {
|
|
5453
5466
|
document.body.style.pointerEvents = "auto";
|
|
5454
5467
|
}), e || (document.body.style.pointerEvents = "auto");
|
|
5455
5468
|
}
|
|
5456
|
-
}), [j, M] = t.useState(!1), [N, P] = t.useState(!1), [F, te] = t.useState(!1), ne = t.useRef(null), re = t.useRef(null), ie = t.useRef(null), I = t.useRef(null), L = t.useRef(null),
|
|
5469
|
+
}), [j, M] = t.useState(!1), [N, P] = t.useState(!1), [F, te] = t.useState(!1), ne = t.useRef(null), re = t.useRef(null), ie = t.useRef(null), I = t.useRef(null), L = t.useRef(null), ae = t.useRef(!1), oe = t.useRef(null), R = t.useRef(0), se = t.useRef(!1), ce = t.useRef(!S), le = t.useRef(0), z = t.useRef(null), ue = t.useRef(z.current?.getBoundingClientRect().height || 0), de = t.useRef(z.current?.getBoundingClientRect().width || 0), fe = t.useRef(0), { activeSnapPoint: pe, activeSnapPointIndex: me, setActiveSnapPoint: he, onRelease: ge, snapPointsOffset: _e, onDrag: ve, shouldFade: B, getPercentageDragged: ye } = sl({
|
|
5457
5470
|
snapPoints: o,
|
|
5458
5471
|
activeSnapPointProp: m,
|
|
5459
5472
|
setActiveSnapPointProp: h,
|
|
5460
|
-
drawerRef:
|
|
5473
|
+
drawerRef: z,
|
|
5461
5474
|
fadeFromIndex: p,
|
|
5462
5475
|
overlayRef: ne,
|
|
5463
5476
|
onSnapPointChange: t.useCallback((e) => {
|
|
5464
|
-
o && e ===
|
|
5477
|
+
o && e === _e.length - 1 && (re.current = /* @__PURE__ */ new Date());
|
|
5465
5478
|
}, []),
|
|
5466
5479
|
direction: x,
|
|
5467
5480
|
container: D,
|
|
5468
5481
|
snapToSequentialPoint: w
|
|
5469
5482
|
});
|
|
5470
5483
|
Lc({ isDisabled: !k || N || !_ || F || !j || !E || !C });
|
|
5471
|
-
let { restorePositionSetting:
|
|
5484
|
+
let { restorePositionSetting: be } = ul({
|
|
5472
5485
|
isOpen: k,
|
|
5473
5486
|
modal: _,
|
|
5474
5487
|
nested: y ?? !1,
|
|
@@ -5476,14 +5489,14 @@ function dl({ open: e, onOpenChange: n, children: r, onDrag: i, onRelease: a, sn
|
|
|
5476
5489
|
preventScrollRestoration: T,
|
|
5477
5490
|
noBodyStyles: b
|
|
5478
5491
|
});
|
|
5479
|
-
function
|
|
5492
|
+
function V() {
|
|
5480
5493
|
return (window.innerWidth - nl) / window.innerWidth;
|
|
5481
5494
|
}
|
|
5482
|
-
function
|
|
5483
|
-
!d && !o ||
|
|
5495
|
+
function xe(e) {
|
|
5496
|
+
!d && !o || z.current && !z.current.contains(e.target) || (ue.current = z.current?.getBoundingClientRect().height || 0, de.current = z.current?.getBoundingClientRect().width || 0, P(!0), ie.current = /* @__PURE__ */ new Date(), Ec() && window.addEventListener("touchend", () => ae.current = !1, { once: !0 }), e.target.setPointerCapture(e.pointerId), R.current = Q(x) ? e.pageY : e.pageX);
|
|
5484
5497
|
}
|
|
5485
|
-
function
|
|
5486
|
-
let n = e, r = window.getSelection()?.toString(), i =
|
|
5498
|
+
function Se(e, t) {
|
|
5499
|
+
let n = e, r = window.getSelection()?.toString(), i = z.current ? Jc(z.current, x) : null, a = /* @__PURE__ */ new Date();
|
|
5487
5500
|
if (n.tagName === "SELECT" || n.hasAttribute("data-vaul-no-drag") || n.closest("[data-vaul-no-drag]")) return !1;
|
|
5488
5501
|
if (x === "right" || x === "left") return !0;
|
|
5489
5502
|
if (re.current && a.getTime() - re.current.getTime() < 500) return !1;
|
|
@@ -5499,23 +5512,23 @@ function dl({ open: e, onOpenChange: n, children: r, onDrag: i, onRelease: a, sn
|
|
|
5499
5512
|
}
|
|
5500
5513
|
return !0;
|
|
5501
5514
|
}
|
|
5502
|
-
function
|
|
5503
|
-
if (
|
|
5504
|
-
let t = x === "bottom" || x === "right" ? 1 : -1, n = (
|
|
5505
|
-
if (a &&
|
|
5506
|
-
let c = Math.abs(n), l = document.querySelector("[data-vaul-drawer-wrapper]"), u = c / (x === "bottom" || x === "top" ?
|
|
5507
|
-
if (f !== null && (u = f), a && u >= 1 || !
|
|
5508
|
-
if (
|
|
5515
|
+
function Ce(e) {
|
|
5516
|
+
if (z.current && N) {
|
|
5517
|
+
let t = x === "bottom" || x === "right" ? 1 : -1, n = (R.current - (Q(x) ? e.pageY : e.pageX)) * t, r = n > 0, a = o && !d && !r;
|
|
5518
|
+
if (a && me === 0) return;
|
|
5519
|
+
let c = Math.abs(n), l = document.querySelector("[data-vaul-drawer-wrapper]"), u = c / (x === "bottom" || x === "top" ? ue.current : de.current), f = ye(c, r);
|
|
5520
|
+
if (f !== null && (u = f), a && u >= 1 || !ae.current && !Se(e.target, r)) return;
|
|
5521
|
+
if (z.current.classList.add(rl), ae.current = !0, Z(z.current, { transition: "none" }), Z(ne.current, { transition: "none" }), o && ve({ draggedDistance: n }), r && !o) {
|
|
5509
5522
|
let e = Yc(n), r = Math.min(e * -1, 0) * t;
|
|
5510
|
-
Z(
|
|
5523
|
+
Z(z.current, { transform: Q(x) ? `translate3d(0, ${r}px, 0)` : `translate3d(${r}px, 0, 0)` });
|
|
5511
5524
|
return;
|
|
5512
5525
|
}
|
|
5513
5526
|
let m = 1 - u;
|
|
5514
|
-
if ((
|
|
5527
|
+
if ((B || p && me === p - 1) && (i?.(e, u), Z(ne.current, {
|
|
5515
5528
|
opacity: `${m}`,
|
|
5516
5529
|
transition: "none"
|
|
5517
5530
|
}, !0)), l && ne.current && s) {
|
|
5518
|
-
let e = Math.min(
|
|
5531
|
+
let e = Math.min(V() + u * (1 - V()), 1), t = 8 - u * 8, n = Math.max(0, 14 - u * 14);
|
|
5519
5532
|
Z(l, {
|
|
5520
5533
|
borderRadius: `${t}px`,
|
|
5521
5534
|
transform: Q(x) ? `scale(${e}) translate3d(0, ${n}px, 0)` : `scale(${e}) translate3d(${n}px, 0, 0)`,
|
|
@@ -5524,49 +5537,49 @@ function dl({ open: e, onOpenChange: n, children: r, onDrag: i, onRelease: a, sn
|
|
|
5524
5537
|
}
|
|
5525
5538
|
if (!o) {
|
|
5526
5539
|
let e = c * t;
|
|
5527
|
-
Z(
|
|
5540
|
+
Z(z.current, { transform: Q(x) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)` });
|
|
5528
5541
|
}
|
|
5529
5542
|
}
|
|
5530
5543
|
}
|
|
5531
5544
|
t.useEffect(() => {
|
|
5532
5545
|
window.requestAnimationFrame(() => {
|
|
5533
|
-
|
|
5546
|
+
ce.current = !0;
|
|
5534
5547
|
});
|
|
5535
5548
|
}, []), t.useEffect(() => {
|
|
5536
5549
|
var e;
|
|
5537
5550
|
function t() {
|
|
5538
|
-
if (!
|
|
5551
|
+
if (!z.current || !E) return;
|
|
5539
5552
|
let e = document.activeElement;
|
|
5540
|
-
if (Hc(e) ||
|
|
5541
|
-
let e = window.visualViewport?.height || 0, t = window.innerHeight, n = t - e, r =
|
|
5542
|
-
|
|
5543
|
-
let a =
|
|
5544
|
-
if (Math.abs(
|
|
5545
|
-
let e =
|
|
5553
|
+
if (Hc(e) || se.current) {
|
|
5554
|
+
let e = window.visualViewport?.height || 0, t = window.innerHeight, n = t - e, r = z.current.getBoundingClientRect().height || 0, i = r > t * .8;
|
|
5555
|
+
fe.current ||= r;
|
|
5556
|
+
let a = z.current.getBoundingClientRect().top;
|
|
5557
|
+
if (Math.abs(le.current - n) > 60 && (se.current = !se.current), o && o.length > 0 && _e && me) {
|
|
5558
|
+
let e = _e[me] || 0;
|
|
5546
5559
|
n += e;
|
|
5547
5560
|
}
|
|
5548
|
-
if (
|
|
5549
|
-
let t =
|
|
5550
|
-
t > e && (r = e - (i ? a : nl)), g ?
|
|
5551
|
-
} else xc() || (
|
|
5552
|
-
o && o.length > 0 && !
|
|
5561
|
+
if (le.current = n, r > e || se.current) {
|
|
5562
|
+
let t = z.current.getBoundingClientRect().height, r = t;
|
|
5563
|
+
t > e && (r = e - (i ? a : nl)), g ? z.current.style.height = `${t - Math.max(n, 0)}px` : z.current.style.height = `${Math.max(r, e - a)}px`;
|
|
5564
|
+
} else xc() || (z.current.style.height = `${fe.current}px`);
|
|
5565
|
+
o && o.length > 0 && !se.current ? z.current.style.bottom = "0px" : z.current.style.bottom = `${Math.max(n, 0)}px`;
|
|
5553
5566
|
}
|
|
5554
5567
|
}
|
|
5555
5568
|
return (e = window.visualViewport) == null || e.addEventListener("resize", t), () => window.visualViewport?.removeEventListener("resize", t);
|
|
5556
5569
|
}, [
|
|
5557
|
-
|
|
5570
|
+
me,
|
|
5558
5571
|
o,
|
|
5559
|
-
|
|
5572
|
+
_e
|
|
5560
5573
|
]);
|
|
5561
|
-
function
|
|
5562
|
-
|
|
5563
|
-
o &&
|
|
5574
|
+
function we(e) {
|
|
5575
|
+
Ee(), v?.(), e || A(!1), setTimeout(() => {
|
|
5576
|
+
o && he(o[0]);
|
|
5564
5577
|
}, $.DURATION * 1e3);
|
|
5565
5578
|
}
|
|
5566
|
-
function
|
|
5567
|
-
if (!
|
|
5568
|
-
let e = document.querySelector("[data-vaul-drawer-wrapper]"), t = Jc(
|
|
5569
|
-
Z(
|
|
5579
|
+
function Te() {
|
|
5580
|
+
if (!z.current) return;
|
|
5581
|
+
let e = document.querySelector("[data-vaul-drawer-wrapper]"), t = Jc(z.current, x);
|
|
5582
|
+
Z(z.current, {
|
|
5570
5583
|
transform: "translate3d(0, 0, 0)",
|
|
5571
5584
|
transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`
|
|
5572
5585
|
}), Z(ne.current, {
|
|
@@ -5576,10 +5589,10 @@ function dl({ open: e, onOpenChange: n, children: r, onDrag: i, onRelease: a, sn
|
|
|
5576
5589
|
borderRadius: `${el}px`,
|
|
5577
5590
|
overflow: "hidden",
|
|
5578
5591
|
...Q(x) ? {
|
|
5579
|
-
transform: `scale(${
|
|
5592
|
+
transform: `scale(${V()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
5580
5593
|
transformOrigin: "top"
|
|
5581
5594
|
} : {
|
|
5582
|
-
transform: `scale(${
|
|
5595
|
+
transform: `scale(${V()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
|
|
5583
5596
|
transformOrigin: "left"
|
|
5584
5597
|
},
|
|
5585
5598
|
transitionProperty: "transform, border-radius",
|
|
@@ -5587,68 +5600,68 @@ function dl({ open: e, onOpenChange: n, children: r, onDrag: i, onRelease: a, sn
|
|
|
5587
5600
|
transitionTimingFunction: `cubic-bezier(${$.EASE.join(",")})`
|
|
5588
5601
|
}, !0);
|
|
5589
5602
|
}
|
|
5590
|
-
function
|
|
5591
|
-
!N || !
|
|
5603
|
+
function Ee() {
|
|
5604
|
+
!N || !z.current || (z.current.classList.remove(rl), ae.current = !1, P(!1), I.current = /* @__PURE__ */ new Date());
|
|
5592
5605
|
}
|
|
5593
|
-
function
|
|
5594
|
-
if (!N || !
|
|
5595
|
-
|
|
5596
|
-
let t = Jc(
|
|
5597
|
-
if (!e || !
|
|
5598
|
-
let n = I.current.getTime() - ie.current.getTime(), r =
|
|
5606
|
+
function De(e) {
|
|
5607
|
+
if (!N || !z.current) return;
|
|
5608
|
+
z.current.classList.remove(rl), ae.current = !1, P(!1), I.current = /* @__PURE__ */ new Date();
|
|
5609
|
+
let t = Jc(z.current, x);
|
|
5610
|
+
if (!e || !Se(e.target, !1) || !t || Number.isNaN(t) || ie.current === null) return;
|
|
5611
|
+
let n = I.current.getTime() - ie.current.getTime(), r = R.current - (Q(x) ? e.pageY : e.pageX), i = Math.abs(r) / n;
|
|
5599
5612
|
if (i > .05 && (te(!0), setTimeout(() => {
|
|
5600
5613
|
te(!1);
|
|
5601
5614
|
}, 200)), o) {
|
|
5602
|
-
|
|
5615
|
+
ge({
|
|
5603
5616
|
draggedDistance: r * (x === "bottom" || x === "right" ? 1 : -1),
|
|
5604
|
-
closeDrawer:
|
|
5617
|
+
closeDrawer: we,
|
|
5605
5618
|
velocity: i,
|
|
5606
5619
|
dismissible: d
|
|
5607
5620
|
}), a?.(e, !0);
|
|
5608
5621
|
return;
|
|
5609
5622
|
}
|
|
5610
5623
|
if (x === "bottom" || x === "right" ? r > 0 : r < 0) {
|
|
5611
|
-
|
|
5624
|
+
Te(), a?.(e, !0);
|
|
5612
5625
|
return;
|
|
5613
5626
|
}
|
|
5614
5627
|
if (i > Zc) {
|
|
5615
|
-
|
|
5628
|
+
we(), a?.(e, !1);
|
|
5616
5629
|
return;
|
|
5617
5630
|
}
|
|
5618
|
-
let s = Math.min(
|
|
5631
|
+
let s = Math.min(z.current.getBoundingClientRect().height ?? 0, window.innerHeight), c = Math.min(z.current.getBoundingClientRect().width ?? 0, window.innerWidth);
|
|
5619
5632
|
if (Math.abs(t) >= (x === "left" || x === "right" ? c : s) * l) {
|
|
5620
|
-
|
|
5633
|
+
we(), a?.(e, !1);
|
|
5621
5634
|
return;
|
|
5622
5635
|
}
|
|
5623
|
-
a?.(e, !0),
|
|
5636
|
+
a?.(e, !0), Te();
|
|
5624
5637
|
}
|
|
5625
5638
|
t.useEffect(() => (k && (Z(document.documentElement, { scrollBehavior: "auto" }), re.current = /* @__PURE__ */ new Date()), () => {
|
|
5626
5639
|
qc(document.documentElement, "scrollBehavior");
|
|
5627
5640
|
}), [k]);
|
|
5628
|
-
function
|
|
5641
|
+
function H(e) {
|
|
5629
5642
|
let t = e ? (window.innerWidth - tl) / window.innerWidth : 1, n = e ? -tl : 0;
|
|
5630
|
-
|
|
5643
|
+
oe.current && window.clearTimeout(oe.current), Z(z.current, {
|
|
5631
5644
|
transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
|
|
5632
5645
|
transform: Q(x) ? `scale(${t}) translate3d(0, ${n}px, 0)` : `scale(${t}) translate3d(${n}px, 0, 0)`
|
|
5633
|
-
}), !e &&
|
|
5634
|
-
let e = Jc(
|
|
5635
|
-
Z(
|
|
5646
|
+
}), !e && z.current && (oe.current = setTimeout(() => {
|
|
5647
|
+
let e = Jc(z.current, x);
|
|
5648
|
+
Z(z.current, {
|
|
5636
5649
|
transition: "none",
|
|
5637
5650
|
transform: Q(x) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)`
|
|
5638
5651
|
});
|
|
5639
5652
|
}, 500));
|
|
5640
5653
|
}
|
|
5641
|
-
function
|
|
5654
|
+
function Oe(e, t) {
|
|
5642
5655
|
if (t < 0) return;
|
|
5643
5656
|
let n = (window.innerWidth - tl) / window.innerWidth, r = n + t * (1 - n), i = -tl + t * tl;
|
|
5644
|
-
Z(
|
|
5657
|
+
Z(z.current, {
|
|
5645
5658
|
transform: Q(x) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`,
|
|
5646
5659
|
transition: "none"
|
|
5647
5660
|
});
|
|
5648
5661
|
}
|
|
5649
|
-
function
|
|
5662
|
+
function ke(e, t) {
|
|
5650
5663
|
let n = Q(x) ? window.innerHeight : window.innerWidth, r = t ? (n - tl) / n : 1, i = t ? -tl : 0;
|
|
5651
|
-
t && Z(
|
|
5664
|
+
t && Z(z.current, {
|
|
5652
5665
|
transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
|
|
5653
5666
|
transform: Q(x) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`
|
|
5654
5667
|
});
|
|
@@ -5660,33 +5673,33 @@ function dl({ open: e, onOpenChange: n, children: r, onDrag: i, onRelease: a, sn
|
|
|
5660
5673
|
}, [_]), /* @__PURE__ */ t.createElement(uc, {
|
|
5661
5674
|
defaultOpen: S,
|
|
5662
5675
|
onOpenChange: (e) => {
|
|
5663
|
-
!d && !e || (e ? M(!0) :
|
|
5676
|
+
!d && !e || (e ? M(!0) : we(!0), A(e));
|
|
5664
5677
|
},
|
|
5665
5678
|
open: k
|
|
5666
5679
|
}, /* @__PURE__ */ t.createElement(yc.Provider, { value: {
|
|
5667
|
-
activeSnapPoint:
|
|
5680
|
+
activeSnapPoint: pe,
|
|
5668
5681
|
snapPoints: o,
|
|
5669
|
-
setActiveSnapPoint:
|
|
5670
|
-
drawerRef:
|
|
5682
|
+
setActiveSnapPoint: he,
|
|
5683
|
+
drawerRef: z,
|
|
5671
5684
|
overlayRef: ne,
|
|
5672
5685
|
onOpenChange: n,
|
|
5673
|
-
onPress:
|
|
5674
|
-
onRelease:
|
|
5675
|
-
onDrag:
|
|
5686
|
+
onPress: xe,
|
|
5687
|
+
onRelease: De,
|
|
5688
|
+
onDrag: Ce,
|
|
5676
5689
|
dismissible: d,
|
|
5677
|
-
shouldAnimate:
|
|
5690
|
+
shouldAnimate: ce,
|
|
5678
5691
|
handleOnly: f,
|
|
5679
5692
|
isOpen: k,
|
|
5680
5693
|
isDragging: N,
|
|
5681
|
-
shouldFade:
|
|
5682
|
-
closeDrawer:
|
|
5683
|
-
onNestedDrag:
|
|
5684
|
-
onNestedOpenChange:
|
|
5685
|
-
onNestedRelease:
|
|
5686
|
-
keyboardIsOpen:
|
|
5694
|
+
shouldFade: B,
|
|
5695
|
+
closeDrawer: we,
|
|
5696
|
+
onNestedDrag: Oe,
|
|
5697
|
+
onNestedOpenChange: H,
|
|
5698
|
+
onNestedRelease: ke,
|
|
5699
|
+
keyboardIsOpen: se,
|
|
5687
5700
|
modal: _,
|
|
5688
|
-
snapPointsOffset:
|
|
5689
|
-
activeSnapPointIndex:
|
|
5701
|
+
snapPointsOffset: _e,
|
|
5702
|
+
activeSnapPointIndex: me,
|
|
5690
5703
|
direction: x,
|
|
5691
5704
|
shouldScaleBackground: s,
|
|
5692
5705
|
setBackgroundColorOnScale: c,
|
|
@@ -5887,8 +5900,8 @@ function bl({ trigger: e, title: t, children: n, className: r }) {
|
|
|
5887
5900
|
children: [/* @__PURE__ */ d(yl.Trigger, {
|
|
5888
5901
|
asChild: !0,
|
|
5889
5902
|
children: e
|
|
5890
|
-
}), /* @__PURE__ */ f(yl.Portal, { children: [/* @__PURE__ */ d(yl.Overlay, { className: "fixed inset-0 bg-
|
|
5891
|
-
className:
|
|
5903
|
+
}), /* @__PURE__ */ f(yl.Portal, { children: [/* @__PURE__ */ d(yl.Overlay, { className: "fixed inset-0 bg-overlay backdrop-blur-sm z-40" }), /* @__PURE__ */ f(yl.Content, {
|
|
5904
|
+
className: W("fixed right-0 top-0 bottom-0 z-50 flex flex-col bg-card w-[464px] pt-16 pb-10 px-8 overflow-y-auto overflow-x-hidden", r),
|
|
5892
5905
|
children: [
|
|
5893
5906
|
/* @__PURE__ */ d(yl.Title, {
|
|
5894
5907
|
className: "font-semibold text-lg text-fg font-sans mb-5",
|
|
@@ -5945,7 +5958,7 @@ function Sl(t) {
|
|
|
5945
5958
|
let { children: r, ...i } = t;
|
|
5946
5959
|
if (e.isValidElement(r)) {
|
|
5947
5960
|
let t = El(r), a = Tl(i, r.props);
|
|
5948
|
-
return r.type !== e.Fragment && (a.ref = n ?
|
|
5961
|
+
return r.type !== e.Fragment && (a.ref = n ? it(n, t) : t), e.cloneElement(r, a);
|
|
5949
5962
|
}
|
|
5950
5963
|
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
5951
5964
|
});
|
|
@@ -5979,7 +5992,7 @@ function El(e) {
|
|
|
5979
5992
|
//#endregion
|
|
5980
5993
|
//#region node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
5981
5994
|
function Dl(e) {
|
|
5982
|
-
let n = e + "CollectionProvider", [r, i] =
|
|
5995
|
+
let n = e + "CollectionProvider", [r, i] = Et(n), [a, o] = r(n, {
|
|
5983
5996
|
collectionRef: { current: null },
|
|
5984
5997
|
itemMap: /* @__PURE__ */ new Map()
|
|
5985
5998
|
}), s = (e) => {
|
|
@@ -5995,13 +6008,13 @@ function Dl(e) {
|
|
|
5995
6008
|
let c = e + "CollectionSlot", l = /* @__PURE__ */ xl(c), u = t.forwardRef((e, t) => {
|
|
5996
6009
|
let { scope: n, children: r } = e;
|
|
5997
6010
|
return /* @__PURE__ */ d(l, {
|
|
5998
|
-
ref:
|
|
6011
|
+
ref: G(t, o(c, n).collectionRef),
|
|
5999
6012
|
children: r
|
|
6000
6013
|
});
|
|
6001
6014
|
});
|
|
6002
6015
|
u.displayName = c;
|
|
6003
6016
|
let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */ xl(f), h = t.forwardRef((e, n) => {
|
|
6004
|
-
let { scope: r, children: i, ...a } = e, s = t.useRef(null), c =
|
|
6017
|
+
let { scope: r, children: i, ...a } = e, s = t.useRef(null), c = G(n, s), l = o(f, r);
|
|
6005
6018
|
return t.useEffect(() => (l.itemMap.set(s, {
|
|
6006
6019
|
ref: s,
|
|
6007
6020
|
...a
|
|
@@ -6033,7 +6046,7 @@ function Dl(e) {
|
|
|
6033
6046
|
}
|
|
6034
6047
|
//#endregion
|
|
6035
6048
|
//#region node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
6036
|
-
var Ol = "Collapsible", [kl, Al] =
|
|
6049
|
+
var Ol = "Collapsible", [kl, Al] = Et(Ol), [jl, Ml] = kl(Ol), Nl = e.forwardRef((t, n) => {
|
|
6037
6050
|
let { __scopeCollapsible: r, open: i, defaultOpen: a, disabled: o, onOpenChange: s, ...c } = t, [l, u] = Ki({
|
|
6038
6051
|
prop: i,
|
|
6039
6052
|
defaultProp: a ?? !1,
|
|
@@ -6043,10 +6056,10 @@ var Ol = "Collapsible", [kl, Al] = Tt(Ol), [jl, Ml] = kl(Ol), Nl = e.forwardRef(
|
|
|
6043
6056
|
return /* @__PURE__ */ d(jl, {
|
|
6044
6057
|
scope: r,
|
|
6045
6058
|
disabled: o,
|
|
6046
|
-
contentId:
|
|
6059
|
+
contentId: $t(),
|
|
6047
6060
|
open: l,
|
|
6048
6061
|
onOpenToggle: e.useCallback(() => u((e) => !e), [u]),
|
|
6049
|
-
children: /* @__PURE__ */ d(
|
|
6062
|
+
children: /* @__PURE__ */ d(q.div, {
|
|
6050
6063
|
"data-state": zl(l),
|
|
6051
6064
|
"data-disabled": o ? "" : void 0,
|
|
6052
6065
|
...c,
|
|
@@ -6057,7 +6070,7 @@ var Ol = "Collapsible", [kl, Al] = Tt(Ol), [jl, Ml] = kl(Ol), Nl = e.forwardRef(
|
|
|
6057
6070
|
Nl.displayName = Ol;
|
|
6058
6071
|
var Pl = "CollapsibleTrigger", Fl = e.forwardRef((e, t) => {
|
|
6059
6072
|
let { __scopeCollapsible: n, ...r } = e, i = Ml(Pl, n);
|
|
6060
|
-
return /* @__PURE__ */ d(
|
|
6073
|
+
return /* @__PURE__ */ d(q.button, {
|
|
6061
6074
|
type: "button",
|
|
6062
6075
|
"aria-controls": i.contentId,
|
|
6063
6076
|
"aria-expanded": i.open || !1,
|
|
@@ -6066,7 +6079,7 @@ var Pl = "CollapsibleTrigger", Fl = e.forwardRef((e, t) => {
|
|
|
6066
6079
|
disabled: i.disabled,
|
|
6067
6080
|
...r,
|
|
6068
6081
|
ref: t,
|
|
6069
|
-
onClick:
|
|
6082
|
+
onClick: K(e.onClick, i.onOpenToggle)
|
|
6070
6083
|
});
|
|
6071
6084
|
});
|
|
6072
6085
|
Fl.displayName = Pl;
|
|
@@ -6083,11 +6096,11 @@ var Il = "CollapsibleContent", Ll = e.forwardRef((e, t) => {
|
|
|
6083
6096
|
});
|
|
6084
6097
|
Ll.displayName = Il;
|
|
6085
6098
|
var Rl = e.forwardRef((t, n) => {
|
|
6086
|
-
let { __scopeCollapsible: r, present: i, children: a, ...o } = t, s = Ml(Il, r), [c, l] = e.useState(i), u = e.useRef(null), f =
|
|
6099
|
+
let { __scopeCollapsible: r, present: i, children: a, ...o } = t, s = Ml(Il, r), [c, l] = e.useState(i), u = e.useRef(null), f = G(n, u), p = e.useRef(0), m = p.current, h = e.useRef(0), g = h.current, _ = s.open || c, v = e.useRef(_), y = e.useRef(void 0);
|
|
6087
6100
|
return e.useEffect(() => {
|
|
6088
6101
|
let e = requestAnimationFrame(() => v.current = !1);
|
|
6089
6102
|
return () => cancelAnimationFrame(e);
|
|
6090
|
-
}, []),
|
|
6103
|
+
}, []), Xt(() => {
|
|
6091
6104
|
let e = u.current;
|
|
6092
6105
|
if (e) {
|
|
6093
6106
|
y.current = y.current || {
|
|
@@ -6097,7 +6110,7 @@ var Rl = e.forwardRef((t, n) => {
|
|
|
6097
6110
|
let t = e.getBoundingClientRect();
|
|
6098
6111
|
p.current = t.height, h.current = t.width, v.current || (e.style.transitionDuration = y.current.transitionDuration, e.style.animationName = y.current.animationName), l(i);
|
|
6099
6112
|
}
|
|
6100
|
-
}, [s.open, i]), /* @__PURE__ */ d(
|
|
6113
|
+
}, [s.open, i]), /* @__PURE__ */ d(q.div, {
|
|
6101
6114
|
"data-state": zl(s.open),
|
|
6102
6115
|
"data-disabled": s.disabled ? "" : void 0,
|
|
6103
6116
|
id: s.contentId,
|
|
@@ -6129,7 +6142,7 @@ var Gl = "Accordion", Kl = [
|
|
|
6129
6142
|
"ArrowUp",
|
|
6130
6143
|
"ArrowLeft",
|
|
6131
6144
|
"ArrowRight"
|
|
6132
|
-
], [ql, Jl, Yl] = Dl(Gl), [Xl, Zl] =
|
|
6145
|
+
], [ql, Jl, Yl] = Dl(Gl), [Xl, Zl] = Et(Gl, [Yl, Al]), Ql = Al(), $l = t.forwardRef((e, t) => {
|
|
6133
6146
|
let { type: n, ...r } = e, i = r, a = r;
|
|
6134
6147
|
return /* @__PURE__ */ d(ql.Provider, {
|
|
6135
6148
|
scope: e.__scopeAccordion,
|
|
@@ -6186,7 +6199,7 @@ var [eu, tu] = Xl(Gl), [nu, ru] = Xl(Gl, { collapsible: !1 }), iu = t.forwardRef
|
|
|
6186
6199
|
})
|
|
6187
6200
|
});
|
|
6188
6201
|
}), [ou, su] = Xl(Gl), cu = t.forwardRef((e, n) => {
|
|
6189
|
-
let { __scopeAccordion: r, disabled: i, dir: a, orientation: o = "vertical", ...s } = e, c =
|
|
6202
|
+
let { __scopeAccordion: r, disabled: i, dir: a, orientation: o = "vertical", ...s } = e, c = G(t.useRef(null), n), l = Jl(r), u = Wl(a) === "ltr", f = K(e.onKeyDown, (e) => {
|
|
6190
6203
|
if (!Kl.includes(e.key)) return;
|
|
6191
6204
|
let t = e.target, n = l().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
6192
6205
|
if (r === -1) return;
|
|
@@ -6225,7 +6238,7 @@ var [eu, tu] = Xl(Gl), [nu, ru] = Xl(Gl, { collapsible: !1 }), iu = t.forwardRef
|
|
|
6225
6238
|
orientation: o,
|
|
6226
6239
|
children: /* @__PURE__ */ d(ql.Slot, {
|
|
6227
6240
|
scope: r,
|
|
6228
|
-
children: /* @__PURE__ */ d(
|
|
6241
|
+
children: /* @__PURE__ */ d(q.div, {
|
|
6229
6242
|
...s,
|
|
6230
6243
|
"data-orientation": o,
|
|
6231
6244
|
ref: c,
|
|
@@ -6234,7 +6247,7 @@ var [eu, tu] = Xl(Gl), [nu, ru] = Xl(Gl, { collapsible: !1 }), iu = t.forwardRef
|
|
|
6234
6247
|
})
|
|
6235
6248
|
});
|
|
6236
6249
|
}), lu = "AccordionItem", [uu, du] = Xl(lu), fu = t.forwardRef((e, t) => {
|
|
6237
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a = su(lu, n), o = tu(lu, n), s = Ql(n), c =
|
|
6250
|
+
let { __scopeAccordion: n, value: r, ...i } = e, a = su(lu, n), o = tu(lu, n), s = Ql(n), c = $t(), l = r && o.value.includes(r) || !1, u = a.disabled || e.disabled;
|
|
6238
6251
|
return /* @__PURE__ */ d(uu, {
|
|
6239
6252
|
scope: n,
|
|
6240
6253
|
open: l,
|
|
@@ -6257,7 +6270,7 @@ var [eu, tu] = Xl(Gl), [nu, ru] = Xl(Gl, { collapsible: !1 }), iu = t.forwardRef
|
|
|
6257
6270
|
fu.displayName = lu;
|
|
6258
6271
|
var pu = "AccordionHeader", mu = t.forwardRef((e, t) => {
|
|
6259
6272
|
let { __scopeAccordion: n, ...r } = e, i = su(Gl, n), a = du(pu, n);
|
|
6260
|
-
return /* @__PURE__ */ d(
|
|
6273
|
+
return /* @__PURE__ */ d(q.h3, {
|
|
6261
6274
|
"data-orientation": i.orientation,
|
|
6262
6275
|
"data-state": yu(a.open),
|
|
6263
6276
|
"data-disabled": a.disabled ? "" : void 0,
|
|
@@ -6307,7 +6320,7 @@ var bu = $l, xu = fu, Su = mu, Cu = gu, wu = vu;
|
|
|
6307
6320
|
function Tu({ children: e, className: t }) {
|
|
6308
6321
|
return /* @__PURE__ */ d(bu, {
|
|
6309
6322
|
type: "multiple",
|
|
6310
|
-
className:
|
|
6323
|
+
className: W("flex flex-col gap-3", t),
|
|
6311
6324
|
children: e
|
|
6312
6325
|
});
|
|
6313
6326
|
}
|
|
@@ -6318,10 +6331,10 @@ function Eu({ title: e, children: t, value: n }) {
|
|
|
6318
6331
|
className: "flex w-full items-center justify-between gap-3 py-1 font-semibold text-base text-fg font-sans group",
|
|
6319
6332
|
children: [/* @__PURE__ */ d("span", { children: e }), /* @__PURE__ */ f("span", {
|
|
6320
6333
|
className: "relative flex-shrink-0 w-4 h-4 text-fg-secondary",
|
|
6321
|
-
children: [/* @__PURE__ */ d("span", { className: "absolute top-1/2 left-0 w-full h-[1.5px] -translate-y-1/2 bg-current rounded-full" }), /* @__PURE__ */ d("span", { className: "absolute top-
|
|
6334
|
+
children: [/* @__PURE__ */ d("span", { className: "absolute top-1/2 left-0 w-full h-[1.5px] -translate-y-1/2 bg-current rounded-full" }), /* @__PURE__ */ d("span", { className: "absolute top-1/2 left-1/2 w-full h-[1.5px] -translate-x-1/2 -translate-y-1/2 bg-current rounded-full origin-center transition-transform duration-300 rotate-90 group-data-[state=open]:rotate-0" })]
|
|
6322
6335
|
})]
|
|
6323
6336
|
}) }), /* @__PURE__ */ d(wu, {
|
|
6324
|
-
className: "overflow-hidden data-[state=open]:animate-
|
|
6337
|
+
className: "overflow-hidden data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up",
|
|
6325
6338
|
children: /* @__PURE__ */ d("div", {
|
|
6326
6339
|
className: "pt-2 pb-1 font-sans text-base text-fg leading-5",
|
|
6327
6340
|
children: t
|
|
@@ -6338,7 +6351,7 @@ var Du = {
|
|
|
6338
6351
|
lg: "px-8 py-6"
|
|
6339
6352
|
}, Ou = r(({ className: e, padding: t = "md", shadow: n = !0, children: r, ...i }, a) => /* @__PURE__ */ d("div", {
|
|
6340
6353
|
ref: a,
|
|
6341
|
-
className:
|
|
6354
|
+
className: W("bg-card rounded-card text-fg", n && "shadow-[0_4px_50px_rgba(0,0,0,0.03)]", Du[t], e),
|
|
6342
6355
|
...i,
|
|
6343
6356
|
children: r
|
|
6344
6357
|
}));
|
|
@@ -6354,13 +6367,13 @@ function Au({ size: e = "md", className: t }) {
|
|
|
6354
6367
|
return /* @__PURE__ */ d("div", {
|
|
6355
6368
|
role: "status",
|
|
6356
6369
|
"aria-label": "Загрузка",
|
|
6357
|
-
className:
|
|
6358
|
-
children: /* @__PURE__ */ d("div", { className:
|
|
6370
|
+
className: W("flex items-center justify-center", t),
|
|
6371
|
+
children: /* @__PURE__ */ d("div", { className: W("rounded-full border-subtle border-t-accent animate-spin", ku[e]) })
|
|
6359
6372
|
});
|
|
6360
6373
|
}
|
|
6361
6374
|
function ju({ className: e, ...t }) {
|
|
6362
6375
|
return /* @__PURE__ */ d("div", {
|
|
6363
|
-
className:
|
|
6376
|
+
className: W("rounded-input bg-subtle animate-pulse", e),
|
|
6364
6377
|
...t
|
|
6365
6378
|
});
|
|
6366
6379
|
}
|
|
@@ -6368,7 +6381,7 @@ function ju({ className: e, ...t }) {
|
|
|
6368
6381
|
//#region src/components/States/States.tsx
|
|
6369
6382
|
function Mu({ message: e = "Ничего не найдено", className: t }) {
|
|
6370
6383
|
return /* @__PURE__ */ d("div", {
|
|
6371
|
-
className:
|
|
6384
|
+
className: W("flex flex-col items-center justify-center py-16 text-center", t),
|
|
6372
6385
|
children: /* @__PURE__ */ d("p", {
|
|
6373
6386
|
className: "font-sans text-base text-fg-secondary",
|
|
6374
6387
|
children: e
|
|
@@ -6377,7 +6390,7 @@ function Mu({ message: e = "Ничего не найдено", className: t }) {
|
|
|
6377
6390
|
}
|
|
6378
6391
|
function Nu({ message: e = "Произошла ошибка", className: t }) {
|
|
6379
6392
|
return /* @__PURE__ */ d("div", {
|
|
6380
|
-
className:
|
|
6393
|
+
className: W("flex flex-col items-center justify-center py-16 text-center", t),
|
|
6381
6394
|
children: /* @__PURE__ */ d("p", {
|
|
6382
6395
|
className: "font-sans text-base text-fg-secondary",
|
|
6383
6396
|
children: e
|
|
@@ -6385,8 +6398,285 @@ function Nu({ message: e = "Произошла ошибка", className: t }) {
|
|
|
6385
6398
|
});
|
|
6386
6399
|
}
|
|
6387
6400
|
//#endregion
|
|
6401
|
+
//#region node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
6402
|
+
var Pu = "rovingFocusGroup.onEntryFocus", Fu = {
|
|
6403
|
+
bubbles: !1,
|
|
6404
|
+
cancelable: !0
|
|
6405
|
+
}, Iu = "RovingFocusGroup", [Lu, Ru, zu] = Dl(Iu), [Bu, Vu] = Et(Iu, [zu]), [Hu, Uu] = Bu(Iu), Wu = e.forwardRef((e, t) => /* @__PURE__ */ d(Lu.Provider, {
|
|
6406
|
+
scope: e.__scopeRovingFocusGroup,
|
|
6407
|
+
children: /* @__PURE__ */ d(Lu.Slot, {
|
|
6408
|
+
scope: e.__scopeRovingFocusGroup,
|
|
6409
|
+
children: /* @__PURE__ */ d(Gu, {
|
|
6410
|
+
...e,
|
|
6411
|
+
ref: t
|
|
6412
|
+
})
|
|
6413
|
+
})
|
|
6414
|
+
}));
|
|
6415
|
+
Wu.displayName = Iu;
|
|
6416
|
+
var Gu = e.forwardRef((t, n) => {
|
|
6417
|
+
let { __scopeRovingFocusGroup: r, orientation: i, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: f = !1, ...p } = t, m = e.useRef(null), h = G(n, m), g = Wl(o), [_, v] = Ki({
|
|
6418
|
+
prop: s,
|
|
6419
|
+
defaultProp: c ?? null,
|
|
6420
|
+
onChange: l,
|
|
6421
|
+
caller: Iu
|
|
6422
|
+
}), [y, b] = e.useState(!1), x = Ft(u), S = Ru(r), C = e.useRef(!1), [w, T] = e.useState(0);
|
|
6423
|
+
return e.useEffect(() => {
|
|
6424
|
+
let e = m.current;
|
|
6425
|
+
if (e) return e.addEventListener(Pu, x), () => e.removeEventListener(Pu, x);
|
|
6426
|
+
}, [x]), /* @__PURE__ */ d(Hu, {
|
|
6427
|
+
scope: r,
|
|
6428
|
+
orientation: i,
|
|
6429
|
+
dir: g,
|
|
6430
|
+
loop: a,
|
|
6431
|
+
currentTabStopId: _,
|
|
6432
|
+
onItemFocus: e.useCallback((e) => v(e), [v]),
|
|
6433
|
+
onItemShiftTab: e.useCallback(() => b(!0), []),
|
|
6434
|
+
onFocusableItemAdd: e.useCallback(() => T((e) => e + 1), []),
|
|
6435
|
+
onFocusableItemRemove: e.useCallback(() => T((e) => e - 1), []),
|
|
6436
|
+
children: /* @__PURE__ */ d(q.div, {
|
|
6437
|
+
tabIndex: y || w === 0 ? -1 : 0,
|
|
6438
|
+
"data-orientation": i,
|
|
6439
|
+
...p,
|
|
6440
|
+
ref: h,
|
|
6441
|
+
style: {
|
|
6442
|
+
outline: "none",
|
|
6443
|
+
...t.style
|
|
6444
|
+
},
|
|
6445
|
+
onMouseDown: K(t.onMouseDown, () => {
|
|
6446
|
+
C.current = !0;
|
|
6447
|
+
}),
|
|
6448
|
+
onFocus: K(t.onFocus, (e) => {
|
|
6449
|
+
let t = !C.current;
|
|
6450
|
+
if (e.target === e.currentTarget && t && !y) {
|
|
6451
|
+
let t = new CustomEvent(Pu, Fu);
|
|
6452
|
+
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
6453
|
+
let e = S().filter((e) => e.focusable);
|
|
6454
|
+
Zu([
|
|
6455
|
+
e.find((e) => e.active),
|
|
6456
|
+
e.find((e) => e.id === _),
|
|
6457
|
+
...e
|
|
6458
|
+
].filter(Boolean).map((e) => e.ref.current), f);
|
|
6459
|
+
}
|
|
6460
|
+
}
|
|
6461
|
+
C.current = !1;
|
|
6462
|
+
}),
|
|
6463
|
+
onBlur: K(t.onBlur, () => b(!1))
|
|
6464
|
+
})
|
|
6465
|
+
});
|
|
6466
|
+
}), Ku = "RovingFocusGroupItem", qu = e.forwardRef((t, n) => {
|
|
6467
|
+
let { __scopeRovingFocusGroup: r, focusable: i = !0, active: a = !1, tabStopId: o, children: s, ...c } = t, l = $t(), u = o || l, f = Uu(Ku, r), p = f.currentTabStopId === u, m = Ru(r), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: _ } = f;
|
|
6468
|
+
return e.useEffect(() => {
|
|
6469
|
+
if (i) return h(), () => g();
|
|
6470
|
+
}, [
|
|
6471
|
+
i,
|
|
6472
|
+
h,
|
|
6473
|
+
g
|
|
6474
|
+
]), /* @__PURE__ */ d(Lu.ItemSlot, {
|
|
6475
|
+
scope: r,
|
|
6476
|
+
id: u,
|
|
6477
|
+
focusable: i,
|
|
6478
|
+
active: a,
|
|
6479
|
+
children: /* @__PURE__ */ d(q.span, {
|
|
6480
|
+
tabIndex: p ? 0 : -1,
|
|
6481
|
+
"data-orientation": f.orientation,
|
|
6482
|
+
...c,
|
|
6483
|
+
ref: n,
|
|
6484
|
+
onMouseDown: K(t.onMouseDown, (e) => {
|
|
6485
|
+
i ? f.onItemFocus(u) : e.preventDefault();
|
|
6486
|
+
}),
|
|
6487
|
+
onFocus: K(t.onFocus, () => f.onItemFocus(u)),
|
|
6488
|
+
onKeyDown: K(t.onKeyDown, (e) => {
|
|
6489
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
6490
|
+
f.onItemShiftTab();
|
|
6491
|
+
return;
|
|
6492
|
+
}
|
|
6493
|
+
if (e.target !== e.currentTarget) return;
|
|
6494
|
+
let t = Xu(e, f.orientation, f.dir);
|
|
6495
|
+
if (t !== void 0) {
|
|
6496
|
+
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
6497
|
+
e.preventDefault();
|
|
6498
|
+
let n = m().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
6499
|
+
if (t === "last") n.reverse();
|
|
6500
|
+
else if (t === "prev" || t === "next") {
|
|
6501
|
+
t === "prev" && n.reverse();
|
|
6502
|
+
let r = n.indexOf(e.currentTarget);
|
|
6503
|
+
n = f.loop ? Qu(n, r + 1) : n.slice(r + 1);
|
|
6504
|
+
}
|
|
6505
|
+
setTimeout(() => Zu(n));
|
|
6506
|
+
}
|
|
6507
|
+
}),
|
|
6508
|
+
children: typeof s == "function" ? s({
|
|
6509
|
+
isCurrentTabStop: p,
|
|
6510
|
+
hasTabStop: _ != null
|
|
6511
|
+
}) : s
|
|
6512
|
+
})
|
|
6513
|
+
});
|
|
6514
|
+
});
|
|
6515
|
+
qu.displayName = Ku;
|
|
6516
|
+
var Ju = {
|
|
6517
|
+
ArrowLeft: "prev",
|
|
6518
|
+
ArrowUp: "prev",
|
|
6519
|
+
ArrowRight: "next",
|
|
6520
|
+
ArrowDown: "next",
|
|
6521
|
+
PageUp: "first",
|
|
6522
|
+
Home: "first",
|
|
6523
|
+
PageDown: "last",
|
|
6524
|
+
End: "last"
|
|
6525
|
+
};
|
|
6526
|
+
function Yu(e, t) {
|
|
6527
|
+
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
6528
|
+
}
|
|
6529
|
+
function Xu(e, t, n) {
|
|
6530
|
+
let r = Yu(e.key, n);
|
|
6531
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Ju[r];
|
|
6532
|
+
}
|
|
6533
|
+
function Zu(e, t = !1) {
|
|
6534
|
+
let n = document.activeElement;
|
|
6535
|
+
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
6536
|
+
}
|
|
6537
|
+
function Qu(e, t) {
|
|
6538
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
6539
|
+
}
|
|
6540
|
+
var $u = Wu, ed = qu, td = "Tabs", [nd, rd] = Et(td, [Vu]), id = Vu(), [ad, od] = nd(td), sd = e.forwardRef((e, t) => {
|
|
6541
|
+
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = "automatic", ...l } = e, u = Wl(s), [f, p] = Ki({
|
|
6542
|
+
prop: r,
|
|
6543
|
+
onChange: i,
|
|
6544
|
+
defaultProp: a ?? "",
|
|
6545
|
+
caller: td
|
|
6546
|
+
});
|
|
6547
|
+
return /* @__PURE__ */ d(ad, {
|
|
6548
|
+
scope: n,
|
|
6549
|
+
baseId: $t(),
|
|
6550
|
+
value: f,
|
|
6551
|
+
onValueChange: p,
|
|
6552
|
+
orientation: o,
|
|
6553
|
+
dir: u,
|
|
6554
|
+
activationMode: c,
|
|
6555
|
+
children: /* @__PURE__ */ d(q.div, {
|
|
6556
|
+
dir: u,
|
|
6557
|
+
"data-orientation": o,
|
|
6558
|
+
...l,
|
|
6559
|
+
ref: t
|
|
6560
|
+
})
|
|
6561
|
+
});
|
|
6562
|
+
});
|
|
6563
|
+
sd.displayName = td;
|
|
6564
|
+
var cd = "TabsList", ld = e.forwardRef((e, t) => {
|
|
6565
|
+
let { __scopeTabs: n, loop: r = !0, ...i } = e, a = od(cd, n);
|
|
6566
|
+
return /* @__PURE__ */ d($u, {
|
|
6567
|
+
asChild: !0,
|
|
6568
|
+
...id(n),
|
|
6569
|
+
orientation: a.orientation,
|
|
6570
|
+
dir: a.dir,
|
|
6571
|
+
loop: r,
|
|
6572
|
+
children: /* @__PURE__ */ d(q.div, {
|
|
6573
|
+
role: "tablist",
|
|
6574
|
+
"aria-orientation": a.orientation,
|
|
6575
|
+
...i,
|
|
6576
|
+
ref: t
|
|
6577
|
+
})
|
|
6578
|
+
});
|
|
6579
|
+
});
|
|
6580
|
+
ld.displayName = cd;
|
|
6581
|
+
var ud = "TabsTrigger", dd = e.forwardRef((e, t) => {
|
|
6582
|
+
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = od(ud, n), s = id(n), c = md(o.baseId, r), l = hd(o.baseId, r), u = r === o.value;
|
|
6583
|
+
return /* @__PURE__ */ d(ed, {
|
|
6584
|
+
asChild: !0,
|
|
6585
|
+
...s,
|
|
6586
|
+
focusable: !i,
|
|
6587
|
+
active: u,
|
|
6588
|
+
children: /* @__PURE__ */ d(q.button, {
|
|
6589
|
+
type: "button",
|
|
6590
|
+
role: "tab",
|
|
6591
|
+
"aria-selected": u,
|
|
6592
|
+
"aria-controls": l,
|
|
6593
|
+
"data-state": u ? "active" : "inactive",
|
|
6594
|
+
"data-disabled": i ? "" : void 0,
|
|
6595
|
+
disabled: i,
|
|
6596
|
+
id: c,
|
|
6597
|
+
...a,
|
|
6598
|
+
ref: t,
|
|
6599
|
+
onMouseDown: K(e.onMouseDown, (e) => {
|
|
6600
|
+
!i && e.button === 0 && e.ctrlKey === !1 ? o.onValueChange(r) : e.preventDefault();
|
|
6601
|
+
}),
|
|
6602
|
+
onKeyDown: K(e.onKeyDown, (e) => {
|
|
6603
|
+
[" ", "Enter"].includes(e.key) && o.onValueChange(r);
|
|
6604
|
+
}),
|
|
6605
|
+
onFocus: K(e.onFocus, () => {
|
|
6606
|
+
let e = o.activationMode !== "manual";
|
|
6607
|
+
!u && !i && e && o.onValueChange(r);
|
|
6608
|
+
})
|
|
6609
|
+
})
|
|
6610
|
+
});
|
|
6611
|
+
});
|
|
6612
|
+
dd.displayName = ud;
|
|
6613
|
+
var fd = "TabsContent", pd = e.forwardRef((t, n) => {
|
|
6614
|
+
let { __scopeTabs: r, value: i, forceMount: a, children: o, ...s } = t, c = od(fd, r), l = md(c.baseId, i), u = hd(c.baseId, i), f = i === c.value, p = e.useRef(f);
|
|
6615
|
+
return e.useEffect(() => {
|
|
6616
|
+
let e = requestAnimationFrame(() => p.current = !1);
|
|
6617
|
+
return () => cancelAnimationFrame(e);
|
|
6618
|
+
}, []), /* @__PURE__ */ d(zi, {
|
|
6619
|
+
present: a || f,
|
|
6620
|
+
children: ({ present: e }) => /* @__PURE__ */ d(q.div, {
|
|
6621
|
+
"data-state": f ? "active" : "inactive",
|
|
6622
|
+
"data-orientation": c.orientation,
|
|
6623
|
+
role: "tabpanel",
|
|
6624
|
+
"aria-labelledby": l,
|
|
6625
|
+
hidden: !e,
|
|
6626
|
+
id: u,
|
|
6627
|
+
tabIndex: 0,
|
|
6628
|
+
...s,
|
|
6629
|
+
ref: n,
|
|
6630
|
+
style: {
|
|
6631
|
+
...t.style,
|
|
6632
|
+
animationDuration: p.current ? "0s" : void 0
|
|
6633
|
+
},
|
|
6634
|
+
children: e && o
|
|
6635
|
+
})
|
|
6636
|
+
});
|
|
6637
|
+
});
|
|
6638
|
+
pd.displayName = fd;
|
|
6639
|
+
function md(e, t) {
|
|
6640
|
+
return `${e}-trigger-${t}`;
|
|
6641
|
+
}
|
|
6642
|
+
function hd(e, t) {
|
|
6643
|
+
return `${e}-content-${t}`;
|
|
6644
|
+
}
|
|
6645
|
+
var gd = sd, _d = ld, vd = dd, yd = pd;
|
|
6646
|
+
//#endregion
|
|
6647
|
+
//#region src/components/Tabs/Tabs.tsx
|
|
6648
|
+
function bd({ defaultValue: e, value: t, onValueChange: n, children: r, className: i }) {
|
|
6649
|
+
return /* @__PURE__ */ d(gd, {
|
|
6650
|
+
defaultValue: e,
|
|
6651
|
+
value: t,
|
|
6652
|
+
onValueChange: n,
|
|
6653
|
+
className: W("flex flex-col gap-4", i),
|
|
6654
|
+
children: r
|
|
6655
|
+
});
|
|
6656
|
+
}
|
|
6657
|
+
function xd({ children: e, className: t }) {
|
|
6658
|
+
return /* @__PURE__ */ d(_d, {
|
|
6659
|
+
className: W("flex flex-wrap gap-2 items-center", t),
|
|
6660
|
+
children: e
|
|
6661
|
+
});
|
|
6662
|
+
}
|
|
6663
|
+
function Sd({ value: e, children: t, className: n }) {
|
|
6664
|
+
return /* @__PURE__ */ d(vd, {
|
|
6665
|
+
value: e,
|
|
6666
|
+
className: W("h-8 px-3 py-1 rounded-pill text-base font-sans font-medium transition-colors", "bg-interactive text-fg", "data-[state=active]:bg-neutral data-[state=active]:text-white", n),
|
|
6667
|
+
children: t
|
|
6668
|
+
});
|
|
6669
|
+
}
|
|
6670
|
+
function Cd({ value: e, children: t, className: n }) {
|
|
6671
|
+
return /* @__PURE__ */ d(yd, {
|
|
6672
|
+
value: e,
|
|
6673
|
+
className: W("outline-none", n),
|
|
6674
|
+
children: t
|
|
6675
|
+
});
|
|
6676
|
+
}
|
|
6677
|
+
//#endregion
|
|
6388
6678
|
//#region src/icons/index.tsx
|
|
6389
|
-
function
|
|
6679
|
+
function wd({ width: e = 12, height: t = 12, ...n }) {
|
|
6390
6680
|
return /* @__PURE__ */ d("svg", {
|
|
6391
6681
|
viewBox: "0 0 12 12",
|
|
6392
6682
|
width: e,
|
|
@@ -6402,7 +6692,7 @@ function Pu({ width: e = 12, height: t = 12, ...n }) {
|
|
|
6402
6692
|
})
|
|
6403
6693
|
});
|
|
6404
6694
|
}
|
|
6405
|
-
function
|
|
6695
|
+
function Td({ width: e = 17, height: t = 17, ...n }) {
|
|
6406
6696
|
return /* @__PURE__ */ d("svg", {
|
|
6407
6697
|
viewBox: "0 0 17 17",
|
|
6408
6698
|
width: e,
|
|
@@ -6418,7 +6708,7 @@ function Fu({ width: e = 17, height: t = 17, ...n }) {
|
|
|
6418
6708
|
})
|
|
6419
6709
|
});
|
|
6420
6710
|
}
|
|
6421
|
-
function
|
|
6711
|
+
function Ed({ width: e = 14, height: t = 10, ...n }) {
|
|
6422
6712
|
return /* @__PURE__ */ f("svg", {
|
|
6423
6713
|
viewBox: "0 0 14 10",
|
|
6424
6714
|
width: e,
|
|
@@ -6450,7 +6740,7 @@ function Iu({ width: e = 14, height: t = 10, ...n }) {
|
|
|
6450
6740
|
]
|
|
6451
6741
|
});
|
|
6452
6742
|
}
|
|
6453
|
-
function
|
|
6743
|
+
function Dd({ width: e = 16, height: t = 16, ...n }) {
|
|
6454
6744
|
return /* @__PURE__ */ d("svg", {
|
|
6455
6745
|
viewBox: "0 0 16 16",
|
|
6456
6746
|
width: e,
|
|
@@ -6466,7 +6756,7 @@ function Lu({ width: e = 16, height: t = 16, ...n }) {
|
|
|
6466
6756
|
})
|
|
6467
6757
|
});
|
|
6468
6758
|
}
|
|
6469
|
-
function
|
|
6759
|
+
function Od({ width: e = 24, height: t = 24, ...n }) {
|
|
6470
6760
|
return /* @__PURE__ */ d("svg", {
|
|
6471
6761
|
viewBox: "0 0 24 24",
|
|
6472
6762
|
width: e,
|
|
@@ -6482,7 +6772,7 @@ function Ru({ width: e = 24, height: t = 24, ...n }) {
|
|
|
6482
6772
|
})
|
|
6483
6773
|
});
|
|
6484
6774
|
}
|
|
6485
|
-
function
|
|
6775
|
+
function kd({ width: e = 16, height: t = 16, ...n }) {
|
|
6486
6776
|
return /* @__PURE__ */ d("svg", {
|
|
6487
6777
|
viewBox: "0 0 16 16",
|
|
6488
6778
|
width: e,
|
|
@@ -6500,7 +6790,7 @@ function zu({ width: e = 16, height: t = 16, ...n }) {
|
|
|
6500
6790
|
}
|
|
6501
6791
|
//#endregion
|
|
6502
6792
|
//#region src/components/Switch/Switch.tsx
|
|
6503
|
-
var
|
|
6793
|
+
var Ad = {
|
|
6504
6794
|
sm: {
|
|
6505
6795
|
track: "w-8 h-5",
|
|
6506
6796
|
thumb: "top-0.5 w-4 h-4",
|
|
@@ -6514,10 +6804,10 @@ var Bu = {
|
|
|
6514
6804
|
off: "left-[3px]"
|
|
6515
6805
|
}
|
|
6516
6806
|
};
|
|
6517
|
-
function
|
|
6518
|
-
let { track: u, thumb: p, on: m, off: h } =
|
|
6807
|
+
function jd({ checked: e, onChange: t, size: n = "md", trackClassName: r, thumbClassName: i, id: a, disabled: o, className: s, "aria-label": c, "aria-labelledby": l }) {
|
|
6808
|
+
let { track: u, thumb: p, on: m, off: h } = Ad[n];
|
|
6519
6809
|
return /* @__PURE__ */ f("label", {
|
|
6520
|
-
className:
|
|
6810
|
+
className: W("inline-flex items-center cursor-pointer", o && "opacity-40 cursor-not-allowed", s),
|
|
6521
6811
|
children: [/* @__PURE__ */ d("input", {
|
|
6522
6812
|
id: a,
|
|
6523
6813
|
type: "checkbox",
|
|
@@ -6529,12 +6819,12 @@ function Vu({ checked: e, onChange: t, size: n = "md", trackClassName: r, thumbC
|
|
|
6529
6819
|
"aria-labelledby": l,
|
|
6530
6820
|
className: "sr-only peer"
|
|
6531
6821
|
}), /* @__PURE__ */ d("span", {
|
|
6532
|
-
className:
|
|
6533
|
-
children: /* @__PURE__ */ d("span", { className:
|
|
6822
|
+
className: W("relative rounded-pill transition-colors duration-200", "peer-focus-visible:ring-2 peer-focus-visible:ring-accent peer-focus-visible:ring-offset-1", u, r ?? (e ? "bg-accent" : "bg-subtle")),
|
|
6823
|
+
children: /* @__PURE__ */ d("span", { className: W("absolute rounded-full shadow transition-all duration-200", p, e ? m : h, i ?? "bg-white") })
|
|
6534
6824
|
})]
|
|
6535
6825
|
});
|
|
6536
6826
|
}
|
|
6537
|
-
var
|
|
6827
|
+
var Md = {
|
|
6538
6828
|
colors: {
|
|
6539
6829
|
accent: "#E30C5C",
|
|
6540
6830
|
accentHover: "#B40A49",
|
|
@@ -6560,7 +6850,7 @@ var Hu = {
|
|
|
6560
6850
|
button: "40px"
|
|
6561
6851
|
},
|
|
6562
6852
|
font: { sans: "'Inter Tight', sans-serif" }
|
|
6563
|
-
},
|
|
6853
|
+
}, Nd = {
|
|
6564
6854
|
colors: {
|
|
6565
6855
|
accent: "#F31667",
|
|
6566
6856
|
accentHover: "#B40A49",
|
|
@@ -6586,7 +6876,7 @@ var Hu = {
|
|
|
6586
6876
|
button: "40px"
|
|
6587
6877
|
},
|
|
6588
6878
|
font: { sans: "'Inter Tight', sans-serif" }
|
|
6589
|
-
},
|
|
6879
|
+
}, Pd = [
|
|
6590
6880
|
{
|
|
6591
6881
|
path: "colors.accent",
|
|
6592
6882
|
cssVar: "--color-accent"
|
|
@@ -6671,24 +6961,24 @@ var Hu = {
|
|
|
6671
6961
|
path: "font.sans",
|
|
6672
6962
|
cssVar: "--font-sans"
|
|
6673
6963
|
}
|
|
6674
|
-
],
|
|
6675
|
-
light:
|
|
6676
|
-
dark:
|
|
6964
|
+
], Fd = {
|
|
6965
|
+
light: Md,
|
|
6966
|
+
dark: Nd
|
|
6677
6967
|
};
|
|
6678
|
-
function
|
|
6968
|
+
function Id(e, t) {
|
|
6679
6969
|
return t.split(".").reduce((e, t) => e[t], e);
|
|
6680
6970
|
}
|
|
6681
|
-
function
|
|
6682
|
-
return Object.fromEntries(
|
|
6971
|
+
function Ld(e) {
|
|
6972
|
+
return Object.fromEntries(Pd.map(({ path: t, cssVar: n }) => [n, Id(e, t)]));
|
|
6683
6973
|
}
|
|
6684
6974
|
//#endregion
|
|
6685
6975
|
//#region src/components/ThemeProvider/ThemeProvider.tsx
|
|
6686
|
-
var
|
|
6687
|
-
function
|
|
6976
|
+
var Rd = n(null);
|
|
6977
|
+
function zd({ children: e, defaultTheme: t, customThemes: n, applyToRoot: r = !0 }) {
|
|
6688
6978
|
let a = c(() => ({
|
|
6689
|
-
...
|
|
6979
|
+
...Fd,
|
|
6690
6980
|
...n
|
|
6691
|
-
}), [n]), [s, u] = l(t ?? "light"), f = a[s] ??
|
|
6981
|
+
}), [n]), [s, u] = l(t ?? "light"), f = a[s] ?? Md;
|
|
6692
6982
|
o(() => {
|
|
6693
6983
|
let e = localStorage.getItem("datavac-theme");
|
|
6694
6984
|
!e || !a[e] || u(e);
|
|
@@ -6700,7 +6990,7 @@ function Yu({ children: e, defaultTheme: t, customThemes: n, applyToRoot: r = !0
|
|
|
6700
6990
|
}, [a]), m = i(() => {
|
|
6701
6991
|
u((e) => e === "dark" ? "light" : "dark");
|
|
6702
6992
|
}, []);
|
|
6703
|
-
return /* @__PURE__ */ d(
|
|
6993
|
+
return /* @__PURE__ */ d(Rd.Provider, {
|
|
6704
6994
|
value: {
|
|
6705
6995
|
themeName: s,
|
|
6706
6996
|
tokens: f,
|
|
@@ -6710,25 +7000,25 @@ function Yu({ children: e, defaultTheme: t, customThemes: n, applyToRoot: r = !0
|
|
|
6710
7000
|
children: e
|
|
6711
7001
|
});
|
|
6712
7002
|
}
|
|
6713
|
-
function
|
|
6714
|
-
let e = a(
|
|
7003
|
+
function Bd() {
|
|
7004
|
+
let e = a(Rd);
|
|
6715
7005
|
if (!e) throw Error("useTheme must be used within <ThemeProvider>");
|
|
6716
7006
|
return e;
|
|
6717
7007
|
}
|
|
6718
7008
|
//#endregion
|
|
6719
7009
|
//#region src/components/ThemeToggle/ThemeToggle.tsx
|
|
6720
|
-
function
|
|
6721
|
-
let { themeName: t, toggleTheme: n } =
|
|
7010
|
+
function Vd({ className: e }) {
|
|
7011
|
+
let { themeName: t, toggleTheme: n } = Bd(), r = t === "dark", [i, a] = l(!1);
|
|
6722
7012
|
return o(() => {
|
|
6723
7013
|
a(!0);
|
|
6724
7014
|
}, []), i ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
|
|
6725
|
-
className:
|
|
7015
|
+
className: W("hidden md:flex items-center gap-2", e),
|
|
6726
7016
|
children: [
|
|
6727
7017
|
/* @__PURE__ */ d("span", {
|
|
6728
|
-
className:
|
|
7018
|
+
className: W("text-xs font-sans", r ? "text-fg-muted" : "text-fg"),
|
|
6729
7019
|
children: "День"
|
|
6730
7020
|
}),
|
|
6731
|
-
/* @__PURE__ */ d(
|
|
7021
|
+
/* @__PURE__ */ d(jd, {
|
|
6732
7022
|
checked: r,
|
|
6733
7023
|
onChange: () => n(),
|
|
6734
7024
|
size: "sm",
|
|
@@ -6737,7 +7027,7 @@ function Zu({ className: e }) {
|
|
|
6737
7027
|
"aria-label": r ? "Включить светлую тему" : "Включить тёмную тему"
|
|
6738
7028
|
}),
|
|
6739
7029
|
/* @__PURE__ */ d("span", {
|
|
6740
|
-
className:
|
|
7030
|
+
className: W("text-xs font-sans", r ? "text-fg" : "text-fg-muted"),
|
|
6741
7031
|
children: "Ночь"
|
|
6742
7032
|
})
|
|
6743
7033
|
]
|
|
@@ -6746,19 +7036,19 @@ function Zu({ className: e }) {
|
|
|
6746
7036
|
"aria-checked": r,
|
|
6747
7037
|
"aria-label": r ? "Включить светлую тему" : "Включить тёмную тему",
|
|
6748
7038
|
onClick: n,
|
|
6749
|
-
className:
|
|
7039
|
+
className: W("relative flex md:hidden w-[58px] h-8 rounded-pill bg-neutral overflow-hidden", e),
|
|
6750
7040
|
children: [
|
|
6751
|
-
/* @__PURE__ */ d("span", { className:
|
|
7041
|
+
/* @__PURE__ */ d("span", { className: W("absolute top-[3px] w-[26px] h-[26px] bg-white rounded-full shadow transition-all duration-200", r ? "left-[29px]" : "left-[3px]") }),
|
|
6752
7042
|
/* @__PURE__ */ d("span", {
|
|
6753
7043
|
className: "absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none text-white",
|
|
6754
|
-
children: /* @__PURE__ */ d(
|
|
7044
|
+
children: /* @__PURE__ */ d(kd, {})
|
|
6755
7045
|
}),
|
|
6756
7046
|
/* @__PURE__ */ d("span", {
|
|
6757
7047
|
className: "absolute right-2 top-1/2 -translate-y-1/2 pointer-events-none text-fg",
|
|
6758
|
-
children: /* @__PURE__ */ d(
|
|
7048
|
+
children: /* @__PURE__ */ d(Dd, {})
|
|
6759
7049
|
})
|
|
6760
7050
|
]
|
|
6761
7051
|
})] }) : null;
|
|
6762
7052
|
}
|
|
6763
7053
|
//#endregion
|
|
6764
|
-
export { Tu as Accordion, Eu as AccordionItem,
|
|
7054
|
+
export { Tu as Accordion, Eu as AccordionItem, wd as ArrowsIcon, bt as Badge, yt as Button, nt as Caption, Ou as Card, xt as Chip, St as Counter, bl as Drawer, Mu as EmptyState, Nu as ErrorState, $e as Heading, Td as InfoCircleIcon, Ct as Input, tt as Label, Ed as MenuIcon, Dd as MoonStarsIcon, Od as PlusIcon, wt as SearchBar, ju as Skeleton, Au as Spinner, kd as SunIcon, jd as Switch, bd as Tabs, Cd as TabsContent, xd as TabsList, Sd as TabsTrigger, et as Text, zd as ThemeProvider, Vd as ThemeToggle, za as Tooltip, W as cn, Nd as darkTheme, Md as defaultTheme, Fd as themes, Ld as tokensToCssVars, Bd as useTheme };
|