@dhasdk/simple-ui 1.0.61 → 1.0.62
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/README.md +6 -0
- package/index.js +16 -16
- package/index.mjs +959 -955
- package/lib/CheckBox.d.ts +2 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as B, jsx as s, Fragment as ae } from "react/jsx-runtime";
|
|
2
2
|
import * as le from "react";
|
|
3
|
-
import m2, { forwardRef as re, useState as
|
|
3
|
+
import m2, { forwardRef as re, useState as F, useEffect as Z, Children as We, isValidElement as xe, cloneElement as De, useRef as Q, useMemo as je, useImperativeHandle as g2, useCallback as $e, useLayoutEffect as f2, createContext as z2, useContext as H2 } from "react";
|
|
4
4
|
import { useLocation as B2, Link as Be, NavLink as A2 } from "react-router-dom";
|
|
5
5
|
const qe = "-", I2 = (e) => {
|
|
6
6
|
const t = O2(e), {
|
|
@@ -107,25 +107,25 @@ const qe = "-", I2 = (e) => {
|
|
|
107
107
|
} = e;
|
|
108
108
|
let r = (c) => {
|
|
109
109
|
const i = [];
|
|
110
|
-
let a = 0, u = 0, o = 0,
|
|
111
|
-
for (let
|
|
112
|
-
let
|
|
110
|
+
let a = 0, u = 0, o = 0, x;
|
|
111
|
+
for (let w = 0; w < c.length; w++) {
|
|
112
|
+
let y = c[w];
|
|
113
113
|
if (a === 0 && u === 0) {
|
|
114
|
-
if (
|
|
115
|
-
i.push(c.slice(o,
|
|
114
|
+
if (y === Ge) {
|
|
115
|
+
i.push(c.slice(o, w)), o = w + R2;
|
|
116
116
|
continue;
|
|
117
117
|
}
|
|
118
|
-
if (
|
|
119
|
-
|
|
118
|
+
if (y === "/") {
|
|
119
|
+
x = w;
|
|
120
120
|
continue;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
y === "[" ? a++ : y === "]" ? a-- : y === "(" ? u++ : y === ")" && u--;
|
|
124
124
|
}
|
|
125
|
-
const g = i.length === 0 ? c : c.substring(o), h = U2(g),
|
|
125
|
+
const g = i.length === 0 ? c : c.substring(o), h = U2(g), N = h !== g, L = x && x > o ? x - o : void 0;
|
|
126
126
|
return {
|
|
127
127
|
modifiers: i,
|
|
128
|
-
hasImportantModifier:
|
|
128
|
+
hasImportantModifier: N,
|
|
129
129
|
baseClassName: h,
|
|
130
130
|
maybePostfixModifierPosition: L
|
|
131
131
|
};
|
|
@@ -172,37 +172,37 @@ const qe = "-", I2 = (e) => {
|
|
|
172
172
|
sortModifiers: i
|
|
173
173
|
} = t, a = [], u = e.trim().split(P2);
|
|
174
174
|
let o = "";
|
|
175
|
-
for (let
|
|
176
|
-
const g = u[
|
|
175
|
+
for (let x = u.length - 1; x >= 0; x -= 1) {
|
|
176
|
+
const g = u[x], {
|
|
177
177
|
isExternal: h,
|
|
178
|
-
modifiers:
|
|
178
|
+
modifiers: N,
|
|
179
179
|
hasImportantModifier: L,
|
|
180
|
-
baseClassName:
|
|
181
|
-
maybePostfixModifierPosition:
|
|
180
|
+
baseClassName: w,
|
|
181
|
+
maybePostfixModifierPosition: y
|
|
182
182
|
} = n(g);
|
|
183
183
|
if (h) {
|
|
184
184
|
o = g + (o.length > 0 ? " " + o : o);
|
|
185
185
|
continue;
|
|
186
186
|
}
|
|
187
|
-
let
|
|
188
|
-
if (!
|
|
189
|
-
if (!
|
|
187
|
+
let f = !!y, v = r(f ? w.substring(0, y) : w);
|
|
188
|
+
if (!v) {
|
|
189
|
+
if (!f) {
|
|
190
190
|
o = g + (o.length > 0 ? " " + o : o);
|
|
191
191
|
continue;
|
|
192
192
|
}
|
|
193
|
-
if (
|
|
193
|
+
if (v = r(w), !v) {
|
|
194
194
|
o = g + (o.length > 0 ? " " + o : o);
|
|
195
195
|
continue;
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
f = !1;
|
|
198
198
|
}
|
|
199
|
-
const D = i(
|
|
200
|
-
if (a.includes(
|
|
199
|
+
const D = i(N).join(":"), V = L ? D + Pe : D, b = V + v;
|
|
200
|
+
if (a.includes(b))
|
|
201
201
|
continue;
|
|
202
|
-
a.push(
|
|
203
|
-
const
|
|
204
|
-
for (let z = 0; z <
|
|
205
|
-
const A =
|
|
202
|
+
a.push(b);
|
|
203
|
+
const $ = c(v, f);
|
|
204
|
+
for (let z = 0; z < $.length; ++z) {
|
|
205
|
+
const A = $[z];
|
|
206
206
|
a.push(V + A);
|
|
207
207
|
}
|
|
208
208
|
o = g + (o.length > 0 ? " " + o : o);
|
|
@@ -226,13 +226,13 @@ const p2 = (e) => {
|
|
|
226
226
|
function q2(e, ...t) {
|
|
227
227
|
let n, r, c, i = a;
|
|
228
228
|
function a(o) {
|
|
229
|
-
const
|
|
230
|
-
return n = Z2(
|
|
229
|
+
const x = t.reduce((g, h) => h(g), e());
|
|
230
|
+
return n = Z2(x), r = n.cache.get, c = n.cache.set, i = u, u(o);
|
|
231
231
|
}
|
|
232
232
|
function u(o) {
|
|
233
|
-
const
|
|
234
|
-
if (
|
|
235
|
-
return
|
|
233
|
+
const x = r(o);
|
|
234
|
+
if (x)
|
|
235
|
+
return x;
|
|
236
236
|
const g = G2(o, n);
|
|
237
237
|
return c(o, g), g;
|
|
238
238
|
}
|
|
@@ -248,14 +248,14 @@ const J = (e) => {
|
|
|
248
248
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
249
249
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
250
250
|
J2.test(e) && !Q2.test(e)
|
|
251
|
-
), w2 = () => !1, nt = (e) => et.test(e), at = (e) => tt.test(e), ot = (e) => !
|
|
251
|
+
), w2 = () => !1, nt = (e) => et.test(e), at = (e) => tt.test(e), ot = (e) => !Y(e) && !R(e), lt = (e) => he(e, y2, w2), Y = (e) => b2.test(e), ue = (e) => he(e, k2, rt), Ie = (e) => he(e, mt, G), Je = (e) => he(e, v2, w2), it = (e) => he(e, C2, at), Ce = (e) => he(e, N2, nt), R = (e) => x2.test(e), be = (e) => pe(e, k2), ct = (e) => pe(e, gt), Qe = (e) => pe(e, v2), dt = (e) => pe(e, y2), ut = (e) => pe(e, C2), ye = (e) => pe(e, N2, !0), he = (e, t, n) => {
|
|
252
252
|
const r = b2.exec(e);
|
|
253
253
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
254
254
|
}, pe = (e, t, n = !1) => {
|
|
255
255
|
const r = x2.exec(e);
|
|
256
256
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
257
257
|
}, v2 = (e) => e === "position" || e === "percentage", C2 = (e) => e === "image" || e === "url", y2 = (e) => e === "length" || e === "size" || e === "bg-size", k2 = (e) => e === "length", mt = (e) => e === "number", gt = (e) => e === "family-name", N2 = (e) => e === "shadow", ft = () => {
|
|
258
|
-
const e = J("color"), t = J("font"), n = J("text"), r = J("font-weight"), c = J("tracking"), i = J("leading"), a = J("breakpoint"), u = J("container"), o = J("spacing"),
|
|
258
|
+
const e = J("color"), t = J("font"), n = J("text"), r = J("font-weight"), c = J("tracking"), i = J("leading"), a = J("breakpoint"), u = J("container"), o = J("spacing"), x = J("radius"), g = J("shadow"), h = J("inset-shadow"), N = J("text-shadow"), L = J("drop-shadow"), w = J("blur"), y = J("perspective"), f = J("aspect"), v = J("ease"), D = J("animate"), V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], b = () => [
|
|
259
259
|
"center",
|
|
260
260
|
"top",
|
|
261
261
|
"bottom",
|
|
@@ -273,30 +273,30 @@ const J = (e) => {
|
|
|
273
273
|
"bottom-left",
|
|
274
274
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
275
275
|
"left-bottom"
|
|
276
|
-
],
|
|
277
|
-
span: ["full", de,
|
|
278
|
-
}, de,
|
|
279
|
-
position: [
|
|
276
|
+
], $ = () => [...b(), R, Y], z = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", "contain", "none"], M = () => [R, Y, o], O = () => [fe, "full", "auto", ...M()], I = () => [de, "none", "subgrid", R, Y], T = () => ["auto", {
|
|
277
|
+
span: ["full", de, R, Y]
|
|
278
|
+
}, de, R, Y], U = () => [de, "auto", R, Y], H = () => ["auto", "min", "max", "fr", R, Y], p = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], d = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], C = () => ["auto", ...M()], k = () => [fe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...M()], l = () => [e, R, Y], _ = () => [...b(), Qe, Je, {
|
|
279
|
+
position: [R, Y]
|
|
280
280
|
}], S = () => ["no-repeat", {
|
|
281
281
|
repeat: ["", "x", "y", "space", "round"]
|
|
282
282
|
}], E = () => ["auto", "cover", "contain", dt, lt, {
|
|
283
|
-
size: [
|
|
283
|
+
size: [R, Y]
|
|
284
284
|
}], P = () => [Ae, be, ue], j = () => [
|
|
285
285
|
// Deprecated since Tailwind CSS v4.0.0
|
|
286
286
|
"",
|
|
287
287
|
"none",
|
|
288
288
|
"full",
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
289
|
+
x,
|
|
290
|
+
R,
|
|
291
|
+
Y
|
|
292
292
|
], W = () => ["", G, be, ue], K = () => ["solid", "dashed", "dotted", "double"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => [G, Ae, Qe, Je], oe = () => [
|
|
293
293
|
// Deprecated since Tailwind CSS v4.0.0
|
|
294
294
|
"",
|
|
295
295
|
"none",
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
], se = () => ["none", G,
|
|
296
|
+
w,
|
|
297
|
+
R,
|
|
298
|
+
Y
|
|
299
|
+
], se = () => ["none", G, R, Y], X = () => ["none", G, R, Y], ee = () => [G, R, Y], ne = () => [fe, "full", ...M()];
|
|
300
300
|
return {
|
|
301
301
|
cacheSize: 500,
|
|
302
302
|
theme: {
|
|
@@ -329,7 +329,7 @@ const J = (e) => {
|
|
|
329
329
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
330
330
|
*/
|
|
331
331
|
aspect: [{
|
|
332
|
-
aspect: ["auto", "square", fe,
|
|
332
|
+
aspect: ["auto", "square", fe, Y, R, f]
|
|
333
333
|
}],
|
|
334
334
|
/**
|
|
335
335
|
* Container
|
|
@@ -342,7 +342,7 @@ const J = (e) => {
|
|
|
342
342
|
* @see https://tailwindcss.com/docs/columns
|
|
343
343
|
*/
|
|
344
344
|
columns: [{
|
|
345
|
-
columns: [G,
|
|
345
|
+
columns: [G, Y, R, u]
|
|
346
346
|
}],
|
|
347
347
|
/**
|
|
348
348
|
* Break After
|
|
@@ -420,7 +420,7 @@ const J = (e) => {
|
|
|
420
420
|
* @see https://tailwindcss.com/docs/object-position
|
|
421
421
|
*/
|
|
422
422
|
"object-position": [{
|
|
423
|
-
object:
|
|
423
|
+
object: $()
|
|
424
424
|
}],
|
|
425
425
|
/**
|
|
426
426
|
* Overflow
|
|
@@ -474,63 +474,63 @@ const J = (e) => {
|
|
|
474
474
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
475
475
|
*/
|
|
476
476
|
inset: [{
|
|
477
|
-
inset:
|
|
477
|
+
inset: O()
|
|
478
478
|
}],
|
|
479
479
|
/**
|
|
480
480
|
* Right / Left
|
|
481
481
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
482
482
|
*/
|
|
483
483
|
"inset-x": [{
|
|
484
|
-
"inset-x":
|
|
484
|
+
"inset-x": O()
|
|
485
485
|
}],
|
|
486
486
|
/**
|
|
487
487
|
* Top / Bottom
|
|
488
488
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
489
489
|
*/
|
|
490
490
|
"inset-y": [{
|
|
491
|
-
"inset-y":
|
|
491
|
+
"inset-y": O()
|
|
492
492
|
}],
|
|
493
493
|
/**
|
|
494
494
|
* Start
|
|
495
495
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
496
496
|
*/
|
|
497
497
|
start: [{
|
|
498
|
-
start:
|
|
498
|
+
start: O()
|
|
499
499
|
}],
|
|
500
500
|
/**
|
|
501
501
|
* End
|
|
502
502
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
503
503
|
*/
|
|
504
504
|
end: [{
|
|
505
|
-
end:
|
|
505
|
+
end: O()
|
|
506
506
|
}],
|
|
507
507
|
/**
|
|
508
508
|
* Top
|
|
509
509
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
510
510
|
*/
|
|
511
511
|
top: [{
|
|
512
|
-
top:
|
|
512
|
+
top: O()
|
|
513
513
|
}],
|
|
514
514
|
/**
|
|
515
515
|
* Right
|
|
516
516
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
517
517
|
*/
|
|
518
518
|
right: [{
|
|
519
|
-
right:
|
|
519
|
+
right: O()
|
|
520
520
|
}],
|
|
521
521
|
/**
|
|
522
522
|
* Bottom
|
|
523
523
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
524
524
|
*/
|
|
525
525
|
bottom: [{
|
|
526
|
-
bottom:
|
|
526
|
+
bottom: O()
|
|
527
527
|
}],
|
|
528
528
|
/**
|
|
529
529
|
* Left
|
|
530
530
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
531
531
|
*/
|
|
532
532
|
left: [{
|
|
533
|
-
left:
|
|
533
|
+
left: O()
|
|
534
534
|
}],
|
|
535
535
|
/**
|
|
536
536
|
* Visibility
|
|
@@ -542,7 +542,7 @@ const J = (e) => {
|
|
|
542
542
|
* @see https://tailwindcss.com/docs/z-index
|
|
543
543
|
*/
|
|
544
544
|
z: [{
|
|
545
|
-
z: [de, "auto",
|
|
545
|
+
z: [de, "auto", R, Y]
|
|
546
546
|
}],
|
|
547
547
|
// ------------------------
|
|
548
548
|
// --- Flexbox and Grid ---
|
|
@@ -552,7 +552,7 @@ const J = (e) => {
|
|
|
552
552
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
553
553
|
*/
|
|
554
554
|
basis: [{
|
|
555
|
-
basis: [fe, "full", "auto", u, ...
|
|
555
|
+
basis: [fe, "full", "auto", u, ...M()]
|
|
556
556
|
}],
|
|
557
557
|
/**
|
|
558
558
|
* Flex Direction
|
|
@@ -573,42 +573,42 @@ const J = (e) => {
|
|
|
573
573
|
* @see https://tailwindcss.com/docs/flex
|
|
574
574
|
*/
|
|
575
575
|
flex: [{
|
|
576
|
-
flex: [G, fe, "auto", "initial", "none",
|
|
576
|
+
flex: [G, fe, "auto", "initial", "none", Y]
|
|
577
577
|
}],
|
|
578
578
|
/**
|
|
579
579
|
* Flex Grow
|
|
580
580
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
581
581
|
*/
|
|
582
582
|
grow: [{
|
|
583
|
-
grow: ["", G,
|
|
583
|
+
grow: ["", G, R, Y]
|
|
584
584
|
}],
|
|
585
585
|
/**
|
|
586
586
|
* Flex Shrink
|
|
587
587
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
588
588
|
*/
|
|
589
589
|
shrink: [{
|
|
590
|
-
shrink: ["", G,
|
|
590
|
+
shrink: ["", G, R, Y]
|
|
591
591
|
}],
|
|
592
592
|
/**
|
|
593
593
|
* Order
|
|
594
594
|
* @see https://tailwindcss.com/docs/order
|
|
595
595
|
*/
|
|
596
596
|
order: [{
|
|
597
|
-
order: [de, "first", "last", "none",
|
|
597
|
+
order: [de, "first", "last", "none", R, Y]
|
|
598
598
|
}],
|
|
599
599
|
/**
|
|
600
600
|
* Grid Template Columns
|
|
601
601
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
602
602
|
*/
|
|
603
603
|
"grid-cols": [{
|
|
604
|
-
"grid-cols":
|
|
604
|
+
"grid-cols": I()
|
|
605
605
|
}],
|
|
606
606
|
/**
|
|
607
607
|
* Grid Column Start / End
|
|
608
608
|
* @see https://tailwindcss.com/docs/grid-column
|
|
609
609
|
*/
|
|
610
610
|
"col-start-end": [{
|
|
611
|
-
col:
|
|
611
|
+
col: T()
|
|
612
612
|
}],
|
|
613
613
|
/**
|
|
614
614
|
* Grid Column Start
|
|
@@ -629,14 +629,14 @@ const J = (e) => {
|
|
|
629
629
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
630
630
|
*/
|
|
631
631
|
"grid-rows": [{
|
|
632
|
-
"grid-rows":
|
|
632
|
+
"grid-rows": I()
|
|
633
633
|
}],
|
|
634
634
|
/**
|
|
635
635
|
* Grid Row Start / End
|
|
636
636
|
* @see https://tailwindcss.com/docs/grid-row
|
|
637
637
|
*/
|
|
638
638
|
"row-start-end": [{
|
|
639
|
-
row:
|
|
639
|
+
row: T()
|
|
640
640
|
}],
|
|
641
641
|
/**
|
|
642
642
|
* Grid Row Start
|
|
@@ -678,28 +678,28 @@ const J = (e) => {
|
|
|
678
678
|
* @see https://tailwindcss.com/docs/gap
|
|
679
679
|
*/
|
|
680
680
|
gap: [{
|
|
681
|
-
gap:
|
|
681
|
+
gap: M()
|
|
682
682
|
}],
|
|
683
683
|
/**
|
|
684
684
|
* Gap X
|
|
685
685
|
* @see https://tailwindcss.com/docs/gap
|
|
686
686
|
*/
|
|
687
687
|
"gap-x": [{
|
|
688
|
-
"gap-x":
|
|
688
|
+
"gap-x": M()
|
|
689
689
|
}],
|
|
690
690
|
/**
|
|
691
691
|
* Gap Y
|
|
692
692
|
* @see https://tailwindcss.com/docs/gap
|
|
693
693
|
*/
|
|
694
694
|
"gap-y": [{
|
|
695
|
-
"gap-y":
|
|
695
|
+
"gap-y": M()
|
|
696
696
|
}],
|
|
697
697
|
/**
|
|
698
698
|
* Justify Content
|
|
699
699
|
* @see https://tailwindcss.com/docs/justify-content
|
|
700
700
|
*/
|
|
701
701
|
"justify-content": [{
|
|
702
|
-
justify: [...
|
|
702
|
+
justify: [...p(), "normal"]
|
|
703
703
|
}],
|
|
704
704
|
/**
|
|
705
705
|
* Justify Items
|
|
@@ -720,7 +720,7 @@ const J = (e) => {
|
|
|
720
720
|
* @see https://tailwindcss.com/docs/align-content
|
|
721
721
|
*/
|
|
722
722
|
"align-content": [{
|
|
723
|
-
content: ["normal", ...
|
|
723
|
+
content: ["normal", ...p()]
|
|
724
724
|
}],
|
|
725
725
|
/**
|
|
726
726
|
* Align Items
|
|
@@ -745,7 +745,7 @@ const J = (e) => {
|
|
|
745
745
|
* @see https://tailwindcss.com/docs/place-content
|
|
746
746
|
*/
|
|
747
747
|
"place-content": [{
|
|
748
|
-
"place-content":
|
|
748
|
+
"place-content": p()
|
|
749
749
|
}],
|
|
750
750
|
/**
|
|
751
751
|
* Place Items
|
|
@@ -767,133 +767,133 @@ const J = (e) => {
|
|
|
767
767
|
* @see https://tailwindcss.com/docs/padding
|
|
768
768
|
*/
|
|
769
769
|
p: [{
|
|
770
|
-
p:
|
|
770
|
+
p: M()
|
|
771
771
|
}],
|
|
772
772
|
/**
|
|
773
773
|
* Padding X
|
|
774
774
|
* @see https://tailwindcss.com/docs/padding
|
|
775
775
|
*/
|
|
776
776
|
px: [{
|
|
777
|
-
px:
|
|
777
|
+
px: M()
|
|
778
778
|
}],
|
|
779
779
|
/**
|
|
780
780
|
* Padding Y
|
|
781
781
|
* @see https://tailwindcss.com/docs/padding
|
|
782
782
|
*/
|
|
783
783
|
py: [{
|
|
784
|
-
py:
|
|
784
|
+
py: M()
|
|
785
785
|
}],
|
|
786
786
|
/**
|
|
787
787
|
* Padding Start
|
|
788
788
|
* @see https://tailwindcss.com/docs/padding
|
|
789
789
|
*/
|
|
790
790
|
ps: [{
|
|
791
|
-
ps:
|
|
791
|
+
ps: M()
|
|
792
792
|
}],
|
|
793
793
|
/**
|
|
794
794
|
* Padding End
|
|
795
795
|
* @see https://tailwindcss.com/docs/padding
|
|
796
796
|
*/
|
|
797
797
|
pe: [{
|
|
798
|
-
pe:
|
|
798
|
+
pe: M()
|
|
799
799
|
}],
|
|
800
800
|
/**
|
|
801
801
|
* Padding Top
|
|
802
802
|
* @see https://tailwindcss.com/docs/padding
|
|
803
803
|
*/
|
|
804
804
|
pt: [{
|
|
805
|
-
pt:
|
|
805
|
+
pt: M()
|
|
806
806
|
}],
|
|
807
807
|
/**
|
|
808
808
|
* Padding Right
|
|
809
809
|
* @see https://tailwindcss.com/docs/padding
|
|
810
810
|
*/
|
|
811
811
|
pr: [{
|
|
812
|
-
pr:
|
|
812
|
+
pr: M()
|
|
813
813
|
}],
|
|
814
814
|
/**
|
|
815
815
|
* Padding Bottom
|
|
816
816
|
* @see https://tailwindcss.com/docs/padding
|
|
817
817
|
*/
|
|
818
818
|
pb: [{
|
|
819
|
-
pb:
|
|
819
|
+
pb: M()
|
|
820
820
|
}],
|
|
821
821
|
/**
|
|
822
822
|
* Padding Left
|
|
823
823
|
* @see https://tailwindcss.com/docs/padding
|
|
824
824
|
*/
|
|
825
825
|
pl: [{
|
|
826
|
-
pl:
|
|
826
|
+
pl: M()
|
|
827
827
|
}],
|
|
828
828
|
/**
|
|
829
829
|
* Margin
|
|
830
830
|
* @see https://tailwindcss.com/docs/margin
|
|
831
831
|
*/
|
|
832
832
|
m: [{
|
|
833
|
-
m:
|
|
833
|
+
m: C()
|
|
834
834
|
}],
|
|
835
835
|
/**
|
|
836
836
|
* Margin X
|
|
837
837
|
* @see https://tailwindcss.com/docs/margin
|
|
838
838
|
*/
|
|
839
839
|
mx: [{
|
|
840
|
-
mx:
|
|
840
|
+
mx: C()
|
|
841
841
|
}],
|
|
842
842
|
/**
|
|
843
843
|
* Margin Y
|
|
844
844
|
* @see https://tailwindcss.com/docs/margin
|
|
845
845
|
*/
|
|
846
846
|
my: [{
|
|
847
|
-
my:
|
|
847
|
+
my: C()
|
|
848
848
|
}],
|
|
849
849
|
/**
|
|
850
850
|
* Margin Start
|
|
851
851
|
* @see https://tailwindcss.com/docs/margin
|
|
852
852
|
*/
|
|
853
853
|
ms: [{
|
|
854
|
-
ms:
|
|
854
|
+
ms: C()
|
|
855
855
|
}],
|
|
856
856
|
/**
|
|
857
857
|
* Margin End
|
|
858
858
|
* @see https://tailwindcss.com/docs/margin
|
|
859
859
|
*/
|
|
860
860
|
me: [{
|
|
861
|
-
me:
|
|
861
|
+
me: C()
|
|
862
862
|
}],
|
|
863
863
|
/**
|
|
864
864
|
* Margin Top
|
|
865
865
|
* @see https://tailwindcss.com/docs/margin
|
|
866
866
|
*/
|
|
867
867
|
mt: [{
|
|
868
|
-
mt:
|
|
868
|
+
mt: C()
|
|
869
869
|
}],
|
|
870
870
|
/**
|
|
871
871
|
* Margin Right
|
|
872
872
|
* @see https://tailwindcss.com/docs/margin
|
|
873
873
|
*/
|
|
874
874
|
mr: [{
|
|
875
|
-
mr:
|
|
875
|
+
mr: C()
|
|
876
876
|
}],
|
|
877
877
|
/**
|
|
878
878
|
* Margin Bottom
|
|
879
879
|
* @see https://tailwindcss.com/docs/margin
|
|
880
880
|
*/
|
|
881
881
|
mb: [{
|
|
882
|
-
mb:
|
|
882
|
+
mb: C()
|
|
883
883
|
}],
|
|
884
884
|
/**
|
|
885
885
|
* Margin Left
|
|
886
886
|
* @see https://tailwindcss.com/docs/margin
|
|
887
887
|
*/
|
|
888
888
|
ml: [{
|
|
889
|
-
ml:
|
|
889
|
+
ml: C()
|
|
890
890
|
}],
|
|
891
891
|
/**
|
|
892
892
|
* Space Between X
|
|
893
893
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
894
894
|
*/
|
|
895
895
|
"space-x": [{
|
|
896
|
-
"space-x":
|
|
896
|
+
"space-x": M()
|
|
897
897
|
}],
|
|
898
898
|
/**
|
|
899
899
|
* Space Between X Reverse
|
|
@@ -905,7 +905,7 @@ const J = (e) => {
|
|
|
905
905
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
906
906
|
*/
|
|
907
907
|
"space-y": [{
|
|
908
|
-
"space-y":
|
|
908
|
+
"space-y": M()
|
|
909
909
|
}],
|
|
910
910
|
/**
|
|
911
911
|
* Space Between Y Reverse
|
|
@@ -920,14 +920,14 @@ const J = (e) => {
|
|
|
920
920
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
921
921
|
*/
|
|
922
922
|
size: [{
|
|
923
|
-
size:
|
|
923
|
+
size: k()
|
|
924
924
|
}],
|
|
925
925
|
/**
|
|
926
926
|
* Width
|
|
927
927
|
* @see https://tailwindcss.com/docs/width
|
|
928
928
|
*/
|
|
929
929
|
w: [{
|
|
930
|
-
w: [u, "screen", ...
|
|
930
|
+
w: [u, "screen", ...k()]
|
|
931
931
|
}],
|
|
932
932
|
/**
|
|
933
933
|
* Min-Width
|
|
@@ -939,7 +939,7 @@ const J = (e) => {
|
|
|
939
939
|
"screen",
|
|
940
940
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
941
941
|
"none",
|
|
942
|
-
...
|
|
942
|
+
...k()
|
|
943
943
|
]
|
|
944
944
|
}],
|
|
945
945
|
/**
|
|
@@ -957,7 +957,7 @@ const J = (e) => {
|
|
|
957
957
|
{
|
|
958
958
|
screen: [a]
|
|
959
959
|
},
|
|
960
|
-
...
|
|
960
|
+
...k()
|
|
961
961
|
]
|
|
962
962
|
}],
|
|
963
963
|
/**
|
|
@@ -965,21 +965,21 @@ const J = (e) => {
|
|
|
965
965
|
* @see https://tailwindcss.com/docs/height
|
|
966
966
|
*/
|
|
967
967
|
h: [{
|
|
968
|
-
h: ["screen", "lh", ...
|
|
968
|
+
h: ["screen", "lh", ...k()]
|
|
969
969
|
}],
|
|
970
970
|
/**
|
|
971
971
|
* Min-Height
|
|
972
972
|
* @see https://tailwindcss.com/docs/min-height
|
|
973
973
|
*/
|
|
974
974
|
"min-h": [{
|
|
975
|
-
"min-h": ["screen", "lh", "none", ...
|
|
975
|
+
"min-h": ["screen", "lh", "none", ...k()]
|
|
976
976
|
}],
|
|
977
977
|
/**
|
|
978
978
|
* Max-Height
|
|
979
979
|
* @see https://tailwindcss.com/docs/max-height
|
|
980
980
|
*/
|
|
981
981
|
"max-h": [{
|
|
982
|
-
"max-h": ["screen", "lh", ...
|
|
982
|
+
"max-h": ["screen", "lh", ...k()]
|
|
983
983
|
}],
|
|
984
984
|
// ------------------
|
|
985
985
|
// --- Typography ---
|
|
@@ -1006,21 +1006,21 @@ const J = (e) => {
|
|
|
1006
1006
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1007
1007
|
*/
|
|
1008
1008
|
"font-weight": [{
|
|
1009
|
-
font: [r,
|
|
1009
|
+
font: [r, R, Ie]
|
|
1010
1010
|
}],
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Font Stretch
|
|
1013
1013
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1014
1014
|
*/
|
|
1015
1015
|
"font-stretch": [{
|
|
1016
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ae,
|
|
1016
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ae, Y]
|
|
1017
1017
|
}],
|
|
1018
1018
|
/**
|
|
1019
1019
|
* Font Family
|
|
1020
1020
|
* @see https://tailwindcss.com/docs/font-family
|
|
1021
1021
|
*/
|
|
1022
1022
|
"font-family": [{
|
|
1023
|
-
font: [ct,
|
|
1023
|
+
font: [ct, Y, t]
|
|
1024
1024
|
}],
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Font Variant Numeric
|
|
@@ -1057,14 +1057,14 @@ const J = (e) => {
|
|
|
1057
1057
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1058
1058
|
*/
|
|
1059
1059
|
tracking: [{
|
|
1060
|
-
tracking: [c,
|
|
1060
|
+
tracking: [c, R, Y]
|
|
1061
1061
|
}],
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Line Clamp
|
|
1064
1064
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1065
1065
|
*/
|
|
1066
1066
|
"line-clamp": [{
|
|
1067
|
-
"line-clamp": [G, "none",
|
|
1067
|
+
"line-clamp": [G, "none", R, Ie]
|
|
1068
1068
|
}],
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Line Height
|
|
@@ -1074,7 +1074,7 @@ const J = (e) => {
|
|
|
1074
1074
|
leading: [
|
|
1075
1075
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1076
1076
|
i,
|
|
1077
|
-
...
|
|
1077
|
+
...M()
|
|
1078
1078
|
]
|
|
1079
1079
|
}],
|
|
1080
1080
|
/**
|
|
@@ -1082,7 +1082,7 @@ const J = (e) => {
|
|
|
1082
1082
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1083
1083
|
*/
|
|
1084
1084
|
"list-image": [{
|
|
1085
|
-
"list-image": ["none",
|
|
1085
|
+
"list-image": ["none", R, Y]
|
|
1086
1086
|
}],
|
|
1087
1087
|
/**
|
|
1088
1088
|
* List Style Position
|
|
@@ -1096,7 +1096,7 @@ const J = (e) => {
|
|
|
1096
1096
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1097
1097
|
*/
|
|
1098
1098
|
"list-style-type": [{
|
|
1099
|
-
list: ["disc", "decimal", "none",
|
|
1099
|
+
list: ["disc", "decimal", "none", R, Y]
|
|
1100
1100
|
}],
|
|
1101
1101
|
/**
|
|
1102
1102
|
* Text Alignment
|
|
@@ -1137,7 +1137,7 @@ const J = (e) => {
|
|
|
1137
1137
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1138
1138
|
*/
|
|
1139
1139
|
"text-decoration-thickness": [{
|
|
1140
|
-
decoration: [G, "from-font", "auto",
|
|
1140
|
+
decoration: [G, "from-font", "auto", R, ue]
|
|
1141
1141
|
}],
|
|
1142
1142
|
/**
|
|
1143
1143
|
* Text Decoration Color
|
|
@@ -1151,7 +1151,7 @@ const J = (e) => {
|
|
|
1151
1151
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1152
1152
|
*/
|
|
1153
1153
|
"underline-offset": [{
|
|
1154
|
-
"underline-offset": [G, "auto",
|
|
1154
|
+
"underline-offset": [G, "auto", R, Y]
|
|
1155
1155
|
}],
|
|
1156
1156
|
/**
|
|
1157
1157
|
* Text Transform
|
|
@@ -1175,14 +1175,14 @@ const J = (e) => {
|
|
|
1175
1175
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1176
1176
|
*/
|
|
1177
1177
|
indent: [{
|
|
1178
|
-
indent:
|
|
1178
|
+
indent: M()
|
|
1179
1179
|
}],
|
|
1180
1180
|
/**
|
|
1181
1181
|
* Vertical Alignment
|
|
1182
1182
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1183
1183
|
*/
|
|
1184
1184
|
"vertical-align": [{
|
|
1185
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1185
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", R, Y]
|
|
1186
1186
|
}],
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Whitespace
|
|
@@ -1217,7 +1217,7 @@ const J = (e) => {
|
|
|
1217
1217
|
* @see https://tailwindcss.com/docs/content
|
|
1218
1218
|
*/
|
|
1219
1219
|
content: [{
|
|
1220
|
-
content: ["none",
|
|
1220
|
+
content: ["none", R, Y]
|
|
1221
1221
|
}],
|
|
1222
1222
|
// -------------------
|
|
1223
1223
|
// --- Backgrounds ---
|
|
@@ -1248,7 +1248,7 @@ const J = (e) => {
|
|
|
1248
1248
|
* @see https://tailwindcss.com/docs/background-position
|
|
1249
1249
|
*/
|
|
1250
1250
|
"bg-position": [{
|
|
1251
|
-
bg:
|
|
1251
|
+
bg: _()
|
|
1252
1252
|
}],
|
|
1253
1253
|
/**
|
|
1254
1254
|
* Background Repeat
|
|
@@ -1272,9 +1272,9 @@ const J = (e) => {
|
|
|
1272
1272
|
bg: ["none", {
|
|
1273
1273
|
linear: [{
|
|
1274
1274
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1275
|
-
}, de,
|
|
1276
|
-
radial: ["",
|
|
1277
|
-
conic: [de,
|
|
1275
|
+
}, de, R, Y],
|
|
1276
|
+
radial: ["", R, Y],
|
|
1277
|
+
conic: [de, R, Y]
|
|
1278
1278
|
}, ut, it]
|
|
1279
1279
|
}],
|
|
1280
1280
|
/**
|
|
@@ -1617,7 +1617,7 @@ const J = (e) => {
|
|
|
1617
1617
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1618
1618
|
*/
|
|
1619
1619
|
"outline-offset": [{
|
|
1620
|
-
"outline-offset": [G,
|
|
1620
|
+
"outline-offset": [G, R, Y]
|
|
1621
1621
|
}],
|
|
1622
1622
|
/**
|
|
1623
1623
|
* Outline Width
|
|
@@ -1729,7 +1729,7 @@ const J = (e) => {
|
|
|
1729
1729
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1730
1730
|
*/
|
|
1731
1731
|
"text-shadow": [{
|
|
1732
|
-
"text-shadow": ["none",
|
|
1732
|
+
"text-shadow": ["none", N, ye, Ce]
|
|
1733
1733
|
}],
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Text Shadow Color
|
|
@@ -1743,7 +1743,7 @@ const J = (e) => {
|
|
|
1743
1743
|
* @see https://tailwindcss.com/docs/opacity
|
|
1744
1744
|
*/
|
|
1745
1745
|
opacity: [{
|
|
1746
|
-
opacity: [G,
|
|
1746
|
+
opacity: [G, R, Y]
|
|
1747
1747
|
}],
|
|
1748
1748
|
/**
|
|
1749
1749
|
* Mix Blend Mode
|
|
@@ -1865,7 +1865,7 @@ const J = (e) => {
|
|
|
1865
1865
|
"mask-y-to": l()
|
|
1866
1866
|
}],
|
|
1867
1867
|
"mask-image-radial": [{
|
|
1868
|
-
"mask-radial": [
|
|
1868
|
+
"mask-radial": [R, Y]
|
|
1869
1869
|
}],
|
|
1870
1870
|
"mask-image-radial-from-pos": [{
|
|
1871
1871
|
"mask-radial-from": q()
|
|
@@ -1889,7 +1889,7 @@ const J = (e) => {
|
|
|
1889
1889
|
}]
|
|
1890
1890
|
}],
|
|
1891
1891
|
"mask-image-radial-pos": [{
|
|
1892
|
-
"mask-radial-at":
|
|
1892
|
+
"mask-radial-at": b()
|
|
1893
1893
|
}],
|
|
1894
1894
|
"mask-image-conic-pos": [{
|
|
1895
1895
|
"mask-conic": [G]
|
|
@@ -1925,7 +1925,7 @@ const J = (e) => {
|
|
|
1925
1925
|
* @see https://tailwindcss.com/docs/mask-position
|
|
1926
1926
|
*/
|
|
1927
1927
|
"mask-position": [{
|
|
1928
|
-
mask:
|
|
1928
|
+
mask: _()
|
|
1929
1929
|
}],
|
|
1930
1930
|
/**
|
|
1931
1931
|
* Mask Repeat
|
|
@@ -1953,7 +1953,7 @@ const J = (e) => {
|
|
|
1953
1953
|
* @see https://tailwindcss.com/docs/mask-image
|
|
1954
1954
|
*/
|
|
1955
1955
|
"mask-image": [{
|
|
1956
|
-
mask: ["none",
|
|
1956
|
+
mask: ["none", R, Y]
|
|
1957
1957
|
}],
|
|
1958
1958
|
// ---------------
|
|
1959
1959
|
// --- Filters ---
|
|
@@ -1967,8 +1967,8 @@ const J = (e) => {
|
|
|
1967
1967
|
// Deprecated since Tailwind CSS v3.0.0
|
|
1968
1968
|
"",
|
|
1969
1969
|
"none",
|
|
1970
|
-
|
|
1971
|
-
|
|
1970
|
+
R,
|
|
1971
|
+
Y
|
|
1972
1972
|
]
|
|
1973
1973
|
}],
|
|
1974
1974
|
/**
|
|
@@ -1983,14 +1983,14 @@ const J = (e) => {
|
|
|
1983
1983
|
* @see https://tailwindcss.com/docs/brightness
|
|
1984
1984
|
*/
|
|
1985
1985
|
brightness: [{
|
|
1986
|
-
brightness: [G,
|
|
1986
|
+
brightness: [G, R, Y]
|
|
1987
1987
|
}],
|
|
1988
1988
|
/**
|
|
1989
1989
|
* Contrast
|
|
1990
1990
|
* @see https://tailwindcss.com/docs/contrast
|
|
1991
1991
|
*/
|
|
1992
1992
|
contrast: [{
|
|
1993
|
-
contrast: [G,
|
|
1993
|
+
contrast: [G, R, Y]
|
|
1994
1994
|
}],
|
|
1995
1995
|
/**
|
|
1996
1996
|
* Drop Shadow
|
|
@@ -2018,35 +2018,35 @@ const J = (e) => {
|
|
|
2018
2018
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2019
2019
|
*/
|
|
2020
2020
|
grayscale: [{
|
|
2021
|
-
grayscale: ["", G,
|
|
2021
|
+
grayscale: ["", G, R, Y]
|
|
2022
2022
|
}],
|
|
2023
2023
|
/**
|
|
2024
2024
|
* Hue Rotate
|
|
2025
2025
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2026
2026
|
*/
|
|
2027
2027
|
"hue-rotate": [{
|
|
2028
|
-
"hue-rotate": [G,
|
|
2028
|
+
"hue-rotate": [G, R, Y]
|
|
2029
2029
|
}],
|
|
2030
2030
|
/**
|
|
2031
2031
|
* Invert
|
|
2032
2032
|
* @see https://tailwindcss.com/docs/invert
|
|
2033
2033
|
*/
|
|
2034
2034
|
invert: [{
|
|
2035
|
-
invert: ["", G,
|
|
2035
|
+
invert: ["", G, R, Y]
|
|
2036
2036
|
}],
|
|
2037
2037
|
/**
|
|
2038
2038
|
* Saturate
|
|
2039
2039
|
* @see https://tailwindcss.com/docs/saturate
|
|
2040
2040
|
*/
|
|
2041
2041
|
saturate: [{
|
|
2042
|
-
saturate: [G,
|
|
2042
|
+
saturate: [G, R, Y]
|
|
2043
2043
|
}],
|
|
2044
2044
|
/**
|
|
2045
2045
|
* Sepia
|
|
2046
2046
|
* @see https://tailwindcss.com/docs/sepia
|
|
2047
2047
|
*/
|
|
2048
2048
|
sepia: [{
|
|
2049
|
-
sepia: ["", G,
|
|
2049
|
+
sepia: ["", G, R, Y]
|
|
2050
2050
|
}],
|
|
2051
2051
|
/**
|
|
2052
2052
|
* Backdrop Filter
|
|
@@ -2057,8 +2057,8 @@ const J = (e) => {
|
|
|
2057
2057
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2058
2058
|
"",
|
|
2059
2059
|
"none",
|
|
2060
|
-
|
|
2061
|
-
|
|
2060
|
+
R,
|
|
2061
|
+
Y
|
|
2062
2062
|
]
|
|
2063
2063
|
}],
|
|
2064
2064
|
/**
|
|
@@ -2073,56 +2073,56 @@ const J = (e) => {
|
|
|
2073
2073
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2074
2074
|
*/
|
|
2075
2075
|
"backdrop-brightness": [{
|
|
2076
|
-
"backdrop-brightness": [G,
|
|
2076
|
+
"backdrop-brightness": [G, R, Y]
|
|
2077
2077
|
}],
|
|
2078
2078
|
/**
|
|
2079
2079
|
* Backdrop Contrast
|
|
2080
2080
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2081
2081
|
*/
|
|
2082
2082
|
"backdrop-contrast": [{
|
|
2083
|
-
"backdrop-contrast": [G,
|
|
2083
|
+
"backdrop-contrast": [G, R, Y]
|
|
2084
2084
|
}],
|
|
2085
2085
|
/**
|
|
2086
2086
|
* Backdrop Grayscale
|
|
2087
2087
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2088
2088
|
*/
|
|
2089
2089
|
"backdrop-grayscale": [{
|
|
2090
|
-
"backdrop-grayscale": ["", G,
|
|
2090
|
+
"backdrop-grayscale": ["", G, R, Y]
|
|
2091
2091
|
}],
|
|
2092
2092
|
/**
|
|
2093
2093
|
* Backdrop Hue Rotate
|
|
2094
2094
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2095
2095
|
*/
|
|
2096
2096
|
"backdrop-hue-rotate": [{
|
|
2097
|
-
"backdrop-hue-rotate": [G,
|
|
2097
|
+
"backdrop-hue-rotate": [G, R, Y]
|
|
2098
2098
|
}],
|
|
2099
2099
|
/**
|
|
2100
2100
|
* Backdrop Invert
|
|
2101
2101
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2102
2102
|
*/
|
|
2103
2103
|
"backdrop-invert": [{
|
|
2104
|
-
"backdrop-invert": ["", G,
|
|
2104
|
+
"backdrop-invert": ["", G, R, Y]
|
|
2105
2105
|
}],
|
|
2106
2106
|
/**
|
|
2107
2107
|
* Backdrop Opacity
|
|
2108
2108
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2109
2109
|
*/
|
|
2110
2110
|
"backdrop-opacity": [{
|
|
2111
|
-
"backdrop-opacity": [G,
|
|
2111
|
+
"backdrop-opacity": [G, R, Y]
|
|
2112
2112
|
}],
|
|
2113
2113
|
/**
|
|
2114
2114
|
* Backdrop Saturate
|
|
2115
2115
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2116
2116
|
*/
|
|
2117
2117
|
"backdrop-saturate": [{
|
|
2118
|
-
"backdrop-saturate": [G,
|
|
2118
|
+
"backdrop-saturate": [G, R, Y]
|
|
2119
2119
|
}],
|
|
2120
2120
|
/**
|
|
2121
2121
|
* Backdrop Sepia
|
|
2122
2122
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2123
2123
|
*/
|
|
2124
2124
|
"backdrop-sepia": [{
|
|
2125
|
-
"backdrop-sepia": ["", G,
|
|
2125
|
+
"backdrop-sepia": ["", G, R, Y]
|
|
2126
2126
|
}],
|
|
2127
2127
|
// --------------
|
|
2128
2128
|
// --- Tables ---
|
|
@@ -2139,21 +2139,21 @@ const J = (e) => {
|
|
|
2139
2139
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2140
2140
|
*/
|
|
2141
2141
|
"border-spacing": [{
|
|
2142
|
-
"border-spacing":
|
|
2142
|
+
"border-spacing": M()
|
|
2143
2143
|
}],
|
|
2144
2144
|
/**
|
|
2145
2145
|
* Border Spacing X
|
|
2146
2146
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2147
2147
|
*/
|
|
2148
2148
|
"border-spacing-x": [{
|
|
2149
|
-
"border-spacing-x":
|
|
2149
|
+
"border-spacing-x": M()
|
|
2150
2150
|
}],
|
|
2151
2151
|
/**
|
|
2152
2152
|
* Border Spacing Y
|
|
2153
2153
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2154
2154
|
*/
|
|
2155
2155
|
"border-spacing-y": [{
|
|
2156
|
-
"border-spacing-y":
|
|
2156
|
+
"border-spacing-y": M()
|
|
2157
2157
|
}],
|
|
2158
2158
|
/**
|
|
2159
2159
|
* Table Layout
|
|
@@ -2177,7 +2177,7 @@ const J = (e) => {
|
|
|
2177
2177
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2178
2178
|
*/
|
|
2179
2179
|
transition: [{
|
|
2180
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2180
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", R, Y]
|
|
2181
2181
|
}],
|
|
2182
2182
|
/**
|
|
2183
2183
|
* Transition Behavior
|
|
@@ -2191,28 +2191,28 @@ const J = (e) => {
|
|
|
2191
2191
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2192
2192
|
*/
|
|
2193
2193
|
duration: [{
|
|
2194
|
-
duration: [G, "initial",
|
|
2194
|
+
duration: [G, "initial", R, Y]
|
|
2195
2195
|
}],
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Transition Timing Function
|
|
2198
2198
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2199
2199
|
*/
|
|
2200
2200
|
ease: [{
|
|
2201
|
-
ease: ["linear", "initial",
|
|
2201
|
+
ease: ["linear", "initial", v, R, Y]
|
|
2202
2202
|
}],
|
|
2203
2203
|
/**
|
|
2204
2204
|
* Transition Delay
|
|
2205
2205
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2206
2206
|
*/
|
|
2207
2207
|
delay: [{
|
|
2208
|
-
delay: [G,
|
|
2208
|
+
delay: [G, R, Y]
|
|
2209
2209
|
}],
|
|
2210
2210
|
/**
|
|
2211
2211
|
* Animation
|
|
2212
2212
|
* @see https://tailwindcss.com/docs/animation
|
|
2213
2213
|
*/
|
|
2214
2214
|
animate: [{
|
|
2215
|
-
animate: ["none", D,
|
|
2215
|
+
animate: ["none", D, R, Y]
|
|
2216
2216
|
}],
|
|
2217
2217
|
// ------------------
|
|
2218
2218
|
// --- Transforms ---
|
|
@@ -2229,14 +2229,14 @@ const J = (e) => {
|
|
|
2229
2229
|
* @see https://tailwindcss.com/docs/perspective
|
|
2230
2230
|
*/
|
|
2231
2231
|
perspective: [{
|
|
2232
|
-
perspective: [
|
|
2232
|
+
perspective: [y, R, Y]
|
|
2233
2233
|
}],
|
|
2234
2234
|
/**
|
|
2235
2235
|
* Perspective Origin
|
|
2236
2236
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2237
2237
|
*/
|
|
2238
2238
|
"perspective-origin": [{
|
|
2239
|
-
"perspective-origin":
|
|
2239
|
+
"perspective-origin": $()
|
|
2240
2240
|
}],
|
|
2241
2241
|
/**
|
|
2242
2242
|
* Rotate
|
|
@@ -2325,14 +2325,14 @@ const J = (e) => {
|
|
|
2325
2325
|
* @see https://tailwindcss.com/docs/transform
|
|
2326
2326
|
*/
|
|
2327
2327
|
transform: [{
|
|
2328
|
-
transform: [
|
|
2328
|
+
transform: [R, Y, "", "none", "gpu", "cpu"]
|
|
2329
2329
|
}],
|
|
2330
2330
|
/**
|
|
2331
2331
|
* Transform Origin
|
|
2332
2332
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2333
2333
|
*/
|
|
2334
2334
|
"transform-origin": [{
|
|
2335
|
-
origin:
|
|
2335
|
+
origin: $()
|
|
2336
2336
|
}],
|
|
2337
2337
|
/**
|
|
2338
2338
|
* Transform Style
|
|
@@ -2410,7 +2410,7 @@ const J = (e) => {
|
|
|
2410
2410
|
* @see https://tailwindcss.com/docs/cursor
|
|
2411
2411
|
*/
|
|
2412
2412
|
cursor: [{
|
|
2413
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2413
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", R, Y]
|
|
2414
2414
|
}],
|
|
2415
2415
|
/**
|
|
2416
2416
|
* Field Sizing
|
|
@@ -2445,126 +2445,126 @@ const J = (e) => {
|
|
|
2445
2445
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2446
2446
|
*/
|
|
2447
2447
|
"scroll-m": [{
|
|
2448
|
-
"scroll-m":
|
|
2448
|
+
"scroll-m": M()
|
|
2449
2449
|
}],
|
|
2450
2450
|
/**
|
|
2451
2451
|
* Scroll Margin X
|
|
2452
2452
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2453
2453
|
*/
|
|
2454
2454
|
"scroll-mx": [{
|
|
2455
|
-
"scroll-mx":
|
|
2455
|
+
"scroll-mx": M()
|
|
2456
2456
|
}],
|
|
2457
2457
|
/**
|
|
2458
2458
|
* Scroll Margin Y
|
|
2459
2459
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2460
2460
|
*/
|
|
2461
2461
|
"scroll-my": [{
|
|
2462
|
-
"scroll-my":
|
|
2462
|
+
"scroll-my": M()
|
|
2463
2463
|
}],
|
|
2464
2464
|
/**
|
|
2465
2465
|
* Scroll Margin Start
|
|
2466
2466
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2467
2467
|
*/
|
|
2468
2468
|
"scroll-ms": [{
|
|
2469
|
-
"scroll-ms":
|
|
2469
|
+
"scroll-ms": M()
|
|
2470
2470
|
}],
|
|
2471
2471
|
/**
|
|
2472
2472
|
* Scroll Margin End
|
|
2473
2473
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2474
2474
|
*/
|
|
2475
2475
|
"scroll-me": [{
|
|
2476
|
-
"scroll-me":
|
|
2476
|
+
"scroll-me": M()
|
|
2477
2477
|
}],
|
|
2478
2478
|
/**
|
|
2479
2479
|
* Scroll Margin Top
|
|
2480
2480
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2481
2481
|
*/
|
|
2482
2482
|
"scroll-mt": [{
|
|
2483
|
-
"scroll-mt":
|
|
2483
|
+
"scroll-mt": M()
|
|
2484
2484
|
}],
|
|
2485
2485
|
/**
|
|
2486
2486
|
* Scroll Margin Right
|
|
2487
2487
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2488
2488
|
*/
|
|
2489
2489
|
"scroll-mr": [{
|
|
2490
|
-
"scroll-mr":
|
|
2490
|
+
"scroll-mr": M()
|
|
2491
2491
|
}],
|
|
2492
2492
|
/**
|
|
2493
2493
|
* Scroll Margin Bottom
|
|
2494
2494
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2495
2495
|
*/
|
|
2496
2496
|
"scroll-mb": [{
|
|
2497
|
-
"scroll-mb":
|
|
2497
|
+
"scroll-mb": M()
|
|
2498
2498
|
}],
|
|
2499
2499
|
/**
|
|
2500
2500
|
* Scroll Margin Left
|
|
2501
2501
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2502
2502
|
*/
|
|
2503
2503
|
"scroll-ml": [{
|
|
2504
|
-
"scroll-ml":
|
|
2504
|
+
"scroll-ml": M()
|
|
2505
2505
|
}],
|
|
2506
2506
|
/**
|
|
2507
2507
|
* Scroll Padding
|
|
2508
2508
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2509
2509
|
*/
|
|
2510
2510
|
"scroll-p": [{
|
|
2511
|
-
"scroll-p":
|
|
2511
|
+
"scroll-p": M()
|
|
2512
2512
|
}],
|
|
2513
2513
|
/**
|
|
2514
2514
|
* Scroll Padding X
|
|
2515
2515
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2516
2516
|
*/
|
|
2517
2517
|
"scroll-px": [{
|
|
2518
|
-
"scroll-px":
|
|
2518
|
+
"scroll-px": M()
|
|
2519
2519
|
}],
|
|
2520
2520
|
/**
|
|
2521
2521
|
* Scroll Padding Y
|
|
2522
2522
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2523
2523
|
*/
|
|
2524
2524
|
"scroll-py": [{
|
|
2525
|
-
"scroll-py":
|
|
2525
|
+
"scroll-py": M()
|
|
2526
2526
|
}],
|
|
2527
2527
|
/**
|
|
2528
2528
|
* Scroll Padding Start
|
|
2529
2529
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2530
2530
|
*/
|
|
2531
2531
|
"scroll-ps": [{
|
|
2532
|
-
"scroll-ps":
|
|
2532
|
+
"scroll-ps": M()
|
|
2533
2533
|
}],
|
|
2534
2534
|
/**
|
|
2535
2535
|
* Scroll Padding End
|
|
2536
2536
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2537
2537
|
*/
|
|
2538
2538
|
"scroll-pe": [{
|
|
2539
|
-
"scroll-pe":
|
|
2539
|
+
"scroll-pe": M()
|
|
2540
2540
|
}],
|
|
2541
2541
|
/**
|
|
2542
2542
|
* Scroll Padding Top
|
|
2543
2543
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2544
2544
|
*/
|
|
2545
2545
|
"scroll-pt": [{
|
|
2546
|
-
"scroll-pt":
|
|
2546
|
+
"scroll-pt": M()
|
|
2547
2547
|
}],
|
|
2548
2548
|
/**
|
|
2549
2549
|
* Scroll Padding Right
|
|
2550
2550
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2551
2551
|
*/
|
|
2552
2552
|
"scroll-pr": [{
|
|
2553
|
-
"scroll-pr":
|
|
2553
|
+
"scroll-pr": M()
|
|
2554
2554
|
}],
|
|
2555
2555
|
/**
|
|
2556
2556
|
* Scroll Padding Bottom
|
|
2557
2557
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2558
2558
|
*/
|
|
2559
2559
|
"scroll-pb": [{
|
|
2560
|
-
"scroll-pb":
|
|
2560
|
+
"scroll-pb": M()
|
|
2561
2561
|
}],
|
|
2562
2562
|
/**
|
|
2563
2563
|
* Scroll Padding Left
|
|
2564
2564
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2565
2565
|
*/
|
|
2566
2566
|
"scroll-pl": [{
|
|
2567
|
-
"scroll-pl":
|
|
2567
|
+
"scroll-pl": M()
|
|
2568
2568
|
}],
|
|
2569
2569
|
/**
|
|
2570
2570
|
* Scroll Snap Align
|
|
@@ -2632,7 +2632,7 @@ const J = (e) => {
|
|
|
2632
2632
|
* @see https://tailwindcss.com/docs/will-change
|
|
2633
2633
|
*/
|
|
2634
2634
|
"will-change": [{
|
|
2635
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2635
|
+
"will-change": ["auto", "scroll", "contents", "transform", R, Y]
|
|
2636
2636
|
}],
|
|
2637
2637
|
// -----------
|
|
2638
2638
|
// --- SVG ---
|
|
@@ -2735,46 +2735,46 @@ const J = (e) => {
|
|
|
2735
2735
|
hr: a = !0,
|
|
2736
2736
|
classNameHeading: u = "",
|
|
2737
2737
|
classNameContent: o = "",
|
|
2738
|
-
onExpand:
|
|
2738
|
+
onExpand: x,
|
|
2739
2739
|
singleOpen: g,
|
|
2740
2740
|
classNameHr: h = "",
|
|
2741
|
-
useBackground:
|
|
2741
|
+
useBackground: N = !0,
|
|
2742
2742
|
dataTestId: L,
|
|
2743
|
-
dataTestIdLabel:
|
|
2744
|
-
dataTestIdBody:
|
|
2745
|
-
index:
|
|
2746
|
-
children:
|
|
2743
|
+
dataTestIdLabel: w,
|
|
2744
|
+
dataTestIdBody: y,
|
|
2745
|
+
index: f,
|
|
2746
|
+
children: v,
|
|
2747
2747
|
...D
|
|
2748
2748
|
}, V) => {
|
|
2749
|
-
const [
|
|
2750
|
-
|
|
2751
|
-
},
|
|
2749
|
+
const [b, $] = F(!1), [z, A] = F(Oe), [M, O] = F(Ee), [I, T] = F(""), U = `accordion-${f ?? t.replace(/\s+/g, "-").toLowerCase()}`, H = () => {
|
|
2750
|
+
x && g && x($), $(!b);
|
|
2751
|
+
}, p = (d) => {
|
|
2752
2752
|
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), H());
|
|
2753
2753
|
};
|
|
2754
2754
|
return Z(() => {
|
|
2755
|
-
|
|
2755
|
+
T(m("border-[#dfe1e2] -mt-4 pt-0 mb-3", h));
|
|
2756
2756
|
}, [h]), Z(() => {
|
|
2757
|
-
A(
|
|
2758
|
-
}, [
|
|
2759
|
-
|
|
2760
|
-
}, [
|
|
2757
|
+
A(N ? Oe : m(Oe, "bg-transparent border-0"));
|
|
2758
|
+
}, [N]), Z(() => {
|
|
2759
|
+
O(b && N ? m(Ee, "border-b-0! rounded-t rounded-b-none") : Ee);
|
|
2760
|
+
}, [b, N]), /* @__PURE__ */ B("div", { ref: V, className: n, "data-testid": L, children: [
|
|
2761
2761
|
/* @__PURE__ */ B(
|
|
2762
2762
|
"button",
|
|
2763
2763
|
{
|
|
2764
|
-
className: m(
|
|
2764
|
+
className: m(M, xt.variant, u),
|
|
2765
2765
|
"aria-controls": `${U}-content`,
|
|
2766
|
-
"aria-expanded":
|
|
2766
|
+
"aria-expanded": b,
|
|
2767
2767
|
id: `${U}-header`,
|
|
2768
2768
|
onClick: H,
|
|
2769
|
-
onKeyDown:
|
|
2769
|
+
onKeyDown: p,
|
|
2770
2770
|
...D,
|
|
2771
2771
|
children: [
|
|
2772
|
-
/* @__PURE__ */ s("span", { "data-testid":
|
|
2773
|
-
/* @__PURE__ */ s("span", { children:
|
|
2772
|
+
/* @__PURE__ */ s("span", { "data-testid": w, children: t }),
|
|
2773
|
+
/* @__PURE__ */ s("span", { children: b ? c || /* @__PURE__ */ s("img", { src: r ? L2 : pt, alt: "Close Icon" }) : i || /* @__PURE__ */ s("img", { src: r ? M2 : ht, alt: "Open Icon" }) })
|
|
2774
2774
|
]
|
|
2775
2775
|
}
|
|
2776
2776
|
),
|
|
2777
|
-
|
|
2777
|
+
b && /* @__PURE__ */ s(ae, { children: /* @__PURE__ */ B(
|
|
2778
2778
|
"div",
|
|
2779
2779
|
{
|
|
2780
2780
|
className: m(
|
|
@@ -2782,16 +2782,16 @@ const J = (e) => {
|
|
|
2782
2782
|
wt.variant,
|
|
2783
2783
|
o,
|
|
2784
2784
|
// rounded && useBackground && 'rounded-b-md', 'relative'
|
|
2785
|
-
|
|
2785
|
+
N && "rounded-b-md",
|
|
2786
2786
|
"relative"
|
|
2787
2787
|
),
|
|
2788
2788
|
id: `${U}-content`,
|
|
2789
2789
|
role: "region",
|
|
2790
2790
|
"aria-labelledby": `${U}-header`,
|
|
2791
|
-
"data-testid":
|
|
2791
|
+
"data-testid": y,
|
|
2792
2792
|
children: [
|
|
2793
|
-
|
|
2794
|
-
|
|
2793
|
+
N && a && /* @__PURE__ */ s("hr", { className: I }),
|
|
2794
|
+
v
|
|
2795
2795
|
]
|
|
2796
2796
|
}
|
|
2797
2797
|
) })
|
|
@@ -2809,18 +2809,18 @@ const J = (e) => {
|
|
|
2809
2809
|
singleOpen: a = !0,
|
|
2810
2810
|
classNameChildHeading: u,
|
|
2811
2811
|
classNameChildContent: o,
|
|
2812
|
-
hr:
|
|
2812
|
+
hr: x,
|
|
2813
2813
|
classNameHr: g,
|
|
2814
2814
|
useBackground: h,
|
|
2815
|
-
dataTestId:
|
|
2815
|
+
dataTestId: N,
|
|
2816
2816
|
...L
|
|
2817
|
-
},
|
|
2818
|
-
const [
|
|
2817
|
+
}, w) => {
|
|
2818
|
+
const [y, f] = F(
|
|
2819
2819
|
null
|
|
2820
|
-
),
|
|
2821
|
-
|
|
2820
|
+
), v = (D) => {
|
|
2821
|
+
y && y(!1), f(() => D);
|
|
2822
2822
|
};
|
|
2823
|
-
return /* @__PURE__ */ s("div", { ref:
|
|
2823
|
+
return /* @__PURE__ */ s("div", { ref: w, ...L, className: m(bt, i), "data-testid": N, children: We.map(e, (D, V) => xe(D) ? De(D, {
|
|
2824
2824
|
// <AccordionProps> to ensure child component sees parent specification in code
|
|
2825
2825
|
...D.props,
|
|
2826
2826
|
// Merge existing props from the child
|
|
@@ -2833,10 +2833,10 @@ const J = (e) => {
|
|
|
2833
2833
|
// className for child component
|
|
2834
2834
|
classNameContent: m(o, D.props.classNameContent),
|
|
2835
2835
|
singleOpen: a,
|
|
2836
|
-
onExpand: (
|
|
2836
|
+
onExpand: (b) => v(b),
|
|
2837
2837
|
// Pass expansion handler to child
|
|
2838
2838
|
// child defaults to true, so if false, use child/false value
|
|
2839
|
-
hr: D.props.hr === !1 ? !1 :
|
|
2839
|
+
hr: D.props.hr === !1 ? !1 : x,
|
|
2840
2840
|
classNameHr: m(g, D.props.classNameHr),
|
|
2841
2841
|
useBackground: D.props.useBackground === !1 ? !1 : h,
|
|
2842
2842
|
index: V
|
|
@@ -2856,64 +2856,64 @@ const J = (e) => {
|
|
|
2856
2856
|
variant: a = "default",
|
|
2857
2857
|
setSelectedOption: u,
|
|
2858
2858
|
error: o = !1,
|
|
2859
|
-
width:
|
|
2859
|
+
width: x = "",
|
|
2860
2860
|
dataTestId: g,
|
|
2861
2861
|
dataTestIdButton: h,
|
|
2862
|
-
dataTestIdList:
|
|
2862
|
+
dataTestIdList: N,
|
|
2863
2863
|
...L
|
|
2864
2864
|
}) => {
|
|
2865
|
-
const
|
|
2865
|
+
const w = Q(null), y = Q(null), f = Q(null), [v, D] = F(!1), [V, b] = F(!1), [$, z] = F(c || "Options"), [A, M] = F(null), O = Q("bottom-[60px]"), [I, T] = F("");
|
|
2866
2866
|
Z(() => {
|
|
2867
|
-
if (
|
|
2868
|
-
const l =
|
|
2869
|
-
|
|
2867
|
+
if (y.current) {
|
|
2868
|
+
const l = y.current.getBoundingClientRect(), _ = Math.floor(l.height) + 2;
|
|
2869
|
+
O.current = "bottom-[" + _ + "px]";
|
|
2870
2870
|
}
|
|
2871
|
-
}, [
|
|
2871
|
+
}, [y.current]);
|
|
2872
2872
|
const U = () => {
|
|
2873
|
-
if (
|
|
2874
|
-
const l =
|
|
2875
|
-
(S > E ? E : S) - l.bottom <
|
|
2873
|
+
if (w.current && f.current) {
|
|
2874
|
+
const l = w.current.getBoundingClientRect(), _ = f.current.offsetHeight, S = window.innerHeight, E = document.body.offsetHeight;
|
|
2875
|
+
(S > E ? E : S) - l.bottom < _ && l.top > _ ? b(!0) : b(!1);
|
|
2876
2876
|
}
|
|
2877
2877
|
}, H = Q([]);
|
|
2878
2878
|
Z(() => {
|
|
2879
2879
|
H.current = H.current.slice(0, r.length);
|
|
2880
2880
|
}, [r]);
|
|
2881
|
-
const [
|
|
2882
|
-
D(!
|
|
2881
|
+
const [p, d] = F(0), C = () => {
|
|
2882
|
+
D(!v), d(0);
|
|
2883
2883
|
};
|
|
2884
2884
|
Z(() => {
|
|
2885
|
-
|
|
2885
|
+
T(o ? "border-2 border-[#ff0004] pl-[15px]" : "");
|
|
2886
2886
|
}, [o]), Z(() => {
|
|
2887
2887
|
function l(E) {
|
|
2888
|
-
|
|
2888
|
+
v && w.current && !w.current.contains(E.target) && D(!1);
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2891
|
-
|
|
2890
|
+
function _(E) {
|
|
2891
|
+
v && E.key === "Escape" && D(!1);
|
|
2892
2892
|
}
|
|
2893
2893
|
function S(E) {
|
|
2894
|
-
|
|
2894
|
+
v && w.current && !w.current.contains(E.target) && D(!1);
|
|
2895
2895
|
}
|
|
2896
|
-
return document.addEventListener("mousedown", l), document.addEventListener("touchend", l), document.addEventListener("keydown",
|
|
2897
|
-
document.removeEventListener("mousedown", l), document.removeEventListener("touchend", l), document.removeEventListener("keydown",
|
|
2896
|
+
return document.addEventListener("mousedown", l), document.addEventListener("touchend", l), document.addEventListener("keydown", _), document.addEventListener("focusin", S), () => {
|
|
2897
|
+
document.removeEventListener("mousedown", l), document.removeEventListener("touchend", l), document.removeEventListener("keydown", _), document.removeEventListener("focusin", S);
|
|
2898
2898
|
};
|
|
2899
|
-
}, [
|
|
2900
|
-
|
|
2901
|
-
}, [
|
|
2902
|
-
|
|
2903
|
-
}, [
|
|
2904
|
-
const
|
|
2905
|
-
if (
|
|
2899
|
+
}, [v]), Z(() => {
|
|
2900
|
+
v && U();
|
|
2901
|
+
}, [v]), Z(() => {
|
|
2902
|
+
v && H.current[p]?.focus();
|
|
2903
|
+
}, [p, v]);
|
|
2904
|
+
const k = (l) => {
|
|
2905
|
+
if (v)
|
|
2906
2906
|
switch (l.key) {
|
|
2907
2907
|
case "ArrowDown":
|
|
2908
|
-
l.preventDefault(), d((
|
|
2909
|
-
const S = (
|
|
2910
|
-
return
|
|
2908
|
+
l.preventDefault(), d((_) => {
|
|
2909
|
+
const S = (_ + 1) % r.length;
|
|
2910
|
+
return M(S), S;
|
|
2911
2911
|
});
|
|
2912
2912
|
break;
|
|
2913
2913
|
case "ArrowUp":
|
|
2914
|
-
l.preventDefault(), d((
|
|
2915
|
-
const S = (
|
|
2916
|
-
return
|
|
2914
|
+
l.preventDefault(), d((_) => {
|
|
2915
|
+
const S = (_ - 1 + r.length) % r.length;
|
|
2916
|
+
return M(S), S;
|
|
2917
2917
|
});
|
|
2918
2918
|
break;
|
|
2919
2919
|
case "Home":
|
|
@@ -2928,7 +2928,7 @@ const J = (e) => {
|
|
|
2928
2928
|
"div",
|
|
2929
2929
|
{
|
|
2930
2930
|
className: m("relative inline-block text-left w-[292px] md:w-[343px] lg:w-[600px] max-w-full", t),
|
|
2931
|
-
ref:
|
|
2931
|
+
ref: w,
|
|
2932
2932
|
...L,
|
|
2933
2933
|
"aria-disabled": i,
|
|
2934
2934
|
"data-testid": g,
|
|
@@ -2937,59 +2937,59 @@ const J = (e) => {
|
|
|
2937
2937
|
/* @__PURE__ */ B(
|
|
2938
2938
|
"button",
|
|
2939
2939
|
{
|
|
2940
|
-
onClick:
|
|
2941
|
-
ref:
|
|
2940
|
+
onClick: C,
|
|
2941
|
+
ref: y,
|
|
2942
2942
|
className: m(
|
|
2943
2943
|
yt,
|
|
2944
2944
|
e2[a] || e2.default,
|
|
2945
|
-
|
|
2945
|
+
I,
|
|
2946
2946
|
e,
|
|
2947
|
-
|
|
2947
|
+
v && V && "rounded-b-lg" || v && !V && "rounded-t-lg" || "rounded-lg"
|
|
2948
2948
|
),
|
|
2949
|
-
"aria-label": "Select options - " +
|
|
2949
|
+
"aria-label": "Select options - " + $,
|
|
2950
2950
|
"aria-disabled": i,
|
|
2951
|
-
"aria-expanded":
|
|
2951
|
+
"aria-expanded": v,
|
|
2952
2952
|
"aria-haspopup": "listbox",
|
|
2953
2953
|
disabled: i,
|
|
2954
2954
|
"data-testid": h,
|
|
2955
2955
|
tabIndex: 0,
|
|
2956
2956
|
children: [
|
|
2957
|
-
|
|
2958
|
-
|
|
2957
|
+
$,
|
|
2958
|
+
v ? a === "fill" ? /* @__PURE__ */ s("img", { src: Ct, alt: "chevron up" }) : /* @__PURE__ */ s("img", { src: L2, alt: "chevron up" }) : a === "fill" ? /* @__PURE__ */ s("img", { src: vt, alt: "chevron down" }) : /* @__PURE__ */ s("img", { src: M2, alt: "chevron down" })
|
|
2959
2959
|
]
|
|
2960
2960
|
}
|
|
2961
2961
|
),
|
|
2962
|
-
|
|
2962
|
+
v && /* @__PURE__ */ s(
|
|
2963
2963
|
"div",
|
|
2964
2964
|
{
|
|
2965
2965
|
role: "listbox",
|
|
2966
|
-
"data-testid":
|
|
2967
|
-
ref:
|
|
2966
|
+
"data-testid": N,
|
|
2967
|
+
ref: f,
|
|
2968
2968
|
"aria-label": "Select option",
|
|
2969
|
-
onKeyDown:
|
|
2969
|
+
onKeyDown: k,
|
|
2970
2970
|
className: m(
|
|
2971
2971
|
"absolute w-full shadow-lg bg-white ring-1 ring-white/5 focus:outline-hidden z-10 ",
|
|
2972
|
-
|
|
2973
|
-
V &&
|
|
2972
|
+
v && V && "rounded-t-lg pt-1" || v && !V && "rounded-b-lg pb-1",
|
|
2973
|
+
V && O.current
|
|
2974
2974
|
),
|
|
2975
|
-
children: r.map((l,
|
|
2975
|
+
children: r.map((l, _) => (
|
|
2976
2976
|
// <li key={item.name}>
|
|
2977
2977
|
/* @__PURE__ */ s(
|
|
2978
2978
|
"button",
|
|
2979
2979
|
{
|
|
2980
2980
|
ref: (S) => {
|
|
2981
|
-
H.current[
|
|
2981
|
+
H.current[_] = S;
|
|
2982
2982
|
},
|
|
2983
2983
|
className: `block w-full px-4 py-2 text-left text-base text-gray-700
|
|
2984
2984
|
hover:bg-[#092068]/20 focus:outline-hidden focus:bg-[#092068]/20`,
|
|
2985
2985
|
role: "option",
|
|
2986
|
-
"aria-selected": A ===
|
|
2986
|
+
"aria-selected": A === _,
|
|
2987
2987
|
"aria-label": "option " + l.name,
|
|
2988
2988
|
onClick: () => {
|
|
2989
|
-
|
|
2989
|
+
M(_), z(l.name), u(l.value || l.name), D(!1);
|
|
2990
2990
|
},
|
|
2991
2991
|
onKeyDown: (S) => {
|
|
2992
|
-
S.key === "Enter" || S.code === "Enter" || S.key === " " ? (
|
|
2992
|
+
S.key === "Enter" || S.code === "Enter" || S.key === " " ? (M(_), z(l.name), u(l.value || l.name), D(!1)) : S.key === "Escape" && D(!1);
|
|
2993
2993
|
},
|
|
2994
2994
|
children: l.name
|
|
2995
2995
|
},
|
|
@@ -3017,8 +3017,8 @@ const J = (e) => {
|
|
|
3017
3017
|
o = `${a % 12 === 0 ? 12 : a % 12}:${u.toString().padStart(2, "0")} ${g}`;
|
|
3018
3018
|
} else
|
|
3019
3019
|
o = `${a.toString().padStart(2, "0")}:${u.toString().padStart(2, "0")}`;
|
|
3020
|
-
const
|
|
3021
|
-
c.push({ name: o, value:
|
|
3020
|
+
const x = `${a.toString().padStart(2, "0")}:${u.toString().padStart(2, "0")}`;
|
|
3021
|
+
c.push({ name: o, value: x });
|
|
3022
3022
|
}
|
|
3023
3023
|
return c;
|
|
3024
3024
|
}, j0 = ({
|
|
@@ -3031,26 +3031,26 @@ const J = (e) => {
|
|
|
3031
3031
|
optionsLabel: a = "Select a time",
|
|
3032
3032
|
variant: u = "default",
|
|
3033
3033
|
setSelectedOption: o,
|
|
3034
|
-
width:
|
|
3034
|
+
width: x = "",
|
|
3035
3035
|
dataTestId: g,
|
|
3036
3036
|
dataTestIdButton: h,
|
|
3037
|
-
dataTestIdList:
|
|
3037
|
+
dataTestIdList: N,
|
|
3038
3038
|
...L
|
|
3039
3039
|
}) => {
|
|
3040
|
-
const
|
|
3041
|
-
return console.log(n), console.log(
|
|
3040
|
+
const w = Mt(n, r, c);
|
|
3041
|
+
return console.log(n), console.log(w), /* @__PURE__ */ s(
|
|
3042
3042
|
kt,
|
|
3043
3043
|
{
|
|
3044
3044
|
className: e,
|
|
3045
3045
|
classNameContainer: t,
|
|
3046
3046
|
label: i,
|
|
3047
3047
|
optionsLabel: a,
|
|
3048
|
-
options:
|
|
3048
|
+
options: w,
|
|
3049
3049
|
variant: u,
|
|
3050
|
-
width:
|
|
3050
|
+
width: x,
|
|
3051
3051
|
dataTestId: g,
|
|
3052
3052
|
dataTestIdButton: h,
|
|
3053
|
-
dataTestIdList:
|
|
3053
|
+
dataTestIdList: N,
|
|
3054
3054
|
setSelectedOption: () => o
|
|
3055
3055
|
}
|
|
3056
3056
|
);
|
|
@@ -3091,7 +3091,7 @@ const J = (e) => {
|
|
|
3091
3091
|
dataTestId: a,
|
|
3092
3092
|
dataTestIdIcon: u,
|
|
3093
3093
|
dataTestIdContent: o,
|
|
3094
|
-
...
|
|
3094
|
+
...x
|
|
3095
3095
|
}, g) => {
|
|
3096
3096
|
const h = St[e];
|
|
3097
3097
|
return /* @__PURE__ */ B(
|
|
@@ -3099,7 +3099,7 @@ const J = (e) => {
|
|
|
3099
3099
|
{
|
|
3100
3100
|
className: m(ke[e].className, t),
|
|
3101
3101
|
ref: g,
|
|
3102
|
-
...
|
|
3102
|
+
...x,
|
|
3103
3103
|
"data-testid": a,
|
|
3104
3104
|
children: [
|
|
3105
3105
|
c ? /* @__PURE__ */ s("span", { className: m(ke[e].classNameImage, n), "data-testid": u, children: c }) : /* @__PURE__ */ s(
|
|
@@ -3137,34 +3137,34 @@ const zt = {
|
|
|
3137
3137
|
classNameIconSeparator: u = "stroke-[#747476]",
|
|
3138
3138
|
// separator = separatorSvg,
|
|
3139
3139
|
...o
|
|
3140
|
-
},
|
|
3141
|
-
const g = Q(null), [h,
|
|
3140
|
+
}, x) => {
|
|
3141
|
+
const g = Q(null), [h, N] = F("/"), [L, w] = F(!1), [y, f] = F(), [v, D] = F(0), { pathname: V } = B2(), b = je(() => r && r.length > 0 ? (N(r[0].route), r.slice(1)) : V.split("/").filter(Boolean).map((A, M, O) => ({
|
|
3142
3142
|
name: Vt(decodeURIComponent(A)),
|
|
3143
|
-
route: "/" +
|
|
3143
|
+
route: "/" + O.slice(0, M + 1).join("/")
|
|
3144
3144
|
})), [r, V]);
|
|
3145
3145
|
Z(() => {
|
|
3146
3146
|
const z = g.current;
|
|
3147
3147
|
z && D(z.offsetWidth);
|
|
3148
3148
|
}, []);
|
|
3149
|
-
const
|
|
3149
|
+
const $ = () => {
|
|
3150
3150
|
const z = g.current;
|
|
3151
|
-
(z && !
|
|
3151
|
+
(z && !y || z && y && Date.now() > y + 200) && (L ? z.clientWidth > v && w(!1) : z.scrollWidth > z.clientWidth && w(!0), f(Date.now()));
|
|
3152
3152
|
};
|
|
3153
3153
|
return Z(() => {
|
|
3154
3154
|
const z = g.current;
|
|
3155
3155
|
if (!z)
|
|
3156
3156
|
return;
|
|
3157
|
-
|
|
3158
|
-
const A = new ResizeObserver(
|
|
3157
|
+
b.length > 2 ? $() : w(!1);
|
|
3158
|
+
const A = new ResizeObserver($);
|
|
3159
3159
|
return A.observe(z), () => {
|
|
3160
3160
|
A.disconnect();
|
|
3161
3161
|
};
|
|
3162
|
-
}, [
|
|
3162
|
+
}, [y, b]), /* @__PURE__ */ s(
|
|
3163
3163
|
"nav",
|
|
3164
3164
|
{
|
|
3165
3165
|
className: m(zt[c], e),
|
|
3166
3166
|
...o,
|
|
3167
|
-
ref:
|
|
3167
|
+
ref: x,
|
|
3168
3168
|
"aria-label": "Breadcrumbs",
|
|
3169
3169
|
"data-testid": a,
|
|
3170
3170
|
children: /* @__PURE__ */ B(
|
|
@@ -3194,16 +3194,16 @@ const zt = {
|
|
|
3194
3194
|
"capitalize me-2 inline-flex md:hidden",
|
|
3195
3195
|
t
|
|
3196
3196
|
),
|
|
3197
|
-
children:
|
|
3197
|
+
children: b?.length > 0 ? /* @__PURE__ */ s(t2, { className: n }) : /* @__PURE__ */ s(t2, { className: n })
|
|
3198
3198
|
}
|
|
3199
3199
|
),
|
|
3200
|
-
|
|
3200
|
+
b.length > 0 ? /* @__PURE__ */ s("span", { className: m("me-2", t), children: /* @__PURE__ */ s(Te, { className: u }) }) : ""
|
|
3201
3201
|
] }),
|
|
3202
3202
|
/* @__PURE__ */ s(
|
|
3203
3203
|
"span",
|
|
3204
3204
|
{
|
|
3205
3205
|
className: "",
|
|
3206
|
-
children:
|
|
3206
|
+
children: b.map((z, A) => L ? /* @__PURE__ */ s("span", { className: "inline-flex items-center shrink-0 text-nowrap", children: A === b.length - 1 ? /* @__PURE__ */ B(ae, { children: [
|
|
3207
3207
|
/* @__PURE__ */ s("span", { className: "text-nowrap me-3", children: "..." }),
|
|
3208
3208
|
/* @__PURE__ */ s("span", { className: m("me-3", t), children: /* @__PURE__ */ s(Te, { className: u }) }),
|
|
3209
3209
|
/* @__PURE__ */ s(
|
|
@@ -3219,7 +3219,7 @@ const zt = {
|
|
|
3219
3219
|
{
|
|
3220
3220
|
className: "breadcrumb-item inline-flex items-center shrink-0",
|
|
3221
3221
|
children: [
|
|
3222
|
-
A ===
|
|
3222
|
+
A === b.length - 1 ? (
|
|
3223
3223
|
// Render the current page as plain text (last item in list)
|
|
3224
3224
|
/* @__PURE__ */ s(
|
|
3225
3225
|
"span",
|
|
@@ -3243,7 +3243,7 @@ const zt = {
|
|
|
3243
3243
|
}
|
|
3244
3244
|
)
|
|
3245
3245
|
),
|
|
3246
|
-
A <
|
|
3246
|
+
A < b.length - 1 && // <span className={twMerge("me-3", className)}><img src={separator} alt='vector'></img></span>
|
|
3247
3247
|
/* @__PURE__ */ s("span", { className: m("me-3", t), children: /* @__PURE__ */ s(Te, { className: u }) })
|
|
3248
3248
|
]
|
|
3249
3249
|
},
|
|
@@ -3317,41 +3317,41 @@ const zt = {
|
|
|
3317
3317
|
icon: a,
|
|
3318
3318
|
iconLeft: u,
|
|
3319
3319
|
iconRight: o,
|
|
3320
|
-
iconPosition:
|
|
3320
|
+
iconPosition: x,
|
|
3321
3321
|
variant: g = "default",
|
|
3322
3322
|
dataTestId: h,
|
|
3323
|
-
type:
|
|
3323
|
+
type: N = "button",
|
|
3324
3324
|
children: L,
|
|
3325
|
-
selected:
|
|
3326
|
-
classNameSelected:
|
|
3327
|
-
classNameGroup:
|
|
3328
|
-
...
|
|
3325
|
+
selected: w = !1,
|
|
3326
|
+
classNameSelected: y,
|
|
3327
|
+
classNameGroup: f = "",
|
|
3328
|
+
...v
|
|
3329
3329
|
}, D) => {
|
|
3330
|
-
const [V,
|
|
3330
|
+
const [V, b] = F("");
|
|
3331
3331
|
Z(() => {
|
|
3332
3332
|
let A = Ye[g].normal || Ye.default.normal;
|
|
3333
|
-
|
|
3334
|
-
}, [
|
|
3335
|
-
const
|
|
3333
|
+
w && !y ? A = m(A, Ye[g].selected) : w && y && (A = m(A, y)), b(m(Ht, A));
|
|
3334
|
+
}, [w, y, g]);
|
|
3335
|
+
const $ = u ?? (a && (x === "left" || x === "both") ? a : void 0), z = o ?? (a && (x === "right" || x === "both") ? a : void 0);
|
|
3336
3336
|
return /* @__PURE__ */ B(
|
|
3337
3337
|
"button",
|
|
3338
3338
|
{
|
|
3339
|
-
type:
|
|
3339
|
+
type: N,
|
|
3340
3340
|
onClick: t,
|
|
3341
3341
|
"data-testid": h,
|
|
3342
|
-
className: `${
|
|
3342
|
+
className: `${x === "iconOnly" ? m(
|
|
3343
3343
|
V,
|
|
3344
3344
|
"px-[12px] md:px-[14px] lg:px-[16px] py-[8px] md:py-[12px] lg:py-[16px]",
|
|
3345
|
-
|
|
3345
|
+
f,
|
|
3346
3346
|
// passed in from ButtonGroup if present
|
|
3347
3347
|
n
|
|
3348
3348
|
// dev over-rides
|
|
3349
|
-
) : m(V,
|
|
3349
|
+
) : m(V, f, n)}`,
|
|
3350
3350
|
ref: D,
|
|
3351
|
-
...
|
|
3351
|
+
...v,
|
|
3352
3352
|
children: [
|
|
3353
|
-
|
|
3354
|
-
|
|
3353
|
+
$ && /* @__PURE__ */ s("span", { className: m("mr-3", r), children: $ }),
|
|
3354
|
+
x === "iconOnly" && a ? /* @__PURE__ */ s("span", { className: "size-6", children: a }) : /* @__PURE__ */ s("span", { className: m("grow-1", i), children: L || e }),
|
|
3355
3355
|
z && /* @__PURE__ */ s("span", { className: m("ml-3", c), children: z })
|
|
3356
3356
|
]
|
|
3357
3357
|
}
|
|
@@ -3375,17 +3375,17 @@ const Ne = {
|
|
|
3375
3375
|
}, Bt = re(
|
|
3376
3376
|
({ className: e, children: t, classNameButtons: n, variant: r = "default", dataTestId: c, ...i }, a) => {
|
|
3377
3377
|
let u = 0;
|
|
3378
|
-
const o = We.map(t, (
|
|
3379
|
-
if (xe(
|
|
3378
|
+
const o = We.map(t, (N) => {
|
|
3379
|
+
if (xe(N)) {
|
|
3380
3380
|
++u;
|
|
3381
|
-
const L =
|
|
3381
|
+
const L = N, w = L.props.classNameGroup || "";
|
|
3382
3382
|
return De(L, {
|
|
3383
|
-
classNameGroup: m(
|
|
3383
|
+
classNameGroup: m(w, Ne[r].button, n)
|
|
3384
3384
|
});
|
|
3385
3385
|
}
|
|
3386
|
-
return
|
|
3387
|
-
}),
|
|
3388
|
-
return
|
|
3386
|
+
return N;
|
|
3387
|
+
}), x = u === 3 && r === "default", g = o?.slice(0, 2), h = o?.slice(2);
|
|
3388
|
+
return x ? /* @__PURE__ */ B("div", { className: "inline-flex flex-col gap-1", "data-testid": c, children: [
|
|
3389
3389
|
/* @__PURE__ */ s("div", { className: m(Ne[r].container, e), children: g }),
|
|
3390
3390
|
/* @__PURE__ */ s("div", { className: m(Ne[r].container, "justify-center", e), children: h })
|
|
3391
3391
|
] }) : /* @__PURE__ */ s("div", { className: m("", Ne[r].container, e), ref: a, "data-testid": c, children: o });
|
|
@@ -3412,10 +3412,10 @@ const At = {
|
|
|
3412
3412
|
alt: a,
|
|
3413
3413
|
ariaLabel: u = "card component",
|
|
3414
3414
|
dataTestIdContainer: o,
|
|
3415
|
-
dataTestIdImage:
|
|
3415
|
+
dataTestIdImage: x,
|
|
3416
3416
|
dataTestIdChildren: g,
|
|
3417
3417
|
children: h,
|
|
3418
|
-
...
|
|
3418
|
+
...N
|
|
3419
3419
|
}, L) => /* @__PURE__ */ B(
|
|
3420
3420
|
"div",
|
|
3421
3421
|
{
|
|
@@ -3428,13 +3428,13 @@ const At = {
|
|
|
3428
3428
|
"aria-label": u,
|
|
3429
3429
|
ref: L,
|
|
3430
3430
|
"data-testid": o,
|
|
3431
|
-
...
|
|
3431
|
+
...N,
|
|
3432
3432
|
children: [
|
|
3433
3433
|
/* @__PURE__ */ s(
|
|
3434
3434
|
"div",
|
|
3435
3435
|
{
|
|
3436
3436
|
className: m("flex-initial items-center justify-center w-full", i && (t === "default" || t === "imageBottom" ? Et : Ot)),
|
|
3437
|
-
"data-testid":
|
|
3437
|
+
"data-testid": x,
|
|
3438
3438
|
children: r && /* @__PURE__ */ s("img", { src: r, alt: a, className: c })
|
|
3439
3439
|
}
|
|
3440
3440
|
),
|
|
@@ -3455,21 +3455,21 @@ const G0 = ({
|
|
|
3455
3455
|
dataTestId: u,
|
|
3456
3456
|
dataTestIdMessage: o
|
|
3457
3457
|
}) => {
|
|
3458
|
-
const [
|
|
3458
|
+
const [x, g] = F(`${r} characters allowed`), [h, N] = F(!1);
|
|
3459
3459
|
return /* @__PURE__ */ B("div", { className: e, children: [
|
|
3460
3460
|
/* @__PURE__ */ s(
|
|
3461
3461
|
"div",
|
|
3462
3462
|
{
|
|
3463
|
-
onInput: (
|
|
3464
|
-
const
|
|
3465
|
-
if (
|
|
3463
|
+
onInput: (w) => {
|
|
3464
|
+
const f = w.target.value.length;
|
|
3465
|
+
if (N(f > r), f === 0)
|
|
3466
3466
|
g(`${r} characters allowed`);
|
|
3467
|
-
else if (
|
|
3468
|
-
const
|
|
3469
|
-
g(`${r -
|
|
3467
|
+
else if (f <= r) {
|
|
3468
|
+
const v = " " + (i ?? "remaining");
|
|
3469
|
+
g(`${r - f}${v}`);
|
|
3470
3470
|
} else {
|
|
3471
|
-
const
|
|
3472
|
-
g(`${
|
|
3471
|
+
const v = " " + (a ?? "characters too many");
|
|
3472
|
+
g(`${f - r}${v}`);
|
|
3473
3473
|
}
|
|
3474
3474
|
},
|
|
3475
3475
|
className: "mb-2",
|
|
@@ -3482,7 +3482,7 @@ const G0 = ({
|
|
|
3482
3482
|
{
|
|
3483
3483
|
className: m("ml-2", t, h && "text-red-500", h && n),
|
|
3484
3484
|
"data-testid": o,
|
|
3485
|
-
children:
|
|
3485
|
+
children: x
|
|
3486
3486
|
}
|
|
3487
3487
|
),
|
|
3488
3488
|
" "
|
|
@@ -3553,40 +3553,40 @@ function W0({
|
|
|
3553
3553
|
showBranch: a = !0,
|
|
3554
3554
|
onChange: u,
|
|
3555
3555
|
classNameLabel: o,
|
|
3556
|
-
classNameSvgLine:
|
|
3556
|
+
classNameSvgLine: x,
|
|
3557
3557
|
classNameIcon: g,
|
|
3558
3558
|
classNameSvg: h,
|
|
3559
|
-
classNameInput:
|
|
3559
|
+
classNameInput: N,
|
|
3560
3560
|
className: L,
|
|
3561
|
-
customIcons:
|
|
3561
|
+
customIcons: w
|
|
3562
3562
|
}) {
|
|
3563
|
-
const [
|
|
3563
|
+
const [y, f] = F(), v = je(
|
|
3564
3564
|
() => m2.Children.toArray(e).filter(
|
|
3565
|
-
(
|
|
3565
|
+
($) => xe($) && $.type === $2
|
|
3566
3566
|
),
|
|
3567
3567
|
[e]
|
|
3568
3568
|
// execute when children changes
|
|
3569
|
-
), [D, V] =
|
|
3569
|
+
), [D, V] = F(() => v.map(() => "unchecked"));
|
|
3570
3570
|
Z(() => {
|
|
3571
|
-
if (!
|
|
3572
|
-
const { index:
|
|
3573
|
-
if (
|
|
3574
|
-
for (let
|
|
3575
|
-
|
|
3576
|
-
for (let
|
|
3577
|
-
for (let
|
|
3578
|
-
if (
|
|
3579
|
-
|
|
3571
|
+
if (!y) return;
|
|
3572
|
+
const { index: $, status: z } = y, A = v[$].props.level ?? 0, M = [...D];
|
|
3573
|
+
if (M[$] = z, z !== "indeterminate")
|
|
3574
|
+
for (let O = $ + 1; O < M.length && !((v[O].props.level ?? 0) <= A); O++)
|
|
3575
|
+
M[O] = z;
|
|
3576
|
+
for (let O = A - 1; O >= 0; O--)
|
|
3577
|
+
for (let I = $ - 1; I >= 0; I--)
|
|
3578
|
+
if (v[I].props.level === O) {
|
|
3579
|
+
M[I] = qt(v, M, O, I);
|
|
3580
3580
|
break;
|
|
3581
3581
|
}
|
|
3582
|
-
V(
|
|
3583
|
-
}, [
|
|
3584
|
-
const
|
|
3585
|
-
() =>
|
|
3586
|
-
const A = Wt(
|
|
3587
|
-
|
|
3582
|
+
V(M), f(void 0);
|
|
3583
|
+
}, [y]);
|
|
3584
|
+
const b = je(
|
|
3585
|
+
() => v.map(($, z) => {
|
|
3586
|
+
const A = Wt(v, z, t), M = $.props.name, O = $.props.className || L, I = $.props.classNameLabel || o, T = $.props.classNameSvg || h, U = $.props.classNameSvgLine || x, H = $.props.classNameSvg || N, p = $.props.customIcons || w, d = $.props.classNameIcon || g, C = (k, l) => {
|
|
3587
|
+
f({ status: k, index: l }), u && u(k, M);
|
|
3588
3588
|
};
|
|
3589
|
-
return De(
|
|
3589
|
+
return De($, {
|
|
3590
3590
|
iconType: A,
|
|
3591
3591
|
index: z,
|
|
3592
3592
|
fill: n,
|
|
@@ -3594,20 +3594,20 @@ function W0({
|
|
|
3594
3594
|
marker: i,
|
|
3595
3595
|
showBranch: a,
|
|
3596
3596
|
status: D[z],
|
|
3597
|
-
setStatusUpdate:
|
|
3598
|
-
classNameLabel:
|
|
3599
|
-
classNameSvg:
|
|
3597
|
+
setStatusUpdate: C,
|
|
3598
|
+
classNameLabel: I,
|
|
3599
|
+
classNameSvg: T,
|
|
3600
3600
|
classNameSvgLine: U,
|
|
3601
3601
|
classNameInput: H,
|
|
3602
3602
|
classNameIcon: d,
|
|
3603
|
-
className:
|
|
3604
|
-
customIcons:
|
|
3603
|
+
className: O,
|
|
3604
|
+
customIcons: p
|
|
3605
3605
|
});
|
|
3606
3606
|
}),
|
|
3607
|
-
[
|
|
3607
|
+
[v, t, n, c, i, a, D]
|
|
3608
3608
|
// execute when one of these change
|
|
3609
3609
|
);
|
|
3610
|
-
return /* @__PURE__ */ s("div", { "data-testid": r, children:
|
|
3610
|
+
return /* @__PURE__ */ s("div", { "data-testid": r, children: b });
|
|
3611
3611
|
}
|
|
3612
3612
|
const $2 = m2.forwardRef(
|
|
3613
3613
|
({
|
|
@@ -3620,66 +3620,70 @@ const $2 = m2.forwardRef(
|
|
|
3620
3620
|
classNameSvgLine: a,
|
|
3621
3621
|
classNameIcon: u,
|
|
3622
3622
|
value: o = "on",
|
|
3623
|
-
fill:
|
|
3623
|
+
fill: x = !1,
|
|
3624
3624
|
level: g = 0,
|
|
3625
3625
|
classNameSvg: h = "",
|
|
3626
|
-
iconType:
|
|
3626
|
+
iconType: N = [],
|
|
3627
3627
|
marker: L = !1,
|
|
3628
|
-
index:
|
|
3629
|
-
setStatusUpdate:
|
|
3630
|
-
status:
|
|
3631
|
-
children:
|
|
3628
|
+
index: w,
|
|
3629
|
+
setStatusUpdate: y,
|
|
3630
|
+
status: f,
|
|
3631
|
+
children: v,
|
|
3632
3632
|
testDataId: D,
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
}, [
|
|
3633
|
+
checked: V = !1,
|
|
3634
|
+
indeterminate: b = !1,
|
|
3635
|
+
showBranch: $ = !0,
|
|
3636
|
+
onChange: z,
|
|
3637
|
+
name: A,
|
|
3638
|
+
...M
|
|
3639
|
+
}, O) => {
|
|
3640
|
+
const [I, T] = F("unchecked"), U = Q(null), [H, p] = F(s2);
|
|
3641
|
+
g2(O, () => U.current), Z(() => {
|
|
3642
|
+
V ? f = "checked" : b && (f = "indeterminate");
|
|
3643
|
+
}, [V, b]), Z(() => {
|
|
3644
|
+
f && T(f);
|
|
3645
|
+
}, [f]), Z(() => {
|
|
3646
|
+
y && w !== void 0 && y(I, w), U.current && (U.current.indeterminate = I === "indeterminate");
|
|
3647
|
+
}, [I]), Z(() => {
|
|
3644
3648
|
if (t) {
|
|
3645
|
-
if (i && i[
|
|
3646
|
-
|
|
3649
|
+
if (i && i[I]) {
|
|
3650
|
+
p(i[I]);
|
|
3647
3651
|
return;
|
|
3648
3652
|
}
|
|
3649
|
-
|
|
3653
|
+
I === "checked" ? p(x ? L ? Pt : Ft : L ? Zt : Yt) : I === "unchecked" ? p(x ? Ut : s2) : I === "indeterminate" && p(x ? jt : Rt);
|
|
3650
3654
|
}
|
|
3651
|
-
}, [
|
|
3652
|
-
const
|
|
3653
|
-
|
|
3655
|
+
}, [x, t, I, L]);
|
|
3656
|
+
const d = (C) => {
|
|
3657
|
+
C.target.checked ? (T("checked"), typeof z == "function" && z("checked", A)) : (T("unchecked"), typeof z == "function" && z("unchecked", A));
|
|
3654
3658
|
};
|
|
3655
3659
|
return /* @__PURE__ */ B("div", { className: m("flex items-center", e), "data-testid": D, children: [
|
|
3656
|
-
|
|
3660
|
+
N.map((C, k) => /* @__PURE__ */ s(
|
|
3657
3661
|
Kt,
|
|
3658
3662
|
{
|
|
3659
|
-
type:
|
|
3663
|
+
type: $ ? C : "blank",
|
|
3660
3664
|
icon: t,
|
|
3661
3665
|
className: h,
|
|
3662
3666
|
classNameLine: m("h-full border", a)
|
|
3663
3667
|
},
|
|
3664
|
-
|
|
3668
|
+
k
|
|
3665
3669
|
)),
|
|
3666
3670
|
/* @__PURE__ */ B("label", { className: m("inline-flex items-center gap-1 text-base md:text-lg", c), children: [
|
|
3667
3671
|
/* @__PURE__ */ s(
|
|
3668
3672
|
"input",
|
|
3669
3673
|
{
|
|
3670
|
-
ref:
|
|
3674
|
+
ref: U,
|
|
3671
3675
|
type: "checkbox",
|
|
3672
3676
|
value: o,
|
|
3673
|
-
name:
|
|
3674
|
-
checked:
|
|
3677
|
+
name: A,
|
|
3678
|
+
checked: I !== "indeterminate" && I === "checked",
|
|
3675
3679
|
"aria-label": r,
|
|
3676
3680
|
className: m("", n, t && "hidden"),
|
|
3677
|
-
onChange:
|
|
3678
|
-
...
|
|
3681
|
+
onChange: d,
|
|
3682
|
+
...M
|
|
3679
3683
|
}
|
|
3680
3684
|
),
|
|
3681
|
-
t && /* @__PURE__ */ s("img", { alt:
|
|
3682
|
-
|
|
3685
|
+
t && /* @__PURE__ */ s("img", { alt: I, src: H, className: u }),
|
|
3686
|
+
v
|
|
3683
3687
|
] })
|
|
3684
3688
|
] });
|
|
3685
3689
|
}
|
|
@@ -3693,7 +3697,7 @@ const Kt = ({
|
|
|
3693
3697
|
className: c,
|
|
3694
3698
|
classNameLine: i
|
|
3695
3699
|
}) => {
|
|
3696
|
-
const [a, u] =
|
|
3700
|
+
const [a, u] = F(m("w-4 h-7", r && "ms-1"));
|
|
3697
3701
|
if (Z(() => {
|
|
3698
3702
|
u(m(a, c));
|
|
3699
3703
|
}, [c]), n === "sibling")
|
|
@@ -3796,107 +3800,107 @@ function Jt() {
|
|
|
3796
3800
|
(function(n, r) {
|
|
3797
3801
|
e.exports = r();
|
|
3798
3802
|
})(Xt, function() {
|
|
3799
|
-
var n = 1e3, r = 6e4, c = 36e5, i = "millisecond", a = "second", u = "minute", o = "hour",
|
|
3800
|
-
var d = ["th", "st", "nd", "rd"],
|
|
3801
|
-
return "[" +
|
|
3802
|
-
} }, V = function(
|
|
3803
|
-
var
|
|
3804
|
-
return !
|
|
3805
|
-
},
|
|
3806
|
-
var d = -
|
|
3807
|
-
return (d <= 0 ? "+" : "-") + V(
|
|
3808
|
-
}, m: function
|
|
3809
|
-
if (d.date() <
|
|
3810
|
-
var
|
|
3811
|
-
return +(-(
|
|
3812
|
-
}, a: function(
|
|
3813
|
-
return
|
|
3814
|
-
}, p: function(
|
|
3815
|
-
return { M: h, y: L, w: g, d:
|
|
3816
|
-
}, u: function(
|
|
3817
|
-
return
|
|
3818
|
-
} },
|
|
3819
|
-
z[
|
|
3820
|
-
var A = "$isDayjsObject",
|
|
3821
|
-
return
|
|
3822
|
-
},
|
|
3803
|
+
var n = 1e3, r = 6e4, c = 36e5, i = "millisecond", a = "second", u = "minute", o = "hour", x = "day", g = "week", h = "month", N = "quarter", L = "year", w = "date", y = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(p) {
|
|
3804
|
+
var d = ["th", "st", "nd", "rd"], C = p % 100;
|
|
3805
|
+
return "[" + p + (d[(C - 20) % 10] || d[C] || d[0]) + "]";
|
|
3806
|
+
} }, V = function(p, d, C) {
|
|
3807
|
+
var k = String(p);
|
|
3808
|
+
return !k || k.length >= d ? p : "" + Array(d + 1 - k.length).join(C) + p;
|
|
3809
|
+
}, b = { s: V, z: function(p) {
|
|
3810
|
+
var d = -p.utcOffset(), C = Math.abs(d), k = Math.floor(C / 60), l = C % 60;
|
|
3811
|
+
return (d <= 0 ? "+" : "-") + V(k, 2, "0") + ":" + V(l, 2, "0");
|
|
3812
|
+
}, m: function p(d, C) {
|
|
3813
|
+
if (d.date() < C.date()) return -p(C, d);
|
|
3814
|
+
var k = 12 * (C.year() - d.year()) + (C.month() - d.month()), l = d.clone().add(k, h), _ = C - l < 0, S = d.clone().add(k + (_ ? -1 : 1), h);
|
|
3815
|
+
return +(-(k + (C - l) / (_ ? l - S : S - l)) || 0);
|
|
3816
|
+
}, a: function(p) {
|
|
3817
|
+
return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
|
|
3818
|
+
}, p: function(p) {
|
|
3819
|
+
return { M: h, y: L, w: g, d: x, D: w, h: o, m: u, s: a, ms: i, Q: N }[p] || String(p || "").toLowerCase().replace(/s$/, "");
|
|
3820
|
+
}, u: function(p) {
|
|
3821
|
+
return p === void 0;
|
|
3822
|
+
} }, $ = "en", z = {};
|
|
3823
|
+
z[$] = D;
|
|
3824
|
+
var A = "$isDayjsObject", M = function(p) {
|
|
3825
|
+
return p instanceof U || !(!p || !p[A]);
|
|
3826
|
+
}, O = function p(d, C, k) {
|
|
3823
3827
|
var l;
|
|
3824
|
-
if (!d) return
|
|
3828
|
+
if (!d) return $;
|
|
3825
3829
|
if (typeof d == "string") {
|
|
3826
|
-
var
|
|
3827
|
-
z[
|
|
3830
|
+
var _ = d.toLowerCase();
|
|
3831
|
+
z[_] && (l = _), C && (z[_] = C, l = _);
|
|
3828
3832
|
var S = d.split("-");
|
|
3829
|
-
if (!l && S.length > 1) return
|
|
3833
|
+
if (!l && S.length > 1) return p(S[0]);
|
|
3830
3834
|
} else {
|
|
3831
3835
|
var E = d.name;
|
|
3832
3836
|
z[E] = d, l = E;
|
|
3833
3837
|
}
|
|
3834
|
-
return !
|
|
3835
|
-
},
|
|
3836
|
-
if (
|
|
3837
|
-
var
|
|
3838
|
-
return
|
|
3839
|
-
},
|
|
3840
|
-
|
|
3841
|
-
return
|
|
3838
|
+
return !k && l && ($ = l), l || !k && $;
|
|
3839
|
+
}, I = function(p, d) {
|
|
3840
|
+
if (M(p)) return p.clone();
|
|
3841
|
+
var C = typeof d == "object" ? d : {};
|
|
3842
|
+
return C.date = p, C.args = arguments, new U(C);
|
|
3843
|
+
}, T = b;
|
|
3844
|
+
T.l = O, T.i = M, T.w = function(p, d) {
|
|
3845
|
+
return I(p, { locale: d.$L, utc: d.$u, x: d.$x, $offset: d.$offset });
|
|
3842
3846
|
};
|
|
3843
3847
|
var U = function() {
|
|
3844
|
-
function
|
|
3845
|
-
this.$L =
|
|
3848
|
+
function p(C) {
|
|
3849
|
+
this.$L = O(C.locale, null, !0), this.parse(C), this.$x = this.$x || C.x || {}, this[A] = !0;
|
|
3846
3850
|
}
|
|
3847
|
-
var d =
|
|
3848
|
-
return d.parse = function(
|
|
3849
|
-
this.$d = function(
|
|
3850
|
-
var l =
|
|
3851
|
+
var d = p.prototype;
|
|
3852
|
+
return d.parse = function(C) {
|
|
3853
|
+
this.$d = function(k) {
|
|
3854
|
+
var l = k.date, _ = k.utc;
|
|
3851
3855
|
if (l === null) return /* @__PURE__ */ new Date(NaN);
|
|
3852
|
-
if (
|
|
3856
|
+
if (T.u(l)) return /* @__PURE__ */ new Date();
|
|
3853
3857
|
if (l instanceof Date) return new Date(l);
|
|
3854
3858
|
if (typeof l == "string" && !/Z$/i.test(l)) {
|
|
3855
|
-
var S = l.match(
|
|
3859
|
+
var S = l.match(f);
|
|
3856
3860
|
if (S) {
|
|
3857
3861
|
var E = S[2] - 1 || 0, P = (S[7] || "0").substring(0, 3);
|
|
3858
|
-
return
|
|
3862
|
+
return _ ? new Date(Date.UTC(S[1], E, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, P)) : new Date(S[1], E, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, P);
|
|
3859
3863
|
}
|
|
3860
3864
|
}
|
|
3861
3865
|
return new Date(l);
|
|
3862
|
-
}(
|
|
3866
|
+
}(C), this.init();
|
|
3863
3867
|
}, d.init = function() {
|
|
3864
|
-
var
|
|
3865
|
-
this.$y =
|
|
3868
|
+
var C = this.$d;
|
|
3869
|
+
this.$y = C.getFullYear(), this.$M = C.getMonth(), this.$D = C.getDate(), this.$W = C.getDay(), this.$H = C.getHours(), this.$m = C.getMinutes(), this.$s = C.getSeconds(), this.$ms = C.getMilliseconds();
|
|
3866
3870
|
}, d.$utils = function() {
|
|
3867
|
-
return
|
|
3871
|
+
return T;
|
|
3868
3872
|
}, d.isValid = function() {
|
|
3869
|
-
return this.$d.toString() !==
|
|
3870
|
-
}, d.isSame = function(
|
|
3871
|
-
var l =
|
|
3872
|
-
return this.startOf(
|
|
3873
|
-
}, d.isAfter = function(
|
|
3874
|
-
return
|
|
3875
|
-
}, d.isBefore = function(
|
|
3876
|
-
return this.endOf(
|
|
3877
|
-
}, d.$g = function(
|
|
3878
|
-
return
|
|
3873
|
+
return this.$d.toString() !== y;
|
|
3874
|
+
}, d.isSame = function(C, k) {
|
|
3875
|
+
var l = I(C);
|
|
3876
|
+
return this.startOf(k) <= l && l <= this.endOf(k);
|
|
3877
|
+
}, d.isAfter = function(C, k) {
|
|
3878
|
+
return I(C) < this.startOf(k);
|
|
3879
|
+
}, d.isBefore = function(C, k) {
|
|
3880
|
+
return this.endOf(k) < I(C);
|
|
3881
|
+
}, d.$g = function(C, k, l) {
|
|
3882
|
+
return T.u(C) ? this[k] : this.set(l, C);
|
|
3879
3883
|
}, d.unix = function() {
|
|
3880
3884
|
return Math.floor(this.valueOf() / 1e3);
|
|
3881
3885
|
}, d.valueOf = function() {
|
|
3882
3886
|
return this.$d.getTime();
|
|
3883
|
-
}, d.startOf = function(
|
|
3884
|
-
var l = this,
|
|
3885
|
-
var ee =
|
|
3886
|
-
return
|
|
3887
|
+
}, d.startOf = function(C, k) {
|
|
3888
|
+
var l = this, _ = !!T.u(k) || k, S = T.p(C), E = function(se, X) {
|
|
3889
|
+
var ee = T.w(l.$u ? Date.UTC(l.$y, X, se) : new Date(l.$y, X, se), l);
|
|
3890
|
+
return _ ? ee : ee.endOf(x);
|
|
3887
3891
|
}, P = function(se, X) {
|
|
3888
|
-
return
|
|
3892
|
+
return T.w(l.toDate()[se].apply(l.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), l);
|
|
3889
3893
|
}, j = this.$W, W = this.$M, K = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
|
3890
3894
|
switch (S) {
|
|
3891
3895
|
case L:
|
|
3892
|
-
return
|
|
3896
|
+
return _ ? E(1, 0) : E(31, 11);
|
|
3893
3897
|
case h:
|
|
3894
|
-
return
|
|
3898
|
+
return _ ? E(1, W) : E(0, W + 1);
|
|
3895
3899
|
case g:
|
|
3896
3900
|
var q = this.$locale().weekStart || 0, oe = (j < q ? j + 7 : j) - q;
|
|
3897
|
-
return E(
|
|
3898
|
-
case b:
|
|
3901
|
+
return E(_ ? K - oe : K + (6 - oe), W);
|
|
3899
3902
|
case x:
|
|
3903
|
+
case w:
|
|
3900
3904
|
return P(te + "Hours", 0);
|
|
3901
3905
|
case o:
|
|
3902
3906
|
return P(te + "Minutes", 1);
|
|
@@ -3907,76 +3911,76 @@ function Jt() {
|
|
|
3907
3911
|
default:
|
|
3908
3912
|
return this.clone();
|
|
3909
3913
|
}
|
|
3910
|
-
}, d.endOf = function(
|
|
3911
|
-
return this.startOf(
|
|
3912
|
-
}, d.$set = function(
|
|
3913
|
-
var l,
|
|
3914
|
-
if (
|
|
3915
|
-
var j = this.clone().set(
|
|
3916
|
-
j.$d[E](P), j.init(), this.$d = j.set(
|
|
3914
|
+
}, d.endOf = function(C) {
|
|
3915
|
+
return this.startOf(C, !1);
|
|
3916
|
+
}, d.$set = function(C, k) {
|
|
3917
|
+
var l, _ = T.p(C), S = "set" + (this.$u ? "UTC" : ""), E = (l = {}, l[x] = S + "Date", l[w] = S + "Date", l[h] = S + "Month", l[L] = S + "FullYear", l[o] = S + "Hours", l[u] = S + "Minutes", l[a] = S + "Seconds", l[i] = S + "Milliseconds", l)[_], P = _ === x ? this.$D + (k - this.$W) : k;
|
|
3918
|
+
if (_ === h || _ === L) {
|
|
3919
|
+
var j = this.clone().set(w, 1);
|
|
3920
|
+
j.$d[E](P), j.init(), this.$d = j.set(w, Math.min(this.$D, j.daysInMonth())).$d;
|
|
3917
3921
|
} else E && this.$d[E](P);
|
|
3918
3922
|
return this.init(), this;
|
|
3919
|
-
}, d.set = function(
|
|
3920
|
-
return this.clone().$set(
|
|
3921
|
-
}, d.get = function(
|
|
3922
|
-
return this[
|
|
3923
|
-
}, d.add = function(
|
|
3924
|
-
var l,
|
|
3925
|
-
|
|
3926
|
-
var S =
|
|
3927
|
-
var K =
|
|
3928
|
-
return
|
|
3923
|
+
}, d.set = function(C, k) {
|
|
3924
|
+
return this.clone().$set(C, k);
|
|
3925
|
+
}, d.get = function(C) {
|
|
3926
|
+
return this[T.p(C)]();
|
|
3927
|
+
}, d.add = function(C, k) {
|
|
3928
|
+
var l, _ = this;
|
|
3929
|
+
C = Number(C);
|
|
3930
|
+
var S = T.p(k), E = function(W) {
|
|
3931
|
+
var K = I(_);
|
|
3932
|
+
return T.w(K.date(K.date() + Math.round(W * C)), _);
|
|
3929
3933
|
};
|
|
3930
|
-
if (S === h) return this.set(h, this.$M +
|
|
3931
|
-
if (S === L) return this.set(L, this.$y +
|
|
3932
|
-
if (S ===
|
|
3934
|
+
if (S === h) return this.set(h, this.$M + C);
|
|
3935
|
+
if (S === L) return this.set(L, this.$y + C);
|
|
3936
|
+
if (S === x) return E(1);
|
|
3933
3937
|
if (S === g) return E(7);
|
|
3934
|
-
var P = (l = {}, l[u] = r, l[o] = c, l[a] = n, l)[S] || 1, j = this.$d.getTime() +
|
|
3935
|
-
return
|
|
3936
|
-
}, d.subtract = function(
|
|
3937
|
-
return this.add(-1 *
|
|
3938
|
-
}, d.format = function(
|
|
3939
|
-
var
|
|
3940
|
-
if (!this.isValid()) return l.invalidDate ||
|
|
3941
|
-
var
|
|
3942
|
-
return X && (X[ee] || X(
|
|
3938
|
+
var P = (l = {}, l[u] = r, l[o] = c, l[a] = n, l)[S] || 1, j = this.$d.getTime() + C * P;
|
|
3939
|
+
return T.w(j, this);
|
|
3940
|
+
}, d.subtract = function(C, k) {
|
|
3941
|
+
return this.add(-1 * C, k);
|
|
3942
|
+
}, d.format = function(C) {
|
|
3943
|
+
var k = this, l = this.$locale();
|
|
3944
|
+
if (!this.isValid()) return l.invalidDate || y;
|
|
3945
|
+
var _ = C || "YYYY-MM-DDTHH:mm:ssZ", S = T.z(this), E = this.$H, P = this.$m, j = this.$M, W = l.weekdays, K = l.months, te = l.meridiem, q = function(X, ee, ne, ce) {
|
|
3946
|
+
return X && (X[ee] || X(k, _)) || ne[ee].slice(0, ce);
|
|
3943
3947
|
}, oe = function(X) {
|
|
3944
|
-
return
|
|
3948
|
+
return T.s(E % 12 || 12, X, "0");
|
|
3945
3949
|
}, se = te || function(X, ee, ne) {
|
|
3946
3950
|
var ce = X < 12 ? "AM" : "PM";
|
|
3947
3951
|
return ne ? ce.toLowerCase() : ce;
|
|
3948
3952
|
};
|
|
3949
|
-
return
|
|
3953
|
+
return _.replace(v, function(X, ee) {
|
|
3950
3954
|
return ee || function(ne) {
|
|
3951
3955
|
switch (ne) {
|
|
3952
3956
|
case "YY":
|
|
3953
|
-
return String(
|
|
3957
|
+
return String(k.$y).slice(-2);
|
|
3954
3958
|
case "YYYY":
|
|
3955
|
-
return
|
|
3959
|
+
return T.s(k.$y, 4, "0");
|
|
3956
3960
|
case "M":
|
|
3957
3961
|
return j + 1;
|
|
3958
3962
|
case "MM":
|
|
3959
|
-
return
|
|
3963
|
+
return T.s(j + 1, 2, "0");
|
|
3960
3964
|
case "MMM":
|
|
3961
3965
|
return q(l.monthsShort, j, K, 3);
|
|
3962
3966
|
case "MMMM":
|
|
3963
3967
|
return q(K, j);
|
|
3964
3968
|
case "D":
|
|
3965
|
-
return
|
|
3969
|
+
return k.$D;
|
|
3966
3970
|
case "DD":
|
|
3967
|
-
return
|
|
3971
|
+
return T.s(k.$D, 2, "0");
|
|
3968
3972
|
case "d":
|
|
3969
|
-
return String(
|
|
3973
|
+
return String(k.$W);
|
|
3970
3974
|
case "dd":
|
|
3971
|
-
return q(l.weekdaysMin,
|
|
3975
|
+
return q(l.weekdaysMin, k.$W, W, 2);
|
|
3972
3976
|
case "ddd":
|
|
3973
|
-
return q(l.weekdaysShort,
|
|
3977
|
+
return q(l.weekdaysShort, k.$W, W, 3);
|
|
3974
3978
|
case "dddd":
|
|
3975
|
-
return W[
|
|
3979
|
+
return W[k.$W];
|
|
3976
3980
|
case "H":
|
|
3977
3981
|
return String(E);
|
|
3978
3982
|
case "HH":
|
|
3979
|
-
return
|
|
3983
|
+
return T.s(E, 2, "0");
|
|
3980
3984
|
case "h":
|
|
3981
3985
|
return oe(1);
|
|
3982
3986
|
case "hh":
|
|
@@ -3988,13 +3992,13 @@ function Jt() {
|
|
|
3988
3992
|
case "m":
|
|
3989
3993
|
return String(P);
|
|
3990
3994
|
case "mm":
|
|
3991
|
-
return
|
|
3995
|
+
return T.s(P, 2, "0");
|
|
3992
3996
|
case "s":
|
|
3993
|
-
return String(
|
|
3997
|
+
return String(k.$s);
|
|
3994
3998
|
case "ss":
|
|
3995
|
-
return
|
|
3999
|
+
return T.s(k.$s, 2, "0");
|
|
3996
4000
|
case "SSS":
|
|
3997
|
-
return
|
|
4001
|
+
return T.s(k.$ms, 3, "0");
|
|
3998
4002
|
case "Z":
|
|
3999
4003
|
return S;
|
|
4000
4004
|
}
|
|
@@ -4003,49 +4007,49 @@ function Jt() {
|
|
|
4003
4007
|
});
|
|
4004
4008
|
}, d.utcOffset = function() {
|
|
4005
4009
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4006
|
-
}, d.diff = function(
|
|
4007
|
-
var
|
|
4008
|
-
return
|
|
4010
|
+
}, d.diff = function(C, k, l) {
|
|
4011
|
+
var _, S = this, E = T.p(k), P = I(C), j = (P.utcOffset() - this.utcOffset()) * r, W = this - P, K = function() {
|
|
4012
|
+
return T.m(S, P);
|
|
4009
4013
|
};
|
|
4010
4014
|
switch (E) {
|
|
4011
4015
|
case L:
|
|
4012
|
-
|
|
4016
|
+
_ = K() / 12;
|
|
4013
4017
|
break;
|
|
4014
4018
|
case h:
|
|
4015
|
-
|
|
4019
|
+
_ = K();
|
|
4016
4020
|
break;
|
|
4017
|
-
case
|
|
4018
|
-
|
|
4021
|
+
case N:
|
|
4022
|
+
_ = K() / 3;
|
|
4019
4023
|
break;
|
|
4020
4024
|
case g:
|
|
4021
|
-
|
|
4025
|
+
_ = (W - j) / 6048e5;
|
|
4022
4026
|
break;
|
|
4023
|
-
case
|
|
4024
|
-
|
|
4027
|
+
case x:
|
|
4028
|
+
_ = (W - j) / 864e5;
|
|
4025
4029
|
break;
|
|
4026
4030
|
case o:
|
|
4027
|
-
|
|
4031
|
+
_ = W / c;
|
|
4028
4032
|
break;
|
|
4029
4033
|
case u:
|
|
4030
|
-
|
|
4034
|
+
_ = W / r;
|
|
4031
4035
|
break;
|
|
4032
4036
|
case a:
|
|
4033
|
-
|
|
4037
|
+
_ = W / n;
|
|
4034
4038
|
break;
|
|
4035
4039
|
default:
|
|
4036
|
-
|
|
4040
|
+
_ = W;
|
|
4037
4041
|
}
|
|
4038
|
-
return l ?
|
|
4042
|
+
return l ? _ : T.a(_);
|
|
4039
4043
|
}, d.daysInMonth = function() {
|
|
4040
4044
|
return this.endOf(h).$D;
|
|
4041
4045
|
}, d.$locale = function() {
|
|
4042
4046
|
return z[this.$L];
|
|
4043
|
-
}, d.locale = function(
|
|
4044
|
-
if (!
|
|
4045
|
-
var l = this.clone(),
|
|
4046
|
-
return
|
|
4047
|
+
}, d.locale = function(C, k) {
|
|
4048
|
+
if (!C) return this.$L;
|
|
4049
|
+
var l = this.clone(), _ = O(C, k, !0);
|
|
4050
|
+
return _ && (l.$L = _), l;
|
|
4047
4051
|
}, d.clone = function() {
|
|
4048
|
-
return
|
|
4052
|
+
return T.w(this.$d, this);
|
|
4049
4053
|
}, d.toDate = function() {
|
|
4050
4054
|
return new Date(this.valueOf());
|
|
4051
4055
|
}, d.toJSON = function() {
|
|
@@ -4054,17 +4058,17 @@ function Jt() {
|
|
|
4054
4058
|
return this.$d.toISOString();
|
|
4055
4059
|
}, d.toString = function() {
|
|
4056
4060
|
return this.$d.toUTCString();
|
|
4057
|
-
},
|
|
4061
|
+
}, p;
|
|
4058
4062
|
}(), H = U.prototype;
|
|
4059
|
-
return
|
|
4060
|
-
H[
|
|
4061
|
-
return this.$g(d,
|
|
4063
|
+
return I.prototype = H, [["$ms", i], ["$s", a], ["$m", u], ["$H", o], ["$W", x], ["$M", h], ["$y", L], ["$D", w]].forEach(function(p) {
|
|
4064
|
+
H[p[1]] = function(d) {
|
|
4065
|
+
return this.$g(d, p[0], p[1]);
|
|
4062
4066
|
};
|
|
4063
|
-
}),
|
|
4064
|
-
return
|
|
4065
|
-
},
|
|
4066
|
-
return
|
|
4067
|
-
},
|
|
4067
|
+
}), I.extend = function(p, d) {
|
|
4068
|
+
return p.$i || (p(d, U, I), p.$i = !0), I;
|
|
4069
|
+
}, I.locale = O, I.isDayjs = M, I.unix = function(p) {
|
|
4070
|
+
return I(1e3 * p);
|
|
4071
|
+
}, I.en = z[$], I.Ls = z, I.p = {}, I;
|
|
4068
4072
|
});
|
|
4069
4073
|
}(Le)), Le.exports;
|
|
4070
4074
|
}
|
|
@@ -4076,118 +4080,118 @@ function t0() {
|
|
|
4076
4080
|
(function(n, r) {
|
|
4077
4081
|
e.exports = r();
|
|
4078
4082
|
})(e0, function() {
|
|
4079
|
-
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, c = /\d/, i = /\d\d/, a = /\d\d?/, u = /\d*[^-_:/,()\s\d]+/, o = {},
|
|
4080
|
-
return (
|
|
4081
|
-
}, g = function(
|
|
4082
|
-
return function(
|
|
4083
|
-
this[
|
|
4083
|
+
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, c = /\d/, i = /\d\d/, a = /\d\d?/, u = /\d*[^-_:/,()\s\d]+/, o = {}, x = function(f) {
|
|
4084
|
+
return (f = +f) + (f > 68 ? 1900 : 2e3);
|
|
4085
|
+
}, g = function(f) {
|
|
4086
|
+
return function(v) {
|
|
4087
|
+
this[f] = +v;
|
|
4084
4088
|
};
|
|
4085
|
-
}, h = [/[+-]\d\d:?(\d\d)?|Z/, function(
|
|
4086
|
-
(this.zone || (this.zone = {})).offset = function(
|
|
4087
|
-
if (!
|
|
4088
|
-
var D =
|
|
4089
|
+
}, h = [/[+-]\d\d:?(\d\d)?|Z/, function(f) {
|
|
4090
|
+
(this.zone || (this.zone = {})).offset = function(v) {
|
|
4091
|
+
if (!v || v === "Z") return 0;
|
|
4092
|
+
var D = v.match(/([+-]|\d\d)/g), V = 60 * D[1] + (+D[2] || 0);
|
|
4089
4093
|
return V === 0 ? 0 : D[0] === "+" ? -V : V;
|
|
4090
|
-
}(
|
|
4091
|
-
}],
|
|
4092
|
-
var
|
|
4093
|
-
return
|
|
4094
|
-
}, L = function(
|
|
4094
|
+
}(f);
|
|
4095
|
+
}], N = function(f) {
|
|
4096
|
+
var v = o[f];
|
|
4097
|
+
return v && (v.indexOf ? v : v.s.concat(v.f));
|
|
4098
|
+
}, L = function(f, v) {
|
|
4095
4099
|
var D, V = o.meridiem;
|
|
4096
4100
|
if (V) {
|
|
4097
|
-
for (var
|
|
4098
|
-
D =
|
|
4101
|
+
for (var b = 1; b <= 24; b += 1) if (f.indexOf(V(b, 0, v)) > -1) {
|
|
4102
|
+
D = b > 12;
|
|
4099
4103
|
break;
|
|
4100
4104
|
}
|
|
4101
|
-
} else D =
|
|
4105
|
+
} else D = f === (v ? "pm" : "PM");
|
|
4102
4106
|
return D;
|
|
4103
|
-
},
|
|
4104
|
-
this.afternoon = L(
|
|
4105
|
-
}], a: [u, function(
|
|
4106
|
-
this.afternoon = L(
|
|
4107
|
-
}], Q: [c, function(
|
|
4108
|
-
this.month = 3 * (
|
|
4109
|
-
}], S: [c, function(
|
|
4110
|
-
this.milliseconds = 100 * +
|
|
4111
|
-
}], SS: [i, function(
|
|
4112
|
-
this.milliseconds = 10 * +
|
|
4113
|
-
}], SSS: [/\d{3}/, function(
|
|
4114
|
-
this.milliseconds = +
|
|
4115
|
-
}], s: [a, g("seconds")], ss: [a, g("seconds")], m: [a, g("minutes")], mm: [a, g("minutes")], H: [a, g("hours")], h: [a, g("hours")], HH: [a, g("hours")], hh: [a, g("hours")], D: [a, g("day")], DD: [i, g("day")], Do: [u, function(
|
|
4116
|
-
var
|
|
4117
|
-
if (this.day = D[0],
|
|
4118
|
-
}], w: [a, g("week")], ww: [i, g("week")], M: [a, g("month")], MM: [i, g("month")], MMM: [u, function(
|
|
4119
|
-
var
|
|
4107
|
+
}, w = { A: [u, function(f) {
|
|
4108
|
+
this.afternoon = L(f, !1);
|
|
4109
|
+
}], a: [u, function(f) {
|
|
4110
|
+
this.afternoon = L(f, !0);
|
|
4111
|
+
}], Q: [c, function(f) {
|
|
4112
|
+
this.month = 3 * (f - 1) + 1;
|
|
4113
|
+
}], S: [c, function(f) {
|
|
4114
|
+
this.milliseconds = 100 * +f;
|
|
4115
|
+
}], SS: [i, function(f) {
|
|
4116
|
+
this.milliseconds = 10 * +f;
|
|
4117
|
+
}], SSS: [/\d{3}/, function(f) {
|
|
4118
|
+
this.milliseconds = +f;
|
|
4119
|
+
}], s: [a, g("seconds")], ss: [a, g("seconds")], m: [a, g("minutes")], mm: [a, g("minutes")], H: [a, g("hours")], h: [a, g("hours")], HH: [a, g("hours")], hh: [a, g("hours")], D: [a, g("day")], DD: [i, g("day")], Do: [u, function(f) {
|
|
4120
|
+
var v = o.ordinal, D = f.match(/\d+/);
|
|
4121
|
+
if (this.day = D[0], v) for (var V = 1; V <= 31; V += 1) v(V).replace(/\[|\]/g, "") === f && (this.day = V);
|
|
4122
|
+
}], w: [a, g("week")], ww: [i, g("week")], M: [a, g("month")], MM: [i, g("month")], MMM: [u, function(f) {
|
|
4123
|
+
var v = N("months"), D = (N("monthsShort") || v.map(function(V) {
|
|
4120
4124
|
return V.slice(0, 3);
|
|
4121
|
-
})).indexOf(
|
|
4125
|
+
})).indexOf(f) + 1;
|
|
4122
4126
|
if (D < 1) throw new Error();
|
|
4123
4127
|
this.month = D % 12 || D;
|
|
4124
|
-
}], MMMM: [u, function(
|
|
4125
|
-
var
|
|
4126
|
-
if (
|
|
4127
|
-
this.month =
|
|
4128
|
-
}], Y: [/[+-]?\d+/, g("year")], YY: [i, function(
|
|
4129
|
-
this.year =
|
|
4128
|
+
}], MMMM: [u, function(f) {
|
|
4129
|
+
var v = N("months").indexOf(f) + 1;
|
|
4130
|
+
if (v < 1) throw new Error();
|
|
4131
|
+
this.month = v % 12 || v;
|
|
4132
|
+
}], Y: [/[+-]?\d+/, g("year")], YY: [i, function(f) {
|
|
4133
|
+
this.year = x(f);
|
|
4130
4134
|
}], YYYY: [/\d{4}/, g("year")], Z: h, ZZ: h };
|
|
4131
|
-
function
|
|
4132
|
-
var
|
|
4133
|
-
|
|
4134
|
-
for (var V = (
|
|
4135
|
+
function y(f) {
|
|
4136
|
+
var v, D;
|
|
4137
|
+
v = f, D = o && o.formats;
|
|
4138
|
+
for (var V = (f = v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(I, T, U) {
|
|
4135
4139
|
var H = U && U.toUpperCase();
|
|
4136
|
-
return
|
|
4137
|
-
return d ||
|
|
4140
|
+
return T || D[U] || n[U] || D[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(p, d, C) {
|
|
4141
|
+
return d || C.slice(1);
|
|
4138
4142
|
});
|
|
4139
|
-
})).match(r),
|
|
4140
|
-
var z = V[
|
|
4141
|
-
V[
|
|
4143
|
+
})).match(r), b = V.length, $ = 0; $ < b; $ += 1) {
|
|
4144
|
+
var z = V[$], A = w[z], M = A && A[0], O = A && A[1];
|
|
4145
|
+
V[$] = O ? { regex: M, parser: O } : z.replace(/^\[|\]$/g, "");
|
|
4142
4146
|
}
|
|
4143
|
-
return function(
|
|
4144
|
-
for (var
|
|
4145
|
-
var
|
|
4146
|
-
if (typeof
|
|
4147
|
+
return function(I) {
|
|
4148
|
+
for (var T = {}, U = 0, H = 0; U < b; U += 1) {
|
|
4149
|
+
var p = V[U];
|
|
4150
|
+
if (typeof p == "string") H += p.length;
|
|
4147
4151
|
else {
|
|
4148
|
-
var d =
|
|
4149
|
-
|
|
4152
|
+
var d = p.regex, C = p.parser, k = I.slice(H), l = d.exec(k)[0];
|
|
4153
|
+
C.call(T, l), I = I.replace(l, "");
|
|
4150
4154
|
}
|
|
4151
4155
|
}
|
|
4152
|
-
return function(
|
|
4153
|
-
var S =
|
|
4156
|
+
return function(_) {
|
|
4157
|
+
var S = _.afternoon;
|
|
4154
4158
|
if (S !== void 0) {
|
|
4155
|
-
var E =
|
|
4156
|
-
S ? E < 12 && (
|
|
4159
|
+
var E = _.hours;
|
|
4160
|
+
S ? E < 12 && (_.hours += 12) : E === 12 && (_.hours = 0), delete _.afternoon;
|
|
4157
4161
|
}
|
|
4158
|
-
}(
|
|
4162
|
+
}(T), T;
|
|
4159
4163
|
};
|
|
4160
4164
|
}
|
|
4161
|
-
return function(
|
|
4162
|
-
D.p.customParseFormat = !0,
|
|
4163
|
-
var V =
|
|
4164
|
-
V.parse = function(
|
|
4165
|
-
var z =
|
|
4165
|
+
return function(f, v, D) {
|
|
4166
|
+
D.p.customParseFormat = !0, f && f.parseTwoDigitYear && (x = f.parseTwoDigitYear);
|
|
4167
|
+
var V = v.prototype, b = V.parse;
|
|
4168
|
+
V.parse = function($) {
|
|
4169
|
+
var z = $.date, A = $.utc, M = $.args;
|
|
4166
4170
|
this.$u = A;
|
|
4167
|
-
var
|
|
4168
|
-
if (typeof
|
|
4169
|
-
var
|
|
4170
|
-
|
|
4171
|
+
var O = M[1];
|
|
4172
|
+
if (typeof O == "string") {
|
|
4173
|
+
var I = M[2] === !0, T = M[3] === !0, U = I || T, H = M[2];
|
|
4174
|
+
T && (H = M[2]), o = this.$locale(), !I && H && (o = D.Ls[H]), this.$d = function(k, l, _, S) {
|
|
4171
4175
|
try {
|
|
4172
|
-
if (["x", "X"].indexOf(l) > -1) return new Date((l === "X" ? 1e3 : 1) *
|
|
4173
|
-
var E =
|
|
4176
|
+
if (["x", "X"].indexOf(l) > -1) return new Date((l === "X" ? 1e3 : 1) * k);
|
|
4177
|
+
var E = y(l)(k), P = E.year, j = E.month, W = E.day, K = E.hours, te = E.minutes, q = E.seconds, oe = E.milliseconds, se = E.zone, X = E.week, ee = /* @__PURE__ */ new Date(), ne = W || (P || j ? 1 : ee.getDate()), ce = P || ee.getFullYear(), we = 0;
|
|
4174
4178
|
P && !j || (we = j > 0 ? j - 1 : ee.getMonth());
|
|
4175
4179
|
var ve, Se = K || 0, Ve = te || 0, ze = q || 0, He = oe || 0;
|
|
4176
|
-
return se ? new Date(Date.UTC(ce, we, ne, Se, Ve, ze, He + 60 * se.offset * 1e3)) :
|
|
4180
|
+
return se ? new Date(Date.UTC(ce, we, ne, Se, Ve, ze, He + 60 * se.offset * 1e3)) : _ ? new Date(Date.UTC(ce, we, ne, Se, Ve, ze, He)) : (ve = new Date(ce, we, ne, Se, Ve, ze, He), X && (ve = S(ve).week(X).toDate()), ve);
|
|
4177
4181
|
} catch {
|
|
4178
4182
|
return /* @__PURE__ */ new Date("");
|
|
4179
4183
|
}
|
|
4180
|
-
}(z,
|
|
4181
|
-
} else if (
|
|
4182
|
-
|
|
4183
|
-
var
|
|
4184
|
-
if (
|
|
4185
|
-
this.$d =
|
|
4184
|
+
}(z, O, A, D), this.init(), H && H !== !0 && (this.$L = this.locale(H).$L), U && z != this.format(O) && (this.$d = /* @__PURE__ */ new Date("")), o = {};
|
|
4185
|
+
} else if (O instanceof Array) for (var p = O.length, d = 1; d <= p; d += 1) {
|
|
4186
|
+
M[1] = O[d - 1];
|
|
4187
|
+
var C = D.apply(this, M);
|
|
4188
|
+
if (C.isValid()) {
|
|
4189
|
+
this.$d = C.$d, this.$L = C.$L, this.init();
|
|
4186
4190
|
break;
|
|
4187
4191
|
}
|
|
4188
|
-
d ===
|
|
4192
|
+
d === p && (this.$d = /* @__PURE__ */ new Date(""));
|
|
4189
4193
|
}
|
|
4190
|
-
else
|
|
4194
|
+
else b.call(this, $);
|
|
4191
4195
|
};
|
|
4192
4196
|
};
|
|
4193
4197
|
});
|
|
@@ -4205,64 +4209,64 @@ const q0 = ({
|
|
|
4205
4209
|
dataTestIdInput: i,
|
|
4206
4210
|
onChange: a
|
|
4207
4211
|
}) => {
|
|
4208
|
-
const u = ge(n, "M-D-YYYY", !0), [o,
|
|
4212
|
+
const u = ge(n, "M-D-YYYY", !0), [o, x] = F(!1), [g, h] = F(""), [N, L] = F(ge()), [w, y] = F(!1), [f, v] = F(
|
|
4209
4213
|
g ? u.isValid() : !0
|
|
4210
|
-
), D = Q(null), V = Q(null),
|
|
4214
|
+
), D = Q(null), V = Q(null), b = Q(null), $ = N?.daysInMonth() || 30, z = N?.startOf("month").day() || 0;
|
|
4211
4215
|
Z(() => {
|
|
4212
|
-
const
|
|
4213
|
-
n &&
|
|
4216
|
+
const p = ge(n, "M-D-YYYY", !0);
|
|
4217
|
+
n && p.isValid() ? (h(p.format("M-D-YYYY")), L(p), y(!0), v(!0)) : n ? (h(n), L(ge()), y(!0), v(!1)) : (h(""), L(ge()), y(!1), v(!0));
|
|
4214
4218
|
}, [n]), Z(() => {
|
|
4215
|
-
function
|
|
4216
|
-
D.current && (D.current.contains(d.target) ||
|
|
4219
|
+
function p(d) {
|
|
4220
|
+
D.current && (D.current.contains(d.target) || x(!1));
|
|
4217
4221
|
}
|
|
4218
|
-
return o &&
|
|
4222
|
+
return o && b.current && (b.current.querySelector(
|
|
4219
4223
|
'[role="button"]:not([disabled])'
|
|
4220
|
-
)?.focus(), document.addEventListener("mousedown",
|
|
4221
|
-
document.removeEventListener("mousedown",
|
|
4224
|
+
)?.focus(), document.addEventListener("mousedown", p)), () => {
|
|
4225
|
+
document.removeEventListener("mousedown", p);
|
|
4222
4226
|
};
|
|
4223
4227
|
}, [o]);
|
|
4224
|
-
const A = (
|
|
4225
|
-
const d =
|
|
4226
|
-
|
|
4227
|
-
},
|
|
4228
|
-
|
|
4229
|
-
},
|
|
4230
|
-
const d =
|
|
4231
|
-
if (h(d),
|
|
4232
|
-
|
|
4228
|
+
const A = (p) => {
|
|
4229
|
+
const d = p.format("M-D-YYYY");
|
|
4230
|
+
y(!0), L(p), h(d), v(!0), a(d), x(!1), V.current?.focus();
|
|
4231
|
+
}, M = (p, d) => {
|
|
4232
|
+
p.key === "Enter" && A(d);
|
|
4233
|
+
}, O = (p) => {
|
|
4234
|
+
const d = p.target.value;
|
|
4235
|
+
if (h(d), y(!0), !/^\d{1,2}-\d{2}-\d{4}$/.test(d)) {
|
|
4236
|
+
v(!1), a(d);
|
|
4233
4237
|
return;
|
|
4234
4238
|
}
|
|
4235
|
-
const
|
|
4236
|
-
|
|
4237
|
-
},
|
|
4238
|
-
|
|
4239
|
-
},
|
|
4240
|
-
|
|
4239
|
+
const k = ge(d, "M-D-YYYY", !0);
|
|
4240
|
+
k.isValid() ? (L(k), v(!0), a(d)) : (v(!1), a(d));
|
|
4241
|
+
}, I = () => {
|
|
4242
|
+
x((p) => !p);
|
|
4243
|
+
}, T = () => {
|
|
4244
|
+
N && L(N.subtract(1, "month"));
|
|
4241
4245
|
}, U = () => {
|
|
4242
|
-
|
|
4246
|
+
N && L(N.add(1, "month"));
|
|
4243
4247
|
}, H = () => {
|
|
4244
|
-
if (!
|
|
4245
|
-
const
|
|
4248
|
+
if (!N) return null;
|
|
4249
|
+
const p = [];
|
|
4246
4250
|
for (let d = 0; d < z; d++)
|
|
4247
|
-
|
|
4248
|
-
for (let d = 1; d <=
|
|
4249
|
-
const
|
|
4250
|
-
|
|
4251
|
+
p.push(/* @__PURE__ */ s("div", { className: "w-8 h-8" }, `empty-${d}`));
|
|
4252
|
+
for (let d = 1; d <= $; d++) {
|
|
4253
|
+
const C = N.date(d);
|
|
4254
|
+
p.push(
|
|
4251
4255
|
/* @__PURE__ */ s(
|
|
4252
4256
|
"button",
|
|
4253
4257
|
{
|
|
4254
4258
|
tabIndex: 0,
|
|
4255
|
-
onClick: () => A(
|
|
4256
|
-
onKeyDown: (
|
|
4257
|
-
className: `w-8 h-8 ${
|
|
4258
|
-
"aria-label":
|
|
4259
|
+
onClick: () => A(C),
|
|
4260
|
+
onKeyDown: (k) => M(k, C),
|
|
4261
|
+
className: `w-8 h-8 ${C.isSame(N, "date") ? "bg-blue-600 text-white" : ""} hover:bg-blue-100 focus:ring`,
|
|
4262
|
+
"aria-label": C.format("MMMM D, YYYY"),
|
|
4259
4263
|
children: d
|
|
4260
4264
|
},
|
|
4261
4265
|
d
|
|
4262
4266
|
)
|
|
4263
4267
|
);
|
|
4264
4268
|
}
|
|
4265
|
-
return
|
|
4269
|
+
return p;
|
|
4266
4270
|
};
|
|
4267
4271
|
return /* @__PURE__ */ B("div", { className: "relative", ref: D, "test-dataid": r, children: [
|
|
4268
4272
|
/* @__PURE__ */ s("label", { htmlFor: e, id: "date-picker-input", className: "block text-sm font-medium text-gray-700", children: t }),
|
|
@@ -4274,8 +4278,8 @@ const q0 = ({
|
|
|
4274
4278
|
type: "text",
|
|
4275
4279
|
"aria-labelledby": "date-picker-input",
|
|
4276
4280
|
ref: V,
|
|
4277
|
-
value:
|
|
4278
|
-
onChange:
|
|
4281
|
+
value: w ? g : "",
|
|
4282
|
+
onChange: O,
|
|
4279
4283
|
"data-testid": i,
|
|
4280
4284
|
placeholder: "M-D-YYYY",
|
|
4281
4285
|
className: `block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
|
|
@@ -4286,7 +4290,7 @@ const q0 = ({
|
|
|
4286
4290
|
"button",
|
|
4287
4291
|
{
|
|
4288
4292
|
type: "button",
|
|
4289
|
-
onClick:
|
|
4293
|
+
onClick: I,
|
|
4290
4294
|
className: `px-3 py-2 bg-gray-100 border-2 border-gray-300 rounded-r-md rounded-l-none hover:bg-gray-200
|
|
4291
4295
|
focus:outline-hidden focus:border-blue-500`,
|
|
4292
4296
|
"aria-label": "Open calendar",
|
|
@@ -4307,7 +4311,7 @@ const q0 = ({
|
|
|
4307
4311
|
o && /* @__PURE__ */ B(
|
|
4308
4312
|
"div",
|
|
4309
4313
|
{
|
|
4310
|
-
ref:
|
|
4314
|
+
ref: b,
|
|
4311
4315
|
id: `${e}-dialog`,
|
|
4312
4316
|
role: "dialog",
|
|
4313
4317
|
"aria-label": "Calendar",
|
|
@@ -4318,13 +4322,13 @@ const q0 = ({
|
|
|
4318
4322
|
/* @__PURE__ */ s(
|
|
4319
4323
|
"button",
|
|
4320
4324
|
{
|
|
4321
|
-
onClick:
|
|
4325
|
+
onClick: T,
|
|
4322
4326
|
className: "px-3 py-2 bg-gray-100 border border-gray-300 rounded-md hover:bg-gray-200 focus:outline-hidden focus:ring",
|
|
4323
4327
|
"aria-label": "Previous month",
|
|
4324
4328
|
children: "<"
|
|
4325
4329
|
}
|
|
4326
4330
|
),
|
|
4327
|
-
/* @__PURE__ */ s("div", { className: "text-lg font-semibold", children:
|
|
4331
|
+
/* @__PURE__ */ s("div", { className: "text-lg font-semibold", children: N?.format("MMMM YYYY") }),
|
|
4328
4332
|
/* @__PURE__ */ s(
|
|
4329
4333
|
"button",
|
|
4330
4334
|
{
|
|
@@ -4348,7 +4352,7 @@ const q0 = ({
|
|
|
4348
4352
|
]
|
|
4349
4353
|
}
|
|
4350
4354
|
),
|
|
4351
|
-
!
|
|
4355
|
+
!f && /* @__PURE__ */ s("p", { className: "text-red-600", children: "Please enter a valid date 'MM-DD-YYYY'" })
|
|
4352
4356
|
] });
|
|
4353
4357
|
}, K0 = ({
|
|
4354
4358
|
children: e,
|
|
@@ -4360,52 +4364,52 @@ const q0 = ({
|
|
|
4360
4364
|
collapseText: a = "collapse",
|
|
4361
4365
|
className: u,
|
|
4362
4366
|
dataTestId: o,
|
|
4363
|
-
dataTestIdButton:
|
|
4367
|
+
dataTestIdButton: x,
|
|
4364
4368
|
clickHandler: g
|
|
4365
4369
|
}) => {
|
|
4366
|
-
const [h,
|
|
4370
|
+
const [h, N] = F(!1), L = `expandable-text-${Math.random().toString(36).slice(2)}`;
|
|
4367
4371
|
if (!e || typeof e != "string" || t < 0)
|
|
4368
4372
|
return /* @__PURE__ */ s("span", { className: u, children: e || "" });
|
|
4369
|
-
const
|
|
4370
|
-
if (
|
|
4371
|
-
const V =
|
|
4372
|
-
return
|
|
4373
|
+
const y = ((v, D) => {
|
|
4374
|
+
if (v.length <= D) return v;
|
|
4375
|
+
const V = v.slice(0, D), b = V.lastIndexOf(" ");
|
|
4376
|
+
return b > 0 ? V.slice(0, b) : V;
|
|
4373
4377
|
})(e, t);
|
|
4374
4378
|
if (e.length <= t)
|
|
4375
4379
|
return /* @__PURE__ */ s("span", { className: u, children: e });
|
|
4376
|
-
const
|
|
4377
|
-
g && g(!h),
|
|
4380
|
+
const f = () => {
|
|
4381
|
+
g && g(!h), N(!h);
|
|
4378
4382
|
};
|
|
4379
4383
|
return /* @__PURE__ */ s("div", { className: u, id: L, "data-testid": o, children: h ? /* @__PURE__ */ B(ae, { children: [
|
|
4380
4384
|
e,
|
|
4381
4385
|
i && /* @__PURE__ */ s(
|
|
4382
4386
|
"button",
|
|
4383
4387
|
{
|
|
4384
|
-
onClick:
|
|
4388
|
+
onClick: f,
|
|
4385
4389
|
className: m(
|
|
4386
4390
|
"ml-2 text-blue-600 underline hover:text-blue-800 focus:outline-none",
|
|
4387
4391
|
c
|
|
4388
4392
|
),
|
|
4389
4393
|
"aria-expanded": "true",
|
|
4390
4394
|
"aria-controls": L,
|
|
4391
|
-
"data-testid":
|
|
4395
|
+
"data-testid": x,
|
|
4392
4396
|
children: a
|
|
4393
4397
|
}
|
|
4394
4398
|
)
|
|
4395
4399
|
] }) : /* @__PURE__ */ B(ae, { children: [
|
|
4396
|
-
|
|
4400
|
+
y,
|
|
4397
4401
|
"...",
|
|
4398
4402
|
/* @__PURE__ */ s(
|
|
4399
4403
|
"button",
|
|
4400
4404
|
{
|
|
4401
|
-
onClick:
|
|
4405
|
+
onClick: f,
|
|
4402
4406
|
className: m(
|
|
4403
4407
|
"ml-2 text-blue-600 underline hover:text-blue-800 focus:outline-none",
|
|
4404
4408
|
r
|
|
4405
4409
|
),
|
|
4406
4410
|
"aria-expanded": "false",
|
|
4407
4411
|
"aria-controls": L,
|
|
4408
|
-
"data-testid":
|
|
4412
|
+
"data-testid": x,
|
|
4409
4413
|
children: n
|
|
4410
4414
|
}
|
|
4411
4415
|
)
|
|
@@ -4444,27 +4448,27 @@ const X0 = ({
|
|
|
4444
4448
|
dataTestIdContainer: a,
|
|
4445
4449
|
dataTestIdTabButton: u
|
|
4446
4450
|
}) => {
|
|
4447
|
-
const [o,
|
|
4451
|
+
const [o, x] = F(0), [g, h] = F(!1), [N, L] = F(""), w = Q([]);
|
|
4448
4452
|
e === "" && (e = "default");
|
|
4449
|
-
const
|
|
4450
|
-
|
|
4451
|
-
}, []),
|
|
4452
|
-
|
|
4453
|
-
},
|
|
4454
|
-
|
|
4453
|
+
const y = $e((b) => {
|
|
4454
|
+
w.current[b]?.focus();
|
|
4455
|
+
}, []), f = (b, $) => {
|
|
4456
|
+
$ && $(), x(b);
|
|
4457
|
+
}, v = (b) => ($) => {
|
|
4458
|
+
w.current[b] = $;
|
|
4455
4459
|
}, D = $e(
|
|
4456
|
-
(
|
|
4457
|
-
if (
|
|
4458
|
-
const z = (
|
|
4459
|
-
|
|
4460
|
-
} else if (
|
|
4461
|
-
const z = (
|
|
4462
|
-
|
|
4463
|
-
} else
|
|
4460
|
+
(b, $) => {
|
|
4461
|
+
if (b.key === "ArrowRight") {
|
|
4462
|
+
const z = ($ + 1) % t.length;
|
|
4463
|
+
x(z), y(z);
|
|
4464
|
+
} else if (b.key === "ArrowLeft") {
|
|
4465
|
+
const z = ($ - 1 + t.length) % t.length;
|
|
4466
|
+
x(z), y(z);
|
|
4467
|
+
} else b.key === "Home" ? (x(0), y(0)) : b.key === "End" && (x(t.length - 1), y(t.length - 1));
|
|
4464
4468
|
},
|
|
4465
|
-
[t.length,
|
|
4466
|
-
), V = (
|
|
4467
|
-
h(!0), L(
|
|
4469
|
+
[t.length, y]
|
|
4470
|
+
), V = (b) => {
|
|
4471
|
+
h(!0), L(b);
|
|
4468
4472
|
};
|
|
4469
4473
|
return /* @__PURE__ */ B("div", { className: m("w-full", r), "data-testid": a, children: [
|
|
4470
4474
|
/* @__PURE__ */ s(
|
|
@@ -4473,42 +4477,42 @@ const X0 = ({
|
|
|
4473
4477
|
role: "tablist",
|
|
4474
4478
|
"aria-label": "Tabs",
|
|
4475
4479
|
className: m(Re[e].container, n),
|
|
4476
|
-
children: t.map((
|
|
4480
|
+
children: t.map((b, $) => /* @__PURE__ */ B(
|
|
4477
4481
|
"button",
|
|
4478
4482
|
{
|
|
4479
4483
|
role: "tab",
|
|
4480
|
-
id: `tab-${
|
|
4481
|
-
onMouseEnter: () => V(
|
|
4484
|
+
id: `tab-${b.id}`,
|
|
4485
|
+
onMouseEnter: () => V(b.id),
|
|
4482
4486
|
onMouseLeave: () => h(!1),
|
|
4483
|
-
"aria-selected": o ===
|
|
4484
|
-
"aria-controls": `panel-${
|
|
4487
|
+
"aria-selected": o === $,
|
|
4488
|
+
"aria-controls": `panel-${b.id}`,
|
|
4485
4489
|
"data-testid": u,
|
|
4486
|
-
tabIndex: o ===
|
|
4487
|
-
ref:
|
|
4488
|
-
className: `flex px-6 py-3 md:py-[14px] lg:py-4 focus:outline-hidden ${e === "outline" ? `border-[#092068] ${
|
|
4489
|
-
onClick: () =>
|
|
4490
|
-
onKeyDown: (z) => D(z,
|
|
4490
|
+
tabIndex: o === $ ? 0 : -1,
|
|
4491
|
+
ref: v($),
|
|
4492
|
+
className: `flex px-6 py-3 md:py-[14px] lg:py-4 focus:outline-hidden ${e === "outline" ? `border-[#092068] ${$ === 0 ? "border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md" : $ === t.length - 1 ? "border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md" : "border-t-2 border-b-2"}` : ""} ${o === $ ? m(Re[e].active, c) : m(Re[e].inactive, i)}`,
|
|
4493
|
+
onClick: () => f($, b.onClick),
|
|
4494
|
+
onKeyDown: (z) => D(z, $),
|
|
4491
4495
|
children: [
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4496
|
+
b.iconPosition === "left" && b.activeIcon && /* @__PURE__ */ s("span", { className: "icon-left mr-3 size-6 lg:mt-0.5", children: o === $ ? g && N === b.id ? b.inactiveIcon : b.activeIcon : b.inactiveIcon }),
|
|
4497
|
+
b.iconPosition === "iconOnly" && b.activeIcon ? /* @__PURE__ */ s("span", { className: "size-6 lg:mt-0.5", children: o === $ ? g && N === b.id ? b.inactiveIcon : b.activeIcon : b.inactiveIcon }) : /* @__PURE__ */ s("span", { className: "text-sm md:text-base lg:text-lg mt-0.5 md:mt-0", children: b.label }),
|
|
4498
|
+
b.iconPosition === "right" && b.activeIcon && /* @__PURE__ */ s("span", { className: "icon-right ml-3 size-6 lg:mt-0.5", children: o === $ ? g && N === b.id ? b.inactiveIcon : b.activeIcon : b.inactiveIcon })
|
|
4495
4499
|
]
|
|
4496
4500
|
},
|
|
4497
|
-
|
|
4501
|
+
b.id
|
|
4498
4502
|
))
|
|
4499
4503
|
}
|
|
4500
4504
|
),
|
|
4501
|
-
t.map((
|
|
4505
|
+
t.map((b, $) => /* @__PURE__ */ s(
|
|
4502
4506
|
"div",
|
|
4503
4507
|
{
|
|
4504
4508
|
role: "tabpanel",
|
|
4505
|
-
id: `panel-${
|
|
4506
|
-
"aria-labelledby": `tab-${
|
|
4507
|
-
hidden: o !==
|
|
4509
|
+
id: `panel-${b.id}`,
|
|
4510
|
+
"aria-labelledby": `tab-${b.id}`,
|
|
4511
|
+
hidden: o !== $,
|
|
4508
4512
|
className: "p-4",
|
|
4509
|
-
children:
|
|
4513
|
+
children: b.content
|
|
4510
4514
|
},
|
|
4511
|
-
|
|
4515
|
+
b.id
|
|
4512
4516
|
))
|
|
4513
4517
|
] });
|
|
4514
4518
|
};
|
|
@@ -4558,44 +4562,44 @@ const c2 = "px-4 py-3 arial rounded-lg border border-[#B3B3B3] mx-2 bg-white hov
|
|
|
4558
4562
|
labelBaseColor: a = "#fff",
|
|
4559
4563
|
dataTestId: u,
|
|
4560
4564
|
dataTestIdLabel: o,
|
|
4561
|
-
error:
|
|
4565
|
+
error: x = !1,
|
|
4562
4566
|
// labelInputColor = '#fff',
|
|
4563
4567
|
textShadow: g = !1,
|
|
4564
4568
|
mask: h,
|
|
4565
|
-
disabled:
|
|
4569
|
+
disabled: N,
|
|
4566
4570
|
...L
|
|
4567
|
-
},
|
|
4568
|
-
const [
|
|
4569
|
-
const
|
|
4570
|
-
|
|
4571
|
+
}, w) => {
|
|
4572
|
+
const [y, f] = F(), [v, D] = F(c2), [V, b] = F(""), [$, z] = F(!1), A = Q(null), [M, O] = F(""), I = "border-[#D54309] border", T = (H) => {
|
|
4573
|
+
const p = H.target.value;
|
|
4574
|
+
O(h ? U(p) : p);
|
|
4571
4575
|
};
|
|
4572
4576
|
function U(H) {
|
|
4573
|
-
let
|
|
4577
|
+
let p = "", d = 0;
|
|
4574
4578
|
if (h)
|
|
4575
4579
|
for (; H.length > 0 && d < h.length; )
|
|
4576
|
-
h[d] !== "#" && h[d] !== "@" ? h[d] === H[0] ? (
|
|
4577
|
-
return
|
|
4580
|
+
h[d] !== "#" && h[d] !== "@" ? h[d] === H[0] ? (p += H[0], H = H.slice(1), d++) : ((l2(H[0]) && i2(h, d) === "@" || o2(H[0]) && i2(h, d) === "#") && (p += h[d]), d++) : h[d] === "#" && o2(H[0]) || h[d] === "@" && l2(H[0]) ? (p += H[0], H = H.slice(1), d++) : H = H.slice(1);
|
|
4581
|
+
return p;
|
|
4578
4582
|
}
|
|
4579
4583
|
if (Z(() => {
|
|
4580
4584
|
t && (D(m(
|
|
4581
4585
|
c2,
|
|
4582
4586
|
Fe.find((H) => H.variant === t)?.classes,
|
|
4583
|
-
|
|
4587
|
+
x && I,
|
|
4584
4588
|
e
|
|
4585
|
-
)),
|
|
4586
|
-
}, [e, c, t,
|
|
4589
|
+
)), b(m(r ? Fe.find((H) => H.variant === t)?.insetLabelClasses : Fe.find((H) => H.variant === t)?.labelClasses, c)));
|
|
4590
|
+
}, [e, c, t, $, r, x]), Z(() => {
|
|
4587
4591
|
if (r) {
|
|
4588
4592
|
const H = A.current;
|
|
4589
4593
|
if (!H) return;
|
|
4590
|
-
const
|
|
4591
|
-
const
|
|
4592
|
-
|
|
4594
|
+
const p = (d) => {
|
|
4595
|
+
const C = getComputedStyle(H);
|
|
4596
|
+
f(C.backgroundColor), z(d);
|
|
4593
4597
|
};
|
|
4594
|
-
return
|
|
4595
|
-
H.removeEventListener("mouseover", () =>
|
|
4598
|
+
return p(!0), H.addEventListener("mouseover", () => p(!0)), H.addEventListener("mouseout", () => p(!1)), () => {
|
|
4599
|
+
H.removeEventListener("mouseover", () => p), H.removeEventListener("mouseout", () => p);
|
|
4596
4600
|
};
|
|
4597
4601
|
}
|
|
4598
|
-
}, [a, r,
|
|
4602
|
+
}, [a, r, $, N]), !["default", "outline", "nonHover"].includes(t))
|
|
4599
4603
|
throw new Error(
|
|
4600
4604
|
`Invalid variant: "${t}". Valid variants are: "default", "outline", and "nonHover".`
|
|
4601
4605
|
);
|
|
@@ -4605,7 +4609,7 @@ const c2 = "px-4 py-3 arial rounded-lg border border-[#B3B3B3] mx-2 bg-white hov
|
|
|
4605
4609
|
{
|
|
4606
4610
|
className: m(`${!r && "pb-2"}`, V),
|
|
4607
4611
|
style: r ? {
|
|
4608
|
-
background: `linear-gradient(to bottom, ${a} 0%, ${a} 50%, ${
|
|
4612
|
+
background: `linear-gradient(to bottom, ${a} 0%, ${a} 50%, ${y} 60%, ${y} 100%)`,
|
|
4609
4613
|
textShadow: g ? `1px 1px 2px ${a}, 0 0 1em ${a}, 0 0 0.2em ${a}` : ""
|
|
4610
4614
|
} : { textShadow: g ? `1px 1px 2px ${a}, 0 0 1em ${a}, 0 0 0.2em ${a}` : "" },
|
|
4611
4615
|
"data-testid": o,
|
|
@@ -4618,14 +4622,14 @@ const c2 = "px-4 py-3 arial rounded-lg border border-[#B3B3B3] mx-2 bg-white hov
|
|
|
4618
4622
|
/* @__PURE__ */ s(
|
|
4619
4623
|
"input",
|
|
4620
4624
|
{
|
|
4621
|
-
className:
|
|
4625
|
+
className: v,
|
|
4622
4626
|
"aria-label": n,
|
|
4623
|
-
value:
|
|
4624
|
-
onChange:
|
|
4625
|
-
disabled:
|
|
4627
|
+
value: M,
|
|
4628
|
+
onChange: T,
|
|
4629
|
+
disabled: N,
|
|
4626
4630
|
"data-testid": u,
|
|
4627
4631
|
ref: (H) => {
|
|
4628
|
-
typeof
|
|
4632
|
+
typeof w == "function" ? w(H) : w && (w.current = H), A.current = H;
|
|
4629
4633
|
},
|
|
4630
4634
|
...L
|
|
4631
4635
|
}
|
|
@@ -4644,58 +4648,58 @@ const l0 = ({
|
|
|
4644
4648
|
classNameDividerColor: a = "",
|
|
4645
4649
|
isDecimal: u = !1,
|
|
4646
4650
|
isDisc: o = !1,
|
|
4647
|
-
isAlphabetical:
|
|
4651
|
+
isAlphabetical: x = !1,
|
|
4648
4652
|
isRomanNumeral: g = !1,
|
|
4649
4653
|
isInline: h = !1,
|
|
4650
|
-
testDataId:
|
|
4651
|
-
}) => /* @__PURE__ */ B("div", { className: "p-0 m-0", "data-testid":
|
|
4654
|
+
testDataId: N
|
|
4655
|
+
}) => /* @__PURE__ */ B("div", { className: "p-0 m-0", "data-testid": N, children: [
|
|
4652
4656
|
/* @__PURE__ */ s("p", { children: t }),
|
|
4653
4657
|
/* @__PURE__ */ B("ul", { className: m("pl-6 list-none w-full", u ? "list-decimal" : "", o ? "list-disc" : "", n), children: [
|
|
4654
|
-
e && e.map((L,
|
|
4658
|
+
e && e.map((L, w) => /* @__PURE__ */ B(
|
|
4655
4659
|
S2,
|
|
4656
4660
|
{
|
|
4657
4661
|
className: m(
|
|
4658
4662
|
"w-full text-base md:text:lg py-2",
|
|
4659
|
-
i && (h ?
|
|
4660
|
-
a !== "" && (h ?
|
|
4663
|
+
i && (h ? w !== e.length : w !== e.length - 1) ? "border-b" : "",
|
|
4664
|
+
a !== "" && (h ? w !== e.length : w !== e.length - 1) ? a : "",
|
|
4661
4665
|
h && "inline mr-2",
|
|
4662
4666
|
r
|
|
4663
4667
|
),
|
|
4664
4668
|
children: [
|
|
4665
4669
|
g && /* @__PURE__ */ B("span", { className: "flex flex-col w-6", children: [
|
|
4666
|
-
String.fromCharCode(8560 +
|
|
4670
|
+
String.fromCharCode(8560 + w),
|
|
4667
4671
|
". "
|
|
4668
4672
|
] }),
|
|
4669
|
-
|
|
4670
|
-
String.fromCharCode(97 +
|
|
4673
|
+
x && /* @__PURE__ */ B("span", { children: [
|
|
4674
|
+
String.fromCharCode(97 + w),
|
|
4671
4675
|
". "
|
|
4672
4676
|
] }),
|
|
4673
4677
|
g ? /* @__PURE__ */ s("span", { className: "flex flex-col w-6", children: L.children }) : L.children
|
|
4674
4678
|
]
|
|
4675
4679
|
},
|
|
4676
|
-
|
|
4680
|
+
w
|
|
4677
4681
|
)),
|
|
4678
4682
|
c && le.Children.map(
|
|
4679
4683
|
c,
|
|
4680
|
-
(L,
|
|
4684
|
+
(L, w) => le.isValidElement(L) ? le.cloneElement(L, {
|
|
4681
4685
|
className: m(
|
|
4682
4686
|
h && "inline mr-2",
|
|
4683
4687
|
r,
|
|
4684
4688
|
L.props.className,
|
|
4685
4689
|
"w-full",
|
|
4686
|
-
i && (h ?
|
|
4687
|
-
a !== "" && (h ?
|
|
4690
|
+
i && (h ? w !== le.Children.count(c) : w !== le.Children.count(c) - 1) ? "border-b" : "",
|
|
4691
|
+
a !== "" && (h ? w !== le.Children.count(c) : w !== le.Children.count(c) - 1) ? a : ""
|
|
4688
4692
|
),
|
|
4689
4693
|
children: /* @__PURE__ */ B(ae, { children: [
|
|
4690
4694
|
g && /* @__PURE__ */ B("div", { className: "flex flex-row", children: [
|
|
4691
4695
|
/* @__PURE__ */ B("span", { className: "w-6", children: [
|
|
4692
|
-
String.fromCharCode(8560 +
|
|
4696
|
+
String.fromCharCode(8560 + w),
|
|
4693
4697
|
". "
|
|
4694
4698
|
] }),
|
|
4695
4699
|
L.props.children
|
|
4696
4700
|
] }),
|
|
4697
|
-
|
|
4698
|
-
String.fromCharCode(97 +
|
|
4701
|
+
x && /* @__PURE__ */ B("span", { children: [
|
|
4702
|
+
String.fromCharCode(97 + w),
|
|
4699
4703
|
". "
|
|
4700
4704
|
] }),
|
|
4701
4705
|
!g && L.props.children
|
|
@@ -4735,42 +4739,42 @@ const l0 = ({
|
|
|
4735
4739
|
clickOutsideCloses: a = !1,
|
|
4736
4740
|
displayClosingX: u = !0,
|
|
4737
4741
|
closeButtonText: o = "Close",
|
|
4738
|
-
continueButton:
|
|
4742
|
+
continueButton: x = !1,
|
|
4739
4743
|
continueButtonHandler: g,
|
|
4740
4744
|
continueButtonText: h = "Continue",
|
|
4741
|
-
blurLevel:
|
|
4745
|
+
blurLevel: N,
|
|
4742
4746
|
dataTestId: L,
|
|
4743
|
-
dataTestIdBody:
|
|
4744
|
-
dataTestIdTitle:
|
|
4745
|
-
children:
|
|
4747
|
+
dataTestIdBody: w,
|
|
4748
|
+
dataTestIdTitle: y,
|
|
4749
|
+
children: f
|
|
4746
4750
|
}) => {
|
|
4747
|
-
const
|
|
4751
|
+
const v = Q(null), D = Q(null), V = "fixed inset-0 z-50 flex items-center justify-center bg-black/50", [b, $] = F("");
|
|
4748
4752
|
if (Z(() => {
|
|
4749
|
-
if (
|
|
4750
|
-
const A = "backdrop-blur-" +
|
|
4751
|
-
|
|
4753
|
+
if (N) {
|
|
4754
|
+
const A = "backdrop-blur-" + N;
|
|
4755
|
+
$(m(V, A));
|
|
4752
4756
|
} else
|
|
4753
|
-
|
|
4754
|
-
}, [
|
|
4757
|
+
$(V);
|
|
4758
|
+
}, [N]), Z(() => {
|
|
4755
4759
|
if (a) {
|
|
4756
|
-
const A = (
|
|
4757
|
-
|
|
4760
|
+
const A = (M) => {
|
|
4761
|
+
v.current && !v.current.contains(M.target) && n();
|
|
4758
4762
|
};
|
|
4759
4763
|
return document.addEventListener("mousedown", A), () => {
|
|
4760
4764
|
document.removeEventListener("mousedown", A);
|
|
4761
4765
|
};
|
|
4762
4766
|
}
|
|
4763
4767
|
}, [n]), Z(() => {
|
|
4764
|
-
const A = (
|
|
4765
|
-
|
|
4766
|
-
},
|
|
4767
|
-
const
|
|
4768
|
+
const A = (O) => {
|
|
4769
|
+
O.key === "Escape" && e && n();
|
|
4770
|
+
}, M = (O) => {
|
|
4771
|
+
const I = v.current?.querySelectorAll(
|
|
4768
4772
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
4769
|
-
),
|
|
4770
|
-
|
|
4773
|
+
), T = I?.[0], U = I?.[I.length - 1];
|
|
4774
|
+
O.key === "Tab" && I && (O.shiftKey && document.activeElement === T ? (O.preventDefault(), U?.focus()) : !O.shiftKey && document.activeElement === U && (O.preventDefault(), T?.focus()));
|
|
4771
4775
|
};
|
|
4772
|
-
return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown", A), window.addEventListener("keydown",
|
|
4773
|
-
window.removeEventListener("keydown", A), window.removeEventListener("keydown",
|
|
4776
|
+
return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown", A), window.addEventListener("keydown", M), D.current?.focus()) : document.body.style.overflow = "auto", () => {
|
|
4777
|
+
window.removeEventListener("keydown", A), window.removeEventListener("keydown", M), document.body.style.overflow = "auto";
|
|
4774
4778
|
};
|
|
4775
4779
|
}, [e, n]), !e) return null;
|
|
4776
4780
|
const z = () => {
|
|
@@ -4779,14 +4783,14 @@ const l0 = ({
|
|
|
4779
4783
|
return /* @__PURE__ */ s(
|
|
4780
4784
|
"div",
|
|
4781
4785
|
{
|
|
4782
|
-
className:
|
|
4786
|
+
className: b,
|
|
4783
4787
|
id: "backdrop",
|
|
4784
4788
|
"data-testid": L,
|
|
4785
4789
|
children: /* @__PURE__ */ B(
|
|
4786
4790
|
"div",
|
|
4787
4791
|
{
|
|
4788
4792
|
className: m(me[t].container, c),
|
|
4789
|
-
ref:
|
|
4793
|
+
ref: v,
|
|
4790
4794
|
"aria-label": "modal-title",
|
|
4791
4795
|
role: "dialog",
|
|
4792
4796
|
"aria-modal": "true",
|
|
@@ -4808,7 +4812,7 @@ const l0 = ({
|
|
|
4808
4812
|
{
|
|
4809
4813
|
id: "modal-title",
|
|
4810
4814
|
className: m("text-[20px] md:text-[24px] lg:text-[32px] font-medium text-gray-900 text-center w-full", me[t].titleHeading),
|
|
4811
|
-
"data-testid":
|
|
4815
|
+
"data-testid": y,
|
|
4812
4816
|
children: r
|
|
4813
4817
|
}
|
|
4814
4818
|
) }),
|
|
@@ -4816,11 +4820,11 @@ const l0 = ({
|
|
|
4816
4820
|
"div",
|
|
4817
4821
|
{
|
|
4818
4822
|
className: m("text-center lg:text-[18px] px-2", me[t].body),
|
|
4819
|
-
"data-testid":
|
|
4820
|
-
children:
|
|
4823
|
+
"data-testid": w,
|
|
4824
|
+
children: f
|
|
4821
4825
|
}
|
|
4822
4826
|
),
|
|
4823
|
-
|
|
4827
|
+
x || i ? /* @__PURE__ */ B("div", { className: "mt-4 flex justify-end px-4", children: [
|
|
4824
4828
|
i && /* @__PURE__ */ s(
|
|
4825
4829
|
"button",
|
|
4826
4830
|
{
|
|
@@ -4830,7 +4834,7 @@ const l0 = ({
|
|
|
4830
4834
|
children: o
|
|
4831
4835
|
}
|
|
4832
4836
|
),
|
|
4833
|
-
|
|
4837
|
+
x && /* @__PURE__ */ s(
|
|
4834
4838
|
"button",
|
|
4835
4839
|
{
|
|
4836
4840
|
onClick: z,
|
|
@@ -4855,31 +4859,31 @@ const l0 = ({
|
|
|
4855
4859
|
dataTestId: a,
|
|
4856
4860
|
onClick: u,
|
|
4857
4861
|
selected: o = !1,
|
|
4858
|
-
disabled:
|
|
4862
|
+
disabled: x = !1,
|
|
4859
4863
|
...g
|
|
4860
4864
|
}, h) => {
|
|
4861
|
-
const [
|
|
4865
|
+
const [N, L] = F(), [w, y] = F(), [f, v] = F("bg-white");
|
|
4862
4866
|
return Z(() => {
|
|
4863
4867
|
const D = "text-lg font-normal font-['Arial'] leading-normal ";
|
|
4864
|
-
|
|
4868
|
+
y(t && r ? D : t ? D + "mr-6" : r ? D + "ml-6" : D + "ml-6 mr-6");
|
|
4865
4869
|
}, [t, r, i]), Z(() => {
|
|
4866
|
-
|
|
4870
|
+
v(o ? "bg-[#092068] focus:bg-[#092068] text-white" : "bg-white"), L(m(
|
|
4867
4871
|
"relative inline-flex items-center justify-center whitespace-nowrap rounded-3xl transition-colors focus-visible:outline-hidden font-[`Arial`] disabled:pointer-events-none disabled:opacity-50 border-2 border-[#092068] text-[#092068] text-lg focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] bg-white hover:bg-[#D1DBFB] active:bg-[#9fc5f0] focus:bg-white disabled:bg-[#939194] disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-secondary-border disabled:border-2 h-[48px] mt-1",
|
|
4868
|
-
|
|
4872
|
+
f,
|
|
4869
4873
|
e
|
|
4870
4874
|
));
|
|
4871
|
-
}, [e,
|
|
4875
|
+
}, [e, f, o]), /* @__PURE__ */ B(
|
|
4872
4876
|
"button",
|
|
4873
4877
|
{
|
|
4874
4878
|
onClick: u,
|
|
4875
|
-
className:
|
|
4879
|
+
className: N,
|
|
4876
4880
|
ref: h,
|
|
4877
4881
|
...g,
|
|
4878
|
-
disabled:
|
|
4882
|
+
disabled: x,
|
|
4879
4883
|
"data-testid": a,
|
|
4880
4884
|
children: [
|
|
4881
4885
|
t && /* @__PURE__ */ s("span", { className: "ml-6 mr-2.5 size-6", children: o && n ? n : t }),
|
|
4882
|
-
/* @__PURE__ */ s("div", { className:
|
|
4886
|
+
/* @__PURE__ */ s("div", { className: w, children: i }),
|
|
4883
4887
|
r && /* @__PURE__ */ s("span", { className: "ml-2.5 mr-6 size-6", children: o && c ? c : r })
|
|
4884
4888
|
]
|
|
4885
4889
|
}
|
|
@@ -4895,24 +4899,24 @@ const l0 = ({
|
|
|
4895
4899
|
classNameGradient: a = "from-[#305B25] to-[#5AAB46]",
|
|
4896
4900
|
isStep: u = !0,
|
|
4897
4901
|
dataTestId: o,
|
|
4898
|
-
showMarkers:
|
|
4902
|
+
showMarkers: x = !0,
|
|
4899
4903
|
classNameMarkerFalse: g = ""
|
|
4900
4904
|
}) => {
|
|
4901
|
-
const h = Array.from({ length: e }, (
|
|
4905
|
+
const h = Array.from({ length: e }, (w, y) => y + 1), [N, L] = F(Math.round(t / e * 100).toString() + "%");
|
|
4902
4906
|
return f2(() => {
|
|
4903
|
-
const
|
|
4904
|
-
L(
|
|
4905
|
-
}, [t, e]), /* @__PURE__ */ s("div", { className: m("flex items-center w-full", n), "data-testid": o, children:
|
|
4906
|
-
const
|
|
4907
|
+
const y = Math.round(t / e * 100).toString() + "%";
|
|
4908
|
+
L(y);
|
|
4909
|
+
}, [t, e]), /* @__PURE__ */ s("div", { className: m("flex items-center w-full", n), "data-testid": o, children: x ? h.map((w, y) => {
|
|
4910
|
+
const f = w <= t - 1, v = y === h.length - 1;
|
|
4907
4911
|
return /* @__PURE__ */ B(ae, { children: [
|
|
4908
4912
|
/* @__PURE__ */ s(
|
|
4909
4913
|
"div",
|
|
4910
4914
|
{
|
|
4911
4915
|
className: m(
|
|
4912
4916
|
"flex items-center justify-center size-8 rounded-full border-[3px] border-gray-300 text-gray-500",
|
|
4913
|
-
`${
|
|
4917
|
+
`${f && `${c} ${i}`}`
|
|
4914
4918
|
),
|
|
4915
|
-
children: u ? /* @__PURE__ */ s("div", { className: `${
|
|
4919
|
+
children: u ? /* @__PURE__ */ s("div", { className: `${f ? "text-white" : "text-gray-400"}`, children: w }) : f ? /* @__PURE__ */ s("svg", { width: "24", height: "25", viewBox: "0 0 24 25", className: `${f ? "fill-white" : "fill-gray-400"}`, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ B("g", { id: "check_box", children: [
|
|
4916
4920
|
/* @__PURE__ */ s("mask", { id: "mask0_4855_19004", "mask-type": "alpha", maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "25", children: /* @__PURE__ */ s("rect", { id: "Bounding box", y: "0.5", width: "24", height: "24" }) }),
|
|
4917
4921
|
/* @__PURE__ */ s("g", { mask: "url(#mask0_4855_19004)", children: /* @__PURE__ */ s("path", { id: "Icon", d: `M10.6001 14.2465L8.27711 11.9232C8.13861 11.7849 7.96453 11.7141 7.75486
|
|
4918
4922
|
11.7107C7.54536 11.7076 7.36811 11.7784 7.22311 11.9232C7.07828 12.0682 7.00586 12.2439 7.00586
|
|
@@ -4929,14 +4933,14 @@ const l0 = ({
|
|
|
4929
4933
|
] }) })
|
|
4930
4934
|
}
|
|
4931
4935
|
),
|
|
4932
|
-
!
|
|
4936
|
+
!v && /* @__PURE__ */ s(
|
|
4933
4937
|
"div",
|
|
4934
4938
|
{
|
|
4935
4939
|
className: m(
|
|
4936
4940
|
"relative -z-10 -mx-[0.1em] flex-1 h-1 bg-gray-300",
|
|
4937
|
-
`${
|
|
4941
|
+
`${f && `bg-linear-to-r ${a} from-50%`}`
|
|
4938
4942
|
),
|
|
4939
|
-
children:
|
|
4943
|
+
children: w < t && w > t - 2 && /* @__PURE__ */ s("div", { className: "absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2", children: /* @__PURE__ */ s("svg", { viewBox: "0 0 23 18", className: "size-8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ B("g", { id: "Arrow", children: [
|
|
4940
4944
|
/* @__PURE__ */ s("rect", { width: "22.48", height: "18" }),
|
|
4941
4945
|
/* @__PURE__ */ s("path", { id: "Polygon 1", className: r, d: `M13.452 9.79161C13.9706 9.39128 13.9706 8.60871 13.452
|
|
4942
4946
|
8.20839L9.61096 5.24354C8.95357 4.73611 7.99993 5.2047 7.99993 6.03514L7.99993
|
|
@@ -4959,7 +4963,7 @@ const l0 = ({
|
|
|
4959
4963
|
"z-10 -mx-[0.1em] h-2 bg-blue-300 rounded-full",
|
|
4960
4964
|
c
|
|
4961
4965
|
),
|
|
4962
|
-
style: { width:
|
|
4966
|
+
style: { width: N }
|
|
4963
4967
|
}
|
|
4964
4968
|
)
|
|
4965
4969
|
}
|
|
@@ -4986,19 +4990,19 @@ const ts = ({
|
|
|
4986
4990
|
selectedId: a = "",
|
|
4987
4991
|
method: u
|
|
4988
4992
|
}) => {
|
|
4989
|
-
const [o,
|
|
4990
|
-
|
|
4993
|
+
const [o, x] = F(a), g = (h, N) => {
|
|
4994
|
+
x(h), u && u(h, N);
|
|
4991
4995
|
};
|
|
4992
4996
|
return Z(() => {
|
|
4993
|
-
(o === void 0 || o === "") && a !== "" &&
|
|
4997
|
+
(o === void 0 || o === "") && a !== "" && x(a);
|
|
4994
4998
|
}, [o, a]), /* @__PURE__ */ B("fieldset", { role: "radiogroup", className: r, "data-testid": i, children: [
|
|
4995
4999
|
/* @__PURE__ */ s("p", { className: "mb-2", children: e }),
|
|
4996
|
-
c.map(({ label: h, value:
|
|
5000
|
+
c.map(({ label: h, value: N, id: L, disabled: w }) => (
|
|
4997
5001
|
// const isSelected = internalValue === val;
|
|
4998
5002
|
/* @__PURE__ */ B(
|
|
4999
5003
|
"label",
|
|
5000
5004
|
{
|
|
5001
|
-
className: m(`flex mb-2 items-center gap-1 cursor-pointer ${
|
|
5005
|
+
className: m(`flex mb-2 items-center gap-1 cursor-pointer ${w ? "opacity-50 cursor-not-allowed" : ""}`, t),
|
|
5002
5006
|
children: [
|
|
5003
5007
|
/* @__PURE__ */ s("span", { className: "rounded-full size-4 border border-black flex items-center justify-center", children: L === o && // <img className='fill-red-500'
|
|
5004
5008
|
// src={circleCenter}
|
|
@@ -5011,17 +5015,17 @@ const ts = ({
|
|
|
5011
5015
|
id: L,
|
|
5012
5016
|
className: "hidden",
|
|
5013
5017
|
type: "radio",
|
|
5014
|
-
value:
|
|
5015
|
-
disabled:
|
|
5018
|
+
value: N,
|
|
5019
|
+
disabled: w,
|
|
5016
5020
|
checked: o === L,
|
|
5017
|
-
onChange: () => g(L,
|
|
5021
|
+
onChange: () => g(L, N)
|
|
5018
5022
|
}
|
|
5019
5023
|
),
|
|
5020
5024
|
" ",
|
|
5021
5025
|
h
|
|
5022
5026
|
]
|
|
5023
5027
|
},
|
|
5024
|
-
|
|
5028
|
+
N
|
|
5025
5029
|
)
|
|
5026
5030
|
))
|
|
5027
5031
|
] });
|
|
@@ -5036,48 +5040,48 @@ const ts = ({
|
|
|
5036
5040
|
iconLinkHandler: a,
|
|
5037
5041
|
searchableData: u,
|
|
5038
5042
|
setSearchResults: o,
|
|
5039
|
-
mobileOnly:
|
|
5043
|
+
mobileOnly: x = !1,
|
|
5040
5044
|
variant: g,
|
|
5041
5045
|
dataTestIdInput: h,
|
|
5042
|
-
dataTestIdResults:
|
|
5046
|
+
dataTestIdResults: N,
|
|
5043
5047
|
...L
|
|
5044
|
-
},
|
|
5045
|
-
const
|
|
5048
|
+
}, w) => {
|
|
5049
|
+
const y = Q(null), f = Q(null), [v, D] = F(""), [V, b] = F(), [$, z] = F(i), [A, M] = F(!1), O = 100, I = 8, [T, U] = F(`${O}px`);
|
|
5046
5050
|
f2(() => {
|
|
5047
|
-
let
|
|
5051
|
+
let _ = 0;
|
|
5048
5052
|
const S = () => {
|
|
5049
|
-
if (!
|
|
5050
|
-
const P =
|
|
5051
|
-
|
|
5052
|
-
W + K - P.top -
|
|
5053
|
+
if (!f.current) return;
|
|
5054
|
+
const P = f.current.getBoundingClientRect(), j = window.visualViewport, W = j?.height ?? window.innerHeight, K = j?.offsetTop ?? 0, te = Math.max(
|
|
5055
|
+
O,
|
|
5056
|
+
W + K - P.top - I
|
|
5053
5057
|
);
|
|
5054
5058
|
U(`${te}px`);
|
|
5055
5059
|
}, E = () => {
|
|
5056
|
-
cancelAnimationFrame(
|
|
5060
|
+
cancelAnimationFrame(_), _ = requestAnimationFrame(S);
|
|
5057
5061
|
};
|
|
5058
5062
|
return E(), window.addEventListener("scroll", E, { passive: !0 }), window.addEventListener("resize", E), window.visualViewport?.addEventListener("resize", E), window.visualViewport?.addEventListener("scroll", E), () => {
|
|
5059
|
-
window.removeEventListener("scroll", E), window.removeEventListener("resize", E), window.visualViewport?.removeEventListener("resize", E), window.visualViewport?.removeEventListener("scroll", E), cancelAnimationFrame(
|
|
5063
|
+
window.removeEventListener("scroll", E), window.removeEventListener("resize", E), window.visualViewport?.removeEventListener("resize", E), window.visualViewport?.removeEventListener("scroll", E), cancelAnimationFrame(_);
|
|
5060
5064
|
};
|
|
5061
5065
|
}, []), Z(() => {
|
|
5062
|
-
g === "rounded" &&
|
|
5066
|
+
g === "rounded" && M(!0);
|
|
5063
5067
|
}, [g]), Z(() => {
|
|
5064
|
-
if (!
|
|
5065
|
-
const
|
|
5068
|
+
if (!f.current) return;
|
|
5069
|
+
const _ = requestAnimationFrame(() => {
|
|
5066
5070
|
const S = new Event("resize");
|
|
5067
5071
|
window.dispatchEvent(S);
|
|
5068
5072
|
});
|
|
5069
|
-
return () => cancelAnimationFrame(
|
|
5073
|
+
return () => cancelAnimationFrame(_);
|
|
5070
5074
|
}, [V]);
|
|
5071
|
-
const H = (
|
|
5072
|
-
|
|
5073
|
-
},
|
|
5074
|
-
D(""),
|
|
5075
|
+
const H = (_) => {
|
|
5076
|
+
_.key === "Enter" && (o ? k() : V && V.pages[0].path && (window.location.href = V.pages[0].path));
|
|
5077
|
+
}, p = () => {
|
|
5078
|
+
D(""), b(void 0);
|
|
5075
5079
|
};
|
|
5076
5080
|
Z(() => {
|
|
5077
5081
|
z(i);
|
|
5078
5082
|
}, [i]);
|
|
5079
|
-
function d(
|
|
5080
|
-
const S =
|
|
5083
|
+
function d(_) {
|
|
5084
|
+
const S = _.toLowerCase(), E = [];
|
|
5081
5085
|
return u.forEach((P, j) => {
|
|
5082
5086
|
const W = [];
|
|
5083
5087
|
let K = P.content.toLowerCase().indexOf(S);
|
|
@@ -5093,28 +5097,28 @@ const ts = ({
|
|
|
5093
5097
|
path: P.path,
|
|
5094
5098
|
results: W
|
|
5095
5099
|
});
|
|
5096
|
-
}), { input:
|
|
5100
|
+
}), { input: _, pages: E };
|
|
5097
5101
|
}
|
|
5098
|
-
const
|
|
5099
|
-
const S =
|
|
5102
|
+
const C = (_) => {
|
|
5103
|
+
const S = _.target.value;
|
|
5100
5104
|
if (D(S), !S) {
|
|
5101
|
-
|
|
5105
|
+
b(void 0);
|
|
5102
5106
|
return;
|
|
5103
5107
|
}
|
|
5104
5108
|
const E = d(S);
|
|
5105
|
-
|
|
5106
|
-
},
|
|
5107
|
-
const
|
|
5109
|
+
b(E);
|
|
5110
|
+
}, k = () => {
|
|
5111
|
+
const _ = y.current?.value ?? "";
|
|
5108
5112
|
if (o)
|
|
5109
|
-
if (
|
|
5110
|
-
const S = d(
|
|
5113
|
+
if (_.length > 0) {
|
|
5114
|
+
const S = d(_);
|
|
5111
5115
|
o?.(S);
|
|
5112
5116
|
} else
|
|
5113
5117
|
o({ input: "", pages: [{ results: [] }] });
|
|
5114
5118
|
}, l = () => {
|
|
5115
5119
|
a && a(), z(!1);
|
|
5116
5120
|
};
|
|
5117
|
-
return
|
|
5121
|
+
return $ ? (
|
|
5118
5122
|
// Display solo search icon button to expand search component
|
|
5119
5123
|
/* @__PURE__ */ s("span", { className: `w-[52px] h-[50px] p-2 rounded-sm border border-[#6a686b]
|
|
5120
5124
|
inline-flex flex-col justify-center items-center bg-white`, children: /* @__PURE__ */ s(
|
|
@@ -5129,7 +5133,7 @@ const ts = ({
|
|
|
5129
5133
|
) : (
|
|
5130
5134
|
// Container including input + output list box
|
|
5131
5135
|
/* @__PURE__ */ B("span", { className: m(`h-12 md:h-[50px] lg:h-14 flex items-center max-w-full
|
|
5132
|
-
relative ${
|
|
5136
|
+
relative ${$ && "hidden"}`, t), children: [
|
|
5133
5137
|
/* @__PURE__ */ B(
|
|
5134
5138
|
"span",
|
|
5135
5139
|
{
|
|
@@ -5156,7 +5160,7 @@ const ts = ({
|
|
|
5156
5160
|
n
|
|
5157
5161
|
),
|
|
5158
5162
|
children: [
|
|
5159
|
-
/* @__PURE__ */ s("button", { onClick:
|
|
5163
|
+
/* @__PURE__ */ s("button", { onClick: k, className: "shrink-0 border-r-2", "aria-label": "execute search", children: /* @__PURE__ */ s("div", { className: "lg:hidden rounded-tl px-2 rounded-bl", children: /* @__PURE__ */ s("img", { className: "", src: d2, alt: "search icon" }) }) }),
|
|
5160
5164
|
/* @__PURE__ */ s(
|
|
5161
5165
|
"input",
|
|
5162
5166
|
{
|
|
@@ -5171,24 +5175,24 @@ const ts = ({
|
|
|
5171
5175
|
),
|
|
5172
5176
|
"aria-label": c,
|
|
5173
5177
|
"data-testid": h,
|
|
5174
|
-
value:
|
|
5175
|
-
onChange:
|
|
5178
|
+
value: v,
|
|
5179
|
+
onChange: C,
|
|
5176
5180
|
placeholder: "Search result",
|
|
5177
|
-
onKeyDown: (
|
|
5178
|
-
ref: (
|
|
5179
|
-
typeof
|
|
5181
|
+
onKeyDown: (_) => H(_),
|
|
5182
|
+
ref: (_) => {
|
|
5183
|
+
typeof w == "function" ? w(_) : w && (w.current = _), y.current = _;
|
|
5180
5184
|
},
|
|
5181
5185
|
...L
|
|
5182
5186
|
}
|
|
5183
5187
|
),
|
|
5184
5188
|
/* @__PURE__ */ s("span", { className: m(`hidden lg:flex items-center size-14 p-[17px] bg-[#07192d]
|
|
5185
|
-
rounded-tr rounded-br `, A && "rounded-r-full"), children: /* @__PURE__ */ s("button", { className: "appearance-none p-0 m-0 border-0 flex items-center justify-center align-middle", onClick:
|
|
5189
|
+
rounded-tr rounded-br `, A && "rounded-r-full"), children: /* @__PURE__ */ s("button", { className: "appearance-none p-0 m-0 border-0 flex items-center justify-center align-middle", onClick: k, "aria-label": "execute search", children: /* @__PURE__ */ s("img", { className: "", src: d0, alt: "search icon" }) }) }),
|
|
5186
5190
|
/* @__PURE__ */ s("span", { className: "lg:hidden items-center py-2 -ms-2 -ps-1 me-1 shrink-0", children: /* @__PURE__ */ s(
|
|
5187
5191
|
"button",
|
|
5188
5192
|
{
|
|
5189
5193
|
className: "appearance-none p-0 m-0 border-0 flex items-center justify-center align-middle",
|
|
5190
5194
|
"aria-label": "clear search",
|
|
5191
|
-
onClick: () =>
|
|
5195
|
+
onClick: () => p(),
|
|
5192
5196
|
children: /* @__PURE__ */ s("img", { className: "", src: u0, alt: "search icon" })
|
|
5193
5197
|
}
|
|
5194
5198
|
) })
|
|
@@ -5199,7 +5203,7 @@ const ts = ({
|
|
|
5199
5203
|
"div",
|
|
5200
5204
|
{
|
|
5201
5205
|
role: "listbox",
|
|
5202
|
-
ref:
|
|
5206
|
+
ref: f,
|
|
5203
5207
|
"aria-label": "Select option",
|
|
5204
5208
|
className: m(
|
|
5205
5209
|
`absolute
|
|
@@ -5212,13 +5216,13 @@ const ts = ({
|
|
|
5212
5216
|
`,
|
|
5213
5217
|
r
|
|
5214
5218
|
),
|
|
5215
|
-
style: { maxHeight:
|
|
5216
|
-
"data-testid":
|
|
5219
|
+
style: { maxHeight: T },
|
|
5220
|
+
"data-testid": N,
|
|
5217
5221
|
children: [
|
|
5218
5222
|
/* @__PURE__ */ s("hr", { className: "mb-1 -mt-1 mx-2 border-b-0 border-[#A1A6A8] lg:border-none" }),
|
|
5219
|
-
V.pages.map((
|
|
5220
|
-
/* @__PURE__ */ s("div", { className: "font-bold text-sm", children: /* @__PURE__ */ s("a", { role: "option", href:
|
|
5221
|
-
|
|
5223
|
+
V.pages.map((_, S) => /* @__PURE__ */ B("div", { className: "ms-4", children: [
|
|
5224
|
+
/* @__PURE__ */ s("div", { className: "font-bold text-sm", children: /* @__PURE__ */ s("a", { role: "option", href: _.path, className: "text-blue-700 underline", children: _.title && _.title }) }),
|
|
5225
|
+
_.results.map((E, P) => /* @__PURE__ */ B("div", { className: "ms-4", children: [
|
|
5222
5226
|
/* @__PURE__ */ s("span", { className: "text-[#1c1d1f]", children: V.input }),
|
|
5223
5227
|
/* @__PURE__ */ s("span", { className: "text-[#A1A6A8] lg:text-[#4E4E4E]", children: E.characters })
|
|
5224
5228
|
] }))
|
|
@@ -5243,30 +5247,30 @@ const g0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
5243
5247
|
subHeader: a = !1,
|
|
5244
5248
|
fill: u = !1,
|
|
5245
5249
|
type: o = "page",
|
|
5246
|
-
padLeft:
|
|
5250
|
+
padLeft: x = !0,
|
|
5247
5251
|
padRight: g = !0,
|
|
5248
5252
|
button: h,
|
|
5249
|
-
buttonOnClick:
|
|
5253
|
+
buttonOnClick: N,
|
|
5250
5254
|
buttonContent: L = "Click Me",
|
|
5251
|
-
dataTestId:
|
|
5252
|
-
children:
|
|
5253
|
-
...
|
|
5254
|
-
},
|
|
5255
|
-
const [D, V] =
|
|
5255
|
+
dataTestId: w,
|
|
5256
|
+
children: y,
|
|
5257
|
+
...f
|
|
5258
|
+
}, v) => {
|
|
5259
|
+
const [D, V] = F(""), [b, $] = F(""), [z, A] = F(""), M = `${o === "page" ? "pt-4 pb-2" : "py-2"} flex pl-6 pr-2 justify-start items-center gap-4 inline-flex w-full`;
|
|
5256
5260
|
return Z(() => {
|
|
5257
|
-
V(m(
|
|
5258
|
-
}, [e, i, u,
|
|
5259
|
-
|
|
5261
|
+
V(m(M, i ? "border-b-2 border-[#07192D]" : "", u ? "bg-[#092068] text-[#f0f0f0]" : "bg-transparent text-[#07192d]", x && g ? "mx-4 " : x ? "ms-4" : g ? "me-4" : "", e));
|
|
5262
|
+
}, [e, i, u, M, x, g]), Z(() => {
|
|
5263
|
+
$(m(`self-stretch ${o === "page" ? "text-[40px]" : o === "section" ? " text-[32px]" : "text-2xl"} font-normal font-["Arial"] leading-[48px]`, t));
|
|
5260
5264
|
}, [t, o]), Z(() => {
|
|
5261
5265
|
A(m(`${o === "page" ? "text-xl" : "text-lg"} font-normal font-["Arial"] leading-[30px]`, n));
|
|
5262
|
-
}, [n, o]), /* @__PURE__ */ s("div", { className: m(D, e), "data-testid":
|
|
5266
|
+
}, [n, o]), /* @__PURE__ */ s("div", { className: m(D, e), "data-testid": w, children: /* @__PURE__ */ B("div", { className: "grow shrink basis-0 justify-start items-center gap-4 flex flex-row", children: [
|
|
5263
5267
|
r && r,
|
|
5264
5268
|
/* @__PURE__ */ B("div", { className: "flex-col justify-start items-start inline-flex w-full", children: [
|
|
5265
5269
|
/* @__PURE__ */ s(
|
|
5266
5270
|
"div",
|
|
5267
5271
|
{
|
|
5268
|
-
className:
|
|
5269
|
-
children:
|
|
5272
|
+
className: b,
|
|
5273
|
+
children: y
|
|
5270
5274
|
}
|
|
5271
5275
|
),
|
|
5272
5276
|
a && /* @__PURE__ */ s(
|
|
@@ -5287,7 +5291,7 @@ const g0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
5287
5291
|
${o === "page" ? "text-base" : "text-sm"} }`,
|
|
5288
5292
|
icon: /* @__PURE__ */ s("img", { src: u ? f0 : g0, alt: "right chevron" }),
|
|
5289
5293
|
iconPosition: "right",
|
|
5290
|
-
onClick:
|
|
5294
|
+
onClick: N,
|
|
5291
5295
|
children: L
|
|
5292
5296
|
}
|
|
5293
5297
|
)
|
|
@@ -5416,42 +5420,42 @@ const g0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
5416
5420
|
classNameImage: a,
|
|
5417
5421
|
children: u,
|
|
5418
5422
|
dataTestId: o,
|
|
5419
|
-
...
|
|
5423
|
+
...x
|
|
5420
5424
|
}, g) => {
|
|
5421
|
-
const [h,
|
|
5422
|
-
|
|
5425
|
+
const [h, N] = F(), [L, w] = F(), [y, f] = F(p0), v = () => {
|
|
5426
|
+
N(m(h, "hidden"));
|
|
5423
5427
|
};
|
|
5424
5428
|
return Z(() => {
|
|
5425
5429
|
const D = t === "custom" ? "default" : t, V = u2.find(
|
|
5426
|
-
(
|
|
5430
|
+
(b) => b.variant === e && b.subVariant === D
|
|
5427
5431
|
)?.classes;
|
|
5428
5432
|
if (e === "icon") {
|
|
5429
|
-
const
|
|
5430
|
-
(
|
|
5433
|
+
const b = u2.find(
|
|
5434
|
+
($) => $.variant === e && $.subVariant === D
|
|
5431
5435
|
)?.classNameSvg;
|
|
5432
|
-
|
|
5436
|
+
w(t === "custom" ? m(b, r) : b);
|
|
5433
5437
|
}
|
|
5434
|
-
e === "hazard" ?
|
|
5438
|
+
e === "hazard" ? f(b0) : e === "go" && f(h0), N(m(V, n));
|
|
5435
5439
|
}, [t, n, e, r]), /* @__PURE__ */ B(ae, { children: [
|
|
5436
|
-
e === "default" && /* @__PURE__ */ s("div", { className: h, ...
|
|
5440
|
+
e === "default" && /* @__PURE__ */ s("div", { className: h, ...x, "data-testid": o, ref: g, children: u }),
|
|
5437
5441
|
(e === "warning" || e === "hazard" || e === "go") && /* @__PURE__ */ B("div", { className: h, "data-testid": o, children: [
|
|
5438
|
-
/* @__PURE__ */ s("div", { className: "size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative", children: /* @__PURE__ */ s("div", { className: "left-0 top-0 absolute", children: /* @__PURE__ */ s("img", { className: "size-6", src:
|
|
5442
|
+
/* @__PURE__ */ s("div", { className: "size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative", children: /* @__PURE__ */ s("div", { className: "left-0 top-0 absolute", children: /* @__PURE__ */ s("img", { className: "size-6", src: y, alt: `${e} icon` }) }) }),
|
|
5439
5443
|
/* @__PURE__ */ s("div", { className: "grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]", children: u }),
|
|
5440
5444
|
/* @__PURE__ */ s(
|
|
5441
5445
|
"button",
|
|
5442
5446
|
{
|
|
5443
|
-
onClick:
|
|
5447
|
+
onClick: v,
|
|
5444
5448
|
className: "size-3 py-px justify-center items-center gap-2.5 flex",
|
|
5445
5449
|
"aria-label": "Close modal",
|
|
5446
5450
|
children: /* @__PURE__ */ s("img", { src: x0, alt: "close alert icon" })
|
|
5447
5451
|
}
|
|
5448
5452
|
)
|
|
5449
5453
|
] }),
|
|
5450
|
-
e === "icon" && /* @__PURE__ */ B("div", { className: h, ...
|
|
5454
|
+
e === "icon" && /* @__PURE__ */ B("div", { className: h, ...x, "data-testid": o, ref: g, children: [
|
|
5451
5455
|
/* @__PURE__ */ s("svg", { viewBox: "0 0 6 6", "aria-hidden": "true", className: L, role: "img", children: /* @__PURE__ */ s("circle", { r: 3, cx: 3, cy: 3 }) }),
|
|
5452
5456
|
u
|
|
5453
5457
|
] }),
|
|
5454
|
-
e === "media" && /* @__PURE__ */ B("div", { className: h, ...
|
|
5458
|
+
e === "media" && /* @__PURE__ */ B("div", { className: h, ...x, "data-testid": o, ref: g, children: [
|
|
5455
5459
|
/* @__PURE__ */ s("div", { className: "col-start-1 col-span-2", children: /* @__PURE__ */ s("img", { className: m("h-full", a), src: c, alt: i }) }),
|
|
5456
5460
|
/* @__PURE__ */ s("div", { className: "w-full ml-2 col-start-3 col-span-3", children: u })
|
|
5457
5461
|
] })
|
|
@@ -5468,56 +5472,56 @@ function ns({
|
|
|
5468
5472
|
className: a = "",
|
|
5469
5473
|
classNameBackContainer: u,
|
|
5470
5474
|
classNameBackIcon: o,
|
|
5471
|
-
classNameBackText:
|
|
5475
|
+
classNameBackText: x,
|
|
5472
5476
|
classNameContainer: g = "",
|
|
5473
5477
|
classNameMenu: h = "",
|
|
5474
|
-
classNameMenuItem:
|
|
5478
|
+
classNameMenuItem: N = "",
|
|
5475
5479
|
classNameBackButton: L,
|
|
5476
|
-
classNameMenuContainer:
|
|
5477
|
-
classNameImage:
|
|
5478
|
-
classNameImageContainer:
|
|
5479
|
-
version:
|
|
5480
|
+
classNameMenuContainer: w = "",
|
|
5481
|
+
classNameImage: y = "",
|
|
5482
|
+
classNameImageContainer: f = "",
|
|
5483
|
+
version: v,
|
|
5480
5484
|
menuItems: D,
|
|
5481
5485
|
right: V = !1,
|
|
5482
|
-
dataTestId:
|
|
5483
|
-
dataTestIdHamburger:
|
|
5486
|
+
dataTestId: b,
|
|
5487
|
+
dataTestIdHamburger: $ = "hamburgerMenu",
|
|
5484
5488
|
children: z
|
|
5485
5489
|
}) {
|
|
5486
|
-
const A = Q(null), [
|
|
5490
|
+
const A = Q(null), [M, O] = F(!1), [I, T] = F(!1), U = Q(null);
|
|
5487
5491
|
Z(() => {
|
|
5488
|
-
const
|
|
5489
|
-
|
|
5492
|
+
const k = () => {
|
|
5493
|
+
M ? p() : H();
|
|
5490
5494
|
};
|
|
5491
|
-
return window.addEventListener("toggleSideBarNav",
|
|
5492
|
-
}, [
|
|
5493
|
-
const
|
|
5494
|
-
|
|
5495
|
-
}, [
|
|
5496
|
-
if (
|
|
5497
|
-
const
|
|
5495
|
+
return window.addEventListener("toggleSideBarNav", k), () => window.removeEventListener("toggleSideBarNav", k);
|
|
5496
|
+
}, [M]), Z(() => {
|
|
5497
|
+
const k = A.current;
|
|
5498
|
+
k && (M && !k.open ? (U.current = document.activeElement, k.showModal(), (k.querySelector("#sideBarNavBackButton") ?? k).focus()) : !M && k.open && (k.close(), U.current?.focus?.()));
|
|
5499
|
+
}, [M]), Z(() => {
|
|
5500
|
+
if (M) {
|
|
5501
|
+
const k = document.body.style.overflow;
|
|
5498
5502
|
return document.body.style.overflow = "hidden", () => {
|
|
5499
|
-
document.body.style.overflow =
|
|
5503
|
+
document.body.style.overflow = k;
|
|
5500
5504
|
};
|
|
5501
5505
|
}
|
|
5502
|
-
}, [
|
|
5506
|
+
}, [M]);
|
|
5503
5507
|
const H = () => {
|
|
5504
|
-
|
|
5505
|
-
|
|
5508
|
+
O(!0), setTimeout(() => {
|
|
5509
|
+
T(!0);
|
|
5506
5510
|
}, 10);
|
|
5507
|
-
},
|
|
5508
|
-
|
|
5509
|
-
|
|
5511
|
+
}, p = () => {
|
|
5512
|
+
T(!1), setTimeout(() => {
|
|
5513
|
+
O(!1);
|
|
5510
5514
|
}, v0);
|
|
5511
|
-
}, d = (
|
|
5512
|
-
c &&
|
|
5513
|
-
},
|
|
5515
|
+
}, d = (k) => {
|
|
5516
|
+
c && k.target === k.currentTarget && p();
|
|
5517
|
+
}, C = m(w0, V ? "text-right pe-2" : "", N);
|
|
5514
5518
|
return /* @__PURE__ */ B(ae, { children: [
|
|
5515
5519
|
!i && /* @__PURE__ */ s(
|
|
5516
5520
|
"button",
|
|
5517
5521
|
{
|
|
5518
5522
|
"aria-label": "navigation",
|
|
5519
|
-
"data-testid":
|
|
5520
|
-
className: m("size-8 mb-4",
|
|
5523
|
+
"data-testid": $,
|
|
5524
|
+
className: m("size-8 mb-4", w),
|
|
5521
5525
|
onClick: H,
|
|
5522
5526
|
children: /* @__PURE__ */ s(C0, { classes: m("fill-slate-500 hover:fill-black size-8", h) })
|
|
5523
5527
|
}
|
|
@@ -5530,10 +5534,10 @@ function ns({
|
|
|
5530
5534
|
className: m("m-0 p-0 max-w-none max-h-none w-full h-full bg-transparent", a),
|
|
5531
5535
|
onClick: d,
|
|
5532
5536
|
onClose: () => {
|
|
5533
|
-
|
|
5537
|
+
T(!1), O(!1);
|
|
5534
5538
|
},
|
|
5535
5539
|
"data-side": "right",
|
|
5536
|
-
"data-testid":
|
|
5540
|
+
"data-testid": b,
|
|
5537
5541
|
children: [
|
|
5538
5542
|
/* @__PURE__ */ B(
|
|
5539
5543
|
"div",
|
|
@@ -5546,7 +5550,7 @@ function ns({
|
|
|
5546
5550
|
// --- MODIFIED: Duration class uses a variable for consistency ---
|
|
5547
5551
|
"transition-transform duration-200 ease-in-out",
|
|
5548
5552
|
// --- MODIFIED: Animation is now controlled by 'isShowing' state ---
|
|
5549
|
-
|
|
5553
|
+
I ? "translate-x-0" : "translate-x-full",
|
|
5550
5554
|
g
|
|
5551
5555
|
),
|
|
5552
5556
|
children: [
|
|
@@ -5557,32 +5561,32 @@ function ns({
|
|
|
5557
5561
|
autoFocus: !0,
|
|
5558
5562
|
id: "sideBarNavBackButton",
|
|
5559
5563
|
className: m("-mt-8 w-full relative hover:cursor-pointer", L),
|
|
5560
|
-
onClick:
|
|
5564
|
+
onClick: p,
|
|
5561
5565
|
"aria-label": "Close menu",
|
|
5562
5566
|
children: /* @__PURE__ */ B("div", { className: m("absolute top-0 right-2", u), children: [
|
|
5563
5567
|
t ? /* @__PURE__ */ s(y0, { className: m("w-10", o) }) : /* @__PURE__ */ s(k0, { className: m("w-10", o) }),
|
|
5564
|
-
/* @__PURE__ */ s("p", { className: m("-mt-2",
|
|
5568
|
+
/* @__PURE__ */ s("p", { className: m("-mt-2", x), children: n })
|
|
5565
5569
|
] })
|
|
5566
5570
|
}
|
|
5567
5571
|
),
|
|
5568
|
-
/* @__PURE__ */ s("div", { className: m("w-16 h-16 mx-auto",
|
|
5572
|
+
/* @__PURE__ */ s("div", { className: m("w-16 h-16 mx-auto", f), children: /* @__PURE__ */ s(
|
|
5569
5573
|
"img",
|
|
5570
5574
|
{
|
|
5571
5575
|
src: r,
|
|
5572
|
-
className: m("border border-[#bbbabc] w-16 h-16 ring-1",
|
|
5576
|
+
className: m("border border-[#bbbabc] w-16 h-16 ring-1", y),
|
|
5573
5577
|
alt: "application icon"
|
|
5574
5578
|
}
|
|
5575
5579
|
) }),
|
|
5576
5580
|
/* @__PURE__ */ s("div", { className: "text-center text-xl mt-2", children: e }),
|
|
5577
5581
|
/* @__PURE__ */ s("div", { className: "[204px] mt-3 h-[2px] border-[0.5px] border-[#D9D9D9] bg-[#D9D9D9]" }),
|
|
5578
5582
|
z && z,
|
|
5579
|
-
/* @__PURE__ */ s(l0, { className: "pl-4 lg:pl-6 mt-6", children: D.map((
|
|
5583
|
+
/* @__PURE__ */ s(l0, { className: "pl-4 lg:pl-6 mt-6", children: D.map((k, l) => /* @__PURE__ */ s(S2, { className: C, children: k.target ? (
|
|
5580
5584
|
// --- MODIFIED: Use the new handler ---
|
|
5581
|
-
/* @__PURE__ */ s(A2, { to:
|
|
5582
|
-
) :
|
|
5585
|
+
/* @__PURE__ */ s(A2, { to: k.target, onClick: p, children: k.children })
|
|
5586
|
+
) : k.children }, l)) }),
|
|
5583
5587
|
/* @__PURE__ */ B("div", { className: "align-bottom mt-auto text-right right-2 bottom-1", children: [
|
|
5584
5588
|
"Version ",
|
|
5585
|
-
|
|
5589
|
+
v
|
|
5586
5590
|
] })
|
|
5587
5591
|
]
|
|
5588
5592
|
}
|
|
@@ -5780,15 +5784,15 @@ const _0 = "_slider_87un4_28", $0 = {
|
|
|
5780
5784
|
changeHandler: a,
|
|
5781
5785
|
id: u,
|
|
5782
5786
|
label: o,
|
|
5783
|
-
...
|
|
5787
|
+
...x
|
|
5784
5788
|
}, g) => {
|
|
5785
|
-
const [h,
|
|
5789
|
+
const [h, N] = F(i), L = Q(null);
|
|
5786
5790
|
g2(g, () => L.current), Z(() => {
|
|
5787
|
-
|
|
5791
|
+
N(i);
|
|
5788
5792
|
}, []);
|
|
5789
|
-
const
|
|
5790
|
-
const
|
|
5791
|
-
|
|
5793
|
+
const w = (y) => {
|
|
5794
|
+
const f = Number(y.target.value);
|
|
5795
|
+
N(Number(f)), a && a(f);
|
|
5792
5796
|
};
|
|
5793
5797
|
return /* @__PURE__ */ B(ae, { children: [
|
|
5794
5798
|
u && o && /* @__PURE__ */ s(
|
|
@@ -5809,8 +5813,8 @@ const _0 = "_slider_87un4_28", $0 = {
|
|
|
5809
5813
|
"data-testid": c,
|
|
5810
5814
|
className: m($0.slider, e),
|
|
5811
5815
|
value: h,
|
|
5812
|
-
onChange:
|
|
5813
|
-
...
|
|
5816
|
+
onChange: w,
|
|
5817
|
+
...x
|
|
5814
5818
|
}
|
|
5815
5819
|
)
|
|
5816
5820
|
] });
|
|
@@ -5847,21 +5851,21 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5847
5851
|
classNameImage: a,
|
|
5848
5852
|
children: u,
|
|
5849
5853
|
...o
|
|
5850
|
-
},
|
|
5851
|
-
const [g, h] =
|
|
5854
|
+
}, x) => {
|
|
5855
|
+
const [g, h] = F(), [N, L] = F(), [w, y] = F();
|
|
5852
5856
|
return Z(() => {
|
|
5853
5857
|
h(m(
|
|
5854
|
-
Ue.find((
|
|
5858
|
+
Ue.find((f) => f.variant === e)?.classes,
|
|
5855
5859
|
t
|
|
5856
|
-
)),
|
|
5857
|
-
Ue.find((
|
|
5860
|
+
)), y(m(
|
|
5861
|
+
Ue.find((f) => f.variant === e)?.childClasses,
|
|
5858
5862
|
i
|
|
5859
5863
|
)), L(m(
|
|
5860
|
-
Ue.find((
|
|
5864
|
+
Ue.find((f) => f.variant === e)?.imgDivClasses,
|
|
5861
5865
|
a
|
|
5862
5866
|
));
|
|
5863
|
-
}, [e, t, i, a]), /* @__PURE__ */ B("div", { className: g, ref:
|
|
5864
|
-
/* @__PURE__ */ s("div", { className:
|
|
5867
|
+
}, [e, t, i, a]), /* @__PURE__ */ B("div", { className: g, ref: x, "data-testid": c, children: [
|
|
5868
|
+
/* @__PURE__ */ s("div", { className: N, children: n || // if we have an image prop - display
|
|
5865
5869
|
(e === "available" ? (
|
|
5866
5870
|
// else if we are variant 'available' ...
|
|
5867
5871
|
/* @__PURE__ */ s("img", { src: z0, alt: "check mark" })
|
|
@@ -5869,7 +5873,7 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5869
5873
|
// else we are variant 'inProgress' ...
|
|
5870
5874
|
/* @__PURE__ */ s("img", { src: H0, alt: "close" })
|
|
5871
5875
|
)) }),
|
|
5872
|
-
/* @__PURE__ */ s("div", { className:
|
|
5876
|
+
/* @__PURE__ */ s("div", { className: w, "data-testid": r, children: u })
|
|
5873
5877
|
] });
|
|
5874
5878
|
}
|
|
5875
5879
|
), B0 = "w-16 h-8 flex lg:w-[49.74px] lg:h-[24.87px]! lg:p-[3.1px] items-center p-1 rounded-2xl cursor-pointer transition-colors duration-300", A0 = "bg-white w-6 h-6 lg:w-[18.65px] lg:h-[18.65px]! rounded-full shadow-[0px_4px_4.900000095367432px_0px_rgba(0,0,0,0.12)] transform transition-transform duration-300", Me = [
|
|
@@ -5903,28 +5907,28 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5903
5907
|
classNameButton: a,
|
|
5904
5908
|
variant: u = "default",
|
|
5905
5909
|
type: o = "button",
|
|
5906
|
-
children:
|
|
5910
|
+
children: x,
|
|
5907
5911
|
...g
|
|
5908
5912
|
}, h) => {
|
|
5909
|
-
const [
|
|
5913
|
+
const [N, L] = F(e);
|
|
5910
5914
|
return /* @__PURE__ */ s(
|
|
5911
5915
|
"button",
|
|
5912
5916
|
{
|
|
5913
5917
|
onClick: () => {
|
|
5914
|
-
const
|
|
5915
|
-
L(
|
|
5918
|
+
const y = !N;
|
|
5919
|
+
L(y), n && n(y);
|
|
5916
5920
|
},
|
|
5917
5921
|
disabled: t,
|
|
5918
5922
|
role: "switch",
|
|
5919
|
-
"aria-checked":
|
|
5923
|
+
"aria-checked": N,
|
|
5920
5924
|
"aria-disabled": t,
|
|
5921
5925
|
"data-testid": c,
|
|
5922
5926
|
...g,
|
|
5923
5927
|
ref: h,
|
|
5924
|
-
"aria-label": r || `Toggle ${
|
|
5928
|
+
"aria-label": r || `Toggle ${N ? "on" : "off"}`,
|
|
5925
5929
|
className: m(
|
|
5926
5930
|
`${B0}
|
|
5927
|
-
${
|
|
5931
|
+
${N ? Me.find((y) => y.variant === u)?.toggledClasses : Me.find((y) => y.variant === u)?.classes}`,
|
|
5928
5932
|
i
|
|
5929
5933
|
),
|
|
5930
5934
|
children: /* @__PURE__ */ s(
|
|
@@ -5932,7 +5936,7 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5932
5936
|
{
|
|
5933
5937
|
className: m(
|
|
5934
5938
|
`${A0}
|
|
5935
|
-
${
|
|
5939
|
+
${N ? Me.find((y) => y.variant === u)?.toggledButtonClasses : Me.find((y) => y.variant === u)?.buttonClasses}`,
|
|
5936
5940
|
a
|
|
5937
5941
|
)
|
|
5938
5942
|
}
|
|
@@ -5949,18 +5953,18 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5949
5953
|
dataTestId: c,
|
|
5950
5954
|
...i
|
|
5951
5955
|
}, a) => {
|
|
5952
|
-
const [u, o] =
|
|
5953
|
-
let
|
|
5956
|
+
const [u, o] = F(!1);
|
|
5957
|
+
let x;
|
|
5954
5958
|
const g = $e(() => {
|
|
5955
|
-
|
|
5959
|
+
x = setTimeout(() => o(!0), t);
|
|
5956
5960
|
}, [t]), h = $e(() => {
|
|
5957
|
-
clearTimeout(
|
|
5958
|
-
}, []),
|
|
5959
|
-
if (xe(
|
|
5960
|
-
return
|
|
5961
|
-
}),
|
|
5962
|
-
if (xe(
|
|
5963
|
-
return
|
|
5961
|
+
clearTimeout(x), o(!1);
|
|
5962
|
+
}, []), N = We.toArray(e), L = N.find((y) => {
|
|
5963
|
+
if (xe(y))
|
|
5964
|
+
return y.type.displayName !== "TooltipContent";
|
|
5965
|
+
}), w = N.find((y) => {
|
|
5966
|
+
if (xe(y))
|
|
5967
|
+
return y.type.displayName === "TooltipContent";
|
|
5964
5968
|
});
|
|
5965
5969
|
return /* @__PURE__ */ s(V2.Provider, { value: { id: r }, children: /* @__PURE__ */ B(
|
|
5966
5970
|
"div",
|
|
@@ -5976,7 +5980,7 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5976
5980
|
...i,
|
|
5977
5981
|
children: [
|
|
5978
5982
|
L,
|
|
5979
|
-
u &&
|
|
5983
|
+
u && w
|
|
5980
5984
|
]
|
|
5981
5985
|
}
|
|
5982
5986
|
) });
|
|
@@ -5985,17 +5989,17 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5985
5989
|
I0.displayName = "Tooltip";
|
|
5986
5990
|
const E0 = re(
|
|
5987
5991
|
({ children: e, className: t, position: n, dataTestId: r, ...c }, i) => {
|
|
5988
|
-
const [a, u] =
|
|
5992
|
+
const [a, u] = F("mt-2"), o = H2(V2);
|
|
5989
5993
|
if (!o)
|
|
5990
5994
|
throw new Error("TooltipContent must be used within a tooltip");
|
|
5991
|
-
const { id:
|
|
5995
|
+
const { id: x } = o;
|
|
5992
5996
|
return Z(() => {
|
|
5993
5997
|
n === "s" ? u("left-1/2 -translate-x-1/2 top-full mt-2") : n === "n" ? u("left-1/2 -translate-x-1/2 -top-1 -translate-y-full ") : n === "nw" ? u("left-0 -top-1 -translate-y-full") : n === "ne" ? u("right-0 -top-1 -translate-y-full") : n === "se" ? u("right-0 top-full mt-2") : n === "w" ? u("-translate-x-full -left-2 -translate-y-1/2 top-1/2") : n === "e" ? u("-right-2 translate-x-full -translate-y-1/2 top-1/2") : n === "c" && u("left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2");
|
|
5994
5998
|
}, [n, t]), /* @__PURE__ */ s(
|
|
5995
5999
|
"div",
|
|
5996
6000
|
{
|
|
5997
6001
|
ref: i,
|
|
5998
|
-
id:
|
|
6002
|
+
id: x,
|
|
5999
6003
|
role: "tooltip",
|
|
6000
6004
|
"data-testid": r,
|
|
6001
6005
|
className: m(
|