@cfpb/design-system-react 0.0.15 → 0.0.16

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as c, jsxs as v, Fragment as ne } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as v, Fragment as ne } from "react/jsx-runtime";
2
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
3
  import { Link as ls } from "react-router";
4
4
  function ms(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 = i(n, t(p)));
16
+ p && (n = c(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 = i(r, p));
31
+ s.call(n, p) && n[p] && (r = c(r, p));
32
32
  return r;
33
33
  }
34
- function i(n, r) {
34
+ function c(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((i, n) => {
44
+ return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((c, 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,29 +79,29 @@ 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" : "", T = ({ name: e, alt: s, ariaLabel: o = "", ariaLabelledby: t = "", ariaDescribedby: i = "", isPresentational: n = !1, withBg: r = !1, size: p = "inherit", ...d }) => {
83
- const l = Es(e, r), a = `${e}${l}`, u = gs(a);
84
- if (!u) return null;
85
- const b = w("cf-icon-svg", `cf-icon-svg--${a}`), h = vs[p] || p;
86
- return c(u, {
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: c = "", isPresentational: n = !1, withBg: r = !1, size: p = "inherit", ...d }) => {
83
+ const l = Es(e, r), a = `${e}${l}`, f = gs(a);
84
+ if (!f) return null;
85
+ const b = w("cf-icon-svg", `cf-icon-svg--${a}`), g = vs[p] || p;
86
+ return i(f, {
87
87
  className: b,
88
88
  style: {
89
- fontSize: h
89
+ fontSize: g
90
90
  },
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": i || void 0,
94
+ "aria-describedby": c || 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: i, isSpaced: n, isUnstyled: r }) {
99
+ function te({ children: e, className: s, isHorizontal: o, isLinks: t = !1, isOrdered: c, 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), i ? c("ol", {
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), c ? i("ol", {
102
102
  className: w(p),
103
103
  children: e
104
- }) : c("ul", {
104
+ }) : i("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: [c(T, {
118
+ children: [i(C, {
119
119
  ariaLabel: `${e} icon`,
120
120
  name: ws[e],
121
121
  withBg: !0
122
- }), c("span", {
122
+ }), i("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 c("li", {
130
+ return i("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 c(ne, {
138
- children: e.map((t) => c(Le, {
137
+ return i(ne, {
138
+ children: e.map((t) => i(Le, {
139
139
  className: o,
140
140
  children: se.cloneElement(t, {
141
141
  className: `${s} ${t.props?.className ?? ""}`
@@ -143,49 +143,57 @@ function Me({ children: e, itemClassname: s = "", className: o }) {
143
143
  }, t.key))
144
144
  });
145
145
  }
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, {
146
+ function re({ isButton: e = !1, children: s, href: o, iconLeft: t, iconRight: c, isJump: n = !1, isRouterLink: r = !1, label: p, type: d = "default", ...l }) {
147
+ const a = !!t, f = !!c, g = !e && (a || f || n), _ = e || g ? i(Ls, {
148
148
  children: p
149
- }) : p, y = w(l.className, {
149
+ }) : p, L = w(l.className, {
150
150
  "a-btn": e || d === "destructive",
151
151
  "a-btn--link": d === "destructive",
152
152
  "a-btn--warning": d === "destructive",
153
153
  "a-link--jump": n,
154
- "a-link": u
154
+ "a-link": g
155
155
  });
156
+ if (a && f)
157
+ throw new Error("Link component: only one of iconLeft or iconRight can be provided");
156
158
  if (r) {
157
159
  if (!o)
158
160
  throw new Error("Link component: href is a required attribute when isRouterLink is true");
159
- return c(ls, {
161
+ return v(ls, {
160
162
  to: o,
161
163
  ...l,
162
- className: y,
163
- children: p
164
+ className: L,
165
+ children: [s, !!t && i(C, {
166
+ name: t,
167
+ isPresentational: !0
168
+ }), _, !!c && i(C, {
169
+ name: c,
170
+ isPresentational: !0
171
+ })]
164
172
  });
165
173
  }
166
174
  return v("a", {
167
175
  ...l,
168
- className: y,
176
+ className: L,
169
177
  href: o,
170
- children: [s, !!t && c(T, {
178
+ children: [s, !!t && i(C, {
171
179
  name: t,
172
180
  isPresentational: !0
173
- }), h, !!i && c(T, {
174
- name: i,
181
+ }), _, !!c && i(C, {
182
+ name: c,
175
183
  isPresentational: !0
176
184
  })]
177
185
  });
178
186
  }
179
- const Ls = ({ children: e, ...s }) => c("span", {
187
+ const Ls = ({ children: e, ...s }) => i("span", {
180
188
  className: "a-link__text",
181
189
  ...s,
182
190
  children: e
183
- }), Ns = (e) => c(Le, {
184
- children: c(re, {
191
+ }), Ns = (e) => i(Le, {
192
+ children: i(re, {
185
193
  ...e,
186
194
  isJump: !0
187
195
  })
188
- }), xs = ({ href: e, label: s, isExternal: o }) => c(Ns, {
196
+ }), xs = ({ href: e, label: s, isExternal: o }) => i(Ns, {
189
197
  href: e,
190
198
  label: s,
191
199
  iconRight: o ? "external-link" : void 0
@@ -210,36 +218,36 @@ const Ls = ({ children: e, ...s }) => c("span", {
210
218
  name: "warning",
211
219
  withBg: !0
212
220
  }
213
- }, Vn = ({ children: e, className: s, links: o, message: t, status: i = "info", isVisible: n = !0, isFieldLevel: r = !1, showIcon: p = !0, ...d }) => {
221
+ }, Vn = ({ children: e, className: s, links: o, message: t, status: c = "info", isVisible: n = !0, isFieldLevel: r = !1, showIcon: p = !0, ...d }) => {
214
222
  if (!n) return null;
215
223
  if (r)
216
- return c(Ss, {
217
- status: i,
224
+ return i(Ss, {
225
+ status: c,
218
226
  message: t,
219
227
  isVisible: n,
220
228
  ...d
221
229
  });
222
230
  const l = w("m-notification", "m-notification--visible", {
223
- "m-notification--success": i === "success",
224
- "m-notification--warning": i === "warning",
225
- "m-notification--error": i === "error",
226
- "m-notification--info": i === "info"
231
+ "m-notification--success": c === "success",
232
+ "m-notification--warning": c === "warning",
233
+ "m-notification--error": c === "error",
234
+ "m-notification--info": c === "info"
227
235
  }, s);
228
236
  return v("div", {
229
237
  className: l,
230
238
  ...d,
231
- children: [p ? c(T, {
232
- ariaLabel: `${i} icon`,
233
- ...ks[i]
239
+ children: [p ? i(C, {
240
+ ariaLabel: `${c} icon`,
241
+ ...ks[c]
234
242
  }) : null, v("div", {
235
243
  className: "m-notification__content",
236
- children: [t ? c("div", {
244
+ children: [t ? i("div", {
237
245
  className: "m-notification__message",
238
246
  children: t
239
- }) : null, e ? c("div", {
247
+ }) : null, e ? i("div", {
240
248
  className: `${t ? "m-notification__explanation" : ""}`,
241
249
  children: e
242
- }) : null, o && o.length > 0 ? c(te, {
250
+ }) : null, o && o.length > 0 ? i(te, {
243
251
  isLinks: !0,
244
252
  children: o.map((a) => Ge(xs, {
245
253
  ...a,
@@ -252,9 +260,9 @@ const Ls = ({ children: e, ...s }) => c("span", {
252
260
  const o = ["a-tagline"];
253
261
  return e && o.push("a-tagline--large"), v("div", {
254
262
  className: w(o),
255
- children: [c("span", {
263
+ children: [i("span", {
256
264
  className: "u-usa-flag"
257
- }), c("div", {
265
+ }), i("div", {
258
266
  className: "a-tagline__text",
259
267
  children: s
260
268
  })]
@@ -267,36 +275,36 @@ const Ls = ({ children: e, ...s }) => c("span", {
267
275
  children: ["(", s, ") ", o.join("-")]
268
276
  });
269
277
  }
270
- return c("a", {
278
+ return i("a", {
271
279
  href: `tel:+${e}`,
272
280
  children: e
273
281
  });
274
282
  }, Ts = ({ isHorizontal: e = !0, tagline: s = v(ne, {
275
- children: ["An official website of the", " ", c("span", {
283
+ children: ["An official website of the", " ", i("span", {
276
284
  className: "u-nowrap",
277
285
  children: "United States government"
278
286
  })]
279
- }), phoneNumber: o, links: t = [], className: i, ...n }) => {
287
+ }), phoneNumber: o, links: t = [], className: c, ...n }) => {
280
288
  const r = ["m-global-eyebrow"], p = ["wrapper"], d = ["m-list"];
281
289
  let l = null;
282
- 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, {
290
+ return e ? (r.push("m-global-eyebrow--horizontal"), p.push("wrapper--match-content"), d.push("m-list--horizontal m-global-eyebrow__languages"), l = i(As, {
283
291
  children: s
284
- })) : r.push("m-global-eyebrow--list"), i && r.push(i), c("div", {
292
+ })) : r.push("m-global-eyebrow--list"), c && r.push(c), i("div", {
285
293
  className: w(r),
286
294
  ...n,
287
295
  children: v("div", {
288
296
  className: w(p),
289
297
  children: [l, v("div", {
290
298
  className: "m-global-eyebrow__actions",
291
- children: [t.length > 0 && c("ul", {
299
+ children: [t.length > 0 && i("ul", {
292
300
  className: w(d),
293
- children: t.map((a) => c("li", {
301
+ children: t.map((a) => i("li", {
294
302
  className: "m-list__item",
295
303
  children: a
296
304
  }, a.key))
297
- }), o ? c("span", {
305
+ }), o ? i("span", {
298
306
  className: "m-global-eyebrow__phone",
299
- children: c(Cs, {
307
+ children: i(Cs, {
300
308
  phoneNumber: o
301
309
  })
302
310
  }) : null]
@@ -342,33 +350,33 @@ const Ls = ({ children: e, ...s }) => c("span", {
342
350
  label: "Kreyòl Ayisyen",
343
351
  code: "ht"
344
352
  }
345
- }, Qn = ({ code: e, href: s, label: o, languageMap: t = Is, ...i }) => {
353
+ }, Qn = ({ code: e, href: s, label: o, languageMap: t = Is, ...c }) => {
346
354
  const n = t[e];
347
355
  let r = e, p = e, d = o, l = s;
348
- return n && (r = n.code, p = n.code, d = o ?? n.label, l = n.href || s), c("a", {
356
+ return n && (r = n.code, p = n.code, d = o ?? n.label, l = n.href || s), i("a", {
349
357
  href: l ?? `/language/${r}/`,
350
358
  hrefLang: r,
351
359
  lang: p,
352
- ...i,
360
+ ...c,
353
361
  children: d
354
362
  });
355
- }, jn = ({ crumbs: e, ariaLabel: s = "Breadcrumbs", className: o, ...t }) => e.length === 0 ? null : c("div", {
363
+ }, jn = ({ crumbs: e, ariaLabel: s = "Breadcrumbs", className: o, ...t }) => e.length === 0 ? null : i("div", {
356
364
  className: w("u-layout-grid__breadcrumbs", o),
357
365
  ...t,
358
- children: c("nav", {
366
+ children: i("nav", {
359
367
  className: "m-breadcrumbs",
360
368
  "aria-label": s,
361
- children: e.map((i) => v(ds, {
362
- children: [" / ", i.isCurrent ? c("span", {
369
+ children: e.map((c) => v(ds, {
370
+ children: [" / ", c.isCurrent ? i("span", {
363
371
  className: "m-breadcrumbs__crumb",
364
372
  "aria-current": "page",
365
- children: ` ${i.label} `
366
- }) : c("a", {
373
+ children: ` ${c.label} `
374
+ }) : i("a", {
367
375
  className: "m-breadcrumbs__crumb",
368
- href: i.href,
369
- children: ` ${i.label} `
376
+ href: c.href,
377
+ children: ` ${c.label} `
370
378
  })]
371
- }, `${i.href}-${i.label}`))
379
+ }, `${c.href}-${c.label}`))
372
380
  })
373
381
  }), Os = ["a-btn"], Bs = {
374
382
  primary: [],
@@ -377,26 +385,30 @@ const Ls = ({ children: e, ...s }) => c("span", {
377
385
  }, Hs = {
378
386
  default: [],
379
387
  full: ["a-btn--full-on-xs"]
380
- }, de = Se(({ appearance: e = "primary", asLink: s = !1, size: o = "default", label: t, className: i, iconLeft: n, iconRight: r, ...p }, d) => {
381
- const l = [...Os, ...Bs[e], ...Hs[o]];
382
- return s && l.push("a-btn--link"), i && l.push(i), p.disabled && l.push("a-btn--disabled"), v("button", {
383
- ref: d,
388
+ }, de = Se(({ appearance: e = "primary", isLink: s = !1, size: o = "default", label: t, className: c, iconLeft: n, iconRight: r, children: p, ...d }, l) => {
389
+ const a = [...Os, ...Bs[e], ...Hs[o]];
390
+ s && a.push("a-btn--link"), c && a.push(c), d.disabled && a.push("a-btn--disabled");
391
+ const f = !!n, b = !!r, y = t ? f || b ? i("span", {
392
+ children: t
393
+ }) : t : null;
394
+ if (f && b)
395
+ throw new Error("Button component: only one of iconLeft or iconRight can be provided");
396
+ return v("button", {
397
+ ref: l,
384
398
  type: "button",
385
- className: [...l].join(" "),
386
- ...p,
387
- children: [!!n && c(T, {
399
+ className: [...a].join(" "),
400
+ ...d,
401
+ children: [p, !!n && i(C, {
388
402
  name: n,
389
403
  isPresentational: !0
390
- }), n || r ? c("span", {
391
- children: t
392
- }) : t, !!r && c(T, {
404
+ }), y, !!r && i(C, {
393
405
  name: r,
394
406
  isPresentational: !0
395
407
  })]
396
408
  });
397
409
  });
398
410
  de.displayName = "Button";
399
- const Yn = ({ className: e, children: s, ...o }) => s ? c("div", {
411
+ const Yn = ({ className: e, children: s, ...o }) => s ? i("div", {
400
412
  className: `m-btn-group ${e ?? ""}`,
401
413
  ...o,
402
414
  children: s
@@ -404,10 +416,10 @@ const Yn = ({ className: e, children: s, ...o }) => s ? c("div", {
404
416
  className: w(["a-label__helper", s]),
405
417
  ...o,
406
418
  children: ["(", e, ")"]
407
- }) : null, Ms = ["a-label"], ns = ({ children: e, inline: s = !1, htmlFor: o, className: t, ...i }) => {
419
+ }) : null, Ms = ["a-label"], ns = ({ children: e, isInline: s = !1, htmlFor: o, className: t, ...c }) => {
408
420
  const r = [...[...Ms, s ? "" : "a-label--heading"], t];
409
- return e ? c("label", {
410
- ...i,
421
+ return e ? i("label", {
422
+ ...c,
411
423
  className: w(r),
412
424
  htmlFor: o,
413
425
  children: e
@@ -416,35 +428,41 @@ const Yn = ({ className: e, children: s, ...o }) => s ? c("div", {
416
428
  success: "m-form-field--checkbox-success",
417
429
  warning: "m-form-field--checkbox-warning",
418
430
  error: "m-form-field--checkbox-error"
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
- b?.(x);
422
- }, [b]), N = [...Ds, l ? "m-form-field--lg-target" : "", h ? Ps[h] : "", o];
423
- return v("div", {
424
- className: w(N),
425
- children: [c("input", {
426
- id: e,
427
- type: "checkbox",
428
- checked: n,
429
- "aria-checked": n,
430
- "aria-labelledby": `${e}-label`,
431
- name: u ?? e,
432
- ref: p,
433
- disabled: d,
434
- onChange: _,
435
- ...y,
436
- className: w(["a-checkbox", t])
431
+ }, Zn = ({ id: e, label: s, className: o, inputClassName: t, labelClassName: c = "", checked: n, defaultChecked: r, helperText: p, inputRef: d, disabled: l = !1, isLarge: a = !1, isLabelInline: f = !0, name: b, onChange: g, status: y, ..._ }) => {
432
+ const L = n !== void 0, k = ze((H) => {
433
+ g?.(H);
434
+ }, [g]), x = [...Ds, a ? "m-form-field--lg-target" : "", y ? Ps[y] : "", o], O = {
435
+ ..._,
436
+ id: e,
437
+ type: "checkbox",
438
+ "aria-labelledby": `${e}-label`,
439
+ name: b ?? e,
440
+ ref: d,
441
+ disabled: l,
442
+ onChange: k,
443
+ "data-testid": `${e}-input`,
444
+ className: w(["a-checkbox", t])
445
+ };
446
+ return L ? Object.assign(O, {
447
+ checked: n,
448
+ "aria-checked": n
449
+ }) : Object.assign(O, {
450
+ defaultChecked: r ?? !1
451
+ }), v("div", {
452
+ className: w(x),
453
+ children: [i("input", {
454
+ ...O
437
455
  }), v(ns, {
438
456
  id: `${e}-label`,
439
- className: i,
457
+ className: c,
440
458
  htmlFor: e,
441
- inline: a,
442
- children: [s, c(ss, {
443
- children: r
459
+ isInline: f,
460
+ children: [s, i(ss, {
461
+ children: p
444
462
  })]
445
463
  })]
446
464
  });
447
- }, Kn = ({ className: e = "", ...s }) => c("div", {
465
+ }, Kn = ({ className: e = "", ...s }) => i("div", {
448
466
  className: `content__line ${e}`,
449
467
  ...s
450
468
  }), We = {
@@ -497,20 +515,20 @@ function Us(e) {
497
515
  const Y = "data-js-hook", Vs = "behavior_", Qs = "state_";
498
516
  function ce() {
499
517
  const e = {};
500
- function s(i, n) {
501
- return {}.hasOwnProperty.call(e, i) ? e[i].push(n) : e[i] = [n], this;
518
+ function s(c, n) {
519
+ return {}.hasOwnProperty.call(e, c) ? e[c].push(n) : e[c] = [n], this;
502
520
  }
503
- function o(i, n) {
504
- if (!{}.hasOwnProperty.call(e, i))
521
+ function o(c, n) {
522
+ if (!{}.hasOwnProperty.call(e, c))
505
523
  return this;
506
- const r = e[i].indexOf(n);
507
- return r !== -1 && e[i].splice(r, 1), this;
524
+ const r = e[c].indexOf(n);
525
+ return r !== -1 && e[c].splice(r, 1), this;
508
526
  }
509
- function t(i, n) {
510
- if (!{}.hasOwnProperty.call(e, i))
527
+ function t(c, n) {
528
+ if (!{}.hasOwnProperty.call(e, c))
511
529
  return this;
512
530
  n = n || {};
513
- const r = e[i];
531
+ const r = e[c];
514
532
  for (let p = 0, d = r.length; p < d; p++)
515
533
  r[p].call(this, n);
516
534
  return this;
@@ -582,55 +600,55 @@ function Zs() {
582
600
  }
583
601
  function I(e, s, o) {
584
602
  const t = s;
585
- let i = e;
603
+ let c = e;
586
604
  if (!o) throw new Error("Child transition argument must be defined!");
587
605
  const n = o;
588
- let r, p, d, l = !1, a = !1, u = !1;
606
+ let r, p, d, l = !1, a = !1, f = !1;
589
607
  if (typeof t.CSS_PROPERTY > "u" || typeof t.BASE_CLASS > "u")
590
608
  throw new Error(
591
609
  "Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition."
592
610
  );
593
611
  function b() {
594
- p && l ? (i.addEventListener(p, d), n.dispatchEvent(I.BEGIN_EVENT, {
612
+ p && l ? (c.addEventListener(p, d), n.dispatchEvent(I.BEGIN_EVENT, {
595
613
  target: n,
596
614
  type: I.BEGIN_EVENT
597
- }), i.classList.add(I.ANIMATING_CLASS), a = !0) : (n.dispatchEvent(I.BEGIN_EVENT, {
615
+ }), c.classList.add(I.ANIMATING_CLASS), a = !0) : (n.dispatchEvent(I.BEGIN_EVENT, {
598
616
  target: n,
599
617
  type: I.BEGIN_EVENT
600
618
  }), d());
601
619
  }
602
- function h() {
603
- i.removeEventListener(p, d);
620
+ function g() {
621
+ c.removeEventListener(p, d);
604
622
  }
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, {
623
+ function y(N) {
624
+ return N && N.propertyName !== t.CSS_PROPERTY ? !1 : (g(), c.classList.remove(I.ANIMATING_CLASS), n.dispatchEvent(I.END_EVENT, {
607
625
  target: n,
608
626
  type: I.END_EVENT
609
627
  }), a = !1, !0);
610
628
  }
611
629
  function _() {
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]);
630
+ let N;
631
+ for (N in t)
632
+ ({}).hasOwnProperty.call(t, N) && t[N] !== t.BASE_CLASS && c.classList.contains(t[N]) && c.classList.remove(t[N]);
615
633
  }
616
- function N() {
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
- }
619
- function x() {
620
- N(), _(), i.classList.remove(t.BASE_CLASS);
634
+ function L() {
635
+ a && (c.style.webkitTransitionDuration = "0", c.style.mozTransitionDuration = "0", c.style.oTransitionDuration = "0", c.style.transitionDuration = "0", c.removeEventListener(p, d), d(), c.style.webkitTransitionDuration = "", c.style.mozTransitionDuration = "", c.style.oTransitionDuration = "", c.style.transitionDuration = "");
621
636
  }
622
637
  function k() {
623
- i.classList.remove(I.NO_ANIMATION_CLASS), l = !0;
638
+ L(), _(), c.classList.remove(t.BASE_CLASS);
624
639
  }
625
- function B() {
626
- i.classList.add(I.NO_ANIMATION_CLASS), l = !1;
640
+ function x() {
641
+ c.classList.remove(I.NO_ANIMATION_CLASS), l = !0;
627
642
  }
628
- function M(L) {
629
- if (!L) {
643
+ function O() {
644
+ c.classList.add(I.NO_ANIMATION_CLASS), l = !1;
645
+ }
646
+ function H(N) {
647
+ if (!N) {
630
648
  const z = "Element does not have TransitionEnd event. It may be null!";
631
649
  throw new Error(z);
632
650
  }
633
- let H;
651
+ let M;
634
652
  const D = {
635
653
  WebkitTransition: "webkitTransitionEnd",
636
654
  MozTransition: "transitionend",
@@ -639,26 +657,26 @@ function I(e, s, o) {
639
657
  };
640
658
  let q;
641
659
  for (q in D)
642
- if ({}.hasOwnProperty.call(D, q) && typeof L.style[q] < "u") {
643
- H = D[q];
660
+ if ({}.hasOwnProperty.call(D, q) && typeof N.style[q] < "u") {
661
+ M = D[q];
644
662
  break;
645
663
  }
646
- return H;
664
+ return M;
647
665
  }
648
- function S(L) {
649
- x(), k(), i = L, i.classList.add(t.BASE_CLASS), p = M(i);
666
+ function S(N) {
667
+ k(), x(), c = N, c.classList.add(t.BASE_CLASS), p = H(c);
650
668
  }
651
- function A(L) {
652
- if (l = !i.classList.contains(I.NO_ANIMATION_CLASS), d = y.bind(this), S(i), !L)
669
+ function A(N) {
670
+ if (l = !c.classList.contains(I.NO_ANIMATION_CLASS), d = y.bind(this), S(c), !N)
653
671
  throw new Error(
654
672
  "Transition needs to be passed an initial CSS class on initialization!"
655
673
  );
656
- return i.classList.add(L), this;
674
+ return c.classList.add(N), this;
657
675
  }
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);
676
+ function B(N) {
677
+ return f || (_(), f = !0), c.classList.contains(N) ? !1 : (g(), c.classList.remove(r), r = N, b(), c.classList.add(r), !0);
660
678
  }
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;
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;
662
680
  }
663
681
  I.BEGIN_EVENT = "transitionbegin";
664
682
  I.END_EVENT = "transitionend";
@@ -666,52 +684,52 @@ I.NO_ANIMATION_CLASS = "u-no-animation";
666
684
  I.ANIMATING_CLASS = "u-is-animating";
667
685
  const ie = Vs + "flyout-menu", Ks = "[" + Y + "=" + ie;
668
686
  function xe(e, s = !0) {
669
- const o = qe(e, ie), t = k(e), i = qe(e, ie + "_content");
687
+ const o = qe(e, ie), t = x(e), c = qe(e, ie + "_content");
670
688
  let n = 0;
671
689
  const r = 0, p = 1, d = 2, l = 3;
672
- let a, u, b;
673
- const h = z.bind(this), y = q.bind(this);
674
- let _, N = !0, x = !1;
675
- function k(m) {
676
- const f = [], g = m.querySelectorAll(`${Ks}_trigger]`);
677
- let E, C, $;
678
- for (let R = g.length >>> 0; R--; ) {
679
- for ($ = !1, E = g[R], C = E.parentElement; C !== m; )
680
- C.getAttribute(Y) && C.getAttribute(Y).split(" ").indexOf(ie) !== -1 ? ($ = !0, C = m) : C = C.parentElement;
681
- $ || f.unshift(g[R]);
690
+ let a, f, b;
691
+ const g = z.bind(this), y = q.bind(this);
692
+ let _, L = !0, k = !1;
693
+ function x(m) {
694
+ const u = [], h = m.querySelectorAll(`${Ks}_trigger]`);
695
+ let E, T, $;
696
+ for (let R = h.length >>> 0; R--; ) {
697
+ for ($ = !1, E = h[R], T = E.parentElement; T !== m; )
698
+ T.getAttribute(Y) && T.getAttribute(Y).split(" ").indexOf(ie) !== -1 ? ($ = !0, T = m) : T = T.parentElement;
699
+ $ || u.unshift(h[R]);
682
700
  }
683
- return f;
701
+ return u;
684
702
  }
685
- function B(m = !1) {
686
- return n = m ? l : r, t.forEach((f) => {
687
- M("expanded", f, m), f.addEventListener("click", L.bind(this)), f.addEventListener("touchstart", S, {
703
+ function O(m = !1) {
704
+ return n = m ? l : r, t.forEach((u) => {
705
+ H("expanded", u, m), u.addEventListener("click", N.bind(this)), u.addEventListener("touchstart", S, {
688
706
  passive: !0
689
- }), f.addEventListener("mouseover", A.bind(this)), f.addEventListener("mouseout", O.bind(this));
690
- }), i.setAttribute("data-open", m ? "true" : "false"), s && !m && i.setAttribute("hidden", ""), ue(), this;
707
+ }), u.addEventListener("mouseover", A.bind(this)), u.addEventListener("mouseout", B.bind(this));
708
+ }), c.setAttribute("data-open", m ? "true" : "false"), s && !m && c.setAttribute("hidden", ""), ue(), this;
691
709
  }
692
- function M(m, f, g) {
693
- const E = String(g);
694
- return f.setAttribute("aria-" + m, E), E;
710
+ function H(m, u, h) {
711
+ const E = String(h);
712
+ return u.setAttribute("aria-" + m, E), E;
695
713
  }
696
714
  function S() {
697
- x = !0;
715
+ k = !0;
698
716
  }
699
717
  function A(m) {
700
- N || (x || this.dispatchEvent("triggerover", {
718
+ L || (k || this.dispatchEvent("triggerover", {
701
719
  target: this,
702
720
  trigger: m.target,
703
721
  type: "triggerover"
704
- }), x = !1);
722
+ }), k = !1);
705
723
  }
706
- function O(m) {
707
- N || this.dispatchEvent("triggerout", {
724
+ function B(m) {
725
+ L || this.dispatchEvent("triggerout", {
708
726
  target: this,
709
727
  trigger: m.target,
710
728
  type: "triggerout"
711
729
  });
712
730
  }
713
- function L(m) {
714
- if (!N)
731
+ function N(m) {
732
+ if (!L)
715
733
  switch (this.dispatchEvent("triggerclick", {
716
734
  target: this,
717
735
  trigger: m.target,
@@ -727,68 +745,68 @@ function xe(e, s = !0) {
727
745
  break;
728
746
  }
729
747
  }
730
- function H() {
748
+ function M() {
731
749
  if (a?.halt(), n === d || n === l) return this;
732
- if (n = d, s && i.removeAttribute("hidden"), this.dispatchEvent("expandbegin", { target: this, type: "expandbegin" }), !u || !b)
750
+ if (n = d, s && c.removeAttribute("hidden"), this.dispatchEvent("expandbegin", { target: this, type: "expandbegin" }), !f || !b)
733
751
  return y(), this;
734
752
  const m = a?.isAnimated();
735
- return m && a.addEventListener(I.END_EVENT, y), u(), m || y(), this;
753
+ return m && a.addEventListener(I.END_EVENT, y), f(), m || y(), this;
736
754
  }
737
755
  function D() {
738
756
  if (a?.halt(), n === p || n === r) return this;
739
- for (let f = 0, g = t.length; f < g; f++)
740
- M("expanded", t[f], !1);
741
- if (i.setAttribute("data-open", "false"), n = p, this.dispatchEvent("collapsebegin", {
757
+ for (let u = 0, h = t.length; u < h; u++)
758
+ H("expanded", t[u], !1);
759
+ if (c.setAttribute("data-open", "false"), n = p, this.dispatchEvent("collapsebegin", {
742
760
  target: this,
743
761
  type: "collapsebegin"
744
- }), !b || !u)
745
- return h(), this;
762
+ }), !b || !f)
763
+ return g(), this;
746
764
  const m = a?.isAnimated();
747
765
  return m && a.addEventListener(
748
766
  I.END_EVENT,
749
- h
750
- ), b(), m || h(), this;
767
+ g
768
+ ), b(), m || g(), this;
751
769
  }
752
770
  function q() {
753
- n = l, i.setAttribute("data-open", "true"), a && a.removeEventListener(
771
+ n = l, c.setAttribute("data-open", "true"), a && a.removeEventListener(
754
772
  I.END_EVENT,
755
773
  y
756
774
  ), this.dispatchEvent("expandend", { target: this, type: "expandend" });
757
- for (let m = 0, f = t.length; m < f; m++)
758
- M("expanded", t[m], !0);
775
+ for (let m = 0, u = t.length; m < u; m++)
776
+ H("expanded", t[m], !0);
759
777
  }
760
778
  function z() {
761
- n = r, s && i.setAttribute("hidden", ""), a && a.removeEventListener(
779
+ n = r, s && c.setAttribute("hidden", ""), a && a.removeEventListener(
762
780
  I.END_EVENT,
763
- h
781
+ g
764
782
  ), this.dispatchEvent("collapseend", { target: this, type: "collapseend" });
765
783
  }
766
- function fe(m, f, g) {
767
- a = m, f && f !== b && (b = f), g && g !== u && (u = g);
784
+ function fe(m, u, h) {
785
+ a = m, u && u !== b && (b = u), h && h !== f && (f = h);
768
786
  }
769
787
  function ke() {
770
788
  a && a.remove();
771
789
  let m;
772
- a = m, u = m, b = m;
790
+ a = m, f = m, b = m;
773
791
  }
774
792
  function Ae() {
775
793
  return {
776
794
  container: o,
777
- content: i,
795
+ content: c,
778
796
  trigger: t
779
797
  };
780
798
  }
781
799
  function ue() {
782
- return N && (N = !1), !N;
800
+ return L && (L = !1), !L;
783
801
  }
784
802
  function Ce() {
785
- return N || (N = !0), N;
803
+ return L || (L = !0), L;
786
804
  }
787
805
  function Te(m) {
788
806
  return _ = m, this;
789
807
  }
790
808
  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;
809
+ return this.addEventListener = K.addEventListener, this.removeEventListener = K.removeEventListener, this.dispatchEvent = K.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;
792
810
  }
793
811
  const $e = "transitiondir", X = {
794
812
  CSS_PROPERTY: "max-height",
@@ -800,18 +818,18 @@ const $e = "transitiondir", X = {
800
818
  };
801
819
  function U(e) {
802
820
  const s = this, o = new ce(), t = new I(e, X, this);
803
- let i = 0;
821
+ let c = 0;
804
822
  function n() {
805
823
  const _ = e.scrollHeight + "px";
806
824
  e.style.maxHeight = _, e.style.bottom = "auto", e.style.top = "auto";
807
825
  }
808
826
  function r() {
809
- const y = e.getBoundingClientRect(), _ = window.innerHeight - y.top, N = y.top, x = _ <= 140 ? "up" : "down";
827
+ const y = e.getBoundingClientRect(), _ = window.innerHeight - y.top, L = y.top, k = _ <= 140 ? "up" : "down";
810
828
  return {
811
829
  rect: y,
812
830
  distanceToBottom: _,
813
- distanceToTop: N,
814
- dir: x
831
+ distanceToTop: L,
832
+ dir: k
815
833
  };
816
834
  }
817
835
  function p() {
@@ -823,48 +841,48 @@ function U(e) {
823
841
  }), this;
824
842
  }
825
843
  function l() {
826
- return n(), t.applyClass(X.MH_DEFAULT), (!i || e.scrollHeight > i) && (i = e.scrollHeight), this;
844
+ return n(), t.applyClass(X.MH_DEFAULT), (!c || e.scrollHeight > c) && (c = e.scrollHeight), this;
827
845
  }
828
846
  function a() {
829
- return n(), t.applyClass(X.MH_SUMMARY), i = e.scrollHeight, this;
847
+ return n(), t.applyClass(X.MH_SUMMARY), c = e.scrollHeight, this;
830
848
  }
831
- function u() {
849
+ function f() {
832
850
  n(), e.style.top = "100%";
833
851
  const y = r();
834
852
  let _ = 30;
835
- const N = 2;
836
- let x = e.scrollHeight + _ < y.distanceToBottom ? `${e.scrollHeight + N}px` : `${y.distanceToBottom - _}px`;
853
+ const L = 2;
854
+ let k = e.scrollHeight + _ < y.distanceToBottom ? `${e.scrollHeight + L}px` : `${y.distanceToBottom - _}px`;
837
855
  if (y.dir === "up") {
838
- const k = e.parentElement.offsetHeight;
839
- _ += k, e.style.bottom = `${k - N}px`, x = e.scrollHeight + _ < y.distanceToTop ? `${e.scrollHeight + N}px` : `${y.distanceToTop - _}px`, e.style.top = "unset";
856
+ const x = e.parentElement.offsetHeight;
857
+ _ += x, e.style.bottom = `${x - L}px`, k = e.scrollHeight + _ < y.distanceToTop ? `${e.scrollHeight + L}px` : `${y.distanceToTop - _}px`, e.style.top = "unset";
840
858
  }
841
- return e.style.maxHeight = x, t.applyClass(X.MH_DYNAMIC), s.dispatchEvent($e, {
859
+ return e.style.maxHeight = k, t.applyClass(X.MH_DYNAMIC), s.dispatchEvent($e, {
842
860
  target: s,
843
861
  type: $e,
844
862
  dir: y.dir
845
- }), i = e.scrollHeight, this;
863
+ }), c = e.scrollHeight, this;
846
864
  }
847
865
  function b() {
848
- return t.applyClass(X.MH_ZERO), i = e.scrollHeight, this;
866
+ return t.applyClass(X.MH_ZERO), c = e.scrollHeight, this;
849
867
  }
850
- function h() {
868
+ function g() {
851
869
  return e.style.maxHeight = "", t.remove();
852
870
  }
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;
871
+ 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 = g, this.init = d, this.maxHeightDefault = l, this.maxHeightSummary = a, this.maxHeightZero = b, this.maxHeightDynamic = f, this;
854
872
  }
855
873
  U.CLASSES = X;
856
874
  const J = "o-expandable";
857
875
  function G(e) {
858
876
  const s = le(e, J);
859
- let o, t, i, n, r;
877
+ let o, t, c, n, r;
860
878
  function p() {
861
879
  if (!oe(s))
862
880
  return this;
863
- o = s.querySelector(`.${J}__header`), t = s.querySelector(`.${J}__content`), i = s.querySelector(`.${J}__label`);
881
+ o = s.querySelector(`.${J}__header`), t = s.querySelector(`.${J}__content`), c = s.querySelector(`.${J}__label`);
864
882
  const a = s.classList.contains(`${J}--onload-open`);
865
883
  W(s, "behavior_flyout-menu"), W(o, "behavior_flyout-menu_trigger"), W(t, "behavior_flyout-menu_content");
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(
884
+ const f = a ? U.CLASSES.MH_DEFAULT : U.CLASSES.MH_ZERO;
885
+ return n = new U(t).init(f), a || t.classList.add("u-hidden"), r = new xe(s), r.setTransition(
868
886
  n,
869
887
  n.maxHeightZero,
870
888
  n.maxHeightDefault
@@ -875,7 +893,7 @@ function G(e) {
875
893
  }), this;
876
894
  }
877
895
  function d() {
878
- return i.textContent.trim();
896
+ return c.textContent.trim();
879
897
  }
880
898
  this.init = p, this.expand = () => r.expand(), this.collapse = () => r.collapse(), this.isExpanded = () => r.isExpanded(), this.refresh = () => r.getTransition().refresh(), this.getLabelText = d;
881
899
  const l = new ce();
@@ -886,10 +904,10 @@ G.init = (e) => me(`.${G.BASE_CLASS}`, G, e);
886
904
  const he = "o-expandable-group";
887
905
  function ve(e) {
888
906
  const s = le(e, he), o = s.classList.contains(`${he}--accordion`);
889
- let t, i;
907
+ let t, c;
890
908
  function n(p) {
891
909
  const d = p.target;
892
- i && i !== d && i.collapse(), i = d;
910
+ c && c !== d && c.collapse(), c = d;
893
911
  }
894
912
  function r(p) {
895
913
  return oe(s) ? (o && (t = p, t.forEach((d) => {
@@ -901,134 +919,147 @@ function ve(e) {
901
919
  ve.BASE_CLASS = he;
902
920
  ve.init = (e) => {
903
921
  (e || document).querySelectorAll(`.${he}`).forEach((t) => {
904
- const i = me(
922
+ const c = me(
905
923
  `.${G.BASE_CLASS}`,
906
924
  G,
907
925
  t
908
926
  );
909
- new ve(t).init(i);
927
+ new ve(t).init(c);
910
928
  });
911
929
  };
912
930
  const ee = "o-summary";
913
931
  function _e(e) {
914
- const s = le(e, ee), o = s.classList.contains(`${ee}--mobile`), t = s.querySelector(`.${ee}__content`), i = s.querySelector(`.${ee}__btn`);
932
+ const s = le(e, ee), o = s.classList.contains(`${ee}--mobile`), t = s.querySelector(`.${ee}__content`), c = s.querySelector(`.${ee}__btn`);
915
933
  let n, r, p;
916
934
  function d() {
917
935
  return oe(s) ? (window.addEventListener("load", l), this) : this;
918
936
  }
919
937
  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 U(t), n.init(
938
+ window.removeEventListener("load", l), p = !g(), W(s, "behavior_flyout-menu"), W(t, "behavior_flyout-menu_content"), W(c, "behavior_flyout-menu_trigger"), r = new xe(s, !1), n = new U(t), n.init(
921
939
  p ? U.CLASSES.MH_SUMMARY : U.CLASSES.MH_DEFAULT
922
940
  ), r.setTransition(
923
941
  n,
924
942
  n.maxHeightSummary,
925
943
  n.maxHeightDefault
926
- ), 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", u);
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);
927
945
  }
928
946
  function a(S) {
929
- !p && S.target !== i && (i.click(), s.removeEventListener("focusin", a));
947
+ !p && S.target !== c && (c.click(), s.removeEventListener("focusin", a));
930
948
  }
931
- function u(S) {
949
+ function f(S) {
932
950
  S.target.tagName !== "A" && r.isExpanded() && n.refresh();
933
951
  }
934
952
  function b() {
935
- h() ? B() : k();
953
+ g() ? O() : x();
936
954
  }
937
- function h() {
955
+ function g() {
938
956
  return o && !Us(Ws) || t.scrollHeight <= 88;
939
957
  }
940
958
  function y() {
941
959
  r.addEventListener("expandend", _);
942
960
  }
943
961
  function _() {
944
- x(), window.removeEventListener("resize", b), window.removeEventListener("orientationchange", b), r.removeEventListener("expandend", _), r.suspend(), n.remove();
945
- }
946
- function N() {
947
- i.classList.remove("u-hidden");
962
+ k(), window.removeEventListener("resize", b), window.removeEventListener("orientationchange", b), r.removeEventListener("expandend", _), r.suspend(), n.remove();
948
963
  }
949
- function x() {
950
- i.classList.add("u-hidden");
964
+ function L() {
965
+ c.classList.remove("u-hidden");
951
966
  }
952
967
  function k() {
953
- return p && (r.collapse(), n.animateOn(), N(), p = !1), !p;
968
+ c.classList.add("u-hidden");
954
969
  }
955
- function B() {
956
- return p || (n.animateOff(), r.expand(), x(), p = !0), p;
970
+ function x() {
971
+ return p && (r.collapse(), n.animateOn(), L(), p = !1), !p;
972
+ }
973
+ function O() {
974
+ return p || (n.animateOff(), r.expand(), k(), p = !0), p;
957
975
  }
958
- const M = new ce();
959
- return this.addEventListener = M.addEventListener, this.removeEventListener = M.removeEventListener, this.dispatchEvent = M.dispatchEvent, this.init = d, this;
976
+ const H = new ce();
977
+ return this.addEventListener = H.addEventListener, this.removeEventListener = H.removeEventListener, this.dispatchEvent = H.dispatchEvent, this.init = d, this;
960
978
  }
961
979
  _e.BASE_CLASS = ee;
962
980
  _e.init = (e) => me(`.${ee}`, _e, e);
963
981
  const pe = "o-summary-minimal";
964
982
  function ye(e) {
965
983
  const s = le(e, pe), o = s.querySelector(`.${pe}__content`), t = s.querySelector(`.${pe}__btn`);
966
- let i, n;
984
+ let c, n;
967
985
  function r() {
968
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;
969
987
  }
970
988
  function p() {
971
- window.removeEventListener("load", p), n = new xe(s, !1), i = new U(o), i.init(U.CLASSES.MH_SUMMARY), n.setTransition(
972
- i,
973
- i.maxHeightSummary,
974
- i.maxHeightDefault
975
- ), n.init(), s.addEventListener("focusin", d), o.addEventListener("click", l), n.collapse(), i.animateOn();
989
+ window.removeEventListener("load", p), n = new xe(s, !1), c = new U(o), c.init(U.CLASSES.MH_SUMMARY), n.setTransition(
990
+ c,
991
+ c.maxHeightSummary,
992
+ c.maxHeightDefault
993
+ ), n.init(), s.addEventListener("focusin", d), o.addEventListener("click", l), n.collapse(), c.animateOn();
976
994
  }
977
- function d(u) {
978
- u.target !== t && (t.click(), s.removeEventListener("focusin", d));
995
+ function d(f) {
996
+ f.target !== t && (t.click(), s.removeEventListener("focusin", d));
979
997
  }
980
- function l(u) {
981
- u.target.tagName !== "A" && n.isExpanded() && i.refresh();
998
+ function l(f) {
999
+ f.target.tagName !== "A" && n.isExpanded() && c.refresh();
982
1000
  }
983
1001
  const a = new ce();
984
1002
  return this.addEventListener = a.addEventListener, this.removeEventListener = a.removeEventListener, this.dispatchEvent = a.dispatchEvent, this.init = r, this;
985
1003
  }
986
1004
  ye.BASE_CLASS = pe;
987
1005
  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 }) => {
1006
+ const Gn = ({ header: e, children: s, icon: o = "", inAccordion: t = !1, isPadded: c = !1, openOnLoad: n = !1, className: r = "", ...p }) => {
989
1007
  Q(() => {
990
1008
  t || G.init();
991
1009
  }, [t]);
992
1010
  const d = ["o-expandable", r];
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", {
1011
+ return t || d.push("o-expandable--background", "o-expandable--border"), c && d.push("o-expandable--padded"), n && d.push("o-expandable--onload-open"), v("div", {
994
1012
  className: w(d),
995
1013
  ...p,
996
1014
  children: [v("button", {
997
1015
  type: "button",
998
1016
  className: "o-expandable__header",
999
1017
  title: e,
1000
- children: [o ? c("span", {
1018
+ children: [o ? i("span", {
1001
1019
  className: "o-expandable__icon",
1002
- children: c(T, {
1020
+ children: i(C, {
1003
1021
  name: o
1004
1022
  })
1005
- }) : null, c("h3", {
1023
+ }) : null, i("h3", {
1006
1024
  className: "o-expandable__label",
1007
1025
  children: e
1008
1026
  }), v("span", {
1009
1027
  className: "o-expandable__cues",
1010
- children: [c("span", {
1028
+ children: [i("span", {
1011
1029
  className: "o-expandable__cue-open",
1012
1030
  "aria-label": "Show",
1013
- children: c(T, {
1031
+ children: i(C, {
1014
1032
  name: "plus-round",
1015
1033
  isPresentational: !0
1016
1034
  })
1017
- }), c("span", {
1035
+ }), i("span", {
1018
1036
  className: "o-expandable__cue-close",
1019
1037
  "aria-label": "Hide",
1020
- children: c(T, {
1038
+ children: i(C, {
1021
1039
  name: "minus-round",
1022
1040
  isPresentational: !0
1023
1041
  })
1024
1042
  })]
1025
1043
  })]
1026
- }), c("div", {
1044
+ }), i("div", {
1027
1045
  className: "o-expandable__content",
1028
1046
  children: s
1029
1047
  })]
1030
1048
  });
1031
- }, zn = ({ groupId: e, accordion: s = !1, children: o, className: t = "", ...i }) => {
1049
+ }, zn = ({ legend: e, legendHelperText: s, children: o, isInline: t = !1, className: c, ...n }) => v("fieldset", {
1050
+ className: w("o-form__fieldset", t && "o-form__fieldset--inline", c),
1051
+ ...n,
1052
+ children: [v("legend", {
1053
+ className: "h4",
1054
+ children: [e, s && i("small", {
1055
+ className: "a-label__helper a-label__helper--block",
1056
+ children: s
1057
+ })]
1058
+ }), t ? i("div", {
1059
+ className: "o-form__fieldset-options",
1060
+ children: o
1061
+ }) : o]
1062
+ }), Xn = ({ groupId: e, accordion: s = !1, children: o, className: t = "", ...c }) => {
1032
1063
  const n = ["o-expandable-group", t];
1033
1064
  s && n.push("o-expandable-group--accordion"), Q(() => {
1034
1065
  ve.init();
@@ -1037,10 +1068,10 @@ const Gn = ({ header: e, children: s, icon: o = "", inAccordion: t = !1, isPadde
1037
1068
  inAccordion: !0,
1038
1069
  openOnLoad: p.props.openOnLoad ?? !1
1039
1070
  }) : p);
1040
- return c("div", {
1071
+ return i("div", {
1041
1072
  id: e,
1042
1073
  className: w(n),
1043
- ...i,
1074
+ ...c,
1044
1075
  children: r
1045
1076
  });
1046
1077
  }, Gs = () => v("a", {
@@ -1048,57 +1079,57 @@ const Gn = ({ header: e, children: s, icon: o = "", inAccordion: t = !1, isPadde
1048
1079
  "data-gtm_ignore": "true",
1049
1080
  "data-js-hook": "behavior_return-to-top",
1050
1081
  href: "#",
1051
- children: ["Back to top", c(T, {
1082
+ children: ["Back to top", i(C, {
1052
1083
  name: "arrow-up",
1053
1084
  isPresentational: !0
1054
1085
  })]
1055
- }), zs = () => c("div", {
1086
+ }), zs = () => i("div", {
1056
1087
  className: "o-footer__post",
1057
1088
  children: v("div", {
1058
1089
  className: "a-tagline a-tagline--large",
1059
1090
  "aria-label": "Official website of the United States government",
1060
- children: [c("span", {
1091
+ children: [i("span", {
1061
1092
  className: "u-usa-flag"
1062
1093
  }), v("div", {
1063
1094
  className: "a-tagline__text",
1064
- children: ["An official website of the ", c("span", {
1095
+ children: ["An official website of the ", i("span", {
1065
1096
  className: "u-nowrap",
1066
1097
  children: "United States government"
1067
1098
  })]
1068
1099
  })]
1069
1100
  })
1070
- }), De = (e) => e.length === 0, Xs = ({ children: e }) => De(e) ? null : c(te, {
1101
+ }), De = (e) => e.length === 0, Xs = ({ children: e }) => De(e) ? null : i(te, {
1071
1102
  className: "o-footer__nav-list m-list--links m-list--horizontal",
1072
- children: c(Me, {
1103
+ children: i(Me, {
1073
1104
  itemClassname: "m-list__link",
1074
1105
  children: e
1075
1106
  })
1076
- }), Js = ({ children: e }) => De(e) ? null : c("div", {
1107
+ }), Js = ({ children: e }) => De(e) ? null : i("div", {
1077
1108
  className: "block block--flush-top block--flush-bottom block--padded-top",
1078
- children: c("div", {
1109
+ children: i("div", {
1079
1110
  className: "m-social-media m-social-media--follow",
1080
- children: c(te, {
1111
+ children: i(te, {
1081
1112
  className: "m-social-media__icons",
1082
1113
  isUnstyled: !0,
1083
1114
  isHorizontal: !0,
1084
- children: c(Me, {
1115
+ children: i(Me, {
1085
1116
  itemClassname: "m-social-media__icon",
1086
1117
  children: e
1087
1118
  })
1088
1119
  })
1089
1120
  })
1090
- }), Oe = ({ children: e }) => De(e) ? null : c("div", {
1121
+ }), Oe = ({ children: e }) => De(e) ? null : i("div", {
1091
1122
  className: "o-footer__col",
1092
- children: c(te, {
1123
+ children: i(te, {
1093
1124
  className: "o-footer__list",
1094
- children: c(Me, {
1125
+ children: i(Me, {
1095
1126
  itemClassname: "m-list__link",
1096
1127
  children: e
1097
1128
  })
1098
1129
  })
1099
1130
  });
1100
- function en({ navLinks: e = [], socialLinks: s = [], linksCol1: o = [], linksCol2: t = [], linksCol3: i = [], className: n, ...r }) {
1101
- return c("footer", {
1131
+ function en({ navLinks: e = [], socialLinks: s = [], linksCol1: o = [], linksCol2: t = [], linksCol3: c = [], className: n, ...r }) {
1132
+ return i("footer", {
1102
1133
  className: w(["o-footer", n]),
1103
1134
  "data-js-hook": "state_atomic_init",
1104
1135
  ...r,
@@ -1106,139 +1137,139 @@ function en({ navLinks: e = [], socialLinks: s = [], linksCol1: o = [], linksCol
1106
1137
  className: "wrapper wrapper--match-content",
1107
1138
  children: [v("div", {
1108
1139
  className: "o-footer__pre",
1109
- children: [c(Gs, {}), c(Xs, {
1140
+ children: [i(Gs, {}), i(Xs, {
1110
1141
  children: e
1111
- }), c(Js, {
1142
+ }), i(Js, {
1112
1143
  children: s
1113
1144
  })]
1114
1145
  }), v("div", {
1115
1146
  className: "o-footer__middle-left",
1116
- children: [c(Oe, {
1147
+ children: [i(Oe, {
1117
1148
  children: o
1118
- }), c(Oe, {
1149
+ }), i(Oe, {
1119
1150
  children: t
1120
1151
  })]
1121
- }), c("div", {
1152
+ }), i("div", {
1122
1153
  className: "o-footer__middle-right",
1123
- children: c(Oe, {
1124
- children: i
1154
+ children: i(Oe, {
1155
+ children: c
1125
1156
  })
1126
- }), c(zs, {})]
1157
+ }), i(zs, {})]
1127
1158
  })
1128
1159
  });
1129
1160
  }
1130
- const Xn = ({ cfLink: e = "https://www.consumerfinance.gov", className: s, ...o }) => {
1131
- const t = [c("a", {
1161
+ const Jn = ({ cfLink: e = "https://www.consumerfinance.gov", className: s, ...o }) => {
1162
+ const t = [i("a", {
1132
1163
  href: `${e}/about-us/`,
1133
1164
  children: "About Us"
1134
- }, "about"), c("a", {
1165
+ }, "about"), i("a", {
1135
1166
  href: `${e}/about-us/contact-us/`,
1136
1167
  children: "Contact Us"
1137
- }, "contact"), c("a", {
1168
+ }, "contact"), i("a", {
1138
1169
  href: `${e}/about-us/careers/`,
1139
1170
  children: "Careers"
1140
- }, "careers"), c("a", {
1171
+ }, "careers"), i("a", {
1141
1172
  href: `${e}/about-us/events/`,
1142
1173
  children: "Events"
1143
- }, "events"), c("a", {
1174
+ }, "events"), i("a", {
1144
1175
  href: `${e}/enforcement/information-industry-whistleblowers/`,
1145
1176
  children: "Industry Whistleblowers"
1146
- }, "whistle"), c("a", {
1177
+ }, "whistle"), i("a", {
1147
1178
  href: `${e}/cfpb-ombudsman/`,
1148
1179
  children: "CFPB Ombudsman"
1149
- }, "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", {
1180
+ }, "ombudsman")], c = "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 = [i("a", {
1150
1181
  "aria-label": "Visit us on Facebook",
1151
- "data-pretty-href": i,
1152
- href: i,
1153
- children: c(T, {
1182
+ "data-pretty-href": c,
1183
+ href: c,
1184
+ children: i(C, {
1154
1185
  name: "facebook",
1155
1186
  isPresentational: !0,
1156
1187
  withBg: !0
1157
1188
  })
1158
- }, "facebook"), c("a", {
1189
+ }, "facebook"), i("a", {
1159
1190
  "aria-label": "Visit us on Twitter",
1160
1191
  "data-pretty-href": r,
1161
1192
  href: r,
1162
- children: c(T, {
1193
+ children: i(C, {
1163
1194
  name: "x",
1164
1195
  isPresentational: !0,
1165
1196
  withBg: !0
1166
1197
  })
1167
- }, "twitter"), c("a", {
1198
+ }, "twitter"), i("a", {
1168
1199
  "aria-label": "Visit us on LinkedIn",
1169
1200
  "data-pretty-href": n,
1170
1201
  href: n,
1171
- children: c(T, {
1202
+ children: i(C, {
1172
1203
  name: "linkedin",
1173
1204
  isPresentational: !0,
1174
1205
  withBg: !0
1175
1206
  })
1176
- }, "linkedin"), c("a", {
1207
+ }, "linkedin"), i("a", {
1177
1208
  "aria-label": "Visit us on YouTube",
1178
1209
  "data-pretty-href": p,
1179
1210
  href: p,
1180
- children: c(T, {
1211
+ children: i(C, {
1181
1212
  name: "youtube",
1182
1213
  alt: "Visit us on YouTube",
1183
1214
  isPresentational: !0,
1184
1215
  withBg: !0
1185
1216
  })
1186
- }, "youtube"), c("a", {
1217
+ }, "youtube"), i("a", {
1187
1218
  "aria-label": "Visit us on Flickr",
1188
1219
  "data-pretty-href": d,
1189
1220
  href: d,
1190
- children: c(T, {
1221
+ children: i(C, {
1191
1222
  name: "flickr",
1192
1223
  alt: "Visit us on Flickr",
1193
1224
  isPresentational: !0,
1194
1225
  withBg: !0
1195
1226
  })
1196
- }, "flickr")], a = [c("a", {
1227
+ }, "flickr")], a = [i("a", {
1197
1228
  href: `${e}/foia-requests/`,
1198
1229
  children: "FOIA"
1199
- }, "foia"), c("a", {
1230
+ }, "foia"), i("a", {
1200
1231
  href: `${e}/privacy/`,
1201
1232
  children: "Privacy"
1202
- }, "privacy"), c("a", {
1233
+ }, "privacy"), i("a", {
1203
1234
  href: `${e}/privacy/website-privacy-policy/`,
1204
1235
  children: "Website Privacy Policy & Legal Notices"
1205
- }, "privacy-policy"), c("a", {
1236
+ }, "privacy-policy"), i("a", {
1206
1237
  href: `${e}/data/`,
1207
1238
  children: "Data"
1208
- }, "data"), c("a", {
1239
+ }, "data"), i("a", {
1209
1240
  href: `${e}/open-government/`,
1210
1241
  children: "Open Government"
1211
- }, "open-government"), c("a", {
1242
+ }, "open-government"), i("a", {
1212
1243
  href: `${e}/open-government/information-quality-guidelines/`,
1213
1244
  children: "Information Quality Guidelines"
1214
- }, "info-quality")], u = [c("a", {
1245
+ }, "info-quality")], f = [i("a", {
1215
1246
  href: `${e}/about-us/diversity-and-inclusion/`,
1216
1247
  children: "Diversity & Inclusion"
1217
- }, "dei"), c("a", {
1248
+ }, "dei"), i("a", {
1218
1249
  href: `${e}/administrative-adjudication-proceedings/`,
1219
1250
  children: "Administrative Adjudication"
1220
- }, "adjudication"), c("a", {
1251
+ }, "adjudication"), i("a", {
1221
1252
  href: `${e}/plain-writing/`,
1222
1253
  children: "Plain Writing"
1223
- }, "writing"), c("a", {
1254
+ }, "writing"), i("a", {
1224
1255
  href: `${e}/accessibility/`,
1225
1256
  children: "Accessibility"
1226
- }, "accessibility"), c("a", {
1257
+ }, "accessibility"), i("a", {
1227
1258
  href: `${e}/office-civil-rights/`,
1228
1259
  children: "Office of Civil Rights"
1229
- }, "civ-rights"), c("a", {
1260
+ }, "civ-rights"), i("a", {
1230
1261
  href: `${e}/office-civil-rights/no-fear-act-cummings-act/`,
1231
1262
  children: "No FEAR Act & Cummings Act"
1232
- }, "no-fear"), c("a", {
1263
+ }, "no-fear"), i("a", {
1233
1264
  href: `${e}/tribal/`,
1234
1265
  children: "Tribal"
1235
1266
  }, "tribal")], b = [v("a", {
1236
1267
  className: "a-link a-link--icon",
1237
1268
  href: "https://usa.gov/",
1238
- children: [c("span", {
1269
+ children: [i("span", {
1239
1270
  className: "a-link__text",
1240
1271
  children: "USA.gov"
1241
- }), " ", c(T, {
1272
+ }), " ", i(C, {
1242
1273
  ariaLabel: "External link",
1243
1274
  name: "external-link",
1244
1275
  alt: "External link"
@@ -1246,75 +1277,75 @@ const Xn = ({ cfLink: e = "https://www.consumerfinance.gov", className: s, ...o
1246
1277
  }, "usa-gov"), v("a", {
1247
1278
  className: "a-link a-link--icon",
1248
1279
  href: "https://oig.federalreserve.gov/",
1249
- children: [c("span", {
1280
+ children: [i("span", {
1250
1281
  className: "a-link__text",
1251
1282
  children: "Office of Inspector General"
1252
- }), " ", c(T, {
1283
+ }), " ", i(C, {
1253
1284
  ariaLabel: "External link",
1254
1285
  name: "external-link",
1255
1286
  alt: "External link"
1256
1287
  })]
1257
1288
  }, "inspector")];
1258
- return c(en, {
1289
+ return i(en, {
1259
1290
  ...o,
1260
1291
  className: s,
1261
1292
  navLinks: t,
1262
1293
  socialLinks: l,
1263
1294
  linksCol1: a,
1264
- linksCol2: u,
1295
+ linksCol2: f,
1265
1296
  linksCol3: b
1266
1297
  });
1267
1298
  };
1268
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 || {});
1269
1300
  function sn({ width: e = 1, children: s, className: o = "", ...t }) {
1270
- const i = ["col", `col-${e}`, o];
1271
- return c("div", {
1272
- className: w(i),
1301
+ const c = ["col", `col-${e}`, o];
1302
+ return i("div", {
1303
+ className: w(c),
1273
1304
  role: "gridcell",
1274
1305
  ...t,
1275
1306
  children: s
1276
1307
  });
1277
1308
  }
1278
1309
  function nn({ children: e, className: s, ...o }) {
1279
- return c("div", {
1310
+ return i("div", {
1280
1311
  className: w(["row", s]),
1281
1312
  role: "row",
1282
1313
  ...o,
1283
1314
  children: e
1284
1315
  });
1285
1316
  }
1286
- function on({ children: e, width: s = Pe.Full, demo: o, center: t, className: i, ...n }) {
1287
- const r = [`grid cols-${s}`, i];
1288
- return o && r.push("demo"), t && r.push("centered"), c("div", {
1317
+ function on({ children: e, width: s = Pe.Full, demo: o, center: t, className: c, ...n }) {
1318
+ const r = [`grid cols-${s}`, c];
1319
+ return o && r.push("demo"), t && r.push("centered"), i("div", {
1289
1320
  className: w(r),
1290
1321
  role: "grid",
1291
1322
  ...n,
1292
1323
  children: e
1293
1324
  });
1294
1325
  }
1295
- const Jn = {
1326
+ const eo = {
1296
1327
  Column: sn,
1297
1328
  Row: nn,
1298
1329
  Width: Pe,
1299
1330
  Wrapper: on
1300
1331
  }, Ee = ({ type: e = "1", children: s, className: o, ...t }) => {
1301
- let i;
1332
+ let c;
1302
1333
  const n = [o];
1303
- return e === "slug" ? (n.push("m-slug-header"), c("header", {
1334
+ return e === "slug" ? (n.push("m-slug-header"), i("header", {
1304
1335
  className: w(n),
1305
1336
  ...t,
1306
- children: c("h2", {
1337
+ children: i("h2", {
1307
1338
  className: "m-slug-header_heading",
1308
1339
  children: s
1309
1340
  })
1310
- })) : (e === "display" ? (i = "h1", n.push("superheading")) : e === "eyebrow" ? (i = "div", n.push("h5 eyebrow")) : i = `h${e}`, c(i, {
1341
+ })) : (e === "display" ? (c = "h1", n.push("superheading")) : e === "eyebrow" ? (c = "div", n.push("h5 eyebrow")) : c = `h${e}`, i(c, {
1311
1342
  ...t,
1312
1343
  className: w(n),
1313
1344
  children: s
1314
1345
  }));
1315
- }, tn = ({ image: e, altText: s }) => e ? c("div", {
1346
+ }, tn = ({ image: e, altText: s }) => e ? i("div", {
1316
1347
  className: "m-hero__image-wrapper",
1317
- children: c("img", {
1348
+ children: i("img", {
1318
1349
  src: e,
1319
1350
  alt: s,
1320
1351
  className: "m-hero__image"
@@ -1337,14 +1368,14 @@ const Jn = {
1337
1368
  );`);
1338
1369
  }, [o, e, s]), o;
1339
1370
  };
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 = {
1371
+ function so({ backgroundColor: e, heading: s, headingLevel: o = "h1", image: t, imageAltText: c = "hero image", imageIsPhoto: n, is5050: r, isJumbo: p, isKnockout: d, subheading: l, subheadingLevel: a = "p", textColor: f, className: b, ...g }) {
1372
+ const _ = cn(t, n ?? p ?? r), L = {
1342
1373
  backgroundColor: e
1343
- }, x = {
1344
- color: u
1345
- }, k = ["m-hero", b];
1346
- p && k.push("m-hero--jumbo"), r && k.push("m-hero--50-50"), d && k.push("m-hero--knockout"), n && k.push("m-hero--overlay");
1347
- const B = {
1374
+ }, k = {
1375
+ color: f
1376
+ }, x = ["m-hero", b];
1377
+ p && x.push("m-hero--jumbo"), r && x.push("m-hero--50-50"), d && x.push("m-hero--knockout"), n && x.push("m-hero--overlay");
1378
+ const O = {
1348
1379
  h1: "1",
1349
1380
  h2: "2",
1350
1381
  h3: "3",
@@ -1354,92 +1385,92 @@ function eo({ backgroundColor: e, heading: s, headingLevel: o = "h1", image: t,
1354
1385
  eyebrow: "eyebrow",
1355
1386
  slug: "slug"
1356
1387
  };
1357
- return c("div", {
1358
- className: w(k),
1359
- style: N,
1360
- ...h,
1388
+ return i("div", {
1389
+ className: w(x),
1390
+ style: L,
1391
+ ...g,
1361
1392
  children: v("div", {
1362
1393
  className: "m-hero__wrapper",
1363
1394
  ref: _,
1364
1395
  children: [v("div", {
1365
1396
  className: "m-hero__text",
1366
- style: x,
1367
- children: [c(Ee, {
1397
+ style: k,
1398
+ children: [i(Ee, {
1368
1399
  className: "m-hero__heading",
1369
- type: B[o],
1400
+ type: O[o],
1370
1401
  children: s
1371
- }), a === "p" ? c("p", {
1402
+ }), a === "p" ? i("p", {
1372
1403
  className: "m-hero__subhead",
1373
1404
  children: l
1374
- }) : c(Ee, {
1405
+ }) : i(Ee, {
1375
1406
  className: "m-hero__subhead",
1376
- type: B[a],
1407
+ type: O[a],
1377
1408
  children: l
1378
1409
  })]
1379
- }), c(tn, {
1410
+ }), i(tn, {
1380
1411
  image: t,
1381
- altText: i
1412
+ altText: c
1382
1413
  })]
1383
1414
  })
1384
1415
  });
1385
1416
  }
1386
- const rn = ({ children: e, flushBottom: s, flushTopOnSmall: o, flushAllOnSmall: t, ...i }) => {
1417
+ const rn = ({ children: e, flushBottom: s, flushTopOnSmall: o, flushAllOnSmall: t, ...c }) => {
1387
1418
  const n = ["content__main"];
1388
- 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", {
1419
+ return s && n.push("content--flush-bottom"), o && n.push("content--flush-top-on-small"), t && n.push("content--flush-all-on-small"), i("div", {
1389
1420
  className: w(n),
1390
- ...i,
1421
+ ...c,
1391
1422
  children: e
1392
1423
  });
1393
1424
  }, pn = ({ children: e, classes: s = "", id: o = "main", layout: t = "2-1" }) => {
1394
- const i = ["content", `content--${t}`, s];
1395
- return c("main", {
1425
+ const c = ["content", `content--${t}`, s];
1426
+ return i("main", {
1396
1427
  id: o,
1397
- className: w(i),
1428
+ className: w(c),
1398
1429
  role: "main",
1399
1430
  children: e
1400
1431
  });
1401
- }, dn = ({ children: e, flushBottom: s, flushTopOnSmall: o, flushAllOnSmall: t, ...i }) => {
1432
+ }, dn = ({ children: e, flushBottom: s, flushTopOnSmall: o, flushAllOnSmall: t, ...c }) => {
1402
1433
  const n = ["sidebar", "content__sidebar", "o-sidebar-content"];
1403
- 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", {
1434
+ return s && n.push("content--flush-bottom"), o && n.push("content--flush-top-on-small"), t && n.push("content--flush-all-on-small"), i("aside", {
1404
1435
  className: w(n),
1405
- ...i,
1436
+ ...c,
1406
1437
  children: e
1407
1438
  });
1408
- }, an = ({ children: e, ...s }) => c("div", {
1439
+ }, an = ({ children: e, ...s }) => i("div", {
1409
1440
  className: "wrapper",
1410
1441
  ...s,
1411
1442
  children: e
1412
- }), so = {
1443
+ }), no = {
1413
1444
  Content: rn,
1414
1445
  Main: pn,
1415
1446
  Sidebar: dn,
1416
1447
  Wrapper: an
1417
1448
  }, ln = "data:image/png;base64,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";
1418
1449
  function Ue({ href: e = "https://www.consumerfinance.gov" }) {
1419
- return c(re, {
1450
+ return i(re, {
1420
1451
  href: e,
1421
1452
  title: "Home",
1422
1453
  "aria-label": "Home",
1423
1454
  className: "o-header__logo",
1424
- children: c("img", {
1455
+ children: i("img", {
1425
1456
  className: "o-header__logo-img",
1426
1457
  src: ln,
1427
1458
  alt: "CFPB Logo"
1428
1459
  })
1429
1460
  });
1430
1461
  }
1431
- const mn = ({ elements: e, onLinkClick: s }) => e?.length ? c("div", {
1462
+ const mn = ({ elements: e, onLinkClick: s }) => e?.length ? i("div", {
1432
1463
  className: "links",
1433
1464
  children: e.map((o, t) => se.isValidElement(o) ? se.cloneElement(o, {
1434
1465
  ...o.props,
1435
1466
  key: o.key ?? t,
1436
- onClick: (i) => {
1437
- o.props.onClick && o.props.onClick(i), s();
1467
+ onClick: (c) => {
1468
+ o.props.onClick && o.props.onClick(c), s();
1438
1469
  }
1439
1470
  }) : o)
1440
1471
  }) : null;
1441
1472
  function fn({ links: e, href: s }) {
1442
- const [o, t] = ae(!1), i = () => {
1473
+ const [o, t] = ae(!1), c = () => {
1443
1474
  t(!o);
1444
1475
  }, n = () => {
1445
1476
  t(!1);
@@ -1447,97 +1478,96 @@ function fn({ links: e, href: s }) {
1447
1478
  p.key === "Escape" && t(!1);
1448
1479
  }, []);
1449
1480
  return e?.length ? v(ne, {
1450
- children: [o ? c("div", {
1481
+ children: [o ? i("div", {
1451
1482
  className: "menu-overlay open",
1452
- onClick: i,
1483
+ onClick: c,
1453
1484
  onKeyDown: r,
1454
1485
  tabIndex: 0,
1455
1486
  role: "button",
1456
1487
  "aria-label": "Close menu"
1457
- }) : null, c("div", {
1488
+ }) : null, i("div", {
1458
1489
  className: "o-header__content",
1459
1490
  children: v("div", {
1460
1491
  className: "navbar wrapper wrapper--match-content",
1461
1492
  children: [v("button", {
1462
1493
  className: "menu-toggle",
1463
- onClick: i,
1494
+ onClick: c,
1464
1495
  "aria-expanded": o,
1465
1496
  "aria-controls": "nav-links",
1466
1497
  type: "button",
1467
- children: [c(T, {
1498
+ children: [i(C, {
1468
1499
  name: o ? "error" : "menu"
1469
- }), c("span", {
1500
+ }), i("span", {
1470
1501
  className: "sr-only",
1471
1502
  children: o ? "Close menu" : "Open menu"
1472
1503
  })]
1473
- }), c(Ue, {
1504
+ }), i(Ue, {
1474
1505
  href: s
1475
- }), c("nav", {
1506
+ }), i("nav", {
1476
1507
  className: `nav-items ${o ? "open" : ""}`,
1477
1508
  id: "nav-links",
1478
- children: c(mn, {
1509
+ children: i(mn, {
1479
1510
  elements: e,
1480
1511
  onLinkClick: n
1481
1512
  })
1482
1513
  })]
1483
1514
  })
1484
1515
  })]
1485
- }) : c("div", {
1516
+ }) : i("div", {
1486
1517
  className: "o-header__content",
1487
- children: c("div", {
1518
+ children: i("div", {
1488
1519
  className: "navbar wrapper wrapper--match-content",
1489
- children: c(Ue, {
1520
+ children: i(Ue, {
1490
1521
  href: s
1491
1522
  })
1492
1523
  })
1493
1524
  });
1494
1525
  }
1495
- c(re, {
1526
+ i(re, {
1496
1527
  href: "/",
1497
1528
  label: "Home"
1498
- }, "home"), c(re, {
1529
+ }, "home"), i(re, {
1499
1530
  className: "nav-item active",
1500
1531
  href: "/filing",
1501
1532
  label: "Filing"
1502
- }, "filing"), c(re, {
1533
+ }, "filing"), i(re, {
1503
1534
  className: "nav-item profile",
1504
1535
  href: "/profile",
1505
1536
  label: "John Sample"
1506
- }, "profile"), c(de, {
1537
+ }, "profile"), i(de, {
1507
1538
  label: "Log Out",
1508
- asLink: !0,
1539
+ isLink: !0,
1509
1540
  onClick: () => {
1510
1541
  }
1511
1542
  }, "logout");
1512
- function no({ links: e, href: s, withBottomBorder: o = !0 }) {
1543
+ const oo = ({ links: e, href: s, withBottomBorder: o = !0 }) => {
1513
1544
  const t = ["o-header"];
1514
1545
  return o && t.push("bottom-border"), v("header", {
1515
1546
  className: w(t),
1516
- children: [c(Ts, {
1547
+ children: [i(Ts, {
1517
1548
  tagline: "An official website of the United States government"
1518
- }), c(fn, {
1549
+ }), i(fn, {
1519
1550
  links: e,
1520
1551
  href: s
1521
1552
  })]
1522
1553
  });
1523
- }
1524
- const V = () => null, j = 1, os = 20, un = () => c(de, {
1525
- asLink: !0,
1554
+ }, V = () => null, j = 1, os = 20, un = () => i(de, {
1555
+ isLink: !0,
1526
1556
  className: "m-pagination__btn-submit",
1527
1557
  id: "m-pagination__btn-submit-default",
1528
1558
  label: "Go",
1529
1559
  type: "submit"
1530
1560
  }), bn = ({ tableId: e, page: s, pageCount: o, onChange: t }) => {
1531
- const i = (r) => {
1561
+ const c = (r) => {
1532
1562
  t(Number.parseInt(r.currentTarget.value, 10));
1533
1563
  }, n = `${e}-pagination_current-page`;
1534
1564
  return v("label", {
1535
1565
  className: "m-pagination__label",
1536
1566
  htmlFor: n,
1537
- children: ["Page", c("span", {
1567
+ children: ["Page", i("span", {
1538
1568
  className: "u-visually-hidden",
1539
1569
  children: `number ${s} out`
1540
- }), c("input", {
1570
+ }), i("input", {
1541
1571
  className: "m-pagination__current-page",
1542
1572
  id: n,
1543
1573
  name: "page",
@@ -1547,47 +1577,47 @@ const V = () => null, j = 1, os = 20, un = () => c(de, {
1547
1577
  pattern: "[0-9]*",
1548
1578
  inputMode: "numeric",
1549
1579
  value: s,
1550
- onChange: i
1580
+ onChange: c
1551
1581
  }), `of ${o}`]
1552
1582
  });
1553
- }, gn = ({ tableId: e, page: s, pageCount: o, onClickPrevious: t = V, onClickNext: i = V, onClickGo: n = V, previousLabel: r = "Previous", nextLabel: p = "Next" }) => {
1583
+ }, gn = ({ tableId: e, page: s, pageCount: o, onClickPrevious: t = V, onClickNext: c = V, onClickGo: n = V, previousLabel: r = "Previous", nextLabel: p = "Next" }) => {
1554
1584
  const [d, l] = ae(s);
1555
1585
  Q(() => l(s), [s]);
1556
- const a = (h) => {
1557
- h.preventDefault();
1558
- const y = Object.fromEntries(new FormData(h.currentTarget)), _ = Number.parseInt(y.page, 10);
1586
+ const a = (g) => {
1587
+ g.preventDefault();
1588
+ const y = Object.fromEntries(new FormData(g.currentTarget)), _ = Number.parseInt(y.page, 10);
1559
1589
  _ !== s && n(_);
1560
- }, u = Je(), b = l;
1590
+ }, f = Je(), b = l;
1561
1591
  return v("nav", {
1562
1592
  className: "m-pagination",
1563
1593
  role: "navigation",
1564
1594
  "aria-label": "Pagination",
1565
- children: [c(de, {
1595
+ children: [i(de, {
1566
1596
  iconLeft: "left",
1567
1597
  className: `m-pagination__btn-prev${s === j ? " a-btn--disabled" : ""}`,
1568
1598
  onClick: t,
1569
1599
  label: r,
1570
1600
  disabled: s === j
1571
- }), c(de, {
1601
+ }), i(de, {
1572
1602
  iconRight: "right",
1573
1603
  className: `m-pagination__btn-next${s === o ? " a-btn--disabled" : ""}`,
1574
- onClick: i,
1604
+ onClick: c,
1575
1605
  label: p,
1576
1606
  disabled: s === o
1577
1607
  }), v("form", {
1578
1608
  className: "m-pagination__form",
1579
1609
  action: "#pagination_content",
1580
1610
  onSubmit: a,
1581
- children: [c(bn, {
1582
- tableId: e ?? u,
1611
+ children: [i(bn, {
1612
+ tableId: e ?? f,
1583
1613
  page: d,
1584
1614
  pageCount: o,
1585
1615
  onChange: b
1586
- }), c(un, {})]
1616
+ }), i(un, {})]
1587
1617
  })]
1588
1618
  });
1589
1619
  }, 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));
1620
+ const c = o.length, n = Math.max(Math.ceil(c / t), j), r = e && c > t, [p, d] = ae(Math.min(s, n));
1591
1621
  Q(() => {
1592
1622
  d(Math.min(p, n));
1593
1623
  }, [p, n, t]);
@@ -1599,40 +1629,40 @@ const V = () => null, j = 1, os = 20, un = () => c(de, {
1599
1629
  onClickGo: V
1600
1630
  };
1601
1631
  if (!e || !r) return [o, l];
1602
- const a = p - Ve, u = {
1632
+ const a = p - Ve, f = {
1603
1633
  page: p,
1604
1634
  pageCount: n,
1605
1635
  onClickNext: () => d(Math.min(p + Ve, n)),
1606
1636
  onClickPrevious: () => d(Math.max(a, j)),
1607
1637
  onClickGo: (_) => d(_)
1608
- }, b = a * t, h = a * t + t;
1609
- return [o.slice(b, h), u];
1638
+ }, b = a * t, g = a * t + t;
1639
+ return [o.slice(b, g), f];
1610
1640
  };
1611
1641
  function Re({ children: e, isLead: s, className: o, ...t }) {
1612
- const i = [o];
1613
- return s && i.push("lead-paragraph"), c("p", {
1642
+ const c = [o];
1643
+ return s && c.push("lead-paragraph"), i("p", {
1614
1644
  ...t,
1615
- className: w(i),
1645
+ className: w(c),
1616
1646
  children: e
1617
1647
  });
1618
1648
  }
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(" ");
1649
+ const vn = ["a-radio"], _n = ["m-form-field m-form-field--radio"], to = ({ id: e, name: s, helperText: o, className: t, disabled: c = !1, isLarge: n = !1, labelClassName: r, isLabelInline: p = !0, label: d, inputRef: l, ...a }) => {
1650
+ const f = [...vn, t].join(" "), b = [..._n, n ? "m-form-field--lg-target" : ""].join(" ");
1621
1651
  return v("div", {
1622
1652
  className: b,
1623
- children: [c("input", {
1653
+ children: [i("input", {
1624
1654
  id: e,
1625
1655
  type: "radio",
1626
1656
  name: s ?? e,
1627
- className: u,
1657
+ className: f,
1628
1658
  ref: l,
1629
- disabled: i,
1659
+ disabled: c,
1630
1660
  ...a
1631
1661
  }), v(ns, {
1632
1662
  htmlFor: e,
1633
1663
  className: r,
1634
- inline: p,
1635
- children: [d, c(ss, {
1664
+ isInline: p,
1665
+ children: [d, i(ss, {
1636
1666
  children: o
1637
1667
  })]
1638
1668
  })]
@@ -1647,70 +1677,70 @@ function wn(e, s) {
1647
1677
  return RegExp(En(s.trim()), "i").test(e);
1648
1678
  }
1649
1679
  function Sn(e, s, o) {
1650
- const t = e, i = s, n = o?.maxSelections || ts;
1680
+ const t = e, c = s, n = o?.maxSelections || ts;
1651
1681
  let r = [], p = [], d = [], l = [], a = -1;
1652
- function u(S) {
1653
- return i + "-" + S.value.trim().replace(/\s+/g, "-").toLowerCase();
1682
+ function f(S) {
1683
+ return c + "-" + S.value.trim().replace(/\s+/g, "-").toLowerCase();
1654
1684
  }
1655
1685
  function b() {
1656
1686
  return p.length >= n;
1657
1687
  }
1658
- function h(S) {
1688
+ function g(S) {
1659
1689
  let A;
1660
- const O = [];
1661
- let L = !1;
1662
- for (let H = 0, D = S.length; H < D; H++)
1663
- A = S[H], L = b() ? !1 : A.defaultSelected, O.push({
1664
- id: u(A),
1690
+ const B = [];
1691
+ let N = !1;
1692
+ for (let M = 0, D = S.length; M < D; M++)
1693
+ A = S[M], N = b() ? !1 : A.defaultSelected, B.push({
1694
+ id: f(A),
1665
1695
  value: A.value,
1666
1696
  text: A.text,
1667
- checked: L
1668
- }), L && p.push(H);
1669
- return O;
1697
+ checked: N
1698
+ }), N && p.push(M);
1699
+ return B;
1670
1700
  }
1671
1701
  function y() {
1672
- return r = h(t), this;
1702
+ return r = g(t), this;
1673
1703
  }
1674
1704
  function _(S) {
1675
1705
  return r[S].checked = !r[S].checked, p.length < n && r[S].checked ? (p.push(S), p.sort(), !0) : (r[S].checked = !1, p = p.filter(function(A) {
1676
1706
  return A !== S;
1677
1707
  }), !1);
1678
1708
  }
1679
- function N(S, A, O, L) {
1680
- return wn(A.text, L) && S.push(O), S;
1709
+ function L(S, A, B, N) {
1710
+ return wn(A.text, N) && S.push(B), S;
1681
1711
  }
1682
- function x(S) {
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);
1712
+ function k(S) {
1713
+ return Object.prototype.toString.call(S) !== "[object String]" && (S = ""), l = d, r.length > 0 && (d = r.reduce(function(A, B, N) {
1714
+ return L(A, B, N, S);
1685
1715
  }, [])), a = -1, d;
1686
1716
  }
1687
- function k(S) {
1717
+ function x(S) {
1688
1718
  return r[S];
1689
1719
  }
1690
- function B(S) {
1691
- const A = d.length, O = A === 0 ? r.length : A;
1692
- S < 0 ? a = -1 : S >= O ? a = O - 1 : a = S;
1720
+ function O(S) {
1721
+ const A = d.length, B = A === 0 ? r.length : A;
1722
+ S < 0 ? a = -1 : S >= B ? a = B - 1 : a = S;
1693
1723
  }
1694
- function M() {
1724
+ function H() {
1695
1725
  return a;
1696
1726
  }
1697
1727
  return this.init = y, this.toggleOption = _, this.getSelectedIndices = function() {
1698
1728
  return p;
1699
- }, this.isAtMaxSelections = b, this.filterIndices = x, this.clearFilter = function() {
1729
+ }, this.isAtMaxSelections = b, this.filterIndices = k, this.clearFilter = function() {
1700
1730
  return d = l = [], yn;
1701
1731
  }, this.getFilterIndices = function() {
1702
1732
  return d;
1703
1733
  }, this.getLastFilterIndices = function() {
1704
1734
  return l;
1705
- }, this.getIndex = M, this.setIndex = B, this.resetIndex = function() {
1735
+ }, this.getIndex = H, this.setIndex = O, this.resetIndex = function() {
1706
1736
  return a = -1, a;
1707
- }, this.getOption = k, this;
1737
+ }, this.getOption = x, this;
1708
1738
  }
1709
1739
  function F(e, s, o) {
1710
1740
  const t = document.createElement(e);
1711
- return Object.keys(o).forEach((i) => {
1712
- const n = o[i];
1713
- i in t ? t[i] = n : t.setAttribute(i, n);
1741
+ return Object.keys(o).forEach((c) => {
1742
+ const n = o[c];
1743
+ c in t ? t[c] = n : t.setAttribute(c, n);
1714
1744
  }), s && s.appendChild(t), t;
1715
1745
  }
1716
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", Ke = {
@@ -1722,34 +1752,34 @@ const Ln = '<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="cf
1722
1752
  };
1723
1753
  function we(e) {
1724
1754
  e.classList.add(P);
1725
- let s = le(e, P), o = !1, t, i, n, r, p, d, l, a, u, b, h;
1755
+ let s = le(e, P), o = !1, t, c, n, r, p, d, l, a, f, b, g;
1726
1756
  const y = [];
1727
1757
  let _;
1728
- function N() {
1729
- h.classList.remove("u-no-results"), h.classList.add("u-filtered");
1758
+ function L() {
1759
+ g.classList.remove("u-no-results"), g.classList.add("u-filtered");
1730
1760
  let m = n.getLastFilterIndices();
1731
- for (let f = 0, g = m.length; f < g; f++)
1732
- y[m[f]].classList.remove("u-filter-match");
1761
+ for (let u = 0, h = m.length; u < h; u++)
1762
+ y[m[u]].classList.remove("u-filter-match");
1733
1763
  m = n.getFilterIndices();
1734
- for (let f = 0, g = m.length; f < g; f++)
1735
- y[m[f]].classList.add("u-filter-match");
1764
+ for (let u = 0, h = m.length; u < h; u++)
1765
+ y[m[u]].classList.add("u-filter-match");
1736
1766
  }
1737
- function x() {
1738
- h.classList.remove("u-filtered", "u-no-results");
1739
- for (let m = 0, f = h.children.length; m < f; m++)
1740
- h.children[m].classList.remove("u-filter-match");
1767
+ function k() {
1768
+ g.classList.remove("u-filtered", "u-no-results");
1769
+ for (let m = 0, u = g.children.length; m < u; m++)
1770
+ g.children[m].classList.remove("u-filter-match");
1741
1771
  n.clearFilter();
1742
1772
  }
1743
- function k() {
1744
- h.classList.add("u-no-results"), h.classList.remove("u-filtered");
1773
+ function x() {
1774
+ g.classList.add("u-no-results"), g.classList.remove("u-filtered");
1745
1775
  }
1746
- function B(m) {
1747
- return m.length > 0 ? (N(), !0) : (k(), !1);
1776
+ function O(m) {
1777
+ return m.length > 0 ? (L(), !0) : (x(), !1);
1748
1778
  }
1749
- function M(m) {
1750
- x(), n.resetIndex();
1751
- const f = n.filterIndices(m);
1752
- B(f);
1779
+ function H(m) {
1780
+ k(), n.resetIndex();
1781
+ const u = n.filterIndices(m);
1782
+ O(u);
1753
1783
  }
1754
1784
  function S() {
1755
1785
  return d.classList.add("u-active"), b.classList.remove("u-invisible"), b.setAttribute("aria-hidden", !1), _.dispatchEvent("expandbegin", { target: _ }), _;
@@ -1757,108 +1787,108 @@ function we(e) {
1757
1787
  function A() {
1758
1788
  return d.classList.remove("u-active"), b.classList.add("u-invisible"), b.setAttribute("aria-hidden", !0), n.resetIndex(), _.dispatchEvent("collapsebegin", { target: _ }), _;
1759
1789
  }
1760
- function O(m) {
1790
+ function B(m) {
1761
1791
  m === ge ? n.setIndex(n.getIndex() + 1) : m === Qe && n.setIndex(n.getIndex() - 1);
1762
- const f = n.getIndex();
1763
- if (f > -1) {
1764
- let g = f;
1792
+ const u = n.getIndex();
1793
+ if (u > -1) {
1794
+ let h = u;
1765
1795
  const E = n.getFilterIndices();
1766
- E.length > 0 && (g = E[f]);
1767
- const $ = n.getOption(g).value, ps = h.querySelector('[data-option="' + $ + '"]').querySelector("input");
1796
+ E.length > 0 && (h = E[u]);
1797
+ const $ = n.getOption(h).value, ps = g.querySelector('[data-option="' + $ + '"]').querySelector("input");
1768
1798
  o = !0, ps.focus();
1769
1799
  } else
1770
- o = !1, u.focus();
1800
+ o = !1, f.focus();
1771
1801
  }
1772
- function L() {
1773
- u.value = "", x();
1802
+ function N() {
1803
+ f.value = "", k();
1774
1804
  }
1775
- function H(m) {
1776
- const f = m.target;
1777
- f.tagName === "BUTTON" && (m.preventDefault(), f.removeEventListener("click", H), f.querySelector("label").click());
1805
+ function M(m) {
1806
+ const u = m.target;
1807
+ u.tagName === "BUTTON" && (m.preventDefault(), u.removeEventListener("click", M), u.querySelector("label").click());
1778
1808
  }
1779
1809
  function D(m) {
1780
1810
  if (m.key === An || m.key === Be) {
1781
- const f = m.target.querySelector("label");
1782
- h.querySelector(
1783
- "#" + f.getAttribute("for")
1811
+ const u = m.target.querySelector("label");
1812
+ g.querySelector(
1813
+ "#" + u.getAttribute("for")
1784
1814
  ).click();
1785
1815
  }
1786
1816
  }
1787
1817
  function q(m) {
1788
1818
  return t + "-" + m.value.trim().replace(/[^\w]/g, "-").toLowerCase();
1789
1819
  }
1790
- function z(m, f) {
1791
- const g = q(f), E = F("li", null, {
1792
- "data-option": f.value
1793
- }), C = F("button", E, {
1820
+ function z(m, u) {
1821
+ const h = q(u), E = F("li", null, {
1822
+ "data-option": u.value
1823
+ }), T = F("button", E, {
1794
1824
  type: "button",
1795
1825
  class: "a-tag-filter",
1796
- innerHTML: "<label for=" + g + ">" + f.text + Nn + "</label>"
1826
+ innerHTML: "<label for=" + h + ">" + u.text + Nn + "</label>"
1797
1827
  });
1798
- m.appendChild(E), C.addEventListener("click", H), C.addEventListener(
1828
+ m.appendChild(E), T.addEventListener("click", M), T.addEventListener(
1799
1829
  "keydown",
1800
1830
  D
1801
1831
  );
1802
1832
  }
1803
1833
  function fe(m) {
1804
- const f = n.getOption(m) || n.getOption(n.getIndex());
1805
- if (f) {
1806
- if (f.checked) {
1807
- h.classList.contains("u-max-selections") && h.classList.remove("u-max-selections");
1808
- const g = '[data-option="' + f.value + '"]', E = l.querySelector(g);
1834
+ const u = n.getOption(m) || n.getOption(n.getIndex());
1835
+ if (u) {
1836
+ if (u.checked) {
1837
+ g.classList.contains("u-max-selections") && g.classList.remove("u-max-selections");
1838
+ const h = '[data-option="' + u.value + '"]', E = l.querySelector(h);
1809
1839
  typeof E < "u" && E && l?.removeChild(E);
1810
- } else p?.renderTags && l && z(l, f);
1811
- n.toggleOption(m), n.isAtMaxSelections() && h.classList.add("u-max-selections"), _.dispatchEvent("selectionsupdated", { target: _ });
1840
+ } else p?.renderTags && l && z(l, u);
1841
+ n.toggleOption(m), n.isAtMaxSelections() && g.classList.add("u-max-selections"), _.dispatchEvent("selectionsupdated", { target: _ });
1812
1842
  }
1813
- n.resetIndex(), o = !1, b.getAttribute("aria-hidden") === "false" && u.focus();
1843
+ n.resetIndex(), o = !1, b.getAttribute("aria-hidden") === "false" && f.focus();
1814
1844
  }
1815
1845
  function ke(m) {
1816
- fe(Number(m.target.getAttribute("data-index"))), L();
1846
+ fe(Number(m.target.getAttribute("data-index"))), N();
1817
1847
  }
1818
1848
  function Ae() {
1819
- a.addEventListener("mousemove", function(g) {
1820
- const E = g.target;
1821
- g.offsetX > E.offsetWidth - 35 ? E.style.cursor = "pointer" : E.style.cursor = "auto";
1822
- }), a.addEventListener("mouseup", function(g) {
1823
- const E = g.target;
1824
- g.offsetX > E.offsetWidth - 35 && b.offsetHeight === 140 && u.blur();
1825
- }), u.addEventListener("input", function() {
1826
- M(this.value);
1827
- }), u.addEventListener("focus", function() {
1849
+ a.addEventListener("mousemove", function(h) {
1850
+ const E = h.target;
1851
+ h.offsetX > E.offsetWidth - 35 ? E.style.cursor = "pointer" : E.style.cursor = "auto";
1852
+ }), a.addEventListener("mouseup", function(h) {
1853
+ const E = h.target;
1854
+ h.offsetX > E.offsetWidth - 35 && b.offsetHeight === 140 && f.blur();
1855
+ }), f.addEventListener("input", function() {
1856
+ H(this.value);
1857
+ }), f.addEventListener("focus", function() {
1828
1858
  b.getAttribute("aria-hidden") === "true" && S();
1829
- }), u.addEventListener("blur", function() {
1859
+ }), f.addEventListener("blur", function() {
1830
1860
  !o && b.getAttribute("aria-hidden") === "false" && A();
1831
- }), u.addEventListener("keydown", function(g) {
1832
- const E = g.key;
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();
1834
- }), h.addEventListener("mousedown", function() {
1861
+ }), f.addEventListener("keydown", function(h) {
1862
+ const E = h.key;
1863
+ b.getAttribute("aria-hidden") === "true" && E !== Ze && S(), E === Be ? (h.preventDefault(), B(ge)) : E === je ? (N(), A()) : E === Ye ? B(ge) : E === Ze && !h.shiftKey && b.getAttribute("aria-hidden") === "false" && A();
1864
+ }), g.addEventListener("mousedown", function() {
1835
1865
  o = !0;
1836
- }), h.addEventListener("keydown", function(g) {
1837
- const E = g.key, C = g.target, $ = C.checked;
1866
+ }), g.addEventListener("keydown", function(h) {
1867
+ const E = h.key, T = h.target, $ = T.checked;
1838
1868
  if (E === Be) {
1839
- g.preventDefault(), C.checked = !$;
1869
+ h.preventDefault(), T.checked = !$;
1840
1870
  const R = new Event("change", { bubbles: !1, cancelable: !0 });
1841
- C.dispatchEvent(R);
1842
- } else E === je ? (u.focus(), A()) : E === Cn ? O(Qe) : E === Ye && O(ge);
1843
- }), b.addEventListener("mousedown", function(g) {
1844
- g.target.tagName === "LABEL" && (o = !0);
1871
+ T.dispatchEvent(R);
1872
+ } else E === je ? (f.focus(), A()) : E === Cn ? B(Qe) : E === Ye && B(ge);
1873
+ }), b.addEventListener("mousedown", function(h) {
1874
+ h.target.tagName === "LABEL" && (o = !0);
1845
1875
  });
1846
- const m = h.querySelectorAll("input");
1847
- for (let g = 0, E = m.length; g < E; g++)
1848
- m[g].addEventListener("change", ke);
1849
- const f = l.querySelectorAll("button");
1850
- for (let g = 0, E = f.length; g < E; g++)
1851
- f[g].addEventListener("click", H), f[g].addEventListener("keydown", D);
1876
+ const m = g.querySelectorAll("input");
1877
+ for (let h = 0, E = m.length; h < E; h++)
1878
+ m[h].addEventListener("change", ke);
1879
+ const u = l.querySelectorAll("button");
1880
+ for (let h = 0, E = u.length; h < E; h++)
1881
+ u[h].addEventListener("click", M), u[h].addEventListener("keydown", D);
1852
1882
  }
1853
1883
  function ue() {
1854
1884
  d = document.createElement("div"), d.className = P, l = F("ul", null, {
1855
1885
  className: "m-tag-group"
1856
1886
  }), a = F("header", d, {
1857
1887
  className: P + "__header"
1858
- }), u = F("input", a, {
1888
+ }), f = F("input", a, {
1859
1889
  className: P + "__search " + kn,
1860
1890
  type: "text",
1861
- placeholder: i || "Select up to five",
1891
+ placeholder: c || "Select up to five",
1862
1892
  id: s.id,
1863
1893
  autocomplete: "off"
1864
1894
  }), b = F("fieldset", d, {
@@ -1866,31 +1896,31 @@ function we(e) {
1866
1896
  "aria-hidden": "true"
1867
1897
  });
1868
1898
  let m = P + "__options";
1869
- n.isAtMaxSelections() && (m += " u-max-selections"), h = F("ul", b, {
1899
+ n.isAtMaxSelections() && (m += " u-max-selections"), g = F("ul", b, {
1870
1900
  className: m
1871
1901
  });
1872
- let f, g, E;
1873
- for (let C = 0, $ = r.length; C < $; C++) {
1874
- f = r[C], g = q(f), E = n.getOption(C).checked;
1875
- const R = F("li", h, {
1876
- "data-option": f.value,
1902
+ let u, h, E;
1903
+ for (let T = 0, $ = r.length; T < $; T++) {
1904
+ u = r[T], h = q(u), E = n.getOption(T).checked;
1905
+ const R = F("li", g, {
1906
+ "data-option": u.value,
1877
1907
  "data-cy": "multiselect-option",
1878
1908
  class: "m-form-field m-form-field--checkbox"
1879
1909
  });
1880
1910
  F("input", R, {
1881
- id: g,
1911
+ id: h,
1882
1912
  // Type must come before value or IE fails
1883
1913
  type: "checkbox",
1884
- value: f.value,
1914
+ value: u.value,
1885
1915
  name: t,
1886
1916
  class: xn + " " + P + "__checkbox",
1887
1917
  checked: E,
1888
- "data-index": C
1918
+ "data-index": T
1889
1919
  }), F("label", R, {
1890
- for: g,
1891
- textContent: f.text,
1920
+ for: h,
1921
+ textContent: u.text,
1892
1922
  className: P + "__label a-label"
1893
- }), y.push(R), E && p?.renderTags && z(l, f);
1923
+ }), y.push(R), E && p?.renderTags && z(l, u);
1894
1924
  }
1895
1925
  return d.insertBefore(l, a), s.parentNode.insertBefore(d, s), d.appendChild(s), d;
1896
1926
  }
@@ -1899,10 +1929,10 @@ function we(e) {
1899
1929
  return this;
1900
1930
  if (Zs())
1901
1931
  return this;
1902
- if (_ = this, t = s.name || s.id, i = s.getAttribute("data-placeholder"), r = s.options || [], p = { ...Ke, ...m }, r.length > 0) {
1932
+ if (_ = this, t = s.name || s.id, c = s.getAttribute("data-placeholder"), r = s.options || [], p = { ...Ke, ...m }, r.length > 0) {
1903
1933
  n = new Sn(r, t, p).init();
1904
- const f = ue();
1905
- s.parentNode.removeChild(s), s = f, oe(s), Ae();
1934
+ const u = ue();
1935
+ s.parentNode.removeChild(s), s = u, oe(s), Ae();
1906
1936
  }
1907
1937
  return this;
1908
1938
  }
@@ -1911,45 +1941,45 @@ function we(e) {
1911
1941
  }
1912
1942
  this.init = Ce, this.expand = S, this.collapse = A;
1913
1943
  const K = new ce();
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;
1944
+ return this.addEventListener = K.addEventListener, this.removeEventListener = K.removeEventListener, this.dispatchEvent = K.dispatchEvent, this.getModel = Te, this.updateSelections = fe, this.selectionClickHandler = M, this.selectionKeyDownHandler = D, this;
1915
1945
  }
1916
1946
  we.BASE_CLASS = P;
1917
1947
  we.init = (e) => me(`.${P}`, we, void 0, e);
1918
1948
  const cs = (e, s) => {
1919
- const o = e.map(({ value: t, label: i }) => c("option", {
1949
+ const o = e.map(({ value: t, label: c }) => i("option", {
1920
1950
  value: t,
1921
- children: i
1951
+ children: c
1922
1952
  }, t));
1923
- return o.length > 0 ? o : [c("option", {
1953
+ return o.length > 0 ? o : [i("option", {
1924
1954
  disabled: !0,
1925
1955
  value: "",
1926
1956
  children: s
1927
1957
  }, "initial")];
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 }) => {
1958
+ }, Tn = (e, s) => e.find((o) => o.value === s), In = 5, On = ({ id: e, options: s, label: o, onChange: t = V, defaultOptionLabel: c = "-- select an option --", maxSelections: n = In, ...r }) => {
1929
1959
  const [p, d] = ae([]), l = Xe(null);
1930
1960
  return Q(() => {
1931
- const u = new we(l.current).init({
1961
+ const f = new we(l.current).init({
1932
1962
  maxSelections: n,
1933
1963
  renderTags: !0
1934
1964
  }), b = () => {
1935
- const y = u.getModel().getSelectedIndices();
1965
+ const y = f.getModel().getSelectedIndices();
1936
1966
  d([...y]);
1937
- }, h = "selectionsupdated";
1938
- return u.addEventListener(h, b), () => u.removeEventListener(h, b);
1967
+ }, g = "selectionsupdated";
1968
+ return f.addEventListener(g, b), () => f.removeEventListener(g, b);
1939
1969
  }, [n]), Q(() => {
1940
- const a = p.map((u) => ({
1941
- ...s[u],
1970
+ const a = p.map((f) => ({
1971
+ ...s[f],
1942
1972
  selected: !0
1943
1973
  }));
1944
1974
  t(a);
1945
1975
  }, [p, t, s]), v("div", {
1946
1976
  className: "m-form-field",
1947
1977
  id: `multi-wrapper-${e}`,
1948
- children: [c("label", {
1978
+ children: [i("label", {
1949
1979
  className: "a-label a-label--heading",
1950
1980
  htmlFor: e,
1951
1981
  children: o
1952
- }), c("select", {
1982
+ }), i("select", {
1953
1983
  id: e,
1954
1984
  className: "o-multiselect",
1955
1985
  ref: l,
@@ -1957,23 +1987,23 @@ const cs = (e, s) => {
1957
1987
  "data-placeholder": `Select up to ${n}`,
1958
1988
  "data-open": !0,
1959
1989
  ...r,
1960
- children: cs(s, i)
1990
+ children: cs(s, c)
1961
1991
  })]
1962
1992
  });
1963
- }, Bn = ({ id: e, options: s, label: o, onChange: t = V, maxSelections: i, value: n = "", defaultOptionLabel: r = "-- select an option --", ...p }) => {
1993
+ }, Bn = ({ id: e, options: s, label: o, onChange: t = V, maxSelections: c, value: n = "", defaultOptionLabel: r = "-- select an option --", ...p }) => {
1964
1994
  const d = (l) => {
1965
1995
  const a = Tn(s, l.target.value);
1966
1996
  return t(a), a;
1967
1997
  };
1968
1998
  return v("div", {
1969
1999
  className: "m-form-field",
1970
- children: [c("label", {
2000
+ children: [i("label", {
1971
2001
  className: "a-label a-label--heading",
1972
2002
  htmlFor: e,
1973
2003
  children: o
1974
- }), c("div", {
2004
+ }), i("div", {
1975
2005
  className: "a-select",
1976
- children: c("select", {
2006
+ children: i("select", {
1977
2007
  id: e,
1978
2008
  ...p,
1979
2009
  onChange: d,
@@ -1982,55 +2012,55 @@ const cs = (e, s) => {
1982
2012
  })
1983
2013
  })]
1984
2014
  });
1985
- }, to = ({ isMulti: e = !1, onChange: s = () => null, ...o }) => e ? c(On, {
2015
+ }, co = ({ isMulti: e = !1, onChange: s = () => null, ...o }) => e ? i(On, {
1986
2016
  onChange: s,
1987
2017
  ...o
1988
- }) : c(Bn, {
2018
+ }) : i(Bn, {
1989
2019
  onChange: s,
1990
2020
  ...o
1991
2021
  });
1992
- function co({ href: e = "#main", text: s = "Skip to main content" }) {
1993
- return c("div", {
2022
+ function io({ href: e = "#main", text: s = "Skip to main content" }) {
2023
+ return i("div", {
1994
2024
  className: "skip-nav",
1995
- children: c("a", {
2025
+ children: i("a", {
1996
2026
  className: "skip-nav__link a-btn",
1997
2027
  href: e,
1998
2028
  children: s
1999
2029
  })
2000
2030
  });
2001
2031
  }
2002
- const io = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, isMinimal: t = !1, className: i = "", ...n }) => {
2032
+ const ro = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, isMinimal: t = !1, className: c = "", ...n }) => {
2003
2033
  Q(() => {
2004
2034
  t ? ye.init() : _e.init(), document.readyState === "complete" && globalThis.dispatchEvent(new Event("load"));
2005
2035
  }, [t]);
2006
- const r = t ? "o-summary-minimal" : "o-summary", p = [r, i];
2036
+ const r = t ? "o-summary-minimal" : "o-summary", p = [r, c];
2007
2037
  return o && p.push(`${r}--mobile`), v("div", {
2008
2038
  className: w(p),
2009
2039
  ...n,
2010
- children: [c("div", {
2040
+ children: [i("div", {
2011
2041
  className: `${r}__content`,
2012
2042
  children: e
2013
- }), c("button", {
2043
+ }), i("button", {
2014
2044
  type: "button",
2015
2045
  className: `${r}__btn`,
2016
2046
  children: t ? v(ne, {
2017
2047
  children: [v("span", {
2018
2048
  className: "o-summary-minimal__cue-open",
2019
- children: ["Show ", c(T, {
2049
+ children: ["Show ", i(C, {
2020
2050
  name: "plus",
2021
2051
  isPresentational: !0,
2022
2052
  withBg: !0
2023
2053
  })]
2024
2054
  }), v("span", {
2025
2055
  className: "o-summary-minimal__cue-close",
2026
- children: ["Hide ", c(T, {
2056
+ children: ["Hide ", i(C, {
2027
2057
  name: "minus",
2028
2058
  isPresentational: !0,
2029
2059
  withBg: !0
2030
2060
  })]
2031
2061
  })]
2032
2062
  }) : v(ne, {
2033
- children: [s, c(T, {
2063
+ children: [s, i(C, {
2034
2064
  name: "plus",
2035
2065
  isPresentational: !0,
2036
2066
  withBg: !0
@@ -2038,13 +2068,13 @@ const io = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, is
2038
2068
  })
2039
2069
  })]
2040
2070
  });
2041
- }, Hn = (e) => c("thead", {
2042
- children: c("tr", {
2071
+ }, Hn = (e) => i("thead", {
2072
+ children: i("tr", {
2043
2073
  children: e.map((s, o) => {
2044
2074
  let t = "";
2045
- const i = [""], n = `header-${o}`;
2046
- 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", {
2047
- className: w(i),
2075
+ const c = [""], n = `header-${o}`;
2076
+ return typeof s == "object" ? (t = s.header, s.alignRight && c.push("o-table_cell--right-align"), s.width && c.push(`u-w${s.width}pct`), s.headerWordWrap || c.push("white-space-nowrap")) : t = s, i("th", {
2077
+ className: w(c),
2048
2078
  children: t
2049
2079
  }, n);
2050
2080
  })
@@ -2060,10 +2090,10 @@ const io = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, is
2060
2090
  "data-label": e.header,
2061
2091
  className: w(s)
2062
2092
  };
2063
- }, Dn = (e, s) => c("tbody", {
2093
+ }, Dn = (e, s) => i("tbody", {
2064
2094
  children: e.map((o, t) => {
2065
- const i = `row-${t}`;
2066
- return c("tr", {
2095
+ const c = `row-${t}`;
2096
+ return i("tr", {
2067
2097
  children: o.map((n, r) => {
2068
2098
  const p = s[r], d = `row-${t}-col-${r}`;
2069
2099
  return Ge("td", {
@@ -2071,37 +2101,37 @@ const io = ({ children: e, label: s = "Show full text", isMobileOnly: o = !1, is
2071
2101
  key: d
2072
2102
  }, n);
2073
2103
  })
2074
- }, i);
2104
+ }, c);
2075
2105
  })
2076
- }), Pn = ({ children: e }) => e ? c("caption", {
2106
+ }), Pn = ({ children: e }) => e ? i("caption", {
2077
2107
  children: e
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({
2108
+ }) : null, Rn = Se(({ id: e, caption: s, columns: o, rows: t, isResponsive: c = !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
+ const [_, L] = hn({
2080
2110
  rows: t,
2081
2111
  isPaginated: p,
2082
2112
  startPage: d,
2083
2113
  perPage: l
2084
- }), x = Je(), k = [];
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);
2086
- const B = v(ne, {
2114
+ }), k = Je(), x = [];
2115
+ c && 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
+ const O = v(ne, {
2087
2117
  children: [v("table", {
2088
- className: w(k),
2118
+ className: w(x),
2089
2119
  ref: b,
2090
- id: e ?? x,
2091
- ...h,
2092
- children: [c(Pn, {
2120
+ id: e ?? k,
2121
+ ...g,
2122
+ children: [i(Pn, {
2093
2123
  children: s
2094
2124
  }), Hn(o), Dn(_, o)]
2095
- }), p ? c(gn, {
2096
- ...N,
2097
- tableId: e ?? x
2125
+ }), p ? i(gn, {
2126
+ ...L,
2127
+ tableId: e ?? k
2098
2128
  }) : null]
2099
2129
  });
2100
- return n ? c("div", {
2130
+ return n ? i("div", {
2101
2131
  className: "o-table o-table-wrapper--scrolling",
2102
- ref: y ?? u,
2103
- children: B
2104
- }) : B;
2132
+ ref: y ?? f,
2133
+ children: O
2134
+ }) : O;
2105
2135
  });
2106
2136
  Rn.displayName = "Table";
2107
2137
  const Fn = {
@@ -2109,13 +2139,13 @@ const Fn = {
2109
2139
  error: "a-text-input--error",
2110
2140
  warning: "a-text-input--warning",
2111
2141
  info: "a-text-input--info"
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) => {
2113
- const l = (u) => {
2114
- u.preventDefault(), r(u.target.value);
2115
- }, a = ["a-text-input", is(o), i ? "a-text-input--full" : "", s || ""].filter((u) => u.length);
2116
- return c("div", {
2142
+ }, is = (e) => Fn[e], po = Se(({ id: e, className: s = "", status: o = "info", placeholder: t = "Placeholder text", isFullWidth: c = !1, isDisabled: n = !1, onChange: r = V, ...p }, d) => {
2143
+ const l = (f) => {
2144
+ f.preventDefault(), r(f.target.value);
2145
+ }, a = ["a-text-input", is(o), c ? "a-text-input--full" : "", s || ""].filter((f) => f.length);
2146
+ return i("div", {
2117
2147
  className: "m-form-field",
2118
- children: c("textarea", {
2148
+ children: i("textarea", {
2119
2149
  className: w(a),
2120
2150
  id: e,
2121
2151
  placeholder: t,
@@ -2125,34 +2155,34 @@ const Fn = {
2125
2155
  ...p
2126
2156
  })
2127
2157
  });
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) => {
2158
+ }), ao = Se(({ className: e, id: s, inputRef: o, isDisabled: t = !1, name: c, status: n = "info", type: r = "text", isFullWidth: p = !1, ...d }, l) => {
2129
2159
  const a = ["a-text-input", e, is(n)];
2130
- return p ? (a.push("a-text-input--full"), c("div", {
2160
+ return p ? (a.push("a-text-input--full"), i("div", {
2131
2161
  className: "m-form-field",
2132
- children: c("input", {
2162
+ children: i("input", {
2133
2163
  className: w(a),
2134
2164
  disabled: t,
2135
2165
  id: s,
2136
- name: i,
2166
+ name: c,
2137
2167
  type: r,
2138
2168
  ref: l,
2139
2169
  ...d
2140
2170
  })
2141
- })) : c("input", {
2171
+ })) : i("input", {
2142
2172
  className: w(a),
2143
2173
  disabled: t,
2144
2174
  id: s,
2145
- name: i,
2175
+ name: c,
2146
2176
  type: r,
2147
2177
  ref: l,
2148
2178
  ...d
2149
2179
  });
2150
- }), rs = (e) => e ? typeof e == "string" ? c(Re, {
2180
+ }), rs = (e) => e ? typeof e == "string" ? i(Re, {
2151
2181
  children: e
2152
- }) : e : null, Z = ({ heading: e, subheading: s, description: o, callToAction: t, className: i, ...n }) => {
2153
- const r = ["o-text-introduction", i], p = t && c(te, {
2182
+ }) : e : null, Z = ({ heading: e, subheading: s, description: o, callToAction: t, className: c, ...n }) => {
2183
+ const r = ["o-text-introduction", c], p = t && i(te, {
2154
2184
  isLinks: !0,
2155
- children: c(Le, {
2185
+ children: i(Le, {
2156
2186
  children: as(t, {
2157
2187
  type: "list"
2158
2188
  })
@@ -2161,53 +2191,53 @@ const Fn = {
2161
2191
  return v("div", {
2162
2192
  className: w(r),
2163
2193
  ...n,
2164
- children: [c(Ee, {
2194
+ children: [i(Ee, {
2165
2195
  type: "1",
2166
2196
  children: e
2167
- }), c(Re, {
2197
+ }), i(Re, {
2168
2198
  isLead: !0,
2169
2199
  children: s
2170
2200
  }), rs(o), p]
2171
2201
  });
2172
2202
  };
2173
- Z.Container = ({ className: e, children: s, ...o }) => c("div", {
2203
+ Z.Container = ({ className: e, children: s, ...o }) => i("div", {
2174
2204
  className: w(["o-text-introduction", e]),
2175
2205
  ...o,
2176
2206
  children: s
2177
2207
  });
2178
- const ao = Z.Container;
2179
- Z.Heading = ({ children: e }) => c(Ee, {
2208
+ const lo = Z.Container;
2209
+ Z.Heading = ({ children: e }) => i(Ee, {
2180
2210
  type: "1",
2181
2211
  children: e
2182
2212
  });
2183
- const lo = Z.Heading;
2213
+ const mo = Z.Heading;
2184
2214
  Z.Description = ({ children: e }) => rs(e);
2185
- const mo = Z.Description;
2186
- Z.Subheading = ({ children: e }) => c(Re, {
2215
+ const fo = Z.Description;
2216
+ Z.Subheading = ({ children: e }) => i(Re, {
2187
2217
  isLead: !0,
2188
2218
  children: e
2189
2219
  });
2190
- const fo = Z.Subheading, Wn = ({ children: e, className: s = "", ...o }) => c("div", {
2220
+ const uo = Z.Subheading, Wn = ({ children: e, className: s = "", ...o }) => i("div", {
2191
2221
  className: `o-well ${s}`,
2192
2222
  ...o,
2193
2223
  children: e
2194
2224
  });
2195
- function uo({ heading: e, headingLevel: s = "h3", links: o, text: t, className: i = "", ...n }) {
2225
+ function bo({ heading: e, headingLevel: s = "h3", links: o, text: t, className: c = "", ...n }) {
2196
2226
  const r = [];
2197
2227
  if (o) for (const p of o)
2198
- r.push(c(Le, {
2228
+ r.push(i(Le, {
2199
2229
  children: p
2200
2230
  }, p.key));
2201
2231
  return v(Wn, {
2202
- className: i,
2232
+ className: c,
2203
2233
  ...n,
2204
- children: [e ? c("p", {
2234
+ children: [e ? i("p", {
2205
2235
  className: s,
2206
2236
  children: e
2207
- }) : null, t ? c("p", {
2237
+ }) : null, t ? i("p", {
2208
2238
  className: "text",
2209
2239
  children: t
2210
- }) : null, r.length > 0 ? c(te, {
2240
+ }) : null, r.length > 0 ? i(te, {
2211
2241
  isLinks: !0,
2212
2242
  children: r
2213
2243
  }) : null]
@@ -2223,42 +2253,43 @@ export {
2223
2253
  Zn as Checkbox,
2224
2254
  Kn as Divider,
2225
2255
  Gn as Expandable,
2226
- zn as ExpandableGroup,
2256
+ Xn as ExpandableGroup,
2257
+ zn as Fieldset,
2227
2258
  en as Footer,
2228
- Xn as FooterCfGov,
2229
- Jn as Grid,
2259
+ Jn as FooterCfGov,
2260
+ eo as Grid,
2261
+ oo as Header,
2230
2262
  Ee as Heading,
2231
- eo as Hero,
2232
- T as Icon,
2263
+ so as Hero,
2264
+ C as Icon,
2233
2265
  ns as Label,
2234
2266
  Qn as LanguageLink,
2235
- so as Layout,
2267
+ no as Layout,
2236
2268
  re as Link,
2237
2269
  Ls as LinkText,
2238
2270
  te as List,
2239
2271
  Le as ListItem,
2240
2272
  Me as ListItemBuilder,
2241
2273
  Ns as ListLink,
2242
- no as PageHeader,
2243
2274
  gn as Pagination,
2244
2275
  Re as Paragraph,
2245
- oo as RadioButton,
2276
+ to as RadioButton,
2246
2277
  fn as ResponsiveMenu,
2247
- to as Select,
2278
+ co as Select,
2248
2279
  On as SelectMulti,
2249
2280
  Bn as SelectSingle,
2250
- co as SkipNav,
2251
- io as Summary,
2281
+ io as SkipNav,
2282
+ ro as Summary,
2252
2283
  Rn as Table,
2253
2284
  As as Tagline,
2254
- ro as TextArea,
2255
- po as TextInput,
2285
+ po as TextArea,
2286
+ ao as TextInput,
2256
2287
  Z as TextIntroduction,
2257
- ao as TextIntroductionContainer,
2258
- mo as TextIntroductionDescription,
2259
- lo as TextIntroductionHeading,
2260
- fo as TextIntroductionSubheading,
2288
+ lo as TextIntroductionContainer,
2289
+ fo as TextIntroductionDescription,
2290
+ mo as TextIntroductionHeading,
2291
+ uo as TextIntroductionSubheading,
2261
2292
  Wn as WellContainer,
2262
- uo as WellContent,
2293
+ bo as WellContent,
2263
2294
  hn as usePagination
2264
2295
  };