@nysds/nys-radiobutton 1.0.0 → 1.1.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.
@@ -1,10 +1,10 @@
1
- import { css as b1, LitElement as t1, html as M } from "lit";
1
+ import { css as a1, LitElement as F, html as _ } from "lit";
2
2
  /*!
3
3
  * ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
4
4
  * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
5
5
  * ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
6
6
  *
7
- * Radiobutton Component v1.0.0
7
+ * Radiobutton Component v1.1.1
8
8
  * Part of the New York State Design System
9
9
  * Repository: https://github.com/its-hcd/nysds
10
10
  * License: MIT
@@ -14,18 +14,18 @@ import { css as b1, LitElement as t1, html as M } from "lit";
14
14
  * Copyright 2019 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- const D = globalThis, e1 = D.ShadowRoot && (D.ShadyCSS === void 0 || D.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, m1 = Symbol(), n1 = /* @__PURE__ */ new WeakMap();
18
- let P1 = class {
19
- constructor(t, e, o) {
20
- if (this._$cssResult$ = !0, o !== m1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
17
+ const Y = globalThis, f1 = Y.ShadowRoot && (Y.ShadyCSS === void 0 || Y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Q1 = Symbol(), x1 = /* @__PURE__ */ new WeakMap();
18
+ let d5 = class {
19
+ constructor(t, e, s) {
20
+ if (this._$cssResult$ = !0, s !== Q1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
21
21
  this.cssText = t, this.t = e;
22
22
  }
23
23
  get styleSheet() {
24
24
  let t = this.o;
25
25
  const e = this.t;
26
- if (e1 && t === void 0) {
27
- const o = e !== void 0 && e.length === 1;
28
- o && (t = n1.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), o && n1.set(e, t));
26
+ if (f1 && t === void 0) {
27
+ const s = e !== void 0 && e.length === 1;
28
+ s && (t = x1.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && x1.set(e, t));
29
29
  }
30
30
  return t;
31
31
  }
@@ -33,115 +33,115 @@ let P1 = class {
33
33
  return this.cssText;
34
34
  }
35
35
  };
36
- const k1 = (i) => new P1(typeof i == "string" ? i : i + "", void 0, m1), z1 = (i, t) => {
37
- if (e1) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
36
+ const u5 = (o) => new d5(typeof o == "string" ? o : o + "", void 0, Q1), p5 = (o, t) => {
37
+ if (f1) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
38
38
  else for (const e of t) {
39
- const o = document.createElement("style"), s = D.litNonce;
40
- s !== void 0 && o.setAttribute("nonce", s), o.textContent = e.cssText, i.appendChild(o);
39
+ const s = document.createElement("style"), i = Y.litNonce;
40
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, o.appendChild(s);
41
41
  }
42
- }, C1 = e1 ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
42
+ }, A1 = f1 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
43
43
  let e = "";
44
- for (const o of t.cssRules) e += o.cssText;
45
- return k1(e);
46
- })(i) : i;
44
+ for (const s of t.cssRules) e += s.cssText;
45
+ return u5(e);
46
+ })(o) : o;
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
51
  */
52
- const { is: U1, defineProperty: B1, getOwnPropertyDescriptor: O1, getOwnPropertyNames: R1, getOwnPropertySymbols: T1, getPrototypeOf: N1 } = Object, m = globalThis, l1 = m.trustedTypes, q1 = l1 ? l1.emptyScript : "", J = m.reactiveElementPolyfillSupport, B = (i, t) => i, I = { toAttribute(i, t) {
52
+ const { is: v5, defineProperty: y5, getOwnPropertyDescriptor: f5, getOwnPropertyNames: g5, getOwnPropertySymbols: w5, getPrototypeOf: _5 } = Object, E = globalThis, P1 = E.trustedTypes, m5 = P1 ? P1.emptyScript : "", d1 = E.reactiveElementPolyfillSupport, q = (o, t) => o, e1 = { toAttribute(o, t) {
53
53
  switch (t) {
54
54
  case Boolean:
55
- i = i ? q1 : null;
55
+ o = o ? m5 : null;
56
56
  break;
57
57
  case Object:
58
58
  case Array:
59
- i = i == null ? i : JSON.stringify(i);
59
+ o = o == null ? o : JSON.stringify(o);
60
60
  }
61
- return i;
62
- }, fromAttribute(i, t) {
63
- let e = i;
61
+ return o;
62
+ }, fromAttribute(o, t) {
63
+ let e = o;
64
64
  switch (t) {
65
65
  case Boolean:
66
- e = i !== null;
66
+ e = o !== null;
67
67
  break;
68
68
  case Number:
69
- e = i === null ? null : Number(i);
69
+ e = o === null ? null : Number(o);
70
70
  break;
71
71
  case Object:
72
72
  case Array:
73
73
  try {
74
- e = JSON.parse(i);
74
+ e = JSON.parse(o);
75
75
  } catch {
76
76
  e = null;
77
77
  }
78
78
  }
79
79
  return e;
80
- } }, o1 = (i, t) => !U1(i, t), a1 = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: o1 };
81
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), m.litPropertyMetadata ?? (m.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
82
- class P extends HTMLElement {
80
+ } }, g1 = (o, t) => !v5(o, t), H1 = { attribute: !0, type: String, converter: e1, reflect: !1, hasChanged: g1 };
81
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
82
+ let k = class extends HTMLElement {
83
83
  static addInitializer(t) {
84
84
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
85
85
  }
86
86
  static get observedAttributes() {
87
87
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
88
88
  }
89
- static createProperty(t, e = a1) {
89
+ static createProperty(t, e = H1) {
90
90
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
91
- const o = Symbol(), s = this.getPropertyDescriptor(t, o, e);
92
- s !== void 0 && B1(this.prototype, t, s);
91
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
92
+ i !== void 0 && y5(this.prototype, t, i);
93
93
  }
94
94
  }
95
- static getPropertyDescriptor(t, e, o) {
96
- const { get: s, set: n } = O1(this.prototype, t) ?? { get() {
95
+ static getPropertyDescriptor(t, e, s) {
96
+ const { get: i, set: r } = f5(this.prototype, t) ?? { get() {
97
97
  return this[e];
98
- }, set(r) {
99
- this[e] = r;
98
+ }, set(n) {
99
+ this[e] = n;
100
100
  } };
101
101
  return { get() {
102
- return s == null ? void 0 : s.call(this);
103
- }, set(r) {
104
- const l = s == null ? void 0 : s.call(this);
105
- n.call(this, r), this.requestUpdate(t, l, o);
102
+ return i == null ? void 0 : i.call(this);
103
+ }, set(n) {
104
+ const a = i == null ? void 0 : i.call(this);
105
+ r.call(this, n), this.requestUpdate(t, a, s);
106
106
  }, configurable: !0, enumerable: !0 };
107
107
  }
108
108
  static getPropertyOptions(t) {
109
- return this.elementProperties.get(t) ?? a1;
109
+ return this.elementProperties.get(t) ?? H1;
110
110
  }
111
111
  static _$Ei() {
112
- if (this.hasOwnProperty(B("elementProperties"))) return;
113
- const t = N1(this);
112
+ if (this.hasOwnProperty(q("elementProperties"))) return;
113
+ const t = _5(this);
114
114
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
115
115
  }
116
116
  static finalize() {
117
- if (this.hasOwnProperty(B("finalized"))) return;
118
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(B("properties"))) {
119
- const e = this.properties, o = [...R1(e), ...T1(e)];
120
- for (const s of o) this.createProperty(s, e[s]);
117
+ if (this.hasOwnProperty(q("finalized"))) return;
118
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(q("properties"))) {
119
+ const e = this.properties, s = [...g5(e), ...w5(e)];
120
+ for (const i of s) this.createProperty(i, e[i]);
121
121
  }
122
122
  const t = this[Symbol.metadata];
123
123
  if (t !== null) {
124
124
  const e = litPropertyMetadata.get(t);
125
- if (e !== void 0) for (const [o, s] of e) this.elementProperties.set(o, s);
125
+ if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
126
126
  }
127
127
  this._$Eh = /* @__PURE__ */ new Map();
128
- for (const [e, o] of this.elementProperties) {
129
- const s = this._$Eu(e, o);
130
- s !== void 0 && this._$Eh.set(s, e);
128
+ for (const [e, s] of this.elementProperties) {
129
+ const i = this._$Eu(e, s);
130
+ i !== void 0 && this._$Eh.set(i, e);
131
131
  }
132
132
  this.elementStyles = this.finalizeStyles(this.styles);
133
133
  }
134
134
  static finalizeStyles(t) {
135
135
  const e = [];
136
136
  if (Array.isArray(t)) {
137
- const o = new Set(t.flat(1 / 0).reverse());
138
- for (const s of o) e.unshift(C1(s));
139
- } else t !== void 0 && e.push(C1(t));
137
+ const s = new Set(t.flat(1 / 0).reverse());
138
+ for (const i of s) e.unshift(A1(i));
139
+ } else t !== void 0 && e.push(A1(t));
140
140
  return e;
141
141
  }
142
142
  static _$Eu(t, e) {
143
- const o = e.attribute;
144
- return o === !1 ? void 0 : typeof o == "string" ? o : typeof t == "string" ? t.toLowerCase() : void 0;
143
+ const s = e.attribute;
144
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
145
145
  }
146
146
  constructor() {
147
147
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
@@ -160,18 +160,18 @@ class P extends HTMLElement {
160
160
  }
161
161
  _$E_() {
162
162
  const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
163
- for (const o of e.keys()) this.hasOwnProperty(o) && (t.set(o, this[o]), delete this[o]);
163
+ for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
164
164
  t.size > 0 && (this._$Ep = t);
165
165
  }
166
166
  createRenderRoot() {
167
167
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
168
- return z1(t, this.constructor.elementStyles), t;
168
+ return p5(t, this.constructor.elementStyles), t;
169
169
  }
170
170
  connectedCallback() {
171
171
  var t;
172
172
  this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
173
- var o;
174
- return (o = e.hostConnected) == null ? void 0 : o.call(e);
173
+ var s;
174
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
175
175
  });
176
176
  }
177
177
  enableUpdating(t) {
@@ -179,38 +179,38 @@ class P extends HTMLElement {
179
179
  disconnectedCallback() {
180
180
  var t;
181
181
  (t = this._$EO) == null || t.forEach((e) => {
182
- var o;
183
- return (o = e.hostDisconnected) == null ? void 0 : o.call(e);
182
+ var s;
183
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
184
184
  });
185
185
  }
186
- attributeChangedCallback(t, e, o) {
187
- this._$AK(t, o);
186
+ attributeChangedCallback(t, e, s) {
187
+ this._$AK(t, s);
188
188
  }
189
189
  _$EC(t, e) {
190
- var n;
191
- const o = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, o);
192
- if (s !== void 0 && o.reflect === !0) {
193
- const r = (((n = o.converter) == null ? void 0 : n.toAttribute) !== void 0 ? o.converter : I).toAttribute(e, o.type);
194
- this._$Em = t, r == null ? this.removeAttribute(s) : this.setAttribute(s, r), this._$Em = null;
190
+ var r;
191
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
192
+ if (i !== void 0 && s.reflect === !0) {
193
+ const n = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : e1).toAttribute(e, s.type);
194
+ this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
195
195
  }
196
196
  }
197
197
  _$AK(t, e) {
198
- var n;
199
- const o = this.constructor, s = o._$Eh.get(t);
200
- if (s !== void 0 && this._$Em !== s) {
201
- const r = o.getPropertyOptions(s), l = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((n = r.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? r.converter : I;
202
- this._$Em = s, this[s] = l.fromAttribute(e, r.type), this._$Em = null;
198
+ var r;
199
+ const s = this.constructor, i = s._$Eh.get(t);
200
+ if (i !== void 0 && this._$Em !== i) {
201
+ const n = s.getPropertyOptions(i), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? n.converter : e1;
202
+ this._$Em = i, this[i] = a.fromAttribute(e, n.type), this._$Em = null;
203
203
  }
204
204
  }
205
- requestUpdate(t, e, o) {
205
+ requestUpdate(t, e, s) {
206
206
  if (t !== void 0) {
207
- if (o ?? (o = this.constructor.getPropertyOptions(t)), !(o.hasChanged ?? o1)(this[t], e)) return;
208
- this.P(t, e, o);
207
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? g1)(this[t], e)) return;
208
+ this.P(t, e, s);
209
209
  }
210
210
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
211
211
  }
212
- P(t, e, o) {
213
- this._$AL.has(t) || this._$AL.set(t, e), o.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
212
+ P(t, e, s) {
213
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
214
214
  }
215
215
  async _$ET() {
216
216
  this.isUpdatePending = !0;
@@ -226,25 +226,25 @@ class P extends HTMLElement {
226
226
  return this.performUpdate();
227
227
  }
228
228
  performUpdate() {
229
- var o;
229
+ var s;
230
230
  if (!this.isUpdatePending) return;
231
231
  if (!this.hasUpdated) {
232
232
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
233
- for (const [n, r] of this._$Ep) this[n] = r;
233
+ for (const [r, n] of this._$Ep) this[r] = n;
234
234
  this._$Ep = void 0;
235
235
  }
236
- const s = this.constructor.elementProperties;
237
- if (s.size > 0) for (const [n, r] of s) r.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], r);
236
+ const i = this.constructor.elementProperties;
237
+ if (i.size > 0) for (const [r, n] of i) n.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], n);
238
238
  }
239
239
  let t = !1;
240
240
  const e = this._$AL;
241
241
  try {
242
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (o = this._$EO) == null || o.forEach((s) => {
243
- var n;
244
- return (n = s.hostUpdate) == null ? void 0 : n.call(s);
242
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
243
+ var r;
244
+ return (r = i.hostUpdate) == null ? void 0 : r.call(i);
245
245
  }), this.update(e)) : this._$EU();
246
- } catch (s) {
247
- throw t = !1, this._$EU(), s;
246
+ } catch (i) {
247
+ throw t = !1, this._$EU(), i;
248
248
  }
249
249
  t && this._$AE(e);
250
250
  }
@@ -252,9 +252,9 @@ class P extends HTMLElement {
252
252
  }
253
253
  _$AE(t) {
254
254
  var e;
255
- (e = this._$EO) == null || e.forEach((o) => {
256
- var s;
257
- return (s = o.hostUpdated) == null ? void 0 : s.call(o);
255
+ (e = this._$EO) == null || e.forEach((s) => {
256
+ var i;
257
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
258
258
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
259
259
  }
260
260
  _$EU() {
@@ -276,117 +276,117 @@ class P extends HTMLElement {
276
276
  }
277
277
  firstUpdated(t) {
278
278
  }
279
- }
280
- P.elementStyles = [], P.shadowRootOptions = { mode: "open" }, P[B("elementProperties")] = /* @__PURE__ */ new Map(), P[B("finalized")] = /* @__PURE__ */ new Map(), J == null || J({ ReactiveElement: P }), (m.reactiveElementVersions ?? (m.reactiveElementVersions = [])).push("2.0.4");
279
+ };
280
+ k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[q("elementProperties")] = /* @__PURE__ */ new Map(), k[q("finalized")] = /* @__PURE__ */ new Map(), d1 == null || d1({ ReactiveElement: k }), (E.reactiveElementVersions ?? (E.reactiveElementVersions = [])).push("2.0.4");
281
281
  /**
282
282
  * @license
283
283
  * Copyright 2017 Google LLC
284
284
  * SPDX-License-Identifier: BSD-3-Clause
285
285
  */
286
- const D1 = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: o1 }, j1 = (i = D1, t, e) => {
287
- const { kind: o, metadata: s } = e;
288
- let n = globalThis.litPropertyMetadata.get(s);
289
- if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, i), o === "accessor") {
290
- const { name: r } = e;
291
- return { set(l) {
292
- const C = t.get.call(this);
293
- t.set.call(this, l), this.requestUpdate(r, C, i);
294
- }, init(l) {
295
- return l !== void 0 && this.P(r, void 0, i), l;
286
+ const b5 = { attribute: !0, type: String, converter: e1, reflect: !1, hasChanged: g1 }, $5 = (o = b5, t, e) => {
287
+ const { kind: s, metadata: i } = e;
288
+ let r = globalThis.litPropertyMetadata.get(i);
289
+ if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(e.name, o), s === "accessor") {
290
+ const { name: n } = e;
291
+ return { set(a) {
292
+ const l = t.get.call(this);
293
+ t.set.call(this, a), this.requestUpdate(n, l, o);
294
+ }, init(a) {
295
+ return a !== void 0 && this.P(n, void 0, o), a;
296
296
  } };
297
297
  }
298
- if (o === "setter") {
299
- const { name: r } = e;
300
- return function(l) {
301
- const C = this[r];
302
- t.call(this, l), this.requestUpdate(r, C, i);
298
+ if (s === "setter") {
299
+ const { name: n } = e;
300
+ return function(a) {
301
+ const l = this[n];
302
+ t.call(this, a), this.requestUpdate(n, l, o);
303
303
  };
304
304
  }
305
- throw Error("Unsupported decorator location: " + o);
305
+ throw Error("Unsupported decorator location: " + s);
306
306
  };
307
- function u(i) {
308
- return (t, e) => typeof e == "object" ? j1(i, t, e) : ((o, s, n) => {
309
- const r = s.hasOwnProperty(n);
310
- return s.constructor.createProperty(n, r ? { ...o, wrapped: !0 } : o), r ? Object.getOwnPropertyDescriptor(s, n) : void 0;
311
- })(i, t, e);
307
+ function d(o) {
308
+ return (t, e) => typeof e == "object" ? $5(o, t, e) : ((s, i, r) => {
309
+ const n = i.hasOwnProperty(r);
310
+ return i.constructor.createProperty(r, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, r) : void 0;
311
+ })(o, t, e);
312
312
  }
313
313
  /**
314
314
  * @license
315
315
  * Copyright 2017 Google LLC
316
316
  * SPDX-License-Identifier: BSD-3-Clause
317
317
  */
318
- function $1(i) {
319
- return u({ ...i, state: !0, attribute: !1 });
318
+ function E5(o) {
319
+ return d({ ...o, state: !0, attribute: !1 });
320
320
  }
321
321
  /**
322
322
  * @license
323
323
  * Copyright 2017 Google LLC
324
324
  * SPDX-License-Identifier: BSD-3-Clause
325
325
  */
326
- const O = globalThis, G = O.trustedTypes, c1 = G ? G.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, L1 = "$lit$", b = `lit$${Math.random().toFixed(9).slice(2)}$`, M1 = "?" + b, I1 = `<${M1}>`, Z = document, W = () => Z.createComment(""), T = (i) => i === null || typeof i != "object" && typeof i != "function", s1 = Array.isArray, G1 = (i) => s1(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Y = `[
327
- \f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, h1 = /-->/g, d1 = />/g, L = RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
328
- \f\r"'\`<>=]|("|')|))|$)`, "g"), u1 = /'/g, p1 = /"/g, x1 = /^(?:script|style|textarea|title)$/i, N = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), v1 = /* @__PURE__ */ new WeakMap(), x = Z.createTreeWalker(Z, 129);
329
- function Z1(i, t) {
330
- if (!s1(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
331
- return c1 !== void 0 ? c1.createHTML(t) : t;
326
+ const N = globalThis, s1 = N.trustedTypes, Z1 = s1 ? s1.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, t5 = "$lit$", $ = `lit$${Math.random().toFixed(9).slice(2)}$`, e5 = "?" + $, S5 = `<${e5}>`, M = document, i1 = () => M.createComment(""), G = (o) => o === null || typeof o != "object" && typeof o != "function", w1 = Array.isArray, L5 = (o) => w1(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", u1 = `[
327
+ \f\r]`, z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, V1 = /-->/g, U1 = />/g, S = RegExp(`>|${u1}(?:([^\\s"'>=/]+)(${u1}*=${u1}*(?:[^
328
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), k1 = /'/g, z1 = /"/g, s5 = /^(?:script|style|textarea|title)$/i, W = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), O1 = /* @__PURE__ */ new WeakMap(), L = M.createTreeWalker(M, 129);
329
+ function i5(o, t) {
330
+ if (!w1(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
331
+ return Z1 !== void 0 ? Z1.createHTML(t) : t;
332
332
  }
333
- const W1 = (i, t) => {
334
- const e = i.length - 1, o = [];
335
- let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = k;
336
- for (let l = 0; l < e; l++) {
337
- const C = i[l];
338
- let d, p, c = -1, f = 0;
339
- for (; f < C.length && (r.lastIndex = f, p = r.exec(C), p !== null); ) f = r.lastIndex, r === k ? p[1] === "!--" ? r = h1 : p[1] !== void 0 ? r = d1 : p[2] !== void 0 ? (x1.test(p[2]) && (s = RegExp("</" + p[2], "g")), r = L) : p[3] !== void 0 && (r = L) : r === L ? p[0] === ">" ? (r = s ?? k, c = -1) : p[1] === void 0 ? c = -2 : (c = r.lastIndex - p[2].length, d = p[1], r = p[3] === void 0 ? L : p[3] === '"' ? p1 : u1) : r === p1 || r === u1 ? r = L : r === h1 || r === d1 ? r = k : (r = L, s = void 0);
340
- const _ = r === L && i[l + 1].startsWith("/>") ? " " : "";
341
- n += r === k ? C + I1 : c >= 0 ? (o.push(d), C.slice(0, c) + L1 + C.slice(c) + b + _) : C + b + (c === -2 ? l : _);
342
- }
343
- return [Z1(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
333
+ const M5 = (o, t) => {
334
+ const e = o.length - 1, s = [];
335
+ let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = z;
336
+ for (let a = 0; a < e; a++) {
337
+ const l = o[a];
338
+ let u, p, h = -1, g = 0;
339
+ for (; g < l.length && (n.lastIndex = g, p = n.exec(l), p !== null); ) g = n.lastIndex, n === z ? p[1] === "!--" ? n = V1 : p[1] !== void 0 ? n = U1 : p[2] !== void 0 ? (s5.test(p[2]) && (i = RegExp("</" + p[2], "g")), n = S) : p[3] !== void 0 && (n = S) : n === S ? p[0] === ">" ? (n = i ?? z, h = -1) : p[1] === void 0 ? h = -2 : (h = n.lastIndex - p[2].length, u = p[1], n = p[3] === void 0 ? S : p[3] === '"' ? z1 : k1) : n === z1 || n === k1 ? n = S : n === V1 || n === U1 ? n = z : (n = S, i = void 0);
340
+ const b = n === S && o[a + 1].startsWith("/>") ? " " : "";
341
+ r += n === z ? l + S5 : h >= 0 ? (s.push(u), l.slice(0, h) + t5 + l.slice(h) + $ + b) : l + $ + (h === -2 ? a : b);
342
+ }
343
+ return [i5(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
344
344
  };
345
- let Q = class H1 {
346
- constructor({ strings: t, _$litType$: e }, o) {
347
- let s;
345
+ let v1 = class o5 {
346
+ constructor({ strings: t, _$litType$: e }, s) {
347
+ let i;
348
348
  this.parts = [];
349
- let n = 0, r = 0;
350
- const l = t.length - 1, C = this.parts, [d, p] = W1(t, e);
351
- if (this.el = H1.createElement(d, o), x.currentNode = this.el.content, e === 2 || e === 3) {
352
- const c = this.el.content.firstChild;
353
- c.replaceWith(...c.childNodes);
349
+ let r = 0, n = 0;
350
+ const a = t.length - 1, l = this.parts, [u, p] = M5(t, e);
351
+ if (this.el = o5.createElement(u, s), L.currentNode = this.el.content, e === 2 || e === 3) {
352
+ const h = this.el.content.firstChild;
353
+ h.replaceWith(...h.childNodes);
354
354
  }
355
- for (; (s = x.nextNode()) !== null && C.length < l; ) {
356
- if (s.nodeType === 1) {
357
- if (s.hasAttributes()) for (const c of s.getAttributeNames()) if (c.endsWith(L1)) {
358
- const f = p[r++], _ = s.getAttribute(c).split(b), q = /([.?@])?(.*)/.exec(f);
359
- C.push({ type: 1, index: n, name: q[2], strings: _, ctor: q[1] === "." ? K1 : q[1] === "?" ? J1 : q[1] === "@" ? Y1 : K }), s.removeAttribute(c);
360
- } else c.startsWith(b) && (C.push({ type: 6, index: n }), s.removeAttribute(c));
361
- if (x1.test(s.tagName)) {
362
- const c = s.textContent.split(b), f = c.length - 1;
363
- if (f > 0) {
364
- s.textContent = G ? G.emptyScript : "";
365
- for (let _ = 0; _ < f; _++) s.append(c[_], W()), x.nextNode(), C.push({ type: 2, index: ++n });
366
- s.append(c[f], W());
355
+ for (; (i = L.nextNode()) !== null && l.length < a; ) {
356
+ if (i.nodeType === 1) {
357
+ if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(t5)) {
358
+ const g = p[n++], b = i.getAttribute(h).split($), J = /([.?@])?(.*)/.exec(g);
359
+ l.push({ type: 1, index: r, name: J[2], strings: b, ctor: J[1] === "." ? A5 : J[1] === "?" ? P5 : J[1] === "@" ? H5 : l1 }), i.removeAttribute(h);
360
+ } else h.startsWith($) && (l.push({ type: 6, index: r }), i.removeAttribute(h));
361
+ if (s5.test(i.tagName)) {
362
+ const h = i.textContent.split($), g = h.length - 1;
363
+ if (g > 0) {
364
+ i.textContent = s1 ? s1.emptyScript : "";
365
+ for (let b = 0; b < g; b++) i.append(h[b], i1()), L.nextNode(), l.push({ type: 2, index: ++r });
366
+ i.append(h[g], i1());
367
367
  }
368
368
  }
369
- } else if (s.nodeType === 8) if (s.data === M1) C.push({ type: 2, index: n });
369
+ } else if (i.nodeType === 8) if (i.data === e5) l.push({ type: 2, index: r });
370
370
  else {
371
- let c = -1;
372
- for (; (c = s.data.indexOf(b, c + 1)) !== -1; ) C.push({ type: 7, index: n }), c += b.length - 1;
371
+ let h = -1;
372
+ for (; (h = i.data.indexOf($, h + 1)) !== -1; ) l.push({ type: 7, index: r }), h += $.length - 1;
373
373
  }
374
- n++;
374
+ r++;
375
375
  }
376
376
  }
377
377
  static createElement(t, e) {
378
- const o = Z.createElement("template");
379
- return o.innerHTML = t, o;
378
+ const s = M.createElement("template");
379
+ return s.innerHTML = t, s;
380
380
  }
381
381
  };
382
- function E(i, t, e = i, o) {
383
- var r, l;
384
- if (t === N) return t;
385
- let s = o !== void 0 ? (r = e._$Co) == null ? void 0 : r[o] : e._$Cl;
386
- const n = T(t) ? void 0 : t._$litDirective$;
387
- return (s == null ? void 0 : s.constructor) !== n && ((l = s == null ? void 0 : s._$AO) == null || l.call(s, !1), n === void 0 ? s = void 0 : (s = new n(i), s._$AT(i, e, o)), o !== void 0 ? (e._$Co ?? (e._$Co = []))[o] = s : e._$Cl = s), s !== void 0 && (t = E(i, s._$AS(i, t.values), s, o)), t;
382
+ function A(o, t, e = o, s) {
383
+ var n, a;
384
+ if (t === W) return t;
385
+ let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
386
+ const r = G(t) ? void 0 : t._$litDirective$;
387
+ return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(o), i._$AT(o, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = A(o, i._$AS(o, t.values), i, s)), t;
388
388
  }
389
- let F1 = class {
389
+ let x5 = class {
390
390
  constructor(t, e) {
391
391
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
392
392
  }
@@ -397,29 +397,29 @@ let F1 = class {
397
397
  return this._$AM._$AU;
398
398
  }
399
399
  u(t) {
400
- const { el: { content: e }, parts: o } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? Z).importNode(e, !0);
401
- x.currentNode = s;
402
- let n = x.nextNode(), r = 0, l = 0, C = o[0];
403
- for (; C !== void 0; ) {
404
- if (r === C.index) {
405
- let d;
406
- C.type === 2 ? d = new E1(n, n.nextSibling, this, t) : C.type === 1 ? d = new C.ctor(n, C.name, C.strings, this, t) : C.type === 6 && (d = new X1(n, this, t)), this._$AV.push(d), C = o[++l];
400
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? M).importNode(e, !0);
401
+ L.currentNode = i;
402
+ let r = L.nextNode(), n = 0, a = 0, l = s[0];
403
+ for (; l !== void 0; ) {
404
+ if (n === l.index) {
405
+ let u;
406
+ l.type === 2 ? u = new r5(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Z5(r, this, t)), this._$AV.push(u), l = s[++a];
407
407
  }
408
- r !== (C == null ? void 0 : C.index) && (n = x.nextNode(), r++);
408
+ n !== (l == null ? void 0 : l.index) && (r = L.nextNode(), n++);
409
409
  }
410
- return x.currentNode = Z, s;
410
+ return L.currentNode = M, i;
411
411
  }
412
412
  p(t) {
413
413
  let e = 0;
414
- for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(t, o, e), e += o.strings.length - 2) : o._$AI(t[e])), e++;
414
+ for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
415
415
  }
416
- }, E1 = class S1 {
416
+ }, r5 = class n5 {
417
417
  get _$AU() {
418
418
  var t;
419
419
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
420
420
  }
421
- constructor(t, e, o, s) {
422
- this.type = 2, this._$AH = h, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = o, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
421
+ constructor(t, e, s, i) {
422
+ this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
423
423
  }
424
424
  get parentNode() {
425
425
  let t = this._$AA.parentNode;
@@ -433,7 +433,7 @@ let F1 = class {
433
433
  return this._$AB;
434
434
  }
435
435
  _$AI(t, e = this) {
436
- t = E(this, t, e), T(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !== N && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : G1(t) ? this.k(t) : this._(t);
436
+ t = A(this, t, e), G(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== W && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : L5(t) ? this.k(t) : this._(t);
437
437
  }
438
438
  O(t) {
439
439
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -442,109 +442,109 @@ let F1 = class {
442
442
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
443
443
  }
444
444
  _(t) {
445
- this._$AH !== h && T(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Z.createTextNode(t)), this._$AH = t;
445
+ this._$AH !== c && G(this._$AH) ? this._$AA.nextSibling.data = t : this.T(M.createTextNode(t)), this._$AH = t;
446
446
  }
447
447
  $(t) {
448
- var n;
449
- const { values: e, _$litType$: o } = t, s = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = Q.createElement(Z1(o.h, o.h[0]), this.options)), o);
450
- if (((n = this._$AH) == null ? void 0 : n._$AD) === s) this._$AH.p(e);
448
+ var r;
449
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = v1.createElement(i5(s.h, s.h[0]), this.options)), s);
450
+ if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(e);
451
451
  else {
452
- const r = new F1(s, this), l = r.u(this.options);
453
- r.p(e), this.T(l), this._$AH = r;
452
+ const n = new x5(i, this), a = n.u(this.options);
453
+ n.p(e), this.T(a), this._$AH = n;
454
454
  }
455
455
  }
456
456
  _$AC(t) {
457
- let e = v1.get(t.strings);
458
- return e === void 0 && v1.set(t.strings, e = new Q(t)), e;
457
+ let e = O1.get(t.strings);
458
+ return e === void 0 && O1.set(t.strings, e = new v1(t)), e;
459
459
  }
460
460
  k(t) {
461
- s1(this._$AH) || (this._$AH = [], this._$AR());
461
+ w1(this._$AH) || (this._$AH = [], this._$AR());
462
462
  const e = this._$AH;
463
- let o, s = 0;
464
- for (const n of t) s === e.length ? e.push(o = new S1(this.O(W()), this.O(W()), this, this.options)) : o = e[s], o._$AI(n), s++;
465
- s < e.length && (this._$AR(o && o._$AB.nextSibling, s), e.length = s);
463
+ let s, i = 0;
464
+ for (const r of t) i === e.length ? e.push(s = new n5(this.O(i1()), this.O(i1()), this, this.options)) : s = e[i], s._$AI(r), i++;
465
+ i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
466
466
  }
467
467
  _$AR(t = this._$AA.nextSibling, e) {
468
- var o;
469
- for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, e); t && t !== this._$AB; ) {
470
- const s = t.nextSibling;
471
- t.remove(), t = s;
468
+ var s;
469
+ for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
470
+ const i = t.nextSibling;
471
+ t.remove(), t = i;
472
472
  }
473
473
  }
474
474
  setConnected(t) {
475
475
  var e;
476
476
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
477
477
  }
478
- }, K = class {
478
+ }, l1 = class {
479
479
  get tagName() {
480
480
  return this.element.tagName;
481
481
  }
482
482
  get _$AU() {
483
483
  return this._$AM._$AU;
484
484
  }
485
- constructor(t, e, o, s, n) {
486
- this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = h;
485
+ constructor(t, e, s, i, r) {
486
+ this.type = 1, this._$AH = c, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = c;
487
487
  }
488
- _$AI(t, e = this, o, s) {
489
- const n = this.strings;
490
- let r = !1;
491
- if (n === void 0) t = E(this, t, e, 0), r = !T(t) || t !== this._$AH && t !== N, r && (this._$AH = t);
488
+ _$AI(t, e = this, s, i) {
489
+ const r = this.strings;
490
+ let n = !1;
491
+ if (r === void 0) t = A(this, t, e, 0), n = !G(t) || t !== this._$AH && t !== W, n && (this._$AH = t);
492
492
  else {
493
- const l = t;
494
- let C, d;
495
- for (t = n[0], C = 0; C < n.length - 1; C++) d = E(this, l[o + C], e, C), d === N && (d = this._$AH[C]), r || (r = !T(d) || d !== this._$AH[C]), d === h ? t = h : t !== h && (t += (d ?? "") + n[C + 1]), this._$AH[C] = d;
493
+ const a = t;
494
+ let l, u;
495
+ for (t = r[0], l = 0; l < r.length - 1; l++) u = A(this, a[s + l], e, l), u === W && (u = this._$AH[l]), n || (n = !G(u) || u !== this._$AH[l]), u === c ? t = c : t !== c && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
496
496
  }
497
- r && !s && this.j(t);
497
+ n && !i && this.j(t);
498
498
  }
499
499
  j(t) {
500
- t === h ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
500
+ t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
501
501
  }
502
- }, K1 = class extends K {
502
+ }, A5 = class extends l1 {
503
503
  constructor() {
504
504
  super(...arguments), this.type = 3;
505
505
  }
506
506
  j(t) {
507
- this.element[this.name] = t === h ? void 0 : t;
507
+ this.element[this.name] = t === c ? void 0 : t;
508
508
  }
509
- }, J1 = class extends K {
509
+ }, P5 = class extends l1 {
510
510
  constructor() {
511
511
  super(...arguments), this.type = 4;
512
512
  }
513
513
  j(t) {
514
- this.element.toggleAttribute(this.name, !!t && t !== h);
514
+ this.element.toggleAttribute(this.name, !!t && t !== c);
515
515
  }
516
- }, Y1 = class extends K {
517
- constructor(t, e, o, s, n) {
518
- super(t, e, o, s, n), this.type = 5;
516
+ }, H5 = class extends l1 {
517
+ constructor(t, e, s, i, r) {
518
+ super(t, e, s, i, r), this.type = 5;
519
519
  }
520
520
  _$AI(t, e = this) {
521
- if ((t = E(this, t, e, 0) ?? h) === N) return;
522
- const o = this._$AH, s = t === h && o !== h || t.capture !== o.capture || t.once !== o.once || t.passive !== o.passive, n = t !== h && (o === h || s);
523
- s && this.element.removeEventListener(this.name, this, o), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
521
+ if ((t = A(this, t, e, 0) ?? c) === W) return;
522
+ const s = this._$AH, i = t === c && s !== c || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== c && (s === c || i);
523
+ i && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
524
524
  }
525
525
  handleEvent(t) {
526
526
  var e;
527
527
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
528
528
  }
529
- }, X1 = class {
530
- constructor(t, e, o) {
531
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = o;
529
+ }, Z5 = class {
530
+ constructor(t, e, s) {
531
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
532
532
  }
533
533
  get _$AU() {
534
534
  return this._$AM._$AU;
535
535
  }
536
536
  _$AI(t) {
537
- E(this, t);
537
+ A(this, t);
538
538
  }
539
539
  };
540
- const X = O.litHtmlPolyfillSupport;
541
- X == null || X(Q, E1), (O.litHtmlVersions ?? (O.litHtmlVersions = [])).push("3.2.1");
540
+ const p1 = N.litHtmlPolyfillSupport;
541
+ p1 == null || p1(v1, r5), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.2.1");
542
542
  /**
543
543
  * @license
544
544
  * Copyright 2018 Google LLC
545
545
  * SPDX-License-Identifier: BSD-3-Clause
546
546
  */
547
- const Q1 = (i) => i ?? h, A1 = b1`
547
+ const V5 = (o) => o ?? c, a5 = a1`
548
548
  :host {
549
549
  /* Global Radiobutton Styles */
550
550
  --_nys-radiobutton-size: var(--nys-size-400, 32px);
@@ -553,10 +553,6 @@ const Q1 = (i) => i ?? h, A1 = b1`
553
553
  --_nys-radiobutton-color-focus: var(--nys-color-focus, #004dd1);
554
554
  --_nys-radiobutton-width-focus: var(--nys-border-width-md, 2px);
555
555
  --_nys-radiobutton-offset-focus: var(--nys-space-2px, 2px);
556
- --_nys-radiobutton-transition-duration: var(
557
- --nys-transition-duration-sm,
558
- 0.1s
559
- );
560
556
  --_nys-radiobutton-gap: var(
561
557
  --nys-space-150,
562
558
  12px
@@ -588,9 +584,9 @@ const Q1 = (i) => i ?? h, A1 = b1`
588
584
  --nys-color-ink,
589
585
  var(--nys-color-neutral-900, #1b1b1b)
590
586
  );
591
- --_nys-radiobutton-error-color: var(
592
- --nys-color-danger,
593
- var(--nys-color-red-600, #b52c2c)
587
+ --_nys-radiobutton-color-text: var(
588
+ --nys-color-text,
589
+ var(--nys-color-neutral-900, #1b1b1b)
594
590
  );
595
591
 
596
592
  /* Default (Empty) */
@@ -625,8 +621,8 @@ const Q1 = (i) => i ?? h, A1 = b1`
625
621
  /* Disabled */
626
622
  --_nys-radiobutton-disabled-color-bg: var(--nys-color-ink-reverse, #f0f0f0);
627
623
  --_nys-radiobutton-disabled-color-text: var(
628
- --nys-color-neutral-500,
629
- #797c7f
624
+ --nys-color-text-disabled,
625
+ var(--nys-color-neutral-200, #bec0c1)
630
626
  );
631
627
  --_nys-radiobutton-disabled-color-border: var(
632
628
  --nys-color-neutral-100,
@@ -661,7 +657,7 @@ const Q1 = (i) => i ?? h, A1 = b1`
661
657
  .nys-radiogroup {
662
658
  display: flex;
663
659
  flex-direction: column;
664
- gap: var(--nys-spacing-50, 4px);
660
+ gap: var(--nys-space-200, 16px);
665
661
  font-family: var(--_nys-radiobutton-font-family);
666
662
  font-size: var(--_nys-radiobutton-font-size);
667
663
  line-height: var(--_nys-radiobutton-line-height);
@@ -751,20 +747,16 @@ const Q1 = (i) => i ?? h, A1 = b1`
751
747
  }
752
748
 
753
749
  /* Label styling */
754
- .nys-radiogroup__label {
755
- font-weight: var(--_nys-radiobutton-font-weight-600);
756
- color: var(--_nys-radiobutton-color);
757
- }
758
750
  .nys-radiobutton__label {
759
751
  font-weight: var(--_nys-radiobutton-font-weight-400);
760
- color: var(--_nys-radiobutton-color);
752
+ color: var(--_nys-radiobutton-color-text);
761
753
  }
762
754
 
763
755
  /* Description styling */
764
- .nys-radiobutton__description,
765
- .nys-radiogroup__description {
756
+ .nys-radiobutton__description {
766
757
  font-weight: var(--_nys-radiobutton-font-weight-400);
767
758
  font-style: italic;
759
+ text-align: left;
768
760
  }
769
761
 
770
762
  /* gap between radio and it's label */
@@ -783,39 +775,782 @@ const Q1 = (i) => i ?? h, A1 = b1`
783
775
  color: var(--_nys-radiobutton-disabled-color-text);
784
776
  cursor: not-allowed;
785
777
  }
778
+ `;
779
+ /*!
780
+ * Label v1.1.1
781
+ * Part of the New York State Design System
782
+ * A design system for New York State's digital products.
783
+ * Repository: https://github.com/its-hcd/nysds
784
+ * License: MIT
785
+ */
786
+ /**
787
+ * @license
788
+ * Copyright 2019 Google LLC
789
+ * SPDX-License-Identifier: BSD-3-Clause
790
+ */
791
+ const X = globalThis, _1 = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, l5 = Symbol(), R1 = /* @__PURE__ */ new WeakMap();
792
+ let U5 = class {
793
+ constructor(t, e, s) {
794
+ if (this._$cssResult$ = !0, s !== l5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
795
+ this.cssText = t, this.t = e;
796
+ }
797
+ get styleSheet() {
798
+ let t = this.o;
799
+ const e = this.t;
800
+ if (_1 && t === void 0) {
801
+ const s = e !== void 0 && e.length === 1;
802
+ s && (t = R1.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && R1.set(e, t));
803
+ }
804
+ return t;
805
+ }
806
+ toString() {
807
+ return this.cssText;
808
+ }
809
+ };
810
+ const k5 = (o) => new U5(typeof o == "string" ? o : o + "", void 0, l5), z5 = (o, t) => {
811
+ if (_1) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
812
+ else for (const e of t) {
813
+ const s = document.createElement("style"), i = X.litNonce;
814
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, o.appendChild(s);
815
+ }
816
+ }, B1 = _1 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
817
+ let e = "";
818
+ for (const s of t.cssRules) e += s.cssText;
819
+ return k5(e);
820
+ })(o) : o;
821
+ /**
822
+ * @license
823
+ * Copyright 2017 Google LLC
824
+ * SPDX-License-Identifier: BSD-3-Clause
825
+ */
826
+ const { is: O5, defineProperty: R5, getOwnPropertyDescriptor: B5, getOwnPropertyNames: T5, getOwnPropertySymbols: q5, getPrototypeOf: N5 } = Object, P = globalThis, T1 = P.trustedTypes, D5 = T1 ? T1.emptyScript : "", q1 = P.reactiveElementPolyfillSupport, D = (o, t) => o, o1 = { toAttribute(o, t) {
827
+ switch (t) {
828
+ case Boolean:
829
+ o = o ? D5 : null;
830
+ break;
831
+ case Object:
832
+ case Array:
833
+ o = o == null ? o : JSON.stringify(o);
834
+ }
835
+ return o;
836
+ }, fromAttribute(o, t) {
837
+ let e = o;
838
+ switch (t) {
839
+ case Boolean:
840
+ e = o !== null;
841
+ break;
842
+ case Number:
843
+ e = o === null ? null : Number(o);
844
+ break;
845
+ case Object:
846
+ case Array:
847
+ try {
848
+ e = JSON.parse(o);
849
+ } catch {
850
+ e = null;
851
+ }
852
+ }
853
+ return e;
854
+ } }, m1 = (o, t) => !O5(o, t), N1 = { attribute: !0, type: String, converter: o1, reflect: !1, hasChanged: m1 };
855
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), P.litPropertyMetadata ?? (P.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
856
+ let O = class extends HTMLElement {
857
+ static addInitializer(t) {
858
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
859
+ }
860
+ static get observedAttributes() {
861
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
862
+ }
863
+ static createProperty(t, e = N1) {
864
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
865
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
866
+ i !== void 0 && R5(this.prototype, t, i);
867
+ }
868
+ }
869
+ static getPropertyDescriptor(t, e, s) {
870
+ const { get: i, set: r } = B5(this.prototype, t) ?? { get() {
871
+ return this[e];
872
+ }, set(n) {
873
+ this[e] = n;
874
+ } };
875
+ return { get() {
876
+ return i == null ? void 0 : i.call(this);
877
+ }, set(n) {
878
+ const a = i == null ? void 0 : i.call(this);
879
+ r.call(this, n), this.requestUpdate(t, a, s);
880
+ }, configurable: !0, enumerable: !0 };
881
+ }
882
+ static getPropertyOptions(t) {
883
+ return this.elementProperties.get(t) ?? N1;
884
+ }
885
+ static _$Ei() {
886
+ if (this.hasOwnProperty(D("elementProperties"))) return;
887
+ const t = N5(this);
888
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
889
+ }
890
+ static finalize() {
891
+ if (this.hasOwnProperty(D("finalized"))) return;
892
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(D("properties"))) {
893
+ const e = this.properties, s = [...T5(e), ...q5(e)];
894
+ for (const i of s) this.createProperty(i, e[i]);
895
+ }
896
+ const t = this[Symbol.metadata];
897
+ if (t !== null) {
898
+ const e = litPropertyMetadata.get(t);
899
+ if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
900
+ }
901
+ this._$Eh = /* @__PURE__ */ new Map();
902
+ for (const [e, s] of this.elementProperties) {
903
+ const i = this._$Eu(e, s);
904
+ i !== void 0 && this._$Eh.set(i, e);
905
+ }
906
+ this.elementStyles = this.finalizeStyles(this.styles);
907
+ }
908
+ static finalizeStyles(t) {
909
+ const e = [];
910
+ if (Array.isArray(t)) {
911
+ const s = new Set(t.flat(1 / 0).reverse());
912
+ for (const i of s) e.unshift(B1(i));
913
+ } else t !== void 0 && e.push(B1(t));
914
+ return e;
915
+ }
916
+ static _$Eu(t, e) {
917
+ const s = e.attribute;
918
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
919
+ }
920
+ constructor() {
921
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
922
+ }
923
+ _$Ev() {
924
+ var t;
925
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
926
+ }
927
+ addController(t) {
928
+ var e;
929
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
930
+ }
931
+ removeController(t) {
932
+ var e;
933
+ (e = this._$EO) == null || e.delete(t);
934
+ }
935
+ _$E_() {
936
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
937
+ for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
938
+ t.size > 0 && (this._$Ep = t);
939
+ }
940
+ createRenderRoot() {
941
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
942
+ return z5(t, this.constructor.elementStyles), t;
943
+ }
944
+ connectedCallback() {
945
+ var t;
946
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
947
+ var s;
948
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
949
+ });
950
+ }
951
+ enableUpdating(t) {
952
+ }
953
+ disconnectedCallback() {
954
+ var t;
955
+ (t = this._$EO) == null || t.forEach((e) => {
956
+ var s;
957
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
958
+ });
959
+ }
960
+ attributeChangedCallback(t, e, s) {
961
+ this._$AK(t, s);
962
+ }
963
+ _$EC(t, e) {
964
+ var s;
965
+ const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
966
+ if (r !== void 0 && i.reflect === !0) {
967
+ const n = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : o1).toAttribute(e, i.type);
968
+ this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
969
+ }
970
+ }
971
+ _$AK(t, e) {
972
+ var s;
973
+ const i = this.constructor, r = i._$Eh.get(t);
974
+ if (r !== void 0 && this._$Em !== r) {
975
+ const n = i.getPropertyOptions(r), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((s = n.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? n.converter : o1;
976
+ this._$Em = r, this[r] = a.fromAttribute(e, n.type), this._$Em = null;
977
+ }
978
+ }
979
+ requestUpdate(t, e, s) {
980
+ if (t !== void 0) {
981
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? m1)(this[t], e)) return;
982
+ this.P(t, e, s);
983
+ }
984
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
985
+ }
986
+ P(t, e, s) {
987
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
988
+ }
989
+ async _$ET() {
990
+ this.isUpdatePending = !0;
991
+ try {
992
+ await this._$ES;
993
+ } catch (e) {
994
+ Promise.reject(e);
995
+ }
996
+ const t = this.scheduleUpdate();
997
+ return t != null && await t, !this.isUpdatePending;
998
+ }
999
+ scheduleUpdate() {
1000
+ return this.performUpdate();
1001
+ }
1002
+ performUpdate() {
1003
+ var t;
1004
+ if (!this.isUpdatePending) return;
1005
+ if (!this.hasUpdated) {
1006
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
1007
+ for (const [r, n] of this._$Ep) this[r] = n;
1008
+ this._$Ep = void 0;
1009
+ }
1010
+ const i = this.constructor.elementProperties;
1011
+ if (i.size > 0) for (const [r, n] of i) n.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], n);
1012
+ }
1013
+ let e = !1;
1014
+ const s = this._$AL;
1015
+ try {
1016
+ e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((i) => {
1017
+ var r;
1018
+ return (r = i.hostUpdate) == null ? void 0 : r.call(i);
1019
+ }), this.update(s)) : this._$EU();
1020
+ } catch (i) {
1021
+ throw e = !1, this._$EU(), i;
1022
+ }
1023
+ e && this._$AE(s);
1024
+ }
1025
+ willUpdate(t) {
1026
+ }
1027
+ _$AE(t) {
1028
+ var e;
1029
+ (e = this._$EO) == null || e.forEach((s) => {
1030
+ var i;
1031
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
1032
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
1033
+ }
1034
+ _$EU() {
1035
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
1036
+ }
1037
+ get updateComplete() {
1038
+ return this.getUpdateComplete();
1039
+ }
1040
+ getUpdateComplete() {
1041
+ return this._$ES;
1042
+ }
1043
+ shouldUpdate(t) {
1044
+ return !0;
1045
+ }
1046
+ update(t) {
1047
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
1048
+ }
1049
+ updated(t) {
1050
+ }
1051
+ firstUpdated(t) {
1052
+ }
1053
+ };
1054
+ O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[D("elementProperties")] = /* @__PURE__ */ new Map(), O[D("finalized")] = /* @__PURE__ */ new Map(), q1 == null || q1({ ReactiveElement: O }), (P.reactiveElementVersions ?? (P.reactiveElementVersions = [])).push("2.0.4");
1055
+ /**
1056
+ * @license
1057
+ * Copyright 2017 Google LLC
1058
+ * SPDX-License-Identifier: BSD-3-Clause
1059
+ */
1060
+ const j5 = { attribute: !0, type: String, converter: o1, reflect: !1, hasChanged: m1 }, I5 = (o = j5, t, e) => {
1061
+ const { kind: s, metadata: i } = e;
1062
+ let r = globalThis.litPropertyMetadata.get(i);
1063
+ if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(e.name, o), s === "accessor") {
1064
+ const { name: n } = e;
1065
+ return { set(a) {
1066
+ const l = t.get.call(this);
1067
+ t.set.call(this, a), this.requestUpdate(n, l, o);
1068
+ }, init(a) {
1069
+ return a !== void 0 && this.P(n, void 0, o), a;
1070
+ } };
1071
+ }
1072
+ if (s === "setter") {
1073
+ const { name: n } = e;
1074
+ return function(a) {
1075
+ const l = this[n];
1076
+ t.call(this, a), this.requestUpdate(n, l, o);
1077
+ };
1078
+ }
1079
+ throw Error("Unsupported decorator location: " + s);
1080
+ };
1081
+ function C1(o) {
1082
+ return (t, e) => typeof e == "object" ? I5(o, t, e) : ((s, i, r) => {
1083
+ const n = i.hasOwnProperty(r);
1084
+ return i.constructor.createProperty(r, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, r) : void 0;
1085
+ })(o, t, e);
1086
+ }
1087
+ const G5 = a1`
1088
+ :host {
1089
+ /* Label Typography */
1090
+ --_nys-label-font-family: var(
1091
+ --nys-font-family-ui,
1092
+ var(
1093
+ --nys-font-family-sans,
1094
+ "Proxima Nova",
1095
+ "Helvetica Neue",
1096
+ "Helvetica",
1097
+ "Arial",
1098
+ sans-serif
1099
+ )
1100
+ );
1101
+ --_nys-label-font-weight: var(--nys-font-weight-semibold, 600);
1102
+ --_nys-label-font-size: var(--nys-font-size-ui-md, 16px);
1103
+ --_nys-label-line-height: var(--nys-font-lineheight-ui-md, 24px);
1104
+ --_nys-label-letter-spacing: var(--nys-font-letterspacing-ui-md, 0.044px);
1105
+ --_nys-label-font-color: var(--nys-color-text, #1b1b1b);
786
1106
 
787
- /* Required */
788
- .nys-radiobutton__required {
789
- color: var(--_nys-radiobutton-error-color);
790
- margin-left: var(--_nys-select-margin);
1107
+ /* Description */
1108
+ --nys-description-font-weight: var(--nys-font-weight-regular, 400);
1109
+ --nys-description-font-style: italic;
1110
+ --nys-description-font-color: var(--nys-color-text, #1b1b1b);
1111
+
1112
+ /* Required Flag */
1113
+ --nys-required-font-color: var(--nys-color-danger, #b52c2c);
1114
+
1115
+ /* Optional Flag */
1116
+ --nys-optional-font-weight: var(--nys-font-weight-regular, 400);
1117
+ --nys-optional-font-color: var(--nys-color-text-weak, #4a4d4f);
1118
+
1119
+ /* Spacing */
1120
+ --_nys-label-flag-gap: var(--nys-space-2px, 2px);
791
1121
  }
792
1122
 
793
- .nys-radiobutton__requiredwrapper {
794
- display: inline;
1123
+ .nys-label {
1124
+ display: flex;
1125
+ flex-direction: column;
1126
+ align-items: flex-start;
1127
+ font-family: var(--_nys-label-font-family);
1128
+ font-size: var(--_nys-label-font-size);
1129
+ line-height: var(--_nys-label-line-height);
1130
+ letter-spacing: var(--_nys-label-letter-spacing);
795
1131
  }
796
1132
 
797
- /* Error Message Styling */
798
- .nys-radiobutton__error {
1133
+ .nys-label__labelwrapper {
799
1134
  display: flex;
800
- align-items: center;
801
- gap: var(--nys-space-100, 8px);
802
- color: var(--_nys-radiobutton-error-color);
1135
+ gap: var(--_nys-label-flag-gap);
1136
+ }
803
1137
 
804
- /* add divider line */
805
- border-top: 1px solid var(--_nys-radiobutton-error-color);
806
- padding-top: var(--nys-space-50, 4px);
807
- margin-top: var(--nys-space-100, 8px);
1138
+ .nys-label__label {
1139
+ font-weight: var(--_nys-label-font-weight);
1140
+ color: var(--_nys-label-font-color);
808
1141
  }
809
1142
 
810
- /* Error Icon Styling */
811
- nys-icon[name="error"] {
1143
+ .nys-label__description {
1144
+ font-weight: var(--nys-description-font-weight);
1145
+ font-style: var(--nys-description-font-style);
1146
+ color: var(--nys-description-font-color);
1147
+ }
1148
+
1149
+ .nys-label__required {
1150
+ font-weight: var(--_nys-label-font-weight);
1151
+ color: var(--nys-required-font-color);
1152
+ }
1153
+
1154
+ .nys-label__optional {
1155
+ font-weight: var(--nys-optional-font-weight);
1156
+ color: var(--nys-optional-font-color);
1157
+ }
1158
+ `;
1159
+ var W5 = Object.defineProperty, h1 = (o, t, e, s) => {
1160
+ for (var i = void 0, r = o.length - 1, n; r >= 0; r--)
1161
+ (n = o[r]) && (i = n(t, e, i) || i);
1162
+ return i && W5(t, e, i), i;
1163
+ };
1164
+ const C5 = class extends F {
1165
+ constructor() {
1166
+ super(...arguments), this.id = "", this.label = "", this.description = "", this.flag = "";
1167
+ }
1168
+ render() {
1169
+ return _`
1170
+ <div class="nys-label">
1171
+ <label for=${this.id} class="nys-label__label"
1172
+ >${this.label}
1173
+ ${this.flag === "required" ? _`<label class="nys-label__required">*</label>` : ""}
1174
+ ${this.flag === "optional" ? _`<label class="nys-label__optional">(Optional)</label>` : ""}</label
1175
+ >
1176
+ <label for=${this.id} class="nys-label__description">
1177
+ <slot name="description">${this.description}</slot>
1178
+ </label>
1179
+ </div>
1180
+ `;
1181
+ }
1182
+ };
1183
+ C5.styles = G5;
1184
+ let K = C5;
1185
+ h1([
1186
+ C1({ type: String })
1187
+ ], K.prototype, "id");
1188
+ h1([
1189
+ C1({ type: String })
1190
+ ], K.prototype, "label");
1191
+ h1([
1192
+ C1({ type: String })
1193
+ ], K.prototype, "description");
1194
+ h1([
1195
+ C1({ type: String })
1196
+ ], K.prototype, "flag");
1197
+ customElements.get("nys-label") || customElements.define("nys-label", K);
1198
+ /*!
1199
+ * Error Message v1.1.1
1200
+ * Part of the New York State Design System
1201
+ * A design system for New York State's digital products.
1202
+ * Repository: https://github.com/its-hcd/nysds
1203
+ * License: MIT
1204
+ */
1205
+ /**
1206
+ * @license
1207
+ * Copyright 2019 Google LLC
1208
+ * SPDX-License-Identifier: BSD-3-Clause
1209
+ */
1210
+ const Q = globalThis, b1 = Q.ShadowRoot && (Q.ShadyCSS === void 0 || Q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, h5 = Symbol(), D1 = /* @__PURE__ */ new WeakMap();
1211
+ let F5 = class {
1212
+ constructor(o, t, e) {
1213
+ if (this._$cssResult$ = !0, e !== h5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1214
+ this.cssText = o, this.t = t;
1215
+ }
1216
+ get styleSheet() {
1217
+ let o = this.o;
1218
+ const t = this.t;
1219
+ if (b1 && o === void 0) {
1220
+ const e = t !== void 0 && t.length === 1;
1221
+ e && (o = D1.get(t)), o === void 0 && ((this.o = o = new CSSStyleSheet()).replaceSync(this.cssText), e && D1.set(t, o));
1222
+ }
1223
+ return o;
1224
+ }
1225
+ toString() {
1226
+ return this.cssText;
1227
+ }
1228
+ };
1229
+ const K5 = (o) => new F5(typeof o == "string" ? o : o + "", void 0, h5), J5 = (o, t) => {
1230
+ if (b1) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
1231
+ else for (const e of t) {
1232
+ const s = document.createElement("style"), i = Q.litNonce;
1233
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, o.appendChild(s);
1234
+ }
1235
+ }, j1 = b1 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
1236
+ let e = "";
1237
+ for (const s of t.cssRules) e += s.cssText;
1238
+ return K5(e);
1239
+ })(o) : o;
1240
+ /**
1241
+ * @license
1242
+ * Copyright 2017 Google LLC
1243
+ * SPDX-License-Identifier: BSD-3-Clause
1244
+ */
1245
+ const { is: Y5, defineProperty: X5, getOwnPropertyDescriptor: Q5, getOwnPropertyNames: t2, getOwnPropertySymbols: e2, getPrototypeOf: s2 } = Object, H = globalThis, I1 = H.trustedTypes, i2 = I1 ? I1.emptyScript : "", G1 = H.reactiveElementPolyfillSupport, j = (o, t) => o, r1 = { toAttribute(o, t) {
1246
+ switch (t) {
1247
+ case Boolean:
1248
+ o = o ? i2 : null;
1249
+ break;
1250
+ case Object:
1251
+ case Array:
1252
+ o = o == null ? o : JSON.stringify(o);
1253
+ }
1254
+ return o;
1255
+ }, fromAttribute(o, t) {
1256
+ let e = o;
1257
+ switch (t) {
1258
+ case Boolean:
1259
+ e = o !== null;
1260
+ break;
1261
+ case Number:
1262
+ e = o === null ? null : Number(o);
1263
+ break;
1264
+ case Object:
1265
+ case Array:
1266
+ try {
1267
+ e = JSON.parse(o);
1268
+ } catch {
1269
+ e = null;
1270
+ }
1271
+ }
1272
+ return e;
1273
+ } }, $1 = (o, t) => !Y5(o, t), W1 = { attribute: !0, type: String, converter: r1, reflect: !1, hasChanged: $1 };
1274
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), H.litPropertyMetadata ?? (H.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1275
+ class R extends HTMLElement {
1276
+ static addInitializer(t) {
1277
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
1278
+ }
1279
+ static get observedAttributes() {
1280
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
1281
+ }
1282
+ static createProperty(t, e = W1) {
1283
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
1284
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
1285
+ i !== void 0 && X5(this.prototype, t, i);
1286
+ }
1287
+ }
1288
+ static getPropertyDescriptor(t, e, s) {
1289
+ const { get: i, set: r } = Q5(this.prototype, t) ?? { get() {
1290
+ return this[e];
1291
+ }, set(n) {
1292
+ this[e] = n;
1293
+ } };
1294
+ return { get() {
1295
+ return i == null ? void 0 : i.call(this);
1296
+ }, set(n) {
1297
+ const a = i == null ? void 0 : i.call(this);
1298
+ r.call(this, n), this.requestUpdate(t, a, s);
1299
+ }, configurable: !0, enumerable: !0 };
1300
+ }
1301
+ static getPropertyOptions(t) {
1302
+ return this.elementProperties.get(t) ?? W1;
1303
+ }
1304
+ static _$Ei() {
1305
+ if (this.hasOwnProperty(j("elementProperties"))) return;
1306
+ const t = s2(this);
1307
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
1308
+ }
1309
+ static finalize() {
1310
+ if (this.hasOwnProperty(j("finalized"))) return;
1311
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(j("properties"))) {
1312
+ const e = this.properties, s = [...t2(e), ...e2(e)];
1313
+ for (const i of s) this.createProperty(i, e[i]);
1314
+ }
1315
+ const t = this[Symbol.metadata];
1316
+ if (t !== null) {
1317
+ const e = litPropertyMetadata.get(t);
1318
+ if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
1319
+ }
1320
+ this._$Eh = /* @__PURE__ */ new Map();
1321
+ for (const [e, s] of this.elementProperties) {
1322
+ const i = this._$Eu(e, s);
1323
+ i !== void 0 && this._$Eh.set(i, e);
1324
+ }
1325
+ this.elementStyles = this.finalizeStyles(this.styles);
1326
+ }
1327
+ static finalizeStyles(t) {
1328
+ const e = [];
1329
+ if (Array.isArray(t)) {
1330
+ const s = new Set(t.flat(1 / 0).reverse());
1331
+ for (const i of s) e.unshift(j1(i));
1332
+ } else t !== void 0 && e.push(j1(t));
1333
+ return e;
1334
+ }
1335
+ static _$Eu(t, e) {
1336
+ const s = e.attribute;
1337
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
1338
+ }
1339
+ constructor() {
1340
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
1341
+ }
1342
+ _$Ev() {
1343
+ var t;
1344
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
1345
+ }
1346
+ addController(t) {
1347
+ var e;
1348
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
1349
+ }
1350
+ removeController(t) {
1351
+ var e;
1352
+ (e = this._$EO) == null || e.delete(t);
1353
+ }
1354
+ _$E_() {
1355
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
1356
+ for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
1357
+ t.size > 0 && (this._$Ep = t);
1358
+ }
1359
+ createRenderRoot() {
1360
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
1361
+ return J5(t, this.constructor.elementStyles), t;
1362
+ }
1363
+ connectedCallback() {
1364
+ var t;
1365
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
1366
+ var s;
1367
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
1368
+ });
1369
+ }
1370
+ enableUpdating(t) {
1371
+ }
1372
+ disconnectedCallback() {
1373
+ var t;
1374
+ (t = this._$EO) == null || t.forEach((e) => {
1375
+ var s;
1376
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
1377
+ });
1378
+ }
1379
+ attributeChangedCallback(t, e, s) {
1380
+ this._$AK(t, s);
1381
+ }
1382
+ _$EC(t, e) {
1383
+ var s;
1384
+ const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
1385
+ if (r !== void 0 && i.reflect === !0) {
1386
+ const n = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : r1).toAttribute(e, i.type);
1387
+ this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
1388
+ }
1389
+ }
1390
+ _$AK(t, e) {
1391
+ var s;
1392
+ const i = this.constructor, r = i._$Eh.get(t);
1393
+ if (r !== void 0 && this._$Em !== r) {
1394
+ const n = i.getPropertyOptions(r), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((s = n.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? n.converter : r1;
1395
+ this._$Em = r, this[r] = a.fromAttribute(e, n.type), this._$Em = null;
1396
+ }
1397
+ }
1398
+ requestUpdate(t, e, s) {
1399
+ if (t !== void 0) {
1400
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? $1)(this[t], e)) return;
1401
+ this.P(t, e, s);
1402
+ }
1403
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
1404
+ }
1405
+ P(t, e, s) {
1406
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
1407
+ }
1408
+ async _$ET() {
1409
+ this.isUpdatePending = !0;
1410
+ try {
1411
+ await this._$ES;
1412
+ } catch (e) {
1413
+ Promise.reject(e);
1414
+ }
1415
+ const t = this.scheduleUpdate();
1416
+ return t != null && await t, !this.isUpdatePending;
1417
+ }
1418
+ scheduleUpdate() {
1419
+ return this.performUpdate();
1420
+ }
1421
+ performUpdate() {
1422
+ var t;
1423
+ if (!this.isUpdatePending) return;
1424
+ if (!this.hasUpdated) {
1425
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
1426
+ for (const [r, n] of this._$Ep) this[r] = n;
1427
+ this._$Ep = void 0;
1428
+ }
1429
+ const i = this.constructor.elementProperties;
1430
+ if (i.size > 0) for (const [r, n] of i) n.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], n);
1431
+ }
1432
+ let e = !1;
1433
+ const s = this._$AL;
1434
+ try {
1435
+ e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((i) => {
1436
+ var r;
1437
+ return (r = i.hostUpdate) == null ? void 0 : r.call(i);
1438
+ }), this.update(s)) : this._$EU();
1439
+ } catch (i) {
1440
+ throw e = !1, this._$EU(), i;
1441
+ }
1442
+ e && this._$AE(s);
1443
+ }
1444
+ willUpdate(t) {
1445
+ }
1446
+ _$AE(t) {
1447
+ var e;
1448
+ (e = this._$EO) == null || e.forEach((s) => {
1449
+ var i;
1450
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
1451
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
1452
+ }
1453
+ _$EU() {
1454
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
1455
+ }
1456
+ get updateComplete() {
1457
+ return this.getUpdateComplete();
1458
+ }
1459
+ getUpdateComplete() {
1460
+ return this._$ES;
1461
+ }
1462
+ shouldUpdate(t) {
1463
+ return !0;
1464
+ }
1465
+ update(t) {
1466
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
1467
+ }
1468
+ updated(t) {
1469
+ }
1470
+ firstUpdated(t) {
1471
+ }
1472
+ }
1473
+ R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[j("elementProperties")] = /* @__PURE__ */ new Map(), R[j("finalized")] = /* @__PURE__ */ new Map(), G1 == null || G1({ ReactiveElement: R }), (H.reactiveElementVersions ?? (H.reactiveElementVersions = [])).push("2.0.4");
1474
+ /**
1475
+ * @license
1476
+ * Copyright 2017 Google LLC
1477
+ * SPDX-License-Identifier: BSD-3-Clause
1478
+ */
1479
+ const o2 = { attribute: !0, type: String, converter: r1, reflect: !1, hasChanged: $1 }, r2 = (o = o2, t, e) => {
1480
+ const { kind: s, metadata: i } = e;
1481
+ let r = globalThis.litPropertyMetadata.get(i);
1482
+ if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(e.name, o), s === "accessor") {
1483
+ const { name: n } = e;
1484
+ return { set(a) {
1485
+ const l = t.get.call(this);
1486
+ t.set.call(this, a), this.requestUpdate(n, l, o);
1487
+ }, init(a) {
1488
+ return a !== void 0 && this.P(n, void 0, o), a;
1489
+ } };
1490
+ }
1491
+ if (s === "setter") {
1492
+ const { name: n } = e;
1493
+ return function(a) {
1494
+ const l = this[n];
1495
+ t.call(this, a), this.requestUpdate(n, l, o);
1496
+ };
1497
+ }
1498
+ throw Error("Unsupported decorator location: " + s);
1499
+ };
1500
+ function E1(o) {
1501
+ return (t, e) => typeof e == "object" ? r2(o, t, e) : ((s, i, r) => {
1502
+ const n = i.hasOwnProperty(r);
1503
+ return i.constructor.createProperty(r, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, r) : void 0;
1504
+ })(o, t, e);
1505
+ }
1506
+ const n2 = a1`
1507
+ :host {
1508
+ --_nys-errormessage-font-family: var(
1509
+ --nys-font-family-ui,
1510
+ var(
1511
+ --nys-font-family-sans,
1512
+ "Proxima Nova",
1513
+ "Helvetica Neue",
1514
+ "Helvetica",
1515
+ "Arial",
1516
+ sans-serif
1517
+ )
1518
+ );
1519
+ --_nys-errormessage-font-weight: var(--nys-font-weight-regular, 400);
1520
+ --_nys-errormessage-font-size: var(--nys-font-size-ui-md, 16px);
1521
+ --_nys-errormessage-line-height: var(--nys-font-lineheight-ui-md, 24px);
1522
+ --_nys-errormessage-letter-spacing: var(
1523
+ --nys-font-letterspacing-ui-md,
1524
+ 0.044px
1525
+ );
1526
+ --_nys-errormessage-color: var(
1527
+ --nys-color-danger,
1528
+ var(--nys-color-red-600, #b52c2c)
1529
+ );
1530
+
1531
+ /* Spacing */
1532
+ --_nys-errormessage-gap: var(--nys-space-100, 8px);
1533
+ --_nys-errormessage-divider-gap: var(--nys-space-50, 4px);
1534
+ --_nys-errormessage-divider-width: var(--nys-border-width-sm, 1px);
1535
+ }
1536
+
1537
+ .nys-errormessage {
812
1538
  display: flex;
813
1539
  align-items: center;
814
- justify-content: center;
815
- margin-bottom: auto;
816
- box-sizing: border-box;
817
- height: var(--_nys-radiobutton-line-height);
818
- text-align: center;
1540
+ gap: var(--_nys-errormessage-gap);
1541
+ font-family: var(--_nys-errormessage-font-family);
1542
+ font-weight: var(--_nys-errormessage-font-weight);
1543
+ font-size: var(--_nys-errormessage-font-size);
1544
+ line-height: var(--_nys-errormessage-line-height);
1545
+ letter-spacing: var(--_nys-errormessage-letter-spacing);
1546
+ color: var(--_nys-errormessage-color);
1547
+ }
1548
+
1549
+ .nys-errormessage[showDivider] {
1550
+ padding-top: var(--_nys-errormessage-divider-gap);
1551
+ margin-top: var(--_nys-errormessage-divider-gap);
1552
+ border-top: var(--_nys-errormessage-divider-width) solid
1553
+ var(--_nys-errormessage-color);
819
1554
  }
820
1555
  `;
821
1556
  /*!
@@ -823,7 +1558,7 @@ const Q1 = (i) => i ?? h, A1 = b1`
823
1558
  * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
824
1559
  * ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
825
1560
  *
826
- * Icon Component v1.0.0
1561
+ * Icon Component v1.1.1
827
1562
  * Part of the New York State Design System
828
1563
  * Repository: https://github.com/its-hcd/nysds
829
1564
  * License: MIT
@@ -833,134 +1568,134 @@ const Q1 = (i) => i ?? h, A1 = b1`
833
1568
  * Copyright 2019 Google LLC
834
1569
  * SPDX-License-Identifier: BSD-3-Clause
835
1570
  */
836
- const j = globalThis, i1 = j.ShadowRoot && (j.ShadyCSS === void 0 || j.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, V1 = Symbol(), g1 = /* @__PURE__ */ new WeakMap();
837
- let t5 = class {
838
- constructor(i, t, e) {
839
- if (this._$cssResult$ = !0, e !== V1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
840
- this.cssText = i, this.t = t;
1571
+ const t1 = globalThis, S1 = t1.ShadowRoot && (t1.ShadyCSS === void 0 || t1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, c5 = Symbol(), F1 = /* @__PURE__ */ new WeakMap();
1572
+ let a2 = class {
1573
+ constructor(o, t, e) {
1574
+ if (this._$cssResult$ = !0, e !== c5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1575
+ this.cssText = o, this.t = t;
841
1576
  }
842
1577
  get styleSheet() {
843
- let i = this.o;
1578
+ let o = this.o;
844
1579
  const t = this.t;
845
- if (i1 && i === void 0) {
1580
+ if (S1 && o === void 0) {
846
1581
  const e = t !== void 0 && t.length === 1;
847
- e && (i = g1.get(t)), i === void 0 && ((this.o = i = new CSSStyleSheet()).replaceSync(this.cssText), e && g1.set(t, i));
1582
+ e && (o = F1.get(t)), o === void 0 && ((this.o = o = new CSSStyleSheet()).replaceSync(this.cssText), e && F1.set(t, o));
848
1583
  }
849
- return i;
1584
+ return o;
850
1585
  }
851
1586
  toString() {
852
1587
  return this.cssText;
853
1588
  }
854
1589
  };
855
- const e5 = (i) => new t5(typeof i == "string" ? i : i + "", void 0, V1), o5 = (i, t) => {
856
- if (i1) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
1590
+ const l2 = (o) => new a2(typeof o == "string" ? o : o + "", void 0, c5), C2 = (o, t) => {
1591
+ if (S1) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
857
1592
  else for (const e of t) {
858
- const o = document.createElement("style"), s = j.litNonce;
859
- s !== void 0 && o.setAttribute("nonce", s), o.textContent = e.cssText, i.appendChild(o);
1593
+ const s = document.createElement("style"), i = t1.litNonce;
1594
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, o.appendChild(s);
860
1595
  }
861
- }, y1 = i1 ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
1596
+ }, K1 = S1 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
862
1597
  let e = "";
863
- for (const o of t.cssRules) e += o.cssText;
864
- return e5(e);
865
- })(i) : i;
1598
+ for (const s of t.cssRules) e += s.cssText;
1599
+ return l2(e);
1600
+ })(o) : o;
866
1601
  /**
867
1602
  * @license
868
1603
  * Copyright 2017 Google LLC
869
1604
  * SPDX-License-Identifier: BSD-3-Clause
870
1605
  */
871
- const { is: s5, defineProperty: i5, getOwnPropertyDescriptor: r5, getOwnPropertyNames: n5, getOwnPropertySymbols: C5, getPrototypeOf: l5 } = Object, S = globalThis, f1 = S.trustedTypes, a5 = f1 ? f1.emptyScript : "", w1 = S.reactiveElementPolyfillSupport, R = (i, t) => i, F = { toAttribute(i, t) {
1606
+ const { is: h2, defineProperty: c2, getOwnPropertyDescriptor: d2, getOwnPropertyNames: u2, getOwnPropertySymbols: p2, getPrototypeOf: v2 } = Object, Z = globalThis, J1 = Z.trustedTypes, y2 = J1 ? J1.emptyScript : "", Y1 = Z.reactiveElementPolyfillSupport, I = (o, t) => o, n1 = { toAttribute(o, t) {
872
1607
  switch (t) {
873
1608
  case Boolean:
874
- i = i ? a5 : null;
1609
+ o = o ? y2 : null;
875
1610
  break;
876
1611
  case Object:
877
1612
  case Array:
878
- i = i == null ? i : JSON.stringify(i);
1613
+ o = o == null ? o : JSON.stringify(o);
879
1614
  }
880
- return i;
881
- }, fromAttribute(i, t) {
882
- let e = i;
1615
+ return o;
1616
+ }, fromAttribute(o, t) {
1617
+ let e = o;
883
1618
  switch (t) {
884
1619
  case Boolean:
885
- e = i !== null;
1620
+ e = o !== null;
886
1621
  break;
887
1622
  case Number:
888
- e = i === null ? null : Number(i);
1623
+ e = o === null ? null : Number(o);
889
1624
  break;
890
1625
  case Object:
891
1626
  case Array:
892
1627
  try {
893
- e = JSON.parse(i);
1628
+ e = JSON.parse(o);
894
1629
  } catch {
895
1630
  e = null;
896
1631
  }
897
1632
  }
898
1633
  return e;
899
- } }, r1 = (i, t) => !s5(i, t), _1 = { attribute: !0, type: String, converter: F, reflect: !1, hasChanged: r1 };
900
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), S.litPropertyMetadata ?? (S.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
901
- class z extends HTMLElement {
1634
+ } }, L1 = (o, t) => !h2(o, t), X1 = { attribute: !0, type: String, converter: n1, reflect: !1, hasChanged: L1 };
1635
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Z.litPropertyMetadata ?? (Z.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1636
+ class B extends HTMLElement {
902
1637
  static addInitializer(t) {
903
1638
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
904
1639
  }
905
1640
  static get observedAttributes() {
906
1641
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
907
1642
  }
908
- static createProperty(t, e = _1) {
1643
+ static createProperty(t, e = X1) {
909
1644
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
910
- const o = Symbol(), s = this.getPropertyDescriptor(t, o, e);
911
- s !== void 0 && i5(this.prototype, t, s);
1645
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
1646
+ i !== void 0 && c2(this.prototype, t, i);
912
1647
  }
913
1648
  }
914
- static getPropertyDescriptor(t, e, o) {
915
- const { get: s, set: n } = r5(this.prototype, t) ?? { get() {
1649
+ static getPropertyDescriptor(t, e, s) {
1650
+ const { get: i, set: r } = d2(this.prototype, t) ?? { get() {
916
1651
  return this[e];
917
- }, set(r) {
918
- this[e] = r;
1652
+ }, set(n) {
1653
+ this[e] = n;
919
1654
  } };
920
1655
  return { get() {
921
- return s == null ? void 0 : s.call(this);
922
- }, set(r) {
923
- const l = s == null ? void 0 : s.call(this);
924
- n.call(this, r), this.requestUpdate(t, l, o);
1656
+ return i == null ? void 0 : i.call(this);
1657
+ }, set(n) {
1658
+ const a = i == null ? void 0 : i.call(this);
1659
+ r.call(this, n), this.requestUpdate(t, a, s);
925
1660
  }, configurable: !0, enumerable: !0 };
926
1661
  }
927
1662
  static getPropertyOptions(t) {
928
- return this.elementProperties.get(t) ?? _1;
1663
+ return this.elementProperties.get(t) ?? X1;
929
1664
  }
930
1665
  static _$Ei() {
931
- if (this.hasOwnProperty(R("elementProperties"))) return;
932
- const t = l5(this);
1666
+ if (this.hasOwnProperty(I("elementProperties"))) return;
1667
+ const t = v2(this);
933
1668
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
934
1669
  }
935
1670
  static finalize() {
936
- if (this.hasOwnProperty(R("finalized"))) return;
937
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
938
- const e = this.properties, o = [...n5(e), ...C5(e)];
939
- for (const s of o) this.createProperty(s, e[s]);
1671
+ if (this.hasOwnProperty(I("finalized"))) return;
1672
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(I("properties"))) {
1673
+ const e = this.properties, s = [...u2(e), ...p2(e)];
1674
+ for (const i of s) this.createProperty(i, e[i]);
940
1675
  }
941
1676
  const t = this[Symbol.metadata];
942
1677
  if (t !== null) {
943
1678
  const e = litPropertyMetadata.get(t);
944
- if (e !== void 0) for (const [o, s] of e) this.elementProperties.set(o, s);
1679
+ if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
945
1680
  }
946
1681
  this._$Eh = /* @__PURE__ */ new Map();
947
- for (const [e, o] of this.elementProperties) {
948
- const s = this._$Eu(e, o);
949
- s !== void 0 && this._$Eh.set(s, e);
1682
+ for (const [e, s] of this.elementProperties) {
1683
+ const i = this._$Eu(e, s);
1684
+ i !== void 0 && this._$Eh.set(i, e);
950
1685
  }
951
1686
  this.elementStyles = this.finalizeStyles(this.styles);
952
1687
  }
953
1688
  static finalizeStyles(t) {
954
1689
  const e = [];
955
1690
  if (Array.isArray(t)) {
956
- const o = new Set(t.flat(1 / 0).reverse());
957
- for (const s of o) e.unshift(y1(s));
958
- } else t !== void 0 && e.push(y1(t));
1691
+ const s = new Set(t.flat(1 / 0).reverse());
1692
+ for (const i of s) e.unshift(K1(i));
1693
+ } else t !== void 0 && e.push(K1(t));
959
1694
  return e;
960
1695
  }
961
1696
  static _$Eu(t, e) {
962
- const o = e.attribute;
963
- return o === !1 ? void 0 : typeof o == "string" ? o : typeof t == "string" ? t.toLowerCase() : void 0;
1697
+ const s = e.attribute;
1698
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
964
1699
  }
965
1700
  constructor() {
966
1701
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
@@ -979,18 +1714,18 @@ class z extends HTMLElement {
979
1714
  }
980
1715
  _$E_() {
981
1716
  const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
982
- for (const o of e.keys()) this.hasOwnProperty(o) && (t.set(o, this[o]), delete this[o]);
1717
+ for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
983
1718
  t.size > 0 && (this._$Ep = t);
984
1719
  }
985
1720
  createRenderRoot() {
986
1721
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
987
- return o5(t, this.constructor.elementStyles), t;
1722
+ return C2(t, this.constructor.elementStyles), t;
988
1723
  }
989
1724
  connectedCallback() {
990
1725
  var t;
991
1726
  this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
992
- var o;
993
- return (o = e.hostConnected) == null ? void 0 : o.call(e);
1727
+ var s;
1728
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
994
1729
  });
995
1730
  }
996
1731
  enableUpdating(t) {
@@ -998,38 +1733,38 @@ class z extends HTMLElement {
998
1733
  disconnectedCallback() {
999
1734
  var t;
1000
1735
  (t = this._$EO) == null || t.forEach((e) => {
1001
- var o;
1002
- return (o = e.hostDisconnected) == null ? void 0 : o.call(e);
1736
+ var s;
1737
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
1003
1738
  });
1004
1739
  }
1005
- attributeChangedCallback(t, e, o) {
1006
- this._$AK(t, o);
1740
+ attributeChangedCallback(t, e, s) {
1741
+ this._$AK(t, s);
1007
1742
  }
1008
1743
  _$EC(t, e) {
1009
- var o;
1010
- const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
1011
- if (n !== void 0 && s.reflect === !0) {
1012
- const r = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : F).toAttribute(e, s.type);
1013
- this._$Em = t, r == null ? this.removeAttribute(n) : this.setAttribute(n, r), this._$Em = null;
1744
+ var s;
1745
+ const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
1746
+ if (r !== void 0 && i.reflect === !0) {
1747
+ const n = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : n1).toAttribute(e, i.type);
1748
+ this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
1014
1749
  }
1015
1750
  }
1016
1751
  _$AK(t, e) {
1017
- var o;
1018
- const s = this.constructor, n = s._$Eh.get(t);
1019
- if (n !== void 0 && this._$Em !== n) {
1020
- const r = s.getPropertyOptions(n), l = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((o = r.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? r.converter : F;
1021
- this._$Em = n, this[n] = l.fromAttribute(e, r.type), this._$Em = null;
1752
+ var s;
1753
+ const i = this.constructor, r = i._$Eh.get(t);
1754
+ if (r !== void 0 && this._$Em !== r) {
1755
+ const n = i.getPropertyOptions(r), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((s = n.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? n.converter : n1;
1756
+ this._$Em = r, this[r] = a.fromAttribute(e, n.type), this._$Em = null;
1022
1757
  }
1023
1758
  }
1024
- requestUpdate(t, e, o) {
1759
+ requestUpdate(t, e, s) {
1025
1760
  if (t !== void 0) {
1026
- if (o ?? (o = this.constructor.getPropertyOptions(t)), !(o.hasChanged ?? r1)(this[t], e)) return;
1027
- this.P(t, e, o);
1761
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? L1)(this[t], e)) return;
1762
+ this.P(t, e, s);
1028
1763
  }
1029
1764
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
1030
1765
  }
1031
- P(t, e, o) {
1032
- this._$AL.has(t) || this._$AL.set(t, e), o.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
1766
+ P(t, e, s) {
1767
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
1033
1768
  }
1034
1769
  async _$ET() {
1035
1770
  this.isUpdatePending = !0;
@@ -1049,31 +1784,31 @@ class z extends HTMLElement {
1049
1784
  if (!this.isUpdatePending) return;
1050
1785
  if (!this.hasUpdated) {
1051
1786
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
1052
- for (const [n, r] of this._$Ep) this[n] = r;
1787
+ for (const [r, n] of this._$Ep) this[r] = n;
1053
1788
  this._$Ep = void 0;
1054
1789
  }
1055
- const s = this.constructor.elementProperties;
1056
- if (s.size > 0) for (const [n, r] of s) r.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], r);
1790
+ const i = this.constructor.elementProperties;
1791
+ if (i.size > 0) for (const [r, n] of i) n.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], n);
1057
1792
  }
1058
1793
  let e = !1;
1059
- const o = this._$AL;
1794
+ const s = this._$AL;
1060
1795
  try {
1061
- e = this.shouldUpdate(o), e ? (this.willUpdate(o), (t = this._$EO) == null || t.forEach((s) => {
1062
- var n;
1063
- return (n = s.hostUpdate) == null ? void 0 : n.call(s);
1064
- }), this.update(o)) : this._$EU();
1065
- } catch (s) {
1066
- throw e = !1, this._$EU(), s;
1796
+ e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((i) => {
1797
+ var r;
1798
+ return (r = i.hostUpdate) == null ? void 0 : r.call(i);
1799
+ }), this.update(s)) : this._$EU();
1800
+ } catch (i) {
1801
+ throw e = !1, this._$EU(), i;
1067
1802
  }
1068
- e && this._$AE(o);
1803
+ e && this._$AE(s);
1069
1804
  }
1070
1805
  willUpdate(t) {
1071
1806
  }
1072
1807
  _$AE(t) {
1073
1808
  var e;
1074
- (e = this._$EO) == null || e.forEach((o) => {
1075
- var s;
1076
- return (s = o.hostUpdated) == null ? void 0 : s.call(o);
1809
+ (e = this._$EO) == null || e.forEach((s) => {
1810
+ var i;
1811
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
1077
1812
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
1078
1813
  }
1079
1814
  _$EU() {
@@ -1096,40 +1831,40 @@ class z extends HTMLElement {
1096
1831
  firstUpdated(t) {
1097
1832
  }
1098
1833
  }
1099
- z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, z[R("elementProperties")] = /* @__PURE__ */ new Map(), z[R("finalized")] = /* @__PURE__ */ new Map(), w1 == null || w1({ ReactiveElement: z }), (S.reactiveElementVersions ?? (S.reactiveElementVersions = [])).push("2.0.4");
1834
+ B.elementStyles = [], B.shadowRootOptions = { mode: "open" }, B[I("elementProperties")] = /* @__PURE__ */ new Map(), B[I("finalized")] = /* @__PURE__ */ new Map(), Y1 == null || Y1({ ReactiveElement: B }), (Z.reactiveElementVersions ?? (Z.reactiveElementVersions = [])).push("2.0.4");
1100
1835
  /**
1101
1836
  * @license
1102
1837
  * Copyright 2017 Google LLC
1103
1838
  * SPDX-License-Identifier: BSD-3-Clause
1104
1839
  */
1105
- const c5 = { attribute: !0, type: String, converter: F, reflect: !1, hasChanged: r1 }, h5 = (i = c5, t, e) => {
1106
- const { kind: o, metadata: s } = e;
1107
- let n = globalThis.litPropertyMetadata.get(s);
1108
- if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, i), o === "accessor") {
1109
- const { name: r } = e;
1110
- return { set(l) {
1111
- const C = t.get.call(this);
1112
- t.set.call(this, l), this.requestUpdate(r, C, i);
1113
- }, init(l) {
1114
- return l !== void 0 && this.P(r, void 0, i), l;
1840
+ const f2 = { attribute: !0, type: String, converter: n1, reflect: !1, hasChanged: L1 }, g2 = (o = f2, t, e) => {
1841
+ const { kind: s, metadata: i } = e;
1842
+ let r = globalThis.litPropertyMetadata.get(i);
1843
+ if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(e.name, o), s === "accessor") {
1844
+ const { name: n } = e;
1845
+ return { set(a) {
1846
+ const l = t.get.call(this);
1847
+ t.set.call(this, a), this.requestUpdate(n, l, o);
1848
+ }, init(a) {
1849
+ return a !== void 0 && this.P(n, void 0, o), a;
1115
1850
  } };
1116
1851
  }
1117
- if (o === "setter") {
1118
- const { name: r } = e;
1119
- return function(l) {
1120
- const C = this[r];
1121
- t.call(this, l), this.requestUpdate(r, C, i);
1852
+ if (s === "setter") {
1853
+ const { name: n } = e;
1854
+ return function(a) {
1855
+ const l = this[n];
1856
+ t.call(this, a), this.requestUpdate(n, l, o);
1122
1857
  };
1123
1858
  }
1124
- throw Error("Unsupported decorator location: " + o);
1859
+ throw Error("Unsupported decorator location: " + s);
1125
1860
  };
1126
- function A(i) {
1127
- return (t, e) => typeof e == "object" ? h5(i, t, e) : ((o, s, n) => {
1128
- const r = s.hasOwnProperty(n);
1129
- return s.constructor.createProperty(n, r ? { ...o, wrapped: !0 } : o), r ? Object.getOwnPropertyDescriptor(s, n) : void 0;
1130
- })(i, t, e);
1861
+ function V(o) {
1862
+ return (t, e) => typeof e == "object" ? g2(o, t, e) : ((s, i, r) => {
1863
+ const n = i.hasOwnProperty(r);
1864
+ return i.constructor.createProperty(r, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, r) : void 0;
1865
+ })(o, t, e);
1131
1866
  }
1132
- const d5 = {
1867
+ const w2 = {
1133
1868
  // --------- UX Team Main Library (below) --------- //
1134
1869
  // *** CORE *** //
1135
1870
  account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
@@ -1328,7 +2063,7 @@ const d5 = {
1328
2063
  lock_filled: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="23" viewBox="0 0 18 23" fill="none">
1329
2064
  <path d="M3.30002 22.7751C2.43369 22.7751 1.69211 22.4667 1.07527 21.8498C0.458441 21.2328 0.150024 20.4913 0.150024 19.6251V10.2251C0.150024 9.35893 0.458441 8.61735 1.07527 8.00035C1.69211 7.38351 2.43369 7.0751 3.30002 7.0751H3.62502V5.8001C3.62502 4.28343 4.14586 2.99593 5.18752 1.9376C6.22919 0.879264 7.50002 0.350098 9.00002 0.350098C10.5 0.350098 11.7709 0.879264 12.8125 1.9376C13.8542 2.99593 14.375 4.28343 14.375 5.8001V7.0751H14.7C15.5662 7.0751 16.3078 7.38351 16.9248 8.00035C17.5416 8.61735 17.85 9.35893 17.85 10.2251V19.6251C17.85 20.4913 17.5416 21.2328 16.9248 21.8498C16.3078 22.4667 15.5662 22.7751 14.7 22.7751H3.30002ZM9.00002 16.9251C9.55002 16.9251 10.0209 16.7293 10.4125 16.3376C10.8042 15.9459 11 15.4751 11 14.9251C11 14.3751 10.8042 13.9043 10.4125 13.5126C10.0209 13.1209 9.55002 12.9251 9.00002 12.9251C8.45002 12.9251 7.97919 13.1209 7.58752 13.5126C7.19586 13.9043 7.00002 14.3751 7.00002 14.9251C7.00002 15.4751 7.19586 15.9459 7.58752 16.3376C7.97919 16.7293 8.45002 16.9251 9.00002 16.9251ZM6.77502 7.0751H11.225V5.8001C11.225 5.16126 11.0125 4.61818 10.5875 4.17085C10.1625 3.72368 9.63336 3.5001 9.00002 3.5001C8.36669 3.5001 7.83752 3.72368 7.41252 4.17085C6.98752 4.61818 6.77502 5.16126 6.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
1330
2065
  </svg>`
1331
- }, u5 = b1`
2066
+ }, _2 = a1`
1332
2067
  :host {
1333
2068
  display: inline-block;
1334
2069
  --_nys-icon-size: 0.7em; /* If cap isn't supported, a fallback value of 0.7em is used, as it closely approximates the height of capital letters in most fonts. */
@@ -1425,34 +2160,34 @@ const d5 = {
1425
2160
  transform: scale(-1, -1);
1426
2161
  }
1427
2162
  `;
1428
- var p5 = Object.defineProperty, v5 = Object.getOwnPropertyDescriptor, V = (i, t, e, o) => {
1429
- for (var s = o > 1 ? void 0 : o ? v5(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1430
- (r = i[n]) && (s = (o ? r(t, e, s) : r(s)) || s);
1431
- return o && s && p5(t, e, s), s;
1432
- }, U;
1433
- const H = (U = class extends t1 {
2163
+ var m2 = Object.defineProperty, b2 = Object.getOwnPropertyDescriptor, U = (o, t, e, s) => {
2164
+ for (var i = s > 1 ? void 0 : s ? b2(t, e) : t, r = o.length - 1, n; r >= 0; r--)
2165
+ (n = o[r]) && (i = (s ? n(t, e, i) : n(i)) || i);
2166
+ return s && i && m2(t, e, i), i;
2167
+ }, T;
2168
+ const x = (T = class extends F {
1434
2169
  constructor() {
1435
2170
  super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
1436
2171
  }
1437
2172
  get size() {
1438
2173
  return this._size;
1439
2174
  }
1440
- set size(i) {
1441
- this._size = U.VALID_TYPES.includes(
1442
- i
1443
- ) ? i : "sm";
2175
+ set size(o) {
2176
+ this._size = T.VALID_TYPES.includes(
2177
+ o
2178
+ ) ? o : "sm";
1444
2179
  }
1445
2180
  getIcon() {
1446
- const i = d5[this.name], t = !!this.label;
1447
- if (!i) return null;
1448
- const e = new DOMParser().parseFromString(i, "image/svg+xml").documentElement;
2181
+ const o = w2[this.name], t = !!this.label;
2182
+ if (!o) return null;
2183
+ const e = new DOMParser().parseFromString(o, "image/svg+xml").documentElement;
1449
2184
  return e instanceof SVGElement ? (e.setAttribute("role", "img"), e.setAttribute("aria-label", t ? this.label : ""), e.setAttribute("aria-hidden", t ? "false" : "true"), e.style.rotate = `${this.rotate}deg`, e.style.color = this.color || "currentcolor", e.classList.add(`nys-icon--${this.size}`), e.classList.add("nys-icon--svg"), this.flip && e.classList.add(`nys-icon--flip-${this.flip}`), e) : null;
1450
2185
  }
1451
2186
  render() {
1452
- const i = this.getIcon();
1453
- return i ? M`${i}` : null;
2187
+ const o = this.getIcon();
2188
+ return o ? _`${o}` : null;
1454
2189
  }
1455
- }, U.styles = u5, U.VALID_TYPES = [
2190
+ }, T.styles = _2, T.VALID_TYPES = [
1456
2191
  "2xs",
1457
2192
  "xs",
1458
2193
  "sm",
@@ -1468,137 +2203,211 @@ const H = (U = class extends t1 {
1468
2203
  "32",
1469
2204
  "48",
1470
2205
  "64"
1471
- ], U);
1472
- V([
1473
- A({ type: String })
1474
- ], H.prototype, "name", 2);
1475
- V([
1476
- A({ type: String })
1477
- ], H.prototype, "label", 2);
1478
- V([
1479
- A({ type: String })
1480
- ], H.prototype, "rotate", 2);
1481
- V([
1482
- A({ type: String })
1483
- ], H.prototype, "flip", 2);
1484
- V([
1485
- A({ type: String })
1486
- ], H.prototype, "color", 2);
1487
- V([
1488
- A({ reflect: !0 })
1489
- ], H.prototype, "size", 1);
1490
- let g5 = H;
1491
- customElements.get("nys-icon") || customElements.define("nys-icon", g5);
1492
- var y5 = Object.defineProperty, f5 = Object.getOwnPropertyDescriptor, g = (i, t, e, o) => {
1493
- for (var s = o > 1 ? void 0 : o ? f5(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1494
- (r = i[n]) && (s = (o ? r(t, e, s) : r(s)) || s);
1495
- return o && s && y5(t, e, s), s;
2206
+ ], T);
2207
+ U([
2208
+ V({ type: String, reflect: !0 })
2209
+ ], x.prototype, "name", 2);
2210
+ U([
2211
+ V({ type: String })
2212
+ ], x.prototype, "label", 2);
2213
+ U([
2214
+ V({ type: String })
2215
+ ], x.prototype, "rotate", 2);
2216
+ U([
2217
+ V({ type: String })
2218
+ ], x.prototype, "flip", 2);
2219
+ U([
2220
+ V({ type: String })
2221
+ ], x.prototype, "color", 2);
2222
+ U([
2223
+ V({ reflect: !0 })
2224
+ ], x.prototype, "size", 1);
2225
+ let $2 = x;
2226
+ customElements.get("nys-icon") || customElements.define("nys-icon", $2);
2227
+ var E2 = Object.defineProperty, M1 = (o, t, e, s) => {
2228
+ for (var i = void 0, r = o.length - 1, n; r >= 0; r--)
2229
+ (n = o[r]) && (i = n(t, e, i) || i);
2230
+ return i && E2(t, e, i), i;
1496
2231
  };
1497
- let w5 = 0;
1498
- var $;
1499
- const v = ($ = class extends t1 {
2232
+ const y1 = class extends F {
2233
+ // allows use of elementInternals' API
1500
2234
  constructor() {
1501
- super(...arguments), this.id = "", this.name = "", this.required = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.selectedName = null, this.selectedValue = null, this._size = "md";
2235
+ super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
2236
+ }
2237
+ render() {
2238
+ return _`${this.showError ? _`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
2239
+ <nys-icon name="error" size="xl"></nys-icon>
2240
+ ${this._internals.validationMessage || this.errorMessage}
2241
+ </div>` : ""}`;
2242
+ }
2243
+ };
2244
+ y1.styles = n2, y1.formAssociated = !0;
2245
+ let c1 = y1;
2246
+ M1([
2247
+ E1({ type: Boolean })
2248
+ ], c1.prototype, "showError");
2249
+ M1([
2250
+ E1({ type: String })
2251
+ ], c1.prototype, "errorMessage");
2252
+ M1([
2253
+ E1({ type: Boolean, reflect: !0 })
2254
+ ], c1.prototype, "showDivider");
2255
+ customElements.get("nys-errormessage") || customElements.define("nys-errormessage", c1);
2256
+ var S2 = Object.defineProperty, L2 = Object.getOwnPropertyDescriptor, y = (o, t, e, s) => {
2257
+ for (var i = s > 1 ? void 0 : s ? L2(t, e) : t, r = o.length - 1, n; r >= 0; r--)
2258
+ (n = o[r]) && (i = (s ? n(t, e, i) : n(i)) || i);
2259
+ return s && i && S2(t, e, i), i;
2260
+ };
2261
+ let M2 = 0;
2262
+ var w;
2263
+ const v = (w = class extends F {
2264
+ // allows use of elementInternals' API
2265
+ constructor() {
2266
+ super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.selectedValue = null, this._size = "md", this._internals = this.attachInternals();
1502
2267
  }
1503
2268
  get size() {
1504
2269
  return this._size;
1505
2270
  }
1506
2271
  set size(t) {
1507
- this._size = $.VALID_SIZES.includes(
2272
+ this._size = w.VALID_SIZES.includes(
1508
2273
  t
1509
2274
  ) ? t : "md";
1510
2275
  }
1511
2276
  // Generate a unique ID if one is not provided
1512
2277
  connectedCallback() {
1513
- super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${w5++}`), this.addEventListener("change", this._handleRadioButtonChange);
2278
+ super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${M2++}`), this.addEventListener("change", this._handleRadioButtonChange), this.addEventListener("invalid", this._handleInvalid);
1514
2279
  }
1515
2280
  disconnectedCallback() {
1516
- super.disconnectedCallback(), this.removeEventListener("change", this._handleRadioButtonChange);
2281
+ super.disconnectedCallback(), this.removeEventListener("change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
2282
+ }
2283
+ firstUpdated() {
2284
+ this._initializeCheckedRadioValue(), this._setValue(), this.setRadioButtonRequire();
1517
2285
  }
1518
2286
  updated(t) {
1519
- t.has("required") && this.updateRadioButtonsRequire(), t.has("size") && this.updateRadioButtonsSize();
2287
+ (t.has("required") || t.has("selectedValue")) && this._manageRequire(), t.has("size") && this._updateRadioButtonsSize();
1520
2288
  }
1521
- // Updates the "require" attribute of a radiobutton underneath a radiogroup to ensure requirement for all radiobutton under the same name/group
1522
- updateRadioButtonsRequire() {
1523
- this.querySelectorAll("nys-radiobutton").forEach((e, o) => {
1524
- this.required && o === 0 && e.setAttribute("required", "required");
2289
+ // This callback is automatically called when the parent form is reset.
2290
+ formResetCallback() {
2291
+ this.querySelectorAll("nys-radiobutton").forEach((e) => {
2292
+ e.formResetUpdate();
1525
2293
  });
1526
2294
  }
2295
+ /********************** Form Integration **********************/
2296
+ _setValue() {
2297
+ this._internals.setFormValue(this.selectedValue);
2298
+ }
2299
+ // Updates the "require" attribute of the first radiobutton underneath a radiogroup to ensure requirement for all radiobutton under the same name/group
2300
+ setRadioButtonRequire() {
2301
+ this.querySelectorAll("nys-radiobutton").forEach((e, s) => {
2302
+ this.required && s === 0 && e.setAttribute("required", "required");
2303
+ });
2304
+ }
2305
+ async _manageRequire() {
2306
+ const t = this.errorMessage || "Please select an option.", e = this.querySelector("nys-radiobutton"), s = e ? await e.getInputElement() : null;
2307
+ this.required && !this.selectedValue ? this._internals.setValidity(
2308
+ { valueMissing: !0 },
2309
+ t,
2310
+ s
2311
+ ) : (this.showError = !1, this._internals.setValidity({}, "", s));
2312
+ }
2313
+ // Need to account for if radiogroup already have a radiobutton checked at initialization
2314
+ _initializeCheckedRadioValue() {
2315
+ const t = this.querySelector("nys-radiobutton[checked]");
2316
+ t && (this.selectedValue = t.getAttribute("value"), this._internals.setFormValue(this.selectedValue));
2317
+ }
2318
+ /********************** Functions **********************/
1527
2319
  // Updates the size of each radiobutton underneath a radiogroup to ensure size standardization
1528
- updateRadioButtonsSize() {
2320
+ _updateRadioButtonsSize() {
1529
2321
  this.querySelectorAll("nys-radiobutton").forEach((e) => {
1530
2322
  e.setAttribute("size", this.size);
1531
2323
  });
1532
2324
  }
1533
- // Keeps radiogroup informed of the name and value of its current selected radiobutton
2325
+ // Keeps radiogroup informed of the name and value of its current selected radiobutton at each change
1534
2326
  _handleRadioButtonChange(t) {
1535
- const e = t, { name: o, value: s } = e.detail;
1536
- this.selectedName = o, this.selectedValue = s, console.log("you have selected:", this.selectedName, this.selectedValue);
2327
+ const e = t, { name: s, value: i } = e.detail;
2328
+ this.name = s, this.selectedValue = i, this._internals.setFormValue(this.selectedValue);
2329
+ }
2330
+ async _handleInvalid(t) {
2331
+ if (t.preventDefault(), this._internals.validity.valueMissing) {
2332
+ this.showError = !0, this._manageRequire();
2333
+ const e = this.querySelector("nys-radiobutton"), s = e ? await e.getInputElement() : null;
2334
+ if (s) {
2335
+ const i = this._internals.form;
2336
+ i ? Array.from(i.elements).find((a) => {
2337
+ if (a.tagName.toLowerCase() === "nys-radiogroup") {
2338
+ if (!a.querySelector("nys-radiobutton").checkValidity())
2339
+ return a;
2340
+ } else
2341
+ return typeof a.checkValidity == "function" && !a.checkValidity();
2342
+ }) === this && s.focus() : s.focus();
2343
+ }
2344
+ }
1537
2345
  }
1538
2346
  render() {
1539
- return M` <div role="radiogroup" class="nys-radiogroup">
1540
- ${this.label && M` <div class="nys-radiobutton__text">
1541
- <div class="nys-radiobutton__requiredwrapper">
1542
- <label for=${this.id} class="nys-radiogroup__label"
1543
- >${this.label}</label
1544
- >
1545
- ${this.required ? M`<label class="nys-radiobutton__required">*</label>` : ""}
1546
- </div>
1547
- <div class="nys-radiogroup__description">
1548
- ${this.description}
1549
- <slot name="description"></slot>
1550
- </div>
1551
- </div>`}
2347
+ return _` <div
2348
+ role="radiogroup"
2349
+ class="nys-radiogroup"
2350
+ aria-required="${this.required ? "true" : "false"}"
2351
+ aria-invalid="${this.showError ? "true" : "false"}"
2352
+ >
2353
+ <nys-label
2354
+ label=${this.label}
2355
+ description=${this.description}
2356
+ flag=${this.required ? "required" : this.optional ? "optional" : ""}
2357
+ >
2358
+ <slot name="description" slot="description">${this.description}</slot>
2359
+ </nys-label>
1552
2360
  <div class="nys-radiogroup__content">
1553
2361
  <slot></slot>
1554
2362
  </div>
1555
- ${this.showError && this.errorMessage ? M`<div class="nys-radiobutton__error">
1556
- <nys-icon name="error" size="xl"></nys-icon>
1557
- ${this.errorMessage}
1558
- </div>` : ""}
2363
+ <nys-errormessage
2364
+ ?showError=${this.showError}
2365
+ errorMessage=${this._internals.validationMessage || this.errorMessage}
2366
+ showDivider
2367
+ ></nys-errormessage>
1559
2368
  </div>`;
1560
2369
  }
1561
- }, $.VALID_SIZES = ["sm", "md"], $.styles = A1, $);
1562
- g([
1563
- u({ type: String })
2370
+ }, w.VALID_SIZES = ["sm", "md"], w.styles = a5, w.formAssociated = !0, w);
2371
+ y([
2372
+ d({ type: String })
1564
2373
  ], v.prototype, "id", 2);
1565
- g([
1566
- u({ type: String })
2374
+ y([
2375
+ d({ type: String, reflect: !0 })
1567
2376
  ], v.prototype, "name", 2);
1568
- g([
1569
- u({ type: Boolean })
2377
+ y([
2378
+ d({ type: Boolean, reflect: !0 })
1570
2379
  ], v.prototype, "required", 2);
1571
- g([
1572
- u({ type: Boolean })
2380
+ y([
2381
+ d({ type: Boolean, reflect: !0 })
2382
+ ], v.prototype, "optional", 2);
2383
+ y([
2384
+ d({ type: Boolean, reflect: !0 })
1573
2385
  ], v.prototype, "showError", 2);
1574
- g([
1575
- u({ type: String })
2386
+ y([
2387
+ d({ type: String })
1576
2388
  ], v.prototype, "errorMessage", 2);
1577
- g([
1578
- u({ type: String })
2389
+ y([
2390
+ d({ type: String })
1579
2391
  ], v.prototype, "label", 2);
1580
- g([
1581
- u({ type: String })
2392
+ y([
2393
+ d({ type: String })
1582
2394
  ], v.prototype, "description", 2);
1583
- g([
1584
- $1()
1585
- ], v.prototype, "selectedName", 2);
1586
- g([
1587
- $1()
2395
+ y([
2396
+ E5()
1588
2397
  ], v.prototype, "selectedValue", 2);
1589
- g([
1590
- u({ reflect: !0 })
2398
+ y([
2399
+ d({ reflect: !0 })
1591
2400
  ], v.prototype, "size", 1);
1592
- let _5 = v;
1593
- customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", _5);
1594
- var b5 = Object.defineProperty, m5 = Object.getOwnPropertyDescriptor, w = (i, t, e, o) => {
1595
- for (var s = o > 1 ? void 0 : o ? m5(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1596
- (r = i[n]) && (s = (o ? r(t, e, s) : r(s)) || s);
1597
- return o && s && b5(t, e, s), s;
2401
+ let x2 = v;
2402
+ customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", x2);
2403
+ var A2 = Object.defineProperty, P2 = Object.getOwnPropertyDescriptor, m = (o, t, e, s) => {
2404
+ for (var i = s > 1 ? void 0 : s ? P2(t, e) : t, r = o.length - 1, n; r >= 0; r--)
2405
+ (n = o[r]) && (i = (s ? n(t, e, i) : n(i)) || i);
2406
+ return s && i && A2(t, e, i), i;
1598
2407
  };
1599
- let $5 = 0;
1600
- var a;
1601
- const y = (a = class extends t1 {
2408
+ let H2 = 0;
2409
+ var C;
2410
+ const f = (C = class extends F {
1602
2411
  constructor() {
1603
2412
  super(...arguments), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this._size = "md";
1604
2413
  }
@@ -1606,20 +2415,39 @@ const y = (a = class extends t1 {
1606
2415
  return this._size;
1607
2416
  }
1608
2417
  set size(t) {
1609
- this._size = a.VALID_SIZES.includes(
2418
+ this._size = C.VALID_SIZES.includes(
1610
2419
  t
1611
2420
  ) ? t : "md";
1612
2421
  }
2422
+ async getInputElement() {
2423
+ var t;
2424
+ return await this.updateComplete, ((t = this.shadowRoot) == null ? void 0 : t.querySelector("input")) || null;
2425
+ }
2426
+ // This callback is automatically called when the parent form is reset.
2427
+ formResetUpdate() {
2428
+ this.checked = !1;
2429
+ }
2430
+ /********************** Lifecycle updates **********************/
1613
2431
  // Generate a unique ID if one is not provided
1614
2432
  connectedCallback() {
1615
- super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${$5++}`), this.checked && (a.buttonGroup[this.name] && (a.buttonGroup[this.name].checked = !1, a.buttonGroup[this.name].requestUpdate()), a.buttonGroup[this.name] = this);
2433
+ super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${H2++}`), this.checked && (C.buttonGroup[this.name] && (C.buttonGroup[this.name].checked = !1, C.buttonGroup[this.name].requestUpdate()), C.buttonGroup[this.name] = this);
1616
2434
  }
1617
2435
  updated(t) {
1618
- t.has("checked") && this.checked && a.buttonGroup[this.name] !== this && (a.buttonGroup[this.name] && (a.buttonGroup[this.name].checked = !1, a.buttonGroup[this.name].requestUpdate()), a.buttonGroup[this.name] = this);
2436
+ t.has("checked") && this.checked && C.buttonGroup[this.name] !== this && (C.buttonGroup[this.name] && (C.buttonGroup[this.name].checked = !1, C.buttonGroup[this.name].requestUpdate()), C.buttonGroup[this.name] = this);
1619
2437
  }
2438
+ /******************** Function ********************/
2439
+ // This helper function is called to perform the element's native validation.
2440
+ checkValidity() {
2441
+ var e;
2442
+ if (this.required && !this.checked)
2443
+ return !1;
2444
+ const t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("input");
2445
+ return t ? t.checkValidity() : !0;
2446
+ }
2447
+ /******************** Event Handlers ********************/
1620
2448
  // Handle radiobutton change event & unselection of other options in group
1621
2449
  _handleChange() {
1622
- this.checked || (a.buttonGroup[this.name] && (a.buttonGroup[this.name].checked = !1, a.buttonGroup[this.name].requestUpdate()), a.buttonGroup[this.name] = this, this.checked = !0, this.dispatchEvent(
2450
+ this.checked || (C.buttonGroup[this.name] && (C.buttonGroup[this.name].checked = !1, C.buttonGroup[this.name].requestUpdate()), C.buttonGroup[this.name] = this, this.checked = !0, this.dispatchEvent(
1623
2451
  new CustomEvent("change", {
1624
2452
  detail: { checked: this.checked, name: this.name, value: this.value },
1625
2453
  bubbles: !0,
@@ -1637,7 +2465,7 @@ const y = (a = class extends t1 {
1637
2465
  }
1638
2466
  // Handle keydown for keyboard accessibility
1639
2467
  _handleKeydown(t) {
1640
- t.code === "Space" && (t.preventDefault(), !this.disabled && !this.checked && (a.buttonGroup[this.name] && (a.buttonGroup[this.name].checked = !1, a.buttonGroup[this.name].requestUpdate()), a.buttonGroup[this.name] = this, this.checked = !0, this.dispatchEvent(
2468
+ t.code === "Space" && (t.preventDefault(), !this.disabled && !this.checked && (C.buttonGroup[this.name] && (C.buttonGroup[this.name].checked = !1, C.buttonGroup[this.name].requestUpdate()), C.buttonGroup[this.name] = this, this.checked = !0, this.dispatchEvent(
1641
2469
  new CustomEvent("change", {
1642
2470
  detail: {
1643
2471
  checked: this.checked,
@@ -1650,13 +2478,13 @@ const y = (a = class extends t1 {
1650
2478
  )));
1651
2479
  }
1652
2480
  render() {
1653
- return M`
2481
+ return _`
1654
2482
  <label class="nys-radiobutton">
1655
2483
  <input
1656
2484
  id="${this.id}"
1657
2485
  class="nys-radiobutton__radio"
1658
2486
  type="radio"
1659
- name="${Q1(this.name ? this.name : void 0)}"
2487
+ name="${V5(this.name ? this.name : void 0)}"
1660
2488
  .checked=${this.checked}
1661
2489
  ?disabled=${this.disabled}
1662
2490
  .value=${this.value}
@@ -1669,51 +2497,49 @@ const y = (a = class extends t1 {
1669
2497
  @blur="${this._handleBlur}"
1670
2498
  @keydown="${this._handleKeydown}"
1671
2499
  />
1672
- ${this.label && M` <div class="nys-radiobutton__text">
1673
- <div class="nys-radiobutton__requiredwrapper">
1674
- <label for=${this.id} class="nys-radiobutton__label"
1675
- >${this.label}</label
1676
- >
1677
- </div>
2500
+ ${this.label && _` <div class="nys-radiobutton__text">
2501
+ <label for=${this.id} class="nys-radiobutton__label"
2502
+ >${this.label}</label
2503
+ >
1678
2504
  <label for=${this.id} class="nys-radiobutton__description">
1679
- ${this.description}
1680
- <slot name="description"></slot>
2505
+ <slot name="description">${this.description}</slot>
1681
2506
  </label>
1682
2507
  </div>`}
1683
2508
  </label>
1684
2509
  `;
1685
2510
  }
1686
- }, a.VALID_SIZES = ["sm", "md"], a.buttonGroup = {}, a.styles = A1, a);
1687
- w([
1688
- u({ type: Boolean })
1689
- ], y.prototype, "checked", 2);
1690
- w([
1691
- u({ type: Boolean })
1692
- ], y.prototype, "disabled", 2);
1693
- w([
1694
- u({ type: Boolean })
1695
- ], y.prototype, "required", 2);
1696
- w([
1697
- u({ type: String })
1698
- ], y.prototype, "label", 2);
1699
- w([
1700
- u({ type: String })
1701
- ], y.prototype, "description", 2);
1702
- w([
1703
- u({ type: String })
1704
- ], y.prototype, "id", 2);
1705
- w([
1706
- u({ type: String })
1707
- ], y.prototype, "name", 2);
1708
- w([
1709
- u({ type: String })
1710
- ], y.prototype, "value", 2);
1711
- w([
1712
- u({ reflect: !0 })
1713
- ], y.prototype, "size", 1);
1714
- let L5 = y;
1715
- customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", L5);
2511
+ }, C.VALID_SIZES = ["sm", "md"], C.buttonGroup = {}, C.styles = a5, C);
2512
+ m([
2513
+ d({ type: Boolean, reflect: !0 })
2514
+ ], f.prototype, "checked", 2);
2515
+ m([
2516
+ d({ type: Boolean, reflect: !0 })
2517
+ ], f.prototype, "disabled", 2);
2518
+ m([
2519
+ d({ type: Boolean, reflect: !0 })
2520
+ ], f.prototype, "required", 2);
2521
+ m([
2522
+ d({ type: String })
2523
+ ], f.prototype, "label", 2);
2524
+ m([
2525
+ d({ type: String })
2526
+ ], f.prototype, "description", 2);
2527
+ m([
2528
+ d({ type: String })
2529
+ ], f.prototype, "id", 2);
2530
+ m([
2531
+ d({ type: String, reflect: !0 })
2532
+ ], f.prototype, "name", 2);
2533
+ m([
2534
+ d({ type: String })
2535
+ ], f.prototype, "value", 2);
2536
+ m([
2537
+ d({ reflect: !0 })
2538
+ ], f.prototype, "size", 1);
2539
+ let Z2 = f;
2540
+ customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", Z2);
1716
2541
  export {
1717
- L5 as NysRadiobutton
2542
+ Z2 as NysRadiobutton,
2543
+ x2 as NysRadiogroup
1718
2544
  };
1719
2545
  //# sourceMappingURL=nys-radiobutton.js.map