@dhasdk/simple-ui 1.0.11 → 1.0.13
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 +21 -4
- package/index.css +1 -1
- package/index.d.ts +3 -2
- package/index.js +16 -16
- package/index.mjs +567 -560
- package/lib/Button.d.ts +6 -1
- package/package.json +3 -3
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as L, jsx as s, Fragment as oe } from "react/jsx-runtime";
|
|
2
2
|
import * as ne from "react";
|
|
3
|
-
import r2, { forwardRef as ee, useState as
|
|
3
|
+
import r2, { forwardRef as ee, useState as H, useEffect as Z, Children as Ue, isValidElement as be, cloneElement as _e, useRef as X, useMemo as Oe, useImperativeHandle as n2, useCallback as Me, createContext as C2, useContext as y2 } from "react";
|
|
4
4
|
import { useLocation as k2, Link as $e, NavLink as N2 } from "react-router-dom";
|
|
5
5
|
const Re = "-", M2 = (e) => {
|
|
6
6
|
const t = $2(e), {
|
|
@@ -109,25 +109,25 @@ const Re = "-", M2 = (e) => {
|
|
|
109
109
|
let r = (a) => {
|
|
110
110
|
const l = [];
|
|
111
111
|
let o = 0, c = 0, i = 0, m;
|
|
112
|
-
for (let
|
|
113
|
-
let
|
|
112
|
+
for (let h = 0; h < a.length; h++) {
|
|
113
|
+
let _ = a[h];
|
|
114
114
|
if (o === 0 && c === 0) {
|
|
115
|
-
if (
|
|
116
|
-
l.push(a.slice(i,
|
|
115
|
+
if (_ === je) {
|
|
116
|
+
l.push(a.slice(i, h)), i = h + S2;
|
|
117
117
|
continue;
|
|
118
118
|
}
|
|
119
|
-
if (
|
|
120
|
-
m =
|
|
119
|
+
if (_ === "/") {
|
|
120
|
+
m = h;
|
|
121
121
|
continue;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
_ === "[" ? o++ : _ === "]" ? o-- : _ === "(" ? c++ : _ === ")" && c--;
|
|
125
125
|
}
|
|
126
|
-
const b = l.length === 0 ? a : a.substring(i),
|
|
126
|
+
const b = l.length === 0 ? a : a.substring(i), x = z2(b), u = x !== b, C = m && m > i ? m - i : void 0;
|
|
127
127
|
return {
|
|
128
128
|
modifiers: l,
|
|
129
129
|
hasImportantModifier: u,
|
|
130
|
-
baseClassName:
|
|
130
|
+
baseClassName: x,
|
|
131
131
|
maybePostfixModifierPosition: C
|
|
132
132
|
};
|
|
133
133
|
};
|
|
@@ -175,36 +175,36 @@ const Re = "-", M2 = (e) => {
|
|
|
175
175
|
let i = "";
|
|
176
176
|
for (let m = c.length - 1; m >= 0; m -= 1) {
|
|
177
177
|
const b = c[m], {
|
|
178
|
-
isExternal:
|
|
178
|
+
isExternal: x,
|
|
179
179
|
modifiers: u,
|
|
180
180
|
hasImportantModifier: C,
|
|
181
|
-
baseClassName:
|
|
182
|
-
maybePostfixModifierPosition:
|
|
181
|
+
baseClassName: h,
|
|
182
|
+
maybePostfixModifierPosition: _
|
|
183
183
|
} = n(b);
|
|
184
|
-
if (
|
|
184
|
+
if (x) {
|
|
185
185
|
i = b + (i.length > 0 ? " " + i : i);
|
|
186
186
|
continue;
|
|
187
187
|
}
|
|
188
|
-
let $ = !!
|
|
188
|
+
let $ = !!_, y = r($ ? h.substring(0, _) : h);
|
|
189
189
|
if (!y) {
|
|
190
190
|
if (!$) {
|
|
191
191
|
i = b + (i.length > 0 ? " " + i : i);
|
|
192
192
|
continue;
|
|
193
193
|
}
|
|
194
|
-
if (y = r(
|
|
194
|
+
if (y = r(h), !y) {
|
|
195
195
|
i = b + (i.length > 0 ? " " + i : i);
|
|
196
196
|
continue;
|
|
197
197
|
}
|
|
198
198
|
$ = !1;
|
|
199
199
|
}
|
|
200
|
-
const g = l(u).join(":"),
|
|
201
|
-
if (o.includes(
|
|
200
|
+
const g = l(u).join(":"), M = C ? g + Te : g, A = M + y;
|
|
201
|
+
if (o.includes(A))
|
|
202
202
|
continue;
|
|
203
|
-
o.push(
|
|
204
|
-
const
|
|
205
|
-
for (let
|
|
206
|
-
const B =
|
|
207
|
-
o.push(
|
|
203
|
+
o.push(A);
|
|
204
|
+
const I = a(y, $);
|
|
205
|
+
for (let E = 0; E < I.length; ++E) {
|
|
206
|
+
const B = I[E];
|
|
207
|
+
o.push(M + B);
|
|
208
208
|
}
|
|
209
209
|
i = b + (i.length > 0 ? " " + i : i);
|
|
210
210
|
}
|
|
@@ -227,7 +227,7 @@ const a2 = (e) => {
|
|
|
227
227
|
function E2(e, ...t) {
|
|
228
228
|
let n, r, a, l = o;
|
|
229
229
|
function o(i) {
|
|
230
|
-
const m = t.reduce((b,
|
|
230
|
+
const m = t.reduce((b, x) => x(b), e());
|
|
231
231
|
return n = H2(m), r = n.cache.get, a = n.cache.set, l = c, c(i);
|
|
232
232
|
}
|
|
233
233
|
function c(i) {
|
|
@@ -256,7 +256,7 @@ const J = (e) => {
|
|
|
256
256
|
const r = i2.exec(e);
|
|
257
257
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
258
258
|
}, d2 = (e) => e === "position" || e === "percentage", m2 = (e) => e === "image" || e === "url", u2 = (e) => e === "length" || e === "size" || e === "bg-size", g2 = (e) => e === "length", t0 = (e) => e === "number", s0 = (e) => e === "family-name", f2 = (e) => e === "shadow", r0 = () => {
|
|
259
|
-
const e = J("color"), t = J("font"), n = J("text"), r = J("font-weight"), a = J("tracking"), l = J("leading"), o = J("breakpoint"), c = J("container"), i = J("spacing"), m = J("radius"), b = J("shadow"),
|
|
259
|
+
const e = J("color"), t = J("font"), n = J("text"), r = J("font-weight"), a = J("tracking"), l = J("leading"), o = J("breakpoint"), c = J("container"), i = J("spacing"), m = J("radius"), b = J("shadow"), x = J("inset-shadow"), u = J("text-shadow"), C = J("drop-shadow"), h = J("blur"), _ = J("perspective"), $ = J("aspect"), y = J("ease"), g = J("animate"), M = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
|
|
260
260
|
"center",
|
|
261
261
|
"top",
|
|
262
262
|
"bottom",
|
|
@@ -274,11 +274,11 @@ const J = (e) => {
|
|
|
274
274
|
"bottom-left",
|
|
275
275
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
276
276
|
"left-bottom"
|
|
277
|
-
],
|
|
277
|
+
], I = () => [...A(), V, S], E = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", "contain", "none"], k = () => [V, S, i], U = () => [ue, "full", "auto", ...k()], D = () => [ce, "none", "subgrid", V, S], p = () => ["auto", {
|
|
278
278
|
span: ["full", ce, V, S]
|
|
279
|
-
}, ce, V, S],
|
|
279
|
+
}, ce, V, S], O = () => [ce, "auto", V, S], F = () => ["auto", "min", "max", "fr", V, S], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], w = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], v = () => ["auto", ...k()], N = () => [ue, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], d = () => [e, V, S], T = () => [...A(), Pe, Ye, {
|
|
280
280
|
position: [V, S]
|
|
281
|
-
}],
|
|
281
|
+
}], j = () => ["no-repeat", {
|
|
282
282
|
repeat: ["", "x", "y", "space", "round"]
|
|
283
283
|
}], G = () => ["auto", "cover", "contain", Q2, q2, {
|
|
284
284
|
size: [V, S]
|
|
@@ -294,7 +294,7 @@ const J = (e) => {
|
|
|
294
294
|
// Deprecated since Tailwind CSS v4.0.0
|
|
295
295
|
"",
|
|
296
296
|
"none",
|
|
297
|
-
|
|
297
|
+
h,
|
|
298
298
|
V,
|
|
299
299
|
S
|
|
300
300
|
], te = () => ["none", R, V, S], q = () => ["none", R, V, S], se = () => [R, V, S], re = () => [ue, "full", ...k()];
|
|
@@ -350,14 +350,14 @@ const J = (e) => {
|
|
|
350
350
|
* @see https://tailwindcss.com/docs/break-after
|
|
351
351
|
*/
|
|
352
352
|
"break-after": [{
|
|
353
|
-
"break-after":
|
|
353
|
+
"break-after": M()
|
|
354
354
|
}],
|
|
355
355
|
/**
|
|
356
356
|
* Break Before
|
|
357
357
|
* @see https://tailwindcss.com/docs/break-before
|
|
358
358
|
*/
|
|
359
359
|
"break-before": [{
|
|
360
|
-
"break-before":
|
|
360
|
+
"break-before": M()
|
|
361
361
|
}],
|
|
362
362
|
/**
|
|
363
363
|
* Break Inside
|
|
@@ -421,28 +421,28 @@ const J = (e) => {
|
|
|
421
421
|
* @see https://tailwindcss.com/docs/object-position
|
|
422
422
|
*/
|
|
423
423
|
"object-position": [{
|
|
424
|
-
object:
|
|
424
|
+
object: I()
|
|
425
425
|
}],
|
|
426
426
|
/**
|
|
427
427
|
* Overflow
|
|
428
428
|
* @see https://tailwindcss.com/docs/overflow
|
|
429
429
|
*/
|
|
430
430
|
overflow: [{
|
|
431
|
-
overflow:
|
|
431
|
+
overflow: E()
|
|
432
432
|
}],
|
|
433
433
|
/**
|
|
434
434
|
* Overflow X
|
|
435
435
|
* @see https://tailwindcss.com/docs/overflow
|
|
436
436
|
*/
|
|
437
437
|
"overflow-x": [{
|
|
438
|
-
"overflow-x":
|
|
438
|
+
"overflow-x": E()
|
|
439
439
|
}],
|
|
440
440
|
/**
|
|
441
441
|
* Overflow Y
|
|
442
442
|
* @see https://tailwindcss.com/docs/overflow
|
|
443
443
|
*/
|
|
444
444
|
"overflow-y": [{
|
|
445
|
-
"overflow-y":
|
|
445
|
+
"overflow-y": E()
|
|
446
446
|
}],
|
|
447
447
|
/**
|
|
448
448
|
* Overscroll Behavior
|
|
@@ -609,21 +609,21 @@ const J = (e) => {
|
|
|
609
609
|
* @see https://tailwindcss.com/docs/grid-column
|
|
610
610
|
*/
|
|
611
611
|
"col-start-end": [{
|
|
612
|
-
col:
|
|
612
|
+
col: p()
|
|
613
613
|
}],
|
|
614
614
|
/**
|
|
615
615
|
* Grid Column Start
|
|
616
616
|
* @see https://tailwindcss.com/docs/grid-column
|
|
617
617
|
*/
|
|
618
618
|
"col-start": [{
|
|
619
|
-
"col-start":
|
|
619
|
+
"col-start": O()
|
|
620
620
|
}],
|
|
621
621
|
/**
|
|
622
622
|
* Grid Column End
|
|
623
623
|
* @see https://tailwindcss.com/docs/grid-column
|
|
624
624
|
*/
|
|
625
625
|
"col-end": [{
|
|
626
|
-
"col-end":
|
|
626
|
+
"col-end": O()
|
|
627
627
|
}],
|
|
628
628
|
/**
|
|
629
629
|
* Grid Template Rows
|
|
@@ -637,21 +637,21 @@ const J = (e) => {
|
|
|
637
637
|
* @see https://tailwindcss.com/docs/grid-row
|
|
638
638
|
*/
|
|
639
639
|
"row-start-end": [{
|
|
640
|
-
row:
|
|
640
|
+
row: p()
|
|
641
641
|
}],
|
|
642
642
|
/**
|
|
643
643
|
* Grid Row Start
|
|
644
644
|
* @see https://tailwindcss.com/docs/grid-row
|
|
645
645
|
*/
|
|
646
646
|
"row-start": [{
|
|
647
|
-
"row-start":
|
|
647
|
+
"row-start": O()
|
|
648
648
|
}],
|
|
649
649
|
/**
|
|
650
650
|
* Grid Row End
|
|
651
651
|
* @see https://tailwindcss.com/docs/grid-row
|
|
652
652
|
*/
|
|
653
653
|
"row-end": [{
|
|
654
|
-
"row-end":
|
|
654
|
+
"row-end": O()
|
|
655
655
|
}],
|
|
656
656
|
/**
|
|
657
657
|
* Grid Auto Flow
|
|
@@ -1249,14 +1249,14 @@ const J = (e) => {
|
|
|
1249
1249
|
* @see https://tailwindcss.com/docs/background-position
|
|
1250
1250
|
*/
|
|
1251
1251
|
"bg-position": [{
|
|
1252
|
-
bg:
|
|
1252
|
+
bg: T()
|
|
1253
1253
|
}],
|
|
1254
1254
|
/**
|
|
1255
1255
|
* Background Repeat
|
|
1256
1256
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1257
1257
|
*/
|
|
1258
1258
|
"bg-repeat": [{
|
|
1259
|
-
bg:
|
|
1259
|
+
bg: j()
|
|
1260
1260
|
}],
|
|
1261
1261
|
/**
|
|
1262
1262
|
* Background Size
|
|
@@ -1663,7 +1663,7 @@ const J = (e) => {
|
|
|
1663
1663
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1664
1664
|
*/
|
|
1665
1665
|
"inset-shadow": [{
|
|
1666
|
-
"inset-shadow": ["none",
|
|
1666
|
+
"inset-shadow": ["none", x, ve, we]
|
|
1667
1667
|
}],
|
|
1668
1668
|
/**
|
|
1669
1669
|
* Inset Box Shadow Color
|
|
@@ -1890,7 +1890,7 @@ const J = (e) => {
|
|
|
1890
1890
|
}]
|
|
1891
1891
|
}],
|
|
1892
1892
|
"mask-image-radial-pos": [{
|
|
1893
|
-
"mask-radial-at":
|
|
1893
|
+
"mask-radial-at": A()
|
|
1894
1894
|
}],
|
|
1895
1895
|
"mask-image-conic-pos": [{
|
|
1896
1896
|
"mask-conic": [R]
|
|
@@ -1926,14 +1926,14 @@ const J = (e) => {
|
|
|
1926
1926
|
* @see https://tailwindcss.com/docs/mask-position
|
|
1927
1927
|
*/
|
|
1928
1928
|
"mask-position": [{
|
|
1929
|
-
mask:
|
|
1929
|
+
mask: T()
|
|
1930
1930
|
}],
|
|
1931
1931
|
/**
|
|
1932
1932
|
* Mask Repeat
|
|
1933
1933
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
1934
1934
|
*/
|
|
1935
1935
|
"mask-repeat": [{
|
|
1936
|
-
mask:
|
|
1936
|
+
mask: j()
|
|
1937
1937
|
}],
|
|
1938
1938
|
/**
|
|
1939
1939
|
* Mask Size
|
|
@@ -2230,14 +2230,14 @@ const J = (e) => {
|
|
|
2230
2230
|
* @see https://tailwindcss.com/docs/perspective
|
|
2231
2231
|
*/
|
|
2232
2232
|
perspective: [{
|
|
2233
|
-
perspective: [
|
|
2233
|
+
perspective: [_, V, S]
|
|
2234
2234
|
}],
|
|
2235
2235
|
/**
|
|
2236
2236
|
* Perspective Origin
|
|
2237
2237
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2238
2238
|
*/
|
|
2239
2239
|
"perspective-origin": [{
|
|
2240
|
-
"perspective-origin":
|
|
2240
|
+
"perspective-origin": I()
|
|
2241
2241
|
}],
|
|
2242
2242
|
/**
|
|
2243
2243
|
* Rotate
|
|
@@ -2333,7 +2333,7 @@ const J = (e) => {
|
|
|
2333
2333
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2334
2334
|
*/
|
|
2335
2335
|
"transform-origin": [{
|
|
2336
|
-
origin:
|
|
2336
|
+
origin: I()
|
|
2337
2337
|
}],
|
|
2338
2338
|
/**
|
|
2339
2339
|
* Transform Style
|
|
@@ -2738,34 +2738,34 @@ const J = (e) => {
|
|
|
2738
2738
|
classNameContent: i = "",
|
|
2739
2739
|
onExpand: m,
|
|
2740
2740
|
singleOpen: b,
|
|
2741
|
-
classNameHr:
|
|
2741
|
+
classNameHr: x = "",
|
|
2742
2742
|
useBackground: u = !0,
|
|
2743
2743
|
index: C,
|
|
2744
|
-
children:
|
|
2745
|
-
...
|
|
2744
|
+
children: h,
|
|
2745
|
+
..._
|
|
2746
2746
|
}, $) => {
|
|
2747
|
-
const [y, g] =
|
|
2747
|
+
const [y, g] = H(!1), [M, A] = H(Ve), [I, E] = H(Se), [B, k] = H(""), U = `accordion-${C ?? t.replace(/\s+/g, "-").toLowerCase()}`, D = () => {
|
|
2748
2748
|
m && b && m(g), g(!y);
|
|
2749
|
-
},
|
|
2750
|
-
(
|
|
2749
|
+
}, p = (O) => {
|
|
2750
|
+
(O.key === "Enter" || O.key === " ") && (O.preventDefault(), D());
|
|
2751
2751
|
};
|
|
2752
2752
|
return Z(() => {
|
|
2753
|
-
k(f("border-[#dfe1e2] -mt-4 pt-0 mb-3",
|
|
2754
|
-
}, [
|
|
2755
|
-
|
|
2753
|
+
k(f("border-[#dfe1e2] -mt-4 pt-0 mb-3", x));
|
|
2754
|
+
}, [x]), Z(() => {
|
|
2755
|
+
A(u ? Ve : f(Ve, "bg-transparent border-0"));
|
|
2756
2756
|
}, [u]), Z(() => {
|
|
2757
|
-
|
|
2757
|
+
E(y && u ? f(Se, "border-b-0! rounded-t rounded-b-none") : Se);
|
|
2758
2758
|
}, [y, u]), /* @__PURE__ */ L("div", { ref: $, className: n, children: [
|
|
2759
2759
|
/* @__PURE__ */ L(
|
|
2760
2760
|
"button",
|
|
2761
2761
|
{
|
|
2762
|
-
className: f(
|
|
2762
|
+
className: f(I, l0.variant, c),
|
|
2763
2763
|
"aria-controls": `${U}-content`,
|
|
2764
2764
|
"aria-expanded": y,
|
|
2765
2765
|
id: `${U}-header`,
|
|
2766
2766
|
onClick: D,
|
|
2767
|
-
onKeyDown:
|
|
2768
|
-
...
|
|
2767
|
+
onKeyDown: p,
|
|
2768
|
+
..._,
|
|
2769
2769
|
children: [
|
|
2770
2770
|
/* @__PURE__ */ s("span", { children: t }),
|
|
2771
2771
|
/* @__PURE__ */ s("span", { children: y ? a || /* @__PURE__ */ s("img", { src: r ? p2 : o0, alt: "Close Icon" }) : l || /* @__PURE__ */ s("img", { src: r ? h2 : n0, alt: "Open Icon" }) })
|
|
@@ -2776,7 +2776,7 @@ const J = (e) => {
|
|
|
2776
2776
|
"div",
|
|
2777
2777
|
{
|
|
2778
2778
|
className: f(
|
|
2779
|
-
|
|
2779
|
+
M,
|
|
2780
2780
|
i0.variant,
|
|
2781
2781
|
i,
|
|
2782
2782
|
// rounded && useBackground && 'rounded-b-md', 'relative'
|
|
@@ -2788,7 +2788,7 @@ const J = (e) => {
|
|
|
2788
2788
|
"aria-labelledby": `${U}-header`,
|
|
2789
2789
|
children: [
|
|
2790
2790
|
u && o && /* @__PURE__ */ s("hr", { className: B }),
|
|
2791
|
-
|
|
2791
|
+
h
|
|
2792
2792
|
]
|
|
2793
2793
|
}
|
|
2794
2794
|
) })
|
|
@@ -2808,13 +2808,13 @@ const J = (e) => {
|
|
|
2808
2808
|
classNameChildContent: i,
|
|
2809
2809
|
hr: m,
|
|
2810
2810
|
classNameHr: b,
|
|
2811
|
-
useBackground:
|
|
2811
|
+
useBackground: x,
|
|
2812
2812
|
...u
|
|
2813
2813
|
}, C) => {
|
|
2814
|
-
const [
|
|
2814
|
+
const [h, _] = H(
|
|
2815
2815
|
null
|
|
2816
2816
|
), $ = (y) => {
|
|
2817
|
-
|
|
2817
|
+
h && h(!1), _(() => y);
|
|
2818
2818
|
};
|
|
2819
2819
|
return /* @__PURE__ */ s("div", { ref: C, ...u, className: f(a0, l), children: Ue.map(e, (y, g) => be(y) ? _e(y, {
|
|
2820
2820
|
// <AccordionProps> to ensure child component sees parent specification in code
|
|
@@ -2829,12 +2829,12 @@ const J = (e) => {
|
|
|
2829
2829
|
// className for child component
|
|
2830
2830
|
classNameContent: f(i, y.props.classNameContent),
|
|
2831
2831
|
singleOpen: o,
|
|
2832
|
-
onExpand: (
|
|
2832
|
+
onExpand: (M) => $(M),
|
|
2833
2833
|
// Pass expansion handler to child
|
|
2834
2834
|
// child defaults to true, so if false, use child/false value
|
|
2835
2835
|
hr: y.props.hr === !1 ? !1 : m,
|
|
2836
2836
|
classNameHr: f(b, y.props.classNameHr),
|
|
2837
|
-
useBackground: y.props.useBackground === !1 ? !1 :
|
|
2837
|
+
useBackground: y.props.useBackground === !1 ? !1 : x,
|
|
2838
2838
|
index: g
|
|
2839
2839
|
}) : y) });
|
|
2840
2840
|
}
|
|
@@ -2855,66 +2855,66 @@ const J = (e) => {
|
|
|
2855
2855
|
width: m = "",
|
|
2856
2856
|
...b
|
|
2857
2857
|
}) => {
|
|
2858
|
-
const
|
|
2858
|
+
const x = X(null), u = X(null), C = X(null), [h, _] = H(!1), [$, y] = H(!1), [g, M] = H(a || "Options"), [A, I] = H(null), E = X("bottom-[60px]"), [B, k] = H("");
|
|
2859
2859
|
Z(() => {
|
|
2860
2860
|
if (u.current) {
|
|
2861
2861
|
const w = u.current.getBoundingClientRect(), v = Math.floor(w.height) + 2;
|
|
2862
|
-
|
|
2862
|
+
E.current = "bottom-[" + v + "px]";
|
|
2863
2863
|
}
|
|
2864
2864
|
}, [u.current]);
|
|
2865
2865
|
const U = () => {
|
|
2866
|
-
if (
|
|
2867
|
-
const w =
|
|
2866
|
+
if (x.current && C.current) {
|
|
2867
|
+
const w = x.current.getBoundingClientRect(), v = C.current.offsetHeight, N = window.innerHeight, d = document.body.offsetHeight;
|
|
2868
2868
|
(N > d ? d : N) - w.bottom < v && w.top > v ? y(!0) : y(!1);
|
|
2869
2869
|
}
|
|
2870
2870
|
}, D = X([]);
|
|
2871
2871
|
Z(() => {
|
|
2872
2872
|
D.current = D.current.slice(0, r.length);
|
|
2873
2873
|
}, [r]);
|
|
2874
|
-
const [
|
|
2875
|
-
|
|
2874
|
+
const [p, O] = H(0), F = () => {
|
|
2875
|
+
_(!h), O(0);
|
|
2876
2876
|
};
|
|
2877
2877
|
Z(() => {
|
|
2878
2878
|
k(i ? "border-2 border-[#ff0004] pl-[15px]" : "");
|
|
2879
2879
|
}, [i]), Z(() => {
|
|
2880
2880
|
function w(d) {
|
|
2881
|
-
|
|
2881
|
+
h && x.current && !x.current.contains(d.target) && _(!1);
|
|
2882
2882
|
}
|
|
2883
2883
|
function v(d) {
|
|
2884
|
-
|
|
2884
|
+
h && d.key === "Escape" && _(!1);
|
|
2885
2885
|
}
|
|
2886
2886
|
function N(d) {
|
|
2887
|
-
|
|
2887
|
+
h && x.current && !x.current.contains(d.target) && _(!1);
|
|
2888
2888
|
}
|
|
2889
2889
|
return document.addEventListener("mousedown", w), document.addEventListener("touchend", w), document.addEventListener("keydown", v), document.addEventListener("focusin", N), () => {
|
|
2890
2890
|
document.removeEventListener("mousedown", w), document.removeEventListener("touchend", w), document.removeEventListener("keydown", v), document.removeEventListener("focusin", N);
|
|
2891
2891
|
};
|
|
2892
|
-
}, [
|
|
2893
|
-
|
|
2894
|
-
}, [
|
|
2892
|
+
}, [h]), Z(() => {
|
|
2893
|
+
h && U();
|
|
2894
|
+
}, [h]), Z(() => {
|
|
2895
2895
|
var w;
|
|
2896
|
-
|
|
2897
|
-
}, [
|
|
2896
|
+
h && ((w = D.current[p]) == null || w.focus());
|
|
2897
|
+
}, [p, h]);
|
|
2898
2898
|
const z = (w) => {
|
|
2899
|
-
if (
|
|
2899
|
+
if (h)
|
|
2900
2900
|
switch (w.key) {
|
|
2901
2901
|
case "ArrowDown":
|
|
2902
|
-
w.preventDefault(),
|
|
2902
|
+
w.preventDefault(), O((v) => {
|
|
2903
2903
|
const N = (v + 1) % r.length;
|
|
2904
|
-
return
|
|
2904
|
+
return I(N), N;
|
|
2905
2905
|
});
|
|
2906
2906
|
break;
|
|
2907
2907
|
case "ArrowUp":
|
|
2908
|
-
w.preventDefault(),
|
|
2908
|
+
w.preventDefault(), O((v) => {
|
|
2909
2909
|
const N = (v - 1 + r.length) % r.length;
|
|
2910
|
-
return
|
|
2910
|
+
return I(N), N;
|
|
2911
2911
|
});
|
|
2912
2912
|
break;
|
|
2913
2913
|
case "Home":
|
|
2914
|
-
w.preventDefault(),
|
|
2914
|
+
w.preventDefault(), O(0);
|
|
2915
2915
|
break;
|
|
2916
2916
|
case "End":
|
|
2917
|
-
w.preventDefault(),
|
|
2917
|
+
w.preventDefault(), O(r.length - 1);
|
|
2918
2918
|
break;
|
|
2919
2919
|
}
|
|
2920
2920
|
};
|
|
@@ -2922,7 +2922,7 @@ const J = (e) => {
|
|
|
2922
2922
|
"div",
|
|
2923
2923
|
{
|
|
2924
2924
|
className: f("relative inline-block text-left w-[292px] md:w-[343px] lg:w-[600px] max-w-full", t),
|
|
2925
|
-
ref:
|
|
2925
|
+
ref: x,
|
|
2926
2926
|
...b,
|
|
2927
2927
|
"aria-disabled": l,
|
|
2928
2928
|
children: [
|
|
@@ -2937,21 +2937,21 @@ const J = (e) => {
|
|
|
2937
2937
|
Ge[o] || Ge.default,
|
|
2938
2938
|
B,
|
|
2939
2939
|
e,
|
|
2940
|
-
|
|
2940
|
+
h && $ && "rounded-b-lg" || h && !$ && "rounded-t-lg" || "rounded-lg"
|
|
2941
2941
|
),
|
|
2942
2942
|
"aria-label": "Select options - " + g,
|
|
2943
2943
|
"aria-disabled": l,
|
|
2944
|
-
"aria-expanded":
|
|
2944
|
+
"aria-expanded": h,
|
|
2945
2945
|
"aria-haspopup": "listbox",
|
|
2946
2946
|
disabled: l,
|
|
2947
2947
|
tabIndex: 0,
|
|
2948
2948
|
children: [
|
|
2949
2949
|
g,
|
|
2950
|
-
|
|
2950
|
+
h ? o === "fill" ? /* @__PURE__ */ s("img", { src: d0, alt: "chevron up" }) : /* @__PURE__ */ s("img", { src: p2, alt: "chevron up" }) : o === "fill" ? /* @__PURE__ */ s("img", { src: c0, alt: "chevron down" }) : /* @__PURE__ */ s("img", { src: h2, alt: "chevron down" })
|
|
2951
2951
|
]
|
|
2952
2952
|
}
|
|
2953
2953
|
),
|
|
2954
|
-
|
|
2954
|
+
h && /* @__PURE__ */ s(
|
|
2955
2955
|
"div",
|
|
2956
2956
|
{
|
|
2957
2957
|
role: "listbox",
|
|
@@ -2960,8 +2960,8 @@ const J = (e) => {
|
|
|
2960
2960
|
onKeyDown: z,
|
|
2961
2961
|
className: f(
|
|
2962
2962
|
"absolute w-full shadow-lg bg-white ring-1 ring-white/5 focus:outline-hidden z-10 ",
|
|
2963
|
-
|
|
2964
|
-
$ &&
|
|
2963
|
+
h && $ && "rounded-t-lg pt-1" || h && !$ && "rounded-b-lg pb-1",
|
|
2964
|
+
$ && E.current
|
|
2965
2965
|
),
|
|
2966
2966
|
children: r.map((w, v) => (
|
|
2967
2967
|
// <li key={item.name}>
|
|
@@ -2974,13 +2974,13 @@ const J = (e) => {
|
|
|
2974
2974
|
className: `block w-full px-4 py-2 text-left text-base text-gray-700
|
|
2975
2975
|
hover:bg-[#092068]/20 focus:outline-hidden focus:bg-[#092068]/20`,
|
|
2976
2976
|
role: "option",
|
|
2977
|
-
"aria-selected":
|
|
2977
|
+
"aria-selected": A === v,
|
|
2978
2978
|
"aria-label": "option " + w.name,
|
|
2979
2979
|
onClick: () => {
|
|
2980
|
-
|
|
2980
|
+
I(v), M(w.name), c(w.value || w.name), _(!1);
|
|
2981
2981
|
},
|
|
2982
2982
|
onKeyDown: (N) => {
|
|
2983
|
-
N.key === "Enter" || N.code === "Enter" || N.key === " " ? (
|
|
2983
|
+
N.key === "Enter" || N.code === "Enter" || N.key === " " ? (I(v), M(w.name), c(w.value || w.name), _(!1)) : N.key === "Escape" && _(!1);
|
|
2984
2984
|
},
|
|
2985
2985
|
children: w.name
|
|
2986
2986
|
},
|
|
@@ -3025,15 +3025,15 @@ const J = (e) => {
|
|
|
3025
3025
|
width: m = "",
|
|
3026
3026
|
...b
|
|
3027
3027
|
}) => {
|
|
3028
|
-
const
|
|
3029
|
-
return console.log(n), console.log(
|
|
3028
|
+
const x = f0(n, r, a);
|
|
3029
|
+
return console.log(n), console.log(x), /* @__PURE__ */ s(
|
|
3030
3030
|
u0,
|
|
3031
3031
|
{
|
|
3032
3032
|
className: e,
|
|
3033
3033
|
classNameContainer: t,
|
|
3034
3034
|
label: l,
|
|
3035
3035
|
optionsLabel: o,
|
|
3036
|
-
options:
|
|
3036
|
+
options: x,
|
|
3037
3037
|
variant: c,
|
|
3038
3038
|
width: m,
|
|
3039
3039
|
setSelectedOption: () => i
|
|
@@ -3096,109 +3096,11 @@ const J = (e) => {
|
|
|
3096
3096
|
}
|
|
3097
3097
|
);
|
|
3098
3098
|
}
|
|
3099
|
-
), v0 = '
|
|
3100
|
-
|
|
3101
|
-
normal: "border-2 border-gray-300 rounded-md bg-gray-200 hover:bg-slate-400 text-black text-sm md:text-base lg:text-lg hover:text-black hover:border-slate-600 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-bottom-nav-background disabled:border-2 py-0 md:py-0 lg:py-0 h-[48px] mt-1",
|
|
3102
|
-
selected: "bg-gray-500 text-white"
|
|
3103
|
-
// Only used if 'selected' is true to indicate state when 'selected'
|
|
3104
|
-
},
|
|
3105
|
-
filled: {
|
|
3106
|
-
normal: "rounded-md bg-[#092068] hover:bg-[#0c2c8e] text-white text-sm md:text-base lg:text-lg hover:text-white focus:shadow-[0px_0px_0px_3px_rgba(238,131,255,1.00)] active:bg-[#0F37B3] disabled:bg-[#e4e4e5] disabled:text-[#939194] disabled:border-[#e4e4e5] ",
|
|
3107
|
-
selected: ""
|
|
3108
|
-
// Only used if 'selected' is true
|
|
3109
|
-
},
|
|
3110
|
-
outline: {
|
|
3111
|
-
normal: "rounded-md border-[#092068] bg-white border-2 text-[#092068] text-sm md:text-base lg:text-lg disabled:border-dha-mc-secondary-border disabled:text-[#939194] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(238,131,255,1.00)] ",
|
|
3112
|
-
selected: ""
|
|
3113
|
-
// Only used if 'selected' is true
|
|
3114
|
-
},
|
|
3115
|
-
transparent: {
|
|
3116
|
-
normal: "rounded-md text-sm md:text-base lg:text-lg text-[#092068] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] disabled:text-[#939194]",
|
|
3117
|
-
selected: ""
|
|
3118
|
-
// Only used if 'selected' is true
|
|
3119
|
-
}
|
|
3120
|
-
}, b2 = ee(
|
|
3121
|
-
({
|
|
3122
|
-
label: e,
|
|
3123
|
-
onClick: t,
|
|
3124
|
-
className: n,
|
|
3125
|
-
icon: r,
|
|
3126
|
-
iconPosition: a,
|
|
3127
|
-
variant: l = "default",
|
|
3128
|
-
type: o = "button",
|
|
3129
|
-
children: c,
|
|
3130
|
-
selected: i = !1,
|
|
3131
|
-
classNameSelected: m,
|
|
3132
|
-
classNameGroup: b = "",
|
|
3133
|
-
...p
|
|
3134
|
-
}, u) => {
|
|
3135
|
-
const [C, x] = I("");
|
|
3136
|
-
return Z(() => {
|
|
3137
|
-
let M = ze[l].normal || ze.default.normal;
|
|
3138
|
-
i && !m ? M = f(M, ze[l].selected) : i && m && (M = f(M, m)), x(f(v0, M));
|
|
3139
|
-
}, [i, m, l]), /* @__PURE__ */ L(
|
|
3140
|
-
"button",
|
|
3141
|
-
{
|
|
3142
|
-
type: o,
|
|
3143
|
-
onClick: t,
|
|
3144
|
-
className: `${a === "iconOnly" ? f(
|
|
3145
|
-
C,
|
|
3146
|
-
"px-[12px] md:px-[14px] lg:px-[16px] py-[8px] md:py-[12px] lg:py-[16px]",
|
|
3147
|
-
b,
|
|
3148
|
-
// passed in from ButtonGroup if present
|
|
3149
|
-
n
|
|
3150
|
-
// dev over-rides
|
|
3151
|
-
) : f(C, b, n)}`,
|
|
3152
|
-
ref: u,
|
|
3153
|
-
...p,
|
|
3154
|
-
children: [
|
|
3155
|
-
a === "left" && r && /* @__PURE__ */ s("span", { className: "icon-left mr-3 size-6", children: r }),
|
|
3156
|
-
a === "iconOnly" && r ? /* @__PURE__ */ s("span", { className: "size-6", children: r }) : /* @__PURE__ */ s("span", { className: "", children: c || e }),
|
|
3157
|
-
a === "right" && r && /* @__PURE__ */ s("span", { className: "icon-right ml-3 size-6", children: r })
|
|
3158
|
-
]
|
|
3159
|
-
}
|
|
3160
|
-
);
|
|
3161
|
-
}
|
|
3162
|
-
);
|
|
3163
|
-
b2.displayName = "SDK Button";
|
|
3164
|
-
const ye = {
|
|
3165
|
-
default: {
|
|
3166
|
-
container: "flex gap-4 w-full md:gap-8 lg:gap-12",
|
|
3167
|
-
button: "w-[150px]"
|
|
3168
|
-
},
|
|
3169
|
-
column: {
|
|
3170
|
-
container: "flex flex-col gap-3 w-full md:gap-4 lg:gap-6",
|
|
3171
|
-
button: "w-[150px]"
|
|
3172
|
-
},
|
|
3173
|
-
custom: {
|
|
3174
|
-
container: "",
|
|
3175
|
-
button: ""
|
|
3176
|
-
}
|
|
3177
|
-
}, C0 = ee(
|
|
3178
|
-
({ className: e, children: t, classNameButtons: n, variant: r = "default", ...a }, l) => {
|
|
3179
|
-
let o = 0;
|
|
3180
|
-
const c = Ue.map(t, (p) => {
|
|
3181
|
-
if (be(p)) {
|
|
3182
|
-
++o;
|
|
3183
|
-
const u = p, C = u.props.classNameGroup || "";
|
|
3184
|
-
return _e(u, {
|
|
3185
|
-
classNameGroup: f(C, ye[r].button, n)
|
|
3186
|
-
});
|
|
3187
|
-
}
|
|
3188
|
-
return p;
|
|
3189
|
-
}), i = o === 3 && r === "default", m = c == null ? void 0 : c.slice(0, 2), b = c == null ? void 0 : c.slice(2);
|
|
3190
|
-
return i ? /* @__PURE__ */ L("div", { className: "inline-flex flex-col gap-1", children: [
|
|
3191
|
-
/* @__PURE__ */ s("div", { className: f(ye[r].container, e), children: m }),
|
|
3192
|
-
/* @__PURE__ */ s("div", { className: f(ye[r].container, "justify-center", e), children: b })
|
|
3193
|
-
] }) : /* @__PURE__ */ s("div", { className: f("", ye[r].container, e), ref: l, children: c });
|
|
3194
|
-
}
|
|
3195
|
-
);
|
|
3196
|
-
C0.displayName = "SDK ButtonGroup";
|
|
3197
|
-
const y0 = "data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%201'%20d='M1%201L5%205.5L1%2010'%20stroke='%23747476'%20stroke-width='2'/%3e%3c/svg%3e", k0 = "data:image/svg+xml,%3csvg%20width='12'%20height='15'%20viewBox='0%200%2012%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Exclude'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%200.5L0%205.75V14.5H4.28571V10.125H7.71429V14.5H12V5.75L6%200.5Z'%20fill='%23747476'/%3e%3c/svg%3e";
|
|
3198
|
-
function N0(e) {
|
|
3099
|
+
), v0 = "data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%201'%20d='M1%201L5%205.5L1%2010'%20stroke='%23747476'%20stroke-width='2'/%3e%3c/svg%3e", C0 = "data:image/svg+xml,%3csvg%20width='12'%20height='15'%20viewBox='0%200%2012%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Exclude'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%200.5L0%205.75V14.5H4.28571V10.125H7.71429V14.5H12V5.75L6%200.5Z'%20fill='%23747476'/%3e%3c/svg%3e";
|
|
3100
|
+
function y0(e) {
|
|
3199
3101
|
return e.replace(/-/g, " ").replace(/\b\w/g, (t) => t.toUpperCase());
|
|
3200
3102
|
}
|
|
3201
|
-
const
|
|
3103
|
+
const k0 = {
|
|
3202
3104
|
default: "overflow-x-auto w-full text-base md:text-lg",
|
|
3203
3105
|
// image top
|
|
3204
3106
|
bold: "overflow-x-auto font-bold w-full text-base md:text-lg"
|
|
@@ -3208,34 +3110,34 @@ const M0 = {
|
|
|
3208
3110
|
className: t,
|
|
3209
3111
|
routes: n,
|
|
3210
3112
|
variant: r = "default",
|
|
3211
|
-
separator: a =
|
|
3113
|
+
separator: a = v0,
|
|
3212
3114
|
...l
|
|
3213
3115
|
}, o) => {
|
|
3214
|
-
const c = X(null), i = X(null), [m, b] =
|
|
3215
|
-
name:
|
|
3216
|
-
route: "/" +
|
|
3217
|
-
})), [n,
|
|
3116
|
+
const c = X(null), i = X(null), [m, b] = H(!1), [x, u] = H(), [C, h] = H(0), { pathname: _ } = k2(), $ = Oe(() => n && n.length > 0 ? n : _.split("/").filter(Boolean).map((M, A, I) => ({
|
|
3117
|
+
name: y0(decodeURIComponent(M)),
|
|
3118
|
+
route: "/" + I.slice(0, A + 1).join("/")
|
|
3119
|
+
})), [n, _]);
|
|
3218
3120
|
Z(() => {
|
|
3219
3121
|
const g = c.current;
|
|
3220
|
-
g &&
|
|
3122
|
+
g && h(g.offsetWidth);
|
|
3221
3123
|
}, []);
|
|
3222
3124
|
const y = () => {
|
|
3223
3125
|
const g = c.current;
|
|
3224
|
-
(g && !
|
|
3126
|
+
(g && !x || g && x && Date.now() > x + 200) && (m ? g.clientWidth > C && b(!1) : g.scrollWidth > g.clientWidth && b(!0), u(Date.now()));
|
|
3225
3127
|
};
|
|
3226
3128
|
return Z(() => {
|
|
3227
3129
|
const g = c.current;
|
|
3228
3130
|
if (!g)
|
|
3229
3131
|
return;
|
|
3230
3132
|
y();
|
|
3231
|
-
const
|
|
3232
|
-
return
|
|
3233
|
-
|
|
3133
|
+
const M = new ResizeObserver(y);
|
|
3134
|
+
return M.observe(g), () => {
|
|
3135
|
+
M.disconnect();
|
|
3234
3136
|
};
|
|
3235
|
-
}, [
|
|
3137
|
+
}, [x, $]), /* @__PURE__ */ s(
|
|
3236
3138
|
"nav",
|
|
3237
3139
|
{
|
|
3238
|
-
className: f(
|
|
3140
|
+
className: f(k0[r], e),
|
|
3239
3141
|
...l,
|
|
3240
3142
|
ref: o,
|
|
3241
3143
|
"aria-label": "Breadcrumbs",
|
|
@@ -3265,7 +3167,7 @@ const M0 = {
|
|
|
3265
3167
|
"capitalize me-2 inline-flex md:hidden",
|
|
3266
3168
|
t
|
|
3267
3169
|
),
|
|
3268
|
-
children: /* @__PURE__ */ s("img", { src:
|
|
3170
|
+
children: /* @__PURE__ */ s("img", { src: C0, ref: i, alt: "home icon" })
|
|
3269
3171
|
}
|
|
3270
3172
|
),
|
|
3271
3173
|
$.length > 0 ? /* @__PURE__ */ s("span", { className: f("me-2", t), children: /* @__PURE__ */ s("img", { src: a, alt: "vector" }) }) : ""
|
|
@@ -3274,7 +3176,7 @@ const M0 = {
|
|
|
3274
3176
|
"span",
|
|
3275
3177
|
{
|
|
3276
3178
|
className: "",
|
|
3277
|
-
children: $.map((g,
|
|
3179
|
+
children: $.map((g, M) => m ? /* @__PURE__ */ s("span", { className: "inline-flex items-center shrink-0 text-nowrap", children: M === $.length - 1 ? /* @__PURE__ */ L(oe, { children: [
|
|
3278
3180
|
/* @__PURE__ */ s("span", { className: "text-nowrap me-3", children: "..." }),
|
|
3279
3181
|
/* @__PURE__ */ s("span", { className: f("me-3", t), children: /* @__PURE__ */ s("img", { src: a, alt: "vector" }) }),
|
|
3280
3182
|
/* @__PURE__ */ s(
|
|
@@ -3285,12 +3187,12 @@ const M0 = {
|
|
|
3285
3187
|
children: decodeURIComponent(g.name).replace(/-/g, " ")
|
|
3286
3188
|
}
|
|
3287
3189
|
)
|
|
3288
|
-
] }) : "" },
|
|
3190
|
+
] }) : "" }, M) : /* @__PURE__ */ L(
|
|
3289
3191
|
"span",
|
|
3290
3192
|
{
|
|
3291
3193
|
className: "breadcrumb-item inline-flex items-center shrink-0",
|
|
3292
3194
|
children: [
|
|
3293
|
-
|
|
3195
|
+
M === $.length - 1 ? (
|
|
3294
3196
|
// Render the current page as plain text (last item in list)
|
|
3295
3197
|
/* @__PURE__ */ s(
|
|
3296
3198
|
"span",
|
|
@@ -3314,10 +3216,10 @@ const M0 = {
|
|
|
3314
3216
|
}
|
|
3315
3217
|
)
|
|
3316
3218
|
),
|
|
3317
|
-
|
|
3219
|
+
M < $.length - 1 && /* @__PURE__ */ s("span", { className: f("me-3", t), children: /* @__PURE__ */ s("img", { src: a, alt: "vector" }) })
|
|
3318
3220
|
]
|
|
3319
3221
|
},
|
|
3320
|
-
|
|
3222
|
+
M
|
|
3321
3223
|
))
|
|
3322
3224
|
}
|
|
3323
3225
|
)
|
|
@@ -3327,7 +3229,112 @@ const M0 = {
|
|
|
3327
3229
|
}
|
|
3328
3230
|
);
|
|
3329
3231
|
}
|
|
3330
|
-
),
|
|
3232
|
+
), N0 = 'inline-flex items-center justify-center whitespace-nowrap rounded-md ring-offset-background transition-colors focus-visible:outline-hidden font-["Arial"] disabled:pointer-events-none text-sm md:text-base lg:text-lg disabled:opacity-50 px-6 py-[8px] md:py-[12px] lg:py-[16px] h-[40px] md:h-[48px] lg:h-[56px] ', ze = {
|
|
3233
|
+
default: {
|
|
3234
|
+
normal: "border-2 border-gray-300 rounded-md bg-gray-200 hover:bg-slate-400 text-black text-sm md:text-base lg:text-lg hover:text-black hover:border-slate-600 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-bottom-nav-background disabled:border-2 py-0 md:py-0 lg:py-0 h-[48px] mt-1",
|
|
3235
|
+
selected: "bg-gray-500 text-white"
|
|
3236
|
+
// Only used if 'selected' is true to indicate state when 'selected'
|
|
3237
|
+
},
|
|
3238
|
+
filled: {
|
|
3239
|
+
normal: "rounded-md bg-[#092068] hover:bg-[#0c2c8e] text-white text-sm md:text-base lg:text-lg hover:text-white focus:shadow-[0px_0px_0px_3px_rgba(238,131,255,1.00)] active:bg-[#0F37B3] disabled:bg-[#e4e4e5] disabled:text-[#939194] disabled:border-[#e4e4e5] ",
|
|
3240
|
+
selected: ""
|
|
3241
|
+
// Only used if 'selected' is true
|
|
3242
|
+
},
|
|
3243
|
+
outline: {
|
|
3244
|
+
normal: "rounded-md border-[#092068] bg-white border-2 text-[#092068] text-sm md:text-base lg:text-lg disabled:border-dha-mc-secondary-border disabled:text-[#939194] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(238,131,255,1.00)] ",
|
|
3245
|
+
selected: ""
|
|
3246
|
+
// Only used if 'selected' is true
|
|
3247
|
+
},
|
|
3248
|
+
transparent: {
|
|
3249
|
+
normal: "rounded-md text-sm md:text-base lg:text-lg text-[#092068] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] disabled:text-[#939194]",
|
|
3250
|
+
selected: ""
|
|
3251
|
+
// Only used if 'selected' is true
|
|
3252
|
+
}
|
|
3253
|
+
}, b2 = ee(
|
|
3254
|
+
({
|
|
3255
|
+
label: e,
|
|
3256
|
+
onClick: t,
|
|
3257
|
+
className: n,
|
|
3258
|
+
classNameIconLeft: r,
|
|
3259
|
+
classNameIconRight: a,
|
|
3260
|
+
classNameContent: l,
|
|
3261
|
+
icon: o,
|
|
3262
|
+
iconLeft: c,
|
|
3263
|
+
iconRight: i,
|
|
3264
|
+
iconPosition: m,
|
|
3265
|
+
variant: b = "default",
|
|
3266
|
+
type: x = "button",
|
|
3267
|
+
children: u,
|
|
3268
|
+
selected: C = !1,
|
|
3269
|
+
classNameSelected: h,
|
|
3270
|
+
classNameGroup: _ = "",
|
|
3271
|
+
...$
|
|
3272
|
+
}, y) => {
|
|
3273
|
+
const [g, M] = H("");
|
|
3274
|
+
Z(() => {
|
|
3275
|
+
let E = ze[b].normal || ze.default.normal;
|
|
3276
|
+
C && !h ? E = f(E, ze[b].selected) : C && h && (E = f(E, h)), M(f(N0, E));
|
|
3277
|
+
}, [C, h, b]);
|
|
3278
|
+
const A = c ?? (o && (m === "left" || m === "both") ? o : void 0), I = i ?? (o && (m === "right" || m === "both") ? o : void 0);
|
|
3279
|
+
return /* @__PURE__ */ L(
|
|
3280
|
+
"button",
|
|
3281
|
+
{
|
|
3282
|
+
type: x,
|
|
3283
|
+
onClick: t,
|
|
3284
|
+
className: `${m === "iconOnly" ? f(
|
|
3285
|
+
g,
|
|
3286
|
+
"px-[12px] md:px-[14px] lg:px-[16px] py-[8px] md:py-[12px] lg:py-[16px]",
|
|
3287
|
+
_,
|
|
3288
|
+
// passed in from ButtonGroup if present
|
|
3289
|
+
n
|
|
3290
|
+
// dev over-rides
|
|
3291
|
+
) : f(g, _, n)}`,
|
|
3292
|
+
ref: y,
|
|
3293
|
+
...$,
|
|
3294
|
+
children: [
|
|
3295
|
+
A && /* @__PURE__ */ s("span", { className: f("mr-3", r), children: A }),
|
|
3296
|
+
m === "iconOnly" && o ? /* @__PURE__ */ s("span", { className: "size-6", children: o }) : /* @__PURE__ */ s("span", { className: f("grow-1 text-start", l), children: u || e }),
|
|
3297
|
+
I && /* @__PURE__ */ s("span", { className: f("ml-3", a), children: I })
|
|
3298
|
+
]
|
|
3299
|
+
}
|
|
3300
|
+
);
|
|
3301
|
+
}
|
|
3302
|
+
);
|
|
3303
|
+
b2.displayName = "SDK Button";
|
|
3304
|
+
const ye = {
|
|
3305
|
+
default: {
|
|
3306
|
+
container: "flex gap-4 w-full md:gap-8 lg:gap-12",
|
|
3307
|
+
button: "w-[150px]"
|
|
3308
|
+
},
|
|
3309
|
+
column: {
|
|
3310
|
+
container: "flex flex-col gap-3 w-full md:gap-4 lg:gap-6",
|
|
3311
|
+
button: "w-[150px]"
|
|
3312
|
+
},
|
|
3313
|
+
custom: {
|
|
3314
|
+
container: "",
|
|
3315
|
+
button: ""
|
|
3316
|
+
}
|
|
3317
|
+
}, M0 = ee(
|
|
3318
|
+
({ className: e, children: t, classNameButtons: n, variant: r = "default", ...a }, l) => {
|
|
3319
|
+
let o = 0;
|
|
3320
|
+
const c = Ue.map(t, (x) => {
|
|
3321
|
+
if (be(x)) {
|
|
3322
|
+
++o;
|
|
3323
|
+
const u = x, C = u.props.classNameGroup || "";
|
|
3324
|
+
return _e(u, {
|
|
3325
|
+
classNameGroup: f(C, ye[r].button, n)
|
|
3326
|
+
});
|
|
3327
|
+
}
|
|
3328
|
+
return x;
|
|
3329
|
+
}), i = o === 3 && r === "default", m = c == null ? void 0 : c.slice(0, 2), b = c == null ? void 0 : c.slice(2);
|
|
3330
|
+
return i ? /* @__PURE__ */ L("div", { className: "inline-flex flex-col gap-1", children: [
|
|
3331
|
+
/* @__PURE__ */ s("div", { className: f(ye[r].container, e), children: m }),
|
|
3332
|
+
/* @__PURE__ */ s("div", { className: f(ye[r].container, "justify-center", e), children: b })
|
|
3333
|
+
] }) : /* @__PURE__ */ s("div", { className: f("", ye[r].container, e), ref: l, children: c });
|
|
3334
|
+
}
|
|
3335
|
+
);
|
|
3336
|
+
M0.displayName = "SDK ButtonGroup";
|
|
3337
|
+
const _0 = {
|
|
3331
3338
|
default: "flex flex-col w-64 max-w-64",
|
|
3332
3339
|
// image top
|
|
3333
3340
|
imageBottom: "flex flex-col-reverse w-64 mx-w-64",
|
|
@@ -3383,21 +3390,21 @@ const Vt = ({
|
|
|
3383
3390
|
altRemainingMessageText: l,
|
|
3384
3391
|
altOverageMessageText: o
|
|
3385
3392
|
}) => {
|
|
3386
|
-
const [c, i] =
|
|
3393
|
+
const [c, i] = H(`${r} characters allowed`), [m, b] = H(!1);
|
|
3387
3394
|
return /* @__PURE__ */ L("div", { className: e, children: [
|
|
3388
3395
|
/* @__PURE__ */ s(
|
|
3389
3396
|
"div",
|
|
3390
3397
|
{
|
|
3391
3398
|
onInput: (u) => {
|
|
3392
|
-
const
|
|
3393
|
-
if (b(
|
|
3399
|
+
const h = u.target.value.length;
|
|
3400
|
+
if (b(h > r), h === 0)
|
|
3394
3401
|
i(`${r} characters allowed`);
|
|
3395
|
-
else if (
|
|
3396
|
-
const
|
|
3397
|
-
i(`${r -
|
|
3402
|
+
else if (h <= r) {
|
|
3403
|
+
const _ = " " + (l ?? "remaining");
|
|
3404
|
+
i(`${r - h}${_}`);
|
|
3398
3405
|
} else {
|
|
3399
|
-
const
|
|
3400
|
-
i(`${
|
|
3406
|
+
const _ = " " + (o ?? "characters too many");
|
|
3407
|
+
i(`${h - r}${_}`);
|
|
3401
3408
|
}
|
|
3402
3409
|
},
|
|
3403
3410
|
className: "mb-2",
|
|
@@ -3477,47 +3484,47 @@ function zt({
|
|
|
3477
3484
|
marker: a = !1,
|
|
3478
3485
|
showBranch: l = !0
|
|
3479
3486
|
}) {
|
|
3480
|
-
const [o, c] =
|
|
3487
|
+
const [o, c] = H(), i = Oe(
|
|
3481
3488
|
() => r2.Children.toArray(e).filter(
|
|
3482
3489
|
(u) => be(u) && u.type === x2
|
|
3483
3490
|
),
|
|
3484
3491
|
[e]
|
|
3485
3492
|
// execute when children changes
|
|
3486
|
-
), [m, b] =
|
|
3493
|
+
), [m, b] = H(() => i.map(() => "unchecked"));
|
|
3487
3494
|
Z(() => {
|
|
3488
3495
|
if (!o) return;
|
|
3489
|
-
const { index: u, status: C } = o,
|
|
3490
|
-
if (
|
|
3491
|
-
for (let $ = u + 1; $ <
|
|
3492
|
-
|
|
3493
|
-
for (let $ =
|
|
3496
|
+
const { index: u, status: C } = o, h = i[u].props.level ?? 0, _ = [...m];
|
|
3497
|
+
if (_[u] = C, C !== "indeterminate")
|
|
3498
|
+
for (let $ = u + 1; $ < _.length && !((i[$].props.level ?? 0) <= h); $++)
|
|
3499
|
+
_[$] = C;
|
|
3500
|
+
for (let $ = h - 1; $ >= 0; $--)
|
|
3494
3501
|
for (let y = u - 1; y >= 0; y--)
|
|
3495
3502
|
if (i[y].props.level === $) {
|
|
3496
|
-
|
|
3503
|
+
_[y] = j0(i, _, $, y);
|
|
3497
3504
|
break;
|
|
3498
3505
|
}
|
|
3499
|
-
b(
|
|
3506
|
+
b(_), c(void 0);
|
|
3500
3507
|
}, [o]);
|
|
3501
|
-
const
|
|
3508
|
+
const x = Oe(
|
|
3502
3509
|
() => i.map((u, C) => {
|
|
3503
|
-
const
|
|
3510
|
+
const h = T0(i, C, t), _ = ($, y) => {
|
|
3504
3511
|
c({ status: $, index: y });
|
|
3505
3512
|
};
|
|
3506
3513
|
return _e(u, {
|
|
3507
|
-
iconType:
|
|
3514
|
+
iconType: h,
|
|
3508
3515
|
index: C,
|
|
3509
3516
|
fill: n,
|
|
3510
3517
|
icon: r,
|
|
3511
3518
|
marker: a,
|
|
3512
3519
|
showBranch: l,
|
|
3513
3520
|
status: m[C],
|
|
3514
|
-
setStatusUpdate:
|
|
3521
|
+
setStatusUpdate: _
|
|
3515
3522
|
});
|
|
3516
3523
|
}),
|
|
3517
3524
|
[i, t, n, r, a, l, m]
|
|
3518
3525
|
// execute when one of these change
|
|
3519
3526
|
);
|
|
3520
|
-
return /* @__PURE__ */ s("div", { children:
|
|
3527
|
+
return /* @__PURE__ */ s("div", { children: x });
|
|
3521
3528
|
}
|
|
3522
3529
|
const x2 = r2.forwardRef(
|
|
3523
3530
|
({
|
|
@@ -3532,28 +3539,28 @@ const x2 = r2.forwardRef(
|
|
|
3532
3539
|
iconType: i = [],
|
|
3533
3540
|
marker: m = !1,
|
|
3534
3541
|
index: b,
|
|
3535
|
-
setStatusUpdate:
|
|
3542
|
+
setStatusUpdate: x,
|
|
3536
3543
|
status: u,
|
|
3537
3544
|
children: C,
|
|
3538
|
-
showBranch:
|
|
3539
|
-
...
|
|
3545
|
+
showBranch: h = !0,
|
|
3546
|
+
..._
|
|
3540
3547
|
}, $) => {
|
|
3541
|
-
const [y, g] =
|
|
3542
|
-
n2($, () =>
|
|
3548
|
+
const [y, g] = H("unchecked"), M = X(null), [A, I] = H(We);
|
|
3549
|
+
n2($, () => M.current), Z(() => {
|
|
3543
3550
|
u && g(u);
|
|
3544
3551
|
}, [u]), Z(() => {
|
|
3545
|
-
|
|
3552
|
+
x && b !== void 0 && x(y, b), M.current && (M.current.indeterminate = y === "indeterminate");
|
|
3546
3553
|
}, [y]), Z(() => {
|
|
3547
|
-
t && (y === "checked" ?
|
|
3554
|
+
t && (y === "checked" ? I(l ? m ? O0 : I0 : m ? A0 : V0) : y === "unchecked" ? I(l ? H0 : We) : y === "indeterminate" && I(l ? B0 : z0));
|
|
3548
3555
|
}, [l, t, y, m]);
|
|
3549
|
-
const
|
|
3556
|
+
const E = (B) => {
|
|
3550
3557
|
B.target.checked ? g("checked") : g("unchecked");
|
|
3551
3558
|
};
|
|
3552
3559
|
return /* @__PURE__ */ L("div", { className: f("flex items-center", e), children: [
|
|
3553
3560
|
i.map((B, k) => /* @__PURE__ */ s(
|
|
3554
3561
|
U0,
|
|
3555
3562
|
{
|
|
3556
|
-
type:
|
|
3563
|
+
type: h ? B : "blank",
|
|
3557
3564
|
icon: t,
|
|
3558
3565
|
classNameLine: f("h-full border", c)
|
|
3559
3566
|
},
|
|
@@ -3563,17 +3570,17 @@ const x2 = r2.forwardRef(
|
|
|
3563
3570
|
/* @__PURE__ */ s(
|
|
3564
3571
|
"input",
|
|
3565
3572
|
{
|
|
3566
|
-
ref:
|
|
3573
|
+
ref: M,
|
|
3567
3574
|
type: "checkbox",
|
|
3568
3575
|
value: a,
|
|
3569
3576
|
checked: y !== "indeterminate" && y === "checked",
|
|
3570
3577
|
"aria-label": r,
|
|
3571
3578
|
className: f("", n, t && "hidden"),
|
|
3572
|
-
onChange:
|
|
3573
|
-
...
|
|
3579
|
+
onChange: E,
|
|
3580
|
+
..._
|
|
3574
3581
|
}
|
|
3575
3582
|
),
|
|
3576
|
-
t && /* @__PURE__ */ s("img", { alt: y, src:
|
|
3583
|
+
t && /* @__PURE__ */ s("img", { alt: y, src: A, className: "" }),
|
|
3577
3584
|
C
|
|
3578
3585
|
] })
|
|
3579
3586
|
] });
|
|
@@ -3688,66 +3695,66 @@ function Z0() {
|
|
|
3688
3695
|
(function(n, r) {
|
|
3689
3696
|
e.exports = r();
|
|
3690
3697
|
})(F0, function() {
|
|
3691
|
-
var n = 1e3, r = 6e4, a = 36e5, l = "millisecond", o = "second", c = "minute", i = "hour", m = "day", b = "week",
|
|
3698
|
+
var n = 1e3, r = 6e4, a = 36e5, l = "millisecond", o = "second", c = "minute", i = "hour", m = "day", b = "week", x = "month", u = "quarter", C = "year", h = "date", _ = "Invalid Date", $ = /^(\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, g = { 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(z) {
|
|
3692
3699
|
var w = ["th", "st", "nd", "rd"], v = z % 100;
|
|
3693
3700
|
return "[" + z + (w[(v - 20) % 10] || w[v] || w[0]) + "]";
|
|
3694
|
-
} },
|
|
3701
|
+
} }, M = function(z, w, v) {
|
|
3695
3702
|
var N = String(z);
|
|
3696
3703
|
return !N || N.length >= w ? z : "" + Array(w + 1 - N.length).join(v) + z;
|
|
3697
|
-
},
|
|
3704
|
+
}, A = { s: M, z: function(z) {
|
|
3698
3705
|
var w = -z.utcOffset(), v = Math.abs(w), N = Math.floor(v / 60), d = v % 60;
|
|
3699
|
-
return (w <= 0 ? "+" : "-") +
|
|
3706
|
+
return (w <= 0 ? "+" : "-") + M(N, 2, "0") + ":" + M(d, 2, "0");
|
|
3700
3707
|
}, m: function z(w, v) {
|
|
3701
3708
|
if (w.date() < v.date()) return -z(v, w);
|
|
3702
|
-
var N = 12 * (v.year() - w.year()) + (v.month() - w.month()), d = w.clone().add(N,
|
|
3703
|
-
return +(-(N + (v - d) / (
|
|
3709
|
+
var N = 12 * (v.year() - w.year()) + (v.month() - w.month()), d = w.clone().add(N, x), T = v - d < 0, j = w.clone().add(N + (T ? -1 : 1), x);
|
|
3710
|
+
return +(-(N + (v - d) / (T ? d - j : j - d)) || 0);
|
|
3704
3711
|
}, a: function(z) {
|
|
3705
3712
|
return z < 0 ? Math.ceil(z) || 0 : Math.floor(z);
|
|
3706
3713
|
}, p: function(z) {
|
|
3707
|
-
return { M:
|
|
3714
|
+
return { M: x, y: C, w: b, d: m, D: h, h: i, m: c, s: o, ms: l, Q: u }[z] || String(z || "").toLowerCase().replace(/s$/, "");
|
|
3708
3715
|
}, u: function(z) {
|
|
3709
3716
|
return z === void 0;
|
|
3710
|
-
} },
|
|
3711
|
-
|
|
3717
|
+
} }, I = "en", E = {};
|
|
3718
|
+
E[I] = g;
|
|
3712
3719
|
var B = "$isDayjsObject", k = function(z) {
|
|
3713
|
-
return z instanceof
|
|
3720
|
+
return z instanceof O || !(!z || !z[B]);
|
|
3714
3721
|
}, U = function z(w, v, N) {
|
|
3715
3722
|
var d;
|
|
3716
|
-
if (!w) return
|
|
3723
|
+
if (!w) return I;
|
|
3717
3724
|
if (typeof w == "string") {
|
|
3718
|
-
var
|
|
3719
|
-
|
|
3720
|
-
var
|
|
3721
|
-
if (!d &&
|
|
3725
|
+
var T = w.toLowerCase();
|
|
3726
|
+
E[T] && (d = T), v && (E[T] = v, d = T);
|
|
3727
|
+
var j = w.split("-");
|
|
3728
|
+
if (!d && j.length > 1) return z(j[0]);
|
|
3722
3729
|
} else {
|
|
3723
3730
|
var G = w.name;
|
|
3724
|
-
|
|
3731
|
+
E[G] = w, d = G;
|
|
3725
3732
|
}
|
|
3726
|
-
return !N && d && (
|
|
3733
|
+
return !N && d && (I = d), d || !N && I;
|
|
3727
3734
|
}, D = function(z, w) {
|
|
3728
3735
|
if (k(z)) return z.clone();
|
|
3729
3736
|
var v = typeof w == "object" ? w : {};
|
|
3730
|
-
return v.date = z, v.args = arguments, new
|
|
3731
|
-
},
|
|
3732
|
-
|
|
3737
|
+
return v.date = z, v.args = arguments, new O(v);
|
|
3738
|
+
}, p = A;
|
|
3739
|
+
p.l = U, p.i = k, p.w = function(z, w) {
|
|
3733
3740
|
return D(z, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
|
|
3734
3741
|
};
|
|
3735
|
-
var
|
|
3742
|
+
var O = function() {
|
|
3736
3743
|
function z(v) {
|
|
3737
3744
|
this.$L = U(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[B] = !0;
|
|
3738
3745
|
}
|
|
3739
3746
|
var w = z.prototype;
|
|
3740
3747
|
return w.parse = function(v) {
|
|
3741
3748
|
this.$d = function(N) {
|
|
3742
|
-
var d = N.date,
|
|
3749
|
+
var d = N.date, T = N.utc;
|
|
3743
3750
|
if (d === null) return /* @__PURE__ */ new Date(NaN);
|
|
3744
|
-
if (
|
|
3751
|
+
if (p.u(d)) return /* @__PURE__ */ new Date();
|
|
3745
3752
|
if (d instanceof Date) return new Date(d);
|
|
3746
3753
|
if (typeof d == "string" && !/Z$/i.test(d)) {
|
|
3747
|
-
var
|
|
3748
|
-
if (
|
|
3749
|
-
var G =
|
|
3750
|
-
return
|
|
3754
|
+
var j = d.match($);
|
|
3755
|
+
if (j) {
|
|
3756
|
+
var G = j[2] - 1 || 0, K = (j[7] || "0").substring(0, 3);
|
|
3757
|
+
return T ? new Date(Date.UTC(j[1], G, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, K)) : new Date(j[1], G, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, K);
|
|
3751
3758
|
}
|
|
3752
3759
|
}
|
|
3753
3760
|
return new Date(d);
|
|
@@ -3756,9 +3763,9 @@ function Z0() {
|
|
|
3756
3763
|
var v = this.$d;
|
|
3757
3764
|
this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
|
|
3758
3765
|
}, w.$utils = function() {
|
|
3759
|
-
return
|
|
3766
|
+
return p;
|
|
3760
3767
|
}, w.isValid = function() {
|
|
3761
|
-
return this.$d.toString() !==
|
|
3768
|
+
return this.$d.toString() !== _;
|
|
3762
3769
|
}, w.isSame = function(v, N) {
|
|
3763
3770
|
var d = D(v);
|
|
3764
3771
|
return this.startOf(N) <= d && d <= this.endOf(N);
|
|
@@ -3767,28 +3774,28 @@ function Z0() {
|
|
|
3767
3774
|
}, w.isBefore = function(v, N) {
|
|
3768
3775
|
return this.endOf(N) < D(v);
|
|
3769
3776
|
}, w.$g = function(v, N, d) {
|
|
3770
|
-
return
|
|
3777
|
+
return p.u(v) ? this[N] : this.set(d, v);
|
|
3771
3778
|
}, w.unix = function() {
|
|
3772
3779
|
return Math.floor(this.valueOf() / 1e3);
|
|
3773
3780
|
}, w.valueOf = function() {
|
|
3774
3781
|
return this.$d.getTime();
|
|
3775
3782
|
}, w.startOf = function(v, N) {
|
|
3776
|
-
var d = this,
|
|
3777
|
-
var se =
|
|
3778
|
-
return
|
|
3783
|
+
var d = this, T = !!p.u(N) || N, j = p.p(v), G = function(te, q) {
|
|
3784
|
+
var se = p.w(d.$u ? Date.UTC(d.$y, q, te) : new Date(d.$y, q, te), d);
|
|
3785
|
+
return T ? se : se.endOf(m);
|
|
3779
3786
|
}, K = function(te, q) {
|
|
3780
|
-
return
|
|
3787
|
+
return p.w(d.toDate()[te].apply(d.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(q)), d);
|
|
3781
3788
|
}, Y = this.$W, P = this.$M, Q = this.$D, ae = "set" + (this.$u ? "UTC" : "");
|
|
3782
|
-
switch (
|
|
3789
|
+
switch (j) {
|
|
3783
3790
|
case C:
|
|
3784
|
-
return
|
|
3785
|
-
case
|
|
3786
|
-
return
|
|
3791
|
+
return T ? G(1, 0) : G(31, 11);
|
|
3792
|
+
case x:
|
|
3793
|
+
return T ? G(1, P) : G(0, P + 1);
|
|
3787
3794
|
case b:
|
|
3788
3795
|
var W = this.$locale().weekStart || 0, ie = (Y < W ? Y + 7 : Y) - W;
|
|
3789
|
-
return G(
|
|
3796
|
+
return G(T ? Q - ie : Q + (6 - ie), P);
|
|
3790
3797
|
case m:
|
|
3791
|
-
case
|
|
3798
|
+
case h:
|
|
3792
3799
|
return K(ae + "Hours", 0);
|
|
3793
3800
|
case i:
|
|
3794
3801
|
return K(ae + "Minutes", 1);
|
|
@@ -3802,53 +3809,53 @@ function Z0() {
|
|
|
3802
3809
|
}, w.endOf = function(v) {
|
|
3803
3810
|
return this.startOf(v, !1);
|
|
3804
3811
|
}, w.$set = function(v, N) {
|
|
3805
|
-
var d,
|
|
3806
|
-
if (
|
|
3807
|
-
var Y = this.clone().set(
|
|
3808
|
-
Y.$d[G](K), Y.init(), this.$d = Y.set(
|
|
3812
|
+
var d, T = p.p(v), j = "set" + (this.$u ? "UTC" : ""), G = (d = {}, d[m] = j + "Date", d[h] = j + "Date", d[x] = j + "Month", d[C] = j + "FullYear", d[i] = j + "Hours", d[c] = j + "Minutes", d[o] = j + "Seconds", d[l] = j + "Milliseconds", d)[T], K = T === m ? this.$D + (N - this.$W) : N;
|
|
3813
|
+
if (T === x || T === C) {
|
|
3814
|
+
var Y = this.clone().set(h, 1);
|
|
3815
|
+
Y.$d[G](K), Y.init(), this.$d = Y.set(h, Math.min(this.$D, Y.daysInMonth())).$d;
|
|
3809
3816
|
} else G && this.$d[G](K);
|
|
3810
3817
|
return this.init(), this;
|
|
3811
3818
|
}, w.set = function(v, N) {
|
|
3812
3819
|
return this.clone().$set(v, N);
|
|
3813
3820
|
}, w.get = function(v) {
|
|
3814
|
-
return this[
|
|
3821
|
+
return this[p.p(v)]();
|
|
3815
3822
|
}, w.add = function(v, N) {
|
|
3816
|
-
var d,
|
|
3823
|
+
var d, T = this;
|
|
3817
3824
|
v = Number(v);
|
|
3818
|
-
var
|
|
3819
|
-
var Q = D(
|
|
3820
|
-
return
|
|
3825
|
+
var j = p.p(N), G = function(P) {
|
|
3826
|
+
var Q = D(T);
|
|
3827
|
+
return p.w(Q.date(Q.date() + Math.round(P * v)), T);
|
|
3821
3828
|
};
|
|
3822
|
-
if (
|
|
3823
|
-
if (
|
|
3824
|
-
if (
|
|
3825
|
-
if (
|
|
3826
|
-
var K = (d = {}, d[c] = r, d[i] = a, d[o] = n, d)[
|
|
3827
|
-
return
|
|
3829
|
+
if (j === x) return this.set(x, this.$M + v);
|
|
3830
|
+
if (j === C) return this.set(C, this.$y + v);
|
|
3831
|
+
if (j === m) return G(1);
|
|
3832
|
+
if (j === b) return G(7);
|
|
3833
|
+
var K = (d = {}, d[c] = r, d[i] = a, d[o] = n, d)[j] || 1, Y = this.$d.getTime() + v * K;
|
|
3834
|
+
return p.w(Y, this);
|
|
3828
3835
|
}, w.subtract = function(v, N) {
|
|
3829
3836
|
return this.add(-1 * v, N);
|
|
3830
3837
|
}, w.format = function(v) {
|
|
3831
3838
|
var N = this, d = this.$locale();
|
|
3832
|
-
if (!this.isValid()) return d.invalidDate ||
|
|
3833
|
-
var
|
|
3834
|
-
return q && (q[se] || q(N,
|
|
3839
|
+
if (!this.isValid()) return d.invalidDate || _;
|
|
3840
|
+
var T = v || "YYYY-MM-DDTHH:mm:ssZ", j = p.z(this), G = this.$H, K = this.$m, Y = this.$M, P = d.weekdays, Q = d.months, ae = d.meridiem, W = function(q, se, re, xe) {
|
|
3841
|
+
return q && (q[se] || q(N, T)) || re[se].slice(0, xe);
|
|
3835
3842
|
}, ie = function(q) {
|
|
3836
|
-
return
|
|
3843
|
+
return p.s(G % 12 || 12, q, "0");
|
|
3837
3844
|
}, te = ae || function(q, se, re) {
|
|
3838
3845
|
var xe = q < 12 ? "AM" : "PM";
|
|
3839
3846
|
return re ? xe.toLowerCase() : xe;
|
|
3840
3847
|
};
|
|
3841
|
-
return
|
|
3848
|
+
return T.replace(y, function(q, se) {
|
|
3842
3849
|
return se || function(re) {
|
|
3843
3850
|
switch (re) {
|
|
3844
3851
|
case "YY":
|
|
3845
3852
|
return String(N.$y).slice(-2);
|
|
3846
3853
|
case "YYYY":
|
|
3847
|
-
return
|
|
3854
|
+
return p.s(N.$y, 4, "0");
|
|
3848
3855
|
case "M":
|
|
3849
3856
|
return Y + 1;
|
|
3850
3857
|
case "MM":
|
|
3851
|
-
return
|
|
3858
|
+
return p.s(Y + 1, 2, "0");
|
|
3852
3859
|
case "MMM":
|
|
3853
3860
|
return W(d.monthsShort, Y, Q, 3);
|
|
3854
3861
|
case "MMMM":
|
|
@@ -3856,7 +3863,7 @@ function Z0() {
|
|
|
3856
3863
|
case "D":
|
|
3857
3864
|
return N.$D;
|
|
3858
3865
|
case "DD":
|
|
3859
|
-
return
|
|
3866
|
+
return p.s(N.$D, 2, "0");
|
|
3860
3867
|
case "d":
|
|
3861
3868
|
return String(N.$W);
|
|
3862
3869
|
case "dd":
|
|
@@ -3868,7 +3875,7 @@ function Z0() {
|
|
|
3868
3875
|
case "H":
|
|
3869
3876
|
return String(G);
|
|
3870
3877
|
case "HH":
|
|
3871
|
-
return
|
|
3878
|
+
return p.s(G, 2, "0");
|
|
3872
3879
|
case "h":
|
|
3873
3880
|
return ie(1);
|
|
3874
3881
|
case "hh":
|
|
@@ -3880,64 +3887,64 @@ function Z0() {
|
|
|
3880
3887
|
case "m":
|
|
3881
3888
|
return String(K);
|
|
3882
3889
|
case "mm":
|
|
3883
|
-
return
|
|
3890
|
+
return p.s(K, 2, "0");
|
|
3884
3891
|
case "s":
|
|
3885
3892
|
return String(N.$s);
|
|
3886
3893
|
case "ss":
|
|
3887
|
-
return
|
|
3894
|
+
return p.s(N.$s, 2, "0");
|
|
3888
3895
|
case "SSS":
|
|
3889
|
-
return
|
|
3896
|
+
return p.s(N.$ms, 3, "0");
|
|
3890
3897
|
case "Z":
|
|
3891
|
-
return
|
|
3898
|
+
return j;
|
|
3892
3899
|
}
|
|
3893
3900
|
return null;
|
|
3894
|
-
}(q) ||
|
|
3901
|
+
}(q) || j.replace(":", "");
|
|
3895
3902
|
});
|
|
3896
3903
|
}, w.utcOffset = function() {
|
|
3897
3904
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3898
3905
|
}, w.diff = function(v, N, d) {
|
|
3899
|
-
var
|
|
3900
|
-
return
|
|
3906
|
+
var T, j = this, G = p.p(N), K = D(v), Y = (K.utcOffset() - this.utcOffset()) * r, P = this - K, Q = function() {
|
|
3907
|
+
return p.m(j, K);
|
|
3901
3908
|
};
|
|
3902
3909
|
switch (G) {
|
|
3903
3910
|
case C:
|
|
3904
|
-
|
|
3911
|
+
T = Q() / 12;
|
|
3905
3912
|
break;
|
|
3906
|
-
case
|
|
3907
|
-
|
|
3913
|
+
case x:
|
|
3914
|
+
T = Q();
|
|
3908
3915
|
break;
|
|
3909
3916
|
case u:
|
|
3910
|
-
|
|
3917
|
+
T = Q() / 3;
|
|
3911
3918
|
break;
|
|
3912
3919
|
case b:
|
|
3913
|
-
|
|
3920
|
+
T = (P - Y) / 6048e5;
|
|
3914
3921
|
break;
|
|
3915
3922
|
case m:
|
|
3916
|
-
|
|
3923
|
+
T = (P - Y) / 864e5;
|
|
3917
3924
|
break;
|
|
3918
3925
|
case i:
|
|
3919
|
-
|
|
3926
|
+
T = P / a;
|
|
3920
3927
|
break;
|
|
3921
3928
|
case c:
|
|
3922
|
-
|
|
3929
|
+
T = P / r;
|
|
3923
3930
|
break;
|
|
3924
3931
|
case o:
|
|
3925
|
-
|
|
3932
|
+
T = P / n;
|
|
3926
3933
|
break;
|
|
3927
3934
|
default:
|
|
3928
|
-
|
|
3935
|
+
T = P;
|
|
3929
3936
|
}
|
|
3930
|
-
return d ?
|
|
3937
|
+
return d ? T : p.a(T);
|
|
3931
3938
|
}, w.daysInMonth = function() {
|
|
3932
|
-
return this.endOf(
|
|
3939
|
+
return this.endOf(x).$D;
|
|
3933
3940
|
}, w.$locale = function() {
|
|
3934
|
-
return
|
|
3941
|
+
return E[this.$L];
|
|
3935
3942
|
}, w.locale = function(v, N) {
|
|
3936
3943
|
if (!v) return this.$L;
|
|
3937
|
-
var d = this.clone(),
|
|
3938
|
-
return
|
|
3944
|
+
var d = this.clone(), T = U(v, N, !0);
|
|
3945
|
+
return T && (d.$L = T), d;
|
|
3939
3946
|
}, w.clone = function() {
|
|
3940
|
-
return
|
|
3947
|
+
return p.w(this.$d, this);
|
|
3941
3948
|
}, w.toDate = function() {
|
|
3942
3949
|
return new Date(this.valueOf());
|
|
3943
3950
|
}, w.toJSON = function() {
|
|
@@ -3947,62 +3954,62 @@ function Z0() {
|
|
|
3947
3954
|
}, w.toString = function() {
|
|
3948
3955
|
return this.$d.toUTCString();
|
|
3949
3956
|
}, z;
|
|
3950
|
-
}(), F =
|
|
3951
|
-
return D.prototype = F, [["$ms", l], ["$s", o], ["$m", c], ["$H", i], ["$W", m], ["$M",
|
|
3957
|
+
}(), F = O.prototype;
|
|
3958
|
+
return D.prototype = F, [["$ms", l], ["$s", o], ["$m", c], ["$H", i], ["$W", m], ["$M", x], ["$y", C], ["$D", h]].forEach(function(z) {
|
|
3952
3959
|
F[z[1]] = function(w) {
|
|
3953
3960
|
return this.$g(w, z[0], z[1]);
|
|
3954
3961
|
};
|
|
3955
3962
|
}), D.extend = function(z, w) {
|
|
3956
|
-
return z.$i || (z(w,
|
|
3963
|
+
return z.$i || (z(w, O, D), z.$i = !0), D;
|
|
3957
3964
|
}, D.locale = U, D.isDayjs = k, D.unix = function(z) {
|
|
3958
3965
|
return D(1e3 * z);
|
|
3959
|
-
}, D.en =
|
|
3966
|
+
}, D.en = E[I], D.Ls = E, D.p = {}, D;
|
|
3960
3967
|
});
|
|
3961
3968
|
}(Ne)), Ne.exports;
|
|
3962
3969
|
}
|
|
3963
3970
|
var Y0 = Z0();
|
|
3964
|
-
const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='
|
|
3971
|
+
const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='54px'%20viewBox='0%200%2024%2024'%20width='54px'%20fill='%23000000'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M9%2011H7v2h2v-2zm4%200h-2v2h2v-2zm4%200h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11%200-1.99.9-1.99%202L3%2020c0%201.1.89%202%202%202h14c1.1%200%202-.9%202-2V6c0-1.1-.9-2-2-2zm0%2016H5V9h14v11z'/%3e%3c/svg%3e", It = ({
|
|
3965
3972
|
id: e,
|
|
3966
3973
|
label: t,
|
|
3967
3974
|
value: n,
|
|
3968
3975
|
onChange: r
|
|
3969
3976
|
}) => {
|
|
3970
|
-
const [a, l] =
|
|
3977
|
+
const [a, l] = H(!1), [o, c] = H(n), [i, m] = H(!0), [b, x] = H(!!n), [u, C] = H(
|
|
3971
3978
|
pe(n, "MM-DD-YYYY", !0).isValid() ? pe(n, "MM-DD-YYYY", !0) : null
|
|
3972
|
-
),
|
|
3979
|
+
), h = X(null), _ = X(null), $ = X(null), y = (u == null ? void 0 : u.daysInMonth()) || 30, g = (u == null ? void 0 : u.startOf("month").day()) || 0;
|
|
3973
3980
|
Z(() => {
|
|
3974
|
-
o || (n = pe().format("MM-DD-YYYY"),
|
|
3981
|
+
o || (n = pe().format("MM-DD-YYYY"), x(!1)), c(n);
|
|
3975
3982
|
const D = pe(n, "MM-DD-YYYY", !0);
|
|
3976
3983
|
C(D.isValid() ? D : null), m(D.isValid() && n !== "");
|
|
3977
3984
|
}, [n]), Z(() => {
|
|
3978
|
-
function D(
|
|
3979
|
-
|
|
3985
|
+
function D(p) {
|
|
3986
|
+
h.current && (h.current.contains(p.target) || l(!1));
|
|
3980
3987
|
}
|
|
3981
3988
|
if (a && $.current) {
|
|
3982
|
-
const
|
|
3989
|
+
const p = $.current.querySelector(
|
|
3983
3990
|
'[role="button"]:not([disabled])'
|
|
3984
3991
|
);
|
|
3985
|
-
|
|
3992
|
+
p == null || p.focus(), document.addEventListener("mousedown", D);
|
|
3986
3993
|
}
|
|
3987
3994
|
return () => {
|
|
3988
3995
|
document.removeEventListener("mousedown", D);
|
|
3989
3996
|
};
|
|
3990
3997
|
}, [a]);
|
|
3991
|
-
const
|
|
3992
|
-
var
|
|
3993
|
-
const
|
|
3994
|
-
|
|
3995
|
-
},
|
|
3996
|
-
D.key === "Enter" &&
|
|
3997
|
-
},
|
|
3998
|
-
const
|
|
3999
|
-
if (c(
|
|
4000
|
-
m(!1), r(
|
|
3998
|
+
const M = (D) => {
|
|
3999
|
+
var O;
|
|
4000
|
+
const p = D.format("MM-DD-YYYY");
|
|
4001
|
+
x(!0), C(D), c(p), m(!0), r(p), l(!1), (O = _.current) == null || O.focus();
|
|
4002
|
+
}, A = (D, p) => {
|
|
4003
|
+
D.key === "Enter" && M(p);
|
|
4004
|
+
}, I = (D) => {
|
|
4005
|
+
const p = D.target.value;
|
|
4006
|
+
if (c(p), x(!0), !/^\d{1,2}-\d{2}-\d{4}$/.test(p)) {
|
|
4007
|
+
m(!1), r(p);
|
|
4001
4008
|
return;
|
|
4002
4009
|
}
|
|
4003
|
-
const F = pe(
|
|
4004
|
-
F.isValid() ? (console.log("MAYBEDATE IS VALID"), C(F), m(!0), r(
|
|
4005
|
-
},
|
|
4010
|
+
const F = pe(p, "MM-DD-YYYY", !0);
|
|
4011
|
+
F.isValid() ? (console.log("MAYBEDATE IS VALID"), C(F), m(!0), r(p)) : (console.log("MAYBEDATE IS --NOT-- VALID"), m(!1), r(p));
|
|
4012
|
+
}, E = () => {
|
|
4006
4013
|
l((D) => !D);
|
|
4007
4014
|
}, B = () => {
|
|
4008
4015
|
u && C(u.subtract(1, "month"));
|
|
@@ -4011,28 +4018,28 @@ const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
4011
4018
|
}, U = () => {
|
|
4012
4019
|
if (!u) return null;
|
|
4013
4020
|
const D = [];
|
|
4014
|
-
for (let
|
|
4015
|
-
D.push(/* @__PURE__ */ s("div", { className: "w-8 h-8" }, `empty-${
|
|
4016
|
-
for (let
|
|
4017
|
-
const
|
|
4021
|
+
for (let p = 0; p < g; p++)
|
|
4022
|
+
D.push(/* @__PURE__ */ s("div", { className: "w-8 h-8" }, `empty-${p}`));
|
|
4023
|
+
for (let p = 1; p <= y; p++) {
|
|
4024
|
+
const O = u.date(p);
|
|
4018
4025
|
D.push(
|
|
4019
4026
|
/* @__PURE__ */ s(
|
|
4020
4027
|
"button",
|
|
4021
4028
|
{
|
|
4022
4029
|
tabIndex: 0,
|
|
4023
|
-
onClick: () =>
|
|
4024
|
-
onKeyDown: (F) =>
|
|
4025
|
-
className: `w-8 h-8 ${
|
|
4026
|
-
"aria-label":
|
|
4027
|
-
children:
|
|
4030
|
+
onClick: () => M(O),
|
|
4031
|
+
onKeyDown: (F) => A(F, O),
|
|
4032
|
+
className: `w-8 h-8 ${O.isSame(u, "date") ? "bg-blue-600 text-white" : ""} hover:bg-blue-100 focus:ring`,
|
|
4033
|
+
"aria-label": O.format("MMMM D, YYYY"),
|
|
4034
|
+
children: p
|
|
4028
4035
|
},
|
|
4029
|
-
|
|
4036
|
+
p
|
|
4030
4037
|
)
|
|
4031
4038
|
);
|
|
4032
4039
|
}
|
|
4033
4040
|
return D;
|
|
4034
4041
|
};
|
|
4035
|
-
return /* @__PURE__ */ L("div", { className: "relative", ref:
|
|
4042
|
+
return /* @__PURE__ */ L("div", { className: "relative", ref: h, children: [
|
|
4036
4043
|
/* @__PURE__ */ s("label", { htmlFor: e, id: "date-picker-input", className: "block text-sm font-medium text-gray-700", children: t }),
|
|
4037
4044
|
/* @__PURE__ */ L("div", { className: "flex items-center mt-1", children: [
|
|
4038
4045
|
/* @__PURE__ */ s(
|
|
@@ -4041,9 +4048,9 @@ const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
4041
4048
|
id: e,
|
|
4042
4049
|
type: "text",
|
|
4043
4050
|
"aria-labelledby": "date-picker-input",
|
|
4044
|
-
ref:
|
|
4051
|
+
ref: _,
|
|
4045
4052
|
value: b ? o : "",
|
|
4046
|
-
onChange:
|
|
4053
|
+
onChange: I,
|
|
4047
4054
|
placeholder: "MM-DD-YYYY",
|
|
4048
4055
|
className: `block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
|
|
4049
4056
|
focus:border-blue-500 pl-1 focus:outline-hidden`
|
|
@@ -4053,7 +4060,7 @@ const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
4053
4060
|
"button",
|
|
4054
4061
|
{
|
|
4055
4062
|
type: "button",
|
|
4056
|
-
onClick:
|
|
4063
|
+
onClick: E,
|
|
4057
4064
|
className: `px-3 py-2 bg-gray-100 border-2 border-gray-300 rounded-r-md rounded-l-none hover:bg-gray-200
|
|
4058
4065
|
focus:outline-hidden focus:border-blue-500`,
|
|
4059
4066
|
"aria-label": "Open calendar",
|
|
@@ -4141,28 +4148,28 @@ const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
4141
4148
|
};
|
|
4142
4149
|
var G0 = /* @__PURE__ */ ((e) => (e.Right = "right", e.Left = "left", e.IconOnly = "iconOnly", e.None = "undefined", e))(G0 || {});
|
|
4143
4150
|
const Ht = ({ variant: e = "default", tabs: t, className: n, classNameContainer: r, customActiveClass: a, customInactiveClass: l }) => {
|
|
4144
|
-
const [o, c] =
|
|
4151
|
+
const [o, c] = H(0), [i, m] = H(!1), [b, x] = H(""), u = X([]);
|
|
4145
4152
|
e === "" && (e = "default");
|
|
4146
4153
|
const C = Me((g) => {
|
|
4147
|
-
var
|
|
4148
|
-
(
|
|
4149
|
-
}, []),
|
|
4150
|
-
|
|
4151
|
-
},
|
|
4152
|
-
u.current[g] =
|
|
4154
|
+
var M;
|
|
4155
|
+
(M = u.current[g]) == null || M.focus();
|
|
4156
|
+
}, []), h = (g, M) => {
|
|
4157
|
+
M && M(), c(g);
|
|
4158
|
+
}, _ = (g) => (M) => {
|
|
4159
|
+
u.current[g] = M;
|
|
4153
4160
|
}, $ = Me(
|
|
4154
|
-
(g,
|
|
4161
|
+
(g, M) => {
|
|
4155
4162
|
if (g.key === "ArrowRight") {
|
|
4156
|
-
const
|
|
4157
|
-
c(
|
|
4163
|
+
const A = (M + 1) % t.length;
|
|
4164
|
+
c(A), C(A);
|
|
4158
4165
|
} else if (g.key === "ArrowLeft") {
|
|
4159
|
-
const
|
|
4160
|
-
c(
|
|
4166
|
+
const A = (M - 1 + t.length) % t.length;
|
|
4167
|
+
c(A), C(A);
|
|
4161
4168
|
} else g.key === "Home" ? (c(0), C(0)) : g.key === "End" && (c(t.length - 1), C(t.length - 1));
|
|
4162
4169
|
},
|
|
4163
4170
|
[t.length, C]
|
|
4164
4171
|
), y = (g) => {
|
|
4165
|
-
m(!0),
|
|
4172
|
+
m(!0), x(g);
|
|
4166
4173
|
};
|
|
4167
4174
|
return /* @__PURE__ */ L("div", { className: f("w-full", r), children: [
|
|
4168
4175
|
/* @__PURE__ */ s(
|
|
@@ -4171,37 +4178,37 @@ const Ht = ({ variant: e = "default", tabs: t, className: n, classNameContainer:
|
|
|
4171
4178
|
role: "tablist",
|
|
4172
4179
|
"aria-label": "Tabs",
|
|
4173
4180
|
className: f(Ie[e].container, n),
|
|
4174
|
-
children: t.map((g,
|
|
4181
|
+
children: t.map((g, M) => /* @__PURE__ */ L(
|
|
4175
4182
|
"button",
|
|
4176
4183
|
{
|
|
4177
4184
|
role: "tab",
|
|
4178
4185
|
id: `tab-${g.id}`,
|
|
4179
4186
|
onMouseEnter: () => y(g.id),
|
|
4180
4187
|
onMouseLeave: () => m(!1),
|
|
4181
|
-
"aria-selected": o ===
|
|
4188
|
+
"aria-selected": o === M,
|
|
4182
4189
|
"aria-controls": `panel-${g.id}`,
|
|
4183
|
-
tabIndex: o ===
|
|
4184
|
-
ref: M
|
|
4185
|
-
className: `flex px-6 py-3 md:py-[14px] lg:py-4 focus:outline-hidden ${e === "outline" ? `border-[#092068] ${
|
|
4186
|
-
onClick: () =>
|
|
4187
|
-
onKeyDown: (
|
|
4190
|
+
tabIndex: o === M ? 0 : -1,
|
|
4191
|
+
ref: _(M),
|
|
4192
|
+
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 === t.length - 1 ? "border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md" : "border-t-2 border-b-2"}` : ""} ${o === M ? f(Ie[e].active, a) : f(Ie[e].inactive, l)}`,
|
|
4193
|
+
onClick: () => h(M, g.onClick),
|
|
4194
|
+
onKeyDown: (A) => $(A, M),
|
|
4188
4195
|
children: [
|
|
4189
|
-
g.iconPosition === "left" && g.activeIcon && /* @__PURE__ */ s("span", { className: "icon-left mr-3 size-6 lg:mt-0.5", children: o ===
|
|
4190
|
-
g.iconPosition === "iconOnly" && g.activeIcon ? /* @__PURE__ */ s("span", { className: "size-6 lg:mt-0.5", children: o ===
|
|
4191
|
-
g.iconPosition === "right" && g.activeIcon && /* @__PURE__ */ s("span", { className: "icon-right ml-3 size-6 lg:mt-0.5", children: o ===
|
|
4196
|
+
g.iconPosition === "left" && g.activeIcon && /* @__PURE__ */ s("span", { className: "icon-left mr-3 size-6 lg:mt-0.5", children: o === M ? i && b === g.id ? g.inactiveIcon : g.activeIcon : g.inactiveIcon }),
|
|
4197
|
+
g.iconPosition === "iconOnly" && g.activeIcon ? /* @__PURE__ */ s("span", { className: "size-6 lg:mt-0.5", children: o === M ? i && b === g.id ? g.inactiveIcon : g.activeIcon : g.inactiveIcon }) : /* @__PURE__ */ s("span", { className: "text-sm md:text-base lg:text-lg mt-0.5 md:mt-0", children: g.label }),
|
|
4198
|
+
g.iconPosition === "right" && g.activeIcon && /* @__PURE__ */ s("span", { className: "icon-right ml-3 size-6 lg:mt-0.5", children: o === M ? i && b === g.id ? g.inactiveIcon : g.activeIcon : g.inactiveIcon })
|
|
4192
4199
|
]
|
|
4193
4200
|
},
|
|
4194
4201
|
g.id
|
|
4195
4202
|
))
|
|
4196
4203
|
}
|
|
4197
4204
|
),
|
|
4198
|
-
t.map((g,
|
|
4205
|
+
t.map((g, M) => /* @__PURE__ */ s(
|
|
4199
4206
|
"div",
|
|
4200
4207
|
{
|
|
4201
4208
|
role: "tabpanel",
|
|
4202
4209
|
id: `panel-${g.id}`,
|
|
4203
4210
|
"aria-labelledby": `tab-${g.id}`,
|
|
4204
|
-
hidden: o !==
|
|
4211
|
+
hidden: o !== M,
|
|
4205
4212
|
className: "p-4",
|
|
4206
4213
|
children: g.content
|
|
4207
4214
|
},
|
|
@@ -4258,40 +4265,40 @@ const e2 = "px-4 py-3 arial rounded-lg border border-[#B3B3B3] mx-2 bg-white hov
|
|
|
4258
4265
|
textShadow: i = !1,
|
|
4259
4266
|
mask: m,
|
|
4260
4267
|
disabled: b,
|
|
4261
|
-
...
|
|
4268
|
+
...x
|
|
4262
4269
|
}, u) => {
|
|
4263
|
-
const [C,
|
|
4264
|
-
const
|
|
4265
|
-
B(m ? D(
|
|
4270
|
+
const [C, h] = H(), [_, $] = H(e2), [y, g] = H(""), [M, A] = H(!1), I = X(null), [E, B] = H(""), k = "border-[#D54309] border", U = (p) => {
|
|
4271
|
+
const O = p.target.value;
|
|
4272
|
+
B(m ? D(O) : O);
|
|
4266
4273
|
};
|
|
4267
|
-
function D(
|
|
4268
|
-
let
|
|
4274
|
+
function D(p) {
|
|
4275
|
+
let O = "", F = 0;
|
|
4269
4276
|
if (m)
|
|
4270
|
-
for (;
|
|
4271
|
-
m[F] !== "#" && m[F] !== "@" ? m[F] ===
|
|
4272
|
-
return
|
|
4277
|
+
for (; p.length > 0 && F < m.length; )
|
|
4278
|
+
m[F] !== "#" && m[F] !== "@" ? m[F] === p[0] ? (O += p[0], p = p.slice(1), F++) : ((Xe(p[0]) && Qe(m, F) === "@" || Je(p[0]) && Qe(m, F) === "#") && (O += m[F]), F++) : m[F] === "#" && Je(p[0]) || m[F] === "@" && Xe(p[0]) ? (O += p[0], p = p.slice(1), F++) : p = p.slice(1);
|
|
4279
|
+
return O;
|
|
4273
4280
|
}
|
|
4274
4281
|
if (Z(() => {
|
|
4275
|
-
var
|
|
4282
|
+
var p, O, F;
|
|
4276
4283
|
t && ($(f(
|
|
4277
4284
|
e2,
|
|
4278
|
-
(
|
|
4285
|
+
(p = He.find((z) => z.variant === t)) == null ? void 0 : p.classes,
|
|
4279
4286
|
c && k,
|
|
4280
4287
|
e
|
|
4281
|
-
)), g(f(r ? (
|
|
4282
|
-
}, [e, a, t,
|
|
4288
|
+
)), g(f(r ? (O = He.find((z) => z.variant === t)) == null ? void 0 : O.insetLabelClasses : (F = He.find((z) => z.variant === t)) == null ? void 0 : F.labelClasses, a)));
|
|
4289
|
+
}, [e, a, t, M, r, c]), Z(() => {
|
|
4283
4290
|
if (r) {
|
|
4284
|
-
const
|
|
4285
|
-
if (!
|
|
4286
|
-
const
|
|
4287
|
-
const z = getComputedStyle(
|
|
4288
|
-
|
|
4291
|
+
const p = I.current;
|
|
4292
|
+
if (!p) return;
|
|
4293
|
+
const O = (F) => {
|
|
4294
|
+
const z = getComputedStyle(p);
|
|
4295
|
+
h(z.backgroundColor), A(F);
|
|
4289
4296
|
};
|
|
4290
|
-
return
|
|
4291
|
-
|
|
4297
|
+
return O(!0), p.addEventListener("mouseover", () => O(!0)), p.addEventListener("mouseout", () => O(!1)), () => {
|
|
4298
|
+
p.removeEventListener("mouseover", () => O), p.removeEventListener("mouseout", () => O);
|
|
4292
4299
|
};
|
|
4293
4300
|
}
|
|
4294
|
-
}, [o, r,
|
|
4301
|
+
}, [o, r, M, b]), !["default", "outline", "nonHover"].includes(t))
|
|
4295
4302
|
throw new Error(
|
|
4296
4303
|
`Invalid variant: "${t}". Valid variants are: "default", "outline", and "nonHover".`
|
|
4297
4304
|
);
|
|
@@ -4306,22 +4313,22 @@ const e2 = "px-4 py-3 arial rounded-lg border border-[#B3B3B3] mx-2 bg-white hov
|
|
|
4306
4313
|
} : { textShadow: i ? `1px 1px 2px ${o}, 0 0 1em ${o}, 0 0 0.2em ${o}` : "" },
|
|
4307
4314
|
children: [
|
|
4308
4315
|
n,
|
|
4309
|
-
|
|
4316
|
+
x.required && /* @__PURE__ */ s("span", { className: f("absolute text-red-500 ms-0.5 -mt-1", l), children: "*" })
|
|
4310
4317
|
]
|
|
4311
4318
|
}
|
|
4312
4319
|
),
|
|
4313
4320
|
/* @__PURE__ */ s(
|
|
4314
4321
|
"input",
|
|
4315
4322
|
{
|
|
4316
|
-
className:
|
|
4323
|
+
className: _,
|
|
4317
4324
|
"aria-label": n,
|
|
4318
|
-
value:
|
|
4325
|
+
value: E,
|
|
4319
4326
|
onChange: U,
|
|
4320
4327
|
disabled: b,
|
|
4321
|
-
ref: (
|
|
4322
|
-
typeof u == "function" ? u(
|
|
4328
|
+
ref: (p) => {
|
|
4329
|
+
typeof u == "function" ? u(p) : u && (u.current = p), I.current = p;
|
|
4323
4330
|
},
|
|
4324
|
-
...
|
|
4331
|
+
...x
|
|
4325
4332
|
}
|
|
4326
4333
|
)
|
|
4327
4334
|
] });
|
|
@@ -4340,7 +4347,7 @@ const K0 = ({
|
|
|
4340
4347
|
isDisc: i = !1,
|
|
4341
4348
|
isAlphabetical: m = !1,
|
|
4342
4349
|
isRomanNumeral: b = !1,
|
|
4343
|
-
isInline:
|
|
4350
|
+
isInline: x = !1
|
|
4344
4351
|
}) => /* @__PURE__ */ L("div", { className: "p-0 m-0", children: [
|
|
4345
4352
|
/* @__PURE__ */ s("p", { children: t }),
|
|
4346
4353
|
/* @__PURE__ */ L("ul", { className: f("pl-6 list-none w-full", c ? "list-decimal" : "", i ? "list-disc" : "", n), children: [
|
|
@@ -4349,9 +4356,9 @@ const K0 = ({
|
|
|
4349
4356
|
{
|
|
4350
4357
|
className: f(
|
|
4351
4358
|
"w-full text-base md:text:lg py-2",
|
|
4352
|
-
l && (
|
|
4353
|
-
o !== "" && (
|
|
4354
|
-
|
|
4359
|
+
l && (x ? C !== e.length : C !== e.length - 1) ? "border-b" : "",
|
|
4360
|
+
o !== "" && (x ? C !== e.length : C !== e.length - 1) ? o : "",
|
|
4361
|
+
x && "inline mr-2",
|
|
4355
4362
|
r
|
|
4356
4363
|
),
|
|
4357
4364
|
children: [
|
|
@@ -4372,12 +4379,12 @@ const K0 = ({
|
|
|
4372
4379
|
a,
|
|
4373
4380
|
(u, C) => ne.isValidElement(u) ? ne.cloneElement(u, {
|
|
4374
4381
|
className: f(
|
|
4375
|
-
|
|
4382
|
+
x && "inline mr-2",
|
|
4376
4383
|
r,
|
|
4377
4384
|
u.props.className,
|
|
4378
4385
|
"w-full",
|
|
4379
|
-
l && (
|
|
4380
|
-
o !== "" && (
|
|
4386
|
+
l && (x ? C !== ne.Children.count(a) : C !== ne.Children.count(a) - 1) ? "border-b" : "",
|
|
4387
|
+
o !== "" && (x ? C !== ne.Children.count(a) : C !== ne.Children.count(a) - 1) ? o : ""
|
|
4381
4388
|
),
|
|
4382
4389
|
children: /* @__PURE__ */ L(oe, { children: [
|
|
4383
4390
|
b && /* @__PURE__ */ L("div", { className: "flex flex-row", children: [
|
|
@@ -4430,42 +4437,42 @@ const K0 = ({
|
|
|
4430
4437
|
closeButtonText: i = "Close",
|
|
4431
4438
|
continueButton: m = !1,
|
|
4432
4439
|
continueButtonHandler: b,
|
|
4433
|
-
continueButtonText:
|
|
4440
|
+
continueButtonText: x = "Continue",
|
|
4434
4441
|
blurLevel: u,
|
|
4435
4442
|
children: C
|
|
4436
4443
|
}) => {
|
|
4437
|
-
const
|
|
4444
|
+
const h = X(null), _ = X(null), $ = "fixed inset-0 z-50 flex items-center justify-center bg-black/50", [y, g] = H("");
|
|
4438
4445
|
if (Z(() => {
|
|
4439
4446
|
if (u) {
|
|
4440
|
-
const
|
|
4441
|
-
g(f($,
|
|
4447
|
+
const A = "backdrop-blur-" + u;
|
|
4448
|
+
g(f($, A));
|
|
4442
4449
|
} else
|
|
4443
4450
|
g($);
|
|
4444
4451
|
}, [u]), Z(() => {
|
|
4445
4452
|
if (o) {
|
|
4446
|
-
const
|
|
4447
|
-
|
|
4453
|
+
const A = (I) => {
|
|
4454
|
+
h.current && !h.current.contains(I.target) && n();
|
|
4448
4455
|
};
|
|
4449
|
-
return document.addEventListener("mousedown",
|
|
4450
|
-
document.removeEventListener("mousedown",
|
|
4456
|
+
return document.addEventListener("mousedown", A), () => {
|
|
4457
|
+
document.removeEventListener("mousedown", A);
|
|
4451
4458
|
};
|
|
4452
4459
|
}
|
|
4453
4460
|
}, [n]), Z(() => {
|
|
4454
|
-
var
|
|
4455
|
-
const
|
|
4461
|
+
var E;
|
|
4462
|
+
const A = (B) => {
|
|
4456
4463
|
B.key === "Escape" && e && n();
|
|
4457
|
-
},
|
|
4458
|
-
var
|
|
4459
|
-
const k = (
|
|
4464
|
+
}, I = (B) => {
|
|
4465
|
+
var p;
|
|
4466
|
+
const k = (p = h.current) == null ? void 0 : p.querySelectorAll(
|
|
4460
4467
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
4461
4468
|
), U = k == null ? void 0 : k[0], D = k == null ? void 0 : k[k.length - 1];
|
|
4462
4469
|
B.key === "Tab" && k && (B.shiftKey && document.activeElement === U ? (B.preventDefault(), D == null || D.focus()) : !B.shiftKey && document.activeElement === D && (B.preventDefault(), U == null || U.focus()));
|
|
4463
4470
|
};
|
|
4464
|
-
return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown",
|
|
4465
|
-
window.removeEventListener("keydown",
|
|
4471
|
+
return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown", A), window.addEventListener("keydown", I), (E = _.current) == null || E.focus()) : document.body.style.overflow = "auto", () => {
|
|
4472
|
+
window.removeEventListener("keydown", A), window.removeEventListener("keydown", I), document.body.style.overflow = "auto";
|
|
4466
4473
|
};
|
|
4467
4474
|
}, [e, n]), !e) return null;
|
|
4468
|
-
const
|
|
4475
|
+
const M = () => {
|
|
4469
4476
|
b && b(), n();
|
|
4470
4477
|
};
|
|
4471
4478
|
return /* @__PURE__ */ s(
|
|
@@ -4477,7 +4484,7 @@ const K0 = ({
|
|
|
4477
4484
|
"div",
|
|
4478
4485
|
{
|
|
4479
4486
|
className: f(me[t].container, a),
|
|
4480
|
-
ref:
|
|
4487
|
+
ref: h,
|
|
4481
4488
|
"aria-label": "modal-title",
|
|
4482
4489
|
role: "dialog",
|
|
4483
4490
|
"aria-modal": "true",
|
|
@@ -4500,7 +4507,7 @@ const K0 = ({
|
|
|
4500
4507
|
l && /* @__PURE__ */ s(
|
|
4501
4508
|
"button",
|
|
4502
4509
|
{
|
|
4503
|
-
ref:
|
|
4510
|
+
ref: _,
|
|
4504
4511
|
onClick: n,
|
|
4505
4512
|
className: f(me[t].button),
|
|
4506
4513
|
children: i
|
|
@@ -4509,9 +4516,9 @@ const K0 = ({
|
|
|
4509
4516
|
m && /* @__PURE__ */ s(
|
|
4510
4517
|
"button",
|
|
4511
4518
|
{
|
|
4512
|
-
onClick:
|
|
4519
|
+
onClick: M,
|
|
4513
4520
|
className: f(me[t].button, "ms-4"),
|
|
4514
|
-
children:
|
|
4521
|
+
children: x
|
|
4515
4522
|
}
|
|
4516
4523
|
)
|
|
4517
4524
|
] }) : ""
|
|
@@ -4533,21 +4540,21 @@ const K0 = ({
|
|
|
4533
4540
|
disabled: i = !1,
|
|
4534
4541
|
...m
|
|
4535
4542
|
}, b) => {
|
|
4536
|
-
const [
|
|
4543
|
+
const [x, u] = H(), [C, h] = H(), [_, $] = H("bg-white");
|
|
4537
4544
|
return Z(() => {
|
|
4538
4545
|
const y = "text-lg font-normal font-['Arial'] leading-normal ";
|
|
4539
|
-
|
|
4546
|
+
h(t && r ? y : t ? y + "mr-6" : r ? y + "ml-6" : y + "ml-6 mr-6");
|
|
4540
4547
|
}, [t, r, l]), Z(() => {
|
|
4541
4548
|
$(c ? "bg-[#092068] focus:bg-[#092068] text-white" : "bg-white"), u(f(
|
|
4542
4549
|
"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",
|
|
4543
|
-
|
|
4550
|
+
_,
|
|
4544
4551
|
e
|
|
4545
4552
|
));
|
|
4546
|
-
}, [e,
|
|
4553
|
+
}, [e, _, c]), /* @__PURE__ */ L(
|
|
4547
4554
|
"button",
|
|
4548
4555
|
{
|
|
4549
4556
|
onClick: o,
|
|
4550
|
-
className:
|
|
4557
|
+
className: x,
|
|
4551
4558
|
ref: b,
|
|
4552
4559
|
...m,
|
|
4553
4560
|
disabled: i,
|
|
@@ -4570,7 +4577,7 @@ const K0 = ({
|
|
|
4570
4577
|
}) => {
|
|
4571
4578
|
const c = Array.from({ length: e }, (i, m) => m + 1);
|
|
4572
4579
|
return /* @__PURE__ */ s("div", { className: "flex items-center w-full", children: c.map((i, m) => {
|
|
4573
|
-
const b = i <= t - 1,
|
|
4580
|
+
const b = i <= t - 1, x = m === c.length - 1;
|
|
4574
4581
|
return /* @__PURE__ */ L(oe, { children: [
|
|
4575
4582
|
/* @__PURE__ */ s(
|
|
4576
4583
|
"div",
|
|
@@ -4596,7 +4603,7 @@ const K0 = ({
|
|
|
4596
4603
|
] }) })
|
|
4597
4604
|
}
|
|
4598
4605
|
),
|
|
4599
|
-
!
|
|
4606
|
+
!x && /* @__PURE__ */ s(
|
|
4600
4607
|
"div",
|
|
4601
4608
|
{
|
|
4602
4609
|
className: f(
|
|
@@ -4632,12 +4639,12 @@ const Et = ({
|
|
|
4632
4639
|
classNameContainer: r,
|
|
4633
4640
|
options: a
|
|
4634
4641
|
}) => {
|
|
4635
|
-
const [l, o] =
|
|
4642
|
+
const [l, o] = H(""), c = (m) => {
|
|
4636
4643
|
o(m);
|
|
4637
4644
|
}, i = l;
|
|
4638
4645
|
return /* @__PURE__ */ L("fieldset", { role: "radiogroup", className: r, children: [
|
|
4639
4646
|
/* @__PURE__ */ s("p", { className: "mb-2", children: e }),
|
|
4640
|
-
a.map(({ label: m, value: b, id:
|
|
4647
|
+
a.map(({ label: m, value: b, id: x, disabled: u }) => (
|
|
4641
4648
|
// const isSelected = internalValue === val;
|
|
4642
4649
|
/* @__PURE__ */ L(
|
|
4643
4650
|
"label",
|
|
@@ -4652,7 +4659,7 @@ const Et = ({
|
|
|
4652
4659
|
/* @__PURE__ */ s(
|
|
4653
4660
|
"input",
|
|
4654
4661
|
{
|
|
4655
|
-
id:
|
|
4662
|
+
id: x,
|
|
4656
4663
|
className: "hidden",
|
|
4657
4664
|
type: "radio",
|
|
4658
4665
|
value: b,
|
|
@@ -4679,43 +4686,43 @@ const Et = ({
|
|
|
4679
4686
|
mobileOnly: l = !1,
|
|
4680
4687
|
...o
|
|
4681
4688
|
}, c) => {
|
|
4682
|
-
var
|
|
4683
|
-
const i = X(null), m = X(null), [b,
|
|
4684
|
-
B.key === "Enter" && (a ?
|
|
4689
|
+
var E;
|
|
4690
|
+
const i = X(null), m = X(null), [b, x] = H(""), [u, C] = H(), [h, _] = H(n), $ = (B) => {
|
|
4691
|
+
B.key === "Enter" && (a ? A() : u && u.pages[0].path && (window.location.href = u.pages[0].path));
|
|
4685
4692
|
}, y = () => {
|
|
4686
|
-
|
|
4693
|
+
x(""), C(void 0);
|
|
4687
4694
|
};
|
|
4688
4695
|
Z(() => {
|
|
4689
|
-
|
|
4696
|
+
_(n);
|
|
4690
4697
|
}, [n]);
|
|
4691
4698
|
function g(B) {
|
|
4692
4699
|
const k = B.toLowerCase(), U = [];
|
|
4693
|
-
return r.forEach((D,
|
|
4694
|
-
const
|
|
4700
|
+
return r.forEach((D, p) => {
|
|
4701
|
+
const O = [];
|
|
4695
4702
|
let F = D.content.toLowerCase().indexOf(k);
|
|
4696
4703
|
for (; F !== -1; ) {
|
|
4697
4704
|
const z = D.content.substring(
|
|
4698
4705
|
F + k.length,
|
|
4699
4706
|
F + k.length + 15
|
|
4700
4707
|
);
|
|
4701
|
-
|
|
4708
|
+
O.push({ characters: z, index: p }), F = D.content.toLowerCase().indexOf(k, F + 1);
|
|
4702
4709
|
}
|
|
4703
|
-
|
|
4710
|
+
O.length && U.push({
|
|
4704
4711
|
title: D.title,
|
|
4705
4712
|
path: D.path,
|
|
4706
|
-
results:
|
|
4713
|
+
results: O
|
|
4707
4714
|
});
|
|
4708
4715
|
}), { input: B, pages: U };
|
|
4709
4716
|
}
|
|
4710
|
-
const
|
|
4717
|
+
const M = (B) => {
|
|
4711
4718
|
const k = B.target.value;
|
|
4712
|
-
if (
|
|
4719
|
+
if (x(k), !k) {
|
|
4713
4720
|
C(void 0);
|
|
4714
4721
|
return;
|
|
4715
4722
|
}
|
|
4716
4723
|
const U = g(k);
|
|
4717
4724
|
C(U);
|
|
4718
|
-
},
|
|
4725
|
+
}, A = () => {
|
|
4719
4726
|
var k;
|
|
4720
4727
|
const B = ((k = i.current) == null ? void 0 : k.value) ?? "";
|
|
4721
4728
|
if (a)
|
|
@@ -4725,20 +4732,20 @@ const Et = ({
|
|
|
4725
4732
|
} else
|
|
4726
4733
|
a({ input: "", pages: [{ results: [] }] });
|
|
4727
4734
|
};
|
|
4728
|
-
return
|
|
4735
|
+
return h ? (
|
|
4729
4736
|
// Display solo search icon button to expand search component
|
|
4730
4737
|
/* @__PURE__ */ s("span", { className: `w-[52px] h-[50px] p-2 rounded-sm border border-[#6a686b]
|
|
4731
4738
|
inline-flex flex-col justify-center items-center bg-white`, children: /* @__PURE__ */ s(
|
|
4732
4739
|
"button",
|
|
4733
4740
|
{
|
|
4734
4741
|
className: "appearance-none p-0 m-0 border-0 flex items-center justify-center align-middle",
|
|
4735
|
-
onClick: () =>
|
|
4742
|
+
onClick: () => _(!1),
|
|
4736
4743
|
children: /* @__PURE__ */ s("img", { className: "", src: t2, alt: "search icon" })
|
|
4737
4744
|
}
|
|
4738
4745
|
) })
|
|
4739
4746
|
) : (
|
|
4740
4747
|
// Container including input + output list box
|
|
4741
|
-
/* @__PURE__ */ L("span", { className: `h-12 md:h-[50px] lg:h-14 flex items-center relative ${
|
|
4748
|
+
/* @__PURE__ */ L("span", { className: `h-12 md:h-[50px] lg:h-14 flex items-center relative ${h && "hidden"}`, children: [
|
|
4742
4749
|
/* @__PURE__ */ L("span", { className: `
|
|
4743
4750
|
border-[#6a686b] w-[309px] md:w-[334px] lg:w-[350px]
|
|
4744
4751
|
inline-flex bg-white items-center
|
|
@@ -4747,17 +4754,17 @@ const Et = ({
|
|
|
4747
4754
|
" border lg:border-0 rounded-sm "
|
|
4748
4755
|
)}
|
|
4749
4756
|
`, children: [
|
|
4750
|
-
/* @__PURE__ */ s("button", { onClick:
|
|
4757
|
+
/* @__PURE__ */ s("button", { onClick: A, children: /* @__PURE__ */ s("div", { className: "lg:hidden rounded-tl px-2 rounded-bl ", children: /* @__PURE__ */ s("img", { className: "", src: t2, alt: "search icon" }) }) }),
|
|
4751
4758
|
/* @__PURE__ */ s(
|
|
4752
4759
|
"input",
|
|
4753
4760
|
{
|
|
4754
|
-
className: f(`grow appearance-none h-8 md:h-[32px] lg:h-14 py-2 lg:ps-[19px] rounded-tl rounded-bl
|
|
4755
|
-
rounded-br-none rounded-tr-none
|
|
4756
|
-
|
|
4757
|
-
|
|
4761
|
+
className: f(`grow appearance-none h-8 md:h-[32px] lg:h-14 py-2 lg:ps-[19px] rounded-tl rounded-bl
|
|
4762
|
+
rounded-br-none rounded-tr-none font-['Arial'] bg-white text-[#333234] text-base lg:text-lg
|
|
4763
|
+
border-0 lg:border border-[#07192d] hover:border-[#5992fa] focus:border-[#5992fa] outline-hidden
|
|
4764
|
+
`, e),
|
|
4758
4765
|
"aria-label": t,
|
|
4759
4766
|
value: b,
|
|
4760
|
-
onChange:
|
|
4767
|
+
onChange: M,
|
|
4761
4768
|
placeholder: "Search result",
|
|
4762
4769
|
onKeyDown: (B) => $(B),
|
|
4763
4770
|
ref: (B) => {
|
|
@@ -4766,7 +4773,7 @@ const Et = ({
|
|
|
4766
4773
|
...o
|
|
4767
4774
|
}
|
|
4768
4775
|
),
|
|
4769
|
-
/* @__PURE__ */ s("button", { onClick:
|
|
4776
|
+
/* @__PURE__ */ s("button", { onClick: A, children: /* @__PURE__ */ s("span", { className: `hidden lg:flex items-center size-14 p-[17px] bg-[#07192d]
|
|
4770
4777
|
rounded-tr rounded-br `, children: /* @__PURE__ */ s("img", { className: "", src: X0, alt: "search icon" }) }) }),
|
|
4771
4778
|
/* @__PURE__ */ s("span", { className: "lg:hidden items-center p-3", children: /* @__PURE__ */ s(
|
|
4772
4779
|
"button",
|
|
@@ -4808,7 +4815,7 @@ const Et = ({
|
|
|
4808
4815
|
/* @__PURE__ */ s("span", { className: "text-[#A1A6A8] lg:text-[#4E4E4E]", children: U.characters })
|
|
4809
4816
|
] }))
|
|
4810
4817
|
] }, k)),
|
|
4811
|
-
((
|
|
4818
|
+
((E = u == null ? void 0 : u.pages) == null ? void 0 : E.length) < 1 && /* @__PURE__ */ s("div", { className: "ms-4 mb-1 text-[#1c1d1f]", children: "no search results" })
|
|
4812
4819
|
]
|
|
4813
4820
|
}
|
|
4814
4821
|
)
|
|
@@ -4831,39 +4838,39 @@ const tt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
4831
4838
|
type: i = "page",
|
|
4832
4839
|
padLeft: m = !0,
|
|
4833
4840
|
padRight: b = !0,
|
|
4834
|
-
button:
|
|
4841
|
+
button: x,
|
|
4835
4842
|
buttonOnClick: u,
|
|
4836
4843
|
buttonContent: C = "Click Me",
|
|
4837
|
-
children:
|
|
4838
|
-
...
|
|
4844
|
+
children: h,
|
|
4845
|
+
..._
|
|
4839
4846
|
}, $) => {
|
|
4840
|
-
const [y, g] =
|
|
4847
|
+
const [y, g] = H(""), [M, A] = H(""), [I, E] = H(""), B = `${i === "page" ? "pt-4 pb-2" : "py-2"} flex pl-6 pr-2 justify-start items-center gap-4 inline-flex w-full`;
|
|
4841
4848
|
return Z(() => {
|
|
4842
4849
|
g(f(B, l ? "border-b-2 border-[#07192D]" : "", c ? "bg-[#092068] text-[#f0f0f0]" : "bg-transparent text-[#07192d]", m && b ? "mx-4 " : m ? "ms-4" : b ? "me-4" : "", e));
|
|
4843
4850
|
}, [e, l, c, B, m, b]), Z(() => {
|
|
4844
|
-
|
|
4851
|
+
A(f(`self-stretch ${i === "page" ? "text-[40px]" : i === "section" ? " text-[32px]" : "text-2xl"} font-normal font-["Arial"] leading-[48px]`, t));
|
|
4845
4852
|
}, [t, i]), Z(() => {
|
|
4846
|
-
|
|
4853
|
+
E(f(`${i === "page" ? "text-xl" : "text-lg"} font-normal font-["Arial"] leading-[30px]`, n));
|
|
4847
4854
|
}, [n, i]), /* @__PURE__ */ s("div", { className: f(y, e), children: /* @__PURE__ */ L("div", { className: "grow shrink basis-0 justify-start items-center gap-4 flex flex-row", children: [
|
|
4848
4855
|
r && r,
|
|
4849
4856
|
/* @__PURE__ */ L("div", { className: "flex-col justify-start items-start inline-flex w-full", children: [
|
|
4850
4857
|
/* @__PURE__ */ s(
|
|
4851
4858
|
"div",
|
|
4852
4859
|
{
|
|
4853
|
-
className:
|
|
4854
|
-
children:
|
|
4860
|
+
className: M,
|
|
4861
|
+
children: h
|
|
4855
4862
|
}
|
|
4856
4863
|
),
|
|
4857
4864
|
o && /* @__PURE__ */ s(
|
|
4858
4865
|
"div",
|
|
4859
4866
|
{
|
|
4860
|
-
className:
|
|
4867
|
+
className: I,
|
|
4861
4868
|
children: o
|
|
4862
4869
|
}
|
|
4863
4870
|
)
|
|
4864
4871
|
] }),
|
|
4865
4872
|
a && a,
|
|
4866
|
-
|
|
4873
|
+
x && // text color and icon correctly set based on fill value
|
|
4867
4874
|
/* @__PURE__ */ s(
|
|
4868
4875
|
b2,
|
|
4869
4876
|
{
|
|
@@ -5002,25 +5009,25 @@ const tt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
5002
5009
|
children: c,
|
|
5003
5010
|
...i
|
|
5004
5011
|
}, m) => {
|
|
5005
|
-
const [b,
|
|
5006
|
-
|
|
5012
|
+
const [b, x] = H(), [u, C] = H(), [h, _] = H(nt), $ = () => {
|
|
5013
|
+
x(f(b, "hidden"));
|
|
5007
5014
|
};
|
|
5008
5015
|
return Z(() => {
|
|
5009
|
-
var
|
|
5010
|
-
const y = t === "custom" ? "default" : t, g = (
|
|
5011
|
-
(
|
|
5012
|
-
)) == null ? void 0 :
|
|
5016
|
+
var M, A;
|
|
5017
|
+
const y = t === "custom" ? "default" : t, g = (M = s2.find(
|
|
5018
|
+
(I) => I.variant === e && I.subVariant === y
|
|
5019
|
+
)) == null ? void 0 : M.classes;
|
|
5013
5020
|
if (e === "icon") {
|
|
5014
|
-
const
|
|
5015
|
-
(
|
|
5016
|
-
)) == null ? void 0 :
|
|
5017
|
-
C(t === "custom" ? f(
|
|
5021
|
+
const I = (A = s2.find(
|
|
5022
|
+
(E) => E.variant === e && E.subVariant === y
|
|
5023
|
+
)) == null ? void 0 : A.classNameSvg;
|
|
5024
|
+
C(t === "custom" ? f(I, r) : I);
|
|
5018
5025
|
}
|
|
5019
|
-
e === "hazard" ?
|
|
5026
|
+
e === "hazard" ? _(ot) : e === "go" && _(rt), x(f(g, n));
|
|
5020
5027
|
}, [t, n, e, r]), /* @__PURE__ */ L(oe, { children: [
|
|
5021
5028
|
e === "default" && /* @__PURE__ */ s("div", { className: b, ...i, ref: m, children: c }),
|
|
5022
5029
|
(e === "warning" || e === "hazard" || e === "go") && /* @__PURE__ */ L("div", { className: b, children: [
|
|
5023
|
-
/* @__PURE__ */ s("div", { className: "size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative", children: /* @__PURE__ */ s("div", { className: "left-0 top-0 absolute", children: /* @__PURE__ */ s("img", { className: "size-6", src:
|
|
5030
|
+
/* @__PURE__ */ s("div", { className: "size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative", children: /* @__PURE__ */ s("div", { className: "left-0 top-0 absolute", children: /* @__PURE__ */ s("img", { className: "size-6", src: h, alt: `${e} icon` }) }) }),
|
|
5024
5031
|
/* @__PURE__ */ s("div", { className: "grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]", children: c }),
|
|
5025
5032
|
/* @__PURE__ */ s(
|
|
5026
5033
|
"button",
|
|
@@ -5055,21 +5062,21 @@ const tt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
5055
5062
|
classNameMenuItem: i = "",
|
|
5056
5063
|
classNameMenuContainer: m = "",
|
|
5057
5064
|
version: b,
|
|
5058
|
-
menuItems:
|
|
5065
|
+
menuItems: x,
|
|
5059
5066
|
right: u = !1,
|
|
5060
5067
|
children: C,
|
|
5061
|
-
...
|
|
5062
|
-
},
|
|
5063
|
-
const $ = X(null), [y, g] =
|
|
5068
|
+
...h
|
|
5069
|
+
}, _) => {
|
|
5070
|
+
const $ = X(null), [y, g] = H(!1), [M, A] = H(Be);
|
|
5064
5071
|
return Z(() => {
|
|
5065
|
-
|
|
5066
|
-
}, [u,
|
|
5072
|
+
A(f(u ? Be + " text-right pe-2" : Be, i));
|
|
5073
|
+
}, [u, M, i]), Z(() => {
|
|
5067
5074
|
if (a) {
|
|
5068
|
-
const
|
|
5069
|
-
$.current && !$.current.contains(
|
|
5075
|
+
const I = (E) => {
|
|
5076
|
+
$.current && !$.current.contains(E.target) && g(!1);
|
|
5070
5077
|
};
|
|
5071
|
-
return document.addEventListener("mousedown",
|
|
5072
|
-
document.removeEventListener("mousedown",
|
|
5078
|
+
return document.addEventListener("mousedown", I), () => {
|
|
5079
|
+
document.removeEventListener("mousedown", I);
|
|
5073
5080
|
};
|
|
5074
5081
|
}
|
|
5075
5082
|
}, [g]), // eslint-disable-next-line react/jsx-no-useless-fragment
|
|
@@ -5093,13 +5100,13 @@ const tt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
5093
5100
|
/* @__PURE__ */ s("div", { className: f("w-16 h-16 mx-auto", l), children: /* @__PURE__ */ s("img", { src: n, className: f("border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1", r), alt: "application icon" }) }),
|
|
5094
5101
|
/* @__PURE__ */ s("div", { className: "text-center text-xl mt-2", children: t }),
|
|
5095
5102
|
/* @__PURE__ */ s("div", { className: "[204px] mt-3 h-[2px] border-[0.5px] border-[#D9D9D9] bg-[#D9D9D9]" }),
|
|
5096
|
-
/* @__PURE__ */ s(K0, { className: "pl-4 lg:pl-6 mt-6", children:
|
|
5103
|
+
/* @__PURE__ */ s(K0, { className: "pl-4 lg:pl-6 mt-6", children: x.map((I, E) => /* @__PURE__ */ s(
|
|
5097
5104
|
w2,
|
|
5098
5105
|
{
|
|
5099
|
-
className:
|
|
5100
|
-
children:
|
|
5106
|
+
className: M,
|
|
5107
|
+
children: I.target && /* @__PURE__ */ s(N2, { to: I.target, onClick: () => g(!1), children: I.children })
|
|
5101
5108
|
},
|
|
5102
|
-
|
|
5109
|
+
E
|
|
5103
5110
|
)) }),
|
|
5104
5111
|
/* @__PURE__ */ L("div", { className: "align-bottom mt-auto text-right right-2 bottom-1", children: [
|
|
5105
5112
|
"Version ",
|
|
@@ -5211,13 +5218,13 @@ const ut = "_slider_87un4_28", gt = {
|
|
|
5211
5218
|
label: o,
|
|
5212
5219
|
...c
|
|
5213
5220
|
}, i) => {
|
|
5214
|
-
const [m, b] =
|
|
5215
|
-
n2(i, () =>
|
|
5221
|
+
const [m, b] = H(r), x = X(null);
|
|
5222
|
+
n2(i, () => x.current), Z(() => {
|
|
5216
5223
|
b(r);
|
|
5217
5224
|
}, []);
|
|
5218
5225
|
const u = (C) => {
|
|
5219
|
-
const
|
|
5220
|
-
b(Number(
|
|
5226
|
+
const h = Number(C.target.value);
|
|
5227
|
+
b(Number(h)), a && a(h);
|
|
5221
5228
|
};
|
|
5222
5229
|
return /* @__PURE__ */ L(oe, { children: [
|
|
5223
5230
|
l && o && /* @__PURE__ */ s(
|
|
@@ -5231,7 +5238,7 @@ const ut = "_slider_87un4_28", gt = {
|
|
|
5231
5238
|
/* @__PURE__ */ s(
|
|
5232
5239
|
"input",
|
|
5233
5240
|
{
|
|
5234
|
-
ref:
|
|
5241
|
+
ref: x,
|
|
5235
5242
|
type: "range",
|
|
5236
5243
|
id: l,
|
|
5237
5244
|
className: f(gt.slider, e),
|
|
@@ -5273,16 +5280,16 @@ const pt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5273
5280
|
children: l,
|
|
5274
5281
|
...o
|
|
5275
5282
|
}, c) => {
|
|
5276
|
-
const [i, m] =
|
|
5283
|
+
const [i, m] = H(), [b, x] = H(), [u, C] = H();
|
|
5277
5284
|
return Z(() => {
|
|
5278
|
-
var
|
|
5285
|
+
var h, _, $;
|
|
5279
5286
|
m(f(
|
|
5280
|
-
(
|
|
5287
|
+
(h = Ae.find((y) => y.variant === e)) == null ? void 0 : h.classes,
|
|
5281
5288
|
t
|
|
5282
5289
|
)), C(f(
|
|
5283
|
-
(
|
|
5290
|
+
(_ = Ae.find((y) => y.variant === e)) == null ? void 0 : _.childClasses,
|
|
5284
5291
|
r
|
|
5285
|
-
)),
|
|
5292
|
+
)), x(f(
|
|
5286
5293
|
($ = Ae.find((y) => y.variant === e)) == null ? void 0 : $.imgDivClasses,
|
|
5287
5294
|
a
|
|
5288
5295
|
));
|
|
@@ -5331,25 +5338,25 @@ const pt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5331
5338
|
children: i,
|
|
5332
5339
|
...m
|
|
5333
5340
|
}, b) => {
|
|
5334
|
-
var
|
|
5335
|
-
const [
|
|
5341
|
+
var h, _, $, y;
|
|
5342
|
+
const [x, u] = H(e);
|
|
5336
5343
|
return /* @__PURE__ */ s(
|
|
5337
5344
|
"button",
|
|
5338
5345
|
{
|
|
5339
5346
|
onClick: () => {
|
|
5340
|
-
const g = !
|
|
5347
|
+
const g = !x;
|
|
5341
5348
|
u(g), n && n(g);
|
|
5342
5349
|
},
|
|
5343
5350
|
disabled: t,
|
|
5344
5351
|
role: "switch",
|
|
5345
|
-
"aria-checked":
|
|
5352
|
+
"aria-checked": x,
|
|
5346
5353
|
"aria-disabled": t,
|
|
5347
5354
|
...m,
|
|
5348
5355
|
ref: b,
|
|
5349
|
-
"aria-label": r || `Toggle ${
|
|
5356
|
+
"aria-label": r || `Toggle ${x ? "on" : "off"}`,
|
|
5350
5357
|
className: f(
|
|
5351
5358
|
`${wt}
|
|
5352
|
-
${
|
|
5359
|
+
${x ? (h = ke.find((g) => g.variant === o)) == null ? void 0 : h.toggledClasses : (_ = ke.find((g) => g.variant === o)) == null ? void 0 : _.classes}`,
|
|
5353
5360
|
a
|
|
5354
5361
|
),
|
|
5355
5362
|
children: /* @__PURE__ */ s(
|
|
@@ -5357,7 +5364,7 @@ const pt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5357
5364
|
{
|
|
5358
5365
|
className: f(
|
|
5359
5366
|
`${vt}
|
|
5360
|
-
${
|
|
5367
|
+
${x ? ($ = ke.find((g) => g.variant === o)) == null ? void 0 : $.toggledButtonClasses : (y = ke.find((g) => g.variant === o)) == null ? void 0 : y.buttonClasses}`,
|
|
5361
5368
|
l
|
|
5362
5369
|
)
|
|
5363
5370
|
}
|
|
@@ -5373,18 +5380,18 @@ const pt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5373
5380
|
id: r = "tooltip-content",
|
|
5374
5381
|
...a
|
|
5375
5382
|
}, l) => {
|
|
5376
|
-
const [o, c] =
|
|
5383
|
+
const [o, c] = H(!1);
|
|
5377
5384
|
let i;
|
|
5378
5385
|
const m = Me(() => {
|
|
5379
5386
|
i = setTimeout(() => c(!0), t);
|
|
5380
5387
|
}, [t]), b = Me(() => {
|
|
5381
5388
|
clearTimeout(i), c(!1);
|
|
5382
|
-
}, []),
|
|
5383
|
-
if (be(
|
|
5384
|
-
return
|
|
5385
|
-
}), C =
|
|
5386
|
-
if (be(
|
|
5387
|
-
return
|
|
5389
|
+
}, []), x = Ue.toArray(e), u = x.find((h) => {
|
|
5390
|
+
if (be(h))
|
|
5391
|
+
return h.type.displayName !== "TooltipContent";
|
|
5392
|
+
}), C = x.find((h) => {
|
|
5393
|
+
if (be(h))
|
|
5394
|
+
return h.type.displayName === "TooltipContent";
|
|
5388
5395
|
});
|
|
5389
5396
|
return /* @__PURE__ */ s(v2.Provider, { value: { id: r }, children: /* @__PURE__ */ L(
|
|
5390
5397
|
"div",
|
|
@@ -5408,7 +5415,7 @@ const pt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
|
|
|
5408
5415
|
Ct.displayName = "Tooltip";
|
|
5409
5416
|
const yt = ee(
|
|
5410
5417
|
({ children: e, className: t, position: n, ...r }, a) => {
|
|
5411
|
-
const [l, o] =
|
|
5418
|
+
const [l, o] = H("mt-2"), c = y2(v2);
|
|
5412
5419
|
if (!c)
|
|
5413
5420
|
throw new Error("TooltipContent must be used within a tooltip");
|
|
5414
5421
|
const { id: i } = c;
|
|
@@ -5439,7 +5446,7 @@ export {
|
|
|
5439
5446
|
Dt as Badge,
|
|
5440
5447
|
St as Breadcrumbs,
|
|
5441
5448
|
b2 as Button,
|
|
5442
|
-
|
|
5449
|
+
M0 as ButtonGroup,
|
|
5443
5450
|
S0 as Card,
|
|
5444
5451
|
Vt as CharacterCounter,
|
|
5445
5452
|
x2 as CheckBox,
|