@nysds/components 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nysds.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { css as g, LitElement as u, html as l } from "lit";
2
- import { property as r, state as Y } from "lit/decorators.js";
1
+ import { css as g, LitElement as u, html as a } from "lit";
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
5
  * New York State Design System (v1.4.0)
@@ -7,7 +7,7 @@ import { ifDefined as h } from "lit/directives/if-defined.js";
7
7
  * Repository: https://github.com/its-hcd/nysds
8
8
  * License: MIT
9
9
  */
10
- const A1 = g`
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 A1 = g`
238
238
  text-decoration-thickness: 3px;
239
239
  }
240
240
  `;
241
- var B1 = Object.defineProperty, q1 = Object.getOwnPropertyDescriptor, L = (a, e, t, o) => {
242
- for (var s = o > 1 ? void 0 : o ? q1(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 && B1(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 U1 = 0;
247
- var W;
248
- const w = (W = class extends u {
246
+ let O1 = 0;
247
+ var J;
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
  }
@@ -253,7 +253,7 @@ const w = (W = class extends u {
253
253
  return this._type;
254
254
  }
255
255
  set type(e) {
256
- this._type = W.VALID_TYPES.includes(
256
+ this._type = J.VALID_TYPES.includes(
257
257
  e
258
258
  ) ? e : "base";
259
259
  }
@@ -276,7 +276,7 @@ const w = (W = class extends u {
276
276
  }
277
277
  /******************** Functions ********************/
278
278
  _generateUniqueId() {
279
- return `nys-alert-${Date.now()}-${U1++}`;
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 w = (W = class extends u {
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 w = (W = class extends u {
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 w = (W = class extends u {
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,56 +358,56 @@ const w = (W = class extends u {
358
358
  </div>`}
359
359
  `;
360
360
  }
361
- }, W.styles = A1, W.VALID_TYPES = [
361
+ }, J.styles = q1, J.VALID_TYPES = [
362
362
  "base",
363
363
  "info",
364
364
  "success",
365
365
  "warning",
366
366
  "danger",
367
367
  "emergency"
368
- ], W);
369
- L([
368
+ ], J);
369
+ D([
370
370
  r({ type: String })
371
- ], w.prototype, "id", 2);
372
- L([
371
+ ], L.prototype, "id", 2);
372
+ D([
373
373
  r({ type: String })
374
- ], w.prototype, "heading", 2);
375
- L([
374
+ ], L.prototype, "heading", 2);
375
+ D([
376
376
  r({ type: String })
377
- ], w.prototype, "icon", 2);
378
- L([
377
+ ], L.prototype, "icon", 2);
378
+ D([
379
379
  r({ type: Boolean, reflect: !0 })
380
- ], w.prototype, "dismissible", 2);
381
- L([
380
+ ], L.prototype, "dismissible", 2);
381
+ D([
382
382
  r({ type: Number, reflect: !0 })
383
- ], w.prototype, "duration", 2);
384
- L([
383
+ ], L.prototype, "duration", 2);
384
+ D([
385
385
  r({ type: String })
386
- ], w.prototype, "text", 2);
387
- L([
386
+ ], L.prototype, "text", 2);
387
+ D([
388
388
  r({ type: String })
389
- ], w.prototype, "primaryAction", 2);
390
- L([
389
+ ], L.prototype, "primaryAction", 2);
390
+ D([
391
391
  r({ type: String })
392
- ], w.prototype, "secondaryAction", 2);
393
- L([
392
+ ], L.prototype, "secondaryAction", 2);
393
+ D([
394
394
  r({ type: String })
395
- ], w.prototype, "primaryLabel", 2);
396
- L([
395
+ ], L.prototype, "primaryLabel", 2);
396
+ D([
397
397
  r({ type: String })
398
- ], w.prototype, "secondaryLabel", 2);
399
- L([
400
- Y()
401
- ], w.prototype, "_alertClosed", 2);
402
- L([
403
- Y()
404
- ], w.prototype, "_slotHasContent", 2);
405
- L([
398
+ ], L.prototype, "secondaryLabel", 2);
399
+ D([
400
+ O()
401
+ ], L.prototype, "_alertClosed", 2);
402
+ D([
403
+ O()
404
+ ], L.prototype, "_slotHasContent", 2);
405
+ D([
406
406
  r({ reflect: !0 })
407
- ], w.prototype, "type", 1);
408
- let O1 = w;
409
- customElements.get("nys-alert") || customElements.define("nys-alert", O1);
410
- const P1 = g`
407
+ ], L.prototype, "type", 1);
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 P1 = g`
475
475
  fill: currentColor;
476
476
  }
477
477
  `;
478
- var R1 = Object.defineProperty, T1 = Object.getOwnPropertyDescriptor, K = (a, e, t, o) => {
479
- for (var s = o > 1 ? void 0 : o ? T1(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 && R1(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 F1 = 0;
484
- var X;
485
- const U = (X = class extends u {
483
+ let j1 = 0;
484
+ var e1;
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
  }
@@ -491,14 +491,14 @@ const U = (X = class extends u {
491
491
  }
492
492
  // Setter for the `shape` property.
493
493
  set shape(e) {
494
- this._shape = X.VALID_SHAPES.includes(
494
+ this._shape = e1.VALID_SHAPES.includes(
495
495
  e
496
496
  ) ? e : "circle", this.requestUpdate("shape");
497
497
  }
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()}-${F1++}`);
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 U = (X = class extends u {
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 U = (X = class extends u {
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 U = (X = class extends u {
558
558
  </label>
559
559
  `;
560
560
  }
561
- }, X.styles = P1, X.VALID_SHAPES = [
561
+ }, e1.styles = T1, e1.VALID_SHAPES = [
562
562
  "square",
563
563
  "rounded",
564
564
  "circle"
565
- ], X);
566
- K([
565
+ ], e1);
566
+ Q([
567
567
  r({ type: String })
568
- ], U.prototype, "id", 2);
569
- K([
568
+ ], R.prototype, "id", 2);
569
+ Q([
570
570
  r({ type: String })
571
- ], U.prototype, "label", 2);
572
- K([
571
+ ], R.prototype, "label", 2);
572
+ Q([
573
573
  r({ type: String })
574
- ], U.prototype, "image", 2);
575
- K([
574
+ ], R.prototype, "image", 2);
575
+ Q([
576
576
  r({ type: String })
577
- ], U.prototype, "initials", 2);
578
- K([
577
+ ], R.prototype, "initials", 2);
578
+ Q([
579
579
  r({ type: String })
580
- ], U.prototype, "icon", 2);
581
- K([
580
+ ], R.prototype, "icon", 2);
581
+ Q([
582
582
  r({ type: String })
583
- ], U.prototype, "color", 2);
584
- K([
583
+ ], R.prototype, "color", 2);
584
+ Q([
585
585
  r({ type: Boolean, reflect: !0 })
586
- ], U.prototype, "lazy", 2);
587
- K([
586
+ ], R.prototype, "lazy", 2);
587
+ Q([
588
588
  r({ reflect: !0 })
589
- ], U.prototype, "shape", 1);
590
- K([
591
- Y()
592
- ], U.prototype, "_slotHasContent", 2);
593
- let N1 = U;
594
- customElements.get("nys-avatar") || customElements.define("nys-avatar", N1);
595
- const j1 = g`
589
+ ], R.prototype, "shape", 1);
590
+ Q([
591
+ O()
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 j1 = g`
617
617
  display: inline-flex;
618
618
  }
619
619
  `;
620
- var G1 = Object.defineProperty, f1 = (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 && G1(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 m1 = class m1 extends u {
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 m1 = class m1 extends u {
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 m1 = class m1 extends u {
659
659
  ></nys-button>`;
660
660
  }
661
661
  };
