@nysds/components 1.8.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nysds.es.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { css as u, LitElement as y, html as l } from "lit";
2
- import { property as n, query as re, state as E } from "lit/decorators.js";
2
+ import { property as r, query as ye, state as I } from "lit/decorators.js";
3
3
  import { ifDefined as h } from "lit/directives/if-defined.js";
4
4
  /*!
5
- * New York State Design System (v1.8.0)
5
+ * New York State Design System (v1.9.1)
6
6
  * Description: A design system for New York State's digital products.
7
7
  * Repository: https://github.com/its-hcd/nysds
8
8
  * License: MIT
9
9
  */
10
- const J1 = u`
10
+ const ne = u`
11
11
  :host {
12
12
  /* Anything that can be overridden should be defined here */
13
13
 
@@ -153,13 +153,13 @@ const J1 = u`
153
153
  gap: var(--_nys-accordion-gap);
154
154
  }
155
155
  `;
156
- var ne = Object.defineProperty, L1 = (a, e, t, o) => {
157
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
158
- (i = a[r]) && (s = i(e, t, s) || s);
159
- return s && ne(e, t, s), s;
156
+ var ue = Object.defineProperty, k1 = (a, e, t, o) => {
157
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
158
+ (i = a[n]) && (s = i(e, t, s) || s);
159
+ return s && ue(e, t, s), s;
160
160
  };
161
- let ie = 0;
162
- const U1 = class U1 extends y {
161
+ let pe = 0;
162
+ const T1 = class T1 extends y {
163
163
  /**************** Lifecycle Methods ****************/
164
164
  constructor() {
165
165
  super(), this.id = "", this.heading = "", this.expanded = !1, this.bordered = !1;
@@ -179,7 +179,7 @@ const U1 = class U1 extends y {
179
179
  }
180
180
  /******************** Functions ********************/
181
181
  _generateUniqueId() {
182
- return `nys-accordionitem-${Date.now()}-${ie++}`;
182
+ return `nys-accordionitem-${Date.now()}-${pe++}`;
183
183
  }
184
184
  _dispatchEvent() {
185
185
  this.dispatchEvent(
@@ -206,7 +206,8 @@ const U1 = class U1 extends y {
206
206
  }
207
207
  render() {
208
208
  const e = `${this.id}-content`;
209
- return l`<div id=${this.id} class="nys-accordionitem">
209
+ return l`
210
+ <div id=${this.id} class="nys-accordionitem">
210
211
  <button
211
212
  class="nys-accordionitem__heading"
212
213
  type="button"
@@ -217,6 +218,7 @@ const U1 = class U1 extends y {
217
218
  >
218
219
  <p class="nys-accordionitem__heading-title">${this.heading}</p>
219
220
  <nys-icon class="expand-icon" name="chevron_down" size="24"></nys-icon>
221
+ </button>
220
222
  </div>
221
223
  <div id=${e} class="nys-accordionitem__content ${this.expanded ? "expanded" : "collapsed"}" role="region">
222
224
  <div class="nys-accordionitem__content-slot-container">
@@ -228,31 +230,31 @@ const U1 = class U1 extends y {
228
230
  </div>`;
229
231
  }
230
232
  };
231
- U1.styles = J1;
232
- let n1 = U1;
233
- L1([
234
- n({ type: String })
233
+ T1.styles = ne;
234
+ let n1 = T1;
235
+ k1([
236
+ r({ type: String })
235
237
  ], n1.prototype, "id");
236
- L1([
237
- n({ type: String })
238
+ k1([
239
+ r({ type: String })
238
240
  ], n1.prototype, "heading");
239
- L1([
240
- n({ type: Boolean, reflect: !0 })
241
+ k1([
242
+ r({ type: Boolean, reflect: !0 })
241
243
  ], n1.prototype, "expanded");
242
- L1([
243
- n({ type: Boolean, reflect: !0 })
244
+ k1([
245
+ r({ type: Boolean, reflect: !0 })
244
246
  ], n1.prototype, "bordered");
245
- L1([
246
- re(".nys-accordionitem__content")
247
+ k1([
248
+ ye(".nys-accordionitem__content")
247
249
  ], n1.prototype, "_contentContainer");
248
250
  customElements.get("nys-accordionitem") || customElements.define("nys-accordionitem", n1);
249
- var ae = Object.defineProperty, Z1 = (a, e, t, o) => {
250
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
251
- (i = a[r]) && (s = i(e, t, s) || s);
252
- return s && ae(e, t, s), s;
251
+ var ve = Object.defineProperty, O1 = (a, e, t, o) => {
252
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
253
+ (i = a[n]) && (s = i(e, t, s) || s);
254
+ return s && ve(e, t, s), s;
253
255
  };
254
- let le = 0;
255
- const O1 = class O1 extends y {
256
+ let fe = 0;
257
+ const R1 = class R1 extends y {
256
258
  /**************** Lifecycle Methods ****************/
257
259
  constructor() {
258
260
  super(), this.id = "", this.singleSelect = !1, this.bordered = !1;
@@ -265,7 +267,7 @@ const O1 = class O1 extends y {
265
267
  }
266
268
  /******************** Functions ********************/
267
269
  _generateUniqueId() {
268
- return `nys-accordionitem-${Date.now()}-${le++}`;
270
+ return `nys-accordionitem-${Date.now()}-${fe++}`;
269
271
  }
270
272
  _getAccordions() {
271
273
  var o;
@@ -296,19 +298,19 @@ const O1 = class O1 extends y {
296
298
  </div>`;
297
299
  }
298
300
  };
299
- O1.styles = J1;
300
- let f1 = O1;
301
- Z1([
302
- n({ type: String })
303
- ], f1.prototype, "id");
304
- Z1([
305
- n({ type: Boolean, reflect: !0 })
306
- ], f1.prototype, "singleSelect");
307
- Z1([
308
- n({ type: Boolean, reflect: !0 })
309
- ], f1.prototype, "bordered");
310
- customElements.get("nys-accordion") || customElements.define("nys-accordion", f1);
311
- const ce = u`
301
+ R1.styles = ne;
302
+ let v1 = R1;
303
+ O1([
304
+ r({ type: String })
305
+ ], v1.prototype, "id");
306
+ O1([
307
+ r({ type: Boolean, reflect: !0 })
308
+ ], v1.prototype, "singleSelect");
309
+ O1([
310
+ r({ type: Boolean, reflect: !0 })
311
+ ], v1.prototype, "bordered");
312
+ customElements.get("nys-accordion") || customElements.define("nys-accordion", v1);
313
+ const ge = u`
312
314
  :host {
313
315
  /* Global Alert Styles */
314
316
  --_nys-alert-border-width: var(--nys-border-width-lg, 4px);
@@ -541,14 +543,14 @@ const ce = u`
541
543
  text-decoration-thickness: 3px;
542
544
  }
543
545
  `;
544
- var de = Object.defineProperty, he = Object.getOwnPropertyDescriptor, z = (a, e, t, o) => {
545
- for (var s = o > 1 ? void 0 : o ? he(e, t) : e, r = a.length - 1, i; r >= 0; r--)
546
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
547
- return o && s && de(e, t, s), s;
546
+ var be = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, B = (a, e, t, o) => {
547
+ for (var s = o > 1 ? void 0 : o ? Ce(e, t) : e, n = a.length - 1, i; n >= 0; n--)
548
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
549
+ return o && s && be(e, t, s), s;
548
550
  };
549
- let ye = 0;
551
+ let _e = 0;
550
552
  var o1;
551
- const S = (o1 = class extends y {
553
+ const E = (o1 = class extends y {
552
554
  constructor() {
553
555
  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;
554
556
  }
@@ -579,7 +581,7 @@ const S = (o1 = class extends y {
579
581
  }
580
582
  /******************** Functions ********************/
581
583
  _generateUniqueId() {
582
- return `nys-alert-${Date.now()}-${ye++}`;
584
+ return `nys-alert-${Date.now()}-${_e++}`;
583
585
  }
584
586
  // Helper function for overriding default icons or checking special naming cases (e.g. type=success)
585
587
  _getIconName() {
@@ -603,8 +605,8 @@ const S = (o1 = class extends y {
603
605
  if (e) {
604
606
  const o = e.assignedNodes({ flatten: !0 }).filter(
605
607
  (s) => {
606
- var r;
607
- return s.nodeType === Node.ELEMENT_NODE || s.nodeType === Node.TEXT_NODE && ((r = s.textContent) == null ? void 0 : r.trim());
608
+ var n;
609
+ return s.nodeType === Node.ELEMENT_NODE || s.nodeType === Node.TEXT_NODE && ((n = s.textContent) == null ? void 0 : n.trim());
608
610
  }
609
611
  );
610
612
  await Promise.resolve(), this._slotHasContent = o.length > 0;
@@ -660,7 +662,7 @@ const S = (o1 = class extends y {
660
662
  </div>`}
661
663
  `;
662
664
  }
663
- }, o1.styles = ce, o1.VALID_TYPES = [
665
+ }, o1.styles = ge, o1.VALID_TYPES = [
664
666
  "base",
665
667
  "info",
666
668
  "success",
@@ -668,48 +670,48 @@ const S = (o1 = class extends y {
668
670
  "danger",
669
671
  "emergency"
670
672
  ], o1);
671
- z([
672
- n({ type: String })
673
- ], S.prototype, "id", 2);
674
- z([
675
- n({ type: String })
676
- ], S.prototype, "heading", 2);
677
- z([
678
- n({ type: String })
679
- ], S.prototype, "icon", 2);
680
- z([
681
- n({ type: Boolean, reflect: !0 })
682
- ], S.prototype, "dismissible", 2);
683
- z([
684
- n({ type: Number, reflect: !0 })
685
- ], S.prototype, "duration", 2);
686
- z([
687
- n({ type: String })
688
- ], S.prototype, "text", 2);
689
- z([
690
- n({ type: String })
691
- ], S.prototype, "primaryAction", 2);
692
- z([
693
- n({ type: String })
694
- ], S.prototype, "secondaryAction", 2);
695
- z([
696
- n({ type: String })
697
- ], S.prototype, "primaryLabel", 2);
698
- z([
699
- n({ type: String })
700
- ], S.prototype, "secondaryLabel", 2);
701
- z([
702
- E()
703
- ], S.prototype, "_alertClosed", 2);
704
- z([
705
- E()
706
- ], S.prototype, "_slotHasContent", 2);
707
- z([
708
- n({ reflect: !0 })
709
- ], S.prototype, "type", 1);
710
- let ue = S;
711
- customElements.get("nys-alert") || customElements.define("nys-alert", ue);
712
- const pe = u`
673
+ B([
674
+ r({ type: String })
675
+ ], E.prototype, "id", 2);
676
+ B([
677
+ r({ type: String })
678
+ ], E.prototype, "heading", 2);
679
+ B([
680
+ r({ type: String })
681
+ ], E.prototype, "icon", 2);
682
+ B([
683
+ r({ type: Boolean, reflect: !0 })
684
+ ], E.prototype, "dismissible", 2);
685
+ B([
686
+ r({ type: Number, reflect: !0 })
687
+ ], E.prototype, "duration", 2);
688
+ B([
689
+ r({ type: String })
690
+ ], E.prototype, "text", 2);
691
+ B([
692
+ r({ type: String })
693
+ ], E.prototype, "primaryAction", 2);
694
+ B([
695
+ r({ type: String })
696
+ ], E.prototype, "secondaryAction", 2);
697
+ B([
698
+ r({ type: String })
699
+ ], E.prototype, "primaryLabel", 2);
700
+ B([
701
+ r({ type: String })
702
+ ], E.prototype, "secondaryLabel", 2);
703
+ B([
704
+ I()
705
+ ], E.prototype, "_alertClosed", 2);
706
+ B([
707
+ I()
708
+ ], E.prototype, "_slotHasContent", 2);
709
+ B([
710
+ r({ reflect: !0 })
711
+ ], E.prototype, "type", 1);
712
+ let me = E;
713
+ customElements.get("nys-alert") || customElements.define("nys-alert", me);
714
+ const xe = u`
713
715
  :host {
714
716
  /* Global Avatar Styles */
715
717
 
@@ -811,20 +813,20 @@ const pe = u`
811
813
  fill: currentColor;
812
814
  }
813
815
  `;
814
- var ve = Object.defineProperty, G = (a, e, t, o) => {
815
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
816
- (i = a[r]) && (s = i(e, t, s) || s);
817
- return s && ve(e, t, s), s;
816
+ var we = Object.defineProperty, G = (a, e, t, o) => {
817
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
818
+ (i = a[n]) && (s = i(e, t, s) || s);
819
+ return s && we(e, t, s), s;
818
820
  };
819
- let fe = 0;
820
- const P1 = class P1 extends y {
821
+ let ke = 0;
822
+ const F1 = class F1 extends y {
821
823
  constructor() {
822
824
  super(...arguments), this.id = "", this.ariaLabel = "", this.image = "", this.initials = "", this.icon = "", this.color = "", this.interactive = !1, this.disabled = !1, this.lazy = !1, this._slotHasContent = !0;
823
825
  }
824
826
  /******************** Functions ********************/
825
827
  // Generate a unique ID if one is not provided
826
828
  connectedCallback() {
827
- super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${fe++}`);
829
+ super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${ke++}`);
828
830
  }
829
831
  firstUpdated() {
830
832
  this._checkSlotContent();
@@ -839,25 +841,25 @@ const P1 = class P1 extends y {
839
841
  await Promise.resolve();
840
842
  const t = e.assignedNodes({ flatten: !0 }).filter(
841
843
  (s) => {
842
- var r;
843
- return s.nodeType === Node.ELEMENT_NODE || s.nodeType === Node.TEXT_NODE && ((r = s.textContent) == null ? void 0 : r.trim());
844
+ var n;
845
+ return s.nodeType === Node.ELEMENT_NODE || s.nodeType === Node.TEXT_NODE && ((n = s.textContent) == null ? void 0 : n.trim());
844
846
  }
845
847
  );
846
848
  this._slotHasContent = t.length > 0;
847
849
  }
848
850
  // This function accounts for user set "color" prop and return the appropriate foreground contrast.
849
851
  getContrastForeground() {
850
- var F;
852
+ var m1;
851
853
  const e = "var(--nys-color-ink, #000)", t = "var(--nys-color-ink-reverse, #fff)", o = "var(--nys-color-text, #000)", s = "var(--nys-color-text-reverse, #fff)";
852
854
  if (!this.color) return;
853
- const r = document.createElement("div");
854
- r.style.color = this.color, document.body.appendChild(r);
855
- const i = getComputedStyle(r).color;
856
- document.body.removeChild(r);
855
+ const n = document.createElement("div");
856
+ n.style.color = this.color, document.body.appendChild(n);
857
+ const i = getComputedStyle(n).color;
858
+ document.body.removeChild(n);
857
859
  const c = i.match(/\d+/g);
858
860
  if (!c) return;
859
- const d = Number(c[0]), f = Number(c[1]), x = Number(c[2]), A1 = (0.299 * d + 0.587 * f + 0.114 * x) / 255 < 0.5;
860
- return ((F = this.initials) == null ? void 0 : F.length) > 0 ? A1 ? s : o : A1 ? t : e;
861
+ const d = Number(c[0]), g = Number(c[1]), k = Number(c[2]), I1 = (0.299 * d + 0.587 * g + 0.114 * k) / 255 < 0.5;
862
+ return ((m1 = this.initials) == null ? void 0 : m1.length) > 0 ? I1 ? s : o : I1 ? t : e;
861
863
  }
862
864
  render() {
863
865
  var e, t, o;
@@ -901,43 +903,40 @@ const P1 = class P1 extends y {
901
903
  `;
902
904
  }
903
905
  };
904
- P1.styles = pe;
905
- let D = P1;
906
+ F1.styles = xe;
907
+ let A = F1;
906
908
  G([
907
- n({ type: String })
908
- ], D.prototype, "id");
909
+ r({ type: String })
910
+ ], A.prototype, "id");
909
911
  G([
910
- n({ type: String })
911
- ], D.prototype, "ariaLabel");
912
+ r({ type: String })
913
+ ], A.prototype, "ariaLabel");
912
914
  G([
913
- n({ type: String })
914
- ], D.prototype, "image");
915
+ r({ type: String })
916
+ ], A.prototype, "image");
915
917
  G([
916
- n({ type: String })
917
- ], D.prototype, "initials");
918
+ r({ type: String })
919
+ ], A.prototype, "initials");
918
920
  G([
919
- n({ type: String })
920
- ], D.prototype, "icon");
921
+ r({ type: String })
922
+ ], A.prototype, "icon");
921
923
  G([
922
- n({ type: String })
923
- ], D.prototype, "color");
924
+ r({ type: String })
925
+ ], A.prototype, "color");
924
926
  G([
925
- n({ type: Boolean, reflect: !0 })
926
- ], D.prototype, "interactive");
927
+ r({ type: Boolean, reflect: !0 })
928
+ ], A.prototype, "interactive");
927
929
  G([
928
- n({ type: Boolean, reflect: !0 })
929
- ], D.prototype, "disabled");
930
+ r({ type: Boolean, reflect: !0 })
931
+ ], A.prototype, "disabled");
930
932
  G([
931
- n({ type: Boolean, reflect: !0 })
932
- ], D.prototype, "lazy");
933
+ r({ type: Boolean, reflect: !0 })
934
+ ], A.prototype, "lazy");
933
935
  G([
934
- E()
935
- ], D.prototype, "_slotHasContent");
936
- customElements.get("nys-avatar") || customElements.define("nys-avatar", D);
937
- const ge = u`
938
- :host {
939
- }
940
-
936
+ I()
937
+ ], A.prototype, "_slotHasContent");
938
+ customElements.get("nys-avatar") || customElements.define("nys-avatar", A);
939
+ const Le = u`
941
940
  .nys-backtotop {
942
941
  /* These props ARE NOT publicly overridable */
943
942
  --_nys-button-border-radius--left: var(--nys-radius-round, 1776px);
@@ -961,12 +960,12 @@ const ge = u`
961
960
  display: inline-flex;
962
961
  }
963
962
  `;
964
- var be = Object.defineProperty, M1 = (a, e, t, o) => {
965
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
966
- (i = a[r]) && (s = i(e, t, s) || s);
967
- return s && be(e, t, s), s;
963
+ var Se = Object.defineProperty, H1 = (a, e, t, o) => {
964
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
965
+ (i = a[n]) && (s = i(e, t, s) || s);
966
+ return s && Se(e, t, s), s;
968
967
  };
969
- const T1 = class T1 extends y {
968
+ const N1 = class N1 extends y {
970
969
  constructor() {
971
970
  super(), this.position = "right", this.visible = !1, this.isMobile = !1, this.forceVisible = !1, this._handleScroll = this._handleScroll.bind(this), this._handleResize = this._handleResize.bind(this), this.mediaQuery = window.matchMedia("(max-width: 480px)");
972
971
  }
@@ -1005,22 +1004,22 @@ const T1 = class T1 extends y {
1005
1004
  ></nys-button>`;
1006
1005
  }
1007
1006
  };
1008
- T1.styles = ge;
1009
- let c1 = T1;
1010
- M1([
1011
- n({ type: String })
1007
+ N1.styles = Le;
1008
+ let c1 = N1;
1009
+ H1([
1010
+ r({ type: String })
1012
1011
  ], c1.prototype, "position");
1013
- M1([
1014
- n({ type: Boolean, reflect: !0 })
1012
+ H1([
1013
+ r({ type: Boolean, reflect: !0 })
1015
1014
  ], c1.prototype, "visible");
1016
- M1([
1017
- E()
1015
+ H1([
1016
+ I()
1018
1017
  ], c1.prototype, "isMobile");
1019
- M1([
1020
- E()
1018
+ H1([
1019
+ I()
1021
1020
  ], c1.prototype, "forceVisible");
1022
1021
  customElements.get("nys-backtotop") || customElements.define("nys-backtotop", c1);
1023
- const Ce = u`
1022
+ const $e = u`
1024
1023
  :host {
1025
1024
  /* Anything that can be overridden should be defined here */
1026
1025
 
@@ -1679,17 +1678,17 @@ const Ce = u`
1679
1678
  user-select: none;
1680
1679
  }
1681
1680
  `;
1682
- var _e = Object.defineProperty, me = Object.getOwnPropertyDescriptor, _ = (a, e, t, o) => {
1683
- for (var s = o > 1 ? void 0 : o ? me(e, t) : e, r = a.length - 1, i; r >= 0; r--)
1684
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
1685
- return o && s && _e(e, t, s), s;
1681
+ var De = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, _ = (a, e, t, o) => {
1682
+ for (var s = o > 1 ? void 0 : o ? Ee(e, t) : e, n = a.length - 1, i; n >= 0; n--)
1683
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
1684
+ return o && s && De(e, t, s), s;
1686
1685
  };
1687
- let xe = 0;
1686
+ let ze = 0;
1688
1687
  var L;
1689
- const g = (L = class extends y {
1688
+ const b = (L = class extends y {
1690
1689
  // allows use of elementInternals' API
1691
1690
  constructor() {
1692
- 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 = () => {
1691
+ 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 = null, this.value = "", this.ariaDescription = "", this._type = "button", this.onClick = () => {
1693
1692
  }, this.href = "", this._target = "_self", this._internals = this.attachInternals();
1694
1693
  }
1695
1694
  get size() {
@@ -1729,7 +1728,7 @@ const g = (L = class extends y {
1729
1728
  }
1730
1729
  /******************** Functions ********************/
1731
1730
  _generateUniqueId() {
1732
- return `nys-button-${Date.now()}-${xe++}`;
1731
+ return `nys-button-${Date.now()}-${ze++}`;
1733
1732
  }
1734
1733
  _manageFormAction(e) {
1735
1734
  typeof this.onClick == "function" && this.onClick(e);
@@ -1772,7 +1771,7 @@ const g = (L = class extends y {
1772
1771
  );
1773
1772
  t && t.click();
1774
1773
  } else
1775
- this.click();
1774
+ this._handleClick(e);
1776
1775
  }
1777
1776
  }
1778
1777
  render() {
@@ -1785,7 +1784,6 @@ const g = (L = class extends y {
1785
1784
  name=${h(this.name ? this.name : void 0)}
1786
1785
  ?disabled=${this.disabled}
1787
1786
  aria-disabled="${this.disabled ? "true" : "false"}"
1788
- form=${h(this.form ? this.form : void 0)}
1789
1787
  value=${h(this.value ? this.value : void 0)}
1790
1788
  href=${this.href}
1791
1789
  target=${this.target}
@@ -1821,7 +1819,7 @@ const g = (L = class extends y {
1821
1819
  id=${h(this.id)}
1822
1820
  name=${h(this.name ? this.name : void 0)}
1823
1821
  ?disabled=${this.disabled}
1824
- form=${h(this.form ? this.form : void 0)}
1822
+ form=${h(this.form || void 0)}
1825
1823
  value=${h(this.value ? this.value : void 0)}
1826
1824
  type=${this.type}
1827
1825
  aria-label=${h(
@@ -1862,70 +1860,70 @@ const g = (L = class extends y {
1862
1860
  "_parent",
1863
1861
  "_top",
1864
1862
  "framename"
1865
- ], L.styles = Ce, L.formAssociated = !0, L);
1863
+ ], L.styles = $e, L.formAssociated = !0, L);
1866
1864
  _([
1867
- n({ type: String })
1868
- ], g.prototype, "id", 2);
1865
+ r({ type: String })
1866
+ ], b.prototype, "id", 2);
1869
1867
  _([
1870
- n({ type: String, reflect: !0 })
1871
- ], g.prototype, "name", 2);
1868
+ r({ type: String, reflect: !0 })
1869
+ ], b.prototype, "name", 2);
1872
1870
  _([
1873
- n({ reflect: !0 })
1874
- ], g.prototype, "size", 1);
1871
+ r({ reflect: !0 })
1872
+ ], b.prototype, "size", 1);
1875
1873
  _([
1876
- n({ type: Boolean, reflect: !0 })
1877
- ], g.prototype, "fullWidth", 2);
1874
+ r({ type: Boolean, reflect: !0 })
1875
+ ], b.prototype, "fullWidth", 2);
1878
1876
  _([
1879
- n({ reflect: !0 })
1880
- ], g.prototype, "variant", 1);
1877
+ r({ reflect: !0 })
1878
+ ], b.prototype, "variant", 1);
1881
1879
  _([
1882
- n({ type: Boolean, reflect: !0 })
1883
- ], g.prototype, "inverted", 2);
1880
+ r({ type: Boolean, reflect: !0 })
1881
+ ], b.prototype, "inverted", 2);
1884
1882
  _([
1885
- n({ type: String })
1886
- ], g.prototype, "label", 2);
1883
+ r({ type: String })
1884
+ ], b.prototype, "label", 2);
1887
1885
  _([
1888
- n({ type: String })
1889
- ], g.prototype, "ariaLabel", 2);
1886
+ r({ type: String })
1887
+ ], b.prototype, "ariaLabel", 2);
1890
1888
  _([
1891
- n({ type: String })
1892
- ], g.prototype, "prefixIcon", 2);
1889
+ r({ type: String })
1890
+ ], b.prototype, "prefixIcon", 2);
1893
1891
  _([
1894
- n({ type: String })
1895
- ], g.prototype, "suffixIcon", 2);
1892
+ r({ type: String })
1893
+ ], b.prototype, "suffixIcon", 2);
1896
1894
  _([
1897
- n({ type: Boolean, reflect: !0 })
1898
- ], g.prototype, "circle", 2);
1895
+ r({ type: Boolean, reflect: !0 })
1896
+ ], b.prototype, "circle", 2);
1899
1897
  _([
1900
- n({ type: String })
1901
- ], g.prototype, "icon", 2);
1898
+ r({ type: String })
1899
+ ], b.prototype, "icon", 2);
1902
1900
  _([
1903
- n({ type: Boolean, reflect: !0 })
1904
- ], g.prototype, "disabled", 2);
1901
+ r({ type: Boolean, reflect: !0 })
1902
+ ], b.prototype, "disabled", 2);
1905
1903
  _([
1906
- n({ type: String })
1907
- ], g.prototype, "form", 2);
1904
+ r({ type: String, reflect: !0 })
1905
+ ], b.prototype, "form", 2);
1908
1906
  _([
1909
- n({ type: String })
1910
- ], g.prototype, "value", 2);
1907
+ r({ type: String })
1908
+ ], b.prototype, "value", 2);
1911
1909
  _([
1912
- n({ type: String })
1913
- ], g.prototype, "ariaDescription", 2);
1910
+ r({ type: String })
1911
+ ], b.prototype, "ariaDescription", 2);
1914
1912
  _([
1915
- n({ reflect: !0 })
1916
- ], g.prototype, "type", 1);
1913
+ r({ reflect: !0 })
1914
+ ], b.prototype, "type", 1);
1917
1915
  _([
1918
- n({ type: Function })
1919
- ], g.prototype, "onClick", 2);
1916
+ r({ type: Function })
1917
+ ], b.prototype, "onClick", 2);
1920
1918
  _([
1921
- n({ type: String })
1922
- ], g.prototype, "href", 2);
1919
+ r({ type: String })
1920
+ ], b.prototype, "href", 2);
1923
1921
  _([
1924
- n({ reflect: !0 })
1925
- ], g.prototype, "target", 1);
1926
- let we = g;
1927
- customElements.get("nys-button") || customElements.define("nys-button", we);
1928
- const ke = u`
1922
+ r({ reflect: !0 })
1923
+ ], b.prototype, "target", 1);
1924
+ let Me = b;
1925
+ customElements.get("nys-button") || customElements.define("nys-button", Me);
1926
+ const Ve = u`
1929
1927
  :host {
1930
1928
  /* Anything that can be overridden should be defined here */
1931
1929
 
@@ -2005,12 +2003,12 @@ const ke = u`
2005
2003
  font-weight: var(--_nys-badge-prefix-font-weight);
2006
2004
  }
2007
2005
  `;
2008
- var Le = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, l1 = (a, e, t, o) => {
2009
- for (var s = o > 1 ? void 0 : o ? Se(e, t) : e, r = a.length - 1, i; r >= 0; r--)
2010
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
2011
- return o && s && Le(e, t, s), s;
2012
- }, I;
2013
- const s1 = (I = class extends y {
2006
+ var He = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, l1 = (a, e, t, o) => {
2007
+ for (var s = o > 1 ? void 0 : o ? Ae(e, t) : e, n = a.length - 1, i; n >= 0; n--)
2008
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
2009
+ return o && s && He(e, t, s), s;
2010
+ }, O;
2011
+ const s1 = (O = class extends y {
2014
2012
  constructor() {
2015
2013
  super(...arguments), this.id = "", this.name = "", this._size = "md", this._intent = "neutral", this.prefixLabel = "", this.label = "", this._prefixIcon = "", this._suffixIcon = "";
2016
2014
  }
@@ -2018,7 +2016,7 @@ const s1 = (I = class extends y {
2018
2016
  return this._size;
2019
2017
  }
2020
2018
  set size(e) {
2021
- this._size = I.VALID_SIZES.includes(
2019
+ this._size = O.VALID_SIZES.includes(
2022
2020
  e
2023
2021
  ) ? e : "md";
2024
2022
  }
@@ -2026,7 +2024,7 @@ const s1 = (I = class extends y {
2026
2024
  return this._intent;
2027
2025
  }
2028
2026
  set intent(e) {
2029
- this._intent = I.VALID_INTENT.includes(
2027
+ this._intent = O.VALID_INTENT.includes(
2030
2028
  e
2031
2029
  ) ? e : "neutral";
2032
2030
  }
@@ -2050,7 +2048,7 @@ const s1 = (I = class extends y {
2050
2048
  t !== null && this.suffixIcon === "" && (this.suffixIcon = t);
2051
2049
  }
2052
2050
  resolveIcon(e) {
2053
- return e === !0 ? I.DEFAULT_ICONS[this.intent] ?? "info" : typeof e == "string" && e.trim() !== "" ? e : null;
2051
+ return e === !0 ? O.DEFAULT_ICONS[this.intent] ?? "info" : typeof e == "string" && e.trim() !== "" ? e : null;
2054
2052
  }
2055
2053
  render() {
2056
2054
  const e = this.resolveIcon(this.prefixIcon), t = this.resolveIcon(this.suffixIcon);
@@ -2063,44 +2061,44 @@ const s1 = (I = class extends y {
2063
2061
  </div>
2064
2062
  `;
2065
2063
  }
2066
- }, I.VALID_SIZES = ["sm", "md"], I.VALID_INTENT = [
2064
+ }, O.VALID_SIZES = ["sm", "md"], O.VALID_INTENT = [
2067
2065
  "neutral",
2068
2066
  "error",
2069
2067
  "success",
2070
2068
  "warning"
2071
- ], I.styles = ke, I.DEFAULT_ICONS = {
2069
+ ], O.styles = Ve, O.DEFAULT_ICONS = {
2072
2070
  neutral: "info",
2073
2071
  error: "emergency_home",
2074
2072
  success: "check_circle",
2075
2073
  warning: "warning"
2076
- }, I);
2074
+ }, O);
2077
2075
  l1([
2078
- n({ type: String })
2076
+ r({ type: String })
2079
2077
  ], s1.prototype, "id", 2);
2080
2078
  l1([
2081
- n({ type: String, reflect: !0 })
2079
+ r({ type: String, reflect: !0 })
2082
2080
  ], s1.prototype, "name", 2);
2083
2081
  l1([
2084
- n({ reflect: !0 })
2082
+ r({ reflect: !0 })
2085
2083
  ], s1.prototype, "size", 1);
2086
2084
  l1([
2087
- n({ reflect: !0 })
2085
+ r({ reflect: !0 })
2088
2086
  ], s1.prototype, "intent", 1);
2089
2087
  l1([
2090
- n({ type: String })
2088
+ r({ type: String })
2091
2089
  ], s1.prototype, "prefixLabel", 2);
2092
2090
  l1([
2093
- n({ type: String })
2091
+ r({ type: String })
2094
2092
  ], s1.prototype, "label", 2);
2095
2093
  l1([
2096
- n({ type: String, attribute: "prefixicon" })
2094
+ r({ type: String, attribute: "prefixicon" })
2097
2095
  ], s1.prototype, "prefixIcon", 1);
2098
2096
  l1([
2099
- n({ type: String, attribute: "suffixicon" })
2097
+ r({ type: String, attribute: "suffixicon" })
2100
2098
  ], s1.prototype, "suffixIcon", 1);
2101
- let $e = s1;
2102
- customElements.get("nys-badge") || customElements.define("nys-badge", $e);
2103
- const ee = u`
2099
+ let Ie = s1;
2100
+ customElements.get("nys-badge") || customElements.define("nys-badge", Ie);
2101
+ const ie = u`
2104
2102
  :host {
2105
2103
  /* Anything that can be overridden should be defined here */
2106
2104
 
@@ -2496,29 +2494,29 @@ const ee = u`
2496
2494
  border: 0;
2497
2495
  }
2498
2496
  `;
2499
- var De = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, P = (a, e, t, o) => {
2500
- for (var s = o > 1 ? void 0 : o ? Ee(e, t) : e, r = a.length - 1, i; r >= 0; r--)
2501
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
2502
- return o && s && De(e, t, s), s;
2497
+ var Be = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, Z = (a, e, t, o) => {
2498
+ for (var s = o > 1 ? void 0 : o ? Ze(e, t) : e, n = a.length - 1, i; n >= 0; n--)
2499
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
2500
+ return o && s && Be(e, t, s), s;
2503
2501
  };
2504
- let ze = 0;
2505
- var W;
2506
- const Z = (W = class extends y {
2502
+ let qe = 0;
2503
+ var K;
2504
+ const z = (K = class extends y {
2507
2505
  // allows use of elementInternals' API
2508
2506
  constructor() {
2509
- super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this._slottedDescriptionText = "", this._size = "md", this._internals = this.attachInternals();
2507
+ super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this._tooltip = "", this.form = null, this._slottedDescriptionText = "", this._size = "md", this._internals = this.attachInternals();
2510
2508
  }
2511
2509
  get size() {
2512
2510
  return this._size;
2513
2511
  }
2514
2512
  set size(e) {
2515
- this._size = W.VALID_SIZES.includes(
2513
+ this._size = K.VALID_SIZES.includes(
2516
2514
  e
2517
2515
  ) ? e : "md";
2518
2516
  }
2519
2517
  // Generate a unique ID if one is not provided
2520
2518
  connectedCallback() {
2521
- super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${ze++}`), this.addEventListener("nys-change", this._handleCheckboxChange), this.addEventListener("invalid", this._handleInvalid);
2519
+ super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${qe++}`), this.addEventListener("nys-change", this._handleCheckboxChange), this.addEventListener("invalid", this._handleInvalid);
2522
2520
  }
2523
2521
  disconnectedCallback() {
2524
2522
  super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleCheckboxChange), this.removeEventListener("invalid", this._handleInvalid);
@@ -2527,7 +2525,7 @@ const Z = (W = class extends y {
2527
2525
  this._setGroupExist(), this._updateCheckboxSize(), this._updateCheckboxTile(), this._updateCheckboxShowError(), this._getSlotDescriptionForAria();
2528
2526
  }
2529
2527
  updated(e) {
2530
- e.has("required") && this.required && this._setupCheckboxRequired(), e.has("size") && this._updateCheckboxSize(), e.has("tile") && this._updateCheckboxTile(), e.has("showError") && this._updateCheckboxShowError();
2528
+ e.has("required") && this.required && this._setupCheckboxRequired(), e.has("size") && this._updateCheckboxSize(), e.has("tile") && this._updateCheckboxTile(), e.has("showError") && this._updateCheckboxShowError(), e.has("form") && this._updateCheckboxForm();
2531
2529
  }
2532
2530
  /********************** Functions **********************/
2533
2531
  _setGroupExist() {
@@ -2545,13 +2543,12 @@ const Z = (W = class extends y {
2545
2543
  );
2546
2544
  }
2547
2545
  // Updates the required attribute of each checkbox in the group
2548
- async _manageCheckboxRequired() {
2546
+ async _manageRequire() {
2549
2547
  if (this.required) {
2550
- const e = this.errorMessage || "Please select at least one option.", t = this.querySelector("nys-checkbox"), o = t ? await t.getInputElement() : null;
2551
- let s = !1;
2552
- this.querySelectorAll("nys-checkbox").forEach((i) => {
2553
- i.checked && (s = !0);
2554
- }), s ? (this._internals.setValidity({}), this.showError = !1) : (this._internals.setValidity(
2548
+ const e = this.errorMessage || "Please select at least one option.", t = this.querySelector("nys-checkbox"), o = t ? await t.getInputElement().catch(() => null) : null, s = this.querySelectorAll("nys-checkbox");
2549
+ Array.from(s).some(
2550
+ (i) => i.checked
2551
+ ) ? (this._internals.setValidity({}), this.showError = !1) : (this._internals.setValidity(
2555
2552
  { valueMissing: !0 },
2556
2553
  e,
2557
2554
  o || this
@@ -2574,6 +2571,11 @@ const Z = (W = class extends y {
2574
2571
  this.showError ? t.setAttribute("showError", "") : t.removeAttribute("showError");
2575
2572
  });
2576
2573
  }
2574
+ _updateCheckboxForm() {
2575
+ this.querySelectorAll("nys-checkbox").forEach((t) => {
2576
+ this.showError && this.form !== null ? t.setAttribute("form", this.form) : t.removeAttribute("form");
2577
+ });
2578
+ }
2577
2579
  // Get the slotted text contents so native VO can attempt to announce it within the legend in the fieldset
2578
2580
  _getSlotDescriptionForAria() {
2579
2581
  var o;
@@ -2581,12 +2583,12 @@ const Z = (W = class extends y {
2581
2583
  'slot[name="description"]'
2582
2584
  ), t = (e == null ? void 0 : e.assignedNodes({ flatten: !0 })) || [];
2583
2585
  this._slottedDescriptionText = t.map((s) => {
2584
- var r;
2585
- return (r = s.textContent) == null ? void 0 : r.trim();
2586
+ var n;
2587
+ return (n = s.textContent) == null ? void 0 : n.trim();
2586
2588
  }).filter(Boolean).join(", ");
2587
2589
  }
2588
2590
  async _handleInvalid(e) {
2589
- e.preventDefault(), this.showError = !0, this._manageCheckboxRequired();
2591
+ e.preventDefault(), this.showError = !0, this._manageRequire();
2590
2592
  const t = this.querySelector("nys-checkbox"), o = t ? await t.getInputElement() : null;
2591
2593
  if (o) {
2592
2594
  const s = this._internals.form;
@@ -2595,7 +2597,7 @@ const Z = (W = class extends y {
2595
2597
  if (Array.from(
2596
2598
  this.querySelectorAll("nys-checkbox")
2597
2599
  ).filter(
2598
- (x) => x.checked
2600
+ (k) => k.checked
2599
2601
  ).length === 0)
2600
2602
  return c;
2601
2603
  } else
@@ -2606,8 +2608,8 @@ const Z = (W = class extends y {
2606
2608
  /******************** Event Handlers ********************/
2607
2609
  // Similar to how native forms handle multiple same-name fields, we group the selected values into a list for FormData.
2608
2610
  _handleCheckboxChange(e) {
2609
- const t = e, { name: o } = t.detail, r = Array.from(this.querySelectorAll("nys-checkbox")).filter((i) => i.checked).map((i) => i.value);
2610
- this.name = o, this._internals.setFormValue(r.join(", ")), this._manageCheckboxRequired();
2611
+ const t = e, { name: o } = t.detail, n = Array.from(this.querySelectorAll("nys-checkbox")).filter((i) => i.checked).map((i) => i.value);
2612
+ this.name = o, this._internals.setFormValue(n.join(", ")), this._manageRequire();
2611
2613
  }
2612
2614
  render() {
2613
2615
  return l`
@@ -2617,6 +2619,7 @@ const Z = (W = class extends y {
2617
2619
  label=${this.label}
2618
2620
  description=${this.description}
2619
2621
  flag=${this.required ? "required" : this.optional ? "optional" : ""}
2622
+ tooltip=${this._tooltip}
2620
2623
  >
2621
2624
  <slot name="description" slot="description">${this.description}</slot>
2622
2625
  </nys-label>
@@ -2636,59 +2639,65 @@ const Z = (W = class extends y {
2636
2639
  </div>
2637
2640
  `;
2638
2641
  }
2639
- }, W.VALID_SIZES = ["sm", "md"], W.styles = ee, W.formAssociated = !0, W);
2640
- P([
2641
- n({ type: String })
2642
- ], Z.prototype, "id", 2);
2643
- P([
2644
- n({ type: String, reflect: !0 })
2645
- ], Z.prototype, "name", 2);
2646
- P([
2647
- n({ type: Boolean, reflect: !0 })
2648
- ], Z.prototype, "required", 2);
2649
- P([
2650
- n({ type: Boolean, reflect: !0 })
2651
- ], Z.prototype, "optional", 2);
2652
- P([
2653
- n({ type: Boolean, reflect: !0 })
2654
- ], Z.prototype, "showError", 2);
2655
- P([
2656
- n({ type: String })
2657
- ], Z.prototype, "errorMessage", 2);
2658
- P([
2659
- n({ type: String })
2660
- ], Z.prototype, "label", 2);
2661
- P([
2662
- n({ type: String })
2663
- ], Z.prototype, "description", 2);
2664
- P([
2665
- n({ type: Boolean, reflect: !0 })
2666
- ], Z.prototype, "tile", 2);
2667
- P([
2668
- E()
2669
- ], Z.prototype, "_slottedDescriptionText", 2);
2670
- P([
2671
- n({ reflect: !0 })
2672
- ], Z.prototype, "size", 1);
2673
- let Me = Z;
2674
- customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", Me);
2675
- var Ve = Object.defineProperty, He = Object.getOwnPropertyDescriptor, M = (a, e, t, o) => {
2676
- for (var s = o > 1 ? void 0 : o ? He(e, t) : e, r = a.length - 1, i; r >= 0; r--)
2677
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
2678
- return o && s && Ve(e, t, s), s;
2642
+ }, K.VALID_SIZES = ["sm", "md"], K.styles = ie, K.formAssociated = !0, K);
2643
+ Z([
2644
+ r({ type: String })
2645
+ ], z.prototype, "id", 2);
2646
+ Z([
2647
+ r({ type: String, reflect: !0 })
2648
+ ], z.prototype, "name", 2);
2649
+ Z([
2650
+ r({ type: Boolean, reflect: !0 })
2651
+ ], z.prototype, "required", 2);
2652
+ Z([
2653
+ r({ type: Boolean, reflect: !0 })
2654
+ ], z.prototype, "optional", 2);
2655
+ Z([
2656
+ r({ type: Boolean, reflect: !0 })
2657
+ ], z.prototype, "showError", 2);
2658
+ Z([
2659
+ r({ type: String })
2660
+ ], z.prototype, "errorMessage", 2);
2661
+ Z([
2662
+ r({ type: String })
2663
+ ], z.prototype, "label", 2);
2664
+ Z([
2665
+ r({ type: String })
2666
+ ], z.prototype, "description", 2);
2667
+ Z([
2668
+ r({ type: Boolean, reflect: !0 })
2669
+ ], z.prototype, "tile", 2);
2670
+ Z([
2671
+ r({ type: String })
2672
+ ], z.prototype, "_tooltip", 2);
2673
+ Z([
2674
+ r({ type: String, reflect: !0 })
2675
+ ], z.prototype, "form", 2);
2676
+ Z([
2677
+ I()
2678
+ ], z.prototype, "_slottedDescriptionText", 2);
2679
+ Z([
2680
+ r({ reflect: !0 })
2681
+ ], z.prototype, "size", 1);
2682
+ let Oe = z;
2683
+ customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", Oe);
2684
+ var Ue = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, M = (a, e, t, o) => {
2685
+ for (var s = o > 1 ? void 0 : o ? Pe(e, t) : e, n = a.length - 1, i; n >= 0; n--)
2686
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
2687
+ return o && s && Ue(e, t, s), s;
2679
2688
  };
2680
- let Ae = 0;
2681
- var X;
2682
- const $ = (X = class extends y {
2689
+ let Te = 0;
2690
+ var W;
2691
+ const S = (W = class extends y {
2683
2692
  // allows use of elementInternals' API
2684
2693
  constructor() {
2685
- 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();
2694
+ super(), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this.form = null, this.showError = !1, this.errorMessage = "", this.groupExist = !1, this.tile = !1, this._size = "md", this._internals = this.attachInternals();
2686
2695
  }
2687
2696
  get size() {
2688
2697
  return this._size;
2689
2698
  }
2690
2699
  set size(e) {
2691
- this._size = X.VALID_SIZES.includes(
2700
+ this._size = W.VALID_SIZES.includes(
2692
2701
  e
2693
2702
  ) ? e : "md";
2694
2703
  }
@@ -2698,7 +2707,7 @@ const $ = (X = class extends y {
2698
2707
  }
2699
2708
  // Generate a unique ID if one is not provided
2700
2709
  connectedCallback() {
2701
- super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${Ae++}`), this.addEventListener("invalid", this._handleInvalid);
2710
+ super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${Te++}`), this.addEventListener("invalid", this._handleInvalid);
2702
2711
  }
2703
2712
  disconnectedCallback() {
2704
2713
  super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
@@ -2802,6 +2811,7 @@ const $ = (X = class extends y {
2802
2811
  ?disabled=${this.disabled}
2803
2812
  .value=${this.value}
2804
2813
  ?required="${this.required}"
2814
+ form=${h(this.form || void 0)}
2805
2815
  aria-checked="${this.checked}"
2806
2816
  aria-disabled="${this.disabled ? "true" : "false"}"
2807
2817
  aria-required="${this.required}"
@@ -2836,49 +2846,94 @@ const $ = (X = class extends y {
2836
2846
  ></nys-errormessage>` : ""}
2837
2847
  `;
2838
2848
  }
2839
- }, X.VALID_SIZES = ["sm", "md"], X.styles = ee, X.formAssociated = !0, X);
2849
+ }, W.VALID_SIZES = ["sm", "md"], W.styles = ie, W.formAssociated = !0, W);
2850
+ M([
2851
+ r({ type: Boolean, reflect: !0 })
2852
+ ], S.prototype, "checked", 2);
2840
2853
  M([
2841
- n({ type: Boolean, reflect: !0 })
2842
- ], $.prototype, "checked", 2);
2854
+ r({ type: Boolean, reflect: !0 })
2855
+ ], S.prototype, "disabled", 2);
2843
2856
  M([
2844
- n({ type: Boolean, reflect: !0 })
2845
- ], $.prototype, "disabled", 2);
2857
+ r({ type: Boolean, reflect: !0 })
2858
+ ], S.prototype, "required", 2);
2846
2859
  M([
2847
- n({ type: Boolean, reflect: !0 })
2848
- ], $.prototype, "required", 2);
2860
+ r({ type: String })
2861
+ ], S.prototype, "label", 2);
2849
2862
  M([
2850
- n({ type: String })
2851
- ], $.prototype, "label", 2);
2863
+ r({ type: String })
2864
+ ], S.prototype, "description", 2);
2852
2865
  M([
2853
- n({ type: String })
2854
- ], $.prototype, "description", 2);
2866
+ r({ type: String })
2867
+ ], S.prototype, "id", 2);
2855
2868
  M([
2856
- n({ type: String })
2857
- ], $.prototype, "id", 2);
2869
+ r({ type: String, reflect: !0 })
2870
+ ], S.prototype, "name", 2);
2858
2871
  M([
2859
- n({ type: String, reflect: !0 })
2860
- ], $.prototype, "name", 2);
2872
+ r({ type: String })
2873
+ ], S.prototype, "value", 2);
2861
2874
  M([
2862
- n({ type: String })
2863
- ], $.prototype, "value", 2);
2875
+ r({ type: String, reflect: !0 })
2876
+ ], S.prototype, "form", 2);
2864
2877
  M([
2865
- n({ type: Boolean, reflect: !0 })
2866
- ], $.prototype, "showError", 2);
2878
+ r({ type: Boolean, reflect: !0 })
2879
+ ], S.prototype, "showError", 2);
2867
2880
  M([
2868
- n({ type: String })
2869
- ], $.prototype, "errorMessage", 2);
2881
+ r({ type: String })
2882
+ ], S.prototype, "errorMessage", 2);
2870
2883
  M([
2871
- n({ type: Boolean })
2872
- ], $.prototype, "groupExist", 2);
2884
+ r({ type: Boolean })
2885
+ ], S.prototype, "groupExist", 2);
2873
2886
  M([
2874
- n({ type: Boolean, reflect: !0 })
2875
- ], $.prototype, "tile", 2);
2887
+ r({ type: Boolean, reflect: !0 })
2888
+ ], S.prototype, "tile", 2);
2876
2889
  M([
2877
- n({ reflect: !0 })
2878
- ], $.prototype, "size", 1);
2879
- let Ie = $;
2880
- customElements.get("nys-checkbox") || customElements.define("nys-checkbox", Ie);
2881
- const Ze = u`
2890
+ r({ reflect: !0 })
2891
+ ], S.prototype, "size", 1);
2892
+ let Re = S;
2893
+ customElements.get("nys-checkbox") || customElements.define("nys-checkbox", Re);
2894
+ const Fe = u`
2895
+ :host {
2896
+ /* Anything that can be overridden should be defined here */
2897
+
2898
+ /* Global Divider Styles */
2899
+ --_nys-divider-size: var(--nys-size-1px, 1px);
2900
+ --_nys-divider-color: var(--nys-color-neutral-200, #bec0c1);
2901
+ --_nys-divider-width: 100%;
2902
+ }
2903
+ /* Inverted */
2904
+ :host([inverted]) {
2905
+ --_nys-divider-color: var(--nys-color-ink-reverse, #fff);
2906
+ }
2907
+
2908
+ .nys-divider {
2909
+ width: var(--_nys-divider-width);
2910
+ height: var(--_nys-divider-size);
2911
+ background-color: var(--_nys-divider-color);
2912
+ flex: 1 0 0;
2913
+ margin: 0;
2914
+ border: none;
2915
+ }
2916
+ `;
2917
+ var Ne = Object.defineProperty, je = (a, e, t, o) => {
2918
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
2919
+ (i = a[n]) && (s = i(e, t, s) || s);
2920
+ return s && Ne(e, t, s), s;
2921
+ };
2922
+ const j1 = class j1 extends y {
2923
+ constructor() {
2924
+ super(), this.inverted = !1;
2925
+ }
2926
+ render() {
2927
+ return l`<hr class="nys-divider" />`;
2928
+ }
2929
+ };
2930
+ j1.styles = Fe;
2931
+ let z1 = j1;
2932
+ je([
2933
+ r({ type: Boolean, reflect: !0 })
2934
+ ], z1.prototype, "inverted");
2935
+ customElements.get("nys-divider") || customElements.define("nys-divider", z1);
2936
+ const Ge = u`
2882
2937
  :host {
2883
2938
  --_nys-errormessage-font-family: var(
2884
2939
  --nys-font-family-ui,
@@ -2902,7 +2957,7 @@ const Ze = u`
2902
2957
 
2903
2958
  /* Spacing */
2904
2959
  --_nys-errormessage-gap: var(--nys-space-100, 8px);
2905
- ---_nys-errormessage-padding--divider: var(--nys-space-50, 4px);
2960
+ --_nys-errormessage-padding--divider: var(--nys-space-50, 4px);
2906
2961
  --_nys-errormessage-width--divider: var(--nys-border-width-sm, 1px);
2907
2962
 
2908
2963
  --_nys-errormessage-margin-top: 0;
@@ -2928,12 +2983,12 @@ const Ze = u`
2928
2983
  var(--_nys-errormessage-color);
2929
2984
  }
2930
2985
  `;
2931
- var Be = Object.defineProperty, B1 = (a, e, t, o) => {
2932
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
2933
- (i = a[r]) && (s = i(e, t, s) || s);
2934
- return s && Be(e, t, s), s;
2986
+ var Ye = Object.defineProperty, U1 = (a, e, t, o) => {
2987
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
2988
+ (i = a[n]) && (s = i(e, t, s) || s);
2989
+ return s && Ye(e, t, s), s;
2935
2990
  };
2936
- const E1 = class E1 extends y {
2991
+ const M1 = class M1 extends y {
2937
2992
  // allows use of elementInternals' API
2938
2993
  constructor() {
2939
2994
  super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
@@ -2945,27 +3000,27 @@ const E1 = class E1 extends y {
2945
3000
  </div>` : ""}`;
2946
3001
  }
2947
3002
  };
2948
- E1.styles = Ze, E1.formAssociated = !0;
2949
- let g1 = E1;
2950
- B1([
2951
- n({ type: Boolean })
2952
- ], g1.prototype, "showError");
2953
- B1([
2954
- n({ type: String })
2955
- ], g1.prototype, "errorMessage");
2956
- B1([
2957
- n({ type: Boolean, reflect: !0 })
2958
- ], g1.prototype, "showDivider");
2959
- customElements.get("nys-errormessage") || customElements.define("nys-errormessage", g1);
2960
- async function qe(a, e) {
3003
+ M1.styles = Ge, M1.formAssociated = !0;
3004
+ let f1 = M1;
3005
+ U1([
3006
+ r({ type: Boolean })
3007
+ ], f1.prototype, "showError");
3008
+ U1([
3009
+ r({ type: String })
3010
+ ], f1.prototype, "errorMessage");
3011
+ U1([
3012
+ r({ type: Boolean, reflect: !0 })
3013
+ ], f1.prototype, "showDivider");
3014
+ customElements.get("nys-errormessage") || customElements.define("nys-errormessage", f1);
3015
+ async function Ke(a, e) {
2961
3016
  if (!e || e.trim() === "") return !0;
2962
- const t = e.toLowerCase().split(",").map((r) => r.trim()), o = a.name.toLowerCase(), s = o.includes(".") ? o.split(".").pop() : "";
2963
- for (const r of t)
2964
- if (r.startsWith(".") && r.slice(1) === s || r.endsWith("/*") && a.type.startsWith(r.slice(0, -1)) || a.type === r)
3017
+ const t = e.toLowerCase().split(",").map((n) => n.trim()), o = a.name.toLowerCase(), s = o.includes(".") ? o.split(".").pop() : "";
3018
+ for (const n of t)
3019
+ if (n.startsWith(".") && n.slice(1) === s || n.endsWith("/*") && a.type.startsWith(n.slice(0, -1)) || a.type === n)
2965
3020
  return !0;
2966
3021
  return !1;
2967
3022
  }
2968
- const Ue = u`
3023
+ const We = u`
2969
3024
  :host {
2970
3025
  /* Global Fileinput Styles */
2971
3026
  --_nys-fileinput-gap: var(--nys-space-100, 8px);
@@ -3098,7 +3153,7 @@ const Ue = u`
3098
3153
  progress::-webkit-progress-bar {
3099
3154
  background-color: var(--_nys-fileinput-progress-background);
3100
3155
  }
3101
- `, Oe = u`
3156
+ `, Xe = u`
3102
3157
  :host {
3103
3158
  /* Global fileitem Styles */
3104
3159
  --_nys-fileitem-border-radius: var(--nys-radius-md, 4px);
@@ -3244,12 +3299,12 @@ const Ue = u`
3244
3299
  }
3245
3300
  }
3246
3301
  `;
3247
- var Pe = Object.defineProperty, V1 = (a, e, t, o) => {
3248
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
3249
- (i = a[r]) && (s = i(e, t, s) || s);
3250
- return s && Pe(e, t, s), s;
3302
+ var Qe = Object.defineProperty, A1 = (a, e, t, o) => {
3303
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
3304
+ (i = a[n]) && (s = i(e, t, s) || s);
3305
+ return s && Qe(e, t, s), s;
3251
3306
  };
3252
- const R1 = class R1 extends y {
3307
+ const G1 = class G1 extends y {
3253
3308
  constructor() {
3254
3309
  super(...arguments), this.filename = "", this.status = "pending", this.progress = 0, this.errorMessage = "";
3255
3310
  }
@@ -3263,8 +3318,8 @@ const R1 = class R1 extends y {
3263
3318
  );
3264
3319
  }
3265
3320
  splitFilename(e) {
3266
- const t = e.lastIndexOf("."), o = t !== -1 ? e.slice(t) : "", s = t !== -1 ? e.slice(0, t) : e, r = s.slice(0, s.length - 3), i = s.slice(-3);
3267
- return { startPart: r, endPart: i, extension: o };
3321
+ 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);
3322
+ return { startPart: n, endPart: i, extension: o };
3268
3323
  }
3269
3324
  render() {
3270
3325
  const { startPart: e, endPart: t, extension: o } = this.splitFilename(this.filename);
@@ -3322,31 +3377,31 @@ const R1 = class R1 extends y {
3322
3377
  `;
3323
3378
  }
3324
3379
  };
3325
- R1.styles = Oe;
3326
- let d1 = R1;
3327
- V1([
3328
- n({ type: String })
3380
+ G1.styles = Xe;
3381
+ let d1 = G1;
3382
+ A1([
3383
+ r({ type: String })
3329
3384
  ], d1.prototype, "filename");
3330
- V1([
3331
- n({ type: String })
3385
+ A1([
3386
+ r({ type: String })
3332
3387
  ], d1.prototype, "status");
3333
- V1([
3334
- n({ type: Number })
3388
+ A1([
3389
+ r({ type: Number })
3335
3390
  ], d1.prototype, "progress");
3336
- V1([
3337
- n({ type: String })
3391
+ A1([
3392
+ r({ type: String })
3338
3393
  ], d1.prototype, "errorMessage");
3339
3394
  customElements.define("nys-fileitem", d1);
3340
- var Te = Object.defineProperty, V = (a, e, t, o) => {
3341
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
3342
- (i = a[r]) && (s = i(e, t, s) || s);
3343
- return s && Te(e, t, s), s;
3395
+ var Je = Object.defineProperty, $ = (a, e, t, o) => {
3396
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
3397
+ (i = a[n]) && (s = i(e, t, s) || s);
3398
+ return s && Je(e, t, s), s;
3344
3399
  };
3345
- let Re = 0;
3346
- const z1 = class z1 extends y {
3400
+ let et = 0;
3401
+ const V1 = class V1 extends y {
3347
3402
  // allows use of elementInternals' API
3348
3403
  constructor() {
3349
- 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();
3404
+ super(), this.id = "", this.name = "", this.label = "", this.description = "", this.multiple = !1, this.form = "", this._tooltip = "", 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();
3350
3405
  }
3351
3406
  get _isDropDisabled() {
3352
3407
  return this.disabled || !this.multiple && this._selectedFiles.length > 0;
@@ -3364,7 +3419,7 @@ const z1 = class z1 extends y {
3364
3419
  if (this._selectedFiles.length === 1)
3365
3420
  t = `You have selected ${this._selectedFiles[0].file.name}.`;
3366
3421
  else {
3367
- const s = this._selectedFiles.map((r) => r.file.name).join(", ");
3422
+ const s = this._selectedFiles.map((n) => n.file.name).join(", ");
3368
3423
  t = `You have selected ${this._selectedFiles.length} files: ${s}`;
3369
3424
  }
3370
3425
  return `${t}${e ? " Error: One or more files are not valid file types." : ""}`;
@@ -3380,7 +3435,7 @@ const z1 = class z1 extends y {
3380
3435
  }
3381
3436
  // Generate a unique ID if one is not provided
3382
3437
  connectedCallback() {
3383
- super.connectedCallback(), this.id || (this.id = `nys-fileinput-${Date.now()}-${Re++}`), this.addEventListener("invalid", this._handleInvalid);
3438
+ super.connectedCallback(), this.id || (this.id = `nys-fileinput-${Date.now()}-${et++}`), this.addEventListener("invalid", this._handleInvalid);
3384
3439
  }
3385
3440
  disconnectedCallback() {
3386
3441
  super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
@@ -3463,15 +3518,15 @@ const z1 = class z1 extends y {
3463
3518
  async _processFile(e) {
3464
3519
  e.status = "processing";
3465
3520
  try {
3466
- if (!await qe(e.file, this.accept)) {
3521
+ if (!await Ke(e.file, this.accept)) {
3467
3522
  e.status = "error", e.errorMsg = "File type is invalid.", this.requestUpdate();
3468
3523
  return;
3469
3524
  }
3470
3525
  const o = new FileReader();
3471
3526
  o.onprogress = (s) => {
3472
3527
  if (s.lengthComputable) {
3473
- const r = Math.round(s.loaded * 100 / s.total);
3474
- e.progress = r, this.requestUpdate();
3528
+ const n = Math.round(s.loaded * 100 / s.total);
3529
+ e.progress = n, this.requestUpdate();
3475
3530
  }
3476
3531
  }, o.onload = () => {
3477
3532
  e.progress = 100, e.status = "done", this.requestUpdate();
@@ -3520,8 +3575,8 @@ const z1 = class z1 extends y {
3520
3575
  // Access the selected files & add new files to the internal list via the hidden <input type="file">
3521
3576
  _handleFileChange(e) {
3522
3577
  const o = e.target.files;
3523
- (o ? Array.from(o) : []).map((r) => {
3524
- this._saveSelectedFiles(r);
3578
+ (o ? Array.from(o) : []).map((n) => {
3579
+ this._saveSelectedFiles(n);
3525
3580
  }), this.requestUpdate(), this._dispatchChangeEvent(), this._handlePostFileSelectionFocus();
3526
3581
  }
3527
3582
  _handleFileRemove(e) {
@@ -3551,8 +3606,8 @@ const z1 = class z1 extends y {
3551
3606
  const t = (s = e.dataTransfer) == null ? void 0 : s.files;
3552
3607
  if (!t) return;
3553
3608
  const o = Array.from(t);
3554
- this.multiple ? o.forEach((r) => {
3555
- this._saveSelectedFiles(r);
3609
+ this.multiple ? o.forEach((n) => {
3610
+ this._saveSelectedFiles(n);
3556
3611
  }) : this._saveSelectedFiles(o[0]), this.requestUpdate(), this._dispatchChangeEvent();
3557
3612
  }
3558
3613
  render() {
@@ -3565,6 +3620,7 @@ const z1 = class z1 extends y {
3565
3620
  label=${this.label}
3566
3621
  description=${this.description}
3567
3622
  flag=${this.required ? "required" : this.optional ? "optional" : ""}
3623
+ _tooltip=${this._tooltip}
3568
3624
  >
3569
3625
  <slot name="description" slot="description">${this.description}</slot>
3570
3626
  </nys-label>
@@ -3574,8 +3630,9 @@ const z1 = class z1 extends y {
3574
3630
  tabindex="-1"
3575
3631
  type="file"
3576
3632
  name=${this.name}
3577
- ?multiple=${this.multiple}
3578
3633
  accept=${this.accept}
3634
+ form=${h(this.form || void 0)}
3635
+ ?multiple=${this.multiple}
3579
3636
  ?required=${this.required}
3580
3637
  ?disabled=${this.disabled || !this.multiple && this._selectedFiles.length > 0}
3581
3638
  aria-disabled="${this.disabled}"
@@ -3642,49 +3699,55 @@ const z1 = class z1 extends y {
3642
3699
  </div>`;
3643
3700
  }
3644
3701
  };
3645
- z1.styles = Ue, z1.formAssociated = !0;
3646
- let k = z1;
3647
- V([
3648
- n({ type: String })
3649
- ], k.prototype, "id");
3650
- V([
3651
- n({ type: String, reflect: !0 })
3652
- ], k.prototype, "name");
3653
- V([
3654
- n({ type: String })
3655
- ], k.prototype, "label");
3656
- V([
3657
- n({ type: String })
3658
- ], k.prototype, "description");
3659
- V([
3660
- n({ type: Boolean })
3661
- ], k.prototype, "multiple");
3662
- V([
3663
- n({ type: String })
3664
- ], k.prototype, "accept");
3665
- V([
3666
- n({ type: Boolean, reflect: !0 })
3667
- ], k.prototype, "disabled");
3668
- V([
3669
- n({ type: Boolean, reflect: !0 })
3670
- ], k.prototype, "required");
3671
- V([
3672
- n({ type: Boolean, reflect: !0 })
3673
- ], k.prototype, "optional");
3674
- V([
3675
- n({ type: Boolean, reflect: !0 })
3676
- ], k.prototype, "showError");
3677
- V([
3678
- n({ type: String })
3679
- ], k.prototype, "errorMessage");
3680
- V([
3681
- n({ type: Boolean })
3682
- ], k.prototype, "dropzone");
3683
- V([
3684
- n({ type: String, reflect: !0 })
3685
- ], k.prototype, "width");
3686
- customElements.get("nys-fileinput") || customElements.define("nys-fileinput", k);
3687
- const Fe = {
3702
+ V1.styles = We, V1.formAssociated = !0;
3703
+ let x = V1;
3704
+ $([
3705
+ r({ type: String })
3706
+ ], x.prototype, "id");
3707
+ $([
3708
+ r({ type: String, reflect: !0 })
3709
+ ], x.prototype, "name");
3710
+ $([
3711
+ r({ type: String })
3712
+ ], x.prototype, "label");
3713
+ $([
3714
+ r({ type: String })
3715
+ ], x.prototype, "description");
3716
+ $([
3717
+ r({ type: Boolean })
3718
+ ], x.prototype, "multiple");
3719
+ $([
3720
+ r({ type: String, reflect: !0 })
3721
+ ], x.prototype, "form");
3722
+ $([
3723
+ r({ type: String })
3724
+ ], x.prototype, "_tooltip");
3725
+ $([
3726
+ r({ type: String })
3727
+ ], x.prototype, "accept");
3728
+ $([
3729
+ r({ type: Boolean, reflect: !0 })
3730
+ ], x.prototype, "disabled");
3731
+ $([
3732
+ r({ type: Boolean, reflect: !0 })
3733
+ ], x.prototype, "required");
3734
+ $([
3735
+ r({ type: Boolean, reflect: !0 })
3736
+ ], x.prototype, "optional");
3737
+ $([
3738
+ r({ type: Boolean, reflect: !0 })
3739
+ ], x.prototype, "showError");
3740
+ $([
3741
+ r({ type: String })
3742
+ ], x.prototype, "errorMessage");
3743
+ $([
3744
+ r({ type: Boolean })
3745
+ ], x.prototype, "dropzone");
3746
+ $([
3747
+ r({ type: String, reflect: !0 })
3748
+ ], x.prototype, "width");
3749
+ customElements.get("nys-fileinput") || customElements.define("nys-fileinput", x);
3750
+ const tt = {
3688
3751
  // --------- UX Team Main Library (below) --------- //
3689
3752
  // *** CORE *** //
3690
3753
  account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
@@ -4281,7 +4344,7 @@ const Fe = {
4281
4344
  <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)"/>
4282
4345
  </g>
4283
4346
  </svg>`
4284
- }, Ne = u`
4347
+ }, st = u`
4285
4348
  :host {
4286
4349
  display: inline-block;
4287
4350
  --_nys-icon-size: var(
@@ -4385,12 +4448,12 @@ const Fe = {
4385
4448
  transform: scale(-1, -1);
4386
4449
  }
4387
4450
  `;
4388
- var je = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, C1 = (a, e, t, o) => {
4389
- for (var s = o > 1 ? void 0 : o ? Ge(e, t) : e, r = a.length - 1, i; r >= 0; r--)
4390
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
4391
- return o && s && je(e, t, s), s;
4451
+ var ot = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, b1 = (a, e, t, o) => {
4452
+ for (var s = o > 1 ? void 0 : o ? rt(e, t) : e, n = a.length - 1, i; n >= 0; n--)
4453
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
4454
+ return o && s && ot(e, t, s), s;
4392
4455
  }, r1;
4393
- const y1 = (r1 = class extends y {
4456
+ const h1 = (r1 = class extends y {
4394
4457
  constructor() {
4395
4458
  super(...arguments), this.name = "", this.ariaLabel = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
4396
4459
  }
@@ -4403,7 +4466,7 @@ const y1 = (r1 = class extends y {
4403
4466
  ) ? e : "sm";
4404
4467
  }
4405
4468
  getIcon() {
4406
- const e = Fe[this.name];
4469
+ const e = tt[this.name];
4407
4470
  if (!e) return null;
4408
4471
  const s = new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
4409
4472
  return s instanceof SVGElement ? (s.setAttribute("role", "img"), this.ariaLabel ? (s.setAttribute("aria-label", this.ariaLabel), 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;
@@ -4412,7 +4475,7 @@ const y1 = (r1 = class extends y {
4412
4475
  const e = this.getIcon();
4413
4476
  return e ? l`${e}` : null;
4414
4477
  }
4415
- }, r1.styles = Ne, r1.VALID_TYPES = [
4478
+ }, r1.styles = st, r1.VALID_TYPES = [
4416
4479
  "2xs",
4417
4480
  "xs",
4418
4481
  "sm",
@@ -4430,27 +4493,27 @@ const y1 = (r1 = class extends y {
4430
4493
  "48",
4431
4494
  "64"
4432
4495
  ], r1);
4433
- C1([
4434
- n({ type: String, reflect: !0 })
4435
- ], y1.prototype, "name", 2);
4436
- C1([
4437
- n({ type: String })
4438
- ], y1.prototype, "ariaLabel", 2);
4439
- C1([
4440
- n({ type: String })
4441
- ], y1.prototype, "rotate", 2);
4442
- C1([
4443
- n({ type: String })
4444
- ], y1.prototype, "flip", 2);
4445
- C1([
4446
- n({ type: String })
4447
- ], y1.prototype, "color", 2);
4448
- C1([
4449
- n({ reflect: !0 })
4450
- ], y1.prototype, "size", 1);
4451
- let Ye = y1;
4452
- customElements.get("nys-icon") || customElements.define("nys-icon", Ye);
4453
- const Ke = u`
4496
+ b1([
4497
+ r({ type: String, reflect: !0 })
4498
+ ], h1.prototype, "name", 2);
4499
+ b1([
4500
+ r({ type: String })
4501
+ ], h1.prototype, "ariaLabel", 2);
4502
+ b1([
4503
+ r({ type: String })
4504
+ ], h1.prototype, "rotate", 2);
4505
+ b1([
4506
+ r({ type: String })
4507
+ ], h1.prototype, "flip", 2);
4508
+ b1([
4509
+ r({ type: String })
4510
+ ], h1.prototype, "color", 2);
4511
+ b1([
4512
+ r({ reflect: !0 })
4513
+ ], h1.prototype, "size", 1);
4514
+ let nt = h1;
4515
+ customElements.get("nys-icon") || customElements.define("nys-icon", nt);
4516
+ const it = u`
4454
4517
  :host {
4455
4518
  /* Label Typography */
4456
4519
  --_nys-label-font-family: var(
@@ -4483,7 +4546,7 @@ const Ke = u`
4483
4546
  --nys-optional-font-color: var(--nys-color-text-weak, #4a4d4f);
4484
4547
 
4485
4548
  /* Spacing */
4486
- --_nys-label-gap: var(--nys-space-2px, 2px);
4549
+ --_nys-label-gap: var(--nys-space-4px, 4px);
4487
4550
  }
4488
4551
 
4489
4552
  .nys-label {
@@ -4496,12 +4559,9 @@ const Ke = u`
4496
4559
  letter-spacing: var(--_nys-label-letter-spacing);
4497
4560
  }
4498
4561
 
4499
- .nys-label__labelwrapper {
4562
+ .nys-label__label {
4500
4563
  display: flex;
4501
4564
  gap: var(--_nys-label-gap);
4502
- }
4503
-
4504
- .nys-label__label {
4505
4565
  text-align: left;
4506
4566
  font-weight: var(--_nys-label-font-weight);
4507
4567
  color: var(--_nys-label-color);
@@ -4523,54 +4583,87 @@ const Ke = u`
4523
4583
  font-weight: var(--nys-optional-font-weight);
4524
4584
  color: var(--nys-optional-font-color);
4525
4585
  }
4586
+
4587
+ .nys-label__tooltip-wrapper {
4588
+ display: flex;
4589
+ gap: 5px;
4590
+ }
4591
+
4592
+ .nys-label__tooltip-icon {
4593
+ margin-top: -2px;
4594
+ }
4526
4595
  `;
4527
- var We = Object.defineProperty, H1 = (a, e, t, o) => {
4528
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
4529
- (i = a[r]) && (s = i(e, t, s) || s);
4530
- return s && We(e, t, s), s;
4596
+ var at = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, C1 = (a, e, t, o) => {
4597
+ for (var s = o > 1 ? void 0 : o ? lt(e, t) : e, n = a.length - 1, i; n >= 0; n--)
4598
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
4599
+ return o && s && at(e, t, s), s;
4531
4600
  };
4532
- const F1 = class F1 extends y {
4601
+ const Y1 = class Y1 extends y {
4533
4602
  constructor() {
4534
- super(...arguments), this.for = "", this.label = "", this.description = "", this.flag = "";
4603
+ super(...arguments), this.for = "", this.label = "", this.description = "", this.flag = "", this.tooltipInverted = !1, this._tooltip = "";
4604
+ }
4605
+ get tooltip() {
4606
+ return this._tooltip;
4607
+ }
4608
+ set tooltip(e) {
4609
+ this._tooltip = e;
4535
4610
  }
4536
4611
  render() {
4537
4612
  return l`
4538
4613
  <div class="nys-label">
4539
- <label for=${this.id} class="nys-label__label"
4540
- >${this.label}
4541
- ${this.flag === "required" ? l`<label class="nys-label__required">*</label>` : ""}
4542
- ${this.flag === "optional" ? l`<label class="nys-label__optional">(Optional)</label>` : ""}</label
4543
- >
4544
- <label for=${this.id} class="nys-label__description">
4614
+ <div class="nys-label__tooltip-wrapper">
4615
+ <label for=${this.for} class="nys-label__label"
4616
+ >${this.label}
4617
+ ${this.flag === "required" ? l`<div class="nys-label__required">*</div>` : ""}
4618
+ ${this.flag === "optional" ? l`<div class="nys-label__optional">(Optional)</div>` : ""}</label
4619
+ >
4620
+ ${this._tooltip ? l`<nys-tooltip
4621
+ text="${this._tooltip}"
4622
+ position="top"
4623
+ focusable
4624
+ ?inverted=${this.tooltipInverted}
4625
+ >
4626
+ <div class="nys-label__tooltip-icon">
4627
+ <nys-icon name="info" size="3xl"></nys-icon>
4628
+ </div>
4629
+ </nys-tooltip>` : ""}
4630
+ </div>
4631
+ <label for=${this.for} class="nys-label__description">
4545
4632
  <slot name="description">${this.description}</slot>
4546
4633
  </label>
4547
4634
  </div>
4548
4635
  `;
4549
4636
  }
4550
4637
  };
4551
- F1.styles = Ke;
4552
- let h1 = F1;
4553
- H1([
4554
- n({ type: String })
4555
- ], h1.prototype, "for");
4556
- H1([
4557
- n({ type: String })
4558
- ], h1.prototype, "label");
4559
- H1([
4560
- n({ type: String })
4561
- ], h1.prototype, "description");
4562
- H1([
4563
- n({ type: String })
4564
- ], h1.prototype, "flag");
4565
- customElements.get("nys-label") || customElements.define("nys-label", h1);
4566
- const te = u`
4638
+ Y1.styles = it;
4639
+ let e1 = Y1;
4640
+ C1([
4641
+ r({ type: String })
4642
+ ], e1.prototype, "for", 2);
4643
+ C1([
4644
+ r({ type: String })
4645
+ ], e1.prototype, "label", 2);
4646
+ C1([
4647
+ r({ type: String })
4648
+ ], e1.prototype, "description", 2);
4649
+ C1([
4650
+ r({ type: String })
4651
+ ], e1.prototype, "flag", 2);
4652
+ C1([
4653
+ r({ type: Boolean, reflect: !0 })
4654
+ ], e1.prototype, "tooltipInverted", 2);
4655
+ C1([
4656
+ r({ type: String })
4657
+ ], e1.prototype, "tooltip", 1);
4658
+ customElements.get("nys-label") || customElements.define("nys-label", e1);
4659
+ const ae = u`
4567
4660
  :host {
4568
4661
  /* Global Radiobutton Styles */
4569
4662
  --_nys-radiobutton-size: var(--nys-size-400, 32px);
4570
4663
  --_nys-radiobutton-border-radius: var(--nys-radius-md, 4px);
4571
- --_nys-radiobutton-width-border: var(--nys-border-width-md, 2px);
4572
- --_nys-radiobutton-color-focus: var(--nys-color-focus, #004dd1);
4573
- --_nys-radiobutton-width-focus: var(--nys-border-width-md, 2px);
4664
+ --_nys-radiobutton-border-width: var(--nys-border-width-md, 2px);
4665
+ --_nys-radiobutton-outline-color: var(--nys-color-focus, #004dd1);
4666
+ --_nys-radiobutton-outline-width: var(--nys-border-width-md, 2px);
4574
4667
  --_nys-radiobutton-outline-offset: var(--nys-space-2px, 2px);
4575
4668
  /* space between radio and it's label */
4576
4669
  --_nys-radiobutton-gap: var(--nys-space-150, 12px);
@@ -4590,8 +4683,8 @@ const te = u`
4590
4683
  )
4591
4684
  );
4592
4685
  --_nys-radiobutton-font-size: var(--nys-font-size-ui-md, 16px);
4593
- --_nys-radiobutton-font-weight-label: var(--nys-font-weight-regular, 400);
4594
- --_nys-radiobutton-font-weight-description: var(
4686
+ --_nys-radiobutton-font-weight--label: var(--nys-font-weight-regular, 400);
4687
+ --_nys-radiobutton-font-weight--description: var(
4595
4688
  --nys-font-weight-regular,
4596
4689
  400
4597
4690
  );
@@ -4599,25 +4692,30 @@ const te = u`
4599
4692
 
4600
4693
  /* Global Radio Button Colors */
4601
4694
  --_nys-radiobutton-color: var(
4602
- --nys-color-ink,
4603
- var(--nys-color-neutral-900, #1b1b1b)
4604
- );
4605
- --_nys-radiobutton-color-text: var(
4606
4695
  --nys-color-text,
4607
4696
  var(--nys-color-neutral-900, #1b1b1b)
4608
4697
  );
4609
4698
 
4610
4699
  /* Default (Empty) */
4611
- --_nys-radiobutton-color-bg: var(--nys-color-ink-reverse, #ffffff);
4612
- --_nys-radiobutton-color-border: var(--nys-color-neutral-600, #62666a);
4700
+ --_nys-radiobutton-background-color: var(--nys-color-ink-reverse, #ffffff);
4701
+ --_nys-radiobutton-border-color: var(--nys-color-neutral-600, #62666a);
4613
4702
  /* Empty + Hovered */
4614
- --_nys-radiobutton-hover-color-bg: var(--nys-color-neutral-50, #ededed);
4615
- --_nys-radiobutton-hover-color-border: var(--nys-color-ink, #1b1b1b);
4703
+ --_nys-radiobutton-background-color--hover: var(
4704
+ --nys-color-neutral-50,
4705
+ #ededed
4706
+ );
4707
+ --_nys-radiobutton-border-color--hover: var(--nys-color-ink, #1b1b1b);
4616
4708
  /* Empty + Pressed */
4617
- --_nys-radiobutton-pressed-color-bg: var(--nys-color-neutral-100, #d0d0ce);
4618
- --_nys-radiobutton-pressed-color-border: var(--nys-color-ink, #1b1b1b);
4709
+ --_nys-radiobutton-background-color--active: var(
4710
+ --nys-color-neutral-100,
4711
+ #d0d0ce
4712
+ );
4713
+ --_nys-radiobutton-border-color--active: var(--nys-color-ink, #1b1b1b);
4619
4714
  /* Checked */
4620
- --_nys-radiobutton-checked-color-bg: var(--nys-color-theme, #154973);
4715
+ --_nys-radiobutton-background-color--checked: var(
4716
+ --nys-color-theme,
4717
+ #154973
4718
+ );
4621
4719
  /* Disabled */
4622
4720
  --_nys-radiobutton-background-color--disabled: var(
4623
4721
  --nys-color-ink-reverse,
@@ -4656,7 +4754,7 @@ const te = u`
4656
4754
 
4657
4755
  /* Tile Variant */
4658
4756
  :host([tile]) {
4659
- --_nys-radiobutton-font-weight-label: var(--nys-font-weight-semibold, 600);
4757
+ --_nys-radiobutton-font-weight--label: var(--nys-font-weight-semibold, 600);
4660
4758
  --_nys-radiobutton-border-width--tile: var(--nys-border-width-sm, 1px);
4661
4759
  --_nys-radiobutton-border-radius--tile: var(--nys-radius-md, 4px);
4662
4760
  --_nys-radiobutton-border-color--tile: var(
@@ -4767,9 +4865,9 @@ const te = u`
4767
4865
  min-height: var(--_nys-radiobutton-size);
4768
4866
  max-width: var(--_nys-radiobutton-size);
4769
4867
  max-height: var(--_nys-radiobutton-size);
4770
- border: solid var(--_nys-radiobutton-width-border)
4771
- var(--_nys-radiobutton-color-border);
4772
- background-color: var(--_nys-radiobutton-color-bg);
4868
+ border: solid var(--_nys-radiobutton-border-width)
4869
+ var(--_nys-radiobutton-border-color);
4870
+ background-color: var(--_nys-radiobutton-background-color);
4773
4871
  border-radius: 100%;
4774
4872
  background-repeat: no-repeat;
4775
4873
  background-position: center;
@@ -4789,7 +4887,7 @@ const te = u`
4789
4887
  /* Checked */
4790
4888
  input:not(:disabled):checked + .nys-radiobutton .nys-radiobutton__radio {
4791
4889
  background-image: url('data:image/svg+xml;utf8,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="11" cy="11" r="11" stroke="white" stroke-width="6"/></svg>');
4792
- background-color: var(--_nys-radiobutton-checked-color-bg);
4890
+ background-color: var(--_nys-radiobutton-background-color--checked);
4793
4891
  }
4794
4892
  :host([tile])
4795
4893
  .nys-radiobutton:has(input:not(:disabled):checked)
@@ -4822,6 +4920,11 @@ const te = u`
4822
4920
  }
4823
4921
 
4824
4922
  /* Disabled */
4923
+ input:disabled + .nys-radiobutton,
4924
+ input:disabled + .nys-radiobutton * {
4925
+ cursor: not-allowed;
4926
+ }
4927
+
4825
4928
  input:disabled + .nys-radiobutton .nys-radiobutton__radio {
4826
4929
  background-color: var(--_nys-radiobutton-background-color--disabled);
4827
4930
  border-color: var(--_nys-radiobutton-border-color--disabled);
@@ -4840,8 +4943,8 @@ const te = u`
4840
4943
  input:hover:not(:disabled):not(:checked)
4841
4944
  + .nys-radiobutton
4842
4945
  .nys-radiobutton__radio {
4843
- border-color: var(--_nys-radiobutton-hover-color-border);
4844
- background-color: var(--_nys-radiobutton-hover-color-bg);
4946
+ border-color: var(--_nys-radiobutton-border-color--hover);
4947
+ background-color: var(--_nys-radiobutton-background-color--hover);
4845
4948
  }
4846
4949
  :host([tile])
4847
4950
  .nys-radiobutton:has(
@@ -4859,8 +4962,8 @@ const te = u`
4859
4962
  input:active:not(:disabled):not(:checked)
4860
4963
  + .nys-radiobutton
4861
4964
  .nys-radiobutton__radio {
4862
- border-color: var(--_nys-radiobutton-pressed-color-border);
4863
- background-color: var(--_nys-radiobutton-pressed-color-bg);
4965
+ border-color: var(--_nys-radiobutton-border-color--active);
4966
+ background-color: var(--_nys-radiobutton-background-color--active);
4864
4967
  }
4865
4968
  :host([tile])
4866
4969
  .nys-radiobutton:has(
@@ -4877,8 +4980,8 @@ const te = u`
4877
4980
  /* Focused */
4878
4981
  :host:focus-visible,
4879
4982
  :host(.active-focus) {
4880
- outline: solid var(--_nys-radiobutton-width-focus)
4881
- var(--_nys-radiobutton-color-focus);
4983
+ outline: solid var(--_nys-radiobutton-outline-width)
4984
+ var(--_nys-radiobutton-outline-color);
4882
4985
  }
4883
4986
  /* Radiobutton Label Holder */
4884
4987
  .nys-radiobutton__text {
@@ -4889,13 +4992,13 @@ const te = u`
4889
4992
 
4890
4993
  /* Label styling */
4891
4994
  .nys-radiobutton__label {
4892
- font-weight: var(--_nys-radiobutton-font-weight-label);
4893
- color: var(--_nys-radiobutton-color-text);
4995
+ font-weight: var(--_nys-radiobutton-font-weight--label);
4996
+ color: var(--_nys-radiobutton-color);
4894
4997
  }
4895
4998
 
4896
4999
  /* Description styling */
4897
5000
  .nys-radiobutton__description {
4898
- font-weight: var(--_nys-radiobutton-font-weight-description);
5001
+ font-weight: var(--_nys-radiobutton-font-weight--description);
4899
5002
  font-style: italic;
4900
5003
  text-align: left;
4901
5004
  }
@@ -4932,29 +5035,29 @@ const te = u`
4932
5035
  border: 0;
4933
5036
  }
4934
5037
  `;
4935
- var Xe = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, B = (a, e, t, o) => {
4936
- for (var s = o > 1 ? void 0 : o ? Qe(e, t) : e, r = a.length - 1, i; r >= 0; r--)
4937
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
4938
- return o && s && Xe(e, t, s), s;
5038
+ var ct = Object.defineProperty, dt = Object.getOwnPropertyDescriptor, V = (a, e, t, o) => {
5039
+ for (var s = o > 1 ? void 0 : o ? dt(e, t) : e, n = a.length - 1, i; n >= 0; n--)
5040
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
5041
+ return o && s && ct(e, t, s), s;
4939
5042
  };
4940
- let Je = 0;
4941
- var Q;
4942
- const H = (Q = class extends y {
5043
+ let ht = 0;
5044
+ var X;
5045
+ const D = (X = class extends y {
4943
5046
  // allows use of elementInternals' API
4944
5047
  constructor() {
4945
- super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this.selectedValue = null, this._slottedDescriptionText = "", this._size = "md", this._internals = this.attachInternals();
5048
+ super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this._tooltip = "", this.form = null, this.selectedValue = null, this._slottedDescriptionText = "", this._size = "md", this._internals = this.attachInternals();
4946
5049
  }
4947
5050
  get size() {
4948
5051
  return this._size;
4949
5052
  }
4950
5053
  set size(e) {
4951
- this._size = Q.VALID_SIZES.includes(
5054
+ this._size = X.VALID_SIZES.includes(
4952
5055
  e
4953
5056
  ) ? e : "md";
4954
5057
  }
4955
5058
  // Generate a unique ID if one is not provided
4956
5059
  connectedCallback() {
4957
- super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${Je++}`), this.addEventListener("nys-change", this._handleRadioButtonChange), this.addEventListener("invalid", this._handleInvalid);
5060
+ super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${ht++}`), this.addEventListener("nys-change", this._handleRadioButtonChange), this.addEventListener("invalid", this._handleInvalid);
4958
5061
  }
4959
5062
  disconnectedCallback() {
4960
5063
  super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
@@ -4963,7 +5066,7 @@ const H = (Q = class extends y {
4963
5066
  this._initializeCheckedRadioValue(), this._setValue(), this._setRadioButtonRequire(), this._updateRadioButtonsSize(), this._updateRadioButtonsTile(), this._updateRadioButtonsShowError(), this._getSlotDescriptionForAria(), await this.updateComplete, this._initializeChildAttributes(), this._updateGroupTabIndex();
4964
5067
  }
4965
5068
  updated(e) {
4966
- (e.has("required") || e.has("selectedValue")) && this._manageRequire(), e.has("size") && this._updateRadioButtonsSize(), e.has("tile") && this._updateRadioButtonsTile(), e.has("showError") && this._updateRadioButtonsShowError();
5069
+ (e.has("required") || e.has("selectedValue")) && this._manageRequire(), e.has("size") && this._updateRadioButtonsSize(), e.has("tile") && this._updateRadioButtonsTile(), e.has("showError") && this._updateRadioButtonsShowError(), e.has("form") && this._updateRadioButtonsForm();
4967
5070
  }
4968
5071
  // This callback is automatically called when the parent form is reset.
4969
5072
  formResetCallback() {
@@ -4983,11 +5086,12 @@ const H = (Q = class extends y {
4983
5086
  });
4984
5087
  }
4985
5088
  async _manageRequire() {
4986
- const e = this.errorMessage || "Please select an option.", t = this.querySelector("nys-radiobutton"), o = t ? await t.getInputElement() : null;
5089
+ const e = this.errorMessage || "Please select an option.", o = Array.from(this.querySelectorAll("nys-radiobutton"))[0];
4987
5090
  o && (this.required && !this.selectedValue ? this._internals.setValidity(
4988
5091
  { valueMissing: !0 },
4989
5092
  e,
4990
5093
  o
5094
+ // pass the custom element, not shadow input
4991
5095
  ) : (this.showError = !1, this._internals.setValidity({}, "", o)));
4992
5096
  }
4993
5097
  checkValidity() {
@@ -5014,8 +5118,8 @@ const H = (Q = class extends y {
5014
5118
  "Enter"
5015
5119
  ].includes(e.key)) return;
5016
5120
  e.preventDefault();
5017
- const o = this._getAllRadios().filter((f) => !f.disabled), s = o.find((f) => f.checked) || o[0], r = e.key === " " || e.key === "Enter" ? 0 : ["ArrowUp", "ArrowLeft"].includes(e.key) ? -1 : 1;
5018
- let i = o.indexOf(s) + r;
5121
+ const o = this._getAllRadios().filter((g) => !g.disabled), s = o.find((g) => g.checked) || o[0], n = e.key === " " || e.key === "Enter" ? 0 : ["ArrowUp", "ArrowLeft"].includes(e.key) ? -1 : 1;
5122
+ let i = o.indexOf(s) + n;
5019
5123
  i < 0 && (i = o.length - 1), i >= o.length && (i = 0);
5020
5124
  const c = o[i], d = await c.getInputElement();
5021
5125
  d == null || d.click(), this._updateGroupTabIndex(), c.focus();
@@ -5049,6 +5153,11 @@ const H = (Q = class extends y {
5049
5153
  this.showError ? t.setAttribute("showError", "") : t.removeAttribute("showError");
5050
5154
  });
5051
5155
  }
5156
+ _updateRadioButtonsForm() {
5157
+ this.querySelectorAll("nys-radiobutton").forEach((t) => {
5158
+ this.showError && this.form !== null ? t.setAttribute("form", this.form) : t.removeAttribute("form");
5159
+ });
5160
+ }
5052
5161
  // Get the slotted text contents so native VO can attempt to announce it within the legend in the fieldset
5053
5162
  _getSlotDescriptionForAria() {
5054
5163
  var o;
@@ -5056,8 +5165,8 @@ const H = (Q = class extends y {
5056
5165
  'slot[name="description"]'
5057
5166
  ), t = (e == null ? void 0 : e.assignedNodes({ flatten: !0 })) || [];
5058
5167
  this._slottedDescriptionText = t.map((s) => {
5059
- var r;
5060
- return (r = s.textContent) == null ? void 0 : r.trim();
5168
+ var n;
5169
+ return (n = s.textContent) == null ? void 0 : n.trim();
5061
5170
  }).filter(Boolean).join(", ");
5062
5171
  }
5063
5172
  /******************** Event Handlers ********************/
@@ -5085,6 +5194,7 @@ const H = (Q = class extends y {
5085
5194
  label=${this.label}
5086
5195
  description=${this.description}
5087
5196
  flag=${this.required ? "required" : this.optional ? "optional" : ""}
5197
+ _tooltip=${this._tooltip}
5088
5198
  >
5089
5199
  <slot name="description" slot="description">${this.description}</slot>
5090
5200
  </nys-label>
@@ -5103,61 +5213,67 @@ const H = (Q = class extends y {
5103
5213
  ></nys-errormessage>
5104
5214
  </div>`;
5105
5215
  }
5106
- }, Q.VALID_SIZES = ["sm", "md"], Q.styles = te, Q.formAssociated = !0, Q);
5107
- B([
5108
- n({ type: String })
5109
- ], H.prototype, "id", 2);
5110
- B([
5111
- n({ type: String, reflect: !0 })
5112
- ], H.prototype, "name", 2);
5113
- B([
5114
- n({ type: Boolean, reflect: !0 })
5115
- ], H.prototype, "required", 2);
5116
- B([
5117
- n({ type: Boolean, reflect: !0 })
5118
- ], H.prototype, "optional", 2);
5119
- B([
5120
- n({ type: Boolean, reflect: !0 })
5121
- ], H.prototype, "showError", 2);
5122
- B([
5123
- n({ type: String })
5124
- ], H.prototype, "errorMessage", 2);
5125
- B([
5126
- n({ type: String })
5127
- ], H.prototype, "label", 2);
5128
- B([
5129
- n({ type: String })
5130
- ], H.prototype, "description", 2);
5131
- B([
5132
- n({ type: Boolean, reflect: !0 })
5133
- ], H.prototype, "tile", 2);
5134
- B([
5135
- E()
5136
- ], H.prototype, "selectedValue", 2);
5137
- B([
5138
- E()
5139
- ], H.prototype, "_slottedDescriptionText", 2);
5140
- B([
5141
- n({ reflect: !0 })
5142
- ], H.prototype, "size", 1);
5143
- let et = H;
5144
- customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", et);
5145
- var tt = Object.defineProperty, st = Object.getOwnPropertyDescriptor, Y = (a, e, t, o) => {
5146
- for (var s = o > 1 ? void 0 : o ? st(e, t) : e, r = a.length - 1, i; r >= 0; r--)
5147
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
5148
- return o && s && tt(e, t, s), s;
5216
+ }, X.VALID_SIZES = ["sm", "md"], X.styles = ae, X.formAssociated = !0, X);
5217
+ V([
5218
+ r({ type: String })
5219
+ ], D.prototype, "id", 2);
5220
+ V([
5221
+ r({ type: String, reflect: !0 })
5222
+ ], D.prototype, "name", 2);
5223
+ V([
5224
+ r({ type: Boolean, reflect: !0 })
5225
+ ], D.prototype, "required", 2);
5226
+ V([
5227
+ r({ type: Boolean, reflect: !0 })
5228
+ ], D.prototype, "optional", 2);
5229
+ V([
5230
+ r({ type: Boolean, reflect: !0 })
5231
+ ], D.prototype, "showError", 2);
5232
+ V([
5233
+ r({ type: String })
5234
+ ], D.prototype, "errorMessage", 2);
5235
+ V([
5236
+ r({ type: String })
5237
+ ], D.prototype, "label", 2);
5238
+ V([
5239
+ r({ type: String })
5240
+ ], D.prototype, "description", 2);
5241
+ V([
5242
+ r({ type: Boolean, reflect: !0 })
5243
+ ], D.prototype, "tile", 2);
5244
+ V([
5245
+ r({ type: String })
5246
+ ], D.prototype, "_tooltip", 2);
5247
+ V([
5248
+ r({ type: String, reflect: !0 })
5249
+ ], D.prototype, "form", 2);
5250
+ V([
5251
+ I()
5252
+ ], D.prototype, "selectedValue", 2);
5253
+ V([
5254
+ I()
5255
+ ], D.prototype, "_slottedDescriptionText", 2);
5256
+ V([
5257
+ r({ reflect: !0 })
5258
+ ], D.prototype, "size", 1);
5259
+ let yt = D;
5260
+ customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", yt);
5261
+ var ut = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, R = (a, e, t, o) => {
5262
+ for (var s = o > 1 ? void 0 : o ? pt(e, t) : e, n = a.length - 1, i; n >= 0; n--)
5263
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
5264
+ return o && s && ut(e, t, s), s;
5149
5265
  };
5150
- let ot = 0;
5151
- var p;
5152
- const T = (p = class extends y {
5266
+ let vt = 0;
5267
+ var v;
5268
+ const U = (v = class extends y {
5153
5269
  constructor() {
5154
- 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;
5270
+ super(...arguments), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this.form = null, this._size = "md", this.tile = !1;
5155
5271
  }
5156
5272
  get size() {
5157
5273
  return this._size;
5158
5274
  }
5159
5275
  set size(e) {
5160
- this._size = p.VALID_SIZES.includes(
5276
+ this._size = v.VALID_SIZES.includes(
5161
5277
  e
5162
5278
  ) ? e : "md";
5163
5279
  }
@@ -5172,13 +5288,13 @@ const T = (p = class extends y {
5172
5288
  /********************** Lifecycle updates **********************/
5173
5289
  // Generate a unique ID if one is not provided
5174
5290
  connectedCallback() {
5175
- super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${ot++}`), this.checked && (p.buttonGroup[this.name] && (p.buttonGroup[this.name].checked = !1, p.buttonGroup[this.name].requestUpdate()), p.buttonGroup[this.name] = this), this.addEventListener("focus", this._handleFocus), this.addEventListener("blur", this._handleBlur), this.addEventListener("click", this._handleChange);
5291
+ super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${vt++}`), this.checked && (v.buttonGroup[this.name] && (v.buttonGroup[this.name].checked = !1, v.buttonGroup[this.name].requestUpdate()), v.buttonGroup[this.name] = this), this.addEventListener("focus", this._handleFocus), this.addEventListener("blur", this._handleBlur), this.addEventListener("click", this._handleChange);
5176
5292
  }
5177
5293
  disconnectedCallback() {
5178
5294
  super.disconnectedCallback(), this.removeEventListener("focus", this._handleFocus), this.removeEventListener("blur", this._handleBlur);
5179
5295
  }
5180
5296
  updated(e) {
5181
- e.has("checked") && this.checked && p.buttonGroup[this.name] !== this && (p.buttonGroup[this.name] && (p.buttonGroup[this.name].checked = !1, p.buttonGroup[this.name].requestUpdate()), p.buttonGroup[this.name] = this);
5297
+ e.has("checked") && this.checked && v.buttonGroup[this.name] !== this && (v.buttonGroup[this.name] && (v.buttonGroup[this.name].checked = !1, v.buttonGroup[this.name].requestUpdate()), v.buttonGroup[this.name] = this);
5182
5298
  }
5183
5299
  /********************** Functions **********************/
5184
5300
  // This helper function is called to perform the element's native validation.
@@ -5206,7 +5322,7 @@ const T = (p = class extends y {
5206
5322
  }
5207
5323
  // Handle radiobutton change event & unselection of other options in group
5208
5324
  _handleChange() {
5209
- this.classList.remove("active-focus"), this.checked || (p.buttonGroup[this.name] && (p.buttonGroup[this.name].checked = !1, p.buttonGroup[this.name].requestUpdate()), p.buttonGroup[this.name] = this, this.checked = !0, this._emitChangeEvent());
5325
+ this.classList.remove("active-focus"), !this.checked && !this.disabled && (v.buttonGroup[this.name] && (v.buttonGroup[this.name].checked = !1, v.buttonGroup[this.name].requestUpdate()), v.buttonGroup[this.name] = this, this.checked = !0, this._emitChangeEvent());
5210
5326
  }
5211
5327
  // Handle focus event
5212
5328
  _handleFocus() {
@@ -5234,18 +5350,17 @@ const T = (p = class extends y {
5234
5350
  ?disabled=${this.disabled}
5235
5351
  .value=${this.value}
5236
5352
  ?required="${this.required}"
5353
+ form=${h(this.form || void 0)}
5237
5354
  @change="${this._handleChange}"
5238
5355
  hidden
5239
5356
  aria-hidden="true"
5240
5357
  />
5241
-
5242
5358
  <label
5243
5359
  class="nys-radiobutton"
5244
5360
  for="${this.id}"
5245
5361
  @click="${this._callInputHandling}"
5246
5362
  >
5247
5363
  <span class="nys-radiobutton__radio"></span>
5248
-
5249
5364
  ${this.label && l` <div class="nys-radiobutton__text">
5250
5365
  <div class="nys-radiobutton__label">${this.label}</div>
5251
5366
  <div class="nys-radiobutton__description">
@@ -5255,40 +5370,43 @@ const T = (p = class extends y {
5255
5370
  </label>
5256
5371
  `;
5257
5372
  }
5258
- }, p.VALID_SIZES = ["sm", "md"], p.buttonGroup = {}, p.styles = te, p);
5259
- Y([
5260
- n({ type: Boolean, reflect: !0 })
5261
- ], T.prototype, "checked", 2);
5262
- Y([
5263
- n({ type: Boolean, reflect: !0 })
5264
- ], T.prototype, "disabled", 2);
5265
- Y([
5266
- n({ type: Boolean, reflect: !0 })
5267
- ], T.prototype, "required", 2);
5268
- Y([
5269
- n({ type: String })
5270
- ], T.prototype, "label", 2);
5271
- Y([
5272
- n({ type: String })
5273
- ], T.prototype, "description", 2);
5274
- Y([
5275
- n({ type: String })
5276
- ], T.prototype, "id", 2);
5277
- Y([
5278
- n({ type: String, reflect: !0 })
5279
- ], T.prototype, "name", 2);
5280
- Y([
5281
- n({ type: String })
5282
- ], T.prototype, "value", 2);
5283
- Y([
5284
- n({ reflect: !0 })
5285
- ], T.prototype, "size", 1);
5286
- Y([
5287
- n({ type: Boolean, reflect: !0 })
5288
- ], T.prototype, "tile", 2);
5289
- let rt = T;
5290
- customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", rt);
5291
- const nt = u`
5373
+ }, v.VALID_SIZES = ["sm", "md"], v.buttonGroup = {}, v.styles = ae, v);
5374
+ R([
5375
+ r({ type: Boolean, reflect: !0 })
5376
+ ], U.prototype, "checked", 2);
5377
+ R([
5378
+ r({ type: Boolean, reflect: !0 })
5379
+ ], U.prototype, "disabled", 2);
5380
+ R([
5381
+ r({ type: Boolean, reflect: !0 })
5382
+ ], U.prototype, "required", 2);
5383
+ R([
5384
+ r({ type: String })
5385
+ ], U.prototype, "label", 2);
5386
+ R([
5387
+ r({ type: String })
5388
+ ], U.prototype, "description", 2);
5389
+ R([
5390
+ r({ type: String })
5391
+ ], U.prototype, "id", 2);
5392
+ R([
5393
+ r({ type: String, reflect: !0 })
5394
+ ], U.prototype, "name", 2);
5395
+ R([
5396
+ r({ type: String })
5397
+ ], U.prototype, "value", 2);
5398
+ R([
5399
+ r({ type: String, reflect: !0 })
5400
+ ], U.prototype, "form", 2);
5401
+ R([
5402
+ r({ reflect: !0 })
5403
+ ], U.prototype, "size", 1);
5404
+ R([
5405
+ r({ type: Boolean, reflect: !0 })
5406
+ ], U.prototype, "tile", 2);
5407
+ let ft = U;
5408
+ customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", ft);
5409
+ const gt = u`
5292
5410
  :host {
5293
5411
  /* Global Select Styles */
5294
5412
  --_nys-select-width: 100%;
@@ -5432,12 +5550,12 @@ const nt = u`
5432
5550
  var(--_nys-select-color--error);
5433
5551
  }
5434
5552
  `;
5435
- var it = Object.defineProperty, S1 = (a, e, t, o) => {
5436
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
5437
- (i = a[r]) && (s = i(e, t, s) || s);
5438
- return s && it(e, t, s), s;
5553
+ var bt = Object.defineProperty, L1 = (a, e, t, o) => {
5554
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
5555
+ (i = a[n]) && (s = i(e, t, s) || s);
5556
+ return s && bt(e, t, s), s;
5439
5557
  };
5440
- class u1 extends y {
5558
+ class y1 extends y {
5441
5559
  constructor() {
5442
5560
  super(...arguments), this.disabled = !1, this.selected = !1, this.value = "", this.label = "", this.hidden = !1;
5443
5561
  }
@@ -5464,45 +5582,45 @@ class u1 extends y {
5464
5582
  `;
5465
5583
  }
5466
5584
  }
5467
- S1([
5468
- n({ type: Boolean, reflect: !0 })
5469
- ], u1.prototype, "disabled");
5470
- S1([
5471
- n({ type: Boolean, reflect: !0 })
5472
- ], u1.prototype, "selected");
5473
- S1([
5474
- n({ type: String })
5475
- ], u1.prototype, "value");
5476
- S1([
5477
- n({ type: String })
5478
- ], u1.prototype, "label");
5479
- S1([
5480
- n({ type: Boolean, reflect: !0 })
5481
- ], u1.prototype, "hidden");
5482
- customElements.define("nys-option", u1);
5483
- var at = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, q = (a, e, t, o) => {
5484
- for (var s = o > 1 ? void 0 : o ? lt(e, t) : e, r = a.length - 1, i; r >= 0; r--)
5485
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
5486
- return o && s && at(e, t, s), s;
5585
+ L1([
5586
+ r({ type: Boolean, reflect: !0 })
5587
+ ], y1.prototype, "disabled");
5588
+ L1([
5589
+ r({ type: Boolean, reflect: !0 })
5590
+ ], y1.prototype, "selected");
5591
+ L1([
5592
+ r({ type: String })
5593
+ ], y1.prototype, "value");
5594
+ L1([
5595
+ r({ type: String })
5596
+ ], y1.prototype, "label");
5597
+ L1([
5598
+ r({ type: Boolean, reflect: !0 })
5599
+ ], y1.prototype, "hidden");
5600
+ customElements.define("nys-option", y1);
5601
+ var Ct = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, q = (a, e, t, o) => {
5602
+ for (var s = o > 1 ? void 0 : o ? _t(e, t) : e, n = a.length - 1, i; n >= 0; n--)
5603
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
5604
+ return o && s && Ct(e, t, s), s;
5487
5605
  };
5488
- let ct = 0;
5489
- var J;
5490
- const A = (J = class extends y {
5606
+ let mt = 0;
5607
+ var Q;
5608
+ const H = (Q = class extends y {
5491
5609
  // allows use of elementInternals' API
5492
5610
  constructor() {
5493
- 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();
5611
+ super(), this.id = "", this.name = "", this.label = "", this.description = "", this.value = "", this.disabled = !1, this.required = !1, this.optional = !1, this._tooltip = "", this.form = null, this.showError = !1, this.errorMessage = "", this._width = "md", this._hasUserInteracted = !1, this._internals = this.attachInternals();
5494
5612
  }
5495
5613
  get width() {
5496
5614
  return this._width;
5497
5615
  }
5498
5616
  set width(e) {
5499
- this._width = J.VALID_WIDTHS.includes(
5617
+ this._width = Q.VALID_WIDTHS.includes(
5500
5618
  e
5501
5619
  ) ? e : "full";
5502
5620
  }
5503
5621
  // Generate a unique ID if one is not provided
5504
5622
  connectedCallback() {
5505
- super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${ct++}`), this.addEventListener("invalid", this._handleInvalid);
5623
+ super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${mt++}`), this.addEventListener("invalid", this._handleInvalid);
5506
5624
  }
5507
5625
  disconnectedCallback() {
5508
5626
  super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
@@ -5515,14 +5633,14 @@ const A = (J = class extends y {
5515
5633
  this.value = "";
5516
5634
  }
5517
5635
  _handleSlotChange() {
5518
- var s, r;
5636
+ var s, n;
5519
5637
  const e = (s = this.shadowRoot) == null ? void 0 : s.querySelector(
5520
5638
  'slot:not([name="description"])'
5521
- ), t = (r = this.shadowRoot) == null ? void 0 : r.querySelector("select");
5639
+ ), t = (n = this.shadowRoot) == null ? void 0 : n.querySelector("select");
5522
5640
  if (!e || !t) return;
5523
5641
  t.querySelectorAll("option:not([hidden])").forEach((i) => i.remove()), e.assignedElements({ flatten: !0 }).forEach((i) => {
5524
5642
  var c;
5525
- if (i instanceof u1) {
5643
+ if (i instanceof y1) {
5526
5644
  const d = document.createElement("option");
5527
5645
  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);
5528
5646
  }
@@ -5578,7 +5696,7 @@ const A = (J = class extends y {
5578
5696
  _handleChange(e) {
5579
5697
  const t = e.target;
5580
5698
  this.value = t.value, this._internals.setFormValue(this.value), this._hasUserInteracted && this._validate(), this.dispatchEvent(
5581
- new CustomEvent("change", {
5699
+ new CustomEvent("nys-change", {
5582
5700
  detail: { id: this.id, value: this.value },
5583
5701
  bubbles: !0,
5584
5702
  composed: !0
@@ -5609,6 +5727,7 @@ const A = (J = class extends y {
5609
5727
  label=${this.label}
5610
5728
  description=${this.description}
5611
5729
  flag=${this.required ? "required" : this.optional ? "optional" : ""}
5730
+ _tooltip=${this._tooltip}
5612
5731
  >
5613
5732
  <slot name="description" slot="description">${this.description}</slot>
5614
5733
  </nys-label>
@@ -5617,6 +5736,7 @@ const A = (J = class extends y {
5617
5736
  class="nys-select__select"
5618
5737
  name=${this.name}
5619
5738
  id=${this.id}
5739
+ form=${h(this.form || void 0)}
5620
5740
  ?disabled=${this.disabled}
5621
5741
  ?required=${this.required}
5622
5742
  aria-disabled="${this.disabled}"
@@ -5626,7 +5746,7 @@ const A = (J = class extends y {
5626
5746
  @blur="${this._handleBlur}"
5627
5747
  @change="${this._handleChange}"
5628
5748
  >
5629
- <option hidden disabled selected value></option>
5749
+ <option hidden disabled selected value=""></option>
5630
5750
  </select>
5631
5751
  <slot
5632
5752
  @slotchange="${this._handleSlotChange}"
@@ -5645,46 +5765,49 @@ const A = (J = class extends y {
5645
5765
  </div>
5646
5766
  `;
5647
5767
  }
5648
- }, J.VALID_WIDTHS = ["sm", "md", "lg", "full"], J.styles = nt, J.formAssociated = !0, J);
5768
+ }, Q.VALID_WIDTHS = ["sm", "md", "lg", "full"], Q.styles = gt, Q.formAssociated = !0, Q);
5649
5769
  q([
5650
- n({ type: String })
5651
- ], A.prototype, "id", 2);
5770
+ r({ type: String })
5771
+ ], H.prototype, "id", 2);
5652
5772
  q([
5653
- n({ type: String, reflect: !0 })
5654
- ], A.prototype, "name", 2);
5773
+ r({ type: String, reflect: !0 })
5774
+ ], H.prototype, "name", 2);
5655
5775
  q([
5656
- n({ type: String })
5657
- ], A.prototype, "label", 2);
5776
+ r({ type: String })
5777
+ ], H.prototype, "label", 2);
5778
+ q([
5779
+ r({ type: String })
5780
+ ], H.prototype, "description", 2);
5658
5781
  q([
5659
- n({ type: String })
5660
- ], A.prototype, "description", 2);
5782
+ r({ type: String })
5783
+ ], H.prototype, "value", 2);
5661
5784
  q([
5662
- n({ type: String })
5663
- ], A.prototype, "value", 2);
5785
+ r({ type: Boolean, reflect: !0 })
5786
+ ], H.prototype, "disabled", 2);
5664
5787
  q([
5665
- n({ type: Boolean, reflect: !0 })
5666
- ], A.prototype, "disabled", 2);
5788
+ r({ type: Boolean, reflect: !0 })
5789
+ ], H.prototype, "required", 2);
5667
5790
  q([
5668
- n({ type: Boolean, reflect: !0 })
5669
- ], A.prototype, "required", 2);
5791
+ r({ type: Boolean, reflect: !0 })
5792
+ ], H.prototype, "optional", 2);
5670
5793
  q([
5671
- n({ type: Boolean, reflect: !0 })
5672
- ], A.prototype, "optional", 2);
5794
+ r({ type: String })
5795
+ ], H.prototype, "_tooltip", 2);
5673
5796
  q([
5674
- n({ type: String })
5675
- ], A.prototype, "form", 2);
5797
+ r({ type: String, reflect: !0 })
5798
+ ], H.prototype, "form", 2);
5676
5799
  q([
5677
- n({ type: Boolean, reflect: !0 })
5678
- ], A.prototype, "showError", 2);
5800
+ r({ type: Boolean, reflect: !0 })
5801
+ ], H.prototype, "showError", 2);
5679
5802
  q([
5680
- n({ type: String })
5681
- ], A.prototype, "errorMessage", 2);
5803
+ r({ type: String })
5804
+ ], H.prototype, "errorMessage", 2);
5682
5805
  q([
5683
- n({ reflect: !0 })
5684
- ], A.prototype, "width", 1);
5685
- let dt = A;
5686
- customElements.get("nys-select") || customElements.define("nys-select", dt);
5687
- const ht = u`
5806
+ r({ reflect: !0 })
5807
+ ], H.prototype, "width", 1);
5808
+ let xt = H;
5809
+ customElements.get("nys-select") || customElements.define("nys-select", xt);
5810
+ const wt = u`
5688
5811
  :host {
5689
5812
  /* Global Skipnav Styles */
5690
5813
  --_nys-skipnav-padding--y: var(--nys-space-100, 8px);
@@ -5754,12 +5877,12 @@ const ht = u`
5754
5877
  outline: none;
5755
5878
  }
5756
5879
  `;
5757
- var yt = Object.defineProperty, se = (a, e, t, o) => {
5758
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
5759
- (i = a[r]) && (s = i(e, t, s) || s);
5760
- return s && yt(e, t, s), s;
5880
+ var kt = Object.defineProperty, le = (a, e, t, o) => {
5881
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
5882
+ (i = a[n]) && (s = i(e, t, s) || s);
5883
+ return s && kt(e, t, s), s;
5761
5884
  };
5762
- const N1 = class N1 extends y {
5885
+ const K1 = class K1 extends y {
5763
5886
  constructor() {
5764
5887
  super(), this.id = "", this.href = "";
5765
5888
  }
@@ -5800,16 +5923,16 @@ const N1 = class N1 extends y {
5800
5923
  `;
5801
5924
  }
5802
5925
  };
5803
- N1.styles = ht;
5804
- let k1 = N1;
5805
- se([
5806
- n({ type: String })
5807
- ], k1.prototype, "id");
5808
- se([
5809
- n({ type: String })
5810
- ], k1.prototype, "href");
5811
- customElements.get("nys-skipnav") || customElements.define("nys-skipnav", k1);
5812
- const oe = u`
5926
+ K1.styles = wt;
5927
+ let w1 = K1;
5928
+ le([
5929
+ r({ type: String })
5930
+ ], w1.prototype, "id");
5931
+ le([
5932
+ r({ type: String })
5933
+ ], w1.prototype, "href");
5934
+ customElements.get("nys-skipnav") || customElements.define("nys-skipnav", w1);
5935
+ const ce = u`
5813
5936
  :host {
5814
5937
  /* Anything that can be overridden should be defined here */
5815
5938
 
@@ -6111,9 +6234,6 @@ const oe = u`
6111
6234
  display: flex;
6112
6235
  }
6113
6236
 
6114
- :host([isCompactExpanded]) .nys-stepper {
6115
- }
6116
-
6117
6237
  :host([isCompactExpanded]) .nys-stepper__header {
6118
6238
  padding-bottom: var(--nys-space-250, 20px);
6119
6239
  }
@@ -6166,12 +6286,12 @@ const oe = u`
6166
6286
  }
6167
6287
  }
6168
6288
  `;
6169
- var ut = Object.defineProperty, p1 = (a, e, t, o) => {
6170
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
6171
- (i = a[r]) && (s = i(e, t, s) || s);
6172
- return s && ut(e, t, s), s;
6289
+ var Lt = Object.defineProperty, u1 = (a, e, t, o) => {
6290
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
6291
+ (i = a[n]) && (s = i(e, t, s) || s);
6292
+ return s && Lt(e, t, s), s;
6173
6293
  };
6174
- const j1 = class j1 extends y {
6294
+ const W1 = class W1 extends y {
6175
6295
  constructor() {
6176
6296
  super(...arguments), this.selected = !1, this.current = !1, this.label = "", this.href = "", this.isCompactExpanded = !1, this.stepNumber = 0;
6177
6297
  }
@@ -6219,36 +6339,36 @@ const j1 = class j1 extends y {
6219
6339
  `;
6220
6340
  }
6221
6341
  };
6222
- j1.styles = oe;
6223
- let N = j1;
6224
- p1([
6225
- n({ type: Boolean, reflect: !0 })
6342
+ W1.styles = ce;
6343
+ let N = W1;
6344
+ u1([
6345
+ r({ type: Boolean, reflect: !0 })
6226
6346
  ], N.prototype, "selected");
6227
- p1([
6228
- n({ type: Boolean, reflect: !0 })
6347
+ u1([
6348
+ r({ type: Boolean, reflect: !0 })
6229
6349
  ], N.prototype, "current");
6230
- p1([
6231
- n({ type: String })
6350
+ u1([
6351
+ r({ type: String })
6232
6352
  ], N.prototype, "label");
6233
- p1([
6234
- n({ type: String })
6353
+ u1([
6354
+ r({ type: String })
6235
6355
  ], N.prototype, "href");
6236
- p1([
6237
- n({ type: Boolean })
6356
+ u1([
6357
+ r({ type: Boolean })
6238
6358
  ], N.prototype, "isCompactExpanded");
6239
- p1([
6240
- n({ type: Function })
6359
+ u1([
6360
+ r({ type: Function })
6241
6361
  ], N.prototype, "onClick");
6242
- p1([
6243
- n({ type: Number })
6362
+ u1([
6363
+ r({ type: Number })
6244
6364
  ], N.prototype, "stepNumber");
6245
6365
  customElements.get("nys-step") || customElements.define("nys-step", N);
6246
- var pt = Object.defineProperty, $1 = (a, e, t, o) => {
6247
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
6248
- (i = a[r]) && (s = i(e, t, s) || s);
6249
- return s && pt(e, t, s), s;
6366
+ var St = Object.defineProperty, S1 = (a, e, t, o) => {
6367
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
6368
+ (i = a[n]) && (s = i(e, t, s) || s);
6369
+ return s && St(e, t, s), s;
6250
6370
  };
6251
- const G1 = class G1 extends y {
6371
+ const X1 = class X1 extends y {
6252
6372
  constructor() {
6253
6373
  super(), this.id = "", this.name = "", this.label = "", this.counterText = "initial", this.isCompactExpanded = !1, this._stepsNumbered = !1, this._onStepClick = async (e) => {
6254
6374
  const t = e.composedPath().find(
@@ -6257,8 +6377,8 @@ const G1 = class G1 extends y {
6257
6377
  if (!t) return;
6258
6378
  const o = Array.from(this.querySelectorAll("nys-step")), s = o.findIndex(
6259
6379
  (i) => i.hasAttribute("current")
6260
- ), r = o.indexOf(t);
6261
- s !== -1 && r > s || t.hasAttribute("selected") || (o.forEach((i) => i.removeAttribute("selected")), t.setAttribute("selected", ""), this._updateCounter(), this.isCompactExpanded = !1);
6380
+ ), n = o.indexOf(t);
6381
+ s !== -1 && n > s || t.hasAttribute("selected") || (o.forEach((i) => i.removeAttribute("selected")), t.setAttribute("selected", ""), this._updateCounter(), this.isCompactExpanded = !1);
6262
6382
  };
6263
6383
  }
6264
6384
  connectedCallback() {
@@ -6285,11 +6405,11 @@ const G1 = class G1 extends y {
6285
6405
  return;
6286
6406
  }
6287
6407
  const s = o[0];
6288
- Array.from(s.children).forEach((r) => {
6289
- r instanceof HTMLElement && r.tagName.toLowerCase() === "nys-button" ? (r.setAttribute("size", "sm"), r.hasAttribute("fullWidth") && (r.style.flex = "1 1 0")) : (console.warn(
6408
+ Array.from(s.children).forEach((n) => {
6409
+ n instanceof HTMLElement && n.tagName.toLowerCase() === "nys-button" ? (n.setAttribute("size", "sm"), n.hasAttribute("fullWidth") && (n.style.flex = "1 1 0")) : (console.warn(
6290
6410
  "The <div> inside 'actions' slot only accepts <nys-button> elements. Removing invalid node:",
6291
- r
6292
- ), r.remove());
6411
+ n
6412
+ ), n.remove());
6293
6413
  });
6294
6414
  }
6295
6415
  _updateCounter() {
@@ -6305,14 +6425,14 @@ const G1 = class G1 extends y {
6305
6425
  }
6306
6426
  updated() {
6307
6427
  const e = this.querySelectorAll("nys-step");
6308
- this._stepsNumbered || (e.forEach((r, i) => {
6309
- r.stepNumber = i + 1;
6428
+ this._stepsNumbered || (e.forEach((n, i) => {
6429
+ n.stepNumber = i + 1;
6310
6430
  }), this._stepsNumbered = !0);
6311
6431
  let t = !1, o = !1, s = !1;
6312
- e.forEach((r, i) => {
6313
- r.hasAttribute("current") && (s ? r.removeAttribute("current") : s = !0), i === 0 ? r.setAttribute("first", "") : r.removeAttribute("first"), r.hasAttribute("current") ? (t = !0, r.removeAttribute("previous")) : t ? r.removeAttribute("previous") : r.setAttribute("previous", ""), r.hasAttribute("selected") && (t || o ? r.removeAttribute("selected") : o = !0), this.hasAttribute("isCompactExpanded") ? r.setAttribute("isCompactExpanded", "") : r.removeAttribute("isCompactExpanded");
6314
- }), o || (s ? e.forEach((r) => {
6315
- r.hasAttribute("current") && !o && (r.setAttribute("selected", ""), o = !0);
6432
+ e.forEach((n, i) => {
6433
+ n.hasAttribute("current") && (s ? n.removeAttribute("current") : s = !0), i === 0 ? n.setAttribute("first", "") : n.removeAttribute("first"), n.hasAttribute("current") ? (t = !0, n.removeAttribute("previous")) : t ? n.removeAttribute("previous") : n.setAttribute("previous", ""), n.hasAttribute("selected") && (t || o ? n.removeAttribute("selected") : o = !0), this.hasAttribute("isCompactExpanded") ? n.setAttribute("isCompactExpanded", "") : n.removeAttribute("isCompactExpanded");
6434
+ }), o || (s ? e.forEach((n) => {
6435
+ n.hasAttribute("current") && !o && (n.setAttribute("selected", ""), o = !0);
6316
6436
  }) : e.length > 0 && (e[0].setAttribute("current", ""), e[0].setAttribute("selected", ""))), this._updateCounter();
6317
6437
  }
6318
6438
  _toggleCompact() {
@@ -6346,25 +6466,25 @@ const G1 = class G1 extends y {
6346
6466
  `;
6347
6467
  }
6348
6468
  };
6349
- G1.styles = oe;
6350
- let i1 = G1;
6351
- $1([
6352
- n({ type: String })
6469
+ X1.styles = ce;
6470
+ let i1 = X1;
6471
+ S1([
6472
+ r({ type: String })
6353
6473
  ], i1.prototype, "id");
6354
- $1([
6355
- n({ type: String, reflect: !0 })
6474
+ S1([
6475
+ r({ type: String, reflect: !0 })
6356
6476
  ], i1.prototype, "name");
6357
- $1([
6358
- n({ type: String })
6477
+ S1([
6478
+ r({ type: String })
6359
6479
  ], i1.prototype, "label");
6360
- $1([
6361
- n({ type: String })
6480
+ S1([
6481
+ r({ type: String })
6362
6482
  ], i1.prototype, "counterText");
6363
- $1([
6364
- n({ type: Boolean, reflect: !0 })
6483
+ S1([
6484
+ r({ type: Boolean, reflect: !0 })
6365
6485
  ], i1.prototype, "isCompactExpanded");
6366
6486
  customElements.get("nys-stepper") || customElements.define("nys-stepper", i1);
6367
- const vt = u`
6487
+ const $t = u`
6368
6488
  :host {
6369
6489
  /* Anything that can be overridden should be defined here */
6370
6490
 
@@ -6504,32 +6624,32 @@ const vt = u`
6504
6624
  cursor: not-allowed;
6505
6625
  }
6506
6626
  `;
6507
- var ft = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, w = (a, e, t, o) => {
6508
- for (var s = o > 1 ? void 0 : o ? gt(e, t) : e, r = a.length - 1, i; r >= 0; r--)
6509
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
6510
- return o && s && ft(e, t, s), s;
6627
+ var Dt = Object.defineProperty, Et = Object.getOwnPropertyDescriptor, w = (a, e, t, o) => {
6628
+ for (var s = o > 1 ? void 0 : o ? Et(e, t) : e, n = a.length - 1, i; n >= 0; n--)
6629
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
6630
+ return o && s && Dt(e, t, s), s;
6511
6631
  };
6512
- let bt = 0;
6513
- var U;
6514
- const m = (U = class extends y {
6632
+ let zt = 0;
6633
+ var P;
6634
+ const m = (P = class extends y {
6515
6635
  // allows use of elementInternals' API
6516
6636
  constructor() {
6517
- 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();
6637
+ 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._tooltip = "", this.form = null, this.maxlength = null, this.width = "full", this.rows = 4, this._resize = "vertical", this.showError = !1, this.errorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
6518
6638
  }
6519
6639
  get resize() {
6520
6640
  return this._resize;
6521
6641
  }
6522
6642
  set resize(e) {
6523
- this._resize = U.VALID_RESIZE.includes(
6643
+ this._resize = P.VALID_RESIZE.includes(
6524
6644
  e
6525
6645
  ) ? e : "vertical";
6526
6646
  }
6527
6647
  async updated(e) {
6528
- await Promise.resolve(), e.has("width") && (this.width = U.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("rows") && (this.rows = this.rows ?? 4);
6648
+ await Promise.resolve(), e.has("width") && (this.width = P.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("rows") && (this.rows = this.rows ?? 4);
6529
6649
  }
6530
6650
  // Generate a unique ID if one is not provided
6531
6651
  connectedCallback() {
6532
- super.connectedCallback(), this.id || (this.id = `nys-textarea-${Date.now()}-${bt++}`), this.addEventListener("invalid", this._handleInvalid);
6652
+ super.connectedCallback(), this.id || (this.id = `nys-textarea-${Date.now()}-${zt++}`), this.addEventListener("invalid", this._handleInvalid);
6533
6653
  }
6534
6654
  disconnectedCallback() {
6535
6655
  super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
@@ -6634,6 +6754,7 @@ const m = (U = class extends y {
6634
6754
  label=${this.label}
6635
6755
  description=${this.description}
6636
6756
  flag=${this.required ? "required" : this.optional ? "optional" : ""}
6757
+ _tooltip=${this._tooltip}
6637
6758
  >
6638
6759
  <slot name="description" slot="description">${this.description}</slot>
6639
6760
  </nys-label>
@@ -6651,9 +6772,7 @@ const m = (U = class extends y {
6651
6772
  placeholder=${h(
6652
6773
  this.placeholder ? this.placeholder : void 0
6653
6774
  )}
6654
- maxlength=${h(
6655
- this.maxlength !== "" ? this.maxlength : void 0
6656
- )}
6775
+ maxlength=${h(this.maxlength ?? void 0)}
6657
6776
  .rows=${this.rows}
6658
6777
  form=${h(this.form || void 0)}
6659
6778
  @input=${this._handleInput}
@@ -6671,61 +6790,64 @@ ${this.value}</textarea
6671
6790
  </label>
6672
6791
  `;
6673
6792
  }
6674
- }, U.VALID_WIDTHS = ["sm", "md", "lg", "full"], U.VALID_RESIZE = ["vertical", "none"], U.styles = vt, U.formAssociated = !0, U);
6793
+ }, P.VALID_WIDTHS = ["sm", "md", "lg", "full"], P.VALID_RESIZE = ["vertical", "none"], P.styles = $t, P.formAssociated = !0, P);
6675
6794
  w([
6676
- n({ type: String })
6795
+ r({ type: String })
6677
6796
  ], m.prototype, "id", 2);
6678
6797
  w([
6679
- n({ type: String, reflect: !0 })
6798
+ r({ type: String, reflect: !0 })
6680
6799
  ], m.prototype, "name", 2);
6681
6800
  w([
6682
- n({ type: String })
6801
+ r({ type: String })
6683
6802
  ], m.prototype, "label", 2);
6684
6803
  w([
6685
- n({ type: String })
6804
+ r({ type: String })
6686
6805
  ], m.prototype, "description", 2);
6687
6806
  w([
6688
- n({ type: String })
6807
+ r({ type: String })
6689
6808
  ], m.prototype, "placeholder", 2);
6690
6809
  w([
6691
- n({ type: String })
6810
+ r({ type: String })
6692
6811
  ], m.prototype, "value", 2);
6693
6812
  w([
6694
- n({ type: Boolean, reflect: !0 })
6813
+ r({ type: Boolean, reflect: !0 })
6695
6814
  ], m.prototype, "disabled", 2);
6696
6815
  w([
6697
- n({ type: Boolean, reflect: !0 })
6816
+ r({ type: Boolean, reflect: !0 })
6698
6817
  ], m.prototype, "readonly", 2);
6699
6818
  w([
6700
- n({ type: Boolean, reflect: !0 })
6819
+ r({ type: Boolean, reflect: !0 })
6701
6820
  ], m.prototype, "required", 2);
6702
6821
  w([
6703
- n({ type: Boolean, reflect: !0 })
6822
+ r({ type: Boolean, reflect: !0 })
6704
6823
  ], m.prototype, "optional", 2);
6705
6824
  w([
6706
- n({ type: String })
6825
+ r({ type: String })
6826
+ ], m.prototype, "_tooltip", 2);
6827
+ w([
6828
+ r({ type: String, reflect: !0 })
6707
6829
  ], m.prototype, "form", 2);
6708
6830
  w([
6709
- n({ type: Number })
6831
+ r({ type: Number })
6710
6832
  ], m.prototype, "maxlength", 2);
6711
6833
  w([
6712
- n({ reflect: !0 })
6834
+ r({ reflect: !0 })
6713
6835
  ], m.prototype, "width", 2);
6714
6836
  w([
6715
- n({ type: Number })
6837
+ r({ type: Number })
6716
6838
  ], m.prototype, "rows", 2);
6717
6839
  w([
6718
- n({ reflect: !0 })
6840
+ r({ reflect: !0 })
6719
6841
  ], m.prototype, "resize", 1);
6720
6842
  w([
6721
- n({ type: Boolean, reflect: !0 })
6843
+ r({ type: Boolean, reflect: !0 })
6722
6844
  ], m.prototype, "showError", 2);
6723
6845
  w([
6724
- n({ type: String })
6846
+ r({ type: String })
6725
6847
  ], m.prototype, "errorMessage", 2);
6726
- let Ct = m;
6727
- customElements.get("nys-textarea") || customElements.define("nys-textarea", Ct);
6728
- const _t = u`
6848
+ let Mt = m;
6849
+ customElements.get("nys-textarea") || customElements.define("nys-textarea", Mt);
6850
+ const Vt = u`
6729
6851
  :host {
6730
6852
  /* Anything that can be overridden should be defined here */
6731
6853
 
@@ -6841,9 +6963,6 @@ const _t = u`
6841
6963
  display: inline;
6842
6964
  overflow: hidden;
6843
6965
  white-space: nowrap;
6844
- width: stretch;
6845
- width: -webkit-fill-available;
6846
- width: -moz-available;
6847
6966
  font: inherit;
6848
6967
  letter-spacing: normal;
6849
6968
  }
@@ -6967,17 +7086,17 @@ const _t = u`
6967
7086
  cursor: not-allowed;
6968
7087
  }
6969
7088
  `;
6970
- var mt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, b = (a, e, t, o) => {
6971
- for (var s = o > 1 ? void 0 : o ? xt(e, t) : e, r = a.length - 1, i; r >= 0; r--)
6972
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
6973
- return o && s && mt(e, t, s), s;
7089
+ var Ht = Object.defineProperty, At = Object.getOwnPropertyDescriptor, f = (a, e, t, o) => {
7090
+ for (var s = o > 1 ? void 0 : o ? At(e, t) : e, n = a.length - 1, i; n >= 0; n--)
7091
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
7092
+ return o && s && Ht(e, t, s), s;
6974
7093
  };
6975
- let wt = 0;
6976
- var O;
6977
- const v = (O = class extends y {
7094
+ let It = 0;
7095
+ var T;
7096
+ const p = (T = class extends y {
6978
7097
  // allows use of elementInternals' API
6979
7098
  constructor() {
6980
- 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._maskPatterns = {
7099
+ 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._tooltip = "", this.form = null, 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._maskPatterns = {
6981
7100
  tel: "(___) ___-____"
6982
7101
  }, this._internals = this.attachInternals();
6983
7102
  }
@@ -6985,20 +7104,30 @@ const v = (O = class extends y {
6985
7104
  return this._type;
6986
7105
  }
6987
7106
  set type(e) {
6988
- this._type = O.VALID_TYPES.includes(
7107
+ this._type = T.VALID_TYPES.includes(
6989
7108
  e
6990
7109
  ) ? e : "text";
6991
7110
  }
7111
+ // Generate a unique ID if one is not provided
7112
+ connectedCallback() {
7113
+ super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${It++}`), this._originalErrorMessage = this.errorMessage ?? "", this.addEventListener("invalid", this._handleInvalid);
7114
+ }
7115
+ disconnectedCallback() {
7116
+ super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
7117
+ }
7118
+ firstUpdated() {
7119
+ this._setValue();
7120
+ }
6992
7121
  // Ensure the "width" property is valid after updates
6993
7122
  async updated(e) {
6994
7123
  var t, o;
6995
- if (e.has("width") && (await Promise.resolve(), this.width = O.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("disabled") && (this._validateButtonSlot("startButton"), this._validateButtonSlot("endButton")), e.has("type")) {
6996
- const s = this._maskPatterns[this.type], r = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input");
6997
- if (r)
7124
+ if (e.has("width") && (await Promise.resolve(), this.width = T.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("disabled") && (this._validateButtonSlot("startButton"), this._validateButtonSlot("endButton")), e.has("type")) {
7125
+ const s = this._maskPatterns[this.type], n = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input");
7126
+ if (n)
6998
7127
  if (s)
6999
- r.maxLength = s.length, this._updateOverlay(r.value, s);
7128
+ n.maxLength = s.length, this._updateOverlay(n.value, s);
7000
7129
  else {
7001
- r.removeAttribute("maxLength");
7130
+ n.removeAttribute("maxLength");
7002
7131
  const i = (o = this.shadowRoot) == null ? void 0 : o.querySelector(
7003
7132
  ".nys-textinput__mask-overlay"
7004
7133
  );
@@ -7006,16 +7135,6 @@ const v = (O = class extends y {
7006
7135
  }
7007
7136
  }
7008
7137
  }
7009
- // Generate a unique ID if one is not provided
7010
- connectedCallback() {
7011
- super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${wt++}`), this._originalErrorMessage = this.errorMessage ?? "", this.addEventListener("invalid", this._handleInvalid);
7012
- }
7013
- disconnectedCallback() {
7014
- super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
7015
- }
7016
- firstUpdated() {
7017
- this._setValue();
7018
- }
7019
7138
  // This callback is automatically called when the parent form is reset.
7020
7139
  formResetCallback() {
7021
7140
  this.value = "";
@@ -7025,17 +7144,17 @@ const v = (O = class extends y {
7025
7144
  this._internals.setFormValue(this.value), this._manageRequire();
7026
7145
  }
7027
7146
  _manageRequire() {
7028
- var s, r;
7147
+ var s, n;
7029
7148
  const e = (s = this.shadowRoot) == null ? void 0 : s.querySelector("input");
7030
7149
  if (!e) return;
7031
7150
  const t = this.errorMessage || "This field is required";
7032
- this.required && (!this.value || ((r = this.value) == null ? void 0 : r.trim()) === "") ? (this._internals.ariaRequired = "true", this._internals.setValidity({ valueMissing: !0 }, t, e)) : (this._internals.ariaRequired = "false", this._internals.setValidity({}), this._hasUserInteracted = !1);
7151
+ this.required && (!this.value || ((n = this.value) == null ? void 0 : n.trim()) === "") ? (this._internals.ariaRequired = "true", this._internals.setValidity({ valueMissing: !0 }, t, e)) : (this._internals.ariaRequired = "false", this._internals.setValidity({}), this._hasUserInteracted = !1);
7033
7152
  }
7034
7153
  _setValidityMessage(e = "") {
7035
- var s, r;
7154
+ var s, n;
7036
7155
  const t = (s = this.shadowRoot) == null ? void 0 : s.querySelector("input");
7037
7156
  if (!t) return;
7038
- this.showError = !!e, (r = this._originalErrorMessage) != null && r.trim() && e !== "" ? this.errorMessage = this._originalErrorMessage : this.errorMessage = e;
7157
+ this.showError = !!e, (n = this._originalErrorMessage) != null && n.trim() && e !== "" ? this.errorMessage = this._originalErrorMessage : this.errorMessage = e;
7039
7158
  const o = e ? { customError: !0 } : {};
7040
7159
  this._internals.setValidity(o, this.errorMessage, t);
7041
7160
  }
@@ -7074,19 +7193,19 @@ const v = (O = class extends y {
7074
7193
  ".nys-textinput__mask-overlay"
7075
7194
  );
7076
7195
  if (!o) return;
7077
- const s = e, r = t.slice(s.length);
7078
- o.textContent = s + r;
7196
+ const s = e, n = t.slice(s.length);
7197
+ o.textContent = s + n;
7079
7198
  }
7080
7199
  _applyMask(e, t) {
7081
7200
  const o = e.replace(/\D/g, "");
7082
7201
  let s = "";
7083
7202
  if (this.type === "tel")
7084
7203
  return o.length > 0 && (s = "(" + o.substring(0, 3)), o.length >= 4 && (s += ") " + o.substring(3, 6)), o.length > 6 && (s += "-" + o.substring(6, 10)), s;
7085
- let r = 0;
7204
+ let n = 0;
7086
7205
  for (let i = 0; i < t.length; i++)
7087
7206
  if (t[i] === "_" || t[i].match(/[d9]/i))
7088
- if (r < o.length)
7089
- s += o[r++];
7207
+ if (n < o.length)
7208
+ s += o[n++];
7090
7209
  else
7091
7210
  break;
7092
7211
  else
@@ -7124,13 +7243,13 @@ const v = (O = class extends y {
7124
7243
  );
7125
7244
  if (!t || !o) return;
7126
7245
  const s = t.assignedElements();
7127
- let r = !1;
7246
+ let n = !1;
7128
7247
  s.forEach((d) => {
7129
- d instanceof HTMLElement && d.tagName.toLowerCase() === "nys-button" && !r ? (r = !0, d.setAttribute("size", "sm"), d.setAttribute("variant", "primary"), this.disabled ? d.setAttribute("disabled", "true") : d.removeAttribute("disabled")) : (console.warn(
7248
+ d instanceof HTMLElement && d.tagName.toLowerCase() === "nys-button" && !n ? (n = !0, d.setAttribute("size", "sm"), d.setAttribute("variant", "primary"), this.disabled ? d.setAttribute("disabled", "true") : d.removeAttribute("disabled")) : (console.warn(
7130
7249
  "The '" + e + "' slot only accepts a single <nys-button> element. Removing invalid or extra node:",
7131
7250
  d
7132
7251
  ), d.remove());
7133
- }), e === "startButton" ? o.classList.toggle("has-start-button", r) : e === "endButton" && o.classList.toggle("has-end-button", r);
7252
+ }), e === "startButton" ? o.classList.toggle("has-start-button", n) : e === "endButton" && o.classList.toggle("has-end-button", n);
7134
7253
  }
7135
7254
  render() {
7136
7255
  return l`
@@ -7140,13 +7259,14 @@ const v = (O = class extends y {
7140
7259
  label=${this.label}
7141
7260
  description=${this.description}
7142
7261
  flag=${this.required ? "required" : this.optional ? "optional" : ""}
7262
+ _tooltip=${this._tooltip}
7143
7263
  >
7144
7264
  <slot name="description" slot="description">${this.description}</slot>
7145
7265
  </nys-label>
7146
7266
  <div class="nys-textinput__buttoncontainer">
7147
7267
  <slot
7148
7268
  name="startButton"
7149
- @slotchange=${this._validateButtonSlot("startButton")}
7269
+ @slotchange=${() => this._validateButtonSlot("startButton")}
7150
7270
  ></slot>
7151
7271
  <div class="nys-textinput__container">
7152
7272
  <span class="nys-textinput__mask-overlay"></span>
@@ -7166,13 +7286,13 @@ const v = (O = class extends y {
7166
7286
  this.placeholder ? this.placeholder : void 0
7167
7287
  )}
7168
7288
  pattern=${h(this.pattern ? this.pattern : void 0)}
7169
- min=${h(this.min !== "" ? this.min : void 0)}
7289
+ min=${h(this.min !== null ? this.min : void 0)}
7170
7290
  maxlength=${h(
7171
- this.maxlength !== "" ? this.maxlength : void 0
7291
+ this.maxlength !== null ? this.maxlength : void 0
7172
7292
  )}
7173
- step=${h(this.step !== "" ? this.step : void 0)}
7174
- max=${h(this.max !== "" ? this.max : void 0)}
7175
- form=${h(this.form ? this.form : void 0)}
7293
+ step=${h(this.step !== null ? this.step : void 0)}
7294
+ max=${h(this.max !== null ? this.max : void 0)}
7295
+ form=${h(this.form || void 0)}
7176
7296
  @input=${this._handleInput}
7177
7297
  @focus="${this._handleFocus}"
7178
7298
  @blur="${this._handleBlur}"
@@ -7195,7 +7315,7 @@ const v = (O = class extends y {
7195
7315
  </div>
7196
7316
  <slot
7197
7317
  name="endButton"
7198
- @slotchange=${this._validateButtonSlot("endButton")}
7318
+ @slotchange=${() => this._validateButtonSlot("endButton")}
7199
7319
  ></slot>
7200
7320
  </div>
7201
7321
  <nys-errormessage
@@ -7205,7 +7325,7 @@ const v = (O = class extends y {
7205
7325
  </div>
7206
7326
  `;
7207
7327
  }
7208
- }, O.VALID_TYPES = [
7328
+ }, T.VALID_TYPES = [
7209
7329
  "email",
7210
7330
  "number",
7211
7331
  "password",
@@ -7213,73 +7333,76 @@ const v = (O = class extends y {
7213
7333
  "tel",
7214
7334
  "text",
7215
7335
  "url"
7216
- ], O.VALID_WIDTHS = ["sm", "md", "lg", "full"], O.styles = _t, O.formAssociated = !0, O);
7217
- b([
7218
- n({ type: String })
7219
- ], v.prototype, "id", 2);
7220
- b([
7221
- n({ type: String, reflect: !0 })
7222
- ], v.prototype, "name", 2);
7223
- b([
7224
- n({ reflect: !0 })
7225
- ], v.prototype, "type", 1);
7226
- b([
7227
- n({ type: String })
7228
- ], v.prototype, "label", 2);
7229
- b([
7230
- n({ type: String })
7231
- ], v.prototype, "description", 2);
7232
- b([
7233
- n({ type: String })
7234
- ], v.prototype, "placeholder", 2);
7235
- b([
7236
- n({ type: String })
7237
- ], v.prototype, "value", 2);
7238
- b([
7239
- n({ type: Boolean, reflect: !0 })
7240
- ], v.prototype, "disabled", 2);
7241
- b([
7242
- n({ type: Boolean, reflect: !0 })
7243
- ], v.prototype, "readonly", 2);
7244
- b([
7245
- n({ type: Boolean, reflect: !0 })
7246
- ], v.prototype, "required", 2);
7247
- b([
7248
- n({ type: Boolean, reflect: !0 })
7249
- ], v.prototype, "optional", 2);
7250
- b([
7251
- n({ type: String })
7252
- ], v.prototype, "form", 2);
7253
- b([
7254
- n({ type: String })
7255
- ], v.prototype, "pattern", 2);
7256
- b([
7257
- n({ type: Number })
7258
- ], v.prototype, "maxlength", 2);
7259
- b([
7260
- n({ reflect: !0 })
7261
- ], v.prototype, "width", 2);
7262
- b([
7263
- n({ type: Number })
7264
- ], v.prototype, "step", 2);
7265
- b([
7266
- n({ type: Number })
7267
- ], v.prototype, "min", 2);
7268
- b([
7269
- n({ type: Number })
7270
- ], v.prototype, "max", 2);
7271
- b([
7272
- n({ type: Boolean, reflect: !0 })
7273
- ], v.prototype, "showError", 2);
7274
- b([
7275
- n({ type: String })
7276
- ], v.prototype, "errorMessage", 2);
7277
- b([
7278
- E()
7279
- ], v.prototype, "showPassword", 2);
7280
- let kt = v;
7281
- customElements.get("nys-textinput") || customElements.define("nys-textinput", kt);
7282
- const Lt = u`
7336
+ ], T.VALID_WIDTHS = ["sm", "md", "lg", "full"], T.styles = Vt, T.formAssociated = !0, T);
7337
+ f([
7338
+ r({ type: String })
7339
+ ], p.prototype, "id", 2);
7340
+ f([
7341
+ r({ type: String, reflect: !0 })
7342
+ ], p.prototype, "name", 2);
7343
+ f([
7344
+ r({ reflect: !0 })
7345
+ ], p.prototype, "type", 1);
7346
+ f([
7347
+ r({ type: String })
7348
+ ], p.prototype, "label", 2);
7349
+ f([
7350
+ r({ type: String })
7351
+ ], p.prototype, "description", 2);
7352
+ f([
7353
+ r({ type: String })
7354
+ ], p.prototype, "placeholder", 2);
7355
+ f([
7356
+ r({ type: String })
7357
+ ], p.prototype, "value", 2);
7358
+ f([
7359
+ r({ type: Boolean, reflect: !0 })
7360
+ ], p.prototype, "disabled", 2);
7361
+ f([
7362
+ r({ type: Boolean, reflect: !0 })
7363
+ ], p.prototype, "readonly", 2);
7364
+ f([
7365
+ r({ type: Boolean, reflect: !0 })
7366
+ ], p.prototype, "required", 2);
7367
+ f([
7368
+ r({ type: Boolean, reflect: !0 })
7369
+ ], p.prototype, "optional", 2);
7370
+ f([
7371
+ r({ type: String })
7372
+ ], p.prototype, "_tooltip", 2);
7373
+ f([
7374
+ r({ type: String, reflect: !0 })
7375
+ ], p.prototype, "form", 2);
7376
+ f([
7377
+ r({ type: String })
7378
+ ], p.prototype, "pattern", 2);
7379
+ f([
7380
+ r({ type: Number })
7381
+ ], p.prototype, "maxlength", 2);
7382
+ f([
7383
+ r({ reflect: !0 })
7384
+ ], p.prototype, "width", 2);
7385
+ f([
7386
+ r({ type: Number })
7387
+ ], p.prototype, "step", 2);
7388
+ f([
7389
+ r({ type: Number })
7390
+ ], p.prototype, "min", 2);
7391
+ f([
7392
+ r({ type: Number })
7393
+ ], p.prototype, "max", 2);
7394
+ f([
7395
+ r({ type: Boolean, reflect: !0 })
7396
+ ], p.prototype, "showError", 2);
7397
+ f([
7398
+ r({ type: String })
7399
+ ], p.prototype, "errorMessage", 2);
7400
+ f([
7401
+ I()
7402
+ ], p.prototype, "showPassword", 2);
7403
+ let Bt = p;
7404
+ customElements.get("nys-textinput") || customElements.define("nys-textinput", Bt);
7405
+ const Zt = u`
7283
7406
  :host {
7284
7407
  /* Global Toggle Styles */
7285
7408
  --_nys-toggle-width: var(--nys-font-size-8xl, 44px);
@@ -7545,29 +7668,29 @@ const Lt = u`
7545
7668
  }
7546
7669
  }
7547
7670
  `;
7548
- var St = Object.defineProperty, $t = Object.getOwnPropertyDescriptor, K = (a, e, t, o) => {
7549
- for (var s = o > 1 ? void 0 : o ? $t(e, t) : e, r = a.length - 1, i; r >= 0; r--)
7550
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
7551
- return o && s && St(e, t, s), s;
7671
+ var qt = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, Y = (a, e, t, o) => {
7672
+ for (var s = o > 1 ? void 0 : o ? Ot(e, t) : e, n = a.length - 1, i; n >= 0; n--)
7673
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
7674
+ return o && s && qt(e, t, s), s;
7552
7675
  };
7553
- let Dt = 0;
7554
- var e1;
7555
- const R = (e1 = class extends y {
7676
+ let Ut = 0;
7677
+ var J;
7678
+ const F = (J = class extends y {
7556
7679
  // allows use of elementInternals' API
7557
7680
  constructor() {
7558
- 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();
7681
+ super(), this.id = "", this.name = "", this.value = "", this.label = "", this.description = "", this.form = null, this.checked = !1, this.disabled = !1, this.noIcon = !1, this._size = "md", this._internals = this.attachInternals();
7559
7682
  }
7560
7683
  get size() {
7561
7684
  return this._size;
7562
7685
  }
7563
7686
  set size(e) {
7564
- this._size = e1.VALID_SIZES.includes(
7687
+ this._size = J.VALID_SIZES.includes(
7565
7688
  e
7566
7689
  ) ? e : "md";
7567
7690
  }
7568
7691
  // Generate a unique ID if one is not provided
7569
7692
  connectedCallback() {
7570
- super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${Dt++}`);
7693
+ super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${Ut++}`);
7571
7694
  }
7572
7695
  /********************** Form Integration **********************/
7573
7696
  // Update the internals whenever `checked` or `value` changes.
@@ -7609,7 +7732,7 @@ const R = (e1 = class extends y {
7609
7732
  type="checkbox"
7610
7733
  name="${h(this.name ? this.name : void 0)}"
7611
7734
  .value=${this.value}
7612
- form=${this.form}
7735
+ form=${h(this.form || void 0)}
7613
7736
  .checked=${this.checked}
7614
7737
  ?disabled=${this.disabled}
7615
7738
  role="switch"
@@ -7638,40 +7761,40 @@ const R = (e1 = class extends y {
7638
7761
  </label>
7639
7762
  `;
7640
7763
  }
7641
- }, e1.VALID_SIZES = ["sm", "md"], e1.styles = Lt, e1.formAssociated = !0, e1);
7642
- K([
7643
- n({ type: String })
7644
- ], R.prototype, "id", 2);
7645
- K([
7646
- n({ type: String, reflect: !0 })
7647
- ], R.prototype, "name", 2);
7648
- K([
7649
- n({ type: String })
7650
- ], R.prototype, "value", 2);
7651
- K([
7652
- n({ type: Boolean, reflect: !0 })
7653
- ], R.prototype, "checked", 2);
7654
- K([
7655
- n({ type: Boolean, reflect: !0 })
7656
- ], R.prototype, "disabled", 2);
7657
- K([
7658
- n({ type: Boolean })
7659
- ], R.prototype, "noIcon", 2);
7660
- K([
7661
- n({ type: String })
7662
- ], R.prototype, "label", 2);
7663
- K([
7664
- n({ type: String })
7665
- ], R.prototype, "description", 2);
7666
- K([
7667
- n({ reflect: !0 })
7668
- ], R.prototype, "size", 1);
7669
- K([
7670
- n({ type: String })
7671
- ], R.prototype, "form", 2);
7672
- let Et = R;
7673
- customElements.get("nys-toggle") || customElements.define("nys-toggle", Et);
7674
- const zt = u`
7764
+ }, J.VALID_SIZES = ["sm", "md"], J.styles = Zt, J.formAssociated = !0, J);
7765
+ Y([
7766
+ r({ type: String })
7767
+ ], F.prototype, "id", 2);
7768
+ Y([
7769
+ r({ type: String, reflect: !0 })
7770
+ ], F.prototype, "name", 2);
7771
+ Y([
7772
+ r({ type: String })
7773
+ ], F.prototype, "value", 2);
7774
+ Y([
7775
+ r({ type: String })
7776
+ ], F.prototype, "label", 2);
7777
+ Y([
7778
+ r({ type: String })
7779
+ ], F.prototype, "description", 2);
7780
+ Y([
7781
+ r({ type: String, reflect: !0 })
7782
+ ], F.prototype, "form", 2);
7783
+ Y([
7784
+ r({ type: Boolean, reflect: !0 })
7785
+ ], F.prototype, "checked", 2);
7786
+ Y([
7787
+ r({ type: Boolean, reflect: !0 })
7788
+ ], F.prototype, "disabled", 2);
7789
+ Y([
7790
+ r({ type: Boolean })
7791
+ ], F.prototype, "noIcon", 2);
7792
+ Y([
7793
+ r({ reflect: !0 })
7794
+ ], F.prototype, "size", 1);
7795
+ let Pt = F;
7796
+ customElements.get("nys-toggle") || customElements.define("nys-toggle", Pt);
7797
+ const Tt = u`
7675
7798
  :host {
7676
7799
  /* Global Tooltip Styles */
7677
7800
  --_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
@@ -7828,13 +7951,13 @@ const zt = u`
7828
7951
  }
7829
7952
  }
7830
7953
  `;
7831
- var Mt = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, _1 = (a, e, t, o) => {
7832
- for (var s = o > 1 ? void 0 : o ? Vt(e, t) : e, r = a.length - 1, i; r >= 0; r--)
7833
- (i = a[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
7834
- return o && s && Mt(e, t, s), s;
7954
+ var Rt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, _1 = (a, e, t, o) => {
7955
+ for (var s = o > 1 ? void 0 : o ? Ft(e, t) : e, n = a.length - 1, i; n >= 0; n--)
7956
+ (i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
7957
+ return o && s && Rt(e, t, s), s;
7835
7958
  };
7836
- let Ht = 0;
7837
- const Y1 = class Y1 extends y {
7959
+ let Nt = 0;
7960
+ const Q1 = class Q1 extends y {
7838
7961
  /**************** Lifecycle Methods ****************/
7839
7962
  constructor() {
7840
7963
  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 = () => {
@@ -7883,7 +8006,7 @@ const Y1 = class Y1 extends y {
7883
8006
  this._position = e, this.requestUpdate("position", t), this._internallyUpdatingPosition || (this._userHasSetPosition = e !== null, this._originalUserPosition = e);
7884
8007
  }
7885
8008
  connectedCallback() {
7886
- super.connectedCallback(), this.id || (this.id = `nys-tooltip-${Date.now()}-${Ht++}`), window.addEventListener("keydown", this._handleEscapeKey);
8009
+ super.connectedCallback(), this.id || (this.id = `nys-tooltip-${Date.now()}-${Nt++}`), window.addEventListener("keydown", this._handleEscapeKey);
7887
8010
  }
7888
8011
  disconnectedCallback() {
7889
8012
  super.disconnectedCallback(), window.removeEventListener("keydown", this._handleEscapeKey);
@@ -7904,7 +8027,7 @@ const Y1 = class Y1 extends y {
7904
8027
  updated(e) {
7905
8028
  super.updated(e);
7906
8029
  const t = this._firstAssignedEl;
7907
- t && e.has("text") && this._passAria(t);
8030
+ t && (e.has("text") && this._passAria(t), e.has("focusable") && this._applyFocusBehavior(t));
7908
8031
  }
7909
8032
  // Listen to window scroll so a focus tooltip can auto position even when user move across the page
7910
8033
  _addScrollListeners() {
@@ -7937,32 +8060,32 @@ const Y1 = class Y1 extends y {
7937
8060
  }
7938
8061
  // Checks if user's set position fit with current viewport (Does not account for overflow texts at this moment)
7939
8062
  _doesPositionFit(e) {
7940
- var f, x;
7941
- const t = (f = this.shadowRoot) == null ? void 0 : f.querySelector(".nys-tooltip__wrapper"), o = (x = this.shadowRoot) == null ? void 0 : x.querySelector(".nys-tooltip__content");
8063
+ var g, k;
8064
+ const t = (g = this.shadowRoot) == null ? void 0 : g.querySelector(".nys-tooltip__wrapper"), o = (k = this.shadowRoot) == null ? void 0 : k.querySelector(".nys-tooltip__content");
7942
8065
  if (!t || !o || e == null) return;
7943
- const s = t.getBoundingClientRect(), r = o.getBoundingClientRect(), i = 8, c = {
8066
+ const s = t.getBoundingClientRect(), n = o.getBoundingClientRect(), i = 8, c = {
7944
8067
  top: s.top - i,
7945
8068
  left: s.left - i,
7946
8069
  bottom: window.innerHeight - s.bottom - i,
7947
8070
  right: window.innerWidth - s.right - i
7948
8071
  };
7949
8072
  return {
7950
- top: c.top >= r.height,
7951
- bottom: c.bottom >= r.height,
7952
- left: c.left >= r.width,
7953
- right: c.right >= r.width
8073
+ top: c.top >= n.height,
8074
+ bottom: c.bottom >= n.height,
8075
+ left: c.left >= n.width,
8076
+ right: c.right >= n.width
7954
8077
  }[e];
7955
8078
  }
7956
8079
  // Calculates the best placement based on available space (flips placement if it doesn't fit)
7957
8080
  async autoPositionTooltip() {
7958
- var f, x;
7959
- const e = (f = this.shadowRoot) == null ? void 0 : f.querySelector(
8081
+ var g, k;
8082
+ const e = (g = this.shadowRoot) == null ? void 0 : g.querySelector(
7960
8083
  ".nys-tooltip__wrapper"
7961
- ), t = (x = this.shadowRoot) == null ? void 0 : x.querySelector(
8084
+ ), t = (k = this.shadowRoot) == null ? void 0 : k.querySelector(
7962
8085
  ".nys-tooltip__content"
7963
8086
  );
7964
8087
  if (!e || !t) return;
7965
- const o = e.getBoundingClientRect(), s = 8, r = {
8088
+ const o = e.getBoundingClientRect(), s = 8, n = {
7966
8089
  top: o.top - s,
7967
8090
  left: o.left - s,
7968
8091
  bottom: window.innerHeight - o.bottom - s,
@@ -7983,9 +8106,9 @@ const Y1 = class Y1 extends y {
7983
8106
  this._setInternalPosition(C), await this.updateComplete, this._shiftTooltipIntoViewport(t);
7984
8107
  return;
7985
8108
  }
7986
- let c = "top", d = r.top;
8109
+ let c = "top", d = n.top;
7987
8110
  for (const C of i)
7988
- r[C] > d && (d = r[C], c = C);
8111
+ n[C] > d && (d = n[C], c = C);
7989
8112
  this._setInternalPosition(c), await this.updateComplete, this._shiftTooltipIntoViewport(t);
7990
8113
  }
7991
8114
  // Sets flag to distinguish to position's setter that we are updating "position" prop internally
@@ -7997,10 +8120,10 @@ const Y1 = class Y1 extends y {
7997
8120
  var C;
7998
8121
  const o = ((C = this.shadowRoot) == null ? void 0 : C.querySelector(
7999
8122
  ".nys-tooltip__wrapper"
8000
- )).getBoundingClientRect(), s = e.getBoundingClientRect(), r = o.left + o.width / 2, i = s.left < 0, c = s.right > window.innerWidth;
8123
+ )).getBoundingClientRect(), s = e.getBoundingClientRect(), n = o.left + o.width / 2, i = s.left < 0, c = s.right > window.innerWidth;
8001
8124
  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");
8002
- const d = e.getBoundingClientRect(), f = (r - d.left) / d.width, x = Math.max(0, Math.min(1, f)) * 100;
8003
- e.style.setProperty("--arrow-offset-x", `${x}%`);
8125
+ const d = e.getBoundingClientRect(), g = (n - d.left) / d.width, k = Math.max(0, Math.min(1, g)) * 100;
8126
+ e.style.setProperty("--arrow-offset-x", `${k}%`);
8004
8127
  }
8005
8128
  // Reposition tooltip back to original set position (e.g. top, left, bottom, right) to avoid positioning issue base on last position
8006
8129
  _resetTooltipPositioningStyles(e) {
@@ -8035,28 +8158,28 @@ const Y1 = class Y1 extends y {
8035
8158
  `;
8036
8159
  }
8037
8160
  };
8038
- Y1.styles = zt;
8039
- let t1 = Y1;
8161
+ Q1.styles = Tt;
8162
+ let t1 = Q1;
8040
8163
  _1([
8041
- n({ type: String })
8164
+ r({ type: String })
8042
8165
  ], t1.prototype, "id", 2);
8043
8166
  _1([
8044
- n({ type: String })
8167
+ r({ type: String })
8045
8168
  ], t1.prototype, "text", 2);
8046
8169
  _1([
8047
- n({ type: Boolean, reflect: !0 })
8170
+ r({ type: Boolean, reflect: !0 })
8048
8171
  ], t1.prototype, "inverted", 2);
8049
8172
  _1([
8050
- n({ type: Boolean, reflect: !0 })
8173
+ r({ type: Boolean, reflect: !0 })
8051
8174
  ], t1.prototype, "focusable", 2);
8052
8175
  _1([
8053
- E()
8176
+ I()
8054
8177
  ], t1.prototype, "_active", 2);
8055
8178
  _1([
8056
- n({ type: String, reflect: !0 })
8179
+ r({ type: String, reflect: !0 })
8057
8180
  ], t1.prototype, "position", 1);
8058
8181
  customElements.get("nys-tooltip") || customElements.define("nys-tooltip", t1);
8059
- const At = u`
8182
+ const jt = u`
8060
8183
  :host {
8061
8184
  /* Global Unav Header Styles */
8062
8185
  --_nys-unavheader-padding--gutter: var(--nys-gutter-xs, 20px);
@@ -8429,7 +8552,7 @@ const At = u`
8429
8552
  display: none;
8430
8553
  }
8431
8554
  }
8432
- `, It = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
8555
+ `, Gt = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
8433
8556
  <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"/>
8434
8557
  <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"/>
8435
8558
  <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"/>
@@ -8446,12 +8569,12 @@ const At = u`
8446
8569
  <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"/>
8447
8570
  <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"/>
8448
8571
  </svg>`;
8449
- var Zt = Object.defineProperty, v1 = (a, e, t, o) => {
8450
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
8451
- (i = a[r]) && (s = i(e, t, s) || s);
8452
- return s && Zt(e, t, s), s;
8572
+ var Yt = Object.defineProperty, p1 = (a, e, t, o) => {
8573
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
8574
+ (i = a[n]) && (s = i(e, t, s) || s);
8575
+ return s && Yt(e, t, s), s;
8453
8576
  };
8454
- const K1 = class K1 extends y {
8577
+ const J1 = class J1 extends y {
8455
8578
  constructor() {
8456
8579
  super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
8457
8580
  ["English", ""],
@@ -8471,7 +8594,7 @@ const K1 = class K1 extends y {
8471
8594
  ];
8472
8595
  }
8473
8596
  _getNysLogo() {
8474
- return new DOMParser().parseFromString(It, "image/svg+xml").documentElement;
8597
+ return new DOMParser().parseFromString(Gt, "image/svg+xml").documentElement;
8475
8598
  }
8476
8599
  _toggleTrustbar() {
8477
8600
  this.trustbarVisible = !this.trustbarVisible, this.trustbarVisible && (this.languageVisible = !1, this.searchDropdownVisible = !1);
@@ -8496,10 +8619,10 @@ const K1 = class K1 extends y {
8496
8619
  }
8497
8620
  }
8498
8621
  _handleSearchButton(e) {
8499
- var s, r;
8500
- const o = (r = ((s = this.shadowRoot) == null ? void 0 : s.getElementById(
8622
+ var s, n;
8623
+ const o = (n = ((s = this.shadowRoot) == null ? void 0 : s.getElementById(
8501
8624
  e
8502
- )).value) == null ? void 0 : r.trim();
8625
+ )).value) == null ? void 0 : n.trim();
8503
8626
  o !== "" && this._handleSearch(o);
8504
8627
  }
8505
8628
  _handleSearch(e) {
@@ -8732,31 +8855,31 @@ const K1 = class K1 extends y {
8732
8855
  `;
8733
8856
  }
8734
8857
  };
8735
- K1.styles = At;
8736
- let j = K1;
8737
- v1([
8738
- n({ type: Boolean })
8858
+ J1.styles = jt;
8859
+ let j = J1;
8860
+ p1([
8861
+ r({ type: Boolean })
8739
8862
  ], j.prototype, "trustbarVisible");
8740
- v1([
8741
- n({ type: Boolean })
8863
+ p1([
8864
+ r({ type: Boolean })
8742
8865
  ], j.prototype, "searchDropdownVisible");
8743
- v1([
8744
- n({ type: Boolean })
8866
+ p1([
8867
+ r({ type: Boolean })
8745
8868
  ], j.prototype, "languageVisible");
8746
- v1([
8747
- n({ type: Boolean })
8869
+ p1([
8870
+ r({ type: Boolean })
8748
8871
  ], j.prototype, "isSearchFocused");
8749
- v1([
8750
- n({ type: Boolean })
8872
+ p1([
8873
+ r({ type: Boolean })
8751
8874
  ], j.prototype, "hideTranslate");
8752
- v1([
8753
- n({ type: Boolean })
8875
+ p1([
8876
+ r({ type: Boolean })
8754
8877
  ], j.prototype, "hideSearch");
8755
- v1([
8756
- n({ type: String, reflect: !0 })
8878
+ p1([
8879
+ r({ type: Array, reflect: !0 })
8757
8880
  ], j.prototype, "languages");
8758
8881
  customElements.get("nys-unavheader") || customElements.define("nys-unavheader", j);
8759
- const Bt = u`
8882
+ const Kt = u`
8760
8883
  :host {
8761
8884
  /* Global Header Styles */
8762
8885
  --_nys-globalheader-color: var(
@@ -9065,12 +9188,12 @@ const Bt = u`
9065
9188
  }
9066
9189
  }
9067
9190
  `;
9068
- var qt = Object.defineProperty, D1 = (a, e, t, o) => {
9069
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
9070
- (i = a[r]) && (s = i(e, t, s) || s);
9071
- return s && qt(e, t, s), s;
9191
+ var Wt = Object.defineProperty, $1 = (a, e, t, o) => {
9192
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
9193
+ (i = a[n]) && (s = i(e, t, s) || s);
9194
+ return s && Wt(e, t, s), s;
9072
9195
  };
9073
- const W1 = class W1 extends y {
9196
+ const ee = class ee extends y {
9074
9197
  constructor() {
9075
9198
  super(...arguments), this.appName = "", this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0, this.isMobileMenuOpen = !1;
9076
9199
  }
@@ -9078,13 +9201,13 @@ const W1 = class W1 extends y {
9078
9201
  firstUpdated() {
9079
9202
  var t;
9080
9203
  const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("slot");
9081
- e == null || e.addEventListener("slotchange", () => this._handleSlotChange()), this._handleSlotChange();
9204
+ e == null || e.addEventListener("slotchange", () => this._handleSlotChange()), this._handleSlotChange(), this._listenLinkClicks();
9082
9205
  }
9083
9206
  /******************** Functions ********************/
9084
9207
  // Gets called when the slot content changes and directly appends the slotted elements into the shadow DOM
9085
9208
  async _handleSlotChange() {
9086
- var r, i, c;
9087
- const e = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot");
9209
+ var n, i, c;
9210
+ const e = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot");
9088
9211
  if (!e) return;
9089
9212
  const t = e == null ? void 0 : e.assignedNodes({ flatten: !0 }).filter((d) => d.nodeType === Node.ELEMENT_NODE);
9090
9213
  await Promise.resolve(), this.slotHasContent = t.length > 0;
@@ -9095,25 +9218,31 @@ const W1 = class W1 extends y {
9095
9218
  );
9096
9219
  if (o && s) {
9097
9220
  o.innerHTML = "", s.innerHTML = "";
9098
- const d = this._normalizePath(window.location.pathname);
9099
- t.forEach((f) => {
9100
- if (f.nodeType === Node.ELEMENT_NODE) {
9101
- const x = f.cloneNode(!0), C = f.cloneNode(!0);
9102
- ["script", "iframe", "object", "embed, img"].forEach((F) => {
9103
- x.querySelectorAll(F).forEach((m1) => m1.remove());
9104
- }), x.querySelectorAll("a").forEach((F) => {
9105
- const m1 = F.getAttribute("href"), x1 = this._normalizePath(m1);
9106
- if (x1 && d != null && d.startsWith(x1)) {
9107
- const w1 = F.closest("li");
9108
- w1 && w1.classList.add("active");
9109
- }
9110
- }), C.querySelectorAll("a").forEach((F) => {
9111
- const m1 = F.getAttribute("href"), x1 = this._normalizePath(m1);
9112
- if (x1 && d != null && d.startsWith(x1)) {
9113
- const w1 = F.closest("li");
9114
- w1 && w1.classList.add("active");
9115
- }
9116
- }), o.appendChild(x), s.appendChild(C), f.remove();
9221
+ const d = this._normalizePath(
9222
+ window.location.pathname + window.location.hash
9223
+ );
9224
+ t.forEach((g) => {
9225
+ if (g.nodeType === Node.ELEMENT_NODE) {
9226
+ const k = g.cloneNode(!0), C = g.cloneNode(!0);
9227
+ ["script", "iframe", "object", "embed, img"].forEach((B1) => {
9228
+ k.querySelectorAll(B1).forEach((D1) => D1.remove());
9229
+ });
9230
+ const m1 = (B1) => {
9231
+ const D1 = Array.from(B1.querySelectorAll("a"));
9232
+ let E1 = {
9233
+ li: null,
9234
+ length: 0
9235
+ };
9236
+ D1.forEach((Z1) => {
9237
+ var oe;
9238
+ const de = Z1.getAttribute("href"), x1 = this._normalizePath(de);
9239
+ x1 && (x1 === "/" && d === "/" ? E1 = { li: Z1.closest("li"), length: 1 } : d != null && d.startsWith(x1) && x1.length > E1.length && (E1 = { li: Z1.closest("li"), length: x1.length }), D1.forEach((he) => {
9240
+ var re;
9241
+ return (re = he.closest("li")) == null ? void 0 : re.classList.remove("active");
9242
+ }), (oe = E1.li) == null || oe.classList.add("active"));
9243
+ });
9244
+ };
9245
+ m1(k), m1(C), o.appendChild(k), s.appendChild(C), g.remove();
9117
9246
  }
9118
9247
  });
9119
9248
  }
@@ -9127,8 +9256,27 @@ const W1 = class W1 extends y {
9127
9256
  _toggleMobileMenu() {
9128
9257
  this.isMobileMenuOpen = !this.isMobileMenuOpen;
9129
9258
  }
9259
+ /**
9260
+ * Handles client-side navigation when links are clicked (no full page refresh).
9261
+ */
9262
+ // Ensures only the clicked link's <li> is marked active in both desktop and mobile menus.
9263
+ _listenLinkClicks() {
9264
+ var t;
9265
+ const e = (t = this.shadowRoot) == null ? void 0 : t.querySelectorAll(
9266
+ ".nys-globalheader__content, .nys-globalheader__content-mobile"
9267
+ );
9268
+ e == null || e.forEach((o) => {
9269
+ o == null || o.addEventListener("click", (s) => {
9270
+ const i = s.target.closest("a");
9271
+ if (!i) return;
9272
+ o.querySelectorAll("li.active").forEach((d) => d.classList.remove("active"));
9273
+ const c = i.closest("li");
9274
+ c && c.classList.add("active");
9275
+ });
9276
+ });
9277
+ }
9130
9278
  render() {
9131
- var e, t, o, s, r, i, c, d;
9279
+ var e, t, o, s, n, i, c, d;
9132
9280
  return l`
9133
9281
  <header class="nys-globalheader">
9134
9282
  <div class="nys-globalheader__main-container">
@@ -9149,7 +9297,7 @@ const W1 = class W1 extends y {
9149
9297
  </div>` : ""}
9150
9298
  ${(e = this.homepageLink) != null && e.trim() ? l`<a
9151
9299
  class="nys-globalheader__name-container-link"
9152
- href=${(r = this.homepageLink) == null ? void 0 : r.trim()}
9300
+ href=${(n = this.homepageLink) == null ? void 0 : n.trim()}
9153
9301
  >
9154
9302
  <div class="nys-globalheader__name-container">
9155
9303
  ${((i = this.appName) == null ? void 0 : i.trim().length) > 0 ? l`<div
@@ -9191,25 +9339,25 @@ const W1 = class W1 extends y {
9191
9339
  `;
9192
9340
  }
9193
9341
  };
9194
- W1.styles = Bt;
9195
- let a1 = W1;
9196
- D1([
9197
- n({ type: String })
9342
+ ee.styles = Kt;
9343
+ let a1 = ee;
9344
+ $1([
9345
+ r({ type: String })
9198
9346
  ], a1.prototype, "appName");
9199
- D1([
9200
- n({ type: String })
9347
+ $1([
9348
+ r({ type: String })
9201
9349
  ], a1.prototype, "agencyName");
9202
- D1([
9203
- n({ type: String })
9350
+ $1([
9351
+ r({ type: String })
9204
9352
  ], a1.prototype, "homepageLink");
9205
- D1([
9206
- E()
9353
+ $1([
9354
+ I()
9207
9355
  ], a1.prototype, "slotHasContent");
9208
- D1([
9209
- E()
9356
+ $1([
9357
+ I()
9210
9358
  ], a1.prototype, "isMobileMenuOpen");
9211
9359
  customElements.get("nys-globalheader") || customElements.define("nys-globalheader", a1);
9212
- const Ut = u`
9360
+ const Xt = u`
9213
9361
  :host {
9214
9362
  /* Global Footer Styles */
9215
9363
  --_nys-globalfooter-color: var(
@@ -9360,12 +9508,12 @@ const Ut = u`
9360
9508
  }
9361
9509
  }
9362
9510
  `;
9363
- var Ot = Object.defineProperty, q1 = (a, e, t, o) => {
9364
- for (var s = void 0, r = a.length - 1, i; r >= 0; r--)
9365
- (i = a[r]) && (s = i(e, t, s) || s);
9366
- return s && Ot(e, t, s), s;
9511
+ var Qt = Object.defineProperty, P1 = (a, e, t, o) => {
9512
+ for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
9513
+ (i = a[n]) && (s = i(e, t, s) || s);
9514
+ return s && Qt(e, t, s), s;
9367
9515
  };
9368
- const X1 = class X1 extends y {
9516
+ const te = class te extends y {
9369
9517
  constructor() {
9370
9518
  super(...arguments), this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0;
9371
9519
  }
@@ -9378,8 +9526,8 @@ const X1 = class X1 extends y {
9378
9526
  /******************** Functions ********************/
9379
9527
  // Gets called when the slot content changes and directly appends the slotted elements into the shadow DOM
9380
9528
  async _handleSlotChange() {
9381
- var r, i;
9382
- const e = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot");
9529
+ var n, i;
9530
+ const e = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot");
9383
9531
  if (!e) return;
9384
9532
  const t = e == null ? void 0 : e.assignedNodes({ flatten: !0 }).filter((c) => c.nodeType === Node.ELEMENT_NODE);
9385
9533
  await Promise.resolve(), this.slotHasContent = t.length > 0;
@@ -9391,8 +9539,8 @@ const X1 = class X1 extends y {
9391
9539
  o && (o.classList.toggle("columns", s), o.classList.toggle("small", !s), o.innerHTML = "", t.forEach((c) => {
9392
9540
  if (c.nodeType === Node.ELEMENT_NODE) {
9393
9541
  const d = c.cloneNode(!0);
9394
- ["script", "iframe", "object", "embed", "img"].forEach((x) => {
9395
- d.querySelectorAll(x).forEach((C) => C.remove());
9542
+ ["script", "iframe", "object", "embed", "img"].forEach((k) => {
9543
+ d.querySelectorAll(k).forEach((C) => C.remove());
9396
9544
  }), o.appendChild(d), c.remove();
9397
9545
  }
9398
9546
  }));
@@ -9416,19 +9564,19 @@ const X1 = class X1 extends y {
9416
9564
  `;
9417
9565
  }
9418
9566
  };
9419
- X1.styles = Ut;
9420
- let b1 = X1;
9421
- q1([
9422
- n({ type: String })
9423
- ], b1.prototype, "agencyName");
9424
- q1([
9425
- n({ type: String })
9426
- ], b1.prototype, "homepageLink");
9427
- q1([
9428
- E()
9429
- ], b1.prototype, "slotHasContent");
9430
- customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", b1);
9431
- const Pt = u`
9567
+ te.styles = Xt;
9568
+ let g1 = te;
9569
+ P1([
9570
+ r({ type: String })
9571
+ ], g1.prototype, "agencyName");
9572
+ P1([
9573
+ r({ type: String })
9574
+ ], g1.prototype, "homepageLink");
9575
+ P1([
9576
+ I()
9577
+ ], g1.prototype, "slotHasContent");
9578
+ customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", g1);
9579
+ const Jt = u`
9432
9580
  :host {
9433
9581
  /* Global Footer Styles */
9434
9582
  --_nys-unavfooter-color: var(
@@ -9577,7 +9725,7 @@ const Pt = u`
9577
9725
  --_nys-unavfooter-padding--gutter: var(--nys-gutter-xl, 64px);
9578
9726
  }
9579
9727
  }
9580
- `, Tt = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
9728
+ `, e2 = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
9581
9729
  <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"/>
9582
9730
  <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"/>
9583
9731
  <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"/>
@@ -9593,10 +9741,10 @@ const Pt = u`
9593
9741
  <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"/>
9594
9742
  <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"/>
9595
9743
  <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"/>
9596
- </svg>`, Q1 = class Q1 extends y {
9744
+ </svg>`, se = class se extends y {
9597
9745
  /**************** Functions ****************/
9598
9746
  _getNysLogo() {
9599
- return new DOMParser().parseFromString(Tt, "image/svg+xml").documentElement;
9747
+ return new DOMParser().parseFromString(e2, "image/svg+xml").documentElement;
9600
9748
  }
9601
9749
  render() {
9602
9750
  return l`
@@ -9630,37 +9778,38 @@ const Pt = u`
9630
9778
  `;
9631
9779
  }
9632
9780
  };
9633
- Q1.styles = Pt;
9634
- let I1 = Q1;
9635
- customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", I1);
9781
+ se.styles = Jt;
9782
+ let q1 = se;
9783
+ customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", q1);
9636
9784
  export {
9637
- f1 as NysAccordion,
9785
+ v1 as NysAccordion,
9638
9786
  n1 as NysAccordionItem,
9639
- ue as NysAlert,
9640
- D as NysAvatar,
9787
+ me as NysAlert,
9788
+ A as NysAvatar,
9641
9789
  c1 as NysBacktotop,
9642
- $e as NysBadge,
9643
- we as NysButton,
9644
- Ie as NysCheckbox,
9645
- Me as NysCheckboxgroup,
9646
- g1 as NysErrorMessage,
9647
- k as NysFileinput,
9648
- b1 as NysGlobalFooter,
9790
+ Ie as NysBadge,
9791
+ Me as NysButton,
9792
+ Re as NysCheckbox,
9793
+ Oe as NysCheckboxgroup,
9794
+ z1 as NysDivider,
9795
+ f1 as NysErrorMessage,
9796
+ x as NysFileinput,
9797
+ g1 as NysGlobalFooter,
9649
9798
  a1 as NysGlobalHeader,
9650
- Ye as NysIcon,
9651
- h1 as NysLabel,
9652
- u1 as NysOption,
9653
- rt as NysRadiobutton,
9654
- et as NysRadiogroup,
9655
- dt as NysSelect,
9656
- k1 as NysSkipnav,
9799
+ nt as NysIcon,
9800
+ e1 as NysLabel,
9801
+ y1 as NysOption,
9802
+ ft as NysRadiobutton,
9803
+ yt as NysRadiogroup,
9804
+ xt as NysSelect,
9805
+ w1 as NysSkipnav,
9657
9806
  N as NysStep,
9658
9807
  i1 as NysStepper,
9659
- Ct as NysTextarea,
9660
- kt as NysTextinput,
9661
- Et as NysToggle,
9808
+ Mt as NysTextarea,
9809
+ Bt as NysTextinput,
9810
+ Pt as NysToggle,
9662
9811
  t1 as NysTooltip,
9663
- I1 as NysUnavFooter,
9812
+ q1 as NysUnavFooter,
9664
9813
  j as NysUnavHeader
9665
9814
  };
9666
9815
  //# sourceMappingURL=nysds.es.js.map