@nysds/nys-alert 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nys-alert.js +753 -645
- package/dist/nys-alert.js.map +1 -1
- package/package.json +4 -4
package/dist/nys-alert.js
CHANGED
|
@@ -4,7 +4,7 @@ import { css as L1, LitElement as x1, html as d } from "lit";
|
|
|
4
4
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
5
5
|
* ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
|
|
6
6
|
*
|
|
7
|
-
* Alert Component v1.1.
|
|
7
|
+
* Alert Component v1.1.1
|
|
8
8
|
* Part of the New York State Design System
|
|
9
9
|
* Repository: https://github.com/its-hcd/nysds
|
|
10
10
|
* License: MIT
|
|
@@ -14,7 +14,7 @@ import { css as L1, LitElement as x1, html as d } from "lit";
|
|
|
14
14
|
* Copyright 2019 Google LLC
|
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
16
|
*/
|
|
17
|
-
const h1 = globalThis,
|
|
17
|
+
const h1 = globalThis, z1 = h1.ShadowRoot && (h1.ShadyCSS === void 0 || h1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $5 = Symbol(), q1 = /* @__PURE__ */ new WeakMap();
|
|
18
18
|
let T5 = class {
|
|
19
19
|
constructor(t, e, o) {
|
|
20
20
|
if (this._$cssResult$ = !0, o !== $5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -23,7 +23,7 @@ let T5 = class {
|
|
|
23
23
|
get styleSheet() {
|
|
24
24
|
let t = this.o;
|
|
25
25
|
const e = this.t;
|
|
26
|
-
if (
|
|
26
|
+
if (z1 && t === void 0) {
|
|
27
27
|
const o = e !== void 0 && e.length === 1;
|
|
28
28
|
o && (t = q1.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), o && q1.set(e, t));
|
|
29
29
|
}
|
|
@@ -33,101 +33,101 @@ let T5 = class {
|
|
|
33
33
|
return this.cssText;
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
36
|
+
const I5 = (r) => new T5(typeof r == "string" ? r : r + "", void 0, $5), N5 = (r, t) => {
|
|
37
|
+
if (z1) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
38
38
|
else for (const e of t) {
|
|
39
|
-
const o = document.createElement("style"),
|
|
40
|
-
|
|
39
|
+
const o = document.createElement("style"), s = h1.litNonce;
|
|
40
|
+
s !== void 0 && o.setAttribute("nonce", s), o.textContent = e.cssText, r.appendChild(o);
|
|
41
41
|
}
|
|
42
|
-
},
|
|
42
|
+
}, F1 = z1 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
43
43
|
let e = "";
|
|
44
44
|
for (const o of t.cssRules) e += o.cssText;
|
|
45
|
-
return
|
|
46
|
-
})(
|
|
45
|
+
return I5(e);
|
|
46
|
+
})(r) : r;
|
|
47
47
|
/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2017 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
51
|
*/
|
|
52
|
-
const { is:
|
|
52
|
+
const { is: R5, defineProperty: D5, getOwnPropertyDescriptor: j5, getOwnPropertyNames: q5, getOwnPropertySymbols: F5, getPrototypeOf: W5 } = Object, Z = globalThis, W1 = Z.trustedTypes, G5 = W1 ? W1.emptyScript : "", A1 = Z.reactiveElementPolyfillSupport, e1 = (r, t) => r, f1 = { toAttribute(r, t) {
|
|
53
53
|
switch (t) {
|
|
54
54
|
case Boolean:
|
|
55
|
-
|
|
55
|
+
r = r ? G5 : null;
|
|
56
56
|
break;
|
|
57
57
|
case Object:
|
|
58
58
|
case Array:
|
|
59
|
-
|
|
59
|
+
r = r == null ? r : JSON.stringify(r);
|
|
60
60
|
}
|
|
61
|
-
return
|
|
62
|
-
}, fromAttribute(
|
|
63
|
-
let e =
|
|
61
|
+
return r;
|
|
62
|
+
}, fromAttribute(r, t) {
|
|
63
|
+
let e = r;
|
|
64
64
|
switch (t) {
|
|
65
65
|
case Boolean:
|
|
66
|
-
e =
|
|
66
|
+
e = r !== null;
|
|
67
67
|
break;
|
|
68
68
|
case Number:
|
|
69
|
-
e =
|
|
69
|
+
e = r === null ? null : Number(r);
|
|
70
70
|
break;
|
|
71
71
|
case Object:
|
|
72
72
|
case Array:
|
|
73
73
|
try {
|
|
74
|
-
e = JSON.parse(
|
|
74
|
+
e = JSON.parse(r);
|
|
75
75
|
} catch {
|
|
76
76
|
e = null;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return e;
|
|
80
|
-
} },
|
|
80
|
+
} }, O1 = (r, t) => !R5(r, t), G1 = { attribute: !0, type: String, converter: f1, reflect: !1, hasChanged: O1 };
|
|
81
81
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Z.litPropertyMetadata ?? (Z.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
82
|
-
class
|
|
82
|
+
class W extends HTMLElement {
|
|
83
83
|
static addInitializer(t) {
|
|
84
84
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
85
85
|
}
|
|
86
86
|
static get observedAttributes() {
|
|
87
87
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
88
88
|
}
|
|
89
|
-
static createProperty(t, e =
|
|
89
|
+
static createProperty(t, e = G1) {
|
|
90
90
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
91
|
-
const o = Symbol(),
|
|
92
|
-
|
|
91
|
+
const o = Symbol(), s = this.getPropertyDescriptor(t, o, e);
|
|
92
|
+
s !== void 0 && D5(this.prototype, t, s);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
static getPropertyDescriptor(t, e, o) {
|
|
96
|
-
const { get:
|
|
96
|
+
const { get: s, set: n } = j5(this.prototype, t) ?? { get() {
|
|
97
97
|
return this[e];
|
|
98
98
|
}, set(i) {
|
|
99
99
|
this[e] = i;
|
|
100
100
|
} };
|
|
101
101
|
return { get() {
|
|
102
|
-
return
|
|
102
|
+
return s == null ? void 0 : s.call(this);
|
|
103
103
|
}, set(i) {
|
|
104
|
-
const l =
|
|
104
|
+
const l = s == null ? void 0 : s.call(this);
|
|
105
105
|
n.call(this, i), this.requestUpdate(t, l, o);
|
|
106
106
|
}, configurable: !0, enumerable: !0 };
|
|
107
107
|
}
|
|
108
108
|
static getPropertyOptions(t) {
|
|
109
|
-
return this.elementProperties.get(t) ??
|
|
109
|
+
return this.elementProperties.get(t) ?? G1;
|
|
110
110
|
}
|
|
111
111
|
static _$Ei() {
|
|
112
112
|
if (this.hasOwnProperty(e1("elementProperties"))) return;
|
|
113
|
-
const t =
|
|
113
|
+
const t = W5(this);
|
|
114
114
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
115
115
|
}
|
|
116
116
|
static finalize() {
|
|
117
117
|
if (this.hasOwnProperty(e1("finalized"))) return;
|
|
118
118
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(e1("properties"))) {
|
|
119
|
-
const e = this.properties, o = [...q5(e), ...
|
|
120
|
-
for (const
|
|
119
|
+
const e = this.properties, o = [...q5(e), ...F5(e)];
|
|
120
|
+
for (const s of o) this.createProperty(s, e[s]);
|
|
121
121
|
}
|
|
122
122
|
const t = this[Symbol.metadata];
|
|
123
123
|
if (t !== null) {
|
|
124
124
|
const e = litPropertyMetadata.get(t);
|
|
125
|
-
if (e !== void 0) for (const [o,
|
|
125
|
+
if (e !== void 0) for (const [o, s] of e) this.elementProperties.set(o, s);
|
|
126
126
|
}
|
|
127
127
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
128
128
|
for (const [e, o] of this.elementProperties) {
|
|
129
|
-
const
|
|
130
|
-
|
|
129
|
+
const s = this._$Eu(e, o);
|
|
130
|
+
s !== void 0 && this._$Eh.set(s, e);
|
|
131
131
|
}
|
|
132
132
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
133
133
|
}
|
|
@@ -135,8 +135,8 @@ class F extends HTMLElement {
|
|
|
135
135
|
const e = [];
|
|
136
136
|
if (Array.isArray(t)) {
|
|
137
137
|
const o = new Set(t.flat(1 / 0).reverse());
|
|
138
|
-
for (const
|
|
139
|
-
} else t !== void 0 && e.push(
|
|
138
|
+
for (const s of o) e.unshift(F1(s));
|
|
139
|
+
} else t !== void 0 && e.push(F1(t));
|
|
140
140
|
return e;
|
|
141
141
|
}
|
|
142
142
|
static _$Eu(t, e) {
|
|
@@ -165,7 +165,7 @@ class F extends HTMLElement {
|
|
|
165
165
|
}
|
|
166
166
|
createRenderRoot() {
|
|
167
167
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
168
|
-
return
|
|
168
|
+
return N5(t, this.constructor.elementStyles), t;
|
|
169
169
|
}
|
|
170
170
|
connectedCallback() {
|
|
171
171
|
var t;
|
|
@@ -188,23 +188,23 @@ class F extends HTMLElement {
|
|
|
188
188
|
}
|
|
189
189
|
_$EC(t, e) {
|
|
190
190
|
var n;
|
|
191
|
-
const o = this.constructor.elementProperties.get(t),
|
|
192
|
-
if (
|
|
193
|
-
const i = (((n = o.converter) == null ? void 0 : n.toAttribute) !== void 0 ? o.converter :
|
|
194
|
-
this._$Em = t, i == null ? this.removeAttribute(
|
|
191
|
+
const o = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, o);
|
|
192
|
+
if (s !== void 0 && o.reflect === !0) {
|
|
193
|
+
const i = (((n = o.converter) == null ? void 0 : n.toAttribute) !== void 0 ? o.converter : f1).toAttribute(e, o.type);
|
|
194
|
+
this._$Em = t, i == null ? this.removeAttribute(s) : this.setAttribute(s, i), this._$Em = null;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
_$AK(t, e) {
|
|
198
198
|
var n;
|
|
199
|
-
const o = this.constructor,
|
|
200
|
-
if (
|
|
201
|
-
const i = o.getPropertyOptions(
|
|
202
|
-
this._$Em =
|
|
199
|
+
const o = this.constructor, s = o._$Eh.get(t);
|
|
200
|
+
if (s !== void 0 && this._$Em !== s) {
|
|
201
|
+
const i = o.getPropertyOptions(s), l = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((n = i.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? i.converter : f1;
|
|
202
|
+
this._$Em = s, this[s] = l.fromAttribute(e, i.type), this._$Em = null;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
requestUpdate(t, e, o) {
|
|
206
206
|
if (t !== void 0) {
|
|
207
|
-
if (o ?? (o = this.constructor.getPropertyOptions(t)), !(o.hasChanged ??
|
|
207
|
+
if (o ?? (o = this.constructor.getPropertyOptions(t)), !(o.hasChanged ?? O1)(this[t], e)) return;
|
|
208
208
|
this.P(t, e, o);
|
|
209
209
|
}
|
|
210
210
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -233,18 +233,18 @@ class F extends HTMLElement {
|
|
|
233
233
|
for (const [n, i] of this._$Ep) this[n] = i;
|
|
234
234
|
this._$Ep = void 0;
|
|
235
235
|
}
|
|
236
|
-
const
|
|
237
|
-
if (
|
|
236
|
+
const s = this.constructor.elementProperties;
|
|
237
|
+
if (s.size > 0) for (const [n, i] of s) i.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], i);
|
|
238
238
|
}
|
|
239
239
|
let t = !1;
|
|
240
240
|
const e = this._$AL;
|
|
241
241
|
try {
|
|
242
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (o = this._$EO) == null || o.forEach((
|
|
242
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (o = this._$EO) == null || o.forEach((s) => {
|
|
243
243
|
var n;
|
|
244
|
-
return (n =
|
|
244
|
+
return (n = s.hostUpdate) == null ? void 0 : n.call(s);
|
|
245
245
|
}), this.update(e)) : this._$EU();
|
|
246
|
-
} catch (
|
|
247
|
-
throw t = !1, this._$EU(),
|
|
246
|
+
} catch (s) {
|
|
247
|
+
throw t = !1, this._$EU(), s;
|
|
248
248
|
}
|
|
249
249
|
t && this._$AE(e);
|
|
250
250
|
}
|
|
@@ -253,8 +253,8 @@ class F extends HTMLElement {
|
|
|
253
253
|
_$AE(t) {
|
|
254
254
|
var e;
|
|
255
255
|
(e = this._$EO) == null || e.forEach((o) => {
|
|
256
|
-
var
|
|
257
|
-
return (
|
|
256
|
+
var s;
|
|
257
|
+
return (s = o.hostUpdated) == null ? void 0 : s.call(o);
|
|
258
258
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
259
259
|
}
|
|
260
260
|
_$EU() {
|
|
@@ -277,61 +277,69 @@ class F extends HTMLElement {
|
|
|
277
277
|
firstUpdated(t) {
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
W.elementStyles = [], W.shadowRootOptions = { mode: "open" }, W[e1("elementProperties")] = /* @__PURE__ */ new Map(), W[e1("finalized")] = /* @__PURE__ */ new Map(), A1 == null || A1({ ReactiveElement: W }), (Z.reactiveElementVersions ?? (Z.reactiveElementVersions = [])).push("2.0.4");
|
|
281
281
|
/**
|
|
282
282
|
* @license
|
|
283
283
|
* Copyright 2017 Google LLC
|
|
284
284
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
285
285
|
*/
|
|
286
|
-
const
|
|
287
|
-
const { kind: o, metadata:
|
|
288
|
-
let n = globalThis.litPropertyMetadata.get(
|
|
289
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(
|
|
286
|
+
const K5 = { attribute: !0, type: String, converter: f1, reflect: !1, hasChanged: O1 }, Y5 = (r = K5, t, e) => {
|
|
287
|
+
const { kind: o, metadata: s } = e;
|
|
288
|
+
let n = globalThis.litPropertyMetadata.get(s);
|
|
289
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), o === "accessor") {
|
|
290
290
|
const { name: i } = e;
|
|
291
291
|
return { set(l) {
|
|
292
292
|
const C = t.get.call(this);
|
|
293
|
-
t.set.call(this, l), this.requestUpdate(i, C,
|
|
293
|
+
t.set.call(this, l), this.requestUpdate(i, C, r);
|
|
294
294
|
}, init(l) {
|
|
295
|
-
return l !== void 0 && this.P(i, void 0,
|
|
295
|
+
return l !== void 0 && this.P(i, void 0, r), l;
|
|
296
296
|
} };
|
|
297
297
|
}
|
|
298
298
|
if (o === "setter") {
|
|
299
299
|
const { name: i } = e;
|
|
300
300
|
return function(l) {
|
|
301
301
|
const C = this[i];
|
|
302
|
-
t.call(this, l), this.requestUpdate(i, C,
|
|
302
|
+
t.call(this, l), this.requestUpdate(i, C, r);
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
throw Error("Unsupported decorator location: " + o);
|
|
306
306
|
};
|
|
307
|
-
function m(
|
|
308
|
-
return (t, e) => typeof e == "object" ?
|
|
309
|
-
const i =
|
|
310
|
-
return
|
|
311
|
-
})(
|
|
307
|
+
function m(r) {
|
|
308
|
+
return (t, e) => typeof e == "object" ? Y5(r, t, e) : ((o, s, n) => {
|
|
309
|
+
const i = s.hasOwnProperty(n);
|
|
310
|
+
return s.constructor.createProperty(n, i ? { ...o, wrapped: !0 } : o), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
311
|
+
})(r, t, e);
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
314
314
|
* @license
|
|
315
315
|
* Copyright 2017 Google LLC
|
|
316
316
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
317
317
|
*/
|
|
318
|
-
function L5(
|
|
319
|
-
return m({ ...
|
|
318
|
+
function L5(r) {
|
|
319
|
+
return m({ ...r, state: !0, attribute: !1 });
|
|
320
320
|
}
|
|
321
|
-
const
|
|
321
|
+
const J5 = L1`
|
|
322
322
|
:host {
|
|
323
323
|
/* Global Alert Styles */
|
|
324
324
|
--_nys-alert-border-width: var(--nys-border-width-lg, 4px);
|
|
325
325
|
--_nys-alert-border-radius: var(--nys-radius-md, 4px);
|
|
326
326
|
--_nys-alert-hover-border-radius: var(--nys-radius-sm, 2px);
|
|
327
|
-
--_nys-alert-color: var(
|
|
328
|
-
--nys-color-
|
|
327
|
+
--_nys-alert-text-color: var(
|
|
328
|
+
--nys-color-text,
|
|
329
329
|
var(--nys-color-neutral-900, #1b1b1b)
|
|
330
330
|
);
|
|
331
331
|
--_nys-alert-link-color: var(
|
|
332
332
|
--nys-color-link,
|
|
333
333
|
var(--nys-color-blue-600, #004dd1)
|
|
334
334
|
);
|
|
335
|
+
--_nys-alert-link-hover-color: var(
|
|
336
|
+
--nys-color-link-strong,
|
|
337
|
+
var(--nys-color-blue-700, #003ba1)
|
|
338
|
+
);
|
|
339
|
+
--_nys-alert-link-active-color: var(
|
|
340
|
+
--nys-color-link-strongest,
|
|
341
|
+
var(--nys-color-blue-800, #002971)
|
|
342
|
+
);
|
|
335
343
|
--_nys-alert-spacing: var(--nys-space-250, 20px);
|
|
336
344
|
--_nys-alert-font-family: var(
|
|
337
345
|
--nys-font-family-ui,
|
|
@@ -355,13 +363,13 @@ const G5 = L1`
|
|
|
355
363
|
|
|
356
364
|
/* Border specifics */
|
|
357
365
|
--_nys-alert-color-border-left: var(
|
|
358
|
-
--nys-color-
|
|
366
|
+
--nys-color-base,
|
|
359
367
|
var(--nys-color-neutral-600, #62666a)
|
|
360
368
|
);
|
|
361
369
|
|
|
362
370
|
/* Background type specifics */
|
|
363
371
|
--_nys-alert-color-bg: var(
|
|
364
|
-
--nys-color-
|
|
372
|
+
--nys-color-base-weak,
|
|
365
373
|
var(--nys-color-neutral-10, #f6f6f6)
|
|
366
374
|
);
|
|
367
375
|
|
|
@@ -381,7 +389,7 @@ const G5 = L1`
|
|
|
381
389
|
border-left: var(--_nys-alert-border-width) solid
|
|
382
390
|
var(--_nys-alert-color-border-left);
|
|
383
391
|
border-radius: var(--_nys-alert-border-radius);
|
|
384
|
-
color: var(--_nys-alert-color);
|
|
392
|
+
color: var(--_nys-alert-text-color);
|
|
385
393
|
padding: var(--_nys-alert-spacing);
|
|
386
394
|
font-style: normal;
|
|
387
395
|
font-family: var(--_nys-alert-font-family);
|
|
@@ -389,17 +397,22 @@ const G5 = L1`
|
|
|
389
397
|
line-height: var(--_nys-alert-lineheight);
|
|
390
398
|
letter-spacing: var(--_nys-alert-letterspacing);
|
|
391
399
|
gap: var(--_nys-alert-gap-space-150);
|
|
400
|
+
text-align: left;
|
|
392
401
|
}
|
|
393
402
|
|
|
394
403
|
/* Links */
|
|
395
404
|
a,
|
|
396
|
-
a:active,
|
|
397
|
-
a:hover,
|
|
398
405
|
a:visited {
|
|
399
406
|
font-weight: var(--_nys-alert-font-weight-semibold);
|
|
400
407
|
font-size: var(--_nys-alert-font-size);
|
|
401
408
|
color: var(--_nys-alert-link-color);
|
|
402
409
|
}
|
|
410
|
+
a:hover {
|
|
411
|
+
color: var(--_nys-alert-link-hover-color);
|
|
412
|
+
}
|
|
413
|
+
a:active {
|
|
414
|
+
color: var(--_nys-alert-link-active-color);
|
|
415
|
+
}
|
|
403
416
|
|
|
404
417
|
/* For HTML elements put into the slot */
|
|
405
418
|
::slotted(a) {
|
|
@@ -515,8 +528,28 @@ const G5 = L1`
|
|
|
515
528
|
--nys-color-emergency,
|
|
516
529
|
var(--nys-color-red-800, #721c1c)
|
|
517
530
|
);
|
|
518
|
-
--_nys-alert-color:
|
|
519
|
-
|
|
531
|
+
--_nys-alert-text-color: var(
|
|
532
|
+
--nys-color-text-reverse,
|
|
533
|
+
var(--nys-color-white, #fff)
|
|
534
|
+
);
|
|
535
|
+
--_nys-alert-link-color: var(
|
|
536
|
+
--nys-color-link-reverse-neutral,
|
|
537
|
+
var(--nys-color-white, #fff)
|
|
538
|
+
);
|
|
539
|
+
--_nys-alert-link-hover-color: var(
|
|
540
|
+
--nys-color-link-reverse-neutral,
|
|
541
|
+
var(--nys-color-white, #fff)
|
|
542
|
+
);
|
|
543
|
+
--_nys-alert-link-active-color: var(
|
|
544
|
+
--nys-color-link-reverse-neutral,
|
|
545
|
+
var(--nys-color-white, #fff)
|
|
546
|
+
);
|
|
547
|
+
}
|
|
548
|
+
:host([type="emergency"]) a:hover {
|
|
549
|
+
text-decoration-thickness: 2px;
|
|
550
|
+
}
|
|
551
|
+
:host([type="emergency"]) a:active {
|
|
552
|
+
text-decoration-thickness: 3px;
|
|
520
553
|
}
|
|
521
554
|
`;
|
|
522
555
|
/**
|
|
@@ -524,28 +557,28 @@ const G5 = L1`
|
|
|
524
557
|
* Copyright 2017 Google LLC
|
|
525
558
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
526
559
|
*/
|
|
527
|
-
const o1 = globalThis,
|
|
528
|
-
\f\r]`,
|
|
529
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), X1 = /'/g, Q1 = /"/g, H5 = /^(?:script|style|textarea|title)$/i, C1 = Symbol.for("lit-noChange"),
|
|
530
|
-
function Z5(
|
|
531
|
-
if (!
|
|
532
|
-
return
|
|
560
|
+
const o1 = globalThis, u1 = o1.trustedTypes, K1 = u1 ? u1.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, x5 = "$lit$", M = `lit$${Math.random().toFixed(9).slice(2)}$`, M5 = "?" + M, X5 = `<${M5}>`, U = document, y1 = () => U.createComment(""), i1 = (r) => r === null || typeof r != "object" && typeof r != "function", k1 = Array.isArray, Q5 = (r) => k1(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", S1 = `[
|
|
561
|
+
\f\r]`, G = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Y1 = /-->/g, J1 = />/g, S = RegExp(`>|${S1}(?:([^\\s"'>=/]+)(${S1}*=${S1}*(?:[^
|
|
562
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), X1 = /'/g, Q1 = /"/g, H5 = /^(?:script|style|textarea|title)$/i, C1 = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), t5 = /* @__PURE__ */ new WeakMap(), E = U.createTreeWalker(U, 129);
|
|
563
|
+
function Z5(r, t) {
|
|
564
|
+
if (!k1(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
565
|
+
return K1 !== void 0 ? K1.createHTML(t) : t;
|
|
533
566
|
}
|
|
534
|
-
const t2 = (
|
|
535
|
-
const e =
|
|
536
|
-
let
|
|
567
|
+
const t2 = (r, t) => {
|
|
568
|
+
const e = r.length - 1, o = [];
|
|
569
|
+
let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = G;
|
|
537
570
|
for (let l = 0; l < e; l++) {
|
|
538
|
-
const C =
|
|
539
|
-
let c, h, a = -1,
|
|
540
|
-
for (;
|
|
541
|
-
const
|
|
542
|
-
n += i ===
|
|
571
|
+
const C = r[l];
|
|
572
|
+
let c, h, a = -1, v = 0;
|
|
573
|
+
for (; v < C.length && (i.lastIndex = v, h = i.exec(C), h !== null); ) v = i.lastIndex, i === G ? h[1] === "!--" ? i = Y1 : h[1] !== void 0 ? i = J1 : h[2] !== void 0 ? (H5.test(h[2]) && (s = RegExp("</" + h[2], "g")), i = S) : h[3] !== void 0 && (i = S) : i === S ? h[0] === ">" ? (i = s ?? G, a = -1) : h[1] === void 0 ? a = -2 : (a = i.lastIndex - h[2].length, c = h[1], i = h[3] === void 0 ? S : h[3] === '"' ? Q1 : X1) : i === Q1 || i === X1 ? i = S : i === Y1 || i === J1 ? i = G : (i = S, s = void 0);
|
|
574
|
+
const u = i === S && r[l + 1].startsWith("/>") ? " " : "";
|
|
575
|
+
n += i === G ? C + X5 : a >= 0 ? (o.push(c), C.slice(0, a) + x5 + C.slice(a) + M + u) : C + M + (a === -2 ? l : u);
|
|
543
576
|
}
|
|
544
|
-
return [Z5(
|
|
577
|
+
return [Z5(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
|
|
545
578
|
};
|
|
546
579
|
let U1 = class A5 {
|
|
547
580
|
constructor({ strings: t, _$litType$: e }, o) {
|
|
548
|
-
let
|
|
581
|
+
let s;
|
|
549
582
|
this.parts = [];
|
|
550
583
|
let n = 0, i = 0;
|
|
551
584
|
const l = t.length - 1, C = this.parts, [c, h] = t2(t, e);
|
|
@@ -553,24 +586,24 @@ let U1 = class A5 {
|
|
|
553
586
|
const a = this.el.content.firstChild;
|
|
554
587
|
a.replaceWith(...a.childNodes);
|
|
555
588
|
}
|
|
556
|
-
for (; (
|
|
557
|
-
if (
|
|
558
|
-
if (
|
|
559
|
-
const
|
|
560
|
-
C.push({ type: 1, index: n, name: L[2], strings:
|
|
561
|
-
} else a.startsWith(M) && (C.push({ type: 6, index: n }),
|
|
562
|
-
if (H5.test(
|
|
563
|
-
const a =
|
|
564
|
-
if (
|
|
565
|
-
|
|
566
|
-
for (let
|
|
567
|
-
|
|
589
|
+
for (; (s = E.nextNode()) !== null && C.length < l; ) {
|
|
590
|
+
if (s.nodeType === 1) {
|
|
591
|
+
if (s.hasAttributes()) for (const a of s.getAttributeNames()) if (a.endsWith(x5)) {
|
|
592
|
+
const v = h[i++], u = s.getAttribute(a).split(M), L = /([.?@])?(.*)/.exec(v);
|
|
593
|
+
C.push({ type: 1, index: n, name: L[2], strings: u, ctor: L[1] === "." ? o2 : L[1] === "?" ? r2 : L[1] === "@" ? s2 : M1 }), s.removeAttribute(a);
|
|
594
|
+
} else a.startsWith(M) && (C.push({ type: 6, index: n }), s.removeAttribute(a));
|
|
595
|
+
if (H5.test(s.tagName)) {
|
|
596
|
+
const a = s.textContent.split(M), v = a.length - 1;
|
|
597
|
+
if (v > 0) {
|
|
598
|
+
s.textContent = u1 ? u1.emptyScript : "";
|
|
599
|
+
for (let u = 0; u < v; u++) s.append(a[u], y1()), E.nextNode(), C.push({ type: 2, index: ++n });
|
|
600
|
+
s.append(a[v], y1());
|
|
568
601
|
}
|
|
569
602
|
}
|
|
570
|
-
} else if (
|
|
603
|
+
} else if (s.nodeType === 8) if (s.data === M5) C.push({ type: 2, index: n });
|
|
571
604
|
else {
|
|
572
605
|
let a = -1;
|
|
573
|
-
for (; (a =
|
|
606
|
+
for (; (a = s.data.indexOf(M, a + 1)) !== -1; ) C.push({ type: 7, index: n }), a += M.length - 1;
|
|
574
607
|
}
|
|
575
608
|
n++;
|
|
576
609
|
}
|
|
@@ -580,12 +613,12 @@ let U1 = class A5 {
|
|
|
580
613
|
return o.innerHTML = t, o;
|
|
581
614
|
}
|
|
582
615
|
};
|
|
583
|
-
function
|
|
616
|
+
function B(r, t, e = r, o) {
|
|
584
617
|
var i, l;
|
|
585
618
|
if (t === C1) return t;
|
|
586
|
-
let
|
|
619
|
+
let s = o !== void 0 ? (i = e._$Co) == null ? void 0 : i[o] : e._$Cl;
|
|
587
620
|
const n = i1(t) ? void 0 : t._$litDirective$;
|
|
588
|
-
return (
|
|
621
|
+
return (s == null ? void 0 : s.constructor) !== n && ((l = s == null ? void 0 : s._$AO) == null || l.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, o)), o !== void 0 ? (e._$Co ?? (e._$Co = []))[o] = s : e._$Cl = s), s !== void 0 && (t = B(r, s._$AS(r, t.values), s, o)), t;
|
|
589
622
|
}
|
|
590
623
|
let e2 = class {
|
|
591
624
|
constructor(t, e) {
|
|
@@ -598,29 +631,29 @@ let e2 = class {
|
|
|
598
631
|
return this._$AM._$AU;
|
|
599
632
|
}
|
|
600
633
|
u(t) {
|
|
601
|
-
const { el: { content: e }, parts: o } = this._$AD,
|
|
602
|
-
E.currentNode =
|
|
634
|
+
const { el: { content: e }, parts: o } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? U).importNode(e, !0);
|
|
635
|
+
E.currentNode = s;
|
|
603
636
|
let n = E.nextNode(), i = 0, l = 0, C = o[0];
|
|
604
637
|
for (; C !== void 0; ) {
|
|
605
638
|
if (i === C.index) {
|
|
606
639
|
let c;
|
|
607
|
-
C.type === 2 ? c = new
|
|
640
|
+
C.type === 2 ? c = new S5(n, n.nextSibling, this, t) : C.type === 1 ? c = new C.ctor(n, C.name, C.strings, this, t) : C.type === 6 && (c = new n2(n, this, t)), this._$AV.push(c), C = o[++l];
|
|
608
641
|
}
|
|
609
642
|
i !== (C == null ? void 0 : C.index) && (n = E.nextNode(), i++);
|
|
610
643
|
}
|
|
611
|
-
return E.currentNode = U,
|
|
644
|
+
return E.currentNode = U, s;
|
|
612
645
|
}
|
|
613
646
|
p(t) {
|
|
614
647
|
let e = 0;
|
|
615
648
|
for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(t, o, e), e += o.strings.length - 2) : o._$AI(t[e])), e++;
|
|
616
649
|
}
|
|
617
|
-
},
|
|
650
|
+
}, S5 = class V5 {
|
|
618
651
|
get _$AU() {
|
|
619
652
|
var t;
|
|
620
653
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
621
654
|
}
|
|
622
|
-
constructor(t, e, o,
|
|
623
|
-
this.type = 2, this._$AH =
|
|
655
|
+
constructor(t, e, o, s) {
|
|
656
|
+
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = o, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
|
|
624
657
|
}
|
|
625
658
|
get parentNode() {
|
|
626
659
|
let t = this._$AA.parentNode;
|
|
@@ -634,7 +667,7 @@ let e2 = class {
|
|
|
634
667
|
return this._$AB;
|
|
635
668
|
}
|
|
636
669
|
_$AI(t, e = this) {
|
|
637
|
-
t =
|
|
670
|
+
t = B(this, t, e), i1(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== C1 && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Q5(t) ? this.k(t) : this._(t);
|
|
638
671
|
}
|
|
639
672
|
O(t) {
|
|
640
673
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -643,14 +676,14 @@ let e2 = class {
|
|
|
643
676
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
644
677
|
}
|
|
645
678
|
_(t) {
|
|
646
|
-
this._$AH !==
|
|
679
|
+
this._$AH !== p && i1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(U.createTextNode(t)), this._$AH = t;
|
|
647
680
|
}
|
|
648
681
|
$(t) {
|
|
649
682
|
var n;
|
|
650
|
-
const { values: e, _$litType$: o } = t,
|
|
651
|
-
if (((n = this._$AH) == null ? void 0 : n._$AD) ===
|
|
683
|
+
const { values: e, _$litType$: o } = t, s = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = U1.createElement(Z5(o.h, o.h[0]), this.options)), o);
|
|
684
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === s) this._$AH.p(e);
|
|
652
685
|
else {
|
|
653
|
-
const i = new e2(
|
|
686
|
+
const i = new e2(s, this), l = i.u(this.options);
|
|
654
687
|
i.p(e), this.T(l), this._$AH = i;
|
|
655
688
|
}
|
|
656
689
|
}
|
|
@@ -659,17 +692,17 @@ let e2 = class {
|
|
|
659
692
|
return e === void 0 && t5.set(t.strings, e = new U1(t)), e;
|
|
660
693
|
}
|
|
661
694
|
k(t) {
|
|
662
|
-
|
|
695
|
+
k1(this._$AH) || (this._$AH = [], this._$AR());
|
|
663
696
|
const e = this._$AH;
|
|
664
|
-
let o,
|
|
665
|
-
for (const n of t)
|
|
666
|
-
|
|
697
|
+
let o, s = 0;
|
|
698
|
+
for (const n of t) s === e.length ? e.push(o = new V5(this.O(y1()), this.O(y1()), this, this.options)) : o = e[s], o._$AI(n), s++;
|
|
699
|
+
s < e.length && (this._$AR(o && o._$AB.nextSibling, s), e.length = s);
|
|
667
700
|
}
|
|
668
701
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
669
702
|
var o;
|
|
670
703
|
for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
671
|
-
const
|
|
672
|
-
t.remove(), t =
|
|
704
|
+
const s = t.nextSibling;
|
|
705
|
+
t.remove(), t = s;
|
|
673
706
|
}
|
|
674
707
|
}
|
|
675
708
|
setConnected(t) {
|
|
@@ -683,45 +716,45 @@ let e2 = class {
|
|
|
683
716
|
get _$AU() {
|
|
684
717
|
return this._$AM._$AU;
|
|
685
718
|
}
|
|
686
|
-
constructor(t, e, o,
|
|
687
|
-
this.type = 1, this._$AH =
|
|
719
|
+
constructor(t, e, o, s, n) {
|
|
720
|
+
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = p;
|
|
688
721
|
}
|
|
689
|
-
_$AI(t, e = this, o,
|
|
722
|
+
_$AI(t, e = this, o, s) {
|
|
690
723
|
const n = this.strings;
|
|
691
724
|
let i = !1;
|
|
692
|
-
if (n === void 0) t =
|
|
725
|
+
if (n === void 0) t = B(this, t, e, 0), i = !i1(t) || t !== this._$AH && t !== C1, i && (this._$AH = t);
|
|
693
726
|
else {
|
|
694
727
|
const l = t;
|
|
695
728
|
let C, c;
|
|
696
|
-
for (t = n[0], C = 0; C < n.length - 1; C++) c =
|
|
729
|
+
for (t = n[0], C = 0; C < n.length - 1; C++) c = B(this, l[o + C], e, C), c === C1 && (c = this._$AH[C]), i || (i = !i1(c) || c !== this._$AH[C]), c === p ? t = p : t !== p && (t += (c ?? "") + n[C + 1]), this._$AH[C] = c;
|
|
697
730
|
}
|
|
698
|
-
i && !
|
|
731
|
+
i && !s && this.j(t);
|
|
699
732
|
}
|
|
700
733
|
j(t) {
|
|
701
|
-
t ===
|
|
734
|
+
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
702
735
|
}
|
|
703
736
|
}, o2 = class extends M1 {
|
|
704
737
|
constructor() {
|
|
705
738
|
super(...arguments), this.type = 3;
|
|
706
739
|
}
|
|
707
740
|
j(t) {
|
|
708
|
-
this.element[this.name] = t ===
|
|
741
|
+
this.element[this.name] = t === p ? void 0 : t;
|
|
709
742
|
}
|
|
710
|
-
},
|
|
743
|
+
}, r2 = class extends M1 {
|
|
711
744
|
constructor() {
|
|
712
745
|
super(...arguments), this.type = 4;
|
|
713
746
|
}
|
|
714
747
|
j(t) {
|
|
715
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
748
|
+
this.element.toggleAttribute(this.name, !!t && t !== p);
|
|
716
749
|
}
|
|
717
|
-
},
|
|
718
|
-
constructor(t, e, o,
|
|
719
|
-
super(t, e, o,
|
|
750
|
+
}, s2 = class extends M1 {
|
|
751
|
+
constructor(t, e, o, s, n) {
|
|
752
|
+
super(t, e, o, s, n), this.type = 5;
|
|
720
753
|
}
|
|
721
754
|
_$AI(t, e = this) {
|
|
722
|
-
if ((t =
|
|
723
|
-
const o = this._$AH,
|
|
724
|
-
|
|
755
|
+
if ((t = B(this, t, e, 0) ?? p) === C1) return;
|
|
756
|
+
const o = this._$AH, s = t === p && o !== p || t.capture !== o.capture || t.once !== o.once || t.passive !== o.passive, n = t !== p && (o === p || s);
|
|
757
|
+
s && this.element.removeEventListener(this.name, this, o), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
725
758
|
}
|
|
726
759
|
handleEvent(t) {
|
|
727
760
|
var e;
|
|
@@ -735,23 +768,23 @@ let e2 = class {
|
|
|
735
768
|
return this._$AM._$AU;
|
|
736
769
|
}
|
|
737
770
|
_$AI(t) {
|
|
738
|
-
|
|
771
|
+
B(this, t);
|
|
739
772
|
}
|
|
740
773
|
};
|
|
741
|
-
const
|
|
742
|
-
|
|
774
|
+
const V1 = o1.litHtmlPolyfillSupport;
|
|
775
|
+
V1 == null || V1(U1, S5), (o1.litHtmlVersions ?? (o1.litHtmlVersions = [])).push("3.2.1");
|
|
743
776
|
/**
|
|
744
777
|
* @license
|
|
745
778
|
* Copyright 2018 Google LLC
|
|
746
779
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
747
780
|
*/
|
|
748
|
-
const E1 = (
|
|
781
|
+
const E1 = (r) => r ?? p;
|
|
749
782
|
/*!
|
|
750
783
|
* ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
|
|
751
784
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
752
785
|
* ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
|
|
753
786
|
*
|
|
754
|
-
* Icon Component v1.1.
|
|
787
|
+
* Icon Component v1.1.1
|
|
755
788
|
* Part of the New York State Design System
|
|
756
789
|
* Repository: https://github.com/its-hcd/nysds
|
|
757
790
|
* License: MIT
|
|
@@ -761,7 +794,7 @@ const E1 = (s) => s ?? v;
|
|
|
761
794
|
* Copyright 2019 Google LLC
|
|
762
795
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
763
796
|
*/
|
|
764
|
-
const d1 = globalThis,
|
|
797
|
+
const d1 = globalThis, B1 = d1.ShadowRoot && (d1.ShadyCSS === void 0 || d1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, E5 = Symbol(), e5 = /* @__PURE__ */ new WeakMap();
|
|
765
798
|
let i2 = class {
|
|
766
799
|
constructor(t, e, o) {
|
|
767
800
|
if (this._$cssResult$ = !0, o !== E5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -770,7 +803,7 @@ let i2 = class {
|
|
|
770
803
|
get styleSheet() {
|
|
771
804
|
let t = this.o;
|
|
772
805
|
const e = this.t;
|
|
773
|
-
if (
|
|
806
|
+
if (B1 && t === void 0) {
|
|
774
807
|
const o = e !== void 0 && e.length === 1;
|
|
775
808
|
o && (t = e5.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), o && e5.set(e, t));
|
|
776
809
|
}
|
|
@@ -780,53 +813,53 @@ let i2 = class {
|
|
|
780
813
|
return this.cssText;
|
|
781
814
|
}
|
|
782
815
|
};
|
|
783
|
-
const C2 = (
|
|
784
|
-
if (
|
|
816
|
+
const C2 = (r) => new i2(typeof r == "string" ? r : r + "", void 0, E5), l2 = (r, t) => {
|
|
817
|
+
if (B1) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
785
818
|
else for (const e of t) {
|
|
786
|
-
const o = document.createElement("style"),
|
|
787
|
-
|
|
819
|
+
const o = document.createElement("style"), s = d1.litNonce;
|
|
820
|
+
s !== void 0 && o.setAttribute("nonce", s), o.textContent = e.cssText, r.appendChild(o);
|
|
788
821
|
}
|
|
789
|
-
}, o5 =
|
|
822
|
+
}, o5 = B1 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
790
823
|
let e = "";
|
|
791
824
|
for (const o of t.cssRules) e += o.cssText;
|
|
792
825
|
return C2(e);
|
|
793
|
-
})(
|
|
826
|
+
})(r) : r;
|
|
794
827
|
/**
|
|
795
828
|
* @license
|
|
796
829
|
* Copyright 2017 Google LLC
|
|
797
830
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
798
831
|
*/
|
|
799
|
-
const { is: a2, defineProperty: c2, getOwnPropertyDescriptor: h2, getOwnPropertyNames: d2, getOwnPropertySymbols:
|
|
832
|
+
const { is: a2, defineProperty: c2, getOwnPropertyDescriptor: h2, getOwnPropertyNames: d2, getOwnPropertySymbols: v2, getPrototypeOf: p2 } = Object, T = globalThis, r5 = T.trustedTypes, f2 = r5 ? r5.emptyScript : "", s5 = T.reactiveElementPolyfillSupport, r1 = (r, t) => r, g1 = { toAttribute(r, t) {
|
|
800
833
|
switch (t) {
|
|
801
834
|
case Boolean:
|
|
802
|
-
|
|
835
|
+
r = r ? f2 : null;
|
|
803
836
|
break;
|
|
804
837
|
case Object:
|
|
805
838
|
case Array:
|
|
806
|
-
|
|
839
|
+
r = r == null ? r : JSON.stringify(r);
|
|
807
840
|
}
|
|
808
|
-
return
|
|
809
|
-
}, fromAttribute(
|
|
810
|
-
let e =
|
|
841
|
+
return r;
|
|
842
|
+
}, fromAttribute(r, t) {
|
|
843
|
+
let e = r;
|
|
811
844
|
switch (t) {
|
|
812
845
|
case Boolean:
|
|
813
|
-
e =
|
|
846
|
+
e = r !== null;
|
|
814
847
|
break;
|
|
815
848
|
case Number:
|
|
816
|
-
e =
|
|
849
|
+
e = r === null ? null : Number(r);
|
|
817
850
|
break;
|
|
818
851
|
case Object:
|
|
819
852
|
case Array:
|
|
820
853
|
try {
|
|
821
|
-
e = JSON.parse(
|
|
854
|
+
e = JSON.parse(r);
|
|
822
855
|
} catch {
|
|
823
856
|
e = null;
|
|
824
857
|
}
|
|
825
858
|
}
|
|
826
859
|
return e;
|
|
827
|
-
} }, T1 = (
|
|
860
|
+
} }, T1 = (r, t) => !a2(r, t), n5 = { attribute: !0, type: String, converter: g1, reflect: !1, hasChanged: T1 };
|
|
828
861
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), T.litPropertyMetadata ?? (T.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
829
|
-
let
|
|
862
|
+
let K = class extends HTMLElement {
|
|
830
863
|
static addInitializer(t) {
|
|
831
864
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
832
865
|
}
|
|
@@ -835,20 +868,20 @@ let J = class extends HTMLElement {
|
|
|
835
868
|
}
|
|
836
869
|
static createProperty(t, e = n5) {
|
|
837
870
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
838
|
-
const o = Symbol(),
|
|
839
|
-
|
|
871
|
+
const o = Symbol(), s = this.getPropertyDescriptor(t, o, e);
|
|
872
|
+
s !== void 0 && c2(this.prototype, t, s);
|
|
840
873
|
}
|
|
841
874
|
}
|
|
842
875
|
static getPropertyDescriptor(t, e, o) {
|
|
843
|
-
const { get:
|
|
876
|
+
const { get: s, set: n } = h2(this.prototype, t) ?? { get() {
|
|
844
877
|
return this[e];
|
|
845
878
|
}, set(i) {
|
|
846
879
|
this[e] = i;
|
|
847
880
|
} };
|
|
848
881
|
return { get() {
|
|
849
|
-
return
|
|
882
|
+
return s == null ? void 0 : s.call(this);
|
|
850
883
|
}, set(i) {
|
|
851
|
-
const l =
|
|
884
|
+
const l = s == null ? void 0 : s.call(this);
|
|
852
885
|
n.call(this, i), this.requestUpdate(t, l, o);
|
|
853
886
|
}, configurable: !0, enumerable: !0 };
|
|
854
887
|
}
|
|
@@ -856,25 +889,25 @@ let J = class extends HTMLElement {
|
|
|
856
889
|
return this.elementProperties.get(t) ?? n5;
|
|
857
890
|
}
|
|
858
891
|
static _$Ei() {
|
|
859
|
-
if (this.hasOwnProperty(
|
|
860
|
-
const t =
|
|
892
|
+
if (this.hasOwnProperty(r1("elementProperties"))) return;
|
|
893
|
+
const t = p2(this);
|
|
861
894
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
862
895
|
}
|
|
863
896
|
static finalize() {
|
|
864
|
-
if (this.hasOwnProperty(
|
|
865
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
866
|
-
const e = this.properties, o = [...d2(e), ...
|
|
867
|
-
for (const
|
|
897
|
+
if (this.hasOwnProperty(r1("finalized"))) return;
|
|
898
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(r1("properties"))) {
|
|
899
|
+
const e = this.properties, o = [...d2(e), ...v2(e)];
|
|
900
|
+
for (const s of o) this.createProperty(s, e[s]);
|
|
868
901
|
}
|
|
869
902
|
const t = this[Symbol.metadata];
|
|
870
903
|
if (t !== null) {
|
|
871
904
|
const e = litPropertyMetadata.get(t);
|
|
872
|
-
if (e !== void 0) for (const [o,
|
|
905
|
+
if (e !== void 0) for (const [o, s] of e) this.elementProperties.set(o, s);
|
|
873
906
|
}
|
|
874
907
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
875
908
|
for (const [e, o] of this.elementProperties) {
|
|
876
|
-
const
|
|
877
|
-
|
|
909
|
+
const s = this._$Eu(e, o);
|
|
910
|
+
s !== void 0 && this._$Eh.set(s, e);
|
|
878
911
|
}
|
|
879
912
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
880
913
|
}
|
|
@@ -882,7 +915,7 @@ let J = class extends HTMLElement {
|
|
|
882
915
|
const e = [];
|
|
883
916
|
if (Array.isArray(t)) {
|
|
884
917
|
const o = new Set(t.flat(1 / 0).reverse());
|
|
885
|
-
for (const
|
|
918
|
+
for (const s of o) e.unshift(o5(s));
|
|
886
919
|
} else t !== void 0 && e.push(o5(t));
|
|
887
920
|
return e;
|
|
888
921
|
}
|
|
@@ -935,17 +968,17 @@ let J = class extends HTMLElement {
|
|
|
935
968
|
}
|
|
936
969
|
_$EC(t, e) {
|
|
937
970
|
var o;
|
|
938
|
-
const
|
|
939
|
-
if (n !== void 0 &&
|
|
940
|
-
const i = (((o =
|
|
971
|
+
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
972
|
+
if (n !== void 0 && s.reflect === !0) {
|
|
973
|
+
const i = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : g1).toAttribute(e, s.type);
|
|
941
974
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
942
975
|
}
|
|
943
976
|
}
|
|
944
977
|
_$AK(t, e) {
|
|
945
978
|
var o;
|
|
946
|
-
const
|
|
979
|
+
const s = this.constructor, n = s._$Eh.get(t);
|
|
947
980
|
if (n !== void 0 && this._$Em !== n) {
|
|
948
|
-
const i =
|
|
981
|
+
const i = s.getPropertyOptions(n), l = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((o = i.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? i.converter : g1;
|
|
949
982
|
this._$Em = n, this[n] = l.fromAttribute(e, i.type), this._$Em = null;
|
|
950
983
|
}
|
|
951
984
|
}
|
|
@@ -980,18 +1013,18 @@ let J = class extends HTMLElement {
|
|
|
980
1013
|
for (const [n, i] of this._$Ep) this[n] = i;
|
|
981
1014
|
this._$Ep = void 0;
|
|
982
1015
|
}
|
|
983
|
-
const
|
|
984
|
-
if (
|
|
1016
|
+
const s = this.constructor.elementProperties;
|
|
1017
|
+
if (s.size > 0) for (const [n, i] of s) i.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], i);
|
|
985
1018
|
}
|
|
986
1019
|
let e = !1;
|
|
987
1020
|
const o = this._$AL;
|
|
988
1021
|
try {
|
|
989
|
-
e = this.shouldUpdate(o), e ? (this.willUpdate(o), (t = this._$EO) == null || t.forEach((
|
|
1022
|
+
e = this.shouldUpdate(o), e ? (this.willUpdate(o), (t = this._$EO) == null || t.forEach((s) => {
|
|
990
1023
|
var n;
|
|
991
|
-
return (n =
|
|
1024
|
+
return (n = s.hostUpdate) == null ? void 0 : n.call(s);
|
|
992
1025
|
}), this.update(o)) : this._$EU();
|
|
993
|
-
} catch (
|
|
994
|
-
throw e = !1, this._$EU(),
|
|
1026
|
+
} catch (s) {
|
|
1027
|
+
throw e = !1, this._$EU(), s;
|
|
995
1028
|
}
|
|
996
1029
|
e && this._$AE(o);
|
|
997
1030
|
}
|
|
@@ -1000,8 +1033,8 @@ let J = class extends HTMLElement {
|
|
|
1000
1033
|
_$AE(t) {
|
|
1001
1034
|
var e;
|
|
1002
1035
|
(e = this._$EO) == null || e.forEach((o) => {
|
|
1003
|
-
var
|
|
1004
|
-
return (
|
|
1036
|
+
var s;
|
|
1037
|
+
return (s = o.hostUpdated) == null ? void 0 : s.call(o);
|
|
1005
1038
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
1006
1039
|
}
|
|
1007
1040
|
_$EU() {
|
|
@@ -1024,38 +1057,38 @@ let J = class extends HTMLElement {
|
|
|
1024
1057
|
firstUpdated(t) {
|
|
1025
1058
|
}
|
|
1026
1059
|
};
|
|
1027
|
-
|
|
1060
|
+
K.elementStyles = [], K.shadowRootOptions = { mode: "open" }, K[r1("elementProperties")] = /* @__PURE__ */ new Map(), K[r1("finalized")] = /* @__PURE__ */ new Map(), s5 == null || s5({ ReactiveElement: K }), (T.reactiveElementVersions ?? (T.reactiveElementVersions = [])).push("2.0.4");
|
|
1028
1061
|
/**
|
|
1029
1062
|
* @license
|
|
1030
1063
|
* Copyright 2017 Google LLC
|
|
1031
1064
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1032
1065
|
*/
|
|
1033
|
-
const
|
|
1034
|
-
const { kind: o, metadata:
|
|
1035
|
-
let n = globalThis.litPropertyMetadata.get(
|
|
1036
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(
|
|
1066
|
+
const u2 = { attribute: !0, type: String, converter: g1, reflect: !1, hasChanged: T1 }, y2 = (r = u2, t, e) => {
|
|
1067
|
+
const { kind: o, metadata: s } = e;
|
|
1068
|
+
let n = globalThis.litPropertyMetadata.get(s);
|
|
1069
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), o === "accessor") {
|
|
1037
1070
|
const { name: i } = e;
|
|
1038
1071
|
return { set(l) {
|
|
1039
1072
|
const C = t.get.call(this);
|
|
1040
|
-
t.set.call(this, l), this.requestUpdate(i, C,
|
|
1073
|
+
t.set.call(this, l), this.requestUpdate(i, C, r);
|
|
1041
1074
|
}, init(l) {
|
|
1042
|
-
return l !== void 0 && this.P(i, void 0,
|
|
1075
|
+
return l !== void 0 && this.P(i, void 0, r), l;
|
|
1043
1076
|
} };
|
|
1044
1077
|
}
|
|
1045
1078
|
if (o === "setter") {
|
|
1046
1079
|
const { name: i } = e;
|
|
1047
1080
|
return function(l) {
|
|
1048
1081
|
const C = this[i];
|
|
1049
|
-
t.call(this, l), this.requestUpdate(i, C,
|
|
1082
|
+
t.call(this, l), this.requestUpdate(i, C, r);
|
|
1050
1083
|
};
|
|
1051
1084
|
}
|
|
1052
1085
|
throw Error("Unsupported decorator location: " + o);
|
|
1053
1086
|
};
|
|
1054
|
-
function
|
|
1055
|
-
return (t, e) => typeof e == "object" ? y2(
|
|
1056
|
-
const i =
|
|
1057
|
-
return
|
|
1058
|
-
})(
|
|
1087
|
+
function D(r) {
|
|
1088
|
+
return (t, e) => typeof e == "object" ? y2(r, t, e) : ((o, s, n) => {
|
|
1089
|
+
const i = s.hasOwnProperty(n);
|
|
1090
|
+
return s.constructor.createProperty(n, i ? { ...o, wrapped: !0 } : o), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
1091
|
+
})(r, t, e);
|
|
1059
1092
|
}
|
|
1060
1093
|
const g2 = {
|
|
1061
1094
|
// --------- UX Team Main Library (below) --------- //
|
|
@@ -1353,34 +1386,34 @@ const g2 = {
|
|
|
1353
1386
|
transform: scale(-1, -1);
|
|
1354
1387
|
}
|
|
1355
1388
|
`;
|
|
1356
|
-
var _2 = Object.defineProperty, b2 = Object.getOwnPropertyDescriptor,
|
|
1357
|
-
for (var
|
|
1358
|
-
(i =
|
|
1359
|
-
return o &&
|
|
1360
|
-
},
|
|
1361
|
-
const
|
|
1389
|
+
var _2 = Object.defineProperty, b2 = Object.getOwnPropertyDescriptor, j = (r, t, e, o) => {
|
|
1390
|
+
for (var s = o > 1 ? void 0 : o ? b2(t, e) : t, n = r.length - 1, i; n >= 0; n--)
|
|
1391
|
+
(i = r[n]) && (s = (o ? i(t, e, s) : i(s)) || s);
|
|
1392
|
+
return o && s && _2(t, e, s), s;
|
|
1393
|
+
}, Y;
|
|
1394
|
+
const O = (Y = class extends x1 {
|
|
1362
1395
|
constructor() {
|
|
1363
1396
|
super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
1364
1397
|
}
|
|
1365
1398
|
get size() {
|
|
1366
1399
|
return this._size;
|
|
1367
1400
|
}
|
|
1368
|
-
set size(
|
|
1369
|
-
this._size =
|
|
1370
|
-
|
|
1371
|
-
) ?
|
|
1401
|
+
set size(r) {
|
|
1402
|
+
this._size = Y.VALID_TYPES.includes(
|
|
1403
|
+
r
|
|
1404
|
+
) ? r : "sm";
|
|
1372
1405
|
}
|
|
1373
1406
|
getIcon() {
|
|
1374
|
-
const
|
|
1375
|
-
if (!
|
|
1376
|
-
const e = new DOMParser().parseFromString(
|
|
1407
|
+
const r = g2[this.name], t = !!this.label;
|
|
1408
|
+
if (!r) return null;
|
|
1409
|
+
const e = new DOMParser().parseFromString(r, "image/svg+xml").documentElement;
|
|
1377
1410
|
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;
|
|
1378
1411
|
}
|
|
1379
1412
|
render() {
|
|
1380
|
-
const
|
|
1381
|
-
return
|
|
1413
|
+
const r = this.getIcon();
|
|
1414
|
+
return r ? d`${r}` : null;
|
|
1382
1415
|
}
|
|
1383
|
-
},
|
|
1416
|
+
}, Y.styles = w2, Y.VALID_TYPES = [
|
|
1384
1417
|
"2xs",
|
|
1385
1418
|
"xs",
|
|
1386
1419
|
"sm",
|
|
@@ -1396,26 +1429,26 @@ const z = (K = class extends x1 {
|
|
|
1396
1429
|
"32",
|
|
1397
1430
|
"48",
|
|
1398
1431
|
"64"
|
|
1399
|
-
],
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
],
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
],
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
],
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
],
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
],
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
],
|
|
1418
|
-
let m2 =
|
|
1432
|
+
], Y);
|
|
1433
|
+
j([
|
|
1434
|
+
D({ type: String, reflect: !0 })
|
|
1435
|
+
], O.prototype, "name", 2);
|
|
1436
|
+
j([
|
|
1437
|
+
D({ type: String })
|
|
1438
|
+
], O.prototype, "label", 2);
|
|
1439
|
+
j([
|
|
1440
|
+
D({ type: String })
|
|
1441
|
+
], O.prototype, "rotate", 2);
|
|
1442
|
+
j([
|
|
1443
|
+
D({ type: String })
|
|
1444
|
+
], O.prototype, "flip", 2);
|
|
1445
|
+
j([
|
|
1446
|
+
D({ type: String })
|
|
1447
|
+
], O.prototype, "color", 2);
|
|
1448
|
+
j([
|
|
1449
|
+
D({ reflect: !0 })
|
|
1450
|
+
], O.prototype, "size", 1);
|
|
1451
|
+
let m2 = O;
|
|
1419
1452
|
customElements.get("nys-icon") || customElements.define("nys-icon", m2);
|
|
1420
1453
|
/*!
|
|
1421
1454
|
*
|
|
@@ -1423,7 +1456,7 @@ customElements.get("nys-icon") || customElements.define("nys-icon", m2);
|
|
|
1423
1456
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
1424
1457
|
* ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
|
|
1425
1458
|
*
|
|
1426
|
-
* Button Component v1.1.
|
|
1459
|
+
* Button Component v1.1.1
|
|
1427
1460
|
* Part of the New York State Design System
|
|
1428
1461
|
* Repository: https://github.com/its-hcd/nysds
|
|
1429
1462
|
* License: MIT
|
|
@@ -1433,72 +1466,72 @@ customElements.get("nys-icon") || customElements.define("nys-icon", m2);
|
|
|
1433
1466
|
* Copyright 2019 Google LLC
|
|
1434
1467
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1435
1468
|
*/
|
|
1436
|
-
const
|
|
1469
|
+
const v1 = globalThis, I1 = v1.ShadowRoot && (v1.ShadyCSS === void 0 || v1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, P5 = Symbol(), i5 = /* @__PURE__ */ new WeakMap();
|
|
1437
1470
|
let $2 = class {
|
|
1438
|
-
constructor(
|
|
1471
|
+
constructor(r, t, e) {
|
|
1439
1472
|
if (this._$cssResult$ = !0, e !== P5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1440
|
-
this.cssText =
|
|
1473
|
+
this.cssText = r, this.t = t;
|
|
1441
1474
|
}
|
|
1442
1475
|
get styleSheet() {
|
|
1443
|
-
let
|
|
1476
|
+
let r = this.o;
|
|
1444
1477
|
const t = this.t;
|
|
1445
|
-
if (
|
|
1478
|
+
if (I1 && r === void 0) {
|
|
1446
1479
|
const e = t !== void 0 && t.length === 1;
|
|
1447
|
-
e && (
|
|
1480
|
+
e && (r = i5.get(t)), r === void 0 && ((this.o = r = new CSSStyleSheet()).replaceSync(this.cssText), e && i5.set(t, r));
|
|
1448
1481
|
}
|
|
1449
|
-
return
|
|
1482
|
+
return r;
|
|
1450
1483
|
}
|
|
1451
1484
|
toString() {
|
|
1452
1485
|
return this.cssText;
|
|
1453
1486
|
}
|
|
1454
1487
|
};
|
|
1455
|
-
const L2 = (
|
|
1456
|
-
if (
|
|
1488
|
+
const L2 = (r) => new $2(typeof r == "string" ? r : r + "", void 0, P5), x2 = (r, t) => {
|
|
1489
|
+
if (I1) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1457
1490
|
else for (const e of t) {
|
|
1458
|
-
const o = document.createElement("style"),
|
|
1459
|
-
|
|
1491
|
+
const o = document.createElement("style"), s = v1.litNonce;
|
|
1492
|
+
s !== void 0 && o.setAttribute("nonce", s), o.textContent = e.cssText, r.appendChild(o);
|
|
1460
1493
|
}
|
|
1461
|
-
}, C5 =
|
|
1494
|
+
}, C5 = I1 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
1462
1495
|
let e = "";
|
|
1463
1496
|
for (const o of t.cssRules) e += o.cssText;
|
|
1464
1497
|
return L2(e);
|
|
1465
|
-
})(
|
|
1498
|
+
})(r) : r;
|
|
1466
1499
|
/**
|
|
1467
1500
|
* @license
|
|
1468
1501
|
* Copyright 2017 Google LLC
|
|
1469
1502
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1470
1503
|
*/
|
|
1471
|
-
const { is: M2, defineProperty: H2, getOwnPropertyDescriptor: Z2, getOwnPropertyNames: A2, getOwnPropertySymbols:
|
|
1504
|
+
const { is: M2, defineProperty: H2, getOwnPropertyDescriptor: Z2, getOwnPropertyNames: A2, getOwnPropertySymbols: S2, getPrototypeOf: V2 } = Object, I = globalThis, l5 = I.trustedTypes, E2 = l5 ? l5.emptyScript : "", a5 = I.reactiveElementPolyfillSupport, s1 = (r, t) => r, w1 = { toAttribute(r, t) {
|
|
1472
1505
|
switch (t) {
|
|
1473
1506
|
case Boolean:
|
|
1474
|
-
|
|
1507
|
+
r = r ? E2 : null;
|
|
1475
1508
|
break;
|
|
1476
1509
|
case Object:
|
|
1477
1510
|
case Array:
|
|
1478
|
-
|
|
1511
|
+
r = r == null ? r : JSON.stringify(r);
|
|
1479
1512
|
}
|
|
1480
|
-
return
|
|
1481
|
-
}, fromAttribute(
|
|
1482
|
-
let e =
|
|
1513
|
+
return r;
|
|
1514
|
+
}, fromAttribute(r, t) {
|
|
1515
|
+
let e = r;
|
|
1483
1516
|
switch (t) {
|
|
1484
1517
|
case Boolean:
|
|
1485
|
-
e =
|
|
1518
|
+
e = r !== null;
|
|
1486
1519
|
break;
|
|
1487
1520
|
case Number:
|
|
1488
|
-
e =
|
|
1521
|
+
e = r === null ? null : Number(r);
|
|
1489
1522
|
break;
|
|
1490
1523
|
case Object:
|
|
1491
1524
|
case Array:
|
|
1492
1525
|
try {
|
|
1493
|
-
e = JSON.parse(
|
|
1526
|
+
e = JSON.parse(r);
|
|
1494
1527
|
} catch {
|
|
1495
1528
|
e = null;
|
|
1496
1529
|
}
|
|
1497
1530
|
}
|
|
1498
1531
|
return e;
|
|
1499
|
-
} },
|
|
1500
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
1501
|
-
class
|
|
1532
|
+
} }, N1 = (r, t) => !M2(r, t), c5 = { attribute: !0, type: String, converter: w1, reflect: !1, hasChanged: N1 };
|
|
1533
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), I.litPropertyMetadata ?? (I.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1534
|
+
class J extends HTMLElement {
|
|
1502
1535
|
static addInitializer(t) {
|
|
1503
1536
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
1504
1537
|
}
|
|
@@ -1507,20 +1540,20 @@ class G extends HTMLElement {
|
|
|
1507
1540
|
}
|
|
1508
1541
|
static createProperty(t, e = c5) {
|
|
1509
1542
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
1510
|
-
const o = Symbol(),
|
|
1511
|
-
|
|
1543
|
+
const o = Symbol(), s = this.getPropertyDescriptor(t, o, e);
|
|
1544
|
+
s !== void 0 && H2(this.prototype, t, s);
|
|
1512
1545
|
}
|
|
1513
1546
|
}
|
|
1514
1547
|
static getPropertyDescriptor(t, e, o) {
|
|
1515
|
-
const { get:
|
|
1548
|
+
const { get: s, set: n } = Z2(this.prototype, t) ?? { get() {
|
|
1516
1549
|
return this[e];
|
|
1517
1550
|
}, set(i) {
|
|
1518
1551
|
this[e] = i;
|
|
1519
1552
|
} };
|
|
1520
1553
|
return { get() {
|
|
1521
|
-
return
|
|
1554
|
+
return s == null ? void 0 : s.call(this);
|
|
1522
1555
|
}, set(i) {
|
|
1523
|
-
const l =
|
|
1556
|
+
const l = s == null ? void 0 : s.call(this);
|
|
1524
1557
|
n.call(this, i), this.requestUpdate(t, l, o);
|
|
1525
1558
|
}, configurable: !0, enumerable: !0 };
|
|
1526
1559
|
}
|
|
@@ -1528,25 +1561,25 @@ class G extends HTMLElement {
|
|
|
1528
1561
|
return this.elementProperties.get(t) ?? c5;
|
|
1529
1562
|
}
|
|
1530
1563
|
static _$Ei() {
|
|
1531
|
-
if (this.hasOwnProperty(
|
|
1532
|
-
const t =
|
|
1564
|
+
if (this.hasOwnProperty(s1("elementProperties"))) return;
|
|
1565
|
+
const t = V2(this);
|
|
1533
1566
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
1534
1567
|
}
|
|
1535
1568
|
static finalize() {
|
|
1536
|
-
if (this.hasOwnProperty(
|
|
1537
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
1538
|
-
const e = this.properties, o = [...A2(e), ...
|
|
1539
|
-
for (const
|
|
1569
|
+
if (this.hasOwnProperty(s1("finalized"))) return;
|
|
1570
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(s1("properties"))) {
|
|
1571
|
+
const e = this.properties, o = [...A2(e), ...S2(e)];
|
|
1572
|
+
for (const s of o) this.createProperty(s, e[s]);
|
|
1540
1573
|
}
|
|
1541
1574
|
const t = this[Symbol.metadata];
|
|
1542
1575
|
if (t !== null) {
|
|
1543
1576
|
const e = litPropertyMetadata.get(t);
|
|
1544
|
-
if (e !== void 0) for (const [o,
|
|
1577
|
+
if (e !== void 0) for (const [o, s] of e) this.elementProperties.set(o, s);
|
|
1545
1578
|
}
|
|
1546
1579
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
1547
1580
|
for (const [e, o] of this.elementProperties) {
|
|
1548
|
-
const
|
|
1549
|
-
|
|
1581
|
+
const s = this._$Eu(e, o);
|
|
1582
|
+
s !== void 0 && this._$Eh.set(s, e);
|
|
1550
1583
|
}
|
|
1551
1584
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
1552
1585
|
}
|
|
@@ -1554,7 +1587,7 @@ class G extends HTMLElement {
|
|
|
1554
1587
|
const e = [];
|
|
1555
1588
|
if (Array.isArray(t)) {
|
|
1556
1589
|
const o = new Set(t.flat(1 / 0).reverse());
|
|
1557
|
-
for (const
|
|
1590
|
+
for (const s of o) e.unshift(C5(s));
|
|
1558
1591
|
} else t !== void 0 && e.push(C5(t));
|
|
1559
1592
|
return e;
|
|
1560
1593
|
}
|
|
@@ -1607,23 +1640,23 @@ class G extends HTMLElement {
|
|
|
1607
1640
|
}
|
|
1608
1641
|
_$EC(t, e) {
|
|
1609
1642
|
var o;
|
|
1610
|
-
const
|
|
1611
|
-
if (n !== void 0 &&
|
|
1612
|
-
const i = (((o =
|
|
1643
|
+
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
1644
|
+
if (n !== void 0 && s.reflect === !0) {
|
|
1645
|
+
const i = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : w1).toAttribute(e, s.type);
|
|
1613
1646
|
this._$Em = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
1614
1647
|
}
|
|
1615
1648
|
}
|
|
1616
1649
|
_$AK(t, e) {
|
|
1617
1650
|
var o;
|
|
1618
|
-
const
|
|
1651
|
+
const s = this.constructor, n = s._$Eh.get(t);
|
|
1619
1652
|
if (n !== void 0 && this._$Em !== n) {
|
|
1620
|
-
const i =
|
|
1653
|
+
const i = s.getPropertyOptions(n), l = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((o = i.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? i.converter : w1;
|
|
1621
1654
|
this._$Em = n, this[n] = l.fromAttribute(e, i.type), this._$Em = null;
|
|
1622
1655
|
}
|
|
1623
1656
|
}
|
|
1624
1657
|
requestUpdate(t, e, o) {
|
|
1625
1658
|
if (t !== void 0) {
|
|
1626
|
-
if (o ?? (o = this.constructor.getPropertyOptions(t)), !(o.hasChanged ??
|
|
1659
|
+
if (o ?? (o = this.constructor.getPropertyOptions(t)), !(o.hasChanged ?? N1)(this[t], e)) return;
|
|
1627
1660
|
this.P(t, e, o);
|
|
1628
1661
|
}
|
|
1629
1662
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -1652,18 +1685,18 @@ class G extends HTMLElement {
|
|
|
1652
1685
|
for (const [n, i] of this._$Ep) this[n] = i;
|
|
1653
1686
|
this._$Ep = void 0;
|
|
1654
1687
|
}
|
|
1655
|
-
const
|
|
1656
|
-
if (
|
|
1688
|
+
const s = this.constructor.elementProperties;
|
|
1689
|
+
if (s.size > 0) for (const [n, i] of s) i.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], i);
|
|
1657
1690
|
}
|
|
1658
1691
|
let e = !1;
|
|
1659
1692
|
const o = this._$AL;
|
|
1660
1693
|
try {
|
|
1661
|
-
e = this.shouldUpdate(o), e ? (this.willUpdate(o), (t = this._$EO) == null || t.forEach((
|
|
1694
|
+
e = this.shouldUpdate(o), e ? (this.willUpdate(o), (t = this._$EO) == null || t.forEach((s) => {
|
|
1662
1695
|
var n;
|
|
1663
|
-
return (n =
|
|
1696
|
+
return (n = s.hostUpdate) == null ? void 0 : n.call(s);
|
|
1664
1697
|
}), this.update(o)) : this._$EU();
|
|
1665
|
-
} catch (
|
|
1666
|
-
throw e = !1, this._$EU(),
|
|
1698
|
+
} catch (s) {
|
|
1699
|
+
throw e = !1, this._$EU(), s;
|
|
1667
1700
|
}
|
|
1668
1701
|
e && this._$AE(o);
|
|
1669
1702
|
}
|
|
@@ -1672,8 +1705,8 @@ class G extends HTMLElement {
|
|
|
1672
1705
|
_$AE(t) {
|
|
1673
1706
|
var e;
|
|
1674
1707
|
(e = this._$EO) == null || e.forEach((o) => {
|
|
1675
|
-
var
|
|
1676
|
-
return (
|
|
1708
|
+
var s;
|
|
1709
|
+
return (s = o.hostUpdated) == null ? void 0 : s.call(o);
|
|
1677
1710
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
1678
1711
|
}
|
|
1679
1712
|
_$EU() {
|
|
@@ -1696,40 +1729,40 @@ class G extends HTMLElement {
|
|
|
1696
1729
|
firstUpdated(t) {
|
|
1697
1730
|
}
|
|
1698
1731
|
}
|
|
1699
|
-
|
|
1732
|
+
J.elementStyles = [], J.shadowRootOptions = { mode: "open" }, J[s1("elementProperties")] = /* @__PURE__ */ new Map(), J[s1("finalized")] = /* @__PURE__ */ new Map(), a5 == null || a5({ ReactiveElement: J }), (I.reactiveElementVersions ?? (I.reactiveElementVersions = [])).push("2.0.4");
|
|
1700
1733
|
/**
|
|
1701
1734
|
* @license
|
|
1702
1735
|
* Copyright 2017 Google LLC
|
|
1703
1736
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1704
1737
|
*/
|
|
1705
|
-
const P2 = { attribute: !0, type: String, converter: w1, reflect: !1, hasChanged:
|
|
1706
|
-
const { kind: o, metadata:
|
|
1707
|
-
let n = globalThis.litPropertyMetadata.get(
|
|
1708
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(
|
|
1738
|
+
const P2 = { attribute: !0, type: String, converter: w1, reflect: !1, hasChanged: N1 }, U2 = (r = P2, t, e) => {
|
|
1739
|
+
const { kind: o, metadata: s } = e;
|
|
1740
|
+
let n = globalThis.litPropertyMetadata.get(s);
|
|
1741
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), o === "accessor") {
|
|
1709
1742
|
const { name: i } = e;
|
|
1710
1743
|
return { set(l) {
|
|
1711
1744
|
const C = t.get.call(this);
|
|
1712
|
-
t.set.call(this, l), this.requestUpdate(i, C,
|
|
1745
|
+
t.set.call(this, l), this.requestUpdate(i, C, r);
|
|
1713
1746
|
}, init(l) {
|
|
1714
|
-
return l !== void 0 && this.P(i, void 0,
|
|
1747
|
+
return l !== void 0 && this.P(i, void 0, r), l;
|
|
1715
1748
|
} };
|
|
1716
1749
|
}
|
|
1717
1750
|
if (o === "setter") {
|
|
1718
1751
|
const { name: i } = e;
|
|
1719
1752
|
return function(l) {
|
|
1720
1753
|
const C = this[i];
|
|
1721
|
-
t.call(this, l), this.requestUpdate(i, C,
|
|
1754
|
+
t.call(this, l), this.requestUpdate(i, C, r);
|
|
1722
1755
|
};
|
|
1723
1756
|
}
|
|
1724
1757
|
throw Error("Unsupported decorator location: " + o);
|
|
1725
1758
|
};
|
|
1726
|
-
function g(
|
|
1727
|
-
return (t, e) => typeof e == "object" ? U2(
|
|
1728
|
-
const i =
|
|
1729
|
-
return
|
|
1730
|
-
})(
|
|
1759
|
+
function g(r) {
|
|
1760
|
+
return (t, e) => typeof e == "object" ? U2(r, t, e) : ((o, s, n) => {
|
|
1761
|
+
const i = s.hasOwnProperty(n);
|
|
1762
|
+
return s.constructor.createProperty(n, i ? { ...o, wrapped: !0 } : o), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
1763
|
+
})(r, t, e);
|
|
1731
1764
|
}
|
|
1732
|
-
const
|
|
1765
|
+
const z2 = L1`
|
|
1733
1766
|
:host {
|
|
1734
1767
|
/* Anything that can be overridden should be defined here */
|
|
1735
1768
|
|
|
@@ -1747,19 +1780,19 @@ const k2 = L1`
|
|
|
1747
1780
|
|
|
1748
1781
|
/* Global Button Colors */
|
|
1749
1782
|
--_nys-button-color-bg: var(--nys-color-theme, #154973);
|
|
1750
|
-
--_nys-button-color-text: var(--nys-color-
|
|
1783
|
+
--_nys-button-color-text: var(--nys-color-text-reverse, #ffffff);
|
|
1751
1784
|
--_nys-button-color-border: var(--nys-color-theme, #154973);
|
|
1752
1785
|
|
|
1753
1786
|
--_nys-button-color-bg-hover: var(--nys-color-theme-strong, #0e324f);
|
|
1754
|
-
--_nys-button-color-text-hover: var(--nys-color-
|
|
1787
|
+
--_nys-button-color-text-hover: var(--nys-color-text-reverse, #ffffff);
|
|
1755
1788
|
--_nys-button-color-border-hover: var(--nys-color-theme-strong, #0e324f);
|
|
1756
1789
|
|
|
1757
1790
|
--_nys-button-color-bg-active: var(--nys-color-theme-stronger, #081b2b);
|
|
1758
|
-
--_nys-button-color-text-active: var(--nys-color-
|
|
1791
|
+
--_nys-button-color-text-active: var(--nys-color-text-reverse, #ffffff);
|
|
1759
1792
|
--_nys-button-color-border-active: var(--nys-color-theme-stronger, #081b2b);
|
|
1760
1793
|
|
|
1761
1794
|
--_nys-button-color-bg-disabled: var(--nys-color-neutral-10, #f6f6f6);
|
|
1762
|
-
--_nys-button-color-text-disabled: var(--nys-color-
|
|
1795
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #bec0c1);
|
|
1763
1796
|
--_nys-button-color-border-disabled: var(--nys-color-neutral-10, #f6f6f6);
|
|
1764
1797
|
|
|
1765
1798
|
/* Typography */
|
|
@@ -1799,67 +1832,55 @@ const k2 = L1`
|
|
|
1799
1832
|
--_nys-button-width: 100%;
|
|
1800
1833
|
}
|
|
1801
1834
|
|
|
1802
|
-
/*
|
|
1835
|
+
/* VARIANTS */
|
|
1836
|
+
|
|
1837
|
+
/* Filled */
|
|
1803
1838
|
:host([variant="filled"]) {
|
|
1839
|
+
/* Filled - Default */
|
|
1804
1840
|
--_nys-button-color-bg: var(--nys-color-theme, #154973);
|
|
1805
|
-
--_nys-button-color-text: var(--nys-color-
|
|
1806
|
-
--_nys-button-color-border: var(--nys-color-
|
|
1841
|
+
--_nys-button-color-text: var(--nys-color-text-reverse, #ffffff);
|
|
1842
|
+
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
1807
1843
|
|
|
1844
|
+
/* Filled - Hover */
|
|
1808
1845
|
--_nys-button-color-bg-hover: var(--nys-color-theme-strong, #0e324f);
|
|
1809
|
-
--_nys-button-color-text-hover: var(--nys-color-
|
|
1810
|
-
--_nys-button-color-border
|
|
1846
|
+
--_nys-button-color-text-hover: var(--nys-color-text-reverse, #ffffff);
|
|
1847
|
+
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
1811
1848
|
|
|
1849
|
+
/* Filled - Pressed/Active */
|
|
1812
1850
|
--_nys-button-color-bg-active: var(--nys-color-theme-stronger, #081b2b);
|
|
1813
|
-
--_nys-button-color-text-active: var(--nys-color-
|
|
1814
|
-
--_nys-button-color-border
|
|
1851
|
+
--_nys-button-color-text-active: var(--nys-color-text-reverse, #ffffff);
|
|
1852
|
+
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
1815
1853
|
|
|
1854
|
+
/* Filled - Disabled */
|
|
1816
1855
|
--_nys-button-color-bg-disabled: var(--nys-color-neutral-10, #f6f6f6);
|
|
1817
|
-
--_nys-button-color-text-disabled: var(--nys-color-
|
|
1818
|
-
--_nys-button-color-border
|
|
1856
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #bec0c1);
|
|
1857
|
+
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
1819
1858
|
}
|
|
1859
|
+
|
|
1860
|
+
/* Outline */
|
|
1820
1861
|
:host([variant="outline"]) {
|
|
1821
|
-
|
|
1862
|
+
/* Outline - Default */
|
|
1863
|
+
--_nys-button-color-bg: var(--nys-color-surface, #ffffff);
|
|
1822
1864
|
--_nys-button-color-text: var(--nys-color-theme, #154973);
|
|
1823
1865
|
--_nys-button-color-border: var(--nys-color-theme, #154973);
|
|
1824
1866
|
|
|
1867
|
+
/* Outline - Hover */
|
|
1825
1868
|
--_nys-button-color-bg-hover: var(--nys-color-theme-weaker, #eff6fb);
|
|
1826
1869
|
--_nys-button-color-text-hover: var(--nys-color-theme, #154973);
|
|
1827
1870
|
--_nys-button-color-border-hover: var(--nys-color-theme, #154973);
|
|
1828
1871
|
|
|
1872
|
+
/* Outline - Pressed/Active */
|
|
1829
1873
|
--_nys-button-color-bg-active: var(--nys-color-theme-weak, #cddde9);
|
|
1830
1874
|
--_nys-button-color-text-active: var(--nys-color-theme, #154973);
|
|
1831
1875
|
--_nys-button-color-border-active: var(--nys-color-theme, #154973);
|
|
1832
1876
|
|
|
1833
|
-
|
|
1834
|
-
--_nys-button-color-
|
|
1877
|
+
/* Outline - Disabled */
|
|
1878
|
+
--_nys-button-color-bg-disabled: var(--nys-color-surface, #ffffff);
|
|
1879
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #bec0c1);
|
|
1835
1880
|
--_nys-button-color-border-disabled: var(--nys-color-neutral-100, #d0d0ce);
|
|
1836
1881
|
}
|
|
1837
|
-
:host([variant="ghost"]) {
|
|
1838
|
-
--_nys-button-color-bg: var(--nys-color-transparent, #ffffff00);
|
|
1839
|
-
--_nys-button-color-text: var(--nys-color-ink, #000000);
|
|
1840
|
-
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
1841
|
-
|
|
1842
|
-
--_nys-button-color-bg-hover: var(
|
|
1843
|
-
--nys-color-black-transparent-100,
|
|
1844
|
-
#0000001a
|
|
1845
|
-
);
|
|
1846
|
-
--_nys-button-color-text-hover: var(--nys-color-ink, #000000);
|
|
1847
|
-
--_nys-button-color-border-hover: var(--nys-color-transparent, #ffffff00);
|
|
1848
1882
|
|
|
1849
|
-
|
|
1850
|
-
--nys-color-black-transparent-200,
|
|
1851
|
-
#00000033
|
|
1852
|
-
);
|
|
1853
|
-
--_nys-button-color-text-active: var(--nys-color-ink, #000000);
|
|
1854
|
-
--_nys-button-color-border-active: var(--nys-color-transparent, #ffffff00);
|
|
1855
|
-
|
|
1856
|
-
--_nys-button-color-bg-disabled: var(--nys-color-transparent, #ffffff00);
|
|
1857
|
-
--_nys-button-color-text-disabled: var(--nys-color-neutral-300, #a7a9ab);
|
|
1858
|
-
--_nys-button-color-border-disabled: var(
|
|
1859
|
-
--nys-color-transparent,
|
|
1860
|
-
#ffffff00
|
|
1861
|
-
);
|
|
1862
|
-
}
|
|
1883
|
+
/* Text */
|
|
1863
1884
|
:host([variant="text"]) {
|
|
1864
1885
|
--_nys-button-height: fit-content;
|
|
1865
1886
|
--_nys-button-radius: var(--nys-border-radius-md, 4px);
|
|
@@ -1868,109 +1889,196 @@ const k2 = L1`
|
|
|
1868
1889
|
--_nys-button-width-border: 0px;
|
|
1869
1890
|
--_nys-button-text-decoration: underline;
|
|
1870
1891
|
|
|
1892
|
+
/* Text - Default */
|
|
1871
1893
|
--_nys-button-color-bg: var(--nys-color-transparent, #ffffff00);
|
|
1872
1894
|
--_nys-button-color-text: var(--nys-color-link, #004dd1);
|
|
1873
1895
|
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
1874
1896
|
|
|
1897
|
+
/* Text - Hover */
|
|
1875
1898
|
--_nys-button-color-bg-hover: var(--nys-color-transparent, #ffffff00);
|
|
1876
1899
|
--_nys-button-color-text-hover: var(--nys-color-link-strong, #003ba1);
|
|
1877
1900
|
--_nys-button-color-border-hover: var(--nys-color-transparent, #ffffff00);
|
|
1878
1901
|
|
|
1902
|
+
/* Text - Pressed/Active */
|
|
1879
1903
|
--_nys-button-color-bg-active: var(--nys-color-transparent, #ffffff00);
|
|
1880
1904
|
--_nys-button-color-text-active: var(--nys-color-link-strongest, #002971);
|
|
1881
1905
|
--_nys-button-color-border-active: var(--nys-color-transparent, #ffffff00);
|
|
1882
1906
|
|
|
1907
|
+
/* Text - Disabled */
|
|
1883
1908
|
--_nys-button-color-bg-disabled: var(--nys-color-transparent, #ffffff00);
|
|
1884
|
-
--_nys-button-color-text-disabled: var(--nys-color-
|
|
1909
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #bec0c1);
|
|
1885
1910
|
--_nys-button-color-border-disabled: var(
|
|
1886
1911
|
--nys-color-transparent,
|
|
1887
1912
|
#ffffff00
|
|
1888
1913
|
);
|
|
1889
1914
|
}
|
|
1890
1915
|
|
|
1891
|
-
/*
|
|
1916
|
+
/* Ghost */
|
|
1917
|
+
:host([variant="ghost"]) {
|
|
1918
|
+
/* Ghost - Default */
|
|
1919
|
+
--_nys-button-color-bg: var(--nys-color-transparent, #ffffff00);
|
|
1920
|
+
--_nys-button-color-text: var(--nys-color-text, #1b1b1b);
|
|
1921
|
+
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
1922
|
+
|
|
1923
|
+
/* Ghost - Hover */
|
|
1924
|
+
--_nys-button-color-bg-hover: var(
|
|
1925
|
+
--nys-color-black-transparent-100,
|
|
1926
|
+
#0000001a
|
|
1927
|
+
);
|
|
1928
|
+
--_nys-button-color-text-hover: var(--nys-color-text, #1b1b1b);
|
|
1929
|
+
--_nys-button-color-border-hover: var(--nys-color-transparent, #ffffff00);
|
|
1930
|
+
|
|
1931
|
+
/* Ghost - Active */
|
|
1932
|
+
--_nys-button-color-bg-active: var(
|
|
1933
|
+
--nys-color-black-transparent-200,
|
|
1934
|
+
#00000033
|
|
1935
|
+
);
|
|
1936
|
+
--_nys-button-color-text-active: var(--nys-color-text, #1b1b1b);
|
|
1937
|
+
--_nys-button-color-border-active: var(--nys-color-transparent, #ffffff00);
|
|
1938
|
+
|
|
1939
|
+
/* Ghost - Disabled */
|
|
1940
|
+
--_nys-button-color-bg-disabled: var(--nys-color-transparent, #ffffff00);
|
|
1941
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #bec0c1);
|
|
1942
|
+
--_nys-button-color-border-disabled: var(
|
|
1943
|
+
--nys-color-transparent,
|
|
1944
|
+
#ffffff00
|
|
1945
|
+
);
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
/* INVERTED VARIANTS */
|
|
1949
|
+
|
|
1950
|
+
/* Filled Inverted */
|
|
1892
1951
|
:host([variant="filled"][inverted]) {
|
|
1893
|
-
|
|
1894
|
-
--_nys-button-color-
|
|
1895
|
-
--_nys-button-color-
|
|
1952
|
+
/* Filled Inverted - Default */
|
|
1953
|
+
--_nys-button-color-bg: var(--nys-color-surface, #ffffff);
|
|
1954
|
+
--_nys-button-color-text: var(--nys-color-text, #1b1b1b);
|
|
1955
|
+
--_nys-button-color-border-disabled: var(
|
|
1956
|
+
--nys-color-transparent,
|
|
1957
|
+
#ffffff00
|
|
1958
|
+
);
|
|
1896
1959
|
|
|
1960
|
+
/* Filled Inverted - Hover */
|
|
1897
1961
|
--_nys-button-color-bg-hover: var(--nys-color-neutral-100, #d0d0ce);
|
|
1898
|
-
--_nys-button-color-text-hover: var(--nys-color-
|
|
1899
|
-
--_nys-button-color-border-
|
|
1962
|
+
--_nys-button-color-text-hover: var(--nys-color-text, #1b1b1b);
|
|
1963
|
+
--_nys-button-color-border-disabled: var(
|
|
1964
|
+
--nys-color-transparent,
|
|
1965
|
+
#ffffff00
|
|
1966
|
+
);
|
|
1900
1967
|
|
|
1968
|
+
/* Filled Inverted - Pressed/Active */
|
|
1901
1969
|
--_nys-button-color-bg-active: var(--nys-color-neutral-300, #a7a9ab);
|
|
1902
|
-
--_nys-button-color-text-active: var(--nys-color-
|
|
1903
|
-
--_nys-button-color-border-
|
|
1970
|
+
--_nys-button-color-text-active: var(--nys-color-text, #1b1b1b);
|
|
1971
|
+
--_nys-button-color-border-disabled: var(
|
|
1972
|
+
--nys-color-transparent,
|
|
1973
|
+
#ffffff00
|
|
1974
|
+
);
|
|
1904
1975
|
|
|
1905
|
-
|
|
1906
|
-
--_nys-button-color-
|
|
1907
|
-
--_nys-button-color-
|
|
1976
|
+
/* Filled Inverted - Disabled */
|
|
1977
|
+
--_nys-button-color-bg-disabled: var(--nys-color-text, #1b1b1b);
|
|
1978
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #62666a);
|
|
1979
|
+
--_nys-button-color-border-disabled: var(
|
|
1980
|
+
--nys-color-transparent,
|
|
1981
|
+
#ffffff00
|
|
1982
|
+
);
|
|
1908
1983
|
}
|
|
1984
|
+
|
|
1985
|
+
/* Outline Inverted */
|
|
1909
1986
|
:host([variant="outline"][inverted]) {
|
|
1910
|
-
|
|
1911
|
-
--_nys-button-color-
|
|
1987
|
+
/* Outline Inverted - Default */
|
|
1988
|
+
--_nys-button-color-bg: var(--nys-color-surface-reverse, #1b1b1b);
|
|
1989
|
+
--_nys-button-color-text: var(--nys-color-text-reverse, #ffffff);
|
|
1912
1990
|
--_nys-button-color-border: var(--nys-color-ink-reverse, #ffffff);
|
|
1913
1991
|
|
|
1914
|
-
|
|
1915
|
-
--_nys-button-color-
|
|
1992
|
+
/* Outline Inverted - Hover */
|
|
1993
|
+
--_nys-button-color-bg-hover: var(--nys-color-surface-reverse, #1b1b1b);
|
|
1994
|
+
--_nys-button-color-text-hover: var(--nys-color-text-reverse-weak, #d0d0ce);
|
|
1916
1995
|
--_nys-button-color-border-hover: var(--nys-color-neutral-100, #d0d0ce);
|
|
1917
1996
|
|
|
1918
|
-
|
|
1919
|
-
--_nys-button-color-
|
|
1997
|
+
/* Outline Inverted - Pressed/Active */
|
|
1998
|
+
--_nys-button-color-bg-active: var(--nys-color-surface-reverse, #1b1b1b);
|
|
1999
|
+
--_nys-button-color-text-active: var(
|
|
2000
|
+
--nys-color-text-reverse-weaker,
|
|
2001
|
+
#bec0c1
|
|
2002
|
+
);
|
|
1920
2003
|
--_nys-button-color-border-active: var(--nys-color-neutral-300, #a7a9ab);
|
|
1921
2004
|
|
|
1922
|
-
|
|
1923
|
-
--_nys-button-color-
|
|
2005
|
+
/* Outline Inverted - Disabled */
|
|
2006
|
+
--_nys-button-color-bg-disabled: var(--nys-color-surface-reverse, #1b1b1b);
|
|
2007
|
+
--_nys-button-color-text-disabled: var(
|
|
2008
|
+
--nys-color-text-reverse-disabled,
|
|
2009
|
+
#62666a
|
|
2010
|
+
);
|
|
1924
2011
|
--_nys-button-color-border-disabled: var(--nys-color-neutral-600, #62666a);
|
|
1925
2012
|
}
|
|
1926
|
-
|
|
2013
|
+
|
|
2014
|
+
/* Text Inverted */
|
|
2015
|
+
:host([variant="text"][inverted]) {
|
|
2016
|
+
--_nys-button-height: fit-content;
|
|
2017
|
+
--_nys-button-radius: var(--nys-border-radius-md, 4px);
|
|
2018
|
+
--_nys-button-padding-y: var(--nys-space-2px, 2px);
|
|
2019
|
+
--_nys-button-padding-x: var(--nys-space-50, 4px);
|
|
2020
|
+
--_nys-button-width-border: 0px;
|
|
2021
|
+
--_nys-button-text-decoration: underline;
|
|
2022
|
+
|
|
2023
|
+
/* Text Inverted - Default */
|
|
1927
2024
|
--_nys-button-color-bg: var(--nys-color-transparent, #ffffff00);
|
|
1928
|
-
--_nys-button-color-text: var(--nys-color-
|
|
2025
|
+
--_nys-button-color-text: var(--nys-color-link-reverse, #a7a9ab);
|
|
1929
2026
|
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
1930
2027
|
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
2028
|
+
/* Text Inverted - Hover */
|
|
2029
|
+
--_nys-button-color-bg-hover: var(--nys-color-transparent, #ffffff00);
|
|
2030
|
+
--_nys-button-color-text-hover: var(
|
|
2031
|
+
--nys-color-link-reverse-strong,
|
|
2032
|
+
#ededed
|
|
1934
2033
|
);
|
|
1935
|
-
--_nys-button-color-text-hover: var(--nys-color-ink-reverse, #ffffff);
|
|
1936
2034
|
--_nys-button-color-border-hover: var(--nys-color-transparent, #ffffff00);
|
|
1937
2035
|
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
2036
|
+
/* Text Inverted - Pressed/Active */
|
|
2037
|
+
--_nys-button-color-bg-active: var(--nys-color-transparent, #ffffff00);
|
|
2038
|
+
--_nys-button-color-text-active: var(
|
|
2039
|
+
--nys-color-reverse-strongest,
|
|
2040
|
+
#ffffff
|
|
1941
2041
|
);
|
|
1942
|
-
--_nys-button-color-text-active: var(--nys-color-ink-reverse, #ffffff);
|
|
1943
2042
|
--_nys-button-color-border-active: var(--nys-color-transparent, #ffffff00);
|
|
1944
2043
|
|
|
2044
|
+
/* Text Inverted - Disabled */
|
|
1945
2045
|
--_nys-button-color-bg-disabled: var(--nys-color-transparent, #ffffff00);
|
|
1946
|
-
--_nys-button-color-text-disabled: var(
|
|
2046
|
+
--_nys-button-color-text-disabled: var(
|
|
2047
|
+
--nys-color-text-reverse-disabled,
|
|
2048
|
+
#62666a
|
|
2049
|
+
);
|
|
1947
2050
|
--_nys-button-color-border-disabled: var(
|
|
1948
2051
|
--nys-color-transparent,
|
|
1949
2052
|
#ffffff00
|
|
1950
2053
|
);
|
|
1951
2054
|
}
|
|
1952
|
-
:host([variant="text"][inverted]) {
|
|
1953
|
-
--_nys-button-height: fit-content;
|
|
1954
|
-
--_nys-button-radius: var(--nys-border-radius-md, 4px);
|
|
1955
|
-
--_nys-button-padding-y: var(--nys-space-2px, 2px);
|
|
1956
|
-
--_nys-button-padding-x: var(--nys-space-50, 4px);
|
|
1957
|
-
--_nys-button-width-border: 0px;
|
|
1958
|
-
--_nys-button-text-decoration: underline;
|
|
1959
2055
|
|
|
2056
|
+
/* Ghost Inverted */
|
|
2057
|
+
:host([variant="ghost"][inverted]) {
|
|
2058
|
+
/* Ghost Inverted - Default */
|
|
1960
2059
|
--_nys-button-color-bg: var(--nys-color-transparent, #ffffff00);
|
|
1961
|
-
--_nys-button-color-text: var(--nys-color-
|
|
2060
|
+
--_nys-button-color-text: var(--nys-color-text-reverse, #ffffff);
|
|
1962
2061
|
--_nys-button-color-border: var(--nys-color-transparent, #ffffff00);
|
|
1963
2062
|
|
|
1964
|
-
|
|
1965
|
-
--_nys-button-color-
|
|
2063
|
+
/* Ghost Inverted - Hover */
|
|
2064
|
+
--_nys-button-color-bg-hover: var(
|
|
2065
|
+
--nys-color-white-transparent-100,
|
|
2066
|
+
#ffffff1a
|
|
2067
|
+
);
|
|
2068
|
+
--_nys-button-color-text-hover: var(--nys-color-text-reverse, #ffffff);
|
|
1966
2069
|
--_nys-button-color-border-hover: var(--nys-color-transparent, #ffffff00);
|
|
1967
2070
|
|
|
1968
|
-
|
|
1969
|
-
--_nys-button-color-
|
|
2071
|
+
/* Ghost Inverted - Pressed/Active */
|
|
2072
|
+
--_nys-button-color-bg-active: var(
|
|
2073
|
+
--nys-color-white-transparent-200,
|
|
2074
|
+
#ffffff33
|
|
2075
|
+
);
|
|
2076
|
+
--_nys-button-color-text-active: var(--nys-color-text-reverse, #ffffff);
|
|
1970
2077
|
--_nys-button-color-border-active: var(--nys-color-transparent, #ffffff00);
|
|
1971
2078
|
|
|
2079
|
+
/* Ghost Inverted - Disabled */
|
|
1972
2080
|
--_nys-button-color-bg-disabled: var(--nys-color-transparent, #ffffff00);
|
|
1973
|
-
--_nys-button-color-text-disabled: var(--nys-color-
|
|
2081
|
+
--_nys-button-color-text-disabled: var(--nys-color-text-disabled, #62666a);
|
|
1974
2082
|
--_nys-button-color-border-disabled: var(
|
|
1975
2083
|
--nys-color-transparent,
|
|
1976
2084
|
#ffffff00
|
|
@@ -2059,7 +2167,7 @@ const k2 = L1`
|
|
|
2059
2167
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
2060
2168
|
* ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
|
|
2061
2169
|
*
|
|
2062
|
-
* Icon Component v1.1.
|
|
2170
|
+
* Icon Component v1.1.1
|
|
2063
2171
|
* Part of the New York State Design System
|
|
2064
2172
|
* Repository: https://github.com/its-hcd/nysds
|
|
2065
2173
|
* License: MIT
|
|
@@ -2069,86 +2177,86 @@ const k2 = L1`
|
|
|
2069
2177
|
* Copyright 2019 Google LLC
|
|
2070
2178
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2071
2179
|
*/
|
|
2072
|
-
const
|
|
2073
|
-
let
|
|
2074
|
-
constructor(
|
|
2180
|
+
const p1 = globalThis, R1 = p1.ShadowRoot && (p1.ShadyCSS === void 0 || p1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, U5 = Symbol(), h5 = /* @__PURE__ */ new WeakMap();
|
|
2181
|
+
let O2 = class {
|
|
2182
|
+
constructor(r, t, e) {
|
|
2075
2183
|
if (this._$cssResult$ = !0, e !== U5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
2076
|
-
this.cssText =
|
|
2184
|
+
this.cssText = r, this.t = t;
|
|
2077
2185
|
}
|
|
2078
2186
|
get styleSheet() {
|
|
2079
|
-
let
|
|
2187
|
+
let r = this.o;
|
|
2080
2188
|
const t = this.t;
|
|
2081
|
-
if (
|
|
2189
|
+
if (R1 && r === void 0) {
|
|
2082
2190
|
const e = t !== void 0 && t.length === 1;
|
|
2083
|
-
e && (
|
|
2191
|
+
e && (r = h5.get(t)), r === void 0 && ((this.o = r = new CSSStyleSheet()).replaceSync(this.cssText), e && h5.set(t, r));
|
|
2084
2192
|
}
|
|
2085
|
-
return
|
|
2193
|
+
return r;
|
|
2086
2194
|
}
|
|
2087
2195
|
toString() {
|
|
2088
2196
|
return this.cssText;
|
|
2089
2197
|
}
|
|
2090
2198
|
};
|
|
2091
|
-
const
|
|
2092
|
-
if (
|
|
2199
|
+
const k2 = (r) => new O2(typeof r == "string" ? r : r + "", void 0, U5), B2 = (r, t) => {
|
|
2200
|
+
if (R1) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
2093
2201
|
else for (const e of t) {
|
|
2094
|
-
const o = document.createElement("style"),
|
|
2095
|
-
|
|
2202
|
+
const o = document.createElement("style"), s = p1.litNonce;
|
|
2203
|
+
s !== void 0 && o.setAttribute("nonce", s), o.textContent = e.cssText, r.appendChild(o);
|
|
2096
2204
|
}
|
|
2097
|
-
}, d5 =
|
|
2205
|
+
}, d5 = R1 ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
2098
2206
|
let e = "";
|
|
2099
2207
|
for (const o of t.cssRules) e += o.cssText;
|
|
2100
|
-
return
|
|
2101
|
-
})(
|
|
2208
|
+
return k2(e);
|
|
2209
|
+
})(r) : r;
|
|
2102
2210
|
/**
|
|
2103
2211
|
* @license
|
|
2104
2212
|
* Copyright 2017 Google LLC
|
|
2105
2213
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2106
2214
|
*/
|
|
2107
|
-
const { is: T2, defineProperty:
|
|
2215
|
+
const { is: T2, defineProperty: I2, getOwnPropertyDescriptor: N2, getOwnPropertyNames: R2, getOwnPropertySymbols: D2, getPrototypeOf: j2 } = Object, N = globalThis, v5 = N.trustedTypes, q2 = v5 ? v5.emptyScript : "", p5 = N.reactiveElementPolyfillSupport, n1 = (r, t) => r, _1 = { toAttribute(r, t) {
|
|
2108
2216
|
switch (t) {
|
|
2109
2217
|
case Boolean:
|
|
2110
|
-
|
|
2218
|
+
r = r ? q2 : null;
|
|
2111
2219
|
break;
|
|
2112
2220
|
case Object:
|
|
2113
2221
|
case Array:
|
|
2114
|
-
|
|
2222
|
+
r = r == null ? r : JSON.stringify(r);
|
|
2115
2223
|
}
|
|
2116
|
-
return
|
|
2117
|
-
}, fromAttribute(
|
|
2118
|
-
let e =
|
|
2224
|
+
return r;
|
|
2225
|
+
}, fromAttribute(r, t) {
|
|
2226
|
+
let e = r;
|
|
2119
2227
|
switch (t) {
|
|
2120
2228
|
case Boolean:
|
|
2121
|
-
e =
|
|
2229
|
+
e = r !== null;
|
|
2122
2230
|
break;
|
|
2123
2231
|
case Number:
|
|
2124
|
-
e =
|
|
2232
|
+
e = r === null ? null : Number(r);
|
|
2125
2233
|
break;
|
|
2126
2234
|
case Object:
|
|
2127
2235
|
case Array:
|
|
2128
2236
|
try {
|
|
2129
|
-
e = JSON.parse(
|
|
2237
|
+
e = JSON.parse(r);
|
|
2130
2238
|
} catch {
|
|
2131
2239
|
e = null;
|
|
2132
2240
|
}
|
|
2133
2241
|
}
|
|
2134
2242
|
return e;
|
|
2135
|
-
} },
|
|
2136
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
2243
|
+
} }, D1 = (r, t) => !T2(r, t), f5 = { attribute: !0, type: String, converter: _1, reflect: !1, hasChanged: D1 };
|
|
2244
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), N.litPropertyMetadata ?? (N.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
2137
2245
|
let X = class extends HTMLElement {
|
|
2138
|
-
static addInitializer(
|
|
2139
|
-
this._$Ei(), (this.l ?? (this.l = [])).push(
|
|
2246
|
+
static addInitializer(r) {
|
|
2247
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(r);
|
|
2140
2248
|
}
|
|
2141
2249
|
static get observedAttributes() {
|
|
2142
2250
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
2143
2251
|
}
|
|
2144
|
-
static createProperty(
|
|
2145
|
-
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(
|
|
2146
|
-
const e = Symbol(), o = this.getPropertyDescriptor(
|
|
2147
|
-
o !== void 0 &&
|
|
2252
|
+
static createProperty(r, t = f5) {
|
|
2253
|
+
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(r, t), !t.noAccessor) {
|
|
2254
|
+
const e = Symbol(), o = this.getPropertyDescriptor(r, e, t);
|
|
2255
|
+
o !== void 0 && I2(this.prototype, r, o);
|
|
2148
2256
|
}
|
|
2149
2257
|
}
|
|
2150
|
-
static getPropertyDescriptor(
|
|
2151
|
-
const { get: o, set:
|
|
2258
|
+
static getPropertyDescriptor(r, t, e) {
|
|
2259
|
+
const { get: o, set: s } = N2(this.prototype, r) ?? { get() {
|
|
2152
2260
|
return this[t];
|
|
2153
2261
|
}, set(n) {
|
|
2154
2262
|
this[t] = n;
|
|
@@ -2157,26 +2265,26 @@ let X = class extends HTMLElement {
|
|
|
2157
2265
|
return o == null ? void 0 : o.call(this);
|
|
2158
2266
|
}, set(n) {
|
|
2159
2267
|
const i = o == null ? void 0 : o.call(this);
|
|
2160
|
-
|
|
2268
|
+
s.call(this, n), this.requestUpdate(r, i, e);
|
|
2161
2269
|
}, configurable: !0, enumerable: !0 };
|
|
2162
2270
|
}
|
|
2163
|
-
static getPropertyOptions(
|
|
2164
|
-
return this.elementProperties.get(
|
|
2271
|
+
static getPropertyOptions(r) {
|
|
2272
|
+
return this.elementProperties.get(r) ?? f5;
|
|
2165
2273
|
}
|
|
2166
2274
|
static _$Ei() {
|
|
2167
2275
|
if (this.hasOwnProperty(n1("elementProperties"))) return;
|
|
2168
|
-
const
|
|
2169
|
-
|
|
2276
|
+
const r = j2(this);
|
|
2277
|
+
r.finalize(), r.l !== void 0 && (this.l = [...r.l]), this.elementProperties = new Map(r.elementProperties);
|
|
2170
2278
|
}
|
|
2171
2279
|
static finalize() {
|
|
2172
2280
|
if (this.hasOwnProperty(n1("finalized"))) return;
|
|
2173
2281
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(n1("properties"))) {
|
|
2174
|
-
const t = this.properties, e = [...
|
|
2282
|
+
const t = this.properties, e = [...R2(t), ...D2(t)];
|
|
2175
2283
|
for (const o of e) this.createProperty(o, t[o]);
|
|
2176
2284
|
}
|
|
2177
|
-
const
|
|
2178
|
-
if (
|
|
2179
|
-
const t = litPropertyMetadata.get(
|
|
2285
|
+
const r = this[Symbol.metadata];
|
|
2286
|
+
if (r !== null) {
|
|
2287
|
+
const t = litPropertyMetadata.get(r);
|
|
2180
2288
|
if (t !== void 0) for (const [e, o] of t) this.elementProperties.set(e, o);
|
|
2181
2289
|
}
|
|
2182
2290
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
@@ -2186,86 +2294,86 @@ let X = class extends HTMLElement {
|
|
|
2186
2294
|
}
|
|
2187
2295
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
2188
2296
|
}
|
|
2189
|
-
static finalizeStyles(
|
|
2297
|
+
static finalizeStyles(r) {
|
|
2190
2298
|
const t = [];
|
|
2191
|
-
if (Array.isArray(
|
|
2192
|
-
const e = new Set(
|
|
2299
|
+
if (Array.isArray(r)) {
|
|
2300
|
+
const e = new Set(r.flat(1 / 0).reverse());
|
|
2193
2301
|
for (const o of e) t.unshift(d5(o));
|
|
2194
|
-
} else
|
|
2302
|
+
} else r !== void 0 && t.push(d5(r));
|
|
2195
2303
|
return t;
|
|
2196
2304
|
}
|
|
2197
|
-
static _$Eu(
|
|
2305
|
+
static _$Eu(r, t) {
|
|
2198
2306
|
const e = t.attribute;
|
|
2199
|
-
return e === !1 ? void 0 : typeof e == "string" ? e : typeof
|
|
2307
|
+
return e === !1 ? void 0 : typeof e == "string" ? e : typeof r == "string" ? r.toLowerCase() : void 0;
|
|
2200
2308
|
}
|
|
2201
2309
|
constructor() {
|
|
2202
2310
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
2203
2311
|
}
|
|
2204
2312
|
_$Ev() {
|
|
2205
|
-
var
|
|
2206
|
-
this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (
|
|
2313
|
+
var r;
|
|
2314
|
+
this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (r = this.constructor.l) == null || r.forEach((t) => t(this));
|
|
2207
2315
|
}
|
|
2208
|
-
addController(
|
|
2316
|
+
addController(r) {
|
|
2209
2317
|
var t;
|
|
2210
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(
|
|
2318
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(r), this.renderRoot !== void 0 && this.isConnected && ((t = r.hostConnected) == null || t.call(r));
|
|
2211
2319
|
}
|
|
2212
|
-
removeController(
|
|
2320
|
+
removeController(r) {
|
|
2213
2321
|
var t;
|
|
2214
|
-
(t = this._$EO) == null || t.delete(
|
|
2322
|
+
(t = this._$EO) == null || t.delete(r);
|
|
2215
2323
|
}
|
|
2216
2324
|
_$E_() {
|
|
2217
|
-
const
|
|
2218
|
-
for (const e of t.keys()) this.hasOwnProperty(e) && (
|
|
2219
|
-
|
|
2325
|
+
const r = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
|
|
2326
|
+
for (const e of t.keys()) this.hasOwnProperty(e) && (r.set(e, this[e]), delete this[e]);
|
|
2327
|
+
r.size > 0 && (this._$Ep = r);
|
|
2220
2328
|
}
|
|
2221
2329
|
createRenderRoot() {
|
|
2222
|
-
const
|
|
2223
|
-
return
|
|
2330
|
+
const r = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
2331
|
+
return B2(r, this.constructor.elementStyles), r;
|
|
2224
2332
|
}
|
|
2225
2333
|
connectedCallback() {
|
|
2226
|
-
var
|
|
2227
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (
|
|
2334
|
+
var r;
|
|
2335
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (r = this._$EO) == null || r.forEach((t) => {
|
|
2228
2336
|
var e;
|
|
2229
2337
|
return (e = t.hostConnected) == null ? void 0 : e.call(t);
|
|
2230
2338
|
});
|
|
2231
2339
|
}
|
|
2232
|
-
enableUpdating(
|
|
2340
|
+
enableUpdating(r) {
|
|
2233
2341
|
}
|
|
2234
2342
|
disconnectedCallback() {
|
|
2235
|
-
var
|
|
2236
|
-
(
|
|
2343
|
+
var r;
|
|
2344
|
+
(r = this._$EO) == null || r.forEach((t) => {
|
|
2237
2345
|
var e;
|
|
2238
2346
|
return (e = t.hostDisconnected) == null ? void 0 : e.call(t);
|
|
2239
2347
|
});
|
|
2240
2348
|
}
|
|
2241
|
-
attributeChangedCallback(
|
|
2242
|
-
this._$AK(
|
|
2349
|
+
attributeChangedCallback(r, t, e) {
|
|
2350
|
+
this._$AK(r, e);
|
|
2243
2351
|
}
|
|
2244
|
-
_$EC(
|
|
2352
|
+
_$EC(r, t) {
|
|
2245
2353
|
var e;
|
|
2246
|
-
const o = this.constructor.elementProperties.get(
|
|
2247
|
-
if (
|
|
2354
|
+
const o = this.constructor.elementProperties.get(r), s = this.constructor._$Eu(r, o);
|
|
2355
|
+
if (s !== void 0 && o.reflect === !0) {
|
|
2248
2356
|
const n = (((e = o.converter) == null ? void 0 : e.toAttribute) !== void 0 ? o.converter : _1).toAttribute(t, o.type);
|
|
2249
|
-
this._$Em =
|
|
2357
|
+
this._$Em = r, n == null ? this.removeAttribute(s) : this.setAttribute(s, n), this._$Em = null;
|
|
2250
2358
|
}
|
|
2251
2359
|
}
|
|
2252
|
-
_$AK(
|
|
2360
|
+
_$AK(r, t) {
|
|
2253
2361
|
var e;
|
|
2254
|
-
const o = this.constructor,
|
|
2255
|
-
if (
|
|
2256
|
-
const n = o.getPropertyOptions(
|
|
2257
|
-
this._$Em =
|
|
2362
|
+
const o = this.constructor, s = o._$Eh.get(r);
|
|
2363
|
+
if (s !== void 0 && this._$Em !== s) {
|
|
2364
|
+
const n = o.getPropertyOptions(s), i = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((e = n.converter) == null ? void 0 : e.fromAttribute) !== void 0 ? n.converter : _1;
|
|
2365
|
+
this._$Em = s, this[s] = i.fromAttribute(t, n.type), this._$Em = null;
|
|
2258
2366
|
}
|
|
2259
2367
|
}
|
|
2260
|
-
requestUpdate(
|
|
2261
|
-
if (
|
|
2262
|
-
if (e ?? (e = this.constructor.getPropertyOptions(
|
|
2263
|
-
this.P(
|
|
2368
|
+
requestUpdate(r, t, e) {
|
|
2369
|
+
if (r !== void 0) {
|
|
2370
|
+
if (e ?? (e = this.constructor.getPropertyOptions(r)), !(e.hasChanged ?? D1)(this[r], t)) return;
|
|
2371
|
+
this.P(r, t, e);
|
|
2264
2372
|
}
|
|
2265
2373
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
2266
2374
|
}
|
|
2267
|
-
P(
|
|
2268
|
-
this._$AL.has(
|
|
2375
|
+
P(r, t, e) {
|
|
2376
|
+
this._$AL.has(r) || this._$AL.set(r, t), e.reflect === !0 && this._$Em !== r && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(r);
|
|
2269
2377
|
}
|
|
2270
2378
|
async _$ET() {
|
|
2271
2379
|
this.isUpdatePending = !0;
|
|
@@ -2274,43 +2382,43 @@ let X = class extends HTMLElement {
|
|
|
2274
2382
|
} catch (t) {
|
|
2275
2383
|
Promise.reject(t);
|
|
2276
2384
|
}
|
|
2277
|
-
const
|
|
2278
|
-
return
|
|
2385
|
+
const r = this.scheduleUpdate();
|
|
2386
|
+
return r != null && await r, !this.isUpdatePending;
|
|
2279
2387
|
}
|
|
2280
2388
|
scheduleUpdate() {
|
|
2281
2389
|
return this.performUpdate();
|
|
2282
2390
|
}
|
|
2283
2391
|
performUpdate() {
|
|
2284
|
-
var
|
|
2392
|
+
var r;
|
|
2285
2393
|
if (!this.isUpdatePending) return;
|
|
2286
2394
|
if (!this.hasUpdated) {
|
|
2287
2395
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
2288
|
-
for (const [
|
|
2396
|
+
for (const [s, n] of this._$Ep) this[s] = n;
|
|
2289
2397
|
this._$Ep = void 0;
|
|
2290
2398
|
}
|
|
2291
2399
|
const o = this.constructor.elementProperties;
|
|
2292
|
-
if (o.size > 0) for (const [
|
|
2400
|
+
if (o.size > 0) for (const [s, n] of o) n.wrapped !== !0 || this._$AL.has(s) || this[s] === void 0 || this.P(s, this[s], n);
|
|
2293
2401
|
}
|
|
2294
2402
|
let t = !1;
|
|
2295
2403
|
const e = this._$AL;
|
|
2296
2404
|
try {
|
|
2297
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (
|
|
2298
|
-
var
|
|
2299
|
-
return (
|
|
2405
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (r = this._$EO) == null || r.forEach((o) => {
|
|
2406
|
+
var s;
|
|
2407
|
+
return (s = o.hostUpdate) == null ? void 0 : s.call(o);
|
|
2300
2408
|
}), this.update(e)) : this._$EU();
|
|
2301
2409
|
} catch (o) {
|
|
2302
2410
|
throw t = !1, this._$EU(), o;
|
|
2303
2411
|
}
|
|
2304
2412
|
t && this._$AE(e);
|
|
2305
2413
|
}
|
|
2306
|
-
willUpdate(
|
|
2414
|
+
willUpdate(r) {
|
|
2307
2415
|
}
|
|
2308
|
-
_$AE(
|
|
2416
|
+
_$AE(r) {
|
|
2309
2417
|
var t;
|
|
2310
2418
|
(t = this._$EO) == null || t.forEach((e) => {
|
|
2311
2419
|
var o;
|
|
2312
2420
|
return (o = e.hostUpdated) == null ? void 0 : o.call(e);
|
|
2313
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(
|
|
2421
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(r)), this.updated(r);
|
|
2314
2422
|
}
|
|
2315
2423
|
_$EU() {
|
|
2316
2424
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
@@ -2321,51 +2429,51 @@ let X = class extends HTMLElement {
|
|
|
2321
2429
|
getUpdateComplete() {
|
|
2322
2430
|
return this._$ES;
|
|
2323
2431
|
}
|
|
2324
|
-
shouldUpdate(
|
|
2432
|
+
shouldUpdate(r) {
|
|
2325
2433
|
return !0;
|
|
2326
2434
|
}
|
|
2327
|
-
update(
|
|
2435
|
+
update(r) {
|
|
2328
2436
|
this._$Ej && (this._$Ej = this._$Ej.forEach((t) => this._$EC(t, this[t]))), this._$EU();
|
|
2329
2437
|
}
|
|
2330
|
-
updated(
|
|
2438
|
+
updated(r) {
|
|
2331
2439
|
}
|
|
2332
|
-
firstUpdated(
|
|
2440
|
+
firstUpdated(r) {
|
|
2333
2441
|
}
|
|
2334
2442
|
};
|
|
2335
|
-
X.elementStyles = [], X.shadowRootOptions = { mode: "open" }, X[n1("elementProperties")] = /* @__PURE__ */ new Map(), X[n1("finalized")] = /* @__PURE__ */ new Map(),
|
|
2443
|
+
X.elementStyles = [], X.shadowRootOptions = { mode: "open" }, X[n1("elementProperties")] = /* @__PURE__ */ new Map(), X[n1("finalized")] = /* @__PURE__ */ new Map(), p5 == null || p5({ ReactiveElement: X }), (N.reactiveElementVersions ?? (N.reactiveElementVersions = [])).push("2.0.4");
|
|
2336
2444
|
/**
|
|
2337
2445
|
* @license
|
|
2338
2446
|
* Copyright 2017 Google LLC
|
|
2339
2447
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2340
2448
|
*/
|
|
2341
|
-
const
|
|
2342
|
-
const { kind: o, metadata:
|
|
2343
|
-
let n = globalThis.litPropertyMetadata.get(
|
|
2344
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(
|
|
2449
|
+
const F2 = { attribute: !0, type: String, converter: _1, reflect: !1, hasChanged: D1 }, W2 = (r = F2, t, e) => {
|
|
2450
|
+
const { kind: o, metadata: s } = e;
|
|
2451
|
+
let n = globalThis.litPropertyMetadata.get(s);
|
|
2452
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), o === "accessor") {
|
|
2345
2453
|
const { name: i } = e;
|
|
2346
2454
|
return { set(l) {
|
|
2347
2455
|
const C = t.get.call(this);
|
|
2348
|
-
t.set.call(this, l), this.requestUpdate(i, C,
|
|
2456
|
+
t.set.call(this, l), this.requestUpdate(i, C, r);
|
|
2349
2457
|
}, init(l) {
|
|
2350
|
-
return l !== void 0 && this.P(i, void 0,
|
|
2458
|
+
return l !== void 0 && this.P(i, void 0, r), l;
|
|
2351
2459
|
} };
|
|
2352
2460
|
}
|
|
2353
2461
|
if (o === "setter") {
|
|
2354
2462
|
const { name: i } = e;
|
|
2355
2463
|
return function(l) {
|
|
2356
2464
|
const C = this[i];
|
|
2357
|
-
t.call(this, l), this.requestUpdate(i, C,
|
|
2465
|
+
t.call(this, l), this.requestUpdate(i, C, r);
|
|
2358
2466
|
};
|
|
2359
2467
|
}
|
|
2360
2468
|
throw Error("Unsupported decorator location: " + o);
|
|
2361
2469
|
};
|
|
2362
|
-
function q(
|
|
2363
|
-
return (t, e) => typeof e == "object" ?
|
|
2364
|
-
const i =
|
|
2365
|
-
return
|
|
2366
|
-
})(
|
|
2470
|
+
function q(r) {
|
|
2471
|
+
return (t, e) => typeof e == "object" ? W2(r, t, e) : ((o, s, n) => {
|
|
2472
|
+
const i = s.hasOwnProperty(n);
|
|
2473
|
+
return s.constructor.createProperty(n, i ? { ...o, wrapped: !0 } : o), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
|
2474
|
+
})(r, t, e);
|
|
2367
2475
|
}
|
|
2368
|
-
const
|
|
2476
|
+
const G2 = {
|
|
2369
2477
|
// --------- UX Team Main Library (below) --------- //
|
|
2370
2478
|
// *** CORE *** //
|
|
2371
2479
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
@@ -2564,7 +2672,7 @@ const Y2 = {
|
|
|
2564
2672
|
lock_filled: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="23" viewBox="0 0 18 23" fill="none">
|
|
2565
2673
|
<path d="M3.30002 22.7751C2.43369 22.7751 1.69211 22.4667 1.07527 21.8498C0.458441 21.2328 0.150024 20.4913 0.150024 19.6251V10.2251C0.150024 9.35893 0.458441 8.61735 1.07527 8.00035C1.69211 7.38351 2.43369 7.0751 3.30002 7.0751H3.62502V5.8001C3.62502 4.28343 4.14586 2.99593 5.18752 1.9376C6.22919 0.879264 7.50002 0.350098 9.00002 0.350098C10.5 0.350098 11.7709 0.879264 12.8125 1.9376C13.8542 2.99593 14.375 4.28343 14.375 5.8001V7.0751H14.7C15.5662 7.0751 16.3078 7.38351 16.9248 8.00035C17.5416 8.61735 17.85 9.35893 17.85 10.2251V19.6251C17.85 20.4913 17.5416 21.2328 16.9248 21.8498C16.3078 22.4667 15.5662 22.7751 14.7 22.7751H3.30002ZM9.00002 16.9251C9.55002 16.9251 10.0209 16.7293 10.4125 16.3376C10.8042 15.9459 11 15.4751 11 14.9251C11 14.3751 10.8042 13.9043 10.4125 13.5126C10.0209 13.1209 9.55002 12.9251 9.00002 12.9251C8.45002 12.9251 7.97919 13.1209 7.58752 13.5126C7.19586 13.9043 7.00002 14.3751 7.00002 14.9251C7.00002 15.4751 7.19586 15.9459 7.58752 16.3376C7.97919 16.7293 8.45002 16.9251 9.00002 16.9251ZM6.77502 7.0751H11.225V5.8001C11.225 5.16126 11.0125 4.61818 10.5875 4.17085C10.1625 3.72368 9.63336 3.5001 9.00002 3.5001C8.36669 3.5001 7.83752 3.72368 7.41252 4.17085C6.98752 4.61818 6.77502 5.16126 6.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
2566
2674
|
</svg>`
|
|
2567
|
-
},
|
|
2675
|
+
}, K2 = L1`
|
|
2568
2676
|
:host {
|
|
2569
2677
|
display: inline-block;
|
|
2570
2678
|
--_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. */
|
|
@@ -2661,34 +2769,34 @@ const Y2 = {
|
|
|
2661
2769
|
transform: scale(-1, -1);
|
|
2662
2770
|
}
|
|
2663
2771
|
`;
|
|
2664
|
-
var
|
|
2665
|
-
for (var
|
|
2666
|
-
(i =
|
|
2667
|
-
return o &&
|
|
2772
|
+
var Y2 = Object.defineProperty, J2 = Object.getOwnPropertyDescriptor, F = (r, t, e, o) => {
|
|
2773
|
+
for (var s = o > 1 ? void 0 : o ? J2(t, e) : t, n = r.length - 1, i; n >= 0; n--)
|
|
2774
|
+
(i = r[n]) && (s = (o ? i(t, e, s) : i(s)) || s);
|
|
2775
|
+
return o && s && Y2(t, e, s), s;
|
|
2668
2776
|
}, Q;
|
|
2669
|
-
const
|
|
2777
|
+
const k = (Q = class extends x1 {
|
|
2670
2778
|
constructor() {
|
|
2671
2779
|
super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
2672
2780
|
}
|
|
2673
2781
|
get size() {
|
|
2674
2782
|
return this._size;
|
|
2675
2783
|
}
|
|
2676
|
-
set size(
|
|
2784
|
+
set size(r) {
|
|
2677
2785
|
this._size = Q.VALID_TYPES.includes(
|
|
2678
|
-
|
|
2679
|
-
) ?
|
|
2786
|
+
r
|
|
2787
|
+
) ? r : "sm";
|
|
2680
2788
|
}
|
|
2681
2789
|
getIcon() {
|
|
2682
|
-
const
|
|
2683
|
-
if (!
|
|
2684
|
-
const e = new DOMParser().parseFromString(
|
|
2790
|
+
const r = G2[this.name], t = !!this.label;
|
|
2791
|
+
if (!r) return null;
|
|
2792
|
+
const e = new DOMParser().parseFromString(r, "image/svg+xml").documentElement;
|
|
2685
2793
|
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;
|
|
2686
2794
|
}
|
|
2687
2795
|
render() {
|
|
2688
|
-
const
|
|
2689
|
-
return
|
|
2796
|
+
const r = this.getIcon();
|
|
2797
|
+
return r ? d`${r}` : null;
|
|
2690
2798
|
}
|
|
2691
|
-
}, Q.styles =
|
|
2799
|
+
}, Q.styles = K2, Q.VALID_TYPES = [
|
|
2692
2800
|
"2xs",
|
|
2693
2801
|
"xs",
|
|
2694
2802
|
"sm",
|
|
@@ -2705,53 +2813,53 @@ const B = (Q = class extends x1 {
|
|
|
2705
2813
|
"48",
|
|
2706
2814
|
"64"
|
|
2707
2815
|
], Q);
|
|
2708
|
-
|
|
2816
|
+
F([
|
|
2817
|
+
q({ type: String, reflect: !0 })
|
|
2818
|
+
], k.prototype, "name", 2);
|
|
2819
|
+
F([
|
|
2709
2820
|
q({ type: String })
|
|
2710
|
-
],
|
|
2711
|
-
|
|
2821
|
+
], k.prototype, "label", 2);
|
|
2822
|
+
F([
|
|
2712
2823
|
q({ type: String })
|
|
2713
|
-
],
|
|
2714
|
-
|
|
2824
|
+
], k.prototype, "rotate", 2);
|
|
2825
|
+
F([
|
|
2715
2826
|
q({ type: String })
|
|
2716
|
-
],
|
|
2717
|
-
|
|
2827
|
+
], k.prototype, "flip", 2);
|
|
2828
|
+
F([
|
|
2718
2829
|
q({ type: String })
|
|
2719
|
-
],
|
|
2720
|
-
|
|
2721
|
-
q({ type: String })
|
|
2722
|
-
], B.prototype, "color", 2);
|
|
2723
|
-
W([
|
|
2830
|
+
], k.prototype, "color", 2);
|
|
2831
|
+
F([
|
|
2724
2832
|
q({ reflect: !0 })
|
|
2725
|
-
],
|
|
2726
|
-
let X2 =
|
|
2833
|
+
], k.prototype, "size", 1);
|
|
2834
|
+
let X2 = k;
|
|
2727
2835
|
customElements.get("nys-icon") || customElements.define("nys-icon", X2);
|
|
2728
2836
|
/**
|
|
2729
2837
|
* @license
|
|
2730
2838
|
* Copyright 2017 Google LLC
|
|
2731
2839
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2732
2840
|
*/
|
|
2733
|
-
const b1 = globalThis, m1 = b1.trustedTypes,
|
|
2734
|
-
\f\r]`, t1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, y5 = /-->/g, g5 = />/g,
|
|
2735
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), w5 = /'/g, _5 = /"/g,
|
|
2736
|
-
function
|
|
2737
|
-
if (!
|
|
2738
|
-
return
|
|
2841
|
+
const b1 = globalThis, m1 = b1.trustedTypes, u5 = m1 ? m1.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, z5 = "$lit$", H = `lit$${Math.random().toFixed(9).slice(2)}$`, O5 = "?" + H, Q2 = `<${O5}>`, z = document, $1 = () => z.createComment(""), l1 = (r) => r === null || typeof r != "object" && typeof r != "function", j1 = Array.isArray, t7 = (r) => j1(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", P1 = `[
|
|
2842
|
+
\f\r]`, t1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, y5 = /-->/g, g5 = />/g, V = RegExp(`>|${P1}(?:([^\\s"'>=/]+)(${P1}*=${P1}*(?:[^
|
|
2843
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), w5 = /'/g, _5 = /"/g, k5 = /^(?:script|style|textarea|title)$/i, a1 = Symbol.for("lit-noChange"), f = Symbol.for("lit-nothing"), b5 = /* @__PURE__ */ new WeakMap(), P = z.createTreeWalker(z, 129);
|
|
2844
|
+
function B5(r, t) {
|
|
2845
|
+
if (!j1(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
2846
|
+
return u5 !== void 0 ? u5.createHTML(t) : t;
|
|
2739
2847
|
}
|
|
2740
|
-
const e7 = (
|
|
2741
|
-
const e =
|
|
2742
|
-
let
|
|
2848
|
+
const e7 = (r, t) => {
|
|
2849
|
+
const e = r.length - 1, o = [];
|
|
2850
|
+
let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = t1;
|
|
2743
2851
|
for (let l = 0; l < e; l++) {
|
|
2744
|
-
const C =
|
|
2745
|
-
let c, h, a = -1,
|
|
2746
|
-
for (;
|
|
2747
|
-
const
|
|
2748
|
-
n += i === t1 ? C + Q2 : a >= 0 ? (o.push(c), C.slice(0, a) +
|
|
2852
|
+
const C = r[l];
|
|
2853
|
+
let c, h, a = -1, v = 0;
|
|
2854
|
+
for (; v < C.length && (i.lastIndex = v, h = i.exec(C), h !== null); ) v = i.lastIndex, i === t1 ? h[1] === "!--" ? i = y5 : h[1] !== void 0 ? i = g5 : h[2] !== void 0 ? (k5.test(h[2]) && (s = RegExp("</" + h[2], "g")), i = V) : h[3] !== void 0 && (i = V) : i === V ? h[0] === ">" ? (i = s ?? t1, a = -1) : h[1] === void 0 ? a = -2 : (a = i.lastIndex - h[2].length, c = h[1], i = h[3] === void 0 ? V : h[3] === '"' ? _5 : w5) : i === _5 || i === w5 ? i = V : i === y5 || i === g5 ? i = t1 : (i = V, s = void 0);
|
|
2855
|
+
const u = i === V && r[l + 1].startsWith("/>") ? " " : "";
|
|
2856
|
+
n += i === t1 ? C + Q2 : a >= 0 ? (o.push(c), C.slice(0, a) + z5 + C.slice(a) + H + u) : C + H + (a === -2 ? l : u);
|
|
2749
2857
|
}
|
|
2750
|
-
return [
|
|
2858
|
+
return [B5(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
|
|
2751
2859
|
};
|
|
2752
2860
|
class c1 {
|
|
2753
2861
|
constructor({ strings: t, _$litType$: e }, o) {
|
|
2754
|
-
let
|
|
2862
|
+
let s;
|
|
2755
2863
|
this.parts = [];
|
|
2756
2864
|
let n = 0, i = 0;
|
|
2757
2865
|
const l = t.length - 1, C = this.parts, [c, h] = e7(t, e);
|
|
@@ -2759,39 +2867,39 @@ class c1 {
|
|
|
2759
2867
|
const a = this.el.content.firstChild;
|
|
2760
2868
|
a.replaceWith(...a.childNodes);
|
|
2761
2869
|
}
|
|
2762
|
-
for (; (
|
|
2763
|
-
if (
|
|
2764
|
-
if (
|
|
2765
|
-
const
|
|
2766
|
-
C.push({ type: 1, index: n, name: L[2], strings:
|
|
2767
|
-
} else a.startsWith(H) && (C.push({ type: 6, index: n }),
|
|
2768
|
-
if (
|
|
2769
|
-
const a =
|
|
2770
|
-
if (
|
|
2771
|
-
|
|
2772
|
-
for (let
|
|
2773
|
-
|
|
2870
|
+
for (; (s = P.nextNode()) !== null && C.length < l; ) {
|
|
2871
|
+
if (s.nodeType === 1) {
|
|
2872
|
+
if (s.hasAttributes()) for (const a of s.getAttributeNames()) if (a.endsWith(z5)) {
|
|
2873
|
+
const v = h[i++], u = s.getAttribute(a).split(H), L = /([.?@])?(.*)/.exec(v);
|
|
2874
|
+
C.push({ type: 1, index: n, name: L[2], strings: u, ctor: L[1] === "." ? r7 : L[1] === "?" ? s7 : L[1] === "@" ? n7 : Z1 }), s.removeAttribute(a);
|
|
2875
|
+
} else a.startsWith(H) && (C.push({ type: 6, index: n }), s.removeAttribute(a));
|
|
2876
|
+
if (k5.test(s.tagName)) {
|
|
2877
|
+
const a = s.textContent.split(H), v = a.length - 1;
|
|
2878
|
+
if (v > 0) {
|
|
2879
|
+
s.textContent = m1 ? m1.emptyScript : "";
|
|
2880
|
+
for (let u = 0; u < v; u++) s.append(a[u], $1()), P.nextNode(), C.push({ type: 2, index: ++n });
|
|
2881
|
+
s.append(a[v], $1());
|
|
2774
2882
|
}
|
|
2775
2883
|
}
|
|
2776
|
-
} else if (
|
|
2884
|
+
} else if (s.nodeType === 8) if (s.data === O5) C.push({ type: 2, index: n });
|
|
2777
2885
|
else {
|
|
2778
2886
|
let a = -1;
|
|
2779
|
-
for (; (a =
|
|
2887
|
+
for (; (a = s.data.indexOf(H, a + 1)) !== -1; ) C.push({ type: 7, index: n }), a += H.length - 1;
|
|
2780
2888
|
}
|
|
2781
2889
|
n++;
|
|
2782
2890
|
}
|
|
2783
2891
|
}
|
|
2784
2892
|
static createElement(t, e) {
|
|
2785
|
-
const o =
|
|
2893
|
+
const o = z.createElement("template");
|
|
2786
2894
|
return o.innerHTML = t, o;
|
|
2787
2895
|
}
|
|
2788
2896
|
}
|
|
2789
|
-
function
|
|
2790
|
-
var
|
|
2897
|
+
function R(r, t, e = r, o) {
|
|
2898
|
+
var s, n;
|
|
2791
2899
|
if (t === a1) return t;
|
|
2792
|
-
let i = o !== void 0 ? (
|
|
2900
|
+
let i = o !== void 0 ? (s = e._$Co) == null ? void 0 : s[o] : e._$Cl;
|
|
2793
2901
|
const l = l1(t) ? void 0 : t._$litDirective$;
|
|
2794
|
-
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(
|
|
2902
|
+
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(r), i._$AT(r, e, o)), o !== void 0 ? (e._$Co ?? (e._$Co = []))[o] = i : e._$Cl = i), i !== void 0 && (t = R(r, i._$AS(r, t.values), i, o)), t;
|
|
2795
2903
|
}
|
|
2796
2904
|
class o7 {
|
|
2797
2905
|
constructor(t, e) {
|
|
@@ -2804,8 +2912,8 @@ class o7 {
|
|
|
2804
2912
|
return this._$AM._$AU;
|
|
2805
2913
|
}
|
|
2806
2914
|
u(t) {
|
|
2807
|
-
const { el: { content: e }, parts: o } = this._$AD,
|
|
2808
|
-
P.currentNode =
|
|
2915
|
+
const { el: { content: e }, parts: o } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? z).importNode(e, !0);
|
|
2916
|
+
P.currentNode = s;
|
|
2809
2917
|
let n = P.nextNode(), i = 0, l = 0, C = o[0];
|
|
2810
2918
|
for (; C !== void 0; ) {
|
|
2811
2919
|
if (i === C.index) {
|
|
@@ -2814,7 +2922,7 @@ class o7 {
|
|
|
2814
2922
|
}
|
|
2815
2923
|
i !== (C == null ? void 0 : C.index) && (n = P.nextNode(), i++);
|
|
2816
2924
|
}
|
|
2817
|
-
return P.currentNode =
|
|
2925
|
+
return P.currentNode = z, s;
|
|
2818
2926
|
}
|
|
2819
2927
|
p(t) {
|
|
2820
2928
|
let e = 0;
|
|
@@ -2826,8 +2934,8 @@ class H1 {
|
|
|
2826
2934
|
var t;
|
|
2827
2935
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
2828
2936
|
}
|
|
2829
|
-
constructor(t, e, o,
|
|
2830
|
-
this.type = 2, this._$AH =
|
|
2937
|
+
constructor(t, e, o, s) {
|
|
2938
|
+
this.type = 2, this._$AH = f, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = o, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
|
|
2831
2939
|
}
|
|
2832
2940
|
get parentNode() {
|
|
2833
2941
|
let t = this._$AA.parentNode;
|
|
@@ -2841,7 +2949,7 @@ class H1 {
|
|
|
2841
2949
|
return this._$AB;
|
|
2842
2950
|
}
|
|
2843
2951
|
_$AI(t, e = this) {
|
|
2844
|
-
t =
|
|
2952
|
+
t = R(this, t, e), l1(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== a1 && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : t7(t) ? this.k(t) : this._(t);
|
|
2845
2953
|
}
|
|
2846
2954
|
O(t) {
|
|
2847
2955
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -2850,11 +2958,11 @@ class H1 {
|
|
|
2850
2958
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
2851
2959
|
}
|
|
2852
2960
|
_(t) {
|
|
2853
|
-
this._$AH !==
|
|
2961
|
+
this._$AH !== f && l1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(z.createTextNode(t)), this._$AH = t;
|
|
2854
2962
|
}
|
|
2855
2963
|
$(t) {
|
|
2856
2964
|
var e;
|
|
2857
|
-
const { values: o, _$litType$:
|
|
2965
|
+
const { values: o, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = c1.createElement(B5(s.h, s.h[0]), this.options)), s);
|
|
2858
2966
|
if (((e = this._$AH) == null ? void 0 : e._$AD) === n) this._$AH.p(o);
|
|
2859
2967
|
else {
|
|
2860
2968
|
const i = new o7(n, this), l = i.u(this.options);
|
|
@@ -2866,17 +2974,17 @@ class H1 {
|
|
|
2866
2974
|
return e === void 0 && b5.set(t.strings, e = new c1(t)), e;
|
|
2867
2975
|
}
|
|
2868
2976
|
k(t) {
|
|
2869
|
-
|
|
2977
|
+
j1(this._$AH) || (this._$AH = [], this._$AR());
|
|
2870
2978
|
const e = this._$AH;
|
|
2871
|
-
let o,
|
|
2872
|
-
for (const n of t)
|
|
2873
|
-
|
|
2979
|
+
let o, s = 0;
|
|
2980
|
+
for (const n of t) s === e.length ? e.push(o = new H1(this.O($1()), this.O($1()), this, this.options)) : o = e[s], o._$AI(n), s++;
|
|
2981
|
+
s < e.length && (this._$AR(o && o._$AB.nextSibling, s), e.length = s);
|
|
2874
2982
|
}
|
|
2875
2983
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
2876
2984
|
var o;
|
|
2877
2985
|
for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
2878
|
-
const
|
|
2879
|
-
t.remove(), t =
|
|
2986
|
+
const s = t.nextSibling;
|
|
2987
|
+
t.remove(), t = s;
|
|
2880
2988
|
}
|
|
2881
2989
|
}
|
|
2882
2990
|
setConnected(t) {
|
|
@@ -2891,48 +2999,48 @@ class Z1 {
|
|
|
2891
2999
|
get _$AU() {
|
|
2892
3000
|
return this._$AM._$AU;
|
|
2893
3001
|
}
|
|
2894
|
-
constructor(t, e, o,
|
|
2895
|
-
this.type = 1, this._$AH =
|
|
3002
|
+
constructor(t, e, o, s, n) {
|
|
3003
|
+
this.type = 1, this._$AH = f, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = f;
|
|
2896
3004
|
}
|
|
2897
|
-
_$AI(t, e = this, o,
|
|
3005
|
+
_$AI(t, e = this, o, s) {
|
|
2898
3006
|
const n = this.strings;
|
|
2899
3007
|
let i = !1;
|
|
2900
|
-
if (n === void 0) t =
|
|
3008
|
+
if (n === void 0) t = R(this, t, e, 0), i = !l1(t) || t !== this._$AH && t !== a1, i && (this._$AH = t);
|
|
2901
3009
|
else {
|
|
2902
3010
|
const l = t;
|
|
2903
3011
|
let C, c;
|
|
2904
|
-
for (t = n[0], C = 0; C < n.length - 1; C++) c =
|
|
3012
|
+
for (t = n[0], C = 0; C < n.length - 1; C++) c = R(this, l[o + C], e, C), c === a1 && (c = this._$AH[C]), i || (i = !l1(c) || c !== this._$AH[C]), c === f ? t = f : t !== f && (t += (c ?? "") + n[C + 1]), this._$AH[C] = c;
|
|
2905
3013
|
}
|
|
2906
|
-
i && !
|
|
3014
|
+
i && !s && this.j(t);
|
|
2907
3015
|
}
|
|
2908
3016
|
j(t) {
|
|
2909
|
-
t ===
|
|
3017
|
+
t === f ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
2910
3018
|
}
|
|
2911
3019
|
}
|
|
2912
|
-
class
|
|
3020
|
+
class r7 extends Z1 {
|
|
2913
3021
|
constructor() {
|
|
2914
3022
|
super(...arguments), this.type = 3;
|
|
2915
3023
|
}
|
|
2916
3024
|
j(t) {
|
|
2917
|
-
this.element[this.name] = t ===
|
|
3025
|
+
this.element[this.name] = t === f ? void 0 : t;
|
|
2918
3026
|
}
|
|
2919
3027
|
}
|
|
2920
|
-
class
|
|
3028
|
+
class s7 extends Z1 {
|
|
2921
3029
|
constructor() {
|
|
2922
3030
|
super(...arguments), this.type = 4;
|
|
2923
3031
|
}
|
|
2924
3032
|
j(t) {
|
|
2925
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
3033
|
+
this.element.toggleAttribute(this.name, !!t && t !== f);
|
|
2926
3034
|
}
|
|
2927
3035
|
}
|
|
2928
3036
|
class n7 extends Z1 {
|
|
2929
|
-
constructor(t, e, o,
|
|
2930
|
-
super(t, e, o,
|
|
3037
|
+
constructor(t, e, o, s, n) {
|
|
3038
|
+
super(t, e, o, s, n), this.type = 5;
|
|
2931
3039
|
}
|
|
2932
3040
|
_$AI(t, e = this) {
|
|
2933
|
-
if ((t =
|
|
2934
|
-
const o = this._$AH,
|
|
2935
|
-
|
|
3041
|
+
if ((t = R(this, t, e, 0) ?? f) === a1) return;
|
|
3042
|
+
const o = this._$AH, s = t === f && o !== f || t.capture !== o.capture || t.once !== o.once || t.passive !== o.passive, n = t !== f && (o === f || s);
|
|
3043
|
+
s && this.element.removeEventListener(this.name, this, o), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
2936
3044
|
}
|
|
2937
3045
|
handleEvent(t) {
|
|
2938
3046
|
var e;
|
|
@@ -2947,7 +3055,7 @@ class i7 {
|
|
|
2947
3055
|
return this._$AM._$AU;
|
|
2948
3056
|
}
|
|
2949
3057
|
_$AI(t) {
|
|
2950
|
-
|
|
3058
|
+
R(this, t);
|
|
2951
3059
|
}
|
|
2952
3060
|
}
|
|
2953
3061
|
const m5 = b1.litHtmlPolyfillSupport;
|
|
@@ -2957,11 +3065,11 @@ m5 == null || m5(c1, H1), (b1.litHtmlVersions ?? (b1.litHtmlVersions = [])).push
|
|
|
2957
3065
|
* Copyright 2018 Google LLC
|
|
2958
3066
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2959
3067
|
*/
|
|
2960
|
-
const x = (
|
|
2961
|
-
var C7 = Object.defineProperty, l7 = Object.getOwnPropertyDescriptor, w = (
|
|
2962
|
-
for (var
|
|
2963
|
-
(i =
|
|
2964
|
-
return o &&
|
|
3068
|
+
const x = (r) => r ?? f;
|
|
3069
|
+
var C7 = Object.defineProperty, l7 = Object.getOwnPropertyDescriptor, w = (r, t, e, o) => {
|
|
3070
|
+
for (var s = o > 1 ? void 0 : o ? l7(t, e) : t, n = r.length - 1, i; n >= 0; n--)
|
|
3071
|
+
(i = r[n]) && (s = (o ? i(t, e, s) : i(s)) || s);
|
|
3072
|
+
return o && s && C7(t, e, s), s;
|
|
2965
3073
|
};
|
|
2966
3074
|
let a7 = 0;
|
|
2967
3075
|
var $;
|
|
@@ -2974,26 +3082,26 @@ const y = ($ = class extends x1 {
|
|
|
2974
3082
|
get size() {
|
|
2975
3083
|
return this._size;
|
|
2976
3084
|
}
|
|
2977
|
-
set size(
|
|
3085
|
+
set size(r) {
|
|
2978
3086
|
this._size = $.VALID_SIZES.includes(
|
|
2979
|
-
|
|
2980
|
-
) ?
|
|
3087
|
+
r
|
|
3088
|
+
) ? r : "md";
|
|
2981
3089
|
}
|
|
2982
3090
|
get variant() {
|
|
2983
3091
|
return this._variant;
|
|
2984
3092
|
}
|
|
2985
|
-
set variant(
|
|
3093
|
+
set variant(r) {
|
|
2986
3094
|
this._variant = $.VALID_VARIANTS.includes(
|
|
2987
|
-
|
|
2988
|
-
) ?
|
|
3095
|
+
r
|
|
3096
|
+
) ? r : "filled";
|
|
2989
3097
|
}
|
|
2990
3098
|
get type() {
|
|
2991
3099
|
return this._type;
|
|
2992
3100
|
}
|
|
2993
|
-
set type(
|
|
3101
|
+
set type(r) {
|
|
2994
3102
|
this._type = $.VALID_TYPES.includes(
|
|
2995
|
-
|
|
2996
|
-
) ?
|
|
3103
|
+
r
|
|
3104
|
+
) ? r : "button";
|
|
2997
3105
|
}
|
|
2998
3106
|
connectedCallback() {
|
|
2999
3107
|
super.connectedCallback(), this.id || (this.id = this._generateUniqueId());
|
|
@@ -3002,8 +3110,8 @@ const y = ($ = class extends x1 {
|
|
|
3002
3110
|
_generateUniqueId() {
|
|
3003
3111
|
return `nys-button-${Date.now()}-${a7++}`;
|
|
3004
3112
|
}
|
|
3005
|
-
_manageFormAction(
|
|
3006
|
-
typeof this.onClick == "function" && this.onClick(
|
|
3113
|
+
_manageFormAction(r) {
|
|
3114
|
+
typeof this.onClick == "function" && this.onClick(r);
|
|
3007
3115
|
const t = this._internals.form;
|
|
3008
3116
|
if (t)
|
|
3009
3117
|
switch (this.type) {
|
|
@@ -3024,16 +3132,16 @@ const y = ($ = class extends x1 {
|
|
|
3024
3132
|
_handleBlur() {
|
|
3025
3133
|
this.dispatchEvent(new Event("blur"));
|
|
3026
3134
|
}
|
|
3027
|
-
_handleClick(
|
|
3135
|
+
_handleClick(r) {
|
|
3028
3136
|
if (this.disabled) {
|
|
3029
|
-
|
|
3137
|
+
r.preventDefault();
|
|
3030
3138
|
return;
|
|
3031
3139
|
}
|
|
3032
|
-
this._manageFormAction(
|
|
3140
|
+
this._manageFormAction(r);
|
|
3033
3141
|
}
|
|
3034
3142
|
// Handle keydown for keyboard accessibility
|
|
3035
|
-
_handleKeydown(
|
|
3036
|
-
(
|
|
3143
|
+
_handleKeydown(r) {
|
|
3144
|
+
(r.code === "Space" || r.code === "Enter") && (r.preventDefault(), this.disabled || this._manageFormAction(r));
|
|
3037
3145
|
}
|
|
3038
3146
|
render() {
|
|
3039
3147
|
return d`
|
|
@@ -3092,12 +3200,12 @@ const y = ($ = class extends x1 {
|
|
|
3092
3200
|
"outline",
|
|
3093
3201
|
"ghost",
|
|
3094
3202
|
"text"
|
|
3095
|
-
], $.VALID_TYPES = ["submit", "reset", "button"], $.styles =
|
|
3203
|
+
], $.VALID_TYPES = ["submit", "reset", "button"], $.styles = z2, $.formAssociated = !0, $);
|
|
3096
3204
|
w([
|
|
3097
3205
|
g({ type: String })
|
|
3098
3206
|
], y.prototype, "id", 2);
|
|
3099
3207
|
w([
|
|
3100
|
-
g({ type: String })
|
|
3208
|
+
g({ type: String, reflect: !0 })
|
|
3101
3209
|
], y.prototype, "name", 2);
|
|
3102
3210
|
w([
|
|
3103
3211
|
g({ reflect: !0 })
|
|
@@ -3140,12 +3248,12 @@ w([
|
|
|
3140
3248
|
], y.prototype, "href", 2);
|
|
3141
3249
|
let c7 = y;
|
|
3142
3250
|
customElements.get("nys-button") || customElements.define("nys-button", c7);
|
|
3143
|
-
var h7 = Object.defineProperty, d7 = Object.getOwnPropertyDescriptor, b = (
|
|
3144
|
-
for (var
|
|
3145
|
-
(i =
|
|
3146
|
-
return o &&
|
|
3251
|
+
var h7 = Object.defineProperty, d7 = Object.getOwnPropertyDescriptor, b = (r, t, e, o) => {
|
|
3252
|
+
for (var s = o > 1 ? void 0 : o ? d7(t, e) : t, n = r.length - 1, i; n >= 0; n--)
|
|
3253
|
+
(i = r[n]) && (s = (o ? i(t, e, s) : i(s)) || s);
|
|
3254
|
+
return o && s && h7(t, e, s), s;
|
|
3147
3255
|
};
|
|
3148
|
-
let
|
|
3256
|
+
let v7 = 0;
|
|
3149
3257
|
var A;
|
|
3150
3258
|
const _ = (A = class extends x1 {
|
|
3151
3259
|
constructor() {
|
|
@@ -3178,7 +3286,7 @@ const _ = (A = class extends x1 {
|
|
|
3178
3286
|
}
|
|
3179
3287
|
/******************** Functions ********************/
|
|
3180
3288
|
_generateUniqueId() {
|
|
3181
|
-
return `nys-alert-${Date.now()}-${
|
|
3289
|
+
return `nys-alert-${Date.now()}-${v7++}`;
|
|
3182
3290
|
}
|
|
3183
3291
|
// Helper function for overriding default icons or checking special naming cases (e.g. type=success)
|
|
3184
3292
|
_getIconName() {
|
|
@@ -3201,9 +3309,9 @@ const _ = (A = class extends x1 {
|
|
|
3201
3309
|
const t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("slot");
|
|
3202
3310
|
if (t) {
|
|
3203
3311
|
const o = t.assignedNodes({ flatten: !0 }).filter(
|
|
3204
|
-
(
|
|
3312
|
+
(s) => {
|
|
3205
3313
|
var n;
|
|
3206
|
-
return
|
|
3314
|
+
return s.nodeType === Node.ELEMENT_NODE || s.nodeType === Node.TEXT_NODE && ((n = s.textContent) == null ? void 0 : n.trim());
|
|
3207
3315
|
}
|
|
3208
3316
|
);
|
|
3209
3317
|
this._slotHasContent = o.length > 0;
|
|
@@ -3211,7 +3319,7 @@ const _ = (A = class extends x1 {
|
|
|
3211
3319
|
this._slotHasContent = !1;
|
|
3212
3320
|
}
|
|
3213
3321
|
render() {
|
|
3214
|
-
var o,
|
|
3322
|
+
var o, s;
|
|
3215
3323
|
const { role: t, ariaLabel: e } = this.ariaAttributes;
|
|
3216
3324
|
return d`
|
|
3217
3325
|
${this._alertClosed ? "" : d` <div
|
|
@@ -3231,7 +3339,7 @@ const _ = (A = class extends x1 {
|
|
|
3231
3339
|
</div>
|
|
3232
3340
|
<div class="nys-alert__texts">
|
|
3233
3341
|
<h4 class="nys-alert__header">${this.heading}</h4>
|
|
3234
|
-
${this._slotHasContent ? d`<slot></slot>` : ((
|
|
3342
|
+
${this._slotHasContent ? d`<slot></slot>` : ((s = this.text) == null ? void 0 : s.trim().length) > 0 ? d`<p class="nys-alert__text">${this.text}</p>` : ""}
|
|
3235
3343
|
${this.primaryAction || this.secondaryAction ? d`<div class="nys-alert__actions">
|
|
3236
3344
|
${this.primaryAction ? d`<a
|
|
3237
3345
|
href=${E1(this.primaryAction || void 0)}
|
|
@@ -3268,7 +3376,7 @@ const _ = (A = class extends x1 {
|
|
|
3268
3376
|
</div>`}
|
|
3269
3377
|
`;
|
|
3270
3378
|
}
|
|
3271
|
-
}, A.styles =
|
|
3379
|
+
}, A.styles = J5, A.VALID_TYPES = [
|
|
3272
3380
|
"base",
|
|
3273
3381
|
"info",
|
|
3274
3382
|
"success",
|
|
@@ -3315,9 +3423,9 @@ b([
|
|
|
3315
3423
|
b([
|
|
3316
3424
|
m({ reflect: !0 })
|
|
3317
3425
|
], _.prototype, "type", 1);
|
|
3318
|
-
let
|
|
3319
|
-
customElements.get("nys-alert") || customElements.define("nys-alert",
|
|
3426
|
+
let p7 = _;
|
|
3427
|
+
customElements.get("nys-alert") || customElements.define("nys-alert", p7);
|
|
3320
3428
|
export {
|
|
3321
|
-
|
|
3429
|
+
p7 as NysAlert
|
|
3322
3430
|
};
|
|
3323
3431
|
//# sourceMappingURL=nys-alert.js.map
|