federalist-basic-report-theme 0.1.5 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cc32cc3b7c01a6328347492a7e94c9cd12288166f41522edced2f167bca90ab
4
- data.tar.gz: d0ee1f58f14cd07976cab6805511276ce7060622256b6ae4615fb52917796063
3
+ metadata.gz: 35538c3bfae85aa1d3228f88aeb67d827719cfeabb18bd9d8aafebddbb3ccdd1
4
+ data.tar.gz: b214b8620aeedc4c80feb12ec18cadf5358cd86e2cb664983116a8455cae400e
5
5
  SHA512:
6
- metadata.gz: 1f2d9d49f22fc6040ed913f8587bf883b0c7f941468dc6ce8026f8f3303343a46f55f8b646906a96ece6c820ef916c78136268d2aefa347f990f4afb23cb6fe1
7
- data.tar.gz: 7332138b53e7c1f18f5e8662dca785424d5b1f5bfd7f70585cf2c56d9124592f3f96fc02f78e1a3fe3bd4109c57bf107d1c57f2f55528c6ea19de2ef07c62001
6
+ metadata.gz: bee063b38f416da4e1ced5f83e871c833b138fb00103104d65330220525e9014e87f68f2a19f6c0bfd6c877d7d673318a473f6d72294378673f2a0254405e86a
7
+ data.tar.gz: 81eaee16f3c4fdfea6756d0238ddd2ff4806c0f88d43d407a694f597dce741128fc320853d01fe42d3e0f6231bad6fe2bd1b213d33a57fdc8d3c93d7177d2dc0
data/README.md CHANGED
@@ -9,6 +9,15 @@ multiple pages about a recent report or order. This setup provides a clean space
9
9
  for complex details or instructions. Navigation can be customized to host many
10
10
  pages while maintaining a clear hierarchy.
11
11
 
