@cfpb/design-system-react 0.0.14 → 0.0.15
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/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +323 -374
- package/dist/src/components/PageHeader/page-header.d.ts +1 -3
- package/dist/src/components/PageHeader/page-header.stories.d.ts +1 -2
- package/dist/src/components/ResponsiveMenu/responsive-menu.stories.d.ts +1 -3
- package/dist/src/components/TextInput/text-input.stories.d.ts +1 -1
- package/dist/src/index.d.ts +0 -1
- package/package.json +15 -16
- package/dist/src/components/Navbar/navbar.d.ts +0 -12
- package/dist/src/components/Navbar/navbar.stories.d.ts +0 -8
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as c, jsxs as v, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { Link as ls } from "react-router
|
|
1
|
+
import { jsx as c, jsxs as v, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
+
import se, { useState as ae, useEffect as Q, createElement as Ge, Fragment as ds, forwardRef as Se, useCallback as ze, useRef as Xe, useId as Je, cloneElement as as } from "react";
|
|
3
|
+
import { Link as ls } from "react-router";
|
|
4
4
|
function ms(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
@@ -46,7 +46,7 @@ const w = /* @__PURE__ */ ms(us), bs = (e, s, o) => {
|
|
|
46
46
|
});
|
|
47
47
|
}, gs = (e) => {
|
|
48
48
|
const [s, o] = ae(null);
|
|
49
|
-
return
|
|
49
|
+
return Q(() => {
|
|
50
50
|
let t = !0;
|
|
51
51
|
return (async () => {
|
|
52
52
|
try {
|
|
@@ -96,7 +96,7 @@ const w = /* @__PURE__ */ ms(us), bs = (e, s, o) => {
|
|
|
96
96
|
...d
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
|
-
function
|
|
99
|
+
function te({ children: e, className: s, isHorizontal: o, isLinks: t = !1, isOrdered: i, isSpaced: n, isUnstyled: r }) {
|
|
100
100
|
const p = ["m-list"];
|
|
101
101
|
return o && p.push("m-list--horizontal"), t && p.push("m-list--links"), n && p.push("m-list--spaced"), r && p.push("m-list--unstyled"), s && p.push(s), i ? c("ol", {
|
|
102
102
|
className: w(p),
|
|
@@ -106,14 +106,14 @@ function ie({ children: e, className: s, isHorizontal: o, isLinks: t = !1, isOrd
|
|
|
106
106
|
children: e
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
var
|
|
109
|
+
var es = ((e) => (e.info = "--info", e.error = "--error", e.success = "--success", e.warning = "--warning", e))(es || {});
|
|
110
110
|
const ws = {
|
|
111
111
|
info: "information",
|
|
112
112
|
error: "error",
|
|
113
113
|
success: "approved",
|
|
114
114
|
warning: "warning"
|
|
115
115
|
}, Ss = ({ status: e = "info", message: s, isVisible: o = !0, ...t }) => !o || !s ? null : ["error", "success", "warning", "info"].includes(e) ? v("div", {
|
|
116
|
-
className: `a-form-alert a-form-alert${
|
|
116
|
+
className: `a-form-alert a-form-alert${es[e]}`,
|
|
117
117
|
...t,
|
|
118
118
|
children: [c(T, {
|
|
119
119
|
ariaLabel: `${e} icon`,
|
|
@@ -126,7 +126,7 @@ const ws = {
|
|
|
126
126
|
}) : v("p", {
|
|
127
127
|
children: ["[Error] Unsupported field-level alert type provided: ", e]
|
|
128
128
|
});
|
|
129
|
-
function
|
|
129
|
+
function Le({ children: e, className: s, ...o }) {
|
|
130
130
|
return c("li", {
|
|
131
131
|
className: w("m-list__item", s),
|
|
132
132
|
...o,
|
|
@@ -134,17 +134,17 @@ function Ne({ children: e, className: s, ...o }) {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
function Me({ children: e, itemClassname: s = "", className: o }) {
|
|
137
|
-
return c(
|
|
138
|
-
children: e.map((t) => c(
|
|
137
|
+
return c(ne, {
|
|
138
|
+
children: e.map((t) => c(Le, {
|
|
139
139
|
className: o,
|
|
140
|
-
children:
|
|
140
|
+
children: se.cloneElement(t, {
|
|
141
141
|
className: `${s} ${t.props?.className ?? ""}`
|
|
142
142
|
})
|
|
143
143
|
}, t.key))
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
const u = !e && (!!(t ?? i) || n), h = e || u ? c(
|
|
146
|
+
function re({ asButton: e = !1, children: s, href: o, iconLeft: t, iconRight: i, isJump: n = !1, isRouterLink: r = !1, label: p, type: d = "default", ...l }) {
|
|
147
|
+
const u = !e && (!!(t ?? i) || n), h = e || u ? c(Ls, {
|
|
148
148
|
children: p
|
|
149
149
|
}) : p, y = w(l.className, {
|
|
150
150
|
"a-btn": e || d === "destructive",
|
|
@@ -176,16 +176,16 @@ function U({ asButton: e = !1, children: s, href: o, iconLeft: t, iconRight: i,
|
|
|
176
176
|
})]
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
const
|
|
179
|
+
const Ls = ({ children: e, ...s }) => c("span", {
|
|
180
180
|
className: "a-link__text",
|
|
181
181
|
...s,
|
|
182
182
|
children: e
|
|
183
|
-
}),
|
|
184
|
-
children: c(
|
|
183
|
+
}), Ns = (e) => c(Le, {
|
|
184
|
+
children: c(re, {
|
|
185
185
|
...e,
|
|
186
186
|
isJump: !0
|
|
187
187
|
})
|
|
188
|
-
}), xs = ({ href: e, label: s, isExternal: o }) => c(
|
|
188
|
+
}), xs = ({ href: e, label: s, isExternal: o }) => c(Ns, {
|
|
189
189
|
href: e,
|
|
190
190
|
label: s,
|
|
191
191
|
iconRight: o ? "external-link" : void 0
|
|
@@ -210,7 +210,7 @@ const Ns = ({ children: e, ...s }) => c("span", {
|
|
|
210
210
|
name: "warning",
|
|
211
211
|
withBg: !0
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, Vn = ({ children: e, className: s, links: o, message: t, status: i = "info", isVisible: n = !0, isFieldLevel: r = !1, showIcon: p = !0, ...d }) => {
|
|
214
214
|
if (!n) return null;
|
|
215
215
|
if (r)
|
|
216
216
|
return c(Ss, {
|
|
@@ -239,9 +239,9 @@ const Ns = ({ children: e, ...s }) => c("span", {
|
|
|
239
239
|
}) : null, e ? c("div", {
|
|
240
240
|
className: `${t ? "m-notification__explanation" : ""}`,
|
|
241
241
|
children: e
|
|
242
|
-
}) : null, o && o.length > 0 ? c(
|
|
242
|
+
}) : null, o && o.length > 0 ? c(te, {
|
|
243
243
|
isLinks: !0,
|
|
244
|
-
children: o.map((a) =>
|
|
244
|
+
children: o.map((a) => Ge(xs, {
|
|
245
245
|
...a,
|
|
246
246
|
key: a.href
|
|
247
247
|
}))
|
|
@@ -271,7 +271,7 @@ const Ns = ({ children: e, ...s }) => c("span", {
|
|
|
271
271
|
href: `tel:+${e}`,
|
|
272
272
|
children: e
|
|
273
273
|
});
|
|
274
|
-
}, Ts = ({ isHorizontal: e = !0, tagline: s = v(
|
|
274
|
+
}, Ts = ({ isHorizontal: e = !0, tagline: s = v(ne, {
|
|
275
275
|
children: ["An official website of the", " ", c("span", {
|
|
276
276
|
className: "u-nowrap",
|
|
277
277
|
children: "United States government"
|
|
@@ -342,7 +342,7 @@ const Ns = ({ children: e, ...s }) => c("span", {
|
|
|
342
342
|
label: "Kreyòl Ayisyen",
|
|
343
343
|
code: "ht"
|
|
344
344
|
}
|
|
345
|
-
},
|
|
345
|
+
}, Qn = ({ code: e, href: s, label: o, languageMap: t = Is, ...i }) => {
|
|
346
346
|
const n = t[e];
|
|
347
347
|
let r = e, p = e, d = o, l = s;
|
|
348
348
|
return n && (r = n.code, p = n.code, d = o ?? n.label, l = n.href || s), c("a", {
|
|
@@ -352,7 +352,7 @@ const Ns = ({ children: e, ...s }) => c("span", {
|
|
|
352
352
|
...i,
|
|
353
353
|
children: d
|
|
354
354
|
});
|
|
355
|
-
},
|
|
355
|
+
}, jn = ({ crumbs: e, ariaLabel: s = "Breadcrumbs", className: o, ...t }) => e.length === 0 ? null : c("div", {
|
|
356
356
|
className: w("u-layout-grid__breadcrumbs", o),
|
|
357
357
|
...t,
|
|
358
358
|
children: c("nav", {
|
|
@@ -377,7 +377,7 @@ const Ns = ({ children: e, ...s }) => c("span", {
|
|
|
377
377
|
}, Hs = {
|
|
378
378
|
default: [],
|
|
379
379
|
full: ["a-btn--full-on-xs"]
|
|
380
|
-
},
|
|
380
|
+
}, de = Se(({ appearance: e = "primary", asLink: s = !1, size: o = "default", label: t, className: i, iconLeft: n, iconRight: r, ...p }, d) => {
|
|
381
381
|
const l = [...Os, ...Bs[e], ...Hs[o]];
|
|
382
382
|
return s && l.push("a-btn--link"), i && l.push(i), p.disabled && l.push("a-btn--disabled"), v("button", {
|
|
383
383
|
ref: d,
|
|
@@ -395,16 +395,16 @@ const Ns = ({ children: e, ...s }) => c("span", {
|
|
|
395
395
|
})]
|
|
396
396
|
});
|
|
397
397
|
});
|
|
398
|
-
|
|
399
|
-
const
|
|
398
|
+
de.displayName = "Button";
|
|
399
|
+
const Yn = ({ className: e, children: s, ...o }) => s ? c("div", {
|
|
400
400
|
className: `m-btn-group ${e ?? ""}`,
|
|
401
401
|
...o,
|
|
402
402
|
children: s
|
|
403
|
-
}) : null,
|
|
403
|
+
}) : null, ss = ({ children: e, className: s, ...o }) => e ? v("small", {
|
|
404
404
|
className: w(["a-label__helper", s]),
|
|
405
405
|
...o,
|
|
406
406
|
children: ["(", e, ")"]
|
|
407
|
-
}) : null, Ms = ["a-label"],
|
|
407
|
+
}) : null, Ms = ["a-label"], ns = ({ children: e, inline: s = !1, htmlFor: o, className: t, ...i }) => {
|
|
408
408
|
const r = [...[...Ms, s ? "" : "a-label--heading"], t];
|
|
409
409
|
return e ? c("label", {
|
|
410
410
|
...i,
|
|
@@ -416,12 +416,12 @@ const Kn = ({ className: e, children: s, ...o }) => s ? c("div", {
|
|
|
416
416
|
success: "m-form-field--checkbox-success",
|
|
417
417
|
warning: "m-form-field--checkbox-warning",
|
|
418
418
|
error: "m-form-field--checkbox-error"
|
|
419
|
-
},
|
|
420
|
-
const _ =
|
|
419
|
+
}, Zn = ({ id: e, label: s, className: o, inputClassName: t, labelClassName: i = "", checked: n = !1, helperText: r, inputRef: p, disabled: d = !1, isLarge: l = !1, labelInline: a = !0, name: u, onChange: b, status: h, ...y }) => {
|
|
420
|
+
const _ = ze((x) => {
|
|
421
421
|
b?.(x);
|
|
422
|
-
}, [b]),
|
|
422
|
+
}, [b]), N = [...Ds, l ? "m-form-field--lg-target" : "", h ? Ps[h] : "", o];
|
|
423
423
|
return v("div", {
|
|
424
|
-
className: w(
|
|
424
|
+
className: w(N),
|
|
425
425
|
children: [c("input", {
|
|
426
426
|
id: e,
|
|
427
427
|
type: "checkbox",
|
|
@@ -434,17 +434,17 @@ const Kn = ({ className: e, children: s, ...o }) => s ? c("div", {
|
|
|
434
434
|
onChange: _,
|
|
435
435
|
...y,
|
|
436
436
|
className: w(["a-checkbox", t])
|
|
437
|
-
}), v(
|
|
437
|
+
}), v(ns, {
|
|
438
438
|
id: `${e}-label`,
|
|
439
439
|
className: i,
|
|
440
440
|
htmlFor: e,
|
|
441
441
|
inline: a,
|
|
442
|
-
children: [s, c(
|
|
442
|
+
children: [s, c(ss, {
|
|
443
443
|
children: r
|
|
444
444
|
})]
|
|
445
445
|
})]
|
|
446
446
|
});
|
|
447
|
-
},
|
|
447
|
+
}, Kn = ({ className: e = "", ...s }) => c("div", {
|
|
448
448
|
className: `content__line ${e}`,
|
|
449
449
|
...s
|
|
450
450
|
}), We = {
|
|
@@ -494,8 +494,8 @@ function Us(e) {
|
|
|
494
494
|
let s = !1;
|
|
495
495
|
return (Fs().bpXS || e === qs || e === $s) && (s = !0), s;
|
|
496
496
|
}
|
|
497
|
-
const
|
|
498
|
-
function
|
|
497
|
+
const Y = "data-js-hook", Vs = "behavior_", Qs = "state_";
|
|
498
|
+
function ce() {
|
|
499
499
|
const e = {};
|
|
500
500
|
function s(i, n) {
|
|
501
501
|
return {}.hasOwnProperty.call(e, i) ? e[i].push(n) : e[i] = [n], this;
|
|
@@ -517,20 +517,20 @@ function re() {
|
|
|
517
517
|
}
|
|
518
518
|
return this.addEventListener = s, this.removeEventListener = o, this.dispatchEvent = t, this.getRegisteredEvents = () => e, this;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Ne(e, s) {
|
|
521
521
|
if (!e)
|
|
522
522
|
return !1;
|
|
523
|
-
let o = e.getAttribute(
|
|
523
|
+
let o = e.getAttribute(Y);
|
|
524
524
|
return o ? (o = o.split(" "), o.indexOf(s) > -1) : !1;
|
|
525
525
|
}
|
|
526
526
|
function W(e, s) {
|
|
527
|
-
if (
|
|
527
|
+
if (Ne(e, s)) return s;
|
|
528
528
|
if (s.indexOf(" ") !== -1) {
|
|
529
|
-
const t =
|
|
529
|
+
const t = Y + " values cannot contain spaces!";
|
|
530
530
|
throw new Error(t);
|
|
531
531
|
}
|
|
532
|
-
const o = e.getAttribute(
|
|
533
|
-
return o !== null && (s = o + " " + s), e.setAttribute(
|
|
532
|
+
const o = e.getAttribute(Y);
|
|
533
|
+
return o !== null && (s = o + " " + s), e.setAttribute(Y, s), s;
|
|
534
534
|
}
|
|
535
535
|
const He = Qs + "atomic_init";
|
|
536
536
|
function js(e, s) {
|
|
@@ -551,22 +551,22 @@ function Ys(e, s) {
|
|
|
551
551
|
function le(e, s) {
|
|
552
552
|
return js(e, s), Ys(e, s);
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
return
|
|
554
|
+
function oe(e) {
|
|
555
|
+
return Ne(e, He) ? !1 : (W(e, He), !0);
|
|
556
556
|
}
|
|
557
557
|
function me(e, s, o, t = {}) {
|
|
558
558
|
const n = (o || document).querySelectorAll(e), r = [];
|
|
559
559
|
let p, d;
|
|
560
560
|
for (let l = 0, a = n.length; l < a; l++)
|
|
561
|
-
d = n[l],
|
|
561
|
+
d = n[l], Ne(d, He) === !1 && (p = new s(d), p.init(t), r.push(p));
|
|
562
562
|
return r;
|
|
563
563
|
}
|
|
564
564
|
function qe(e, s) {
|
|
565
565
|
let o;
|
|
566
|
-
if (
|
|
566
|
+
if (Ne(e, s))
|
|
567
567
|
return o = e, o;
|
|
568
568
|
if (e) {
|
|
569
|
-
const t = "[" +
|
|
569
|
+
const t = "[" + Y + "=" + s + "]";
|
|
570
570
|
o = e.querySelector(t);
|
|
571
571
|
}
|
|
572
572
|
if (!o) {
|
|
@@ -575,7 +575,7 @@ function qe(e, s) {
|
|
|
575
575
|
}
|
|
576
576
|
return o;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Zs() {
|
|
579
579
|
return !!new RegExp(
|
|
580
580
|
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i
|
|
581
581
|
).test(navigator.userAgent);
|
|
@@ -602,22 +602,22 @@ function I(e, s, o) {
|
|
|
602
602
|
function h() {
|
|
603
603
|
i.removeEventListener(p, d);
|
|
604
604
|
}
|
|
605
|
-
function y(
|
|
606
|
-
return
|
|
605
|
+
function y(L) {
|
|
606
|
+
return L && L.propertyName !== t.CSS_PROPERTY ? !1 : (h(), i.classList.remove(I.ANIMATING_CLASS), n.dispatchEvent(I.END_EVENT, {
|
|
607
607
|
target: n,
|
|
608
608
|
type: I.END_EVENT
|
|
609
609
|
}), a = !1, !0);
|
|
610
610
|
}
|
|
611
611
|
function _() {
|
|
612
|
-
let
|
|
613
|
-
for (
|
|
614
|
-
({}).hasOwnProperty.call(t,
|
|
612
|
+
let L;
|
|
613
|
+
for (L in t)
|
|
614
|
+
({}).hasOwnProperty.call(t, L) && t[L] !== t.BASE_CLASS && i.classList.contains(t[L]) && i.classList.remove(t[L]);
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function N() {
|
|
617
617
|
a && (i.style.webkitTransitionDuration = "0", i.style.mozTransitionDuration = "0", i.style.oTransitionDuration = "0", i.style.transitionDuration = "0", i.removeEventListener(p, d), d(), i.style.webkitTransitionDuration = "", i.style.mozTransitionDuration = "", i.style.oTransitionDuration = "", i.style.transitionDuration = "");
|
|
618
618
|
}
|
|
619
619
|
function x() {
|
|
620
|
-
|
|
620
|
+
N(), _(), i.classList.remove(t.BASE_CLASS);
|
|
621
621
|
}
|
|
622
622
|
function k() {
|
|
623
623
|
i.classList.remove(I.NO_ANIMATION_CLASS), l = !0;
|
|
@@ -625,10 +625,10 @@ function I(e, s, o) {
|
|
|
625
625
|
function B() {
|
|
626
626
|
i.classList.add(I.NO_ANIMATION_CLASS), l = !1;
|
|
627
627
|
}
|
|
628
|
-
function M(
|
|
629
|
-
if (!
|
|
630
|
-
const
|
|
631
|
-
throw new Error(
|
|
628
|
+
function M(L) {
|
|
629
|
+
if (!L) {
|
|
630
|
+
const z = "Element does not have TransitionEnd event. It may be null!";
|
|
631
|
+
throw new Error(z);
|
|
632
632
|
}
|
|
633
633
|
let H;
|
|
634
634
|
const D = {
|
|
@@ -639,52 +639,52 @@ function I(e, s, o) {
|
|
|
639
639
|
};
|
|
640
640
|
let q;
|
|
641
641
|
for (q in D)
|
|
642
|
-
if ({}.hasOwnProperty.call(D, q) && typeof
|
|
642
|
+
if ({}.hasOwnProperty.call(D, q) && typeof L.style[q] < "u") {
|
|
643
643
|
H = D[q];
|
|
644
644
|
break;
|
|
645
645
|
}
|
|
646
646
|
return H;
|
|
647
647
|
}
|
|
648
|
-
function S(
|
|
649
|
-
x(), k(), i =
|
|
648
|
+
function S(L) {
|
|
649
|
+
x(), k(), i = L, i.classList.add(t.BASE_CLASS), p = M(i);
|
|
650
650
|
}
|
|
651
|
-
function A(
|
|
652
|
-
if (l = !i.classList.contains(I.NO_ANIMATION_CLASS), d = y.bind(this), S(i), !
|
|
651
|
+
function A(L) {
|
|
652
|
+
if (l = !i.classList.contains(I.NO_ANIMATION_CLASS), d = y.bind(this), S(i), !L)
|
|
653
653
|
throw new Error(
|
|
654
654
|
"Transition needs to be passed an initial CSS class on initialization!"
|
|
655
655
|
);
|
|
656
|
-
return i.classList.add(
|
|
656
|
+
return i.classList.add(L), this;
|
|
657
657
|
}
|
|
658
|
-
function O(
|
|
659
|
-
return u || (_(), u = !0), i.classList.contains(
|
|
658
|
+
function O(L) {
|
|
659
|
+
return u || (_(), u = !0), i.classList.contains(L) ? !1 : (h(), i.classList.remove(r), r = L, b(), i.classList.add(r), !0);
|
|
660
660
|
}
|
|
661
|
-
return this.animateOff = B, this.animateOn = k, this.applyClass = O, this.halt =
|
|
661
|
+
return this.animateOff = B, this.animateOn = k, this.applyClass = O, this.halt = N, this.init = A, this.isAnimated = () => l, this.remove = x, this.setElement = S, this;
|
|
662
662
|
}
|
|
663
663
|
I.BEGIN_EVENT = "transitionbegin";
|
|
664
664
|
I.END_EVENT = "transitionend";
|
|
665
665
|
I.NO_ANIMATION_CLASS = "u-no-animation";
|
|
666
666
|
I.ANIMATING_CLASS = "u-is-animating";
|
|
667
|
-
const
|
|
667
|
+
const ie = Vs + "flyout-menu", Ks = "[" + Y + "=" + ie;
|
|
668
668
|
function xe(e, s = !0) {
|
|
669
|
-
const o = qe(e,
|
|
669
|
+
const o = qe(e, ie), t = k(e), i = qe(e, ie + "_content");
|
|
670
670
|
let n = 0;
|
|
671
671
|
const r = 0, p = 1, d = 2, l = 3;
|
|
672
672
|
let a, u, b;
|
|
673
|
-
const h =
|
|
674
|
-
let _,
|
|
673
|
+
const h = z.bind(this), y = q.bind(this);
|
|
674
|
+
let _, N = !0, x = !1;
|
|
675
675
|
function k(m) {
|
|
676
|
-
const f = [], g = m.querySelectorAll(`${
|
|
676
|
+
const f = [], g = m.querySelectorAll(`${Ks}_trigger]`);
|
|
677
677
|
let E, C, $;
|
|
678
678
|
for (let R = g.length >>> 0; R--; ) {
|
|
679
679
|
for ($ = !1, E = g[R], C = E.parentElement; C !== m; )
|
|
680
|
-
C.getAttribute(
|
|
680
|
+
C.getAttribute(Y) && C.getAttribute(Y).split(" ").indexOf(ie) !== -1 ? ($ = !0, C = m) : C = C.parentElement;
|
|
681
681
|
$ || f.unshift(g[R]);
|
|
682
682
|
}
|
|
683
683
|
return f;
|
|
684
684
|
}
|
|
685
685
|
function B(m = !1) {
|
|
686
686
|
return n = m ? l : r, t.forEach((f) => {
|
|
687
|
-
M("expanded", f, m), f.addEventListener("click",
|
|
687
|
+
M("expanded", f, m), f.addEventListener("click", L.bind(this)), f.addEventListener("touchstart", S, {
|
|
688
688
|
passive: !0
|
|
689
689
|
}), f.addEventListener("mouseover", A.bind(this)), f.addEventListener("mouseout", O.bind(this));
|
|
690
690
|
}), i.setAttribute("data-open", m ? "true" : "false"), s && !m && i.setAttribute("hidden", ""), ue(), this;
|
|
@@ -697,21 +697,21 @@ function xe(e, s = !0) {
|
|
|
697
697
|
x = !0;
|
|
698
698
|
}
|
|
699
699
|
function A(m) {
|
|
700
|
-
|
|
700
|
+
N || (x || this.dispatchEvent("triggerover", {
|
|
701
701
|
target: this,
|
|
702
702
|
trigger: m.target,
|
|
703
703
|
type: "triggerover"
|
|
704
704
|
}), x = !1);
|
|
705
705
|
}
|
|
706
706
|
function O(m) {
|
|
707
|
-
|
|
707
|
+
N || this.dispatchEvent("triggerout", {
|
|
708
708
|
target: this,
|
|
709
709
|
trigger: m.target,
|
|
710
710
|
type: "triggerout"
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
|
-
function
|
|
714
|
-
if (!
|
|
713
|
+
function L(m) {
|
|
714
|
+
if (!N)
|
|
715
715
|
switch (this.dispatchEvent("triggerclick", {
|
|
716
716
|
target: this,
|
|
717
717
|
trigger: m.target,
|
|
@@ -757,7 +757,7 @@ function xe(e, s = !0) {
|
|
|
757
757
|
for (let m = 0, f = t.length; m < f; m++)
|
|
758
758
|
M("expanded", t[m], !0);
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function z() {
|
|
761
761
|
n = r, s && i.setAttribute("hidden", ""), a && a.removeEventListener(
|
|
762
762
|
I.END_EVENT,
|
|
763
763
|
h
|
|
@@ -779,18 +779,18 @@ function xe(e, s = !0) {
|
|
|
779
779
|
};
|
|
780
780
|
}
|
|
781
781
|
function ue() {
|
|
782
|
-
return
|
|
782
|
+
return N && (N = !1), !N;
|
|
783
783
|
}
|
|
784
784
|
function Ce() {
|
|
785
|
-
return
|
|
785
|
+
return N || (N = !0), N;
|
|
786
786
|
}
|
|
787
787
|
function Te(m) {
|
|
788
788
|
return _ = m, this;
|
|
789
789
|
}
|
|
790
|
-
const K = new
|
|
791
|
-
return this.addEventListener = K.addEventListener, this.removeEventListener = K.removeEventListener, this.dispatchEvent = K.dispatchEvent, this.init = B, this.expand = H, this.collapse = D, this.setTransition = fe, this.clearTransition = ke, this.getData = () => _, this.getTransition = () => a, this.getDom = Ae, this.isAnimating = () => n === d || n === p, this.isExpanded = () => n === l, this.resume = ue, this.setData = Te, this.suspend = Ce, xe.BASE_CLASS =
|
|
790
|
+
const K = new ce();
|
|
791
|
+
return this.addEventListener = K.addEventListener, this.removeEventListener = K.removeEventListener, this.dispatchEvent = K.dispatchEvent, this.init = B, this.expand = H, this.collapse = D, this.setTransition = fe, this.clearTransition = ke, this.getData = () => _, this.getTransition = () => a, this.getDom = Ae, this.isAnimating = () => n === d || n === p, this.isExpanded = () => n === l, this.resume = ue, this.setData = Te, this.suspend = Ce, xe.BASE_CLASS = ie, this;
|
|
792
792
|
}
|
|
793
|
-
const $e = "transitiondir",
|
|
793
|
+
const $e = "transitiondir", X = {
|
|
794
794
|
CSS_PROPERTY: "max-height",
|
|
795
795
|
BASE_CLASS: "u-max-height-transition",
|
|
796
796
|
MH_DEFAULT: "u-max-height-default",
|
|
@@ -798,19 +798,19 @@ const $e = "transitiondir", J = {
|
|
|
798
798
|
MH_DYNAMIC: "u-max-height-dynamic",
|
|
799
799
|
MH_ZERO: "u-max-height-zero"
|
|
800
800
|
};
|
|
801
|
-
function
|
|
802
|
-
const s = this, o = new
|
|
801
|
+
function U(e) {
|
|
802
|
+
const s = this, o = new ce(), t = new I(e, X, this);
|
|
803
803
|
let i = 0;
|
|
804
804
|
function n() {
|
|
805
805
|
const _ = e.scrollHeight + "px";
|
|
806
806
|
e.style.maxHeight = _, e.style.bottom = "auto", e.style.top = "auto";
|
|
807
807
|
}
|
|
808
808
|
function r() {
|
|
809
|
-
const y = e.getBoundingClientRect(), _ = window.innerHeight - y.top,
|
|
809
|
+
const y = e.getBoundingClientRect(), _ = window.innerHeight - y.top, N = y.top, x = _ <= 140 ? "up" : "down";
|
|
810
810
|
return {
|
|
811
811
|
rect: y,
|
|
812
812
|
distanceToBottom: _,
|
|
813
|
-
distanceToTop:
|
|
813
|
+
distanceToTop: N,
|
|
814
814
|
dir: x
|
|
815
815
|
};
|
|
816
816
|
}
|
|
@@ -823,48 +823,48 @@ function V(e) {
|
|
|
823
823
|
}), this;
|
|
824
824
|
}
|
|
825
825
|
function l() {
|
|
826
|
-
return n(), t.applyClass(
|
|
826
|
+
return n(), t.applyClass(X.MH_DEFAULT), (!i || e.scrollHeight > i) && (i = e.scrollHeight), this;
|
|
827
827
|
}
|
|
828
828
|
function a() {
|
|
829
|
-
return n(), t.applyClass(
|
|
829
|
+
return n(), t.applyClass(X.MH_SUMMARY), i = e.scrollHeight, this;
|
|
830
830
|
}
|
|
831
831
|
function u() {
|
|
832
832
|
n(), e.style.top = "100%";
|
|
833
833
|
const y = r();
|
|
834
834
|
let _ = 30;
|
|
835
|
-
const
|
|
836
|
-
let x = e.scrollHeight + _ < y.distanceToBottom ? `${e.scrollHeight +
|
|
835
|
+
const N = 2;
|
|
836
|
+
let x = e.scrollHeight + _ < y.distanceToBottom ? `${e.scrollHeight + N}px` : `${y.distanceToBottom - _}px`;
|
|
837
837
|
if (y.dir === "up") {
|
|
838
838
|
const k = e.parentElement.offsetHeight;
|
|
839
|
-
_ += k, e.style.bottom = `${k -
|
|
839
|
+
_ += k, e.style.bottom = `${k - N}px`, x = e.scrollHeight + _ < y.distanceToTop ? `${e.scrollHeight + N}px` : `${y.distanceToTop - _}px`, e.style.top = "unset";
|
|
840
840
|
}
|
|
841
|
-
return e.style.maxHeight = x, t.applyClass(
|
|
841
|
+
return e.style.maxHeight = x, t.applyClass(X.MH_DYNAMIC), s.dispatchEvent($e, {
|
|
842
842
|
target: s,
|
|
843
843
|
type: $e,
|
|
844
844
|
dir: y.dir
|
|
845
845
|
}), i = e.scrollHeight, this;
|
|
846
846
|
}
|
|
847
847
|
function b() {
|
|
848
|
-
return t.applyClass(
|
|
848
|
+
return t.applyClass(X.MH_ZERO), i = e.scrollHeight, this;
|
|
849
849
|
}
|
|
850
850
|
function h() {
|
|
851
851
|
return e.style.maxHeight = "", t.remove();
|
|
852
852
|
}
|
|
853
853
|
return this.addEventListener = o.addEventListener, this.dispatchEvent = o.dispatchEvent, this.removeEventListener = o.removeEventListener, this.animateOff = t.animateOff, this.animateOn = t.animateOn, this.halt = t.halt, this.isAnimated = t.isAnimated, this.setElement = t.setElement, this.refresh = n, this.remove = h, this.init = d, this.maxHeightDefault = l, this.maxHeightSummary = a, this.maxHeightZero = b, this.maxHeightDynamic = u, this;
|
|
854
854
|
}
|
|
855
|
-
|
|
856
|
-
const
|
|
857
|
-
function
|
|
858
|
-
const s = le(e,
|
|
855
|
+
U.CLASSES = X;
|
|
856
|
+
const J = "o-expandable";
|
|
857
|
+
function G(e) {
|
|
858
|
+
const s = le(e, J);
|
|
859
859
|
let o, t, i, n, r;
|
|
860
860
|
function p() {
|
|
861
|
-
if (!
|
|
861
|
+
if (!oe(s))
|
|
862
862
|
return this;
|
|
863
|
-
o = s.querySelector(`.${
|
|
864
|
-
const a = s.classList.contains(`${
|
|
863
|
+
o = s.querySelector(`.${J}__header`), t = s.querySelector(`.${J}__content`), i = s.querySelector(`.${J}__label`);
|
|
864
|
+
const a = s.classList.contains(`${J}--onload-open`);
|
|
865
865
|
W(s, "behavior_flyout-menu"), W(o, "behavior_flyout-menu_trigger"), W(t, "behavior_flyout-menu_content");
|
|
866
|
-
const u = a ?
|
|
867
|
-
return n = new
|
|
866
|
+
const u = a ? U.CLASSES.MH_DEFAULT : U.CLASSES.MH_ZERO;
|
|
867
|
+
return n = new U(t).init(u), a || t.classList.add("u-hidden"), r = new xe(s), r.setTransition(
|
|
868
868
|
n,
|
|
869
869
|
n.maxHeightZero,
|
|
870
870
|
n.maxHeightDefault
|
|
@@ -878,11 +878,11 @@ function z(e) {
|
|
|
878
878
|
return i.textContent.trim();
|
|
879
879
|
}
|
|
880
880
|
this.init = p, this.expand = () => r.expand(), this.collapse = () => r.collapse(), this.isExpanded = () => r.isExpanded(), this.refresh = () => r.getTransition().refresh(), this.getLabelText = d;
|
|
881
|
-
const l = new
|
|
881
|
+
const l = new ce();
|
|
882
882
|
return this.addEventListener = l.addEventListener, this.removeEventListener = l.removeEventListener, this.dispatchEvent = l.dispatchEvent, this;
|
|
883
883
|
}
|
|
884
|
-
|
|
885
|
-
|
|
884
|
+
G.BASE_CLASS = J;
|
|
885
|
+
G.init = (e) => me(`.${G.BASE_CLASS}`, G, e);
|
|
886
886
|
const he = "o-expandable-group";
|
|
887
887
|
function ve(e) {
|
|
888
888
|
const s = le(e, he), o = s.classList.contains(`${he}--accordion`);
|
|
@@ -892,7 +892,7 @@ function ve(e) {
|
|
|
892
892
|
i && i !== d && i.collapse(), i = d;
|
|
893
893
|
}
|
|
894
894
|
function r(p) {
|
|
895
|
-
return
|
|
895
|
+
return oe(s) ? (o && (t = p, t.forEach((d) => {
|
|
896
896
|
d.addEventListener("expandbegin", n);
|
|
897
897
|
})), this) : this;
|
|
898
898
|
}
|
|
@@ -902,23 +902,23 @@ ve.BASE_CLASS = he;
|
|
|
902
902
|
ve.init = (e) => {
|
|
903
903
|
(e || document).querySelectorAll(`.${he}`).forEach((t) => {
|
|
904
904
|
const i = me(
|
|
905
|
-
`.${
|
|
906
|
-
|
|
905
|
+
`.${G.BASE_CLASS}`,
|
|
906
|
+
G,
|
|
907
907
|
t
|
|
908
908
|
);
|
|
909
909
|
new ve(t).init(i);
|
|
910
910
|
});
|
|
911
911
|
};
|
|
912
|
-
const
|
|
912
|
+
const ee = "o-summary";
|
|
913
913
|
function _e(e) {
|
|
914
|
-
const s = le(e,
|
|
914
|
+
const s = le(e, ee), o = s.classList.contains(`${ee}--mobile`), t = s.querySelector(`.${ee}__content`), i = s.querySelector(`.${ee}__btn`);
|
|
915
915
|
let n, r, p;
|
|
916
916
|
function d() {
|
|
917
|
-
return
|
|
917
|
+
return oe(s) ? (window.addEventListener("load", l), this) : this;
|
|
918
918
|
}
|
|
919
919
|
function l() {
|
|
920
|
-
window.removeEventListener("load", l), p = !h(), W(s, "behavior_flyout-menu"), W(t, "behavior_flyout-menu_content"), W(i, "behavior_flyout-menu_trigger"), r = new xe(s, !1), n = new
|
|
921
|
-
p ?
|
|
920
|
+
window.removeEventListener("load", l), p = !h(), W(s, "behavior_flyout-menu"), W(t, "behavior_flyout-menu_content"), W(i, "behavior_flyout-menu_trigger"), r = new xe(s, !1), n = new U(t), n.init(
|
|
921
|
+
p ? U.CLASSES.MH_SUMMARY : U.CLASSES.MH_DEFAULT
|
|
922
922
|
), r.setTransition(
|
|
923
923
|
n,
|
|
924
924
|
n.maxHeightSummary,
|
|
@@ -943,32 +943,32 @@ function _e(e) {
|
|
|
943
943
|
function _() {
|
|
944
944
|
x(), window.removeEventListener("resize", b), window.removeEventListener("orientationchange", b), r.removeEventListener("expandend", _), r.suspend(), n.remove();
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function N() {
|
|
947
947
|
i.classList.remove("u-hidden");
|
|
948
948
|
}
|
|
949
949
|
function x() {
|
|
950
950
|
i.classList.add("u-hidden");
|
|
951
951
|
}
|
|
952
952
|
function k() {
|
|
953
|
-
return p && (r.collapse(), n.animateOn(),
|
|
953
|
+
return p && (r.collapse(), n.animateOn(), N(), p = !1), !p;
|
|
954
954
|
}
|
|
955
955
|
function B() {
|
|
956
956
|
return p || (n.animateOff(), r.expand(), x(), p = !0), p;
|
|
957
957
|
}
|
|
958
|
-
const M = new
|
|
958
|
+
const M = new ce();
|
|
959
959
|
return this.addEventListener = M.addEventListener, this.removeEventListener = M.removeEventListener, this.dispatchEvent = M.dispatchEvent, this.init = d, this;
|
|
960
960
|
}
|
|
961
|
-
_e.BASE_CLASS =
|
|
962
|
-
_e.init = (e) => me(`.${
|
|
963
|
-
const
|
|
961
|
+
_e.BASE_CLASS = ee;
|
|
962
|
+
_e.init = (e) => me(`.${ee}`, _e, e);
|
|
963
|
+
const pe = "o-summary-minimal";
|
|
964
964
|
function ye(e) {
|
|
965
|
-
const s = le(e,
|
|
965
|
+
const s = le(e, pe), o = s.querySelector(`.${pe}__content`), t = s.querySelector(`.${pe}__btn`);
|
|
966
966
|
let i, n;
|
|
967
967
|
function r() {
|
|
968
|
-
return
|
|
968
|
+
return oe(s) ? (W(s, "behavior_flyout-menu"), W(o, "behavior_flyout-menu_content"), W(t, "behavior_flyout-menu_trigger"), window.addEventListener("load", p), this) : this;
|
|
969
969
|
}
|
|
970
970
|
function p() {
|
|
971
|
-
window.removeEventListener("load", p), n = new xe(s, !1), i = new
|
|
971
|
+
window.removeEventListener("load", p), n = new xe(s, !1), i = new U(o), i.init(U.CLASSES.MH_SUMMARY), n.setTransition(
|
|
972
972
|
i,
|
|
973
973
|
i.maxHeightSummary,
|
|
974
974
|
i.maxHeightDefault
|
|
@@ -980,14 +980,14 @@ function ye(e) {
|
|
|
980
980
|
function l(u) {
|
|
981
981
|
u.target.tagName !== "A" && n.isExpanded() && i.refresh();
|
|
982
982
|
}
|
|
983
|
-
const a = new
|
|
983
|
+
const a = new ce();
|
|
984
984
|
return this.addEventListener = a.addEventListener, this.removeEventListener = a.removeEventListener, this.dispatchEvent = a.dispatchEvent, this.init = r, this;
|
|
985
985
|
}
|
|
986
|
-
ye.BASE_CLASS =
|
|
987
|
-
ye.init = (e) => me(`.${
|
|
988
|
-
const
|
|
989
|
-
|
|
990
|
-
t ||
|
|
986
|
+
ye.BASE_CLASS = pe;
|
|
987
|
+
ye.init = (e) => me(`.${pe}`, ye, e);
|
|
988
|
+
const Gn = ({ header: e, children: s, icon: o = "", inAccordion: t = !1, isPadded: i = !1, openOnLoad: n = !1, className: r = "", ...p }) => {
|
|
989
|
+
Q(() => {
|
|
990
|
+
t || G.init();
|
|
991
991
|
}, [t]);
|
|
992
992
|
const d = ["o-expandable", r];
|
|
993
993
|
return t || d.push("o-expandable--background", "o-expandable--border"), i && d.push("o-expandable--padded"), n && d.push("o-expandable--onload-open"), v("div", {
|
|
@@ -1028,12 +1028,12 @@ const Jn = ({ header: e, children: s, icon: o = "", inAccordion: t = !1, isPadde
|
|
|
1028
1028
|
children: s
|
|
1029
1029
|
})]
|
|
1030
1030
|
});
|
|
1031
|
-
},
|
|
1031
|
+
}, zn = ({ groupId: e, accordion: s = !1, children: o, className: t = "", ...i }) => {
|
|
1032
1032
|
const n = ["o-expandable-group", t];
|
|
1033
|
-
s && n.push("o-expandable-group--accordion"),
|
|
1033
|
+
s && n.push("o-expandable-group--accordion"), Q(() => {
|
|
1034
1034
|
ve.init();
|
|
1035
1035
|
}, [s]);
|
|
1036
|
-
const r =
|
|
1036
|
+
const r = se.Children.map(o, (p) => se.isValidElement(p) ? se.cloneElement(p, {
|
|
1037
1037
|
inAccordion: !0,
|
|
1038
1038
|
openOnLoad: p.props.openOnLoad ?? !1
|
|
1039
1039
|
}) : p);
|
|
@@ -1043,7 +1043,7 @@ const Jn = ({ header: e, children: s, icon: o = "", inAccordion: t = !1, isPadde
|
|
|
1043
1043
|
...i,
|
|
1044
1044
|
children: r
|
|
1045
1045
|
});
|
|
1046
|
-
},
|
|
1046
|
+
}, Gs = () => v("a", {
|
|
1047
1047
|
className: "a-btn a-btn--secondary o-footer__top-button",
|
|
1048
1048
|
"data-gtm_ignore": "true",
|
|
1049
1049
|
"data-js-hook": "behavior_return-to-top",
|
|
@@ -1067,7 +1067,7 @@ const Jn = ({ header: e, children: s, icon: o = "", inAccordion: t = !1, isPadde
|
|
|
1067
1067
|
})]
|
|
1068
1068
|
})]
|
|
1069
1069
|
})
|
|
1070
|
-
}), De = (e) => e.length === 0, Xs = ({ children: e }) => De(e) ? null : c(
|
|
1070
|
+
}), De = (e) => e.length === 0, Xs = ({ children: e }) => De(e) ? null : c(te, {
|
|
1071
1071
|
className: "o-footer__nav-list m-list--links m-list--horizontal",
|
|
1072
1072
|
children: c(Me, {
|
|
1073
1073
|
itemClassname: "m-list__link",
|
|
@@ -1077,7 +1077,7 @@ const Jn = ({ header: e, children: s, icon: o = "", inAccordion: t = !1, isPadde
|
|
|
1077
1077
|
className: "block block--flush-top block--flush-bottom block--padded-top",
|
|
1078
1078
|
children: c("div", {
|
|
1079
1079
|
className: "m-social-media m-social-media--follow",
|
|
1080
|
-
children: c(
|
|
1080
|
+
children: c(te, {
|
|
1081
1081
|
className: "m-social-media__icons",
|
|
1082
1082
|
isUnstyled: !0,
|
|
1083
1083
|
isHorizontal: !0,
|
|
@@ -1089,7 +1089,7 @@ const Jn = ({ header: e, children: s, icon: o = "", inAccordion: t = !1, isPadde
|
|
|
1089
1089
|
})
|
|
1090
1090
|
}), Oe = ({ children: e }) => De(e) ? null : c("div", {
|
|
1091
1091
|
className: "o-footer__col",
|
|
1092
|
-
children: c(
|
|
1092
|
+
children: c(te, {
|
|
1093
1093
|
className: "o-footer__list",
|
|
1094
1094
|
children: c(Me, {
|
|
1095
1095
|
itemClassname: "m-list__link",
|
|
@@ -1106,7 +1106,7 @@ function en({ navLinks: e = [], socialLinks: s = [], linksCol1: o = [], linksCol
|
|
|
1106
1106
|
className: "wrapper wrapper--match-content",
|
|
1107
1107
|
children: [v("div", {
|
|
1108
1108
|
className: "o-footer__pre",
|
|
1109
|
-
children: [c(
|
|
1109
|
+
children: [c(Gs, {}), c(Xs, {
|
|
1110
1110
|
children: e
|
|
1111
1111
|
}), c(Js, {
|
|
1112
1112
|
children: s
|
|
@@ -1127,7 +1127,7 @@ function en({ navLinks: e = [], socialLinks: s = [], linksCol1: o = [], linksCol
|
|
|
1127
1127
|
})
|
|
1128
1128
|
});
|
|
1129
1129
|
}
|
|
1130
|
-
const
|
|
1130
|
+
const Xn = ({ cfLink: e = "https://www.consumerfinance.gov", className: s, ...o }) => {
|
|
1131
1131
|
const t = [c("a", {
|
|
1132
1132
|
href: `${e}/about-us/`,
|
|
1133
1133
|
children: "About Us"
|
|
@@ -1292,7 +1292,7 @@ function on({ children: e, width: s = Pe.Full, demo: o, center: t, className: i,
|
|
|
1292
1292
|
children: e
|
|
1293
1293
|
});
|
|
1294
1294
|
}
|
|
1295
|
-
const
|
|
1295
|
+
const Jn = {
|
|
1296
1296
|
Column: sn,
|
|
1297
1297
|
Row: nn,
|
|
1298
1298
|
Width: Pe,
|
|
@@ -1320,8 +1320,8 @@ const no = {
|
|
|
1320
1320
|
className: "m-hero__image"
|
|
1321
1321
|
})
|
|
1322
1322
|
}) : null, cn = (e, s) => {
|
|
1323
|
-
const o =
|
|
1324
|
-
return
|
|
1323
|
+
const o = Xe(null);
|
|
1324
|
+
return Q(() => {
|
|
1325
1325
|
if (!s || !e || !o.current) {
|
|
1326
1326
|
o.current?.setAttribute("style", "");
|
|
1327
1327
|
return;
|
|
@@ -1337,8 +1337,8 @@ const no = {
|
|
|
1337
1337
|
);`);
|
|
1338
1338
|
}, [o, e, s]), o;
|
|
1339
1339
|
};
|
|
1340
|
-
function
|
|
1341
|
-
const _ = cn(t, n ?? p ?? r),
|
|
1340
|
+
function eo({ backgroundColor: e, heading: s, headingLevel: o = "h1", image: t, imageAltText: i = "hero image", imageIsPhoto: n, is5050: r, isJumbo: p, isKnockout: d, subheading: l, subheadingLevel: a = "p", textColor: u, className: b, ...h }) {
|
|
1341
|
+
const _ = cn(t, n ?? p ?? r), N = {
|
|
1342
1342
|
backgroundColor: e
|
|
1343
1343
|
}, x = {
|
|
1344
1344
|
color: u
|
|
@@ -1356,7 +1356,7 @@ function oo({ backgroundColor: e, heading: s, headingLevel: o = "h1", image: t,
|
|
|
1356
1356
|
};
|
|
1357
1357
|
return c("div", {
|
|
1358
1358
|
className: w(k),
|
|
1359
|
-
style:
|
|
1359
|
+
style: N,
|
|
1360
1360
|
...h,
|
|
1361
1361
|
children: v("div", {
|
|
1362
1362
|
className: "m-hero__wrapper",
|
|
@@ -1409,78 +1409,28 @@ const rn = ({ children: e, flushBottom: s, flushTopOnSmall: o, flushAllOnSmall:
|
|
|
1409
1409
|
className: "wrapper",
|
|
1410
1410
|
...s,
|
|
1411
1411
|
children: e
|
|
1412
|
-
}),
|
|
1412
|
+
}), so = {
|
|
1413
1413
|
Content: rn,
|
|
1414
1414
|
Main: pn,
|
|
1415
1415
|
Sidebar: dn,
|
|
1416
1416
|
Wrapper: an
|
|
1417
|
-
},
|
|
1418
|
-
function
|
|
1419
|
-
return c(
|
|
1420
|
-
href: e,
|
|
1421
|
-
title: "Home",
|
|
1422
|
-
"aria-label": "Home",
|
|
1423
|
-
className: "o-header__logo",
|
|
1424
|
-
children: c("img", {
|
|
1425
|
-
className: "o-header__logo-img",
|
|
1426
|
-
src: ns,
|
|
1427
|
-
alt: "CFPB Logo"
|
|
1428
|
-
})
|
|
1429
|
-
});
|
|
1430
|
-
}
|
|
1431
|
-
const mn = ({ elements: e }) => e?.length ? c("div", {
|
|
1432
|
-
className: "links",
|
|
1433
|
-
children: e
|
|
1434
|
-
}) : null;
|
|
1435
|
-
function fn({ links: e, href: s }) {
|
|
1436
|
-
return c("div", {
|
|
1437
|
-
className: "o-header__content",
|
|
1438
|
-
children: v("div", {
|
|
1439
|
-
className: "navbar-static wrapper wrapper--match-content",
|
|
1440
|
-
children: [c(ln, {
|
|
1441
|
-
href: s
|
|
1442
|
-
}), c("div", {
|
|
1443
|
-
className: "nav-items",
|
|
1444
|
-
children: c(mn, {
|
|
1445
|
-
elements: e
|
|
1446
|
-
})
|
|
1447
|
-
})]
|
|
1448
|
-
})
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
c(U, {
|
|
1452
|
-
className: "nav-item",
|
|
1453
|
-
href: "/",
|
|
1454
|
-
children: "Home"
|
|
1455
|
-
}, "home"), c(U, {
|
|
1456
|
-
className: "nav-item active",
|
|
1457
|
-
href: "/filing",
|
|
1458
|
-
children: "Filing"
|
|
1459
|
-
}, "filing"), c(U, {
|
|
1460
|
-
className: "nav-item",
|
|
1461
|
-
href: "/profile",
|
|
1462
|
-
children: "John Sample"
|
|
1463
|
-
}, "profile"), c(te, {
|
|
1464
|
-
label: "LOG OUT",
|
|
1465
|
-
asLink: !0,
|
|
1466
|
-
onClick: ""
|
|
1467
|
-
}, "logout");
|
|
1468
|
-
function un({ href: e = "https://www.consumerfinance.gov" }) {
|
|
1469
|
-
return c(U, {
|
|
1417
|
+
}, ln = "data:image/png;base64,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";
|
|
1418
|
+
function Ue({ href: e = "https://www.consumerfinance.gov" }) {
|
|
1419
|
+
return c(re, {
|
|
1470
1420
|
href: e,
|
|
1471
1421
|
title: "Home",
|
|
1472
1422
|
"aria-label": "Home",
|
|
1473
1423
|
className: "o-header__logo",
|
|
1474
1424
|
children: c("img", {
|
|
1475
1425
|
className: "o-header__logo-img",
|
|
1476
|
-
src:
|
|
1426
|
+
src: ln,
|
|
1477
1427
|
alt: "CFPB Logo"
|
|
1478
1428
|
})
|
|
1479
1429
|
});
|
|
1480
1430
|
}
|
|
1481
|
-
const
|
|
1431
|
+
const mn = ({ elements: e, onLinkClick: s }) => e?.length ? c("div", {
|
|
1482
1432
|
className: "links",
|
|
1483
|
-
children: e.map((o, t) =>
|
|
1433
|
+
children: e.map((o, t) => se.isValidElement(o) ? se.cloneElement(o, {
|
|
1484
1434
|
...o.props,
|
|
1485
1435
|
key: o.key ?? t,
|
|
1486
1436
|
onClick: (i) => {
|
|
@@ -1488,15 +1438,15 @@ const bn = ({ elements: e, onLinkClick: s }) => e?.length ? c("div", {
|
|
|
1488
1438
|
}
|
|
1489
1439
|
}) : o)
|
|
1490
1440
|
}) : null;
|
|
1491
|
-
function
|
|
1441
|
+
function fn({ links: e, href: s }) {
|
|
1492
1442
|
const [o, t] = ae(!1), i = () => {
|
|
1493
1443
|
t(!o);
|
|
1494
1444
|
}, n = () => {
|
|
1495
1445
|
t(!1);
|
|
1496
|
-
}, r =
|
|
1446
|
+
}, r = ze((p) => {
|
|
1497
1447
|
p.key === "Escape" && t(!1);
|
|
1498
1448
|
}, []);
|
|
1499
|
-
return e?.length ? v(
|
|
1449
|
+
return e?.length ? v(ne, {
|
|
1500
1450
|
children: [o ? c("div", {
|
|
1501
1451
|
className: "menu-overlay open",
|
|
1502
1452
|
onClick: i,
|
|
@@ -1504,7 +1454,7 @@ function gn({ links: e, href: s }) {
|
|
|
1504
1454
|
tabIndex: 0,
|
|
1505
1455
|
role: "button",
|
|
1506
1456
|
"aria-label": "Close menu"
|
|
1507
|
-
}) : null, c("
|
|
1457
|
+
}) : null, c("div", {
|
|
1508
1458
|
className: "o-header__content",
|
|
1509
1459
|
children: v("div", {
|
|
1510
1460
|
className: "navbar wrapper wrapper--match-content",
|
|
@@ -1520,64 +1470,64 @@ function gn({ links: e, href: s }) {
|
|
|
1520
1470
|
className: "sr-only",
|
|
1521
1471
|
children: o ? "Close menu" : "Open menu"
|
|
1522
1472
|
})]
|
|
1523
|
-
}), c(
|
|
1473
|
+
}), c(Ue, {
|
|
1524
1474
|
href: s
|
|
1525
1475
|
}), c("nav", {
|
|
1526
1476
|
className: `nav-items ${o ? "open" : ""}`,
|
|
1527
1477
|
id: "nav-links",
|
|
1528
|
-
children: c(
|
|
1478
|
+
children: c(mn, {
|
|
1529
1479
|
elements: e,
|
|
1530
1480
|
onLinkClick: n
|
|
1531
1481
|
})
|
|
1532
1482
|
})]
|
|
1533
1483
|
})
|
|
1534
1484
|
})]
|
|
1535
|
-
}) : c(
|
|
1536
|
-
|
|
1485
|
+
}) : c("div", {
|
|
1486
|
+
className: "o-header__content",
|
|
1487
|
+
children: c("div", {
|
|
1488
|
+
className: "navbar wrapper wrapper--match-content",
|
|
1489
|
+
children: c(Ue, {
|
|
1490
|
+
href: s
|
|
1491
|
+
})
|
|
1492
|
+
})
|
|
1537
1493
|
});
|
|
1538
1494
|
}
|
|
1539
|
-
c(
|
|
1495
|
+
c(re, {
|
|
1540
1496
|
href: "/",
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
children: "Home"
|
|
1544
|
-
})
|
|
1545
|
-
}, "home"), c(U, {
|
|
1497
|
+
label: "Home"
|
|
1498
|
+
}, "home"), c(re, {
|
|
1546
1499
|
className: "nav-item active",
|
|
1547
1500
|
href: "/filing",
|
|
1548
|
-
|
|
1549
|
-
}, "filing"), c(
|
|
1501
|
+
label: "Filing"
|
|
1502
|
+
}, "filing"), c(re, {
|
|
1550
1503
|
className: "nav-item profile",
|
|
1551
1504
|
href: "/profile",
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
}, "profile"), c(te, {
|
|
1556
|
-
label: "LOG OUT",
|
|
1505
|
+
label: "John Sample"
|
|
1506
|
+
}, "profile"), c(de, {
|
|
1507
|
+
label: "Log Out",
|
|
1557
1508
|
asLink: !0,
|
|
1558
1509
|
onClick: () => {
|
|
1559
1510
|
}
|
|
1560
1511
|
}, "logout");
|
|
1561
|
-
function
|
|
1562
|
-
const
|
|
1563
|
-
return
|
|
1564
|
-
className: w(
|
|
1512
|
+
function no({ links: e, href: s, withBottomBorder: o = !0 }) {
|
|
1513
|
+
const t = ["o-header"];
|
|
1514
|
+
return o && t.push("bottom-border"), v("header", {
|
|
1515
|
+
className: w(t),
|
|
1565
1516
|
children: [c(Ts, {
|
|
1566
1517
|
tagline: "An official website of the United States government"
|
|
1567
|
-
}), c(
|
|
1518
|
+
}), c(fn, {
|
|
1568
1519
|
links: e,
|
|
1569
|
-
|
|
1570
|
-
href: o
|
|
1520
|
+
href: s
|
|
1571
1521
|
})]
|
|
1572
1522
|
});
|
|
1573
1523
|
}
|
|
1574
|
-
const
|
|
1524
|
+
const V = () => null, j = 1, os = 20, un = () => c(de, {
|
|
1575
1525
|
asLink: !0,
|
|
1576
1526
|
className: "m-pagination__btn-submit",
|
|
1577
1527
|
id: "m-pagination__btn-submit-default",
|
|
1578
1528
|
label: "Go",
|
|
1579
1529
|
type: "submit"
|
|
1580
|
-
}),
|
|
1530
|
+
}), bn = ({ tableId: e, page: s, pageCount: o, onChange: t }) => {
|
|
1581
1531
|
const i = (r) => {
|
|
1582
1532
|
t(Number.parseInt(r.currentTarget.value, 10));
|
|
1583
1533
|
}, n = `${e}-pagination_current-page`;
|
|
@@ -1600,25 +1550,25 @@ const Q = () => null, Y = 1, os = 20, hn = () => c(te, {
|
|
|
1600
1550
|
onChange: i
|
|
1601
1551
|
}), `of ${o}`]
|
|
1602
1552
|
});
|
|
1603
|
-
},
|
|
1553
|
+
}, gn = ({ tableId: e, page: s, pageCount: o, onClickPrevious: t = V, onClickNext: i = V, onClickGo: n = V, previousLabel: r = "Previous", nextLabel: p = "Next" }) => {
|
|
1604
1554
|
const [d, l] = ae(s);
|
|
1605
|
-
|
|
1555
|
+
Q(() => l(s), [s]);
|
|
1606
1556
|
const a = (h) => {
|
|
1607
1557
|
h.preventDefault();
|
|
1608
1558
|
const y = Object.fromEntries(new FormData(h.currentTarget)), _ = Number.parseInt(y.page, 10);
|
|
1609
1559
|
_ !== s && n(_);
|
|
1610
|
-
}, u =
|
|
1560
|
+
}, u = Je(), b = l;
|
|
1611
1561
|
return v("nav", {
|
|
1612
1562
|
className: "m-pagination",
|
|
1613
1563
|
role: "navigation",
|
|
1614
1564
|
"aria-label": "Pagination",
|
|
1615
|
-
children: [c(
|
|
1565
|
+
children: [c(de, {
|
|
1616
1566
|
iconLeft: "left",
|
|
1617
|
-
className: `m-pagination__btn-prev${s ===
|
|
1567
|
+
className: `m-pagination__btn-prev${s === j ? " a-btn--disabled" : ""}`,
|
|
1618
1568
|
onClick: t,
|
|
1619
1569
|
label: r,
|
|
1620
|
-
disabled: s ===
|
|
1621
|
-
}), c(
|
|
1570
|
+
disabled: s === j
|
|
1571
|
+
}), c(de, {
|
|
1622
1572
|
iconRight: "right",
|
|
1623
1573
|
className: `m-pagination__btn-next${s === o ? " a-btn--disabled" : ""}`,
|
|
1624
1574
|
onClick: i,
|
|
@@ -1628,32 +1578,32 @@ const Q = () => null, Y = 1, os = 20, hn = () => c(te, {
|
|
|
1628
1578
|
className: "m-pagination__form",
|
|
1629
1579
|
action: "#pagination_content",
|
|
1630
1580
|
onSubmit: a,
|
|
1631
|
-
children: [c(
|
|
1581
|
+
children: [c(bn, {
|
|
1632
1582
|
tableId: e ?? u,
|
|
1633
1583
|
page: d,
|
|
1634
1584
|
pageCount: o,
|
|
1635
1585
|
onChange: b
|
|
1636
|
-
}), c(
|
|
1586
|
+
}), c(un, {})]
|
|
1637
1587
|
})]
|
|
1638
1588
|
});
|
|
1639
|
-
},
|
|
1640
|
-
const i = o.length, n = Math.max(Math.ceil(i / t),
|
|
1641
|
-
|
|
1589
|
+
}, Ve = 1, hn = ({ isPaginated: e = !0, startPage: s = j, rows: o = [], perPage: t = os }) => {
|
|
1590
|
+
const i = o.length, n = Math.max(Math.ceil(i / t), j), r = e && i > t, [p, d] = ae(Math.min(s, n));
|
|
1591
|
+
Q(() => {
|
|
1642
1592
|
d(Math.min(p, n));
|
|
1643
1593
|
}, [p, n, t]);
|
|
1644
1594
|
const l = {
|
|
1645
|
-
page:
|
|
1646
|
-
pageCount:
|
|
1647
|
-
onClickNext:
|
|
1648
|
-
onClickPrevious:
|
|
1649
|
-
onClickGo:
|
|
1595
|
+
page: j,
|
|
1596
|
+
pageCount: j,
|
|
1597
|
+
onClickNext: V,
|
|
1598
|
+
onClickPrevious: V,
|
|
1599
|
+
onClickGo: V
|
|
1650
1600
|
};
|
|
1651
1601
|
if (!e || !r) return [o, l];
|
|
1652
|
-
const a = p -
|
|
1602
|
+
const a = p - Ve, u = {
|
|
1653
1603
|
page: p,
|
|
1654
1604
|
pageCount: n,
|
|
1655
|
-
onClickNext: () => d(Math.min(p +
|
|
1656
|
-
onClickPrevious: () => d(Math.max(a,
|
|
1605
|
+
onClickNext: () => d(Math.min(p + Ve, n)),
|
|
1606
|
+
onClickPrevious: () => d(Math.max(a, j)),
|
|
1657
1607
|
onClickGo: (_) => d(_)
|
|
1658
1608
|
}, b = a * t, h = a * t + t;
|
|
1659
1609
|
return [o.slice(b, h), u];
|
|
@@ -1666,8 +1616,8 @@ function Re({ children: e, isLead: s, className: o, ...t }) {
|
|
|
1666
1616
|
children: e
|
|
1667
1617
|
});
|
|
1668
1618
|
}
|
|
1669
|
-
const
|
|
1670
|
-
const u = [...
|
|
1619
|
+
const vn = ["a-radio"], _n = ["m-form-field m-form-field--radio"], oo = ({ id: e, name: s, helperText: o, className: t, disabled: i = !1, isLarge: n = !1, labelClassName: r, labelInline: p = !0, label: d, inputRef: l, ...a }) => {
|
|
1620
|
+
const u = [...vn, t].join(" "), b = [..._n, n ? "m-form-field--lg-target" : ""].join(" ");
|
|
1671
1621
|
return v("div", {
|
|
1672
1622
|
className: b,
|
|
1673
1623
|
children: [c("input", {
|
|
@@ -1678,25 +1628,25 @@ const En = ["a-radio"], wn = ["m-form-field m-form-field--radio"], io = ({ id: e
|
|
|
1678
1628
|
ref: l,
|
|
1679
1629
|
disabled: i,
|
|
1680
1630
|
...a
|
|
1681
|
-
}), v(
|
|
1631
|
+
}), v(ns, {
|
|
1682
1632
|
htmlFor: e,
|
|
1683
1633
|
className: r,
|
|
1684
1634
|
inline: p,
|
|
1685
|
-
children: [d, c(
|
|
1635
|
+
children: [d, c(ss, {
|
|
1686
1636
|
children: o
|
|
1687
1637
|
})]
|
|
1688
1638
|
})]
|
|
1689
1639
|
});
|
|
1690
1640
|
};
|
|
1691
|
-
let
|
|
1641
|
+
let yn;
|
|
1692
1642
|
const ts = 5;
|
|
1693
|
-
function
|
|
1643
|
+
function En(e) {
|
|
1694
1644
|
return e.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
1695
1645
|
}
|
|
1696
|
-
function
|
|
1697
|
-
return RegExp(
|
|
1646
|
+
function wn(e, s) {
|
|
1647
|
+
return RegExp(En(s.trim()), "i").test(e);
|
|
1698
1648
|
}
|
|
1699
|
-
function
|
|
1649
|
+
function Sn(e, s, o) {
|
|
1700
1650
|
const t = e, i = s, n = o?.maxSelections || ts;
|
|
1701
1651
|
let r = [], p = [], d = [], l = [], a = -1;
|
|
1702
1652
|
function u(S) {
|
|
@@ -1708,14 +1658,14 @@ function xn(e, s, o) {
|
|
|
1708
1658
|
function h(S) {
|
|
1709
1659
|
let A;
|
|
1710
1660
|
const O = [];
|
|
1711
|
-
let
|
|
1661
|
+
let L = !1;
|
|
1712
1662
|
for (let H = 0, D = S.length; H < D; H++)
|
|
1713
|
-
A = S[H],
|
|
1663
|
+
A = S[H], L = b() ? !1 : A.defaultSelected, O.push({
|
|
1714
1664
|
id: u(A),
|
|
1715
1665
|
value: A.value,
|
|
1716
1666
|
text: A.text,
|
|
1717
|
-
checked:
|
|
1718
|
-
}),
|
|
1667
|
+
checked: L
|
|
1668
|
+
}), L && p.push(H);
|
|
1719
1669
|
return O;
|
|
1720
1670
|
}
|
|
1721
1671
|
function y() {
|
|
@@ -1726,12 +1676,12 @@ function xn(e, s, o) {
|
|
|
1726
1676
|
return A !== S;
|
|
1727
1677
|
}), !1);
|
|
1728
1678
|
}
|
|
1729
|
-
function
|
|
1730
|
-
return
|
|
1679
|
+
function N(S, A, O, L) {
|
|
1680
|
+
return wn(A.text, L) && S.push(O), S;
|
|
1731
1681
|
}
|
|
1732
1682
|
function x(S) {
|
|
1733
|
-
return Object.prototype.toString.call(S) !== "[object String]" && (S = ""), l = d, r.length > 0 && (d = r.reduce(function(A, O,
|
|
1734
|
-
return
|
|
1683
|
+
return Object.prototype.toString.call(S) !== "[object String]" && (S = ""), l = d, r.length > 0 && (d = r.reduce(function(A, O, L) {
|
|
1684
|
+
return N(A, O, L, S);
|
|
1735
1685
|
}, [])), a = -1, d;
|
|
1736
1686
|
}
|
|
1737
1687
|
function k(S) {
|
|
@@ -1747,7 +1697,7 @@ function xn(e, s, o) {
|
|
|
1747
1697
|
return this.init = y, this.toggleOption = _, this.getSelectedIndices = function() {
|
|
1748
1698
|
return p;
|
|
1749
1699
|
}, this.isAtMaxSelections = b, this.filterIndices = x, this.clearFilter = function() {
|
|
1750
|
-
return d = l = [],
|
|
1700
|
+
return d = l = [], yn;
|
|
1751
1701
|
}, this.getFilterIndices = function() {
|
|
1752
1702
|
return d;
|
|
1753
1703
|
}, this.getLastFilterIndices = function() {
|
|
@@ -1763,7 +1713,7 @@ function F(e, s, o) {
|
|
|
1763
1713
|
i in t ? t[i] = n : t.setAttribute(i, n);
|
|
1764
1714
|
}), s && s.appendChild(t), t;
|
|
1765
1715
|
}
|
|
1766
|
-
const
|
|
1716
|
+
const Ln = '<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>', Nn = Ln, P = "o-multiselect", xn = "a-checkbox", kn = "a-text-input", Qe = "prev", ge = "next", Be = "Enter", An = " ", je = "Escape", Cn = "ArrowUp", Ye = "ArrowDown", Ze = "Tab", Ke = {
|
|
1767
1717
|
// TODO: renderTags was added as a workaround for DS icons not rendering correctly when integrating with a React implementation.
|
|
1768
1718
|
renderTags: !0,
|
|
1769
1719
|
// Allow the Multiselect to generate the Tag elements in the DOM
|
|
@@ -1775,7 +1725,7 @@ function we(e) {
|
|
|
1775
1725
|
let s = le(e, P), o = !1, t, i, n, r, p, d, l, a, u, b, h;
|
|
1776
1726
|
const y = [];
|
|
1777
1727
|
let _;
|
|
1778
|
-
function
|
|
1728
|
+
function N() {
|
|
1779
1729
|
h.classList.remove("u-no-results"), h.classList.add("u-filtered");
|
|
1780
1730
|
let m = n.getLastFilterIndices();
|
|
1781
1731
|
for (let f = 0, g = m.length; f < g; f++)
|
|
@@ -1794,7 +1744,7 @@ function we(e) {
|
|
|
1794
1744
|
h.classList.add("u-no-results"), h.classList.remove("u-filtered");
|
|
1795
1745
|
}
|
|
1796
1746
|
function B(m) {
|
|
1797
|
-
return m.length > 0 ? (
|
|
1747
|
+
return m.length > 0 ? (N(), !0) : (k(), !1);
|
|
1798
1748
|
}
|
|
1799
1749
|
function M(m) {
|
|
1800
1750
|
x(), n.resetIndex();
|
|
@@ -1808,7 +1758,7 @@ function we(e) {
|
|
|
1808
1758
|
return d.classList.remove("u-active"), b.classList.add("u-invisible"), b.setAttribute("aria-hidden", !0), n.resetIndex(), _.dispatchEvent("collapsebegin", { target: _ }), _;
|
|
1809
1759
|
}
|
|
1810
1760
|
function O(m) {
|
|
1811
|
-
m === ge ? n.setIndex(n.getIndex() + 1) : m ===
|
|
1761
|
+
m === ge ? n.setIndex(n.getIndex() + 1) : m === Qe && n.setIndex(n.getIndex() - 1);
|
|
1812
1762
|
const f = n.getIndex();
|
|
1813
1763
|
if (f > -1) {
|
|
1814
1764
|
let g = f;
|
|
@@ -1819,7 +1769,7 @@ function we(e) {
|
|
|
1819
1769
|
} else
|
|
1820
1770
|
o = !1, u.focus();
|
|
1821
1771
|
}
|
|
1822
|
-
function
|
|
1772
|
+
function L() {
|
|
1823
1773
|
u.value = "", x();
|
|
1824
1774
|
}
|
|
1825
1775
|
function H(m) {
|
|
@@ -1827,7 +1777,7 @@ function we(e) {
|
|
|
1827
1777
|
f.tagName === "BUTTON" && (m.preventDefault(), f.removeEventListener("click", H), f.querySelector("label").click());
|
|
1828
1778
|
}
|
|
1829
1779
|
function D(m) {
|
|
1830
|
-
if (m.key ===
|
|
1780
|
+
if (m.key === An || m.key === Be) {
|
|
1831
1781
|
const f = m.target.querySelector("label");
|
|
1832
1782
|
h.querySelector(
|
|
1833
1783
|
"#" + f.getAttribute("for")
|
|
@@ -1837,13 +1787,13 @@ function we(e) {
|
|
|
1837
1787
|
function q(m) {
|
|
1838
1788
|
return t + "-" + m.value.trim().replace(/[^\w]/g, "-").toLowerCase();
|
|
1839
1789
|
}
|
|
1840
|
-
function
|
|
1790
|
+
function z(m, f) {
|
|
1841
1791
|
const g = q(f), E = F("li", null, {
|
|
1842
1792
|
"data-option": f.value
|
|
1843
1793
|
}), C = F("button", E, {
|
|
1844
1794
|
type: "button",
|
|
1845
1795
|
class: "a-tag-filter",
|
|
1846
|
-
innerHTML: "<label for=" + g + ">" + f.text +
|
|
1796
|
+
innerHTML: "<label for=" + g + ">" + f.text + Nn + "</label>"
|
|
1847
1797
|
});
|
|
1848
1798
|
m.appendChild(E), C.addEventListener("click", H), C.addEventListener(
|
|
1849
1799
|
"keydown",
|
|
@@ -1857,13 +1807,13 @@ function we(e) {
|
|
|
1857
1807
|
h.classList.contains("u-max-selections") && h.classList.remove("u-max-selections");
|
|
1858
1808
|
const g = '[data-option="' + f.value + '"]', E = l.querySelector(g);
|
|
1859
1809
|
typeof E < "u" && E && l?.removeChild(E);
|
|
1860
|
-
} else p?.renderTags && l &&
|
|
1810
|
+
} else p?.renderTags && l && z(l, f);
|
|
1861
1811
|
n.toggleOption(m), n.isAtMaxSelections() && h.classList.add("u-max-selections"), _.dispatchEvent("selectionsupdated", { target: _ });
|
|
1862
1812
|
}
|
|
1863
1813
|
n.resetIndex(), o = !1, b.getAttribute("aria-hidden") === "false" && u.focus();
|
|
1864
1814
|
}
|
|
1865
1815
|
function ke(m) {
|
|
1866
|
-
fe(Number(m.target.getAttribute("data-index"))),
|
|
1816
|
+
fe(Number(m.target.getAttribute("data-index"))), L();
|
|
1867
1817
|
}
|
|
1868
1818
|
function Ae() {
|
|
1869
1819
|
a.addEventListener("mousemove", function(g) {
|
|
@@ -1880,7 +1830,7 @@ function we(e) {
|
|
|
1880
1830
|
!o && b.getAttribute("aria-hidden") === "false" && A();
|
|
1881
1831
|
}), u.addEventListener("keydown", function(g) {
|
|
1882
1832
|
const E = g.key;
|
|
1883
|
-
b.getAttribute("aria-hidden") === "true" && E !==
|
|
1833
|
+
b.getAttribute("aria-hidden") === "true" && E !== Ze && S(), E === Be ? (g.preventDefault(), O(ge)) : E === je ? (L(), A()) : E === Ye ? O(ge) : E === Ze && !g.shiftKey && b.getAttribute("aria-hidden") === "false" && A();
|
|
1884
1834
|
}), h.addEventListener("mousedown", function() {
|
|
1885
1835
|
o = !0;
|
|
1886
1836
|
}), h.addEventListener("keydown", function(g) {
|
|
@@ -1889,7 +1839,7 @@ function we(e) {
|
|
|
1889
1839
|
g.preventDefault(), C.checked = !$;
|
|
1890
1840
|
const R = new Event("change", { bubbles: !1, cancelable: !0 });
|
|
1891
1841
|
C.dispatchEvent(R);
|
|
1892
|
-
} else E ===
|
|
1842
|
+
} else E === je ? (u.focus(), A()) : E === Cn ? O(Qe) : E === Ye && O(ge);
|
|
1893
1843
|
}), b.addEventListener("mousedown", function(g) {
|
|
1894
1844
|
g.target.tagName === "LABEL" && (o = !0);
|
|
1895
1845
|
});
|
|
@@ -1906,7 +1856,7 @@ function we(e) {
|
|
|
1906
1856
|
}), a = F("header", d, {
|
|
1907
1857
|
className: P + "__header"
|
|
1908
1858
|
}), u = F("input", a, {
|
|
1909
|
-
className: P + "__search " +
|
|
1859
|
+
className: P + "__search " + kn,
|
|
1910
1860
|
type: "text",
|
|
1911
1861
|
placeholder: i || "Select up to five",
|
|
1912
1862
|
id: s.id,
|
|
@@ -1933,26 +1883,26 @@ function we(e) {
|
|
|
1933
1883
|
type: "checkbox",
|
|
1934
1884
|
value: f.value,
|
|
1935
1885
|
name: t,
|
|
1936
|
-
class:
|
|
1886
|
+
class: xn + " " + P + "__checkbox",
|
|
1937
1887
|
checked: E,
|
|
1938
1888
|
"data-index": C
|
|
1939
1889
|
}), F("label", R, {
|
|
1940
1890
|
for: g,
|
|
1941
1891
|
textContent: f.text,
|
|
1942
1892
|
className: P + "__label a-label"
|
|
1943
|
-
}), y.push(R), E && p?.renderTags &&
|
|
1893
|
+
}), y.push(R), E && p?.renderTags && z(l, f);
|
|
1944
1894
|
}
|
|
1945
1895
|
return d.insertBefore(l, a), s.parentNode.insertBefore(d, s), d.appendChild(s), d;
|
|
1946
1896
|
}
|
|
1947
|
-
function Ce(m =
|
|
1948
|
-
if (!
|
|
1897
|
+
function Ce(m = Ke) {
|
|
1898
|
+
if (!oe(s))
|
|
1949
1899
|
return this;
|
|
1950
|
-
if (
|
|
1900
|
+
if (Zs())
|
|
1951
1901
|
return this;
|
|
1952
|
-
if (_ = this, t = s.name || s.id, i = s.getAttribute("data-placeholder"), r = s.options || [], p = { ...
|
|
1953
|
-
n = new
|
|
1902
|
+
if (_ = this, t = s.name || s.id, i = s.getAttribute("data-placeholder"), r = s.options || [], p = { ...Ke, ...m }, r.length > 0) {
|
|
1903
|
+
n = new Sn(r, t, p).init();
|
|
1954
1904
|
const f = ue();
|
|
1955
|
-
s.parentNode.removeChild(s), s = f,
|
|
1905
|
+
s.parentNode.removeChild(s), s = f, oe(s), Ae();
|
|
1956
1906
|
}
|
|
1957
1907
|
return this;
|
|
1958
1908
|
}
|
|
@@ -1960,7 +1910,7 @@ function we(e) {
|
|
|
1960
1910
|
return n;
|
|
1961
1911
|
}
|
|
1962
1912
|
this.init = Ce, this.expand = S, this.collapse = A;
|
|
1963
|
-
const K = new
|
|
1913
|
+
const K = new ce();
|
|
1964
1914
|
return this.addEventListener = K.addEventListener, this.removeEventListener = K.removeEventListener, this.dispatchEvent = K.dispatchEvent, this.getModel = Te, this.updateSelections = fe, this.selectionClickHandler = H, this.selectionKeyDownHandler = D, this;
|
|
1965
1915
|
}
|
|
1966
1916
|
we.BASE_CLASS = P;
|
|
@@ -1975,9 +1925,9 @@ const cs = (e, s) => {
|
|
|
1975
1925
|
value: "",
|
|
1976
1926
|
children: s
|
|
1977
1927
|
}, "initial")];
|
|
1978
|
-
},
|
|
1979
|
-
const [p, d] = ae([]), l =
|
|
1980
|
-
return
|
|
1928
|
+
}, Tn = (e, s) => e.find((o) => o.value === s), In = 5, On = ({ id: e, options: s, label: o, onChange: t = V, defaultOptionLabel: i = "-- select an option --", maxSelections: n = In, ...r }) => {
|
|
1929
|
+
const [p, d] = ae([]), l = Xe(null);
|
|
1930
|
+
return Q(() => {
|
|
1981
1931
|
const u = new we(l.current).init({
|
|
1982
1932
|
maxSelections: n,
|
|
1983
1933
|
renderTags: !0
|
|
@@ -1986,7 +1936,7 @@ const cs = (e, s) => {
|
|
|
1986
1936
|
d([...y]);
|
|
1987
1937
|
}, h = "selectionsupdated";
|
|
1988
1938
|
return u.addEventListener(h, b), () => u.removeEventListener(h, b);
|
|
1989
|
-
}, [n]),
|
|
1939
|
+
}, [n]), Q(() => {
|
|
1990
1940
|
const a = p.map((u) => ({
|
|
1991
1941
|
...s[u],
|
|
1992
1942
|
selected: !0
|
|
@@ -2010,9 +1960,9 @@ const cs = (e, s) => {
|
|
|
2010
1960
|
children: cs(s, i)
|
|
2011
1961
|
})]
|
|
2012
1962
|
});
|
|
2013
|
-
},
|
|
1963
|
+
}, Bn = ({ id: e, options: s, label: o, onChange: t = V, maxSelections: i, value: n = "", defaultOptionLabel: r = "-- select an option --", ...p }) => {
|
|
2014
1964
|
const d = (l) => {
|
|
2015
|
-
const a =
|
|
1965
|
+
const a = Tn(s, l.target.value);
|
|
2016
1966
|
return t(a), a;
|
|
2017
1967
|
};
|
|
2018
1968
|
return v("div", {
|
|
@@ -2032,14 +1982,14 @@ const cs = (e, s) => {
|
|
|
2032
1982
|
})
|
|
2033
1983
|
})]
|
|
2034
1984
|
});
|
|
2035
|
-
},
|
|
1985
|
+
}, to = ({ isMulti: e = !1, onChange: s = () => null, ...o }) => e ? c(On, {
|
|
2036
1986
|
onChange: s,
|
|
2037
1987
|
...o
|
|
2038
|
-
}) : c(
|
|
1988
|
+
}) : c(Bn, {
|
|
2039
1989
|
onChange: s,
|
|
2040
1990
|
...o
|
|
2041
1991
|
});
|
|
2042
|
-
function
|
|
1992
|
+
function co({ href: e = "#main", text: s = "Skip to main content" }) {
|
|
2043
1993
|
return c("div", {
|
|
2044
1994
|
className: "skip-nav",
|
|
2045
1995
|
children: c("a", {
|
|
@@ -2049,8 +1999,8 @@ function po({ href: e = "#main", text: s = "Skip to main content" }) {
|
|
|
2049
1999
|
})
|
|
2050
2000
|
});
|
|
2051
2001
|
}
|
|
2052
|
-
const
|
|
2053
|
-
|
|
2002
|
+
const io = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, isMinimal: t = !1, className: i = "", ...n }) => {
|
|
2003
|
+
Q(() => {
|
|
2054
2004
|
t ? ye.init() : _e.init(), document.readyState === "complete" && globalThis.dispatchEvent(new Event("load"));
|
|
2055
2005
|
}, [t]);
|
|
2056
2006
|
const r = t ? "o-summary-minimal" : "o-summary", p = [r, i];
|
|
@@ -2063,7 +2013,7 @@ const ao = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, is
|
|
|
2063
2013
|
}), c("button", {
|
|
2064
2014
|
type: "button",
|
|
2065
2015
|
className: `${r}__btn`,
|
|
2066
|
-
children: t ? v(
|
|
2016
|
+
children: t ? v(ne, {
|
|
2067
2017
|
children: [v("span", {
|
|
2068
2018
|
className: "o-summary-minimal__cue-open",
|
|
2069
2019
|
children: ["Show ", c(T, {
|
|
@@ -2079,7 +2029,7 @@ const ao = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, is
|
|
|
2079
2029
|
withBg: !0
|
|
2080
2030
|
})]
|
|
2081
2031
|
})]
|
|
2082
|
-
}) : v(
|
|
2032
|
+
}) : v(ne, {
|
|
2083
2033
|
children: [s, c(T, {
|
|
2084
2034
|
name: "plus",
|
|
2085
2035
|
isPresentational: !0,
|
|
@@ -2088,7 +2038,7 @@ const ao = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, is
|
|
|
2088
2038
|
})
|
|
2089
2039
|
})]
|
|
2090
2040
|
});
|
|
2091
|
-
},
|
|
2041
|
+
}, Hn = (e) => c("thead", {
|
|
2092
2042
|
children: c("tr", {
|
|
2093
2043
|
children: e.map((s, o) => {
|
|
2094
2044
|
let t = "";
|
|
@@ -2099,7 +2049,7 @@ const ao = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, is
|
|
|
2099
2049
|
}, n);
|
|
2100
2050
|
})
|
|
2101
2051
|
})
|
|
2102
|
-
}),
|
|
2052
|
+
}), Mn = (e) => {
|
|
2103
2053
|
if (!e) return {};
|
|
2104
2054
|
if (typeof e == "string")
|
|
2105
2055
|
return {
|
|
@@ -2110,40 +2060,40 @@ const ao = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, is
|
|
|
2110
2060
|
"data-label": e.header,
|
|
2111
2061
|
className: w(s)
|
|
2112
2062
|
};
|
|
2113
|
-
},
|
|
2063
|
+
}, Dn = (e, s) => c("tbody", {
|
|
2114
2064
|
children: e.map((o, t) => {
|
|
2115
2065
|
const i = `row-${t}`;
|
|
2116
2066
|
return c("tr", {
|
|
2117
2067
|
children: o.map((n, r) => {
|
|
2118
2068
|
const p = s[r], d = `row-${t}-col-${r}`;
|
|
2119
|
-
return
|
|
2120
|
-
...
|
|
2069
|
+
return Ge("td", {
|
|
2070
|
+
...Mn(p),
|
|
2121
2071
|
key: d
|
|
2122
2072
|
}, n);
|
|
2123
2073
|
})
|
|
2124
2074
|
}, i);
|
|
2125
2075
|
})
|
|
2126
|
-
}),
|
|
2076
|
+
}), Pn = ({ children: e }) => e ? c("caption", {
|
|
2127
2077
|
children: e
|
|
2128
|
-
}) : null,
|
|
2129
|
-
const [_,
|
|
2078
|
+
}) : null, Rn = Se(({ id: e, caption: s, columns: o, rows: t, isResponsive: i = !1, isScrollableHorizontal: n = !1, isStriped: r = !1, isPaginated: p = !1, startPage: d = j, perPage: l = os, className: a, divRef: u, tableRef: b, ...h }, y) => {
|
|
2079
|
+
const [_, N] = hn({
|
|
2130
2080
|
rows: t,
|
|
2131
2081
|
isPaginated: p,
|
|
2132
2082
|
startPage: d,
|
|
2133
2083
|
perPage: l
|
|
2134
|
-
}), x =
|
|
2084
|
+
}), x = Je(), k = [];
|
|
2135
2085
|
i && k.push("o-table o-table--stack-on-small"), r && k.push("o-table--striped"), p && k.push("u-w100pct"), a && k.push(a);
|
|
2136
|
-
const B = v(
|
|
2086
|
+
const B = v(ne, {
|
|
2137
2087
|
children: [v("table", {
|
|
2138
2088
|
className: w(k),
|
|
2139
2089
|
ref: b,
|
|
2140
2090
|
id: e ?? x,
|
|
2141
2091
|
...h,
|
|
2142
|
-
children: [c(
|
|
2092
|
+
children: [c(Pn, {
|
|
2143
2093
|
children: s
|
|
2144
|
-
}),
|
|
2145
|
-
}), p ? c(
|
|
2146
|
-
...
|
|
2094
|
+
}), Hn(o), Dn(_, o)]
|
|
2095
|
+
}), p ? c(gn, {
|
|
2096
|
+
...N,
|
|
2147
2097
|
tableId: e ?? x
|
|
2148
2098
|
}) : null]
|
|
2149
2099
|
});
|
|
@@ -2153,13 +2103,13 @@ const ao = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, is
|
|
|
2153
2103
|
children: B
|
|
2154
2104
|
}) : B;
|
|
2155
2105
|
});
|
|
2156
|
-
|
|
2157
|
-
const
|
|
2106
|
+
Rn.displayName = "Table";
|
|
2107
|
+
const Fn = {
|
|
2158
2108
|
success: "a-text-input--success",
|
|
2159
2109
|
error: "a-text-input--error",
|
|
2160
2110
|
warning: "a-text-input--warning",
|
|
2161
2111
|
info: "a-text-input--info"
|
|
2162
|
-
}, is = (e) =>
|
|
2112
|
+
}, is = (e) => Fn[e], ro = Se(({ id: e, className: s = "", status: o = "info", placeholder: t = "Placeholder text", isFullWidth: i = !1, isDisabled: n = !1, onChange: r = V, ...p }, d) => {
|
|
2163
2113
|
const l = (u) => {
|
|
2164
2114
|
u.preventDefault(), r(u.target.value);
|
|
2165
2115
|
}, a = ["a-text-input", is(o), i ? "a-text-input--full" : "", s || ""].filter((u) => u.length);
|
|
@@ -2175,7 +2125,7 @@ const $n = {
|
|
|
2175
2125
|
...p
|
|
2176
2126
|
})
|
|
2177
2127
|
});
|
|
2178
|
-
}),
|
|
2128
|
+
}), po = Se(({ className: e, id: s, inputRef: o, isDisabled: t = !1, name: i, status: n = "info", type: r = "text", isFullWidth: p = !1, ...d }, l) => {
|
|
2179
2129
|
const a = ["a-text-input", e, is(n)];
|
|
2180
2130
|
return p ? (a.push("a-text-input--full"), c("div", {
|
|
2181
2131
|
className: "m-form-field",
|
|
@@ -2200,9 +2150,9 @@ const $n = {
|
|
|
2200
2150
|
}), rs = (e) => e ? typeof e == "string" ? c(Re, {
|
|
2201
2151
|
children: e
|
|
2202
2152
|
}) : e : null, Z = ({ heading: e, subheading: s, description: o, callToAction: t, className: i, ...n }) => {
|
|
2203
|
-
const r = ["o-text-introduction", i], p = t && c(
|
|
2153
|
+
const r = ["o-text-introduction", i], p = t && c(te, {
|
|
2204
2154
|
isLinks: !0,
|
|
2205
|
-
children: c(
|
|
2155
|
+
children: c(Le, {
|
|
2206
2156
|
children: as(t, {
|
|
2207
2157
|
type: "list"
|
|
2208
2158
|
})
|
|
@@ -2225,30 +2175,30 @@ Z.Container = ({ className: e, children: s, ...o }) => c("div", {
|
|
|
2225
2175
|
...o,
|
|
2226
2176
|
children: s
|
|
2227
2177
|
});
|
|
2228
|
-
const
|
|
2178
|
+
const ao = Z.Container;
|
|
2229
2179
|
Z.Heading = ({ children: e }) => c(Ee, {
|
|
2230
2180
|
type: "1",
|
|
2231
2181
|
children: e
|
|
2232
2182
|
});
|
|
2233
|
-
const
|
|
2183
|
+
const lo = Z.Heading;
|
|
2234
2184
|
Z.Description = ({ children: e }) => rs(e);
|
|
2235
|
-
const
|
|
2185
|
+
const mo = Z.Description;
|
|
2236
2186
|
Z.Subheading = ({ children: e }) => c(Re, {
|
|
2237
2187
|
isLead: !0,
|
|
2238
2188
|
children: e
|
|
2239
2189
|
});
|
|
2240
|
-
const
|
|
2190
|
+
const fo = Z.Subheading, Wn = ({ children: e, className: s = "", ...o }) => c("div", {
|
|
2241
2191
|
className: `o-well ${s}`,
|
|
2242
2192
|
...o,
|
|
2243
2193
|
children: e
|
|
2244
2194
|
});
|
|
2245
|
-
function
|
|
2195
|
+
function uo({ heading: e, headingLevel: s = "h3", links: o, text: t, className: i = "", ...n }) {
|
|
2246
2196
|
const r = [];
|
|
2247
2197
|
if (o) for (const p of o)
|
|
2248
|
-
r.push(c(
|
|
2198
|
+
r.push(c(Le, {
|
|
2249
2199
|
children: p
|
|
2250
2200
|
}, p.key));
|
|
2251
|
-
return v(
|
|
2201
|
+
return v(Wn, {
|
|
2252
2202
|
className: i,
|
|
2253
2203
|
...n,
|
|
2254
2204
|
children: [e ? c("p", {
|
|
@@ -2257,59 +2207,58 @@ function ho({ heading: e, headingLevel: s = "h3", links: o, text: t, className:
|
|
|
2257
2207
|
}) : null, t ? c("p", {
|
|
2258
2208
|
className: "text",
|
|
2259
2209
|
children: t
|
|
2260
|
-
}) : null, r.length > 0 ? c(
|
|
2210
|
+
}) : null, r.length > 0 ? c(te, {
|
|
2261
2211
|
isLinks: !0,
|
|
2262
2212
|
children: r
|
|
2263
2213
|
}) : null]
|
|
2264
2214
|
});
|
|
2265
2215
|
}
|
|
2266
2216
|
export {
|
|
2267
|
-
|
|
2217
|
+
Vn as Alert,
|
|
2268
2218
|
Ss as AlertFieldLevel,
|
|
2269
2219
|
Ts as Banner,
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2220
|
+
jn as Breadcrumb,
|
|
2221
|
+
de as Button,
|
|
2222
|
+
Yn as ButtonGroup,
|
|
2223
|
+
Zn as Checkbox,
|
|
2224
|
+
Kn as Divider,
|
|
2225
|
+
Gn as Expandable,
|
|
2226
|
+
zn as ExpandableGroup,
|
|
2277
2227
|
en as Footer,
|
|
2278
|
-
|
|
2279
|
-
|
|
2228
|
+
Xn as FooterCfGov,
|
|
2229
|
+
Jn as Grid,
|
|
2280
2230
|
Ee as Heading,
|
|
2281
|
-
|
|
2231
|
+
eo as Hero,
|
|
2282
2232
|
T as Icon,
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2233
|
+
ns as Label,
|
|
2234
|
+
Qn as LanguageLink,
|
|
2235
|
+
so as Layout,
|
|
2236
|
+
re as Link,
|
|
2237
|
+
Ls as LinkText,
|
|
2238
|
+
te as List,
|
|
2239
|
+
Le as ListItem,
|
|
2290
2240
|
Me as ListItemBuilder,
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
_n as Pagination,
|
|
2241
|
+
Ns as ListLink,
|
|
2242
|
+
no as PageHeader,
|
|
2243
|
+
gn as Pagination,
|
|
2295
2244
|
Re as Paragraph,
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2245
|
+
oo as RadioButton,
|
|
2246
|
+
fn as ResponsiveMenu,
|
|
2247
|
+
to as Select,
|
|
2248
|
+
On as SelectMulti,
|
|
2249
|
+
Bn as SelectSingle,
|
|
2250
|
+
co as SkipNav,
|
|
2251
|
+
io as Summary,
|
|
2252
|
+
Rn as Table,
|
|
2304
2253
|
As as Tagline,
|
|
2305
|
-
|
|
2306
|
-
|
|
2254
|
+
ro as TextArea,
|
|
2255
|
+
po as TextInput,
|
|
2307
2256
|
Z as TextIntroduction,
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2257
|
+
ao as TextIntroductionContainer,
|
|
2258
|
+
mo as TextIntroductionDescription,
|
|
2259
|
+
lo as TextIntroductionHeading,
|
|
2260
|
+
fo as TextIntroductionSubheading,
|
|
2261
|
+
Wn as WellContainer,
|
|
2262
|
+
uo as WellContent,
|
|
2263
|
+
hn as usePagination
|
|
2315
2264
|
};
|