@nysds/components 1.4.1 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nysds.es.js CHANGED
@@ -1,13 +1,13 @@
1
- import { css as u, LitElement as p, html as l } from "lit";
1
+ import { css as g, LitElement as u, html as a } from "lit";
2
2
  import { property as r, state as O } from "lit/decorators.js";
3
3
  import { ifDefined as h } from "lit/directives/if-defined.js";
4
4
  /*!
5
- * New York State Design System (v1.4.1)
5
+ * New York State Design System (v1.4.0)
6
6
  * Description: A design system for New York State's digital products.
7
7
  * Repository: https://github.com/its-hcd/nysds
8
8
  * License: MIT
9
9
  */
10
- const j1 = u`
10
+ const q1 = g`
11
11
  :host {
12
12
  /* Global Alert Styles */
13
13
  --_nys-alert-border-width: var(--nys-border-width-lg, 4px);
@@ -238,14 +238,14 @@ const j1 = u`
238
238
  text-decoration-thickness: 3px;
239
239
  }
240
240
  `;
241
- var G1 = Object.defineProperty, Y1 = Object.getOwnPropertyDescriptor, $ = (a, e, t, o) => {
242
- for (var s = o > 1 ? void 0 : o ? Y1(e, t) : e, n = a.length - 1, i; n >= 0; n--)
243
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
244
- return o && s && G1(e, t, s), s;
241
+ var U1 = Object.defineProperty, P1 = Object.getOwnPropertyDescriptor, D = (l, e, t, o) => {
242
+ for (var s = o > 1 ? void 0 : o ? P1(e, t) : e, n = l.length - 1, i; n >= 0; n--)
243
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
244
+ return o && s && U1(e, t, s), s;
245
245
  };
246
- let K1 = 0;
246
+ let O1 = 0;
247
247
  var J;
248
- const L = (J = class extends p {
248
+ const L = (J = class extends u {
249
249
  constructor() {
250
250
  super(...arguments), this.id = "", this.heading = "", this.icon = "", this.dismissible = !1, this.duration = 0, this.text = "", this.primaryAction = "", this.secondaryAction = "", this.primaryLabel = "Learn more", this.secondaryLabel = "Dismiss", this._alertClosed = !1, this._slotHasContent = !0, this._type = "base", this._timeoutId = null;
251
251
  }
@@ -276,7 +276,7 @@ const L = (J = class extends p {
276
276
  }
277
277
  /******************** Functions ********************/
278
278
  _generateUniqueId() {
279
- return `nys-alert-${Date.now()}-${K1++}`;
279
+ return `nys-alert-${Date.now()}-${O1++}`;
280
280
  }
281
281
  // Helper function for overriding default icons or checking special naming cases (e.g. type=success)
282
282
  _getIconName() {
@@ -311,8 +311,8 @@ const L = (J = class extends p {
311
311
  render() {
312
312
  var o, s;
313
313
  const { role: e, ariaLabel: t } = this.ariaAttributes;
314
- return l`
315
- ${this._alertClosed ? "" : l` <div
314
+ return a`
315
+ ${this._alertClosed ? "" : a` <div
316
316
  id=${this.id}
317
317
  class="nys-alert__container ${this._slotHasContent || ((o = this.text) == null ? void 0 : o.trim().length) > 0 ? "" : "nys-alert--centered"}"
318
318
  role=${e}
@@ -329,15 +329,15 @@ const L = (J = class extends p {
329
329
  </div>
330
330
  <div class="nys-alert__texts">
331
331
  <p class="nys-alert__header">${this.heading}</p>
332
- ${this._slotHasContent ? l`<slot></slot>` : ((s = this.text) == null ? void 0 : s.trim().length) > 0 ? l`<p class="nys-alert__text">${this.text}</p>` : ""}
333
- ${this.primaryAction || this.secondaryAction ? l`<div class="nys-alert__actions">
334
- ${this.primaryAction ? l`<a
332
+ ${this._slotHasContent ? a`<slot></slot>` : ((s = this.text) == null ? void 0 : s.trim().length) > 0 ? a`<p class="nys-alert__text">${this.text}</p>` : ""}
333
+ ${this.primaryAction || this.secondaryAction ? a`<div class="nys-alert__actions">
334
+ ${this.primaryAction ? a`<a
335
335
  href=${h(this.primaryAction || void 0)}
336
336
  class="nys-alert__action nys-alert__primary"
337
337
  >
338
338
  ${this.primaryLabel}
339
339
  </a>` : ""}
340
- ${this.secondaryAction ? l`<a
340
+ ${this.secondaryAction ? a`<a
341
341
  href=${h(this.secondaryAction || void 0)}
342
342
  class="nys-alert__action nys-alert__secondary"
343
343
  >
@@ -345,7 +345,7 @@ const L = (J = class extends p {
345
345
  </a>` : ""}
346
346
  </div> ` : ""}
347
347
  </div>
348
- ${this.dismissible ? l` <nys-button
348
+ ${this.dismissible ? a` <nys-button
349
349
  id="dismiss-btn"
350
350
  variant="ghost"
351
351
  circle
@@ -358,7 +358,7 @@ const L = (J = class extends p {
358
358
  </div>`}
359
359
  `;
360
360
  }
361
- }, J.styles = j1, J.VALID_TYPES = [
361
+ }, J.styles = q1, J.VALID_TYPES = [
362
362
  "base",
363
363
  "info",
364
364
  "success",
@@ -366,48 +366,48 @@ const L = (J = class extends p {
366
366
  "danger",
367
367
  "emergency"
368
368
  ], J);
369
- $([
369
+ D([
370
370
  r({ type: String })
371
371
  ], L.prototype, "id", 2);
372
- $([
372
+ D([
373
373
  r({ type: String })
374
374
  ], L.prototype, "heading", 2);
375
- $([
375
+ D([
376
376
  r({ type: String })
377
377
  ], L.prototype, "icon", 2);
378
- $([
378
+ D([
379
379
  r({ type: Boolean, reflect: !0 })
380
380
  ], L.prototype, "dismissible", 2);
381
- $([
381
+ D([
382
382
  r({ type: Number, reflect: !0 })
383
383
  ], L.prototype, "duration", 2);
384
- $([
384
+ D([
385
385
  r({ type: String })
386
386
  ], L.prototype, "text", 2);
387
- $([
387
+ D([
388
388
  r({ type: String })
389
389
  ], L.prototype, "primaryAction", 2);
390
- $([
390
+ D([
391
391
  r({ type: String })
392
392
  ], L.prototype, "secondaryAction", 2);
393
- $([
393
+ D([
394
394
  r({ type: String })
395
395
  ], L.prototype, "primaryLabel", 2);
396
- $([
396
+ D([
397
397
  r({ type: String })
398
398
  ], L.prototype, "secondaryLabel", 2);
399
- $([
399
+ D([
400
400
  O()
401
401
  ], L.prototype, "_alertClosed", 2);
402
- $([
402
+ D([
403
403
  O()
404
404
  ], L.prototype, "_slotHasContent", 2);
405
- $([
405
+ D([
406
406
  r({ reflect: !0 })
407
407
  ], L.prototype, "type", 1);
408
- let W1 = L;
409
- customElements.get("nys-alert") || customElements.define("nys-alert", W1);
410
- const X1 = u`
408
+ let R1 = L;
409
+ customElements.get("nys-alert") || customElements.define("nys-alert", R1);
410
+ const T1 = g`
411
411
  :host {
412
412
  /* Global Avatar Styles */
413
413
  --_nys-avatar-shape: var(--nys-radius-round, 1776px);
@@ -475,14 +475,14 @@ const X1 = u`
475
475
  fill: currentColor;
476
476
  }
477
477
  `;
478
- var Q1 = Object.defineProperty, J1 = Object.getOwnPropertyDescriptor, X = (a, e, t, o) => {
479
- for (var s = o > 1 ? void 0 : o ? J1(e, t) : e, n = a.length - 1, i; n >= 0; n--)
480
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
481
- return o && s && Q1(e, t, s), s;
478
+ var F1 = Object.defineProperty, N1 = Object.getOwnPropertyDescriptor, Q = (l, e, t, o) => {
479
+ for (var s = o > 1 ? void 0 : o ? N1(e, t) : e, n = l.length - 1, i; n >= 0; n--)
480
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
481
+ return o && s && F1(e, t, s), s;
482
482
  };
483
- let ee = 0;
483
+ let j1 = 0;
484
484
  var e1;
485
- const P = (e1 = class extends p {
485
+ const R = (e1 = class extends u {
486
486
  constructor() {
487
487
  super(...arguments), this.id = "", this.label = "", this.image = "", this.initials = "", this.icon = "", this.color = "#555", this.lazy = !1, this._shape = "circle", this._slotHasContent = !0;
488
488
  }
@@ -498,7 +498,7 @@ const P = (e1 = class extends p {
498
498
  /******************** Functions ********************/
499
499
  // Generate a unique ID if one is not provided
500
500
  connectedCallback() {
501
- super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${ee++}`);
501
+ super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${j1++}`);
502
502
  }
503
503
  firstUpdated() {
504
504
  this._checkSlotContent();
@@ -521,7 +521,7 @@ const P = (e1 = class extends p {
521
521
  }
522
522
  render() {
523
523
  var e, t, o, s;
524
- return l`
524
+ return a`
525
525
  <label class="nys-avatar" id=${this.id}>
526
526
  <div class="nys-avatar__content">
527
527
  <div
@@ -533,20 +533,20 @@ const P = (e1 = class extends p {
533
533
  this.image ? void 0 : this.label ? this.label : "avatar"
534
534
  )}
535
535
  >
536
- ${((t = this.image) == null ? void 0 : t.length) > 0 ? l`<img
536
+ ${((t = this.image) == null ? void 0 : t.length) > 0 ? a`<img
537
537
  part="nys-avatar__image"
538
538
  class="nys-avatar__image"
539
539
  src=${this.image}
540
540
  alt=${this.label || "avatar"}
541
541
  loading=${this.lazy ? "lazy" : "eager"}
542
- />` : ((o = this.initials) == null ? void 0 : o.length) > 0 ? l`<span
542
+ />` : ((o = this.initials) == null ? void 0 : o.length) > 0 ? a`<span
543
543
  part="nys-avatar__initials"
544
544
  class="nys-avatar__initials"
545
545
  aria-hidden="true"
546
546
  >${this.initials}</span
547
- >` : this._slotHasContent ? l`<div part="nys-avatar__icon">
547
+ >` : this._slotHasContent ? a`<div part="nys-avatar__icon">
548
548
  <slot></slot>
549
- </div>` : l`<div part="nys-avatar__icon">
549
+ </div>` : a`<div part="nys-avatar__icon">
550
550
  <nys-icon
551
551
  label="nys-avatar__icon"
552
552
  name=${((s = this.icon) == null ? void 0 : s.length) > 0 ? this.icon : "account_circle"}
@@ -558,41 +558,41 @@ const P = (e1 = class extends p {
558
558
  </label>
559
559
  `;
560
560
  }
561
- }, e1.styles = X1, e1.VALID_SHAPES = [
561
+ }, e1.styles = T1, e1.VALID_SHAPES = [
562
562
  "square",
563
563
  "rounded",
564
564
  "circle"
565
565
  ], e1);
566
- X([
566
+ Q([
567
567
  r({ type: String })
568
- ], P.prototype, "id", 2);
569
- X([
568
+ ], R.prototype, "id", 2);
569
+ Q([
570
570
  r({ type: String })
571
- ], P.prototype, "label", 2);
572
- X([
571
+ ], R.prototype, "label", 2);
572
+ Q([
573
573
  r({ type: String })
574
- ], P.prototype, "image", 2);
575
- X([
574
+ ], R.prototype, "image", 2);
575
+ Q([
576
576
  r({ type: String })
577
- ], P.prototype, "initials", 2);
578
- X([
577
+ ], R.prototype, "initials", 2);
578
+ Q([
579
579
  r({ type: String })
580
- ], P.prototype, "icon", 2);
581
- X([
580
+ ], R.prototype, "icon", 2);
581
+ Q([
582
582
  r({ type: String })
583
- ], P.prototype, "color", 2);
584
- X([
583
+ ], R.prototype, "color", 2);
584
+ Q([
585
585
  r({ type: Boolean, reflect: !0 })
586
- ], P.prototype, "lazy", 2);
587
- X([
586
+ ], R.prototype, "lazy", 2);
587
+ Q([
588
588
  r({ reflect: !0 })
589
- ], P.prototype, "shape", 1);
590
- X([
589
+ ], R.prototype, "shape", 1);
590
+ Q([
591
591
  O()
592
- ], P.prototype, "_slotHasContent", 2);
593
- let te = P;
594
- customElements.get("nys-avatar") || customElements.define("nys-avatar", te);
595
- const se = u`
592
+ ], R.prototype, "_slotHasContent", 2);
593
+ let G1 = R;
594
+ customElements.get("nys-avatar") || customElements.define("nys-avatar", G1);
595
+ const Y1 = g`
596
596
  :host {
597
597
  }
598
598
 
@@ -617,12 +617,12 @@ const se = u`
617
617
  display: inline-flex;
618
618
  }
619
619
  `;
620
- var oe = Object.defineProperty, $1 = (a, e, t, o) => {
621
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
622
- (i = a[n]) && (s = i(e, t, s) || s);
623
- return s && oe(e, t, s), s;
620
+ var W1 = Object.defineProperty, m1 = (l, e, t, o) => {
621
+ for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
622
+ (i = l[n]) && (s = i(e, t, s) || s);
623
+ return s && W1(e, t, s), s;
624
624
  };
625
- const V1 = class V1 extends p {
625
+ const k1 = class k1 extends u {
626
626
  constructor() {
627
627
  super(), this.position = "right", this.visible = !1, this.isMobile = !1, this._handleScroll = this._handleScroll.bind(this), this._handleResize = this._handleResize.bind(this), this.mediaQuery = window.matchMedia("(max-width: 480px)");
628
628
  }
@@ -648,7 +648,7 @@ const V1 = class V1 extends p {
648
648
  this.position,
649
649
  this.visible ? "visible" : ""
650
650
  ].filter(Boolean).join(" ");
651
- return l`<nys-button
651
+ return a`<nys-button
652
652
  id="nys-backtotop"
653
653
  prefixIcon="chevron_up"
654
654
  variant="outline"
@@ -659,19 +659,19 @@ const V1 = class V1 extends p {
659
659
  ></nys-button>`;
660
660
  }
661
661
  };
662
- V1.styles = se;
663
- let d1 = V1;
664
- $1([
662
+ k1.styles = Y1;
663
+ let c1 = k1;
664
+ m1([
665
665
  r({ type: String })
666
- ], d1.prototype, "position");
667
- $1([
666
+ ], c1.prototype, "position");
667
+ m1([
668
668
  r({ type: Boolean, reflect: !0 })
669
- ], d1.prototype, "visible");
670
- $1([
669
+ ], c1.prototype, "visible");
670
+ m1([
671
671
  O()
672
- ], d1.prototype, "isMobile");
673
- customElements.get("nys-backtotop") || customElements.define("nys-backtotop", d1);
674
- const re = u`
672
+ ], c1.prototype, "isMobile");
673
+ customElements.get("nys-backtotop") || customElements.define("nys-backtotop", c1);
674
+ const K1 = g`
675
675
  :host {
676
676
  /* Anything that can be overridden should be defined here */
677
677
 
@@ -1092,24 +1092,24 @@ const re = u`
1092
1092
  user-select: none;
1093
1093
  }
1094
1094
  `;
1095
- var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, C = (a, e, t, o) => {
1096
- for (var s = o > 1 ? void 0 : o ? ie(e, t) : e, n = a.length - 1, i; n >= 0; n--)
1097
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
1098
- return o && s && ne(e, t, s), s;
1095
+ var X1 = Object.defineProperty, Q1 = Object.getOwnPropertyDescriptor, v = (l, e, t, o) => {
1096
+ for (var s = o > 1 ? void 0 : o ? Q1(e, t) : e, n = l.length - 1, i; n >= 0; n--)
1097
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
1098
+ return o && s && X1(e, t, s), s;
1099
1099
  };
1100
- let ae = 0;
1101
- var w;
1102
- const v = (w = class extends p {
1100
+ let J1 = 0;
1101
+ var x;
1102
+ const f = (x = class extends u {
1103
1103
  // allows use of elementInternals' API
1104
1104
  constructor() {
1105
- super(), this.id = "", this.name = "", this._size = "md", this.fullWidth = !1, this._variant = "filled", this.inverted = !1, this.label = "", this.ariaLabel = "", this.prefixIcon = "", this.suffixIcon = "", this.circle = !1, this.icon = "", this.disabled = !1, this.form = "", this.value = "", this._type = "button", this.onClick = () => {
1105
+ super(), this.id = "", this.name = "", this._size = "md", this.fullWidth = !1, this._variant = "filled", this.inverted = !1, this.label = "", this.ariaLabel = "", this.prefixIcon = "", this.suffixIcon = "", this.circle = !1, this.icon = "", this.disabled = !1, this.form = "", this.value = "", this.ariaDescription = "", this._type = "button", this.onClick = () => {
1106
1106
  }, this.href = "", this._target = "_self", this._internals = this.attachInternals();
1107
1107
  }
1108
1108
  get size() {
1109
1109
  return this._size;
1110
1110
  }
1111
1111
  set size(e) {
1112
- this._size = w.VALID_SIZES.includes(
1112
+ this._size = x.VALID_SIZES.includes(
1113
1113
  e
1114
1114
  ) ? e : "md";
1115
1115
  }
@@ -1117,7 +1117,7 @@ const v = (w = class extends p {
1117
1117
  return this._variant;
1118
1118
  }
1119
1119
  set variant(e) {
1120
- this._variant = w.VALID_VARIANTS.includes(
1120
+ this._variant = x.VALID_VARIANTS.includes(
1121
1121
  e
1122
1122
  ) ? e : "filled";
1123
1123
  }
@@ -1125,7 +1125,7 @@ const v = (w = class extends p {
1125
1125
  return this._type;
1126
1126
  }
1127
1127
  set type(e) {
1128
- this._type = w.VALID_TYPES.includes(
1128
+ this._type = x.VALID_TYPES.includes(
1129
1129
  e
1130
1130
  ) ? e : "button";
1131
1131
  }
@@ -1133,7 +1133,7 @@ const v = (w = class extends p {
1133
1133
  return this._target;
1134
1134
  }
1135
1135
  set target(e) {
1136
- this._target = w.VALID_TARGETS.includes(
1136
+ this._target = x.VALID_TARGETS.includes(
1137
1137
  e
1138
1138
  ) ? e : "_self";
1139
1139
  }
@@ -1142,7 +1142,7 @@ const v = (w = class extends p {
1142
1142
  }
1143
1143
  /******************** Functions ********************/
1144
1144
  _generateUniqueId() {
1145
- return `nys-button-${Date.now()}-${ae++}`;
1145
+ return `nys-button-${Date.now()}-${J1++}`;
1146
1146
  }
1147
1147
  _manageFormAction(e) {
1148
1148
  typeof this.onClick == "function" && this.onClick(e);
@@ -1178,8 +1178,8 @@ const v = (w = class extends p {
1178
1178
  (e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Enter") && (e.preventDefault(), this.disabled || this._manageFormAction(e));
1179
1179
  }
1180
1180
  render() {
1181
- return l`
1182
- ${this.href ? l`
1181
+ return a`
1182
+ ${this.href ? a`
1183
1183
  <div class="nys-button__linkwrapper">
1184
1184
  <a
1185
1185
  class="nys-button"
@@ -1191,19 +1191,22 @@ const v = (w = class extends p {
1191
1191
  value=${h(this.value ? this.value : void 0)}
1192
1192
  href=${this.href}
1193
1193
  target=${this.target}
1194
- aria-label=${this.ariaLabel || this.label || (this.circle ? this.icon : null) || "button"}
1194
+ aria-label=${h(
1195
+ this.ariaLabel || this.label || (this.circle ? this.icon : null) || "button"
1196
+ )}
1197
+ aria-description=${h(this.ariaDescription || void 0)}
1195
1198
  @click=${this._handleClick}
1196
1199
  @focus="${this._handleFocus}"
1197
1200
  @blur="${this._handleBlur}"
1198
1201
  >
1199
- ${this.prefixIcon && this.variant !== "text" ? l`<slot name="prefix-icon">
1202
+ ${this.prefixIcon && this.variant !== "text" ? a`<slot name="prefix-icon">
1200
1203
  <nys-icon size="16" name=${this.prefixIcon}></nys-icon>
1201
1204
  </slot>` : ""}
1202
- ${this.label && !this.circle ? l`<label class="nys-button__text">${this.label}</label>` : ""}
1203
- ${this.suffixIcon && this.variant !== "text" ? l`<slot name="suffix-icon">
1205
+ ${this.label && !this.circle ? a`<label class="nys-button__text">${this.label}</label>` : ""}
1206
+ ${this.suffixIcon && this.variant !== "text" ? a`<slot name="suffix-icon">
1204
1207
  <nys-icon size="16" name=${this.suffixIcon}></nys-icon>
1205
1208
  </slot>` : ""}
1206
- ${this.circle && this.icon ? l`<slot name="circle-icon"
1209
+ ${this.circle && this.icon ? a`<slot name="circle-icon"
1207
1210
  ><nys-icon
1208
1211
  size=${this.size === "sm" ? "24" : this.size === "lg" ? "40" : "32"}
1209
1212
  name=${this.icon}
@@ -1211,7 +1214,7 @@ const v = (w = class extends p {
1211
1214
  ></slot>` : ""}
1212
1215
  </a>
1213
1216
  </div>
1214
- ` : l`
1217
+ ` : a`
1215
1218
  <button
1216
1219
  class="nys-button"
1217
1220
  id=${h(this.id)}
@@ -1220,20 +1223,23 @@ const v = (w = class extends p {
1220
1223
  form=${h(this.form ? this.form : void 0)}
1221
1224
  value=${h(this.value ? this.value : void 0)}
1222
1225
  type=${this.type}
1223
- aria-label=${this.ariaLabel || this.label || (this.circle ? this.icon : null) || "button"}
1226
+ aria-label=${h(
1227
+ this.ariaLabel || this.label || (this.circle ? this.icon : null) || this.prefixIcon || this.suffixIcon || "button"
1228
+ )}
1229
+ aria-description=${h(this.ariaDescription || void 0)}
1224
1230
  @click=${this._handleClick}
1225
1231
  @focus="${this._handleFocus}"
1226
1232
  @blur="${this._handleBlur}"
1227
1233
  @keydown="${this._handleKeydown}"
1228
1234
  >
1229
- ${this.prefixIcon && this.variant !== "text" ? l`<slot name="prefix-icon">
1235
+ ${this.prefixIcon && this.variant !== "text" ? a`<slot name="prefix-icon">
1230
1236
  <nys-icon size="16" name=${this.prefixIcon}></nys-icon>
1231
1237
  </slot>` : ""}
1232
- ${this.label && !this.circle ? l`<label class="nys-button__text">${this.label}</label>` : ""}
1233
- ${this.suffixIcon && this.variant !== "text" ? l`<slot name="suffix-icon">
1238
+ ${this.label && !this.circle ? a`<label class="nys-button__text">${this.label}</label>` : ""}
1239
+ ${this.suffixIcon && this.variant !== "text" ? a`<slot name="suffix-icon">
1234
1240
  <nys-icon size="16" name=${this.suffixIcon}></nys-icon>
1235
1241
  </slot>` : ""}
1236
- ${this.circle && this.icon ? l`<slot name="circle-icon">
1242
+ ${this.circle && this.icon ? a`<slot name="circle-icon">
1237
1243
  <nys-icon
1238
1244
  size=${this.size === "sm" ? "24" : this.size === "lg" ? "40" : "32"}
1239
1245
  name=${this.icon}
@@ -1243,78 +1249,81 @@ const v = (w = class extends p {
1243
1249
  `}
1244
1250
  `;
1245
1251
  }
1246
- }, w.VALID_SIZES = ["sm", "md", "lg"], w.VALID_VARIANTS = [
1252
+ }, x.VALID_SIZES = ["sm", "md", "lg"], x.VALID_VARIANTS = [
1247
1253
  "filled",
1248
1254
  "outline",
1249
1255
  "ghost",
1250
1256
  "text"
1251
- ], w.VALID_TYPES = ["submit", "reset", "button"], w.VALID_TARGETS = [
1257
+ ], x.VALID_TYPES = ["submit", "reset", "button"], x.VALID_TARGETS = [
1252
1258
  "_self",
1253
1259
  "_blank",
1254
1260
  "_parent",
1255
1261
  "_top",
1256
1262
  "framename"
1257
- ], w.styles = re, w.formAssociated = !0, w);
1258
- C([
1263
+ ], x.styles = K1, x.formAssociated = !0, x);
1264
+ v([
1259
1265
  r({ type: String })
1260
- ], v.prototype, "id", 2);
1261
- C([
1266
+ ], f.prototype, "id", 2);
1267
+ v([
1262
1268
  r({ type: String, reflect: !0 })
1263
- ], v.prototype, "name", 2);
1264
- C([
1269
+ ], f.prototype, "name", 2);
1270
+ v([
1265
1271
  r({ reflect: !0 })
1266
- ], v.prototype, "size", 1);
1267
- C([
1272
+ ], f.prototype, "size", 1);
1273
+ v([
1268
1274
  r({ type: Boolean, reflect: !0 })
1269
- ], v.prototype, "fullWidth", 2);
1270
- C([
1275
+ ], f.prototype, "fullWidth", 2);
1276
+ v([
1271
1277
  r({ reflect: !0 })
1272
- ], v.prototype, "variant", 1);
1273
- C([
1278
+ ], f.prototype, "variant", 1);
1279
+ v([
1274
1280
  r({ type: Boolean, reflect: !0 })
1275
- ], v.prototype, "inverted", 2);
1276
- C([
1281
+ ], f.prototype, "inverted", 2);
1282
+ v([
1277
1283
  r({ type: String })
1278
- ], v.prototype, "label", 2);
1279
- C([
1284
+ ], f.prototype, "label", 2);
1285
+ v([
1280
1286
  r({ type: String })
1281
- ], v.prototype, "ariaLabel", 2);
1282
- C([
1287
+ ], f.prototype, "ariaLabel", 2);
1288
+ v([
1283
1289
  r({ type: String })
1284
- ], v.prototype, "prefixIcon", 2);
1285
- C([
1290
+ ], f.prototype, "prefixIcon", 2);
1291
+ v([
1286
1292
  r({ type: String })
1287
- ], v.prototype, "suffixIcon", 2);
1288
- C([
1293
+ ], f.prototype, "suffixIcon", 2);
1294
+ v([
1289
1295
  r({ type: Boolean, reflect: !0 })
1290
- ], v.prototype, "circle", 2);
1291
- C([
1296
+ ], f.prototype, "circle", 2);
1297
+ v([
1292
1298
  r({ type: String })
1293
- ], v.prototype, "icon", 2);
1294
- C([
1299
+ ], f.prototype, "icon", 2);
1300
+ v([
1295
1301
  r({ type: Boolean, reflect: !0 })
1296
- ], v.prototype, "disabled", 2);
1297
- C([
1302
+ ], f.prototype, "disabled", 2);
1303
+ v([
1298
1304
  r({ type: String })
1299
- ], v.prototype, "form", 2);
1300
- C([
1305
+ ], f.prototype, "form", 2);
1306
+ v([
1301
1307
  r({ type: String })
1302
- ], v.prototype, "value", 2);
1303
- C([
1308
+ ], f.prototype, "value", 2);
1309
+ v([
1310
+ r({ type: String })
1311
+ ], f.prototype, "ariaDescription", 2);
1312
+ v([
1304
1313
  r({ reflect: !0 })
1305
- ], v.prototype, "type", 1);
1306
- C([
1314
+ ], f.prototype, "type", 1);
1315
+ v([
1307
1316
  r({ type: Function })
1308
- ], v.prototype, "onClick", 2);
1309
- C([
1317
+ ], f.prototype, "onClick", 2);
1318
+ v([
1310
1319
  r({ type: String })
1311
- ], v.prototype, "href", 2);
1312
- C([
1320
+ ], f.prototype, "href", 2);
1321
+ v([
1313
1322
  r({ reflect: !0 })
1314
- ], v.prototype, "target", 1);
1315
- let le = v;
1316
- customElements.get("nys-button") || customElements.define("nys-button", le);
1317
- const T1 = u`
1323
+ ], f.prototype, "target", 1);
1324
+ let ee = f;
1325
+ customElements.get("nys-button") || customElements.define("nys-button", ee);
1326
+ const H1 = g`
1318
1327
  :host {
1319
1328
  /* Anything that can be overridden should be defined here */
1320
1329
 
@@ -1671,14 +1680,14 @@ const T1 = u`
1671
1680
  display: inline;
1672
1681
  }
1673
1682
  `;
1674
- var ce = Object.defineProperty, de = Object.getOwnPropertyDescriptor, T = (a, e, t, o) => {
1675
- for (var s = o > 1 ? void 0 : o ? de(e, t) : e, n = a.length - 1, i; n >= 0; n--)
1676
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
1677
- return o && s && ce(e, t, s), s;
1683
+ var te = Object.defineProperty, se = Object.getOwnPropertyDescriptor, T = (l, e, t, o) => {
1684
+ for (var s = o > 1 ? void 0 : o ? se(e, t) : e, n = l.length - 1, i; n >= 0; n--)
1685
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
1686
+ return o && s && te(e, t, s), s;
1678
1687
  };
1679
- let he = 0;
1680
- var N;
1681
- const Z = (N = class extends p {
1688
+ let oe = 0;
1689
+ var j;
1690
+ const A = (j = class extends u {
1682
1691
  // allows use of elementInternals' API
1683
1692
  constructor() {
1684
1693
  super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this._size = "md", this._internals = this.attachInternals();
@@ -1687,13 +1696,13 @@ const Z = (N = class extends p {
1687
1696
  return this._size;
1688
1697
  }
1689
1698
  set size(e) {
1690
- this._size = N.VALID_SIZES.includes(
1699
+ this._size = j.VALID_SIZES.includes(
1691
1700
  e
1692
1701
  ) ? e : "md";
1693
1702
  }
1694
1703
  // Generate a unique ID if one is not provided
1695
1704
  connectedCallback() {
1696
- super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${he++}`), this.addEventListener("nys-change", this._handleCheckboxChange), this.addEventListener("invalid", this._handleInvalid);
1705
+ super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${oe++}`), this.addEventListener("nys-change", this._handleCheckboxChange), this.addEventListener("invalid", this._handleInvalid);
1697
1706
  }
1698
1707
  disconnectedCallback() {
1699
1708
  super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleCheckboxChange), this.removeEventListener("invalid", this._handleInvalid);
@@ -1720,7 +1729,7 @@ const Z = (N = class extends p {
1720
1729
  if (Array.from(
1721
1730
  this.querySelectorAll("nys-checkbox")
1722
1731
  ).filter(
1723
- (k) => k.checked
1732
+ (w) => w.checked
1724
1733
  ).length === 0)
1725
1734
  return c;
1726
1735
  } else
@@ -1773,7 +1782,7 @@ const Z = (N = class extends p {
1773
1782
  });
1774
1783
  }
1775
1784
  render() {
1776
- return l` <div class="nys-checkboxgroup" role="group">
1785
+ return a` <div class="nys-checkboxgroup" role="group">
1777
1786
  <nys-label
1778
1787
  id=${this.id}
1779
1788
  label=${this.label}
@@ -1792,47 +1801,47 @@ const Z = (N = class extends p {
1792
1801
  ></nys-errormessage>
1793
1802
  </div>`;
1794
1803
  }
1795
- }, N.VALID_SIZES = ["sm", "md"], N.styles = T1, N.formAssociated = !0, N);
1804
+ }, j.VALID_SIZES = ["sm", "md"], j.styles = H1, j.formAssociated = !0, j);
1796
1805
  T([
1797
1806
  r({ type: String })
1798
- ], Z.prototype, "id", 2);
1807
+ ], A.prototype, "id", 2);
1799
1808
  T([
1800
1809
  r({ type: String, reflect: !0 })
1801
- ], Z.prototype, "name", 2);
1810
+ ], A.prototype, "name", 2);
1802
1811
  T([
1803
1812
  r({ type: Boolean, reflect: !0 })
1804
- ], Z.prototype, "required", 2);
1813
+ ], A.prototype, "required", 2);
1805
1814
  T([
1806
1815
  r({ type: Boolean, reflect: !0 })
1807
- ], Z.prototype, "optional", 2);
1816
+ ], A.prototype, "optional", 2);
1808
1817
  T([
1809
1818
  r({ type: Boolean, reflect: !0 })
1810
- ], Z.prototype, "showError", 2);
1819
+ ], A.prototype, "showError", 2);
1811
1820
  T([
1812
1821
  r({ type: String })
1813
- ], Z.prototype, "errorMessage", 2);
1822
+ ], A.prototype, "errorMessage", 2);
1814
1823
  T([
1815
1824
  r({ type: String })
1816
- ], Z.prototype, "label", 2);
1825
+ ], A.prototype, "label", 2);
1817
1826
  T([
1818
1827
  r({ type: String })
1819
- ], Z.prototype, "description", 2);
1828
+ ], A.prototype, "description", 2);
1820
1829
  T([
1821
1830
  r({ type: Boolean, reflect: !0 })
1822
- ], Z.prototype, "tile", 2);
1831
+ ], A.prototype, "tile", 2);
1823
1832
  T([
1824
1833
  r({ reflect: !0 })
1825
- ], Z.prototype, "size", 1);
1826
- let ye = Z;
1827
- customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", ye);
1828
- var pe = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, M = (a, e, t, o) => {
1829
- for (var s = o > 1 ? void 0 : o ? ue(e, t) : e, n = a.length - 1, i; n >= 0; n--)
1830
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
1831
- return o && s && pe(e, t, s), s;
1834
+ ], A.prototype, "size", 1);
1835
+ let re = A;
1836
+ customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", re);
1837
+ var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, V = (l, e, t, o) => {
1838
+ for (var s = o > 1 ? void 0 : o ? ie(e, t) : e, n = l.length - 1, i; n >= 0; n--)
1839
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
1840
+ return o && s && ne(e, t, s), s;
1832
1841
  };
1833
- let fe = 0;
1834
- var j;
1835
- const S = (j = class extends p {
1842
+ let ae = 0;
1843
+ var G;
1844
+ const S = (G = class extends u {
1836
1845
  // allows use of elementInternals' API
1837
1846
  constructor() {
1838
1847
  super(), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this.showError = !1, this.errorMessage = "", this.groupExist = !1, this.tile = !1, this._size = "md", this._internals = this.attachInternals();
@@ -1841,7 +1850,7 @@ const S = (j = class extends p {
1841
1850
  return this._size;
1842
1851
  }
1843
1852
  set size(e) {
1844
- this._size = j.VALID_SIZES.includes(
1853
+ this._size = G.VALID_SIZES.includes(
1845
1854
  e
1846
1855
  ) ? e : "md";
1847
1856
  }
@@ -1851,7 +1860,7 @@ const S = (j = class extends p {
1851
1860
  }
1852
1861
  // Generate a unique ID if one is not provided
1853
1862
  connectedCallback() {
1854
- super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${fe++}`), this.addEventListener("invalid", this._handleInvalid);
1863
+ super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${ae++}`), this.addEventListener("invalid", this._handleInvalid);
1855
1864
  }
1856
1865
  disconnectedCallback() {
1857
1866
  super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
@@ -1942,7 +1951,7 @@ const S = (j = class extends p {
1942
1951
  }
1943
1952
  render() {
1944
1953
  var e;
1945
- return l`
1954
+ return a`
1946
1955
  <label class="nys-checkbox">
1947
1956
  <div class="nys-checkbox__checkboxwrapper">
1948
1957
  <input
@@ -1962,26 +1971,26 @@ const S = (j = class extends p {
1962
1971
  @blur="${this._handleBlur}"
1963
1972
  @keydown="${this._handleKeydown}"
1964
1973
  />
1965
- ${this.checked ? l`<nys-icon
1974
+ ${this.checked ? a`<nys-icon
1966
1975
  for="${this.id}"
1967
1976
  name="check"
1968
1977
  size="${this.size === "md" ? "4xl" : this.size === "sm" ? "2xl" : "xl"}"
1969
1978
  class="nys-checkbox__icon"
1970
1979
  ></nys-icon>` : ""}
1971
1980
  </div>
1972
- ${this.label && l` <div class="nys-checkbox__text">
1981
+ ${this.label && a` <div class="nys-checkbox__text">
1973
1982
  <div class="nys-checkbox__requiredwrapper">
1974
1983
  <label for=${this.id} class="nys-checkbox__label"
1975
1984
  >${this.label}</label
1976
1985
  >
1977
- ${this.required ? l`<label class="nys-checkbox__required">*</label>` : ""}
1986
+ ${this.required ? a`<label class="nys-checkbox__required">*</label>` : ""}
1978
1987
  </div>
1979
1988
  <label for=${this.id} class="nys-checkbox__description">
1980
1989
  <slot name="description">${this.description}</slot>
1981
1990
  </label>
1982
1991
  </div>`}
1983
1992
  </label>
1984
- ${((e = this.parentElement) == null ? void 0 : e.tagName.toLowerCase()) !== "nys-checkboxgroup" ? l`<nys-errormessage
1993
+ ${((e = this.parentElement) == null ? void 0 : e.tagName.toLowerCase()) !== "nys-checkboxgroup" ? a`<nys-errormessage
1985
1994
  id="single-error-message"
1986
1995
  ?showError=${this.showError}
1987
1996
  errorMessage=${this._internals.validationMessage || this.errorMessage}
@@ -1989,49 +1998,49 @@ const S = (j = class extends p {
1989
1998
  ></nys-errormessage>` : ""}
1990
1999
  `;
1991
2000
  }
1992
- }, j.VALID_SIZES = ["sm", "md"], j.styles = T1, j.formAssociated = !0, j);
1993
- M([
2001
+ }, G.VALID_SIZES = ["sm", "md"], G.styles = H1, G.formAssociated = !0, G);
2002
+ V([
1994
2003
  r({ type: Boolean, reflect: !0 })
1995
2004
  ], S.prototype, "checked", 2);
1996
- M([
2005
+ V([
1997
2006
  r({ type: Boolean, reflect: !0 })
1998
2007
  ], S.prototype, "disabled", 2);
1999
- M([
2008
+ V([
2000
2009
  r({ type: Boolean, reflect: !0 })
2001
2010
  ], S.prototype, "required", 2);
2002
- M([
2011
+ V([
2003
2012
  r({ type: String })
2004
2013
  ], S.prototype, "label", 2);
2005
- M([
2014
+ V([
2006
2015
  r({ type: String })
2007
2016
  ], S.prototype, "description", 2);
2008
- M([
2017
+ V([
2009
2018
  r({ type: String })
2010
2019
  ], S.prototype, "id", 2);
2011
- M([
2020
+ V([
2012
2021
  r({ type: String, reflect: !0 })
2013
2022
  ], S.prototype, "name", 2);
2014
- M([
2023
+ V([
2015
2024
  r({ type: String })
2016
2025
  ], S.prototype, "value", 2);
2017
- M([
2026
+ V([
2018
2027
  r({ type: Boolean, reflect: !0 })
2019
2028
  ], S.prototype, "showError", 2);
2020
- M([
2029
+ V([
2021
2030
  r({ type: String })
2022
2031
  ], S.prototype, "errorMessage", 2);
2023
- M([
2032
+ V([
2024
2033
  r({ type: Boolean })
2025
2034
  ], S.prototype, "groupExist", 2);
2026
- M([
2035
+ V([
2027
2036
  r({ type: Boolean, reflect: !0 })
2028
2037
  ], S.prototype, "tile", 2);
2029
- M([
2038
+ V([
2030
2039
  r({ reflect: !0 })
2031
2040
  ], S.prototype, "size", 1);
2032
- let ge = S;
2033
- customElements.get("nys-checkbox") || customElements.define("nys-checkbox", ge);
2034
- const ve = u`
2041
+ let le = S;
2042
+ customElements.get("nys-checkbox") || customElements.define("nys-checkbox", le);
2043
+ const ce = g`
2035
2044
  :host {
2036
2045
  --_nys-errormessage-font-family: var(
2037
2046
  --nys-font-family-ui,
@@ -2084,95 +2093,44 @@ const ve = u`
2084
2093
  var(--_nys-errormessage-color);
2085
2094
  }
2086
2095
  `;
2087
- var Ce = Object.defineProperty, M1 = (a, e, t, o) => {
2088
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
2089
- (i = a[n]) && (s = i(e, t, s) || s);
2090
- return s && Ce(e, t, s), s;
2096
+ var de = Object.defineProperty, x1 = (l, e, t, o) => {
2097
+ for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
2098
+ (i = l[n]) && (s = i(e, t, s) || s);
2099
+ return s && de(e, t, s), s;
2091
2100
  };
2092
- const x1 = class x1 extends p {
2101
+ const f1 = class f1 extends u {
2093
2102
  // allows use of elementInternals' API
2094
2103
  constructor() {
2095
2104
  super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
2096
2105
  }
2097
2106
  render() {
2098
- return l`${this.showError ? l`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
2107
+ return a`${this.showError ? a`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
2099
2108
  <nys-icon name="error" size="2xl"></nys-icon>
2100
2109
  ${this._internals.validationMessage || this.errorMessage}
2101
2110
  </div>` : ""}`;
2102
2111
  }
2103
2112
  };
2104
- x1.styles = ve, x1.formAssociated = !0;
2105
- let h1 = x1;
2106
- M1([
2113
+ f1.styles = ce, f1.formAssociated = !0;
2114
+ let d1 = f1;
2115
+ x1([
2107
2116
  r({ type: Boolean })
2108
- ], h1.prototype, "showError");
2109
- M1([
2117
+ ], d1.prototype, "showError");
2118
+ x1([
2110
2119
  r({ type: String })
2111
- ], h1.prototype, "errorMessage");
2112
- M1([
2120
+ ], d1.prototype, "errorMessage");
2121
+ x1([
2113
2122
  r({ type: Boolean, reflect: !0 })
2114
- ], h1.prototype, "showDivider");
2115
- customElements.get("nys-errormessage") || customElements.define("nys-errormessage", h1);
2116
- const be = {
2117
- png: [137, 80, 78, 71, 13, 10, 26, 10],
2118
- jpg: (a) => a.length >= 4 && a[0] === 255 && a[1] === 216 && a[2] === 255 && [224, 225, 219].includes(a[3]),
2119
- pdf: (a) => {
2120
- let e = 0;
2121
- for (; e < a.length && [32, 10, 13].includes(a[e]); )
2122
- e++;
2123
- return a[e] === 37 && a[e + 1] === 80 && a[e + 2] === 68 && a[e + 3] === 70;
2124
- },
2125
- gif: [71, 73, 70, 56],
2126
- mp4: (a) => {
2127
- const e = [102, 116, 121, 112];
2128
- for (let t = 0; t <= a.length - e.length; t++) {
2129
- let o = !0;
2130
- for (let s = 0; s < e.length; s++)
2131
- if (a[t + s] !== e[s]) {
2132
- o = !1;
2133
- break;
2134
- }
2135
- if (o) return !0;
2136
- }
2137
- return !1;
2138
- }
2139
- };
2140
- function _e(a, e) {
2141
- if (typeof e == "function") return e(a);
2142
- if (a.length < e.length) return !1;
2143
- for (let t = 0; t < e.length; t++)
2144
- if (a[t] !== e[t]) return !1;
2145
- return !0;
2146
- }
2147
- const P1 = {
2148
- "image/png": ["png"],
2149
- "image/jpeg": ["jpg"],
2150
- "image/jpg": ["jpg"],
2151
- "image/*": ["png", "jpg", "gif"],
2152
- "video/mp4": ["mp4"],
2153
- "video/*": ["mp4"],
2154
- "application/pdf": ["pdf"],
2155
- ".pdf": ["pdf"],
2156
- ".jpg": ["jpg"],
2157
- ".jpeg": ["jpg"],
2158
- ".png": ["png"],
2159
- ".mp4": ["mp4"]
2160
- };
2161
- async function me(a, e) {
2123
+ ], d1.prototype, "showDivider");
2124
+ customElements.get("nys-errormessage") || customElements.define("nys-errormessage", d1);
2125
+ async function he(l, e) {
2162
2126
  if (!e || e.trim() === "") return !0;
2163
- const o = await a.slice(0, 32).arrayBuffer(), s = new Uint8Array(o), i = e.toLowerCase().split(",").map((d) => d.trim()), c = /* @__PURE__ */ new Set();
2164
- for (const d of i)
2165
- if (P1[d])
2166
- for (const b of P1[d])
2167
- c.add(b);
2168
- i.some((d) => d.startsWith("image/")) && (c.add("png"), c.add("jpg")), i.some((d) => d.startsWith("video/")) && c.add("mp4");
2169
- for (const d of c) {
2170
- const b = be[d];
2171
- if (b && _e(s, b)) return !0;
2172
- }
2173
- return c.size === 0;
2127
+ const t = e.toLowerCase().split(",").map((n) => n.trim()), o = l.name.toLowerCase(), s = o.includes(".") ? o.split(".").pop() : "";
2128
+ for (const n of t)
2129
+ if (n.startsWith(".") && n.slice(1) === s || n.endsWith("/*") && l.type.startsWith(n.slice(0, -1)) || l.type === n)
2130
+ return !0;
2131
+ return !1;
2174
2132
  }
2175
- const xe = u`
2133
+ const ye = g`
2176
2134
  :host {
2177
2135
  /* Global Fileinput Styles */
2178
2136
  --_nys-fileinput-gap: var(--nys-space-100, 8px);
@@ -2200,7 +2158,7 @@ const xe = u`
2200
2158
  var(--nys-space-100, 8px)
2201
2159
  );
2202
2160
  --_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 1px) dashed
2203
- var(--nys-color-neutral-300, #a7a9ab);
2161
+ var(--nys-color-neutral-200, #bec0c1);
2204
2162
  --_nys-fileinput-dropzone-color: var(--nys-color-text-disabled, #bec0c1);
2205
2163
  }
2206
2164
 
@@ -2238,27 +2196,33 @@ const xe = u`
2238
2196
  gap: 12px;
2239
2197
  align-self: stretch;
2240
2198
  border-radius: var(--_nys-fileinput-dropzone-radius);
2241
- border: var(--_nys-fileinput-dropzone-border);
2199
+ outline: var(--_nys-fileinput-dropzone-border);
2242
2200
  background: var(--_nys-fileinput-dropzone-background);
2201
+ transition: all 60ms ease-in-out;
2243
2202
  }
2244
2203
 
2245
2204
  .nys-fileinput__dropzone:hover {
2246
2205
  cursor: pointer;
2247
- --_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 1px) dashed
2248
- var(--nys-color-neutral-900, #1b1b1b);
2206
+ --_nys-fileinput-dropzone-border: var(--nys-border-width-md, 2px) dashed
2207
+ var(--nys-color-neutral-700, #4a4d4f);
2249
2208
  }
2250
2209
 
2251
2210
  .nys-fileinput__dropzone.drag-active {
2252
- --_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 1px) solid
2253
- var(--nys-color-neutral-900, #1b1b1b);
2211
+ --_nys-fileinput-dropzone-border: var(--nys-border-width-md, 2px) solid
2212
+ var(--nys-color-theme, #154973);
2254
2213
  --_nys-fileinput-dropzone-background: var(--nys-color-theme-faint, #f7fafd);
2255
2214
  }
2256
2215
 
2257
2216
  .nys-fileinput__dropzone.error {
2258
- --_nys-fileinput-dropzone-border: var(--nys-border-width-md, 2px) dashed
2217
+ --_nys-fileinput-dropzone-border: var(--nys-border-width-md, 1px) dashed
2259
2218
  var(--nys-color-danger, #b52c2c);
2260
2219
  }
2261
2220
 
2221
+ .nys-fileinput__dropzone.error:hover {
2222
+ --_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 2px) dashed
2223
+ var(--nys-color-emergency, #721c1c);
2224
+ }
2225
+
2262
2226
  .nys-fileinput__dropzone.disabled {
2263
2227
  cursor: not-allowed;
2264
2228
  --_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 1px) dashed
@@ -2286,7 +2250,7 @@ const xe = u`
2286
2250
  progress::-webkit-progress-bar {
2287
2251
  background: var(--_nys-fileinput-progress-background);
2288
2252
  }
2289
- `, we = u`
2253
+ `, ue = g`
2290
2254
  :host {
2291
2255
  /* Global fileitem Styles */
2292
2256
  --_nys-fileitem-items-radius: var(--nys-radius-md, 4px);
@@ -2343,7 +2307,8 @@ const xe = u`
2343
2307
  .file-item__info {
2344
2308
  display: flex;
2345
2309
  flex-direction: column;
2346
- width: 100%;
2310
+ flex: 1;
2311
+ min-width: 0;
2347
2312
  font-family: var(--_nys-fileitem-font-family);
2348
2313
  font-size: var(--_nys-fileitem-font-size);
2349
2314
  font-style: normal;
@@ -2352,13 +2317,30 @@ const xe = u`
2352
2317
  letter-spacing: var(--_nys-fileitem-letterspacing);
2353
2318
  }
2354
2319
 
2320
+ .file-item__info-name {
2321
+ display: flex;
2322
+ max-width: 100%;
2323
+ overflow: hidden;
2324
+ white-space: nowrap;
2325
+ align-items: center;
2326
+ }
2327
+
2328
+ .file-item__info-name-start {
2329
+ overflow: hidden;
2330
+ text-overflow: ellipsis;
2331
+ white-space: nowrap;
2332
+ flex-shrink: 1;
2333
+ min-width: 0;
2334
+ }
2335
+
2355
2336
  .file-item p {
2356
2337
  margin: 0;
2357
2338
  }
2358
2339
 
2359
- .error-msg {
2340
+ .file-item__error {
2360
2341
  color: var(--_nys-fileitem-error-color);
2361
2342
  text-overflow: ellipsis;
2343
+ font-weight: 700;
2362
2344
  }
2363
2345
 
2364
2346
  /**** Progress Bar ****/
@@ -2404,12 +2386,12 @@ const xe = u`
2404
2386
  }
2405
2387
  }
2406
2388
  `;
2407
- var ke = Object.defineProperty, k1 = (a, e, t, o) => {
2408
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
2409
- (i = a[n]) && (s = i(e, t, s) || s);
2410
- return s && ke(e, t, s), s;
2389
+ var pe = Object.defineProperty, v1 = (l, e, t, o) => {
2390
+ for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
2391
+ (i = l[n]) && (s = i(e, t, s) || s);
2392
+ return s && pe(e, t, s), s;
2411
2393
  };
2412
- const D1 = class D1 extends p {
2394
+ const L1 = class L1 extends u {
2413
2395
  constructor() {
2414
2396
  super(...arguments), this.filename = "", this.status = "pending", this.progress = 0, this.errorMessage = "";
2415
2397
  }
@@ -2422,37 +2404,41 @@ const D1 = class D1 extends p {
2422
2404
  })
2423
2405
  );
2424
2406
  }
2425
- truncateFilename(e) {
2426
- const t = e.lastIndexOf(".");
2427
- if (t === -1)
2428
- return e.length > 30 ? e.slice(0, 30) + "..." : e;
2429
- const o = e.slice(t), s = e.slice(0, t), n = 30;
2430
- if (s.length <= n)
2431
- return e;
2432
- const i = s.slice(0, n - 3), c = s.slice(-3);
2433
- return `${i}...${c}${o}`;
2407
+ splitFilename(e) {
2408
+ const t = e.lastIndexOf("."), o = t !== -1 ? e.slice(t) : "", s = t !== -1 ? e.slice(0, t) : e, n = s.slice(0, s.length - 3), i = s.slice(-3);
2409
+ return { startPart: n, endPart: i, extension: o };
2434
2410
  }
2435
2411
  render() {
2436
- return l`
2437
- <div class="file-item ${this.status}">
2438
- <div class="file-item__main" role="group" aria-label="Filename: ${this.filename}">
2412
+ const { startPart: e, endPart: t, extension: o } = this.splitFilename(this.filename);
2413
+ return a`
2414
+ <div
2415
+ class="file-item ${this.status}"
2416
+ aria-busy=${this.status === "processing" ? "true" : "false"}
2417
+ aria-label="You have selected ${this.filename}"
2418
+ >
2419
+ <div class="file-item__main" role="group">
2439
2420
  <nys-icon
2440
2421
  class="file-icon"
2441
2422
  name=${this.status === "processing" ? "progress_activity" : this.status === "error" ? "error" : "attach_file"}
2442
2423
  size="2xl"
2443
2424
  ></nys-icon>
2444
2425
  <div class="file-item__info">
2445
- <p">
2446
- ${this.truncateFilename(this.filename)}
2447
- </p>
2448
- ${this.errorMessage ? l`<p
2449
- class="error-msg"
2450
- role="alert"
2451
- aria-live="assertive"
2452
- id="${this.filename}-error"
2453
- >
2454
- ${this.errorMessage}
2455
- </p>` : null}
2426
+ <div class="file-item__info-name">
2427
+ <span class="file-item__info-name-start">${e}</span>
2428
+ <span class="file-item__info-name-end"
2429
+ >${t}${o}</span
2430
+ >
2431
+ </div>
2432
+ ${this.errorMessage ? a`<p
2433
+ class="file-item__error"
2434
+ role="alert"
2435
+ aria-live="assertive"
2436
+ aria-invalid="true"
2437
+ aria-errormessage=${this.errorMessage}
2438
+ id="${this.filename}-error"
2439
+ >
2440
+ ${this.errorMessage}
2441
+ </p>` : null}
2456
2442
  </div>
2457
2443
  <nys-button
2458
2444
  circle
@@ -2461,44 +2447,45 @@ const D1 = class D1 extends p {
2461
2447
  size="sm"
2462
2448
  variant="ghost"
2463
2449
  .onClick=${() => this._handleRemove()}
2450
+ ariaLabel="Remove file: ${this.filename}"
2464
2451
  ></nys-button>
2465
2452
  </div>
2466
- ${this.status === "processing" ? l`<div
2467
- class="progress-container"
2468
- role="progressbar"
2469
- aria-valuemin="0"
2470
- aria-valuemax="100"
2471
- aria-valuenow="${this.progress}"
2472
- aria-label="Upload progress for ${this.filename}"
2473
- >
2474
- <progress value=${this.progress} max="100"></progress>
2475
- </div>` : null}
2453
+ ${this.status === "processing" ? a`<div
2454
+ class="file-item__progress-container"
2455
+ role="progressbar"
2456
+ aria-valuemin="0"
2457
+ aria-valuemax="100"
2458
+ aria-valuenow="${this.progress}"
2459
+ aria-label="Upload progress for ${this.filename}"
2460
+ >
2461
+ <progress value=${this.progress} max="100"></progress>
2462
+ </div>` : null}
2476
2463
  </div>
2477
2464
  `;
2478
2465
  }
2479
2466
  };
2480
- D1.styles = we;
2481
- let n1 = D1;
2482
- k1([
2467
+ L1.styles = ue;
2468
+ let r1 = L1;
2469
+ v1([
2483
2470
  r({ type: String })
2484
- ], n1.prototype, "filename");
2485
- k1([
2471
+ ], r1.prototype, "filename");
2472
+ v1([
2486
2473
  r({ type: String })
2487
- ], n1.prototype, "status");
2488
- k1([
2474
+ ], r1.prototype, "status");
2475
+ v1([
2489
2476
  r({ type: Number })
2490
- ], n1.prototype, "progress");
2491
- k1([
2477
+ ], r1.prototype, "progress");
2478
+ v1([
2492
2479
  r({ type: String })
2493
- ], n1.prototype, "errorMessage");
2494
- customElements.define("nys-fileitem", n1);
2495
- var Le = Object.defineProperty, z = (a, e, t, o) => {
2496
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
2497
- (i = a[n]) && (s = i(e, t, s) || s);
2498
- return s && Le(e, t, s), s;
2480
+ ], r1.prototype, "errorMessage");
2481
+ customElements.define("nys-fileitem", r1);
2482
+ var ge = Object.defineProperty, M = (l, e, t, o) => {
2483
+ for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
2484
+ (i = l[n]) && (s = i(e, t, s) || s);
2485
+ return s && ge(e, t, s), s;
2499
2486
  };
2500
- let Se = 0;
2501
- const w1 = class w1 extends p {
2487
+ let fe = 0;
2488
+ const C1 = class C1 extends u {
2502
2489
  // allows use of elementInternals' API
2503
2490
  constructor() {
2504
2491
  super(), this.id = "", this.name = "", this.label = "", this.description = "", this.multiple = !1, this.accept = "", this.disabled = !1, this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.dropzone = !1, this.width = "full", this._selectedFiles = [], this._dragActive = !1, this._internals = this.attachInternals();
@@ -2506,9 +2493,36 @@ const w1 = class w1 extends p {
2506
2493
  get _isDropDisabled() {
2507
2494
  return this.disabled || !this.multiple && this._selectedFiles.length > 0;
2508
2495
  }
2496
+ get _buttonAriaLabel() {
2497
+ return this._selectedFiles.length === 0 ? this.multiple ? "Choose files: " : "Choose file: " : this.multiple ? "Change files: " : "Change file: ";
2498
+ }
2499
+ get _buttonAriaDescription() {
2500
+ if (this._selectedFiles.length === 0)
2501
+ return `${this.label + " " + this.description}`;
2502
+ const e = this._selectedFiles.some(
2503
+ (s) => s.status === "error"
2504
+ );
2505
+ let t = "";
2506
+ if (this._selectedFiles.length === 1)
2507
+ t = `You have selected ${this._selectedFiles[0].file.name}.`;
2508
+ else {
2509
+ const s = this._selectedFiles.map((n) => n.file.name).join(", ");
2510
+ t = `You have selected ${this._selectedFiles.length} files: ${s}`;
2511
+ }
2512
+ return `${t}${e ? " Error: One or more files are not valid file types." : ""}`;
2513
+ }
2514
+ get _innerNysButton() {
2515
+ var o;
2516
+ const e = this.renderRoot.querySelector(
2517
+ '[name="file-btn"]'
2518
+ );
2519
+ return (o = e == null ? void 0 : e.shadowRoot) == null ? void 0 : o.querySelector(
2520
+ "button"
2521
+ );
2522
+ }
2509
2523
  // Generate a unique ID if one is not provided
2510
2524
  connectedCallback() {
2511
- super.connectedCallback(), this.id || (this.id = `nys-fileinput-${Date.now()}-${Se++}`), this.addEventListener("invalid", this._handleInvalid);
2525
+ super.connectedCallback(), this.id || (this.id = `nys-fileinput-${Date.now()}-${fe++}`), this.addEventListener("invalid", this._handleInvalid);
2512
2526
  }
2513
2527
  disconnectedCallback() {
2514
2528
  super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
@@ -2558,6 +2572,22 @@ const w1 = class w1 extends p {
2558
2572
  let o = "";
2559
2573
  t ? o = this.errorMessage || "Please upload a file." : e && (o = "One or more files are invalid."), this._setValidityMessage(o);
2560
2574
  }
2575
+ // This helper function is called to perform the element's native validation.
2576
+ checkValidity() {
2577
+ var t;
2578
+ const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input");
2579
+ return e ? e.checkValidity() : !0;
2580
+ }
2581
+ _handleInvalid(e) {
2582
+ e.preventDefault(), this._validate();
2583
+ const t = this._innerNysButton;
2584
+ if (t) {
2585
+ const o = this._internals.form;
2586
+ o ? Array.from(o.elements).find(
2587
+ (i) => typeof i.checkValidity == "function" && !i.checkValidity()
2588
+ ) === this && t.focus() : t.focus();
2589
+ }
2590
+ }
2561
2591
  /******************** Functions ********************/
2562
2592
  // Store the files to be displayed
2563
2593
  async _saveSelectedFiles(e) {
@@ -2575,8 +2605,8 @@ const w1 = class w1 extends p {
2575
2605
  async _processFile(e) {
2576
2606
  e.status = "processing";
2577
2607
  try {
2578
- if (!await me(e.file, this.accept)) {
2579
- e.status = "error", e.errorMsg = "File format does not match expected type.", this.requestUpdate();
2608
+ if (!await he(e.file, this.accept)) {
2609
+ e.status = "error", e.errorMsg = "File type is invalid.", this.requestUpdate();
2580
2610
  return;
2581
2611
  }
2582
2612
  const o = new FileReader();
@@ -2609,13 +2639,32 @@ const w1 = class w1 extends p {
2609
2639
  );
2610
2640
  e == null || e.click();
2611
2641
  }
2642
+ _handlePostFileSelectionFocus() {
2643
+ if (this.multiple) {
2644
+ const e = this._innerNysButton;
2645
+ e && e.focus();
2646
+ } else
2647
+ this._focusFirstFileItemIfSingleMode();
2648
+ }
2649
+ async _focusFirstFileItemIfSingleMode() {
2650
+ var e;
2651
+ if (!this.multiple) {
2652
+ await this.updateComplete;
2653
+ const t = this.renderRoot.querySelector(
2654
+ "nys-fileitem"
2655
+ ), o = (e = t == null ? void 0 : t.shadowRoot) == null ? void 0 : e.querySelector(
2656
+ ".file-item"
2657
+ );
2658
+ o && (o.setAttribute("tabindex", "-1"), o.focus());
2659
+ }
2660
+ }
2612
2661
  /******************** Event Handlers ********************/
2613
2662
  // Access the selected files & add new files to the internal list via the hidden <input type="file">
2614
2663
  _handleFileChange(e) {
2615
2664
  const t = e.target, o = t.files;
2616
2665
  (o ? Array.from(o) : []).map((n) => {
2617
2666
  this._saveSelectedFiles(n);
2618
- }), t.value = "", this.requestUpdate(), this._dispatchChangeEvent();
2667
+ }), t.value = "", this.requestUpdate(), this._dispatchChangeEvent(), this._handlePostFileSelectionFocus();
2619
2668
  }
2620
2669
  _handleFileRemove(e) {
2621
2670
  const t = e.detail.filename;
@@ -2641,19 +2690,8 @@ const w1 = class w1 extends p {
2641
2690
  this._saveSelectedFiles(n);
2642
2691
  }) : this._saveSelectedFiles(o[0]), this.requestUpdate(), this._dispatchChangeEvent();
2643
2692
  }
2644
- _handleInvalid(e) {
2645
- var o;
2646
- e.preventDefault(), this._validate();
2647
- const t = (o = this.shadowRoot) == null ? void 0 : o.querySelector("input");
2648
- if (t) {
2649
- const s = this._internals.form;
2650
- s ? Array.from(s.elements).find(
2651
- (c) => typeof c.checkValidity == "function" && !c.checkValidity()
2652
- ) === this && t.focus() : t.focus();
2653
- }
2654
- }
2655
2693
  render() {
2656
- return l`<div
2694
+ return a`<div
2657
2695
  class="nys-fileinput"
2658
2696
  @nys-fileRemove=${this._handleFileRemove}
2659
2697
  >
@@ -2667,8 +2705,8 @@ const w1 = class w1 extends p {
2667
2705
  </nys-label>
2668
2706
 
2669
2707
  <input
2670
- id=${this.id}
2671
2708
  class="hidden-file-input"
2709
+ tabindex="-1"
2672
2710
  type="file"
2673
2711
  name=${this.name}
2674
2712
  ?multiple=${this.multiple}
@@ -2676,13 +2714,12 @@ const w1 = class w1 extends p {
2676
2714
  ?required=${this.required}
2677
2715
  ?disabled=${this.disabled || !this.multiple && this._selectedFiles.length > 0}
2678
2716
  aria-disabled="${this.disabled}"
2679
- aria-label="Drag files here or choose from folder"
2680
- aria-describedby="file-input-specific-hint"
2681
- style="position: absolute; width: 1px; height: 1px; opacity: 0;"
2717
+ aria-hidden="true"
2718
+ hidden
2682
2719
  @change=${this._handleFileChange}
2683
2720
  />
2684
2721
 
2685
- ${this.dropzone ? l`<div
2722
+ ${this.dropzone ? a`<div
2686
2723
  class="nys-fileinput__dropzone
2687
2724
  ${this._dragActive ? "drag-active" : ""}
2688
2725
  ${this._isDropDisabled ? "disabled" : ""}
@@ -2692,36 +2729,41 @@ const w1 = class w1 extends p {
2692
2729
  @dragover=${this._isDropDisabled ? null : this._onDragOver}
2693
2730
  @dragleave=${this._isDropDisabled ? null : this._onDragLeave}
2694
2731
  @drop=${this._isDropDisabled ? null : this._onDrop}
2732
+ aria-label="Drag files here or choose from folder"
2695
2733
  >
2696
- ${this._dragActive ? l`<p>Drop file to upload</p>` : l` <nys-button
2697
- id="file-btn"
2734
+ ${this._dragActive ? a`<p>Drop file to upload</p>` : a` <nys-button
2735
+ id=${this.id}
2698
2736
  name="file-btn"
2699
2737
  label=${this.multiple ? "Choose files" : "Choose file"}
2700
2738
  variant="outline"
2739
+ ariaLabel=${this._buttonAriaLabel}
2740
+ ariaDescription=${this._buttonAriaDescription}
2701
2741
  ?disabled=${this._isDropDisabled}
2702
2742
  .onClick=${(e) => {
2703
2743
  e.stopPropagation(), this._openFileDialog();
2704
2744
  }}
2705
2745
  ></nys-button>
2706
2746
  <p>or drag here</p>`}
2707
- </div>` : l`<nys-button
2708
- id="file-btn"
2747
+ </div>` : a`<nys-button
2748
+ id=${this.id}
2709
2749
  name="file-btn"
2710
2750
  label=${this.multiple ? "Choose files" : "Choose file"}
2711
2751
  variant="outline"
2752
+ ariaLabel=${this._buttonAriaLabel}
2753
+ ariaDescription=${this._buttonAriaDescription}
2712
2754
  ?disabled=${this.disabled || !this.multiple && this._selectedFiles.length > 0}
2713
2755
  .onClick=${() => this._openFileDialog()}
2714
2756
  ></nys-button>`}
2715
- ${this.showError ? l`
2757
+ ${this.showError ? a`
2716
2758
  <nys-errormessage
2717
2759
  ?showError=${this.showError}
2718
2760
  errorMessage=${this._internals.validationMessage || this.errorMessage}
2719
2761
  ></nys-errormessage>
2720
2762
  ` : null}
2721
- ${this._selectedFiles.length > 0 ? l`
2763
+ ${this._selectedFiles.length > 0 ? a`
2722
2764
  <ul>
2723
2765
  ${this._selectedFiles.map(
2724
- (e) => l`<li>
2766
+ (e) => a`<li>
2725
2767
  <nys-fileitem
2726
2768
  filename=${e.file.name}
2727
2769
  status=${e.status}
@@ -2735,49 +2777,49 @@ const w1 = class w1 extends p {
2735
2777
  </div>`;
2736
2778
  }
2737
2779
  };
2738
- w1.styles = xe, w1.formAssociated = !0;
2739
- let x = w1;
2740
- z([
2780
+ C1.styles = ye, C1.formAssociated = !0;
2781
+ let m = C1;
2782
+ M([
2741
2783
  r({ type: String })
2742
- ], x.prototype, "id");
2743
- z([
2784
+ ], m.prototype, "id");
2785
+ M([
2744
2786
  r({ type: String, reflect: !0 })
2745
- ], x.prototype, "name");
2746
- z([
2787
+ ], m.prototype, "name");
2788
+ M([
2747
2789
  r({ type: String })
2748
- ], x.prototype, "label");
2749
- z([
2790
+ ], m.prototype, "label");
2791
+ M([
2750
2792
  r({ type: String })
2751
- ], x.prototype, "description");
2752
- z([
2793
+ ], m.prototype, "description");
2794
+ M([
2753
2795
  r({ type: Boolean })
2754
- ], x.prototype, "multiple");
2755
- z([
2796
+ ], m.prototype, "multiple");
2797
+ M([
2756
2798
  r({ type: String })
2757
- ], x.prototype, "accept");
2758
- z([
2799
+ ], m.prototype, "accept");
2800
+ M([
2759
2801
  r({ type: Boolean, reflect: !0 })
2760
- ], x.prototype, "disabled");
2761
- z([
2802
+ ], m.prototype, "disabled");
2803
+ M([
2762
2804
  r({ type: Boolean, reflect: !0 })
2763
- ], x.prototype, "required");
2764
- z([
2805
+ ], m.prototype, "required");
2806
+ M([
2765
2807
  r({ type: Boolean, reflect: !0 })
2766
- ], x.prototype, "optional");
2767
- z([
2808
+ ], m.prototype, "optional");
2809
+ M([
2768
2810
  r({ type: Boolean, reflect: !0 })
2769
- ], x.prototype, "showError");
2770
- z([
2811
+ ], m.prototype, "showError");
2812
+ M([
2771
2813
  r({ type: String })
2772
- ], x.prototype, "errorMessage");
2773
- z([
2814
+ ], m.prototype, "errorMessage");
2815
+ M([
2774
2816
  r({ type: Boolean })
2775
- ], x.prototype, "dropzone");
2776
- z([
2817
+ ], m.prototype, "dropzone");
2818
+ M([
2777
2819
  r({ type: String, reflect: !0 })
2778
- ], x.prototype, "width");
2779
- customElements.get("nys-fileinput") || customElements.define("nys-fileinput", x);
2780
- const $e = {
2820
+ ], m.prototype, "width");
2821
+ customElements.get("nys-fileinput") || customElements.define("nys-fileinput", m);
2822
+ const Ce = {
2781
2823
  // --------- UX Team Main Library (below) --------- //
2782
2824
  // *** CORE *** //
2783
2825
  account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
@@ -3309,7 +3351,7 @@ const $e = {
3309
3351
  <path d="M6.30002 22.7751C5.43369 22.7751 4.69211 22.4667 4.07527 21.8498C3.45844 21.2328 3.15002 20.4913 3.15002 19.6251V10.2251C3.15002 9.35893 3.45844 8.61735 4.07527 8.00035C4.69211 7.38351 5.43369 7.0751 6.30002 7.0751H6.62502V5.8001C6.62502 4.28343 7.14586 2.99593 8.18752 1.9376C9.22919 0.879264 10.5 0.350098 12 0.350098C13.5 0.350098 14.7709 0.879264 15.8125 1.9376C16.8542 2.99593 17.375 4.28343 17.375 5.8001V7.0751H17.7C18.5662 7.0751 19.3078 7.38351 19.9248 8.00035C20.5416 8.61735 20.85 9.35893 20.85 10.2251V19.6251C20.85 20.4913 20.5416 21.2328 19.9248 21.8498C19.3078 22.4667 18.5662 22.7751 17.7 22.7751H6.30002ZM12 16.9251C12.55 16.9251 13.0209 16.7293 13.4125 16.3376C13.8042 15.9459 14 15.4751 14 14.9251C14 14.3751 13.8042 13.9043 13.4125 13.5126C13.0209 13.1209 12.55 12.9251 12 12.9251C11.45 12.9251 10.9792 13.1209 10.5875 13.5126C10.1959 13.9043 10 14.3751 10 14.9251C10 15.4751 10.1959 15.9459 10.5875 16.3376C10.9792 16.7293 11.45 16.9251 12 16.9251ZM9.77502 7.0751H14.225V5.8001C14.225 5.16126 14.0125 4.61818 13.5875 4.17085C13.1625 3.72368 12.6334 3.5001 12 3.5001C11.3667 3.5001 10.8375 3.72368 10.4125 4.17085C9.98752 4.61818 9.77502 5.16126 9.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
3310
3352
  </g>
3311
3353
  </svg>`
3312
- }, Me = u`
3354
+ }, ve = g`
3313
3355
  :host {
3314
3356
  display: inline-block;
3315
3357
  --_nys-icon-size: 0.7em; /* If cap isn't supported, a fallback value of 0.7em is used, as it closely approximates the height of capital letters in most fonts. */
@@ -3410,14 +3452,14 @@ const $e = {
3410
3452
  transform: scale(-1, -1);
3411
3453
  }
3412
3454
  `;
3413
- var ze = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, p1 = (a, e, t, o) => {
3414
- for (var s = o > 1 ? void 0 : o ? Ve(e, t) : e, n = a.length - 1, i; n >= 0; n--)
3415
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
3416
- return o && s && ze(e, t, s), s;
3455
+ var be = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, i1 = (l, e, t, o) => {
3456
+ for (var s = o > 1 ? void 0 : o ? _e(e, t) : e, n = l.length - 1, i; n >= 0; n--)
3457
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
3458
+ return o && s && be(e, t, s), s;
3417
3459
  }, t1;
3418
- const a1 = (t1 = class extends p {
3460
+ const o1 = (t1 = class extends u {
3419
3461
  constructor() {
3420
- super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
3462
+ super(...arguments), this.name = "", this.label = "", this.ariaDescription = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
3421
3463
  }
3422
3464
  get size() {
3423
3465
  return this._size;
@@ -3428,16 +3470,16 @@ const a1 = (t1 = class extends p {
3428
3470
  ) ? e : "sm";
3429
3471
  }
3430
3472
  getIcon() {
3431
- const e = $e[this.name];
3473
+ const e = Ce[this.name];
3432
3474
  if (!e) return null;
3433
3475
  const s = new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
3434
- return s instanceof SVGElement ? (s.setAttribute("role", "img"), this.label ? (s.setAttribute("aria-label", this.label), s.removeAttribute("aria-hidden")) : (s.setAttribute("aria-hidden", "true"), s.removeAttribute("aria-label")), s.style.rotate = `${this.rotate}deg`, s.style.color = this.color || "currentcolor", s.classList.add(`nys-icon--${this.size}`), s.classList.add("nys-icon--svg"), this.flip && s.classList.add(`nys-icon--flip-${this.flip}`), s) : null;
3476
+ return s instanceof SVGElement ? (s.setAttribute("role", "img"), this.label ? (s.setAttribute("aria-label", this.label), s.removeAttribute("aria-hidden")) : (s.setAttribute("aria-hidden", "true"), s.removeAttribute("aria-label")), this.ariaDescription && s.setAttribute("aria-description", this.ariaDescription), s.style.rotate = `${this.rotate}deg`, s.style.color = this.color || "currentcolor", s.classList.add(`nys-icon--${this.size}`), s.classList.add("nys-icon--svg"), this.flip && s.classList.add(`nys-icon--flip-${this.flip}`), s) : null;
3435
3477
  }
3436
3478
  render() {
3437
3479
  const e = this.getIcon();
3438
- return e ? l`${e}` : null;
3480
+ return e ? a`${e}` : null;
3439
3481
  }
3440
- }, t1.styles = Me, t1.VALID_TYPES = [
3482
+ }, t1.styles = ve, t1.VALID_TYPES = [
3441
3483
  "2xs",
3442
3484
  "xs",
3443
3485
  "sm",
@@ -3455,27 +3497,30 @@ const a1 = (t1 = class extends p {
3455
3497
  "48",
3456
3498
  "64"
3457
3499
  ], t1);
3458
- p1([
3500
+ i1([
3459
3501
  r({ type: String, reflect: !0 })
3460
- ], a1.prototype, "name", 2);
3461
- p1([
3502
+ ], o1.prototype, "name", 2);
3503
+ i1([
3462
3504
  r({ type: String })
3463
- ], a1.prototype, "label", 2);
3464
- p1([
3505
+ ], o1.prototype, "label", 2);
3506
+ i1([
3465
3507
  r({ type: String })
3466
- ], a1.prototype, "rotate", 2);
3467
- p1([
3508
+ ], o1.prototype, "ariaDescription", 2);
3509
+ i1([
3468
3510
  r({ type: String })
3469
- ], a1.prototype, "flip", 2);
3470
- p1([
3511
+ ], o1.prototype, "rotate", 2);
3512
+ i1([
3471
3513
  r({ type: String })
3472
- ], a1.prototype, "color", 2);
3473
- p1([
3514
+ ], o1.prototype, "flip", 2);
3515
+ i1([
3516
+ r({ type: String })
3517
+ ], o1.prototype, "color", 2);
3518
+ i1([
3474
3519
  r({ reflect: !0 })
3475
- ], a1.prototype, "size", 1);
3476
- let De = a1;
3477
- customElements.get("nys-icon") || customElements.define("nys-icon", De);
3478
- const Ee = u`
3520
+ ], o1.prototype, "size", 1);
3521
+ let me = o1;
3522
+ customElements.get("nys-icon") || customElements.define("nys-icon", me);
3523
+ const xe = g`
3479
3524
  :host {
3480
3525
  /* Label Typography */
3481
3526
  --_nys-label-font-family: var(
@@ -3549,22 +3594,22 @@ const Ee = u`
3549
3594
  color: var(--nys-optional-font-color);
3550
3595
  }
3551
3596
  `;
3552
- var He = Object.defineProperty, L1 = (a, e, t, o) => {
3553
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
3554
- (i = a[n]) && (s = i(e, t, s) || s);
3555
- return s && He(e, t, s), s;
3597
+ var we = Object.defineProperty, b1 = (l, e, t, o) => {
3598
+ for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
3599
+ (i = l[n]) && (s = i(e, t, s) || s);
3600
+ return s && we(e, t, s), s;
3556
3601
  };
3557
- const E1 = class E1 extends p {
3602
+ const S1 = class S1 extends u {
3558
3603
  constructor() {
3559
3604
  super(...arguments), this.id = "", this.label = "", this.description = "", this.flag = "";
3560
3605
  }
3561
3606
  render() {
3562
- return l`
3607
+ return a`
3563
3608
  <div class="nys-label">
3564
3609
  <label for=${this.id} class="nys-label__label"
3565
3610
  >${this.label}
3566
- ${this.flag === "required" ? l`<label class="nys-label__required">*</label>` : ""}
3567
- ${this.flag === "optional" ? l`<label class="nys-label__optional">(Optional)</label>` : ""}</label
3611
+ ${this.flag === "required" ? a`<label class="nys-label__required">*</label>` : ""}
3612
+ ${this.flag === "optional" ? a`<label class="nys-label__optional">(Optional)</label>` : ""}</label
3568
3613
  >
3569
3614
  <label for=${this.id} class="nys-label__description">
3570
3615
  <slot name="description">${this.description}</slot>
@@ -3573,22 +3618,22 @@ const E1 = class E1 extends p {
3573
3618
  `;
3574
3619
  }
3575
3620
  };
3576
- E1.styles = Ee;
3577
- let i1 = E1;
3578
- L1([
3621
+ S1.styles = xe;
3622
+ let n1 = S1;
3623
+ b1([
3579
3624
  r({ type: String })
3580
- ], i1.prototype, "id");
3581
- L1([
3625
+ ], n1.prototype, "id");
3626
+ b1([
3582
3627
  r({ type: String })
3583
- ], i1.prototype, "label");
3584
- L1([
3628
+ ], n1.prototype, "label");
3629
+ b1([
3585
3630
  r({ type: String })
3586
- ], i1.prototype, "description");
3587
- L1([
3631
+ ], n1.prototype, "description");
3632
+ b1([
3588
3633
  r({ type: String })
3589
- ], i1.prototype, "flag");
3590
- customElements.get("nys-label") || customElements.define("nys-label", i1);
3591
- const R1 = u`
3634
+ ], n1.prototype, "flag");
3635
+ customElements.get("nys-label") || customElements.define("nys-label", n1);
3636
+ const Z1 = g`
3592
3637
  :host {
3593
3638
  /* Global Radiobutton Styles */
3594
3639
  --_nys-radiobutton-size: var(--nys-size-400, 32px);
@@ -3941,14 +3986,14 @@ const R1 = u`
3941
3986
  cursor: not-allowed;
3942
3987
  }
3943
3988
  `;
3944
- var Ae = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, I = (a, e, t, o) => {
3945
- for (var s = o > 1 ? void 0 : o ? Ze(e, t) : e, n = a.length - 1, i; n >= 0; n--)
3946
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
3947
- return o && s && Ae(e, t, s), s;
3989
+ var ke = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, B = (l, e, t, o) => {
3990
+ for (var s = o > 1 ? void 0 : o ? Le(e, t) : e, n = l.length - 1, i; n >= 0; n--)
3991
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
3992
+ return o && s && ke(e, t, s), s;
3948
3993
  };
3949
- let Ie = 0;
3950
- var G;
3951
- const D = (G = class extends p {
3994
+ let Se = 0;
3995
+ var Y;
3996
+ const E = (Y = class extends u {
3952
3997
  // allows use of elementInternals' API
3953
3998
  constructor() {
3954
3999
  super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.selectedValue = null, this._size = "md", this.tile = !1, this._internals = this.attachInternals();
@@ -3957,13 +4002,13 @@ const D = (G = class extends p {
3957
4002
  return this._size;
3958
4003
  }
3959
4004
  set size(e) {
3960
- this._size = G.VALID_SIZES.includes(
4005
+ this._size = Y.VALID_SIZES.includes(
3961
4006
  e
3962
4007
  ) ? e : "md";
3963
4008
  }
3964
4009
  // Generate a unique ID if one is not provided
3965
4010
  connectedCallback() {
3966
- super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${Ie++}`), this.addEventListener("nys-change", this._handleRadioButtonChange), this.addEventListener("invalid", this._handleInvalid);
4011
+ super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${Se++}`), this.addEventListener("nys-change", this._handleRadioButtonChange), this.addEventListener("invalid", this._handleInvalid);
3967
4012
  }
3968
4013
  disconnectedCallback() {
3969
4014
  super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
@@ -4042,7 +4087,7 @@ const D = (G = class extends p {
4042
4087
  }
4043
4088
  }
4044
4089
  render() {
4045
- return l` <div
4090
+ return a` <div
4046
4091
  role="radiogroup"
4047
4092
  class="nys-radiogroup"
4048
4093
  aria-required="${this.required ? "true" : "false"}"
@@ -4066,50 +4111,50 @@ const D = (G = class extends p {
4066
4111
  ></nys-errormessage>
4067
4112
  </div>`;
4068
4113
  }
4069
- }, G.VALID_SIZES = ["sm", "md"], G.styles = R1, G.formAssociated = !0, G);
4070
- I([
4114
+ }, Y.VALID_SIZES = ["sm", "md"], Y.styles = Z1, Y.formAssociated = !0, Y);
4115
+ B([
4071
4116
  r({ type: String })
4072
- ], D.prototype, "id", 2);
4073
- I([
4117
+ ], E.prototype, "id", 2);
4118
+ B([
4074
4119
  r({ type: String, reflect: !0 })
4075
- ], D.prototype, "name", 2);
4076
- I([
4120
+ ], E.prototype, "name", 2);
4121
+ B([
4077
4122
  r({ type: Boolean, reflect: !0 })
4078
- ], D.prototype, "required", 2);
4079
- I([
4123
+ ], E.prototype, "required", 2);
4124
+ B([
4080
4125
  r({ type: Boolean, reflect: !0 })
4081
- ], D.prototype, "optional", 2);
4082
- I([
4126
+ ], E.prototype, "optional", 2);
4127
+ B([
4083
4128
  r({ type: Boolean, reflect: !0 })
4084
- ], D.prototype, "showError", 2);
4085
- I([
4129
+ ], E.prototype, "showError", 2);
4130
+ B([
4086
4131
  r({ type: String })
4087
- ], D.prototype, "errorMessage", 2);
4088
- I([
4132
+ ], E.prototype, "errorMessage", 2);
4133
+ B([
4089
4134
  r({ type: String })
4090
- ], D.prototype, "label", 2);
4091
- I([
4135
+ ], E.prototype, "label", 2);
4136
+ B([
4092
4137
  r({ type: String })
4093
- ], D.prototype, "description", 2);
4094
- I([
4138
+ ], E.prototype, "description", 2);
4139
+ B([
4095
4140
  O()
4096
- ], D.prototype, "selectedValue", 2);
4097
- I([
4141
+ ], E.prototype, "selectedValue", 2);
4142
+ B([
4098
4143
  r({ reflect: !0 })
4099
- ], D.prototype, "size", 1);
4100
- I([
4144
+ ], E.prototype, "size", 1);
4145
+ B([
4101
4146
  r({ type: Boolean, reflect: !0 })
4102
- ], D.prototype, "tile", 2);
4103
- let Be = D;
4104
- customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", Be);
4105
- var qe = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, R = (a, e, t, o) => {
4106
- for (var s = o > 1 ? void 0 : o ? Ue(e, t) : e, n = a.length - 1, i; n >= 0; n--)
4107
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
4108
- return o && s && qe(e, t, s), s;
4147
+ ], E.prototype, "tile", 2);
4148
+ let $e = E;
4149
+ customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", $e);
4150
+ var De = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, F = (l, e, t, o) => {
4151
+ for (var s = o > 1 ? void 0 : o ? Ve(e, t) : e, n = l.length - 1, i; n >= 0; n--)
4152
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
4153
+ return o && s && De(e, t, s), s;
4109
4154
  };
4110
- let Oe = 0;
4155
+ let Me = 0;
4111
4156
  var y;
4112
- const B = (y = class extends p {
4157
+ const q = (y = class extends u {
4113
4158
  constructor() {
4114
4159
  super(...arguments), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this._size = "md", this.tile = !1;
4115
4160
  }
@@ -4132,7 +4177,7 @@ const B = (y = class extends p {
4132
4177
  /********************** Lifecycle updates **********************/
4133
4178
  // Generate a unique ID if one is not provided
4134
4179
  connectedCallback() {
4135
- super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${Oe++}`), this.checked && (y.buttonGroup[this.name] && (y.buttonGroup[this.name].checked = !1, y.buttonGroup[this.name].requestUpdate()), y.buttonGroup[this.name] = this);
4180
+ super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${Me++}`), this.checked && (y.buttonGroup[this.name] && (y.buttonGroup[this.name].checked = !1, y.buttonGroup[this.name].requestUpdate()), y.buttonGroup[this.name] = this);
4136
4181
  }
4137
4182
  updated(e) {
4138
4183
  e.has("checked") && this.checked && y.buttonGroup[this.name] !== this && (y.buttonGroup[this.name] && (y.buttonGroup[this.name].checked = !1, y.buttonGroup[this.name].requestUpdate()), y.buttonGroup[this.name] = this);
@@ -4177,7 +4222,7 @@ const B = (y = class extends p {
4177
4222
  e.code === "Space" && (e.preventDefault(), !this.disabled && !this.checked && (y.buttonGroup[this.name] && (y.buttonGroup[this.name].checked = !1, y.buttonGroup[this.name].requestUpdate()), y.buttonGroup[this.name] = this, this.checked = !0, this._emitChangeEvent()));
4178
4223
  }
4179
4224
  render() {
4180
- return l`
4225
+ return a`
4181
4226
  <label class="nys-radiobutton">
4182
4227
  <input
4183
4228
  id="${this.id}"
@@ -4196,7 +4241,7 @@ const B = (y = class extends p {
4196
4241
  @blur="${this._handleBlur}"
4197
4242
  @keydown="${this._handleKeydown}"
4198
4243
  />
4199
- ${this.label && l` <div class="nys-radiobutton__text">
4244
+ ${this.label && a` <div class="nys-radiobutton__text">
4200
4245
  <label for=${this.id} class="nys-radiobutton__label"
4201
4246
  >${this.label}</label
4202
4247
  >
@@ -4207,40 +4252,40 @@ const B = (y = class extends p {
4207
4252
  </label>
4208
4253
  `;
4209
4254
  }
4210
- }, y.VALID_SIZES = ["sm", "md"], y.buttonGroup = {}, y.styles = R1, y);
4211
- R([
4255
+ }, y.VALID_SIZES = ["sm", "md"], y.buttonGroup = {}, y.styles = Z1, y);
4256
+ F([
4212
4257
  r({ type: Boolean, reflect: !0 })
4213
- ], B.prototype, "checked", 2);
4214
- R([
4258
+ ], q.prototype, "checked", 2);
4259
+ F([
4215
4260
  r({ type: Boolean, reflect: !0 })
4216
- ], B.prototype, "disabled", 2);
4217
- R([
4261
+ ], q.prototype, "disabled", 2);
4262
+ F([
4218
4263
  r({ type: Boolean, reflect: !0 })
4219
- ], B.prototype, "required", 2);
4220
- R([
4264
+ ], q.prototype, "required", 2);
4265
+ F([
4221
4266
  r({ type: String })
4222
- ], B.prototype, "label", 2);
4223
- R([
4267
+ ], q.prototype, "label", 2);
4268
+ F([
4224
4269
  r({ type: String })
4225
- ], B.prototype, "description", 2);
4226
- R([
4270
+ ], q.prototype, "description", 2);
4271
+ F([
4227
4272
  r({ type: String })
4228
- ], B.prototype, "id", 2);
4229
- R([
4273
+ ], q.prototype, "id", 2);
4274
+ F([
4230
4275
  r({ type: String, reflect: !0 })
4231
- ], B.prototype, "name", 2);
4232
- R([
4276
+ ], q.prototype, "name", 2);
4277
+ F([
4233
4278
  r({ type: String })
4234
- ], B.prototype, "value", 2);
4235
- R([
4279
+ ], q.prototype, "value", 2);
4280
+ F([
4236
4281
  r({ reflect: !0 })
4237
- ], B.prototype, "size", 1);
4238
- R([
4282
+ ], q.prototype, "size", 1);
4283
+ F([
4239
4284
  r({ type: Boolean, reflect: !0 })
4240
- ], B.prototype, "tile", 2);
4241
- let Pe = B;
4242
- customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", Pe);
4243
- const Te = u`
4285
+ ], q.prototype, "tile", 2);
4286
+ let ze = q;
4287
+ customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", ze);
4288
+ const Ee = g`
4244
4289
  :host {
4245
4290
  /* Global Select Styles */
4246
4291
  --_nys-select-width: 100%;
@@ -4388,12 +4433,12 @@ const Te = u`
4388
4433
  var(--_nys-select-error-color);
4389
4434
  }
4390
4435
  `;
4391
- var Re = Object.defineProperty, v1 = (a, e, t, o) => {
4392
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
4393
- (i = a[n]) && (s = i(e, t, s) || s);
4394
- return s && Re(e, t, s), s;
4436
+ var He = Object.defineProperty, p1 = (l, e, t, o) => {
4437
+ for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
4438
+ (i = l[n]) && (s = i(e, t, s) || s);
4439
+ return s && He(e, t, s), s;
4395
4440
  };
4396
- class l1 extends p {
4441
+ class a1 extends u {
4397
4442
  constructor() {
4398
4443
  super(...arguments), this.disabled = !1, this.selected = !1, this.value = "", this.label = "", this.hidden = !1;
4399
4444
  }
@@ -4407,7 +4452,7 @@ class l1 extends p {
4407
4452
  });
4408
4453
  }
4409
4454
  render() {
4410
- return l`
4455
+ return a`
4411
4456
  <option
4412
4457
  ?disabled=${this.disabled}
4413
4458
  ?selected=${this.selected}
@@ -4420,30 +4465,30 @@ class l1 extends p {
4420
4465
  `;
4421
4466
  }
4422
4467
  }
4423
- v1([
4468
+ p1([
4424
4469
  r({ type: Boolean, reflect: !0 })
4425
- ], l1.prototype, "disabled");
4426
- v1([
4470
+ ], a1.prototype, "disabled");
4471
+ p1([
4427
4472
  r({ type: Boolean, reflect: !0 })
4428
- ], l1.prototype, "selected");
4429
- v1([
4473
+ ], a1.prototype, "selected");
4474
+ p1([
4430
4475
  r({ type: String })
4431
- ], l1.prototype, "value");
4432
- v1([
4476
+ ], a1.prototype, "value");
4477
+ p1([
4433
4478
  r({ type: String })
4434
- ], l1.prototype, "label");
4435
- v1([
4479
+ ], a1.prototype, "label");
4480
+ p1([
4436
4481
  r({ type: Boolean, reflect: !0 })
4437
- ], l1.prototype, "hidden");
4438
- customElements.define("nys-option", l1);
4439
- var Fe = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, E = (a, e, t, o) => {
4440
- for (var s = o > 1 ? void 0 : o ? Ne(e, t) : e, n = a.length - 1, i; n >= 0; n--)
4441
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
4442
- return o && s && Fe(e, t, s), s;
4482
+ ], a1.prototype, "hidden");
4483
+ customElements.define("nys-option", a1);
4484
+ var Ze = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, H = (l, e, t, o) => {
4485
+ for (var s = o > 1 ? void 0 : o ? Ie(e, t) : e, n = l.length - 1, i; n >= 0; n--)
4486
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
4487
+ return o && s && Ze(e, t, s), s;
4443
4488
  };
4444
- let je = 0;
4445
- var Y;
4446
- const V = (Y = class extends p {
4489
+ let Ae = 0;
4490
+ var W;
4491
+ const z = (W = class extends u {
4447
4492
  // allows use of elementInternals' API
4448
4493
  constructor() {
4449
4494
  super(), this.id = "", this.name = "", this.label = "", this.description = "", this.value = "", this.disabled = !1, this.required = !1, this.optional = !1, this.form = "", this.showError = !1, this.errorMessage = "", this._width = "md", this._hasUserInteracted = !1, this._internals = this.attachInternals();
@@ -4452,13 +4497,13 @@ const V = (Y = class extends p {
4452
4497
  return this._width;
4453
4498
  }
4454
4499
  set width(e) {
4455
- this._width = Y.VALID_WIDTHS.includes(
4500
+ this._width = W.VALID_WIDTHS.includes(
4456
4501
  e
4457
4502
  ) ? e : "full";
4458
4503
  }
4459
4504
  // Generate a unique ID if one is not provided
4460
4505
  connectedCallback() {
4461
- super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${je++}`), this.addEventListener("invalid", this._handleInvalid);
4506
+ super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${Ae++}`), this.addEventListener("invalid", this._handleInvalid);
4462
4507
  }
4463
4508
  disconnectedCallback() {
4464
4509
  super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
@@ -4478,7 +4523,7 @@ const V = (Y = class extends p {
4478
4523
  if (!e || !t) return;
4479
4524
  t.querySelectorAll("option:not([hidden])").forEach((i) => i.remove()), e.assignedElements({ flatten: !0 }).forEach((i) => {
4480
4525
  var c;
4481
- if (i instanceof l1) {
4526
+ if (i instanceof a1) {
4482
4527
  const d = document.createElement("option");
4483
4528
  d.value = i.value, d.textContent = i.label || ((c = i.textContent) == null ? void 0 : c.trim()) || "", d.disabled = i.disabled, d.selected = i.selected, t.appendChild(d);
4484
4529
  }
@@ -4558,7 +4603,7 @@ const V = (Y = class extends p {
4558
4603
  }
4559
4604
  }
4560
4605
  render() {
4561
- return l`
4606
+ return a`
4562
4607
  <div class="nys-select">
4563
4608
  <nys-label
4564
4609
  id=${this.id}
@@ -4601,46 +4646,46 @@ const V = (Y = class extends p {
4601
4646
  </div>
4602
4647
  `;
4603
4648
  }
4604
- }, Y.VALID_WIDTHS = ["sm", "md", "lg", "full"], Y.styles = Te, Y.formAssociated = !0, Y);
4605
- E([
4649
+ }, W.VALID_WIDTHS = ["sm", "md", "lg", "full"], W.styles = Ee, W.formAssociated = !0, W);
4650
+ H([
4606
4651
  r({ type: String })
4607
- ], V.prototype, "id", 2);
4608
- E([
4652
+ ], z.prototype, "id", 2);
4653
+ H([
4609
4654
  r({ type: String, reflect: !0 })
4610
- ], V.prototype, "name", 2);
4611
- E([
4655
+ ], z.prototype, "name", 2);
4656
+ H([
4612
4657
  r({ type: String })
4613
- ], V.prototype, "label", 2);
4614
- E([
4658
+ ], z.prototype, "label", 2);
4659
+ H([
4615
4660
  r({ type: String })
4616
- ], V.prototype, "description", 2);
4617
- E([
4661
+ ], z.prototype, "description", 2);
4662
+ H([
4618
4663
  r({ type: String })
4619
- ], V.prototype, "value", 2);
4620
- E([
4664
+ ], z.prototype, "value", 2);
4665
+ H([
4621
4666
  r({ type: Boolean, reflect: !0 })
4622
- ], V.prototype, "disabled", 2);
4623
- E([
4667
+ ], z.prototype, "disabled", 2);
4668
+ H([
4624
4669
  r({ type: Boolean, reflect: !0 })
4625
- ], V.prototype, "required", 2);
4626
- E([
4670
+ ], z.prototype, "required", 2);
4671
+ H([
4627
4672
  r({ type: Boolean, reflect: !0 })
4628
- ], V.prototype, "optional", 2);
4629
- E([
4673
+ ], z.prototype, "optional", 2);
4674
+ H([
4630
4675
  r({ type: String })
4631
- ], V.prototype, "form", 2);
4632
- E([
4676
+ ], z.prototype, "form", 2);
4677
+ H([
4633
4678
  r({ type: Boolean, reflect: !0 })
4634
- ], V.prototype, "showError", 2);
4635
- E([
4679
+ ], z.prototype, "showError", 2);
4680
+ H([
4636
4681
  r({ type: String })
4637
- ], V.prototype, "errorMessage", 2);
4638
- E([
4682
+ ], z.prototype, "errorMessage", 2);
4683
+ H([
4639
4684
  r({ reflect: !0 })
4640
- ], V.prototype, "width", 1);
4641
- let Ge = V;
4642
- customElements.get("nys-select") || customElements.define("nys-select", Ge);
4643
- const Ye = u`
4685
+ ], z.prototype, "width", 1);
4686
+ let Be = z;
4687
+ customElements.get("nys-select") || customElements.define("nys-select", Be);
4688
+ const qe = g`
4644
4689
  :host {
4645
4690
  /* Global Skipnav Styles */
4646
4691
  --_nys-skipnav-padding-vertical: var(--nys-space-100, 8px);
@@ -4713,12 +4758,12 @@ const Ye = u`
4713
4758
  outline: none;
4714
4759
  }
4715
4760
  `;
4716
- var Ke = Object.defineProperty, F1 = (a, e, t, o) => {
4717
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
4718
- (i = a[n]) && (s = i(e, t, s) || s);
4719
- return s && Ke(e, t, s), s;
4761
+ var Ue = Object.defineProperty, I1 = (l, e, t, o) => {
4762
+ for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
4763
+ (i = l[n]) && (s = i(e, t, s) || s);
4764
+ return s && Ue(e, t, s), s;
4720
4765
  };
4721
- const H1 = class H1 extends p {
4766
+ const $1 = class $1 extends u {
4722
4767
  constructor() {
4723
4768
  super(), this.id = "", this.href = "";
4724
4769
  }
@@ -4742,7 +4787,7 @@ const H1 = class H1 extends p {
4742
4787
  t && (t.setAttribute("tabindex", "-1"), t.focus(), t.style.outline = "none");
4743
4788
  }
4744
4789
  render() {
4745
- return l`
4790
+ return a`
4746
4791
  <div class="nys-skipnav">
4747
4792
  <a
4748
4793
  id=${this.id}
@@ -4759,26 +4804,56 @@ const H1 = class H1 extends p {
4759
4804
  `;
4760
4805
  }
4761
4806
  };
4762
- H1.styles = Ye;
4763
- let g1 = H1;
4764
- F1([
4807
+ $1.styles = qe;
4808
+ let u1 = $1;
4809
+ I1([
4765
4810
  r({ type: String })
4766
- ], g1.prototype, "id");
4767
- F1([
4811
+ ], u1.prototype, "id");
4812
+ I1([
4768
4813
  r({ type: String })
4769
- ], g1.prototype, "href");
4770
- customElements.get("nys-skipnav") || customElements.define("nys-skipnav", g1);
4771
- const N1 = u`
4814
+ ], u1.prototype, "href");
4815
+ customElements.get("nys-skipnav") || customElements.define("nys-skipnav", u1);
4816
+ const Pe = g`
4772
4817
  :host {
4773
4818
  /* Anything that can be overridden should be defined here */
4774
4819
 
4775
- /* Global Stepper Styles */
4820
+ /* Global Text Input Styles */
4821
+ --_nys-textarea-width: 100%;
4822
+ --_nys-textarea-radius: var(--nys-radius-md, 4px);
4823
+ --_nys-textarea-width-border: var(--nys-border-width-sm, 1px);
4824
+ --_nys-textarea-color-border: var(--nys-color-neutral-400, #909395);
4825
+ --_nys-textarea-padding: var(--nys-space-100, 8px);
4826
+ --_nys-textarea-gap: var(--nys-space-50, 4px);
4827
+ --_nys-textarea-color: var(
4828
+ --nys-color-text,
4829
+ var(--nys-color-neutral-900, #1b1b1b)
4830
+ );
4831
+ --_nys-textarea-placeholder-color: var(
4832
+ --nys-color-text-weaker,
4833
+ var(--nys-color-neutral-500, #797c7f)
4834
+ );
4835
+
4836
+ /* Hovered */
4837
+ --_nys-textarea-hover-color-outline: var(--nys-color-neutral-900, #1b1b1b);
4838
+ --_nys-textarea-hover-width-outline: var(--nys-border-width-sm, 1px);
4839
+
4840
+ /* Focused */
4841
+ --_nys-textarea-focus-color-outline: var(--nys-color-focus, #004dd1);
4842
+ --_nys-textarea-focus-width-outline: var(--nys-border-width-sm, 1px);
4776
4843
 
4777
- /* Typography */
4778
- --_nys-stepper-font-size: var(--nys-font-size-ui-md, 16px);
4779
- --_nys-stepper-font-weight: var(--nys-font-weight-semibold, 600);
4780
- --_nys-stepper-line-height: var(--nys-font-lineheight-ui-md, 24px);
4781
- --_nys-stepper-font-family: var(
4844
+ /* Disabled */
4845
+ --_nys-textarea-disabled-bg-color: var(--nys-color-neutral-10, #f6f6f6);
4846
+ --_nys-textarea-disabled-color-border: var(
4847
+ --nys-color-neutral-200,
4848
+ #bec0c1
4849
+ );
4850
+ --_nys-textarea-disabled-color-text: var(
4851
+ --nys-color-text-disabled,
4852
+ var(--nys-color-neutral-200, #bec0c1)
4853
+ );
4854
+
4855
+ /* Global Font Styles */
4856
+ --_nys-textarea-family-ui: var(
4782
4857
  --nys-font-family-ui,
4783
4858
  var(
4784
4859
  --nys-font-family-sans,
@@ -4789,625 +4864,22 @@ const N1 = u`
4789
4864
  sans-serif
4790
4865
  )
4791
4866
  );
4867
+ --_nys-textarea-size-ui-md: var(--nys-font-size-ui-md, 16px);
4868
+ --_nys-textarea-weight-ui: var(--nys-font-weight-regular, 400);
4869
+ --_nys-textarea-lineheight-ui: var(--nys-font-lineheight-ui-md, 24px);
4870
+ --nys-textarea-letterspacing-ui: var(
4871
+ --nys-font-letterspacing-ui-md,
4872
+ var(--nys-font-letterspacing-400, 0.044px)
4873
+ );
4874
+ --_nys-textarea-color-ui: var(--nys-color-ink, #1b1b1b);
4792
4875
  }
4793
4876
 
4794
- .nys-stepper {
4795
- font-family: var(--_nys-stepper-font-family);
4796
- font-size: var(--_nys-stepper-font-size);
4797
- font-weight: var(--_nys-stepper-font-weight);
4798
- line-height: var(--_nys-stepper-line-height);
4799
- display: flex;
4800
- flex-direction: column;
4801
- counter-reset: step;
4802
- background: var(--nys-color-surface-raised, #f6f6f6);
4803
- height: -webkit-fill-available;
4804
- height: 100%;
4805
- width: max-content;
4806
- max-width: 300px;
4877
+ :host([width="sm"]) {
4878
+ --_nys-textarea-width: var(--nys-form-width-sm, 88px);
4807
4879
  }
4808
4880
 
4809
- .nys-stepper__header {
4810
- display: flex;
4811
- flex-direction: column;
4812
- padding: var(--nys-space-400, 32px) var(--nys-space-400, 32px)
4813
- var(--nys-space-150, 12px);
4814
- }
4815
-
4816
- ::slotted(div[slot="actions"]) {
4817
- display: flex;
4818
- flex-wrap: wrap;
4819
- justify-content: flex-start;
4820
- gap: var(--nys-space-100, 8px);
4821
- margin-bottom: var(--nys-space-300, 24px);
4822
- }
4823
-
4824
- .nys-stepper__counter {
4825
- display: none;
4826
- text-decoration: underline;
4827
- text-decoration-style: solid;
4828
- text-decoration-skip-ink: auto;
4829
- text-decoration-thickness: 7%; /* 1.12px */
4830
- text-underline-offset: auto;
4831
- text-underline-position: from-font;
4832
- color: var(--nys-color-text, #1b1b1b);
4833
- text-overflow: ellipsis;
4834
- font-family: var(--nys-type-family-ui, "Proxima Nova");
4835
- font-size: var(--nys-type-size-ui-md, 16px);
4836
- font-style: normal;
4837
- font-weight: 400;
4838
- line-height: var(--nys-type-size-ui-md, 16px);
4839
- cursor: pointer;
4840
- width: fit-content;
4841
- }
4842
-
4843
- .nys-stepper__steps {
4844
- display: flex;
4845
- flex-direction: column;
4846
- padding: var(--nys-space-150, 12px) var(--nys-space-400, 32px)
4847
- var(--nys-space-400, 32px);
4848
- overflow-y: scroll;
4849
- height: -webkit-fill-available;
4850
- height: -moz-available;
4851
- scrollbar-width: none;
4852
- background:
4853
- /* Shadow Cover TOP */
4854
- linear-gradient(
4855
- var(--nys-color-surface-raised, #f6f6f6) 30%,
4856
- rgba(255, 255, 255, 0)
4857
- )
4858
- center top,
4859
- /* Shadow Cover BOTTOM */
4860
- linear-gradient(
4861
- rgba(255, 255, 255, 0),
4862
- var(--nys-color-surface-raised, #f6f6f6) 70%
4863
- )
4864
- center bottom,
4865
- /* Shadow TOP */
4866
- linear-gradient(to bottom, rgba(99, 99, 99, 0.2), rgba(0, 0, 0, 0)) top,
4867
- /* Shadow BOTTOM */
4868
- linear-gradient(to top, rgba(99, 99, 99, 0.2), rgba(0, 0, 0, 0)) bottom;
4869
-
4870
- background-repeat: no-repeat;
4871
- background-size:
4872
- 100% 40px,
4873
- 100% 40px,
4874
- 100% 14px,
4875
- 100% 14px;
4876
- background-attachment: local, local, scroll, scroll;
4877
- background-color: var(--nys-color-surface-raised, #f6f6f6);
4878
- }
4879
-
4880
- .nys-step {
4881
- position: relative;
4882
- counter-increment: step;
4883
- display: flex;
4884
- flex-direction: column;
4885
- }
4886
-
4887
- .nys-step__contentwrapper {
4888
- display: flex;
4889
- flex-direction: row;
4890
- align-items: center;
4891
- gap: var(--nys-space-150, 12px);
4892
- cursor: default;
4893
- }
4894
-
4895
- .nys-step__contentwrapper:focus-visible {
4896
- outline: solid var(--nys-color-focus, #004dd1)
4897
- var(--nys-border-width-md, 2px);
4898
- outline-offset: var(--nys-space-2px, 2px);
4899
- border-radius: var(--nys-radius-md, 4px);
4900
- }
4901
-
4902
- .nys-step__linewrapper {
4903
- width: 24px;
4904
- display: flex;
4905
- justify-content: center;
4906
- }
4907
-
4908
- .nys-step__line {
4909
- width: var(--nys-size-1px, 1px);
4910
- height: var(--nys-size-300, 24px);
4911
- border-radius: var(--nys-radius-round, 1776px);
4912
- background: var(--nys-color-black-transparent-200, rgba(27, 27, 27, 0.2));
4913
- margin: var(--nys-space-100, 8px) 0;
4914
- }
4915
-
4916
- .nys-step__number {
4917
- border-radius: var(--nys-radius-round, 1776px);
4918
- border: 1px solid var(--nys-color-neutral-400, #909395);
4919
- background: var(
4920
- --nys-color-white-transparent-900,
4921
- rgba(255, 255, 255, 0.9)
4922
- );
4923
- width: 24px;
4924
- height: 24px;
4925
- display: flex;
4926
- align-items: center;
4927
- justify-content: center;
4928
- text-align: center;
4929
- }
4930
-
4931
- :host([previous]) .nys-step__number,
4932
- :host([previous]) .nys-step__line,
4933
- :host([current]) .nys-step__number,
4934
- :host([current]) .nys-step__line {
4935
- background: var(--nys-color-theme-stronger, #081b2b);
4936
- color: var(--nys-color-text-reverse, #fff);
4937
- border-color: var(--nys-color-theme-stronger, #081b2b);
4938
- }
4939
-
4940
- :host([selected]) .nys-step__number {
4941
- background: var(--nys-color-theme, #154973);
4942
- color: var(--nys-color-text-reverse, #fff);
4943
- border-color: var(--nys-color-theme, #154973);
4944
- outline: 4px solid var(--nys-color-theme-weak, #cddde9);
4945
- }
4946
-
4947
- .nys-step__number::before {
4948
- content: counter(step);
4949
- line-height: 1;
4950
- padding-top: 2px;
4951
- }
4952
-
4953
- /* Hide the line wrapper in the last step */
4954
- :host([first]) .nys-step__linewrapper {
4955
- display: none !important;
4956
- }
4957
-
4958
- .nys-step__content {
4959
- display: flex;
4960
- flex-direction: column;
4961
- gap: var(--nys-space-100, 8px);
4962
- }
4963
-
4964
- .nys-step__label {
4965
- overflow: hidden;
4966
- color: var(--nys-color-text, #1b1b1b);
4967
- text-overflow: ellipsis;
4968
- font-family: var(--nys-type-family-ui, "Proxima Nova");
4969
- font-size: var(--nys-type-size-ui-md, 16px);
4970
- font-style: normal;
4971
- font-weight: 400;
4972
- line-height: var(--nys-type-size-ui-md, 16px);
4973
- letter-spacing: var(--nys-font-letterspacing-ui-md, 0.044px);
4974
- text-decoration-style: solid;
4975
- text-decoration-skip-ink: auto;
4976
- text-decoration-thickness: 7%; /* 1.12px */
4977
- text-underline-offset: auto;
4978
- text-underline-position: from-font;
4979
- }
4980
-
4981
- :host([current]) .nys-step__label,
4982
- :host([previous]) .nys-step__label {
4983
- text-decoration-line: underline;
4984
- }
4985
-
4986
- :host([current]) .nys-step__contentwrapper,
4987
- :host([previous]) .nys-step__contentwrapper {
4988
- cursor: pointer;
4989
- }
4990
-
4991
- :host([selected]) .nys-step__label {
4992
- /* UI/Medium/Bold */
4993
- font-weight: 700;
4994
- text-decoration-line: none;
4995
- }
4996
-
4997
- :host([selected]) .nys-step__contentwrapper {
4998
- cursor: default;
4999
- }
5000
-
5001
- :host([selected]) .nys-step__contentwrapper:focus-visible {
5002
- outline-offset: 6px;
5003
- }
5004
-
5005
- .nys-step__currentflag {
5006
- overflow: hidden;
5007
- color: var(--nys-color-text-weak, #4a4d4f);
5008
- text-overflow: ellipsis;
5009
- font-size: var(--nys-typography-type-size-ui-xs, 12px);
5010
- font-weight: 600;
5011
- line-height: var(--nys-typography-type-size-ui-xs, 12px);
5012
- letter-spacing: var(--nys-typography-font-letterspacing-ui-xs, 0.057px);
5013
- }
5014
-
5015
- @media (max-width: 479px) {
5016
- .nys-stepper {
5017
- max-width: 479px;
5018
- width: 100%;
5019
- }
5020
-
5021
- .nys-stepper__header {
5022
- flex-direction: row-reverse;
5023
- justify-content: space-between;
5024
- padding: var(--nys-space-150, 12px);
5025
- gap: var(--nys-space-200, 16px);
5026
- }
5027
-
5028
- .nys-stepper__headertext {
5029
- flex: 1 1 0;
5030
- min-width: 0;
5031
- }
5032
-
5033
- ::slotted(div[slot="actions"]) {
5034
- margin-bottom: 0;
5035
- min-width: 0;
5036
- justify-content: end;
5037
- }
5038
-
5039
- .nys-stepper__counter {
5040
- display: block;
5041
- }
5042
-
5043
- .nys-stepper__steps {
5044
- flex-direction: row;
5045
- gap: var(--nys-space-2px, 2px);
5046
- padding: 0;
5047
- }
5048
-
5049
- .nys-stepper__steps::slotted(*) {
5050
- flex: 1;
5051
- }
5052
-
5053
- .nys-step__number {
5054
- border-radius: 0;
5055
- border: none;
5056
- background-color: var(--nys-color-neutral-200, #bec0c1);
5057
- height: var(--nys-size-100, 8px);
5058
- width: 100%;
5059
- }
5060
-
5061
- :host([previous]) .nys-step__number,
5062
- :host([current]) .nys-step__number {
5063
- background-color: var(--nys-color-neutral-900, #1b1b1b);
5064
- }
5065
-
5066
- :host([selected]) .nys-step__number {
5067
- background-color: var(--nys-color-theme-mid, #457aa5);
5068
- outline: none;
5069
- }
5070
- .nys-step__number::before {
5071
- content: "";
5072
- }
5073
-
5074
- .nys-step__content,
5075
- .nys-step__linewrapper {
5076
- display: none;
5077
- }
5078
-
5079
- .nys-step__contentwrapper {
5080
- cursor: default;
5081
- pointer-events: none;
5082
- }
5083
-
5084
- /* ---------------- Expanded Mode ---------------- */
5085
- :host([isCompactExpanded]) .nys-step__content,
5086
- :host([isCompactExpanded]) .nys-step__linewrapper {
5087
- display: flex;
5088
- }
5089
-
5090
- :host([isCompactExpanded]) .nys-stepper {
5091
- }
5092
-
5093
- :host([isCompactExpanded]) .nys-stepper__header {
5094
- padding-bottom: var(--nys-space-250, 20px);
5095
- }
5096
-
5097
- :host([isCompactExpanded]) .nys-stepper__steps {
5098
- width: -webkit-fill-available;
5099
- width: -moz-available;
5100
- z-index: 9999;
5101
- overflow-y: auto;
5102
- flex-direction: column;
5103
- gap: 0;
5104
- padding: var(--nys-space-150, 12px) var(--nys-space-400, 32px)
5105
- var(--nys-space-400, 32px);
5106
- }
5107
-
5108
- :host([isCompactExpanded]) .nys-step__number {
5109
- border-radius: var(--nys-radius-round, 1776px);
5110
- border: 1px solid var(--nys-color-neutral-400, #909395);
5111
- background: var(
5112
- --nys-color-white-transparent-900,
5113
- rgba(255, 255, 255, 0.9)
5114
- );
5115
- width: 24px;
5116
- height: 24px;
5117
- }
5118
-
5119
- :host([isCompactExpanded][previous]) .nys-step__number,
5120
- :host([isCompactExpanded][previous]) .nys-step__line,
5121
- :host([isCompactExpanded][current]) .nys-step__number,
5122
- :host([isCompactExpanded][current]) .nys-step__line {
5123
- background: var(--nys-color-theme-stronger, #081b2b);
5124
- color: var(--nys-color-text-reverse, #fff);
5125
- border-color: var(--nys-color-theme-stronger, #081b2b);
5126
- }
5127
-
5128
- :host([isCompactExpanded][selected]) .nys-step__number {
5129
- background: var(--nys-color-theme, #154973);
5130
- color: var(--nys-color-text-reverse, #fff);
5131
- border-color: var(--nys-color-theme, #154973);
5132
- outline: 4px solid var(--nys-color-theme-weak, #cddde9);
5133
- }
5134
-
5135
- :host([isCompactExpanded]) .nys-step__number::before {
5136
- content: counter(step);
5137
- line-height: 1;
5138
- padding-top: 2px;
5139
- }
5140
-
5141
- :host([isCompactExpanded]) .nys-step__contentwrapper {
5142
- pointer-events: all;
5143
- }
5144
- }
5145
- `;
5146
- var We = Object.defineProperty, C1 = (a, e, t, o) => {
5147
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
5148
- (i = a[n]) && (s = i(e, t, s) || s);
5149
- return s && We(e, t, s), s;
5150
- };
5151
- const A1 = class A1 extends p {
5152
- constructor() {
5153
- super(...arguments), this.selected = !1, this.current = !1, this.label = "", this.href = "", this.isCompactExpanded = !1;
5154
- }
5155
- _handleActivate() {
5156
- this.dispatchEvent(
5157
- new Event("nys-step-click", {
5158
- bubbles: !0,
5159
- composed: !0
5160
- })
5161
- );
5162
- }
5163
- _handleKeydown(e) {
5164
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this._handleActivate());
5165
- }
5166
- render() {
5167
- return l`
5168
- <div class="nys-step">
5169
- <div class="nys-step__linewrapper">
5170
- <div class="nys-step__line"></div>
5171
- </div>
5172
- <div
5173
- class="nys-step__contentwrapper"
5174
- tabindex=${this.isCompactExpanded ? this.selected || this.current || this.hasAttribute("previous") ? "0" : "-1" : null}
5175
- @click=${this._handleActivate}
5176
- @keydown=${this._handleKeydown}
5177
- >
5178
- <div class="nys-step__number"></div>
5179
- <div class="nys-step__content">
5180
- ${this.current ? l`<div class="nys-step__currentflag">Current Step</div>` : ""}
5181
- <div class="nys-step__label">${this.label}</div>
5182
- </div>
5183
- </div>
5184
- </div>
5185
- `;
5186
- }
5187
- };
5188
- A1.styles = N1;
5189
- let s1 = A1;
5190
- C1([
5191
- r({ type: Boolean, reflect: !0 })
5192
- ], s1.prototype, "selected");
5193
- C1([
5194
- r({ type: Boolean, reflect: !0 })
5195
- ], s1.prototype, "current");
5196
- C1([
5197
- r({ type: String })
5198
- ], s1.prototype, "label");
5199
- C1([
5200
- r({ type: String })
5201
- ], s1.prototype, "href");
5202
- C1([
5203
- r({ type: Boolean })
5204
- ], s1.prototype, "isCompactExpanded");
5205
- customElements.get("nys-step") || customElements.define("nys-step", s1);
5206
- var Xe = Object.defineProperty, u1 = (a, e, t, o) => {
5207
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
5208
- (i = a[n]) && (s = i(e, t, s) || s);
5209
- return s && Xe(e, t, s), s;
5210
- };
5211
- const Z1 = class Z1 extends p {
5212
- constructor() {
5213
- super(), this.id = "", this.name = "", this.label = "", this.contentTarget = "", this.counterText = "initial", this.isCompactExpanded = !1, this.hasLoadedInitialContent = !1, this._onStepClick = async (e) => {
5214
- const t = e.composedPath().find(
5215
- (i) => i instanceof HTMLElement && i.tagName.toLowerCase() === "nys-step"
5216
- );
5217
- if (!t) return;
5218
- const o = Array.from(this.querySelectorAll("nys-step")), s = o.findIndex(
5219
- (i) => i.hasAttribute("current")
5220
- ), n = o.indexOf(t);
5221
- s !== -1 && n > s || t.hasAttribute("selected") || (o.forEach((i) => i.removeAttribute("selected")), t.setAttribute("selected", ""), this._updateCounter(), this._loadHref(t.getAttribute("href")), this.isCompactExpanded = !1);
5222
- };
5223
- }
5224
- connectedCallback() {
5225
- super.connectedCallback(), this.addEventListener("nys-step-click", this._onStepClick), requestAnimationFrame(() => this._validateSteps());
5226
- }
5227
- disconnectedCallback() {
5228
- this.removeEventListener("nys-step-click", this._onStepClick), super.disconnectedCallback();
5229
- }
5230
- _validateSteps() {
5231
- Array.from(this.children).forEach((e) => {
5232
- const t = e instanceof HTMLElement && e.tagName.toLowerCase() === "nys-step", o = e instanceof HTMLElement && e.hasAttribute("slot") && e.getAttribute("slot") === "actions";
5233
- !t && !o && (console.warn(
5234
- "Only <nys-step> elements or the <div slot='actions'> container are allowed as direct children of <nys-stepper>. Removing:",
5235
- e
5236
- ), e.remove());
5237
- });
5238
- }
5239
- _validateButtonSlot(e) {
5240
- const o = e.target.assignedElements();
5241
- if (o.length !== 1 || o[0].tagName.toLowerCase() !== "div") {
5242
- console.warn(
5243
- "The 'actions' slot must have exactly one <div> as a direct child."
5244
- );
5245
- return;
5246
- }
5247
- const s = o[0];
5248
- Array.from(s.children).forEach((n) => {
5249
- n instanceof HTMLElement && n.tagName.toLowerCase() === "nys-button" ? (n.setAttribute("size", "sm"), n.hasAttribute("fullWidth") && (n.style.flex = "1 1 0")) : (console.warn(
5250
- "The <div> inside 'actions' slot only accepts <nys-button> elements. Removing invalid node:",
5251
- n
5252
- ), n.remove());
5253
- });
5254
- }
5255
- _updateCounter() {
5256
- if (this.isCompactExpanded) {
5257
- this.counterText = "Back to Form", this.style.height = "-webkit-fill-available", this.style.height = "-moz-available", this.style.height = "stretch";
5258
- return;
5259
- } else
5260
- this.style.height = "auto";
5261
- const e = this.querySelectorAll("nys-step"), t = Array.from(e).findIndex(
5262
- (s) => s.hasAttribute("selected")
5263
- ), o = e.length;
5264
- this.counterText = t >= 0 ? `Step ${t + 1} of ${o}` : `Step 1 of ${o}`;
5265
- }
5266
- updated() {
5267
- const e = this.querySelectorAll("nys-step");
5268
- let t = !1, o = !1, s = !1;
5269
- if (e.forEach((n, i) => {
5270
- n.hasAttribute("current") && (s ? n.removeAttribute("current") : s = !0), i === 0 ? n.setAttribute("first", "") : n.removeAttribute("first"), n.hasAttribute("current") ? (t = !0, n.removeAttribute("previous")) : t ? n.removeAttribute("previous") : n.setAttribute("previous", ""), n.hasAttribute("selected") && (t || o ? n.removeAttribute("selected") : o = !0), this.hasAttribute("isCompactExpanded") ? n.setAttribute("isCompactExpanded", "") : n.removeAttribute("isCompactExpanded");
5271
- }), o || (s ? e.forEach((n) => {
5272
- n.hasAttribute("current") && !o && (n.setAttribute("selected", ""), o = !0);
5273
- }) : e.length > 0 && (e[0].setAttribute("current", ""), e[0].setAttribute("selected", ""))), this._updateCounter(), !this.hasLoadedInitialContent) {
5274
- this.hasLoadedInitialContent = !0;
5275
- const n = Array.from(e).find(
5276
- (i) => i.hasAttribute("selected")
5277
- );
5278
- n && this._loadHref(n.getAttribute("href"));
5279
- }
5280
- }
5281
- async _loadHref(e) {
5282
- if (!e) return;
5283
- let t = null;
5284
- if (this.contentTarget && (t = document.getElementById(this.contentTarget)), t || (t = this.nextElementSibling), t)
5285
- try {
5286
- const o = await fetch(e);
5287
- t.innerHTML = await o.text();
5288
- } catch (o) {
5289
- console.error("Failed to load step content:", o);
5290
- }
5291
- else
5292
- console.warn("No container found for loading step content.");
5293
- }
5294
- _toggleCompact() {
5295
- this.isCompactExpanded = !this.isCompactExpanded;
5296
- }
5297
- _handleCounterKeydown(e) {
5298
- (e.key === " " || e.key === "Enter") && (e.preventDefault(), this._toggleCompact());
5299
- }
5300
- render() {
5301
- return l`
5302
- <div class="nys-stepper" id=${this.id} name=${this.name}>
5303
- <div class="nys-stepper__header">
5304
- <slot name="actions" @slotchange=${this._validateButtonSlot}></slot>
5305
- <div class="nys-stepper__headertext">
5306
- <div class="nys-stepper__label">${this.label}</div>
5307
- <div
5308
- class="nys-stepper__counter"
5309
- @click=${this._toggleCompact}
5310
- @keydown=${this._handleCounterKeydown}
5311
- role="button"
5312
- tabindex="0"
5313
- >
5314
- ${this.counterText}
5315
- </div>
5316
- </div>
5317
- </div>
5318
- <slot class="nys-stepper__steps"></slot>
5319
- </div>
5320
- `;
5321
- }
5322
- };
5323
- Z1.styles = N1;
5324
- let W = Z1;
5325
- u1([
5326
- r({ type: String })
5327
- ], W.prototype, "id");
5328
- u1([
5329
- r({ type: String, reflect: !0 })
5330
- ], W.prototype, "name");
5331
- u1([
5332
- r({ type: String })
5333
- ], W.prototype, "label");
5334
- u1([
5335
- r({ type: String })
5336
- ], W.prototype, "contentTarget");
5337
- u1([
5338
- r({ type: String })
5339
- ], W.prototype, "counterText");
5340
- u1([
5341
- r({ type: Boolean, reflect: !0 })
5342
- ], W.prototype, "isCompactExpanded");
5343
- customElements.get("nys-stepper") || customElements.define("nys-stepper", W);
5344
- const Qe = u`
5345
- :host {
5346
- /* Anything that can be overridden should be defined here */
5347
-
5348
- /* Global Text Input Styles */
5349
- --_nys-textarea-width: 100%;
5350
- --_nys-textarea-radius: var(--nys-radius-md, 4px);
5351
- --_nys-textarea-width-border: var(--nys-border-width-sm, 1px);
5352
- --_nys-textarea-color-border: var(--nys-color-neutral-400, #909395);
5353
- --_nys-textarea-padding: var(--nys-space-100, 8px);
5354
- --_nys-textarea-gap: var(--nys-space-50, 4px);
5355
- --_nys-textarea-color: var(
5356
- --nys-color-text,
5357
- var(--nys-color-neutral-900, #1b1b1b)
5358
- );
5359
- --_nys-textarea-placeholder-color: var(
5360
- --nys-color-text-weaker,
5361
- var(--nys-color-neutral-500, #797c7f)
5362
- );
5363
-
5364
- /* Hovered */
5365
- --_nys-textarea-hover-color-outline: var(--nys-color-neutral-900, #1b1b1b);
5366
- --_nys-textarea-hover-width-outline: var(--nys-border-width-sm, 1px);
5367
-
5368
- /* Focused */
5369
- --_nys-textarea-focus-color-outline: var(--nys-color-focus, #004dd1);
5370
- --_nys-textarea-focus-width-outline: var(--nys-border-width-sm, 1px);
5371
-
5372
- /* Disabled */
5373
- --_nys-textarea-disabled-bg-color: var(--nys-color-neutral-10, #f6f6f6);
5374
- --_nys-textarea-disabled-color-border: var(
5375
- --nys-color-neutral-200,
5376
- #bec0c1
5377
- );
5378
- --_nys-textarea-disabled-color-text: var(
5379
- --nys-color-text-disabled,
5380
- var(--nys-color-neutral-200, #bec0c1)
5381
- );
5382
-
5383
- /* Global Font Styles */
5384
- --_nys-textarea-family-ui: var(
5385
- --nys-font-family-ui,
5386
- var(
5387
- --nys-font-family-sans,
5388
- "Proxima Nova",
5389
- "Helvetica Neue",
5390
- "Helvetica",
5391
- "Arial",
5392
- sans-serif
5393
- )
5394
- );
5395
- --_nys-textarea-size-ui-md: var(--nys-font-size-ui-md, 16px);
5396
- --_nys-textarea-weight-ui: var(--nys-font-weight-regular, 400);
5397
- --_nys-textarea-lineheight-ui: var(--nys-font-lineheight-ui-md, 24px);
5398
- --nys-textarea-letterspacing-ui: var(
5399
- --nys-font-letterspacing-ui-md,
5400
- var(--nys-font-letterspacing-400, 0.044px)
5401
- );
5402
- --_nys-textarea-color-ui: var(--nys-color-ink, #1b1b1b);
5403
- }
5404
-
5405
- :host([width="sm"]) {
5406
- --_nys-textarea-width: var(--nys-form-width-sm, 88px);
5407
- }
5408
-
5409
- :host([width="md"]) {
5410
- --_nys-textarea-width: var(--nys-form-width-md, 200px);
4881
+ :host([width="md"]) {
4882
+ --_nys-textarea-width: var(--nys-form-width-md, 200px);
5411
4883
  }
5412
4884
 
5413
4885
  :host([width="lg"]) {
@@ -5483,14 +4955,14 @@ const Qe = u`
5483
4955
  cursor: not-allowed;
5484
4956
  }
5485
4957
  `;
5486
- var Je = Object.defineProperty, et = Object.getOwnPropertyDescriptor, m = (a, e, t, o) => {
5487
- for (var s = o > 1 ? void 0 : o ? et(e, t) : e, n = a.length - 1, i; n >= 0; n--)
5488
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
5489
- return o && s && Je(e, t, s), s;
4958
+ var Oe = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, _ = (l, e, t, o) => {
4959
+ for (var s = o > 1 ? void 0 : o ? Re(e, t) : e, n = l.length - 1, i; n >= 0; n--)
4960
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
4961
+ return o && s && Oe(e, t, s), s;
5490
4962
  };
5491
- let tt = 0;
5492
- var H;
5493
- const _ = (H = class extends p {
4963
+ let Te = 0;
4964
+ var Z;
4965
+ const b = (Z = class extends u {
5494
4966
  // allows use of elementInternals' API
5495
4967
  constructor() {
5496
4968
  super(), this.id = "", this.name = "", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.maxlength = null, this.width = "full", this.rows = 4, this._resize = "vertical", this.showError = !1, this.errorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
@@ -5499,16 +4971,16 @@ const _ = (H = class extends p {
5499
4971
  return this._resize;
5500
4972
  }
5501
4973
  set resize(e) {
5502
- this._resize = H.VALID_RESIZE.includes(
4974
+ this._resize = Z.VALID_RESIZE.includes(
5503
4975
  e
5504
4976
  ) ? e : "vertical";
5505
4977
  }
5506
4978
  async updated(e) {
5507
- await Promise.resolve(), e.has("width") && (this.width = H.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("rows") && (this.rows = this.rows ?? 4);
4979
+ await Promise.resolve(), e.has("width") && (this.width = Z.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("rows") && (this.rows = this.rows ?? 4);
5508
4980
  }
5509
4981
  // Generate a unique ID if one is not provided
5510
4982
  connectedCallback() {
5511
- super.connectedCallback(), this.id || (this.id = `nys-textarea-${Date.now()}-${tt++}`), this.addEventListener("invalid", this._handleInvalid);
4983
+ super.connectedCallback(), this.id || (this.id = `nys-textarea-${Date.now()}-${Te++}`), this.addEventListener("invalid", this._handleInvalid);
5512
4984
  }
5513
4985
  disconnectedCallback() {
5514
4986
  super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
@@ -5606,7 +5078,7 @@ const _ = (H = class extends p {
5606
5078
  );
5607
5079
  }
5608
5080
  render() {
5609
- return l`
5081
+ return a`
5610
5082
  <label class="nys-textarea">
5611
5083
  <nys-label
5612
5084
  id=${this.id}
@@ -5625,6 +5097,8 @@ const _ = (H = class extends p {
5625
5097
  ?readonly=${this.readonly}
5626
5098
  aria-disabled=${h(this.disabled ? "true" : void 0)}
5627
5099
  aria-required=${h(this.required ? "true" : void 0)}
5100
+ aria-label=${h(this.label || void 0)}
5101
+ aria-description=${h(this.description || void 0)}
5628
5102
  placeholder=${h(
5629
5103
  this.placeholder ? this.placeholder : void 0
5630
5104
  )}
@@ -5648,61 +5122,61 @@ ${this.value}</textarea
5648
5122
  </label>
5649
5123
  `;
5650
5124
  }
5651
- }, H.VALID_WIDTHS = ["sm", "md", "lg", "full"], H.VALID_RESIZE = ["vertical", "none"], H.styles = Qe, H.formAssociated = !0, H);
5652
- m([
5125
+ }, Z.VALID_WIDTHS = ["sm", "md", "lg", "full"], Z.VALID_RESIZE = ["vertical", "none"], Z.styles = Pe, Z.formAssociated = !0, Z);
5126
+ _([
5653
5127
  r({ type: String })
5654
- ], _.prototype, "id", 2);
5655
- m([
5128
+ ], b.prototype, "id", 2);
5129
+ _([
5656
5130
  r({ type: String, reflect: !0 })
5657
- ], _.prototype, "name", 2);
5658
- m([
5131
+ ], b.prototype, "name", 2);
5132
+ _([
5659
5133
  r({ type: String })
5660
- ], _.prototype, "label", 2);
5661
- m([
5134
+ ], b.prototype, "label", 2);
5135
+ _([
5662
5136
  r({ type: String })
5663
- ], _.prototype, "description", 2);
5664
- m([
5137
+ ], b.prototype, "description", 2);
5138
+ _([
5665
5139
  r({ type: String })
5666
- ], _.prototype, "placeholder", 2);
5667
- m([
5140
+ ], b.prototype, "placeholder", 2);
5141
+ _([
5668
5142
  r({ type: String })
5669
- ], _.prototype, "value", 2);
5670
- m([
5143
+ ], b.prototype, "value", 2);
5144
+ _([
5671
5145
  r({ type: Boolean, reflect: !0 })
5672
- ], _.prototype, "disabled", 2);
5673
- m([
5146
+ ], b.prototype, "disabled", 2);
5147
+ _([
5674
5148
  r({ type: Boolean, reflect: !0 })
5675
- ], _.prototype, "readonly", 2);
5676
- m([
5149
+ ], b.prototype, "readonly", 2);
5150
+ _([
5677
5151
  r({ type: Boolean, reflect: !0 })
5678
- ], _.prototype, "required", 2);
5679
- m([
5152
+ ], b.prototype, "required", 2);
5153
+ _([
5680
5154
  r({ type: Boolean, reflect: !0 })
5681
- ], _.prototype, "optional", 2);
5682
- m([
5155
+ ], b.prototype, "optional", 2);
5156
+ _([
5683
5157
  r({ type: String })
5684
- ], _.prototype, "form", 2);
5685
- m([
5158
+ ], b.prototype, "form", 2);
5159
+ _([
5686
5160
  r({ type: Number })
5687
- ], _.prototype, "maxlength", 2);
5688
- m([
5161
+ ], b.prototype, "maxlength", 2);
5162
+ _([
5689
5163
  r({ reflect: !0 })
5690
- ], _.prototype, "width", 2);
5691
- m([
5164
+ ], b.prototype, "width", 2);
5165
+ _([
5692
5166
  r({ type: Number })
5693
- ], _.prototype, "rows", 2);
5694
- m([
5167
+ ], b.prototype, "rows", 2);
5168
+ _([
5695
5169
  r({ reflect: !0 })
5696
- ], _.prototype, "resize", 1);
5697
- m([
5170
+ ], b.prototype, "resize", 1);
5171
+ _([
5698
5172
  r({ type: Boolean, reflect: !0 })
5699
- ], _.prototype, "showError", 2);
5700
- m([
5173
+ ], b.prototype, "showError", 2);
5174
+ _([
5701
5175
  r({ type: String })
5702
- ], _.prototype, "errorMessage", 2);
5703
- let st = _;
5704
- customElements.get("nys-textarea") || customElements.define("nys-textarea", st);
5705
- const ot = u`
5176
+ ], b.prototype, "errorMessage", 2);
5177
+ let Fe = b;
5178
+ customElements.get("nys-textarea") || customElements.define("nys-textarea", Fe);
5179
+ const Ne = g`
5706
5180
  :host {
5707
5181
  /* Anything that can be overridden should be defined here */
5708
5182
 
@@ -5916,14 +5390,14 @@ const ot = u`
5916
5390
  cursor: not-allowed;
5917
5391
  }
5918
5392
  `;
5919
- var rt = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, g = (a, e, t, o) => {
5920
- for (var s = o > 1 ? void 0 : o ? nt(e, t) : e, n = a.length - 1, i; n >= 0; n--)
5921
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
5922
- return o && s && rt(e, t, s), s;
5393
+ var je = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, C = (l, e, t, o) => {
5394
+ for (var s = o > 1 ? void 0 : o ? Ge(e, t) : e, n = l.length - 1, i; n >= 0; n--)
5395
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
5396
+ return o && s && je(e, t, s), s;
5923
5397
  };
5924
- let it = 0;
5925
- var A;
5926
- const f = (A = class extends p {
5398
+ let Ye = 0;
5399
+ var I;
5400
+ const p = (I = class extends u {
5927
5401
  // allows use of elementInternals' API
5928
5402
  constructor() {
5929
5403
  super(), this.id = "", this.name = "", this._type = "text", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.pattern = "", this.maxlength = null, this.width = "full", this.step = null, this.min = null, this.max = null, this.showError = !1, this.errorMessage = "", this.showPassword = !1, this._originalErrorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
@@ -5932,17 +5406,17 @@ const f = (A = class extends p {
5932
5406
  return this._type;
5933
5407
  }
5934
5408
  set type(e) {
5935
- this._type = A.VALID_TYPES.includes(
5409
+ this._type = I.VALID_TYPES.includes(
5936
5410
  e
5937
5411
  ) ? e : "text";
5938
5412
  }
5939
5413
  // Ensure the "width" property is valid after updates
5940
5414
  async updated(e) {
5941
- e.has("width") && (await Promise.resolve(), this.width = A.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("disabled") && (this._validateButtonSlot("startButton"), this._validateButtonSlot("endButton"));
5415
+ e.has("width") && (await Promise.resolve(), this.width = I.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("disabled") && (this._validateButtonSlot("startButton"), this._validateButtonSlot("endButton"));
5942
5416
  }
5943
5417
  // Generate a unique ID if one is not provided
5944
5418
  connectedCallback() {
5945
- super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${it++}`), this._originalErrorMessage = this.errorMessage ?? "", this.addEventListener("invalid", this._handleInvalid);
5419
+ super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${Ye++}`), this._originalErrorMessage = this.errorMessage ?? "", this.addEventListener("invalid", this._handleInvalid);
5946
5420
  }
5947
5421
  disconnectedCallback() {
5948
5422
  super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
@@ -6040,7 +5514,7 @@ const f = (A = class extends p {
6040
5514
  }), e === "startButton" ? o.classList.toggle("has-start-button", n) : e === "endButton" && o.classList.toggle("has-end-button", n);
6041
5515
  }
6042
5516
  render() {
6043
- return l`
5517
+ return a`
6044
5518
  <div class="nys-textinput">
6045
5519
  <nys-label
6046
5520
  id=${this.id}
@@ -6083,7 +5557,7 @@ const f = (A = class extends p {
6083
5557
  @focus="${this._handleFocus}"
6084
5558
  @blur="${this._handleBlur}"
6085
5559
  />
6086
- ${this.type === "password" ? l` <nys-button
5560
+ ${this.type === "password" ? a` <nys-button
6087
5561
  class="eye-icon"
6088
5562
  id="password-toggle"
6089
5563
  suffixIcon="slotted"
@@ -6110,7 +5584,7 @@ const f = (A = class extends p {
6110
5584
  </div>
6111
5585
  `;
6112
5586
  }
6113
- }, A.VALID_TYPES = [
5587
+ }, I.VALID_TYPES = [
6114
5588
  "email",
6115
5589
  "number",
6116
5590
  "password",
@@ -6118,73 +5592,73 @@ const f = (A = class extends p {
6118
5592
  "tel",
6119
5593
  "text",
6120
5594
  "url"
6121
- ], A.VALID_WIDTHS = ["sm", "md", "lg", "full"], A.styles = ot, A.formAssociated = !0, A);
6122
- g([
5595
+ ], I.VALID_WIDTHS = ["sm", "md", "lg", "full"], I.styles = Ne, I.formAssociated = !0, I);
5596
+ C([
6123
5597
  r({ type: String })
6124
- ], f.prototype, "id", 2);
6125
- g([
5598
+ ], p.prototype, "id", 2);
5599
+ C([
6126
5600
  r({ type: String, reflect: !0 })
6127
- ], f.prototype, "name", 2);
6128
- g([
5601
+ ], p.prototype, "name", 2);
5602
+ C([
6129
5603
  r({ reflect: !0 })
6130
- ], f.prototype, "type", 1);
6131
- g([
5604
+ ], p.prototype, "type", 1);
5605
+ C([
6132
5606
  r({ type: String })
6133
- ], f.prototype, "label", 2);
6134
- g([
5607
+ ], p.prototype, "label", 2);
5608
+ C([
6135
5609
  r({ type: String })
6136
- ], f.prototype, "description", 2);
6137
- g([
5610
+ ], p.prototype, "description", 2);
5611
+ C([
6138
5612
  r({ type: String })
6139
- ], f.prototype, "placeholder", 2);
6140
- g([
5613
+ ], p.prototype, "placeholder", 2);
5614
+ C([
6141
5615
  r({ type: String })
6142
- ], f.prototype, "value", 2);
6143
- g([
5616
+ ], p.prototype, "value", 2);
5617
+ C([
6144
5618
  r({ type: Boolean, reflect: !0 })
6145
- ], f.prototype, "disabled", 2);
6146
- g([
5619
+ ], p.prototype, "disabled", 2);
5620
+ C([
6147
5621
  r({ type: Boolean, reflect: !0 })
6148
- ], f.prototype, "readonly", 2);
6149
- g([
5622
+ ], p.prototype, "readonly", 2);
5623
+ C([
6150
5624
  r({ type: Boolean, reflect: !0 })
6151
- ], f.prototype, "required", 2);
6152
- g([
5625
+ ], p.prototype, "required", 2);
5626
+ C([
6153
5627
  r({ type: Boolean, reflect: !0 })
6154
- ], f.prototype, "optional", 2);
6155
- g([
5628
+ ], p.prototype, "optional", 2);
5629
+ C([
6156
5630
  r({ type: String })
6157
- ], f.prototype, "form", 2);
6158
- g([
5631
+ ], p.prototype, "form", 2);
5632
+ C([
6159
5633
  r({ type: String })
6160
- ], f.prototype, "pattern", 2);
6161
- g([
5634
+ ], p.prototype, "pattern", 2);
5635
+ C([
6162
5636
  r({ type: Number })
6163
- ], f.prototype, "maxlength", 2);
6164
- g([
5637
+ ], p.prototype, "maxlength", 2);
5638
+ C([
6165
5639
  r({ reflect: !0 })
6166
- ], f.prototype, "width", 2);
6167
- g([
5640
+ ], p.prototype, "width", 2);
5641
+ C([
6168
5642
  r({ type: Number })
6169
- ], f.prototype, "step", 2);
6170
- g([
5643
+ ], p.prototype, "step", 2);
5644
+ C([
6171
5645
  r({ type: Number })
6172
- ], f.prototype, "min", 2);
6173
- g([
5646
+ ], p.prototype, "min", 2);
5647
+ C([
6174
5648
  r({ type: Number })
6175
- ], f.prototype, "max", 2);
6176
- g([
5649
+ ], p.prototype, "max", 2);
5650
+ C([
6177
5651
  r({ type: Boolean, reflect: !0 })
6178
- ], f.prototype, "showError", 2);
6179
- g([
5652
+ ], p.prototype, "showError", 2);
5653
+ C([
6180
5654
  r({ type: String })
6181
- ], f.prototype, "errorMessage", 2);
6182
- g([
5655
+ ], p.prototype, "errorMessage", 2);
5656
+ C([
6183
5657
  O()
6184
- ], f.prototype, "showPassword", 2);
6185
- let at = f;
6186
- customElements.get("nys-textinput") || customElements.define("nys-textinput", at);
6187
- const lt = u`
5658
+ ], p.prototype, "showPassword", 2);
5659
+ let We = p;
5660
+ customElements.get("nys-textinput") || customElements.define("nys-textinput", We);
5661
+ const Ke = g`
6188
5662
  :host {
6189
5663
  /* Global Toggle Styles */
6190
5664
  --_nys-toggle-width: var(--nys-font-size-8xl, 44px);
@@ -6461,14 +5935,14 @@ const lt = u`
6461
5935
  }
6462
5936
  }
6463
5937
  `;
6464
- var ct = Object.defineProperty, dt = Object.getOwnPropertyDescriptor, F = (a, e, t, o) => {
6465
- for (var s = o > 1 ? void 0 : o ? dt(e, t) : e, n = a.length - 1, i; n >= 0; n--)
6466
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
6467
- return o && s && ct(e, t, s), s;
5938
+ var Xe = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, N = (l, e, t, o) => {
5939
+ for (var s = o > 1 ? void 0 : o ? Qe(e, t) : e, n = l.length - 1, i; n >= 0; n--)
5940
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
5941
+ return o && s && Xe(e, t, s), s;
6468
5942
  };
6469
- let ht = 0;
5943
+ let Je = 0;
6470
5944
  var K;
6471
- const q = (K = class extends p {
5945
+ const U = (K = class extends u {
6472
5946
  // allows use of elementInternals' API
6473
5947
  constructor() {
6474
5948
  super(), this.id = "", this.name = "", this.value = "", this.checked = !1, this.disabled = !1, this.noIcon = !1, this.label = "", this.description = "", this._size = "md", this.form = "", this._internals = this.attachInternals();
@@ -6483,7 +5957,7 @@ const q = (K = class extends p {
6483
5957
  }
6484
5958
  // Generate a unique ID if one is not provided
6485
5959
  connectedCallback() {
6486
- super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${ht++}`);
5960
+ super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${Je++}`);
6487
5961
  }
6488
5962
  /********************** Form Integration **********************/
6489
5963
  // Update the internals whenever `checked` or `value` changes.
@@ -6516,7 +5990,7 @@ const q = (K = class extends p {
6516
5990
  !this.disabled && (e.key === " " || e.key === "Enter") && (e.preventDefault(), this.checked = !this.checked, this._emitChangeEvent());
6517
5991
  }
6518
5992
  render() {
6519
- return l`
5993
+ return a`
6520
5994
  <label class="nys-toggle">
6521
5995
  <div class="nys-toggle__content">
6522
5996
  <div class="nys-toggle__toggle">
@@ -6538,7 +6012,7 @@ const q = (K = class extends p {
6538
6012
  />
6539
6013
  <span class="slider">
6540
6014
  <div class="knob">
6541
- ${this.noIcon ? "" : l`<nys-icon
6015
+ ${this.noIcon ? "" : a`<nys-icon
6542
6016
  class="toggle-icon"
6543
6017
  name="${this.checked ? "check" : "close"}"
6544
6018
  size="2xl"
@@ -6554,40 +6028,40 @@ const q = (K = class extends p {
6554
6028
  </label>
6555
6029
  `;
6556
6030
  }
6557
- }, K.VALID_SIZES = ["sm", "md"], K.styles = lt, K.formAssociated = !0, K);
6558
- F([
6031
+ }, K.VALID_SIZES = ["sm", "md"], K.styles = Ke, K.formAssociated = !0, K);
6032
+ N([
6559
6033
  r({ type: String })
6560
- ], q.prototype, "id", 2);
6561
- F([
6034
+ ], U.prototype, "id", 2);
6035
+ N([
6562
6036
  r({ type: String, reflect: !0 })
6563
- ], q.prototype, "name", 2);
6564
- F([
6037
+ ], U.prototype, "name", 2);
6038
+ N([
6565
6039
  r({ type: String })
6566
- ], q.prototype, "value", 2);
6567
- F([
6040
+ ], U.prototype, "value", 2);
6041
+ N([
6568
6042
  r({ type: Boolean, reflect: !0 })
6569
- ], q.prototype, "checked", 2);
6570
- F([
6043
+ ], U.prototype, "checked", 2);
6044
+ N([
6571
6045
  r({ type: Boolean, reflect: !0 })
6572
- ], q.prototype, "disabled", 2);
6573
- F([
6046
+ ], U.prototype, "disabled", 2);
6047
+ N([
6574
6048
  r({ type: Boolean })
6575
- ], q.prototype, "noIcon", 2);
6576
- F([
6049
+ ], U.prototype, "noIcon", 2);
6050
+ N([
6577
6051
  r({ type: String })
6578
- ], q.prototype, "label", 2);
6579
- F([
6052
+ ], U.prototype, "label", 2);
6053
+ N([
6580
6054
  r({ type: String })
6581
- ], q.prototype, "description", 2);
6582
- F([
6055
+ ], U.prototype, "description", 2);
6056
+ N([
6583
6057
  r({ reflect: !0 })
6584
- ], q.prototype, "size", 1);
6585
- F([
6058
+ ], U.prototype, "size", 1);
6059
+ N([
6586
6060
  r({ type: String })
6587
- ], q.prototype, "form", 2);
6588
- let yt = q;
6589
- customElements.get("nys-toggle") || customElements.define("nys-toggle", yt);
6590
- const pt = u`
6061
+ ], U.prototype, "form", 2);
6062
+ let et = U;
6063
+ customElements.get("nys-toggle") || customElements.define("nys-toggle", et);
6064
+ const tt = g`
6591
6065
  :host {
6592
6066
  /* Global Tooltip Styles */
6593
6067
  --_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
@@ -6599,8 +6073,11 @@ const pt = u`
6599
6073
  --_nys-tooltip-lineheight: var(--nys-font-lineheight-ui-sm, 24px);
6600
6074
  }
6601
6075
 
6602
- .nys-tooltip__wrapper {
6076
+ .nys-tooltip__main {
6603
6077
  position: relative;
6078
+ }
6079
+
6080
+ .nys-tooltip__wrapper {
6604
6081
  width: fit-content;
6605
6082
  display: flex;
6606
6083
  cursor: pointer;
@@ -6612,8 +6089,7 @@ const pt = u`
6612
6089
 
6613
6090
  .nys-tooltip__content {
6614
6091
  position: absolute;
6615
- opacity: 0;
6616
- display: block;
6092
+ display: none;
6617
6093
  max-width: 400px;
6618
6094
  width: max-content;
6619
6095
  max-height: 120px;
@@ -6650,9 +6126,8 @@ const pt = u`
6650
6126
  no-repeat center;
6651
6127
  }
6652
6128
 
6653
- .nys-tooltip__wrapper:hover .nys-tooltip__content,
6654
6129
  .nys-tooltip__content[active] {
6655
- opacity: 1;
6130
+ display: block;
6656
6131
  }
6657
6132
 
6658
6133
  /* ===================== POSITIONING ===================== */
@@ -6732,16 +6207,16 @@ const pt = u`
6732
6207
  }
6733
6208
  }
6734
6209
  `;
6735
- var ut = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, b1 = (a, e, t, o) => {
6736
- for (var s = o > 1 ? void 0 : o ? ft(e, t) : e, n = a.length - 1, i; n >= 0; n--)
6737
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
6738
- return o && s && ut(e, t, s), s;
6210
+ var st = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, y1 = (l, e, t, o) => {
6211
+ for (var s = o > 1 ? void 0 : o ? ot(e, t) : e, n = l.length - 1, i; n >= 0; n--)
6212
+ (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
6213
+ return o && s && st(e, t, s), s;
6739
6214
  };
6740
- let gt = 0;
6741
- const I1 = class I1 extends p {
6215
+ let rt = 0;
6216
+ const D1 = class D1 extends u {
6742
6217
  /**************** Lifecycle Methods ****************/
6743
6218
  constructor() {
6744
- super(), this.id = "", this.text = "", this.inverted = !1, this._active = !1, this._userHasSetPosition = !1, this._originalUserPosition = null, this._internallyUpdatingPosition = !1, this._position = null, this._handleTooltipEnter = () => {
6219
+ super(), this.id = "", this.text = "", this.inverted = !1, this.focusable = !1, this._active = !1, this._userHasSetPosition = !1, this._originalUserPosition = null, this._internallyUpdatingPosition = !1, this._position = null, this._handleTooltipEnter = () => {
6745
6220
  if (this._active = !0, this._addScrollListeners(), this._userHasSetPosition && this._originalUserPosition && this._doesPositionFit(this._originalUserPosition)) {
6746
6221
  this.position = this._originalUserPosition, this.updateComplete.then(() => {
6747
6222
  var t;
@@ -6761,13 +6236,22 @@ const I1 = class I1 extends p {
6761
6236
  );
6762
6237
  e && this._resetTooltipPositioningStyles(e);
6763
6238
  }, this._handleScrollOrResize = () => {
6764
- this._active && (this._userHasSetPosition && this._originalUserPosition ? this._doesPositionFit(this._originalUserPosition) ? (this.position = this._originalUserPosition, this.updateComplete.then(() => {
6239
+ this._active && (this._userHasSetPosition && this._originalUserPosition ? this._doesPositionFit(this._originalUserPosition) ? (this._setInternalPosition(this._originalUserPosition), this.updateComplete.then(() => {
6765
6240
  var t;
6766
6241
  const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(
6767
6242
  ".nys-tooltip__content"
6768
6243
  );
6769
6244
  e && this._shiftTooltipIntoViewport(e);
6770
6245
  })) : this.autoPositionTooltip() : this.autoPositionTooltip());
6246
+ }, this._handleEscapeKey = (e) => {
6247
+ var t;
6248
+ if (e.key === "Escape" && this._active) {
6249
+ this._active = !1, this._removeScrollListeners();
6250
+ const o = (t = this.shadowRoot) == null ? void 0 : t.querySelector(
6251
+ ".nys-tooltip__content"
6252
+ );
6253
+ o && this._resetTooltipPositioningStyles(o);
6254
+ }
6771
6255
  };
6772
6256
  }
6773
6257
  get position() {
@@ -6778,7 +6262,24 @@ const I1 = class I1 extends p {
6778
6262
  this._position = e, this.requestUpdate("position", t), this._internallyUpdatingPosition || (this._userHasSetPosition = e !== null, this._originalUserPosition = e);
6779
6263
  }
6780
6264
  connectedCallback() {
6781
- super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${gt++}`);
6265
+ super.connectedCallback(), this.id || (this.id = `nys-tooltip-${Date.now()}-${rt++}`), window.addEventListener("keydown", this._handleEscapeKey);
6266
+ }
6267
+ disconnectedCallback() {
6268
+ super.disconnectedCallback(), window.removeEventListener("keydown", this._handleEscapeKey);
6269
+ }
6270
+ get _firstAssignedEl() {
6271
+ var t;
6272
+ const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("slot");
6273
+ return e == null ? void 0 : e.assignedElements({ flatten: !0 })[0];
6274
+ }
6275
+ firstUpdated() {
6276
+ const e = this._firstAssignedEl;
6277
+ e && this._applyFocusBehavior(e);
6278
+ }
6279
+ updated(e) {
6280
+ super.updated(e);
6281
+ const t = this._firstAssignedEl;
6282
+ t && e.has("text") && this._passAriaDescription(t);
6782
6283
  }
6783
6284
  // Listen to window scroll so a focus tooltip can auto position even when user move across the page
6784
6285
  _addScrollListeners() {
@@ -6788,10 +6289,24 @@ const I1 = class I1 extends p {
6788
6289
  window.removeEventListener("scroll", this._handleScrollOrResize, !0), window.removeEventListener("resize", this._handleScrollOrResize);
6789
6290
  }
6790
6291
  /******************** Functions ********************/
6292
+ // We need to pass `ariaDescription` to the nys-components so they can announce both their label and the tooltip's text
6293
+ _passAriaDescription(e) {
6294
+ e.tagName.toLowerCase().startsWith("nys-") && e.setAttribute("ariaDescription", this.text);
6295
+ }
6296
+ async _applyFocusBehavior(e) {
6297
+ var o;
6298
+ if (!this.focusable) return;
6299
+ if (e.tagName.toLowerCase() === "nys-icon") {
6300
+ "updateComplete" in e && await e.updateComplete;
6301
+ const s = (o = e.shadowRoot) == null ? void 0 : o.querySelector("svg");
6302
+ s && s.setAttribute("tabindex", "0");
6303
+ } else
6304
+ e.setAttribute("tabindex", "0");
6305
+ }
6791
6306
  // Checks if user's set position fit with current viewport (Does not account for overflow texts at this moment)
6792
6307
  _doesPositionFit(e) {
6793
- var b, k;
6794
- const t = (b = this.shadowRoot) == null ? void 0 : b.querySelector(".nys-tooltip__wrapper"), o = (k = this.shadowRoot) == null ? void 0 : k.querySelector(".nys-tooltip__content");
6308
+ var $, w;
6309
+ const t = ($ = this.shadowRoot) == null ? void 0 : $.querySelector(".nys-tooltip__wrapper"), o = (w = this.shadowRoot) == null ? void 0 : w.querySelector(".nys-tooltip__content");
6795
6310
  if (!t || !o || e == null) return;
6796
6311
  const s = t.getBoundingClientRect(), n = o.getBoundingClientRect(), i = 8, c = {
6797
6312
  top: s.top - i,
@@ -6808,35 +6323,38 @@ const I1 = class I1 extends p {
6808
6323
  }
6809
6324
  // Calculates the best placement based on available space (flips placement if it doesn't fit)
6810
6325
  async autoPositionTooltip() {
6811
- var f1, m1;
6812
- const e = (f1 = this.shadowRoot) == null ? void 0 : f1.querySelector(
6326
+ var $, w;
6327
+ const e = ($ = this.shadowRoot) == null ? void 0 : $.querySelector(
6813
6328
  ".nys-tooltip__wrapper"
6814
- ), t = (m1 = this.shadowRoot) == null ? void 0 : m1.querySelector(
6329
+ ), t = (w = this.shadowRoot) == null ? void 0 : w.querySelector(
6815
6330
  ".nys-tooltip__content"
6816
6331
  );
6817
6332
  if (!e || !t) return;
6818
- const o = e.getBoundingClientRect(), s = 8, n = this.position, i = {
6333
+ const o = e.getBoundingClientRect(), s = 8, n = {
6819
6334
  top: o.top - s,
6820
6335
  left: o.left - s,
6821
6336
  bottom: window.innerHeight - o.bottom - s,
6822
6337
  right: window.innerWidth - o.right - s
6823
- }, c = [
6338
+ };
6339
+ let i = [
6824
6340
  "top",
6825
6341
  "bottom",
6826
6342
  "right",
6827
6343
  "left"
6828
6344
  ];
6829
- let d = c;
6830
- n === "left" ? d = ["left", "right", "top", "bottom"] : n === "right" ? d = ["right", "left", "top", "bottom"] : n === "top" ? d = ["top", "bottom", "right", "left"] : n === "bottom" && (d = ["bottom", "top", "right", "left"]);
6831
- for (const Q of d)
6832
- if (this._doesPositionFit(Q)) {
6833
- this._setInternalPosition(Q), await this.updateComplete, this._shiftTooltipIntoViewport(t);
6345
+ if (this._userHasSetPosition && this._originalUserPosition) {
6346
+ const k = this._originalUserPosition;
6347
+ k === "left" ? i = ["left", "right", "top", "bottom"] : k === "right" ? i = ["right", "left", "top", "bottom"] : k === "top" ? i = ["top", "bottom", "right", "left"] : k === "bottom" && (i = ["bottom", "top", "right", "left"]);
6348
+ }
6349
+ for (const k of i)
6350
+ if (this._doesPositionFit(k)) {
6351
+ this._setInternalPosition(k), await this.updateComplete, this._shiftTooltipIntoViewport(t);
6834
6352
  return;
6835
6353
  }
6836
- let b = "top", k = i.top;
6837
- for (const Q of c)
6838
- i[Q] > k && (k = i[Q], b = Q);
6839
- this._setInternalPosition(b), await this.updateComplete, this._shiftTooltipIntoViewport(t);
6354
+ let c = "top", d = n.top;
6355
+ for (const k of i)
6356
+ n[k] > d && (d = n[k], c = k);
6357
+ this._setInternalPosition(c), await this.updateComplete, this._shiftTooltipIntoViewport(t);
6840
6358
  }
6841
6359
  // Sets flag to distinguish to position's setter that we are updating "position" prop internally
6842
6360
  _setInternalPosition(e) {
@@ -6844,34 +6362,35 @@ const I1 = class I1 extends p {
6844
6362
  }
6845
6363
  // Determines if text of tooltip over-extends outside of viewport edge and adjust tooltip for horizontal overflow
6846
6364
  _shiftTooltipIntoViewport(e) {
6847
- var k;
6848
- const t = e.getBoundingClientRect(), s = ((k = this.shadowRoot) == null ? void 0 : k.querySelector(
6365
+ var w;
6366
+ const t = e.getBoundingClientRect(), s = ((w = this.shadowRoot) == null ? void 0 : w.querySelector(
6849
6367
  ".nys-tooltip__wrapper"
6850
6368
  )).getBoundingClientRect(), n = s.left + s.width / 2, i = t.left < 0, c = t.right > window.innerWidth;
6851
6369
  this._resetTooltipPositioningStyles(e), i ? (e.style.left = "0px", e.style.transform = "none") : c && (e.style.right = "0px", e.style.left = "auto", e.style.transform = "none");
6852
- const d = e.getBoundingClientRect(), b = n - d.left;
6853
- e.style.setProperty("--arrow-offset-x", `${b}px`);
6370
+ const d = e.getBoundingClientRect(), $ = n - d.left;
6371
+ e.style.setProperty("--arrow-offset-x", `${$}px`);
6854
6372
  }
6855
- // Reposition tooltip back to original set position (e.g. top, left, bottom, right)
6373
+ // Reposition tooltip back to original set position (e.g. top, left, bottom, right) to avoid positioning issue base on last position
6856
6374
  _resetTooltipPositioningStyles(e) {
6857
6375
  e.style.left = "", e.style.right = "", e.style.transform = "";
6858
6376
  }
6859
6377
  render() {
6860
- var t;
6861
- const e = `${this.id}__tooltip`;
6862
- return l`
6863
- <div
6864
- class="nys-tooltip__wrapper"
6865
- @mouseenter=${this._handleTooltipEnter}
6866
- @mouseleave=${this._handleBlurOrMouseLeave}
6867
- @focusin=${this._handleTooltipEnter}
6868
- @focusout=${this._handleBlurOrMouseLeave}
6869
- >
6870
- <span class="nys-tooltip__trigger" aria-describedby=${e}>
6871
- <slot></slot>
6872
- </span>
6873
- ${(t = this.text) != null && t.trim() ? l`<div
6874
- id=${e}
6378
+ var e;
6379
+ return a`
6380
+ <div class="nys-tooltip__main">
6381
+ <div
6382
+ class="nys-tooltip__wrapper"
6383
+ @mouseenter=${this._handleTooltipEnter}
6384
+ @mouseleave=${this._handleBlurOrMouseLeave}
6385
+ @focusin=${this._handleTooltipEnter}
6386
+ @focusout=${this._handleBlurOrMouseLeave}
6387
+ >
6388
+ <span class="nys-tooltip__trigger">
6389
+ <slot></slot>
6390
+ </span>
6391
+ </div>
6392
+ ${(e = this.text) != null && e.trim() ? a`<div
6393
+ id=${this.id}
6875
6394
  class="nys-tooltip__content"
6876
6395
  role="tooltip"
6877
6396
  aria-hidden=${!this._active}
@@ -6884,25 +6403,28 @@ const I1 = class I1 extends p {
6884
6403
  `;
6885
6404
  }
6886
6405
  };
6887
- I1.styles = pt;
6888
- let o1 = I1;
6889
- b1([
6406
+ D1.styles = tt;
6407
+ let X = D1;
6408
+ y1([
6890
6409
  r({ type: String })
6891
- ], o1.prototype, "id", 2);
6892
- b1([
6410
+ ], X.prototype, "id", 2);
6411
+ y1([
6893
6412
  r({ type: String })
6894
- ], o1.prototype, "text", 2);
6895
- b1([
6413
+ ], X.prototype, "text", 2);
6414
+ y1([
6896
6415
  r({ type: Boolean, reflect: !0 })
6897
- ], o1.prototype, "inverted", 2);
6898
- b1([
6416
+ ], X.prototype, "inverted", 2);
6417
+ y1([
6418
+ r({ type: Boolean, reflect: !0 })
6419
+ ], X.prototype, "focusable", 2);
6420
+ y1([
6899
6421
  O()
6900
- ], o1.prototype, "_active", 2);
6901
- b1([
6422
+ ], X.prototype, "_active", 2);
6423
+ y1([
6902
6424
  r({ type: String, reflect: !0 })
6903
- ], o1.prototype, "position", 1);
6904
- customElements.get("nys-tooltip") || customElements.define("nys-tooltip", o1);
6905
- const vt = u`
6425
+ ], X.prototype, "position", 1);
6426
+ customElements.get("nys-tooltip") || customElements.define("nys-tooltip", X);
6427
+ const nt = g`
6906
6428
  :host {
6907
6429
  /* Global Unav Header Styles */
6908
6430
  --_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
@@ -7249,7 +6771,7 @@ const vt = u`
7249
6771
  display: none;
7250
6772
  }
7251
6773
  }
7252
- `, Ct = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
6774
+ `, it = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
7253
6775
  <path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="#457AA5"/>
7254
6776
  <path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="#457AA5"/>
7255
6777
  <path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="#457AA5"/>
@@ -7266,12 +6788,12 @@ const vt = u`
7266
6788
  <path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="#154973"/>
7267
6789
  <path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="#154973"/>
7268
6790
  </svg>`;
7269
- var bt = Object.defineProperty, c1 = (a, e, t, o) => {
7270
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
7271
- (i = a[n]) && (s = i(e, t, s) || s);
7272
- return s && bt(e, t, s), s;
6791
+ var at = Object.defineProperty, l1 = (l, e, t, o) => {
6792
+ for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
6793
+ (i = l[n]) && (s = i(e, t, s) || s);
6794
+ return s && at(e, t, s), s;
7273
6795
  };
7274
- const B1 = class B1 extends p {
6796
+ const V1 = class V1 extends u {
7275
6797
  constructor() {
7276
6798
  super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
7277
6799
  ["English", ""],
@@ -7291,7 +6813,7 @@ const B1 = class B1 extends p {
7291
6813
  ];
7292
6814
  }
7293
6815
  _getNysLogo() {
7294
- return new DOMParser().parseFromString(Ct, "image/svg+xml").documentElement;
6816
+ return new DOMParser().parseFromString(it, "image/svg+xml").documentElement;
7295
6817
  }
7296
6818
  _toggleTrustbar() {
7297
6819
  this.trustbarVisible = !this.trustbarVisible, this.trustbarVisible && (this.languageVisible = !1, this.searchDropdownVisible = !1);
@@ -7332,7 +6854,7 @@ const B1 = class B1 extends p {
7332
6854
  super.disconnectedCallback();
7333
6855
  }
7334
6856
  render() {
7335
- return l`
6857
+ return a`
7336
6858
  <header class="nys-unavheader">
7337
6859
  <div class="nys-unavheader__trustbarwrapper">
7338
6860
  <div
@@ -7430,7 +6952,7 @@ const B1 = class B1 extends p {
7430
6952
  </div>
7431
6953
  </div>
7432
6954
  <div class="nys-unavheader__right">
7433
- ${this.hideTranslate ? null : l`<div class="nys-unavheader__translatewrapper">
6955
+ ${this.hideTranslate ? null : a`<div class="nys-unavheader__translatewrapper">
7434
6956
  <div
7435
6957
  class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
7436
6958
  >
@@ -7450,7 +6972,7 @@ const B1 = class B1 extends p {
7450
6972
  ></nys-icon>
7451
6973
  </nys-button>
7452
6974
  </div>
7453
- ${this.isSearchFocused ? null : l`<div class="nys-unavheader--lg nys-unavheader--xl">
6975
+ ${this.isSearchFocused ? null : a`<div class="nys-unavheader--lg nys-unavheader--xl">
7454
6976
  <nys-button
7455
6977
  variant="ghost"
7456
6978
  label="Translate"
@@ -7465,7 +6987,7 @@ const B1 = class B1 extends p {
7465
6987
  class="nys-unavheader__languagelist ${this.languageVisible ? "show" : "hide"}"
7466
6988
  >
7467
6989
  ${this.languages.map(
7468
- ([e, t]) => l`<a
6990
+ ([e, t]) => a`<a
7469
6991
  class="nys-unavheader__languagelink"
7470
6992
  target="_self"
7471
6993
  href="https://${t ? t + "." : ""}${window.location.hostname}"
@@ -7474,7 +6996,7 @@ const B1 = class B1 extends p {
7474
6996
  )}
7475
6997
  </div>
7476
6998
  </div>`}
7477
- ${this.hideSearch ? null : l` <div
6999
+ ${this.hideSearch ? null : a` <div
7478
7000
  class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
7479
7001
  >
7480
7002
  <nys-button
@@ -7507,6 +7029,7 @@ const B1 = class B1 extends p {
7507
7029
  slot="endButton"
7508
7030
  type="submit"
7509
7031
  prefixIcon="search"
7032
+ ariaLabel="Search"
7510
7033
  .onClick="${() => this._handleSearchButton(
7511
7034
  "nys-unavheader__searchbar"
7512
7035
  )}"
@@ -7533,6 +7056,7 @@ const B1 = class B1 extends p {
7533
7056
  slot="endButton"
7534
7057
  type="submit"
7535
7058
  prefixIcon="search"
7059
+ ariaLabel="Search"
7536
7060
  .onClick="${() => this._handleSearchButton(
7537
7061
  "nys-unavheader__searchbardropdown"
7538
7062
  )}"
@@ -7544,31 +7068,31 @@ const B1 = class B1 extends p {
7544
7068
  `;
7545
7069
  }
7546
7070
  };
7547
- B1.styles = vt;
7548
- let U = B1;
7549
- c1([
7071
+ V1.styles = nt;
7072
+ let P = V1;
7073
+ l1([
7550
7074
  r({ type: Boolean })
7551
- ], U.prototype, "trustbarVisible");
7552
- c1([
7075
+ ], P.prototype, "trustbarVisible");
7076
+ l1([
7553
7077
  r({ type: Boolean })
7554
- ], U.prototype, "searchDropdownVisible");
7555
- c1([
7078
+ ], P.prototype, "searchDropdownVisible");
7079
+ l1([
7556
7080
  r({ type: Boolean })
7557
- ], U.prototype, "languageVisible");
7558
- c1([
7081
+ ], P.prototype, "languageVisible");
7082
+ l1([
7559
7083
  r({ type: Boolean })
7560
- ], U.prototype, "isSearchFocused");
7561
- c1([
7084
+ ], P.prototype, "isSearchFocused");
7085
+ l1([
7562
7086
  r({ type: Boolean })
7563
- ], U.prototype, "hideTranslate");
7564
- c1([
7087
+ ], P.prototype, "hideTranslate");
7088
+ l1([
7565
7089
  r({ type: Boolean })
7566
- ], U.prototype, "hideSearch");
7567
- c1([
7090
+ ], P.prototype, "hideSearch");
7091
+ l1([
7568
7092
  r({ type: String, reflect: !0 })
7569
- ], U.prototype, "languages");
7570
- customElements.get("nys-unavheader") || customElements.define("nys-unavheader", U);
7571
- const _t = u`
7093
+ ], P.prototype, "languages");
7094
+ customElements.get("nys-unavheader") || customElements.define("nys-unavheader", P);
7095
+ const lt = g`
7572
7096
  :host {
7573
7097
  /* Global Header Styles */
7574
7098
  --_nys-globalheader-text-color: var(
@@ -7849,12 +7373,12 @@ const _t = u`
7849
7373
  }
7850
7374
  }
7851
7375
  `;
7852
- var mt = Object.defineProperty, _1 = (a, e, t, o) => {
7853
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
7854
- (i = a[n]) && (s = i(e, t, s) || s);
7855
- return s && mt(e, t, s), s;
7376
+ var ct = Object.defineProperty, g1 = (l, e, t, o) => {
7377
+ for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
7378
+ (i = l[n]) && (s = i(e, t, s) || s);
7379
+ return s && ct(e, t, s), s;
7856
7380
  };
7857
- const q1 = class q1 extends p {
7381
+ const M1 = class M1 extends u {
7858
7382
  constructor() {
7859
7383
  super(...arguments), this.appName = "", this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0, this.isMobileMenuOpen = !1;
7860
7384
  }
@@ -7879,10 +7403,10 @@ const q1 = class q1 extends p {
7879
7403
  );
7880
7404
  o && s && (o.innerHTML = "", s.innerHTML = "", t.forEach((d) => {
7881
7405
  if (d.nodeType === Node.ELEMENT_NODE) {
7882
- const b = d.cloneNode(!0), k = d.cloneNode(!0);
7883
- ["script", "iframe", "object", "embed, img"].forEach((m1) => {
7884
- b.querySelectorAll(m1).forEach((Q) => Q.remove());
7885
- }), o.appendChild(b), s.appendChild(k), d.remove();
7406
+ const $ = d.cloneNode(!0), w = d.cloneNode(!0);
7407
+ ["script", "iframe", "object", "embed, img"].forEach((A1) => {
7408
+ $.querySelectorAll(A1).forEach((B1) => B1.remove());
7409
+ }), o.appendChild($), s.appendChild(w), d.remove();
7886
7410
  }
7887
7411
  }));
7888
7412
  }
@@ -7891,10 +7415,10 @@ const q1 = class q1 extends p {
7891
7415
  }
7892
7416
  render() {
7893
7417
  var e, t, o, s, n, i, c, d;
7894
- return l`
7418
+ return a`
7895
7419
  <header class="nys-globalheader">
7896
7420
  <div class="nys-globalheader__main-container">
7897
- ${this.slotHasContent ? l` <div class="nys-globalheader__button-container">
7421
+ ${this.slotHasContent ? a` <div class="nys-globalheader__button-container">
7898
7422
  <button
7899
7423
  class="nys-globalheader__mobile-menu-button"
7900
7424
  @click="${this._toggleMobileMenu}"
@@ -7909,37 +7433,37 @@ const q1 = class q1 extends p {
7909
7433
  >
7910
7434
  </button>
7911
7435
  </div>` : ""}
7912
- ${(e = this.homepageLink) != null && e.trim() ? l`<a
7436
+ ${(e = this.homepageLink) != null && e.trim() ? a`<a
7913
7437
  class="nys-globalheader__name-container-link"
7914
7438
  href=${(n = this.homepageLink) == null ? void 0 : n.trim()}
7915
7439
  >
7916
7440
  <div class="nys-globalheader__name-container">
7917
- ${((i = this.appName) == null ? void 0 : i.trim().length) > 0 ? l`<div
7441
+ ${((i = this.appName) == null ? void 0 : i.trim().length) > 0 ? a`<div
7918
7442
  class="nys-globalheader__appName nys-globalheader__name"
7919
7443
  >
7920
7444
  ${this.appName}
7921
7445
  </div> ` : ""}
7922
- ${((c = this.agencyName) == null ? void 0 : c.trim().length) > 0 ? l`<div
7446
+ ${((c = this.agencyName) == null ? void 0 : c.trim().length) > 0 ? a`<div
7923
7447
  class="nys-globalheader__agencyName nys-globalheader__name ${((d = this.appName) == null ? void 0 : d.trim().length) > 0 ? "" : "main"}"
7924
7448
  >
7925
7449
  ${this.agencyName}
7926
7450
  </div> ` : ""}
7927
7451
  </div>
7928
- </a>` : l`
7452
+ </a>` : a`
7929
7453
  <div class="nys-globalheader__name-container">
7930
- ${((t = this.appName) == null ? void 0 : t.trim().length) > 0 ? l`<div
7454
+ ${((t = this.appName) == null ? void 0 : t.trim().length) > 0 ? a`<div
7931
7455
  class="nys-globalheader__appName nys-globalheader__name"
7932
7456
  >
7933
7457
  ${this.appName}
7934
7458
  </div> ` : ""}
7935
- ${((o = this.agencyName) == null ? void 0 : o.trim().length) > 0 ? l`<div
7459
+ ${((o = this.agencyName) == null ? void 0 : o.trim().length) > 0 ? a`<div
7936
7460
  class="nys-globalheader__agencyName nys-globalheader__name ${((s = this.appName) == null ? void 0 : s.trim().length) > 0 ? "" : "main"}"
7937
7461
  >
7938
7462
  ${this.agencyName}
7939
7463
  </div> ` : ""}
7940
7464
  </div>
7941
7465
  `}
7942
- ${this.slotHasContent ? l`<div class="nys-globalheader__content">
7466
+ ${this.slotHasContent ? a`<div class="nys-globalheader__content">
7943
7467
  <slot
7944
7468
  style="display: hidden"
7945
7469
  @slotchange="${this._handleSlotChange}"
@@ -7953,25 +7477,25 @@ const q1 = class q1 extends p {
7953
7477
  `;
7954
7478
  }
7955
7479
  };
7956
- q1.styles = _t;
7957
- let r1 = q1;
7958
- _1([
7480
+ M1.styles = lt;
7481
+ let s1 = M1;
7482
+ g1([
7959
7483
  r({ type: String })
7960
- ], r1.prototype, "appName");
7961
- _1([
7484
+ ], s1.prototype, "appName");
7485
+ g1([
7962
7486
  r({ type: String })
7963
- ], r1.prototype, "agencyName");
7964
- _1([
7487
+ ], s1.prototype, "agencyName");
7488
+ g1([
7965
7489
  r({ type: String })
7966
- ], r1.prototype, "homepageLink");
7967
- _1([
7490
+ ], s1.prototype, "homepageLink");
7491
+ g1([
7968
7492
  O()
7969
- ], r1.prototype, "slotHasContent");
7970
- _1([
7493
+ ], s1.prototype, "slotHasContent");
7494
+ g1([
7971
7495
  O()
7972
- ], r1.prototype, "isMobileMenuOpen");
7973
- customElements.get("nys-globalheader") || customElements.define("nys-globalheader", r1);
7974
- const xt = u`
7496
+ ], s1.prototype, "isMobileMenuOpen");
7497
+ customElements.get("nys-globalheader") || customElements.define("nys-globalheader", s1);
7498
+ const dt = g`
7975
7499
  :host {
7976
7500
  /* Global Footer Styles */
7977
7501
  --_nys-globalfooter-text-color: var(
@@ -8127,12 +7651,12 @@ const xt = u`
8127
7651
  }
8128
7652
  }
8129
7653
  `;
8130
- var wt = Object.defineProperty, z1 = (a, e, t, o) => {
8131
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
8132
- (i = a[n]) && (s = i(e, t, s) || s);
8133
- return s && wt(e, t, s), s;
7654
+ var ht = Object.defineProperty, w1 = (l, e, t, o) => {
7655
+ for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
7656
+ (i = l[n]) && (s = i(e, t, s) || s);
7657
+ return s && ht(e, t, s), s;
8134
7658
  };
8135
- const U1 = class U1 extends p {
7659
+ const z1 = class z1 extends u {
8136
7660
  constructor() {
8137
7661
  super(...arguments), this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0;
8138
7662
  }
@@ -8158,21 +7682,21 @@ const U1 = class U1 extends p {
8158
7682
  o && (o.classList.toggle("columns", s), o.classList.toggle("small", !s), o.innerHTML = "", t.forEach((c) => {
8159
7683
  if (c.nodeType === Node.ELEMENT_NODE) {
8160
7684
  const d = c.cloneNode(!0);
8161
- ["script", "iframe", "object", "embed", "img"].forEach((k) => {
8162
- d.querySelectorAll(k).forEach((f1) => f1.remove());
7685
+ ["script", "iframe", "object", "embed", "img"].forEach((w) => {
7686
+ d.querySelectorAll(w).forEach((k) => k.remove());
8163
7687
  }), o.appendChild(d), c.remove();
8164
7688
  }
8165
7689
  }));
8166
7690
  }
8167
7691
  render() {
8168
7692
  var e, t;
8169
- return l`
7693
+ return a`
8170
7694
  <footer class="nys-globalfooter">
8171
7695
  <div class="nys-globalfooter__main-container">
8172
- ${(e = this.homepageLink) != null && e.trim() ? l`<a href=${(t = this.homepageLink) == null ? void 0 : t.trim()}>
7696
+ ${(e = this.homepageLink) != null && e.trim() ? a`<a href=${(t = this.homepageLink) == null ? void 0 : t.trim()}>
8173
7697
  <p class="nys-globalfooter__name">${this.agencyName}</p>
8174
- </a>` : l`<p class="nys-globalfooter__name">${this.agencyName}</p>`}
8175
- ${this.slotHasContent ? l`<div class="nys-globalfooter__content">
7698
+ </a>` : a`<p class="nys-globalfooter__name">${this.agencyName}</p>`}
7699
+ ${this.slotHasContent ? a`<div class="nys-globalfooter__content">
8176
7700
  <slot
8177
7701
  style="display: hidden"
8178
7702
  @slotchange="${this._handleSlotChange}"
@@ -8183,19 +7707,19 @@ const U1 = class U1 extends p {
8183
7707
  `;
8184
7708
  }
8185
7709
  };
8186
- U1.styles = xt;
8187
- let y1 = U1;
8188
- z1([
7710
+ z1.styles = dt;
7711
+ let h1 = z1;
7712
+ w1([
8189
7713
  r({ type: String })
8190
- ], y1.prototype, "agencyName");
8191
- z1([
7714
+ ], h1.prototype, "agencyName");
7715
+ w1([
8192
7716
  r({ type: String })
8193
- ], y1.prototype, "homepageLink");
8194
- z1([
7717
+ ], h1.prototype, "homepageLink");
7718
+ w1([
8195
7719
  O()
8196
- ], y1.prototype, "slotHasContent");
8197
- customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", y1);
8198
- const kt = u`
7720
+ ], h1.prototype, "slotHasContent");
7721
+ customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", h1);
7722
+ const yt = g`
8199
7723
  :host {
8200
7724
  /* Global Footer Styles */
8201
7725
  --_nys-unavfooter-link-color: var(
@@ -8351,7 +7875,7 @@ const kt = u`
8351
7875
  --_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
8352
7876
  }
8353
7877
  }
8354
- `, Lt = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
7878
+ `, ut = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
8355
7879
  <path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="white"/>
8356
7880
  <path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="white"/>
8357
7881
  <path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="white"/>
@@ -8367,13 +7891,13 @@ const kt = u`
8367
7891
  <path d="M51.7107 54.9999C51.577 54.9999 51.4335 54.974 51.2939 54.8965C51.085 54.7803 50.9395 54.5876 50.8858 54.3551C50.8233 54.0868 50.8936 53.7868 51.082 53.5116L51.1426 53.4202C51.2041 53.3268 51.2685 53.2354 51.3407 53.1519C51.4218 53.0595 51.5047 52.995 51.5741 52.9493C51.5243 52.6691 51.5418 52.4267 51.5682 52.2061C51.5877 52.0233 51.6346 51.8683 51.6726 51.7451C51.6892 51.6925 51.7058 51.6388 51.7185 51.5812C51.8201 51.145 51.8855 50.7397 51.9206 50.3453C51.9528 49.9916 51.947 49.9846 51.8864 49.9061C51.7 49.6707 51.3847 49.5018 51.0498 49.3229C50.8878 49.2365 50.7286 49.1491 50.5754 49.0557C49.607 48.4536 48.6376 47.8505 47.6701 47.2465L47.3294 47.0339C47.2513 46.9862 47.1147 46.9156 46.9516 46.8282C45.8817 46.2659 45.172 45.8526 45.0539 45.2595C45.0363 45.173 44.9465 44.9644 44.884 44.864C44.8411 44.8611 44.7307 44.8521 44.6546 44.8471C44.3032 44.8183 43.7711 44.7726 43.3484 44.3196C43.2635 44.2272 43.1786 44.1408 43.1005 44.0583C42.5098 43.4443 42.0003 42.9148 41.9329 41.5993C41.9241 41.4275 41.9251 41.2506 41.928 41.0728C41.9339 40.5283 41.927 40.1836 41.7103 39.962C41.6078 39.8567 41.435 39.7862 41.2349 39.7037C40.9889 39.6034 40.7097 39.4881 40.45 39.2686C40.37 39.2 40.2792 39.1007 40.1776 38.9854C40.0712 38.8602 39.9082 38.6724 39.7969 38.6337C38.974 38.3436 37.986 38.3178 36.96 38.3178L3.07245 38.2909C2.85964 38.2909 2.66927 38.3138 2.48477 38.3347C2.07378 38.3823 1.60812 38.437 1.2313 38.0962C0.866192 37.7664 0.815429 37.2607 0.814452 36.8076L0.8125 34.3993C0.8125 34.2722 0.847644 34.147 0.913051 34.0387C1.22544 33.529 1.83265 33.2558 2.3686 33.0144C2.56872 32.924 2.77666 32.8316 2.88795 32.7571C3.17593 32.5623 3.43561 32.302 3.7109 32.0248C3.91688 31.8182 4.13068 31.6046 4.36887 31.4059C4.69786 31.1317 5.07078 30.931 5.43296 30.7372C5.74535 30.5703 6.03821 30.4124 6.24127 30.2395C6.38575 30.1173 6.49216 29.9146 6.61906 29.6792C6.75476 29.4238 6.90998 29.1337 7.15208 28.8804C7.41273 28.6081 7.7427 28.4194 8.03263 28.2535C8.69744 27.871 8.68182 27.8322 8.57736 27.5769C8.52855 27.4577 8.48072 27.3553 8.43972 27.2639C8.24447 26.8357 8.07754 26.4681 8.19078 25.7051C8.2025 25.6306 8.21616 25.5521 8.22983 25.4706C8.25619 25.3325 8.30305 25.0772 8.27571 25.0037C8.27571 25.0037 8.26204 24.9927 8.23471 24.9778C8.21128 24.9659 8.12928 24.9669 8.06875 24.9679C7.87448 24.9659 7.51914 24.9768 7.2497 24.6689C6.98124 24.3629 6.99686 23.9555 7.03982 23.6356C7.08179 23.3127 7.06032 23.1051 7.03982 22.9223C6.95684 22.1453 7.21358 21.7817 8.10097 21.424C10.7524 20.351 12.901 19.9884 14.8613 20.2805C14.9775 20.2974 15.1356 20.2656 15.3182 20.2269C15.5944 20.1702 15.9351 20.1017 16.312 20.1752L18.3952 20.5766C19.2475 20.7415 19.6653 20.9054 20.3047 21.4995C20.6327 21.8046 20.7655 21.7718 21.3327 21.5661C21.6168 21.4638 21.9399 21.3485 22.3323 21.2949C22.9727 21.2084 23.5731 21.2661 24.153 21.3227C24.4136 21.3475 24.6762 21.3734 24.9408 21.3843C25.2356 21.3952 25.6085 21.2561 25.9717 21.121C26.1318 21.0614 26.2889 21.0028 26.4412 20.9541C26.78 20.8468 27.0973 20.7991 27.4038 20.7514C27.5551 20.7266 27.7064 20.7037 27.8607 20.6729C27.8714 20.6531 27.8821 20.6332 27.8939 20.6113C27.9417 20.5249 27.9944 20.4345 28.0598 20.3411C28.3419 19.9497 28.7471 19.7003 29.0722 19.4966L29.2078 19.4122C29.5564 19.1916 29.8629 18.9879 30.105 18.7386C30.5423 18.2796 31.1232 18.3114 31.5108 18.3312C31.6455 18.3392 31.8495 18.3481 31.91 18.3223C32.1678 18.207 31.9413 17.3993 31.8065 16.9165C31.7119 16.5777 31.6299 16.2846 31.6133 16.0183C31.5664 15.2642 31.9764 14.7317 32.3064 14.3045C32.5651 13.9687 32.7213 13.7481 32.7164 13.5355C32.7164 13.4948 32.7027 13.4382 32.6851 13.3845C32.4587 13.4948 32.0955 13.6369 31.6796 13.4421C31.0129 13.1302 30.6468 12.0264 30.8508 11.3985C31.0197 10.8779 31.54 10.5421 31.9198 10.2957L32.0565 10.2053C32.3806 9.98471 32.7242 9.79792 33.0542 9.6181C33.5159 9.36873 33.9513 9.13227 34.2949 8.82726C34.4404 8.69711 34.5761 8.56994 34.7089 8.44376C35.0076 8.1626 35.3161 7.8715 35.6792 7.61319C35.7056 7.5188 35.728 7.34096 35.7437 7.22571C35.7729 7.00714 35.8022 6.78062 35.8803 6.5849C36.2513 5.64304 37.1592 4.90884 37.9597 4.25908C38.2252 4.04448 38.4771 3.84081 38.6743 3.65602C38.7992 3.53878 38.9222 3.42055 39.0452 3.30332C39.6388 2.73701 40.2509 2.15084 40.9967 1.68289C41.601 1.30536 42.3898 0.833439 43.1249 0.552274C44.0972 0.1807 44.5579 0.208518 45.4766 0.262168L45.6474 0.27111C47.3607 0.371455 49.1384 0.32476 50.8575 0.281045C51.7205 0.258194 52.5796 0.235343 53.4347 0.230376C53.6651 0.230376 54.0156 0.185667 54.3836 0.138972C55.6078 -0.0140291 56.994 -0.188888 57.7818 0.503592C58.1118 0.792705 58.2924 1.19806 58.3031 1.67594C58.311 2.05248 58.1567 2.33464 58.0435 2.54129C58.0064 2.60686 57.9527 2.7082 57.9458 2.74297C57.9488 2.73205 57.9849 2.78768 58.0103 2.82742C58.1362 3.01718 58.3686 3.37088 58.2748 3.89843C58.2397 4.10111 58.1811 4.3167 58.1216 4.53528C58.0464 4.81147 57.9693 5.09761 57.9624 5.31419C57.9498 5.69073 57.6335 5.99376 57.2703 5.97289C56.9013 5.95998 56.6104 5.64603 56.6231 5.26849C56.6367 4.89195 56.7392 4.50944 56.831 4.17264C56.8788 3.9948 56.9276 3.82094 56.9569 3.65502C56.9481 3.65502 56.9218 3.62323 56.8993 3.58746C56.791 3.42254 56.6065 3.14535 56.6065 2.73701C56.6065 2.36345 56.7607 2.08328 56.873 1.87862C56.9072 1.81702 56.9589 1.72462 56.9657 1.69084C56.9608 1.58354 56.9267 1.55274 56.9072 1.53685C56.5694 1.23979 55.2544 1.40372 54.5496 1.49313C54.1386 1.5438 53.752 1.59348 53.4435 1.59547C52.5971 1.60043 51.7439 1.62229 50.8907 1.64315C49.1442 1.68886 47.3382 1.73654 45.5722 1.63421L45.3985 1.62328C44.5345 1.57162 44.3022 1.55871 43.5964 1.82894C42.9618 2.07235 42.2101 2.5244 41.7006 2.84431C41.0699 3.23973 40.533 3.75338 39.9648 4.29683C39.8379 4.41804 39.712 4.53925 39.5831 4.65947C39.3479 4.87804 39.0794 5.09661 38.7953 5.32611C38.1237 5.87056 37.3642 6.48555 37.1231 7.09457C37.1065 7.14425 37.085 7.30221 37.0713 7.40753C37.0147 7.84666 36.9424 8.3931 36.5041 8.69016C36.1927 8.90277 35.9145 9.16704 35.6187 9.44523C35.4771 9.57935 35.3317 9.71546 35.1774 9.85257C34.7186 10.2629 34.1924 10.548 33.6838 10.8222C33.3675 10.9931 33.0698 11.1541 32.8033 11.3369C32.7554 11.3707 32.6978 11.4064 32.6373 11.4462C32.5114 11.5276 32.2332 11.7065 32.1346 11.8217C32.1424 11.8992 32.1726 12.0115 32.2117 12.1009C32.3757 12.0214 32.6041 11.924 32.8804 11.9459C33.6633 12.0135 34.0401 12.8937 34.0558 13.4988C34.0743 14.2191 33.677 14.7337 33.3587 15.145C33.0971 15.4868 32.9351 15.7074 32.9487 15.9319C32.9565 16.0511 33.0288 16.3114 33.0932 16.5419C33.3314 17.3933 33.7746 18.978 32.4479 19.5701C32.0965 19.7281 31.7314 19.7082 31.4375 19.6933C31.3126 19.6864 31.1046 19.6764 31.047 19.7023C30.7171 20.051 30.3227 20.3113 29.9166 20.5706L29.7692 20.663C29.5212 20.816 29.2654 20.976 29.1405 21.1488C29.1083 21.1935 29.0819 21.2412 29.0585 21.2859C28.9345 21.5085 28.7256 21.884 28.174 21.9993C27.9827 22.04 27.7943 22.0708 27.6059 22.0996C27.3364 22.1414 27.0807 22.1811 26.8386 22.2566C26.7087 22.2993 26.5711 22.35 26.4334 22.4017C25.9697 22.5745 25.4435 22.7732 24.8871 22.7474C24.5981 22.7355 24.3131 22.7087 24.027 22.6808C23.4989 22.6282 22.9981 22.5805 22.511 22.6481C22.2572 22.6828 22.0258 22.7653 21.7817 22.8537C21.1716 23.0733 20.3369 23.3733 19.4046 22.508C18.9927 22.1265 18.8267 22.049 18.1473 21.9178L16.065 21.5164C15.942 21.4936 15.775 21.5264 15.5818 21.5651C15.3289 21.6168 15.0136 21.6784 14.6719 21.6297C12.9508 21.3724 11.0218 21.7112 8.59689 22.6928C8.49829 22.7325 8.42703 22.7643 8.37431 22.7891C8.39579 22.9779 8.42312 23.2491 8.39091 23.6217C8.53343 23.6416 8.69353 23.6843 8.86047 23.7737C9.81228 24.2834 9.63461 25.256 9.5487 25.724C9.53601 25.7876 9.52528 25.8511 9.51551 25.9127C9.4628 26.2694 9.49501 26.3429 9.65511 26.6917C9.70392 26.798 9.75664 26.9162 9.81326 27.0543C10.3941 28.4681 9.28415 29.1039 8.68865 29.4447C8.46705 29.5719 8.23764 29.701 8.11268 29.8331C7.99944 29.9524 7.89987 30.1372 7.79541 30.3329C7.62945 30.6448 7.44104 30.9975 7.10522 31.2847C6.79088 31.5529 6.41894 31.7536 6.05871 31.9454C5.74144 32.1153 5.44077 32.2762 5.21623 32.464C5.02782 32.6219 4.84527 32.8048 4.65295 32.9985C4.34252 33.3085 4.02524 33.6294 3.62499 33.8976C3.41901 34.0347 3.17203 34.147 2.9104 34.2652C2.69661 34.3606 2.33443 34.5225 2.14992 34.6626L2.15383 36.8096C2.15383 36.8881 2.15578 36.9527 2.15871 37.0023C2.21533 36.9974 2.27586 36.9904 2.32662 36.9835C2.5287 36.9606 2.77959 36.9308 3.06952 36.9308L36.9581 36.9566C38.0573 36.9566 39.2141 36.9884 40.2304 37.3471C40.6755 37.5021 40.9801 37.8538 41.1812 38.0853C41.2281 38.1399 41.2681 38.1896 41.3052 38.2234C41.4018 38.3048 41.5551 38.3674 41.7328 38.441C42.0129 38.5562 42.3615 38.7003 42.6572 39.0043C43.2811 39.6411 43.2713 40.4469 43.2645 41.0927C43.2606 41.2417 43.2606 41.3897 43.2664 41.5328C43.3084 42.3326 43.5261 42.5581 44.0532 43.1055C44.1372 43.1929 44.2251 43.2853 44.3188 43.3847C44.3842 43.4542 44.5287 43.4701 44.761 43.491C45.0412 43.5138 45.3897 43.5417 45.6953 43.7751C46.0291 44.0275 46.2546 44.5888 46.3376 44.8809C46.5455 45.0846 47.2777 45.4711 47.5647 45.6211C47.7639 45.7264 47.9298 45.8158 48.0265 45.8754L48.3672 46.088C49.3346 46.6891 50.3011 47.2922 51.2705 47.8943C51.3993 47.9727 51.533 48.0463 51.6707 48.1188C52.0924 48.3443 52.5698 48.6006 52.9291 49.0567C53.3215 49.5544 53.2942 50.0045 53.259 50.4029C53.3156 50.2936 53.3781 50.1893 53.4513 50.0879C53.5841 49.8982 53.7393 49.7541 53.877 49.626C54.0136 49.4998 54.1073 49.4104 54.1396 49.3388C54.1132 49.2772 54.0527 49.1739 54.0117 49.1034C53.8487 48.8232 53.6271 48.4387 53.7315 47.9857C53.7725 47.8108 53.8789 47.6588 54.0283 47.5634C54.0849 47.5276 54.205 47.4591 54.3631 47.3717C54.5818 47.2495 55.1373 46.9405 55.475 46.71C54.9723 45.5913 55.1392 44.2163 55.2886 42.9843C55.3345 42.6038 55.3784 42.2451 55.3989 41.9222C55.4204 41.5467 55.7337 41.2606 56.1076 41.2834C56.4776 41.3063 56.7588 41.6301 56.7353 42.0057C56.7148 42.3693 56.667 42.7498 56.6182 43.1522C56.4776 44.3166 56.3165 45.637 56.833 46.3911C56.954 46.5669 56.994 46.7895 56.9452 47.0021C56.8417 47.4502 56.3898 47.7879 55.1958 48.4606C55.352 48.7308 55.5395 49.0904 55.4731 49.5167C55.4623 49.5812 55.4487 49.6428 55.4321 49.7015C55.766 49.5793 56.1154 49.464 56.4845 49.3577C57.8775 48.9543 59.3409 48.7745 61.225 48.7745C62.0587 48.7745 62.8006 48.5053 63.5874 48.2211C64.2103 47.9946 64.8546 47.7621 65.576 47.6508C66.1852 47.5555 66.5005 47.7562 66.7728 47.9688C66.8636 48.0403 66.93 48.09 67.0442 48.1357C67.3625 48.2619 67.7325 48.2211 68.1601 48.1754C68.5925 48.1277 69.0836 48.0731 69.5844 48.2042C69.8821 48.2837 70.09 48.5579 70.0861 48.8709C70.0744 50.0571 68.5076 50.5459 67.7549 50.7814L67.0384 51.0099C66.4985 51.1848 65.9567 51.3586 65.41 51.5176C65.1631 51.5881 64.918 51.6587 64.672 51.7223C64.3889 51.7948 64.099 51.9597 63.7944 52.1316C63.481 52.3094 63.1579 52.4922 62.786 52.6174C62.1426 52.83 61.4837 52.9413 60.6471 52.9761C60.4069 52.987 60.1746 53.0943 59.9295 53.2056C59.5674 53.3735 59.1154 53.5801 58.6107 53.4132C58.3949 53.3864 57.5534 53.6775 57.1502 53.8196C56.832 53.9289 56.5577 54.0242 56.3419 54.0759C55.598 54.2528 54.8415 54.3918 54.1103 54.527L53.5968 54.6223C53.1516 54.7058 52.7035 54.7922 52.2613 54.8926L52.2076 54.9085C52.0797 54.9482 51.9021 55.0038 51.7078 55.0038L51.7107 54.9999ZM53.0735 51.6746C53.0569 51.7471 53.0403 51.8196 53.0237 51.8941C53.0032 51.9806 52.9788 52.064 52.9544 52.1455C52.9281 52.2359 52.9066 52.3055 52.8988 52.3651C52.8793 52.5379 52.8773 52.6313 52.8978 52.7247C52.9495 52.9791 52.9388 53.1907 52.8949 53.3645C53.0482 53.3347 53.2024 53.3049 53.3566 53.2751L53.875 53.1808C54.5896 53.0486 55.3296 52.9125 56.0412 52.7436C56.1906 52.7078 56.4483 52.6194 56.7217 52.525C57.7721 52.1604 58.4994 51.9359 59.0295 52.1127C59.0646 52.1058 59.2559 52.0173 59.3828 51.9597C59.7001 51.8137 60.0945 51.6328 60.5924 51.611C61.3021 51.5812 61.8498 51.4908 62.372 51.3169C62.622 51.2345 62.8748 51.0914 63.1442 50.9374C63.5123 50.7298 63.892 50.5142 64.3469 50.3969C64.5793 50.3373 64.8136 50.2707 65.0459 50.2042C65.5789 50.0482 66.11 49.8773 66.6362 49.7064L67.1253 49.5514C66.9388 49.5246 66.7504 49.4779 66.56 49.4014C66.2672 49.2862 66.0836 49.1411 65.9616 49.0457C65.9313 49.0229 65.906 48.999 65.8757 48.9812C65.8737 48.9851 65.8405 48.9851 65.7781 48.9941C65.1845 49.0855 64.6281 49.2862 64.0394 49.4998C63.1794 49.8107 62.293 50.1326 61.2279 50.1326C59.4717 50.1326 58.1235 50.2966 56.8535 50.6642C55.7142 50.992 54.7868 51.3984 54.0166 51.9031C53.7901 52.0521 53.5001 52.0481 53.2776 51.8951C53.1917 51.8365 53.1214 51.76 53.0735 51.6716V51.6746Z" fill="white"/>
8368
7892
  <path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="white"/>
8369
7893
  <path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="white"/>
8370
- </svg>`, O1 = class O1 extends p {
7894
+ </svg>`, E1 = class E1 extends u {
8371
7895
  /**************** Functions ****************/
8372
7896
  _getNysLogo() {
8373
- return new DOMParser().parseFromString(Lt, "image/svg+xml").documentElement;
7897
+ return new DOMParser().parseFromString(ut, "image/svg+xml").documentElement;
8374
7898
  }
8375
7899
  render() {
8376
- return l`
7900
+ return a`
8377
7901
  <footer class="nys-unavfooter">
8378
7902
  <div class="nys-unavfooter__main-container">
8379
7903
  <div class="nys-unavfooter__container_menu">
@@ -8404,33 +7928,32 @@ const kt = u`
8404
7928
  `;
8405
7929
  }
8406
7930
  };
8407
- O1.styles = kt;
8408
- let S1 = O1;
8409
- customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", S1);
7931
+ E1.styles = yt;
7932
+ let _1 = E1;
7933
+ customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", _1);
8410
7934
  export {
8411
- W1 as NysAlert,
8412
- te as NysAvatar,
8413
- d1 as NysBacktotop,
8414
- le as NysButton,
8415
- ge as NysCheckbox,
8416
- ye as NysCheckboxgroup,
8417
- h1 as NysErrorMessage,
8418
- x as NysFileinput,
8419
- y1 as NysGlobalFooter,
8420
- r1 as NysGlobalHeader,
8421
- De as NysIcon,
8422
- i1 as NysLabel,
8423
- l1 as NysOption,
8424
- Pe as NysRadiobutton,
8425
- Be as NysRadiogroup,
8426
- Ge as NysSelect,
8427
- g1 as NysSkipnav,
8428
- W as NysStepper,
8429
- st as NysTextarea,
8430
- at as NysTextinput,
8431
- yt as NysToggle,
8432
- o1 as NysTooltip,
8433
- S1 as NysUnavFooter,
8434
- U as NysUnavHeader
7935
+ R1 as NysAlert,
7936
+ G1 as NysAvatar,
7937
+ c1 as NysBacktotop,
7938
+ ee as NysButton,
7939
+ le as NysCheckbox,
7940
+ re as NysCheckboxgroup,
7941
+ d1 as NysErrorMessage,
7942
+ m as NysFileinput,
7943
+ h1 as NysGlobalFooter,
7944
+ s1 as NysGlobalHeader,
7945
+ me as NysIcon,
7946
+ n1 as NysLabel,
7947
+ a1 as NysOption,
7948
+ ze as NysRadiobutton,
7949
+ $e as NysRadiogroup,
7950
+ Be as NysSelect,
7951
+ u1 as NysSkipnav,
7952
+ Fe as NysTextarea,
7953
+ We as NysTextinput,
7954
+ et as NysToggle,
7955
+ X as NysTooltip,
7956
+ _1 as NysUnavFooter,
7957
+ P as NysUnavHeader
8435
7958
  };
8436
7959
  //# sourceMappingURL=nysds.es.js.map