@cfpb/design-system-react 0.0.16 → 1.0.0
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 +385 -380
- package/package.json +24 -24
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import se, { useState as ae, useEffect as Q, createElement as
|
|
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 Ke, Fragment as ds, forwardRef as Se, useCallback as ze, useRef as Xe, useId as Je, cloneElement as as } from "react";
|
|
3
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;
|
|
@@ -13,7 +13,7 @@ function fs() {
|
|
|
13
13
|
function o() {
|
|
14
14
|
for (var n = "", r = 0; r < arguments.length; r++) {
|
|
15
15
|
var p = arguments[r];
|
|
16
|
-
p && (n =
|
|
16
|
+
p && (n = i(n, t(p)));
|
|
17
17
|
}
|
|
18
18
|
return n;
|
|
19
19
|
}
|
|
@@ -28,10 +28,10 @@ function fs() {
|
|
|
28
28
|
return n.toString();
|
|
29
29
|
var r = "";
|
|
30
30
|
for (var p in n)
|
|
31
|
-
s.call(n, p) && n[p] && (r =
|
|
31
|
+
s.call(n, p) && n[p] && (r = i(r, p));
|
|
32
32
|
return r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function i(n, r) {
|
|
35
35
|
return r ? n ? n + " " + r : n + r : n;
|
|
36
36
|
}
|
|
37
37
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
@@ -41,7 +41,7 @@ function fs() {
|
|
|
41
41
|
var us = fs();
|
|
42
42
|
const w = /* @__PURE__ */ ms(us), bs = (e, s, o) => {
|
|
43
43
|
const t = e[s];
|
|
44
|
-
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((
|
|
44
|
+
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((i, n) => {
|
|
45
45
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(n.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== o ? ". Note that variables only represent file names one level deep." : ""))));
|
|
46
46
|
});
|
|
47
47
|
}, gs = (e) => {
|
|
@@ -79,11 +79,11 @@ const w = /* @__PURE__ */ ms(us), bs = (e, s, o) => {
|
|
|
79
79
|
h5: "14px",
|
|
80
80
|
p: "16px",
|
|
81
81
|
sub: "12px"
|
|
82
|
-
}, _s = /* @__PURE__ */ new Set(["email", "facebook", "flickr", "github", "linkedin", "pinterest", "x", "youtube"]), ys = new Set(hs), Es = (e, s) => ys.has(e) ? s ? "-closed" : "-open" : s ? _s.has(e) ? "-square" : "-round" : "", C = ({ name: e, alt: s, ariaLabel: o = "", ariaLabelledby: t = "", ariaDescribedby:
|
|
82
|
+
}, _s = /* @__PURE__ */ new Set(["email", "facebook", "flickr", "github", "linkedin", "pinterest", "x", "youtube"]), ys = new Set(hs), Es = (e, s) => ys.has(e) ? s ? "-closed" : "-open" : s ? _s.has(e) ? "-square" : "-round" : "", C = ({ name: e, alt: s, ariaLabel: o = "", ariaLabelledby: t = "", ariaDescribedby: i = "", isPresentational: n = !1, withBg: r = !1, size: p = "inherit", ...d }) => {
|
|
83
83
|
const l = Es(e, r), a = `${e}${l}`, f = gs(a);
|
|
84
84
|
if (!f) return null;
|
|
85
85
|
const b = w("cf-icon-svg", `cf-icon-svg--${a}`), g = vs[p] || p;
|
|
86
|
-
return
|
|
86
|
+
return c(f, {
|
|
87
87
|
className: b,
|
|
88
88
|
style: {
|
|
89
89
|
fontSize: g
|
|
@@ -91,17 +91,17 @@ const w = /* @__PURE__ */ ms(us), bs = (e, s, o) => {
|
|
|
91
91
|
role: n ? void 0 : "img",
|
|
92
92
|
"aria-label": o || (n ? void 0 : s ?? e),
|
|
93
93
|
"aria-labelledby": t || void 0,
|
|
94
|
-
"aria-describedby":
|
|
94
|
+
"aria-describedby": i || void 0,
|
|
95
95
|
"aria-hidden": n ? "true" : void 0,
|
|
96
96
|
...d
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
|
-
function te({ children: e, className: s, isHorizontal: o, isLinks: t = !1, isOrdered:
|
|
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
|
-
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),
|
|
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),
|
|
103
103
|
children: e
|
|
104
|
-
}) :
|
|
104
|
+
}) : c("ul", {
|
|
105
105
|
className: w(p),
|
|
106
106
|
children: e
|
|
107
107
|
});
|
|
@@ -115,11 +115,11 @@ const ws = {
|
|
|
115
115
|
}, Ss = ({ status: e = "info", message: s, isVisible: o = !0, ...t }) => !o || !s ? null : ["error", "success", "warning", "info"].includes(e) ? v("div", {
|
|
116
116
|
className: `a-form-alert a-form-alert${es[e]}`,
|
|
117
117
|
...t,
|
|
118
|
-
children: [
|
|
118
|
+
children: [c(C, {
|
|
119
119
|
ariaLabel: `${e} icon`,
|
|
120
120
|
name: ws[e],
|
|
121
121
|
withBg: !0
|
|
122
|
-
}),
|
|
122
|
+
}), c("span", {
|
|
123
123
|
className: "a-form-alert__text",
|
|
124
124
|
children: s
|
|
125
125
|
})]
|
|
@@ -127,15 +127,15 @@ const ws = {
|
|
|
127
127
|
children: ["[Error] Unsupported field-level alert type provided: ", e]
|
|
128
128
|
});
|
|
129
129
|
function Le({ children: e, className: s, ...o }) {
|
|
130
|
-
return
|
|
130
|
+
return c("li", {
|
|
131
131
|
className: w("m-list__item", s),
|
|
132
132
|
...o,
|
|
133
133
|
children: e
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
function Me({ children: e, itemClassname: s = "", className: o }) {
|
|
137
|
-
return
|
|
138
|
-
children: e.map((t) =>
|
|
137
|
+
return c(ne, {
|
|
138
|
+
children: e.map((t) => c(Le, {
|
|
139
139
|
className: o,
|
|
140
140
|
children: se.cloneElement(t, {
|
|
141
141
|
className: `${s} ${t.props?.className ?? ""}`
|
|
@@ -143,8 +143,8 @@ function Me({ children: e, itemClassname: s = "", className: o }) {
|
|
|
143
143
|
}, t.key))
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function re({ isButton: e = !1, children: s, href: o, iconLeft: t, iconRight:
|
|
147
|
-
const a = !!t, f = !!
|
|
146
|
+
function re({ isButton: e = !1, children: s, href: o, iconLeft: t, iconRight: i, isJump: n = !1, isRouterLink: r = !1, label: p, type: d = "default", ...l }) {
|
|
147
|
+
const a = !!t, f = !!i, g = !e && (a || f || n), _ = e || g ? c(Ls, {
|
|
148
148
|
children: p
|
|
149
149
|
}) : p, L = w(l.className, {
|
|
150
150
|
"a-btn": e || d === "destructive",
|
|
@@ -162,11 +162,11 @@ function re({ isButton: e = !1, children: s, href: o, iconLeft: t, iconRight: c,
|
|
|
162
162
|
to: o,
|
|
163
163
|
...l,
|
|
164
164
|
className: L,
|
|
165
|
-
children: [s, !!t &&
|
|
165
|
+
children: [s, !!t && c(C, {
|
|
166
166
|
name: t,
|
|
167
167
|
isPresentational: !0
|
|
168
|
-
}), _, !!
|
|
169
|
-
name:
|
|
168
|
+
}), _, !!i && c(C, {
|
|
169
|
+
name: i,
|
|
170
170
|
isPresentational: !0
|
|
171
171
|
})]
|
|
172
172
|
});
|
|
@@ -175,25 +175,25 @@ function re({ isButton: e = !1, children: s, href: o, iconLeft: t, iconRight: c,
|
|
|
175
175
|
...l,
|
|
176
176
|
className: L,
|
|
177
177
|
href: o,
|
|
178
|
-
children: [s, !!t &&
|
|
178
|
+
children: [s, !!t && c(C, {
|
|
179
179
|
name: t,
|
|
180
180
|
isPresentational: !0
|
|
181
|
-
}), _, !!
|
|
182
|
-
name:
|
|
181
|
+
}), _, !!i && c(C, {
|
|
182
|
+
name: i,
|
|
183
183
|
isPresentational: !0
|
|
184
184
|
})]
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
const Ls = ({ children: e, ...s }) =>
|
|
187
|
+
const Ls = ({ children: e, ...s }) => c("span", {
|
|
188
188
|
className: "a-link__text",
|
|
189
189
|
...s,
|
|
190
190
|
children: e
|
|
191
|
-
}), Ns = (e) =>
|
|
192
|
-
children:
|
|
191
|
+
}), Ns = (e) => c(Le, {
|
|
192
|
+
children: c(re, {
|
|
193
193
|
...e,
|
|
194
194
|
isJump: !0
|
|
195
195
|
})
|
|
196
|
-
}), xs = ({ href: e, label: s, isExternal: o }) =>
|
|
196
|
+
}), xs = ({ href: e, label: s, isExternal: o }) => c(Ns, {
|
|
197
197
|
href: e,
|
|
198
198
|
label: s,
|
|
199
199
|
iconRight: o ? "external-link" : void 0
|
|
@@ -218,38 +218,38 @@ const Ls = ({ children: e, ...s }) => i("span", {
|
|
|
218
218
|
name: "warning",
|
|
219
219
|
withBg: !0
|
|
220
220
|
}
|
|
221
|
-
}, Vn = ({ children: e, className: s, links: o, message: t, status:
|
|
221
|
+
}, Vn = ({ children: e, className: s, links: o, message: t, status: i = "info", isVisible: n = !0, isFieldLevel: r = !1, showIcon: p = !0, ...d }) => {
|
|
222
222
|
if (!n) return null;
|
|
223
223
|
if (r)
|
|
224
|
-
return
|
|
225
|
-
status:
|
|
224
|
+
return c(Ss, {
|
|
225
|
+
status: i,
|
|
226
226
|
message: t,
|
|
227
227
|
isVisible: n,
|
|
228
228
|
...d
|
|
229
229
|
});
|
|
230
230
|
const l = w("m-notification", "m-notification--visible", {
|
|
231
|
-
"m-notification--success":
|
|
232
|
-
"m-notification--warning":
|
|
233
|
-
"m-notification--error":
|
|
234
|
-
"m-notification--info":
|
|
231
|
+
"m-notification--success": i === "success",
|
|
232
|
+
"m-notification--warning": i === "warning",
|
|
233
|
+
"m-notification--error": i === "error",
|
|
234
|
+
"m-notification--info": i === "info"
|
|
235
235
|
}, s);
|
|
236
236
|
return v("div", {
|
|
237
237
|
className: l,
|
|
238
238
|
...d,
|
|
239
|
-
children: [p ?
|
|
240
|
-
ariaLabel: `${
|
|
241
|
-
...ks[
|
|
239
|
+
children: [p ? c(C, {
|
|
240
|
+
ariaLabel: `${i} icon`,
|
|
241
|
+
...ks[i]
|
|
242
242
|
}) : null, v("div", {
|
|
243
243
|
className: "m-notification__content",
|
|
244
|
-
children: [t ?
|
|
244
|
+
children: [t ? c("div", {
|
|
245
245
|
className: "m-notification__message",
|
|
246
246
|
children: t
|
|
247
|
-
}) : null, e ?
|
|
247
|
+
}) : null, e ? c("div", {
|
|
248
248
|
className: `${t ? "m-notification__explanation" : ""}`,
|
|
249
249
|
children: e
|
|
250
|
-
}) : null, o && o.length > 0 ?
|
|
250
|
+
}) : null, o && o.length > 0 ? c(te, {
|
|
251
251
|
isLinks: !0,
|
|
252
|
-
children: o.map((a) =>
|
|
252
|
+
children: o.map((a) => Ke(xs, {
|
|
253
253
|
...a,
|
|
254
254
|
key: a.href
|
|
255
255
|
}))
|
|
@@ -260,9 +260,9 @@ const Ls = ({ children: e, ...s }) => i("span", {
|
|
|
260
260
|
const o = ["a-tagline"];
|
|
261
261
|
return e && o.push("a-tagline--large"), v("div", {
|
|
262
262
|
className: w(o),
|
|
263
|
-
children: [
|
|
263
|
+
children: [c("span", {
|
|
264
264
|
className: "u-usa-flag"
|
|
265
|
-
}),
|
|
265
|
+
}), c("div", {
|
|
266
266
|
className: "a-tagline__text",
|
|
267
267
|
children: s
|
|
268
268
|
})]
|
|
@@ -275,36 +275,36 @@ const Ls = ({ children: e, ...s }) => i("span", {
|
|
|
275
275
|
children: ["(", s, ") ", o.join("-")]
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
|
-
return
|
|
278
|
+
return c("a", {
|
|
279
279
|
href: `tel:+${e}`,
|
|
280
280
|
children: e
|
|
281
281
|
});
|
|
282
282
|
}, Ts = ({ isHorizontal: e = !0, tagline: s = v(ne, {
|
|
283
|
-
children: ["An official website of the", " ",
|
|
283
|
+
children: ["An official website of the", " ", c("span", {
|
|
284
284
|
className: "u-nowrap",
|
|
285
285
|
children: "United States government"
|
|
286
286
|
})]
|
|
287
|
-
}), phoneNumber: o, links: t = [], className:
|
|
287
|
+
}), phoneNumber: o, links: t = [], className: i, ...n }) => {
|
|
288
288
|
const r = ["m-global-eyebrow"], p = ["wrapper"], d = ["m-list"];
|
|
289
289
|
let l = null;
|
|
290
|
-
return e ? (r.push("m-global-eyebrow--horizontal"), p.push("wrapper--match-content"), d.push("m-list--horizontal m-global-eyebrow__languages"), l =
|
|
290
|
+
return e ? (r.push("m-global-eyebrow--horizontal"), p.push("wrapper--match-content"), d.push("m-list--horizontal m-global-eyebrow__languages"), l = c(As, {
|
|
291
291
|
children: s
|
|
292
|
-
})) : r.push("m-global-eyebrow--list"),
|
|
292
|
+
})) : r.push("m-global-eyebrow--list"), i && r.push(i), c("div", {
|
|
293
293
|
className: w(r),
|
|
294
294
|
...n,
|
|
295
295
|
children: v("div", {
|
|
296
296
|
className: w(p),
|
|
297
297
|
children: [l, v("div", {
|
|
298
298
|
className: "m-global-eyebrow__actions",
|
|
299
|
-
children: [t.length > 0 &&
|
|
299
|
+
children: [t.length > 0 && c("ul", {
|
|
300
300
|
className: w(d),
|
|
301
|
-
children: t.map((a) =>
|
|
301
|
+
children: t.map((a) => c("li", {
|
|
302
302
|
className: "m-list__item",
|
|
303
303
|
children: a
|
|
304
304
|
}, a.key))
|
|
305
|
-
}), o ?
|
|
305
|
+
}), o ? c("span", {
|
|
306
306
|
className: "m-global-eyebrow__phone",
|
|
307
|
-
children:
|
|
307
|
+
children: c(Cs, {
|
|
308
308
|
phoneNumber: o
|
|
309
309
|
})
|
|
310
310
|
}) : null]
|
|
@@ -350,33 +350,33 @@ const Ls = ({ children: e, ...s }) => i("span", {
|
|
|
350
350
|
label: "Kreyòl Ayisyen",
|
|
351
351
|
code: "ht"
|
|
352
352
|
}
|
|
353
|
-
}, Qn = ({ code: e, href: s, label: o, languageMap: t = Is, ...
|
|
353
|
+
}, Qn = ({ code: e, href: s, label: o, languageMap: t = Is, ...i }) => {
|
|
354
354
|
const n = t[e];
|
|
355
355
|
let r = e, p = e, d = o, l = s;
|
|
356
|
-
return n && (r = n.code, p = n.code, d = o ?? n.label, l = n.href || s),
|
|
356
|
+
return n && (r = n.code, p = n.code, d = o ?? n.label, l = n.href || s), c("a", {
|
|
357
357
|
href: l ?? `/language/${r}/`,
|
|
358
358
|
hrefLang: r,
|
|
359
359
|
lang: p,
|
|
360
|
-
...
|
|
360
|
+
...i,
|
|
361
361
|
children: d
|
|
362
362
|
});
|
|
363
|
-
}, jn = ({ crumbs: e, ariaLabel: s = "Breadcrumbs", className: o, ...t }) => e.length === 0 ? null :
|
|
363
|
+
}, jn = ({ crumbs: e, ariaLabel: s = "Breadcrumbs", className: o, ...t }) => e.length === 0 ? null : c("div", {
|
|
364
364
|
className: w("u-layout-grid__breadcrumbs", o),
|
|
365
365
|
...t,
|
|
366
|
-
children:
|
|
366
|
+
children: c("nav", {
|
|
367
367
|
className: "m-breadcrumbs",
|
|
368
368
|
"aria-label": s,
|
|
369
|
-
children: e.map((
|
|
370
|
-
children: [" / ",
|
|
369
|
+
children: e.map((i) => v(ds, {
|
|
370
|
+
children: [" / ", i.isCurrent ? c("span", {
|
|
371
371
|
className: "m-breadcrumbs__crumb",
|
|
372
372
|
"aria-current": "page",
|
|
373
|
-
children: ` ${
|
|
374
|
-
}) :
|
|
373
|
+
children: ` ${i.label} `
|
|
374
|
+
}) : c("a", {
|
|
375
375
|
className: "m-breadcrumbs__crumb",
|
|
376
|
-
href:
|
|
377
|
-
children: ` ${
|
|
376
|
+
href: i.href,
|
|
377
|
+
children: ` ${i.label} `
|
|
378
378
|
})]
|
|
379
|
-
}, `${
|
|
379
|
+
}, `${i.href}-${i.label}`))
|
|
380
380
|
})
|
|
381
381
|
}), Os = ["a-btn"], Bs = {
|
|
382
382
|
primary: [],
|
|
@@ -385,10 +385,10 @@ const Ls = ({ children: e, ...s }) => i("span", {
|
|
|
385
385
|
}, Hs = {
|
|
386
386
|
default: [],
|
|
387
387
|
full: ["a-btn--full-on-xs"]
|
|
388
|
-
}, de = Se(({ appearance: e = "primary", isLink: s = !1, size: o = "default", label: t, className:
|
|
388
|
+
}, de = Se(({ appearance: e = "primary", isLink: s = !1, size: o = "default", label: t, className: i, iconLeft: n, iconRight: r, children: p, ...d }, l) => {
|
|
389
389
|
const a = [...Os, ...Bs[e], ...Hs[o]];
|
|
390
|
-
s && a.push("a-btn--link"),
|
|
391
|
-
const f = !!n, b = !!r, y = t ? f || b ?
|
|
390
|
+
s && a.push("a-btn--link"), i && a.push(i), d.disabled && a.push("a-btn--disabled");
|
|
391
|
+
const f = !!n, b = !!r, y = t ? f || b ? c("span", {
|
|
392
392
|
children: t
|
|
393
393
|
}) : t : null;
|
|
394
394
|
if (f && b)
|
|
@@ -398,17 +398,17 @@ const Ls = ({ children: e, ...s }) => i("span", {
|
|
|
398
398
|
type: "button",
|
|
399
399
|
className: [...a].join(" "),
|
|
400
400
|
...d,
|
|
401
|
-
children: [p, !!n &&
|
|
401
|
+
children: [p, !!n && c(C, {
|
|
402
402
|
name: n,
|
|
403
403
|
isPresentational: !0
|
|
404
|
-
}), y, !!r &&
|
|
404
|
+
}), y, !!r && c(C, {
|
|
405
405
|
name: r,
|
|
406
406
|
isPresentational: !0
|
|
407
407
|
})]
|
|
408
408
|
});
|
|
409
409
|
});
|
|
410
410
|
de.displayName = "Button";
|
|
411
|
-
const Yn = ({ className: e, children: s, ...o }) => s ?
|
|
411
|
+
const Yn = ({ className: e, children: s, ...o }) => s ? c("div", {
|
|
412
412
|
className: `m-btn-group ${e ?? ""}`,
|
|
413
413
|
...o,
|
|
414
414
|
children: s
|
|
@@ -416,10 +416,10 @@ const Yn = ({ className: e, children: s, ...o }) => s ? i("div", {
|
|
|
416
416
|
className: w(["a-label__helper", s]),
|
|
417
417
|
...o,
|
|
418
418
|
children: ["(", e, ")"]
|
|
419
|
-
}) : null, Ms = ["a-label"], ns = ({ children: e, isInline: s = !1, htmlFor: o, className: t, ...
|
|
419
|
+
}) : null, Ms = ["a-label"], ns = ({ children: e, isInline: s = !1, htmlFor: o, className: t, ...i }) => {
|
|
420
420
|
const r = [...[...Ms, s ? "" : "a-label--heading"], t];
|
|
421
|
-
return e ?
|
|
422
|
-
...
|
|
421
|
+
return e ? c("label", {
|
|
422
|
+
...i,
|
|
423
423
|
className: w(r),
|
|
424
424
|
htmlFor: o,
|
|
425
425
|
children: e
|
|
@@ -428,7 +428,7 @@ const Yn = ({ className: e, children: s, ...o }) => s ? i("div", {
|
|
|
428
428
|
success: "m-form-field--checkbox-success",
|
|
429
429
|
warning: "m-form-field--checkbox-warning",
|
|
430
430
|
error: "m-form-field--checkbox-error"
|
|
431
|
-
}, Zn = ({ id: e, label: s, className: o, inputClassName: t, labelClassName:
|
|
431
|
+
}, Zn = ({ id: e, label: s, className: o, inputClassName: t, labelClassName: i = "", checked: n, defaultChecked: r, helperText: p, inputRef: d, disabled: l = !1, isLarge: a = !1, isLabelInline: f = !0, name: b, onChange: g, status: y, ..._ }) => {
|
|
432
432
|
const L = n !== void 0, k = ze((H) => {
|
|
433
433
|
g?.(H);
|
|
434
434
|
}, [g]), x = [...Ds, a ? "m-form-field--lg-target" : "", y ? Ps[y] : "", o], O = {
|
|
@@ -450,19 +450,19 @@ const Yn = ({ className: e, children: s, ...o }) => s ? i("div", {
|
|
|
450
450
|
defaultChecked: r ?? !1
|
|
451
451
|
}), v("div", {
|
|
452
452
|
className: w(x),
|
|
453
|
-
children: [
|
|
453
|
+
children: [c("input", {
|
|
454
454
|
...O
|
|
455
455
|
}), v(ns, {
|
|
456
456
|
id: `${e}-label`,
|
|
457
|
-
className:
|
|
457
|
+
className: i,
|
|
458
458
|
htmlFor: e,
|
|
459
459
|
isInline: f,
|
|
460
|
-
children: [s,
|
|
460
|
+
children: [s, c(ss, {
|
|
461
461
|
children: p
|
|
462
462
|
})]
|
|
463
463
|
})]
|
|
464
464
|
});
|
|
465
|
-
},
|
|
465
|
+
}, Gn = ({ className: e = "", ...s }) => c("div", {
|
|
466
466
|
className: `content__line ${e}`,
|
|
467
467
|
...s
|
|
468
468
|
}), We = {
|
|
@@ -515,20 +515,20 @@ function Us(e) {
|
|
|
515
515
|
const Y = "data-js-hook", Vs = "behavior_", Qs = "state_";
|
|
516
516
|
function ce() {
|
|
517
517
|
const e = {};
|
|
518
|
-
function s(
|
|
519
|
-
return {}.hasOwnProperty.call(e,
|
|
518
|
+
function s(i, n) {
|
|
519
|
+
return {}.hasOwnProperty.call(e, i) ? e[i].push(n) : e[i] = [n], this;
|
|
520
520
|
}
|
|
521
|
-
function o(
|
|
522
|
-
if (!{}.hasOwnProperty.call(e,
|
|
521
|
+
function o(i, n) {
|
|
522
|
+
if (!{}.hasOwnProperty.call(e, i))
|
|
523
523
|
return this;
|
|
524
|
-
const r = e[
|
|
525
|
-
return r !== -1 && e[
|
|
524
|
+
const r = e[i].indexOf(n);
|
|
525
|
+
return r !== -1 && e[i].splice(r, 1), this;
|
|
526
526
|
}
|
|
527
|
-
function t(
|
|
528
|
-
if (!{}.hasOwnProperty.call(e,
|
|
527
|
+
function t(i, n) {
|
|
528
|
+
if (!{}.hasOwnProperty.call(e, i))
|
|
529
529
|
return this;
|
|
530
530
|
n = n || {};
|
|
531
|
-
const r = e[
|
|
531
|
+
const r = e[i];
|
|
532
532
|
for (let p = 0, d = r.length; p < d; p++)
|
|
533
533
|
r[p].call(this, n);
|
|
534
534
|
return this;
|
|
@@ -600,7 +600,7 @@ function Zs() {
|
|
|
600
600
|
}
|
|
601
601
|
function I(e, s, o) {
|
|
602
602
|
const t = s;
|
|
603
|
-
let
|
|
603
|
+
let i = e;
|
|
604
604
|
if (!o) throw new Error("Child transition argument must be defined!");
|
|
605
605
|
const n = o;
|
|
606
606
|
let r, p, d, l = !1, a = !1, f = !1;
|
|
@@ -609,19 +609,19 @@ function I(e, s, o) {
|
|
|
609
609
|
"Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition."
|
|
610
610
|
);
|
|
611
611
|
function b() {
|
|
612
|
-
p && l ? (
|
|
612
|
+
p && l ? (i.addEventListener(p, d), n.dispatchEvent(I.BEGIN_EVENT, {
|
|
613
613
|
target: n,
|
|
614
614
|
type: I.BEGIN_EVENT
|
|
615
|
-
}),
|
|
615
|
+
}), i.classList.add(I.ANIMATING_CLASS), a = !0) : (n.dispatchEvent(I.BEGIN_EVENT, {
|
|
616
616
|
target: n,
|
|
617
617
|
type: I.BEGIN_EVENT
|
|
618
618
|
}), d());
|
|
619
619
|
}
|
|
620
620
|
function g() {
|
|
621
|
-
|
|
621
|
+
i.removeEventListener(p, d);
|
|
622
622
|
}
|
|
623
623
|
function y(N) {
|
|
624
|
-
return N && N.propertyName !== t.CSS_PROPERTY ? !1 : (g(),
|
|
624
|
+
return N && N.propertyName !== t.CSS_PROPERTY ? !1 : (g(), i.classList.remove(I.ANIMATING_CLASS), n.dispatchEvent(I.END_EVENT, {
|
|
625
625
|
target: n,
|
|
626
626
|
type: I.END_EVENT
|
|
627
627
|
}), a = !1, !0);
|
|
@@ -629,19 +629,19 @@ function I(e, s, o) {
|
|
|
629
629
|
function _() {
|
|
630
630
|
let N;
|
|
631
631
|
for (N in t)
|
|
632
|
-
({}).hasOwnProperty.call(t, N) && t[N] !== t.BASE_CLASS &&
|
|
632
|
+
({}).hasOwnProperty.call(t, N) && t[N] !== t.BASE_CLASS && i.classList.contains(t[N]) && i.classList.remove(t[N]);
|
|
633
633
|
}
|
|
634
634
|
function L() {
|
|
635
|
-
a && (
|
|
635
|
+
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 = "");
|
|
636
636
|
}
|
|
637
637
|
function k() {
|
|
638
|
-
L(), _(),
|
|
638
|
+
L(), _(), i.classList.remove(t.BASE_CLASS);
|
|
639
639
|
}
|
|
640
640
|
function x() {
|
|
641
|
-
|
|
641
|
+
i.classList.remove(I.NO_ANIMATION_CLASS), l = !0;
|
|
642
642
|
}
|
|
643
643
|
function O() {
|
|
644
|
-
|
|
644
|
+
i.classList.add(I.NO_ANIMATION_CLASS), l = !1;
|
|
645
645
|
}
|
|
646
646
|
function H(N) {
|
|
647
647
|
if (!N) {
|
|
@@ -664,17 +664,17 @@ function I(e, s, o) {
|
|
|
664
664
|
return M;
|
|
665
665
|
}
|
|
666
666
|
function S(N) {
|
|
667
|
-
k(), x(),
|
|
667
|
+
k(), x(), i = N, i.classList.add(t.BASE_CLASS), p = H(i);
|
|
668
668
|
}
|
|
669
669
|
function A(N) {
|
|
670
|
-
if (l = !
|
|
670
|
+
if (l = !i.classList.contains(I.NO_ANIMATION_CLASS), d = y.bind(this), S(i), !N)
|
|
671
671
|
throw new Error(
|
|
672
672
|
"Transition needs to be passed an initial CSS class on initialization!"
|
|
673
673
|
);
|
|
674
|
-
return
|
|
674
|
+
return i.classList.add(N), this;
|
|
675
675
|
}
|
|
676
676
|
function B(N) {
|
|
677
|
-
return f || (_(), f = !0),
|
|
677
|
+
return f || (_(), f = !0), i.classList.contains(N) ? !1 : (g(), i.classList.remove(r), r = N, b(), i.classList.add(r), !0);
|
|
678
678
|
}
|
|
679
679
|
return this.animateOff = O, this.animateOn = x, this.applyClass = B, this.halt = L, this.init = A, this.isAnimated = () => l, this.remove = k, this.setElement = S, this;
|
|
680
680
|
}
|
|
@@ -682,16 +682,16 @@ I.BEGIN_EVENT = "transitionbegin";
|
|
|
682
682
|
I.END_EVENT = "transitionend";
|
|
683
683
|
I.NO_ANIMATION_CLASS = "u-no-animation";
|
|
684
684
|
I.ANIMATING_CLASS = "u-is-animating";
|
|
685
|
-
const ie = Vs + "flyout-menu",
|
|
685
|
+
const ie = Vs + "flyout-menu", Gs = "[" + Y + "=" + ie;
|
|
686
686
|
function xe(e, s = !0) {
|
|
687
|
-
const o = qe(e, ie), t = x(e),
|
|
687
|
+
const o = qe(e, ie), t = x(e), i = qe(e, ie + "_content");
|
|
688
688
|
let n = 0;
|
|
689
689
|
const r = 0, p = 1, d = 2, l = 3;
|
|
690
690
|
let a, f, b;
|
|
691
691
|
const g = z.bind(this), y = q.bind(this);
|
|
692
692
|
let _, L = !0, k = !1;
|
|
693
693
|
function x(m) {
|
|
694
|
-
const u = [], h = m.querySelectorAll(`${
|
|
694
|
+
const u = [], h = m.querySelectorAll(`${Gs}_trigger]`);
|
|
695
695
|
let E, T, $;
|
|
696
696
|
for (let R = h.length >>> 0; R--; ) {
|
|
697
697
|
for ($ = !1, E = h[R], T = E.parentElement; T !== m; )
|
|
@@ -705,7 +705,7 @@ function xe(e, s = !0) {
|
|
|
705
705
|
H("expanded", u, m), u.addEventListener("click", N.bind(this)), u.addEventListener("touchstart", S, {
|
|
706
706
|
passive: !0
|
|
707
707
|
}), u.addEventListener("mouseover", A.bind(this)), u.addEventListener("mouseout", B.bind(this));
|
|
708
|
-
}),
|
|
708
|
+
}), i.setAttribute("data-open", m ? "true" : "false"), s && !m && i.setAttribute("hidden", ""), ue(), this;
|
|
709
709
|
}
|
|
710
710
|
function H(m, u, h) {
|
|
711
711
|
const E = String(h);
|
|
@@ -747,7 +747,7 @@ function xe(e, s = !0) {
|
|
|
747
747
|
}
|
|
748
748
|
function M() {
|
|
749
749
|
if (a?.halt(), n === d || n === l) return this;
|
|
750
|
-
if (n = d, s &&
|
|
750
|
+
if (n = d, s && i.removeAttribute("hidden"), this.dispatchEvent("expandbegin", { target: this, type: "expandbegin" }), !f || !b)
|
|
751
751
|
return y(), this;
|
|
752
752
|
const m = a?.isAnimated();
|
|
753
753
|
return m && a.addEventListener(I.END_EVENT, y), f(), m || y(), this;
|
|
@@ -756,7 +756,7 @@ function xe(e, s = !0) {
|
|
|
756
756
|
if (a?.halt(), n === p || n === r) return this;
|
|
757
757
|
for (let u = 0, h = t.length; u < h; u++)
|
|
758
758
|
H("expanded", t[u], !1);
|
|
759
|
-
if (
|
|
759
|
+
if (i.setAttribute("data-open", "false"), n = p, this.dispatchEvent("collapsebegin", {
|
|
760
760
|
target: this,
|
|
761
761
|
type: "collapsebegin"
|
|
762
762
|
}), !b || !f)
|
|
@@ -768,7 +768,7 @@ function xe(e, s = !0) {
|
|
|
768
768
|
), b(), m || g(), this;
|
|
769
769
|
}
|
|
770
770
|
function q() {
|
|
771
|
-
n = l,
|
|
771
|
+
n = l, i.setAttribute("data-open", "true"), a && a.removeEventListener(
|
|
772
772
|
I.END_EVENT,
|
|
773
773
|
y
|
|
774
774
|
), this.dispatchEvent("expandend", { target: this, type: "expandend" });
|
|
@@ -776,7 +776,7 @@ function xe(e, s = !0) {
|
|
|
776
776
|
H("expanded", t[m], !0);
|
|
777
777
|
}
|
|
778
778
|
function z() {
|
|
779
|
-
n = r, s &&
|
|
779
|
+
n = r, s && i.setAttribute("hidden", ""), a && a.removeEventListener(
|
|
780
780
|
I.END_EVENT,
|
|
781
781
|
g
|
|
782
782
|
), this.dispatchEvent("collapseend", { target: this, type: "collapseend" });
|
|
@@ -792,7 +792,7 @@ function xe(e, s = !0) {
|
|
|
792
792
|
function Ae() {
|
|
793
793
|
return {
|
|
794
794
|
container: o,
|
|
795
|
-
content:
|
|
795
|
+
content: i,
|
|
796
796
|
trigger: t
|
|
797
797
|
};
|
|
798
798
|
}
|
|
@@ -805,8 +805,8 @@ function xe(e, s = !0) {
|
|
|
805
805
|
function Te(m) {
|
|
806
806
|
return _ = m, this;
|
|
807
807
|
}
|
|
808
|
-
const
|
|
809
|
-
return this.addEventListener =
|
|
808
|
+
const G = new ce();
|
|
809
|
+
return this.addEventListener = G.addEventListener, this.removeEventListener = G.removeEventListener, this.dispatchEvent = G.dispatchEvent, this.init = O, this.expand = M, 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;
|
|
810
810
|
}
|
|
811
811
|
const $e = "transitiondir", X = {
|
|
812
812
|
CSS_PROPERTY: "max-height",
|
|
@@ -818,7 +818,7 @@ const $e = "transitiondir", X = {
|
|
|
818
818
|
};
|
|
819
819
|
function U(e) {
|
|
820
820
|
const s = this, o = new ce(), t = new I(e, X, this);
|
|
821
|
-
let
|
|
821
|
+
let i = 0;
|
|
822
822
|
function n() {
|
|
823
823
|
const _ = e.scrollHeight + "px";
|
|
824
824
|
e.style.maxHeight = _, e.style.bottom = "auto", e.style.top = "auto";
|
|
@@ -841,10 +841,10 @@ function U(e) {
|
|
|
841
841
|
}), this;
|
|
842
842
|
}
|
|
843
843
|
function l() {
|
|
844
|
-
return n(), t.applyClass(X.MH_DEFAULT), (!
|
|
844
|
+
return n(), t.applyClass(X.MH_DEFAULT), (!i || e.scrollHeight > i) && (i = e.scrollHeight), this;
|
|
845
845
|
}
|
|
846
846
|
function a() {
|
|
847
|
-
return n(), t.applyClass(X.MH_SUMMARY),
|
|
847
|
+
return n(), t.applyClass(X.MH_SUMMARY), i = e.scrollHeight, this;
|
|
848
848
|
}
|
|
849
849
|
function f() {
|
|
850
850
|
n(), e.style.top = "100%";
|
|
@@ -860,10 +860,10 @@ function U(e) {
|
|
|
860
860
|
target: s,
|
|
861
861
|
type: $e,
|
|
862
862
|
dir: y.dir
|
|
863
|
-
}),
|
|
863
|
+
}), i = e.scrollHeight, this;
|
|
864
864
|
}
|
|
865
865
|
function b() {
|
|
866
|
-
return t.applyClass(X.MH_ZERO),
|
|
866
|
+
return t.applyClass(X.MH_ZERO), i = e.scrollHeight, this;
|
|
867
867
|
}
|
|
868
868
|
function g() {
|
|
869
869
|
return e.style.maxHeight = "", t.remove();
|
|
@@ -872,13 +872,13 @@ function U(e) {
|
|
|
872
872
|
}
|
|
873
873
|
U.CLASSES = X;
|
|
874
874
|
const J = "o-expandable";
|
|
875
|
-
function
|
|
875
|
+
function K(e) {
|
|
876
876
|
const s = le(e, J);
|
|
877
|
-
let o, t,
|
|
877
|
+
let o, t, i, n, r;
|
|
878
878
|
function p() {
|
|
879
879
|
if (!oe(s))
|
|
880
880
|
return this;
|
|
881
|
-
o = s.querySelector(`.${J}__header`), t = s.querySelector(`.${J}__content`),
|
|
881
|
+
o = s.querySelector(`.${J}__header`), t = s.querySelector(`.${J}__content`), i = s.querySelector(`.${J}__label`);
|
|
882
882
|
const a = s.classList.contains(`${J}--onload-open`);
|
|
883
883
|
W(s, "behavior_flyout-menu"), W(o, "behavior_flyout-menu_trigger"), W(t, "behavior_flyout-menu_content");
|
|
884
884
|
const f = a ? U.CLASSES.MH_DEFAULT : U.CLASSES.MH_ZERO;
|
|
@@ -893,21 +893,21 @@ function G(e) {
|
|
|
893
893
|
}), this;
|
|
894
894
|
}
|
|
895
895
|
function d() {
|
|
896
|
-
return
|
|
896
|
+
return i.textContent.trim();
|
|
897
897
|
}
|
|
898
898
|
this.init = p, this.expand = () => r.expand(), this.collapse = () => r.collapse(), this.isExpanded = () => r.isExpanded(), this.refresh = () => r.getTransition().refresh(), this.getLabelText = d;
|
|
899
899
|
const l = new ce();
|
|
900
900
|
return this.addEventListener = l.addEventListener, this.removeEventListener = l.removeEventListener, this.dispatchEvent = l.dispatchEvent, this;
|
|
901
901
|
}
|
|
902
|
-
|
|
903
|
-
|
|
902
|
+
K.BASE_CLASS = J;
|
|
903
|
+
K.init = (e) => me(`.${K.BASE_CLASS}`, K, e);
|
|
904
904
|
const he = "o-expandable-group";
|
|
905
905
|
function ve(e) {
|
|
906
906
|
const s = le(e, he), o = s.classList.contains(`${he}--accordion`);
|
|
907
|
-
let t,
|
|
907
|
+
let t, i;
|
|
908
908
|
function n(p) {
|
|
909
909
|
const d = p.target;
|
|
910
|
-
|
|
910
|
+
i && i !== d && i.collapse(), i = d;
|
|
911
911
|
}
|
|
912
912
|
function r(p) {
|
|
913
913
|
return oe(s) ? (o && (t = p, t.forEach((d) => {
|
|
@@ -919,23 +919,23 @@ function ve(e) {
|
|
|
919
919
|
ve.BASE_CLASS = he;
|
|
920
920
|
ve.init = (e) => {
|
|
921
921
|
(e || document).querySelectorAll(`.${he}`).forEach((t) => {
|
|
922
|
-
const
|
|
923
|
-
`.${
|
|
924
|
-
|
|
922
|
+
const i = me(
|
|
923
|
+
`.${K.BASE_CLASS}`,
|
|
924
|
+
K,
|
|
925
925
|
t
|
|
926
926
|
);
|
|
927
|
-
new ve(t).init(
|
|
927
|
+
new ve(t).init(i);
|
|
928
928
|
});
|
|
929
929
|
};
|
|
930
930
|
const ee = "o-summary";
|
|
931
931
|
function _e(e) {
|
|
932
|
-
const s = le(e, ee), o = s.classList.contains(`${ee}--mobile`), t = s.querySelector(`.${ee}__content`),
|
|
932
|
+
const s = le(e, ee), o = s.classList.contains(`${ee}--mobile`), t = s.querySelector(`.${ee}__content`), i = s.querySelector(`.${ee}__btn`);
|
|
933
933
|
let n, r, p;
|
|
934
934
|
function d() {
|
|
935
935
|
return oe(s) ? (window.addEventListener("load", l), this) : this;
|
|
936
936
|
}
|
|
937
937
|
function l() {
|
|
938
|
-
window.removeEventListener("load", l), p = !g(), W(s, "behavior_flyout-menu"), W(t, "behavior_flyout-menu_content"), W(
|
|
938
|
+
window.removeEventListener("load", l), p = !g(), 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(
|
|
939
939
|
p ? U.CLASSES.MH_SUMMARY : U.CLASSES.MH_DEFAULT
|
|
940
940
|
), r.setTransition(
|
|
941
941
|
n,
|
|
@@ -944,7 +944,7 @@ function _e(e) {
|
|
|
944
944
|
), r.addEventListener("triggerclick", y), r.init(), b(), window.addEventListener("resize", b), "onorientationchange" in window && window.addEventListener("orientationchange", b), s.addEventListener("focusin", a), t.addEventListener("click", f);
|
|
945
945
|
}
|
|
946
946
|
function a(S) {
|
|
947
|
-
!p && S.target !==
|
|
947
|
+
!p && S.target !== i && (i.click(), s.removeEventListener("focusin", a));
|
|
948
948
|
}
|
|
949
949
|
function f(S) {
|
|
950
950
|
S.target.tagName !== "A" && r.isExpanded() && n.refresh();
|
|
@@ -962,10 +962,10 @@ function _e(e) {
|
|
|
962
962
|
k(), window.removeEventListener("resize", b), window.removeEventListener("orientationchange", b), r.removeEventListener("expandend", _), r.suspend(), n.remove();
|
|
963
963
|
}
|
|
964
964
|
function L() {
|
|
965
|
-
|
|
965
|
+
i.classList.remove("u-hidden");
|
|
966
966
|
}
|
|
967
967
|
function k() {
|
|
968
|
-
|
|
968
|
+
i.classList.add("u-hidden");
|
|
969
969
|
}
|
|
970
970
|
function x() {
|
|
971
971
|
return p && (r.collapse(), n.animateOn(), L(), p = !1), !p;
|
|
@@ -981,85 +981,85 @@ _e.init = (e) => me(`.${ee}`, _e, e);
|
|
|
981
981
|
const pe = "o-summary-minimal";
|
|
982
982
|
function ye(e) {
|
|
983
983
|
const s = le(e, pe), o = s.querySelector(`.${pe}__content`), t = s.querySelector(`.${pe}__btn`);
|
|
984
|
-
let
|
|
984
|
+
let i, n;
|
|
985
985
|
function r() {
|
|
986
986
|
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;
|
|
987
987
|
}
|
|
988
988
|
function p() {
|
|
989
|
-
window.removeEventListener("load", p), n = new xe(s, !1),
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
), n.init(), s.addEventListener("focusin", d), o.addEventListener("click", l), n.collapse(),
|
|
989
|
+
window.removeEventListener("load", p), n = new xe(s, !1), i = new U(o), i.init(U.CLASSES.MH_SUMMARY), n.setTransition(
|
|
990
|
+
i,
|
|
991
|
+
i.maxHeightSummary,
|
|
992
|
+
i.maxHeightDefault
|
|
993
|
+
), n.init(), s.addEventListener("focusin", d), o.addEventListener("click", l), n.collapse(), i.animateOn();
|
|
994
994
|
}
|
|
995
995
|
function d(f) {
|
|
996
996
|
f.target !== t && (t.click(), s.removeEventListener("focusin", d));
|
|
997
997
|
}
|
|
998
998
|
function l(f) {
|
|
999
|
-
f.target.tagName !== "A" && n.isExpanded() &&
|
|
999
|
+
f.target.tagName !== "A" && n.isExpanded() && i.refresh();
|
|
1000
1000
|
}
|
|
1001
1001
|
const a = new ce();
|
|
1002
1002
|
return this.addEventListener = a.addEventListener, this.removeEventListener = a.removeEventListener, this.dispatchEvent = a.dispatchEvent, this.init = r, this;
|
|
1003
1003
|
}
|
|
1004
1004
|
ye.BASE_CLASS = pe;
|
|
1005
1005
|
ye.init = (e) => me(`.${pe}`, ye, e);
|
|
1006
|
-
const
|
|
1006
|
+
const Kn = ({ header: e, children: s, icon: o = "", inAccordion: t = !1, isPadded: i = !1, openOnLoad: n = !1, className: r = "", ...p }) => {
|
|
1007
1007
|
Q(() => {
|
|
1008
|
-
t ||
|
|
1008
|
+
t || K.init();
|
|
1009
1009
|
}, [t]);
|
|
1010
1010
|
const d = ["o-expandable", r];
|
|
1011
|
-
return t || d.push("o-expandable--background", "o-expandable--border"),
|
|
1011
|
+
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", {
|
|
1012
1012
|
className: w(d),
|
|
1013
1013
|
...p,
|
|
1014
1014
|
children: [v("button", {
|
|
1015
1015
|
type: "button",
|
|
1016
1016
|
className: "o-expandable__header",
|
|
1017
1017
|
title: e,
|
|
1018
|
-
children: [o ?
|
|
1018
|
+
children: [o ? c("span", {
|
|
1019
1019
|
className: "o-expandable__icon",
|
|
1020
|
-
children:
|
|
1020
|
+
children: c(C, {
|
|
1021
1021
|
name: o
|
|
1022
1022
|
})
|
|
1023
|
-
}) : null,
|
|
1023
|
+
}) : null, c("h3", {
|
|
1024
1024
|
className: "o-expandable__label",
|
|
1025
1025
|
children: e
|
|
1026
1026
|
}), v("span", {
|
|
1027
1027
|
className: "o-expandable__cues",
|
|
1028
|
-
children: [
|
|
1028
|
+
children: [c("span", {
|
|
1029
1029
|
className: "o-expandable__cue-open",
|
|
1030
1030
|
"aria-label": "Show",
|
|
1031
|
-
children:
|
|
1031
|
+
children: c(C, {
|
|
1032
1032
|
name: "plus-round",
|
|
1033
1033
|
isPresentational: !0
|
|
1034
1034
|
})
|
|
1035
|
-
}),
|
|
1035
|
+
}), c("span", {
|
|
1036
1036
|
className: "o-expandable__cue-close",
|
|
1037
1037
|
"aria-label": "Hide",
|
|
1038
|
-
children:
|
|
1038
|
+
children: c(C, {
|
|
1039
1039
|
name: "minus-round",
|
|
1040
1040
|
isPresentational: !0
|
|
1041
1041
|
})
|
|
1042
1042
|
})]
|
|
1043
1043
|
})]
|
|
1044
|
-
}),
|
|
1044
|
+
}), c("div", {
|
|
1045
1045
|
className: "o-expandable__content",
|
|
1046
1046
|
children: s
|
|
1047
1047
|
})]
|
|
1048
1048
|
});
|
|
1049
|
-
}, zn = ({ legend: e, legendHelperText: s, children: o, isInline: t = !1, className:
|
|
1050
|
-
className: w("o-form__fieldset", t && "o-form__fieldset--inline",
|
|
1049
|
+
}, zn = ({ legend: e, legendHelperText: s, children: o, isInline: t = !1, className: i, ...n }) => v("fieldset", {
|
|
1050
|
+
className: w("o-form__fieldset", t && "o-form__fieldset--inline", i),
|
|
1051
1051
|
...n,
|
|
1052
1052
|
children: [v("legend", {
|
|
1053
1053
|
className: "h4",
|
|
1054
|
-
children: [e, s &&
|
|
1054
|
+
children: [e, s && c("small", {
|
|
1055
1055
|
className: "a-label__helper a-label__helper--block",
|
|
1056
1056
|
children: s
|
|
1057
1057
|
})]
|
|
1058
|
-
}), t ?
|
|
1058
|
+
}), t ? c("div", {
|
|
1059
1059
|
className: "o-form__fieldset-options",
|
|
1060
1060
|
children: o
|
|
1061
1061
|
}) : o]
|
|
1062
|
-
}), Xn = ({ groupId: e, accordion: s = !1, children: o, className: t = "", ...
|
|
1062
|
+
}), Xn = ({ groupId: e, accordion: s = !1, children: o, className: t = "", ...i }) => {
|
|
1063
1063
|
const n = ["o-expandable-group", t];
|
|
1064
1064
|
s && n.push("o-expandable-group--accordion"), Q(() => {
|
|
1065
1065
|
ve.init();
|
|
@@ -1068,68 +1068,68 @@ const Gn = ({ header: e, children: s, icon: o = "", inAccordion: t = !1, isPadde
|
|
|
1068
1068
|
inAccordion: !0,
|
|
1069
1069
|
openOnLoad: p.props.openOnLoad ?? !1
|
|
1070
1070
|
}) : p);
|
|
1071
|
-
return
|
|
1071
|
+
return c("div", {
|
|
1072
1072
|
id: e,
|
|
1073
1073
|
className: w(n),
|
|
1074
|
-
...
|
|
1074
|
+
...i,
|
|
1075
1075
|
children: r
|
|
1076
1076
|
});
|
|
1077
|
-
},
|
|
1077
|
+
}, Ks = () => v("a", {
|
|
1078
1078
|
className: "a-btn a-btn--secondary o-footer__top-button",
|
|
1079
1079
|
"data-gtm_ignore": "true",
|
|
1080
1080
|
"data-js-hook": "behavior_return-to-top",
|
|
1081
1081
|
href: "#",
|
|
1082
|
-
children: ["Back to top",
|
|
1082
|
+
children: ["Back to top", c(C, {
|
|
1083
1083
|
name: "arrow-up",
|
|
1084
1084
|
isPresentational: !0
|
|
1085
1085
|
})]
|
|
1086
|
-
}), zs = () =>
|
|
1086
|
+
}), zs = () => c("div", {
|
|
1087
1087
|
className: "o-footer__post",
|
|
1088
1088
|
children: v("div", {
|
|
1089
1089
|
className: "a-tagline a-tagline--large",
|
|
1090
1090
|
"aria-label": "Official website of the United States government",
|
|
1091
|
-
children: [
|
|
1091
|
+
children: [c("span", {
|
|
1092
1092
|
className: "u-usa-flag"
|
|
1093
1093
|
}), v("div", {
|
|
1094
1094
|
className: "a-tagline__text",
|
|
1095
|
-
children: ["An official website of the ",
|
|
1095
|
+
children: ["An official website of the ", c("span", {
|
|
1096
1096
|
className: "u-nowrap",
|
|
1097
1097
|
children: "United States government"
|
|
1098
1098
|
})]
|
|
1099
1099
|
})]
|
|
1100
1100
|
})
|
|
1101
|
-
}), De = (e) => e.length === 0, Xs = ({ children: e }) => De(e) ? null :
|
|
1101
|
+
}), De = (e) => e.length === 0, Xs = ({ children: e }) => De(e) ? null : c(te, {
|
|
1102
1102
|
className: "o-footer__nav-list m-list--links m-list--horizontal",
|
|
1103
|
-
children:
|
|
1103
|
+
children: c(Me, {
|
|
1104
1104
|
itemClassname: "m-list__link",
|
|
1105
1105
|
children: e
|
|
1106
1106
|
})
|
|
1107
|
-
}), Js = ({ children: e }) => De(e) ? null :
|
|
1107
|
+
}), Js = ({ children: e }) => De(e) ? null : c("div", {
|
|
1108
1108
|
className: "block block--flush-top block--flush-bottom block--padded-top",
|
|
1109
|
-
children:
|
|
1109
|
+
children: c("div", {
|
|
1110
1110
|
className: "m-social-media m-social-media--follow",
|
|
1111
|
-
children:
|
|
1111
|
+
children: c(te, {
|
|
1112
1112
|
className: "m-social-media__icons",
|
|
1113
1113
|
isUnstyled: !0,
|
|
1114
1114
|
isHorizontal: !0,
|
|
1115
|
-
children:
|
|
1115
|
+
children: c(Me, {
|
|
1116
1116
|
itemClassname: "m-social-media__icon",
|
|
1117
1117
|
children: e
|
|
1118
1118
|
})
|
|
1119
1119
|
})
|
|
1120
1120
|
})
|
|
1121
|
-
}), Oe = ({ children: e }) => De(e) ? null :
|
|
1121
|
+
}), Oe = ({ children: e }) => De(e) ? null : c("div", {
|
|
1122
1122
|
className: "o-footer__col",
|
|
1123
|
-
children:
|
|
1123
|
+
children: c(te, {
|
|
1124
1124
|
className: "o-footer__list",
|
|
1125
|
-
children:
|
|
1125
|
+
children: c(Me, {
|
|
1126
1126
|
itemClassname: "m-list__link",
|
|
1127
1127
|
children: e
|
|
1128
1128
|
})
|
|
1129
1129
|
})
|
|
1130
1130
|
});
|
|
1131
|
-
function en({ navLinks: e = [], socialLinks: s = [], linksCol1: o = [], linksCol2: t = [], linksCol3:
|
|
1132
|
-
return
|
|
1131
|
+
function en({ navLinks: e = [], socialLinks: s = [], linksCol1: o = [], linksCol2: t = [], linksCol3: i = [], className: n, ...r }) {
|
|
1132
|
+
return c("footer", {
|
|
1133
1133
|
className: w(["o-footer", n]),
|
|
1134
1134
|
"data-js-hook": "state_atomic_init",
|
|
1135
1135
|
...r,
|
|
@@ -1137,139 +1137,139 @@ function en({ navLinks: e = [], socialLinks: s = [], linksCol1: o = [], linksCol
|
|
|
1137
1137
|
className: "wrapper wrapper--match-content",
|
|
1138
1138
|
children: [v("div", {
|
|
1139
1139
|
className: "o-footer__pre",
|
|
1140
|
-
children: [
|
|
1140
|
+
children: [c(Ks, {}), c(Xs, {
|
|
1141
1141
|
children: e
|
|
1142
|
-
}),
|
|
1142
|
+
}), c(Js, {
|
|
1143
1143
|
children: s
|
|
1144
1144
|
})]
|
|
1145
1145
|
}), v("div", {
|
|
1146
1146
|
className: "o-footer__middle-left",
|
|
1147
|
-
children: [
|
|
1147
|
+
children: [c(Oe, {
|
|
1148
1148
|
children: o
|
|
1149
|
-
}),
|
|
1149
|
+
}), c(Oe, {
|
|
1150
1150
|
children: t
|
|
1151
1151
|
})]
|
|
1152
|
-
}),
|
|
1152
|
+
}), c("div", {
|
|
1153
1153
|
className: "o-footer__middle-right",
|
|
1154
|
-
children:
|
|
1155
|
-
children:
|
|
1154
|
+
children: c(Oe, {
|
|
1155
|
+
children: i
|
|
1156
1156
|
})
|
|
1157
|
-
}),
|
|
1157
|
+
}), c(zs, {})]
|
|
1158
1158
|
})
|
|
1159
1159
|
});
|
|
1160
1160
|
}
|
|
1161
1161
|
const Jn = ({ cfLink: e = "https://www.consumerfinance.gov", className: s, ...o }) => {
|
|
1162
|
-
const t = [
|
|
1162
|
+
const t = [c("a", {
|
|
1163
1163
|
href: `${e}/about-us/`,
|
|
1164
1164
|
children: "About Us"
|
|
1165
|
-
}, "about"),
|
|
1165
|
+
}, "about"), c("a", {
|
|
1166
1166
|
href: `${e}/about-us/contact-us/`,
|
|
1167
1167
|
children: "Contact Us"
|
|
1168
|
-
}, "contact"),
|
|
1168
|
+
}, "contact"), c("a", {
|
|
1169
1169
|
href: `${e}/about-us/careers/`,
|
|
1170
1170
|
children: "Careers"
|
|
1171
|
-
}, "careers"),
|
|
1171
|
+
}, "careers"), c("a", {
|
|
1172
1172
|
href: `${e}/about-us/events/`,
|
|
1173
1173
|
children: "Events"
|
|
1174
|
-
}, "events"),
|
|
1174
|
+
}, "events"), c("a", {
|
|
1175
1175
|
href: `${e}/enforcement/information-industry-whistleblowers/`,
|
|
1176
1176
|
children: "Industry Whistleblowers"
|
|
1177
|
-
}, "whistle"),
|
|
1177
|
+
}, "whistle"), c("a", {
|
|
1178
1178
|
href: `${e}/cfpb-ombudsman/`,
|
|
1179
1179
|
children: "CFPB Ombudsman"
|
|
1180
|
-
}, "ombudsman")],
|
|
1180
|
+
}, "ombudsman")], i = "https://www.facebook.com/CFPB", n = "https://www.linkedin.com/company/consumer-financial-protection-bureau", r = "https://twitter.com/CFPB", p = "https://www.youtube.com/user/cfpbvideo", d = "https://www.flickr.com/photos/cfpbphotos", l = [c("a", {
|
|
1181
1181
|
"aria-label": "Visit us on Facebook",
|
|
1182
|
-
"data-pretty-href":
|
|
1183
|
-
href:
|
|
1184
|
-
children:
|
|
1182
|
+
"data-pretty-href": i,
|
|
1183
|
+
href: i,
|
|
1184
|
+
children: c(C, {
|
|
1185
1185
|
name: "facebook",
|
|
1186
1186
|
isPresentational: !0,
|
|
1187
1187
|
withBg: !0
|
|
1188
1188
|
})
|
|
1189
|
-
}, "facebook"),
|
|
1189
|
+
}, "facebook"), c("a", {
|
|
1190
1190
|
"aria-label": "Visit us on Twitter",
|
|
1191
1191
|
"data-pretty-href": r,
|
|
1192
1192
|
href: r,
|
|
1193
|
-
children:
|
|
1193
|
+
children: c(C, {
|
|
1194
1194
|
name: "x",
|
|
1195
1195
|
isPresentational: !0,
|
|
1196
1196
|
withBg: !0
|
|
1197
1197
|
})
|
|
1198
|
-
}, "twitter"),
|
|
1198
|
+
}, "twitter"), c("a", {
|
|
1199
1199
|
"aria-label": "Visit us on LinkedIn",
|
|
1200
1200
|
"data-pretty-href": n,
|
|
1201
1201
|
href: n,
|
|
1202
|
-
children:
|
|
1202
|
+
children: c(C, {
|
|
1203
1203
|
name: "linkedin",
|
|
1204
1204
|
isPresentational: !0,
|
|
1205
1205
|
withBg: !0
|
|
1206
1206
|
})
|
|
1207
|
-
}, "linkedin"),
|
|
1207
|
+
}, "linkedin"), c("a", {
|
|
1208
1208
|
"aria-label": "Visit us on YouTube",
|
|
1209
1209
|
"data-pretty-href": p,
|
|
1210
1210
|
href: p,
|
|
1211
|
-
children:
|
|
1211
|
+
children: c(C, {
|
|
1212
1212
|
name: "youtube",
|
|
1213
1213
|
alt: "Visit us on YouTube",
|
|
1214
1214
|
isPresentational: !0,
|
|
1215
1215
|
withBg: !0
|
|
1216
1216
|
})
|
|
1217
|
-
}, "youtube"),
|
|
1217
|
+
}, "youtube"), c("a", {
|
|
1218
1218
|
"aria-label": "Visit us on Flickr",
|
|
1219
1219
|
"data-pretty-href": d,
|
|
1220
1220
|
href: d,
|
|
1221
|
-
children:
|
|
1221
|
+
children: c(C, {
|
|
1222
1222
|
name: "flickr",
|
|
1223
1223
|
alt: "Visit us on Flickr",
|
|
1224
1224
|
isPresentational: !0,
|
|
1225
1225
|
withBg: !0
|
|
1226
1226
|
})
|
|
1227
|
-
}, "flickr")], a = [
|
|
1227
|
+
}, "flickr")], a = [c("a", {
|
|
1228
1228
|
href: `${e}/foia-requests/`,
|
|
1229
1229
|
children: "FOIA"
|
|
1230
|
-
}, "foia"),
|
|
1230
|
+
}, "foia"), c("a", {
|
|
1231
1231
|
href: `${e}/privacy/`,
|
|
1232
1232
|
children: "Privacy"
|
|
1233
|
-
}, "privacy"),
|
|
1233
|
+
}, "privacy"), c("a", {
|
|
1234
1234
|
href: `${e}/privacy/website-privacy-policy/`,
|
|
1235
1235
|
children: "Website Privacy Policy & Legal Notices"
|
|
1236
|
-
}, "privacy-policy"),
|
|
1236
|
+
}, "privacy-policy"), c("a", {
|
|
1237
1237
|
href: `${e}/data/`,
|
|
1238
1238
|
children: "Data"
|
|
1239
|
-
}, "data"),
|
|
1239
|
+
}, "data"), c("a", {
|
|
1240
1240
|
href: `${e}/open-government/`,
|
|
1241
1241
|
children: "Open Government"
|
|
1242
|
-
}, "open-government"),
|
|
1242
|
+
}, "open-government"), c("a", {
|
|
1243
1243
|
href: `${e}/open-government/information-quality-guidelines/`,
|
|
1244
1244
|
children: "Information Quality Guidelines"
|
|
1245
|
-
}, "info-quality")], f = [
|
|
1245
|
+
}, "info-quality")], f = [c("a", {
|
|
1246
1246
|
href: `${e}/about-us/diversity-and-inclusion/`,
|
|
1247
1247
|
children: "Diversity & Inclusion"
|
|
1248
|
-
}, "dei"),
|
|
1248
|
+
}, "dei"), c("a", {
|
|
1249
1249
|
href: `${e}/administrative-adjudication-proceedings/`,
|
|
1250
1250
|
children: "Administrative Adjudication"
|
|
1251
|
-
}, "adjudication"),
|
|
1251
|
+
}, "adjudication"), c("a", {
|
|
1252
1252
|
href: `${e}/plain-writing/`,
|
|
1253
1253
|
children: "Plain Writing"
|
|
1254
|
-
}, "writing"),
|
|
1254
|
+
}, "writing"), c("a", {
|
|
1255
1255
|
href: `${e}/accessibility/`,
|
|
1256
1256
|
children: "Accessibility"
|
|
1257
|
-
}, "accessibility"),
|
|
1257
|
+
}, "accessibility"), c("a", {
|
|
1258
1258
|
href: `${e}/office-civil-rights/`,
|
|
1259
1259
|
children: "Office of Civil Rights"
|
|
1260
|
-
}, "civ-rights"),
|
|
1260
|
+
}, "civ-rights"), c("a", {
|
|
1261
1261
|
href: `${e}/office-civil-rights/no-fear-act-cummings-act/`,
|
|
1262
1262
|
children: "No FEAR Act & Cummings Act"
|
|
1263
|
-
}, "no-fear"),
|
|
1263
|
+
}, "no-fear"), c("a", {
|
|
1264
1264
|
href: `${e}/tribal/`,
|
|
1265
1265
|
children: "Tribal"
|
|
1266
1266
|
}, "tribal")], b = [v("a", {
|
|
1267
1267
|
className: "a-link a-link--icon",
|
|
1268
1268
|
href: "https://usa.gov/",
|
|
1269
|
-
children: [
|
|
1269
|
+
children: [c("span", {
|
|
1270
1270
|
className: "a-link__text",
|
|
1271
1271
|
children: "USA.gov"
|
|
1272
|
-
}), " ",
|
|
1272
|
+
}), " ", c(C, {
|
|
1273
1273
|
ariaLabel: "External link",
|
|
1274
1274
|
name: "external-link",
|
|
1275
1275
|
alt: "External link"
|
|
@@ -1277,16 +1277,16 @@ const Jn = ({ cfLink: e = "https://www.consumerfinance.gov", className: s, ...o
|
|
|
1277
1277
|
}, "usa-gov"), v("a", {
|
|
1278
1278
|
className: "a-link a-link--icon",
|
|
1279
1279
|
href: "https://oig.federalreserve.gov/",
|
|
1280
|
-
children: [
|
|
1280
|
+
children: [c("span", {
|
|
1281
1281
|
className: "a-link__text",
|
|
1282
1282
|
children: "Office of Inspector General"
|
|
1283
|
-
}), " ",
|
|
1283
|
+
}), " ", c(C, {
|
|
1284
1284
|
ariaLabel: "External link",
|
|
1285
1285
|
name: "external-link",
|
|
1286
1286
|
alt: "External link"
|
|
1287
1287
|
})]
|
|
1288
1288
|
}, "inspector")];
|
|
1289
|
-
return
|
|
1289
|
+
return c(en, {
|
|
1290
1290
|
...o,
|
|
1291
1291
|
className: s,
|
|
1292
1292
|
navLinks: t,
|
|
@@ -1298,25 +1298,25 @@ const Jn = ({ cfLink: e = "https://www.consumerfinance.gov", className: s, ...o
|
|
|
1298
1298
|
};
|
|
1299
1299
|
var Pe = ((e) => (e[e.Full = 12] = "Full", e[e.ThreeQuarters = 9] = "ThreeQuarters", e[e.TwoThirds = 8] = "TwoThirds", e[e.Half = 6] = "Half", e[e.Third = 4] = "Third", e[e.Quarter = 3] = "Quarter", e[e.Single = 1] = "Single", e))(Pe || {});
|
|
1300
1300
|
function sn({ width: e = 1, children: s, className: o = "", ...t }) {
|
|
1301
|
-
const
|
|
1302
|
-
return
|
|
1303
|
-
className: w(
|
|
1301
|
+
const i = ["col", `col-${e}`, o];
|
|
1302
|
+
return c("div", {
|
|
1303
|
+
className: w(i),
|
|
1304
1304
|
role: "gridcell",
|
|
1305
1305
|
...t,
|
|
1306
1306
|
children: s
|
|
1307
1307
|
});
|
|
1308
1308
|
}
|
|
1309
1309
|
function nn({ children: e, className: s, ...o }) {
|
|
1310
|
-
return
|
|
1310
|
+
return c("div", {
|
|
1311
1311
|
className: w(["row", s]),
|
|
1312
1312
|
role: "row",
|
|
1313
1313
|
...o,
|
|
1314
1314
|
children: e
|
|
1315
1315
|
});
|
|
1316
1316
|
}
|
|
1317
|
-
function on({ children: e, width: s = Pe.Full, demo: o, center: t, className:
|
|
1318
|
-
const r = [`grid cols-${s}`,
|
|
1319
|
-
return o && r.push("demo"), t && r.push("centered"),
|
|
1317
|
+
function on({ children: e, width: s = Pe.Full, demo: o, center: t, className: i, ...n }) {
|
|
1318
|
+
const r = [`grid cols-${s}`, i];
|
|
1319
|
+
return o && r.push("demo"), t && r.push("centered"), c("div", {
|
|
1320
1320
|
className: w(r),
|
|
1321
1321
|
role: "grid",
|
|
1322
1322
|
...n,
|
|
@@ -1329,23 +1329,23 @@ const eo = {
|
|
|
1329
1329
|
Width: Pe,
|
|
1330
1330
|
Wrapper: on
|
|
1331
1331
|
}, Ee = ({ type: e = "1", children: s, className: o, ...t }) => {
|
|
1332
|
-
let
|
|
1332
|
+
let i;
|
|
1333
1333
|
const n = [o];
|
|
1334
|
-
return e === "slug" ? (n.push("m-slug-header"),
|
|
1334
|
+
return e === "slug" ? (n.push("m-slug-header"), c("header", {
|
|
1335
1335
|
className: w(n),
|
|
1336
1336
|
...t,
|
|
1337
|
-
children:
|
|
1337
|
+
children: c("h2", {
|
|
1338
1338
|
className: "m-slug-header_heading",
|
|
1339
1339
|
children: s
|
|
1340
1340
|
})
|
|
1341
|
-
})) : (e === "display" ? (
|
|
1341
|
+
})) : (e === "display" ? (i = "h1", n.push("superheading")) : e === "eyebrow" ? (i = "div", n.push("h5 eyebrow")) : i = `h${e}`, c(i, {
|
|
1342
1342
|
...t,
|
|
1343
1343
|
className: w(n),
|
|
1344
1344
|
children: s
|
|
1345
1345
|
}));
|
|
1346
|
-
}, tn = ({ image: e, altText: s }) => e ?
|
|
1346
|
+
}, tn = ({ image: e, altText: s }) => e ? c("div", {
|
|
1347
1347
|
className: "m-hero__image-wrapper",
|
|
1348
|
-
children:
|
|
1348
|
+
children: c("img", {
|
|
1349
1349
|
src: e,
|
|
1350
1350
|
alt: s,
|
|
1351
1351
|
className: "m-hero__image"
|
|
@@ -1368,7 +1368,7 @@ const eo = {
|
|
|
1368
1368
|
);`);
|
|
1369
1369
|
}, [o, e, s]), o;
|
|
1370
1370
|
};
|
|
1371
|
-
function so({ backgroundColor: e, heading: s, headingLevel: o = "h1", image: t, imageAltText:
|
|
1371
|
+
function so({ 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: f, className: b, ...g }) {
|
|
1372
1372
|
const _ = cn(t, n ?? p ?? r), L = {
|
|
1373
1373
|
backgroundColor: e
|
|
1374
1374
|
}, k = {
|
|
@@ -1385,7 +1385,7 @@ function so({ backgroundColor: e, heading: s, headingLevel: o = "h1", image: t,
|
|
|
1385
1385
|
eyebrow: "eyebrow",
|
|
1386
1386
|
slug: "slug"
|
|
1387
1387
|
};
|
|
1388
|
-
return
|
|
1388
|
+
return c("div", {
|
|
1389
1389
|
className: w(x),
|
|
1390
1390
|
style: L,
|
|
1391
1391
|
...g,
|
|
@@ -1395,48 +1395,48 @@ function so({ backgroundColor: e, heading: s, headingLevel: o = "h1", image: t,
|
|
|
1395
1395
|
children: [v("div", {
|
|
1396
1396
|
className: "m-hero__text",
|
|
1397
1397
|
style: k,
|
|
1398
|
-
children: [
|
|
1398
|
+
children: [c(Ee, {
|
|
1399
1399
|
className: "m-hero__heading",
|
|
1400
1400
|
type: O[o],
|
|
1401
1401
|
children: s
|
|
1402
|
-
}), a === "p" ?
|
|
1402
|
+
}), a === "p" ? c("p", {
|
|
1403
1403
|
className: "m-hero__subhead",
|
|
1404
1404
|
children: l
|
|
1405
|
-
}) :
|
|
1405
|
+
}) : c(Ee, {
|
|
1406
1406
|
className: "m-hero__subhead",
|
|
1407
1407
|
type: O[a],
|
|
1408
1408
|
children: l
|
|
1409
1409
|
})]
|
|
1410
|
-
}),
|
|
1410
|
+
}), c(tn, {
|
|
1411
1411
|
image: t,
|
|
1412
|
-
altText:
|
|
1412
|
+
altText: i
|
|
1413
1413
|
})]
|
|
1414
1414
|
})
|
|
1415
1415
|
});
|
|
1416
1416
|
}
|
|
1417
|
-
const rn = ({ children: e, flushBottom: s, flushTopOnSmall: o, flushAllOnSmall: t, ...
|
|
1417
|
+
const rn = ({ children: e, flushBottom: s, flushTopOnSmall: o, flushAllOnSmall: t, ...i }) => {
|
|
1418
1418
|
const n = ["content__main"];
|
|
1419
|
-
return s && n.push("content--flush-bottom"), o && n.push("content--flush-top-on-small"), t && n.push("content--flush-all-on-small"),
|
|
1419
|
+
return s && n.push("content--flush-bottom"), o && n.push("content--flush-top-on-small"), t && n.push("content--flush-all-on-small"), c("div", {
|
|
1420
1420
|
className: w(n),
|
|
1421
|
-
...
|
|
1421
|
+
...i,
|
|
1422
1422
|
children: e
|
|
1423
1423
|
});
|
|
1424
1424
|
}, pn = ({ children: e, classes: s = "", id: o = "main", layout: t = "2-1" }) => {
|
|
1425
|
-
const
|
|
1426
|
-
return
|
|
1425
|
+
const i = ["content", `content--${t}`, s];
|
|
1426
|
+
return c("main", {
|
|
1427
1427
|
id: o,
|
|
1428
|
-
className: w(
|
|
1428
|
+
className: w(i),
|
|
1429
1429
|
role: "main",
|
|
1430
1430
|
children: e
|
|
1431
1431
|
});
|
|
1432
|
-
}, dn = ({ children: e, flushBottom: s, flushTopOnSmall: o, flushAllOnSmall: t, ...
|
|
1432
|
+
}, dn = ({ children: e, flushBottom: s, flushTopOnSmall: o, flushAllOnSmall: t, ...i }) => {
|
|
1433
1433
|
const n = ["sidebar", "content__sidebar", "o-sidebar-content"];
|
|
1434
|
-
return s && n.push("content--flush-bottom"), o && n.push("content--flush-top-on-small"), t && n.push("content--flush-all-on-small"),
|
|
1434
|
+
return s && n.push("content--flush-bottom"), o && n.push("content--flush-top-on-small"), t && n.push("content--flush-all-on-small"), c("aside", {
|
|
1435
1435
|
className: w(n),
|
|
1436
|
-
...
|
|
1436
|
+
...i,
|
|
1437
1437
|
children: e
|
|
1438
1438
|
});
|
|
1439
|
-
}, an = ({ children: e, ...s }) =>
|
|
1439
|
+
}, an = ({ children: e, ...s }) => c("div", {
|
|
1440
1440
|
className: "wrapper",
|
|
1441
1441
|
...s,
|
|
1442
1442
|
children: e
|
|
@@ -1447,30 +1447,30 @@ const rn = ({ children: e, flushBottom: s, flushTopOnSmall: o, flushAllOnSmall:
|
|
|
1447
1447
|
Wrapper: an
|
|
1448
1448
|
}, ln = "data:image/png;base64,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";
|
|
1449
1449
|
function Ue({ href: e = "https://www.consumerfinance.gov" }) {
|
|
1450
|
-
return
|
|
1450
|
+
return c(re, {
|
|
1451
1451
|
href: e,
|
|
1452
1452
|
title: "Home",
|
|
1453
1453
|
"aria-label": "Home",
|
|
1454
1454
|
className: "o-header__logo",
|
|
1455
|
-
children:
|
|
1455
|
+
children: c("img", {
|
|
1456
1456
|
className: "o-header__logo-img",
|
|
1457
1457
|
src: ln,
|
|
1458
1458
|
alt: "CFPB Logo"
|
|
1459
1459
|
})
|
|
1460
1460
|
});
|
|
1461
1461
|
}
|
|
1462
|
-
const mn = ({ elements: e, onLinkClick: s }) => e?.length ?
|
|
1462
|
+
const mn = ({ elements: e, onLinkClick: s }) => e?.length ? c("div", {
|
|
1463
1463
|
className: "links",
|
|
1464
1464
|
children: e.map((o, t) => se.isValidElement(o) ? se.cloneElement(o, {
|
|
1465
1465
|
...o.props,
|
|
1466
1466
|
key: o.key ?? t,
|
|
1467
|
-
onClick: (
|
|
1468
|
-
o.props.onClick && o.props.onClick(
|
|
1467
|
+
onClick: (i) => {
|
|
1468
|
+
o.props.onClick && o.props.onClick(i), s();
|
|
1469
1469
|
}
|
|
1470
1470
|
}) : o)
|
|
1471
1471
|
}) : null;
|
|
1472
1472
|
function fn({ links: e, href: s }) {
|
|
1473
|
-
const [o, t] = ae(!1),
|
|
1473
|
+
const [o, t] = ae(!1), i = () => {
|
|
1474
1474
|
t(!o);
|
|
1475
1475
|
}, n = () => {
|
|
1476
1476
|
t(!1);
|
|
@@ -1478,96 +1478,101 @@ function fn({ links: e, href: s }) {
|
|
|
1478
1478
|
p.key === "Escape" && t(!1);
|
|
1479
1479
|
}, []);
|
|
1480
1480
|
return e?.length ? v(ne, {
|
|
1481
|
-
children: [o ?
|
|
1481
|
+
children: [o ? c("div", {
|
|
1482
1482
|
className: "menu-overlay open",
|
|
1483
|
-
onClick:
|
|
1483
|
+
onClick: i,
|
|
1484
1484
|
onKeyDown: r,
|
|
1485
1485
|
tabIndex: 0,
|
|
1486
1486
|
role: "button",
|
|
1487
1487
|
"aria-label": "Close menu"
|
|
1488
|
-
}) : null,
|
|
1488
|
+
}) : null, c("div", {
|
|
1489
1489
|
className: "o-header__content",
|
|
1490
1490
|
children: v("div", {
|
|
1491
1491
|
className: "navbar wrapper wrapper--match-content",
|
|
1492
1492
|
children: [v("button", {
|
|
1493
1493
|
className: "menu-toggle",
|
|
1494
|
-
onClick:
|
|
1494
|
+
onClick: i,
|
|
1495
1495
|
"aria-expanded": o,
|
|
1496
1496
|
"aria-controls": "nav-links",
|
|
1497
1497
|
type: "button",
|
|
1498
|
-
children: [
|
|
1498
|
+
children: [c(C, {
|
|
1499
1499
|
name: o ? "error" : "menu"
|
|
1500
|
-
}),
|
|
1500
|
+
}), c("span", {
|
|
1501
1501
|
className: "sr-only",
|
|
1502
1502
|
children: o ? "Close menu" : "Open menu"
|
|
1503
1503
|
})]
|
|
1504
|
-
}),
|
|
1504
|
+
}), c(Ue, {
|
|
1505
1505
|
href: s
|
|
1506
|
-
}),
|
|
1506
|
+
}), c("nav", {
|
|
1507
1507
|
className: `nav-items ${o ? "open" : ""}`,
|
|
1508
1508
|
id: "nav-links",
|
|
1509
|
-
children:
|
|
1509
|
+
children: c(mn, {
|
|
1510
1510
|
elements: e,
|
|
1511
1511
|
onLinkClick: n
|
|
1512
1512
|
})
|
|
1513
1513
|
})]
|
|
1514
1514
|
})
|
|
1515
1515
|
})]
|
|
1516
|
-
}) :
|
|
1516
|
+
}) : c("div", {
|
|
1517
1517
|
className: "o-header__content",
|
|
1518
|
-
children:
|
|
1518
|
+
children: c("div", {
|
|
1519
1519
|
className: "navbar wrapper wrapper--match-content",
|
|
1520
|
-
children:
|
|
1520
|
+
children: c(Ue, {
|
|
1521
1521
|
href: s
|
|
1522
1522
|
})
|
|
1523
1523
|
})
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
1526
|
-
|
|
1526
|
+
c(re, {
|
|
1527
1527
|
href: "/",
|
|
1528
1528
|
label: "Home"
|
|
1529
|
-
}, "home"),
|
|
1529
|
+
}, "home"), c(re, {
|
|
1530
1530
|
className: "nav-item active",
|
|
1531
1531
|
href: "/filing",
|
|
1532
1532
|
label: "Filing"
|
|
1533
|
-
}, "filing"),
|
|
1533
|
+
}, "filing"), c(re, {
|
|
1534
1534
|
className: "nav-item profile",
|
|
1535
1535
|
href: "/profile",
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1536
|
+
children: c("span", {
|
|
1537
|
+
children: "John Sample"
|
|
1538
|
+
})
|
|
1539
|
+
}, "profile"), c(de, {
|
|
1540
|
+
label: "LOG OUT",
|
|
1539
1541
|
isLink: !0,
|
|
1540
1542
|
onClick: () => {
|
|
1541
1543
|
}
|
|
1542
1544
|
}, "logout");
|
|
1543
1545
|
const oo = ({ links: e, href: s, withBottomBorder: o = !0 }) => {
|
|
1544
1546
|
const t = ["o-header"];
|
|
1545
|
-
return o && t.push("bottom-border"),
|
|
1546
|
-
className:
|
|
1547
|
-
children:
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1547
|
+
return o && t.push("bottom-border"), c("div", {
|
|
1548
|
+
className: "o-header-scope",
|
|
1549
|
+
children: v("header", {
|
|
1550
|
+
className: w(t),
|
|
1551
|
+
children: [c(Ts, {
|
|
1552
|
+
tagline: "An official website of the United States government"
|
|
1553
|
+
}), c(fn, {
|
|
1554
|
+
links: e,
|
|
1555
|
+
href: s
|
|
1556
|
+
})]
|
|
1557
|
+
})
|
|
1553
1558
|
});
|
|
1554
|
-
}, V = () => null, j = 1, os = 20, un = () =>
|
|
1559
|
+
}, V = () => null, j = 1, os = 20, un = () => c(de, {
|
|
1555
1560
|
isLink: !0,
|
|
1556
1561
|
className: "m-pagination__btn-submit",
|
|
1557
1562
|
id: "m-pagination__btn-submit-default",
|
|
1558
1563
|
label: "Go",
|
|
1559
1564
|
type: "submit"
|
|
1560
1565
|
}), bn = ({ tableId: e, page: s, pageCount: o, onChange: t }) => {
|
|
1561
|
-
const
|
|
1566
|
+
const i = (r) => {
|
|
1562
1567
|
t(Number.parseInt(r.currentTarget.value, 10));
|
|
1563
1568
|
}, n = `${e}-pagination_current-page`;
|
|
1564
1569
|
return v("label", {
|
|
1565
1570
|
className: "m-pagination__label",
|
|
1566
1571
|
htmlFor: n,
|
|
1567
|
-
children: ["Page",
|
|
1572
|
+
children: ["Page", c("span", {
|
|
1568
1573
|
className: "u-visually-hidden",
|
|
1569
1574
|
children: `number ${s} out`
|
|
1570
|
-
}),
|
|
1575
|
+
}), c("input", {
|
|
1571
1576
|
className: "m-pagination__current-page",
|
|
1572
1577
|
id: n,
|
|
1573
1578
|
name: "page",
|
|
@@ -1577,10 +1582,10 @@ const oo = ({ links: e, href: s, withBottomBorder: o = !0 }) => {
|
|
|
1577
1582
|
pattern: "[0-9]*",
|
|
1578
1583
|
inputMode: "numeric",
|
|
1579
1584
|
value: s,
|
|
1580
|
-
onChange:
|
|
1585
|
+
onChange: i
|
|
1581
1586
|
}), `of ${o}`]
|
|
1582
1587
|
});
|
|
1583
|
-
}, gn = ({ tableId: e, page: s, pageCount: o, onClickPrevious: t = V, onClickNext:
|
|
1588
|
+
}, gn = ({ tableId: e, page: s, pageCount: o, onClickPrevious: t = V, onClickNext: i = V, onClickGo: n = V, previousLabel: r = "Previous", nextLabel: p = "Next" }) => {
|
|
1584
1589
|
const [d, l] = ae(s);
|
|
1585
1590
|
Q(() => l(s), [s]);
|
|
1586
1591
|
const a = (g) => {
|
|
@@ -1592,32 +1597,32 @@ const oo = ({ links: e, href: s, withBottomBorder: o = !0 }) => {
|
|
|
1592
1597
|
className: "m-pagination",
|
|
1593
1598
|
role: "navigation",
|
|
1594
1599
|
"aria-label": "Pagination",
|
|
1595
|
-
children: [
|
|
1600
|
+
children: [c(de, {
|
|
1596
1601
|
iconLeft: "left",
|
|
1597
1602
|
className: `m-pagination__btn-prev${s === j ? " a-btn--disabled" : ""}`,
|
|
1598
1603
|
onClick: t,
|
|
1599
1604
|
label: r,
|
|
1600
1605
|
disabled: s === j
|
|
1601
|
-
}),
|
|
1606
|
+
}), c(de, {
|
|
1602
1607
|
iconRight: "right",
|
|
1603
1608
|
className: `m-pagination__btn-next${s === o ? " a-btn--disabled" : ""}`,
|
|
1604
|
-
onClick:
|
|
1609
|
+
onClick: i,
|
|
1605
1610
|
label: p,
|
|
1606
1611
|
disabled: s === o
|
|
1607
1612
|
}), v("form", {
|
|
1608
1613
|
className: "m-pagination__form",
|
|
1609
1614
|
action: "#pagination_content",
|
|
1610
1615
|
onSubmit: a,
|
|
1611
|
-
children: [
|
|
1616
|
+
children: [c(bn, {
|
|
1612
1617
|
tableId: e ?? f,
|
|
1613
1618
|
page: d,
|
|
1614
1619
|
pageCount: o,
|
|
1615
1620
|
onChange: b
|
|
1616
|
-
}),
|
|
1621
|
+
}), c(un, {})]
|
|
1617
1622
|
})]
|
|
1618
1623
|
});
|
|
1619
1624
|
}, Ve = 1, hn = ({ isPaginated: e = !0, startPage: s = j, rows: o = [], perPage: t = os }) => {
|
|
1620
|
-
const
|
|
1625
|
+
const i = o.length, n = Math.max(Math.ceil(i / t), j), r = e && i > t, [p, d] = ae(Math.min(s, n));
|
|
1621
1626
|
Q(() => {
|
|
1622
1627
|
d(Math.min(p, n));
|
|
1623
1628
|
}, [p, n, t]);
|
|
@@ -1639,30 +1644,30 @@ const oo = ({ links: e, href: s, withBottomBorder: o = !0 }) => {
|
|
|
1639
1644
|
return [o.slice(b, g), f];
|
|
1640
1645
|
};
|
|
1641
1646
|
function Re({ children: e, isLead: s, className: o, ...t }) {
|
|
1642
|
-
const
|
|
1643
|
-
return s &&
|
|
1647
|
+
const i = [o];
|
|
1648
|
+
return s && i.push("lead-paragraph"), c("p", {
|
|
1644
1649
|
...t,
|
|
1645
|
-
className: w(
|
|
1650
|
+
className: w(i),
|
|
1646
1651
|
children: e
|
|
1647
1652
|
});
|
|
1648
1653
|
}
|
|
1649
|
-
const vn = ["a-radio"], _n = ["m-form-field m-form-field--radio"], to = ({ id: e, name: s, helperText: o, className: t, disabled:
|
|
1654
|
+
const vn = ["a-radio"], _n = ["m-form-field m-form-field--radio"], to = ({ id: e, name: s, helperText: o, className: t, disabled: i = !1, isLarge: n = !1, labelClassName: r, isLabelInline: p = !0, label: d, inputRef: l, ...a }) => {
|
|
1650
1655
|
const f = [...vn, t].join(" "), b = [..._n, n ? "m-form-field--lg-target" : ""].join(" ");
|
|
1651
1656
|
return v("div", {
|
|
1652
1657
|
className: b,
|
|
1653
|
-
children: [
|
|
1658
|
+
children: [c("input", {
|
|
1654
1659
|
id: e,
|
|
1655
1660
|
type: "radio",
|
|
1656
1661
|
name: s ?? e,
|
|
1657
1662
|
className: f,
|
|
1658
1663
|
ref: l,
|
|
1659
|
-
disabled:
|
|
1664
|
+
disabled: i,
|
|
1660
1665
|
...a
|
|
1661
1666
|
}), v(ns, {
|
|
1662
1667
|
htmlFor: e,
|
|
1663
1668
|
className: r,
|
|
1664
1669
|
isInline: p,
|
|
1665
|
-
children: [d,
|
|
1670
|
+
children: [d, c(ss, {
|
|
1666
1671
|
children: o
|
|
1667
1672
|
})]
|
|
1668
1673
|
})]
|
|
@@ -1677,10 +1682,10 @@ function wn(e, s) {
|
|
|
1677
1682
|
return RegExp(En(s.trim()), "i").test(e);
|
|
1678
1683
|
}
|
|
1679
1684
|
function Sn(e, s, o) {
|
|
1680
|
-
const t = e,
|
|
1685
|
+
const t = e, i = s, n = o?.maxSelections || ts;
|
|
1681
1686
|
let r = [], p = [], d = [], l = [], a = -1;
|
|
1682
1687
|
function f(S) {
|
|
1683
|
-
return
|
|
1688
|
+
return i + "-" + S.value.trim().replace(/\s+/g, "-").toLowerCase();
|
|
1684
1689
|
}
|
|
1685
1690
|
function b() {
|
|
1686
1691
|
return p.length >= n;
|
|
@@ -1738,12 +1743,12 @@ function Sn(e, s, o) {
|
|
|
1738
1743
|
}
|
|
1739
1744
|
function F(e, s, o) {
|
|
1740
1745
|
const t = document.createElement(e);
|
|
1741
|
-
return Object.keys(o).forEach((
|
|
1742
|
-
const n = o[
|
|
1743
|
-
|
|
1746
|
+
return Object.keys(o).forEach((i) => {
|
|
1747
|
+
const n = o[i];
|
|
1748
|
+
i in t ? t[i] = n : t.setAttribute(i, n);
|
|
1744
1749
|
}), s && s.appendChild(t), t;
|
|
1745
1750
|
}
|
|
1746
|
-
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",
|
|
1751
|
+
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", Ge = {
|
|
1747
1752
|
// TODO: renderTags was added as a workaround for DS icons not rendering correctly when integrating with a React implementation.
|
|
1748
1753
|
renderTags: !0,
|
|
1749
1754
|
// Allow the Multiselect to generate the Tag elements in the DOM
|
|
@@ -1752,7 +1757,7 @@ const Ln = '<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="cf
|
|
|
1752
1757
|
};
|
|
1753
1758
|
function we(e) {
|
|
1754
1759
|
e.classList.add(P);
|
|
1755
|
-
let s = le(e, P), o = !1, t,
|
|
1760
|
+
let s = le(e, P), o = !1, t, i, n, r, p, d, l, a, f, b, g;
|
|
1756
1761
|
const y = [];
|
|
1757
1762
|
let _;
|
|
1758
1763
|
function L() {
|
|
@@ -1888,7 +1893,7 @@ function we(e) {
|
|
|
1888
1893
|
}), f = F("input", a, {
|
|
1889
1894
|
className: P + "__search " + kn,
|
|
1890
1895
|
type: "text",
|
|
1891
|
-
placeholder:
|
|
1896
|
+
placeholder: i || "Select up to five",
|
|
1892
1897
|
id: s.id,
|
|
1893
1898
|
autocomplete: "off"
|
|
1894
1899
|
}), b = F("fieldset", d, {
|
|
@@ -1924,12 +1929,12 @@ function we(e) {
|
|
|
1924
1929
|
}
|
|
1925
1930
|
return d.insertBefore(l, a), s.parentNode.insertBefore(d, s), d.appendChild(s), d;
|
|
1926
1931
|
}
|
|
1927
|
-
function Ce(m =
|
|
1932
|
+
function Ce(m = Ge) {
|
|
1928
1933
|
if (!oe(s))
|
|
1929
1934
|
return this;
|
|
1930
1935
|
if (Zs())
|
|
1931
1936
|
return this;
|
|
1932
|
-
if (_ = this, t = s.name || s.id,
|
|
1937
|
+
if (_ = this, t = s.name || s.id, i = s.getAttribute("data-placeholder"), r = s.options || [], p = { ...Ge, ...m }, r.length > 0) {
|
|
1933
1938
|
n = new Sn(r, t, p).init();
|
|
1934
1939
|
const u = ue();
|
|
1935
1940
|
s.parentNode.removeChild(s), s = u, oe(s), Ae();
|
|
@@ -1940,22 +1945,22 @@ function we(e) {
|
|
|
1940
1945
|
return n;
|
|
1941
1946
|
}
|
|
1942
1947
|
this.init = Ce, this.expand = S, this.collapse = A;
|
|
1943
|
-
const
|
|
1944
|
-
return this.addEventListener =
|
|
1948
|
+
const G = new ce();
|
|
1949
|
+
return this.addEventListener = G.addEventListener, this.removeEventListener = G.removeEventListener, this.dispatchEvent = G.dispatchEvent, this.getModel = Te, this.updateSelections = fe, this.selectionClickHandler = M, this.selectionKeyDownHandler = D, this;
|
|
1945
1950
|
}
|
|
1946
1951
|
we.BASE_CLASS = P;
|
|
1947
1952
|
we.init = (e) => me(`.${P}`, we, void 0, e);
|
|
1948
1953
|
const cs = (e, s) => {
|
|
1949
|
-
const o = e.map(({ value: t, label:
|
|
1954
|
+
const o = e.map(({ value: t, label: i }) => c("option", {
|
|
1950
1955
|
value: t,
|
|
1951
|
-
children:
|
|
1956
|
+
children: i
|
|
1952
1957
|
}, t));
|
|
1953
|
-
return o.length > 0 ? o : [
|
|
1958
|
+
return o.length > 0 ? o : [c("option", {
|
|
1954
1959
|
disabled: !0,
|
|
1955
1960
|
value: "",
|
|
1956
1961
|
children: s
|
|
1957
1962
|
}, "initial")];
|
|
1958
|
-
}, Tn = (e, s) => e.find((o) => o.value === s), In = 5, On = ({ id: e, options: s, label: o, onChange: t = V, defaultOptionLabel:
|
|
1963
|
+
}, 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 }) => {
|
|
1959
1964
|
const [p, d] = ae([]), l = Xe(null);
|
|
1960
1965
|
return Q(() => {
|
|
1961
1966
|
const f = new we(l.current).init({
|
|
@@ -1975,11 +1980,11 @@ const cs = (e, s) => {
|
|
|
1975
1980
|
}, [p, t, s]), v("div", {
|
|
1976
1981
|
className: "m-form-field",
|
|
1977
1982
|
id: `multi-wrapper-${e}`,
|
|
1978
|
-
children: [
|
|
1983
|
+
children: [c("label", {
|
|
1979
1984
|
className: "a-label a-label--heading",
|
|
1980
1985
|
htmlFor: e,
|
|
1981
1986
|
children: o
|
|
1982
|
-
}),
|
|
1987
|
+
}), c("select", {
|
|
1983
1988
|
id: e,
|
|
1984
1989
|
className: "o-multiselect",
|
|
1985
1990
|
ref: l,
|
|
@@ -1987,23 +1992,23 @@ const cs = (e, s) => {
|
|
|
1987
1992
|
"data-placeholder": `Select up to ${n}`,
|
|
1988
1993
|
"data-open": !0,
|
|
1989
1994
|
...r,
|
|
1990
|
-
children: cs(s,
|
|
1995
|
+
children: cs(s, i)
|
|
1991
1996
|
})]
|
|
1992
1997
|
});
|
|
1993
|
-
}, Bn = ({ id: e, options: s, label: o, onChange: t = V, maxSelections:
|
|
1998
|
+
}, Bn = ({ id: e, options: s, label: o, onChange: t = V, maxSelections: i, value: n = "", defaultOptionLabel: r = "-- select an option --", ...p }) => {
|
|
1994
1999
|
const d = (l) => {
|
|
1995
2000
|
const a = Tn(s, l.target.value);
|
|
1996
2001
|
return t(a), a;
|
|
1997
2002
|
};
|
|
1998
2003
|
return v("div", {
|
|
1999
2004
|
className: "m-form-field",
|
|
2000
|
-
children: [
|
|
2005
|
+
children: [c("label", {
|
|
2001
2006
|
className: "a-label a-label--heading",
|
|
2002
2007
|
htmlFor: e,
|
|
2003
2008
|
children: o
|
|
2004
|
-
}),
|
|
2009
|
+
}), c("div", {
|
|
2005
2010
|
className: "a-select",
|
|
2006
|
-
children:
|
|
2011
|
+
children: c("select", {
|
|
2007
2012
|
id: e,
|
|
2008
2013
|
...p,
|
|
2009
2014
|
onChange: d,
|
|
@@ -2012,55 +2017,55 @@ const cs = (e, s) => {
|
|
|
2012
2017
|
})
|
|
2013
2018
|
})]
|
|
2014
2019
|
});
|
|
2015
|
-
}, co = ({ isMulti: e = !1, onChange: s = () => null, ...o }) => e ?
|
|
2020
|
+
}, co = ({ isMulti: e = !1, onChange: s = () => null, ...o }) => e ? c(On, {
|
|
2016
2021
|
onChange: s,
|
|
2017
2022
|
...o
|
|
2018
|
-
}) :
|
|
2023
|
+
}) : c(Bn, {
|
|
2019
2024
|
onChange: s,
|
|
2020
2025
|
...o
|
|
2021
2026
|
});
|
|
2022
2027
|
function io({ href: e = "#main", text: s = "Skip to main content" }) {
|
|
2023
|
-
return
|
|
2028
|
+
return c("div", {
|
|
2024
2029
|
className: "skip-nav",
|
|
2025
|
-
children:
|
|
2030
|
+
children: c("a", {
|
|
2026
2031
|
className: "skip-nav__link a-btn",
|
|
2027
2032
|
href: e,
|
|
2028
2033
|
children: s
|
|
2029
2034
|
})
|
|
2030
2035
|
});
|
|
2031
2036
|
}
|
|
2032
|
-
const ro = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, isMinimal: t = !1, className:
|
|
2037
|
+
const ro = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, isMinimal: t = !1, className: i = "", ...n }) => {
|
|
2033
2038
|
Q(() => {
|
|
2034
2039
|
t ? ye.init() : _e.init(), document.readyState === "complete" && globalThis.dispatchEvent(new Event("load"));
|
|
2035
2040
|
}, [t]);
|
|
2036
|
-
const r = t ? "o-summary-minimal" : "o-summary", p = [r,
|
|
2041
|
+
const r = t ? "o-summary-minimal" : "o-summary", p = [r, i];
|
|
2037
2042
|
return o && p.push(`${r}--mobile`), v("div", {
|
|
2038
2043
|
className: w(p),
|
|
2039
2044
|
...n,
|
|
2040
|
-
children: [
|
|
2045
|
+
children: [c("div", {
|
|
2041
2046
|
className: `${r}__content`,
|
|
2042
2047
|
children: e
|
|
2043
|
-
}),
|
|
2048
|
+
}), c("button", {
|
|
2044
2049
|
type: "button",
|
|
2045
2050
|
className: `${r}__btn`,
|
|
2046
2051
|
children: t ? v(ne, {
|
|
2047
2052
|
children: [v("span", {
|
|
2048
2053
|
className: "o-summary-minimal__cue-open",
|
|
2049
|
-
children: ["Show ",
|
|
2054
|
+
children: ["Show ", c(C, {
|
|
2050
2055
|
name: "plus",
|
|
2051
2056
|
isPresentational: !0,
|
|
2052
2057
|
withBg: !0
|
|
2053
2058
|
})]
|
|
2054
2059
|
}), v("span", {
|
|
2055
2060
|
className: "o-summary-minimal__cue-close",
|
|
2056
|
-
children: ["Hide ",
|
|
2061
|
+
children: ["Hide ", c(C, {
|
|
2057
2062
|
name: "minus",
|
|
2058
2063
|
isPresentational: !0,
|
|
2059
2064
|
withBg: !0
|
|
2060
2065
|
})]
|
|
2061
2066
|
})]
|
|
2062
2067
|
}) : v(ne, {
|
|
2063
|
-
children: [s,
|
|
2068
|
+
children: [s, c(C, {
|
|
2064
2069
|
name: "plus",
|
|
2065
2070
|
isPresentational: !0,
|
|
2066
2071
|
withBg: !0
|
|
@@ -2068,13 +2073,13 @@ const ro = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, is
|
|
|
2068
2073
|
})
|
|
2069
2074
|
})]
|
|
2070
2075
|
});
|
|
2071
|
-
}, Hn = (e) =>
|
|
2072
|
-
children:
|
|
2076
|
+
}, Hn = (e) => c("thead", {
|
|
2077
|
+
children: c("tr", {
|
|
2073
2078
|
children: e.map((s, o) => {
|
|
2074
2079
|
let t = "";
|
|
2075
|
-
const
|
|
2076
|
-
return typeof s == "object" ? (t = s.header, s.alignRight &&
|
|
2077
|
-
className: w(
|
|
2080
|
+
const i = [""], n = `header-${o}`;
|
|
2081
|
+
return typeof s == "object" ? (t = s.header, s.alignRight && i.push("o-table_cell--right-align"), s.width && i.push(`u-w${s.width}pct`), s.headerWordWrap || i.push("white-space-nowrap")) : t = s, c("th", {
|
|
2082
|
+
className: w(i),
|
|
2078
2083
|
children: t
|
|
2079
2084
|
}, n);
|
|
2080
2085
|
})
|
|
@@ -2090,44 +2095,44 @@ const ro = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, is
|
|
|
2090
2095
|
"data-label": e.header,
|
|
2091
2096
|
className: w(s)
|
|
2092
2097
|
};
|
|
2093
|
-
}, Dn = (e, s) =>
|
|
2098
|
+
}, Dn = (e, s) => c("tbody", {
|
|
2094
2099
|
children: e.map((o, t) => {
|
|
2095
|
-
const
|
|
2096
|
-
return
|
|
2100
|
+
const i = `row-${t}`;
|
|
2101
|
+
return c("tr", {
|
|
2097
2102
|
children: o.map((n, r) => {
|
|
2098
2103
|
const p = s[r], d = `row-${t}-col-${r}`;
|
|
2099
|
-
return
|
|
2104
|
+
return Ke("td", {
|
|
2100
2105
|
...Mn(p),
|
|
2101
2106
|
key: d
|
|
2102
2107
|
}, n);
|
|
2103
2108
|
})
|
|
2104
|
-
},
|
|
2109
|
+
}, i);
|
|
2105
2110
|
})
|
|
2106
|
-
}), Pn = ({ children: e }) => e ?
|
|
2111
|
+
}), Pn = ({ children: e }) => e ? c("caption", {
|
|
2107
2112
|
children: e
|
|
2108
|
-
}) : null, Rn = Se(({ id: e, caption: s, columns: o, rows: t, isResponsive:
|
|
2113
|
+
}) : 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: f, tableRef: b, ...g }, y) => {
|
|
2109
2114
|
const [_, L] = hn({
|
|
2110
2115
|
rows: t,
|
|
2111
2116
|
isPaginated: p,
|
|
2112
2117
|
startPage: d,
|
|
2113
2118
|
perPage: l
|
|
2114
2119
|
}), k = Je(), x = [];
|
|
2115
|
-
|
|
2120
|
+
i && x.push("o-table o-table--stack-on-small"), r && x.push("o-table--striped"), p && x.push("u-w100pct"), a && x.push(a);
|
|
2116
2121
|
const O = v(ne, {
|
|
2117
2122
|
children: [v("table", {
|
|
2118
2123
|
className: w(x),
|
|
2119
2124
|
ref: b,
|
|
2120
2125
|
id: e ?? k,
|
|
2121
2126
|
...g,
|
|
2122
|
-
children: [
|
|
2127
|
+
children: [c(Pn, {
|
|
2123
2128
|
children: s
|
|
2124
2129
|
}), Hn(o), Dn(_, o)]
|
|
2125
|
-
}), p ?
|
|
2130
|
+
}), p ? c(gn, {
|
|
2126
2131
|
...L,
|
|
2127
2132
|
tableId: e ?? k
|
|
2128
2133
|
}) : null]
|
|
2129
2134
|
});
|
|
2130
|
-
return n ?
|
|
2135
|
+
return n ? c("div", {
|
|
2131
2136
|
className: "o-table o-table-wrapper--scrolling",
|
|
2132
2137
|
ref: y ?? f,
|
|
2133
2138
|
children: O
|
|
@@ -2139,13 +2144,13 @@ const Fn = {
|
|
|
2139
2144
|
error: "a-text-input--error",
|
|
2140
2145
|
warning: "a-text-input--warning",
|
|
2141
2146
|
info: "a-text-input--info"
|
|
2142
|
-
}, is = (e) => Fn[e], po = Se(({ id: e, className: s = "", status: o = "info", placeholder: t = "Placeholder text", isFullWidth:
|
|
2147
|
+
}, is = (e) => Fn[e], po = Se(({ id: e, className: s = "", status: o = "info", placeholder: t = "Placeholder text", isFullWidth: i = !1, isDisabled: n = !1, onChange: r = V, ...p }, d) => {
|
|
2143
2148
|
const l = (f) => {
|
|
2144
2149
|
f.preventDefault(), r(f.target.value);
|
|
2145
|
-
}, a = ["a-text-input", is(o),
|
|
2146
|
-
return
|
|
2150
|
+
}, a = ["a-text-input", is(o), i ? "a-text-input--full" : "", s || ""].filter((f) => f.length);
|
|
2151
|
+
return c("div", {
|
|
2147
2152
|
className: "m-form-field",
|
|
2148
|
-
children:
|
|
2153
|
+
children: c("textarea", {
|
|
2149
2154
|
className: w(a),
|
|
2150
2155
|
id: e,
|
|
2151
2156
|
placeholder: t,
|
|
@@ -2155,34 +2160,34 @@ const Fn = {
|
|
|
2155
2160
|
...p
|
|
2156
2161
|
})
|
|
2157
2162
|
});
|
|
2158
|
-
}), ao = Se(({ className: e, id: s, inputRef: o, isDisabled: t = !1, name:
|
|
2163
|
+
}), ao = Se(({ className: e, id: s, inputRef: o, isDisabled: t = !1, name: i, status: n = "info", type: r = "text", isFullWidth: p = !1, ...d }, l) => {
|
|
2159
2164
|
const a = ["a-text-input", e, is(n)];
|
|
2160
|
-
return p ? (a.push("a-text-input--full"),
|
|
2165
|
+
return p ? (a.push("a-text-input--full"), c("div", {
|
|
2161
2166
|
className: "m-form-field",
|
|
2162
|
-
children:
|
|
2167
|
+
children: c("input", {
|
|
2163
2168
|
className: w(a),
|
|
2164
2169
|
disabled: t,
|
|
2165
2170
|
id: s,
|
|
2166
|
-
name:
|
|
2171
|
+
name: i,
|
|
2167
2172
|
type: r,
|
|
2168
2173
|
ref: l,
|
|
2169
2174
|
...d
|
|
2170
2175
|
})
|
|
2171
|
-
})) :
|
|
2176
|
+
})) : c("input", {
|
|
2172
2177
|
className: w(a),
|
|
2173
2178
|
disabled: t,
|
|
2174
2179
|
id: s,
|
|
2175
|
-
name:
|
|
2180
|
+
name: i,
|
|
2176
2181
|
type: r,
|
|
2177
2182
|
ref: l,
|
|
2178
2183
|
...d
|
|
2179
2184
|
});
|
|
2180
|
-
}), rs = (e) => e ? typeof e == "string" ?
|
|
2185
|
+
}), rs = (e) => e ? typeof e == "string" ? c(Re, {
|
|
2181
2186
|
children: e
|
|
2182
|
-
}) : e : null, Z = ({ heading: e, subheading: s, description: o, callToAction: t, className:
|
|
2183
|
-
const r = ["o-text-introduction",
|
|
2187
|
+
}) : e : null, Z = ({ heading: e, subheading: s, description: o, callToAction: t, className: i, ...n }) => {
|
|
2188
|
+
const r = ["o-text-introduction", i], p = t && c(te, {
|
|
2184
2189
|
isLinks: !0,
|
|
2185
|
-
children:
|
|
2190
|
+
children: c(Le, {
|
|
2186
2191
|
children: as(t, {
|
|
2187
2192
|
type: "list"
|
|
2188
2193
|
})
|
|
@@ -2191,53 +2196,53 @@ const Fn = {
|
|
|
2191
2196
|
return v("div", {
|
|
2192
2197
|
className: w(r),
|
|
2193
2198
|
...n,
|
|
2194
|
-
children: [
|
|
2199
|
+
children: [c(Ee, {
|
|
2195
2200
|
type: "1",
|
|
2196
2201
|
children: e
|
|
2197
|
-
}),
|
|
2202
|
+
}), c(Re, {
|
|
2198
2203
|
isLead: !0,
|
|
2199
2204
|
children: s
|
|
2200
2205
|
}), rs(o), p]
|
|
2201
2206
|
});
|
|
2202
2207
|
};
|
|
2203
|
-
Z.Container = ({ className: e, children: s, ...o }) =>
|
|
2208
|
+
Z.Container = ({ className: e, children: s, ...o }) => c("div", {
|
|
2204
2209
|
className: w(["o-text-introduction", e]),
|
|
2205
2210
|
...o,
|
|
2206
2211
|
children: s
|
|
2207
2212
|
});
|
|
2208
2213
|
const lo = Z.Container;
|
|
2209
|
-
Z.Heading = ({ children: e }) =>
|
|
2214
|
+
Z.Heading = ({ children: e }) => c(Ee, {
|
|
2210
2215
|
type: "1",
|
|
2211
2216
|
children: e
|
|
2212
2217
|
});
|
|
2213
2218
|
const mo = Z.Heading;
|
|
2214
2219
|
Z.Description = ({ children: e }) => rs(e);
|
|
2215
2220
|
const fo = Z.Description;
|
|
2216
|
-
Z.Subheading = ({ children: e }) =>
|
|
2221
|
+
Z.Subheading = ({ children: e }) => c(Re, {
|
|
2217
2222
|
isLead: !0,
|
|
2218
2223
|
children: e
|
|
2219
2224
|
});
|
|
2220
|
-
const uo = Z.Subheading, Wn = ({ children: e, className: s = "", ...o }) =>
|
|
2225
|
+
const uo = Z.Subheading, Wn = ({ children: e, className: s = "", ...o }) => c("div", {
|
|
2221
2226
|
className: `o-well ${s}`,
|
|
2222
2227
|
...o,
|
|
2223
2228
|
children: e
|
|
2224
2229
|
});
|
|
2225
|
-
function bo({ heading: e, headingLevel: s = "h3", links: o, text: t, className:
|
|
2230
|
+
function bo({ heading: e, headingLevel: s = "h3", links: o, text: t, className: i = "", ...n }) {
|
|
2226
2231
|
const r = [];
|
|
2227
2232
|
if (o) for (const p of o)
|
|
2228
|
-
r.push(
|
|
2233
|
+
r.push(c(Le, {
|
|
2229
2234
|
children: p
|
|
2230
2235
|
}, p.key));
|
|
2231
2236
|
return v(Wn, {
|
|
2232
|
-
className:
|
|
2237
|
+
className: i,
|
|
2233
2238
|
...n,
|
|
2234
|
-
children: [e ?
|
|
2239
|
+
children: [e ? c("p", {
|
|
2235
2240
|
className: s,
|
|
2236
2241
|
children: e
|
|
2237
|
-
}) : null, t ?
|
|
2242
|
+
}) : null, t ? c("p", {
|
|
2238
2243
|
className: "text",
|
|
2239
2244
|
children: t
|
|
2240
|
-
}) : null, r.length > 0 ?
|
|
2245
|
+
}) : null, r.length > 0 ? c(te, {
|
|
2241
2246
|
isLinks: !0,
|
|
2242
2247
|
children: r
|
|
2243
2248
|
}) : null]
|
|
@@ -2251,8 +2256,8 @@ export {
|
|
|
2251
2256
|
de as Button,
|
|
2252
2257
|
Yn as ButtonGroup,
|
|
2253
2258
|
Zn as Checkbox,
|
|
2254
|
-
|
|
2255
|
-
|
|
2259
|
+
Gn as Divider,
|
|
2260
|
+
Kn as Expandable,
|
|
2256
2261
|
Xn as ExpandableGroup,
|
|
2257
2262
|
zn as Fieldset,
|
|
2258
2263
|
en as Footer,
|