@noctuatech/uswds 0.0.1 → 0.0.2

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.
@@ -0,0 +1,2554 @@
1
+ !(function () {
2
+ "use strict";
3
+ function e(e, t, a, s, n, o) {
4
+ function i(e) {
5
+ if (void 0 !== e && "function" != typeof e)
6
+ throw new TypeError("Function expected");
7
+ return e;
8
+ }
9
+ for (
10
+ var l,
11
+ r = s.kind,
12
+ c = "getter" === r ? "get" : "setter" === r ? "set" : "value",
13
+ d = !t && e ? (s.static ? e : e.prototype) : null,
14
+ h = t || (d ? Object.getOwnPropertyDescriptor(d, s.name) : {}),
15
+ u = !1,
16
+ m = a.length - 1;
17
+ m >= 0;
18
+ m--
19
+ ) {
20
+ var f = {};
21
+ for (var b in s) f[b] = "access" === b ? {} : s[b];
22
+ for (var b in s.access) f.access[b] = s.access[b];
23
+ f.addInitializer = function (e) {
24
+ if (u)
25
+ throw new TypeError(
26
+ "Cannot add initializers after decoration has completed"
27
+ );
28
+ o.push(i(e || null));
29
+ };
30
+ var p = (0, a[m])(
31
+ "accessor" === r ? { get: h.get, set: h.set } : h[c],
32
+ f
33
+ );
34
+ if ("accessor" === r) {
35
+ if (void 0 === p) continue;
36
+ if (null === p || "object" != typeof p)
37
+ throw new TypeError("Object expected");
38
+ (l = i(p.get)) && (h.get = l),
39
+ (l = i(p.set)) && (h.set = l),
40
+ (l = i(p.init)) && n.unshift(l);
41
+ } else (l = i(p)) && ("field" === r ? n.unshift(l) : (h[c] = l));
42
+ }
43
+ d && Object.defineProperty(d, s.name, h), (u = !0);
44
+ }
45
+ function t(e, t, a) {
46
+ for (var s = arguments.length > 2, n = 0; n < t.length; n++)
47
+ a = s ? t[n].call(e, a) : t[n].call(e);
48
+ return s ? a : void 0;
49
+ }
50
+ function a(e, t, a) {
51
+ return (
52
+ "symbol" == typeof t &&
53
+ (t = t.description ? "[".concat(t.description, "]") : ""),
54
+ Object.defineProperty(e, "name", {
55
+ configurable: !0,
56
+ value: a ? "".concat(a, " ", t) : t,
57
+ })
58
+ );
59
+ }
60
+ function s(e, t, a, s) {
61
+ if ("a" === a && !s)
62
+ throw new TypeError("Private accessor was defined without a getter");
63
+ if ("function" == typeof t ? e !== t || !s : !t.has(e))
64
+ throw new TypeError(
65
+ "Cannot read private member from an object whose class did not declare it"
66
+ );
67
+ return "m" === a ? s : "a" === a ? s.call(e) : s ? s.value : t.get(e);
68
+ }
69
+ function n(e, t, a, s, n) {
70
+ if ("m" === s) throw new TypeError("Private method is not writable");
71
+ if ("a" === s && !n)
72
+ throw new TypeError("Private accessor was defined without a setter");
73
+ if ("function" == typeof t ? e !== t || !n : !t.has(e))
74
+ throw new TypeError(
75
+ "Cannot write private member to an object whose class did not declare it"
76
+ );
77
+ return "a" === s ? n.call(e, a) : n ? (n.value = a) : t.set(e, a), a;
78
+ }
79
+ function o(e) {
80
+ return e[Symbol.metadata];
81
+ }
82
+ "function" == typeof SuppressedError && SuppressedError;
83
+ class i {
84
+ #e;
85
+ #t;
86
+ get name() {
87
+ return this.#e;
88
+ }
89
+ get factory() {
90
+ return this.#t;
91
+ }
92
+ constructor(e, t) {
93
+ (this.#e = e), (this.#t = t);
94
+ }
95
+ }
96
+ const l = new WeakMap();
97
+ class r {
98
+ #a = new WeakMap();
99
+ parent;
100
+ providers;
101
+ constructor(e = [], t) {
102
+ (this.parent = t), (this.providers = e);
103
+ }
104
+ inject(e) {
105
+ if (this.#a.has(e)) {
106
+ const t = this.#a.get(e),
107
+ a = o(e);
108
+ return a && c(t, a.onInjected), t;
109
+ }
110
+ const t = this.#s(e);
111
+ if (t) {
112
+ if (t.use) {
113
+ const a = t.use;
114
+ return this.#n(e, () => new a());
115
+ }
116
+ if (t.factory) {
117
+ const a = t.factory;
118
+ return this.#n(e, a);
119
+ }
120
+ throw new Error(
121
+ `Provider for ${e.name} found but is missing either 'use' or 'factory'`
122
+ );
123
+ }
124
+ if (this.parent) return this.parent.inject(e);
125
+ if (e instanceof i) {
126
+ if (!e.factory) throw new Error(`Provider not found for ${e}`);
127
+ return this.#n(e, e.factory);
128
+ }
129
+ return this.#n(e, () => new e());
130
+ }
131
+ setParent(e) {
132
+ this.parent = e;
133
+ }
134
+ clear() {
135
+ this.#a = new WeakMap();
136
+ }
137
+ #n(e, t) {
138
+ const a = t(this);
139
+ if ((this.#a.set(e, a), "object" == typeof a && null !== a)) {
140
+ const t = l.get(a);
141
+ t && t.setParent(this);
142
+ const s = o(e);
143
+ s && (c(a, s.onCreated), c(a, s.onInjected));
144
+ }
145
+ return a;
146
+ }
147
+ #s(e) {
148
+ if (this.providers)
149
+ for (let t = 0; t < this.providers.length; t++)
150
+ if (this.providers[t].provide === e) return this.providers[t];
151
+ }
152
+ }
153
+ function c(e, t) {
154
+ if (Array.isArray(t)) for (let a of t) "function" == typeof a && a.call(e);
155
+ }
156
+ function d(e, t) {
157
+ return class extends e {
158
+ constructor(...e) {
159
+ super(),
160
+ this.addEventListener("finddiroot", (e) => {
161
+ e.stopPropagation();
162
+ const t = (function (e) {
163
+ const t = e.composedPath();
164
+ for (let e = 1; e < t.length; e++) {
165
+ const a = t[e],
166
+ s = l.get(a);
167
+ if (s) return s;
168
+ if (a === document.body) return null;
169
+ }
170
+ return null;
171
+ })(e);
172
+ t && l.get(this)?.setParent(t);
173
+ });
174
+ }
175
+ connectedCallback() {
176
+ this.isConnected &&
177
+ (this.dispatchEvent(
178
+ new Event("finddiroot", { bubbles: !0, composed: !0 })
179
+ ),
180
+ super.connectedCallback && super.connectedCallback());
181
+ }
182
+ disconnectedCallback() {
183
+ l.get(this)?.setParent(void 0),
184
+ super.disconnectedCallback && super.disconnectedCallback();
185
+ }
186
+ };
187
+ }
188
+ function h(e) {
189
+ return function (t, a) {
190
+ class s extends t {
191
+ constructor(...t) {
192
+ super(...t);
193
+ const a = new r(e?.providers);
194
+ a.providers.push({ provide: r, factory: () => a }), l.set(this, a);
195
+ }
196
+ }
197
+ return "HTMLElement" in globalThis &&
198
+ HTMLElement.prototype.isPrototypeOf(t.prototype)
199
+ ? d(s)
200
+ : s;
201
+ };
202
+ }
203
+ function u(e) {
204
+ return function () {
205
+ const t = l.get(this);
206
+ if (void 0 === t) {
207
+ const e = Object.getPrototypeOf(this.constructor).name;
208
+ throw new Error(
209
+ `${e} is either not injectable or a service is being called in the constructor. \n Either add the @injectable() to your class or use the @injected callback method.`
210
+ );
211
+ }
212
+ return t.inject(e);
213
+ };
214
+ }
215
+ Symbol.metadata ??= Symbol("Symbol.metadata");
216
+ class m {
217
+ #o;
218
+ constructor(e, ...t) {
219
+ (this.#o = document.createElement("template")),
220
+ (this.#o.innerHTML = g(e));
221
+ }
222
+ apply(e) {
223
+ e.shadowRoot && e.shadowRoot.append(this.#o.content.cloneNode(!0));
224
+ }
225
+ }
226
+ function f(e, ...t) {
227
+ return new m(e, ...t);
228
+ }
229
+ class b {
230
+ #i;
231
+ constructor(e, ...t) {
232
+ (this.#i = new CSSStyleSheet()), this.#i.replaceSync(g(e));
233
+ }
234
+ apply(e) {
235
+ e.shadowRoot &&
236
+ (e.shadowRoot.adoptedStyleSheets = [
237
+ ...e.shadowRoot.adoptedStyleSheets,
238
+ this.#i,
239
+ ]);
240
+ }
241
+ }
242
+ function p(e) {
243
+ return new b(e);
244
+ }
245
+ function g(e) {
246
+ let t = "";
247
+ for (let a = 0; a < e.length; a++) t += e[a];
248
+ return t;
249
+ }
250
+ Symbol.metadata ??= Symbol("Symbol.metadata");
251
+ class v extends Map {}
252
+ class y {
253
+ attrs = new v();
254
+ listeners = [];
255
+ onReady = new Set();
256
+ }
257
+ class k extends WeakMap {
258
+ read(e) {
259
+ return this.has(e) || this.set(e, new y()), this.get(e);
260
+ }
261
+ }
262
+ const w = new k();
263
+ function S(e) {
264
+ return function ({ get: t, set: a }, s) {
265
+ const n = (function (e) {
266
+ let t;
267
+ if ("symbol" == typeof e) {
268
+ if (!e.description)
269
+ throw new Error(
270
+ "Cannot handle Symbol property without description"
271
+ );
272
+ t = e.description;
273
+ } else t = e;
274
+ return t.toLowerCase().replaceAll(" ", "-");
275
+ })(s.name),
276
+ o = w.read(s.metadata),
277
+ i = e?.reflect ?? !0;
278
+ return (
279
+ o.attrs.set(n, {
280
+ propName: s.name,
281
+ observe: e?.observed ?? !0,
282
+ reflect: i,
283
+ getPropValue: t,
284
+ setPropValue: a,
285
+ }),
286
+ {
287
+ set(e) {
288
+ i &&
289
+ (!0 === e
290
+ ? this.setAttribute(n, "")
291
+ : !1 === e
292
+ ? this.removeAttribute(n)
293
+ : this.setAttribute(n, String(e))),
294
+ a.call(this, e);
295
+ },
296
+ }
297
+ );
298
+ };
299
+ }
300
+ function x(e, t) {
301
+ return function (a, s) {
302
+ const n = w.read(s.metadata);
303
+ let o = (e) => e.shadowRoot ?? e;
304
+ t &&
305
+ (o =
306
+ "string" == typeof t
307
+ ? (e) =>
308
+ e.shadowRoot
309
+ ? e.shadowRoot.querySelector(t)
310
+ : e.querySelector(t)
311
+ : t),
312
+ n.listeners.push({ event: e, cb: a, selector: o });
313
+ };
314
+ }
315
+ function C(e) {
316
+ return function (t, a) {
317
+ const s = w.read(a.metadata);
318
+ return (
319
+ a.addInitializer(function () {
320
+ e?.tagName &&
321
+ (customElements.get(e.tagName) ||
322
+ customElements.define(e.tagName, this));
323
+ }),
324
+ class extends t {
325
+ static observedAttributes = [];
326
+ static {
327
+ for (let [e, { observe: t }] of s.attrs)
328
+ t && this.observedAttributes.push(e);
329
+ }
330
+ constructor(...t) {
331
+ if ((super(...t), e?.shadowDom)) {
332
+ this.shadowRoot ||
333
+ this.attachShadow({ mode: e.shadowDomMode ?? "open" });
334
+ for (let t of e.shadowDom) t.apply(this);
335
+ }
336
+ for (let { event: e, cb: t, selector: a } of s.listeners) {
337
+ const s = a(this);
338
+ if (!s) throw new Error(`could not add listener to ${s}`);
339
+ s.addEventListener(e, t.bind(this));
340
+ }
341
+ for (let e of s.onReady) e.call(this);
342
+ }
343
+ connectedCallback() {
344
+ this.isConnected &&
345
+ (!(function (e, t) {
346
+ for (let [a, { getPropValue: s, reflect: n }] of t)
347
+ if (n) {
348
+ const t = s.call(e);
349
+ null != t &&
350
+ "" !== t &&
351
+ ("boolean" == typeof t
352
+ ? !0 === t && e.setAttribute(a, "")
353
+ : e.setAttribute(a, String(t)));
354
+ }
355
+ })(this, s.attrs),
356
+ super.connectedCallback && super.connectedCallback());
357
+ }
358
+ attributeChangedCallback(e, t, a) {
359
+ const n = s.attrs.get(e);
360
+ if (n && t !== a) {
361
+ const e = n.getPropValue.call(this);
362
+ "" === a
363
+ ? n.setPropValue.call(this, !0)
364
+ : "number" == typeof e
365
+ ? n.setPropValue.call(this, Number(a))
366
+ : n.setPropValue.call(this, a);
367
+ }
368
+ super.attributeChangedCallback &&
369
+ super.attributeChangedCallback(e, t, a);
370
+ }
371
+ }
372
+ );
373
+ };
374
+ }
375
+ function M(e) {
376
+ let t = null;
377
+ return function () {
378
+ if (t) return t;
379
+ if (
380
+ ((t = this.shadowRoot
381
+ ? this.shadowRoot.querySelector(e)
382
+ : this.querySelector(e)),
383
+ !t)
384
+ )
385
+ throw new Error("could not find element");
386
+ return t;
387
+ };
388
+ }
389
+ class E {
390
+ constructor() {
391
+ this.spriteSheet = "";
392
+ }
393
+ }
394
+ (() => {
395
+ var o, i;
396
+ let l,
397
+ c,
398
+ d,
399
+ m = [
400
+ C({
401
+ tagName: "usa-config",
402
+ shadowDom: [p`:host{display:contents}`, f`<slot></slot>`],
403
+ }),
404
+ h(),
405
+ ],
406
+ b = [],
407
+ g = HTMLElement,
408
+ v = [],
409
+ y = [];
410
+ (c = class extends g {
411
+ constructor() {
412
+ super(...arguments),
413
+ i.set(this, t(this, v, "/assets/img/sprite.svg")),
414
+ o.set(this, (t(this, y), u(r)));
415
+ }
416
+ get spriteSheet() {
417
+ return s(this, i, "f");
418
+ }
419
+ set spriteSheet(e) {
420
+ n(this, i, e, "f");
421
+ }
422
+ connectedCallback() {
423
+ const { providers: e } = s(this, o, "f").call(this);
424
+ e.push({ provide: E, factory: () => this });
425
+ }
426
+ }),
427
+ (o = new WeakMap()),
428
+ (i = new WeakMap()),
429
+ a(c, "USAConfigElement"),
430
+ (() => {
431
+ const a =
432
+ "function" == typeof Symbol && Symbol.metadata
433
+ ? Object.create(g[Symbol.metadata] ?? null)
434
+ : void 0;
435
+ (d = [S()]),
436
+ e(
437
+ c,
438
+ null,
439
+ d,
440
+ {
441
+ kind: "accessor",
442
+ name: "spriteSheet",
443
+ static: !1,
444
+ private: !1,
445
+ access: {
446
+ has: (e) => "spriteSheet" in e,
447
+ get: (e) => e.spriteSheet,
448
+ set: (e, t) => {
449
+ e.spriteSheet = t;
450
+ },
451
+ },
452
+ metadata: a,
453
+ },
454
+ v,
455
+ y
456
+ ),
457
+ e(
458
+ null,
459
+ (l = { value: c }),
460
+ m,
461
+ { kind: "class", name: c.name, metadata: a },
462
+ null,
463
+ b
464
+ ),
465
+ (c = l.value),
466
+ a &&
467
+ Object.defineProperty(c, Symbol.metadata, {
468
+ enumerable: !0,
469
+ configurable: !0,
470
+ writable: !0,
471
+ value: a,
472
+ }),
473
+ t(c, b);
474
+ })();
475
+ })();
476
+ const W = {
477
+ info: { icon: "info" },
478
+ warning: { icon: "warning" },
479
+ success: { icon: "check_circle" },
480
+ error: { icon: "error" },
481
+ emergency: { icon: "error" },
482
+ };
483
+ (() => {
484
+ var o, i;
485
+ let l,
486
+ r,
487
+ c,
488
+ d = [
489
+ C({
490
+ tagName: "usa-alert",
491
+ shadowDom: [
492
+ p`:host{display:block;border-left:.5rem solid #adadad;padding:1rem 1.2rem;color:#1b1b1b;margin-bottom:1rem}:host([type=info]){border-left-color:#00bde3;background-color:#e7f6f8}:host([type=warning]){background-color:#faf3d1;border-left-color:#ffbe2e}:host([type=success]){background-color:#ecf3ec;border-left-color:#00a91c}:host([type=error]){background-color:#f4e3db;border-left-color:#d54309}:host([type=emergency]){background-color:#9c3d10;border-left-color:#9c3d10;color:#fff}:host([type=emergency]) ::slotted(*){color:#fff}.alert-heading{display:grid;grid-template-columns:auto 1fr;align-items:center}usa-icon{margin:-.28rem .75rem 0 0}#heading::slotted(*){font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.33rem;line-height:.9;margin-top:0;margin-bottom:.5rem}`,
493
+ f`<div class="alert-heading"><usa-icon icon="check_circle"></usa-icon><div><slot id="heading" name="heading"></slot></div><div class="spacer"></div><div><slot></slot></div></div>`,
494
+ ],
495
+ }),
496
+ ],
497
+ h = [],
498
+ u = HTMLElement,
499
+ m = [],
500
+ b = [];
501
+ (r = class extends u {
502
+ constructor() {
503
+ super(...arguments),
504
+ i.set(this, t(this, m, "info")),
505
+ o.set(this, (t(this, b), M("usa-icon")));
506
+ }
507
+ get type() {
508
+ return s(this, i, "f");
509
+ }
510
+ set type(e) {
511
+ n(this, i, e, "f");
512
+ }
513
+ attributeChangedCallback() {
514
+ s(this, o, "f").call(this).icon = W[this.type].icon;
515
+ }
516
+ }),
517
+ (o = new WeakMap()),
518
+ (i = new WeakMap()),
519
+ a(r, "USAAlertElement"),
520
+ (() => {
521
+ const a =
522
+ "function" == typeof Symbol && Symbol.metadata
523
+ ? Object.create(u[Symbol.metadata] ?? null)
524
+ : void 0;
525
+ (c = [S()]),
526
+ e(
527
+ r,
528
+ null,
529
+ c,
530
+ {
531
+ kind: "accessor",
532
+ name: "type",
533
+ static: !1,
534
+ private: !1,
535
+ access: {
536
+ has: (e) => "type" in e,
537
+ get: (e) => e.type,
538
+ set: (e, t) => {
539
+ e.type = t;
540
+ },
541
+ },
542
+ metadata: a,
543
+ },
544
+ m,
545
+ b
546
+ ),
547
+ e(
548
+ null,
549
+ (l = { value: r }),
550
+ d,
551
+ { kind: "class", name: r.name, metadata: a },
552
+ null,
553
+ h
554
+ ),
555
+ (r = l.value),
556
+ a &&
557
+ Object.defineProperty(r, Symbol.metadata, {
558
+ enumerable: !0,
559
+ configurable: !0,
560
+ writable: !0,
561
+ value: a,
562
+ }),
563
+ t(r, h);
564
+ })();
565
+ })(),
566
+ (() => {
567
+ var o, i, l, r, c, d, h;
568
+ let u,
569
+ m,
570
+ b,
571
+ g,
572
+ v,
573
+ y,
574
+ k,
575
+ w = [
576
+ C({
577
+ tagName: "usa-button",
578
+ shadowDom: [
579
+ p`:host{display:contents}.usa-button{box-sizing:border-box;font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.06rem;line-height:.9;color:#fff;background-color:#005ea2;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;border:0;border-radius:.25rem;cursor:pointer;-moz-column-gap:.5rem;column-gap:.5rem;display:inline-flex;font-weight:700;justify-content:center;padding:.75rem 1.25rem;text-align:center;text-decoration:none;width:100%;cursor:pointer}@media all and (min-width:30em){.usa-button{width:auto}}.usa-button:visited{color:#fff}.usa-button:hover{color:#fff;background-color:#1a4480;border-bottom:0;text-decoration:none}.usa-button:active{color:#fff;background-color:#162e51}.usa-button:not([disabled]):focus{outline-offset:.25rem}.usa-button:disabled{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-button:disabled:active,.usa-button:disabled:focus,.usa-button:disabled:hover{color:#454545;background-color:#c9c9c9}.usa-button:focus{outline:.25rem solid #2491ff;outline-offset:0}:host([variant=secondary]) .usa-button{color:#fff;background-color:#d83933}:host([variant=secondary]) .usa-button:hover{background-color:#b50909}:host([variant=secondary]) .usa-button:active{background-color:#8b0a03}:host([variant=cool]) .usa-button{color:#1b1b1b;background-color:#00bde3}:host([variant=cool]) .usa-button:hover{background-color:#28a0cb}:host([variant=cool]) .usa-button:active{color:#fff;background-color:#07648d}:host([variant=warm]) .usa-button{color:#1b1b1b;background-color:#fa9441}:host([variant=warm]) .usa-button:hover{color:#fff;background-color:#c05600}:host([variant=warm]) .usa-button:active{color:#fff;background-color:#775540}:host([variant=outline]) .usa-button{background-color:transparent;box-shadow:inset 0 0 0 2px #005ea2;color:#005ea2}:host([variant=outline]) .usa-button:hover{box-shadow:inset 0 0 0 2px #1a4480;color:#1a4480}:host([variant=outline]) .usa-button:active{box-shadow:inset 0 0 0 2px #162e51;color:#162e51}`,
580
+ f`<button class="usa-button"><slot></slot></button>`,
581
+ ],
582
+ }),
583
+ ],
584
+ E = [],
585
+ W = HTMLElement,
586
+ j = [],
587
+ A = [],
588
+ O = [],
589
+ P = [],
590
+ N = [],
591
+ H = [],
592
+ R = [];
593
+ (m = class extends W {
594
+ constructor() {
595
+ super(...arguments),
596
+ o.add(this),
597
+ c.set(this, (t(this, j), t(this, A, "button"))),
598
+ d.set(this, (t(this, O), t(this, P, !1))),
599
+ h.set(this, (t(this, N), t(this, H, "primary"))),
600
+ i.set(this, (t(this, R), this.attachInternals())),
601
+ l.set(this, M("button"));
602
+ }
603
+ get type() {
604
+ return s(this, c, "f");
605
+ }
606
+ set type(e) {
607
+ n(this, c, e, "f");
608
+ }
609
+ get disabled() {
610
+ return s(this, d, "f");
611
+ }
612
+ set disabled(e) {
613
+ n(this, d, e, "f");
614
+ }
615
+ get variant() {
616
+ return s(this, h, "f");
617
+ }
618
+ set variant(e) {
619
+ n(this, h, e, "f");
620
+ }
621
+ onKeyDown(e) {
622
+ "submit" === this.type &&
623
+ "ENTER" === e.key.toUpperCase() &&
624
+ s(this, o, "m", r).call(this);
625
+ }
626
+ onInternalClick() {
627
+ s(this, o, "m", r).call(this);
628
+ }
629
+ attributeChangedCallback() {
630
+ const e = s(this, l, "f").call(this);
631
+ (e.type = this.type), (e.disabled = this.disabled);
632
+ }
633
+ }),
634
+ (i = new WeakMap()),
635
+ (l = new WeakMap()),
636
+ (o = new WeakSet()),
637
+ (c = new WeakMap()),
638
+ (d = new WeakMap()),
639
+ (h = new WeakMap()),
640
+ (r = function () {
641
+ const { form: e } = s(this, i, "f");
642
+ if (e)
643
+ if ("submit" === this.type) {
644
+ const t = document.createElement("button");
645
+ (t.type = "submit"), e.append(t), t.click(), t.remove();
646
+ } else "reset" === this.type && e.reset();
647
+ }),
648
+ a(m, "USAButtonElement"),
649
+ (() => {
650
+ const t =
651
+ "function" == typeof Symbol && Symbol.metadata
652
+ ? Object.create(W[Symbol.metadata] ?? null)
653
+ : void 0;
654
+ (b = [S()]),
655
+ (g = [S()]),
656
+ (v = [S()]),
657
+ (y = [x("keydown", () => document.body)]),
658
+ (k = [x("click")]),
659
+ e(
660
+ m,
661
+ null,
662
+ b,
663
+ {
664
+ kind: "accessor",
665
+ name: "type",
666
+ static: !1,
667
+ private: !1,
668
+ access: {
669
+ has: (e) => "type" in e,
670
+ get: (e) => e.type,
671
+ set: (e, t) => {
672
+ e.type = t;
673
+ },
674
+ },
675
+ metadata: t,
676
+ },
677
+ A,
678
+ O
679
+ ),
680
+ e(
681
+ m,
682
+ null,
683
+ g,
684
+ {
685
+ kind: "accessor",
686
+ name: "disabled",
687
+ static: !1,
688
+ private: !1,
689
+ access: {
690
+ has: (e) => "disabled" in e,
691
+ get: (e) => e.disabled,
692
+ set: (e, t) => {
693
+ e.disabled = t;
694
+ },
695
+ },
696
+ metadata: t,
697
+ },
698
+ P,
699
+ N
700
+ ),
701
+ e(
702
+ m,
703
+ null,
704
+ v,
705
+ {
706
+ kind: "accessor",
707
+ name: "variant",
708
+ static: !1,
709
+ private: !1,
710
+ access: {
711
+ has: (e) => "variant" in e,
712
+ get: (e) => e.variant,
713
+ set: (e, t) => {
714
+ e.variant = t;
715
+ },
716
+ },
717
+ metadata: t,
718
+ },
719
+ H,
720
+ R
721
+ ),
722
+ e(
723
+ m,
724
+ null,
725
+ y,
726
+ {
727
+ kind: "method",
728
+ name: "onKeyDown",
729
+ static: !1,
730
+ private: !1,
731
+ access: {
732
+ has: (e) => "onKeyDown" in e,
733
+ get: (e) => e.onKeyDown,
734
+ },
735
+ metadata: t,
736
+ },
737
+ null,
738
+ j
739
+ ),
740
+ e(
741
+ m,
742
+ null,
743
+ k,
744
+ {
745
+ kind: "method",
746
+ name: "onInternalClick",
747
+ static: !1,
748
+ private: !1,
749
+ access: {
750
+ has: (e) => "onInternalClick" in e,
751
+ get: (e) => e.onInternalClick,
752
+ },
753
+ metadata: t,
754
+ },
755
+ null,
756
+ j
757
+ ),
758
+ e(
759
+ null,
760
+ (u = { value: m }),
761
+ w,
762
+ { kind: "class", name: m.name, metadata: t },
763
+ null,
764
+ E
765
+ ),
766
+ (m = u.value),
767
+ t &&
768
+ Object.defineProperty(m, Symbol.metadata, {
769
+ enumerable: !0,
770
+ configurable: !0,
771
+ writable: !0,
772
+ value: t,
773
+ });
774
+ })(),
775
+ (m.formAssociated = !0),
776
+ t(m, E);
777
+ })(),
778
+ (() => {
779
+ var o, i, l, r, c, d;
780
+ let h,
781
+ u,
782
+ m,
783
+ b,
784
+ g,
785
+ v,
786
+ y,
787
+ k = [
788
+ C({
789
+ tagName: "usa-checkbox",
790
+ shadowDom: [
791
+ p`*{box-sizing:border-box}:host{display:inline-block;font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif}:host([tiled]) label{background-color:#fff;border:2px solid #c9c9c9;border-radius:.25rem;color:#1b1b1b;padding:.75rem 1rem .75rem .75rem}label{display:inline-flex;cursor:pointer;font-size:1.06rem;line-height:1.3;flex-wrap:wrap}.checkbox{background:#fff;box-shadow:0 0 0 2px #1b1b1b;display:flex;align-items:center;justify-content:center;height:1.25rem;width:1.25rem;border-radius:2px;position:relative;margin-right:.75rem}input:checked+.checkbox{background-color:#005ea2;box-shadow:0 0 0 2px #005ea2}input:checked+.checkbox::after{content:" ";display:block;height:1rem;width:.5rem;border-right:4px solid #fff;border-bottom:4px solid #fff;transform:rotate(45deg) scale(.65)}input{height:0;width:0;position:absolute;left:-999em;right:auto}input:focus+.checkbox{outline:.25rem solid #2491ff;outline-offset:.25rem}.description{display:block;font-size:.93rem;margin-top:.5rem}.break{flex-basis:100%;height:0}.spacer{height:1.25rem;width:1.25rem;margin-right:.75rem}:host([tiled]) label:has(input:checked){background-color:rgba(0,94,162,.1);border-color:#005ea2}`,
792
+ f`<label><input type="checkbox"><div class="checkbox"></div><div class="title"><slot></slot></div></label>`,
793
+ ],
794
+ }),
795
+ ],
796
+ w = [],
797
+ E = HTMLElement,
798
+ W = [],
799
+ j = [],
800
+ A = [],
801
+ O = [],
802
+ P = [],
803
+ N = [],
804
+ H = [],
805
+ R = [],
806
+ T = [];
807
+ (u = class extends E {
808
+ constructor() {
809
+ super(...arguments),
810
+ l.set(this, (t(this, W), t(this, j, !1))),
811
+ r.set(this, (t(this, A), t(this, O, ""))),
812
+ c.set(this, (t(this, P), t(this, N, ""))),
813
+ d.set(this, (t(this, H), t(this, R, !1))),
814
+ o.set(this, (t(this, T), M("input"))),
815
+ i.set(this, this.attachInternals());
816
+ }
817
+ get checked() {
818
+ return s(this, l, "f");
819
+ }
820
+ set checked(e) {
821
+ n(this, l, e, "f");
822
+ }
823
+ get name() {
824
+ return s(this, r, "f");
825
+ }
826
+ set name(e) {
827
+ n(this, r, e, "f");
828
+ }
829
+ get value() {
830
+ return s(this, c, "f");
831
+ }
832
+ set value(e) {
833
+ n(this, c, e, "f");
834
+ }
835
+ get tiled() {
836
+ return s(this, d, "f");
837
+ }
838
+ set tiled(e) {
839
+ n(this, d, e, "f");
840
+ }
841
+ connectedCallback() {
842
+ const e = s(this, o, "f").call(this);
843
+ this.checked && s(this, i, "f").setFormValue(this.value),
844
+ (e.checked = this.checked),
845
+ (e.name = this.name);
846
+ }
847
+ attributeChangedCallback() {
848
+ const e = s(this, o, "f").call(this);
849
+ (e.checked = this.checked), (e.name = this.name);
850
+ }
851
+ onCheckboxChange() {
852
+ s(this, o, "f").call(this).checked
853
+ ? s(this, i, "f").setFormValue(this.value)
854
+ : s(this, i, "f").setFormValue(null);
855
+ }
856
+ }),
857
+ (o = new WeakMap()),
858
+ (i = new WeakMap()),
859
+ (l = new WeakMap()),
860
+ (r = new WeakMap()),
861
+ (c = new WeakMap()),
862
+ (d = new WeakMap()),
863
+ a(u, "USACheckboxElement"),
864
+ (() => {
865
+ const t =
866
+ "function" == typeof Symbol && Symbol.metadata
867
+ ? Object.create(E[Symbol.metadata] ?? null)
868
+ : void 0;
869
+ (m = [S()]),
870
+ (b = [S()]),
871
+ (g = [S()]),
872
+ (v = [S()]),
873
+ (y = [x("change", "input[type=checkbox]")]),
874
+ e(
875
+ u,
876
+ null,
877
+ m,
878
+ {
879
+ kind: "accessor",
880
+ name: "checked",
881
+ static: !1,
882
+ private: !1,
883
+ access: {
884
+ has: (e) => "checked" in e,
885
+ get: (e) => e.checked,
886
+ set: (e, t) => {
887
+ e.checked = t;
888
+ },
889
+ },
890
+ metadata: t,
891
+ },
892
+ j,
893
+ A
894
+ ),
895
+ e(
896
+ u,
897
+ null,
898
+ b,
899
+ {
900
+ kind: "accessor",
901
+ name: "name",
902
+ static: !1,
903
+ private: !1,
904
+ access: {
905
+ has: (e) => "name" in e,
906
+ get: (e) => e.name,
907
+ set: (e, t) => {
908
+ e.name = t;
909
+ },
910
+ },
911
+ metadata: t,
912
+ },
913
+ O,
914
+ P
915
+ ),
916
+ e(
917
+ u,
918
+ null,
919
+ g,
920
+ {
921
+ kind: "accessor",
922
+ name: "value",
923
+ static: !1,
924
+ private: !1,
925
+ access: {
926
+ has: (e) => "value" in e,
927
+ get: (e) => e.value,
928
+ set: (e, t) => {
929
+ e.value = t;
930
+ },
931
+ },
932
+ metadata: t,
933
+ },
934
+ N,
935
+ H
936
+ ),
937
+ e(
938
+ u,
939
+ null,
940
+ v,
941
+ {
942
+ kind: "accessor",
943
+ name: "tiled",
944
+ static: !1,
945
+ private: !1,
946
+ access: {
947
+ has: (e) => "tiled" in e,
948
+ get: (e) => e.tiled,
949
+ set: (e, t) => {
950
+ e.tiled = t;
951
+ },
952
+ },
953
+ metadata: t,
954
+ },
955
+ R,
956
+ T
957
+ ),
958
+ e(
959
+ u,
960
+ null,
961
+ y,
962
+ {
963
+ kind: "method",
964
+ name: "onCheckboxChange",
965
+ static: !1,
966
+ private: !1,
967
+ access: {
968
+ has: (e) => "onCheckboxChange" in e,
969
+ get: (e) => e.onCheckboxChange,
970
+ },
971
+ metadata: t,
972
+ },
973
+ null,
974
+ W
975
+ ),
976
+ e(
977
+ null,
978
+ (h = { value: u }),
979
+ k,
980
+ { kind: "class", name: u.name, metadata: t },
981
+ null,
982
+ w
983
+ ),
984
+ (u = h.value),
985
+ t &&
986
+ Object.defineProperty(u, Symbol.metadata, {
987
+ enumerable: !0,
988
+ configurable: !0,
989
+ writable: !0,
990
+ value: t,
991
+ });
992
+ })(),
993
+ (u.formAssociated = !0),
994
+ t(u, w);
995
+ })(),
996
+ (() => {
997
+ let s,
998
+ n,
999
+ o = [
1000
+ C({
1001
+ tagName: "usa-description",
1002
+ shadowDom: [
1003
+ p`:host{display:block;font-size:.93rem;margin-top:.5rem}`,
1004
+ f`<slot></slot>`,
1005
+ ],
1006
+ }),
1007
+ ],
1008
+ i = [],
1009
+ l = HTMLElement;
1010
+ (n = class extends l {}),
1011
+ a(n, "USADescriptionElement"),
1012
+ (() => {
1013
+ const a =
1014
+ "function" == typeof Symbol && Symbol.metadata
1015
+ ? Object.create(l[Symbol.metadata] ?? null)
1016
+ : void 0;
1017
+ e(
1018
+ null,
1019
+ (s = { value: n }),
1020
+ o,
1021
+ { kind: "class", name: n.name, metadata: a },
1022
+ null,
1023
+ i
1024
+ ),
1025
+ (n = s.value),
1026
+ a &&
1027
+ Object.defineProperty(n, Symbol.metadata, {
1028
+ enumerable: !0,
1029
+ configurable: !0,
1030
+ writable: !0,
1031
+ value: a,
1032
+ }),
1033
+ t(n, i);
1034
+ })();
1035
+ })(),
1036
+ (Symbol.metadata ??= Symbol("Symbol.metadata"));
1037
+ class j extends Map {}
1038
+ class A {
1039
+ scheduler = null;
1040
+ changes = new j();
1041
+ }
1042
+ class O extends WeakMap {
1043
+ read(e) {
1044
+ let t = this.get(e);
1045
+ return t || ((t = new A()), this.set(e, t)), t;
1046
+ }
1047
+ }
1048
+ class P {
1049
+ effects = new Set();
1050
+ }
1051
+ class N extends WeakMap {
1052
+ read(e) {
1053
+ let t = this.get(e);
1054
+ return t || ((t = new P()), this.set(e, t)), t;
1055
+ }
1056
+ }
1057
+ const H = new O(),
1058
+ R = new N();
1059
+ function T() {
1060
+ return function (e, t) {
1061
+ const a = R.read(t.metadata);
1062
+ return {
1063
+ init(e) {
1064
+ let a = null;
1065
+ try {
1066
+ a = t.access.get(this);
1067
+ } catch {}
1068
+ return a ? (Reflect.deleteProperty(this, t.name), a) : e;
1069
+ },
1070
+ set(s) {
1071
+ const n = H.read(this);
1072
+ null === n.scheduler &&
1073
+ (n.scheduler = Promise.resolve().then(() => {
1074
+ for (let e of a.effects) e.call(this, n.changes);
1075
+ (n.scheduler = null), n.changes.clear();
1076
+ })),
1077
+ n.changes.set(t.name, { oldValue: e.get.call(this), newValue: s }),
1078
+ e.set.call(this, s);
1079
+ },
1080
+ };
1081
+ };
1082
+ }
1083
+ function L() {
1084
+ return function (e, t) {
1085
+ R.read(t.metadata).effects.add(e);
1086
+ };
1087
+ }
1088
+ function D(e) {
1089
+ const t = new Image();
1090
+ return (
1091
+ (t.height = 40),
1092
+ (t.width = 40),
1093
+ (t.src = URL.createObjectURL(e)),
1094
+ (t.ariaHidden = "true"),
1095
+ t
1096
+ );
1097
+ }
1098
+ var I;
1099
+ (() => {
1100
+ var o, i;
1101
+ let l,
1102
+ r,
1103
+ c,
1104
+ d,
1105
+ h = [
1106
+ C({
1107
+ tagName: "usa-file-input-preview",
1108
+ shadowDom: [
1109
+ p`*{box-sizing:border-box}:host{display:block;font-size:.87rem;pointer-events:none;position:relative;text-align:left;word-wrap:anywhere;z-index:3}:host([hidden]){display:none}img{border:0;display:block;height:2.5rem;margin-right:.5rem;-o-object-fit:contain;object-fit:contain;width:2.5rem}.preview-heading{align-items:center;background:#d9e8f6;display:flex;pointer-events:none;position:relative;z-index:3;font-weight:700;justify-content:space-between;padding:.5rem;text-align:left}.preview-item{align-items:center;background:#d9e8f6;display:flex;padding:.5rem;width:100%;margin-top:1px}`,
1110
+ f`<slot class="preview-heading"></slot>`,
1111
+ ],
1112
+ }),
1113
+ ],
1114
+ u = [],
1115
+ m = HTMLElement,
1116
+ b = [],
1117
+ g = [],
1118
+ v = [];
1119
+ (r = class extends m {
1120
+ constructor() {
1121
+ super(...arguments),
1122
+ i.set(this, (t(this, b), t(this, g, null))),
1123
+ o.set(this, (t(this, v), new Map()));
1124
+ }
1125
+ get files() {
1126
+ return s(this, i, "f");
1127
+ }
1128
+ set files(e) {
1129
+ n(this, i, e, "f");
1130
+ }
1131
+ connectedCallback() {
1132
+ this.onChange();
1133
+ }
1134
+ onChange() {
1135
+ if (this.files) {
1136
+ this.hidden = !1;
1137
+ let e = new Set();
1138
+ for (let t of this.files)
1139
+ if ((e.add(t.name), !s(this, o, "f").has(t.name))) {
1140
+ const e = document.createElement("div");
1141
+ (e.id = t.name), (e.className = "preview-item");
1142
+ const a = D(t);
1143
+ e.append(a, document.createTextNode(t.name)),
1144
+ this.shadowRoot.append(e),
1145
+ s(this, o, "f").set(t.name, e);
1146
+ }
1147
+ for (let [t, a] of s(this, o, "f"))
1148
+ e.has(t) || (a.remove(), s(this, o, "f").delete(t));
1149
+ } else this.hidden = !0;
1150
+ }
1151
+ }),
1152
+ (o = new WeakMap()),
1153
+ (i = new WeakMap()),
1154
+ a(r, "USAFileInputPreviewElement"),
1155
+ (() => {
1156
+ const a =
1157
+ "function" == typeof Symbol && Symbol.metadata
1158
+ ? Object.create(m[Symbol.metadata] ?? null)
1159
+ : void 0;
1160
+ (c = [T()]),
1161
+ (d = [L()]),
1162
+ e(
1163
+ r,
1164
+ null,
1165
+ c,
1166
+ {
1167
+ kind: "accessor",
1168
+ name: "files",
1169
+ static: !1,
1170
+ private: !1,
1171
+ access: {
1172
+ has: (e) => "files" in e,
1173
+ get: (e) => e.files,
1174
+ set: (e, t) => {
1175
+ e.files = t;
1176
+ },
1177
+ },
1178
+ metadata: a,
1179
+ },
1180
+ g,
1181
+ v
1182
+ ),
1183
+ e(
1184
+ r,
1185
+ null,
1186
+ d,
1187
+ {
1188
+ kind: "method",
1189
+ name: "onChange",
1190
+ static: !1,
1191
+ private: !1,
1192
+ access: { has: (e) => "onChange" in e, get: (e) => e.onChange },
1193
+ metadata: a,
1194
+ },
1195
+ null,
1196
+ b
1197
+ ),
1198
+ e(
1199
+ null,
1200
+ (l = { value: r }),
1201
+ h,
1202
+ { kind: "class", name: r.name, metadata: a },
1203
+ null,
1204
+ u
1205
+ ),
1206
+ (r = l.value),
1207
+ a &&
1208
+ Object.defineProperty(r, Symbol.metadata, {
1209
+ enumerable: !0,
1210
+ configurable: !0,
1211
+ writable: !0,
1212
+ value: a,
1213
+ }),
1214
+ t(r, u);
1215
+ })();
1216
+ })(),
1217
+ (() => {
1218
+ var o, i, l, r, c, d;
1219
+ let m,
1220
+ b,
1221
+ g,
1222
+ v = [
1223
+ C({
1224
+ tagName: "usa-icon",
1225
+ shadowDom: [
1226
+ p`:host{display:inline-block;height:2rem;position:relative;width:2rem}svg{fill:currentColor;height:100%;width:100%}`,
1227
+ f`<svg class="usa-icon" aria-hidden="true" focusable="false" role="img"><use></use></svg>`,
1228
+ ],
1229
+ }),
1230
+ h(),
1231
+ ],
1232
+ y = [],
1233
+ k = HTMLElement,
1234
+ w = [],
1235
+ x = [];
1236
+ (b = class extends k {
1237
+ constructor() {
1238
+ super(...arguments),
1239
+ o.add(this),
1240
+ d.set(this, t(this, w, "accessibility_new")),
1241
+ i.set(this, (t(this, x), M("use"))),
1242
+ l.set(this, u(E)),
1243
+ r.set(this, !1);
1244
+ }
1245
+ get icon() {
1246
+ return s(this, d, "f");
1247
+ }
1248
+ set icon(e) {
1249
+ n(this, d, e, "f");
1250
+ }
1251
+ connectedCallback() {
1252
+ n(this, r, !0, "f"), s(this, o, "m", c).call(this);
1253
+ }
1254
+ attributeChangedCallback() {
1255
+ s(this, r, "f") && s(this, o, "m", c).call(this);
1256
+ }
1257
+ }),
1258
+ (i = new WeakMap()),
1259
+ (l = new WeakMap()),
1260
+ (r = new WeakMap()),
1261
+ (o = new WeakSet()),
1262
+ (d = new WeakMap()),
1263
+ (c = function () {
1264
+ const e = s(this, l, "f").call(this),
1265
+ t = s(this, i, "f").call(this);
1266
+ this.icon !== t.getAttribute("href") &&
1267
+ t.setAttribute("href", `${e.spriteSheet}#${this.icon}`);
1268
+ }),
1269
+ a(b, "USAIconElement"),
1270
+ (() => {
1271
+ const a =
1272
+ "function" == typeof Symbol && Symbol.metadata
1273
+ ? Object.create(k[Symbol.metadata] ?? null)
1274
+ : void 0;
1275
+ (g = [S()]),
1276
+ e(
1277
+ b,
1278
+ null,
1279
+ g,
1280
+ {
1281
+ kind: "accessor",
1282
+ name: "icon",
1283
+ static: !1,
1284
+ private: !1,
1285
+ access: {
1286
+ has: (e) => "icon" in e,
1287
+ get: (e) => e.icon,
1288
+ set: (e, t) => {
1289
+ e.icon = t;
1290
+ },
1291
+ },
1292
+ metadata: a,
1293
+ },
1294
+ w,
1295
+ x
1296
+ ),
1297
+ e(
1298
+ null,
1299
+ (m = { value: b }),
1300
+ v,
1301
+ { kind: "class", name: b.name, metadata: a },
1302
+ null,
1303
+ y
1304
+ ),
1305
+ (b = m.value),
1306
+ a &&
1307
+ Object.defineProperty(b, Symbol.metadata, {
1308
+ enumerable: !0,
1309
+ configurable: !0,
1310
+ writable: !0,
1311
+ value: a,
1312
+ }),
1313
+ t(b, y);
1314
+ })();
1315
+ })(),
1316
+ (() => {
1317
+ var o, i, l, r, c, d;
1318
+ let h,
1319
+ u,
1320
+ m,
1321
+ b,
1322
+ g,
1323
+ v,
1324
+ y,
1325
+ k,
1326
+ w = [
1327
+ C({
1328
+ tagName: "usa-input",
1329
+ shadowDom: [
1330
+ p`*{box-sizing:border-box}:host{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.06rem;line-height:1.3;display:block;font-weight:400;max-width:30rem;margin-bottom:1.5rem}input{border-width:1px;border-color:#5c5c5c;border-style:solid;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;line-height:1.3;font-size:1.06rem;margin-top:.5rem;padding:.5rem;width:100%}input:not(:disabled):focus{outline:.25rem solid #2491ff;outline-offset:0}`,
1331
+ f`<label><slot></slot><input></label>`,
1332
+ ],
1333
+ }),
1334
+ ],
1335
+ E = [],
1336
+ W = HTMLElement,
1337
+ j = [],
1338
+ A = [],
1339
+ O = [],
1340
+ P = [],
1341
+ N = [],
1342
+ H = [],
1343
+ R = [],
1344
+ D = [],
1345
+ I = [];
1346
+ (u = class extends W {
1347
+ constructor() {
1348
+ super(...arguments),
1349
+ l.set(this, (t(this, j), t(this, A, ""))),
1350
+ r.set(this, (t(this, O), t(this, P, "on"))),
1351
+ c.set(this, (t(this, N), t(this, H, ""))),
1352
+ d.set(this, (t(this, R), t(this, D, ""))),
1353
+ o.set(this, (t(this, I), this.attachInternals())),
1354
+ i.set(this, M("input"));
1355
+ }
1356
+ get name() {
1357
+ return s(this, l, "f");
1358
+ }
1359
+ set name(e) {
1360
+ n(this, l, e, "f");
1361
+ }
1362
+ get autocomplete() {
1363
+ return s(this, r, "f");
1364
+ }
1365
+ set autocomplete(e) {
1366
+ n(this, r, e, "f");
1367
+ }
1368
+ get placeholder() {
1369
+ return s(this, c, "f");
1370
+ }
1371
+ set placeholder(e) {
1372
+ n(this, c, e, "f");
1373
+ }
1374
+ get value() {
1375
+ return s(this, d, "f");
1376
+ }
1377
+ set value(e) {
1378
+ n(this, d, e, "f");
1379
+ }
1380
+ get selectionStart() {
1381
+ const { selectionStart: e } = s(this, i, "f").call(this);
1382
+ return e;
1383
+ }
1384
+ setSelectionRange(e, t) {
1385
+ s(this, i, "f").call(this).setSelectionRange(e, t);
1386
+ }
1387
+ onChange() {
1388
+ s(this, i, "f").call(this).value = this.value;
1389
+ }
1390
+ onInputChange() {
1391
+ const e = s(this, i, "f").call(this);
1392
+ s(this, o, "f").setFormValue(e.value), (this.value = e.value);
1393
+ }
1394
+ attributeChangedCallback(e) {
1395
+ const t = s(this, i, "f").call(this);
1396
+ switch (e) {
1397
+ case "autocomplete":
1398
+ t.autocomplete = this.autocomplete;
1399
+ break;
1400
+ case "placeholder":
1401
+ t.placeholder = this.placeholder;
1402
+ break;
1403
+ case "name":
1404
+ t.name = this.name;
1405
+ break;
1406
+ case "value":
1407
+ (t.value = this.value), s(this, o, "f").setFormValue(this.value);
1408
+ }
1409
+ }
1410
+ }),
1411
+ (o = new WeakMap()),
1412
+ (i = new WeakMap()),
1413
+ (l = new WeakMap()),
1414
+ (r = new WeakMap()),
1415
+ (c = new WeakMap()),
1416
+ (d = new WeakMap()),
1417
+ a(u, "USATextInputElement"),
1418
+ (() => {
1419
+ const t =
1420
+ "function" == typeof Symbol && Symbol.metadata
1421
+ ? Object.create(W[Symbol.metadata] ?? null)
1422
+ : void 0;
1423
+ (m = [S()]),
1424
+ (b = [S()]),
1425
+ (g = [S()]),
1426
+ (v = [S({ reflect: !1 }), T()]),
1427
+ (y = [L()]),
1428
+ (k = [x("input")]),
1429
+ e(
1430
+ u,
1431
+ null,
1432
+ m,
1433
+ {
1434
+ kind: "accessor",
1435
+ name: "name",
1436
+ static: !1,
1437
+ private: !1,
1438
+ access: {
1439
+ has: (e) => "name" in e,
1440
+ get: (e) => e.name,
1441
+ set: (e, t) => {
1442
+ e.name = t;
1443
+ },
1444
+ },
1445
+ metadata: t,
1446
+ },
1447
+ A,
1448
+ O
1449
+ ),
1450
+ e(
1451
+ u,
1452
+ null,
1453
+ b,
1454
+ {
1455
+ kind: "accessor",
1456
+ name: "autocomplete",
1457
+ static: !1,
1458
+ private: !1,
1459
+ access: {
1460
+ has: (e) => "autocomplete" in e,
1461
+ get: (e) => e.autocomplete,
1462
+ set: (e, t) => {
1463
+ e.autocomplete = t;
1464
+ },
1465
+ },
1466
+ metadata: t,
1467
+ },
1468
+ P,
1469
+ N
1470
+ ),
1471
+ e(
1472
+ u,
1473
+ null,
1474
+ g,
1475
+ {
1476
+ kind: "accessor",
1477
+ name: "placeholder",
1478
+ static: !1,
1479
+ private: !1,
1480
+ access: {
1481
+ has: (e) => "placeholder" in e,
1482
+ get: (e) => e.placeholder,
1483
+ set: (e, t) => {
1484
+ e.placeholder = t;
1485
+ },
1486
+ },
1487
+ metadata: t,
1488
+ },
1489
+ H,
1490
+ R
1491
+ ),
1492
+ e(
1493
+ u,
1494
+ null,
1495
+ v,
1496
+ {
1497
+ kind: "accessor",
1498
+ name: "value",
1499
+ static: !1,
1500
+ private: !1,
1501
+ access: {
1502
+ has: (e) => "value" in e,
1503
+ get: (e) => e.value,
1504
+ set: (e, t) => {
1505
+ e.value = t;
1506
+ },
1507
+ },
1508
+ metadata: t,
1509
+ },
1510
+ D,
1511
+ I
1512
+ ),
1513
+ e(
1514
+ u,
1515
+ null,
1516
+ y,
1517
+ {
1518
+ kind: "method",
1519
+ name: "onChange",
1520
+ static: !1,
1521
+ private: !1,
1522
+ access: { has: (e) => "onChange" in e, get: (e) => e.onChange },
1523
+ metadata: t,
1524
+ },
1525
+ null,
1526
+ j
1527
+ ),
1528
+ e(
1529
+ u,
1530
+ null,
1531
+ k,
1532
+ {
1533
+ kind: "method",
1534
+ name: "onInputChange",
1535
+ static: !1,
1536
+ private: !1,
1537
+ access: {
1538
+ has: (e) => "onInputChange" in e,
1539
+ get: (e) => e.onInputChange,
1540
+ },
1541
+ metadata: t,
1542
+ },
1543
+ null,
1544
+ j
1545
+ ),
1546
+ e(
1547
+ null,
1548
+ (h = { value: u }),
1549
+ w,
1550
+ { kind: "class", name: u.name, metadata: t },
1551
+ null,
1552
+ E
1553
+ ),
1554
+ (u = h.value),
1555
+ t &&
1556
+ Object.defineProperty(u, Symbol.metadata, {
1557
+ enumerable: !0,
1558
+ configurable: !0,
1559
+ writable: !0,
1560
+ value: t,
1561
+ });
1562
+ })(),
1563
+ (u.formAssociated = !0),
1564
+ t(u, E);
1565
+ })(),
1566
+ (function (e) {
1567
+ (e.Any = "*"), (e.Number = "9"), (e.Letter = "A");
1568
+ })(I || (I = {}));
1569
+ const z = Object.values(I),
1570
+ U = { Letters: /^[a-z]/i, Numbers: /^[0-9]/i };
1571
+ function V(e, t) {
1572
+ const a = e.replace(/[^a-z0-9]/gi, ""),
1573
+ s = a.split("");
1574
+ let n = 0,
1575
+ o = "";
1576
+ for (var i = 0; i < t.length; i++) {
1577
+ const e = t[i],
1578
+ a = s[n];
1579
+ a &&
1580
+ e &&
1581
+ (e === I.Any
1582
+ ? ((o += a), n++)
1583
+ : e === I.Number
1584
+ ? (/^[0-9]/i.test(a) && (o += a), n++)
1585
+ : e === I.Letter
1586
+ ? (/^[a-z]/i.test(a) && (o += a), n++)
1587
+ : (o += e));
1588
+ }
1589
+ return { raw: a, formatted: o };
1590
+ }
1591
+ (() => {
1592
+ var o, i, l;
1593
+ let r,
1594
+ c,
1595
+ d,
1596
+ h,
1597
+ u,
1598
+ m = [
1599
+ C({
1600
+ tagName: "usa-input-mask",
1601
+ shadowDom: [p`:host{display:contents}`, f`<slot></slot>`],
1602
+ }),
1603
+ ],
1604
+ b = [],
1605
+ g = HTMLElement,
1606
+ v = [],
1607
+ y = [],
1608
+ k = [];
1609
+ (c = class extends g {
1610
+ get mask() {
1611
+ return s(this, l, "f");
1612
+ }
1613
+ set mask(e) {
1614
+ n(this, l, e, "f");
1615
+ }
1616
+ connectedCallback() {
1617
+ for (let e of this.querySelectorAll("[mask]")) {
1618
+ const { formatted: t } = V(e.value, s(this, o, "m", i).call(this, e));
1619
+ e.value = t;
1620
+ }
1621
+ }
1622
+ async onInput(e) {
1623
+ const t = e.target,
1624
+ a = t.selectionStart || 0,
1625
+ n = t.value,
1626
+ l = s(this, o, "m", i).call(this, t),
1627
+ { formatted: r } = V(t.value, l);
1628
+ t.value = r;
1629
+ const c = t.value.length - n.length,
1630
+ d = l[a - 1];
1631
+ await Promise.resolve(),
1632
+ d && !z.includes(d) && c > 0
1633
+ ? t.setSelectionRange(a + c, a + c)
1634
+ : t.setSelectionRange(a, a),
1635
+ n !== t.value && t.dispatchEvent(new Event("input", { bubbles: !0 }));
1636
+ }
1637
+ onKeyDown(e) {
1638
+ const t = e.target,
1639
+ a = s(this, o, "m", i).call(this, t),
1640
+ n = a[t.selectionStart || 0];
1641
+ 1 === e.key.length &&
1642
+ /^[a-z0-9]/i.test(e.key) &&
1643
+ (t.value.length >= a.length
1644
+ ? e.preventDefault()
1645
+ : n === I.Number
1646
+ ? U.Numbers.test(e.key) || e.preventDefault()
1647
+ : n === I.Letter &&
1648
+ (U.Letters.test(e.key) || e.preventDefault()));
1649
+ }
1650
+ constructor() {
1651
+ super(...arguments),
1652
+ o.add(this),
1653
+ l.set(this, (t(this, v), t(this, y, ""))),
1654
+ t(this, k);
1655
+ }
1656
+ }),
1657
+ (o = new WeakSet()),
1658
+ (l = new WeakMap()),
1659
+ (i = function (e) {
1660
+ return this.mask || e.getAttribute("mask") || "";
1661
+ }),
1662
+ a(c, "USAInputMaskElement"),
1663
+ (() => {
1664
+ const a =
1665
+ "function" == typeof Symbol && Symbol.metadata
1666
+ ? Object.create(g[Symbol.metadata] ?? null)
1667
+ : void 0;
1668
+ (d = [S()]),
1669
+ (h = [x("input")]),
1670
+ (u = [x("keydown")]),
1671
+ e(
1672
+ c,
1673
+ null,
1674
+ d,
1675
+ {
1676
+ kind: "accessor",
1677
+ name: "mask",
1678
+ static: !1,
1679
+ private: !1,
1680
+ access: {
1681
+ has: (e) => "mask" in e,
1682
+ get: (e) => e.mask,
1683
+ set: (e, t) => {
1684
+ e.mask = t;
1685
+ },
1686
+ },
1687
+ metadata: a,
1688
+ },
1689
+ y,
1690
+ k
1691
+ ),
1692
+ e(
1693
+ c,
1694
+ null,
1695
+ h,
1696
+ {
1697
+ kind: "method",
1698
+ name: "onInput",
1699
+ static: !1,
1700
+ private: !1,
1701
+ access: { has: (e) => "onInput" in e, get: (e) => e.onInput },
1702
+ metadata: a,
1703
+ },
1704
+ null,
1705
+ v
1706
+ ),
1707
+ e(
1708
+ c,
1709
+ null,
1710
+ u,
1711
+ {
1712
+ kind: "method",
1713
+ name: "onKeyDown",
1714
+ static: !1,
1715
+ private: !1,
1716
+ access: { has: (e) => "onKeyDown" in e, get: (e) => e.onKeyDown },
1717
+ metadata: a,
1718
+ },
1719
+ null,
1720
+ v
1721
+ ),
1722
+ e(
1723
+ null,
1724
+ (r = { value: c }),
1725
+ m,
1726
+ { kind: "class", name: c.name, metadata: a },
1727
+ null,
1728
+ b
1729
+ ),
1730
+ (c = r.value),
1731
+ a &&
1732
+ Object.defineProperty(c, Symbol.metadata, {
1733
+ enumerable: !0,
1734
+ configurable: !0,
1735
+ writable: !0,
1736
+ value: a,
1737
+ }),
1738
+ t(c, b);
1739
+ })();
1740
+ })(),
1741
+ (() => {
1742
+ var o, i, l, r, c;
1743
+ let d,
1744
+ h,
1745
+ u,
1746
+ m,
1747
+ b,
1748
+ g,
1749
+ v = [
1750
+ C({
1751
+ tagName: "usa-link",
1752
+ shadowDom: [
1753
+ p`:host{display:inline;color:#005ea2;text-decoration:underline}a{color:inherit}`,
1754
+ f`<a><slot></slot></a>`,
1755
+ ],
1756
+ }),
1757
+ ],
1758
+ y = [],
1759
+ k = HTMLElement,
1760
+ w = [],
1761
+ x = [],
1762
+ E = [],
1763
+ W = [],
1764
+ j = [],
1765
+ A = [],
1766
+ O = [],
1767
+ P = [];
1768
+ (h = class extends k {
1769
+ constructor() {
1770
+ super(...arguments),
1771
+ i.set(this, t(this, w, "")),
1772
+ l.set(this, (t(this, x), t(this, E, ""))),
1773
+ r.set(this, (t(this, W), t(this, j, ""))),
1774
+ c.set(this, (t(this, A), t(this, O, !1))),
1775
+ o.set(this, (t(this, P), M("a")));
1776
+ }
1777
+ get href() {
1778
+ return s(this, i, "f");
1779
+ }
1780
+ set href(e) {
1781
+ n(this, i, e, "f");
1782
+ }
1783
+ get target() {
1784
+ return s(this, l, "f");
1785
+ }
1786
+ set target(e) {
1787
+ n(this, l, e, "f");
1788
+ }
1789
+ get title() {
1790
+ return s(this, r, "f");
1791
+ }
1792
+ set title(e) {
1793
+ n(this, r, e, "f");
1794
+ }
1795
+ get disabled() {
1796
+ return s(this, c, "f");
1797
+ }
1798
+ set disabled(e) {
1799
+ n(this, c, e, "f");
1800
+ }
1801
+ attributeChangedCallback(e) {
1802
+ const t = s(this, o, "f").call(this);
1803
+ switch (e) {
1804
+ case "href":
1805
+ t.href = this.href;
1806
+ break;
1807
+ case "target":
1808
+ t.target = this.target;
1809
+ break;
1810
+ case "title":
1811
+ t.target = this.title;
1812
+ }
1813
+ }
1814
+ }),
1815
+ (o = new WeakMap()),
1816
+ (i = new WeakMap()),
1817
+ (l = new WeakMap()),
1818
+ (r = new WeakMap()),
1819
+ (c = new WeakMap()),
1820
+ a(h, "USALinkElement"),
1821
+ (() => {
1822
+ const a =
1823
+ "function" == typeof Symbol && Symbol.metadata
1824
+ ? Object.create(k[Symbol.metadata] ?? null)
1825
+ : void 0;
1826
+ (u = [S()]),
1827
+ (m = [S()]),
1828
+ (b = [S()]),
1829
+ (g = [S()]),
1830
+ e(
1831
+ h,
1832
+ null,
1833
+ u,
1834
+ {
1835
+ kind: "accessor",
1836
+ name: "href",
1837
+ static: !1,
1838
+ private: !1,
1839
+ access: {
1840
+ has: (e) => "href" in e,
1841
+ get: (e) => e.href,
1842
+ set: (e, t) => {
1843
+ e.href = t;
1844
+ },
1845
+ },
1846
+ metadata: a,
1847
+ },
1848
+ w,
1849
+ x
1850
+ ),
1851
+ e(
1852
+ h,
1853
+ null,
1854
+ m,
1855
+ {
1856
+ kind: "accessor",
1857
+ name: "target",
1858
+ static: !1,
1859
+ private: !1,
1860
+ access: {
1861
+ has: (e) => "target" in e,
1862
+ get: (e) => e.target,
1863
+ set: (e, t) => {
1864
+ e.target = t;
1865
+ },
1866
+ },
1867
+ metadata: a,
1868
+ },
1869
+ E,
1870
+ W
1871
+ ),
1872
+ e(
1873
+ h,
1874
+ null,
1875
+ b,
1876
+ {
1877
+ kind: "accessor",
1878
+ name: "title",
1879
+ static: !1,
1880
+ private: !1,
1881
+ access: {
1882
+ has: (e) => "title" in e,
1883
+ get: (e) => e.title,
1884
+ set: (e, t) => {
1885
+ e.title = t;
1886
+ },
1887
+ },
1888
+ metadata: a,
1889
+ },
1890
+ j,
1891
+ A
1892
+ ),
1893
+ e(
1894
+ h,
1895
+ null,
1896
+ g,
1897
+ {
1898
+ kind: "accessor",
1899
+ name: "disabled",
1900
+ static: !1,
1901
+ private: !1,
1902
+ access: {
1903
+ has: (e) => "disabled" in e,
1904
+ get: (e) => e.disabled,
1905
+ set: (e, t) => {
1906
+ e.disabled = t;
1907
+ },
1908
+ },
1909
+ metadata: a,
1910
+ },
1911
+ O,
1912
+ P
1913
+ ),
1914
+ e(
1915
+ null,
1916
+ (d = { value: h }),
1917
+ v,
1918
+ { kind: "class", name: h.name, metadata: a },
1919
+ null,
1920
+ y
1921
+ ),
1922
+ (h = d.value),
1923
+ a &&
1924
+ Object.defineProperty(h, Symbol.metadata, {
1925
+ enumerable: !0,
1926
+ configurable: !0,
1927
+ writable: !0,
1928
+ value: a,
1929
+ }),
1930
+ t(h, y);
1931
+ })();
1932
+ })();
1933
+ let F = (() => {
1934
+ var o, i, l, r, c;
1935
+ let d,
1936
+ h,
1937
+ u,
1938
+ m,
1939
+ b,
1940
+ g,
1941
+ v = [
1942
+ C({
1943
+ tagName: "usa-radio",
1944
+ shadowDom: [
1945
+ p`:host{display:block}.radios{display:flex;flex-direction:column;gap:1rem}label{display:flex;cursor:pointer;gap:.5rem}input{position:absolute;left:-999em;right:auto}label::before{content:" ";display:block;left:0;height:1.25rem;border-radius:99rem;width:1.25rem;background:#fff;box-shadow:0 0 0 2px #1b1b1b}label:has(input:checked)::before{background-color:#005ea2;box-shadow:0 0 0 2px #005ea2,inset 0 0 0 2px #fff}label:has(input:focus)::before{outline:.25rem solid #2491ff;outline-offset:.25rem}:host([tiled]) .radios{gap:.5rem}:host([tiled]) label{background-color:#fff;border:2px solid #c9c9c9;color:#1b1b1b;border-radius:.25rem;padding:.75rem 1rem .75rem .75rem}:host([tiled]) label:has(input:checked){background-color:rgba(0,94,162,.1);border-color:#005ea2}`,
1946
+ f`<slot></slot><div class="radios"></div>`,
1947
+ ],
1948
+ }),
1949
+ ],
1950
+ y = [],
1951
+ k = HTMLElement,
1952
+ w = [],
1953
+ E = [],
1954
+ W = [],
1955
+ j = [],
1956
+ A = [],
1957
+ O = [],
1958
+ P = [];
1959
+ return (
1960
+ (h = class extends k {
1961
+ constructor() {
1962
+ super(...arguments),
1963
+ l.set(this, (t(this, w), t(this, E, ""))),
1964
+ r.set(this, (t(this, W), t(this, j, ""))),
1965
+ c.set(this, (t(this, A), t(this, O, !1))),
1966
+ o.set(this, (t(this, P), M(".radios"))),
1967
+ i.set(this, this.attachInternals());
1968
+ }
1969
+ get value() {
1970
+ return s(this, l, "f");
1971
+ }
1972
+ set value(e) {
1973
+ n(this, l, e, "f");
1974
+ }
1975
+ get name() {
1976
+ return s(this, r, "f");
1977
+ }
1978
+ set name(e) {
1979
+ n(this, r, e, "f");
1980
+ }
1981
+ get tiled() {
1982
+ return s(this, c, "f");
1983
+ }
1984
+ set tiled(e) {
1985
+ n(this, c, e, "f");
1986
+ }
1987
+ onChange(e) {
1988
+ e.target instanceof HTMLInputElement &&
1989
+ e.target.checked &&
1990
+ ((this.value = e.target.value),
1991
+ s(this, i, "f").setFormValue(e.target.value));
1992
+ }
1993
+ connectedCallback() {
1994
+ this.value && s(this, i, "f").setFormValue(this.value);
1995
+ }
1996
+ attributeChangedCallback() {
1997
+ const e = s(this, o, "f").call(this);
1998
+ for (let t of e.querySelectorAll("input"))
1999
+ (t.checked = t.value === this.value), (t.name = this.name);
2000
+ }
2001
+ onOptionAdded(e) {
2002
+ const t = s(this, o, "f").call(this),
2003
+ a = document.createElement("label");
2004
+ a.id = e.value;
2005
+ const n = document.createElement("input");
2006
+ (n.type = "radio"),
2007
+ (n.name = this.name),
2008
+ (n.value = e.value),
2009
+ (n.checked = this.value === e.value);
2010
+ const i = document.createElement("slot");
2011
+ (i.name = e.value), a.append(n, i), t.append(a);
2012
+ }
2013
+ onOptionRemoved(e) {
2014
+ const t = s(this, o, "f").call(this).querySelector(`#${e.value}`);
2015
+ t && t.remove();
2016
+ }
2017
+ }),
2018
+ (o = new WeakMap()),
2019
+ (i = new WeakMap()),
2020
+ (l = new WeakMap()),
2021
+ (r = new WeakMap()),
2022
+ (c = new WeakMap()),
2023
+ a(h, "USARadioElement"),
2024
+ (() => {
2025
+ const t =
2026
+ "function" == typeof Symbol && Symbol.metadata
2027
+ ? Object.create(k[Symbol.metadata] ?? null)
2028
+ : void 0;
2029
+ (u = [S()]),
2030
+ (m = [S()]),
2031
+ (b = [S()]),
2032
+ (g = [x("change")]),
2033
+ e(
2034
+ h,
2035
+ null,
2036
+ u,
2037
+ {
2038
+ kind: "accessor",
2039
+ name: "value",
2040
+ static: !1,
2041
+ private: !1,
2042
+ access: {
2043
+ has: (e) => "value" in e,
2044
+ get: (e) => e.value,
2045
+ set: (e, t) => {
2046
+ e.value = t;
2047
+ },
2048
+ },
2049
+ metadata: t,
2050
+ },
2051
+ E,
2052
+ W
2053
+ ),
2054
+ e(
2055
+ h,
2056
+ null,
2057
+ m,
2058
+ {
2059
+ kind: "accessor",
2060
+ name: "name",
2061
+ static: !1,
2062
+ private: !1,
2063
+ access: {
2064
+ has: (e) => "name" in e,
2065
+ get: (e) => e.name,
2066
+ set: (e, t) => {
2067
+ e.name = t;
2068
+ },
2069
+ },
2070
+ metadata: t,
2071
+ },
2072
+ j,
2073
+ A
2074
+ ),
2075
+ e(
2076
+ h,
2077
+ null,
2078
+ b,
2079
+ {
2080
+ kind: "accessor",
2081
+ name: "tiled",
2082
+ static: !1,
2083
+ private: !1,
2084
+ access: {
2085
+ has: (e) => "tiled" in e,
2086
+ get: (e) => e.tiled,
2087
+ set: (e, t) => {
2088
+ e.tiled = t;
2089
+ },
2090
+ },
2091
+ metadata: t,
2092
+ },
2093
+ O,
2094
+ P
2095
+ ),
2096
+ e(
2097
+ h,
2098
+ null,
2099
+ g,
2100
+ {
2101
+ kind: "method",
2102
+ name: "onChange",
2103
+ static: !1,
2104
+ private: !1,
2105
+ access: { has: (e) => "onChange" in e, get: (e) => e.onChange },
2106
+ metadata: t,
2107
+ },
2108
+ null,
2109
+ w
2110
+ ),
2111
+ e(
2112
+ null,
2113
+ (d = { value: h }),
2114
+ v,
2115
+ { kind: "class", name: h.name, metadata: t },
2116
+ null,
2117
+ y
2118
+ ),
2119
+ (h = d.value),
2120
+ t &&
2121
+ Object.defineProperty(h, Symbol.metadata, {
2122
+ enumerable: !0,
2123
+ configurable: !0,
2124
+ writable: !0,
2125
+ value: t,
2126
+ });
2127
+ })(),
2128
+ (h.formAssociated = !0),
2129
+ t(h, y),
2130
+ h
2131
+ );
2132
+ })();
2133
+ (() => {
2134
+ var o, i;
2135
+ let l,
2136
+ r,
2137
+ c,
2138
+ d = [
2139
+ C({
2140
+ tagName: "usa-radio-option",
2141
+ shadowDom: [
2142
+ p`:host{display:inline-flex;flex-direction:column}`,
2143
+ f`<slot></slot>`,
2144
+ ],
2145
+ }),
2146
+ ],
2147
+ h = [],
2148
+ u = HTMLElement,
2149
+ m = [],
2150
+ b = [];
2151
+ (r = class extends u {
2152
+ constructor() {
2153
+ super(...arguments),
2154
+ i.set(this, t(this, m, "")),
2155
+ o.set(this, (t(this, b), null));
2156
+ }
2157
+ get value() {
2158
+ return s(this, i, "f");
2159
+ }
2160
+ set value(e) {
2161
+ n(this, i, e, "f");
2162
+ }
2163
+ attributeChangedCallback() {
2164
+ this.slot = this.value;
2165
+ }
2166
+ connectedCallback() {
2167
+ this.parentElement instanceof F &&
2168
+ (n(this, o, this.parentElement, "f"),
2169
+ this.parentElement.onOptionAdded(this));
2170
+ }
2171
+ disconnectedCallback() {
2172
+ s(this, o, "f") && s(this, o, "f").onOptionRemoved(this);
2173
+ }
2174
+ }),
2175
+ (o = new WeakMap()),
2176
+ (i = new WeakMap()),
2177
+ a(r, "USARadioOptionElement"),
2178
+ (() => {
2179
+ const a =
2180
+ "function" == typeof Symbol && Symbol.metadata
2181
+ ? Object.create(u[Symbol.metadata] ?? null)
2182
+ : void 0;
2183
+ (c = [S()]),
2184
+ e(
2185
+ r,
2186
+ null,
2187
+ c,
2188
+ {
2189
+ kind: "accessor",
2190
+ name: "value",
2191
+ static: !1,
2192
+ private: !1,
2193
+ access: {
2194
+ has: (e) => "value" in e,
2195
+ get: (e) => e.value,
2196
+ set: (e, t) => {
2197
+ e.value = t;
2198
+ },
2199
+ },
2200
+ metadata: a,
2201
+ },
2202
+ m,
2203
+ b
2204
+ ),
2205
+ e(
2206
+ null,
2207
+ (l = { value: r }),
2208
+ d,
2209
+ { kind: "class", name: r.name, metadata: a },
2210
+ null,
2211
+ h
2212
+ ),
2213
+ (r = l.value),
2214
+ a &&
2215
+ Object.defineProperty(r, Symbol.metadata, {
2216
+ enumerable: !0,
2217
+ configurable: !0,
2218
+ writable: !0,
2219
+ value: a,
2220
+ }),
2221
+ t(r, h);
2222
+ })();
2223
+ })();
2224
+ let q = (() => {
2225
+ var o, i, l, r, c, d;
2226
+ let h,
2227
+ u,
2228
+ m,
2229
+ b,
2230
+ g,
2231
+ v = [
2232
+ C({
2233
+ tagName: "usa-select",
2234
+ shadowDom: [
2235
+ p`:host{display:block;font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;line-height:1.3;position:relative;width:100%;max-width:30rem}select{font-size:1.06rem;appearance:none;border-width:1px;border-color:#5c5c5c;border-style:solid;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:.5rem;padding:.5rem;width:100%}select:not(:disabled):focus{outline:.25rem solid #2491ff;outline-offset:0}usa-icon{position:absolute;right:.5rem;bottom:12%;height:1.5rem;width:1.5rem}`,
2236
+ f`<usa-icon icon="unfold_more"></usa-icon><label><div class="label"><slot></slot></div><select></select></label>`,
2237
+ ],
2238
+ }),
2239
+ ],
2240
+ y = [],
2241
+ k = HTMLElement,
2242
+ w = [],
2243
+ E = [],
2244
+ W = [],
2245
+ j = [],
2246
+ A = [];
2247
+ return (
2248
+ (u = class extends k {
2249
+ constructor() {
2250
+ super(...arguments),
2251
+ o.add(this),
2252
+ c.set(this, (t(this, w), t(this, E, ""))),
2253
+ d.set(this, (t(this, W), t(this, j, ""))),
2254
+ i.set(this, (t(this, A), M("select"))),
2255
+ l.set(this, this.attachInternals());
2256
+ }
2257
+ get value() {
2258
+ return s(this, c, "f");
2259
+ }
2260
+ set value(e) {
2261
+ n(this, c, e, "f");
2262
+ }
2263
+ get name() {
2264
+ return s(this, d, "f");
2265
+ }
2266
+ set name(e) {
2267
+ n(this, d, e, "f");
2268
+ }
2269
+ connectedCallback() {
2270
+ const e = s(this, i, "f").call(this);
2271
+ (e.value = this.value),
2272
+ (e.name = this.name),
2273
+ s(this, l, "f").setFormValue(this.value);
2274
+ }
2275
+ onSelectChange() {
2276
+ const e = s(this, i, "f").call(this);
2277
+ s(this, l, "f").setFormValue(e.value);
2278
+ }
2279
+ onOptionAdded(e) {
2280
+ const t = document.createElement("option");
2281
+ (t.value = e.value),
2282
+ (t.innerHTML = e.innerHTML),
2283
+ (t.id = s(this, o, "m", r).call(this, e.value));
2284
+ s(this, i, "f").call(this).append(t);
2285
+ }
2286
+ onOptionRemoved(e) {
2287
+ const t = s(this, i, "f")
2288
+ .call(this)
2289
+ .querySelector(`#${s(this, o, "m", r).call(this, e.value)}`);
2290
+ t && t.remove();
2291
+ }
2292
+ }),
2293
+ (i = new WeakMap()),
2294
+ (l = new WeakMap()),
2295
+ (o = new WeakSet()),
2296
+ (c = new WeakMap()),
2297
+ (d = new WeakMap()),
2298
+ (r = function (e) {
2299
+ return e.split(" ").join("-").toLowerCase();
2300
+ }),
2301
+ a(u, "USASelectElement"),
2302
+ (() => {
2303
+ const t =
2304
+ "function" == typeof Symbol && Symbol.metadata
2305
+ ? Object.create(k[Symbol.metadata] ?? null)
2306
+ : void 0;
2307
+ (m = [S()]),
2308
+ (b = [S()]),
2309
+ (g = [x("change")]),
2310
+ e(
2311
+ u,
2312
+ null,
2313
+ m,
2314
+ {
2315
+ kind: "accessor",
2316
+ name: "value",
2317
+ static: !1,
2318
+ private: !1,
2319
+ access: {
2320
+ has: (e) => "value" in e,
2321
+ get: (e) => e.value,
2322
+ set: (e, t) => {
2323
+ e.value = t;
2324
+ },
2325
+ },
2326
+ metadata: t,
2327
+ },
2328
+ E,
2329
+ W
2330
+ ),
2331
+ e(
2332
+ u,
2333
+ null,
2334
+ b,
2335
+ {
2336
+ kind: "accessor",
2337
+ name: "name",
2338
+ static: !1,
2339
+ private: !1,
2340
+ access: {
2341
+ has: (e) => "name" in e,
2342
+ get: (e) => e.name,
2343
+ set: (e, t) => {
2344
+ e.name = t;
2345
+ },
2346
+ },
2347
+ metadata: t,
2348
+ },
2349
+ j,
2350
+ A
2351
+ ),
2352
+ e(
2353
+ u,
2354
+ null,
2355
+ g,
2356
+ {
2357
+ kind: "method",
2358
+ name: "onSelectChange",
2359
+ static: !1,
2360
+ private: !1,
2361
+ access: {
2362
+ has: (e) => "onSelectChange" in e,
2363
+ get: (e) => e.onSelectChange,
2364
+ },
2365
+ metadata: t,
2366
+ },
2367
+ null,
2368
+ w
2369
+ ),
2370
+ e(
2371
+ null,
2372
+ (h = { value: u }),
2373
+ v,
2374
+ { kind: "class", name: u.name, metadata: t },
2375
+ null,
2376
+ y
2377
+ ),
2378
+ (u = h.value),
2379
+ t &&
2380
+ Object.defineProperty(u, Symbol.metadata, {
2381
+ enumerable: !0,
2382
+ configurable: !0,
2383
+ writable: !0,
2384
+ value: t,
2385
+ });
2386
+ })(),
2387
+ (u.formAssociated = !0),
2388
+ t(u, y),
2389
+ u
2390
+ );
2391
+ })();
2392
+ (() => {
2393
+ var o, i;
2394
+ let l,
2395
+ r,
2396
+ c,
2397
+ d = [
2398
+ C({
2399
+ tagName: "usa-select-option",
2400
+ shadowDom: [p`:host{display:none}`],
2401
+ }),
2402
+ ],
2403
+ h = [],
2404
+ u = HTMLElement,
2405
+ m = [],
2406
+ f = [];
2407
+ (r = class extends u {
2408
+ constructor() {
2409
+ super(...arguments),
2410
+ i.set(this, t(this, m, "")),
2411
+ o.set(this, (t(this, f), null));
2412
+ }
2413
+ get value() {
2414
+ return s(this, i, "f");
2415
+ }
2416
+ set value(e) {
2417
+ n(this, i, e, "f");
2418
+ }
2419
+ connectedCallback() {
2420
+ this.parentElement instanceof q &&
2421
+ (n(this, o, this.parentElement, "f"),
2422
+ this.parentElement.onOptionAdded(this));
2423
+ }
2424
+ disconnectedCallback() {
2425
+ s(this, o, "f") && s(this, o, "f").onOptionRemoved(this);
2426
+ }
2427
+ }),
2428
+ (o = new WeakMap()),
2429
+ (i = new WeakMap()),
2430
+ a(r, "USASelecOptionElement"),
2431
+ (() => {
2432
+ const a =
2433
+ "function" == typeof Symbol && Symbol.metadata
2434
+ ? Object.create(u[Symbol.metadata] ?? null)
2435
+ : void 0;
2436
+ (c = [S()]),
2437
+ e(
2438
+ r,
2439
+ null,
2440
+ c,
2441
+ {
2442
+ kind: "accessor",
2443
+ name: "value",
2444
+ static: !1,
2445
+ private: !1,
2446
+ access: {
2447
+ has: (e) => "value" in e,
2448
+ get: (e) => e.value,
2449
+ set: (e, t) => {
2450
+ e.value = t;
2451
+ },
2452
+ },
2453
+ metadata: a,
2454
+ },
2455
+ m,
2456
+ f
2457
+ ),
2458
+ e(
2459
+ null,
2460
+ (l = { value: r }),
2461
+ d,
2462
+ { kind: "class", name: r.name, metadata: a },
2463
+ null,
2464
+ h
2465
+ ),
2466
+ (r = l.value),
2467
+ a &&
2468
+ Object.defineProperty(r, Symbol.metadata, {
2469
+ enumerable: !0,
2470
+ configurable: !0,
2471
+ writable: !0,
2472
+ value: a,
2473
+ }),
2474
+ t(r, h);
2475
+ })();
2476
+ })(),
2477
+ (() => {
2478
+ var o;
2479
+ let i,
2480
+ l,
2481
+ r,
2482
+ c = [
2483
+ C({
2484
+ tagName: "usa-tag",
2485
+ shadowDom: [
2486
+ p`:host{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:.93rem;color:#fff;text-transform:uppercase;background-color:#5c5c5c;border-radius:2px;margin-right:.25rem;padding:1px .5rem}:host([variant=big]){padding-left:.5rem;padding-right:.5rem;font-size:1.06rem}`,
2487
+ f`<slot></slot>`,
2488
+ ],
2489
+ }),
2490
+ ],
2491
+ d = [],
2492
+ h = HTMLElement,
2493
+ u = [],
2494
+ m = [];
2495
+ (l = class extends h {
2496
+ get variant() {
2497
+ return s(this, o, "f");
2498
+ }
2499
+ set variant(e) {
2500
+ n(this, o, e, "f");
2501
+ }
2502
+ constructor() {
2503
+ super(...arguments), o.set(this, t(this, u, "default")), t(this, m);
2504
+ }
2505
+ }),
2506
+ (o = new WeakMap()),
2507
+ a(l, "USATagElement"),
2508
+ (() => {
2509
+ const a =
2510
+ "function" == typeof Symbol && Symbol.metadata
2511
+ ? Object.create(h[Symbol.metadata] ?? null)
2512
+ : void 0;
2513
+ (r = [S()]),
2514
+ e(
2515
+ l,
2516
+ null,
2517
+ r,
2518
+ {
2519
+ kind: "accessor",
2520
+ name: "variant",
2521
+ static: !1,
2522
+ private: !1,
2523
+ access: {
2524
+ has: (e) => "variant" in e,
2525
+ get: (e) => e.variant,
2526
+ set: (e, t) => {
2527
+ e.variant = t;
2528
+ },
2529
+ },
2530
+ metadata: a,
2531
+ },
2532
+ u,
2533
+ m
2534
+ ),
2535
+ e(
2536
+ null,
2537
+ (i = { value: l }),
2538
+ c,
2539
+ { kind: "class", name: l.name, metadata: a },
2540
+ null,
2541
+ d
2542
+ ),
2543
+ (l = i.value),
2544
+ a &&
2545
+ Object.defineProperty(l, Symbol.metadata, {
2546
+ enumerable: !0,
2547
+ configurable: !0,
2548
+ writable: !0,
2549
+ value: a,
2550
+ }),
2551
+ t(l, d);
2552
+ })();
2553
+ })();
2554
+ })();