@nysds/components 1.1.6 → 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 +1194 -965
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +237 -105
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-button/src/nys-button.d.ts +4 -0
- 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/packages/nys-textarea/src/nys-textarea.d.ts +1 -1
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +1 -1
- 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 q1 = 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 q1 = 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 q1 = 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 q1 = 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 q1 = 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
|
-
function
|
|
1504
|
-
return (t, e) => typeof e == "object" ?
|
|
1505
|
-
const
|
|
1506
|
-
return r.constructor.createProperty(
|
|
1527
|
+
function D(o) {
|
|
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]`,
|
|
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,32 +2149,32 @@ 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
|
|
2142
|
-
var
|
|
2143
|
-
const
|
|
2165
|
+
let Jt = 0;
|
|
2166
|
+
var I;
|
|
2167
|
+
const L = (I = class extends v {
|
|
2144
2168
|
// allows use of elementInternals' API
|
|
2145
2169
|
constructor() {
|
|
2146
2170
|
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 = () => {
|
|
2147
|
-
}, this.href = "", this._internals = this.attachInternals();
|
|
2171
|
+
}, this.href = "", this._target = "_self", this._internals = this.attachInternals();
|
|
2148
2172
|
}
|
|
2149
2173
|
get size() {
|
|
2150
2174
|
return this._size;
|
|
2151
2175
|
}
|
|
2152
2176
|
set size(o) {
|
|
2153
|
-
this._size =
|
|
2177
|
+
this._size = I.VALID_SIZES.includes(
|
|
2154
2178
|
o
|
|
2155
2179
|
) ? o : "md";
|
|
2156
2180
|
}
|
|
@@ -2158,7 +2182,7 @@ const M = (j = class extends v {
|
|
|
2158
2182
|
return this._variant;
|
|
2159
2183
|
}
|
|
2160
2184
|
set variant(o) {
|
|
2161
|
-
this._variant =
|
|
2185
|
+
this._variant = I.VALID_VARIANTS.includes(
|
|
2162
2186
|
o
|
|
2163
2187
|
) ? o : "filled";
|
|
2164
2188
|
}
|
|
@@ -2166,16 +2190,24 @@ const M = (j = class extends v {
|
|
|
2166
2190
|
return this._type;
|
|
2167
2191
|
}
|
|
2168
2192
|
set type(o) {
|
|
2169
|
-
this._type =
|
|
2193
|
+
this._type = I.VALID_TYPES.includes(
|
|
2170
2194
|
o
|
|
2171
2195
|
) ? o : "button";
|
|
2172
2196
|
}
|
|
2197
|
+
get target() {
|
|
2198
|
+
return this._target;
|
|
2199
|
+
}
|
|
2200
|
+
set target(o) {
|
|
2201
|
+
this._target = I.VALID_TARGETS.includes(
|
|
2202
|
+
o
|
|
2203
|
+
) ? o : "_self";
|
|
2204
|
+
}
|
|
2173
2205
|
connectedCallback() {
|
|
2174
2206
|
super.connectedCallback(), this.id || (this.id = this._generateUniqueId());
|
|
2175
2207
|
}
|
|
2176
2208
|
/******************** Functions ********************/
|
|
2177
2209
|
_generateUniqueId() {
|
|
2178
|
-
return `nys-button-${Date.now()}-${
|
|
2210
|
+
return `nys-button-${Date.now()}-${Jt++}`;
|
|
2179
2211
|
}
|
|
2180
2212
|
_manageFormAction(o) {
|
|
2181
2213
|
typeof this.onClick == "function" && this.onClick(o);
|
|
@@ -2208,7 +2240,7 @@ const M = (j = class extends v {
|
|
|
2208
2240
|
}
|
|
2209
2241
|
// Handle keydown for keyboard accessibility
|
|
2210
2242
|
_handleKeydown(o) {
|
|
2211
|
-
(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));
|
|
2212
2244
|
}
|
|
2213
2245
|
render() {
|
|
2214
2246
|
return h`
|
|
@@ -2223,7 +2255,7 @@ const M = (j = class extends v {
|
|
|
2223
2255
|
form=${i1(this.form ? this.form : void 0)}
|
|
2224
2256
|
value=${i1(this.value ? this.value : void 0)}
|
|
2225
2257
|
href=${this.href}
|
|
2226
|
-
target
|
|
2258
|
+
target=${this.target}
|
|
2227
2259
|
aria-label=${this.ariaLabel || this.label || "button"}
|
|
2228
2260
|
@click=${this._handleClick}
|
|
2229
2261
|
@focus="${this._handleFocus}"
|
|
@@ -2264,72 +2296,81 @@ const M = (j = class extends v {
|
|
|
2264
2296
|
`}
|
|
2265
2297
|
`;
|
|
2266
2298
|
}
|
|
2267
|
-
},
|
|
2299
|
+
}, I.VALID_SIZES = ["sm", "md", "lg"], I.VALID_VARIANTS = [
|
|
2268
2300
|
"filled",
|
|
2269
2301
|
"outline",
|
|
2270
2302
|
"ghost",
|
|
2271
2303
|
"text"
|
|
2272
|
-
],
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
],
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
],
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
],
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
],
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
],
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
],
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
],
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
],
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
],
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
],
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
],
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
],
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
],
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
],
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
],
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2304
|
+
], I.VALID_TYPES = ["submit", "reset", "button"], I.VALID_TARGETS = [
|
|
2305
|
+
"_self",
|
|
2306
|
+
"_blank",
|
|
2307
|
+
"_parent",
|
|
2308
|
+
"_top",
|
|
2309
|
+
"framename"
|
|
2310
|
+
], I.styles = Bt, I.formAssociated = !0, I);
|
|
2311
|
+
A([
|
|
2312
|
+
D({ type: String })
|
|
2313
|
+
], L.prototype, "id", 2);
|
|
2314
|
+
A([
|
|
2315
|
+
D({ type: String, reflect: !0 })
|
|
2316
|
+
], L.prototype, "name", 2);
|
|
2317
|
+
A([
|
|
2318
|
+
D({ reflect: !0 })
|
|
2319
|
+
], L.prototype, "size", 1);
|
|
2320
|
+
A([
|
|
2321
|
+
D({ type: Boolean, reflect: !0 })
|
|
2322
|
+
], L.prototype, "fullWidth", 2);
|
|
2323
|
+
A([
|
|
2324
|
+
D({ reflect: !0 })
|
|
2325
|
+
], L.prototype, "variant", 1);
|
|
2326
|
+
A([
|
|
2327
|
+
D({ type: Boolean, reflect: !0 })
|
|
2328
|
+
], L.prototype, "inverted", 2);
|
|
2329
|
+
A([
|
|
2330
|
+
D({ type: String })
|
|
2331
|
+
], L.prototype, "label", 2);
|
|
2332
|
+
A([
|
|
2333
|
+
D({ type: String })
|
|
2334
|
+
], L.prototype, "ariaLabel", 2);
|
|
2335
|
+
A([
|
|
2336
|
+
D({ type: String })
|
|
2337
|
+
], L.prototype, "prefixIcon", 2);
|
|
2338
|
+
A([
|
|
2339
|
+
D({ type: String })
|
|
2340
|
+
], L.prototype, "suffixIcon", 2);
|
|
2341
|
+
A([
|
|
2342
|
+
D({ type: Boolean, reflect: !0 })
|
|
2343
|
+
], L.prototype, "disabled", 2);
|
|
2344
|
+
A([
|
|
2345
|
+
D({ type: String })
|
|
2346
|
+
], L.prototype, "form", 2);
|
|
2347
|
+
A([
|
|
2348
|
+
D({ type: String })
|
|
2349
|
+
], L.prototype, "value", 2);
|
|
2350
|
+
A([
|
|
2351
|
+
D({ reflect: !0 })
|
|
2352
|
+
], L.prototype, "type", 1);
|
|
2353
|
+
A([
|
|
2354
|
+
D({ type: Function })
|
|
2355
|
+
], L.prototype, "onClick", 2);
|
|
2356
|
+
A([
|
|
2357
|
+
D({ type: String })
|
|
2358
|
+
], L.prototype, "href", 2);
|
|
2359
|
+
A([
|
|
2360
|
+
D({ reflect: !0 })
|
|
2361
|
+
], L.prototype, "target", 1);
|
|
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;
|
|
2327
2368
|
};
|
|
2328
|
-
let
|
|
2369
|
+
let ee = 0;
|
|
2329
2370
|
var h1;
|
|
2330
|
-
const
|
|
2371
|
+
const z = (h1 = class extends v {
|
|
2331
2372
|
constructor() {
|
|
2332
|
-
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;
|
|
2333
2374
|
}
|
|
2334
2375
|
get type() {
|
|
2335
2376
|
return this._type;
|
|
@@ -2358,7 +2399,7 @@ const U = (h1 = class extends v {
|
|
|
2358
2399
|
}
|
|
2359
2400
|
/******************** Functions ********************/
|
|
2360
2401
|
_generateUniqueId() {
|
|
2361
|
-
return `nys-alert-${Date.now()}-${
|
|
2402
|
+
return `nys-alert-${Date.now()}-${ee++}`;
|
|
2362
2403
|
}
|
|
2363
2404
|
// Helper function for overriding default icons or checking special naming cases (e.g. type=success)
|
|
2364
2405
|
_getIconName() {
|
|
@@ -2376,19 +2417,19 @@ const U = (h1 = class extends v {
|
|
|
2376
2417
|
})
|
|
2377
2418
|
);
|
|
2378
2419
|
}
|
|
2379
|
-
_checkSlotContent() {
|
|
2420
|
+
async _checkSlotContent() {
|
|
2380
2421
|
var e;
|
|
2381
2422
|
const t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("slot");
|
|
2382
2423
|
if (t) {
|
|
2383
2424
|
const s = t.assignedNodes({ flatten: !0 }).filter(
|
|
2384
2425
|
(r) => {
|
|
2385
|
-
var
|
|
2386
|
-
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());
|
|
2387
2428
|
}
|
|
2388
2429
|
);
|
|
2389
|
-
this._slotHasContent = s.length > 0;
|
|
2430
|
+
await Promise.resolve(), this._slotHasContent = s.length > 0;
|
|
2390
2431
|
} else
|
|
2391
|
-
this._slotHasContent = !1;
|
|
2432
|
+
await Promise.resolve(), this._slotHasContent = !1;
|
|
2392
2433
|
}
|
|
2393
2434
|
render() {
|
|
2394
2435
|
var s, r;
|
|
@@ -2410,7 +2451,7 @@ const U = (h1 = class extends v {
|
|
|
2410
2451
|
></nys-icon>
|
|
2411
2452
|
</div>
|
|
2412
2453
|
<div class="nys-alert__texts">
|
|
2413
|
-
<
|
|
2454
|
+
<p class="nys-alert__header">${this.heading}</p>
|
|
2414
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>` : ""}
|
|
2415
2456
|
${this.primaryAction || this.secondaryAction ? h`<div class="nys-alert__actions">
|
|
2416
2457
|
${this.primaryAction ? h`<a
|
|
@@ -2427,30 +2468,22 @@ const U = (h1 = class extends v {
|
|
|
2427
2468
|
</a>` : ""}
|
|
2428
2469
|
</div> ` : ""}
|
|
2429
2470
|
</div>
|
|
2430
|
-
${this.dismissible
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
variant="ghost"
|
|
2443
|
-
prefixIcon="close"
|
|
2444
|
-
size="sm"
|
|
2445
|
-
inverted
|
|
2446
|
-
ariaLabel="close button"
|
|
2447
|
-
@click=${this._closeAlert}
|
|
2448
|
-
></nys-button>
|
|
2449
|
-
</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>` : ""}
|
|
2450
2483
|
</div>`}
|
|
2451
2484
|
`;
|
|
2452
2485
|
}
|
|
2453
|
-
}, h1.styles =
|
|
2486
|
+
}, h1.styles = ht, h1.VALID_TYPES = [
|
|
2454
2487
|
"base",
|
|
2455
2488
|
"info",
|
|
2456
2489
|
"success",
|
|
@@ -2460,46 +2493,46 @@ const U = (h1 = class extends v {
|
|
|
2460
2493
|
], h1);
|
|
2461
2494
|
Z([
|
|
2462
2495
|
a({ type: String })
|
|
2463
|
-
],
|
|
2496
|
+
], z.prototype, "id", 2);
|
|
2464
2497
|
Z([
|
|
2465
2498
|
a({ type: String })
|
|
2466
|
-
],
|
|
2499
|
+
], z.prototype, "heading", 2);
|
|
2467
2500
|
Z([
|
|
2468
2501
|
a({ type: String })
|
|
2469
|
-
],
|
|
2502
|
+
], z.prototype, "icon", 2);
|
|
2470
2503
|
Z([
|
|
2471
2504
|
a({ type: Boolean, reflect: !0 })
|
|
2472
|
-
],
|
|
2505
|
+
], z.prototype, "dismissible", 2);
|
|
2473
2506
|
Z([
|
|
2474
2507
|
a({ type: Number, reflect: !0 })
|
|
2475
|
-
],
|
|
2508
|
+
], z.prototype, "duration", 2);
|
|
2476
2509
|
Z([
|
|
2477
2510
|
a({ type: String })
|
|
2478
|
-
],
|
|
2511
|
+
], z.prototype, "text", 2);
|
|
2479
2512
|
Z([
|
|
2480
2513
|
a({ type: String })
|
|
2481
|
-
],
|
|
2514
|
+
], z.prototype, "primaryAction", 2);
|
|
2482
2515
|
Z([
|
|
2483
2516
|
a({ type: String })
|
|
2484
|
-
],
|
|
2517
|
+
], z.prototype, "secondaryAction", 2);
|
|
2485
2518
|
Z([
|
|
2486
2519
|
a({ type: String })
|
|
2487
|
-
],
|
|
2520
|
+
], z.prototype, "primaryLabel", 2);
|
|
2488
2521
|
Z([
|
|
2489
2522
|
a({ type: String })
|
|
2490
|
-
],
|
|
2523
|
+
], z.prototype, "secondaryLabel", 2);
|
|
2491
2524
|
Z([
|
|
2492
2525
|
x1()
|
|
2493
|
-
],
|
|
2526
|
+
], z.prototype, "_alertClosed", 2);
|
|
2494
2527
|
Z([
|
|
2495
2528
|
x1()
|
|
2496
|
-
],
|
|
2529
|
+
], z.prototype, "_slotHasContent", 2);
|
|
2497
2530
|
Z([
|
|
2498
2531
|
a({ reflect: !0 })
|
|
2499
|
-
],
|
|
2500
|
-
let
|
|
2501
|
-
customElements.get("nys-alert") || customElements.define("nys-alert",
|
|
2502
|
-
const
|
|
2532
|
+
], z.prototype, "type", 1);
|
|
2533
|
+
let se = z;
|
|
2534
|
+
customElements.get("nys-alert") || customElements.define("nys-alert", se);
|
|
2535
|
+
const re = f`
|
|
2503
2536
|
:host {
|
|
2504
2537
|
/* Global Avatar Styles */
|
|
2505
2538
|
--_nys-avatar-shape: var(--nys-radius-round, 1776px);
|
|
@@ -2567,12 +2600,12 @@ const te = b`
|
|
|
2567
2600
|
fill: currentColor;
|
|
2568
2601
|
}
|
|
2569
2602
|
`;
|
|
2570
|
-
var
|
|
2571
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
2572
|
-
(
|
|
2573
|
-
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;
|
|
2574
2607
|
};
|
|
2575
|
-
let
|
|
2608
|
+
let ie = 0;
|
|
2576
2609
|
var d1;
|
|
2577
2610
|
const r1 = (d1 = class extends v {
|
|
2578
2611
|
constructor() {
|
|
@@ -2590,7 +2623,7 @@ const r1 = (d1 = class extends v {
|
|
|
2590
2623
|
/******************** Functions ********************/
|
|
2591
2624
|
// Generate a unique ID if one is not provided
|
|
2592
2625
|
connectedCallback() {
|
|
2593
|
-
super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${
|
|
2626
|
+
super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${ie++}`);
|
|
2594
2627
|
}
|
|
2595
2628
|
render() {
|
|
2596
2629
|
var t, e, s, r;
|
|
@@ -2637,7 +2670,7 @@ const r1 = (d1 = class extends v {
|
|
|
2637
2670
|
</label>
|
|
2638
2671
|
`;
|
|
2639
2672
|
}
|
|
2640
|
-
}, d1.styles =
|
|
2673
|
+
}, d1.styles = re, d1.VALID_SHAPES = [
|
|
2641
2674
|
"square",
|
|
2642
2675
|
"rounded",
|
|
2643
2676
|
"circle"
|
|
@@ -2666,9 +2699,9 @@ u1([
|
|
|
2666
2699
|
u1([
|
|
2667
2700
|
a({ reflect: !0 })
|
|
2668
2701
|
], r1.prototype, "shape", 1);
|
|
2669
|
-
let
|
|
2670
|
-
customElements.get("nys-avatar") || customElements.define("nys-avatar",
|
|
2671
|
-
const
|
|
2702
|
+
let ae = r1;
|
|
2703
|
+
customElements.get("nys-avatar") || customElements.define("nys-avatar", ae);
|
|
2704
|
+
const le = f`
|
|
2672
2705
|
:host {
|
|
2673
2706
|
/* Anything that can be overridden should be defined here */
|
|
2674
2707
|
|
|
@@ -3068,24 +3101,24 @@ const ne = b`
|
|
|
3068
3101
|
user-select: none;
|
|
3069
3102
|
}
|
|
3070
3103
|
`;
|
|
3071
|
-
var
|
|
3072
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
3073
|
-
(
|
|
3074
|
-
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;
|
|
3075
3108
|
};
|
|
3076
|
-
let
|
|
3077
|
-
var
|
|
3078
|
-
const E = (
|
|
3109
|
+
let de = 0;
|
|
3110
|
+
var U;
|
|
3111
|
+
const E = (U = class extends v {
|
|
3079
3112
|
// allows use of elementInternals' API
|
|
3080
3113
|
constructor() {
|
|
3081
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 = () => {
|
|
3082
|
-
}, this.href = "", this._internals = this.attachInternals();
|
|
3115
|
+
}, this.href = "", this._target = "_self", this._internals = this.attachInternals();
|
|
3083
3116
|
}
|
|
3084
3117
|
get size() {
|
|
3085
3118
|
return this._size;
|
|
3086
3119
|
}
|
|
3087
3120
|
set size(t) {
|
|
3088
|
-
this._size =
|
|
3121
|
+
this._size = U.VALID_SIZES.includes(
|
|
3089
3122
|
t
|
|
3090
3123
|
) ? t : "md";
|
|
3091
3124
|
}
|
|
@@ -3093,7 +3126,7 @@ const E = (z = class extends v {
|
|
|
3093
3126
|
return this._variant;
|
|
3094
3127
|
}
|
|
3095
3128
|
set variant(t) {
|
|
3096
|
-
this._variant =
|
|
3129
|
+
this._variant = U.VALID_VARIANTS.includes(
|
|
3097
3130
|
t
|
|
3098
3131
|
) ? t : "filled";
|
|
3099
3132
|
}
|
|
@@ -3101,16 +3134,24 @@ const E = (z = class extends v {
|
|
|
3101
3134
|
return this._type;
|
|
3102
3135
|
}
|
|
3103
3136
|
set type(t) {
|
|
3104
|
-
this._type =
|
|
3137
|
+
this._type = U.VALID_TYPES.includes(
|
|
3105
3138
|
t
|
|
3106
3139
|
) ? t : "button";
|
|
3107
3140
|
}
|
|
3141
|
+
get target() {
|
|
3142
|
+
return this._target;
|
|
3143
|
+
}
|
|
3144
|
+
set target(t) {
|
|
3145
|
+
this._target = U.VALID_TARGETS.includes(
|
|
3146
|
+
t
|
|
3147
|
+
) ? t : "_self";
|
|
3148
|
+
}
|
|
3108
3149
|
connectedCallback() {
|
|
3109
3150
|
super.connectedCallback(), this.id || (this.id = this._generateUniqueId());
|
|
3110
3151
|
}
|
|
3111
3152
|
/******************** Functions ********************/
|
|
3112
3153
|
_generateUniqueId() {
|
|
3113
|
-
return `nys-button-${Date.now()}-${
|
|
3154
|
+
return `nys-button-${Date.now()}-${de++}`;
|
|
3114
3155
|
}
|
|
3115
3156
|
_manageFormAction(t) {
|
|
3116
3157
|
typeof this.onClick == "function" && this.onClick(t);
|
|
@@ -3143,7 +3184,7 @@ const E = (z = class extends v {
|
|
|
3143
3184
|
}
|
|
3144
3185
|
// Handle keydown for keyboard accessibility
|
|
3145
3186
|
_handleKeydown(t) {
|
|
3146
|
-
(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));
|
|
3147
3188
|
}
|
|
3148
3189
|
render() {
|
|
3149
3190
|
return h`
|
|
@@ -3158,7 +3199,7 @@ const E = (z = class extends v {
|
|
|
3158
3199
|
form=${p(this.form ? this.form : void 0)}
|
|
3159
3200
|
value=${p(this.value ? this.value : void 0)}
|
|
3160
3201
|
href=${this.href}
|
|
3161
|
-
target
|
|
3202
|
+
target=${this.target}
|
|
3162
3203
|
aria-label=${this.ariaLabel || this.label || "button"}
|
|
3163
3204
|
@click=${this._handleClick}
|
|
3164
3205
|
@focus="${this._handleFocus}"
|
|
@@ -3199,63 +3240,72 @@ const E = (z = class extends v {
|
|
|
3199
3240
|
`}
|
|
3200
3241
|
`;
|
|
3201
3242
|
}
|
|
3202
|
-
},
|
|
3243
|
+
}, U.VALID_SIZES = ["sm", "md", "lg"], U.VALID_VARIANTS = [
|
|
3203
3244
|
"filled",
|
|
3204
3245
|
"outline",
|
|
3205
3246
|
"ghost",
|
|
3206
3247
|
"text"
|
|
3207
|
-
],
|
|
3208
|
-
|
|
3248
|
+
], U.VALID_TYPES = ["submit", "reset", "button"], U.VALID_TARGETS = [
|
|
3249
|
+
"_self",
|
|
3250
|
+
"_blank",
|
|
3251
|
+
"_parent",
|
|
3252
|
+
"_top",
|
|
3253
|
+
"framename"
|
|
3254
|
+
], U.styles = le, U.formAssociated = !0, U);
|
|
3255
|
+
V([
|
|
3209
3256
|
a({ type: String })
|
|
3210
3257
|
], E.prototype, "id", 2);
|
|
3211
|
-
|
|
3258
|
+
V([
|
|
3212
3259
|
a({ type: String, reflect: !0 })
|
|
3213
3260
|
], E.prototype, "name", 2);
|
|
3214
|
-
|
|
3261
|
+
V([
|
|
3215
3262
|
a({ reflect: !0 })
|
|
3216
3263
|
], E.prototype, "size", 1);
|
|
3217
|
-
|
|
3264
|
+
V([
|
|
3218
3265
|
a({ type: Boolean, reflect: !0 })
|
|
3219
3266
|
], E.prototype, "fullWidth", 2);
|
|
3220
|
-
|
|
3267
|
+
V([
|
|
3221
3268
|
a({ reflect: !0 })
|
|
3222
3269
|
], E.prototype, "variant", 1);
|
|
3223
|
-
|
|
3270
|
+
V([
|
|
3224
3271
|
a({ type: Boolean, reflect: !0 })
|
|
3225
3272
|
], E.prototype, "inverted", 2);
|
|
3226
|
-
|
|
3273
|
+
V([
|
|
3227
3274
|
a({ type: String })
|
|
3228
3275
|
], E.prototype, "label", 2);
|
|
3229
|
-
|
|
3276
|
+
V([
|
|
3230
3277
|
a({ type: String })
|
|
3231
3278
|
], E.prototype, "ariaLabel", 2);
|
|
3232
|
-
|
|
3279
|
+
V([
|
|
3233
3280
|
a({ type: String })
|
|
3234
3281
|
], E.prototype, "prefixIcon", 2);
|
|
3235
|
-
|
|
3282
|
+
V([
|
|
3236
3283
|
a({ type: String })
|
|
3237
3284
|
], E.prototype, "suffixIcon", 2);
|
|
3238
|
-
|
|
3285
|
+
V([
|
|
3239
3286
|
a({ type: Boolean, reflect: !0 })
|
|
3240
3287
|
], E.prototype, "disabled", 2);
|
|
3241
|
-
|
|
3288
|
+
V([
|
|
3242
3289
|
a({ type: String })
|
|
3243
3290
|
], E.prototype, "form", 2);
|
|
3244
|
-
|
|
3291
|
+
V([
|
|
3245
3292
|
a({ type: String })
|
|
3246
3293
|
], E.prototype, "value", 2);
|
|
3247
|
-
|
|
3294
|
+
V([
|
|
3248
3295
|
a({ reflect: !0 })
|
|
3249
3296
|
], E.prototype, "type", 1);
|
|
3250
|
-
|
|
3297
|
+
V([
|
|
3251
3298
|
a({ type: Function })
|
|
3252
3299
|
], E.prototype, "onClick", 2);
|
|
3253
|
-
|
|
3300
|
+
V([
|
|
3254
3301
|
a({ type: String })
|
|
3255
3302
|
], E.prototype, "href", 2);
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3303
|
+
V([
|
|
3304
|
+
a({ reflect: !0 })
|
|
3305
|
+
], E.prototype, "target", 1);
|
|
3306
|
+
let Ce = E;
|
|
3307
|
+
customElements.get("nys-button") || customElements.define("nys-button", Ce);
|
|
3308
|
+
const Q5 = f`
|
|
3259
3309
|
:host {
|
|
3260
3310
|
/* Anything that can be overridden should be defined here */
|
|
3261
3311
|
|
|
@@ -3516,10 +3566,10 @@ const J5 = b`
|
|
|
3516
3566
|
* Copyright 2019 Google LLC
|
|
3517
3567
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3518
3568
|
*/
|
|
3519
|
-
const
|
|
3520
|
-
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 {
|
|
3521
3571
|
constructor(t, e, s) {
|
|
3522
|
-
if (this._$cssResult$ = !0, s !==
|
|
3572
|
+
if (this._$cssResult$ = !0, s !== tt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
3523
3573
|
this.cssText = t, this.t = e;
|
|
3524
3574
|
}
|
|
3525
3575
|
get styleSheet() {
|
|
@@ -3527,7 +3577,7 @@ let he = class {
|
|
|
3527
3577
|
const e = this.t;
|
|
3528
3578
|
if (R2 && t === void 0) {
|
|
3529
3579
|
const s = e !== void 0 && e.length === 1;
|
|
3530
|
-
s && (t =
|
|
3580
|
+
s && (t = w5.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && w5.set(e, t));
|
|
3531
3581
|
}
|
|
3532
3582
|
return t;
|
|
3533
3583
|
}
|
|
@@ -3535,26 +3585,26 @@ let he = class {
|
|
|
3535
3585
|
return this.cssText;
|
|
3536
3586
|
}
|
|
3537
3587
|
};
|
|
3538
|
-
const
|
|
3588
|
+
const ue = (o) => new ye(typeof o == "string" ? o : o + "", void 0, tt), pe = (o, t) => {
|
|
3539
3589
|
if (R2) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
3540
3590
|
else for (const e of t) {
|
|
3541
|
-
const s = document.createElement("style"), r =
|
|
3591
|
+
const s = document.createElement("style"), r = h2.litNonce;
|
|
3542
3592
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
3543
3593
|
}
|
|
3544
|
-
},
|
|
3594
|
+
}, x5 = R2 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
3545
3595
|
let e = "";
|
|
3546
3596
|
for (const s of t.cssRules) e += s.cssText;
|
|
3547
|
-
return
|
|
3597
|
+
return ue(e);
|
|
3548
3598
|
})(o) : o;
|
|
3549
3599
|
/**
|
|
3550
3600
|
* @license
|
|
3551
3601
|
* Copyright 2017 Google LLC
|
|
3552
3602
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3553
3603
|
*/
|
|
3554
|
-
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) {
|
|
3555
3605
|
switch (t) {
|
|
3556
3606
|
case Boolean:
|
|
3557
|
-
o = o ?
|
|
3607
|
+
o = o ? we : null;
|
|
3558
3608
|
break;
|
|
3559
3609
|
case Object:
|
|
3560
3610
|
case Array:
|
|
@@ -3579,7 +3629,7 @@ const { is: ye, defineProperty: ue, getOwnPropertyDescriptor: pe, getOwnProperty
|
|
|
3579
3629
|
}
|
|
3580
3630
|
}
|
|
3581
3631
|
return e;
|
|
3582
|
-
} }, q2 = (o, t) => !
|
|
3632
|
+
} }, q2 = (o, t) => !ve(o, t), S5 = { attribute: !0, type: String, converter: g2, reflect: !1, hasChanged: q2 };
|
|
3583
3633
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), A1.litPropertyMetadata ?? (A1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
3584
3634
|
let N1 = class extends HTMLElement {
|
|
3585
3635
|
static addInitializer(t) {
|
|
@@ -3588,37 +3638,37 @@ let N1 = class extends HTMLElement {
|
|
|
3588
3638
|
static get observedAttributes() {
|
|
3589
3639
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
3590
3640
|
}
|
|
3591
|
-
static createProperty(t, e =
|
|
3641
|
+
static createProperty(t, e = S5) {
|
|
3592
3642
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
3593
3643
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
3594
|
-
r !== void 0 &&
|
|
3644
|
+
r !== void 0 && fe(this.prototype, t, r);
|
|
3595
3645
|
}
|
|
3596
3646
|
}
|
|
3597
3647
|
static getPropertyDescriptor(t, e, s) {
|
|
3598
|
-
const { get: r, set:
|
|
3648
|
+
const { get: r, set: n } = ge(this.prototype, t) ?? { get() {
|
|
3599
3649
|
return this[e];
|
|
3600
|
-
}, set(
|
|
3601
|
-
this[e] =
|
|
3650
|
+
}, set(i) {
|
|
3651
|
+
this[e] = i;
|
|
3602
3652
|
} };
|
|
3603
3653
|
return { get() {
|
|
3604
3654
|
return r == null ? void 0 : r.call(this);
|
|
3605
|
-
}, set(
|
|
3655
|
+
}, set(i) {
|
|
3606
3656
|
const l = r == null ? void 0 : r.call(this);
|
|
3607
|
-
|
|
3657
|
+
n.call(this, i), this.requestUpdate(t, l, s);
|
|
3608
3658
|
}, configurable: !0, enumerable: !0 };
|
|
3609
3659
|
}
|
|
3610
3660
|
static getPropertyOptions(t) {
|
|
3611
|
-
return this.elementProperties.get(t) ??
|
|
3661
|
+
return this.elementProperties.get(t) ?? S5;
|
|
3612
3662
|
}
|
|
3613
3663
|
static _$Ei() {
|
|
3614
3664
|
if (this.hasOwnProperty(K1("elementProperties"))) return;
|
|
3615
|
-
const t =
|
|
3665
|
+
const t = me(this);
|
|
3616
3666
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
3617
3667
|
}
|
|
3618
3668
|
static finalize() {
|
|
3619
3669
|
if (this.hasOwnProperty(K1("finalized"))) return;
|
|
3620
3670
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(K1("properties"))) {
|
|
3621
|
-
const e = this.properties, s = [...
|
|
3671
|
+
const e = this.properties, s = [..._e(e), ...be(e)];
|
|
3622
3672
|
for (const r of s) this.createProperty(r, e[r]);
|
|
3623
3673
|
}
|
|
3624
3674
|
const t = this[Symbol.metadata];
|
|
@@ -3637,8 +3687,8 @@ let N1 = class extends HTMLElement {
|
|
|
3637
3687
|
const e = [];
|
|
3638
3688
|
if (Array.isArray(t)) {
|
|
3639
3689
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
3640
|
-
for (const r of s) e.unshift(
|
|
3641
|
-
} 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));
|
|
3642
3692
|
return e;
|
|
3643
3693
|
}
|
|
3644
3694
|
static _$Eu(t, e) {
|
|
@@ -3667,7 +3717,7 @@ let N1 = class extends HTMLElement {
|
|
|
3667
3717
|
}
|
|
3668
3718
|
createRenderRoot() {
|
|
3669
3719
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
3670
|
-
return
|
|
3720
|
+
return pe(t, this.constructor.elementStyles), t;
|
|
3671
3721
|
}
|
|
3672
3722
|
connectedCallback() {
|
|
3673
3723
|
var t;
|
|
@@ -3690,18 +3740,18 @@ let N1 = class extends HTMLElement {
|
|
|
3690
3740
|
}
|
|
3691
3741
|
_$EC(t, e) {
|
|
3692
3742
|
var s;
|
|
3693
|
-
const r = this.constructor.elementProperties.get(t),
|
|
3694
|
-
if (
|
|
3695
|
-
const
|
|
3696
|
-
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;
|
|
3697
3747
|
}
|
|
3698
3748
|
}
|
|
3699
3749
|
_$AK(t, e) {
|
|
3700
3750
|
var s;
|
|
3701
|
-
const r = this.constructor,
|
|
3702
|
-
if (
|
|
3703
|
-
const
|
|
3704
|
-
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;
|
|
3705
3755
|
}
|
|
3706
3756
|
}
|
|
3707
3757
|
requestUpdate(t, e, s) {
|
|
@@ -3732,18 +3782,18 @@ let N1 = class extends HTMLElement {
|
|
|
3732
3782
|
if (!this.isUpdatePending) return;
|
|
3733
3783
|
if (!this.hasUpdated) {
|
|
3734
3784
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
3735
|
-
for (const [
|
|
3785
|
+
for (const [n, i] of this._$Ep) this[n] = i;
|
|
3736
3786
|
this._$Ep = void 0;
|
|
3737
3787
|
}
|
|
3738
3788
|
const r = this.constructor.elementProperties;
|
|
3739
|
-
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);
|
|
3740
3790
|
}
|
|
3741
3791
|
let e = !1;
|
|
3742
3792
|
const s = this._$AL;
|
|
3743
3793
|
try {
|
|
3744
3794
|
e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((r) => {
|
|
3745
|
-
var
|
|
3746
|
-
return (
|
|
3795
|
+
var n;
|
|
3796
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
3747
3797
|
}), this.update(s)) : this._$EU();
|
|
3748
3798
|
} catch (r) {
|
|
3749
3799
|
throw e = !1, this._$EU(), r;
|
|
@@ -3779,40 +3829,40 @@ let N1 = class extends HTMLElement {
|
|
|
3779
3829
|
firstUpdated(t) {
|
|
3780
3830
|
}
|
|
3781
3831
|
};
|
|
3782
|
-
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");
|
|
3783
3833
|
/**
|
|
3784
3834
|
* @license
|
|
3785
3835
|
* Copyright 2017 Google LLC
|
|
3786
3836
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3787
3837
|
*/
|
|
3788
|
-
const
|
|
3838
|
+
const xe = { attribute: !0, type: String, converter: g2, reflect: !1, hasChanged: q2 }, ke = (o = xe, t, e) => {
|
|
3789
3839
|
const { kind: s, metadata: r } = e;
|
|
3790
|
-
let
|
|
3791
|
-
if (
|
|
3792
|
-
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;
|
|
3793
3843
|
return { set(l) {
|
|
3794
3844
|
const c = t.get.call(this);
|
|
3795
|
-
t.set.call(this, l), this.requestUpdate(
|
|
3845
|
+
t.set.call(this, l), this.requestUpdate(i, c, o);
|
|
3796
3846
|
}, init(l) {
|
|
3797
|
-
return l !== void 0 && this.P(
|
|
3847
|
+
return l !== void 0 && this.P(i, void 0, o), l;
|
|
3798
3848
|
} };
|
|
3799
3849
|
}
|
|
3800
3850
|
if (s === "setter") {
|
|
3801
|
-
const { name:
|
|
3851
|
+
const { name: i } = e;
|
|
3802
3852
|
return function(l) {
|
|
3803
|
-
const c = this[
|
|
3804
|
-
t.call(this, l), this.requestUpdate(
|
|
3853
|
+
const c = this[i];
|
|
3854
|
+
t.call(this, l), this.requestUpdate(i, c, o);
|
|
3805
3855
|
};
|
|
3806
3856
|
}
|
|
3807
3857
|
throw Error("Unsupported decorator location: " + s);
|
|
3808
3858
|
};
|
|
3809
|
-
function
|
|
3810
|
-
return (t, e) => typeof e == "object" ?
|
|
3811
|
-
const
|
|
3812
|
-
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;
|
|
3813
3863
|
})(o, t, e);
|
|
3814
3864
|
}
|
|
3815
|
-
const
|
|
3865
|
+
const $e = f`
|
|
3816
3866
|
:host {
|
|
3817
3867
|
/* Label Typography */
|
|
3818
3868
|
--_nys-label-font-family: var(
|
|
@@ -3864,11 +3914,13 @@ const we = b`
|
|
|
3864
3914
|
}
|
|
3865
3915
|
|
|
3866
3916
|
.nys-label__label {
|
|
3917
|
+
text-align: left;
|
|
3867
3918
|
font-weight: var(--_nys-label-font-weight);
|
|
3868
3919
|
color: var(--_nys-label-font-color);
|
|
3869
3920
|
}
|
|
3870
3921
|
|
|
3871
3922
|
.nys-label__description {
|
|
3923
|
+
text-align: left;
|
|
3872
3924
|
font-weight: var(--nys-description-font-weight);
|
|
3873
3925
|
font-style: var(--nys-description-font-style);
|
|
3874
3926
|
color: var(--nys-description-font-color);
|
|
@@ -3884,12 +3936,12 @@ const we = b`
|
|
|
3884
3936
|
color: var(--nys-optional-font-color);
|
|
3885
3937
|
}
|
|
3886
3938
|
`;
|
|
3887
|
-
var
|
|
3888
|
-
for (var r = void 0,
|
|
3889
|
-
(
|
|
3890
|
-
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;
|
|
3891
3943
|
};
|
|
3892
|
-
const
|
|
3944
|
+
const et = class extends v {
|
|
3893
3945
|
constructor() {
|
|
3894
3946
|
super(...arguments), this.id = "", this.label = "", this.description = "", this.flag = "";
|
|
3895
3947
|
}
|
|
@@ -3908,21 +3960,21 @@ const Q5 = class extends v {
|
|
|
3908
3960
|
`;
|
|
3909
3961
|
}
|
|
3910
3962
|
};
|
|
3911
|
-
|
|
3912
|
-
let
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
],
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
],
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
],
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
],
|
|
3925
|
-
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);
|
|
3926
3978
|
/*!
|
|
3927
3979
|
* Error Message
|
|
3928
3980
|
* Part of the New York State Design System
|
|
@@ -3935,18 +3987,18 @@ customElements.get("nys-label") || customElements.define("nys-label", o2);
|
|
|
3935
3987
|
* Copyright 2019 Google LLC
|
|
3936
3988
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3937
3989
|
*/
|
|
3938
|
-
const
|
|
3939
|
-
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 {
|
|
3940
3992
|
constructor(t, e, s) {
|
|
3941
|
-
if (this._$cssResult$ = !0, s !==
|
|
3993
|
+
if (this._$cssResult$ = !0, s !== st) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
3942
3994
|
this.cssText = t, this.t = e;
|
|
3943
3995
|
}
|
|
3944
3996
|
get styleSheet() {
|
|
3945
3997
|
let t = this.o;
|
|
3946
3998
|
const e = this.t;
|
|
3947
|
-
if (
|
|
3999
|
+
if (N2 && t === void 0) {
|
|
3948
4000
|
const s = e !== void 0 && e.length === 1;
|
|
3949
|
-
s && (t =
|
|
4001
|
+
s && (t = L5.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && L5.set(e, t));
|
|
3950
4002
|
}
|
|
3951
4003
|
return t;
|
|
3952
4004
|
}
|
|
@@ -3954,26 +4006,26 @@ let ke = class {
|
|
|
3954
4006
|
return this.cssText;
|
|
3955
4007
|
}
|
|
3956
4008
|
};
|
|
3957
|
-
const
|
|
3958
|
-
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);
|
|
3959
4011
|
else for (const e of t) {
|
|
3960
|
-
const s = document.createElement("style"), r =
|
|
4012
|
+
const s = document.createElement("style"), r = d2.litNonce;
|
|
3961
4013
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
3962
4014
|
}
|
|
3963
|
-
},
|
|
4015
|
+
}, E5 = N2 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
3964
4016
|
let e = "";
|
|
3965
4017
|
for (const s of t.cssRules) e += s.cssText;
|
|
3966
|
-
return
|
|
4018
|
+
return Ee(e);
|
|
3967
4019
|
})(o) : o;
|
|
3968
4020
|
/**
|
|
3969
4021
|
* @license
|
|
3970
4022
|
* Copyright 2017 Google LLC
|
|
3971
4023
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3972
4024
|
*/
|
|
3973
|
-
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) {
|
|
3974
4026
|
switch (t) {
|
|
3975
4027
|
case Boolean:
|
|
3976
|
-
o = o ?
|
|
4028
|
+
o = o ? Ze : null;
|
|
3977
4029
|
break;
|
|
3978
4030
|
case Object:
|
|
3979
4031
|
case Array:
|
|
@@ -3998,7 +4050,7 @@ const { is: Le, defineProperty: Me, getOwnPropertyDescriptor: Ee, getOwnProperty
|
|
|
3998
4050
|
}
|
|
3999
4051
|
}
|
|
4000
4052
|
return e;
|
|
4001
|
-
} },
|
|
4053
|
+
} }, j2 = (o, t) => !De(o, t), A5 = { attribute: !0, type: String, converter: _2, reflect: !1, hasChanged: j2 };
|
|
4002
4054
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), V1.litPropertyMetadata ?? (V1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
4003
4055
|
let j1 = class extends HTMLElement {
|
|
4004
4056
|
static addInitializer(t) {
|
|
@@ -4007,37 +4059,37 @@ let j1 = class extends HTMLElement {
|
|
|
4007
4059
|
static get observedAttributes() {
|
|
4008
4060
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
4009
4061
|
}
|
|
4010
|
-
static createProperty(t, e =
|
|
4062
|
+
static createProperty(t, e = A5) {
|
|
4011
4063
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
4012
4064
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
4013
|
-
r !== void 0 &&
|
|
4065
|
+
r !== void 0 && Ae(this.prototype, t, r);
|
|
4014
4066
|
}
|
|
4015
4067
|
}
|
|
4016
4068
|
static getPropertyDescriptor(t, e, s) {
|
|
4017
|
-
const { get: r, set:
|
|
4069
|
+
const { get: r, set: n } = Ve(this.prototype, t) ?? { get() {
|
|
4018
4070
|
return this[e];
|
|
4019
|
-
}, set(
|
|
4020
|
-
this[e] =
|
|
4071
|
+
}, set(i) {
|
|
4072
|
+
this[e] = i;
|
|
4021
4073
|
} };
|
|
4022
4074
|
return { get() {
|
|
4023
4075
|
return r == null ? void 0 : r.call(this);
|
|
4024
|
-
}, set(
|
|
4076
|
+
}, set(i) {
|
|
4025
4077
|
const l = r == null ? void 0 : r.call(this);
|
|
4026
|
-
|
|
4078
|
+
n.call(this, i), this.requestUpdate(t, l, s);
|
|
4027
4079
|
}, configurable: !0, enumerable: !0 };
|
|
4028
4080
|
}
|
|
4029
4081
|
static getPropertyOptions(t) {
|
|
4030
|
-
return this.elementProperties.get(t) ??
|
|
4082
|
+
return this.elementProperties.get(t) ?? A5;
|
|
4031
4083
|
}
|
|
4032
4084
|
static _$Ei() {
|
|
4033
4085
|
if (this.hasOwnProperty(J1("elementProperties"))) return;
|
|
4034
|
-
const t =
|
|
4086
|
+
const t = ze(this);
|
|
4035
4087
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
4036
4088
|
}
|
|
4037
4089
|
static finalize() {
|
|
4038
4090
|
if (this.hasOwnProperty(J1("finalized"))) return;
|
|
4039
4091
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(J1("properties"))) {
|
|
4040
|
-
const e = this.properties, s = [...
|
|
4092
|
+
const e = this.properties, s = [...He(e), ...Ue(e)];
|
|
4041
4093
|
for (const r of s) this.createProperty(r, e[r]);
|
|
4042
4094
|
}
|
|
4043
4095
|
const t = this[Symbol.metadata];
|
|
@@ -4056,8 +4108,8 @@ let j1 = class extends HTMLElement {
|
|
|
4056
4108
|
const e = [];
|
|
4057
4109
|
if (Array.isArray(t)) {
|
|
4058
4110
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
4059
|
-
for (const r of s) e.unshift(
|
|
4060
|
-
} 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));
|
|
4061
4113
|
return e;
|
|
4062
4114
|
}
|
|
4063
4115
|
static _$Eu(t, e) {
|
|
@@ -4086,7 +4138,7 @@ let j1 = class extends HTMLElement {
|
|
|
4086
4138
|
}
|
|
4087
4139
|
createRenderRoot() {
|
|
4088
4140
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
4089
|
-
return
|
|
4141
|
+
return Me(t, this.constructor.elementStyles), t;
|
|
4090
4142
|
}
|
|
4091
4143
|
connectedCallback() {
|
|
4092
4144
|
var t;
|
|
@@ -4109,23 +4161,23 @@ let j1 = class extends HTMLElement {
|
|
|
4109
4161
|
}
|
|
4110
4162
|
_$EC(t, e) {
|
|
4111
4163
|
var s;
|
|
4112
|
-
const r = this.constructor.elementProperties.get(t),
|
|
4113
|
-
if (
|
|
4114
|
-
const
|
|
4115
|
-
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;
|
|
4116
4168
|
}
|
|
4117
4169
|
}
|
|
4118
4170
|
_$AK(t, e) {
|
|
4119
4171
|
var s;
|
|
4120
|
-
const r = this.constructor,
|
|
4121
|
-
if (
|
|
4122
|
-
const
|
|
4123
|
-
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;
|
|
4124
4176
|
}
|
|
4125
4177
|
}
|
|
4126
4178
|
requestUpdate(t, e, s) {
|
|
4127
4179
|
if (t !== void 0) {
|
|
4128
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
|
4180
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? j2)(this[t], e)) return;
|
|
4129
4181
|
this.P(t, e, s);
|
|
4130
4182
|
}
|
|
4131
4183
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -4151,18 +4203,18 @@ let j1 = class extends HTMLElement {
|
|
|
4151
4203
|
if (!this.isUpdatePending) return;
|
|
4152
4204
|
if (!this.hasUpdated) {
|
|
4153
4205
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
4154
|
-
for (const [
|
|
4206
|
+
for (const [n, i] of this._$Ep) this[n] = i;
|
|
4155
4207
|
this._$Ep = void 0;
|
|
4156
4208
|
}
|
|
4157
4209
|
const r = this.constructor.elementProperties;
|
|
4158
|
-
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);
|
|
4159
4211
|
}
|
|
4160
4212
|
let e = !1;
|
|
4161
4213
|
const s = this._$AL;
|
|
4162
4214
|
try {
|
|
4163
4215
|
e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((r) => {
|
|
4164
|
-
var
|
|
4165
|
-
return (
|
|
4216
|
+
var n;
|
|
4217
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
4166
4218
|
}), this.update(s)) : this._$EU();
|
|
4167
4219
|
} catch (r) {
|
|
4168
4220
|
throw e = !1, this._$EU(), r;
|
|
@@ -4198,40 +4250,40 @@ let j1 = class extends HTMLElement {
|
|
|
4198
4250
|
firstUpdated(t) {
|
|
4199
4251
|
}
|
|
4200
4252
|
};
|
|
4201
|
-
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");
|
|
4202
4254
|
/**
|
|
4203
4255
|
* @license
|
|
4204
4256
|
* Copyright 2017 Google LLC
|
|
4205
4257
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4206
4258
|
*/
|
|
4207
|
-
const
|
|
4259
|
+
const Pe = { attribute: !0, type: String, converter: _2, reflect: !1, hasChanged: j2 }, Oe = (o = Pe, t, e) => {
|
|
4208
4260
|
const { kind: s, metadata: r } = e;
|
|
4209
|
-
let
|
|
4210
|
-
if (
|
|
4211
|
-
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;
|
|
4212
4264
|
return { set(l) {
|
|
4213
4265
|
const c = t.get.call(this);
|
|
4214
|
-
t.set.call(this, l), this.requestUpdate(
|
|
4266
|
+
t.set.call(this, l), this.requestUpdate(i, c, o);
|
|
4215
4267
|
}, init(l) {
|
|
4216
|
-
return l !== void 0 && this.P(
|
|
4268
|
+
return l !== void 0 && this.P(i, void 0, o), l;
|
|
4217
4269
|
} };
|
|
4218
4270
|
}
|
|
4219
4271
|
if (s === "setter") {
|
|
4220
|
-
const { name:
|
|
4272
|
+
const { name: i } = e;
|
|
4221
4273
|
return function(l) {
|
|
4222
|
-
const c = this[
|
|
4223
|
-
t.call(this, l), this.requestUpdate(
|
|
4274
|
+
const c = this[i];
|
|
4275
|
+
t.call(this, l), this.requestUpdate(i, c, o);
|
|
4224
4276
|
};
|
|
4225
4277
|
}
|
|
4226
4278
|
throw Error("Unsupported decorator location: " + s);
|
|
4227
4279
|
};
|
|
4228
|
-
function
|
|
4229
|
-
return (t, e) => typeof e == "object" ?
|
|
4230
|
-
const
|
|
4231
|
-
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;
|
|
4232
4284
|
})(o, t, e);
|
|
4233
4285
|
}
|
|
4234
|
-
const
|
|
4286
|
+
const Ie = f`
|
|
4235
4287
|
:host {
|
|
4236
4288
|
--_nys-errormessage-font-family: var(
|
|
4237
4289
|
--nys-font-family-ui,
|
|
@@ -4281,12 +4333,12 @@ const Ze = b`
|
|
|
4281
4333
|
var(--_nys-errormessage-color);
|
|
4282
4334
|
}
|
|
4283
4335
|
`;
|
|
4284
|
-
var
|
|
4285
|
-
for (var r = void 0,
|
|
4286
|
-
(
|
|
4287
|
-
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;
|
|
4288
4340
|
};
|
|
4289
|
-
const
|
|
4341
|
+
const z2 = class extends v {
|
|
4290
4342
|
// allows use of elementInternals' API
|
|
4291
4343
|
constructor() {
|
|
4292
4344
|
super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
|
|
@@ -4298,24 +4350,24 @@ const U2 = class extends v {
|
|
|
4298
4350
|
</div>` : ""}`;
|
|
4299
4351
|
}
|
|
4300
4352
|
};
|
|
4301
|
-
|
|
4302
|
-
let
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
],
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
],
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
],
|
|
4312
|
-
customElements.get("nys-errormessage") || customElements.define("nys-errormessage",
|
|
4313
|
-
var
|
|
4314
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4315
|
-
(
|
|
4316
|
-
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;
|
|
4317
4369
|
};
|
|
4318
|
-
let
|
|
4370
|
+
let qe = 0;
|
|
4319
4371
|
var X;
|
|
4320
4372
|
const G = (X = class extends v {
|
|
4321
4373
|
// allows use of elementInternals' API
|
|
@@ -4332,7 +4384,7 @@ const G = (X = class extends v {
|
|
|
4332
4384
|
}
|
|
4333
4385
|
// Generate a unique ID if one is not provided
|
|
4334
4386
|
connectedCallback() {
|
|
4335
|
-
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);
|
|
4336
4388
|
}
|
|
4337
4389
|
disconnectedCallback() {
|
|
4338
4390
|
super.disconnectedCallback(), this.removeEventListener("change", this._handleCheckboxChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4378,16 +4430,16 @@ const G = (X = class extends v {
|
|
|
4378
4430
|
}
|
|
4379
4431
|
// Similar to how native forms handle multiple same-name fields, we group the selected values into a list for FormData.
|
|
4380
4432
|
_handleCheckboxChange(t) {
|
|
4381
|
-
const e = t, { name: s } = e.detail,
|
|
4382
|
-
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();
|
|
4383
4435
|
}
|
|
4384
4436
|
// Updates the required attribute of each checkbox in the group
|
|
4385
4437
|
async _manageCheckboxRequired() {
|
|
4386
4438
|
if (this.required) {
|
|
4387
4439
|
const t = this.errorMessage || "Please select at least one option.", e = this.querySelector("nys-checkbox"), s = e ? await e.getInputElement() : null;
|
|
4388
4440
|
let r = !1;
|
|
4389
|
-
this.querySelectorAll("nys-checkbox").forEach((
|
|
4390
|
-
|
|
4441
|
+
this.querySelectorAll("nys-checkbox").forEach((i) => {
|
|
4442
|
+
i.checked && (r = !0);
|
|
4391
4443
|
}), r ? (this._internals.setValidity({}), this.showError = !1) : (this._internals.setValidity(
|
|
4392
4444
|
{ valueMissing: !0 },
|
|
4393
4445
|
t,
|
|
@@ -4408,6 +4460,7 @@ const G = (X = class extends v {
|
|
|
4408
4460
|
role="group"
|
|
4409
4461
|
>
|
|
4410
4462
|
<nys-label
|
|
4463
|
+
id=${this.id}
|
|
4411
4464
|
label=${this.label}
|
|
4412
4465
|
description=${this.description}
|
|
4413
4466
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -4424,7 +4477,7 @@ const G = (X = class extends v {
|
|
|
4424
4477
|
></nys-errormessage>
|
|
4425
4478
|
</div>`;
|
|
4426
4479
|
}
|
|
4427
|
-
}, X.VALID_SIZES = ["sm", "md"], X.styles =
|
|
4480
|
+
}, X.VALID_SIZES = ["sm", "md"], X.styles = Q5, X.formAssociated = !0, X);
|
|
4428
4481
|
o1([
|
|
4429
4482
|
a({ type: String })
|
|
4430
4483
|
], G.prototype, "id", 2);
|
|
@@ -4452,14 +4505,14 @@ o1([
|
|
|
4452
4505
|
o1([
|
|
4453
4506
|
a({ reflect: !0 })
|
|
4454
4507
|
], G.prototype, "size", 1);
|
|
4455
|
-
let
|
|
4456
|
-
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup",
|
|
4457
|
-
var
|
|
4458
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
4459
|
-
(
|
|
4460
|
-
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;
|
|
4461
4514
|
};
|
|
4462
|
-
let
|
|
4515
|
+
let Ge = 0;
|
|
4463
4516
|
var Q;
|
|
4464
4517
|
const P = (Q = class extends v {
|
|
4465
4518
|
// allows use of elementInternals' API
|
|
@@ -4480,7 +4533,7 @@ const P = (Q = class extends v {
|
|
|
4480
4533
|
}
|
|
4481
4534
|
// Generate a unique ID if one is not provided
|
|
4482
4535
|
connectedCallback() {
|
|
4483
|
-
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);
|
|
4484
4537
|
}
|
|
4485
4538
|
disconnectedCallback() {
|
|
4486
4539
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4624,46 +4677,46 @@ const P = (Q = class extends v {
|
|
|
4624
4677
|
</div>
|
|
4625
4678
|
`;
|
|
4626
4679
|
}
|
|
4627
|
-
}, Q.VALID_SIZES = ["sm", "md"], Q.styles =
|
|
4628
|
-
|
|
4680
|
+
}, Q.VALID_SIZES = ["sm", "md"], Q.styles = Q5, Q.formAssociated = !0, Q);
|
|
4681
|
+
B([
|
|
4629
4682
|
a({ type: Boolean, reflect: !0 })
|
|
4630
4683
|
], P.prototype, "checked", 2);
|
|
4631
|
-
|
|
4684
|
+
B([
|
|
4632
4685
|
a({ type: Boolean, reflect: !0 })
|
|
4633
4686
|
], P.prototype, "disabled", 2);
|
|
4634
|
-
|
|
4687
|
+
B([
|
|
4635
4688
|
a({ type: Boolean, reflect: !0 })
|
|
4636
4689
|
], P.prototype, "required", 2);
|
|
4637
|
-
|
|
4690
|
+
B([
|
|
4638
4691
|
a({ type: String })
|
|
4639
4692
|
], P.prototype, "label", 2);
|
|
4640
|
-
|
|
4693
|
+
B([
|
|
4641
4694
|
a({ type: String })
|
|
4642
4695
|
], P.prototype, "description", 2);
|
|
4643
|
-
|
|
4696
|
+
B([
|
|
4644
4697
|
a({ type: String })
|
|
4645
4698
|
], P.prototype, "id", 2);
|
|
4646
|
-
|
|
4699
|
+
B([
|
|
4647
4700
|
a({ type: String, reflect: !0 })
|
|
4648
4701
|
], P.prototype, "name", 2);
|
|
4649
|
-
|
|
4702
|
+
B([
|
|
4650
4703
|
a({ type: String })
|
|
4651
4704
|
], P.prototype, "value", 2);
|
|
4652
|
-
|
|
4705
|
+
B([
|
|
4653
4706
|
a({ type: Boolean, reflect: !0 })
|
|
4654
4707
|
], P.prototype, "showError", 2);
|
|
4655
|
-
|
|
4708
|
+
B([
|
|
4656
4709
|
a({ type: String })
|
|
4657
4710
|
], P.prototype, "errorMessage", 2);
|
|
4658
|
-
|
|
4711
|
+
B([
|
|
4659
4712
|
a({ type: Boolean })
|
|
4660
4713
|
], P.prototype, "groupExist", 2);
|
|
4661
|
-
|
|
4714
|
+
B([
|
|
4662
4715
|
a({ reflect: !0 })
|
|
4663
4716
|
], P.prototype, "size", 1);
|
|
4664
|
-
let
|
|
4665
|
-
customElements.get("nys-checkbox") || customElements.define("nys-checkbox",
|
|
4666
|
-
const
|
|
4717
|
+
let We = P;
|
|
4718
|
+
customElements.get("nys-checkbox") || customElements.define("nys-checkbox", We);
|
|
4719
|
+
const Ye = f`
|
|
4667
4720
|
:host {
|
|
4668
4721
|
--_nys-errormessage-font-family: var(
|
|
4669
4722
|
--nys-font-family-ui,
|
|
@@ -4713,12 +4766,12 @@ const Fe = b`
|
|
|
4713
4766
|
var(--_nys-errormessage-color);
|
|
4714
4767
|
}
|
|
4715
4768
|
`;
|
|
4716
|
-
var
|
|
4717
|
-
for (var r = void 0,
|
|
4718
|
-
(
|
|
4719
|
-
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;
|
|
4720
4773
|
};
|
|
4721
|
-
const
|
|
4774
|
+
const k2 = class k2 extends v {
|
|
4722
4775
|
// allows use of elementInternals' API
|
|
4723
4776
|
constructor() {
|
|
4724
4777
|
super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
|
|
@@ -4730,19 +4783,19 @@ const x2 = class x2 extends v {
|
|
|
4730
4783
|
</div>` : ""}`;
|
|
4731
4784
|
}
|
|
4732
4785
|
};
|
|
4733
|
-
|
|
4734
|
-
let H1 =
|
|
4735
|
-
|
|
4786
|
+
k2.styles = Ye, k2.formAssociated = !0;
|
|
4787
|
+
let H1 = k2;
|
|
4788
|
+
W2([
|
|
4736
4789
|
a({ type: Boolean })
|
|
4737
4790
|
], H1.prototype, "showError");
|
|
4738
|
-
|
|
4791
|
+
W2([
|
|
4739
4792
|
a({ type: String })
|
|
4740
4793
|
], H1.prototype, "errorMessage");
|
|
4741
|
-
|
|
4794
|
+
W2([
|
|
4742
4795
|
a({ type: Boolean, reflect: !0 })
|
|
4743
4796
|
], H1.prototype, "showDivider");
|
|
4744
4797
|
customElements.get("nys-errormessage") || customElements.define("nys-errormessage", H1);
|
|
4745
|
-
const
|
|
4798
|
+
const Je = {
|
|
4746
4799
|
// --------- UX Team Main Library (below) --------- //
|
|
4747
4800
|
// *** CORE *** //
|
|
4748
4801
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -4938,6 +4991,22 @@ const We = {
|
|
|
4938
4991
|
<g mask="url(#mask0_12372_409)">
|
|
4939
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)"/>
|
|
4940
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>
|
|
4941
5010
|
</svg>`,
|
|
4942
5011
|
// *** Arrows *** //
|
|
4943
5012
|
arrow_back: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -5226,7 +5295,7 @@ const We = {
|
|
|
5226
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)"/>
|
|
5227
5296
|
</g>
|
|
5228
5297
|
</svg>`
|
|
5229
|
-
},
|
|
5298
|
+
}, Xe = f`
|
|
5230
5299
|
:host {
|
|
5231
5300
|
display: inline-block;
|
|
5232
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. */
|
|
@@ -5323,10 +5392,10 @@ const We = {
|
|
|
5323
5392
|
transform: scale(-1, -1);
|
|
5324
5393
|
}
|
|
5325
5394
|
`;
|
|
5326
|
-
var
|
|
5327
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
5328
|
-
(
|
|
5329
|
-
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;
|
|
5330
5399
|
}, C1;
|
|
5331
5400
|
const $1 = (C1 = class extends v {
|
|
5332
5401
|
constructor() {
|
|
@@ -5341,16 +5410,16 @@ const $1 = (C1 = class extends v {
|
|
|
5341
5410
|
) ? t : "sm";
|
|
5342
5411
|
}
|
|
5343
5412
|
getIcon() {
|
|
5344
|
-
const t =
|
|
5413
|
+
const t = Je[this.name], e = !!this.label;
|
|
5345
5414
|
if (!t) return null;
|
|
5346
|
-
const
|
|
5347
|
-
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;
|
|
5348
5417
|
}
|
|
5349
5418
|
render() {
|
|
5350
5419
|
const t = this.getIcon();
|
|
5351
5420
|
return t ? h`${t}` : null;
|
|
5352
5421
|
}
|
|
5353
|
-
}, C1.styles =
|
|
5422
|
+
}, C1.styles = Xe, C1.VALID_TYPES = [
|
|
5354
5423
|
"2xs",
|
|
5355
5424
|
"xs",
|
|
5356
5425
|
"sm",
|
|
@@ -5385,9 +5454,9 @@ I1([
|
|
|
5385
5454
|
I1([
|
|
5386
5455
|
a({ reflect: !0 })
|
|
5387
5456
|
], $1.prototype, "size", 1);
|
|
5388
|
-
let
|
|
5389
|
-
customElements.get("nys-icon") || customElements.define("nys-icon",
|
|
5390
|
-
const
|
|
5457
|
+
let e7 = $1;
|
|
5458
|
+
customElements.get("nys-icon") || customElements.define("nys-icon", e7);
|
|
5459
|
+
const s7 = f`
|
|
5391
5460
|
:host {
|
|
5392
5461
|
/* Label Typography */
|
|
5393
5462
|
--_nys-label-font-family: var(
|
|
@@ -5439,11 +5508,13 @@ const Qe = b`
|
|
|
5439
5508
|
}
|
|
5440
5509
|
|
|
5441
5510
|
.nys-label__label {
|
|
5511
|
+
text-align: left;
|
|
5442
5512
|
font-weight: var(--_nys-label-font-weight);
|
|
5443
5513
|
color: var(--_nys-label-font-color);
|
|
5444
5514
|
}
|
|
5445
5515
|
|
|
5446
5516
|
.nys-label__description {
|
|
5517
|
+
text-align: left;
|
|
5447
5518
|
font-weight: var(--nys-description-font-weight);
|
|
5448
5519
|
font-style: var(--nys-description-font-style);
|
|
5449
5520
|
color: var(--nys-description-font-color);
|
|
@@ -5459,12 +5530,12 @@ const Qe = b`
|
|
|
5459
5530
|
color: var(--nys-optional-font-color);
|
|
5460
5531
|
}
|
|
5461
5532
|
`;
|
|
5462
|
-
var
|
|
5463
|
-
for (var r = void 0,
|
|
5464
|
-
(
|
|
5465
|
-
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;
|
|
5466
5537
|
};
|
|
5467
|
-
const
|
|
5538
|
+
const Q2 = class Q2 extends v {
|
|
5468
5539
|
constructor() {
|
|
5469
5540
|
super(...arguments), this.id = "", this.label = "", this.description = "", this.flag = "";
|
|
5470
5541
|
}
|
|
@@ -5483,8 +5554,8 @@ const X2 = class X2 extends v {
|
|
|
5483
5554
|
`;
|
|
5484
5555
|
}
|
|
5485
5556
|
};
|
|
5486
|
-
|
|
5487
|
-
let m1 =
|
|
5557
|
+
Q2.styles = s7;
|
|
5558
|
+
let m1 = Q2;
|
|
5488
5559
|
M2([
|
|
5489
5560
|
a({ type: String })
|
|
5490
5561
|
], m1.prototype, "id");
|
|
@@ -5498,7 +5569,7 @@ M2([
|
|
|
5498
5569
|
a({ type: String })
|
|
5499
5570
|
], m1.prototype, "flag");
|
|
5500
5571
|
customElements.get("nys-label") || customElements.define("nys-label", m1);
|
|
5501
|
-
const
|
|
5572
|
+
const rt = f`
|
|
5502
5573
|
:host {
|
|
5503
5574
|
/* Global Radiobutton Styles */
|
|
5504
5575
|
--_nys-radiobutton-size: var(--nys-size-400, 32px);
|
|
@@ -5646,7 +5717,7 @@ const et = b`
|
|
|
5646
5717
|
background-repeat: no-repeat;
|
|
5647
5718
|
background-position: center;
|
|
5648
5719
|
background-size: contain;
|
|
5649
|
-
margin
|
|
5720
|
+
margin: 0 0 auto 0; /* Causes centered radio button if single line of label but top aligned if multiline */
|
|
5650
5721
|
}
|
|
5651
5722
|
|
|
5652
5723
|
/* Pointer cursor for unchecked radio button */
|
|
@@ -5730,14 +5801,14 @@ const et = b`
|
|
|
5730
5801
|
cursor: not-allowed;
|
|
5731
5802
|
}
|
|
5732
5803
|
`;
|
|
5733
|
-
var
|
|
5734
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
5735
|
-
(
|
|
5736
|
-
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;
|
|
5737
5808
|
};
|
|
5738
|
-
let
|
|
5809
|
+
let i7 = 0;
|
|
5739
5810
|
var t1;
|
|
5740
|
-
const
|
|
5811
|
+
const N = (t1 = class extends v {
|
|
5741
5812
|
// allows use of elementInternals' API
|
|
5742
5813
|
constructor() {
|
|
5743
5814
|
super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.selectedValue = null, this._size = "md", this._internals = this.attachInternals();
|
|
@@ -5752,7 +5823,7 @@ const T = (t1 = class extends v {
|
|
|
5752
5823
|
}
|
|
5753
5824
|
// Generate a unique ID if one is not provided
|
|
5754
5825
|
connectedCallback() {
|
|
5755
|
-
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);
|
|
5756
5827
|
}
|
|
5757
5828
|
disconnectedCallback() {
|
|
5758
5829
|
super.disconnectedCallback(), this.removeEventListener("change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -5781,11 +5852,11 @@ const T = (t1 = class extends v {
|
|
|
5781
5852
|
}
|
|
5782
5853
|
async _manageRequire() {
|
|
5783
5854
|
const t = this.errorMessage || "Please select an option.", e = this.querySelector("nys-radiobutton"), s = e ? await e.getInputElement() : null;
|
|
5784
|
-
this.required && !this.selectedValue ? this._internals.setValidity(
|
|
5855
|
+
s && (this.required && !this.selectedValue ? this._internals.setValidity(
|
|
5785
5856
|
{ valueMissing: !0 },
|
|
5786
5857
|
t,
|
|
5787
5858
|
s
|
|
5788
|
-
) : (this.showError = !1, this._internals.setValidity({}, "", s));
|
|
5859
|
+
) : (this.showError = !1, this._internals.setValidity({}, "", s)));
|
|
5789
5860
|
}
|
|
5790
5861
|
// Need to account for if radiogroup already have a radiobutton checked at initialization
|
|
5791
5862
|
_initializeCheckedRadioValue() {
|
|
@@ -5828,6 +5899,7 @@ const T = (t1 = class extends v {
|
|
|
5828
5899
|
aria-invalid="${this.showError ? "true" : "false"}"
|
|
5829
5900
|
>
|
|
5830
5901
|
<nys-label
|
|
5902
|
+
id=${this.id}
|
|
5831
5903
|
label=${this.label}
|
|
5832
5904
|
description=${this.description}
|
|
5833
5905
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -5844,45 +5916,45 @@ const T = (t1 = class extends v {
|
|
|
5844
5916
|
></nys-errormessage>
|
|
5845
5917
|
</div>`;
|
|
5846
5918
|
}
|
|
5847
|
-
}, t1.VALID_SIZES = ["sm", "md"], t1.styles =
|
|
5919
|
+
}, t1.VALID_SIZES = ["sm", "md"], t1.styles = rt, t1.formAssociated = !0, t1);
|
|
5848
5920
|
W([
|
|
5849
5921
|
a({ type: String })
|
|
5850
|
-
],
|
|
5922
|
+
], N.prototype, "id", 2);
|
|
5851
5923
|
W([
|
|
5852
5924
|
a({ type: String, reflect: !0 })
|
|
5853
|
-
],
|
|
5925
|
+
], N.prototype, "name", 2);
|
|
5854
5926
|
W([
|
|
5855
5927
|
a({ type: Boolean, reflect: !0 })
|
|
5856
|
-
],
|
|
5928
|
+
], N.prototype, "required", 2);
|
|
5857
5929
|
W([
|
|
5858
5930
|
a({ type: Boolean, reflect: !0 })
|
|
5859
|
-
],
|
|
5931
|
+
], N.prototype, "optional", 2);
|
|
5860
5932
|
W([
|
|
5861
5933
|
a({ type: Boolean, reflect: !0 })
|
|
5862
|
-
],
|
|
5934
|
+
], N.prototype, "showError", 2);
|
|
5863
5935
|
W([
|
|
5864
5936
|
a({ type: String })
|
|
5865
|
-
],
|
|
5937
|
+
], N.prototype, "errorMessage", 2);
|
|
5866
5938
|
W([
|
|
5867
5939
|
a({ type: String })
|
|
5868
|
-
],
|
|
5940
|
+
], N.prototype, "label", 2);
|
|
5869
5941
|
W([
|
|
5870
5942
|
a({ type: String })
|
|
5871
|
-
],
|
|
5943
|
+
], N.prototype, "description", 2);
|
|
5872
5944
|
W([
|
|
5873
5945
|
x1()
|
|
5874
|
-
],
|
|
5946
|
+
], N.prototype, "selectedValue", 2);
|
|
5875
5947
|
W([
|
|
5876
5948
|
a({ reflect: !0 })
|
|
5877
|
-
],
|
|
5878
|
-
let
|
|
5879
|
-
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup",
|
|
5880
|
-
var
|
|
5881
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
5882
|
-
(
|
|
5883
|
-
return s && r &&
|
|
5949
|
+
], N.prototype, "size", 1);
|
|
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;
|
|
5884
5956
|
};
|
|
5885
|
-
let
|
|
5957
|
+
let h7 = 0;
|
|
5886
5958
|
var u;
|
|
5887
5959
|
const Y = (u = class extends v {
|
|
5888
5960
|
constructor() {
|
|
@@ -5907,7 +5979,7 @@ const Y = (u = class extends v {
|
|
|
5907
5979
|
/********************** Lifecycle updates **********************/
|
|
5908
5980
|
// Generate a unique ID if one is not provided
|
|
5909
5981
|
connectedCallback() {
|
|
5910
|
-
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);
|
|
5911
5983
|
}
|
|
5912
5984
|
updated(t) {
|
|
5913
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);
|
|
@@ -5985,7 +6057,7 @@ const Y = (u = class extends v {
|
|
|
5985
6057
|
</label>
|
|
5986
6058
|
`;
|
|
5987
6059
|
}
|
|
5988
|
-
}, u.VALID_SIZES = ["sm", "md"], u.buttonGroup = {}, u.styles =
|
|
6060
|
+
}, u.VALID_SIZES = ["sm", "md"], u.buttonGroup = {}, u.styles = rt, u);
|
|
5989
6061
|
n1([
|
|
5990
6062
|
a({ type: Boolean, reflect: !0 })
|
|
5991
6063
|
], Y.prototype, "checked", 2);
|
|
@@ -6013,9 +6085,9 @@ n1([
|
|
|
6013
6085
|
n1([
|
|
6014
6086
|
a({ reflect: !0 })
|
|
6015
6087
|
], Y.prototype, "size", 1);
|
|
6016
|
-
let
|
|
6017
|
-
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton",
|
|
6018
|
-
const
|
|
6088
|
+
let d7 = Y;
|
|
6089
|
+
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", d7);
|
|
6090
|
+
const C7 = f`
|
|
6019
6091
|
:host {
|
|
6020
6092
|
/* Global Select Styles */
|
|
6021
6093
|
--_nys-select-width: 100%;
|
|
@@ -6163,10 +6235,10 @@ const c7 = b`
|
|
|
6163
6235
|
var(--_nys-select-error-color);
|
|
6164
6236
|
}
|
|
6165
6237
|
`;
|
|
6166
|
-
var
|
|
6167
|
-
for (var r = void 0,
|
|
6168
|
-
(
|
|
6169
|
-
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;
|
|
6170
6242
|
};
|
|
6171
6243
|
class S1 extends v {
|
|
6172
6244
|
constructor() {
|
|
@@ -6195,28 +6267,28 @@ class S1 extends v {
|
|
|
6195
6267
|
`;
|
|
6196
6268
|
}
|
|
6197
6269
|
}
|
|
6198
|
-
|
|
6270
|
+
i2([
|
|
6199
6271
|
a({ type: Boolean, reflect: !0 })
|
|
6200
6272
|
], S1.prototype, "disabled");
|
|
6201
|
-
|
|
6273
|
+
i2([
|
|
6202
6274
|
a({ type: Boolean, reflect: !0 })
|
|
6203
6275
|
], S1.prototype, "selected");
|
|
6204
|
-
|
|
6276
|
+
i2([
|
|
6205
6277
|
a({ type: String })
|
|
6206
6278
|
], S1.prototype, "value");
|
|
6207
|
-
|
|
6279
|
+
i2([
|
|
6208
6280
|
a({ type: String })
|
|
6209
6281
|
], S1.prototype, "label");
|
|
6210
|
-
|
|
6282
|
+
i2([
|
|
6211
6283
|
a({ type: Boolean, reflect: !0 })
|
|
6212
6284
|
], S1.prototype, "hidden");
|
|
6213
6285
|
customElements.define("nys-option", S1);
|
|
6214
|
-
var
|
|
6215
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6216
|
-
(
|
|
6217
|
-
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;
|
|
6218
6290
|
};
|
|
6219
|
-
let
|
|
6291
|
+
let v7 = 0;
|
|
6220
6292
|
var e1;
|
|
6221
6293
|
const O = (e1 = class extends v {
|
|
6222
6294
|
// allows use of elementInternals' API
|
|
@@ -6233,7 +6305,7 @@ const O = (e1 = class extends v {
|
|
|
6233
6305
|
}
|
|
6234
6306
|
// Generate a unique ID if one is not provided
|
|
6235
6307
|
connectedCallback() {
|
|
6236
|
-
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);
|
|
6237
6309
|
}
|
|
6238
6310
|
disconnectedCallback() {
|
|
6239
6311
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -6246,16 +6318,16 @@ const O = (e1 = class extends v {
|
|
|
6246
6318
|
this.value = "";
|
|
6247
6319
|
}
|
|
6248
6320
|
_handleSlotChange() {
|
|
6249
|
-
var r,
|
|
6321
|
+
var r, n;
|
|
6250
6322
|
const t = (r = this.shadowRoot) == null ? void 0 : r.querySelector(
|
|
6251
6323
|
'slot:not([name="description"])'
|
|
6252
|
-
), e = (
|
|
6324
|
+
), e = (n = this.shadowRoot) == null ? void 0 : n.querySelector("select");
|
|
6253
6325
|
if (!t || !e) return;
|
|
6254
|
-
e.querySelectorAll("option:not([hidden])").forEach((
|
|
6326
|
+
e.querySelectorAll("option:not([hidden])").forEach((i) => i.remove()), t.assignedElements({ flatten: !0 }).forEach((i) => {
|
|
6255
6327
|
var l;
|
|
6256
|
-
if (
|
|
6328
|
+
if (i instanceof S1) {
|
|
6257
6329
|
const c = document.createElement("option");
|
|
6258
|
-
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);
|
|
6259
6331
|
}
|
|
6260
6332
|
});
|
|
6261
6333
|
}
|
|
@@ -6340,6 +6412,7 @@ const O = (e1 = class extends v {
|
|
|
6340
6412
|
return h`
|
|
6341
6413
|
<div class="nys-select">
|
|
6342
6414
|
<nys-label
|
|
6415
|
+
id=${this.id}
|
|
6343
6416
|
label=${this.label}
|
|
6344
6417
|
description=${this.description}
|
|
6345
6418
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -6380,46 +6453,167 @@ const O = (e1 = class extends v {
|
|
|
6380
6453
|
</div>
|
|
6381
6454
|
`;
|
|
6382
6455
|
}
|
|
6383
|
-
}, e1.VALID_WIDTHS = ["sm", "md", "lg", "full"], e1.styles =
|
|
6384
|
-
|
|
6456
|
+
}, e1.VALID_WIDTHS = ["sm", "md", "lg", "full"], e1.styles = C7, e1.formAssociated = !0, e1);
|
|
6457
|
+
T([
|
|
6385
6458
|
a({ type: String })
|
|
6386
6459
|
], O.prototype, "id", 2);
|
|
6387
|
-
|
|
6460
|
+
T([
|
|
6388
6461
|
a({ type: String, reflect: !0 })
|
|
6389
6462
|
], O.prototype, "name", 2);
|
|
6390
|
-
|
|
6463
|
+
T([
|
|
6391
6464
|
a({ type: String })
|
|
6392
6465
|
], O.prototype, "label", 2);
|
|
6393
|
-
|
|
6466
|
+
T([
|
|
6394
6467
|
a({ type: String })
|
|
6395
6468
|
], O.prototype, "description", 2);
|
|
6396
|
-
|
|
6469
|
+
T([
|
|
6397
6470
|
a({ type: String })
|
|
6398
6471
|
], O.prototype, "value", 2);
|
|
6399
|
-
|
|
6472
|
+
T([
|
|
6400
6473
|
a({ type: Boolean, reflect: !0 })
|
|
6401
6474
|
], O.prototype, "disabled", 2);
|
|
6402
|
-
|
|
6475
|
+
T([
|
|
6403
6476
|
a({ type: Boolean, reflect: !0 })
|
|
6404
6477
|
], O.prototype, "required", 2);
|
|
6405
|
-
|
|
6478
|
+
T([
|
|
6406
6479
|
a({ type: Boolean, reflect: !0 })
|
|
6407
6480
|
], O.prototype, "optional", 2);
|
|
6408
|
-
|
|
6481
|
+
T([
|
|
6409
6482
|
a({ type: String })
|
|
6410
6483
|
], O.prototype, "form", 2);
|
|
6411
|
-
|
|
6484
|
+
T([
|
|
6412
6485
|
a({ type: Boolean, reflect: !0 })
|
|
6413
6486
|
], O.prototype, "showError", 2);
|
|
6414
|
-
|
|
6487
|
+
T([
|
|
6415
6488
|
a({ type: String })
|
|
6416
6489
|
], O.prototype, "errorMessage", 2);
|
|
6417
|
-
|
|
6490
|
+
T([
|
|
6418
6491
|
a({ reflect: !0 })
|
|
6419
6492
|
], O.prototype, "width", 1);
|
|
6420
|
-
let
|
|
6421
|
-
customElements.get("nys-select") || customElements.define("nys-select",
|
|
6422
|
-
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`
|
|
6423
6617
|
:host {
|
|
6424
6618
|
/* Anything that can be overridden should be defined here */
|
|
6425
6619
|
|
|
@@ -6561,14 +6755,14 @@ const p7 = b`
|
|
|
6561
6755
|
cursor: not-allowed;
|
|
6562
6756
|
}
|
|
6563
6757
|
`;
|
|
6564
|
-
var
|
|
6565
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6566
|
-
(
|
|
6567
|
-
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;
|
|
6568
6762
|
};
|
|
6569
|
-
let
|
|
6763
|
+
let x7 = 0;
|
|
6570
6764
|
var R;
|
|
6571
|
-
const
|
|
6765
|
+
const M = (R = class extends v {
|
|
6572
6766
|
// allows use of elementInternals' API
|
|
6573
6767
|
constructor() {
|
|
6574
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();
|
|
@@ -6581,12 +6775,12 @@ const L = (R = class extends v {
|
|
|
6581
6775
|
t
|
|
6582
6776
|
) ? t : "vertical";
|
|
6583
6777
|
}
|
|
6584
|
-
updated(t) {
|
|
6585
|
-
t.has("width") && (this.width = R.VALID_WIDTHS.includes(this.width) ? this.width : "full"), t.has("rows") && (this.rows = this.rows ?? 4);
|
|
6778
|
+
async updated(t) {
|
|
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);
|
|
6586
6780
|
}
|
|
6587
6781
|
// Generate a unique ID if one is not provided
|
|
6588
6782
|
connectedCallback() {
|
|
6589
|
-
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);
|
|
6590
6784
|
}
|
|
6591
6785
|
disconnectedCallback() {
|
|
6592
6786
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -6691,6 +6885,7 @@ const L = (R = class extends v {
|
|
|
6691
6885
|
return h`
|
|
6692
6886
|
<label class="nys-textarea">
|
|
6693
6887
|
<nys-label
|
|
6888
|
+
id=${this.id}
|
|
6694
6889
|
label=${this.label}
|
|
6695
6890
|
description=${this.description}
|
|
6696
6891
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -6728,61 +6923,61 @@ const L = (R = class extends v {
|
|
|
6728
6923
|
</label>
|
|
6729
6924
|
`;
|
|
6730
6925
|
}
|
|
6731
|
-
}, R.VALID_WIDTHS = ["sm", "md", "lg", "full"], R.VALID_RESIZE = ["vertical", "none"], R.styles =
|
|
6732
|
-
|
|
6926
|
+
}, R.VALID_WIDTHS = ["sm", "md", "lg", "full"], R.VALID_RESIZE = ["vertical", "none"], R.styles = b7, R.formAssociated = !0, R);
|
|
6927
|
+
H([
|
|
6733
6928
|
a({ type: String })
|
|
6734
|
-
],
|
|
6735
|
-
|
|
6929
|
+
], M.prototype, "id", 2);
|
|
6930
|
+
H([
|
|
6736
6931
|
a({ type: String, reflect: !0 })
|
|
6737
|
-
],
|
|
6738
|
-
|
|
6932
|
+
], M.prototype, "name", 2);
|
|
6933
|
+
H([
|
|
6739
6934
|
a({ type: String })
|
|
6740
|
-
],
|
|
6741
|
-
|
|
6935
|
+
], M.prototype, "label", 2);
|
|
6936
|
+
H([
|
|
6742
6937
|
a({ type: String })
|
|
6743
|
-
],
|
|
6744
|
-
|
|
6938
|
+
], M.prototype, "description", 2);
|
|
6939
|
+
H([
|
|
6745
6940
|
a({ type: String })
|
|
6746
|
-
],
|
|
6747
|
-
|
|
6941
|
+
], M.prototype, "placeholder", 2);
|
|
6942
|
+
H([
|
|
6748
6943
|
a({ type: String })
|
|
6749
|
-
],
|
|
6750
|
-
|
|
6944
|
+
], M.prototype, "value", 2);
|
|
6945
|
+
H([
|
|
6751
6946
|
a({ type: Boolean, reflect: !0 })
|
|
6752
|
-
],
|
|
6753
|
-
|
|
6947
|
+
], M.prototype, "disabled", 2);
|
|
6948
|
+
H([
|
|
6754
6949
|
a({ type: Boolean, reflect: !0 })
|
|
6755
|
-
],
|
|
6756
|
-
|
|
6950
|
+
], M.prototype, "readonly", 2);
|
|
6951
|
+
H([
|
|
6757
6952
|
a({ type: Boolean, reflect: !0 })
|
|
6758
|
-
],
|
|
6759
|
-
|
|
6953
|
+
], M.prototype, "required", 2);
|
|
6954
|
+
H([
|
|
6760
6955
|
a({ type: Boolean, reflect: !0 })
|
|
6761
|
-
],
|
|
6762
|
-
|
|
6956
|
+
], M.prototype, "optional", 2);
|
|
6957
|
+
H([
|
|
6763
6958
|
a({ type: String })
|
|
6764
|
-
],
|
|
6765
|
-
|
|
6959
|
+
], M.prototype, "form", 2);
|
|
6960
|
+
H([
|
|
6766
6961
|
a({ type: Number })
|
|
6767
|
-
],
|
|
6768
|
-
|
|
6962
|
+
], M.prototype, "maxlength", 2);
|
|
6963
|
+
H([
|
|
6769
6964
|
a({ reflect: !0 })
|
|
6770
|
-
],
|
|
6771
|
-
|
|
6965
|
+
], M.prototype, "width", 2);
|
|
6966
|
+
H([
|
|
6772
6967
|
a({ type: Number })
|
|
6773
|
-
],
|
|
6774
|
-
|
|
6968
|
+
], M.prototype, "rows", 2);
|
|
6969
|
+
H([
|
|
6775
6970
|
a({ reflect: !0 })
|
|
6776
|
-
],
|
|
6777
|
-
|
|
6971
|
+
], M.prototype, "resize", 1);
|
|
6972
|
+
H([
|
|
6778
6973
|
a({ type: Boolean, reflect: !0 })
|
|
6779
|
-
],
|
|
6780
|
-
|
|
6974
|
+
], M.prototype, "showError", 2);
|
|
6975
|
+
H([
|
|
6781
6976
|
a({ type: String })
|
|
6782
|
-
],
|
|
6783
|
-
let
|
|
6784
|
-
customElements.get("nys-textarea") || customElements.define("nys-textarea",
|
|
6785
|
-
const
|
|
6977
|
+
], M.prototype, "errorMessage", 2);
|
|
6978
|
+
let k7 = M;
|
|
6979
|
+
customElements.get("nys-textarea") || customElements.define("nys-textarea", k7);
|
|
6980
|
+
const $7 = f`
|
|
6786
6981
|
:host {
|
|
6787
6982
|
/* Anything that can be overridden should be defined here */
|
|
6788
6983
|
|
|
@@ -6942,14 +7137,14 @@ const b7 = b`
|
|
|
6942
7137
|
cursor: not-allowed;
|
|
6943
7138
|
}
|
|
6944
7139
|
`;
|
|
6945
|
-
var
|
|
6946
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
6947
|
-
(
|
|
6948
|
-
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;
|
|
6949
7144
|
};
|
|
6950
|
-
let
|
|
7145
|
+
let E7 = 0;
|
|
6951
7146
|
var q;
|
|
6952
|
-
const
|
|
7147
|
+
const g = (q = class extends v {
|
|
6953
7148
|
// allows use of elementInternals' API
|
|
6954
7149
|
constructor() {
|
|
6955
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();
|
|
@@ -6963,12 +7158,12 @@ const f = (q = class extends v {
|
|
|
6963
7158
|
) ? t : "text";
|
|
6964
7159
|
}
|
|
6965
7160
|
// Ensure the "width" property is valid after updates
|
|
6966
|
-
updated(t) {
|
|
6967
|
-
t.has("width") && (this.width = q.VALID_WIDTHS.includes(this.width) ? this.width : "full");
|
|
7161
|
+
async updated(t) {
|
|
7162
|
+
t.has("width") && (await Promise.resolve(), this.width = q.VALID_WIDTHS.includes(this.width) ? this.width : "full");
|
|
6968
7163
|
}
|
|
6969
7164
|
// Generate a unique ID if one is not provided
|
|
6970
7165
|
connectedCallback() {
|
|
6971
|
-
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);
|
|
6972
7167
|
}
|
|
6973
7168
|
disconnectedCallback() {
|
|
6974
7169
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -7056,6 +7251,7 @@ const f = (q = class extends v {
|
|
|
7056
7251
|
return h`
|
|
7057
7252
|
<div class="nys-textinput">
|
|
7058
7253
|
<nys-label
|
|
7254
|
+
id=${this.id}
|
|
7059
7255
|
label=${this.label}
|
|
7060
7256
|
description=${this.description}
|
|
7061
7257
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -7070,6 +7266,7 @@ const f = (q = class extends v {
|
|
|
7070
7266
|
id=${this.id}
|
|
7071
7267
|
?disabled=${this.disabled}
|
|
7072
7268
|
?required=${this.required}
|
|
7269
|
+
?aria-required=${this.required}
|
|
7073
7270
|
?readonly=${this.readonly}
|
|
7074
7271
|
aria-disabled="${this.disabled}"
|
|
7075
7272
|
aria-label="${this.label} ${this.description}"
|
|
@@ -7112,73 +7309,73 @@ const f = (q = class extends v {
|
|
|
7112
7309
|
"tel",
|
|
7113
7310
|
"text",
|
|
7114
7311
|
"url"
|
|
7115
|
-
], q.VALID_WIDTHS = ["sm", "md", "lg", "full"], q.styles =
|
|
7312
|
+
], q.VALID_WIDTHS = ["sm", "md", "lg", "full"], q.styles = $7, q.formAssociated = !0, q);
|
|
7116
7313
|
m([
|
|
7117
7314
|
a({ type: String })
|
|
7118
|
-
],
|
|
7315
|
+
], g.prototype, "id", 2);
|
|
7119
7316
|
m([
|
|
7120
7317
|
a({ type: String, reflect: !0 })
|
|
7121
|
-
],
|
|
7318
|
+
], g.prototype, "name", 2);
|
|
7122
7319
|
m([
|
|
7123
7320
|
a({ reflect: !0 })
|
|
7124
|
-
],
|
|
7321
|
+
], g.prototype, "type", 1);
|
|
7125
7322
|
m([
|
|
7126
7323
|
a({ type: String })
|
|
7127
|
-
],
|
|
7324
|
+
], g.prototype, "label", 2);
|
|
7128
7325
|
m([
|
|
7129
7326
|
a({ type: String })
|
|
7130
|
-
],
|
|
7327
|
+
], g.prototype, "description", 2);
|
|
7131
7328
|
m([
|
|
7132
7329
|
a({ type: String })
|
|
7133
|
-
],
|
|
7330
|
+
], g.prototype, "placeholder", 2);
|
|
7134
7331
|
m([
|
|
7135
7332
|
a({ type: String })
|
|
7136
|
-
],
|
|
7333
|
+
], g.prototype, "value", 2);
|
|
7137
7334
|
m([
|
|
7138
7335
|
a({ type: Boolean, reflect: !0 })
|
|
7139
|
-
],
|
|
7336
|
+
], g.prototype, "disabled", 2);
|
|
7140
7337
|
m([
|
|
7141
7338
|
a({ type: Boolean, reflect: !0 })
|
|
7142
|
-
],
|
|
7339
|
+
], g.prototype, "readonly", 2);
|
|
7143
7340
|
m([
|
|
7144
7341
|
a({ type: Boolean, reflect: !0 })
|
|
7145
|
-
],
|
|
7342
|
+
], g.prototype, "required", 2);
|
|
7146
7343
|
m([
|
|
7147
7344
|
a({ type: Boolean, reflect: !0 })
|
|
7148
|
-
],
|
|
7345
|
+
], g.prototype, "optional", 2);
|
|
7149
7346
|
m([
|
|
7150
7347
|
a({ type: String })
|
|
7151
|
-
],
|
|
7348
|
+
], g.prototype, "form", 2);
|
|
7152
7349
|
m([
|
|
7153
7350
|
a({ type: String })
|
|
7154
|
-
],
|
|
7351
|
+
], g.prototype, "pattern", 2);
|
|
7155
7352
|
m([
|
|
7156
7353
|
a({ type: Number })
|
|
7157
|
-
],
|
|
7354
|
+
], g.prototype, "maxlength", 2);
|
|
7158
7355
|
m([
|
|
7159
7356
|
a({ reflect: !0 })
|
|
7160
|
-
],
|
|
7357
|
+
], g.prototype, "width", 2);
|
|
7161
7358
|
m([
|
|
7162
7359
|
a({ type: Number })
|
|
7163
|
-
],
|
|
7360
|
+
], g.prototype, "step", 2);
|
|
7164
7361
|
m([
|
|
7165
7362
|
a({ type: Number })
|
|
7166
|
-
],
|
|
7363
|
+
], g.prototype, "min", 2);
|
|
7167
7364
|
m([
|
|
7168
7365
|
a({ type: Number })
|
|
7169
|
-
],
|
|
7366
|
+
], g.prototype, "max", 2);
|
|
7170
7367
|
m([
|
|
7171
7368
|
a({ type: Boolean, reflect: !0 })
|
|
7172
|
-
],
|
|
7369
|
+
], g.prototype, "showError", 2);
|
|
7173
7370
|
m([
|
|
7174
7371
|
a({ type: String })
|
|
7175
|
-
],
|
|
7372
|
+
], g.prototype, "errorMessage", 2);
|
|
7176
7373
|
m([
|
|
7177
7374
|
x1()
|
|
7178
|
-
],
|
|
7179
|
-
let
|
|
7180
|
-
customElements.get("nys-textinput") || customElements.define("nys-textinput",
|
|
7181
|
-
const
|
|
7375
|
+
], g.prototype, "showPassword", 2);
|
|
7376
|
+
let M7 = g;
|
|
7377
|
+
customElements.get("nys-textinput") || customElements.define("nys-textinput", M7);
|
|
7378
|
+
const D7 = f`
|
|
7182
7379
|
:host {
|
|
7183
7380
|
/* Global Toggle Styles */
|
|
7184
7381
|
--_nys-toggle-width: var(--nys-font-size-8xl, 44px);
|
|
@@ -7455,14 +7652,14 @@ const $7 = b`
|
|
|
7455
7652
|
}
|
|
7456
7653
|
}
|
|
7457
7654
|
`;
|
|
7458
|
-
var
|
|
7459
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
7460
|
-
(
|
|
7461
|
-
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;
|
|
7462
7659
|
};
|
|
7463
|
-
let
|
|
7660
|
+
let H7 = 0;
|
|
7464
7661
|
var s1;
|
|
7465
|
-
const
|
|
7662
|
+
const j = (s1 = class extends v {
|
|
7466
7663
|
// allows use of elementInternals' API
|
|
7467
7664
|
constructor() {
|
|
7468
7665
|
super(), this.id = "", this.name = "", this.value = "", this.checked = !1, this.disabled = !1, this.noIcon = !1, this.label = "", this.description = "", this._size = "md", this.form = "", this._internals = this.attachInternals();
|
|
@@ -7477,7 +7674,7 @@ const N = (s1 = class extends v {
|
|
|
7477
7674
|
}
|
|
7478
7675
|
// Generate a unique ID if one is not provided
|
|
7479
7676
|
connectedCallback() {
|
|
7480
|
-
super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${
|
|
7677
|
+
super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${H7++}`);
|
|
7481
7678
|
}
|
|
7482
7679
|
/********************** Form Integration **********************/
|
|
7483
7680
|
// Update the internals whenever `checked` or `value` changes.
|
|
@@ -7551,40 +7748,40 @@ const N = (s1 = class extends v {
|
|
|
7551
7748
|
</label>
|
|
7552
7749
|
`;
|
|
7553
7750
|
}
|
|
7554
|
-
}, s1.VALID_SIZES = ["sm", "md"], s1.styles =
|
|
7751
|
+
}, s1.VALID_SIZES = ["sm", "md"], s1.styles = D7, s1.formAssociated = !0, s1);
|
|
7555
7752
|
K([
|
|
7556
7753
|
a({ type: String })
|
|
7557
|
-
],
|
|
7754
|
+
], j.prototype, "id", 2);
|
|
7558
7755
|
K([
|
|
7559
7756
|
a({ type: String, reflect: !0 })
|
|
7560
|
-
],
|
|
7757
|
+
], j.prototype, "name", 2);
|
|
7561
7758
|
K([
|
|
7562
7759
|
a({ type: String })
|
|
7563
|
-
],
|
|
7760
|
+
], j.prototype, "value", 2);
|
|
7564
7761
|
K([
|
|
7565
7762
|
a({ type: Boolean, reflect: !0 })
|
|
7566
|
-
],
|
|
7763
|
+
], j.prototype, "checked", 2);
|
|
7567
7764
|
K([
|
|
7568
7765
|
a({ type: Boolean, reflect: !0 })
|
|
7569
|
-
],
|
|
7766
|
+
], j.prototype, "disabled", 2);
|
|
7570
7767
|
K([
|
|
7571
7768
|
a({ type: Boolean })
|
|
7572
|
-
],
|
|
7769
|
+
], j.prototype, "noIcon", 2);
|
|
7573
7770
|
K([
|
|
7574
7771
|
a({ type: String })
|
|
7575
|
-
],
|
|
7772
|
+
], j.prototype, "label", 2);
|
|
7576
7773
|
K([
|
|
7577
7774
|
a({ type: String })
|
|
7578
|
-
],
|
|
7775
|
+
], j.prototype, "description", 2);
|
|
7579
7776
|
K([
|
|
7580
7777
|
a({ reflect: !0 })
|
|
7581
|
-
],
|
|
7778
|
+
], j.prototype, "size", 1);
|
|
7582
7779
|
K([
|
|
7583
7780
|
a({ type: String })
|
|
7584
|
-
],
|
|
7585
|
-
let
|
|
7586
|
-
customElements.get("nys-toggle") || customElements.define("nys-toggle",
|
|
7587
|
-
const
|
|
7781
|
+
], j.prototype, "form", 2);
|
|
7782
|
+
let U7 = j;
|
|
7783
|
+
customElements.get("nys-toggle") || customElements.define("nys-toggle", U7);
|
|
7784
|
+
const z7 = f`
|
|
7588
7785
|
:host {
|
|
7589
7786
|
/* Global Unav Header Styles */
|
|
7590
7787
|
--_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
|
|
@@ -7898,7 +8095,7 @@ const D7 = b`
|
|
|
7898
8095
|
display: contents;
|
|
7899
8096
|
}
|
|
7900
8097
|
}
|
|
7901
|
-
`,
|
|
8098
|
+
`, Z7 = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
7902
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"/>
|
|
7903
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"/>
|
|
7904
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"/>
|
|
@@ -7930,18 +8127,18 @@ const D7 = b`
|
|
|
7930
8127
|
* Copyright 2019 Google LLC
|
|
7931
8128
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7932
8129
|
*/
|
|
7933
|
-
const
|
|
7934
|
-
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 {
|
|
7935
8132
|
constructor(o, t, e) {
|
|
7936
|
-
if (this._$cssResult$ = !0, e !==
|
|
8133
|
+
if (this._$cssResult$ = !0, e !== nt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
7937
8134
|
this.cssText = o, this.t = t;
|
|
7938
8135
|
}
|
|
7939
8136
|
get styleSheet() {
|
|
7940
8137
|
let o = this.o;
|
|
7941
8138
|
const t = this.t;
|
|
7942
|
-
if (
|
|
8139
|
+
if (Y2 && o === void 0) {
|
|
7943
8140
|
const e = t !== void 0 && t.length === 1;
|
|
7944
|
-
e && (o =
|
|
8141
|
+
e && (o = V5.get(t)), o === void 0 && ((this.o = o = new CSSStyleSheet()).replaceSync(this.cssText), e && V5.set(t, o));
|
|
7945
8142
|
}
|
|
7946
8143
|
return o;
|
|
7947
8144
|
}
|
|
@@ -7949,26 +8146,26 @@ let V7 = class {
|
|
|
7949
8146
|
return this.cssText;
|
|
7950
8147
|
}
|
|
7951
8148
|
};
|
|
7952
|
-
const
|
|
7953
|
-
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);
|
|
7954
8151
|
else for (const e of t) {
|
|
7955
|
-
const s = document.createElement("style"), r =
|
|
8152
|
+
const s = document.createElement("style"), r = C2.litNonce;
|
|
7956
8153
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, o.appendChild(s);
|
|
7957
8154
|
}
|
|
7958
|
-
},
|
|
8155
|
+
}, H5 = Y2 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
7959
8156
|
let e = "";
|
|
7960
8157
|
for (const s of t.cssRules) e += s.cssText;
|
|
7961
|
-
return
|
|
8158
|
+
return O7(e);
|
|
7962
8159
|
})(o) : o;
|
|
7963
8160
|
/**
|
|
7964
8161
|
* @license
|
|
7965
8162
|
* Copyright 2017 Google LLC
|
|
7966
8163
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7967
8164
|
*/
|
|
7968
|
-
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) {
|
|
7969
8166
|
switch (t) {
|
|
7970
8167
|
case Boolean:
|
|
7971
|
-
o = o ?
|
|
8168
|
+
o = o ? F7 : null;
|
|
7972
8169
|
break;
|
|
7973
8170
|
case Object:
|
|
7974
8171
|
case Array:
|
|
@@ -7993,7 +8190,7 @@ const { is: z7, defineProperty: Z7, getOwnPropertyDescriptor: P7, getOwnProperty
|
|
|
7993
8190
|
}
|
|
7994
8191
|
}
|
|
7995
8192
|
return e;
|
|
7996
|
-
} },
|
|
8193
|
+
} }, K2 = (o, t) => !B7(o, t), Z5 = { attribute: !0, type: String, converter: b2, reflect: !1, hasChanged: K2 };
|
|
7997
8194
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), U1.litPropertyMetadata ?? (U1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
7998
8195
|
class F1 extends HTMLElement {
|
|
7999
8196
|
static addInitializer(t) {
|
|
@@ -8002,37 +8199,37 @@ class F1 extends HTMLElement {
|
|
|
8002
8199
|
static get observedAttributes() {
|
|
8003
8200
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
8004
8201
|
}
|
|
8005
|
-
static createProperty(t, e =
|
|
8202
|
+
static createProperty(t, e = Z5) {
|
|
8006
8203
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
8007
8204
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
|
8008
|
-
r !== void 0 &&
|
|
8205
|
+
r !== void 0 && T7(this.prototype, t, r);
|
|
8009
8206
|
}
|
|
8010
8207
|
}
|
|
8011
8208
|
static getPropertyDescriptor(t, e, s) {
|
|
8012
|
-
const { get: r, set:
|
|
8209
|
+
const { get: r, set: n } = R7(this.prototype, t) ?? { get() {
|
|
8013
8210
|
return this[e];
|
|
8014
|
-
}, set(
|
|
8015
|
-
this[e] =
|
|
8211
|
+
}, set(i) {
|
|
8212
|
+
this[e] = i;
|
|
8016
8213
|
} };
|
|
8017
8214
|
return { get() {
|
|
8018
8215
|
return r == null ? void 0 : r.call(this);
|
|
8019
|
-
}, set(
|
|
8216
|
+
}, set(i) {
|
|
8020
8217
|
const l = r == null ? void 0 : r.call(this);
|
|
8021
|
-
|
|
8218
|
+
n.call(this, i), this.requestUpdate(t, l, s);
|
|
8022
8219
|
}, configurable: !0, enumerable: !0 };
|
|
8023
8220
|
}
|
|
8024
8221
|
static getPropertyOptions(t) {
|
|
8025
|
-
return this.elementProperties.get(t) ??
|
|
8222
|
+
return this.elementProperties.get(t) ?? Z5;
|
|
8026
8223
|
}
|
|
8027
8224
|
static _$Ei() {
|
|
8028
8225
|
if (this.hasOwnProperty(X1("elementProperties"))) return;
|
|
8029
|
-
const t =
|
|
8226
|
+
const t = j7(this);
|
|
8030
8227
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
8031
8228
|
}
|
|
8032
8229
|
static finalize() {
|
|
8033
8230
|
if (this.hasOwnProperty(X1("finalized"))) return;
|
|
8034
8231
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(X1("properties"))) {
|
|
8035
|
-
const e = this.properties, s = [...
|
|
8232
|
+
const e = this.properties, s = [...q7(e), ...N7(e)];
|
|
8036
8233
|
for (const r of s) this.createProperty(r, e[r]);
|
|
8037
8234
|
}
|
|
8038
8235
|
const t = this[Symbol.metadata];
|
|
@@ -8051,8 +8248,8 @@ class F1 extends HTMLElement {
|
|
|
8051
8248
|
const e = [];
|
|
8052
8249
|
if (Array.isArray(t)) {
|
|
8053
8250
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
8054
|
-
for (const r of s) e.unshift(
|
|
8055
|
-
} 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));
|
|
8056
8253
|
return e;
|
|
8057
8254
|
}
|
|
8058
8255
|
static _$Eu(t, e) {
|
|
@@ -8081,7 +8278,7 @@ class F1 extends HTMLElement {
|
|
|
8081
8278
|
}
|
|
8082
8279
|
createRenderRoot() {
|
|
8083
8280
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
8084
|
-
return
|
|
8281
|
+
return I7(t, this.constructor.elementStyles), t;
|
|
8085
8282
|
}
|
|
8086
8283
|
connectedCallback() {
|
|
8087
8284
|
var t;
|
|
@@ -8104,23 +8301,23 @@ class F1 extends HTMLElement {
|
|
|
8104
8301
|
}
|
|
8105
8302
|
_$EC(t, e) {
|
|
8106
8303
|
var s;
|
|
8107
|
-
const r = this.constructor.elementProperties.get(t),
|
|
8108
|
-
if (
|
|
8109
|
-
const
|
|
8110
|
-
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;
|
|
8111
8308
|
}
|
|
8112
8309
|
}
|
|
8113
8310
|
_$AK(t, e) {
|
|
8114
8311
|
var s;
|
|
8115
|
-
const r = this.constructor,
|
|
8116
|
-
if (
|
|
8117
|
-
const
|
|
8118
|
-
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;
|
|
8119
8316
|
}
|
|
8120
8317
|
}
|
|
8121
8318
|
requestUpdate(t, e, s) {
|
|
8122
8319
|
if (t !== void 0) {
|
|
8123
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
|
8320
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? K2)(this[t], e)) return;
|
|
8124
8321
|
this.P(t, e, s);
|
|
8125
8322
|
}
|
|
8126
8323
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -8146,18 +8343,18 @@ class F1 extends HTMLElement {
|
|
|
8146
8343
|
if (!this.isUpdatePending) return;
|
|
8147
8344
|
if (!this.hasUpdated) {
|
|
8148
8345
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
8149
|
-
for (const [
|
|
8346
|
+
for (const [n, i] of this._$Ep) this[n] = i;
|
|
8150
8347
|
this._$Ep = void 0;
|
|
8151
8348
|
}
|
|
8152
8349
|
const r = this.constructor.elementProperties;
|
|
8153
|
-
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);
|
|
8154
8351
|
}
|
|
8155
8352
|
let e = !1;
|
|
8156
8353
|
const s = this._$AL;
|
|
8157
8354
|
try {
|
|
8158
8355
|
e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((r) => {
|
|
8159
|
-
var
|
|
8160
|
-
return (
|
|
8356
|
+
var n;
|
|
8357
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
8161
8358
|
}), this.update(s)) : this._$EU();
|
|
8162
8359
|
} catch (r) {
|
|
8163
8360
|
throw e = !1, this._$EU(), r;
|
|
@@ -8193,37 +8390,37 @@ class F1 extends HTMLElement {
|
|
|
8193
8390
|
firstUpdated(t) {
|
|
8194
8391
|
}
|
|
8195
8392
|
}
|
|
8196
|
-
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");
|
|
8197
8394
|
/**
|
|
8198
8395
|
* @license
|
|
8199
8396
|
* Copyright 2017 Google LLC
|
|
8200
8397
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8201
8398
|
*/
|
|
8202
|
-
const
|
|
8399
|
+
const G7 = { attribute: !0, type: String, converter: b2, reflect: !1, hasChanged: K2 }, W7 = (o = G7, t, e) => {
|
|
8203
8400
|
const { kind: s, metadata: r } = e;
|
|
8204
|
-
let
|
|
8205
|
-
if (
|
|
8206
|
-
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;
|
|
8207
8404
|
return { set(l) {
|
|
8208
8405
|
const c = t.get.call(this);
|
|
8209
|
-
t.set.call(this, l), this.requestUpdate(
|
|
8406
|
+
t.set.call(this, l), this.requestUpdate(i, c, o);
|
|
8210
8407
|
}, init(l) {
|
|
8211
|
-
return l !== void 0 && this.P(
|
|
8408
|
+
return l !== void 0 && this.P(i, void 0, o), l;
|
|
8212
8409
|
} };
|
|
8213
8410
|
}
|
|
8214
8411
|
if (s === "setter") {
|
|
8215
|
-
const { name:
|
|
8412
|
+
const { name: i } = e;
|
|
8216
8413
|
return function(l) {
|
|
8217
|
-
const c = this[
|
|
8218
|
-
t.call(this, l), this.requestUpdate(
|
|
8414
|
+
const c = this[i];
|
|
8415
|
+
t.call(this, l), this.requestUpdate(i, c, o);
|
|
8219
8416
|
};
|
|
8220
8417
|
}
|
|
8221
8418
|
throw Error("Unsupported decorator location: " + s);
|
|
8222
8419
|
};
|
|
8223
8420
|
function w(o) {
|
|
8224
|
-
return (t, e) => typeof e == "object" ?
|
|
8225
|
-
const
|
|
8226
|
-
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;
|
|
8227
8424
|
})(o, t, e);
|
|
8228
8425
|
}
|
|
8229
8426
|
/**
|
|
@@ -8231,10 +8428,10 @@ function w(o) {
|
|
|
8231
8428
|
* Copyright 2017 Google LLC
|
|
8232
8429
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8233
8430
|
*/
|
|
8234
|
-
function
|
|
8431
|
+
function Y7(o) {
|
|
8235
8432
|
return w({ ...o, state: !0, attribute: !1 });
|
|
8236
8433
|
}
|
|
8237
|
-
const
|
|
8434
|
+
const K7 = f`
|
|
8238
8435
|
:host {
|
|
8239
8436
|
/* Anything that can be overridden should be defined here */
|
|
8240
8437
|
|
|
@@ -8399,55 +8596,55 @@ const j7 = b`
|
|
|
8399
8596
|
* Copyright 2017 Google LLC
|
|
8400
8597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8401
8598
|
*/
|
|
8402
|
-
const
|
|
8403
|
-
\f\r]`, G1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
8404
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
8405
|
-
function
|
|
8406
|
-
if (!
|
|
8407
|
-
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;
|
|
8408
8605
|
}
|
|
8409
|
-
const
|
|
8606
|
+
const Q7 = (o, t) => {
|
|
8410
8607
|
const e = o.length - 1, s = [];
|
|
8411
|
-
let r,
|
|
8608
|
+
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = G1;
|
|
8412
8609
|
for (let l = 0; l < e; l++) {
|
|
8413
8610
|
const c = o[l];
|
|
8414
|
-
let C, y, d = -1,
|
|
8415
|
-
for (;
|
|
8416
|
-
const k =
|
|
8417
|
-
|
|
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);
|
|
8418
8615
|
}
|
|
8419
|
-
return [
|
|
8616
|
+
return [ct(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
8420
8617
|
};
|
|
8421
|
-
class
|
|
8618
|
+
class o2 {
|
|
8422
8619
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
8423
8620
|
let r;
|
|
8424
8621
|
this.parts = [];
|
|
8425
|
-
let
|
|
8426
|
-
const l = t.length - 1, c = this.parts, [C, y] =
|
|
8427
|
-
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) {
|
|
8428
8625
|
const d = this.el.content.firstChild;
|
|
8429
8626
|
d.replaceWith(...d.childNodes);
|
|
8430
8627
|
}
|
|
8431
8628
|
for (; (r = _1.nextNode()) !== null && c.length < l; ) {
|
|
8432
8629
|
if (r.nodeType === 1) {
|
|
8433
|
-
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(
|
|
8434
|
-
const
|
|
8435
|
-
c.push({ type: 1, index:
|
|
8436
|
-
} else d.startsWith(c1) && (c.push({ type: 6, index:
|
|
8437
|
-
if (
|
|
8438
|
-
const d = r.textContent.split(c1),
|
|
8439
|
-
if (
|
|
8440
|
-
r.textContent =
|
|
8441
|
-
for (let k = 0; k <
|
|
8442
|
-
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());
|
|
8443
8640
|
}
|
|
8444
8641
|
}
|
|
8445
|
-
} else if (r.nodeType === 8) if (r.data ===
|
|
8642
|
+
} else if (r.nodeType === 8) if (r.data === at) c.push({ type: 2, index: n });
|
|
8446
8643
|
else {
|
|
8447
8644
|
let d = -1;
|
|
8448
|
-
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;
|
|
8449
8646
|
}
|
|
8450
|
-
|
|
8647
|
+
n++;
|
|
8451
8648
|
}
|
|
8452
8649
|
}
|
|
8453
8650
|
static createElement(t, e) {
|
|
@@ -8456,13 +8653,13 @@ class r2 {
|
|
|
8456
8653
|
}
|
|
8457
8654
|
}
|
|
8458
8655
|
function z1(o, t, e = o, s) {
|
|
8459
|
-
var r,
|
|
8460
|
-
if (t ===
|
|
8461
|
-
let
|
|
8462
|
-
const l =
|
|
8463
|
-
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;
|
|
8464
8661
|
}
|
|
8465
|
-
class
|
|
8662
|
+
class t3 {
|
|
8466
8663
|
constructor(t, e) {
|
|
8467
8664
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
8468
8665
|
}
|
|
@@ -8475,13 +8672,13 @@ class Y7 {
|
|
|
8475
8672
|
u(t) {
|
|
8476
8673
|
const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? w1).importNode(e, !0);
|
|
8477
8674
|
_1.currentNode = r;
|
|
8478
|
-
let
|
|
8675
|
+
let n = _1.nextNode(), i = 0, l = 0, c = s[0];
|
|
8479
8676
|
for (; c !== void 0; ) {
|
|
8480
|
-
if (
|
|
8677
|
+
if (i === c.index) {
|
|
8481
8678
|
let C;
|
|
8482
|
-
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];
|
|
8483
8680
|
}
|
|
8484
|
-
|
|
8681
|
+
i !== (c == null ? void 0 : c.index) && (n = _1.nextNode(), i++);
|
|
8485
8682
|
}
|
|
8486
8683
|
return _1.currentNode = w1, r;
|
|
8487
8684
|
}
|
|
@@ -8490,7 +8687,7 @@ class Y7 {
|
|
|
8490
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++;
|
|
8491
8688
|
}
|
|
8492
8689
|
}
|
|
8493
|
-
class
|
|
8690
|
+
class D2 {
|
|
8494
8691
|
get _$AU() {
|
|
8495
8692
|
var t;
|
|
8496
8693
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -8510,7 +8707,7 @@ class E2 {
|
|
|
8510
8707
|
return this._$AB;
|
|
8511
8708
|
}
|
|
8512
8709
|
_$AI(t, e = this) {
|
|
8513
|
-
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);
|
|
8514
8711
|
}
|
|
8515
8712
|
O(t) {
|
|
8516
8713
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -8519,26 +8716,26 @@ class E2 {
|
|
|
8519
8716
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
8520
8717
|
}
|
|
8521
8718
|
_(t) {
|
|
8522
|
-
this._$AH !== S &&
|
|
8719
|
+
this._$AH !== S && s2(this._$AH) ? this._$AA.nextSibling.data = t : this.T(w1.createTextNode(t)), this._$AH = t;
|
|
8523
8720
|
}
|
|
8524
8721
|
$(t) {
|
|
8525
8722
|
var e;
|
|
8526
|
-
const { values: s, _$litType$: r } = t,
|
|
8527
|
-
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);
|
|
8528
8725
|
else {
|
|
8529
|
-
const
|
|
8530
|
-
|
|
8726
|
+
const i = new t3(n, this), l = i.u(this.options);
|
|
8727
|
+
i.p(s), this.T(l), this._$AH = i;
|
|
8531
8728
|
}
|
|
8532
8729
|
}
|
|
8533
8730
|
_$AC(t) {
|
|
8534
|
-
let e =
|
|
8535
|
-
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;
|
|
8536
8733
|
}
|
|
8537
8734
|
k(t) {
|
|
8538
|
-
|
|
8735
|
+
J2(this._$AH) || (this._$AH = [], this._$AR());
|
|
8539
8736
|
const e = this._$AH;
|
|
8540
8737
|
let s, r = 0;
|
|
8541
|
-
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++;
|
|
8542
8739
|
r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
|
|
8543
8740
|
}
|
|
8544
8741
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -8553,32 +8750,32 @@ class E2 {
|
|
|
8553
8750
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
8554
8751
|
}
|
|
8555
8752
|
}
|
|
8556
|
-
class
|
|
8753
|
+
class A2 {
|
|
8557
8754
|
get tagName() {
|
|
8558
8755
|
return this.element.tagName;
|
|
8559
8756
|
}
|
|
8560
8757
|
get _$AU() {
|
|
8561
8758
|
return this._$AM._$AU;
|
|
8562
8759
|
}
|
|
8563
|
-
constructor(t, e, s, r,
|
|
8564
|
-
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;
|
|
8565
8762
|
}
|
|
8566
8763
|
_$AI(t, e = this, s, r) {
|
|
8567
|
-
const
|
|
8568
|
-
let
|
|
8569
|
-
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);
|
|
8570
8767
|
else {
|
|
8571
8768
|
const l = t;
|
|
8572
8769
|
let c, C;
|
|
8573
|
-
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;
|
|
8574
8771
|
}
|
|
8575
|
-
|
|
8772
|
+
i && !r && this.j(t);
|
|
8576
8773
|
}
|
|
8577
8774
|
j(t) {
|
|
8578
8775
|
t === S ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
8579
8776
|
}
|
|
8580
8777
|
}
|
|
8581
|
-
class
|
|
8778
|
+
class e3 extends A2 {
|
|
8582
8779
|
constructor() {
|
|
8583
8780
|
super(...arguments), this.type = 3;
|
|
8584
8781
|
}
|
|
@@ -8586,7 +8783,7 @@ class K7 extends D2 {
|
|
|
8586
8783
|
this.element[this.name] = t === S ? void 0 : t;
|
|
8587
8784
|
}
|
|
8588
8785
|
}
|
|
8589
|
-
class
|
|
8786
|
+
class s3 extends A2 {
|
|
8590
8787
|
constructor() {
|
|
8591
8788
|
super(...arguments), this.type = 4;
|
|
8592
8789
|
}
|
|
@@ -8594,21 +8791,21 @@ class J7 extends D2 {
|
|
|
8594
8791
|
this.element.toggleAttribute(this.name, !!t && t !== S);
|
|
8595
8792
|
}
|
|
8596
8793
|
}
|
|
8597
|
-
class
|
|
8598
|
-
constructor(t, e, s, r,
|
|
8599
|
-
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;
|
|
8600
8797
|
}
|
|
8601
8798
|
_$AI(t, e = this) {
|
|
8602
|
-
if ((t = z1(this, t, e, 0) ?? S) ===
|
|
8603
|
-
const s = this._$AH, r = t === S && s !== S || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
8604
|
-
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;
|
|
8605
8802
|
}
|
|
8606
8803
|
handleEvent(t) {
|
|
8607
8804
|
var e;
|
|
8608
8805
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
8609
8806
|
}
|
|
8610
8807
|
}
|
|
8611
|
-
class
|
|
8808
|
+
class o3 {
|
|
8612
8809
|
constructor(t, e, s) {
|
|
8613
8810
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
8614
8811
|
}
|
|
@@ -8619,22 +8816,22 @@ class Q7 {
|
|
|
8619
8816
|
z1(this, t);
|
|
8620
8817
|
}
|
|
8621
8818
|
}
|
|
8622
|
-
const
|
|
8623
|
-
|
|
8819
|
+
const q5 = m2.litHtmlPolyfillSupport;
|
|
8820
|
+
q5 == null || q5(o2, D2), (m2.litHtmlVersions ?? (m2.litHtmlVersions = [])).push("3.2.1");
|
|
8624
8821
|
/**
|
|
8625
8822
|
* @license
|
|
8626
8823
|
* Copyright 2018 Google LLC
|
|
8627
8824
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8628
8825
|
*/
|
|
8629
8826
|
const f1 = (o) => o ?? S;
|
|
8630
|
-
var
|
|
8631
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
8632
|
-
(
|
|
8633
|
-
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;
|
|
8634
8831
|
};
|
|
8635
|
-
let
|
|
8832
|
+
let a3 = 0;
|
|
8636
8833
|
var a1;
|
|
8637
|
-
const
|
|
8834
|
+
const _ = (a1 = class extends v {
|
|
8638
8835
|
// allows use of elementInternals' API
|
|
8639
8836
|
constructor() {
|
|
8640
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();
|
|
@@ -8648,12 +8845,12 @@ const g = (a1 = class extends v {
|
|
|
8648
8845
|
) ? o : "text";
|
|
8649
8846
|
}
|
|
8650
8847
|
// Ensure the "width" property is valid after updates
|
|
8651
|
-
updated(o) {
|
|
8652
|
-
o.has("width") && (this.width = a1.VALID_WIDTHS.includes(this.width) ? this.width : "full");
|
|
8848
|
+
async updated(o) {
|
|
8849
|
+
o.has("width") && (await Promise.resolve(), this.width = a1.VALID_WIDTHS.includes(this.width) ? this.width : "full");
|
|
8653
8850
|
}
|
|
8654
8851
|
// Generate a unique ID if one is not provided
|
|
8655
8852
|
connectedCallback() {
|
|
8656
|
-
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);
|
|
8657
8854
|
}
|
|
8658
8855
|
disconnectedCallback() {
|
|
8659
8856
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -8741,6 +8938,7 @@ const g = (a1 = class extends v {
|
|
|
8741
8938
|
return h`
|
|
8742
8939
|
<div class="nys-textinput">
|
|
8743
8940
|
<nys-label
|
|
8941
|
+
id=${this.id}
|
|
8744
8942
|
label=${this.label}
|
|
8745
8943
|
description=${this.description}
|
|
8746
8944
|
flag=${this.required ? "required" : this.optional ? "optional" : ""}
|
|
@@ -8755,6 +8953,7 @@ const g = (a1 = class extends v {
|
|
|
8755
8953
|
id=${this.id}
|
|
8756
8954
|
?disabled=${this.disabled}
|
|
8757
8955
|
?required=${this.required}
|
|
8956
|
+
?aria-required=${this.required}
|
|
8758
8957
|
?readonly=${this.readonly}
|
|
8759
8958
|
aria-disabled="${this.disabled}"
|
|
8760
8959
|
aria-label="${this.label} ${this.description}"
|
|
@@ -8797,78 +8996,78 @@ const g = (a1 = class extends v {
|
|
|
8797
8996
|
"tel",
|
|
8798
8997
|
"text",
|
|
8799
8998
|
"url"
|
|
8800
|
-
], a1.VALID_WIDTHS = ["sm", "md", "lg", "full"], a1.styles =
|
|
8999
|
+
], a1.VALID_WIDTHS = ["sm", "md", "lg", "full"], a1.styles = K7, a1.formAssociated = !0, a1);
|
|
8801
9000
|
x([
|
|
8802
9001
|
w({ type: String })
|
|
8803
|
-
],
|
|
9002
|
+
], _.prototype, "id", 2);
|
|
8804
9003
|
x([
|
|
8805
9004
|
w({ type: String, reflect: !0 })
|
|
8806
|
-
],
|
|
9005
|
+
], _.prototype, "name", 2);
|
|
8807
9006
|
x([
|
|
8808
9007
|
w({ reflect: !0 })
|
|
8809
|
-
],
|
|
9008
|
+
], _.prototype, "type", 1);
|
|
8810
9009
|
x([
|
|
8811
9010
|
w({ type: String })
|
|
8812
|
-
],
|
|
9011
|
+
], _.prototype, "label", 2);
|
|
8813
9012
|
x([
|
|
8814
9013
|
w({ type: String })
|
|
8815
|
-
],
|
|
9014
|
+
], _.prototype, "description", 2);
|
|
8816
9015
|
x([
|
|
8817
9016
|
w({ type: String })
|
|
8818
|
-
],
|
|
9017
|
+
], _.prototype, "placeholder", 2);
|
|
8819
9018
|
x([
|
|
8820
9019
|
w({ type: String })
|
|
8821
|
-
],
|
|
9020
|
+
], _.prototype, "value", 2);
|
|
8822
9021
|
x([
|
|
8823
9022
|
w({ type: Boolean, reflect: !0 })
|
|
8824
|
-
],
|
|
9023
|
+
], _.prototype, "disabled", 2);
|
|
8825
9024
|
x([
|
|
8826
9025
|
w({ type: Boolean, reflect: !0 })
|
|
8827
|
-
],
|
|
9026
|
+
], _.prototype, "readonly", 2);
|
|
8828
9027
|
x([
|
|
8829
9028
|
w({ type: Boolean, reflect: !0 })
|
|
8830
|
-
],
|
|
9029
|
+
], _.prototype, "required", 2);
|
|
8831
9030
|
x([
|
|
8832
9031
|
w({ type: Boolean, reflect: !0 })
|
|
8833
|
-
],
|
|
9032
|
+
], _.prototype, "optional", 2);
|
|
8834
9033
|
x([
|
|
8835
9034
|
w({ type: String })
|
|
8836
|
-
],
|
|
9035
|
+
], _.prototype, "form", 2);
|
|
8837
9036
|
x([
|
|
8838
9037
|
w({ type: String })
|
|
8839
|
-
],
|
|
9038
|
+
], _.prototype, "pattern", 2);
|
|
8840
9039
|
x([
|
|
8841
9040
|
w({ type: Number })
|
|
8842
|
-
],
|
|
9041
|
+
], _.prototype, "maxlength", 2);
|
|
8843
9042
|
x([
|
|
8844
9043
|
w({ reflect: !0 })
|
|
8845
|
-
],
|
|
9044
|
+
], _.prototype, "width", 2);
|
|
8846
9045
|
x([
|
|
8847
9046
|
w({ type: Number })
|
|
8848
|
-
],
|
|
9047
|
+
], _.prototype, "step", 2);
|
|
8849
9048
|
x([
|
|
8850
9049
|
w({ type: Number })
|
|
8851
|
-
],
|
|
9050
|
+
], _.prototype, "min", 2);
|
|
8852
9051
|
x([
|
|
8853
9052
|
w({ type: Number })
|
|
8854
|
-
],
|
|
9053
|
+
], _.prototype, "max", 2);
|
|
8855
9054
|
x([
|
|
8856
9055
|
w({ type: Boolean, reflect: !0 })
|
|
8857
|
-
],
|
|
9056
|
+
], _.prototype, "showError", 2);
|
|
8858
9057
|
x([
|
|
8859
9058
|
w({ type: String })
|
|
8860
|
-
],
|
|
9059
|
+
], _.prototype, "errorMessage", 2);
|
|
8861
9060
|
x([
|
|
8862
|
-
|
|
8863
|
-
],
|
|
8864
|
-
let
|
|
8865
|
-
customElements.get("nys-textinput") || customElements.define("nys-textinput",
|
|
8866
|
-
var
|
|
8867
|
-
for (var r = void 0,
|
|
8868
|
-
(
|
|
8869
|
-
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;
|
|
8870
9069
|
};
|
|
8871
|
-
const
|
|
9070
|
+
const e5 = class e5 extends v {
|
|
8872
9071
|
constructor() {
|
|
8873
9072
|
super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
|
|
8874
9073
|
["English", ""],
|
|
@@ -8888,7 +9087,7 @@ const Q2 = class Q2 extends v {
|
|
|
8888
9087
|
];
|
|
8889
9088
|
}
|
|
8890
9089
|
_getNysLogo() {
|
|
8891
|
-
return new DOMParser().parseFromString(
|
|
9090
|
+
return new DOMParser().parseFromString(Z7, "image/svg+xml").documentElement;
|
|
8892
9091
|
}
|
|
8893
9092
|
_toggleTrustbar() {
|
|
8894
9093
|
this.trustbarVisible = !this.trustbarVisible, this.trustbarVisible && (this.languageVisible = !1, this.searchDropdownVisible = !1);
|
|
@@ -8929,10 +9128,14 @@ const Q2 = class Q2 extends v {
|
|
|
8929
9128
|
<nys-button
|
|
8930
9129
|
id="nys-unavheader__know"
|
|
8931
9130
|
label="Here's how you know"
|
|
9131
|
+
ariaLabel="Here's how you know"
|
|
8932
9132
|
variant="ghost"
|
|
8933
9133
|
size="sm"
|
|
8934
9134
|
suffixIcon="slotted"
|
|
8935
9135
|
@click="${this._toggleTrustbar}"
|
|
9136
|
+
@keydown="${(t) => {
|
|
9137
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleTrustbar();
|
|
9138
|
+
}}"
|
|
8936
9139
|
>
|
|
8937
9140
|
<nys-icon
|
|
8938
9141
|
slot="suffix-icon"
|
|
@@ -8947,7 +9150,11 @@ const Q2 = class Q2 extends v {
|
|
|
8947
9150
|
variant="ghost"
|
|
8948
9151
|
prefixIcon="close"
|
|
8949
9152
|
size="sm"
|
|
9153
|
+
ariaLabel="Close trustbar"
|
|
8950
9154
|
@click="${this._toggleTrustbar}"
|
|
9155
|
+
@keydown="${(t) => {
|
|
9156
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleTrustbar();
|
|
9157
|
+
}}"
|
|
8951
9158
|
></nys-button>` : null}
|
|
8952
9159
|
</div>
|
|
8953
9160
|
<div
|
|
@@ -8998,7 +9205,11 @@ const Q2 = class Q2 extends v {
|
|
|
8998
9205
|
variant="ghost"
|
|
8999
9206
|
size="sm"
|
|
9000
9207
|
suffixIcon="slotted"
|
|
9208
|
+
ariaLabel="Here's how you know"
|
|
9001
9209
|
@click="${this._toggleTrustbar}"
|
|
9210
|
+
@keydown="${(t) => {
|
|
9211
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleTrustbar();
|
|
9212
|
+
}}"
|
|
9002
9213
|
>
|
|
9003
9214
|
<nys-icon
|
|
9004
9215
|
slot="suffix-icon"
|
|
@@ -9017,9 +9228,13 @@ const Q2 = class Q2 extends v {
|
|
|
9017
9228
|
<nys-button
|
|
9018
9229
|
variant="ghost"
|
|
9019
9230
|
prefixIcon="language"
|
|
9231
|
+
ariaLabel="Translate"
|
|
9020
9232
|
id="nys-unavheader__translate"
|
|
9021
9233
|
class="nys-unavheader__iconbutton"
|
|
9022
9234
|
@click="${this._toggleLanguageList}"
|
|
9235
|
+
@keydown="${(t) => {
|
|
9236
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleLanguageList();
|
|
9237
|
+
}}"
|
|
9023
9238
|
></nys-button>
|
|
9024
9239
|
</div>
|
|
9025
9240
|
<div class="nys-unavheader__lg nys-unavheader__xl">
|
|
@@ -9028,8 +9243,12 @@ const Q2 = class Q2 extends v {
|
|
|
9028
9243
|
label="Translate"
|
|
9029
9244
|
prefixIcon="language_filled"
|
|
9030
9245
|
suffixIcon=${this.languageVisible ? "chevron_up" : "chevron_down"}
|
|
9246
|
+
ariaLabel="Translate"
|
|
9031
9247
|
id="nys-unavheader__translate"
|
|
9032
9248
|
@click="${this._toggleLanguageList}"
|
|
9249
|
+
@keydown="${(t) => {
|
|
9250
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleLanguageList();
|
|
9251
|
+
}}"
|
|
9033
9252
|
></nys-button>
|
|
9034
9253
|
</div>
|
|
9035
9254
|
<div
|
|
@@ -9051,9 +9270,13 @@ const Q2 = class Q2 extends v {
|
|
|
9051
9270
|
<nys-button
|
|
9052
9271
|
variant="ghost"
|
|
9053
9272
|
prefixIcon="search"
|
|
9273
|
+
ariaLabel="Search"
|
|
9054
9274
|
id="nys-unavheader__searchbutton"
|
|
9055
9275
|
class="nys-unavheader__iconbutton"
|
|
9056
9276
|
@click="${this._toggleSearchDropdown}"
|
|
9277
|
+
@keydown="${(t) => {
|
|
9278
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleSearchDropdown();
|
|
9279
|
+
}}"
|
|
9057
9280
|
></nys-button>
|
|
9058
9281
|
</div>
|
|
9059
9282
|
<div class="nys-unavheader__lg nys-unavheader__xl">
|
|
@@ -9097,7 +9320,11 @@ const Q2 = class Q2 extends v {
|
|
|
9097
9320
|
variant="ghost"
|
|
9098
9321
|
prefixIcon="close"
|
|
9099
9322
|
size="sm"
|
|
9323
|
+
ariaLabel="Close trustbar"
|
|
9100
9324
|
@click="${this._toggleTrustbar}"
|
|
9325
|
+
@keydown="${(t) => {
|
|
9326
|
+
(t.code === "Enter" || t.code === "Space" || t.key === "Enter" || t.key === " ") && this._toggleTrustbar();
|
|
9327
|
+
}}"
|
|
9101
9328
|
></nys-button>
|
|
9102
9329
|
</div>
|
|
9103
9330
|
</div>
|
|
@@ -9120,8 +9347,8 @@ const Q2 = class Q2 extends v {
|
|
|
9120
9347
|
`;
|
|
9121
9348
|
}
|
|
9122
9349
|
};
|
|
9123
|
-
|
|
9124
|
-
let F =
|
|
9350
|
+
e5.styles = z7;
|
|
9351
|
+
let F = e5;
|
|
9125
9352
|
L1([
|
|
9126
9353
|
a({ type: Boolean })
|
|
9127
9354
|
], F.prototype, "trustbarVisible");
|
|
@@ -9144,7 +9371,7 @@ L1([
|
|
|
9144
9371
|
a({ type: String, reflect: !0 })
|
|
9145
9372
|
], F.prototype, "languages");
|
|
9146
9373
|
customElements.get("nys-unavheader") || customElements.define("nys-unavheader", F);
|
|
9147
|
-
const
|
|
9374
|
+
const h3 = f`
|
|
9148
9375
|
:host {
|
|
9149
9376
|
/* Global Header Styles */
|
|
9150
9377
|
--_nys-globalheader-text-color: var(
|
|
@@ -9425,12 +9652,12 @@ const n3 = b`
|
|
|
9425
9652
|
}
|
|
9426
9653
|
}
|
|
9427
9654
|
`;
|
|
9428
|
-
var
|
|
9429
|
-
for (var r = void 0,
|
|
9430
|
-
(
|
|
9431
|
-
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;
|
|
9432
9659
|
};
|
|
9433
|
-
const
|
|
9660
|
+
const s5 = class s5 extends v {
|
|
9434
9661
|
constructor() {
|
|
9435
9662
|
super(...arguments), this.appName = "", this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0, this.isMobileMenuOpen = !1;
|
|
9436
9663
|
}
|
|
@@ -9442,13 +9669,13 @@ const t5 = class t5 extends v {
|
|
|
9442
9669
|
}
|
|
9443
9670
|
/******************** Functions ********************/
|
|
9444
9671
|
// Gets called when the slot content changes and directly appends the slotted elements into the shadow DOM
|
|
9445
|
-
_handleSlotChange() {
|
|
9446
|
-
var
|
|
9447
|
-
const t = (
|
|
9672
|
+
async _handleSlotChange() {
|
|
9673
|
+
var n, i, l;
|
|
9674
|
+
const t = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot");
|
|
9448
9675
|
if (!t) return;
|
|
9449
9676
|
const e = t == null ? void 0 : t.assignedNodes({ flatten: !0 }).filter((c) => c.nodeType === Node.ELEMENT_NODE);
|
|
9450
|
-
this.slotHasContent = e.length > 0;
|
|
9451
|
-
const s = (
|
|
9677
|
+
await Promise.resolve(), this.slotHasContent = e.length > 0;
|
|
9678
|
+
const s = (i = this.shadowRoot) == null ? void 0 : i.querySelector(
|
|
9452
9679
|
".nys-globalheader__content"
|
|
9453
9680
|
), r = (l = this.shadowRoot) == null ? void 0 : l.querySelector(
|
|
9454
9681
|
".nys-globalheader__content-mobile"
|
|
@@ -9456,8 +9683,8 @@ const t5 = class t5 extends v {
|
|
|
9456
9683
|
s && r && (s.innerHTML = "", r.innerHTML = "", e.forEach((c) => {
|
|
9457
9684
|
if (c.nodeType === Node.ELEMENT_NODE) {
|
|
9458
9685
|
const C = c.cloneNode(!0), y = c.cloneNode(!0);
|
|
9459
|
-
["script", "iframe", "object", "embed"].forEach((
|
|
9460
|
-
C.querySelectorAll(
|
|
9686
|
+
["script", "iframe", "object", "embed"].forEach((b) => {
|
|
9687
|
+
C.querySelectorAll(b).forEach((k) => k.remove());
|
|
9461
9688
|
}), s.appendChild(C), r.appendChild(y), c.remove();
|
|
9462
9689
|
}
|
|
9463
9690
|
}));
|
|
@@ -9466,7 +9693,7 @@ const t5 = class t5 extends v {
|
|
|
9466
9693
|
this.isMobileMenuOpen = !this.isMobileMenuOpen;
|
|
9467
9694
|
}
|
|
9468
9695
|
render() {
|
|
9469
|
-
var t, e, s, r,
|
|
9696
|
+
var t, e, s, r, n, i, l, c;
|
|
9470
9697
|
return h`
|
|
9471
9698
|
<header class="nys-globalheader">
|
|
9472
9699
|
<div class="nys-globalheader__main-container">
|
|
@@ -9487,10 +9714,10 @@ const t5 = class t5 extends v {
|
|
|
9487
9714
|
</div>` : ""}
|
|
9488
9715
|
${(t = this.homepageLink) != null && t.trim() ? h`<a
|
|
9489
9716
|
class="nys-globalheader__name-container-link"
|
|
9490
|
-
href=${(
|
|
9717
|
+
href=${(n = this.homepageLink) == null ? void 0 : n.trim()}
|
|
9491
9718
|
>
|
|
9492
9719
|
<div class="nys-globalheader__name-container">
|
|
9493
|
-
${((
|
|
9720
|
+
${((i = this.appName) == null ? void 0 : i.trim().length) > 0 ? h`<div
|
|
9494
9721
|
class="nys-globalheader__appName nys-globalheader__name"
|
|
9495
9722
|
>
|
|
9496
9723
|
${this.appName}
|
|
@@ -9529,25 +9756,25 @@ const t5 = class t5 extends v {
|
|
|
9529
9756
|
`;
|
|
9530
9757
|
}
|
|
9531
9758
|
};
|
|
9532
|
-
|
|
9533
|
-
let y1 =
|
|
9534
|
-
|
|
9759
|
+
s5.styles = h3;
|
|
9760
|
+
let y1 = s5;
|
|
9761
|
+
a2([
|
|
9535
9762
|
a({ type: String })
|
|
9536
9763
|
], y1.prototype, "appName");
|
|
9537
|
-
|
|
9764
|
+
a2([
|
|
9538
9765
|
a({ type: String })
|
|
9539
9766
|
], y1.prototype, "agencyName");
|
|
9540
|
-
|
|
9767
|
+
a2([
|
|
9541
9768
|
a({ type: String })
|
|
9542
9769
|
], y1.prototype, "homepageLink");
|
|
9543
|
-
|
|
9770
|
+
a2([
|
|
9544
9771
|
x1()
|
|
9545
9772
|
], y1.prototype, "slotHasContent");
|
|
9546
|
-
|
|
9773
|
+
a2([
|
|
9547
9774
|
x1()
|
|
9548
9775
|
], y1.prototype, "isMobileMenuOpen");
|
|
9549
9776
|
customElements.get("nys-globalheader") || customElements.define("nys-globalheader", y1);
|
|
9550
|
-
const
|
|
9777
|
+
const C3 = f`
|
|
9551
9778
|
:host {
|
|
9552
9779
|
/* Global Footer Styles */
|
|
9553
9780
|
--_nys-globalfooter-text-color: var(
|
|
@@ -9634,6 +9861,7 @@ const a3 = b`
|
|
|
9634
9861
|
|
|
9635
9862
|
/* The Agency Name */
|
|
9636
9863
|
.nys-globalfooter__name {
|
|
9864
|
+
text-align: left;
|
|
9637
9865
|
margin: 0;
|
|
9638
9866
|
color: var(--_nys-globalfooter-text-color);
|
|
9639
9867
|
font-family: var(--_nys-globalfooter-font-family-agency);
|
|
@@ -9702,12 +9930,12 @@ const a3 = b`
|
|
|
9702
9930
|
}
|
|
9703
9931
|
}
|
|
9704
9932
|
`;
|
|
9705
|
-
var
|
|
9706
|
-
for (var r = void 0,
|
|
9707
|
-
(
|
|
9708
|
-
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;
|
|
9709
9937
|
};
|
|
9710
|
-
const
|
|
9938
|
+
const r5 = class r5 extends v {
|
|
9711
9939
|
constructor() {
|
|
9712
9940
|
super(...arguments), this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0;
|
|
9713
9941
|
}
|
|
@@ -9719,13 +9947,13 @@ const e5 = class e5 extends v {
|
|
|
9719
9947
|
}
|
|
9720
9948
|
/******************** Functions ********************/
|
|
9721
9949
|
// Gets called when the slot content changes and directly appends the slotted elements into the shadow DOM
|
|
9722
|
-
_handleSlotChange() {
|
|
9723
|
-
var
|
|
9724
|
-
const t = (
|
|
9950
|
+
async _handleSlotChange() {
|
|
9951
|
+
var n, i;
|
|
9952
|
+
const t = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot");
|
|
9725
9953
|
if (!t) return;
|
|
9726
9954
|
const e = t == null ? void 0 : t.assignedNodes({ flatten: !0 }).filter((l) => l.nodeType === Node.ELEMENT_NODE);
|
|
9727
|
-
this.slotHasContent = e.length > 0;
|
|
9728
|
-
const s = (
|
|
9955
|
+
await Promise.resolve(), this.slotHasContent = e.length > 0;
|
|
9956
|
+
const s = (i = this.shadowRoot) == null ? void 0 : i.querySelector(
|
|
9729
9957
|
".nys-globalfooter__content"
|
|
9730
9958
|
), r = e == null ? void 0 : e.some(
|
|
9731
9959
|
(l) => l.tagName === "H4"
|
|
@@ -9758,19 +9986,19 @@ const e5 = class e5 extends v {
|
|
|
9758
9986
|
`;
|
|
9759
9987
|
}
|
|
9760
9988
|
};
|
|
9761
|
-
|
|
9762
|
-
let Z1 =
|
|
9763
|
-
|
|
9989
|
+
r5.styles = C3;
|
|
9990
|
+
let Z1 = r5;
|
|
9991
|
+
X2([
|
|
9764
9992
|
a({ type: String })
|
|
9765
9993
|
], Z1.prototype, "agencyName");
|
|
9766
|
-
|
|
9994
|
+
X2([
|
|
9767
9995
|
a({ type: String })
|
|
9768
9996
|
], Z1.prototype, "homepageLink");
|
|
9769
|
-
|
|
9997
|
+
X2([
|
|
9770
9998
|
x1()
|
|
9771
9999
|
], Z1.prototype, "slotHasContent");
|
|
9772
10000
|
customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", Z1);
|
|
9773
|
-
const
|
|
10001
|
+
const u3 = f`
|
|
9774
10002
|
:host {
|
|
9775
10003
|
/* Global Footer Styles */
|
|
9776
10004
|
--_nys-unavfooter-link-color: var(
|
|
@@ -9926,7 +10154,7 @@ const c3 = b`
|
|
|
9926
10154
|
--_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
|
|
9927
10155
|
}
|
|
9928
10156
|
}
|
|
9929
|
-
`,
|
|
10157
|
+
`, p3 = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
9930
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"/>
|
|
9931
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"/>
|
|
9932
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"/>
|
|
@@ -9942,10 +10170,10 @@ const c3 = b`
|
|
|
9942
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"/>
|
|
9943
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"/>
|
|
9944
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"/>
|
|
9945
|
-
</svg>`,
|
|
10173
|
+
</svg>`, o5 = class o5 extends v {
|
|
9946
10174
|
/**************** Functions ****************/
|
|
9947
10175
|
_getNysLogo() {
|
|
9948
|
-
return new DOMParser().parseFromString(
|
|
10176
|
+
return new DOMParser().parseFromString(p3, "image/svg+xml").documentElement;
|
|
9949
10177
|
}
|
|
9950
10178
|
render() {
|
|
9951
10179
|
return h`
|
|
@@ -9979,28 +10207,29 @@ const c3 = b`
|
|
|
9979
10207
|
`;
|
|
9980
10208
|
}
|
|
9981
10209
|
};
|
|
9982
|
-
|
|
9983
|
-
let
|
|
9984
|
-
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);
|
|
9985
10213
|
export {
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
10214
|
+
se as NysAlert,
|
|
10215
|
+
ae as NysAvatar,
|
|
10216
|
+
Ce as NysButton,
|
|
10217
|
+
We as NysCheckbox,
|
|
10218
|
+
Ne as NysCheckboxgroup,
|
|
9991
10219
|
H1 as NysErrorMessage,
|
|
9992
10220
|
Z1 as NysGlobalFooter,
|
|
9993
10221
|
y1 as NysGlobalHeader,
|
|
9994
|
-
|
|
10222
|
+
e7 as NysIcon,
|
|
9995
10223
|
m1 as NysLabel,
|
|
9996
10224
|
S1 as NysOption,
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
k7 as
|
|
10002
|
-
|
|
10003
|
-
|
|
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,
|
|
10004
10233
|
F as NysUnavHeader
|
|
10005
10234
|
};
|
|
10006
10235
|
//# sourceMappingURL=nysds.es.js.map
|