@nysds/components 1.4.1 → 1.4.3
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 +1052 -1529
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +240 -604
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-button/src/nys-button.d.ts +1 -0
- package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +7 -1
- package/dist/packages/nys-fileinput/src/nys-fileitem.d.ts +1 -1
- package/dist/packages/nys-icon/src/nys-icon.d.ts +1 -0
- package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +8 -0
- package/dist/src/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/nys-stepper/newsletter.html +0 -4
- package/dist/nys-stepper/personal.html +0 -6
- package/dist/nys-stepper/survey.html +0 -5
- package/dist/nys-stepper/team.html +0 -6
- package/dist/packages/nys-stepper/src/index.d.ts +0 -1
- package/dist/packages/nys-stepper/src/nys-step.d.ts +0 -12
- package/dist/packages/nys-stepper/src/nys-stepper.d.ts +0 -24
- package/dist/packages/nys-stepper/src/nys-stepper.styles.d.ts +0 -2
package/dist/nysds.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(f,
|
|
2
|
-
* New York State Design System (v1.4.
|
|
1
|
+
(function(f,r1){typeof exports=="object"&&typeof module<"u"?r1(exports):typeof define=="function"&&define.amd?define(["exports"],r1):(f=typeof globalThis<"u"?globalThis:f||self,r1(f.NYSDS={}))})(this,function(f){"use strict";/*!
|
|
2
|
+
* New York State Design System (v1.4.0)
|
|
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 Oe,h1,d1,L,J,e1,y1,t1,v,s1,O,R,o1;const r1=globalThis,F1=r1.ShadowRoot&&(r1.ShadyCSS===void 0||r1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,j1=Symbol(),de=new WeakMap;let ye=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==j1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(F1&&e===void 0){const o=t!==void 0&&t.length===1;o&&(e=de.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&de.set(t,e))}return e}toString(){return this.cssText}};const Re=a=>new ye(typeof a=="string"?a:a+"",void 0,j1),_=(a,...e)=>{const t=a.length===1?a[0]:e.reduce((o,s,r)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+a[r+1],a[0]);return new ye(t,a,j1)},Te=(a,e)=>{if(F1)a.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const o=document.createElement("style"),s=r1.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=t.cssText,a.appendChild(o)}},ue=F1?a=>a:a=>a instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return Re(t)})(a):a;/**
|
|
11
11
|
* @license
|
|
12
12
|
* Copyright 2017 Google LLC
|
|
13
13
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
14
|
-
*/const{is:
|
|
14
|
+
*/const{is:Ne,defineProperty:Fe,getOwnPropertyDescriptor:je,getOwnPropertyNames:Ge,getOwnPropertySymbols:Ye,getPrototypeOf:We}=Object,i1=globalThis,pe=i1.trustedTypes,Ke=pe?pe.emptyScript:"",G1=i1.reactiveElementPolyfillSupport,L1=(a,e)=>a,Z1={toAttribute(a,e){switch(e){case Boolean:a=a?Ke:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,e){let t=a;switch(e){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},Y1=(a,e)=>!Ne(a,e),fe={attribute:!0,type:String,converter:Z1,reflect:!1,hasChanged:Y1};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),i1.litPropertyMetadata??(i1.litPropertyMetadata=new WeakMap);class x1 extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=fe){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const o=Symbol(),s=this.getPropertyDescriptor(e,o,t);s!==void 0&&Fe(this.prototype,e,s)}}static getPropertyDescriptor(e,t,o){const{get:s,set:r}=je(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get(){return s==null?void 0:s.call(this)},set(i){const c=s==null?void 0:s.call(this);r.call(this,i),this.requestUpdate(e,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??fe}static _$Ei(){if(this.hasOwnProperty(L1("elementProperties")))return;const e=We(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(L1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(L1("properties"))){const t=this.properties,o=[...Ge(t),...Ye(t)];for(const s of o)this.createProperty(s,t[s])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[o,s]of t)this.elementProperties.set(o,s)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const s=this._$Eu(t,o);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const s of o)t.unshift(ue(s))}else e!==void 0&&t.push(ue(e));return t}static _$Eu(e,t){const o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Te(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostConnected)==null?void 0:o.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostDisconnected)==null?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EC(e,t){var r;const o=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,o);if(s!==void 0&&o.reflect===!0){const i=(((r=o.converter)==null?void 0:r.toAttribute)!==void 0?o.converter:Z1).toAttribute(t,o.type);this._$Em=e,i==null?this.removeAttribute(s):this.setAttribute(s,i),this._$Em=null}}_$AK(e,t){var r;const o=this.constructor,s=o._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const i=o.getPropertyOptions(s),c=typeof i.converter=="function"?{fromAttribute:i.converter}:((r=i.converter)==null?void 0:r.fromAttribute)!==void 0?i.converter:Z1;this._$Em=s,this[s]=c.fromAttribute(t,i.type),this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){if(o??(o=this.constructor.getPropertyOptions(e)),!(o.hasChanged??Y1)(this[e],t))return;this.P(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[r,i]of s)i.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],i)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(s=>{var r;return(r=s.hostUpdate)==null?void 0:r.call(s)}),this.update(t)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(o=>{var s;return(s=o.hostUpdated)==null?void 0:s.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}x1.elementStyles=[],x1.shadowRootOptions={mode:"open"},x1[L1("elementProperties")]=new Map,x1[L1("finalized")]=new Map,G1==null||G1({ReactiveElement:x1}),(i1.reactiveElementVersions??(i1.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 E1=globalThis,B1=E1.trustedTypes,ge=B1?B1.createPolicy("lit-html",{createHTML:a=>a}):void 0,ve="$lit$",n1=`lit$${Math.random().toFixed(9).slice(2)}$`,Ce="?"+n1,Xe=`<${Ce}>`,u1=document,M1=()=>u1.createComment(""),D1=a=>a===null||typeof a!="object"&&typeof a!="function",W1=Array.isArray,Qe=a=>W1(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",K1=`[
|
|
19
|
+
\f\r]`,V1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_e=/-->/g,be=/>/g,p1=RegExp(`>|${K1}(?:([^\\s"'>=/]+)(${K1}*=${K1}*(?:[^
|
|
20
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),me=/'/g,xe=/"/g,we=/^(?:script|style|textarea|title)$/i,Je=a=>(e,...t)=>({_$litType$:a,strings:e,values:t}),l=Je(1),w1=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),ke=new WeakMap,f1=u1.createTreeWalker(u1,129);function $e(a,e){if(!W1(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return ge!==void 0?ge.createHTML(e):e}const et=(a,e)=>{const t=a.length-1,o=[];let s,r=e===2?"<svg>":e===3?"<math>":"",i=V1;for(let c=0;c<t;c++){const h=a[c];let u,p,d=-1,T=0;for(;T<h.length&&(i.lastIndex=T,p=i.exec(h),p!==null);)T=i.lastIndex,i===V1?p[1]==="!--"?i=_e:p[1]!==void 0?i=be:p[2]!==void 0?(we.test(p[2])&&(s=RegExp("</"+p[2],"g")),i=p1):p[3]!==void 0&&(i=p1):i===p1?p[0]===">"?(i=s??V1,d=-1):p[1]===void 0?d=-2:(d=i.lastIndex-p[2].length,u=p[1],i=p[3]===void 0?p1:p[3]==='"'?xe:me):i===xe||i===me?i=p1:i===_e||i===be?i=V1:(i=p1,s=void 0);const K=i===p1&&a[c+1].startsWith("/>")?" ":"";r+=i===V1?h+Xe:d>=0?(o.push(u),h.slice(0,d)+ve+h.slice(d)+n1+K):h+n1+(d===-2?c:K)}return[$e(a,r+(a[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]};class z1{constructor({strings:e,_$litType$:t},o){let s;this.parts=[];let r=0,i=0;const c=e.length-1,h=this.parts,[u,p]=et(e,t);if(this.el=z1.createElement(u,o),f1.currentNode=this.el.content,t===2||t===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=f1.nextNode())!==null&&h.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(ve)){const T=p[i++],K=s.getAttribute(d).split(n1),N1=/([.?@])?(.*)/.exec(T);h.push({type:1,index:r,name:N1[2],strings:K,ctor:N1[1]==="."?st:N1[1]==="?"?ot:N1[1]==="@"?rt:U1}),s.removeAttribute(d)}else d.startsWith(n1)&&(h.push({type:6,index:r}),s.removeAttribute(d));if(we.test(s.tagName)){const d=s.textContent.split(n1),T=d.length-1;if(T>0){s.textContent=B1?B1.emptyScript:"";for(let K=0;K<T;K++)s.append(d[K],M1()),f1.nextNode(),h.push({type:2,index:++r});s.append(d[T],M1())}}}else if(s.nodeType===8)if(s.data===Ce)h.push({type:2,index:r});else{let d=-1;for(;(d=s.data.indexOf(n1,d+1))!==-1;)h.push({type:7,index:r}),d+=n1.length-1}r++}}static createElement(e,t){const o=u1.createElement("template");return o.innerHTML=e,o}}function k1(a,e,t=a,o){var i,c;if(e===w1)return e;let s=o!==void 0?(i=t._$Co)==null?void 0:i[o]:t._$Cl;const r=D1(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((c=s==null?void 0:s._$AO)==null||c.call(s,!1),r===void 0?s=void 0:(s=new r(a),s._$AT(a,t,o)),o!==void 0?(t._$Co??(t._$Co=[]))[o]=s:t._$Cl=s),s!==void 0&&(e=k1(a,s._$AS(a,e.values),s,o)),e}class tt{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:o}=this._$AD,s=((e==null?void 0:e.creationScope)??u1).importNode(t,!0);f1.currentNode=s;let r=f1.nextNode(),i=0,c=0,h=o[0];for(;h!==void 0;){if(i===h.index){let u;h.type===2?u=new H1(r,r.nextSibling,this,e):h.type===1?u=new h.ctor(r,h.name,h.strings,this,e):h.type===6&&(u=new it(r,this,e)),this._$AV.push(u),h=o[++c]}i!==(h==null?void 0:h.index)&&(r=f1.nextNode(),i++)}return f1.currentNode=u1,s}p(e){let t=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class H1{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,o,s){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=k1(this,e,t),D1(e)?e===w||e==null||e===""?(this._$AH!==w&&this._$AR(),this._$AH=w):e!==this._$AH&&e!==w1&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Qe(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==w&&D1(this._$AH)?this._$AA.nextSibling.data=e:this.T(u1.createTextNode(e)),this._$AH=e}$(e){var r;const{values:t,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=z1.createElement($e(o.h,o.h[0]),this.options)),o);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(t);else{const i=new tt(s,this),c=i.u(this.options);i.p(t),this.T(c),this._$AH=i}}_$AC(e){let t=ke.get(e.strings);return t===void 0&&ke.set(e.strings,t=new z1(e)),t}k(e){W1(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,s=0;for(const r of e)s===t.length?t.push(o=new H1(this.O(M1()),this.O(M1()),this,this.options)):o=t[s],o._$AI(r),s++;s<t.length&&(this._$AR(o&&o._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class U1{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,s,r){this.type=1,this._$AH=w,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=w}_$AI(e,t=this,o,s){const r=this.strings;let i=!1;if(r===void 0)e=k1(this,e,t,0),i=!D1(e)||e!==this._$AH&&e!==w1,i&&(this._$AH=e);else{const c=e;let h,u;for(e=r[0],h=0;h<r.length-1;h++)u=k1(this,c[o+h],t,h),u===w1&&(u=this._$AH[h]),i||(i=!D1(u)||u!==this._$AH[h]),u===w?e=w:e!==w&&(e+=(u??"")+r[h+1]),this._$AH[h]=u}i&&!s&&this.j(e)}j(e){e===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class st extends U1{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===w?void 0:e}}class ot extends U1{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==w)}}class rt extends U1{constructor(e,t,o,s,r){super(e,t,o,s,r),this.type=5}_$AI(e,t=this){if((e=k1(this,e,t,0)??w)===w1)return;const o=this._$AH,s=e===w&&o!==w||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,r=e!==w&&(o===w||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class it{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){k1(this,e)}}const X1=E1.litHtmlPolyfillSupport;X1==null||X1(z1,H1),(E1.litHtmlVersions??(E1.litHtmlVersions=[])).push("3.2.1");const nt=(a,e,t)=>{const o=(t==null?void 0:t.renderBefore)??e;let s=o._$litPart$;if(s===void 0){const r=(t==null?void 0:t.renderBefore)??null;o._$litPart$=s=new H1(e.insertBefore(M1(),r),r,void 0,t??{})}return s._$AI(a),s};/**
|
|
21
21
|
* @license
|
|
22
22
|
* Copyright 2017 Google LLC
|
|
23
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
24
|
-
*/let
|
|
24
|
+
*/let g=class extends x1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=nt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return w1}};g._$litElement$=!0,g.finalized=!0,(Oe=globalThis.litElementHydrateSupport)==null||Oe.call(globalThis,{LitElement:g});const Q1=globalThis.litElementPolyfillSupport;Q1==null||Q1({LitElement:g}),(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 at={attribute:!0,type:String,converter:Z1,reflect:!1,hasChanged:Y1},lt=(a=at,e,t)=>{const{kind:o,metadata:s}=t;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),r.set(t.name,a),o==="accessor"){const{name:i}=t;return{set(c){const h=e.get.call(this);e.set.call(this,c),this.requestUpdate(i,h,a)},init(c){return c!==void 0&&this.P(i,void 0,a),c}}}if(o==="setter"){const{name:i}=t;return function(c){const h=this[i];e.call(this,c),this.requestUpdate(i,h,a)}}throw Error("Unsupported decorator location: "+o)};function n(a){return(e,t)=>typeof t=="object"?lt(a,e,t):((o,s,r)=>{const i=s.hasOwnProperty(r);return s.constructor.createProperty(r,i?{...o,wrapped:!0}:o),i?Object.getOwnPropertyDescriptor(s,r):void 0})(a,e,t)}/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/function
|
|
32
|
+
*/function N(a){return n({...a,state:!0,attribute:!1})}const ct=_`
|
|
33
33
|
:host {
|
|
34
34
|
/* Global Alert Styles */
|
|
35
35
|
--_nys-alert-border-width: var(--nys-border-width-lg, 4px);
|
|
@@ -263,12 +263,12 @@
|
|
|
263
263
|
* @license
|
|
264
264
|
* Copyright 2018 Google LLC
|
|
265
265
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
266
|
-
*/const
|
|
267
|
-
${this._alertClosed?"":
|
|
266
|
+
*/const y=a=>a??w;var ht=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,D=(a,e,t,o)=>{for(var s=o>1?void 0:o?dt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&ht(e,t,s),s};let yt=0;const E=(h1=class extends g{constructor(){super(...arguments),this.id="",this.heading="",this.icon="",this.dismissible=!1,this.duration=0,this.text="",this.primaryAction="",this.secondaryAction="",this.primaryLabel="Learn more",this.secondaryLabel="Dismiss",this._alertClosed=!1,this._slotHasContent=!0,this._type="base",this._timeoutId=null}get type(){return this._type}set type(e){this._type=h1.VALID_TYPES.includes(e)?e:"base"}get ariaAttributes(){const e=this.type==="danger"||this.type==="emergency"?"alert":this.type==="success"?"status":"region",t=e==="region"?`${this.type} alert`:"";return{role:e,ariaLabel:t}}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId()),this.duration>0&&(this._timeoutId=setTimeout(()=>{this._closeAlert()},this.duration))}disconnectedCallback(){this._timeoutId&&clearTimeout(this._timeoutId),super.disconnectedCallback()}firstUpdated(){this._checkSlotContent()}_generateUniqueId(){return`nys-alert-${Date.now()}-${yt++}`}_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 t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");if(e){const o=e.assignedNodes({flatten:!0}).filter(s=>{var r;return s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&((r=s.textContent)==null?void 0:r.trim())});await Promise.resolve(),this._slotHasContent=o.length>0}else await Promise.resolve(),this._slotHasContent=!1}render(){var o,s;const{role:e,ariaLabel:t}=this.ariaAttributes;return l`
|
|
267
|
+
${this._alertClosed?"":l` <div
|
|
268
268
|
id=${this.id}
|
|
269
269
|
class="nys-alert__container ${this._slotHasContent||((o=this.text)==null?void 0:o.trim().length)>0?"":"nys-alert--centered"}"
|
|
270
270
|
role=${e}
|
|
271
|
-
aria-label=${
|
|
271
|
+
aria-label=${y(t.trim()!==""?t:void 0)}
|
|
272
272
|
>
|
|
273
273
|
<div part="nys-alert__icon" class="nys-alert__icon">
|
|
274
274
|
<nys-icon
|
|
@@ -279,23 +279,23 @@
|
|
|
279
279
|
</div>
|
|
280
280
|
<div class="nys-alert__texts">
|
|
281
281
|
<p class="nys-alert__header">${this.heading}</p>
|
|
282
|
-
${this._slotHasContent?
|
|
283
|
-
${this.primaryAction||this.secondaryAction?
|
|
284
|
-
${this.primaryAction?
|
|
285
|
-
href=${
|
|
282
|
+
${this._slotHasContent?l`<slot></slot>`:((s=this.text)==null?void 0:s.trim().length)>0?l`<p class="nys-alert__text">${this.text}</p>`:""}
|
|
283
|
+
${this.primaryAction||this.secondaryAction?l`<div class="nys-alert__actions">
|
|
284
|
+
${this.primaryAction?l`<a
|
|
285
|
+
href=${y(this.primaryAction||void 0)}
|
|
286
286
|
class="nys-alert__action nys-alert__primary"
|
|
287
287
|
>
|
|
288
288
|
${this.primaryLabel}
|
|
289
289
|
</a>`:""}
|
|
290
|
-
${this.secondaryAction?
|
|
291
|
-
href=${
|
|
290
|
+
${this.secondaryAction?l`<a
|
|
291
|
+
href=${y(this.secondaryAction||void 0)}
|
|
292
292
|
class="nys-alert__action nys-alert__secondary"
|
|
293
293
|
>
|
|
294
294
|
${this.secondaryLabel}
|
|
295
295
|
</a>`:""}
|
|
296
296
|
</div> `:""}
|
|
297
297
|
</div>
|
|
298
|
-
${this.dismissible?
|
|
298
|
+
${this.dismissible?l` <nys-button
|
|
299
299
|
id="dismiss-btn"
|
|
300
300
|
variant="ghost"
|
|
301
301
|
circle
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
.onClick=${()=>this._closeAlert()}
|
|
307
307
|
></nys-button>`:""}
|
|
308
308
|
</div>`}
|
|
309
|
-
`}},h1.styles=
|
|
309
|
+
`}},h1.styles=ct,h1.VALID_TYPES=["base","info","success","warning","danger","emergency"],h1);D([n({type:String})],E.prototype,"id",2),D([n({type:String})],E.prototype,"heading",2),D([n({type:String})],E.prototype,"icon",2),D([n({type:Boolean,reflect:!0})],E.prototype,"dismissible",2),D([n({type:Number,reflect:!0})],E.prototype,"duration",2),D([n({type:String})],E.prototype,"text",2),D([n({type:String})],E.prototype,"primaryAction",2),D([n({type:String})],E.prototype,"secondaryAction",2),D([n({type:String})],E.prototype,"primaryLabel",2),D([n({type:String})],E.prototype,"secondaryLabel",2),D([N()],E.prototype,"_alertClosed",2),D([N()],E.prototype,"_slotHasContent",2),D([n({reflect:!0})],E.prototype,"type",1);let Se=E;customElements.get("nys-alert")||customElements.define("nys-alert",Se);const ut=_`
|
|
310
310
|
:host {
|
|
311
311
|
/* Global Avatar Styles */
|
|
312
312
|
--_nys-avatar-shape: var(--nys-radius-round, 1776px);
|
|
@@ -373,30 +373,30 @@
|
|
|
373
373
|
height: 100%;
|
|
374
374
|
fill: currentColor;
|
|
375
375
|
}
|
|
376
|
-
`;var
|
|
376
|
+
`;var pt=Object.defineProperty,ft=Object.getOwnPropertyDescriptor,X=(a,e,t,o)=>{for(var s=o>1?void 0:o?ft(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&pt(e,t,s),s};let gt=0;const F=(d1=class extends g{constructor(){super(...arguments),this.id="",this.label="",this.image="",this.initials="",this.icon="",this.color="#555",this.lazy=!1,this._shape="circle",this._slotHasContent=!0}get shape(){return this._shape}set shape(e){this._shape=d1.VALID_SHAPES.includes(e)?e:"circle",this.requestUpdate("shape")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-avatar-${Date.now()}-${gt++}`)}firstUpdated(){this._checkSlotContent()}async _checkSlotContent(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this._slotHasContent=!1;return}await Promise.resolve();const t=e.assignedNodes({flatten:!0}).filter(s=>{var r;return s.nodeType===Node.ELEMENT_NODE||s.nodeType===Node.TEXT_NODE&&((r=s.textContent)==null?void 0:r.trim())});this._slotHasContent=t.length>0}render(){var e,t,o,s;return l`
|
|
377
377
|
<label class="nys-avatar" id=${this.id}>
|
|
378
378
|
<div class="nys-avatar__content">
|
|
379
379
|
<div
|
|
380
380
|
part="nys-avatar"
|
|
381
381
|
class="nys-avatar__component"
|
|
382
382
|
style="background-color: ${((e=this.color)==null?void 0:e.length)>0?this.color:"#555"};"
|
|
383
|
-
role=${
|
|
384
|
-
aria-label=${
|
|
383
|
+
role=${y(this.image?void 0:"img")}
|
|
384
|
+
aria-label=${y(this.image?void 0:this.label?this.label:"avatar")}
|
|
385
385
|
>
|
|
386
|
-
${((t=this.image)==null?void 0:t.length)>0?
|
|
386
|
+
${((t=this.image)==null?void 0:t.length)>0?l`<img
|
|
387
387
|
part="nys-avatar__image"
|
|
388
388
|
class="nys-avatar__image"
|
|
389
389
|
src=${this.image}
|
|
390
390
|
alt=${this.label||"avatar"}
|
|
391
391
|
loading=${this.lazy?"lazy":"eager"}
|
|
392
|
-
/>`:((o=this.initials)==null?void 0:o.length)>0?
|
|
392
|
+
/>`:((o=this.initials)==null?void 0:o.length)>0?l`<span
|
|
393
393
|
part="nys-avatar__initials"
|
|
394
394
|
class="nys-avatar__initials"
|
|
395
395
|
aria-hidden="true"
|
|
396
396
|
>${this.initials}</span
|
|
397
|
-
>`:this._slotHasContent?
|
|
397
|
+
>`:this._slotHasContent?l`<div part="nys-avatar__icon">
|
|
398
398
|
<slot></slot>
|
|
399
|
-
</div>`:
|
|
399
|
+
</div>`:l`<div part="nys-avatar__icon">
|
|
400
400
|
<nys-icon
|
|
401
401
|
label="nys-avatar__icon"
|
|
402
402
|
name=${((s=this.icon)==null?void 0:s.length)>0?this.icon:"account_circle"}
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
</div>
|
|
407
407
|
</div>
|
|
408
408
|
</label>
|
|
409
|
-
`}},
|
|
409
|
+
`}},d1.styles=ut,d1.VALID_SHAPES=["square","rounded","circle"],d1);X([n({type:String})],F.prototype,"id",2),X([n({type:String})],F.prototype,"label",2),X([n({type:String})],F.prototype,"image",2),X([n({type:String})],F.prototype,"initials",2),X([n({type:String})],F.prototype,"icon",2),X([n({type:String})],F.prototype,"color",2),X([n({type:Boolean,reflect:!0})],F.prototype,"lazy",2),X([n({reflect:!0})],F.prototype,"shape",1),X([N()],F.prototype,"_slotHasContent",2);let Le=F;customElements.get("nys-avatar")||customElements.define("nys-avatar",Le);const vt=_`
|
|
410
410
|
:host {
|
|
411
411
|
}
|
|
412
412
|
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
.visible {
|
|
431
431
|
display: inline-flex;
|
|
432
432
|
}
|
|
433
|
-
`;var
|
|
433
|
+
`;var Ct=Object.defineProperty,J1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Ct(e,t,s),s};const se=class se extends g{constructor(){super(),this.position="right",this.visible=!1,this.isMobile=!1,this._handleScroll=this._handleScroll.bind(this),this._handleResize=this._handleResize.bind(this),this.mediaQuery=window.matchMedia("(max-width: 480px)")}connectedCallback(){super.connectedCallback(),window.addEventListener("scroll",this._handleScroll),this.mediaQuery.addEventListener("change",this._handleResize),this._handleResize()}disconnectedCallback(){window.removeEventListener("scroll",this._handleScroll),this.mediaQuery.removeEventListener("change",this._handleResize),super.disconnectedCallback()}_handleScroll(){const e=window.innerHeight*1.5;this.visible=window.scrollY>e}_scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}_handleResize(){this.isMobile=this.mediaQuery.matches}render(){const e=["nys-backtotop",this.position,this.visible?"visible":""].filter(Boolean).join(" ");return l`<nys-button
|
|
434
434
|
id="nys-backtotop"
|
|
435
435
|
prefixIcon="chevron_up"
|
|
436
436
|
variant="outline"
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
class="${e}"
|
|
439
439
|
.onClick=${this._scrollToTop}
|
|
440
440
|
?circle=${this.isMobile}
|
|
441
|
-
></nys-button>`}};
|
|
441
|
+
></nys-button>`}};se.styles=vt;let g1=se;J1([n({type:String})],g1.prototype,"position"),J1([n({type:Boolean,reflect:!0})],g1.prototype,"visible"),J1([N()],g1.prototype,"isMobile"),customElements.get("nys-backtotop")||customElements.define("nys-backtotop",g1);const _t=_`
|
|
442
442
|
:host {
|
|
443
443
|
/* Anything that can be overridden should be defined here */
|
|
444
444
|
|
|
@@ -858,32 +858,33 @@
|
|
|
858
858
|
align-items: center;
|
|
859
859
|
user-select: none;
|
|
860
860
|
}
|
|
861
|
-
`;var
|
|
862
|
-
${this.href?
|
|
861
|
+
`;var bt=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,x=(a,e,t,o)=>{for(var s=o>1?void 0:o?mt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&bt(e,t,s),s};let xt=0;const b=(L=class extends g{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.circle=!1,this.icon="",this.disabled=!1,this.form="",this.value="",this.ariaDescription="",this._type="button",this.onClick=()=>{},this.href="",this._target="_self",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=L.VALID_SIZES.includes(e)?e:"md"}get variant(){return this._variant}set variant(e){this._variant=L.VALID_VARIANTS.includes(e)?e:"filled"}get type(){return this._type}set type(e){this._type=L.VALID_TYPES.includes(e)?e:"button"}get target(){return this._target}set target(e){this._target=L.VALID_TARGETS.includes(e)?e:"_self"}connectedCallback(){super.connectedCallback(),this.id||(this.id=this._generateUniqueId())}_generateUniqueId(){return`nys-button-${Date.now()}-${xt++}`}_manageFormAction(e){typeof this.onClick=="function"&&this.onClick(e);const t=this._internals.form;if(t)switch(this.type){case"submit":t.requestSubmit();break;case"reset":t.reset();break}}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleClick(e){if(this.disabled){e.preventDefault();return}this._manageFormAction(e),this.dispatchEvent(new Event("nys-click"))}_handleKeydown(e){(e.code==="Space"||e.code==="Enter"||e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.disabled||this._manageFormAction(e))}render(){return l`
|
|
862
|
+
${this.href?l`
|
|
863
863
|
<div class="nys-button__linkwrapper">
|
|
864
864
|
<a
|
|
865
865
|
class="nys-button"
|
|
866
|
-
id=${
|
|
867
|
-
name=${
|
|
866
|
+
id=${y(this.id)}
|
|
867
|
+
name=${y(this.name?this.name:void 0)}
|
|
868
868
|
?disabled=${this.disabled}
|
|
869
869
|
aria-disabled="${this.disabled?"true":"false"}"
|
|
870
|
-
form=${
|
|
871
|
-
value=${
|
|
870
|
+
form=${y(this.form?this.form:void 0)}
|
|
871
|
+
value=${y(this.value?this.value:void 0)}
|
|
872
872
|
href=${this.href}
|
|
873
873
|
target=${this.target}
|
|
874
|
-
aria-label=${this.ariaLabel||this.label||(this.circle?this.icon:null)||"button"}
|
|
874
|
+
aria-label=${y(this.ariaLabel||this.label||(this.circle?this.icon:null)||"button")}
|
|
875
|
+
aria-description=${y(this.ariaDescription||void 0)}
|
|
875
876
|
@click=${this._handleClick}
|
|
876
877
|
@focus="${this._handleFocus}"
|
|
877
878
|
@blur="${this._handleBlur}"
|
|
878
879
|
>
|
|
879
|
-
${this.prefixIcon&&this.variant!=="text"?
|
|
880
|
+
${this.prefixIcon&&this.variant!=="text"?l`<slot name="prefix-icon">
|
|
880
881
|
<nys-icon size="16" name=${this.prefixIcon}></nys-icon>
|
|
881
882
|
</slot>`:""}
|
|
882
|
-
${this.label&&!this.circle?
|
|
883
|
-
${this.suffixIcon&&this.variant!=="text"?
|
|
883
|
+
${this.label&&!this.circle?l`<label class="nys-button__text">${this.label}</label>`:""}
|
|
884
|
+
${this.suffixIcon&&this.variant!=="text"?l`<slot name="suffix-icon">
|
|
884
885
|
<nys-icon size="16" name=${this.suffixIcon}></nys-icon>
|
|
885
886
|
</slot>`:""}
|
|
886
|
-
${this.circle&&this.icon?
|
|
887
|
+
${this.circle&&this.icon?l`<slot name="circle-icon"
|
|
887
888
|
><nys-icon
|
|
888
889
|
size=${this.size==="sm"?"24":this.size==="lg"?"40":"32"}
|
|
889
890
|
name=${this.icon}
|
|
@@ -891,29 +892,30 @@
|
|
|
891
892
|
></slot>`:""}
|
|
892
893
|
</a>
|
|
893
894
|
</div>
|
|
894
|
-
`:
|
|
895
|
+
`:l`
|
|
895
896
|
<button
|
|
896
897
|
class="nys-button"
|
|
897
|
-
id=${
|
|
898
|
-
name=${
|
|
898
|
+
id=${y(this.id)}
|
|
899
|
+
name=${y(this.name?this.name:void 0)}
|
|
899
900
|
?disabled=${this.disabled}
|
|
900
|
-
form=${
|
|
901
|
-
value=${
|
|
901
|
+
form=${y(this.form?this.form:void 0)}
|
|
902
|
+
value=${y(this.value?this.value:void 0)}
|
|
902
903
|
type=${this.type}
|
|
903
|
-
aria-label=${this.ariaLabel||this.label||(this.circle?this.icon:null)||"button"}
|
|
904
|
+
aria-label=${y(this.ariaLabel||this.label||(this.circle?this.icon:null)||this.prefixIcon||this.suffixIcon||"button")}
|
|
905
|
+
aria-description=${y(this.ariaDescription||void 0)}
|
|
904
906
|
@click=${this._handleClick}
|
|
905
907
|
@focus="${this._handleFocus}"
|
|
906
908
|
@blur="${this._handleBlur}"
|
|
907
909
|
@keydown="${this._handleKeydown}"
|
|
908
910
|
>
|
|
909
|
-
${this.prefixIcon&&this.variant!=="text"?
|
|
911
|
+
${this.prefixIcon&&this.variant!=="text"?l`<slot name="prefix-icon">
|
|
910
912
|
<nys-icon size="16" name=${this.prefixIcon}></nys-icon>
|
|
911
913
|
</slot>`:""}
|
|
912
|
-
${this.label&&!this.circle?
|
|
913
|
-
${this.suffixIcon&&this.variant!=="text"?
|
|
914
|
+
${this.label&&!this.circle?l`<label class="nys-button__text">${this.label}</label>`:""}
|
|
915
|
+
${this.suffixIcon&&this.variant!=="text"?l`<slot name="suffix-icon">
|
|
914
916
|
<nys-icon size="16" name=${this.suffixIcon}></nys-icon>
|
|
915
917
|
</slot>`:""}
|
|
916
|
-
${this.circle&&this.icon?
|
|
918
|
+
${this.circle&&this.icon?l`<slot name="circle-icon">
|
|
917
919
|
<nys-icon
|
|
918
920
|
size=${this.size==="sm"?"24":this.size==="lg"?"40":"32"}
|
|
919
921
|
name=${this.icon}
|
|
@@ -921,7 +923,7 @@
|
|
|
921
923
|
</slot>`:""}
|
|
922
924
|
</button>
|
|
923
925
|
`}
|
|
924
|
-
`}},
|
|
926
|
+
`}},L.VALID_SIZES=["sm","md","lg"],L.VALID_VARIANTS=["filled","outline","ghost","text"],L.VALID_TYPES=["submit","reset","button"],L.VALID_TARGETS=["_self","_blank","_parent","_top","framename"],L.styles=_t,L.formAssociated=!0,L);x([n({type:String})],b.prototype,"id",2),x([n({type:String,reflect:!0})],b.prototype,"name",2),x([n({reflect:!0})],b.prototype,"size",1),x([n({type:Boolean,reflect:!0})],b.prototype,"fullWidth",2),x([n({reflect:!0})],b.prototype,"variant",1),x([n({type:Boolean,reflect:!0})],b.prototype,"inverted",2),x([n({type:String})],b.prototype,"label",2),x([n({type:String})],b.prototype,"ariaLabel",2),x([n({type:String})],b.prototype,"prefixIcon",2),x([n({type:String})],b.prototype,"suffixIcon",2),x([n({type:Boolean,reflect:!0})],b.prototype,"circle",2),x([n({type:String})],b.prototype,"icon",2),x([n({type:Boolean,reflect:!0})],b.prototype,"disabled",2),x([n({type:String})],b.prototype,"form",2),x([n({type:String})],b.prototype,"value",2),x([n({type:String})],b.prototype,"ariaDescription",2),x([n({reflect:!0})],b.prototype,"type",1),x([n({type:Function})],b.prototype,"onClick",2),x([n({type:String})],b.prototype,"href",2),x([n({reflect:!0})],b.prototype,"target",1);let Ee=b;customElements.get("nys-button")||customElements.define("nys-button",Ee);const Me=_`
|
|
925
927
|
:host {
|
|
926
928
|
/* Anything that can be overridden should be defined here */
|
|
927
929
|
|
|
@@ -1277,7 +1279,7 @@
|
|
|
1277
1279
|
.nys-checkbox__requiredwrapper {
|
|
1278
1280
|
display: inline;
|
|
1279
1281
|
}
|
|
1280
|
-
`;var
|
|
1282
|
+
`;var wt=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,j=(a,e,t,o)=>{for(var s=o>1?void 0:o?kt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&wt(e,t,s),s};let $t=0;const Z=(J=class extends g{constructor(){super(),this.id="",this.name="",this.required=!1,this.optional=!1,this.showError=!1,this.errorMessage="",this.label="",this.description="",this.tile=!1,this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=J.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${$t++}`),this.addEventListener("nys-change",this._handleCheckboxChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("nys-change",this._handleCheckboxChange),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setGroupExist(),this.updateCheckboxSize(),this.updateCheckboxTile(),this.updateCheckboxShowError()}updated(e){e.has("required")&&this.required&&this._setupCheckboxRequired(),e.has("size")&&this.updateCheckboxSize(),e.has("tile")&&this.updateCheckboxTile(),e.has("showError")&&this.updateCheckboxShowError()}_setGroupExist(){this.querySelectorAll("nys-checkbox").forEach(t=>{t.groupExist=!0})}async _handleInvalid(e){e.preventDefault(),this.showError=!0,this._manageCheckboxRequired();const t=this.querySelector("nys-checkbox"),o=t?await t.getInputElement():null;if(o){const s=this._internals.form;s?Array.from(s.elements).find(c=>{if(c.tagName.toLowerCase()==="nys-checkboxgroup"){if(Array.from(this.querySelectorAll("nys-checkbox")).filter(p=>p.checked).length===0)return c}else return typeof c.checkValidity=="function"&&!c.checkValidity()})===this&&o.focus():o.focus()}}async _setupCheckboxRequired(){const e=this.querySelector("nys-checkbox"),t=this.errorMessage||"This field is required",o=e?await e.getInputElement():null;this._internals.setValidity({valueMissing:!0},t,o||this)}_handleCheckboxChange(e){const t=e,{name:o}=t.detail,r=Array.from(this.querySelectorAll("nys-checkbox")).filter(i=>i.checked).map(i=>i.value);this.name=o,this._internals.setFormValue(r.join(", ")),this._manageCheckboxRequired()}async _manageCheckboxRequired(){if(this.required){const e=this.errorMessage||"Please select at least one option.",t=this.querySelector("nys-checkbox"),o=t?await t.getInputElement():null;let s=!1;this.querySelectorAll("nys-checkbox").forEach(i=>{i.checked&&(s=!0)}),s?(this._internals.setValidity({}),this.showError=!1):(this._internals.setValidity({valueMissing:!0},e,o||this),this.showError=!0)}}updateCheckboxSize(){this.querySelectorAll("nys-checkbox").forEach(t=>{t.setAttribute("size",this.size)})}updateCheckboxTile(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.tile?t.toggleAttribute("tile",!0):t.removeAttribute("tile")})}updateCheckboxShowError(){this.querySelectorAll("nys-checkbox").forEach(t=>{this.showError?t.setAttribute("showError",""):t.removeAttribute("showError")})}render(){return l` <div class="nys-checkboxgroup" role="group">
|
|
1281
1283
|
<nys-label
|
|
1282
1284
|
id=${this.id}
|
|
1283
1285
|
label=${this.label}
|
|
@@ -1294,14 +1296,14 @@
|
|
|
1294
1296
|
errorMessage=${this._internals.validationMessage||this.errorMessage}
|
|
1295
1297
|
.showDivider=${!this.tile}
|
|
1296
1298
|
></nys-errormessage>
|
|
1297
|
-
</div>`}},
|
|
1299
|
+
</div>`}},J.VALID_SIZES=["sm","md"],J.styles=Me,J.formAssociated=!0,J);j([n({type:String})],Z.prototype,"id",2),j([n({type:String,reflect:!0})],Z.prototype,"name",2),j([n({type:Boolean,reflect:!0})],Z.prototype,"required",2),j([n({type:Boolean,reflect:!0})],Z.prototype,"optional",2),j([n({type:Boolean,reflect:!0})],Z.prototype,"showError",2),j([n({type:String})],Z.prototype,"errorMessage",2),j([n({type:String})],Z.prototype,"label",2),j([n({type:String})],Z.prototype,"description",2),j([n({type:Boolean,reflect:!0})],Z.prototype,"tile",2),j([n({reflect:!0})],Z.prototype,"size",1);let De=Z;customElements.get("nys-checkboxgroup")||customElements.define("nys-checkboxgroup",De);var St=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,V=(a,e,t,o)=>{for(var s=o>1?void 0:o?Lt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&St(e,t,s),s};let Et=0;const M=(e1=class extends g{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.tile=!1,this._size="md",this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=e1.VALID_SIZES.includes(e)?e:"md"}async getInputElement(){var e;return await this.updateComplete,((e=this.shadowRoot)==null?void 0:e.querySelector("input"))||null}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-checkbox-${Date.now()}-${Et++}`),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 o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("input"),t=this.errorMessage||"This field is required";e&&(this.required&&!this.checked?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):this._internals.setValidity({}))}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=e.validity;let o="";t.valueMissing&&(o="This field is required"),this._setValidityMessage(o)}checkValidity(){var t;if(this.required&&!this.checked)return!1;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this.showError=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(t){const s=this._internals.form;s?Array.from(s.elements).find(c=>typeof c.checkValidity=="function"&&!c.checkValidity())===this&&t.focus():t.focus()}}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleChange(e){const{checked:t}=e.target;this.checked=t,this.groupExist||this._internals.setFormValue(this.checked?this.value:null),this._validate(),this._emitChangeEvent()}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}async _handleKeydown(e){e.code==="Space"&&(e.preventDefault(),this.disabled||(this.checked=!this.checked,this._internals.setFormValue(this.checked?this.value:null),await this.updateComplete,this._validate(),this._emitChangeEvent()))}render(){var e;return l`
|
|
1298
1300
|
<label class="nys-checkbox">
|
|
1299
1301
|
<div class="nys-checkbox__checkboxwrapper">
|
|
1300
1302
|
<input
|
|
1301
1303
|
id="${this.id}"
|
|
1302
1304
|
class="nys-checkbox__checkbox"
|
|
1303
1305
|
type="checkbox"
|
|
1304
|
-
name="${
|
|
1306
|
+
name="${y(this.name?this.name:void 0)}"
|
|
1305
1307
|
.checked=${this.checked}
|
|
1306
1308
|
?disabled=${this.disabled}
|
|
1307
1309
|
.value=${this.value}
|
|
@@ -1314,32 +1316,32 @@
|
|
|
1314
1316
|
@blur="${this._handleBlur}"
|
|
1315
1317
|
@keydown="${this._handleKeydown}"
|
|
1316
1318
|
/>
|
|
1317
|
-
${this.checked?
|
|
1319
|
+
${this.checked?l`<nys-icon
|
|
1318
1320
|
for="${this.id}"
|
|
1319
1321
|
name="check"
|
|
1320
1322
|
size="${this.size==="md"?"4xl":this.size==="sm"?"2xl":"xl"}"
|
|
1321
1323
|
class="nys-checkbox__icon"
|
|
1322
1324
|
></nys-icon>`:""}
|
|
1323
1325
|
</div>
|
|
1324
|
-
${this.label&&
|
|
1326
|
+
${this.label&&l` <div class="nys-checkbox__text">
|
|
1325
1327
|
<div class="nys-checkbox__requiredwrapper">
|
|
1326
1328
|
<label for=${this.id} class="nys-checkbox__label"
|
|
1327
1329
|
>${this.label}</label
|
|
1328
1330
|
>
|
|
1329
|
-
${this.required?
|
|
1331
|
+
${this.required?l`<label class="nys-checkbox__required">*</label>`:""}
|
|
1330
1332
|
</div>
|
|
1331
1333
|
<label for=${this.id} class="nys-checkbox__description">
|
|
1332
1334
|
<slot name="description">${this.description}</slot>
|
|
1333
1335
|
</label>
|
|
1334
1336
|
</div>`}
|
|
1335
1337
|
</label>
|
|
1336
|
-
${((e=this.parentElement)==null?void 0:e.tagName.toLowerCase())!=="nys-checkboxgroup"?
|
|
1338
|
+
${((e=this.parentElement)==null?void 0:e.tagName.toLowerCase())!=="nys-checkboxgroup"?l`<nys-errormessage
|
|
1337
1339
|
id="single-error-message"
|
|
1338
1340
|
?showError=${this.showError}
|
|
1339
1341
|
errorMessage=${this._internals.validationMessage||this.errorMessage}
|
|
1340
1342
|
.showDivider=${!this.tile}
|
|
1341
1343
|
></nys-errormessage>`:""}
|
|
1342
|
-
`}},
|
|
1344
|
+
`}},e1.VALID_SIZES=["sm","md"],e1.styles=Me,e1.formAssociated=!0,e1);V([n({type:Boolean,reflect:!0})],M.prototype,"checked",2),V([n({type:Boolean,reflect:!0})],M.prototype,"disabled",2),V([n({type:Boolean,reflect:!0})],M.prototype,"required",2),V([n({type:String})],M.prototype,"label",2),V([n({type:String})],M.prototype,"description",2),V([n({type:String})],M.prototype,"id",2),V([n({type:String,reflect:!0})],M.prototype,"name",2),V([n({type:String})],M.prototype,"value",2),V([n({type:Boolean,reflect:!0})],M.prototype,"showError",2),V([n({type:String})],M.prototype,"errorMessage",2),V([n({type:Boolean})],M.prototype,"groupExist",2),V([n({type:Boolean,reflect:!0})],M.prototype,"tile",2),V([n({reflect:!0})],M.prototype,"size",1);let Ve=M;customElements.get("nys-checkbox")||customElements.define("nys-checkbox",Ve);const Mt=_`
|
|
1343
1345
|
:host {
|
|
1344
1346
|
--_nys-errormessage-font-family: var(
|
|
1345
1347
|
--nys-font-family-ui,
|
|
@@ -1391,10 +1393,10 @@
|
|
|
1391
1393
|
border-top: var(--_nys-errormessage-divider-width) solid
|
|
1392
1394
|
var(--_nys-errormessage-color);
|
|
1393
1395
|
}
|
|
1394
|
-
`;var
|
|
1396
|
+
`;var Dt=Object.defineProperty,ee=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Dt(e,t,s),s};const R1=class R1 extends g{constructor(){super(),this.showError=!1,this.errorMessage="",this.showDivider=!1,this._internals=this.attachInternals()}render(){return l`${this.showError?l`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
|
|
1395
1397
|
<nys-icon name="error" size="2xl"></nys-icon>
|
|
1396
1398
|
${this._internals.validationMessage||this.errorMessage}
|
|
1397
|
-
</div>`:""}`}};
|
|
1399
|
+
</div>`:""}`}};R1.styles=Mt,R1.formAssociated=!0;let v1=R1;ee([n({type:Boolean})],v1.prototype,"showError"),ee([n({type:String})],v1.prototype,"errorMessage"),ee([n({type:Boolean,reflect:!0})],v1.prototype,"showDivider"),customElements.get("nys-errormessage")||customElements.define("nys-errormessage",v1);async function Vt(a,e){if(!e||e.trim()==="")return!0;const t=e.toLowerCase().split(",").map(r=>r.trim()),o=a.name.toLowerCase(),s=o.includes(".")?o.split(".").pop():"";for(const r of t)if(r.startsWith(".")&&r.slice(1)===s||r.endsWith("/*")&&a.type.startsWith(r.slice(0,-1))||a.type===r)return!0;return!1}const zt=_`
|
|
1398
1400
|
:host {
|
|
1399
1401
|
/* Global Fileinput Styles */
|
|
1400
1402
|
--_nys-fileinput-gap: var(--nys-space-100, 8px);
|
|
@@ -1422,7 +1424,7 @@
|
|
|
1422
1424
|
var(--nys-space-100, 8px)
|
|
1423
1425
|
);
|
|
1424
1426
|
--_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 1px) dashed
|
|
1425
|
-
var(--nys-color-neutral-
|
|
1427
|
+
var(--nys-color-neutral-200, #bec0c1);
|
|
1426
1428
|
--_nys-fileinput-dropzone-color: var(--nys-color-text-disabled, #bec0c1);
|
|
1427
1429
|
}
|
|
1428
1430
|
|
|
@@ -1460,27 +1462,33 @@
|
|
|
1460
1462
|
gap: 12px;
|
|
1461
1463
|
align-self: stretch;
|
|
1462
1464
|
border-radius: var(--_nys-fileinput-dropzone-radius);
|
|
1463
|
-
|
|
1465
|
+
outline: var(--_nys-fileinput-dropzone-border);
|
|
1464
1466
|
background: var(--_nys-fileinput-dropzone-background);
|
|
1467
|
+
transition: all 60ms ease-in-out;
|
|
1465
1468
|
}
|
|
1466
1469
|
|
|
1467
1470
|
.nys-fileinput__dropzone:hover {
|
|
1468
1471
|
cursor: pointer;
|
|
1469
|
-
--_nys-fileinput-dropzone-border: var(--nys-border-width-
|
|
1470
|
-
var(--nys-color-neutral-
|
|
1472
|
+
--_nys-fileinput-dropzone-border: var(--nys-border-width-md, 2px) dashed
|
|
1473
|
+
var(--nys-color-neutral-700, #4a4d4f);
|
|
1471
1474
|
}
|
|
1472
1475
|
|
|
1473
1476
|
.nys-fileinput__dropzone.drag-active {
|
|
1474
|
-
--_nys-fileinput-dropzone-border: var(--nys-border-width-
|
|
1475
|
-
var(--nys-color-
|
|
1477
|
+
--_nys-fileinput-dropzone-border: var(--nys-border-width-md, 2px) solid
|
|
1478
|
+
var(--nys-color-theme, #154973);
|
|
1476
1479
|
--_nys-fileinput-dropzone-background: var(--nys-color-theme-faint, #f7fafd);
|
|
1477
1480
|
}
|
|
1478
1481
|
|
|
1479
1482
|
.nys-fileinput__dropzone.error {
|
|
1480
|
-
--_nys-fileinput-dropzone-border: var(--nys-border-width-md,
|
|
1483
|
+
--_nys-fileinput-dropzone-border: var(--nys-border-width-md, 1px) dashed
|
|
1481
1484
|
var(--nys-color-danger, #b52c2c);
|
|
1482
1485
|
}
|
|
1483
1486
|
|
|
1487
|
+
.nys-fileinput__dropzone.error:hover {
|
|
1488
|
+
--_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 2px) dashed
|
|
1489
|
+
var(--nys-color-emergency, #721c1c);
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1484
1492
|
.nys-fileinput__dropzone.disabled {
|
|
1485
1493
|
cursor: not-allowed;
|
|
1486
1494
|
--_nys-fileinput-dropzone-border: var(--nys-border-width-sm, 1px) dashed
|
|
@@ -1508,7 +1516,7 @@
|
|
|
1508
1516
|
progress::-webkit-progress-bar {
|
|
1509
1517
|
background: var(--_nys-fileinput-progress-background);
|
|
1510
1518
|
}
|
|
1511
|
-
`,
|
|
1519
|
+
`,Ht=_`
|
|
1512
1520
|
:host {
|
|
1513
1521
|
/* Global fileitem Styles */
|
|
1514
1522
|
--_nys-fileitem-items-radius: var(--nys-radius-md, 4px);
|
|
@@ -1565,7 +1573,8 @@
|
|
|
1565
1573
|
.file-item__info {
|
|
1566
1574
|
display: flex;
|
|
1567
1575
|
flex-direction: column;
|
|
1568
|
-
|
|
1576
|
+
flex: 1;
|
|
1577
|
+
min-width: 0;
|
|
1569
1578
|
font-family: var(--_nys-fileitem-font-family);
|
|
1570
1579
|
font-size: var(--_nys-fileitem-font-size);
|
|
1571
1580
|
font-style: normal;
|
|
@@ -1574,13 +1583,30 @@
|
|
|
1574
1583
|
letter-spacing: var(--_nys-fileitem-letterspacing);
|
|
1575
1584
|
}
|
|
1576
1585
|
|
|
1586
|
+
.file-item__info-name {
|
|
1587
|
+
display: flex;
|
|
1588
|
+
max-width: 100%;
|
|
1589
|
+
overflow: hidden;
|
|
1590
|
+
white-space: nowrap;
|
|
1591
|
+
align-items: center;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
.file-item__info-name-start {
|
|
1595
|
+
overflow: hidden;
|
|
1596
|
+
text-overflow: ellipsis;
|
|
1597
|
+
white-space: nowrap;
|
|
1598
|
+
flex-shrink: 1;
|
|
1599
|
+
min-width: 0;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1577
1602
|
.file-item p {
|
|
1578
1603
|
margin: 0;
|
|
1579
1604
|
}
|
|
1580
1605
|
|
|
1581
|
-
.
|
|
1606
|
+
.file-item__error {
|
|
1582
1607
|
color: var(--_nys-fileitem-error-color);
|
|
1583
1608
|
text-overflow: ellipsis;
|
|
1609
|
+
font-weight: 700;
|
|
1584
1610
|
}
|
|
1585
1611
|
|
|
1586
1612
|
/**** Progress Bar ****/
|
|
@@ -1625,26 +1651,35 @@
|
|
|
1625
1651
|
transform: rotate(360deg);
|
|
1626
1652
|
}
|
|
1627
1653
|
}
|
|
1628
|
-
`;var
|
|
1629
|
-
<div
|
|
1630
|
-
|
|
1654
|
+
`;var At=Object.defineProperty,P1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&At(e,t,s),s};const oe=class oe extends g{constructor(){super(...arguments),this.filename="",this.status="pending",this.progress=0,this.errorMessage=""}_handleRemove(){this.dispatchEvent(new CustomEvent("nys-fileRemove",{detail:{filename:this.filename},bubbles:!0,composed:!0}))}splitFilename(e){const t=e.lastIndexOf("."),o=t!==-1?e.slice(t):"",s=t!==-1?e.slice(0,t):e,r=s.slice(0,s.length-3),i=s.slice(-3);return{startPart:r,endPart:i,extension:o}}render(){const{startPart:e,endPart:t,extension:o}=this.splitFilename(this.filename);return l`
|
|
1655
|
+
<div
|
|
1656
|
+
class="file-item ${this.status}"
|
|
1657
|
+
aria-busy=${this.status==="processing"?"true":"false"}
|
|
1658
|
+
aria-label="You have selected ${this.filename}"
|
|
1659
|
+
>
|
|
1660
|
+
<div class="file-item__main" role="group">
|
|
1631
1661
|
<nys-icon
|
|
1632
1662
|
class="file-icon"
|
|
1633
1663
|
name=${this.status==="processing"?"progress_activity":this.status==="error"?"error":"attach_file"}
|
|
1634
1664
|
size="2xl"
|
|
1635
1665
|
></nys-icon>
|
|
1636
1666
|
<div class="file-item__info">
|
|
1637
|
-
<
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1667
|
+
<div class="file-item__info-name">
|
|
1668
|
+
<span class="file-item__info-name-start">${e}</span>
|
|
1669
|
+
<span class="file-item__info-name-end"
|
|
1670
|
+
>${t}${o}</span
|
|
1671
|
+
>
|
|
1672
|
+
</div>
|
|
1673
|
+
${this.errorMessage?l`<p
|
|
1674
|
+
class="file-item__error"
|
|
1675
|
+
role="alert"
|
|
1676
|
+
aria-live="assertive"
|
|
1677
|
+
aria-invalid="true"
|
|
1678
|
+
aria-errormessage=${this.errorMessage}
|
|
1679
|
+
id="${this.filename}-error"
|
|
1680
|
+
>
|
|
1681
|
+
${this.errorMessage}
|
|
1682
|
+
</p>`:null}
|
|
1648
1683
|
</div>
|
|
1649
1684
|
<nys-button
|
|
1650
1685
|
circle
|
|
@@ -1653,20 +1688,21 @@
|
|
|
1653
1688
|
size="sm"
|
|
1654
1689
|
variant="ghost"
|
|
1655
1690
|
.onClick=${()=>this._handleRemove()}
|
|
1691
|
+
ariaLabel="Remove file: ${this.filename}"
|
|
1656
1692
|
></nys-button>
|
|
1657
1693
|
</div>
|
|
1658
|
-
${this.status==="processing"?
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1694
|
+
${this.status==="processing"?l`<div
|
|
1695
|
+
class="file-item__progress-container"
|
|
1696
|
+
role="progressbar"
|
|
1697
|
+
aria-valuemin="0"
|
|
1698
|
+
aria-valuemax="100"
|
|
1699
|
+
aria-valuenow="${this.progress}"
|
|
1700
|
+
aria-label="Upload progress for ${this.filename}"
|
|
1701
|
+
>
|
|
1702
|
+
<progress value=${this.progress} max="100"></progress>
|
|
1703
|
+
</div>`:null}
|
|
1668
1704
|
</div>
|
|
1669
|
-
`}};
|
|
1705
|
+
`}};oe.styles=Ht;let C1=oe;P1([n({type:String})],C1.prototype,"filename"),P1([n({type:String})],C1.prototype,"status"),P1([n({type:Number})],C1.prototype,"progress"),P1([n({type:String})],C1.prototype,"errorMessage"),customElements.define("nys-fileitem",C1);var It=Object.defineProperty,z=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&It(e,t,s),s};let Zt=0;const T1=class T1 extends g{constructor(){super(),this.id="",this.name="",this.label="",this.description="",this.multiple=!1,this.accept="",this.disabled=!1,this.required=!1,this.optional=!1,this.showError=!1,this.errorMessage="",this.dropzone=!1,this.width="full",this._selectedFiles=[],this._dragActive=!1,this._internals=this.attachInternals()}get _isDropDisabled(){return this.disabled||!this.multiple&&this._selectedFiles.length>0}get _buttonAriaLabel(){return this._selectedFiles.length===0?this.multiple?"Choose files: ":"Choose file: ":this.multiple?"Change files: ":"Change file: "}get _buttonAriaDescription(){if(this._selectedFiles.length===0)return`${this.label+" "+this.description}`;const e=this._selectedFiles.some(s=>s.status==="error");let t="";if(this._selectedFiles.length===1)t=`You have selected ${this._selectedFiles[0].file.name}.`;else{const s=this._selectedFiles.map(r=>r.file.name).join(", ");t=`You have selected ${this._selectedFiles.length} files: ${s}`}return`${t}${e?" Error: One or more files are not valid file types.":""}`}get _innerNysButton(){var o;const e=this.renderRoot.querySelector('[name="file-btn"]');return(o=e==null?void 0:e.shadowRoot)==null?void 0:o.querySelector("button")}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-fileinput-${Date.now()}-${Zt++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}_setValue(){var e;if(this.multiple){const t=this._selectedFiles.map(o=>o.file);if(t.length>0){const o=new FormData;t.forEach(s=>{o.append(this.name,s)}),this._internals.setFormValue(o)}else this._internals.setFormValue(null)}else{const t=((e=this._selectedFiles[0])==null?void 0:e.file)||null;this._internals.setFormValue(t)}this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=this.errorMessage||"Please upload a file.";this.required&&this._selectedFiles.length==0?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}))}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");t&&(this.showError=e===(this.errorMessage||"Please upload a file."),(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){const e=this._selectedFiles.some(s=>s.status==="error"),t=this.required&&this._selectedFiles.length===0;let o="";t?o=this.errorMessage||"Please upload a file.":e&&(o="One or more files are invalid."),this._setValidityMessage(o)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){e.preventDefault(),this._validate();const t=this._innerNysButton;if(t){const o=this._internals.form;o?Array.from(o.elements).find(i=>typeof i.checkValidity=="function"&&!i.checkValidity())===this&&t.focus():t.focus()}}async _saveSelectedFiles(e){if(this._selectedFiles.some(s=>s.file.name==e.name)||!this.multiple&&this._selectedFiles.length>=1)return;const o={file:e,progress:0,status:"pending"};this._selectedFiles.push(o),await this._processFile(o),this._setValue(),this._validate()}async _processFile(e){e.status="processing";try{if(!await Vt(e.file,this.accept)){e.status="error",e.errorMsg="File type is invalid.",this.requestUpdate();return}const o=new FileReader;o.onprogress=s=>{if(s.lengthComputable){const r=Math.round(s.loaded*100/s.total);e.progress=r,this.requestUpdate()}},o.onload=()=>{e.progress=100,e.status="done",this.requestUpdate()},o.onerror=()=>{e.status="error",e.errorMsg="Failed to load file.",this.requestUpdate()},o.readAsArrayBuffer(e.file)}catch{e.status="error",e.errorMsg="Error validating file.",this.requestUpdate()}}_dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{files:this._selectedFiles},bubbles:!0,composed:!0}))}_openFileDialog(){const e=this.renderRoot.querySelector(".hidden-file-input");e==null||e.click()}_handlePostFileSelectionFocus(){if(this.multiple){const e=this._innerNysButton;e&&e.focus()}else this._focusFirstFileItemIfSingleMode()}async _focusFirstFileItemIfSingleMode(){var e;if(!this.multiple){await this.updateComplete;const t=this.renderRoot.querySelector("nys-fileitem"),o=(e=t==null?void 0:t.shadowRoot)==null?void 0:e.querySelector(".file-item");o&&(o.setAttribute("tabindex","-1"),o.focus())}}_handleFileChange(e){const t=e.target,o=t.files;(o?Array.from(o):[]).map(r=>{this._saveSelectedFiles(r)}),t.value="",this.requestUpdate(),this._dispatchChangeEvent(),this._handlePostFileSelectionFocus()}_handleFileRemove(e){const t=e.detail.filename;this._selectedFiles=this._selectedFiles.filter(o=>o.file.name!==t),this._setValue(),this._validate(),this.requestUpdate(),this._dispatchChangeEvent()}_onDragOver(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._dragActive||(this._dragActive=!0,this.requestUpdate()))}_onDragLeave(e){this.disabled||(e.stopPropagation(),e.preventDefault(),e.currentTarget===e.target&&(this._dragActive=!1,this.requestUpdate()))}_onDrop(e){var s;if(this.disabled)return;e.preventDefault(),this._dragActive=!1,this.requestUpdate();const t=(s=e.dataTransfer)==null?void 0:s.files;if(!t)return;const o=Array.from(t);this.multiple?o.forEach(r=>{this._saveSelectedFiles(r)}):this._saveSelectedFiles(o[0]),this.requestUpdate(),this._dispatchChangeEvent()}render(){return l`<div
|
|
1670
1706
|
class="nys-fileinput"
|
|
1671
1707
|
@nys-fileRemove=${this._handleFileRemove}
|
|
1672
1708
|
>
|
|
@@ -1680,8 +1716,8 @@
|
|
|
1680
1716
|
</nys-label>
|
|
1681
1717
|
|
|
1682
1718
|
<input
|
|
1683
|
-
id=${this.id}
|
|
1684
1719
|
class="hidden-file-input"
|
|
1720
|
+
tabindex="-1"
|
|
1685
1721
|
type="file"
|
|
1686
1722
|
name=${this.name}
|
|
1687
1723
|
?multiple=${this.multiple}
|
|
@@ -1689,13 +1725,12 @@
|
|
|
1689
1725
|
?required=${this.required}
|
|
1690
1726
|
?disabled=${this.disabled||!this.multiple&&this._selectedFiles.length>0}
|
|
1691
1727
|
aria-disabled="${this.disabled}"
|
|
1692
|
-
aria-
|
|
1693
|
-
|
|
1694
|
-
style="position: absolute; width: 1px; height: 1px; opacity: 0;"
|
|
1728
|
+
aria-hidden="true"
|
|
1729
|
+
hidden
|
|
1695
1730
|
@change=${this._handleFileChange}
|
|
1696
1731
|
/>
|
|
1697
1732
|
|
|
1698
|
-
${this.dropzone?
|
|
1733
|
+
${this.dropzone?l`<div
|
|
1699
1734
|
class="nys-fileinput__dropzone
|
|
1700
1735
|
${this._dragActive?"drag-active":""}
|
|
1701
1736
|
${this._isDropDisabled?"disabled":""}
|
|
@@ -1705,33 +1740,38 @@
|
|
|
1705
1740
|
@dragover=${this._isDropDisabled?null:this._onDragOver}
|
|
1706
1741
|
@dragleave=${this._isDropDisabled?null:this._onDragLeave}
|
|
1707
1742
|
@drop=${this._isDropDisabled?null:this._onDrop}
|
|
1743
|
+
aria-label="Drag files here or choose from folder"
|
|
1708
1744
|
>
|
|
1709
|
-
${this._dragActive?
|
|
1710
|
-
id
|
|
1745
|
+
${this._dragActive?l`<p>Drop file to upload</p>`:l` <nys-button
|
|
1746
|
+
id=${this.id}
|
|
1711
1747
|
name="file-btn"
|
|
1712
1748
|
label=${this.multiple?"Choose files":"Choose file"}
|
|
1713
1749
|
variant="outline"
|
|
1750
|
+
ariaLabel=${this._buttonAriaLabel}
|
|
1751
|
+
ariaDescription=${this._buttonAriaDescription}
|
|
1714
1752
|
?disabled=${this._isDropDisabled}
|
|
1715
1753
|
.onClick=${e=>{e.stopPropagation(),this._openFileDialog()}}
|
|
1716
1754
|
></nys-button>
|
|
1717
1755
|
<p>or drag here</p>`}
|
|
1718
|
-
</div>`:
|
|
1719
|
-
id
|
|
1756
|
+
</div>`:l`<nys-button
|
|
1757
|
+
id=${this.id}
|
|
1720
1758
|
name="file-btn"
|
|
1721
1759
|
label=${this.multiple?"Choose files":"Choose file"}
|
|
1722
1760
|
variant="outline"
|
|
1761
|
+
ariaLabel=${this._buttonAriaLabel}
|
|
1762
|
+
ariaDescription=${this._buttonAriaDescription}
|
|
1723
1763
|
?disabled=${this.disabled||!this.multiple&&this._selectedFiles.length>0}
|
|
1724
1764
|
.onClick=${()=>this._openFileDialog()}
|
|
1725
1765
|
></nys-button>`}
|
|
1726
|
-
${this.showError?
|
|
1766
|
+
${this.showError?l`
|
|
1727
1767
|
<nys-errormessage
|
|
1728
1768
|
?showError=${this.showError}
|
|
1729
1769
|
errorMessage=${this._internals.validationMessage||this.errorMessage}
|
|
1730
1770
|
></nys-errormessage>
|
|
1731
1771
|
`:null}
|
|
1732
|
-
${this._selectedFiles.length>0?
|
|
1772
|
+
${this._selectedFiles.length>0?l`
|
|
1733
1773
|
<ul>
|
|
1734
|
-
${this._selectedFiles.map(e=>
|
|
1774
|
+
${this._selectedFiles.map(e=>l`<li>
|
|
1735
1775
|
<nys-fileitem
|
|
1736
1776
|
filename=${e.file.name}
|
|
1737
1777
|
status=${e.status}
|
|
@@ -1741,7 +1781,7 @@
|
|
|
1741
1781
|
</li>`)}
|
|
1742
1782
|
</ul>
|
|
1743
1783
|
`:null}
|
|
1744
|
-
</div>`}};
|
|
1784
|
+
</div>`}};T1.styles=zt,T1.formAssociated=!0;let $=T1;z([n({type:String})],$.prototype,"id"),z([n({type:String,reflect:!0})],$.prototype,"name"),z([n({type:String})],$.prototype,"label"),z([n({type:String})],$.prototype,"description"),z([n({type:Boolean})],$.prototype,"multiple"),z([n({type:String})],$.prototype,"accept"),z([n({type:Boolean,reflect:!0})],$.prototype,"disabled"),z([n({type:Boolean,reflect:!0})],$.prototype,"required"),z([n({type:Boolean,reflect:!0})],$.prototype,"optional"),z([n({type:Boolean,reflect:!0})],$.prototype,"showError"),z([n({type:String})],$.prototype,"errorMessage"),z([n({type:Boolean})],$.prototype,"dropzone"),z([n({type:String,reflect:!0})],$.prototype,"width"),customElements.get("nys-fileinput")||customElements.define("nys-fileinput",$);const Bt={account_circle:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
1745
1785
|
<mask id="mask0_12372_781" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
|
|
1746
1786
|
<rect width="24" height="24" fill="#D9D9D9"/>
|
|
1747
1787
|
</mask>
|
|
@@ -2201,7 +2241,7 @@
|
|
|
2201
2241
|
<g mask="url(#mask0_12372_621)">
|
|
2202
2242
|
<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)"/>
|
|
2203
2243
|
</g>
|
|
2204
|
-
</svg>`},
|
|
2244
|
+
</svg>`},Ut=_`
|
|
2205
2245
|
:host {
|
|
2206
2246
|
display: inline-block;
|
|
2207
2247
|
--_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. */
|
|
@@ -2301,7 +2341,7 @@
|
|
|
2301
2341
|
.nys-icon--flip-both {
|
|
2302
2342
|
transform: scale(-1, -1);
|
|
2303
2343
|
}
|
|
2304
|
-
`;var
|
|
2344
|
+
`;var Pt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,_1=(a,e,t,o)=>{for(var s=o>1?void 0:o?qt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&Pt(e,t,s),s};const a1=(y1=class extends g{constructor(){super(...arguments),this.name="",this.label="",this.ariaDescription="",this.rotate="0",this.flip="",this.color="",this._size="sm"}get size(){return this._size}set size(e){this._size=y1.VALID_TYPES.includes(e)?e:"sm"}getIcon(){const e=Bt[this.name];if(!e)return null;const s=new DOMParser().parseFromString(e,"image/svg+xml").documentElement;return s instanceof SVGElement?(s.setAttribute("role","img"),this.label?(s.setAttribute("aria-label",this.label),s.removeAttribute("aria-hidden")):(s.setAttribute("aria-hidden","true"),s.removeAttribute("aria-label")),this.ariaDescription&&s.setAttribute("aria-description",this.ariaDescription),s.style.rotate=`${this.rotate}deg`,s.style.color=this.color||"currentcolor",s.classList.add(`nys-icon--${this.size}`),s.classList.add("nys-icon--svg"),this.flip&&s.classList.add(`nys-icon--flip-${this.flip}`),s):null}render(){const e=this.getIcon();return e?l`${e}`:null}},y1.styles=Ut,y1.VALID_TYPES=["2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","12","16","24","32","40","48","64"],y1);_1([n({type:String,reflect:!0})],a1.prototype,"name",2),_1([n({type:String})],a1.prototype,"label",2),_1([n({type:String})],a1.prototype,"ariaDescription",2),_1([n({type:String})],a1.prototype,"rotate",2),_1([n({type:String})],a1.prototype,"flip",2),_1([n({type:String})],a1.prototype,"color",2),_1([n({reflect:!0})],a1.prototype,"size",1);let ze=a1;customElements.get("nys-icon")||customElements.define("nys-icon",ze);const Ot=_`
|
|
2305
2345
|
:host {
|
|
2306
2346
|
/* Label Typography */
|
|
2307
2347
|
--_nys-label-font-family: var(
|
|
@@ -2374,18 +2414,18 @@
|
|
|
2374
2414
|
font-weight: var(--nys-optional-font-weight);
|
|
2375
2415
|
color: var(--nys-optional-font-color);
|
|
2376
2416
|
}
|
|
2377
|
-
`;var
|
|
2417
|
+
`;var Rt=Object.defineProperty,q1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Rt(e,t,s),s};const re=class re extends g{constructor(){super(...arguments),this.id="",this.label="",this.description="",this.flag=""}render(){return l`
|
|
2378
2418
|
<div class="nys-label">
|
|
2379
2419
|
<label for=${this.id} class="nys-label__label"
|
|
2380
2420
|
>${this.label}
|
|
2381
|
-
${this.flag==="required"?
|
|
2382
|
-
${this.flag==="optional"?
|
|
2421
|
+
${this.flag==="required"?l`<label class="nys-label__required">*</label>`:""}
|
|
2422
|
+
${this.flag==="optional"?l`<label class="nys-label__optional">(Optional)</label>`:""}</label
|
|
2383
2423
|
>
|
|
2384
2424
|
<label for=${this.id} class="nys-label__description">
|
|
2385
2425
|
<slot name="description">${this.description}</slot>
|
|
2386
2426
|
</label>
|
|
2387
2427
|
</div>
|
|
2388
|
-
`}};
|
|
2428
|
+
`}};re.styles=Ot;let l1=re;q1([n({type:String})],l1.prototype,"id"),q1([n({type:String})],l1.prototype,"label"),q1([n({type:String})],l1.prototype,"description"),q1([n({type:String})],l1.prototype,"flag"),customElements.get("nys-label")||customElements.define("nys-label",l1);const He=_`
|
|
2389
2429
|
:host {
|
|
2390
2430
|
/* Global Radiobutton Styles */
|
|
2391
2431
|
--_nys-radiobutton-size: var(--nys-size-400, 32px);
|
|
@@ -2737,7 +2777,7 @@
|
|
|
2737
2777
|
color: var(--_nys-radiobutton-disabled-color-text);
|
|
2738
2778
|
cursor: not-allowed;
|
|
2739
2779
|
}
|
|
2740
|
-
`;var
|
|
2780
|
+
`;var Tt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,B=(a,e,t,o)=>{for(var s=o>1?void 0:o?Nt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&Tt(e,t,s),s};let Ft=0;const A=(t1=class extends g{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.tile=!1,this._internals=this.attachInternals()}get size(){return this._size}set size(e){this._size=t1.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiogroup-${Date.now()}-${Ft++}`),this.addEventListener("nys-change",this._handleRadioButtonChange),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("nys-change",this._handleRadioButtonChange),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._initializeCheckedRadioValue(),this._setValue(),this.setRadioButtonRequire(),this._updateRadioButtonsSize(),this._updateRadioButtonsTile(),this._updateRadioButtonsShowError()}updated(e){(e.has("required")||e.has("selectedValue"))&&this._manageRequire(),e.has("size")&&this._updateRadioButtonsSize(),e.has("tile")&&this._updateRadioButtonsTile(),e.has("showError")&&this._updateRadioButtonsShowError()}formResetCallback(){this.querySelectorAll("nys-radiobutton").forEach(t=>{t.formResetUpdate()})}_setValue(){this._internals.setFormValue(this.selectedValue)}setRadioButtonRequire(){this.querySelectorAll("nys-radiobutton").forEach((t,o)=>{this.required&&o===0&&t.setAttribute("required","required")})}async _manageRequire(){const e=this.errorMessage||"Please select an option.",t=this.querySelector("nys-radiobutton"),o=t?await t.getInputElement():null;o&&(this.required&&!this.selectedValue?this._internals.setValidity({valueMissing:!0},e,o):(this.showError=!1,this._internals.setValidity({},"",o)))}_initializeCheckedRadioValue(){const e=this.querySelector("nys-radiobutton[checked]");e&&(this.selectedValue=e.getAttribute("value"),this._internals.setFormValue(this.selectedValue))}_updateRadioButtonsSize(){this.querySelectorAll("nys-radiobutton").forEach(t=>{t.setAttribute("size",this.size)})}_updateRadioButtonsTile(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.tile?t.toggleAttribute("tile",!0):t.removeAttribute("tile")})}_updateRadioButtonsShowError(){this.querySelectorAll("nys-radiobutton").forEach(t=>{this.showError?t.setAttribute("showError",""):t.removeAttribute("showError")})}_handleRadioButtonChange(e){const t=e,{name:o,value:s}=t.detail;this.name=o,this.selectedValue=s,this._internals.setFormValue(this.selectedValue)}async _handleInvalid(e){if(e.preventDefault(),this._internals.validity.valueMissing){this.showError=!0,this._manageRequire();const t=this.querySelector("nys-radiobutton"),o=t?await t.getInputElement():null;if(o){const s=this._internals.form;s?Array.from(s.elements).find(c=>{if(c.tagName.toLowerCase()==="nys-radiogroup"){if(!c.querySelector("nys-radiobutton").checkValidity())return c}else return typeof c.checkValidity=="function"&&!c.checkValidity()})===this&&o.focus():o.focus()}}}render(){return l` <div
|
|
2741
2781
|
role="radiogroup"
|
|
2742
2782
|
class="nys-radiogroup"
|
|
2743
2783
|
aria-required="${this.required?"true":"false"}"
|
|
@@ -2759,13 +2799,13 @@
|
|
|
2759
2799
|
errorMessage=${this._internals.validationMessage||this.errorMessage}
|
|
2760
2800
|
.showDivider=${!this.tile}
|
|
2761
2801
|
></nys-errormessage>
|
|
2762
|
-
</div>`}},
|
|
2802
|
+
</div>`}},t1.VALID_SIZES=["sm","md"],t1.styles=He,t1.formAssociated=!0,t1);B([n({type:String})],A.prototype,"id",2),B([n({type:String,reflect:!0})],A.prototype,"name",2),B([n({type:Boolean,reflect:!0})],A.prototype,"required",2),B([n({type:Boolean,reflect:!0})],A.prototype,"optional",2),B([n({type:Boolean,reflect:!0})],A.prototype,"showError",2),B([n({type:String})],A.prototype,"errorMessage",2),B([n({type:String})],A.prototype,"label",2),B([n({type:String})],A.prototype,"description",2),B([N()],A.prototype,"selectedValue",2),B([n({reflect:!0})],A.prototype,"size",1),B([n({type:Boolean,reflect:!0})],A.prototype,"tile",2);let Ae=A;customElements.get("nys-radiogroup")||customElements.define("nys-radiogroup",Ae);var jt=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,G=(a,e,t,o)=>{for(var s=o>1?void 0:o?Gt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&jt(e,t,s),s};let Yt=0;const U=(v=class extends g{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",this.tile=!1}get size(){return this._size}set size(e){this._size=v.VALID_SIZES.includes(e)?e:"md"}async getInputElement(){var e;return await this.updateComplete,((e=this.shadowRoot)==null?void 0:e.querySelector("input"))||null}formResetUpdate(){this.checked=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-radiobutton-${Date.now()}-${Yt++}`),this.checked&&(v.buttonGroup[this.name]&&(v.buttonGroup[this.name].checked=!1,v.buttonGroup[this.name].requestUpdate()),v.buttonGroup[this.name]=this)}updated(e){e.has("checked")&&this.checked&&v.buttonGroup[this.name]!==this&&(v.buttonGroup[this.name]&&(v.buttonGroup[this.name].checked=!1,v.buttonGroup[this.name].requestUpdate()),v.buttonGroup[this.name]=this)}checkValidity(){var t;if(this.required&&!this.checked)return!1;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{checked:this.checked,name:this.name,value:this.value},bubbles:!0,composed:!0}))}_handleChange(){this.checked||(v.buttonGroup[this.name]&&(v.buttonGroup[this.name].checked=!1,v.buttonGroup[this.name].requestUpdate()),v.buttonGroup[this.name]=this,this.checked=!0,this._emitChangeEvent())}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleKeydown(e){e.code==="Space"&&(e.preventDefault(),!this.disabled&&!this.checked&&(v.buttonGroup[this.name]&&(v.buttonGroup[this.name].checked=!1,v.buttonGroup[this.name].requestUpdate()),v.buttonGroup[this.name]=this,this.checked=!0,this._emitChangeEvent()))}render(){return l`
|
|
2763
2803
|
<label class="nys-radiobutton">
|
|
2764
2804
|
<input
|
|
2765
2805
|
id="${this.id}"
|
|
2766
2806
|
class="nys-radiobutton__radio"
|
|
2767
2807
|
type="radio"
|
|
2768
|
-
name="${
|
|
2808
|
+
name="${y(this.name?this.name:void 0)}"
|
|
2769
2809
|
.checked=${this.checked}
|
|
2770
2810
|
?disabled=${this.disabled}
|
|
2771
2811
|
.value=${this.value}
|
|
@@ -2778,7 +2818,7 @@
|
|
|
2778
2818
|
@blur="${this._handleBlur}"
|
|
2779
2819
|
@keydown="${this._handleKeydown}"
|
|
2780
2820
|
/>
|
|
2781
|
-
${this.label&&
|
|
2821
|
+
${this.label&&l` <div class="nys-radiobutton__text">
|
|
2782
2822
|
<label for=${this.id} class="nys-radiobutton__label"
|
|
2783
2823
|
>${this.label}</label
|
|
2784
2824
|
>
|
|
@@ -2787,7 +2827,7 @@
|
|
|
2787
2827
|
</label>
|
|
2788
2828
|
</div>`}
|
|
2789
2829
|
</label>
|
|
2790
|
-
`}},v.VALID_SIZES=["sm","md"],v.buttonGroup={},v.styles=
|
|
2830
|
+
`}},v.VALID_SIZES=["sm","md"],v.buttonGroup={},v.styles=He,v);G([n({type:Boolean,reflect:!0})],U.prototype,"checked",2),G([n({type:Boolean,reflect:!0})],U.prototype,"disabled",2),G([n({type:Boolean,reflect:!0})],U.prototype,"required",2),G([n({type:String})],U.prototype,"label",2),G([n({type:String})],U.prototype,"description",2),G([n({type:String})],U.prototype,"id",2),G([n({type:String,reflect:!0})],U.prototype,"name",2),G([n({type:String})],U.prototype,"value",2),G([n({reflect:!0})],U.prototype,"size",1),G([n({type:Boolean,reflect:!0})],U.prototype,"tile",2);let Ie=U;customElements.get("nys-radiobutton")||customElements.define("nys-radiobutton",Ie);const Wt=_`
|
|
2791
2831
|
:host {
|
|
2792
2832
|
/* Global Select Styles */
|
|
2793
2833
|
--_nys-select-width: 100%;
|
|
@@ -2934,7 +2974,7 @@
|
|
|
2934
2974
|
--_nys-select-border-default: var(--nys-border-width-sm, 1px) solid
|
|
2935
2975
|
var(--_nys-select-error-color);
|
|
2936
2976
|
}
|
|
2937
|
-
`;var
|
|
2977
|
+
`;var Kt=Object.defineProperty,A1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&Kt(e,t,s),s};class c1 extends g{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.value="",this.label="",this.hidden=!1}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&e.addEventListener("slotchange",()=>{var s;const o=e.assignedNodes({flatten:!0});o.length>0&&(this.label=((s=o[0].textContent)==null?void 0:s.trim())||"")})}render(){return l`
|
|
2938
2978
|
<option
|
|
2939
2979
|
?disabled=${this.disabled}
|
|
2940
2980
|
?selected=${this.selected}
|
|
@@ -2944,7 +2984,7 @@
|
|
|
2944
2984
|
>
|
|
2945
2985
|
<slot>${this.label}</slot>
|
|
2946
2986
|
</option>
|
|
2947
|
-
`}}
|
|
2987
|
+
`}}A1([n({type:Boolean,reflect:!0})],c1.prototype,"disabled"),A1([n({type:Boolean,reflect:!0})],c1.prototype,"selected"),A1([n({type:String})],c1.prototype,"value"),A1([n({type:String})],c1.prototype,"label"),A1([n({type:Boolean,reflect:!0})],c1.prototype,"hidden"),customElements.define("nys-option",c1);var Xt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,I=(a,e,t,o)=>{for(var s=o>1?void 0:o?Qt(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&Xt(e,t,s),s};let Jt=0;const H=(s1=class extends g{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(e){this._width=s1.VALID_WIDTHS.includes(e)?e:"full"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-select-${Date.now()}-${Jt++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_handleSlotChange(){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector('slot:not([name="description"])'),t=(r=this.shadowRoot)==null?void 0:r.querySelector("select");if(!e||!t)return;t.querySelectorAll("option:not([hidden])").forEach(i=>i.remove()),e.assignedElements({flatten:!0}).forEach(i=>{var c;if(i instanceof c1){const h=document.createElement("option");h.value=i.value,h.textContent=i.label||((c=i.textContent)==null?void 0:c.trim())||"",h.disabled=i.disabled,h.selected=i.selected,t.appendChild(h)}})}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!e)return;const t=this.errorMessage||"Please select an option.";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("select");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("select");if(!e)return;let t=e.validationMessage;this._manageRequire(),this._setValidityMessage(t)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("select");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate(),this.showError=!0;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("select");if(t){const s=this._internals.form;s?Array.from(s.elements).find(c=>typeof c.checkValidity=="function"&&!c.checkValidity())===this&&t.focus():t.focus()}}_handleChange(e){const t=e.target;this.value=t.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}updated(e){var t;if(super.updated(e),e.has("value")){const o=(t=this.shadowRoot)==null?void 0:t.querySelector("select");o&&(o.value=this.value)}}render(){return l`
|
|
2948
2988
|
<div class="nys-select">
|
|
2949
2989
|
<nys-label
|
|
2950
2990
|
id=${this.id}
|
|
@@ -2985,7 +3025,7 @@
|
|
|
2985
3025
|
errorMessage=${this._internals.validationMessage||this.errorMessage}
|
|
2986
3026
|
></nys-errormessage>
|
|
2987
3027
|
</div>
|
|
2988
|
-
`}},
|
|
3028
|
+
`}},s1.VALID_WIDTHS=["sm","md","lg","full"],s1.styles=Wt,s1.formAssociated=!0,s1);I([n({type:String})],H.prototype,"id",2),I([n({type:String,reflect:!0})],H.prototype,"name",2),I([n({type:String})],H.prototype,"label",2),I([n({type:String})],H.prototype,"description",2),I([n({type:String})],H.prototype,"value",2),I([n({type:Boolean,reflect:!0})],H.prototype,"disabled",2),I([n({type:Boolean,reflect:!0})],H.prototype,"required",2),I([n({type:Boolean,reflect:!0})],H.prototype,"optional",2),I([n({type:String})],H.prototype,"form",2),I([n({type:Boolean,reflect:!0})],H.prototype,"showError",2),I([n({type:String})],H.prototype,"errorMessage",2),I([n({reflect:!0})],H.prototype,"width",1);let Ze=H;customElements.get("nys-select")||customElements.define("nys-select",Ze);const e2=_`
|
|
2989
3029
|
:host {
|
|
2990
3030
|
/* Global Skipnav Styles */
|
|
2991
3031
|
--_nys-skipnav-padding-vertical: var(--nys-space-100, 8px);
|
|
@@ -3057,7 +3097,7 @@
|
|
|
3057
3097
|
left: auto;
|
|
3058
3098
|
outline: none;
|
|
3059
3099
|
}
|
|
3060
|
-
`;var
|
|
3100
|
+
`;var t2=Object.defineProperty,Be=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&t2(e,t,s),s};const ie=class ie extends g{constructor(){super(),this.id="",this.href=""}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-skipnav-${Date.now()}`)}_handleFocus(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-skipnav__link");e==null||e.classList.add("show")}_handleBlur(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-skipnav__link");e==null||e.classList.remove("show")}_handleClick(){const e=(this.href||"#main-content").replace("#",""),t=document.getElementById(e);t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none")}render(){return l`
|
|
3061
3101
|
<div class="nys-skipnav">
|
|
3062
3102
|
<a
|
|
3063
3103
|
id=${this.id}
|
|
@@ -3071,418 +3111,7 @@
|
|
|
3071
3111
|
Skip to main content
|
|
3072
3112
|
</a>
|
|
3073
3113
|
</div>
|
|
3074
|
-
`}};
|
|
3075
|
-
:host {
|
|
3076
|
-
/* Anything that can be overridden should be defined here */
|
|
3077
|
-
|
|
3078
|
-
/* Global Stepper Styles */
|
|
3079
|
-
|
|
3080
|
-
/* Typography */
|
|
3081
|
-
--_nys-stepper-font-size: var(--nys-font-size-ui-md, 16px);
|
|
3082
|
-
--_nys-stepper-font-weight: var(--nys-font-weight-semibold, 600);
|
|
3083
|
-
--_nys-stepper-line-height: var(--nys-font-lineheight-ui-md, 24px);
|
|
3084
|
-
--_nys-stepper-font-family: var(
|
|
3085
|
-
--nys-font-family-ui,
|
|
3086
|
-
var(
|
|
3087
|
-
--nys-font-family-sans,
|
|
3088
|
-
"Proxima Nova",
|
|
3089
|
-
"Helvetica Neue",
|
|
3090
|
-
"Helvetica",
|
|
3091
|
-
"Arial",
|
|
3092
|
-
sans-serif
|
|
3093
|
-
)
|
|
3094
|
-
);
|
|
3095
|
-
}
|
|
3096
|
-
|
|
3097
|
-
.nys-stepper {
|
|
3098
|
-
font-family: var(--_nys-stepper-font-family);
|
|
3099
|
-
font-size: var(--_nys-stepper-font-size);
|
|
3100
|
-
font-weight: var(--_nys-stepper-font-weight);
|
|
3101
|
-
line-height: var(--_nys-stepper-line-height);
|
|
3102
|
-
display: flex;
|
|
3103
|
-
flex-direction: column;
|
|
3104
|
-
counter-reset: step;
|
|
3105
|
-
background: var(--nys-color-surface-raised, #f6f6f6);
|
|
3106
|
-
height: -webkit-fill-available;
|
|
3107
|
-
height: 100%;
|
|
3108
|
-
width: max-content;
|
|
3109
|
-
max-width: 300px;
|
|
3110
|
-
}
|
|
3111
|
-
|
|
3112
|
-
.nys-stepper__header {
|
|
3113
|
-
display: flex;
|
|
3114
|
-
flex-direction: column;
|
|
3115
|
-
padding: var(--nys-space-400, 32px) var(--nys-space-400, 32px)
|
|
3116
|
-
var(--nys-space-150, 12px);
|
|
3117
|
-
}
|
|
3118
|
-
|
|
3119
|
-
::slotted(div[slot="actions"]) {
|
|
3120
|
-
display: flex;
|
|
3121
|
-
flex-wrap: wrap;
|
|
3122
|
-
justify-content: flex-start;
|
|
3123
|
-
gap: var(--nys-space-100, 8px);
|
|
3124
|
-
margin-bottom: var(--nys-space-300, 24px);
|
|
3125
|
-
}
|
|
3126
|
-
|
|
3127
|
-
.nys-stepper__counter {
|
|
3128
|
-
display: none;
|
|
3129
|
-
text-decoration: underline;
|
|
3130
|
-
text-decoration-style: solid;
|
|
3131
|
-
text-decoration-skip-ink: auto;
|
|
3132
|
-
text-decoration-thickness: 7%; /* 1.12px */
|
|
3133
|
-
text-underline-offset: auto;
|
|
3134
|
-
text-underline-position: from-font;
|
|
3135
|
-
color: var(--nys-color-text, #1b1b1b);
|
|
3136
|
-
text-overflow: ellipsis;
|
|
3137
|
-
font-family: var(--nys-type-family-ui, "Proxima Nova");
|
|
3138
|
-
font-size: var(--nys-type-size-ui-md, 16px);
|
|
3139
|
-
font-style: normal;
|
|
3140
|
-
font-weight: 400;
|
|
3141
|
-
line-height: var(--nys-type-size-ui-md, 16px);
|
|
3142
|
-
cursor: pointer;
|
|
3143
|
-
width: fit-content;
|
|
3144
|
-
}
|
|
3145
|
-
|
|
3146
|
-
.nys-stepper__steps {
|
|
3147
|
-
display: flex;
|
|
3148
|
-
flex-direction: column;
|
|
3149
|
-
padding: var(--nys-space-150, 12px) var(--nys-space-400, 32px)
|
|
3150
|
-
var(--nys-space-400, 32px);
|
|
3151
|
-
overflow-y: scroll;
|
|
3152
|
-
height: -webkit-fill-available;
|
|
3153
|
-
height: -moz-available;
|
|
3154
|
-
scrollbar-width: none;
|
|
3155
|
-
background:
|
|
3156
|
-
/* Shadow Cover TOP */
|
|
3157
|
-
linear-gradient(
|
|
3158
|
-
var(--nys-color-surface-raised, #f6f6f6) 30%,
|
|
3159
|
-
rgba(255, 255, 255, 0)
|
|
3160
|
-
)
|
|
3161
|
-
center top,
|
|
3162
|
-
/* Shadow Cover BOTTOM */
|
|
3163
|
-
linear-gradient(
|
|
3164
|
-
rgba(255, 255, 255, 0),
|
|
3165
|
-
var(--nys-color-surface-raised, #f6f6f6) 70%
|
|
3166
|
-
)
|
|
3167
|
-
center bottom,
|
|
3168
|
-
/* Shadow TOP */
|
|
3169
|
-
linear-gradient(to bottom, rgba(99, 99, 99, 0.2), rgba(0, 0, 0, 0)) top,
|
|
3170
|
-
/* Shadow BOTTOM */
|
|
3171
|
-
linear-gradient(to top, rgba(99, 99, 99, 0.2), rgba(0, 0, 0, 0)) bottom;
|
|
3172
|
-
|
|
3173
|
-
background-repeat: no-repeat;
|
|
3174
|
-
background-size:
|
|
3175
|
-
100% 40px,
|
|
3176
|
-
100% 40px,
|
|
3177
|
-
100% 14px,
|
|
3178
|
-
100% 14px;
|
|
3179
|
-
background-attachment: local, local, scroll, scroll;
|
|
3180
|
-
background-color: var(--nys-color-surface-raised, #f6f6f6);
|
|
3181
|
-
}
|
|
3182
|
-
|
|
3183
|
-
.nys-step {
|
|
3184
|
-
position: relative;
|
|
3185
|
-
counter-increment: step;
|
|
3186
|
-
display: flex;
|
|
3187
|
-
flex-direction: column;
|
|
3188
|
-
}
|
|
3189
|
-
|
|
3190
|
-
.nys-step__contentwrapper {
|
|
3191
|
-
display: flex;
|
|
3192
|
-
flex-direction: row;
|
|
3193
|
-
align-items: center;
|
|
3194
|
-
gap: var(--nys-space-150, 12px);
|
|
3195
|
-
cursor: default;
|
|
3196
|
-
}
|
|
3197
|
-
|
|
3198
|
-
.nys-step__contentwrapper:focus-visible {
|
|
3199
|
-
outline: solid var(--nys-color-focus, #004dd1)
|
|
3200
|
-
var(--nys-border-width-md, 2px);
|
|
3201
|
-
outline-offset: var(--nys-space-2px, 2px);
|
|
3202
|
-
border-radius: var(--nys-radius-md, 4px);
|
|
3203
|
-
}
|
|
3204
|
-
|
|
3205
|
-
.nys-step__linewrapper {
|
|
3206
|
-
width: 24px;
|
|
3207
|
-
display: flex;
|
|
3208
|
-
justify-content: center;
|
|
3209
|
-
}
|
|
3210
|
-
|
|
3211
|
-
.nys-step__line {
|
|
3212
|
-
width: var(--nys-size-1px, 1px);
|
|
3213
|
-
height: var(--nys-size-300, 24px);
|
|
3214
|
-
border-radius: var(--nys-radius-round, 1776px);
|
|
3215
|
-
background: var(--nys-color-black-transparent-200, rgba(27, 27, 27, 0.2));
|
|
3216
|
-
margin: var(--nys-space-100, 8px) 0;
|
|
3217
|
-
}
|
|
3218
|
-
|
|
3219
|
-
.nys-step__number {
|
|
3220
|
-
border-radius: var(--nys-radius-round, 1776px);
|
|
3221
|
-
border: 1px solid var(--nys-color-neutral-400, #909395);
|
|
3222
|
-
background: var(
|
|
3223
|
-
--nys-color-white-transparent-900,
|
|
3224
|
-
rgba(255, 255, 255, 0.9)
|
|
3225
|
-
);
|
|
3226
|
-
width: 24px;
|
|
3227
|
-
height: 24px;
|
|
3228
|
-
display: flex;
|
|
3229
|
-
align-items: center;
|
|
3230
|
-
justify-content: center;
|
|
3231
|
-
text-align: center;
|
|
3232
|
-
}
|
|
3233
|
-
|
|
3234
|
-
:host([previous]) .nys-step__number,
|
|
3235
|
-
:host([previous]) .nys-step__line,
|
|
3236
|
-
:host([current]) .nys-step__number,
|
|
3237
|
-
:host([current]) .nys-step__line {
|
|
3238
|
-
background: var(--nys-color-theme-stronger, #081b2b);
|
|
3239
|
-
color: var(--nys-color-text-reverse, #fff);
|
|
3240
|
-
border-color: var(--nys-color-theme-stronger, #081b2b);
|
|
3241
|
-
}
|
|
3242
|
-
|
|
3243
|
-
:host([selected]) .nys-step__number {
|
|
3244
|
-
background: var(--nys-color-theme, #154973);
|
|
3245
|
-
color: var(--nys-color-text-reverse, #fff);
|
|
3246
|
-
border-color: var(--nys-color-theme, #154973);
|
|
3247
|
-
outline: 4px solid var(--nys-color-theme-weak, #cddde9);
|
|
3248
|
-
}
|
|
3249
|
-
|
|
3250
|
-
.nys-step__number::before {
|
|
3251
|
-
content: counter(step);
|
|
3252
|
-
line-height: 1;
|
|
3253
|
-
padding-top: 2px;
|
|
3254
|
-
}
|
|
3255
|
-
|
|
3256
|
-
/* Hide the line wrapper in the last step */
|
|
3257
|
-
:host([first]) .nys-step__linewrapper {
|
|
3258
|
-
display: none !important;
|
|
3259
|
-
}
|
|
3260
|
-
|
|
3261
|
-
.nys-step__content {
|
|
3262
|
-
display: flex;
|
|
3263
|
-
flex-direction: column;
|
|
3264
|
-
gap: var(--nys-space-100, 8px);
|
|
3265
|
-
}
|
|
3266
|
-
|
|
3267
|
-
.nys-step__label {
|
|
3268
|
-
overflow: hidden;
|
|
3269
|
-
color: var(--nys-color-text, #1b1b1b);
|
|
3270
|
-
text-overflow: ellipsis;
|
|
3271
|
-
font-family: var(--nys-type-family-ui, "Proxima Nova");
|
|
3272
|
-
font-size: var(--nys-type-size-ui-md, 16px);
|
|
3273
|
-
font-style: normal;
|
|
3274
|
-
font-weight: 400;
|
|
3275
|
-
line-height: var(--nys-type-size-ui-md, 16px);
|
|
3276
|
-
letter-spacing: var(--nys-font-letterspacing-ui-md, 0.044px);
|
|
3277
|
-
text-decoration-style: solid;
|
|
3278
|
-
text-decoration-skip-ink: auto;
|
|
3279
|
-
text-decoration-thickness: 7%; /* 1.12px */
|
|
3280
|
-
text-underline-offset: auto;
|
|
3281
|
-
text-underline-position: from-font;
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3284
|
-
:host([current]) .nys-step__label,
|
|
3285
|
-
:host([previous]) .nys-step__label {
|
|
3286
|
-
text-decoration-line: underline;
|
|
3287
|
-
}
|
|
3288
|
-
|
|
3289
|
-
:host([current]) .nys-step__contentwrapper,
|
|
3290
|
-
:host([previous]) .nys-step__contentwrapper {
|
|
3291
|
-
cursor: pointer;
|
|
3292
|
-
}
|
|
3293
|
-
|
|
3294
|
-
:host([selected]) .nys-step__label {
|
|
3295
|
-
/* UI/Medium/Bold */
|
|
3296
|
-
font-weight: 700;
|
|
3297
|
-
text-decoration-line: none;
|
|
3298
|
-
}
|
|
3299
|
-
|
|
3300
|
-
:host([selected]) .nys-step__contentwrapper {
|
|
3301
|
-
cursor: default;
|
|
3302
|
-
}
|
|
3303
|
-
|
|
3304
|
-
:host([selected]) .nys-step__contentwrapper:focus-visible {
|
|
3305
|
-
outline-offset: 6px;
|
|
3306
|
-
}
|
|
3307
|
-
|
|
3308
|
-
.nys-step__currentflag {
|
|
3309
|
-
overflow: hidden;
|
|
3310
|
-
color: var(--nys-color-text-weak, #4a4d4f);
|
|
3311
|
-
text-overflow: ellipsis;
|
|
3312
|
-
font-size: var(--nys-typography-type-size-ui-xs, 12px);
|
|
3313
|
-
font-weight: 600;
|
|
3314
|
-
line-height: var(--nys-typography-type-size-ui-xs, 12px);
|
|
3315
|
-
letter-spacing: var(--nys-typography-font-letterspacing-ui-xs, 0.057px);
|
|
3316
|
-
}
|
|
3317
|
-
|
|
3318
|
-
@media (max-width: 479px) {
|
|
3319
|
-
.nys-stepper {
|
|
3320
|
-
max-width: 479px;
|
|
3321
|
-
width: 100%;
|
|
3322
|
-
}
|
|
3323
|
-
|
|
3324
|
-
.nys-stepper__header {
|
|
3325
|
-
flex-direction: row-reverse;
|
|
3326
|
-
justify-content: space-between;
|
|
3327
|
-
padding: var(--nys-space-150, 12px);
|
|
3328
|
-
gap: var(--nys-space-200, 16px);
|
|
3329
|
-
}
|
|
3330
|
-
|
|
3331
|
-
.nys-stepper__headertext {
|
|
3332
|
-
flex: 1 1 0;
|
|
3333
|
-
min-width: 0;
|
|
3334
|
-
}
|
|
3335
|
-
|
|
3336
|
-
::slotted(div[slot="actions"]) {
|
|
3337
|
-
margin-bottom: 0;
|
|
3338
|
-
min-width: 0;
|
|
3339
|
-
justify-content: end;
|
|
3340
|
-
}
|
|
3341
|
-
|
|
3342
|
-
.nys-stepper__counter {
|
|
3343
|
-
display: block;
|
|
3344
|
-
}
|
|
3345
|
-
|
|
3346
|
-
.nys-stepper__steps {
|
|
3347
|
-
flex-direction: row;
|
|
3348
|
-
gap: var(--nys-space-2px, 2px);
|
|
3349
|
-
padding: 0;
|
|
3350
|
-
}
|
|
3351
|
-
|
|
3352
|
-
.nys-stepper__steps::slotted(*) {
|
|
3353
|
-
flex: 1;
|
|
3354
|
-
}
|
|
3355
|
-
|
|
3356
|
-
.nys-step__number {
|
|
3357
|
-
border-radius: 0;
|
|
3358
|
-
border: none;
|
|
3359
|
-
background-color: var(--nys-color-neutral-200, #bec0c1);
|
|
3360
|
-
height: var(--nys-size-100, 8px);
|
|
3361
|
-
width: 100%;
|
|
3362
|
-
}
|
|
3363
|
-
|
|
3364
|
-
:host([previous]) .nys-step__number,
|
|
3365
|
-
:host([current]) .nys-step__number {
|
|
3366
|
-
background-color: var(--nys-color-neutral-900, #1b1b1b);
|
|
3367
|
-
}
|
|
3368
|
-
|
|
3369
|
-
:host([selected]) .nys-step__number {
|
|
3370
|
-
background-color: var(--nys-color-theme-mid, #457aa5);
|
|
3371
|
-
outline: none;
|
|
3372
|
-
}
|
|
3373
|
-
.nys-step__number::before {
|
|
3374
|
-
content: "";
|
|
3375
|
-
}
|
|
3376
|
-
|
|
3377
|
-
.nys-step__content,
|
|
3378
|
-
.nys-step__linewrapper {
|
|
3379
|
-
display: none;
|
|
3380
|
-
}
|
|
3381
|
-
|
|
3382
|
-
.nys-step__contentwrapper {
|
|
3383
|
-
cursor: default;
|
|
3384
|
-
pointer-events: none;
|
|
3385
|
-
}
|
|
3386
|
-
|
|
3387
|
-
/* ---------------- Expanded Mode ---------------- */
|
|
3388
|
-
:host([isCompactExpanded]) .nys-step__content,
|
|
3389
|
-
:host([isCompactExpanded]) .nys-step__linewrapper {
|
|
3390
|
-
display: flex;
|
|
3391
|
-
}
|
|
3392
|
-
|
|
3393
|
-
:host([isCompactExpanded]) .nys-stepper {
|
|
3394
|
-
}
|
|
3395
|
-
|
|
3396
|
-
:host([isCompactExpanded]) .nys-stepper__header {
|
|
3397
|
-
padding-bottom: var(--nys-space-250, 20px);
|
|
3398
|
-
}
|
|
3399
|
-
|
|
3400
|
-
:host([isCompactExpanded]) .nys-stepper__steps {
|
|
3401
|
-
width: -webkit-fill-available;
|
|
3402
|
-
width: -moz-available;
|
|
3403
|
-
z-index: 9999;
|
|
3404
|
-
overflow-y: auto;
|
|
3405
|
-
flex-direction: column;
|
|
3406
|
-
gap: 0;
|
|
3407
|
-
padding: var(--nys-space-150, 12px) var(--nys-space-400, 32px)
|
|
3408
|
-
var(--nys-space-400, 32px);
|
|
3409
|
-
}
|
|
3410
|
-
|
|
3411
|
-
:host([isCompactExpanded]) .nys-step__number {
|
|
3412
|
-
border-radius: var(--nys-radius-round, 1776px);
|
|
3413
|
-
border: 1px solid var(--nys-color-neutral-400, #909395);
|
|
3414
|
-
background: var(
|
|
3415
|
-
--nys-color-white-transparent-900,
|
|
3416
|
-
rgba(255, 255, 255, 0.9)
|
|
3417
|
-
);
|
|
3418
|
-
width: 24px;
|
|
3419
|
-
height: 24px;
|
|
3420
|
-
}
|
|
3421
|
-
|
|
3422
|
-
:host([isCompactExpanded][previous]) .nys-step__number,
|
|
3423
|
-
:host([isCompactExpanded][previous]) .nys-step__line,
|
|
3424
|
-
:host([isCompactExpanded][current]) .nys-step__number,
|
|
3425
|
-
:host([isCompactExpanded][current]) .nys-step__line {
|
|
3426
|
-
background: var(--nys-color-theme-stronger, #081b2b);
|
|
3427
|
-
color: var(--nys-color-text-reverse, #fff);
|
|
3428
|
-
border-color: var(--nys-color-theme-stronger, #081b2b);
|
|
3429
|
-
}
|
|
3430
|
-
|
|
3431
|
-
:host([isCompactExpanded][selected]) .nys-step__number {
|
|
3432
|
-
background: var(--nys-color-theme, #154973);
|
|
3433
|
-
color: var(--nys-color-text-reverse, #fff);
|
|
3434
|
-
border-color: var(--nys-color-theme, #154973);
|
|
3435
|
-
outline: 4px solid var(--nys-color-theme-weak, #cddde9);
|
|
3436
|
-
}
|
|
3437
|
-
|
|
3438
|
-
:host([isCompactExpanded]) .nys-step__number::before {
|
|
3439
|
-
content: counter(step);
|
|
3440
|
-
line-height: 1;
|
|
3441
|
-
padding-top: 2px;
|
|
3442
|
-
}
|
|
3443
|
-
|
|
3444
|
-
:host([isCompactExpanded]) .nys-step__contentwrapper {
|
|
3445
|
-
pointer-events: all;
|
|
3446
|
-
}
|
|
3447
|
-
}
|
|
3448
|
-
`;var y2=Object.defineProperty,B1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&y2(e,t,s),s};const de=class de extends p{constructor(){super(...arguments),this.selected=!1,this.current=!1,this.label="",this.href="",this.isCompactExpanded=!1}_handleActivate(){this.dispatchEvent(new Event("nys-step-click",{bubbles:!0,composed:!0}))}_handleKeydown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this._handleActivate())}render(){return d`
|
|
3449
|
-
<div class="nys-step">
|
|
3450
|
-
<div class="nys-step__linewrapper">
|
|
3451
|
-
<div class="nys-step__line"></div>
|
|
3452
|
-
</div>
|
|
3453
|
-
<div
|
|
3454
|
-
class="nys-step__contentwrapper"
|
|
3455
|
-
tabindex=${this.isCompactExpanded?this.selected||this.current||this.hasAttribute("previous")?"0":"-1":null}
|
|
3456
|
-
@click=${this._handleActivate}
|
|
3457
|
-
@keydown=${this._handleKeydown}
|
|
3458
|
-
>
|
|
3459
|
-
<div class="nys-step__number"></div>
|
|
3460
|
-
<div class="nys-step__content">
|
|
3461
|
-
${this.current?d`<div class="nys-step__currentflag">Current Step</div>`:""}
|
|
3462
|
-
<div class="nys-step__label">${this.label}</div>
|
|
3463
|
-
</div>
|
|
3464
|
-
</div>
|
|
3465
|
-
</div>
|
|
3466
|
-
`}};de.styles=Fe;let d1=de;B1([i({type:Boolean,reflect:!0})],d1.prototype,"selected"),B1([i({type:Boolean,reflect:!0})],d1.prototype,"current"),B1([i({type:String})],d1.prototype,"label"),B1([i({type:String})],d1.prototype,"href"),B1([i({type:Boolean})],d1.prototype,"isCompactExpanded"),customElements.get("nys-step")||customElements.define("nys-step",d1);var p2=Object.defineProperty,E1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,n;r>=0;r--)(n=a[r])&&(s=n(e,t,s)||s);return s&&p2(e,t,s),s};const he=class he extends p{constructor(){super(),this.id="",this.name="",this.label="",this.contentTarget="",this.counterText="initial",this.isCompactExpanded=!1,this.hasLoadedInitialContent=!1,this._onStepClick=async e=>{const t=e.composedPath().find(n=>n instanceof HTMLElement&&n.tagName.toLowerCase()==="nys-step");if(!t)return;const o=Array.from(this.querySelectorAll("nys-step")),s=o.findIndex(n=>n.hasAttribute("current")),r=o.indexOf(t);s!==-1&&r>s||t.hasAttribute("selected")||(o.forEach(n=>n.removeAttribute("selected")),t.setAttribute("selected",""),this._updateCounter(),this._loadHref(t.getAttribute("href")),this.isCompactExpanded=!1)}}connectedCallback(){super.connectedCallback(),this.addEventListener("nys-step-click",this._onStepClick),requestAnimationFrame(()=>this._validateSteps())}disconnectedCallback(){this.removeEventListener("nys-step-click",this._onStepClick),super.disconnectedCallback()}_validateSteps(){Array.from(this.children).forEach(e=>{const t=e instanceof HTMLElement&&e.tagName.toLowerCase()==="nys-step",o=e instanceof HTMLElement&&e.hasAttribute("slot")&&e.getAttribute("slot")==="actions";!t&&!o&&(console.warn("Only <nys-step> elements or the <div slot='actions'> container are allowed as direct children of <nys-stepper>. Removing:",e),e.remove())})}_validateButtonSlot(e){const o=e.target.assignedElements();if(o.length!==1||o[0].tagName.toLowerCase()!=="div"){console.warn("The 'actions' slot must have exactly one <div> as a direct child.");return}const s=o[0];Array.from(s.children).forEach(r=>{r instanceof HTMLElement&&r.tagName.toLowerCase()==="nys-button"?(r.setAttribute("size","sm"),r.hasAttribute("fullWidth")&&(r.style.flex="1 1 0")):(console.warn("The <div> inside 'actions' slot only accepts <nys-button> elements. Removing invalid node:",r),r.remove())})}_updateCounter(){if(this.isCompactExpanded){this.counterText="Back to Form",this.style.height="-webkit-fill-available",this.style.height="-moz-available",this.style.height="stretch";return}else this.style.height="auto";const e=this.querySelectorAll("nys-step"),t=Array.from(e).findIndex(s=>s.hasAttribute("selected")),o=e.length;this.counterText=t>=0?`Step ${t+1} of ${o}`:`Step 1 of ${o}`}updated(){const e=this.querySelectorAll("nys-step");let t=!1,o=!1,s=!1;if(e.forEach((r,n)=>{r.hasAttribute("current")&&(s?r.removeAttribute("current"):s=!0),n===0?r.setAttribute("first",""):r.removeAttribute("first"),r.hasAttribute("current")?(t=!0,r.removeAttribute("previous")):t?r.removeAttribute("previous"):r.setAttribute("previous",""),r.hasAttribute("selected")&&(t||o?r.removeAttribute("selected"):o=!0),this.hasAttribute("isCompactExpanded")?r.setAttribute("isCompactExpanded",""):r.removeAttribute("isCompactExpanded")}),o||(s?e.forEach(r=>{r.hasAttribute("current")&&!o&&(r.setAttribute("selected",""),o=!0)}):e.length>0&&(e[0].setAttribute("current",""),e[0].setAttribute("selected",""))),this._updateCounter(),!this.hasLoadedInitialContent){this.hasLoadedInitialContent=!0;const r=Array.from(e).find(n=>n.hasAttribute("selected"));r&&this._loadHref(r.getAttribute("href"))}}async _loadHref(e){if(!e)return;let t=null;if(this.contentTarget&&(t=document.getElementById(this.contentTarget)),t||(t=this.nextElementSibling),t)try{const o=await fetch(e);t.innerHTML=await o.text()}catch(o){console.error("Failed to load step content:",o)}else console.warn("No container found for loading step content.")}_toggleCompact(){this.isCompactExpanded=!this.isCompactExpanded}_handleCounterKeydown(e){(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this._toggleCompact())}render(){return d`
|
|
3467
|
-
<div class="nys-stepper" id=${this.id} name=${this.name}>
|
|
3468
|
-
<div class="nys-stepper__header">
|
|
3469
|
-
<slot name="actions" @slotchange=${this._validateButtonSlot}></slot>
|
|
3470
|
-
<div class="nys-stepper__headertext">
|
|
3471
|
-
<div class="nys-stepper__label">${this.label}</div>
|
|
3472
|
-
<div
|
|
3473
|
-
class="nys-stepper__counter"
|
|
3474
|
-
@click=${this._toggleCompact}
|
|
3475
|
-
@keydown=${this._handleCounterKeydown}
|
|
3476
|
-
role="button"
|
|
3477
|
-
tabindex="0"
|
|
3478
|
-
>
|
|
3479
|
-
${this.counterText}
|
|
3480
|
-
</div>
|
|
3481
|
-
</div>
|
|
3482
|
-
</div>
|
|
3483
|
-
<slot class="nys-stepper__steps"></slot>
|
|
3484
|
-
</div>
|
|
3485
|
-
`}};he.styles=Fe;let W=he;E1([i({type:String})],W.prototype,"id"),E1([i({type:String,reflect:!0})],W.prototype,"name"),E1([i({type:String})],W.prototype,"label"),E1([i({type:String})],W.prototype,"contentTarget"),E1([i({type:String})],W.prototype,"counterText"),E1([i({type:Boolean,reflect:!0})],W.prototype,"isCompactExpanded"),customElements.get("nys-stepper")||customElements.define("nys-stepper",W);const u2=C`
|
|
3114
|
+
`}};ie.styles=e2;let $1=ie;Be([n({type:String})],$1.prototype,"id"),Be([n({type:String})],$1.prototype,"href"),customElements.get("nys-skipnav")||customElements.define("nys-skipnav",$1);const s2=_`
|
|
3486
3115
|
:host {
|
|
3487
3116
|
/* Anything that can be overridden should be defined here */
|
|
3488
3117
|
|
|
@@ -3623,7 +3252,7 @@
|
|
|
3623
3252
|
color: var(--_nys-textarea-disabled-color-text);
|
|
3624
3253
|
cursor: not-allowed;
|
|
3625
3254
|
}
|
|
3626
|
-
`;var
|
|
3255
|
+
`;var o2=Object.defineProperty,r2=Object.getOwnPropertyDescriptor,S=(a,e,t,o)=>{for(var s=o>1?void 0:o?r2(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&o2(e,t,s),s};let i2=0;const k=(O=class extends g{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(e){this._resize=O.VALID_RESIZE.includes(e)?e:"vertical"}async updated(e){await Promise.resolve(),e.has("width")&&(this.width=O.VALID_WIDTHS.includes(this.width)?this.width:"full"),e.has("rows")&&(this.rows=this.rows??4)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textarea-${Date.now()}-${i2++}`),this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!e)return;const t=this.errorMessage||"This field is required";this.required&&!this.value?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var o,s;const t=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");t&&(this.showError=!!e,(s=this.errorMessage)!=null&&s.trim()&&e!==""&&(e=this.errorMessage),this._internals.setValidity(e?{customError:!0}:{},e,t))}_validate(){var o;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");if(!e)return;let t=e.validationMessage;this._setValidityMessage(t)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("textarea");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("textarea");if(t){const s=this._internals.form;s?Array.from(s.elements).find(c=>typeof c.checkValidity=="function"&&!c.checkValidity())===this&&t.focus():t.focus()}}_handleInput(e){const t=e.target;this.value=t.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("nys-input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}_handleSelect(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("nys-select",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleSelectionChange(e){const t=e.target;this.value=t.value,this.dispatchEvent(new CustomEvent("selectionchange",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return l`
|
|
3627
3256
|
<label class="nys-textarea">
|
|
3628
3257
|
<nys-label
|
|
3629
3258
|
id=${this.id}
|
|
@@ -3640,12 +3269,14 @@
|
|
|
3640
3269
|
?disabled=${this.disabled}
|
|
3641
3270
|
?required=${this.required}
|
|
3642
3271
|
?readonly=${this.readonly}
|
|
3643
|
-
aria-disabled=${
|
|
3644
|
-
aria-required=${
|
|
3645
|
-
|
|
3646
|
-
|
|
3272
|
+
aria-disabled=${y(this.disabled?"true":void 0)}
|
|
3273
|
+
aria-required=${y(this.required?"true":void 0)}
|
|
3274
|
+
aria-label=${y(this.label||void 0)}
|
|
3275
|
+
aria-description=${y(this.description||void 0)}
|
|
3276
|
+
placeholder=${y(this.placeholder?this.placeholder:void 0)}
|
|
3277
|
+
maxlength=${y(this.maxlength!==""?this.maxlength:void 0)}
|
|
3647
3278
|
.rows=${this.rows}
|
|
3648
|
-
form=${
|
|
3279
|
+
form=${y(this.form||void 0)}
|
|
3649
3280
|
@input=${this._handleInput}
|
|
3650
3281
|
@focus="${this._handleFocus}"
|
|
3651
3282
|
@blur="${this._handleBlur}"
|
|
@@ -3659,7 +3290,7 @@ ${this.value}</textarea
|
|
|
3659
3290
|
errorMessage=${this._internals.validationMessage||this.errorMessage}
|
|
3660
3291
|
></nys-errormessage>
|
|
3661
3292
|
</label>
|
|
3662
|
-
`}},
|
|
3293
|
+
`}},O.VALID_WIDTHS=["sm","md","lg","full"],O.VALID_RESIZE=["vertical","none"],O.styles=s2,O.formAssociated=!0,O);S([n({type:String})],k.prototype,"id",2),S([n({type:String,reflect:!0})],k.prototype,"name",2),S([n({type:String})],k.prototype,"label",2),S([n({type:String})],k.prototype,"description",2),S([n({type:String})],k.prototype,"placeholder",2),S([n({type:String})],k.prototype,"value",2),S([n({type:Boolean,reflect:!0})],k.prototype,"disabled",2),S([n({type:Boolean,reflect:!0})],k.prototype,"readonly",2),S([n({type:Boolean,reflect:!0})],k.prototype,"required",2),S([n({type:Boolean,reflect:!0})],k.prototype,"optional",2),S([n({type:String})],k.prototype,"form",2),S([n({type:Number})],k.prototype,"maxlength",2),S([n({reflect:!0})],k.prototype,"width",2),S([n({type:Number})],k.prototype,"rows",2),S([n({reflect:!0})],k.prototype,"resize",1),S([n({type:Boolean,reflect:!0})],k.prototype,"showError",2),S([n({type:String})],k.prototype,"errorMessage",2);let Ue=k;customElements.get("nys-textarea")||customElements.define("nys-textarea",Ue);const n2=_`
|
|
3663
3294
|
:host {
|
|
3664
3295
|
/* Anything that can be overridden should be defined here */
|
|
3665
3296
|
|
|
@@ -3872,7 +3503,7 @@ ${this.value}</textarea
|
|
|
3872
3503
|
color: var(--_nys-textinput-disabled-color-text);
|
|
3873
3504
|
cursor: not-allowed;
|
|
3874
3505
|
}
|
|
3875
|
-
`;var
|
|
3506
|
+
`;var a2=Object.defineProperty,l2=Object.getOwnPropertyDescriptor,m=(a,e,t,o)=>{for(var s=o>1?void 0:o?l2(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&a2(e,t,s),s};let c2=0;const C=(R=class extends g{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(e){this._type=R.VALID_TYPES.includes(e)?e:"text"}async updated(e){e.has("width")&&(await Promise.resolve(),this.width=R.VALID_WIDTHS.includes(this.width)?this.width:"full"),e.has("disabled")&&(this._validateButtonSlot("startButton"),this._validateButtonSlot("endButton"))}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-textinput-${Date.now()}-${c2++}`),this._originalErrorMessage=this.errorMessage??"",this.addEventListener("invalid",this._handleInvalid)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this._handleInvalid)}firstUpdated(){this._setValue()}formResetCallback(){this.value=""}_setValue(){this._internals.setFormValue(this.value),this._manageRequire()}_manageRequire(){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=this.errorMessage||"This field is required";this.required&&(!this.value||((r=this.value)==null?void 0:r.trim())==="")?(this._internals.ariaRequired="true",this._internals.setValidity({valueMissing:!0},t,e)):(this._internals.ariaRequired="false",this._internals.setValidity({}),this._hasUserInteracted=!1)}_setValidityMessage(e=""){var s,r;const t=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!t)return;this.showError=!!e,(r=this._originalErrorMessage)!=null&&r.trim()&&e!==""?this.errorMessage=this._originalErrorMessage:this.errorMessage=e;const o=e?{customError:!0}:{};this._internals.setValidity(o,this.errorMessage,t)}_validate(){var s;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("input");if(!e)return;const t=e.validity;let o="";t.valueMissing?o="This field is required":t.typeMismatch?o="Invalid format for this type":t.patternMismatch?o="Invalid format":t.tooShort?o=`Value is too short. Minimum length is ${e.minLength}`:t.tooLong?o=`Value is too long. Maximum length is ${e.maxLength}`:t.rangeUnderflow?o=`Value must be at least ${e.min}`:t.rangeOverflow?o=`Value must be at most ${e.max}`:t.stepMismatch?o="Invalid step value":o=e.validationMessage,this._setValidityMessage(o)}checkValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("input");return e?e.checkValidity():!0}_handleInvalid(e){var o;e.preventDefault(),this._hasUserInteracted=!0,this._validate();const t=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(t){const s=this._internals.form;s?Array.from(s.elements).find(c=>typeof c.checkValidity=="function"&&!c.checkValidity())===this&&t.focus():t.focus()}}_togglePasswordVisibility(){this.showPassword=!this.showPassword}_handleInput(e){const t=e.target;this.value=t.value,this._internals.setFormValue(this.value),this._hasUserInteracted&&this._validate(),this.dispatchEvent(new CustomEvent("nys-input",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this._hasUserInteracted||(this._hasUserInteracted=!0),this._validate(),this.dispatchEvent(new Event("nys-blur"))}_validateButtonSlot(e){var i,c;const t=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="'+e+'"]'),o=(c=this.shadowRoot)==null?void 0:c.querySelector(".nys-textinput__buttoncontainer");if(!t||!o)return;const s=t.assignedElements();let r=!1;s.forEach(h=>{h instanceof HTMLElement&&h.tagName.toLowerCase()==="nys-button"&&!r?(r=!0,h.setAttribute("size","sm"),h.setAttribute("variant","primary"),this.disabled?h.setAttribute("disabled","true"):h.removeAttribute("disabled")):(console.warn("The '"+e+"' slot only accepts a single <nys-button> element. Removing invalid or extra node:",h),h.remove())}),e==="startButton"?o.classList.toggle("has-start-button",r):e==="endButton"&&o.classList.toggle("has-end-button",r)}render(){return l`
|
|
3876
3507
|
<div class="nys-textinput">
|
|
3877
3508
|
<nys-label
|
|
3878
3509
|
id=${this.id}
|
|
@@ -3900,18 +3531,18 @@ ${this.value}</textarea
|
|
|
3900
3531
|
aria-disabled="${this.disabled}"
|
|
3901
3532
|
aria-label="${[this.label,this.description].filter(Boolean).join(" ")}"
|
|
3902
3533
|
.value=${this.value}
|
|
3903
|
-
placeholder=${
|
|
3904
|
-
pattern=${
|
|
3905
|
-
min=${
|
|
3906
|
-
maxlength=${
|
|
3907
|
-
step=${
|
|
3908
|
-
max=${
|
|
3909
|
-
form=${
|
|
3534
|
+
placeholder=${y(this.placeholder?this.placeholder:void 0)}
|
|
3535
|
+
pattern=${y(this.pattern?this.pattern:void 0)}
|
|
3536
|
+
min=${y(this.min!==""?this.min:void 0)}
|
|
3537
|
+
maxlength=${y(this.maxlength!==""?this.maxlength:void 0)}
|
|
3538
|
+
step=${y(this.step!==""?this.step:void 0)}
|
|
3539
|
+
max=${y(this.max!==""?this.max:void 0)}
|
|
3540
|
+
form=${y(this.form?this.form:void 0)}
|
|
3910
3541
|
@input=${this._handleInput}
|
|
3911
3542
|
@focus="${this._handleFocus}"
|
|
3912
3543
|
@blur="${this._handleBlur}"
|
|
3913
3544
|
/>
|
|
3914
|
-
${this.type==="password"?
|
|
3545
|
+
${this.type==="password"?l` <nys-button
|
|
3915
3546
|
class="eye-icon"
|
|
3916
3547
|
id="password-toggle"
|
|
3917
3548
|
suffixIcon="slotted"
|
|
@@ -3936,7 +3567,7 @@ ${this.value}</textarea
|
|
|
3936
3567
|
errorMessage=${this.errorMessage}
|
|
3937
3568
|
></nys-errormessage>
|
|
3938
3569
|
</div>
|
|
3939
|
-
`}},
|
|
3570
|
+
`}},R.VALID_TYPES=["email","number","password","search","tel","text","url"],R.VALID_WIDTHS=["sm","md","lg","full"],R.styles=n2,R.formAssociated=!0,R);m([n({type:String})],C.prototype,"id",2),m([n({type:String,reflect:!0})],C.prototype,"name",2),m([n({reflect:!0})],C.prototype,"type",1),m([n({type:String})],C.prototype,"label",2),m([n({type:String})],C.prototype,"description",2),m([n({type:String})],C.prototype,"placeholder",2),m([n({type:String})],C.prototype,"value",2),m([n({type:Boolean,reflect:!0})],C.prototype,"disabled",2),m([n({type:Boolean,reflect:!0})],C.prototype,"readonly",2),m([n({type:Boolean,reflect:!0})],C.prototype,"required",2),m([n({type:Boolean,reflect:!0})],C.prototype,"optional",2),m([n({type:String})],C.prototype,"form",2),m([n({type:String})],C.prototype,"pattern",2),m([n({type:Number})],C.prototype,"maxlength",2),m([n({reflect:!0})],C.prototype,"width",2),m([n({type:Number})],C.prototype,"step",2),m([n({type:Number})],C.prototype,"min",2),m([n({type:Number})],C.prototype,"max",2),m([n({type:Boolean,reflect:!0})],C.prototype,"showError",2),m([n({type:String})],C.prototype,"errorMessage",2),m([N()],C.prototype,"showPassword",2);let Pe=C;customElements.get("nys-textinput")||customElements.define("nys-textinput",Pe);const h2=_`
|
|
3940
3571
|
:host {
|
|
3941
3572
|
/* Global Toggle Styles */
|
|
3942
3573
|
--_nys-toggle-width: var(--nys-font-size-8xl, 44px);
|
|
@@ -4212,14 +3843,14 @@ ${this.value}</textarea
|
|
|
4212
3843
|
--toggle-transition-duration: 0s; /* Disable animation */
|
|
4213
3844
|
}
|
|
4214
3845
|
}
|
|
4215
|
-
`;var
|
|
3846
|
+
`;var d2=Object.defineProperty,y2=Object.getOwnPropertyDescriptor,Y=(a,e,t,o)=>{for(var s=o>1?void 0:o?y2(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&d2(e,t,s),s};let u2=0;const P=(o1=class extends g{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(e){this._size=o1.VALID_SIZES.includes(e)?e:"md"}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-toggle-${Date.now()}-${u2++}`)}updated(e){(e.has("checked")||e.has("value"))&&this._internals.setFormValue(this.checked?this.value:null)}_emitChangeEvent(){this.dispatchEvent(new CustomEvent("nys-change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}_handleFocus(){this.dispatchEvent(new Event("nys-focus"))}_handleBlur(){this.dispatchEvent(new Event("nys-blur"))}_handleChange(e){const{checked:t}=e.target;this.checked=t,this._emitChangeEvent()}_handleKeyDown(e){!this.disabled&&(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.checked=!this.checked,this._emitChangeEvent())}render(){return l`
|
|
4216
3847
|
<label class="nys-toggle">
|
|
4217
3848
|
<div class="nys-toggle__content">
|
|
4218
3849
|
<div class="nys-toggle__toggle">
|
|
4219
3850
|
<input
|
|
4220
3851
|
id="${this.id}"
|
|
4221
3852
|
type="checkbox"
|
|
4222
|
-
name="${
|
|
3853
|
+
name="${y(this.name?this.name:void 0)}"
|
|
4223
3854
|
.value=${this.value}
|
|
4224
3855
|
form=${this.form}
|
|
4225
3856
|
.checked=${this.checked}
|
|
@@ -4234,7 +3865,7 @@ ${this.value}</textarea
|
|
|
4234
3865
|
/>
|
|
4235
3866
|
<span class="slider">
|
|
4236
3867
|
<div class="knob">
|
|
4237
|
-
${this.noIcon?"":
|
|
3868
|
+
${this.noIcon?"":l`<nys-icon
|
|
4238
3869
|
class="toggle-icon"
|
|
4239
3870
|
name="${this.checked?"check":"close"}"
|
|
4240
3871
|
size="2xl"
|
|
@@ -4248,7 +3879,7 @@ ${this.value}</textarea
|
|
|
4248
3879
|
</div>
|
|
4249
3880
|
</div>
|
|
4250
3881
|
</label>
|
|
4251
|
-
`}},
|
|
3882
|
+
`}},o1.VALID_SIZES=["sm","md"],o1.styles=h2,o1.formAssociated=!0,o1);Y([n({type:String})],P.prototype,"id",2),Y([n({type:String,reflect:!0})],P.prototype,"name",2),Y([n({type:String})],P.prototype,"value",2),Y([n({type:Boolean,reflect:!0})],P.prototype,"checked",2),Y([n({type:Boolean,reflect:!0})],P.prototype,"disabled",2),Y([n({type:Boolean})],P.prototype,"noIcon",2),Y([n({type:String})],P.prototype,"label",2),Y([n({type:String})],P.prototype,"description",2),Y([n({reflect:!0})],P.prototype,"size",1),Y([n({type:String})],P.prototype,"form",2);let qe=P;customElements.get("nys-toggle")||customElements.define("nys-toggle",qe);const p2=_`
|
|
4252
3883
|
:host {
|
|
4253
3884
|
/* Global Tooltip Styles */
|
|
4254
3885
|
--_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
|
|
@@ -4260,8 +3891,11 @@ ${this.value}</textarea
|
|
|
4260
3891
|
--_nys-tooltip-lineheight: var(--nys-font-lineheight-ui-sm, 24px);
|
|
4261
3892
|
}
|
|
4262
3893
|
|
|
4263
|
-
.nys-
|
|
3894
|
+
.nys-tooltip__main {
|
|
4264
3895
|
position: relative;
|
|
3896
|
+
}
|
|
3897
|
+
|
|
3898
|
+
.nys-tooltip__wrapper {
|
|
4265
3899
|
width: fit-content;
|
|
4266
3900
|
display: flex;
|
|
4267
3901
|
cursor: pointer;
|
|
@@ -4273,8 +3907,7 @@ ${this.value}</textarea
|
|
|
4273
3907
|
|
|
4274
3908
|
.nys-tooltip__content {
|
|
4275
3909
|
position: absolute;
|
|
4276
|
-
|
|
4277
|
-
display: block;
|
|
3910
|
+
display: none;
|
|
4278
3911
|
max-width: 400px;
|
|
4279
3912
|
width: max-content;
|
|
4280
3913
|
max-height: 120px;
|
|
@@ -4311,9 +3944,8 @@ ${this.value}</textarea
|
|
|
4311
3944
|
no-repeat center;
|
|
4312
3945
|
}
|
|
4313
3946
|
|
|
4314
|
-
.nys-tooltip__wrapper:hover .nys-tooltip__content,
|
|
4315
3947
|
.nys-tooltip__content[active] {
|
|
4316
|
-
|
|
3948
|
+
display: block;
|
|
4317
3949
|
}
|
|
4318
3950
|
|
|
4319
3951
|
/* ===================== POSITIONING ===================== */
|
|
@@ -4392,19 +4024,21 @@ ${this.value}</textarea
|
|
|
4392
4024
|
); /* 2rem = 32px = 16px margin on each side */
|
|
4393
4025
|
}
|
|
4394
4026
|
}
|
|
4395
|
-
`;var
|
|
4396
|
-
<div
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
<
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4027
|
+
`;var f2=Object.defineProperty,g2=Object.getOwnPropertyDescriptor,S1=(a,e,t,o)=>{for(var s=o>1?void 0:o?g2(e,t):e,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=(o?i(e,t,s):i(s))||s);return o&&s&&f2(e,t,s),s};let v2=0;const ne=class ne extends g{constructor(){super(),this.id="",this.text="",this.inverted=!1,this.focusable=!1,this._active=!1,this._userHasSetPosition=!1,this._originalUserPosition=null,this._internallyUpdatingPosition=!1,this._position=null,this._handleTooltipEnter=()=>{if(this._active=!0,this._addScrollListeners(),this._userHasSetPosition&&this._originalUserPosition&&this._doesPositionFit(this._originalUserPosition)){this.position=this._originalUserPosition,this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._shiftTooltipIntoViewport(e)});return}this.autoPositionTooltip()},this._handleBlurOrMouseLeave=()=>{var t;this._active=!1,this._removeScrollListeners();const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._resetTooltipPositioningStyles(e)},this._handleScrollOrResize=()=>{this._active&&(this._userHasSetPosition&&this._originalUserPosition?this._doesPositionFit(this._originalUserPosition)?(this._setInternalPosition(this._originalUserPosition),this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");e&&this._shiftTooltipIntoViewport(e)})):this.autoPositionTooltip():this.autoPositionTooltip())},this._handleEscapeKey=e=>{var t;if(e.key==="Escape"&&this._active){this._active=!1,this._removeScrollListeners();const o=(t=this.shadowRoot)==null?void 0:t.querySelector(".nys-tooltip__content");o&&this._resetTooltipPositioningStyles(o)}}}get position(){return this._position}set position(e){const t=this._position;this._position=e,this.requestUpdate("position",t),this._internallyUpdatingPosition||(this._userHasSetPosition=e!==null,this._originalUserPosition=e)}connectedCallback(){super.connectedCallback(),this.id||(this.id=`nys-tooltip-${Date.now()}-${v2++}`),window.addEventListener("keydown",this._handleEscapeKey)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._handleEscapeKey)}get _firstAssignedEl(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}firstUpdated(){const e=this._firstAssignedEl;e&&this._applyFocusBehavior(e)}updated(e){super.updated(e);const t=this._firstAssignedEl;t&&e.has("text")&&this._passAriaDescription(t)}_addScrollListeners(){window.addEventListener("scroll",this._handleScrollOrResize,!0),window.addEventListener("resize",this._handleScrollOrResize)}_removeScrollListeners(){window.removeEventListener("scroll",this._handleScrollOrResize,!0),window.removeEventListener("resize",this._handleScrollOrResize)}_passAriaDescription(e){e.tagName.toLowerCase().startsWith("nys-")&&e.setAttribute("ariaDescription",this.text)}async _applyFocusBehavior(e){var o;if(!this.focusable)return;if(e.tagName.toLowerCase()==="nys-icon"){"updateComplete"in e&&await e.updateComplete;const s=(o=e.shadowRoot)==null?void 0:o.querySelector("svg");s&&s.setAttribute("tabindex","0")}else e.setAttribute("tabindex","0")}_doesPositionFit(e){var u,p;const t=(u=this.shadowRoot)==null?void 0:u.querySelector(".nys-tooltip__wrapper"),o=(p=this.shadowRoot)==null?void 0:p.querySelector(".nys-tooltip__content");if(!t||!o||e==null)return;const s=t.getBoundingClientRect(),r=o.getBoundingClientRect(),i=8,c={top:s.top-i,left:s.left-i,bottom:window.innerHeight-s.bottom-i,right:window.innerWidth-s.right-i};return{top:c.top>=r.height,bottom:c.bottom>=r.height,left:c.left>=r.width,right:c.right>=r.width}[e]}async autoPositionTooltip(){var u,p;const e=(u=this.shadowRoot)==null?void 0:u.querySelector(".nys-tooltip__wrapper"),t=(p=this.shadowRoot)==null?void 0:p.querySelector(".nys-tooltip__content");if(!e||!t)return;const o=e.getBoundingClientRect(),s=8,r={top:o.top-s,left:o.left-s,bottom:window.innerHeight-o.bottom-s,right:window.innerWidth-o.right-s};let i=["top","bottom","right","left"];if(this._userHasSetPosition&&this._originalUserPosition){const d=this._originalUserPosition;d==="left"?i=["left","right","top","bottom"]:d==="right"?i=["right","left","top","bottom"]:d==="top"?i=["top","bottom","right","left"]:d==="bottom"&&(i=["bottom","top","right","left"])}for(const d of i)if(this._doesPositionFit(d)){this._setInternalPosition(d),await this.updateComplete,this._shiftTooltipIntoViewport(t);return}let c="top",h=r.top;for(const d of i)r[d]>h&&(h=r[d],c=d);this._setInternalPosition(c),await this.updateComplete,this._shiftTooltipIntoViewport(t)}_setInternalPosition(e){this._internallyUpdatingPosition=!0,this.position=e,this._internallyUpdatingPosition=!1}_shiftTooltipIntoViewport(e){var p;const t=e.getBoundingClientRect(),s=((p=this.shadowRoot)==null?void 0:p.querySelector(".nys-tooltip__wrapper")).getBoundingClientRect(),r=s.left+s.width/2,i=t.left<0,c=t.right>window.innerWidth;this._resetTooltipPositioningStyles(e),i?(e.style.left="0px",e.style.transform="none"):c&&(e.style.right="0px",e.style.left="auto",e.style.transform="none");const h=e.getBoundingClientRect(),u=r-h.left;e.style.setProperty("--arrow-offset-x",`${u}px`)}_resetTooltipPositioningStyles(e){e.style.left="",e.style.right="",e.style.transform=""}render(){var e;return l`
|
|
4028
|
+
<div class="nys-tooltip__main">
|
|
4029
|
+
<div
|
|
4030
|
+
class="nys-tooltip__wrapper"
|
|
4031
|
+
@mouseenter=${this._handleTooltipEnter}
|
|
4032
|
+
@mouseleave=${this._handleBlurOrMouseLeave}
|
|
4033
|
+
@focusin=${this._handleTooltipEnter}
|
|
4034
|
+
@focusout=${this._handleBlurOrMouseLeave}
|
|
4035
|
+
>
|
|
4036
|
+
<span class="nys-tooltip__trigger">
|
|
4037
|
+
<slot></slot>
|
|
4038
|
+
</span>
|
|
4039
|
+
</div>
|
|
4040
|
+
${(e=this.text)!=null&&e.trim()?l`<div
|
|
4041
|
+
id=${this.id}
|
|
4408
4042
|
class="nys-tooltip__content"
|
|
4409
4043
|
role="tooltip"
|
|
4410
4044
|
aria-hidden=${!this._active}
|
|
@@ -4414,7 +4048,7 @@ ${this.value}</textarea
|
|
|
4414
4048
|
<span class="nys-tooltip__arrow"></span>
|
|
4415
4049
|
</div>`:""}
|
|
4416
4050
|
</div>
|
|
4417
|
-
`}};
|
|
4051
|
+
`}};ne.styles=p2;let W=ne;S1([n({type:String})],W.prototype,"id",2),S1([n({type:String})],W.prototype,"text",2),S1([n({type:Boolean,reflect:!0})],W.prototype,"inverted",2),S1([n({type:Boolean,reflect:!0})],W.prototype,"focusable",2),S1([N()],W.prototype,"_active",2),S1([n({type:String,reflect:!0})],W.prototype,"position",1),customElements.get("nys-tooltip")||customElements.define("nys-tooltip",W);const C2=_`
|
|
4418
4052
|
:host {
|
|
4419
4053
|
/* Global Unav Header Styles */
|
|
4420
4054
|
--_nys-unavheader-gutter: var(--nys-gutter-xs, 20px);
|
|
@@ -4761,7 +4395,7 @@ ${this.value}</textarea
|
|
|
4761
4395
|
display: none;
|
|
4762
4396
|
}
|
|
4763
4397
|
}
|
|
4764
|
-
`,
|
|
4398
|
+
`,_2=`<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
4765
4399
|
<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"/>
|
|
4766
4400
|
<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"/>
|
|
4767
4401
|
<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"/>
|
|
@@ -4777,7 +4411,7 @@ ${this.value}</textarea
|
|
|
4777
4411
|
<path d="M51.7107 54.9999C51.577 54.9999 51.4335 54.974 51.2939 54.8965C51.085 54.7803 50.9395 54.5876 50.8858 54.3551C50.8233 54.0868 50.8936 53.7868 51.082 53.5116L51.1426 53.4202C51.2041 53.3268 51.2685 53.2354 51.3407 53.1519C51.4218 53.0595 51.5047 52.995 51.5741 52.9493C51.5243 52.6691 51.5418 52.4267 51.5682 52.2061C51.5877 52.0233 51.6346 51.8683 51.6726 51.7451C51.6892 51.6925 51.7058 51.6388 51.7185 51.5812C51.8201 51.145 51.8855 50.7397 51.9206 50.3453C51.9528 49.9916 51.947 49.9846 51.8864 49.9061C51.7 49.6707 51.3847 49.5018 51.0498 49.3229C50.8878 49.2365 50.7286 49.1491 50.5754 49.0557C49.607 48.4536 48.6376 47.8505 47.6701 47.2465L47.3294 47.0339C47.2513 46.9862 47.1147 46.9156 46.9516 46.8282C45.8817 46.2659 45.172 45.8526 45.0539 45.2595C45.0363 45.173 44.9465 44.9644 44.884 44.864C44.8411 44.8611 44.7307 44.8521 44.6546 44.8471C44.3032 44.8183 43.7711 44.7726 43.3484 44.3196C43.2635 44.2272 43.1786 44.1408 43.1005 44.0583C42.5098 43.4443 42.0003 42.9148 41.9329 41.5993C41.9241 41.4275 41.9251 41.2506 41.928 41.0728C41.9339 40.5283 41.927 40.1836 41.7103 39.962C41.6078 39.8567 41.435 39.7862 41.2349 39.7037C40.9889 39.6034 40.7097 39.4881 40.45 39.2686C40.37 39.2 40.2792 39.1007 40.1776 38.9854C40.0712 38.8602 39.9082 38.6724 39.7969 38.6337C38.974 38.3436 37.986 38.3178 36.96 38.3178L3.07245 38.2909C2.85964 38.2909 2.66927 38.3138 2.48477 38.3347C2.07378 38.3823 1.60812 38.437 1.2313 38.0962C0.866192 37.7664 0.815429 37.2607 0.814452 36.8076L0.8125 34.3993C0.8125 34.2722 0.847644 34.147 0.913051 34.0387C1.22544 33.529 1.83265 33.2558 2.3686 33.0144C2.56872 32.924 2.77666 32.8316 2.88795 32.7571C3.17593 32.5623 3.43561 32.302 3.7109 32.0248C3.91688 31.8182 4.13068 31.6046 4.36887 31.4059C4.69786 31.1317 5.07078 30.931 5.43296 30.7372C5.74535 30.5703 6.03821 30.4124 6.24127 30.2395C6.38575 30.1173 6.49216 29.9146 6.61906 29.6792C6.75476 29.4238 6.90998 29.1337 7.15208 28.8804C7.41273 28.6081 7.7427 28.4194 8.03263 28.2535C8.69744 27.871 8.68182 27.8322 8.57736 27.5769C8.52855 27.4577 8.48072 27.3553 8.43972 27.2639C8.24447 26.8357 8.07754 26.4681 8.19078 25.7051C8.2025 25.6306 8.21616 25.5521 8.22983 25.4706C8.25619 25.3325 8.30305 25.0772 8.27571 25.0037C8.27571 25.0037 8.26204 24.9927 8.23471 24.9778C8.21128 24.9659 8.12928 24.9669 8.06875 24.9679C7.87448 24.9659 7.51914 24.9768 7.2497 24.6689C6.98124 24.3629 6.99686 23.9555 7.03982 23.6356C7.08179 23.3127 7.06032 23.1051 7.03982 22.9223C6.95684 22.1453 7.21358 21.7817 8.10097 21.424C10.7524 20.351 12.901 19.9884 14.8613 20.2805C14.9775 20.2974 15.1356 20.2656 15.3182 20.2269C15.5944 20.1702 15.9351 20.1017 16.312 20.1752L18.3952 20.5766C19.2475 20.7415 19.6653 20.9054 20.3047 21.4995C20.6327 21.8046 20.7655 21.7718 21.3327 21.5661C21.6168 21.4638 21.9399 21.3485 22.3323 21.2949C22.9727 21.2084 23.5731 21.2661 24.153 21.3227C24.4136 21.3475 24.6762 21.3734 24.9408 21.3843C25.2356 21.3952 25.6085 21.2561 25.9717 21.121C26.1318 21.0614 26.2889 21.0028 26.4412 20.9541C26.78 20.8468 27.0973 20.7991 27.4038 20.7514C27.5551 20.7266 27.7064 20.7037 27.8607 20.6729C27.8714 20.6531 27.8821 20.6332 27.8939 20.6113C27.9417 20.5249 27.9944 20.4345 28.0598 20.3411C28.3419 19.9497 28.7471 19.7003 29.0722 19.4966L29.2078 19.4122C29.5564 19.1916 29.8629 18.9879 30.105 18.7386C30.5423 18.2796 31.1232 18.3114 31.5108 18.3312C31.6455 18.3392 31.8495 18.3481 31.91 18.3223C32.1678 18.207 31.9413 17.3993 31.8065 16.9165C31.7119 16.5777 31.6299 16.2846 31.6133 16.0183C31.5664 15.2642 31.9764 14.7317 32.3064 14.3045C32.5651 13.9687 32.7213 13.7481 32.7164 13.5355C32.7164 13.4948 32.7027 13.4382 32.6851 13.3845C32.4587 13.4948 32.0955 13.6369 31.6796 13.4421C31.0129 13.1302 30.6468 12.0264 30.8508 11.3985C31.0197 10.8779 31.54 10.5421 31.9198 10.2957L32.0565 10.2053C32.3806 9.98471 32.7242 9.79792 33.0542 9.6181C33.5159 9.36873 33.9513 9.13227 34.2949 8.82726C34.4404 8.69711 34.5761 8.56994 34.7089 8.44376C35.0076 8.1626 35.3161 7.8715 35.6792 7.61319C35.7056 7.5188 35.728 7.34096 35.7437 7.22571C35.7729 7.00714 35.8022 6.78062 35.8803 6.5849C36.2513 5.64304 37.1592 4.90884 37.9597 4.25908C38.2252 4.04448 38.4771 3.84081 38.6743 3.65602C38.7992 3.53878 38.9222 3.42055 39.0452 3.30332C39.6388 2.73701 40.2509 2.15084 40.9967 1.68289C41.601 1.30536 42.3898 0.833439 43.1249 0.552274C44.0972 0.1807 44.5579 0.208518 45.4766 0.262168L45.6474 0.27111C47.3607 0.371455 49.1384 0.32476 50.8575 0.281045C51.7205 0.258194 52.5796 0.235343 53.4347 0.230376C53.6651 0.230376 54.0156 0.185667 54.3836 0.138972C55.6078 -0.0140291 56.994 -0.188888 57.7818 0.503592C58.1118 0.792705 58.2924 1.19806 58.3031 1.67594C58.311 2.05248 58.1567 2.33464 58.0435 2.54129C58.0064 2.60686 57.9527 2.7082 57.9458 2.74297C57.9488 2.73205 57.9849 2.78768 58.0103 2.82742C58.1362 3.01718 58.3686 3.37088 58.2748 3.89843C58.2397 4.10111 58.1811 4.3167 58.1216 4.53528C58.0464 4.81147 57.9693 5.09761 57.9624 5.31419C57.9498 5.69073 57.6335 5.99376 57.2703 5.97289C56.9013 5.95998 56.6104 5.64603 56.6231 5.26849C56.6367 4.89195 56.7392 4.50944 56.831 4.17264C56.8788 3.9948 56.9276 3.82094 56.9569 3.65502C56.9481 3.65502 56.9218 3.62323 56.8993 3.58746C56.791 3.42254 56.6065 3.14535 56.6065 2.73701C56.6065 2.36345 56.7607 2.08328 56.873 1.87862C56.9072 1.81702 56.9589 1.72462 56.9657 1.69084C56.9608 1.58354 56.9267 1.55274 56.9072 1.53685C56.5694 1.23979 55.2544 1.40372 54.5496 1.49313C54.1386 1.5438 53.752 1.59348 53.4435 1.59547C52.5971 1.60043 51.7439 1.62229 50.8907 1.64315C49.1442 1.68886 47.3382 1.73654 45.5722 1.63421L45.3985 1.62328C44.5345 1.57162 44.3022 1.55871 43.5964 1.82894C42.9618 2.07235 42.2101 2.5244 41.7006 2.84431C41.0699 3.23973 40.533 3.75338 39.9648 4.29683C39.8379 4.41804 39.712 4.53925 39.5831 4.65947C39.3479 4.87804 39.0794 5.09661 38.7953 5.32611C38.1237 5.87056 37.3642 6.48555 37.1231 7.09457C37.1065 7.14425 37.085 7.30221 37.0713 7.40753C37.0147 7.84666 36.9424 8.3931 36.5041 8.69016C36.1927 8.90277 35.9145 9.16704 35.6187 9.44523C35.4771 9.57935 35.3317 9.71546 35.1774 9.85257C34.7186 10.2629 34.1924 10.548 33.6838 10.8222C33.3675 10.9931 33.0698 11.1541 32.8033 11.3369C32.7554 11.3707 32.6978 11.4064 32.6373 11.4462C32.5114 11.5276 32.2332 11.7065 32.1346 11.8217C32.1424 11.8992 32.1726 12.0115 32.2117 12.1009C32.3757 12.0214 32.6041 11.924 32.8804 11.9459C33.6633 12.0135 34.0401 12.8937 34.0558 13.4988C34.0743 14.2191 33.677 14.7337 33.3587 15.145C33.0971 15.4868 32.9351 15.7074 32.9487 15.9319C32.9565 16.0511 33.0288 16.3114 33.0932 16.5419C33.3314 17.3933 33.7746 18.978 32.4479 19.5701C32.0965 19.7281 31.7314 19.7082 31.4375 19.6933C31.3126 19.6864 31.1046 19.6764 31.047 19.7023C30.7171 20.051 30.3227 20.3113 29.9166 20.5706L29.7692 20.663C29.5212 20.816 29.2654 20.976 29.1405 21.1488C29.1083 21.1935 29.0819 21.2412 29.0585 21.2859C28.9345 21.5085 28.7256 21.884 28.174 21.9993C27.9827 22.04 27.7943 22.0708 27.6059 22.0996C27.3364 22.1414 27.0807 22.1811 26.8386 22.2566C26.7087 22.2993 26.5711 22.35 26.4334 22.4017C25.9697 22.5745 25.4435 22.7732 24.8871 22.7474C24.5981 22.7355 24.3131 22.7087 24.027 22.6808C23.4989 22.6282 22.9981 22.5805 22.511 22.6481C22.2572 22.6828 22.0258 22.7653 21.7817 22.8537C21.1716 23.0733 20.3369 23.3733 19.4046 22.508C18.9927 22.1265 18.8267 22.049 18.1473 21.9178L16.065 21.5164C15.942 21.4936 15.775 21.5264 15.5818 21.5651C15.3289 21.6168 15.0136 21.6784 14.6719 21.6297C12.9508 21.3724 11.0218 21.7112 8.59689 22.6928C8.49829 22.7325 8.42703 22.7643 8.37431 22.7891C8.39579 22.9779 8.42312 23.2491 8.39091 23.6217C8.53343 23.6416 8.69353 23.6843 8.86047 23.7737C9.81228 24.2834 9.63461 25.256 9.5487 25.724C9.53601 25.7876 9.52528 25.8511 9.51551 25.9127C9.4628 26.2694 9.49501 26.3429 9.65511 26.6917C9.70392 26.798 9.75664 26.9162 9.81326 27.0543C10.3941 28.4681 9.28415 29.1039 8.68865 29.4447C8.46705 29.5719 8.23764 29.701 8.11268 29.8331C7.99944 29.9524 7.89987 30.1372 7.79541 30.3329C7.62945 30.6448 7.44104 30.9975 7.10522 31.2847C6.79088 31.5529 6.41894 31.7536 6.05871 31.9454C5.74144 32.1153 5.44077 32.2762 5.21623 32.464C5.02782 32.6219 4.84527 32.8048 4.65295 32.9985C4.34252 33.3085 4.02524 33.6294 3.62499 33.8976C3.41901 34.0347 3.17203 34.147 2.9104 34.2652C2.69661 34.3606 2.33443 34.5225 2.14992 34.6626L2.15383 36.8096C2.15383 36.8881 2.15578 36.9527 2.15871 37.0023C2.21533 36.9974 2.27586 36.9904 2.32662 36.9835C2.5287 36.9606 2.77959 36.9308 3.06952 36.9308L36.9581 36.9566C38.0573 36.9566 39.2141 36.9884 40.2304 37.3471C40.6755 37.5021 40.9801 37.8538 41.1812 38.0853C41.2281 38.1399 41.2681 38.1896 41.3052 38.2234C41.4018 38.3048 41.5551 38.3674 41.7328 38.441C42.0129 38.5562 42.3615 38.7003 42.6572 39.0043C43.2811 39.6411 43.2713 40.4469 43.2645 41.0927C43.2606 41.2417 43.2606 41.3897 43.2664 41.5328C43.3084 42.3326 43.5261 42.5581 44.0532 43.1055C44.1372 43.1929 44.2251 43.2853 44.3188 43.3847C44.3842 43.4542 44.5287 43.4701 44.761 43.491C45.0412 43.5138 45.3897 43.5417 45.6953 43.7751C46.0291 44.0275 46.2546 44.5888 46.3376 44.8809C46.5455 45.0846 47.2777 45.4711 47.5647 45.6211C47.7639 45.7264 47.9298 45.8158 48.0265 45.8754L48.3672 46.088C49.3346 46.6891 50.3011 47.2922 51.2705 47.8943C51.3993 47.9727 51.533 48.0463 51.6707 48.1188C52.0924 48.3443 52.5698 48.6006 52.9291 49.0567C53.3215 49.5544 53.2942 50.0045 53.259 50.4029C53.3156 50.2936 53.3781 50.1893 53.4513 50.0879C53.5841 49.8982 53.7393 49.7541 53.877 49.626C54.0136 49.4998 54.1073 49.4104 54.1396 49.3388C54.1132 49.2772 54.0527 49.1739 54.0117 49.1034C53.8487 48.8232 53.6271 48.4387 53.7315 47.9857C53.7725 47.8108 53.8789 47.6588 54.0283 47.5634C54.0849 47.5276 54.205 47.4591 54.3631 47.3717C54.5818 47.2495 55.1373 46.9405 55.475 46.71C54.9723 45.5913 55.1392 44.2163 55.2886 42.9843C55.3345 42.6038 55.3784 42.2451 55.3989 41.9222C55.4204 41.5467 55.7337 41.2606 56.1076 41.2834C56.4776 41.3063 56.7588 41.6301 56.7353 42.0057C56.7148 42.3693 56.667 42.7498 56.6182 43.1522C56.4776 44.3166 56.3165 45.637 56.833 46.3911C56.954 46.5669 56.994 46.7895 56.9452 47.0021C56.8417 47.4502 56.3898 47.7879 55.1958 48.4606C55.352 48.7308 55.5395 49.0904 55.4731 49.5167C55.4623 49.5812 55.4487 49.6428 55.4321 49.7015C55.766 49.5793 56.1154 49.464 56.4845 49.3577C57.8775 48.9543 59.3409 48.7745 61.225 48.7745C62.0587 48.7745 62.8006 48.5053 63.5874 48.2211C64.2103 47.9946 64.8546 47.7621 65.576 47.6508C66.1852 47.5555 66.5005 47.7562 66.7728 47.9688C66.8636 48.0403 66.93 48.09 67.0442 48.1357C67.3625 48.2619 67.7325 48.2211 68.1601 48.1754C68.5925 48.1277 69.0836 48.0731 69.5844 48.2042C69.8821 48.2837 70.09 48.5579 70.0861 48.8709C70.0744 50.0571 68.5076 50.5459 67.7549 50.7814L67.0384 51.0099C66.4985 51.1848 65.9567 51.3586 65.41 51.5176C65.1631 51.5881 64.918 51.6587 64.672 51.7223C64.3889 51.7948 64.099 51.9597 63.7944 52.1316C63.481 52.3094 63.1579 52.4922 62.786 52.6174C62.1426 52.83 61.4837 52.9413 60.6471 52.9761C60.4069 52.987 60.1746 53.0943 59.9295 53.2056C59.5674 53.3735 59.1154 53.5801 58.6107 53.4132C58.3949 53.3864 57.5534 53.6775 57.1502 53.8196C56.832 53.9289 56.5577 54.0242 56.3419 54.0759C55.598 54.2528 54.8415 54.3918 54.1103 54.527L53.5968 54.6223C53.1516 54.7058 52.7035 54.7922 52.2613 54.8926L52.2076 54.9085C52.0797 54.9482 51.9021 55.0038 51.7078 55.0038L51.7107 54.9999ZM53.0735 51.6746C53.0569 51.7471 53.0403 51.8196 53.0237 51.8941C53.0032 51.9806 52.9788 52.064 52.9544 52.1455C52.9281 52.2359 52.9066 52.3055 52.8988 52.3651C52.8793 52.5379 52.8773 52.6313 52.8978 52.7247C52.9495 52.9791 52.9388 53.1907 52.8949 53.3645C53.0482 53.3347 53.2024 53.3049 53.3566 53.2751L53.875 53.1808C54.5896 53.0486 55.3296 52.9125 56.0412 52.7436C56.1906 52.7078 56.4483 52.6194 56.7217 52.525C57.7721 52.1604 58.4994 51.9359 59.0295 52.1127C59.0646 52.1058 59.2559 52.0173 59.3828 51.9597C59.7001 51.8137 60.0945 51.6328 60.5924 51.611C61.3021 51.5812 61.8498 51.4908 62.372 51.3169C62.622 51.2345 62.8748 51.0914 63.1442 50.9374C63.5123 50.7298 63.892 50.5142 64.3469 50.3969C64.5793 50.3373 64.8136 50.2707 65.0459 50.2042C65.5789 50.0482 66.11 49.8773 66.6362 49.7064L67.1253 49.5514C66.9388 49.5246 66.7504 49.4779 66.56 49.4014C66.2672 49.2862 66.0836 49.1411 65.9616 49.0457C65.9313 49.0229 65.906 48.999 65.8757 48.9812C65.8737 48.9851 65.8405 48.9851 65.7781 48.9941C65.1845 49.0855 64.6281 49.2862 64.0394 49.4998C63.1794 49.8107 62.293 50.1326 61.2279 50.1326C59.4717 50.1326 58.1235 50.2966 56.8535 50.6642C55.7142 50.992 54.7868 51.3984 54.0166 51.9031C53.7901 52.0521 53.5001 52.0481 53.2776 51.8951C53.1917 51.8365 53.1214 51.76 53.0735 51.6716V51.6746Z" fill="#154973"/>
|
|
4778
4412
|
<path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="#154973"/>
|
|
4779
4413
|
<path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="#154973"/>
|
|
4780
|
-
</svg>`;var
|
|
4414
|
+
</svg>`;var b2=Object.defineProperty,b1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&b2(e,t,s),s};const ae=class ae extends g{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(_2,"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(e){var t;if(e.key==="Escape"&&(this._handleSearchBlur(),e.target.blur()),e.key==="Enter"){const o=(t=e.target.value)==null?void 0:t.trim();o!==""&&this._handleSearch(o)}}_handleSearchButton(e){var s,r;const o=(r=((s=this.shadowRoot)==null?void 0:s.getElementById(e)).value)==null?void 0:r.trim();o!==""&&this._handleSearch(o)}_handleSearch(e){window.location.href=`https://search.its.ny.gov/search/search.html?btnG=Search&client=default_frontend&output=xml_no_dtd&proxystylesheet=default_frontend&ulang=en&sort=date:D:L:d1&entqr=3&entqrm=0&wc=200&wc_mc=1&oe=UTF-8&ie=UTF-8&ud=1&site=default_collection&q=${e}+inurl:${window.location.hostname}&site=default_collection`}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){return l`
|
|
4781
4415
|
<header class="nys-unavheader">
|
|
4782
4416
|
<div class="nys-unavheader__trustbarwrapper">
|
|
4783
4417
|
<div
|
|
@@ -4873,7 +4507,7 @@ ${this.value}</textarea
|
|
|
4873
4507
|
</div>
|
|
4874
4508
|
</div>
|
|
4875
4509
|
<div class="nys-unavheader__right">
|
|
4876
|
-
${this.hideTranslate?null:
|
|
4510
|
+
${this.hideTranslate?null:l`<div class="nys-unavheader__translatewrapper">
|
|
4877
4511
|
<div
|
|
4878
4512
|
class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
|
|
4879
4513
|
>
|
|
@@ -4893,7 +4527,7 @@ ${this.value}</textarea
|
|
|
4893
4527
|
></nys-icon>
|
|
4894
4528
|
</nys-button>
|
|
4895
4529
|
</div>
|
|
4896
|
-
${this.isSearchFocused?null:
|
|
4530
|
+
${this.isSearchFocused?null:l`<div class="nys-unavheader--lg nys-unavheader--xl">
|
|
4897
4531
|
<nys-button
|
|
4898
4532
|
variant="ghost"
|
|
4899
4533
|
label="Translate"
|
|
@@ -4907,7 +4541,7 @@ ${this.value}</textarea
|
|
|
4907
4541
|
<div
|
|
4908
4542
|
class="nys-unavheader__languagelist ${this.languageVisible?"show":"hide"}"
|
|
4909
4543
|
>
|
|
4910
|
-
${this.languages.map(([e,t])=>
|
|
4544
|
+
${this.languages.map(([e,t])=>l`<a
|
|
4911
4545
|
class="nys-unavheader__languagelink"
|
|
4912
4546
|
target="_self"
|
|
4913
4547
|
href="https://${t?t+".":""}${window.location.hostname}"
|
|
@@ -4915,7 +4549,7 @@ ${this.value}</textarea
|
|
|
4915
4549
|
>`)}
|
|
4916
4550
|
</div>
|
|
4917
4551
|
</div>`}
|
|
4918
|
-
${this.hideSearch?null:
|
|
4552
|
+
${this.hideSearch?null:l` <div
|
|
4919
4553
|
class="nys-unavheader--xs nys-unavheader--sm nys-unavheader--md"
|
|
4920
4554
|
>
|
|
4921
4555
|
<nys-button
|
|
@@ -4948,6 +4582,7 @@ ${this.value}</textarea
|
|
|
4948
4582
|
slot="endButton"
|
|
4949
4583
|
type="submit"
|
|
4950
4584
|
prefixIcon="search"
|
|
4585
|
+
ariaLabel="Search"
|
|
4951
4586
|
.onClick="${()=>this._handleSearchButton("nys-unavheader__searchbar")}"
|
|
4952
4587
|
></nys-button
|
|
4953
4588
|
></nys-textinput>
|
|
@@ -4972,13 +4607,14 @@ ${this.value}</textarea
|
|
|
4972
4607
|
slot="endButton"
|
|
4973
4608
|
type="submit"
|
|
4974
4609
|
prefixIcon="search"
|
|
4610
|
+
ariaLabel="Search"
|
|
4975
4611
|
.onClick="${()=>this._handleSearchButton("nys-unavheader__searchbardropdown")}"
|
|
4976
4612
|
></nys-button
|
|
4977
4613
|
></nys-textinput>
|
|
4978
4614
|
</div>
|
|
4979
4615
|
</div>
|
|
4980
4616
|
</header>
|
|
4981
|
-
`}};
|
|
4617
|
+
`}};ae.styles=C2;let q=ae;b1([n({type:Boolean})],q.prototype,"trustbarVisible"),b1([n({type:Boolean})],q.prototype,"searchDropdownVisible"),b1([n({type:Boolean})],q.prototype,"languageVisible"),b1([n({type:Boolean})],q.prototype,"isSearchFocused"),b1([n({type:Boolean})],q.prototype,"hideTranslate"),b1([n({type:Boolean})],q.prototype,"hideSearch"),b1([n({type:String,reflect:!0})],q.prototype,"languages"),customElements.get("nys-unavheader")||customElements.define("nys-unavheader",q);const m2=_`
|
|
4982
4618
|
:host {
|
|
4983
4619
|
/* Global Header Styles */
|
|
4984
4620
|
--_nys-globalheader-text-color: var(
|
|
@@ -5258,10 +4894,10 @@ ${this.value}</textarea
|
|
|
5258
4894
|
--_nys-globalheader-gutter: var(--nys-gutter-xl, 64px);
|
|
5259
4895
|
}
|
|
5260
4896
|
}
|
|
5261
|
-
`;var
|
|
4897
|
+
`;var x2=Object.defineProperty,I1=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&x2(e,t,s),s};const le=class le extends g{constructor(){super(...arguments),this.appName="",this.agencyName="",this.homepageLink="",this.slotHasContent=!0,this.isMobileMenuOpen=!1}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var r,i,c;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e==null?void 0:e.assignedNodes({flatten:!0}).filter(h=>h.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=t.length>0;const o=(i=this.shadowRoot)==null?void 0:i.querySelector(".nys-globalheader__content"),s=(c=this.shadowRoot)==null?void 0:c.querySelector(".nys-globalheader__content-mobile");o&&s&&(o.innerHTML="",s.innerHTML="",t.forEach(h=>{if(h.nodeType===Node.ELEMENT_NODE){const u=h.cloneNode(!0),p=h.cloneNode(!0);["script","iframe","object","embed, img"].forEach(T=>{u.querySelectorAll(T).forEach(K=>K.remove())}),o.appendChild(u),s.appendChild(p),h.remove()}}))}_toggleMobileMenu(){this.isMobileMenuOpen=!this.isMobileMenuOpen}render(){var e,t,o,s,r,i,c,h;return l`
|
|
5262
4898
|
<header class="nys-globalheader">
|
|
5263
4899
|
<div class="nys-globalheader__main-container">
|
|
5264
|
-
${this.slotHasContent?
|
|
4900
|
+
${this.slotHasContent?l` <div class="nys-globalheader__button-container">
|
|
5265
4901
|
<button
|
|
5266
4902
|
class="nys-globalheader__mobile-menu-button"
|
|
5267
4903
|
@click="${this._toggleMobileMenu}"
|
|
@@ -5276,37 +4912,37 @@ ${this.value}</textarea
|
|
|
5276
4912
|
>
|
|
5277
4913
|
</button>
|
|
5278
4914
|
</div>`:""}
|
|
5279
|
-
${(e=this.homepageLink)!=null&&e.trim()?
|
|
4915
|
+
${(e=this.homepageLink)!=null&&e.trim()?l`<a
|
|
5280
4916
|
class="nys-globalheader__name-container-link"
|
|
5281
4917
|
href=${(r=this.homepageLink)==null?void 0:r.trim()}
|
|
5282
4918
|
>
|
|
5283
4919
|
<div class="nys-globalheader__name-container">
|
|
5284
|
-
${((
|
|
4920
|
+
${((i=this.appName)==null?void 0:i.trim().length)>0?l`<div
|
|
5285
4921
|
class="nys-globalheader__appName nys-globalheader__name"
|
|
5286
4922
|
>
|
|
5287
4923
|
${this.appName}
|
|
5288
4924
|
</div> `:""}
|
|
5289
|
-
${((
|
|
5290
|
-
class="nys-globalheader__agencyName nys-globalheader__name ${((
|
|
4925
|
+
${((c=this.agencyName)==null?void 0:c.trim().length)>0?l`<div
|
|
4926
|
+
class="nys-globalheader__agencyName nys-globalheader__name ${((h=this.appName)==null?void 0:h.trim().length)>0?"":"main"}"
|
|
5291
4927
|
>
|
|
5292
4928
|
${this.agencyName}
|
|
5293
4929
|
</div> `:""}
|
|
5294
4930
|
</div>
|
|
5295
|
-
</a>`:
|
|
4931
|
+
</a>`:l`
|
|
5296
4932
|
<div class="nys-globalheader__name-container">
|
|
5297
|
-
${((t=this.appName)==null?void 0:t.trim().length)>0?
|
|
4933
|
+
${((t=this.appName)==null?void 0:t.trim().length)>0?l`<div
|
|
5298
4934
|
class="nys-globalheader__appName nys-globalheader__name"
|
|
5299
4935
|
>
|
|
5300
4936
|
${this.appName}
|
|
5301
4937
|
</div> `:""}
|
|
5302
|
-
${((o=this.agencyName)==null?void 0:o.trim().length)>0?
|
|
4938
|
+
${((o=this.agencyName)==null?void 0:o.trim().length)>0?l`<div
|
|
5303
4939
|
class="nys-globalheader__agencyName nys-globalheader__name ${((s=this.appName)==null?void 0:s.trim().length)>0?"":"main"}"
|
|
5304
4940
|
>
|
|
5305
4941
|
${this.agencyName}
|
|
5306
4942
|
</div> `:""}
|
|
5307
4943
|
</div>
|
|
5308
4944
|
`}
|
|
5309
|
-
${this.slotHasContent?
|
|
4945
|
+
${this.slotHasContent?l`<div class="nys-globalheader__content">
|
|
5310
4946
|
<slot
|
|
5311
4947
|
style="display: hidden"
|
|
5312
4948
|
@slotchange="${this._handleSlotChange}"
|
|
@@ -5317,7 +4953,7 @@ ${this.value}</textarea
|
|
|
5317
4953
|
<div
|
|
5318
4954
|
class="nys-globalheader__content-mobile ${this.isMobileMenuOpen?"":"close"}"
|
|
5319
4955
|
></div>
|
|
5320
|
-
`}};
|
|
4956
|
+
`}};le.styles=m2;let Q=le;I1([n({type:String})],Q.prototype,"appName"),I1([n({type:String})],Q.prototype,"agencyName"),I1([n({type:String})],Q.prototype,"homepageLink"),I1([N()],Q.prototype,"slotHasContent"),I1([N()],Q.prototype,"isMobileMenuOpen"),customElements.get("nys-globalheader")||customElements.define("nys-globalheader",Q);const w2=_`
|
|
5321
4957
|
:host {
|
|
5322
4958
|
/* Global Footer Styles */
|
|
5323
4959
|
--_nys-globalfooter-text-color: var(
|
|
@@ -5472,13 +5108,13 @@ ${this.value}</textarea
|
|
|
5472
5108
|
--_nys-globalfooter-gutter: var(--nys-gutter-xl, 64px);
|
|
5473
5109
|
}
|
|
5474
5110
|
}
|
|
5475
|
-
`;var
|
|
5111
|
+
`;var k2=Object.defineProperty,te=(a,e,t,o)=>{for(var s=void 0,r=a.length-1,i;r>=0;r--)(i=a[r])&&(s=i(e,t,s)||s);return s&&k2(e,t,s),s};const ce=class ce extends g{constructor(){super(...arguments),this.agencyName="",this.homepageLink="",this.slotHasContent=!0}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",()=>this._handleSlotChange()),this._handleSlotChange()}async _handleSlotChange(){var r,i;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e==null?void 0:e.assignedNodes({flatten:!0}).filter(c=>c.nodeType===Node.ELEMENT_NODE);await Promise.resolve(),this.slotHasContent=t.length>0;const o=(i=this.shadowRoot)==null?void 0:i.querySelector(".nys-globalfooter__content"),s=t==null?void 0:t.some(c=>c.tagName==="H4");o&&(o.classList.toggle("columns",s),o.classList.toggle("small",!s),o.innerHTML="",t.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const h=c.cloneNode(!0);["script","iframe","object","embed","img"].forEach(p=>{h.querySelectorAll(p).forEach(d=>d.remove())}),o.appendChild(h),c.remove()}}))}render(){var e,t;return l`
|
|
5476
5112
|
<footer class="nys-globalfooter">
|
|
5477
5113
|
<div class="nys-globalfooter__main-container">
|
|
5478
|
-
${(e=this.homepageLink)!=null&&e.trim()?
|
|
5114
|
+
${(e=this.homepageLink)!=null&&e.trim()?l`<a href=${(t=this.homepageLink)==null?void 0:t.trim()}>
|
|
5479
5115
|
<p class="nys-globalfooter__name">${this.agencyName}</p>
|
|
5480
|
-
</a>`:
|
|
5481
|
-
${this.slotHasContent?
|
|
5116
|
+
</a>`:l`<p class="nys-globalfooter__name">${this.agencyName}</p>`}
|
|
5117
|
+
${this.slotHasContent?l`<div class="nys-globalfooter__content">
|
|
5482
5118
|
<slot
|
|
5483
5119
|
style="display: hidden"
|
|
5484
5120
|
@slotchange="${this._handleSlotChange}"
|
|
@@ -5486,7 +5122,7 @@ ${this.value}</textarea
|
|
|
5486
5122
|
</div>`:""}
|
|
5487
5123
|
</div>
|
|
5488
5124
|
</footer>
|
|
5489
|
-
`}};
|
|
5125
|
+
`}};ce.styles=w2;let m1=ce;te([n({type:String})],m1.prototype,"agencyName"),te([n({type:String})],m1.prototype,"homepageLink"),te([N()],m1.prototype,"slotHasContent"),customElements.get("nys-globalfooter")||customElements.define("nys-globalfooter",m1);const $2=_`
|
|
5490
5126
|
:host {
|
|
5491
5127
|
/* Global Footer Styles */
|
|
5492
5128
|
--_nys-unavfooter-link-color: var(
|
|
@@ -5642,7 +5278,7 @@ ${this.value}</textarea
|
|
|
5642
5278
|
--_nys-unavfooter-gutter: var(--nys-gutter-xl, 64px);
|
|
5643
5279
|
}
|
|
5644
5280
|
}
|
|
5645
|
-
`,
|
|
5281
|
+
`,S2=`<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
|
|
5646
5282
|
<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"/>
|
|
5647
5283
|
<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"/>
|
|
5648
5284
|
<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"/>
|
|
@@ -5658,7 +5294,7 @@ ${this.value}</textarea
|
|
|
5658
5294
|
<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"/>
|
|
5659
5295
|
<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"/>
|
|
5660
5296
|
<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"/>
|
|
5661
|
-
</svg>`,
|
|
5297
|
+
</svg>`,he=class he extends g{_getNysLogo(){return new DOMParser().parseFromString(S2,"image/svg+xml").documentElement}render(){return l`
|
|
5662
5298
|
<footer class="nys-unavfooter">
|
|
5663
5299
|
<div class="nys-unavfooter__main-container">
|
|
5664
5300
|
<div class="nys-unavfooter__container_menu">
|
|
@@ -5686,5 +5322,5 @@ ${this.value}</textarea
|
|
|
5686
5322
|
</div>
|
|
5687
5323
|
</div>
|
|
5688
5324
|
</footer>
|
|
5689
|
-
`}};
|
|
5325
|
+
`}};he.styles=$2;let O1=he;customElements.get("nys-unavfooter")||customElements.define("nys-unavfooter",O1),f.NysAlert=Se,f.NysAvatar=Le,f.NysBacktotop=g1,f.NysButton=Ee,f.NysCheckbox=Ve,f.NysCheckboxgroup=De,f.NysErrorMessage=v1,f.NysFileinput=$,f.NysGlobalFooter=m1,f.NysGlobalHeader=Q,f.NysIcon=ze,f.NysLabel=l1,f.NysOption=c1,f.NysRadiobutton=Ie,f.NysRadiogroup=Ae,f.NysSelect=Ze,f.NysSkipnav=$1,f.NysTextarea=Ue,f.NysTextinput=Pe,f.NysToggle=qe,f.NysTooltip=W,f.NysUnavFooter=O1,f.NysUnavHeader=q,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
|
|
5690
5326
|
//# sourceMappingURL=nysds.js.map
|