@nysds/components 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nysds.es.js +1016 -827
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +228 -102
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-skipnav/src/index.d.ts +1 -0
- package/dist/packages/nys-skipnav/src/nys-skipnav.d.ts +13 -0
- package/dist/packages/nys-skipnav/src/nys-skipnav.styles.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +4 -4
package/dist/nysds.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(_,c1){typeof exports=="object"&&typeof module<"u"?c1(exports):typeof define=="function"&&define.amd?define(["exports"],c1):(_=typeof globalThis<"u"?globalThis:_||self,c1(_.NYSDS={}))})(this,function(_){"use strict";/*!
|
|
2
|
-
* New York State Design System (v1.1.
|
|
2
|
+
* New York State Design System (v1.1.8)
|
|
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,29 +7,29 @@
|
|
|
7
7
|
* @license
|
|
8
8
|
* Copyright 2019 Google LLC
|
|
9
9
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10
|
-
*/var
|
|
10
|
+
*/var h5,_1,b1,P,o1,n1,m1,i1,g,a1,W,Y,l1;const c1=globalThis,X2=c1.ShadowRoot&&(c1.ShadyCSS===void 0||c1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Q2=Symbol(),Ut=new WeakMap;let zt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Q2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(X2&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Ut.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Ut.set(e,t))}return t}toString(){return this.cssText}};const p5=o=>new zt(typeof o=="string"?o:o+"",void 0,Q2),b=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((s,r,i)=>s+(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.")})(r)+o[i+1],o[0]);return new zt(e,o,Q2)},f5=(o,t)=>{if(X2)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=c1.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},Pt=X2?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return p5(e)})(o):o;/**
|
|
11
11
|
* @license
|
|
12
12
|
* Copyright 2017 Google LLC
|
|
13
13
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
14
|
-
*/const{is:
|
|
14
|
+
*/const{is:v5,defineProperty:g5,getOwnPropertyDescriptor:_5,getOwnPropertyNames:b5,getOwnPropertySymbols:m5,getPrototypeOf:w5}=Object,h1=globalThis,Zt=h1.trustedTypes,x5=Zt?Zt.emptyScript:"",tt=h1.reactiveElementPolyfillSupport,X1=(o,t)=>o,k2={toAttribute(o,t){switch(t){case Boolean:o=o?x5:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},et=(o,t)=>!v5(o,t),Ot={attribute:!0,type:String,converter:k2,reflect:!1,hasChanged:et};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),h1.litPropertyMetadata??(h1.litPropertyMetadata=new WeakMap);let O1=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ot){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&g5(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:i}=_5(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const l=r==null?void 0:r.call(this);i.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ot}static _$Ei(){if(this.hasOwnProperty(X1("elementProperties")))return;const t=w5(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(X1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(X1("properties"))){const e=this.properties,s=[...b5(e),...m5(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(Pt(r))}else t!==void 0&&e.push(Pt(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return f5(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var i;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){const n=(((i=s.converter)==null?void 0:i.toAttribute)!==void 0?s.converter:k2).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){var i;const s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const n=s.getPropertyOptions(r),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)==null?void 0:i.fromAttribute)!==void 0?n.converter:k2;this._$Em=r,this[r]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??et)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var i;return(i=r.hostUpdate)==null?void 0:i.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};O1.elementStyles=[],O1.shadowRootOptions={mode:"open"},O1[X1("elementProperties")]=new Map,O1[X1("finalized")]=new Map,tt==null||tt({ReactiveElement:O1}),(h1.reactiveElementVersions??(h1.reactiveElementVersions=[])).push("2.0.4");/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2017 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
-
*/const
|
|
19
|
-
\f\r]`,
|
|
20
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
18
|
+
*/const Q1=globalThis,$2=Q1.trustedTypes,It=$2?$2.createPolicy("lit-html",{createHTML:o=>o}):void 0,Tt="$lit$",d1=`lit$${Math.random().toFixed(9).slice(2)}$`,Bt="?"+d1,k5=`<${Bt}>`,w1=document,t2=()=>w1.createComment(""),e2=o=>o===null||typeof o!="object"&&typeof o!="function",st=Array.isArray,$5=o=>st(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",rt=`[
|
|
19
|
+
\f\r]`,s2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rt=/-->/g,Nt=/>/g,x1=RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
20
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,jt=/"/g,Ft=/^(?:script|style|textarea|title)$/i,S5=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=S5(1),I1=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),Gt=new WeakMap,k1=w1.createTreeWalker(w1,129);function Wt(o,t){if(!st(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return It!==void 0?It.createHTML(t):t}const L5=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=s2;for(let l=0;l<e;l++){const c=o[l];let C,y,d=-1,u=0;for(;u<c.length&&(n.lastIndex=u,y=n.exec(c),y!==null);)u=n.lastIndex,n===s2?y[1]==="!--"?n=Rt:y[1]!==void 0?n=Nt:y[2]!==void 0?(Ft.test(y[2])&&(r=RegExp("</"+y[2],"g")),n=x1):y[3]!==void 0&&(n=x1):n===x1?y[0]===">"?(n=r??s2,d=-1):y[1]===void 0?d=-2:(d=n.lastIndex-y[2].length,C=y[1],n=y[3]===void 0?x1:y[3]==='"'?jt:qt):n===jt||n===qt?n=x1:n===Rt||n===Nt?n=s2:(n=x1,r=void 0);const f=n===x1&&o[l+1].startsWith("/>")?" ":"";i+=n===s2?c+k5:d>=0?(s.push(C),c.slice(0,d)+Tt+c.slice(d)+d1+f):c+d1+(d===-2?l:f)}return[Wt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let ot=class d5{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const l=t.length-1,c=this.parts,[C,y]=L5(t,e);if(this.el=d5.createElement(C,s),k1.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=k1.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(Tt)){const u=y[n++],f=r.getAttribute(d).split(d1),O=/([.?@])?(.*)/.exec(u);c.push({type:1,index:i,name:O[2],strings:f,ctor:O[1]==="."?M5:O[1]==="?"?A5:O[1]==="@"?D5:S2}),r.removeAttribute(d)}else d.startsWith(d1)&&(c.push({type:6,index:i}),r.removeAttribute(d));if(Ft.test(r.tagName)){const d=r.textContent.split(d1),u=d.length-1;if(u>0){r.textContent=$2?$2.emptyScript:"";for(let f=0;f<u;f++)r.append(d[f],t2()),k1.nextNode(),c.push({type:2,index:++i});r.append(d[u],t2())}}}else if(r.nodeType===8)if(r.data===Bt)c.push({type:2,index:i});else{let d=-1;for(;(d=r.data.indexOf(d1,d+1))!==-1;)c.push({type:7,index:i}),d+=d1.length-1}i++}}static createElement(t,e){const s=w1.createElement("template");return s.innerHTML=t,s}};function T1(o,t,e=o,s){var n,l;if(t===I1)return t;let r=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl;const i=e2(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==i&&((l=r==null?void 0:r._$AO)==null||l.call(r,!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=r:e._$Cl=r),r!==void 0&&(t=T1(o,r._$AS(o,t.values),r,s)),t}let E5=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??w1).importNode(e,!0);k1.currentNode=r;let i=k1.nextNode(),n=0,l=0,c=s[0];for(;c!==void 0;){if(n===c.index){let C;c.type===2?C=new nt(i,i.nextSibling,this,t):c.type===1?C=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(C=new H5(i,this,t)),this._$AV.push(C),c=s[++l]}n!==(c==null?void 0:c.index)&&(i=k1.nextNode(),n++)}return k1.currentNode=w1,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},nt=class C5{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T1(this,t,e),e2(t)?t===S||t==null||t===""?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==I1&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):$5(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==S&&e2(this._$AH)?this._$AA.nextSibling.data=t:this.T(w1.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=ot.createElement(Wt(s.h,s.h[0]),this.options)),s);if(((i=this._$AH)==null?void 0:i._$AD)===r)this._$AH.p(e);else{const n=new E5(r,this),l=n.u(this.options);n.p(e),this.T(l),this._$AH=n}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new ot(t)),e}k(t){st(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new C5(this.O(t2()),this.O(t2()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},S2=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=S}_$AI(t,e=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=T1(this,t,e,0),n=!e2(t)||t!==this._$AH&&t!==I1,n&&(this._$AH=t);else{const l=t;let c,C;for(t=i[0],c=0;c<i.length-1;c++)C=T1(this,l[s+c],e,c),C===I1&&(C=this._$AH[c]),n||(n=!e2(C)||C!==this._$AH[c]),C===S?t=S:t!==S&&(t+=(C??"")+i[c+1]),this._$AH[c]=C}n&&!r&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},M5=class extends S2{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}},A5=class extends S2{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==S)}},D5=class extends S2{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=T1(this,t,e,0)??S)===I1)return;const s=this._$AH,r=t===S&&s!==S||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==S&&(s===S||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}},H5=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){T1(this,t)}};const it=Q1.litHtmlPolyfillSupport;it==null||it(ot,nt),(Q1.litHtmlVersions??(Q1.litHtmlVersions=[])).push("3.2.1");const V5=(o,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let r=s._$litPart$;if(r===void 0){const i=(e==null?void 0:e.renderBefore)??null;s._$litPart$=r=new nt(t.insertBefore(t2(),i),i,void 0,e??{})}return r._$AI(o),r};/**
|
|
21
21
|
* @license
|
|
22
22
|
* Copyright 2017 Google LLC
|
|
23
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
24
|
-
*/let p=class extends O1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=
|
|
24
|
+
*/let p=class extends O1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=V5(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return I1}};p._$litElement$=!0,p.finalized=!0,(h5=globalThis.litElementHydrateSupport)==null||h5.call(globalThis,{LitElement:p});const at=globalThis.litElementPolyfillSupport;at==null||at({LitElement:p}),(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
|
|
28
|
+
*/const U5={attribute:!0,type:String,converter:k2,reflect:!1,hasChanged:et},z5=(o=U5,t,e)=>{const{kind:s,metadata:r}=e;let i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),i.set(e.name,o),s==="accessor"){const{name:n}=e;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,c,o)},init(l){return l!==void 0&&this.P(n,void 0,o),l}}}if(s==="setter"){const{name:n}=e;return function(l){const c=this[n];t.call(this,l),this.requestUpdate(n,c,o)}}throw Error("Unsupported decorator location: "+s)};function a(o){return(t,e)=>typeof e=="object"?z5(o,t,e):((s,r,i)=>{const n=r.hasOwnProperty(i);return r.constructor.createProperty(i,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(r,i):void 0})(o,t,e)}/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/function $1(o){return a({...o,state:!0,attribute:!1})}const
|
|
32
|
+
*/function $1(o){return a({...o,state:!0,attribute:!1})}const P5=b`
|
|
33
33
|
:host {
|
|
34
34
|
/* Global Alert Styles */
|
|
35
35
|
--_nys-alert-border-width: var(--nys-border-width-lg, 4px);
|
|
@@ -107,6 +107,19 @@
|
|
|
107
107
|
text-align: left;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
p {
|
|
111
|
+
margin: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
::slotted(p) {
|
|
115
|
+
margin-bottom: 0 !important;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Icon */
|
|
119
|
+
.nys-alert__icon {
|
|
120
|
+
margin-top: -1.5px;
|
|
121
|
+
}
|
|
122
|
+
|
|
110
123
|
/* Links */
|
|
111
124
|
a,
|
|
112
125
|
a:visited {
|
|
@@ -151,18 +164,13 @@
|
|
|
151
164
|
margin: 0;
|
|
152
165
|
}
|
|
153
166
|
|
|
154
|
-
.close-container {
|
|
155
|
-
margin-left: auto;
|
|
156
|
-
margin-top: -5px;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
167
|
/* Centered variant: For no descriptions, we remove the <slot name="text"> via JS logic. In styling, centers the icon for a compact layout. */
|
|
160
168
|
.nys-alert--centered {
|
|
161
169
|
display: flex;
|
|
162
170
|
align-items: center;
|
|
163
171
|
}
|
|
164
172
|
.nys-alert--centered .nys-alert__header {
|
|
165
|
-
margin:
|
|
173
|
+
margin-bottom: -3px; /* Adjusts the header text to be centered */
|
|
166
174
|
}
|
|
167
175
|
.nys-alert--centered div[part="nys-alert__icon"] {
|
|
168
176
|
margin-top: 0;
|
|
@@ -276,15 +284,15 @@
|
|
|
276
284
|
* @license
|
|
277
285
|
* Copyright 2019 Google LLC
|
|
278
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
279
|
-
*/const
|
|
287
|
+
*/const L2=globalThis,lt=L2.ShadowRoot&&(L2.ShadyCSS===void 0||L2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yt=Symbol(),Kt=new WeakMap;let Z5=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Yt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(lt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Kt.set(e,t))}return t}toString(){return this.cssText}};const O5=o=>new Z5(typeof o=="string"?o:o+"",void 0,Yt),I5=(o,t)=>{if(lt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=L2.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},Jt=lt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return O5(e)})(o):o;/**
|
|
280
288
|
* @license
|
|
281
289
|
* Copyright 2017 Google LLC
|
|
282
290
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
283
|
-
*/const{is:
|
|
291
|
+
*/const{is:T5,defineProperty:B5,getOwnPropertyDescriptor:R5,getOwnPropertyNames:N5,getOwnPropertySymbols:q5,getPrototypeOf:j5}=Object,B1=globalThis,Xt=B1.trustedTypes,F5=Xt?Xt.emptyScript:"",Qt=B1.reactiveElementPolyfillSupport,r2=(o,t)=>o,E2={toAttribute(o,t){switch(t){case Boolean:o=o?F5:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},ct=(o,t)=>!T5(o,t),te={attribute:!0,type:String,converter:E2,reflect:!1,hasChanged:ct};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),B1.litPropertyMetadata??(B1.litPropertyMetadata=new WeakMap);let o2=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=te){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&B5(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:i}=R5(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const l=r==null?void 0:r.call(this);i.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??te}static _$Ei(){if(this.hasOwnProperty(r2("elementProperties")))return;const t=j5(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(r2("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(r2("properties"))){const e=this.properties,s=[...N5(e),...q5(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(Jt(r))}else t!==void 0&&e.push(Jt(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return I5(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var s;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:E2).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)==null?void 0:s.fromAttribute)!==void 0?n.converter:E2;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??ct)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdate)==null?void 0:i.call(r)}),this.update(s)):this._$EU()}catch(r){throw e=!1,this._$EU(),r}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};o2.elementStyles=[],o2.shadowRootOptions={mode:"open"},o2[r2("elementProperties")]=new Map,o2[r2("finalized")]=new Map,Qt==null||Qt({ReactiveElement:o2}),(B1.reactiveElementVersions??(B1.reactiveElementVersions=[])).push("2.0.4");/**
|
|
284
292
|
* @license
|
|
285
293
|
* Copyright 2017 Google LLC
|
|
286
294
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
|
-
*/const
|
|
295
|
+
*/const G5={attribute:!0,type:String,converter:E2,reflect:!1,hasChanged:ct},W5=(o=G5,t,e)=>{const{kind:s,metadata:r}=e;let i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),i.set(e.name,o),s==="accessor"){const{name:n}=e;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,c,o)},init(l){return l!==void 0&&this.P(n,void 0,o),l}}}if(s==="setter"){const{name:n}=e;return function(l){const c=this[n];t.call(this,l),this.requestUpdate(n,c,o)}}throw Error("Unsupported decorator location: "+s)};function R1(o){return(t,e)=>typeof e=="object"?W5(o,t,e):((s,r,i)=>{const n=r.hasOwnProperty(i);return r.constructor.createProperty(i,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(r,i):void 0})(o,t,e)}const Y5={account_circle:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
288
296
|
<mask id="mask0_12372_781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
289
297
|
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
290
298
|
</mask>
|
|
@@ -454,6 +462,20 @@
|
|
|
454
462
|
<g mask="url(#mask0_12372_409)">
|
|
455
463
|
<path d="M5 19C4.71667 19 4.47917 18.9042 4.2875 18.7125C4.09583 18.5208 4 18.2833 4 18C4 17.7167 4.09583 17.4792 4.2875 17.2875C4.47917 17.0958 4.71667 17 5 17H6V10C6 8.61667 6.41667 7.3875 7.25 6.3125C8.08333 5.2375 9.16667 4.53333 10.5 4.2V3.5C10.5 3.08333 10.6458 2.72917 10.9375 2.4375C11.2292 2.14583 11.5833 2 12 2C12.4167 2 12.7708 2.14583 13.0625 2.4375C13.3542 2.72917 13.5 3.08333 13.5 3.5V4.2C14.8333 4.53333 15.9167 5.2375 16.75 6.3125C17.5833 7.3875 18 8.61667 18 10V17H19C19.2833 17 19.5208 17.0958 19.7125 17.2875C19.9042 17.4792 20 17.7167 20 18C20 18.2833 19.9042 18.5208 19.7125 18.7125C19.5208 18.9042 19.2833 19 19 19H5ZM12 22C11.45 22 10.9792 21.8042 10.5875 21.4125C10.1958 21.0208 10 20.55 10 20H14C14 20.55 13.8042 21.0208 13.4125 21.4125C13.0208 21.8042 12.55 22 12 22ZM8 17H16V10C16 8.9 15.6083 7.95833 14.825 7.175C14.0417 6.39167 13.1 6 12 6C10.9 6 9.95833 6.39167 9.175 7.175C8.39167 7.95833 8 8.9 8 10V17Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
456
464
|
</g>
|
|
465
|
+
</svg>`,add:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
466
|
+
<mask id="mask0_14011_362" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
467
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
468
|
+
</mask>
|
|
469
|
+
<g mask="url(#mask0_14011_362)">
|
|
470
|
+
<path d="M11 13H6C5.71667 13 5.47917 12.9042 5.2875 12.7125C5.09583 12.5208 5 12.2833 5 12C5 11.7167 5.09583 11.4792 5.2875 11.2875C5.47917 11.0958 5.71667 11 6 11H11V6C11 5.71667 11.0958 5.47917 11.2875 5.2875C11.4792 5.09583 11.7167 5 12 5C12.2833 5 12.5208 5.09583 12.7125 5.2875C12.9042 5.47917 13 5.71667 13 6V11H18C18.2833 11 18.5208 11.0958 18.7125 11.2875C18.9042 11.4792 19 11.7167 19 12C19 12.2833 18.9042 12.5208 18.7125 12.7125C18.5208 12.9042 18.2833 13 18 13H13V18C13 18.2833 12.9042 18.5208 12.7125 18.7125C12.5208 18.9042 12.2833 19 12 19C11.7167 19 11.4792 18.9042 11.2875 18.7125C11.0958 18.5208 11 18.2833 11 18V13Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
471
|
+
</g>
|
|
472
|
+
</svg>`,remove:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
473
|
+
<mask id="mask0_14011_713" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
474
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
475
|
+
</mask>
|
|
476
|
+
<g mask="url(#mask0_14011_713)">
|
|
477
|
+
<path d="M6 13C5.71667 13 5.47917 12.9042 5.2875 12.7125C5.09583 12.5208 5 12.2833 5 12C5 11.7167 5.09583 11.4792 5.2875 11.2875C5.47917 11.0958 5.71667 11 6 11H18C18.2833 11 18.5208 11.0958 18.7125 11.2875C18.9042 11.4792 19 11.7167 19 12C19 12.2833 18.9042 12.5208 18.7125 12.7125C18.5208 12.9042 18.2833 13 18 13H6Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
478
|
+
</g>
|
|
457
479
|
</svg>`,arrow_back:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
458
480
|
<mask id="mask0_12372_673" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
459
481
|
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
@@ -702,7 +724,7 @@
|
|
|
702
724
|
<g mask="url(#mask0_12372_621)">
|
|
703
725
|
<path d="M6.30002 22.7751C5.43369 22.7751 4.69211 22.4667 4.07527 21.8498C3.45844 21.2328 3.15002 20.4913 3.15002 19.6251V10.2251C3.15002 9.35893 3.45844 8.61735 4.07527 8.00035C4.69211 7.38351 5.43369 7.0751 6.30002 7.0751H6.62502V5.8001C6.62502 4.28343 7.14586 2.99593 8.18752 1.9376C9.22919 0.879264 10.5 0.350098 12 0.350098C13.5 0.350098 14.7709 0.879264 15.8125 1.9376C16.8542 2.99593 17.375 4.28343 17.375 5.8001V7.0751H17.7C18.5662 7.0751 19.3078 7.38351 19.9248 8.00035C20.5416 8.61735 20.85 9.35893 20.85 10.2251V19.6251C20.85 20.4913 20.5416 21.2328 19.9248 21.8498C19.3078 22.4667 18.5662 22.7751 17.7 22.7751H6.30002ZM12 16.9251C12.55 16.9251 13.0209 16.7293 13.4125 16.3376C13.8042 15.9459 14 15.4751 14 14.9251C14 14.3751 13.8042 13.9043 13.4125 13.5126C13.0209 13.1209 12.55 12.9251 12 12.9251C11.45 12.9251 10.9792 13.1209 10.5875 13.5126C10.1959 13.9043 10 14.3751 10 14.9251C10 15.4751 10.1959 15.9459 10.5875 16.3376C10.9792 16.7293 11.45 16.9251 12 16.9251ZM9.77502 7.0751H14.225V5.8001C14.225 5.16126 14.0125 4.61818 13.5875 4.17085C13.1625 3.72368 12.6334 3.5001 12 3.5001C11.3667 3.5001 10.8375 3.72368 10.4125 4.17085C9.98752 4.61818 9.77502 5.16126 9.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
704
726
|
</g>
|
|
705
|
-
</svg>`},
|
|
727
|
+
</svg>`},K5=b`
|
|
706
728
|
:host {
|
|
707
729
|
display: inline-block;
|
|
708
730
|
--_nys-icon-size: 0.7em; /* If cap isn't supported, a fallback value of 0.7em is used, as it closely approximates the height of capital letters in most fonts. */
|
|
@@ -798,7 +820,7 @@
|
|
|
798
820
|
.nys-icon--flip-both {
|
|
799
821
|
transform: scale(-1, -1);
|
|
800
822
|
}
|
|
801
|
-
`;var
|
|
823
|
+
`;var J5=Object.defineProperty,X5=Object.getOwnPropertyDescriptor,N1=(o,t,e,s)=>{for(var r=s>1?void 0:s?X5(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&J5(t,e,r),r},n2;const S1=(n2=class extends p{constructor(){super(...arguments),this.name="",this.label="",this.rotate="0",this.flip="",this.color="",this._size="sm"}get size(){return this._size}set size(o){this._size=n2.VALID_TYPES.includes(o)?o:"sm"}getIcon(){const o=Y5[this.name],t=!!this.label;if(!o)return null;const e=new DOMParser().parseFromString(o,"image/svg+xml").documentElement;return e instanceof SVGElement?(e.setAttribute("role","img"),e.setAttribute("aria-label",t?this.label:""),e.setAttribute("aria-hidden",t?"false":"true"),e.style.rotate=`${this.rotate}deg`,e.style.color=this.color||"currentcolor",e.classList.add(`nys-icon--${this.size}`),e.classList.add("nys-icon--svg"),this.flip&&e.classList.add(`nys-icon--flip-${this.flip}`),e):null}render(){const o=this.getIcon();return o?h`${o}`:null}},n2.styles=K5,n2.VALID_TYPES=["2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","12","16","24","32","48","64"],n2);N1([R1({type:String,reflect:!0})],S1.prototype,"name",2),N1([R1({type:String})],S1.prototype,"label",2),N1([R1({type:String})],S1.prototype,"rotate",2),N1([R1({type:String})],S1.prototype,"flip",2),N1([R1({type:String})],S1.prototype,"color",2),N1([R1({reflect:!0})],S1.prototype,"size",1);let Q5=S1;customElements.get("nys-icon")||customElements.define("nys-icon",Q5);/*!
|
|
802
824
|
*
|
|
803
825
|
* ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
|
|
804
826
|
* ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
|
|
@@ -812,15 +834,15 @@
|
|
|
812
834
|
* @license
|
|
813
835
|
* Copyright 2019 Google LLC
|
|
814
836
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
815
|
-
*/const
|
|
837
|
+
*/const M2=globalThis,ht=M2.ShadowRoot&&(M2.ShadyCSS===void 0||M2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ee=Symbol(),se=new WeakMap;let t7=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==ee)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o;const t=this.t;if(ht&&o===void 0){const e=t!==void 0&&t.length===1;e&&(o=se.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&se.set(t,o))}return o}toString(){return this.cssText}};const e7=o=>new t7(typeof o=="string"?o:o+"",void 0,ee),s7=(o,t)=>{if(ht)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=M2.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},re=ht?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return e7(e)})(o):o;/**
|
|
816
838
|
* @license
|
|
817
839
|
* Copyright 2017 Google LLC
|
|
818
840
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
819
|
-
*/const{is:
|
|
841
|
+
*/const{is:r7,defineProperty:o7,getOwnPropertyDescriptor:n7,getOwnPropertyNames:i7,getOwnPropertySymbols:a7,getPrototypeOf:l7}=Object,q1=globalThis,oe=q1.trustedTypes,c7=oe?oe.emptyScript:"",ne=q1.reactiveElementPolyfillSupport,i2=(o,t)=>o,A2={toAttribute(o,t){switch(t){case Boolean:o=o?c7:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},dt=(o,t)=>!r7(o,t),ie={attribute:!0,type:String,converter:A2,reflect:!1,hasChanged:dt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),q1.litPropertyMetadata??(q1.litPropertyMetadata=new WeakMap);let a2=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ie){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&o7(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:i}=n7(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const l=r==null?void 0:r.call(this);i.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ie}static _$Ei(){if(this.hasOwnProperty(i2("elementProperties")))return;const t=l7(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(i2("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(i2("properties"))){const e=this.properties,s=[...i7(e),...a7(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(re(r))}else t!==void 0&&e.push(re(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s7(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var s;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:A2).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)==null?void 0:s.fromAttribute)!==void 0?n.converter:A2;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??dt)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdate)==null?void 0:i.call(r)}),this.update(s)):this._$EU()}catch(r){throw e=!1,this._$EU(),r}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};a2.elementStyles=[],a2.shadowRootOptions={mode:"open"},a2[i2("elementProperties")]=new Map,a2[i2("finalized")]=new Map,ne==null||ne({ReactiveElement:a2}),(q1.reactiveElementVersions??(q1.reactiveElementVersions=[])).push("2.0.4");/**
|
|
820
842
|
* @license
|
|
821
843
|
* Copyright 2017 Google LLC
|
|
822
844
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
823
|
-
*/const
|
|
845
|
+
*/const h7={attribute:!0,type:String,converter:A2,reflect:!1,hasChanged:dt},d7=(o=h7,t,e)=>{const{kind:s,metadata:r}=e;let i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),i.set(e.name,o),s==="accessor"){const{name:n}=e;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,c,o)},init(l){return l!==void 0&&this.P(n,void 0,o),l}}}if(s==="setter"){const{name:n}=e;return function(l){const c=this[n];t.call(this,l),this.requestUpdate(n,c,o)}}throw Error("Unsupported decorator location: "+s)};function H(o){return(t,e)=>typeof e=="object"?d7(o,t,e):((s,r,i)=>{const n=r.hasOwnProperty(i);return r.constructor.createProperty(i,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(r,i):void 0})(o,t,e)}const C7=b`
|
|
824
846
|
:host {
|
|
825
847
|
/* Anything that can be overridden should be defined here */
|
|
826
848
|
|
|
@@ -1223,13 +1245,13 @@
|
|
|
1223
1245
|
* @license
|
|
1224
1246
|
* Copyright 2017 Google LLC
|
|
1225
1247
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1226
|
-
*/const
|
|
1227
|
-
\f\r]`,
|
|
1228
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
1248
|
+
*/const D2=globalThis,H2=D2.trustedTypes,ae=H2?H2.createPolicy("lit-html",{createHTML:o=>o}):void 0,le="$lit$",C1=`lit$${Math.random().toFixed(9).slice(2)}$`,ce="?"+C1,y7=`<${ce}>`,L1=document,V2=()=>L1.createComment(""),l2=o=>o===null||typeof o!="object"&&typeof o!="function",Ct=Array.isArray,u7=o=>Ct(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",yt=`[
|
|
1249
|
+
\f\r]`,c2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,he=/-->/g,de=/>/g,E1=RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^
|
|
1250
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ce=/'/g,ye=/"/g,ue=/^(?:script|style|textarea|title)$/i,h2=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),pe=new WeakMap,M1=L1.createTreeWalker(L1,129);function fe(o,t){if(!Ct(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ae!==void 0?ae.createHTML(t):t}const p7=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=c2;for(let l=0;l<e;l++){const c=o[l];let C,y,d=-1,u=0;for(;u<c.length&&(n.lastIndex=u,y=n.exec(c),y!==null);)u=n.lastIndex,n===c2?y[1]==="!--"?n=he:y[1]!==void 0?n=de:y[2]!==void 0?(ue.test(y[2])&&(r=RegExp("</"+y[2],"g")),n=E1):y[3]!==void 0&&(n=E1):n===E1?y[0]===">"?(n=r??c2,d=-1):y[1]===void 0?d=-2:(d=n.lastIndex-y[2].length,C=y[1],n=y[3]===void 0?E1:y[3]==='"'?ye:Ce):n===ye||n===Ce?n=E1:n===he||n===de?n=c2:(n=E1,r=void 0);const f=n===E1&&o[l+1].startsWith("/>")?" ":"";i+=n===c2?c+y7:d>=0?(s.push(C),c.slice(0,d)+le+c.slice(d)+C1+f):c+C1+(d===-2?l:f)}return[fe(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let ut=class y5{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const l=t.length-1,c=this.parts,[C,y]=p7(t,e);if(this.el=y5.createElement(C,s),M1.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=M1.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(le)){const u=y[n++],f=r.getAttribute(d).split(C1),O=/([.?@])?(.*)/.exec(u);c.push({type:1,index:i,name:O[2],strings:f,ctor:O[1]==="."?v7:O[1]==="?"?g7:O[1]==="@"?_7:U2}),r.removeAttribute(d)}else d.startsWith(C1)&&(c.push({type:6,index:i}),r.removeAttribute(d));if(ue.test(r.tagName)){const d=r.textContent.split(C1),u=d.length-1;if(u>0){r.textContent=H2?H2.emptyScript:"";for(let f=0;f<u;f++)r.append(d[f],V2()),M1.nextNode(),c.push({type:2,index:++i});r.append(d[u],V2())}}}else if(r.nodeType===8)if(r.data===ce)c.push({type:2,index:i});else{let d=-1;for(;(d=r.data.indexOf(C1,d+1))!==-1;)c.push({type:7,index:i}),d+=C1.length-1}i++}}static createElement(t,e){const s=L1.createElement("template");return s.innerHTML=t,s}};function j1(o,t,e=o,s){var r,i;if(t===h2)return t;let n=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const l=l2(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((i=n==null?void 0:n._$AO)==null||i.call(n,!1),l===void 0?n=void 0:(n=new l(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=j1(o,n._$AS(o,t.values),n,s)),t}let f7=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??L1).importNode(e,!0);M1.currentNode=r;let i=M1.nextNode(),n=0,l=0,c=s[0];for(;c!==void 0;){if(n===c.index){let C;c.type===2?C=new ve(i,i.nextSibling,this,t):c.type===1?C=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(C=new b7(i,this,t)),this._$AV.push(C),c=s[++l]}n!==(c==null?void 0:c.index)&&(i=M1.nextNode(),n++)}return M1.currentNode=L1,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},ve=class u5{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=j1(this,t,e),l2(t)?t===L||t==null||t===""?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==h2&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):u7(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==L&&l2(this._$AH)?this._$AA.nextSibling.data=t:this.T(L1.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=ut.createElement(fe(r.h,r.h[0]),this.options)),r);if(((e=this._$AH)==null?void 0:e._$AD)===i)this._$AH.p(s);else{const n=new f7(i,this),l=n.u(this.options);n.p(s),this.T(l),this._$AH=n}}_$AC(t){let e=pe.get(t.strings);return e===void 0&&pe.set(t.strings,e=new ut(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new u5(this.O(V2()),this.O(V2()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},U2=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=L}_$AI(t,e=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=j1(this,t,e,0),n=!l2(t)||t!==this._$AH&&t!==h2,n&&(this._$AH=t);else{const l=t;let c,C;for(t=i[0],c=0;c<i.length-1;c++)C=j1(this,l[s+c],e,c),C===h2&&(C=this._$AH[c]),n||(n=!l2(C)||C!==this._$AH[c]),C===L?t=L:t!==L&&(t+=(C??"")+i[c+1]),this._$AH[c]=C}n&&!r&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},v7=class extends U2{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}},g7=class extends U2{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==L)}},_7=class extends U2{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=j1(this,t,e,0)??L)===h2)return;const s=this._$AH,r=t===L&&s!==L||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==L&&(s===L||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}},b7=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){j1(this,t)}};const ge=D2.litHtmlPolyfillSupport;ge==null||ge(ut,ve),(D2.litHtmlVersions??(D2.litHtmlVersions=[])).push("3.2.1");/**
|
|
1229
1251
|
* @license
|
|
1230
1252
|
* Copyright 2018 Google LLC
|
|
1231
1253
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1232
|
-
*/const y1=o=>o??L;var
|
|
1254
|
+
*/const y1=o=>o??L;var m7=Object.defineProperty,w7=Object.getOwnPropertyDescriptor,V=(o,t,e,s)=>{for(var r=s>1?void 0:s?w7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&m7(t,e,r),r};let x7=0;var R;const M=(R=class extends p{constructor(){super(),this.id="",this.name="",this._size="md",this.fullWidth=!1,this._variant="filled",this.inverted=!1,this.label="",this.ariaLabel="",this.prefixIcon="",this.suffixIcon="",this.disabled=!1,this.form="",this.value="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(o){this._size=R.VALID_SIZES.includes(o)?o:"md"}get variant(){return this._variant}set variant(o){this._variant=R.VALID_VARIANTS.includes(o)?o:"filled"}get type(){return this._type}set type(o){this._type=R.VALID_TYPES.includes(o)?o:"button"}get target(){return this._target}set target(o){this._target=R.VALID_TARGETS.includes(o)?o:"_self"}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${x7++}`}_manageFormAction(o){typeof this.onClick=="function"&&this.onClick(o);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("focus"))}_handleBlur(){this.dispatchEvent(new Event("blur"))}_handleClick(o){if(this.disabled){o.preventDefault();return}this._manageFormAction(o)}_handleKeydown(o){(o.code==="Space"||o.code==="Enter"||o.key===" "||o.key==="Enter")&&(o.preventDefault(),this.disabled||this._manageFormAction(o))}render(){return h`
|
|
1233
1255
|
${this.href?h`
|
|
1234
1256
|
<div class="nys-button__linkwrapper">
|
|
1235
1257
|
<a
|
|
@@ -1280,7 +1302,7 @@
|
|
|
1280
1302
|
</slot>`:""}
|
|
1281
1303
|
</button>
|
|
1282
1304
|
`}
|
|
1283
|
-
`}},
|
|
1305
|
+
`}},R.VALID_SIZES=["sm","md","lg"],R.VALID_VARIANTS=["filled","outline","ghost","text"],R.VALID_TYPES=["submit","reset","button"],R.VALID_TARGETS=["_self","_blank","_parent","_top","framename"],R.styles=C7,R.formAssociated=!0,R);V([H({type:String})],M.prototype,"id",2),V([H({type:String,reflect:!0})],M.prototype,"name",2),V([H({reflect:!0})],M.prototype,"size",1),V([H({type:Boolean,reflect:!0})],M.prototype,"fullWidth",2),V([H({reflect:!0})],M.prototype,"variant",1),V([H({type:Boolean,reflect:!0})],M.prototype,"inverted",2),V([H({type:String})],M.prototype,"label",2),V([H({type:String})],M.prototype,"ariaLabel",2),V([H({type:String})],M.prototype,"prefixIcon",2),V([H({type:String})],M.prototype,"suffixIcon",2),V([H({type:Boolean,reflect:!0})],M.prototype,"disabled",2),V([H({type:String})],M.prototype,"form",2),V([H({type:String})],M.prototype,"value",2),V([H({reflect:!0})],M.prototype,"type",1),V([H({type:Function})],M.prototype,"onClick",2),V([H({type:String})],M.prototype,"href",2),V([H({reflect:!0})],M.prototype,"target",1);let k7=M;customElements.get("nys-button")||customElements.define("nys-button",k7);var $7=Object.defineProperty,S7=Object.getOwnPropertyDescriptor,I=(o,t,e,s)=>{for(var r=s>1?void 0:s?S7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&$7(t,e,r),r};let L7=0;const Z=(_1=class extends p{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(t){this._type=_1.VALID_TYPES.includes(t)?t:"base"}get ariaAttributes(){const t=this.type==="danger"||this.type==="emergency"?"alert":this.type==="success"?"status":"region",e=t==="region"?`${this.type} alert`:"";return{role:t,ariaLabel:e}}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()}-${L7++}`}_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-alertClosed",{detail:{type:this.type,label:this.heading},bubbles:!0,composed:!0}))}async _checkSlotContent(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");if(t){const s=t.assignedNodes({flatten:!0}).filter(r=>{var i;return r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&((i=r.textContent)==null?void 0:i.trim())});await Promise.resolve(),this._slotHasContent=s.length>0}else await Promise.resolve(),this._slotHasContent=!1}render(){var s,r;const{role:t,ariaLabel:e}=this.ariaAttributes;return h`
|
|
1284
1306
|
${this._alertClosed?"":h` <div
|
|
1285
1307
|
id=${this.id}
|
|
1286
1308
|
class="nys-alert__container ${this._slotHasContent||((s=this.text)==null?void 0:s.trim().length)>0?"":"nys-alert--centered"}"
|
|
@@ -1295,7 +1317,7 @@
|
|
|
1295
1317
|
></nys-icon>
|
|
1296
1318
|
</div>
|
|
1297
1319
|
<div class="nys-alert__texts">
|
|
1298
|
-
<
|
|
1320
|
+
<p class="nys-alert__header">${this.heading}</p>
|
|
1299
1321
|
${this._slotHasContent?h`<slot></slot>`:((r=this.text)==null?void 0:r.trim().length)>0?h`<p class="nys-alert__text">${this.text}</p>`:""}
|
|
1300
1322
|
${this.primaryAction||this.secondaryAction?h`<div class="nys-alert__actions">
|
|
1301
1323
|
${this.primaryAction?h`<a
|
|
@@ -1312,28 +1334,18 @@
|
|
|
1312
1334
|
</a>`:""}
|
|
1313
1335
|
</div> `:""}
|
|
1314
1336
|
</div>
|
|
1315
|
-
${this.dismissible
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
<nys-button
|
|
1326
|
-
id="dismiss-btn"
|
|
1327
|
-
variant="ghost"
|
|
1328
|
-
prefixIcon="close"
|
|
1329
|
-
size="sm"
|
|
1330
|
-
inverted
|
|
1331
|
-
ariaLabel="close button"
|
|
1332
|
-
@click=${this._closeAlert}
|
|
1333
|
-
></nys-button>
|
|
1334
|
-
</div>`:""}
|
|
1337
|
+
${this.dismissible?h` <nys-button
|
|
1338
|
+
id="dismiss-btn"
|
|
1339
|
+
variant="ghost"
|
|
1340
|
+
prefixIcon="close"
|
|
1341
|
+
size="sm"
|
|
1342
|
+
?inverted=${this.type==="emergency"}
|
|
1343
|
+
ariaLabel="close button"
|
|
1344
|
+
@click=${this._closeAlert}
|
|
1345
|
+
@keydown="${i=>{(i.code==="Enter"||i.code==="Space"||i.key==="Enter"||i.key===" ")&&this._closeAlert()}}"
|
|
1346
|
+
></nys-button>`:""}
|
|
1335
1347
|
</div>`}
|
|
1336
|
-
`}},_1.styles=
|
|
1348
|
+
`}},_1.styles=P5,_1.VALID_TYPES=["base","info","success","warning","danger","emergency"],_1);I([a({type:String})],Z.prototype,"id",2),I([a({type:String})],Z.prototype,"heading",2),I([a({type:String})],Z.prototype,"icon",2),I([a({type:Boolean,reflect:!0})],Z.prototype,"dismissible",2),I([a({type:Number,reflect:!0})],Z.prototype,"duration",2),I([a({type:String})],Z.prototype,"text",2),I([a({type:String})],Z.prototype,"primaryAction",2),I([a({type:String})],Z.prototype,"secondaryAction",2),I([a({type:String})],Z.prototype,"primaryLabel",2),I([a({type:String})],Z.prototype,"secondaryLabel",2),I([$1()],Z.prototype,"_alertClosed",2),I([$1()],Z.prototype,"_slotHasContent",2),I([a({reflect:!0})],Z.prototype,"type",1);let _e=Z;customElements.get("nys-alert")||customElements.define("nys-alert",_e);const E7=b`
|
|
1337
1349
|
:host {
|
|
1338
1350
|
/* Global Avatar Styles */
|
|
1339
1351
|
--_nys-avatar-shape: var(--nys-radius-round, 1776px);
|
|
@@ -1400,7 +1412,7 @@
|
|
|
1400
1412
|
height: 100%;
|
|
1401
1413
|
fill: currentColor;
|
|
1402
1414
|
}
|
|
1403
|
-
`;var
|
|
1415
|
+
`;var M7=Object.defineProperty,A7=Object.getOwnPropertyDescriptor,u1=(o,t,e,s)=>{for(var r=s>1?void 0:s?A7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&M7(t,e,r),r};let D7=0;const t1=(b1=class extends p{constructor(){super(...arguments),this.id="",this.label="",this.image="",this.initials="",this.icon="",this.color="#555",this.lazy=!1,this._shape="circle"}get shape(){return this._shape}set shape(t){this._shape=b1.VALID_SHAPES.includes(t)?t:"circle",this.requestUpdate("shape")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-avatar-${Date.now()}-${D7++}`)}render(){var t,e,s,r;return h`
|
|
1404
1416
|
<label class="nys-avatar" id=${this.id}>
|
|
1405
1417
|
<div class="nys-avatar__content">
|
|
1406
1418
|
<div
|
|
@@ -1439,7 +1451,7 @@
|
|
|
1439
1451
|
</div>
|
|
1440
1452
|
</div>
|
|
1441
1453
|
</label>
|
|
1442
|
-
`}},b1.styles
|
|
1454
|
+
`}},b1.styles=E7,b1.VALID_SHAPES=["square","rounded","circle"],b1);u1([a({type:String})],t1.prototype,"id",2),u1([a({type:String})],t1.prototype,"label",2),u1([a({type:String})],t1.prototype,"image",2),u1([a({type:String})],t1.prototype,"initials",2),u1([a({type:String})],t1.prototype,"icon",2),u1([a({type:String})],t1.prototype,"color",2),u1([a({type:Boolean,reflect:!0})],t1.prototype,"lazy",2),u1([a({reflect:!0})],t1.prototype,"shape",1);let be=t1;customElements.get("nys-avatar")||customElements.define("nys-avatar",be);const H7=b`
|
|
1443
1455
|
:host {
|
|
1444
1456
|
/* Anything that can be overridden should be defined here */
|
|
1445
1457
|
|
|
@@ -1838,7 +1850,7 @@
|
|
|
1838
1850
|
align-items: center;
|
|
1839
1851
|
user-select: none;
|
|
1840
1852
|
}
|
|
1841
|
-
`;var
|
|
1853
|
+
`;var V7=Object.defineProperty,U7=Object.getOwnPropertyDescriptor,U=(o,t,e,s)=>{for(var r=s>1?void 0:s?U7(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&V7(t,e,r),r};let z7=0;const A=(P=class extends p{constructor(){super(),this.id="",this.name="",this._size="md",this.fullWidth=!1,this._variant="filled",this.inverted=!1,this.label="",this.ariaLabel="",this.prefixIcon="",this.suffixIcon="",this.disabled=!1,this.form="",this.value="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=P.VALID_SIZES.includes(t)?t:"md"}get variant(){return this._variant}set variant(t){this._variant=P.VALID_VARIANTS.includes(t)?t:"filled"}get type(){return this._type}set type(t){this._type=P.VALID_TYPES.includes(t)?t:"button"}get target(){return this._target}set target(t){this._target=P.VALID_TARGETS.includes(t)?t:"_self"}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${z7++}`}_manageFormAction(t){typeof this.onClick=="function"&&this.onClick(t);const e=this._internals.form;if(e)switch(this.type){case"submit":e.requestSubmit();break;case"reset":e.reset();break}}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this.dispatchEvent(new Event("blur"))}_handleClick(t){if(this.disabled){t.preventDefault();return}this._manageFormAction(t)}_handleKeydown(t){(t.code==="Space"||t.code==="Enter"||t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.disabled||this._manageFormAction(t))}render(){return h`
|
|
1842
1854
|
${this.href?h`
|
|
1843
1855
|
<div class="nys-button__linkwrapper">
|
|
1844
1856
|
<a
|
|
@@ -1889,7 +1901,7 @@
|
|
|
1889
1901
|
</slot>`:""}
|
|
1890
1902
|
</button>
|
|
1891
1903
|
`}
|
|
1892
|
-
`}},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=
|
|
1904
|
+
`}},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=H7,P.formAssociated=!0,P);U([a({type:String})],A.prototype,"id",2),U([a({type:String,reflect:!0})],A.prototype,"name",2),U([a({reflect:!0})],A.prototype,"size",1),U([a({type:Boolean,reflect:!0})],A.prototype,"fullWidth",2),U([a({reflect:!0})],A.prototype,"variant",1),U([a({type:Boolean,reflect:!0})],A.prototype,"inverted",2),U([a({type:String})],A.prototype,"label",2),U([a({type:String})],A.prototype,"ariaLabel",2),U([a({type:String})],A.prototype,"prefixIcon",2),U([a({type:String})],A.prototype,"suffixIcon",2),U([a({type:Boolean,reflect:!0})],A.prototype,"disabled",2),U([a({type:String})],A.prototype,"form",2),U([a({type:String})],A.prototype,"value",2),U([a({reflect:!0})],A.prototype,"type",1),U([a({type:Function})],A.prototype,"onClick",2),U([a({type:String})],A.prototype,"href",2),U([a({reflect:!0})],A.prototype,"target",1);let me=A;customElements.get("nys-button")||customElements.define("nys-button",me);const we=b`
|
|
1893
1905
|
:host {
|
|
1894
1906
|
/* Anything that can be overridden should be defined here */
|
|
1895
1907
|
|
|
@@ -2147,15 +2159,15 @@
|
|
|
2147
2159
|
* @license
|
|
2148
2160
|
* Copyright 2019 Google LLC
|
|
2149
2161
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2150
|
-
*/const
|
|
2162
|
+
*/const z2=globalThis,pt=z2.ShadowRoot&&(z2.ShadyCSS===void 0||z2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xe=Symbol(),ke=new WeakMap;let P7=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==xe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(pt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=ke.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ke.set(e,t))}return t}toString(){return this.cssText}};const Z7=o=>new P7(typeof o=="string"?o:o+"",void 0,xe),O7=(o,t)=>{if(pt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=z2.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},$e=pt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Z7(e)})(o):o;/**
|
|
2151
2163
|
* @license
|
|
2152
2164
|
* Copyright 2017 Google LLC
|
|
2153
2165
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2154
|
-
*/const{is:
|
|
2166
|
+
*/const{is:I7,defineProperty:T7,getOwnPropertyDescriptor:B7,getOwnPropertyNames:R7,getOwnPropertySymbols:N7,getPrototypeOf:q7}=Object,F1=globalThis,Se=F1.trustedTypes,j7=Se?Se.emptyScript:"",Le=F1.reactiveElementPolyfillSupport,d2=(o,t)=>o,P2={toAttribute(o,t){switch(t){case Boolean:o=o?j7:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},ft=(o,t)=>!I7(o,t),Ee={attribute:!0,type:String,converter:P2,reflect:!1,hasChanged:ft};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),F1.litPropertyMetadata??(F1.litPropertyMetadata=new WeakMap);let C2=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ee){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&T7(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:i}=B7(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const l=r==null?void 0:r.call(this);i.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ee}static _$Ei(){if(this.hasOwnProperty(d2("elementProperties")))return;const t=q7(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d2("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d2("properties"))){const e=this.properties,s=[...R7(e),...N7(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift($e(r))}else t!==void 0&&e.push($e(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return O7(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var s;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:P2).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)==null?void 0:s.fromAttribute)!==void 0?n.converter:P2;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??ft)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdate)==null?void 0:i.call(r)}),this.update(s)):this._$EU()}catch(r){throw e=!1,this._$EU(),r}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};C2.elementStyles=[],C2.shadowRootOptions={mode:"open"},C2[d2("elementProperties")]=new Map,C2[d2("finalized")]=new Map,Le==null||Le({ReactiveElement:C2}),(F1.reactiveElementVersions??(F1.reactiveElementVersions=[])).push("2.0.4");/**
|
|
2155
2167
|
* @license
|
|
2156
2168
|
* Copyright 2017 Google LLC
|
|
2157
2169
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2158
|
-
*/const
|
|
2170
|
+
*/const F7={attribute:!0,type:String,converter:P2,reflect:!1,hasChanged:ft},G7=(o=F7,t,e)=>{const{kind:s,metadata:r}=e;let i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),i.set(e.name,o),s==="accessor"){const{name:n}=e;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,c,o)},init(l){return l!==void 0&&this.P(n,void 0,o),l}}}if(s==="setter"){const{name:n}=e;return function(l){const c=this[n];t.call(this,l),this.requestUpdate(n,c,o)}}throw Error("Unsupported decorator location: "+s)};function Z2(o){return(t,e)=>typeof e=="object"?G7(o,t,e):((s,r,i)=>{const n=r.hasOwnProperty(i);return r.constructor.createProperty(i,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(r,i):void 0})(o,t,e)}const W7=b`
|
|
2159
2171
|
:host {
|
|
2160
2172
|
/* Label Typography */
|
|
2161
2173
|
--_nys-label-font-family: var(
|
|
@@ -2207,11 +2219,13 @@
|
|
|
2207
2219
|
}
|
|
2208
2220
|
|
|
2209
2221
|
.nys-label__label {
|
|
2222
|
+
text-align: left;
|
|
2210
2223
|
font-weight: var(--_nys-label-font-weight);
|
|
2211
2224
|
color: var(--_nys-label-font-color);
|
|
2212
2225
|
}
|
|
2213
2226
|
|
|
2214
2227
|
.nys-label__description {
|
|
2228
|
+
text-align: left;
|
|
2215
2229
|
font-weight: var(--nys-description-font-weight);
|
|
2216
2230
|
font-style: var(--nys-description-font-style);
|
|
2217
2231
|
color: var(--nys-description-font-color);
|
|
@@ -2226,7 +2240,7 @@
|
|
|
2226
2240
|
font-weight: var(--nys-optional-font-weight);
|
|
2227
2241
|
color: var(--nys-optional-font-color);
|
|
2228
2242
|
}
|
|
2229
|
-
`;var
|
|
2243
|
+
`;var Y7=Object.defineProperty,O2=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&Y7(t,e,r),r};const Me=class extends p{constructor(){super(...arguments),this.id="",this.label="",this.description="",this.flag=""}render(){return h`
|
|
2230
2244
|
<div class="nys-label">
|
|
2231
2245
|
<label for=${this.id} class="nys-label__label"
|
|
2232
2246
|
>${this.label}
|
|
@@ -2237,7 +2251,7 @@
|
|
|
2237
2251
|
<slot name="description">${this.description}</slot>
|
|
2238
2252
|
</label>
|
|
2239
2253
|
</div>
|
|
2240
|
-
`}};
|
|
2254
|
+
`}};Me.styles=W7;let y2=Me;O2([Z2({type:String})],y2.prototype,"id"),O2([Z2({type:String})],y2.prototype,"label"),O2([Z2({type:String})],y2.prototype,"description"),O2([Z2({type:String})],y2.prototype,"flag"),customElements.get("nys-label")||customElements.define("nys-label",y2);/*!
|
|
2241
2255
|
* Error Message
|
|
2242
2256
|
* Part of the New York State Design System
|
|
2243
2257
|
* A design system for New York State's digital products.
|
|
@@ -2247,15 +2261,15 @@
|
|
|
2247
2261
|
* @license
|
|
2248
2262
|
* Copyright 2019 Google LLC
|
|
2249
2263
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2250
|
-
*/const
|
|
2264
|
+
*/const I2=globalThis,vt=I2.ShadowRoot&&(I2.ShadyCSS===void 0||I2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ae=Symbol(),De=new WeakMap;let K7=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Ae)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(vt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=De.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&De.set(e,t))}return t}toString(){return this.cssText}};const J7=o=>new K7(typeof o=="string"?o:o+"",void 0,Ae),X7=(o,t)=>{if(vt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=I2.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},He=vt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return J7(e)})(o):o;/**
|
|
2251
2265
|
* @license
|
|
2252
2266
|
* Copyright 2017 Google LLC
|
|
2253
2267
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2254
|
-
*/const{is:
|
|
2268
|
+
*/const{is:Q7,defineProperty:ts,getOwnPropertyDescriptor:es,getOwnPropertyNames:ss,getOwnPropertySymbols:rs,getPrototypeOf:os}=Object,G1=globalThis,Ve=G1.trustedTypes,ns=Ve?Ve.emptyScript:"",Ue=G1.reactiveElementPolyfillSupport,u2=(o,t)=>o,T2={toAttribute(o,t){switch(t){case Boolean:o=o?ns:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},gt=(o,t)=>!Q7(o,t),ze={attribute:!0,type:String,converter:T2,reflect:!1,hasChanged:gt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),G1.litPropertyMetadata??(G1.litPropertyMetadata=new WeakMap);let p2=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ze){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&ts(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:i}=es(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const l=r==null?void 0:r.call(this);i.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ze}static _$Ei(){if(this.hasOwnProperty(u2("elementProperties")))return;const t=os(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(u2("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(u2("properties"))){const e=this.properties,s=[...ss(e),...rs(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(He(r))}else t!==void 0&&e.push(He(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return X7(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var s;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:T2).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)==null?void 0:s.fromAttribute)!==void 0?n.converter:T2;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??gt)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdate)==null?void 0:i.call(r)}),this.update(s)):this._$EU()}catch(r){throw e=!1,this._$EU(),r}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};p2.elementStyles=[],p2.shadowRootOptions={mode:"open"},p2[u2("elementProperties")]=new Map,p2[u2("finalized")]=new Map,Ue==null||Ue({ReactiveElement:p2}),(G1.reactiveElementVersions??(G1.reactiveElementVersions=[])).push("2.0.4");/**
|
|
2255
2269
|
* @license
|
|
2256
2270
|
* Copyright 2017 Google LLC
|
|
2257
2271
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2258
|
-
*/const
|
|
2272
|
+
*/const is={attribute:!0,type:String,converter:T2,reflect:!1,hasChanged:gt},as=(o=is,t,e)=>{const{kind:s,metadata:r}=e;let i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),i.set(e.name,o),s==="accessor"){const{name:n}=e;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,c,o)},init(l){return l!==void 0&&this.P(n,void 0,o),l}}}if(s==="setter"){const{name:n}=e;return function(l){const c=this[n];t.call(this,l),this.requestUpdate(n,c,o)}}throw Error("Unsupported decorator location: "+s)};function _t(o){return(t,e)=>typeof e=="object"?as(o,t,e):((s,r,i)=>{const n=r.hasOwnProperty(i);return r.constructor.createProperty(i,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(r,i):void 0})(o,t,e)}const ls=b`
|
|
2259
2273
|
:host {
|
|
2260
2274
|
--_nys-errormessage-font-family: var(
|
|
2261
2275
|
--nys-font-family-ui,
|
|
@@ -2304,10 +2318,10 @@
|
|
|
2304
2318
|
border-top: var(--_nys-errormessage-divider-width) solid
|
|
2305
2319
|
var(--_nys-errormessage-color);
|
|
2306
2320
|
}
|
|
2307
|
-
`;var
|
|
2321
|
+
`;var cs=Object.defineProperty,bt=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&cs(t,e,r),r};const mt=class extends p{constructor(){super(),this.showError=!1,this.errorMessage="",this.showDivider=!1,this._internals=this.attachInternals()}render(){return h`${this.showError?h`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
|
|
2308
2322
|
<nys-icon name="error" size="2xl"></nys-icon>
|
|
2309
2323
|
${this._internals.validationMessage||this.errorMessage}
|
|
2310
|
-
</div>`:""}`}};
|
|
2324
|
+
</div>`:""}`}};mt.styles=ls,mt.formAssociated=!0;let B2=mt;bt([_t({type:Boolean})],B2.prototype,"showError"),bt([_t({type:String})],B2.prototype,"errorMessage"),bt([_t({type:Boolean,reflect:!0})],B2.prototype,"showDivider"),customElements.get("nys-errormessage")||customElements.define("nys-errormessage",B2);var hs=Object.defineProperty,ds=Object.getOwnPropertyDescriptor,e1=(o,t,e,s)=>{for(var r=s>1?void 0:s?ds(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&hs(t,e,r),r};let Cs=0;const K=(o1=class extends p{constructor(){super(),this.id="",this.name="",this.required=!1,this.optional=!1,this.showError=!1,this.errorMessage="",this.label="",this.description="",this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=o1.VALID_SIZES.includes(t)?t:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${Cs++}`),this.addEventListener("change",this._handleCheckboxChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this._handleCheckboxChange),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setGroupExist()}updated(t){t.has("required")&&this.required&&this._setupCheckboxRequired(),t.has("size")&&this.updateCheckboxSize()}_setGroupExist(){this.querySelectorAll("nys-checkbox").forEach(e=>{e.groupExist=!0})}async _handleInvalid(t){t.preventDefault(),this.showError=!0,this._manageCheckboxRequired();const e=this.querySelector("nys-checkbox"),s=e?await e.getInputElement():null;if(s){const r=this._internals.form;r?Array.from(r.elements).find(l=>{if(l.tagName.toLowerCase()==="nys-checkboxgroup"){if(Array.from(this.querySelectorAll("nys-checkbox")).filter(y=>y.checked).length===0)return l}else return typeof l.checkValidity=="function"&&!l.checkValidity()})===this&&s.focus():s.focus()}}async _setupCheckboxRequired(){const t=this.querySelector("nys-checkbox"),e=this.errorMessage||"This field is required",s=t?await t.getInputElement():null;this._internals.setValidity({valueMissing:!0},e,s||this)}_handleCheckboxChange(t){const e=t,{name:s}=e.detail,i=Array.from(this.querySelectorAll("nys-checkbox")).filter(n=>n.checked).map(n=>n.value);this.name=s,this._internals.setFormValue(i.join(", ")),this._manageCheckboxRequired()}async _manageCheckboxRequired(){if(this.required){const t=this.errorMessage||"Please select at least one option.",e=this.querySelector("nys-checkbox"),s=e?await e.getInputElement():null;let r=!1;this.querySelectorAll("nys-checkbox").forEach(n=>{n.checked&&(r=!0)}),r?(this._internals.setValidity({}),this.showError=!1):(this._internals.setValidity({valueMissing:!0},t,s||this),this.showError=!0)}}updateCheckboxSize(){this.querySelectorAll("nys-checkbox").forEach(e=>{e.setAttribute("size",this.size)})}render(){return h` <div
|
|
2311
2325
|
class="nys-checkboxgroup"
|
|
2312
2326
|
aria-required="${this.required?"true":"false"}"
|
|
2313
2327
|
role="group"
|
|
@@ -2328,7 +2342,7 @@
|
|
|
2328
2342
|
errorMessage=${this._internals.validationMessage||this.errorMessage}
|
|
2329
2343
|
showDivider
|
|
2330
2344
|
></nys-errormessage>
|
|
2331
|
-
</div>`}},o1.VALID_SIZES=["sm","md"],o1.styles=
|
|
2345
|
+
</div>`}},o1.VALID_SIZES=["sm","md"],o1.styles=we,o1.formAssociated=!0,o1);e1([a({type:String})],K.prototype,"id",2),e1([a({type:String,reflect:!0})],K.prototype,"name",2),e1([a({type:Boolean,reflect:!0})],K.prototype,"required",2),e1([a({type:Boolean,reflect:!0})],K.prototype,"optional",2),e1([a({type:Boolean,reflect:!0})],K.prototype,"showError",2),e1([a({type:String})],K.prototype,"errorMessage",2),e1([a({type:String})],K.prototype,"label",2),e1([a({type:String})],K.prototype,"description",2),e1([a({reflect:!0})],K.prototype,"size",1);let Pe=K;customElements.get("nys-checkboxgroup")||customElements.define("nys-checkboxgroup",Pe);var ys=Object.defineProperty,us=Object.getOwnPropertyDescriptor,N=(o,t,e,s)=>{for(var r=s>1?void 0:s?us(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&ys(t,e,r),r};let ps=0;const T=(n1=class extends p{constructor(){super(),this.checked=!1,this.disabled=!1,this.required=!1,this.label="",this.description="",this.id="",this.name="",this.value="",this.showError=!1,this.errorMessage="",this.groupExist=!1,this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=n1.VALID_SIZES.includes(t)?t:"md"}async getInputElement(){var t;return await this.updateComplete,((t=this.shadowRoot)==null?void 0:t.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()}formResetCallback(){this.checked=!1}_setValue(){this.groupExist||this._internals.setFormValue(this.checked?this.value:null)}_manageRequire(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("input"),e=this.errorMessage||"This field is required";t&&(this.required&&!this.checked?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):this._internals.setValidity({}))}_setValidityMessage(t=""){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");e&&(this.showError=!!t,this.errorMessage.trim()&&t!==""&&(t=this.errorMessage),this._internals.setValidity(t?{customError:!0}:{},t,e))}_validate(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!t)return;let e=t.validationMessage;this._setValidityMessage(e)}checkValidity(){var e;if(this.required&&!this.checked)return!1;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("input");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this.showError=!0,this._validate();const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(e){const r=this._internals.form;r?Array.from(r.elements).find(l=>typeof l.checkValidity=="function"&&!l.checkValidity())===this&&e.focus():e.focus()}}_handleChange(t){const{checked:e}=t.target;this.checked=e,this.groupExist||this._internals.setFormValue(this.checked?this.value:null),this._validate(),this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this.dispatchEvent(new Event("blur"))}_handleKeydown(t){t.code==="Space"&&(t.preventDefault(),this.disabled||(this.checked=!this.checked,this._internals.setFormValue(this.checked?this.value:null),this._manageRequire(),this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))))}render(){return h`
|
|
2332
2346
|
<div class="nys-checkbox">
|
|
2333
2347
|
<label class="nys-checkbox__content">
|
|
2334
2348
|
<div class="nys-checkbox__checkboxwrapper">
|
|
@@ -2374,7 +2388,7 @@
|
|
|
2374
2388
|
showDivider
|
|
2375
2389
|
></nys-errormessage>
|
|
2376
2390
|
</div>
|
|
2377
|
-
`}},n1.VALID_SIZES=["sm","md"],n1.styles=
|
|
2391
|
+
`}},n1.VALID_SIZES=["sm","md"],n1.styles=we,n1.formAssociated=!0,n1);N([a({type:Boolean,reflect:!0})],T.prototype,"checked",2),N([a({type:Boolean,reflect:!0})],T.prototype,"disabled",2),N([a({type:Boolean,reflect:!0})],T.prototype,"required",2),N([a({type:String})],T.prototype,"label",2),N([a({type:String})],T.prototype,"description",2),N([a({type:String})],T.prototype,"id",2),N([a({type:String,reflect:!0})],T.prototype,"name",2),N([a({type:String})],T.prototype,"value",2),N([a({type:Boolean,reflect:!0})],T.prototype,"showError",2),N([a({type:String})],T.prototype,"errorMessage",2),N([a({type:Boolean})],T.prototype,"groupExist",2),N([a({reflect:!0})],T.prototype,"size",1);let Ze=T;customElements.get("nys-checkbox")||customElements.define("nys-checkbox",Ze);const fs=b`
|
|
2378
2392
|
:host {
|
|
2379
2393
|
--_nys-errormessage-font-family: var(
|
|
2380
2394
|
--nys-font-family-ui,
|
|
@@ -2423,10 +2437,10 @@
|
|
|
2423
2437
|
border-top: var(--_nys-errormessage-divider-width) solid
|
|
2424
2438
|
var(--_nys-errormessage-color);
|
|
2425
2439
|
}
|
|
2426
|
-
`;var
|
|
2440
|
+
`;var vs=Object.defineProperty,wt=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&vs(t,e,r),r};const J2=class J2 extends p{constructor(){super(),this.showError=!1,this.errorMessage="",this.showDivider=!1,this._internals=this.attachInternals()}render(){return h`${this.showError?h`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
|
|
2427
2441
|
<nys-icon name="error" size="2xl"></nys-icon>
|
|
2428
2442
|
${this._internals.validationMessage||this.errorMessage}
|
|
2429
|
-
</div>`:""}`}};
|
|
2443
|
+
</div>`:""}`}};J2.styles=fs,J2.formAssociated=!0;let A1=J2;wt([a({type:Boolean})],A1.prototype,"showError"),wt([a({type:String})],A1.prototype,"errorMessage"),wt([a({type:Boolean,reflect:!0})],A1.prototype,"showDivider"),customElements.get("nys-errormessage")||customElements.define("nys-errormessage",A1);const gs={account_circle:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2430
2444
|
<mask id="mask0_12372_781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
2431
2445
|
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
2432
2446
|
</mask>
|
|
@@ -2596,6 +2610,20 @@
|
|
|
2596
2610
|
<g mask="url(#mask0_12372_409)">
|
|
2597
2611
|
<path d="M5 19C4.71667 19 4.47917 18.9042 4.2875 18.7125C4.09583 18.5208 4 18.2833 4 18C4 17.7167 4.09583 17.4792 4.2875 17.2875C4.47917 17.0958 4.71667 17 5 17H6V10C6 8.61667 6.41667 7.3875 7.25 6.3125C8.08333 5.2375 9.16667 4.53333 10.5 4.2V3.5C10.5 3.08333 10.6458 2.72917 10.9375 2.4375C11.2292 2.14583 11.5833 2 12 2C12.4167 2 12.7708 2.14583 13.0625 2.4375C13.3542 2.72917 13.5 3.08333 13.5 3.5V4.2C14.8333 4.53333 15.9167 5.2375 16.75 6.3125C17.5833 7.3875 18 8.61667 18 10V17H19C19.2833 17 19.5208 17.0958 19.7125 17.2875C19.9042 17.4792 20 17.7167 20 18C20 18.2833 19.9042 18.5208 19.7125 18.7125C19.5208 18.9042 19.2833 19 19 19H5ZM12 22C11.45 22 10.9792 21.8042 10.5875 21.4125C10.1958 21.0208 10 20.55 10 20H14C14 20.55 13.8042 21.0208 13.4125 21.4125C13.0208 21.8042 12.55 22 12 22ZM8 17H16V10C16 8.9 15.6083 7.95833 14.825 7.175C14.0417 6.39167 13.1 6 12 6C10.9 6 9.95833 6.39167 9.175 7.175C8.39167 7.95833 8 8.9 8 10V17Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
2598
2612
|
</g>
|
|
2613
|
+
</svg>`,add:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2614
|
+
<mask id="mask0_14011_362" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
2615
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
2616
|
+
</mask>
|
|
2617
|
+
<g mask="url(#mask0_14011_362)">
|
|
2618
|
+
<path d="M11 13H6C5.71667 13 5.47917 12.9042 5.2875 12.7125C5.09583 12.5208 5 12.2833 5 12C5 11.7167 5.09583 11.4792 5.2875 11.2875C5.47917 11.0958 5.71667 11 6 11H11V6C11 5.71667 11.0958 5.47917 11.2875 5.2875C11.4792 5.09583 11.7167 5 12 5C12.2833 5 12.5208 5.09583 12.7125 5.2875C12.9042 5.47917 13 5.71667 13 6V11H18C18.2833 11 18.5208 11.0958 18.7125 11.2875C18.9042 11.4792 19 11.7167 19 12C19 12.2833 18.9042 12.5208 18.7125 12.7125C18.5208 12.9042 18.2833 13 18 13H13V18C13 18.2833 12.9042 18.5208 12.7125 18.7125C12.5208 18.9042 12.2833 19 12 19C11.7167 19 11.4792 18.9042 11.2875 18.7125C11.0958 18.5208 11 18.2833 11 18V13Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
2619
|
+
</g>
|
|
2620
|
+
</svg>`,remove:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2621
|
+
<mask id="mask0_14011_713" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
2622
|
+
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
2623
|
+
</mask>
|
|
2624
|
+
<g mask="url(#mask0_14011_713)">
|
|
2625
|
+
<path d="M6 13C5.71667 13 5.47917 12.9042 5.2875 12.7125C5.09583 12.5208 5 12.2833 5 12C5 11.7167 5.09583 11.4792 5.2875 11.2875C5.47917 11.0958 5.71667 11 6 11H18C18.2833 11 18.5208 11.0958 18.7125 11.2875C18.9042 11.4792 19 11.7167 19 12C19 12.2833 18.9042 12.5208 18.7125 12.7125C18.5208 12.9042 18.2833 13 18 13H6Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
2626
|
+
</g>
|
|
2599
2627
|
</svg>`,arrow_back:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2600
2628
|
<mask id="mask0_12372_673" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
2601
2629
|
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
@@ -2844,7 +2872,7 @@
|
|
|
2844
2872
|
<g mask="url(#mask0_12372_621)">
|
|
2845
2873
|
<path d="M6.30002 22.7751C5.43369 22.7751 4.69211 22.4667 4.07527 21.8498C3.45844 21.2328 3.15002 20.4913 3.15002 19.6251V10.2251C3.15002 9.35893 3.45844 8.61735 4.07527 8.00035C4.69211 7.38351 5.43369 7.0751 6.30002 7.0751H6.62502V5.8001C6.62502 4.28343 7.14586 2.99593 8.18752 1.9376C9.22919 0.879264 10.5 0.350098 12 0.350098C13.5 0.350098 14.7709 0.879264 15.8125 1.9376C16.8542 2.99593 17.375 4.28343 17.375 5.8001V7.0751H17.7C18.5662 7.0751 19.3078 7.38351 19.9248 8.00035C20.5416 8.61735 20.85 9.35893 20.85 10.2251V19.6251C20.85 20.4913 20.5416 21.2328 19.9248 21.8498C19.3078 22.4667 18.5662 22.7751 17.7 22.7751H6.30002ZM12 16.9251C12.55 16.9251 13.0209 16.7293 13.4125 16.3376C13.8042 15.9459 14 15.4751 14 14.9251C14 14.3751 13.8042 13.9043 13.4125 13.5126C13.0209 13.1209 12.55 12.9251 12 12.9251C11.45 12.9251 10.9792 13.1209 10.5875 13.5126C10.1959 13.9043 10 14.3751 10 14.9251C10 15.4751 10.1959 15.9459 10.5875 16.3376C10.9792 16.7293 11.45 16.9251 12 16.9251ZM9.77502 7.0751H14.225V5.8001C14.225 5.16126 14.0125 4.61818 13.5875 4.17085C13.1625 3.72368 12.6334 3.5001 12 3.5001C11.3667 3.5001 10.8375 3.72368 10.4125 4.17085C9.98752 4.61818 9.77502 5.16126 9.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
|
|
2846
2874
|
</g>
|
|
2847
|
-
</svg>`},
|
|
2875
|
+
</svg>`},_s=b`
|
|
2848
2876
|
:host {
|
|
2849
2877
|
display: inline-block;
|
|
2850
2878
|
--_nys-icon-size: 0.7em; /* If cap isn't supported, a fallback value of 0.7em is used, as it closely approximates the height of capital letters in most fonts. */
|
|
@@ -2940,7 +2968,7 @@
|
|
|
2940
2968
|
.nys-icon--flip-both {
|
|
2941
2969
|
transform: scale(-1, -1);
|
|
2942
2970
|
}
|
|
2943
|
-
`;var
|
|
2971
|
+
`;var bs=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,W1=(o,t,e,s)=>{for(var r=s>1?void 0:s?ms(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&bs(t,e,r),r};const D1=(m1=class extends p{constructor(){super(...arguments),this.name="",this.label="",this.rotate="0",this.flip="",this.color="",this._size="sm"}get size(){return this._size}set size(t){this._size=m1.VALID_TYPES.includes(t)?t:"sm"}getIcon(){const t=gs[this.name],e=!!this.label;if(!t)return null;const i=new DOMParser().parseFromString(t,"image/svg+xml").documentElement;return i instanceof SVGElement?(i.setAttribute("role","img"),i.setAttribute("aria-label",e?this.label:""),i.setAttribute("aria-hidden",e?"false":"true"),i.style.rotate=`${this.rotate}deg`,i.style.color=this.color||"currentcolor",i.classList.add(`nys-icon--${this.size}`),i.classList.add("nys-icon--svg"),this.flip&&i.classList.add(`nys-icon--flip-${this.flip}`),i):null}render(){const t=this.getIcon();return t?h`${t}`:null}},m1.styles=_s,m1.VALID_TYPES=["2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","12","16","24","32","48","64"],m1);W1([a({type:String,reflect:!0})],D1.prototype,"name",2),W1([a({type:String})],D1.prototype,"label",2),W1([a({type:String})],D1.prototype,"rotate",2),W1([a({type:String})],D1.prototype,"flip",2),W1([a({type:String})],D1.prototype,"color",2),W1([a({reflect:!0})],D1.prototype,"size",1);let Oe=D1;customElements.get("nys-icon")||customElements.define("nys-icon",Oe);const ws=b`
|
|
2944
2972
|
:host {
|
|
2945
2973
|
/* Label Typography */
|
|
2946
2974
|
--_nys-label-font-family: var(
|
|
@@ -2992,11 +3020,13 @@
|
|
|
2992
3020
|
}
|
|
2993
3021
|
|
|
2994
3022
|
.nys-label__label {
|
|
3023
|
+
text-align: left;
|
|
2995
3024
|
font-weight: var(--_nys-label-font-weight);
|
|
2996
3025
|
color: var(--_nys-label-font-color);
|
|
2997
3026
|
}
|
|
2998
3027
|
|
|
2999
3028
|
.nys-label__description {
|
|
3029
|
+
text-align: left;
|
|
3000
3030
|
font-weight: var(--nys-description-font-weight);
|
|
3001
3031
|
font-style: var(--nys-description-font-style);
|
|
3002
3032
|
color: var(--nys-description-font-color);
|
|
@@ -3011,7 +3041,7 @@
|
|
|
3011
3041
|
font-weight: var(--nys-optional-font-weight);
|
|
3012
3042
|
color: var(--nys-optional-font-color);
|
|
3013
3043
|
}
|
|
3014
|
-
`;var
|
|
3044
|
+
`;var xs=Object.defineProperty,R2=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&xs(t,e,r),r};const Et=class Et extends p{constructor(){super(...arguments),this.id="",this.label="",this.description="",this.flag=""}render(){return h`
|
|
3015
3045
|
<div class="nys-label">
|
|
3016
3046
|
<label for=${this.id} class="nys-label__label"
|
|
3017
3047
|
>${this.label}
|
|
@@ -3022,7 +3052,7 @@
|
|
|
3022
3052
|
<slot name="description">${this.description}</slot>
|
|
3023
3053
|
</label>
|
|
3024
3054
|
</div>
|
|
3025
|
-
`}};
|
|
3055
|
+
`}};Et.styles=ws;let p1=Et;R2([a({type:String})],p1.prototype,"id"),R2([a({type:String})],p1.prototype,"label"),R2([a({type:String})],p1.prototype,"description"),R2([a({type:String})],p1.prototype,"flag"),customElements.get("nys-label")||customElements.define("nys-label",p1);const Ie=b`
|
|
3026
3056
|
:host {
|
|
3027
3057
|
/* Global Radiobutton Styles */
|
|
3028
3058
|
--_nys-radiobutton-size: var(--nys-size-400, 32px);
|
|
@@ -3253,7 +3283,7 @@
|
|
|
3253
3283
|
color: var(--_nys-radiobutton-disabled-color-text);
|
|
3254
3284
|
cursor: not-allowed;
|
|
3255
3285
|
}
|
|
3256
|
-
`;var
|
|
3286
|
+
`;var ks=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,J=(o,t,e,s)=>{for(var r=s>1?void 0:s?$s(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&ks(t,e,r),r};let Ss=0;const j=(i1=class extends p{constructor(){super(),this.id="",this.name="",this.required=!1,this.optional=!1,this.showError=!1,this.errorMessage="",this.label="",this.description="",this.selectedValue=null,this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=i1.VALID_SIZES.includes(t)?t:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiogroup-${Date.now()}-${Ss++}`),this.addEventListener("change",this._handleRadioButtonChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this._handleRadioButtonChange),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._initializeCheckedRadioValue(),this._setValue(),this.setRadioButtonRequire()}updated(t){(t.has("required")||t.has("selectedValue"))&&this._manageRequire(),t.has("size")&&this._updateRadioButtonsSize()}formResetCallback(){this.querySelectorAll("nys-radiobutton").forEach(e=>{e.formResetUpdate()})}_setValue(){this._internals.setFormValue(this.selectedValue)}setRadioButtonRequire(){this.querySelectorAll("nys-radiobutton").forEach((e,s)=>{this.required&&s===0&&e.setAttribute("required","required")})}async _manageRequire(){const t=this.errorMessage||"Please select an option.",e=this.querySelector("nys-radiobutton"),s=e?await e.getInputElement():null;s&&(this.required&&!this.selectedValue?this._internals.setValidity({valueMissing:!0},t,s):(this.showError=!1,this._internals.setValidity({},"",s)))}_initializeCheckedRadioValue(){const t=this.querySelector("nys-radiobutton[checked]");t&&(this.selectedValue=t.getAttribute("value"),this._internals.setFormValue(this.selectedValue))}_updateRadioButtonsSize(){this.querySelectorAll("nys-radiobutton").forEach(e=>{e.setAttribute("size",this.size)})}_handleRadioButtonChange(t){const e=t,{name:s,value:r}=e.detail;this.name=s,this.selectedValue=r,this._internals.setFormValue(this.selectedValue)}async _handleInvalid(t){if(t.preventDefault(),this._internals.validity.valueMissing){this.showError=!0,this._manageRequire();const e=this.querySelector("nys-radiobutton"),s=e?await e.getInputElement():null;if(s){const r=this._internals.form;r?Array.from(r.elements).find(l=>{if(l.tagName.toLowerCase()==="nys-radiogroup"){if(!l.querySelector("nys-radiobutton").checkValidity())return l}else return typeof l.checkValidity=="function"&&!l.checkValidity()})===this&&s.focus():s.focus()}}}render(){return h` <div
|
|
3257
3287
|
role="radiogroup"
|
|
3258
3288
|
class="nys-radiogroup"
|
|
3259
3289
|
aria-required="${this.required?"true":"false"}"
|
|
@@ -3275,7 +3305,7 @@
|
|
|
3275
3305
|
errorMessage=${this._internals.validationMessage||this.errorMessage}
|
|
3276
3306
|
showDivider
|
|
3277
3307
|
></nys-errormessage>
|
|
3278
|
-
</div>`}},i1.VALID_SIZES=["sm","md"],i1.styles=
|
|
3308
|
+
</div>`}},i1.VALID_SIZES=["sm","md"],i1.styles=Ie,i1.formAssociated=!0,i1);J([a({type:String})],j.prototype,"id",2),J([a({type:String,reflect:!0})],j.prototype,"name",2),J([a({type:Boolean,reflect:!0})],j.prototype,"required",2),J([a({type:Boolean,reflect:!0})],j.prototype,"optional",2),J([a({type:Boolean,reflect:!0})],j.prototype,"showError",2),J([a({type:String})],j.prototype,"errorMessage",2),J([a({type:String})],j.prototype,"label",2),J([a({type:String})],j.prototype,"description",2),J([$1()],j.prototype,"selectedValue",2),J([a({reflect:!0})],j.prototype,"size",1);let Te=j;customElements.get("nys-radiogroup")||customElements.define("nys-radiogroup",Te);var Ls=Object.defineProperty,Es=Object.getOwnPropertyDescriptor,s1=(o,t,e,s)=>{for(var r=s>1?void 0:s?Es(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Ls(t,e,r),r};let Ms=0;const X=(g=class extends p{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.required=!1,this.label="",this.description="",this.id="",this.name="",this.value="",this._size="md"}get size(){return this._size}set size(t){this._size=g.VALID_SIZES.includes(t)?t:"md"}async getInputElement(){var t;return await this.updateComplete,((t=this.shadowRoot)==null?void 0:t.querySelector("input"))||null}formResetUpdate(){this.checked=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiobutton-${Date.now()}-${Ms++}`),this.checked&&(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this)}updated(t){t.has("checked")&&this.checked&&g.buttonGroup[this.name]!==this&&(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this)}checkValidity(){var e;if(this.required&&!this.checked)return!1;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("input");return t?t.checkValidity():!0}_handleChange(){this.checked||(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this,this.checked=!0,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0})))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this.dispatchEvent(new Event("blur"))}_handleKeydown(t){t.code==="Space"&&(t.preventDefault(),!this.disabled&&!this.checked&&(g.buttonGroup[this.name]&&(g.buttonGroup[this.name].checked=!1,g.buttonGroup[this.name].requestUpdate()),g.buttonGroup[this.name]=this,this.checked=!0,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))))}render(){return h`
|
|
3279
3309
|
<label class="nys-radiobutton">
|
|
3280
3310
|
<input
|
|
3281
3311
|
id="${this.id}"
|
|
@@ -3303,7 +3333,7 @@
|
|
|
3303
3333
|
</label>
|
|
3304
3334
|
</div>`}
|
|
3305
3335
|
</label>
|
|
3306
|
-
`}},g.VALID_SIZES=["sm","md"],g.buttonGroup={},g.styles=
|
|
3336
|
+
`}},g.VALID_SIZES=["sm","md"],g.buttonGroup={},g.styles=Ie,g);s1([a({type:Boolean,reflect:!0})],X.prototype,"checked",2),s1([a({type:Boolean,reflect:!0})],X.prototype,"disabled",2),s1([a({type:Boolean,reflect:!0})],X.prototype,"required",2),s1([a({type:String})],X.prototype,"label",2),s1([a({type:String})],X.prototype,"description",2),s1([a({type:String})],X.prototype,"id",2),s1([a({type:String,reflect:!0})],X.prototype,"name",2),s1([a({type:String})],X.prototype,"value",2),s1([a({reflect:!0})],X.prototype,"size",1);let Be=X;customElements.get("nys-radiobutton")||customElements.define("nys-radiobutton",Be);const As=b`
|
|
3307
3337
|
:host {
|
|
3308
3338
|
/* Global Select Styles */
|
|
3309
3339
|
--_nys-select-width: 100%;
|
|
@@ -3450,7 +3480,7 @@
|
|
|
3450
3480
|
--_nys-select-border-default: var(--nys-border-width-sm, 1px) solid
|
|
3451
3481
|
var(--_nys-select-error-color);
|
|
3452
3482
|
}
|
|
3453
|
-
`;var
|
|
3483
|
+
`;var Ds=Object.defineProperty,f2=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&Ds(t,e,r),r};class f1 extends p{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.value="",this.label="",this.hidden=!1}firstUpdated(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t&&t.addEventListener("slotchange",()=>{var r;const s=t.assignedNodes({flatten:!0});s.length>0&&(this.label=((r=s[0].textContent)==null?void 0:r.trim())||"")})}render(){return h`
|
|
3454
3484
|
<option
|
|
3455
3485
|
?disabled=${this.disabled}
|
|
3456
3486
|
?selected=${this.selected}
|
|
@@ -3460,7 +3490,7 @@
|
|
|
3460
3490
|
>
|
|
3461
3491
|
<slot>${this.label}</slot>
|
|
3462
3492
|
</option>
|
|
3463
|
-
`}}
|
|
3493
|
+
`}}f2([a({type:Boolean,reflect:!0})],f1.prototype,"disabled"),f2([a({type:Boolean,reflect:!0})],f1.prototype,"selected"),f2([a({type:String})],f1.prototype,"value"),f2([a({type:String})],f1.prototype,"label"),f2([a({type:Boolean,reflect:!0})],f1.prototype,"hidden"),customElements.define("nys-option",f1);var Hs=Object.defineProperty,Vs=Object.getOwnPropertyDescriptor,q=(o,t,e,s)=>{for(var r=s>1?void 0:s?Vs(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Hs(t,e,r),r};let Us=0;const B=(a1=class extends p{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.value="",this.disabled=!1,this.required=!1,this.optional=!1,this.form="",this.showError=!1,this.errorMessage="",this._width="md",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get width(){return this._width}set width(t){this._width=a1.VALID_WIDTHS.includes(t)?t:"full"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-select-${Date.now()}-${Us++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_handleSlotChange(){var r,i;const t=(r=this.shadowRoot)==null?void 0:r.querySelector('slot:not([name="description"])'),e=(i=this.shadowRoot)==null?void 0:i.querySelector("select");if(!t||!e)return;e.querySelectorAll("option:not([hidden])").forEach(n=>n.remove()),t.assignedElements({flatten:!0}).forEach(n=>{var l;if(n instanceof f1){const c=document.createElement("option");c.value=n.value,c.textContent=n.label||((l=n.textContent)==null?void 0:l.trim())||"",c.disabled=n.disabled,c.selected=n.selected,e.appendChild(c)}})}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("select");if(!t)return;const e=this.errorMessage||"Please select an option.";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(t=""){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("select");e&&(this.showError=!!t,this.errorMessage.trim()&&t!==""&&(t=this.errorMessage),this._internals.setValidity(t?{customError:!0}:{},t,e))}_validate(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!t)return;let e=t.validationMessage;this._manageRequire(),this._setValidityMessage(e)}checkValidity(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("select");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this._hasUserInteracted=!0,this._validate(),this.showError=!0;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(e){const r=this._internals.form;r?Array.from(r.elements).find(l=>typeof l.checkValidity=="function"&&!l.checkValidity())===this&&e.focus():e.focus()}}_handleChange(t){const e=t.target;this.value=e.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleInput(){this.dispatchEvent(new Event("input"))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("blur"))}updated(t){var e;if(super.updated(t),t.has("value")){const s=(e=this.shadowRoot)==null?void 0:e.querySelector("select");s&&(s.value=this.value)}}render(){return h`
|
|
3464
3494
|
<div class="nys-select">
|
|
3465
3495
|
<nys-label
|
|
3466
3496
|
id=${this.id}
|
|
@@ -3502,7 +3532,86 @@
|
|
|
3502
3532
|
errorMessage=${this._internals.validationMessage||this.errorMessage}
|
|
3503
3533
|
></nys-errormessage>
|
|
3504
3534
|
</div>
|
|
3505
|
-
`}},a1.VALID_WIDTHS=["sm","md","lg","full"],a1.styles=
|
|
3535
|
+
`}},a1.VALID_WIDTHS=["sm","md","lg","full"],a1.styles=As,a1.formAssociated=!0,a1);q([a({type:String})],B.prototype,"id",2),q([a({type:String,reflect:!0})],B.prototype,"name",2),q([a({type:String})],B.prototype,"label",2),q([a({type:String})],B.prototype,"description",2),q([a({type:String})],B.prototype,"value",2),q([a({type:Boolean,reflect:!0})],B.prototype,"disabled",2),q([a({type:Boolean,reflect:!0})],B.prototype,"required",2),q([a({type:Boolean,reflect:!0})],B.prototype,"optional",2),q([a({type:String})],B.prototype,"form",2),q([a({type:Boolean,reflect:!0})],B.prototype,"showError",2),q([a({type:String})],B.prototype,"errorMessage",2),q([a({reflect:!0})],B.prototype,"width",1);let Re=B;customElements.get("nys-select")||customElements.define("nys-select",Re);const zs=b`
|
|
3536
|
+
:host {
|
|
3537
|
+
/* Global Skipnav Styles */
|
|
3538
|
+
--_nys-skipnav-padding-vertical: var(--nys-space-100, 8px);
|
|
3539
|
+
--_nys-skipnav-padding-horizontal: var(--nys-space-200, 16px);
|
|
3540
|
+
--_nys-skipnav-gap: var(--nys-space-100, 8px);
|
|
3541
|
+
|
|
3542
|
+
/* Typography */
|
|
3543
|
+
--_nys-skipnav-font-size: var(--nys-font-size-ui-md, 16px);
|
|
3544
|
+
--_nys-skipnav-font-weight: var(--nys-font-weight-semibold, 600);
|
|
3545
|
+
--_nys-skipnav-font-letterspacing: var(
|
|
3546
|
+
--nys-font-letterspacing-ui-md,
|
|
3547
|
+
0.044px
|
|
3548
|
+
);
|
|
3549
|
+
--_nys-skipnav-line-height: var(--nys-font-lineheight-ui-md, 24px);
|
|
3550
|
+
--_nys-skipnav-font-family: var(
|
|
3551
|
+
--nys-font-family-ui,
|
|
3552
|
+
var(
|
|
3553
|
+
--nys-font-family-sans,
|
|
3554
|
+
"Proxima Nova",
|
|
3555
|
+
"Helvetica Neue",
|
|
3556
|
+
"Helvetica",
|
|
3557
|
+
"Arial",
|
|
3558
|
+
sans-serif
|
|
3559
|
+
)
|
|
3560
|
+
);
|
|
3561
|
+
|
|
3562
|
+
/* Color */
|
|
3563
|
+
--_nys-skipnav-color-link: var(--nys-color-link, #004dd1);
|
|
3564
|
+
--_nys-skipnav-color-background: var(--nys-color-surface, #fff);
|
|
3565
|
+
}
|
|
3566
|
+
|
|
3567
|
+
.nys-skipnav__link {
|
|
3568
|
+
position: absolute;
|
|
3569
|
+
left: 0;
|
|
3570
|
+
top: -4.8rem;
|
|
3571
|
+
display: inline-flex;
|
|
3572
|
+
padding: var(--_nys-skipnav-padding-vertical)
|
|
3573
|
+
var(--_nys-skipnav-padding-horizontal);
|
|
3574
|
+
align-items: flex-end;
|
|
3575
|
+
gap: var(--_nys-skipnav-gap);
|
|
3576
|
+
background: var(--_nys-skipnav-color-background);
|
|
3577
|
+
color: var(--_nys-skipnav-color-link);
|
|
3578
|
+
border: 2px solid var(--_nys-skipnav-color-link);
|
|
3579
|
+
font-family: var(--_nys-skipnav-font-family);
|
|
3580
|
+
font-size: var(--_nys-skipnav-font-size);
|
|
3581
|
+
font-style: normal;
|
|
3582
|
+
font-weight: var(--_nys-skipnav-font-weight);
|
|
3583
|
+
line-height: var(--_nys-skipnav-line-height);
|
|
3584
|
+
letter-spacing: var(--_nys-skipnav-font-letterspacing);
|
|
3585
|
+
text-decoration-line: underline;
|
|
3586
|
+
text-decoration-style: solid;
|
|
3587
|
+
text-decoration-skip-ink: auto;
|
|
3588
|
+
text-decoration-thickness: 7%; /* 1.12px */
|
|
3589
|
+
text-underline-offset: auto;
|
|
3590
|
+
text-underline-position: from-font;
|
|
3591
|
+
z-index: 100;
|
|
3592
|
+
transition: 0.15s ease-in-out;
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3595
|
+
.nys-skipnav__link:focus,
|
|
3596
|
+
.nys-skipnav__link.show {
|
|
3597
|
+
top: 0;
|
|
3598
|
+
left: auto;
|
|
3599
|
+
}
|
|
3600
|
+
`;var Ps=Object.defineProperty,Ne=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&Ps(t,e,r),r};const Mt=class Mt extends p{constructor(){super(),this.id="",this.href=""}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-skipnav-${Date.now()}`)}_handleFocus(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector(".nys-skipnav__link");this.dispatchEvent(new Event("focus")),t==null||t.classList.add("show")}_handleBlur(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector(".nys-skipnav__link");this.dispatchEvent(new Event("blur")),t==null||t.classList.remove("show")}_handleClick(){const t=(this.href||"#main-content").replace("#",""),e=document.getElementById(t);e&&(e.setAttribute("tabindex","-1"),e.focus(),e.style.outline="none")}render(){return h`
|
|
3601
|
+
<div class="nys-skipnav">
|
|
3602
|
+
<a
|
|
3603
|
+
id=${this.id}
|
|
3604
|
+
href=${this.href?this.href:"#main-content"}
|
|
3605
|
+
tabindex="0"
|
|
3606
|
+
class="nys-skipnav__link"
|
|
3607
|
+
@focus="${this._handleFocus}"
|
|
3608
|
+
@blur="${this._handleBlur}"
|
|
3609
|
+
@click="${this._handleClick}"
|
|
3610
|
+
>
|
|
3611
|
+
Skip to main content
|
|
3612
|
+
</a>
|
|
3613
|
+
</div>
|
|
3614
|
+
`}};Mt.styles=zs;let Y1=Mt;Ne([a({type:String})],Y1.prototype,"id"),Ne([a({type:String})],Y1.prototype,"href"),customElements.get("nys-skipnav")||customElements.define("nys-skipnav",Y1);const Zs=b`
|
|
3506
3615
|
:host {
|
|
3507
3616
|
/* Anything that can be overridden should be defined here */
|
|
3508
3617
|
|
|
@@ -3643,7 +3752,7 @@
|
|
|
3643
3752
|
color: var(--_nys-textarea-disabled-color-text);
|
|
3644
3753
|
cursor: not-allowed;
|
|
3645
3754
|
}
|
|
3646
|
-
`;var
|
|
3755
|
+
`;var Os=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,z=(o,t,e,s)=>{for(var r=s>1?void 0:s?Is(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Os(t,e,r),r};let Ts=0;const D=(W=class extends p{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.form="",this.maxlength=null,this.width="full",this.rows=4,this._resize="vertical",this.showError=!1,this.errorMessage="",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get resize(){return this._resize}set resize(t){this._resize=W.VALID_RESIZE.includes(t)?t:"vertical"}async updated(t){await Promise.resolve(),t.has("width")&&(this.width=W.VALID_WIDTHS.includes(this.width)?this.width:"full"),t.has("rows")&&(this.rows=this.rows??4)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textarea-${Date.now()}-${Ts++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_setValue(){this._manageRequire(),this._internals.setFormValue(this.value)}_manageRequire(){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("textarea");if(!t)return;const e=this.errorMessage||"This field is required";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(t=""){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");e&&(this.showError=!!t,this.errorMessage.trim()&&t!==""&&(t=this.errorMessage),this._internals.setValidity(t?{customError:!0}:{},t,e))}_validate(){var s;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!t)return;let e=t.validationMessage;this._setValidityMessage(e)}checkValidity(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("textarea");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this._hasUserInteracted=!0,this._validate();const e=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(e){const r=this._internals.form;r?Array.from(r.elements).find(l=>typeof l.checkValidity=="function"&&!l.checkValidity())===this&&e.focus():e.focus()}}_handleInput(t){const e=t.target;this.value=e.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("blur"))}_handleChange(){this.dispatchEvent(new Event("change"))}_handleSelect(t){const e=t.target;this.value=e.value,this.dispatchEvent(new CustomEvent("select",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleSelectionChange(t){const e=t.target;this.value=e.value,this.dispatchEvent(new CustomEvent("selectionchange",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return h`
|
|
3647
3756
|
<label class="nys-textarea">
|
|
3648
3757
|
<nys-label
|
|
3649
3758
|
id=${this.id}
|
|
@@ -3678,7 +3787,7 @@
|
|
|
3678
3787
|
errorMessage=${this._internals.validationMessage||this.errorMessage}
|
|
3679
3788
|
></nys-errormessage>
|
|
3680
3789
|
</label>
|
|
3681
|
-
`}},W.VALID_WIDTHS=["sm","md","lg","full"],W.VALID_RESIZE=["vertical","none"],W.styles=
|
|
3790
|
+
`}},W.VALID_WIDTHS=["sm","md","lg","full"],W.VALID_RESIZE=["vertical","none"],W.styles=Zs,W.formAssociated=!0,W);z([a({type:String})],D.prototype,"id",2),z([a({type:String,reflect:!0})],D.prototype,"name",2),z([a({type:String})],D.prototype,"label",2),z([a({type:String})],D.prototype,"description",2),z([a({type:String})],D.prototype,"placeholder",2),z([a({type:String})],D.prototype,"value",2),z([a({type:Boolean,reflect:!0})],D.prototype,"disabled",2),z([a({type:Boolean,reflect:!0})],D.prototype,"readonly",2),z([a({type:Boolean,reflect:!0})],D.prototype,"required",2),z([a({type:Boolean,reflect:!0})],D.prototype,"optional",2),z([a({type:String})],D.prototype,"form",2),z([a({type:Number})],D.prototype,"maxlength",2),z([a({reflect:!0})],D.prototype,"width",2),z([a({type:Number})],D.prototype,"rows",2),z([a({reflect:!0})],D.prototype,"resize",1),z([a({type:Boolean,reflect:!0})],D.prototype,"showError",2),z([a({type:String})],D.prototype,"errorMessage",2);let qe=D;customElements.get("nys-textarea")||customElements.define("nys-textarea",qe);const Bs=b`
|
|
3682
3791
|
:host {
|
|
3683
3792
|
/* Anything that can be overridden should be defined here */
|
|
3684
3793
|
|
|
@@ -3837,7 +3946,7 @@
|
|
|
3837
3946
|
color: var(--_nys-textinput-disabled-color-text);
|
|
3838
3947
|
cursor: not-allowed;
|
|
3839
3948
|
}
|
|
3840
|
-
`;var
|
|
3949
|
+
`;var Rs=Object.defineProperty,Ns=Object.getOwnPropertyDescriptor,x=(o,t,e,s)=>{for(var r=s>1?void 0:s?Ns(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Rs(t,e,r),r};let qs=0;const m=(Y=class extends p{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.form="",this.pattern="",this.maxlength=null,this.width="full",this.step=null,this.min=null,this.max=null,this.showError=!1,this.errorMessage="",this.showPassword=!1,this._originalErrorMessage="",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get type(){return this._type}set type(t){this._type=Y.VALID_TYPES.includes(t)?t:"text"}async updated(t){t.has("width")&&(await Promise.resolve(),this.width=Y.VALID_WIDTHS.includes(this.width)?this.width:"full")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textinput-${Date.now()}-${qs++}`),this._originalErrorMessage=this.errorMessage,this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("input");if(!t)return;const e=this.errorMessage||"This field is required";this.required&&(!this.value||this.value.trim()==="")?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(t=""){var r;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("input");if(!e)return;this.showError=!!t,this._originalErrorMessage.trim()&&t!==""?this.errorMessage=this._originalErrorMessage:this.errorMessage=t;const s=t?{customError:!0}:{};this._internals.setValidity(s,this.errorMessage,e)}_validate(){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("input");if(!t)return;const e=t.validity;let s="";e.valueMissing?s="This field is required":e.typeMismatch?s="Invalid format for this type":e.patternMismatch?s="Invalid format":e.tooShort?s=`Value is too short. Minimum length is ${t.minLength}`:e.tooLong?s=`Value is too long. Maximum length is ${t.maxLength}`:e.rangeUnderflow?s=`Value must be at least ${t.min}`:e.rangeOverflow?s=`Value must be at most ${t.max}`:e.stepMismatch?s="Invalid step value":s=t.validationMessage,this._setValidityMessage(s)}checkValidity(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("input");return t?t.checkValidity():!0}_handleInvalid(t){var s;t.preventDefault(),this._hasUserInteracted=!0,this._validate();const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(e){const r=this._internals.form;r?Array.from(r.elements).find(l=>typeof l.checkValidity=="function"&&!l.checkValidity())===this&&e.focus():e.focus()}}_togglePasswordVisibility(){this.showPassword=!this.showPassword}_handleInput(t){const e=t.target;this.value=e.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("blur"))}_handleChange(){this.dispatchEvent(new Event("change"))}render(){return h`
|
|
3841
3950
|
<div class="nys-textinput">
|
|
3842
3951
|
<nys-label
|
|
3843
3952
|
id=${this.id}
|
|
@@ -3855,6 +3964,7 @@
|
|
|
3855
3964
|
id=${this.id}
|
|
3856
3965
|
?disabled=${this.disabled}
|
|
3857
3966
|
?required=${this.required}
|
|
3967
|
+
?aria-required=${this.required}
|
|
3858
3968
|
?readonly=${this.readonly}
|
|
3859
3969
|
aria-disabled="${this.disabled}"
|
|
3860
3970
|
aria-label="${this.label} ${this.description}"
|
|
@@ -3883,7 +3993,7 @@
|
|
|
3883
3993
|
errorMessage=${this.errorMessage}
|
|
3884
3994
|
></nys-errormessage>
|
|
3885
3995
|
</div>
|
|
3886
|
-
`}},Y.VALID_TYPES=["email","number","password","search","tel","text","url"],Y.VALID_WIDTHS=["sm","md","lg","full"],Y.styles=
|
|
3996
|
+
`}},Y.VALID_TYPES=["email","number","password","search","tel","text","url"],Y.VALID_WIDTHS=["sm","md","lg","full"],Y.styles=Bs,Y.formAssociated=!0,Y);x([a({type:String})],m.prototype,"id",2),x([a({type:String,reflect:!0})],m.prototype,"name",2),x([a({reflect:!0})],m.prototype,"type",1),x([a({type:String})],m.prototype,"label",2),x([a({type:String})],m.prototype,"description",2),x([a({type:String})],m.prototype,"placeholder",2),x([a({type:String})],m.prototype,"value",2),x([a({type:Boolean,reflect:!0})],m.prototype,"disabled",2),x([a({type:Boolean,reflect:!0})],m.prototype,"readonly",2),x([a({type:Boolean,reflect:!0})],m.prototype,"required",2),x([a({type:Boolean,reflect:!0})],m.prototype,"optional",2),x([a({type:String})],m.prototype,"form",2),x([a({type:String})],m.prototype,"pattern",2),x([a({type:Number})],m.prototype,"maxlength",2),x([a({reflect:!0})],m.prototype,"width",2),x([a({type:Number})],m.prototype,"step",2),x([a({type:Number})],m.prototype,"min",2),x([a({type:Number})],m.prototype,"max",2),x([a({type:Boolean,reflect:!0})],m.prototype,"showError",2),x([a({type:String})],m.prototype,"errorMessage",2),x([$1()],m.prototype,"showPassword",2);let je=m;customElements.get("nys-textinput")||customElements.define("nys-textinput",je);const js=b`
|
|
3887
3997
|
:host {
|
|
3888
3998
|
/* Global Toggle Styles */
|
|
3889
3999
|
--_nys-toggle-width: var(--nys-font-size-8xl, 44px);
|
|
@@ -4159,7 +4269,7 @@
|
|
|
4159
4269
|
--toggle-transition-duration: 0s; /* Disable animation */
|
|
4160
4270
|
}
|
|
4161
4271
|
}
|
|
4162
|
-
`;var
|
|
4272
|
+
`;var Fs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Q=(o,t,e,s)=>{for(var r=s>1?void 0:s?Gs(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&Fs(t,e,r),r};let Ws=0;const F=(l1=class extends p{constructor(){super(),this.id="",this.name="",this.value="",this.checked=!1,this.disabled=!1,this.noIcon=!1,this.label="",this.description="",this._size="md",this.form="",this._internals=this.attachInternals()}get size(){return this._size}set size(t){this._size=l1.VALID_SIZES.includes(t)?t:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-toggle-${Date.now()}-${Ws++}`)}updated(t){(t.has("checked")||t.has("value"))&&this._internals.setFormValue(this.checked?this.value:null)}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this.dispatchEvent(new Event("blur"))}_handleChange(t){const{checked:e}=t.target;this.checked=e,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}_handleKeyDown(t){!this.disabled&&(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}render(){return h`
|
|
4163
4273
|
<label class="nys-toggle">
|
|
4164
4274
|
<div class="nys-toggle__content">
|
|
4165
4275
|
<div class="nys-toggle__toggle">
|
|
@@ -4195,7 +4305,7 @@
|
|
|
4195
4305
|
</div>
|
|
4196
4306
|
</div>
|
|
4197
4307
|
</label>
|
|
4198
|
-
`}},l1.VALID_SIZES=["sm","md"],l1.styles=
|
|
4308
|
+
`}},l1.VALID_SIZES=["sm","md"],l1.styles=js,l1.formAssociated=!0,l1);Q([a({type:String})],F.prototype,"id",2),Q([a({type:String,reflect:!0})],F.prototype,"name",2),Q([a({type:String})],F.prototype,"value",2),Q([a({type:Boolean,reflect:!0})],F.prototype,"checked",2),Q([a({type:Boolean,reflect:!0})],F.prototype,"disabled",2),Q([a({type:Boolean})],F.prototype,"noIcon",2),Q([a({type:String})],F.prototype,"label",2),Q([a({type:String})],F.prototype,"description",2),Q([a({reflect:!0})],F.prototype,"size",1),Q([a({type:String})],F.prototype,"form",2);let Fe=F;customElements.get("nys-toggle")||customElements.define("nys-toggle",Fe);const Ys=b`
|
|
4199
4309
|
:host {
|
|
4200
4310
|
/* Global Unav Header Styles */
|
|
4201
4311
|
--_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
|
|
@@ -4509,7 +4619,7 @@
|
|
|
4509
4619
|
display: contents;
|
|
4510
4620
|
}
|
|
4511
4621
|
}
|
|
4512
|
-
`,
|
|
4622
|
+
`,Ks=`<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
4513
4623
|
<path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="#457AA5"/>
|
|
4514
4624
|
<path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="#457AA5"/>
|
|
4515
4625
|
<path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="#457AA5"/>
|
|
@@ -4538,19 +4648,19 @@
|
|
|
4538
4648
|
* @license
|
|
4539
4649
|
* Copyright 2019 Google LLC
|
|
4540
4650
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4541
|
-
*/const
|
|
4651
|
+
*/const N2=globalThis,xt=N2.ShadowRoot&&(N2.ShadyCSS===void 0||N2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ge=Symbol(),We=new WeakMap;let Js=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==Ge)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o;const t=this.t;if(xt&&o===void 0){const e=t!==void 0&&t.length===1;e&&(o=We.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&We.set(t,o))}return o}toString(){return this.cssText}};const Xs=o=>new Js(typeof o=="string"?o:o+"",void 0,Ge),Qs=(o,t)=>{if(xt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=N2.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},Ye=xt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Xs(e)})(o):o;/**
|
|
4542
4652
|
* @license
|
|
4543
4653
|
* Copyright 2017 Google LLC
|
|
4544
4654
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4545
|
-
*/const{is:
|
|
4655
|
+
*/const{is:t3,defineProperty:e3,getOwnPropertyDescriptor:s3,getOwnPropertyNames:r3,getOwnPropertySymbols:o3,getPrototypeOf:n3}=Object,K1=globalThis,Ke=K1.trustedTypes,i3=Ke?Ke.emptyScript:"",Je=K1.reactiveElementPolyfillSupport,v2=(o,t)=>o,q2={toAttribute(o,t){switch(t){case Boolean:o=o?i3:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},kt=(o,t)=>!t3(o,t),Xe={attribute:!0,type:String,converter:q2,reflect:!1,hasChanged:kt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),K1.litPropertyMetadata??(K1.litPropertyMetadata=new WeakMap);class g2 extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Xe){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&e3(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:i}=s3(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const l=r==null?void 0:r.call(this);i.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Xe}static _$Ei(){if(this.hasOwnProperty(v2("elementProperties")))return;const t=n3(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(v2("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v2("properties"))){const e=this.properties,s=[...r3(e),...o3(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(Ye(r))}else t!==void 0&&e.push(Ye(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Qs(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var s;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:q2).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)==null?void 0:s.fromAttribute)!==void 0?n.converter:q2;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??kt)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdate)==null?void 0:i.call(r)}),this.update(s)):this._$EU()}catch(r){throw e=!1,this._$EU(),r}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}g2.elementStyles=[],g2.shadowRootOptions={mode:"open"},g2[v2("elementProperties")]=new Map,g2[v2("finalized")]=new Map,Je==null||Je({ReactiveElement:g2}),(K1.reactiveElementVersions??(K1.reactiveElementVersions=[])).push("2.0.4");/**
|
|
4546
4656
|
* @license
|
|
4547
4657
|
* Copyright 2017 Google LLC
|
|
4548
4658
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4549
|
-
*/const
|
|
4659
|
+
*/const a3={attribute:!0,type:String,converter:q2,reflect:!1,hasChanged:kt},l3=(o=a3,t,e)=>{const{kind:s,metadata:r}=e;let i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),i.set(e.name,o),s==="accessor"){const{name:n}=e;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,c,o)},init(l){return l!==void 0&&this.P(n,void 0,o),l}}}if(s==="setter"){const{name:n}=e;return function(l){const c=this[n];t.call(this,l),this.requestUpdate(n,c,o)}}throw Error("Unsupported decorator location: "+s)};function k(o){return(t,e)=>typeof e=="object"?l3(o,t,e):((s,r,i)=>{const n=r.hasOwnProperty(i);return r.constructor.createProperty(i,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(r,i):void 0})(o,t,e)}/**
|
|
4550
4660
|
* @license
|
|
4551
4661
|
* Copyright 2017 Google LLC
|
|
4552
4662
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4553
|
-
*/function
|
|
4663
|
+
*/function c3(o){return k({...o,state:!0,attribute:!1})}const h3=b`
|
|
4554
4664
|
:host {
|
|
4555
4665
|
/* Anything that can be overridden should be defined here */
|
|
4556
4666
|
|
|
@@ -4713,13 +4823,13 @@
|
|
|
4713
4823
|
* @license
|
|
4714
4824
|
* Copyright 2017 Google LLC
|
|
4715
4825
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4716
|
-
*/const
|
|
4717
|
-
\f\r]`,
|
|
4718
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
4826
|
+
*/const j2=globalThis,F2=j2.trustedTypes,Qe=F2?F2.createPolicy("lit-html",{createHTML:o=>o}):void 0,t5="$lit$",v1=`lit$${Math.random().toFixed(9).slice(2)}$`,e5="?"+v1,d3=`<${e5}>`,H1=document,G2=()=>H1.createComment(""),_2=o=>o===null||typeof o!="object"&&typeof o!="function",$t=Array.isArray,C3=o=>$t(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",St=`[
|
|
4827
|
+
\f\r]`,b2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,s5=/-->/g,r5=/>/g,V1=RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
|
|
4828
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),o5=/'/g,n5=/"/g,i5=/^(?:script|style|textarea|title)$/i,m2=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),a5=new WeakMap,U1=H1.createTreeWalker(H1,129);function l5(o,t){if(!$t(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qe!==void 0?Qe.createHTML(t):t}const y3=(o,t)=>{const e=o.length-1,s=[];let r,i=t===2?"<svg>":t===3?"<math>":"",n=b2;for(let l=0;l<e;l++){const c=o[l];let C,y,d=-1,u=0;for(;u<c.length&&(n.lastIndex=u,y=n.exec(c),y!==null);)u=n.lastIndex,n===b2?y[1]==="!--"?n=s5:y[1]!==void 0?n=r5:y[2]!==void 0?(i5.test(y[2])&&(r=RegExp("</"+y[2],"g")),n=V1):y[3]!==void 0&&(n=V1):n===V1?y[0]===">"?(n=r??b2,d=-1):y[1]===void 0?d=-2:(d=n.lastIndex-y[2].length,C=y[1],n=y[3]===void 0?V1:y[3]==='"'?n5:o5):n===n5||n===o5?n=V1:n===s5||n===r5?n=b2:(n=V1,r=void 0);const f=n===V1&&o[l+1].startsWith("/>")?" ":"";i+=n===b2?c+d3:d>=0?(s.push(C),c.slice(0,d)+t5+c.slice(d)+v1+f):c+v1+(d===-2?l:f)}return[l5(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class w2{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0;const l=t.length-1,c=this.parts,[C,y]=y3(t,e);if(this.el=w2.createElement(C,s),U1.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=U1.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(t5)){const u=y[n++],f=r.getAttribute(d).split(v1),O=/([.?@])?(.*)/.exec(u);c.push({type:1,index:i,name:O[2],strings:f,ctor:O[1]==="."?p3:O[1]==="?"?f3:O[1]==="@"?v3:Y2}),r.removeAttribute(d)}else d.startsWith(v1)&&(c.push({type:6,index:i}),r.removeAttribute(d));if(i5.test(r.tagName)){const d=r.textContent.split(v1),u=d.length-1;if(u>0){r.textContent=F2?F2.emptyScript:"";for(let f=0;f<u;f++)r.append(d[f],G2()),U1.nextNode(),c.push({type:2,index:++i});r.append(d[u],G2())}}}else if(r.nodeType===8)if(r.data===e5)c.push({type:2,index:i});else{let d=-1;for(;(d=r.data.indexOf(v1,d+1))!==-1;)c.push({type:7,index:i}),d+=v1.length-1}i++}}static createElement(t,e){const s=H1.createElement("template");return s.innerHTML=t,s}}function J1(o,t,e=o,s){var r,i;if(t===m2)return t;let n=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const l=_2(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((i=n==null?void 0:n._$AO)==null||i.call(n,!1),l===void 0?n=void 0:(n=new l(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=J1(o,n._$AS(o,t.values),n,s)),t}class u3{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??H1).importNode(e,!0);U1.currentNode=r;let i=U1.nextNode(),n=0,l=0,c=s[0];for(;c!==void 0;){if(n===c.index){let C;c.type===2?C=new W2(i,i.nextSibling,this,t):c.type===1?C=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(C=new g3(i,this,t)),this._$AV.push(C),c=s[++l]}n!==(c==null?void 0:c.index)&&(i=U1.nextNode(),n++)}return U1.currentNode=H1,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class W2{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=J1(this,t,e),_2(t)?t===E||t==null||t===""?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==m2&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):C3(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==E&&_2(this._$AH)?this._$AA.nextSibling.data=t:this.T(H1.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=w2.createElement(l5(r.h,r.h[0]),this.options)),r);if(((e=this._$AH)==null?void 0:e._$AD)===i)this._$AH.p(s);else{const n=new u3(i,this),l=n.u(this.options);n.p(s),this.T(l),this._$AH=n}}_$AC(t){let e=a5.get(t.strings);return e===void 0&&a5.set(t.strings,e=new w2(t)),e}k(t){$t(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const i of t)r===e.length?e.push(s=new W2(this.O(G2()),this.O(G2()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Y2{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E}_$AI(t,e=this,s,r){const i=this.strings;let n=!1;if(i===void 0)t=J1(this,t,e,0),n=!_2(t)||t!==this._$AH&&t!==m2,n&&(this._$AH=t);else{const l=t;let c,C;for(t=i[0],c=0;c<i.length-1;c++)C=J1(this,l[s+c],e,c),C===m2&&(C=this._$AH[c]),n||(n=!_2(C)||C!==this._$AH[c]),C===E?t=E:t!==E&&(t+=(C??"")+i[c+1]),this._$AH[c]=C}n&&!r&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class p3 extends Y2{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}class f3 extends Y2{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E)}}class v3 extends Y2{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=J1(this,t,e,0)??E)===m2)return;const s=this._$AH,r=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==E&&(s===E||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class g3{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){J1(this,t)}}const c5=j2.litHtmlPolyfillSupport;c5==null||c5(w2,W2),(j2.litHtmlVersions??(j2.litHtmlVersions=[])).push("3.2.1");/**
|
|
4719
4829
|
* @license
|
|
4720
4830
|
* Copyright 2018 Google LLC
|
|
4721
4831
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4722
|
-
*/const z1=o=>o??E;var
|
|
4832
|
+
*/const z1=o=>o??E;var _3=Object.defineProperty,b3=Object.getOwnPropertyDescriptor,$=(o,t,e,s)=>{for(var r=s>1?void 0:s?b3(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(s?n(t,e,r):n(r))||r);return s&&r&&_3(t,e,r),r};let m3=0;var g1;const w=(g1=class extends p{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.form="",this.pattern="",this.maxlength=null,this.width="full",this.step=null,this.min=null,this.max=null,this.showError=!1,this.errorMessage="",this.showPassword=!1,this._originalErrorMessage="",this._hasUserInteracted=!1,this._internals=this.attachInternals()}get type(){return this._type}set type(o){this._type=g1.VALID_TYPES.includes(o)?o:"text"}async updated(o){o.has("width")&&(await Promise.resolve(),this.width=g1.VALID_WIDTHS.includes(this.width)?this.width:"full")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textinput-${Date.now()}-${m3++}`),this._originalErrorMessage=this.errorMessage,this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue(),this._manageRequire()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var o;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!t)return;const e=this.errorMessage||"This field is required";this.required&&(!this.value||this.value.trim()==="")?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},e,t)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(o=""){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");if(!e)return;this.showError=!!o,this._originalErrorMessage.trim()&&o!==""?this.errorMessage=this._originalErrorMessage:this.errorMessage=o;const s=o?{customError:!0}:{};this._internals.setValidity(s,this.errorMessage,e)}_validate(){var o;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!t)return;const e=t.validity;let s="";e.valueMissing?s="This field is required":e.typeMismatch?s="Invalid format for this type":e.patternMismatch?s="Invalid format":e.tooShort?s=`Value is too short. Minimum length is ${t.minLength}`:e.tooLong?s=`Value is too long. Maximum length is ${t.maxLength}`:e.rangeUnderflow?s=`Value must be at least ${t.min}`:e.rangeOverflow?s=`Value must be at most ${t.max}`:e.stepMismatch?s="Invalid step value":s=t.validationMessage,this._setValidityMessage(s)}checkValidity(){var o;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");return t?t.checkValidity():!0}_handleInvalid(o){var t;o.preventDefault(),this._hasUserInteracted=!0,this._validate();const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");if(e){const s=this._internals.form;s?Array.from(s.elements).find(r=>typeof r.checkValidity=="function"&&!r.checkValidity())===this&&e.focus():e.focus()}}_togglePasswordVisibility(){this.showPassword=!this.showPassword}_handleInput(o){const t=o.target;this.value=t.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("blur"))}_handleChange(){this.dispatchEvent(new Event("change"))}render(){return h`
|
|
4723
4833
|
<div class="nys-textinput">
|
|
4724
4834
|
<nys-label
|
|
4725
4835
|
id=${this.id}
|
|
@@ -4737,6 +4847,7 @@
|
|
|
4737
4847
|
id=${this.id}
|
|
4738
4848
|
?disabled=${this.disabled}
|
|
4739
4849
|
?required=${this.required}
|
|
4850
|
+
?aria-required=${this.required}
|
|
4740
4851
|
?readonly=${this.readonly}
|
|
4741
4852
|
aria-disabled="${this.disabled}"
|
|
4742
4853
|
aria-label="${this.label} ${this.description}"
|
|
@@ -4765,7 +4876,7 @@
|
|
|
4765
4876
|
errorMessage=${this.errorMessage}
|
|
4766
4877
|
></nys-errormessage>
|
|
4767
4878
|
</div>
|
|
4768
|
-
`}},g1.VALID_TYPES=["email","number","password","search","tel","text","url"],g1.VALID_WIDTHS=["sm","md","lg","full"],g1.styles=
|
|
4879
|
+
`}},g1.VALID_TYPES=["email","number","password","search","tel","text","url"],g1.VALID_WIDTHS=["sm","md","lg","full"],g1.styles=h3,g1.formAssociated=!0,g1);$([k({type:String})],w.prototype,"id",2),$([k({type:String,reflect:!0})],w.prototype,"name",2),$([k({reflect:!0})],w.prototype,"type",1),$([k({type:String})],w.prototype,"label",2),$([k({type:String})],w.prototype,"description",2),$([k({type:String})],w.prototype,"placeholder",2),$([k({type:String})],w.prototype,"value",2),$([k({type:Boolean,reflect:!0})],w.prototype,"disabled",2),$([k({type:Boolean,reflect:!0})],w.prototype,"readonly",2),$([k({type:Boolean,reflect:!0})],w.prototype,"required",2),$([k({type:Boolean,reflect:!0})],w.prototype,"optional",2),$([k({type:String})],w.prototype,"form",2),$([k({type:String})],w.prototype,"pattern",2),$([k({type:Number})],w.prototype,"maxlength",2),$([k({reflect:!0})],w.prototype,"width",2),$([k({type:Number})],w.prototype,"step",2),$([k({type:Number})],w.prototype,"min",2),$([k({type:Number})],w.prototype,"max",2),$([k({type:Boolean,reflect:!0})],w.prototype,"showError",2),$([k({type:String})],w.prototype,"errorMessage",2),$([c3()],w.prototype,"showPassword",2);let w3=w;customElements.get("nys-textinput")||customElements.define("nys-textinput",w3);var x3=Object.defineProperty,P1=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&x3(t,e,r),r};const At=class At extends p{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(Ks,"image/svg+xml").documentElement}_toggleTrustbar(){this.trustbarVisible=!this.trustbarVisible,this.trustbarVisible&&(this.languageVisible=!1,this.searchDropdownVisible=!1)}_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(t){if(t.key==="Escape"&&(this._handleSearchBlur(),t.target.blur()),t.key==="Enter"){const e=t.target.value.trim();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 h`
|
|
4769
4880
|
<header class="nys-unavheader">
|
|
4770
4881
|
<div class="nys-unavheader__xs nys-unavheader__sm">
|
|
4771
4882
|
<div class="nys-unavheader__toptrustbar">
|
|
@@ -4776,10 +4887,12 @@
|
|
|
4776
4887
|
<nys-button
|
|
4777
4888
|
id="nys-unavheader__know"
|
|
4778
4889
|
label="Here's how you know"
|
|
4890
|
+
ariaLabel="Here's how you know"
|
|
4779
4891
|
variant="ghost"
|
|
4780
4892
|
size="sm"
|
|
4781
4893
|
suffixIcon="slotted"
|
|
4782
4894
|
@click="${this._toggleTrustbar}"
|
|
4895
|
+
@keydown="${t=>{(t.code==="Enter"||t.code==="Space"||t.key==="Enter"||t.key===" ")&&this._toggleTrustbar()}}"
|
|
4783
4896
|
>
|
|
4784
4897
|
<nys-icon
|
|
4785
4898
|
slot="suffix-icon"
|
|
@@ -4794,7 +4907,9 @@
|
|
|
4794
4907
|
variant="ghost"
|
|
4795
4908
|
prefixIcon="close"
|
|
4796
4909
|
size="sm"
|
|
4910
|
+
ariaLabel="Close trustbar"
|
|
4797
4911
|
@click="${this._toggleTrustbar}"
|
|
4912
|
+
@keydown="${t=>{(t.code==="Enter"||t.code==="Space"||t.key==="Enter"||t.key===" ")&&this._toggleTrustbar()}}"
|
|
4798
4913
|
></nys-button>`:null}
|
|
4799
4914
|
</div>
|
|
4800
4915
|
<div
|
|
@@ -4845,7 +4960,9 @@
|
|
|
4845
4960
|
variant="ghost"
|
|
4846
4961
|
size="sm"
|
|
4847
4962
|
suffixIcon="slotted"
|
|
4963
|
+
ariaLabel="Here's how you know"
|
|
4848
4964
|
@click="${this._toggleTrustbar}"
|
|
4965
|
+
@keydown="${t=>{(t.code==="Enter"||t.code==="Space"||t.key==="Enter"||t.key===" ")&&this._toggleTrustbar()}}"
|
|
4849
4966
|
>
|
|
4850
4967
|
<nys-icon
|
|
4851
4968
|
slot="suffix-icon"
|
|
@@ -4864,9 +4981,11 @@
|
|
|
4864
4981
|
<nys-button
|
|
4865
4982
|
variant="ghost"
|
|
4866
4983
|
prefixIcon="language"
|
|
4984
|
+
ariaLabel="Translate"
|
|
4867
4985
|
id="nys-unavheader__translate"
|
|
4868
4986
|
class="nys-unavheader__iconbutton"
|
|
4869
4987
|
@click="${this._toggleLanguageList}"
|
|
4988
|
+
@keydown="${t=>{(t.code==="Enter"||t.code==="Space"||t.key==="Enter"||t.key===" ")&&this._toggleLanguageList()}}"
|
|
4870
4989
|
></nys-button>
|
|
4871
4990
|
</div>
|
|
4872
4991
|
<div class="nys-unavheader__lg nys-unavheader__xl">
|
|
@@ -4875,8 +4994,10 @@
|
|
|
4875
4994
|
label="Translate"
|
|
4876
4995
|
prefixIcon="language_filled"
|
|
4877
4996
|
suffixIcon=${this.languageVisible?"chevron_up":"chevron_down"}
|
|
4997
|
+
ariaLabel="Translate"
|
|
4878
4998
|
id="nys-unavheader__translate"
|
|
4879
4999
|
@click="${this._toggleLanguageList}"
|
|
5000
|
+
@keydown="${t=>{(t.code==="Enter"||t.code==="Space"||t.key==="Enter"||t.key===" ")&&this._toggleLanguageList()}}"
|
|
4880
5001
|
></nys-button>
|
|
4881
5002
|
</div>
|
|
4882
5003
|
<div
|
|
@@ -4896,9 +5017,11 @@
|
|
|
4896
5017
|
<nys-button
|
|
4897
5018
|
variant="ghost"
|
|
4898
5019
|
prefixIcon="search"
|
|
5020
|
+
ariaLabel="Search"
|
|
4899
5021
|
id="nys-unavheader__searchbutton"
|
|
4900
5022
|
class="nys-unavheader__iconbutton"
|
|
4901
5023
|
@click="${this._toggleSearchDropdown}"
|
|
5024
|
+
@keydown="${t=>{(t.code==="Enter"||t.code==="Space"||t.key==="Enter"||t.key===" ")&&this._toggleSearchDropdown()}}"
|
|
4902
5025
|
></nys-button>
|
|
4903
5026
|
</div>
|
|
4904
5027
|
<div class="nys-unavheader__lg nys-unavheader__xl">
|
|
@@ -4942,7 +5065,9 @@
|
|
|
4942
5065
|
variant="ghost"
|
|
4943
5066
|
prefixIcon="close"
|
|
4944
5067
|
size="sm"
|
|
5068
|
+
ariaLabel="Close trustbar"
|
|
4945
5069
|
@click="${this._toggleTrustbar}"
|
|
5070
|
+
@keydown="${t=>{(t.code==="Enter"||t.code==="Space"||t.key==="Enter"||t.key===" ")&&this._toggleTrustbar()}}"
|
|
4946
5071
|
></nys-button>
|
|
4947
5072
|
</div>
|
|
4948
5073
|
</div>
|
|
@@ -4962,7 +5087,7 @@
|
|
|
4962
5087
|
</div>
|
|
4963
5088
|
</div>
|
|
4964
5089
|
</header>
|
|
4965
|
-
`}};
|
|
5090
|
+
`}};At.styles=Ys;let G=At;P1([a({type:Boolean})],G.prototype,"trustbarVisible"),P1([a({type:Boolean})],G.prototype,"searchDropdownVisible"),P1([a({type:Boolean})],G.prototype,"languageVisible"),P1([a({type:Boolean})],G.prototype,"isSearchFocused"),P1([a({type:Boolean})],G.prototype,"hideTranslate"),P1([a({type:Boolean})],G.prototype,"hideSearch"),P1([a({type:String,reflect:!0})],G.prototype,"languages"),customElements.get("nys-unavheader")||customElements.define("nys-unavheader",G);const k3=b`
|
|
4966
5091
|
:host {
|
|
4967
5092
|
/* Global Header Styles */
|
|
4968
5093
|
--_nys-globalheader-text-color: var(
|
|
@@ -5242,7 +5367,7 @@
|
|
|
5242
5367
|
--_nys-globalheader-gutter: var(--nys-gutter-xl, 64px);
|
|
5243
5368
|
}
|
|
5244
5369
|
}
|
|
5245
|
-
`;var
|
|
5370
|
+
`;var $3=Object.defineProperty,x2=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&$3(t,e,r),r};const Dt=class Dt extends p{constructor(){super(...arguments),this.appName="",this.agencyName="",this.homepageLink="",this.slotHasContent=!0,this.isMobileMenuOpen=!1}firstUpdated(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t==null||t.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var i,n,l;const t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;const e=t==null?void 0:t.assignedNodes({flatten:!0}).filter(c=>c.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=e.length>0;const s=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-globalheader__content"),r=(l=this.shadowRoot)==null?void 0:l.querySelector(".nys-globalheader__content-mobile");s&&r&&(s.innerHTML="",r.innerHTML="",e.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const C=c.cloneNode(!0),y=c.cloneNode(!0);["script","iframe","object","embed"].forEach(u=>{C.querySelectorAll(u).forEach(f=>f.remove())}),s.appendChild(C),r.appendChild(y),c.remove()}}))}_toggleMobileMenu(){this.isMobileMenuOpen=!this.isMobileMenuOpen}render(){var t,e,s,r,i,n,l,c;return h`
|
|
5246
5371
|
<header class="nys-globalheader">
|
|
5247
5372
|
<div class="nys-globalheader__main-container">
|
|
5248
5373
|
${this.slotHasContent?h` <div class="nys-globalheader__button-container">
|
|
@@ -5301,7 +5426,7 @@
|
|
|
5301
5426
|
<div
|
|
5302
5427
|
class="nys-globalheader__content-mobile ${this.isMobileMenuOpen?"":"close"}"
|
|
5303
5428
|
></div>
|
|
5304
|
-
`}};
|
|
5429
|
+
`}};Dt.styles=k3;let r1=Dt;x2([a({type:String})],r1.prototype,"appName"),x2([a({type:String})],r1.prototype,"agencyName"),x2([a({type:String})],r1.prototype,"homepageLink"),x2([$1()],r1.prototype,"slotHasContent"),x2([$1()],r1.prototype,"isMobileMenuOpen"),customElements.get("nys-globalheader")||customElements.define("nys-globalheader",r1);const S3=b`
|
|
5305
5430
|
:host {
|
|
5306
5431
|
/* Global Footer Styles */
|
|
5307
5432
|
--_nys-globalfooter-text-color: var(
|
|
@@ -5388,6 +5513,7 @@
|
|
|
5388
5513
|
|
|
5389
5514
|
/* The Agency Name */
|
|
5390
5515
|
.nys-globalfooter__name {
|
|
5516
|
+
text-align: left;
|
|
5391
5517
|
margin: 0;
|
|
5392
5518
|
color: var(--_nys-globalfooter-text-color);
|
|
5393
5519
|
font-family: var(--_nys-globalfooter-font-family-agency);
|
|
@@ -5455,7 +5581,7 @@
|
|
|
5455
5581
|
--_nys-globalfooter-gutter: var(--nys-gutter-xl, 64px);
|
|
5456
5582
|
}
|
|
5457
5583
|
}
|
|
5458
|
-
`;var
|
|
5584
|
+
`;var L3=Object.defineProperty,Lt=(o,t,e,s)=>{for(var r=void 0,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=n(t,e,r)||r);return r&&L3(t,e,r),r};const Ht=class Ht extends p{constructor(){super(...arguments),this.agencyName="",this.homepageLink="",this.slotHasContent=!0}firstUpdated(){var e;const t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t==null||t.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var i,n;const t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;const e=t==null?void 0:t.assignedNodes({flatten:!0}).filter(l=>l.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=e.length>0;const s=(n=this.shadowRoot)==null?void 0:n.querySelector(".nys-globalfooter__content"),r=e==null?void 0:e.some(l=>l.tagName==="H4");s&&(s.classList.toggle("columns",r),s.classList.toggle("small",!r),s.innerHTML="",e.forEach(l=>{if(l.nodeType===Node.ELEMENT_NODE){const c=l.cloneNode(!0);["script","iframe","object","embed"].forEach(y=>{c.querySelectorAll(y).forEach(d=>d.remove())}),s.appendChild(c),l.remove()}}))}render(){var t,e;return h`
|
|
5459
5585
|
<footer class="nys-globalfooter">
|
|
5460
5586
|
<div class="nys-globalfooter__main-container">
|
|
5461
5587
|
${(t=this.homepageLink)!=null&&t.trim()?h`<a href=${(e=this.homepageLink)==null?void 0:e.trim()}>
|
|
@@ -5469,7 +5595,7 @@
|
|
|
5469
5595
|
</div>`:""}
|
|
5470
5596
|
</div>
|
|
5471
5597
|
</footer>
|
|
5472
|
-
`}};
|
|
5598
|
+
`}};Ht.styles=S3;let Z1=Ht;Lt([a({type:String})],Z1.prototype,"agencyName"),Lt([a({type:String})],Z1.prototype,"homepageLink"),Lt([$1()],Z1.prototype,"slotHasContent"),customElements.get("nys-globalfooter")||customElements.define("nys-globalfooter",Z1);const E3=b`
|
|
5473
5599
|
:host {
|
|
5474
5600
|
/* Global Footer Styles */
|
|
5475
5601
|
--_nys-unavfooter-link-color: var(
|
|
@@ -5625,7 +5751,7 @@
|
|
|
5625
5751
|
--_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
|
|
5626
5752
|
}
|
|
5627
5753
|
}
|
|
5628
|
-
`,
|
|
5754
|
+
`,M3=`<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
5629
5755
|
<path d="M55.1158 7.50499L58.2905 12.6494V7.5189C58.2905 7.5189 58.6487 7.26356 59.5098 7.26356C60.3708 7.26356 60.7378 7.5189 60.7378 7.5189V16.4327C60.7378 16.4327 60.3942 16.689 59.5215 16.689C58.6487 16.689 58.3295 16.4605 58.3295 16.4605L55.1421 11.3171V16.4337C55.1421 16.4337 54.7848 16.69 53.9111 16.69C53.0374 16.69 52.7065 16.4337 52.7065 16.4337V7.51989C52.7065 7.51989 53.0384 7.26456 53.9248 7.26456C54.8112 7.26456 55.1148 7.50697 55.1148 7.50697L55.1158 7.50499Z" fill="white"/>
|
|
5630
5756
|
<path d="M67.2209 12.5948H64.9063V14.8709H68.2538C68.2538 14.8709 68.5047 15.1531 68.5047 15.772C68.5047 16.391 68.2538 16.688 68.2538 16.688H62.4589V7.26257H67.9892C67.9892 7.26257 68.2538 7.54572 68.2538 8.17859C68.2538 8.81146 67.9892 9.09362 67.9892 9.09362H64.9063V10.7637H67.2209C67.2209 10.7637 67.4728 11.0598 67.4728 11.6787C67.4728 12.2977 67.2209 12.5948 67.2209 12.5948Z" fill="white"/>
|
|
5631
5757
|
<path d="M71.4802 16.4327L68.9791 7.5189C68.9791 7.5189 69.3491 7.26356 70.2101 7.26356C71.0711 7.26356 71.4275 7.5189 71.4275 7.5189L72.6839 12.0434C72.7766 12.3802 72.8166 12.6365 72.8557 12.7845C72.8557 12.7428 72.9221 12.3663 73.0011 12.0573L74.0984 7.5189C74.0984 7.5189 74.5211 7.26356 75.1176 7.26356C75.7141 7.26356 76.084 7.5189 76.084 7.5189L77.3004 12.7845C77.3004 12.6623 77.3795 12.3255 77.4586 12.0573L78.756 7.5189C78.7686 7.5189 79.1132 7.26356 79.9596 7.26356C80.806 7.26356 81.1897 7.5189 81.1897 7.5189L78.6496 16.4327C78.6496 16.4327 78.2922 16.6751 77.4859 16.689C76.5468 16.689 76.2158 16.4327 76.2158 16.4327L75.223 12.2987C75.1449 11.9887 75.0902 11.6529 75.0785 11.5844L74.9184 12.2987L73.9266 16.4327C73.9266 16.4327 73.583 16.689 72.7092 16.689C71.8355 16.689 71.4802 16.4327 71.4802 16.4327Z" fill="white"/>
|
|
@@ -5641,7 +5767,7 @@
|
|
|
5641
5767
|
<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"/>
|
|
5642
5768
|
<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"/>
|
|
5643
5769
|
<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"/>
|
|
5644
|
-
</svg>`,
|
|
5770
|
+
</svg>`,Vt=class Vt extends p{_getNysLogo(){return new DOMParser().parseFromString(M3,"image/svg+xml").documentElement}render(){return h`
|
|
5645
5771
|
<footer class="nys-unavfooter">
|
|
5646
5772
|
<div class="nys-unavfooter__main-container">
|
|
5647
5773
|
<div class="nys-unavfooter__container_menu">
|
|
@@ -5669,5 +5795,5 @@
|
|
|
5669
5795
|
</div>
|
|
5670
5796
|
</div>
|
|
5671
5797
|
</footer>
|
|
5672
|
-
`}};
|
|
5798
|
+
`}};Vt.styles=E3;let K2=Vt;customElements.get("nys-unavfooter")||customElements.define("nys-unavfooter",K2),_.NysAlert=_e,_.NysAvatar=be,_.NysButton=me,_.NysCheckbox=Ze,_.NysCheckboxgroup=Pe,_.NysErrorMessage=A1,_.NysGlobalFooter=Z1,_.NysGlobalHeader=r1,_.NysIcon=Oe,_.NysLabel=p1,_.NysOption=f1,_.NysRadiobutton=Be,_.NysRadiogroup=Te,_.NysSelect=Re,_.NysSkipnav=Y1,_.NysTextarea=qe,_.NysTextinput=je,_.NysToggle=Fe,_.NysUnavFooter=K2,_.NysUnavHeader=G,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|
|
5673
5799
|
//# sourceMappingURL=nysds.js.map
|