@nysds/components 1.10.0 → 1.10.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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(v,ue){typeof exports=="object"&&typeof module<"u"?ue(exports):typeof define=="function"&&define.amd?define(["exports"],ue):(v=typeof globalThis<"u"?globalThis:v||self,ue(v.NYSDS={}))})(this,function(v){"use strict";/*!
2
- * New York State Design System (v1.10.0)
2
+ * New York State Design System (v1.10.1)
3
3
  * Description: A design system for New York State's digital products.
4
4
  * Repository: https://github.com/its-hcd/nysds
5
5
  * License: MIT
@@ -7,7 +7,7 @@
7
7
  * @license
8
8
  * Copyright 2019 Google LLC
9
9
  * SPDX-License-Identifier: BSD-3-Clause
10
- */var g1,Ce,V,N,ae,le,me,xe,ce,m,de,Y,K,he;const ue=globalThis,dt=ue.ShadowRoot&&(ue.ShadyCSS===void 0||ue.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ht=Symbol(),Zt=new WeakMap;let Ot=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==ht)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(dt&&e===void 0){const o=t!==void 0&&t.length===1;o&&(e=Zt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Zt.set(t,e))}return e}toString(){return this.cssText}};const C1=a=>new Ot(typeof a=="string"?a:a+"",void 0,ht),g=(a,...e)=>{const t=a.length===1?a[0]:e.reduce((o,s,r)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[r+1],a[0]);return new Ot(t,a,ht)},m1=(a,e)=>{if(dt)a.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const o=document.createElement("style"),s=ue.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=t.cssText,a.appendChild(o)}},Ut=dt?a=>a:a=>a instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return C1(t)})(a):a;/**
10
+ */var g1,Ce,P,j,ae,le,me,xe,ce,m,de,K,X,he;const ue=globalThis,dt=ue.ShadowRoot&&(ue.ShadyCSS===void 0||ue.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ht=Symbol(),Ot=new WeakMap;let Zt=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==ht)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(dt&&e===void 0){const o=t!==void 0&&t.length===1;o&&(e=Ot.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ot.set(t,e))}return e}toString(){return this.cssText}};const C1=a=>new Zt(typeof a=="string"?a:a+"",void 0,ht),g=(a,...e)=>{const t=a.length===1?a[0]:e.reduce((o,s,r)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[r+1],a[0]);return new Zt(t,a,ht)},m1=(a,e)=>{if(dt)a.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const o=document.createElement("style"),s=ue.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=t.cssText,a.appendChild(o)}},Ut=dt?a=>a:a=>a instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return C1(t)})(a):a;/**
11
11
  * @license
12
12
  * Copyright 2017 Google LLC
13
13
  * SPDX-License-Identifier: BSD-3-Clause
@@ -15,21 +15,21 @@
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
- */const Te=globalThis,st=Te.trustedTypes,Rt=st?st.createPolicy("lit-html",{createHTML:a=>a}):void 0,Nt="$lit$",ve=`lit$${Math.random().toFixed(9).slice(2)}$`,Ft="?"+ve,D1=`<${Ft}>`,ke=document,Re=()=>ke.createComment(""),Ne=a=>a===null||typeof a!="object"&&typeof a!="function",pt=Array.isArray,A1=a=>pt(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",vt=`[
18
+ */const Te=globalThis,st=Te.trustedTypes,Rt=st?st.createPolicy("lit-html",{createHTML:a=>a}):void 0,Nt="$lit$",ve=`lit$${Math.random().toFixed(9).slice(2)}$`,Ft="?"+ve,A1=`<${Ft}>`,ke=document,Re=()=>ke.createComment(""),Ne=a=>a===null||typeof a!="object"&&typeof a!="function",pt=Array.isArray,D1=a=>pt(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",vt=`[
19
19
  \f\r]`,Fe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jt=/-->/g,Gt=/>/g,$e=RegExp(`>|${vt}(?:([^\\s"'>=/]+)(${vt}*=${vt}*(?:[^
20
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Wt=/'/g,Yt=/"/g,Kt=/^(?:script|style|textarea|title)$/i,M1=a=>(e,...t)=>({_$litType$:a,strings:e,values:t}),l=M1(1),Ie=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),Xt=new WeakMap,Se=ke.createTreeWalker(ke,129);function Qt(a,e){if(!pt(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Rt!==void 0?Rt.createHTML(e):e}const z1=(a,e)=>{const t=a.length-1,o=[];let s,r=e===2?"<svg>":e===3?"<math>":"",n=Fe;for(let d=0;d<t;d++){const c=a[d];let y,p,h=-1,x=0;for(;x<c.length&&(n.lastIndex=x,p=n.exec(c),p!==null);)x=n.lastIndex,n===Fe?p[1]==="!--"?n=jt:p[1]!==void 0?n=Gt:p[2]!==void 0?(Kt.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=$e):p[3]!==void 0&&(n=$e):n===$e?p[0]===">"?(n=s??Fe,h=-1):p[1]===void 0?h=-2:(h=n.lastIndex-p[2].length,y=p[1],n=p[3]===void 0?$e:p[3]==='"'?Yt:Wt):n===Yt||n===Wt?n=$e:n===jt||n===Gt?n=Fe:(n=$e,s=void 0);const E=n===$e&&a[d+1].startsWith("/>")?" ":"";r+=n===Fe?c+D1:h>=0?(o.push(y),c.slice(0,h)+Nt+c.slice(h)+ve+E):c+ve+(h===-2?d:E)}return[Qt(a,r+(a[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]};class je{constructor({strings:e,_$litType$:t},o){let s;this.parts=[];let r=0,n=0;const d=e.length-1,c=this.parts,[y,p]=z1(e,t);if(this.el=je.createElement(y,o),Se.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=Se.nextNode())!==null&&c.length<d;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Nt)){const x=p[n++],E=s.getAttribute(h).split(ve),ye=/([.?@])?(.*)/.exec(x);c.push({type:1,index:r,name:ye[2],strings:E,ctor:ye[1]==="."?H1:ye[1]==="?"?I1:ye[1]==="@"?B1:ot}),s.removeAttribute(h)}else h.startsWith(ve)&&(c.push({type:6,index:r}),s.removeAttribute(h));if(Kt.test(s.tagName)){const h=s.textContent.split(ve),x=h.length-1;if(x>0){s.textContent=st?st.emptyScript:"";for(let E=0;E<x;E++)s.append(h[E],Re()),Se.nextNode(),c.push({type:2,index:++r});s.append(h[x],Re())}}}else if(s.nodeType===8)if(s.data===Ft)c.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(ve,h+1))!==-1;)c.push({type:7,index:r}),h+=ve.length-1}r++}}static createElement(e,t){const o=ke.createElement("template");return o.innerHTML=e,o}}function Be(a,e,t=a,o){var n,d;if(e===Ie)return e;let s=o!==void 0?(n=t._$Co)==null?void 0:n[o]:t._$Cl;const r=Ne(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((d=s==null?void 0:s._$AO)==null||d.call(s,!1),r===void 0?s=void 0:(s=new r(a),s._$AT(a,t,o)),o!==void 0?(t._$Co??(t._$Co=[]))[o]=s:t._$Cl=s),s!==void 0&&(e=Be(a,s._$AS(a,e.values),s,o)),e}class V1{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:o}=this._$AD,s=((e==null?void 0:e.creationScope)??ke).importNode(t,!0);Se.currentNode=s;let r=Se.nextNode(),n=0,d=0,c=o[0];for(;c!==void 0;){if(n===c.index){let y;c.type===2?y=new Ge(r,r.nextSibling,this,e):c.type===1?y=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(y=new P1(r,this,e)),this._$AV.push(y),c=o[++d]}n!==(c==null?void 0:c.index)&&(r=Se.nextNode(),n++)}return Se.currentNode=ke,s}p(e){let t=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class Ge{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,o,s){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Be(this,e,t),Ne(e)?e===k||e==null||e===""?(this._$AH!==k&&this._$AR(),this._$AH=k):e!==this._$AH&&e!==Ie&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):A1(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==k&&Ne(this._$AH)?this._$AA.nextSibling.data=e:this.T(ke.createTextNode(e)),this._$AH=e}$(e){var r;const{values:t,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=je.createElement(Qt(o.h,o.h[0]),this.options)),o);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(t);else{const n=new V1(s,this),d=n.u(this.options);n.p(t),this.T(d),this._$AH=n}}_$AC(e){let t=Xt.get(e.strings);return t===void 0&&Xt.set(e.strings,t=new je(e)),t}k(e){pt(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,s=0;for(const r of e)s===t.length?t.push(o=new Ge(this.O(Re()),this.O(Re()),this,this.options)):o=t[s],o._$AI(r),s++;s<t.length&&(this._$AR(o&&o._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class ot{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,s,r){this.type=1,this._$AH=k,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=k}_$AI(e,t=this,o,s){const r=this.strings;let n=!1;if(r===void 0)e=Be(this,e,t,0),n=!Ne(e)||e!==this._$AH&&e!==Ie,n&&(this._$AH=e);else{const d=e;let c,y;for(e=r[0],c=0;c<r.length-1;c++)y=Be(this,d[o+c],t,c),y===Ie&&(y=this._$AH[c]),n||(n=!Ne(y)||y!==this._$AH[c]),y===k?e=k:e!==k&&(e+=(y??"")+r[c+1]),this._$AH[c]=y}n&&!s&&this.j(e)}j(e){e===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class H1 extends ot{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===k?void 0:e}}class I1 extends ot{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==k)}}class B1 extends ot{constructor(e,t,o,s,r){super(e,t,o,s,r),this.type=5}_$AI(e,t=this){if((e=Be(this,e,t,0)??k)===Ie)return;const o=this._$AH,s=e===k&&o!==k||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,r=e!==k&&(o===k||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class P1{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Be(this,e)}}const ft=Te.litHtmlPolyfillSupport;ft==null||ft(je,Ge),(Te.litHtmlVersions??(Te.litHtmlVersions=[])).push("3.2.1");const Z1=(a,e,t)=>{const o=(t==null?void 0:t.renderBefore)??e;let s=o._$litPart$;if(s===void 0){const r=(t==null?void 0:t.renderBefore)??null;o._$litPart$=s=new Ge(e.insertBefore(Re(),r),r,void 0,t??{})}return s._$AI(a),s};/**
20
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Wt=/'/g,Yt=/"/g,Kt=/^(?:script|style|textarea|title)$/i,M1=a=>(e,...t)=>({_$litType$:a,strings:e,values:t}),c=M1(1),Be=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),Xt=new WeakMap,Se=ke.createTreeWalker(ke,129);function Qt(a,e){if(!pt(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Rt!==void 0?Rt.createHTML(e):e}const z1=(a,e)=>{const t=a.length-1,o=[];let s,r=e===2?"<svg>":e===3?"<math>":"",n=Fe;for(let d=0;d<t;d++){const l=a[d];let y,p,h=-1,x=0;for(;x<l.length&&(n.lastIndex=x,p=n.exec(l),p!==null);)x=n.lastIndex,n===Fe?p[1]==="!--"?n=jt:p[1]!==void 0?n=Gt:p[2]!==void 0?(Kt.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=$e):p[3]!==void 0&&(n=$e):n===$e?p[0]===">"?(n=s??Fe,h=-1):p[1]===void 0?h=-2:(h=n.lastIndex-p[2].length,y=p[1],n=p[3]===void 0?$e:p[3]==='"'?Yt:Wt):n===Yt||n===Wt?n=$e:n===jt||n===Gt?n=Fe:(n=$e,s=void 0);const E=n===$e&&a[d+1].startsWith("/>")?" ":"";r+=n===Fe?l+A1:h>=0?(o.push(y),l.slice(0,h)+Nt+l.slice(h)+ve+E):l+ve+(h===-2?d:E)}return[Qt(a,r+(a[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]};class je{constructor({strings:e,_$litType$:t},o){let s;this.parts=[];let r=0,n=0;const d=e.length-1,l=this.parts,[y,p]=z1(e,t);if(this.el=je.createElement(y,o),Se.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=Se.nextNode())!==null&&l.length<d;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Nt)){const x=p[n++],E=s.getAttribute(h).split(ve),ye=/([.?@])?(.*)/.exec(x);l.push({type:1,index:r,name:ye[2],strings:E,ctor:ye[1]==="."?H1:ye[1]==="?"?B1:ye[1]==="@"?I1:ot}),s.removeAttribute(h)}else h.startsWith(ve)&&(l.push({type:6,index:r}),s.removeAttribute(h));if(Kt.test(s.tagName)){const h=s.textContent.split(ve),x=h.length-1;if(x>0){s.textContent=st?st.emptyScript:"";for(let E=0;E<x;E++)s.append(h[E],Re()),Se.nextNode(),l.push({type:2,index:++r});s.append(h[x],Re())}}}else if(s.nodeType===8)if(s.data===Ft)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(ve,h+1))!==-1;)l.push({type:7,index:r}),h+=ve.length-1}r++}}static createElement(e,t){const o=ke.createElement("template");return o.innerHTML=e,o}}function Ie(a,e,t=a,o){var n,d;if(e===Be)return e;let s=o!==void 0?(n=t._$Co)==null?void 0:n[o]:t._$Cl;const r=Ne(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((d=s==null?void 0:s._$AO)==null||d.call(s,!1),r===void 0?s=void 0:(s=new r(a),s._$AT(a,t,o)),o!==void 0?(t._$Co??(t._$Co=[]))[o]=s:t._$Cl=s),s!==void 0&&(e=Ie(a,s._$AS(a,e.values),s,o)),e}class V1{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:o}=this._$AD,s=((e==null?void 0:e.creationScope)??ke).importNode(t,!0);Se.currentNode=s;let r=Se.nextNode(),n=0,d=0,l=o[0];for(;l!==void 0;){if(n===l.index){let y;l.type===2?y=new Ge(r,r.nextSibling,this,e):l.type===1?y=new l.ctor(r,l.name,l.strings,this,e):l.type===6&&(y=new P1(r,this,e)),this._$AV.push(y),l=o[++d]}n!==(l==null?void 0:l.index)&&(r=Se.nextNode(),n++)}return Se.currentNode=ke,s}p(e){let t=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class Ge{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,o,s){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ie(this,e,t),Ne(e)?e===S||e==null||e===""?(this._$AH!==S&&this._$AR(),this._$AH=S):e!==this._$AH&&e!==Be&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):D1(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==S&&Ne(this._$AH)?this._$AA.nextSibling.data=e:this.T(ke.createTextNode(e)),this._$AH=e}$(e){var r;const{values:t,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=je.createElement(Qt(o.h,o.h[0]),this.options)),o);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(t);else{const n=new V1(s,this),d=n.u(this.options);n.p(t),this.T(d),this._$AH=n}}_$AC(e){let t=Xt.get(e.strings);return t===void 0&&Xt.set(e.strings,t=new je(e)),t}k(e){pt(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,s=0;for(const r of e)s===t.length?t.push(o=new Ge(this.O(Re()),this.O(Re()),this,this.options)):o=t[s],o._$AI(r),s++;s<t.length&&(this._$AR(o&&o._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class ot{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,s,r){this.type=1,this._$AH=S,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=S}_$AI(e,t=this,o,s){const r=this.strings;let n=!1;if(r===void 0)e=Ie(this,e,t,0),n=!Ne(e)||e!==this._$AH&&e!==Be,n&&(this._$AH=e);else{const d=e;let l,y;for(e=r[0],l=0;l<r.length-1;l++)y=Ie(this,d[o+l],t,l),y===Be&&(y=this._$AH[l]),n||(n=!Ne(y)||y!==this._$AH[l]),y===S?e=S:e!==S&&(e+=(y??"")+r[l+1]),this._$AH[l]=y}n&&!s&&this.j(e)}j(e){e===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class H1 extends ot{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===S?void 0:e}}class B1 extends ot{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==S)}}class I1 extends ot{constructor(e,t,o,s,r){super(e,t,o,s,r),this.type=5}_$AI(e,t=this){if((e=Ie(this,e,t,0)??S)===Be)return;const o=this._$AH,s=e===S&&o!==S||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,r=e!==S&&(o===S||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class P1{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Ie(this,e)}}const ft=Te.litHtmlPolyfillSupport;ft==null||ft(je,Ge),(Te.litHtmlVersions??(Te.litHtmlVersions=[])).push("3.2.1");const O1=(a,e,t)=>{const o=(t==null?void 0:t.renderBefore)??e;let s=o._$litPart$;if(s===void 0){const r=(t==null?void 0:t.renderBefore)??null;o._$litPart$=s=new Ge(e.insertBefore(Re(),r),r,void 0,t??{})}return s._$AI(a),s};/**
21
21
  * @license
22
22
  * Copyright 2017 Google LLC
23
23
  * SPDX-License-Identifier: BSD-3-Clause
24
- */let f=class extends He{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Z1(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Ie}};f._$litElement$=!0,f.finalized=!0,(g1=globalThis.litElementHydrateSupport)==null||g1.call(globalThis,{LitElement:f});const gt=globalThis.litElementPolyfillSupport;gt==null||gt({LitElement:f}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
24
+ */let f=class extends He{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=O1(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Be}};f._$litElement$=!0,f.finalized=!0,(g1=globalThis.litElementHydrateSupport)==null||g1.call(globalThis,{LitElement:f});const gt=globalThis.litElementPolyfillSupport;gt==null||gt({LitElement:f}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */const O1={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:ut},U1=(a=O1,e,t)=>{const{kind:o,metadata:s}=t;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),r.set(t.name,a),o==="accessor"){const{name:n}=t;return{set(d){const c=e.get.call(this);e.set.call(this,d),this.requestUpdate(n,c,a)},init(d){return d!==void 0&&this.P(n,void 0,a),d}}}if(o==="setter"){const{name:n}=t;return function(d){const c=this[n];e.call(this,d),this.requestUpdate(n,c,a)}}throw Error("Unsupported decorator location: "+o)};function i(a){return(e,t)=>typeof t=="object"?U1(a,e,t):((o,s,r)=>{const n=s.hasOwnProperty(r);return s.constructor.createProperty(r,n?{...o,wrapped:!0}:o),n?Object.getOwnPropertyDescriptor(s,r):void 0})(a,e,t)}/**
28
+ */const Z1={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:ut},U1=(a=Z1,e,t)=>{const{kind:o,metadata:s}=t;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),r.set(t.name,a),o==="accessor"){const{name:n}=t;return{set(d){const l=e.get.call(this);e.set.call(this,d),this.requestUpdate(n,l,a)},init(d){return d!==void 0&&this.P(n,void 0,a),d}}}if(o==="setter"){const{name:n}=t;return function(d){const l=this[n];e.call(this,d),this.requestUpdate(n,l,a)}}throw Error("Unsupported decorator location: "+o)};function i(a){return(e,t)=>typeof t=="object"?U1(a,e,t):((o,s,r)=>{const n=s.hasOwnProperty(r);return s.constructor.createProperty(r,n?{...o,wrapped:!0}:o),n?Object.getOwnPropertyDescriptor(s,r):void 0})(a,e,t)}/**
29
29
  * @license
30
30
  * Copyright 2017 Google LLC
31
31
  * SPDX-License-Identifier: BSD-3-Clause
32
- */function D(a){return i({...a,state:!0,attribute:!1})}/**
32
+ */function z(a){return i({...a,state:!0,attribute:!1})}/**
33
33
  * @license
34
34
  * Copyright 2017 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
@@ -182,7 +182,7 @@
182
182
  flex-direction: column;
183
183
  gap: var(--_nys-accordion-gap);
184
184
  }
185
- `;var R1=Object.defineProperty,We=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&R1(e,t,s),s};let N1=0;const mt=class mt extends f{constructor(){super(),this.id="",this.heading="",this.expanded=!1,this.bordered=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");this.expanded&&e&&e.addEventListener("slotchange",()=>{this._updateHeight()})}updated(e){e.has("expanded")&&this._updateHeight()}_generateUniqueId(){return`nys-accordionitem-${Date.now()}-${N1++}`}_dispatchEvent(){this.dispatchEvent(new CustomEvent("nys-accordionitem-toggle",{detail:{id:this.id,heading:this.heading,expanded:this.expanded},bubbles:!0,composed:!0}))}_handleExpand(){this.expanded=!this.expanded,this._updateHeight(),this._dispatchEvent()}_handleKeydown(e){(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this._handleExpand())}_updateHeight(){if(this._contentContainer)if(this.expanded){const e=this._contentContainer.scrollHeight;this._contentContainer.style.height=`${e}px`}else this._contentContainer.style.height="0",this._contentContainer.style.overflow="hidden"}render(){const e=`${this.id}-content`;return l`
185
+ `;var R1=Object.defineProperty,We=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&R1(e,t,s),s};let N1=0;const mt=class mt extends f{constructor(){super(),this.id="",this.heading="",this.expanded=!1,this.bordered=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");this.expanded&&e&&e.addEventListener("slotchange",()=>{this._updateHeight()})}updated(e){e.has("expanded")&&this._updateHeight()}_generateUniqueId(){return`nys-accordionitem-${Date.now()}-${N1++}`}_dispatchEvent(){this.dispatchEvent(new CustomEvent("nys-accordionitem-toggle",{detail:{id:this.id,heading:this.heading,expanded:this.expanded},bubbles:!0,composed:!0}))}_handleExpand(){this.expanded=!this.expanded,this._updateHeight(),this._dispatchEvent()}_handleKeydown(e){(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this._handleExpand())}_updateHeight(){if(this._contentContainer)if(this.expanded){const e=this._contentContainer.scrollHeight;this._contentContainer.style.height=`${e}px`}else this._contentContainer.style.height="0",this._contentContainer.style.overflow="hidden"}render(){const e=`${this.id}-content`;return c`
186
186
  <div id=${this.id} class="nys-accordionitem">
187
187
  <button
188
188
  class="nys-accordionitem__heading"
@@ -203,7 +203,7 @@
203
203
  </div>
204
204
  </div>
205
205
  </div>
206
- </div>`}};mt.styles=Jt;let te=mt;We([i({type:String})],te.prototype,"id"),We([i({type:String})],te.prototype,"heading"),We([i({type:Boolean,reflect:!0})],te.prototype,"expanded"),We([i({type:Boolean,reflect:!0})],te.prototype,"bordered"),We([T1(".nys-accordionitem__content")],te.prototype,"_contentContainer"),customElements.get("nys-accordionitem")||customElements.define("nys-accordionitem",te);var F1=Object.defineProperty,bt=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&F1(e,t,s),s};let j1=0;const xt=class xt extends f{constructor(){super(),this.id="",this.singleSelect=!1,this.bordered=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}updated(e){e.has("bordered")&&this._applyBordered()}_generateUniqueId(){return`nys-accordionitem-${Date.now()}-${j1++}`}_getAccordions(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");return((e==null?void 0:e.assignedElements())||[]).filter(s=>s.tagName.toLowerCase()==="nys-accordionitem")}_onAccordionToggle(e){if(!this.singleSelect)return;const t=e.detail.id;e.detail.expanded&&this._getAccordions().forEach(s=>{s.id!==t&&s.expanded&&(s.expanded=!1)})}_applyBordered(){this._getAccordions().forEach(e=>{e.bordered=this.bordered})}render(){return l`<div
206
+ </div>`}};mt.styles=Jt;let te=mt;We([i({type:String})],te.prototype,"id"),We([i({type:String})],te.prototype,"heading"),We([i({type:Boolean,reflect:!0})],te.prototype,"expanded"),We([i({type:Boolean,reflect:!0})],te.prototype,"bordered"),We([T1(".nys-accordionitem__content")],te.prototype,"_contentContainer"),customElements.get("nys-accordionitem")||customElements.define("nys-accordionitem",te);var F1=Object.defineProperty,bt=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&F1(e,t,s),s};let j1=0;const xt=class xt extends f{constructor(){super(),this.id="",this.singleSelect=!1,this.bordered=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}updated(e){e.has("bordered")&&this._applyBordered()}_generateUniqueId(){return`nys-accordionitem-${Date.now()}-${j1++}`}_getAccordions(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");return((e==null?void 0:e.assignedElements())||[]).filter(s=>s.tagName.toLowerCase()==="nys-accordionitem")}_onAccordionToggle(e){if(!this.singleSelect)return;const t=e.detail.id;e.detail.expanded&&this._getAccordions().forEach(s=>{s.id!==t&&s.expanded&&(s.expanded=!1)})}_applyBordered(){this._getAccordions().forEach(e=>{e.bordered=this.bordered})}render(){return c`<div
207
207
  id=${this.id}
208
208
  class="nys-accordion"
209
209
  @nys-accordionitem-toggle=${this._onAccordionToggle}
@@ -449,8 +449,8 @@
449
449
  * @license
450
450
  * Copyright 2018 Google LLC
451
451
  * SPDX-License-Identifier: BSD-3-Clause
452
- */const u=a=>a??k;var W1=Object.defineProperty,Y1=Object.getOwnPropertyDescriptor,U=(a,e,t,o)=>{for(var s=o>1?void 0:o?Y1(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&W1(e,t,s),s};let K1=0;const H=(Ce=class extends f{constructor(){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}get type(){return this._type}set type(e){this._type=Ce.VALID_TYPES.includes(e)?e:"base"}get ariaAttributes(){const e=this.type==="danger"||this.type==="emergency"?"alert":this.type==="success"?"status":"region",t=e==="region"?`${this.type} alert`:"";return{role:e,ariaLabel:t}}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId()),this.duration>0&&(this._timeoutId=setTimeout(()=>{this._closeAlert()},this.duration))}disconnectedCallback(){this._timeoutId&&clearTimeout(this._timeoutId),super.disconnectedCallback()}firstUpdated(){this._checkSlotContent()}_generateUniqueId(){return`nys-alert-${Date.now()}-${K1++}`}_getIconName(){return this.icon?this.icon:this._checkAltNaming()}_checkAltNaming(){return this.type==="success"?"check_circle":this.type==="base"?"info":this.type==="danger"?"error":this.type==="emergency"?"emergency_home":this.type}_closeAlert(){this._alertClosed=!0,this.dispatchEvent(new CustomEvent("nys-close",{detail:{id:this.id,type:this.type,label:this.heading},bubbles:!0,composed:!0}))}async _checkSlotContent(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");if(e){const o=e.assignedNodes({flatten:!0}).filter(s=>{var r;return s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&((r=s.textContent)==null?void 0:r.trim())});await Promise.resolve(),this._slotHasContent=o.length>0}else await Promise.resolve(),this._slotHasContent=!1}render(){var o,s;const{role:e,ariaLabel:t}=this.ariaAttributes;return l`
453
- ${this._alertClosed?"":l` <div
452
+ */const u=a=>a??S;var W1=Object.defineProperty,Y1=Object.getOwnPropertyDescriptor,T=(a,e,t,o)=>{for(var s=o>1?void 0:o?Y1(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&W1(e,t,s),s};let K1=0;const O=(Ce=class extends f{constructor(){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}get type(){return this._type}set type(e){this._type=Ce.VALID_TYPES.includes(e)?e:"base"}get ariaAttributes(){const e=this.type==="danger"||this.type==="emergency"?"alert":this.type==="success"?"status":"region",t=e==="region"?`${this.type} alert`:"";return{role:e,ariaLabel:t}}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId()),this.duration>0&&(this._timeoutId=setTimeout(()=>{this._closeAlert()},this.duration))}disconnectedCallback(){this._timeoutId&&clearTimeout(this._timeoutId),super.disconnectedCallback()}firstUpdated(){this._checkSlotContent()}_generateUniqueId(){return`nys-alert-${Date.now()}-${K1++}`}_getIconName(){return this.icon?this.icon:this._checkAltNaming()}_checkAltNaming(){return this.type==="success"?"check_circle":this.type==="base"?"info":this.type==="danger"?"error":this.type==="emergency"?"emergency_home":this.type}_closeAlert(){this._alertClosed=!0,this.dispatchEvent(new CustomEvent("nys-close",{detail:{id:this.id,type:this.type,label:this.heading},bubbles:!0,composed:!0}))}async _checkSlotContent(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");if(e){const o=e.assignedNodes({flatten:!0}).filter(s=>{var r;return s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&((r=s.textContent)==null?void 0:r.trim())});await Promise.resolve(),this._slotHasContent=o.length>0}else await Promise.resolve(),this._slotHasContent=!1}render(){var o,s;const{role:e,ariaLabel:t}=this.ariaAttributes;return c`
453
+ ${this._alertClosed?"":c` <div
454
454
  id=${this.id}
455
455
  class="nys-alert__container ${this._slotHasContent||((o=this.text)==null?void 0:o.trim().length)>0?"":"nys-alert--centered"}"
456
456
  aria-label=${u(t.trim()!==""?t:void 0)}
@@ -464,15 +464,15 @@
464
464
  </div>
465
465
  <div class="nys-alert__texts" role=${e}>
466
466
  <p class="nys-alert__header">${this.heading}</p>
467
- ${this._slotHasContent?l`<slot></slot>`:((s=this.text)==null?void 0:s.trim().length)>0?l`<p class="nys-alert__text">${this.text}</p>`:""}
468
- ${this.primaryAction||this.secondaryAction?l`<div class="nys-alert__actions">
469
- ${this.primaryAction?l`<a
467
+ ${this._slotHasContent?c`<slot></slot>`:((s=this.text)==null?void 0:s.trim().length)>0?c`<p class="nys-alert__text">${this.text}</p>`:""}
468
+ ${this.primaryAction||this.secondaryAction?c`<div class="nys-alert__actions">
469
+ ${this.primaryAction?c`<a
470
470
  href=${u(this.primaryAction||void 0)}
471
471
  class="nys-alert__action nys-alert__primary"
472
472
  >
473
473
  ${this.primaryLabel}
474
474
  </a>`:""}
475
- ${this.secondaryAction?l`<a
475
+ ${this.secondaryAction?c`<a
476
476
  href=${u(this.secondaryAction||void 0)}
477
477
  class="nys-alert__action nys-alert__secondary"
478
478
  >
@@ -480,7 +480,7 @@
480
480
  </a>`:""}
481
481
  </div> `:""}
482
482
  </div>
483
- ${this.dismissible?l` <nys-button
483
+ ${this.dismissible?c` <nys-button
484
484
  id="dismiss-btn"
485
485
  variant="ghost"
486
486
  circle
@@ -491,7 +491,7 @@
491
491
  .onClick=${()=>this._closeAlert()}
492
492
  ></nys-button>`:""}
493
493
  </div>`}
494
- `}},Ce.styles=G1,Ce.VALID_TYPES=["base","info","success","warning","danger","emergency"],Ce);U([i({type:String})],H.prototype,"id",2),U([i({type:String})],H.prototype,"heading",2),U([i({type:String})],H.prototype,"icon",2),U([i({type:Boolean,reflect:!0})],H.prototype,"dismissible",2),U([i({type:Number,reflect:!0})],H.prototype,"duration",2),U([i({type:String})],H.prototype,"text",2),U([i({type:String})],H.prototype,"primaryAction",2),U([i({type:String})],H.prototype,"secondaryAction",2),U([i({type:String})],H.prototype,"primaryLabel",2),U([i({type:String})],H.prototype,"secondaryLabel",2),U([D()],H.prototype,"_alertClosed",2),U([D()],H.prototype,"_slotHasContent",2),U([i({reflect:!0})],H.prototype,"type",1);let e1=H;customElements.get("nys-alert")||customElements.define("nys-alert",e1);const X1=g`
494
+ `}},Ce.styles=G1,Ce.VALID_TYPES=["base","info","success","warning","danger","emergency"],Ce);T([i({type:String})],O.prototype,"id",2),T([i({type:String})],O.prototype,"heading",2),T([i({type:String})],O.prototype,"icon",2),T([i({type:Boolean,reflect:!0})],O.prototype,"dismissible",2),T([i({type:Number,reflect:!0})],O.prototype,"duration",2),T([i({type:String})],O.prototype,"text",2),T([i({type:String})],O.prototype,"primaryAction",2),T([i({type:String})],O.prototype,"secondaryAction",2),T([i({type:String})],O.prototype,"primaryLabel",2),T([i({type:String})],O.prototype,"secondaryLabel",2),T([z()],O.prototype,"_alertClosed",2),T([z()],O.prototype,"_slotHasContent",2),T([i({reflect:!0})],O.prototype,"type",1);let e1=O;customElements.get("nys-alert")||customElements.define("nys-alert",e1);const X1=g`
495
495
  :host {
496
496
  /* Global Avatar Styles */
497
497
 
@@ -592,7 +592,7 @@
592
592
  height: 100%;
593
593
  fill: currentColor;
594
594
  }
595
- `;var Q1=Object.defineProperty,X=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Q1(e,t,s),s};let J1=0;const wt=class wt extends f{constructor(){super(...arguments),this.id="",this.ariaLabel="",this.image="",this.initials="",this.icon="",this.color="",this.interactive=!1,this.disabled=!1,this.lazy=!1,this._slotHasContent=!0}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-avatar-${Date.now()}-${J1++}`)}firstUpdated(){this._checkSlotContent()}async _checkSlotContent(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this._slotHasContent=!1;return}await Promise.resolve();const t=e.assignedNodes({flatten:!0}).filter(s=>{var r;return s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&((r=s.textContent)==null?void 0:r.trim())});this._slotHasContent=t.length>0}getContrastForeground(){var E;const e="var(--nys-color-ink, #000)",t="var(--nys-color-ink-reverse, #fff)",o="var(--nys-color-text, #000)",s="var(--nys-color-text-reverse, #fff)";if(!this.color)return;const r=document.createElement("div");r.style.color=this.color,document.body.appendChild(r);const n=getComputedStyle(r).color;document.body.removeChild(r);const d=n.match(/\d+/g);if(!d)return;const c=Number(d[0]),y=Number(d[1]),p=Number(d[2]),x=(.299*c+.587*y+.114*p)/255<.5;return((E=this.initials)==null?void 0:E.length)>0?x?s:o:x?t:e}render(){var e,t,o;return l`
595
+ `;var Q1=Object.defineProperty,Q=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Q1(e,t,s),s};let J1=0;const wt=class wt extends f{constructor(){super(...arguments),this.id="",this.ariaLabel="",this.image="",this.initials="",this.icon="",this.color="",this.interactive=!1,this.disabled=!1,this.lazy=!1,this._slotHasContent=!0}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-avatar-${Date.now()}-${J1++}`)}firstUpdated(){this._checkSlotContent()}async _checkSlotContent(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this._slotHasContent=!1;return}await Promise.resolve();const t=e.assignedNodes({flatten:!0}).filter(s=>{var r;return s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&((r=s.textContent)==null?void 0:r.trim())});this._slotHasContent=t.length>0}getContrastForeground(){var E;const e="var(--nys-color-ink, #000)",t="var(--nys-color-ink-reverse, #fff)",o="var(--nys-color-text, #000)",s="var(--nys-color-text-reverse, #fff)";if(!this.color)return;const r=document.createElement("div");r.style.color=this.color,document.body.appendChild(r);const n=getComputedStyle(r).color;document.body.removeChild(r);const d=n.match(/\d+/g);if(!d)return;const l=Number(d[0]),y=Number(d[1]),p=Number(d[2]),x=(.299*l+.587*y+.114*p)/255<.5;return((E=this.initials)==null?void 0:E.length)>0?x?s:o:x?t:e}render(){var e,t,o;return c`
596
596
  <label class="nys-avatar" id=${this.id}>
597
597
  <div class="nys-avatar__content">
598
598
  <div
@@ -603,20 +603,20 @@
603
603
  aria-label=${u(this.image?void 0:this.ariaLabel?this.ariaLabel:"avatar")}
604
604
  tabindex=${this.interactive&&!this.disabled?"0":u(void 0)}
605
605
  >
606
- ${((e=this.image)==null?void 0:e.length)>0?l`<img
606
+ ${((e=this.image)==null?void 0:e.length)>0?c`<img
607
607
  part="nys-avatar__image"
608
608
  class="nys-avatar__image"
609
609
  src=${this.image}
610
610
  alt=${this.ariaLabel||"avatar"}
611
611
  loading=${this.lazy?"lazy":"eager"}
612
- />`:((t=this.initials)==null?void 0:t.length)>0?l`<span
612
+ />`:((t=this.initials)==null?void 0:t.length)>0?c`<span
613
613
  part="nys-avatar__initials"
614
614
  class="nys-avatar__initials"
615
615
  aria-hidden="true"
616
616
  >${this.initials}</span
617
- >`:this._slotHasContent?l`<div part="nys-avatar__icon">
617
+ >`:this._slotHasContent?c`<div part="nys-avatar__icon">
618
618
  <slot></slot>
619
- </div>`:l`<div part="nys-avatar__icon">
619
+ </div>`:c`<div part="nys-avatar__icon">
620
620
  <nys-icon
621
621
  label="nys-avatar__icon"
622
622
  name=${((o=this.icon)==null?void 0:o.length)>0?this.icon:"account_circle"}
@@ -625,7 +625,7 @@
625
625
  </div>
626
626
  </div>
627
627
  </label>
628
- `}};wt.styles=X1;let I=wt;X([i({type:String})],I.prototype,"id"),X([i({type:String})],I.prototype,"ariaLabel"),X([i({type:String})],I.prototype,"image"),X([i({type:String})],I.prototype,"initials"),X([i({type:String})],I.prototype,"icon"),X([i({type:String})],I.prototype,"color"),X([i({type:Boolean,reflect:!0})],I.prototype,"interactive"),X([i({type:Boolean,reflect:!0})],I.prototype,"disabled"),X([i({type:Boolean,reflect:!0})],I.prototype,"lazy"),X([D()],I.prototype,"_slotHasContent"),customElements.get("nys-avatar")||customElements.define("nys-avatar",I);const es=g`
628
+ `}};wt.styles=X1;let Z=wt;Q([i({type:String})],Z.prototype,"id"),Q([i({type:String})],Z.prototype,"ariaLabel"),Q([i({type:String})],Z.prototype,"image"),Q([i({type:String})],Z.prototype,"initials"),Q([i({type:String})],Z.prototype,"icon"),Q([i({type:String})],Z.prototype,"color"),Q([i({type:Boolean,reflect:!0})],Z.prototype,"interactive"),Q([i({type:Boolean,reflect:!0})],Z.prototype,"disabled"),Q([i({type:Boolean,reflect:!0})],Z.prototype,"lazy"),Q([z()],Z.prototype,"_slotHasContent"),customElements.get("nys-avatar")||customElements.define("nys-avatar",Z);const es=g`
629
629
  .nys-backtotop {
630
630
  /* These props ARE NOT publicly overridable */
631
631
  --_nys-button-border-radius--start: var(--nys-radius-round, 1776px);
@@ -648,7 +648,7 @@
648
648
  .visible {
649
649
  display: inline-flex;
650
650
  }
651
- `;var ts=Object.defineProperty,rt=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&ts(e,t,s),s};const kt=class kt extends f{constructor(){super(),this.position="right",this.visible=!1,this.isMobile=!1,this.forceVisible=!1,this._handleScroll=this._handleScroll.bind(this),this._handleResize=this._handleResize.bind(this),this.mediaQuery=window.matchMedia("(max-width: 480px)")}connectedCallback(){super.connectedCallback(),this.forceVisible=this.hasAttribute("visible"),window.addEventListener("scroll",this._handleScroll),this.mediaQuery.addEventListener("change",this._handleResize),this._handleResize()}disconnectedCallback(){window.removeEventListener("scroll",this._handleScroll),this.mediaQuery.removeEventListener("change",this._handleResize),super.disconnectedCallback()}_handleScroll(){if(this.forceVisible)return;const e=window.innerHeight,t=document.documentElement.scrollHeight;this.visible=t>=e*4&&window.scrollY>e*1.5}_scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}_handleResize(){this.isMobile=this.mediaQuery.matches}render(){const e=["nys-backtotop",this.position,this.visible?"visible":""].filter(Boolean).join(" ");return l`<nys-button
651
+ `;var ts=Object.defineProperty,rt=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&ts(e,t,s),s};const kt=class kt extends f{constructor(){super(),this.position="right",this.visible=!1,this.isMobile=!1,this.forceVisible=!1,this._handleScroll=this._handleScroll.bind(this),this._handleResize=this._handleResize.bind(this),this.mediaQuery=window.matchMedia("(max-width: 480px)")}connectedCallback(){super.connectedCallback(),this.forceVisible=this.hasAttribute("visible"),window.addEventListener("scroll",this._handleScroll),this.mediaQuery.addEventListener("change",this._handleResize),this._handleResize()}disconnectedCallback(){window.removeEventListener("scroll",this._handleScroll),this.mediaQuery.removeEventListener("change",this._handleResize),super.disconnectedCallback()}_handleScroll(){if(this.forceVisible)return;const e=window.innerHeight,t=document.documentElement.scrollHeight;this.visible=t>=e*4&&window.scrollY>e*1.5}_scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}_handleResize(){this.isMobile=this.mediaQuery.matches}render(){const e=["nys-backtotop",this.position,this.visible?"visible":""].filter(Boolean).join(" ");return c`<nys-button
652
652
  id="nys-backtotop"
653
653
  prefixIcon="chevron_up"
654
654
  variant="outline"
@@ -657,7 +657,7 @@
657
657
  class="${e}"
658
658
  .onClick=${this._scrollToTop}
659
659
  ?circle=${this.isMobile}
660
- ></nys-button>`}};kt.styles=es;let fe=kt;rt([i({type:String})],fe.prototype,"position"),rt([i({type:Boolean,reflect:!0})],fe.prototype,"visible"),rt([D()],fe.prototype,"isMobile"),rt([D()],fe.prototype,"forceVisible"),customElements.get("nys-backtotop")||customElements.define("nys-backtotop",fe);const ss=g`
660
+ ></nys-button>`}};kt.styles=es;let fe=kt;rt([i({type:String})],fe.prototype,"position"),rt([i({type:Boolean,reflect:!0})],fe.prototype,"visible"),rt([z()],fe.prototype,"isMobile"),rt([z()],fe.prototype,"forceVisible"),customElements.get("nys-backtotop")||customElements.define("nys-backtotop",fe);const ss=g`
661
661
  :host {
662
662
  /* Anything that can be overridden should be defined here */
663
663
 
@@ -1316,8 +1316,8 @@
1316
1316
  align-items: center;
1317
1317
  user-select: none;
1318
1318
  }
1319
- `;var os=Object.defineProperty,rs=Object.getOwnPropertyDescriptor,w=(a,e,t,o)=>{for(var s=o>1?void 0:o?rs(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&os(e,t,s),s};let ns=0;const _=(V=class extends f{constructor(){super(),this.id="",this.name="",this._size="md",this.fullWidth=!1,this._variant="filled",this.inverted=!1,this.label="",this.ariaLabel="",this.ariaControls="",this.prefixIcon="",this.suffixIcon="",this.circle=!1,this.icon="",this.disabled=!1,this.form=null,this.value="",this.ariaDescription="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=V.VALID_SIZES.includes(e)?e:"md"}get variant(){return this._variant}set variant(e){this._variant=V.VALID_VARIANTS.includes(e)?e:"filled"}get type(){return this._type}set type(e){this._type=V.VALID_TYPES.includes(e)?e:"button"}get target(){return this._target}set target(e){this._target=V.VALID_TARGETS.includes(e)?e:"_self"}async getButtonElement(){var o,s;await this.updateComplete;const e=((o=this.shadowRoot)==null?void 0:o.querySelector("a.nys-button"))||null;if(e)return e;const t=((s=this.shadowRoot)==null?void 0:s.querySelector("button.nys-button"))||null;return t||null}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${ns++}`}_manageFormAction(e){typeof this.onClick=="function"&&this.onClick(e);const t=this._internals.form;if(t)switch(this.type){case"submit":t.requestSubmit();break;case"reset":t.reset();break}}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-button");e==null||e.classList.remove("active-focus"),this.dispatchEvent(new Event("nys-blur"))}_handleClick(e){if(this.disabled){e.preventDefault();return}this._manageFormAction(e),this.dispatchEvent(new Event("nys-click"))}_handleKeydown(e){if(e.code==="Space"||e.code==="Enter"||e.key===" "||e.key==="Enter"){if(this.disabled)return;if(e.preventDefault(),this.href){const t=this.renderRoot.querySelector("a.nys-button");t&&t.click()}else this._handleClick(e)}}focus(e){const t=this.renderRoot.querySelector(this.href?"a.nys-button":"button.nys-button");t?t.focus(e):super.focus(e)}render(){return l`
1320
- ${this.href?l`
1319
+ `;var os=Object.defineProperty,rs=Object.getOwnPropertyDescriptor,w=(a,e,t,o)=>{for(var s=o>1?void 0:o?rs(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&os(e,t,s),s};let ns=0;const C=(P=class extends f{constructor(){super(),this.id="",this.name="",this._size="md",this.fullWidth=!1,this._variant="filled",this.inverted=!1,this.label="",this.ariaLabel="",this.ariaControls="",this.prefixIcon="",this.suffixIcon="",this.circle=!1,this.icon="",this.disabled=!1,this.form=null,this.value="",this.ariaDescription="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=P.VALID_SIZES.includes(e)?e:"md"}get variant(){return this._variant}set variant(e){this._variant=P.VALID_VARIANTS.includes(e)?e:"filled"}get type(){return this._type}set type(e){this._type=P.VALID_TYPES.includes(e)?e:"button"}get target(){return this._target}set target(e){this._target=P.VALID_TARGETS.includes(e)?e:"_self"}async getButtonElement(){var o,s;await this.updateComplete;const e=((o=this.shadowRoot)==null?void 0:o.querySelector("a.nys-button"))||null;if(e)return e;const t=((s=this.shadowRoot)==null?void 0:s.querySelector("button.nys-button"))||null;return t||null}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${ns++}`}_manageFormAction(e){typeof this.onClick=="function"&&this.onClick(e);const t=this._internals.form;if(t)switch(this.type){case"submit":t.requestSubmit();break;case"reset":t.reset();break}}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-button");e==null||e.classList.remove("active-focus"),this.dispatchEvent(new Event("nys-blur"))}_handleClick(e){if(this.disabled){e.preventDefault();return}this._manageFormAction(e),this.dispatchEvent(new Event("nys-click"))}_handleKeydown(e){if(e.code==="Space"||e.code==="Enter"||e.key===" "||e.key==="Enter"){if(this.disabled)return;if(e.preventDefault(),this.href){const t=this.renderRoot.querySelector("a.nys-button");t&&t.click()}else this._handleClick(e)}}focus(e){const t=this.renderRoot.querySelector(this.href?"a.nys-button":"button.nys-button");t?t.focus(e):super.focus(e)}render(){return c`
1320
+ ${this.href?c`
1321
1321
  <div class="nys-button__linkwrapper">
1322
1322
  <a
1323
1323
  class="nys-button"
@@ -1337,14 +1337,14 @@
1337
1337
  role="button"
1338
1338
  tabindex="${this.disabled?-1:0}"
1339
1339
  >
1340
- ${this.prefixIcon&&this.variant!=="text"?l`<slot name="prefix-icon">
1340
+ ${this.prefixIcon&&this.variant!=="text"?c`<slot name="prefix-icon">
1341
1341
  <nys-icon size="16" name=${this.prefixIcon}></nys-icon>
1342
1342
  </slot>`:""}
1343
- ${this.label&&!this.circle?l`<div class="nys-button__text">${this.label}</div>`:""}
1344
- ${this.suffixIcon&&this.variant!=="text"?l`<slot name="suffix-icon">
1343
+ ${this.label&&!this.circle?c`<div class="nys-button__text">${this.label}</div>`:""}
1344
+ ${this.suffixIcon&&this.variant!=="text"?c`<slot name="suffix-icon">
1345
1345
  <nys-icon size="16" name=${this.suffixIcon}></nys-icon>
1346
1346
  </slot>`:""}
1347
- ${this.circle&&this.icon?l`<slot name="circle-icon"
1347
+ ${this.circle&&this.icon?c`<slot name="circle-icon"
1348
1348
  ><nys-icon
1349
1349
  size=${this.size==="sm"?"24":this.size==="lg"?"40":"32"}
1350
1350
  name=${this.icon}
@@ -1352,7 +1352,7 @@
1352
1352
  ></slot>`:""}
1353
1353
  </a>
1354
1354
  </div>
1355
- `:l`
1355
+ `:c`
1356
1356
  <button
1357
1357
  class="nys-button"
1358
1358
  id=${u(this.id)}
@@ -1371,14 +1371,14 @@
1371
1371
  @keydown="${this._handleKeydown}"
1372
1372
  role="button"
1373
1373
  >
1374
- ${this.prefixIcon&&this.variant!=="text"?l`<slot name="prefix-icon">
1374
+ ${this.prefixIcon&&this.variant!=="text"?c`<slot name="prefix-icon">
1375
1375
  <nys-icon size="16" name=${this.prefixIcon}></nys-icon>
1376
1376
  </slot>`:""}
1377
- ${this.label&&!this.circle?l`<div class="nys-button__text">${this.label}</div>`:""}
1378
- ${this.suffixIcon&&this.variant!=="text"?l`<slot name="suffix-icon">
1377
+ ${this.label&&!this.circle?c`<div class="nys-button__text">${this.label}</div>`:""}
1378
+ ${this.suffixIcon&&this.variant!=="text"?c`<slot name="suffix-icon">
1379
1379
  <nys-icon size="16" name=${this.suffixIcon}></nys-icon>
1380
1380
  </slot>`:""}
1381
- ${this.circle&&this.icon?l`<slot name="circle-icon">
1381
+ ${this.circle&&this.icon?c`<slot name="circle-icon">
1382
1382
  <nys-icon
1383
1383
  size=${this.size==="sm"?"24":this.size==="lg"?"40":"32"}
1384
1384
  name=${this.icon}
@@ -1386,7 +1386,7 @@
1386
1386
  </slot>`:""}
1387
1387
  </button>
1388
1388
  `}
1389
- `}},V.VALID_SIZES=["sm","md","lg"],V.VALID_VARIANTS=["filled","outline","ghost","text"],V.VALID_TYPES=["submit","reset","button"],V.VALID_TARGETS=["_self","_blank","_parent","_top","framename"],V.styles=ss,V.formAssociated=!0,V);w([i({type:String})],_.prototype,"id",2),w([i({type:String,reflect:!0})],_.prototype,"name",2),w([i({reflect:!0})],_.prototype,"size",1),w([i({type:Boolean,reflect:!0})],_.prototype,"fullWidth",2),w([i({reflect:!0})],_.prototype,"variant",1),w([i({type:Boolean,reflect:!0})],_.prototype,"inverted",2),w([i({type:String})],_.prototype,"label",2),w([i({type:String})],_.prototype,"ariaLabel",2),w([i({type:String})],_.prototype,"ariaControls",2),w([i({type:String})],_.prototype,"prefixIcon",2),w([i({type:String})],_.prototype,"suffixIcon",2),w([i({type:Boolean,reflect:!0})],_.prototype,"circle",2),w([i({type:String})],_.prototype,"icon",2),w([i({type:Boolean,reflect:!0})],_.prototype,"disabled",2),w([i({type:String,reflect:!0})],_.prototype,"form",2),w([i({type:String})],_.prototype,"value",2),w([i({type:String})],_.prototype,"ariaDescription",2),w([i({reflect:!0})],_.prototype,"type",1),w([i({type:Function})],_.prototype,"onClick",2),w([i({type:String})],_.prototype,"href",2),w([i({reflect:!0})],_.prototype,"target",1);let t1=_;customElements.get("nys-button")||customElements.define("nys-button",t1);const is=g`
1389
+ `}},P.VALID_SIZES=["sm","md","lg"],P.VALID_VARIANTS=["filled","outline","ghost","text"],P.VALID_TYPES=["submit","reset","button"],P.VALID_TARGETS=["_self","_blank","_parent","_top","framename"],P.styles=ss,P.formAssociated=!0,P);w([i({type:String})],C.prototype,"id",2),w([i({type:String,reflect:!0})],C.prototype,"name",2),w([i({reflect:!0})],C.prototype,"size",1),w([i({type:Boolean,reflect:!0})],C.prototype,"fullWidth",2),w([i({reflect:!0})],C.prototype,"variant",1),w([i({type:Boolean,reflect:!0})],C.prototype,"inverted",2),w([i({type:String})],C.prototype,"label",2),w([i({type:String})],C.prototype,"ariaLabel",2),w([i({type:String})],C.prototype,"ariaControls",2),w([i({type:String})],C.prototype,"prefixIcon",2),w([i({type:String})],C.prototype,"suffixIcon",2),w([i({type:Boolean,reflect:!0})],C.prototype,"circle",2),w([i({type:String})],C.prototype,"icon",2),w([i({type:Boolean,reflect:!0})],C.prototype,"disabled",2),w([i({type:String,reflect:!0})],C.prototype,"form",2),w([i({type:String})],C.prototype,"value",2),w([i({type:String})],C.prototype,"ariaDescription",2),w([i({reflect:!0})],C.prototype,"type",1),w([i({type:Function})],C.prototype,"onClick",2),w([i({type:String})],C.prototype,"href",2),w([i({reflect:!0})],C.prototype,"target",1);let t1=C;customElements.get("nys-button")||customElements.define("nys-button",t1);const is=g`
1390
1390
  :host {
1391
1391
  /* Anything that can be overridden should be defined here */
1392
1392
 
@@ -1465,14 +1465,14 @@
1465
1465
  .nys-badge__prefix {
1466
1466
  font-weight: var(--_nys-badge-prefix-font-weight);
1467
1467
  }
1468
- `;var as=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,ge=(a,e,t,o)=>{for(var s=o>1?void 0:o?ls(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&as(e,t,s),s};const se=(N=class extends f{constructor(){super(...arguments),this.id="",this.name="",this._size="md",this._intent="neutral",this.prefixLabel="",this.label="",this._prefixIcon="",this._suffixIcon=""}get size(){return this._size}set size(e){this._size=N.VALID_SIZES.includes(e)?e:"md"}get intent(){return this._intent}set intent(e){this._intent=N.VALID_INTENT.includes(e)?e:"neutral"}get prefixIcon(){return this._prefixIcon}set prefixIcon(e){e===""||e===null?this._prefixIcon=!0:e==="false"||e===!1?this._prefixIcon="":this._prefixIcon=e}get suffixIcon(){return this._suffixIcon}set suffixIcon(e){e===""||e===null?this._suffixIcon=!0:e==="false"||e===!1?this._suffixIcon="":this._suffixIcon=e}connectedCallback(){super.connectedCallback();const e=this.getAttribute("prefixicon");e!==null&&this.prefixIcon===""&&(this.prefixIcon=e);const t=this.getAttribute("suffixicon");t!==null&&this.suffixIcon===""&&(this.suffixIcon=t)}resolveIcon(e){return e===!0?N.DEFAULT_ICONS[this.intent]??"info":typeof e=="string"&&e.trim()!==""?e:null}render(){const e=this.resolveIcon(this.prefixIcon),t=this.resolveIcon(this.suffixIcon);return l`
1468
+ `;var as=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,ge=(a,e,t,o)=>{for(var s=o>1?void 0:o?ls(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&as(e,t,s),s};const se=(j=class extends f{constructor(){super(...arguments),this.id="",this.name="",this._size="md",this._intent="neutral",this.prefixLabel="",this.label="",this._prefixIcon="",this._suffixIcon=""}get size(){return this._size}set size(e){this._size=j.VALID_SIZES.includes(e)?e:"md"}get intent(){return this._intent}set intent(e){this._intent=j.VALID_INTENT.includes(e)?e:"neutral"}get prefixIcon(){return this._prefixIcon}set prefixIcon(e){e===""||e===null?this._prefixIcon=!0:e==="false"||e===!1?this._prefixIcon="":this._prefixIcon=e}get suffixIcon(){return this._suffixIcon}set suffixIcon(e){e===""||e===null?this._suffixIcon=!0:e==="false"||e===!1?this._suffixIcon="":this._suffixIcon=e}connectedCallback(){super.connectedCallback();const e=this.getAttribute("prefixicon");e!==null&&this.prefixIcon===""&&(this.prefixIcon=e);const t=this.getAttribute("suffixicon");t!==null&&this.suffixIcon===""&&(this.suffixIcon=t)}resolveIcon(e){return e===!0?j.DEFAULT_ICONS[this.intent]??"info":typeof e=="string"&&e.trim()!==""?e:null}render(){const e=this.resolveIcon(this.prefixIcon),t=this.resolveIcon(this.suffixIcon);return c`
1469
1469
  <div class="nys-badge">
1470
- ${e?l`<nys-icon size="16" name=${e}></nys-icon>`:""}
1471
- ${this.prefixLabel?l`<div class="nys-badge__prefix">${this.prefixLabel}</div>`:""}
1470
+ ${e?c`<nys-icon size="16" name=${e}></nys-icon>`:""}
1471
+ ${this.prefixLabel?c`<div class="nys-badge__prefix">${this.prefixLabel}</div>`:""}
1472
1472
  <div class="nys-badge__label">${this.label}</div>
1473
- ${t?l`<nys-icon size="16" name=${t}></nys-icon>`:""}
1473
+ ${t?c`<nys-icon size="16" name=${t}></nys-icon>`:""}
1474
1474
  </div>
1475
- `}},N.VALID_SIZES=["sm","md"],N.VALID_INTENT=["neutral","error","success","warning"],N.styles=is,N.DEFAULT_ICONS={neutral:"info",error:"emergency_home",success:"check_circle",warning:"warning"},N);ge([i({type:String})],se.prototype,"id",2),ge([i({type:String,reflect:!0})],se.prototype,"name",2),ge([i({reflect:!0})],se.prototype,"size",1),ge([i({reflect:!0})],se.prototype,"intent",1),ge([i({type:String})],se.prototype,"prefixLabel",2),ge([i({type:String})],se.prototype,"label",2),ge([i({type:String,attribute:"prefixicon"})],se.prototype,"prefixIcon",1),ge([i({type:String,attribute:"suffixicon"})],se.prototype,"suffixIcon",1);let s1=se;customElements.get("nys-badge")||customElements.define("nys-badge",s1);const o1=g`
1475
+ `}},j.VALID_SIZES=["sm","md"],j.VALID_INTENT=["neutral","error","success","warning"],j.styles=is,j.DEFAULT_ICONS={neutral:"info",error:"emergency_home",success:"check_circle",warning:"warning"},j);ge([i({type:String})],se.prototype,"id",2),ge([i({type:String,reflect:!0})],se.prototype,"name",2),ge([i({reflect:!0})],se.prototype,"size",1),ge([i({reflect:!0})],se.prototype,"intent",1),ge([i({type:String})],se.prototype,"prefixLabel",2),ge([i({type:String})],se.prototype,"label",2),ge([i({type:String,attribute:"prefixicon"})],se.prototype,"prefixIcon",1),ge([i({type:String,attribute:"suffixicon"})],se.prototype,"suffixIcon",1);let s1=se;customElements.get("nys-badge")||customElements.define("nys-badge",s1);const o1=g`
1476
1476
  :host {
1477
1477
  /* Anything that can be overridden should be defined here */
1478
1478
 
@@ -1854,7 +1854,7 @@
1854
1854
  overflow: hidden;
1855
1855
  border: 0;
1856
1856
  }
1857
- `;var cs=Object.defineProperty,ds=Object.getOwnPropertyDescriptor,q=(a,e,t,o)=>{for(var s=o>1?void 0:o?ds(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&cs(e,t,s),s};let hs=0;const B=(ae=class extends f{constructor(){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._slottedDescriptionText="",this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=ae.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${hs++}`),this.addEventListener("nys-change",this._handleCheckboxChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("nys-change",this._handleCheckboxChange),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setGroupExist(),this._updateCheckboxSize(),this._updateCheckboxTile(),this._updateCheckboxShowError(),this._getSlotDescriptionForAria()}updated(e){e.has("required")&&this.required&&this._setupCheckboxRequired(),e.has("size")&&this._updateCheckboxSize(),e.has("tile")&&this._updateCheckboxTile(),e.has("showError")&&this._updateCheckboxShowError(),e.has("form")&&this._updateCheckboxForm()}_setGroupExist(){this.querySelectorAll("nys-checkbox").forEach(t=>{t.groupExist=!0})}async _setupCheckboxRequired(){const e=this.querySelector("nys-checkbox"),t=this.errorMessage||"This field is required",o=e?await e.getInputElement():null;this._internals.setValidity({valueMissing:!0},t,o||this)}async _manageRequire(){if(this.required){const e=this.errorMessage||"Please select at least one option.",t=this.querySelector("nys-checkbox"),o=t?await t.getInputElement().catch(()=>null):null,s=this.querySelectorAll("nys-checkbox");Array.from(s).some(n=>n.checked)?(this._internals.setValidity({}),this.showError=!1):(this._internals.setValidity({valueMissing:!0},e,o||this),this.showError=!0)}}_updateCheckboxSize(){this.querySelectorAll("nys-checkbox").forEach(t=>{t.setAttribute("size",this.size)})}_updateCheckboxTile(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.tile?t.toggleAttribute("tile",!0):t.removeAttribute("tile")})}_updateCheckboxShowError(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.showError?t.setAttribute("showError",""):t.removeAttribute("showError")})}_updateCheckboxForm(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.showError&&this.form!==null?t.setAttribute("form",this.form):t.removeAttribute("form")})}_getSlotDescriptionForAria(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="description"]'),t=(e==null?void 0:e.assignedNodes({flatten:!0}))||[];this._slottedDescriptionText=t.map(s=>{var r;return(r=s.textContent)==null?void 0:r.trim()}).filter(Boolean).join(", ")}async _handleInvalid(e){e.preventDefault(),this.showError=!0,this._manageRequire();const t=this.querySelector("nys-checkbox"),o=t?await t.getInputElement():null;if(o){const s=this._internals.form;s?Array.from(s.elements).find(d=>{if(d.tagName.toLowerCase()==="nys-checkboxgroup"){if(Array.from(this.querySelectorAll("nys-checkbox")).filter(p=>p.checked).length===0)return d}else return typeof d.checkValidity=="function"&&!d.checkValidity()})===this&&o.focus():o.focus()}}_handleCheckboxChange(e){const t=e,{name:o}=t.detail,r=Array.from(this.querySelectorAll("nys-checkbox")).filter(n=>n.checked).map(n=>n.value);this.name=o,this._internals.setFormValue(r.join(", ")),this._manageRequire()}render(){return l`
1857
+ `;var cs=Object.defineProperty,ds=Object.getOwnPropertyDescriptor,U=(a,e,t,o)=>{for(var s=o>1?void 0:o?ds(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&cs(e,t,s),s};let hs=0;const V=(ae=class extends f{constructor(){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.invert=!1,this.form=null,this._slottedDescriptionText="",this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=ae.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${hs++}`),this.addEventListener("nys-change",this._handleCheckboxChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("nys-change",this._handleCheckboxChange),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setGroupExist(),this._updateCheckboxSize(),this._updateCheckboxTile(),this._updateCheckboxShowError(),this._getSlotDescriptionForAria()}updated(e){e.has("required")&&this.required&&this._setupCheckboxRequired(),e.has("size")&&this._updateCheckboxSize(),e.has("tile")&&this._updateCheckboxTile(),e.has("invert")&&this._updateCheckboxInvert(),e.has("showError")&&this._updateCheckboxShowError(),e.has("form")&&this._updateCheckboxForm()}_setGroupExist(){this.querySelectorAll("nys-checkbox").forEach(t=>{t.groupExist=!0})}async _setupCheckboxRequired(){const e=this.querySelector("nys-checkbox"),t=this.errorMessage||"This field is required",o=e?await e.getInputElement():null;this._internals.setValidity({valueMissing:!0},t,o||this)}async _manageRequire(){if(this.required){const e=this.errorMessage||"Please select at least one option.",t=this.querySelector("nys-checkbox"),o=t?await t.getInputElement().catch(()=>null):null,s=this.querySelectorAll("nys-checkbox");Array.from(s).some(n=>n.checked)?(this._internals.setValidity({}),this.showError=!1):(this._internals.setValidity({valueMissing:!0},e,o||this),this.showError=!0)}}_updateCheckboxSize(){this.querySelectorAll("nys-checkbox").forEach(t=>{t.setAttribute("size",this.size)})}_updateCheckboxTile(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.tile?t.toggleAttribute("tile",!0):t.removeAttribute("tile")})}_updateCheckboxInvert(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.invert?t.toggleAttribute("invert",!0):t.removeAttribute("invert")})}_updateCheckboxShowError(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.showError?t.setAttribute("showError",""):t.removeAttribute("showError")})}_updateCheckboxForm(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.showError&&this.form!==null?t.setAttribute("form",this.form):t.removeAttribute("form")})}_getSlotDescriptionForAria(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="description"]'),t=(e==null?void 0:e.assignedNodes({flatten:!0}))||[];this._slottedDescriptionText=t.map(s=>{var r;return(r=s.textContent)==null?void 0:r.trim()}).filter(Boolean).join(", ")}async _handleInvalid(e){e.preventDefault(),this.showError=!0,this._manageRequire();const t=this.querySelector("nys-checkbox"),o=t?await t.getInputElement():null;if(o){const s=this._internals.form;s?Array.from(s.elements).find(d=>{if(d.tagName.toLowerCase()==="nys-checkboxgroup"){if(Array.from(this.querySelectorAll("nys-checkbox")).filter(p=>p.checked).length===0)return d}else return typeof d.checkValidity=="function"&&!d.checkValidity()})===this&&o.focus():o.focus()}}_handleCheckboxChange(e){const t=e,{name:o}=t.detail,r=Array.from(this.querySelectorAll("nys-checkbox")).filter(n=>n.checked).map(n=>n.value);this.name=o,this._internals.setFormValue(r.join(", ")),this._manageRequire()}render(){return c`
1858
1858
  <div class="nys-checkboxgroup">
1859
1859
  <nys-label
1860
1860
  for=${this.id}
@@ -1862,6 +1862,7 @@
1862
1862
  description=${this.description}
1863
1863
  flag=${this.required?"required":this.optional?"optional":""}
1864
1864
  tooltip=${this._tooltip}
1865
+ ?invert=${this.invert}
1865
1866
  >
1866
1867
  <slot name="description" slot="description">${this.description}</slot>
1867
1868
  </nys-label>
@@ -1879,7 +1880,7 @@
1879
1880
  .showDivider=${!this.tile}
1880
1881
  ></nys-errormessage>
1881
1882
  </div>
1882
- `}},ae.VALID_SIZES=["sm","md"],ae.styles=o1,ae.formAssociated=!0,ae);q([i({type:String})],B.prototype,"id",2),q([i({type:String,reflect:!0})],B.prototype,"name",2),q([i({type:Boolean,reflect:!0})],B.prototype,"required",2),q([i({type:Boolean,reflect:!0})],B.prototype,"optional",2),q([i({type:Boolean,reflect:!0})],B.prototype,"showError",2),q([i({type:String})],B.prototype,"errorMessage",2),q([i({type:String})],B.prototype,"label",2),q([i({type:String})],B.prototype,"description",2),q([i({type:Boolean,reflect:!0})],B.prototype,"tile",2),q([i({type:String})],B.prototype,"_tooltip",2),q([i({type:String,reflect:!0})],B.prototype,"form",2),q([D()],B.prototype,"_slottedDescriptionText",2),q([i({reflect:!0})],B.prototype,"size",1);let r1=B;customElements.get("nys-checkboxgroup")||customElements.define("nys-checkboxgroup",r1);var ys=Object.defineProperty,us=Object.getOwnPropertyDescriptor,P=(a,e,t,o)=>{for(var s=o>1?void 0:o?us(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&ys(e,t,s),s};let ps=0;const A=(le=class extends f{constructor(){super(),this.checked=!1,this.disabled=!1,this.required=!1,this.label="",this.description="",this.id="",this.name="",this.value="",this.form=null,this.showError=!1,this.errorMessage="",this.groupExist=!1,this.tile=!1,this._size="md",this._manageLabelClick=()=>{var o,s;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("nys-label"),t=(s=this.shadowRoot)==null?void 0:s.querySelector("input");e&&t&&e.addEventListener("click",()=>t.click())},this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=le.VALID_SIZES.includes(e)?e:"md"}async getInputElement(){var e;return await this.updateComplete,((e=this.shadowRoot)==null?void 0:e.querySelector("input"))||null}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${ps++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire(),this._manageLabelClick()}formResetCallback(){this.checked=!1}_setValue(){this.groupExist||this._internals.setFormValue(this.checked?this.value:null)}_manageRequire(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("input"),t=this.errorMessage||"This field is required";e&&(this.required&&!this.checked?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):this._internals.setValidity({}))}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=e.validity;let o="";t.valueMissing&&(o="This field is required"),this._setValidityMessage(o)}checkValidity(){var t;if(this.required&&!this.checked)return!1;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this.showError=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(t){const s=this._internals.form;s?Array.from(s.elements).find(d=>typeof d.checkValidity=="function"&&!d.checkValidity())===this&&t.focus():t.focus()}}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{id:this.id,checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleChange(e){const{checked:t}=e.target;this.checked=t,this.groupExist||this._internals.setFormValue(this.checked?this.value:null),this._validate(),this._emitChangeEvent()}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}async _handleKeydown(e){e.code==="Space"&&(e.preventDefault(),this.disabled||(this.checked=!this.checked,this._internals.setFormValue(this.checked?this.value:null),await this.updateComplete,this._validate(),this._emitChangeEvent()))}render(){var e;return l`
1883
+ `}},ae.VALID_SIZES=["sm","md"],ae.styles=o1,ae.formAssociated=!0,ae);U([i({type:String})],V.prototype,"id",2),U([i({type:String,reflect:!0})],V.prototype,"name",2),U([i({type:Boolean,reflect:!0})],V.prototype,"required",2),U([i({type:Boolean,reflect:!0})],V.prototype,"optional",2),U([i({type:Boolean,reflect:!0})],V.prototype,"showError",2),U([i({type:String})],V.prototype,"errorMessage",2),U([i({type:String})],V.prototype,"label",2),U([i({type:String})],V.prototype,"description",2),U([i({type:Boolean,reflect:!0})],V.prototype,"tile",2),U([i({type:String})],V.prototype,"_tooltip",2),U([i({type:Boolean,reflect:!0})],V.prototype,"invert",2),U([i({type:String,reflect:!0})],V.prototype,"form",2),U([z()],V.prototype,"_slottedDescriptionText",2),U([i({reflect:!0})],V.prototype,"size",1);let r1=V;customElements.get("nys-checkboxgroup")||customElements.define("nys-checkboxgroup",r1);var ys=Object.defineProperty,us=Object.getOwnPropertyDescriptor,H=(a,e,t,o)=>{for(var s=o>1?void 0:o?us(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&ys(e,t,s),s};let ps=0;const A=(le=class extends f{constructor(){super(),this.checked=!1,this.disabled=!1,this.required=!1,this.label="",this.description="",this.id="",this.name="",this.value="",this.form=null,this.showError=!1,this.errorMessage="",this.groupExist=!1,this.tile=!1,this.invert=!1,this._size="md",this._manageLabelClick=()=>{var o,s;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("nys-label"),t=(s=this.shadowRoot)==null?void 0:s.querySelector("input");e&&t&&e.addEventListener("click",()=>t.click())},this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=le.VALID_SIZES.includes(e)?e:"md"}async getInputElement(){var e;return await this.updateComplete,((e=this.shadowRoot)==null?void 0:e.querySelector("input"))||null}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${ps++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire(),this._manageLabelClick()}formResetCallback(){this.checked=!1}_setValue(){this.groupExist||this._internals.setFormValue(this.checked?this.value:null)}_manageRequire(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("input"),t=this.errorMessage||"This field is required";e&&(this.required&&!this.checked?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):this._internals.setValidity({}))}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=e.validity;let o="";t.valueMissing&&(o="This field is required"),this._setValidityMessage(o)}checkValidity(){var t;if(this.required&&!this.checked)return!1;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this.showError=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(t){const s=this._internals.form;s?Array.from(s.elements).find(d=>typeof d.checkValidity=="function"&&!d.checkValidity())===this&&t.focus():t.focus()}}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{id:this.id,checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleChange(e){const{checked:t}=e.target;this.checked=t,this.groupExist||this._internals.setFormValue(this.checked?this.value:null),this._validate(),this._emitChangeEvent()}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}async _handleKeydown(e){e.code==="Space"&&(e.preventDefault(),this.disabled||(this.checked=!this.checked,this._internals.setFormValue(this.checked?this.value:null),await this.updateComplete,this._validate(),this._emitChangeEvent()))}render(){var e;return c`
1883
1884
  <label class="nys-checkbox">
1884
1885
  <div class="nys-checkbox__checkboxwrapper">
1885
1886
  <input
@@ -1902,19 +1903,20 @@
1902
1903
  @keydown="${this._handleKeydown}"
1903
1904
  aria-label="${this.label}"
1904
1905
  />
1905
- ${this.checked?l`<nys-icon
1906
+ ${this.checked?c`<nys-icon
1906
1907
  for="${this.id}"
1907
1908
  name="check"
1908
1909
  size="${this.size==="md"?"4xl":this.size==="sm"?"2xl":"xl"}"
1909
1910
  class="nys-checkbox__icon"
1910
1911
  ></nys-icon>`:""}
1911
1912
  </div>
1912
- ${this.label&&l`
1913
+ ${this.label&&c`
1913
1914
  <nys-label
1914
1915
  for=${this.id}
1915
1916
  label=${this.label}
1916
1917
  description=${u(this.description??void 0)}
1917
1918
  flag=${u(this.required?"required":void 0)}
1919
+ ?invert=${this.invert}
1918
1920
  >
1919
1921
  <slot name="description" slot="description"
1920
1922
  >${this.description}</slot
@@ -1922,13 +1924,13 @@
1922
1924
  </nys-label>
1923
1925
  `}
1924
1926
  </label>
1925
- ${((e=this.parentElement)==null?void 0:e.tagName.toLowerCase())!=="nys-checkboxgroup"?l`<nys-errormessage
1927
+ ${((e=this.parentElement)==null?void 0:e.tagName.toLowerCase())!=="nys-checkboxgroup"?c`<nys-errormessage
1926
1928
  id="single-error-message"
1927
1929
  ?showError=${this.showError}
1928
1930
  errorMessage=${this._internals.validationMessage||this.errorMessage}
1929
1931
  .showDivider=${!this.tile}
1930
1932
  ></nys-errormessage>`:""}
1931
- `}},le.VALID_SIZES=["sm","md"],le.styles=o1,le.formAssociated=!0,le);P([i({type:Boolean,reflect:!0})],A.prototype,"checked",2),P([i({type:Boolean,reflect:!0})],A.prototype,"disabled",2),P([i({type:Boolean,reflect:!0})],A.prototype,"required",2),P([i({type:String})],A.prototype,"label",2),P([i({type:String})],A.prototype,"description",2),P([i({type:String})],A.prototype,"id",2),P([i({type:String,reflect:!0})],A.prototype,"name",2),P([i({type:String})],A.prototype,"value",2),P([i({type:String,reflect:!0})],A.prototype,"form",2),P([i({type:Boolean,reflect:!0})],A.prototype,"showError",2),P([i({type:String})],A.prototype,"errorMessage",2),P([i({type:Boolean})],A.prototype,"groupExist",2),P([i({type:Boolean,reflect:!0})],A.prototype,"tile",2),P([i({reflect:!0})],A.prototype,"size",1);let n1=A;customElements.get("nys-checkbox")||customElements.define("nys-checkbox",n1);const vs=g`
1933
+ `}},le.VALID_SIZES=["sm","md"],le.styles=o1,le.formAssociated=!0,le);H([i({type:Boolean,reflect:!0})],A.prototype,"checked",2),H([i({type:Boolean,reflect:!0})],A.prototype,"disabled",2),H([i({type:Boolean,reflect:!0})],A.prototype,"required",2),H([i({type:String})],A.prototype,"label",2),H([i({type:String})],A.prototype,"description",2),H([i({type:String})],A.prototype,"id",2),H([i({type:String,reflect:!0})],A.prototype,"name",2),H([i({type:String})],A.prototype,"value",2),H([i({type:String,reflect:!0})],A.prototype,"form",2),H([i({type:Boolean,reflect:!0})],A.prototype,"showError",2),H([i({type:String})],A.prototype,"errorMessage",2),H([i({type:Boolean})],A.prototype,"groupExist",2),H([i({type:Boolean,reflect:!0})],A.prototype,"tile",2),H([i({type:Boolean,reflect:!0})],A.prototype,"invert",2),H([i({reflect:!0})],A.prototype,"size",1);let n1=A;customElements.get("nys-checkbox")||customElements.define("nys-checkbox",n1);const vs=g`
1932
1934
  :host {
1933
1935
  /* Anything that can be overridden should be defined here */
1934
1936
 
@@ -1950,7 +1952,7 @@
1950
1952
  margin: 0;
1951
1953
  border: none;
1952
1954
  }
1953
- `;var fs=Object.defineProperty,gs=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&fs(e,t,s),s};const $t=class $t extends f{constructor(){super(),this.inverted=!1}render(){return l`<hr class="nys-divider" />`}};$t.styles=vs;let Ye=$t;gs([i({type:Boolean,reflect:!0})],Ye.prototype,"inverted"),customElements.get("nys-divider")||customElements.define("nys-divider",Ye);const bs=g`
1955
+ `;var fs=Object.defineProperty,gs=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&fs(e,t,s),s};const $t=class $t extends f{constructor(){super(),this.inverted=!1}render(){return c`<hr class="nys-divider" />`}};$t.styles=vs;let Ye=$t;gs([i({type:Boolean,reflect:!0})],Ye.prototype,"inverted"),customElements.get("nys-divider")||customElements.define("nys-divider",Ye);const bs=g`
1954
1956
  :host {
1955
1957
  --_nys-errormessage-font-family: var(
1956
1958
  --nys-font-family-ui,
@@ -1999,7 +2001,7 @@
1999
2001
  border-top: var(--_nys-errormessage-width--divider) solid
2000
2002
  var(--_nys-errormessage-color);
2001
2003
  }
2002
- `;var _s=Object.defineProperty,_t=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&_s(e,t,s),s};const at=class at extends f{constructor(){super(),this.showError=!1,this.errorMessage="",this.showDivider=!1,this._internals=this.attachInternals()}render(){return l`${this.showError?l`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
2004
+ `;var _s=Object.defineProperty,_t=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&_s(e,t,s),s};const at=class at extends f{constructor(){super(),this.showError=!1,this.errorMessage="",this.showDivider=!1,this._internals=this.attachInternals()}render(){return c`${this.showError?c`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
2003
2005
  <nys-icon name="error" size="2xl"></nys-icon>
2004
2006
  ${this._internals.validationMessage||this.errorMessage}
2005
2007
  </div>`:""}`}};at.styles=bs,at.formAssociated=!0;let Ee=at;_t([i({type:Boolean})],Ee.prototype,"showError"),_t([i({type:String})],Ee.prototype,"errorMessage"),_t([i({type:Boolean,reflect:!0})],Ee.prototype,"showDivider"),customElements.get("nys-errormessage")||customElements.define("nys-errormessage",Ee);async function Cs(a,e){if(!e||e.trim()==="")return!0;const t=e.toLowerCase().split(",").map(r=>r.trim()),o=a.name.toLowerCase(),s=o.includes(".")?o.split(".").pop():"";for(const r of t)if(r.startsWith(".")&&r.slice(1)===s||r.endsWith("/*")&&a.type.startsWith(r.slice(0,-1))||a.type===r)return!0;return!1}const ms=g`
@@ -2280,7 +2282,7 @@
2280
2282
  transform: rotate(360deg);
2281
2283
  }
2282
2284
  }
2283
- `;var ws=Object.defineProperty,nt=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&ws(e,t,s),s};const St=class St extends f{constructor(){super(...arguments),this.filename="",this.status="pending",this.progress=0,this.errorMessage=""}_handleRemove(){this.dispatchEvent(new CustomEvent("nys-fileRemove",{detail:{filename:this.filename},bubbles:!0,composed:!0}))}splitFilename(e){const t=e.lastIndexOf("."),o=t!==-1?e.slice(t):"",s=t!==-1?e.slice(0,t):e,r=s.slice(0,s.length-3),n=s.slice(-3);return{startPart:r,endPart:n,extension:o}}render(){const{startPart:e,endPart:t,extension:o}=this.splitFilename(this.filename);return l`
2285
+ `;var ws=Object.defineProperty,nt=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&ws(e,t,s),s};const St=class St extends f{constructor(){super(...arguments),this.filename="",this.status="pending",this.progress=0,this.errorMessage=""}_handleRemove(){this.dispatchEvent(new CustomEvent("nys-fileRemove",{detail:{filename:this.filename},bubbles:!0,composed:!0}))}splitFilename(e){const t=e.lastIndexOf("."),o=t!==-1?e.slice(t):"",s=t!==-1?e.slice(0,t):e,r=s.slice(0,s.length-3),n=s.slice(-3);return{startPart:r,endPart:n,extension:o}}render(){const{startPart:e,endPart:t,extension:o}=this.splitFilename(this.filename);return c`
2284
2286
  <div
2285
2287
  class="file-item ${this.status}"
2286
2288
  aria-busy=${this.status==="processing"?"true":"false"}
@@ -2299,7 +2301,7 @@
2299
2301
  >${t}${o}</span
2300
2302
  >
2301
2303
  </div>
2302
- ${this.errorMessage?l`<p
2304
+ ${this.errorMessage?c`<p
2303
2305
  class="file-item__error"
2304
2306
  role="alert"
2305
2307
  aria-live="assertive"
@@ -2320,7 +2322,7 @@
2320
2322
  ariaLabel="Remove file: ${this.filename}"
2321
2323
  ></nys-button>
2322
2324
  </div>
2323
- ${this.status==="processing"?l`<div
2325
+ ${this.status==="processing"?c`<div
2324
2326
  class="file-item__progress-container"
2325
2327
  role="progressbar"
2326
2328
  aria-valuemin="0"
@@ -2331,7 +2333,7 @@
2331
2333
  <progress value=${this.progress} max="100"></progress>
2332
2334
  </div>`:null}
2333
2335
  </div>
2334
- `}};St.styles=xs;let De=St;nt([i({type:String})],De.prototype,"filename"),nt([i({type:String})],De.prototype,"status"),nt([i({type:Number})],De.prototype,"progress"),nt([i({type:String})],De.prototype,"errorMessage"),customElements.define("nys-fileitem",De);var ks=Object.defineProperty,M=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&ks(e,t,s),s};let $s=0;const lt=class lt extends f{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.multiple=!1,this.form=null,this._tooltip="",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()}get _isDropDisabled(){return this.disabled||!this.multiple&&this._selectedFiles.length>0}get _buttonAriaLabel(){return this._selectedFiles.length===0?this.multiple?"Choose files: ":"Choose file: ":this.multiple?"Change files: ":"Change file: "}get _buttonAriaDescription(){if(this._selectedFiles.length===0)return`${this.label+" "+this.description}`;const e=this._selectedFiles.some(s=>s.status==="error");let t="";if(this._selectedFiles.length===1)t=`You have selected ${this._selectedFiles[0].file.name}.`;else{const s=this._selectedFiles.map(r=>r.file.name).join(", ");t=`You have selected ${this._selectedFiles.length} files: ${s}`}return`${t}${e?" Error: One or more files are not valid file types.":""}`}get _innerNysButton(){var o;const e=this.renderRoot.querySelector('[name="file-btn"]');return(o=e==null?void 0:e.shadowRoot)==null?void 0:o.querySelector("button")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-fileinput-${Date.now()}-${$s++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}_setValue(){var e;if(this.multiple){const t=this._selectedFiles.map(o=>o.file);if(t.length>0){const o=new FormData;t.forEach(s=>{o.append(this.name,s)}),this._internals.setFormValue(o)}else this._internals.setFormValue(null)}else{const t=((e=this._selectedFiles[0])==null?void 0:e.file)||null;this._internals.setFormValue(t)}this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=this.errorMessage||"Please upload a file.";this.required&&this._selectedFiles.length==0?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({},"",e))}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");t&&(this.showError=e===(this.errorMessage||"Please upload a file."),(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){const e=this._selectedFiles.some(s=>s.status==="error"),t=this.required&&this._selectedFiles.length===0;let o="";t?o=this.errorMessage||"Please upload a file.":e&&(o="One or more files are invalid."),this._setValidityMessage(o)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){e.preventDefault(),this._validate();const t=this._innerNysButton;if(t){const o=this._internals.form;o?Array.from(o.elements).find(n=>typeof n.checkValidity=="function"&&!n.checkValidity())===this&&(t.focus(),t.classList.add("active-focus")):(t.focus(),t.classList.add("active-focus"))}}async _saveSelectedFiles(e){if(this._selectedFiles.some(s=>s.file.name==e.name)||!this.multiple&&this._selectedFiles.length>=1)return;const o={file:e,progress:0,status:"pending"};this._selectedFiles.push(o),await this._processFile(o),this._setValue(),this._validate()}async _processFile(e){e.status="processing";try{if(!await Cs(e.file,this.accept)){e.status="error",e.errorMsg="File type is invalid.",this.requestUpdate();return}const o=new FileReader;o.onprogress=s=>{if(s.lengthComputable){const r=Math.round(s.loaded*100/s.total);e.progress=r,this.requestUpdate()}},o.onload=()=>{e.progress=100,e.status="done",this.requestUpdate()},o.onerror=()=>{e.status="error",e.errorMsg="Failed to load file.",this.requestUpdate()},o.readAsArrayBuffer(e.file)}catch{e.status="error",e.errorMsg="Error validating file.",this.requestUpdate()}}_dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{id:this.id,files:this._selectedFiles},bubbles:!0,composed:!0}))}_openFileDialog(){const e=this.renderRoot.querySelector(".hidden-file-input");e==null||e.click()}_handlePostFileSelectionFocus(){if(this.multiple){const e=this._innerNysButton;e&&e.focus()}else this._focusFirstFileItemIfSingleMode()}async _focusFirstFileItemIfSingleMode(){var e;if(!this.multiple){await this.updateComplete;const t=this.renderRoot.querySelector("nys-fileitem"),o=(e=t==null?void 0:t.shadowRoot)==null?void 0:e.querySelector(".file-item");o&&(o.setAttribute("tabindex","-1"),o.focus())}}_handleFileChange(e){const o=e.target.files;(o?Array.from(o):[]).map(r=>{this._saveSelectedFiles(r)}),this.requestUpdate(),this._dispatchChangeEvent(),this._handlePostFileSelectionFocus()}_handleFileRemove(e){var o;const t=e.detail.filename;if(this._selectedFiles=this._selectedFiles.filter(s=>s.file.name!==t),this._selectedFiles.length===0){const s=(o=this.shadowRoot)==null?void 0:o.querySelector("input");s&&(s.value="")}this._setValue(),this._validate(),this.requestUpdate(),this._dispatchChangeEvent()}_onDragOver(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._dragActive||(this._dragActive=!0,this.requestUpdate()))}_onDragLeave(e){this.disabled||(e.stopPropagation(),e.preventDefault(),e.currentTarget===e.target&&(this._dragActive=!1,this.requestUpdate()))}_onDrop(e){var s;if(this.disabled)return;e.preventDefault(),this._dragActive=!1,this.requestUpdate();const t=(s=e.dataTransfer)==null?void 0:s.files;if(!t)return;const o=Array.from(t);this.multiple?o.forEach(r=>{this._saveSelectedFiles(r)}):this._saveSelectedFiles(o[0]),this.requestUpdate(),this._dispatchChangeEvent()}render(){return l`<div
2336
+ `}};St.styles=xs;let Ae=St;nt([i({type:String})],Ae.prototype,"filename"),nt([i({type:String})],Ae.prototype,"status"),nt([i({type:Number})],Ae.prototype,"progress"),nt([i({type:String})],Ae.prototype,"errorMessage"),customElements.define("nys-fileitem",Ae);var ks=Object.defineProperty,D=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&ks(e,t,s),s};let $s=0;const lt=class lt extends f{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.multiple=!1,this.form=null,this._tooltip="",this.accept="",this.disabled=!1,this.required=!1,this.optional=!1,this.showError=!1,this.errorMessage="",this.dropzone=!1,this.width="full",this.invert=!1,this._selectedFiles=[],this._dragActive=!1,this._internals=this.attachInternals()}get _isDropDisabled(){return this.disabled||!this.multiple&&this._selectedFiles.length>0}get _buttonAriaLabel(){return this._selectedFiles.length===0?this.multiple?"Choose files: ":"Choose file: ":this.multiple?"Change files: ":"Change file: "}get _buttonAriaDescription(){if(this._selectedFiles.length===0)return`${this.label+" "+this.description}`;const e=this._selectedFiles.some(s=>s.status==="error");let t="";if(this._selectedFiles.length===1)t=`You have selected ${this._selectedFiles[0].file.name}.`;else{const s=this._selectedFiles.map(r=>r.file.name).join(", ");t=`You have selected ${this._selectedFiles.length} files: ${s}`}return`${t}${e?" Error: One or more files are not valid file types.":""}`}get _innerNysButton(){var o;const e=this.renderRoot.querySelector('[name="file-btn"]');return(o=e==null?void 0:e.shadowRoot)==null?void 0:o.querySelector("button")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-fileinput-${Date.now()}-${$s++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}_setValue(){var e;if(this.multiple){const t=this._selectedFiles.map(o=>o.file);if(t.length>0){const o=new FormData;t.forEach(s=>{o.append(this.name,s)}),this._internals.setFormValue(o)}else this._internals.setFormValue(null)}else{const t=((e=this._selectedFiles[0])==null?void 0:e.file)||null;this._internals.setFormValue(t)}this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=this.errorMessage||"Please upload a file.";this.required&&this._selectedFiles.length==0?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({},"",e))}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");t&&(this.showError=e===(this.errorMessage||"Please upload a file."),(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){const e=this._selectedFiles.some(s=>s.status==="error"),t=this.required&&this._selectedFiles.length===0;let o="";t?o=this.errorMessage||"Please upload a file.":e&&(o="One or more files are invalid."),this._setValidityMessage(o)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){e.preventDefault(),this._validate();const t=this._innerNysButton;if(t){const o=this._internals.form;o?Array.from(o.elements).find(n=>typeof n.checkValidity=="function"&&!n.checkValidity())===this&&(t.focus(),t.classList.add("active-focus")):(t.focus(),t.classList.add("active-focus"))}}async _saveSelectedFiles(e){if(this._selectedFiles.some(s=>s.file.name==e.name)||!this.multiple&&this._selectedFiles.length>=1)return;const o={file:e,progress:0,status:"pending"};this._selectedFiles.push(o),await this._processFile(o),this._setValue(),this._validate()}async _processFile(e){e.status="processing";try{if(!await Cs(e.file,this.accept)){e.status="error",e.errorMsg="File type is invalid.",this.requestUpdate();return}const o=new FileReader;o.onprogress=s=>{if(s.lengthComputable){const r=Math.round(s.loaded*100/s.total);e.progress=r,this.requestUpdate()}},o.onload=()=>{e.progress=100,e.status="done",this.requestUpdate()},o.onerror=()=>{e.status="error",e.errorMsg="Failed to load file.",this.requestUpdate()},o.readAsArrayBuffer(e.file)}catch{e.status="error",e.errorMsg="Error validating file.",this.requestUpdate()}}_dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{id:this.id,files:this._selectedFiles},bubbles:!0,composed:!0}))}_openFileDialog(){const e=this.renderRoot.querySelector(".hidden-file-input");e==null||e.click()}_handlePostFileSelectionFocus(){if(this.multiple){const e=this._innerNysButton;e&&e.focus()}else this._focusFirstFileItemIfSingleMode()}async _focusFirstFileItemIfSingleMode(){var e;if(!this.multiple){await this.updateComplete;const t=this.renderRoot.querySelector("nys-fileitem"),o=(e=t==null?void 0:t.shadowRoot)==null?void 0:e.querySelector(".file-item");o&&(o.setAttribute("tabindex","-1"),o.focus())}}_handleFileChange(e){const o=e.target.files;(o?Array.from(o):[]).map(r=>{this._saveSelectedFiles(r)}),this.requestUpdate(),this._dispatchChangeEvent(),this._handlePostFileSelectionFocus()}_handleFileRemove(e){var o;const t=e.detail.filename;if(this._selectedFiles=this._selectedFiles.filter(s=>s.file.name!==t),this._selectedFiles.length===0){const s=(o=this.shadowRoot)==null?void 0:o.querySelector("input");s&&(s.value="")}this._setValue(),this._validate(),this.requestUpdate(),this._dispatchChangeEvent()}_onDragOver(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._dragActive||(this._dragActive=!0,this.requestUpdate()))}_onDragLeave(e){this.disabled||(e.stopPropagation(),e.preventDefault(),e.currentTarget===e.target&&(this._dragActive=!1,this.requestUpdate()))}_onDrop(e){var s;if(this.disabled)return;e.preventDefault(),this._dragActive=!1,this.requestUpdate();const t=(s=e.dataTransfer)==null?void 0:s.files;if(!t)return;const o=Array.from(t);this.multiple?o.forEach(r=>{this._saveSelectedFiles(r)}):this._saveSelectedFiles(o[0]),this.requestUpdate(),this._dispatchChangeEvent()}render(){return c`<div
2335
2337
  class="nys-fileinput"
2336
2338
  @nys-fileRemove=${this._handleFileRemove}
2337
2339
  >
@@ -2341,6 +2343,7 @@
2341
2343
  description=${this.description}
2342
2344
  flag=${this.required?"required":this.optional?"optional":""}
2343
2345
  _tooltip=${this._tooltip}
2346
+ ?invert=${this.invert}
2344
2347
  >
2345
2348
  <slot name="description" slot="description">${this.description}</slot>
2346
2349
  </nys-label>
@@ -2361,7 +2364,7 @@
2361
2364
  hidden
2362
2365
  />
2363
2366
 
2364
- ${this.dropzone?l`<div
2367
+ ${this.dropzone?c`<div
2365
2368
  class="nys-fileinput__dropzone
2366
2369
  ${this._dragActive?"drag-active":""}
2367
2370
  ${this._isDropDisabled?"disabled":""}
@@ -2373,7 +2376,7 @@
2373
2376
  @drop=${this._isDropDisabled?null:this._onDrop}
2374
2377
  aria-label="Drag files here or choose from folder"
2375
2378
  >
2376
- ${this._dragActive?l`<p>Drop file to upload</p>`:l` <nys-button
2379
+ ${this._dragActive?c`<p>Drop file to upload</p>`:c` <nys-button
2377
2380
  id=${this.id}
2378
2381
  name="file-btn"
2379
2382
  label=${this.multiple?"Choose files":"Choose file"}
@@ -2384,7 +2387,7 @@
2384
2387
  .onClick=${e=>{e.stopPropagation(),this._openFileDialog()}}
2385
2388
  ></nys-button>
2386
2389
  <p>or drag here</p>`}
2387
- </div>`:l`<nys-button
2390
+ </div>`:c`<nys-button
2388
2391
  id=${this.id}
2389
2392
  name="file-btn"
2390
2393
  label=${this.multiple?"Choose files":"Choose file"}
@@ -2394,15 +2397,15 @@
2394
2397
  ?disabled=${this.disabled||!this.multiple&&this._selectedFiles.length>0}
2395
2398
  .onClick=${()=>this._openFileDialog()}
2396
2399
  ></nys-button>`}
2397
- ${this.showError?l`
2400
+ ${this.showError?c`
2398
2401
  <nys-errormessage
2399
2402
  ?showError=${this.showError}
2400
2403
  errorMessage=${this._internals.validationMessage||this.errorMessage}
2401
2404
  ></nys-errormessage>
2402
2405
  `:null}
2403
- ${this._selectedFiles.length>0?l`
2406
+ ${this._selectedFiles.length>0?c`
2404
2407
  <ul>
2405
- ${this._selectedFiles.map(e=>l`<li>
2408
+ ${this._selectedFiles.map(e=>c`<li>
2406
2409
  <nys-fileitem
2407
2410
  filename=${e.file.name}
2408
2411
  status=${e.status}
@@ -2412,7 +2415,7 @@
2412
2415
  </li>`)}
2413
2416
  </ul>
2414
2417
  `:null}
2415
- </div>`}};lt.styles=ms,lt.formAssociated=!0;let $=lt;M([i({type:String})],$.prototype,"id"),M([i({type:String,reflect:!0})],$.prototype,"name"),M([i({type:String})],$.prototype,"label"),M([i({type:String})],$.prototype,"description"),M([i({type:Boolean})],$.prototype,"multiple"),M([i({type:String,reflect:!0})],$.prototype,"form"),M([i({type:String})],$.prototype,"_tooltip"),M([i({type:String})],$.prototype,"accept"),M([i({type:Boolean,reflect:!0})],$.prototype,"disabled"),M([i({type:Boolean,reflect:!0})],$.prototype,"required"),M([i({type:Boolean,reflect:!0})],$.prototype,"optional"),M([i({type:Boolean,reflect:!0})],$.prototype,"showError"),M([i({type:String})],$.prototype,"errorMessage"),M([i({type:Boolean})],$.prototype,"dropzone"),M([i({type:String,reflect:!0})],$.prototype,"width"),customElements.get("nys-fileinput")||customElements.define("nys-fileinput",$);const Ss={account_circle:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2418
+ </div>`}};lt.styles=ms,lt.formAssociated=!0;let k=lt;D([i({type:String})],k.prototype,"id"),D([i({type:String,reflect:!0})],k.prototype,"name"),D([i({type:String})],k.prototype,"label"),D([i({type:String})],k.prototype,"description"),D([i({type:Boolean})],k.prototype,"multiple"),D([i({type:String,reflect:!0})],k.prototype,"form"),D([i({type:String})],k.prototype,"_tooltip"),D([i({type:String})],k.prototype,"accept"),D([i({type:Boolean,reflect:!0})],k.prototype,"disabled"),D([i({type:Boolean,reflect:!0})],k.prototype,"required"),D([i({type:Boolean,reflect:!0})],k.prototype,"optional"),D([i({type:Boolean,reflect:!0})],k.prototype,"showError"),D([i({type:String})],k.prototype,"errorMessage"),D([i({type:Boolean})],k.prototype,"dropzone"),D([i({type:String,reflect:!0})],k.prototype,"width"),D([i({type:Boolean,reflect:!0})],k.prototype,"invert"),customElements.get("nys-fileinput")||customElements.define("nys-fileinput",k);const Ss={account_circle:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2416
2419
  <mask id="mask0_12372_781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
2417
2420
  <rect width="24" height="24" fill="#D9D9D9"/>
2418
2421
  </mask>
@@ -3039,7 +3042,7 @@
3039
3042
  .nys-icon--flip-both {
3040
3043
  transform: scale(-1, -1);
3041
3044
  }
3042
- `;var Es=Object.defineProperty,Ds=Object.getOwnPropertyDescriptor,Pe=(a,e,t,o)=>{for(var s=o>1?void 0:o?Ds(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Es(e,t,s),s};const Ae=(me=class extends f{constructor(){super(...arguments),this.name="",this.ariaLabel="",this.rotate="0",this.flip="",this.color="",this._size="sm"}get size(){return this._size}set size(e){this._size=me.VALID_TYPES.includes(e)?e:"sm"}getIcon(){const e=Ss[this.name];if(!e)return null;const s=new DOMParser().parseFromString(e,"image/svg+xml").documentElement;return s instanceof SVGElement?(s.setAttribute("role","img"),this.ariaLabel?(s.setAttribute("aria-label",this.ariaLabel),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}render(){const e=this.getIcon();return e?l`${e}`:null}},me.styles=Ls,me.VALID_TYPES=["2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","12","16","24","32","40","48","64"],me);Pe([i({type:String,reflect:!0})],Ae.prototype,"name",2),Pe([i({type:String})],Ae.prototype,"ariaLabel",2),Pe([i({type:String})],Ae.prototype,"rotate",2),Pe([i({type:String})],Ae.prototype,"flip",2),Pe([i({type:String})],Ae.prototype,"color",2),Pe([i({reflect:!0})],Ae.prototype,"size",1);let i1=Ae;customElements.get("nys-icon")||customElements.define("nys-icon",i1);const As=g`
3045
+ `;var Es=Object.defineProperty,As=Object.getOwnPropertyDescriptor,Pe=(a,e,t,o)=>{for(var s=o>1?void 0:o?As(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Es(e,t,s),s};const De=(me=class extends f{constructor(){super(...arguments),this.name="",this.ariaLabel="",this.rotate="0",this.flip="",this.color="",this._size="sm"}get size(){return this._size}set size(e){this._size=me.VALID_TYPES.includes(e)?e:"sm"}getIcon(){const e=Ss[this.name];if(!e)return null;const s=new DOMParser().parseFromString(e,"image/svg+xml").documentElement;return s instanceof SVGElement?(s.setAttribute("role","img"),this.ariaLabel?(s.setAttribute("aria-label",this.ariaLabel),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}render(){const e=this.getIcon();return e?c`${e}`:null}},me.styles=Ls,me.VALID_TYPES=["2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","12","16","24","32","40","48","64"],me);Pe([i({type:String,reflect:!0})],De.prototype,"name",2),Pe([i({type:String})],De.prototype,"ariaLabel",2),Pe([i({type:String})],De.prototype,"rotate",2),Pe([i({type:String})],De.prototype,"flip",2),Pe([i({type:String})],De.prototype,"color",2),Pe([i({reflect:!0})],De.prototype,"size",1);let i1=De;customElements.get("nys-icon")||customElements.define("nys-icon",i1);const Ds=g`
3043
3046
  :host {
3044
3047
  /* Label Typography */
3045
3048
  --_nys-label-font-family: var(
@@ -3125,19 +3128,29 @@
3125
3128
  .nys-label__tooltip-icon {
3126
3129
  margin-top: -2px;
3127
3130
  }
3128
- `;var Ms=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,Ze=(a,e,t,o)=>{for(var s=o>1?void 0:o?zs(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Ms(e,t,s),s};const Lt=class Lt extends f{constructor(){super(...arguments),this.for="",this.label="",this.description="",this.flag="",this.tooltipInverted=!1,this._tooltip=""}get tooltip(){return this._tooltip}set tooltip(e){this._tooltip=e}render(){return l`
3129
- <div class="nys-label">
3131
+
3132
+ .nys-label.invert .nys-label__label,
3133
+ .nys-label.invert .nys-label__description,
3134
+ .nys-label.invert .nys-label__optional {
3135
+ color: var(--nys-color-text-inverse, #fff);
3136
+ }
3137
+
3138
+ .nys-label.invert .nys-label__tooltip-icon {
3139
+ color: var(--nys-color-ink-inverse, #fff);
3140
+ }
3141
+ `;var Ms=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,Oe=(a,e,t,o)=>{for(var s=o>1?void 0:o?zs(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Ms(e,t,s),s};const Lt=class Lt extends f{constructor(){super(...arguments),this.for="",this.label="",this.description="",this.flag="",this.invert=!1,this._tooltip=""}get tooltip(){return this._tooltip}set tooltip(e){this._tooltip=e}render(){return c`
3142
+ <div class="nys-label ${this.invert?"invert":""}">
3130
3143
  <div class="nys-label__tooltip-wrapper">
3131
3144
  <label for=${this.for} class="nys-label__label"
3132
3145
  >${this.label}
3133
- ${this.flag==="required"?l`<div class="nys-label__required">*</div>`:""}
3134
- ${this.flag==="optional"?l`<div class="nys-label__optional">(Optional)</div>`:""}</label
3146
+ ${this.flag==="required"?c`<div class="nys-label__required">*</div>`:""}
3147
+ ${this.flag==="optional"?c`<div class="nys-label__optional">(Optional)</div>`:""}</label
3135
3148
  >
3136
- ${this._tooltip?l`<nys-tooltip
3149
+ ${this._tooltip?c`<nys-tooltip
3137
3150
  text="${this._tooltip}"
3138
3151
  position="top"
3139
3152
  focusable
3140
- ?inverted=${this.tooltipInverted}
3153
+ ?inverted=${this.invert}
3141
3154
  >
3142
3155
  <div class="nys-label__tooltip-icon">
3143
3156
  <nys-icon name="info" size="3xl"></nys-icon>
@@ -3148,7 +3161,7 @@
3148
3161
  <slot name="description">${this.description}</slot>
3149
3162
  </label>
3150
3163
  </div>
3151
- `}};Lt.styles=As;let Q=Lt;Ze([i({type:String})],Q.prototype,"for",2),Ze([i({type:String})],Q.prototype,"label",2),Ze([i({type:String})],Q.prototype,"description",2),Ze([i({type:String})],Q.prototype,"flag",2),Ze([i({type:Boolean,reflect:!0})],Q.prototype,"tooltipInverted",2),Ze([i({type:String})],Q.prototype,"tooltip",1),customElements.get("nys-label")||customElements.define("nys-label",Q);const Vs=g`
3164
+ `}};Lt.styles=Ds;let J=Lt;Oe([i({type:String})],J.prototype,"for",2),Oe([i({type:String})],J.prototype,"label",2),Oe([i({type:String})],J.prototype,"description",2),Oe([i({type:String})],J.prototype,"flag",2),Oe([i({type:Boolean,reflect:!0})],J.prototype,"invert",2),Oe([i({type:String})],J.prototype,"tooltip",1),customElements.get("nys-label")||customElements.define("nys-label",J);const Vs=g`
3152
3165
  :host {
3153
3166
  /* Global Modal Styles */
3154
3167
  --_nys-modal-width: 480px;
@@ -3299,7 +3312,7 @@
3299
3312
  align-items: center;
3300
3313
  }
3301
3314
  }
3302
- `;var Hs=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,be=(a,e,t,o)=>{for(var s=o>1?void 0:o?Is(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Hs(e,t,s),s};let Bs=0;const oe=(xe=class extends f{constructor(){super(),this.id="",this.heading="",this.subheading="",this.open=!1,this.mandatory=!1,this._width="md",this._actionButtonSlot=null,this._prevFocusedElement=null,this._originalBodyOverflow=null,this.hasBodySlots=!1,this.hasActionSlots=!1}get width(){return this._width}set width(e){this._width=xe.VALID_WIDTHS.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-{{componentName}}-${Date.now()}-${Bs++}`),window.addEventListener("resize",()=>this._updateSlottedButtonWidth()),window.addEventListener("keydown",e=>this._handleKeydown(e))}disconnectedCallback(){super.disconnectedCallback(),this._restoreBodyScroll(),window.removeEventListener("keydown",e=>this._handleKeydown(e))}firstUpdated(){this._handleBodySlotChange(),this._handleActionSlotChange()}async updated(e){e.has("open")&&(this.open?(this._hideBodyScroll(),this._dispatchOpenEvent(),await this.updateComplete,this._savePrevFocused(),this._focusOnModal(),this._updateDismissAria()):(this._restorePrevFocused(),this._restoreBodyScroll(),this._dispatchCloseEvent(),this._updateDismissAria()))}_hideBodyScroll(){this._originalBodyOverflow===null&&(this._originalBodyOverflow=document.body.style.overflow),document.body.style.overflow="hidden"}_restoreBodyScroll(){this._originalBodyOverflow!==null&&(document.body.style.overflow=this._originalBodyOverflow,this._originalBodyOverflow=null)}_savePrevFocused(){this._prevFocusedElement=document.activeElement}_focusOnModal(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-modal");e==null||e.focus()}async _restorePrevFocused(){var t;const e=this._prevFocusedElement;if(e&&e.tagName.toLowerCase()==="nys-button"){const o=await e.getButtonElement();if(o){o.focus();return}}else(t=this._prevFocusedElement)==null||t.focus();this._prevFocusedElement=null}async _handleBodySlotChange(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&(this.hasBodySlots=e.assignedNodes({flatten:!0}).some(o=>{var s;return o.nodeType===Node.ELEMENT_NODE||((s=o.textContent)==null?void 0:s.trim())}))}async _handleActionSlotChange(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector('slot[name="actions"]');e&&(this.hasActionSlots=e.assignedNodes({flatten:!0}).some(o=>{var s;return o.nodeType===Node.ELEMENT_NODE||((s=o.textContent)==null?void 0:s.trim())}),this._actionButtonSlot=e,this._updateSlottedButtonWidth())}_updateSlottedButtonWidth(){if(!this._actionButtonSlot)return;const e=window.innerWidth<=480;this._actionButtonSlot.assignedElements().forEach(t=>{t.querySelectorAll("nys-button").forEach(o=>{e?o==null||o.setAttribute("fullWidth",""):o==null||o.removeAttribute("fullWidth")})})}_dispatchOpenEvent(){this.dispatchEvent(new CustomEvent("nys-open",{detail:{id:this.id},bubbles:!0,composed:!0}))}_dispatchCloseEvent(){this.dispatchEvent(new CustomEvent("nys-close",{detail:{id:this.id},bubbles:!0,composed:!0}))}_getAriaDescribedBy(){const e=[];return this.subheading&&e.push(`${this.id}-subheading`),this.hasBodySlots&&e.push(`${this.id}-desc`),e.join(" ")}_updateDismissAria(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("nys-button");e&&(e.setAttribute("ariaLabel"," "),this.open&&setTimeout(()=>{e.setAttribute("ariaLabel","Close this window")},100))}async _handleKeydown(e){var t;if(this.open&&(e.key==="Escape"&&!this.mandatory&&(e.preventDefault(),this._closeModal()),e.key==="Tab")){const o=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-modal");if(!o)return;const s='a[href], area[href], button:not([disabled]), details, iframe, object, input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [contentEditable="true"], [tabindex]:not([tabindex^="-"])',r=[],n=o.querySelector("nys-button");n&&r.push(n);const d=Array.from(o.querySelectorAll("slot"));for(const c of d){const y=c.assignedElements({flatten:!0});for(const p of y)p instanceof HTMLElement&&p.matches(s)&&r.push(p),p.querySelectorAll("nys-button").forEach(h=>{r.push(h)})}if(r.length>0){const c=r[0],y=r[r.length-1];let p=document.activeElement,h=r.indexOf(p);if(e.shiftKey){e.preventDefault();let x=h-1;x<0&&(x=r.length-1);const E=r[x];if(r[x].tagName.toLowerCase()==="nys-button"){const we=await E.getButtonElement();we==null||we.focus()}else E.focus()}else if(p===y)if(e.preventDefault(),c.tagName.toLowerCase()==="nys-button"){const x=await c.getButtonElement();x==null||x.focus()}else c.focus()}}}_closeModal(){this.open=!1,this._dispatchCloseEvent()}render(){return this.open?l`<div
3315
+ `;var Hs=Object.defineProperty,Bs=Object.getOwnPropertyDescriptor,be=(a,e,t,o)=>{for(var s=o>1?void 0:o?Bs(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Hs(e,t,s),s};let Is=0;const oe=(xe=class extends f{constructor(){super(),this.id="",this.heading="",this.subheading="",this.open=!1,this.mandatory=!1,this._width="md",this._actionButtonSlot=null,this._prevFocusedElement=null,this._originalBodyOverflow=null,this.hasBodySlots=!1,this.hasActionSlots=!1}get width(){return this._width}set width(e){this._width=xe.VALID_WIDTHS.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-{{componentName}}-${Date.now()}-${Is++}`),window.addEventListener("resize",()=>this._updateSlottedButtonWidth()),window.addEventListener("keydown",e=>this._handleKeydown(e))}disconnectedCallback(){super.disconnectedCallback(),this._restoreBodyScroll(),window.removeEventListener("keydown",e=>this._handleKeydown(e))}firstUpdated(){this._handleBodySlotChange(),this._handleActionSlotChange()}async updated(e){e.has("open")&&(this.open?(this._hideBodyScroll(),this._dispatchOpenEvent(),await this.updateComplete,this._savePrevFocused(),this._focusOnModal(),this._updateDismissAria()):(this._restorePrevFocused(),this._restoreBodyScroll(),this._dispatchCloseEvent(),this._updateDismissAria()))}_hideBodyScroll(){this._originalBodyOverflow===null&&(this._originalBodyOverflow=document.body.style.overflow),document.body.style.overflow="hidden"}_restoreBodyScroll(){this._originalBodyOverflow!==null&&(document.body.style.overflow=this._originalBodyOverflow,this._originalBodyOverflow=null)}_savePrevFocused(){this._prevFocusedElement=document.activeElement}_focusOnModal(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-modal");e==null||e.focus()}async _restorePrevFocused(){var t;const e=this._prevFocusedElement;if(e&&e.tagName.toLowerCase()==="nys-button"){const o=await e.getButtonElement();if(o){o.focus();return}}else(t=this._prevFocusedElement)==null||t.focus();this._prevFocusedElement=null}async _handleBodySlotChange(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&(this.hasBodySlots=e.assignedNodes({flatten:!0}).some(o=>{var s;return o.nodeType===Node.ELEMENT_NODE||((s=o.textContent)==null?void 0:s.trim())}))}async _handleActionSlotChange(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector('slot[name="actions"]');e&&(this.hasActionSlots=e.assignedNodes({flatten:!0}).some(o=>{var s;return o.nodeType===Node.ELEMENT_NODE||((s=o.textContent)==null?void 0:s.trim())}),this._actionButtonSlot=e,this._updateSlottedButtonWidth())}_updateSlottedButtonWidth(){if(!this._actionButtonSlot)return;const e=window.innerWidth<=480;this._actionButtonSlot.assignedElements().forEach(t=>{t.querySelectorAll("nys-button").forEach(o=>{e?o==null||o.setAttribute("fullWidth",""):o==null||o.removeAttribute("fullWidth")})})}_dispatchOpenEvent(){this.dispatchEvent(new CustomEvent("nys-open",{detail:{id:this.id},bubbles:!0,composed:!0}))}_dispatchCloseEvent(){this.dispatchEvent(new CustomEvent("nys-close",{detail:{id:this.id},bubbles:!0,composed:!0}))}_getAriaDescribedBy(){const e=[];return this.subheading&&e.push(`${this.id}-subheading`),this.hasBodySlots&&e.push(`${this.id}-desc`),e.join(" ")}_updateDismissAria(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("nys-button");e&&(e.setAttribute("ariaLabel"," "),this.open&&setTimeout(()=>{e.setAttribute("ariaLabel","Close this window")},100))}async _handleKeydown(e){var t;if(this.open&&(e.key==="Escape"&&!this.mandatory&&(e.preventDefault(),this._closeModal()),e.key==="Tab")){const o=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-modal");if(!o)return;const s='a[href], area[href], button:not([disabled]), details, iframe, object, input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [contentEditable="true"], [tabindex]:not([tabindex^="-"])',r=[],n=o.querySelector("nys-button");n&&r.push(n);const d=Array.from(o.querySelectorAll("slot"));for(const l of d){const y=l.assignedElements({flatten:!0});for(const p of y)p instanceof HTMLElement&&p.matches(s)&&r.push(p),p.querySelectorAll("nys-button").forEach(h=>{r.push(h)})}if(r.length>0){const l=r[0],y=r[r.length-1];let p=document.activeElement,h=r.indexOf(p);if(e.shiftKey){e.preventDefault();let x=h-1;x<0&&(x=r.length-1);const E=r[x];if(r[x].tagName.toLowerCase()==="nys-button"){const we=await E.getButtonElement();we==null||we.focus()}else E.focus()}else if(p===y)if(e.preventDefault(),l.tagName.toLowerCase()==="nys-button"){const x=await l.getButtonElement();x==null||x.focus()}else l.focus()}}}_closeModal(){this.open=!1,this._dispatchCloseEvent()}render(){return this.open?c`<div
3303
3316
  id=${this.id}
3304
3317
  class="nys-modal-overlay"
3305
3318
  role="dialog"
@@ -3311,14 +3324,14 @@
3311
3324
  <div class="nys-modal_header">
3312
3325
  <div class="nys-modal_header-inner">
3313
3326
  <h2 id="${this.id}-heading">${this.heading}</h2>
3314
- ${this.mandatory?"":l`<nys-button
3327
+ ${this.mandatory?"":c`<nys-button
3315
3328
  circle
3316
3329
  icon="close"
3317
3330
  variant="ghost"
3318
3331
  .onClick=${()=>this._closeModal()}
3319
3332
  ></nys-button>`}
3320
3333
  </div>
3321
- ${this.subheading?l`<p id="${this.id}-subheading">${this.subheading}</p>`:""}
3334
+ ${this.subheading?c`<p id="${this.id}-subheading">${this.subheading}</p>`:""}
3322
3335
  </div>
3323
3336
 
3324
3337
  <div
@@ -3339,7 +3352,7 @@
3339
3352
  ></slot>
3340
3353
  </div>
3341
3354
  </div>
3342
- </div>`:""}},xe.VALID_WIDTHS=["sm","md","lg"],xe.styles=Vs,xe);be([i({type:String})],oe.prototype,"id",2),be([i({type:String})],oe.prototype,"heading",2),be([i({type:String})],oe.prototype,"subheading",2),be([i({type:Boolean,reflect:!0})],oe.prototype,"open",2),be([i({type:Boolean,reflect:!0})],oe.prototype,"mandatory",2),be([i({reflect:!0})],oe.prototype,"width",1),be([D()],oe.prototype,"hasBodySlots",2),be([D()],oe.prototype,"hasActionSlots",2);let a1=oe;customElements.get("nys-modal")||customElements.define("nys-modal",a1);const Ps=g`
3355
+ </div>`:""}},xe.VALID_WIDTHS=["sm","md","lg"],xe.styles=Vs,xe);be([i({type:String})],oe.prototype,"id",2),be([i({type:String})],oe.prototype,"heading",2),be([i({type:String})],oe.prototype,"subheading",2),be([i({type:Boolean,reflect:!0})],oe.prototype,"open",2),be([i({type:Boolean,reflect:!0})],oe.prototype,"mandatory",2),be([i({reflect:!0})],oe.prototype,"width",1),be([z()],oe.prototype,"hasBodySlots",2),be([z()],oe.prototype,"hasActionSlots",2);let a1=oe;customElements.get("nys-modal")||customElements.define("nys-modal",a1);const Ps=g`
3343
3356
  :host {
3344
3357
  /* Anything that can be overridden should be defined here */
3345
3358
 
@@ -3480,53 +3493,53 @@
3480
3493
  display: none;
3481
3494
  }
3482
3495
  }
3483
- `;var Zs=Object.defineProperty,Ke=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Zs(e,t,s),s};let Os=0;const Et=class Et extends f{constructor(){super(),this.id="",this.name="",this.currentPage=1,this.totalPages=1,this._twoBeforeLast=!1}updated(e){super.updated(e),this.currentPage=this._clampPage(this.currentPage),this._twoBeforeLast=this.currentPage===this.totalPages-2}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-pagination-${Date.now()}-${Os++}`)}_clampPage(e){return e<1?1:e>this.totalPages?this.totalPages:e}renderPageButtons(){const e=[],t=(c,y)=>{e.push(l`
3496
+ `;var Os=Object.defineProperty,Ke=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Os(e,t,s),s};let Zs=0;const Et=class Et extends f{constructor(){super(),this.id="",this.name="",this.currentPage=1,this.totalPages=1,this._twoBeforeLast=!1}updated(e){super.updated(e),this.currentPage=this._clampPage(this.currentPage),this._twoBeforeLast=this.currentPage===this.totalPages-2}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-pagination-${Date.now()}-${Zs++}`)}_clampPage(e){return e<1?1:e>this.totalPages?this.totalPages:e}renderPageButtons(){const e=[],t=(l,y)=>{e.push(c`
3484
3497
  <nys-button
3485
- label=${String(c)}
3486
- ariaLabel="Page ${c}"
3498
+ label=${String(l)}
3499
+ ariaLabel="Page ${l}"
3487
3500
  id=${u(y)}
3488
- variant=${this.currentPage===c?"filled":"outline"}
3489
- @nys-click="${()=>this._handlePageClick(c)}"
3501
+ variant=${this.currentPage===l?"filled":"outline"}
3502
+ @nys-click="${()=>this._handlePageClick(l)}"
3490
3503
  ></nys-button>
3491
- `)},o=c=>{e.push(l`<nys-button
3504
+ `)},o=l=>{e.push(c`<nys-button
3492
3505
  label="..."
3493
3506
  class="spacer"
3494
3507
  tabindex="-1"
3495
- id=${c}
3496
- ></nys-button>`)},r=this.totalPages,n=this.currentPage-1,d=this.currentPage+1;return t(1),this.currentPage>2&&o("first-spacer"),n>1&&t(n,"prev-page"),this.currentPage!==1&&this.currentPage!==r&&t(this.currentPage,"current-page"),d<r&&t(d,"next-page"),this.currentPage<r-1&&o("last-spacer"),r>1&&t(r),e}_handlePageClick(e){this.currentPage=this._clampPage(e),this.dispatchEvent(new CustomEvent("nys-change",{detail:{page:this.currentPage},bubbles:!0,composed:!0}))}render(){return this.totalPages<=1?null:l`<div class="nys-pagination">
3497
- ${this.currentPage>1?l`
3498
- <nys-button
3499
- id="previous"
3500
- label="Previous"
3501
- prefixIcon="chevron_left"
3502
- variant="outline"
3503
- @nys-click="${()=>this._handlePageClick(this.currentPage-1)}"
3504
- ></nys-button>
3505
- <nys-button
3506
- id="previous--mobile"
3507
- prefixIcon="chevron_left"
3508
- ariaLabel="Previous Page"
3509
- variant="outline"
3510
- @nys-click="${()=>this._handlePageClick(this.currentPage-1)}"
3511
- ></nys-button>
3512
- `:null}
3508
+ id=${l}
3509
+ ></nys-button>`)},r=this.totalPages,n=this.currentPage-1,d=this.currentPage+1;return t(1),this.currentPage>2&&o("first-spacer"),n>1&&t(n,"prev-page"),this.currentPage!==1&&this.currentPage!==r&&t(this.currentPage,"current-page"),d<r&&t(d,"next-page"),this.currentPage<r-1&&o("last-spacer"),r>1&&t(r),e}_handlePageClick(e){this.currentPage=this._clampPage(e),this.dispatchEvent(new CustomEvent("nys-change",{detail:{page:this.currentPage},bubbles:!0,composed:!0}))}render(){return this.totalPages<=1?null:c`<div class="nys-pagination">
3510
+ <nys-button
3511
+ id="previous"
3512
+ label="Previous"
3513
+ prefixIcon="chevron_left"
3514
+ variant="outline"
3515
+ ?disabled=${this.currentPage===1}
3516
+ @nys-click="${()=>this._handlePageClick(this.currentPage-1)}"
3517
+ ></nys-button>
3518
+ <nys-button
3519
+ id="previous--mobile"
3520
+ prefixIcon="chevron_left"
3521
+ ariaLabel="Previous Page"
3522
+ variant="outline"
3523
+ ?disabled=${this.currentPage===1}
3524
+ @nys-click="${()=>this._handlePageClick(this.currentPage-1)}"
3525
+ ></nys-button>
3513
3526
  ${this.renderPageButtons()}
3514
- ${this.currentPage<this.totalPages?l`
3515
- <nys-button
3516
- id="next"
3517
- label="Next"
3518
- suffixIcon="chevron_right"
3519
- variant="outline"
3520
- @nys-click="${()=>this._handlePageClick(this.currentPage+1)}"
3521
- ></nys-button>
3522
- <nys-button
3523
- id="next--mobile"
3524
- suffixIcon="chevron_right"
3525
- ariaLabel="Next Page"
3526
- variant="outline"
3527
- @nys-click="${()=>this._handlePageClick(this.currentPage+1)}"
3528
- ></nys-button>
3529
- `:null}
3527
+ <nys-button
3528
+ id="next"
3529
+ label="Next"
3530
+ suffixIcon="chevron_right"
3531
+ variant="outline"
3532
+ ?disabled=${this.currentPage===this.totalPages}
3533
+ @nys-click="${()=>this._handlePageClick(this.currentPage+1)}"
3534
+ ></nys-button>
3535
+ <nys-button
3536
+ id="next--mobile"
3537
+ suffixIcon="chevron_right"
3538
+ ariaLabel="Next Page"
3539
+ variant="outline"
3540
+ ?disabled=${this.currentPage===this.totalPages}
3541
+ @nys-click="${()=>this._handlePageClick(this.currentPage+1)}"
3542
+ ></nys-button>
3530
3543
  </div>`}};Et.styles=Ps;let re=Et;Ke([i({type:String})],re.prototype,"id"),Ke([i({type:String,reflect:!0})],re.prototype,"name"),Ke([i({type:Number,reflect:!0})],re.prototype,"currentPage"),Ke([i({type:Number,reflect:!0})],re.prototype,"totalPages"),Ke([i({type:Boolean,reflect:!0})],re.prototype,"_twoBeforeLast"),customElements.get("nys-pagination")||customElements.define("nys-pagination",re);const l1=g`
3531
3544
  :host {
3532
3545
  /* Global Radiobutton Styles */
@@ -3886,13 +3899,14 @@
3886
3899
  overflow: hidden;
3887
3900
  border: 0;
3888
3901
  }
3889
- `;var Us=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,Z=(a,e,t,o)=>{for(var s=o>1?void 0:o?qs(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Us(e,t,s),s};let Ts=0;const z=(ce=class extends f{constructor(){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.selectedValue=null,this._slottedDescriptionText="",this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=ce.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiogroup-${Date.now()}-${Ts++}`),this.addEventListener("nys-change",this._handleRadioButtonChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("nys-change",this._handleRadioButtonChange),this.removeEventListener("invalid",this._handleInvalid)}async firstUpdated(){this._initializeCheckedRadioValue(),this._setValue(),this._setRadioButtonRequire(),this._updateRadioButtonsSize(),this._updateRadioButtonsTile(),this._updateRadioButtonsShowError(),this._getSlotDescriptionForAria(),await this.updateComplete,this._initializeChildAttributes(),this._updateGroupTabIndex()}updated(e){(e.has("required")||e.has("selectedValue"))&&this._manageRequire(),e.has("size")&&this._updateRadioButtonsSize(),e.has("tile")&&this._updateRadioButtonsTile(),e.has("showError")&&this._updateRadioButtonsShowError(),e.has("form")&&this._updateRadioButtonsForm()}formResetCallback(){this.querySelectorAll("nys-radiobutton").forEach(t=>{t.formResetUpdate()})}_setValue(){this._internals.setFormValue(this.selectedValue)}_setRadioButtonRequire(){this.querySelectorAll("nys-radiobutton").forEach((t,o)=>{this.required&&o===0&&t.setAttribute("required","required")})}async _manageRequire(){const e=this.errorMessage||"Please select an option.",o=Array.from(this.querySelectorAll("nys-radiobutton"))[0];o&&(this.required&&!this.selectedValue?this._internals.setValidity({valueMissing:!0},e,o):(this.showError=!1,this._internals.setValidity({},"",o)))}checkValidity(){const e=Array.from(this.querySelectorAll("nys-radiobutton"));return!this.required||e.some(o=>o.checked)}_initializeCheckedRadioValue(){const e=this.querySelector("nys-radiobutton[checked]");e&&(this.selectedValue=e.getAttribute("value"),this._internals.setFormValue(this.selectedValue))}_getAllRadios(){return Array.from(this.querySelectorAll("nys-radiobutton"))}async _handleKeyDown(e){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," ","Enter"].includes(e.key))return;e.preventDefault();const o=this._getAllRadios().filter(y=>!y.disabled),s=o.find(y=>y.checked)||o[0],r=e.key===" "||e.key==="Enter"?0:["ArrowUp","ArrowLeft"].includes(e.key)?-1:1;let n=o.indexOf(s)+r;n<0&&(n=o.length-1),n>=o.length&&(n=0);const d=o[n],c=await d.getInputElement();c==null||c.click(),this._updateGroupTabIndex(),d.focus()}_updateGroupTabIndex(){const e=this._getAllRadios(),t=e.find(o=>o.checked)||e[0];e.forEach(o=>{o.disabled?o.tabIndex=-1:o.tabIndex=o===t?0:-1,o.setAttribute("aria-checked",o.checked?"true":"false"),o.setAttribute("aria-disabled",o.disabled?"true":"false"),o.setAttribute("aria-required",this.required?"true":"false")})}_initializeChildAttributes(){this._getAllRadios().forEach(t=>{t.setAttribute("role","radio"),t.setAttribute("aria-checked",String(t.checked)),t.setAttribute("aria-required",String(t.required)),t.setAttribute("aria-disabled",String(t.disabled)),t.setAttribute("tabindex","-1")})}_updateRadioButtonsSize(){this.querySelectorAll("nys-radiobutton").forEach(t=>{t.setAttribute("size",this.size)})}_updateRadioButtonsTile(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.tile?t.toggleAttribute("tile",!0):t.removeAttribute("tile")})}_updateRadioButtonsShowError(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.showError?t.setAttribute("showError",""):t.removeAttribute("showError")})}_updateRadioButtonsForm(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.showError&&this.form!==null?t.setAttribute("form",this.form):t.removeAttribute("form")})}_getSlotDescriptionForAria(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="description"]'),t=(e==null?void 0:e.assignedNodes({flatten:!0}))||[];this._slottedDescriptionText=t.map(s=>{var r;return(r=s.textContent)==null?void 0:r.trim()}).filter(Boolean).join(", ")}_handleRadioButtonChange(e){const t=e,{name:o,value:s}=t.detail;this.name=o,this.selectedValue=s,this._internals.setFormValue(this.selectedValue),this._updateGroupTabIndex()}async _handleInvalid(e){if(e.preventDefault(),this._internals.validity.valueMissing){this.showError=!0,this._manageRequire();const t=this.querySelector("nys-radiobutton");if(t){const o=this._internals.form;o?Array.from(o.elements).find(n=>typeof n.checkValidity=="function"&&!n.checkValidity())===this&&(t.focus(),t.classList.add("active-focus")):(t.focus(),t.classList.add("active-focus"))}}}render(){return l`<div class="nys-radiogroup">
3902
+ `;var Us=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,B=(a,e,t,o)=>{for(var s=o>1?void 0:o?qs(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Us(e,t,s),s};let Ts=0;const M=(ce=class extends f{constructor(){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.invert=!1,this.form=null,this.selectedValue=null,this._slottedDescriptionText="",this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=ce.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiogroup-${Date.now()}-${Ts++}`),this.addEventListener("nys-change",this._handleRadioButtonChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("nys-change",this._handleRadioButtonChange),this.removeEventListener("invalid",this._handleInvalid)}async firstUpdated(){this._initializeCheckedRadioValue(),this._setValue(),this._setRadioButtonRequire(),this._updateRadioButtonsSize(),this._updateRadioButtonsTile(),this._updateRadioButtonsShowError(),this._getSlotDescriptionForAria(),await this.updateComplete,this._initializeChildAttributes(),this._updateGroupTabIndex()}updated(e){(e.has("required")||e.has("selectedValue"))&&this._manageRequire(),e.has("size")&&this._updateRadioButtonsSize(),e.has("tile")&&this._updateRadioButtonsTile(),e.has("invert")&&this._updateRadioButtonsInvert(),e.has("showError")&&this._updateRadioButtonsShowError(),e.has("form")&&this._updateRadioButtonsForm()}formResetCallback(){this.querySelectorAll("nys-radiobutton").forEach(t=>{t.formResetUpdate()})}_setValue(){this._internals.setFormValue(this.selectedValue)}_setRadioButtonRequire(){this.querySelectorAll("nys-radiobutton").forEach((t,o)=>{this.required&&o===0&&t.setAttribute("required","required")})}async _manageRequire(){const e=this.errorMessage||"Please select an option.",o=Array.from(this.querySelectorAll("nys-radiobutton"))[0];o&&(this.required&&!this.selectedValue?this._internals.setValidity({valueMissing:!0},e,o):(this.showError=!1,this._internals.setValidity({},"",o)))}checkValidity(){const e=Array.from(this.querySelectorAll("nys-radiobutton"));return!this.required||e.some(o=>o.checked)}_initializeCheckedRadioValue(){const e=this.querySelector("nys-radiobutton[checked]");e&&(this.selectedValue=e.getAttribute("value"),this._internals.setFormValue(this.selectedValue))}_getAllRadios(){return Array.from(this.querySelectorAll("nys-radiobutton"))}async _handleKeyDown(e){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," ","Enter"].includes(e.key))return;e.preventDefault();const o=this._getAllRadios().filter(y=>!y.disabled),s=o.find(y=>y.checked)||o[0],r=e.key===" "||e.key==="Enter"?0:["ArrowUp","ArrowLeft"].includes(e.key)?-1:1;let n=o.indexOf(s)+r;n<0&&(n=o.length-1),n>=o.length&&(n=0);const d=o[n],l=await d.getInputElement();l==null||l.click(),this._updateGroupTabIndex(),d.focus()}_updateGroupTabIndex(){const e=this._getAllRadios(),t=e.find(o=>o.checked)||e[0];e.forEach(o=>{o.disabled?o.tabIndex=-1:o.tabIndex=o===t?0:-1,o.setAttribute("aria-checked",o.checked?"true":"false"),o.setAttribute("aria-disabled",o.disabled?"true":"false"),o.setAttribute("aria-required",this.required?"true":"false")})}_initializeChildAttributes(){this._getAllRadios().forEach(t=>{t.setAttribute("role","radio"),t.setAttribute("aria-checked",String(t.checked)),t.setAttribute("aria-required",String(t.required)),t.setAttribute("aria-disabled",String(t.disabled)),t.setAttribute("tabindex","-1")})}_updateRadioButtonsSize(){this.querySelectorAll("nys-radiobutton").forEach(t=>{t.setAttribute("size",this.size)})}_updateRadioButtonsTile(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.tile?t.toggleAttribute("tile",!0):t.removeAttribute("tile")})}_updateRadioButtonsInvert(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.invert?t.toggleAttribute("invert",!0):t.removeAttribute("invert")})}_updateRadioButtonsShowError(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.showError?t.setAttribute("showError",""):t.removeAttribute("showError")})}_updateRadioButtonsForm(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.showError&&this.form!==null?t.setAttribute("form",this.form):t.removeAttribute("form")})}_getSlotDescriptionForAria(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="description"]'),t=(e==null?void 0:e.assignedNodes({flatten:!0}))||[];this._slottedDescriptionText=t.map(s=>{var r;return(r=s.textContent)==null?void 0:r.trim()}).filter(Boolean).join(", ")}_handleRadioButtonChange(e){const t=e,{name:o,value:s}=t.detail;this.name=o,this.selectedValue=s,this._internals.setFormValue(this.selectedValue),this._updateGroupTabIndex()}async _handleInvalid(e){if(e.preventDefault(),this._internals.validity.valueMissing){this.showError=!0,this._manageRequire();const t=this.querySelector("nys-radiobutton");if(t){const o=this._internals.form;o?Array.from(o.elements).find(n=>typeof n.checkValidity=="function"&&!n.checkValidity())===this&&(t.focus(),t.classList.add("active-focus")):(t.focus(),t.classList.add("active-focus"))}}}render(){return c`<div class="nys-radiogroup">
3890
3903
  <nys-label
