@nysds/components 1.19.2 → 1.19.3-alpha-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/nysds.es.js CHANGED
@@ -2,7 +2,7 @@ import { LitElement as x, unsafeCSS as w, html as u, nothing as gr } from "lit";
2
2
  import { property as a, query as Yo, state as $ } from "lit/decorators.js";
3
3
  import { ifDefined as m } from "lit/directives/if-defined.js";
4
4
  /*!
5
- * New York State Design System v1.19.2
5
+ * New York State Design System v1.19.3-alpha-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
@@ -654,17 +654,17 @@ const Us = class Us extends x {
654
654
  s.length - p
655
655
  );
656
656
  s.forEach((y, _) => {
657
- const L = _ < p, j = _ >= s.length - b, pe = L || j, ve = i && !pe, oe = this._createCrumbElement(y, this._isCurrentPage(y));
658
- if (oe.setAttribute("data-cloned", "true"), ve && oe.classList.add("hide"), pe || oe.classList.add("intermediate"), t.appendChild(oe), _ === p - 1 && i && s.length > 2) {
657
+ const L = _ < p, j = _ >= s.length - b, ye = L || j, ve = i && !ye, oe = this._createCrumbElement(y, this._isCurrentPage(y));
658
+ if (oe.setAttribute("data-cloned", "true"), ve && oe.classList.add("hide"), ye || oe.classList.add("intermediate"), t.appendChild(oe), _ === p - 1 && i && s.length > 2) {
659
659
  const je = document.createElement("li");
660
660
  je.classList.add("nys-breadcrumbs__ellipsis");
661
661
  const _e = document.createElement("a");
662
662
  _e.classList.add("ellipsis-btn"), _e.setAttribute("aria-label", "Show more links"), _e.setAttribute("role", "button"), _e.setAttribute("href", "#"), _e.textContent = "…";
663
- const Q = (F) => {
663
+ const X = (F) => {
664
664
  F.preventDefault(), this._manuallyExpanded = !0, this.collapsed = !1, this._handleSlotChange(), this._dispatchExpandEvent(), this._moveFocusToFirstExpandCrumb();
665
665
  };
666
- _e.addEventListener("click", Q), _e.addEventListener("keydown", (F) => {
667
- F.key === " " && Q(F);
666
+ _e.addEventListener("click", X), _e.addEventListener("keydown", (F) => {
667
+ F.key === " " && X(F);
668
668
  });
669
669
  const ge = document.createElement("nys-icon");
670
670
  ge.setAttribute("name", "chevron_right"), ge.setAttribute("size", "14"), je.appendChild(_e), je.appendChild(ge), t.appendChild(je);
@@ -1104,7 +1104,7 @@ Ue([
1104
1104
  let Ui = Oe;
1105
1105
  customElements.get("nys-badge") || customElements.define("nys-badge", Ui);
1106
1106
  const xr = ':host{--_nys-checkbox-size: var(--nys-size-400, 32px);--_nys-checkbox-border-radius: var(--nys-radius-md, 4px);--_nys-checkbox-border-width: var(--nys-border-width-md, 2px);--_nys-checkbox-outline-color: var(--nys-color-focus, #004dd1);--_nys-checkbox-outline-width: var(--nys-border-width-md, 2px);--_nys-checkbox-outline-offset: var(--nys-space-2px, 2px);--_nys-checkbox-gap: var(--nys-space-150, 12px);--_nys-checkboxgroup-gap: var(--nys-space-200, 16px);--_nys-checkbox-font-family: var( --nys-font-family-ui, var( --nys-font-family-sans, "Proxima Nova", "Helvetica Neue", "Helvetica", "Arial", sans-serif ) );--_nys-checkbox-font-size: var(--nys-font-size-ui-md, 16px);--_nys-checkbox-font-weight: var(--nys-font-weight-regular, 400);--_nys-checkbox-line-height: var(--nys-font-lineheight-ui-md, 24px);--_nys-checkbox-color: var( --nys-color-ink, var(--nys-color-neutral-900, #1b1b1b) );--_nys-checkbox-background-color: var(--nys-color-ink-reverse, #ffffff);--_nys-checkbox-border-color: var(--nys-color-neutral-600, #62666a);--_nys-checkbox-background-color--hover: var(--nys-color-neutral-50, #ededed);--_nys-checkbox-border-color--hover: var(--nys-color-ink, #1b1b1b);--_nys-checkbox-background-color--active: var( --nys-color-neutral-100, #d0d0ce );--_nys-checkbox-border-color--active: var(--nys-color-ink, #1b1b1b);--_nys-checkbox-background-color--checked: var(--nys-color-theme, #154973);--_nys-checkbox-border-color--checked: var(--nys-color-theme, #154973);--_nys-checkbox-background-color--checked--hover: var( --nys-color-theme-strong, #0e324f );--_nys-checkbox-border-color--checked--hover: var( --nys-color-theme-strong, #0e324f );--_nys-checkbox-background-color--checked--active: var( --nys-color-theme-stronger, #081b2b );--_nys-checkbox-border-color--checked--active: var( --nys-color-theme-stronger, #081b2b );--_nys-checkbox-background-color--disabled: var( --nys-color-ink-reverse, #f0f0f0 );--_nys-checkbox-border-color--disabled: var(--nys-color-neutral-400, #757575);--_nys-checkbox-color--disabled: var(--nys-color-text-disabled, #bec0c1);--_nys-checkbox-background-color--checked--disabled: var( --nys-color-neutral-100, #d0d0ce );--_nys-checkbox-border-color--checked--disabled: var( --nys-color-neutral-100, #d0d0ce )}:host([size=sm]){--_nys-checkbox-size: var(--nys-size-300, 24px);--_nys-checkbox-border-radius: var(--nys-radius-sm, 2px);--_nys-checkboxgroup-gap: var(--nys-space-100, 8px);--_nys-checkbox-gap: var(--nys-space-100, 8px)}:host([size=md]){--_nys-checkbox-size: var(--nys-size-400, 32px);--_nys-checkbox-border-radius: var(--nys-radius-md, 4px)}:host([tile]){--_nys-checkbox-border-width--tile: var(--nys-border-width-sm, 1px);--_nys-checkbox-border-radius--tile: var(--nys-radius-md, 4px);--_nys-checkbox-border-color--tile: var(--nys-color-neutral-100, #d0d0ce);--_nys-checkbox-background-color--tile: var(--nys-color-ink-reverse, #ffffff);--_nys-checkbox-padding--x--tile: var(--nys-space-250, 20px);--_nys-checkbox-padding--y--tile: var(--nys-space-200, 16px);--_nys-checkbox-border-color--tile--hover: var( --nys-color-neutral-700, #4a4d4f );--_nys-checkbox-background-color--tile--hover: var( --nys-color-ink-reverse, #ffffff );--_nys-checkbox-border-color--tile--active: var( --nys-color-neutral-900, #1b1b1b );--_nys-checkbox-background-color--tile--active: var( --nys-color-ink-reverse, #ffffff );--_nys-checkbox-border-color--tile--checked: var( --nys-color-theme-mid, #457aa5 );--_nys-checkbox-background-color--tile--checked: var( --nys-color-theme-faint, #f7fafd );--_nys-checkbox-background-color--tile--disabled: var( --nys-color-ink-reverse, #f0f0f0 );--_nys-checkbox-border-color--tile--disabled: var( --nys-color-neutral-100, #d0d0ce )}:host([tile][size=sm]){--_nys-checkbox-padding--x--tile: var(--nys-space-200, 16px);--_nys-checkbox-padding--y--tile: var(--nys-space-150, 12px)}:host([tile][showError]){--_nys-checkbox-border-color--tile: var(--nys-color-danger, #b52c2c);--_nys-checkbox-border-color--tile--hover: var(--nys-color-danger, #b52c2c);--_nys-checkbox-border-color--tile--active: var(--nys-color-danger, #b52c2c);--_nys-checkbox-border-color--tile--checked: var(--nys-color-danger, #b52c2c)}#single-error-message{--_nys-errormessage-margin-top: var(--nys-space-50, 4px)}.nys-checkboxgroup{display:flex;flex-direction:column;gap:var(--nys-space-200, 16px);font-family:var(--_nys-checkbox-font-family);font-size:var(--_nys-checkbox-font-size);line-height:var(--_nys-checkbox-line-height)}.nys-checkboxgroup__content{display:flex;flex-direction:column;gap:var(--_nys-checkboxgroup-gap)}.nys-checkbox{display:flex;flex-direction:column;border-radius:var(--_nys-checkbox-border-radius--tile);border:var(--_nys-checkbox-border-width--tile) solid var(--_nys-checkbox-border-color--tile);background:var(--_nys-checkbox-background-color--tile);padding:var(--_nys-checkbox-padding--y--tile) var(--_nys-checkbox-padding--x--tile)}.nys-checkbox .nys-checkbox__main-container{display:flex;font-family:var(--_nys-checkbox-font-family);font-size:var(--_nys-checkbox-font-size);line-height:var(--_nys-checkbox-line-height);align-items:center;gap:var(--_nys-checkbox-gap)}.nys-checkbox .nys-checkbox__main-container.has-description{align-items:flex-start}.nys-checkbox__checkbox-wrapper{position:relative;display:flex;justify-content:center;align-items:center;max-height:var(--_nys-checkbox-size)}.nys-checkbox__icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;color:var(--nys-color-ink-reverse, #ffffff)}.nys-checkbox__checkbox{appearance:none;background-repeat:no-repeat;background-position:center;width:var(--_nys-checkbox-size);min-width:var(--_nys-checkbox-size);min-height:var(--_nys-checkbox-size);height:var(--_nys-checkbox-size);max-width:var(--_nys-checkbox-size);max-height:var(--_nys-checkbox-size);border:solid var(--_nys-checkbox-border-width) var(--_nys-checkbox-border-color);background-color:var(--_nys-checkbox-background-color);border-radius:var(--_nys-checkbox-border-radius);outline-offset:var(--_nys-checkbox-outline-offset);outline:none;margin:0}.nys-checkbox:hover,.nys-checkbox:hover *{cursor:pointer}.nys-checkbox__checkbox:not(:disabled):checked{background-color:var(--_nys-checkbox-background-color--checked);border-color:var(--_nys-checkbox-border-color--checked)}:host([tile]) .nys-checkbox:has(.nys-checkbox__checkbox:not(:disabled):checked){border-color:var(--_nys-checkbox-border-color--tile--checked);background-color:var(--_nys-checkbox-background-color--tile--checked)}.nys-checkbox__checkbox:disabled:checked{background-color:var(--_nys-checkbox-background-color--checked--disabled);border-color:var(--_nys-checkbox-border-color--checked--disabled)}:host([tile]) .nys-checkbox:has(.nys-checkbox__checkbox:disabled:checked){border-color:var(--_nys-checkbox-border-color--tile--disabled);background-color:var(--_nys-checkbox-background-color--tile--disabled)}.nys-checkbox__checkbox:disabled{background-color:var(--_nys-checkbox-background-color--disabled);border-color:var(--_nys-checkbox-border-color--disabled);cursor:not-allowed}.nys-checkbox:has(.nys-checkbox__checkbox:disabled) *{color:var(--_nys-checkbox-color--disabled);cursor:not-allowed;--_nys-label-cursor: not-allowed;--_nys-label-color: var(--_nys-checkbox-color--disabled)}:host([tile]) .nys-checkbox:has(.nys-checkbox__checkbox:disabled){background-color:var(--_nys-checkbox-background-color--disabled);border-color:var(--_nys-checkbox-border-color--disabled);cursor:not-allowed}.nys-checkbox:hover .nys-checkbox__checkbox:not(:disabled):not(:checked),.nys-checkbox__checkbox:hover:not(:disabled):not(:checked){background-color:var(--_nys-checkbox-background-color--hover);border-color:var(--_nys-checkbox-border-color--hover)}:host([tile]) .nys-checkbox:hover:has(.nys-checkbox__checkbox:not(:disabled):not(:checked)){border-color:var(--_nys-checkbox-border-color--tile--hover);background-color:var(--_nys-checkbox-background-color--tile--hover);outline:solid var(--_nys-checkbox-border-width--tile) var(--_nys-checkbox-border-color--tile--hover)}.nys-checkbox:hover .nys-checkbox__checkbox:not(:disabled):checked,.nys-checkbox__checkbox:hover:not(:disabled):checked{border-color:var(--_nys-checkbox-border-color--checked--hover);background-color:var(--_nys-checkbox-background-color--checked--hover)}:host([tile]) .nys-checkbox:hover:has(.nys-checkbox__checkbox:not(:disabled):checked){outline:solid var(--_nys-checkbox-border-width--tile) var(--_nys-checkbox-border-color--tile--checked)}.nys-checkbox:active .nys-checkbox__checkbox:not(:disabled):not(:checked),.nys-checkbox__checkbox:active:not(:disabled):not(:checked){background-color:var(--_nys-checkbox-background-color--active);border-color:var(--_nys-checkbox-border-color--active)}:host([tile]) .nys-checkbox:has(.nys-checkbox__checkbox:active:not(:disabled):not(:checked)){border-color:var(--_nys-checkbox-border-color--tile--active);background-color:var(--_nys-checkbox-background-color--tile--active);outline:solid var(--_nys-checkbox-border-width--tile) var(--_nys-checkbox-border-color--tile--active)}.nys-checkbox:active .nys-checkbox__checkbox:not(:disabled):checked,.nys-checkbox__checkbox:active:not(:disabled):checked{border-color:var(--_nys-checkbox-border-color--checked--active);background-color:var(--_nys-checkbox-background-color--checked--active)}:host(:not([tile])) .nys-checkbox__checkbox:focus{outline:solid var(--_nys-checkbox-outline-width) var(--_nys-checkbox-outline-color)}:host([tile]) .nys-checkbox:has(*:focus-visible),:host([tile][showError]) .nys-checkbox:has(*:focus){outline:solid var(--_nys-checkbox-border-width--tile) var(--_nys-checkbox-outline-color)!important;border-color:var(--_nys-checkbox-outline-color)!important}:host(:not([tile])) .nys-checkbox__main-container>nys-label{--_nys-label-font-weight: var(--_nys-checkbox-font-weight)}:host([tile]) .nys-checkbox__main-container>nys-label{--_nys-description-font-style: normal}.nys-checkbox__required{color:var(--nys-color-danger, #b52c2c)}.nys-checkbox__requiredwrapper{display:flex;gap:3px}fieldset{all:unset;display:contents}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}.nys-checkbox__other-container{display:flex;padding-inline-start:calc(var(--_nys-checkbox-size) + var(--_nys-checkbox-gap))}';
1107
- var ji = Object.defineProperty, be = (n, e, t, s) => {
1107
+ var ji = Object.defineProperty, ue = (n, e, t, s) => {
1108
1108
  for (var o = void 0, r = n.length - 1, i; r >= 0; r--)
1109
1109
  (i = n[r]) && (o = i(e, t, o) || o);
1110
1110
  return o && ji(e, t, o), o;
@@ -1113,7 +1113,7 @@ let Wi = 0;
1113
1113
  const io = class io extends x {
1114
1114
  // allows use of elementInternals' API
1115
1115
  constructor() {
1116
- super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this.tooltip = "", this.form = null, this.size = "md", this._slottedDescriptionText = "", this._hasOtherError = !1, this._otherErrorCheckbox = null, this._internals = this.attachInternals();
1116
+ super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this.tooltip = "", this.form = null, this.size = "md", this._slottedDescriptionText = "", this._hasOtherError = !1, this._otherErrorCheckbox = null, this._hasSharedNames = !1, this._internals = this.attachInternals();
1117
1117
  }
1118
1118
  // Generate a unique ID if one is not provided
1119
1119
  connectedCallback() {
@@ -1138,8 +1138,11 @@ const io = class io extends x {
1138
1138
  );
1139
1139
  }
1140
1140
  _setGroupExist() {
1141
- this.querySelectorAll("nys-checkbox").forEach((t) => {
1142
- t.groupExist = !0;
1141
+ const e = Array.from(
1142
+ this.querySelectorAll("nys-checkbox")
1143
+ );
1144
+ this._hasSharedNames = this._checkSharedNames(e), e.forEach((t) => {
1145
+ t.groupExist = this._hasSharedNames;
1143
1146
  });
1144
1147
  }
1145
1148
  // Initial update on checkbox required attribute
@@ -1243,10 +1246,14 @@ const io = class io extends x {
1243
1246
  */
