@cronocode/react-box 3.1.9 → 3.1.11
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/BOX_AI_CONTEXT.md +85 -215
- package/components/dataGrid/components/dataGridCellRowDetail.d.ts +6 -0
- package/components/dataGrid/components/dataGridDetailRow.d.ts +6 -0
- package/components/dataGrid/components/dataGridEmptyColumns.d.ts +6 -1
- package/components/dataGrid/components/dataGridPagination.d.ts +1 -1
- package/components/dataGrid/contracts/dataGridContract.d.ts +51 -3
- package/components/dataGrid/models/detailRowModel.d.ts +16 -0
- package/components/dataGrid/models/gridModel.d.ts +25 -3
- package/components/dataGrid/models/groupRowModel.d.ts +2 -1
- package/components/dataGrid/models/rowModel.d.ts +3 -1
- package/components/dataGrid.cjs +1 -1
- package/components/dataGrid.mjs +929 -586
- package/components/semantics.d.ts +25 -25
- package/core/extends/boxComponents.d.ts +21 -0
- package/core.cjs +3 -3
- package/core.mjs +354 -323
- package/package.json +1 -1
package/core.mjs
CHANGED
|
@@ -3,34 +3,34 @@ import { jsx as S } from "react/jsx-runtime";
|
|
|
3
3
|
import T from "./components/baseSvg.mjs";
|
|
4
4
|
import Fe from "./box.mjs";
|
|
5
5
|
function fe(...e) {
|
|
6
|
-
return e.reduce((r,
|
|
7
|
-
t && r.push(
|
|
6
|
+
return e.reduce((r, l) => l ? typeof l == "string" ? (r.push(l), r) : Array.isArray(l) ? (r.push(...fe(...l)), r) : (Object.entries(l).forEach(([o, t]) => {
|
|
7
|
+
t && r.push(o);
|
|
8
8
|
}), r) : r, []);
|
|
9
9
|
}
|
|
10
10
|
const Y = 4;
|
|
11
|
-
var
|
|
11
|
+
var a;
|
|
12
12
|
((e) => {
|
|
13
13
|
((r) => {
|
|
14
|
-
function
|
|
14
|
+
function l(t, n) {
|
|
15
15
|
return `${t}${n.replace("/", "-")}`;
|
|
16
16
|
}
|
|
17
|
-
r.fraction =
|
|
18
|
-
function
|
|
17
|
+
r.fraction = l;
|
|
18
|
+
function o(t) {
|
|
19
19
|
return [`${t} path`, `${t} circle`, `${t} rect`, `${t} line`];
|
|
20
20
|
}
|
|
21
|
-
r.svg =
|
|
21
|
+
r.svg = o;
|
|
22
22
|
})(e.ClassName || (e.ClassName = {})), ((r) => {
|
|
23
|
-
function
|
|
24
|
-
return `${x /
|
|
23
|
+
function l(x, C, R = Y) {
|
|
24
|
+
return `${x / R}rem`;
|
|
25
25
|
}
|
|
26
|
-
r.rem =
|
|
27
|
-
function
|
|
26
|
+
r.rem = l;
|
|
27
|
+
function o(x) {
|
|
28
28
|
return `${x}px`;
|
|
29
29
|
}
|
|
30
|
-
r.px =
|
|
30
|
+
r.px = o;
|
|
31
31
|
function t(x) {
|
|
32
|
-
const [C,
|
|
33
|
-
return `${+C / +
|
|
32
|
+
const [C, R] = x.split("/");
|
|
33
|
+
return `${+C / +R * 100}%`;
|
|
34
34
|
}
|
|
35
35
|
r.fraction = t;
|
|
36
36
|
function n(x, C) {
|
|
@@ -44,18 +44,18 @@ var o;
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
r.widthHeight = n;
|
|
47
|
-
function
|
|
48
|
-
return (C,
|
|
47
|
+
function s(x) {
|
|
48
|
+
return (C, R) => `var(--${x}${R});`;
|
|
49
49
|
}
|
|
50
|
-
r.variables =
|
|
50
|
+
r.variables = s;
|
|
51
51
|
function c(x) {
|
|
52
|
-
return (C,
|
|
52
|
+
return (C, R) => `var(--${x}${R});`;
|
|
53
53
|
}
|
|
54
54
|
r.svgVariables = c;
|
|
55
|
-
function
|
|
55
|
+
function u(x, C) {
|
|
56
56
|
return `repeat(${C},minmax(0,1fr))`;
|
|
57
57
|
}
|
|
58
|
-
r.gridColumns =
|
|
58
|
+
r.gridColumns = u;
|
|
59
59
|
function m(x, C) {
|
|
60
60
|
return C === "full-row" ? "1/-1" : `span ${C}/span ${C}`;
|
|
61
61
|
}
|
|
@@ -73,7 +73,7 @@ var o;
|
|
|
73
73
|
}
|
|
74
74
|
r.flip = z;
|
|
75
75
|
})(e.Value || (e.Value = {}));
|
|
76
|
-
})(
|
|
76
|
+
})(a || (a = {}));
|
|
77
77
|
var Z;
|
|
78
78
|
((e) => {
|
|
79
79
|
e.colors = {
|
|
@@ -398,24 +398,24 @@ var Z;
|
|
|
398
398
|
"-10/12",
|
|
399
399
|
"-11/12"
|
|
400
400
|
], e.percentString = "";
|
|
401
|
-
const
|
|
401
|
+
const l = { ...{
|
|
402
402
|
inherit: "inherit",
|
|
403
403
|
none: "none"
|
|
404
|
-
}, ...e.colors, ...e.bgImages, ...e.shadows },
|
|
404
|
+
}, ...e.colors, ...e.bgImages, ...e.shadows }, o = {}, t = {};
|
|
405
405
|
let n = {};
|
|
406
|
-
function
|
|
407
|
-
return y in
|
|
406
|
+
function s(y) {
|
|
407
|
+
return y in o || (y in n ? (t[y] = n[y], o[y] = n[y]) : y in l ? (t[y] = l[y], o[y] = l[y]) : (t[y] = y, o[y] = y)), `var(--${y})`;
|
|
408
408
|
}
|
|
409
|
-
e.getVariableValue =
|
|
409
|
+
e.getVariableValue = s;
|
|
410
410
|
function c() {
|
|
411
|
-
return Object.entries(
|
|
411
|
+
return Object.entries(o).map(([y, z]) => `--${y}: ${z};`).join("");
|
|
412
412
|
}
|
|
413
413
|
e.generateVariables = c;
|
|
414
|
-
function
|
|
414
|
+
function u() {
|
|
415
415
|
const y = { ...t };
|
|
416
416
|
return Object.keys(t).forEach((z) => delete t[z]), y;
|
|
417
417
|
}
|
|
418
|
-
e.getPendingVariables =
|
|
418
|
+
e.getPendingVariables = u;
|
|
419
419
|
function m() {
|
|
420
420
|
return Object.keys(t).length > 0;
|
|
421
421
|
}
|
|
@@ -437,7 +437,7 @@ const i = Z, L = {
|
|
|
437
437
|
{
|
|
438
438
|
values: 0,
|
|
439
439
|
styleName: "border-width",
|
|
440
|
-
valueFormat:
|
|
440
|
+
valueFormat: a.Value.px
|
|
441
441
|
}
|
|
442
442
|
],
|
|
443
443
|
/** The border-width shorthand CSS property sets the width of an element's left and right border. */
|
|
@@ -445,7 +445,7 @@ const i = Z, L = {
|
|
|
445
445
|
{
|
|
446
446
|
values: 0,
|
|
447
447
|
styleName: "border-inline-width",
|
|
448
|
-
valueFormat:
|
|
448
|
+
valueFormat: a.Value.px
|
|
449
449
|
}
|
|
450
450
|
],
|
|
451
451
|
/** The border-width shorthand CSS property sets the width of an element's top and bottom border. */
|
|
@@ -453,7 +453,7 @@ const i = Z, L = {
|
|
|
453
453
|
{
|
|
454
454
|
values: 0,
|
|
455
455
|
styleName: "border-block-width",
|
|
456
|
-
valueFormat:
|
|
456
|
+
valueFormat: a.Value.px
|
|
457
457
|
}
|
|
458
458
|
],
|
|
459
459
|
/** The border-top-width CSS property sets the width of the top border of an element. */
|
|
@@ -461,7 +461,7 @@ const i = Z, L = {
|
|
|
461
461
|
{
|
|
462
462
|
values: 0,
|
|
463
463
|
styleName: "border-top-width",
|
|
464
|
-
valueFormat:
|
|
464
|
+
valueFormat: a.Value.px
|
|
465
465
|
}
|
|
466
466
|
],
|
|
467
467
|
/** The border-right-width CSS property sets the width of the right border of an element. */
|
|
@@ -469,7 +469,7 @@ const i = Z, L = {
|
|
|
469
469
|
{
|
|
470
470
|
values: 0,
|
|
471
471
|
styleName: "border-right-width",
|
|
472
|
-
valueFormat:
|
|
472
|
+
valueFormat: a.Value.px
|
|
473
473
|
}
|
|
474
474
|
],
|
|
475
475
|
/** The border-bottom-width CSS property sets the width of the bottom border of an element. */
|
|
@@ -477,7 +477,7 @@ const i = Z, L = {
|
|
|
477
477
|
{
|
|
478
478
|
values: 0,
|
|
479
479
|
styleName: "border-bottom-width",
|
|
480
|
-
valueFormat:
|
|
480
|
+
valueFormat: a.Value.px
|
|
481
481
|
}
|
|
482
482
|
],
|
|
483
483
|
/** The border-left-width CSS property sets the width of the left border of an element. */
|
|
@@ -485,7 +485,7 @@ const i = Z, L = {
|
|
|
485
485
|
{
|
|
486
486
|
values: 0,
|
|
487
487
|
styleName: "border-left-width",
|
|
488
|
-
valueFormat:
|
|
488
|
+
valueFormat: a.Value.px
|
|
489
489
|
}
|
|
490
490
|
],
|
|
491
491
|
/** The border-style shorthand CSS property sets the line style for all four sides of an element's border. */
|
|
@@ -500,7 +500,7 @@ const i = Z, L = {
|
|
|
500
500
|
{
|
|
501
501
|
styleName: "border-radius",
|
|
502
502
|
values: 0,
|
|
503
|
-
valueFormat:
|
|
503
|
+
valueFormat: a.Value.rem
|
|
504
504
|
}
|
|
505
505
|
],
|
|
506
506
|
/** The border-top-radius CSS property rounds the top corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
@@ -508,7 +508,7 @@ const i = Z, L = {
|
|
|
508
508
|
{
|
|
509
509
|
values: 0,
|
|
510
510
|
styleName: ["border-top-left-radius", "border-top-right-radius"],
|
|
511
|
-
valueFormat:
|
|
511
|
+
valueFormat: a.Value.rem
|
|
512
512
|
}
|
|
513
513
|
],
|
|
514
514
|
/** The border-right-radius CSS property rounds the right corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
@@ -516,7 +516,7 @@ const i = Z, L = {
|
|
|
516
516
|
{
|
|
517
517
|
values: 0,
|
|
518
518
|
styleName: ["border-top-right-radius", "border-bottom-right-radius"],
|
|
519
|
-
valueFormat:
|
|
519
|
+
valueFormat: a.Value.rem
|
|
520
520
|
}
|
|
521
521
|
],
|
|
522
522
|
/** The border-bottom-radius CSS property rounds the bottom corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
@@ -524,7 +524,7 @@ const i = Z, L = {
|
|
|
524
524
|
{
|
|
525
525
|
values: 0,
|
|
526
526
|
styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
|
|
527
|
-
valueFormat:
|
|
527
|
+
valueFormat: a.Value.rem
|
|
528
528
|
}
|
|
529
529
|
],
|
|
530
530
|
/** The border-left-radius CSS property rounds the left corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
@@ -532,7 +532,7 @@ const i = Z, L = {
|
|
|
532
532
|
{
|
|
533
533
|
values: 0,
|
|
534
534
|
styleName: ["border-top-left-radius", "border-bottom-left-radius"],
|
|
535
|
-
valueFormat:
|
|
535
|
+
valueFormat: a.Value.rem
|
|
536
536
|
}
|
|
537
537
|
],
|
|
538
538
|
/** The border-top-left-radius CSS property rounds the top-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
@@ -540,7 +540,7 @@ const i = Z, L = {
|
|
|
540
540
|
{
|
|
541
541
|
values: 0,
|
|
542
542
|
styleName: "border-top-left-radius",
|
|
543
|
-
valueFormat:
|
|
543
|
+
valueFormat: a.Value.rem
|
|
544
544
|
}
|
|
545
545
|
],
|
|
546
546
|
/** The border-top-right-radius CSS property rounds the top-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
@@ -548,7 +548,7 @@ const i = Z, L = {
|
|
|
548
548
|
{
|
|
549
549
|
values: 0,
|
|
550
550
|
styleName: "border-top-right-radius",
|
|
551
|
-
valueFormat:
|
|
551
|
+
valueFormat: a.Value.rem
|
|
552
552
|
}
|
|
553
553
|
],
|
|
554
554
|
/** The border-bottom-right-radius CSS property rounds the bottom-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
@@ -556,7 +556,7 @@ const i = Z, L = {
|
|
|
556
556
|
{
|
|
557
557
|
values: 0,
|
|
558
558
|
styleName: "border-bottom-right-radius",
|
|
559
|
-
valueFormat:
|
|
559
|
+
valueFormat: a.Value.rem
|
|
560
560
|
}
|
|
561
561
|
],
|
|
562
562
|
/** The border-bottom-left-radius CSS property rounds the bottom-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
|
|
@@ -564,7 +564,7 @@ const i = Z, L = {
|
|
|
564
564
|
{
|
|
565
565
|
values: 0,
|
|
566
566
|
styleName: "border-bottom-left-radius",
|
|
567
|
-
valueFormat:
|
|
567
|
+
valueFormat: a.Value.rem
|
|
568
568
|
}
|
|
569
569
|
],
|
|
570
570
|
/** The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
|
|
@@ -577,15 +577,15 @@ const i = Z, L = {
|
|
|
577
577
|
top: [
|
|
578
578
|
{
|
|
579
579
|
values: 0,
|
|
580
|
-
valueFormat:
|
|
580
|
+
valueFormat: a.Value.rem
|
|
581
581
|
},
|
|
582
582
|
{
|
|
583
583
|
values: i.percentages,
|
|
584
|
-
valueFormat:
|
|
584
|
+
valueFormat: a.Value.fraction
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
587
|
values: i.negativePercentages,
|
|
588
|
-
valueFormat:
|
|
588
|
+
valueFormat: a.Value.fraction
|
|
589
589
|
},
|
|
590
590
|
{
|
|
591
591
|
values: i.percentString
|
|
@@ -595,15 +595,15 @@ const i = Z, L = {
|
|
|
595
595
|
right: [
|
|
596
596
|
{
|
|
597
597
|
values: 0,
|
|
598
|
-
valueFormat:
|
|
598
|
+
valueFormat: a.Value.rem
|
|
599
599
|
},
|
|
600
600
|
{
|
|
601
601
|
values: i.percentages,
|
|
602
|
-
valueFormat:
|
|
602
|
+
valueFormat: a.Value.fraction
|
|
603
603
|
},
|
|
604
604
|
{
|
|
605
605
|
values: i.negativePercentages,
|
|
606
|
-
valueFormat:
|
|
606
|
+
valueFormat: a.Value.fraction
|
|
607
607
|
},
|
|
608
608
|
{
|
|
609
609
|
values: i.percentString
|
|
@@ -613,15 +613,15 @@ const i = Z, L = {
|
|
|
613
613
|
bottom: [
|
|
614
614
|
{
|
|
615
615
|
values: 0,
|
|
616
|
-
valueFormat:
|
|
616
|
+
valueFormat: a.Value.rem
|
|
617
617
|
},
|
|
618
618
|
{
|
|
619
619
|
values: i.percentages,
|
|
620
|
-
valueFormat:
|
|
620
|
+
valueFormat: a.Value.fraction
|
|
621
621
|
},
|
|
622
622
|
{
|
|
623
623
|
values: i.negativePercentages,
|
|
624
|
-
valueFormat:
|
|
624
|
+
valueFormat: a.Value.fraction
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
627
|
values: i.percentString
|
|
@@ -631,15 +631,15 @@ const i = Z, L = {
|
|
|
631
631
|
left: [
|
|
632
632
|
{
|
|
633
633
|
values: 0,
|
|
634
|
-
valueFormat:
|
|
634
|
+
valueFormat: a.Value.rem
|
|
635
635
|
},
|
|
636
636
|
{
|
|
637
637
|
values: i.percentages,
|
|
638
|
-
valueFormat:
|
|
638
|
+
valueFormat: a.Value.fraction
|
|
639
639
|
},
|
|
640
640
|
{
|
|
641
641
|
values: i.negativePercentages,
|
|
642
|
-
valueFormat:
|
|
642
|
+
valueFormat: a.Value.fraction
|
|
643
643
|
},
|
|
644
644
|
{
|
|
645
645
|
values: i.percentString
|
|
@@ -649,7 +649,7 @@ const i = Z, L = {
|
|
|
649
649
|
inset: [
|
|
650
650
|
{
|
|
651
651
|
values: 0,
|
|
652
|
-
valueFormat:
|
|
652
|
+
valueFormat: a.Value.rem
|
|
653
653
|
},
|
|
654
654
|
{
|
|
655
655
|
values: i.percentString
|
|
@@ -831,7 +831,7 @@ const i = Z, L = {
|
|
|
831
831
|
{
|
|
832
832
|
styleName: "font-size",
|
|
833
833
|
values: 0,
|
|
834
|
-
valueFormat: (e) =>
|
|
834
|
+
valueFormat: (e) => a.Value.rem(e, void 0, 16)
|
|
835
835
|
},
|
|
836
836
|
{
|
|
837
837
|
styleName: "font-size",
|
|
@@ -856,7 +856,7 @@ const i = Z, L = {
|
|
|
856
856
|
gap: [
|
|
857
857
|
{
|
|
858
858
|
values: 0,
|
|
859
|
-
valueFormat:
|
|
859
|
+
valueFormat: a.Value.rem
|
|
860
860
|
},
|
|
861
861
|
{
|
|
862
862
|
values: i.percentString
|
|
@@ -867,7 +867,7 @@ const i = Z, L = {
|
|
|
867
867
|
{
|
|
868
868
|
styleName: "row-gap",
|
|
869
869
|
values: 0,
|
|
870
|
-
valueFormat:
|
|
870
|
+
valueFormat: a.Value.rem
|
|
871
871
|
},
|
|
872
872
|
{
|
|
873
873
|
styleName: "row-gap",
|
|
@@ -879,7 +879,7 @@ const i = Z, L = {
|
|
|
879
879
|
{
|
|
880
880
|
styleName: "column-gap",
|
|
881
881
|
values: 0,
|
|
882
|
-
valueFormat:
|
|
882
|
+
valueFormat: a.Value.rem
|
|
883
883
|
},
|
|
884
884
|
{
|
|
885
885
|
styleName: "column-gap",
|
|
@@ -895,7 +895,7 @@ const i = Z, L = {
|
|
|
895
895
|
],
|
|
896
896
|
/** The height CSS property specifies the height of an element. By default, the property defines the height of the content area. If box-sizing is set to border-box, however, it instead determines the height of the border area. */
|
|
897
897
|
height: [
|
|
898
|
-
{ values: 0, valueFormat:
|
|
898
|
+
{ values: 0, valueFormat: a.Value.rem },
|
|
899
899
|
{
|
|
900
900
|
values: ["fit"],
|
|
901
901
|
valueFormat: () => "100%"
|
|
@@ -906,7 +906,7 @@ const i = Z, L = {
|
|
|
906
906
|
},
|
|
907
907
|
{
|
|
908
908
|
values: i.percentages,
|
|
909
|
-
valueFormat:
|
|
909
|
+
valueFormat: a.Value.fraction
|
|
910
910
|
},
|
|
911
911
|
{
|
|
912
912
|
values: ["auto", "fit-content", "max-content", "min-content"]
|
|
@@ -917,7 +917,7 @@ const i = Z, L = {
|
|
|
917
917
|
],
|
|
918
918
|
/** The min-height CSS property sets the minimum height of an element. It prevents the used value of the height property from becoming smaller than the value specified for min-height. */
|
|
919
919
|
minHeight: [
|
|
920
|
-
{ styleName: "min-height", values: 0, valueFormat:
|
|
920
|
+
{ styleName: "min-height", values: 0, valueFormat: a.Value.rem },
|
|
921
921
|
{
|
|
922
922
|
styleName: "min-height",
|
|
923
923
|
values: ["fit"],
|
|
@@ -931,7 +931,7 @@ const i = Z, L = {
|
|
|
931
931
|
{
|
|
932
932
|
styleName: "min-height",
|
|
933
933
|
values: i.percentages,
|
|
934
|
-
valueFormat:
|
|
934
|
+
valueFormat: a.Value.fraction
|
|
935
935
|
},
|
|
936
936
|
{
|
|
937
937
|
styleName: "min-height",
|
|
@@ -944,7 +944,7 @@ const i = Z, L = {
|
|
|
944
944
|
],
|
|
945
945
|
/** The max-height CSS property sets the maximum height of an element. It prevents the used value of the height property from becoming larger than the value specified for max-height. */
|
|
946
946
|
maxHeight: [
|
|
947
|
-
{ styleName: "max-height", values: 0, valueFormat:
|
|
947
|
+
{ styleName: "max-height", values: 0, valueFormat: a.Value.rem },
|
|
948
948
|
{
|
|
949
949
|
styleName: "max-height",
|
|
950
950
|
values: ["fit"],
|
|
@@ -958,7 +958,7 @@ const i = Z, L = {
|
|
|
958
958
|
{
|
|
959
959
|
styleName: "max-height",
|
|
960
960
|
values: i.percentages,
|
|
961
|
-
valueFormat:
|
|
961
|
+
valueFormat: a.Value.fraction
|
|
962
962
|
},
|
|
963
963
|
{
|
|
964
964
|
styleName: "max-height",
|
|
@@ -971,7 +971,7 @@ const i = Z, L = {
|
|
|
971
971
|
],
|
|
972
972
|
/** The width CSS property sets an element's width. By default, it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area. */
|
|
973
973
|
width: [
|
|
974
|
-
{ values: 0, valueFormat:
|
|
974
|
+
{ values: 0, valueFormat: a.Value.rem },
|
|
975
975
|
{
|
|
976
976
|
values: ["fit"],
|
|
977
977
|
valueFormat: () => "100%"
|
|
@@ -982,7 +982,7 @@ const i = Z, L = {
|
|
|
982
982
|
},
|
|
983
983
|
{
|
|
984
984
|
values: i.percentages,
|
|
985
|
-
valueFormat:
|
|
985
|
+
valueFormat: a.Value.fraction
|
|
986
986
|
},
|
|
987
987
|
{
|
|
988
988
|
values: ["auto", "fit-content", "max-content", "min-content"]
|
|
@@ -993,7 +993,7 @@ const i = Z, L = {
|
|
|
993
993
|
],
|
|
994
994
|
/** The min-width CSS property sets the minimum width of an element. It prevents the used value of the width property from becoming smaller than the value specified for min-width. */
|
|
995
995
|
minWidth: [
|
|
996
|
-
{ styleName: "min-width", values: 0, valueFormat:
|
|
996
|
+
{ styleName: "min-width", values: 0, valueFormat: a.Value.rem },
|
|
997
997
|
{
|
|
998
998
|
styleName: "min-width",
|
|
999
999
|
values: ["fit"],
|
|
@@ -1007,7 +1007,7 @@ const i = Z, L = {
|
|
|
1007
1007
|
{
|
|
1008
1008
|
styleName: "min-width",
|
|
1009
1009
|
values: i.percentages,
|
|
1010
|
-
valueFormat:
|
|
1010
|
+
valueFormat: a.Value.fraction
|
|
1011
1011
|
},
|
|
1012
1012
|
{
|
|
1013
1013
|
styleName: "min-width",
|
|
@@ -1020,7 +1020,7 @@ const i = Z, L = {
|
|
|
1020
1020
|
],
|
|
1021
1021
|
/** The max-width CSS property sets the maximum width of an element. It prevents the used value of the width property from becoming larger than the value specified by max-width. */
|
|
1022
1022
|
maxWidth: [
|
|
1023
|
-
{ styleName: "max-width", values: 0, valueFormat:
|
|
1023
|
+
{ styleName: "max-width", values: 0, valueFormat: a.Value.rem },
|
|
1024
1024
|
{
|
|
1025
1025
|
styleName: "max-width",
|
|
1026
1026
|
values: ["fit"],
|
|
@@ -1034,7 +1034,7 @@ const i = Z, L = {
|
|
|
1034
1034
|
{
|
|
1035
1035
|
styleName: "max-width",
|
|
1036
1036
|
values: i.percentages,
|
|
1037
|
-
valueFormat:
|
|
1037
|
+
valueFormat: a.Value.fraction
|
|
1038
1038
|
},
|
|
1039
1039
|
{
|
|
1040
1040
|
styleName: "max-width",
|
|
@@ -1050,7 +1050,7 @@ const i = Z, L = {
|
|
|
1050
1050
|
{
|
|
1051
1051
|
styleName: "letter-spacing",
|
|
1052
1052
|
values: 0,
|
|
1053
|
-
valueFormat:
|
|
1053
|
+
valueFormat: a.Value.px
|
|
1054
1054
|
}
|
|
1055
1055
|
],
|
|
1056
1056
|
/** The line-height CSS property sets the height of a line box in horizontal writing modes. In vertical writing modes, it sets the width of a line box. It's commonly used to set the distance between lines of text. On block-level elements in horizontal writing modes, it specifies the preferred height of line boxes within the element, and on non-replaced inline elements, it specifies the height that is used to calculate line box height. */
|
|
@@ -1058,7 +1058,7 @@ const i = Z, L = {
|
|
|
1058
1058
|
{
|
|
1059
1059
|
styleName: "line-height",
|
|
1060
1060
|
values: 0,
|
|
1061
|
-
valueFormat:
|
|
1061
|
+
valueFormat: a.Value.px
|
|
1062
1062
|
},
|
|
1063
1063
|
{
|
|
1064
1064
|
styleName: "line-height",
|
|
@@ -1078,7 +1078,7 @@ const i = Z, L = {
|
|
|
1078
1078
|
{
|
|
1079
1079
|
values: 0,
|
|
1080
1080
|
styleName: "margin",
|
|
1081
|
-
valueFormat:
|
|
1081
|
+
valueFormat: a.Value.rem
|
|
1082
1082
|
},
|
|
1083
1083
|
{
|
|
1084
1084
|
values: ["auto"],
|
|
@@ -1087,7 +1087,7 @@ const i = Z, L = {
|
|
|
1087
1087
|
{
|
|
1088
1088
|
styleName: "margin",
|
|
1089
1089
|
values: i.percentages,
|
|
1090
|
-
valueFormat:
|
|
1090
|
+
valueFormat: a.Value.fraction
|
|
1091
1091
|
},
|
|
1092
1092
|
{
|
|
1093
1093
|
values: i.percentString,
|
|
@@ -1099,7 +1099,7 @@ const i = Z, L = {
|
|
|
1099
1099
|
{
|
|
1100
1100
|
values: 0,
|
|
1101
1101
|
styleName: "margin-inline",
|
|
1102
|
-
valueFormat:
|
|
1102
|
+
valueFormat: a.Value.rem
|
|
1103
1103
|
},
|
|
1104
1104
|
{
|
|
1105
1105
|
values: ["auto"],
|
|
@@ -1108,7 +1108,7 @@ const i = Z, L = {
|
|
|
1108
1108
|
{
|
|
1109
1109
|
styleName: "margin-inline",
|
|
1110
1110
|
values: i.percentages,
|
|
1111
|
-
valueFormat:
|
|
1111
|
+
valueFormat: a.Value.fraction
|
|
1112
1112
|
},
|
|
1113
1113
|
{
|
|
1114
1114
|
values: i.percentString,
|
|
@@ -1120,7 +1120,7 @@ const i = Z, L = {
|
|
|
1120
1120
|
{
|
|
1121
1121
|
values: 0,
|
|
1122
1122
|
styleName: "margin-block",
|
|
1123
|
-
valueFormat:
|
|
1123
|
+
valueFormat: a.Value.rem
|
|
1124
1124
|
},
|
|
1125
1125
|
{
|
|
1126
1126
|
values: ["auto"],
|
|
@@ -1129,7 +1129,7 @@ const i = Z, L = {
|
|
|
1129
1129
|
{
|
|
1130
1130
|
styleName: "margin-block",
|
|
1131
1131
|
values: i.percentages,
|
|
1132
|
-
valueFormat:
|
|
1132
|
+
valueFormat: a.Value.fraction
|
|
1133
1133
|
},
|
|
1134
1134
|
{
|
|
1135
1135
|
values: i.percentString,
|
|
@@ -1141,7 +1141,7 @@ const i = Z, L = {
|
|
|
1141
1141
|
{
|
|
1142
1142
|
values: 0,
|
|
1143
1143
|
styleName: "margin-top",
|
|
1144
|
-
valueFormat:
|
|
1144
|
+
valueFormat: a.Value.rem
|
|
1145
1145
|
},
|
|
1146
1146
|
{
|
|
1147
1147
|
values: ["auto"],
|
|
@@ -1149,7 +1149,7 @@ const i = Z, L = {
|
|
|
1149
1149
|
},
|
|
1150
1150
|
{
|
|
1151
1151
|
values: i.percentages,
|
|
1152
|
-
valueFormat:
|
|
1152
|
+
valueFormat: a.Value.fraction,
|
|
1153
1153
|
styleName: "margin-top"
|
|
1154
1154
|
},
|
|
1155
1155
|
{
|
|
@@ -1162,7 +1162,7 @@ const i = Z, L = {
|
|
|
1162
1162
|
{
|
|
1163
1163
|
values: 0,
|
|
1164
1164
|
styleName: "margin-right",
|
|
1165
|
-
valueFormat:
|
|
1165
|
+
valueFormat: a.Value.rem
|
|
1166
1166
|
},
|
|
1167
1167
|
{
|
|
1168
1168
|
values: ["auto"],
|
|
@@ -1170,7 +1170,7 @@ const i = Z, L = {
|
|
|
1170
1170
|
},
|
|
1171
1171
|
{
|
|
1172
1172
|
values: i.percentages,
|
|
1173
|
-
valueFormat:
|
|
1173
|
+
valueFormat: a.Value.fraction,
|
|
1174
1174
|
styleName: "margin-right"
|
|
1175
1175
|
},
|
|
1176
1176
|
{
|
|
@@ -1183,7 +1183,7 @@ const i = Z, L = {
|
|
|
1183
1183
|
{
|
|
1184
1184
|
values: 0,
|
|
1185
1185
|
styleName: "margin-bottom",
|
|
1186
|
-
valueFormat:
|
|
1186
|
+
valueFormat: a.Value.rem
|
|
1187
1187
|
},
|
|
1188
1188
|
{
|
|
1189
1189
|
values: ["auto"],
|
|
@@ -1191,7 +1191,7 @@ const i = Z, L = {
|
|
|
1191
1191
|
},
|
|
1192
1192
|
{
|
|
1193
1193
|
values: i.percentages,
|
|
1194
|
-
valueFormat:
|
|
1194
|
+
valueFormat: a.Value.fraction,
|
|
1195
1195
|
styleName: "margin-bottom"
|
|
1196
1196
|
},
|
|
1197
1197
|
{
|
|
@@ -1204,7 +1204,7 @@ const i = Z, L = {
|
|
|
1204
1204
|
{
|
|
1205
1205
|
values: 0,
|
|
1206
1206
|
styleName: "margin-left",
|
|
1207
|
-
valueFormat:
|
|
1207
|
+
valueFormat: a.Value.rem
|
|
1208
1208
|
},
|
|
1209
1209
|
{
|
|
1210
1210
|
values: ["auto"],
|
|
@@ -1212,7 +1212,7 @@ const i = Z, L = {
|
|
|
1212
1212
|
},
|
|
1213
1213
|
{
|
|
1214
1214
|
values: i.percentages,
|
|
1215
|
-
valueFormat:
|
|
1215
|
+
valueFormat: a.Value.fraction,
|
|
1216
1216
|
styleName: "margin-left"
|
|
1217
1217
|
},
|
|
1218
1218
|
{
|
|
@@ -1225,11 +1225,11 @@ const i = Z, L = {
|
|
|
1225
1225
|
{
|
|
1226
1226
|
values: 0,
|
|
1227
1227
|
styleName: "padding",
|
|
1228
|
-
valueFormat:
|
|
1228
|
+
valueFormat: a.Value.rem
|
|
1229
1229
|
},
|
|
1230
1230
|
{
|
|
1231
1231
|
values: i.percentages,
|
|
1232
|
-
valueFormat:
|
|
1232
|
+
valueFormat: a.Value.fraction,
|
|
1233
1233
|
styleName: "padding"
|
|
1234
1234
|
},
|
|
1235
1235
|
{
|
|
@@ -1242,11 +1242,11 @@ const i = Z, L = {
|
|
|
1242
1242
|
{
|
|
1243
1243
|
values: 0,
|
|
1244
1244
|
styleName: "padding-inline",
|
|
1245
|
-
valueFormat:
|
|
1245
|
+
valueFormat: a.Value.rem
|
|
1246
1246
|
},
|
|
1247
1247
|
{
|
|
1248
1248
|
values: i.percentages,
|
|
1249
|
-
valueFormat:
|
|
1249
|
+
valueFormat: a.Value.fraction,
|
|
1250
1250
|
styleName: "padding-inline"
|
|
1251
1251
|
},
|
|
1252
1252
|
{
|
|
@@ -1259,11 +1259,11 @@ const i = Z, L = {
|
|
|
1259
1259
|
{
|
|
1260
1260
|
values: 0,
|
|
1261
1261
|
styleName: "padding-block",
|
|
1262
|
-
valueFormat:
|
|
1262
|
+
valueFormat: a.Value.rem
|
|
1263
1263
|
},
|
|
1264
1264
|
{
|
|
1265
1265
|
values: i.percentages,
|
|
1266
|
-
valueFormat:
|
|
1266
|
+
valueFormat: a.Value.fraction,
|
|
1267
1267
|
styleName: "padding-block"
|
|
1268
1268
|
},
|
|
1269
1269
|
{
|
|
@@ -1276,11 +1276,11 @@ const i = Z, L = {
|
|
|
1276
1276
|
{
|
|
1277
1277
|
values: 0,
|
|
1278
1278
|
styleName: "padding-top",
|
|
1279
|
-
valueFormat:
|
|
1279
|
+
valueFormat: a.Value.rem
|
|
1280
1280
|
},
|
|
1281
1281
|
{
|
|
1282
1282
|
values: i.percentages,
|
|
1283
|
-
valueFormat:
|
|
1283
|
+
valueFormat: a.Value.fraction,
|
|
1284
1284
|
styleName: "padding-top"
|
|
1285
1285
|
},
|
|
1286
1286
|
{
|
|
@@ -1293,11 +1293,11 @@ const i = Z, L = {
|
|
|
1293
1293
|
{
|
|
1294
1294
|
values: 0,
|
|
1295
1295
|
styleName: "padding-right",
|
|
1296
|
-
valueFormat:
|
|
1296
|
+
valueFormat: a.Value.rem
|
|
1297
1297
|
},
|
|
1298
1298
|
{
|
|
1299
1299
|
values: i.percentages,
|
|
1300
|
-
valueFormat:
|
|
1300
|
+
valueFormat: a.Value.fraction,
|
|
1301
1301
|
styleName: "padding-right"
|
|
1302
1302
|
},
|
|
1303
1303
|
{
|
|
@@ -1310,11 +1310,11 @@ const i = Z, L = {
|
|
|
1310
1310
|
{
|
|
1311
1311
|
values: 0,
|
|
1312
1312
|
styleName: "padding-bottom",
|
|
1313
|
-
valueFormat:
|
|
1313
|
+
valueFormat: a.Value.rem
|
|
1314
1314
|
},
|
|
1315
1315
|
{
|
|
1316
1316
|
values: i.percentages,
|
|
1317
|
-
valueFormat:
|
|
1317
|
+
valueFormat: a.Value.fraction,
|
|
1318
1318
|
styleName: "padding-bottom"
|
|
1319
1319
|
},
|
|
1320
1320
|
{
|
|
@@ -1327,11 +1327,11 @@ const i = Z, L = {
|
|
|
1327
1327
|
{
|
|
1328
1328
|
values: 0,
|
|
1329
1329
|
styleName: "padding-left",
|
|
1330
|
-
valueFormat:
|
|
1330
|
+
valueFormat: a.Value.rem
|
|
1331
1331
|
},
|
|
1332
1332
|
{
|
|
1333
1333
|
values: i.percentages,
|
|
1334
|
-
valueFormat:
|
|
1334
|
+
valueFormat: a.Value.fraction,
|
|
1335
1335
|
styleName: "padding-left"
|
|
1336
1336
|
},
|
|
1337
1337
|
{
|
|
@@ -1357,7 +1357,7 @@ const i = Z, L = {
|
|
|
1357
1357
|
{
|
|
1358
1358
|
styleName: "outline-width",
|
|
1359
1359
|
values: 0,
|
|
1360
|
-
valueFormat:
|
|
1360
|
+
valueFormat: a.Value.px
|
|
1361
1361
|
}
|
|
1362
1362
|
],
|
|
1363
1363
|
/** The outline-style CSS property sets the style of an element's outline. An outline is a line that is drawn around an element, outside the border. */
|
|
@@ -1372,7 +1372,7 @@ const i = Z, L = {
|
|
|
1372
1372
|
{
|
|
1373
1373
|
styleName: "outline-offset",
|
|
1374
1374
|
values: 0,
|
|
1375
|
-
valueFormat:
|
|
1375
|
+
valueFormat: a.Value.px
|
|
1376
1376
|
}
|
|
1377
1377
|
],
|
|
1378
1378
|
/** The overflow CSS shorthand property sets the desired behavior when content does not fit in the element's padding box (overflows) in the horizontal and/or vertical direction. */
|
|
@@ -1655,12 +1655,12 @@ const i = Z, L = {
|
|
|
1655
1655
|
},
|
|
1656
1656
|
{
|
|
1657
1657
|
values: i.percentages,
|
|
1658
|
-
valueFormat: (e) => `translateX(${
|
|
1658
|
+
valueFormat: (e) => `translateX(${a.Value.fraction(e)})`,
|
|
1659
1659
|
styleName: "transform"
|
|
1660
1660
|
},
|
|
1661
1661
|
{
|
|
1662
1662
|
values: i.negativePercentages,
|
|
1663
|
-
valueFormat: (e) => `translateX(${
|
|
1663
|
+
valueFormat: (e) => `translateX(${a.Value.fraction(e)})`,
|
|
1664
1664
|
styleName: "transform"
|
|
1665
1665
|
},
|
|
1666
1666
|
{
|
|
@@ -1678,12 +1678,12 @@ const i = Z, L = {
|
|
|
1678
1678
|
},
|
|
1679
1679
|
{
|
|
1680
1680
|
values: i.percentages,
|
|
1681
|
-
valueFormat: (e) => `translateY(${
|
|
1681
|
+
valueFormat: (e) => `translateY(${a.Value.fraction(e)})`,
|
|
1682
1682
|
styleName: "transform"
|
|
1683
1683
|
},
|
|
1684
1684
|
{
|
|
1685
1685
|
values: i.negativePercentages,
|
|
1686
|
-
valueFormat: (e) => `translateY(${
|
|
1686
|
+
valueFormat: (e) => `translateY(${a.Value.fraction(e)})`,
|
|
1687
1687
|
styleName: "transform"
|
|
1688
1688
|
},
|
|
1689
1689
|
{
|
|
@@ -1729,17 +1729,17 @@ const i = Z, L = {
|
|
|
1729
1729
|
}, Ve = {
|
|
1730
1730
|
theme: ""
|
|
1731
1731
|
}, K = { ...me, ...W, ...Ve }, ye = Object.entries(K).reduce(
|
|
1732
|
-
(e, [r],
|
|
1732
|
+
(e, [r], l) => (e[r] = Math.pow(2, l), e),
|
|
1733
1733
|
{}
|
|
1734
1734
|
), X = Object.entries(K).reduce(
|
|
1735
1735
|
(e, [r]) => {
|
|
1736
|
-
const
|
|
1737
|
-
return Object.entries(e).forEach(([
|
|
1738
|
-
e[+
|
|
1736
|
+
const l = ye[r];
|
|
1737
|
+
return Object.entries(e).forEach(([o, t]) => {
|
|
1738
|
+
e[+o + l] = [...t, r];
|
|
1739
1739
|
}), e;
|
|
1740
1740
|
},
|
|
1741
1741
|
{ 0: [] }
|
|
1742
|
-
),
|
|
1742
|
+
), D = {
|
|
1743
1743
|
hoverGroup: "hover",
|
|
1744
1744
|
focusGroup: "focus",
|
|
1745
1745
|
activeGroup: "active",
|
|
@@ -1747,7 +1747,7 @@ const i = Z, L = {
|
|
|
1747
1747
|
selectedGroup: "selected"
|
|
1748
1748
|
}, ie = {
|
|
1749
1749
|
theme: "theme"
|
|
1750
|
-
},
|
|
1750
|
+
}, P = {
|
|
1751
1751
|
/** Styles applied for small screens and larger. >= 640 */
|
|
1752
1752
|
sm: 640,
|
|
1753
1753
|
/** Styles applied for medium screens and larger. >= 768 */
|
|
@@ -1761,32 +1761,32 @@ const i = Z, L = {
|
|
|
1761
1761
|
};
|
|
1762
1762
|
var Q;
|
|
1763
1763
|
((e) => {
|
|
1764
|
-
function r(n,
|
|
1765
|
-
const
|
|
1766
|
-
return
|
|
1767
|
-
f in
|
|
1764
|
+
function r(n, s, c) {
|
|
1765
|
+
const u = { ...n }, m = u.props || {};
|
|
1766
|
+
return s.forEach((f) => {
|
|
1767
|
+
f in u && (m[f] = u[f], delete u[f]);
|
|
1768
1768
|
}), c && Object.entries(c).forEach(([f, y]) => {
|
|
1769
1769
|
m[f] = y;
|
|
1770
|
-
}),
|
|
1770
|
+
}), u.props = m, u;
|
|
1771
1771
|
}
|
|
1772
1772
|
e.buildProps = r;
|
|
1773
|
-
function
|
|
1773
|
+
function l(n) {
|
|
1774
1774
|
return !!n && typeof n == "object";
|
|
1775
1775
|
}
|
|
1776
|
-
e.isObject =
|
|
1777
|
-
function
|
|
1778
|
-
return n.reduce((
|
|
1779
|
-
const m = u
|
|
1780
|
-
|
|
1781
|
-
}),
|
|
1776
|
+
e.isObject = l;
|
|
1777
|
+
function o(...n) {
|
|
1778
|
+
return n.reduce((s, c) => (Object.keys(c ?? {}).forEach((u) => {
|
|
1779
|
+
const m = s[u], f = c[u];
|
|
1780
|
+
l(f) && "clean" in f && f.clean ? s[u] = f : u in W && typeof f == "boolean" || (u in W && Array.isArray(f) ? s[u] = o(m, f[1] ?? {}) : Array.isArray(m) && Array.isArray(f) ? s[u] = m.concat(...f) : l(m) && l(f) ? s[u] = o(m, f) : s[u] = f);
|
|
1781
|
+
}), s), {});
|
|
1782
1782
|
}
|
|
1783
|
-
e.mergeDeep =
|
|
1784
|
-
function t(n,
|
|
1785
|
-
return n in
|
|
1783
|
+
e.mergeDeep = o;
|
|
1784
|
+
function t(n, s) {
|
|
1785
|
+
return n in s;
|
|
1786
1786
|
}
|
|
1787
1787
|
e.isKeyOf = t;
|
|
1788
1788
|
})(Q || (Q = {}));
|
|
1789
|
-
const
|
|
1789
|
+
const k = Q, se = {
|
|
1790
1790
|
h1: {
|
|
1791
1791
|
styles: { fontSize: 14 * 2.5 }
|
|
1792
1792
|
},
|
|
@@ -2436,6 +2436,9 @@ const R = Q, se = {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
},
|
|
2438
2438
|
children: {
|
|
2439
|
+
content: {
|
|
2440
|
+
styles: {}
|
|
2441
|
+
},
|
|
2439
2442
|
topBar: {
|
|
2440
2443
|
styles: {
|
|
2441
2444
|
py: 3,
|
|
@@ -2862,9 +2865,21 @@ const R = Q, se = {
|
|
|
2862
2865
|
isLastLeaf: {},
|
|
2863
2866
|
isEmptyCell: {}
|
|
2864
2867
|
}
|
|
2868
|
+
},
|
|
2869
|
+
detailRow: {
|
|
2870
|
+
styles: {}
|
|
2871
|
+
},
|
|
2872
|
+
row: {
|
|
2873
|
+
styles: {}
|
|
2874
|
+
},
|
|
2875
|
+
groupRow: {
|
|
2876
|
+
styles: {}
|
|
2865
2877
|
}
|
|
2866
2878
|
}
|
|
2867
2879
|
},
|
|
2880
|
+
emptyColumns: {
|
|
2881
|
+
styles: {}
|
|
2882
|
+
},
|
|
2868
2883
|
bottomBar: {
|
|
2869
2884
|
styles: {
|
|
2870
2885
|
py: 3,
|
|
@@ -2884,56 +2899,72 @@ const R = Q, se = {
|
|
|
2884
2899
|
color: "gray-200"
|
|
2885
2900
|
}
|
|
2886
2901
|
}
|
|
2902
|
+
},
|
|
2903
|
+
children: {
|
|
2904
|
+
pagination: {
|
|
2905
|
+
styles: {}
|
|
2906
|
+
}
|
|
2887
2907
|
}
|
|
2888
2908
|
}
|
|
2889
2909
|
}
|
|
2890
2910
|
}
|
|
2891
2911
|
};
|
|
2912
|
+
function $e(e) {
|
|
2913
|
+
const r = { ...e };
|
|
2914
|
+
for (const [l, o] of Object.entries(r)) {
|
|
2915
|
+
if (!o.extends) continue;
|
|
2916
|
+
const t = r[o.extends];
|
|
2917
|
+
if (!t) continue;
|
|
2918
|
+
const { extends: n, ...s } = o;
|
|
2919
|
+
r[l] = k.mergeDeep({}, t, s);
|
|
2920
|
+
}
|
|
2921
|
+
return r;
|
|
2922
|
+
}
|
|
2892
2923
|
var J;
|
|
2893
2924
|
((e) => {
|
|
2894
|
-
function r(
|
|
2895
|
-
return i.setUserVariables(
|
|
2896
|
-
L[
|
|
2897
|
-
}), Object.entries(n).forEach(([
|
|
2898
|
-
const
|
|
2899
|
-
L[
|
|
2925
|
+
function r(o, t, n) {
|
|
2926
|
+
return i.setUserVariables(o), Object.entries(t).forEach(([s, c]) => {
|
|
2927
|
+
L[s] = c;
|
|
2928
|
+
}), Object.entries(n).forEach(([s, c]) => {
|
|
2929
|
+
const u = L[s];
|
|
2930
|
+
L[s] = u ? [...c, ...u] : c;
|
|
2900
2931
|
}), { extendedProps: t, extendedPropTypes: n };
|
|
2901
2932
|
}
|
|
2902
2933
|
e.extend = r, e.componentsStyles = se;
|
|
2903
|
-
function
|
|
2904
|
-
return e.componentsStyles =
|
|
2934
|
+
function l(o) {
|
|
2935
|
+
return e.componentsStyles = $e(k.mergeDeep(se, o)), o;
|
|
2905
2936
|
}
|
|
2906
|
-
e.components =
|
|
2937
|
+
e.components = l;
|
|
2907
2938
|
})(J || (J = {}));
|
|
2908
|
-
const
|
|
2939
|
+
const Se = J, ee = we.createContext({ theme: "", setTheme: () => {
|
|
2909
2940
|
} });
|
|
2910
2941
|
function re(e) {
|
|
2911
|
-
const { children: r, theme:
|
|
2942
|
+
const { children: r, theme: l, use: o = "local" } = e, [t, n] = de(l ?? "light");
|
|
2912
2943
|
return U(() => {
|
|
2913
|
-
if (
|
|
2914
|
-
const
|
|
2915
|
-
n(
|
|
2916
|
-
const c = (
|
|
2917
|
-
n(
|
|
2944
|
+
if (l !== void 0) return;
|
|
2945
|
+
const s = window.matchMedia("(prefers-color-scheme: dark)");
|
|
2946
|
+
n(s.matches ? "dark" : "light");
|
|
2947
|
+
const c = (u) => {
|
|
2948
|
+
n(u.matches ? "dark" : "light");
|
|
2918
2949
|
};
|
|
2919
|
-
return
|
|
2920
|
-
}, [
|
|
2921
|
-
if (
|
|
2922
|
-
const
|
|
2923
|
-
return
|
|
2924
|
-
|
|
2950
|
+
return s.addEventListener("change", c), () => s.removeEventListener("change", c);
|
|
2951
|
+
}, [l]), U(() => {
|
|
2952
|
+
if (o === "local") return;
|
|
2953
|
+
const s = document.documentElement;
|
|
2954
|
+
return s.classList.add(t), () => {
|
|
2955
|
+
s.classList.remove(t);
|
|
2925
2956
|
};
|
|
2926
|
-
}, [t,
|
|
2957
|
+
}, [t, o]), o === "local" ? /* @__PURE__ */ S(ee.Provider, { value: { theme: t, setTheme: n }, children: /* @__PURE__ */ S(Fe, { className: t, children: r }) }) : /* @__PURE__ */ S(ee.Provider, { value: { theme: t, setTheme: n }, children: r });
|
|
2927
2958
|
}
|
|
2928
2959
|
((e) => {
|
|
2929
2960
|
function r() {
|
|
2930
|
-
const { theme:
|
|
2931
|
-
return [
|
|
2961
|
+
const { theme: l, setTheme: o } = xe(ee);
|
|
2962
|
+
return [l, o];
|
|
2932
2963
|
}
|
|
2933
2964
|
e.useTheme = r;
|
|
2934
2965
|
})(re || (re = {}));
|
|
2935
|
-
const
|
|
2936
|
-
class
|
|
2966
|
+
const ze = re;
|
|
2967
|
+
class ke {
|
|
2937
2968
|
constructor() {
|
|
2938
2969
|
this._index = 0, this._cache = {};
|
|
2939
2970
|
}
|
|
@@ -2941,75 +2972,76 @@ class ze {
|
|
|
2941
2972
|
return this._cache[r] || (this._cache[r] = this.getByIndex(this._index++)), this._cache[r];
|
|
2942
2973
|
}
|
|
2943
2974
|
getByIndex(r) {
|
|
2944
|
-
const { first:
|
|
2975
|
+
const { first: l, next: o } = Re, t = r - l.length;
|
|
2945
2976
|
if (t < 0)
|
|
2946
|
-
return
|
|
2947
|
-
const n = Math.floor(t /
|
|
2948
|
-
return this.getByIndex(n) +
|
|
2977
|
+
return l[r];
|
|
2978
|
+
const n = Math.floor(t / o.length), s = t - n * o.length;
|
|
2979
|
+
return this.getByIndex(n) + o[s];
|
|
2949
2980
|
}
|
|
2950
2981
|
}
|
|
2951
|
-
const
|
|
2982
|
+
const Re = {
|
|
2952
2983
|
first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
|
2953
2984
|
next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
|
2954
2985
|
};
|
|
2955
|
-
function
|
|
2956
|
-
const { clean: r, component:
|
|
2986
|
+
function Ae(e) {
|
|
2987
|
+
const { clean: r, component: l, variant: o } = e;
|
|
2957
2988
|
return le(() => {
|
|
2958
2989
|
if (r) return;
|
|
2959
|
-
const t =
|
|
2990
|
+
const t = l?.split(".");
|
|
2960
2991
|
if (!t) return;
|
|
2961
|
-
const n = t.reduce((
|
|
2992
|
+
const n = t.reduce((u, m, f) => f === 0 ? Se.componentsStyles[m] : u?.children?.[m], void 0);
|
|
2962
2993
|
if (!n) return;
|
|
2963
|
-
if (!
|
|
2964
|
-
const
|
|
2965
|
-
if (
|
|
2966
|
-
const c =
|
|
2967
|
-
return n.styles ?
|
|
2968
|
-
}, [r,
|
|
2994
|
+
if (!o) return n.styles;
|
|
2995
|
+
const s = fe(o);
|
|
2996
|
+
if (s.length === 0) return n.styles;
|
|
2997
|
+
const c = k.mergeDeep(...s.map((u) => n.variants?.[u]));
|
|
2998
|
+
return n.styles ? k.mergeDeep(n.styles, c) : c;
|
|
2999
|
+
}, [r, l, o]);
|
|
2969
3000
|
}
|
|
2970
|
-
const
|
|
2971
|
-
function
|
|
2972
|
-
const
|
|
2973
|
-
return B.addClassNames(
|
|
3001
|
+
const Oe = new ke(), Ee = typeof window < "u" && typeof window.document < "u", H = typeof process == "object" && process.env?.NODE_ENV === "test", je = Ee && !H ? U : ge, be = "_b", I = "_s";
|
|
3002
|
+
function Me(e, r) {
|
|
3003
|
+
const l = Ae(e), o = le(() => l ? k.mergeDeep(l, e) : e, [e, l]), t = [r ? I : be];
|
|
3004
|
+
return B.addClassNames(o, t, []), je(() => {
|
|
2974
3005
|
B.flush();
|
|
2975
|
-
}, [
|
|
3006
|
+
}, [o]), t;
|
|
2976
3007
|
}
|
|
2977
3008
|
var B;
|
|
2978
3009
|
((e) => {
|
|
2979
|
-
let r = !0,
|
|
2980
|
-
const
|
|
2981
|
-
let
|
|
3010
|
+
let r = !0, l = !1;
|
|
3011
|
+
const o = /* @__PURE__ */ new Set(), t = [], n = [];
|
|
3012
|
+
let s = 0;
|
|
2982
3013
|
const c = Object.keys(L).reduce((b, h, w) => (b[h] = w, b), {});
|
|
2983
|
-
let
|
|
3014
|
+
let u = {};
|
|
2984
3015
|
function m(b, h, w, p, g) {
|
|
2985
3016
|
Object.entries(b).forEach(([v, d]) => {
|
|
2986
|
-
if (
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
if (
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
m(
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3017
|
+
if (d != null)
|
|
3018
|
+
if (k.isKeyOf(v, L))
|
|
3019
|
+
x(v, d, h, w, p, g);
|
|
3020
|
+
else if (k.isKeyOf(v, me))
|
|
3021
|
+
m(d, h, [...w, v], p, g);
|
|
3022
|
+
else if (k.isKeyOf(v, W)) {
|
|
3023
|
+
if (Array.isArray(d)) {
|
|
3024
|
+
const [N, F] = d;
|
|
3025
|
+
m(F, h, [...w, v], p, g);
|
|
3026
|
+
}
|
|
3027
|
+
k.isObject(d) && m(d, h, [...w, v], p, g);
|
|
3028
|
+
} else k.isKeyOf(v, P) ? m(d, h, w, v, g) : k.isKeyOf(v, D) ? Object.entries(d).forEach(([N, F]) => {
|
|
3029
|
+
m(F, h, [...w, D[v]], p, N);
|
|
3030
|
+
}) : k.isKeyOf(v, ie) && Object.entries(d).forEach(([N, F]) => {
|
|
3031
|
+
const $ = [...w, ie[v]];
|
|
3032
|
+
Object.entries(F).forEach(([V, O]) => {
|
|
3033
|
+
k.isKeyOf(V, D) ? Object.entries(O).forEach(([M, E]) => {
|
|
3034
|
+
m(
|
|
3035
|
+
E,
|
|
3036
|
+
h,
|
|
3037
|
+
[...$, D[V]],
|
|
3038
|
+
p,
|
|
3039
|
+
// Use | as separator to distinguish theme from group name
|
|
3040
|
+
`${N}|${M}`
|
|
3041
|
+
);
|
|
3042
|
+
}) : m({ [V]: O }, h, $, p, N);
|
|
3043
|
+
});
|
|
3011
3044
|
});
|
|
3012
|
-
});
|
|
3013
3045
|
});
|
|
3014
3046
|
}
|
|
3015
3047
|
e.addClassNames = m;
|
|
@@ -3018,12 +3050,12 @@ var B;
|
|
|
3018
3050
|
if (!r && !b) return;
|
|
3019
3051
|
console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
|
|
3020
3052
|
const h = q(), w = h.sheet;
|
|
3021
|
-
if (
|
|
3053
|
+
if (l) {
|
|
3022
3054
|
if (i.hasPendingVariables()) {
|
|
3023
3055
|
const p = i.getPendingVariables(), g = `:root{${Object.entries(p).map(([v, d]) => `--${v}: ${d};`).join("")}}`;
|
|
3024
3056
|
if (w && !H)
|
|
3025
3057
|
try {
|
|
3026
|
-
w.insertRule(g, 0),
|
|
3058
|
+
w.insertRule(g, 0), s++;
|
|
3027
3059
|
} catch {
|
|
3028
3060
|
}
|
|
3029
3061
|
else
|
|
@@ -3048,13 +3080,13 @@ var B;
|
|
|
3048
3080
|
if (w && !H)
|
|
3049
3081
|
for (const g of p)
|
|
3050
3082
|
try {
|
|
3051
|
-
w.insertRule(g,
|
|
3083
|
+
w.insertRule(g, s), s++;
|
|
3052
3084
|
} catch {
|
|
3053
3085
|
}
|
|
3054
3086
|
else
|
|
3055
3087
|
h.textContent = p.join(`
|
|
3056
3088
|
`);
|
|
3057
|
-
|
|
3089
|
+
l = !0;
|
|
3058
3090
|
}
|
|
3059
3091
|
if (t.length > 0) {
|
|
3060
3092
|
if (t.sort((p, g) => p[1] - g[1] || p[0] - g[0]), w && !H)
|
|
@@ -3067,7 +3099,7 @@ var B;
|
|
|
3067
3099
|
break;
|
|
3068
3100
|
}
|
|
3069
3101
|
try {
|
|
3070
|
-
w.insertRule(v,
|
|
3102
|
+
w.insertRule(v, s + N), n.splice(N, 0, d);
|
|
3071
3103
|
} catch {
|
|
3072
3104
|
w.insertRule(v, w.cssRules.length), n.push(d);
|
|
3073
3105
|
}
|
|
@@ -3082,7 +3114,7 @@ var B;
|
|
|
3082
3114
|
function y(b, h, w, p, g) {
|
|
3083
3115
|
const d = L[b].find((V) => Array.isArray(V.values) ? V.values.includes(h) : typeof h == typeof V.values);
|
|
3084
3116
|
if (!d) return null;
|
|
3085
|
-
const N = c[b] ?? 0, F =
|
|
3117
|
+
const N = c[b] ?? 0, F = P[p] ?? 0, $ = C(
|
|
3086
3118
|
b,
|
|
3087
3119
|
h,
|
|
3088
3120
|
w,
|
|
@@ -3097,34 +3129,34 @@ var B;
|
|
|
3097
3129
|
A = `.${j} .${Ce}${E} .${$}`;
|
|
3098
3130
|
} else O ? A = `.${g} .${$}${E}` : A = `.${g}${E} .${$}`;
|
|
3099
3131
|
const he = d.selector?.(A, "") ?? A, ve = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], pe = d.valueFormat?.(h, i.getVariableValue) ?? h, ne = `${he}{${ve.map((j) => `${j}:${pe}`).join(";")}}`;
|
|
3100
|
-
return p !== "normal" ? { rule: `@media(min-width: ${
|
|
3132
|
+
return p !== "normal" ? { rule: `@media(min-width: ${P[p]}px){${ne}}`, sortIndex: N, breakpointOrder: F } : { rule: ne, sortIndex: N, breakpointOrder: F };
|
|
3101
3133
|
} else {
|
|
3102
3134
|
const V = X[w].map((A) => K[A]).join(""), O = d.selector?.(`.${$}`, V) ?? `.${$}${V}`, M = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], E = d.valueFormat?.(h, i.getVariableValue) ?? h, G = `${O}{${M.map((A) => `${A}:${E}`).join(";")}}`;
|
|
3103
|
-
return p !== "normal" ? { rule: `@media(min-width: ${
|
|
3135
|
+
return p !== "normal" ? { rule: `@media(min-width: ${P[p]}px){${G}}`, sortIndex: N, breakpointOrder: F } : { rule: G, sortIndex: N, breakpointOrder: F };
|
|
3104
3136
|
}
|
|
3105
3137
|
}
|
|
3106
3138
|
function z() {
|
|
3107
|
-
|
|
3139
|
+
u = {}, o.clear(), t.length = 0, n.length = 0, s = 0, l = !1;
|
|
3108
3140
|
}
|
|
3109
3141
|
e.clear = z;
|
|
3110
3142
|
function x(b, h, w, p, g = "normal", v) {
|
|
3111
3143
|
if (h == null) return;
|
|
3112
3144
|
const d = p.reduce(($, V) => $ + ye[V], 0), N = C(b, h, d, g, v), F = `${g}-${d}-${b}-${h}-${v ?? ""}`;
|
|
3113
|
-
if (!
|
|
3114
|
-
|
|
3145
|
+
if (!o.has(F)) {
|
|
3146
|
+
o.add(F);
|
|
3115
3147
|
const $ = y(b, h, d, g, v);
|
|
3116
|
-
$ && (t.push([$.sortIndex, $.breakpointOrder, $.rule]), r = !0),
|
|
3148
|
+
$ && (t.push([$.sortIndex, $.breakpointOrder, $.rule]), r = !0), u[g] ? u[g][d] ? u[g][d][b] || (u[g][d][b] = /* @__PURE__ */ new Set()) : u[g][d] = { [b]: /* @__PURE__ */ new Set() } : u[g] = { [d]: { [b]: /* @__PURE__ */ new Set() } }, v ? (u[g][d].__parents ? u[g][d].__parents[v] ? u[g][d].__parents[v][b] || (u[g][d].__parents[v][b] = /* @__PURE__ */ new Set()) : u[g][d].__parents[v] = { [b]: /* @__PURE__ */ new Set() } : u[g][d].__parents = { [v]: { [b]: /* @__PURE__ */ new Set() } }, u[g][d].__parents[v][b].add(h)) : u[g][d][b].add(h);
|
|
3117
3149
|
}
|
|
3118
3150
|
w.push(N);
|
|
3119
3151
|
}
|
|
3120
3152
|
function C(b, h, w, p, g) {
|
|
3121
3153
|
const v = X[w], d = `${p === "normal" ? "" : `${p}-`}${v.map((N) => `${N}-`).join("")}${g ? `${g}-` : ""}${b}-${h}`;
|
|
3122
|
-
return H ? d :
|
|
3154
|
+
return H ? d : Oe.getIdentity(d);
|
|
3123
3155
|
}
|
|
3124
|
-
const
|
|
3156
|
+
const R = "crono-styles";
|
|
3125
3157
|
function q() {
|
|
3126
|
-
let b = document.getElementById(
|
|
3127
|
-
return b || (b = document.createElement("style"), b.setAttribute("id",
|
|
3158
|
+
let b = document.getElementById(R);
|
|
3159
|
+
return b || (b = document.createElement("style"), b.setAttribute("id", R), b.setAttribute("type", "text/css"), document.head.insertBefore(b, document.head.firstChild)), b;
|
|
3128
3160
|
}
|
|
3129
3161
|
})(B || (B = {}));
|
|
3130
3162
|
var ue;
|
|
@@ -3142,12 +3174,12 @@ Array.prototype.add || (Array.prototype.add = function(...e) {
|
|
|
3142
3174
|
return r.push(...e), r;
|
|
3143
3175
|
});
|
|
3144
3176
|
Array.prototype.sumBy || (Array.prototype.sumBy = function(e, r = 0) {
|
|
3145
|
-
return this.reduce((
|
|
3177
|
+
return this.reduce((l, o, t) => l + e(o, t), r);
|
|
3146
3178
|
});
|
|
3147
3179
|
Array.prototype.sortBy || (Array.prototype.sortBy = function(e, r) {
|
|
3148
|
-
return [...this].sort((
|
|
3149
|
-
const n = e(
|
|
3150
|
-
return n <
|
|
3180
|
+
return [...this].sort((o, t) => {
|
|
3181
|
+
const n = e(o), s = e(t);
|
|
3182
|
+
return n < s ? r === "DESC" ? 1 : -1 : n > s ? r === "DESC" ? -1 : 1 : 0;
|
|
3151
3183
|
});
|
|
3152
3184
|
});
|
|
3153
3185
|
Array.prototype.maxBy || (Array.prototype.maxBy = function(e) {
|
|
@@ -3160,54 +3192,54 @@ Array.prototype.findOrThrow || (Array.prototype.findOrThrow = function(e) {
|
|
|
3160
3192
|
});
|
|
3161
3193
|
Array.prototype.toRecord || (Array.prototype.toRecord = function(e) {
|
|
3162
3194
|
return this.reduce(
|
|
3163
|
-
(r,
|
|
3164
|
-
const
|
|
3165
|
-
if (!
|
|
3166
|
-
const [t, n] =
|
|
3195
|
+
(r, l) => {
|
|
3196
|
+
const o = e(l);
|
|
3197
|
+
if (!o) return r;
|
|
3198
|
+
const [t, n] = o;
|
|
3167
3199
|
return r[t] = n, r;
|
|
3168
3200
|
},
|
|
3169
3201
|
{}
|
|
3170
3202
|
);
|
|
3171
3203
|
});
|
|
3172
3204
|
Array.prototype.groupBy || (Array.prototype.groupBy = function(e, r = !1) {
|
|
3173
|
-
const
|
|
3174
|
-
const
|
|
3175
|
-
return r && typeof
|
|
3205
|
+
const l = this.reduce((o, t, n) => {
|
|
3206
|
+
const s = e(t, n);
|
|
3207
|
+
return r && typeof s != "number" && !s || (o.has(s) === !1 && o.set(s, []), o.get(s)?.push(t)), o;
|
|
3176
3208
|
}, /* @__PURE__ */ new Map());
|
|
3177
|
-
return Array.from(
|
|
3209
|
+
return Array.from(l, ([o, t]) => ({ key: o, values: t }));
|
|
3178
3210
|
});
|
|
3179
|
-
function
|
|
3180
|
-
const { node: r = null, event:
|
|
3211
|
+
function Ge(e) {
|
|
3212
|
+
const { node: r = null, event: l = "click", hideOnScroll: o = !1, hideOnResize: t = !1, hideOnEscape: n = !0 } = e ?? {}, [s, c] = de(!1), u = Ne(null);
|
|
3181
3213
|
return ge(() => {
|
|
3182
3214
|
function m(C) {
|
|
3183
|
-
(r ??
|
|
3215
|
+
(r ?? u.current)?.contains(C.target) === !1 && c(!1);
|
|
3184
3216
|
}
|
|
3185
3217
|
function f() {
|
|
3186
3218
|
c(!1);
|
|
3187
3219
|
}
|
|
3188
3220
|
function y(C) {
|
|
3189
|
-
(r ??
|
|
3221
|
+
(r ?? u.current)?.contains(C.target) === !1 && c(!1);
|
|
3190
3222
|
}
|
|
3191
3223
|
function z(C) {
|
|
3192
3224
|
C.key === "Escape" && c(!1);
|
|
3193
3225
|
}
|
|
3194
3226
|
const x = new AbortController();
|
|
3195
|
-
return
|
|
3227
|
+
return s && (window.addEventListener(l, m, x), n && window.addEventListener("keydown", z, x), t && window.addEventListener("resize", f, x), o && window.addEventListener("scroll", y, { signal: x.signal, capture: !0 })), () => {
|
|
3196
3228
|
x.abort();
|
|
3197
3229
|
};
|
|
3198
|
-
}, [r,
|
|
3230
|
+
}, [r, s]), [s, c, u];
|
|
3199
3231
|
}
|
|
3200
|
-
const
|
|
3232
|
+
const Ie = {
|
|
3201
3233
|
selected: "aria-selected"
|
|
3202
3234
|
};
|
|
3203
3235
|
var ce;
|
|
3204
3236
|
((e) => {
|
|
3205
|
-
function r(
|
|
3206
|
-
|
|
3237
|
+
function r(l, o, t) {
|
|
3238
|
+
l !== void 0 && l != null && (t[Ie[o] ?? o] = Array.isArray(l) ? l[0] : l);
|
|
3207
3239
|
}
|
|
3208
3240
|
e.assignBooleanProp = r;
|
|
3209
3241
|
})(ce || (ce = {}));
|
|
3210
|
-
function
|
|
3242
|
+
function De(e) {
|
|
3211
3243
|
let r;
|
|
3212
3244
|
return Object.defineProperty({
|
|
3213
3245
|
clear() {
|
|
@@ -3217,37 +3249,20 @@ function Ge(e) {
|
|
|
3217
3249
|
get: () => (r === void 0 && (r = e()), r)
|
|
3218
3250
|
});
|
|
3219
3251
|
}
|
|
3220
|
-
function
|
|
3252
|
+
function Le(e, r) {
|
|
3221
3253
|
if (!e) return { score: 1, matches: [] };
|
|
3222
3254
|
if (!r) return null;
|
|
3223
|
-
const
|
|
3255
|
+
const l = e.toLowerCase(), o = r.toLowerCase();
|
|
3224
3256
|
let t = 0, n = 0;
|
|
3225
|
-
const
|
|
3226
|
-
let c = -1,
|
|
3227
|
-
for (; t <
|
|
3228
|
-
|
|
3229
|
-
return c !== -1 &&
|
|
3257
|
+
const s = [];
|
|
3258
|
+
let c = -1, u = 0, m = 0;
|
|
3259
|
+
for (; t < l.length && n < o.length; )
|
|
3260
|
+
l[t] === o[n] ? (c === -1 && (c = n), t++, m++, u += m, (n === 0 || /\s|_|-/.test(r[n - 1])) && (u += 5), e[t - 1] === r[n] && (u += 1)) : (c !== -1 && (s.push([c, n]), c = -1), m = 0), n++;
|
|
3261
|
+
return c !== -1 && s.push([c, n]), t < l.length ? null : (u = u / r.length, { score: u, matches: s });
|
|
3230
3262
|
}
|
|
3231
3263
|
function Pe(e, r) {
|
|
3232
|
-
return
|
|
3264
|
+
return Le(e, r) !== null;
|
|
3233
3265
|
}
|
|
3234
|
-
var te;
|
|
3235
|
-
((e) => {
|
|
3236
|
-
function r(a, l = 300) {
|
|
3237
|
-
let t = !1, n;
|
|
3238
|
-
return (...u) => {
|
|
3239
|
-
if (t) {
|
|
3240
|
-
n = u;
|
|
3241
|
-
return;
|
|
3242
|
-
}
|
|
3243
|
-
a(...u), t = !0, setTimeout(() => {
|
|
3244
|
-
t = !1, n && a(...n);
|
|
3245
|
-
}, l);
|
|
3246
|
-
};
|
|
3247
|
-
}
|
|
3248
|
-
e.throttle = r;
|
|
3249
|
-
})(te || (te = {}));
|
|
3250
|
-
const De = te;
|
|
3251
3266
|
function Ue(e) {
|
|
3252
3267
|
return /* @__PURE__ */ S(T, { viewBox: "4 2 16 18", width: "1rem", fill: "currentColor", ...e, children: /* @__PURE__ */ S(
|
|
3253
3268
|
"path",
|
|
@@ -3258,26 +3273,42 @@ function Ue(e) {
|
|
|
3258
3273
|
}
|
|
3259
3274
|
) });
|
|
3260
3275
|
}
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3276
|
+
var te;
|
|
3277
|
+
((e) => {
|
|
3278
|
+
function r(l, o = 300) {
|
|
3279
|
+
let t = !1, n;
|
|
3280
|
+
return (...s) => {
|
|
3281
|
+
if (t) {
|
|
3282
|
+
n = s;
|
|
3283
|
+
return;
|
|
3284
|
+
}
|
|
3285
|
+
l(...s), t = !0, setTimeout(() => {
|
|
3286
|
+
t = !1, n && l(...n);
|
|
3287
|
+
}, o);
|
|
3288
|
+
};
|
|
3289
|
+
}
|
|
3290
|
+
e.throttle = r;
|
|
3291
|
+
})(te || (te = {}));
|
|
3292
|
+
const We = te, _ = /* @__PURE__ */ new Map();
|
|
3293
|
+
function Ke() {
|
|
3294
|
+
const [e] = ze.useTheme(), r = le(() => {
|
|
3295
|
+
const l = "crono-box";
|
|
3296
|
+
let o = document.getElementById(l);
|
|
3297
|
+
return o || (o = document.createElement("div"), o.id = l, document.body.appendChild(o)), o;
|
|
3267
3298
|
}, []);
|
|
3268
3299
|
return U(() => {
|
|
3269
3300
|
if (!e) return;
|
|
3270
|
-
const
|
|
3271
|
-
return _.set(e,
|
|
3301
|
+
const l = _.get(e) ?? 0;
|
|
3302
|
+
return _.set(e, l + 1), l === 0 && r.classList.add(e), () => {
|
|
3272
3303
|
const t = (_.get(e) ?? 1) - 1;
|
|
3273
3304
|
t <= 0 ? (_.delete(e), r.classList.remove(e)) : _.set(e, t);
|
|
3274
3305
|
};
|
|
3275
3306
|
}, [r, e]), r;
|
|
3276
3307
|
}
|
|
3277
|
-
function
|
|
3308
|
+
function qe(e) {
|
|
3278
3309
|
return /* @__PURE__ */ S(T, { ...e, children: /* @__PURE__ */ S("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }) });
|
|
3279
3310
|
}
|
|
3280
|
-
function
|
|
3311
|
+
function Xe(e) {
|
|
3281
3312
|
return /* @__PURE__ */ S(T, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ S(
|
|
3282
3313
|
"path",
|
|
3283
3314
|
{
|
|
@@ -3286,85 +3317,85 @@ function qe(e) {
|
|
|
3286
3317
|
}
|
|
3287
3318
|
) });
|
|
3288
3319
|
}
|
|
3289
|
-
function
|
|
3320
|
+
function Ye(e) {
|
|
3290
3321
|
return /* @__PURE__ */ S(T, { viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ S("path", { d: "M3 5h8v2H3V5zm0 6h8v2H3v-2zm0 6h8v2H3v-2zm12-12h6v6h-6V5zm1 1v4h4V6h-4zm-1 7h6v6h-6v-6zm1 1v4h4v-4h-4z" }) });
|
|
3291
3322
|
}
|
|
3292
|
-
function
|
|
3323
|
+
function Ze(e) {
|
|
3293
3324
|
return /* @__PURE__ */ S(T, { viewBox: "0 0 1024 1024", ...e, children: /* @__PURE__ */ S("path", { d: "M31.997 1023.957a31.699 31.699 0 0 1-22.611-9.386C3.328 1008.556 0 1000.493 0 991.96s3.328-16.596 9.386-22.611L328.25 650.484l-152.52-152.52a95.907 95.907 0 0 1-25.087-92.152 95.31 95.31 0 0 1 44.327-58.62l.896-.512a353.464 353.464 0 0 1 176.156-47.398c20.137 0 40.36 1.749 60.283 5.205L597.71 44.54A95.224 95.224 0 0 1 678.685.085c25.64 0 49.745 9.983 67.877 28.073l249.195 249.195a95.224 95.224 0 0 1 25.897 88.74 95.139 95.139 0 0 1-42.152 60.154L719.513 591.695a352.227 352.227 0 0 1-42.663 237.292A95.395 95.395 0 0 1 594 876.514a95.523 95.523 0 0 1-67.963-28.2L373.43 695.706 54.61 1014.614a31.912 31.912 0 0 1-22.612 9.343zm340.025-660.68c-50.64 0-100.685 13.566-144.798 39.207a31.57 31.57 0 0 0-14.676 19.497 31.699 31.699 0 0 0 8.362 30.675L571.344 803.09c6.059 6.059 14.122 9.386 22.697 9.386a31.699 31.699 0 0 0 27.56-15.785 287.421 287.421 0 0 0 31.06-212.676 31.997 31.997 0 0 1 13.907-34.471l278.59-177.266a31.57 31.57 0 0 0 14.037-20.051 31.699 31.699 0 0 0-8.618-29.566l-249.28-249.28a31.912 31.912 0 0 0-49.618 5.418l-177.308 278.59a31.827 31.827 0 0 1-34.472 13.908 293.778 293.778 0 0 0-67.877-8.02z" }) });
|
|
3294
3325
|
}
|
|
3295
3326
|
var oe;
|
|
3296
3327
|
((e) => {
|
|
3297
|
-
function r(
|
|
3298
|
-
return
|
|
3328
|
+
function r(l) {
|
|
3329
|
+
return l.charAt(0).toUpperCase() + l.slice(1);
|
|
3299
3330
|
}
|
|
3300
3331
|
e.capitalize = r;
|
|
3301
3332
|
})(oe || (oe = {}));
|
|
3302
|
-
const
|
|
3303
|
-
function
|
|
3333
|
+
const Qe = oe;
|
|
3334
|
+
function Je(e) {
|
|
3304
3335
|
return /* @__PURE__ */ S(T, { viewBox: "0 0 488.4 488.4", ...e, children: /* @__PURE__ */ S("path", { d: "M0 203.25c0 112.1 91.2 203.2 203.2 203.2 51.6 0 98.8-19.4 134.7-51.2l129.5 129.5c2.4 2.4 5.5 3.6 8.7 3.6s6.3-1.2 8.7-3.6c4.8-4.8 4.8-12.5 0-17.3l-129.6-129.5c31.8-35.9 51.2-83 51.2-134.7C406.4 91.15 315.2.05 203.2.05S0 91.15 0 203.25zm381.9 0c0 98.5-80.2 178.7-178.7 178.7s-178.7-80.2-178.7-178.7 80.2-178.7 178.7-178.7 178.7 80.1 178.7 178.7z" }) });
|
|
3305
3336
|
}
|
|
3306
3337
|
var ae;
|
|
3307
3338
|
((e) => {
|
|
3308
|
-
function r(
|
|
3309
|
-
const t = Array.from(
|
|
3310
|
-
(n,
|
|
3311
|
-
const c =
|
|
3312
|
-
return c && (n[c] || (n[c] = []), n[c].push(
|
|
3339
|
+
function r(o) {
|
|
3340
|
+
const t = Array.from(o.elements).reduce(
|
|
3341
|
+
(n, s) => {
|
|
3342
|
+
const c = s.name;
|
|
3343
|
+
return c && (n[c] || (n[c] = []), n[c].push(s)), n;
|
|
3313
3344
|
},
|
|
3314
3345
|
{}
|
|
3315
3346
|
);
|
|
3316
|
-
return Object.entries(t).reduce((n, [
|
|
3347
|
+
return Object.entries(t).reduce((n, [s, c]) => {
|
|
3317
3348
|
if (c.length === 1) {
|
|
3318
|
-
const
|
|
3319
|
-
|
|
3349
|
+
const u = c[0];
|
|
3350
|
+
l(n, s, u.type === "checkbox" || u.type === "radio" ? u.checked : u.value);
|
|
3320
3351
|
} else {
|
|
3321
|
-
const
|
|
3322
|
-
|
|
3352
|
+
const u = c.reduce((m, f) => (f.type === "checkbox" || f.type === "radio" ? f.checked && m.push(f.value) : m.push(f.value), m), []);
|
|
3353
|
+
l(n, s, u);
|
|
3323
3354
|
}
|
|
3324
3355
|
return n;
|
|
3325
3356
|
}, {});
|
|
3326
3357
|
}
|
|
3327
3358
|
e.getFormEntries = r;
|
|
3328
|
-
function
|
|
3359
|
+
function l(o, t, n) {
|
|
3329
3360
|
if (t.includes(".")) {
|
|
3330
|
-
const
|
|
3331
|
-
let c =
|
|
3332
|
-
|
|
3333
|
-
if (
|
|
3334
|
-
const f =
|
|
3361
|
+
const s = t.split(".");
|
|
3362
|
+
let c = o;
|
|
3363
|
+
s.forEach((u, m) => {
|
|
3364
|
+
if (s.length > m + 1) {
|
|
3365
|
+
const f = u.match(/^(.+)\[(\d)\]$/);
|
|
3335
3366
|
if (f) {
|
|
3336
3367
|
const [, y, z] = f;
|
|
3337
3368
|
c[y] = c[y] || [], c[y][z] = c[y][z] || {}, c = c[y][z];
|
|
3338
3369
|
} else
|
|
3339
|
-
c[
|
|
3370
|
+
c[u] = c[u] || {}, c = c[u];
|
|
3340
3371
|
} else
|
|
3341
|
-
c[
|
|
3372
|
+
c[u] = n;
|
|
3342
3373
|
});
|
|
3343
3374
|
} else
|
|
3344
|
-
|
|
3375
|
+
o[t] = n;
|
|
3345
3376
|
}
|
|
3346
3377
|
})(ae || (ae = {}));
|
|
3347
|
-
const
|
|
3378
|
+
const er = ae;
|
|
3348
3379
|
export {
|
|
3349
3380
|
ce as B,
|
|
3350
|
-
|
|
3381
|
+
Xe as D,
|
|
3351
3382
|
Ue as E,
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3383
|
+
We as F,
|
|
3384
|
+
Ye as G,
|
|
3385
|
+
k as O,
|
|
3386
|
+
Ze as P,
|
|
3387
|
+
qe as S,
|
|
3388
|
+
ze as T,
|
|
3358
3389
|
i as V,
|
|
3359
|
-
|
|
3360
|
-
|
|
3390
|
+
Se as a,
|
|
3391
|
+
Ge as b,
|
|
3361
3392
|
fe as c,
|
|
3362
|
-
|
|
3363
|
-
|
|
3393
|
+
Je as d,
|
|
3394
|
+
er as e,
|
|
3364
3395
|
Pe as f,
|
|
3365
|
-
|
|
3366
|
-
|
|
3396
|
+
Qe as g,
|
|
3397
|
+
Ke as h,
|
|
3367
3398
|
ue as i,
|
|
3368
|
-
|
|
3369
|
-
|
|
3399
|
+
De as m,
|
|
3400
|
+
Me as u
|
|
3370
3401
|
};
|