3891
3904
  for=${this.id}
3892
3905
  label=${this.label}
3893
3906
  description=${this.description}
3894
3907
  flag=${this.required?"required":this.optional?"optional":""}
3895
3908
  _tooltip=${this._tooltip}
3909
+ ?invert=${this.invert}
3896
3910
  >
3897
3911
  <slot name="description" slot="description">${this.description}</slot>
3898
3912
  </nys-label>
@@ -3909,7 +3923,7 @@
3909
3923
  errorMessage=${this._internals.validationMessage||this.errorMessage}
3910
3924
  .showDivider=${!this.tile}
3911
3925
  ></nys-errormessage>
3912
- </div>`}},ce.VALID_SIZES=["sm","md"],ce.styles=l1,ce.formAssociated=!0,ce);Z([i({type:String})],z.prototype,"id",2),Z([i({type:String,reflect:!0})],z.prototype,"name",2),Z([i({type:Boolean,reflect:!0})],z.prototype,"required",2),Z([i({type:Boolean,reflect:!0})],z.prototype,"optional",2),Z([i({type:Boolean,reflect:!0})],z.prototype,"showError",2),Z([i({type:String})],z.prototype,"errorMessage",2),Z([i({type:String})],z.prototype,"label",2),Z([i({type:String})],z.prototype,"description",2),Z([i({type:Boolean,reflect:!0})],z.prototype,"tile",2),Z([i({type:String})],z.prototype,"_tooltip",2),Z([i({type:String,reflect:!0})],z.prototype,"form",2),Z([D()],z.prototype,"selectedValue",2),Z([D()],z.prototype,"_slottedDescriptionText",2),Z([i({reflect:!0})],z.prototype,"size",1);let c1=z;customElements.get("nys-radiogroup")||customElements.define("nys-radiogroup",c1);var Rs=Object.defineProperty,Ns=Object.getOwnPropertyDescriptor,F=(a,e,t,o)=>{for(var s=o>1?void 0:o?Ns(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Rs(e,t,s),s};let Fs=0;const R=(m=class extends f{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.required=!1,this.label="",this.description="",this.id="",this.name="",this.value="",this.form=null,this._size="md",this.tile=!1}get size(){return this._size}set size(e){this._size=m.VALID_SIZES.includes(e)?e:"md"}async getInputElement(){var e;return await this.updateComplete,((e=this.shadowRoot)==null?void 0:e.querySelector("input"))||null}formResetUpdate(){this.checked=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiobutton-${Date.now()}-${Fs++}`),this.checked&&(m.buttonGroup[this.name]&&(m.buttonGroup[this.name].checked=!1,m.buttonGroup[this.name].requestUpdate()),m.buttonGroup[this.name]=this),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur),this.addEventListener("click",this._handleChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}updated(e){e.has("checked")&&this.checked&&m.buttonGroup[this.name]!==this&&(m.buttonGroup[this.name]&&(m.buttonGroup[this.name].checked=!1,m.buttonGroup[this.name].requestUpdate()),m.buttonGroup[this.name]=this)}checkValidity(){var t;if(this.required&&!this.checked)return!1;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{id:this.id,checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleChange(){this.classList.remove("active-focus"),!this.checked&&!this.disabled&&(m.buttonGroup[this.name]&&(m.buttonGroup[this.name].checked=!1,m.buttonGroup[this.name].requestUpdate()),m.buttonGroup[this.name]=this,this.checked=!0,this._emitChangeEvent())}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.classList.remove("active-focus"),this.dispatchEvent(new Event("nys-blur"))}_callInputHandling(){var t;if(this.disabled)return;const e=(t=this.shadowRoot)==null?void 0:t.querySelector('input[type="radio"]');e&&(e.focus(),e.click())}render(){return l`
3926
+ </div>`}},ce.VALID_SIZES=["sm","md"],ce.styles=l1,ce.formAssociated=!0,ce);B([i({type:String})],M.prototype,"id",2),B([i({type:String,reflect:!0})],M.prototype,"name",2),B([i({type:Boolean,reflect:!0})],M.prototype,"required",2),B([i({type:Boolean,reflect:!0})],M.prototype,"optional",2),B([i({type:Boolean,reflect:!0})],M.prototype,"showError",2),B([i({type:String})],M.prototype,"errorMessage",2),B([i({type:String})],M.prototype,"label",2),B([i({type:String})],M.prototype,"description",2),B([i({type:Boolean,reflect:!0})],M.prototype,"tile",2),B([i({type:String})],M.prototype,"_tooltip",2),B([i({type:Boolean,reflect:!0})],M.prototype,"invert",2),B([i({type:String,reflect:!0})],M.prototype,"form",2),B([z()],M.prototype,"selectedValue",2),B([z()],M.prototype,"_slottedDescriptionText",2),B([i({reflect:!0})],M.prototype,"size",1);let c1=M;customElements.get("nys-radiogroup")||customElements.define("nys-radiogroup",c1);var Rs=Object.defineProperty,Ns=Object.getOwnPropertyDescriptor,N=(a,e,t,o)=>{for(var s=o>1?void 0:o?Ns(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Rs(e,t,s),s};let Fs=0;const R=(m=class extends f{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.required=!1,this.label="",this.description="",this.id="",this.name="",this.value="",this.invert=!1,this.form=null,this._size="md",this.tile=!1}get size(){return this._size}set size(e){this._size=m.VALID_SIZES.includes(e)?e:"md"}async getInputElement(){var e;return await this.updateComplete,((e=this.shadowRoot)==null?void 0:e.querySelector("input"))||null}formResetUpdate(){this.checked=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiobutton-${Date.now()}-${Fs++}`),this.checked&&(m.buttonGroup[this.name]&&(m.buttonGroup[this.name].checked=!1,m.buttonGroup[this.name].requestUpdate()),m.buttonGroup[this.name]=this),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur),this.addEventListener("click",this._handleChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}updated(e){e.has("checked")&&this.checked&&m.buttonGroup[this.name]!==this&&(m.buttonGroup[this.name]&&(m.buttonGroup[this.name].checked=!1,m.buttonGroup[this.name].requestUpdate()),m.buttonGroup[this.name]=this)}checkValidity(){var t;if(this.required&&!this.checked)return!1;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{id:this.id,checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleChange(){this.classList.remove("active-focus"),!this.checked&&!this.disabled&&(m.buttonGroup[this.name]&&(m.buttonGroup[this.name].checked=!1,m.buttonGroup[this.name].requestUpdate()),m.buttonGroup[this.name]=this,this.checked=!0,this._emitChangeEvent())}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.classList.remove("active-focus"),this.dispatchEvent(new Event("nys-blur"))}_callInputHandling(){var t;if(this.disabled)return;const e=(t=this.shadowRoot)==null?void 0:t.querySelector('input[type="radio"]');e&&(e.focus(),e.click())}render(){return c`
3913
3927
  <input
3914
3928
  id="${this.id}"
3915
3929
  type="radio"
@@ -3930,15 +3944,16 @@
3930
3944
  aria-label=${this.label}
3931
3945
  >
3932
3946
  <span class="nys-radiobutton__radio"></span>
3933
- ${this.label&&l`<nys-label
3947
+ ${this.label&&c`<nys-label
3934
3948
  for=${this.id}
3935
3949
  label=${this.label}
3936
3950
  description=${u(this.description||void 0)}
3951
+ ?invert=${this.invert}
3937
3952
  >
3938
3953
  <slot name="description" slot="description">${this.description}</slot>
3939
3954
  </nys-label> `}
3940
3955
  </label>
3941
- `}},m.VALID_SIZES=["sm","md"],m.buttonGroup={},m.styles=l1,m);F([i({type:Boolean,reflect:!0})],R.prototype,"checked",2),F([i({type:Boolean,reflect:!0})],R.prototype,"disabled",2),F([i({type:Boolean,reflect:!0})],R.prototype,"required",2),F([i({type:String})],R.prototype,"label",2),F([i({type:String})],R.prototype,"description",2),F([i({type:String})],R.prototype,"id",2),F([i({type:String,reflect:!0})],R.prototype,"name",2),F([i({type:String})],R.prototype,"value",2),F([i({type:String,reflect:!0})],R.prototype,"form",2),F([i({reflect:!0})],R.prototype,"size",1),F([i({type:Boolean,reflect:!0})],R.prototype,"tile",2);let d1=R;customElements.get("nys-radiobutton")||customElements.define("nys-radiobutton",d1);const js=g`
3956
+ `}},m.VALID_SIZES=["sm","md"],m.buttonGroup={},m.styles=l1,m);N([i({type:Boolean,reflect:!0})],R.prototype,"checked",2),N([i({type:Boolean,reflect:!0})],R.prototype,"disabled",2),N([i({type:Boolean,reflect:!0})],R.prototype,"required",2),N([i({type:String})],R.prototype,"label",2),N([i({type:String})],R.prototype,"description",2),N([i({type:String})],R.prototype,"id",2),N([i({type:String,reflect:!0})],R.prototype,"name",2),N([i({type:String})],R.prototype,"value",2),N([i({type:Boolean,reflect:!0})],R.prototype,"invert",2),N([i({type:String,reflect:!0})],R.prototype,"form",2),N([i({reflect:!0})],R.prototype,"size",1),N([i({type:Boolean,reflect:!0})],R.prototype,"tile",2);let d1=R;customElements.get("nys-radiobutton")||customElements.define("nys-radiobutton",d1);const js=g`
3942
3957
  :host {
3943
3958
  /* Global Select Styles */
3944
3959
  --_nys-select-width: 100%;
@@ -4081,7 +4096,7 @@
4081
4096
  --_nys-select-border-default: var(--nys-border-width-sm, 1px) solid
4082
4097
  var(--_nys-select-color--error);
4083
4098
  }
4084
- `;var Gs=Object.defineProperty,Xe=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Gs(e,t,s),s};class _e extends f{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.value="",this.label="",this.hidden=!1}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&e.addEventListener("slotchange",()=>{var s;const o=e.assignedNodes({flatten:!0});o.length>0&&(this.label=((s=o[0].textContent)==null?void 0:s.trim())||"")})}render(){return l`
4099
+ `;var Gs=Object.defineProperty,Xe=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Gs(e,t,s),s};class _e extends f{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.value="",this.label="",this.hidden=!1}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&e.addEventListener("slotchange",()=>{var s;const o=e.assignedNodes({flatten:!0});o.length>0&&(this.label=((s=o[0].textContent)==null?void 0:s.trim())||"")})}render(){return c`
4085
4100
  <option
4086
4101
  ?disabled=${this.disabled}
4087
4102
  ?selected=${this.selected}
@@ -4091,7 +4106,7 @@
4091
4106
  >
4092
4107
  <slot>${this.label}</slot>
4093
4108
  </option>
4094
- `}}Xe([i({type:Boolean,reflect:!0})],_e.prototype,"disabled"),Xe([i({type:Boolean,reflect:!0})],_e.prototype,"selected"),Xe([i({type:String})],_e.prototype,"value"),Xe([i({type:String})],_e.prototype,"label"),Xe([i({type:Boolean,reflect:!0})],_e.prototype,"hidden"),customElements.define("nys-option",_e);var Ws=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,T=(a,e,t,o)=>{for(var s=o>1?void 0:o?Ys(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Ws(e,t,s),s};let Ks=0;const O=(de=class extends f{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.value="",this.disabled=!1,this.required=!1,this.optional=!1,this._tooltip="",this.form=null,this.showError=!1,this.errorMessage="",this._width="md",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get width(){return this._width}set width(e){this._width=de.VALID_WIDTHS.includes(e)?e:"full"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-select-${Date.now()}-${Ks++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_handleSlotChange(){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector('slot:not([name="description"])'),t=(r=this.shadowRoot)==null?void 0:r.querySelector("select");if(!e||!t)return;t.querySelectorAll("option:not([hidden])").forEach(n=>n.remove()),e.assignedElements({flatten:!0}).forEach(n=>{var d;if(n instanceof _e){const c=document.createElement("option");c.value=n.value,c.textContent=n.label||((d=n.textContent)==null?void 0:d.trim())||"",c.disabled=n.disabled,c.selected=n.selected,t.appendChild(c)}})}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!e)return;const t=this.errorMessage||"Please select an option.";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("select");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("select");if(!e)return;let t=e.validationMessage;this._manageRequire(),this._setValidityMessage(t)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("select");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate(),this.showError=!0;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("select");if(t){const s=this._internals.form;s?Array.from(s.elements).find(d=>typeof d.checkValidity=="function"&&!d.checkValidity())===this&&t.focus():t.focus()}}_handleChange(e){const t=e.target;this.value=t.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("nys-change",{detail:{id:this.id,value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}updated(e){var t;if(super.updated(e),e.has("value")){const o=(t=this.shadowRoot)==null?void 0:t.querySelector("select");o&&(o.value=this.value)}}render(){return l`
4109
+ `}}Xe([i({type:Boolean,reflect:!0})],_e.prototype,"disabled"),Xe([i({type:Boolean,reflect:!0})],_e.prototype,"selected"),Xe([i({type:String})],_e.prototype,"value"),Xe([i({type:String})],_e.prototype,"label"),Xe([i({type:Boolean,reflect:!0})],_e.prototype,"hidden"),customElements.define("nys-option",_e);var Ws=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,q=(a,e,t,o)=>{for(var s=o>1?void 0:o?Ys(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&Ws(e,t,s),s};let Ks=0;const I=(de=class extends f{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.value="",this.disabled=!1,this.required=!1,this.optional=!1,this._tooltip="",this.form=null,this.invert=!1,this.showError=!1,this.errorMessage="",this._width="md",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get width(){return this._width}set width(e){this._width=de.VALID_WIDTHS.includes(e)?e:"full"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-select-${Date.now()}-${Ks++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_handleSlotChange(){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector('slot:not([name="description"])'),t=(r=this.shadowRoot)==null?void 0:r.querySelector("select");if(!e||!t)return;t.querySelectorAll("option:not([hidden])").forEach(n=>n.remove()),e.assignedElements({flatten:!0}).forEach(n=>{var d;if(n instanceof _e){const l=document.createElement("option");l.value=n.value,l.textContent=n.label||((d=n.textContent)==null?void 0:d.trim())||"",l.disabled=n.disabled,l.selected=n.selected,t.appendChild(l)}})}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!e)return;const t=this.errorMessage||"Please select an option.";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("select");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("select");if(!e)return;let t=e.validationMessage;this._manageRequire(),this._setValidityMessage(t)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("select");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate(),this.showError=!0;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("select");if(t){const s=this._internals.form;s?Array.from(s.elements).find(d=>typeof d.checkValidity=="function"&&!d.checkValidity())===this&&t.focus():t.focus()}}_handleChange(e){const t=e.target;this.value=t.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("nys-change",{detail:{id:this.id,value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}updated(e){var t;if(super.updated(e),e.has("value")){const o=(t=this.shadowRoot)==null?void 0:t.querySelector("select");o&&(o.value=this.value)}}render(){return c`
4095
4110
  <div class="nys-select">
4096
4111
  <nys-label
4097
4112
  for=${this.id}
@@ -4099,6 +4114,7 @@
4099
4114
  description=${this.description}
4100
4115
  flag=${this.required?"required":this.optional?"optional":""}
4101
4116
  _tooltip=${this._tooltip}
4117
+ ?invert=${this.invert}
4102
4118
  >
4103
4119
  <slot name="description" slot="description">${this.description}</slot>
4104
4120
  </nys-label>
@@ -4134,7 +4150,7 @@
4134
4150
  errorMessage=${this._internals.validationMessage||this.errorMessage}
4135
4151
  ></nys-errormessage>
4136
4152
  </div>
4137
- `}},de.VALID_WIDTHS=["sm","md","lg","full"],de.styles=js,de.formAssociated=!0,de);T([i({type:String})],O.prototype,"id",2),T([i({type:String,reflect:!0})],O.prototype,"name",2),T([i({type:String})],O.prototype,"label",2),T([i({type:String})],O.prototype,"description",2),T([i({type:String})],O.prototype,"value",2),T([i({type:Boolean,reflect:!0})],O.prototype,"disabled",2),T([i({type:Boolean,reflect:!0})],O.prototype,"required",2),T([i({type:Boolean,reflect:!0})],O.prototype,"optional",2),T([i({type:String})],O.prototype,"_tooltip",2),T([i({type:String,reflect:!0})],O.prototype,"form",2),T([i({type:Boolean,reflect:!0})],O.prototype,"showError",2),T([i({type:String})],O.prototype,"errorMessage",2),T([i({reflect:!0})],O.prototype,"width",1);let h1=O;customElements.get("nys-select")||customElements.define("nys-select",h1);const Xs=g`
4153
+ `}},de.VALID_WIDTHS=["sm","md","lg","full"],de.styles=js,de.formAssociated=!0,de);q([i({type:String})],I.prototype,"id",2),q([i({type:String,reflect:!0})],I.prototype,"name",2),q([i({type:String})],I.prototype,"label",2),q([i({type:String})],I.prototype,"description",2),q([i({type:String})],I.prototype,"value",2),q([i({type:Boolean,reflect:!0})],I.prototype,"disabled",2),q([i({type:Boolean,reflect:!0})],I.prototype,"required",2),q([i({type:Boolean,reflect:!0})],I.prototype,"optional",2),q([i({type:String})],I.prototype,"_tooltip",2),q([i({type:String,reflect:!0})],I.prototype,"form",2),q([i({type:Boolean,reflect:!0})],I.prototype,"invert",2),q([i({type:Boolean,reflect:!0})],I.prototype,"showError",2),q([i({type:String})],I.prototype,"errorMessage",2),q([i({reflect:!0})],I.prototype,"width",1);let h1=I;customElements.get("nys-select")||customElements.define("nys-select",h1);const Xs=g`
4138
4154
  :host {
4139
4155
  /* Global Skipnav Styles */
4140
4156
  --_nys-skipnav-padding--y: var(--nys-space-100, 8px);
@@ -4203,7 +4219,7 @@
4203
4219
  left: auto;
4204
4220
  outline: none;
4205
4221
  }
4206
- `;var Qs=Object.defineProperty,y1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Qs(e,t,s),s};const Dt=class Dt extends f{constructor(){super(),this.id="",this.href=""}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-skipnav-${Date.now()}`)}_handleFocus(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-skipnav__link");e==null||e.classList.add("show")}_handleBlur(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-skipnav__link");e==null||e.classList.remove("show")}_handleClick(){const e=(this.href||"#main-content").replace("#",""),t=document.getElementById(e);t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none")}render(){return l`
4222
+ `;var Qs=Object.defineProperty,y1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Qs(e,t,s),s};const At=class At extends f{constructor(){super(),this.id="",this.href=""}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-skipnav-${Date.now()}`)}_handleFocus(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-skipnav__link");e==null||e.classList.add("show")}_handleBlur(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-skipnav__link");e==null||e.classList.remove("show")}_handleClick(){const e=(this.href||"#main-content").replace("#",""),t=document.getElementById(e);t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none")}render(){return c`
4207
4223
  <div class="nys-skipnav">
4208
4224
  <a
4209
4225
  id=${this.id}
@@ -4217,7 +4233,7 @@
4217
4233
  Skip to main content
4218
4234
  </a>
4219
4235
  </div>
4220
- `}};Dt.styles=Xs;let Oe=Dt;y1([i({type:String})],Oe.prototype,"id"),y1([i({type:String})],Oe.prototype,"href"),customElements.get("nys-skipnav")||customElements.define("nys-skipnav",Oe);const u1=g`
4236
+ `}};At.styles=Xs;let Ze=At;y1([i({type:String})],Ze.prototype,"id"),y1([i({type:String})],Ze.prototype,"href"),customElements.get("nys-skipnav")||customElements.define("nys-skipnav",Ze);const u1=g`
4221
4237
  :host {
4222
4238
  /* Anything that can be overridden should be defined here */
4223
4239
 
@@ -4570,7 +4586,7 @@
4570
4586
  pointer-events: all;
4571
4587
  }
4572
4588
  }
4573
- `;var Js=Object.defineProperty,Me=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Js(e,t,s),s};const At=class At extends f{constructor(){super(...arguments),this.selected=!1,this.current=!1,this.label="",this.href="",this.isCompactExpanded=!1,this.stepNumber=0}_handleActivate(e){typeof this.onClick=="function"&&this.onClick(e);const t=new CustomEvent("nys-step-click",{bubbles:!0,composed:!0,cancelable:!0,detail:{href:this.href,label:this.label}});(this.hasAttribute("previous")||this.current)&&!this.selected&&(this.dispatchEvent(t),!t.defaultPrevented&&this.href&&(window.location.href=this.href))}_handleKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this._handleActivate(e))}render(){return l`
4589
+ `;var Js=Object.defineProperty,Me=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Js(e,t,s),s};const Dt=class Dt extends f{constructor(){super(...arguments),this.selected=!1,this.current=!1,this.label="",this.href="",this.isCompactExpanded=!1,this.stepNumber=0}_handleActivate(e){typeof this.onClick=="function"&&this.onClick(e);const t=new CustomEvent("nys-step-click",{bubbles:!0,composed:!0,cancelable:!0,detail:{href:this.href,label:this.label}});(this.hasAttribute("previous")||this.current)&&!this.selected&&(this.dispatchEvent(t),!t.defaultPrevented&&this.href&&(window.location.href=this.href))}_handleKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this._handleActivate(e))}render(){return c`
4574
4590
  <div class="nys-step">
4575
4591
  <div class="nys-step__linewrapper">
4576
4592
  <div class="nys-step__line"></div>
@@ -4597,7 +4613,7 @@
4597
4613
  </div>
4598
4614
  </div>
4599
4615
  </div>
4600
- `}};At.styles=u1;let j=At;Me([i({type:Boolean,reflect:!0})],j.prototype,"selected"),Me([i({type:Boolean,reflect:!0})],j.prototype,"current"),Me([i({type:String})],j.prototype,"label"),Me([i({type:String})],j.prototype,"href"),Me([i({type:Boolean})],j.prototype,"isCompactExpanded"),Me([i({type:Function})],j.prototype,"onClick"),Me([i({type:Number})],j.prototype,"stepNumber"),customElements.get("nys-step")||customElements.define("nys-step",j);var eo=Object.defineProperty,Qe=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&eo(e,t,s),s};const Mt=class Mt extends f{constructor(){super(),this.id="",this.name="",this.label="",this.counterText="initial",this.isCompactExpanded=!1,this._stepsNumbered=!1,this._onStepClick=async e=>{const t=e.composedPath().find(n=>n instanceof HTMLElement&&n.tagName.toLowerCase()==="nys-step");if(!t)return;const o=Array.from(this.querySelectorAll("nys-step")),s=o.findIndex(n=>n.hasAttribute("current")),r=o.indexOf(t);s!==-1&&r>s||t.hasAttribute("selected")||(o.forEach(n=>n.removeAttribute("selected")),t.setAttribute("selected",""),this._updateCounter(),this.isCompactExpanded=!1)}}connectedCallback(){super.connectedCallback(),this.addEventListener("nys-step-click",this._onStepClick),requestAnimationFrame(()=>this._validateSteps())}disconnectedCallback(){this.removeEventListener("nys-step-click",this._onStepClick),super.disconnectedCallback()}_validateSteps(){Array.from(this.children).forEach(e=>{const t=e instanceof HTMLElement&&e.tagName.toLowerCase()==="nys-step",o=e instanceof HTMLElement&&e.hasAttribute("slot")&&e.getAttribute("slot")==="actions";!t&&!o&&(console.warn("Only <nys-step> elements or the <div slot='actions'> container are allowed as direct children of <nys-stepper>. Removing:",e),e.remove())})}_validateButtonSlot(e){const o=e.target.assignedElements();if(o.length!==1||o[0].tagName.toLowerCase()!=="div"){console.warn("The 'actions' slot must have exactly one <div> as a direct child.");return}const s=o[0];Array.from(s.children).forEach(r=>{r instanceof HTMLElement&&r.tagName.toLowerCase()==="nys-button"?(r.setAttribute("size","sm"),r.hasAttribute("fullWidth")&&(r.style.flex="1 1 0")):(console.warn("The <div> inside 'actions' slot only accepts <nys-button> elements. Removing invalid node:",r),r.remove())})}_updateCounter(){if(this.isCompactExpanded){this.counterText="Back to Form",this.style.height="-webkit-fit-content",this.style.height="-moz-fit-content",this.style.height="fit-content";return}else this.style.height="auto";const e=this.querySelectorAll("nys-step"),t=Array.from(e).findIndex(s=>s.hasAttribute("selected")),o=e.length;this.counterText=t>=0?`Step ${t+1} of ${o}`:`Step 1 of ${o}`}updated(){const e=this.querySelectorAll("nys-step");this._stepsNumbered||(e.forEach((r,n)=>{r.stepNumber=n+1}),this._stepsNumbered=!0);let t=!1,o=!1,s=!1;e.forEach((r,n)=>{r.hasAttribute("current")&&(s?r.removeAttribute("current"):s=!0),n===0?r.setAttribute("first",""):r.removeAttribute("first"),r.hasAttribute("current")?(t=!0,r.removeAttribute("previous")):t?r.removeAttribute("previous"):r.setAttribute("previous",""),r.hasAttribute("selected")&&(t||o?r.removeAttribute("selected"):o=!0),this.hasAttribute("isCompactExpanded")?r.setAttribute("isCompactExpanded",""):r.removeAttribute("isCompactExpanded")}),o||(s?e.forEach(r=>{r.hasAttribute("current")&&!o&&(r.setAttribute("selected",""),o=!0)}):e.length>0&&(e[0].setAttribute("current",""),e[0].setAttribute("selected",""))),this._updateCounter()}_toggleCompact(){this.isCompactExpanded=!this.isCompactExpanded}_handleCounterKeydown(e){(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this._toggleCompact())}render(){return l`
4616
+ `}};Dt.styles=u1;let G=Dt;Me([i({type:Boolean,reflect:!0})],G.prototype,"selected"),Me([i({type:Boolean,reflect:!0})],G.prototype,"current"),Me([i({type:String})],G.prototype,"label"),Me([i({type:String})],G.prototype,"href"),Me([i({type:Boolean})],G.prototype,"isCompactExpanded"),Me([i({type:Function})],G.prototype,"onClick"),Me([i({type:Number})],G.prototype,"stepNumber"),customElements.get("nys-step")||customElements.define("nys-step",G);var eo=Object.defineProperty,Qe=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&eo(e,t,s),s};const Mt=class Mt extends f{constructor(){super(),this.id="",this.name="",this.label="",this.counterText="initial",this.isCompactExpanded=!1,this._stepsNumbered=!1,this._onStepClick=async e=>{const t=e.composedPath().find(n=>n instanceof HTMLElement&&n.tagName.toLowerCase()==="nys-step");if(!t)return;const o=Array.from(this.querySelectorAll("nys-step")),s=o.findIndex(n=>n.hasAttribute("current")),r=o.indexOf(t);s!==-1&&r>s||t.hasAttribute("selected")||(o.forEach(n=>n.removeAttribute("selected")),t.setAttribute("selected",""),this._updateCounter(),this.isCompactExpanded=!1)}}connectedCallback(){super.connectedCallback(),this.addEventListener("nys-step-click",this._onStepClick),requestAnimationFrame(()=>this._validateSteps())}disconnectedCallback(){this.removeEventListener("nys-step-click",this._onStepClick),super.disconnectedCallback()}_validateSteps(){Array.from(this.children).forEach(e=>{const t=e instanceof HTMLElement&&e.tagName.toLowerCase()==="nys-step",o=e instanceof HTMLElement&&e.hasAttribute("slot")&&e.getAttribute("slot")==="actions";!t&&!o&&(console.warn("Only <nys-step> elements or the <div slot='actions'> container are allowed as direct children of <nys-stepper>. Removing:",e),e.remove())})}_validateButtonSlot(e){const o=e.target.assignedElements();if(o.length!==1||o[0].tagName.toLowerCase()!=="div"){console.warn("The 'actions' slot must have exactly one <div> as a direct child.");return}const s=o[0];Array.from(s.children).forEach(r=>{r instanceof HTMLElement&&r.tagName.toLowerCase()==="nys-button"?(r.setAttribute("size","sm"),r.hasAttribute("fullWidth")&&(r.style.flex="1 1 0")):(console.warn("The <div> inside 'actions' slot only accepts <nys-button> elements. Removing invalid node:",r),r.remove())})}_updateCounter(){if(this.isCompactExpanded){this.counterText="Back to Form",this.style.height="-webkit-fit-content",this.style.height="-moz-fit-content",this.style.height="fit-content";return}else this.style.height="auto";const e=this.querySelectorAll("nys-step"),t=Array.from(e).findIndex(s=>s.hasAttribute("selected")),o=e.length;this.counterText=t>=0?`Step ${t+1} of ${o}`:`Step 1 of ${o}`}updated(){const e=this.querySelectorAll("nys-step");this._stepsNumbered||(e.forEach((r,n)=>{r.stepNumber=n+1}),this._stepsNumbered=!0);let t=!1,o=!1,s=!1;e.forEach((r,n)=>{r.hasAttribute("current")&&(s?r.removeAttribute("current"):s=!0),n===0?r.setAttribute("first",""):r.removeAttribute("first"),r.hasAttribute("current")?(t=!0,r.removeAttribute("previous")):t?r.removeAttribute("previous"):r.setAttribute("previous",""),r.hasAttribute("selected")&&(t||o?r.removeAttribute("selected"):o=!0),this.hasAttribute("isCompactExpanded")?r.setAttribute("isCompactExpanded",""):r.removeAttribute("isCompactExpanded")}),o||(s?e.forEach(r=>{r.hasAttribute("current")&&!o&&(r.setAttribute("selected",""),o=!0)}):e.length>0&&(e[0].setAttribute("current",""),e[0].setAttribute("selected",""))),this._updateCounter()}_toggleCompact(){this.isCompactExpanded=!this.isCompactExpanded}_handleCounterKeydown(e){(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this._toggleCompact())}render(){return c`
4601
4617
  <div class="nys-stepper" id=${this.id} name=${this.name}>
4602
4618
  <div class="nys-stepper__header">
4603
4619
  <slot name="actions" @slotchange=${this._validateButtonSlot}></slot>
@@ -4757,7 +4773,7 @@
4757
4773
  color: var(--_nys-textarea-color--disabled);
4758
4774
  cursor: not-allowed;
4759
4775
  }
4760
- `;var so=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,L=(a,e,t,o)=>{for(var s=o>1?void 0:o?oo(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&so(e,t,s),s};let ro=0;const S=(Y=class extends f{constructor(){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._tooltip="",this.form=null,this.maxlength=null,this.width="full",this.rows=4,this._resize="vertical",this.showError=!1,this.errorMessage="",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get resize(){return this._resize}set resize(e){this._resize=Y.VALID_RESIZE.includes(e)?e:"vertical"}async updated(e){await Promise.resolve(),e.has("width")&&(this.width=Y.VALID_WIDTHS.includes(this.width)?this.width:"full"),e.has("rows")&&(this.rows=this.rows??4)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textarea-${Date.now()}-${ro++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!e)return;const t=this.errorMessage||"This field is required";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");if(!e)return;let t=e.validationMessage;this._setValidityMessage(t)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("textarea");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");if(t){const s=this._internals.form;s?Array.from(s.elements).find(d=>typeof d.checkValidity=="function"&&!d.checkValidity())===this&&t.focus():t.focus()}}_handleInput(e){const t=e.target;this.value=t.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("nys-input",{detail:{id:this.id,value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}_handleSelect(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("nys-select",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleSelectionChange(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("nys-selectionchange",{detail:{id:this.id,value:this.value},bubbles:!0,composed:!0}))}render(){return l`
4776
+ `;var so=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,L=(a,e,t,o)=>{for(var s=o>1?void 0:o?oo(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&so(e,t,s),s};let ro=0;const $=(K=class extends f{constructor(){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._tooltip="",this.invert=!1,this.form=null,this.maxlength=null,this.width="full",this.rows=4,this._resize="vertical",this.showError=!1,this.errorMessage="",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get resize(){return this._resize}set resize(e){this._resize=K.VALID_RESIZE.includes(e)?e:"vertical"}async updated(e){await Promise.resolve(),e.has("width")&&(this.width=K.VALID_WIDTHS.includes(this.width)?this.width:"full"),e.has("rows")&&(this.rows=this.rows??4)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textarea-${Date.now()}-${ro++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!e)return;const t=this.errorMessage||"This field is required";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");if(!e)return;let t=e.validationMessage;this._setValidityMessage(t)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("textarea");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");if(t){const s=this._internals.form;s?Array.from(s.elements).find(d=>typeof d.checkValidity=="function"&&!d.checkValidity())===this&&t.focus():t.focus()}}_handleInput(e){const t=e.target;this.value=t.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("nys-input",{detail:{id:this.id,value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}_handleSelect(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("nys-select",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleSelectionChange(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("nys-selectionchange",{detail:{id:this.id,value:this.value},bubbles:!0,composed:!0}))}render(){return c`
4761
4777
  <label class="nys-textarea">
4762
4778
  <nys-label
4763
4779
  for=${this.id}
@@ -4765,6 +4781,7 @@
4765
4781
  description=${this.description}
4766
4782
  flag=${this.required?"required":this.optional?"optional":""}
4767
4783
  _tooltip=${this._tooltip}
4784
+ ?invert=${this.invert}
4768
4785
  >
4769
4786
  <slot name="description" slot="description">${this.description}</slot>
4770
4787
  </nys-label>
@@ -4796,7 +4813,7 @@ ${this.value}</textarea
4796
4813
  errorMessage=${this._internals.validationMessage||this.errorMessage}
4797
4814
  ></nys-errormessage>
4798
4815
  </label>
4799
- `}},Y.VALID_WIDTHS=["sm","md","lg","full"],Y.VALID_RESIZE=["vertical","none"],Y.styles=to,Y.formAssociated=!0,Y);L([i({type:String})],S.prototype,"id",2),L([i({type:String,reflect:!0})],S.prototype,"name",2),L([i({type:String})],S.prototype,"label",2),L([i({type:String})],S.prototype,"description",2),L([i({type:String})],S.prototype,"placeholder",2),L([i({type:String})],S.prototype,"value",2),L([i({type:Boolean,reflect:!0})],S.prototype,"disabled",2),L([i({type:Boolean,reflect:!0})],S.prototype,"readonly",2),L([i({type:Boolean,reflect:!0})],S.prototype,"required",2),L([i({type:Boolean,reflect:!0})],S.prototype,"optional",2),L([i({type:String})],S.prototype,"_tooltip",2),L([i({type:String,reflect:!0})],S.prototype,"form",2),L([i({type:Number})],S.prototype,"maxlength",2),L([i({reflect:!0})],S.prototype,"width",2),L([i({type:Number})],S.prototype,"rows",2),L([i({reflect:!0})],S.prototype,"resize",1),L([i({type:Boolean,reflect:!0})],S.prototype,"showError",2),L([i({type:String})],S.prototype,"errorMessage",2);let p1=S;customElements.get("nys-textarea")||customElements.define("nys-textarea",p1);const no=g`
4816
+ `}},K.VALID_WIDTHS=["sm","md","lg","full"],K.VALID_RESIZE=["vertical","none"],K.styles=to,K.formAssociated=!0,K);L([i({type:String})],$.prototype,"id",2),L([i({type:String,reflect:!0})],$.prototype,"name",2),L([i({type:String})],$.prototype,"label",2),L([i({type:String})],$.prototype,"description",2),L([i({type:String})],$.prototype,"placeholder",2),L([i({type:String})],$.prototype,"value",2),L([i({type:Boolean,reflect:!0})],$.prototype,"disabled",2),L([i({type:Boolean,reflect:!0})],$.prototype,"readonly",2),L([i({type:Boolean,reflect:!0})],$.prototype,"required",2),L([i({type:Boolean,reflect:!0})],$.prototype,"optional",2),L([i({type:String})],$.prototype,"_tooltip",2),L([i({type:Boolean,reflect:!0})],$.prototype,"invert",2),L([i({type:String,reflect:!0})],$.prototype,"form",2),L([i({type:Number})],$.prototype,"maxlength",2),L([i({reflect:!0})],$.prototype,"width",2),L([i({type:Number})],$.prototype,"rows",2),L([i({reflect:!0})],$.prototype,"resize",1),L([i({type:Boolean,reflect:!0})],$.prototype,"showError",2),L([i({type:String})],$.prototype,"errorMessage",2);let p1=$;customElements.get("nys-textarea")||customElements.define("nys-textarea",p1);const no=g`
4800
4817
  :host {
4801
4818
  /* Anything that can be overridden should be defined here */
4802
4819
 
@@ -5034,7 +5051,7 @@ ${this.value}</textarea
5034
5051
  color: var(--_nys-textinput-color--disabled);
5035
5052
  cursor: not-allowed;
5036
5053
  }
5037
- `;var io=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,C=(a,e,t,o)=>{for(var s=o>1?void 0:o?ao(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&io(e,t,s),s};let lo=0;const b=(K=class extends f{constructor(){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._tooltip="",this.form=null,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._maskPatterns={tel:"(___) ___-____"},this._internals=this.attachInternals()}get type(){return this._type}set type(e){this._type=K.VALID_TYPES.includes(e)?e:"text"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textinput-${Date.now()}-${lo++}`),this._originalErrorMessage=this.errorMessage??"",this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}async updated(e){var t,o;if(e.has("width")&&(await Promise.resolve(),this.width=K.VALID_WIDTHS.includes(this.width)?this.width:"full"),e.has("disabled")&&(this._validateButtonSlot("startButton"),this._validateButtonSlot("endButton")),e.has("type")){const s=this._maskPatterns[this.type],r=(t=this.shadowRoot)==null?void 0:t.querySelector("input");if(r)if(s)r.maxLength=s.length,this._updateOverlay(r.value,s);else{r.removeAttribute("maxLength");const n=(o=this.shadowRoot)==null?void 0:o.querySelector(".nys-textinput__mask-overlay");n&&(n.textContent="")}}}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=this.errorMessage||"This field is required";this.required&&(!this.value||((r=this.value)==null?void 0:r.trim())==="")?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var s,r;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!t)return;this.showError=!!e,(r=this._originalErrorMessage)!=null&&r.trim()&&e!==""?this.errorMessage=this._originalErrorMessage:this.errorMessage=e;const o=e?{customError:!0}:{};this._internals.setValidity(o,this.errorMessage,t)}_validate(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=e.validity;let o="";t.valueMissing?o="This field is required":t.typeMismatch?o="Invalid format for this type":t.patternMismatch?o="Invalid format":t.tooShort?o=`Value is too short. Minimum length is ${e.minLength}`:t.tooLong?o=`Value is too long. Maximum length is ${e.maxLength}`:t.rangeUnderflow?o=`Value must be at least ${e.min}`:t.rangeOverflow?o=`Value must be at most ${e.max}`:t.stepMismatch?o="Invalid step value":o=e.validationMessage,this._setValidityMessage(o)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(t){const s=this._internals.form;s?Array.from(s.elements).find(d=>typeof d.checkValidity=="function"&&!d.checkValidity())===this&&t.focus():t.focus()}}_togglePasswordVisibility(){this.showPassword=!this.showPassword}_updateOverlay(e,t){var n;const o=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-textinput__mask-overlay");if(!o)return;const s=e,r=t.slice(s.length);o.textContent=s+r}_applyMask(e,t){const o=e.replace(/\D/g,"");let s="";if(this.type==="tel")return o.length>0&&(s="("+o.substring(0,3)),o.length>=4&&(s+=") "+o.substring(3,6)),o.length>6&&(s+="-"+o.substring(6,10)),s;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="_"||t[n].match(/[d9]/i))if(r<o.length)s+=o[r++];else break;else s+=t[n];return s}_handleInput(e){const t=e.target;let o=t.value;const s=this._maskPatterns[this.type];s&&(o=this._applyMask(o,s),t.value=o,this._updateOverlay(o,s)),this.value=o,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("nys-input",{detail:{id:this.id,value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}_validateButtonSlot(e){var n,d;const t=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="'+e+'"]'),o=(d=this.shadowRoot)==null?void 0:d.querySelector(".nys-textinput__buttoncontainer");if(!t||!o)return;const s=t.assignedElements();let r=!1;s.forEach(c=>{c instanceof HTMLElement&&c.tagName.toLowerCase()==="nys-button"&&!r?(r=!0,c.setAttribute("size","sm"),c.setAttribute("variant","primary"),this.disabled?c.setAttribute("disabled","true"):c.removeAttribute("disabled")):(console.warn("The '"+e+"' slot only accepts a single <nys-button> element. Removing invalid or extra node:",c),c.remove())}),e==="startButton"?o.classList.toggle("has-start-button",r):e==="endButton"&&o.classList.toggle("has-end-button",r)}render(){return l`
5054
+ `;var io=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,_=(a,e,t,o)=>{for(var s=o>1?void 0:o?ao(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&io(e,t,s),s};let lo=0;const b=(X=class extends f{constructor(){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._tooltip="",this.form=null,this.pattern="",this.maxlength=null,this.width="full",this.step=null,this.min=null,this.max=null,this.invert=!1,this.showError=!1,this.errorMessage="",this.showPassword=!1,this._originalErrorMessage="",this._hasUserInteracted=!1,this._maskPatterns={tel:"(___) ___-____"},this._internals=this.attachInternals()}get type(){return this._type}set type(e){this._type=X.VALID_TYPES.includes(e)?e:"text"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textinput-${Date.now()}-${lo++}`),this._originalErrorMessage=this.errorMessage??"",this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}async updated(e){var t,o;if(e.has("width")&&(await Promise.resolve(),this.width=X.VALID_WIDTHS.includes(this.width)?this.width:"full"),e.has("disabled")&&(this._validateButtonSlot("startButton"),this._validateButtonSlot("endButton")),e.has("type")){const s=this._maskPatterns[this.type],r=(t=this.shadowRoot)==null?void 0:t.querySelector("input");if(r)if(s)r.maxLength=s.length,this._updateOverlay(r.value,s);else{r.removeAttribute("maxLength");const n=(o=this.shadowRoot)==null?void 0:o.querySelector(".nys-textinput__mask-overlay");n&&(n.textContent="")}}}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=this.errorMessage||"This field is required";this.required&&(!this.value||((r=this.value)==null?void 0:r.trim())==="")?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var s,r;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!t)return;this.showError=!!e,(r=this._originalErrorMessage)!=null&&r.trim()&&e!==""?this.errorMessage=this._originalErrorMessage:this.errorMessage=e;const o=e?{customError:!0}:{};this._internals.setValidity(o,this.errorMessage,t)}_validate(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=e.validity;let o="";t.valueMissing?o="This field is required":t.typeMismatch?o="Invalid format for this type":t.patternMismatch?o="Invalid format":t.tooShort?o=`Value is too short. Minimum length is ${e.minLength}`:t.tooLong?o=`Value is too long. Maximum length is ${e.maxLength}`:t.rangeUnderflow?o=`Value must be at least ${e.min}`:t.rangeOverflow?o=`Value must be at most ${e.max}`:t.stepMismatch?o="Invalid step value":o=e.validationMessage,this._setValidityMessage(o)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(t){const s=this._internals.form;s?Array.from(s.elements).find(d=>typeof d.checkValidity=="function"&&!d.checkValidity())===this&&t.focus():t.focus()}}_togglePasswordVisibility(){this.showPassword=!this.showPassword}_updateOverlay(e,t){var n;const o=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-textinput__mask-overlay");if(!o)return;const s=e,r=t.slice(s.length);o.textContent=s+r}_applyMask(e,t){const o=e.replace(/\D/g,"");let s="";if(this.type==="tel")return o.length>0&&(s="("+o.substring(0,3)),o.length>=4&&(s+=") "+o.substring(3,6)),o.length>6&&(s+="-"+o.substring(6,10)),s;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="_"||t[n].match(/[d9]/i))if(r<o.length)s+=o[r++];else break;else s+=t[n];return s}_handleInput(e){const t=e.target;let o=t.value;const s=this._maskPatterns[this.type];s&&(o=this._applyMask(o,s),t.value=o,this._updateOverlay(o,s)),this.value=o,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("nys-input",{detail:{id:this.id,value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}_validateButtonSlot(e){var n,d;const t=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="'+e+'"]'),o=(d=this.shadowRoot)==null?void 0:d.querySelector(".nys-textinput__buttoncontainer");if(!t||!o)return;const s=t.assignedElements();let r=!1;s.forEach(l=>{l instanceof HTMLElement&&l.tagName.toLowerCase()==="nys-button"&&!r?(r=!0,l.setAttribute("size","sm"),l.setAttribute("variant","primary"),this.disabled?l.setAttribute("disabled","true"):l.removeAttribute("disabled")):(console.warn("The '"+e+"' slot only accepts a single <nys-button> element. Removing invalid or extra node:",l),l.remove())}),e==="startButton"?o.classList.toggle("has-start-button",r):e==="endButton"&&o.classList.toggle("has-end-button",r)}render(){return c`
5038
5055
  <div class="nys-textinput">
5039
5056
  <nys-label
5040
5057
  for=${this.id}
@@ -5042,6 +5059,7 @@ ${this.value}</textarea
5042
5059
  description=${this.description}
5043
5060
  flag=${this.required?"required":this.optional?"optional":""}
5044
5061
  _tooltip=${this._tooltip}
5062
+ ?invert=${this.invert}
5045
5063
  >
5046
5064
  <slot name="description" slot="description">${this.description}</slot>
5047
5065
  </nys-label>
@@ -5075,7 +5093,7 @@ ${this.value}</textarea
5075
5093
  @focus="${this._handleFocus}"
5076
5094
  @blur="${this._handleBlur}"
5077
5095
  />
5078
- ${this.type==="password"?l` <nys-button
5096
+ ${this.type==="password"?c` <nys-button
5079
5097
  class="eye-icon"
5080
5098
  id="password-toggle"
5081
5099
  suffixIcon="slotted"
@@ -5101,7 +5119,7 @@ ${this.value}</textarea
5101
5119
  errorMessage=${this.errorMessage}
5102
5120
  ></nys-errormessage>
5103
5121
  </div>
5104
- `}},K.VALID_TYPES=["email","number","password","search","tel","text","url"],K.VALID_WIDTHS=["sm","md","lg","full"],K.styles=no,K.formAssociated=!0,K);C([i({type:String})],b.prototype,"id",2),C([i({type:String,reflect:!0})],b.prototype,"name",2),C([i({reflect:!0})],b.prototype,"type",1),C([i({type:String})],b.prototype,"label",2),C([i({type:String})],b.prototype,"description",2),C([i({type:String})],b.prototype,"placeholder",2),C([i({type:String})],b.prototype,"value",2),C([i({type:Boolean,reflect:!0})],b.prototype,"disabled",2),C([i({type:Boolean,reflect:!0})],b.prototype,"readonly",2),C([i({type:Boolean,reflect:!0})],b.prototype,"required",2),C([i({type:Boolean,reflect:!0})],b.prototype,"optional",2),C([i({type:String})],b.prototype,"_tooltip",2),C([i({type:String,reflect:!0})],b.prototype,"form",2),C([i({type:String})],b.prototype,"pattern",2),C([i({type:Number})],b.prototype,"maxlength",2),C([i({reflect:!0})],b.prototype,"width",2),C([i({type:Number})],b.prototype,"step",2),C([i({type:Number})],b.prototype,"min",2),C([i({type:Number})],b.prototype,"max",2),C([i({type:Boolean,reflect:!0})],b.prototype,"showError",2),C([i({type:String})],b.prototype,"errorMessage",2),C([D()],b.prototype,"showPassword",2);let v1=b;customElements.get("nys-textinput")||customElements.define("nys-textinput",v1);const co=g`
5122
+ `}},X.VALID_TYPES=["email","number","password","search","tel","text","url"],X.VALID_WIDTHS=["sm","md","lg","full"],X.styles=no,X.formAssociated=!0,X);_([i({type:String})],b.prototype,"id",2),_([i({type:String,reflect:!0})],b.prototype,"name",2),_([i({reflect:!0})],b.prototype,"type",1),_([i({type:String})],b.prototype,"label",2),_([i({type:String})],b.prototype,"description",2),_([i({type:String})],b.prototype,"placeholder",2),_([i({type:String})],b.prototype,"value",2),_([i({type:Boolean,reflect:!0})],b.prototype,"disabled",2),_([i({type:Boolean,reflect:!0})],b.prototype,"readonly",2),_([i({type:Boolean,reflect:!0})],b.prototype,"required",2),_([i({type:Boolean,reflect:!0})],b.prototype,"optional",2),_([i({type:String})],b.prototype,"_tooltip",2),_([i({type:String,reflect:!0})],b.prototype,"form",2),_([i({type:String})],b.prototype,"pattern",2),_([i({type:Number})],b.prototype,"maxlength",2),_([i({reflect:!0})],b.prototype,"width",2),_([i({type:Number})],b.prototype,"step",2),_([i({type:Number})],b.prototype,"min",2),_([i({type:Number})],b.prototype,"max",2),_([i({type:Boolean,reflect:!0})],b.prototype,"invert",2),_([i({type:Boolean,reflect:!0})],b.prototype,"showError",2),_([i({type:String})],b.prototype,"errorMessage",2),_([z()],b.prototype,"showPassword",2);let v1=b;customElements.get("nys-textinput")||customElements.define("nys-textinput",v1);const co=g`
5105
5123
  :host {
5106
5124
  /* Global Toggle Styles */
5107
5125
  --_nys-toggle-width: var(--nys-font-size-8xl, 44px);
@@ -5361,12 +5379,17 @@ ${this.value}</textarea
5361
5379
  --_nys-toggle-size--knob: var(--nys-size-250, 20px);
5362
5380
  }
5363
5381
 
5382
+ /* Text Invert */
5383
+ .nys-toggle__text.invert {
5384
+ --_nys-toggle-color: var(--nys-color-text-reverse, #fff);
5385
+ }
5386
+
5364
5387
  @media (prefers-reduced-motion: reduce) {
5365
5388
  :host {
5366
5389
  --toggle-transition-duration: 0s; /* Disable animation */
5367
5390
  }
5368
5391
  }
5369
- `;var ho=Object.defineProperty,yo=Object.getOwnPropertyDescriptor,J=(a,e,t,o)=>{for(var s=o>1?void 0:o?yo(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&ho(e,t,s),s};let uo=0;const G=(he=class extends f{constructor(){super(),this.id="",this.name="",this.value="",this.label="",this.description="",this.form=null,this.checked=!1,this.disabled=!1,this.noIcon=!1,this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=he.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-toggle-${Date.now()}-${uo++}`)}updated(e){(e.has("checked")||e.has("value"))&&this._internals.setFormValue(this.checked?this.value:null)}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{id:this.id,checked:this.checked},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleChange(e){const{checked:t}=e.target;this.checked=t,this._emitChangeEvent()}_handleKeyDown(e){!this.disabled&&(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.checked=!this.checked,this._emitChangeEvent())}render(){return l`
5392
+ `;var ho=Object.defineProperty,yo=Object.getOwnPropertyDescriptor,W=(a,e,t,o)=>{for(var s=o>1?void 0:o?yo(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&ho(e,t,s),s};let uo=0;const F=(he=class extends f{constructor(){super(),this.id="",this.name="",this.value="",this.label="",this.description="",this.form=null,this.checked=!1,this.disabled=!1,this.noIcon=!1,this.invert=!1,this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=he.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-toggle-${Date.now()}-${uo++}`)}updated(e){(e.has("checked")||e.has("value"))&&this._internals.setFormValue(this.checked?this.value:null)}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{id:this.id,checked:this.checked},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleChange(e){const{checked:t}=e.target;this.checked=t,this._emitChangeEvent()}_handleKeyDown(e){!this.disabled&&(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.checked=!this.checked,this._emitChangeEvent())}render(){return c`
5370
5393
  <label class="nys-toggle">
5371
5394
  <div class="nys-toggle__content">
5372
5395
  <div class="nys-toggle__toggle">
@@ -5388,7 +5411,7 @@ ${this.value}</textarea
5388
5411
  />
5389
5412
  <span class="slider">
5390
5413
  <div class="knob">
5391
- ${this.noIcon?"":l`<nys-icon
5414
+ ${this.noIcon?"":c`<nys-icon
5392
5415
  class="toggle-icon"
5393
5416
  name="${this.checked?"check":"close"}"
5394
5417
  size="2xl"
@@ -5396,13 +5419,13 @@ ${this.value}</textarea
5396
5419
  </div>
5397
5420
  </span>
5398
5421
  </div>
5399
- <div class="nys-toggle__text">
5422
+ <div class="nys-toggle__text ${this.invert?"invert":""}">
5400
5423
  <div class="nys-toggle__label">${this.label}</div>
5401
5424
  <slot name="description">${this.description}</slot>
5402
5425
  </div>
5403
5426
  </div>
5404
5427
  </label>
5405
- `}},he.VALID_SIZES=["sm","md"],he.styles=co,he.formAssociated=!0,he);J([i({type:String})],G.prototype,"id",2),J([i({type:String,reflect:!0})],G.prototype,"name",2),J([i({type:String})],G.prototype,"value",2),J([i({type:String})],G.prototype,"label",2),J([i({type:String})],G.prototype,"description",2),J([i({type:String,reflect:!0})],G.prototype,"form",2),J([i({type:Boolean,reflect:!0})],G.prototype,"checked",2),J([i({type:Boolean,reflect:!0})],G.prototype,"disabled",2),J([i({type:Boolean})],G.prototype,"noIcon",2),J([i({reflect:!0})],G.prototype,"size",1);let f1=G;customElements.get("nys-toggle")||customElements.define("nys-toggle",f1);const po=g`
5428
+ `}},he.VALID_SIZES=["sm","md"],he.styles=co,he.formAssociated=!0,he);W([i({type:String})],F.prototype,"id",2),W([i({type:String,reflect:!0})],F.prototype,"name",2),W([i({type:String})],F.prototype,"value",2),W([i({type:String})],F.prototype,"label",2),W([i({type:String})],F.prototype,"description",2),W([i({type:String,reflect:!0})],F.prototype,"form",2),W([i({type:Boolean,reflect:!0})],F.prototype,"checked",2),W([i({type:Boolean,reflect:!0})],F.prototype,"disabled",2),W([i({type:Boolean})],F.prototype,"noIcon",2),W([i({type:Boolean,reflect:!0})],F.prototype,"invert",2),W([i({reflect:!0})],F.prototype,"size",1);let f1=F;customElements.get("nys-toggle")||customElements.define("nys-toggle",f1);const po=g`
5406
5429
  :host {
5407
5430
  /* Global Tooltip Styles */
5408
5431
  --_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
@@ -5558,7 +5581,7 @@ ${this.value}</textarea
5558
5581
  ); /* 2rem = 32px = 16px margin on each side */
5559
5582
  }
5560
5583
  }
5561
- `;var vo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,Ue=(a,e,t,o)=>{for(var s=o>1?void 0:o?fo(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&vo(e,t,s),s};let go=0;const zt=class zt extends f{constructor(){super(),this.id="",this.text="",this.inverted=!1,this.focusable=!1,this._active=!1,this._userHasSetPosition=!1,this._originalUserPosition=null,this._internallyUpdatingPosition=!1,this._position=null,this._handleTooltipEnter=()=>{if(this._active=!0,this._addScrollListeners(),this._userHasSetPosition&&this._originalUserPosition&&this._doesPositionFit(this._originalUserPosition)){this.position=this._originalUserPosition,this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._shiftTooltipIntoViewport(e)});return}this.autoPositionTooltip()},this._handleBlurOrMouseLeave=()=>{var t;this._active=!1,this._removeScrollListeners();const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._resetTooltipPositioningStyles(e)},this._handleScrollOrResize=()=>{this._active&&(this._userHasSetPosition&&this._originalUserPosition?this._doesPositionFit(this._originalUserPosition)?(this._setInternalPosition(this._originalUserPosition),this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._shiftTooltipIntoViewport(e)})):this.autoPositionTooltip():this.autoPositionTooltip())},this._handleEscapeKey=e=>{var t;if(e.key==="Escape"&&this._active){this._active=!1,this._removeScrollListeners();const o=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");o&&this._resetTooltipPositioningStyles(o)}}}get position(){return this._position}set position(e){const t=this._position;this._position=e,this.requestUpdate("position",t),this._internallyUpdatingPosition||(this._userHasSetPosition=e!==null,this._originalUserPosition=e)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-tooltip-${Date.now()}-${go++}`),window.addEventListener("keydown",this._handleEscapeKey)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._handleEscapeKey)}get _firstAssignedEl(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&e.addEventListener("slotchange",()=>{const o=this._firstAssignedEl;o&&this._applyFocusBehavior(o)})}updated(e){super.updated(e);const t=this._firstAssignedEl;t&&(e.has("text")&&this._passAria(t),e.has("focusable")&&this._applyFocusBehavior(t))}_addScrollListeners(){window.addEventListener("scroll",this._handleScrollOrResize,!0),window.addEventListener("resize",this._handleScrollOrResize)}_removeScrollListeners(){window.removeEventListener("scroll",this._handleScrollOrResize,!0),window.removeEventListener("resize",this._handleScrollOrResize)}_passAria(e){const t=e.tagName.toLowerCase();if(t.startsWith("nys-"))if(t==="nys-icon"){const o=e.getAttribute("ariaLabel")||"",s=o?`${o}, ${this.text}`:this.text;e.setAttribute("ariaLabel",s)}else e.setAttribute("ariaDescription",this.text)}async _applyFocusBehavior(e){var o;if(!this.focusable)return;if(e.tagName.toLowerCase()==="nys-icon"){"updateComplete"in e&&await e.updateComplete;const s=(o=e.shadowRoot)==null?void 0:o.querySelector("svg");s&&s.setAttribute("tabindex","0")}else e.setAttribute("tabindex","0")}_doesPositionFit(e){var y,p;const t=(y=this.shadowRoot)==null?void 0:y.querySelector(".nys-tooltip__wrapper"),o=(p=this.shadowRoot)==null?void 0:p.querySelector(".nys-tooltip__content");if(!t||!o||e==null)return;const s=t.getBoundingClientRect(),r=o.getBoundingClientRect(),n=8,d={top:s.top-n,left:s.left-n,bottom:window.innerHeight-s.bottom-n,right:window.innerWidth-s.right-n};return{top:d.top>=r.height,bottom:d.bottom>=r.height,left:d.left>=r.width,right:d.right>=r.width}[e]}async autoPositionTooltip(){var y,p;const e=(y=this.shadowRoot)==null?void 0:y.querySelector(".nys-tooltip__wrapper"),t=(p=this.shadowRoot)==null?void 0:p.querySelector(".nys-tooltip__content");if(!e||!t)return;const o=e.getBoundingClientRect(),s=8,r={top:o.top-s,left:o.left-s,bottom:window.innerHeight-o.bottom-s,right:window.innerWidth-o.right-s};let n=["top","bottom","right","left"];if(this._userHasSetPosition&&this._originalUserPosition){const h=this._originalUserPosition;h==="left"?n=["left","right","top","bottom"]:h==="right"?n=["right","left","top","bottom"]:h==="top"?n=["top","bottom","right","left"]:h==="bottom"&&(n=["bottom","top","right","left"])}for(const h of n)if(this._doesPositionFit(h)){this._setInternalPosition(h),await this.updateComplete,this._shiftTooltipIntoViewport(t);return}let d="top",c=r.top;for(const h of n)r[h]>c&&(c=r[h],d=h);this._setInternalPosition(d),await this.updateComplete,this._shiftTooltipIntoViewport(t)}_setInternalPosition(e){this._internallyUpdatingPosition=!0,this.position=e,this._internallyUpdatingPosition=!1}_shiftTooltipIntoViewport(e){var h;const o=((h=this.shadowRoot)==null?void 0:h.querySelector(".nys-tooltip__wrapper")).getBoundingClientRect(),s=e.getBoundingClientRect(),r=o.left+o.width/2,n=s.left<0,d=s.right>window.innerWidth;this._resetTooltipPositioningStyles(e),n?(e.style.left="0px",e.style.transform="none"):d&&(e.style.right="0px",e.style.left="auto",e.style.transform="none");const c=e.getBoundingClientRect(),y=(r-c.left)/c.width,p=Math.max(0,Math.min(1,y))*100;e.style.setProperty("--arrow-offset-x",`${p}%`)}_resetTooltipPositioningStyles(e){e.style.left="",e.style.right="",e.style.transform=""}render(){var e;return l`
5584
+ `;var vo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,Ue=(a,e,t,o)=>{for(var s=o>1?void 0:o?fo(e,t):e,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=(o?n(e,t,s):n(s))||s);return o&&s&&vo(e,t,s),s};let go=0;const zt=class zt extends f{constructor(){super(),this.id="",this.text="",this.inverted=!1,this.focusable=!1,this._active=!1,this._userHasSetPosition=!1,this._originalUserPosition=null,this._internallyUpdatingPosition=!1,this._position=null,this._handleTooltipEnter=()=>{if(this._active=!0,this._addScrollListeners(),this._userHasSetPosition&&this._originalUserPosition&&this._doesPositionFit(this._originalUserPosition)){this.position=this._originalUserPosition,this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._shiftTooltipIntoViewport(e)});return}this.autoPositionTooltip()},this._handleBlurOrMouseLeave=()=>{var t;this._active=!1,this._removeScrollListeners();const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._resetTooltipPositioningStyles(e)},this._handleScrollOrResize=()=>{this._active&&(this._userHasSetPosition&&this._originalUserPosition?this._doesPositionFit(this._originalUserPosition)?(this._setInternalPosition(this._originalUserPosition),this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._shiftTooltipIntoViewport(e)})):this.autoPositionTooltip():this.autoPositionTooltip())},this._handleEscapeKey=e=>{var t;if(e.key==="Escape"&&this._active){this._active=!1,this._removeScrollListeners();const o=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");o&&this._resetTooltipPositioningStyles(o)}}}get position(){return this._position}set position(e){const t=this._position;this._position=e,this.requestUpdate("position",t),this._internallyUpdatingPosition||(this._userHasSetPosition=e!==null,this._originalUserPosition=e)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-tooltip-${Date.now()}-${go++}`),window.addEventListener("keydown",this._handleEscapeKey)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._handleEscapeKey)}get _firstAssignedEl(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&e.addEventListener("slotchange",()=>{const o=this._firstAssignedEl;o&&this._applyFocusBehavior(o)})}updated(e){super.updated(e);const t=this._firstAssignedEl;t&&(e.has("text")&&this._passAria(t),e.has("focusable")&&this._applyFocusBehavior(t))}_addScrollListeners(){window.addEventListener("scroll",this._handleScrollOrResize,!0),window.addEventListener("resize",this._handleScrollOrResize)}_removeScrollListeners(){window.removeEventListener("scroll",this._handleScrollOrResize,!0),window.removeEventListener("resize",this._handleScrollOrResize)}_passAria(e){const t=e.tagName.toLowerCase();if(t.startsWith("nys-"))if(t==="nys-icon"){const o=e.getAttribute("ariaLabel")||"",s=o?`${o}, ${this.text}`:this.text;e.setAttribute("ariaLabel",s)}else e.setAttribute("ariaDescription",this.text)}async _applyFocusBehavior(e){var o;if(!this.focusable)return;if(e.tagName.toLowerCase()==="nys-icon"){"updateComplete"in e&&await e.updateComplete;const s=(o=e.shadowRoot)==null?void 0:o.querySelector("svg");s&&s.setAttribute("tabindex","0")}else e.setAttribute("tabindex","0")}_doesPositionFit(e){var y,p;const t=(y=this.shadowRoot)==null?void 0:y.querySelector(".nys-tooltip__wrapper"),o=(p=this.shadowRoot)==null?void 0:p.querySelector(".nys-tooltip__content");if(!t||!o||e==null)return;const s=t.getBoundingClientRect(),r=o.getBoundingClientRect(),n=8,d={top:s.top-n,left:s.left-n,bottom:window.innerHeight-s.bottom-n,right:window.innerWidth-s.right-n};return{top:d.top>=r.height,bottom:d.bottom>=r.height,left:d.left>=r.width,right:d.right>=r.width}[e]}async autoPositionTooltip(){var y,p;const e=(y=this.shadowRoot)==null?void 0:y.querySelector(".nys-tooltip__wrapper"),t=(p=this.shadowRoot)==null?void 0:p.querySelector(".nys-tooltip__content");if(!e||!t)return;const o=e.getBoundingClientRect(),s=8,r={top:o.top-s,left:o.left-s,bottom:window.innerHeight-o.bottom-s,right:window.innerWidth-o.right-s};let n=["top","bottom","right","left"];if(this._userHasSetPosition&&this._originalUserPosition){const h=this._originalUserPosition;h==="left"?n=["left","right","top","bottom"]:h==="right"?n=["right","left","top","bottom"]:h==="top"?n=["top","bottom","right","left"]:h==="bottom"&&(n=["bottom","top","right","left"])}for(const h of n)if(this._doesPositionFit(h)){this._setInternalPosition(h),await this.updateComplete,this._shiftTooltipIntoViewport(t);return}let d="top",l=r.top;for(const h of n)r[h]>l&&(l=r[h],d=h);this._setInternalPosition(d),await this.updateComplete,this._shiftTooltipIntoViewport(t)}_setInternalPosition(e){this._internallyUpdatingPosition=!0,this.position=e,this._internallyUpdatingPosition=!1}_shiftTooltipIntoViewport(e){var h;const o=((h=this.shadowRoot)==null?void 0:h.querySelector(".nys-tooltip__wrapper")).getBoundingClientRect(),s=e.getBoundingClientRect(),r=o.left+o.width/2,n=s.left<0,d=s.right>window.innerWidth;this._resetTooltipPositioningStyles(e),n?(e.style.left="0px",e.style.transform="none"):d&&(e.style.right="0px",e.style.left="auto",e.style.transform="none");const l=e.getBoundingClientRect(),y=(r-l.left)/l.width,p=Math.max(0,Math.min(1,y))*100;e.style.setProperty("--arrow-offset-x",`${p}%`)}_resetTooltipPositioningStyles(e){e.style.left="",e.style.right="",e.style.transform=""}render(){var e;return c`
5562
5585
  <div class="nys-tooltip__main">
5563
5586
  <div
5564
5587
  class="nys-tooltip__wrapper"
@@ -5571,7 +5594,7 @@ ${this.value}</textarea
5571
5594
  <slot></slot>
5572
5595
  </span>
5573
5596
  </div>
5574
- ${(e=this.text)!=null&&e.trim()?l`<div
5597
+ ${(e=this.text)!=null&&e.trim()?c`<div
5575
5598
  id=${this.id}
5576
5599
  class="nys-tooltip__content"
5577
5600
  role="tooltip"
@@ -5582,7 +5605,7 @@ ${this.value}</textarea
5582
5605
  <span class="nys-tooltip__arrow"></span>
5583
5606
  </div>`:""}
5584
5607
  </div>
5585
- `}};zt.styles=po;let ee=zt;Ue([i({type:String})],ee.prototype,"id",2),Ue([i({type:String})],ee.prototype,"text",2),Ue([i({type:Boolean,reflect:!0})],ee.prototype,"inverted",2),Ue([i({type:Boolean,reflect:!0})],ee.prototype,"focusable",2),Ue([D()],ee.prototype,"_active",2),Ue([i({type:String,reflect:!0})],ee.prototype,"position",1),customElements.get("nys-tooltip")||customElements.define("nys-tooltip",ee);const bo=g`
5608
+ `}};zt.styles=po;let ee=zt;Ue([i({type:String})],ee.prototype,"id",2),Ue([i({type:String})],ee.prototype,"text",2),Ue([i({type:Boolean,reflect:!0})],ee.prototype,"inverted",2),Ue([i({type:Boolean,reflect:!0})],ee.prototype,"focusable",2),Ue([z()],ee.prototype,"_active",2),Ue([i({type:String,reflect:!0})],ee.prototype,"position",1),customElements.get("nys-tooltip")||customElements.define("nys-tooltip",ee);const bo=g`
5586
5609
  :host {
5587
5610
  /* Global Unav Header Styles */
5588
5611
  --_nys-unavheader-padding--gutter: var(--nys-gutter-xs, 20px);
@@ -5859,6 +5882,7 @@ ${this.value}</textarea
5859
5882
  #nys-unavheader__know {
5860
5883
  --_nys-button-padding--x: 0px;
5861
5884
  --_nys-button-padding--y: 0px;
5885
+ --_nys-button-height: var(--nys-space-200, 16px);
5862
5886
  }
5863
5887
 
5864
5888
  .nys-unavheader__trustbar > .content {
@@ -5869,8 +5893,8 @@ ${this.value}</textarea
5869
5893
  }
5870
5894
 
5871
5895
  .nys-unavheader__trustbar.wrapper {
5872
- padding-top: var(--nys-space-2px, 2px);
5873
- padding-bottom: var(--nys-space-2px, 2px);
5896
+ padding-top: var(--nys-space-50, 4px);
5897
+ padding-bottom: var(--nys-space-50, 4px);
5874
5898
  }
5875
5899
 
5876
5900
  .nys-unavheader__trustbar.inline {
@@ -5996,7 +6020,7 @@ ${this.value}</textarea
5996
6020
  <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="#154973"/>
5997
6021
  <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"/>
5998
6022
  <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"/>
5999
- </svg>`;var Co=Object.defineProperty,ze=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Co(e,t,s),s};const Vt=class Vt extends f{constructor(){super(...arguments),this.trustbarVisible=!1,this.searchDropdownVisible=!1,this.languageVisible=!1,this.isSearchFocused=!1,this.hideTranslate=!1,this.hideSearch=!1,this.languages=[["English",""],["Español","es"],["中文","zh"],["繁體中文","zh-traditional"],["Русский","ru"],["יידיש","yi"],["বাংলা","bn"],["한국어","ko"],["Kreyòl Ayisyen","ht"],["Italiano","it"],["العربية","ar"],["Polski","pl"],["Français","fr"],["اردو","ur"]]}_getNysLogo(){return new DOMParser().parseFromString(_o,"image/svg+xml").documentElement}_toggleTrustbar(){this.trustbarVisible=!this.trustbarVisible,this.trustbarVisible?(this.languageVisible=!1,this.searchDropdownVisible=!1,this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.getElementById("nys-unavheader__closetrustbar");e==null||e.focus()})):this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.getElementById("nys-unavheader__know--inline");e==null||e.focus()})}_toggleLanguageList(){this.languageVisible=!this.languageVisible,this.languageVisible&&(this.trustbarVisible=!1,this.searchDropdownVisible=!1)}_toggleSearchDropdown(){this.searchDropdownVisible=!this.searchDropdownVisible,this.searchDropdownVisible&&(this.trustbarVisible=!1,this.languageVisible=!1)}_handleSearchFocus(){this.isSearchFocused=!0,this.trustbarVisible=!1,this.languageVisible=!1}_handleSearchBlur(){this.isSearchFocused=!1}_handleSearchKeyup(e){var t;if(e.key==="Escape"&&(this._handleSearchBlur(),e.target.blur()),e.key==="Enter"){const o=(t=e.target.value)==null?void 0:t.trim();o!==""&&this._handleSearch(o)}}_handleSearchButton(e){var s,r;const o=(r=((s=this.shadowRoot)==null?void 0:s.getElementById(e)).value)==null?void 0:r.trim();o!==""&&this._handleSearch(o)}_handleSearch(e){window.location.href=`https://search.its.ny.gov/search/search.html?btnG=Search&client=default_frontend&output=xml_no_dtd&proxystylesheet=default_frontend&ulang=en&sort=date:D:L:d1&entqr=3&entqrm=0&wc=200&wc_mc=1&oe=UTF-8&ie=UTF-8&ud=1&site=default_collection&q=${e}+inurl:${window.location.hostname}&site=default_collection`}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){return l`
6023
+ </svg>`;var Co=Object.defineProperty,ze=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&Co(e,t,s),s};const Vt=class Vt extends f{constructor(){super(...arguments),this.trustbarVisible=!1,this.searchDropdownVisible=!1,this.languageVisible=!1,this.isSearchFocused=!1,this.hideTranslate=!1,this.hideSearch=!1,this.languages=[["English",""],["Español","es"],["中文","zh"],["繁體中文","zh-traditional"],["Русский","ru"],["יידיש","yi"],["বাংলা","bn"],["한국어","ko"],["Kreyòl Ayisyen","ht"],["Italiano","it"],["العربية","ar"],["Polski","pl"],["Français","fr"],["اردو","ur"]]}_getNysLogo(){return new DOMParser().parseFromString(_o,"image/svg+xml").documentElement}_toggleTrustbar(){this.trustbarVisible=!this.trustbarVisible,this.trustbarVisible?(this.languageVisible=!1,this.searchDropdownVisible=!1,this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.getElementById("nys-unavheader__closetrustbar");e==null||e.focus()})):this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.getElementById("nys-unavheader__know--inline");e==null||e.focus()})}_toggleLanguageList(){this.languageVisible=!this.languageVisible,this.languageVisible&&(this.trustbarVisible=!1,this.searchDropdownVisible=!1)}_toggleSearchDropdown(){this.searchDropdownVisible=!this.searchDropdownVisible,this.searchDropdownVisible&&(this.trustbarVisible=!1,this.languageVisible=!1)}_handleSearchFocus(){this.isSearchFocused=!0,this.trustbarVisible=!1,this.languageVisible=!1}_handleSearchBlur(){this.isSearchFocused=!1}_handleSearchKeyup(e){var t;if(e.key==="Escape"&&(this._handleSearchBlur(),e.target.blur()),e.key==="Enter"){const o=(t=e.target.value)==null?void 0:t.trim();o!==""&&this._handleSearch(o)}}_handleSearchButton(e){var s,r;const o=(r=((s=this.shadowRoot)==null?void 0:s.getElementById(e)).value)==null?void 0:r.trim();o!==""&&this._handleSearch(o)}_handleSearch(e){window.location.href=`https://search.its.ny.gov/search/search.html?btnG=Search&client=default_frontend&output=xml_no_dtd&proxystylesheet=default_frontend&ulang=en&sort=date:D:L:d1&entqr=3&entqrm=0&wc=200&wc_mc=1&oe=UTF-8&ie=UTF-8&ud=1&site=default_collection&q=${e}+inurl:${window.location.hostname}&site=default_collection`}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){return c`
6000
6024
  <header class="nys-unavheader">
6001
6025
  <div
6002
6026
  class="nys-unavheader__trustbar wrapper"
@@ -6096,7 +6120,7 @@ ${this.value}</textarea
6096
6120
  </nys-button>
6097
6121
  </div>
6098
6122
  <div class="nys-unavheader__spacer"></div>
6099
- ${this.hideTranslate?null:l`<div class="nys-unavheader__translatewrapper">
6123
+ ${this.hideTranslate?null:c`<div class="nys-unavheader__translatewrapper">
6100
6124
  <nys-button
6101
6125
  variant="ghost"
6102
6126
  circle
@@ -6113,7 +6137,7 @@ ${this.value}</textarea
6113
6137
  ></nys-icon>
6114
6138
  </nys-button>
6115
6139
 
6116
- ${this.isSearchFocused?null:l`
6140
+ ${this.isSearchFocused?null:c`
6117
6141
  <nys-button
6118
6142
  variant="ghost"
6119
6143
  label="Translate"
@@ -6128,7 +6152,7 @@ ${this.value}</textarea
6128
6152
  <div
6129
6153
  class="nys-unavheader__languagelist ${this.languageVisible?"show":"hide"}"
6130
6154
  >
6131
- ${this.languages.map(([e,t])=>l`<a
6155
+ ${this.languages.map(([e,t])=>c`<a
6132
6156
  class="nys-unavheader__languagelink"
6133
6157
  target="_self"
6134
6158
  href="https://${t?t+".":""}${window.location.hostname}"
@@ -6136,7 +6160,7 @@ ${this.value}</textarea
6136
6160
  >`)}
6137
6161
  </div>
6138
6162
  </div>`}
6139
- ${this.hideSearch?null:l`
6163
+ ${this.hideSearch?null:c`
6140
6164
  <nys-button
6141
6165
  variant="ghost"
6142
6166
  circle
@@ -6196,7 +6220,7 @@ ${this.value}</textarea
6196
6220
  </div>
6197
6221
  </div>
6198
6222
  </header>
6199
- `}};Vt.styles=bo;let W=Vt;ze([i({type:Boolean})],W.prototype,"trustbarVisible"),ze([i({type:Boolean})],W.prototype,"searchDropdownVisible"),ze([i({type:Boolean})],W.prototype,"languageVisible"),ze([i({type:Boolean})],W.prototype,"isSearchFocused"),ze([i({type:Boolean})],W.prototype,"hideTranslate"),ze([i({type:Boolean})],W.prototype,"hideSearch"),ze([i({type:Array,reflect:!0})],W.prototype,"languages"),customElements.get("nys-unavheader")||customElements.define("nys-unavheader",W);const mo=g`
6223
+ `}};Vt.styles=bo;let Y=Vt;ze([i({type:Boolean})],Y.prototype,"trustbarVisible"),ze([i({type:Boolean})],Y.prototype,"searchDropdownVisible"),ze([i({type:Boolean})],Y.prototype,"languageVisible"),ze([i({type:Boolean})],Y.prototype,"isSearchFocused"),ze([i({type:Boolean})],Y.prototype,"hideTranslate"),ze([i({type:Boolean})],Y.prototype,"hideSearch"),ze([i({type:Array,reflect:!0})],Y.prototype,"languages"),customElements.get("nys-unavheader")||customElements.define("nys-unavheader",Y);const mo=g`
6200
6224
  :host {
6201
6225
  /* Global Header Styles */
6202
6226
  --_nys-globalheader-color: var(
@@ -6504,10 +6528,10 @@ ${this.value}</textarea
6504
6528
  var(--nys-space-800, 64px) 0;
6505
6529
  }
6506
6530
  }
6507
- `;var xo=Object.defineProperty,Je=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&xo(e,t,s),s};const Ht=class Ht extends f{constructor(){super(...arguments),this.appName="",this.agencyName="",this.homepageLink="",this.slotHasContent=!0,this.isMobileMenuOpen=!1}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange(),this._listenLinkClicks()}async _handleSlotChange(){var r,n,d;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e==null?void 0:e.assignedNodes({flatten:!0}).filter(c=>c.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=t.length>0;const o=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-globalheader__content"),s=(d=this.shadowRoot)==null?void 0:d.querySelector(".nys-globalheader__content-mobile");if(o&&s){o.innerHTML="",s.innerHTML="";const c=this._normalizePath(window.location.pathname+window.location.hash);t.forEach(y=>{if(y.nodeType===Node.ELEMENT_NODE){const p=y.cloneNode(!0),h=y.cloneNode(!0);["script","iframe","object","embed, img"].forEach(ye=>{p.querySelectorAll(ye).forEach(we=>we.remove())});const E=ye=>{const we=Array.from(ye.querySelectorAll("a"));let ct={li:null,length:0};we.forEach(Pt=>{var b1;const Lo=Pt.getAttribute("href"),et=this._normalizePath(Lo);et&&(et==="/"&&c==="/"?ct={li:Pt.closest("li"),length:1}:c!=null&&c.startsWith(et)&&et.length>ct.length&&(ct={li:Pt.closest("li"),length:et.length}),we.forEach(Eo=>{var _1;return(_1=Eo.closest("li"))==null?void 0:_1.classList.remove("active")}),(b1=ct.li)==null||b1.classList.add("active"))})};E(p),E(h),o.appendChild(p),s.appendChild(h),y.remove()}})}}_normalizePath(e){if(e)return e.startsWith("/")||(e="/"+e),e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1)),e.toLowerCase()}_toggleMobileMenu(){this.isMobileMenuOpen=!this.isMobileMenuOpen}_listenLinkClicks(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll(".nys-globalheader__content, .nys-globalheader__content-mobile");e==null||e.forEach(o=>{o==null||o.addEventListener("click",s=>{const n=s.target.closest("a");if(!n)return;o.querySelectorAll("li.active").forEach(c=>c.classList.remove("active"));const d=n.closest("li");d&&d.classList.add("active")})})}render(){var e,t,o,s,r,n,d,c;return l`
6531
+ `;var xo=Object.defineProperty,Je=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&xo(e,t,s),s};const Ht=class Ht extends f{constructor(){super(...arguments),this.appName="",this.agencyName="",this.homepageLink="",this.slotHasContent=!0,this.isMobileMenuOpen=!1}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange(),this._listenLinkClicks()}async _handleSlotChange(){var r,n,d;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e==null?void 0:e.assignedNodes({flatten:!0}).filter(l=>l.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=t.length>0;const o=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-globalheader__content"),s=(d=this.shadowRoot)==null?void 0:d.querySelector(".nys-globalheader__content-mobile");if(o&&s){o.innerHTML="",s.innerHTML="";const l=this._normalizePath(window.location.pathname+window.location.hash);t.forEach(y=>{if(y.nodeType===Node.ELEMENT_NODE){const p=y.cloneNode(!0),h=y.cloneNode(!0);["script","iframe","object","embed, img"].forEach(ye=>{p.querySelectorAll(ye).forEach(we=>we.remove())});const E=ye=>{const we=Array.from(ye.querySelectorAll("a"));let ct={li:null,length:0};we.forEach(Pt=>{var b1;const Lo=Pt.getAttribute("href"),et=this._normalizePath(Lo);et&&(et==="/"&&l==="/"?ct={li:Pt.closest("li"),length:1}:l!=null&&l.startsWith(et)&&et.length>ct.length&&(ct={li:Pt.closest("li"),length:et.length}),we.forEach(Eo=>{var _1;return(_1=Eo.closest("li"))==null?void 0:_1.classList.remove("active")}),(b1=ct.li)==null||b1.classList.add("active"))})};E(p),E(h),o.appendChild(p),s.appendChild(h),y.remove()}})}}_normalizePath(e){if(e)return e.startsWith("/")||(e="/"+e),e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1)),e.toLowerCase()}_toggleMobileMenu(){this.isMobileMenuOpen=!this.isMobileMenuOpen}_listenLinkClicks(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll(".nys-globalheader__content, .nys-globalheader__content-mobile");e==null||e.forEach(o=>{o==null||o.addEventListener("click",s=>{const n=s.target.closest("a");if(!n)return;o.querySelectorAll("li.active").forEach(l=>l.classList.remove("active"));const d=n.closest("li");d&&d.classList.add("active")})})}render(){var e,t,o,s,r,n,d,l;return c`
6508
6532
  <header class="nys-globalheader">
6509
6533
  <div class="nys-globalheader__main-container">
6510
- ${this.slotHasContent?l` <div class="nys-globalheader__button-container">
6534
+ ${this.slotHasContent?c` <div class="nys-globalheader__button-container">
6511
6535
  <button
6512
6536
  class="nys-globalheader__mobile-menu-button"
6513
6537
  @click="${this._toggleMobileMenu}"
@@ -6522,37 +6546,37 @@ ${this.value}</textarea
6522
6546
  >
6523
6547
  </button>
6524
6548
  </div>`:""}
6525
- ${(e=this.homepageLink)!=null&&e.trim()?l`<a
6549
+ ${(e=this.homepageLink)!=null&&e.trim()?c`<a
6526
6550
  class="nys-globalheader__name-container-link"
6527
6551
  href=${(r=this.homepageLink)==null?void 0:r.trim()}
6528
6552
  >
6529
6553
  <div class="nys-globalheader__name-container">
6530
- ${((n=this.appName)==null?void 0:n.trim().length)>0?l`<div
6554
+ ${((n=this.appName)==null?void 0:n.trim().length)>0?c`<div
6531
6555
  class="nys-globalheader__appName nys-globalheader__name"
6532
6556
  >
6533
6557
  ${this.appName}
6534
6558
  </div> `:""}
6535
- ${((d=this.agencyName)==null?void 0:d.trim().length)>0?l`<div
6536
- class="nys-globalheader__agencyName nys-globalheader__name ${((c=this.appName)==null?void 0:c.trim().length)>0?"":"main"}"
6559
+ ${((d=this.agencyName)==null?void 0:d.trim().length)>0?c`<div
6560
+ class="nys-globalheader__agencyName nys-globalheader__name ${((l=this.appName)==null?void 0:l.trim().length)>0?"":"main"}"
6537
6561
  >
6538
6562
  ${this.agencyName}
6539
6563
  </div> `:""}
6540
6564
  </div>
6541
- </a>`:l`
6565
+ </a>`:c`
6542
6566
  <div class="nys-globalheader__name-container">
6543
- ${((t=this.appName)==null?void 0:t.trim().length)>0?l`<div
6567
+ ${((t=this.appName)==null?void 0:t.trim().length)>0?c`<div
6544
6568
  class="nys-globalheader__appName nys-globalheader__name"
6545
6569
  >
6546
6570
  ${this.appName}
6547
6571
  </div> `:""}
6548
- ${((o=this.agencyName)==null?void 0:o.trim().length)>0?l`<div
6572
+ ${((o=this.agencyName)==null?void 0:o.trim().length)>0?c`<div
6549
6573
  class="nys-globalheader__agencyName nys-globalheader__name ${((s=this.appName)==null?void 0:s.trim().length)>0?"":"main"}"
6550
6574
  >
6551
6575
  ${this.agencyName}
6552
6576
  </div> `:""}
6553
6577
  </div>
6554
6578
  `}
6555
- ${this.slotHasContent?l`<div class="nys-globalheader__content">
6579
+ ${this.slotHasContent?c`<div class="nys-globalheader__content">
6556
6580
  <slot
6557
6581
  style="display: hidden"
6558
6582
  @slotchange="${this._handleSlotChange}"
@@ -6563,7 +6587,7 @@ ${this.value}</textarea
6563
6587
  <div
6564
6588
  class="nys-globalheader__content-mobile ${this.isMobileMenuOpen?"":"close"}"
6565
6589
  ></div>
6566
- `}};Ht.styles=mo;let ie=Ht;Je([i({type:String})],ie.prototype,"appName"),Je([i({type:String})],ie.prototype,"agencyName"),Je([i({type:String})],ie.prototype,"homepageLink"),Je([D()],ie.prototype,"slotHasContent"),Je([D()],ie.prototype,"isMobileMenuOpen"),customElements.get("nys-globalheader")||customElements.define("nys-globalheader",ie);const wo=g`
6590
+ `}};Ht.styles=mo;let ie=Ht;Je([i({type:String})],ie.prototype,"appName"),Je([i({type:String})],ie.prototype,"agencyName"),Je([i({type:String})],ie.prototype,"homepageLink"),Je([z()],ie.prototype,"slotHasContent"),Je([z()],ie.prototype,"isMobileMenuOpen"),customElements.get("nys-globalheader")||customElements.define("nys-globalheader",ie);const wo=g`
6567
6591
  :host {
6568
6592
  /* Global Footer Styles */
6569
6593
  --_nys-globalfooter-color: var(
@@ -6586,7 +6610,14 @@ ${this.value}</textarea
6586
6610
  var(--nys-font-size-md, 16px)
6587
6611
  );
6588
6612
  --_nys-globalfooter-line-height--agency: normal;
6589
- --_nys-globalfooter-font-weight: var(--nys-font-weight-semibold, 600);
6613
+ --_nys-globalfooter-font-weight--regular: var(
6614
+ --nys-font-weight-regular,
6615
+ 400
6616
+ );
6617
+ --_nys-globalfooter-font-weight--semibold: var(
6618
+ --nys-font-weight-semibold,
6619
+ 600
6620
+ );
6590
6621
  --_nys-globalfooter-max-width: var(--nys-max-content-width, 1280px);
6591
6622
 
6592
6623
  /* Agency Name */
@@ -6620,6 +6651,10 @@ ${this.value}</textarea
6620
6651
  )
6621
6652
  );
6622
6653
  --_nys-globalfooter-text-decoration-thickness: var(--nys-size-2px, 2px);
6654
+
6655
+ /* Divider */
6656
+ --_nys-globalfooter-background--divider: var(--nys-color-theme, #154973);
6657
+ --_nys-globalfooter-margin--divider: var(--nys-space-50, 4px);
6623
6658
  }
6624
6659
 
6625
6660
  .nys-globalfooter {
@@ -6633,7 +6668,7 @@ ${this.value}</textarea
6633
6668
  box-sizing: border-box;
6634
6669
  }
6635
6670
 
6636
- /* Main Container */
6671
+ /** Main Container **/
6637
6672
  .nys-globalfooter__main-container {
6638
6673
  display: flex;
6639
6674
  flex-direction: column;
@@ -6650,12 +6685,12 @@ ${this.value}</textarea
6650
6685
  font-family: var(--_nys-globalfooter-font-family--agency);
6651
6686
  font-size: var(--_nys-globalfooter-font-size--agency);
6652
6687
  font-style: normal;
6653
- font-weight: var(--_nys-globalfooter-font-weight);
6688
+ font-weight: var(--_nys-globalfooter-font-weight--semibold);
6654
6689
  line-height: var(--_nys-globalfooter-line-height--agency);
6655
6690
  letter-spacing: normal;
6656
6691
  }
6657
6692
 
6658
- /* Slotted content (menu links) basic resets */
6693
+ /** Slotted content resets (menu links - cloned into shadowDOM from lightDOM) **/
6659
6694
  ul {
6660
6695
  list-style-type: none;
6661
6696
  padding: 0;
@@ -6667,17 +6702,22 @@ ${this.value}</textarea
6667
6702
  padding: 0;
6668
6703
  }
6669
6704
 
6670
- a {
6705
+ a,
6706
+ span {
6671
6707
  color: var(--_nys-globalfooter-color);
6672
6708
  text-decoration: none;
6673
6709
  font-family: var(--_nys-globalfooter-font-family--link);
6674
6710
  font-size: var(--_nys-globalfooter-font-size--link);
6675
6711
  font-style: normal;
6676
- font-weight: var(--_nys-globalfooter-font-weight);
6712
+ font-weight: var(--_nys-globalfooter-font-weight--semibold);
6677
6713
  line-height: var(--_nys-globalfooter-line-height--link);
6678
6714
  letter-spacing: var(--_nys-globalfooter-letter-spacing);
6679
6715
  }
6680
6716
 
6717
+ ul li > span + ul li a {
6718
+ font-weight: var(--_nys-globalfooter-font-weight--regular);
6719
+ }
6720
+
6681
6721
  a:hover {
6682
6722
  text-decoration: underline;
6683
6723
  }
@@ -6687,20 +6727,47 @@ ${this.value}</textarea
6687
6727
  );
6688
6728
  }
6689
6729
 
6690
- /* Specific layout for menu links (grouped or singular list of menus) */
6730
+ /** Specific layout for menu links (grouped or singular list of menus) **/
6691
6731
  .nys-globalfooter__content {
6692
6732
  width: 100%;
6693
6733
  }
6694
6734
 
6695
6735
  .nys-globalfooter__content ul {
6696
6736
  display: flex;
6737
+ flex-direction: column;
6697
6738
  gap: var(--_nys-globalfooter-row-gap) var(--_nys-globalfooter-column-gap);
6698
6739
  flex-wrap: wrap;
6699
6740
  }
6700
6741
 
6742
+ /** Column Menus **/
6743
+ .nys-globalfooter__content ul li:has(span + ul) {
6744
+ flex: 1 0 205px;
6745
+ display: flex;
6746
+ flex-direction: column;
6747
+ gap: var(--nys-space-300, 24px);
6748
+ }
6749
+
6750
+ .nys-globalfooter__content ul li > span::after {
6751
+ content: "";
6752
+ display: block;
6753
+ height: 1px;
6754
+ width: 100%;
6755
+ background: var(--_nys-globalfooter-background--divider);
6756
+ margin-top: var(--_nys-globalfooter-margin--divider);
6757
+ }
6758
+
6759
+ .nys-globalfooter__content ul li > span + ul {
6760
+ display: flex;
6761
+ flex-direction: column;
6762
+ gap: var(--nys-space-200, 16px);
6763
+ }
6764
+
6701
6765
  /* Breakpoints using NYSDS Guidelines (Menu Links) */
6702
6766
  @media (min-width: 768px) {
6703
6767
  /* Tablet (MD - Above 768px) */
6768
+ .nys-globalfooter__content ul {
6769
+ flex-direction: row;
6770
+ }
6704
6771
  :host {
6705
6772
  --_nys-globalfooter-padding--gutter: var(--nys-gutter-lg, 32px);
6706
6773
  --_nys-globalfooter-row-gap: var(--nys-space-600, 48px);
@@ -6713,13 +6780,13 @@ ${this.value}</textarea
6713
6780
  --_nys-globalfooter-padding--gutter: var(--nys-gutter-xl, 64px);
6714
6781
  }
6715
6782
  }
6716
- `;var ko=Object.defineProperty,Ct=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&ko(e,t,s),s};const It=class It extends f{constructor(){super(...arguments),this.agencyName="",this.homepageLink="",this.slotHasContent=!0}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var r,n;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e==null?void 0:e.assignedNodes({flatten:!0}).filter(d=>d.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=t.length>0;const o=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-globalfooter__content"),s=t==null?void 0:t.some(d=>d.tagName==="H4");o&&(o.classList.toggle("columns",s),o.classList.toggle("small",!s),o.innerHTML="",t.forEach(d=>{if(d.nodeType===Node.ELEMENT_NODE){const c=d.cloneNode(!0);["script","iframe","object","embed","img"].forEach(p=>{c.querySelectorAll(p).forEach(h=>h.remove())}),o.appendChild(c),d.remove()}}))}render(){var e,t;return l`
6783
+ `;var ko=Object.defineProperty,Ct=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&ko(e,t,s),s};const Bt=class Bt extends f{constructor(){super(...arguments),this.agencyName="",this.homepageLink="",this.slotHasContent=!0}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var r,n;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e==null?void 0:e.assignedNodes({flatten:!0}).filter(d=>d.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=t.length>0;const o=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-globalfooter__content"),s=t==null?void 0:t.some(d=>d.tagName==="H4");o&&(o.classList.toggle("columns",s),o.classList.toggle("small",!s),o.innerHTML="",t.forEach(d=>{if(d.nodeType===Node.ELEMENT_NODE){const l=d.cloneNode(!0);["script","iframe","object","embed","img"].forEach(p=>{l.querySelectorAll(p).forEach(h=>h.remove())}),o.appendChild(l),d.remove()}}))}render(){var e,t;return c`
6717
6784
  <footer class="nys-globalfooter">
6718
6785
  <div class="nys-globalfooter__main-container">
6719
- ${(e=this.homepageLink)!=null&&e.trim()?l`<a href=${(t=this.homepageLink)==null?void 0:t.trim()}>
6786
+ ${(e=this.homepageLink)!=null&&e.trim()?c`<a href=${(t=this.homepageLink)==null?void 0:t.trim()}>
6720
6787
  <p class="nys-globalfooter__name">${this.agencyName}</p>
6721
- </a>`:l`<p class="nys-globalfooter__name">${this.agencyName}</p>`}
6722
- ${this.slotHasContent?l`<div class="nys-globalfooter__content">
6788
+ </a>`:c`<p class="nys-globalfooter__name">${this.agencyName}</p>`}
6789
+ ${this.slotHasContent?c`<div class="nys-globalfooter__content">
6723
6790
  <slot
6724
6791
  style="display: hidden"
6725
6792
  @slotchange="${this._handleSlotChange}"
@@ -6727,7 +6794,7 @@ ${this.value}</textarea
6727
6794
  </div>`:""}
6728
6795
  </div>
6729
6796
  </footer>
6730
- `}};It.styles=wo;let Ve=It;Ct([i({type:String})],Ve.prototype,"agencyName"),Ct([i({type:String})],Ve.prototype,"homepageLink"),Ct([D()],Ve.prototype,"slotHasContent"),customElements.get("nys-globalfooter")||customElements.define("nys-globalfooter",Ve);const $o=g`
6797
+ `}};Bt.styles=wo;let Ve=Bt;Ct([i({type:String})],Ve.prototype,"agencyName"),Ct([i({type:String})],Ve.prototype,"homepageLink"),Ct([z()],Ve.prototype,"slotHasContent"),customElements.get("nys-globalfooter")||customElements.define("nys-globalfooter",Ve);const $o=g`
6731
6798
  :host {
6732
6799
  /* Global Footer Styles */
6733
6800
  --_nys-unavfooter-color: var(
@@ -6892,7 +6959,7 @@ ${this.value}</textarea
6892
6959
  <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"/>
6893
6960
  <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"/>
6894
6961
  <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"/>
6895
- </svg>`,Bt=class Bt extends f{_getNysLogo(){return new DOMParser().parseFromString(So,"image/svg+xml").documentElement}render(){return l`
6962
+ </svg>`,It=class It extends f{_getNysLogo(){return new DOMParser().parseFromString(So,"image/svg+xml").documentElement}render(){return c`
6896
6963
  <footer class="nys-unavfooter">
6897
6964
  <div class="nys-unavfooter__main-container">
6898
6965
  <div class="nys-unavfooter__container_menu">
@@ -6920,5 +6987,5 @@ ${this.value}</textarea
6920
6987
  </div>
6921
6988
  </div>
6922
6989
  </footer>
6923
- `}};Bt.styles=$o;let it=Bt;customElements.get("nys-unavfooter")||customElements.define("nys-unavfooter",it),v.NysAccordion=Le,v.NysAccordionItem=te,v.NysAlert=e1,v.NysAvatar=I,v.NysBacktotop=fe,v.NysBadge=s1,v.NysButton=t1,v.NysCheckbox=n1,v.NysCheckboxgroup=r1,v.NysDivider=Ye,v.NysErrorMessage=Ee,v.NysFileinput=$,v.NysGlobalFooter=Ve,v.NysGlobalHeader=ie,v.NysIcon=i1,v.NysLabel=Q,v.NysModal=a1,v.NysOption=_e,v.NysPagination=re,v.NysRadiobutton=d1,v.NysRadiogroup=c1,v.NysSelect=h1,v.NysSkipnav=Oe,v.NysStep=j,v.NysStepper=ne,v.NysTextarea=p1,v.NysTextinput=v1,v.NysToggle=f1,v.NysTooltip=ee,v.NysUnavFooter=it,v.NysUnavHeader=W,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
6990
+ `}};It.styles=$o;let it=It;customElements.get("nys-unavfooter")||customElements.define("nys-unavfooter",it),v.NysAccordion=Le,v.NysAccordionItem=te,v.NysAlert=e1,v.NysAvatar=Z,v.NysBacktotop=fe,v.NysBadge=s1,v.NysButton=t1,v.NysCheckbox=n1,v.NysCheckboxgroup=r1,v.NysDivider=Ye,v.NysErrorMessage=Ee,v.NysFileinput=k,v.NysGlobalFooter=Ve,v.NysGlobalHeader=ie,v.NysIcon=i1,v.NysLabel=J,v.NysModal=a1,v.NysOption=_e,v.NysPagination=re,v.NysRadiobutton=d1,v.NysRadiogroup=c1,v.NysSelect=h1,v.NysSkipnav=Ze,v.NysStep=G,v.NysStepper=ne,v.NysTextarea=p1,v.NysTextinput=v1,v.NysToggle=f1,v.NysTooltip=ee,v.NysUnavFooter=it,v.NysUnavHeader=Y,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
6924
6991
  //# sourceMappingURL=nysds.js.map