@cronocode/react-box 3.0.2 → 3.0.4

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/core.mjs CHANGED
@@ -1,76 +1,76 @@
1
- import { useMemo as J, useLayoutEffect as ue, useEffect as fe } from "react";
2
- function ce(...e) {
3
- return e.reduce((t, a) => a ? typeof a == "string" ? (t.push(a), t) : Array.isArray(a) ? (t.push(...ce(...a)), t) : (Object.entries(a).forEach(([u, d]) => {
4
- d && t.push(u);
1
+ import { useMemo as Q, useLayoutEffect as fe, useEffect as se, useState as de, useRef as me } from "react";
2
+ function ve(...e) {
3
+ return e.reduce((t, a) => a ? typeof a == "string" ? (t.push(a), t) : Array.isArray(a) ? (t.push(...ve(...a)), t) : (Object.entries(a).forEach(([o, c]) => {
4
+ c && t.push(o);
5
5
  }), t) : t, []);
6
6
  }
7
- var n;
7
+ var u;
8
8
  ((e) => {
9
9
  ((t) => {
10
- function a(d, l) {
11
- return `${d}${l.replace("/", "-")}`;
10
+ function a(c, s) {
11
+ return `${c}${s.replace("/", "-")}`;
12
12
  }
13
13
  t.fraction = a;
14
- function u(d) {
15
- return [`${d} path`, `${d} circle`, `${d} rect`, `${d} line`];
14
+ function o(c) {
15
+ return [`${c} path`, `${c} circle`, `${c} rect`, `${c} line`];
16
16
  }
17
- t.svg = u;
17
+ t.svg = o;
18
18
  })(e.ClassName || (e.ClassName = {})), ((t) => {
19
- function a(y) {
20
- return `${y / 4}rem`;
19
+ function a(b) {
20
+ return `${b / 4}rem`;
21
21
  }
22
22
  t.rem = a;
23
- function u(y) {
24
- return `${y}px`;
23
+ function o(b) {
24
+ return `${b}px`;
25
25
  }
26
- t.px = u;
27
- function d(y, o) {
28
- const [c, f] = o.split("/");
29
- return `${+c / +f * 100}%`;
26
+ t.px = o;
27
+ function c(b, n) {
28
+ const [m, d] = n.split("/");
29
+ return `${+m / +d * 100}%`;
30
30
  }
31
- t.fraction = d;
32
- function l(y, o) {
33
- switch (o) {
31
+ t.fraction = c;
32
+ function s(b, n) {
33
+ switch (n) {
34
34
  case "fit":
35
35
  return "100%";
36
36
  case "fit-screen":
37
- return y.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
37
+ return b.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
38
38
  default:
39
- return o;
39
+ return n;
40
40
  }
41
41
  }
42
- t.widthHeight = l;
43
- function s(y) {
44
- return (o, c) => `var(--${y}${c});`;
42
+ t.widthHeight = s;
43
+ function l(b) {
44
+ return (n, m) => `var(--${b}${m});`;
45
45
  }
46
- t.variables = s;
47
- function i(y) {
48
- return (o, c) => `var(--${y}${c});`;
46
+ t.variables = l;
47
+ function i(b) {
48
+ return (n, m) => `var(--${b}${m});`;
49
49
  }
50
50
  t.svgVariables = i;
51
- function m(y, o) {
52
- return `repeat(${o},minmax(0,1fr))`;
51
+ function f(b, n) {
52
+ return `repeat(${n},minmax(0,1fr))`;
53
53
  }
54
- t.gridColumns = m;
55
- function b(y, o) {
56
- return o === "full-row" ? "1/-1" : `span ${o}/span ${o}`;
54
+ t.gridColumns = f;
55
+ function y(b, n) {
56
+ return n === "full-row" ? "1/-1" : `span ${n}/span ${n}`;
57
57
  }
58
- t.gridColumn = b;
59
- function r(y, o) {
60
- return `${o}ms`;
58
+ t.gridColumn = y;
59
+ function r(b, n) {
60
+ return `${n}ms`;
61
61
  }
62
62
  t.ms = r;
63
- function v(y, o) {
64
- return `${o}deg`;
63
+ function v(b, n) {
64
+ return `${n}deg`;
65
65
  }
66
66
  t.rotate = v;
67
- function h(y, o) {
68
- return o === "xAxis" ? "-1 1" : "1 -1";
67
+ function h(b, n) {
68
+ return n === "xAxis" ? "-1 1" : "1 -1";
69
69
  }
70
70
  t.flip = h;
71
71
  })(e.Value || (e.Value = {}));
72
- })(n || (n = {}));
73
- var W;
72
+ })(u || (u = {}));
73
+ var q;
74
74
  ((e) => {
75
75
  e.colors = {
76
76
  inherit: "inherit",
@@ -323,20 +323,20 @@ var W;
323
323
  };
324
324
  const t = {};
325
325
  let a = {};
326
- function u(s) {
327
- return s in a ? t[s] = a[s] : s in e.colors && (t[s] = e.colors[s]), `var(--${s})`;
326
+ function o(l) {
327
+ return l in a ? t[l] = a[l] : l in e.colors && (t[l] = e.colors[l]), `var(--${l})`;
328
328
  }
329
- e.useVariable = u;
330
- function d() {
331
- return Object.entries(t).map(([s, i]) => `--${s}: ${i};`).join("");
329
+ e.getVariableValue = o;
330
+ function c() {
331
+ return Object.entries(t).map(([l, i]) => `--${l}: ${i};`).join("");
332
332
  }
333
- e.generateVariables = d;
334
- function l(s) {
335
- a = s;
333
+ e.generateVariables = c;
334
+ function s(l) {
335
+ a = l;
336
336
  }
337
- e.setUserVariables = l;
338
- })(W || (W = {}));
339
- const E = W, j = {
337
+ e.setUserVariables = s;
338
+ })(q || (q = {}));
339
+ const E = q, C = {
340
340
  /** The appearance CSS property is used to display UI elements with platform-specific styling, based on the operating system's theme. */
341
341
  appearance: [
342
342
  {
@@ -348,7 +348,7 @@ const E = W, j = {
348
348
  {
349
349
  values: 0,
350
350
  styleName: "border-width",
351
- valueFormat: n.Value.px
351
+ valueFormat: u.Value.px
352
352
  }
353
353
  ],
354
354
  /** The border-width shorthand CSS property sets the width of an element's left and right border. */
@@ -356,7 +356,7 @@ const E = W, j = {
356
356
  {
357
357
  values: 0,
358
358
  styleName: "border-inline-width",
359
- valueFormat: n.Value.px
359
+ valueFormat: u.Value.px
360
360
  }
361
361
  ],
362
362
  /** The border-width shorthand CSS property sets the width of an element's top and bottom border. */
@@ -364,7 +364,7 @@ const E = W, j = {
364
364
  {
365
365
  values: 0,
366
366
  styleName: "border-block-width",
367
- valueFormat: n.Value.px
367
+ valueFormat: u.Value.px
368
368
  }
369
369
  ],
370
370
  /** The border-top-width CSS property sets the width of the top border of an element. */
@@ -372,7 +372,7 @@ const E = W, j = {
372
372
  {
373
373
  values: 0,
374
374
  styleName: "border-top-width",
375
- valueFormat: n.Value.px
375
+ valueFormat: u.Value.px
376
376
  }
377
377
  ],
378
378
  /** The border-right-width CSS property sets the width of the right border of an element. */
@@ -380,7 +380,7 @@ const E = W, j = {
380
380
  {
381
381
  values: 0,
382
382
  styleName: "border-right-width",
383
- valueFormat: n.Value.px
383
+ valueFormat: u.Value.px
384
384
  }
385
385
  ],
386
386
  /** The border-bottom-width CSS property sets the width of the bottom border of an element. */
@@ -388,7 +388,7 @@ const E = W, j = {
388
388
  {
389
389
  values: 0,
390
390
  styleName: "border-bottom-width",
391
- valueFormat: n.Value.px
391
+ valueFormat: u.Value.px
392
392
  }
393
393
  ],
394
394
  /** The border-left-width CSS property sets the width of the left border of an element. */
@@ -396,7 +396,7 @@ const E = W, j = {
396
396
  {
397
397
  values: 0,
398
398
  styleName: "border-left-width",
399
- valueFormat: n.Value.px
399
+ valueFormat: u.Value.px
400
400
  }
401
401
  ],
402
402
  /** The border-style shorthand CSS property sets the line style for all four sides of an element's border. */
@@ -411,7 +411,7 @@ const E = W, j = {
411
411
  {
412
412
  styleName: "border-radius",
413
413
  values: 0,
414
- valueFormat: n.Value.rem
414
+ valueFormat: u.Value.rem
415
415
  }
416
416
  ],
417
417
  /** 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. */
@@ -419,7 +419,7 @@ const E = W, j = {
419
419
  {
420
420
  values: 0,
421
421
  styleName: ["border-top-left-radius", "border-top-right-radius"],
422
- valueFormat: n.Value.rem
422
+ valueFormat: u.Value.rem
423
423
  }
424
424
  ],
425
425
  /** 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. */
@@ -427,7 +427,7 @@ const E = W, j = {
427
427
  {
428
428
  values: 0,
429
429
  styleName: ["border-top-right-radius", "border-bottom-right-radius"],
430
- valueFormat: n.Value.rem
430
+ valueFormat: u.Value.rem
431
431
  }
432
432
  ],
433
433
  /** 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. */
@@ -435,7 +435,7 @@ const E = W, j = {
435
435
  {
436
436
  values: 0,
437
437
  styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
438
- valueFormat: n.Value.rem
438
+ valueFormat: u.Value.rem
439
439
  }
440
440
  ],
441
441
  /** 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. */
@@ -443,7 +443,7 @@ const E = W, j = {
443
443
  {
444
444
  values: 0,
445
445
  styleName: ["border-top-left-radius", "border-bottom-left-radius"],
446
- valueFormat: n.Value.rem
446
+ valueFormat: u.Value.rem
447
447
  }
448
448
  ],
449
449
  /** 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. */
@@ -451,7 +451,7 @@ const E = W, j = {
451
451
  {
452
452
  values: 0,
453
453
  styleName: "border-top-left-radius",
454
- valueFormat: n.Value.rem
454
+ valueFormat: u.Value.rem
455
455
  }
456
456
  ],
457
457
  /** 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. */
@@ -459,7 +459,7 @@ const E = W, j = {
459
459
  {
460
460
  values: 0,
461
461
  styleName: "border-top-right-radius",
462
- valueFormat: n.Value.rem
462
+ valueFormat: u.Value.rem
463
463
  }
464
464
  ],
465
465
  /** 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. */
@@ -467,7 +467,7 @@ const E = W, j = {
467
467
  {
468
468
  values: 0,
469
469
  styleName: "border-bottom-right-radius",
470
- valueFormat: n.Value.rem
470
+ valueFormat: u.Value.rem
471
471
  }
472
472
  ],
473
473
  /** 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. */
@@ -475,7 +475,7 @@ const E = W, j = {
475
475
  {
476
476
  values: 0,
477
477
  styleName: "border-bottom-left-radius",
478
- valueFormat: n.Value.rem
478
+ valueFormat: u.Value.rem
479
479
  }
480
480
  ],
481
481
  /** 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. */
@@ -488,35 +488,35 @@ const E = W, j = {
488
488
  top: [
489
489
  {
490
490
  values: 0,
491
- valueFormat: n.Value.rem
491
+ valueFormat: u.Value.rem
492
492
  }
493
493
  ],
494
494
  /** The right CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
495
495
  right: [
496
496
  {
497
497
  values: 0,
498
- valueFormat: n.Value.rem
498
+ valueFormat: u.Value.rem
499
499
  }
500
500
  ],
501
501
  /** The bottom CSS property participates in setting the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
502
502
  bottom: [
503
503
  {
504
504
  values: 0,
505
- valueFormat: n.Value.rem
505
+ valueFormat: u.Value.rem
506
506
  }
507
507
  ],
508
508
  /** The left CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
509
509
  left: [
510
510
  {
511
511
  values: 0,
512
- valueFormat: n.Value.rem
512
+ valueFormat: u.Value.rem
513
513
  }
514
514
  ],
515
515
  /** The inset CSS property is a shorthand that corresponds to the top, right, bottom, and/or left properties. It has the same multi-value syntax of the margin shorthand. */
516
516
  inset: [
517
517
  {
518
518
  values: 0,
519
- valueFormat: n.Value.rem
519
+ valueFormat: u.Value.rem
520
520
  }
521
521
  ],
522
522
  /** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
@@ -689,7 +689,7 @@ const E = W, j = {
689
689
  {
690
690
  styleName: "font-size",
691
691
  values: 0,
692
- valueFormat: n.Value.px
692
+ valueFormat: u.Value.px
693
693
  },
694
694
  {
695
695
  styleName: "font-size",
@@ -714,7 +714,7 @@ const E = W, j = {
714
714
  gap: [
715
715
  {
716
716
  values: 0,
717
- valueFormat: n.Value.rem
717
+ valueFormat: u.Value.rem
718
718
  }
719
719
  ],
720
720
  /** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
@@ -722,7 +722,7 @@ const E = W, j = {
722
722
  {
723
723
  styleName: "row-gap",
724
724
  values: 0,
725
- valueFormat: n.Value.rem
725
+ valueFormat: u.Value.rem
726
726
  }
727
727
  ],
728
728
  /** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
@@ -730,7 +730,7 @@ const E = W, j = {
730
730
  {
731
731
  styleName: "column-gap",
732
732
  values: 0,
733
- valueFormat: n.Value.rem
733
+ valueFormat: u.Value.rem
734
734
  }
735
735
  ],
736
736
  /** The order CSS property sets the order to lay out an item in a flex or grid container. Items in a container are sorted by ascending order value and then by their source code order. Items not given an explicit order value are assigned the default value of 0. */
@@ -1055,7 +1055,7 @@ const E = W, j = {
1055
1055
  {
1056
1056
  styleName: "letter-spacing",
1057
1057
  values: 0,
1058
- valueFormat: n.Value.px
1058
+ valueFormat: u.Value.px
1059
1059
  }
1060
1060
  ],
1061
1061
  /** 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. */
@@ -1063,7 +1063,7 @@ const E = W, j = {
1063
1063
  {
1064
1064
  styleName: "line-height",
1065
1065
  values: 0,
1066
- valueFormat: n.Value.px
1066
+ valueFormat: u.Value.px
1067
1067
  },
1068
1068
  {
1069
1069
  styleName: "line-height",
@@ -1083,7 +1083,7 @@ const E = W, j = {
1083
1083
  {
1084
1084
  values: 0,
1085
1085
  styleName: "margin",
1086
- valueFormat: n.Value.rem
1086
+ valueFormat: u.Value.rem
1087
1087
  },
1088
1088
  {
1089
1089
  values: ["auto"],
@@ -1095,7 +1095,7 @@ const E = W, j = {
1095
1095
  {
1096
1096
  values: 0,
1097
1097
  styleName: "margin-inline",
1098
- valueFormat: n.Value.rem
1098
+ valueFormat: u.Value.rem
1099
1099
  },
1100
1100
  {
1101
1101
  values: ["auto"],
@@ -1107,7 +1107,7 @@ const E = W, j = {
1107
1107
  {
1108
1108
  values: 0,
1109
1109
  styleName: "margin-block",
1110
- valueFormat: n.Value.rem
1110
+ valueFormat: u.Value.rem
1111
1111
  },
1112
1112
  {
1113
1113
  values: ["auto"],
@@ -1119,7 +1119,7 @@ const E = W, j = {
1119
1119
  {
1120
1120
  values: 0,
1121
1121
  styleName: "margin-top",
1122
- valueFormat: n.Value.rem
1122
+ valueFormat: u.Value.rem
1123
1123
  },
1124
1124
  {
1125
1125
  values: ["auto"],
@@ -1131,7 +1131,7 @@ const E = W, j = {
1131
1131
  {
1132
1132
  values: 0,
1133
1133
  styleName: "margin-right",
1134
- valueFormat: n.Value.rem
1134
+ valueFormat: u.Value.rem
1135
1135
  },
1136
1136
  {
1137
1137
  values: ["auto"],
@@ -1143,7 +1143,7 @@ const E = W, j = {
1143
1143
  {
1144
1144
  values: 0,
1145
1145
  styleName: "margin-bottom",
1146
- valueFormat: n.Value.rem
1146
+ valueFormat: u.Value.rem
1147
1147
  },
1148
1148
  {
1149
1149
  values: ["auto"],
@@ -1155,7 +1155,7 @@ const E = W, j = {
1155
1155
  {
1156
1156
  values: 0,
1157
1157
  styleName: "margin-left",
1158
- valueFormat: n.Value.rem
1158
+ valueFormat: u.Value.rem
1159
1159
  },
1160
1160
  {
1161
1161
  values: ["auto"],
@@ -1167,7 +1167,7 @@ const E = W, j = {
1167
1167
  {
1168
1168
  values: 0,
1169
1169
  styleName: "padding",
1170
- valueFormat: n.Value.rem
1170
+ valueFormat: u.Value.rem
1171
1171
  }
1172
1172
  ],
1173
1173
  /** The padding-inline CSS shorthand property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
@@ -1175,7 +1175,7 @@ const E = W, j = {
1175
1175
  {
1176
1176
  values: 0,
1177
1177
  styleName: "padding-inline",
1178
- valueFormat: n.Value.rem
1178
+ valueFormat: u.Value.rem
1179
1179
  }
1180
1180
  ],
1181
1181
  /** The padding-block CSS shorthand property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
@@ -1183,7 +1183,7 @@ const E = W, j = {
1183
1183
  {
1184
1184
  values: 0,
1185
1185
  styleName: "padding-block",
1186
- valueFormat: n.Value.rem
1186
+ valueFormat: u.Value.rem
1187
1187
  }
1188
1188
  ],
1189
1189
  /** The padding-top CSS property sets the height of the padding area on the top of an element. */
@@ -1191,7 +1191,7 @@ const E = W, j = {
1191
1191
  {
1192
1192
  values: 0,
1193
1193
  styleName: "padding-top",
1194
- valueFormat: n.Value.rem
1194
+ valueFormat: u.Value.rem
1195
1195
  }
1196
1196
  ],
1197
1197
  /** The padding-right CSS property sets the width of the padding area on the right of an element. */
@@ -1199,7 +1199,7 @@ const E = W, j = {
1199
1199
  {
1200
1200
  values: 0,
1201
1201
  styleName: "padding-right",
1202
- valueFormat: n.Value.rem
1202
+ valueFormat: u.Value.rem
1203
1203
  }
1204
1204
  ],
1205
1205
  /** The padding-bottom CSS property sets the height of the padding area on the bottom of an element. */
@@ -1207,7 +1207,7 @@ const E = W, j = {
1207
1207
  {
1208
1208
  values: 0,
1209
1209
  styleName: "padding-bottom",
1210
- valueFormat: n.Value.rem
1210
+ valueFormat: u.Value.rem
1211
1211
  }
1212
1212
  ],
1213
1213
  /** The padding-left CSS property sets the width of the padding area to the left of an element. */
@@ -1215,7 +1215,7 @@ const E = W, j = {
1215
1215
  {
1216
1216
  values: 0,
1217
1217
  styleName: "padding-left",
1218
- valueFormat: n.Value.rem
1218
+ valueFormat: u.Value.rem
1219
1219
  }
1220
1220
  ],
1221
1221
  /** The object-fit CSS property sets how the content of a replaced element, such as an <img> or <video>, should be resized to fit its container. */
@@ -1236,7 +1236,7 @@ const E = W, j = {
1236
1236
  {
1237
1237
  styleName: "outline-width",
1238
1238
  values: 0,
1239
- valueFormat: n.Value.px
1239
+ valueFormat: u.Value.px
1240
1240
  }
1241
1241
  ],
1242
1242
  /** 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. */
@@ -1251,7 +1251,7 @@ const E = W, j = {
1251
1251
  {
1252
1252
  styleName: "outline-offset",
1253
1253
  values: 0,
1254
- valueFormat: n.Value.px
1254
+ valueFormat: u.Value.px
1255
1255
  }
1256
1256
  ],
1257
1257
  /** 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. */
@@ -1484,7 +1484,7 @@ const E = W, j = {
1484
1484
  styleName: "outline-color"
1485
1485
  }
1486
1486
  ]
1487
- }, se = {
1487
+ }, oe = {
1488
1488
  hover: ":hover",
1489
1489
  focus: ":focus-within",
1490
1490
  hasFocus: ":has(:focus)",
@@ -1497,63 +1497,63 @@ const E = W, j = {
1497
1497
  hasChecked: ":has(:checked)",
1498
1498
  hasRequired: ":has(:required)",
1499
1499
  hasDisabled: ":has([disabled])"
1500
- }, D = {
1500
+ }, L = {
1501
1501
  indeterminate: ":indeterminate",
1502
1502
  checked: ":checked",
1503
1503
  required: ":required",
1504
1504
  disabled: "[disabled]"
1505
- }, Q = { ...se, ...D }, le = Object.entries(Q).reduce(
1505
+ }, Z = { ...oe, ...L }, ie = Object.entries(Z).reduce(
1506
1506
  (e, [t], a) => (e[t] = Math.pow(2, a), e),
1507
1507
  {}
1508
- ), K = Object.entries(Q).reduce(
1508
+ ), D = Object.entries(Z).reduce(
1509
1509
  (e, [t]) => {
1510
- const a = le[t];
1511
- return Object.entries(e).forEach(([u, d]) => {
1512
- e[+u + a] = [...d, t];
1510
+ const a = ie[t];
1511
+ return Object.entries(e).forEach(([o, c]) => {
1512
+ e[+o + a] = [...c, t];
1513
1513
  }), e;
1514
1514
  },
1515
1515
  { 0: [] }
1516
- ), L = {
1516
+ ), K = {
1517
1517
  hoverGroup: "hover",
1518
1518
  focusGroup: "focus",
1519
1519
  activeGroup: "active",
1520
1520
  disabledGroup: "disabled"
1521
- }, G = {
1521
+ }, H = {
1522
1522
  sm: 640,
1523
1523
  md: 768,
1524
1524
  lg: 1024,
1525
1525
  xl: 1280,
1526
1526
  xxl: 1536
1527
1527
  };
1528
- var k;
1528
+ var W;
1529
1529
  ((e) => {
1530
- function t(l, s, i) {
1531
- const m = { ...l }, b = m.props || {};
1532
- return s.forEach((r) => {
1533
- r in m && (b[r] = m[r], delete m[r]);
1530
+ function t(s, l, i) {
1531
+ const f = { ...s }, y = f.props || {};
1532
+ return l.forEach((r) => {
1533
+ r in f && (y[r] = f[r], delete f[r]);
1534
1534
  }), i && Object.entries(i).forEach(([r, v]) => {
1535
- b[r] = v;
1536
- }), m.props = b, m;
1535
+ y[r] = v;
1536
+ }), f.props = y, f;
1537
1537
  }
1538
1538
  e.buildProps = t;
1539
- function a(l) {
1540
- return !!l && typeof l == "object";
1539
+ function a(s) {
1540
+ return !!s && typeof s == "object";
1541
1541
  }
1542
1542
  e.isObject = a;
1543
- function u(...l) {
1544
- return l.reduce((s, i) => (Object.keys(i).forEach((m) => {
1545
- const b = s[m], r = i[m];
1546
- m in D && typeof r == "boolean" || (m in D && Array.isArray(r) ? s[m] = u(b, r[1] ?? {}) : Array.isArray(b) && Array.isArray(r) ? s[m] = b.concat(...r) : a(b) && a(r) ? s[m] = u(b, r) : s[m] = r);
1547
- }), s), {});
1543
+ function o(...s) {
1544
+ return s.reduce((l, i) => (Object.keys(i).forEach((f) => {
1545
+ const y = l[f], r = i[f];
1546
+ f in L && typeof r == "boolean" || (f in L && Array.isArray(r) ? l[f] = o(y, r[1] ?? {}) : Array.isArray(y) && Array.isArray(r) ? l[f] = y.concat(...r) : a(y) && a(r) ? l[f] = o(y, r) : l[f] = r);
1547
+ }), l), {});
1548
1548
  }
1549
- e.mergeDeep = u;
1550
- function d(l, s) {
1551
- return l in s;
1549
+ e.mergeDeep = o;
1550
+ function c(s, l) {
1551
+ return s in l;
1552
1552
  }
1553
- e.isKeyOf = d;
1554
- })(k || (k = {}));
1555
- const $ = k;
1556
- class de {
1553
+ e.isKeyOf = c;
1554
+ })(W || (W = {}));
1555
+ const $ = W;
1556
+ class be {
1557
1557
  constructor() {
1558
1558
  this._index = 0, this._cache = {};
1559
1559
  }
@@ -1561,166 +1561,189 @@ class de {
1561
1561
  return this._cache[t] || (this._cache[t] = this.getByIndex(this._index++)), this._cache[t];
1562
1562
  }
1563
1563
  getByIndex(t) {
1564
- const { first: a, next: u } = me, d = t - a.length;
1565
- if (d < 0)
1564
+ const { first: a, next: o } = ye, c = t - a.length;
1565
+ if (c < 0)
1566
1566
  return a[t];
1567
- const l = Math.floor(d / u.length), s = d - l * u.length;
1568
- return this.getByIndex(l) + u[s];
1567
+ const s = Math.floor(c / o.length), l = c - s * o.length;
1568
+ return this.getByIndex(s) + o[l];
1569
1569
  }
1570
1570
  }
1571
- const me = {
1571
+ const ye = {
1572
1572
  first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
1573
1573
  next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
1574
1574
  };
1575
- var H;
1575
+ var G;
1576
1576
  ((e) => {
1577
1577
  e.components = {};
1578
- })(H || (H = {}));
1579
- function ve(e) {
1580
- const { clean: t, theme: a, component: u } = e;
1581
- return J(() => {
1582
- var s;
1578
+ })(G || (G = {}));
1579
+ function he(e) {
1580
+ const { clean: t, theme: a, component: o } = e;
1581
+ return Q(() => {
1582
+ var l;
1583
1583
  if (t) return;
1584
- const d = u == null ? void 0 : u.split(".");
1585
- if (!d) return;
1586
- const l = d.reduce((i, m, b) => {
1584
+ const c = o == null ? void 0 : o.split(".");
1585
+ if (!c) return;
1586
+ const s = c.reduce((i, f, y) => {
1587
1587
  var r, v;
1588
- return b === 0 ? (r = H.components) == null ? void 0 : r[m] : (v = i == null ? void 0 : i.children) == null ? void 0 : v[m];
1588
+ return y === 0 ? (r = G.components) == null ? void 0 : r[f] : (v = i == null ? void 0 : i.children) == null ? void 0 : v[f];
1589
1589
  }, void 0);
1590
- if (l)
1591
- return a ? $.mergeDeep(l.styles, ((s = l.themes) == null ? void 0 : s[a]) ?? {}) : l.styles;
1592
- }, [u, t, a]);
1590
+ if (s)
1591
+ return a ? $.mergeDeep(s.styles, ((l = s.themes) == null ? void 0 : l[a]) ?? {}) : s.styles;
1592
+ }, [o, t, a]);
1593
1593
  }
1594
- const ye = new de(), be = typeof window < "u" && typeof window.document < "u";
1595
- var re;
1596
- const oe = typeof process == "object" && ((re = process.env) == null ? void 0 : re.NODE_ENV) === "test", he = be && !oe ? ue : fe, ne = "_b", S = "_s";
1597
- function ge(e, t) {
1598
- he(A.flush, [e]);
1599
- const a = ve(e);
1600
- return J(() => {
1601
- var l;
1602
- const u = [t ? S : ne];
1603
- (l = e.props) == null || l.name;
1604
- const d = a ? $.mergeDeep(a, e) : e;
1605
- return A.addClassNames(d, u, []), u;
1594
+ const ge = new be(), pe = typeof window < "u" && typeof window.document < "u";
1595
+ var le;
1596
+ const ne = typeof process == "object" && ((le = process.env) == null ? void 0 : le.NODE_ENV) === "test", xe = pe && !ne ? fe : se, ue = "_b", S = "_s";
1597
+ function Ne(e, t) {
1598
+ xe(A.flush, [e]);
1599
+ const a = he(e);
1600
+ return Q(() => {
1601
+ var s;
1602
+ const o = [t ? S : ue];
1603
+ (s = e.props) == null || s.name;
1604
+ const c = a ? $.mergeDeep(a, e) : e;
1605
+ return A.addClassNames(c, o, []), o;
1606
1606
  }, [e, t, a]);
1607
1607
  }
1608
1608
  var A;
1609
1609
  ((e) => {
1610
1610
  let t = !0, a = {};
1611
- function u(r, v, h, y, o) {
1612
- Object.entries(r).forEach(([c, f]) => {
1613
- if ($.isKeyOf(c, j))
1614
- s(c, f, v, h, y, o);
1615
- else if ($.isKeyOf(c, se))
1616
- u(f, v, [...h, c], y, o);
1617
- else if ($.isKeyOf(c, D)) {
1618
- if (Array.isArray(f)) {
1619
- const [x, N] = f;
1620
- u(N, v, [...h, c], y, o);
1611
+ function o(r, v, h, b, n) {
1612
+ Object.entries(r).forEach(([m, d]) => {
1613
+ if ($.isKeyOf(m, C))
1614
+ l(m, d, v, h, b, n);
1615
+ else if ($.isKeyOf(m, oe))
1616
+ o(d, v, [...h, m], b, n);
1617
+ else if ($.isKeyOf(m, L)) {
1618
+ if (Array.isArray(d)) {
1619
+ const [x, w] = d;
1620
+ o(w, v, [...h, m], b, n);
1621
1621
  }
1622
- $.isObject(f) && u(f, v, [...h, c], y, o);
1623
- } else $.isKeyOf(c, G) ? u(f, v, h, c, o) : $.isKeyOf(c, L) && (typeof f == "string" ? v.push(`${L[c]}-${f}`) : Object.entries(f).forEach(([x, N]) => {
1624
- u(N, v, [...h, L[c]], y, x);
1622
+ $.isObject(d) && o(d, v, [...h, m], b, n);
1623
+ } else $.isKeyOf(m, H) ? o(d, v, h, m, n) : $.isKeyOf(m, K) && (typeof d == "string" ? v.push(`${K[m]}-${d}`) : Object.entries(d).forEach(([x, w]) => {
1624
+ o(w, v, [...h, K[m]], b, x);
1625
1625
  }));
1626
1626
  });
1627
1627
  }
1628
- e.addClassNames = u;
1629
- function d() {
1628
+ e.addClassNames = o;
1629
+ function c() {
1630
1630
  if (!t) return;
1631
1631
  console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
1632
- const r = Object.entries(j).reduce((c, [f], x) => (c[f] = x, c), {}), v = `:root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;}#crono-box {position: absolute;top: 0;left: 0;height: 0;}
1632
+ const r = Object.entries(C).reduce((m, [d], x) => (m[d] = x, m), {}), v = `:root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;}#crono-box {position: absolute;top: 0;left: 0;height: 0;}
1633
1633
  html{font-size: 16px;font-family: Arial, sans-serif;}
1634
1634
  body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
1635
1635
  a,ul{all: unset;}
1636
- .${ne}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;background-color: initial;transition: all var(--transitionTime);box-sizing: border-box;font-family: inherit;font-size: inherit;}
1636
+ .${ue}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;background-color: initial;transition: all var(--transitionTime);box-sizing: border-box;font-family: inherit;font-size: inherit;}
1637
1637
  .${S}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${S} path,.${S} circle,.${S} rect,.${S} line {transition: all var(--svgTransitionTime);}
1638
1638
  `, h = Object.entries(a);
1639
1639
  h.sort(
1640
- ([c], [f]) => (G[c] ?? 0) - (G[f] ?? 0)
1640
+ ([m], [d]) => (H[m] ?? 0) - (H[d] ?? 0)
1641
1641
  );
1642
- const y = h.reduce(
1643
- (c, [f, x]) => (f !== "normal" && c.push(`@media(min-width: ${G[f]}px){`), Object.entries(x).forEach(([N, U]) => {
1644
- const { __parents: Z, ...ie } = U, P = Object.entries(ie);
1645
- P.sort(([w], [T]) => r[w] - r[T]), P.forEach(([w, T]) => {
1646
- T.forEach((V) => {
1647
- var B, R;
1648
- const p = j[w].find((F) => Array.isArray(F.values) ? F.values.includes(V) : typeof V == typeof F.values);
1649
- if (!p) return;
1650
- const z = i(w, V, +N, f), q = K[+N].map((F) => Q[F]).join(""), g = ((B = p.selector) == null ? void 0 : B.call(p, `.${z}`, q)) ?? `.${z}${q}`, I = Array.isArray(p.styleName) ? p.styleName : [p.styleName ?? w], _ = ((R = p.valueFormat) == null ? void 0 : R.call(p, V, E.useVariable)) ?? V;
1651
- c.push(`${g}{${I.map((F) => `${F}:${_}`).join(";")}}`);
1642
+ const b = h.reduce(
1643
+ (m, [d, x]) => (d !== "normal" && m.push(`@media(min-width: ${H[d]}px){`), Object.entries(x).forEach(([w, k]) => {
1644
+ const { __parents: P, ...ce } = k, ee = Object.entries(ce);
1645
+ ee.sort(([N], [_]) => r[N] - r[_]), ee.forEach(([N, _]) => {
1646
+ _.forEach((V) => {
1647
+ var R, I;
1648
+ const g = C[N].find((F) => Array.isArray(F.values) ? F.values.includes(V) : typeof V == typeof F.values);
1649
+ if (!g) return;
1650
+ const z = i(N, V, +w, d), U = D[+w].map((F) => Z[F]).join(""), p = ((R = g.selector) == null ? void 0 : R.call(g, `.${z}`, U)) ?? `.${z}${U}`, B = Array.isArray(g.styleName) ? g.styleName : [g.styleName ?? N], O = ((I = g.valueFormat) == null ? void 0 : I.call(g, V, E.getVariableValue)) ?? V;
1651
+ m.push(`${p}{${B.map((F) => `${F}:${O}`).join(";")}}`);
1652
1652
  });
1653
- }), Z && Object.entries(Z).forEach(([w, T]) => {
1654
- const V = Object.entries(T);
1655
- V.sort(([O], [p]) => r[O] - r[p]), V.forEach(([O, p]) => {
1656
- p.forEach((z) => {
1657
- var ee, te;
1658
- const g = j[O].find((C) => Array.isArray(C.values) ? C.values.includes(z) : typeof z == typeof C.values);
1659
- if (!g) return;
1660
- const I = i(O, z, +N, f, w), [_] = K[+N], B = ((ee = g.selector) == null ? void 0 : ee.call(g, `.${_}-${w}:${_} .${I}`, "")) ?? `.${_}-${w}:${_} .${I}`, R = Array.isArray(g.styleName) ? g.styleName : [g.styleName ?? O], F = ((te = g.valueFormat) == null ? void 0 : te.call(g, z, E.useVariable)) ?? z;
1661
- c.push(`${B}{${R.map((C) => `${C}:${F}`).join(";")}}`);
1653
+ }), P && Object.entries(P).forEach(([N, _]) => {
1654
+ const V = Object.entries(_);
1655
+ V.sort(([j], [g]) => r[j] - r[g]), V.forEach(([j, g]) => {
1656
+ g.forEach((z) => {
1657
+ var te, ae;
1658
+ const p = C[j].find((T) => Array.isArray(T.values) ? T.values.includes(z) : typeof z == typeof T.values);
1659
+ if (!p) return;
1660
+ const B = i(j, z, +w, d, N), [O] = D[+w], R = ((te = p.selector) == null ? void 0 : te.call(p, `.${O}-${N}:${O} .${B}`, "")) ?? `.${O}-${N}:${O} .${B}`, I = Array.isArray(p.styleName) ? p.styleName : [p.styleName ?? j], F = ((ae = p.valueFormat) == null ? void 0 : ae.call(p, z, E.getVariableValue)) ?? z;
1661
+ m.push(`${R}{${I.map((T) => `${T}:${F}`).join(";")}}`);
1662
1662
  });
1663
1663
  });
1664
1664
  });
1665
- }), f !== "normal" && c.push("}"), c),
1665
+ }), d !== "normal" && m.push("}"), m),
1666
1666
  [v]
1667
1667
  );
1668
- y.unshift(`:root{${E.generateVariables()}}`);
1669
- const o = b();
1670
- o.innerHTML = y.join(""), t = !1;
1668
+ b.unshift(`:root{${E.generateVariables()}}`);
1669
+ const n = y();
1670
+ n.innerHTML = b.join(""), t = !1;
1671
1671
  }
1672
- e.flush = d;
1673
- function l() {
1672
+ e.flush = c;
1673
+ function s() {
1674
1674
  a = {};
1675
1675
  }
1676
- e.clear = l;
1677
- function s(r, v, h, y, o = "normal", c) {
1676
+ e.clear = s;
1677
+ function l(r, v, h, b, n = "normal", m) {
1678
1678
  if (v == null) return;
1679
- const f = y.reduce((N, U) => N + le[U], 0);
1680
- a[o] ? a[o][f] ? a[o][f][r] || (a[o][f][r] = /* @__PURE__ */ new Set()) : a[o][f] = { [r]: /* @__PURE__ */ new Set() } : a[o] = { [f]: { [r]: /* @__PURE__ */ new Set() } }, c ? (a[o][f].__parents ? a[o][f].__parents[c] ? a[o][f].__parents[c][r] || (a[o][f].__parents[c][r] = /* @__PURE__ */ new Set()) : a[o][f].__parents[c] = { [r]: /* @__PURE__ */ new Set() } : a[o][f].__parents = { [c]: { [r]: /* @__PURE__ */ new Set() } }, a[o][f].__parents[c][r].has(v) || (a[o][f].__parents[c][r].add(v), t = !0)) : a[o][f][r].has(v) || (a[o][f][r].add(v), t = !0);
1681
- const x = i(r, v, f, o, c);
1679
+ const d = b.reduce((w, k) => w + ie[k], 0);
1680
+ a[n] ? a[n][d] ? a[n][d][r] || (a[n][d][r] = /* @__PURE__ */ new Set()) : a[n][d] = { [r]: /* @__PURE__ */ new Set() } : a[n] = { [d]: { [r]: /* @__PURE__ */ new Set() } }, m ? (a[n][d].__parents ? a[n][d].__parents[m] ? a[n][d].__parents[m][r] || (a[n][d].__parents[m][r] = /* @__PURE__ */ new Set()) : a[n][d].__parents[m] = { [r]: /* @__PURE__ */ new Set() } : a[n][d].__parents = { [m]: { [r]: /* @__PURE__ */ new Set() } }, a[n][d].__parents[m][r].has(v) || (a[n][d].__parents[m][r].add(v), t = !0)) : a[n][d][r].has(v) || (a[n][d][r].add(v), t = !0);
1681
+ const x = i(r, v, d, n, m);
1682
1682
  h.push(x);
1683
1683
  }
1684
- function i(r, v, h, y, o) {
1685
- const c = K[h], f = `${y === "normal" ? "" : `${y}-`}${c.map((x) => `${x}-`).join("")}${o ? `${o}-` : ""}${r}-${v}`;
1686
- return oe ? f : ye.getIdentity(f);
1684
+ function i(r, v, h, b, n) {
1685
+ const m = D[h], d = `${b === "normal" ? "" : `${b}-`}${m.map((x) => `${x}-`).join("")}${n ? `${n}-` : ""}${r}-${v}`;
1686
+ return ne ? d : ge.getIdentity(d);
1687
1687
  }
1688
- const m = "crono-styles";
1689
- function b() {
1690
- let r = document.getElementById(m);
1691
- return r || (r = document.createElement("style"), r.setAttribute("id", m), r.setAttribute("type", "text/css"), document.head.insertBefore(r, document.head.firstChild)), r;
1688
+ const f = "crono-styles";
1689
+ function y() {
1690
+ let r = document.getElementById(f);
1691
+ return r || (r = document.createElement("style"), r.setAttribute("id", f), r.setAttribute("type", "text/css"), document.head.insertBefore(r, document.head.firstChild)), r;
1692
1692
  }
1693
1693
  })(A || (A = {}));
1694
- var ae;
1694
+ var re;
1695
1695
  ((e) => {
1696
1696
  e.flush = A.flush, e.clear = A.clear;
1697
- })(ae || (ae = {}));
1697
+ })(re || (re = {}));
1698
1698
  var M;
1699
1699
  ((e) => {
1700
- function t(a, u, d) {
1701
- return E.setUserVariables(a), Object.entries(u).forEach(([l, s]) => {
1702
- j[l] = s;
1703
- }), Object.entries(d).forEach(([l, s]) => {
1704
- const i = j[l];
1705
- j[l] = i ? [...s, ...i] : s;
1706
- }), { extendedProps: u, extendedPropTypes: d };
1700
+ function t(a, o, c) {
1701
+ return E.setUserVariables(a), Object.entries(o).forEach(([s, l]) => {
1702
+ C[s] = l;
1703
+ }), Object.entries(c).forEach(([s, l]) => {
1704
+ const i = C[s];
1705
+ C[s] = i ? [...l, ...i] : l;
1706
+ }), { extendedProps: o, extendedPropTypes: c };
1707
1707
  }
1708
1708
  e.extend = t;
1709
1709
  })(M || (M = {}));
1710
- const xe = M;
1710
+ const Fe = M;
1711
1711
  var X;
1712
1712
  ((e) => {
1713
1713
  const t = {
1714
1714
  button: {
1715
1715
  styles: {
1716
- display: "inline-block",
1716
+ display: "inline-flex",
1717
+ color: "white",
1718
+ bgColor: "violet-400",
1719
+ borderColor: "violet-500",
1717
1720
  p: 3,
1718
1721
  cursor: "pointer",
1719
1722
  b: 1,
1720
1723
  borderRadius: 1,
1721
1724
  userSelect: "none",
1725
+ hover: {
1726
+ color: "slate-700",
1727
+ bgColor: "violet-100",
1728
+ borderColor: "violet-300"
1729
+ },
1722
1730
  disabled: {
1723
- cursor: "default"
1731
+ cursor: "not-allowed",
1732
+ bgColor: "violet-50",
1733
+ color: "slate-400",
1734
+ borderColor: "gray-300"
1735
+ }
1736
+ },
1737
+ themes: {
1738
+ reverse: {
1739
+ color: "slate-700",
1740
+ bgColor: "violet-100",
1741
+ borderColor: "violet-300",
1742
+ hover: {
1743
+ color: "white",
1744
+ bgColor: "violet-400",
1745
+ borderColor: "violet-500"
1746
+ }
1724
1747
  }
1725
1748
  }
1726
1749
  },
@@ -1750,89 +1773,150 @@ var X;
1750
1773
  b: 1,
1751
1774
  borderRadius: 1
1752
1775
  }
1776
+ },
1777
+ dropdown: {
1778
+ styles: {
1779
+ display: "inline-flex",
1780
+ bgColor: "white",
1781
+ color: "violet-800",
1782
+ p: 3,
1783
+ cursor: "pointer",
1784
+ b: 1,
1785
+ borderRadius: 1,
1786
+ userSelect: "none",
1787
+ borderColor: "violet-400",
1788
+ lineHeight: 20,
1789
+ hover: {
1790
+ bgColor: "violet-50"
1791
+ },
1792
+ disabled: {
1793
+ cursor: "not-allowed",
1794
+ bgColor: "violet-200",
1795
+ color: "gray-400",
1796
+ borderColor: "gray-300"
1797
+ }
1798
+ },
1799
+ children: {
1800
+ items: {
1801
+ styles: {
1802
+ b: 1,
1803
+ borderRadius: 1,
1804
+ position: "relative",
1805
+ top: 1,
1806
+ bgColor: "white",
1807
+ overflow: "auto",
1808
+ maxHeight: 45,
1809
+ borderColor: "violet-400",
1810
+ color: "violet-800"
1811
+ }
1812
+ },
1813
+ item: {
1814
+ styles: {
1815
+ p: 3,
1816
+ cursor: "pointer",
1817
+ lineHeight: 20,
1818
+ hover: {
1819
+ bgColor: "violet-50"
1820
+ }
1821
+ }
1822
+ }
1823
+ }
1753
1824
  }
1754
- // dropdown: {
1755
- // styles: {
1756
- // width: 'min-content',
1757
- // b: 1,
1758
- // borderRadius: 1,
1759
- // p: 3,
1760
- // cursor: 'pointer',
1761
- // },
1762
- // children: {
1763
- // items: {
1764
- // styles: {
1765
- // b: 1,
1766
- // },
1767
- // },
1768
- // },
1769
- // },
1770
1825
  };
1771
- function a(u) {
1772
- const { components: d, ...l } = u, s = d ?? {};
1773
- Object.entries(l).forEach(([i, m]) => {
1774
- s[i] = m;
1775
- }), H.components = $.mergeDeep(t, s);
1826
+ function a(o) {
1827
+ const { components: c, ...s } = o, l = c ?? {};
1828
+ Object.entries(s).forEach(([i, f]) => {
1829
+ l[i] = f;
1830
+ }), G.components = $.mergeDeep(t, l);
1776
1831
  }
1777
1832
  e.setup = a;
1778
1833
  })(X || (X = {}));
1779
- const Ne = X;
1834
+ const $e = X;
1780
1835
  var Y;
1781
1836
  ((e) => {
1782
- function t(u) {
1783
- const d = Array.from(u.elements).reduce(
1784
- (l, s) => {
1785
- const i = s.name;
1786
- return i && (l[i] || (l[i] = []), l[i].push(s)), l;
1837
+ function t(a, o, c) {
1838
+ a !== void 0 && a != null && (c[o] = Array.isArray(a) ? a[0] : a);
1839
+ }
1840
+ e.assignBooleanProp = t;
1841
+ })(Y || (Y = {}));
1842
+ const Ve = Y;
1843
+ function ze() {
1844
+ return Q(() => {
1845
+ const e = "crono-box";
1846
+ let t = document.getElementById(e);
1847
+ return t || (t = document.createElement("div"), t.id = e, document.body.appendChild(t)), t;
1848
+ }, []);
1849
+ }
1850
+ function Ee(e = null) {
1851
+ const [t, a] = de(!1), o = me(null);
1852
+ return se(() => {
1853
+ function c(i) {
1854
+ const f = e ?? o.current;
1855
+ (f == null ? void 0 : f.contains(i.target)) === !1 && a(!1);
1856
+ }
1857
+ function s() {
1858
+ a(!1);
1859
+ }
1860
+ function l(i) {
1861
+ i.key === "Escape" && a(!1);
1862
+ }
1863
+ return t && (window.addEventListener("click", c), window.addEventListener("resize", s), window.addEventListener("keydown", l)), () => {
1864
+ window.removeEventListener("click", c), window.removeEventListener("resize", s), window.removeEventListener("keydown", l);
1865
+ };
1866
+ }, [e, t]), [t, a, o];
1867
+ }
1868
+ var J;
1869
+ ((e) => {
1870
+ function t(o) {
1871
+ const c = Array.from(o.elements).reduce(
1872
+ (s, l) => {
1873
+ const i = l.name;
1874
+ return i && (s[i] || (s[i] = []), s[i].push(l)), s;
1787
1875
  },
1788
1876
  {}
1789
1877
  );
1790
- return Object.entries(d).reduce((l, [s, i]) => {
1878
+ return Object.entries(c).reduce((s, [l, i]) => {
1791
1879
  if (i.length === 1) {
1792
- const m = i[0];
1793
- a(l, s, m.type === "checkbox" || m.type === "radio" ? m.checked : m.value);
1880
+ const f = i[0];
1881
+ a(s, l, f.type === "checkbox" || f.type === "radio" ? f.checked : f.value);
1794
1882
  } else {
1795
- const m = i.reduce((b, r) => (r.type === "checkbox" || r.type === "radio" ? r.checked && b.push(r.value) : b.push(r.value), b), []);
1796
- a(l, s, m);
1883
+ const f = i.reduce((y, r) => (r.type === "checkbox" || r.type === "radio" ? r.checked && y.push(r.value) : y.push(r.value), y), []);
1884
+ a(s, l, f);
1797
1885
  }
1798
- return l;
1886
+ return s;
1799
1887
  }, {});
1800
1888
  }
1801
1889
  e.getFormEntries = t;
1802
- function a(u, d, l) {
1803
- if (d.includes(".")) {
1804
- const s = d.split(".");
1805
- let i = u;
1806
- s.forEach((m, b) => {
1807
- if (s.length > b + 1) {
1808
- const r = m.match(/^(.+)\[(\d)\]$/);
1890
+ function a(o, c, s) {
1891
+ if (c.includes(".")) {
1892
+ const l = c.split(".");
1893
+ let i = o;
1894
+ l.forEach((f, y) => {
1895
+ if (l.length > y + 1) {
1896
+ const r = f.match(/^(.+)\[(\d)\]$/);
1809
1897
  if (r) {
1810
1898
  const [, v, h] = r;
1811
1899
  i[v] = i[v] || [], i[v][h] = i[v][h] || {}, i = i[v][h];
1812
1900
  } else
1813
- i[m] = i[m] || {}, i = i[m];
1901
+ i[f] = i[f] || {}, i = i[f];
1814
1902
  } else
1815
- i[m] = l;
1903
+ i[f] = s;
1816
1904
  });
1817
1905
  } else
1818
- u[d] = l;
1906
+ o[c] = s;
1819
1907
  }
1820
- })(Y || (Y = {}));
1821
- const we = Y;
1822
- function Fe() {
1823
- return J(() => {
1824
- const e = "crono-box";
1825
- let t = document.getElementById(e);
1826
- return t || (t = document.createElement("div"), t.id = e, document.body.appendChild(t)), t;
1827
- }, []);
1828
- }
1908
+ })(J || (J = {}));
1909
+ const Ce = J;
1829
1910
  export {
1830
- xe as B,
1831
- we as F,
1911
+ Fe as B,
1912
+ Ce as F,
1832
1913
  $ as O,
1833
- ae as S,
1834
- Ne as T,
1835
- Fe as a,
1836
- ce as c,
1837
- ge as u
1914
+ re as S,
1915
+ $e as T,
1916
+ E as V,
1917
+ Ve as a,
1918
+ Ee as b,
1919
+ ve as c,
1920
+ ze as d,
1921
+ Ne as u
1838
1922
  };