1244
1247
  // Similar to how native forms handle multiple same-name fields, we group the selected values into a list for FormData.
1245
1248
  _handleCheckboxChange(e) {
1246
- const t = e, { name: s } = t.detail, o = Array.from(
1249
+ const t = Array.from(
1247
1250
  this.querySelectorAll("nys-checkbox")
1248
- ), r = o.filter((i) => i.checked).map((i) => i.value);
1249
- this.name = s, this._internals.setFormValue(r.join(", ")), this._checkOtherInputs(o), this._hasOtherError || this._manageRequire();
1251
+ );
1252
+ if (this._hasSharedNames) {
1253
+ const s = e, { name: o } = s.detail, r = t.filter((i) => i.checked).map((i) => i.value);
1254
+ this.name = o, this._internals.setFormValue(r.join(", "));
1255
+ }
1256
+ this._checkOtherInputs(t), this._hasOtherError || this._manageRequire();
1250
1257
  }
1251
1258
  async _handleChildError(e) {
1252
1259
  e.stopPropagation();
@@ -1276,6 +1283,12 @@ const io = class io extends x {
1276
1283
  }
1277
1284
  this._hasOtherError && (this._hasOtherError = !1, this._otherErrorCheckbox = null, this.required ? this._manageRequire() : (this._internals.setValidity({}), this.showError = !1));
1278
1285
  }
