@nysds/components 1.4.0 → 1.4.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-stepper/newsletter.html +4 -0
- package/dist/nys-stepper/personal.html +6 -0
- package/dist/nys-stepper/survey.html +5 -0
- package/dist/nys-stepper/team.html +6 -0
- package/dist/nysds.es.js +1552 -662
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +661 -84
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-stepper/src/index.d.ts +1 -0
- package/dist/packages/nys-stepper/src/nys-step.d.ts +12 -0
- package/dist/packages/nys-stepper/src/nys-stepper.d.ts +24 -0
- package/dist/packages/nys-stepper/src/nys-stepper.styles.d.ts +2 -0
- package/dist/packages/nys-tooltip/src/index.d.ts +1 -0
- package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +31 -0
- package/dist/packages/nys-tooltip/src/nys-tooltip.styles.d.ts +2 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +4 -3
package/dist/nysds.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as r, state as
|
|
1
|
+
import { css as u, LitElement as p, html as l } from "lit";
|
|
2
|
+
import { property as r, state as O } from "lit/decorators.js";
|
|
3
3
|
import { ifDefined as h } from "lit/directives/if-defined.js";
|
|
4
4
|
/*!
|
|
5
|
-
* New York State Design System (v1.4.
|
|
5
|
+
* New York State Design System (v1.4.1)
|
|
6
6
|
* Description: A design system for New York State's digital products.
|
|
7
7
|
* Repository: https://github.com/its-hcd/nysds
|
|
8
8
|
* License: MIT
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const j1 = u`
|
|
11
11
|
:host {
|
|
12
12
|
/* Global Alert Styles */
|
|
13
13
|
--_nys-alert-border-width: var(--nys-border-width-lg, 4px);
|
|
@@ -238,14 +238,14 @@ const A1 = g`
|
|
|
238
238
|
text-decoration-thickness: 3px;
|
|
239
239
|
}
|
|
240
240
|
`;
|
|
241
|
-
var
|
|
242
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
241
|
+
var G1 = Object.defineProperty, Y1 = Object.getOwnPropertyDescriptor, $ = (a, e, t, o) => {
|
|
242
|
+
for (var s = o > 1 ? void 0 : o ? Y1(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
243
243
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
244
|
-
return o && s &&
|
|
244
|
+
return o && s && G1(e, t, s), s;
|
|
245
245
|
};
|
|
246
|
-
let
|
|
247
|
-
var
|
|
248
|
-
const
|
|
246
|
+
let K1 = 0;
|
|
247
|
+
var J;
|
|
248
|
+
const L = (J = class extends p {
|
|
249
249
|
constructor() {
|
|
250
250
|
super(...arguments), this.id = "", this.heading = "", this.icon = "", this.dismissible = !1, this.duration = 0, this.text = "", this.primaryAction = "", this.secondaryAction = "", this.primaryLabel = "Learn more", this.secondaryLabel = "Dismiss", this._alertClosed = !1, this._slotHasContent = !0, this._type = "base", this._timeoutId = null;
|
|
251
251
|
}
|
|
@@ -253,7 +253,7 @@ const w = (W = class extends u {
|
|
|
253
253
|
return this._type;
|
|
254
254
|
}
|
|
255
255
|
set type(e) {
|
|
256
|
-
this._type =
|
|
256
|
+
this._type = J.VALID_TYPES.includes(
|
|
257
257
|
e
|
|
258
258
|
) ? e : "base";
|
|
259
259
|
}
|
|
@@ -276,7 +276,7 @@ const w = (W = class extends u {
|
|
|
276
276
|
}
|
|
277
277
|
/******************** Functions ********************/
|
|
278
278
|
_generateUniqueId() {
|
|
279
|
-
return `nys-alert-${Date.now()}-${
|
|
279
|
+
return `nys-alert-${Date.now()}-${K1++}`;
|
|
280
280
|
}
|
|
281
281
|
// Helper function for overriding default icons or checking special naming cases (e.g. type=success)
|
|
282
282
|
_getIconName() {
|
|
@@ -358,56 +358,56 @@ const w = (W = class extends u {
|
|
|
358
358
|
</div>`}
|
|
359
359
|
`;
|
|
360
360
|
}
|
|
361
|
-
},
|
|
361
|
+
}, J.styles = j1, J.VALID_TYPES = [
|
|
362
362
|
"base",
|
|
363
363
|
"info",
|
|
364
364
|
"success",
|
|
365
365
|
"warning",
|
|
366
366
|
"danger",
|
|
367
367
|
"emergency"
|
|
368
|
-
],
|
|
369
|
-
|
|
368
|
+
], J);
|
|
369
|
+
$([
|
|
370
370
|
r({ type: String })
|
|
371
|
-
],
|
|
372
|
-
|
|
371
|
+
], L.prototype, "id", 2);
|
|
372
|
+
$([
|
|
373
373
|
r({ type: String })
|
|
374
|
-
],
|
|
375
|
-
|
|
374
|
+
], L.prototype, "heading", 2);
|
|
375
|
+
$([
|
|
376
376
|
r({ type: String })
|
|
377
|
-
],
|
|
378
|
-
|
|
377
|
+
], L.prototype, "icon", 2);
|
|
378
|
+
$([
|
|
379
379
|
r({ type: Boolean, reflect: !0 })
|
|
380
|
-
],
|
|
381
|
-
|
|
380
|
+
], L.prototype, "dismissible", 2);
|
|
381
|
+
$([
|
|
382
382
|
r({ type: Number, reflect: !0 })
|
|
383
|
-
],
|
|
384
|
-
|
|
383
|
+
], L.prototype, "duration", 2);
|
|
384
|
+
$([
|
|
385
385
|
r({ type: String })
|
|
386
|
-
],
|
|
387
|
-
|
|
386
|
+
], L.prototype, "text", 2);
|
|
387
|
+
$([
|
|
388
388
|
r({ type: String })
|
|
389
|
-
],
|
|
390
|
-
|
|
389
|
+
], L.prototype, "primaryAction", 2);
|
|
390
|
+
$([
|
|
391
391
|
r({ type: String })
|
|
392
|
-
],
|
|
393
|
-
|
|
392
|
+
], L.prototype, "secondaryAction", 2);
|
|
393
|
+
$([
|
|
394
394
|
r({ type: String })
|
|
395
|
-
],
|
|
396
|
-
|
|
395
|
+
], L.prototype, "primaryLabel", 2);
|
|
396
|
+
$([
|
|
397
397
|
r({ type: String })
|
|
398
|
-
],
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
],
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
],
|
|
405
|
-
|
|
398
|
+
], L.prototype, "secondaryLabel", 2);
|
|
399
|
+
$([
|
|
400
|
+
O()
|
|
401
|
+
], L.prototype, "_alertClosed", 2);
|
|
402
|
+
$([
|
|
403
|
+
O()
|
|
404
|
+
], L.prototype, "_slotHasContent", 2);
|
|
405
|
+
$([
|
|
406
406
|
r({ reflect: !0 })
|
|
407
|
-
],
|
|
408
|
-
let
|
|
409
|
-
customElements.get("nys-alert") || customElements.define("nys-alert",
|
|
410
|
-
const
|
|
407
|
+
], L.prototype, "type", 1);
|
|
408
|
+
let W1 = L;
|
|
409
|
+
customElements.get("nys-alert") || customElements.define("nys-alert", W1);
|
|
410
|
+
const X1 = u`
|
|
411
411
|
:host {
|
|
412
412
|
/* Global Avatar Styles */
|
|
413
413
|
--_nys-avatar-shape: var(--nys-radius-round, 1776px);
|
|
@@ -475,14 +475,14 @@ const P1 = g`
|
|
|
475
475
|
fill: currentColor;
|
|
476
476
|
}
|
|
477
477
|
`;
|
|
478
|
-
var
|
|
479
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
478
|
+
var Q1 = Object.defineProperty, J1 = Object.getOwnPropertyDescriptor, X = (a, e, t, o) => {
|
|
479
|
+
for (var s = o > 1 ? void 0 : o ? J1(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
480
480
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
481
|
-
return o && s &&
|
|
481
|
+
return o && s && Q1(e, t, s), s;
|
|
482
482
|
};
|
|
483
|
-
let
|
|
484
|
-
var
|
|
485
|
-
const
|
|
483
|
+
let ee = 0;
|
|
484
|
+
var e1;
|
|
485
|
+
const P = (e1 = class extends p {
|
|
486
486
|
constructor() {
|
|
487
487
|
super(...arguments), this.id = "", this.label = "", this.image = "", this.initials = "", this.icon = "", this.color = "#555", this.lazy = !1, this._shape = "circle", this._slotHasContent = !0;
|
|
488
488
|
}
|
|
@@ -491,14 +491,14 @@ const U = (X = class extends u {
|
|
|
491
491
|
}
|
|
492
492
|
// Setter for the `shape` property.
|
|
493
493
|
set shape(e) {
|
|
494
|
-
this._shape =
|
|
494
|
+
this._shape = e1.VALID_SHAPES.includes(
|
|
495
495
|
e
|
|
496
496
|
) ? e : "circle", this.requestUpdate("shape");
|
|
497
497
|
}
|
|
498
498
|
/******************** Functions ********************/
|
|
499
499
|
// Generate a unique ID if one is not provided
|
|
500
500
|
connectedCallback() {
|
|
501
|
-
super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${
|
|
501
|
+
super.connectedCallback(), this.id || (this.id = `nys-avatar-${Date.now()}-${ee++}`);
|
|
502
502
|
}
|
|
503
503
|
firstUpdated() {
|
|
504
504
|
this._checkSlotContent();
|
|
@@ -558,41 +558,41 @@ const U = (X = class extends u {
|
|
|
558
558
|
</label>
|
|
559
559
|
`;
|
|
560
560
|
}
|
|
561
|
-
},
|
|
561
|
+
}, e1.styles = X1, e1.VALID_SHAPES = [
|
|
562
562
|
"square",
|
|
563
563
|
"rounded",
|
|
564
564
|
"circle"
|
|
565
|
-
],
|
|
566
|
-
|
|
565
|
+
], e1);
|
|
566
|
+
X([
|
|
567
567
|
r({ type: String })
|
|
568
|
-
],
|
|
569
|
-
|
|
568
|
+
], P.prototype, "id", 2);
|
|
569
|
+
X([
|
|
570
570
|
r({ type: String })
|
|
571
|
-
],
|
|
572
|
-
|
|
571
|
+
], P.prototype, "label", 2);
|
|
572
|
+
X([
|
|
573
573
|
r({ type: String })
|
|
574
|
-
],
|
|
575
|
-
|
|
574
|
+
], P.prototype, "image", 2);
|
|
575
|
+
X([
|
|
576
576
|
r({ type: String })
|
|
577
|
-
],
|
|
578
|
-
|
|
577
|
+
], P.prototype, "initials", 2);
|
|
578
|
+
X([
|
|
579
579
|
r({ type: String })
|
|
580
|
-
],
|
|
581
|
-
|
|
580
|
+
], P.prototype, "icon", 2);
|
|
581
|
+
X([
|
|
582
582
|
r({ type: String })
|
|
583
|
-
],
|
|
584
|
-
|
|
583
|
+
], P.prototype, "color", 2);
|
|
584
|
+
X([
|
|
585
585
|
r({ type: Boolean, reflect: !0 })
|
|
586
|
-
],
|
|
587
|
-
|
|
586
|
+
], P.prototype, "lazy", 2);
|
|
587
|
+
X([
|
|
588
588
|
r({ reflect: !0 })
|
|
589
|
-
],
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
],
|
|
593
|
-
let
|
|
594
|
-
customElements.get("nys-avatar") || customElements.define("nys-avatar",
|
|
595
|
-
const
|
|
589
|
+
], P.prototype, "shape", 1);
|
|
590
|
+
X([
|
|
591
|
+
O()
|
|
592
|
+
], P.prototype, "_slotHasContent", 2);
|
|
593
|
+
let te = P;
|
|
594
|
+
customElements.get("nys-avatar") || customElements.define("nys-avatar", te);
|
|
595
|
+
const se = u`
|
|
596
596
|
:host {
|
|
597
597
|
}
|
|
598
598
|
|
|
@@ -617,12 +617,12 @@ const j1 = g`
|
|
|
617
617
|
display: inline-flex;
|
|
618
618
|
}
|
|
619
619
|
`;
|
|
620
|
-
var
|
|
620
|
+
var oe = Object.defineProperty, $1 = (a, e, t, o) => {
|
|
621
621
|
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
622
622
|
(i = a[n]) && (s = i(e, t, s) || s);
|
|
623
|
-
return s &&
|
|
623
|
+
return s && oe(e, t, s), s;
|
|
624
624
|
};
|
|
625
|
-
const
|
|
625
|
+
const V1 = class V1 extends p {
|
|
626
626
|
constructor() {
|
|
627
627
|
super(), this.position = "right", this.visible = !1, this.isMobile = !1, this._handleScroll = this._handleScroll.bind(this), this._handleResize = this._handleResize.bind(this), this.mediaQuery = window.matchMedia("(max-width: 480px)");
|
|
628
628
|
}
|
|
@@ -659,19 +659,19 @@ const m1 = class m1 extends u {
|
|
|
659
659
|
></nys-button>`;
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
|
-
|
|
663
|
-
let
|
|
664
|
-
|
|
662
|
+
V1.styles = se;
|
|
663
|
+
let d1 = V1;
|
|
664
|
+
$1([
|
|
665
665
|
r({ type: String })
|
|
666
|
-
],
|
|
667
|
-
|
|
666
|
+
], d1.prototype, "position");
|
|
667
|
+
$1([
|
|
668
668
|
r({ type: Boolean, reflect: !0 })
|
|
669
|
-
],
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
],
|
|
673
|
-
customElements.get("nys-backtotop") || customElements.define("nys-backtotop",
|
|
674
|
-
const
|
|
669
|
+
], d1.prototype, "visible");
|
|
670
|
+
$1([
|
|
671
|
+
O()
|
|
672
|
+
], d1.prototype, "isMobile");
|
|
673
|
+
customElements.get("nys-backtotop") || customElements.define("nys-backtotop", d1);
|
|
674
|
+
const re = u`
|
|
675
675
|
:host {
|
|
676
676
|
/* Anything that can be overridden should be defined here */
|
|
677
677
|
|
|
@@ -1092,14 +1092,14 @@ const Y1 = g`
|
|
|
1092
1092
|
user-select: none;
|
|
1093
1093
|
}
|
|
1094
1094
|
`;
|
|
1095
|
-
var
|
|
1096
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
1095
|
+
var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, C = (a, e, t, o) => {
|
|
1096
|
+
for (var s = o > 1 ? void 0 : o ? ie(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
1097
1097
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1098
|
-
return o && s &&
|
|
1098
|
+
return o && s && ne(e, t, s), s;
|
|
1099
1099
|
};
|
|
1100
|
-
let
|
|
1101
|
-
var
|
|
1102
|
-
const v = (
|
|
1100
|
+
let ae = 0;
|
|
1101
|
+
var w;
|
|
1102
|
+
const v = (w = class extends p {
|
|
1103
1103
|
// allows use of elementInternals' API
|
|
1104
1104
|
constructor() {
|
|
1105
1105
|
super(), this.id = "", this.name = "", this._size = "md", this.fullWidth = !1, this._variant = "filled", this.inverted = !1, this.label = "", this.ariaLabel = "", this.prefixIcon = "", this.suffixIcon = "", this.circle = !1, this.icon = "", this.disabled = !1, this.form = "", this.value = "", this._type = "button", this.onClick = () => {
|
|
@@ -1109,7 +1109,7 @@ const v = (x = class extends u {
|
|
|
1109
1109
|
return this._size;
|
|
1110
1110
|
}
|
|
1111
1111
|
set size(e) {
|
|
1112
|
-
this._size =
|
|
1112
|
+
this._size = w.VALID_SIZES.includes(
|
|
1113
1113
|
e
|
|
1114
1114
|
) ? e : "md";
|
|
1115
1115
|
}
|
|
@@ -1117,7 +1117,7 @@ const v = (x = class extends u {
|
|
|
1117
1117
|
return this._variant;
|
|
1118
1118
|
}
|
|
1119
1119
|
set variant(e) {
|
|
1120
|
-
this._variant =
|
|
1120
|
+
this._variant = w.VALID_VARIANTS.includes(
|
|
1121
1121
|
e
|
|
1122
1122
|
) ? e : "filled";
|
|
1123
1123
|
}
|
|
@@ -1125,7 +1125,7 @@ const v = (x = class extends u {
|
|
|
1125
1125
|
return this._type;
|
|
1126
1126
|
}
|
|
1127
1127
|
set type(e) {
|
|
1128
|
-
this._type =
|
|
1128
|
+
this._type = w.VALID_TYPES.includes(
|
|
1129
1129
|
e
|
|
1130
1130
|
) ? e : "button";
|
|
1131
1131
|
}
|
|
@@ -1133,7 +1133,7 @@ const v = (x = class extends u {
|
|
|
1133
1133
|
return this._target;
|
|
1134
1134
|
}
|
|
1135
1135
|
set target(e) {
|
|
1136
|
-
this._target =
|
|
1136
|
+
this._target = w.VALID_TARGETS.includes(
|
|
1137
1137
|
e
|
|
1138
1138
|
) ? e : "_self";
|
|
1139
1139
|
}
|
|
@@ -1142,7 +1142,7 @@ const v = (x = class extends u {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
/******************** Functions ********************/
|
|
1144
1144
|
_generateUniqueId() {
|
|
1145
|
-
return `nys-button-${Date.now()}-${
|
|
1145
|
+
return `nys-button-${Date.now()}-${ae++}`;
|
|
1146
1146
|
}
|
|
1147
1147
|
_manageFormAction(e) {
|
|
1148
1148
|
typeof this.onClick == "function" && this.onClick(e);
|
|
@@ -1243,78 +1243,78 @@ const v = (x = class extends u {
|
|
|
1243
1243
|
`}
|
|
1244
1244
|
`;
|
|
1245
1245
|
}
|
|
1246
|
-
},
|
|
1246
|
+
}, w.VALID_SIZES = ["sm", "md", "lg"], w.VALID_VARIANTS = [
|
|
1247
1247
|
"filled",
|
|
1248
1248
|
"outline",
|
|
1249
1249
|
"ghost",
|
|
1250
1250
|
"text"
|
|
1251
|
-
],
|
|
1251
|
+
], w.VALID_TYPES = ["submit", "reset", "button"], w.VALID_TARGETS = [
|
|
1252
1252
|
"_self",
|
|
1253
1253
|
"_blank",
|
|
1254
1254
|
"_parent",
|
|
1255
1255
|
"_top",
|
|
1256
1256
|
"framename"
|
|
1257
|
-
],
|
|
1258
|
-
|
|
1257
|
+
], w.styles = re, w.formAssociated = !0, w);
|
|
1258
|
+
C([
|
|
1259
1259
|
r({ type: String })
|
|
1260
1260
|
], v.prototype, "id", 2);
|
|
1261
|
-
|
|
1261
|
+
C([
|
|
1262
1262
|
r({ type: String, reflect: !0 })
|
|
1263
1263
|
], v.prototype, "name", 2);
|
|
1264
|
-
|
|
1264
|
+
C([
|
|
1265
1265
|
r({ reflect: !0 })
|
|
1266
1266
|
], v.prototype, "size", 1);
|
|
1267
|
-
|
|
1267
|
+
C([
|
|
1268
1268
|
r({ type: Boolean, reflect: !0 })
|
|
1269
1269
|
], v.prototype, "fullWidth", 2);
|
|
1270
|
-
|
|
1270
|
+
C([
|
|
1271
1271
|
r({ reflect: !0 })
|
|
1272
1272
|
], v.prototype, "variant", 1);
|
|
1273
|
-
|
|
1273
|
+
C([
|
|
1274
1274
|
r({ type: Boolean, reflect: !0 })
|
|
1275
1275
|
], v.prototype, "inverted", 2);
|
|
1276
|
-
|
|
1276
|
+
C([
|
|
1277
1277
|
r({ type: String })
|
|
1278
1278
|
], v.prototype, "label", 2);
|
|
1279
|
-
|
|
1279
|
+
C([
|
|
1280
1280
|
r({ type: String })
|
|
1281
1281
|
], v.prototype, "ariaLabel", 2);
|
|
1282
|
-
|
|
1282
|
+
C([
|
|
1283
1283
|
r({ type: String })
|
|
1284
1284
|
], v.prototype, "prefixIcon", 2);
|
|
1285
|
-
|
|
1285
|
+
C([
|
|
1286
1286
|
r({ type: String })
|
|
1287
1287
|
], v.prototype, "suffixIcon", 2);
|
|
1288
|
-
|
|
1288
|
+
C([
|
|
1289
1289
|
r({ type: Boolean, reflect: !0 })
|
|
1290
1290
|
], v.prototype, "circle", 2);
|
|
1291
|
-
|
|
1291
|
+
C([
|
|
1292
1292
|
r({ type: String })
|
|
1293
1293
|
], v.prototype, "icon", 2);
|
|
1294
|
-
|
|
1294
|
+
C([
|
|
1295
1295
|
r({ type: Boolean, reflect: !0 })
|
|
1296
1296
|
], v.prototype, "disabled", 2);
|
|
1297
|
-
|
|
1297
|
+
C([
|
|
1298
1298
|
r({ type: String })
|
|
1299
1299
|
], v.prototype, "form", 2);
|
|
1300
|
-
|
|
1300
|
+
C([
|
|
1301
1301
|
r({ type: String })
|
|
1302
1302
|
], v.prototype, "value", 2);
|
|
1303
|
-
|
|
1303
|
+
C([
|
|
1304
1304
|
r({ reflect: !0 })
|
|
1305
1305
|
], v.prototype, "type", 1);
|
|
1306
|
-
|
|
1306
|
+
C([
|
|
1307
1307
|
r({ type: Function })
|
|
1308
1308
|
], v.prototype, "onClick", 2);
|
|
1309
|
-
|
|
1309
|
+
C([
|
|
1310
1310
|
r({ type: String })
|
|
1311
1311
|
], v.prototype, "href", 2);
|
|
1312
|
-
|
|
1312
|
+
C([
|
|
1313
1313
|
r({ reflect: !0 })
|
|
1314
1314
|
], v.prototype, "target", 1);
|
|
1315
|
-
let
|
|
1316
|
-
customElements.get("nys-button") || customElements.define("nys-button",
|
|
1317
|
-
const
|
|
1315
|
+
let le = v;
|
|
1316
|
+
customElements.get("nys-button") || customElements.define("nys-button", le);
|
|
1317
|
+
const T1 = u`
|
|
1318
1318
|
:host {
|
|
1319
1319
|
/* Anything that can be overridden should be defined here */
|
|
1320
1320
|
|
|
@@ -1671,14 +1671,14 @@ const z1 = g`
|
|
|
1671
1671
|
display: inline;
|
|
1672
1672
|
}
|
|
1673
1673
|
`;
|
|
1674
|
-
var
|
|
1675
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
1674
|
+
var ce = Object.defineProperty, de = Object.getOwnPropertyDescriptor, T = (a, e, t, o) => {
|
|
1675
|
+
for (var s = o > 1 ? void 0 : o ? de(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
1676
1676
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1677
|
-
return o && s &&
|
|
1677
|
+
return o && s && ce(e, t, s), s;
|
|
1678
1678
|
};
|
|
1679
|
-
let
|
|
1680
|
-
var
|
|
1681
|
-
const
|
|
1679
|
+
let he = 0;
|
|
1680
|
+
var N;
|
|
1681
|
+
const Z = (N = class extends p {
|
|
1682
1682
|
// allows use of elementInternals' API
|
|
1683
1683
|
constructor() {
|
|
1684
1684
|
super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this._size = "md", this._internals = this.attachInternals();
|
|
@@ -1687,13 +1687,13 @@ const H = (T = class extends u {
|
|
|
1687
1687
|
return this._size;
|
|
1688
1688
|
}
|
|
1689
1689
|
set size(e) {
|
|
1690
|
-
this._size =
|
|
1690
|
+
this._size = N.VALID_SIZES.includes(
|
|
1691
1691
|
e
|
|
1692
1692
|
) ? e : "md";
|
|
1693
1693
|
}
|
|
1694
1694
|
// Generate a unique ID if one is not provided
|
|
1695
1695
|
connectedCallback() {
|
|
1696
|
-
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${
|
|
1696
|
+
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${he++}`), this.addEventListener("nys-change", this._handleCheckboxChange), this.addEventListener("invalid", this._handleInvalid);
|
|
1697
1697
|
}
|
|
1698
1698
|
disconnectedCallback() {
|
|
1699
1699
|
super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleCheckboxChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -1720,7 +1720,7 @@ const H = (T = class extends u {
|
|
|
1720
1720
|
if (Array.from(
|
|
1721
1721
|
this.querySelectorAll("nys-checkbox")
|
|
1722
1722
|
).filter(
|
|
1723
|
-
(
|
|
1723
|
+
(k) => k.checked
|
|
1724
1724
|
).length === 0)
|
|
1725
1725
|
return c;
|
|
1726
1726
|
} else
|
|
@@ -1792,47 +1792,47 @@ const H = (T = class extends u {
|
|
|
1792
1792
|
></nys-errormessage>
|
|
1793
1793
|
</div>`;
|
|
1794
1794
|
}
|
|
1795
|
-
},
|
|
1796
|
-
|
|
1795
|
+
}, N.VALID_SIZES = ["sm", "md"], N.styles = T1, N.formAssociated = !0, N);
|
|
1796
|
+
T([
|
|
1797
1797
|
r({ type: String })
|
|
1798
|
-
],
|
|
1799
|
-
|
|
1798
|
+
], Z.prototype, "id", 2);
|
|
1799
|
+
T([
|
|
1800
1800
|
r({ type: String, reflect: !0 })
|
|
1801
|
-
],
|
|
1802
|
-
|
|
1801
|
+
], Z.prototype, "name", 2);
|
|
1802
|
+
T([
|
|
1803
1803
|
r({ type: Boolean, reflect: !0 })
|
|
1804
|
-
],
|
|
1805
|
-
|
|
1804
|
+
], Z.prototype, "required", 2);
|
|
1805
|
+
T([
|
|
1806
1806
|
r({ type: Boolean, reflect: !0 })
|
|
1807
|
-
],
|
|
1808
|
-
|
|
1807
|
+
], Z.prototype, "optional", 2);
|
|
1808
|
+
T([
|
|
1809
1809
|
r({ type: Boolean, reflect: !0 })
|
|
1810
|
-
],
|
|
1811
|
-
|
|
1810
|
+
], Z.prototype, "showError", 2);
|
|
1811
|
+
T([
|
|
1812
1812
|
r({ type: String })
|
|
1813
|
-
],
|
|
1814
|
-
|
|
1813
|
+
], Z.prototype, "errorMessage", 2);
|
|
1814
|
+
T([
|
|
1815
1815
|
r({ type: String })
|
|
1816
|
-
],
|
|
1817
|
-
|
|
1816
|
+
], Z.prototype, "label", 2);
|
|
1817
|
+
T([
|
|
1818
1818
|
r({ type: String })
|
|
1819
|
-
],
|
|
1820
|
-
|
|
1819
|
+
], Z.prototype, "description", 2);
|
|
1820
|
+
T([
|
|
1821
1821
|
r({ type: Boolean, reflect: !0 })
|
|
1822
|
-
],
|
|
1823
|
-
|
|
1822
|
+
], Z.prototype, "tile", 2);
|
|
1823
|
+
T([
|
|
1824
1824
|
r({ reflect: !0 })
|
|
1825
|
-
],
|
|
1826
|
-
let
|
|
1827
|
-
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup",
|
|
1828
|
-
var
|
|
1829
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
1825
|
+
], Z.prototype, "size", 1);
|
|
1826
|
+
let ye = Z;
|
|
1827
|
+
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", ye);
|
|
1828
|
+
var pe = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, M = (a, e, t, o) => {
|
|
1829
|
+
for (var s = o > 1 ? void 0 : o ? ue(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
1830
1830
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1831
|
-
return o && s &&
|
|
1831
|
+
return o && s && pe(e, t, s), s;
|
|
1832
1832
|
};
|
|
1833
|
-
let
|
|
1834
|
-
var
|
|
1835
|
-
const
|
|
1833
|
+
let fe = 0;
|
|
1834
|
+
var j;
|
|
1835
|
+
const S = (j = class extends p {
|
|
1836
1836
|
// allows use of elementInternals' API
|
|
1837
1837
|
constructor() {
|
|
1838
1838
|
super(), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this.showError = !1, this.errorMessage = "", this.groupExist = !1, this.tile = !1, this._size = "md", this._internals = this.attachInternals();
|
|
@@ -1841,7 +1841,7 @@ const k = (F = class extends u {
|
|
|
1841
1841
|
return this._size;
|
|
1842
1842
|
}
|
|
1843
1843
|
set size(e) {
|
|
1844
|
-
this._size =
|
|
1844
|
+
this._size = j.VALID_SIZES.includes(
|
|
1845
1845
|
e
|
|
1846
1846
|
) ? e : "md";
|
|
1847
1847
|
}
|
|
@@ -1851,7 +1851,7 @@ const k = (F = class extends u {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
// Generate a unique ID if one is not provided
|
|
1853
1853
|
connectedCallback() {
|
|
1854
|
-
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${
|
|
1854
|
+
super.connectedCallback(), this.id || (this.id = `nys-checkbox-${Date.now()}-${fe++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
1855
1855
|
}
|
|
1856
1856
|
disconnectedCallback() {
|
|
1857
1857
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -1989,49 +1989,49 @@ const k = (F = class extends u {
|
|
|
1989
1989
|
></nys-errormessage>` : ""}
|
|
1990
1990
|
`;
|
|
1991
1991
|
}
|
|
1992
|
-
},
|
|
1993
|
-
|
|
1992
|
+
}, j.VALID_SIZES = ["sm", "md"], j.styles = T1, j.formAssociated = !0, j);
|
|
1993
|
+
M([
|
|
1994
1994
|
r({ type: Boolean, reflect: !0 })
|
|
1995
|
-
],
|
|
1996
|
-
|
|
1995
|
+
], S.prototype, "checked", 2);
|
|
1996
|
+
M([
|
|
1997
1997
|
r({ type: Boolean, reflect: !0 })
|
|
1998
|
-
],
|
|
1999
|
-
|
|
1998
|
+
], S.prototype, "disabled", 2);
|
|
1999
|
+
M([
|
|
2000
2000
|
r({ type: Boolean, reflect: !0 })
|
|
2001
|
-
],
|
|
2002
|
-
|
|
2001
|
+
], S.prototype, "required", 2);
|
|
2002
|
+
M([
|
|
2003
2003
|
r({ type: String })
|
|
2004
|
-
],
|
|
2005
|
-
|
|
2004
|
+
], S.prototype, "label", 2);
|
|
2005
|
+
M([
|
|
2006
2006
|
r({ type: String })
|
|
2007
|
-
],
|
|
2008
|
-
|
|
2007
|
+
], S.prototype, "description", 2);
|
|
2008
|
+
M([
|
|
2009
2009
|
r({ type: String })
|
|
2010
|
-
],
|
|
2011
|
-
|
|
2010
|
+
], S.prototype, "id", 2);
|
|
2011
|
+
M([
|
|
2012
2012
|
r({ type: String, reflect: !0 })
|
|
2013
|
-
],
|
|
2014
|
-
|
|
2013
|
+
], S.prototype, "name", 2);
|
|
2014
|
+
M([
|
|
2015
2015
|
r({ type: String })
|
|
2016
|
-
],
|
|
2017
|
-
|
|
2016
|
+
], S.prototype, "value", 2);
|
|
2017
|
+
M([
|
|
2018
2018
|
r({ type: Boolean, reflect: !0 })
|
|
2019
|
-
],
|
|
2020
|
-
|
|
2019
|
+
], S.prototype, "showError", 2);
|
|
2020
|
+
M([
|
|
2021
2021
|
r({ type: String })
|
|
2022
|
-
],
|
|
2023
|
-
|
|
2022
|
+
], S.prototype, "errorMessage", 2);
|
|
2023
|
+
M([
|
|
2024
2024
|
r({ type: Boolean })
|
|
2025
|
-
],
|
|
2026
|
-
|
|
2025
|
+
], S.prototype, "groupExist", 2);
|
|
2026
|
+
M([
|
|
2027
2027
|
r({ type: Boolean, reflect: !0 })
|
|
2028
|
-
],
|
|
2029
|
-
|
|
2028
|
+
], S.prototype, "tile", 2);
|
|
2029
|
+
M([
|
|
2030
2030
|
r({ reflect: !0 })
|
|
2031
|
-
],
|
|
2032
|
-
let
|
|
2033
|
-
customElements.get("nys-checkbox") || customElements.define("nys-checkbox",
|
|
2034
|
-
const
|
|
2031
|
+
], S.prototype, "size", 1);
|
|
2032
|
+
let ge = S;
|
|
2033
|
+
customElements.get("nys-checkbox") || customElements.define("nys-checkbox", ge);
|
|
2034
|
+
const ve = u`
|
|
2035
2035
|
:host {
|
|
2036
2036
|
--_nys-errormessage-font-family: var(
|
|
2037
2037
|
--nys-font-family-ui,
|
|
@@ -2084,12 +2084,12 @@ const ae = g`
|
|
|
2084
2084
|
var(--_nys-errormessage-color);
|
|
2085
2085
|
}
|
|
2086
2086
|
`;
|
|
2087
|
-
var
|
|
2087
|
+
var Ce = Object.defineProperty, M1 = (a, e, t, o) => {
|
|
2088
2088
|
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
2089
2089
|
(i = a[n]) && (s = i(e, t, s) || s);
|
|
2090
|
-
return s &&
|
|
2090
|
+
return s && Ce(e, t, s), s;
|
|
2091
2091
|
};
|
|
2092
|
-
const
|
|
2092
|
+
const x1 = class x1 extends p {
|
|
2093
2093
|
// allows use of elementInternals' API
|
|
2094
2094
|
constructor() {
|
|
2095
2095
|
super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
|
|
@@ -2101,19 +2101,19 @@ const u1 = class u1 extends u {
|
|
|
2101
2101
|
</div>` : ""}`;
|
|
2102
2102
|
}
|
|
2103
2103
|
};
|
|
2104
|
-
|
|
2105
|
-
let
|
|
2106
|
-
|
|
2104
|
+
x1.styles = ve, x1.formAssociated = !0;
|
|
2105
|
+
let h1 = x1;
|
|
2106
|
+
M1([
|
|
2107
2107
|
r({ type: Boolean })
|
|
2108
|
-
],
|
|
2109
|
-
|
|
2108
|
+
], h1.prototype, "showError");
|
|
2109
|
+
M1([
|
|
2110
2110
|
r({ type: String })
|
|
2111
|
-
],
|
|
2112
|
-
|
|
2111
|
+
], h1.prototype, "errorMessage");
|
|
2112
|
+
M1([
|
|
2113
2113
|
r({ type: Boolean, reflect: !0 })
|
|
2114
|
-
],
|
|
2115
|
-
customElements.get("nys-errormessage") || customElements.define("nys-errormessage",
|
|
2116
|
-
const
|
|
2114
|
+
], h1.prototype, "showDivider");
|
|
2115
|
+
customElements.get("nys-errormessage") || customElements.define("nys-errormessage", h1);
|
|
2116
|
+
const be = {
|
|
2117
2117
|
png: [137, 80, 78, 71, 13, 10, 26, 10],
|
|
2118
2118
|
jpg: (a) => a.length >= 4 && a[0] === 255 && a[1] === 216 && a[2] === 255 && [224, 225, 219].includes(a[3]),
|
|
2119
2119
|
pdf: (a) => {
|
|
@@ -2137,14 +2137,14 @@ const ce = {
|
|
|
2137
2137
|
return !1;
|
|
2138
2138
|
}
|
|
2139
2139
|
};
|
|
2140
|
-
function
|
|
2140
|
+
function _e(a, e) {
|
|
2141
2141
|
if (typeof e == "function") return e(a);
|
|
2142
2142
|
if (a.length < e.length) return !1;
|
|
2143
2143
|
for (let t = 0; t < e.length; t++)
|
|
2144
2144
|
if (a[t] !== e[t]) return !1;
|
|
2145
2145
|
return !0;
|
|
2146
2146
|
}
|
|
2147
|
-
const
|
|
2147
|
+
const P1 = {
|
|
2148
2148
|
"image/png": ["png"],
|
|
2149
2149
|
"image/jpeg": ["jpg"],
|
|
2150
2150
|
"image/jpg": ["jpg"],
|
|
@@ -2158,21 +2158,21 @@ const V1 = {
|
|
|
2158
2158
|
".png": ["png"],
|
|
2159
2159
|
".mp4": ["mp4"]
|
|
2160
2160
|
};
|
|
2161
|
-
async function
|
|
2161
|
+
async function me(a, e) {
|
|
2162
2162
|
if (!e || e.trim() === "") return !0;
|
|
2163
2163
|
const o = await a.slice(0, 32).arrayBuffer(), s = new Uint8Array(o), i = e.toLowerCase().split(",").map((d) => d.trim()), c = /* @__PURE__ */ new Set();
|
|
2164
2164
|
for (const d of i)
|
|
2165
|
-
if (
|
|
2166
|
-
for (const
|
|
2167
|
-
c.add(
|
|
2165
|
+
if (P1[d])
|
|
2166
|
+
for (const b of P1[d])
|
|
2167
|
+
c.add(b);
|
|
2168
2168
|
i.some((d) => d.startsWith("image/")) && (c.add("png"), c.add("jpg")), i.some((d) => d.startsWith("video/")) && c.add("mp4");
|
|
2169
2169
|
for (const d of c) {
|
|
2170
|
-
const
|
|
2171
|
-
if (
|
|
2170
|
+
const b = be[d];
|
|
2171
|
+
if (b && _e(s, b)) return !0;
|
|
2172
2172
|
}
|
|
2173
2173
|
return c.size === 0;
|
|
2174
2174
|
}
|
|
2175
|
-
const
|
|
2175
|
+
const xe = u`
|
|
2176
2176
|
:host {
|
|
2177
2177
|
/* Global Fileinput Styles */
|
|
2178
2178
|
--_nys-fileinput-gap: var(--nys-space-100, 8px);
|
|
@@ -2286,7 +2286,7 @@ const ye = g`
|
|
|
2286
2286
|
progress::-webkit-progress-bar {
|
|
2287
2287
|
background: var(--_nys-fileinput-progress-background);
|
|
2288
2288
|
}
|
|
2289
|
-
`,
|
|
2289
|
+
`, we = u`
|
|
2290
2290
|
:host {
|
|
2291
2291
|
/* Global fileitem Styles */
|
|
2292
2292
|
--_nys-fileitem-items-radius: var(--nys-radius-md, 4px);
|
|
@@ -2404,12 +2404,12 @@ const ye = g`
|
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
2406
|
`;
|
|
2407
|
-
var
|
|
2407
|
+
var ke = Object.defineProperty, k1 = (a, e, t, o) => {
|
|
2408
2408
|
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
2409
2409
|
(i = a[n]) && (s = i(e, t, s) || s);
|
|
2410
|
-
return s &&
|
|
2410
|
+
return s && ke(e, t, s), s;
|
|
2411
2411
|
};
|
|
2412
|
-
const
|
|
2412
|
+
const D1 = class D1 extends p {
|
|
2413
2413
|
constructor() {
|
|
2414
2414
|
super(...arguments), this.filename = "", this.status = "pending", this.progress = 0, this.errorMessage = "";
|
|
2415
2415
|
}
|
|
@@ -2477,28 +2477,28 @@ const x1 = class x1 extends u {
|
|
|
2477
2477
|
`;
|
|
2478
2478
|
}
|
|
2479
2479
|
};
|
|
2480
|
-
|
|
2481
|
-
let
|
|
2482
|
-
|
|
2480
|
+
D1.styles = we;
|
|
2481
|
+
let n1 = D1;
|
|
2482
|
+
k1([
|
|
2483
2483
|
r({ type: String })
|
|
2484
|
-
],
|
|
2485
|
-
|
|
2484
|
+
], n1.prototype, "filename");
|
|
2485
|
+
k1([
|
|
2486
2486
|
r({ type: String })
|
|
2487
|
-
],
|
|
2488
|
-
|
|
2487
|
+
], n1.prototype, "status");
|
|
2488
|
+
k1([
|
|
2489
2489
|
r({ type: Number })
|
|
2490
|
-
],
|
|
2491
|
-
|
|
2490
|
+
], n1.prototype, "progress");
|
|
2491
|
+
k1([
|
|
2492
2492
|
r({ type: String })
|
|
2493
|
-
],
|
|
2494
|
-
customElements.define("nys-fileitem",
|
|
2495
|
-
var
|
|
2493
|
+
], n1.prototype, "errorMessage");
|
|
2494
|
+
customElements.define("nys-fileitem", n1);
|
|
2495
|
+
var Le = Object.defineProperty, z = (a, e, t, o) => {
|
|
2496
2496
|
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
2497
2497
|
(i = a[n]) && (s = i(e, t, s) || s);
|
|
2498
|
-
return s &&
|
|
2498
|
+
return s && Le(e, t, s), s;
|
|
2499
2499
|
};
|
|
2500
|
-
let
|
|
2501
|
-
const
|
|
2500
|
+
let Se = 0;
|
|
2501
|
+
const w1 = class w1 extends p {
|
|
2502
2502
|
// allows use of elementInternals' API
|
|
2503
2503
|
constructor() {
|
|
2504
2504
|
super(), this.id = "", this.name = "", this.label = "", this.description = "", this.multiple = !1, this.accept = "", this.disabled = !1, this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.dropzone = !1, this.width = "full", this._selectedFiles = [], this._dragActive = !1, this._internals = this.attachInternals();
|
|
@@ -2508,7 +2508,7 @@ const p1 = class p1 extends u {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
// Generate a unique ID if one is not provided
|
|
2510
2510
|
connectedCallback() {
|
|
2511
|
-
super.connectedCallback(), this.id || (this.id = `nys-fileinput-${Date.now()}-${
|
|
2511
|
+
super.connectedCallback(), this.id || (this.id = `nys-fileinput-${Date.now()}-${Se++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
2512
2512
|
}
|
|
2513
2513
|
disconnectedCallback() {
|
|
2514
2514
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -2575,7 +2575,7 @@ const p1 = class p1 extends u {
|
|
|
2575
2575
|
async _processFile(e) {
|
|
2576
2576
|
e.status = "processing";
|
|
2577
2577
|
try {
|
|
2578
|
-
if (!await
|
|
2578
|
+
if (!await me(e.file, this.accept)) {
|
|
2579
2579
|
e.status = "error", e.errorMsg = "File format does not match expected type.", this.requestUpdate();
|
|
2580
2580
|
return;
|
|
2581
2581
|
}
|
|
@@ -2735,49 +2735,49 @@ const p1 = class p1 extends u {
|
|
|
2735
2735
|
</div>`;
|
|
2736
2736
|
}
|
|
2737
2737
|
};
|
|
2738
|
-
|
|
2739
|
-
let
|
|
2740
|
-
|
|
2738
|
+
w1.styles = xe, w1.formAssociated = !0;
|
|
2739
|
+
let x = w1;
|
|
2740
|
+
z([
|
|
2741
2741
|
r({ type: String })
|
|
2742
|
-
],
|
|
2743
|
-
|
|
2742
|
+
], x.prototype, "id");
|
|
2743
|
+
z([
|
|
2744
2744
|
r({ type: String, reflect: !0 })
|
|
2745
|
-
],
|
|
2746
|
-
|
|
2745
|
+
], x.prototype, "name");
|
|
2746
|
+
z([
|
|
2747
2747
|
r({ type: String })
|
|
2748
|
-
],
|
|
2749
|
-
|
|
2748
|
+
], x.prototype, "label");
|
|
2749
|
+
z([
|
|
2750
2750
|
r({ type: String })
|
|
2751
|
-
],
|
|
2752
|
-
|
|
2751
|
+
], x.prototype, "description");
|
|
2752
|
+
z([
|
|
2753
2753
|
r({ type: Boolean })
|
|
2754
|
-
],
|
|
2755
|
-
|
|
2754
|
+
], x.prototype, "multiple");
|
|
2755
|
+
z([
|
|
2756
2756
|
r({ type: String })
|
|
2757
|
-
],
|
|
2758
|
-
|
|
2757
|
+
], x.prototype, "accept");
|
|
2758
|
+
z([
|
|
2759
2759
|
r({ type: Boolean, reflect: !0 })
|
|
2760
|
-
],
|
|
2761
|
-
|
|
2760
|
+
], x.prototype, "disabled");
|
|
2761
|
+
z([
|
|
2762
2762
|
r({ type: Boolean, reflect: !0 })
|
|
2763
|
-
],
|
|
2764
|
-
|
|
2763
|
+
], x.prototype, "required");
|
|
2764
|
+
z([
|
|
2765
2765
|
r({ type: Boolean, reflect: !0 })
|
|
2766
|
-
],
|
|
2767
|
-
|
|
2766
|
+
], x.prototype, "optional");
|
|
2767
|
+
z([
|
|
2768
2768
|
r({ type: Boolean, reflect: !0 })
|
|
2769
|
-
],
|
|
2770
|
-
|
|
2769
|
+
], x.prototype, "showError");
|
|
2770
|
+
z([
|
|
2771
2771
|
r({ type: String })
|
|
2772
|
-
],
|
|
2773
|
-
|
|
2772
|
+
], x.prototype, "errorMessage");
|
|
2773
|
+
z([
|
|
2774
2774
|
r({ type: Boolean })
|
|
2775
|
-
],
|
|
2776
|
-
|
|
2775
|
+
], x.prototype, "dropzone");
|
|
2776
|
+
z([
|
|
2777
2777
|
r({ type: String, reflect: !0 })
|
|
2778
|
-
],
|
|
2779
|
-
customElements.get("nys-fileinput") || customElements.define("nys-fileinput",
|
|
2780
|
-
const
|
|
2778
|
+
], x.prototype, "width");
|
|
2779
|
+
customElements.get("nys-fileinput") || customElements.define("nys-fileinput", x);
|
|
2780
|
+
const $e = {
|
|
2781
2781
|
// --------- UX Team Main Library (below) --------- //
|
|
2782
2782
|
// *** CORE *** //
|
|
2783
2783
|
account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -3309,7 +3309,7 @@ const ve = {
|
|
|
3309
3309
|
<path d="M6.30002 22.7751C5.43369 22.7751 4.69211 22.4667 4.07527 21.8498C3.45844 21.2328 3.15002 20.4913 3.15002 19.6251V10.2251C3.15002 9.35893 3.45844 8.61735 4.07527 8.00035C4.69211 7.38351 5.43369 7.0751 6.30002 7.0751H6.62502V5.8001C6.62502 4.28343 7.14586 2.99593 8.18752 1.9376C9.22919 0.879264 10.5 0.350098 12 0.350098C13.5 0.350098 14.7709 0.879264 15.8125 1.9376C16.8542 2.99593 17.375 4.28343 17.375 5.8001V7.0751H17.7C18.5662 7.0751 19.3078 7.38351 19.9248 8.00035C20.5416 8.61735 20.85 9.35893 20.85 10.2251V19.6251C20.85 20.4913 20.5416 21.2328 19.9248 21.8498C19.3078 22.4667 18.5662 22.7751 17.7 22.7751H6.30002ZM12 16.9251C12.55 16.9251 13.0209 16.7293 13.4125 16.3376C13.8042 15.9459 14 15.4751 14 14.9251C14 14.3751 13.8042 13.9043 13.4125 13.5126C13.0209 13.1209 12.55 12.9251 12 12.9251C11.45 12.9251 10.9792 13.1209 10.5875 13.5126C10.1959 13.9043 10 14.3751 10 14.9251C10 15.4751 10.1959 15.9459 10.5875 16.3376C10.9792 16.7293 11.45 16.9251 12 16.9251ZM9.77502 7.0751H14.225V5.8001C14.225 5.16126 14.0125 4.61818 13.5875 4.17085C13.1625 3.72368 12.6334 3.5001 12 3.5001C11.3667 3.5001 10.8375 3.72368 10.4125 4.17085C9.98752 4.61818 9.77502 5.16126 9.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
3310
3310
|
</g>
|
|
3311
3311
|
</svg>`
|
|
3312
|
-
},
|
|
3312
|
+
}, Me = u`
|
|
3313
3313
|
:host {
|
|
3314
3314
|
display: inline-block;
|
|
3315
3315
|
--_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. */
|
|
@@ -3410,12 +3410,12 @@ const ve = {
|
|
|
3410
3410
|
transform: scale(-1, -1);
|
|
3411
3411
|
}
|
|
3412
3412
|
`;
|
|
3413
|
-
var
|
|
3414
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
3413
|
+
var ze = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, p1 = (a, e, t, o) => {
|
|
3414
|
+
for (var s = o > 1 ? void 0 : o ? Ve(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
3415
3415
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3416
|
-
return o && s &&
|
|
3417
|
-
},
|
|
3418
|
-
const
|
|
3416
|
+
return o && s && ze(e, t, s), s;
|
|
3417
|
+
}, t1;
|
|
3418
|
+
const a1 = (t1 = class extends p {
|
|
3419
3419
|
constructor() {
|
|
3420
3420
|
super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
|
|
3421
3421
|
}
|
|
@@ -3423,12 +3423,12 @@ const s1 = (Q = class extends u {
|
|
|
3423
3423
|
return this._size;
|
|
3424
3424
|
}
|
|
3425
3425
|
set size(e) {
|
|
3426
|
-
this._size =
|
|
3426
|
+
this._size = t1.VALID_TYPES.includes(
|
|
3427
3427
|
e
|
|
3428
3428
|
) ? e : "sm";
|
|
3429
3429
|
}
|
|
3430
3430
|
getIcon() {
|
|
3431
|
-
const e =
|
|
3431
|
+
const e = $e[this.name];
|
|
3432
3432
|
if (!e) return null;
|
|
3433
3433
|
const s = new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
|
|
3434
3434
|
return s instanceof SVGElement ? (s.setAttribute("role", "img"), this.label ? (s.setAttribute("aria-label", this.label), s.removeAttribute("aria-hidden")) : (s.setAttribute("aria-hidden", "true"), s.removeAttribute("aria-label")), s.style.rotate = `${this.rotate}deg`, s.style.color = this.color || "currentcolor", s.classList.add(`nys-icon--${this.size}`), s.classList.add("nys-icon--svg"), this.flip && s.classList.add(`nys-icon--flip-${this.flip}`), s) : null;
|
|
@@ -3437,7 +3437,7 @@ const s1 = (Q = class extends u {
|
|
|
3437
3437
|
const e = this.getIcon();
|
|
3438
3438
|
return e ? l`${e}` : null;
|
|
3439
3439
|
}
|
|
3440
|
-
},
|
|
3440
|
+
}, t1.styles = Me, t1.VALID_TYPES = [
|
|
3441
3441
|
"2xs",
|
|
3442
3442
|
"xs",
|
|
3443
3443
|
"sm",
|
|
@@ -3454,28 +3454,28 @@ const s1 = (Q = class extends u {
|
|
|
3454
3454
|
"40",
|
|
3455
3455
|
"48",
|
|
3456
3456
|
"64"
|
|
3457
|
-
],
|
|
3458
|
-
|
|
3457
|
+
], t1);
|
|
3458
|
+
p1([
|
|
3459
3459
|
r({ type: String, reflect: !0 })
|
|
3460
|
-
],
|
|
3461
|
-
|
|
3460
|
+
], a1.prototype, "name", 2);
|
|
3461
|
+
p1([
|
|
3462
3462
|
r({ type: String })
|
|
3463
|
-
],
|
|
3464
|
-
|
|
3463
|
+
], a1.prototype, "label", 2);
|
|
3464
|
+
p1([
|
|
3465
3465
|
r({ type: String })
|
|
3466
|
-
],
|
|
3467
|
-
|
|
3466
|
+
], a1.prototype, "rotate", 2);
|
|
3467
|
+
p1([
|
|
3468
3468
|
r({ type: String })
|
|
3469
|
-
],
|
|
3470
|
-
|
|
3469
|
+
], a1.prototype, "flip", 2);
|
|
3470
|
+
p1([
|
|
3471
3471
|
r({ type: String })
|
|
3472
|
-
],
|
|
3473
|
-
|
|
3472
|
+
], a1.prototype, "color", 2);
|
|
3473
|
+
p1([
|
|
3474
3474
|
r({ reflect: !0 })
|
|
3475
|
-
],
|
|
3476
|
-
let
|
|
3477
|
-
customElements.get("nys-icon") || customElements.define("nys-icon",
|
|
3478
|
-
const
|
|
3475
|
+
], a1.prototype, "size", 1);
|
|
3476
|
+
let De = a1;
|
|
3477
|
+
customElements.get("nys-icon") || customElements.define("nys-icon", De);
|
|
3478
|
+
const Ee = u`
|
|
3479
3479
|
:host {
|
|
3480
3480
|
/* Label Typography */
|
|
3481
3481
|
--_nys-label-font-family: var(
|
|
@@ -3549,12 +3549,12 @@ const xe = g`
|
|
|
3549
3549
|
color: var(--nys-optional-font-color);
|
|
3550
3550
|
}
|
|
3551
3551
|
`;
|
|
3552
|
-
var
|
|
3552
|
+
var He = Object.defineProperty, L1 = (a, e, t, o) => {
|
|
3553
3553
|
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
3554
3554
|
(i = a[n]) && (s = i(e, t, s) || s);
|
|
3555
|
-
return s &&
|
|
3555
|
+
return s && He(e, t, s), s;
|
|
3556
3556
|
};
|
|
3557
|
-
const
|
|
3557
|
+
const E1 = class E1 extends p {
|
|
3558
3558
|
constructor() {
|
|
3559
3559
|
super(...arguments), this.id = "", this.label = "", this.description = "", this.flag = "";
|
|
3560
3560
|
}
|
|
@@ -3573,22 +3573,22 @@ const w1 = class w1 extends u {
|
|
|
3573
3573
|
`;
|
|
3574
3574
|
}
|
|
3575
3575
|
};
|
|
3576
|
-
|
|
3577
|
-
let
|
|
3578
|
-
|
|
3576
|
+
E1.styles = Ee;
|
|
3577
|
+
let i1 = E1;
|
|
3578
|
+
L1([
|
|
3579
3579
|
r({ type: String })
|
|
3580
|
-
],
|
|
3581
|
-
|
|
3580
|
+
], i1.prototype, "id");
|
|
3581
|
+
L1([
|
|
3582
3582
|
r({ type: String })
|
|
3583
|
-
],
|
|
3584
|
-
|
|
3583
|
+
], i1.prototype, "label");
|
|
3584
|
+
L1([
|
|
3585
3585
|
r({ type: String })
|
|
3586
|
-
],
|
|
3587
|
-
|
|
3586
|
+
], i1.prototype, "description");
|
|
3587
|
+
L1([
|
|
3588
3588
|
r({ type: String })
|
|
3589
|
-
],
|
|
3590
|
-
customElements.get("nys-label") || customElements.define("nys-label",
|
|
3591
|
-
const
|
|
3589
|
+
], i1.prototype, "flag");
|
|
3590
|
+
customElements.get("nys-label") || customElements.define("nys-label", i1);
|
|
3591
|
+
const R1 = u`
|
|
3592
3592
|
:host {
|
|
3593
3593
|
/* Global Radiobutton Styles */
|
|
3594
3594
|
--_nys-radiobutton-size: var(--nys-size-400, 32px);
|
|
@@ -3941,14 +3941,14 @@ const E1 = g`
|
|
|
3941
3941
|
cursor: not-allowed;
|
|
3942
3942
|
}
|
|
3943
3943
|
`;
|
|
3944
|
-
var
|
|
3945
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
3944
|
+
var Ae = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, I = (a, e, t, o) => {
|
|
3945
|
+
for (var s = o > 1 ? void 0 : o ? Ze(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
3946
3946
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
3947
|
-
return o && s &&
|
|
3947
|
+
return o && s && Ae(e, t, s), s;
|
|
3948
3948
|
};
|
|
3949
|
-
let
|
|
3950
|
-
var
|
|
3951
|
-
const
|
|
3949
|
+
let Ie = 0;
|
|
3950
|
+
var G;
|
|
3951
|
+
const D = (G = class extends p {
|
|
3952
3952
|
// allows use of elementInternals' API
|
|
3953
3953
|
constructor() {
|
|
3954
3954
|
super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.selectedValue = null, this._size = "md", this.tile = !1, this._internals = this.attachInternals();
|
|
@@ -3957,13 +3957,13 @@ const M = (N = class extends u {
|
|
|
3957
3957
|
return this._size;
|
|
3958
3958
|
}
|
|
3959
3959
|
set size(e) {
|
|
3960
|
-
this._size =
|
|
3960
|
+
this._size = G.VALID_SIZES.includes(
|
|
3961
3961
|
e
|
|
3962
3962
|
) ? e : "md";
|
|
3963
3963
|
}
|
|
3964
3964
|
// Generate a unique ID if one is not provided
|
|
3965
3965
|
connectedCallback() {
|
|
3966
|
-
super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${
|
|
3966
|
+
super.connectedCallback(), this.id || (this.id = `nys-radiogroup-${Date.now()}-${Ie++}`), this.addEventListener("nys-change", this._handleRadioButtonChange), this.addEventListener("invalid", this._handleInvalid);
|
|
3967
3967
|
}
|
|
3968
3968
|
disconnectedCallback() {
|
|
3969
3969
|
super.disconnectedCallback(), this.removeEventListener("nys-change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4066,50 +4066,50 @@ const M = (N = class extends u {
|
|
|
4066
4066
|
></nys-errormessage>
|
|
4067
4067
|
</div>`;
|
|
4068
4068
|
}
|
|
4069
|
-
},
|
|
4070
|
-
|
|
4069
|
+
}, G.VALID_SIZES = ["sm", "md"], G.styles = R1, G.formAssociated = !0, G);
|
|
4070
|
+
I([
|
|
4071
4071
|
r({ type: String })
|
|
4072
|
-
],
|
|
4073
|
-
|
|
4072
|
+
], D.prototype, "id", 2);
|
|
4073
|
+
I([
|
|
4074
4074
|
r({ type: String, reflect: !0 })
|
|
4075
|
-
],
|
|
4076
|
-
|
|
4075
|
+
], D.prototype, "name", 2);
|
|
4076
|
+
I([
|
|
4077
4077
|
r({ type: Boolean, reflect: !0 })
|
|
4078
|
-
],
|
|
4079
|
-
|
|
4078
|
+
], D.prototype, "required", 2);
|
|
4079
|
+
I([
|
|
4080
4080
|
r({ type: Boolean, reflect: !0 })
|
|
4081
|
-
],
|
|
4082
|
-
|
|
4081
|
+
], D.prototype, "optional", 2);
|
|
4082
|
+
I([
|
|
4083
4083
|
r({ type: Boolean, reflect: !0 })
|
|
4084
|
-
],
|
|
4085
|
-
|
|
4084
|
+
], D.prototype, "showError", 2);
|
|
4085
|
+
I([
|
|
4086
4086
|
r({ type: String })
|
|
4087
|
-
],
|
|
4088
|
-
|
|
4087
|
+
], D.prototype, "errorMessage", 2);
|
|
4088
|
+
I([
|
|
4089
4089
|
r({ type: String })
|
|
4090
|
-
],
|
|
4091
|
-
|
|
4090
|
+
], D.prototype, "label", 2);
|
|
4091
|
+
I([
|
|
4092
4092
|
r({ type: String })
|
|
4093
|
-
],
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
],
|
|
4097
|
-
|
|
4093
|
+
], D.prototype, "description", 2);
|
|
4094
|
+
I([
|
|
4095
|
+
O()
|
|
4096
|
+
], D.prototype, "selectedValue", 2);
|
|
4097
|
+
I([
|
|
4098
4098
|
r({ reflect: !0 })
|
|
4099
|
-
],
|
|
4100
|
-
|
|
4099
|
+
], D.prototype, "size", 1);
|
|
4100
|
+
I([
|
|
4101
4101
|
r({ type: Boolean, reflect: !0 })
|
|
4102
|
-
],
|
|
4103
|
-
let
|
|
4104
|
-
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup",
|
|
4105
|
-
var
|
|
4106
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
4102
|
+
], D.prototype, "tile", 2);
|
|
4103
|
+
let Be = D;
|
|
4104
|
+
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", Be);
|
|
4105
|
+
var qe = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, R = (a, e, t, o) => {
|
|
4106
|
+
for (var s = o > 1 ? void 0 : o ? Ue(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
4107
4107
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4108
|
-
return o && s &&
|
|
4108
|
+
return o && s && qe(e, t, s), s;
|
|
4109
4109
|
};
|
|
4110
|
-
let
|
|
4110
|
+
let Oe = 0;
|
|
4111
4111
|
var y;
|
|
4112
|
-
const
|
|
4112
|
+
const B = (y = class extends p {
|
|
4113
4113
|
constructor() {
|
|
4114
4114
|
super(...arguments), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this._size = "md", this.tile = !1;
|
|
4115
4115
|
}
|
|
@@ -4132,7 +4132,7 @@ const I = (y = class extends u {
|
|
|
4132
4132
|
/********************** Lifecycle updates **********************/
|
|
4133
4133
|
// Generate a unique ID if one is not provided
|
|
4134
4134
|
connectedCallback() {
|
|
4135
|
-
super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${
|
|
4135
|
+
super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${Oe++}`), this.checked && (y.buttonGroup[this.name] && (y.buttonGroup[this.name].checked = !1, y.buttonGroup[this.name].requestUpdate()), y.buttonGroup[this.name] = this);
|
|
4136
4136
|
}
|
|
4137
4137
|
updated(e) {
|
|
4138
4138
|
e.has("checked") && this.checked && y.buttonGroup[this.name] !== this && (y.buttonGroup[this.name] && (y.buttonGroup[this.name].checked = !1, y.buttonGroup[this.name].requestUpdate()), y.buttonGroup[this.name] = this);
|
|
@@ -4207,40 +4207,40 @@ const I = (y = class extends u {
|
|
|
4207
4207
|
</label>
|
|
4208
4208
|
`;
|
|
4209
4209
|
}
|
|
4210
|
-
}, y.VALID_SIZES = ["sm", "md"], y.buttonGroup = {}, y.styles =
|
|
4211
|
-
|
|
4210
|
+
}, y.VALID_SIZES = ["sm", "md"], y.buttonGroup = {}, y.styles = R1, y);
|
|
4211
|
+
R([
|
|
4212
4212
|
r({ type: Boolean, reflect: !0 })
|
|
4213
|
-
],
|
|
4214
|
-
|
|
4213
|
+
], B.prototype, "checked", 2);
|
|
4214
|
+
R([
|
|
4215
4215
|
r({ type: Boolean, reflect: !0 })
|
|
4216
|
-
],
|
|
4217
|
-
|
|
4216
|
+
], B.prototype, "disabled", 2);
|
|
4217
|
+
R([
|
|
4218
4218
|
r({ type: Boolean, reflect: !0 })
|
|
4219
|
-
],
|
|
4220
|
-
|
|
4219
|
+
], B.prototype, "required", 2);
|
|
4220
|
+
R([
|
|
4221
4221
|
r({ type: String })
|
|
4222
|
-
],
|
|
4223
|
-
|
|
4222
|
+
], B.prototype, "label", 2);
|
|
4223
|
+
R([
|
|
4224
4224
|
r({ type: String })
|
|
4225
|
-
],
|
|
4226
|
-
|
|
4225
|
+
], B.prototype, "description", 2);
|
|
4226
|
+
R([
|
|
4227
4227
|
r({ type: String })
|
|
4228
|
-
],
|
|
4229
|
-
|
|
4228
|
+
], B.prototype, "id", 2);
|
|
4229
|
+
R([
|
|
4230
4230
|
r({ type: String, reflect: !0 })
|
|
4231
|
-
],
|
|
4232
|
-
|
|
4231
|
+
], B.prototype, "name", 2);
|
|
4232
|
+
R([
|
|
4233
4233
|
r({ type: String })
|
|
4234
|
-
],
|
|
4235
|
-
|
|
4234
|
+
], B.prototype, "value", 2);
|
|
4235
|
+
R([
|
|
4236
4236
|
r({ reflect: !0 })
|
|
4237
|
-
],
|
|
4238
|
-
|
|
4237
|
+
], B.prototype, "size", 1);
|
|
4238
|
+
R([
|
|
4239
4239
|
r({ type: Boolean, reflect: !0 })
|
|
4240
|
-
],
|
|
4241
|
-
let
|
|
4242
|
-
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton",
|
|
4243
|
-
const
|
|
4240
|
+
], B.prototype, "tile", 2);
|
|
4241
|
+
let Pe = B;
|
|
4242
|
+
customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", Pe);
|
|
4243
|
+
const Te = u`
|
|
4244
4244
|
:host {
|
|
4245
4245
|
/* Global Select Styles */
|
|
4246
4246
|
--_nys-select-width: 100%;
|
|
@@ -4388,12 +4388,12 @@ const Ee = g`
|
|
|
4388
4388
|
var(--_nys-select-error-color);
|
|
4389
4389
|
}
|
|
4390
4390
|
`;
|
|
4391
|
-
var
|
|
4391
|
+
var Re = Object.defineProperty, v1 = (a, e, t, o) => {
|
|
4392
4392
|
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
4393
4393
|
(i = a[n]) && (s = i(e, t, s) || s);
|
|
4394
|
-
return s &&
|
|
4394
|
+
return s && Re(e, t, s), s;
|
|
4395
4395
|
};
|
|
4396
|
-
class
|
|
4396
|
+
class l1 extends p {
|
|
4397
4397
|
constructor() {
|
|
4398
4398
|
super(...arguments), this.disabled = !1, this.selected = !1, this.value = "", this.label = "", this.hidden = !1;
|
|
4399
4399
|
}
|
|
@@ -4420,30 +4420,30 @@ class o1 extends u {
|
|
|
4420
4420
|
`;
|
|
4421
4421
|
}
|
|
4422
4422
|
}
|
|
4423
|
-
|
|
4423
|
+
v1([
|
|
4424
4424
|
r({ type: Boolean, reflect: !0 })
|
|
4425
|
-
],
|
|
4426
|
-
|
|
4425
|
+
], l1.prototype, "disabled");
|
|
4426
|
+
v1([
|
|
4427
4427
|
r({ type: Boolean, reflect: !0 })
|
|
4428
|
-
],
|
|
4429
|
-
|
|
4428
|
+
], l1.prototype, "selected");
|
|
4429
|
+
v1([
|
|
4430
4430
|
r({ type: String })
|
|
4431
|
-
],
|
|
4432
|
-
|
|
4431
|
+
], l1.prototype, "value");
|
|
4432
|
+
v1([
|
|
4433
4433
|
r({ type: String })
|
|
4434
|
-
],
|
|
4435
|
-
|
|
4434
|
+
], l1.prototype, "label");
|
|
4435
|
+
v1([
|
|
4436
4436
|
r({ type: Boolean, reflect: !0 })
|
|
4437
|
-
],
|
|
4438
|
-
customElements.define("nys-option",
|
|
4439
|
-
var
|
|
4440
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
4437
|
+
], l1.prototype, "hidden");
|
|
4438
|
+
customElements.define("nys-option", l1);
|
|
4439
|
+
var Fe = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, E = (a, e, t, o) => {
|
|
4440
|
+
for (var s = o > 1 ? void 0 : o ? Ne(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
4441
4441
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4442
|
-
return o && s &&
|
|
4442
|
+
return o && s && Fe(e, t, s), s;
|
|
4443
4443
|
};
|
|
4444
|
-
let
|
|
4445
|
-
var
|
|
4446
|
-
const
|
|
4444
|
+
let je = 0;
|
|
4445
|
+
var Y;
|
|
4446
|
+
const V = (Y = class extends p {
|
|
4447
4447
|
// allows use of elementInternals' API
|
|
4448
4448
|
constructor() {
|
|
4449
4449
|
super(), this.id = "", this.name = "", this.label = "", this.description = "", this.value = "", this.disabled = !1, this.required = !1, this.optional = !1, this.form = "", this.showError = !1, this.errorMessage = "", this._width = "md", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
@@ -4452,13 +4452,13 @@ const D = (j = class extends u {
|
|
|
4452
4452
|
return this._width;
|
|
4453
4453
|
}
|
|
4454
4454
|
set width(e) {
|
|
4455
|
-
this._width =
|
|
4455
|
+
this._width = Y.VALID_WIDTHS.includes(
|
|
4456
4456
|
e
|
|
4457
4457
|
) ? e : "full";
|
|
4458
4458
|
}
|
|
4459
4459
|
// Generate a unique ID if one is not provided
|
|
4460
4460
|
connectedCallback() {
|
|
4461
|
-
super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${
|
|
4461
|
+
super.connectedCallback(), this.id || (this.id = `nys-select-${Date.now()}-${je++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
4462
4462
|
}
|
|
4463
4463
|
disconnectedCallback() {
|
|
4464
4464
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -4478,7 +4478,7 @@ const D = (j = class extends u {
|
|
|
4478
4478
|
if (!e || !t) return;
|
|
4479
4479
|
t.querySelectorAll("option:not([hidden])").forEach((i) => i.remove()), e.assignedElements({ flatten: !0 }).forEach((i) => {
|
|
4480
4480
|
var c;
|
|
4481
|
-
if (i instanceof
|
|
4481
|
+
if (i instanceof l1) {
|
|
4482
4482
|
const d = document.createElement("option");
|
|
4483
4483
|
d.value = i.value, d.textContent = i.label || ((c = i.textContent) == null ? void 0 : c.trim()) || "", d.disabled = i.disabled, d.selected = i.selected, t.appendChild(d);
|
|
4484
4484
|
}
|
|
@@ -4601,46 +4601,46 @@ const D = (j = class extends u {
|
|
|
4601
4601
|
</div>
|
|
4602
4602
|
`;
|
|
4603
4603
|
}
|
|
4604
|
-
},
|
|
4605
|
-
|
|
4604
|
+
}, Y.VALID_WIDTHS = ["sm", "md", "lg", "full"], Y.styles = Te, Y.formAssociated = !0, Y);
|
|
4605
|
+
E([
|
|
4606
4606
|
r({ type: String })
|
|
4607
|
-
],
|
|
4608
|
-
|
|
4607
|
+
], V.prototype, "id", 2);
|
|
4608
|
+
E([
|
|
4609
4609
|
r({ type: String, reflect: !0 })
|
|
4610
|
-
],
|
|
4611
|
-
|
|
4610
|
+
], V.prototype, "name", 2);
|
|
4611
|
+
E([
|
|
4612
4612
|
r({ type: String })
|
|
4613
|
-
],
|
|
4614
|
-
|
|
4613
|
+
], V.prototype, "label", 2);
|
|
4614
|
+
E([
|
|
4615
4615
|
r({ type: String })
|
|
4616
|
-
],
|
|
4617
|
-
|
|
4616
|
+
], V.prototype, "description", 2);
|
|
4617
|
+
E([
|
|
4618
4618
|
r({ type: String })
|
|
4619
|
-
],
|
|
4620
|
-
|
|
4619
|
+
], V.prototype, "value", 2);
|
|
4620
|
+
E([
|
|
4621
4621
|
r({ type: Boolean, reflect: !0 })
|
|
4622
|
-
],
|
|
4623
|
-
|
|
4622
|
+
], V.prototype, "disabled", 2);
|
|
4623
|
+
E([
|
|
4624
4624
|
r({ type: Boolean, reflect: !0 })
|
|
4625
|
-
],
|
|
4626
|
-
|
|
4625
|
+
], V.prototype, "required", 2);
|
|
4626
|
+
E([
|
|
4627
4627
|
r({ type: Boolean, reflect: !0 })
|
|
4628
|
-
],
|
|
4629
|
-
|
|
4628
|
+
], V.prototype, "optional", 2);
|
|
4629
|
+
E([
|
|
4630
4630
|
r({ type: String })
|
|
4631
|
-
],
|
|
4632
|
-
|
|
4631
|
+
], V.prototype, "form", 2);
|
|
4632
|
+
E([
|
|
4633
4633
|
r({ type: Boolean, reflect: !0 })
|
|
4634
|
-
],
|
|
4635
|
-
|
|
4634
|
+
], V.prototype, "showError", 2);
|
|
4635
|
+
E([
|
|
4636
4636
|
r({ type: String })
|
|
4637
|
-
],
|
|
4638
|
-
|
|
4637
|
+
], V.prototype, "errorMessage", 2);
|
|
4638
|
+
E([
|
|
4639
4639
|
r({ reflect: !0 })
|
|
4640
|
-
],
|
|
4641
|
-
let
|
|
4642
|
-
customElements.get("nys-select") || customElements.define("nys-select",
|
|
4643
|
-
const
|
|
4640
|
+
], V.prototype, "width", 1);
|
|
4641
|
+
let Ge = V;
|
|
4642
|
+
customElements.get("nys-select") || customElements.define("nys-select", Ge);
|
|
4643
|
+
const Ye = u`
|
|
4644
4644
|
:host {
|
|
4645
4645
|
/* Global Skipnav Styles */
|
|
4646
4646
|
--_nys-skipnav-padding-vertical: var(--nys-space-100, 8px);
|
|
@@ -4713,12 +4713,12 @@ const qe = g`
|
|
|
4713
4713
|
outline: none;
|
|
4714
4714
|
}
|
|
4715
4715
|
`;
|
|
4716
|
-
var
|
|
4716
|
+
var Ke = Object.defineProperty, F1 = (a, e, t, o) => {
|
|
4717
4717
|
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
4718
4718
|
(i = a[n]) && (s = i(e, t, s) || s);
|
|
4719
|
-
return s &&
|
|
4719
|
+
return s && Ke(e, t, s), s;
|
|
4720
4720
|
};
|
|
4721
|
-
const
|
|
4721
|
+
const H1 = class H1 extends p {
|
|
4722
4722
|
constructor() {
|
|
4723
4723
|
super(), this.id = "", this.href = "";
|
|
4724
4724
|
}
|
|
@@ -4759,16 +4759,589 @@ const k1 = class k1 extends u {
|
|
|
4759
4759
|
`;
|
|
4760
4760
|
}
|
|
4761
4761
|
};
|
|
4762
|
-
|
|
4763
|
-
let
|
|
4764
|
-
|
|
4762
|
+
H1.styles = Ye;
|
|
4763
|
+
let g1 = H1;
|
|
4764
|
+
F1([
|
|
4765
|
+
r({ type: String })
|
|
4766
|
+
], g1.prototype, "id");
|
|
4767
|
+
F1([
|
|
4768
|
+
r({ type: String })
|
|
4769
|
+
], g1.prototype, "href");
|
|
4770
|
+
customElements.get("nys-skipnav") || customElements.define("nys-skipnav", g1);
|
|
4771
|
+
const N1 = u`
|
|
4772
|
+
:host {
|
|
4773
|
+
/* Anything that can be overridden should be defined here */
|
|
4774
|
+
|
|
4775
|
+
/* Global Stepper Styles */
|
|
4776
|
+
|
|
4777
|
+
/* Typography */
|
|
4778
|
+
--_nys-stepper-font-size: var(--nys-font-size-ui-md, 16px);
|
|
4779
|
+
--_nys-stepper-font-weight: var(--nys-font-weight-semibold, 600);
|
|
4780
|
+
--_nys-stepper-line-height: var(--nys-font-lineheight-ui-md, 24px);
|
|
4781
|
+
--_nys-stepper-font-family: var(
|
|
4782
|
+
--nys-font-family-ui,
|
|
4783
|
+
var(
|
|
4784
|
+
--nys-font-family-sans,
|
|
4785
|
+
"Proxima Nova",
|
|
4786
|
+
"Helvetica Neue",
|
|
4787
|
+
"Helvetica",
|
|
4788
|
+
"Arial",
|
|
4789
|
+
sans-serif
|
|
4790
|
+
)
|
|
4791
|
+
);
|
|
4792
|
+
}
|
|
4793
|
+
|
|
4794
|
+
.nys-stepper {
|
|
4795
|
+
font-family: var(--_nys-stepper-font-family);
|
|
4796
|
+
font-size: var(--_nys-stepper-font-size);
|
|
4797
|
+
font-weight: var(--_nys-stepper-font-weight);
|
|
4798
|
+
line-height: var(--_nys-stepper-line-height);
|
|
4799
|
+
display: flex;
|
|
4800
|
+
flex-direction: column;
|
|
4801
|
+
counter-reset: step;
|
|
4802
|
+
background: var(--nys-color-surface-raised, #f6f6f6);
|
|
4803
|
+
height: -webkit-fill-available;
|
|
4804
|
+
height: 100%;
|
|
4805
|
+
width: max-content;
|
|
4806
|
+
max-width: 300px;
|
|
4807
|
+
}
|
|
4808
|
+
|
|
4809
|
+
.nys-stepper__header {
|
|
4810
|
+
display: flex;
|
|
4811
|
+
flex-direction: column;
|
|
4812
|
+
padding: var(--nys-space-400, 32px) var(--nys-space-400, 32px)
|
|
4813
|
+
var(--nys-space-150, 12px);
|
|
4814
|
+
}
|
|
4815
|
+
|
|
4816
|
+
::slotted(div[slot="actions"]) {
|
|
4817
|
+
display: flex;
|
|
4818
|
+
flex-wrap: wrap;
|
|
4819
|
+
justify-content: flex-start;
|
|
4820
|
+
gap: var(--nys-space-100, 8px);
|
|
4821
|
+
margin-bottom: var(--nys-space-300, 24px);
|
|
4822
|
+
}
|
|
4823
|
+
|
|
4824
|
+
.nys-stepper__counter {
|
|
4825
|
+
display: none;
|
|
4826
|
+
text-decoration: underline;
|
|
4827
|
+
text-decoration-style: solid;
|
|
4828
|
+
text-decoration-skip-ink: auto;
|
|
4829
|
+
text-decoration-thickness: 7%; /* 1.12px */
|
|
4830
|
+
text-underline-offset: auto;
|
|
4831
|
+
text-underline-position: from-font;
|
|
4832
|
+
color: var(--nys-color-text, #1b1b1b);
|
|
4833
|
+
text-overflow: ellipsis;
|
|
4834
|
+
font-family: var(--nys-type-family-ui, "Proxima Nova");
|
|
4835
|
+
font-size: var(--nys-type-size-ui-md, 16px);
|
|
4836
|
+
font-style: normal;
|
|
4837
|
+
font-weight: 400;
|
|
4838
|
+
line-height: var(--nys-type-size-ui-md, 16px);
|
|
4839
|
+
cursor: pointer;
|
|
4840
|
+
width: fit-content;
|
|
4841
|
+
}
|
|
4842
|
+
|
|
4843
|
+
.nys-stepper__steps {
|
|
4844
|
+
display: flex;
|
|
4845
|
+
flex-direction: column;
|
|
4846
|
+
padding: var(--nys-space-150, 12px) var(--nys-space-400, 32px)
|
|
4847
|
+
var(--nys-space-400, 32px);
|
|
4848
|
+
overflow-y: scroll;
|
|
4849
|
+
height: -webkit-fill-available;
|
|
4850
|
+
height: -moz-available;
|
|
4851
|
+
scrollbar-width: none;
|
|
4852
|
+
background:
|
|
4853
|
+
/* Shadow Cover TOP */
|
|
4854
|
+
linear-gradient(
|
|
4855
|
+
var(--nys-color-surface-raised, #f6f6f6) 30%,
|
|
4856
|
+
rgba(255, 255, 255, 0)
|
|
4857
|
+
)
|
|
4858
|
+
center top,
|
|
4859
|
+
/* Shadow Cover BOTTOM */
|
|
4860
|
+
linear-gradient(
|
|
4861
|
+
rgba(255, 255, 255, 0),
|
|
4862
|
+
var(--nys-color-surface-raised, #f6f6f6) 70%
|
|
4863
|
+
)
|
|
4864
|
+
center bottom,
|
|
4865
|
+
/* Shadow TOP */
|
|
4866
|
+
linear-gradient(to bottom, rgba(99, 99, 99, 0.2), rgba(0, 0, 0, 0)) top,
|
|
4867
|
+
/* Shadow BOTTOM */
|
|
4868
|
+
linear-gradient(to top, rgba(99, 99, 99, 0.2), rgba(0, 0, 0, 0)) bottom;
|
|
4869
|
+
|
|
4870
|
+
background-repeat: no-repeat;
|
|
4871
|
+
background-size:
|
|
4872
|
+
100% 40px,
|
|
4873
|
+
100% 40px,
|
|
4874
|
+
100% 14px,
|
|
4875
|
+
100% 14px;
|
|
4876
|
+
background-attachment: local, local, scroll, scroll;
|
|
4877
|
+
background-color: var(--nys-color-surface-raised, #f6f6f6);
|
|
4878
|
+
}
|
|
4879
|
+
|
|
4880
|
+
.nys-step {
|
|
4881
|
+
position: relative;
|
|
4882
|
+
counter-increment: step;
|
|
4883
|
+
display: flex;
|
|
4884
|
+
flex-direction: column;
|
|
4885
|
+
}
|
|
4886
|
+
|
|
4887
|
+
.nys-step__contentwrapper {
|
|
4888
|
+
display: flex;
|
|
4889
|
+
flex-direction: row;
|
|
4890
|
+
align-items: center;
|
|
4891
|
+
gap: var(--nys-space-150, 12px);
|
|
4892
|
+
cursor: default;
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4895
|
+
.nys-step__contentwrapper:focus-visible {
|
|
4896
|
+
outline: solid var(--nys-color-focus, #004dd1)
|
|
4897
|
+
var(--nys-border-width-md, 2px);
|
|
4898
|
+
outline-offset: var(--nys-space-2px, 2px);
|
|
4899
|
+
border-radius: var(--nys-radius-md, 4px);
|
|
4900
|
+
}
|
|
4901
|
+
|
|
4902
|
+
.nys-step__linewrapper {
|
|
4903
|
+
width: 24px;
|
|
4904
|
+
display: flex;
|
|
4905
|
+
justify-content: center;
|
|
4906
|
+
}
|
|
4907
|
+
|
|
4908
|
+
.nys-step__line {
|
|
4909
|
+
width: var(--nys-size-1px, 1px);
|
|
4910
|
+
height: var(--nys-size-300, 24px);
|
|
4911
|
+
border-radius: var(--nys-radius-round, 1776px);
|
|
4912
|
+
background: var(--nys-color-black-transparent-200, rgba(27, 27, 27, 0.2));
|
|
4913
|
+
margin: var(--nys-space-100, 8px) 0;
|
|
4914
|
+
}
|
|
4915
|
+
|
|
4916
|
+
.nys-step__number {
|
|
4917
|
+
border-radius: var(--nys-radius-round, 1776px);
|
|
4918
|
+
border: 1px solid var(--nys-color-neutral-400, #909395);
|
|
4919
|
+
background: var(
|
|
4920
|
+
--nys-color-white-transparent-900,
|
|
4921
|
+
rgba(255, 255, 255, 0.9)
|
|
4922
|
+
);
|
|
4923
|
+
width: 24px;
|
|
4924
|
+
height: 24px;
|
|
4925
|
+
display: flex;
|
|
4926
|
+
align-items: center;
|
|
4927
|
+
justify-content: center;
|
|
4928
|
+
text-align: center;
|
|
4929
|
+
}
|
|
4930
|
+
|
|
4931
|
+
:host([previous]) .nys-step__number,
|
|
4932
|
+
:host([previous]) .nys-step__line,
|
|
4933
|
+
:host([current]) .nys-step__number,
|
|
4934
|
+
:host([current]) .nys-step__line {
|
|
4935
|
+
background: var(--nys-color-theme-stronger, #081b2b);
|
|
4936
|
+
color: var(--nys-color-text-reverse, #fff);
|
|
4937
|
+
border-color: var(--nys-color-theme-stronger, #081b2b);
|
|
4938
|
+
}
|
|
4939
|
+
|
|
4940
|
+
:host([selected]) .nys-step__number {
|
|
4941
|
+
background: var(--nys-color-theme, #154973);
|
|
4942
|
+
color: var(--nys-color-text-reverse, #fff);
|
|
4943
|
+
border-color: var(--nys-color-theme, #154973);
|
|
4944
|
+
outline: 4px solid var(--nys-color-theme-weak, #cddde9);
|
|
4945
|
+
}
|
|
4946
|
+
|
|
4947
|
+
.nys-step__number::before {
|
|
4948
|
+
content: counter(step);
|
|
4949
|
+
line-height: 1;
|
|
4950
|
+
padding-top: 2px;
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
/* Hide the line wrapper in the last step */
|
|
4954
|
+
:host([first]) .nys-step__linewrapper {
|
|
4955
|
+
display: none !important;
|
|
4956
|
+
}
|
|
4957
|
+
|
|
4958
|
+
.nys-step__content {
|
|
4959
|
+
display: flex;
|
|
4960
|
+
flex-direction: column;
|
|
4961
|
+
gap: var(--nys-space-100, 8px);
|
|
4962
|
+
}
|
|
4963
|
+
|
|
4964
|
+
.nys-step__label {
|
|
4965
|
+
overflow: hidden;
|
|
4966
|
+
color: var(--nys-color-text, #1b1b1b);
|
|
4967
|
+
text-overflow: ellipsis;
|
|
4968
|
+
font-family: var(--nys-type-family-ui, "Proxima Nova");
|
|
4969
|
+
font-size: var(--nys-type-size-ui-md, 16px);
|
|
4970
|
+
font-style: normal;
|
|
4971
|
+
font-weight: 400;
|
|
4972
|
+
line-height: var(--nys-type-size-ui-md, 16px);
|
|
4973
|
+
letter-spacing: var(--nys-font-letterspacing-ui-md, 0.044px);
|
|
4974
|
+
text-decoration-style: solid;
|
|
4975
|
+
text-decoration-skip-ink: auto;
|
|
4976
|
+
text-decoration-thickness: 7%; /* 1.12px */
|
|
4977
|
+
text-underline-offset: auto;
|
|
4978
|
+
text-underline-position: from-font;
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4981
|
+
:host([current]) .nys-step__label,
|
|
4982
|
+
:host([previous]) .nys-step__label {
|
|
4983
|
+
text-decoration-line: underline;
|
|
4984
|
+
}
|
|
4985
|
+
|
|
4986
|
+
:host([current]) .nys-step__contentwrapper,
|
|
4987
|
+
:host([previous]) .nys-step__contentwrapper {
|
|
4988
|
+
cursor: pointer;
|
|
4989
|
+
}
|
|
4990
|
+
|
|
4991
|
+
:host([selected]) .nys-step__label {
|
|
4992
|
+
/* UI/Medium/Bold */
|
|
4993
|
+
font-weight: 700;
|
|
4994
|
+
text-decoration-line: none;
|
|
4995
|
+
}
|
|
4996
|
+
|
|
4997
|
+
:host([selected]) .nys-step__contentwrapper {
|
|
4998
|
+
cursor: default;
|
|
4999
|
+
}
|
|
5000
|
+
|
|
5001
|
+
:host([selected]) .nys-step__contentwrapper:focus-visible {
|
|
5002
|
+
outline-offset: 6px;
|
|
5003
|
+
}
|
|
5004
|
+
|
|
5005
|
+
.nys-step__currentflag {
|
|
5006
|
+
overflow: hidden;
|
|
5007
|
+
color: var(--nys-color-text-weak, #4a4d4f);
|
|
5008
|
+
text-overflow: ellipsis;
|
|
5009
|
+
font-size: var(--nys-typography-type-size-ui-xs, 12px);
|
|
5010
|
+
font-weight: 600;
|
|
5011
|
+
line-height: var(--nys-typography-type-size-ui-xs, 12px);
|
|
5012
|
+
letter-spacing: var(--nys-typography-font-letterspacing-ui-xs, 0.057px);
|
|
5013
|
+
}
|
|
5014
|
+
|
|
5015
|
+
@media (max-width: 479px) {
|
|
5016
|
+
.nys-stepper {
|
|
5017
|
+
max-width: 479px;
|
|
5018
|
+
width: 100%;
|
|
5019
|
+
}
|
|
5020
|
+
|
|
5021
|
+
.nys-stepper__header {
|
|
5022
|
+
flex-direction: row-reverse;
|
|
5023
|
+
justify-content: space-between;
|
|
5024
|
+
padding: var(--nys-space-150, 12px);
|
|
5025
|
+
gap: var(--nys-space-200, 16px);
|
|
5026
|
+
}
|
|
5027
|
+
|
|
5028
|
+
.nys-stepper__headertext {
|
|
5029
|
+
flex: 1 1 0;
|
|
5030
|
+
min-width: 0;
|
|
5031
|
+
}
|
|
5032
|
+
|
|
5033
|
+
::slotted(div[slot="actions"]) {
|
|
5034
|
+
margin-bottom: 0;
|
|
5035
|
+
min-width: 0;
|
|
5036
|
+
justify-content: end;
|
|
5037
|
+
}
|
|
5038
|
+
|
|
5039
|
+
.nys-stepper__counter {
|
|
5040
|
+
display: block;
|
|
5041
|
+
}
|
|
5042
|
+
|
|
5043
|
+
.nys-stepper__steps {
|
|
5044
|
+
flex-direction: row;
|
|
5045
|
+
gap: var(--nys-space-2px, 2px);
|
|
5046
|
+
padding: 0;
|
|
5047
|
+
}
|
|
5048
|
+
|
|
5049
|
+
.nys-stepper__steps::slotted(*) {
|
|
5050
|
+
flex: 1;
|
|
5051
|
+
}
|
|
5052
|
+
|
|
5053
|
+
.nys-step__number {
|
|
5054
|
+
border-radius: 0;
|
|
5055
|
+
border: none;
|
|
5056
|
+
background-color: var(--nys-color-neutral-200, #bec0c1);
|
|
5057
|
+
height: var(--nys-size-100, 8px);
|
|
5058
|
+
width: 100%;
|
|
5059
|
+
}
|
|
5060
|
+
|
|
5061
|
+
:host([previous]) .nys-step__number,
|
|
5062
|
+
:host([current]) .nys-step__number {
|
|
5063
|
+
background-color: var(--nys-color-neutral-900, #1b1b1b);
|
|
5064
|
+
}
|
|
5065
|
+
|
|
5066
|
+
:host([selected]) .nys-step__number {
|
|
5067
|
+
background-color: var(--nys-color-theme-mid, #457aa5);
|
|
5068
|
+
outline: none;
|
|
5069
|
+
}
|
|
5070
|
+
.nys-step__number::before {
|
|
5071
|
+
content: "";
|
|
5072
|
+
}
|
|
5073
|
+
|
|
5074
|
+
.nys-step__content,
|
|
5075
|
+
.nys-step__linewrapper {
|
|
5076
|
+
display: none;
|
|
5077
|
+
}
|
|
5078
|
+
|
|
5079
|
+
.nys-step__contentwrapper {
|
|
5080
|
+
cursor: default;
|
|
5081
|
+
pointer-events: none;
|
|
5082
|
+
}
|
|
5083
|
+
|
|
5084
|
+
/* ---------------- Expanded Mode ---------------- */
|
|
5085
|
+
:host([isCompactExpanded]) .nys-step__content,
|
|
5086
|
+
:host([isCompactExpanded]) .nys-step__linewrapper {
|
|
5087
|
+
display: flex;
|
|
5088
|
+
}
|
|
5089
|
+
|
|
5090
|
+
:host([isCompactExpanded]) .nys-stepper {
|
|
5091
|
+
}
|
|
5092
|
+
|
|
5093
|
+
:host([isCompactExpanded]) .nys-stepper__header {
|
|
5094
|
+
padding-bottom: var(--nys-space-250, 20px);
|
|
5095
|
+
}
|
|
5096
|
+
|
|
5097
|
+
:host([isCompactExpanded]) .nys-stepper__steps {
|
|
5098
|
+
width: -webkit-fill-available;
|
|
5099
|
+
width: -moz-available;
|
|
5100
|
+
z-index: 9999;
|
|
5101
|
+
overflow-y: auto;
|
|
5102
|
+
flex-direction: column;
|
|
5103
|
+
gap: 0;
|
|
5104
|
+
padding: var(--nys-space-150, 12px) var(--nys-space-400, 32px)
|
|
5105
|
+
var(--nys-space-400, 32px);
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5108
|
+
:host([isCompactExpanded]) .nys-step__number {
|
|
5109
|
+
border-radius: var(--nys-radius-round, 1776px);
|
|
5110
|
+
border: 1px solid var(--nys-color-neutral-400, #909395);
|
|
5111
|
+
background: var(
|
|
5112
|
+
--nys-color-white-transparent-900,
|
|
5113
|
+
rgba(255, 255, 255, 0.9)
|
|
5114
|
+
);
|
|
5115
|
+
width: 24px;
|
|
5116
|
+
height: 24px;
|
|
5117
|
+
}
|
|
5118
|
+
|
|
5119
|
+
:host([isCompactExpanded][previous]) .nys-step__number,
|
|
5120
|
+
:host([isCompactExpanded][previous]) .nys-step__line,
|
|
5121
|
+
:host([isCompactExpanded][current]) .nys-step__number,
|
|
5122
|
+
:host([isCompactExpanded][current]) .nys-step__line {
|
|
5123
|
+
background: var(--nys-color-theme-stronger, #081b2b);
|
|
5124
|
+
color: var(--nys-color-text-reverse, #fff);
|
|
5125
|
+
border-color: var(--nys-color-theme-stronger, #081b2b);
|
|
5126
|
+
}
|
|
5127
|
+
|
|
5128
|
+
:host([isCompactExpanded][selected]) .nys-step__number {
|
|
5129
|
+
background: var(--nys-color-theme, #154973);
|
|
5130
|
+
color: var(--nys-color-text-reverse, #fff);
|
|
5131
|
+
border-color: var(--nys-color-theme, #154973);
|
|
5132
|
+
outline: 4px solid var(--nys-color-theme-weak, #cddde9);
|
|
5133
|
+
}
|
|
5134
|
+
|
|
5135
|
+
:host([isCompactExpanded]) .nys-step__number::before {
|
|
5136
|
+
content: counter(step);
|
|
5137
|
+
line-height: 1;
|
|
5138
|
+
padding-top: 2px;
|
|
5139
|
+
}
|
|
5140
|
+
|
|
5141
|
+
:host([isCompactExpanded]) .nys-step__contentwrapper {
|
|
5142
|
+
pointer-events: all;
|
|
5143
|
+
}
|
|
5144
|
+
}
|
|
5145
|
+
`;
|
|
5146
|
+
var We = Object.defineProperty, C1 = (a, e, t, o) => {
|
|
5147
|
+
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
5148
|
+
(i = a[n]) && (s = i(e, t, s) || s);
|
|
5149
|
+
return s && We(e, t, s), s;
|
|
5150
|
+
};
|
|
5151
|
+
const A1 = class A1 extends p {
|
|
5152
|
+
constructor() {
|
|
5153
|
+
super(...arguments), this.selected = !1, this.current = !1, this.label = "", this.href = "", this.isCompactExpanded = !1;
|
|
5154
|
+
}
|
|
5155
|
+
_handleActivate() {
|
|
5156
|
+
this.dispatchEvent(
|
|
5157
|
+
new Event("nys-step-click", {
|
|
5158
|
+
bubbles: !0,
|
|
5159
|
+
composed: !0
|
|
5160
|
+
})
|
|
5161
|
+
);
|
|
5162
|
+
}
|
|
5163
|
+
_handleKeydown(e) {
|
|
5164
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this._handleActivate());
|
|
5165
|
+
}
|
|
5166
|
+
render() {
|
|
5167
|
+
return l`
|
|
5168
|
+
<div class="nys-step">
|
|
5169
|
+
<div class="nys-step__linewrapper">
|
|
5170
|
+
<div class="nys-step__line"></div>
|
|
5171
|
+
</div>
|
|
5172
|
+
<div
|
|
5173
|
+
class="nys-step__contentwrapper"
|
|
5174
|
+
tabindex=${this.isCompactExpanded ? this.selected || this.current || this.hasAttribute("previous") ? "0" : "-1" : null}
|
|
5175
|
+
@click=${this._handleActivate}
|
|
5176
|
+
@keydown=${this._handleKeydown}
|
|
5177
|
+
>
|
|
5178
|
+
<div class="nys-step__number"></div>
|
|
5179
|
+
<div class="nys-step__content">
|
|
5180
|
+
${this.current ? l`<div class="nys-step__currentflag">Current Step</div>` : ""}
|
|
5181
|
+
<div class="nys-step__label">${this.label}</div>
|
|
5182
|
+
</div>
|
|
5183
|
+
</div>
|
|
5184
|
+
</div>
|
|
5185
|
+
`;
|
|
5186
|
+
}
|
|
5187
|
+
};
|
|
5188
|
+
A1.styles = N1;
|
|
5189
|
+
let s1 = A1;
|
|
5190
|
+
C1([
|
|
5191
|
+
r({ type: Boolean, reflect: !0 })
|
|
5192
|
+
], s1.prototype, "selected");
|
|
5193
|
+
C1([
|
|
5194
|
+
r({ type: Boolean, reflect: !0 })
|
|
5195
|
+
], s1.prototype, "current");
|
|
5196
|
+
C1([
|
|
5197
|
+
r({ type: String })
|
|
5198
|
+
], s1.prototype, "label");
|
|
5199
|
+
C1([
|
|
5200
|
+
r({ type: String })
|
|
5201
|
+
], s1.prototype, "href");
|
|
5202
|
+
C1([
|
|
5203
|
+
r({ type: Boolean })
|
|
5204
|
+
], s1.prototype, "isCompactExpanded");
|
|
5205
|
+
customElements.get("nys-step") || customElements.define("nys-step", s1);
|
|
5206
|
+
var Xe = Object.defineProperty, u1 = (a, e, t, o) => {
|
|
5207
|
+
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
5208
|
+
(i = a[n]) && (s = i(e, t, s) || s);
|
|
5209
|
+
return s && Xe(e, t, s), s;
|
|
5210
|
+
};
|
|
5211
|
+
const Z1 = class Z1 extends p {
|
|
5212
|
+
constructor() {
|
|
5213
|
+
super(), this.id = "", this.name = "", this.label = "", this.contentTarget = "", this.counterText = "initial", this.isCompactExpanded = !1, this.hasLoadedInitialContent = !1, this._onStepClick = async (e) => {
|
|
5214
|
+
const t = e.composedPath().find(
|
|
5215
|
+
(i) => i instanceof HTMLElement && i.tagName.toLowerCase() === "nys-step"
|
|
5216
|
+
);
|
|
5217
|
+
if (!t) return;
|
|
5218
|
+
const o = Array.from(this.querySelectorAll("nys-step")), s = o.findIndex(
|
|
5219
|
+
(i) => i.hasAttribute("current")
|
|
5220
|
+
), n = o.indexOf(t);
|
|
5221
|
+
s !== -1 && n > s || t.hasAttribute("selected") || (o.forEach((i) => i.removeAttribute("selected")), t.setAttribute("selected", ""), this._updateCounter(), this._loadHref(t.getAttribute("href")), this.isCompactExpanded = !1);
|
|
5222
|
+
};
|
|
5223
|
+
}
|
|
5224
|
+
connectedCallback() {
|
|
5225
|
+
super.connectedCallback(), this.addEventListener("nys-step-click", this._onStepClick), requestAnimationFrame(() => this._validateSteps());
|
|
5226
|
+
}
|
|
5227
|
+
disconnectedCallback() {
|
|
5228
|
+
this.removeEventListener("nys-step-click", this._onStepClick), super.disconnectedCallback();
|
|
5229
|
+
}
|
|
5230
|
+
_validateSteps() {
|
|
5231
|
+
Array.from(this.children).forEach((e) => {
|
|
5232
|
+
const t = e instanceof HTMLElement && e.tagName.toLowerCase() === "nys-step", o = e instanceof HTMLElement && e.hasAttribute("slot") && e.getAttribute("slot") === "actions";
|
|
5233
|
+
!t && !o && (console.warn(
|
|
5234
|
+
"Only <nys-step> elements or the <div slot='actions'> container are allowed as direct children of <nys-stepper>. Removing:",
|
|
5235
|
+
e
|
|
5236
|
+
), e.remove());
|
|
5237
|
+
});
|
|
5238
|
+
}
|
|
5239
|
+
_validateButtonSlot(e) {
|
|
5240
|
+
const o = e.target.assignedElements();
|
|
5241
|
+
if (o.length !== 1 || o[0].tagName.toLowerCase() !== "div") {
|
|
5242
|
+
console.warn(
|
|
5243
|
+
"The 'actions' slot must have exactly one <div> as a direct child."
|
|
5244
|
+
);
|
|
5245
|
+
return;
|
|
5246
|
+
}
|
|
5247
|
+
const s = o[0];
|
|
5248
|
+
Array.from(s.children).forEach((n) => {
|
|
5249
|
+
n instanceof HTMLElement && n.tagName.toLowerCase() === "nys-button" ? (n.setAttribute("size", "sm"), n.hasAttribute("fullWidth") && (n.style.flex = "1 1 0")) : (console.warn(
|
|
5250
|
+
"The <div> inside 'actions' slot only accepts <nys-button> elements. Removing invalid node:",
|
|
5251
|
+
n
|
|
5252
|
+
), n.remove());
|
|
5253
|
+
});
|
|
5254
|
+
}
|
|
5255
|
+
_updateCounter() {
|
|
5256
|
+
if (this.isCompactExpanded) {
|
|
5257
|
+
this.counterText = "Back to Form", this.style.height = "-webkit-fill-available", this.style.height = "-moz-available", this.style.height = "stretch";
|
|
5258
|
+
return;
|
|
5259
|
+
} else
|
|
5260
|
+
this.style.height = "auto";
|
|
5261
|
+
const e = this.querySelectorAll("nys-step"), t = Array.from(e).findIndex(
|
|
5262
|
+
(s) => s.hasAttribute("selected")
|
|
5263
|
+
), o = e.length;
|
|
5264
|
+
this.counterText = t >= 0 ? `Step ${t + 1} of ${o}` : `Step 1 of ${o}`;
|
|
5265
|
+
}
|
|
5266
|
+
updated() {
|
|
5267
|
+
const e = this.querySelectorAll("nys-step");
|
|
5268
|
+
let t = !1, o = !1, s = !1;
|
|
5269
|
+
if (e.forEach((n, i) => {
|
|
5270
|
+
n.hasAttribute("current") && (s ? n.removeAttribute("current") : s = !0), i === 0 ? n.setAttribute("first", "") : n.removeAttribute("first"), n.hasAttribute("current") ? (t = !0, n.removeAttribute("previous")) : t ? n.removeAttribute("previous") : n.setAttribute("previous", ""), n.hasAttribute("selected") && (t || o ? n.removeAttribute("selected") : o = !0), this.hasAttribute("isCompactExpanded") ? n.setAttribute("isCompactExpanded", "") : n.removeAttribute("isCompactExpanded");
|
|
5271
|
+
}), o || (s ? e.forEach((n) => {
|
|
5272
|
+
n.hasAttribute("current") && !o && (n.setAttribute("selected", ""), o = !0);
|
|
5273
|
+
}) : e.length > 0 && (e[0].setAttribute("current", ""), e[0].setAttribute("selected", ""))), this._updateCounter(), !this.hasLoadedInitialContent) {
|
|
5274
|
+
this.hasLoadedInitialContent = !0;
|
|
5275
|
+
const n = Array.from(e).find(
|
|
5276
|
+
(i) => i.hasAttribute("selected")
|
|
5277
|
+
);
|
|
5278
|
+
n && this._loadHref(n.getAttribute("href"));
|
|
5279
|
+
}
|
|
5280
|
+
}
|
|
5281
|
+
async _loadHref(e) {
|
|
5282
|
+
if (!e) return;
|
|
5283
|
+
let t = null;
|
|
5284
|
+
if (this.contentTarget && (t = document.getElementById(this.contentTarget)), t || (t = this.nextElementSibling), t)
|
|
5285
|
+
try {
|
|
5286
|
+
const o = await fetch(e);
|
|
5287
|
+
t.innerHTML = await o.text();
|
|
5288
|
+
} catch (o) {
|
|
5289
|
+
console.error("Failed to load step content:", o);
|
|
5290
|
+
}
|
|
5291
|
+
else
|
|
5292
|
+
console.warn("No container found for loading step content.");
|
|
5293
|
+
}
|
|
5294
|
+
_toggleCompact() {
|
|
5295
|
+
this.isCompactExpanded = !this.isCompactExpanded;
|
|
5296
|
+
}
|
|
5297
|
+
_handleCounterKeydown(e) {
|
|
5298
|
+
(e.key === " " || e.key === "Enter") && (e.preventDefault(), this._toggleCompact());
|
|
5299
|
+
}
|
|
5300
|
+
render() {
|
|
5301
|
+
return l`
|
|
5302
|
+
<div class="nys-stepper" id=${this.id} name=${this.name}>
|
|
5303
|
+
<div class="nys-stepper__header">
|
|
5304
|
+
<slot name="actions" @slotchange=${this._validateButtonSlot}></slot>
|
|
5305
|
+
<div class="nys-stepper__headertext">
|
|
5306
|
+
<div class="nys-stepper__label">${this.label}</div>
|
|
5307
|
+
<div
|
|
5308
|
+
class="nys-stepper__counter"
|
|
5309
|
+
@click=${this._toggleCompact}
|
|
5310
|
+
@keydown=${this._handleCounterKeydown}
|
|
5311
|
+
role="button"
|
|
5312
|
+
tabindex="0"
|
|
5313
|
+
>
|
|
5314
|
+
${this.counterText}
|
|
5315
|
+
</div>
|
|
5316
|
+
</div>
|
|
5317
|
+
</div>
|
|
5318
|
+
<slot class="nys-stepper__steps"></slot>
|
|
5319
|
+
</div>
|
|
5320
|
+
`;
|
|
5321
|
+
}
|
|
5322
|
+
};
|
|
5323
|
+
Z1.styles = N1;
|
|
5324
|
+
let W = Z1;
|
|
5325
|
+
u1([
|
|
5326
|
+
r({ type: String })
|
|
5327
|
+
], W.prototype, "id");
|
|
5328
|
+
u1([
|
|
5329
|
+
r({ type: String, reflect: !0 })
|
|
5330
|
+
], W.prototype, "name");
|
|
5331
|
+
u1([
|
|
5332
|
+
r({ type: String })
|
|
5333
|
+
], W.prototype, "label");
|
|
5334
|
+
u1([
|
|
4765
5335
|
r({ type: String })
|
|
4766
|
-
],
|
|
4767
|
-
|
|
5336
|
+
], W.prototype, "contentTarget");
|
|
5337
|
+
u1([
|
|
4768
5338
|
r({ type: String })
|
|
4769
|
-
],
|
|
4770
|
-
|
|
4771
|
-
|
|
5339
|
+
], W.prototype, "counterText");
|
|
5340
|
+
u1([
|
|
5341
|
+
r({ type: Boolean, reflect: !0 })
|
|
5342
|
+
], W.prototype, "isCompactExpanded");
|
|
5343
|
+
customElements.get("nys-stepper") || customElements.define("nys-stepper", W);
|
|
5344
|
+
const Qe = u`
|
|
4772
5345
|
:host {
|
|
4773
5346
|
/* Anything that can be overridden should be defined here */
|
|
4774
5347
|
|
|
@@ -4910,14 +5483,14 @@ const Oe = g`
|
|
|
4910
5483
|
cursor: not-allowed;
|
|
4911
5484
|
}
|
|
4912
5485
|
`;
|
|
4913
|
-
var
|
|
4914
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
5486
|
+
var Je = Object.defineProperty, et = Object.getOwnPropertyDescriptor, m = (a, e, t, o) => {
|
|
5487
|
+
for (var s = o > 1 ? void 0 : o ? et(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
4915
5488
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4916
|
-
return o && s &&
|
|
5489
|
+
return o && s && Je(e, t, s), s;
|
|
4917
5490
|
};
|
|
4918
|
-
let
|
|
4919
|
-
var
|
|
4920
|
-
const
|
|
5491
|
+
let tt = 0;
|
|
5492
|
+
var H;
|
|
5493
|
+
const _ = (H = class extends p {
|
|
4921
5494
|
// allows use of elementInternals' API
|
|
4922
5495
|
constructor() {
|
|
4923
5496
|
super(), this.id = "", this.name = "", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.maxlength = null, this.width = "full", this.rows = 4, this._resize = "vertical", this.showError = !1, this.errorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
@@ -4926,16 +5499,16 @@ const b = (z = class extends u {
|
|
|
4926
5499
|
return this._resize;
|
|
4927
5500
|
}
|
|
4928
5501
|
set resize(e) {
|
|
4929
|
-
this._resize =
|
|
5502
|
+
this._resize = H.VALID_RESIZE.includes(
|
|
4930
5503
|
e
|
|
4931
5504
|
) ? e : "vertical";
|
|
4932
5505
|
}
|
|
4933
5506
|
async updated(e) {
|
|
4934
|
-
await Promise.resolve(), e.has("width") && (this.width =
|
|
5507
|
+
await Promise.resolve(), e.has("width") && (this.width = H.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("rows") && (this.rows = this.rows ?? 4);
|
|
4935
5508
|
}
|
|
4936
5509
|
// Generate a unique ID if one is not provided
|
|
4937
5510
|
connectedCallback() {
|
|
4938
|
-
super.connectedCallback(), this.id || (this.id = `nys-textarea-${Date.now()}-${
|
|
5511
|
+
super.connectedCallback(), this.id || (this.id = `nys-textarea-${Date.now()}-${tt++}`), this.addEventListener("invalid", this._handleInvalid);
|
|
4939
5512
|
}
|
|
4940
5513
|
disconnectedCallback() {
|
|
4941
5514
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -5075,61 +5648,61 @@ ${this.value}</textarea
|
|
|
5075
5648
|
</label>
|
|
5076
5649
|
`;
|
|
5077
5650
|
}
|
|
5078
|
-
},
|
|
5079
|
-
|
|
5651
|
+
}, H.VALID_WIDTHS = ["sm", "md", "lg", "full"], H.VALID_RESIZE = ["vertical", "none"], H.styles = Qe, H.formAssociated = !0, H);
|
|
5652
|
+
m([
|
|
5080
5653
|
r({ type: String })
|
|
5081
|
-
],
|
|
5082
|
-
|
|
5654
|
+
], _.prototype, "id", 2);
|
|
5655
|
+
m([
|
|
5083
5656
|
r({ type: String, reflect: !0 })
|
|
5084
|
-
],
|
|
5085
|
-
|
|
5657
|
+
], _.prototype, "name", 2);
|
|
5658
|
+
m([
|
|
5086
5659
|
r({ type: String })
|
|
5087
|
-
],
|
|
5088
|
-
|
|
5660
|
+
], _.prototype, "label", 2);
|
|
5661
|
+
m([
|
|
5089
5662
|
r({ type: String })
|
|
5090
|
-
],
|
|
5091
|
-
|
|
5663
|
+
], _.prototype, "description", 2);
|
|
5664
|
+
m([
|
|
5092
5665
|
r({ type: String })
|
|
5093
|
-
],
|
|
5094
|
-
|
|
5666
|
+
], _.prototype, "placeholder", 2);
|
|
5667
|
+
m([
|
|
5095
5668
|
r({ type: String })
|
|
5096
|
-
],
|
|
5097
|
-
|
|
5669
|
+
], _.prototype, "value", 2);
|
|
5670
|
+
m([
|
|
5098
5671
|
r({ type: Boolean, reflect: !0 })
|
|
5099
|
-
],
|
|
5100
|
-
|
|
5672
|
+
], _.prototype, "disabled", 2);
|
|
5673
|
+
m([
|
|
5101
5674
|
r({ type: Boolean, reflect: !0 })
|
|
5102
|
-
],
|
|
5103
|
-
|
|
5675
|
+
], _.prototype, "readonly", 2);
|
|
5676
|
+
m([
|
|
5104
5677
|
r({ type: Boolean, reflect: !0 })
|
|
5105
|
-
],
|
|
5106
|
-
|
|
5678
|
+
], _.prototype, "required", 2);
|
|
5679
|
+
m([
|
|
5107
5680
|
r({ type: Boolean, reflect: !0 })
|
|
5108
|
-
],
|
|
5109
|
-
|
|
5681
|
+
], _.prototype, "optional", 2);
|
|
5682
|
+
m([
|
|
5110
5683
|
r({ type: String })
|
|
5111
|
-
],
|
|
5112
|
-
|
|
5684
|
+
], _.prototype, "form", 2);
|
|
5685
|
+
m([
|
|
5113
5686
|
r({ type: Number })
|
|
5114
|
-
],
|
|
5115
|
-
|
|
5687
|
+
], _.prototype, "maxlength", 2);
|
|
5688
|
+
m([
|
|
5116
5689
|
r({ reflect: !0 })
|
|
5117
|
-
],
|
|
5118
|
-
|
|
5690
|
+
], _.prototype, "width", 2);
|
|
5691
|
+
m([
|
|
5119
5692
|
r({ type: Number })
|
|
5120
|
-
],
|
|
5121
|
-
|
|
5693
|
+
], _.prototype, "rows", 2);
|
|
5694
|
+
m([
|
|
5122
5695
|
r({ reflect: !0 })
|
|
5123
|
-
],
|
|
5124
|
-
|
|
5696
|
+
], _.prototype, "resize", 1);
|
|
5697
|
+
m([
|
|
5125
5698
|
r({ type: Boolean, reflect: !0 })
|
|
5126
|
-
],
|
|
5127
|
-
|
|
5699
|
+
], _.prototype, "showError", 2);
|
|
5700
|
+
m([
|
|
5128
5701
|
r({ type: String })
|
|
5129
|
-
],
|
|
5130
|
-
let
|
|
5131
|
-
customElements.get("nys-textarea") || customElements.define("nys-textarea",
|
|
5132
|
-
const
|
|
5702
|
+
], _.prototype, "errorMessage", 2);
|
|
5703
|
+
let st = _;
|
|
5704
|
+
customElements.get("nys-textarea") || customElements.define("nys-textarea", st);
|
|
5705
|
+
const ot = u`
|
|
5133
5706
|
:host {
|
|
5134
5707
|
/* Anything that can be overridden should be defined here */
|
|
5135
5708
|
|
|
@@ -5343,14 +5916,14 @@ const Ne = g`
|
|
|
5343
5916
|
cursor: not-allowed;
|
|
5344
5917
|
}
|
|
5345
5918
|
`;
|
|
5346
|
-
var
|
|
5347
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
5919
|
+
var rt = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, g = (a, e, t, o) => {
|
|
5920
|
+
for (var s = o > 1 ? void 0 : o ? nt(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
5348
5921
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
5349
|
-
return o && s &&
|
|
5922
|
+
return o && s && rt(e, t, s), s;
|
|
5350
5923
|
};
|
|
5351
|
-
let
|
|
5352
|
-
var
|
|
5353
|
-
const
|
|
5924
|
+
let it = 0;
|
|
5925
|
+
var A;
|
|
5926
|
+
const f = (A = class extends p {
|
|
5354
5927
|
// allows use of elementInternals' API
|
|
5355
5928
|
constructor() {
|
|
5356
5929
|
super(), this.id = "", this.name = "", this._type = "text", this.label = "", this.description = "", this.placeholder = "", this.value = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.optional = !1, this.form = "", this.pattern = "", this.maxlength = null, this.width = "full", this.step = null, this.min = null, this.max = null, this.showError = !1, this.errorMessage = "", this.showPassword = !1, this._originalErrorMessage = "", this._hasUserInteracted = !1, this._internals = this.attachInternals();
|
|
@@ -5359,17 +5932,17 @@ const p = (E = class extends u {
|
|
|
5359
5932
|
return this._type;
|
|
5360
5933
|
}
|
|
5361
5934
|
set type(e) {
|
|
5362
|
-
this._type =
|
|
5935
|
+
this._type = A.VALID_TYPES.includes(
|
|
5363
5936
|
e
|
|
5364
5937
|
) ? e : "text";
|
|
5365
5938
|
}
|
|
5366
5939
|
// Ensure the "width" property is valid after updates
|
|
5367
5940
|
async updated(e) {
|
|
5368
|
-
e.has("width") && (await Promise.resolve(), this.width =
|
|
5941
|
+
e.has("width") && (await Promise.resolve(), this.width = A.VALID_WIDTHS.includes(this.width) ? this.width : "full"), e.has("disabled") && (this._validateButtonSlot("startButton"), this._validateButtonSlot("endButton"));
|
|
5369
5942
|
}
|
|
5370
5943
|
// Generate a unique ID if one is not provided
|
|
5371
5944
|
connectedCallback() {
|
|
5372
|
-
super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${
|
|
5945
|
+
super.connectedCallback(), this.id || (this.id = `nys-textinput-${Date.now()}-${it++}`), this._originalErrorMessage = this.errorMessage ?? "", this.addEventListener("invalid", this._handleInvalid);
|
|
5373
5946
|
}
|
|
5374
5947
|
disconnectedCallback() {
|
|
5375
5948
|
super.disconnectedCallback(), this.removeEventListener("invalid", this._handleInvalid);
|
|
@@ -5537,7 +6110,7 @@ const p = (E = class extends u {
|
|
|
5537
6110
|
</div>
|
|
5538
6111
|
`;
|
|
5539
6112
|
}
|
|
5540
|
-
},
|
|
6113
|
+
}, A.VALID_TYPES = [
|
|
5541
6114
|
"email",
|
|
5542
6115
|
"number",
|
|
5543
6116
|
"password",
|
|
@@ -5545,73 +6118,73 @@ const p = (E = class extends u {
|
|
|
5545
6118
|
"tel",
|
|
5546
6119
|
"text",
|
|
5547
6120
|
"url"
|
|
5548
|
-
],
|
|
5549
|
-
|
|
6121
|
+
], A.VALID_WIDTHS = ["sm", "md", "lg", "full"], A.styles = ot, A.formAssociated = !0, A);
|
|
6122
|
+
g([
|
|
5550
6123
|
r({ type: String })
|
|
5551
|
-
],
|
|
5552
|
-
|
|
6124
|
+
], f.prototype, "id", 2);
|
|
6125
|
+
g([
|
|
5553
6126
|
r({ type: String, reflect: !0 })
|
|
5554
|
-
],
|
|
5555
|
-
|
|
6127
|
+
], f.prototype, "name", 2);
|
|
6128
|
+
g([
|
|
5556
6129
|
r({ reflect: !0 })
|
|
5557
|
-
],
|
|
5558
|
-
|
|
6130
|
+
], f.prototype, "type", 1);
|
|
6131
|
+
g([
|
|
5559
6132
|
r({ type: String })
|
|
5560
|
-
],
|
|
5561
|
-
|
|
6133
|
+
], f.prototype, "label", 2);
|
|
6134
|
+
g([
|
|
5562
6135
|
r({ type: String })
|
|
5563
|
-
],
|
|
5564
|
-
|
|
6136
|
+
], f.prototype, "description", 2);
|
|
6137
|
+
g([
|
|
5565
6138
|
r({ type: String })
|
|
5566
|
-
],
|
|
5567
|
-
|
|
6139
|
+
], f.prototype, "placeholder", 2);
|
|
6140
|
+
g([
|
|
5568
6141
|
r({ type: String })
|
|
5569
|
-
],
|
|
5570
|
-
|
|
6142
|
+
], f.prototype, "value", 2);
|
|
6143
|
+
g([
|
|
5571
6144
|
r({ type: Boolean, reflect: !0 })
|
|
5572
|
-
],
|
|
5573
|
-
|
|
6145
|
+
], f.prototype, "disabled", 2);
|
|
6146
|
+
g([
|
|
5574
6147
|
r({ type: Boolean, reflect: !0 })
|
|
5575
|
-
],
|
|
5576
|
-
|
|
6148
|
+
], f.prototype, "readonly", 2);
|
|
6149
|
+
g([
|
|
5577
6150
|
r({ type: Boolean, reflect: !0 })
|
|
5578
|
-
],
|
|
5579
|
-
|
|
6151
|
+
], f.prototype, "required", 2);
|
|
6152
|
+
g([
|
|
5580
6153
|
r({ type: Boolean, reflect: !0 })
|
|
5581
|
-
],
|
|
5582
|
-
|
|
6154
|
+
], f.prototype, "optional", 2);
|
|
6155
|
+
g([
|
|
5583
6156
|
r({ type: String })
|
|
5584
|
-
],
|
|
5585
|
-
|
|
6157
|
+
], f.prototype, "form", 2);
|
|
6158
|
+
g([
|
|
5586
6159
|
r({ type: String })
|
|
5587
|
-
],
|
|
5588
|
-
|
|
6160
|
+
], f.prototype, "pattern", 2);
|
|
6161
|
+
g([
|
|
5589
6162
|
r({ type: Number })
|
|
5590
|
-
],
|
|
5591
|
-
|
|
6163
|
+
], f.prototype, "maxlength", 2);
|
|
6164
|
+
g([
|
|
5592
6165
|
r({ reflect: !0 })
|
|
5593
|
-
],
|
|
5594
|
-
|
|
6166
|
+
], f.prototype, "width", 2);
|
|
6167
|
+
g([
|
|
5595
6168
|
r({ type: Number })
|
|
5596
|
-
],
|
|
5597
|
-
|
|
6169
|
+
], f.prototype, "step", 2);
|
|
6170
|
+
g([
|
|
5598
6171
|
r({ type: Number })
|
|
5599
|
-
],
|
|
5600
|
-
|
|
6172
|
+
], f.prototype, "min", 2);
|
|
6173
|
+
g([
|
|
5601
6174
|
r({ type: Number })
|
|
5602
|
-
],
|
|
5603
|
-
|
|
6175
|
+
], f.prototype, "max", 2);
|
|
6176
|
+
g([
|
|
5604
6177
|
r({ type: Boolean, reflect: !0 })
|
|
5605
|
-
],
|
|
5606
|
-
|
|
6178
|
+
], f.prototype, "showError", 2);
|
|
6179
|
+
g([
|
|
5607
6180
|
r({ type: String })
|
|
5608
|
-
],
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
],
|
|
5612
|
-
let
|
|
5613
|
-
customElements.get("nys-textinput") || customElements.define("nys-textinput",
|
|
5614
|
-
const
|
|
6181
|
+
], f.prototype, "errorMessage", 2);
|
|
6182
|
+
g([
|
|
6183
|
+
O()
|
|
6184
|
+
], f.prototype, "showPassword", 2);
|
|
6185
|
+
let at = f;
|
|
6186
|
+
customElements.get("nys-textinput") || customElements.define("nys-textinput", at);
|
|
6187
|
+
const lt = u`
|
|
5615
6188
|
:host {
|
|
5616
6189
|
/* Global Toggle Styles */
|
|
5617
6190
|
--_nys-toggle-width: var(--nys-font-size-8xl, 44px);
|
|
@@ -5888,14 +6461,14 @@ const We = g`
|
|
|
5888
6461
|
}
|
|
5889
6462
|
}
|
|
5890
6463
|
`;
|
|
5891
|
-
var
|
|
5892
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
6464
|
+
var ct = Object.defineProperty, dt = Object.getOwnPropertyDescriptor, F = (a, e, t, o) => {
|
|
6465
|
+
for (var s = o > 1 ? void 0 : o ? dt(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
5893
6466
|
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
5894
|
-
return o && s &&
|
|
6467
|
+
return o && s && ct(e, t, s), s;
|
|
5895
6468
|
};
|
|
5896
|
-
let
|
|
5897
|
-
var
|
|
5898
|
-
const
|
|
6469
|
+
let ht = 0;
|
|
6470
|
+
var K;
|
|
6471
|
+
const q = (K = class extends p {
|
|
5899
6472
|
// allows use of elementInternals' API
|
|
5900
6473
|
constructor() {
|
|
5901
6474
|
super(), this.id = "", this.name = "", this.value = "", this.checked = !1, this.disabled = !1, this.noIcon = !1, this.label = "", this.description = "", this._size = "md", this.form = "", this._internals = this.attachInternals();
|
|
@@ -5904,13 +6477,13 @@ const A = (G = class extends u {
|
|
|
5904
6477
|
return this._size;
|
|
5905
6478
|
}
|
|
5906
6479
|
set size(e) {
|
|
5907
|
-
this._size =
|
|
6480
|
+
this._size = K.VALID_SIZES.includes(
|
|
5908
6481
|
e
|
|
5909
6482
|
) ? e : "md";
|
|
5910
6483
|
}
|
|
5911
6484
|
// Generate a unique ID if one is not provided
|
|
5912
6485
|
connectedCallback() {
|
|
5913
|
-
super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${
|
|
6486
|
+
super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${ht++}`);
|
|
5914
6487
|
}
|
|
5915
6488
|
/********************** Form Integration **********************/
|
|
5916
6489
|
// Update the internals whenever `checked` or `value` changes.
|
|
@@ -5981,40 +6554,355 @@ const A = (G = class extends u {
|
|
|
5981
6554
|
</label>
|
|
5982
6555
|
`;
|
|
5983
6556
|
}
|
|
5984
|
-
},
|
|
5985
|
-
|
|
6557
|
+
}, K.VALID_SIZES = ["sm", "md"], K.styles = lt, K.formAssociated = !0, K);
|
|
6558
|
+
F([
|
|
5986
6559
|
r({ type: String })
|
|
5987
|
-
],
|
|
5988
|
-
|
|
6560
|
+
], q.prototype, "id", 2);
|
|
6561
|
+
F([
|
|
5989
6562
|
r({ type: String, reflect: !0 })
|
|
5990
|
-
],
|
|
5991
|
-
|
|
6563
|
+
], q.prototype, "name", 2);
|
|
6564
|
+
F([
|
|
5992
6565
|
r({ type: String })
|
|
5993
|
-
],
|
|
5994
|
-
|
|
6566
|
+
], q.prototype, "value", 2);
|
|
6567
|
+
F([
|
|
5995
6568
|
r({ type: Boolean, reflect: !0 })
|
|
5996
|
-
],
|
|
5997
|
-
|
|
6569
|
+
], q.prototype, "checked", 2);
|
|
6570
|
+
F([
|
|
5998
6571
|
r({ type: Boolean, reflect: !0 })
|
|
5999
|
-
],
|
|
6000
|
-
|
|
6572
|
+
], q.prototype, "disabled", 2);
|
|
6573
|
+
F([
|
|
6001
6574
|
r({ type: Boolean })
|
|
6002
|
-
],
|
|
6003
|
-
|
|
6575
|
+
], q.prototype, "noIcon", 2);
|
|
6576
|
+
F([
|
|
6004
6577
|
r({ type: String })
|
|
6005
|
-
],
|
|
6006
|
-
|
|
6578
|
+
], q.prototype, "label", 2);
|
|
6579
|
+
F([
|
|
6007
6580
|
r({ type: String })
|
|
6008
|
-
],
|
|
6009
|
-
|
|
6581
|
+
], q.prototype, "description", 2);
|
|
6582
|
+
F([
|
|
6010
6583
|
r({ reflect: !0 })
|
|
6011
|
-
],
|
|
6012
|
-
|
|
6584
|
+
], q.prototype, "size", 1);
|
|
6585
|
+
F([
|
|
6013
6586
|
r({ type: String })
|
|
6014
|
-
],
|
|
6015
|
-
let
|
|
6016
|
-
customElements.get("nys-toggle") || customElements.define("nys-toggle",
|
|
6017
|
-
const
|
|
6587
|
+
], q.prototype, "form", 2);
|
|
6588
|
+
let yt = q;
|
|
6589
|
+
customElements.get("nys-toggle") || customElements.define("nys-toggle", yt);
|
|
6590
|
+
const pt = u`
|
|
6591
|
+
:host {
|
|
6592
|
+
/* Global Tooltip Styles */
|
|
6593
|
+
--_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
|
|
6594
|
+
--_nys-tooltip-background: var(--nys-color-ink, #1b1b1b);
|
|
6595
|
+
--_nys-tooltip-border-radius: var(--nys-radius-md, 4px);
|
|
6596
|
+
--_nys-tooltip-font-family: var(--nys-type-family-ui, "Proxima Nova");
|
|
6597
|
+
--_nys-tooltip-font-size: var(--nys-type-size-ui-sm, 14px);
|
|
6598
|
+
--_nys-tooltip-letterspacing: var(--nys-font-letterspacing-ui-sm, 0.044px);
|
|
6599
|
+
--_nys-tooltip-lineheight: var(--nys-font-lineheight-ui-sm, 24px);
|
|
6600
|
+
}
|
|
6601
|
+
|
|
6602
|
+
.nys-tooltip__wrapper {
|
|
6603
|
+
position: relative;
|
|
6604
|
+
width: fit-content;
|
|
6605
|
+
display: flex;
|
|
6606
|
+
cursor: pointer;
|
|
6607
|
+
}
|
|
6608
|
+
|
|
6609
|
+
.nys-tooltip__trigger {
|
|
6610
|
+
display: flex;
|
|
6611
|
+
}
|
|
6612
|
+
|
|
6613
|
+
.nys-tooltip__content {
|
|
6614
|
+
position: absolute;
|
|
6615
|
+
opacity: 0;
|
|
6616
|
+
display: block;
|
|
6617
|
+
max-width: 400px;
|
|
6618
|
+
width: max-content;
|
|
6619
|
+
max-height: 120px;
|
|
6620
|
+
padding: var(--nys-space-50, 4px) var(--nys-space-100, 8px);
|
|
6621
|
+
background: var(--_nys-tooltip-background);
|
|
6622
|
+
border-radius: var(--_nys-tooltip-border-radius);
|
|
6623
|
+
cursor: auto;
|
|
6624
|
+
z-index: 1;
|
|
6625
|
+
}
|
|
6626
|
+
|
|
6627
|
+
.nys-tooltip__inner {
|
|
6628
|
+
display: block;
|
|
6629
|
+
color: var(--_nys-tooltip-color);
|
|
6630
|
+
font-family: var(--_nys-tooltip-font-family);
|
|
6631
|
+
font-size: var(--_nys-tooltip-font-size);
|
|
6632
|
+
font-weight: 400;
|
|
6633
|
+
line-height: var(--_nys-tooltip-lineheight);
|
|
6634
|
+
letter-spacing: var(--_nys-tooltip-letterspacing);
|
|
6635
|
+
white-space: normal;
|
|
6636
|
+
word-break: break-word;
|
|
6637
|
+
overflow: hidden;
|
|
6638
|
+
text-overflow: ellipsis;
|
|
6639
|
+
display: -webkit-box;
|
|
6640
|
+
-webkit-line-clamp: 4;
|
|
6641
|
+
-webkit-box-orient: vertical;
|
|
6642
|
+
}
|
|
6643
|
+
|
|
6644
|
+
/* Tooltip Arrow (default) */
|
|
6645
|
+
.nys-tooltip__arrow {
|
|
6646
|
+
position: absolute;
|
|
6647
|
+
width: 14px;
|
|
6648
|
+
height: 6px;
|
|
6649
|
+
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="6" viewBox="0 0 15 6" fill="none"><path d="M8.15079 5.44218C7.7763 5.76317 7.2237 5.76317 6.84921 5.44218L0.5 0H14.5L8.15079 5.44218Z" fill="%231B1B1B"/></svg>')
|
|
6650
|
+
no-repeat center;
|
|
6651
|
+
}
|
|
6652
|
+
|
|
6653
|
+
.nys-tooltip__wrapper:hover .nys-tooltip__content,
|
|
6654
|
+
.nys-tooltip__content[active] {
|
|
6655
|
+
opacity: 1;
|
|
6656
|
+
}
|
|
6657
|
+
|
|
6658
|
+
/* ===================== POSITIONING ===================== */
|
|
6659
|
+
/* Top */
|
|
6660
|
+
:host([position="top"]) .nys-tooltip__content {
|
|
6661
|
+
bottom: 100%;
|
|
6662
|
+
left: 50%;
|
|
6663
|
+
transform: translateX(-50%);
|
|
6664
|
+
margin-bottom: 10px;
|
|
6665
|
+
}
|
|
6666
|
+
|
|
6667
|
+
:host([position="top"]) .nys-tooltip__arrow {
|
|
6668
|
+
top: 100%;
|
|
6669
|
+
left: var(--arrow-offset-x, 50%);
|
|
6670
|
+
transform: translateX(-50%);
|
|
6671
|
+
}
|
|
6672
|
+
|
|
6673
|
+
/* Bottom */
|
|
6674
|
+
:host([position="bottom"]) .nys-tooltip__content {
|
|
6675
|
+
top: 100%;
|
|
6676
|
+
left: 50%;
|
|
6677
|
+
transform: translateX(-50%);
|
|
6678
|
+
margin-top: 10px;
|
|
6679
|
+
}
|
|
6680
|
+
|
|
6681
|
+
:host([position="bottom"]) .nys-tooltip__arrow {
|
|
6682
|
+
bottom: 100%;
|
|
6683
|
+
left: var(--arrow-offset-x, 50%);
|
|
6684
|
+
transform: translateX(-50%) rotate(180deg);
|
|
6685
|
+
}
|
|
6686
|
+
|
|
6687
|
+
/* Left */
|
|
6688
|
+
:host([position="left"]) .nys-tooltip__content {
|
|
6689
|
+
left: auto;
|
|
6690
|
+
right: 100%;
|
|
6691
|
+
top: 50%;
|
|
6692
|
+
transform: translateY(-50%);
|
|
6693
|
+
margin-right: 10px;
|
|
6694
|
+
}
|
|
6695
|
+
|
|
6696
|
+
:host([position="left"]) .nys-tooltip__arrow {
|
|
6697
|
+
left: 100%;
|
|
6698
|
+
top: 50%;
|
|
6699
|
+
transform: translateY(-50%) rotate(-90deg);
|
|
6700
|
+
margin-left: -4px;
|
|
6701
|
+
}
|
|
6702
|
+
/* Right */
|
|
6703
|
+
:host([position="right"]) .nys-tooltip__content {
|
|
6704
|
+
left: 100%;
|
|
6705
|
+
top: 50%;
|
|
6706
|
+
transform: translateY(-50%);
|
|
6707
|
+
margin-left: 10px;
|
|
6708
|
+
}
|
|
6709
|
+
|
|
6710
|
+
:host([position="right"]) .nys-tooltip__arrow {
|
|
6711
|
+
right: 100%;
|
|
6712
|
+
top: 50%;
|
|
6713
|
+
transform: translateY(-50%) rotate(90deg);
|
|
6714
|
+
margin-right: -4px;
|
|
6715
|
+
}
|
|
6716
|
+
|
|
6717
|
+
:host([inverted]) .nys-tooltip__content {
|
|
6718
|
+
--_nys-tooltip-color: var(--nys-color-text, #1b1b1b);
|
|
6719
|
+
--_nys-tooltip-background: var(--nys-color-ink-reverse, #fff);
|
|
6720
|
+
}
|
|
6721
|
+
|
|
6722
|
+
:host([inverted]) .nys-tooltip__arrow {
|
|
6723
|
+
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="6" viewBox="0 0 15 6" fill="none"><path d="M8.15079 5.44218C7.7763 5.76317 7.2237 5.76317 6.84921 5.44218L0.5 0H14.5L8.15079 5.44218Z" fill="white"/></svg>')
|
|
6724
|
+
no-repeat center;
|
|
6725
|
+
}
|
|
6726
|
+
|
|
6727
|
+
@media (max-width: 400px) {
|
|
6728
|
+
.nys-tooltip__content {
|
|
6729
|
+
max-width: calc(
|
|
6730
|
+
100vw - 2rem
|
|
6731
|
+
); /* 2rem = 32px = 16px margin on each side */
|
|
6732
|
+
}
|
|
6733
|
+
}
|
|
6734
|
+
`;
|
|
6735
|
+
var ut = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, b1 = (a, e, t, o) => {
|
|
6736
|
+
for (var s = o > 1 ? void 0 : o ? ft(e, t) : e, n = a.length - 1, i; n >= 0; n--)
|
|
6737
|
+
(i = a[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
6738
|
+
return o && s && ut(e, t, s), s;
|
|
6739
|
+
};
|
|
6740
|
+
let gt = 0;
|
|
6741
|
+
const I1 = class I1 extends p {
|
|
6742
|
+
/**************** Lifecycle Methods ****************/
|
|
6743
|
+
constructor() {
|
|
6744
|
+
super(), this.id = "", this.text = "", this.inverted = !1, this._active = !1, this._userHasSetPosition = !1, this._originalUserPosition = null, this._internallyUpdatingPosition = !1, this._position = null, this._handleTooltipEnter = () => {
|
|
6745
|
+
if (this._active = !0, this._addScrollListeners(), this._userHasSetPosition && this._originalUserPosition && this._doesPositionFit(this._originalUserPosition)) {
|
|
6746
|
+
this.position = this._originalUserPosition, this.updateComplete.then(() => {
|
|
6747
|
+
var t;
|
|
6748
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(
|
|
6749
|
+
".nys-tooltip__content"
|
|
6750
|
+
);
|
|
6751
|
+
e && this._shiftTooltipIntoViewport(e);
|
|
6752
|
+
});
|
|
6753
|
+
return;
|
|
6754
|
+
}
|
|
6755
|
+
this.autoPositionTooltip();
|
|
6756
|
+
}, this._handleBlurOrMouseLeave = () => {
|
|
6757
|
+
var t;
|
|
6758
|
+
this._active = !1, this._removeScrollListeners();
|
|
6759
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(
|
|
6760
|
+
".nys-tooltip__content"
|
|
6761
|
+
);
|
|
6762
|
+
e && this._resetTooltipPositioningStyles(e);
|
|
6763
|
+
}, this._handleScrollOrResize = () => {
|
|
6764
|
+
this._active && (this._userHasSetPosition && this._originalUserPosition ? this._doesPositionFit(this._originalUserPosition) ? (this.position = this._originalUserPosition, this.updateComplete.then(() => {
|
|
6765
|
+
var t;
|
|
6766
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(
|
|
6767
|
+
".nys-tooltip__content"
|
|
6768
|
+
);
|
|
6769
|
+
e && this._shiftTooltipIntoViewport(e);
|
|
6770
|
+
})) : this.autoPositionTooltip() : this.autoPositionTooltip());
|
|
6771
|
+
};
|
|
6772
|
+
}
|
|
6773
|
+
get position() {
|
|
6774
|
+
return this._position;
|
|
6775
|
+
}
|
|
6776
|
+
set position(e) {
|
|
6777
|
+
const t = this._position;
|
|
6778
|
+
this._position = e, this.requestUpdate("position", t), this._internallyUpdatingPosition || (this._userHasSetPosition = e !== null, this._originalUserPosition = e);
|
|
6779
|
+
}
|
|
6780
|
+
connectedCallback() {
|
|
6781
|
+
super.connectedCallback(), this.id || (this.id = `nys-toggle-${Date.now()}-${gt++}`);
|
|
6782
|
+
}
|
|
6783
|
+
// Listen to window scroll so a focus tooltip can auto position even when user move across the page
|
|
6784
|
+
_addScrollListeners() {
|
|
6785
|
+
window.addEventListener("scroll", this._handleScrollOrResize, !0), window.addEventListener("resize", this._handleScrollOrResize);
|
|
6786
|
+
}
|
|
6787
|
+
_removeScrollListeners() {
|
|
6788
|
+
window.removeEventListener("scroll", this._handleScrollOrResize, !0), window.removeEventListener("resize", this._handleScrollOrResize);
|
|
6789
|
+
}
|
|
6790
|
+
/******************** Functions ********************/
|
|
6791
|
+
// Checks if user's set position fit with current viewport (Does not account for overflow texts at this moment)
|
|
6792
|
+
_doesPositionFit(e) {
|
|
6793
|
+
var b, k;
|
|
6794
|
+
const t = (b = this.shadowRoot) == null ? void 0 : b.querySelector(".nys-tooltip__wrapper"), o = (k = this.shadowRoot) == null ? void 0 : k.querySelector(".nys-tooltip__content");
|
|
6795
|
+
if (!t || !o || e == null) return;
|
|
6796
|
+
const s = t.getBoundingClientRect(), n = o.getBoundingClientRect(), i = 8, c = {
|
|
6797
|
+
top: s.top - i,
|
|
6798
|
+
left: s.left - i,
|
|
6799
|
+
bottom: window.innerHeight - s.bottom - i,
|
|
6800
|
+
right: window.innerWidth - s.right - i
|
|
6801
|
+
};
|
|
6802
|
+
return {
|
|
6803
|
+
top: c.top >= n.height,
|
|
6804
|
+
bottom: c.bottom >= n.height,
|
|
6805
|
+
left: c.left >= n.width,
|
|
6806
|
+
right: c.right >= n.width
|
|
6807
|
+
}[e];
|
|
6808
|
+
}
|
|
6809
|
+
// Calculates the best placement based on available space (flips placement if it doesn't fit)
|
|
6810
|
+
async autoPositionTooltip() {
|
|
6811
|
+
var f1, m1;
|
|
6812
|
+
const e = (f1 = this.shadowRoot) == null ? void 0 : f1.querySelector(
|
|
6813
|
+
".nys-tooltip__wrapper"
|
|
6814
|
+
), t = (m1 = this.shadowRoot) == null ? void 0 : m1.querySelector(
|
|
6815
|
+
".nys-tooltip__content"
|
|
6816
|
+
);
|
|
6817
|
+
if (!e || !t) return;
|
|
6818
|
+
const o = e.getBoundingClientRect(), s = 8, n = this.position, i = {
|
|
6819
|
+
top: o.top - s,
|
|
6820
|
+
left: o.left - s,
|
|
6821
|
+
bottom: window.innerHeight - o.bottom - s,
|
|
6822
|
+
right: window.innerWidth - o.right - s
|
|
6823
|
+
}, c = [
|
|
6824
|
+
"top",
|
|
6825
|
+
"bottom",
|
|
6826
|
+
"right",
|
|
6827
|
+
"left"
|
|
6828
|
+
];
|
|
6829
|
+
let d = c;
|
|
6830
|
+
n === "left" ? d = ["left", "right", "top", "bottom"] : n === "right" ? d = ["right", "left", "top", "bottom"] : n === "top" ? d = ["top", "bottom", "right", "left"] : n === "bottom" && (d = ["bottom", "top", "right", "left"]);
|
|
6831
|
+
for (const Q of d)
|
|
6832
|
+
if (this._doesPositionFit(Q)) {
|
|
6833
|
+
this._setInternalPosition(Q), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6834
|
+
return;
|
|
6835
|
+
}
|
|
6836
|
+
let b = "top", k = i.top;
|
|
6837
|
+
for (const Q of c)
|
|
6838
|
+
i[Q] > k && (k = i[Q], b = Q);
|
|
6839
|
+
this._setInternalPosition(b), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6840
|
+
}
|
|
6841
|
+
// Sets flag to distinguish to position's setter that we are updating "position" prop internally
|
|
6842
|
+
_setInternalPosition(e) {
|
|
6843
|
+
this._internallyUpdatingPosition = !0, this.position = e, this._internallyUpdatingPosition = !1;
|
|
6844
|
+
}
|
|
6845
|
+
// Determines if text of tooltip over-extends outside of viewport edge and adjust tooltip for horizontal overflow
|
|
6846
|
+
_shiftTooltipIntoViewport(e) {
|
|
6847
|
+
var k;
|
|
6848
|
+
const t = e.getBoundingClientRect(), s = ((k = this.shadowRoot) == null ? void 0 : k.querySelector(
|
|
6849
|
+
".nys-tooltip__wrapper"
|
|
6850
|
+
)).getBoundingClientRect(), n = s.left + s.width / 2, i = t.left < 0, c = t.right > window.innerWidth;
|
|
6851
|
+
this._resetTooltipPositioningStyles(e), i ? (e.style.left = "0px", e.style.transform = "none") : c && (e.style.right = "0px", e.style.left = "auto", e.style.transform = "none");
|
|
6852
|
+
const d = e.getBoundingClientRect(), b = n - d.left;
|
|
6853
|
+
e.style.setProperty("--arrow-offset-x", `${b}px`);
|
|
6854
|
+
}
|
|
6855
|
+
// Reposition tooltip back to original set position (e.g. top, left, bottom, right)
|
|
6856
|
+
_resetTooltipPositioningStyles(e) {
|
|
6857
|
+
e.style.left = "", e.style.right = "", e.style.transform = "";
|
|
6858
|
+
}
|
|
6859
|
+
render() {
|
|
6860
|
+
var t;
|
|
6861
|
+
const e = `${this.id}__tooltip`;
|
|
6862
|
+
return l`
|
|
6863
|
+
<div
|
|
6864
|
+
class="nys-tooltip__wrapper"
|
|
6865
|
+
@mouseenter=${this._handleTooltipEnter}
|
|
6866
|
+
@mouseleave=${this._handleBlurOrMouseLeave}
|
|
6867
|
+
@focusin=${this._handleTooltipEnter}
|
|
6868
|
+
@focusout=${this._handleBlurOrMouseLeave}
|
|
6869
|
+
>
|
|
6870
|
+
<span class="nys-tooltip__trigger" aria-describedby=${e}>
|
|
6871
|
+
<slot></slot>
|
|
6872
|
+
</span>
|
|
6873
|
+
${(t = this.text) != null && t.trim() ? l`<div
|
|
6874
|
+
id=${e}
|
|
6875
|
+
class="nys-tooltip__content"
|
|
6876
|
+
role="tooltip"
|
|
6877
|
+
aria-hidden=${!this._active}
|
|
6878
|
+
?active=${this._active}
|
|
6879
|
+
>
|
|
6880
|
+
<div class="nys-tooltip__inner">${this.text}</div>
|
|
6881
|
+
<span class="nys-tooltip__arrow"></span>
|
|
6882
|
+
</div>` : ""}
|
|
6883
|
+
</div>
|
|
6884
|
+
`;
|
|
6885
|
+
}
|
|
6886
|
+
};
|
|
6887
|
+
I1.styles = pt;
|
|
6888
|
+
let o1 = I1;
|
|
6889
|
+
b1([
|
|
6890
|
+
r({ type: String })
|
|
6891
|
+
], o1.prototype, "id", 2);
|
|
6892
|
+
b1([
|
|
6893
|
+
r({ type: String })
|
|
6894
|
+
], o1.prototype, "text", 2);
|
|
6895
|
+
b1([
|
|
6896
|
+
r({ type: Boolean, reflect: !0 })
|
|
6897
|
+
], o1.prototype, "inverted", 2);
|
|
6898
|
+
b1([
|
|
6899
|
+
O()
|
|
6900
|
+
], o1.prototype, "_active", 2);
|
|
6901
|
+
b1([
|
|
6902
|
+
r({ type: String, reflect: !0 })
|
|
6903
|
+
], o1.prototype, "position", 1);
|
|
6904
|
+
customElements.get("nys-tooltip") || customElements.define("nys-tooltip", o1);
|
|
6905
|
+
const vt = u`
|
|
6018
6906
|
:host {
|
|
6019
6907
|
/* Global Unav Header Styles */
|
|
6020
6908
|
--_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
|
|
@@ -6361,7 +7249,7 @@ const t2 = g`
|
|
|
6361
7249
|
display: none;
|
|
6362
7250
|
}
|
|
6363
7251
|
}
|
|
6364
|
-
`,
|
|
7252
|
+
`, Ct = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
6365
7253
|
<path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="#457AA5"/>
|
|
6366
7254
|
<path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="#457AA5"/>
|
|
6367
7255
|
<path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="#457AA5"/>
|
|
@@ -6378,12 +7266,12 @@ const t2 = g`
|
|
|
6378
7266
|
<path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="#154973"/>
|
|
6379
7267
|
<path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="#154973"/>
|
|
6380
7268
|
</svg>`;
|
|
6381
|
-
var
|
|
7269
|
+
var bt = Object.defineProperty, c1 = (a, e, t, o) => {
|
|
6382
7270
|
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
6383
7271
|
(i = a[n]) && (s = i(e, t, s) || s);
|
|
6384
|
-
return s &&
|
|
7272
|
+
return s && bt(e, t, s), s;
|
|
6385
7273
|
};
|
|
6386
|
-
const
|
|
7274
|
+
const B1 = class B1 extends p {
|
|
6387
7275
|
constructor() {
|
|
6388
7276
|
super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
|
|
6389
7277
|
["English", ""],
|
|
@@ -6403,7 +7291,7 @@ const L1 = class L1 extends u {
|
|
|
6403
7291
|
];
|
|
6404
7292
|
}
|
|
6405
7293
|
_getNysLogo() {
|
|
6406
|
-
return new DOMParser().parseFromString(
|
|
7294
|
+
return new DOMParser().parseFromString(Ct, "image/svg+xml").documentElement;
|
|
6407
7295
|
}
|
|
6408
7296
|
_toggleTrustbar() {
|
|
6409
7297
|
this.trustbarVisible = !this.trustbarVisible, this.trustbarVisible && (this.languageVisible = !1, this.searchDropdownVisible = !1);
|
|
@@ -6656,31 +7544,31 @@ const L1 = class L1 extends u {
|
|
|
6656
7544
|
`;
|
|
6657
7545
|
}
|
|
6658
7546
|
};
|
|
6659
|
-
|
|
6660
|
-
let
|
|
6661
|
-
|
|
7547
|
+
B1.styles = vt;
|
|
7548
|
+
let U = B1;
|
|
7549
|
+
c1([
|
|
6662
7550
|
r({ type: Boolean })
|
|
6663
|
-
],
|
|
6664
|
-
|
|
7551
|
+
], U.prototype, "trustbarVisible");
|
|
7552
|
+
c1([
|
|
6665
7553
|
r({ type: Boolean })
|
|
6666
|
-
],
|
|
6667
|
-
|
|
7554
|
+
], U.prototype, "searchDropdownVisible");
|
|
7555
|
+
c1([
|
|
6668
7556
|
r({ type: Boolean })
|
|
6669
|
-
],
|
|
6670
|
-
|
|
7557
|
+
], U.prototype, "languageVisible");
|
|
7558
|
+
c1([
|
|
6671
7559
|
r({ type: Boolean })
|
|
6672
|
-
],
|
|
6673
|
-
|
|
7560
|
+
], U.prototype, "isSearchFocused");
|
|
7561
|
+
c1([
|
|
6674
7562
|
r({ type: Boolean })
|
|
6675
|
-
],
|
|
6676
|
-
|
|
7563
|
+
], U.prototype, "hideTranslate");
|
|
7564
|
+
c1([
|
|
6677
7565
|
r({ type: Boolean })
|
|
6678
|
-
],
|
|
6679
|
-
|
|
7566
|
+
], U.prototype, "hideSearch");
|
|
7567
|
+
c1([
|
|
6680
7568
|
r({ type: String, reflect: !0 })
|
|
6681
|
-
],
|
|
6682
|
-
customElements.get("nys-unavheader") || customElements.define("nys-unavheader",
|
|
6683
|
-
const
|
|
7569
|
+
], U.prototype, "languages");
|
|
7570
|
+
customElements.get("nys-unavheader") || customElements.define("nys-unavheader", U);
|
|
7571
|
+
const _t = u`
|
|
6684
7572
|
:host {
|
|
6685
7573
|
/* Global Header Styles */
|
|
6686
7574
|
--_nys-globalheader-text-color: var(
|
|
@@ -6961,12 +7849,12 @@ const r2 = g`
|
|
|
6961
7849
|
}
|
|
6962
7850
|
}
|
|
6963
7851
|
`;
|
|
6964
|
-
var
|
|
7852
|
+
var mt = Object.defineProperty, _1 = (a, e, t, o) => {
|
|
6965
7853
|
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
6966
7854
|
(i = a[n]) && (s = i(e, t, s) || s);
|
|
6967
|
-
return s &&
|
|
7855
|
+
return s && mt(e, t, s), s;
|
|
6968
7856
|
};
|
|
6969
|
-
const
|
|
7857
|
+
const q1 = class q1 extends p {
|
|
6970
7858
|
constructor() {
|
|
6971
7859
|
super(...arguments), this.appName = "", this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0, this.isMobileMenuOpen = !1;
|
|
6972
7860
|
}
|
|
@@ -6991,10 +7879,10 @@ const $1 = class $1 extends u {
|
|
|
6991
7879
|
);
|
|
6992
7880
|
o && s && (o.innerHTML = "", s.innerHTML = "", t.forEach((d) => {
|
|
6993
7881
|
if (d.nodeType === Node.ELEMENT_NODE) {
|
|
6994
|
-
const
|
|
6995
|
-
["script", "iframe", "object", "embed, img"].forEach((
|
|
6996
|
-
|
|
6997
|
-
}), o.appendChild(
|
|
7882
|
+
const b = d.cloneNode(!0), k = d.cloneNode(!0);
|
|
7883
|
+
["script", "iframe", "object", "embed, img"].forEach((m1) => {
|
|
7884
|
+
b.querySelectorAll(m1).forEach((Q) => Q.remove());
|
|
7885
|
+
}), o.appendChild(b), s.appendChild(k), d.remove();
|
|
6998
7886
|
}
|
|
6999
7887
|
}));
|
|
7000
7888
|
}
|
|
@@ -7065,25 +7953,25 @@ const $1 = class $1 extends u {
|
|
|
7065
7953
|
`;
|
|
7066
7954
|
}
|
|
7067
7955
|
};
|
|
7068
|
-
|
|
7069
|
-
let
|
|
7070
|
-
|
|
7956
|
+
q1.styles = _t;
|
|
7957
|
+
let r1 = q1;
|
|
7958
|
+
_1([
|
|
7071
7959
|
r({ type: String })
|
|
7072
|
-
],
|
|
7073
|
-
|
|
7960
|
+
], r1.prototype, "appName");
|
|
7961
|
+
_1([
|
|
7074
7962
|
r({ type: String })
|
|
7075
|
-
],
|
|
7076
|
-
|
|
7963
|
+
], r1.prototype, "agencyName");
|
|
7964
|
+
_1([
|
|
7077
7965
|
r({ type: String })
|
|
7078
|
-
],
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
],
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
],
|
|
7085
|
-
customElements.get("nys-globalheader") || customElements.define("nys-globalheader",
|
|
7086
|
-
const
|
|
7966
|
+
], r1.prototype, "homepageLink");
|
|
7967
|
+
_1([
|
|
7968
|
+
O()
|
|
7969
|
+
], r1.prototype, "slotHasContent");
|
|
7970
|
+
_1([
|
|
7971
|
+
O()
|
|
7972
|
+
], r1.prototype, "isMobileMenuOpen");
|
|
7973
|
+
customElements.get("nys-globalheader") || customElements.define("nys-globalheader", r1);
|
|
7974
|
+
const xt = u`
|
|
7087
7975
|
:host {
|
|
7088
7976
|
/* Global Footer Styles */
|
|
7089
7977
|
--_nys-globalfooter-text-color: var(
|
|
@@ -7239,12 +8127,12 @@ const i2 = g`
|
|
|
7239
8127
|
}
|
|
7240
8128
|
}
|
|
7241
8129
|
`;
|
|
7242
|
-
var
|
|
8130
|
+
var wt = Object.defineProperty, z1 = (a, e, t, o) => {
|
|
7243
8131
|
for (var s = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
7244
8132
|
(i = a[n]) && (s = i(e, t, s) || s);
|
|
7245
|
-
return s &&
|
|
8133
|
+
return s && wt(e, t, s), s;
|
|
7246
8134
|
};
|
|
7247
|
-
const
|
|
8135
|
+
const U1 = class U1 extends p {
|
|
7248
8136
|
constructor() {
|
|
7249
8137
|
super(...arguments), this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0;
|
|
7250
8138
|
}
|
|
@@ -7270,8 +8158,8 @@ const S1 = class S1 extends u {
|
|
|
7270
8158
|
o && (o.classList.toggle("columns", s), o.classList.toggle("small", !s), o.innerHTML = "", t.forEach((c) => {
|
|
7271
8159
|
if (c.nodeType === Node.ELEMENT_NODE) {
|
|
7272
8160
|
const d = c.cloneNode(!0);
|
|
7273
|
-
["script", "iframe", "object", "embed", "img"].forEach((
|
|
7274
|
-
d.querySelectorAll(
|
|
8161
|
+
["script", "iframe", "object", "embed", "img"].forEach((k) => {
|
|
8162
|
+
d.querySelectorAll(k).forEach((f1) => f1.remove());
|
|
7275
8163
|
}), o.appendChild(d), c.remove();
|
|
7276
8164
|
}
|
|
7277
8165
|
}));
|
|
@@ -7295,19 +8183,19 @@ const S1 = class S1 extends u {
|
|
|
7295
8183
|
`;
|
|
7296
8184
|
}
|
|
7297
8185
|
};
|
|
7298
|
-
|
|
7299
|
-
let
|
|
7300
|
-
|
|
8186
|
+
U1.styles = xt;
|
|
8187
|
+
let y1 = U1;
|
|
8188
|
+
z1([
|
|
7301
8189
|
r({ type: String })
|
|
7302
|
-
],
|
|
7303
|
-
|
|
8190
|
+
], y1.prototype, "agencyName");
|
|
8191
|
+
z1([
|
|
7304
8192
|
r({ type: String })
|
|
7305
|
-
],
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
],
|
|
7309
|
-
customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter",
|
|
7310
|
-
const
|
|
8193
|
+
], y1.prototype, "homepageLink");
|
|
8194
|
+
z1([
|
|
8195
|
+
O()
|
|
8196
|
+
], y1.prototype, "slotHasContent");
|
|
8197
|
+
customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", y1);
|
|
8198
|
+
const kt = u`
|
|
7311
8199
|
:host {
|
|
7312
8200
|
/* Global Footer Styles */
|
|
7313
8201
|
--_nys-unavfooter-link-color: var(
|
|
@@ -7463,7 +8351,7 @@ const l2 = g`
|
|
|
7463
8351
|
--_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
|
|
7464
8352
|
}
|
|
7465
8353
|
}
|
|
7466
|
-
`,
|
|
8354
|
+
`, Lt = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
7467
8355
|
<path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="white"/>
|
|
7468
8356
|
<path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="white"/>
|
|
7469
8357
|
<path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="white"/>
|
|
@@ -7479,10 +8367,10 @@ const l2 = g`
|
|
|
7479
8367
|
<path d="M51.7107 54.9999C51.577 54.9999 51.4335 54.974 51.2939 54.8965C51.085 54.7803 50.9395 54.5876 50.8858 54.3551C50.8233 54.0868 50.8936 53.7868 51.082 53.5116L51.1426 53.4202C51.2041 53.3268 51.2685 53.2354 51.3407 53.1519C51.4218 53.0595 51.5047 52.995 51.5741 52.9493C51.5243 52.6691 51.5418 52.4267 51.5682 52.2061C51.5877 52.0233 51.6346 51.8683 51.6726 51.7451C51.6892 51.6925 51.7058 51.6388 51.7185 51.5812C51.8201 51.145 51.8855 50.7397 51.9206 50.3453C51.9528 49.9916 51.947 49.9846 51.8864 49.9061C51.7 49.6707 51.3847 49.5018 51.0498 49.3229C50.8878 49.2365 50.7286 49.1491 50.5754 49.0557C49.607 48.4536 48.6376 47.8505 47.6701 47.2465L47.3294 47.0339C47.2513 46.9862 47.1147 46.9156 46.9516 46.8282C45.8817 46.2659 45.172 45.8526 45.0539 45.2595C45.0363 45.173 44.9465 44.9644 44.884 44.864C44.8411 44.8611 44.7307 44.8521 44.6546 44.8471C44.3032 44.8183 43.7711 44.7726 43.3484 44.3196C43.2635 44.2272 43.1786 44.1408 43.1005 44.0583C42.5098 43.4443 42.0003 42.9148 41.9329 41.5993C41.9241 41.4275 41.9251 41.2506 41.928 41.0728C41.9339 40.5283 41.927 40.1836 41.7103 39.962C41.6078 39.8567 41.435 39.7862 41.2349 39.7037C40.9889 39.6034 40.7097 39.4881 40.45 39.2686C40.37 39.2 40.2792 39.1007 40.1776 38.9854C40.0712 38.8602 39.9082 38.6724 39.7969 38.6337C38.974 38.3436 37.986 38.3178 36.96 38.3178L3.07245 38.2909C2.85964 38.2909 2.66927 38.3138 2.48477 38.3347C2.07378 38.3823 1.60812 38.437 1.2313 38.0962C0.866192 37.7664 0.815429 37.2607 0.814452 36.8076L0.8125 34.3993C0.8125 34.2722 0.847644 34.147 0.913051 34.0387C1.22544 33.529 1.83265 33.2558 2.3686 33.0144C2.56872 32.924 2.77666 32.8316 2.88795 32.7571C3.17593 32.5623 3.43561 32.302 3.7109 32.0248C3.91688 31.8182 4.13068 31.6046 4.36887 31.4059C4.69786 31.1317 5.07078 30.931 5.43296 30.7372C5.74535 30.5703 6.03821 30.4124 6.24127 30.2395C6.38575 30.1173 6.49216 29.9146 6.61906 29.6792C6.75476 29.4238 6.90998 29.1337 7.15208 28.8804C7.41273 28.6081 7.7427 28.4194 8.03263 28.2535C8.69744 27.871 8.68182 27.8322 8.57736 27.5769C8.52855 27.4577 8.48072 27.3553 8.43972 27.2639C8.24447 26.8357 8.07754 26.4681 8.19078 25.7051C8.2025 25.6306 8.21616 25.5521 8.22983 25.4706C8.25619 25.3325 8.30305 25.0772 8.27571 25.0037C8.27571 25.0037 8.26204 24.9927 8.23471 24.9778C8.21128 24.9659 8.12928 24.9669 8.06875 24.9679C7.87448 24.9659 7.51914 24.9768 7.2497 24.6689C6.98124 24.3629 6.99686 23.9555 7.03982 23.6356C7.08179 23.3127 7.06032 23.1051 7.03982 22.9223C6.95684 22.1453 7.21358 21.7817 8.10097 21.424C10.7524 20.351 12.901 19.9884 14.8613 20.2805C14.9775 20.2974 15.1356 20.2656 15.3182 20.2269C15.5944 20.1702 15.9351 20.1017 16.312 20.1752L18.3952 20.5766C19.2475 20.7415 19.6653 20.9054 20.3047 21.4995C20.6327 21.8046 20.7655 21.7718 21.3327 21.5661C21.6168 21.4638 21.9399 21.3485 22.3323 21.2949C22.9727 21.2084 23.5731 21.2661 24.153 21.3227C24.4136 21.3475 24.6762 21.3734 24.9408 21.3843C25.2356 21.3952 25.6085 21.2561 25.9717 21.121C26.1318 21.0614 26.2889 21.0028 26.4412 20.9541C26.78 20.8468 27.0973 20.7991 27.4038 20.7514C27.5551 20.7266 27.7064 20.7037 27.8607 20.6729C27.8714 20.6531 27.8821 20.6332 27.8939 20.6113C27.9417 20.5249 27.9944 20.4345 28.0598 20.3411C28.3419 19.9497 28.7471 19.7003 29.0722 19.4966L29.2078 19.4122C29.5564 19.1916 29.8629 18.9879 30.105 18.7386C30.5423 18.2796 31.1232 18.3114 31.5108 18.3312C31.6455 18.3392 31.8495 18.3481 31.91 18.3223C32.1678 18.207 31.9413 17.3993 31.8065 16.9165C31.7119 16.5777 31.6299 16.2846 31.6133 16.0183C31.5664 15.2642 31.9764 14.7317 32.3064 14.3045C32.5651 13.9687 32.7213 13.7481 32.7164 13.5355C32.7164 13.4948 32.7027 13.4382 32.6851 13.3845C32.4587 13.4948 32.0955 13.6369 31.6796 13.4421C31.0129 13.1302 30.6468 12.0264 30.8508 11.3985C31.0197 10.8779 31.54 10.5421 31.9198 10.2957L32.0565 10.2053C32.3806 9.98471 32.7242 9.79792 33.0542 9.6181C33.5159 9.36873 33.9513 9.13227 34.2949 8.82726C34.4404 8.69711 34.5761 8.56994 34.7089 8.44376C35.0076 8.1626 35.3161 7.8715 35.6792 7.61319C35.7056 7.5188 35.728 7.34096 35.7437 7.22571C35.7729 7.00714 35.8022 6.78062 35.8803 6.5849C36.2513 5.64304 37.1592 4.90884 37.9597 4.25908C38.2252 4.04448 38.4771 3.84081 38.6743 3.65602C38.7992 3.53878 38.9222 3.42055 39.0452 3.30332C39.6388 2.73701 40.2509 2.15084 40.9967 1.68289C41.601 1.30536 42.3898 0.833439 43.1249 0.552274C44.0972 0.1807 44.5579 0.208518 45.4766 0.262168L45.6474 0.27111C47.3607 0.371455 49.1384 0.32476 50.8575 0.281045C51.7205 0.258194 52.5796 0.235343 53.4347 0.230376C53.6651 0.230376 54.0156 0.185667 54.3836 0.138972C55.6078 -0.0140291 56.994 -0.188888 57.7818 0.503592C58.1118 0.792705 58.2924 1.19806 58.3031 1.67594C58.311 2.05248 58.1567 2.33464 58.0435 2.54129C58.0064 2.60686 57.9527 2.7082 57.9458 2.74297C57.9488 2.73205 57.9849 2.78768 58.0103 2.82742C58.1362 3.01718 58.3686 3.37088 58.2748 3.89843C58.2397 4.10111 58.1811 4.3167 58.1216 4.53528C58.0464 4.81147 57.9693 5.09761 57.9624 5.31419C57.9498 5.69073 57.6335 5.99376 57.2703 5.97289C56.9013 5.95998 56.6104 5.64603 56.6231 5.26849C56.6367 4.89195 56.7392 4.50944 56.831 4.17264C56.8788 3.9948 56.9276 3.82094 56.9569 3.65502C56.9481 3.65502 56.9218 3.62323 56.8993 3.58746C56.791 3.42254 56.6065 3.14535 56.6065 2.73701C56.6065 2.36345 56.7607 2.08328 56.873 1.87862C56.9072 1.81702 56.9589 1.72462 56.9657 1.69084C56.9608 1.58354 56.9267 1.55274 56.9072 1.53685C56.5694 1.23979 55.2544 1.40372 54.5496 1.49313C54.1386 1.5438 53.752 1.59348 53.4435 1.59547C52.5971 1.60043 51.7439 1.62229 50.8907 1.64315C49.1442 1.68886 47.3382 1.73654 45.5722 1.63421L45.3985 1.62328C44.5345 1.57162 44.3022 1.55871 43.5964 1.82894C42.9618 2.07235 42.2101 2.5244 41.7006 2.84431C41.0699 3.23973 40.533 3.75338 39.9648 4.29683C39.8379 4.41804 39.712 4.53925 39.5831 4.65947C39.3479 4.87804 39.0794 5.09661 38.7953 5.32611C38.1237 5.87056 37.3642 6.48555 37.1231 7.09457C37.1065 7.14425 37.085 7.30221 37.0713 7.40753C37.0147 7.84666 36.9424 8.3931 36.5041 8.69016C36.1927 8.90277 35.9145 9.16704 35.6187 9.44523C35.4771 9.57935 35.3317 9.71546 35.1774 9.85257C34.7186 10.2629 34.1924 10.548 33.6838 10.8222C33.3675 10.9931 33.0698 11.1541 32.8033 11.3369C32.7554 11.3707 32.6978 11.4064 32.6373 11.4462C32.5114 11.5276 32.2332 11.7065 32.1346 11.8217C32.1424 11.8992 32.1726 12.0115 32.2117 12.1009C32.3757 12.0214 32.6041 11.924 32.8804 11.9459C33.6633 12.0135 34.0401 12.8937 34.0558 13.4988C34.0743 14.2191 33.677 14.7337 33.3587 15.145C33.0971 15.4868 32.9351 15.7074 32.9487 15.9319C32.9565 16.0511 33.0288 16.3114 33.0932 16.5419C33.3314 17.3933 33.7746 18.978 32.4479 19.5701C32.0965 19.7281 31.7314 19.7082 31.4375 19.6933C31.3126 19.6864 31.1046 19.6764 31.047 19.7023C30.7171 20.051 30.3227 20.3113 29.9166 20.5706L29.7692 20.663C29.5212 20.816 29.2654 20.976 29.1405 21.1488C29.1083 21.1935 29.0819 21.2412 29.0585 21.2859C28.9345 21.5085 28.7256 21.884 28.174 21.9993C27.9827 22.04 27.7943 22.0708 27.6059 22.0996C27.3364 22.1414 27.0807 22.1811 26.8386 22.2566C26.7087 22.2993 26.5711 22.35 26.4334 22.4017C25.9697 22.5745 25.4435 22.7732 24.8871 22.7474C24.5981 22.7355 24.3131 22.7087 24.027 22.6808C23.4989 22.6282 22.9981 22.5805 22.511 22.6481C22.2572 22.6828 22.0258 22.7653 21.7817 22.8537C21.1716 23.0733 20.3369 23.3733 19.4046 22.508C18.9927 22.1265 18.8267 22.049 18.1473 21.9178L16.065 21.5164C15.942 21.4936 15.775 21.5264 15.5818 21.5651C15.3289 21.6168 15.0136 21.6784 14.6719 21.6297C12.9508 21.3724 11.0218 21.7112 8.59689 22.6928C8.49829 22.7325 8.42703 22.7643 8.37431 22.7891C8.39579 22.9779 8.42312 23.2491 8.39091 23.6217C8.53343 23.6416 8.69353 23.6843 8.86047 23.7737C9.81228 24.2834 9.63461 25.256 9.5487 25.724C9.53601 25.7876 9.52528 25.8511 9.51551 25.9127C9.4628 26.2694 9.49501 26.3429 9.65511 26.6917C9.70392 26.798 9.75664 26.9162 9.81326 27.0543C10.3941 28.4681 9.28415 29.1039 8.68865 29.4447C8.46705 29.5719 8.23764 29.701 8.11268 29.8331C7.99944 29.9524 7.89987 30.1372 7.79541 30.3329C7.62945 30.6448 7.44104 30.9975 7.10522 31.2847C6.79088 31.5529 6.41894 31.7536 6.05871 31.9454C5.74144 32.1153 5.44077 32.2762 5.21623 32.464C5.02782 32.6219 4.84527 32.8048 4.65295 32.9985C4.34252 33.3085 4.02524 33.6294 3.62499 33.8976C3.41901 34.0347 3.17203 34.147 2.9104 34.2652C2.69661 34.3606 2.33443 34.5225 2.14992 34.6626L2.15383 36.8096C2.15383 36.8881 2.15578 36.9527 2.15871 37.0023C2.21533 36.9974 2.27586 36.9904 2.32662 36.9835C2.5287 36.9606 2.77959 36.9308 3.06952 36.9308L36.9581 36.9566C38.0573 36.9566 39.2141 36.9884 40.2304 37.3471C40.6755 37.5021 40.9801 37.8538 41.1812 38.0853C41.2281 38.1399 41.2681 38.1896 41.3052 38.2234C41.4018 38.3048 41.5551 38.3674 41.7328 38.441C42.0129 38.5562 42.3615 38.7003 42.6572 39.0043C43.2811 39.6411 43.2713 40.4469 43.2645 41.0927C43.2606 41.2417 43.2606 41.3897 43.2664 41.5328C43.3084 42.3326 43.5261 42.5581 44.0532 43.1055C44.1372 43.1929 44.2251 43.2853 44.3188 43.3847C44.3842 43.4542 44.5287 43.4701 44.761 43.491C45.0412 43.5138 45.3897 43.5417 45.6953 43.7751C46.0291 44.0275 46.2546 44.5888 46.3376 44.8809C46.5455 45.0846 47.2777 45.4711 47.5647 45.6211C47.7639 45.7264 47.9298 45.8158 48.0265 45.8754L48.3672 46.088C49.3346 46.6891 50.3011 47.2922 51.2705 47.8943C51.3993 47.9727 51.533 48.0463 51.6707 48.1188C52.0924 48.3443 52.5698 48.6006 52.9291 49.0567C53.3215 49.5544 53.2942 50.0045 53.259 50.4029C53.3156 50.2936 53.3781 50.1893 53.4513 50.0879C53.5841 49.8982 53.7393 49.7541 53.877 49.626C54.0136 49.4998 54.1073 49.4104 54.1396 49.3388C54.1132 49.2772 54.0527 49.1739 54.0117 49.1034C53.8487 48.8232 53.6271 48.4387 53.7315 47.9857C53.7725 47.8108 53.8789 47.6588 54.0283 47.5634C54.0849 47.5276 54.205 47.4591 54.3631 47.3717C54.5818 47.2495 55.1373 46.9405 55.475 46.71C54.9723 45.5913 55.1392 44.2163 55.2886 42.9843C55.3345 42.6038 55.3784 42.2451 55.3989 41.9222C55.4204 41.5467 55.7337 41.2606 56.1076 41.2834C56.4776 41.3063 56.7588 41.6301 56.7353 42.0057C56.7148 42.3693 56.667 42.7498 56.6182 43.1522C56.4776 44.3166 56.3165 45.637 56.833 46.3911C56.954 46.5669 56.994 46.7895 56.9452 47.0021C56.8417 47.4502 56.3898 47.7879 55.1958 48.4606C55.352 48.7308 55.5395 49.0904 55.4731 49.5167C55.4623 49.5812 55.4487 49.6428 55.4321 49.7015C55.766 49.5793 56.1154 49.464 56.4845 49.3577C57.8775 48.9543 59.3409 48.7745 61.225 48.7745C62.0587 48.7745 62.8006 48.5053 63.5874 48.2211C64.2103 47.9946 64.8546 47.7621 65.576 47.6508C66.1852 47.5555 66.5005 47.7562 66.7728 47.9688C66.8636 48.0403 66.93 48.09 67.0442 48.1357C67.3625 48.2619 67.7325 48.2211 68.1601 48.1754C68.5925 48.1277 69.0836 48.0731 69.5844 48.2042C69.8821 48.2837 70.09 48.5579 70.0861 48.8709C70.0744 50.0571 68.5076 50.5459 67.7549 50.7814L67.0384 51.0099C66.4985 51.1848 65.9567 51.3586 65.41 51.5176C65.1631 51.5881 64.918 51.6587 64.672 51.7223C64.3889 51.7948 64.099 51.9597 63.7944 52.1316C63.481 52.3094 63.1579 52.4922 62.786 52.6174C62.1426 52.83 61.4837 52.9413 60.6471 52.9761C60.4069 52.987 60.1746 53.0943 59.9295 53.2056C59.5674 53.3735 59.1154 53.5801 58.6107 53.4132C58.3949 53.3864 57.5534 53.6775 57.1502 53.8196C56.832 53.9289 56.5577 54.0242 56.3419 54.0759C55.598 54.2528 54.8415 54.3918 54.1103 54.527L53.5968 54.6223C53.1516 54.7058 52.7035 54.7922 52.2613 54.8926L52.2076 54.9085C52.0797 54.9482 51.9021 55.0038 51.7078 55.0038L51.7107 54.9999ZM53.0735 51.6746C53.0569 51.7471 53.0403 51.8196 53.0237 51.8941C53.0032 51.9806 52.9788 52.064 52.9544 52.1455C52.9281 52.2359 52.9066 52.3055 52.8988 52.3651C52.8793 52.5379 52.8773 52.6313 52.8978 52.7247C52.9495 52.9791 52.9388 53.1907 52.8949 53.3645C53.0482 53.3347 53.2024 53.3049 53.3566 53.2751L53.875 53.1808C54.5896 53.0486 55.3296 52.9125 56.0412 52.7436C56.1906 52.7078 56.4483 52.6194 56.7217 52.525C57.7721 52.1604 58.4994 51.9359 59.0295 52.1127C59.0646 52.1058 59.2559 52.0173 59.3828 51.9597C59.7001 51.8137 60.0945 51.6328 60.5924 51.611C61.3021 51.5812 61.8498 51.4908 62.372 51.3169C62.622 51.2345 62.8748 51.0914 63.1442 50.9374C63.5123 50.7298 63.892 50.5142 64.3469 50.3969C64.5793 50.3373 64.8136 50.2707 65.0459 50.2042C65.5789 50.0482 66.11 49.8773 66.6362 49.7064L67.1253 49.5514C66.9388 49.5246 66.7504 49.4779 66.56 49.4014C66.2672 49.2862 66.0836 49.1411 65.9616 49.0457C65.9313 49.0229 65.906 48.999 65.8757 48.9812C65.8737 48.9851 65.8405 48.9851 65.7781 48.9941C65.1845 49.0855 64.6281 49.2862 64.0394 49.4998C63.1794 49.8107 62.293 50.1326 61.2279 50.1326C59.4717 50.1326 58.1235 50.2966 56.8535 50.6642C55.7142 50.992 54.7868 51.3984 54.0166 51.9031C53.7901 52.0521 53.5001 52.0481 53.2776 51.8951C53.1917 51.8365 53.1214 51.76 53.0735 51.6716V51.6746Z" fill="white"/>
|
|
7480
8368
|
<path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="white"/>
|
|
7481
8369
|
<path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="white"/>
|
|
7482
|
-
</svg>`,
|
|
8370
|
+
</svg>`, O1 = class O1 extends p {
|
|
7483
8371
|
/**************** Functions ****************/
|
|
7484
8372
|
_getNysLogo() {
|
|
7485
|
-
return new DOMParser().parseFromString(
|
|
8373
|
+
return new DOMParser().parseFromString(Lt, "image/svg+xml").documentElement;
|
|
7486
8374
|
}
|
|
7487
8375
|
render() {
|
|
7488
8376
|
return l`
|
|
@@ -7516,31 +8404,33 @@ const l2 = g`
|
|
|
7516
8404
|
`;
|
|
7517
8405
|
}
|
|
7518
8406
|
};
|
|
7519
|
-
|
|
7520
|
-
let
|
|
7521
|
-
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter",
|
|
8407
|
+
O1.styles = kt;
|
|
8408
|
+
let S1 = O1;
|
|
8409
|
+
customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", S1);
|
|
7522
8410
|
export {
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
8411
|
+
W1 as NysAlert,
|
|
8412
|
+
te as NysAvatar,
|
|
8413
|
+
d1 as NysBacktotop,
|
|
8414
|
+
le as NysButton,
|
|
8415
|
+
ge as NysCheckbox,
|
|
8416
|
+
ye as NysCheckboxgroup,
|
|
8417
|
+
h1 as NysErrorMessage,
|
|
8418
|
+
x as NysFileinput,
|
|
8419
|
+
y1 as NysGlobalFooter,
|
|
8420
|
+
r1 as NysGlobalHeader,
|
|
8421
|
+
De as NysIcon,
|
|
8422
|
+
i1 as NysLabel,
|
|
8423
|
+
l1 as NysOption,
|
|
8424
|
+
Pe as NysRadiobutton,
|
|
8425
|
+
Be as NysRadiogroup,
|
|
8426
|
+
Ge as NysSelect,
|
|
8427
|
+
g1 as NysSkipnav,
|
|
8428
|
+
W as NysStepper,
|
|
8429
|
+
st as NysTextarea,
|
|
8430
|
+
at as NysTextinput,
|
|
8431
|
+
yt as NysToggle,
|
|
8432
|
+
o1 as NysTooltip,
|
|
8433
|
+
S1 as NysUnavFooter,
|
|
8434
|
+
U as NysUnavHeader
|
|
7545
8435
|
};
|
|
7546
8436
|
//# sourceMappingURL=nysds.es.js.map
|