12
+ ## Features
13
+
14
+ This theme provides:
15
+
16
+ - Single call-to-action to download the report
17
+ - Simple customization of the header/footer for agency information
18
+ - Site analytics through [Digital Analytics Program](https://digital.gov/dap/)
19
+ or [Google Analytics](https://marketingplatform.google.com/about/analytics/)
20
+
12
21
 
13
22
  ## Installation
14
23
 
@@ -37,9 +46,9 @@ Or install it yourself as:
37
46
 
38
47
  $ gem install federalist-basic-report-theme
39
48
 
49
+
40
50
  ## Usage
41
51
 
42
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
43
52
 
44
53
  ### Site-wide Configuration
45
54
 
@@ -109,7 +118,6 @@ this one.
109
118
 
110
119
  #### `header.html`
111
120
 
112
- #### `
113
121
 
114
122
  ### Stylesheets
115
123
 
@@ -138,14 +146,45 @@ download_report_button:
138
146
  ```
139
147
 
140
148
 
149
+ ## Principles
150
+
151
+ In April 2018, we took a closer look into how we were providing Federalist site
152
+ templates (starter sites) and wrote up some
153
+ [recommendations](https://docs.google.com/document/d/1WSwpiw44DAfHOSh3uyQlY8VybaN4shUYYAW6NLpLnl4/edit)
154
+ that frame the direction we'd like to take with the starter sites.
155
+
156
+ - Enable the user to focus on content.
157
+ - Any overrides provided should be fully supported.
158
+ - Users can upgrade themes to get new features or bugfixes.
159
+ - Themes should be semantically versioned with predictable backwards
160
+ compatibility.
161
+ - Themes should use and encourage web development best practices.
162
+ - Provide an "eject" path for advanced users.
163
+
164
+
141
165
  ## Development
142
166
 
143
- To set up your environment to develop this theme, run `bundle install`.
167
+ To set up your environment to develop this theme, install the dependencies.
168
+
169
+ $ npm install
170
+ $ bundle install
171
+
172
+ Your theme is setup just like a normal Jekyll site! To test your theme, run
173
+ `npm start` and open your browser at `http://localhost:4000`.
174
+
175
+ This starts a Jekyll server using your theme. Add pages, documents, data, etc.
176
+ like normal to test your theme's contents. As you make modifications to your
177
+ theme and to your content, your site will regenerate and you should see the
178
+ changes in the browser after a refresh, just like normal.
179
+
180
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass`
181
+ and `assets` tracked with Git will be bundled. To add a custom directory to
182
+ your theme-gem, please edit the regexp in
183
+ `federalist-basic-report-theme.gemspec` accordingly.
144
184
 
145
- Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
185
+ Don't forget to run the tests.
146
186
 
147
- When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
148
- To add a custom directory to your theme-gem, please edit the regexp in `federalist-basic-report-theme.gemspec` accordingly.
187
+ $ npm test
149
188
 
150
189
 
151
190
  ## Release
@@ -1,23 +1,11 @@
1
1
  $usa-form-width: 32rem;
2
2
 
3
- [type=submit],
4
3
  [type=submit] {
5
- display: block;
6
- margin-bottom: 1.5em;
7
- margin-top: 2.5rem;
8
-
9
4
  @include media($medium-screen) {
10
- padding-left: 2.7em;
11
- padding-right: 2.7em;
12
- width: auto;
5
+ margin-top: calc(3rem - .2em); // Label margin minus input bottom margin
13
6
  }
14
7
  }
15
8
 
16
- [name=password],
17
- [name=confirmPassword] {
18
- margin-bottom: 1.1rem;
19
- }
20
-
21
9
  fieldset {
22
10
  border: none;
23
11
  margin: 0;
@@ -174,7 +174,6 @@ $z-index-nav: 9000;
174
174
  @include media($nav-width) {
175
175
  @include outer-container($site-max-width);
176
176
  @include padding(null $site-margins null 1.5rem);
177
- margin-top: -1px;
178
177
  position: relative;
179
178
  }
180
179
  }
@@ -213,4 +212,17 @@ $z-index-nav: 9000;
213
212
  padding-left: $site-margins;
214
213
  }
215
214
  }
215
+
216
+ // Temp code for v1 to force show the search at mobile, not dekstop
217
+ /* stylelint-disable selector-no-id, declaration-no-important */
218
+ .usa-search {
219
+ &[hidden] {
220
+ display: block !important;
221
+
222
+ @include media($nav-width) {
223
+ display: none !important;
224
+ }
225
+ }
226
+ }
227
+ /* stylelint-enable */
216
228
  }
@@ -196,15 +196,19 @@ legend {
196
196
  [type=checkbox] + label::before,
197
197
  [type=radio] + label::before {
198
198
  background: $color-white;
199
- border-radius: $checkbox-border-radius;
200
- box-shadow: 0 0 0 1px $color-gray-medium;
201
199
  content: '\a0';
202
200
  display: inline-block;
201
+ text-indent: 0.15em;
202
+ vertical-align: middle\0; // Target IE 11 and below to vertically center inputs
203
+ }
204
+
205
+ [type=checkbox] + label::before {
206
+ border-radius: $checkbox-border-radius;
207
+ box-shadow: 0 0 0 1px $color-gray-medium;
203
208
  height: $spacing-medium;
204
209
  line-height: $spacing-medium;
210
+ margin-left: 1px;
205
211
  margin-right: 0.6em;
206
- text-indent: 0.15em;
207
- vertical-align: middle\0; // Target IE 11 and below to vertically center inputs
208
212
  width: $spacing-medium;
209
213
  }
210
214
 
@@ -213,6 +217,7 @@ legend {
213
217
  box-shadow: 0 0 0 2px $color-white, 0 0 0 3px $color-gray-medium;
214
218
  height: 1.4rem; // Size overrides to account for shape + checked styling
215
219
  line-height: 1.4rem;
220
+ margin-left: 3px;
216
221
  margin-right: 0.75em;
217
222
  width: 1.4rem;
218
223
  }
@@ -256,78 +261,103 @@ legend {
256
261
  cursor: not-allowed;
257
262
  }
258
263
 
259
- // Range inputs
260
-
261
- [type=range] {
262
- appearance: none;
263
- border: none;
264
- padding-left: 0;
265
- width: 100%;
266
- }
267
-
268
- [type=range]::-webkit-slider-runnable-track {
269
- background: $color-gray-light;
270
- border: 1px solid $color-gray-medium;
271
- cursor: pointer;
272
- height: 1.2rem;
273
- width: 100%;
274
- }
275
-
276
- [type=range]::-moz-range-track {
277
- background: $color-primary;
278
- border: 1px solid $color-gray-medium;
279
- cursor: pointer;
280
- height: 1.2rem;
281
- width: 100%;
264
+ @media print {
265
+ [type=checkbox]:checked + label::before,
266
+ [type=checkbox]:checked:disabled + label::before {
267
+ background-image: none;
268
+ background-color: $color-white;
269
+ content: url('#{$image-path}/correct8-alt.png');
270
+ content: url('#{$image-path}/correct8-alt.svg');
271
+ text-indent: 0;
272
+ }
282
273
  }
283
274
 
284
- [type=range]::-ms-track {
285
- background: transparent;
286
- color: transparent;
287
- cursor: pointer;
288
- height: 1.2rem;
289
- width: 100%;
290
- }
275
+ // Range inputs
291
276
 
292
- [type=range]::-webkit-slider-thumb {
293
- -webkit-appearance: none;
294
- border: 1px solid $color-gray-medium;
295
- height: 2.2rem;
296
- border-radius: 1.5rem;
297
- background: $color-gray-lightest;
298
- cursor: pointer;
299
- margin-top: -.65rem;
300
- width: 2.2rem;
277
+ // Change to $color-focus in 2.0
278
+ @mixin range-focus {
279
+ box-shadow: 0 0 0 2px $color-primary;
301
280
  }
302
281
 
303
- [type=range]::-moz-range-thumb {
304
- background: $color-gray-lightest;
282
+ @mixin range-track {
283
+ background: $color-gray-lighter;
305
284
  border: 1px solid $color-gray-medium;
306
- border-radius: 1.5rem;
307
285
  cursor: pointer;
308
- height: 2.2rem;
309
- width: 2.2rem;
286
+ height: 1.6rem;
287
+ width: 100%;
310
288
  }
311
289
 
312
- [type=range]::-ms-thumb {
290
+ @mixin range-thumb {
313
291
  background: $color-gray-lightest;
314
- border: 1px solid $color-gray-medium;
292
+ box-shadow: 0 0 0 1px $color-gray-medium;
315
293
  border-radius: 1.5rem;
316
294
  cursor: pointer;
317
- height: 2.2rem;
318
- width: 2.2rem;
295
+ height: 2.5rem;
296
+ width: 2.5rem;
319
297
  }
320
298
 
321
- [type=range]::-ms-fill-lower {
299
+ @mixin range-ms-fill {
322
300
  background: $color-gray-light;
323
301
  border: 1px solid $color-gray-medium;
324
302
  border-radius: 2rem;
325
303
  }
326
304
 
327
- [type=range]::-ms-fill-upper {
328
- background: $color-gray-light;
329
- border: 1px solid $color-gray-medium;
330
- border-radius: 2rem;
305
+ [type=range] {
306
+ appearance: none;
307
+ border: none;
308
+ padding-left: 0;
309
+ overflow: hidden;
310
+ width: 100%;
311
+
312
+ &:focus {
313
+ outline: none;
314
+
315
+ &::-webkit-slider-thumb {
316
+ @include range-focus;
317
+ }
318
+
319
+ &::-moz-range-thumb {
320
+ @include range-focus;
321
+ }
322
+
323
+ &::-ms-thumb {
324
+ @include range-focus;
325
+ }
326
+ }
327
+
328
+ &::-webkit-slider-runnable-track {
329
+ @include range-track;
330
+ }
331
+
332
+ &::-moz-range-track {
333
+ @include range-track;
334
+ }
335
+
336
+ &::-ms-track {
337
+ @include range-track;
338
+ }
339
+
340
+ &::-webkit-slider-thumb {
341
+ @include range-thumb;
342
+ appearance: none;
343
+ margin-top: -0.6rem;
344
+ }
345
+
346
+ &::-moz-range-thumb {
347
+ @include range-thumb;
348
+ }
349
+
350
+ &::-ms-thumb {
351
+ @include range-thumb;
352
+ }
353
+
354
+ &::-ms-fill-lower {
355
+ @include range-ms-fill;
356
+ }
357
+
358
+ &::-ms-fill-upper {
359
+ @include range-ms-fill;
360
+ }
331
361
  }
332
362
 
333
363
  // File input type
@@ -338,19 +368,26 @@ legend {
338
368
 
339
369
  // Memorable dates
340
370
 
341
- .usa-date-of-birth {
371
+ .usa-date-of-birth { /* stylelint-disable-line */
342
372
  label {
343
373
  margin-top: 0;
344
374
  }
345
375
 
346
- [type=number]::-webkit-inner-spin-button,
347
- [type=number]::-webkit-outer-spin-button {
348
- appearance: none;
349
- margin: 0;
350
- }
351
-
352
376
  [type=number] {
353
377
  -moz-appearance: textfield;
378
+
379
+ &::-webkit-inner-spin-button {
380
+ appearance: none;
381
+ }
382
+
383
+ &::-webkit-contacts-auto-fill-button {
384
+ visibility: hidden;
385
+ display: none !important; /* stylelint-disable-line declaration-no-important */
386
+ pointer-events: none;
387
+ height: 0;
388
+ width: 0;
389
+ margin: 0;
390
+ }
354
391
  }
355
392
  }
356
393
 
@@ -13,19 +13,6 @@ li {
13
13
  }
14
14
  }
15
15
 
16
- h1,
17
- h2,
18
- h3,
19
- h4,
20
- h5,
21
- h6,
22
- p {
23
- + ul,
24
- + ol {
25
- margin-top: 0;
26
- }
27
- }
28
-
29
16
  // Unstyled lists
30
17
  .usa-unstyled-list {
31
18
  @include unstyled-list;
@@ -66,18 +66,15 @@ h1,
66
66
  h2,
67
67
  h3,
68
68
  h4,
69
- h5 {
69
+ h5,
70
+ h6 {
70
71
  clear: both;
71
72
  font-family: $font-serif;
72
73
  line-height: $heading-line-height;
73
- margin-bottom: .5em;
74
+ margin-bottom: 0.5em;
74
75
  margin-top: 1.5em;
75
76
  }
76
77
 
77
- h6 {
78
- font-family: $font-sans;
79
- }
80
-
81
78
  h1 {
82
79
  @include h1();
83
80
  }
@@ -100,6 +97,7 @@ h5 {
100
97
 
101
98
  h6 {
102
99
  @include h6();
100
+ font-family: $font-sans;
103
101
  }
104
102
 
105
103
  // Remove user agent styles
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 216 146"><path fill="#000" d="M168.86 37.966l-11.08-11.08c-1.52-1.52-3.367-2.28-5.54-2.28-2.172 0-4.02.76-5.54 2.28L93.254 80.414 69.3 56.38c-1.52-1.522-3.367-2.282-5.54-2.282-2.172 0-4.02.76-5.54 2.28L47.14 67.46c-1.52 1.522-2.28 3.37-2.28 5.542 0 2.172.76 4.02 2.28 5.54l29.493 29.493 11.08 11.08c1.52 1.52 3.368 2.28 5.54 2.28 2.173 0 4.02-.76 5.54-2.28l11.082-11.08L168.86 49.05c1.52-1.52 2.283-3.37 2.283-5.54 0-2.174-.76-4.02-2.28-5.54z"/></svg>
@@ -398,6 +398,129 @@ module.exports = useNative() ? nativeDataset : function (element) {
398
398
  })(window.Element.prototype);
399
399
 
400
400
  },{}],7:[function(require,module,exports){
401
+ 'use strict';
402
+
403
+ /* global define, KeyboardEvent, module */
404
+
405
+ (function () {
406
+
407
+ var keyboardeventKeyPolyfill = {
408
+ polyfill: polyfill,
409
+ keys: {
410
+ 3: 'Cancel',
411
+ 6: 'Help',
412
+ 8: 'Backspace',
413
+ 9: 'Tab',
414
+ 12: 'Clear',
415
+ 13: 'Enter',
416
+ 16: 'Shift',
417
+ 17: 'Control',
418
+ 18: 'Alt',
419
+ 19: 'Pause',
420
+ 20: 'CapsLock',
421
+ 27: 'Escape',
422
+ 28: 'Convert',
423
+ 29: 'NonConvert',
424
+ 30: 'Accept',
425
+ 31: 'ModeChange',
426
+ 32: ' ',
427
+ 33: 'PageUp',
428
+ 34: 'PageDown',
429
+ 35: 'End',
430
+ 36: 'Home',
431
+ 37: 'ArrowLeft',
432
+ 38: 'ArrowUp',
433
+ 39: 'ArrowRight',
434
+ 40: 'ArrowDown',
435
+ 41: 'Select',
436
+ 42: 'Print',
437
+ 43: 'Execute',
438
+ 44: 'PrintScreen',
439
+ 45: 'Insert',
440
+ 46: 'Delete',
441
+ 48: ['0', ')'],
442
+ 49: ['1', '!'],
443
+ 50: ['2', '@'],
444
+ 51: ['3', '#'],
445
+ 52: ['4', '$'],
446
+ 53: ['5', '%'],
447
+ 54: ['6', '^'],
448
+ 55: ['7', '&'],
449
+ 56: ['8', '*'],
450
+ 57: ['9', '('],
451
+ 91: 'OS',
452
+ 93: 'ContextMenu',
453
+ 144: 'NumLock',
454
+ 145: 'ScrollLock',
455
+ 181: 'VolumeMute',
456
+ 182: 'VolumeDown',
457
+ 183: 'VolumeUp',
458
+ 186: [';', ':'],
459
+ 187: ['=', '+'],
460
+ 188: [',', '<'],
461
+ 189: ['-', '_'],
462
+ 190: ['.', '>'],
463
+ 191: ['/', '?'],
464
+ 192: ['`', '~'],
465
+ 219: ['[', '{'],
466
+ 220: ['\\', '|'],
467
+ 221: [']', '}'],
468
+ 222: ["'", '"'],
469
+ 224: 'Meta',
470
+ 225: 'AltGraph',
471
+ 246: 'Attn',
472
+ 247: 'CrSel',
473
+ 248: 'ExSel',
474
+ 249: 'EraseEof',
475
+ 250: 'Play',
476
+ 251: 'ZoomOut'
477
+ }
478
+ };
479
+
480
+ // Function keys (F1-24).
481
+ var i;
482
+ for (i = 1; i < 25; i++) {
483
+ keyboardeventKeyPolyfill.keys[111 + i] = 'F' + i;
484
+ }
485
+
486
+ // Printable ASCII characters.
487
+ var letter = '';
488
+ for (i = 65; i < 91; i++) {
489
+ letter = String.fromCharCode(i);
490
+ keyboardeventKeyPolyfill.keys[i] = [letter.toLowerCase(), letter.toUpperCase()];
491
+ }
492
+
493
+ function polyfill() {
494
+ if (!('KeyboardEvent' in window) || 'key' in KeyboardEvent.prototype) {
495
+ return false;
496
+ }
497
+
498
+ // Polyfill `key` on `KeyboardEvent`.
499
+ var proto = {
500
+ get: function get(x) {
501
+ var key = keyboardeventKeyPolyfill.keys[this.which || this.keyCode];
502
+
503
+ if (Array.isArray(key)) {
504
+ key = key[+this.shiftKey];
505
+ }
506
+
507
+ return key;
508
+ }
509
+ };
510
+ Object.defineProperty(KeyboardEvent.prototype, 'key', proto);
511
+ return proto;
512
+ }
513
+
514
+ if (typeof define === 'function' && define.amd) {
515
+ define('keyboardevent-key-polyfill', keyboardeventKeyPolyfill);
516
+ } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {
517
+ module.exports = keyboardeventKeyPolyfill;
518
+ } else if (window) {
519
+ window.keyboardeventKeyPolyfill = keyboardeventKeyPolyfill;
520
+ }
521
+ })();
522
+
523
+ },{}],8:[function(require,module,exports){
401
524
  (function (global){
402
525
  'use strict';
403
526
 
@@ -779,7 +902,7 @@ module.exports = debounce;
779
902
 
780
903
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
781
904
 
782
- },{}],8:[function(require,module,exports){
905
+ },{}],9:[function(require,module,exports){
783
906
  /*
784
907
  object-assign
785
908
  (c) Sindre Sorhus
@@ -871,7 +994,7 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
871
994
  return to;
872
995
  };
873
996
 
874
- },{}],9:[function(require,module,exports){
997
+ },{}],10:[function(require,module,exports){
875
998
  'use strict';
876
999
 
877
1000
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
@@ -941,7 +1064,7 @@ module.exports = function behavior(events, props) {
941
1064
  }, props);
942
1065
  };
943
1066
 
944
- },{"../delegate":11,"../delegateAll":12,"object-assign":8}],10:[function(require,module,exports){
1067
+ },{"../delegate":12,"../delegateAll":13,"object-assign":9}],11:[function(require,module,exports){
945
1068
  "use strict";
946
1069
 
947
1070
  module.exports = function compose(functions) {
@@ -952,7 +1075,7 @@ module.exports = function compose(functions) {
952
1075
  };
953
1076
  };
954
1077
 
955
- },{}],11:[function(require,module,exports){
1078
+ },{}],12:[function(require,module,exports){
956
1079
  'use strict';
957
1080
 
958
1081
  // polyfill Element.prototype.closest
@@ -967,7 +1090,7 @@ module.exports = function delegate(selector, fn) {
967
1090
  };
968
1091
  };
969
1092
 
970
- },{"element-closest":6}],12:[function(require,module,exports){
1093
+ },{"element-closest":6}],13:[function(require,module,exports){
971
1094
  'use strict';
972
1095
 
973
1096
  var delegate = require('../delegate');
@@ -992,7 +1115,7 @@ module.exports = function delegateAll(selectors) {
992
1115
  return compose(delegates);
993
1116
  };
994
1117
 
995
- },{"../compose":10,"../delegate":11}],13:[function(require,module,exports){
1118
+ },{"../compose":11,"../delegate":12}],14:[function(require,module,exports){
996
1119
  "use strict";
997
1120
 
998
1121
  module.exports = function ignore(element, fn) {
@@ -1003,7 +1126,64 @@ module.exports = function ignore(element, fn) {
1003
1126
  };
1004
1127
  };
1005
1128
 
1006
- },{}],14:[function(require,module,exports){
1129
+ },{}],15:[function(require,module,exports){
1130
+ 'use strict';
1131
+
1132
+ module.exports = {
1133
+ behavior: require('./behavior'),
1134
+ delegate: require('./delegate'),
1135
+ delegateAll: require('./delegateAll'),
1136
+ ignore: require('./ignore'),
1137
+ keymap: require('./keymap')
1138
+ };
1139
+
1140
+ },{"./behavior":10,"./delegate":12,"./delegateAll":13,"./ignore":14,"./keymap":16}],16:[function(require,module,exports){
1141
+ 'use strict';
1142
+
1143
+ require('keyboardevent-key-polyfill');
1144
+
1145
+ // these are the only relevant modifiers supported on all platforms,
1146
+ // according to MDN:
1147
+ // <https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/getModifierState>
1148
+ var MODIFIERS = {
1149
+ 'Alt': 'altKey',
1150
+ 'Control': 'ctrlKey',
1151
+ 'Ctrl': 'ctrlKey',
1152
+ 'Shift': 'shiftKey'
1153
+ };
1154
+
1155
+ var MODIFIER_SEPARATOR = '+';
1156
+
1157
+ var getEventKey = function getEventKey(event, hasModifiers) {
1158
+ var key = event.key;
1159
+ if (hasModifiers) {
1160
+ for (var modifier in MODIFIERS) {
1161
+ if (event[MODIFIERS[modifier]] === true) {
1162
+ key = [modifier, key].join(MODIFIER_SEPARATOR);
1163
+ }
1164
+ }
1165
+ }
1166
+ return key;
1167
+ };
1168
+
1169
+ module.exports = function keymap(keys) {
1170
+ var hasModifiers = Object.keys(keys).some(function (key) {
1171
+ return key.indexOf(MODIFIER_SEPARATOR) > -1;
1172
+ });
1173
+ return function (event) {
1174
+ var key = getEventKey(event, hasModifiers);
1175
+ return [key, key.toLowerCase()].reduce(function (result, _key) {
1176
+ if (_key in keys) {
1177
+ result = keys[key].call(this, event);
1178
+ }
1179
+ return result;
1180
+ }, undefined);
1181
+ };
1182
+ };
1183
+
1184
+ module.exports.MODIFIERS = MODIFIERS;
1185
+
1186
+ },{"keyboardevent-key-polyfill":7}],17:[function(require,module,exports){
1007
1187
  "use strict";
1008
1188
 
1009
1189
  module.exports = function once(listener, options) {
@@ -1014,7 +1194,7 @@ module.exports = function once(listener, options) {
1014
1194
  return wrapped;
1015
1195
  };
1016
1196
 
1017
- },{}],15:[function(require,module,exports){
1197
+ },{}],18:[function(require,module,exports){
1018
1198
  'use strict';
1019
1199
 
1020
1200
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
@@ -1061,26 +1241,46 @@ module.exports = function resolveIds(ids, doc) {
1061
1241
  });
1062
1242
  };
1063
1243
 
1064
- },{}],16:[function(require,module,exports){
1244
+ },{}],19:[function(require,module,exports){
1065
1245
  'use strict';
1066
1246
 
1067
1247
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1068
1248
 
1069
- var behavior = require('../utils/behavior');
1249
+ var assign = require('object-assign');
1070
1250
  var filter = require('array-filter');
1071
1251
  var forEach = require('array-foreach');
1252
+ var behavior = require('../utils/behavior');
1072
1253
  var toggle = require('../utils/toggle');
1073
1254
  var isElementInViewport = require('../utils/is-in-viewport');
1074
1255
 
1075
- var CLICK = require('../events').CLICK;
1076
- var PREFIX = require('../config').prefix;
1256
+ var _require = require('../events'),
1257
+ CLICK = _require.CLICK;
1258
+
1259
+ var _require2 = require('../config'),
1260
+ PREFIX = _require2.prefix;
1077
1261
 
1078
1262
  // XXX match .usa-accordion and .usa-accordion-bordered
1263
+
1264
+
1079
1265
  var ACCORDION = '.' + PREFIX + '-accordion, .' + PREFIX + '-accordion-bordered';
1080
1266
  var BUTTON = '.' + PREFIX + '-accordion-button[aria-controls]';
1081
1267
  var EXPANDED = 'aria-expanded';
1082
1268
  var MULTISELECTABLE = 'aria-multiselectable';
1083
1269
 
1270
+ /**
1271
+ * Get an Array of button elements belonging directly to the given
1272
+ * accordion element.
1273
+ * @param {HTMLElement} accordion
1274
+ * @return {array<HTMLButtonElement>}
1275
+ */
1276
+ var getAccordionButtons = function getAccordionButtons(accordion) {
1277
+ var buttons = accordion.querySelectorAll(BUTTON);
1278
+
1279
+ return filter(buttons, function (button) {
1280
+ return button.closest(ACCORDION) === accordion;
1281
+ });
1282
+ };
1283
+
1084
1284
  /**
1085
1285
  * Toggle a button's "pressed" state, optionally providing a target
1086
1286
  * state.
@@ -1092,15 +1292,17 @@ var MULTISELECTABLE = 'aria-multiselectable';
1092
1292
  */
1093
1293
  var toggleButton = function toggleButton(button, expanded) {
1094
1294
  var accordion = button.closest(ACCORDION);
1295
+ var safeExpanded = expanded;
1095
1296
  if (!accordion) {
1096
1297
  throw new Error(BUTTON + ' is missing outer ' + ACCORDION);
1097
1298
  }
1098
1299
 
1099
- expanded = toggle(button, expanded);
1300
+ safeExpanded = toggle(button, expanded);
1301
+
1100
1302
  // XXX multiselectable is opt-in, to preserve legacy behavior
1101
1303
  var multiselectable = accordion.getAttribute(MULTISELECTABLE) === 'true';
1102
1304
 
1103
- if (expanded && !multiselectable) {
1305
+ if (safeExpanded && !multiselectable) {
1104
1306
  forEach(getAccordionButtons(accordion), function (other) {
1105
1307
  if (other !== button) {
1106
1308
  toggle(other, false);
@@ -1125,18 +1327,6 @@ var hideButton = function hideButton(button) {
1125
1327
  return toggleButton(button, false);
1126
1328
  };
1127
1329
 
1128
- /**
1129
- * Get an Array of button elements belonging directly to the given
1130
- * accordion element.
1131
- * @param {HTMLElement} accordion
1132
- * @return {array<HTMLButtonElement>}
1133
- */
1134
- var getAccordionButtons = function getAccordionButtons(accordion) {
1135
- return filter(accordion.querySelectorAll(BUTTON), function (button) {
1136
- return button.closest(ACCORDION) === accordion;
1137
- });
1138
- };
1139
-
1140
1330
  var accordion = behavior(_defineProperty({}, CLICK, _defineProperty({}, BUTTON, function (event) {
1141
1331
  event.preventDefault();
1142
1332
  toggleButton(this);
@@ -1154,6 +1344,7 @@ var accordion = behavior(_defineProperty({}, CLICK, _defineProperty({}, BUTTON,
1154
1344
  toggleButton(button, expanded);
1155
1345
  });
1156
1346
  },
1347
+
1157
1348
  ACCORDION: ACCORDION,
1158
1349
  BUTTON: BUTTON,
1159
1350
  show: showButton,
@@ -1174,7 +1365,6 @@ var Accordion = function Accordion(root) {
1174
1365
  };
1175
1366
 
1176
1367
  // copy all of the behavior methods and props to Accordion
1177
- var assign = require('object-assign');
1178
1368
  assign(Accordion, accordion);
1179
1369
 
1180
1370
  Accordion.prototype.show = showButton;
@@ -1186,41 +1376,46 @@ Accordion.prototype.remove = function () {
1186
1376
 
1187
1377
  module.exports = Accordion;
1188
1378
 
1189
- },{"../config":25,"../events":26,"../utils/behavior":30,"../utils/is-in-viewport":31,"../utils/toggle":35,"array-filter":1,"array-foreach":2,"object-assign":8}],17:[function(require,module,exports){
1379
+ },{"../config":28,"../events":29,"../utils/behavior":34,"../utils/is-in-viewport":36,"../utils/toggle":40,"array-filter":1,"array-foreach":2,"object-assign":9}],20:[function(require,module,exports){
1190
1380
  'use strict';
1191
1381
 
1192
1382
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1193
1383
 
1194
1384
  var behavior = require('../utils/behavior');
1195
- var toggle = require('../utils/toggle');
1196
1385
 
1197
- var CLICK = require('../events').CLICK;
1198
- var PREFIX = require('../config').prefix;
1386
+ var _require = require('../events'),
1387
+ CLICK = _require.CLICK;
1388
+
1389
+ var _require2 = require('../config'),
1390
+ PREFIX = _require2.prefix;
1199
1391
 
1200
1392
  var HEADER = '.' + PREFIX + '-banner-header';
1201
1393
  var EXPANDED_CLASS = PREFIX + '-banner-header-expanded';
1202
1394
 
1203
- var toggleBanner = function toggleBanner(event) {
1395
+ var toggleBanner = function toggleEl(event) {
1204
1396
  event.preventDefault();
1205
1397
  this.closest(HEADER).classList.toggle(EXPANDED_CLASS);
1398
+
1206
1399
  return false;
1207
1400
  };
1208
1401
 
1209
1402
  module.exports = behavior(_defineProperty({}, CLICK, _defineProperty({}, HEADER + ' [aria-controls]', toggleBanner)));
1210
1403
 
1211
- },{"../config":25,"../events":26,"../utils/behavior":30,"../utils/toggle":35}],18:[function(require,module,exports){
1404
+ },{"../config":28,"../events":29,"../utils/behavior":34}],21:[function(require,module,exports){
1212
1405
  'use strict';
1213
1406
 
1214
1407
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1215
1408
 
1216
- var accordion = require('./accordion');
1217
- var behavior = require('../utils/behavior');
1218
1409
  var debounce = require('lodash.debounce');
1219
1410
  var forEach = require('array-foreach');
1411
+ var behavior = require('../utils/behavior');
1220
1412
  var select = require('../utils/select');
1221
1413
 
1222
- var CLICK = require('../events').CLICK;
1223
- var PREFIX = require('../config').prefix;
1414
+ var _require = require('../events'),
1415
+ CLICK = _require.CLICK;
1416
+
1417
+ var _require2 = require('../config'),
1418
+ PREFIX = _require2.prefix;
1224
1419
 
1225
1420
  var HIDDEN = 'hidden';
1226
1421
  var SCOPE = '.' + PREFIX + '-footer-big';
@@ -1231,7 +1426,7 @@ var LIST = NAV + ' ul';
1231
1426
  var HIDE_MAX_WIDTH = 600;
1232
1427
  var DEBOUNCE_RATE = 180;
1233
1428
 
1234
- var showPanel = function showPanel() {
1429
+ function showPanel() {
1235
1430
  if (window.innerWidth < HIDE_MAX_WIDTH) {
1236
1431
  var list = this.closest(LIST);
1237
1432
  list.classList.toggle(HIDDEN);
@@ -1246,7 +1441,7 @@ var showPanel = function showPanel() {
1246
1441
  }
1247
1442
  });
1248
1443
  }
1249
- };
1444
+ }
1250
1445
 
1251
1446
  var resize = debounce(function () {
1252
1447
  var hidden = window.innerWidth < HIDE_MAX_WIDTH;
@@ -1260,44 +1455,57 @@ module.exports = behavior(_defineProperty({}, CLICK, _defineProperty({}, BUTTON,
1260
1455
  HIDE_MAX_WIDTH: HIDE_MAX_WIDTH,
1261
1456
  DEBOUNCE_RATE: DEBOUNCE_RATE,
1262
1457
 
1263
- init: function init(target) {
1458
+ init: function init() {
1264
1459
  resize();
1265
1460
  window.addEventListener('resize', resize);
1266
1461
  },
1267
-
1268
- teardown: function teardown(target) {
1462
+ teardown: function teardown() {
1269
1463
  window.removeEventListener('resize', resize);
1270
1464
  }
1271
1465
  });
1272
1466
 
1273
- },{"../config":25,"../events":26,"../utils/behavior":30,"../utils/select":32,"./accordion":16,"array-foreach":2,"lodash.debounce":7}],19:[function(require,module,exports){
1467
+ },{"../config":28,"../events":29,"../utils/behavior":34,"../utils/select":37,"array-foreach":2,"lodash.debounce":8}],22:[function(require,module,exports){
1274
1468
  'use strict';
1275
1469
 
1470
+ var accordion = require('./accordion');
1471
+ var banner = require('./banner');
1472
+ var footer = require('./footer');
1473
+ var navigation = require('./navigation');
1474
+ var password = require('./password');
1475
+ var search = require('./search');
1476
+ var skipnav = require('./skipnav');
1477
+ var validator = require('./validator');
1478
+
1276
1479
  module.exports = {
1277
- accordion: require('./accordion'),
1278
- banner: require('./banner'),
1279
- footer: require('./footer'),
1280
- navigation: require('./navigation'),
1281
- password: require('./password'),
1282
- search: require('./search'),
1283
- skipnav: require('./skipnav'),
1284
- validator: require('./validator')
1480
+ accordion: accordion,
1481
+ banner: banner,
1482
+ footer: footer,
1483
+ navigation: navigation,
1484
+ password: password,
1485
+ search: search,
1486
+ skipnav: skipnav,
1487
+ validator: validator
1285
1488
  };
1286
1489
 
1287
- },{"./accordion":16,"./banner":17,"./footer":18,"./navigation":20,"./password":21,"./search":22,"./skipnav":23,"./validator":24}],20:[function(require,module,exports){
1490
+ },{"./accordion":19,"./banner":20,"./footer":21,"./navigation":23,"./password":24,"./search":25,"./skipnav":26,"./validator":27}],23:[function(require,module,exports){
1288
1491
  'use strict';
1289
1492
 
1290
1493
  var _CLICK;
1291
1494
 
1292
1495
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1293
1496
 
1294
- var behavior = require('../utils/behavior');
1497
+ var assign = require('object-assign');
1295
1498
  var forEach = require('array-foreach');
1499
+ var behavior = require('../utils/behavior');
1296
1500
  var select = require('../utils/select');
1501
+ var FocusTrap = require('../utils/focus-trap');
1297
1502
  var accordion = require('./accordion');
1298
1503
 
1299
- var CLICK = require('../events').CLICK;
1300
- var PREFIX = require('../config').prefix;
1504
+ var _require = require('../events'),
1505
+ CLICK = _require.CLICK;
1506
+
1507
+ var _require2 = require('../config'),
1508
+ PREFIX = _require2.prefix;
1301
1509
 
1302
1510
  var NAV = '.' + PREFIX + '-nav';
1303
1511
  var NAV_LINKS = NAV + ' a';
@@ -1310,84 +1518,34 @@ var TOGGLES = [NAV, OVERLAY].join(', ');
1310
1518
  var ACTIVE_CLASS = 'usa-mobile_nav-active';
1311
1519
  var VISIBLE_CLASS = 'is-visible';
1312
1520
 
1521
+ var navigation = void 0;
1522
+
1313
1523
  var isActive = function isActive() {
1314
1524
  return document.body.classList.contains(ACTIVE_CLASS);
1315
1525
  };
1316
1526
 
1317
- var _focusTrap = function _focusTrap(trapContainer) {
1318
- // Find all focusable children
1319
- var focusableElementsString = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]';
1320
- var focusableElements = trapContainer.querySelectorAll(focusableElementsString);
1321
- var firstTabStop = focusableElements[0];
1322
- var lastTabStop = focusableElements[focusableElements.length - 1];
1323
-
1324
- function trapTabKey(e) {
1325
- // Check for TAB key press
1326
- if (e.keyCode === 9) {
1327
-
1328
- // SHIFT + TAB
1329
- if (e.shiftKey) {
1330
- if (document.activeElement === firstTabStop) {
1331
- e.preventDefault();
1332
- lastTabStop.focus();
1333
- }
1334
-
1335
- // TAB
1336
- } else {
1337
- if (document.activeElement === lastTabStop) {
1338
- e.preventDefault();
1339
- firstTabStop.focus();
1340
- }
1341
- }
1342
- }
1343
-
1344
- // ESCAPE
1345
- if (e.keyCode === 27) {
1346
- toggleNav.call(this, false);
1347
- }
1348
- }
1349
-
1350
- // Focus first child
1351
- firstTabStop.focus();
1527
+ var toggleNav = function toggleNav(active) {
1528
+ var _document = document,
1529
+ body = _document.body;
1352
1530
 
1353
- return {
1354
- enable: function enable() {
1355
- // Listen for and trap the keyboard
1356
- trapContainer.addEventListener('keydown', trapTabKey);
1357
- },
1358
- release: function release() {
1359
- trapContainer.removeEventListener('keydown', trapTabKey);
1360
- }
1361
- };
1362
- };
1531
+ var safeActive = typeof active === 'boolean' ? active : !isActive();
1363
1532
 
1364
- var focusTrap = void 0;
1365
-
1366
- var toggleNav = function toggleNav(active) {
1367
- var body = document.body;
1368
- if (typeof active !== 'boolean') {
1369
- active = !isActive();
1370
- }
1371
- body.classList.toggle(ACTIVE_CLASS, active);
1533
+ body.classList.toggle(ACTIVE_CLASS, safeActive);
1372
1534
 
1373
1535
  forEach(select(TOGGLES), function (el) {
1374
- el.classList.toggle(VISIBLE_CLASS, active);
1536
+ return el.classList.toggle(VISIBLE_CLASS, safeActive);
1375
1537
  });
1376
1538
 
1377
- if (active) {
1378
- focusTrap.enable();
1379
- } else {
1380
- focusTrap.release();
1381
- }
1539
+ navigation.focusTrap.update(safeActive);
1382
1540
 
1383
1541
  var closeButton = body.querySelector(CLOSE_BUTTON);
1384
1542
  var menuButton = body.querySelector(OPENERS);
1385
1543
 
1386
- if (active && closeButton) {
1544
+ if (safeActive && closeButton) {
1387
1545
  // The mobile nav was just activated, so focus on the close button,
1388
1546
  // which is just before all the nav elements in the tab order.
1389
1547
  closeButton.focus();
1390
- } else if (!active && document.activeElement === closeButton && menuButton) {
1548
+ } else if (!safeActive && document.activeElement === closeButton && menuButton) {
1391
1549
  // The mobile nav was just deactivated, and focus was on the close
1392
1550
  // button, which is no longer visible. We don't want the focus to
1393
1551
  // disappear into the void, so focus on the menu button if it's
@@ -1396,7 +1554,7 @@ var toggleNav = function toggleNav(active) {
1396
1554
  menuButton.focus();
1397
1555
  }
1398
1556
 
1399
- return active;
1557
+ return safeActive;
1400
1558
  };
1401
1559
 
1402
1560
  var resize = function resize() {
@@ -1407,11 +1565,15 @@ var resize = function resize() {
1407
1565
  // means the user's viewport has been resized so that it is no longer
1408
1566
  // in mobile mode. Let's make the page state consistent by
1409
1567
  // deactivating the mobile nav.
1410
- toggleNav.call(closer, false);
1568
+ navigation.toggleNav.call(closer, false);
1411
1569
  }
1412
1570
  };
1413
1571
 
1414
- var navigation = behavior(_defineProperty({}, CLICK, (_CLICK = {}, _defineProperty(_CLICK, OPENERS, toggleNav), _defineProperty(_CLICK, CLOSERS, toggleNav), _defineProperty(_CLICK, NAV_LINKS, function () {
1572
+ var onMenuClose = function onMenuClose() {
1573
+ return navigation.toggleNav.call(navigation, false);
1574
+ };
1575
+
1576
+ navigation = behavior(_defineProperty({}, CLICK, (_CLICK = {}, _defineProperty(_CLICK, OPENERS, toggleNav), _defineProperty(_CLICK, CLOSERS, toggleNav), _defineProperty(_CLICK, NAV_LINKS, function () {
1415
1577
  // A navigation link has been clicked! We want to collapse any
1416
1578
  // hierarchical navigation UI it's a part of, so that the user
1417
1579
  // can focus on whatever they've just selected.
@@ -1419,6 +1581,7 @@ var navigation = behavior(_defineProperty({}, CLICK, (_CLICK = {}, _defineProper
1419
1581
  // Some navigation links are inside accordions; when they're
1420
1582
  // clicked, we want to collapse those accordions.
1421
1583
  var acc = this.closest(accordion.ACCORDION);
1584
+
1422
1585
  if (acc) {
1423
1586
  accordion.getButtons(acc).forEach(function (btn) {
1424
1587
  return accordion.hide(btn);
@@ -1427,14 +1590,16 @@ var navigation = behavior(_defineProperty({}, CLICK, (_CLICK = {}, _defineProper
1427
1590
 
1428
1591
  // If the mobile navigation menu is active, we want to hide it.
1429
1592
  if (isActive()) {
1430
- toggleNav.call(this, false);
1593
+ navigation.toggleNav.call(navigation, false);
1431
1594
  }
1432
1595
  }), _CLICK)), {
1433
1596
  init: function init() {
1434
1597
  var trapContainer = document.querySelector(NAV);
1435
1598
 
1436
1599
  if (trapContainer) {
1437
- focusTrap = _focusTrap(trapContainer);
1600
+ navigation.focusTrap = FocusTrap(trapContainer, {
1601
+ Escape: onMenuClose
1602
+ });
1438
1603
  }
1439
1604
 
1440
1605
  resize();
@@ -1442,7 +1607,10 @@ var navigation = behavior(_defineProperty({}, CLICK, (_CLICK = {}, _defineProper
1442
1607
  },
1443
1608
  teardown: function teardown() {
1444
1609
  window.removeEventListener('resize', resize, false);
1445
- }
1610
+ },
1611
+
1612
+ focusTrap: null,
1613
+ toggleNav: toggleNav
1446
1614
  });
1447
1615
 
1448
1616
  /**
@@ -1450,12 +1618,11 @@ var navigation = behavior(_defineProperty({}, CLICK, (_CLICK = {}, _defineProper
1450
1618
  *
1451
1619
  * module.exports = behavior({...});
1452
1620
  */
1453
- var assign = require('object-assign');
1454
1621
  module.exports = assign(function (el) {
1455
1622
  return navigation.on(el);
1456
1623
  }, navigation);
1457
1624
 
1458
- },{"../config":25,"../events":26,"../utils/behavior":30,"../utils/select":32,"./accordion":16,"array-foreach":2,"object-assign":8}],21:[function(require,module,exports){
1625
+ },{"../config":28,"../events":29,"../utils/behavior":34,"../utils/focus-trap":35,"../utils/select":37,"./accordion":19,"array-foreach":2,"object-assign":9}],24:[function(require,module,exports){
1459
1626
  'use strict';
1460
1627
 
1461
1628
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -1463,49 +1630,42 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
1463
1630
  var behavior = require('../utils/behavior');
1464
1631
  var toggleFormInput = require('../utils/toggle-form-input');
1465
1632
 
1466
- var CLICK = require('../events').CLICK;
1467
- var PREFIX = require('../config').prefix;
1633
+ var _require = require('../events'),
1634
+ CLICK = _require.CLICK;
1635
+
1636
+ var _require2 = require('../config'),
1637
+ PREFIX = _require2.prefix;
1468
1638
 
1469
1639
  var LINK = '.' + PREFIX + '-show_password, .' + PREFIX + '-show_multipassword';
1470
1640
 
1471
- var toggle = function toggle(event) {
1641
+ function toggle(event) {
1472
1642
  event.preventDefault();
1473
1643
  toggleFormInput(this);
1474
- };
1644
+ }
1475
1645
 
1476
1646
  module.exports = behavior(_defineProperty({}, CLICK, _defineProperty({}, LINK, toggle)));
1477
1647
 
1478
- },{"../config":25,"../events":26,"../utils/behavior":30,"../utils/toggle-form-input":34}],22:[function(require,module,exports){
1648
+ },{"../config":28,"../events":29,"../utils/behavior":34,"../utils/toggle-form-input":39}],25:[function(require,module,exports){
1479
1649
  'use strict';
1480
1650
 
1481
1651
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1482
1652
 
1483
- var behavior = require('../utils/behavior');
1653
+ var assign = require('object-assign');
1484
1654
  var forEach = require('array-foreach');
1485
1655
  var ignore = require('receptor/ignore');
1656
+ var behavior = require('../utils/behavior');
1486
1657
  var select = require('../utils/select');
1487
1658
 
1488
- var CLICK = require('../events').CLICK;
1489
- var PREFIX = require('../config').prefix;
1659
+ var _require = require('../events'),
1660
+ CLICK = _require.CLICK;
1490
1661
 
1491
1662
  var BUTTON = '.js-search-button';
1492
1663
  var FORM = '.js-search-form';
1493
1664
  var INPUT = '[type=search]';
1494
1665
  var CONTEXT = 'header'; // XXX
1495
- var VISUALLY_HIDDEN = PREFIX + '-sr-only';
1496
1666
 
1497
1667
  var lastButton = void 0;
1498
1668
 
1499
- var showSearch = function showSearch(event) {
1500
- toggleSearch(this, true);
1501
- lastButton = this;
1502
- };
1503
-
1504
- var hideSearch = function hideSearch(event) {
1505
- toggleSearch(this, false);
1506
- lastButton = undefined;
1507
- };
1508
-
1509
1669
  var getForm = function getForm(button) {
1510
1670
  var context = button.closest(CONTEXT);
1511
1671
  return context ? context.querySelector(FORM) : document.querySelector(FORM);
@@ -1513,45 +1673,62 @@ var getForm = function getForm(button) {
1513
1673
 
1514
1674
  var toggleSearch = function toggleSearch(button, active) {
1515
1675
  var form = getForm(button);
1676
+
1516
1677
  if (!form) {
1517
1678
  throw new Error('No ' + FORM + ' found for search toggle in ' + CONTEXT + '!');
1518
1679
  }
1519
1680
 
1681
+ /* eslint-disable no-param-reassign */
1520
1682
  button.hidden = active;
1521
- form.classList.toggle(VISUALLY_HIDDEN, !active);
1683
+ form.hidden = !active;
1684
+ /* eslint-enable*/
1522
1685
 
1523
- if (active) {
1524
- var input = form.querySelector(INPUT);
1525
- if (input) {
1526
- input.focus();
1527
- }
1528
- // when the user clicks _outside_ of the form w/ignore(): hide the
1529
- // search, then remove the listener
1530
- var listener = ignore(form, function (e) {
1531
- if (lastButton) {
1532
- hideSearch.call(lastButton);
1533
- }
1534
- document.body.removeEventListener(CLICK, listener);
1535
- });
1686
+ if (!active) {
1687
+ return;
1688
+ }
1689
+
1690
+ var input = form.querySelector(INPUT);
1536
1691
 
1537
- // Normally we would just run this code without a timeout, but
1538
- // IE11 and Edge will actually call the listener *immediately* because
1539
- // they are currently handling this exact type of event, so we'll
1540
- // make sure the browser is done handling the current click event,
1541
- // if any, before we attach the listener.
1542
- setTimeout(function () {
1543
- document.body.addEventListener(CLICK, listener);
1544
- }, 0);
1692
+ if (input) {
1693
+ input.focus();
1545
1694
  }
1695
+ // when the user clicks _outside_ of the form w/ignore(): hide the
1696
+ // search, then remove the listener
1697
+ var listener = ignore(form, function () {
1698
+ if (lastButton) {
1699
+ hideSearch.call(lastButton); // eslint-disable-line no-use-before-define
1700
+ }
1701
+
1702
+ document.body.removeEventListener(CLICK, listener);
1703
+ });
1704
+
1705
+ // Normally we would just run this code without a timeout, but
1706
+ // IE11 and Edge will actually call the listener *immediately* because
1707
+ // they are currently handling this exact type of event, so we'll
1708
+ // make sure the browser is done handling the current click event,
1709
+ // if any, before we attach the listener.
1710
+ setTimeout(function () {
1711
+ document.body.addEventListener(CLICK, listener);
1712
+ }, 0);
1546
1713
  };
1547
1714
 
1715
+ function showSearch() {
1716
+ toggleSearch(this, true);
1717
+ lastButton = this;
1718
+ }
1719
+
1720
+ function hideSearch() {
1721
+ toggleSearch(this, false);
1722
+ lastButton = undefined;
1723
+ }
1724
+
1548
1725
  var search = behavior(_defineProperty({}, CLICK, _defineProperty({}, BUTTON, showSearch)), {
1549
1726
  init: function init(target) {
1550
1727
  forEach(select(BUTTON, target), function (button) {
1551
1728
  toggleSearch(button, false);
1552
1729
  });
1553
1730
  },
1554
- teardown: function teardown(target) {
1731
+ teardown: function teardown() {
1555
1732
  // forget the last button clicked
1556
1733
  lastButton = undefined;
1557
1734
  }
@@ -1562,25 +1739,29 @@ var search = behavior(_defineProperty({}, CLICK, _defineProperty({}, BUTTON, sho
1562
1739
  *
1563
1740
  * module.exports = behavior({...});
1564
1741
  */
1565
- var assign = require('object-assign');
1742
+
1566
1743
  module.exports = assign(function (el) {
1567
1744
  return search.on(el);
1568
1745
  }, search);
1569
1746
 
1570
- },{"../config":25,"../events":26,"../utils/behavior":30,"../utils/select":32,"array-foreach":2,"object-assign":8,"receptor/ignore":13}],23:[function(require,module,exports){
1747
+ },{"../events":29,"../utils/behavior":34,"../utils/select":37,"array-foreach":2,"object-assign":9,"receptor/ignore":14}],26:[function(require,module,exports){
1571
1748
  'use strict';
1572
1749
 
1573
1750
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1574
1751
 
1575
- var behavior = require('../utils/behavior');
1576
1752
  var once = require('receptor/once');
1753
+ var behavior = require('../utils/behavior');
1754
+
1755
+ var _require = require('../events'),
1756
+ CLICK = _require.CLICK;
1757
+
1758
+ var _require2 = require('../config'),
1759
+ PREFIX = _require2.prefix;
1577
1760
 
1578
- var CLICK = require('../events').CLICK;
1579
- var PREFIX = require('../config').prefix;
1580
1761
  var LINK = '.' + PREFIX + '-skipnav[href^="#"], .' + PREFIX + '-footer-return-to-top [href^="#"]';
1581
1762
  var MAINCONTENT = 'main-content';
1582
1763
 
1583
- var setTabindex = function setTabindex(event) {
1764
+ function setTabindex() {
1584
1765
  // NB: we know because of the selector we're delegating to below that the
1585
1766
  // href already begins with '#'
1586
1767
  var id = this.getAttribute('href');
@@ -1590,26 +1771,26 @@ var setTabindex = function setTabindex(event) {
1590
1771
  target.style.outline = '0';
1591
1772
  target.setAttribute('tabindex', 0);
1592
1773
  target.focus();
1593
- target.addEventListener('blur', once(function (event) {
1774
+ target.addEventListener('blur', once(function () {
1594
1775
  target.setAttribute('tabindex', -1);
1595
1776
  }));
1596
1777
  } else {
1597
1778
  // throw an error?
1598
1779
  }
1599
- };
1780
+ }
1600
1781
 
1601
1782
  module.exports = behavior(_defineProperty({}, CLICK, _defineProperty({}, LINK, setTabindex)));
1602
1783
 
1603
- },{"../config":25,"../events":26,"../utils/behavior":30,"receptor/once":14}],24:[function(require,module,exports){
1784
+ },{"../config":28,"../events":29,"../utils/behavior":34,"receptor/once":17}],27:[function(require,module,exports){
1604
1785
  'use strict';
1605
1786
 
1787
+ var assign = require('object-assign');
1606
1788
  var behavior = require('../utils/behavior');
1607
1789
  var validate = require('../utils/validate-input');
1608
- var debounce = require('lodash.debounce');
1609
1790
 
1610
- var change = function change(event) {
1611
- return validate(this);
1612
- };
1791
+ function change() {
1792
+ validate(this);
1793
+ }
1613
1794
 
1614
1795
  var validator = behavior({
1615
1796
  'keyup change': {
@@ -1622,19 +1803,19 @@ var validator = behavior({
1622
1803
  *
1623
1804
  * module.exports = behavior({...});
1624
1805
  */
1625
- var assign = require('object-assign');
1806
+
1626
1807
  module.exports = assign(function (el) {
1627
1808
  return validator.on(el);
1628
1809
  }, validator);
1629
1810
 
1630
- },{"../utils/behavior":30,"../utils/validate-input":36,"lodash.debounce":7,"object-assign":8}],25:[function(require,module,exports){
1811
+ },{"../utils/behavior":34,"../utils/validate-input":41,"object-assign":9}],28:[function(require,module,exports){
1631
1812
  'use strict';
1632
1813
 
1633
1814
  module.exports = {
1634
1815
  prefix: 'usa'
1635
1816
  };
1636
1817
 
1637
- },{}],26:[function(require,module,exports){
1818
+ },{}],29:[function(require,module,exports){
1638
1819
  'use strict';
1639
1820
 
1640
1821
  module.exports = {
@@ -1653,7 +1834,7 @@ module.exports = {
1653
1834
  CLICK: 'click'
1654
1835
  };
1655
1836
 
1656
- },{}],27:[function(require,module,exports){
1837
+ },{}],30:[function(require,module,exports){
1657
1838
  'use strict';
1658
1839
 
1659
1840
  var elproto = window.HTMLElement.prototype;
@@ -1674,15 +1855,15 @@ if (!(HIDDEN in elproto)) {
1674
1855
  });
1675
1856
  }
1676
1857
 
1677
- },{}],28:[function(require,module,exports){
1858
+ },{}],31:[function(require,module,exports){
1678
1859
  'use strict';
1679
- // polyfills HTMLElement.prototype.classList and DOMTokenList
1680
1860
 
1861
+ // polyfills HTMLElement.prototype.classList and DOMTokenList
1681
1862
  require('classlist-polyfill');
1682
1863
  // polyfills HTMLElement.prototype.hidden
1683
1864
  require('./element-hidden');
1684
1865
 
1685
- },{"./element-hidden":27,"classlist-polyfill":3}],29:[function(require,module,exports){
1866
+ },{"./element-hidden":30,"classlist-polyfill":3}],32:[function(require,module,exports){
1686
1867
  'use strict';
1687
1868
 
1688
1869
  var domready = require('domready');
@@ -1696,33 +1877,51 @@ require('./polyfills');
1696
1877
  var uswds = require('./config');
1697
1878
 
1698
1879
  var components = require('./components');
1880
+
1699
1881
  uswds.components = components;
1700
1882
 
1701
1883
  domready(function () {
1702
1884
  var target = document.body;
1703
- for (var name in components) {
1704
- var behavior = components[name];
1885
+ Object.keys(components).forEach(function (key) {
1886
+ var behavior = components[key];
1705
1887
  behavior.on(target);
1706
- }
1888
+ });
1707
1889
  });
1708
1890
 
1709
1891
  module.exports = uswds;
1710
1892
 
1711
- },{"./components":19,"./config":25,"./polyfills":28,"domready":4}],30:[function(require,module,exports){
1893
+ },{"./components":22,"./config":28,"./polyfills":31,"domready":4}],33:[function(require,module,exports){
1894
+ "use strict";
1895
+
1896
+ module.exports = function () {
1897
+ var htmlDocument = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;
1898
+ return htmlDocument.activeElement;
1899
+ };
1900
+
1901
+ },{}],34:[function(require,module,exports){
1712
1902
  'use strict';
1713
1903
 
1714
1904
  var assign = require('object-assign');
1715
1905
  var forEach = require('array-foreach');
1716
1906
  var Behavior = require('receptor/behavior');
1717
1907
 
1908
+ /**
1909
+ * @name sequence
1910
+ * @param {...Function} seq an array of functions
1911
+ * @return { closure } callHooks
1912
+ */
1913
+ // We use a named function here because we want it to inherit its lexical scope
1914
+ // from the behavior props object, not from the module
1718
1915
  var sequence = function sequence() {
1719
- var seq = [].slice.call(arguments);
1720
- return function (target) {
1916
+ for (var _len = arguments.length, seq = Array(_len), _key = 0; _key < _len; _key++) {
1917
+ seq[_key] = arguments[_key];
1918
+ }
1919
+
1920
+ return function callHooks() {
1721
1921
  var _this = this;
1722
1922
 
1723
- if (!target) {
1724
- target = document.body;
1725
- }
1923
+ var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;
1924
+
1726
1925
  forEach(seq, function (method) {
1727
1926
  if (typeof _this[method] === 'function') {
1728
1927
  _this[method].call(_this, target);
@@ -1744,7 +1943,83 @@ module.exports = function (events, props) {
1744
1943
  }, props));
1745
1944
  };
1746
1945
 
1747
- },{"array-foreach":2,"object-assign":8,"receptor/behavior":9}],31:[function(require,module,exports){
1946
+ },{"array-foreach":2,"object-assign":9,"receptor/behavior":10}],35:[function(require,module,exports){
1947
+ 'use strict';
1948
+
1949
+ var assign = require('object-assign');
1950
+
1951
+ var _require = require('receptor'),
1952
+ keymap = _require.keymap;
1953
+
1954
+ var behavior = require('./behavior');
1955
+ var select = require('./select');
1956
+ var activeElement = require('./active-element');
1957
+
1958
+ var FOCUSABLE = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]';
1959
+
1960
+ var tabHandler = function tabHandler(context) {
1961
+ var focusableElements = select(FOCUSABLE, context);
1962
+ var firstTabStop = focusableElements[0];
1963
+ var lastTabStop = focusableElements[focusableElements.length - 1];
1964
+
1965
+ // Special rules for when the user is tabbing forward from the last focusable element,
1966
+ // or when tabbing backwards from the first focusable element
1967
+ function tabAhead(event) {
1968
+ if (activeElement() === lastTabStop) {
1969
+ event.preventDefault();
1970
+ firstTabStop.focus();
1971
+ }
1972
+ }
1973
+
1974
+ function tabBack(event) {
1975
+ if (activeElement() === firstTabStop) {
1976
+ event.preventDefault();
1977
+ lastTabStop.focus();
1978
+ }
1979
+ }
1980
+
1981
+ return {
1982
+ firstTabStop: firstTabStop,
1983
+ lastTabStop: lastTabStop,
1984
+ tabAhead: tabAhead,
1985
+ tabBack: tabBack
1986
+ };
1987
+ };
1988
+
1989
+ module.exports = function (context) {
1990
+ var additionalKeyBindings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1991
+
1992
+ var tabEventHandler = tabHandler(context);
1993
+
1994
+ // TODO: In the future, loop over additional keybindings and pass an array
1995
+ // of functions, if necessary, to the map keys. Then people implementing
1996
+ // the focus trap could pass callbacks to fire when tabbing
1997
+ var keyMappings = keymap(assign({
1998
+ Tab: tabEventHandler.tabAhead,
1999
+ 'Shift+Tab': tabEventHandler.tabBack
2000
+ }, additionalKeyBindings));
2001
+
2002
+ var focusTrap = behavior({
2003
+ keydown: keyMappings
2004
+ }, {
2005
+ init: function init() {
2006
+ // TODO: is this desireable behavior? Should the trap always do this by default or should
2007
+ // the component getting decorated handle this?
2008
+ tabEventHandler.firstTabStop.focus();
2009
+ },
2010
+ update: function update(isActive) {
2011
+ if (isActive) {
2012
+ this.on();
2013
+ } else {
2014
+ this.off();
2015
+ }
2016
+ }
2017
+ });
2018
+
2019
+ return focusTrap;
2020
+ };
2021
+
2022
+ },{"./active-element":33,"./behavior":34,"./select":37,"object-assign":9,"receptor":15}],36:[function(require,module,exports){
1748
2023
  "use strict";
1749
2024
 
1750
2025
  // https://stackoverflow.com/a/7557433
@@ -1759,18 +2034,17 @@ function isElementInViewport(el) {
1759
2034
 
1760
2035
  module.exports = isElementInViewport;
1761
2036
 
1762
- },{}],32:[function(require,module,exports){
2037
+ },{}],37:[function(require,module,exports){
1763
2038
  'use strict';
1764
2039
 
2040
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2041
+
1765
2042
  /**
1766
2043
  * @name isElement
1767
2044
  * @desc returns whether or not the given argument is a DOM element.
1768
2045
  * @param {any} value
1769
2046
  * @return {boolean}
1770
2047
  */
1771
-
1772
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
1773
-
1774
2048
  var isElement = function isElement(value) {
1775
2049
  return value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.nodeType === 1;
1776
2050
  };
@@ -1783,21 +2057,20 @@ var isElement = function isElement(value) {
1783
2057
  * in. If not provided, it defaults to the document.
1784
2058
  * @return {HTMLElement[]} - An array of DOM nodes or an empty array.
1785
2059
  */
1786
- module.exports = function select(selector, context) {
1787
-
2060
+ module.exports = function (selector, context) {
1788
2061
  if (typeof selector !== 'string') {
1789
2062
  return [];
1790
2063
  }
1791
2064
 
1792
2065
  if (!context || !isElement(context)) {
1793
- context = window.document;
2066
+ context = window.document; // eslint-disable-line no-param-reassign
1794
2067
  }
1795
2068
 
1796
2069
  var selection = context.querySelectorAll(selector);
1797
2070
  return Array.prototype.slice.call(selection);
1798
2071
  };
1799
2072
 
1800
- },{}],33:[function(require,module,exports){
2073
+ },{}],38:[function(require,module,exports){
1801
2074
  'use strict';
1802
2075
 
1803
2076
  /**
@@ -1811,12 +2084,11 @@ module.exports = function (field, mask) {
1811
2084
  field.setAttribute('type', mask ? 'password' : 'text');
1812
2085
  };
1813
2086
 
1814
- },{}],34:[function(require,module,exports){
2087
+ },{}],39:[function(require,module,exports){
1815
2088
  'use strict';
1816
2089
 
1817
2090
  var forEach = require('array-foreach');
1818
2091
  var resolveIdRefs = require('resolve-id-refs');
1819
- var select = require('./select');
1820
2092
  var toggleFieldMask = require('./toggle-field-mask');
1821
2093
 
1822
2094
  var CONTROLS = 'aria-controls';
@@ -1831,7 +2103,7 @@ var HIDE_ATTR = 'data-hide-text';
1831
2103
  */
1832
2104
  var getHideText = function getHideText(showText) {
1833
2105
  return showText.replace(/\bShow\b/i, function (show) {
1834
- return ('S' === show[0] ? 'H' : 'h') + 'ide';
2106
+ return (show[0] === 'S' ? 'H' : 'h') + 'ide';
1835
2107
  });
1836
2108
  };
1837
2109
 
@@ -1862,12 +2134,12 @@ module.exports = function (el) {
1862
2134
  var showText = el.getAttribute(SHOW_ATTR);
1863
2135
  var hideText = el.getAttribute(HIDE_ATTR) || getHideText(showText);
1864
2136
 
1865
- el.textContent = pressed ? showText : hideText;
2137
+ el.textContent = pressed ? showText : hideText; // eslint-disable-line no-param-reassign
1866
2138
  el.setAttribute(PRESSED, pressed);
1867
2139
  return pressed;
1868
2140
  };
1869
2141
 
1870
- },{"./select":32,"./toggle-field-mask":33,"array-foreach":2,"resolve-id-refs":15}],35:[function(require,module,exports){
2142
+ },{"./toggle-field-mask":38,"array-foreach":2,"resolve-id-refs":18}],40:[function(require,module,exports){
1871
2143
  'use strict';
1872
2144
 
1873
2145
  var EXPANDED = 'aria-expanded';
@@ -1875,11 +2147,13 @@ var CONTROLS = 'aria-controls';
1875
2147
  var HIDDEN = 'aria-hidden';
1876
2148
 
1877
2149
  module.exports = function (button, expanded) {
2150
+ var safeExpanded = expanded;
1878
2151
 
1879
- if (typeof expanded !== 'boolean') {
1880
- expanded = button.getAttribute(EXPANDED) === 'false';
2152
+ if (typeof safeExpanded !== 'boolean') {
2153
+ safeExpanded = button.getAttribute(EXPANDED) === 'false';
1881
2154
  }
1882
- button.setAttribute(EXPANDED, expanded);
2155
+
2156
+ button.setAttribute(EXPANDED, safeExpanded);
1883
2157
 
1884
2158
  var id = button.getAttribute(CONTROLS);
1885
2159
  var controls = document.getElementById(id);
@@ -1887,16 +2161,21 @@ module.exports = function (button, expanded) {
1887
2161
  throw new Error('No toggle target found with id: "' + id + '"');
1888
2162
  }
1889
2163
 
1890
- controls.setAttribute(HIDDEN, !expanded);
1891
- return expanded;
2164
+ controls.setAttribute(HIDDEN, !safeExpanded);
2165
+
2166
+ return safeExpanded;
1892
2167
  };
1893
2168
 
1894
- },{}],36:[function(require,module,exports){
2169
+ },{}],41:[function(require,module,exports){
1895
2170
  'use strict';
1896
2171
 
2172
+ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
2173
+
1897
2174
  var dataset = require('elem-dataset');
1898
2175
 
1899
- var PREFIX = require('../config').prefix;
2176
+ var _require = require('../config'),
2177
+ PREFIX = _require.prefix;
2178
+
1900
2179
  var CHECKED = 'aria-checked';
1901
2180
  var CHECKED_CLASS = PREFIX + '-checklist-checked';
1902
2181
 
@@ -1909,12 +2188,17 @@ module.exports = function validate(el) {
1909
2188
  throw new Error('No validation element found with id: "' + id + '"');
1910
2189
  }
1911
2190
 
1912
- for (var key in data) {
2191
+ Object.entries(data).forEach(function (_ref) {
2192
+ var _ref2 = _slicedToArray(_ref, 2),
2193
+ key = _ref2[0],
2194
+ value = _ref2[1];
2195
+
1913
2196
  if (key.startsWith('validate')) {
1914
2197
  var validatorName = key.substr('validate'.length).toLowerCase();
1915
- var validatorPattern = new RegExp(data[key]);
2198
+ var validatorPattern = new RegExp(value);
1916
2199
  var validatorSelector = '[data-validator="' + validatorName + '"]';
1917
2200
  var validatorCheckbox = checkList.querySelector(validatorSelector);
2201
+
1918
2202
  if (!validatorCheckbox) {
1919
2203
  throw new Error('No validator checkbox found for: "' + validatorName + '"');
1920
2204
  }
@@ -1923,8 +2207,8 @@ module.exports = function validate(el) {
1923
2207
  validatorCheckbox.classList.toggle(CHECKED_CLASS, checked);
1924
2208
  validatorCheckbox.setAttribute(CHECKED, checked);
1925
2209
  }
1926
- }
2210
+ });
1927
2211
  };
1928
2212
 
1929
- },{"../config":25,"elem-dataset":5}]},{},[29])
1930
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9k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bWUgPSBrZXkuc3Vic3RyKCd2YWxpZGF0ZScubGVuZ3RoKS50b0xvd2VyQ2FzZSgpO1xuICAgICAgY29uc3QgdmFsaWRhdG9yUGF0dGVybiA9IG5ldyBSZWdFeHAoZGF0YVsga2V5IF0pO1xuICAgICAgY29uc3QgdmFsaWRhdG9yU2VsZWN0b3IgPSBgW2RhdGEtdmFsaWRhdG9yPVwiJHt2YWxpZGF0b3JOYW1lfVwiXWA7XG4gICAgICBjb25zdCB2YWxpZGF0b3JDaGVja2JveCA9IGNoZWNrTGlzdC5xdWVyeVNlbGVjdG9yKHZhbGlkYXRvclNlbGVjdG9yKTtcbiAgICAgIGlmICghdmFsaWRhdG9yQ2hlY2tib3gpIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgICAgIGBObyB2YWxpZGF0b3IgY2hlY2tib3ggZm91bmQgZm9yOiBcIiR7dmFsaWRhdG9yTmFtZX1cImBcbiAgICAgICAgKTtcbiAgICAgIH1cblxuICAgICAgY29uc3QgY2hlY2tlZCA9IHZhbGlkYXRvclBhdHRlcm4udGVzdChlbC52YWx1ZSk7XG4gICAgICB2YWxpZGF0b3JDaGVja2JveC5jbGFzc0xpc3QudG9nZ2xlKENIRUNLRURfQ0xBU1MsIGNoZWNrZWQpO1xuICAgICAgdmFsaWRhdG9yQ2hlY2tib3guc2V0QXR0cmlidXRlKENIRUNLRUQsIGNoZWNrZWQpO1xuICAgIH1cbiAgfVxufTtcbiJdfQ==
2213
+ },{"../config":28,"elem-dataset":5}]},{},[32])
2214
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJub2RlX21vZHVsZXMvYXJyYXktZmlsdGVyL2luZGV4LmpzIiwibm9kZV9tb2R1bGVzL2FycmF5LWZvcmVhY2gvaW5kZXguanMiLCJub2RlX21vZHVsZXMvY2xh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