@dhasdk/simple-ui 1.0.69 → 1.0.70
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 +8 -1
- package/index.js +16 -16
- package/index.mjs +707 -701
- package/lib/Accordion.d.ts +3 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -108,26 +108,26 @@ const qe = "-", A2 = (e) => {
|
|
|
108
108
|
let r = (c) => {
|
|
109
109
|
const i = [];
|
|
110
110
|
let a = 0, d = 0, l = 0, x;
|
|
111
|
-
for (let
|
|
112
|
-
let v = c[
|
|
111
|
+
for (let k = 0; k < c.length; k++) {
|
|
112
|
+
let v = c[k];
|
|
113
113
|
if (a === 0 && d === 0) {
|
|
114
114
|
if (v === Ge) {
|
|
115
|
-
i.push(c.slice(l,
|
|
115
|
+
i.push(c.slice(l, k)), l = k + Y2;
|
|
116
116
|
continue;
|
|
117
117
|
}
|
|
118
118
|
if (v === "/") {
|
|
119
|
-
x =
|
|
119
|
+
x = k;
|
|
120
120
|
continue;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
v === "[" ? a++ : v === "]" ? a-- : v === "(" ? d++ : v === ")" && d--;
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const f = i.length === 0 ? c : c.substring(l), b = U2(f), D = b !== f, N = x && x > l ? x - l : void 0;
|
|
126
126
|
return {
|
|
127
127
|
modifiers: i,
|
|
128
|
-
hasImportantModifier:
|
|
128
|
+
hasImportantModifier: D,
|
|
129
129
|
baseClassName: b,
|
|
130
|
-
maybePostfixModifierPosition:
|
|
130
|
+
maybePostfixModifierPosition: N
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
133
|
if (s) {
|
|
@@ -173,39 +173,39 @@ const qe = "-", A2 = (e) => {
|
|
|
173
173
|
} = s, a = [], d = e.trim().split(P2);
|
|
174
174
|
let l = "";
|
|
175
175
|
for (let x = d.length - 1; x >= 0; x -= 1) {
|
|
176
|
-
const
|
|
176
|
+
const f = d[x], {
|
|
177
177
|
isExternal: b,
|
|
178
|
-
modifiers:
|
|
179
|
-
hasImportantModifier:
|
|
180
|
-
baseClassName:
|
|
178
|
+
modifiers: D,
|
|
179
|
+
hasImportantModifier: N,
|
|
180
|
+
baseClassName: k,
|
|
181
181
|
maybePostfixModifierPosition: v
|
|
182
|
-
} = n(
|
|
182
|
+
} = n(f);
|
|
183
183
|
if (b) {
|
|
184
|
-
l =
|
|
184
|
+
l = f + (l.length > 0 ? " " + l : l);
|
|
185
185
|
continue;
|
|
186
186
|
}
|
|
187
|
-
let
|
|
187
|
+
let h = !!v, y = r(h ? k.substring(0, v) : k);
|
|
188
188
|
if (!y) {
|
|
189
|
-
if (!
|
|
190
|
-
l =
|
|
189
|
+
if (!h) {
|
|
190
|
+
l = f + (l.length > 0 ? " " + l : l);
|
|
191
191
|
continue;
|
|
192
192
|
}
|
|
193
|
-
if (y = r(
|
|
194
|
-
l =
|
|
193
|
+
if (y = r(k), !y) {
|
|
194
|
+
l = f + (l.length > 0 ? " " + l : l);
|
|
195
195
|
continue;
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
h = !1;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
199
|
+
const S = i(D).join(":"), L = N ? S + Pe : S, w = L + y;
|
|
200
200
|
if (a.includes(w))
|
|
201
201
|
continue;
|
|
202
202
|
a.push(w);
|
|
203
|
-
const
|
|
204
|
-
for (let V = 0; V <
|
|
205
|
-
const I =
|
|
206
|
-
a.push(
|
|
203
|
+
const M = c(y, h);
|
|
204
|
+
for (let V = 0; V < M.length; ++V) {
|
|
205
|
+
const I = M[V];
|
|
206
|
+
a.push(L + I);
|
|
207
207
|
}
|
|
208
|
-
l =
|
|
208
|
+
l = f + (l.length > 0 ? " " + l : l);
|
|
209
209
|
}
|
|
210
210
|
return l;
|
|
211
211
|
};
|
|
@@ -226,15 +226,15 @@ const p2 = (e) => {
|
|
|
226
226
|
function q2(e, ...s) {
|
|
227
227
|
let n, r, c, i = a;
|
|
228
228
|
function a(l) {
|
|
229
|
-
const x = s.reduce((
|
|
229
|
+
const x = s.reduce((f, b) => b(f), e());
|
|
230
230
|
return n = Z2(x), r = n.cache.get, c = n.cache.set, i = d, d(l);
|
|
231
231
|
}
|
|
232
232
|
function d(l) {
|
|
233
233
|
const x = r(l);
|
|
234
234
|
if (x)
|
|
235
235
|
return x;
|
|
236
|
-
const
|
|
237
|
-
return c(l,
|
|
236
|
+
const f = G2(l, n);
|
|
237
|
+
return c(l, f), f;
|
|
238
238
|
}
|
|
239
239
|
return function() {
|
|
240
240
|
return i(W2.apply(null, arguments));
|
|
@@ -255,7 +255,7 @@ const J = (e) => {
|
|
|
255
255
|
const r = x2.exec(e);
|
|
256
256
|
return r ? r[1] ? s(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"), s = J("font"), n = J("text"), r = J("font-weight"), c = J("tracking"), i = J("leading"), a = J("breakpoint"), d = J("container"), l = J("spacing"), x = J("radius"),
|
|
258
|
+
const e = J("color"), s = J("font"), n = J("text"), r = J("font-weight"), c = J("tracking"), i = J("leading"), a = J("breakpoint"), d = J("container"), l = J("spacing"), x = J("radius"), f = J("shadow"), b = J("inset-shadow"), D = J("text-shadow"), N = J("drop-shadow"), k = J("blur"), v = J("perspective"), h = J("aspect"), y = J("ease"), S = J("animate"), L = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], w = () => [
|
|
259
259
|
"center",
|
|
260
260
|
"top",
|
|
261
261
|
"bottom",
|
|
@@ -273,9 +273,9 @@ 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
|
-
],
|
|
276
|
+
], M = () => [...w(), R, T], V = () => ["auto", "hidden", "clip", "visible", "scroll"], I = () => ["auto", "contain", "none"], _ = () => [R, T, l], A = () => [fe, "full", "auto", ..._()], E = () => [de, "none", "subgrid", R, T], O = () => ["auto", {
|
|
277
277
|
span: ["full", de, R, T]
|
|
278
|
-
}, de, R, T], j = () => [de, "auto", R, T], W = () => ["auto", "min", "max", "fr", R, T],
|
|
278
|
+
}, de, R, T], j = () => [de, "auto", R, T], W = () => ["auto", "min", "max", "fr", R, T], C = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], o = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], p = () => ["auto", ..._()], g = () => [fe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ..._()], u = () => [e, R, T], z = () => [...w(), Qe, Je, {
|
|
279
279
|
position: [R, T]
|
|
280
280
|
}], $ = () => ["no-repeat", {
|
|
281
281
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -293,7 +293,7 @@ const J = (e) => {
|
|
|
293
293
|
// Deprecated since Tailwind CSS v4.0.0
|
|
294
294
|
"",
|
|
295
295
|
"none",
|
|
296
|
-
|
|
296
|
+
k,
|
|
297
297
|
R,
|
|
298
298
|
T
|
|
299
299
|
], se = () => ["none", G, R, T], X = () => ["none", G, R, T], ee = () => [G, R, T], ne = () => [fe, "full", ..._()];
|
|
@@ -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, T, R,
|
|
332
|
+
aspect: ["auto", "square", fe, T, R, h]
|
|
333
333
|
}],
|
|
334
334
|
/**
|
|
335
335
|
* Container
|
|
@@ -349,14 +349,14 @@ const J = (e) => {
|
|
|
349
349
|
* @see https://tailwindcss.com/docs/break-after
|
|
350
350
|
*/
|
|
351
351
|
"break-after": [{
|
|
352
|
-
"break-after":
|
|
352
|
+
"break-after": L()
|
|
353
353
|
}],
|
|
354
354
|
/**
|
|
355
355
|
* Break Before
|
|
356
356
|
* @see https://tailwindcss.com/docs/break-before
|
|
357
357
|
*/
|
|
358
358
|
"break-before": [{
|
|
359
|
-
"break-before":
|
|
359
|
+
"break-before": L()
|
|
360
360
|
}],
|
|
361
361
|
/**
|
|
362
362
|
* Break Inside
|
|
@@ -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: M()
|
|
424
424
|
}],
|
|
425
425
|
/**
|
|
426
426
|
* Overflow
|
|
@@ -699,7 +699,7 @@ const J = (e) => {
|
|
|
699
699
|
* @see https://tailwindcss.com/docs/justify-content
|
|
700
700
|
*/
|
|
701
701
|
"justify-content": [{
|
|
702
|
-
justify: [...
|
|
702
|
+
justify: [...C(), "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", ...C()]
|
|
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": C()
|
|
749
749
|
}],
|
|
750
750
|
/**
|
|
751
751
|
* Place Items
|
|
@@ -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: g()
|
|
924
924
|
}],
|
|
925
925
|
/**
|
|
926
926
|
* Width
|
|
927
927
|
* @see https://tailwindcss.com/docs/width
|
|
928
928
|
*/
|
|
929
929
|
w: [{
|
|
930
|
-
w: [d, "screen", ...
|
|
930
|
+
w: [d, "screen", ...g()]
|
|
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
|
+
...g()
|
|
943
943
|
]
|
|
944
944
|
}],
|
|
945
945
|
/**
|
|
@@ -957,7 +957,7 @@ const J = (e) => {
|
|
|
957
957
|
{
|
|
958
958
|
screen: [a]
|
|
959
959
|
},
|
|
960
|
-
...
|
|
960
|
+
...g()
|
|
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", ...g()]
|
|
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", ...g()]
|
|
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", ...g()]
|
|
983
983
|
}],
|
|
984
984
|
// ------------------
|
|
985
985
|
// --- Typography ---
|
|
@@ -1645,7 +1645,7 @@ const J = (e) => {
|
|
|
1645
1645
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1646
1646
|
"",
|
|
1647
1647
|
"none",
|
|
1648
|
-
|
|
1648
|
+
f,
|
|
1649
1649
|
ye,
|
|
1650
1650
|
Ce
|
|
1651
1651
|
]
|
|
@@ -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", D, ye, Ce]
|
|
1733
1733
|
}],
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Text Shadow Color
|
|
@@ -2001,7 +2001,7 @@ const J = (e) => {
|
|
|
2001
2001
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2002
2002
|
"",
|
|
2003
2003
|
"none",
|
|
2004
|
-
|
|
2004
|
+
N,
|
|
2005
2005
|
ye,
|
|
2006
2006
|
Ce
|
|
2007
2007
|
]
|
|
@@ -2212,7 +2212,7 @@ const J = (e) => {
|
|
|
2212
2212
|
* @see https://tailwindcss.com/docs/animation
|
|
2213
2213
|
*/
|
|
2214
2214
|
animate: [{
|
|
2215
|
-
animate: ["none",
|
|
2215
|
+
animate: ["none", S, R, T]
|
|
2216
2216
|
}],
|
|
2217
2217
|
// ------------------
|
|
2218
2218
|
// --- Transforms ---
|
|
@@ -2236,7 +2236,7 @@ const J = (e) => {
|
|
|
2236
2236
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2237
2237
|
*/
|
|
2238
2238
|
"perspective-origin": [{
|
|
2239
|
-
"perspective-origin":
|
|
2239
|
+
"perspective-origin": M()
|
|
2240
2240
|
}],
|
|
2241
2241
|
/**
|
|
2242
2242
|
* Rotate
|
|
@@ -2332,7 +2332,7 @@ const J = (e) => {
|
|
|
2332
2332
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2333
2333
|
*/
|
|
2334
2334
|
"transform-origin": [{
|
|
2335
|
-
origin:
|
|
2335
|
+
origin: M()
|
|
2336
2336
|
}],
|
|
2337
2337
|
/**
|
|
2338
2338
|
* Transform Style
|
|
@@ -2733,65 +2733,67 @@ const J = (e) => {
|
|
|
2733
2733
|
iconAccordionOpened: c,
|
|
2734
2734
|
iconAccordionClosed: i,
|
|
2735
2735
|
hr: a = !0,
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2736
|
+
onExpand: d,
|
|
2737
|
+
classNameHeading: l = "",
|
|
2738
|
+
classNameContent: x = "",
|
|
2739
|
+
internalCallback: f,
|
|
2740
|
+
singleOpen: b,
|
|
2741
|
+
classNameHr: D = "",
|
|
2742
|
+
useBackground: N = !0,
|
|
2743
|
+
className: k,
|
|
2744
|
+
dataTestId: v,
|
|
2745
|
+
dataTestIdLabel: h,
|
|
2746
|
+
dataTestIdBody: y,
|
|
2747
|
+
index: S,
|
|
2748
|
+
children: L,
|
|
2749
|
+
...w
|
|
2750
|
+
}, M) => {
|
|
2751
|
+
const [V, I] = Y(!1), [_, A] = Y(Oe), [E, O] = Y(Ee), [j, W] = Y(""), C = `accordion-${S ?? s.replace(/\s+/g, "-").toLowerCase()}`, o = () => {
|
|
2752
|
+
f && b && f(I), d?.(!V), I(!V);
|
|
2753
|
+
}, p = (g) => {
|
|
2754
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), o());
|
|
2753
2755
|
};
|
|
2754
2756
|
return Z(() => {
|
|
2755
|
-
|
|
2756
|
-
}, [
|
|
2757
|
-
|
|
2758
|
-
}, [
|
|
2759
|
-
|
|
2760
|
-
}, [
|
|
2757
|
+
W(m("border-[#dfe1e2] -mt-4 pt-0 mb-3", D));
|
|
2758
|
+
}, [D]), Z(() => {
|
|
2759
|
+
A(N ? Oe : m(Oe, "bg-transparent border-0"));
|
|
2760
|
+
}, [N]), Z(() => {
|
|
2761
|
+
O(V && N ? m(Ee, "border-b-0! rounded-t rounded-b-none") : Ee);
|
|
2762
|
+
}, [V, N]), /* @__PURE__ */ B("div", { ref: M, className: n, "data-testid": v, children: [
|
|
2761
2763
|
/* @__PURE__ */ B(
|
|
2762
2764
|
"button",
|
|
2763
2765
|
{
|
|
2764
|
-
className: m(
|
|
2765
|
-
"aria-controls": `${
|
|
2766
|
-
"aria-expanded":
|
|
2767
|
-
id: `${
|
|
2768
|
-
onClick:
|
|
2769
|
-
onKeyDown:
|
|
2770
|
-
...
|
|
2766
|
+
className: m(E, xt.variant, l),
|
|
2767
|
+
"aria-controls": `${C}-content`,
|
|
2768
|
+
"aria-expanded": V,
|
|
2769
|
+
id: `${C}-header`,
|
|
2770
|
+
onClick: o,
|
|
2771
|
+
onKeyDown: p,
|
|
2772
|
+
...w,
|
|
2771
2773
|
children: [
|
|
2772
|
-
/* @__PURE__ */ t("span", { "data-testid":
|
|
2773
|
-
/* @__PURE__ */ t("span", { children:
|
|
2774
|
+
/* @__PURE__ */ t("span", { "data-testid": h, children: s }),
|
|
2775
|
+
/* @__PURE__ */ t("span", { children: V ? c || /* @__PURE__ */ t("img", { src: r ? L2 : pt, alt: "Close Icon" }) : i || /* @__PURE__ */ t("img", { src: r ? M2 : ht, alt: "Open Icon" }) })
|
|
2774
2776
|
]
|
|
2775
2777
|
}
|
|
2776
2778
|
),
|
|
2777
|
-
|
|
2779
|
+
V && /* @__PURE__ */ t(ae, { children: /* @__PURE__ */ B(
|
|
2778
2780
|
"div",
|
|
2779
2781
|
{
|
|
2780
2782
|
className: m(
|
|
2781
|
-
|
|
2783
|
+
_,
|
|
2782
2784
|
wt.variant,
|
|
2783
|
-
|
|
2785
|
+
x,
|
|
2784
2786
|
// rounded && useBackground && 'rounded-b-md', 'relative'
|
|
2785
|
-
|
|
2787
|
+
N && "rounded-b-md",
|
|
2786
2788
|
"relative"
|
|
2787
2789
|
),
|
|
2788
|
-
id: `${
|
|
2790
|
+
id: `${C}-content`,
|
|
2789
2791
|
role: "region",
|
|
2790
|
-
"aria-labelledby": `${
|
|
2791
|
-
"data-testid":
|
|
2792
|
+
"aria-labelledby": `${C}-header`,
|
|
2793
|
+
"data-testid": y,
|
|
2792
2794
|
children: [
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
+
N && a && /* @__PURE__ */ t("hr", { className: j }),
|
|
2796
|
+
L
|
|
2795
2797
|
]
|
|
2796
2798
|
}
|
|
2797
2799
|
) })
|
|
@@ -2805,42 +2807,46 @@ const J = (e) => {
|
|
|
2805
2807
|
iconAccordionOpened: r,
|
|
2806
2808
|
iconAccordionClosed: c,
|
|
2807
2809
|
// rounded,
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2810
|
+
onExpand: i,
|
|
2811
|
+
classNameContainer: a,
|
|
2812
|
+
singleOpen: d = !0,
|
|
2813
|
+
classNameChildHeading: l,
|
|
2814
|
+
classNameChildContent: x,
|
|
2815
|
+
hr: f,
|
|
2816
|
+
classNameHr: b,
|
|
2817
|
+
useBackground: D,
|
|
2818
|
+
dataTestId: N,
|
|
2819
|
+
...k
|
|
2820
|
+
}, v) => {
|
|
2821
|
+
const [h, y] = Y(
|
|
2819
2822
|
null
|
|
2820
|
-
),
|
|
2821
|
-
|
|
2823
|
+
), S = (L) => {
|
|
2824
|
+
h && h(!1), y(() => L);
|
|
2822
2825
|
};
|
|
2823
|
-
return /* @__PURE__ */ t("div", { ref:
|
|
2826
|
+
return /* @__PURE__ */ t("div", { ref: v, ...k, className: m(bt, a), "data-testid": N, children: We.map(e, (L, w) => xe(L) ? De(L, {
|
|
2824
2827
|
// <AccordionProps> to ensure child component sees parent specification in code
|
|
2825
|
-
...
|
|
2828
|
+
...L.props,
|
|
2826
2829
|
// Merge existing props from the child
|
|
2827
2830
|
variant: s,
|
|
2828
2831
|
chevron: n,
|
|
2829
2832
|
iconAccordionOpened: r,
|
|
2830
2833
|
iconAccordionClosed: c,
|
|
2834
|
+
onExpand: (M) => {
|
|
2835
|
+
L.props.onExpand?.(M), i?.(M, w);
|
|
2836
|
+
},
|
|
2831
2837
|
// rounded,
|
|
2832
|
-
classNameHeading: m(
|
|
2838
|
+
classNameHeading: m(l, L.props.classNameHeading),
|
|
2833
2839
|
// className for child component
|
|
2834
|
-
classNameContent: m(
|
|
2835
|
-
singleOpen:
|
|
2836
|
-
|
|
2840
|
+
classNameContent: m(x, L.props.classNameContent),
|
|
2841
|
+
singleOpen: d,
|
|
2842
|
+
internalCallback: (M) => S(M),
|
|
2837
2843
|
// Pass expansion handler to child
|
|
2838
2844
|
// child defaults to true, so if false, use child/false value
|
|
2839
|
-
hr:
|
|
2840
|
-
classNameHr: m(
|
|
2841
|
-
useBackground:
|
|
2842
|
-
index:
|
|
2843
|
-
}) :
|
|
2845
|
+
hr: L.props.hr === !1 ? !1 : f,
|
|
2846
|
+
classNameHr: m(b, L.props.classNameHr),
|
|
2847
|
+
useBackground: L.props.useBackground === !1 ? !1 : D,
|
|
2848
|
+
index: w
|
|
2849
|
+
}) : L) });
|
|
2844
2850
|
}
|
|
2845
2851
|
), vt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-down'%3e%3cpath%20d='m6%209%206%206%206-6'/%3e%3c/svg%3e", Ct = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-up'%3e%3cpath%20d='m18%2015-6-6-6%206'/%3e%3c/svg%3e", yt = 'outline-hidden outline-offset-0 flex justify-between items-center w-full h-14 border focus:outline-4 focus:mb-2 focus:outline-[#fa89f1] shadow-xs pl-4 pr-2 py-2 bg-white text-base md:text-lg font-medium text-gray-700 hover:bg-gray-50 border-[#b3b3b3] h-12 mt-1 font-["Arial"] ', e2 = {
|
|
2846
2852
|
default: "hover:bg-gray-200 text-blackhover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2",
|
|
@@ -2857,76 +2863,76 @@ const J = (e) => {
|
|
|
2857
2863
|
setSelectedOption: d,
|
|
2858
2864
|
error: l = !1,
|
|
2859
2865
|
width: x = "",
|
|
2860
|
-
selected:
|
|
2866
|
+
selected: f,
|
|
2861
2867
|
dataTestId: b,
|
|
2862
|
-
dataTestIdButton:
|
|
2863
|
-
dataTestIdList:
|
|
2864
|
-
...
|
|
2868
|
+
dataTestIdButton: D,
|
|
2869
|
+
dataTestIdList: N,
|
|
2870
|
+
...k
|
|
2865
2871
|
}) => {
|
|
2866
|
-
const v = Q(null),
|
|
2872
|
+
const v = Q(null), h = Q(null), y = Q(null), [S, L] = Y(!1), [w, M] = Y(!1), [V, I] = Y(void 0), [_, A] = Y(null), E = Q("bottom-[60px]"), [O, j] = Y(""), W = () => typeof c == "string" ? c : "Options";
|
|
2867
2873
|
Z(() => {
|
|
2868
|
-
if (
|
|
2869
|
-
const $ = r.findIndex((H) => H.value != null ? H.value ===
|
|
2874
|
+
if (f) {
|
|
2875
|
+
const $ = r.findIndex((H) => H.value != null ? H.value === f : H.name === f);
|
|
2870
2876
|
$ > -1 && (A($), I(r[$].name));
|
|
2871
2877
|
}
|
|
2872
|
-
}, [r,
|
|
2873
|
-
if (
|
|
2874
|
-
const $ =
|
|
2878
|
+
}, [r, f]), Z(() => {
|
|
2879
|
+
if (h.current) {
|
|
2880
|
+
const $ = h.current.getBoundingClientRect(), H = Math.floor($.height) + 2;
|
|
2875
2881
|
E.current = "bottom-[" + H + "px]";
|
|
2876
2882
|
}
|
|
2877
|
-
}, [
|
|
2878
|
-
const
|
|
2883
|
+
}, [h.current]);
|
|
2884
|
+
const C = () => {
|
|
2879
2885
|
if (v.current && y.current) {
|
|
2880
2886
|
const $ = v.current.getBoundingClientRect(), H = y.current.offsetHeight, F = window.innerHeight, U = document.body.offsetHeight;
|
|
2881
|
-
(F > U ? U : F) - $.bottom < H && $.top > H ?
|
|
2887
|
+
(F > U ? U : F) - $.bottom < H && $.top > H ? M(!0) : M(!1);
|
|
2882
2888
|
}
|
|
2883
2889
|
}, o = Q([]);
|
|
2884
2890
|
Z(() => {
|
|
2885
2891
|
o.current = o.current.slice(0, r.length);
|
|
2886
2892
|
}, [r]);
|
|
2887
|
-
const [p,
|
|
2888
|
-
|
|
2893
|
+
const [p, g] = Y(0), u = () => {
|
|
2894
|
+
L(!S), g(0);
|
|
2889
2895
|
};
|
|
2890
2896
|
Z(() => {
|
|
2891
2897
|
j(l ? "border-2 border-[#ff0004] pl-[15px]" : "");
|
|
2892
2898
|
}, [l]), Z(() => {
|
|
2893
2899
|
function $(U) {
|
|
2894
|
-
|
|
2900
|
+
S && v.current && !v.current.contains(U.target) && L(!1);
|
|
2895
2901
|
}
|
|
2896
2902
|
function H(U) {
|
|
2897
|
-
|
|
2903
|
+
S && U.key === "Escape" && L(!1);
|
|
2898
2904
|
}
|
|
2899
2905
|
function F(U) {
|
|
2900
|
-
|
|
2906
|
+
S && v.current && !v.current.contains(U.target) && L(!1);
|
|
2901
2907
|
}
|
|
2902
2908
|
return document.addEventListener("mousedown", $), document.addEventListener("touchend", $), document.addEventListener("keydown", H), document.addEventListener("focusin", F), () => {
|
|
2903
2909
|
document.removeEventListener("mousedown", $), document.removeEventListener("touchend", $), document.removeEventListener("keydown", H), document.removeEventListener("focusin", F);
|
|
2904
2910
|
};
|
|
2905
|
-
}, [
|
|
2906
|
-
|
|
2907
|
-
}, [
|
|
2908
|
-
|
|
2909
|
-
}, [p,
|
|
2911
|
+
}, [S]), Z(() => {
|
|
2912
|
+
S && C();
|
|
2913
|
+
}, [S]), Z(() => {
|
|
2914
|
+
S && o.current[p]?.focus();
|
|
2915
|
+
}, [p, S]);
|
|
2910
2916
|
const z = ($) => {
|
|
2911
|
-
if (
|
|
2917
|
+
if (S)
|
|
2912
2918
|
switch ($.key) {
|
|
2913
2919
|
case "ArrowDown":
|
|
2914
|
-
$.preventDefault(),
|
|
2920
|
+
$.preventDefault(), g((H) => {
|
|
2915
2921
|
const F = (H + 1) % r.length;
|
|
2916
2922
|
return A(F), F;
|
|
2917
2923
|
});
|
|
2918
2924
|
break;
|
|
2919
2925
|
case "ArrowUp":
|
|
2920
|
-
$.preventDefault(),
|
|
2926
|
+
$.preventDefault(), g((H) => {
|
|
2921
2927
|
const F = (H - 1 + r.length) % r.length;
|
|
2922
2928
|
return A(F), F;
|
|
2923
2929
|
});
|
|
2924
2930
|
break;
|
|
2925
2931
|
case "Home":
|
|
2926
|
-
$.preventDefault(),
|
|
2932
|
+
$.preventDefault(), g(0);
|
|
2927
2933
|
break;
|
|
2928
2934
|
case "End":
|
|
2929
|
-
$.preventDefault(),
|
|
2935
|
+
$.preventDefault(), g(r.length - 1);
|
|
2930
2936
|
break;
|
|
2931
2937
|
}
|
|
2932
2938
|
};
|
|
@@ -2935,7 +2941,7 @@ const J = (e) => {
|
|
|
2935
2941
|
{
|
|
2936
2942
|
className: m("relative inline-block text-left w-[292px] md:w-[343px] lg:w-[600px] max-w-full", s),
|
|
2937
2943
|
ref: v,
|
|
2938
|
-
...
|
|
2944
|
+
...k,
|
|
2939
2945
|
"aria-disabled": i,
|
|
2940
2946
|
"data-testid": b,
|
|
2941
2947
|
children: [
|
|
@@ -2944,38 +2950,38 @@ const J = (e) => {
|
|
|
2944
2950
|
"button",
|
|
2945
2951
|
{
|
|
2946
2952
|
onClick: u,
|
|
2947
|
-
ref:
|
|
2953
|
+
ref: h,
|
|
2948
2954
|
className: m(
|
|
2949
2955
|
yt,
|
|
2950
2956
|
e2[a] || e2.default,
|
|
2951
2957
|
O,
|
|
2952
2958
|
e,
|
|
2953
|
-
|
|
2959
|
+
S && w && "rounded-b-lg" || S && !w && "rounded-t-lg" || "rounded-lg"
|
|
2954
2960
|
),
|
|
2955
2961
|
"aria-label": "Select options - " + W(),
|
|
2956
2962
|
"aria-disabled": i,
|
|
2957
|
-
"aria-expanded":
|
|
2963
|
+
"aria-expanded": S,
|
|
2958
2964
|
"aria-haspopup": "listbox",
|
|
2959
2965
|
disabled: i,
|
|
2960
|
-
"data-testid":
|
|
2966
|
+
"data-testid": D,
|
|
2961
2967
|
tabIndex: 0,
|
|
2962
2968
|
children: [
|
|
2963
2969
|
/* @__PURE__ */ t("span", { className: "truncate", children: _ === null ? c ?? "Options" : V }),
|
|
2964
|
-
|
|
2970
|
+
S ? a === "fill" ? /* @__PURE__ */ t("img", { src: Ct, alt: "chevron up" }) : /* @__PURE__ */ t("img", { src: L2, alt: "chevron up" }) : a === "fill" ? /* @__PURE__ */ t("img", { src: vt, alt: "chevron down" }) : /* @__PURE__ */ t("img", { src: M2, alt: "chevron down" })
|
|
2965
2971
|
]
|
|
2966
2972
|
}
|
|
2967
2973
|
),
|
|
2968
|
-
|
|
2974
|
+
S && /* @__PURE__ */ t(
|
|
2969
2975
|
"div",
|
|
2970
2976
|
{
|
|
2971
2977
|
role: "listbox",
|
|
2972
|
-
"data-testid":
|
|
2978
|
+
"data-testid": N,
|
|
2973
2979
|
ref: y,
|
|
2974
2980
|
"aria-label": "Select option",
|
|
2975
2981
|
onKeyDown: z,
|
|
2976
2982
|
className: m(
|
|
2977
2983
|
"absolute w-full shadow-lg bg-white ring-1 ring-white/5 focus:outline-hidden z-10 ",
|
|
2978
|
-
|
|
2984
|
+
S && w && "rounded-t-lg pt-1" || S && !w && "rounded-b-lg pb-1",
|
|
2979
2985
|
w && E.current
|
|
2980
2986
|
),
|
|
2981
2987
|
children: r.map(($, H) => (
|
|
@@ -2992,10 +2998,10 @@ const J = (e) => {
|
|
|
2992
2998
|
"aria-selected": _ === H,
|
|
2993
2999
|
"aria-label": "option " + $.name,
|
|
2994
3000
|
onClick: () => {
|
|
2995
|
-
A(H), I($.name), d($.value || $.name),
|
|
3001
|
+
A(H), I($.name), d($.value || $.name), L(!1);
|
|
2996
3002
|
},
|
|
2997
3003
|
onKeyDown: (F) => {
|
|
2998
|
-
F.key === "Enter" || F.code === "Enter" || F.key === " " ? (A(H), I($.name), d($.value || $.name),
|
|
3004
|
+
F.key === "Enter" || F.code === "Enter" || F.key === " " ? (A(H), I($.name), d($.value || $.name), L(!1)) : F.key === "Escape" && L(!1);
|
|
2999
3005
|
},
|
|
3000
3006
|
children: $.name
|
|
3001
3007
|
},
|
|
@@ -3019,8 +3025,8 @@ const J = (e) => {
|
|
|
3019
3025
|
continue;
|
|
3020
3026
|
let l;
|
|
3021
3027
|
if (s === "12hr") {
|
|
3022
|
-
const
|
|
3023
|
-
l = `${a % 12 === 0 ? 12 : a % 12}:${d.toString().padStart(2, "0")} ${
|
|
3028
|
+
const f = a < 12 ? "AM" : "PM";
|
|
3029
|
+
l = `${a % 12 === 0 ? 12 : a % 12}:${d.toString().padStart(2, "0")} ${f}`;
|
|
3024
3030
|
} else
|
|
3025
3031
|
l = `${a.toString().padStart(2, "0")}:${d.toString().padStart(2, "0")}`;
|
|
3026
3032
|
const x = `${a.toString().padStart(2, "0")}:${d.toString().padStart(2, "0")}`;
|
|
@@ -3038,25 +3044,25 @@ const J = (e) => {
|
|
|
3038
3044
|
variant: d = "default",
|
|
3039
3045
|
setSelectedOption: l,
|
|
3040
3046
|
width: x = "",
|
|
3041
|
-
dataTestId:
|
|
3047
|
+
dataTestId: f,
|
|
3042
3048
|
dataTestIdButton: b,
|
|
3043
|
-
dataTestIdList:
|
|
3044
|
-
...
|
|
3049
|
+
dataTestIdList: D,
|
|
3050
|
+
...N
|
|
3045
3051
|
}) => {
|
|
3046
|
-
const
|
|
3047
|
-
return console.log(n), console.log(
|
|
3052
|
+
const k = Mt(n, r, c);
|
|
3053
|
+
return console.log(n), console.log(k), /* @__PURE__ */ t(
|
|
3048
3054
|
kt,
|
|
3049
3055
|
{
|
|
3050
3056
|
className: e,
|
|
3051
3057
|
classNameContainer: s,
|
|
3052
3058
|
label: i,
|
|
3053
3059
|
optionsLabel: a,
|
|
3054
|
-
options:
|
|
3060
|
+
options: k,
|
|
3055
3061
|
variant: d,
|
|
3056
3062
|
width: x,
|
|
3057
|
-
dataTestId:
|
|
3063
|
+
dataTestId: f,
|
|
3058
3064
|
dataTestIdButton: b,
|
|
3059
|
-
dataTestIdList:
|
|
3065
|
+
dataTestIdList: D,
|
|
3060
3066
|
setSelectedOption: () => l
|
|
3061
3067
|
}
|
|
3062
3068
|
);
|
|
@@ -3098,13 +3104,13 @@ const J = (e) => {
|
|
|
3098
3104
|
dataTestIdIcon: d,
|
|
3099
3105
|
dataTestIdContent: l,
|
|
3100
3106
|
...x
|
|
3101
|
-
},
|
|
3107
|
+
}, f) => {
|
|
3102
3108
|
const b = St[e];
|
|
3103
3109
|
return /* @__PURE__ */ B(
|
|
3104
3110
|
"div",
|
|
3105
3111
|
{
|
|
3106
3112
|
className: m(ke[e].className, s),
|
|
3107
|
-
ref:
|
|
3113
|
+
ref: f,
|
|
3108
3114
|
...x,
|
|
3109
3115
|
"data-testid": a,
|
|
3110
3116
|
children: [
|
|
@@ -3144,24 +3150,24 @@ const zt = {
|
|
|
3144
3150
|
// separator = separatorSvg,
|
|
3145
3151
|
...l
|
|
3146
3152
|
}, x) => {
|
|
3147
|
-
const
|
|
3153
|
+
const f = Q(null), [b, D] = Y("/"), [N, k] = Y(!1), [v, h] = Y(), [y, S] = Y(0), { pathname: L } = B2(), w = je(() => r && r.length > 0 ? (D(r[0].route), r.slice(1)) : L.split("/").filter(Boolean).map((I, _, A) => ({
|
|
3148
3154
|
name: Vt(decodeURIComponent(I)),
|
|
3149
3155
|
route: "/" + A.slice(0, _ + 1).join("/")
|
|
3150
|
-
})), [r,
|
|
3156
|
+
})), [r, L]);
|
|
3151
3157
|
Z(() => {
|
|
3152
|
-
const V =
|
|
3153
|
-
V &&
|
|
3158
|
+
const V = f.current;
|
|
3159
|
+
V && S(V.offsetWidth);
|
|
3154
3160
|
}, []);
|
|
3155
|
-
const
|
|
3156
|
-
const V =
|
|
3157
|
-
(V && !v || V && v && Date.now() > v + 200) && (
|
|
3161
|
+
const M = () => {
|
|
3162
|
+
const V = f.current;
|
|
3163
|
+
(V && !v || V && v && Date.now() > v + 200) && (N ? V.clientWidth > y && k(!1) : V.scrollWidth > V.clientWidth && k(!0), h(Date.now()));
|
|
3158
3164
|
};
|
|
3159
3165
|
return Z(() => {
|
|
3160
|
-
const V =
|
|
3166
|
+
const V = f.current;
|
|
3161
3167
|
if (!V)
|
|
3162
3168
|
return;
|
|
3163
|
-
w.length > 2 ?
|
|
3164
|
-
const I = new ResizeObserver(
|
|
3169
|
+
w.length > 2 ? M() : k(!1);
|
|
3170
|
+
const I = new ResizeObserver(M);
|
|
3165
3171
|
return I.observe(V), () => {
|
|
3166
3172
|
I.disconnect();
|
|
3167
3173
|
};
|
|
@@ -3176,7 +3182,7 @@ const zt = {
|
|
|
3176
3182
|
children: /* @__PURE__ */ B(
|
|
3177
3183
|
"div",
|
|
3178
3184
|
{
|
|
3179
|
-
ref:
|
|
3185
|
+
ref: f,
|
|
3180
3186
|
className: "flex list-none flex-nowrap text-clip overflow-hidden text-nowrap w-full",
|
|
3181
3187
|
children: [
|
|
3182
3188
|
/* @__PURE__ */ B("span", { className: "breadcrumb-item inline-flex items-center shrink-0", children: [
|
|
@@ -3209,7 +3215,7 @@ const zt = {
|
|
|
3209
3215
|
"span",
|
|
3210
3216
|
{
|
|
3211
3217
|
className: "",
|
|
3212
|
-
children: w.map((V, I) =>
|
|
3218
|
+
children: w.map((V, I) => N ? /* @__PURE__ */ t("span", { className: "inline-flex items-center shrink-0 text-nowrap", children: I === w.length - 1 ? /* @__PURE__ */ B(ae, { children: [
|
|
3213
3219
|
/* @__PURE__ */ t("span", { className: "text-nowrap me-3", children: "..." }),
|
|
3214
3220
|
/* @__PURE__ */ t("span", { className: m("me-3", s), children: /* @__PURE__ */ t(Te, { className: d }) }),
|
|
3215
3221
|
/* @__PURE__ */ t(
|
|
@@ -3324,40 +3330,40 @@ const zt = {
|
|
|
3324
3330
|
iconLeft: d,
|
|
3325
3331
|
iconRight: l,
|
|
3326
3332
|
iconPosition: x,
|
|
3327
|
-
variant:
|
|
3333
|
+
variant: f = "default",
|
|
3328
3334
|
dataTestId: b,
|
|
3329
|
-
type:
|
|
3330
|
-
children:
|
|
3331
|
-
selected:
|
|
3335
|
+
type: D = "button",
|
|
3336
|
+
children: N,
|
|
3337
|
+
selected: k = !1,
|
|
3332
3338
|
classNameSelected: v,
|
|
3333
|
-
classNameGroup:
|
|
3339
|
+
classNameGroup: h = "",
|
|
3334
3340
|
...y
|
|
3335
|
-
},
|
|
3336
|
-
const [
|
|
3341
|
+
}, S) => {
|
|
3342
|
+
const [L, w] = Y("");
|
|
3337
3343
|
Z(() => {
|
|
3338
|
-
let I = Re[
|
|
3339
|
-
|
|
3340
|
-
}, [
|
|
3341
|
-
const
|
|
3344
|
+
let I = Re[f].normal || Re.default.normal;
|
|
3345
|
+
k && !v ? I = m(I, Re[f].selected) : k && v && (I = m(I, v)), w(m(Ht, I));
|
|
3346
|
+
}, [k, v, f]);
|
|
3347
|
+
const M = d ?? (a && (x === "left" || x === "both") ? a : void 0), V = l ?? (a && (x === "right" || x === "both") ? a : void 0);
|
|
3342
3348
|
return /* @__PURE__ */ B(
|
|
3343
3349
|
"button",
|
|
3344
3350
|
{
|
|
3345
|
-
type:
|
|
3351
|
+
type: D,
|
|
3346
3352
|
onClick: s,
|
|
3347
3353
|
"data-testid": b,
|
|
3348
3354
|
className: `${x === "iconOnly" ? m(
|
|
3349
|
-
|
|
3355
|
+
L,
|
|
3350
3356
|
"px-[12px] md:px-[14px] lg:px-[16px] py-[8px] md:py-[12px] lg:py-[16px]",
|
|
3351
|
-
|
|
3357
|
+
h,
|
|
3352
3358
|
// passed in from ButtonGroup if present
|
|
3353
3359
|
n
|
|
3354
3360
|
// dev over-rides
|
|
3355
|
-
) : m(
|
|
3356
|
-
ref:
|
|
3361
|
+
) : m(L, h, n)}`,
|
|
3362
|
+
ref: S,
|
|
3357
3363
|
...y,
|
|
3358
3364
|
children: [
|
|
3359
|
-
|
|
3360
|
-
x === "iconOnly" && a ? /* @__PURE__ */ t("span", { className: "size-6", children: a }) : /* @__PURE__ */ t("span", { className: m("grow-1", i), children:
|
|
3365
|
+
M && /* @__PURE__ */ t("span", { className: m("mr-3", r), children: M }),
|
|
3366
|
+
x === "iconOnly" && a ? /* @__PURE__ */ t("span", { className: "size-6", children: a }) : /* @__PURE__ */ t("span", { className: m("grow-1", i), children: N || e }),
|
|
3361
3367
|
V && /* @__PURE__ */ t("span", { className: m("ml-3", c), children: V })
|
|
3362
3368
|
]
|
|
3363
3369
|
}
|
|
@@ -3381,18 +3387,18 @@ const Ne = {
|
|
|
3381
3387
|
}, Bt = re(
|
|
3382
3388
|
({ className: e, children: s, classNameButtons: n, variant: r = "default", dataTestId: c, ...i }, a) => {
|
|
3383
3389
|
let d = 0;
|
|
3384
|
-
const l = We.map(s, (
|
|
3385
|
-
if (xe(
|
|
3390
|
+
const l = We.map(s, (D) => {
|
|
3391
|
+
if (xe(D)) {
|
|
3386
3392
|
++d;
|
|
3387
|
-
const
|
|
3388
|
-
return De(
|
|
3389
|
-
classNameGroup: m(
|
|
3393
|
+
const N = D, k = N.props.classNameGroup || "";
|
|
3394
|
+
return De(N, {
|
|
3395
|
+
classNameGroup: m(k, Ne[r].button, n)
|
|
3390
3396
|
});
|
|
3391
3397
|
}
|
|
3392
|
-
return
|
|
3393
|
-
}), x = d === 3 && r === "default",
|
|
3398
|
+
return D;
|
|
3399
|
+
}), x = d === 3 && r === "default", f = l?.slice(0, 2), b = l?.slice(2);
|
|
3394
3400
|
return x ? /* @__PURE__ */ B("div", { className: "inline-flex flex-col gap-1", "data-testid": c, children: [
|
|
3395
|
-
/* @__PURE__ */ t("div", { className: m(Ne[r].container, e), children:
|
|
3401
|
+
/* @__PURE__ */ t("div", { className: m(Ne[r].container, e), children: f }),
|
|
3396
3402
|
/* @__PURE__ */ t("div", { className: m(Ne[r].container, "justify-center", e), children: b })
|
|
3397
3403
|
] }) : /* @__PURE__ */ t("div", { className: m("", Ne[r].container, e), ref: a, "data-testid": c, children: l });
|
|
3398
3404
|
}
|
|
@@ -3419,10 +3425,10 @@ const It = {
|
|
|
3419
3425
|
ariaLabel: d = "card component",
|
|
3420
3426
|
dataTestIdContainer: l,
|
|
3421
3427
|
dataTestIdImage: x,
|
|
3422
|
-
dataTestIdChildren:
|
|
3428
|
+
dataTestIdChildren: f,
|
|
3423
3429
|
children: b,
|
|
3424
|
-
...
|
|
3425
|
-
},
|
|
3430
|
+
...D
|
|
3431
|
+
}, N) => /* @__PURE__ */ B(
|
|
3426
3432
|
"div",
|
|
3427
3433
|
{
|
|
3428
3434
|
className: m(
|
|
@@ -3432,9 +3438,9 @@ const It = {
|
|
|
3432
3438
|
e
|
|
3433
3439
|
),
|
|
3434
3440
|
"aria-label": d,
|
|
3435
|
-
ref:
|
|
3441
|
+
ref: N,
|
|
3436
3442
|
"data-testid": l,
|
|
3437
|
-
...
|
|
3443
|
+
...D,
|
|
3438
3444
|
children: [
|
|
3439
3445
|
/* @__PURE__ */ t(
|
|
3440
3446
|
"div",
|
|
@@ -3444,7 +3450,7 @@ const It = {
|
|
|
3444
3450
|
children: r && /* @__PURE__ */ t("img", { src: r, alt: a, className: c })
|
|
3445
3451
|
}
|
|
3446
3452
|
),
|
|
3447
|
-
/* @__PURE__ */ t("div", { className: "flex-auto px-2 py-3", "data-testid":
|
|
3453
|
+
/* @__PURE__ */ t("div", { className: "flex-auto px-2 py-3", "data-testid": f, children: b })
|
|
3448
3454
|
]
|
|
3449
3455
|
}
|
|
3450
3456
|
)
|
|
@@ -3461,21 +3467,21 @@ const G0 = ({
|
|
|
3461
3467
|
dataTestId: d,
|
|
3462
3468
|
dataTestIdMessage: l
|
|
3463
3469
|
}) => {
|
|
3464
|
-
const [x,
|
|
3470
|
+
const [x, f] = Y(`${r} characters allowed`), [b, D] = Y(!1);
|
|
3465
3471
|
return /* @__PURE__ */ B("div", { className: e, children: [
|
|
3466
3472
|
/* @__PURE__ */ t(
|
|
3467
3473
|
"div",
|
|
3468
3474
|
{
|
|
3469
|
-
onInput: (
|
|
3470
|
-
const
|
|
3471
|
-
if (
|
|
3472
|
-
|
|
3473
|
-
else if (
|
|
3475
|
+
onInput: (k) => {
|
|
3476
|
+
const h = k.target.value.length;
|
|
3477
|
+
if (D(h > r), h === 0)
|
|
3478
|
+
f(`${r} characters allowed`);
|
|
3479
|
+
else if (h <= r) {
|
|
3474
3480
|
const y = " " + (i ?? "remaining");
|
|
3475
|
-
|
|
3481
|
+
f(`${r - h}${y}`);
|
|
3476
3482
|
} else {
|
|
3477
3483
|
const y = " " + (a ?? "characters too many");
|
|
3478
|
-
|
|
3484
|
+
f(`${h - r}${y}`);
|
|
3479
3485
|
}
|
|
3480
3486
|
},
|
|
3481
3487
|
className: "mb-2",
|
|
@@ -3560,46 +3566,46 @@ function W0({
|
|
|
3560
3566
|
onChange: d,
|
|
3561
3567
|
classNameLabel: l,
|
|
3562
3568
|
classNameSvgLine: x,
|
|
3563
|
-
classNameIcon:
|
|
3569
|
+
classNameIcon: f,
|
|
3564
3570
|
classNameSvg: b,
|
|
3565
|
-
classNameInput:
|
|
3566
|
-
className:
|
|
3567
|
-
customIcons:
|
|
3571
|
+
classNameInput: D,
|
|
3572
|
+
className: N,
|
|
3573
|
+
customIcons: k
|
|
3568
3574
|
}) {
|
|
3569
|
-
const [v,
|
|
3575
|
+
const [v, h] = Y(), y = je(
|
|
3570
3576
|
() => m2.Children.toArray(e).filter(
|
|
3571
|
-
(
|
|
3577
|
+
(M) => xe(M) && M.type === $2
|
|
3572
3578
|
),
|
|
3573
3579
|
[e]
|
|
3574
3580
|
// execute when children changes
|
|
3575
|
-
), [
|
|
3581
|
+
), [S, L] = Y(() => y.map(() => "unchecked"));
|
|
3576
3582
|
Z(() => {
|
|
3577
3583
|
if (!v) return;
|
|
3578
|
-
const { index:
|
|
3579
|
-
if (_[
|
|
3580
|
-
for (let A =
|
|
3584
|
+
const { index: M, status: V } = v, I = y[M].props.level ?? 0, _ = [...S];
|
|
3585
|
+
if (_[M] = V, V !== "indeterminate")
|
|
3586
|
+
for (let A = M + 1; A < _.length && !((y[A].props.level ?? 0) <= I); A++)
|
|
3581
3587
|
_[A] = V;
|
|
3582
3588
|
for (let A = I - 1; A >= 0; A--)
|
|
3583
|
-
for (let E =
|
|
3589
|
+
for (let E = M - 1; E >= 0; E--)
|
|
3584
3590
|
if (y[E].props.level === A) {
|
|
3585
3591
|
_[E] = qt(y, _, A, E);
|
|
3586
3592
|
break;
|
|
3587
3593
|
}
|
|
3588
|
-
|
|
3594
|
+
L(_), h(void 0);
|
|
3589
3595
|
}, [v]);
|
|
3590
3596
|
const w = je(
|
|
3591
|
-
() => y.map((
|
|
3592
|
-
const I = Wt(y, V, s), _ =
|
|
3593
|
-
|
|
3597
|
+
() => y.map((M, V) => {
|
|
3598
|
+
const I = Wt(y, V, s), _ = M.props.name, A = M.props.className || N, E = M.props.classNameLabel || l, O = M.props.classNameSvg || b, j = M.props.classNameSvgLine || x, W = M.props.classNameSvg || D, C = M.props.customIcons || k, o = M.props.classNameIcon || f, p = (g, u) => {
|
|
3599
|
+
h({ status: g, index: u }), d && d(g, _);
|
|
3594
3600
|
};
|
|
3595
|
-
return De(
|
|
3601
|
+
return De(M, {
|
|
3596
3602
|
iconType: I,
|
|
3597
3603
|
index: V,
|
|
3598
3604
|
fill: n,
|
|
3599
3605
|
icon: c,
|
|
3600
3606
|
marker: i,
|
|
3601
3607
|
showBranch: a,
|
|
3602
|
-
status:
|
|
3608
|
+
status: S[V],
|
|
3603
3609
|
setStatusUpdate: p,
|
|
3604
3610
|
classNameLabel: E,
|
|
3605
3611
|
classNameSvg: O,
|
|
@@ -3607,10 +3613,10 @@ function W0({
|
|
|
3607
3613
|
classNameInput: W,
|
|
3608
3614
|
classNameIcon: o,
|
|
3609
3615
|
className: A,
|
|
3610
|
-
customIcons:
|
|
3616
|
+
customIcons: C
|
|
3611
3617
|
});
|
|
3612
3618
|
}),
|
|
3613
|
-
[y, s, n, c, i, a,
|
|
3619
|
+
[y, s, n, c, i, a, S]
|
|
3614
3620
|
// execute when one of these change
|
|
3615
3621
|
);
|
|
3616
3622
|
return /* @__PURE__ */ t("div", { "data-testid": r, children: w });
|
|
@@ -3627,51 +3633,51 @@ const $2 = m2.forwardRef(
|
|
|
3627
3633
|
classNameIcon: d,
|
|
3628
3634
|
value: l = "on",
|
|
3629
3635
|
fill: x = !1,
|
|
3630
|
-
level:
|
|
3636
|
+
level: f = 0,
|
|
3631
3637
|
classNameSvg: b = "",
|
|
3632
|
-
iconType:
|
|
3633
|
-
marker:
|
|
3634
|
-
index:
|
|
3638
|
+
iconType: D = [],
|
|
3639
|
+
marker: N = !1,
|
|
3640
|
+
index: k,
|
|
3635
3641
|
setStatusUpdate: v,
|
|
3636
|
-
status:
|
|
3642
|
+
status: h,
|
|
3637
3643
|
children: y,
|
|
3638
|
-
testDataId:
|
|
3639
|
-
checked:
|
|
3644
|
+
testDataId: S,
|
|
3645
|
+
checked: L = !1,
|
|
3640
3646
|
indeterminate: w = !1,
|
|
3641
|
-
showBranch:
|
|
3647
|
+
showBranch: M = !0,
|
|
3642
3648
|
onChange: V,
|
|
3643
3649
|
name: I,
|
|
3644
3650
|
..._
|
|
3645
3651
|
}, A) => {
|
|
3646
|
-
const [E, O] = Y("unchecked"), j = Q(null), [W,
|
|
3652
|
+
const [E, O] = Y("unchecked"), j = Q(null), [W, C] = Y(s2);
|
|
3647
3653
|
g2(A, () => j.current), Z(() => {
|
|
3648
|
-
|
|
3649
|
-
}, [
|
|
3650
|
-
|
|
3651
|
-
}, [
|
|
3652
|
-
v &&
|
|
3654
|
+
L ? h = "checked" : w && (h = "indeterminate");
|
|
3655
|
+
}, [L, w]), Z(() => {
|
|
3656
|
+
h && O(h);
|
|
3657
|
+
}, [h]), Z(() => {
|
|
3658
|
+
v && k !== void 0 && v(E, k), j.current && (j.current.indeterminate = E === "indeterminate");
|
|
3653
3659
|
}, [E]), Z(() => {
|
|
3654
3660
|
if (s) {
|
|
3655
3661
|
if (i && i[E]) {
|
|
3656
|
-
|
|
3662
|
+
C(i[E]);
|
|
3657
3663
|
return;
|
|
3658
3664
|
}
|
|
3659
|
-
E === "checked" ?
|
|
3665
|
+
E === "checked" ? C(x ? N ? Pt : Ft : N ? Zt : Rt) : E === "unchecked" ? C(x ? Ut : s2) : E === "indeterminate" && C(x ? jt : Yt);
|
|
3660
3666
|
}
|
|
3661
|
-
}, [x, s, E,
|
|
3667
|
+
}, [x, s, E, N]);
|
|
3662
3668
|
const o = (p) => {
|
|
3663
3669
|
p.target.checked ? (O("checked"), typeof V == "function" && V("checked", I)) : (O("unchecked"), typeof V == "function" && V("unchecked", I));
|
|
3664
3670
|
};
|
|
3665
|
-
return /* @__PURE__ */ B("div", { className: m("flex items-center", e), "data-testid":
|
|
3666
|
-
|
|
3671
|
+
return /* @__PURE__ */ B("div", { className: m("flex items-center", e), "data-testid": S, children: [
|
|
3672
|
+
D.map((p, g) => /* @__PURE__ */ t(
|
|
3667
3673
|
Kt,
|
|
3668
3674
|
{
|
|
3669
|
-
type:
|
|
3675
|
+
type: M ? p : "blank",
|
|
3670
3676
|
icon: s,
|
|
3671
3677
|
className: b,
|
|
3672
3678
|
classNameLine: m("h-full border", a)
|
|
3673
3679
|
},
|
|
3674
|
-
|
|
3680
|
+
g
|
|
3675
3681
|
)),
|
|
3676
3682
|
/* @__PURE__ */ B("label", { className: m("inline-flex items-center gap-1 text-base md:text-lg", c), children: [
|
|
3677
3683
|
/* @__PURE__ */ t(
|
|
@@ -3806,63 +3812,63 @@ function Jt() {
|
|
|
3806
3812
|
(function(n, r) {
|
|
3807
3813
|
e.exports = r();
|
|
3808
3814
|
})(Xt, function() {
|
|
3809
|
-
var n = 1e3, r = 6e4, c = 36e5, i = "millisecond", a = "second", d = "minute", l = "hour", x = "day",
|
|
3810
|
-
var o = ["th", "st", "nd", "rd"], p =
|
|
3811
|
-
return "[" +
|
|
3812
|
-
} },
|
|
3813
|
-
var
|
|
3814
|
-
return !
|
|
3815
|
-
}, w = { s:
|
|
3816
|
-
var o = -
|
|
3817
|
-
return (o <= 0 ? "+" : "-") +
|
|
3818
|
-
}, m: function
|
|
3819
|
-
if (o.date() < p.date()) return -
|
|
3820
|
-
var
|
|
3821
|
-
return +(-(
|
|
3822
|
-
}, a: function(
|
|
3823
|
-
return
|
|
3824
|
-
}, p: function(
|
|
3825
|
-
return { M: b, y:
|
|
3826
|
-
}, u: function(
|
|
3827
|
-
return
|
|
3828
|
-
} },
|
|
3829
|
-
V[
|
|
3830
|
-
var I = "$isDayjsObject", _ = function(
|
|
3831
|
-
return
|
|
3832
|
-
}, A = function
|
|
3815
|
+
var n = 1e3, r = 6e4, c = 36e5, i = "millisecond", a = "second", d = "minute", l = "hour", x = "day", f = "week", b = "month", D = "quarter", N = "year", k = "date", v = "Invalid Date", h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, S = { 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(C) {
|
|
3816
|
+
var o = ["th", "st", "nd", "rd"], p = C % 100;
|
|
3817
|
+
return "[" + C + (o[(p - 20) % 10] || o[p] || o[0]) + "]";
|
|
3818
|
+
} }, L = function(C, o, p) {
|
|
3819
|
+
var g = String(C);
|
|
3820
|
+
return !g || g.length >= o ? C : "" + Array(o + 1 - g.length).join(p) + C;
|
|
3821
|
+
}, w = { s: L, z: function(C) {
|
|
3822
|
+
var o = -C.utcOffset(), p = Math.abs(o), g = Math.floor(p / 60), u = p % 60;
|
|
3823
|
+
return (o <= 0 ? "+" : "-") + L(g, 2, "0") + ":" + L(u, 2, "0");
|
|
3824
|
+
}, m: function C(o, p) {
|
|
3825
|
+
if (o.date() < p.date()) return -C(p, o);
|
|
3826
|
+
var g = 12 * (p.year() - o.year()) + (p.month() - o.month()), u = o.clone().add(g, b), z = p - u < 0, $ = o.clone().add(g + (z ? -1 : 1), b);
|
|
3827
|
+
return +(-(g + (p - u) / (z ? u - $ : $ - u)) || 0);
|
|
3828
|
+
}, a: function(C) {
|
|
3829
|
+
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
3830
|
+
}, p: function(C) {
|
|
3831
|
+
return { M: b, y: N, w: f, d: x, D: k, h: l, m: d, s: a, ms: i, Q: D }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
3832
|
+
}, u: function(C) {
|
|
3833
|
+
return C === void 0;
|
|
3834
|
+
} }, M = "en", V = {};
|
|
3835
|
+
V[M] = S;
|
|
3836
|
+
var I = "$isDayjsObject", _ = function(C) {
|
|
3837
|
+
return C instanceof j || !(!C || !C[I]);
|
|
3838
|
+
}, A = function C(o, p, g) {
|
|
3833
3839
|
var u;
|
|
3834
|
-
if (!o) return
|
|
3840
|
+
if (!o) return M;
|
|
3835
3841
|
if (typeof o == "string") {
|
|
3836
3842
|
var z = o.toLowerCase();
|
|
3837
3843
|
V[z] && (u = z), p && (V[z] = p, u = z);
|
|
3838
3844
|
var $ = o.split("-");
|
|
3839
|
-
if (!u && $.length > 1) return
|
|
3845
|
+
if (!u && $.length > 1) return C($[0]);
|
|
3840
3846
|
} else {
|
|
3841
3847
|
var H = o.name;
|
|
3842
3848
|
V[H] = o, u = H;
|
|
3843
3849
|
}
|
|
3844
|
-
return !
|
|
3845
|
-
}, E = function(
|
|
3846
|
-
if (_(
|
|
3850
|
+
return !g && u && (M = u), u || !g && M;
|
|
3851
|
+
}, E = function(C, o) {
|
|
3852
|
+
if (_(C)) return C.clone();
|
|
3847
3853
|
var p = typeof o == "object" ? o : {};
|
|
3848
|
-
return p.date =
|
|
3854
|
+
return p.date = C, p.args = arguments, new j(p);
|
|
3849
3855
|
}, O = w;
|
|
3850
|
-
O.l = A, O.i = _, O.w = function(
|
|
3851
|
-
return E(
|
|
3856
|
+
O.l = A, O.i = _, O.w = function(C, o) {
|
|
3857
|
+
return E(C, { locale: o.$L, utc: o.$u, x: o.$x, $offset: o.$offset });
|
|
3852
3858
|
};
|
|
3853
3859
|
var j = function() {
|
|
3854
|
-
function
|
|
3860
|
+
function C(p) {
|
|
3855
3861
|
this.$L = A(p.locale, null, !0), this.parse(p), this.$x = this.$x || p.x || {}, this[I] = !0;
|
|
3856
3862
|
}
|
|
3857
|
-
var o =
|
|
3863
|
+
var o = C.prototype;
|
|
3858
3864
|
return o.parse = function(p) {
|
|
3859
|
-
this.$d = function(
|
|
3860
|
-
var u =
|
|
3865
|
+
this.$d = function(g) {
|
|
3866
|
+
var u = g.date, z = g.utc;
|
|
3861
3867
|
if (u === null) return /* @__PURE__ */ new Date(NaN);
|
|
3862
3868
|
if (O.u(u)) return /* @__PURE__ */ new Date();
|
|
3863
3869
|
if (u instanceof Date) return new Date(u);
|
|
3864
3870
|
if (typeof u == "string" && !/Z$/i.test(u)) {
|
|
3865
|
-
var $ = u.match(
|
|
3871
|
+
var $ = u.match(h);
|
|
3866
3872
|
if ($) {
|
|
3867
3873
|
var H = $[2] - 1 || 0, F = ($[7] || "0").substring(0, 3);
|
|
3868
3874
|
return z ? new Date(Date.UTC($[1], H, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, F)) : new Date($[1], H, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, F);
|
|
@@ -3877,36 +3883,36 @@ function Jt() {
|
|
|
3877
3883
|
return O;
|
|
3878
3884
|
}, o.isValid = function() {
|
|
3879
3885
|
return this.$d.toString() !== v;
|
|
3880
|
-
}, o.isSame = function(p,
|
|
3886
|
+
}, o.isSame = function(p, g) {
|
|
3881
3887
|
var u = E(p);
|
|
3882
|
-
return this.startOf(
|
|
3883
|
-
}, o.isAfter = function(p,
|
|
3884
|
-
return E(p) < this.startOf(
|
|
3885
|
-
}, o.isBefore = function(p,
|
|
3886
|
-
return this.endOf(
|
|
3887
|
-
}, o.$g = function(p,
|
|
3888
|
-
return O.u(p) ? this[
|
|
3888
|
+
return this.startOf(g) <= u && u <= this.endOf(g);
|
|
3889
|
+
}, o.isAfter = function(p, g) {
|
|
3890
|
+
return E(p) < this.startOf(g);
|
|
3891
|
+
}, o.isBefore = function(p, g) {
|
|
3892
|
+
return this.endOf(g) < E(p);
|
|
3893
|
+
}, o.$g = function(p, g, u) {
|
|
3894
|
+
return O.u(p) ? this[g] : this.set(u, p);
|
|
3889
3895
|
}, o.unix = function() {
|
|
3890
3896
|
return Math.floor(this.valueOf() / 1e3);
|
|
3891
3897
|
}, o.valueOf = function() {
|
|
3892
3898
|
return this.$d.getTime();
|
|
3893
|
-
}, o.startOf = function(p,
|
|
3894
|
-
var u = this, z = !!O.u(
|
|
3899
|
+
}, o.startOf = function(p, g) {
|
|
3900
|
+
var u = this, z = !!O.u(g) || g, $ = O.p(p), H = function(se, X) {
|
|
3895
3901
|
var ee = O.w(u.$u ? Date.UTC(u.$y, X, se) : new Date(u.$y, X, se), u);
|
|
3896
3902
|
return z ? ee : ee.endOf(x);
|
|
3897
3903
|
}, F = function(se, X) {
|
|
3898
3904
|
return O.w(u.toDate()[se].apply(u.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), u);
|
|
3899
3905
|
}, U = this.$W, P = this.$M, q = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
|
3900
3906
|
switch ($) {
|
|
3901
|
-
case
|
|
3907
|
+
case N:
|
|
3902
3908
|
return z ? H(1, 0) : H(31, 11);
|
|
3903
3909
|
case b:
|
|
3904
3910
|
return z ? H(1, P) : H(0, P + 1);
|
|
3905
|
-
case
|
|
3911
|
+
case f:
|
|
3906
3912
|
var K = this.$locale().weekStart || 0, oe = (U < K ? U + 7 : U) - K;
|
|
3907
3913
|
return H(z ? q - oe : q + (6 - oe), P);
|
|
3908
3914
|
case x:
|
|
3909
|
-
case
|
|
3915
|
+
case k:
|
|
3910
3916
|
return F(te + "Hours", 0);
|
|
3911
3917
|
case l:
|
|
3912
3918
|
return F(te + "Minutes", 1);
|
|
@@ -3919,37 +3925,37 @@ function Jt() {
|
|
|
3919
3925
|
}
|
|
3920
3926
|
}, o.endOf = function(p) {
|
|
3921
3927
|
return this.startOf(p, !1);
|
|
3922
|
-
}, o.$set = function(p,
|
|
3923
|
-
var u, z = O.p(p), $ = "set" + (this.$u ? "UTC" : ""), H = (u = {}, u[x] = $ + "Date", u[
|
|
3924
|
-
if (z === b || z ===
|
|
3925
|
-
var U = this.clone().set(
|
|
3926
|
-
U.$d[H](F), U.init(), this.$d = U.set(
|
|
3928
|
+
}, o.$set = function(p, g) {
|
|
3929
|
+
var u, z = O.p(p), $ = "set" + (this.$u ? "UTC" : ""), H = (u = {}, u[x] = $ + "Date", u[k] = $ + "Date", u[b] = $ + "Month", u[N] = $ + "FullYear", u[l] = $ + "Hours", u[d] = $ + "Minutes", u[a] = $ + "Seconds", u[i] = $ + "Milliseconds", u)[z], F = z === x ? this.$D + (g - this.$W) : g;
|
|
3930
|
+
if (z === b || z === N) {
|
|
3931
|
+
var U = this.clone().set(k, 1);
|
|
3932
|
+
U.$d[H](F), U.init(), this.$d = U.set(k, Math.min(this.$D, U.daysInMonth())).$d;
|
|
3927
3933
|
} else H && this.$d[H](F);
|
|
3928
3934
|
return this.init(), this;
|
|
3929
|
-
}, o.set = function(p,
|
|
3930
|
-
return this.clone().$set(p,
|
|
3935
|
+
}, o.set = function(p, g) {
|
|
3936
|
+
return this.clone().$set(p, g);
|
|
3931
3937
|
}, o.get = function(p) {
|
|
3932
3938
|
return this[O.p(p)]();
|
|
3933
|
-
}, o.add = function(p,
|
|
3939
|
+
}, o.add = function(p, g) {
|
|
3934
3940
|
var u, z = this;
|
|
3935
3941
|
p = Number(p);
|
|
3936
|
-
var $ = O.p(
|
|
3942
|
+
var $ = O.p(g), H = function(P) {
|
|
3937
3943
|
var q = E(z);
|
|
3938
3944
|
return O.w(q.date(q.date() + Math.round(P * p)), z);
|
|
3939
3945
|
};
|
|
3940
3946
|
if ($ === b) return this.set(b, this.$M + p);
|
|
3941
|
-
if ($ ===
|
|
3947
|
+
if ($ === N) return this.set(N, this.$y + p);
|
|
3942
3948
|
if ($ === x) return H(1);
|
|
3943
|
-
if ($ ===
|
|
3949
|
+
if ($ === f) return H(7);
|
|
3944
3950
|
var F = (u = {}, u[d] = r, u[l] = c, u[a] = n, u)[$] || 1, U = this.$d.getTime() + p * F;
|
|
3945
3951
|
return O.w(U, this);
|
|
3946
|
-
}, o.subtract = function(p,
|
|
3947
|
-
return this.add(-1 * p,
|
|
3952
|
+
}, o.subtract = function(p, g) {
|
|
3953
|
+
return this.add(-1 * p, g);
|
|
3948
3954
|
}, o.format = function(p) {
|
|
3949
|
-
var
|
|
3955
|
+
var g = this, u = this.$locale();
|
|
3950
3956
|
if (!this.isValid()) return u.invalidDate || v;
|
|
3951
3957
|
var z = p || "YYYY-MM-DDTHH:mm:ssZ", $ = O.z(this), H = this.$H, F = this.$m, U = this.$M, P = u.weekdays, q = u.months, te = u.meridiem, K = function(X, ee, ne, ce) {
|
|
3952
|
-
return X && (X[ee] || X(
|
|
3958
|
+
return X && (X[ee] || X(g, z)) || ne[ee].slice(0, ce);
|
|
3953
3959
|
}, oe = function(X) {
|
|
3954
3960
|
return O.s(H % 12 || 12, X, "0");
|
|
3955
3961
|
}, se = te || function(X, ee, ne) {
|
|
@@ -3960,9 +3966,9 @@ function Jt() {
|
|
|
3960
3966
|
return ee || function(ne) {
|
|
3961
3967
|
switch (ne) {
|
|
3962
3968
|
case "YY":
|
|
3963
|
-
return String(
|
|
3969
|
+
return String(g.$y).slice(-2);
|
|
3964
3970
|
case "YYYY":
|
|
3965
|
-
return O.s(
|
|
3971
|
+
return O.s(g.$y, 4, "0");
|
|
3966
3972
|
case "M":
|
|
3967
3973
|
return U + 1;
|
|
3968
3974
|
case "MM":
|
|
@@ -3972,17 +3978,17 @@ function Jt() {
|
|
|
3972
3978
|
case "MMMM":
|
|
3973
3979
|
return K(q, U);
|
|
3974
3980
|
case "D":
|
|
3975
|
-
return
|
|
3981
|
+
return g.$D;
|
|
3976
3982
|
case "DD":
|
|
3977
|
-
return O.s(
|
|
3983
|
+
return O.s(g.$D, 2, "0");
|
|
3978
3984
|
case "d":
|
|
3979
|
-
return String(
|
|
3985
|
+
return String(g.$W);
|
|
3980
3986
|
case "dd":
|
|
3981
|
-
return K(u.weekdaysMin,
|
|
3987
|
+
return K(u.weekdaysMin, g.$W, P, 2);
|
|
3982
3988
|
case "ddd":
|
|
3983
|
-
return K(u.weekdaysShort,
|
|
3989
|
+
return K(u.weekdaysShort, g.$W, P, 3);
|
|
3984
3990
|
case "dddd":
|
|
3985
|
-
return P[
|
|
3991
|
+
return P[g.$W];
|
|
3986
3992
|
case "H":
|
|
3987
3993
|
return String(H);
|
|
3988
3994
|
case "HH":
|
|
@@ -4000,11 +4006,11 @@ function Jt() {
|
|
|
4000
4006
|
case "mm":
|
|
4001
4007
|
return O.s(F, 2, "0");
|
|
4002
4008
|
case "s":
|
|
4003
|
-
return String(
|
|
4009
|
+
return String(g.$s);
|
|
4004
4010
|
case "ss":
|
|
4005
|
-
return O.s(
|
|
4011
|
+
return O.s(g.$s, 2, "0");
|
|
4006
4012
|
case "SSS":
|
|
4007
|
-
return O.s(
|
|
4013
|
+
return O.s(g.$ms, 3, "0");
|
|
4008
4014
|
case "Z":
|
|
4009
4015
|
return $;
|
|
4010
4016
|
}
|
|
@@ -4013,21 +4019,21 @@ function Jt() {
|
|
|
4013
4019
|
});
|
|
4014
4020
|
}, o.utcOffset = function() {
|
|
4015
4021
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4016
|
-
}, o.diff = function(p,
|
|
4017
|
-
var z, $ = this, H = O.p(
|
|
4022
|
+
}, o.diff = function(p, g, u) {
|
|
4023
|
+
var z, $ = this, H = O.p(g), F = E(p), U = (F.utcOffset() - this.utcOffset()) * r, P = this - F, q = function() {
|
|
4018
4024
|
return O.m($, F);
|
|
4019
4025
|
};
|
|
4020
4026
|
switch (H) {
|
|
4021
|
-
case
|
|
4027
|
+
case N:
|
|
4022
4028
|
z = q() / 12;
|
|
4023
4029
|
break;
|
|
4024
4030
|
case b:
|
|
4025
4031
|
z = q();
|
|
4026
4032
|
break;
|
|
4027
|
-
case
|
|
4033
|
+
case D:
|
|
4028
4034
|
z = q() / 3;
|
|
4029
4035
|
break;
|
|
4030
|
-
case
|
|
4036
|
+
case f:
|
|
4031
4037
|
z = (P - U) / 6048e5;
|
|
4032
4038
|
break;
|
|
4033
4039
|
case x:
|
|
@@ -4050,9 +4056,9 @@ function Jt() {
|
|
|
4050
4056
|
return this.endOf(b).$D;
|
|
4051
4057
|
}, o.$locale = function() {
|
|
4052
4058
|
return V[this.$L];
|
|
4053
|
-
}, o.locale = function(p,
|
|
4059
|
+
}, o.locale = function(p, g) {
|
|
4054
4060
|
if (!p) return this.$L;
|
|
4055
|
-
var u = this.clone(), z = A(p,
|
|
4061
|
+
var u = this.clone(), z = A(p, g, !0);
|
|
4056
4062
|
return z && (u.$L = z), u;
|
|
4057
4063
|
}, o.clone = function() {
|
|
4058
4064
|
return O.w(this.$d, this);
|
|
@@ -4064,17 +4070,17 @@ function Jt() {
|
|
|
4064
4070
|
return this.$d.toISOString();
|
|
4065
4071
|
}, o.toString = function() {
|
|
4066
4072
|
return this.$d.toUTCString();
|
|
4067
|
-
},
|
|
4073
|
+
}, C;
|
|
4068
4074
|
}(), W = j.prototype;
|
|
4069
|
-
return E.prototype = W, [["$ms", i], ["$s", a], ["$m", d], ["$H", l], ["$W", x], ["$M", b], ["$y",
|
|
4070
|
-
W[
|
|
4071
|
-
return this.$g(o,
|
|
4075
|
+
return E.prototype = W, [["$ms", i], ["$s", a], ["$m", d], ["$H", l], ["$W", x], ["$M", b], ["$y", N], ["$D", k]].forEach(function(C) {
|
|
4076
|
+
W[C[1]] = function(o) {
|
|
4077
|
+
return this.$g(o, C[0], C[1]);
|
|
4072
4078
|
};
|
|
4073
|
-
}), E.extend = function(
|
|
4074
|
-
return
|
|
4075
|
-
}, E.locale = A, E.isDayjs = _, E.unix = function(
|
|
4076
|
-
return E(1e3 *
|
|
4077
|
-
}, E.en = V[
|
|
4079
|
+
}), E.extend = function(C, o) {
|
|
4080
|
+
return C.$i || (C(o, j, E), C.$i = !0), E;
|
|
4081
|
+
}, E.locale = A, E.isDayjs = _, E.unix = function(C) {
|
|
4082
|
+
return E(1e3 * C);
|
|
4083
|
+
}, E.en = V[M], E.Ls = V, E.p = {}, E;
|
|
4078
4084
|
});
|
|
4079
4085
|
}(Le)), Le.exports;
|
|
4080
4086
|
}
|
|
@@ -4086,76 +4092,76 @@ function t0() {
|
|
|
4086
4092
|
(function(n, r) {
|
|
4087
4093
|
e.exports = r();
|
|
4088
4094
|
})(e0, function() {
|
|
4089
|
-
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?/, d = /\d*[^-_:/,()\s\d]+/, l = {}, x = function(
|
|
4090
|
-
return (
|
|
4091
|
-
},
|
|
4095
|
+
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?/, d = /\d*[^-_:/,()\s\d]+/, l = {}, x = function(h) {
|
|
4096
|
+
return (h = +h) + (h > 68 ? 1900 : 2e3);
|
|
4097
|
+
}, f = function(h) {
|
|
4092
4098
|
return function(y) {
|
|
4093
|
-
this[
|
|
4099
|
+
this[h] = +y;
|
|
4094
4100
|
};
|
|
4095
|
-
}, b = [/[+-]\d\d:?(\d\d)?|Z/, function(
|
|
4101
|
+
}, b = [/[+-]\d\d:?(\d\d)?|Z/, function(h) {
|
|
4096
4102
|
(this.zone || (this.zone = {})).offset = function(y) {
|
|
4097
4103
|
if (!y || y === "Z") return 0;
|
|
4098
|
-
var
|
|
4099
|
-
return
|
|
4100
|
-
}(
|
|
4101
|
-
}],
|
|
4102
|
-
var y = l[
|
|
4104
|
+
var S = y.match(/([+-]|\d\d)/g), L = 60 * S[1] + (+S[2] || 0);
|
|
4105
|
+
return L === 0 ? 0 : S[0] === "+" ? -L : L;
|
|
4106
|
+
}(h);
|
|
4107
|
+
}], D = function(h) {
|
|
4108
|
+
var y = l[h];
|
|
4103
4109
|
return y && (y.indexOf ? y : y.s.concat(y.f));
|
|
4104
|
-
},
|
|
4105
|
-
var
|
|
4106
|
-
if (
|
|
4107
|
-
for (var w = 1; w <= 24; w += 1) if (
|
|
4108
|
-
|
|
4110
|
+
}, N = function(h, y) {
|
|
4111
|
+
var S, L = l.meridiem;
|
|
4112
|
+
if (L) {
|
|
4113
|
+
for (var w = 1; w <= 24; w += 1) if (h.indexOf(L(w, 0, y)) > -1) {
|
|
4114
|
+
S = w > 12;
|
|
4109
4115
|
break;
|
|
4110
4116
|
}
|
|
4111
|
-
} else
|
|
4112
|
-
return
|
|
4113
|
-
},
|
|
4114
|
-
this.afternoon =
|
|
4115
|
-
}], a: [d, function(
|
|
4116
|
-
this.afternoon =
|
|
4117
|
-
}], Q: [c, function(
|
|
4118
|
-
this.month = 3 * (
|
|
4119
|
-
}], S: [c, function(
|
|
4120
|
-
this.milliseconds = 100 * +
|
|
4121
|
-
}], SS: [i, function(
|
|
4122
|
-
this.milliseconds = 10 * +
|
|
4123
|
-
}], SSS: [/\d{3}/, function(
|
|
4124
|
-
this.milliseconds = +
|
|
4125
|
-
}], s: [a,
|
|
4126
|
-
var y = l.ordinal,
|
|
4127
|
-
if (this.day =
|
|
4128
|
-
}], w: [a,
|
|
4129
|
-
var y =
|
|
4130
|
-
return
|
|
4131
|
-
})).indexOf(
|
|
4132
|
-
if (
|
|
4133
|
-
this.month =
|
|
4134
|
-
}], MMMM: [d, function(
|
|
4135
|
-
var y =
|
|
4117
|
+
} else S = h === (y ? "pm" : "PM");
|
|
4118
|
+
return S;
|
|
4119
|
+
}, k = { A: [d, function(h) {
|
|
4120
|
+
this.afternoon = N(h, !1);
|
|
4121
|
+
}], a: [d, function(h) {
|
|
4122
|
+
this.afternoon = N(h, !0);
|
|
4123
|
+
}], Q: [c, function(h) {
|
|
4124
|
+
this.month = 3 * (h - 1) + 1;
|
|
4125
|
+
}], S: [c, function(h) {
|
|
4126
|
+
this.milliseconds = 100 * +h;
|
|
4127
|
+
}], SS: [i, function(h) {
|
|
4128
|
+
this.milliseconds = 10 * +h;
|
|
4129
|
+
}], SSS: [/\d{3}/, function(h) {
|
|
4130
|
+
this.milliseconds = +h;
|
|
4131
|
+
}], s: [a, f("seconds")], ss: [a, f("seconds")], m: [a, f("minutes")], mm: [a, f("minutes")], H: [a, f("hours")], h: [a, f("hours")], HH: [a, f("hours")], hh: [a, f("hours")], D: [a, f("day")], DD: [i, f("day")], Do: [d, function(h) {
|
|
4132
|
+
var y = l.ordinal, S = h.match(/\d+/);
|
|
4133
|
+
if (this.day = S[0], y) for (var L = 1; L <= 31; L += 1) y(L).replace(/\[|\]/g, "") === h && (this.day = L);
|
|
4134
|
+
}], w: [a, f("week")], ww: [i, f("week")], M: [a, f("month")], MM: [i, f("month")], MMM: [d, function(h) {
|
|
4135
|
+
var y = D("months"), S = (D("monthsShort") || y.map(function(L) {
|
|
4136
|
+
return L.slice(0, 3);
|
|
4137
|
+
})).indexOf(h) + 1;
|
|
4138
|
+
if (S < 1) throw new Error();
|
|
4139
|
+
this.month = S % 12 || S;
|
|
4140
|
+
}], MMMM: [d, function(h) {
|
|
4141
|
+
var y = D("months").indexOf(h) + 1;
|
|
4136
4142
|
if (y < 1) throw new Error();
|
|
4137
4143
|
this.month = y % 12 || y;
|
|
4138
|
-
}], Y: [/[+-]?\d+/,
|
|
4139
|
-
this.year = x(
|
|
4140
|
-
}], YYYY: [/\d{4}/,
|
|
4141
|
-
function v(
|
|
4142
|
-
var y,
|
|
4143
|
-
y =
|
|
4144
|
-
for (var
|
|
4144
|
+
}], Y: [/[+-]?\d+/, f("year")], YY: [i, function(h) {
|
|
4145
|
+
this.year = x(h);
|
|
4146
|
+
}], YYYY: [/\d{4}/, f("year")], Z: b, ZZ: b };
|
|
4147
|
+
function v(h) {
|
|
4148
|
+
var y, S;
|
|
4149
|
+
y = h, S = l && l.formats;
|
|
4150
|
+
for (var L = (h = y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(E, O, j) {
|
|
4145
4151
|
var W = j && j.toUpperCase();
|
|
4146
|
-
return O ||
|
|
4152
|
+
return O || S[j] || n[j] || S[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(C, o, p) {
|
|
4147
4153
|
return o || p.slice(1);
|
|
4148
4154
|
});
|
|
4149
|
-
})).match(r), w =
|
|
4150
|
-
var V =
|
|
4151
|
-
|
|
4155
|
+
})).match(r), w = L.length, M = 0; M < w; M += 1) {
|
|
4156
|
+
var V = L[M], I = k[V], _ = I && I[0], A = I && I[1];
|
|
4157
|
+
L[M] = A ? { regex: _, parser: A } : V.replace(/^\[|\]$/g, "");
|
|
4152
4158
|
}
|
|
4153
4159
|
return function(E) {
|
|
4154
4160
|
for (var O = {}, j = 0, W = 0; j < w; j += 1) {
|
|
4155
|
-
var
|
|
4156
|
-
if (typeof
|
|
4161
|
+
var C = L[j];
|
|
4162
|
+
if (typeof C == "string") W += C.length;
|
|
4157
4163
|
else {
|
|
4158
|
-
var o =
|
|
4164
|
+
var o = C.regex, p = C.parser, g = E.slice(W), u = o.exec(g)[0];
|
|
4159
4165
|
p.call(O, u), E = E.replace(u, "");
|
|
4160
4166
|
}
|
|
4161
4167
|
}
|
|
@@ -4168,36 +4174,36 @@ function t0() {
|
|
|
4168
4174
|
}(O), O;
|
|
4169
4175
|
};
|
|
4170
4176
|
}
|
|
4171
|
-
return function(
|
|
4172
|
-
|
|
4173
|
-
var
|
|
4174
|
-
|
|
4175
|
-
var V =
|
|
4177
|
+
return function(h, y, S) {
|
|
4178
|
+
S.p.customParseFormat = !0, h && h.parseTwoDigitYear && (x = h.parseTwoDigitYear);
|
|
4179
|
+
var L = y.prototype, w = L.parse;
|
|
4180
|
+
L.parse = function(M) {
|
|
4181
|
+
var V = M.date, I = M.utc, _ = M.args;
|
|
4176
4182
|
this.$u = I;
|
|
4177
4183
|
var A = _[1];
|
|
4178
4184
|
if (typeof A == "string") {
|
|
4179
4185
|
var E = _[2] === !0, O = _[3] === !0, j = E || O, W = _[2];
|
|
4180
|
-
O && (W = _[2]), l = this.$locale(), !E && W && (l =
|
|
4186
|
+
O && (W = _[2]), l = this.$locale(), !E && W && (l = S.Ls[W]), this.$d = function(g, u, z, $) {
|
|
4181
4187
|
try {
|
|
4182
|
-
if (["x", "X"].indexOf(u) > -1) return new Date((u === "X" ? 1e3 : 1) *
|
|
4183
|
-
var H = v(u)(
|
|
4188
|
+
if (["x", "X"].indexOf(u) > -1) return new Date((u === "X" ? 1e3 : 1) * g);
|
|
4189
|
+
var H = v(u)(g), F = H.year, U = H.month, P = H.day, q = H.hours, te = H.minutes, K = H.seconds, oe = H.milliseconds, se = H.zone, X = H.week, ee = /* @__PURE__ */ new Date(), ne = P || (F || U ? 1 : ee.getDate()), ce = F || ee.getFullYear(), we = 0;
|
|
4184
4190
|
F && !U || (we = U > 0 ? U - 1 : ee.getMonth());
|
|
4185
4191
|
var ve, Se = q || 0, Ve = te || 0, ze = K || 0, He = oe || 0;
|
|
4186
4192
|
return se ? new Date(Date.UTC(ce, we, ne, Se, Ve, ze, He + 60 * se.offset * 1e3)) : z ? new Date(Date.UTC(ce, we, ne, Se, Ve, ze, He)) : (ve = new Date(ce, we, ne, Se, Ve, ze, He), X && (ve = $(ve).week(X).toDate()), ve);
|
|
4187
4193
|
} catch {
|
|
4188
4194
|
return /* @__PURE__ */ new Date("");
|
|
4189
4195
|
}
|
|
4190
|
-
}(V, A, I,
|
|
4191
|
-
} else if (A instanceof Array) for (var
|
|
4196
|
+
}(V, A, I, S), this.init(), W && W !== !0 && (this.$L = this.locale(W).$L), j && V != this.format(A) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
|
|
4197
|
+
} else if (A instanceof Array) for (var C = A.length, o = 1; o <= C; o += 1) {
|
|
4192
4198
|
_[1] = A[o - 1];
|
|
4193
|
-
var p =
|
|
4199
|
+
var p = S.apply(this, _);
|
|
4194
4200
|
if (p.isValid()) {
|
|
4195
4201
|
this.$d = p.$d, this.$L = p.$L, this.init();
|
|
4196
4202
|
break;
|
|
4197
4203
|
}
|
|
4198
|
-
o ===
|
|
4204
|
+
o === C && (this.$d = /* @__PURE__ */ new Date(""));
|
|
4199
4205
|
}
|
|
4200
|
-
else w.call(this,
|
|
4206
|
+
else w.call(this, M);
|
|
4201
4207
|
};
|
|
4202
4208
|
};
|
|
4203
4209
|
});
|
|
@@ -4215,56 +4221,56 @@ const q0 = ({
|
|
|
4215
4221
|
dataTestIdInput: i,
|
|
4216
4222
|
onChange: a
|
|
4217
4223
|
}) => {
|
|
4218
|
-
const d = ge(n, "M-D-YYYY", !0), [l, x] = Y(!1), [
|
|
4219
|
-
|
|
4220
|
-
),
|
|
4224
|
+
const d = ge(n, "M-D-YYYY", !0), [l, x] = Y(!1), [f, b] = Y(""), [D, N] = Y(ge()), [k, v] = Y(!1), [h, y] = Y(
|
|
4225
|
+
f ? d.isValid() : !0
|
|
4226
|
+
), S = Q(null), L = Q(null), w = Q(null), M = D?.daysInMonth() || 30, V = D?.startOf("month").day() || 0;
|
|
4221
4227
|
Z(() => {
|
|
4222
|
-
const
|
|
4223
|
-
n &&
|
|
4228
|
+
const C = ge(n, "M-D-YYYY", !0);
|
|
4229
|
+
n && C.isValid() ? (b(C.format("M-D-YYYY")), N(C), v(!0), y(!0)) : n ? (b(n), N(ge()), v(!0), y(!1)) : (b(""), N(ge()), v(!1), y(!0));
|
|
4224
4230
|
}, [n]), Z(() => {
|
|
4225
|
-
function
|
|
4226
|
-
|
|
4231
|
+
function C(o) {
|
|
4232
|
+
S.current && (S.current.contains(o.target) || x(!1));
|
|
4227
4233
|
}
|
|
4228
4234
|
return l && w.current && (w.current.querySelector(
|
|
4229
4235
|
'[role="button"]:not([disabled])'
|
|
4230
|
-
)?.focus(), document.addEventListener("mousedown",
|
|
4231
|
-
document.removeEventListener("mousedown",
|
|
4236
|
+
)?.focus(), document.addEventListener("mousedown", C)), () => {
|
|
4237
|
+
document.removeEventListener("mousedown", C);
|
|
4232
4238
|
};
|
|
4233
4239
|
}, [l]);
|
|
4234
|
-
const I = (
|
|
4235
|
-
const o =
|
|
4236
|
-
v(!0),
|
|
4237
|
-
}, _ = (
|
|
4238
|
-
|
|
4239
|
-
}, A = (
|
|
4240
|
-
const o =
|
|
4240
|
+
const I = (C) => {
|
|
4241
|
+
const o = C.format("M-D-YYYY");
|
|
4242
|
+
v(!0), N(C), b(o), y(!0), a(o), x(!1), L.current?.focus();
|
|
4243
|
+
}, _ = (C, o) => {
|
|
4244
|
+
C.key === "Enter" && I(o);
|
|
4245
|
+
}, A = (C) => {
|
|
4246
|
+
const o = C.target.value;
|
|
4241
4247
|
if (b(o), v(!0), !/^\d{1,2}-\d{2}-\d{4}$/.test(o)) {
|
|
4242
4248
|
y(!1), a(o);
|
|
4243
4249
|
return;
|
|
4244
4250
|
}
|
|
4245
|
-
const
|
|
4246
|
-
|
|
4251
|
+
const g = ge(o, "M-D-YYYY", !0);
|
|
4252
|
+
g.isValid() ? (N(g), y(!0), a(o)) : (y(!1), a(o));
|
|
4247
4253
|
}, E = () => {
|
|
4248
|
-
x((
|
|
4254
|
+
x((C) => !C);
|
|
4249
4255
|
}, O = () => {
|
|
4250
|
-
|
|
4256
|
+
D && N(D.subtract(1, "month"));
|
|
4251
4257
|
}, j = () => {
|
|
4252
|
-
|
|
4258
|
+
D && N(D.add(1, "month"));
|
|
4253
4259
|
}, W = () => {
|
|
4254
|
-
if (!
|
|
4255
|
-
const
|
|
4260
|
+
if (!D) return null;
|
|
4261
|
+
const C = [];
|
|
4256
4262
|
for (let o = 0; o < V; o++)
|
|
4257
|
-
|
|
4258
|
-
for (let o = 1; o <=
|
|
4259
|
-
const p =
|
|
4260
|
-
|
|
4263
|
+
C.push(/* @__PURE__ */ t("div", { className: "w-8 h-8" }, `empty-${o}`));
|
|
4264
|
+
for (let o = 1; o <= M; o++) {
|
|
4265
|
+
const p = D.date(o);
|
|
4266
|
+
C.push(
|
|
4261
4267
|
/* @__PURE__ */ t(
|
|
4262
4268
|
"button",
|
|
4263
4269
|
{
|
|
4264
4270
|
tabIndex: 0,
|
|
4265
4271
|
onClick: () => I(p),
|
|
4266
|
-
onKeyDown: (
|
|
4267
|
-
className: `w-8 h-8 ${p.isSame(
|
|
4272
|
+
onKeyDown: (g) => _(g, p),
|
|
4273
|
+
className: `w-8 h-8 ${p.isSame(D, "date") ? "bg-blue-600 text-white" : ""} hover:bg-blue-100 focus:ring`,
|
|
4268
4274
|
"aria-label": p.format("MMMM D, YYYY"),
|
|
4269
4275
|
children: o
|
|
4270
4276
|
},
|
|
@@ -4272,9 +4278,9 @@ const q0 = ({
|
|
|
4272
4278
|
)
|
|
4273
4279
|
);
|
|
4274
4280
|
}
|
|
4275
|
-
return
|
|
4281
|
+
return C;
|
|
4276
4282
|
};
|
|
4277
|
-
return /* @__PURE__ */ B("div", { className: "relative", ref:
|
|
4283
|
+
return /* @__PURE__ */ B("div", { className: "relative", ref: S, "test-dataid": r, children: [
|
|
4278
4284
|
/* @__PURE__ */ t("label", { htmlFor: e, id: "date-picker-input", className: "block text-sm font-medium text-gray-700", children: s }),
|
|
4279
4285
|
/* @__PURE__ */ B("div", { className: "flex items-center mt-1", children: [
|
|
4280
4286
|
/* @__PURE__ */ t(
|
|
@@ -4283,8 +4289,8 @@ const q0 = ({
|
|
|
4283
4289
|
id: e,
|
|
4284
4290
|
type: "text",
|
|
4285
4291
|
"aria-labelledby": "date-picker-input",
|
|
4286
|
-
ref:
|
|
4287
|
-
value:
|
|
4292
|
+
ref: L,
|
|
4293
|
+
value: k ? f : "",
|
|
4288
4294
|
onChange: A,
|
|
4289
4295
|
"data-testid": i,
|
|
4290
4296
|
placeholder: "M-D-YYYY",
|
|
@@ -4334,7 +4340,7 @@ const q0 = ({
|
|
|
4334
4340
|
children: "<"
|
|
4335
4341
|
}
|
|
4336
4342
|
),
|
|
4337
|
-
/* @__PURE__ */ t("div", { className: "text-lg font-semibold", children:
|
|
4343
|
+
/* @__PURE__ */ t("div", { className: "text-lg font-semibold", children: D?.format("MMMM YYYY") }),
|
|
4338
4344
|
/* @__PURE__ */ t(
|
|
4339
4345
|
"button",
|
|
4340
4346
|
{
|
|
@@ -4358,7 +4364,7 @@ const q0 = ({
|
|
|
4358
4364
|
]
|
|
4359
4365
|
}
|
|
4360
4366
|
),
|
|
4361
|
-
!
|
|
4367
|
+
!h && /* @__PURE__ */ t("p", { className: "text-red-600", children: "Please enter a valid date 'MM-DD-YYYY'" })
|
|
4362
4368
|
] });
|
|
4363
4369
|
}, K0 = ({
|
|
4364
4370
|
children: e,
|
|
@@ -4371,33 +4377,33 @@ const q0 = ({
|
|
|
4371
4377
|
className: d,
|
|
4372
4378
|
dataTestId: l,
|
|
4373
4379
|
dataTestIdButton: x,
|
|
4374
|
-
clickHandler:
|
|
4380
|
+
clickHandler: f
|
|
4375
4381
|
}) => {
|
|
4376
|
-
const [b,
|
|
4382
|
+
const [b, D] = Y(!1), N = `expandable-text-${Math.random().toString(36).slice(2)}`;
|
|
4377
4383
|
if (!e || typeof e != "string" || s < 0)
|
|
4378
4384
|
return /* @__PURE__ */ t("span", { className: d, children: e || "" });
|
|
4379
|
-
const v = ((y,
|
|
4380
|
-
if (y.length <=
|
|
4381
|
-
const
|
|
4382
|
-
return w > 0 ?
|
|
4385
|
+
const v = ((y, S) => {
|
|
4386
|
+
if (y.length <= S) return y;
|
|
4387
|
+
const L = y.slice(0, S), w = L.lastIndexOf(" ");
|
|
4388
|
+
return w > 0 ? L.slice(0, w) : L;
|
|
4383
4389
|
})(e, s);
|
|
4384
4390
|
if (e.length <= s)
|
|
4385
4391
|
return /* @__PURE__ */ t("span", { className: d, children: e });
|
|
4386
|
-
const
|
|
4387
|
-
|
|
4392
|
+
const h = () => {
|
|
4393
|
+
f && f(!b), D(!b);
|
|
4388
4394
|
};
|
|
4389
|
-
return /* @__PURE__ */ t("div", { className: d, id:
|
|
4395
|
+
return /* @__PURE__ */ t("div", { className: d, id: N, "data-testid": l, children: b ? /* @__PURE__ */ B(ae, { children: [
|
|
4390
4396
|
e,
|
|
4391
4397
|
i && /* @__PURE__ */ t(
|
|
4392
4398
|
"button",
|
|
4393
4399
|
{
|
|
4394
|
-
onClick:
|
|
4400
|
+
onClick: h,
|
|
4395
4401
|
className: m(
|
|
4396
4402
|
"ml-2 text-blue-600 underline hover:text-blue-800 focus:outline-none",
|
|
4397
4403
|
c
|
|
4398
4404
|
),
|
|
4399
4405
|
"aria-expanded": "true",
|
|
4400
|
-
"aria-controls":
|
|
4406
|
+
"aria-controls": N,
|
|
4401
4407
|
"data-testid": x,
|
|
4402
4408
|
children: a
|
|
4403
4409
|
}
|
|
@@ -4408,13 +4414,13 @@ const q0 = ({
|
|
|
4408
4414
|
/* @__PURE__ */ t(
|
|
4409
4415
|
"button",
|
|
4410
4416
|
{
|
|
4411
|
-
onClick:
|
|
4417
|
+
onClick: h,
|
|
4412
4418
|
className: m(
|
|
4413
4419
|
"ml-2 text-blue-600 underline hover:text-blue-800 focus:outline-none",
|
|
4414
4420
|
r
|
|
4415
4421
|
),
|
|
4416
4422
|
"aria-expanded": "false",
|
|
4417
|
-
"aria-controls":
|
|
4423
|
+
"aria-controls": N,
|
|
4418
4424
|
"data-testid": x,
|
|
4419
4425
|
children: n
|
|
4420
4426
|
}
|
|
@@ -4454,27 +4460,27 @@ const X0 = ({
|
|
|
4454
4460
|
dataTestIdContainer: a,
|
|
4455
4461
|
dataTestIdTabButton: d
|
|
4456
4462
|
}) => {
|
|
4457
|
-
const [l, x] = Y(0), [
|
|
4463
|
+
const [l, x] = Y(0), [f, b] = Y(!1), [D, N] = Y(""), k = Q([]);
|
|
4458
4464
|
e === "" && (e = "default");
|
|
4459
4465
|
const v = $e((w) => {
|
|
4460
|
-
|
|
4461
|
-
}, []),
|
|
4462
|
-
|
|
4463
|
-
}, y = (w) => (
|
|
4464
|
-
|
|
4465
|
-
},
|
|
4466
|
-
(w,
|
|
4466
|
+
k.current[w]?.focus();
|
|
4467
|
+
}, []), h = (w, M) => {
|
|
4468
|
+
M && M(), x(w);
|
|
4469
|
+
}, y = (w) => (M) => {
|
|
4470
|
+
k.current[w] = M;
|
|
4471
|
+
}, S = $e(
|
|
4472
|
+
(w, M) => {
|
|
4467
4473
|
if (w.key === "ArrowRight") {
|
|
4468
|
-
const V = (
|
|
4474
|
+
const V = (M + 1) % s.length;
|
|
4469
4475
|
x(V), v(V);
|
|
4470
4476
|
} else if (w.key === "ArrowLeft") {
|
|
4471
|
-
const V = (
|
|
4477
|
+
const V = (M - 1 + s.length) % s.length;
|
|
4472
4478
|
x(V), v(V);
|
|
4473
4479
|
} else w.key === "Home" ? (x(0), v(0)) : w.key === "End" && (x(s.length - 1), v(s.length - 1));
|
|
4474
4480
|
},
|
|
4475
4481
|
[s.length, v]
|
|
4476
|
-
),
|
|
4477
|
-
b(!0),
|
|
4482
|
+
), L = (w) => {
|
|
4483
|
+
b(!0), N(w);
|
|
4478
4484
|
};
|
|
4479
4485
|
return /* @__PURE__ */ B("div", { className: m("w-full", r), "data-testid": a, children: [
|
|
4480
4486
|
/* @__PURE__ */ t(
|
|
@@ -4483,38 +4489,38 @@ const X0 = ({
|
|
|
4483
4489
|
role: "tablist",
|
|
4484
4490
|
"aria-label": "Tabs",
|
|
4485
4491
|
className: m(Ye[e].container, n),
|
|
4486
|
-
children: s.map((w,
|
|
4492
|
+
children: s.map((w, M) => /* @__PURE__ */ B(
|
|
4487
4493
|
"button",
|
|
4488
4494
|
{
|
|
4489
4495
|
role: "tab",
|
|
4490
4496
|
id: `tab-${w.id}`,
|
|
4491
|
-
onMouseEnter: () =>
|
|
4497
|
+
onMouseEnter: () => L(w.id),
|
|
4492
4498
|
onMouseLeave: () => b(!1),
|
|
4493
|
-
"aria-selected": l ===
|
|
4499
|
+
"aria-selected": l === M,
|
|
4494
4500
|
"aria-controls": `panel-${w.id}`,
|
|
4495
4501
|
"data-testid": d,
|
|
4496
|
-
tabIndex: l ===
|
|
4497
|
-
ref: y(
|
|
4498
|
-
className: `flex px-6 py-3 md:py-[14px] lg:py-4 focus:outline-hidden ${e === "outline" ? `border-[#092068] ${
|
|
4499
|
-
onClick: () =>
|
|
4500
|
-
onKeyDown: (V) =>
|
|
4502
|
+
tabIndex: l === M ? 0 : -1,
|
|
4503
|
+
ref: y(M),
|
|
4504
|
+
className: `flex px-6 py-3 md:py-[14px] lg:py-4 focus:outline-hidden ${e === "outline" ? `border-[#092068] ${M === 0 ? "border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md" : M === s.length - 1 ? "border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md" : "border-t-2 border-b-2"}` : ""} ${l === M ? m(Ye[e].active, c) : m(Ye[e].inactive, i)}`,
|
|
4505
|
+
onClick: () => h(M, w.onClick),
|
|
4506
|
+
onKeyDown: (V) => S(V, M),
|
|
4501
4507
|
children: [
|
|
4502
|
-
w.iconPosition === "left" && w.activeIcon && /* @__PURE__ */ t("span", { className: "icon-left mr-3 size-6 lg:mt-0.5", children: l ===
|
|
4503
|
-
w.iconPosition === "iconOnly" && w.activeIcon ? /* @__PURE__ */ t("span", { className: "size-6 lg:mt-0.5", children: l ===
|
|
4504
|
-
w.iconPosition === "right" && w.activeIcon && /* @__PURE__ */ t("span", { className: "icon-right ml-3 size-6 lg:mt-0.5", children: l ===
|
|
4508
|
+
w.iconPosition === "left" && w.activeIcon && /* @__PURE__ */ t("span", { className: "icon-left mr-3 size-6 lg:mt-0.5", children: l === M ? f && D === w.id ? w.inactiveIcon : w.activeIcon : w.inactiveIcon }),
|
|
4509
|
+
w.iconPosition === "iconOnly" && w.activeIcon ? /* @__PURE__ */ t("span", { className: "size-6 lg:mt-0.5", children: l === M ? f && D === w.id ? w.inactiveIcon : w.activeIcon : w.inactiveIcon }) : /* @__PURE__ */ t("span", { className: "text-sm md:text-base lg:text-lg mt-0.5 md:mt-0", children: w.label }),
|
|
4510
|
+
w.iconPosition === "right" && w.activeIcon && /* @__PURE__ */ t("span", { className: "icon-right ml-3 size-6 lg:mt-0.5", children: l === M ? f && D === w.id ? w.inactiveIcon : w.activeIcon : w.inactiveIcon })
|
|
4505
4511
|
]
|
|
4506
4512
|
},
|
|
4507
4513
|
w.id
|
|
4508
4514
|
))
|
|
4509
4515
|
}
|
|
4510
4516
|
),
|
|
4511
|
-
s.map((w,
|
|
4517
|
+
s.map((w, M) => /* @__PURE__ */ t(
|
|
4512
4518
|
"div",
|
|
4513
4519
|
{
|
|
4514
4520
|
role: "tabpanel",
|
|
4515
4521
|
id: `panel-${w.id}`,
|
|
4516
4522
|
"aria-labelledby": `tab-${w.id}`,
|
|
4517
|
-
hidden: l !==
|
|
4523
|
+
hidden: l !== M,
|
|
4518
4524
|
className: "p-4",
|
|
4519
4525
|
children: w.content
|
|
4520
4526
|
},
|
|
@@ -4570,20 +4576,20 @@ const c2 = "px-4 py-3 arial rounded-lg border border-[#B3B3B3] mx-2 bg-white hov
|
|
|
4570
4576
|
dataTestIdLabel: l,
|
|
4571
4577
|
error: x = !1,
|
|
4572
4578
|
// labelInputColor = '#fff',
|
|
4573
|
-
textShadow:
|
|
4579
|
+
textShadow: f = !1,
|
|
4574
4580
|
mask: b,
|
|
4575
|
-
disabled:
|
|
4576
|
-
...
|
|
4577
|
-
},
|
|
4578
|
-
const { "aria-label": v, ...
|
|
4581
|
+
disabled: D,
|
|
4582
|
+
...N
|
|
4583
|
+
}, k) => {
|
|
4584
|
+
const { "aria-label": v, ...h } = N, [y, S] = Y(), [L, w] = Y(c2), [M, V] = Y(""), [I, _] = Y(!1), A = Q(null), [E, O] = Y(""), j = "border-[#D54309] border", W = (o) => {
|
|
4579
4585
|
const p = o.target.value;
|
|
4580
|
-
O(b ?
|
|
4586
|
+
O(b ? C(p) : p);
|
|
4581
4587
|
};
|
|
4582
|
-
function
|
|
4583
|
-
let p = "",
|
|
4588
|
+
function C(o) {
|
|
4589
|
+
let p = "", g = 0;
|
|
4584
4590
|
if (b)
|
|
4585
|
-
for (; o.length > 0 &&
|
|
4586
|
-
b[
|
|
4591
|
+
for (; o.length > 0 && g < b.length; )
|
|
4592
|
+
b[g] !== "#" && b[g] !== "@" ? b[g] === o[0] ? (p += o[0], o = o.slice(1), g++) : ((l2(o[0]) && i2(b, g) === "@" || o2(o[0]) && i2(b, g) === "#") && (p += b[g]), g++) : b[g] === "#" && o2(o[0]) || b[g] === "@" && l2(o[0]) ? (p += o[0], o = o.slice(1), g++) : o = o.slice(1);
|
|
4587
4593
|
return p;
|
|
4588
4594
|
}
|
|
4589
4595
|
if (Z(() => {
|
|
@@ -4597,15 +4603,15 @@ const c2 = "px-4 py-3 arial rounded-lg border border-[#B3B3B3] mx-2 bg-white hov
|
|
|
4597
4603
|
if (r) {
|
|
4598
4604
|
const o = A.current;
|
|
4599
4605
|
if (!o) return;
|
|
4600
|
-
const p = (
|
|
4606
|
+
const p = (g) => {
|
|
4601
4607
|
const u = getComputedStyle(o);
|
|
4602
|
-
|
|
4608
|
+
S(u.backgroundColor), _(g);
|
|
4603
4609
|
};
|
|
4604
4610
|
return p(!0), o.addEventListener("mouseover", () => p(!0)), o.addEventListener("mouseout", () => p(!1)), () => {
|
|
4605
4611
|
o.removeEventListener("mouseover", () => p), o.removeEventListener("mouseout", () => p);
|
|
4606
4612
|
};
|
|
4607
4613
|
}
|
|
4608
|
-
}, [a, r, I,
|
|
4614
|
+
}, [a, r, I, D]), !["default", "outline", "nonHover"].includes(s))
|
|
4609
4615
|
throw new Error(
|
|
4610
4616
|
`Invalid variant: "${s}". Valid variants are: "default", "outline", and "nonHover".`
|
|
4611
4617
|
);
|
|
@@ -4613,31 +4619,31 @@ const c2 = "px-4 py-3 arial rounded-lg border border-[#B3B3B3] mx-2 bg-white hov
|
|
|
4613
4619
|
/* @__PURE__ */ B(
|
|
4614
4620
|
"div",
|
|
4615
4621
|
{
|
|
4616
|
-
className: m(`${!r && "pb-2"}`,
|
|
4622
|
+
className: m(`${!r && "pb-2"}`, M),
|
|
4617
4623
|
style: r ? {
|
|
4618
4624
|
background: `linear-gradient(to bottom, ${a} 0%, ${a} 50%, ${y} 60%, ${y} 100%)`,
|
|
4619
|
-
textShadow:
|
|
4620
|
-
} : { textShadow:
|
|
4625
|
+
textShadow: f ? `1px 1px 2px ${a}, 0 0 1em ${a}, 0 0 0.2em ${a}` : ""
|
|
4626
|
+
} : { textShadow: f ? `1px 1px 2px ${a}, 0 0 1em ${a}, 0 0 0.2em ${a}` : "" },
|
|
4621
4627
|
"data-testid": l,
|
|
4622
4628
|
children: [
|
|
4623
4629
|
n,
|
|
4624
|
-
|
|
4630
|
+
N.required && /* @__PURE__ */ t("span", { className: m("absolute text-red-500 ms-0.5 -mt-1", i), children: "*" })
|
|
4625
4631
|
]
|
|
4626
4632
|
}
|
|
4627
4633
|
),
|
|
4628
4634
|
/* @__PURE__ */ t(
|
|
4629
4635
|
"input",
|
|
4630
4636
|
{
|
|
4631
|
-
className:
|
|
4637
|
+
className: L,
|
|
4632
4638
|
"aria-label": v ?? (typeof n == "string" ? n : void 0),
|
|
4633
4639
|
value: E,
|
|
4634
4640
|
onChange: W,
|
|
4635
|
-
disabled:
|
|
4641
|
+
disabled: D,
|
|
4636
4642
|
"data-testid": d,
|
|
4637
4643
|
ref: (o) => {
|
|
4638
|
-
typeof
|
|
4644
|
+
typeof k == "function" ? k(o) : k && (k.current = o), A.current = o;
|
|
4639
4645
|
},
|
|
4640
|
-
...
|
|
4646
|
+
...h
|
|
4641
4647
|
}
|
|
4642
4648
|
)
|
|
4643
4649
|
] });
|
|
@@ -4655,62 +4661,62 @@ const l0 = ({
|
|
|
4655
4661
|
isDecimal: d = !1,
|
|
4656
4662
|
isDisc: l = !1,
|
|
4657
4663
|
isAlphabetical: x = !1,
|
|
4658
|
-
isRomanNumeral:
|
|
4664
|
+
isRomanNumeral: f = !1,
|
|
4659
4665
|
isInline: b = !1,
|
|
4660
|
-
testDataId:
|
|
4661
|
-
}) => /* @__PURE__ */ B("div", { className: "p-0 m-0", "data-testid":
|
|
4666
|
+
testDataId: D
|
|
4667
|
+
}) => /* @__PURE__ */ B("div", { className: "p-0 m-0", "data-testid": D, children: [
|
|
4662
4668
|
/* @__PURE__ */ t("p", { children: s }),
|
|
4663
4669
|
/* @__PURE__ */ B("ul", { className: m("pl-6 list-none w-full", d ? "list-decimal" : "", l ? "list-disc" : "", n), children: [
|
|
4664
|
-
e && e.map((
|
|
4670
|
+
e && e.map((N, k) => /* @__PURE__ */ B(
|
|
4665
4671
|
S2,
|
|
4666
4672
|
{
|
|
4667
4673
|
className: m(
|
|
4668
4674
|
"w-full text-base md:text:lg py-2",
|
|
4669
|
-
i && (b ?
|
|
4670
|
-
a !== "" && (b ?
|
|
4675
|
+
i && (b ? k !== e.length : k !== e.length - 1) ? "border-b" : "",
|
|
4676
|
+
a !== "" && (b ? k !== e.length : k !== e.length - 1) ? a : "",
|
|
4671
4677
|
b && "inline mr-2",
|
|
4672
4678
|
r
|
|
4673
4679
|
),
|
|
4674
4680
|
children: [
|
|
4675
|
-
|
|
4676
|
-
String.fromCharCode(8560 +
|
|
4681
|
+
f && /* @__PURE__ */ B("span", { className: "flex flex-col w-6", children: [
|
|
4682
|
+
String.fromCharCode(8560 + k),
|
|
4677
4683
|
". "
|
|
4678
4684
|
] }),
|
|
4679
4685
|
x && /* @__PURE__ */ B("span", { children: [
|
|
4680
|
-
String.fromCharCode(97 +
|
|
4686
|
+
String.fromCharCode(97 + k),
|
|
4681
4687
|
". "
|
|
4682
4688
|
] }),
|
|
4683
|
-
|
|
4689
|
+
f ? /* @__PURE__ */ t("span", { className: "flex flex-col w-6", children: N.children }) : N.children
|
|
4684
4690
|
]
|
|
4685
4691
|
},
|
|
4686
|
-
|
|
4692
|
+
k
|
|
4687
4693
|
)),
|
|
4688
4694
|
c && le.Children.map(
|
|
4689
4695
|
c,
|
|
4690
|
-
(
|
|
4696
|
+
(N, k) => le.isValidElement(N) ? le.cloneElement(N, {
|
|
4691
4697
|
className: m(
|
|
4692
4698
|
b && "inline mr-2",
|
|
4693
4699
|
r,
|
|
4694
|
-
|
|
4700
|
+
N.props.className,
|
|
4695
4701
|
"w-full",
|
|
4696
|
-
i && (b ?
|
|
4697
|
-
a !== "" && (b ?
|
|
4702
|
+
i && (b ? k !== le.Children.count(c) : k !== le.Children.count(c) - 1) ? "border-b" : "",
|
|
4703
|
+
a !== "" && (b ? k !== le.Children.count(c) : k !== le.Children.count(c) - 1) ? a : ""
|
|
4698
4704
|
),
|
|
4699
4705
|
children: /* @__PURE__ */ B(ae, { children: [
|
|
4700
|
-
|
|
4706
|
+
f && /* @__PURE__ */ B("div", { className: "flex flex-row", children: [
|
|
4701
4707
|
/* @__PURE__ */ B("span", { className: "w-6", children: [
|
|
4702
|
-
String.fromCharCode(8560 +
|
|
4708
|
+
String.fromCharCode(8560 + k),
|
|
4703
4709
|
". "
|
|
4704
4710
|
] }),
|
|
4705
|
-
|
|
4711
|
+
N.props.children
|
|
4706
4712
|
] }),
|
|
4707
4713
|
x && /* @__PURE__ */ B("span", { children: [
|
|
4708
|
-
String.fromCharCode(97 +
|
|
4714
|
+
String.fromCharCode(97 + k),
|
|
4709
4715
|
". "
|
|
4710
4716
|
] }),
|
|
4711
|
-
!
|
|
4717
|
+
!f && N.props.children
|
|
4712
4718
|
] })
|
|
4713
|
-
}) :
|
|
4719
|
+
}) : N
|
|
4714
4720
|
)
|
|
4715
4721
|
] })
|
|
4716
4722
|
] }), S2 = ({ className: e, children: s }) => /* @__PURE__ */ t("li", { className: m("py-2 text-base md:text:lg", e), children: s }), i0 = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cmask%20id='mask0_4303_6570'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20x='0.5'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4303_6570)'%3e%3cpath%20id='Icon'%20d='M12.4995%2013.0537L7.42652%2018.127C7.28802%2018.2653%207.11394%2018.3362%206.90427%2018.3395C6.69477%2018.3427%206.51752%2018.2718%206.37252%2018.127C6.22769%2017.982%206.15527%2017.8063%206.15527%2017.6C6.15527%2017.3937%206.22769%2017.218%206.37252%2017.073L11.4458%2012L6.37252%206.927C6.23419%206.7885%206.16336%206.61441%206.16002%206.40475C6.15686%206.19525%206.22769%206.018%206.37252%205.873C6.51752%205.72816%206.69319%205.65575%206.89952%205.65575C7.10586%205.65575%207.28152%205.72816%207.42652%205.873L12.4995%2010.9462L17.5725%205.873C17.711%205.73466%2017.8851%205.66383%2018.0948%205.6605C18.3043%205.65733%2018.4815%205.72816%2018.6265%205.873C18.7714%206.018%2018.8438%206.19366%2018.8438%206.4C18.8438%206.60633%2018.7714%206.782%2018.6265%206.927L13.5533%2012L18.6265%2017.073C18.7649%2017.2115%2018.8357%2017.3856%2018.839%2017.5952C18.8422%2017.8047%2018.7714%2017.982%2018.6265%2018.127C18.4815%2018.2718%2018.3059%2018.3442%2018.0995%2018.3442C17.8932%2018.3442%2017.7175%2018.2718%2017.5725%2018.127L12.4995%2013.0537Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", me = {
|
|
@@ -4746,22 +4752,22 @@ const l0 = ({
|
|
|
4746
4752
|
displayClosingX: d = !0,
|
|
4747
4753
|
closeButtonText: l = "Close",
|
|
4748
4754
|
continueButton: x = !1,
|
|
4749
|
-
continueButtonHandler:
|
|
4755
|
+
continueButtonHandler: f,
|
|
4750
4756
|
continueButtonText: b = "Continue",
|
|
4751
|
-
blurLevel:
|
|
4752
|
-
dataTestId:
|
|
4753
|
-
dataTestIdBody:
|
|
4757
|
+
blurLevel: D,
|
|
4758
|
+
dataTestId: N,
|
|
4759
|
+
dataTestIdBody: k,
|
|
4754
4760
|
dataTestIdTitle: v,
|
|
4755
|
-
children:
|
|
4761
|
+
children: h
|
|
4756
4762
|
}) => {
|
|
4757
|
-
const y = Q(null),
|
|
4763
|
+
const y = Q(null), S = Q(null), L = "fixed inset-0 z-50 flex items-center justify-center bg-black/50", [w, M] = Y("");
|
|
4758
4764
|
if (Z(() => {
|
|
4759
|
-
if (
|
|
4760
|
-
const I = "backdrop-blur-" +
|
|
4761
|
-
|
|
4765
|
+
if (D) {
|
|
4766
|
+
const I = "backdrop-blur-" + D;
|
|
4767
|
+
M(m(L, I));
|
|
4762
4768
|
} else
|
|
4763
|
-
|
|
4764
|
-
}, [
|
|
4769
|
+
M(L);
|
|
4770
|
+
}, [D]), Z(() => {
|
|
4765
4771
|
if (a) {
|
|
4766
4772
|
const I = (_) => {
|
|
4767
4773
|
y.current && !y.current.contains(_.target) && n();
|
|
@@ -4779,19 +4785,19 @@ const l0 = ({
|
|
|
4779
4785
|
), O = E?.[0], j = E?.[E.length - 1];
|
|
4780
4786
|
A.key === "Tab" && E && (A.shiftKey && document.activeElement === O ? (A.preventDefault(), j?.focus()) : !A.shiftKey && document.activeElement === j && (A.preventDefault(), O?.focus()));
|
|
4781
4787
|
};
|
|
4782
|
-
return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown", I), window.addEventListener("keydown", _),
|
|
4788
|
+
return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown", I), window.addEventListener("keydown", _), S.current?.focus()) : document.body.style.overflow = "auto", () => {
|
|
4783
4789
|
window.removeEventListener("keydown", I), window.removeEventListener("keydown", _), document.body.style.overflow = "auto";
|
|
4784
4790
|
};
|
|
4785
4791
|
}, [e, n]), !e) return null;
|
|
4786
4792
|
const V = () => {
|
|
4787
|
-
|
|
4793
|
+
f && f(), n();
|
|
4788
4794
|
};
|
|
4789
4795
|
return /* @__PURE__ */ t(
|
|
4790
4796
|
"div",
|
|
4791
4797
|
{
|
|
4792
4798
|
className: w,
|
|
4793
4799
|
id: "backdrop",
|
|
4794
|
-
"data-testid":
|
|
4800
|
+
"data-testid": N,
|
|
4795
4801
|
children: /* @__PURE__ */ B(
|
|
4796
4802
|
"div",
|
|
4797
4803
|
{
|
|
@@ -4826,15 +4832,15 @@ const l0 = ({
|
|
|
4826
4832
|
"div",
|
|
4827
4833
|
{
|
|
4828
4834
|
className: m("text-center lg:text-[18px] px-2", me[s].body),
|
|
4829
|
-
"data-testid":
|
|
4830
|
-
children:
|
|
4835
|
+
"data-testid": k,
|
|
4836
|
+
children: h
|
|
4831
4837
|
}
|
|
4832
4838
|
),
|
|
4833
4839
|
x || i ? /* @__PURE__ */ B("div", { className: "mt-4 flex justify-end px-4", children: [
|
|
4834
4840
|
i && /* @__PURE__ */ t(
|
|
4835
4841
|
"button",
|
|
4836
4842
|
{
|
|
4837
|
-
ref:
|
|
4843
|
+
ref: S,
|
|
4838
4844
|
onClick: n,
|
|
4839
4845
|
className: m(me[s].button),
|
|
4840
4846
|
children: l
|
|
@@ -4866,30 +4872,30 @@ const l0 = ({
|
|
|
4866
4872
|
onClick: d,
|
|
4867
4873
|
selected: l = !1,
|
|
4868
4874
|
disabled: x = !1,
|
|
4869
|
-
...
|
|
4875
|
+
...f
|
|
4870
4876
|
}, b) => {
|
|
4871
|
-
const [
|
|
4877
|
+
const [D, N] = Y(), [k, v] = Y(), [h, y] = Y("bg-white");
|
|
4872
4878
|
return Z(() => {
|
|
4873
|
-
const
|
|
4874
|
-
v(s && r ?
|
|
4879
|
+
const S = "text-lg font-normal font-['Arial'] leading-normal ";
|
|
4880
|
+
v(s && r ? S : s ? S + "mr-6" : r ? S + "ml-6" : S + "ml-6 mr-6");
|
|
4875
4881
|
}, [s, r, i]), Z(() => {
|
|
4876
|
-
y(l ? "bg-[#092068] focus:bg-[#092068] text-white" : "bg-white"),
|
|
4882
|
+
y(l ? "bg-[#092068] focus:bg-[#092068] text-white" : "bg-white"), N(m(
|
|
4877
4883
|
"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",
|
|
4878
|
-
|
|
4884
|
+
h,
|
|
4879
4885
|
e
|
|
4880
4886
|
));
|
|
4881
|
-
}, [e,
|
|
4887
|
+
}, [e, h, l]), /* @__PURE__ */ B(
|
|
4882
4888
|
"button",
|
|
4883
4889
|
{
|
|
4884
4890
|
onClick: d,
|
|
4885
|
-
className:
|
|
4891
|
+
className: D,
|
|
4886
4892
|
ref: b,
|
|
4887
|
-
...
|
|
4893
|
+
...f,
|
|
4888
4894
|
disabled: x,
|
|
4889
4895
|
"data-testid": a,
|
|
4890
4896
|
children: [
|
|
4891
4897
|
s && /* @__PURE__ */ t("span", { className: "ml-6 mr-2.5 size-6", children: l && n ? n : s }),
|
|
4892
|
-
/* @__PURE__ */ t("div", { className:
|
|
4898
|
+
/* @__PURE__ */ t("div", { className: k, children: i }),
|
|
4893
4899
|
r && /* @__PURE__ */ t("span", { className: "ml-2.5 mr-6 size-6", children: l && c ? c : r })
|
|
4894
4900
|
]
|
|
4895
4901
|
}
|
|
@@ -4906,23 +4912,23 @@ const l0 = ({
|
|
|
4906
4912
|
isStep: d = !0,
|
|
4907
4913
|
dataTestId: l,
|
|
4908
4914
|
showMarkers: x = !0,
|
|
4909
|
-
classNameMarkerFalse:
|
|
4915
|
+
classNameMarkerFalse: f = ""
|
|
4910
4916
|
}) => {
|
|
4911
|
-
const b = Array.from({ length: e }, (
|
|
4917
|
+
const b = Array.from({ length: e }, (k, v) => v + 1), [D, N] = Y(Math.round(s / e * 100).toString() + "%");
|
|
4912
4918
|
return f2(() => {
|
|
4913
4919
|
const v = Math.round(s / e * 100).toString() + "%";
|
|
4914
|
-
|
|
4915
|
-
}, [s, e]), /* @__PURE__ */ t("div", { className: m("flex items-center w-full", n), "data-testid": l, children: x ? b.map((
|
|
4916
|
-
const
|
|
4920
|
+
N(v);
|
|
4921
|
+
}, [s, e]), /* @__PURE__ */ t("div", { className: m("flex items-center w-full", n), "data-testid": l, children: x ? b.map((k, v) => {
|
|
4922
|
+
const h = k <= s - 1, y = v === b.length - 1;
|
|
4917
4923
|
return /* @__PURE__ */ B(ae, { children: [
|
|
4918
4924
|
/* @__PURE__ */ t(
|
|
4919
4925
|
"div",
|
|
4920
4926
|
{
|
|
4921
4927
|
className: m(
|
|
4922
4928
|
"flex items-center justify-center size-8 rounded-full border-[3px] border-gray-300 text-gray-500",
|
|
4923
|
-
`${
|
|
4929
|
+
`${h && `${c} ${i}`}`
|
|
4924
4930
|
),
|
|
4925
|
-
children: d ? /* @__PURE__ */ t("div", { className: `${
|
|
4931
|
+
children: d ? /* @__PURE__ */ t("div", { className: `${h ? "text-white" : "text-gray-400"}`, children: k }) : h ? /* @__PURE__ */ t("svg", { width: "24", height: "25", viewBox: "0 0 24 25", className: `${h ? "fill-white" : "fill-gray-400"}`, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ B("g", { id: "check_box", children: [
|
|
4926
4932
|
/* @__PURE__ */ t("mask", { id: "mask0_4855_19004", "mask-type": "alpha", maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "25", children: /* @__PURE__ */ t("rect", { id: "Bounding box", y: "0.5", width: "24", height: "24" }) }),
|
|
4927
4933
|
/* @__PURE__ */ t("g", { mask: "url(#mask0_4855_19004)", children: /* @__PURE__ */ t("path", { id: "Icon", d: `M10.6001 14.2465L8.27711 11.9232C8.13861 11.7849 7.96453 11.7141 7.75486
|
|
4928
4934
|
11.7107C7.54536 11.7076 7.36811 11.7784 7.22311 11.9232C7.07828 12.0682 7.00586 12.2439 7.00586
|
|
@@ -4944,9 +4950,9 @@ const l0 = ({
|
|
|
4944
4950
|
{
|
|
4945
4951
|
className: m(
|
|
4946
4952
|
"relative -z-10 -mx-[0.1em] flex-1 h-1 bg-gray-300",
|
|
4947
|
-
`${
|
|
4953
|
+
`${h && `bg-linear-to-r ${a} from-50%`}`
|
|
4948
4954
|
),
|
|
4949
|
-
children:
|
|
4955
|
+
children: k < s && k > s - 2 && /* @__PURE__ */ t("div", { className: "absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2", children: /* @__PURE__ */ t("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: [
|
|
4950
4956
|
/* @__PURE__ */ t("rect", { width: "22.48", height: "18" }),
|
|
4951
4957
|
/* @__PURE__ */ t("path", { id: "Polygon 1", className: r, d: `M13.452 9.79161C13.9706 9.39128 13.9706 8.60871 13.452
|
|
4952
4958
|
8.20839L9.61096 5.24354C8.95357 4.73611 7.99993 5.2047 7.99993 6.03514L7.99993
|
|
@@ -4960,7 +4966,7 @@ const l0 = ({
|
|
|
4960
4966
|
{
|
|
4961
4967
|
className: m(
|
|
4962
4968
|
"z-0 -mx-[0.1em] w-full h-2 bg-gray-300 rounded-full",
|
|
4963
|
-
|
|
4969
|
+
f
|
|
4964
4970
|
),
|
|
4965
4971
|
children: /* @__PURE__ */ t(
|
|
4966
4972
|
"div",
|
|
@@ -4969,7 +4975,7 @@ const l0 = ({
|
|
|
4969
4975
|
"z-10 -mx-[0.1em] h-2 bg-blue-300 rounded-full",
|
|
4970
4976
|
c
|
|
4971
4977
|
),
|
|
4972
|
-
style: { width:
|
|
4978
|
+
style: { width: D }
|
|
4973
4979
|
}
|
|
4974
4980
|
)
|
|
4975
4981
|
}
|
|
@@ -4997,13 +5003,13 @@ const ts = ({
|
|
|
4997
5003
|
inline: d = !1,
|
|
4998
5004
|
dataTestId: l,
|
|
4999
5005
|
selectedId: x = "",
|
|
5000
|
-
method:
|
|
5006
|
+
method: f
|
|
5001
5007
|
}) => {
|
|
5002
|
-
const [b,
|
|
5003
|
-
|
|
5008
|
+
const [b, D] = Y(x), N = (v, h) => {
|
|
5009
|
+
D(v), f && f(v, h);
|
|
5004
5010
|
};
|
|
5005
5011
|
return Z(() => {
|
|
5006
|
-
(b === void 0 || b === "") && x !== "" &&
|
|
5012
|
+
(b === void 0 || b === "") && x !== "" && D(x);
|
|
5007
5013
|
}, [b, x]), /* @__PURE__ */ B(
|
|
5008
5014
|
"fieldset",
|
|
5009
5015
|
{
|
|
@@ -5012,13 +5018,13 @@ const ts = ({
|
|
|
5012
5018
|
"data-testid": l,
|
|
5013
5019
|
children: [
|
|
5014
5020
|
e && /* @__PURE__ */ t("p", { className: "mb-2 w-full", children: e }),
|
|
5015
|
-
a.map(({ label: v, value:
|
|
5021
|
+
a.map(({ label: v, value: h, id: y, disabled: S }) => /* @__PURE__ */ B(
|
|
5016
5022
|
"label",
|
|
5017
5023
|
{
|
|
5018
5024
|
className: m(
|
|
5019
5025
|
"flex items-center gap-1 cursor-pointer",
|
|
5020
5026
|
d ? "mr-4 mb-1" : "mb-2",
|
|
5021
|
-
|
|
5027
|
+
S ? "opacity-50 cursor-not-allowed" : "",
|
|
5022
5028
|
s
|
|
5023
5029
|
),
|
|
5024
5030
|
children: [
|
|
@@ -5029,16 +5035,16 @@ const ts = ({
|
|
|
5029
5035
|
id: y,
|
|
5030
5036
|
className: m("hidden", r),
|
|
5031
5037
|
type: "radio",
|
|
5032
|
-
value:
|
|
5033
|
-
disabled:
|
|
5038
|
+
value: h,
|
|
5039
|
+
disabled: S,
|
|
5034
5040
|
checked: b === y,
|
|
5035
|
-
onChange: () =>
|
|
5041
|
+
onChange: () => N(y, h)
|
|
5036
5042
|
}
|
|
5037
5043
|
),
|
|
5038
5044
|
/* @__PURE__ */ t("span", { className: m("ml-1", n), children: v })
|
|
5039
5045
|
]
|
|
5040
5046
|
},
|
|
5041
|
-
|
|
5047
|
+
h
|
|
5042
5048
|
))
|
|
5043
5049
|
]
|
|
5044
5050
|
}
|
|
@@ -5055,17 +5061,17 @@ const ts = ({
|
|
|
5055
5061
|
searchableData: d,
|
|
5056
5062
|
setSearchResults: l,
|
|
5057
5063
|
mobileOnly: x = !1,
|
|
5058
|
-
variant:
|
|
5064
|
+
variant: f,
|
|
5059
5065
|
dataTestIdInput: b,
|
|
5060
|
-
dataTestIdResults:
|
|
5061
|
-
...
|
|
5062
|
-
},
|
|
5063
|
-
const v = Q(null),
|
|
5066
|
+
dataTestIdResults: D,
|
|
5067
|
+
...N
|
|
5068
|
+
}, k) => {
|
|
5069
|
+
const v = Q(null), h = Q(null), [y, S] = Y(""), [L, w] = Y(), [M, V] = Y(i), [I, _] = Y(!1), A = 100, E = 8, [O, j] = Y(`${A}px`);
|
|
5064
5070
|
f2(() => {
|
|
5065
5071
|
let z = 0;
|
|
5066
5072
|
const $ = () => {
|
|
5067
|
-
if (!
|
|
5068
|
-
const F =
|
|
5073
|
+
if (!h.current) return;
|
|
5074
|
+
const F = h.current.getBoundingClientRect(), U = window.visualViewport, P = U?.height ?? window.innerHeight, q = U?.offsetTop ?? 0, te = Math.max(
|
|
5069
5075
|
A,
|
|
5070
5076
|
P + q - F.top - E
|
|
5071
5077
|
);
|
|
@@ -5077,19 +5083,19 @@ const ts = ({
|
|
|
5077
5083
|
window.removeEventListener("scroll", H), window.removeEventListener("resize", H), window.visualViewport?.removeEventListener("resize", H), window.visualViewport?.removeEventListener("scroll", H), cancelAnimationFrame(z);
|
|
5078
5084
|
};
|
|
5079
5085
|
}, []), Z(() => {
|
|
5080
|
-
|
|
5081
|
-
}, [
|
|
5082
|
-
if (!
|
|
5086
|
+
f === "rounded" && _(!0);
|
|
5087
|
+
}, [f]), Z(() => {
|
|
5088
|
+
if (!h.current) return;
|
|
5083
5089
|
const z = requestAnimationFrame(() => {
|
|
5084
5090
|
const $ = new Event("resize");
|
|
5085
5091
|
window.dispatchEvent($);
|
|
5086
5092
|
});
|
|
5087
5093
|
return () => cancelAnimationFrame(z);
|
|
5088
|
-
}, [
|
|
5094
|
+
}, [L]);
|
|
5089
5095
|
const W = (z) => {
|
|
5090
|
-
z.key === "Enter" && (l ?
|
|
5091
|
-
},
|
|
5092
|
-
|
|
5096
|
+
z.key === "Enter" && (l ? g() : L && L.pages[0].path && (window.location.href = L.pages[0].path));
|
|
5097
|
+
}, C = () => {
|
|
5098
|
+
S(""), w(void 0);
|
|
5093
5099
|
};
|
|
5094
5100
|
Z(() => {
|
|
5095
5101
|
V(i);
|
|
@@ -5115,13 +5121,13 @@ const ts = ({
|
|
|
5115
5121
|
}
|
|
5116
5122
|
const p = (z) => {
|
|
5117
5123
|
const $ = z.target.value;
|
|
5118
|
-
if (
|
|
5124
|
+
if (S($), !$) {
|
|
5119
5125
|
w(void 0);
|
|
5120
5126
|
return;
|
|
5121
5127
|
}
|
|
5122
5128
|
const H = o($);
|
|
5123
5129
|
w(H);
|
|
5124
|
-
},
|
|
5130
|
+
}, g = () => {
|
|
5125
5131
|
const z = v.current?.value ?? "";
|
|
5126
5132
|
if (l)
|
|
5127
5133
|
if (z.length > 0) {
|
|
@@ -5132,7 +5138,7 @@ const ts = ({
|
|
|
5132
5138
|
}, u = () => {
|
|
5133
5139
|
a && a(), V(!1);
|
|
5134
5140
|
};
|
|
5135
|
-
return
|
|
5141
|
+
return M ? (
|
|
5136
5142
|
// Display solo search icon button to expand search component
|
|
5137
5143
|
/* @__PURE__ */ t("span", { className: `w-[52px] h-[50px] p-2 rounded-sm border border-[#6a686b]
|
|
5138
5144
|
inline-flex flex-col justify-center items-center bg-white`, children: /* @__PURE__ */ t(
|
|
@@ -5147,7 +5153,7 @@ const ts = ({
|
|
|
5147
5153
|
) : (
|
|
5148
5154
|
// Container including input + output list box
|
|
5149
5155
|
/* @__PURE__ */ B("span", { className: m(`h-12 md:h-[50px] lg:h-14 flex items-center max-w-full
|
|
5150
|
-
relative ${
|
|
5156
|
+
relative ${M && "hidden"}`, s), children: [
|
|
5151
5157
|
/* @__PURE__ */ B(
|
|
5152
5158
|
"span",
|
|
5153
5159
|
{
|
|
@@ -5155,7 +5161,7 @@ const ts = ({
|
|
|
5155
5161
|
`
|
|
5156
5162
|
border-[#6a686b] w-[309px] md:w-[334px] lg:w-[350px]
|
|
5157
5163
|
inline-flex bg-white lg:bg-transparent items-center pe-2
|
|
5158
|
-
${
|
|
5164
|
+
${L ? I ? (
|
|
5159
5165
|
// ROUNDED & RESULTS → round top fully, no bottom rounding, 25-px is 1/2 of initial component height
|
|
5160
5166
|
`border-t border-l border-r rounded-tl-[25px] rounded-tr-[25px] lg:border-none
|
|
5161
5167
|
lg:rounded-bl-none
|
|
@@ -5174,7 +5180,7 @@ const ts = ({
|
|
|
5174
5180
|
n
|
|
5175
5181
|
),
|
|
5176
5182
|
children: [
|
|
5177
|
-
/* @__PURE__ */ t("button", { onClick:
|
|
5183
|
+
/* @__PURE__ */ t("button", { onClick: g, className: "shrink-0 border-r-2", "aria-label": "execute search", children: /* @__PURE__ */ t("div", { className: "lg:hidden rounded-tl px-2 rounded-bl", children: /* @__PURE__ */ t("img", { className: "", src: d2, alt: "search icon" }) }) }),
|
|
5178
5184
|
/* @__PURE__ */ t(
|
|
5179
5185
|
"input",
|
|
5180
5186
|
{
|
|
@@ -5185,7 +5191,7 @@ const ts = ({
|
|
|
5185
5191
|
outline-hidden my-2 -ms-2 w-[100%]`,
|
|
5186
5192
|
e,
|
|
5187
5193
|
I && "rounded-l-full",
|
|
5188
|
-
I &&
|
|
5194
|
+
I && L ? "lg:rounded-bl-none lg:rounded-tl-[28px]" : ""
|
|
5189
5195
|
),
|
|
5190
5196
|
"aria-label": c,
|
|
5191
5197
|
"data-testid": b,
|
|
@@ -5194,30 +5200,30 @@ const ts = ({
|
|
|
5194
5200
|
placeholder: "Search result",
|
|
5195
5201
|
onKeyDown: (z) => W(z),
|
|
5196
5202
|
ref: (z) => {
|
|
5197
|
-
typeof
|
|
5203
|
+
typeof k == "function" ? k(z) : k && (k.current = z), v.current = z;
|
|
5198
5204
|
},
|
|
5199
|
-
...
|
|
5205
|
+
...N
|
|
5200
5206
|
}
|
|
5201
5207
|
),
|
|
5202
5208
|
/* @__PURE__ */ t("span", { className: m(`hidden lg:flex items-center size-14 p-[17px] bg-[#07192d]
|
|
5203
|
-
rounded-tr rounded-br `, I && "rounded-r-full"), children: /* @__PURE__ */ t("button", { className: "appearance-none p-0 m-0 border-0 flex items-center justify-center align-middle", onClick:
|
|
5209
|
+
rounded-tr rounded-br `, I && "rounded-r-full"), children: /* @__PURE__ */ t("button", { className: "appearance-none p-0 m-0 border-0 flex items-center justify-center align-middle", onClick: g, "aria-label": "execute search", children: /* @__PURE__ */ t("img", { className: "", src: d0, alt: "search icon" }) }) }),
|
|
5204
5210
|
/* @__PURE__ */ t("span", { className: "lg:hidden items-center py-2 -ms-2 -ps-1 me-1 shrink-0", children: /* @__PURE__ */ t(
|
|
5205
5211
|
"button",
|
|
5206
5212
|
{
|
|
5207
5213
|
className: "appearance-none p-0 m-0 border-0 flex items-center justify-center align-middle",
|
|
5208
5214
|
"aria-label": "clear search",
|
|
5209
|
-
onClick: () =>
|
|
5215
|
+
onClick: () => C(),
|
|
5210
5216
|
children: /* @__PURE__ */ t("img", { className: "", src: u0, alt: "search icon" })
|
|
5211
5217
|
}
|
|
5212
5218
|
) })
|
|
5213
5219
|
]
|
|
5214
5220
|
}
|
|
5215
5221
|
),
|
|
5216
|
-
|
|
5222
|
+
L && !l && /* @__PURE__ */ B(
|
|
5217
5223
|
"div",
|
|
5218
5224
|
{
|
|
5219
5225
|
role: "listbox",
|
|
5220
|
-
ref:
|
|
5226
|
+
ref: h,
|
|
5221
5227
|
"aria-label": "Select option",
|
|
5222
5228
|
className: m(
|
|
5223
5229
|
`absolute
|
|
@@ -5231,17 +5237,17 @@ const ts = ({
|
|
|
5231
5237
|
r
|
|
5232
5238
|
),
|
|
5233
5239
|
style: { maxHeight: O },
|
|
5234
|
-
"data-testid":
|
|
5240
|
+
"data-testid": D,
|
|
5235
5241
|
children: [
|
|
5236
5242
|
/* @__PURE__ */ t("hr", { className: "mb-1 -mt-1 mx-2 border-b-0 border-[#A1A6A8] lg:border-none" }),
|
|
5237
|
-
|
|
5243
|
+
L.pages.map((z, $) => /* @__PURE__ */ B("div", { className: "ms-4", children: [
|
|
5238
5244
|
/* @__PURE__ */ t("div", { className: "font-bold text-sm", children: /* @__PURE__ */ t("a", { role: "option", href: z.path, className: "text-blue-700 underline", children: z.title && z.title }) }),
|
|
5239
5245
|
z.results.map((H, F) => /* @__PURE__ */ B("div", { className: "ms-4", children: [
|
|
5240
|
-
/* @__PURE__ */ t("span", { className: "text-[#1c1d1f]", children:
|
|
5246
|
+
/* @__PURE__ */ t("span", { className: "text-[#1c1d1f]", children: L.input }),
|
|
5241
5247
|
/* @__PURE__ */ t("span", { className: "text-[#A1A6A8] lg:text-[#4E4E4E]", children: H.characters })
|
|
5242
5248
|
] }))
|
|
5243
5249
|
] }, $)),
|
|
5244
|
-
|
|
5250
|
+
L?.pages?.length < 1 && /* @__PURE__ */ t("div", { className: "ms-4 mb-1 text-[#1c1d1f]", children: "no search results" })
|
|
5245
5251
|
]
|
|
5246
5252
|
}
|
|
5247
5253
|
)
|
|
@@ -5262,22 +5268,22 @@ const g0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
5262
5268
|
fill: d = !1,
|
|
5263
5269
|
type: l = "page",
|
|
5264
5270
|
padLeft: x = !0,
|
|
5265
|
-
padRight:
|
|
5271
|
+
padRight: f = !0,
|
|
5266
5272
|
button: b,
|
|
5267
|
-
buttonOnClick:
|
|
5268
|
-
buttonContent:
|
|
5269
|
-
dataTestId:
|
|
5273
|
+
buttonOnClick: D,
|
|
5274
|
+
buttonContent: N = "Click Me",
|
|
5275
|
+
dataTestId: k,
|
|
5270
5276
|
children: v,
|
|
5271
|
-
...
|
|
5277
|
+
...h
|
|
5272
5278
|
}, y) => {
|
|
5273
|
-
const [
|
|
5279
|
+
const [S, L] = Y(""), [w, M] = Y(""), [V, I] = Y(""), _ = `${l === "page" ? "pt-4 pb-2" : "py-2"} flex pl-6 pr-2 justify-start items-center gap-4 inline-flex w-full`;
|
|
5274
5280
|
return Z(() => {
|
|
5275
|
-
|
|
5276
|
-
}, [e, i, d, _, x,
|
|
5277
|
-
|
|
5281
|
+
L(m(_, i ? "border-b-2 border-[#07192D]" : "", d ? "bg-[#092068] text-[#f0f0f0]" : "bg-transparent text-[#07192d]", x && f ? "mx-4 " : x ? "ms-4" : f ? "me-4" : "", e));
|
|
5282
|
+
}, [e, i, d, _, x, f]), Z(() => {
|
|
5283
|
+
M(m(`self-stretch ${l === "page" ? "text-[40px]" : l === "section" ? " text-[32px]" : "text-2xl"} font-normal font-["Arial"] leading-[48px]`, s));
|
|
5278
5284
|
}, [s, l]), Z(() => {
|
|
5279
5285
|
I(m(`${l === "page" ? "text-xl" : "text-lg"} font-normal font-["Arial"] leading-[30px]`, n));
|
|
5280
|
-
}, [n, l]), /* @__PURE__ */ t("div", { className: m(
|
|
5286
|
+
}, [n, l]), /* @__PURE__ */ t("div", { className: m(S, e), "data-testid": k, children: /* @__PURE__ */ B("div", { className: "grow shrink basis-0 justify-start items-center gap-4 flex flex-row", children: [
|
|
5281
5287
|
r && r,
|
|
5282
5288
|
/* @__PURE__ */ B("div", { className: "flex-col justify-start items-start inline-flex w-full", children: [
|
|
5283
5289
|
/* @__PURE__ */ t(
|
|
@@ -5305,8 +5311,8 @@ const g0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
5305
5311
|
${l === "page" ? "text-base" : "text-sm"} }`,
|
|
5306
5312
|
icon: /* @__PURE__ */ t("img", { src: d ? f0 : g0, alt: "right chevron" }),
|
|
5307
5313
|
iconPosition: "right",
|
|
5308
|
-
onClick:
|
|
5309
|
-
children:
|
|
5314
|
+
onClick: D,
|
|
5315
|
+
children: N
|
|
5310
5316
|
}
|
|
5311
5317
|
)
|
|
5312
5318
|
] }) });
|
|
@@ -5435,23 +5441,23 @@ const g0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
5435
5441
|
children: d,
|
|
5436
5442
|
dataTestId: l,
|
|
5437
5443
|
...x
|
|
5438
|
-
},
|
|
5439
|
-
const [b,
|
|
5440
|
-
|
|
5444
|
+
}, f) => {
|
|
5445
|
+
const [b, D] = Y(), [N, k] = Y(), [v, h] = Y(p0), y = () => {
|
|
5446
|
+
D(m(b, "hidden"));
|
|
5441
5447
|
};
|
|
5442
5448
|
return Z(() => {
|
|
5443
|
-
const
|
|
5444
|
-
(w) => w.variant === e && w.subVariant ===
|
|
5449
|
+
const S = s === "custom" ? "default" : s, L = u2.find(
|
|
5450
|
+
(w) => w.variant === e && w.subVariant === S
|
|
5445
5451
|
)?.classes;
|
|
5446
5452
|
if (e === "icon") {
|
|
5447
5453
|
const w = u2.find(
|
|
5448
|
-
(
|
|
5454
|
+
(M) => M.variant === e && M.subVariant === S
|
|
5449
5455
|
)?.classNameSvg;
|
|
5450
|
-
|
|
5456
|
+
k(s === "custom" ? m(w, r) : w);
|
|
5451
5457
|
}
|
|
5452
|
-
e === "hazard" ?
|
|
5458
|
+
e === "hazard" ? h(b0) : e === "go" && h(h0), D(m(L, n));
|
|
5453
5459
|
}, [s, n, e, r]), /* @__PURE__ */ B(ae, { children: [
|
|
5454
|
-
e === "default" && /* @__PURE__ */ t("div", { className: b, ...x, "data-testid": l, ref:
|
|
5460
|
+
e === "default" && /* @__PURE__ */ t("div", { className: b, ...x, "data-testid": l, ref: f, children: d }),
|
|
5455
5461
|
(e === "warning" || e === "hazard" || e === "go") && /* @__PURE__ */ B("div", { className: b, "data-testid": l, children: [
|
|
5456
5462
|
/* @__PURE__ */ t("div", { className: "size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative", children: /* @__PURE__ */ t("div", { className: "left-0 top-0 absolute", children: /* @__PURE__ */ t("img", { className: "size-6", src: v, alt: `${e} icon` }) }) }),
|
|
5457
5463
|
/* @__PURE__ */ t("div", { className: "grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]", children: d }),
|
|
@@ -5465,11 +5471,11 @@ const g0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
5465
5471
|
}
|
|
5466
5472
|
)
|
|
5467
5473
|
] }),
|
|
5468
|
-
e === "icon" && /* @__PURE__ */ B("div", { className: b, ...x, "data-testid": l, ref:
|
|
5469
|
-
/* @__PURE__ */ t("svg", { viewBox: "0 0 6 6", "aria-hidden": "true", className:
|
|
5474
|
+
e === "icon" && /* @__PURE__ */ B("div", { className: b, ...x, "data-testid": l, ref: f, children: [
|
|
5475
|
+
/* @__PURE__ */ t("svg", { viewBox: "0 0 6 6", "aria-hidden": "true", className: N, role: "img", children: /* @__PURE__ */ t("circle", { r: 3, cx: 3, cy: 3 }) }),
|
|
5470
5476
|
d
|
|
5471
5477
|
] }),
|
|
5472
|
-
e === "media" && /* @__PURE__ */ B("div", { className: b, ...x, "data-testid": l, ref:
|
|
5478
|
+
e === "media" && /* @__PURE__ */ B("div", { className: b, ...x, "data-testid": l, ref: f, children: [
|
|
5473
5479
|
/* @__PURE__ */ t("div", { className: "col-start-1 col-span-2", children: /* @__PURE__ */ t("img", { className: m("h-full", a), src: c, alt: i }) }),
|
|
5474
5480
|
/* @__PURE__ */ t("div", { className: "w-full ml-2 col-start-3 col-span-3", children: d })
|
|
5475
5481
|
] })
|
|
@@ -5487,34 +5493,34 @@ function ns({
|
|
|
5487
5493
|
classNameBackContainer: d,
|
|
5488
5494
|
classNameBackIcon: l,
|
|
5489
5495
|
classNameBackText: x,
|
|
5490
|
-
classNameContainer:
|
|
5496
|
+
classNameContainer: f = "",
|
|
5491
5497
|
classNameMenu: b = "",
|
|
5492
|
-
classNameMenuItem:
|
|
5493
|
-
classNameBackButton:
|
|
5494
|
-
classNameMenuContainer:
|
|
5498
|
+
classNameMenuItem: D = "",
|
|
5499
|
+
classNameBackButton: N,
|
|
5500
|
+
classNameMenuContainer: k = "",
|
|
5495
5501
|
classNameImage: v = "",
|
|
5496
|
-
classNameImageContainer:
|
|
5502
|
+
classNameImageContainer: h = "",
|
|
5497
5503
|
version: y,
|
|
5498
|
-
menuItems:
|
|
5499
|
-
right:
|
|
5504
|
+
menuItems: S,
|
|
5505
|
+
right: L = !1,
|
|
5500
5506
|
dataTestId: w,
|
|
5501
|
-
dataTestIdHamburger:
|
|
5507
|
+
dataTestIdHamburger: M = "hamburgerMenu",
|
|
5502
5508
|
children: V
|
|
5503
5509
|
}) {
|
|
5504
5510
|
const I = Q(null), [_, A] = Y(!1), [E, O] = Y(!1), j = Q(null);
|
|
5505
5511
|
Z(() => {
|
|
5506
|
-
const
|
|
5507
|
-
_ ?
|
|
5512
|
+
const g = () => {
|
|
5513
|
+
_ ? C() : W();
|
|
5508
5514
|
};
|
|
5509
|
-
return window.addEventListener("toggleSideBarNav",
|
|
5515
|
+
return window.addEventListener("toggleSideBarNav", g), () => window.removeEventListener("toggleSideBarNav", g);
|
|
5510
5516
|
}, [_]), Z(() => {
|
|
5511
|
-
const
|
|
5512
|
-
|
|
5517
|
+
const g = I.current;
|
|
5518
|
+
g && (_ && !g.open ? (j.current = document.activeElement, g.showModal(), (g.querySelector("#sideBarNavBackButton") ?? g).focus()) : !_ && g.open && (g.close(), j.current?.focus?.()));
|
|
5513
5519
|
}, [_]), Z(() => {
|
|
5514
5520
|
if (_) {
|
|
5515
|
-
const
|
|
5521
|
+
const g = document.body.style.overflow;
|
|
5516
5522
|
return document.body.style.overflow = "hidden", () => {
|
|
5517
|
-
document.body.style.overflow =
|
|
5523
|
+
document.body.style.overflow = g;
|
|
5518
5524
|
};
|
|
5519
5525
|
}
|
|
5520
5526
|
}, [_]);
|
|
@@ -5522,20 +5528,20 @@ function ns({
|
|
|
5522
5528
|
A(!0), setTimeout(() => {
|
|
5523
5529
|
O(!0);
|
|
5524
5530
|
}, 10);
|
|
5525
|
-
},
|
|
5531
|
+
}, C = () => {
|
|
5526
5532
|
O(!1), setTimeout(() => {
|
|
5527
5533
|
A(!1);
|
|
5528
5534
|
}, v0);
|
|
5529
|
-
}, o = (
|
|
5530
|
-
c &&
|
|
5531
|
-
}, p = m(w0,
|
|
5535
|
+
}, o = (g) => {
|
|
5536
|
+
c && g.target === g.currentTarget && C();
|
|
5537
|
+
}, p = m(w0, L ? "text-right pe-2" : "", D);
|
|
5532
5538
|
return /* @__PURE__ */ B(ae, { children: [
|
|
5533
5539
|
!i && /* @__PURE__ */ t(
|
|
5534
5540
|
"button",
|
|
5535
5541
|
{
|
|
5536
5542
|
"aria-label": "navigation",
|
|
5537
|
-
"data-testid":
|
|
5538
|
-
className: m("size-8 mb-4",
|
|
5543
|
+
"data-testid": M,
|
|
5544
|
+
className: m("size-8 mb-4", k),
|
|
5539
5545
|
onClick: W,
|
|
5540
5546
|
children: /* @__PURE__ */ t(C0, { classes: m("fill-slate-500 hover:fill-black size-8", b) })
|
|
5541
5547
|
}
|
|
@@ -5565,7 +5571,7 @@ function ns({
|
|
|
5565
5571
|
"transition-transform duration-200 ease-in-out",
|
|
5566
5572
|
// --- MODIFIED: Animation is now controlled by 'isShowing' state ---
|
|
5567
5573
|
E ? "translate-x-0" : "translate-x-full",
|
|
5568
|
-
|
|
5574
|
+
f
|
|
5569
5575
|
),
|
|
5570
5576
|
children: [
|
|
5571
5577
|
/* @__PURE__ */ t("h2", { id: "sidebar-title", className: "sr-only", children: "Navigation" }),
|
|
@@ -5574,8 +5580,8 @@ function ns({
|
|
|
5574
5580
|
{
|
|
5575
5581
|
autoFocus: !0,
|
|
5576
5582
|
id: "sideBarNavBackButton",
|
|
5577
|
-
className: m("-mt-8 w-full relative hover:cursor-pointer",
|
|
5578
|
-
onClick:
|
|
5583
|
+
className: m("-mt-8 w-full relative hover:cursor-pointer", N),
|
|
5584
|
+
onClick: C,
|
|
5579
5585
|
"aria-label": "Close menu",
|
|
5580
5586
|
children: /* @__PURE__ */ B("div", { className: m("absolute top-0 right-2", d), children: [
|
|
5581
5587
|
s ? /* @__PURE__ */ t(y0, { className: m("w-10", l) }) : /* @__PURE__ */ t(k0, { className: m("w-10", l) }),
|
|
@@ -5583,7 +5589,7 @@ function ns({
|
|
|
5583
5589
|
] })
|
|
5584
5590
|
}
|
|
5585
5591
|
),
|
|
5586
|
-
/* @__PURE__ */ t("div", { className: m("w-16 h-16 mx-auto",
|
|
5592
|
+
/* @__PURE__ */ t("div", { className: m("w-16 h-16 mx-auto", h), children: /* @__PURE__ */ t(
|
|
5587
5593
|
"img",
|
|
5588
5594
|
{
|
|
5589
5595
|
src: r,
|
|
@@ -5594,10 +5600,10 @@ function ns({
|
|
|
5594
5600
|
/* @__PURE__ */ t("div", { className: "text-center text-xl mt-2", children: e }),
|
|
5595
5601
|
/* @__PURE__ */ t("div", { className: "[204px] mt-3 h-[2px] border-[0.5px] border-[#D9D9D9] bg-[#D9D9D9]" }),
|
|
5596
5602
|
V && V,
|
|
5597
|
-
/* @__PURE__ */ t(l0, { className: "pl-4 lg:pl-6 mt-6", children:
|
|
5603
|
+
/* @__PURE__ */ t(l0, { className: "pl-4 lg:pl-6 mt-6", children: S.map((g, u) => /* @__PURE__ */ t(S2, { className: p, children: g.target ? (
|
|
5598
5604
|
// --- MODIFIED: Use the new handler ---
|
|
5599
|
-
/* @__PURE__ */ t(I2, { to:
|
|
5600
|
-
) :
|
|
5605
|
+
/* @__PURE__ */ t(I2, { to: g.target, onClick: C, children: g.children })
|
|
5606
|
+
) : g.children }, u)) }),
|
|
5601
5607
|
/* @__PURE__ */ B("div", { className: "align-bottom mt-auto text-right right-2 bottom-1", children: [
|
|
5602
5608
|
"Version ",
|
|
5603
5609
|
y
|
|
@@ -5799,14 +5805,14 @@ const _0 = "_slider_87un4_28", $0 = {
|
|
|
5799
5805
|
id: d,
|
|
5800
5806
|
label: l,
|
|
5801
5807
|
...x
|
|
5802
|
-
},
|
|
5803
|
-
const [b,
|
|
5804
|
-
g2(
|
|
5805
|
-
|
|
5808
|
+
}, f) => {
|
|
5809
|
+
const [b, D] = Y(i), N = Q(null);
|
|
5810
|
+
g2(f, () => N.current), Z(() => {
|
|
5811
|
+
D(i);
|
|
5806
5812
|
}, []);
|
|
5807
|
-
const
|
|
5808
|
-
const
|
|
5809
|
-
|
|
5813
|
+
const k = (v) => {
|
|
5814
|
+
const h = Number(v.target.value);
|
|
5815
|
+
D(Number(h)), a && a(h);
|
|
5810
5816
|
};
|
|
5811
5817
|
return /* @__PURE__ */ B(ae, { children: [
|
|
5812
5818
|
d && l && /* @__PURE__ */ t(
|
|
@@ -5821,13 +5827,13 @@ const _0 = "_slider_87un4_28", $0 = {
|
|
|
5821
5827
|
/* @__PURE__ */ t(
|
|
5822
5828
|
"input",
|
|
5823
5829
|
{
|
|
5824
|
-
ref:
|
|
5830
|
+
ref: N,
|
|
5825
5831
|
type: "range",
|
|
5826
5832
|
id: d,
|
|
5827
5833
|
"data-testid": c,
|
|
5828
5834
|
className: m($0.slider, e),
|
|
5829
5835
|
value: b,
|
|
5830
|
-
onChange:
|
|
5836
|
+
onChange: k,
|
|
5831
5837
|
...x
|
|
5832
5838
|
}
|
|
5833
5839
|
)
|
|
@@ -5866,20 +5872,20 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5866
5872
|
children: d,
|
|
5867
5873
|
...l
|
|
5868
5874
|
}, x) => {
|
|
5869
|
-
const [
|
|
5875
|
+
const [f, b] = Y(), [D, N] = Y(), [k, v] = Y();
|
|
5870
5876
|
return Z(() => {
|
|
5871
5877
|
b(m(
|
|
5872
|
-
Ue.find((
|
|
5878
|
+
Ue.find((h) => h.variant === e)?.classes,
|
|
5873
5879
|
s
|
|
5874
5880
|
)), v(m(
|
|
5875
|
-
Ue.find((
|
|
5881
|
+
Ue.find((h) => h.variant === e)?.childClasses,
|
|
5876
5882
|
i
|
|
5877
|
-
)),
|
|
5878
|
-
Ue.find((
|
|
5883
|
+
)), N(m(
|
|
5884
|
+
Ue.find((h) => h.variant === e)?.imgDivClasses,
|
|
5879
5885
|
a
|
|
5880
5886
|
));
|
|
5881
|
-
}, [e, s, i, a]), /* @__PURE__ */ B("div", { className:
|
|
5882
|
-
/* @__PURE__ */ t("div", { className:
|
|
5887
|
+
}, [e, s, i, a]), /* @__PURE__ */ B("div", { className: f, ref: x, "data-testid": c, children: [
|
|
5888
|
+
/* @__PURE__ */ t("div", { className: D, children: n || // if we have an image prop - display
|
|
5883
5889
|
(e === "available" ? (
|
|
5884
5890
|
// else if we are variant 'available' ...
|
|
5885
5891
|
/* @__PURE__ */ t("img", { src: z0, alt: "check mark" })
|
|
@@ -5887,7 +5893,7 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5887
5893
|
// else we are variant 'inProgress' ...
|
|
5888
5894
|
/* @__PURE__ */ t("img", { src: H0, alt: "close" })
|
|
5889
5895
|
)) }),
|
|
5890
|
-
/* @__PURE__ */ t("div", { className:
|
|
5896
|
+
/* @__PURE__ */ t("div", { className: k, "data-testid": r, children: d })
|
|
5891
5897
|
] });
|
|
5892
5898
|
}
|
|
5893
5899
|
), ds = ({
|
|
@@ -5902,9 +5908,9 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5902
5908
|
...l
|
|
5903
5909
|
// ← props spreader here
|
|
5904
5910
|
}) => {
|
|
5905
|
-
const [x,
|
|
5906
|
-
const
|
|
5907
|
-
|
|
5911
|
+
const [x, f] = Y(a), b = (D) => {
|
|
5912
|
+
const N = D.target.value;
|
|
5913
|
+
f(N), d?.(N);
|
|
5908
5914
|
};
|
|
5909
5915
|
return /* @__PURE__ */ B("div", { className: "relative w-full", children: [
|
|
5910
5916
|
e && /* @__PURE__ */ t("label", { className: m("block mb-1 text-sm font-medium text-gray-700", n), children: e }),
|
|
@@ -5968,27 +5974,27 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5968
5974
|
variant: d = "default",
|
|
5969
5975
|
type: l = "button",
|
|
5970
5976
|
children: x,
|
|
5971
|
-
...
|
|
5977
|
+
...f
|
|
5972
5978
|
}, b) => {
|
|
5973
|
-
const [
|
|
5979
|
+
const [D, N] = Y(e);
|
|
5974
5980
|
return /* @__PURE__ */ t(
|
|
5975
5981
|
"button",
|
|
5976
5982
|
{
|
|
5977
5983
|
onClick: () => {
|
|
5978
|
-
const v = !
|
|
5979
|
-
|
|
5984
|
+
const v = !D;
|
|
5985
|
+
N(v), n && n(v);
|
|
5980
5986
|
},
|
|
5981
5987
|
disabled: s,
|
|
5982
5988
|
role: "switch",
|
|
5983
|
-
"aria-checked":
|
|
5989
|
+
"aria-checked": D,
|
|
5984
5990
|
"aria-disabled": s,
|
|
5985
5991
|
"data-testid": c,
|
|
5986
|
-
...
|
|
5992
|
+
...f,
|
|
5987
5993
|
ref: b,
|
|
5988
|
-
"aria-label": r || `Toggle ${
|
|
5994
|
+
"aria-label": r || `Toggle ${D ? "on" : "off"}`,
|
|
5989
5995
|
className: m(
|
|
5990
5996
|
`${B0}
|
|
5991
|
-
${
|
|
5997
|
+
${D ? Me.find((v) => v.variant === d)?.toggledClasses : Me.find((v) => v.variant === d)?.classes}`,
|
|
5992
5998
|
i
|
|
5993
5999
|
),
|
|
5994
6000
|
children: /* @__PURE__ */ t(
|
|
@@ -5996,7 +6002,7 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5996
6002
|
{
|
|
5997
6003
|
className: m(
|
|
5998
6004
|
`${I0}
|
|
5999
|
-
${
|
|
6005
|
+
${D ? Me.find((v) => v.variant === d)?.toggledButtonClasses : Me.find((v) => v.variant === d)?.buttonClasses}`,
|
|
6000
6006
|
a
|
|
6001
6007
|
)
|
|
6002
6008
|
}
|
|
@@ -6015,14 +6021,14 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
6015
6021
|
}, a) => {
|
|
6016
6022
|
const [d, l] = Y(!1);
|
|
6017
6023
|
let x;
|
|
6018
|
-
const
|
|
6024
|
+
const f = $e(() => {
|
|
6019
6025
|
x = setTimeout(() => l(!0), s);
|
|
6020
6026
|
}, [s]), b = $e(() => {
|
|
6021
6027
|
clearTimeout(x), l(!1);
|
|
6022
|
-
}, []),
|
|
6028
|
+
}, []), D = We.toArray(e), N = D.find((v) => {
|
|
6023
6029
|
if (xe(v))
|
|
6024
6030
|
return v.type.displayName !== "TooltipContent";
|
|
6025
|
-
}),
|
|
6031
|
+
}), k = D.find((v) => {
|
|
6026
6032
|
if (xe(v))
|
|
6027
6033
|
return v.type.displayName === "TooltipContent";
|
|
6028
6034
|
});
|
|
@@ -6031,16 +6037,16 @@ const V0 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
6031
6037
|
{
|
|
6032
6038
|
ref: a,
|
|
6033
6039
|
className: m("relative inline-block", n),
|
|
6034
|
-
onMouseEnter:
|
|
6040
|
+
onMouseEnter: f,
|
|
6035
6041
|
onMouseLeave: b,
|
|
6036
6042
|
"data-testid": c,
|
|
6037
6043
|
"aria-describedby": r,
|
|
6038
|
-
onFocus:
|
|
6044
|
+
onFocus: f,
|
|
6039
6045
|
onBlur: b,
|
|
6040
6046
|
...i,
|
|
6041
6047
|
children: [
|
|
6042
|
-
|
|
6043
|
-
d &&
|
|
6048
|
+
N,
|
|
6049
|
+
d && k
|
|
6044
6050
|
]
|
|
6045
6051
|
}
|
|
6046
6052
|
) });
|