662
- m1.styles = j1;
663
- let n1 = m1;
664
- f1([
662
+ k1.styles = Y1;
663
+ let c1 = k1;
664
+ m1([
665
665
  r({ type: String })
666
- ], n1.prototype, "position");
667
- f1([
666
+ ], c1.prototype, "position");
667
+ m1([
668
668
  r({ type: Boolean, reflect: !0 })
669
- ], n1.prototype, "visible");
670
- f1([
671
- Y()
672
- ], n1.prototype, "isMobile");
673
- customElements.get("nys-backtotop") || customElements.define("nys-backtotop", n1);
674
- const Y1 = g`
669
+ ], c1.prototype, "visible");
670
+ m1([
671
+ O()
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,17 +1092,17 @@ const Y1 = g`
1092
1092
  user-select: none;
1093
1093
  }
1094
1094
  `;
1095
- var K1 = Object.defineProperty, W1 = Object.getOwnPropertyDescriptor, f = (a, e, t, o) => {
1096
- for (var s = o > 1 ? void 0 : o ? W1(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 && K1(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 X1 = 0;
1100
+ let J1 = 0;
1101
1101
  var x;
1102
- const v = (x = class extends u {
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() {
@@ -1142,7 +1142,7 @@ const v = (x = class extends u {
1142
1142
  }
1143
1143
  /******************** Functions ********************/
1144
1144
  _generateUniqueId() {
1145
- return `nys-button-${Date.now()}-${X1++}`;
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 = (x = class extends u {
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 = (x = class extends u {
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 = (x = class extends u {
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 = (x = class extends u {
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}
@@ -1254,67 +1260,70 @@ const v = (x = class extends u {
1254
1260
  "_parent",
1255
1261
  "_top",
1256
1262
  "framename"
1257
- ], x.styles = Y1, x.formAssociated = !0, x);
1258
- f([
1263
+ ], x.styles = K1, x.formAssociated = !0, x);
1264
+ v([
1259
1265
  r({ type: String })
1260
- ], v.prototype, "id", 2);
1261
- f([
1266
+ ], f.prototype, "id", 2);
1267
+ v([
1262
1268
  r({ type: String, reflect: !0 })
1263
- ], v.prototype, "name", 2);
1264
- f([
1269
+ ], f.prototype, "name", 2);
1270
+ v([
1265
1271
  r({ reflect: !0 })
1266
- ], v.prototype, "size", 1);
1267
- f([
1272
+ ], f.prototype, "size", 1);
1273
+ v([
1268
1274
  r({ type: Boolean, reflect: !0 })
1269
- ], v.prototype, "fullWidth", 2);
1270
- f([
1275
+ ], f.prototype, "fullWidth", 2);
1276
+ v([
1271
1277
  r({ reflect: !0 })
1272
- ], v.prototype, "variant", 1);
1273
- f([
1278
+ ], f.prototype, "variant", 1);
1279
+ v([
1274
1280
  r({ type: Boolean, reflect: !0 })
1275
- ], v.prototype, "inverted", 2);
1276
- f([
1281
+ ], f.prototype, "inverted", 2);
1282
+ v([
1277
1283
  r({ type: String })
1278
- ], v.prototype, "label", 2);
1279
- f([
1284
+ ], f.prototype, "label", 2);
1285
+ v([
1280
1286
  r({ type: String })
1281
- ], v.prototype, "ariaLabel", 2);
1282
- f([
1287
+ ], f.prototype, "ariaLabel", 2);
1288
+ v([
1283
1289
  r({ type: String })
1284
- ], v.prototype, "prefixIcon", 2);
1285
- f([
1290
+ ], f.prototype, "prefixIcon", 2);
1291
+ v([
1286
1292
  r({ type: String })
1287
- ], v.prototype, "suffixIcon", 2);
1288
- f([
1293
+ ], f.prototype, "suffixIcon", 2);
1294
+ v([
1289
1295
  r({ type: Boolean, reflect: !0 })
1290
- ], v.prototype, "circle", 2);
1291
- f([
1296
+ ], f.prototype, "circle", 2);
1297
+ v([
1292
1298
  r({ type: String })
1293
- ], v.prototype, "icon", 2);
1294
- f([
1299
+ ], f.prototype, "icon", 2);
1300
+ v([
1295
1301
  r({ type: Boolean, reflect: !0 })
1296
- ], v.prototype, "disabled", 2);
1297
- f([
1302
+ ], f.prototype, "disabled", 2);
1303
+ v([
1298
1304
  r({ type: String })
1299
- ], v.prototype, "form", 2);
1300
- f([
1305
+ ], f.prototype, "form", 2);
1306
+ v([
1301
1307
  r({ type: String })
1302
- ], v.prototype, "value", 2);
1303
- f([
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
- f([
1314
+ ], f.prototype, "type", 1);
1315
+ v([
1307
1316
  r({ type: Function })
1308
- ], v.prototype, "onClick", 2);
1309
- f([
1317
+ ], f.prototype, "onClick", 2);
1318
+ v([
1310
1319
  r({ type: String })
1311
- ], v.prototype, "href", 2);
1312
- f([
1320
+ ], f.prototype, "href", 2);
1321
+ v([
1313
1322
  r({ reflect: !0 })
1314
- ], v.prototype, "target", 1);
1315
- let Q1 = v;
1316
- customElements.get("nys-button") || customElements.define("nys-button", Q1);
1317
- const z1 = g`
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 z1 = g`
1671
1680
  display: inline;
1672
1681
  }
1673
1682
  `;
1674
- var J1 = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, O = (a, e, t, o) => {
1675
- for (var s = o > 1 ? void 0 : o ? ee(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 && J1(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 te = 0;
1680
- var T;
1681
- const H = (T = class extends u {
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 H = (T = class extends u {
1687
1696
  return this._size;
1688
1697
  }
1689
1698
  set size(e) {
1690
- this._size = T.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()}-${te++}`), 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 H = (T = class extends u {
1720
1729
  if (Array.from(
1721
1730
  this.querySelectorAll("nys-checkbox")
1722
1731
  ).filter(
1723
- (c1) => c1.checked
1732
+ (w) => w.checked
1724
1733
  ).length === 0)
1725
1734
  return c;
1726
1735
  } else
@@ -1773,7 +1782,7 @@ const H = (T = class extends u {
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 H = (T = class extends u {
1792
1801
  ></nys-errormessage>
1793
1802
  </div>`;
1794
1803
  }
1795
- }, T.VALID_SIZES = ["sm", "md"], T.styles = z1, T.formAssociated = !0, T);
1796
- O([
1804
+ }, j.VALID_SIZES = ["sm", "md"], j.styles = H1, j.formAssociated = !0, j);
1805
+ T([
1797
1806
  r({ type: String })
1798
- ], H.prototype, "id", 2);
1799
- O([
1807
+ ], A.prototype, "id", 2);
1808
+ T([
1800
1809
  r({ type: String, reflect: !0 })
1801
- ], H.prototype, "name", 2);
1802
- O([
1810
+ ], A.prototype, "name", 2);
1811
+ T([
1803
1812
  r({ type: Boolean, reflect: !0 })
1804
- ], H.prototype, "required", 2);
1805
- O([
1813
+ ], A.prototype, "required", 2);
1814
+ T([
1806
1815
  r({ type: Boolean, reflect: !0 })
1807
- ], H.prototype, "optional", 2);
1808
- O([
1816
+ ], A.prototype, "optional", 2);
1817
+ T([
1809
1818
  r({ type: Boolean, reflect: !0 })
1810
- ], H.prototype, "showError", 2);
1811
- O([
1819
+ ], A.prototype, "showError", 2);
1820
+ T([
1812
1821
  r({ type: String })
1813
- ], H.prototype, "errorMessage", 2);
1814
- O([
1822
+ ], A.prototype, "errorMessage", 2);
1823
+ T([
1815
1824
  r({ type: String })
1816
- ], H.prototype, "label", 2);
1817
- O([
1825
+ ], A.prototype, "label", 2);
1826
+ T([
1818
1827
  r({ type: String })
1819
- ], H.prototype, "description", 2);
1820
- O([
1828
+ ], A.prototype, "description", 2);
1829
+ T([
1821
1830
  r({ type: Boolean, reflect: !0 })
1822
- ], H.prototype, "tile", 2);
1823
- O([
1831
+ ], A.prototype, "tile", 2);
1832
+ T([
1824
1833
  r({ reflect: !0 })
1825
- ], H.prototype, "size", 1);
1826
- let se = H;
1827
- customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", se);
1828
- var oe = Object.defineProperty, re = Object.getOwnPropertyDescriptor, $ = (a, e, t, o) => {
1829
- for (var s = o > 1 ? void 0 : o ? re(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 && oe(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 ne = 0;
1834
- var F;
1835
- const k = (F = class extends u {
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 k = (F = class extends u {
1841
1850
  return this._size;
1842
1851
  }
1843
1852
  set size(e) {
1844
- this._size = F.VALID_SIZES.includes(
1853
+ this._size = G.VALID_SIZES.includes(
1845
1854
  e
1846
1855
  ) ? e : "md";
1847
1856
  }
@@ -1851,7 +1860,7 @@ const k = (F = class extends u {
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()}-${ne++}`), 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 k = (F = class extends u {
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 k = (F = class extends u {
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 k = (F = class extends u {
1989
1998
  ></nys-errormessage>` : ""}
1990
1999
  `;
1991
2000
  }
1992
- }, F.VALID_SIZES = ["sm", "md"], F.styles = z1, F.formAssociated = !0, F);
1993
- $([
2001
+ }, G.VALID_SIZES = ["sm", "md"], G.styles = H1, G.formAssociated = !0, G);
2002
+ V([
1994
2003
  r({ type: Boolean, reflect: !0 })
1995
- ], k.prototype, "checked", 2);
1996
- $([
2004
+ ], S.prototype, "checked", 2);
2005
+ V([
1997
2006
  r({ type: Boolean, reflect: !0 })
1998
- ], k.prototype, "disabled", 2);
1999
- $([
2007
+ ], S.prototype, "disabled", 2);
2008
+ V([
2000
2009
  r({ type: Boolean, reflect: !0 })
2001
- ], k.prototype, "required", 2);
2002
- $([
2010
+ ], S.prototype, "required", 2);
2011
+ V([
2003
2012
  r({ type: String })
2004
- ], k.prototype, "label", 2);
2005
- $([
2013
+ ], S.prototype, "label", 2);
2014
+ V([
2006
2015
  r({ type: String })
2007
- ], k.prototype, "description", 2);
2008
- $([
2016
+ ], S.prototype, "description", 2);
2017
+ V([
2009
2018
  r({ type: String })
2010
- ], k.prototype, "id", 2);
2011
- $([
2019
+ ], S.prototype, "id", 2);
2020
+ V([
2012
2021
  r({ type: String, reflect: !0 })
2013
- ], k.prototype, "name", 2);
2014
- $([
2022
+ ], S.prototype, "name", 2);
2023
+ V([
2015
2024
  r({ type: String })
2016
- ], k.prototype, "value", 2);
2017
- $([
2025
+ ], S.prototype, "value", 2);
2026
+ V([
2018
2027
  r({ type: Boolean, reflect: !0 })
2019
- ], k.prototype, "showError", 2);
2020
- $([
2028
+ ], S.prototype, "showError", 2);
2029
+ V([
2021
2030
  r({ type: String })
2022
- ], k.prototype, "errorMessage", 2);
2023
- $([
2031
+ ], S.prototype, "errorMessage", 2);
2032
+ V([
2024
2033
  r({ type: Boolean })
2025
- ], k.prototype, "groupExist", 2);
2026
- $([
2034
+ ], S.prototype, "groupExist", 2);
2035
+ V([
2027
2036
  r({ type: Boolean, reflect: !0 })
2028
- ], k.prototype, "tile", 2);
2029
- $([
2037
+ ], S.prototype, "tile", 2);
2038
+ V([
2030
2039
  r({ reflect: !0 })
2031
- ], k.prototype, "size", 1);
2032
- let ie = k;
2033
- customElements.get("nys-checkbox") || customElements.define("nys-checkbox", ie);
2034
- const ae = g`
2040
+ ], S.prototype, "size", 1);
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,93 +2093,42 @@ const ae = g`
2084
2093
  var(--_nys-errormessage-color);
2085
2094
  }
2086
2095
  `;
2087
- var le = Object.defineProperty, b1 = (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 && le(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 u1 = class u1 extends u {
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
- u1.styles = ae, u1.formAssociated = !0;
2105
- let i1 = u1;
2106
- b1([
2113
+ f1.styles = ce, f1.formAssociated = !0;
2114
+ let d1 = f1;
2115
+ x1([
2107
2116
  r({ type: Boolean })
2108
- ], i1.prototype, "showError");
2109
- b1([
2117
+ ], d1.prototype, "showError");
2118
+ x1([
2110
2119
  r({ type: String })
2111
- ], i1.prototype, "errorMessage");
2112
- b1([
2120
+ ], d1.prototype, "errorMessage");
2121
+ x1([
2113
2122
  r({ type: Boolean, reflect: !0 })
2114
- ], i1.prototype, "showDivider");
2115
- customElements.get("nys-errormessage") || customElements.define("nys-errormessage", i1);
2116
- const ce = {
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 de(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 V1 = {
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 he(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 (V1[d])
2166
- for (const B of V1[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 = ce[d];
2171
- if (B && de(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
2133
  const ye = g`
2176
2134
  :host {
@@ -2200,7 +2158,7 @@ const ye = g`
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 ye = g`
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
@@ -2343,7 +2307,8 @@ const ye = g`
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 ye = g`
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 ye = g`
2404
2386
  }
2405
2387
  }
2406
2388
  `;
2407
- var pe = Object.defineProperty, C1 = (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);
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);
2410
2392
  return s && pe(e, t, s), s;
2411
2393
  };
2412
- const x1 = class x1 extends u {
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 x1 = class x1 extends u {
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 x1 = class x1 extends u {
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
- x1.styles = ue;
2481
- let e1 = x1;
2482
- C1([
2467
+ L1.styles = ue;
2468
+ let r1 = L1;
2469
+ v1([
2483
2470
  r({ type: String })
2484
- ], e1.prototype, "filename");
2485
- C1([
2471
+ ], r1.prototype, "filename");
2472
+ v1([
2486
2473
  r({ type: String })
2487
- ], e1.prototype, "status");
2488
- C1([
2474
+ ], r1.prototype, "status");
2475
+ v1([
2489
2476
  r({ type: Number })
2490
- ], e1.prototype, "progress");
2491
- C1([
2477
+ ], r1.prototype, "progress");
2478
+ v1([
2492
2479
  r({ type: String })
2493
- ], e1.prototype, "errorMessage");
2494
- customElements.define("nys-fileitem", e1);
2495
- var Ce = Object.defineProperty, S = (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 && Ce(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 ge = 0;
2501
- const p1 = class p1 extends u {
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 p1 = class p1 extends u {
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()}-${ge++}`), 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 p1 = class p1 extends u {
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) {
@@ -2576,7 +2606,7 @@ const p1 = class p1 extends u {
2576
2606
  e.status = "processing";
2577
2607
  try {
2578
2608
  if (!await he(e.file, this.accept)) {
2579
- e.status = "error", e.errorMsg = "File format does not match expected type.", this.requestUpdate();
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 p1 = class p1 extends u {
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 p1 = class p1 extends u {
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 p1 = class p1 extends u {
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 p1 = class p1 extends u {
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 p1 = class p1 extends u {
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 p1 = class p1 extends u {
2735
2777
  </div>`;
2736
2778
  }
2737
2779
  };
2738
- p1.styles = ye, p1.formAssociated = !0;
2739
- let m = p1;
2740
- S([
2780
+ C1.styles = ye, C1.formAssociated = !0;
2781
+ let m = C1;
2782
+ M([
2741
2783
  r({ type: String })
2742
2784
  ], m.prototype, "id");
2743
- S([
2785
+ M([
2744
2786
  r({ type: String, reflect: !0 })
2745
2787
  ], m.prototype, "name");
2746
- S([
2788
+ M([
2747
2789
  r({ type: String })
2748
2790
  ], m.prototype, "label");
2749
- S([
2791
+ M([
2750
2792
  r({ type: String })
2751
2793
  ], m.prototype, "description");
2752
- S([
2794
+ M([
2753
2795
  r({ type: Boolean })
2754
2796
  ], m.prototype, "multiple");
2755
- S([
2797
+ M([
2756
2798
  r({ type: String })
2757
2799
  ], m.prototype, "accept");
2758
- S([
2800
+ M([
2759
2801
  r({ type: Boolean, reflect: !0 })
2760
2802
  ], m.prototype, "disabled");
2761
- S([
2803
+ M([
2762
2804
  r({ type: Boolean, reflect: !0 })
2763
2805
  ], m.prototype, "required");
2764
- S([
2806
+ M([
2765
2807
  r({ type: Boolean, reflect: !0 })
2766
2808
  ], m.prototype, "optional");
2767
- S([
2809
+ M([
2768
2810
  r({ type: Boolean, reflect: !0 })
2769
2811
  ], m.prototype, "showError");
2770
- S([
2812
+ M([
2771
2813
  r({ type: String })
2772
2814
  ], m.prototype, "errorMessage");
2773
- S([
2815
+ M([
2774
2816
  r({ type: Boolean })
2775
2817
  ], m.prototype, "dropzone");
2776
- S([
2818
+ M([
2777
2819
  r({ type: String, reflect: !0 })
2778
2820
  ], m.prototype, "width");
2779
2821
  customElements.get("nys-fileinput") || customElements.define("nys-fileinput", m);
2780
- const ve = {
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 ve = {
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
- }, fe = g`
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,34 +3452,34 @@ const ve = {
3410
3452
  transform: scale(-1, -1);
3411
3453
  }
3412
3454
  `;
3413
- var be = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, l1 = (a, e, t, o) => {
3414
- for (var s = o > 1 ? void 0 : o ? _e(e, t) : e, n = a.length - 1, i; n >= 0; n--)
3415
- (i = a[n]) && (s = (o ? i(e, t, s) : i(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);
3416
3458
  return o && s && be(e, t, s), s;
3417
- }, Q;
3418
- const s1 = (Q = class extends u {
3459
+ }, t1;
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;
3424
3466
  }
3425
3467
  set size(e) {
3426
- this._size = Q.VALID_TYPES.includes(
3468
+ this._size = t1.VALID_TYPES.includes(
3427
3469
  e
3428
3470
  ) ? e : "sm";
3429
3471
  }
3430
3472
  getIcon() {
3431
- const e = ve[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
- }, Q.styles = fe, Q.VALID_TYPES = [
3482
+ }, t1.styles = ve, t1.VALID_TYPES = [
3441
3483
  "2xs",
3442
3484
  "xs",
3443
3485
  "sm",
@@ -3454,26 +3496,29 @@ const s1 = (Q = class extends u {
3454
3496
  "40",
3455
3497
  "48",
3456
3498
  "64"
3457
- ], Q);
3458
- l1([
3499
+ ], t1);
3500
+ i1([
3459
3501
  r({ type: String, reflect: !0 })
3460
- ], s1.prototype, "name", 2);
3461
- l1([
3502
+ ], o1.prototype, "name", 2);
3503
+ i1([
3462
3504
  r({ type: String })
3463
- ], s1.prototype, "label", 2);
3464
- l1([
3505
+ ], o1.prototype, "label", 2);
3506
+ i1([
3465
3507
  r({ type: String })
3466
- ], s1.prototype, "rotate", 2);
3467
- l1([
3508
+ ], o1.prototype, "ariaDescription", 2);
3509
+ i1([
3468
3510
  r({ type: String })
3469
- ], s1.prototype, "flip", 2);
3470
- l1([
3511
+ ], o1.prototype, "rotate", 2);
3512
+ i1([
3471
3513
  r({ type: String })
3472
- ], s1.prototype, "color", 2);
3473
- l1([
3514
+ ], o1.prototype, "flip", 2);
3515
+ i1([
3516
+ r({ type: String })
3517
+ ], o1.prototype, "color", 2);
3518
+ i1([
3474
3519
  r({ reflect: !0 })
3475
- ], s1.prototype, "size", 1);
3476
- let me = s1;
3520
+ ], o1.prototype, "size", 1);
3521
+ let me = o1;
3477
3522
  customElements.get("nys-icon") || customElements.define("nys-icon", me);
3478
3523
  const xe = g`
3479
3524
  :host {
@@ -3549,22 +3594,22 @@ const xe = g`
3549
3594
  color: var(--nys-optional-font-color);
3550
3595
  }
3551
3596
  `;
3552
- var we = Object.defineProperty, g1 = (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);
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);
3555
3600
  return s && we(e, t, s), s;
3556
3601
  };
3557
- const w1 = class w1 extends u {
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 w1 = class w1 extends u {
3573
3618
  `;
3574
3619
  }
3575
3620
  };
3576
- w1.styles = xe;
3577
- let t1 = w1;
3578
- g1([
3621
+ S1.styles = xe;
3622
+ let n1 = S1;
3623
+ b1([
3579
3624
  r({ type: String })
3580
- ], t1.prototype, "id");
3581
- g1([
3625
+ ], n1.prototype, "id");
3626
+ b1([
3582
3627
  r({ type: String })
3583
- ], t1.prototype, "label");
3584
- g1([
3628
+ ], n1.prototype, "label");
3629
+ b1([
3585
3630
  r({ type: String })
3586
- ], t1.prototype, "description");
3587
- g1([
3631
+ ], n1.prototype, "description");
3632
+ b1([
3588
3633
  r({ type: String })
3589
- ], t1.prototype, "flag");
3590
- customElements.get("nys-label") || customElements.define("nys-label", t1);
3591
- const E1 = g`
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 E1 = g`
3941
3986
  cursor: not-allowed;
3942
3987
  }
3943
3988
  `;
3944
- var ke = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, Z = (a, e, t, o) => {
3945
- for (var s = o > 1 ? void 0 : o ? Le(e, t) : e, n = a.length - 1, i; n >= 0; n--)
3946
- (i = a[n]) && (s = (o ? i(e, t, s) : i(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);
3947
3992
  return o && s && ke(e, t, s), s;
3948
3993
  };
3949
- let $e = 0;
3950
- var N;
3951
- const M = (N = class extends u {
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 M = (N = class extends u {
3957
4002
  return this._size;
3958
4003
  }
3959
4004
  set size(e) {
3960
- this._size = N.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()}-${$e++}`), 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 M = (N = class extends u {
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 M = (N = class extends u {
4066
4111
  ></nys-errormessage>
4067
4112
  </div>`;
4068
4113
  }
4069
- }, N.VALID_SIZES = ["sm", "md"], N.styles = E1, N.formAssociated = !0, N);
4070
- Z([
4114
+ }, Y.VALID_SIZES = ["sm", "md"], Y.styles = Z1, Y.formAssociated = !0, Y);
4115
+ B([
4071
4116
  r({ type: String })
4072
- ], M.prototype, "id", 2);
4073
- Z([
4117
+ ], E.prototype, "id", 2);
4118
+ B([
4074
4119
  r({ type: String, reflect: !0 })
4075
- ], M.prototype, "name", 2);
4076
- Z([
4120
+ ], E.prototype, "name", 2);
4121
+ B([
4077
4122
  r({ type: Boolean, reflect: !0 })
4078
- ], M.prototype, "required", 2);
4079
- Z([
4123
+ ], E.prototype, "required", 2);
4124
+ B([
4080
4125
  r({ type: Boolean, reflect: !0 })
4081
- ], M.prototype, "optional", 2);
4082
- Z([
4126
+ ], E.prototype, "optional", 2);
4127
+ B([
4083
4128
  r({ type: Boolean, reflect: !0 })
4084
- ], M.prototype, "showError", 2);
4085
- Z([
4129
+ ], E.prototype, "showError", 2);
4130
+ B([
4086
4131
  r({ type: String })
4087
- ], M.prototype, "errorMessage", 2);
4088
- Z([
4132
+ ], E.prototype, "errorMessage", 2);
4133
+ B([
4089
4134
  r({ type: String })
4090
- ], M.prototype, "label", 2);
4091
- Z([
4135
+ ], E.prototype, "label", 2);
4136
+ B([
4092
4137
  r({ type: String })
4093
- ], M.prototype, "description", 2);
4094
- Z([
4095
- Y()
4096
- ], M.prototype, "selectedValue", 2);
4097
- Z([
4138
+ ], E.prototype, "description", 2);
4139
+ B([
4140
+ O()
4141
+ ], E.prototype, "selectedValue", 2);
4142
+ B([
4098
4143
  r({ reflect: !0 })
4099
- ], M.prototype, "size", 1);
4100
- Z([
4144
+ ], E.prototype, "size", 1);
4145
+ B([
4101
4146
  r({ type: Boolean, reflect: !0 })
4102
- ], M.prototype, "tile", 2);
4103
- let Se = M;
4104
- customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", Se);
4105
- var De = Object.defineProperty, Me = Object.getOwnPropertyDescriptor, P = (a, e, t, o) => {
4106
- for (var s = o > 1 ? void 0 : o ? Me(e, t) : e, n = a.length - 1, i; n >= 0; n--)
4107
- (i = a[n]) && (s = (o ? i(e, t, s) : i(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);
4108
4153
  return o && s && De(e, t, s), s;
4109
4154
  };
4110
- let Ve = 0;
4155
+ let Me = 0;
4111
4156
  var y;
4112
- const I = (y = class extends u {
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 I = (y = class extends u {
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()}-${Ve++}`), 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 I = (y = class extends u {
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 I = (y = class extends u {
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,38 +4252,38 @@ const I = (y = class extends u {
4207
4252
  </label>
4208
4253
  `;
4209
4254
  }
4210
- }, y.VALID_SIZES = ["sm", "md"], y.buttonGroup = {}, y.styles = E1, y);
4211
- P([
4255
+ }, y.VALID_SIZES = ["sm", "md"], y.buttonGroup = {}, y.styles = Z1, y);
4256
+ F([
4212
4257
  r({ type: Boolean, reflect: !0 })
4213
- ], I.prototype, "checked", 2);
4214
- P([
4258
+ ], q.prototype, "checked", 2);
4259
+ F([
4215
4260
  r({ type: Boolean, reflect: !0 })
4216
- ], I.prototype, "disabled", 2);
4217
- P([
4261
+ ], q.prototype, "disabled", 2);
4262
+ F([
4218
4263
  r({ type: Boolean, reflect: !0 })
4219
- ], I.prototype, "required", 2);
4220
- P([
4264
+ ], q.prototype, "required", 2);
4265
+ F([
4221
4266
  r({ type: String })
4222
- ], I.prototype, "label", 2);
4223
- P([
4267
+ ], q.prototype, "label", 2);
4268
+ F([
4224
4269
  r({ type: String })
4225
- ], I.prototype, "description", 2);
4226
- P([
4270
+ ], q.prototype, "description", 2);
4271
+ F([
4227
4272
  r({ type: String })
4228
- ], I.prototype, "id", 2);
4229
- P([
4273
+ ], q.prototype, "id", 2);
4274
+ F([
4230
4275
  r({ type: String, reflect: !0 })
4231
- ], I.prototype, "name", 2);
4232
- P([
4276
+ ], q.prototype, "name", 2);
4277
+ F([
4233
4278
  r({ type: String })
4234
- ], I.prototype, "value", 2);
4235
- P([
4279
+ ], q.prototype, "value", 2);
4280
+ F([
4236
4281
  r({ reflect: !0 })
4237
- ], I.prototype, "size", 1);
4238
- P([
4282
+ ], q.prototype, "size", 1);
4283
+ F([
4239
4284
  r({ type: Boolean, reflect: !0 })
4240
- ], I.prototype, "tile", 2);
4241
- let ze = I;
4285
+ ], q.prototype, "tile", 2);
4286
+ let ze = q;
4242
4287
  customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", ze);
4243
4288
  const Ee = g`
4244
4289
  :host {
@@ -4388,12 +4433,12 @@ const Ee = g`
4388
4433
  var(--_nys-select-error-color);
4389
4434
  }
4390
4435
  `;
4391
- var He = Object.defineProperty, h1 = (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);
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);
4394
4439
  return s && He(e, t, s), s;
4395
4440
  };
4396
- class o1 extends u {
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 o1 extends u {
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 o1 extends u {
4420
4465
  `;
4421
4466
  }
4422
4467
  }
4423
- h1([
4468
+ p1([
4424
4469
  r({ type: Boolean, reflect: !0 })
4425
- ], o1.prototype, "disabled");
4426
- h1([
4470
+ ], a1.prototype, "disabled");
4471
+ p1([
4427
4472
  r({ type: Boolean, reflect: !0 })
4428
- ], o1.prototype, "selected");
4429
- h1([
4473
+ ], a1.prototype, "selected");
4474
+ p1([
4430
4475
  r({ type: String })
4431
- ], o1.prototype, "value");
4432
- h1([
4476
+ ], a1.prototype, "value");
4477
+ p1([
4433
4478
  r({ type: String })
4434
- ], o1.prototype, "label");
4435
- h1([
4479
+ ], a1.prototype, "label");
4480
+ p1([
4436
4481
  r({ type: Boolean, reflect: !0 })
4437
- ], o1.prototype, "hidden");
4438
- customElements.define("nys-option", o1);
4439
- var Ze = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, V = (a, e, t, o) => {
4440
- for (var s = o > 1 ? void 0 : o ? Ie(e, t) : e, n = a.length - 1, i; n >= 0; n--)
4441
- (i = a[n]) && (s = (o ? i(e, t, s) : i(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);
4442
4487
  return o && s && Ze(e, t, s), s;
4443
4488
  };
4444
4489
  let Ae = 0;
4445
- var j;
4446
- const D = (j = class extends u {
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,7 +4497,7 @@ const D = (j = class extends u {
4452
4497
  return this._width;
4453
4498
  }
4454
4499
  set width(e) {
4455
- this._width = j.VALID_WIDTHS.includes(
4500
+ this._width = W.VALID_WIDTHS.includes(
4456
4501
  e
4457
4502
  ) ? e : "full";
4458
4503
  }
@@ -4478,7 +4523,7 @@ const D = (j = class extends u {
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 o1) {
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 D = (j = class extends u {
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,44 +4646,44 @@ const D = (j = class extends u {
4601
4646
  </div>
4602
4647
  `;
4603
4648
  }
4604
- }, j.VALID_WIDTHS = ["sm", "md", "lg", "full"], j.styles = Ee, j.formAssociated = !0, j);
4605
- V([
4649
+ }, W.VALID_WIDTHS = ["sm", "md", "lg", "full"], W.styles = Ee, W.formAssociated = !0, W);
4650
+ H([
4606
4651
  r({ type: String })
4607
- ], D.prototype, "id", 2);
4608
- V([
4652
+ ], z.prototype, "id", 2);
4653
+ H([
4609
4654
  r({ type: String, reflect: !0 })
4610
- ], D.prototype, "name", 2);
4611
- V([
4655
+ ], z.prototype, "name", 2);
4656
+ H([
4612
4657
  r({ type: String })
4613
- ], D.prototype, "label", 2);
4614
- V([
4658
+ ], z.prototype, "label", 2);
4659
+ H([
4615
4660
  r({ type: String })
4616
- ], D.prototype, "description", 2);
4617
- V([
4661
+ ], z.prototype, "description", 2);
4662
+ H([
4618
4663
  r({ type: String })
4619
- ], D.prototype, "value", 2);
4620
- V([
4664
+ ], z.prototype, "value", 2);
4665
+ H([
4621
4666
  r({ type: Boolean, reflect: !0 })
4622
- ], D.prototype, "disabled", 2);
4623
- V([
4667
+ ], z.prototype, "disabled", 2);
4668
+ H([
4624
4669
  r({ type: Boolean, reflect: !0 })
4625
- ], D.prototype, "required", 2);
4626
- V([
4670
+ ], z.prototype, "required", 2);
4671
+ H([
4627
4672
  r({ type: Boolean, reflect: !0 })
4628
- ], D.prototype, "optional", 2);
4629
- V([
4673
+ ], z.prototype, "optional", 2);
4674
+ H([
4630
4675
  r({ type: String })
4631
- ], D.prototype, "form", 2);
4632
- V([
4676
+ ], z.prototype, "form", 2);
4677
+ H([
4633
4678
  r({ type: Boolean, reflect: !0 })
4634
- ], D.prototype, "showError", 2);
4635
- V([
4679
+ ], z.prototype, "showError", 2);
4680
+ H([
4636
4681
  r({ type: String })
4637
- ], D.prototype, "errorMessage", 2);
4638
- V([
4682
+ ], z.prototype, "errorMessage", 2);
4683
+ H([
4639
4684
  r({ reflect: !0 })
4640
- ], D.prototype, "width", 1);
4641
- let Be = D;
4685
+ ], z.prototype, "width", 1);
4686
+ let Be = z;
4642
4687
  customElements.get("nys-select") || customElements.define("nys-select", Be);
4643
4688
  const qe = g`
4644
4689
  :host {
@@ -4713,12 +4758,12 @@ const qe = g`
4713
4758
  outline: none;
4714
4759
  }
4715
4760
  `;
4716
- var Ue = Object.defineProperty, H1 = (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);
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);
4719
4764
  return s && Ue(e, t, s), s;
4720
4765
  };
4721
- const k1 = class k1 extends u {
4766
+ const $1 = class $1 extends u {
4722
4767
  constructor() {
4723
4768
  super(), this.id = "", this.href = "";
4724
4769
  }
@@ -4742,7 +4787,7 @@ const k1 = class k1 extends u {
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,16 +4804,16 @@ const k1 = class k1 extends u {
4759
4804
  `;
4760
4805
  }
4761
4806
  };
4762
- k1.styles = qe;
4763
- let d1 = k1;
4764
- H1([
4807
+ $1.styles = qe;
4808
+ let u1 = $1;
4809
+ I1([
4765
4810
  r({ type: String })
4766
- ], d1.prototype, "id");
4767
- H1([
4811
+ ], u1.prototype, "id");
4812
+ I1([
4768
4813
  r({ type: String })
4769
- ], d1.prototype, "href");
4770
- customElements.get("nys-skipnav") || customElements.define("nys-skipnav", d1);
4771
- const Oe = g`
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
 
@@ -4910,14 +4955,14 @@ const Oe = g`
4910
4955
  cursor: not-allowed;
4911
4956
  }
4912
4957
  `;
4913
- var Pe = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, _ = (a, e, t, o) => {
4914
- for (var s = o > 1 ? void 0 : o ? Re(e, t) : e, n = a.length - 1, i; n >= 0; n--)
4915
- (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
4916
- return o && s && Pe(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;
4917
4962
  };
4918
4963
  let Te = 0;
4919
- var z;
4920
- const b = (z = class extends u {
4964
+ var Z;
4965
+ const b = (Z = class extends u {
4921
4966
  // allows use of elementInternals' API
4922
4967
  constructor() {
4923
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();
@@ -4926,12 +4971,12 @@ const b = (z = class extends u {
4926
4971
  return this._resize;
4927
4972
  }
4928
4973
  set resize(e) {
4929
- this._resize = z.VALID_RESIZE.includes(
4974
+ this._resize = Z.VALID_RESIZE.includes(
4930
4975
  e
4931
4976
  ) ? e : "vertical";
4932
4977
  }
4933
4978
  async updated(e) {
4934
- 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);
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);
4935
4980
  }
4936
4981
  // Generate a unique ID if one is not provided
4937
4982
  connectedCallback() {
@@ -5033,7 +5078,7 @@ const b = (z = class extends u {
5033
5078
  );
5034
5079
  }
5035
5080
  render() {
5036
- return l`
5081
+ return a`
5037
5082
  <label class="nys-textarea">
5038
5083
  <nys-label
5039
5084
  id=${this.id}
@@ -5052,6 +5097,8 @@ const b = (z = class extends u {
5052
5097
  ?readonly=${this.readonly}
5053
5098
  aria-disabled=${h(this.disabled ? "true" : void 0)}
5054
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)}
5055
5102
  placeholder=${h(
5056
5103
  this.placeholder ? this.placeholder : void 0
5057
5104
  )}
@@ -5075,7 +5122,7 @@ ${this.value}</textarea
5075
5122
  </label>
5076
5123
  `;
5077
5124
  }
5078
- }, z.VALID_WIDTHS = ["sm", "md", "lg", "full"], z.VALID_RESIZE = ["vertical", "none"], z.styles = Oe, z.formAssociated = !0, z);
5125
+ }, Z.VALID_WIDTHS = ["sm", "md", "lg", "full"], Z.VALID_RESIZE = ["vertical", "none"], Z.styles = Pe, Z.formAssociated = !0, Z);
5079
5126
  _([
5080
5127
  r({ type: String })
5081
5128
  ], b.prototype, "id", 2);
@@ -5343,14 +5390,14 @@ const Ne = g`
5343
5390
  cursor: not-allowed;
5344
5391
  }
5345
5392
  `;
5346
- var je = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, C = (a, e, t, o) => {
5347
- for (var s = o > 1 ? void 0 : o ? Ge(e, t) : e, n = a.length - 1, i; n >= 0; n--)
5348
- (i = a[n]) && (s = (o ? i(e, t, s) : i(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);
5349
5396
  return o && s && je(e, t, s), s;
5350
5397
  };
5351
5398
  let Ye = 0;
5352
- var E;
5353
- const p = (E = class extends u {
5399
+ var I;
5400
+ const p = (I = class extends u {
5354
5401
  // allows use of elementInternals' API
5355
5402
  constructor() {
5356
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();
@@ -5359,13 +5406,13 @@ const p = (E = class extends u {
5359
5406
  return this._type;
5360
5407
  }
5361
5408
  set type(e) {
5362
- this._type = E.VALID_TYPES.includes(
5409
+ this._type = I.VALID_TYPES.includes(
5363
5410
  e
5364
5411
  ) ? e : "text";
5365
5412
  }
5366
5413
  // Ensure the "width" property is valid after updates
5367
5414
  async updated(e) {
5368
- e.has("width") && (await Promise.resolve(), this.width = E.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"));
5369
5416
  }
5370
5417
  // Generate a unique ID if one is not provided
5371
5418
  connectedCallback() {
@@ -5467,7 +5514,7 @@ const p = (E = class extends u {
5467
5514
  }), e === "startButton" ? o.classList.toggle("has-start-button", n) : e === "endButton" && o.classList.toggle("has-end-button", n);
5468
5515
  }
5469
5516
  render() {
5470
- return l`
5517
+ return a`
5471
5518
  <div class="nys-textinput">
5472
5519
  <nys-label
5473
5520
  id=${this.id}
@@ -5510,7 +5557,7 @@ const p = (E = class extends u {
5510
5557
  @focus="${this._handleFocus}"
5511
5558
  @blur="${this._handleBlur}"
5512
5559
  />
5513
- ${this.type === "password" ? l` <nys-button
5560
+ ${this.type === "password" ? a` <nys-button
5514
5561
  class="eye-icon"
5515
5562
  id="password-toggle"
5516
5563
  suffixIcon="slotted"
@@ -5537,7 +5584,7 @@ const p = (E = class extends u {
5537
5584
  </div>
5538
5585
  `;
5539
5586
  }
5540
- }, E.VALID_TYPES = [
5587
+ }, I.VALID_TYPES = [
5541
5588
  "email",
5542
5589
  "number",
5543
5590
  "password",
@@ -5545,7 +5592,7 @@ const p = (E = class extends u {
5545
5592
  "tel",
5546
5593
  "text",
5547
5594
  "url"
5548
- ], E.VALID_WIDTHS = ["sm", "md", "lg", "full"], E.styles = Ne, E.formAssociated = !0, E);
5595
+ ], I.VALID_WIDTHS = ["sm", "md", "lg", "full"], I.styles = Ne, I.formAssociated = !0, I);
5549
5596
  C([
5550
5597
  r({ type: String })
5551
5598
  ], p.prototype, "id", 2);
@@ -5607,11 +5654,11 @@ C([
5607
5654
  r({ type: String })
5608
5655
  ], p.prototype, "errorMessage", 2);
5609
5656
  C([
5610
- Y()
5657
+ O()
5611
5658
  ], p.prototype, "showPassword", 2);
5612
- let Ke = p;
5613
- customElements.get("nys-textinput") || customElements.define("nys-textinput", Ke);
5614
- const We = g`
5659
+ let We = p;
5660
+ customElements.get("nys-textinput") || customElements.define("nys-textinput", We);
5661
+ const Ke = g`
5615
5662
  :host {
5616
5663
  /* Global Toggle Styles */
5617
5664
  --_nys-toggle-width: var(--nys-font-size-8xl, 44px);
@@ -5888,14 +5935,14 @@ const We = g`
5888
5935
  }
5889
5936
  }
5890
5937
  `;
5891
- var Xe = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, R = (a, e, t, o) => {
5892
- for (var s = o > 1 ? void 0 : o ? Qe(e, t) : e, n = a.length - 1, i; n >= 0; n--)
5893
- (i = a[n]) && (s = (o ? i(e, t, s) : i(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);
5894
5941
  return o && s && Xe(e, t, s), s;
5895
5942
  };
5896
5943
  let Je = 0;
5897
- var G;
5898
- const A = (G = class extends u {
5944
+ var K;
5945
+ const U = (K = class extends u {
5899
5946
  // allows use of elementInternals' API
5900
5947
  constructor() {
5901
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();
@@ -5904,7 +5951,7 @@ const A = (G = class extends u {
5904
5951
  return this._size;
5905
5952
  }
5906
5953
  set size(e) {
5907
- this._size = G.VALID_SIZES.includes(
5954
+ this._size = K.VALID_SIZES.includes(
5908
5955
  e
5909
5956
  ) ? e : "md";
5910
5957
  }
@@ -5943,7 +5990,7 @@ const A = (G = class extends u {
5943
5990
  !this.disabled && (e.key === " " || e.key === "Enter") && (e.preventDefault(), this.checked = !this.checked, this._emitChangeEvent());
5944
5991
  }
5945
5992
  render() {
5946
- return l`
5993
+ return a`
5947
5994
  <label class="nys-toggle">
5948
5995
  <div class="nys-toggle__content">
5949
5996
  <div class="nys-toggle__toggle">
@@ -5965,7 +6012,7 @@ const A = (G = class extends u {
5965
6012
  />
5966
6013
  <span class="slider">
5967
6014
  <div class="knob">
5968
- ${this.noIcon ? "" : l`<nys-icon
6015
+ ${this.noIcon ? "" : a`<nys-icon
5969
6016
  class="toggle-icon"
5970
6017
  name="${this.checked ? "check" : "close"}"
5971
6018
  size="2xl"
@@ -5981,40 +6028,403 @@ const A = (G = class extends u {
5981
6028
  </label>
5982
6029
  `;
5983
6030
  }
5984
- }, G.VALID_SIZES = ["sm", "md"], G.styles = We, G.formAssociated = !0, G);
5985
- R([
6031
+ }, K.VALID_SIZES = ["sm", "md"], K.styles = Ke, K.formAssociated = !0, K);
6032
+ N([
5986
6033
  r({ type: String })
5987
- ], A.prototype, "id", 2);
5988
- R([
6034
+ ], U.prototype, "id", 2);
6035
+ N([
5989
6036
  r({ type: String, reflect: !0 })
5990
- ], A.prototype, "name", 2);
5991
- R([
6037
+ ], U.prototype, "name", 2);
6038
+ N([
5992
6039
  r({ type: String })
5993
- ], A.prototype, "value", 2);
5994
- R([
6040
+ ], U.prototype, "value", 2);
6041
+ N([
5995
6042
  r({ type: Boolean, reflect: !0 })
5996
- ], A.prototype, "checked", 2);
5997
- R([
6043
+ ], U.prototype, "checked", 2);
6044
+ N([
5998
6045
  r({ type: Boolean, reflect: !0 })
5999
- ], A.prototype, "disabled", 2);
6000
- R([
6046
+ ], U.prototype, "disabled", 2);
6047
+ N([
6001
6048
  r({ type: Boolean })
6002
- ], A.prototype, "noIcon", 2);
6003
- R([
6049
+ ], U.prototype, "noIcon", 2);
6050
+ N([
6004
6051
  r({ type: String })
6005
- ], A.prototype, "label", 2);
6006
- R([
6052
+ ], U.prototype, "label", 2);
6053
+ N([
6007
6054
  r({ type: String })
6008
- ], A.prototype, "description", 2);
6009
- R([
6055
+ ], U.prototype, "description", 2);
6056
+ N([
6010
6057
  r({ reflect: !0 })
6011
- ], A.prototype, "size", 1);
6012
- R([
6058
+ ], U.prototype, "size", 1);
6059
+ N([
6060
+ r({ type: String })
6061
+ ], U.prototype, "form", 2);
6062
+ let et = U;
6063
+ customElements.get("nys-toggle") || customElements.define("nys-toggle", et);
6064
+ const tt = g`
6065
+ :host {
6066
+ /* Global Tooltip Styles */
6067
+ --_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
6068
+ --_nys-tooltip-background: var(--nys-color-ink, #1b1b1b);
6069
+ --_nys-tooltip-border-radius: var(--nys-radius-md, 4px);
6070
+ --_nys-tooltip-font-family: var(--nys-type-family-ui, "Proxima Nova");
6071
+ --_nys-tooltip-font-size: var(--nys-type-size-ui-sm, 14px);
6072
+ --_nys-tooltip-letterspacing: var(--nys-font-letterspacing-ui-sm, 0.044px);
6073
+ --_nys-tooltip-lineheight: var(--nys-font-lineheight-ui-sm, 24px);
6074
+ }
6075
+
6076
+ .nys-tooltip__main {
6077
+ position: relative;
6078
+ }
6079
+
6080
+ .nys-tooltip__wrapper {
6081
+ width: fit-content;
6082
+ display: flex;
6083
+ cursor: pointer;
6084
+ }
6085
+
6086
+ .nys-tooltip__trigger {
6087
+ display: flex;
6088
+ }
6089
+
6090
+ .nys-tooltip__content {
6091
+ position: absolute;
6092
+ display: none;
6093
+ max-width: 400px;
6094
+ width: max-content;
6095
+ max-height: 120px;
6096
+ padding: var(--nys-space-50, 4px) var(--nys-space-100, 8px);
6097
+ background: var(--_nys-tooltip-background);
6098
+ border-radius: var(--_nys-tooltip-border-radius);
6099
+ cursor: auto;
6100
+ z-index: 1;
6101
+ }
6102
+
6103
+ .nys-tooltip__inner {
6104
+ display: block;
6105
+ color: var(--_nys-tooltip-color);
6106
+ font-family: var(--_nys-tooltip-font-family);
6107
+ font-size: var(--_nys-tooltip-font-size);
6108
+ font-weight: 400;
6109
+ line-height: var(--_nys-tooltip-lineheight);
6110
+ letter-spacing: var(--_nys-tooltip-letterspacing);
6111
+ white-space: normal;
6112
+ word-break: break-word;
6113
+ overflow: hidden;
6114
+ text-overflow: ellipsis;
6115
+ display: -webkit-box;
6116
+ -webkit-line-clamp: 4;
6117
+ -webkit-box-orient: vertical;
6118
+ }
6119
+
6120
+ /* Tooltip Arrow (default) */
6121
+ .nys-tooltip__arrow {
6122
+ position: absolute;
6123
+ width: 14px;
6124
+ height: 6px;
6125
+ background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="6" viewBox="0 0 15 6" fill="none"><path d="M8.15079 5.44218C7.7763 5.76317 7.2237 5.76317 6.84921 5.44218L0.5 0H14.5L8.15079 5.44218Z" fill="%231B1B1B"/></svg>')
6126
+ no-repeat center;
6127
+ }
6128
+
6129
+ .nys-tooltip__content[active] {
6130
+ display: block;
6131
+ }
6132
+
6133
+ /* ===================== POSITIONING ===================== */
6134
+ /* Top */
6135
+ :host([position="top"]) .nys-tooltip__content {
6136
+ bottom: 100%;
6137
+ left: 50%;
6138
+ transform: translateX(-50%);
6139
+ margin-bottom: 10px;
6140
+ }
6141
+
6142
+ :host([position="top"]) .nys-tooltip__arrow {
6143
+ top: 100%;
6144
+ left: var(--arrow-offset-x, 50%);
6145
+ transform: translateX(-50%);
6146
+ }
6147
+
6148
+ /* Bottom */
6149
+ :host([position="bottom"]) .nys-tooltip__content {
6150
+ top: 100%;
6151
+ left: 50%;
6152
+ transform: translateX(-50%);
6153
+ margin-top: 10px;
6154
+ }
6155
+
6156
+ :host([position="bottom"]) .nys-tooltip__arrow {
6157
+ bottom: 100%;
6158
+ left: var(--arrow-offset-x, 50%);
6159
+ transform: translateX(-50%) rotate(180deg);
6160
+ }
6161
+
6162
+ /* Left */
6163
+ :host([position="left"]) .nys-tooltip__content {
6164
+ left: auto;
6165
+ right: 100%;
6166
+ top: 50%;
6167
+ transform: translateY(-50%);
6168
+ margin-right: 10px;
6169
+ }
6170
+
6171
+ :host([position="left"]) .nys-tooltip__arrow {
6172
+ left: 100%;
6173
+ top: 50%;
6174
+ transform: translateY(-50%) rotate(-90deg);
6175
+ margin-left: -4px;
6176
+ }
6177
+ /* Right */
6178
+ :host([position="right"]) .nys-tooltip__content {
6179
+ left: 100%;
6180
+ top: 50%;
6181
+ transform: translateY(-50%);
6182
+ margin-left: 10px;
6183
+ }
6184
+
6185
+ :host([position="right"]) .nys-tooltip__arrow {
6186
+ right: 100%;
6187
+ top: 50%;
6188
+ transform: translateY(-50%) rotate(90deg);
6189
+ margin-right: -4px;
6190
+ }
6191
+
6192
+ :host([inverted]) .nys-tooltip__content {
6193
+ --_nys-tooltip-color: var(--nys-color-text, #1b1b1b);
6194
+ --_nys-tooltip-background: var(--nys-color-ink-reverse, #fff);
6195
+ }
6196
+
6197
+ :host([inverted]) .nys-tooltip__arrow {
6198
+ background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="6" viewBox="0 0 15 6" fill="none"><path d="M8.15079 5.44218C7.7763 5.76317 7.2237 5.76317 6.84921 5.44218L0.5 0H14.5L8.15079 5.44218Z" fill="white"/></svg>')
6199
+ no-repeat center;
6200
+ }
6201
+
6202
+ @media (max-width: 400px) {
6203
+ .nys-tooltip__content {
6204
+ max-width: calc(
6205
+ 100vw - 2rem
6206
+ ); /* 2rem = 32px = 16px margin on each side */
6207
+ }
6208
+ }
6209
+ `;
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;
6214
+ };
6215
+ let rt = 0;
6216
+ const D1 = class D1 extends u {
6217
+ /**************** Lifecycle Methods ****************/
6218
+ constructor() {
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 = () => {
6220
+ if (this._active = !0, this._addScrollListeners(), this._userHasSetPosition && this._originalUserPosition && this._doesPositionFit(this._originalUserPosition)) {
6221
+ this.position = this._originalUserPosition, this.updateComplete.then(() => {
6222
+ var t;
6223
+ const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(
6224
+ ".nys-tooltip__content"
6225
+ );
6226
+ e && this._shiftTooltipIntoViewport(e);
6227
+ });
6228
+ return;
6229
+ }
6230
+ this.autoPositionTooltip();
6231
+ }, this._handleBlurOrMouseLeave = () => {
6232
+ var t;
6233
+ this._active = !1, this._removeScrollListeners();
6234
+ const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(
6235
+ ".nys-tooltip__content"
6236
+ );
6237
+ e && this._resetTooltipPositioningStyles(e);
6238
+ }, this._handleScrollOrResize = () => {
6239
+ this._active && (this._userHasSetPosition && this._originalUserPosition ? this._doesPositionFit(this._originalUserPosition) ? (this._setInternalPosition(this._originalUserPosition), this.updateComplete.then(() => {
6240
+ var t;
6241
+ const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(
6242
+ ".nys-tooltip__content"
6243
+ );
6244
+ e && this._shiftTooltipIntoViewport(e);
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
+ }
6255
+ };
6256
+ }
6257
+ get position() {
6258
+ return this._position;
6259
+ }
6260
+ set position(e) {
6261
+ const t = this._position;
6262
+ this._position = e, this.requestUpdate("position", t), this._internallyUpdatingPosition || (this._userHasSetPosition = e !== null, this._originalUserPosition = e);
6263
+ }
6264
+ connectedCallback() {
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);
6283
+ }
6284
+ // Listen to window scroll so a focus tooltip can auto position even when user move across the page
6285
+ _addScrollListeners() {
6286
+ window.addEventListener("scroll", this._handleScrollOrResize, !0), window.addEventListener("resize", this._handleScrollOrResize);
6287
+ }
6288
+ _removeScrollListeners() {
6289
+ window.removeEventListener("scroll", this._handleScrollOrResize, !0), window.removeEventListener("resize", this._handleScrollOrResize);
6290
+ }
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
+ }
6306
+ // Checks if user's set position fit with current viewport (Does not account for overflow texts at this moment)
6307
+ _doesPositionFit(e) {
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");
6310
+ if (!t || !o || e == null) return;
6311
+ const s = t.getBoundingClientRect(), n = o.getBoundingClientRect(), i = 8, c = {
6312
+ top: s.top - i,
6313
+ left: s.left - i,
6314
+ bottom: window.innerHeight - s.bottom - i,
6315
+ right: window.innerWidth - s.right - i
6316
+ };
6317
+ return {
6318
+ top: c.top >= n.height,
6319
+ bottom: c.bottom >= n.height,
6320
+ left: c.left >= n.width,
6321
+ right: c.right >= n.width
6322
+ }[e];
6323
+ }
6324
+ // Calculates the best placement based on available space (flips placement if it doesn't fit)
6325
+ async autoPositionTooltip() {
6326
+ var $, w;
6327
+ const e = ($ = this.shadowRoot) == null ? void 0 : $.querySelector(
6328
+ ".nys-tooltip__wrapper"
6329
+ ), t = (w = this.shadowRoot) == null ? void 0 : w.querySelector(
6330
+ ".nys-tooltip__content"
6331
+ );
6332
+ if (!e || !t) return;
6333
+ const o = e.getBoundingClientRect(), s = 8, n = {
6334
+ top: o.top - s,
6335
+ left: o.left - s,
6336
+ bottom: window.innerHeight - o.bottom - s,
6337
+ right: window.innerWidth - o.right - s
6338
+ };
6339
+ let i = [
6340
+ "top",
6341
+ "bottom",
6342
+ "right",
6343
+ "left"
6344
+ ];
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);
6352
+ return;
6353
+ }
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);
6358
+ }
6359
+ // Sets flag to distinguish to position's setter that we are updating "position" prop internally
6360
+ _setInternalPosition(e) {
6361
+ this._internallyUpdatingPosition = !0, this.position = e, this._internallyUpdatingPosition = !1;
6362
+ }
6363
+ // Determines if text of tooltip over-extends outside of viewport edge and adjust tooltip for horizontal overflow
6364
+ _shiftTooltipIntoViewport(e) {
6365
+ var w;
6366
+ const t = e.getBoundingClientRect(), s = ((w = this.shadowRoot) == null ? void 0 : w.querySelector(
6367
+ ".nys-tooltip__wrapper"
6368
+ )).getBoundingClientRect(), n = s.left + s.width / 2, i = t.left < 0, c = t.right > window.innerWidth;
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");
6370
+ const d = e.getBoundingClientRect(), $ = n - d.left;
6371
+ e.style.setProperty("--arrow-offset-x", `${$}px`);
6372
+ }
6373
+ // Reposition tooltip back to original set position (e.g. top, left, bottom, right) to avoid positioning issue base on last position
6374
+ _resetTooltipPositioningStyles(e) {
6375
+ e.style.left = "", e.style.right = "", e.style.transform = "";
6376
+ }
6377
+ render() {
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}
6394
+ class="nys-tooltip__content"
6395
+ role="tooltip"
6396
+ aria-hidden=${!this._active}
6397
+ ?active=${this._active}
6398
+ >
6399
+ <div class="nys-tooltip__inner">${this.text}</div>
6400
+ <span class="nys-tooltip__arrow"></span>
6401
+ </div>` : ""}
6402
+ </div>
6403
+ `;
6404
+ }
6405
+ };
6406
+ D1.styles = tt;
6407
+ let X = D1;
6408
+ y1([
6409
+ r({ type: String })
6410
+ ], X.prototype, "id", 2);
6411
+ y1([
6013
6412
  r({ type: String })
6014
- ], A.prototype, "form", 2);
6015
- let e2 = A;
6016
- customElements.get("nys-toggle") || customElements.define("nys-toggle", e2);
6017
- const t2 = g`
6413
+ ], X.prototype, "text", 2);
6414
+ y1([
6415
+ r({ type: Boolean, reflect: !0 })
6416
+ ], X.prototype, "inverted", 2);
6417
+ y1([
6418
+ r({ type: Boolean, reflect: !0 })
6419
+ ], X.prototype, "focusable", 2);
6420
+ y1([
6421
+ O()
6422
+ ], X.prototype, "_active", 2);
6423
+ y1([
6424
+ r({ type: String, reflect: !0 })
6425
+ ], X.prototype, "position", 1);
6426
+ customElements.get("nys-tooltip") || customElements.define("nys-tooltip", X);
6427
+ const nt = g`
6018
6428
  :host {
6019
6429
  /* Global Unav Header Styles */
6020
6430
  --_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
@@ -6361,7 +6771,7 @@ const t2 = g`
6361
6771
  display: none;
6362
6772
  }
6363
6773
  }
6364
- `, s2 = `<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">
6365
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"/>
6366
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"/>
6367
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"/>
@@ -6378,12 +6788,12 @@ const t2 = g`
6378
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"/>
6379
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"/>
6380
6790
  </svg>`;
6381
- var o2 = Object.defineProperty, r1 = (a, e, t, o) => {
6382
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
6383
- (i = a[n]) && (s = i(e, t, s) || s);
6384
- return s && o2(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;
6385
6795
  };
6386
- const L1 = class L1 extends u {
6796
+ const V1 = class V1 extends u {
6387
6797
  constructor() {
6388
6798
  super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
6389
6799
  ["English", ""],
@@ -6403,7 +6813,7 @@ const L1 = class L1 extends u {
6403
6813
  ];
6404
6814
  }
6405
6815
  _getNysLogo() {
6406
- return new DOMParser().parseFromString(s2, "image/svg+xml").documentElement;
6816
+ return new DOMParser().parseFromString(it, "image/svg+xml").documentElement;
6407
6817
  }
6408
6818
  _toggleTrustbar() {
6409
6819
  this.trustbarVisible = !this.trustbarVisible, this.trustbarVisible && (this.languageVisible = !1, this.searchDropdownVisible = !1);
@@ -6444,7 +6854,7 @@ const L1 = class L1 extends u {
6444
6854
  super.disconnectedCallback();
6445
6855
  }
6446
6856
  render() {
6447
- return l`
6857
+ return a`
6448
6858
  <header class="nys-unavheader">
6449
6859
  <div class="nys-unavheader__trustbarwrapper">
6450
6860
  <div
@@ -6542,7 +6952,7 @@ const L1 = class L1 extends u {
6542
6952
  </div>
6543
6953
  </div>
6544
6954
  <div class="nys-unavheader__right">
6545
- ${this.hideTranslate ? null : l`<div class="nys-unavheader__translatewrapper">
6955
+ ${this.hideTranslate ? null : a`<div class="nys-unavheader__translatewrapper">
6546
6956
  <div
6547
6957
  class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
6548
6958
  >
@@ -6562,7 +6972,7 @@ const L1 = class L1 extends u {
6562
6972
  ></nys-icon>
6563
6973
  </nys-button>
6564
6974
  </div>
6565
- ${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">
6566
6976
  <nys-button
6567
6977
  variant="ghost"
6568
6978
  label="Translate"
@@ -6577,7 +6987,7 @@ const L1 = class L1 extends u {
6577
6987
  class="nys-unavheader__languagelist ${this.languageVisible ? "show" : "hide"}"
6578
6988
  >
6579
6989
  ${this.languages.map(
6580
- ([e, t]) => l`<a
6990
+ ([e, t]) => a`<a
6581
6991
  class="nys-unavheader__languagelink"
6582
6992
  target="_self"
6583
6993
  href="https://${t ? t + "." : ""}${window.location.hostname}"
@@ -6586,7 +6996,7 @@ const L1 = class L1 extends u {
6586
6996
  )}
6587
6997
  </div>
6588
6998
  </div>`}
6589
- ${this.hideSearch ? null : l` <div
6999
+ ${this.hideSearch ? null : a` <div
6590
7000
  class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
6591
7001
  >
6592
7002
  <nys-button
@@ -6619,6 +7029,7 @@ const L1 = class L1 extends u {
6619
7029
  slot="endButton"
6620
7030
  type="submit"
6621
7031
  prefixIcon="search"
7032
+ ariaLabel="Search"
6622
7033
  .onClick="${() => this._handleSearchButton(
6623
7034
  "nys-unavheader__searchbar"
6624
7035
  )}"
@@ -6645,6 +7056,7 @@ const L1 = class L1 extends u {
6645
7056
  slot="endButton"
6646
7057
  type="submit"
6647
7058
  prefixIcon="search"
7059
+ ariaLabel="Search"
6648
7060
  .onClick="${() => this._handleSearchButton(
6649
7061
  "nys-unavheader__searchbardropdown"
6650
7062
  )}"
@@ -6656,31 +7068,31 @@ const L1 = class L1 extends u {
6656
7068
  `;
6657
7069
  }
6658
7070
  };
6659
- L1.styles = t2;
6660
- let q = L1;
6661
- r1([
7071
+ V1.styles = nt;
7072
+ let P = V1;
7073
+ l1([
6662
7074
  r({ type: Boolean })
6663
- ], q.prototype, "trustbarVisible");
6664
- r1([
7075
+ ], P.prototype, "trustbarVisible");
7076
+ l1([
6665
7077
  r({ type: Boolean })
6666
- ], q.prototype, "searchDropdownVisible");
6667
- r1([
7078
+ ], P.prototype, "searchDropdownVisible");
7079
+ l1([
6668
7080
  r({ type: Boolean })
6669
- ], q.prototype, "languageVisible");
6670
- r1([
7081
+ ], P.prototype, "languageVisible");
7082
+ l1([
6671
7083
  r({ type: Boolean })
6672
- ], q.prototype, "isSearchFocused");
6673
- r1([
7084
+ ], P.prototype, "isSearchFocused");
7085
+ l1([
6674
7086
  r({ type: Boolean })
6675
- ], q.prototype, "hideTranslate");
6676
- r1([
7087
+ ], P.prototype, "hideTranslate");
7088
+ l1([
6677
7089
  r({ type: Boolean })
6678
- ], q.prototype, "hideSearch");
6679
- r1([
7090
+ ], P.prototype, "hideSearch");
7091
+ l1([
6680
7092
  r({ type: String, reflect: !0 })
6681
- ], q.prototype, "languages");
6682
- customElements.get("nys-unavheader") || customElements.define("nys-unavheader", q);
6683
- const r2 = g`
7093
+ ], P.prototype, "languages");
7094
+ customElements.get("nys-unavheader") || customElements.define("nys-unavheader", P);
7095
+ const lt = g`
6684
7096
  :host {
6685
7097
  /* Global Header Styles */
6686
7098
  --_nys-globalheader-text-color: var(
@@ -6961,12 +7373,12 @@ const r2 = g`
6961
7373
  }
6962
7374
  }
6963
7375
  `;
6964
- var n2 = Object.defineProperty, y1 = (a, e, t, o) => {
6965
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
6966
- (i = a[n]) && (s = i(e, t, s) || s);
6967
- return s && n2(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;
6968
7380
  };
6969
- const $1 = class $1 extends u {
7381
+ const M1 = class M1 extends u {
6970
7382
  constructor() {
6971
7383
  super(...arguments), this.appName = "", this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0, this.isMobileMenuOpen = !1;
6972
7384
  }
@@ -6991,10 +7403,10 @@ const $1 = class $1 extends u {
6991
7403
  );
6992
7404
  o && s && (o.innerHTML = "", s.innerHTML = "", t.forEach((d) => {
6993
7405
  if (d.nodeType === Node.ELEMENT_NODE) {
6994
- const B = d.cloneNode(!0), c1 = d.cloneNode(!0);
6995
- ["script", "iframe", "object", "embed, img"].forEach((Z1) => {
6996
- B.querySelectorAll(Z1).forEach((I1) => I1.remove());
6997
- }), o.appendChild(B), s.appendChild(c1), 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();
6998
7410
  }
6999
7411
  }));
7000
7412
  }
@@ -7003,10 +7415,10 @@ const $1 = class $1 extends u {
7003
7415
  }
7004
7416
  render() {
7005
7417
  var e, t, o, s, n, i, c, d;
7006
- return l`
7418
+ return a`
7007
7419
  <header class="nys-globalheader">
7008
7420
  <div class="nys-globalheader__main-container">
7009
- ${this.slotHasContent ? l` <div class="nys-globalheader__button-container">
7421
+ ${this.slotHasContent ? a` <div class="nys-globalheader__button-container">
7010
7422
  <button
7011
7423
  class="nys-globalheader__mobile-menu-button"
7012
7424
  @click="${this._toggleMobileMenu}"
@@ -7021,37 +7433,37 @@ const $1 = class $1 extends u {
7021
7433
  >
7022
7434
  </button>
7023
7435
  </div>` : ""}
7024
- ${(e = this.homepageLink) != null && e.trim() ? l`<a
7436
+ ${(e = this.homepageLink) != null && e.trim() ? a`<a
7025
7437
  class="nys-globalheader__name-container-link"
7026
7438
  href=${(n = this.homepageLink) == null ? void 0 : n.trim()}
7027
7439
  >
7028
7440
  <div class="nys-globalheader__name-container">
7029
- ${((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
7030
7442
  class="nys-globalheader__appName nys-globalheader__name"
7031
7443
  >
7032
7444
  ${this.appName}
7033
7445
  </div> ` : ""}
7034
- ${((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
7035
7447
  class="nys-globalheader__agencyName nys-globalheader__name ${((d = this.appName) == null ? void 0 : d.trim().length) > 0 ? "" : "main"}"
7036
7448
  >
7037
7449
  ${this.agencyName}
7038
7450
  </div> ` : ""}
7039
7451
  </div>
7040
- </a>` : l`
7452
+ </a>` : a`
7041
7453
  <div class="nys-globalheader__name-container">
7042
- ${((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
7043
7455
  class="nys-globalheader__appName nys-globalheader__name"
7044
7456
  >
7045
7457
  ${this.appName}
7046
7458
  </div> ` : ""}
7047
- ${((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
7048
7460
  class="nys-globalheader__agencyName nys-globalheader__name ${((s = this.appName) == null ? void 0 : s.trim().length) > 0 ? "" : "main"}"
7049
7461
  >
7050
7462
  ${this.agencyName}
7051
7463
  </div> ` : ""}
7052
7464
  </div>
7053
7465
  `}
7054
- ${this.slotHasContent ? l`<div class="nys-globalheader__content">
7466
+ ${this.slotHasContent ? a`<div class="nys-globalheader__content">
7055
7467
  <slot
7056
7468
  style="display: hidden"
7057
7469
  @slotchange="${this._handleSlotChange}"
@@ -7065,25 +7477,25 @@ const $1 = class $1 extends u {
7065
7477
  `;
7066
7478
  }
7067
7479
  };
7068
- $1.styles = r2;
7069
- let J = $1;
7070
- y1([
7480
+ M1.styles = lt;
7481
+ let s1 = M1;
7482
+ g1([
7071
7483
  r({ type: String })
7072
- ], J.prototype, "appName");
7073
- y1([
7484
+ ], s1.prototype, "appName");
7485
+ g1([
7074
7486
  r({ type: String })
7075
- ], J.prototype, "agencyName");
7076
- y1([
7487
+ ], s1.prototype, "agencyName");
7488
+ g1([
7077
7489
  r({ type: String })
7078
- ], J.prototype, "homepageLink");
7079
- y1([
7080
- Y()
7081
- ], J.prototype, "slotHasContent");
7082
- y1([
7083
- Y()
7084
- ], J.prototype, "isMobileMenuOpen");
7085
- customElements.get("nys-globalheader") || customElements.define("nys-globalheader", J);
7086
- const i2 = g`
7490
+ ], s1.prototype, "homepageLink");
7491
+ g1([
7492
+ O()
7493
+ ], s1.prototype, "slotHasContent");
7494
+ g1([
7495
+ O()
7496
+ ], s1.prototype, "isMobileMenuOpen");
7497
+ customElements.get("nys-globalheader") || customElements.define("nys-globalheader", s1);
7498
+ const dt = g`
7087
7499
  :host {
7088
7500
  /* Global Footer Styles */
7089
7501
  --_nys-globalfooter-text-color: var(
@@ -7239,12 +7651,12 @@ const i2 = g`
7239
7651
  }
7240
7652
  }
7241
7653
  `;
7242
- var a2 = Object.defineProperty, _1 = (a, e, t, o) => {
7243
- for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
7244
- (i = a[n]) && (s = i(e, t, s) || s);
7245
- return s && a2(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;
7246
7658
  };
7247
- const S1 = class S1 extends u {
7659
+ const z1 = class z1 extends u {
7248
7660
  constructor() {
7249
7661
  super(...arguments), this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0;
7250
7662
  }
@@ -7270,21 +7682,21 @@ const S1 = class S1 extends u {
7270
7682
  o && (o.classList.toggle("columns", s), o.classList.toggle("small", !s), o.innerHTML = "", t.forEach((c) => {
7271
7683
  if (c.nodeType === Node.ELEMENT_NODE) {
7272
7684
  const d = c.cloneNode(!0);
7273
- ["script", "iframe", "object", "embed", "img"].forEach((c1) => {
7274
- d.querySelectorAll(c1).forEach((M1) => M1.remove());
7685
+ ["script", "iframe", "object", "embed", "img"].forEach((w) => {
7686
+ d.querySelectorAll(w).forEach((k) => k.remove());
7275
7687
  }), o.appendChild(d), c.remove();
7276
7688
  }
7277
7689
  }));
7278
7690
  }
7279
7691
  render() {
7280
7692
  var e, t;
7281
- return l`
7693
+ return a`
7282
7694
  <footer class="nys-globalfooter">
7283
7695
  <div class="nys-globalfooter__main-container">
7284
- ${(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()}>
7285
7697
  <p class="nys-globalfooter__name">${this.agencyName}</p>
7286
- </a>` : l`<p class="nys-globalfooter__name">${this.agencyName}</p>`}
7287
- ${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">
7288
7700
  <slot
7289
7701
  style="display: hidden"
7290
7702
  @slotchange="${this._handleSlotChange}"
@@ -7295,19 +7707,19 @@ const S1 = class S1 extends u {
7295
7707
  `;
7296
7708
  }
7297
7709
  };
7298
- S1.styles = i2;
7299
- let a1 = S1;
7300
- _1([
7710
+ z1.styles = dt;
7711
+ let h1 = z1;
7712
+ w1([
7301
7713
  r({ type: String })
7302
- ], a1.prototype, "agencyName");
7303
- _1([
7714
+ ], h1.prototype, "agencyName");
7715
+ w1([
7304
7716
  r({ type: String })
7305
- ], a1.prototype, "homepageLink");
7306
- _1([
7307
- Y()
7308
- ], a1.prototype, "slotHasContent");
7309
- customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", a1);
7310
- const l2 = g`
7717
+ ], h1.prototype, "homepageLink");
7718
+ w1([
7719
+ O()
7720
+ ], h1.prototype, "slotHasContent");
7721
+ customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", h1);
7722
+ const yt = g`
7311
7723
  :host {
7312
7724
  /* Global Footer Styles */
7313
7725
  --_nys-unavfooter-link-color: var(
@@ -7463,7 +7875,7 @@ const l2 = g`
7463
7875
  --_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
7464
7876
  }
7465
7877
  }
7466
- `, c2 = `<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">
7467
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"/>
7468
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"/>
7469
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"/>
@@ -7479,13 +7891,13 @@ const l2 = g`
7479
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"/>
7480
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"/>
7481
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"/>
7482
- </svg>`, D1 = class D1 extends u {
7894
+ </svg>`, E1 = class E1 extends u {
7483
7895
  /**************** Functions ****************/
7484
7896
  _getNysLogo() {
7485
- return new DOMParser().parseFromString(c2, "image/svg+xml").documentElement;
7897
+ return new DOMParser().parseFromString(ut, "image/svg+xml").documentElement;
7486
7898
  }
7487
7899
  render() {
7488
- return l`
7900
+ return a`
7489
7901
  <footer class="nys-unavfooter">
7490
7902
  <div class="nys-unavfooter__main-container">
7491
7903
  <div class="nys-unavfooter__container_menu">
@@ -7516,31 +7928,32 @@ const l2 = g`
7516
7928
  `;
7517
7929
  }
7518
7930
  };
7519
- D1.styles = l2;
7520
- let v1 = D1;
7521
- customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", v1);
7931
+ E1.styles = yt;
7932
+ let _1 = E1;
7933
+ customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", _1);
7522
7934
  export {
7523
- O1 as NysAlert,
7524
- N1 as NysAvatar,
7525
- n1 as NysBacktotop,
7526
- Q1 as NysButton,
7527
- ie as NysCheckbox,
7528
- se as NysCheckboxgroup,
7529
- i1 as NysErrorMessage,
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,
7530
7942
  m as NysFileinput,
7531
- a1 as NysGlobalFooter,
7532
- J as NysGlobalHeader,
7943
+ h1 as NysGlobalFooter,
7944
+ s1 as NysGlobalHeader,
7533
7945
  me as NysIcon,
7534
- t1 as NysLabel,
7535
- o1 as NysOption,
7946
+ n1 as NysLabel,
7947
+ a1 as NysOption,
7536
7948
  ze as NysRadiobutton,
7537
- Se as NysRadiogroup,
7949
+ $e as NysRadiogroup,
7538
7950
  Be as NysSelect,
7539
- d1 as NysSkipnav,
7951
+ u1 as NysSkipnav,
7540
7952
  Fe as NysTextarea,
7541
- Ke as NysTextinput,
7542
- e2 as NysToggle,
7543
- v1 as NysUnavFooter,
7544
- q as NysUnavHeader
7953
+ We as NysTextinput,
7954
+ et as NysToggle,
7955
+ X as NysTooltip,
7956
+ _1 as NysUnavFooter,
7957
+ P as NysUnavHeader
7545
7958
  };
7546
7959
  //# sourceMappingURL=nysds.es.js.map