@cfpb/design-system-react 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/style.css +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +15 -0
- package/dist/components/Divider/Divider.d.ts +3 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +18 -18
- package/dist/index.mjs +216 -200
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as L from "react";
|
|
2
|
-
import ke, { useState as Ce, useEffect as Ge, createElement as bo, forwardRef as an, useCallback as pe, useContext as go, useLayoutEffect as ji, useRef as Ae, useMemo as Je, createContext as Wi, Component as ki,
|
|
2
|
+
import ke, { useState as Ce, useEffect as Ge, createElement as bo, Fragment as Mn, forwardRef as an, useCallback as pe, useContext as go, useLayoutEffect as ji, useRef as Ae, useMemo as Je, createContext as Wi, Component as ki, useId as vo, cloneElement as Hi } from "react";
|
|
3
3
|
import { Link as Zi } from "react-router-dom";
|
|
4
4
|
import { createPortal as Yi } from "react-dom";
|
|
5
5
|
function Ji(e) {
|
|
@@ -347,7 +347,7 @@ function Ui() {
|
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
var xi = Array.isArray;
|
|
350
|
-
function
|
|
350
|
+
function dt(f) {
|
|
351
351
|
return xi(f);
|
|
352
352
|
}
|
|
353
353
|
function Ei(f) {
|
|
@@ -464,7 +464,7 @@ function Ui() {
|
|
|
464
464
|
return Bi(f, j, Ie, z, D, cs.current, k);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
var
|
|
467
|
+
var pt = h.ReactCurrentOwner, ls = h.ReactDebugCurrentFrame;
|
|
468
468
|
function Ke(f) {
|
|
469
469
|
if (f) {
|
|
470
470
|
var E = f._owner, B = Oe(f.type, f._source, E ? E.type : null);
|
|
@@ -472,15 +472,15 @@ function Ui() {
|
|
|
472
472
|
} else
|
|
473
473
|
ls.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
475
|
-
var
|
|
476
|
-
|
|
477
|
-
function
|
|
475
|
+
var ft;
|
|
476
|
+
ft = !1;
|
|
477
|
+
function mt(f) {
|
|
478
478
|
return typeof f == "object" && f !== null && f.$$typeof === n;
|
|
479
479
|
}
|
|
480
480
|
function ds() {
|
|
481
481
|
{
|
|
482
|
-
if (
|
|
483
|
-
var f = te(
|
|
482
|
+
if (pt.current) {
|
|
483
|
+
var f = te(pt.current.type);
|
|
484
484
|
if (f)
|
|
485
485
|
return `
|
|
486
486
|
|
|
@@ -515,25 +515,25 @@ Check the top-level render call using <` + B + ">.");
|
|
|
515
515
|
return;
|
|
516
516
|
ps[B] = !0;
|
|
517
517
|
var D = "";
|
|
518
|
-
f && f._owner && f._owner !==
|
|
518
|
+
f && f._owner && f._owner !== pt.current && (D = " It was passed a child from " + te(f._owner.type) + "."), Ke(f), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', B, D), Ke(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function ms(f, E) {
|
|
522
522
|
{
|
|
523
523
|
if (typeof f != "object")
|
|
524
524
|
return;
|
|
525
|
-
if (
|
|
525
|
+
if (dt(f))
|
|
526
526
|
for (var B = 0; B < f.length; B++) {
|
|
527
527
|
var D = f[B];
|
|
528
|
-
|
|
528
|
+
mt(D) && fs(D, E);
|
|
529
529
|
}
|
|
530
|
-
else if (
|
|
530
|
+
else if (mt(f))
|
|
531
531
|
f._store && (f._store.validated = !0);
|
|
532
532
|
else if (f) {
|
|
533
533
|
var z = I(f);
|
|
534
534
|
if (typeof z == "function" && z !== f.entries)
|
|
535
535
|
for (var ne = z.call(f), k; !(k = ne.next()).done; )
|
|
536
|
-
|
|
536
|
+
mt(k.value) && fs(k.value, E);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
@@ -554,8 +554,8 @@ Check the top-level render call using <` + B + ">.");
|
|
|
554
554
|
if (B) {
|
|
555
555
|
var D = te(E);
|
|
556
556
|
Ci(B, f.props, "prop", D, f);
|
|
557
|
-
} else if (E.PropTypes !== void 0 && !
|
|
558
|
-
|
|
557
|
+
} else if (E.PropTypes !== void 0 && !ft) {
|
|
558
|
+
ft = !0;
|
|
559
559
|
var z = te(E);
|
|
560
560
|
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", z || "Unknown");
|
|
561
561
|
}
|
|
@@ -583,7 +583,7 @@ Check the top-level render call using <` + B + ">.");
|
|
|
583
583
|
var Ie = Ti();
|
|
584
584
|
Ie ? j += Ie : j += ds();
|
|
585
585
|
var ue;
|
|
586
|
-
f === null ? ue = "null" :
|
|
586
|
+
f === null ? ue = "null" : dt(f) ? ue = "array" : f !== void 0 && f.$$typeof === n ? (ue = "<" + (te(f.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : ue = typeof f, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ue, j);
|
|
587
587
|
}
|
|
588
588
|
var le = Vi(f, E, B, z, ne);
|
|
589
589
|
if (le == null)
|
|
@@ -592,7 +592,7 @@ Check the top-level render call using <` + B + ">.");
|
|
|
592
592
|
var Ee = E.children;
|
|
593
593
|
if (Ee !== void 0)
|
|
594
594
|
if (D)
|
|
595
|
-
if (
|
|
595
|
+
if (dt(Ee)) {
|
|
596
596
|
for (var qe = 0; qe < Ee.length; qe++)
|
|
597
597
|
ms(Ee[qe], f);
|
|
598
598
|
Object.freeze && Object.freeze(Ee);
|
|
@@ -735,7 +735,7 @@ const or = {
|
|
|
735
735
|
}) : d.jsxs("p", {
|
|
736
736
|
children: ["[Error] Unsupported field-level alert type provided: ", e]
|
|
737
737
|
});
|
|
738
|
-
function
|
|
738
|
+
function tt({ children: e, className: n, ...s }) {
|
|
739
739
|
return d.jsx("li", {
|
|
740
740
|
className: M("m-list__item", n),
|
|
741
741
|
...s,
|
|
@@ -746,7 +746,7 @@ function Ot({ children: e, itemClassname: n = "", className: s }) {
|
|
|
746
746
|
return d.jsx(d.Fragment, {
|
|
747
747
|
children: e.map((o) => {
|
|
748
748
|
var t;
|
|
749
|
-
return d.jsx(
|
|
749
|
+
return d.jsx(tt, {
|
|
750
750
|
className: s,
|
|
751
751
|
children: ke.cloneElement(o, {
|
|
752
752
|
className: `${n} ${((t = o.props) == null ? void 0 : t.className) ?? ""}`
|
|
@@ -778,7 +778,7 @@ const rr = ({ children: e, ...n }) => d.jsx("span", {
|
|
|
778
778
|
className: "a-link__text",
|
|
779
779
|
...n,
|
|
780
780
|
children: e
|
|
781
|
-
}), cr = (e) => d.jsx(
|
|
781
|
+
}), cr = (e) => d.jsx(tt, {
|
|
782
782
|
children: d.jsx(Be, {
|
|
783
783
|
...e,
|
|
784
784
|
isJump: !0
|
|
@@ -957,14 +957,32 @@ const rr = ({ children: e, ...n }) => d.jsx("span", {
|
|
|
957
957
|
...t,
|
|
958
958
|
children: c
|
|
959
959
|
});
|
|
960
|
-
},
|
|
960
|
+
}, zd = ({ crumbs: e, ariaLabel: n = "Breadcrumbs", className: s, ...o }) => e.length === 0 ? null : d.jsx("div", {
|
|
961
|
+
className: M("u-layout-grid__breadcrumbs", s),
|
|
962
|
+
...o,
|
|
963
|
+
children: d.jsx("nav", {
|
|
964
|
+
className: "m-breadcrumbs",
|
|
965
|
+
"aria-label": n,
|
|
966
|
+
children: e.map((t) => d.jsxs(Mn, {
|
|
967
|
+
children: [" / ", t.isCurrent ? d.jsx("span", {
|
|
968
|
+
className: "m-breadcrumbs__crumb",
|
|
969
|
+
"aria-current": "page",
|
|
970
|
+
children: ` ${t.label} `
|
|
971
|
+
}) : d.jsx("a", {
|
|
972
|
+
className: "m-breadcrumbs__crumb",
|
|
973
|
+
href: t.href,
|
|
974
|
+
children: ` ${t.label} `
|
|
975
|
+
})]
|
|
976
|
+
}, `${t.href}-${t.label}`))
|
|
977
|
+
})
|
|
978
|
+
}), mr = ["a-btn"], br = {
|
|
961
979
|
primary: [],
|
|
962
980
|
secondary: ["a-btn--secondary"],
|
|
963
981
|
warning: ["a-btn--warning"]
|
|
964
982
|
}, gr = {
|
|
965
983
|
default: [],
|
|
966
984
|
full: ["a-btn--full-on-xs"]
|
|
967
|
-
},
|
|
985
|
+
}, st = an(({ appearance: e = "primary", asLink: n = !1, size: s = "default", label: o, className: t, iconLeft: i, iconRight: r, ...a }, c) => {
|
|
968
986
|
const u = [...mr, ...br[e], ...gr[s]];
|
|
969
987
|
return n && u.push("a-btn--link"), t && u.push(t), a.disabled && u.push("a-btn--disabled"), d.jsxs("button", {
|
|
970
988
|
ref: c,
|
|
@@ -982,8 +1000,8 @@ const rr = ({ children: e, ...n }) => d.jsx("span", {
|
|
|
982
1000
|
}) : null]
|
|
983
1001
|
});
|
|
984
1002
|
});
|
|
985
|
-
|
|
986
|
-
const
|
|
1003
|
+
st.displayName = "Button";
|
|
1004
|
+
const Ud = ({ className: e, children: n, ...s }) => n ? d.jsx("div", {
|
|
987
1005
|
className: `m-btn-group ${e ?? ""}`,
|
|
988
1006
|
...s,
|
|
989
1007
|
children: n
|
|
@@ -1035,13 +1053,10 @@ const zd = ({ className: e, children: n, ...s }) => n ? d.jsx("div", {
|
|
|
1035
1053
|
})]
|
|
1036
1054
|
})]
|
|
1037
1055
|
});
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
...n
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1056
|
+
}, Qd = ({ className: e = "", ...n }) => d.jsx("div", {
|
|
1057
|
+
className: `content__line ${e}`,
|
|
1058
|
+
...n
|
|
1059
|
+
});
|
|
1045
1060
|
function Qe(e) {
|
|
1046
1061
|
"@babel/helpers - typeof";
|
|
1047
1062
|
return Qe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
@@ -1216,10 +1231,10 @@ function Rr(e, n) {
|
|
|
1216
1231
|
writable: !1
|
|
1217
1232
|
}), n && wt(e, n);
|
|
1218
1233
|
}
|
|
1219
|
-
function
|
|
1220
|
-
return
|
|
1234
|
+
function jn(e) {
|
|
1235
|
+
return jn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
1221
1236
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1222
|
-
},
|
|
1237
|
+
}, jn(e);
|
|
1223
1238
|
}
|
|
1224
1239
|
function Eo() {
|
|
1225
1240
|
try {
|
|
@@ -1243,9 +1258,9 @@ function Vr(e, n) {
|
|
|
1243
1258
|
function Tr(e) {
|
|
1244
1259
|
var n = Eo();
|
|
1245
1260
|
return function() {
|
|
1246
|
-
var s, o =
|
|
1261
|
+
var s, o = jn(e);
|
|
1247
1262
|
if (n) {
|
|
1248
|
-
var t =
|
|
1263
|
+
var t = jn(this).constructor;
|
|
1249
1264
|
s = Reflect.construct(o, arguments, t);
|
|
1250
1265
|
} else s = o.apply(this, arguments);
|
|
1251
1266
|
return Vr(this, s);
|
|
@@ -1309,7 +1324,7 @@ var Xr = /* @__PURE__ */ function() {
|
|
|
1309
1324
|
return o.parentNode && o.parentNode.removeChild(o);
|
|
1310
1325
|
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
1311
1326
|
}, e;
|
|
1312
|
-
}(), he = "-ms-",
|
|
1327
|
+
}(), he = "-ms-", Wn = "-moz-", Z = "-webkit-", Lt = "comm", Dt = "rule", Xt = "decl", Mr = "@import", Ao = "@keyframes", jr = "@layer", Wr = Math.abs, ot = String.fromCharCode, kr = Object.assign;
|
|
1313
1328
|
function Hr(e, n) {
|
|
1314
1329
|
return be(e, 0) ^ 45 ? (((n << 2 ^ be(e, 0)) << 2 ^ be(e, 1)) << 2 ^ be(e, 2)) << 2 ^ be(e, 3) : 0;
|
|
1315
1330
|
}
|
|
@@ -1343,21 +1358,21 @@ function Nn(e, n) {
|
|
|
1343
1358
|
function Yr(e, n) {
|
|
1344
1359
|
return e.map(n).join("");
|
|
1345
1360
|
}
|
|
1346
|
-
var
|
|
1347
|
-
function
|
|
1348
|
-
return { value: e, root: n, parent: s, type: o, props: t, children: i, line:
|
|
1361
|
+
var it = 1, rn = 1, wo = 0, ye = 0, fe = 0, ln = "";
|
|
1362
|
+
function rt(e, n, s, o, t, i, r) {
|
|
1363
|
+
return { value: e, root: n, parent: s, type: o, props: t, children: i, line: it, column: rn, length: r, return: "" };
|
|
1349
1364
|
}
|
|
1350
1365
|
function mn(e, n) {
|
|
1351
|
-
return kr(
|
|
1366
|
+
return kr(rt("", null, null, "", null, null, 0), e, { length: -e.length }, n);
|
|
1352
1367
|
}
|
|
1353
1368
|
function Jr() {
|
|
1354
1369
|
return fe;
|
|
1355
1370
|
}
|
|
1356
1371
|
function zr() {
|
|
1357
|
-
return fe = ye > 0 ? be(ln, --ye) : 0, rn--, fe === 10 && (rn = 1,
|
|
1372
|
+
return fe = ye > 0 ? be(ln, --ye) : 0, rn--, fe === 10 && (rn = 1, it--), fe;
|
|
1358
1373
|
}
|
|
1359
1374
|
function xe() {
|
|
1360
|
-
return fe = ye < wo ? be(ln, ye++) : 0, rn++, fe === 10 && (rn = 1,
|
|
1375
|
+
return fe = ye < wo ? be(ln, ye++) : 0, rn++, fe === 10 && (rn = 1, it++), fe;
|
|
1361
1376
|
}
|
|
1362
1377
|
function Ve() {
|
|
1363
1378
|
return be(ln, ye);
|
|
@@ -1401,7 +1416,7 @@ function yn(e) {
|
|
|
1401
1416
|
return 0;
|
|
1402
1417
|
}
|
|
1403
1418
|
function Go(e) {
|
|
1404
|
-
return
|
|
1419
|
+
return it = rn = 1, wo = Re(ln = e), ye = 0, [];
|
|
1405
1420
|
}
|
|
1406
1421
|
function _o(e) {
|
|
1407
1422
|
return ln = "", e;
|
|
@@ -1441,7 +1456,7 @@ function $r(e, n) {
|
|
|
1441
1456
|
for (; xe() && e + fe !== 57; )
|
|
1442
1457
|
if (e + fe === 84 && Ve() === 47)
|
|
1443
1458
|
break;
|
|
1444
|
-
return "/*" + An(n, ye - 1) + "*" +
|
|
1459
|
+
return "/*" + An(n, ye - 1) + "*" + ot(e === 47 ? e : xe());
|
|
1445
1460
|
}
|
|
1446
1461
|
function Kr(e) {
|
|
1447
1462
|
for (; !yn(Ve()); )
|
|
@@ -1524,7 +1539,7 @@ function Dn(e, n, s, o, t, i, r, a, c) {
|
|
|
1524
1539
|
else if (C == 125 && g++ == 0 && zr() == 125)
|
|
1525
1540
|
continue;
|
|
1526
1541
|
}
|
|
1527
|
-
switch (x +=
|
|
1542
|
+
switch (x += ot(C), C * g) {
|
|
1528
1543
|
case 38:
|
|
1529
1544
|
h = l > 0 ? 1 : (x += "\f", -1);
|
|
1530
1545
|
break;
|
|
@@ -1544,13 +1559,13 @@ function Cs(e, n, s, o, t, i, r, a, c, u, l) {
|
|
|
1544
1559
|
for (var p = t - 1, m = t === 0 ? i : [""], b = Mt(m), y = 0, g = 0, I = 0; y < o; ++y)
|
|
1545
1560
|
for (var h = 0, C = In(e, p + 1, p = Wr(g = r[y])), S = e; h < b; ++h)
|
|
1546
1561
|
(S = So(g > 0 ? m[h] + " " + C : Y(C, /&\f/g, m[h]))) && (c[I++] = S);
|
|
1547
|
-
return
|
|
1562
|
+
return rt(e, n, s, t === 0 ? Dt : a, c, u, l);
|
|
1548
1563
|
}
|
|
1549
1564
|
function ec(e, n, s) {
|
|
1550
|
-
return
|
|
1565
|
+
return rt(e, n, s, Lt, ot(Jr()), In(e, 2, -2), 0);
|
|
1551
1566
|
}
|
|
1552
1567
|
function xs(e, n, s, o) {
|
|
1553
|
-
return
|
|
1568
|
+
return rt(e, n, s, Xt, In(e, 0, o), In(e, o + 1, -1), o);
|
|
1554
1569
|
}
|
|
1555
1570
|
function on(e, n) {
|
|
1556
1571
|
for (var s = "", o = Mt(e), t = 0; t < o; t++)
|
|
@@ -1612,7 +1627,7 @@ var ic = function(n, s, o) {
|
|
|
1612
1627
|
break;
|
|
1613
1628
|
}
|
|
1614
1629
|
default:
|
|
1615
|
-
n[o] +=
|
|
1630
|
+
n[o] += ot(t);
|
|
1616
1631
|
}
|
|
1617
1632
|
while (t = xe());
|
|
1618
1633
|
return n;
|
|
@@ -1711,7 +1726,7 @@ function Ro(e, n) {
|
|
|
1711
1726
|
case 4810:
|
|
1712
1727
|
case 6968:
|
|
1713
1728
|
case 2756:
|
|
1714
|
-
return Z + e +
|
|
1729
|
+
return Z + e + Wn + e + he + e + e;
|
|
1715
1730
|
case 6828:
|
|
1716
1731
|
case 4268:
|
|
1717
1732
|
return Z + e + he + e + e;
|
|
@@ -1759,7 +1774,7 @@ function Ro(e, n) {
|
|
|
1759
1774
|
case 109:
|
|
1760
1775
|
if (be(e, n + 4) !== 45) break;
|
|
1761
1776
|
case 102:
|
|
1762
|
-
return Y(e, /(.+:)(.+)-([^]+)/, "$1" + Z + "$2-$3$1" +
|
|
1777
|
+
return Y(e, /(.+:)(.+)-([^]+)/, "$1" + Z + "$2-$3$1" + Wn + (be(e, n + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1763
1778
|
case 115:
|
|
1764
1779
|
return ~Gt(e, "stretch") ? Ro(Y(e, "stretch", "fill-available"), n) + e : e;
|
|
1765
1780
|
}
|
|
@@ -1802,13 +1817,13 @@ var bc = function(n, s, o, t) {
|
|
|
1802
1817
|
case ":read-only":
|
|
1803
1818
|
case ":read-write":
|
|
1804
1819
|
return on([mn(n, {
|
|
1805
|
-
props: [Y(i, /:(read-\w+)/, ":" +
|
|
1820
|
+
props: [Y(i, /:(read-\w+)/, ":" + Wn + "$1")]
|
|
1806
1821
|
})], t);
|
|
1807
1822
|
case "::placeholder":
|
|
1808
1823
|
return on([mn(n, {
|
|
1809
1824
|
props: [Y(i, /:(plac\w+)/, ":" + Z + "input-$1")]
|
|
1810
1825
|
}), mn(n, {
|
|
1811
|
-
props: [Y(i, /:(plac\w+)/, ":" +
|
|
1826
|
+
props: [Y(i, /:(plac\w+)/, ":" + Wn + "$1")]
|
|
1812
1827
|
}), mn(n, {
|
|
1813
1828
|
props: [Y(i, /:(plac\w+)/, he + "input-$1")]
|
|
1814
1829
|
})], t);
|
|
@@ -2167,9 +2182,9 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
2167
2182
|
return n.charCodeAt(1) === 45;
|
|
2168
2183
|
}, _s = function(n) {
|
|
2169
2184
|
return n != null && typeof n != "boolean";
|
|
2170
|
-
},
|
|
2185
|
+
}, bt = /* @__PURE__ */ oc(function(e) {
|
|
2171
2186
|
return kt(e) ? e : e.replace(Gc, "-$&").toLowerCase();
|
|
2172
|
-
}),
|
|
2187
|
+
}), kn = function(n, s) {
|
|
2173
2188
|
switch (n) {
|
|
2174
2189
|
case "animation":
|
|
2175
2190
|
case "animationName":
|
|
@@ -2185,8 +2200,8 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
2185
2200
|
return Sc[n] !== 1 && !kt(n) && typeof s == "number" && s !== 0 ? s + "px" : s;
|
|
2186
2201
|
};
|
|
2187
2202
|
if (process.env.NODE_ENV !== "production") {
|
|
2188
|
-
var _c = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Nc = ["normal", "none", "initial", "inherit", "unset"], Rc =
|
|
2189
|
-
|
|
2203
|
+
var _c = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Nc = ["normal", "none", "initial", "inherit", "unset"], Rc = kn, Bc = /^-ms-/, Vc = /-(.)/g, Ns = {};
|
|
2204
|
+
kn = function(n, s) {
|
|
2190
2205
|
if (n === "content" && (typeof s != "string" || Nc.indexOf(s) === -1 && !_c.test(s) && (s.charAt(0) !== s.charAt(s.length - 1) || s.charAt(0) !== '"' && s.charAt(0) !== "'")))
|
|
2191
2206
|
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + s + "\"'`");
|
|
2192
2207
|
var o = Rc(n, s);
|
|
@@ -2264,19 +2279,19 @@ function Tc(e, n, s) {
|
|
|
2264
2279
|
for (var i in s) {
|
|
2265
2280
|
var r = s[i];
|
|
2266
2281
|
if (typeof r != "object")
|
|
2267
|
-
n != null && n[r] !== void 0 ? o += i + "{" + n[r] + "}" : _s(r) && (o +=
|
|
2282
|
+
n != null && n[r] !== void 0 ? o += i + "{" + n[r] + "}" : _s(r) && (o += bt(i) + ":" + kn(i, r) + ";");
|
|
2268
2283
|
else {
|
|
2269
2284
|
if (i === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
|
|
2270
2285
|
throw new Error(Oo);
|
|
2271
2286
|
if (Array.isArray(r) && typeof r[0] == "string" && (n == null || n[r[0]] === void 0))
|
|
2272
2287
|
for (var a = 0; a < r.length; a++)
|
|
2273
|
-
_s(r[a]) && (o +=
|
|
2288
|
+
_s(r[a]) && (o += bt(i) + ":" + kn(i, r[a]) + ";");
|
|
2274
2289
|
else {
|
|
2275
2290
|
var c = Cn(e, n, r);
|
|
2276
2291
|
switch (i) {
|
|
2277
2292
|
case "animation":
|
|
2278
2293
|
case "animationName": {
|
|
2279
|
-
o +=
|
|
2294
|
+
o += bt(i) + ":" + c + ";";
|
|
2280
2295
|
break;
|
|
2281
2296
|
}
|
|
2282
2297
|
default:
|
|
@@ -2339,8 +2354,8 @@ var Yt = function(n) {
|
|
|
2339
2354
|
var t = go(Zt);
|
|
2340
2355
|
return n(s, t, o);
|
|
2341
2356
|
});
|
|
2342
|
-
},
|
|
2343
|
-
process.env.NODE_ENV !== "production" && (
|
|
2357
|
+
}, ct = /* @__PURE__ */ L.createContext({});
|
|
2358
|
+
process.env.NODE_ENV !== "production" && (ct.displayName = "EmotionThemeContext");
|
|
2344
2359
|
var Vs = function(n) {
|
|
2345
2360
|
var s = n.split(".");
|
|
2346
2361
|
return s[s.length - 1];
|
|
@@ -2381,7 +2396,7 @@ var Vs = function(n) {
|
|
|
2381
2396
|
typeof o == "string" && n.registered[o] !== void 0 && (o = n.registered[o]);
|
|
2382
2397
|
var t = e[Rt], i = [o], r = "";
|
|
2383
2398
|
typeof e.className == "string" ? r = To(n.registered, i, e.className) : e.className != null && (r = e.className + " ");
|
|
2384
|
-
var a = xn(i, void 0, L.useContext(
|
|
2399
|
+
var a = xn(i, void 0, L.useContext(ct));
|
|
2385
2400
|
if (process.env.NODE_ENV !== "production" && a.name.indexOf("-") === -1) {
|
|
2386
2401
|
var c = e[Bt];
|
|
2387
2402
|
c && (a = xn([a, "label:" + c + ";"]));
|
|
@@ -2414,7 +2429,7 @@ var jc = Xo, Wc = {
|
|
|
2414
2429
|
// means it will be turned into a className prop
|
|
2415
2430
|
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
|
2416
2431
|
(e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Ts = !0);
|
|
2417
|
-
var s = e.styles, o = xn([s], void 0, L.useContext(
|
|
2432
|
+
var s = e.styles, o = xn([s], void 0, L.useContext(ct)), t = L.useRef();
|
|
2418
2433
|
return Bs(function() {
|
|
2419
2434
|
var i = n.key + "-global", r = new n.sheet.constructor({
|
|
2420
2435
|
key: i,
|
|
@@ -2507,7 +2522,7 @@ var Jc = function(n) {
|
|
|
2507
2522
|
}, r = {
|
|
2508
2523
|
css: t,
|
|
2509
2524
|
cx: i,
|
|
2510
|
-
theme: L.useContext(
|
|
2525
|
+
theme: L.useContext(ct)
|
|
2511
2526
|
}, a = e.children(r);
|
|
2512
2527
|
return s = !0, /* @__PURE__ */ L.createElement(L.Fragment, null, /* @__PURE__ */ L.createElement(Jc, {
|
|
2513
2528
|
cache: n,
|
|
@@ -2532,7 +2547,7 @@ function Qc(e, n) {
|
|
|
2532
2547
|
}
|
|
2533
2548
|
}));
|
|
2534
2549
|
}
|
|
2535
|
-
const $c = Math.min, Kc = Math.max,
|
|
2550
|
+
const $c = Math.min, Kc = Math.max, Hn = Math.round, Rn = Math.floor, Zn = (e) => ({
|
|
2536
2551
|
x: e,
|
|
2537
2552
|
y: e
|
|
2538
2553
|
});
|
|
@@ -2602,16 +2617,16 @@ function Ho(e) {
|
|
|
2602
2617
|
const n = sa(e);
|
|
2603
2618
|
return ta(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : zt(n) && ko(n) ? n : Ho(n);
|
|
2604
2619
|
}
|
|
2605
|
-
function
|
|
2620
|
+
function Yn(e, n, s) {
|
|
2606
2621
|
var o;
|
|
2607
2622
|
n === void 0 && (n = []), s === void 0 && (s = !0);
|
|
2608
2623
|
const t = Ho(e), i = t === ((o = e.ownerDocument) == null ? void 0 : o.body), r = Me(t);
|
|
2609
|
-
return i ? n.concat(r, r.visualViewport || [], ko(t) ? t : [], r.frameElement && s ?
|
|
2624
|
+
return i ? n.concat(r, r.visualViewport || [], ko(t) ? t : [], r.frameElement && s ? Yn(r.frameElement) : []) : n.concat(t, Yn(t, [], s));
|
|
2610
2625
|
}
|
|
2611
2626
|
function oa(e) {
|
|
2612
2627
|
const n = Ut(e);
|
|
2613
2628
|
let s = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
|
|
2614
|
-
const t = zt(e), i = t ? e.offsetWidth : s, r = t ? e.offsetHeight : o, a =
|
|
2629
|
+
const t = zt(e), i = t ? e.offsetWidth : s, r = t ? e.offsetHeight : o, a = Hn(s) !== i || Hn(o) !== r;
|
|
2615
2630
|
return a && (s = i, o = r), {
|
|
2616
2631
|
width: s,
|
|
2617
2632
|
height: o,
|
|
@@ -2624,19 +2639,19 @@ function Qt(e) {
|
|
|
2624
2639
|
function Ds(e) {
|
|
2625
2640
|
const n = Qt(e);
|
|
2626
2641
|
if (!zt(n))
|
|
2627
|
-
return
|
|
2642
|
+
return Zn(1);
|
|
2628
2643
|
const s = n.getBoundingClientRect(), {
|
|
2629
2644
|
width: o,
|
|
2630
2645
|
height: t,
|
|
2631
2646
|
$: i
|
|
2632
2647
|
} = oa(n);
|
|
2633
|
-
let r = (i ?
|
|
2648
|
+
let r = (i ? Hn(s.width) : s.width) / o, a = (i ? Hn(s.height) : s.height) / t;
|
|
2634
2649
|
return (!r || !Number.isFinite(r)) && (r = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
2635
2650
|
x: r,
|
|
2636
2651
|
y: a
|
|
2637
2652
|
};
|
|
2638
2653
|
}
|
|
2639
|
-
const ia = /* @__PURE__ */
|
|
2654
|
+
const ia = /* @__PURE__ */ Zn(0);
|
|
2640
2655
|
function ra(e) {
|
|
2641
2656
|
const n = Me(e);
|
|
2642
2657
|
return !na() || !n.visualViewport ? ia : {
|
|
@@ -2650,9 +2665,9 @@ function ca(e, n, s) {
|
|
|
2650
2665
|
function Xs(e, n, s, o) {
|
|
2651
2666
|
n === void 0 && (n = !1);
|
|
2652
2667
|
const t = e.getBoundingClientRect(), i = Qt(e);
|
|
2653
|
-
let r =
|
|
2668
|
+
let r = Zn(1);
|
|
2654
2669
|
n && (r = Ds(e));
|
|
2655
|
-
const a = ca() ? ra(i) :
|
|
2670
|
+
const a = ca() ? ra(i) : Zn(0);
|
|
2656
2671
|
let c = (t.left + a.x) / r.x, u = (t.top + a.y) / r.y, l = t.width / r.x, p = t.height / r.y;
|
|
2657
2672
|
if (i) {
|
|
2658
2673
|
const m = Me(i), b = o;
|
|
@@ -2723,7 +2738,7 @@ function ua(e, n, s, o) {
|
|
|
2723
2738
|
elementResize: r = typeof ResizeObserver == "function",
|
|
2724
2739
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
2725
2740
|
animationFrame: c = !1
|
|
2726
|
-
} = o, u = Qt(e), l = t || i ? [...u ?
|
|
2741
|
+
} = o, u = Qt(e), l = t || i ? [...u ? Yn(u) : [], ...Yn(n)] : [];
|
|
2727
2742
|
l.forEach((h) => {
|
|
2728
2743
|
t && h.addEventListener("scroll", s, {
|
|
2729
2744
|
passive: !0
|
|
@@ -2751,7 +2766,7 @@ function ua(e, n, s, o) {
|
|
|
2751
2766
|
}), p == null || p(), (h = b) == null || h.disconnect(), b = null, c && cancelAnimationFrame(y);
|
|
2752
2767
|
};
|
|
2753
2768
|
}
|
|
2754
|
-
var Vt = ji, la = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"],
|
|
2769
|
+
var Vt = ji, la = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Jn = function() {
|
|
2755
2770
|
};
|
|
2756
2771
|
function da(e, n) {
|
|
2757
2772
|
return n ? n[0] === "-" ? e + n : e + "__" + n : e;
|
|
@@ -2782,17 +2797,17 @@ var Ms = function(n) {
|
|
|
2782
2797
|
className: t(o ?? {}, r(s, n), a)
|
|
2783
2798
|
};
|
|
2784
2799
|
};
|
|
2785
|
-
function
|
|
2800
|
+
function at(e) {
|
|
2786
2801
|
return [document.documentElement, document.body, window].indexOf(e) > -1;
|
|
2787
2802
|
}
|
|
2788
2803
|
function fa(e) {
|
|
2789
|
-
return
|
|
2804
|
+
return at(e) ? window.innerHeight : e.clientHeight;
|
|
2790
2805
|
}
|
|
2791
2806
|
function Yo(e) {
|
|
2792
|
-
return
|
|
2807
|
+
return at(e) ? window.pageYOffset : e.scrollTop;
|
|
2793
2808
|
}
|
|
2794
|
-
function
|
|
2795
|
-
if (
|
|
2809
|
+
function zn(e, n) {
|
|
2810
|
+
if (at(e)) {
|
|
2796
2811
|
window.scrollTo(0, n);
|
|
2797
2812
|
return;
|
|
2798
2813
|
}
|
|
@@ -2810,17 +2825,17 @@ function ba(e, n, s, o) {
|
|
|
2810
2825
|
return s * ((e = e / o - 1) * e * e + 1) + n;
|
|
2811
2826
|
}
|
|
2812
2827
|
function Bn(e, n) {
|
|
2813
|
-
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
2828
|
+
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Jn, t = Yo(e), i = n - t, r = 10, a = 0;
|
|
2814
2829
|
function c() {
|
|
2815
2830
|
a += r;
|
|
2816
2831
|
var u = ba(a, t, i, s);
|
|
2817
|
-
|
|
2832
|
+
zn(e, u), a < s ? window.requestAnimationFrame(c) : o(e);
|
|
2818
2833
|
}
|
|
2819
2834
|
c();
|
|
2820
2835
|
}
|
|
2821
2836
|
function js(e, n) {
|
|
2822
2837
|
var s = e.getBoundingClientRect(), o = n.getBoundingClientRect(), t = n.offsetHeight / 3;
|
|
2823
|
-
o.bottom + t > s.bottom ?
|
|
2838
|
+
o.bottom + t > s.bottom ? zn(e, Math.min(n.offsetTop + n.clientHeight - e.offsetHeight + t, e.scrollHeight)) : o.top - t < s.top && zn(e, Math.max(n.offsetTop - t, 0));
|
|
2824
2839
|
}
|
|
2825
2840
|
function ga(e) {
|
|
2826
2841
|
var n = e.getBoundingClientRect();
|
|
@@ -2852,7 +2867,7 @@ var Jo = !1, ha = {
|
|
|
2852
2867
|
return Jo = !0;
|
|
2853
2868
|
}
|
|
2854
2869
|
}, Vn = typeof window < "u" ? window : {};
|
|
2855
|
-
Vn.addEventListener && Vn.removeEventListener && (Vn.addEventListener("p",
|
|
2870
|
+
Vn.addEventListener && Vn.removeEventListener && (Vn.addEventListener("p", Jn, ha), Vn.removeEventListener("p", Jn, !1));
|
|
2856
2871
|
var Ia = Jo;
|
|
2857
2872
|
function ya(e) {
|
|
2858
2873
|
return e != null;
|
|
@@ -2911,7 +2926,7 @@ function Sa(e) {
|
|
|
2911
2926
|
};
|
|
2912
2927
|
}
|
|
2913
2928
|
if (t === "bottom")
|
|
2914
|
-
return i &&
|
|
2929
|
+
return i && zn(c, H), {
|
|
2915
2930
|
placement: "bottom",
|
|
2916
2931
|
maxHeight: n
|
|
2917
2932
|
};
|
|
@@ -3230,7 +3245,7 @@ var za = process.env.NODE_ENV === "production" ? {
|
|
|
3230
3245
|
color: o ? r.neutral60 : r.neutral20,
|
|
3231
3246
|
padding: a * 2
|
|
3232
3247
|
});
|
|
3233
|
-
},
|
|
3248
|
+
}, gt = function(n) {
|
|
3234
3249
|
var s = n.delay, o = n.offset;
|
|
3235
3250
|
return F("span", {
|
|
3236
3251
|
css: /* @__PURE__ */ Jt({
|
|
@@ -3253,13 +3268,13 @@ var za = process.env.NODE_ENV === "production" ? {
|
|
|
3253
3268
|
}), "loadingIndicator", {
|
|
3254
3269
|
indicator: !0,
|
|
3255
3270
|
"loading-indicator": !0
|
|
3256
|
-
}), s), F(
|
|
3271
|
+
}), s), F(gt, {
|
|
3257
3272
|
delay: 0,
|
|
3258
3273
|
offset: o
|
|
3259
|
-
}), F(
|
|
3274
|
+
}), F(gt, {
|
|
3260
3275
|
delay: 160,
|
|
3261
3276
|
offset: !0
|
|
3262
|
-
}), F(
|
|
3277
|
+
}), F(gt, {
|
|
3263
3278
|
delay: 320,
|
|
3264
3279
|
offset: !o
|
|
3265
3280
|
}));
|
|
@@ -3715,7 +3730,7 @@ var ju = process.env.NODE_ENV === "production" ? {
|
|
|
3715
3730
|
});
|
|
3716
3731
|
}
|
|
3717
3732
|
return J;
|
|
3718
|
-
}, [G, o, t, y, g, I, h, w, a, _, q]), se = F(
|
|
3733
|
+
}, [G, o, t, y, g, I, h, w, a, _, q]), se = F(Mn, null, F("span", {
|
|
3719
3734
|
id: "aria-selection"
|
|
3720
3735
|
}, X), F("span", {
|
|
3721
3736
|
id: "aria-focused"
|
|
@@ -3724,7 +3739,7 @@ var ju = process.env.NODE_ENV === "production" ? {
|
|
|
3724
3739
|
}, K), F("span", {
|
|
3725
3740
|
id: "aria-guidance"
|
|
3726
3741
|
}, te));
|
|
3727
|
-
return F(
|
|
3742
|
+
return F(Mn, null, F(Zs, {
|
|
3728
3743
|
id: u
|
|
3729
3744
|
}, q && se), F(Zs, {
|
|
3730
3745
|
"aria-live": x,
|
|
@@ -3987,9 +4002,9 @@ var ju = process.env.NODE_ENV === "production" ? {
|
|
|
3987
4002
|
}], Yu = new RegExp("[" + Tt.map(function(e) {
|
|
3988
4003
|
return e.letters;
|
|
3989
4004
|
}).join("") + "]", "g"), ti = {};
|
|
3990
|
-
for (var
|
|
3991
|
-
for (var
|
|
3992
|
-
ti[
|
|
4005
|
+
for (var vt = 0; vt < Tt.length; vt++)
|
|
4006
|
+
for (var ht = Tt[vt], It = 0; It < ht.letters.length; It++)
|
|
4007
|
+
ti[ht.letters[It]] = ht.base;
|
|
3993
4008
|
var si = function(n) {
|
|
3994
4009
|
return n.replace(Yu, function(s) {
|
|
3995
4010
|
return ti[s];
|
|
@@ -4163,7 +4178,7 @@ function sl(e) {
|
|
|
4163
4178
|
}), p = function(b) {
|
|
4164
4179
|
u(b), l(b);
|
|
4165
4180
|
};
|
|
4166
|
-
return F(
|
|
4181
|
+
return F(Mn, null, s && F("div", {
|
|
4167
4182
|
onClick: nl,
|
|
4168
4183
|
css: tl
|
|
4169
4184
|
}), n(p));
|
|
@@ -4266,7 +4281,7 @@ var pl = function(n) {
|
|
|
4266
4281
|
baseUnit: ri,
|
|
4267
4282
|
controlHeight: Il,
|
|
4268
4283
|
menuGutter: yl
|
|
4269
|
-
},
|
|
4284
|
+
}, yt = {
|
|
4270
4285
|
borderRadius: hl,
|
|
4271
4286
|
colors: vl,
|
|
4272
4287
|
spacing: Cl
|
|
@@ -4319,7 +4334,7 @@ var pl = function(n) {
|
|
|
4319
4334
|
unstyled: !1
|
|
4320
4335
|
};
|
|
4321
4336
|
function eo(e, n, s, o) {
|
|
4322
|
-
var t = ui(e, n, s), i = li(e, n, s), r = ai(e, n), a =
|
|
4337
|
+
var t = ui(e, n, s), i = li(e, n, s), r = ai(e, n), a = Un(e, n);
|
|
4323
4338
|
return {
|
|
4324
4339
|
type: "option",
|
|
4325
4340
|
data: n,
|
|
@@ -4395,14 +4410,14 @@ function Sl(e, n) {
|
|
|
4395
4410
|
var s = e.focusedOption;
|
|
4396
4411
|
return s && n.indexOf(s) > -1 ? s : n[0];
|
|
4397
4412
|
}
|
|
4398
|
-
var
|
|
4413
|
+
var Ct = function(n, s) {
|
|
4399
4414
|
var o, t = (o = n.find(function(i) {
|
|
4400
4415
|
return i.data === s;
|
|
4401
4416
|
})) === null || o === void 0 ? void 0 : o.id;
|
|
4402
4417
|
return t || null;
|
|
4403
4418
|
}, ai = function(n, s) {
|
|
4404
4419
|
return n.getOptionLabel(s);
|
|
4405
|
-
},
|
|
4420
|
+
}, Un = function(n, s) {
|
|
4406
4421
|
return n.getOptionValue(s);
|
|
4407
4422
|
};
|
|
4408
4423
|
function ui(e, n, s) {
|
|
@@ -4412,9 +4427,9 @@ function li(e, n, s) {
|
|
|
4412
4427
|
if (s.indexOf(n) > -1) return !0;
|
|
4413
4428
|
if (typeof e.isOptionSelected == "function")
|
|
4414
4429
|
return e.isOptionSelected(n, s);
|
|
4415
|
-
var o =
|
|
4430
|
+
var o = Un(e, n);
|
|
4416
4431
|
return s.some(function(t) {
|
|
4417
|
-
return
|
|
4432
|
+
return Un(e, t) === o;
|
|
4418
4433
|
});
|
|
4419
4434
|
}
|
|
4420
4435
|
function di(e, n, s) {
|
|
@@ -4506,7 +4521,7 @@ var pi = function(n) {
|
|
|
4506
4521
|
removedValue: l
|
|
4507
4522
|
});
|
|
4508
4523
|
}, t.getFocusedOptionId = function(c) {
|
|
4509
|
-
return
|
|
4524
|
+
return Ct(t.state.focusableOptionsWithIds, c);
|
|
4510
4525
|
}, t.getFocusableOptionsWithIds = function() {
|
|
4511
4526
|
return no(Xn(t.props, t.state.selectValue), t.getElementId("option"));
|
|
4512
4527
|
}, t.getValue = function() {
|
|
@@ -4518,7 +4533,7 @@ var pi = function(n) {
|
|
|
4518
4533
|
}, t.getOptionLabel = function(c) {
|
|
4519
4534
|
return ai(t.props, c);
|
|
4520
4535
|
}, t.getOptionValue = function(c) {
|
|
4521
|
-
return
|
|
4536
|
+
return Un(t.props, c);
|
|
4522
4537
|
}, t.getStyles = function(c, u) {
|
|
4523
4538
|
var l = t.props.unstyled, p = gl[c](u, l);
|
|
4524
4539
|
p.boxSizing = "border-box";
|
|
@@ -4566,7 +4581,7 @@ var pi = function(n) {
|
|
|
4566
4581
|
return t.focusInput();
|
|
4567
4582
|
}));
|
|
4568
4583
|
}, t.onScroll = function(c) {
|
|
4569
|
-
typeof t.props.closeMenuOnScroll == "boolean" ? c.target instanceof HTMLElement &&
|
|
4584
|
+
typeof t.props.closeMenuOnScroll == "boolean" ? c.target instanceof HTMLElement && at(c.target) && t.props.onMenuClose() : typeof t.props.closeMenuOnScroll == "function" && t.props.closeMenuOnScroll(c) && t.props.onMenuClose();
|
|
4570
4585
|
}, t.onCompositionStart = function() {
|
|
4571
4586
|
t.isComposing = !0;
|
|
4572
4587
|
}, t.onCompositionEnd = function() {
|
|
@@ -4711,7 +4726,7 @@ var pi = function(n) {
|
|
|
4711
4726
|
}
|
|
4712
4727
|
}, t.state.instancePrefix = "react-select-" + (t.props.instanceId || ++wl), t.state.selectValue = Ms(o.value), o.menuIsOpen && t.state.selectValue.length) {
|
|
4713
4728
|
var i = t.getFocusableOptionsWithIds(), r = t.buildFocusableOptions(), a = r.indexOf(t.state.selectValue[0]);
|
|
4714
|
-
t.state.focusableOptionsWithIds = i, t.state.focusedOption = r[a], t.state.focusedOptionId =
|
|
4729
|
+
t.state.focusableOptionsWithIds = i, t.state.focusedOption = r[a], t.state.focusedOptionId = Ct(i, r[a]);
|
|
4715
4730
|
}
|
|
4716
4731
|
return t;
|
|
4717
4732
|
}
|
|
@@ -4838,7 +4853,7 @@ var pi = function(n) {
|
|
|
4838
4853
|
// Getters
|
|
4839
4854
|
// ==============================
|
|
4840
4855
|
function() {
|
|
4841
|
-
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(
|
|
4856
|
+
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(yt) : O(O({}, yt), this.props.theme) : yt;
|
|
4842
4857
|
}
|
|
4843
4858
|
)
|
|
4844
4859
|
}, {
|
|
@@ -4991,7 +5006,7 @@ var pi = function(n) {
|
|
|
4991
5006
|
id: S,
|
|
4992
5007
|
innerRef: this.getInputRef,
|
|
4993
5008
|
onBlur: this.onInputBlur,
|
|
4994
|
-
onChange:
|
|
5009
|
+
onChange: Jn,
|
|
4995
5010
|
onFocus: this.onInputFocus,
|
|
4996
5011
|
disabled: i,
|
|
4997
5012
|
tabIndex: u,
|
|
@@ -5307,7 +5322,7 @@ var pi = function(n) {
|
|
|
5307
5322
|
value: function(t, i) {
|
|
5308
5323
|
var r = i.prevProps, a = i.clearFocusValueOnUpdate, c = i.inputIsHiddenAfterUpdate, u = i.ariaSelection, l = i.isFocused, p = i.prevWasFocused, m = i.instancePrefix, b = t.options, y = t.value, g = t.menuIsOpen, I = t.inputValue, h = t.isMulti, C = Ms(y), S = {};
|
|
5309
5324
|
if (r && (y !== r.value || b !== r.options || g !== r.menuIsOpen || I !== r.inputValue)) {
|
|
5310
|
-
var _ = g ? El(t, C) : [], v = g ? no(Xn(t, C), "".concat(m, "-option")) : [], G = a ? Al(i, C) : null, x = Sl(i, _), w =
|
|
5325
|
+
var _ = g ? El(t, C) : [], v = g ? no(Xn(t, C), "".concat(m, "-option")) : [], G = a ? Al(i, C) : null, x = Sl(i, _), w = Ct(v, x);
|
|
5311
5326
|
S = {
|
|
5312
5327
|
selectValue: C,
|
|
5313
5328
|
focusedOption: x,
|
|
@@ -5415,7 +5430,7 @@ const Vl = ({ value: e, onClose: n }) => d.jsx("li", {
|
|
|
5415
5430
|
onClose: Rl(l, s, t)
|
|
5416
5431
|
}, c)), r ? d.jsx("li", {
|
|
5417
5432
|
className: "pill clear-selected",
|
|
5418
|
-
children: d.jsx(
|
|
5433
|
+
children: d.jsx(st, {
|
|
5419
5434
|
label: n,
|
|
5420
5435
|
onClick: a,
|
|
5421
5436
|
appearance: "warning",
|
|
@@ -5439,7 +5454,7 @@ const Vl = ({ value: e, onClose: n }) => d.jsx("li", {
|
|
|
5439
5454
|
name: "down"
|
|
5440
5455
|
})
|
|
5441
5456
|
});
|
|
5442
|
-
function
|
|
5457
|
+
function $d({ error: e, id: n, isMulti: s, label: o = "Dropdown w/ Multi-select", labelClearAll: t = "Clear All Selected Institutions", onSelect: i, options: r, pillAlign: a = "top", value: c, withCheckbox: u = !1, isClearable: l = !1, showClearAllSelectedButton: p = !0, className: m = "", ...b }) {
|
|
5443
5458
|
const [y, g] = Ce(""), I = (x, w) => {
|
|
5444
5459
|
w.action === "input-change" && g(x);
|
|
5445
5460
|
}, h = Ae(null), C = pe((x) => {
|
|
@@ -5592,14 +5607,14 @@ function dn() {
|
|
|
5592
5607
|
}
|
|
5593
5608
|
return this.addEventListener = n, this.removeEventListener = s, this.dispatchEvent = o, this.getRegisteredEvents = () => e, this;
|
|
5594
5609
|
}
|
|
5595
|
-
function
|
|
5610
|
+
function ut(e, n) {
|
|
5596
5611
|
if (!e)
|
|
5597
5612
|
return !1;
|
|
5598
5613
|
let s = e.getAttribute(He);
|
|
5599
5614
|
return s ? (s = s.split(" "), s.indexOf(n) > -1) : !1;
|
|
5600
5615
|
}
|
|
5601
5616
|
function Te(e, n) {
|
|
5602
|
-
if (
|
|
5617
|
+
if (ut(e, n)) return n;
|
|
5603
5618
|
if (n.indexOf(" ") !== -1) {
|
|
5604
5619
|
const o = He + " values cannot contain spaces!";
|
|
5605
5620
|
throw new Error(o);
|
|
@@ -5627,18 +5642,18 @@ function Sn(e, n) {
|
|
|
5627
5642
|
return Zl(e, n), Yl(e, n);
|
|
5628
5643
|
}
|
|
5629
5644
|
function cn(e) {
|
|
5630
|
-
return
|
|
5645
|
+
return ut(e, Ft) ? !1 : (Te(e, Ft), !0);
|
|
5631
5646
|
}
|
|
5632
5647
|
function wn(e, n, s, o = {}) {
|
|
5633
5648
|
const i = (s || document).querySelectorAll(e), r = [];
|
|
5634
5649
|
let a, c;
|
|
5635
5650
|
for (let u = 0, l = i.length; u < l; u++)
|
|
5636
|
-
c = i[u],
|
|
5651
|
+
c = i[u], ut(c, Ft) === !1 && (a = new n(c), a.init(o), r.push(a));
|
|
5637
5652
|
return r;
|
|
5638
5653
|
}
|
|
5639
5654
|
function io(e, n) {
|
|
5640
5655
|
let s;
|
|
5641
|
-
if (
|
|
5656
|
+
if (ut(e, n))
|
|
5642
5657
|
return s = e, s;
|
|
5643
5658
|
if (e) {
|
|
5644
5659
|
const o = "[" + He + "=" + n + "]";
|
|
@@ -5740,7 +5755,7 @@ de.END_EVENT = "transitionend";
|
|
|
5740
5755
|
de.NO_ANIMATION_CLASS = "u-no-animation";
|
|
5741
5756
|
de.ANIMATING_CLASS = "u-is-animating";
|
|
5742
5757
|
const vn = kl + "flyout-menu", zl = "[" + He + "=" + vn;
|
|
5743
|
-
function
|
|
5758
|
+
function lt(e, n = !0) {
|
|
5744
5759
|
const s = io(e, vn), o = C(e), t = io(e, vn + "_content");
|
|
5745
5760
|
let i = 0;
|
|
5746
5761
|
const r = 0, a = 1, c = 2, u = 3;
|
|
@@ -5863,7 +5878,7 @@ function ut(e, n = !0) {
|
|
|
5863
5878
|
return g = A, this;
|
|
5864
5879
|
}
|
|
5865
5880
|
const ae = new dn();
|
|
5866
|
-
return this.addEventListener = ae.addEventListener, this.removeEventListener = ae.removeEventListener, this.dispatchEvent = ae.dispatchEvent, this.init = S, this.expand = X, this.collapse = H, this.setTransition = te, this.clearTransition = se, this.getData = () => g, this.getTransition = () => l, this.getDom = J, this.isAnimating = () => i === c || i === a, this.isExpanded = () => i === u, this.resume = $, this.setData = ie, this.suspend = me,
|
|
5881
|
+
return this.addEventListener = ae.addEventListener, this.removeEventListener = ae.removeEventListener, this.dispatchEvent = ae.dispatchEvent, this.init = S, this.expand = X, this.collapse = H, this.setTransition = te, this.clearTransition = se, this.getData = () => g, this.getTransition = () => l, this.getDom = J, this.isAnimating = () => i === c || i === a, this.isExpanded = () => i === u, this.resume = $, this.setData = ie, this.suspend = me, lt.BASE_CLASS = vn, this;
|
|
5867
5882
|
}
|
|
5868
5883
|
const ro = "transitiondir", nn = {
|
|
5869
5884
|
CSS_PROPERTY: "max-height",
|
|
@@ -5939,7 +5954,7 @@ function Ue(e) {
|
|
|
5939
5954
|
const l = n.classList.contains(`${tn}--onload-open`);
|
|
5940
5955
|
Te(n, "behavior_flyout-menu"), Te(s, "behavior_flyout-menu_trigger"), Te(o, "behavior_flyout-menu_content");
|
|
5941
5956
|
const p = l ? De.CLASSES.MH_DEFAULT : De.CLASSES.MH_ZERO;
|
|
5942
|
-
return i = new De(o).init(p), l || o.classList.add("u-hidden"), r = new
|
|
5957
|
+
return i = new De(o).init(p), l || o.classList.add("u-hidden"), r = new lt(n), r.setTransition(
|
|
5943
5958
|
i,
|
|
5944
5959
|
i.maxHeightZero,
|
|
5945
5960
|
i.maxHeightDefault
|
|
@@ -5958,9 +5973,9 @@ function Ue(e) {
|
|
|
5958
5973
|
}
|
|
5959
5974
|
Ue.BASE_CLASS = tn;
|
|
5960
5975
|
Ue.init = (e) => wn(`.${Ue.BASE_CLASS}`, Ue, e);
|
|
5961
|
-
const
|
|
5962
|
-
function
|
|
5963
|
-
const n = Sn(e,
|
|
5976
|
+
const Qn = "o-expandable-group";
|
|
5977
|
+
function $n(e) {
|
|
5978
|
+
const n = Sn(e, Qn), s = n.classList.contains(`${Qn}--accordion`);
|
|
5964
5979
|
let o, t;
|
|
5965
5980
|
function i(a) {
|
|
5966
5981
|
const c = a.target;
|
|
@@ -5973,26 +5988,26 @@ function Qn(e) {
|
|
|
5973
5988
|
}
|
|
5974
5989
|
return this.init = r, this;
|
|
5975
5990
|
}
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
(e || document).querySelectorAll(`.${
|
|
5991
|
+
$n.BASE_CLASS = Qn;
|
|
5992
|
+
$n.init = (e) => {
|
|
5993
|
+
(e || document).querySelectorAll(`.${Qn}`).forEach((o) => {
|
|
5979
5994
|
const t = wn(
|
|
5980
5995
|
`.${Ue.BASE_CLASS}`,
|
|
5981
5996
|
Ue,
|
|
5982
5997
|
o
|
|
5983
5998
|
);
|
|
5984
|
-
new
|
|
5999
|
+
new $n(o).init(t);
|
|
5985
6000
|
});
|
|
5986
6001
|
};
|
|
5987
6002
|
const sn = "o-summary";
|
|
5988
|
-
function
|
|
6003
|
+
function Kn(e) {
|
|
5989
6004
|
const n = Sn(e, sn), s = n.classList.contains(`${sn}--mobile`), o = n.querySelector(`.${sn}__content`), t = n.querySelector(`.${sn}__btn`);
|
|
5990
6005
|
let i, r, a;
|
|
5991
6006
|
function c() {
|
|
5992
6007
|
return cn(n) ? (window.addEventListener("load", u), this) : this;
|
|
5993
6008
|
}
|
|
5994
6009
|
function u() {
|
|
5995
|
-
window.removeEventListener("load", u), a = !b(), Te(n, "behavior_flyout-menu"), Te(o, "behavior_flyout-menu_content"), Te(t, "behavior_flyout-menu_trigger"), r = new
|
|
6010
|
+
window.removeEventListener("load", u), a = !b(), Te(n, "behavior_flyout-menu"), Te(o, "behavior_flyout-menu_content"), Te(t, "behavior_flyout-menu_trigger"), r = new lt(n, !1), i = new De(o), i.init(
|
|
5996
6011
|
a ? De.CLASSES.MH_SUMMARY : De.CLASSES.MH_DEFAULT
|
|
5997
6012
|
), r.setTransition(
|
|
5998
6013
|
i,
|
|
@@ -6033,17 +6048,17 @@ function $n(e) {
|
|
|
6033
6048
|
const _ = new dn();
|
|
6034
6049
|
return this.addEventListener = _.addEventListener, this.removeEventListener = _.removeEventListener, this.dispatchEvent = _.dispatchEvent, this.init = c, this;
|
|
6035
6050
|
}
|
|
6036
|
-
|
|
6037
|
-
|
|
6051
|
+
Kn.BASE_CLASS = sn;
|
|
6052
|
+
Kn.init = (e) => wn(`.${sn}`, Kn, e);
|
|
6038
6053
|
const hn = "o-summary-minimal";
|
|
6039
|
-
function
|
|
6054
|
+
function qn(e) {
|
|
6040
6055
|
const n = Sn(e, hn), s = n.querySelector(`.${hn}__content`), o = n.querySelector(`.${hn}__btn`);
|
|
6041
6056
|
let t, i;
|
|
6042
6057
|
function r() {
|
|
6043
6058
|
return cn(n) ? (Te(n, "behavior_flyout-menu"), Te(s, "behavior_flyout-menu_content"), Te(o, "behavior_flyout-menu_trigger"), window.addEventListener("load", a), this) : this;
|
|
6044
6059
|
}
|
|
6045
6060
|
function a() {
|
|
6046
|
-
window.removeEventListener("load", a), i = new
|
|
6061
|
+
window.removeEventListener("load", a), i = new lt(n, !1), t = new De(s), t.init(De.CLASSES.MH_SUMMARY), i.setTransition(
|
|
6047
6062
|
t,
|
|
6048
6063
|
t.maxHeightSummary,
|
|
6049
6064
|
t.maxHeightDefault
|
|
@@ -6058,9 +6073,9 @@ function Kn(e) {
|
|
|
6058
6073
|
const l = new dn();
|
|
6059
6074
|
return this.addEventListener = l.addEventListener, this.removeEventListener = l.removeEventListener, this.dispatchEvent = l.dispatchEvent, this.init = r, this;
|
|
6060
6075
|
}
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
const
|
|
6076
|
+
qn.BASE_CLASS = hn;
|
|
6077
|
+
qn.init = (e) => wn(`.${hn}`, qn, e);
|
|
6078
|
+
const Kd = ({ header: e, children: n, icon: s = "", inAccordion: o = !1, isPadded: t = !1, openOnLoad: i = !1, className: r = "", ...a }) => {
|
|
6064
6079
|
Ge(() => {
|
|
6065
6080
|
o || Ue.init();
|
|
6066
6081
|
}, [o]);
|
|
@@ -6101,10 +6116,10 @@ const $d = ({ header: e, children: n, icon: s = "", inAccordion: o = !1, isPadde
|
|
|
6101
6116
|
children: n
|
|
6102
6117
|
})]
|
|
6103
6118
|
});
|
|
6104
|
-
},
|
|
6119
|
+
}, qd = ({ groupId: e, accordion: n = !1, children: s, className: o = "", ...t }) => {
|
|
6105
6120
|
const i = ["o-expandable-group", o];
|
|
6106
6121
|
n && i.push("o-expandable-group--accordion"), Ge(() => {
|
|
6107
|
-
|
|
6122
|
+
$n.init();
|
|
6108
6123
|
}, [n]);
|
|
6109
6124
|
const r = ke.Children.map(s, (a) => ke.isValidElement(a) ? ke.cloneElement(a, {
|
|
6110
6125
|
inAccordion: !0,
|
|
@@ -6160,7 +6175,7 @@ const $d = ({ header: e, children: n, icon: s = "", inAccordion: o = !1, isPadde
|
|
|
6160
6175
|
})
|
|
6161
6176
|
})
|
|
6162
6177
|
})
|
|
6163
|
-
}),
|
|
6178
|
+
}), xt = ({ children: e }) => es(e) ? null : d.jsx("div", {
|
|
6164
6179
|
className: "o-footer__col",
|
|
6165
6180
|
children: d.jsx(un, {
|
|
6166
6181
|
className: "o-footer__list",
|
|
@@ -6187,21 +6202,21 @@ function ql({ navLinks: e = [], socialLinks: n = [], linksCol1: s = [], linksCol
|
|
|
6187
6202
|
})]
|
|
6188
6203
|
}), d.jsxs("div", {
|
|
6189
6204
|
className: "o-footer__middle-left",
|
|
6190
|
-
children: [d.jsx(
|
|
6205
|
+
children: [d.jsx(xt, {
|
|
6191
6206
|
children: s
|
|
6192
|
-
}), d.jsx(
|
|
6207
|
+
}), d.jsx(xt, {
|
|
6193
6208
|
children: o
|
|
6194
6209
|
})]
|
|
6195
6210
|
}), d.jsx("div", {
|
|
6196
6211
|
className: "o-footer__middle-right",
|
|
6197
|
-
children: d.jsx(
|
|
6212
|
+
children: d.jsx(xt, {
|
|
6198
6213
|
children: t
|
|
6199
6214
|
})
|
|
6200
6215
|
}), d.jsx(Ql, {})]
|
|
6201
6216
|
})
|
|
6202
6217
|
});
|
|
6203
6218
|
}
|
|
6204
|
-
const
|
|
6219
|
+
const ep = ({ cfLink: e = "https://www.consumerfinance.gov", className: n, ...s }) => {
|
|
6205
6220
|
const o = [d.jsx("a", {
|
|
6206
6221
|
href: `${e}/about-us/`,
|
|
6207
6222
|
children: "About Us"
|
|
@@ -6367,12 +6382,12 @@ function td({ children: e, width: n = ns.Full, demo: s, center: o, className: t,
|
|
|
6367
6382
|
children: e
|
|
6368
6383
|
});
|
|
6369
6384
|
}
|
|
6370
|
-
const
|
|
6385
|
+
const np = {
|
|
6371
6386
|
Column: ed,
|
|
6372
6387
|
Row: nd,
|
|
6373
6388
|
Width: ns,
|
|
6374
6389
|
Wrapper: td
|
|
6375
|
-
},
|
|
6390
|
+
}, et = ({ type: e = "1", children: n, className: s, ...o }) => {
|
|
6376
6391
|
let t;
|
|
6377
6392
|
const i = [s];
|
|
6378
6393
|
return e === "slug" ? (i.push("m-slug-header"), d.jsx("header", {
|
|
@@ -6413,7 +6428,7 @@ const ep = {
|
|
|
6413
6428
|
);`);
|
|
6414
6429
|
}, [s, e, n]), s;
|
|
6415
6430
|
};
|
|
6416
|
-
function
|
|
6431
|
+
function tp({ backgroundColor: e, heading: n, headingLevel: s = "h1", image: o, imageAltText: t = "hero image", imageIsPhoto: i, is5050: r, isJumbo: a, isKnockout: c, subheading: u, subheadingLevel: l = "p", textColor: p, className: m, ...b }) {
|
|
6417
6432
|
const g = od(o, i ?? a ?? r), I = {
|
|
6418
6433
|
backgroundColor: e
|
|
6419
6434
|
}, h = {
|
|
@@ -6440,14 +6455,14 @@ function np({ backgroundColor: e, heading: n, headingLevel: s = "h1", image: o,
|
|
|
6440
6455
|
children: [d.jsxs("div", {
|
|
6441
6456
|
className: "m-hero__text",
|
|
6442
6457
|
style: h,
|
|
6443
|
-
children: [d.jsx(
|
|
6458
|
+
children: [d.jsx(et, {
|
|
6444
6459
|
className: "m-hero__heading",
|
|
6445
6460
|
type: S[s],
|
|
6446
6461
|
children: n
|
|
6447
6462
|
}), l === "p" ? d.jsx("p", {
|
|
6448
6463
|
className: "m-hero__subhead",
|
|
6449
6464
|
children: u
|
|
6450
|
-
}) : d.jsx(
|
|
6465
|
+
}) : d.jsx(et, {
|
|
6451
6466
|
className: "m-hero__subhead",
|
|
6452
6467
|
type: S[l],
|
|
6453
6468
|
children: u
|
|
@@ -6485,7 +6500,7 @@ const id = ({ children: e, flushBottom: n, flushTopOnSmall: s, flushAllOnSmall:
|
|
|
6485
6500
|
className: "wrapper",
|
|
6486
6501
|
...n,
|
|
6487
6502
|
children: e
|
|
6488
|
-
}),
|
|
6503
|
+
}), sp = {
|
|
6489
6504
|
Content: id,
|
|
6490
6505
|
Main: rd,
|
|
6491
6506
|
Sidebar: cd,
|
|
@@ -6536,7 +6551,7 @@ d.jsx(Be, {
|
|
|
6536
6551
|
className: "nav-item",
|
|
6537
6552
|
href: "/profile",
|
|
6538
6553
|
children: "John Sample"
|
|
6539
|
-
}, "profile"), d.jsx(
|
|
6554
|
+
}, "profile"), d.jsx(st, {
|
|
6540
6555
|
label: "LOG OUT",
|
|
6541
6556
|
asLink: !0,
|
|
6542
6557
|
onClick: ""
|
|
@@ -6628,13 +6643,13 @@ d.jsx(Be, {
|
|
|
6628
6643
|
children: d.jsx("span", {
|
|
6629
6644
|
children: "John Sample"
|
|
6630
6645
|
})
|
|
6631
|
-
}, "profile"), d.jsx(
|
|
6646
|
+
}, "profile"), d.jsx(st, {
|
|
6632
6647
|
label: "LOG OUT",
|
|
6633
6648
|
asLink: !0,
|
|
6634
6649
|
onClick: () => {
|
|
6635
6650
|
}
|
|
6636
6651
|
}, "logout");
|
|
6637
|
-
function
|
|
6652
|
+
function op({ links: e, user: n, href: s, withBottomBorder: o = !0 }) {
|
|
6638
6653
|
const t = ["o-header"];
|
|
6639
6654
|
return o && t.push("bottom-border"), d.jsxs("header", {
|
|
6640
6655
|
className: M(t),
|
|
@@ -6756,7 +6771,7 @@ function ts({ children: e, isLead: n, className: s, ...o }) {
|
|
|
6756
6771
|
children: e
|
|
6757
6772
|
});
|
|
6758
6773
|
}
|
|
6759
|
-
const Id = ["a-radio"], yd = ["m-form-field m-form-field--radio"],
|
|
6774
|
+
const Id = ["a-radio"], yd = ["m-form-field m-form-field--radio"], ip = ({ id: e, name: n, helperText: s, className: o, disabled: t = !1, isLarge: i = !1, labelClassName: r, labelInline: a = !0, label: c, inputRef: u, ...l }) => {
|
|
6760
6775
|
const p = [...Id, o].join(" "), m = [...yd, i ? "m-form-field--lg-target" : ""].join(" ");
|
|
6761
6776
|
return d.jsxs("div", {
|
|
6762
6777
|
className: m,
|
|
@@ -6853,14 +6868,14 @@ function Ne(e, n, s) {
|
|
|
6853
6868
|
t in o ? o[t] = i : o.setAttribute(t, i);
|
|
6854
6869
|
}), n && n.appendChild(o), o;
|
|
6855
6870
|
}
|
|
6856
|
-
const Sd = '<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="cf-icon-svg cf-icon-svg--error" viewBox="0 0 12 19"><path d="M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"/></svg>', wd = Sd, Se = "o-multiselect", Gd = "a-checkbox", _d = "a-text-input", uo = "prev", On = "next",
|
|
6871
|
+
const Sd = '<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="cf-icon-svg cf-icon-svg--error" viewBox="0 0 12 19"><path d="M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"/></svg>', wd = Sd, Se = "o-multiselect", Gd = "a-checkbox", _d = "a-text-input", uo = "prev", On = "next", Et = "Enter", Nd = " ", lo = "Escape", Rd = "ArrowUp", po = "ArrowDown", fo = "Tab", mo = {
|
|
6857
6872
|
// TODO: renderTags was added as a workaround for DS icons not rendering correctly when integrating with a React implementation.
|
|
6858
6873
|
renderTags: !0,
|
|
6859
6874
|
// Allow the Multiselect to generate the Tag elements in the DOM
|
|
6860
6875
|
maxSelections: gi
|
|
6861
6876
|
// Maximum number of options a user can select
|
|
6862
6877
|
};
|
|
6863
|
-
function
|
|
6878
|
+
function nt(e) {
|
|
6864
6879
|
e.classList.add(Se);
|
|
6865
6880
|
let n = Sn(e, Se), s = !1, o, t, i, r, a, c, u, l, p, m, b;
|
|
6866
6881
|
const y = [];
|
|
@@ -6917,7 +6932,7 @@ function et(e) {
|
|
|
6917
6932
|
R.tagName === "BUTTON" && (A.preventDefault(), R.removeEventListener("click", X), R.querySelector("label").click());
|
|
6918
6933
|
}
|
|
6919
6934
|
function H(A) {
|
|
6920
|
-
if (A.key === Nd || A.key ===
|
|
6935
|
+
if (A.key === Nd || A.key === Et) {
|
|
6921
6936
|
const R = A.target.querySelector("label");
|
|
6922
6937
|
b.querySelector(
|
|
6923
6938
|
"#" + R.getAttribute("for")
|
|
@@ -6970,12 +6985,12 @@ function et(e) {
|
|
|
6970
6985
|
!s && m.getAttribute("aria-hidden") === "false" && G();
|
|
6971
6986
|
}), p.addEventListener("keydown", function(N) {
|
|
6972
6987
|
const V = N.key;
|
|
6973
|
-
m.getAttribute("aria-hidden") === "true" && V !== fo && v(), V ===
|
|
6988
|
+
m.getAttribute("aria-hidden") === "true" && V !== fo && v(), V === Et ? (N.preventDefault(), x(On)) : V === lo ? (w(), G()) : V === po ? x(On) : V === fo && !N.shiftKey && m.getAttribute("aria-hidden") === "false" && G();
|
|
6974
6989
|
}), b.addEventListener("mousedown", function() {
|
|
6975
6990
|
s = !0;
|
|
6976
6991
|
}), b.addEventListener("keydown", function(N) {
|
|
6977
6992
|
const V = N.key, W = N.target, re = W.checked;
|
|
6978
|
-
if (V ===
|
|
6993
|
+
if (V === Et) {
|
|
6979
6994
|
N.preventDefault(), W.checked = !re;
|
|
6980
6995
|
const ee = new Event("change", { bubbles: !1, cancelable: !0 });
|
|
6981
6996
|
W.dispatchEvent(ee);
|
|
@@ -7053,8 +7068,8 @@ function et(e) {
|
|
|
7053
7068
|
const ae = new dn();
|
|
7054
7069
|
return this.addEventListener = ae.addEventListener, this.removeEventListener = ae.removeEventListener, this.dispatchEvent = ae.dispatchEvent, this.getModel = ie, this.updateSelections = te, this.selectionClickHandler = X, this.selectionKeyDownHandler = H, this;
|
|
7055
7070
|
}
|
|
7056
|
-
|
|
7057
|
-
|
|
7071
|
+
nt.BASE_CLASS = Se;
|
|
7072
|
+
nt.init = (e) => wn(`.${Se}`, nt, void 0, e);
|
|
7058
7073
|
const hi = (e, n) => {
|
|
7059
7074
|
const s = e.map(({ value: o, label: t }) => d.jsx("option", {
|
|
7060
7075
|
value: o,
|
|
@@ -7068,7 +7083,7 @@ const hi = (e, n) => {
|
|
|
7068
7083
|
}, Bd = (e, n) => e.find((s) => s.value === n), Vd = 5, Td = ({ id: e, options: n, label: s, onChange: o = Xe, defaultOptionLabel: t = "-- select an option --", maxSelections: i = Vd, ...r }) => {
|
|
7069
7084
|
const [a, c] = Ce([]), u = Ae(null);
|
|
7070
7085
|
return Ge(() => {
|
|
7071
|
-
const p = new
|
|
7086
|
+
const p = new nt(u.current).init({
|
|
7072
7087
|
maxSelections: i,
|
|
7073
7088
|
renderTags: !0
|
|
7074
7089
|
}), m = () => {
|
|
@@ -7122,15 +7137,15 @@ const hi = (e, n) => {
|
|
|
7122
7137
|
})
|
|
7123
7138
|
})]
|
|
7124
7139
|
});
|
|
7125
|
-
},
|
|
7140
|
+
}, rp = ({ isMulti: e = !1, onChange: n = () => null, ...s }) => e ? d.jsx(Td, {
|
|
7126
7141
|
onChange: n,
|
|
7127
7142
|
...s
|
|
7128
7143
|
}) : d.jsx(Fd, {
|
|
7129
7144
|
onChange: n,
|
|
7130
7145
|
...s
|
|
7131
|
-
}),
|
|
7146
|
+
}), cp = ({ children: e, label: n = "Show full text", isMobileOnly: s = !1, isMinimal: o = !1, className: t = "", ...i }) => {
|
|
7132
7147
|
Ge(() => {
|
|
7133
|
-
o ?
|
|
7148
|
+
o ? qn.init() : Kn.init(), document.readyState === "complete" && window.dispatchEvent(new Event("load"));
|
|
7134
7149
|
}, [o]);
|
|
7135
7150
|
const r = o ? "o-summary-minimal" : "o-summary", a = [r, t];
|
|
7136
7151
|
return s && a.push(`${r}--mobile`), d.jsxs("div", {
|
|
@@ -7168,7 +7183,7 @@ const hi = (e, n) => {
|
|
|
7168
7183
|
})]
|
|
7169
7184
|
});
|
|
7170
7185
|
};
|
|
7171
|
-
function
|
|
7186
|
+
function ap({ href: e = "#main", text: n = "Skip to main content" }) {
|
|
7172
7187
|
return d.jsx("div", {
|
|
7173
7188
|
className: "skip-nav",
|
|
7174
7189
|
children: d.jsx("a", {
|
|
@@ -7249,7 +7264,7 @@ const Md = {
|
|
|
7249
7264
|
error: "a-text-input--error",
|
|
7250
7265
|
warning: "a-text-input--warning",
|
|
7251
7266
|
info: "a-text-input--info"
|
|
7252
|
-
}, Ii = (e) => Md[e],
|
|
7267
|
+
}, Ii = (e) => Md[e], up = an(({ id: e, className: n = "", status: s = "info", placeholder: o = "Placeholder text", isFullWidth: t = !1, isDisabled: i = !1, onChange: r = Xe, ...a }, c) => {
|
|
7253
7268
|
const u = (p) => {
|
|
7254
7269
|
p.preventDefault(), r(p.target.value);
|
|
7255
7270
|
}, l = ["a-text-input", Ii(s), t ? "a-text-input--full" : "", n || ""].filter((p) => p.length);
|
|
@@ -7265,7 +7280,7 @@ const Md = {
|
|
|
7265
7280
|
...a
|
|
7266
7281
|
})
|
|
7267
7282
|
});
|
|
7268
|
-
}),
|
|
7283
|
+
}), lp = an(({ className: e, id: n, inputRef: s, isDisabled: o = !1, name: t, status: i = "info", type: r = "text", isFullWidth: a = !1, ...c }, u) => {
|
|
7269
7284
|
const l = ["a-text-input", e, Ii(i)];
|
|
7270
7285
|
return a ? (l.push("a-text-input--full"), d.jsx("div", {
|
|
7271
7286
|
className: "m-form-field",
|
|
@@ -7292,7 +7307,7 @@ const Md = {
|
|
|
7292
7307
|
}) : e : null, Ze = ({ heading: e, subheading: n, description: s, callToAction: o, className: t, ...i }) => {
|
|
7293
7308
|
const r = ["o-text-introduction", t], a = o && d.jsx(un, {
|
|
7294
7309
|
isLinks: !0,
|
|
7295
|
-
children: d.jsx(
|
|
7310
|
+
children: d.jsx(tt, {
|
|
7296
7311
|
children: Hi(o, {
|
|
7297
7312
|
type: "list"
|
|
7298
7313
|
})
|
|
@@ -7301,7 +7316,7 @@ const Md = {
|
|
|
7301
7316
|
return d.jsxs("div", {
|
|
7302
7317
|
className: M(r),
|
|
7303
7318
|
...i,
|
|
7304
|
-
children: [d.jsx(
|
|
7319
|
+
children: [d.jsx(et, {
|
|
7305
7320
|
type: "1",
|
|
7306
7321
|
children: e
|
|
7307
7322
|
}), d.jsx(ts, {
|
|
@@ -7318,27 +7333,27 @@ Ze.Container = ({ className: e, children: n, ...s }) => {
|
|
|
7318
7333
|
children: n
|
|
7319
7334
|
});
|
|
7320
7335
|
};
|
|
7321
|
-
const
|
|
7322
|
-
Ze.Heading = ({ children: e }) => d.jsx(
|
|
7336
|
+
const dp = Ze.Container;
|
|
7337
|
+
Ze.Heading = ({ children: e }) => d.jsx(et, {
|
|
7323
7338
|
type: "1",
|
|
7324
7339
|
children: e
|
|
7325
7340
|
});
|
|
7326
|
-
const
|
|
7341
|
+
const pp = Ze.Heading;
|
|
7327
7342
|
Ze.Description = ({ children: e }) => yi(e);
|
|
7328
|
-
const
|
|
7343
|
+
const fp = Ze.Description;
|
|
7329
7344
|
Ze.Subheading = ({ children: e }) => d.jsx(ts, {
|
|
7330
7345
|
isLead: !0,
|
|
7331
7346
|
children: e
|
|
7332
7347
|
});
|
|
7333
|
-
const
|
|
7348
|
+
const mp = Ze.Subheading, jd = ({ children: e, className: n = "", ...s }) => d.jsx("div", {
|
|
7334
7349
|
className: `o-well ${n}`,
|
|
7335
7350
|
...s,
|
|
7336
7351
|
children: e
|
|
7337
7352
|
});
|
|
7338
|
-
function
|
|
7353
|
+
function bp({ heading: e, headingLevel: n = "h3", links: s, text: o, className: t = "", ...i }) {
|
|
7339
7354
|
const r = [];
|
|
7340
7355
|
if (s) for (const a of s)
|
|
7341
|
-
r.push(d.jsx(
|
|
7356
|
+
r.push(d.jsx(tt, {
|
|
7342
7357
|
children: a
|
|
7343
7358
|
}, a.key));
|
|
7344
7359
|
return d.jsxs(jd, {
|
|
@@ -7360,52 +7375,53 @@ export {
|
|
|
7360
7375
|
Yd as Alert,
|
|
7361
7376
|
ir as AlertFieldLevel,
|
|
7362
7377
|
pr as Banner,
|
|
7363
|
-
|
|
7364
|
-
|
|
7378
|
+
zd as Breadcrumb,
|
|
7379
|
+
st as Button,
|
|
7380
|
+
Ud as ButtonGroup,
|
|
7365
7381
|
yr as Checkbox,
|
|
7366
7382
|
Zd as DestructiveLink,
|
|
7367
|
-
|
|
7368
|
-
|
|
7383
|
+
Qd as Divider,
|
|
7384
|
+
$d as Dropdown,
|
|
7369
7385
|
Vl as DropdownPill,
|
|
7370
7386
|
so as DropdownPills,
|
|
7371
|
-
|
|
7372
|
-
|
|
7387
|
+
Kd as Expandable,
|
|
7388
|
+
qd as ExpandableGroup,
|
|
7373
7389
|
ql as Footer,
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7390
|
+
ep as FooterCfGov,
|
|
7391
|
+
np as Grid,
|
|
7392
|
+
et as Heading,
|
|
7393
|
+
tp as Hero,
|
|
7378
7394
|
oe as Icon,
|
|
7379
7395
|
En as Label,
|
|
7380
7396
|
Jd as LanguageLink,
|
|
7381
|
-
|
|
7397
|
+
sp as Layout,
|
|
7382
7398
|
Be as Link,
|
|
7383
7399
|
rr as LinkText,
|
|
7384
7400
|
un as List,
|
|
7385
|
-
|
|
7401
|
+
tt as ListItem,
|
|
7386
7402
|
Ot as ListItemBuilder,
|
|
7387
7403
|
cr as ListLink,
|
|
7388
7404
|
dd as Navbar,
|
|
7389
|
-
|
|
7405
|
+
op as PageHeader,
|
|
7390
7406
|
vd as Pagination,
|
|
7391
7407
|
ts as Paragraph,
|
|
7392
|
-
|
|
7408
|
+
ip as RadioButton,
|
|
7393
7409
|
md as ResponsiveMenu,
|
|
7394
|
-
|
|
7410
|
+
rp as Select,
|
|
7395
7411
|
Td as SelectMulti,
|
|
7396
7412
|
Fd as SelectSingle,
|
|
7397
|
-
|
|
7398
|
-
|
|
7413
|
+
ap as SkipNav,
|
|
7414
|
+
cp as Summary,
|
|
7399
7415
|
Xd as Table,
|
|
7400
7416
|
lr as Tagline,
|
|
7401
|
-
|
|
7402
|
-
|
|
7417
|
+
up as TextArea,
|
|
7418
|
+
lp as TextInput,
|
|
7403
7419
|
Ze as TextIntroduction,
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7420
|
+
dp as TextIntroductionContainer,
|
|
7421
|
+
fp as TextIntroductionDescription,
|
|
7422
|
+
pp as TextIntroductionHeading,
|
|
7423
|
+
mp as TextIntroductionSubheading,
|
|
7408
7424
|
jd as WellContainer,
|
|
7409
|
-
|
|
7425
|
+
bp as WellContent,
|
|
7410
7426
|
hd as usePagination
|
|
7411
7427
|
};
|