1286
+ /** Drupal-like naming support **/
1287
+ _checkSharedNames(e) {
1288
+ if (e.length === 0) return !1;
1289
+ const t = e[0].name;
1290
+ return e.every((s) => s.name === t);
1291
+ }
1279
1292
  render() {
1280
1293
  return u`
1281
1294
  <fieldset
@@ -1307,53 +1320,56 @@ io.styles = w(xr), io.shadowRootOptions = {
1307
1320
  ...x.shadowRootOptions,
1308
1321
  delegatesFocus: !0
1309
1322
  }, io.formAssociated = !0;
1310
- let ee = io;
1311
- be([
1323
+ let K = io;
1324
+ ue([
1312
1325
  a({ type: String, reflect: !0 })
1313
- ], ee.prototype, "id");
1314
- be([
1326
+ ], K.prototype, "id");
1327
+ ue([
1315
1328
  a({ type: String, reflect: !0 })
1316
- ], ee.prototype, "name");
1317
- be([
1329
+ ], K.prototype, "name");
1330
+ ue([
1318
1331
  a({ type: Boolean, reflect: !0 })
1319
- ], ee.prototype, "required");
1320
- be([
1332
+ ], K.prototype, "required");
1333
+ ue([
1321
1334
  a({ type: Boolean, reflect: !0 })
1322
- ], ee.prototype, "optional");
1323
- be([
1335
+ ], K.prototype, "optional");
1336
+ ue([
1324
1337
  a({ type: Boolean, reflect: !0 })
1325
- ], ee.prototype, "showError");
1326
- be([
1338
+ ], K.prototype, "showError");
1339
+ ue([
1327
1340
  a({ type: String })
1328
- ], ee.prototype, "errorMessage");
1329
- be([
1341
+ ], K.prototype, "errorMessage");
1342
+ ue([
1330
1343
  a({ type: String })
1331
- ], ee.prototype, "label");
1332
- be([
1344
+ ], K.prototype, "label");
1345
+ ue([
1333
1346
  a({ type: String })
1334
- ], ee.prototype, "description");
1335
- be([
1347
+ ], K.prototype, "description");
1348
+ ue([
1336
1349
  a({ type: Boolean, reflect: !0 })
1337
- ], ee.prototype, "tile");
1338
- be([
1350
+ ], K.prototype, "tile");
1351
+ ue([
1339
1352
  a({ type: String })
1340
- ], ee.prototype, "tooltip");
1341
- be([
1353
+ ], K.prototype, "tooltip");
1354
+ ue([
1342
1355
  a({ type: String, reflect: !0 })
1343
- ], ee.prototype, "form");
1344
- be([
1356
+ ], K.prototype, "form");
1357
+ ue([
1345
1358
  a({ type: String, reflect: !0 })
1346
- ], ee.prototype, "size");
1347
- be([
1359
+ ], K.prototype, "size");
1360
+ ue([
1348
1361
  $()
1349
- ], ee.prototype, "_slottedDescriptionText");
1350
- be([
1362
+ ], K.prototype, "_slottedDescriptionText");
1363
+ ue([
1364
+ $()
1365
+ ], K.prototype, "_hasOtherError");
1366
+ ue([
1351
1367
  $()
1352
- ], ee.prototype, "_hasOtherError");
1353
- be([
1368
+ ], K.prototype, "_otherErrorCheckbox");
1369
+ ue([
1354
1370
  $()
1355
- ], ee.prototype, "_otherErrorCheckbox");
1356
- customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", ee);
1371
+ ], K.prototype, "_hasSharedNames");
1372
+ customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", K);
1357
1373
  var Yi = Object.defineProperty, te = (n, e, t, s) => {
1358
1374
  for (var o = void 0, r = n.length - 1, i; r >= 0; r--)
1359
1375
  (i = n[r]) && (o = i(e, t, o) || o);
@@ -2358,7 +2374,7 @@ const C = (n, e, ...t) => {
2358
2374
  for (; e <= t; ++e)
2359
2375
  (s = n[e]) && (o = s.$elm$, Ir(s), Bo = !0, o["s-ol"] ? o["s-ol"].remove() : bo(o, !0), o.remove());
2360
2376
  }, ya = (n, e, t, s) => {
2361
- let o = 0, r = 0, i = 0, c = 0, d = e.length - 1, p = e[0], b = e[d], y = s.length - 1, _ = s[0], L = s[y], j, pe;
2377
+ let o = 0, r = 0, i = 0, c = 0, d = e.length - 1, p = e[0], b = e[d], y = s.length - 1, _ = s[0], L = s[y], j, ye;
2362
2378
  for (; o <= d && r <= y; )
2363
2379
  if (p == null)
2364
2380
  p = e[++o];
@@ -2382,7 +2398,7 @@ const C = (n, e, ...t) => {
2382
2398
  i = c;
2383
2399
  break;
2384
2400
  }
2385
- i >= 0 ? (pe = e[i], pe.$tag$ !== _.$tag$ ? j = qo(e && e[r], t, i, n) : (Bt(pe, _), e[i] = void 0, j = pe.$elm$), _ = s[++r]) : (j = qo(e && e[r], t, r, n), _ = s[++r]), j && Dr(p.$elm$).insertBefore(j, Ps(p.$elm$));
2401
+ i >= 0 ? (ye = e[i], ye.$tag$ !== _.$tag$ ? j = qo(e && e[r], t, i, n) : (Bt(ye, _), e[i] = void 0, j = ye.$elm$), _ = s[++r]) : (j = qo(e && e[r], t, r, n), _ = s[++r]), j && Dr(p.$elm$).insertBefore(j, Ps(p.$elm$));
2386
2402
  }
2387
2403
  o > d ? Sr(n, s[y + 1] == null ? null : s[y + 1].$elm$, t, s, r, y) : r > y && Lr(e, o, d);
2388
2404
  }, zo = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, Ps = (n) => n && n["s-ol"] || n, Dr = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, Bt = (n, e) => {
@@ -3021,7 +3037,7 @@ const ja = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
3021
3037
  }) : !1, L = !((i = this.value) === null || i === void 0) && i[0] ? [
3022
3038
  (c = this.value) === null || c === void 0 ? void 0 : c[0],
3023
3039
  ((d = this.value) === null || d === void 0 ? void 0 : d[1]) || this.hoveredDate
3024
- ].sort((ge, F) => ge - F) : [], j = this.range && Ye(L[0], s), pe = this.range && Ye(L[1], s), ve = Ye(s, /* @__PURE__ */ new Date()), oe = this.isDateDisabled(s), je = `cell-${s.getMonth()}-${s.getDate()}`, _e = {
3040
+ ].sort((ge, F) => ge - F) : [], j = this.range && Ye(L[0], s), ye = this.range && Ye(L[1], s), ve = Ye(s, /* @__PURE__ */ new Date()), oe = this.isDateDisabled(s), je = `cell-${s.getMonth()}-${s.getDate()}`, _e = {
3025
3041
  [this.getClassName("date")]: !0,
3026
3042
  [this.getClassName("date--current")]: p,
3027
3043
  [this.getClassName("date--disabled")]: oe,
@@ -3030,9 +3046,9 @@ const ja = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
3030
3046
  [this.getClassName("date--selected")]: y,
3031
3047
  [this.getClassName("date--in-range")]: _,
3032
3048
  [this.getClassName("date--start")]: j,
3033
- [this.getClassName("date--end")]: pe
3034
- }, Q = y ? "strong" : ve ? "em" : "span";
3035
- return C("td", { "aria-disabled": String(oe), "aria-selected": y ? "true" : void 0, "aria-current": ve ? "date" : y ? "true" : void 0, class: _e, "data-date": gt(s), key: je, onClick: this.onClick, onMouseDown: this.onMouseDown, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onFocus: this.onFocus, role: "gridcell", tabIndex: Ye(s, this.currentDate) && !this.disabled ? 0 : -1 }, C(Q, { "aria-hidden": "true" }, s.getDate()), C("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
3049
+ [this.getClassName("date--end")]: ye
3050
+ }, X = y ? "strong" : ve ? "em" : "span";
3051
+ return C("td", { "aria-disabled": String(oe), "aria-selected": y ? "true" : void 0, "aria-current": ve ? "date" : y ? "true" : void 0, class: _e, "data-date": gt(s), key: je, onClick: this.onClick, onMouseDown: this.onMouseDown, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onFocus: this.onFocus, role: "gridcell", tabIndex: Ye(s, this.currentDate) && !this.disabled ? 0 : -1 }, C(X, { "aria-hidden": "true" }, s.getDate()), C("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
3036
3052
  day: "numeric",
3037
3053
  month: "long",
3038
3054
  year: "numeric"
@@ -4091,7 +4107,7 @@ es([
4091
4107
  ], $t.prototype, "errorMessage");
4092
4108
  customElements.define("nys-fileitem", $t);
4093
4109
  const hl = ':host{--_nys-fileinput-gap: var(--nys-space-100, 8px);--_nys-fileinput-font-size: var(--nys-font-size-ui-md, 16px);--_nys-fileinput-font-weight: var(--nys-font-weight-semibold, 600);--_nys-fileinput-line-height: var(--nys-font-lineheight-ui-md, 24px);--_nys-fileinput-font-family: var( --nys-font-family-ui, var( --nys-font-family-sans, "Proxima Nova", "Helvetica Neue", "Helvetica", "Arial", sans-serif ) );--_nys-fileinput-background-color--dropzone: var( --nys-color-ink-reverse, #ffffff );--_nys-fileinput-background-color--dropzone--disabled: var( --nys-color-neutral-10, #f6f6f6 );--_nys-fileinput-background-color--dropzone--active: var( --nys-color-theme-faint, #f7fafd );--_nys-fileinput-border-radius--dropzone: var( --nys-radius-lg, var(--nys-space-100, 8px) );--_nys-fileinput-border-style: dashed;--_nys-fileinput-border-color: var(--nys-color-neutral-200, #bec0c1);--_nys-fileinput-border-width: var(--nys-border-width-sm, 1px)}.nys-fileinput{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:var(--_nys-fileinput-gap);font-family:var(--_nys-fileinput-font-family);font-size:var(--_nys-fileinput-font-size);font-weight:var(--_nys-fileinput-font-weight);line-height:var(--_nys-fileinput-line-height)}:host([width=lg]) .nys-fileinput{max-width:var(--nys-form-width-lg, 384px)}ul{list-style-type:none;padding:0;margin:0;width:100%;display:flex;flex-direction:column;gap:var(--_nys-fileinput-gap)}.nys-fileinput__dropzone{display:flex;padding:var(--nys-space-400, 32px) var(--nys-space-200, 16px);justify-content:center;align-items:center;gap:12px;align-self:stretch;border-radius:var(--_nys-fileinput-border-radius--dropzone);outline:var(--_nys-fileinput-border-width) var(--_nys-fileinput-border-style) var(--_nys-fileinput-border-color);background-color:var(--_nys-fileinput-background-color--dropzone);transition:all 60ms ease-in-out}.nys-fileinput__dropzone:hover{cursor:pointer;--_nys-fileinput-border-width: var(--nys-border-width-md, 2px);--_nys-fileinput-border-color: var(--nys-color-neutral-700, #4a4d4f)}.nys-fileinput__dropzone.drag-active{--_nys-fileinput-border-width: var(--nys-border-width-md, 2px);--_nys-fileinput-border-color: var(--nys-color-theme, #154973);--_nys-fileinput-border-style: solid}.nys-fileinput__dropzone.error{--_nys-fileinput-border-color: var(--nys-color-danger, #b52c2c)}.nys-fileinput__dropzone.error:hover{--_nys-fileinput-border-width: var(--nys-border-width-md, 2px);--_nys-fileinput-border-color: var(--nys-color-emergency, #721c1c)}.nys-fileinput__dropzone.disabled{cursor:not-allowed;--_nys-fileinput-border-color: var(--nys-color-neutral-300, #a7a9ab);--_nys-fileinput-border-width: var(--nys-border-width-sm, 1px);background-color:var(--_nys-fileinput-background-color--dropzone--disabled);color:var(--_nys-fileinput-color--dropzone--disabled)}progress{display:flex;width:100%;height:6px;border-radius:var(--nys-radius-round, 1776px);background-color:var(--_nys-fileinput-progress-background);overflow:hidden;appearance:none;border:none}progress::-moz-progress-bar{background-color:var(--_nys-fileinput-progress-background)}progress::-webkit-progress-value{background-color:var(--_nys-fileinput-progress-background)}progress::-webkit-progress-bar{background-color:var(--_nys-fileinput-progress-background)}';
4094
- var ul = Object.defineProperty, ue = (n, e, t, s) => {
4110
+ var ul = Object.defineProperty, pe = (n, e, t, s) => {
4095
4111
  for (var o = void 0, r = n.length - 1, i; r >= 0; r--)
4096
4112
  (i = n[r]) && (o = i(e, t, o) || o);
4097
4113
  return o && ul(e, t, o), o;
@@ -4412,56 +4428,56 @@ co.styles = w(hl), co.shadowRootOptions = {
4412
4428
  ...x.shadowRootOptions,
4413
4429
  delegatesFocus: !0
4414
4430
  }, co.formAssociated = !0;
4415
- let K = co;
4416
- ue([
4431
+ let Z = co;
4432
+ pe([
4417
4433
  a({ type: String, reflect: !0 })
4418
- ], K.prototype, "id");
4419
- ue([
4434
+ ], Z.prototype, "id");
4435
+ pe([
4420
4436
  a({ type: String, reflect: !0 })
4421
- ], K.prototype, "name");
4422
- ue([
4437
+ ], Z.prototype, "name");
4438
+ pe([
4423
4439
  a({ type: String })
4424
- ], K.prototype, "label");
4425
- ue([
4440
+ ], Z.prototype, "label");
4441
+ pe([
4426
4442
  a({ type: String })
4427
- ], K.prototype, "description");
4428
- ue([
4443
+ ], Z.prototype, "description");
4444
+ pe([
4429
4445
  a({ type: Boolean })
4430
- ], K.prototype, "multiple");
4431
- ue([
4446
+ ], Z.prototype, "multiple");
4447
+ pe([
4432
4448
  a({ type: String, reflect: !0 })
4433
- ], K.prototype, "form");
4434
- ue([
4449
+ ], Z.prototype, "form");
4450
+ pe([
4435
4451
  a({ type: String })
4436
- ], K.prototype, "tooltip");
4437
- ue([
4452
+ ], Z.prototype, "tooltip");
4453
+ pe([
4438
4454
  a({ type: String })
4439
- ], K.prototype, "accept");
4440
- ue([
4455
+ ], Z.prototype, "accept");
4456
+ pe([
4441
4457
  a({ type: Boolean, reflect: !0 })
4442
- ], K.prototype, "disabled");
4443
- ue([
4458
+ ], Z.prototype, "disabled");
4459
+ pe([
4444
4460
  a({ type: Boolean, reflect: !0 })
4445
- ], K.prototype, "required");
4446
- ue([
4461
+ ], Z.prototype, "required");
4462
+ pe([
4447
4463
  a({ type: Boolean, reflect: !0 })
4448
- ], K.prototype, "optional");
4449
- ue([
4464
+ ], Z.prototype, "optional");
4465
+ pe([
4450
4466
  a({ type: Boolean, reflect: !0 })
4451
- ], K.prototype, "showError");
4452
- ue([
4467
+ ], Z.prototype, "showError");
4468
+ pe([
4453
4469
  a({ type: String })
4454
- ], K.prototype, "errorMessage");
4455
- ue([
4470
+ ], Z.prototype, "errorMessage");
4471
+ pe([
4456
4472
  a({ type: Boolean })
4457
- ], K.prototype, "dropzone");
4458
- ue([
4473
+ ], Z.prototype, "dropzone");
4474
+ pe([
4459
4475
  a({ type: String, reflect: !0 })
4460
- ], K.prototype, "width");
4461
- ue([
4476
+ ], Z.prototype, "width");
4477
+ pe([
4462
4478
  a({ type: Boolean, reflect: !0 })
4463
- ], K.prototype, "inverted");
4464
- customElements.get("nys-fileinput") || customElements.define("nys-fileinput", K);
4479
+ ], Z.prototype, "inverted");
4480
+ customElements.get("nys-fileinput") || customElements.define("nys-fileinput", Z);
4465
4481
  window.__nysIconRegistry || (window.__nysIconRegistry = /* @__PURE__ */ new Map());
4466
4482
  window.__nysIconWatchers || (window.__nysIconWatchers = /* @__PURE__ */ new Map());
4467
4483
  const _o = window.__nysIconRegistry, Ft = window.__nysIconWatchers;
@@ -4558,7 +4574,7 @@ Is || (Is = function(e) {
4558
4574
  s[o - 1] = arguments[o];
4559
4575
  return new e(...s);
4560
4576
  });
4561
- const Xt = Y(Array.prototype.forEach), Cl = Y(Array.prototype.lastIndexOf), ar = Y(Array.prototype.pop), Ot = Y(Array.prototype.push), $l = Y(Array.prototype.splice), nt = Array.isArray, oo = Y(String.prototype.toLowerCase), Cs = Y(String.prototype.toString), lr = Y(String.prototype.match), Jt = Y(String.prototype.replace), cr = Y(String.prototype.indexOf), El = Y(String.prototype.trim), Sl = Y(Number.prototype.toString), Ll = Y(Boolean.prototype.toString), dr = typeof BigInt > "u" ? null : Y(BigInt.prototype.toString), hr = typeof Symbol > "u" ? null : Y(Symbol.prototype.toString), J = Y(Object.prototype.hasOwnProperty), eo = Y(Object.prototype.toString), se = Y(RegExp.prototype.test), mt = Dl(TypeError);
4577
+ const Xt = Y(Array.prototype.forEach), Cl = Y(Array.prototype.lastIndexOf), ar = Y(Array.prototype.pop), Ot = Y(Array.prototype.push), $l = Y(Array.prototype.splice), nt = Array.isArray, oo = Y(String.prototype.toLowerCase), Cs = Y(String.prototype.toString), lr = Y(String.prototype.match), Jt = Y(String.prototype.replace), cr = Y(String.prototype.indexOf), El = Y(String.prototype.trim), Sl = Y(Number.prototype.toString), Ll = Y(Boolean.prototype.toString), dr = typeof BigInt > "u" ? null : Y(BigInt.prototype.toString), hr = typeof Symbol > "u" ? null : Y(Symbol.prototype.toString), ee = Y(Object.prototype.hasOwnProperty), eo = Y(Object.prototype.toString), se = Y(RegExp.prototype.test), mt = Dl(TypeError);
4562
4578
  function Y(n) {
4563
4579
  return function(e) {
4564
4580
  e instanceof RegExp && (e.lastIndex = 0);
@@ -4591,15 +4607,15 @@ function E(n, e) {
4591
4607
  }
4592
4608
  function Al(n) {
4593
4609
  for (let e = 0; e < n.length; e++)
4594
- J(n, e) || (n[e] = null);
4610
+ ee(n, e) || (n[e] = null);
4595
4611
  return n;
4596
4612
  }
4597
- function fe(n) {
4613
+ function be(n) {
4598
4614
  const e = Nt(null);
4599
4615
  for (const s of Fr(n)) {
4600
4616
  var t = gl(s, 2);
4601
4617
  const o = t[0], r = t[1];
4602
- J(n, o) && (nt(r) ? e[o] = Al(r) : r && typeof r == "object" && r.constructor === Object ? e[o] = fe(r) : e[o] = r);
4618
+ ee(n, o) && (nt(r) ? e[o] = Al(r) : r && typeof r == "object" && r.constructor === Object ? e[o] = be(r) : e[o] = r);
4603
4619
  }
4604
4620
  return e;
4605
4621
  }
@@ -4711,7 +4727,7 @@ const ur = ne(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
4711
4727
  uponSanitizeShadowNode: []
4712
4728
  };
4713
4729
  }, st = function(e, t, s, o) {
4714
- return J(e, t) && nt(e[t]) ? E(o.base ? fe(o.base) : {}, e[t], o.transform) : s;
4730
+ return ee(e, t) && nt(e[t]) ? E(o.base ? be(o.base) : {}, e[t], o.transform) : s;
4715
4731
  };
4716
4732
  function Hr() {
4717
4733
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Yl();
@@ -4723,7 +4739,7 @@ function Hr() {
4723
4739
  n.DocumentFragment;
4724
4740
  const r = n.HTMLTemplateElement, i = n.Node, c = n.Element, d = n.NodeFilter, p = n.NamedNodeMap;
4725
4741
  p === void 0 && (n.NamedNodeMap || n.MozNamedAttrMap), n.HTMLFormElement;
4726
- const b = n.DOMParser, y = n.trustedTypes, _ = c.prototype, L = Fe(_, "cloneNode"), j = Fe(_, "remove"), pe = Fe(_, "nextSibling"), ve = Fe(_, "childNodes"), oe = Fe(_, "parentNode"), je = Fe(_, "shadowRoot"), _e = Fe(_, "attributes"), Q = i && i.prototype ? Fe(i.prototype, "nodeType") : null, ge = i && i.prototype ? Fe(i.prototype, "nodeName") : null;
4742
+ const b = n.DOMParser, y = n.trustedTypes, _ = c.prototype, L = Fe(_, "cloneNode"), j = Fe(_, "remove"), ye = Fe(_, "nextSibling"), ve = Fe(_, "childNodes"), oe = Fe(_, "parentNode"), je = Fe(_, "shadowRoot"), _e = Fe(_, "attributes"), X = i && i.prototype ? Fe(i.prototype, "nodeType") : null, ge = i && i.prototype ? Fe(i.prototype, "nodeName") : null;
4727
4743
  if (typeof r == "function") {
4728
4744
  const v = t.createElement("template");
4729
4745
  v.content && v.content.ownerDocument && (t = v.content.ownerDocument);
@@ -4849,7 +4865,7 @@ function Hr() {
4849
4865
  let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4850
4866
  if (Mt && Mt === l)
4851
4867
  return;
4852
- (!l || typeof l != "object") && (l = {}), l = fe(l), Zt = // eslint-disable-next-line unicorn/prefer-includes
4868
+ (!l || typeof l != "object") && (l = {}), l = be(l), Zt = // eslint-disable-next-line unicorn/prefer-includes
4853
4869
  li.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? ci : l.PARSER_MEDIA_TYPE, N = Zt === "application/xhtml+xml" ? Cs : oo, R = st(l, "ALLOWED_TAGS", vn, {
4854
4870
  transform: N
4855
4871
  }), P = st(l, "ALLOWED_ATTR", _n, {
@@ -4864,13 +4880,13 @@ function Hr() {
4864
4880
  base: Sn
4865
4881
  }), Be = st(l, "FORBID_CONTENTS", us, {
4866
4882
  transform: N
4867
- }), Gt = st(l, "FORBID_TAGS", fe({}), {
4883
+ }), Gt = st(l, "FORBID_TAGS", be({}), {
4868
4884
  transform: N
4869
- }), gn = st(l, "FORBID_ATTR", fe({}), {
4885
+ }), gn = st(l, "FORBID_ATTR", be({}), {
4870
4886
  transform: N
4871
- }), Tt = J(l, "USE_PROFILES") ? l.USE_PROFILES && typeof l.USE_PROFILES == "object" ? fe(l.USE_PROFILES) : l.USE_PROFILES : !1, mn = l.ALLOW_ARIA_ATTR !== !1, rs = l.ALLOW_DATA_ATTR !== !1, xn = l.ALLOW_UNKNOWN_PROTOCOLS || !1, wn = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, tt = l.SAFE_FOR_TEMPLATES || !1, Kt = l.SAFE_FOR_XML !== !1, vt = l.WHOLE_DOCUMENT || !1, At = l.RETURN_DOM || !1, So = l.RETURN_DOM_FRAGMENT || !1, Lo = l.RETURN_TRUSTED_TYPE || !1, cs = l.FORCE_BODY || !1, kn = l.SANITIZE_DOM !== !1, Cn = l.SANITIZE_NAMED_PROPS || !1, ds = l.KEEP_CONTENT !== !1, hs = l.IN_PLACE || !1, bn = Il(l.ALLOWED_URI_REGEXP) ? l.ALLOWED_URI_REGEXP : br, It = typeof l.NAMESPACE == "string" ? l.NAMESPACE : Ne, bs = J(l, "MATHML_TEXT_INTEGRATION_POINTS") && l.MATHML_TEXT_INTEGRATION_POINTS && typeof l.MATHML_TEXT_INTEGRATION_POINTS == "object" ? fe(l.MATHML_TEXT_INTEGRATION_POINTS) : E({}, Dn), vs = J(l, "HTML_INTEGRATION_POINTS") && l.HTML_INTEGRATION_POINTS && typeof l.HTML_INTEGRATION_POINTS == "object" ? fe(l.HTML_INTEGRATION_POINTS) : E({}, An);
4872
- const h = J(l, "CUSTOM_ELEMENT_HANDLING") && l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING == "object" ? fe(l.CUSTOM_ELEMENT_HANDLING) : Nt(null);
4873
- if (B = Nt(null), J(h, "tagNameCheck") && Tn(h.tagNameCheck) && (B.tagNameCheck = h.tagNameCheck), J(h, "attributeNameCheck") && Tn(h.attributeNameCheck) && (B.attributeNameCheck = h.attributeNameCheck), J(h, "allowCustomizedBuiltInElements") && typeof h.allowCustomizedBuiltInElements == "boolean" && (B.allowCustomizedBuiltInElements = h.allowCustomizedBuiltInElements), re(B), tt && (rs = !1), So && (At = !0), Tt && (R = E({}, pr), P = Nt(null), Tt.html === !0 && (E(R, ur), E(P, yr)), Tt.svg === !0 && (E(R, $s), E(P, Ls), E(P, Oo)), Tt.svgFilters === !0 && (E(R, Es), E(P, Ls), E(P, Oo)), Tt.mathMl === !0 && (E(R, Ss), E(P, fr), E(P, Oo))), et.tagCheck = null, et.attributeCheck = null, J(l, "ADD_TAGS") && (typeof l.ADD_TAGS == "function" ? et.tagCheck = l.ADD_TAGS : nt(l.ADD_TAGS) && (R === vn && (R = fe(R)), E(R, l.ADD_TAGS, N))), J(l, "ADD_ATTR") && (typeof l.ADD_ATTR == "function" ? et.attributeCheck = l.ADD_ATTR : nt(l.ADD_ATTR) && (P === _n && (P = fe(P)), E(P, l.ADD_ATTR, N))), J(l, "ADD_URI_SAFE_ATTR") && nt(l.ADD_URI_SAFE_ATTR) && E(ps, l.ADD_URI_SAFE_ATTR, N), J(l, "FORBID_CONTENTS") && nt(l.FORBID_CONTENTS) && (Be === us && (Be = fe(Be)), E(Be, l.FORBID_CONTENTS, N)), J(l, "ADD_FORBID_CONTENTS") && nt(l.ADD_FORBID_CONTENTS) && (Be === us && (Be = fe(Be)), E(Be, l.ADD_FORBID_CONTENTS, N)), ds && (R["#text"] = !0), vt && E(R, ["html", "head", "body"]), R.table && (E(R, ["tbody"]), delete Gt.tbody), l.TRUSTED_TYPES_POLICY) {
4887
+ }), Tt = ee(l, "USE_PROFILES") ? l.USE_PROFILES && typeof l.USE_PROFILES == "object" ? be(l.USE_PROFILES) : l.USE_PROFILES : !1, mn = l.ALLOW_ARIA_ATTR !== !1, rs = l.ALLOW_DATA_ATTR !== !1, xn = l.ALLOW_UNKNOWN_PROTOCOLS || !1, wn = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, tt = l.SAFE_FOR_TEMPLATES || !1, Kt = l.SAFE_FOR_XML !== !1, vt = l.WHOLE_DOCUMENT || !1, At = l.RETURN_DOM || !1, So = l.RETURN_DOM_FRAGMENT || !1, Lo = l.RETURN_TRUSTED_TYPE || !1, cs = l.FORCE_BODY || !1, kn = l.SANITIZE_DOM !== !1, Cn = l.SANITIZE_NAMED_PROPS || !1, ds = l.KEEP_CONTENT !== !1, hs = l.IN_PLACE || !1, bn = Il(l.ALLOWED_URI_REGEXP) ? l.ALLOWED_URI_REGEXP : br, It = typeof l.NAMESPACE == "string" ? l.NAMESPACE : Ne, bs = ee(l, "MATHML_TEXT_INTEGRATION_POINTS") && l.MATHML_TEXT_INTEGRATION_POINTS && typeof l.MATHML_TEXT_INTEGRATION_POINTS == "object" ? be(l.MATHML_TEXT_INTEGRATION_POINTS) : E({}, Dn), vs = ee(l, "HTML_INTEGRATION_POINTS") && l.HTML_INTEGRATION_POINTS && typeof l.HTML_INTEGRATION_POINTS == "object" ? be(l.HTML_INTEGRATION_POINTS) : E({}, An);
4888
+ const h = ee(l, "CUSTOM_ELEMENT_HANDLING") && l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING == "object" ? be(l.CUSTOM_ELEMENT_HANDLING) : Nt(null);
4889
+ if (B = Nt(null), ee(h, "tagNameCheck") && Tn(h.tagNameCheck) && (B.tagNameCheck = h.tagNameCheck), ee(h, "attributeNameCheck") && Tn(h.attributeNameCheck) && (B.attributeNameCheck = h.attributeNameCheck), ee(h, "allowCustomizedBuiltInElements") && typeof h.allowCustomizedBuiltInElements == "boolean" && (B.allowCustomizedBuiltInElements = h.allowCustomizedBuiltInElements), re(B), tt && (rs = !1), So && (At = !0), Tt && (R = E({}, pr), P = Nt(null), Tt.html === !0 && (E(R, ur), E(P, yr)), Tt.svg === !0 && (E(R, $s), E(P, Ls), E(P, Oo)), Tt.svgFilters === !0 && (E(R, Es), E(P, Ls), E(P, Oo)), Tt.mathMl === !0 && (E(R, Ss), E(P, fr), E(P, Oo))), et.tagCheck = null, et.attributeCheck = null, ee(l, "ADD_TAGS") && (typeof l.ADD_TAGS == "function" ? et.tagCheck = l.ADD_TAGS : nt(l.ADD_TAGS) && (R === vn && (R = be(R)), E(R, l.ADD_TAGS, N))), ee(l, "ADD_ATTR") && (typeof l.ADD_ATTR == "function" ? et.attributeCheck = l.ADD_ATTR : nt(l.ADD_ATTR) && (P === _n && (P = be(P)), E(P, l.ADD_ATTR, N))), ee(l, "ADD_URI_SAFE_ATTR") && nt(l.ADD_URI_SAFE_ATTR) && E(ps, l.ADD_URI_SAFE_ATTR, N), ee(l, "FORBID_CONTENTS") && nt(l.FORBID_CONTENTS) && (Be === us && (Be = be(Be)), E(Be, l.FORBID_CONTENTS, N)), ee(l, "ADD_FORBID_CONTENTS") && nt(l.ADD_FORBID_CONTENTS) && (Be === us && (Be = be(Be)), E(Be, l.ADD_FORBID_CONTENTS, N)), ds && (R["#text"] = !0), vt && E(R, ["html", "head", "body"]), R.table && (E(R, ["tbody"]), delete Gt.tbody), l.TRUSTED_TYPES_POLICY) {
4874
4890
  if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function")
4875
4891
  throw mt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
4876
4892
  if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -4969,7 +4985,7 @@ function Hr() {
4969
4985
  const h = [l];
4970
4986
  for (; h.length > 0; ) {
4971
4987
  const f = h.pop();
4972
- (Q ? Q(f) : f.nodeType) === qe.element && fi(f);
4988
+ (X ? X(f) : f.nodeType) === qe.element && fi(f);
4973
4989
  const k = ve(f);
4974
4990
  if (k)
4975
4991
  for (let S = k.length - 1; S >= 0; --S)
@@ -5040,7 +5056,7 @@ function Hr() {
5040
5056
  // an internal slot, no serialization cost — and removes a residual
5041
5057
  // clobbering surface used by several mXSS / PI / comment branches
5042
5058
  // in _sanitizeElements that compare currentNode.nodeType directly.
5043
- l.nodeType !== Q(l) || // HTMLFormElement has [LegacyOverrideBuiltIns]: a descendant named
5059
+ l.nodeType !== X(l) || // HTMLFormElement has [LegacyOverrideBuiltIns]: a descendant named
5044
5060
  // "childNodes" shadows the prototype getter. Direct reads of
5045
5061
  // form.childNodes from a clobbered form return the named child
5046
5062
  // instead of the real NodeList, so any walk that reads it directly
@@ -5053,18 +5069,18 @@ function Hr() {
5053
5069
  // (e.g. HTMLSelectElement.length is a defined unsigned-long).
5054
5070
  l.childNodes !== ve(l);
5055
5071
  }, zt = function(l) {
5056
- if (!Q || typeof l != "object" || l === null)
5072
+ if (!X || typeof l != "object" || l === null)
5057
5073
  return !1;
5058
5074
  try {
5059
- return Q(l) === qe.documentFragment;
5075
+ return X(l) === qe.documentFragment;
5060
5076
  } catch {
5061
5077
  return !1;
5062
5078
  }
5063
5079
  }, Qt = function(l) {
5064
- if (!Q || typeof l != "object" || l === null)
5080
+ if (!X || typeof l != "object" || l === null)
5065
5081
  return !1;
5066
5082
  try {
5067
- return typeof Q(l) == "number";
5083
+ return typeof X(l) == "number";
5068
5084
  } catch {
5069
5085
  return !1;
5070
5086
  }
@@ -5084,8 +5100,8 @@ function Hr() {
5084
5100
  if (g && f) {
5085
5101
  const k = g.length;
5086
5102
  for (let S = k - 1; S >= 0; --S) {
5087
- const X = hs ? g[S] : L(g[S], !0);
5088
- f.insertBefore(X, pe(l));
5103
+ const J = hs ? g[S] : L(g[S], !0);
5104
+ f.insertBefore(J, ye(l));
5089
5105
  }
5090
5106
  }
5091
5107
  }
@@ -5101,7 +5117,7 @@ function Hr() {
5101
5117
  return ot(l), !0;
5102
5118
  if (Gt[h] || !(et.tagCheck instanceof Function && et.tagCheck(h)) && !R[h])
5103
5119
  return _i(l, h);
5104
- if ((Q ? Q(l) : l.nodeType) === qe.element && !yi(l) || (h === "noscript" || h === "noembed" || h === "noframes") && se(jl, l.innerHTML))
5120
+ if ((X ? X(l) : l.nodeType) === qe.element && !yi(l) || (h === "noscript" || h === "noembed" || h === "noframes") && se(jl, l.innerHTML))
5105
5121
  return ot(l), !0;
5106
5122
  if (tt && l.nodeType === qe.text) {
5107
5123
  const g = To(l.textContent);
@@ -5170,30 +5186,30 @@ function Hr() {
5170
5186
  let g = h.length;
5171
5187
  const k = N(l.nodeName);
5172
5188
  for (; g--; ) {
5173
- const S = h[g], X = S.name, W = S.namespaceURI, Se = S.value, De = N(X), xs = Se;
5174
- let ye = X === "value" ? xs : El(xs);
5175
- if (f.attrName = De, f.attrValue = ye, f.keepAttr = !0, f.forceKeepAttr = void 0, We(V.uponSanitizeAttribute, l, f), ye = f.attrValue, Cn && (De === "id" || De === "name") && cr(ye, $n) !== 0 && (_t(X, l), ye = $n + ye), Kt && se(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, ye)) {
5176
- _t(X, l);
5189
+ const S = h[g], J = S.name, W = S.namespaceURI, Se = S.value, De = N(J), xs = Se;
5190
+ let fe = J === "value" ? xs : El(xs);
5191
+ if (f.attrName = De, f.attrValue = fe, f.keepAttr = !0, f.forceKeepAttr = void 0, We(V.uponSanitizeAttribute, l, f), fe = f.attrValue, Cn && (De === "id" || De === "name") && cr(fe, $n) !== 0 && (_t(J, l), fe = $n + fe), Kt && se(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, fe)) {
5192
+ _t(J, l);
5177
5193
  continue;
5178
5194
  }
5179
- if (De === "attributename" && lr(ye, "href")) {
5180
- _t(X, l);
5195
+ if (De === "attributename" && lr(fe, "href")) {
5196
+ _t(J, l);
5181
5197
  continue;
5182
5198
  }
5183
5199
  if (!f.forceKeepAttr) {
5184
5200
  if (!f.keepAttr) {
5185
- _t(X, l);
5201
+ _t(J, l);
5186
5202
  continue;
5187
5203
  }
5188
- if (!wn && se(Wl, ye)) {
5189
- _t(X, l);
5204
+ if (!wn && se(Wl, fe)) {
5205
+ _t(J, l);
5190
5206
  continue;
5191
5207
  }
5192
- if (tt && (ye = To(ye)), !Bn(k, De, ye)) {
5193
- _t(X, l);
5208
+ if (tt && (fe = To(fe)), !Bn(k, De, fe)) {
5209
+ _t(J, l);
5194
5210
  continue;
5195
5211
  }
5196
- ye = mi(k, De, W, ye), ye !== xs && xi(l, X, W, ye);
5212
+ fe = mi(k, De, W, fe), fe !== xs && xi(l, J, W, fe);
5197
5213
  }
5198
5214
  }
5199
5215
  We(V.afterSanitizeAttributes, l, null);
@@ -5201,7 +5217,7 @@ function Hr() {
5201
5217
  let h = null;
5202
5218
  const f = Rn(l);
5203
5219
  for (We(V.beforeSanitizeShadowDOM, l, null); h = f.nextNode(); )
5204
- if (We(V.uponSanitizeShadowNode, h, null), Pn(h), qn(h), zt(h.content) && Mo(h.content), (Q ? Q(h) : h.nodeType) === qe.element) {
5220
+ if (We(V.uponSanitizeShadowNode, h, null), Pn(h), qn(h), zt(h.content) && Mo(h.content), (X ? X(h) : h.nodeType) === qe.element) {
5205
5221
  const k = je(h);
5206
5222
  zt(k) && (ms(k), Mo(k));
5207
5223
  }
@@ -5217,11 +5233,11 @@ function Hr() {
5217
5233
  Mo(f.shadow);
5218
5234
  continue;
5219
5235
  }
5220
- const g = f.node, S = (Q ? Q(g) : g.nodeType) === qe.element, X = ve(g);
5221
- if (X)
5222
- for (let W = X.length - 1; W >= 0; --W)
5236
+ const g = f.node, S = (X ? X(g) : g.nodeType) === qe.element, J = ve(g);
5237
+ if (J)
5238
+ for (let W = J.length - 1; W >= 0; --W)
5223
5239
  h.push({
5224
- node: X[W],
5240
+ node: J[W],
5225
5241
  shadow: null
5226
5242
  });
5227
5243
  if (S) {
@@ -5252,7 +5268,7 @@ function Hr() {
5252
5268
  throw mt("dirty is not a string, aborting");
5253
5269
  if (!e.isSupported)
5254
5270
  return v;
5255
- is ? (R = as, P = ls) : _s(l), (V.uponSanitizeElement.length > 0 || V.uponSanitizeAttribute.length > 0) && (R = fe(R)), V.uponSanitizeAttribute.length > 0 && (P = fe(P)), e.removed = [];
5271
+ is ? (R = as, P = ls) : _s(l), (V.uponSanitizeElement.length > 0 || V.uponSanitizeAttribute.length > 0) && (R = be(R)), V.uponSanitizeAttribute.length > 0 && (P = be(P)), e.removed = [];
5256
5272
  const S = hs && typeof v != "string" && Qt(v);
5257
5273
  if (S) {
5258
5274
  const Se = ge ? ge(v) : v.nodeName;
@@ -5278,9 +5294,9 @@ function Hr() {
5278
5294
  return At ? null : Lo ? bt : "";
5279
5295
  }
5280
5296
  h && cs && ot(h.firstChild);
5281
- const X = Rn(S ? v : h);
5297
+ const J = Rn(S ? v : h);
5282
5298
  try {
5283
- for (; g = X.nextNode(); )
5299
+ for (; g = J.nextNode(); )
5284
5300
  Pn(g), qn(g), zt(g.content) && Mo(g.content);
5285
5301
  } catch (Se) {
5286
5302
  throw S && zn(v), Se;
@@ -5310,9 +5326,9 @@ function Hr() {
5310
5326
  const f = N(v), g = N(l);
5311
5327
  return Bn(f, g, h);
5312
5328
  }, e.addHook = function(v, l) {
5313
- typeof l == "function" && J(V, v) && Ot(V[v], l);
5329
+ typeof l == "function" && ee(V, v) && Ot(V[v], l);
5314
5330
  }, e.removeHook = function(v, l) {
5315
- if (J(V, v)) {
5331
+ if (ee(V, v)) {
5316
5332
  if (l !== void 0) {
5317
5333
  const h = Cl(V[v], l);
5318
5334
  return h === -1 ? void 0 : $l(V[v], h, 1)[0];
@@ -5320,7 +5336,7 @@ function Hr() {
5320
5336
  return ar(V[v]);
5321
5337
  }
5322
5338
  }, e.removeHooks = function(v) {
5323
- J(V, v) && (V[v] = []);
5339
+ ee(V, v) && (V[v] = []);
5324
5340
  }, e.removeAllHooks = function() {
5325
5341
  V = _r();
5326
5342
  }, e;
@@ -7086,8 +7102,8 @@ const on = class on extends x {
7086
7102
  o.appendChild(_), i.push(_);
7087
7103
  else if (L === "nys-tabpanel") {
7088
7104
  r.appendChild(_);
7089
- const j = _, pe = j.getAttribute("aria-labelledby");
7090
- pe ? c.set(pe, j) : d.push(j);
7105
+ const j = _, ye = j.getAttribute("aria-labelledby");
7106
+ ye ? c.set(ye, j) : d.push(j);
7091
7107
  }
7092
7108
  });
7093
7109
  const p = [];
@@ -7451,7 +7467,7 @@ Je([
7451
7467
  ], Le.prototype, "_captionText");
7452
7468
  customElements.get("nys-table") || customElements.define("nys-table", Le);
7453
7469
  const Mc = ':host{--_nys-textarea-width: 100%;--_nys-textarea-border-radius: var(--nys-radius-md, 4px);--_nys-textarea-border-width: var(--nys-border-width-sm, 1px);--_nys-textarea-border-color: var(--nys-color-neutral-400, #909395);--_nys-textarea-padding: var(--nys-space-200, 16px);--_nys-textarea-gap: var(--nys-space-50, 4px);--_nys-textarea-color: var(--nys-color-ink, #1b1b1b);--_nys-textarea-color--placeholder: var( --nys-color-text-weaker, var(--nys-color-neutral-500, #797c7f) );--_nys-textarea-outline-color--hover: var(--nys-color-neutral-900, #1b1b1b);--_nys-textarea-outline-width: var(--nys-border-width-sm, 1px);--_nys-textarea-outline-color--focus: var(--nys-color-focus, #004dd1);--_nys-textarea-background-color--disabled: var( --nys-color-neutral-10, #f6f6f6 );--_nys-textarea-border-color--disabled: var(--nys-color-neutral-200, #bec0c1);--_nys-textarea-color--disabled: var( --nys-color-text-disabled, var(--nys-color-neutral-200, #bec0c1) );--_nys-textarea-font-family: var( --nys-font-family-ui, var( --nys-font-family-sans, "Proxima Nova", "Helvetica Neue", "Helvetica", "Arial", sans-serif ) );--_nys-textarea-font-size: var(--nys-font-size-ui-md, 16px);--_nys-textarea-font-weight: var(--nys-font-weight-regular, 400);--_nys-textarea-line-height: var(--nys-font-lineheight-ui-md, 24px);--nys-textarea-letterspacing-ui: var( --nys-font-letterspacing-ui-md, var(--nys-font-letterspacing-400, .044px) )}:host([width=sm]){--_nys-textarea-width: var(--nys-form-width-sm, 88px)}:host([width=md]){--_nys-textarea-width: var(--nys-form-width-md, 200px)}:host([width=lg]){--_nys-textarea-width: var(--nys-form-width-lg, 384px)}:host([width=full]){--_nys-textarea-width: 100%;flex:1}:host([showError]){--_nys-textarea-border-color: var(--nys-color-danger, #b52c2c)}:host([inverted]){--_nys-textarea-outline-color--focus: var(--nys-color-focus-reverse, #7aa5e7)}.nys-textarea{font-weight:var(--_nys-textarea-font-weight);font-family:var(--_nys-textarea-font-family);line-height:var(--_nys-textarea-line-height);letter-spacing:var(--nys-textarea-letterspacing-ui);color:var(--_nys-textarea-color);gap:var(--_nys-textarea-gap);display:flex;flex-direction:column}.nys-textarea__textarea{color:var(--_nys-textarea-color);font-size:var(--_nys-textarea-font-size);font-family:var(--_nys-textarea-font-family);border-radius:var(--_nys-textarea-border-radius);border:solid var(--_nys-textarea-border-color) var(--_nys-textarea-border-width);padding:var(--_nys-textarea-padding);width:var(--_nys-textarea-width);line-height:var(--_nys-textarea-line-height);max-width:var(--_nys-textarea-width);box-sizing:border-box}.nys-textarea__textarea::placeholder{color:var(--_nys-textarea-color--placeholder)}.nys-textarea__textarea.none{resize:none}.nys-textarea__textarea:hover:not(:disabled):not(:focus):not([readonly]){outline:solid var(--_nys-textarea-outline-width) var(--_nys-textarea-outline-color--hover);border-color:var(--_nys-textarea-outline-color--hover)}.nys-textarea__textarea:focus:not([readonly]){outline:solid var(--_nys-textarea-outline-width) var(--_nys-textarea-outline-color--focus);border-color:var(--_nys-textarea-outline-color--focus);caret-color:var(--_nys-textarea-outline-color--focus)}.nys-textarea__textarea:disabled,.nys-textarea__textarea:disabled::placeholder{background-color:var(--_nys-textarea-background-color--disabled);border-color:var(--_nys-textarea-border-color--disabled);color:var(--_nys-textarea-color--disabled);cursor:not-allowed}';
7454
- var zc = Object.defineProperty, Z = (n, e, t, s) => {
7470
+ var zc = Object.defineProperty, Q = (n, e, t, s) => {
7455
7471
  for (var o = void 0, r = n.length - 1, i; r >= 0; r--)
7456
7472
  (i = n[r]) && (o = i(e, t, o) || o);
7457
7473
  return o && zc(e, t, o), o;
@@ -7626,61 +7642,61 @@ po.styles = w(Mc), po.shadowRootOptions = {
7626
7642
  delegatesFocus: !0
7627
7643
  }, po.formAssociated = !0;
7628
7644
  let q = po;
7629
- Z([
7645
+ Q([
7630
7646
  a({ type: String, reflect: !0 })
7631
7647
  ], q.prototype, "id");
7632
- Z([
7648
+ Q([
7633
7649
  a({ type: String, reflect: !0 })
7634
7650
  ], q.prototype, "name");
7635
- Z([
7651
+ Q([
7636
7652
  a({ type: String })
7637
7653
  ], q.prototype, "label");
7638
- Z([
7654
+ Q([
7639
7655
  a({ type: String })
7640
7656
  ], q.prototype, "description");
7641
- Z([
7657
+ Q([
7642
7658
  a({ type: String })
7643
7659
  ], q.prototype, "placeholder");
7644
- Z([
7660
+ Q([
7645
7661
  a({ type: String })
7646
7662
  ], q.prototype, "value");
7647
- Z([
7663
+ Q([
7648
7664
  a({ type: Boolean, reflect: !0 })
7649
7665
  ], q.prototype, "disabled");
7650
- Z([
7666
+ Q([
7651
7667
  a({ type: Boolean, reflect: !0 })
7652
7668
  ], q.prototype, "readonly");
7653
- Z([
7669
+ Q([
7654
7670
  a({ type: Boolean, reflect: !0 })
7655
7671
  ], q.prototype, "required");
7656
- Z([
7672
+ Q([
7657
7673
  a({ type: Boolean, reflect: !0 })
7658
7674
  ], q.prototype, "optional");
7659
- Z([
7675
+ Q([
7660
7676
  a({ type: String })
7661
7677
  ], q.prototype, "tooltip");
7662
- Z([
7678
+ Q([
7663
7679
  a({ type: Boolean, reflect: !0 })
7664
7680
  ], q.prototype, "inverted");
7665
- Z([
7681
+ Q([
7666
7682
  a({ type: String, reflect: !0 })
7667
7683
  ], q.prototype, "form");
7668
- Z([
7684
+ Q([
7669
7685
  a({ type: Number })
7670
7686
  ], q.prototype, "maxlength");
7671
- Z([
7687
+ Q([
7672
7688
  a({ type: String, reflect: !0 })
7673
7689
  ], q.prototype, "width");
7674
- Z([
7690
+ Q([
7675
7691
  a({ type: Number })
7676
7692
  ], q.prototype, "rows");
7677
- Z([
7693
+ Q([
7678
7694
  a({ type: String, reflect: !0 })
7679
7695
  ], q.prototype, "resize");
7680
- Z([
7696
+ Q([
7681
7697
  a({ type: Boolean, reflect: !0 })
7682
7698
  ], q.prototype, "showError");
7683
- Z([
7699
+ Q([
7684
7700
  a({ type: String })
7685
7701
  ], q.prototype, "errorMessage");
7686
7702
  customElements.get("nys-textarea") || customElements.define("nys-textarea", q);
@@ -9375,14 +9391,14 @@ export {
9375
9391
  Ve as NysBreadcrumbs,
9376
9392
  A as NysButton,
9377
9393
  H as NysCheckbox,
9378
- ee as NysCheckboxgroup,
9394
+ K as NysCheckboxgroup,
9379
9395
  T as NysCombobox,
9380
9396
  Qa as NysDatepicker,
9381
9397
  vo as NysDivider,
9382
9398
  kt as NysDropdownMenu,
9383
9399
  Ge as NysDropdownMenuItem,
9384
9400
  Ct as NysErrorMessage,
9385
- K as NysFileinput,
9401
+ Z as NysFileinput,
9386
9402
  St as NysGlobalFooter,
9387
9403
  Qe as NysGlobalHeader,
9388
9404
  ec as NysIcon,