@nysds/components 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nysds.es.js +1016 -827
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +228 -102
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-skipnav/src/index.d.ts +1 -0
- package/dist/packages/nys-skipnav/src/nys-skipnav.d.ts +13 -0
- package/dist/packages/nys-skipnav/src/nys-skipnav.styles.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +4 -4
package/dist/nysds.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { css as
|
|
1
|
+
import { css as f, LitElement as v, html as h } from "lit";
|
|
2
2
|
import { property as a, state as x1 } from "lit/decorators.js";
|
|
3
3
|
import { ifDefined as p } from "lit/directives/if-defined.js";
|
|
4
4
|
/*!
|
|
5
|
-
* New York State Design System (v1.1.
|
|
5
|
+
* New York State Design System (v1.1.8)
|
|
6
6
|
* Description: A design system for New York State's digital products.
|
|
7
7
|
* Repository: https://github.com/its-hcd/nysds
|
|
8
8
|
* License: MIT
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const ht = f`
|
|
11
11
|
:host {
|
|
12
12
|
/* Global Alert Styles */
|
|
13
13
|
--_nys-alert-border-width: var(--nys-border-width-lg, 4px);
|
|
@@ -85,6 +85,19 @@ const at = b`
|
|
|
85
85
|
text-align: left;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
p {
|
|
89
|
+
margin: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
::slotted(p) {
|
|
93
|
+
margin-bottom: 0 !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Icon */
|
|
97
|
+
.nys-alert__icon {
|
|
98
|
+
margin-top: -1.5px;
|
|
99
|
+
}
|
|
100
|
+
|
|
88
101
|
/* Links */
|
|
89
102
|
a,
|
|
90
103
|
a:visited {
|
|
@@ -129,18 +142,13 @@ const at = b`
|
|
|
129
142
|
margin: 0;
|
|
130
143
|
}
|
|
131
144
|
|
|
132
|
-
.close-container {
|
|
133
|
-
margin-left: auto;
|
|
134
|
-
margin-top: -5px;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
145
|
/* Centered variant: For no descriptions, we remove the <slot name="text"> via JS logic. In styling, centers the icon for a compact layout. */
|
|
138
146
|
.nys-alert--centered {
|
|
139
147
|
display: flex;
|
|
140
148
|
align-items: center;
|
|
141
149
|
}
|
|
142
150
|
.nys-alert--centered .nys-alert__header {
|
|
143
|
-
margin:
|
|
151
|
+
margin-bottom: -3px; /* Adjusts the header text to be centered */
|
|
144
152
|
}
|
|
145
153
|
.nys-alert--centered div[part="nys-alert__icon"] {
|
|
146
154
|
margin-top: 0;
|
|
@@ -253,18 +261,18 @@ const at = b`
|
|
|
253
261
|
* Copyright 2019 Google LLC
|
|
254
262
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
255
263
|
*/
|
|
256
|
-
const
|
|
257
|
-
let
|
|
264
|
+
const l2 = globalThis, P2 = l2.ShadowRoot && (l2.ShadyCSS === void 0 || l2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, N5 = Symbol(), n5 = /* @__PURE__ */ new WeakMap();
|
|
265
|
+
let dt = class {
|
|
258
266
|
constructor(t, e, s) {
|
|
259
|
-
if (this._$cssResult$ = !0, s !==
|
|
267
|
+
if (this._$cssResult$ = !0, s !== N5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
260
268
|
this.cssText = t, this.t = e;
|
|
261
269
|
}
|
|
262
270
|
get styleSheet() {
|
|
263
271
|
let t = this.o;
|
|
264
272
|
const e = this.t;
|
|
265
|
-
if (
|
|
273
|
+
if (P2 && t === void 0) {
|
|
266
274
|
const s = e !== void 0 && e.length === 1;
|
|
267
|
-
s && (t =
|
|
275
|
+
s && (t = n5.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && n5.set(e, t));
|
|
268
276
|
}
|
|
269
277
|
return t;
|
|
270
278
|
}
|
|
@@ -272,26 +280,26 @@ let lt = class {
|
|
|
272
280
|
return this.cssText;
|
|
273
281
|
}
|
|
274
282
|
};
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
283
|
+
const Ct = (o) => new dt(typeof o == "string" ? o : o + "", void 0, N5), yt = (o, t) => {
|
|
284
|
+
if (P2) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
277
285
|
else for (const e of t) {
|
|
278
|
-
const s = document.createElement("style"), r =
|
|
286
|
+
const s = document.createElement("style"), r = l2.litNonce;
|
|
279
287
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
280
288
|
}
|
|
281
|
-
},
|
|
289
|
+
}, i5 = P2 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
282
290
|
let e = "";
|
|
283
291
|
for (const s of t.cssRules) e += s.cssText;
|
|
284
|
-
return
|
|
292
|
+
return Ct(e);
|
|
285
293
|
})(o) : o;
|
|
286
294
|
/**
|
|
287
295
|
* @license
|
|
288
296
|
* Copyright 2017 Google LLC
|
|
289
297
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
290
298
|
*/
|
|
291
|
-
const { is:
|
|
299
|
+
const { is: ut, defineProperty: pt, getOwnPropertyDescriptor: vt, getOwnPropertyNames: ft, getOwnPropertySymbols: gt, getPrototypeOf: _t } = Object, E1 = globalThis, a5 = E1.trustedTypes, bt = a5 ? a5.emptyScript : "", l5 = E1.reactiveElementPolyfillSupport, W1 = (o, t) => o, y2 = { toAttribute(o, t) {
|
|
292
300
|
switch (t) {
|
|
293
301
|
case Boolean:
|
|
294
|
-
o = o ?
|
|
302
|
+
o = o ? bt : null;
|
|
295
303
|
break;
|
|
296
304
|
case Object:
|
|
297
305
|
case Array:
|
|
@@ -316,8 +324,8 @@ const { is: dt, defineProperty: Ct, getOwnPropertyDescriptor: yt, getOwnProperty
|
|
|
316
324
|
}
|
|
317
325
|
}
|
|
318
326
|
return e;
|
|
319
|
-
} },
|
|
320
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
327
|
+
} }, O2 = (o, t) => !ut(o, t), c5 = { attribute: !0, type: String, converter: y2, reflect: !1, hasChanged: O2 };
|
|
328
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E1.litPropertyMetadata ?? (E1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
321
329
|
let B1 = class extends HTMLElement {
|
|
322
330
|
static addInitializer(t) {
|
|
323
331
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -325,37 +333,37 @@ let B1 = class extends HTMLElement {
|
|
|
325
333
|
static get observedAttributes() {
|
|
326
334
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
327
335
|
}
|
|
328
|
-
static createProperty(t, e =
|
|
336
|
+
static createProperty(t, e = c5) {
|
|
329
337
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
330
338
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
331
|
-
r !== void 0 &&
|
|
339
|
+
r !== void 0 && pt(this.prototype, t, r);
|
|
332
340
|
}
|
|
333
341
|
}
|
|
334
342
|
static getPropertyDescriptor(t, e, s) {
|
|
335
|
-
const { get: r, set:
|
|
343
|
+
const { get: r, set: n } = vt(this.prototype, t) ?? { get() {
|
|
336
344
|
return this[e];
|
|
337
|
-
}, set(
|
|
338
|
-
this[e] =
|
|
345
|
+
}, set(i) {
|
|
346
|
+
this[e] = i;
|
|
339
347
|
} };
|
|
340
348
|
return { get() {
|
|
341
349
|
return r == null ? void 0 : r.call(this);
|
|
342
|
-
}, set(
|
|
350
|
+
}, set(i) {
|
|
343
351
|
const l = r == null ? void 0 : r.call(this);
|
|
344
|
-
|
|
352
|
+
n.call(this, i), this.requestUpdate(t, l, s);
|
|
345
353
|
}, configurable: !0, enumerable: !0 };
|
|
346
354
|
}
|
|
347
355
|
static getPropertyOptions(t) {
|
|
348
|
-
return this.elementProperties.get(t) ??
|
|
356
|
+
return this.elementProperties.get(t) ?? c5;
|
|
349
357
|
}
|
|
350
358
|
static _$Ei() {
|
|
351
359
|
if (this.hasOwnProperty(W1("elementProperties"))) return;
|
|
352
|
-
const t =
|
|
360
|
+
const t = _t(this);
|
|
353
361
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
354
362
|
}
|
|
355
363
|
static finalize() {
|
|
356
364
|
if (this.hasOwnProperty(W1("finalized"))) return;
|
|
357
365
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(W1("properties"))) {
|
|
358
|
-
const e = this.properties, s = [...
|
|
366
|
+
const e = this.properties, s = [...ft(e), ...gt(e)];
|
|
359
367
|
for (const r of s) this.createProperty(r, e[r]);
|
|
360
368
|
}
|
|
361
369
|
const t = this[Symbol.metadata];
|
|
@@ -374,8 +382,8 @@ let B1 = class extends HTMLElement {
|
|
|
374
382
|
const e = [];
|
|
375
383
|
if (Array.isArray(t)) {
|
|
376
384
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
377
|
-
for (const r of s) e.unshift(
|
|
378
|
-
} else t !== void 0 && e.push(
|
|
385
|
+
for (const r of s) e.unshift(i5(r));
|
|
386
|
+
} else t !== void 0 && e.push(i5(t));
|
|
379
387
|
return e;
|
|
380
388
|
}
|
|
381
389
|
static _$Eu(t, e) {
|
|
@@ -404,7 +412,7 @@ let B1 = class extends HTMLElement {
|
|
|
404
412
|
}
|
|
405
413
|
createRenderRoot() {
|
|
406
414
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
407
|
-
return
|
|
415
|
+
return yt(t, this.constructor.elementStyles), t;
|
|
408
416
|
}
|
|
409
417
|
connectedCallback() {
|
|
410
418
|
var t;
|
|
@@ -427,23 +435,23 @@ let B1 = class extends HTMLElement {
|
|
|
427
435
|
}
|
|
428
436
|
_$EC(t, e) {
|
|
429
437
|
var s;
|
|
430
|
-
const r = this.constructor.elementProperties.get(t),
|
|
431
|
-
if (
|
|
432
|
-
const
|
|
433
|
-
this._$Em = t,
|
|
438
|
+
const r = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, r);
|
|
439
|
+
if (n !== void 0 && r.reflect === !0) {
|
|
440
|
+
const i = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : y2).toAttribute(e, r.type);
|
|
441
|
+
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
434
442
|
}
|
|
435
443
|
}
|
|
436
444
|
_$AK(t, e) {
|
|
437
445
|
var s;
|
|
438
|
-
const r = this.constructor,
|
|
439
|
-
if (
|
|
440
|
-
const
|
|
441
|
-
this._$Em =
|
|
446
|
+
const r = this.constructor, n = r._$Eh.get(t);
|
|
447
|
+
if (n !== void 0 && this._$Em !== n) {
|
|
448
|
+
const i = r.getPropertyOptions(n), l = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((s = i.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? i.converter : y2;
|
|
449
|
+
this._$Em = n, this[n] = l.fromAttribute(e, i.type), this._$Em = null;
|
|
442
450
|
}
|
|
443
451
|
}
|
|
444
452
|
requestUpdate(t, e, s) {
|
|
445
453
|
if (t !== void 0) {
|
|
446
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
|
454
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? O2)(this[t], e)) return;
|
|
447
455
|
this.P(t, e, s);
|
|
448
456
|
}
|
|
449
457
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -469,18 +477,18 @@ let B1 = class extends HTMLElement {
|
|
|
469
477
|
if (!this.isUpdatePending) return;
|
|
470
478
|
if (!this.hasUpdated) {
|
|
471
479
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
472
|
-
for (const [
|
|
480
|
+
for (const [n, i] of this._$Ep) this[n] = i;
|
|
473
481
|
this._$Ep = void 0;
|
|
474
482
|
}
|
|
475
483
|
const r = this.constructor.elementProperties;
|
|
476
|
-
if (r.size > 0) for (const [
|
|
484
|
+
if (r.size > 0) for (const [n, i] of r) i.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], i);
|
|
477
485
|
}
|
|
478
486
|
let e = !1;
|
|
479
487
|
const s = this._$AL;
|
|
480
488
|
try {
|
|
481
489
|
e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((r) => {
|
|
482
|
-
var
|
|
483
|
-
return (
|
|
490
|
+
var n;
|
|
491
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
484
492
|
}), this.update(s)) : this._$EU();
|
|
485
493
|
} catch (r) {
|
|
486
494
|
throw e = !1, this._$EU(), r;
|
|
@@ -516,40 +524,40 @@ let B1 = class extends HTMLElement {
|
|
|
516
524
|
firstUpdated(t) {
|
|
517
525
|
}
|
|
518
526
|
};
|
|
519
|
-
B1.elementStyles = [], B1.shadowRootOptions = { mode: "open" }, B1[W1("elementProperties")] = /* @__PURE__ */ new Map(), B1[W1("finalized")] = /* @__PURE__ */ new Map(),
|
|
527
|
+
B1.elementStyles = [], B1.shadowRootOptions = { mode: "open" }, B1[W1("elementProperties")] = /* @__PURE__ */ new Map(), B1[W1("finalized")] = /* @__PURE__ */ new Map(), l5 == null || l5({ ReactiveElement: B1 }), (E1.reactiveElementVersions ?? (E1.reactiveElementVersions = [])).push("2.0.4");
|
|
520
528
|
/**
|
|
521
529
|
* @license
|
|
522
530
|
* Copyright 2017 Google LLC
|
|
523
531
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
524
532
|
*/
|
|
525
|
-
const
|
|
533
|
+
const mt = { attribute: !0, type: String, converter: y2, reflect: !1, hasChanged: O2 }, wt = (o = mt, t, e) => {
|
|
526
534
|
const { kind: s, metadata: r } = e;
|
|
527
|
-
let
|
|
528
|
-
if (
|
|
529
|
-
const { name:
|
|
535
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
|
536
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, o), s === "accessor") {
|
|
537
|
+
const { name: i } = e;
|
|
530
538
|
return { set(l) {
|
|
531
539
|
const c = t.get.call(this);
|
|
532
|
-
t.set.call(this, l), this.requestUpdate(
|
|
540
|
+
t.set.call(this, l), this.requestUpdate(i, c, o);
|
|
533
541
|
}, init(l) {
|
|
534
|
-
return l !== void 0 && this.P(
|
|
542
|
+
return l !== void 0 && this.P(i, void 0, o), l;
|
|
535
543
|
} };
|
|
536
544
|
}
|
|
537
545
|
if (s === "setter") {
|
|
538
|
-
const { name:
|
|
546
|
+
const { name: i } = e;
|
|
539
547
|
return function(l) {
|
|
540
|
-
const c = this[
|
|
541
|
-
t.call(this, l), this.requestUpdate(
|
|
548
|
+
const c = this[i];
|
|
549
|
+
t.call(this, l), this.requestUpdate(i, c, o);
|
|
542
550
|
};
|
|
543
551
|
}
|
|
544
552
|
throw Error("Unsupported decorator location: " + s);
|
|
545
553
|
};
|
|
546
554
|
function P1(o) {
|
|
547
|
-
return (t, e) => typeof e == "object" ?
|
|
548
|
-
const
|
|
549
|
-
return r.constructor.createProperty(
|
|
555
|
+
return (t, e) => typeof e == "object" ? wt(o, t, e) : ((s, r, n) => {
|
|
556
|
+
const i = r.hasOwnProperty(n);
|
|
557
|
+
return r.constructor.createProperty(n, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
|
550
558
|
})(o, t, e);
|
|
551
559
|
}
|
|
552
|
-
const
|
|
560
|
+
const xt = {
|
|
553
561
|
// --------- UX Team Main Library (below) --------- //
|
|
554
562
|
// *** CORE *** //
|
|
555
563
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -745,6 +753,22 @@ const bt = {
|
|
|
745
753
|
<g mask="url(#mask0_12372_409)">
|
|
746
754
|
<path d="M5 19C4.71667 19 4.47917 18.9042 4.2875 18.7125C4.09583 18.5208 4 18.2833 4 18C4 17.7167 4.09583 17.4792 4.2875 17.2875C4.47917 17.0958 4.71667 17 5 17H6V10C6 8.61667 6.41667 7.3875 7.25 6.3125C8.08333 5.2375 9.16667 4.53333 10.5 4.2V3.5C10.5 3.08333 10.6458 2.72917 10.9375 2.4375C11.2292 2.14583 11.5833 2 12 2C12.4167 2 12.7708 2.14583 13.0625 2.4375C13.3542 2.72917 13.5 3.08333 13.5 3.5V4.2C14.8333 4.53333 15.9167 5.2375 16.75 6.3125C17.5833 7.3875 18 8.61667 18 10V17H19C19.2833 17 19.5208 17.0958 19.7125 17.2875C19.9042 17.4792 20 17.7167 20 18C20 18.2833 19.9042 18.5208 19.7125 18.7125C19.5208 18.9042 19.2833 19 19 19H5ZM12 22C11.45 22 10.9792 21.8042 10.5875 21.4125C10.1958 21.0208 10 20.55 10 20H14C14 20.55 13.8042 21.0208 13.4125 21.4125C13.0208 21.8042 12.55 22 12 22ZM8 17H16V10C16 8.9 15.6083 7.95833 14.825 7.175C14.0417 6.39167 13.1 6 12 6C10.9 6 9.95833 6.39167 9.175 7.175C8.39167 7.95833 8 8.9 8 10V17Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
747
755
|
</g>
|
|
756
|
+
</svg>`,
|
|
757
|
+
add: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
758
|
+
<mask id="mask0_14011_362" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
759
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
760
|
+
</mask>
|
|
761
|
+
<g mask="url(#mask0_14011_362)">
|
|
762
|
+
<path d="M11 13H6C5.71667 13 5.47917 12.9042 5.2875 12.7125C5.09583 12.5208 5 12.2833 5 12C5 11.7167 5.09583 11.4792 5.2875 11.2875C5.47917 11.0958 5.71667 11 6 11H11V6C11 5.71667 11.0958 5.47917 11.2875 5.2875C11.4792 5.09583 11.7167 5 12 5C12.2833 5 12.5208 5.09583 12.7125 5.2875C12.9042 5.47917 13 5.71667 13 6V11H18C18.2833 11 18.5208 11.0958 18.7125 11.2875C18.9042 11.4792 19 11.7167 19 12C19 12.2833 18.9042 12.5208 18.7125 12.7125C18.5208 12.9042 18.2833 13 18 13H13V18C13 18.2833 12.9042 18.5208 12.7125 18.7125C12.5208 18.9042 12.2833 19 12 19C11.7167 19 11.4792 18.9042 11.2875 18.7125C11.0958 18.5208 11 18.2833 11 18V13Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
763
|
+
</g>
|
|
764
|
+
</svg>`,
|
|
765
|
+
remove: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
766
|
+
<mask id="mask0_14011_713" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
767
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
768
|
+
</mask>
|
|
769
|
+
<g mask="url(#mask0_14011_713)">
|
|
770
|
+
<path d="M6 13C5.71667 13 5.47917 12.9042 5.2875 12.7125C5.09583 12.5208 5 12.2833 5 12C5 11.7167 5.09583 11.4792 5.2875 11.2875C5.47917 11.0958 5.71667 11 6 11H18C18.2833 11 18.5208 11.0958 18.7125 11.2875C18.9042 11.4792 19 11.7167 19 12C19 12.2833 18.9042 12.5208 18.7125 12.7125C18.5208 12.9042 18.2833 13 18 13H6Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
771
|
+
</g>
|
|
748
772
|
</svg>`,
|
|
749
773
|
// *** Arrows *** //
|
|
750
774
|
arrow_back: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -1033,7 +1057,7 @@ const bt = {
|
|
|
1033
1057
|
<path d="M6.30002 22.7751C5.43369 22.7751 4.69211 22.4667 4.07527 21.8498C3.45844 21.2328 3.15002 20.4913 3.15002 19.6251V10.2251C3.15002 9.35893 3.45844 8.61735 4.07527 8.00035C4.69211 7.38351 5.43369 7.0751 6.30002 7.0751H6.62502V5.8001C6.62502 4.28343 7.14586 2.99593 8.18752 1.9376C9.22919 0.879264 10.5 0.350098 12 0.350098C13.5 0.350098 14.7709 0.879264 15.8125 1.9376C16.8542 2.99593 17.375 4.28343 17.375 5.8001V7.0751H17.7C18.5662 7.0751 19.3078 7.38351 19.9248 8.00035C20.5416 8.61735 20.85 9.35893 20.85 10.2251V19.6251C20.85 20.4913 20.5416 21.2328 19.9248 21.8498C19.3078 22.4667 18.5662 22.7751 17.7 22.7751H6.30002ZM12 16.9251C12.55 16.9251 13.0209 16.7293 13.4125 16.3376C13.8042 15.9459 14 15.4751 14 14.9251C14 14.3751 13.8042 13.9043 13.4125 13.5126C13.0209 13.1209 12.55 12.9251 12 12.9251C11.45 12.9251 10.9792 13.1209 10.5875 13.5126C10.1959 13.9043 10 14.3751 10 14.9251C10 15.4751 10.1959 15.9459 10.5875 16.3376C10.9792 16.7293 11.45 16.9251 12 16.9251ZM9.77502 7.0751H14.225V5.8001C14.225 5.16126 14.0125 4.61818 13.5875 4.17085C13.1625 3.72368 12.6334 3.5001 12 3.5001C11.3667 3.5001 10.8375 3.72368 10.4125 4.17085C9.98752 4.61818 9.77502 5.16126 9.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
1034
1058
|
</g>
|
|
1035
1059
|
</svg>`
|
|
1036
|
-
},
|
|
1060
|
+
}, kt = f`
|
|
1037
1061
|
:host {
|
|
1038
1062
|
display: inline-block;
|
|
1039
1063
|
--_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. */
|
|
@@ -1130,12 +1154,12 @@ const bt = {
|
|
|
1130
1154
|
transform: scale(-1, -1);
|
|
1131
1155
|
}
|
|
1132
1156
|
`;
|
|
1133
|
-
var
|
|
1134
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1135
|
-
(
|
|
1136
|
-
return s && r &&
|
|
1137
|
-
},
|
|
1138
|
-
const k1 = (
|
|
1157
|
+
var $t = Object.defineProperty, St = Object.getOwnPropertyDescriptor, O1 = (o, t, e, s) => {
|
|
1158
|
+
for (var r = s > 1 ? void 0 : s ? St(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
1159
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
1160
|
+
return s && r && $t(t, e, r), r;
|
|
1161
|
+
}, T1;
|
|
1162
|
+
const k1 = (T1 = class extends v {
|
|
1139
1163
|
constructor() {
|
|
1140
1164
|
super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
1141
1165
|
}
|
|
@@ -1143,12 +1167,12 @@ const k1 = (R1 = class extends v {
|
|
|
1143
1167
|
return this._size;
|
|
1144
1168
|
}
|
|
1145
1169
|
set size(o) {
|
|
1146
|
-
this._size =
|
|
1170
|
+
this._size = T1.VALID_TYPES.includes(
|
|
1147
1171
|
o
|
|
1148
1172
|
) ? o : "sm";
|
|
1149
1173
|
}
|
|
1150
1174
|
getIcon() {
|
|
1151
|
-
const o =
|
|
1175
|
+
const o = xt[this.name], t = !!this.label;
|
|
1152
1176
|
if (!o) return null;
|
|
1153
1177
|
const e = new DOMParser().parseFromString(o, "image/svg+xml").documentElement;
|
|
1154
1178
|
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;
|
|
@@ -1157,7 +1181,7 @@ const k1 = (R1 = class extends v {
|
|
|
1157
1181
|
const o = this.getIcon();
|
|
1158
1182
|
return o ? h`${o}` : null;
|
|
1159
1183
|
}
|
|
1160
|
-
},
|
|
1184
|
+
}, T1.styles = kt, T1.VALID_TYPES = [
|
|
1161
1185
|
"2xs",
|
|
1162
1186
|
"xs",
|
|
1163
1187
|
"sm",
|
|
@@ -1173,7 +1197,7 @@ const k1 = (R1 = class extends v {
|
|
|
1173
1197
|
"32",
|
|
1174
1198
|
"48",
|
|
1175
1199
|
"64"
|
|
1176
|
-
],
|
|
1200
|
+
], T1);
|
|
1177
1201
|
O1([
|
|
1178
1202
|
P1({ type: String, reflect: !0 })
|
|
1179
1203
|
], k1.prototype, "name", 2);
|
|
@@ -1192,8 +1216,8 @@ O1([
|
|
|
1192
1216
|
O1([
|
|
1193
1217
|
P1({ reflect: !0 })
|
|
1194
1218
|
], k1.prototype, "size", 1);
|
|
1195
|
-
let
|
|
1196
|
-
customElements.get("nys-icon") || customElements.define("nys-icon",
|
|
1219
|
+
let Lt = k1;
|
|
1220
|
+
customElements.get("nys-icon") || customElements.define("nys-icon", Lt);
|
|
1197
1221
|
/*!
|
|
1198
1222
|
*
|
|
1199
1223
|
* ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
|
|
@@ -1210,18 +1234,18 @@ customElements.get("nys-icon") || customElements.define("nys-icon", kt);
|
|
|
1210
1234
|
* Copyright 2019 Google LLC
|
|
1211
1235
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1212
1236
|
*/
|
|
1213
|
-
const
|
|
1214
|
-
let
|
|
1237
|
+
const c2 = globalThis, I2 = c2.ShadowRoot && (c2.ShadyCSS === void 0 || c2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, j5 = Symbol(), h5 = /* @__PURE__ */ new WeakMap();
|
|
1238
|
+
let Et = class {
|
|
1215
1239
|
constructor(o, t, e) {
|
|
1216
|
-
if (this._$cssResult$ = !0, e !==
|
|
1240
|
+
if (this._$cssResult$ = !0, e !== j5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1217
1241
|
this.cssText = o, this.t = t;
|
|
1218
1242
|
}
|
|
1219
1243
|
get styleSheet() {
|
|
1220
1244
|
let o = this.o;
|
|
1221
1245
|
const t = this.t;
|
|
1222
|
-
if (
|
|
1246
|
+
if (I2 && o === void 0) {
|
|
1223
1247
|
const e = t !== void 0 && t.length === 1;
|
|
1224
|
-
e && (o =
|
|
1248
|
+
e && (o = h5.get(t)), o === void 0 && ((this.o = o = new CSSStyleSheet()).replaceSync(this.cssText), e && h5.set(t, o));
|
|
1225
1249
|
}
|
|
1226
1250
|
return o;
|
|
1227
1251
|
}
|
|
@@ -1229,26 +1253,26 @@ let $t = class {
|
|
|
1229
1253
|
return this.cssText;
|
|
1230
1254
|
}
|
|
1231
1255
|
};
|
|
1232
|
-
const
|
|
1233
|
-
if (
|
|
1256
|
+
const Mt = (o) => new Et(typeof o == "string" ? o : o + "", void 0, j5), Dt = (o, t) => {
|
|
1257
|
+
if (I2) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1234
1258
|
else for (const e of t) {
|
|
1235
|
-
const s = document.createElement("style"), r =
|
|
1259
|
+
const s = document.createElement("style"), r = c2.litNonce;
|
|
1236
1260
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
1237
1261
|
}
|
|
1238
|
-
},
|
|
1262
|
+
}, d5 = I2 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
1239
1263
|
let e = "";
|
|
1240
1264
|
for (const s of t.cssRules) e += s.cssText;
|
|
1241
|
-
return
|
|
1265
|
+
return Mt(e);
|
|
1242
1266
|
})(o) : o;
|
|
1243
1267
|
/**
|
|
1244
1268
|
* @license
|
|
1245
1269
|
* Copyright 2017 Google LLC
|
|
1246
1270
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1247
1271
|
*/
|
|
1248
|
-
const { is:
|
|
1272
|
+
const { is: At, defineProperty: Vt, getOwnPropertyDescriptor: Ht, getOwnPropertyNames: Ut, getOwnPropertySymbols: zt, getPrototypeOf: Zt } = Object, M1 = globalThis, C5 = M1.trustedTypes, Pt = C5 ? C5.emptyScript : "", y5 = M1.reactiveElementPolyfillSupport, Y1 = (o, t) => o, u2 = { toAttribute(o, t) {
|
|
1249
1273
|
switch (t) {
|
|
1250
1274
|
case Boolean:
|
|
1251
|
-
o = o ?
|
|
1275
|
+
o = o ? Pt : null;
|
|
1252
1276
|
break;
|
|
1253
1277
|
case Object:
|
|
1254
1278
|
case Array:
|
|
@@ -1273,46 +1297,46 @@ const { is: Mt, defineProperty: Et, getOwnPropertyDescriptor: Dt, getOwnProperty
|
|
|
1273
1297
|
}
|
|
1274
1298
|
}
|
|
1275
1299
|
return e;
|
|
1276
|
-
} },
|
|
1277
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
1278
|
-
let
|
|
1300
|
+
} }, B2 = (o, t) => !At(o, t), u5 = { attribute: !0, type: String, converter: u2, reflect: !1, hasChanged: B2 };
|
|
1301
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), M1.litPropertyMetadata ?? (M1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1302
|
+
let R1 = class extends HTMLElement {
|
|
1279
1303
|
static addInitializer(t) {
|
|
1280
1304
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
1281
1305
|
}
|
|
1282
1306
|
static get observedAttributes() {
|
|
1283
1307
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1284
1308
|
}
|
|
1285
|
-
static createProperty(t, e =
|
|
1309
|
+
static createProperty(t, e = u5) {
|
|
1286
1310
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
1287
1311
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
1288
|
-
r !== void 0 &&
|
|
1312
|
+
r !== void 0 && Vt(this.prototype, t, r);
|
|
1289
1313
|
}
|
|
1290
1314
|
}
|
|
1291
1315
|
static getPropertyDescriptor(t, e, s) {
|
|
1292
|
-
const { get: r, set:
|
|
1316
|
+
const { get: r, set: n } = Ht(this.prototype, t) ?? { get() {
|
|
1293
1317
|
return this[e];
|
|
1294
|
-
}, set(
|
|
1295
|
-
this[e] =
|
|
1318
|
+
}, set(i) {
|
|
1319
|
+
this[e] = i;
|
|
1296
1320
|
} };
|
|
1297
1321
|
return { get() {
|
|
1298
1322
|
return r == null ? void 0 : r.call(this);
|
|
1299
|
-
}, set(
|
|
1323
|
+
}, set(i) {
|
|
1300
1324
|
const l = r == null ? void 0 : r.call(this);
|
|
1301
|
-
|
|
1325
|
+
n.call(this, i), this.requestUpdate(t, l, s);
|
|
1302
1326
|
}, configurable: !0, enumerable: !0 };
|
|
1303
1327
|
}
|
|
1304
1328
|
static getPropertyOptions(t) {
|
|
1305
|
-
return this.elementProperties.get(t) ??
|
|
1329
|
+
return this.elementProperties.get(t) ?? u5;
|
|
1306
1330
|
}
|
|
1307
1331
|
static _$Ei() {
|
|
1308
1332
|
if (this.hasOwnProperty(Y1("elementProperties"))) return;
|
|
1309
|
-
const t =
|
|
1333
|
+
const t = Zt(this);
|
|
1310
1334
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
1311
1335
|
}
|
|
1312
1336
|
static finalize() {
|
|
1313
1337
|
if (this.hasOwnProperty(Y1("finalized"))) return;
|
|
1314
1338
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Y1("properties"))) {
|
|
1315
|
-
const e = this.properties, s = [...
|
|
1339
|
+
const e = this.properties, s = [...Ut(e), ...zt(e)];
|
|
1316
1340
|
for (const r of s) this.createProperty(r, e[r]);
|
|
1317
1341
|
}
|
|
1318
1342
|
const t = this[Symbol.metadata];
|
|
@@ -1331,8 +1355,8 @@ let T1 = class extends HTMLElement {
|
|
|
1331
1355
|
const e = [];
|
|
1332
1356
|
if (Array.isArray(t)) {
|
|
1333
1357
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
1334
|
-
for (const r of s) e.unshift(
|
|
1335
|
-
} else t !== void 0 && e.push(
|
|
1358
|
+
for (const r of s) e.unshift(d5(r));
|
|
1359
|
+
} else t !== void 0 && e.push(d5(t));
|
|
1336
1360
|
return e;
|
|
1337
1361
|
}
|
|
1338
1362
|
static _$Eu(t, e) {
|
|
@@ -1361,7 +1385,7 @@ let T1 = class extends HTMLElement {
|
|
|
1361
1385
|
}
|
|
1362
1386
|
createRenderRoot() {
|
|
1363
1387
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1364
|
-
return
|
|
1388
|
+
return Dt(t, this.constructor.elementStyles), t;
|
|
1365
1389
|
}
|
|
1366
1390
|
connectedCallback() {
|
|
1367
1391
|
var t;
|
|
@@ -1384,23 +1408,23 @@ let T1 = class extends HTMLElement {
|
|
|
1384
1408
|
}
|
|
1385
1409
|
_$EC(t, e) {
|
|
1386
1410
|
var s;
|
|
1387
|
-
const r = this.constructor.elementProperties.get(t),
|
|
1388
|
-
if (
|
|
1389
|
-
const
|
|
1390
|
-
this._$Em = t,
|
|
1411
|
+
const r = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, r);
|
|
1412
|
+
if (n !== void 0 && r.reflect === !0) {
|
|
1413
|
+
const i = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : u2).toAttribute(e, r.type);
|
|
1414
|
+
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
1391
1415
|
}
|
|
1392
1416
|
}
|
|
1393
1417
|
_$AK(t, e) {
|
|
1394
1418
|
var s;
|
|
1395
|
-
const r = this.constructor,
|
|
1396
|
-
if (
|
|
1397
|
-
const
|
|
1398
|
-
this._$Em =
|
|
1419
|
+
const r = this.constructor, n = r._$Eh.get(t);
|
|
1420
|
+
if (n !== void 0 && this._$Em !== n) {
|
|
1421
|
+
const i = r.getPropertyOptions(n), l = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((s = i.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? i.converter : u2;
|
|
1422
|
+
this._$Em = n, this[n] = l.fromAttribute(e, i.type), this._$Em = null;
|
|
1399
1423
|
}
|
|
1400
1424
|
}
|
|
1401
1425
|
requestUpdate(t, e, s) {
|
|
1402
1426
|
if (t !== void 0) {
|
|
1403
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
|
1427
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? B2)(this[t], e)) return;
|
|
1404
1428
|
this.P(t, e, s);
|
|
1405
1429
|
}
|
|
1406
1430
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -1426,18 +1450,18 @@ let T1 = class extends HTMLElement {
|
|
|
1426
1450
|
if (!this.isUpdatePending) return;
|
|
1427
1451
|
if (!this.hasUpdated) {
|
|
1428
1452
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
1429
|
-
for (const [
|
|
1453
|
+
for (const [n, i] of this._$Ep) this[n] = i;
|
|
1430
1454
|
this._$Ep = void 0;
|
|
1431
1455
|
}
|
|
1432
1456
|
const r = this.constructor.elementProperties;
|
|
1433
|
-
if (r.size > 0) for (const [
|
|
1457
|
+
if (r.size > 0) for (const [n, i] of r) i.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], i);
|
|
1434
1458
|
}
|
|
1435
1459
|
let e = !1;
|
|
1436
1460
|
const s = this._$AL;
|
|
1437
1461
|
try {
|
|
1438
1462
|
e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((r) => {
|
|
1439
|
-
var
|
|
1440
|
-
return (
|
|
1463
|
+
var n;
|
|
1464
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
1441
1465
|
}), this.update(s)) : this._$EU();
|
|
1442
1466
|
} catch (r) {
|
|
1443
1467
|
throw e = !1, this._$EU(), r;
|
|
@@ -1473,40 +1497,40 @@ let T1 = class extends HTMLElement {
|
|
|
1473
1497
|
firstUpdated(t) {
|
|
1474
1498
|
}
|
|
1475
1499
|
};
|
|
1476
|
-
|
|
1500
|
+
R1.elementStyles = [], R1.shadowRootOptions = { mode: "open" }, R1[Y1("elementProperties")] = /* @__PURE__ */ new Map(), R1[Y1("finalized")] = /* @__PURE__ */ new Map(), y5 == null || y5({ ReactiveElement: R1 }), (M1.reactiveElementVersions ?? (M1.reactiveElementVersions = [])).push("2.0.4");
|
|
1477
1501
|
/**
|
|
1478
1502
|
* @license
|
|
1479
1503
|
* Copyright 2017 Google LLC
|
|
1480
1504
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1481
1505
|
*/
|
|
1482
|
-
const
|
|
1506
|
+
const Ot = { attribute: !0, type: String, converter: u2, reflect: !1, hasChanged: B2 }, It = (o = Ot, t, e) => {
|
|
1483
1507
|
const { kind: s, metadata: r } = e;
|
|
1484
|
-
let
|
|
1485
|
-
if (
|
|
1486
|
-
const { name:
|
|
1508
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
|
1509
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, o), s === "accessor") {
|
|
1510
|
+
const { name: i } = e;
|
|
1487
1511
|
return { set(l) {
|
|
1488
1512
|
const c = t.get.call(this);
|
|
1489
|
-
t.set.call(this, l), this.requestUpdate(
|
|
1513
|
+
t.set.call(this, l), this.requestUpdate(i, c, o);
|
|
1490
1514
|
}, init(l) {
|
|
1491
|
-
return l !== void 0 && this.P(
|
|
1515
|
+
return l !== void 0 && this.P(i, void 0, o), l;
|
|
1492
1516
|
} };
|
|
1493
1517
|
}
|
|
1494
1518
|
if (s === "setter") {
|
|
1495
|
-
const { name:
|
|
1519
|
+
const { name: i } = e;
|
|
1496
1520
|
return function(l) {
|
|
1497
|
-
const c = this[
|
|
1498
|
-
t.call(this, l), this.requestUpdate(
|
|
1521
|
+
const c = this[i];
|
|
1522
|
+
t.call(this, l), this.requestUpdate(i, c, o);
|
|
1499
1523
|
};
|
|
1500
1524
|
}
|
|
1501
1525
|
throw Error("Unsupported decorator location: " + s);
|
|
1502
1526
|
};
|
|
1503
1527
|
function D(o) {
|
|
1504
|
-
return (t, e) => typeof e == "object" ?
|
|
1505
|
-
const
|
|
1506
|
-
return r.constructor.createProperty(
|
|
1528
|
+
return (t, e) => typeof e == "object" ? It(o, t, e) : ((s, r, n) => {
|
|
1529
|
+
const i = r.hasOwnProperty(n);
|
|
1530
|
+
return r.constructor.createProperty(n, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
|
1507
1531
|
})(o, t, e);
|
|
1508
1532
|
}
|
|
1509
|
-
const
|
|
1533
|
+
const Bt = f`
|
|
1510
1534
|
:host {
|
|
1511
1535
|
/* Anything that can be overridden should be defined here */
|
|
1512
1536
|
|
|
@@ -1911,55 +1935,55 @@ const Pt = b`
|
|
|
1911
1935
|
* Copyright 2017 Google LLC
|
|
1912
1936
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1913
1937
|
*/
|
|
1914
|
-
const
|
|
1915
|
-
\f\r]`, q1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
1916
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
1917
|
-
function
|
|
1918
|
-
if (!
|
|
1919
|
-
return
|
|
1938
|
+
const p2 = globalThis, v2 = p2.trustedTypes, p5 = v2 ? v2.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, F5 = "$lit$", l1 = `lit$${Math.random().toFixed(9).slice(2)}$`, G5 = "?" + l1, Tt = `<${G5}>`, b1 = document, f2 = () => b1.createComment(""), Q1 = (o) => o === null || typeof o != "object" && typeof o != "function", T2 = Array.isArray, Rt = (o) => T2(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", V2 = `[
|
|
1939
|
+
\f\r]`, q1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v5 = /-->/g, f5 = />/g, p1 = RegExp(`>|${V2}(?:([^\\s"'>=/]+)(${V2}*=${V2}*(?:[^
|
|
1940
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), g5 = /'/g, _5 = /"/g, W5 = /^(?:script|style|textarea|title)$/i, t2 = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), b5 = /* @__PURE__ */ new WeakMap(), g1 = b1.createTreeWalker(b1, 129);
|
|
1941
|
+
function Y5(o, t) {
|
|
1942
|
+
if (!T2(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1943
|
+
return p5 !== void 0 ? p5.createHTML(t) : t;
|
|
1920
1944
|
}
|
|
1921
|
-
const
|
|
1945
|
+
const qt = (o, t) => {
|
|
1922
1946
|
const e = o.length - 1, s = [];
|
|
1923
|
-
let r,
|
|
1947
|
+
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = q1;
|
|
1924
1948
|
for (let l = 0; l < e; l++) {
|
|
1925
1949
|
const c = o[l];
|
|
1926
|
-
let C, y, d = -1,
|
|
1927
|
-
for (;
|
|
1928
|
-
const k =
|
|
1929
|
-
|
|
1950
|
+
let C, y, d = -1, b = 0;
|
|
1951
|
+
for (; b < c.length && (i.lastIndex = b, y = i.exec(c), y !== null); ) b = i.lastIndex, i === q1 ? y[1] === "!--" ? i = v5 : y[1] !== void 0 ? i = f5 : y[2] !== void 0 ? (W5.test(y[2]) && (r = RegExp("</" + y[2], "g")), i = p1) : y[3] !== void 0 && (i = p1) : i === p1 ? y[0] === ">" ? (i = r ?? q1, d = -1) : y[1] === void 0 ? d = -2 : (d = i.lastIndex - y[2].length, C = y[1], i = y[3] === void 0 ? p1 : y[3] === '"' ? _5 : g5) : i === _5 || i === g5 ? i = p1 : i === v5 || i === f5 ? i = q1 : (i = p1, r = void 0);
|
|
1952
|
+
const k = i === p1 && o[l + 1].startsWith("/>") ? " " : "";
|
|
1953
|
+
n += i === q1 ? c + Tt : d >= 0 ? (s.push(C), c.slice(0, d) + F5 + c.slice(d) + l1 + k) : c + l1 + (d === -2 ? l : k);
|
|
1930
1954
|
}
|
|
1931
|
-
return [
|
|
1955
|
+
return [Y5(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
1932
1956
|
};
|
|
1933
|
-
let
|
|
1957
|
+
let U2 = class K5 {
|
|
1934
1958
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
1935
1959
|
let r;
|
|
1936
1960
|
this.parts = [];
|
|
1937
|
-
let
|
|
1938
|
-
const l = t.length - 1, c = this.parts, [C, y] =
|
|
1939
|
-
if (this.el =
|
|
1961
|
+
let n = 0, i = 0;
|
|
1962
|
+
const l = t.length - 1, c = this.parts, [C, y] = qt(t, e);
|
|
1963
|
+
if (this.el = K5.createElement(C, s), g1.currentNode = this.el.content, e === 2 || e === 3) {
|
|
1940
1964
|
const d = this.el.content.firstChild;
|
|
1941
1965
|
d.replaceWith(...d.childNodes);
|
|
1942
1966
|
}
|
|
1943
1967
|
for (; (r = g1.nextNode()) !== null && c.length < l; ) {
|
|
1944
1968
|
if (r.nodeType === 1) {
|
|
1945
|
-
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(
|
|
1946
|
-
const
|
|
1947
|
-
c.push({ type: 1, index:
|
|
1948
|
-
} else d.startsWith(l1) && (c.push({ type: 6, index:
|
|
1949
|
-
if (
|
|
1950
|
-
const d = r.textContent.split(l1),
|
|
1951
|
-
if (
|
|
1952
|
-
r.textContent =
|
|
1953
|
-
for (let k = 0; k <
|
|
1954
|
-
r.append(d[
|
|
1969
|
+
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(F5)) {
|
|
1970
|
+
const b = y[i++], k = r.getAttribute(d).split(l1), J = /([.?@])?(.*)/.exec(b);
|
|
1971
|
+
c.push({ type: 1, index: n, name: J[2], strings: k, ctor: J[1] === "." ? jt : J[1] === "?" ? Ft : J[1] === "@" ? Gt : $2 }), r.removeAttribute(d);
|
|
1972
|
+
} else d.startsWith(l1) && (c.push({ type: 6, index: n }), r.removeAttribute(d));
|
|
1973
|
+
if (W5.test(r.tagName)) {
|
|
1974
|
+
const d = r.textContent.split(l1), b = d.length - 1;
|
|
1975
|
+
if (b > 0) {
|
|
1976
|
+
r.textContent = v2 ? v2.emptyScript : "";
|
|
1977
|
+
for (let k = 0; k < b; k++) r.append(d[k], f2()), g1.nextNode(), c.push({ type: 2, index: ++n });
|
|
1978
|
+
r.append(d[b], f2());
|
|
1955
1979
|
}
|
|
1956
1980
|
}
|
|
1957
|
-
} else if (r.nodeType === 8) if (r.data ===
|
|
1981
|
+
} else if (r.nodeType === 8) if (r.data === G5) c.push({ type: 2, index: n });
|
|
1958
1982
|
else {
|
|
1959
1983
|
let d = -1;
|
|
1960
|
-
for (; (d = r.data.indexOf(l1, d + 1)) !== -1; ) c.push({ type: 7, index:
|
|
1984
|
+
for (; (d = r.data.indexOf(l1, d + 1)) !== -1; ) c.push({ type: 7, index: n }), d += l1.length - 1;
|
|
1961
1985
|
}
|
|
1962
|
-
|
|
1986
|
+
n++;
|
|
1963
1987
|
}
|
|
1964
1988
|
}
|
|
1965
1989
|
static createElement(t, e) {
|
|
@@ -1968,13 +1992,13 @@ let H2 = class W5 {
|
|
|
1968
1992
|
}
|
|
1969
1993
|
};
|
|
1970
1994
|
function D1(o, t, e = o, s) {
|
|
1971
|
-
var r,
|
|
1995
|
+
var r, n;
|
|
1972
1996
|
if (t === t2) return t;
|
|
1973
|
-
let
|
|
1997
|
+
let i = s !== void 0 ? (r = e._$Co) == null ? void 0 : r[s] : e._$Cl;
|
|
1974
1998
|
const l = Q1(t) ? void 0 : t._$litDirective$;
|
|
1975
|
-
return (
|
|
1999
|
+
return (i == null ? void 0 : i.constructor) !== l && ((n = i == null ? void 0 : i._$AO) == null || n.call(i, !1), l === void 0 ? i = void 0 : (i = new l(o), i._$AT(o, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = D1(o, i._$AS(o, t.values), i, s)), t;
|
|
1976
2000
|
}
|
|
1977
|
-
let
|
|
2001
|
+
let Nt = class {
|
|
1978
2002
|
constructor(t, e) {
|
|
1979
2003
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
1980
2004
|
}
|
|
@@ -1987,13 +2011,13 @@ let Rt = class {
|
|
|
1987
2011
|
u(t) {
|
|
1988
2012
|
const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? b1).importNode(e, !0);
|
|
1989
2013
|
g1.currentNode = r;
|
|
1990
|
-
let
|
|
2014
|
+
let n = g1.nextNode(), i = 0, l = 0, c = s[0];
|
|
1991
2015
|
for (; c !== void 0; ) {
|
|
1992
|
-
if (
|
|
2016
|
+
if (i === c.index) {
|
|
1993
2017
|
let C;
|
|
1994
|
-
c.type === 2 ? C = new
|
|
2018
|
+
c.type === 2 ? C = new J5(n, n.nextSibling, this, t) : c.type === 1 ? C = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (C = new Wt(n, this, t)), this._$AV.push(C), c = s[++l];
|
|
1995
2019
|
}
|
|
1996
|
-
|
|
2020
|
+
i !== (c == null ? void 0 : c.index) && (n = g1.nextNode(), i++);
|
|
1997
2021
|
}
|
|
1998
2022
|
return g1.currentNode = b1, r;
|
|
1999
2023
|
}
|
|
@@ -2001,7 +2025,7 @@ let Rt = class {
|
|
|
2001
2025
|
let e = 0;
|
|
2002
2026
|
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++;
|
|
2003
2027
|
}
|
|
2004
|
-
},
|
|
2028
|
+
}, J5 = class X5 {
|
|
2005
2029
|
get _$AU() {
|
|
2006
2030
|
var t;
|
|
2007
2031
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -2021,7 +2045,7 @@ let Rt = class {
|
|
|
2021
2045
|
return this._$AB;
|
|
2022
2046
|
}
|
|
2023
2047
|
_$AI(t, e = this) {
|
|
2024
|
-
t = D1(this, t, e), Q1(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== t2 && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
2048
|
+
t = D1(this, t, e), Q1(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== t2 && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Rt(t) ? this.k(t) : this._(t);
|
|
2025
2049
|
}
|
|
2026
2050
|
O(t) {
|
|
2027
2051
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -2034,22 +2058,22 @@ let Rt = class {
|
|
|
2034
2058
|
}
|
|
2035
2059
|
$(t) {
|
|
2036
2060
|
var e;
|
|
2037
|
-
const { values: s, _$litType$: r } = t,
|
|
2038
|
-
if (((e = this._$AH) == null ? void 0 : e._$AD) ===
|
|
2061
|
+
const { values: s, _$litType$: r } = t, n = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = U2.createElement(Y5(r.h, r.h[0]), this.options)), r);
|
|
2062
|
+
if (((e = this._$AH) == null ? void 0 : e._$AD) === n) this._$AH.p(s);
|
|
2039
2063
|
else {
|
|
2040
|
-
const
|
|
2041
|
-
|
|
2064
|
+
const i = new Nt(n, this), l = i.u(this.options);
|
|
2065
|
+
i.p(s), this.T(l), this._$AH = i;
|
|
2042
2066
|
}
|
|
2043
2067
|
}
|
|
2044
2068
|
_$AC(t) {
|
|
2045
|
-
let e =
|
|
2046
|
-
return e === void 0 &&
|
|
2069
|
+
let e = b5.get(t.strings);
|
|
2070
|
+
return e === void 0 && b5.set(t.strings, e = new U2(t)), e;
|
|
2047
2071
|
}
|
|
2048
2072
|
k(t) {
|
|
2049
|
-
|
|
2073
|
+
T2(this._$AH) || (this._$AH = [], this._$AR());
|
|
2050
2074
|
const e = this._$AH;
|
|
2051
2075
|
let s, r = 0;
|
|
2052
|
-
for (const
|
|
2076
|
+
for (const n of t) r === e.length ? e.push(s = new X5(this.O(f2()), this.O(f2()), this, this.options)) : s = e[r], s._$AI(n), r++;
|
|
2053
2077
|
r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
|
|
2054
2078
|
}
|
|
2055
2079
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -2063,58 +2087,58 @@ let Rt = class {
|
|
|
2063
2087
|
var e;
|
|
2064
2088
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
2065
2089
|
}
|
|
2066
|
-
},
|
|
2090
|
+
}, $2 = class {
|
|
2067
2091
|
get tagName() {
|
|
2068
2092
|
return this.element.tagName;
|
|
2069
2093
|
}
|
|
2070
2094
|
get _$AU() {
|
|
2071
2095
|
return this._$AM._$AU;
|
|
2072
2096
|
}
|
|
2073
|
-
constructor(t, e, s, r,
|
|
2074
|
-
this.type = 1, this._$AH = $, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options =
|
|
2097
|
+
constructor(t, e, s, r, n) {
|
|
2098
|
+
this.type = 1, this._$AH = $, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = $;
|
|
2075
2099
|
}
|
|
2076
2100
|
_$AI(t, e = this, s, r) {
|
|
2077
|
-
const
|
|
2078
|
-
let
|
|
2079
|
-
if (
|
|
2101
|
+
const n = this.strings;
|
|
2102
|
+
let i = !1;
|
|
2103
|
+
if (n === void 0) t = D1(this, t, e, 0), i = !Q1(t) || t !== this._$AH && t !== t2, i && (this._$AH = t);
|
|
2080
2104
|
else {
|
|
2081
2105
|
const l = t;
|
|
2082
2106
|
let c, C;
|
|
2083
|
-
for (t =
|
|
2107
|
+
for (t = n[0], c = 0; c < n.length - 1; c++) C = D1(this, l[s + c], e, c), C === t2 && (C = this._$AH[c]), i || (i = !Q1(C) || C !== this._$AH[c]), C === $ ? t = $ : t !== $ && (t += (C ?? "") + n[c + 1]), this._$AH[c] = C;
|
|
2084
2108
|
}
|
|
2085
|
-
|
|
2109
|
+
i && !r && this.j(t);
|
|
2086
2110
|
}
|
|
2087
2111
|
j(t) {
|
|
2088
2112
|
t === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
2089
2113
|
}
|
|
2090
|
-
},
|
|
2114
|
+
}, jt = class extends $2 {
|
|
2091
2115
|
constructor() {
|
|
2092
2116
|
super(...arguments), this.type = 3;
|
|
2093
2117
|
}
|
|
2094
2118
|
j(t) {
|
|
2095
2119
|
this.element[this.name] = t === $ ? void 0 : t;
|
|
2096
2120
|
}
|
|
2097
|
-
},
|
|
2121
|
+
}, Ft = class extends $2 {
|
|
2098
2122
|
constructor() {
|
|
2099
2123
|
super(...arguments), this.type = 4;
|
|
2100
2124
|
}
|
|
2101
2125
|
j(t) {
|
|
2102
2126
|
this.element.toggleAttribute(this.name, !!t && t !== $);
|
|
2103
2127
|
}
|
|
2104
|
-
},
|
|
2105
|
-
constructor(t, e, s, r,
|
|
2106
|
-
super(t, e, s, r,
|
|
2128
|
+
}, Gt = class extends $2 {
|
|
2129
|
+
constructor(t, e, s, r, n) {
|
|
2130
|
+
super(t, e, s, r, n), this.type = 5;
|
|
2107
2131
|
}
|
|
2108
2132
|
_$AI(t, e = this) {
|
|
2109
2133
|
if ((t = D1(this, t, e, 0) ?? $) === t2) return;
|
|
2110
|
-
const s = this._$AH, r = t === $ && s !== $ || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
2111
|
-
r && this.element.removeEventListener(this.name, this, s),
|
|
2134
|
+
const s = this._$AH, r = t === $ && s !== $ || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== $ && (s === $ || r);
|
|
2135
|
+
r && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
2112
2136
|
}
|
|
2113
2137
|
handleEvent(t) {
|
|
2114
2138
|
var e;
|
|
2115
2139
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
2116
2140
|
}
|
|
2117
|
-
},
|
|
2141
|
+
}, Wt = class {
|
|
2118
2142
|
constructor(t, e, s) {
|
|
2119
2143
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
2120
2144
|
}
|
|
@@ -2125,20 +2149,20 @@ let Rt = class {
|
|
|
2125
2149
|
D1(this, t);
|
|
2126
2150
|
}
|
|
2127
2151
|
};
|
|
2128
|
-
const
|
|
2129
|
-
|
|
2152
|
+
const m5 = p2.litHtmlPolyfillSupport;
|
|
2153
|
+
m5 == null || m5(U2, J5), (p2.litHtmlVersions ?? (p2.litHtmlVersions = [])).push("3.2.1");
|
|
2130
2154
|
/**
|
|
2131
2155
|
* @license
|
|
2132
2156
|
* Copyright 2018 Google LLC
|
|
2133
2157
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2134
2158
|
*/
|
|
2135
2159
|
const i1 = (o) => o ?? $;
|
|
2136
|
-
var
|
|
2137
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2138
|
-
(
|
|
2139
|
-
return s && r &&
|
|
2160
|
+
var Yt = Object.defineProperty, Kt = Object.getOwnPropertyDescriptor, A = (o, t, e, s) => {
|
|
2161
|
+
for (var r = s > 1 ? void 0 : s ? Kt(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
2162
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
2163
|
+
return s && r && Yt(t, e, r), r;
|
|
2140
2164
|
};
|
|
2141
|
-
let
|
|
2165
|
+
let Jt = 0;
|
|
2142
2166
|
var I;
|
|
2143
2167
|
const L = (I = class extends v {
|
|
2144
2168
|
// allows use of elementInternals' API
|
|
@@ -2183,7 +2207,7 @@ const L = (I = class extends v {
|
|
|
2183
2207
|
}
|
|
2184
2208
|
/******************** Functions ********************/
|
|
2185
2209
|
_generateUniqueId() {
|
|
2186
|
-
return `nys-button-${Date.now()}-${
|
|
2210
|
+
return `nys-button-${Date.now()}-${Jt++}`;
|
|
2187
2211
|
}
|
|
2188
2212
|
_manageFormAction(o) {
|
|
2189
2213
|
typeof this.onClick == "function" && this.onClick(o);
|
|
@@ -2216,7 +2240,7 @@ const L = (I = class extends v {
|
|
|
2216
2240
|
}
|
|
2217
2241
|
// Handle keydown for keyboard accessibility
|
|
2218
2242
|
_handleKeydown(o) {
|
|
2219
|
-
(o.code === "Space" || o.code === "Enter") && (o.preventDefault(), this.disabled || this._manageFormAction(o));
|
|
2243
|
+
(o.code === "Space" || o.code === "Enter" || o.key === " " || o.key === "Enter") && (o.preventDefault(), this.disabled || this._manageFormAction(o));
|
|
2220
2244
|
}
|
|
2221
2245
|
render() {
|
|
2222
2246
|
return h`
|
|
@@ -2283,7 +2307,7 @@ const L = (I = class extends v {
|
|
|
2283
2307
|
"_parent",
|
|
2284
2308
|
"_top",
|
|
2285
2309
|
"framename"
|
|
2286
|
-
], I.styles =
|
|
2310
|
+
], I.styles = Bt, I.formAssociated = !0, I);
|
|
2287
2311
|
A([
|
|
2288
2312
|
D({ type: String })
|
|
2289
2313
|
], L.prototype, "id", 2);
|
|
@@ -2335,18 +2359,18 @@ A([
|
|
|
2335
2359
|
A([
|
|
2336
2360
|
D({ reflect: !0 })
|
|
2337
2361
|
], L.prototype, "target", 1);
|
|
2338
|
-
let
|
|
2339
|
-
customElements.get("nys-button") || customElements.define("nys-button",
|
|
2340
|
-
var
|
|
2341
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2342
|
-
(
|
|
2343
|
-
return s && r &&
|
|
2362
|
+
let Xt = L;
|
|
2363
|
+
customElements.get("nys-button") || customElements.define("nys-button", Xt);
|
|
2364
|
+
var Qt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, Z = (o, t, e, s) => {
|
|
2365
|
+
for (var r = s > 1 ? void 0 : s ? te(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
2366
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
2367
|
+
return s && r && Qt(t, e, r), r;
|
|
2344
2368
|
};
|
|
2345
|
-
let
|
|
2369
|
+
let ee = 0;
|
|
2346
2370
|
var h1;
|
|
2347
2371
|
const z = (h1 = class extends v {
|
|
2348
2372
|
constructor() {
|
|
2349
|
-
super(...arguments), this.id = "", this.heading = "", this.icon = "", this.dismissible = !1, this.duration = 0, this.text = "", this.primaryAction = "", this.secondaryAction = "", this.primaryLabel = "Learn more", this.secondaryLabel = "Dismiss", this._alertClosed = !1, this._slotHasContent = !0, this._type = "
|
|
2373
|
+
super(...arguments), this.id = "", this.heading = "", this.icon = "", this.dismissible = !1, this.duration = 0, this.text = "", this.primaryAction = "", this.secondaryAction = "", this.primaryLabel = "Learn more", this.secondaryLabel = "Dismiss", this._alertClosed = !1, this._slotHasContent = !0, this._type = "base", this._timeoutId = null;
|
|
2350
2374
|
}
|
|
2351
2375
|
get type() {
|
|
2352
2376
|
return this._type;
|
|
@@ -2375,7 +2399,7 @@ const z = (h1 = class extends v {
|
|
|
2375
2399
|
}
|
|
2376
2400
|
/******************** Functions ********************/
|
|
2377
2401
|
_generateUniqueId() {
|
|
2378
|
-
return `nys-alert-${Date.now()}-${
|
|
2402
|
+
return `nys-alert-${Date.now()}-${ee++}`;
|
|
2379
2403
|
}
|
|
2380
2404
|
// Helper function for overriding default icons or checking special naming cases (e.g. type=success)
|
|
2381
2405
|
_getIconName() {
|
|
@@ -2399,8 +2423,8 @@ const z = (h1 = class extends v {
|
|
|
2399
2423
|
if (t) {
|
|
2400
2424
|
const s = t.assignedNodes({ flatten: !0 }).filter(
|
|
2401
2425
|
(r) => {
|
|
2402
|
-
var
|
|
2403
|
-
return r.nodeType === Node.ELEMENT_NODE || r.nodeType === Node.TEXT_NODE && ((
|
|
2426
|
+
var n;
|
|
2427
|
+
return r.nodeType === Node.ELEMENT_NODE || r.nodeType === Node.TEXT_NODE && ((n = r.textContent) == null ? void 0 : n.trim());
|
|
2404
2428
|
}
|
|
2405
2429
|
);
|
|
2406
2430
|
await Promise.resolve(), this._slotHasContent = s.length > 0;
|
|
@@ -2427,7 +2451,7 @@ const z = (h1 = class extends v {
|
|
|
2427
2451
|
></nys-icon>
|
|
2428
2452
|
</div>
|
|
2429
2453
|
<div class="nys-alert__texts">
|
|
2430
|
-
<
|
|
2454
|
+
<p class="nys-alert__header">${this.heading}</p>
|
|
2431
2455
|
${this._slotHasContent ? h`<slot></slot>` : ((r = this.text) == null ? void 0 : r.trim().length) > 0 ? h`<p class="nys-alert__text">${this.text}</p>` : ""}
|
|
2432
2456
|
${this.primaryAction || this.secondaryAction ? h`<div class="nys-alert__actions">
|
|
2433
2457
|
${this.primaryAction ? h`<a
|
|
@@ -2444,30 +2468,22 @@ const z = (h1 = class extends v {
|
|
|
2444
2468
|
</a>` : ""}
|
|
2445
2469
|
</div> ` : ""}
|
|
2446
2470
|
</div>
|
|
2447
|
-
${this.dismissible
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
variant="ghost"
|
|
2460
|
-
prefixIcon="close"
|
|
2461
|
-
size="sm"
|
|
2462
|
-
inverted
|
|
2463
|
-
ariaLabel="close button"
|
|
2464
|
-
@click=${this._closeAlert}
|
|
2465
|
-
></nys-button>
|
|
2466
|
-
</div>` : ""}
|
|
2471
|
+
${this.dismissible ? h` <nys-button
|
|
2472
|
+
id="dismiss-btn"
|
|
2473
|
+
variant="ghost"
|
|
2474
|
+
prefixIcon="close"
|
|
2475
|
+
size="sm"
|
|
2476
|
+
?inverted=${this.type === "emergency"}
|
|
2477
|
+
ariaLabel="close button"
|
|
2478
|
+
@click=${this._closeAlert}
|
|
2479
|
+
@keydown="${(n) => {
|
|
2480
|
+
(n.code === "Enter" || n.code === "Space" || n.key === "Enter" || n.key === " ") && this._closeAlert();
|
|
2481
|
+
}}"
|
|
2482
|
+
></nys-button>` : ""}
|
|
2467
2483
|
</div>`}
|
|
2468
2484
|
`;
|
|
2469
2485
|
}
|
|
2470
|
-
}, h1.styles =
|
|
2486
|
+
}, h1.styles = ht, h1.VALID_TYPES = [
|
|
2471
2487
|
"base",
|
|
2472
2488
|
"info",
|
|
2473
2489
|
"success",
|
|
@@ -2514,9 +2530,9 @@ Z([
|
|
|
2514
2530
|
Z([
|
|
2515
2531
|
a({ reflect: !0 })
|
|
2516
2532
|
], z.prototype, "type", 1);
|
|
2517
|
-
let
|
|
2518
|
-
customElements.get("nys-alert") || customElements.define("nys-alert",
|
|
2519
|
-
const
|
|
2533
|
+
let se = z;
|
|
2534
|
+
customElements.get("nys-alert") || customElements.define("nys-alert", se);
|
|
2535
|
+
const re = f`
|
|
2520
2536
|
:host {
|
|
2521
2537
|
/* Global Avatar Styles */
|
|
2522
2538
|
--_nys-avatar-shape: var(--nys-radius-round, 1776px);
|
|
@@ -2584,12 +2600,12 @@ const te = b`
|
|
|
2584
2600
|
fill: currentColor;
|
|
2585
2601
|
}
|
|
2586
2602
|
`;
|
|
2587
|
-
var
|
|
2588
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2589
|
-
(
|
|
2590
|
-
return s && r &&
|
|
2603
|
+
var oe = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, u1 = (o, t, e, s) => {
|
|
2604
|
+
for (var r = s > 1 ? void 0 : s ? ne(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
2605
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
2606
|
+
return s && r && oe(t, e, r), r;
|
|
2591
2607
|
};
|
|
2592
|
-
let
|
|
2608
|
+
let ie = 0;
|
|
2593
2609
|
var d1;
|
|
2594
2610
|
const r1 = (d1 = class extends v {
|
|
2595
2611
|
constructor() {
|
|
@@ -2607,7 +2623,7 @@ const r1 = (d1 = class extends v {
|
|
|
2607
2623
|
/******************** Functions ********************/
|
|
2608
2624
|
// Generate a unique ID if one is not provided
|
|
2609
2625
|
connectedCallback() {
|
|
2610
|
-
super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${
|
|
2626
|
+
super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${ie++}`);
|
|
2611
2627
|
}
|
|
2612
2628
|
render() {
|
|
2613
2629
|
var t, e, s, r;
|
|
@@ -2654,7 +2670,7 @@ const r1 = (d1 = class extends v {
|
|
|
2654
2670
|
</label>
|
|
2655
2671
|
`;
|
|
2656
2672
|
}
|
|
2657
|
-
}, d1.styles =
|
|
2673
|
+
}, d1.styles = re, d1.VALID_SHAPES = [
|
|
2658
2674
|
"square",
|
|
2659
2675
|
"rounded",
|
|
2660
2676
|
"circle"
|
|
@@ -2683,9 +2699,9 @@ u1([
|
|
|
2683
2699
|
u1([
|
|
2684
2700
|
a({ reflect: !0 })
|
|
2685
2701
|
], r1.prototype, "shape", 1);
|
|
2686
|
-
let
|
|
2687
|
-
customElements.get("nys-avatar") || customElements.define("nys-avatar",
|
|
2688
|
-
const
|
|
2702
|
+
let ae = r1;
|
|
2703
|
+
customElements.get("nys-avatar") || customElements.define("nys-avatar", ae);
|
|
2704
|
+
const le = f`
|
|
2689
2705
|
:host {
|
|
2690
2706
|
/* Anything that can be overridden should be defined here */
|
|
2691
2707
|
|
|
@@ -3085,14 +3101,14 @@ const ne = b`
|
|
|
3085
3101
|
user-select: none;
|
|
3086
3102
|
}
|
|
3087
3103
|
`;
|
|
3088
|
-
var
|
|
3089
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
3090
|
-
(
|
|
3091
|
-
return s && r &&
|
|
3104
|
+
var ce = Object.defineProperty, he = Object.getOwnPropertyDescriptor, V = (o, t, e, s) => {
|
|
3105
|
+
for (var r = s > 1 ? void 0 : s ? he(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
3106
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
3107
|
+
return s && r && ce(t, e, r), r;
|
|
3092
3108
|
};
|
|
3093
|
-
let
|
|
3109
|
+
let de = 0;
|
|
3094
3110
|
var U;
|
|
3095
|
-
const
|
|
3111
|
+
const E = (U = class extends v {
|
|
3096
3112
|
// allows use of elementInternals' API
|
|
3097
3113
|
constructor() {
|
|
3098
3114
|
super(), this.id = "", this.name = "", this._size = "md", this.fullWidth = !1, this._variant = "filled", this.inverted = !1, this.label = "", this.ariaLabel = "", this.prefixIcon = "", this.suffixIcon = "", this.disabled = !1, this.form = "", this.value = "", this._type = "button", this.onClick = () => {
|
|
@@ -3135,7 +3151,7 @@ const M = (U = class extends v {
|
|
|
3135
3151
|
}
|
|
3136
3152
|
/******************** Functions ********************/
|
|
3137
3153
|
_generateUniqueId() {
|
|
3138
|
-
return `nys-button-${Date.now()}-${
|
|
3154
|
+
return `nys-button-${Date.now()}-${de++}`;
|
|
3139
3155
|
}
|
|
3140
3156
|
_manageFormAction(t) {
|
|
3141
3157
|
typeof this.onClick == "function" && this.onClick(t);
|
|
@@ -3168,7 +3184,7 @@ const M = (U = class extends v {
|
|
|
3168
3184
|
}
|
|
3169
3185
|
// Handle keydown for keyboard accessibility
|
|
3170
3186
|
_handleKeydown(t) {
|
|
3171
|
-
(t.code === "Space" || t.code === "Enter") && (t.preventDefault(), this.disabled || this._manageFormAction(t));
|
|
3187
|
+
(t.code === "Space" || t.code === "Enter" || t.key === " " || t.key === "Enter") && (t.preventDefault(), this.disabled || this._manageFormAction(t));
|
|
3172
3188
|
}
|
|
3173
3189
|
render() {
|
|
3174
3190
|
return h`
|
|
@@ -3235,61 +3251,61 @@ const M = (U = class extends v {
|
|
|
3235
3251
|
"_parent",
|
|
3236
3252
|
"_top",
|
|
3237
3253
|
"framename"
|
|
3238
|
-
], U.styles =
|
|
3254
|
+
], U.styles = le, U.formAssociated = !0, U);
|
|
3239
3255
|
V([
|
|
3240
3256
|
a({ type: String })
|
|
3241
|
-
],
|
|
3257
|
+
], E.prototype, "id", 2);
|
|
3242
3258
|
V([
|
|
3243
3259
|
a({ type: String, reflect: !0 })
|
|
3244
|
-
],
|
|
3260
|
+
], E.prototype, "name", 2);
|
|
3245
3261
|
V([
|
|
3246
3262
|
a({ reflect: !0 })
|
|
3247
|
-
],
|
|
3263
|
+
], E.prototype, "size", 1);
|
|
3248
3264
|
V([
|
|
3249
3265
|
a({ type: Boolean, reflect: !0 })
|
|
3250
|
-
],
|
|
3266
|
+
], E.prototype, "fullWidth", 2);
|
|
3251
3267
|
V([
|
|
3252
3268
|
a({ reflect: !0 })
|
|
3253
|
-
],
|
|
3269
|
+
], E.prototype, "variant", 1);
|
|
3254
3270
|
V([
|
|
3255
3271
|
a({ type: Boolean, reflect: !0 })
|
|
3256
|
-
],
|
|
3272
|
+
], E.prototype, "inverted", 2);
|
|
3257
3273
|
V([
|
|
3258
3274
|
a({ type: String })
|
|
3259
|
-
],
|
|
3275
|
+
], E.prototype, "label", 2);
|
|
3260
3276
|
V([
|
|
3261
3277
|
a({ type: String })
|
|
3262
|
-
],
|
|
3278
|
+
], E.prototype, "ariaLabel", 2);
|
|
3263
3279
|
V([
|
|
3264
3280
|
a({ type: String })
|
|
3265
|
-
],
|
|
3281
|
+
], E.prototype, "prefixIcon", 2);
|
|
3266
3282
|
V([
|
|
3267
3283
|
a({ type: String })
|
|
3268
|
-
],
|
|
3284
|
+
], E.prototype, "suffixIcon", 2);
|
|
3269
3285
|
V([
|
|
3270
3286
|
a({ type: Boolean, reflect: !0 })
|
|
3271
|
-
],
|
|
3287
|
+
], E.prototype, "disabled", 2);
|
|
3272
3288
|
V([
|
|
3273
3289
|
a({ type: String })
|
|
3274
|
-
],
|
|
3290
|
+
], E.prototype, "form", 2);
|
|
3275
3291
|
V([
|
|
3276
3292
|
a({ type: String })
|
|
3277
|
-
],
|
|
3293
|
+
], E.prototype, "value", 2);
|
|
3278
3294
|
V([
|
|
3279
3295
|
a({ reflect: !0 })
|
|
3280
|
-
],
|
|
3296
|
+
], E.prototype, "type", 1);
|
|
3281
3297
|
V([
|
|
3282
3298
|
a({ type: Function })
|
|
3283
|
-
],
|
|
3299
|
+
], E.prototype, "onClick", 2);
|
|
3284
3300
|
V([
|
|
3285
3301
|
a({ type: String })
|
|
3286
|
-
],
|
|
3302
|
+
], E.prototype, "href", 2);
|
|
3287
3303
|
V([
|
|
3288
3304
|
a({ reflect: !0 })
|
|
3289
|
-
],
|
|
3290
|
-
let
|
|
3291
|
-
customElements.get("nys-button") || customElements.define("nys-button",
|
|
3292
|
-
const
|
|
3305
|
+
], E.prototype, "target", 1);
|
|
3306
|
+
let Ce = E;
|
|
3307
|
+
customElements.get("nys-button") || customElements.define("nys-button", Ce);
|
|
3308
|
+
const Q5 = f`
|
|
3293
3309
|
:host {
|
|
3294
3310
|
/* Anything that can be overridden should be defined here */
|
|
3295
3311
|
|
|
@@ -3550,10 +3566,10 @@ const J5 = b`
|
|
|
3550
3566
|
* Copyright 2019 Google LLC
|
|
3551
3567
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3552
3568
|
*/
|
|
3553
|
-
const
|
|
3554
|
-
let
|
|
3569
|
+
const h2 = globalThis, R2 = h2.ShadowRoot && (h2.ShadyCSS === void 0 || h2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, tt = Symbol(), w5 = /* @__PURE__ */ new WeakMap();
|
|
3570
|
+
let ye = class {
|
|
3555
3571
|
constructor(t, e, s) {
|
|
3556
|
-
if (this._$cssResult$ = !0, s !==
|
|
3572
|
+
if (this._$cssResult$ = !0, s !== tt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
3557
3573
|
this.cssText = t, this.t = e;
|
|
3558
3574
|
}
|
|
3559
3575
|
get styleSheet() {
|
|
@@ -3561,7 +3577,7 @@ let he = class {
|
|
|
3561
3577
|
const e = this.t;
|
|
3562
3578
|
if (R2 && t === void 0) {
|
|
3563
3579
|
const s = e !== void 0 && e.length === 1;
|
|
3564
|
-
s && (t =
|
|
3580
|
+
s && (t = w5.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && w5.set(e, t));
|
|
3565
3581
|
}
|
|
3566
3582
|
return t;
|
|
3567
3583
|
}
|
|
@@ -3569,26 +3585,26 @@ let he = class {
|
|
|
3569
3585
|
return this.cssText;
|
|
3570
3586
|
}
|
|
3571
3587
|
};
|
|
3572
|
-
const
|
|
3588
|
+
const ue = (o) => new ye(typeof o == "string" ? o : o + "", void 0, tt), pe = (o, t) => {
|
|
3573
3589
|
if (R2) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
3574
3590
|
else for (const e of t) {
|
|
3575
|
-
const s = document.createElement("style"), r =
|
|
3591
|
+
const s = document.createElement("style"), r = h2.litNonce;
|
|
3576
3592
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
3577
3593
|
}
|
|
3578
|
-
},
|
|
3594
|
+
}, x5 = R2 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
3579
3595
|
let e = "";
|
|
3580
3596
|
for (const s of t.cssRules) e += s.cssText;
|
|
3581
|
-
return
|
|
3597
|
+
return ue(e);
|
|
3582
3598
|
})(o) : o;
|
|
3583
3599
|
/**
|
|
3584
3600
|
* @license
|
|
3585
3601
|
* Copyright 2017 Google LLC
|
|
3586
3602
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3587
3603
|
*/
|
|
3588
|
-
const { is:
|
|
3604
|
+
const { is: ve, defineProperty: fe, getOwnPropertyDescriptor: ge, getOwnPropertyNames: _e, getOwnPropertySymbols: be, getPrototypeOf: me } = Object, A1 = globalThis, k5 = A1.trustedTypes, we = k5 ? k5.emptyScript : "", $5 = A1.reactiveElementPolyfillSupport, K1 = (o, t) => o, g2 = { toAttribute(o, t) {
|
|
3589
3605
|
switch (t) {
|
|
3590
3606
|
case Boolean:
|
|
3591
|
-
o = o ?
|
|
3607
|
+
o = o ? we : null;
|
|
3592
3608
|
break;
|
|
3593
3609
|
case Object:
|
|
3594
3610
|
case Array:
|
|
@@ -3613,7 +3629,7 @@ const { is: ye, defineProperty: ue, getOwnPropertyDescriptor: pe, getOwnProperty
|
|
|
3613
3629
|
}
|
|
3614
3630
|
}
|
|
3615
3631
|
return e;
|
|
3616
|
-
} },
|
|
3632
|
+
} }, q2 = (o, t) => !ve(o, t), S5 = { attribute: !0, type: String, converter: g2, reflect: !1, hasChanged: q2 };
|
|
3617
3633
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), A1.litPropertyMetadata ?? (A1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
3618
3634
|
let N1 = class extends HTMLElement {
|
|
3619
3635
|
static addInitializer(t) {
|
|
@@ -3622,37 +3638,37 @@ let N1 = class extends HTMLElement {
|
|
|
3622
3638
|
static get observedAttributes() {
|
|
3623
3639
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
3624
3640
|
}
|
|
3625
|
-
static createProperty(t, e =
|
|
3641
|
+
static createProperty(t, e = S5) {
|
|
3626
3642
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
3627
3643
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
3628
|
-
r !== void 0 &&
|
|
3644
|
+
r !== void 0 && fe(this.prototype, t, r);
|
|
3629
3645
|
}
|
|
3630
3646
|
}
|
|
3631
3647
|
static getPropertyDescriptor(t, e, s) {
|
|
3632
|
-
const { get: r, set:
|
|
3648
|
+
const { get: r, set: n } = ge(this.prototype, t) ?? { get() {
|
|
3633
3649
|
return this[e];
|
|
3634
|
-
}, set(
|
|
3635
|
-
this[e] =
|
|
3650
|
+
}, set(i) {
|
|
3651
|
+
this[e] = i;
|
|
3636
3652
|
} };
|
|
3637
3653
|
return { get() {
|
|
3638
3654
|
return r == null ? void 0 : r.call(this);
|
|
3639
|
-
}, set(
|
|
3655
|
+
}, set(i) {
|
|
3640
3656
|
const l = r == null ? void 0 : r.call(this);
|
|
3641
|
-
|
|
3657
|
+
n.call(this, i), this.requestUpdate(t, l, s);
|
|
3642
3658
|
}, configurable: !0, enumerable: !0 };
|
|
3643
3659
|
}
|
|
3644
3660
|
static getPropertyOptions(t) {
|
|
3645
|
-
return this.elementProperties.get(t) ??
|
|
3661
|
+
return this.elementProperties.get(t) ?? S5;
|
|
3646
3662
|
}
|
|
3647
3663
|
static _$Ei() {
|
|
3648
3664
|
if (this.hasOwnProperty(K1("elementProperties"))) return;
|
|
3649
|
-
const t =
|
|
3665
|
+
const t = me(this);
|
|
3650
3666
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
3651
3667
|
}
|
|
3652
3668
|
static finalize() {
|
|
3653
3669
|
if (this.hasOwnProperty(K1("finalized"))) return;
|
|
3654
3670
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(K1("properties"))) {
|
|
3655
|
-
const e = this.properties, s = [...
|
|
3671
|
+
const e = this.properties, s = [..._e(e), ...be(e)];
|
|
3656
3672
|
for (const r of s) this.createProperty(r, e[r]);
|
|
3657
3673
|
}
|
|
3658
3674
|
const t = this[Symbol.metadata];
|
|
@@ -3671,8 +3687,8 @@ let N1 = class extends HTMLElement {
|
|
|
3671
3687
|
const e = [];
|
|
3672
3688
|
if (Array.isArray(t)) {
|
|
3673
3689
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
3674
|
-
for (const r of s) e.unshift(
|
|
3675
|
-
} else t !== void 0 && e.push(
|
|
3690
|
+
for (const r of s) e.unshift(x5(r));
|
|
3691
|
+
} else t !== void 0 && e.push(x5(t));
|
|
3676
3692
|
return e;
|
|
3677
3693
|
}
|
|
3678
3694
|
static _$Eu(t, e) {
|
|
@@ -3701,7 +3717,7 @@ let N1 = class extends HTMLElement {
|
|
|
3701
3717
|
}
|
|
3702
3718
|
createRenderRoot() {
|
|
3703
3719
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
3704
|
-
return
|
|
3720
|
+
return pe(t, this.constructor.elementStyles), t;
|
|
3705
3721
|
}
|
|
3706
3722
|
connectedCallback() {
|
|
3707
3723
|
var t;
|
|
@@ -3724,23 +3740,23 @@ let N1 = class extends HTMLElement {
|
|
|
3724
3740
|
}
|
|
3725
3741
|
_$EC(t, e) {
|
|
3726
3742
|
var s;
|
|
3727
|
-
const r = this.constructor.elementProperties.get(t),
|
|
3728
|
-
if (
|
|
3729
|
-
const
|
|
3730
|
-
this._$Em = t,
|
|
3743
|
+
const r = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, r);
|
|
3744
|
+
if (n !== void 0 && r.reflect === !0) {
|
|
3745
|
+
const i = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : g2).toAttribute(e, r.type);
|
|
3746
|
+
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
3731
3747
|
}
|
|
3732
3748
|
}
|
|
3733
3749
|
_$AK(t, e) {
|
|
3734
3750
|
var s;
|
|
3735
|
-
const r = this.constructor,
|
|
3736
|
-
if (
|
|
3737
|
-
const
|
|
3738
|
-
this._$Em =
|
|
3751
|
+
const r = this.constructor, n = r._$Eh.get(t);
|
|
3752
|
+
if (n !== void 0 && this._$Em !== n) {
|
|
3753
|
+
const i = r.getPropertyOptions(n), l = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((s = i.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? i.converter : g2;
|
|
3754
|
+
this._$Em = n, this[n] = l.fromAttribute(e, i.type), this._$Em = null;
|
|
3739
3755
|
}
|
|
3740
3756
|
}
|
|
3741
3757
|
requestUpdate(t, e, s) {
|
|
3742
3758
|
if (t !== void 0) {
|
|
3743
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
|
3759
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? q2)(this[t], e)) return;
|
|
3744
3760
|
this.P(t, e, s);
|
|
3745
3761
|
}
|
|
3746
3762
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -3766,18 +3782,18 @@ let N1 = class extends HTMLElement {
|
|
|
3766
3782
|
if (!this.isUpdatePending) return;
|
|
3767
3783
|
if (!this.hasUpdated) {
|
|
3768
3784
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
3769
|
-
for (const [
|
|
3785
|
+
for (const [n, i] of this._$Ep) this[n] = i;
|
|
3770
3786
|
this._$Ep = void 0;
|
|
3771
3787
|
}
|
|
3772
3788
|
const r = this.constructor.elementProperties;
|
|
3773
|
-
if (r.size > 0) for (const [
|
|
3789
|
+
if (r.size > 0) for (const [n, i] of r) i.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], i);
|
|
3774
3790
|
}
|
|
3775
3791
|
let e = !1;
|
|
3776
3792
|
const s = this._$AL;
|
|
3777
3793
|
try {
|
|
3778
3794
|
e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((r) => {
|
|
3779
|
-
var
|
|
3780
|
-
return (
|
|
3795
|
+
var n;
|
|
3796
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
3781
3797
|
}), this.update(s)) : this._$EU();
|
|
3782
3798
|
} catch (r) {
|
|
3783
3799
|
throw e = !1, this._$EU(), r;
|
|
@@ -3813,40 +3829,40 @@ let N1 = class extends HTMLElement {
|
|
|
3813
3829
|
firstUpdated(t) {
|
|
3814
3830
|
}
|
|
3815
3831
|
};
|
|
3816
|
-
N1.elementStyles = [], N1.shadowRootOptions = { mode: "open" }, N1[K1("elementProperties")] = /* @__PURE__ */ new Map(), N1[K1("finalized")] = /* @__PURE__ */ new Map(),
|
|
3832
|
+
N1.elementStyles = [], N1.shadowRootOptions = { mode: "open" }, N1[K1("elementProperties")] = /* @__PURE__ */ new Map(), N1[K1("finalized")] = /* @__PURE__ */ new Map(), $5 == null || $5({ ReactiveElement: N1 }), (A1.reactiveElementVersions ?? (A1.reactiveElementVersions = [])).push("2.0.4");
|
|
3817
3833
|
/**
|
|
3818
3834
|
* @license
|
|
3819
3835
|
* Copyright 2017 Google LLC
|
|
3820
3836
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3821
3837
|
*/
|
|
3822
|
-
const
|
|
3838
|
+
const xe = { attribute: !0, type: String, converter: g2, reflect: !1, hasChanged: q2 }, ke = (o = xe, t, e) => {
|
|
3823
3839
|
const { kind: s, metadata: r } = e;
|
|
3824
|
-
let
|
|
3825
|
-
if (
|
|
3826
|
-
const { name:
|
|
3840
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
|
3841
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, o), s === "accessor") {
|
|
3842
|
+
const { name: i } = e;
|
|
3827
3843
|
return { set(l) {
|
|
3828
3844
|
const c = t.get.call(this);
|
|
3829
|
-
t.set.call(this, l), this.requestUpdate(
|
|
3845
|
+
t.set.call(this, l), this.requestUpdate(i, c, o);
|
|
3830
3846
|
}, init(l) {
|
|
3831
|
-
return l !== void 0 && this.P(
|
|
3847
|
+
return l !== void 0 && this.P(i, void 0, o), l;
|
|
3832
3848
|
} };
|
|
3833
3849
|
}
|
|
3834
3850
|
if (s === "setter") {
|
|
3835
|
-
const { name:
|
|
3851
|
+
const { name: i } = e;
|
|
3836
3852
|
return function(l) {
|
|
3837
|
-
const c = this[
|
|
3838
|
-
t.call(this, l), this.requestUpdate(
|
|
3853
|
+
const c = this[i];
|
|
3854
|
+
t.call(this, l), this.requestUpdate(i, c, o);
|
|
3839
3855
|
};
|
|
3840
3856
|
}
|
|
3841
3857
|
throw Error("Unsupported decorator location: " + s);
|
|
3842
3858
|
};
|
|
3843
|
-
function
|
|
3844
|
-
return (t, e) => typeof e == "object" ?
|
|
3845
|
-
const
|
|
3846
|
-
return r.constructor.createProperty(
|
|
3859
|
+
function S2(o) {
|
|
3860
|
+
return (t, e) => typeof e == "object" ? ke(o, t, e) : ((s, r, n) => {
|
|
3861
|
+
const i = r.hasOwnProperty(n);
|
|
3862
|
+
return r.constructor.createProperty(n, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
|
3847
3863
|
})(o, t, e);
|
|
3848
3864
|
}
|
|
3849
|
-
const
|
|
3865
|
+
const $e = f`
|
|
3850
3866
|
:host {
|
|
3851
3867
|
/* Label Typography */
|
|
3852
3868
|
--_nys-label-font-family: var(
|
|
@@ -3898,11 +3914,13 @@ const we = b`
|
|
|
3898
3914
|
}
|
|
3899
3915
|
|
|
3900
3916
|
.nys-label__label {
|
|
3917
|
+
text-align: left;
|
|
3901
3918
|
font-weight: var(--_nys-label-font-weight);
|
|
3902
3919
|
color: var(--_nys-label-font-color);
|
|
3903
3920
|
}
|
|
3904
3921
|
|
|
3905
3922
|
.nys-label__description {
|
|
3923
|
+
text-align: left;
|
|
3906
3924
|
font-weight: var(--nys-description-font-weight);
|
|
3907
3925
|
font-style: var(--nys-description-font-style);
|
|
3908
3926
|
color: var(--nys-description-font-color);
|
|
@@ -3918,12 +3936,12 @@ const we = b`
|
|
|
3918
3936
|
color: var(--nys-optional-font-color);
|
|
3919
3937
|
}
|
|
3920
3938
|
`;
|
|
3921
|
-
var
|
|
3922
|
-
for (var r = void 0,
|
|
3923
|
-
(
|
|
3924
|
-
return r &&
|
|
3939
|
+
var Se = Object.defineProperty, L2 = (o, t, e, s) => {
|
|
3940
|
+
for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
|
|
3941
|
+
(i = o[n]) && (r = i(t, e, r) || r);
|
|
3942
|
+
return r && Se(t, e, r), r;
|
|
3925
3943
|
};
|
|
3926
|
-
const
|
|
3944
|
+
const et = class extends v {
|
|
3927
3945
|
constructor() {
|
|
3928
3946
|
super(...arguments), this.id = "", this.label = "", this.description = "", this.flag = "";
|
|
3929
3947
|
}
|
|
@@ -3942,21 +3960,21 @@ const Q5 = class extends v {
|
|
|
3942
3960
|
`;
|
|
3943
3961
|
}
|
|
3944
3962
|
};
|
|
3945
|
-
|
|
3946
|
-
let
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
],
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
],
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
],
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
],
|
|
3959
|
-
customElements.get("nys-label") || customElements.define("nys-label",
|
|
3963
|
+
et.styles = $e;
|
|
3964
|
+
let n2 = et;
|
|
3965
|
+
L2([
|
|
3966
|
+
S2({ type: String })
|
|
3967
|
+
], n2.prototype, "id");
|
|
3968
|
+
L2([
|
|
3969
|
+
S2({ type: String })
|
|
3970
|
+
], n2.prototype, "label");
|
|
3971
|
+
L2([
|
|
3972
|
+
S2({ type: String })
|
|
3973
|
+
], n2.prototype, "description");
|
|
3974
|
+
L2([
|
|
3975
|
+
S2({ type: String })
|
|
3976
|
+
], n2.prototype, "flag");
|
|
3977
|
+
customElements.get("nys-label") || customElements.define("nys-label", n2);
|
|
3960
3978
|
/*!
|
|
3961
3979
|
* Error Message
|
|
3962
3980
|
* Part of the New York State Design System
|
|
@@ -3969,18 +3987,18 @@ customElements.get("nys-label") || customElements.define("nys-label", o2);
|
|
|
3969
3987
|
* Copyright 2019 Google LLC
|
|
3970
3988
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3971
3989
|
*/
|
|
3972
|
-
const
|
|
3973
|
-
let
|
|
3990
|
+
const d2 = globalThis, N2 = d2.ShadowRoot && (d2.ShadyCSS === void 0 || d2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, st = Symbol(), L5 = /* @__PURE__ */ new WeakMap();
|
|
3991
|
+
let Le = class {
|
|
3974
3992
|
constructor(t, e, s) {
|
|
3975
|
-
if (this._$cssResult$ = !0, s !==
|
|
3993
|
+
if (this._$cssResult$ = !0, s !== st) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
3976
3994
|
this.cssText = t, this.t = e;
|
|
3977
3995
|
}
|
|
3978
3996
|
get styleSheet() {
|
|
3979
3997
|
let t = this.o;
|
|
3980
3998
|
const e = this.t;
|
|
3981
|
-
if (
|
|
3999
|
+
if (N2 && t === void 0) {
|
|
3982
4000
|
const s = e !== void 0 && e.length === 1;
|
|
3983
|
-
s && (t =
|
|
4001
|
+
s && (t = L5.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && L5.set(e, t));
|
|
3984
4002
|
}
|
|
3985
4003
|
return t;
|
|
3986
4004
|
}
|
|
@@ -3988,26 +4006,26 @@ let ke = class {
|
|
|
3988
4006
|
return this.cssText;
|
|
3989
4007
|
}
|
|
3990
4008
|
};
|
|
3991
|
-
const
|
|
3992
|
-
if (
|
|
4009
|
+
const Ee = (o) => new Le(typeof o == "string" ? o : o + "", void 0, st), Me = (o, t) => {
|
|
4010
|
+
if (N2) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
3993
4011
|
else for (const e of t) {
|
|
3994
|
-
const s = document.createElement("style"), r =
|
|
4012
|
+
const s = document.createElement("style"), r = d2.litNonce;
|
|
3995
4013
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
3996
4014
|
}
|
|
3997
|
-
},
|
|
4015
|
+
}, E5 = N2 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
3998
4016
|
let e = "";
|
|
3999
4017
|
for (const s of t.cssRules) e += s.cssText;
|
|
4000
|
-
return
|
|
4018
|
+
return Ee(e);
|
|
4001
4019
|
})(o) : o;
|
|
4002
4020
|
/**
|
|
4003
4021
|
* @license
|
|
4004
4022
|
* Copyright 2017 Google LLC
|
|
4005
4023
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4006
4024
|
*/
|
|
4007
|
-
const { is:
|
|
4025
|
+
const { is: De, defineProperty: Ae, getOwnPropertyDescriptor: Ve, getOwnPropertyNames: He, getOwnPropertySymbols: Ue, getPrototypeOf: ze } = Object, V1 = globalThis, M5 = V1.trustedTypes, Ze = M5 ? M5.emptyScript : "", D5 = V1.reactiveElementPolyfillSupport, J1 = (o, t) => o, _2 = { toAttribute(o, t) {
|
|
4008
4026
|
switch (t) {
|
|
4009
4027
|
case Boolean:
|
|
4010
|
-
o = o ?
|
|
4028
|
+
o = o ? Ze : null;
|
|
4011
4029
|
break;
|
|
4012
4030
|
case Object:
|
|
4013
4031
|
case Array:
|
|
@@ -4032,7 +4050,7 @@ const { is: Le, defineProperty: Me, getOwnPropertyDescriptor: Ee, getOwnProperty
|
|
|
4032
4050
|
}
|
|
4033
4051
|
}
|
|
4034
4052
|
return e;
|
|
4035
|
-
} },
|
|
4053
|
+
} }, j2 = (o, t) => !De(o, t), A5 = { attribute: !0, type: String, converter: _2, reflect: !1, hasChanged: j2 };
|
|
4036
4054
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), V1.litPropertyMetadata ?? (V1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
4037
4055
|
let j1 = class extends HTMLElement {
|
|
4038
4056
|
static addInitializer(t) {
|
|
@@ -4041,37 +4059,37 @@ let j1 = class extends HTMLElement {
|
|
|
4041
4059
|
static get observedAttributes() {
|
|
4042
4060
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
4043
4061
|
}
|
|
4044
|
-
static createProperty(t, e =
|
|
4062
|
+
static createProperty(t, e = A5) {
|
|
4045
4063
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
4046
4064
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
4047
|
-
r !== void 0 &&
|
|
4065
|
+
r !== void 0 && Ae(this.prototype, t, r);
|
|
4048
4066
|
}
|
|
4049
4067
|
}
|
|
4050
4068
|
static getPropertyDescriptor(t, e, s) {
|
|
4051
|
-
const { get: r, set:
|
|
4069
|
+
const { get: r, set: n } = Ve(this.prototype, t) ?? { get() {
|
|
4052
4070
|
return this[e];
|
|
4053
|
-
}, set(
|
|
4054
|
-
this[e] =
|
|
4071
|
+
}, set(i) {
|
|
4072
|
+
this[e] = i;
|
|
4055
4073
|
} };
|
|
4056
4074
|
return { get() {
|
|
4057
4075
|
return r == null ? void 0 : r.call(this);
|
|
4058
|
-
}, set(
|
|
4076
|
+
}, set(i) {
|
|
4059
4077
|
const l = r == null ? void 0 : r.call(this);
|
|
4060
|
-
|
|
4078
|
+
n.call(this, i), this.requestUpdate(t, l, s);
|
|
4061
4079
|
}, configurable: !0, enumerable: !0 };
|
|
4062
4080
|
}
|
|
4063
4081
|
static getPropertyOptions(t) {
|
|
4064
|
-
return this.elementProperties.get(t) ??
|
|
4082
|
+
return this.elementProperties.get(t) ?? A5;
|
|
4065
4083
|
}
|
|
4066
4084
|
static _$Ei() {
|
|
4067
4085
|
if (this.hasOwnProperty(J1("elementProperties"))) return;
|
|
4068
|
-
const t =
|
|
4086
|
+
const t = ze(this);
|
|
4069
4087
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
4070
4088
|
}
|
|
4071
4089
|
static finalize() {
|
|
4072
4090
|
if (this.hasOwnProperty(J1("finalized"))) return;
|
|
4073
4091
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(J1("properties"))) {
|
|
4074
|
-
const e = this.properties, s = [...
|
|
4092
|
+
const e = this.properties, s = [...He(e), ...Ue(e)];
|
|
4075
4093
|
for (const r of s) this.createProperty(r, e[r]);
|
|
4076
4094
|
}
|
|
4077
4095
|
const t = this[Symbol.metadata];
|
|
@@ -4090,8 +4108,8 @@ let j1 = class extends HTMLElement {
|
|
|
4090
4108
|
const e = [];
|
|
4091
4109
|
if (Array.isArray(t)) {
|
|
4092
4110
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
4093
|
-
for (const r of s) e.unshift(
|
|
4094
|
-
} else t !== void 0 && e.push(
|
|
4111
|
+
for (const r of s) e.unshift(E5(r));
|
|
4112
|
+
} else t !== void 0 && e.push(E5(t));
|
|
4095
4113
|
return e;
|
|
4096
4114
|
}
|
|
4097
4115
|
static _$Eu(t, e) {
|
|
@@ -4120,7 +4138,7 @@ let j1 = class extends HTMLElement {
|
|
|
4120
4138
|
}
|
|
4121
4139
|
createRenderRoot() {
|
|
4122
4140
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
4123
|
-
return
|
|
4141
|
+
return Me(t, this.constructor.elementStyles), t;
|
|
4124
4142
|
}
|
|
4125
4143
|
connectedCallback() {
|
|
4126
4144
|
var t;
|
|
@@ -4143,23 +4161,23 @@ let j1 = class extends HTMLElement {
|
|
|
4143
4161
|
}
|
|
4144
4162
|
_$EC(t, e) {
|
|
4145
4163
|
var s;
|
|
4146
|
-
const r = this.constructor.elementProperties.get(t),
|
|
4147
|
-
if (
|
|
4148
|
-
const
|
|
4149
|
-
this._$Em = t,
|
|
4164
|
+
const r = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, r);
|
|
4165
|
+
if (n !== void 0 && r.reflect === !0) {
|
|
4166
|
+
const i = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : _2).toAttribute(e, r.type);
|
|
4167
|
+
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
4150
4168
|
}
|
|
4151
4169
|
}
|
|
4152
4170
|
_$AK(t, e) {
|
|
4153
4171
|
var s;
|
|
4154
|
-
const r = this.constructor,
|
|
4155
|
-
if (
|
|
4156
|
-
const
|
|
4157
|
-
this._$Em =
|
|
4172
|
+
const r = this.constructor, n = r._$Eh.get(t);
|
|
4173
|
+
if (n !== void 0 && this._$Em !== n) {
|
|
4174
|
+
const i = r.getPropertyOptions(n), l = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((s = i.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? i.converter : _2;
|
|
4175
|
+
this._$Em = n, this[n] = l.fromAttribute(e, i.type), this._$Em = null;
|
|
4158
4176
|
}
|
|
4159
4177
|
}
|
|
4160
4178
|
requestUpdate(t, e, s) {
|
|
4161
4179
|
if (t !== void 0) {
|
|
4162
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
|
4180
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? j2)(this[t], e)) return;
|
|
4163
4181
|
this.P(t, e, s);
|
|
4164
4182
|
}
|
|
4165
4183
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -4185,18 +4203,18 @@ let j1 = class extends HTMLElement {
|
|
|
4185
4203
|
if (!this.isUpdatePending) return;
|
|
4186
4204
|
if (!this.hasUpdated) {
|
|
4187
4205
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
4188
|
-
for (const [
|
|
4206
|
+
for (const [n, i] of this._$Ep) this[n] = i;
|
|
4189
4207
|
this._$Ep = void 0;
|
|
4190
4208
|
}
|
|
4191
4209
|
const r = this.constructor.elementProperties;
|
|
4192
|
-
if (r.size > 0) for (const [
|
|
4210
|
+
if (r.size > 0) for (const [n, i] of r) i.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], i);
|
|
4193
4211
|
}
|
|
4194
4212
|
let e = !1;
|
|
4195
4213
|
const s = this._$AL;
|
|
4196
4214
|
try {
|
|
4197
4215
|
e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((r) => {
|
|
4198
|
-
var
|
|
4199
|
-
return (
|
|
4216
|
+
var n;
|
|
4217
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
4200
4218
|
}), this.update(s)) : this._$EU();
|
|
4201
4219
|
} catch (r) {
|
|
4202
4220
|
throw e = !1, this._$EU(), r;
|
|
@@ -4232,40 +4250,40 @@ let j1 = class extends HTMLElement {
|
|
|
4232
4250
|
firstUpdated(t) {
|
|
4233
4251
|
}
|
|
4234
4252
|
};
|
|
4235
|
-
j1.elementStyles = [], j1.shadowRootOptions = { mode: "open" }, j1[J1("elementProperties")] = /* @__PURE__ */ new Map(), j1[J1("finalized")] = /* @__PURE__ */ new Map(),
|
|
4253
|
+
j1.elementStyles = [], j1.shadowRootOptions = { mode: "open" }, j1[J1("elementProperties")] = /* @__PURE__ */ new Map(), j1[J1("finalized")] = /* @__PURE__ */ new Map(), D5 == null || D5({ ReactiveElement: j1 }), (V1.reactiveElementVersions ?? (V1.reactiveElementVersions = [])).push("2.0.4");
|
|
4236
4254
|
/**
|
|
4237
4255
|
* @license
|
|
4238
4256
|
* Copyright 2017 Google LLC
|
|
4239
4257
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4240
4258
|
*/
|
|
4241
|
-
const
|
|
4259
|
+
const Pe = { attribute: !0, type: String, converter: _2, reflect: !1, hasChanged: j2 }, Oe = (o = Pe, t, e) => {
|
|
4242
4260
|
const { kind: s, metadata: r } = e;
|
|
4243
|
-
let
|
|
4244
|
-
if (
|
|
4245
|
-
const { name:
|
|
4261
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
|
4262
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, o), s === "accessor") {
|
|
4263
|
+
const { name: i } = e;
|
|
4246
4264
|
return { set(l) {
|
|
4247
4265
|
const c = t.get.call(this);
|
|
4248
|
-
t.set.call(this, l), this.requestUpdate(
|
|
4266
|
+
t.set.call(this, l), this.requestUpdate(i, c, o);
|
|
4249
4267
|
}, init(l) {
|
|
4250
|
-
return l !== void 0 && this.P(
|
|
4268
|
+
return l !== void 0 && this.P(i, void 0, o), l;
|
|
4251
4269
|
} };
|
|
4252
4270
|
}
|
|
4253
4271
|
if (s === "setter") {
|
|
4254
|
-
const { name:
|
|
4272
|
+
const { name: i } = e;
|
|
4255
4273
|
return function(l) {
|
|
4256
|
-
const c = this[
|
|
4257
|
-
t.call(this, l), this.requestUpdate(
|
|
4274
|
+
const c = this[i];
|
|
4275
|
+
t.call(this, l), this.requestUpdate(i, c, o);
|
|
4258
4276
|
};
|
|
4259
4277
|
}
|
|
4260
4278
|
throw Error("Unsupported decorator location: " + s);
|
|
4261
4279
|
};
|
|
4262
|
-
function
|
|
4263
|
-
return (t, e) => typeof e == "object" ?
|
|
4264
|
-
const
|
|
4265
|
-
return r.constructor.createProperty(
|
|
4280
|
+
function F2(o) {
|
|
4281
|
+
return (t, e) => typeof e == "object" ? Oe(o, t, e) : ((s, r, n) => {
|
|
4282
|
+
const i = r.hasOwnProperty(n);
|
|
4283
|
+
return r.constructor.createProperty(n, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
|
4266
4284
|
})(o, t, e);
|
|
4267
4285
|
}
|
|
4268
|
-
const
|
|
4286
|
+
const Ie = f`
|
|
4269
4287
|
:host {
|
|
4270
4288
|
--_nys-errormessage-font-family: var(
|
|
4271
4289
|
--nys-font-family-ui,
|
|
@@ -4315,12 +4333,12 @@ const Ze = b`
|
|
|
4315
4333
|
var(--_nys-errormessage-color);
|
|
4316
4334
|
}
|
|
4317
4335
|
`;
|
|
4318
|
-
var
|
|
4319
|
-
for (var r = void 0,
|
|
4320
|
-
(
|
|
4321
|
-
return r &&
|
|
4336
|
+
var Be = Object.defineProperty, G2 = (o, t, e, s) => {
|
|
4337
|
+
for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
|
|
4338
|
+
(i = o[n]) && (r = i(t, e, r) || r);
|
|
4339
|
+
return r && Be(t, e, r), r;
|
|
4322
4340
|
};
|
|
4323
|
-
const
|
|
4341
|
+
const z2 = class extends v {
|
|
4324
4342
|
// allows use of elementInternals' API
|
|
4325
4343
|
constructor() {
|
|
4326
4344
|
super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
|
|
@@ -4332,24 +4350,24 @@ const U2 = class extends v {
|
|
|
4332
4350
|
</div>` : ""}`;
|
|
4333
4351
|
}
|
|
4334
4352
|
};
|
|
4335
|
-
|
|
4336
|
-
let
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
],
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
],
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
],
|
|
4346
|
-
customElements.get("nys-errormessage") || customElements.define("nys-errormessage",
|
|
4347
|
-
var
|
|
4348
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4349
|
-
(
|
|
4350
|
-
return s && r &&
|
|
4353
|
+
z2.styles = Ie, z2.formAssociated = !0;
|
|
4354
|
+
let E2 = z2;
|
|
4355
|
+
G2([
|
|
4356
|
+
F2({ type: Boolean })
|
|
4357
|
+
], E2.prototype, "showError");
|
|
4358
|
+
G2([
|
|
4359
|
+
F2({ type: String })
|
|
4360
|
+
], E2.prototype, "errorMessage");
|
|
4361
|
+
G2([
|
|
4362
|
+
F2({ type: Boolean, reflect: !0 })
|
|
4363
|
+
], E2.prototype, "showDivider");
|
|
4364
|
+
customElements.get("nys-errormessage") || customElements.define("nys-errormessage", E2);
|
|
4365
|
+
var Te = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, o1 = (o, t, e, s) => {
|
|
4366
|
+
for (var r = s > 1 ? void 0 : s ? Re(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
4367
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
4368
|
+
return s && r && Te(t, e, r), r;
|
|
4351
4369
|
};
|
|
4352
|
-
let
|
|
4370
|
+
let qe = 0;
|
|
4353
4371
|
var X;
|
|
4354
4372
|
const G = (X = class extends v {
|
|
4355
4373
|
// allows use of elementInternals' API
|
|
@@ -4366,7 +4384,7 @@ const G = (X = class extends v {
|
|
|
4366
4384
|
}
|
|
4367
4385
|
// Generate a unique ID if one is not provided
|
|
4368
4386
|
connectedCallback() {
|
|
4369
|
-
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${
|
|
4387
|
+
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${qe++}`), this.addEventListener("change", this._handleCheckboxChange), this.addEventListener("invalid", this._handleInvalid);
|
|
4370
4388
|
}
|
|
4371
4389
|
disconnectedCallback() {
|
|
4372
4390
|
super.disconnectedCallback(), this.removeEventListener("change", this._handleCheckboxChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4412,16 +4430,16 @@ const G = (X = class extends v {
|
|
|
4412
4430
|
}
|
|
4413
4431
|
// Similar to how native forms handle multiple same-name fields, we group the selected values into a list for FormData.
|
|
4414
4432
|
_handleCheckboxChange(t) {
|
|
4415
|
-
const e = t, { name: s } = e.detail,
|
|
4416
|
-
this.name = s, this._internals.setFormValue(
|
|
4433
|
+
const e = t, { name: s } = e.detail, n = Array.from(this.querySelectorAll("nys-checkbox")).filter((i) => i.checked).map((i) => i.value);
|
|
4434
|
+
this.name = s, this._internals.setFormValue(n.join(", ")), this._manageCheckboxRequired();
|
|
4417
4435
|
}
|
|
4418
4436
|
// Updates the required attribute of each checkbox in the group
|
|
4419
4437
|
async _manageCheckboxRequired() {
|
|
4420
4438
|
if (this.required) {
|
|
4421
4439
|
const t = this.errorMessage || "Please select at least one option.", e = this.querySelector("nys-checkbox"), s = e ? await e.getInputElement() : null;
|
|
4422
4440
|
let r = !1;
|
|
4423
|
-
this.querySelectorAll("nys-checkbox").forEach((
|
|
4424
|
-
|
|
4441
|
+
this.querySelectorAll("nys-checkbox").forEach((i) => {
|
|
4442
|
+
i.checked && (r = !0);
|
|
4425
4443
|
}), r ? (this._internals.setValidity({}), this.showError = !1) : (this._internals.setValidity(
|
|
4426
4444
|
{ valueMissing: !0 },
|
|
4427
4445
|
t,
|
|
@@ -4459,7 +4477,7 @@ const G = (X = class extends v {
|
|
|
4459
4477
|
></nys-errormessage>
|
|
4460
4478
|
</div>`;
|
|
4461
4479
|
}
|
|
4462
|
-
}, X.VALID_SIZES = ["sm", "md"], X.styles =
|
|
4480
|
+
}, X.VALID_SIZES = ["sm", "md"], X.styles = Q5, X.formAssociated = !0, X);
|
|
4463
4481
|
o1([
|
|
4464
4482
|
a({ type: String })
|
|
4465
4483
|
], G.prototype, "id", 2);
|
|
@@ -4487,14 +4505,14 @@ o1([
|
|
|
4487
4505
|
o1([
|
|
4488
4506
|
a({ reflect: !0 })
|
|
4489
4507
|
], G.prototype, "size", 1);
|
|
4490
|
-
let
|
|
4491
|
-
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup",
|
|
4492
|
-
var
|
|
4493
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4494
|
-
(
|
|
4495
|
-
return s && r &&
|
|
4508
|
+
let Ne = G;
|
|
4509
|
+
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", Ne);
|
|
4510
|
+
var je = Object.defineProperty, Fe = Object.getOwnPropertyDescriptor, B = (o, t, e, s) => {
|
|
4511
|
+
for (var r = s > 1 ? void 0 : s ? Fe(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
4512
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
4513
|
+
return s && r && je(t, e, r), r;
|
|
4496
4514
|
};
|
|
4497
|
-
let
|
|
4515
|
+
let Ge = 0;
|
|
4498
4516
|
var Q;
|
|
4499
4517
|
const P = (Q = class extends v {
|
|
4500
4518
|
// allows use of elementInternals' API
|
|
@@ -4515,7 +4533,7 @@ const P = (Q = class extends v {
|
|
|
4515
4533
|
}
|
|
4516
4534
|
// Generate a unique ID if one is not provided
|
|
4517
4535
|
connectedCallback() {
|
|
4518
|
-
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${
|
|
4536
|
+
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${Ge++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
4519
4537
|
}
|
|
4520
4538
|
disconnectedCallback() {
|
|
4521
4539
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4659,7 +4677,7 @@ const P = (Q = class extends v {
|
|
|
4659
4677
|
</div>
|
|
4660
4678
|
`;
|
|
4661
4679
|
}
|
|
4662
|
-
}, Q.VALID_SIZES = ["sm", "md"], Q.styles =
|
|
4680
|
+
}, Q.VALID_SIZES = ["sm", "md"], Q.styles = Q5, Q.formAssociated = !0, Q);
|
|
4663
4681
|
B([
|
|
4664
4682
|
a({ type: Boolean, reflect: !0 })
|
|
4665
4683
|
], P.prototype, "checked", 2);
|
|
@@ -4696,9 +4714,9 @@ B([
|
|
|
4696
4714
|
B([
|
|
4697
4715
|
a({ reflect: !0 })
|
|
4698
4716
|
], P.prototype, "size", 1);
|
|
4699
|
-
let
|
|
4700
|
-
customElements.get("nys-checkbox") || customElements.define("nys-checkbox",
|
|
4701
|
-
const
|
|
4717
|
+
let We = P;
|
|
4718
|
+
customElements.get("nys-checkbox") || customElements.define("nys-checkbox", We);
|
|
4719
|
+
const Ye = f`
|
|
4702
4720
|
:host {
|
|
4703
4721
|
--_nys-errormessage-font-family: var(
|
|
4704
4722
|
--nys-font-family-ui,
|
|
@@ -4748,12 +4766,12 @@ const Fe = b`
|
|
|
4748
4766
|
var(--_nys-errormessage-color);
|
|
4749
4767
|
}
|
|
4750
4768
|
`;
|
|
4751
|
-
var
|
|
4752
|
-
for (var r = void 0,
|
|
4753
|
-
(
|
|
4754
|
-
return r &&
|
|
4769
|
+
var Ke = Object.defineProperty, W2 = (o, t, e, s) => {
|
|
4770
|
+
for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
|
|
4771
|
+
(i = o[n]) && (r = i(t, e, r) || r);
|
|
4772
|
+
return r && Ke(t, e, r), r;
|
|
4755
4773
|
};
|
|
4756
|
-
const
|
|
4774
|
+
const k2 = class k2 extends v {
|
|
4757
4775
|
// allows use of elementInternals' API
|
|
4758
4776
|
constructor() {
|
|
4759
4777
|
super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
|
|
@@ -4765,19 +4783,19 @@ const x2 = class x2 extends v {
|
|
|
4765
4783
|
</div>` : ""}`;
|
|
4766
4784
|
}
|
|
4767
4785
|
};
|
|
4768
|
-
|
|
4769
|
-
let H1 =
|
|
4770
|
-
|
|
4786
|
+
k2.styles = Ye, k2.formAssociated = !0;
|
|
4787
|
+
let H1 = k2;
|
|
4788
|
+
W2([
|
|
4771
4789
|
a({ type: Boolean })
|
|
4772
4790
|
], H1.prototype, "showError");
|
|
4773
|
-
|
|
4791
|
+
W2([
|
|
4774
4792
|
a({ type: String })
|
|
4775
4793
|
], H1.prototype, "errorMessage");
|
|
4776
|
-
|
|
4794
|
+
W2([
|
|
4777
4795
|
a({ type: Boolean, reflect: !0 })
|
|
4778
4796
|
], H1.prototype, "showDivider");
|
|
4779
4797
|
customElements.get("nys-errormessage") || customElements.define("nys-errormessage", H1);
|
|
4780
|
-
const
|
|
4798
|
+
const Je = {
|
|
4781
4799
|
// --------- UX Team Main Library (below) --------- //
|
|
4782
4800
|
// *** CORE *** //
|
|
4783
4801
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -4973,6 +4991,22 @@ const We = {
|
|
|
4973
4991
|
<g mask="url(#mask0_12372_409)">
|
|
4974
4992
|
<path d="M5 19C4.71667 19 4.47917 18.9042 4.2875 18.7125C4.09583 18.5208 4 18.2833 4 18C4 17.7167 4.09583 17.4792 4.2875 17.2875C4.47917 17.0958 4.71667 17 5 17H6V10C6 8.61667 6.41667 7.3875 7.25 6.3125C8.08333 5.2375 9.16667 4.53333 10.5 4.2V3.5C10.5 3.08333 10.6458 2.72917 10.9375 2.4375C11.2292 2.14583 11.5833 2 12 2C12.4167 2 12.7708 2.14583 13.0625 2.4375C13.3542 2.72917 13.5 3.08333 13.5 3.5V4.2C14.8333 4.53333 15.9167 5.2375 16.75 6.3125C17.5833 7.3875 18 8.61667 18 10V17H19C19.2833 17 19.5208 17.0958 19.7125 17.2875C19.9042 17.4792 20 17.7167 20 18C20 18.2833 19.9042 18.5208 19.7125 18.7125C19.5208 18.9042 19.2833 19 19 19H5ZM12 22C11.45 22 10.9792 21.8042 10.5875 21.4125C10.1958 21.0208 10 20.55 10 20H14C14 20.55 13.8042 21.0208 13.4125 21.4125C13.0208 21.8042 12.55 22 12 22ZM8 17H16V10C16 8.9 15.6083 7.95833 14.825 7.175C14.0417 6.39167 13.1 6 12 6C10.9 6 9.95833 6.39167 9.175 7.175C8.39167 7.95833 8 8.9 8 10V17Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
4975
4993
|
</g>
|
|
4994
|
+
</svg>`,
|
|
4995
|
+
add: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
4996
|
+
<mask id="mask0_14011_362" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
4997
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
4998
|
+
</mask>
|
|
4999
|
+
<g mask="url(#mask0_14011_362)">
|
|
5000
|
+
<path d="M11 13H6C5.71667 13 5.47917 12.9042 5.2875 12.7125C5.09583 12.5208 5 12.2833 5 12C5 11.7167 5.09583 11.4792 5.2875 11.2875C5.47917 11.0958 5.71667 11 6 11H11V6C11 5.71667 11.0958 5.47917 11.2875 5.2875C11.4792 5.09583 11.7167 5 12 5C12.2833 5 12.5208 5.09583 12.7125 5.2875C12.9042 5.47917 13 5.71667 13 6V11H18C18.2833 11 18.5208 11.0958 18.7125 11.2875C18.9042 11.4792 19 11.7167 19 12C19 12.2833 18.9042 12.5208 18.7125 12.7125C18.5208 12.9042 18.2833 13 18 13H13V18C13 18.2833 12.9042 18.5208 12.7125 18.7125C12.5208 18.9042 12.2833 19 12 19C11.7167 19 11.4792 18.9042 11.2875 18.7125C11.0958 18.5208 11 18.2833 11 18V13Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
5001
|
+
</g>
|
|
5002
|
+
</svg>`,
|
|
5003
|
+
remove: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
5004
|
+
<mask id="mask0_14011_713" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
5005
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
5006
|
+
</mask>
|
|
5007
|
+
<g mask="url(#mask0_14011_713)">
|
|
5008
|
+
<path d="M6 13C5.71667 13 5.47917 12.9042 5.2875 12.7125C5.09583 12.5208 5 12.2833 5 12C5 11.7167 5.09583 11.4792 5.2875 11.2875C5.47917 11.0958 5.71667 11 6 11H18C18.2833 11 18.5208 11.0958 18.7125 11.2875C18.9042 11.4792 19 11.7167 19 12C19 12.2833 18.9042 12.5208 18.7125 12.7125C18.5208 12.9042 18.2833 13 18 13H6Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
5009
|
+
</g>
|
|
4976
5010
|
</svg>`,
|
|
4977
5011
|
// *** Arrows *** //
|
|
4978
5012
|
arrow_back: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -5261,7 +5295,7 @@ const We = {
|
|
|
5261
5295
|
<path d="M6.30002 22.7751C5.43369 22.7751 4.69211 22.4667 4.07527 21.8498C3.45844 21.2328 3.15002 20.4913 3.15002 19.6251V10.2251C3.15002 9.35893 3.45844 8.61735 4.07527 8.00035C4.69211 7.38351 5.43369 7.0751 6.30002 7.0751H6.62502V5.8001C6.62502 4.28343 7.14586 2.99593 8.18752 1.9376C9.22919 0.879264 10.5 0.350098 12 0.350098C13.5 0.350098 14.7709 0.879264 15.8125 1.9376C16.8542 2.99593 17.375 4.28343 17.375 5.8001V7.0751H17.7C18.5662 7.0751 19.3078 7.38351 19.9248 8.00035C20.5416 8.61735 20.85 9.35893 20.85 10.2251V19.6251C20.85 20.4913 20.5416 21.2328 19.9248 21.8498C19.3078 22.4667 18.5662 22.7751 17.7 22.7751H6.30002ZM12 16.9251C12.55 16.9251 13.0209 16.7293 13.4125 16.3376C13.8042 15.9459 14 15.4751 14 14.9251C14 14.3751 13.8042 13.9043 13.4125 13.5126C13.0209 13.1209 12.55 12.9251 12 12.9251C11.45 12.9251 10.9792 13.1209 10.5875 13.5126C10.1959 13.9043 10 14.3751 10 14.9251C10 15.4751 10.1959 15.9459 10.5875 16.3376C10.9792 16.7293 11.45 16.9251 12 16.9251ZM9.77502 7.0751H14.225V5.8001C14.225 5.16126 14.0125 4.61818 13.5875 4.17085C13.1625 3.72368 12.6334 3.5001 12 3.5001C11.3667 3.5001 10.8375 3.72368 10.4125 4.17085C9.98752 4.61818 9.77502 5.16126 9.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
5262
5296
|
</g>
|
|
5263
5297
|
</svg>`
|
|
5264
|
-
},
|
|
5298
|
+
}, Xe = f`
|
|
5265
5299
|
:host {
|
|
5266
5300
|
display: inline-block;
|
|
5267
5301
|
--_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. */
|
|
@@ -5358,10 +5392,10 @@ const We = {
|
|
|
5358
5392
|
transform: scale(-1, -1);
|
|
5359
5393
|
}
|
|
5360
5394
|
`;
|
|
5361
|
-
var
|
|
5362
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
5363
|
-
(
|
|
5364
|
-
return s && r &&
|
|
5395
|
+
var Qe = Object.defineProperty, t7 = Object.getOwnPropertyDescriptor, I1 = (o, t, e, s) => {
|
|
5396
|
+
for (var r = s > 1 ? void 0 : s ? t7(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
5397
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
5398
|
+
return s && r && Qe(t, e, r), r;
|
|
5365
5399
|
}, C1;
|
|
5366
5400
|
const $1 = (C1 = class extends v {
|
|
5367
5401
|
constructor() {
|
|
@@ -5376,16 +5410,16 @@ const $1 = (C1 = class extends v {
|
|
|
5376
5410
|
) ? t : "sm";
|
|
5377
5411
|
}
|
|
5378
5412
|
getIcon() {
|
|
5379
|
-
const t =
|
|
5413
|
+
const t = Je[this.name], e = !!this.label;
|
|
5380
5414
|
if (!t) return null;
|
|
5381
|
-
const
|
|
5382
|
-
return
|
|
5415
|
+
const n = new DOMParser().parseFromString(t, "image/svg+xml").documentElement;
|
|
5416
|
+
return n instanceof SVGElement ? (n.setAttribute("role", "img"), n.setAttribute("aria-label", e ? this.label : ""), n.setAttribute("aria-hidden", e ? "false" : "true"), n.style.rotate = `${this.rotate}deg`, n.style.color = this.color || "currentcolor", n.classList.add(`nys-icon--${this.size}`), n.classList.add("nys-icon--svg"), this.flip && n.classList.add(`nys-icon--flip-${this.flip}`), n) : null;
|
|
5383
5417
|
}
|
|
5384
5418
|
render() {
|
|
5385
5419
|
const t = this.getIcon();
|
|
5386
5420
|
return t ? h`${t}` : null;
|
|
5387
5421
|
}
|
|
5388
|
-
}, C1.styles =
|
|
5422
|
+
}, C1.styles = Xe, C1.VALID_TYPES = [
|
|
5389
5423
|
"2xs",
|
|
5390
5424
|
"xs",
|
|
5391
5425
|
"sm",
|
|
@@ -5420,9 +5454,9 @@ I1([
|
|
|
5420
5454
|
I1([
|
|
5421
5455
|
a({ reflect: !0 })
|
|
5422
5456
|
], $1.prototype, "size", 1);
|
|
5423
|
-
let
|
|
5424
|
-
customElements.get("nys-icon") || customElements.define("nys-icon",
|
|
5425
|
-
const
|
|
5457
|
+
let e7 = $1;
|
|
5458
|
+
customElements.get("nys-icon") || customElements.define("nys-icon", e7);
|
|
5459
|
+
const s7 = f`
|
|
5426
5460
|
:host {
|
|
5427
5461
|
/* Label Typography */
|
|
5428
5462
|
--_nys-label-font-family: var(
|
|
@@ -5474,11 +5508,13 @@ const Qe = b`
|
|
|
5474
5508
|
}
|
|
5475
5509
|
|
|
5476
5510
|
.nys-label__label {
|
|
5511
|
+
text-align: left;
|
|
5477
5512
|
font-weight: var(--_nys-label-font-weight);
|
|
5478
5513
|
color: var(--_nys-label-font-color);
|
|
5479
5514
|
}
|
|
5480
5515
|
|
|
5481
5516
|
.nys-label__description {
|
|
5517
|
+
text-align: left;
|
|
5482
5518
|
font-weight: var(--nys-description-font-weight);
|
|
5483
5519
|
font-style: var(--nys-description-font-style);
|
|
5484
5520
|
color: var(--nys-description-font-color);
|
|
@@ -5494,12 +5530,12 @@ const Qe = b`
|
|
|
5494
5530
|
color: var(--nys-optional-font-color);
|
|
5495
5531
|
}
|
|
5496
5532
|
`;
|
|
5497
|
-
var
|
|
5498
|
-
for (var r = void 0,
|
|
5499
|
-
(
|
|
5500
|
-
return r &&
|
|
5533
|
+
var r7 = Object.defineProperty, M2 = (o, t, e, s) => {
|
|
5534
|
+
for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
|
|
5535
|
+
(i = o[n]) && (r = i(t, e, r) || r);
|
|
5536
|
+
return r && r7(t, e, r), r;
|
|
5501
5537
|
};
|
|
5502
|
-
const
|
|
5538
|
+
const Q2 = class Q2 extends v {
|
|
5503
5539
|
constructor() {
|
|
5504
5540
|
super(...arguments), this.id = "", this.label = "", this.description = "", this.flag = "";
|
|
5505
5541
|
}
|
|
@@ -5518,8 +5554,8 @@ const X2 = class X2 extends v {
|
|
|
5518
5554
|
`;
|
|
5519
5555
|
}
|
|
5520
5556
|
};
|
|
5521
|
-
|
|
5522
|
-
let m1 =
|
|
5557
|
+
Q2.styles = s7;
|
|
5558
|
+
let m1 = Q2;
|
|
5523
5559
|
M2([
|
|
5524
5560
|
a({ type: String })
|
|
5525
5561
|
], m1.prototype, "id");
|
|
@@ -5533,7 +5569,7 @@ M2([
|
|
|
5533
5569
|
a({ type: String })
|
|
5534
5570
|
], m1.prototype, "flag");
|
|
5535
5571
|
customElements.get("nys-label") || customElements.define("nys-label", m1);
|
|
5536
|
-
const
|
|
5572
|
+
const rt = f`
|
|
5537
5573
|
:host {
|
|
5538
5574
|
/* Global Radiobutton Styles */
|
|
5539
5575
|
--_nys-radiobutton-size: var(--nys-size-400, 32px);
|
|
@@ -5765,12 +5801,12 @@ const et = b`
|
|
|
5765
5801
|
cursor: not-allowed;
|
|
5766
5802
|
}
|
|
5767
5803
|
`;
|
|
5768
|
-
var
|
|
5769
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
5770
|
-
(
|
|
5771
|
-
return s && r &&
|
|
5804
|
+
var o7 = Object.defineProperty, n7 = Object.getOwnPropertyDescriptor, W = (o, t, e, s) => {
|
|
5805
|
+
for (var r = s > 1 ? void 0 : s ? n7(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
5806
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
5807
|
+
return s && r && o7(t, e, r), r;
|
|
5772
5808
|
};
|
|
5773
|
-
let
|
|
5809
|
+
let i7 = 0;
|
|
5774
5810
|
var t1;
|
|
5775
5811
|
const N = (t1 = class extends v {
|
|
5776
5812
|
// allows use of elementInternals' API
|
|
@@ -5787,7 +5823,7 @@ const N = (t1 = class extends v {
|
|
|
5787
5823
|
}
|
|
5788
5824
|
// Generate a unique ID if one is not provided
|
|
5789
5825
|
connectedCallback() {
|
|
5790
|
-
super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${
|
|
5826
|
+
super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${i7++}`), this.addEventListener("change", this._handleRadioButtonChange), this.addEventListener("invalid", this._handleInvalid);
|
|
5791
5827
|
}
|
|
5792
5828
|
disconnectedCallback() {
|
|
5793
5829
|
super.disconnectedCallback(), this.removeEventListener("change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -5816,11 +5852,11 @@ const N = (t1 = class extends v {
|
|
|
5816
5852
|
}
|
|
5817
5853
|
async _manageRequire() {
|
|
5818
5854
|
const t = this.errorMessage || "Please select an option.", e = this.querySelector("nys-radiobutton"), s = e ? await e.getInputElement() : null;
|
|
5819
|
-
this.required && !this.selectedValue ? this._internals.setValidity(
|
|
5855
|
+
s && (this.required && !this.selectedValue ? this._internals.setValidity(
|
|
5820
5856
|
{ valueMissing: !0 },
|
|
5821
5857
|
t,
|
|
5822
5858
|
s
|
|
5823
|
-
) : (this.showError = !1, this._internals.setValidity({}, "", s));
|
|
5859
|
+
) : (this.showError = !1, this._internals.setValidity({}, "", s)));
|
|
5824
5860
|
}
|
|
5825
5861
|
// Need to account for if radiogroup already have a radiobutton checked at initialization
|
|
5826
5862
|
_initializeCheckedRadioValue() {
|
|
@@ -5880,7 +5916,7 @@ const N = (t1 = class extends v {
|
|
|
5880
5916
|
></nys-errormessage>
|
|
5881
5917
|
</div>`;
|
|
5882
5918
|
}
|
|
5883
|
-
}, t1.VALID_SIZES = ["sm", "md"], t1.styles =
|
|
5919
|
+
}, t1.VALID_SIZES = ["sm", "md"], t1.styles = rt, t1.formAssociated = !0, t1);
|
|
5884
5920
|
W([
|
|
5885
5921
|
a({ type: String })
|
|
5886
5922
|
], N.prototype, "id", 2);
|
|
@@ -5911,14 +5947,14 @@ W([
|
|
|
5911
5947
|
W([
|
|
5912
5948
|
a({ reflect: !0 })
|
|
5913
5949
|
], N.prototype, "size", 1);
|
|
5914
|
-
let
|
|
5915
|
-
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup",
|
|
5916
|
-
var
|
|
5917
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
5918
|
-
(
|
|
5919
|
-
return s && r &&
|
|
5950
|
+
let a7 = N;
|
|
5951
|
+
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", a7);
|
|
5952
|
+
var l7 = Object.defineProperty, c7 = Object.getOwnPropertyDescriptor, n1 = (o, t, e, s) => {
|
|
5953
|
+
for (var r = s > 1 ? void 0 : s ? c7(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
5954
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
5955
|
+
return s && r && l7(t, e, r), r;
|
|
5920
5956
|
};
|
|
5921
|
-
let
|
|
5957
|
+
let h7 = 0;
|
|
5922
5958
|
var u;
|
|
5923
5959
|
const Y = (u = class extends v {
|
|
5924
5960
|
constructor() {
|
|
@@ -5943,7 +5979,7 @@ const Y = (u = class extends v {
|
|
|
5943
5979
|
/********************** Lifecycle updates **********************/
|
|
5944
5980
|
// Generate a unique ID if one is not provided
|
|
5945
5981
|
connectedCallback() {
|
|
5946
|
-
super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${
|
|
5982
|
+
super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${h7++}`), this.checked && (u.buttonGroup[this.name] && (u.buttonGroup[this.name].checked = !1, u.buttonGroup[this.name].requestUpdate()), u.buttonGroup[this.name] = this);
|
|
5947
5983
|
}
|
|
5948
5984
|
updated(t) {
|
|
5949
5985
|
t.has("checked") && this.checked && u.buttonGroup[this.name] !== this && (u.buttonGroup[this.name] && (u.buttonGroup[this.name].checked = !1, u.buttonGroup[this.name].requestUpdate()), u.buttonGroup[this.name] = this);
|
|
@@ -6021,7 +6057,7 @@ const Y = (u = class extends v {
|
|
|
6021
6057
|
</label>
|
|
6022
6058
|
`;
|
|
6023
6059
|
}
|
|
6024
|
-
}, u.VALID_SIZES = ["sm", "md"], u.buttonGroup = {}, u.styles =
|
|
6060
|
+
}, u.VALID_SIZES = ["sm", "md"], u.buttonGroup = {}, u.styles = rt, u);
|
|
6025
6061
|
n1([
|
|
6026
6062
|
a({ type: Boolean, reflect: !0 })
|
|
6027
6063
|
], Y.prototype, "checked", 2);
|
|
@@ -6049,9 +6085,9 @@ n1([
|
|
|
6049
6085
|
n1([
|
|
6050
6086
|
a({ reflect: !0 })
|
|
6051
6087
|
], Y.prototype, "size", 1);
|
|
6052
|
-
let
|
|
6053
|
-
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton",
|
|
6054
|
-
const
|
|
6088
|
+
let d7 = Y;
|
|
6089
|
+
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", d7);
|
|
6090
|
+
const C7 = f`
|
|
6055
6091
|
:host {
|
|
6056
6092
|
/* Global Select Styles */
|
|
6057
6093
|
--_nys-select-width: 100%;
|
|
@@ -6199,10 +6235,10 @@ const c7 = b`
|
|
|
6199
6235
|
var(--_nys-select-error-color);
|
|
6200
6236
|
}
|
|
6201
6237
|
`;
|
|
6202
|
-
var
|
|
6203
|
-
for (var r = void 0,
|
|
6204
|
-
(
|
|
6205
|
-
return r &&
|
|
6238
|
+
var y7 = Object.defineProperty, i2 = (o, t, e, s) => {
|
|
6239
|
+
for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
|
|
6240
|
+
(i = o[n]) && (r = i(t, e, r) || r);
|
|
6241
|
+
return r && y7(t, e, r), r;
|
|
6206
6242
|
};
|
|
6207
6243
|
class S1 extends v {
|
|
6208
6244
|
constructor() {
|
|
@@ -6231,28 +6267,28 @@ class S1 extends v {
|
|
|
6231
6267
|
`;
|
|
6232
6268
|
}
|
|
6233
6269
|
}
|
|
6234
|
-
|
|
6270
|
+
i2([
|
|
6235
6271
|
a({ type: Boolean, reflect: !0 })
|
|
6236
6272
|
], S1.prototype, "disabled");
|
|
6237
|
-
|
|
6273
|
+
i2([
|
|
6238
6274
|
a({ type: Boolean, reflect: !0 })
|
|
6239
6275
|
], S1.prototype, "selected");
|
|
6240
|
-
|
|
6276
|
+
i2([
|
|
6241
6277
|
a({ type: String })
|
|
6242
6278
|
], S1.prototype, "value");
|
|
6243
|
-
|
|
6279
|
+
i2([
|
|
6244
6280
|
a({ type: String })
|
|
6245
6281
|
], S1.prototype, "label");
|
|
6246
|
-
|
|
6282
|
+
i2([
|
|
6247
6283
|
a({ type: Boolean, reflect: !0 })
|
|
6248
6284
|
], S1.prototype, "hidden");
|
|
6249
6285
|
customElements.define("nys-option", S1);
|
|
6250
|
-
var
|
|
6251
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6252
|
-
(
|
|
6253
|
-
return s && r &&
|
|
6286
|
+
var u7 = Object.defineProperty, p7 = Object.getOwnPropertyDescriptor, T = (o, t, e, s) => {
|
|
6287
|
+
for (var r = s > 1 ? void 0 : s ? p7(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
6288
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
6289
|
+
return s && r && u7(t, e, r), r;
|
|
6254
6290
|
};
|
|
6255
|
-
let
|
|
6291
|
+
let v7 = 0;
|
|
6256
6292
|
var e1;
|
|
6257
6293
|
const O = (e1 = class extends v {
|
|
6258
6294
|
// allows use of elementInternals' API
|
|
@@ -6269,7 +6305,7 @@ const O = (e1 = class extends v {
|
|
|
6269
6305
|
}
|
|
6270
6306
|
// Generate a unique ID if one is not provided
|
|
6271
6307
|
connectedCallback() {
|
|
6272
|
-
super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${
|
|
6308
|
+
super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${v7++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
6273
6309
|
}
|
|
6274
6310
|
disconnectedCallback() {
|
|
6275
6311
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -6282,16 +6318,16 @@ const O = (e1 = class extends v {
|
|
|
6282
6318
|
this.value = "";
|
|
6283
6319
|
}
|
|
6284
6320
|
_handleSlotChange() {
|
|
6285
|
-
var r,
|
|
6321
|
+
var r, n;
|
|
6286
6322
|
const t = (r = this.shadowRoot) == null ? void 0 : r.querySelector(
|
|
6287
6323
|
'slot:not([name="description"])'
|
|
6288
|
-
), e = (
|
|
6324
|
+
), e = (n = this.shadowRoot) == null ? void 0 : n.querySelector("select");
|
|
6289
6325
|
if (!t || !e) return;
|
|
6290
|
-
e.querySelectorAll("option:not([hidden])").forEach((
|
|
6326
|
+
e.querySelectorAll("option:not([hidden])").forEach((i) => i.remove()), t.assignedElements({ flatten: !0 }).forEach((i) => {
|
|
6291
6327
|
var l;
|
|
6292
|
-
if (
|
|
6328
|
+
if (i instanceof S1) {
|
|
6293
6329
|
const c = document.createElement("option");
|
|
6294
|
-
c.value =
|
|
6330
|
+
c.value = i.value, c.textContent = i.label || ((l = i.textContent) == null ? void 0 : l.trim()) || "", c.disabled = i.disabled, c.selected = i.selected, e.appendChild(c);
|
|
6295
6331
|
}
|
|
6296
6332
|
});
|
|
6297
6333
|
}
|
|
@@ -6417,46 +6453,167 @@ const O = (e1 = class extends v {
|
|
|
6417
6453
|
</div>
|
|
6418
6454
|
`;
|
|
6419
6455
|
}
|
|
6420
|
-
}, e1.VALID_WIDTHS = ["sm", "md", "lg", "full"], e1.styles =
|
|
6421
|
-
|
|
6456
|
+
}, e1.VALID_WIDTHS = ["sm", "md", "lg", "full"], e1.styles = C7, e1.formAssociated = !0, e1);
|
|
6457
|
+
T([
|
|
6422
6458
|
a({ type: String })
|
|
6423
6459
|
], O.prototype, "id", 2);
|
|
6424
|
-
|
|
6460
|
+
T([
|
|
6425
6461
|
a({ type: String, reflect: !0 })
|
|
6426
6462
|
], O.prototype, "name", 2);
|
|
6427
|
-
|
|
6463
|
+
T([
|
|
6428
6464
|
a({ type: String })
|
|
6429
6465
|
], O.prototype, "label", 2);
|
|
6430
|
-
|
|
6466
|
+
T([
|
|
6431
6467
|
a({ type: String })
|
|
6432
6468
|
], O.prototype, "description", 2);
|
|
6433
|
-
|
|
6469
|
+
T([
|
|
6434
6470
|
a({ type: String })
|
|
6435
6471
|
], O.prototype, "value", 2);
|
|
6436
|
-
|
|
6472
|
+
T([
|
|
6437
6473
|
a({ type: Boolean, reflect: !0 })
|
|
6438
6474
|
], O.prototype, "disabled", 2);
|
|
6439
|
-
|
|
6475
|
+
T([
|
|
6440
6476
|
a({ type: Boolean, reflect: !0 })
|
|
6441
6477
|
], O.prototype, "required", 2);
|
|
6442
|
-
|
|
6478
|
+
T([
|
|
6443
6479
|
a({ type: Boolean, reflect: !0 })
|
|
6444
6480
|
], O.prototype, "optional", 2);
|
|
6445
|
-
|
|
6481
|
+
T([
|
|
6446
6482
|
a({ type: String })
|
|
6447
6483
|
], O.prototype, "form", 2);
|
|
6448
|
-
|
|
6484
|
+
T([
|
|
6449
6485
|
a({ type: Boolean, reflect: !0 })
|
|
6450
6486
|
], O.prototype, "showError", 2);
|
|
6451
|
-
|
|
6487
|
+
T([
|
|
6452
6488
|
a({ type: String })
|
|
6453
6489
|
], O.prototype, "errorMessage", 2);
|
|
6454
|
-
|
|
6490
|
+
T([
|
|
6455
6491
|
a({ reflect: !0 })
|
|
6456
6492
|
], O.prototype, "width", 1);
|
|
6457
|
-
let
|
|
6458
|
-
customElements.get("nys-select") || customElements.define("nys-select",
|
|
6459
|
-
const
|
|
6493
|
+
let f7 = O;
|
|
6494
|
+
customElements.get("nys-select") || customElements.define("nys-select", f7);
|
|
6495
|
+
const g7 = f`
|
|
6496
|
+
:host {
|
|
6497
|
+
/* Global Skipnav Styles */
|
|
6498
|
+
--_nys-skipnav-padding-vertical: var(--nys-space-100, 8px);
|
|
6499
|
+
--_nys-skipnav-padding-horizontal: var(--nys-space-200, 16px);
|
|
6500
|
+
--_nys-skipnav-gap: var(--nys-space-100, 8px);
|
|
6501
|
+
|
|
6502
|
+
/* Typography */
|
|
6503
|
+
--_nys-skipnav-font-size: var(--nys-font-size-ui-md, 16px);
|
|
6504
|
+
--_nys-skipnav-font-weight: var(--nys-font-weight-semibold, 600);
|
|
6505
|
+
--_nys-skipnav-font-letterspacing: var(
|
|
6506
|
+
--nys-font-letterspacing-ui-md,
|
|
6507
|
+
0.044px
|
|
6508
|
+
);
|
|
6509
|
+
--_nys-skipnav-line-height: var(--nys-font-lineheight-ui-md, 24px);
|
|
6510
|
+
--_nys-skipnav-font-family: var(
|
|
6511
|
+
--nys-font-family-ui,
|
|
6512
|
+
var(
|
|
6513
|
+
--nys-font-family-sans,
|
|
6514
|
+
"Proxima Nova",
|
|
6515
|
+
"Helvetica Neue",
|
|
6516
|
+
"Helvetica",
|
|
6517
|
+
"Arial",
|
|
6518
|
+
sans-serif
|
|
6519
|
+
)
|
|
6520
|
+
);
|
|
6521
|
+
|
|
6522
|
+
/* Color */
|
|
6523
|
+
--_nys-skipnav-color-link: var(--nys-color-link, #004dd1);
|
|
6524
|
+
--_nys-skipnav-color-background: var(--nys-color-surface, #fff);
|
|
6525
|
+
}
|
|
6526
|
+
|
|
6527
|
+
.nys-skipnav__link {
|
|
6528
|
+
position: absolute;
|
|
6529
|
+
left: 0;
|
|
6530
|
+
top: -4.8rem;
|
|
6531
|
+
display: inline-flex;
|
|
6532
|
+
padding: var(--_nys-skipnav-padding-vertical)
|
|
6533
|
+
var(--_nys-skipnav-padding-horizontal);
|
|
6534
|
+
align-items: flex-end;
|
|
6535
|
+
gap: var(--_nys-skipnav-gap);
|
|
6536
|
+
background: var(--_nys-skipnav-color-background);
|
|
6537
|
+
color: var(--_nys-skipnav-color-link);
|
|
6538
|
+
border: 2px solid var(--_nys-skipnav-color-link);
|
|
6539
|
+
font-family: var(--_nys-skipnav-font-family);
|
|
6540
|
+
font-size: var(--_nys-skipnav-font-size);
|
|
6541
|
+
font-style: normal;
|
|
6542
|
+
font-weight: var(--_nys-skipnav-font-weight);
|
|
6543
|
+
line-height: var(--_nys-skipnav-line-height);
|
|
6544
|
+
letter-spacing: var(--_nys-skipnav-font-letterspacing);
|
|
6545
|
+
text-decoration-line: underline;
|
|
6546
|
+
text-decoration-style: solid;
|
|
6547
|
+
text-decoration-skip-ink: auto;
|
|
6548
|
+
text-decoration-thickness: 7%; /* 1.12px */
|
|
6549
|
+
text-underline-offset: auto;
|
|
6550
|
+
text-underline-position: from-font;
|
|
6551
|
+
z-index: 100;
|
|
6552
|
+
transition: 0.15s ease-in-out;
|
|
6553
|
+
}
|
|
6554
|
+
|
|
6555
|
+
.nys-skipnav__link:focus,
|
|
6556
|
+
.nys-skipnav__link.show {
|
|
6557
|
+
top: 0;
|
|
6558
|
+
left: auto;
|
|
6559
|
+
}
|
|
6560
|
+
`;
|
|
6561
|
+
var _7 = Object.defineProperty, ot = (o, t, e, s) => {
|
|
6562
|
+
for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
|
|
6563
|
+
(i = o[n]) && (r = i(t, e, r) || r);
|
|
6564
|
+
return r && _7(t, e, r), r;
|
|
6565
|
+
};
|
|
6566
|
+
const t5 = class t5 extends v {
|
|
6567
|
+
constructor() {
|
|
6568
|
+
super(), this.id = "", this.href = "";
|
|
6569
|
+
}
|
|
6570
|
+
// Generate a unique ID if one is not provided
|
|
6571
|
+
connectedCallback() {
|
|
6572
|
+
super.connectedCallback(), this.id || (this.id = `nys-skipnav-${Date.now()}`);
|
|
6573
|
+
}
|
|
6574
|
+
/**************** Event Handlers ****************/
|
|
6575
|
+
_handleFocus() {
|
|
6576
|
+
var e;
|
|
6577
|
+
const t = (e = this.shadowRoot) == null ? void 0 : e.querySelector(".nys-skipnav__link");
|
|
6578
|
+
this.dispatchEvent(new Event("focus")), t == null || t.classList.add("show");
|
|
6579
|
+
}
|
|
6580
|
+
_handleBlur() {
|
|
6581
|
+
var e;
|
|
6582
|
+
const t = (e = this.shadowRoot) == null ? void 0 : e.querySelector(".nys-skipnav__link");
|
|
6583
|
+
this.dispatchEvent(new Event("blur")), t == null || t.classList.remove("show");
|
|
6584
|
+
}
|
|
6585
|
+
_handleClick() {
|
|
6586
|
+
const t = (this.href || "#main-content").replace("#", ""), e = document.getElementById(t);
|
|
6587
|
+
e && (e.setAttribute("tabindex", "-1"), e.focus(), e.style.outline = "none");
|
|
6588
|
+
}
|
|
6589
|
+
render() {
|
|
6590
|
+
return h`
|
|
6591
|
+
<div class="nys-skipnav">
|
|
6592
|
+
<a
|
|
6593
|
+
id=${this.id}
|
|
6594
|
+
href=${this.href ? this.href : "#main-content"}
|
|
6595
|
+
tabindex="0"
|
|
6596
|
+
class="nys-skipnav__link"
|
|
6597
|
+
@focus="${this._handleFocus}"
|
|
6598
|
+
@blur="${this._handleBlur}"
|
|
6599
|
+
@click="${this._handleClick}"
|
|
6600
|
+
>
|
|
6601
|
+
Skip to main content
|
|
6602
|
+
</a>
|
|
6603
|
+
</div>
|
|
6604
|
+
`;
|
|
6605
|
+
}
|
|
6606
|
+
};
|
|
6607
|
+
t5.styles = g7;
|
|
6608
|
+
let e2 = t5;
|
|
6609
|
+
ot([
|
|
6610
|
+
a({ type: String })
|
|
6611
|
+
], e2.prototype, "id");
|
|
6612
|
+
ot([
|
|
6613
|
+
a({ type: String })
|
|
6614
|
+
], e2.prototype, "href");
|
|
6615
|
+
customElements.get("nys-skipnav") || customElements.define("nys-skipnav", e2);
|
|
6616
|
+
const b7 = f`
|
|
6460
6617
|
:host {
|
|
6461
6618
|
/* Anything that can be overridden should be defined here */
|
|
6462
6619
|
|
|
@@ -6598,14 +6755,14 @@ const p7 = b`
|
|
|
6598
6755
|
cursor: not-allowed;
|
|
6599
6756
|
}
|
|
6600
6757
|
`;
|
|
6601
|
-
var
|
|
6602
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6603
|
-
(
|
|
6604
|
-
return s && r &&
|
|
6758
|
+
var m7 = Object.defineProperty, w7 = Object.getOwnPropertyDescriptor, H = (o, t, e, s) => {
|
|
6759
|
+
for (var r = s > 1 ? void 0 : s ? w7(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
6760
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
6761
|
+
return s && r && m7(t, e, r), r;
|
|
6605
6762
|
};
|
|
6606
|
-
let
|
|
6607
|
-
var
|
|
6608
|
-
const
|
|
6763
|
+
let x7 = 0;
|
|
6764
|
+
var R;
|
|
6765
|
+
const M = (R = class extends v {
|
|
6609
6766
|
// allows use of elementInternals' API
|
|
6610
6767
|
constructor() {
|
|
6611
6768
|
super(), this.id = "", this.name = "", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.maxlength = null, this.width = "full", this.rows = 4, this._resize = "vertical", this.showError = !1, this.errorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
@@ -6614,16 +6771,16 @@ const E = (T = class extends v {
|
|
|
6614
6771
|
return this._resize;
|
|
6615
6772
|
}
|
|
6616
6773
|
set resize(t) {
|
|
6617
|
-
this._resize =
|
|
6774
|
+
this._resize = R.VALID_RESIZE.includes(
|
|
6618
6775
|
t
|
|
6619
6776
|
) ? t : "vertical";
|
|
6620
6777
|
}
|
|
6621
6778
|
async updated(t) {
|
|
6622
|
-
await Promise.resolve(), t.has("width") && (this.width =
|
|
6779
|
+
await Promise.resolve(), t.has("width") && (this.width = R.VALID_WIDTHS.includes(this.width) ? this.width : "full"), t.has("rows") && (this.rows = this.rows ?? 4);
|
|
6623
6780
|
}
|
|
6624
6781
|
// Generate a unique ID if one is not provided
|
|
6625
6782
|
connectedCallback() {
|
|
6626
|
-
super.connectedCallback(), this.id || (this.id = `nys-textarea-${Date.now()}-${
|
|
6783
|
+
super.connectedCallback(), this.id || (this.id = `nys-textarea-${Date.now()}-${x7++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
6627
6784
|
}
|
|
6628
6785
|
disconnectedCallback() {
|
|
6629
6786
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -6766,61 +6923,61 @@ const E = (T = class extends v {
|
|
|
6766
6923
|
</label>
|
|
6767
6924
|
`;
|
|
6768
6925
|
}
|
|
6769
|
-
},
|
|
6926
|
+
}, R.VALID_WIDTHS = ["sm", "md", "lg", "full"], R.VALID_RESIZE = ["vertical", "none"], R.styles = b7, R.formAssociated = !0, R);
|
|
6770
6927
|
H([
|
|
6771
6928
|
a({ type: String })
|
|
6772
|
-
],
|
|
6929
|
+
], M.prototype, "id", 2);
|
|
6773
6930
|
H([
|
|
6774
6931
|
a({ type: String, reflect: !0 })
|
|
6775
|
-
],
|
|
6932
|
+
], M.prototype, "name", 2);
|
|
6776
6933
|
H([
|
|
6777
6934
|
a({ type: String })
|
|
6778
|
-
],
|
|
6935
|
+
], M.prototype, "label", 2);
|
|
6779
6936
|
H([
|
|
6780
6937
|
a({ type: String })
|
|
6781
|
-
],
|
|
6938
|
+
], M.prototype, "description", 2);
|
|
6782
6939
|
H([
|
|
6783
6940
|
a({ type: String })
|
|
6784
|
-
],
|
|
6941
|
+
], M.prototype, "placeholder", 2);
|
|
6785
6942
|
H([
|
|
6786
6943
|
a({ type: String })
|
|
6787
|
-
],
|
|
6944
|
+
], M.prototype, "value", 2);
|
|
6788
6945
|
H([
|
|
6789
6946
|
a({ type: Boolean, reflect: !0 })
|
|
6790
|
-
],
|
|
6947
|
+
], M.prototype, "disabled", 2);
|
|
6791
6948
|
H([
|
|
6792
6949
|
a({ type: Boolean, reflect: !0 })
|
|
6793
|
-
],
|
|
6950
|
+
], M.prototype, "readonly", 2);
|
|
6794
6951
|
H([
|
|
6795
6952
|
a({ type: Boolean, reflect: !0 })
|
|
6796
|
-
],
|
|
6953
|
+
], M.prototype, "required", 2);
|
|
6797
6954
|
H([
|
|
6798
6955
|
a({ type: Boolean, reflect: !0 })
|
|
6799
|
-
],
|
|
6956
|
+
], M.prototype, "optional", 2);
|
|
6800
6957
|
H([
|
|
6801
6958
|
a({ type: String })
|
|
6802
|
-
],
|
|
6959
|
+
], M.prototype, "form", 2);
|
|
6803
6960
|
H([
|
|
6804
6961
|
a({ type: Number })
|
|
6805
|
-
],
|
|
6962
|
+
], M.prototype, "maxlength", 2);
|
|
6806
6963
|
H([
|
|
6807
6964
|
a({ reflect: !0 })
|
|
6808
|
-
],
|
|
6965
|
+
], M.prototype, "width", 2);
|
|
6809
6966
|
H([
|
|
6810
6967
|
a({ type: Number })
|
|
6811
|
-
],
|
|
6968
|
+
], M.prototype, "rows", 2);
|
|
6812
6969
|
H([
|
|
6813
6970
|
a({ reflect: !0 })
|
|
6814
|
-
],
|
|
6971
|
+
], M.prototype, "resize", 1);
|
|
6815
6972
|
H([
|
|
6816
6973
|
a({ type: Boolean, reflect: !0 })
|
|
6817
|
-
],
|
|
6974
|
+
], M.prototype, "showError", 2);
|
|
6818
6975
|
H([
|
|
6819
6976
|
a({ type: String })
|
|
6820
|
-
],
|
|
6821
|
-
let
|
|
6822
|
-
customElements.get("nys-textarea") || customElements.define("nys-textarea",
|
|
6823
|
-
const
|
|
6977
|
+
], M.prototype, "errorMessage", 2);
|
|
6978
|
+
let k7 = M;
|
|
6979
|
+
customElements.get("nys-textarea") || customElements.define("nys-textarea", k7);
|
|
6980
|
+
const $7 = f`
|
|
6824
6981
|
:host {
|
|
6825
6982
|
/* Anything that can be overridden should be defined here */
|
|
6826
6983
|
|
|
@@ -6980,14 +7137,14 @@ const b7 = b`
|
|
|
6980
7137
|
cursor: not-allowed;
|
|
6981
7138
|
}
|
|
6982
7139
|
`;
|
|
6983
|
-
var
|
|
6984
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6985
|
-
(
|
|
6986
|
-
return s && r &&
|
|
7140
|
+
var S7 = Object.defineProperty, L7 = Object.getOwnPropertyDescriptor, m = (o, t, e, s) => {
|
|
7141
|
+
for (var r = s > 1 ? void 0 : s ? L7(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
7142
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
7143
|
+
return s && r && S7(t, e, r), r;
|
|
6987
7144
|
};
|
|
6988
|
-
let
|
|
7145
|
+
let E7 = 0;
|
|
6989
7146
|
var q;
|
|
6990
|
-
const
|
|
7147
|
+
const g = (q = class extends v {
|
|
6991
7148
|
// allows use of elementInternals' API
|
|
6992
7149
|
constructor() {
|
|
6993
7150
|
super(), this.id = "", this.name = "", this._type = "text", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.pattern = "", this.maxlength = null, this.width = "full", this.step = null, this.min = null, this.max = null, this.showError = !1, this.errorMessage = "", this.showPassword = !1, this._originalErrorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
@@ -7006,7 +7163,7 @@ const f = (q = class extends v {
|
|
|
7006
7163
|
}
|
|
7007
7164
|
// Generate a unique ID if one is not provided
|
|
7008
7165
|
connectedCallback() {
|
|
7009
|
-
super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${
|
|
7166
|
+
super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${E7++}`), this._originalErrorMessage = this.errorMessage, this.addEventListener("invalid", this._handleInvalid);
|
|
7010
7167
|
}
|
|
7011
7168
|
disconnectedCallback() {
|
|
7012
7169
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -7109,6 +7266,7 @@ const f = (q = class extends v {
|
|
|
7109
7266
|
id=${this.id}
|
|
7110
7267
|
?disabled=${this.disabled}
|
|
7111
7268
|
?required=${this.required}
|
|
7269
|
+
?aria-required=${this.required}
|
|
7112
7270
|
?readonly=${this.readonly}
|
|
7113
7271
|
aria-disabled="${this.disabled}"
|
|
7114
7272
|
aria-label="${this.label} ${this.description}"
|
|
@@ -7151,73 +7309,73 @@ const f = (q = class extends v {
|
|
|
7151
7309
|
"tel",
|
|
7152
7310
|
"text",
|
|
7153
7311
|
"url"
|
|
7154
|
-
], q.VALID_WIDTHS = ["sm", "md", "lg", "full"], q.styles =
|
|
7312
|
+
], q.VALID_WIDTHS = ["sm", "md", "lg", "full"], q.styles = $7, q.formAssociated = !0, q);
|
|
7155
7313
|
m([
|
|
7156
7314
|
a({ type: String })
|
|
7157
|
-
],
|
|
7315
|
+
], g.prototype, "id", 2);
|
|
7158
7316
|
m([
|
|
7159
7317
|
a({ type: String, reflect: !0 })
|
|
7160
|
-
],
|
|
7318
|
+
], g.prototype, "name", 2);
|
|
7161
7319
|
m([
|
|
7162
7320
|
a({ reflect: !0 })
|
|
7163
|
-
],
|
|
7321
|
+
], g.prototype, "type", 1);
|
|
7164
7322
|
m([
|
|
7165
7323
|
a({ type: String })
|
|
7166
|
-
],
|
|
7324
|
+
], g.prototype, "label", 2);
|
|
7167
7325
|
m([
|
|
7168
7326
|
a({ type: String })
|
|
7169
|
-
],
|
|
7327
|
+
], g.prototype, "description", 2);
|
|
7170
7328
|
m([
|
|
7171
7329
|
a({ type: String })
|
|
7172
|
-
],
|
|
7330
|
+
], g.prototype, "placeholder", 2);
|
|
7173
7331
|
m([
|
|
7174
7332
|
a({ type: String })
|
|
7175
|
-
],
|
|
7333
|
+
], g.prototype, "value", 2);
|
|
7176
7334
|
m([
|
|
7177
7335
|
a({ type: Boolean, reflect: !0 })
|
|
7178
|
-
],
|
|
7336
|
+
], g.prototype, "disabled", 2);
|
|
7179
7337
|
m([
|
|
7180
7338
|
a({ type: Boolean, reflect: !0 })
|
|
7181
|
-
],
|
|
7339
|
+
], g.prototype, "readonly", 2);
|
|
7182
7340
|
m([
|
|
7183
7341
|
a({ type: Boolean, reflect: !0 })
|
|
7184
|
-
],
|
|
7342
|
+
], g.prototype, "required", 2);
|
|
7185
7343
|
m([
|
|
7186
7344
|
a({ type: Boolean, reflect: !0 })
|
|
7187
|
-
],
|
|
7345
|
+
], g.prototype, "optional", 2);
|
|
7188
7346
|
m([
|
|
7189
7347
|
a({ type: String })
|
|
7190
|
-
],
|
|
7348
|
+
], g.prototype, "form", 2);
|
|
7191
7349
|
m([
|
|
7192
7350
|
a({ type: String })
|
|
7193
|
-
],
|
|
7351
|
+
], g.prototype, "pattern", 2);
|
|
7194
7352
|
m([
|
|
7195
7353
|
a({ type: Number })
|
|
7196
|
-
],
|
|
7354
|
+
], g.prototype, "maxlength", 2);
|
|
7197
7355
|
m([
|
|
7198
7356
|
a({ reflect: !0 })
|
|
7199
|
-
],
|
|
7357
|
+
], g.prototype, "width", 2);
|
|
7200
7358
|
m([
|
|
7201
7359
|
a({ type: Number })
|
|
7202
|
-
],
|
|
7360
|
+
], g.prototype, "step", 2);
|
|
7203
7361
|
m([
|
|
7204
7362
|
a({ type: Number })
|
|
7205
|
-
],
|
|
7363
|
+
], g.prototype, "min", 2);
|
|
7206
7364
|
m([
|
|
7207
7365
|
a({ type: Number })
|
|
7208
|
-
],
|
|
7366
|
+
], g.prototype, "max", 2);
|
|
7209
7367
|
m([
|
|
7210
7368
|
a({ type: Boolean, reflect: !0 })
|
|
7211
|
-
],
|
|
7369
|
+
], g.prototype, "showError", 2);
|
|
7212
7370
|
m([
|
|
7213
7371
|
a({ type: String })
|
|
7214
|
-
],
|
|
7372
|
+
], g.prototype, "errorMessage", 2);
|
|
7215
7373
|
m([
|
|
7216
7374
|
x1()
|
|
7217
|
-
],
|
|
7218
|
-
let
|
|
7219
|
-
customElements.get("nys-textinput") || customElements.define("nys-textinput",
|
|
7220
|
-
const
|
|
7375
|
+
], g.prototype, "showPassword", 2);
|
|
7376
|
+
let M7 = g;
|
|
7377
|
+
customElements.get("nys-textinput") || customElements.define("nys-textinput", M7);
|
|
7378
|
+
const D7 = f`
|
|
7221
7379
|
:host {
|
|
7222
7380
|
/* Global Toggle Styles */
|
|
7223
7381
|
--_nys-toggle-width: var(--nys-font-size-8xl, 44px);
|
|
@@ -7494,12 +7652,12 @@ const $7 = b`
|
|
|
7494
7652
|
}
|
|
7495
7653
|
}
|
|
7496
7654
|
`;
|
|
7497
|
-
var
|
|
7498
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
7499
|
-
(
|
|
7500
|
-
return s && r &&
|
|
7655
|
+
var A7 = Object.defineProperty, V7 = Object.getOwnPropertyDescriptor, K = (o, t, e, s) => {
|
|
7656
|
+
for (var r = s > 1 ? void 0 : s ? V7(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
7657
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
7658
|
+
return s && r && A7(t, e, r), r;
|
|
7501
7659
|
};
|
|
7502
|
-
let
|
|
7660
|
+
let H7 = 0;
|
|
7503
7661
|
var s1;
|
|
7504
7662
|
const j = (s1 = class extends v {
|
|
7505
7663
|
// allows use of elementInternals' API
|
|
@@ -7516,7 +7674,7 @@ const j = (s1 = class extends v {
|
|
|
7516
7674
|
}
|
|
7517
7675
|
// Generate a unique ID if one is not provided
|
|
7518
7676
|
connectedCallback() {
|
|
7519
|
-
super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${
|
|
7677
|
+
super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${H7++}`);
|
|
7520
7678
|
}
|
|
7521
7679
|
/********************** Form Integration **********************/
|
|
7522
7680
|
// Update the internals whenever `checked` or `value` changes.
|
|
@@ -7590,7 +7748,7 @@ const j = (s1 = class extends v {
|
|
|
7590
7748
|
</label>
|
|
7591
7749
|
`;
|
|
7592
7750
|
}
|
|
7593
|
-
}, s1.VALID_SIZES = ["sm", "md"], s1.styles =
|
|
7751
|
+
}, s1.VALID_SIZES = ["sm", "md"], s1.styles = D7, s1.formAssociated = !0, s1);
|
|
7594
7752
|
K([
|
|
7595
7753
|
a({ type: String })
|
|
7596
7754
|
], j.prototype, "id", 2);
|
|
@@ -7621,9 +7779,9 @@ K([
|
|
|
7621
7779
|
K([
|
|
7622
7780
|
a({ type: String })
|
|
7623
7781
|
], j.prototype, "form", 2);
|
|
7624
|
-
let
|
|
7625
|
-
customElements.get("nys-toggle") || customElements.define("nys-toggle",
|
|
7626
|
-
const
|
|
7782
|
+
let U7 = j;
|
|
7783
|
+
customElements.get("nys-toggle") || customElements.define("nys-toggle", U7);
|
|
7784
|
+
const z7 = f`
|
|
7627
7785
|
:host {
|
|
7628
7786
|
/* Global Unav Header Styles */
|
|
7629
7787
|
--_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
|
|
@@ -7937,7 +8095,7 @@ const D7 = b`
|
|
|
7937
8095
|
display: contents;
|
|
7938
8096
|
}
|
|
7939
8097
|
}
|
|
7940
|
-
`,
|
|
8098
|
+
`, Z7 = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
7941
8099
|
<path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="#457AA5"/>
|
|
7942
8100
|
<path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="#457AA5"/>
|
|
7943
8101
|
<path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="#457AA5"/>
|
|
@@ -7969,18 +8127,18 @@ const D7 = b`
|
|
|
7969
8127
|
* Copyright 2019 Google LLC
|
|
7970
8128
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7971
8129
|
*/
|
|
7972
|
-
const
|
|
7973
|
-
let
|
|
8130
|
+
const C2 = globalThis, Y2 = C2.ShadowRoot && (C2.ShadyCSS === void 0 || C2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, nt = Symbol(), V5 = /* @__PURE__ */ new WeakMap();
|
|
8131
|
+
let P7 = class {
|
|
7974
8132
|
constructor(o, t, e) {
|
|
7975
|
-
if (this._$cssResult$ = !0, e !==
|
|
8133
|
+
if (this._$cssResult$ = !0, e !== nt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
7976
8134
|
this.cssText = o, this.t = t;
|
|
7977
8135
|
}
|
|
7978
8136
|
get styleSheet() {
|
|
7979
8137
|
let o = this.o;
|
|
7980
8138
|
const t = this.t;
|
|
7981
|
-
if (
|
|
8139
|
+
if (Y2 && o === void 0) {
|
|
7982
8140
|
const e = t !== void 0 && t.length === 1;
|
|
7983
|
-
e && (o =
|
|
8141
|
+
e && (o = V5.get(t)), o === void 0 && ((this.o = o = new CSSStyleSheet()).replaceSync(this.cssText), e && V5.set(t, o));
|
|
7984
8142
|
}
|
|
7985
8143
|
return o;
|
|
7986
8144
|
}
|
|
@@ -7988,26 +8146,26 @@ let V7 = class {
|
|
|
7988
8146
|
return this.cssText;
|
|
7989
8147
|
}
|
|
7990
8148
|
};
|
|
7991
|
-
const
|
|
7992
|
-
if (
|
|
8149
|
+
const O7 = (o) => new P7(typeof o == "string" ? o : o + "", void 0, nt), I7 = (o, t) => {
|
|
8150
|
+
if (Y2) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
7993
8151
|
else for (const e of t) {
|
|
7994
|
-
const s = document.createElement("style"), r =
|
|
8152
|
+
const s = document.createElement("style"), r = C2.litNonce;
|
|
7995
8153
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
7996
8154
|
}
|
|
7997
|
-
},
|
|
8155
|
+
}, H5 = Y2 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
7998
8156
|
let e = "";
|
|
7999
8157
|
for (const s of t.cssRules) e += s.cssText;
|
|
8000
|
-
return
|
|
8158
|
+
return O7(e);
|
|
8001
8159
|
})(o) : o;
|
|
8002
8160
|
/**
|
|
8003
8161
|
* @license
|
|
8004
8162
|
* Copyright 2017 Google LLC
|
|
8005
8163
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8006
8164
|
*/
|
|
8007
|
-
const { is:
|
|
8165
|
+
const { is: B7, defineProperty: T7, getOwnPropertyDescriptor: R7, getOwnPropertyNames: q7, getOwnPropertySymbols: N7, getPrototypeOf: j7 } = Object, U1 = globalThis, U5 = U1.trustedTypes, F7 = U5 ? U5.emptyScript : "", z5 = U1.reactiveElementPolyfillSupport, X1 = (o, t) => o, b2 = { toAttribute(o, t) {
|
|
8008
8166
|
switch (t) {
|
|
8009
8167
|
case Boolean:
|
|
8010
|
-
o = o ?
|
|
8168
|
+
o = o ? F7 : null;
|
|
8011
8169
|
break;
|
|
8012
8170
|
case Object:
|
|
8013
8171
|
case Array:
|
|
@@ -8032,7 +8190,7 @@ const { is: z7, defineProperty: Z7, getOwnPropertyDescriptor: P7, getOwnProperty
|
|
|
8032
8190
|
}
|
|
8033
8191
|
}
|
|
8034
8192
|
return e;
|
|
8035
|
-
} },
|
|
8193
|
+
} }, K2 = (o, t) => !B7(o, t), Z5 = { attribute: !0, type: String, converter: b2, reflect: !1, hasChanged: K2 };
|
|
8036
8194
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), U1.litPropertyMetadata ?? (U1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
8037
8195
|
class F1 extends HTMLElement {
|
|
8038
8196
|
static addInitializer(t) {
|
|
@@ -8041,37 +8199,37 @@ class F1 extends HTMLElement {
|
|
|
8041
8199
|
static get observedAttributes() {
|
|
8042
8200
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
8043
8201
|
}
|
|
8044
|
-
static createProperty(t, e =
|
|
8202
|
+
static createProperty(t, e = Z5) {
|
|
8045
8203
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
8046
8204
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
8047
|
-
r !== void 0 &&
|
|
8205
|
+
r !== void 0 && T7(this.prototype, t, r);
|
|
8048
8206
|
}
|
|
8049
8207
|
}
|
|
8050
8208
|
static getPropertyDescriptor(t, e, s) {
|
|
8051
|
-
const { get: r, set:
|
|
8209
|
+
const { get: r, set: n } = R7(this.prototype, t) ?? { get() {
|
|
8052
8210
|
return this[e];
|
|
8053
|
-
}, set(
|
|
8054
|
-
this[e] =
|
|
8211
|
+
}, set(i) {
|
|
8212
|
+
this[e] = i;
|
|
8055
8213
|
} };
|
|
8056
8214
|
return { get() {
|
|
8057
8215
|
return r == null ? void 0 : r.call(this);
|
|
8058
|
-
}, set(
|
|
8216
|
+
}, set(i) {
|
|
8059
8217
|
const l = r == null ? void 0 : r.call(this);
|
|
8060
|
-
|
|
8218
|
+
n.call(this, i), this.requestUpdate(t, l, s);
|
|
8061
8219
|
}, configurable: !0, enumerable: !0 };
|
|
8062
8220
|
}
|
|
8063
8221
|
static getPropertyOptions(t) {
|
|
8064
|
-
return this.elementProperties.get(t) ??
|
|
8222
|
+
return this.elementProperties.get(t) ?? Z5;
|
|
8065
8223
|
}
|
|
8066
8224
|
static _$Ei() {
|
|
8067
8225
|
if (this.hasOwnProperty(X1("elementProperties"))) return;
|
|
8068
|
-
const t =
|
|
8226
|
+
const t = j7(this);
|
|
8069
8227
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
8070
8228
|
}
|
|
8071
8229
|
static finalize() {
|
|
8072
8230
|
if (this.hasOwnProperty(X1("finalized"))) return;
|
|
8073
8231
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(X1("properties"))) {
|
|
8074
|
-
const e = this.properties, s = [...
|
|
8232
|
+
const e = this.properties, s = [...q7(e), ...N7(e)];
|
|
8075
8233
|
for (const r of s) this.createProperty(r, e[r]);
|
|
8076
8234
|
}
|
|
8077
8235
|
const t = this[Symbol.metadata];
|
|
@@ -8090,8 +8248,8 @@ class F1 extends HTMLElement {
|
|
|
8090
8248
|
const e = [];
|
|
8091
8249
|
if (Array.isArray(t)) {
|
|
8092
8250
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
8093
|
-
for (const r of s) e.unshift(
|
|
8094
|
-
} else t !== void 0 && e.push(
|
|
8251
|
+
for (const r of s) e.unshift(H5(r));
|
|
8252
|
+
} else t !== void 0 && e.push(H5(t));
|
|
8095
8253
|
return e;
|
|
8096
8254
|
}
|
|
8097
8255
|
static _$Eu(t, e) {
|
|
@@ -8120,7 +8278,7 @@ class F1 extends HTMLElement {
|
|
|
8120
8278
|
}
|
|
8121
8279
|
createRenderRoot() {
|
|
8122
8280
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
8123
|
-
return
|
|
8281
|
+
return I7(t, this.constructor.elementStyles), t;
|
|
8124
8282
|
}
|
|
8125
8283
|
connectedCallback() {
|
|
8126
8284
|
var t;
|
|
@@ -8143,23 +8301,23 @@ class F1 extends HTMLElement {
|
|
|
8143
8301
|
}
|
|
8144
8302
|
_$EC(t, e) {
|
|
8145
8303
|
var s;
|
|
8146
|
-
const r = this.constructor.elementProperties.get(t),
|
|
8147
|
-
if (
|
|
8148
|
-
const
|
|
8149
|
-
this._$Em = t,
|
|
8304
|
+
const r = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, r);
|
|
8305
|
+
if (n !== void 0 && r.reflect === !0) {
|
|
8306
|
+
const i = (((s = r.converter) == null ? void 0 : s.toAttribute) !== void 0 ? r.converter : b2).toAttribute(e, r.type);
|
|
8307
|
+
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
8150
8308
|
}
|
|
8151
8309
|
}
|
|
8152
8310
|
_$AK(t, e) {
|
|
8153
8311
|
var s;
|
|
8154
|
-
const r = this.constructor,
|
|
8155
|
-
if (
|
|
8156
|
-
const
|
|
8157
|
-
this._$Em =
|
|
8312
|
+
const r = this.constructor, n = r._$Eh.get(t);
|
|
8313
|
+
if (n !== void 0 && this._$Em !== n) {
|
|
8314
|
+
const i = r.getPropertyOptions(n), l = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((s = i.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? i.converter : b2;
|
|
8315
|
+
this._$Em = n, this[n] = l.fromAttribute(e, i.type), this._$Em = null;
|
|
8158
8316
|
}
|
|
8159
8317
|
}
|
|
8160
8318
|
requestUpdate(t, e, s) {
|
|
8161
8319
|
if (t !== void 0) {
|
|
8162
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
|
8320
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? K2)(this[t], e)) return;
|
|
8163
8321
|
this.P(t, e, s);
|
|
8164
8322
|
}
|
|
8165
8323
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -8185,18 +8343,18 @@ class F1 extends HTMLElement {
|
|
|
8185
8343
|
if (!this.isUpdatePending) return;
|
|
8186
8344
|
if (!this.hasUpdated) {
|
|
8187
8345
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
8188
|
-
for (const [
|
|
8346
|
+
for (const [n, i] of this._$Ep) this[n] = i;
|
|
8189
8347
|
this._$Ep = void 0;
|
|
8190
8348
|
}
|
|
8191
8349
|
const r = this.constructor.elementProperties;
|
|
8192
|
-
if (r.size > 0) for (const [
|
|
8350
|
+
if (r.size > 0) for (const [n, i] of r) i.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], i);
|
|
8193
8351
|
}
|
|
8194
8352
|
let e = !1;
|
|
8195
8353
|
const s = this._$AL;
|
|
8196
8354
|
try {
|
|
8197
8355
|
e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((r) => {
|
|
8198
|
-
var
|
|
8199
|
-
return (
|
|
8356
|
+
var n;
|
|
8357
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
8200
8358
|
}), this.update(s)) : this._$EU();
|
|
8201
8359
|
} catch (r) {
|
|
8202
8360
|
throw e = !1, this._$EU(), r;
|
|
@@ -8232,37 +8390,37 @@ class F1 extends HTMLElement {
|
|
|
8232
8390
|
firstUpdated(t) {
|
|
8233
8391
|
}
|
|
8234
8392
|
}
|
|
8235
|
-
F1.elementStyles = [], F1.shadowRootOptions = { mode: "open" }, F1[X1("elementProperties")] = /* @__PURE__ */ new Map(), F1[X1("finalized")] = /* @__PURE__ */ new Map(),
|
|
8393
|
+
F1.elementStyles = [], F1.shadowRootOptions = { mode: "open" }, F1[X1("elementProperties")] = /* @__PURE__ */ new Map(), F1[X1("finalized")] = /* @__PURE__ */ new Map(), z5 == null || z5({ ReactiveElement: F1 }), (U1.reactiveElementVersions ?? (U1.reactiveElementVersions = [])).push("2.0.4");
|
|
8236
8394
|
/**
|
|
8237
8395
|
* @license
|
|
8238
8396
|
* Copyright 2017 Google LLC
|
|
8239
8397
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8240
8398
|
*/
|
|
8241
|
-
const
|
|
8399
|
+
const G7 = { attribute: !0, type: String, converter: b2, reflect: !1, hasChanged: K2 }, W7 = (o = G7, t, e) => {
|
|
8242
8400
|
const { kind: s, metadata: r } = e;
|
|
8243
|
-
let
|
|
8244
|
-
if (
|
|
8245
|
-
const { name:
|
|
8401
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
|
8402
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, o), s === "accessor") {
|
|
8403
|
+
const { name: i } = e;
|
|
8246
8404
|
return { set(l) {
|
|
8247
8405
|
const c = t.get.call(this);
|
|
8248
|
-
t.set.call(this, l), this.requestUpdate(
|
|
8406
|
+
t.set.call(this, l), this.requestUpdate(i, c, o);
|
|
8249
8407
|
}, init(l) {
|
|
8250
|
-
return l !== void 0 && this.P(
|
|
8408
|
+
return l !== void 0 && this.P(i, void 0, o), l;
|
|
8251
8409
|
} };
|
|
8252
8410
|
}
|
|
8253
8411
|
if (s === "setter") {
|
|
8254
|
-
const { name:
|
|
8412
|
+
const { name: i } = e;
|
|
8255
8413
|
return function(l) {
|
|
8256
|
-
const c = this[
|
|
8257
|
-
t.call(this, l), this.requestUpdate(
|
|
8414
|
+
const c = this[i];
|
|
8415
|
+
t.call(this, l), this.requestUpdate(i, c, o);
|
|
8258
8416
|
};
|
|
8259
8417
|
}
|
|
8260
8418
|
throw Error("Unsupported decorator location: " + s);
|
|
8261
8419
|
};
|
|
8262
8420
|
function w(o) {
|
|
8263
|
-
return (t, e) => typeof e == "object" ?
|
|
8264
|
-
const
|
|
8265
|
-
return r.constructor.createProperty(
|
|
8421
|
+
return (t, e) => typeof e == "object" ? W7(o, t, e) : ((s, r, n) => {
|
|
8422
|
+
const i = r.hasOwnProperty(n);
|
|
8423
|
+
return r.constructor.createProperty(n, i ? { ...s, wrapped: !0 } : s), i ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
|
8266
8424
|
})(o, t, e);
|
|
8267
8425
|
}
|
|
8268
8426
|
/**
|
|
@@ -8270,10 +8428,10 @@ function w(o) {
|
|
|
8270
8428
|
* Copyright 2017 Google LLC
|
|
8271
8429
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8272
8430
|
*/
|
|
8273
|
-
function
|
|
8431
|
+
function Y7(o) {
|
|
8274
8432
|
return w({ ...o, state: !0, attribute: !1 });
|
|
8275
8433
|
}
|
|
8276
|
-
const
|
|
8434
|
+
const K7 = f`
|
|
8277
8435
|
:host {
|
|
8278
8436
|
/* Anything that can be overridden should be defined here */
|
|
8279
8437
|
|
|
@@ -8438,55 +8596,55 @@ const j7 = b`
|
|
|
8438
8596
|
* Copyright 2017 Google LLC
|
|
8439
8597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8440
8598
|
*/
|
|
8441
|
-
const
|
|
8442
|
-
\f\r]`, G1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
8443
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
8444
|
-
function
|
|
8445
|
-
if (!
|
|
8446
|
-
return
|
|
8599
|
+
const m2 = globalThis, w2 = m2.trustedTypes, P5 = w2 ? w2.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, it = "$lit$", c1 = `lit$${Math.random().toFixed(9).slice(2)}$`, at = "?" + c1, J7 = `<${at}>`, w1 = document, x2 = () => w1.createComment(""), s2 = (o) => o === null || typeof o != "object" && typeof o != "function", J2 = Array.isArray, X7 = (o) => J2(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", H2 = `[
|
|
8600
|
+
\f\r]`, G1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, O5 = /-->/g, I5 = />/g, v1 = RegExp(`>|${H2}(?:([^\\s"'>=/]+)(${H2}*=${H2}*(?:[^
|
|
8601
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), B5 = /'/g, T5 = /"/g, lt = /^(?:script|style|textarea|title)$/i, r2 = Symbol.for("lit-noChange"), S = Symbol.for("lit-nothing"), R5 = /* @__PURE__ */ new WeakMap(), _1 = w1.createTreeWalker(w1, 129);
|
|
8602
|
+
function ct(o, t) {
|
|
8603
|
+
if (!J2(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
8604
|
+
return P5 !== void 0 ? P5.createHTML(t) : t;
|
|
8447
8605
|
}
|
|
8448
|
-
const
|
|
8606
|
+
const Q7 = (o, t) => {
|
|
8449
8607
|
const e = o.length - 1, s = [];
|
|
8450
|
-
let r,
|
|
8608
|
+
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = G1;
|
|
8451
8609
|
for (let l = 0; l < e; l++) {
|
|
8452
8610
|
const c = o[l];
|
|
8453
|
-
let C, y, d = -1,
|
|
8454
|
-
for (;
|
|
8455
|
-
const k =
|
|
8456
|
-
|
|
8611
|
+
let C, y, d = -1, b = 0;
|
|
8612
|
+
for (; b < c.length && (i.lastIndex = b, y = i.exec(c), y !== null); ) b = i.lastIndex, i === G1 ? y[1] === "!--" ? i = O5 : y[1] !== void 0 ? i = I5 : y[2] !== void 0 ? (lt.test(y[2]) && (r = RegExp("</" + y[2], "g")), i = v1) : y[3] !== void 0 && (i = v1) : i === v1 ? y[0] === ">" ? (i = r ?? G1, d = -1) : y[1] === void 0 ? d = -2 : (d = i.lastIndex - y[2].length, C = y[1], i = y[3] === void 0 ? v1 : y[3] === '"' ? T5 : B5) : i === T5 || i === B5 ? i = v1 : i === O5 || i === I5 ? i = G1 : (i = v1, r = void 0);
|
|
8613
|
+
const k = i === v1 && o[l + 1].startsWith("/>") ? " " : "";
|
|
8614
|
+
n += i === G1 ? c + J7 : d >= 0 ? (s.push(C), c.slice(0, d) + it + c.slice(d) + c1 + k) : c + c1 + (d === -2 ? l : k);
|
|
8457
8615
|
}
|
|
8458
|
-
return [
|
|
8616
|
+
return [ct(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
8459
8617
|
};
|
|
8460
|
-
class
|
|
8618
|
+
class o2 {
|
|
8461
8619
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
8462
8620
|
let r;
|
|
8463
8621
|
this.parts = [];
|
|
8464
|
-
let
|
|
8465
|
-
const l = t.length - 1, c = this.parts, [C, y] =
|
|
8466
|
-
if (this.el =
|
|
8622
|
+
let n = 0, i = 0;
|
|
8623
|
+
const l = t.length - 1, c = this.parts, [C, y] = Q7(t, e);
|
|
8624
|
+
if (this.el = o2.createElement(C, s), _1.currentNode = this.el.content, e === 2 || e === 3) {
|
|
8467
8625
|
const d = this.el.content.firstChild;
|
|
8468
8626
|
d.replaceWith(...d.childNodes);
|
|
8469
8627
|
}
|
|
8470
8628
|
for (; (r = _1.nextNode()) !== null && c.length < l; ) {
|
|
8471
8629
|
if (r.nodeType === 1) {
|
|
8472
|
-
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(
|
|
8473
|
-
const
|
|
8474
|
-
c.push({ type: 1, index:
|
|
8475
|
-
} else d.startsWith(c1) && (c.push({ type: 6, index:
|
|
8476
|
-
if (
|
|
8477
|
-
const d = r.textContent.split(c1),
|
|
8478
|
-
if (
|
|
8479
|
-
r.textContent =
|
|
8480
|
-
for (let k = 0; k <
|
|
8481
|
-
r.append(d[
|
|
8630
|
+
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(it)) {
|
|
8631
|
+
const b = y[i++], k = r.getAttribute(d).split(c1), J = /([.?@])?(.*)/.exec(b);
|
|
8632
|
+
c.push({ type: 1, index: n, name: J[2], strings: k, ctor: J[1] === "." ? e3 : J[1] === "?" ? s3 : J[1] === "@" ? r3 : A2 }), r.removeAttribute(d);
|
|
8633
|
+
} else d.startsWith(c1) && (c.push({ type: 6, index: n }), r.removeAttribute(d));
|
|
8634
|
+
if (lt.test(r.tagName)) {
|
|
8635
|
+
const d = r.textContent.split(c1), b = d.length - 1;
|
|
8636
|
+
if (b > 0) {
|
|
8637
|
+
r.textContent = w2 ? w2.emptyScript : "";
|
|
8638
|
+
for (let k = 0; k < b; k++) r.append(d[k], x2()), _1.nextNode(), c.push({ type: 2, index: ++n });
|
|
8639
|
+
r.append(d[b], x2());
|
|
8482
8640
|
}
|
|
8483
8641
|
}
|
|
8484
|
-
} else if (r.nodeType === 8) if (r.data ===
|
|
8642
|
+
} else if (r.nodeType === 8) if (r.data === at) c.push({ type: 2, index: n });
|
|
8485
8643
|
else {
|
|
8486
8644
|
let d = -1;
|
|
8487
|
-
for (; (d = r.data.indexOf(c1, d + 1)) !== -1; ) c.push({ type: 7, index:
|
|
8645
|
+
for (; (d = r.data.indexOf(c1, d + 1)) !== -1; ) c.push({ type: 7, index: n }), d += c1.length - 1;
|
|
8488
8646
|
}
|
|
8489
|
-
|
|
8647
|
+
n++;
|
|
8490
8648
|
}
|
|
8491
8649
|
}
|
|
8492
8650
|
static createElement(t, e) {
|
|
@@ -8495,13 +8653,13 @@ class r2 {
|
|
|
8495
8653
|
}
|
|
8496
8654
|
}
|
|
8497
8655
|
function z1(o, t, e = o, s) {
|
|
8498
|
-
var r,
|
|
8499
|
-
if (t ===
|
|
8500
|
-
let
|
|
8501
|
-
const l =
|
|
8502
|
-
return (
|
|
8656
|
+
var r, n;
|
|
8657
|
+
if (t === r2) return t;
|
|
8658
|
+
let i = s !== void 0 ? (r = e._$Co) == null ? void 0 : r[s] : e._$Cl;
|
|
8659
|
+
const l = s2(t) ? void 0 : t._$litDirective$;
|
|
8660
|
+
return (i == null ? void 0 : i.constructor) !== l && ((n = i == null ? void 0 : i._$AO) == null || n.call(i, !1), l === void 0 ? i = void 0 : (i = new l(o), i._$AT(o, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = z1(o, i._$AS(o, t.values), i, s)), t;
|
|
8503
8661
|
}
|
|
8504
|
-
class
|
|
8662
|
+
class t3 {
|
|
8505
8663
|
constructor(t, e) {
|
|
8506
8664
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
8507
8665
|
}
|
|
@@ -8514,13 +8672,13 @@ class Y7 {
|
|
|
8514
8672
|
u(t) {
|
|
8515
8673
|
const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? w1).importNode(e, !0);
|
|
8516
8674
|
_1.currentNode = r;
|
|
8517
|
-
let
|
|
8675
|
+
let n = _1.nextNode(), i = 0, l = 0, c = s[0];
|
|
8518
8676
|
for (; c !== void 0; ) {
|
|
8519
|
-
if (
|
|
8677
|
+
if (i === c.index) {
|
|
8520
8678
|
let C;
|
|
8521
|
-
c.type === 2 ? C = new
|
|
8679
|
+
c.type === 2 ? C = new D2(n, n.nextSibling, this, t) : c.type === 1 ? C = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (C = new o3(n, this, t)), this._$AV.push(C), c = s[++l];
|
|
8522
8680
|
}
|
|
8523
|
-
|
|
8681
|
+
i !== (c == null ? void 0 : c.index) && (n = _1.nextNode(), i++);
|
|
8524
8682
|
}
|
|
8525
8683
|
return _1.currentNode = w1, r;
|
|
8526
8684
|
}
|
|
@@ -8529,7 +8687,7 @@ class Y7 {
|
|
|
8529
8687
|
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++;
|
|
8530
8688
|
}
|
|
8531
8689
|
}
|
|
8532
|
-
class
|
|
8690
|
+
class D2 {
|
|
8533
8691
|
get _$AU() {
|
|
8534
8692
|
var t;
|
|
8535
8693
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -8549,7 +8707,7 @@ class E2 {
|
|
|
8549
8707
|
return this._$AB;
|
|
8550
8708
|
}
|
|
8551
8709
|
_$AI(t, e = this) {
|
|
8552
|
-
t = z1(this, t, e),
|
|
8710
|
+
t = z1(this, t, e), s2(t) ? t === S || t == null || t === "" ? (this._$AH !== S && this._$AR(), this._$AH = S) : t !== this._$AH && t !== r2 && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : X7(t) ? this.k(t) : this._(t);
|
|
8553
8711
|
}
|
|
8554
8712
|
O(t) {
|
|
8555
8713
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -8558,26 +8716,26 @@ class E2 {
|
|
|
8558
8716
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
8559
8717
|
}
|
|
8560
8718
|
_(t) {
|
|
8561
|
-
this._$AH !== S &&
|
|
8719
|
+
this._$AH !== S && s2(this._$AH) ? this._$AA.nextSibling.data = t : this.T(w1.createTextNode(t)), this._$AH = t;
|
|
8562
8720
|
}
|
|
8563
8721
|
$(t) {
|
|
8564
8722
|
var e;
|
|
8565
|
-
const { values: s, _$litType$: r } = t,
|
|
8566
|
-
if (((e = this._$AH) == null ? void 0 : e._$AD) ===
|
|
8723
|
+
const { values: s, _$litType$: r } = t, n = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = o2.createElement(ct(r.h, r.h[0]), this.options)), r);
|
|
8724
|
+
if (((e = this._$AH) == null ? void 0 : e._$AD) === n) this._$AH.p(s);
|
|
8567
8725
|
else {
|
|
8568
|
-
const
|
|
8569
|
-
|
|
8726
|
+
const i = new t3(n, this), l = i.u(this.options);
|
|
8727
|
+
i.p(s), this.T(l), this._$AH = i;
|
|
8570
8728
|
}
|
|
8571
8729
|
}
|
|
8572
8730
|
_$AC(t) {
|
|
8573
|
-
let e =
|
|
8574
|
-
return e === void 0 &&
|
|
8731
|
+
let e = R5.get(t.strings);
|
|
8732
|
+
return e === void 0 && R5.set(t.strings, e = new o2(t)), e;
|
|
8575
8733
|
}
|
|
8576
8734
|
k(t) {
|
|
8577
|
-
|
|
8735
|
+
J2(this._$AH) || (this._$AH = [], this._$AR());
|
|
8578
8736
|
const e = this._$AH;
|
|
8579
8737
|
let s, r = 0;
|
|
8580
|
-
for (const
|
|
8738
|
+
for (const n of t) r === e.length ? e.push(s = new D2(this.O(x2()), this.O(x2()), this, this.options)) : s = e[r], s._$AI(n), r++;
|
|
8581
8739
|
r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
|
|
8582
8740
|
}
|
|
8583
8741
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -8592,32 +8750,32 @@ class E2 {
|
|
|
8592
8750
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
8593
8751
|
}
|
|
8594
8752
|
}
|
|
8595
|
-
class
|
|
8753
|
+
class A2 {
|
|
8596
8754
|
get tagName() {
|
|
8597
8755
|
return this.element.tagName;
|
|
8598
8756
|
}
|
|
8599
8757
|
get _$AU() {
|
|
8600
8758
|
return this._$AM._$AU;
|
|
8601
8759
|
}
|
|
8602
|
-
constructor(t, e, s, r,
|
|
8603
|
-
this.type = 1, this._$AH = S, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options =
|
|
8760
|
+
constructor(t, e, s, r, n) {
|
|
8761
|
+
this.type = 1, this._$AH = S, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = S;
|
|
8604
8762
|
}
|
|
8605
8763
|
_$AI(t, e = this, s, r) {
|
|
8606
|
-
const
|
|
8607
|
-
let
|
|
8608
|
-
if (
|
|
8764
|
+
const n = this.strings;
|
|
8765
|
+
let i = !1;
|
|
8766
|
+
if (n === void 0) t = z1(this, t, e, 0), i = !s2(t) || t !== this._$AH && t !== r2, i && (this._$AH = t);
|
|
8609
8767
|
else {
|
|
8610
8768
|
const l = t;
|
|
8611
8769
|
let c, C;
|
|
8612
|
-
for (t =
|
|
8770
|
+
for (t = n[0], c = 0; c < n.length - 1; c++) C = z1(this, l[s + c], e, c), C === r2 && (C = this._$AH[c]), i || (i = !s2(C) || C !== this._$AH[c]), C === S ? t = S : t !== S && (t += (C ?? "") + n[c + 1]), this._$AH[c] = C;
|
|
8613
8771
|
}
|
|
8614
|
-
|
|
8772
|
+
i && !r && this.j(t);
|
|
8615
8773
|
}
|
|
8616
8774
|
j(t) {
|
|
8617
8775
|
t === S ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
8618
8776
|
}
|
|
8619
8777
|
}
|
|
8620
|
-
class
|
|
8778
|
+
class e3 extends A2 {
|
|
8621
8779
|
constructor() {
|
|
8622
8780
|
super(...arguments), this.type = 3;
|
|
8623
8781
|
}
|
|
@@ -8625,7 +8783,7 @@ class K7 extends D2 {
|
|
|
8625
8783
|
this.element[this.name] = t === S ? void 0 : t;
|
|
8626
8784
|
}
|
|
8627
8785
|
}
|
|
8628
|
-
class
|
|
8786
|
+
class s3 extends A2 {
|
|
8629
8787
|
constructor() {
|
|
8630
8788
|
super(...arguments), this.type = 4;
|
|
8631
8789
|
}
|
|
@@ -8633,21 +8791,21 @@ class J7 extends D2 {
|
|
|
8633
8791
|
this.element.toggleAttribute(this.name, !!t && t !== S);
|
|
8634
8792
|
}
|
|
8635
8793
|
}
|
|
8636
|
-
class
|
|
8637
|
-
constructor(t, e, s, r,
|
|
8638
|
-
super(t, e, s, r,
|
|
8794
|
+
class r3 extends A2 {
|
|
8795
|
+
constructor(t, e, s, r, n) {
|
|
8796
|
+
super(t, e, s, r, n), this.type = 5;
|
|
8639
8797
|
}
|
|
8640
8798
|
_$AI(t, e = this) {
|
|
8641
|
-
if ((t = z1(this, t, e, 0) ?? S) ===
|
|
8642
|
-
const s = this._$AH, r = t === S && s !== S || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
8643
|
-
r && this.element.removeEventListener(this.name, this, s),
|
|
8799
|
+
if ((t = z1(this, t, e, 0) ?? S) === r2) return;
|
|
8800
|
+
const s = this._$AH, r = t === S && s !== S || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== S && (s === S || r);
|
|
8801
|
+
r && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
8644
8802
|
}
|
|
8645
8803
|
handleEvent(t) {
|
|
8646
8804
|
var e;
|
|
8647
8805
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
8648
8806
|
}
|
|
8649
8807
|
}
|
|
8650
|
-
class
|
|
8808
|
+
class o3 {
|
|
8651
8809
|
constructor(t, e, s) {
|
|
8652
8810
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
8653
8811
|
}
|
|
@@ -8658,22 +8816,22 @@ class Q7 {
|
|
|
8658
8816
|
z1(this, t);
|
|
8659
8817
|
}
|
|
8660
8818
|
}
|
|
8661
|
-
const
|
|
8662
|
-
|
|
8819
|
+
const q5 = m2.litHtmlPolyfillSupport;
|
|
8820
|
+
q5 == null || q5(o2, D2), (m2.litHtmlVersions ?? (m2.litHtmlVersions = [])).push("3.2.1");
|
|
8663
8821
|
/**
|
|
8664
8822
|
* @license
|
|
8665
8823
|
* Copyright 2018 Google LLC
|
|
8666
8824
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8667
8825
|
*/
|
|
8668
8826
|
const f1 = (o) => o ?? S;
|
|
8669
|
-
var
|
|
8670
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
8671
|
-
(
|
|
8672
|
-
return s && r &&
|
|
8827
|
+
var n3 = Object.defineProperty, i3 = Object.getOwnPropertyDescriptor, x = (o, t, e, s) => {
|
|
8828
|
+
for (var r = s > 1 ? void 0 : s ? i3(t, e) : t, n = o.length - 1, i; n >= 0; n--)
|
|
8829
|
+
(i = o[n]) && (r = (s ? i(t, e, r) : i(r)) || r);
|
|
8830
|
+
return s && r && n3(t, e, r), r;
|
|
8673
8831
|
};
|
|
8674
|
-
let
|
|
8832
|
+
let a3 = 0;
|
|
8675
8833
|
var a1;
|
|
8676
|
-
const
|
|
8834
|
+
const _ = (a1 = class extends v {
|
|
8677
8835
|
// allows use of elementInternals' API
|
|
8678
8836
|
constructor() {
|
|
8679
8837
|
super(), this.id = "", this.name = "", this._type = "text", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.pattern = "", this.maxlength = null, this.width = "full", this.step = null, this.min = null, this.max = null, this.showError = !1, this.errorMessage = "", this.showPassword = !1, this._originalErrorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
@@ -8692,7 +8850,7 @@ const g = (a1 = class extends v {
|
|
|
8692
8850
|
}
|
|
8693
8851
|
// Generate a unique ID if one is not provided
|
|
8694
8852
|
connectedCallback() {
|
|
8695
|
-
super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${
|
|
8853
|
+
super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${a3++}`), this._originalErrorMessage = this.errorMessage, this.addEventListener("invalid", this._handleInvalid);
|
|
8696
8854
|
}
|
|
8697
8855
|
disconnectedCallback() {
|
|
8698
8856
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -8795,6 +8953,7 @@ const g = (a1 = class extends v {
|
|
|
8795
8953
|
id=${this.id}
|
|
8796
8954
|
?disabled=${this.disabled}
|
|
8797
8955
|
?required=${this.required}
|
|
8956
|
+
?aria-required=${this.required}
|
|
8798
8957
|
?readonly=${this.readonly}
|
|
8799
8958
|
aria-disabled="${this.disabled}"
|
|
8800
8959
|
aria-label="${this.label} ${this.description}"
|
|
@@ -8837,78 +8996,78 @@ const g = (a1 = class extends v {
|
|
|
8837
8996
|
"tel",
|
|
8838
8997
|
"text",
|
|
8839
8998
|
"url"
|
|
8840
|
-
], a1.VALID_WIDTHS = ["sm", "md", "lg", "full"], a1.styles =
|
|
8999
|
+
], a1.VALID_WIDTHS = ["sm", "md", "lg", "full"], a1.styles = K7, a1.formAssociated = !0, a1);
|
|
8841
9000
|
x([
|
|
8842
9001
|
w({ type: String })
|
|
8843
|
-
],
|
|
9002
|
+
], _.prototype, "id", 2);
|
|
8844
9003
|
x([
|
|
8845
9004
|
w({ type: String, reflect: !0 })
|
|
8846
|
-
],
|
|
9005
|
+
], _.prototype, "name", 2);
|
|
8847
9006
|
x([
|
|
8848
9007
|
w({ reflect: !0 })
|
|
8849
|
-
],
|
|
9008
|
+
], _.prototype, "type", 1);
|
|
8850
9009
|
x([
|
|
8851
9010
|
w({ type: String })
|
|
8852
|
-
],
|
|
9011
|
+
], _.prototype, "label", 2);
|
|
8853
9012
|
x([
|
|
8854
9013
|
w({ type: String })
|
|
8855
|
-
],
|
|
9014
|
+
], _.prototype, "description", 2);
|
|
8856
9015
|
x([
|
|
8857
9016
|
w({ type: String })
|
|
8858
|
-
],
|
|
9017
|
+
], _.prototype, "placeholder", 2);
|
|
8859
9018
|
x([
|
|
8860
9019
|
w({ type: String })
|
|
8861
|
-
],
|
|
9020
|
+
], _.prototype, "value", 2);
|
|
8862
9021
|
x([
|
|
8863
9022
|
w({ type: Boolean, reflect: !0 })
|
|
8864
|
-
],
|
|
9023
|
+
], _.prototype, "disabled", 2);
|
|
8865
9024
|
x([
|
|
8866
9025
|
w({ type: Boolean, reflect: !0 })
|
|
8867
|
-
],
|
|
9026
|
+
], _.prototype, "readonly", 2);
|
|
8868
9027
|
x([
|
|
8869
9028
|
w({ type: Boolean, reflect: !0 })
|
|
8870
|
-
],
|
|
9029
|
+
], _.prototype, "required", 2);
|
|
8871
9030
|
x([
|
|
8872
9031
|
w({ type: Boolean, reflect: !0 })
|
|
8873
|
-
],
|
|
9032
|
+
], _.prototype, "optional", 2);
|
|
8874
9033
|
x([
|
|
8875
9034
|
w({ type: String })
|
|
8876
|
-
],
|
|
9035
|
+
], _.prototype, "form", 2);
|
|
8877
9036
|
x([
|
|
8878
9037
|
w({ type: String })
|
|
8879
|
-
],
|
|
9038
|
+
], _.prototype, "pattern", 2);
|
|
8880
9039
|
x([
|
|
8881
9040
|
w({ type: Number })
|
|
8882
|
-
],
|
|
9041
|
+
], _.prototype, "maxlength", 2);
|
|
8883
9042
|
x([
|
|
8884
9043
|
w({ reflect: !0 })
|
|
8885
|
-
],
|
|
9044
|
+
], _.prototype, "width", 2);
|
|
8886
9045
|
x([
|
|
8887
9046
|
w({ type: Number })
|
|
8888
|
-
],
|
|
9047
|
+
], _.prototype, "step", 2);
|
|
8889
9048
|
x([
|
|
8890
9049
|
w({ type: Number })
|
|
8891
|
-
],
|
|
9050
|
+
], _.prototype, "min", 2);
|
|
8892
9051
|
x([
|
|
8893
9052
|
w({ type: Number })
|
|
8894
|
-
],
|
|
9053
|
+
], _.prototype, "max", 2);
|
|
8895
9054
|
x([
|
|
8896
9055
|
w({ type: Boolean, reflect: !0 })
|
|
8897
|
-
],
|
|
9056
|
+
], _.prototype, "showError", 2);
|
|
8898
9057
|
x([
|
|
8899
9058
|
w({ type: String })
|
|
8900
|
-
],
|
|
9059
|
+
], _.prototype, "errorMessage", 2);
|
|
8901
9060
|
x([
|
|
8902
|
-
|
|
8903
|
-
],
|
|
8904
|
-
let
|
|
8905
|
-
customElements.get("nys-textinput") || customElements.define("nys-textinput",
|
|
8906
|
-
var
|
|
8907
|
-
for (var r = void 0,
|
|
8908
|
-
(
|
|
8909
|
-
return r &&
|
|
9061
|
+
Y7()
|
|
9062
|
+
], _.prototype, "showPassword", 2);
|
|
9063
|
+
let l3 = _;
|
|
9064
|
+
customElements.get("nys-textinput") || customElements.define("nys-textinput", l3);
|
|
9065
|
+
var c3 = Object.defineProperty, L1 = (o, t, e, s) => {
|
|
9066
|
+
for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
|
|
9067
|
+
(i = o[n]) && (r = i(t, e, r) || r);
|
|
9068
|
+
return r && c3(t, e, r), r;
|
|
8910
9069
|
};
|
|
8911
|
-
const
|
|
9070
|
+
const e5 = class e5 extends v {
|
|
8912
9071
|
constructor() {
|
|
8913
9072
|
super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
|
|
8914
9073
|
["English", ""],
|
|
@@ -8928,7 +9087,7 @@ const Q2 = class Q2 extends v {
|
|
|
8928
9087
|
];
|
|
8929
9088
|
}
|
|
8930
9089
|
_getNysLogo() {
|
|
8931
|
-
return new DOMParser().parseFromString(
|
|
9090
|
+
return new DOMParser().parseFromString(Z7, "image/svg+xml").documentElement;
|
|
8932
9091
|
}
|
|
8933
9092
|
_toggleTrustbar() {
|
|
8934
9093
|
this.trustbarVisible = !this.trustbarVisible, this.trustbarVisible && (this.languageVisible = !1, this.searchDropdownVisible = !1);
|
|
@@ -8969,10 +9128,14 @@ const Q2 = class Q2 extends v {
|
|
|
8969
9128
|
<nys-button
|
|
8970
9129
|
id="nys-unavheader__know"
|
|
8971
9130
|
label="Here's how you know"
|
|
9131
|
+
ariaLabel="Here's how you know"
|
|
8972
9132
|
variant="ghost"
|
|
8973
9133
|
size="sm"
|
|
8974
9134
|
suffixIcon="slotted"
|
|
8975
9135
|
@click="${this._toggleTrustbar}"
|
|
9136
|
+
@keydown="${(t) => {
|
|
9137
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleTrustbar();
|
|
9138
|
+
}}"
|
|
8976
9139
|
>
|
|
8977
9140
|
<nys-icon
|
|
8978
9141
|
slot="suffix-icon"
|
|
@@ -8987,7 +9150,11 @@ const Q2 = class Q2 extends v {
|
|
|
8987
9150
|
variant="ghost"
|
|
8988
9151
|
prefixIcon="close"
|
|
8989
9152
|
size="sm"
|
|
9153
|
+
ariaLabel="Close trustbar"
|
|
8990
9154
|
@click="${this._toggleTrustbar}"
|
|
9155
|
+
@keydown="${(t) => {
|
|
9156
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleTrustbar();
|
|
9157
|
+
}}"
|
|
8991
9158
|
></nys-button>` : null}
|
|
8992
9159
|
</div>
|
|
8993
9160
|
<div
|
|
@@ -9038,7 +9205,11 @@ const Q2 = class Q2 extends v {
|
|
|
9038
9205
|
variant="ghost"
|
|
9039
9206
|
size="sm"
|
|
9040
9207
|
suffixIcon="slotted"
|
|
9208
|
+
ariaLabel="Here's how you know"
|
|
9041
9209
|
@click="${this._toggleTrustbar}"
|
|
9210
|
+
@keydown="${(t) => {
|
|
9211
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleTrustbar();
|
|
9212
|
+
}}"
|
|
9042
9213
|
>
|
|
9043
9214
|
<nys-icon
|
|
9044
9215
|
slot="suffix-icon"
|
|
@@ -9057,9 +9228,13 @@ const Q2 = class Q2 extends v {
|
|
|
9057
9228
|
<nys-button
|
|
9058
9229
|
variant="ghost"
|
|
9059
9230
|
prefixIcon="language"
|
|
9231
|
+
ariaLabel="Translate"
|
|
9060
9232
|
id="nys-unavheader__translate"
|
|
9061
9233
|
class="nys-unavheader__iconbutton"
|
|
9062
9234
|
@click="${this._toggleLanguageList}"
|
|
9235
|
+
@keydown="${(t) => {
|
|
9236
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleLanguageList();
|
|
9237
|
+
}}"
|
|
9063
9238
|
></nys-button>
|
|
9064
9239
|
</div>
|
|
9065
9240
|
<div class="nys-unavheader__lg nys-unavheader__xl">
|
|
@@ -9068,8 +9243,12 @@ const Q2 = class Q2 extends v {
|
|
|
9068
9243
|
label="Translate"
|
|
9069
9244
|
prefixIcon="language_filled"
|
|
9070
9245
|
suffixIcon=${this.languageVisible ? "chevron_up" : "chevron_down"}
|
|
9246
|
+
ariaLabel="Translate"
|
|
9071
9247
|
id="nys-unavheader__translate"
|
|
9072
9248
|
@click="${this._toggleLanguageList}"
|
|
9249
|
+
@keydown="${(t) => {
|
|
9250
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleLanguageList();
|
|
9251
|
+
}}"
|
|
9073
9252
|
></nys-button>
|
|
9074
9253
|
</div>
|
|
9075
9254
|
<div
|
|
@@ -9091,9 +9270,13 @@ const Q2 = class Q2 extends v {
|
|
|
9091
9270
|
<nys-button
|
|
9092
9271
|
variant="ghost"
|
|
9093
9272
|
prefixIcon="search"
|
|
9273
|
+
ariaLabel="Search"
|
|
9094
9274
|
id="nys-unavheader__searchbutton"
|
|
9095
9275
|
class="nys-unavheader__iconbutton"
|
|
9096
9276
|
@click="${this._toggleSearchDropdown}"
|
|
9277
|
+
@keydown="${(t) => {
|
|
9278
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleSearchDropdown();
|
|
9279
|
+
}}"
|
|
9097
9280
|
></nys-button>
|
|
9098
9281
|
</div>
|
|
9099
9282
|
<div class="nys-unavheader__lg nys-unavheader__xl">
|
|
@@ -9137,7 +9320,11 @@ const Q2 = class Q2 extends v {
|
|
|
9137
9320
|
variant="ghost"
|
|
9138
9321
|
prefixIcon="close"
|
|
9139
9322
|
size="sm"
|
|
9323
|
+
ariaLabel="Close trustbar"
|
|
9140
9324
|
@click="${this._toggleTrustbar}"
|
|
9325
|
+
@keydown="${(t) => {
|
|
9326
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleTrustbar();
|
|
9327
|
+
}}"
|
|
9141
9328
|
></nys-button>
|
|
9142
9329
|
</div>
|
|
9143
9330
|
</div>
|
|
@@ -9160,8 +9347,8 @@ const Q2 = class Q2 extends v {
|
|
|
9160
9347
|
`;
|
|
9161
9348
|
}
|
|
9162
9349
|
};
|
|
9163
|
-
|
|
9164
|
-
let F =
|
|
9350
|
+
e5.styles = z7;
|
|
9351
|
+
let F = e5;
|
|
9165
9352
|
L1([
|
|
9166
9353
|
a({ type: Boolean })
|
|
9167
9354
|
], F.prototype, "trustbarVisible");
|
|
@@ -9184,7 +9371,7 @@ L1([
|
|
|
9184
9371
|
a({ type: String, reflect: !0 })
|
|
9185
9372
|
], F.prototype, "languages");
|
|
9186
9373
|
customElements.get("nys-unavheader") || customElements.define("nys-unavheader", F);
|
|
9187
|
-
const
|
|
9374
|
+
const h3 = f`
|
|
9188
9375
|
:host {
|
|
9189
9376
|
/* Global Header Styles */
|
|
9190
9377
|
--_nys-globalheader-text-color: var(
|
|
@@ -9465,12 +9652,12 @@ const n3 = b`
|
|
|
9465
9652
|
}
|
|
9466
9653
|
}
|
|
9467
9654
|
`;
|
|
9468
|
-
var
|
|
9469
|
-
for (var r = void 0,
|
|
9470
|
-
(
|
|
9471
|
-
return r &&
|
|
9655
|
+
var d3 = Object.defineProperty, a2 = (o, t, e, s) => {
|
|
9656
|
+
for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
|
|
9657
|
+
(i = o[n]) && (r = i(t, e, r) || r);
|
|
9658
|
+
return r && d3(t, e, r), r;
|
|
9472
9659
|
};
|
|
9473
|
-
const
|
|
9660
|
+
const s5 = class s5 extends v {
|
|
9474
9661
|
constructor() {
|
|
9475
9662
|
super(...arguments), this.appName = "", this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0, this.isMobileMenuOpen = !1;
|
|
9476
9663
|
}
|
|
@@ -9483,12 +9670,12 @@ const t5 = class t5 extends v {
|
|
|
9483
9670
|
/******************** Functions ********************/
|
|
9484
9671
|
// Gets called when the slot content changes and directly appends the slotted elements into the shadow DOM
|
|
9485
9672
|
async _handleSlotChange() {
|
|
9486
|
-
var
|
|
9487
|
-
const t = (
|
|
9673
|
+
var n, i, l;
|
|
9674
|
+
const t = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot");
|
|
9488
9675
|
if (!t) return;
|
|
9489
9676
|
const e = t == null ? void 0 : t.assignedNodes({ flatten: !0 }).filter((c) => c.nodeType === Node.ELEMENT_NODE);
|
|
9490
9677
|
await Promise.resolve(), this.slotHasContent = e.length > 0;
|
|
9491
|
-
const s = (
|
|
9678
|
+
const s = (i = this.shadowRoot) == null ? void 0 : i.querySelector(
|
|
9492
9679
|
".nys-globalheader__content"
|
|
9493
9680
|
), r = (l = this.shadowRoot) == null ? void 0 : l.querySelector(
|
|
9494
9681
|
".nys-globalheader__content-mobile"
|
|
@@ -9496,8 +9683,8 @@ const t5 = class t5 extends v {
|
|
|
9496
9683
|
s && r && (s.innerHTML = "", r.innerHTML = "", e.forEach((c) => {
|
|
9497
9684
|
if (c.nodeType === Node.ELEMENT_NODE) {
|
|
9498
9685
|
const C = c.cloneNode(!0), y = c.cloneNode(!0);
|
|
9499
|
-
["script", "iframe", "object", "embed"].forEach((
|
|
9500
|
-
C.querySelectorAll(
|
|
9686
|
+
["script", "iframe", "object", "embed"].forEach((b) => {
|
|
9687
|
+
C.querySelectorAll(b).forEach((k) => k.remove());
|
|
9501
9688
|
}), s.appendChild(C), r.appendChild(y), c.remove();
|
|
9502
9689
|
}
|
|
9503
9690
|
}));
|
|
@@ -9506,7 +9693,7 @@ const t5 = class t5 extends v {
|
|
|
9506
9693
|
this.isMobileMenuOpen = !this.isMobileMenuOpen;
|
|
9507
9694
|
}
|
|
9508
9695
|
render() {
|
|
9509
|
-
var t, e, s, r,
|
|
9696
|
+
var t, e, s, r, n, i, l, c;
|
|
9510
9697
|
return h`
|
|
9511
9698
|
<header class="nys-globalheader">
|
|
9512
9699
|
<div class="nys-globalheader__main-container">
|
|
@@ -9527,10 +9714,10 @@ const t5 = class t5 extends v {
|
|
|
9527
9714
|
</div>` : ""}
|
|
9528
9715
|
${(t = this.homepageLink) != null && t.trim() ? h`<a
|
|
9529
9716
|
class="nys-globalheader__name-container-link"
|
|
9530
|
-
href=${(
|
|
9717
|
+
href=${(n = this.homepageLink) == null ? void 0 : n.trim()}
|
|
9531
9718
|
>
|
|
9532
9719
|
<div class="nys-globalheader__name-container">
|
|
9533
|
-
${((
|
|
9720
|
+
${((i = this.appName) == null ? void 0 : i.trim().length) > 0 ? h`<div
|
|
9534
9721
|
class="nys-globalheader__appName nys-globalheader__name"
|
|
9535
9722
|
>
|
|
9536
9723
|
${this.appName}
|
|
@@ -9569,25 +9756,25 @@ const t5 = class t5 extends v {
|
|
|
9569
9756
|
`;
|
|
9570
9757
|
}
|
|
9571
9758
|
};
|
|
9572
|
-
|
|
9573
|
-
let y1 =
|
|
9574
|
-
|
|
9759
|
+
s5.styles = h3;
|
|
9760
|
+
let y1 = s5;
|
|
9761
|
+
a2([
|
|
9575
9762
|
a({ type: String })
|
|
9576
9763
|
], y1.prototype, "appName");
|
|
9577
|
-
|
|
9764
|
+
a2([
|
|
9578
9765
|
a({ type: String })
|
|
9579
9766
|
], y1.prototype, "agencyName");
|
|
9580
|
-
|
|
9767
|
+
a2([
|
|
9581
9768
|
a({ type: String })
|
|
9582
9769
|
], y1.prototype, "homepageLink");
|
|
9583
|
-
|
|
9770
|
+
a2([
|
|
9584
9771
|
x1()
|
|
9585
9772
|
], y1.prototype, "slotHasContent");
|
|
9586
|
-
|
|
9773
|
+
a2([
|
|
9587
9774
|
x1()
|
|
9588
9775
|
], y1.prototype, "isMobileMenuOpen");
|
|
9589
9776
|
customElements.get("nys-globalheader") || customElements.define("nys-globalheader", y1);
|
|
9590
|
-
const
|
|
9777
|
+
const C3 = f`
|
|
9591
9778
|
:host {
|
|
9592
9779
|
/* Global Footer Styles */
|
|
9593
9780
|
--_nys-globalfooter-text-color: var(
|
|
@@ -9674,6 +9861,7 @@ const a3 = b`
|
|
|
9674
9861
|
|
|
9675
9862
|
/* The Agency Name */
|
|
9676
9863
|
.nys-globalfooter__name {
|
|
9864
|
+
text-align: left;
|
|
9677
9865
|
margin: 0;
|
|
9678
9866
|
color: var(--_nys-globalfooter-text-color);
|
|
9679
9867
|
font-family: var(--_nys-globalfooter-font-family-agency);
|
|
@@ -9742,12 +9930,12 @@ const a3 = b`
|
|
|
9742
9930
|
}
|
|
9743
9931
|
}
|
|
9744
9932
|
`;
|
|
9745
|
-
var
|
|
9746
|
-
for (var r = void 0,
|
|
9747
|
-
(
|
|
9748
|
-
return r &&
|
|
9933
|
+
var y3 = Object.defineProperty, X2 = (o, t, e, s) => {
|
|
9934
|
+
for (var r = void 0, n = o.length - 1, i; n >= 0; n--)
|
|
9935
|
+
(i = o[n]) && (r = i(t, e, r) || r);
|
|
9936
|
+
return r && y3(t, e, r), r;
|
|
9749
9937
|
};
|
|
9750
|
-
const
|
|
9938
|
+
const r5 = class r5 extends v {
|
|
9751
9939
|
constructor() {
|
|
9752
9940
|
super(...arguments), this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0;
|
|
9753
9941
|
}
|
|
@@ -9760,12 +9948,12 @@ const e5 = class e5 extends v {
|
|
|
9760
9948
|
/******************** Functions ********************/
|
|
9761
9949
|
// Gets called when the slot content changes and directly appends the slotted elements into the shadow DOM
|
|
9762
9950
|
async _handleSlotChange() {
|
|
9763
|
-
var
|
|
9764
|
-
const t = (
|
|
9951
|
+
var n, i;
|
|
9952
|
+
const t = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot");
|
|
9765
9953
|
if (!t) return;
|
|
9766
9954
|
const e = t == null ? void 0 : t.assignedNodes({ flatten: !0 }).filter((l) => l.nodeType === Node.ELEMENT_NODE);
|
|
9767
9955
|
await Promise.resolve(), this.slotHasContent = e.length > 0;
|
|
9768
|
-
const s = (
|
|
9956
|
+
const s = (i = this.shadowRoot) == null ? void 0 : i.querySelector(
|
|
9769
9957
|
".nys-globalfooter__content"
|
|
9770
9958
|
), r = e == null ? void 0 : e.some(
|
|
9771
9959
|
(l) => l.tagName === "H4"
|
|
@@ -9798,19 +9986,19 @@ const e5 = class e5 extends v {
|
|
|
9798
9986
|
`;
|
|
9799
9987
|
}
|
|
9800
9988
|
};
|
|
9801
|
-
|
|
9802
|
-
let Z1 =
|
|
9803
|
-
|
|
9989
|
+
r5.styles = C3;
|
|
9990
|
+
let Z1 = r5;
|
|
9991
|
+
X2([
|
|
9804
9992
|
a({ type: String })
|
|
9805
9993
|
], Z1.prototype, "agencyName");
|
|
9806
|
-
|
|
9994
|
+
X2([
|
|
9807
9995
|
a({ type: String })
|
|
9808
9996
|
], Z1.prototype, "homepageLink");
|
|
9809
|
-
|
|
9997
|
+
X2([
|
|
9810
9998
|
x1()
|
|
9811
9999
|
], Z1.prototype, "slotHasContent");
|
|
9812
10000
|
customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", Z1);
|
|
9813
|
-
const
|
|
10001
|
+
const u3 = f`
|
|
9814
10002
|
:host {
|
|
9815
10003
|
/* Global Footer Styles */
|
|
9816
10004
|
--_nys-unavfooter-link-color: var(
|
|
@@ -9966,7 +10154,7 @@ const c3 = b`
|
|
|
9966
10154
|
--_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
|
|
9967
10155
|
}
|
|
9968
10156
|
}
|
|
9969
|
-
`,
|
|
10157
|
+
`, p3 = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
9970
10158
|
<path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="white"/>
|
|
9971
10159
|
<path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="white"/>
|
|
9972
10160
|
<path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="white"/>
|
|
@@ -9982,10 +10170,10 @@ const c3 = b`
|
|
|
9982
10170
|
<path d="M51.7107 54.9999C51.577 54.9999 51.4335 54.974 51.2939 54.8965C51.085 54.7803 50.9395 54.5876 50.8858 54.3551C50.8233 54.0868 50.8936 53.7868 51.082 53.5116L51.1426 53.4202C51.2041 53.3268 51.2685 53.2354 51.3407 53.1519C51.4218 53.0595 51.5047 52.995 51.5741 52.9493C51.5243 52.6691 51.5418 52.4267 51.5682 52.2061C51.5877 52.0233 51.6346 51.8683 51.6726 51.7451C51.6892 51.6925 51.7058 51.6388 51.7185 51.5812C51.8201 51.145 51.8855 50.7397 51.9206 50.3453C51.9528 49.9916 51.947 49.9846 51.8864 49.9061C51.7 49.6707 51.3847 49.5018 51.0498 49.3229C50.8878 49.2365 50.7286 49.1491 50.5754 49.0557C49.607 48.4536 48.6376 47.8505 47.6701 47.2465L47.3294 47.0339C47.2513 46.9862 47.1147 46.9156 46.9516 46.8282C45.8817 46.2659 45.172 45.8526 45.0539 45.2595C45.0363 45.173 44.9465 44.9644 44.884 44.864C44.8411 44.8611 44.7307 44.8521 44.6546 44.8471C44.3032 44.8183 43.7711 44.7726 43.3484 44.3196C43.2635 44.2272 43.1786 44.1408 43.1005 44.0583C42.5098 43.4443 42.0003 42.9148 41.9329 41.5993C41.9241 41.4275 41.9251 41.2506 41.928 41.0728C41.9339 40.5283 41.927 40.1836 41.7103 39.962C41.6078 39.8567 41.435 39.7862 41.2349 39.7037C40.9889 39.6034 40.7097 39.4881 40.45 39.2686C40.37 39.2 40.2792 39.1007 40.1776 38.9854C40.0712 38.8602 39.9082 38.6724 39.7969 38.6337C38.974 38.3436 37.986 38.3178 36.96 38.3178L3.07245 38.2909C2.85964 38.2909 2.66927 38.3138 2.48477 38.3347C2.07378 38.3823 1.60812 38.437 1.2313 38.0962C0.866192 37.7664 0.815429 37.2607 0.814452 36.8076L0.8125 34.3993C0.8125 34.2722 0.847644 34.147 0.913051 34.0387C1.22544 33.529 1.83265 33.2558 2.3686 33.0144C2.56872 32.924 2.77666 32.8316 2.88795 32.7571C3.17593 32.5623 3.43561 32.302 3.7109 32.0248C3.91688 31.8182 4.13068 31.6046 4.36887 31.4059C4.69786 31.1317 5.07078 30.931 5.43296 30.7372C5.74535 30.5703 6.03821 30.4124 6.24127 30.2395C6.38575 30.1173 6.49216 29.9146 6.61906 29.6792C6.75476 29.4238 6.90998 29.1337 7.15208 28.8804C7.41273 28.6081 7.7427 28.4194 8.03263 28.2535C8.69744 27.871 8.68182 27.8322 8.57736 27.5769C8.52855 27.4577 8.48072 27.3553 8.43972 27.2639C8.24447 26.8357 8.07754 26.4681 8.19078 25.7051C8.2025 25.6306 8.21616 25.5521 8.22983 25.4706C8.25619 25.3325 8.30305 25.0772 8.27571 25.0037C8.27571 25.0037 8.26204 24.9927 8.23471 24.9778C8.21128 24.9659 8.12928 24.9669 8.06875 24.9679C7.87448 24.9659 7.51914 24.9768 7.2497 24.6689C6.98124 24.3629 6.99686 23.9555 7.03982 23.6356C7.08179 23.3127 7.06032 23.1051 7.03982 22.9223C6.95684 22.1453 7.21358 21.7817 8.10097 21.424C10.7524 20.351 12.901 19.9884 14.8613 20.2805C14.9775 20.2974 15.1356 20.2656 15.3182 20.2269C15.5944 20.1702 15.9351 20.1017 16.312 20.1752L18.3952 20.5766C19.2475 20.7415 19.6653 20.9054 20.3047 21.4995C20.6327 21.8046 20.7655 21.7718 21.3327 21.5661C21.6168 21.4638 21.9399 21.3485 22.3323 21.2949C22.9727 21.2084 23.5731 21.2661 24.153 21.3227C24.4136 21.3475 24.6762 21.3734 24.9408 21.3843C25.2356 21.3952 25.6085 21.2561 25.9717 21.121C26.1318 21.0614 26.2889 21.0028 26.4412 20.9541C26.78 20.8468 27.0973 20.7991 27.4038 20.7514C27.5551 20.7266 27.7064 20.7037 27.8607 20.6729C27.8714 20.6531 27.8821 20.6332 27.8939 20.6113C27.9417 20.5249 27.9944 20.4345 28.0598 20.3411C28.3419 19.9497 28.7471 19.7003 29.0722 19.4966L29.2078 19.4122C29.5564 19.1916 29.8629 18.9879 30.105 18.7386C30.5423 18.2796 31.1232 18.3114 31.5108 18.3312C31.6455 18.3392 31.8495 18.3481 31.91 18.3223C32.1678 18.207 31.9413 17.3993 31.8065 16.9165C31.7119 16.5777 31.6299 16.2846 31.6133 16.0183C31.5664 15.2642 31.9764 14.7317 32.3064 14.3045C32.5651 13.9687 32.7213 13.7481 32.7164 13.5355C32.7164 13.4948 32.7027 13.4382 32.6851 13.3845C32.4587 13.4948 32.0955 13.6369 31.6796 13.4421C31.0129 13.1302 30.6468 12.0264 30.8508 11.3985C31.0197 10.8779 31.54 10.5421 31.9198 10.2957L32.0565 10.2053C32.3806 9.98471 32.7242 9.79792 33.0542 9.6181C33.5159 9.36873 33.9513 9.13227 34.2949 8.82726C34.4404 8.69711 34.5761 8.56994 34.7089 8.44376C35.0076 8.1626 35.3161 7.8715 35.6792 7.61319C35.7056 7.5188 35.728 7.34096 35.7437 7.22571C35.7729 7.00714 35.8022 6.78062 35.8803 6.5849C36.2513 5.64304 37.1592 4.90884 37.9597 4.25908C38.2252 4.04448 38.4771 3.84081 38.6743 3.65602C38.7992 3.53878 38.9222 3.42055 39.0452 3.30332C39.6388 2.73701 40.2509 2.15084 40.9967 1.68289C41.601 1.30536 42.3898 0.833439 43.1249 0.552274C44.0972 0.1807 44.5579 0.208518 45.4766 0.262168L45.6474 0.27111C47.3607 0.371455 49.1384 0.32476 50.8575 0.281045C51.7205 0.258194 52.5796 0.235343 53.4347 0.230376C53.6651 0.230376 54.0156 0.185667 54.3836 0.138972C55.6078 -0.0140291 56.994 -0.188888 57.7818 0.503592C58.1118 0.792705 58.2924 1.19806 58.3031 1.67594C58.311 2.05248 58.1567 2.33464 58.0435 2.54129C58.0064 2.60686 57.9527 2.7082 57.9458 2.74297C57.9488 2.73205 57.9849 2.78768 58.0103 2.82742C58.1362 3.01718 58.3686 3.37088 58.2748 3.89843C58.2397 4.10111 58.1811 4.3167 58.1216 4.53528C58.0464 4.81147 57.9693 5.09761 57.9624 5.31419C57.9498 5.69073 57.6335 5.99376 57.2703 5.97289C56.9013 5.95998 56.6104 5.64603 56.6231 5.26849C56.6367 4.89195 56.7392 4.50944 56.831 4.17264C56.8788 3.9948 56.9276 3.82094 56.9569 3.65502C56.9481 3.65502 56.9218 3.62323 56.8993 3.58746C56.791 3.42254 56.6065 3.14535 56.6065 2.73701C56.6065 2.36345 56.7607 2.08328 56.873 1.87862C56.9072 1.81702 56.9589 1.72462 56.9657 1.69084C56.9608 1.58354 56.9267 1.55274 56.9072 1.53685C56.5694 1.23979 55.2544 1.40372 54.5496 1.49313C54.1386 1.5438 53.752 1.59348 53.4435 1.59547C52.5971 1.60043 51.7439 1.62229 50.8907 1.64315C49.1442 1.68886 47.3382 1.73654 45.5722 1.63421L45.3985 1.62328C44.5345 1.57162 44.3022 1.55871 43.5964 1.82894C42.9618 2.07235 42.2101 2.5244 41.7006 2.84431C41.0699 3.23973 40.533 3.75338 39.9648 4.29683C39.8379 4.41804 39.712 4.53925 39.5831 4.65947C39.3479 4.87804 39.0794 5.09661 38.7953 5.32611C38.1237 5.87056 37.3642 6.48555 37.1231 7.09457C37.1065 7.14425 37.085 7.30221 37.0713 7.40753C37.0147 7.84666 36.9424 8.3931 36.5041 8.69016C36.1927 8.90277 35.9145 9.16704 35.6187 9.44523C35.4771 9.57935 35.3317 9.71546 35.1774 9.85257C34.7186 10.2629 34.1924 10.548 33.6838 10.8222C33.3675 10.9931 33.0698 11.1541 32.8033 11.3369C32.7554 11.3707 32.6978 11.4064 32.6373 11.4462C32.5114 11.5276 32.2332 11.7065 32.1346 11.8217C32.1424 11.8992 32.1726 12.0115 32.2117 12.1009C32.3757 12.0214 32.6041 11.924 32.8804 11.9459C33.6633 12.0135 34.0401 12.8937 34.0558 13.4988C34.0743 14.2191 33.677 14.7337 33.3587 15.145C33.0971 15.4868 32.9351 15.7074 32.9487 15.9319C32.9565 16.0511 33.0288 16.3114 33.0932 16.5419C33.3314 17.3933 33.7746 18.978 32.4479 19.5701C32.0965 19.7281 31.7314 19.7082 31.4375 19.6933C31.3126 19.6864 31.1046 19.6764 31.047 19.7023C30.7171 20.051 30.3227 20.3113 29.9166 20.5706L29.7692 20.663C29.5212 20.816 29.2654 20.976 29.1405 21.1488C29.1083 21.1935 29.0819 21.2412 29.0585 21.2859C28.9345 21.5085 28.7256 21.884 28.174 21.9993C27.9827 22.04 27.7943 22.0708 27.6059 22.0996C27.3364 22.1414 27.0807 22.1811 26.8386 22.2566C26.7087 22.2993 26.5711 22.35 26.4334 22.4017C25.9697 22.5745 25.4435 22.7732 24.8871 22.7474C24.5981 22.7355 24.3131 22.7087 24.027 22.6808C23.4989 22.6282 22.9981 22.5805 22.511 22.6481C22.2572 22.6828 22.0258 22.7653 21.7817 22.8537C21.1716 23.0733 20.3369 23.3733 19.4046 22.508C18.9927 22.1265 18.8267 22.049 18.1473 21.9178L16.065 21.5164C15.942 21.4936 15.775 21.5264 15.5818 21.5651C15.3289 21.6168 15.0136 21.6784 14.6719 21.6297C12.9508 21.3724 11.0218 21.7112 8.59689 22.6928C8.49829 22.7325 8.42703 22.7643 8.37431 22.7891C8.39579 22.9779 8.42312 23.2491 8.39091 23.6217C8.53343 23.6416 8.69353 23.6843 8.86047 23.7737C9.81228 24.2834 9.63461 25.256 9.5487 25.724C9.53601 25.7876 9.52528 25.8511 9.51551 25.9127C9.4628 26.2694 9.49501 26.3429 9.65511 26.6917C9.70392 26.798 9.75664 26.9162 9.81326 27.0543C10.3941 28.4681 9.28415 29.1039 8.68865 29.4447C8.46705 29.5719 8.23764 29.701 8.11268 29.8331C7.99944 29.9524 7.89987 30.1372 7.79541 30.3329C7.62945 30.6448 7.44104 30.9975 7.10522 31.2847C6.79088 31.5529 6.41894 31.7536 6.05871 31.9454C5.74144 32.1153 5.44077 32.2762 5.21623 32.464C5.02782 32.6219 4.84527 32.8048 4.65295 32.9985C4.34252 33.3085 4.02524 33.6294 3.62499 33.8976C3.41901 34.0347 3.17203 34.147 2.9104 34.2652C2.69661 34.3606 2.33443 34.5225 2.14992 34.6626L2.15383 36.8096C2.15383 36.8881 2.15578 36.9527 2.15871 37.0023C2.21533 36.9974 2.27586 36.9904 2.32662 36.9835C2.5287 36.9606 2.77959 36.9308 3.06952 36.9308L36.9581 36.9566C38.0573 36.9566 39.2141 36.9884 40.2304 37.3471C40.6755 37.5021 40.9801 37.8538 41.1812 38.0853C41.2281 38.1399 41.2681 38.1896 41.3052 38.2234C41.4018 38.3048 41.5551 38.3674 41.7328 38.441C42.0129 38.5562 42.3615 38.7003 42.6572 39.0043C43.2811 39.6411 43.2713 40.4469 43.2645 41.0927C43.2606 41.2417 43.2606 41.3897 43.2664 41.5328C43.3084 42.3326 43.5261 42.5581 44.0532 43.1055C44.1372 43.1929 44.2251 43.2853 44.3188 43.3847C44.3842 43.4542 44.5287 43.4701 44.761 43.491C45.0412 43.5138 45.3897 43.5417 45.6953 43.7751C46.0291 44.0275 46.2546 44.5888 46.3376 44.8809C46.5455 45.0846 47.2777 45.4711 47.5647 45.6211C47.7639 45.7264 47.9298 45.8158 48.0265 45.8754L48.3672 46.088C49.3346 46.6891 50.3011 47.2922 51.2705 47.8943C51.3993 47.9727 51.533 48.0463 51.6707 48.1188C52.0924 48.3443 52.5698 48.6006 52.9291 49.0567C53.3215 49.5544 53.2942 50.0045 53.259 50.4029C53.3156 50.2936 53.3781 50.1893 53.4513 50.0879C53.5841 49.8982 53.7393 49.7541 53.877 49.626C54.0136 49.4998 54.1073 49.4104 54.1396 49.3388C54.1132 49.2772 54.0527 49.1739 54.0117 49.1034C53.8487 48.8232 53.6271 48.4387 53.7315 47.9857C53.7725 47.8108 53.8789 47.6588 54.0283 47.5634C54.0849 47.5276 54.205 47.4591 54.3631 47.3717C54.5818 47.2495 55.1373 46.9405 55.475 46.71C54.9723 45.5913 55.1392 44.2163 55.2886 42.9843C55.3345 42.6038 55.3784 42.2451 55.3989 41.9222C55.4204 41.5467 55.7337 41.2606 56.1076 41.2834C56.4776 41.3063 56.7588 41.6301 56.7353 42.0057C56.7148 42.3693 56.667 42.7498 56.6182 43.1522C56.4776 44.3166 56.3165 45.637 56.833 46.3911C56.954 46.5669 56.994 46.7895 56.9452 47.0021C56.8417 47.4502 56.3898 47.7879 55.1958 48.4606C55.352 48.7308 55.5395 49.0904 55.4731 49.5167C55.4623 49.5812 55.4487 49.6428 55.4321 49.7015C55.766 49.5793 56.1154 49.464 56.4845 49.3577C57.8775 48.9543 59.3409 48.7745 61.225 48.7745C62.0587 48.7745 62.8006 48.5053 63.5874 48.2211C64.2103 47.9946 64.8546 47.7621 65.576 47.6508C66.1852 47.5555 66.5005 47.7562 66.7728 47.9688C66.8636 48.0403 66.93 48.09 67.0442 48.1357C67.3625 48.2619 67.7325 48.2211 68.1601 48.1754C68.5925 48.1277 69.0836 48.0731 69.5844 48.2042C69.8821 48.2837 70.09 48.5579 70.0861 48.8709C70.0744 50.0571 68.5076 50.5459 67.7549 50.7814L67.0384 51.0099C66.4985 51.1848 65.9567 51.3586 65.41 51.5176C65.1631 51.5881 64.918 51.6587 64.672 51.7223C64.3889 51.7948 64.099 51.9597 63.7944 52.1316C63.481 52.3094 63.1579 52.4922 62.786 52.6174C62.1426 52.83 61.4837 52.9413 60.6471 52.9761C60.4069 52.987 60.1746 53.0943 59.9295 53.2056C59.5674 53.3735 59.1154 53.5801 58.6107 53.4132C58.3949 53.3864 57.5534 53.6775 57.1502 53.8196C56.832 53.9289 56.5577 54.0242 56.3419 54.0759C55.598 54.2528 54.8415 54.3918 54.1103 54.527L53.5968 54.6223C53.1516 54.7058 52.7035 54.7922 52.2613 54.8926L52.2076 54.9085C52.0797 54.9482 51.9021 55.0038 51.7078 55.0038L51.7107 54.9999ZM53.0735 51.6746C53.0569 51.7471 53.0403 51.8196 53.0237 51.8941C53.0032 51.9806 52.9788 52.064 52.9544 52.1455C52.9281 52.2359 52.9066 52.3055 52.8988 52.3651C52.8793 52.5379 52.8773 52.6313 52.8978 52.7247C52.9495 52.9791 52.9388 53.1907 52.8949 53.3645C53.0482 53.3347 53.2024 53.3049 53.3566 53.2751L53.875 53.1808C54.5896 53.0486 55.3296 52.9125 56.0412 52.7436C56.1906 52.7078 56.4483 52.6194 56.7217 52.525C57.7721 52.1604 58.4994 51.9359 59.0295 52.1127C59.0646 52.1058 59.2559 52.0173 59.3828 51.9597C59.7001 51.8137 60.0945 51.6328 60.5924 51.611C61.3021 51.5812 61.8498 51.4908 62.372 51.3169C62.622 51.2345 62.8748 51.0914 63.1442 50.9374C63.5123 50.7298 63.892 50.5142 64.3469 50.3969C64.5793 50.3373 64.8136 50.2707 65.0459 50.2042C65.5789 50.0482 66.11 49.8773 66.6362 49.7064L67.1253 49.5514C66.9388 49.5246 66.7504 49.4779 66.56 49.4014C66.2672 49.2862 66.0836 49.1411 65.9616 49.0457C65.9313 49.0229 65.906 48.999 65.8757 48.9812C65.8737 48.9851 65.8405 48.9851 65.7781 48.9941C65.1845 49.0855 64.6281 49.2862 64.0394 49.4998C63.1794 49.8107 62.293 50.1326 61.2279 50.1326C59.4717 50.1326 58.1235 50.2966 56.8535 50.6642C55.7142 50.992 54.7868 51.3984 54.0166 51.9031C53.7901 52.0521 53.5001 52.0481 53.2776 51.8951C53.1917 51.8365 53.1214 51.76 53.0735 51.6716V51.6746Z" fill="white"/>
|
|
9983
10171
|
<path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="white"/>
|
|
9984
10172
|
<path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="white"/>
|
|
9985
|
-
</svg>`,
|
|
10173
|
+
</svg>`, o5 = class o5 extends v {
|
|
9986
10174
|
/**************** Functions ****************/
|
|
9987
10175
|
_getNysLogo() {
|
|
9988
|
-
return new DOMParser().parseFromString(
|
|
10176
|
+
return new DOMParser().parseFromString(p3, "image/svg+xml").documentElement;
|
|
9989
10177
|
}
|
|
9990
10178
|
render() {
|
|
9991
10179
|
return h`
|
|
@@ -10019,28 +10207,29 @@ const c3 = b`
|
|
|
10019
10207
|
`;
|
|
10020
10208
|
}
|
|
10021
10209
|
};
|
|
10022
|
-
|
|
10023
|
-
let
|
|
10024
|
-
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter",
|
|
10210
|
+
o5.styles = u3;
|
|
10211
|
+
let Z2 = o5;
|
|
10212
|
+
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", Z2);
|
|
10025
10213
|
export {
|
|
10026
|
-
|
|
10027
|
-
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10214
|
+
se as NysAlert,
|
|
10215
|
+
ae as NysAvatar,
|
|
10216
|
+
Ce as NysButton,
|
|
10217
|
+
We as NysCheckbox,
|
|
10218
|
+
Ne as NysCheckboxgroup,
|
|
10031
10219
|
H1 as NysErrorMessage,
|
|
10032
10220
|
Z1 as NysGlobalFooter,
|
|
10033
10221
|
y1 as NysGlobalHeader,
|
|
10034
|
-
|
|
10222
|
+
e7 as NysIcon,
|
|
10035
10223
|
m1 as NysLabel,
|
|
10036
10224
|
S1 as NysOption,
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
k7 as
|
|
10042
|
-
|
|
10043
|
-
|
|
10225
|
+
d7 as NysRadiobutton,
|
|
10226
|
+
a7 as NysRadiogroup,
|
|
10227
|
+
f7 as NysSelect,
|
|
10228
|
+
e2 as NysSkipnav,
|
|
10229
|
+
k7 as NysTextarea,
|
|
10230
|
+
M7 as NysTextinput,
|
|
10231
|
+
U7 as NysToggle,
|
|
10232
|
+
Z2 as NysUnavFooter,
|
|
10044
10233
|
F as NysUnavHeader
|
|
10045
10234
|
};
|
|
10046
10235
|
//# sourceMappingURL=nysds.es.js.map
|