@nysds/nys-unavheader 1.11.2 → 1.11.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.
@@ -1,701 +1,6 @@
1
- import { css as L, LitElement as E, html as c } from "lit";
2
- /*!
3
- *
4
- * ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
5
- * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
6
- * ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
7
- *
8
- * Universal Navigation Header Component
9
- * Part of the New York State Design System
10
- * A design system for New York State's digital products.
11
- * Repository: https://github.com/its-hcd/nysds
12
- * License: MIT
13
- */
14
- /**
15
- * @license
16
- * Copyright 2019 Google LLC
17
- * SPDX-License-Identifier: BSD-3-Clause
18
- */
19
- const y = globalThis, g = y.ShadowRoot && (y.ShadyCSS === void 0 || y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, S = Symbol(), m = /* @__PURE__ */ new WeakMap();
20
- let k = class {
21
- constructor(e, t, s) {
22
- if (this._$cssResult$ = !0, s !== S) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
23
- this.cssText = e, this.t = t;
24
- }
25
- get styleSheet() {
26
- let e = this.o;
27
- const t = this.t;
28
- if (g && e === void 0) {
29
- const s = t !== void 0 && t.length === 1;
30
- s && (e = m.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && m.set(t, e));
31
- }
32
- return e;
33
- }
34
- toString() {
35
- return this.cssText;
36
- }
37
- };
38
- const A = (n) => new k(typeof n == "string" ? n : n + "", void 0, S), V = (n, e) => {
39
- if (g) n.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
40
- else for (const t of e) {
41
- const s = document.createElement("style"), a = y.litNonce;
42
- a !== void 0 && s.setAttribute("nonce", a), s.textContent = t.cssText, n.appendChild(s);
43
- }
44
- }, w = g ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
45
- let t = "";
46
- for (const s of e.cssRules) t += s.cssText;
47
- return A(t);
48
- })(n) : n;
49
- /**
50
- * @license
51
- * Copyright 2017 Google LLC
52
- * SPDX-License-Identifier: BSD-3-Clause
53
- */
54
- const { is: P, defineProperty: M, getOwnPropertyDescriptor: T, getOwnPropertyNames: H, getOwnPropertySymbols: z, getPrototypeOf: U } = Object, _ = globalThis, x = _.trustedTypes, O = x ? x.emptyScript : "", D = _.reactiveElementPolyfillSupport, p = (n, e) => n, C = { toAttribute(n, e) {
55
- switch (e) {
56
- case Boolean:
57
- n = n ? O : null;
58
- break;
59
- case Object:
60
- case Array:
61
- n = n == null ? n : JSON.stringify(n);
62
- }
63
- return n;
64
- }, fromAttribute(n, e) {
65
- let t = n;
66
- switch (e) {
67
- case Boolean:
68
- t = n !== null;
69
- break;
70
- case Number:
71
- t = n === null ? null : Number(n);
72
- break;
73
- case Object:
74
- case Array:
75
- try {
76
- t = JSON.parse(n);
77
- } catch {
78
- t = null;
79
- }
80
- }
81
- return t;
82
- } }, b = (n, e) => !P(n, e), $ = { attribute: !0, type: String, converter: C, reflect: !1, useDefault: !1, hasChanged: b };
83
- Symbol.metadata ??= Symbol("metadata"), _.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
84
- class u extends HTMLElement {
85
- static addInitializer(e) {
86
- this._$Ei(), (this.l ??= []).push(e);
87
- }
88
- static get observedAttributes() {
89
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
90
- }
91
- static createProperty(e, t = $) {
92
- if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
93
- const s = Symbol(), a = this.getPropertyDescriptor(e, s, t);
94
- a !== void 0 && M(this.prototype, e, a);
95
- }
96
- }
97
- static getPropertyDescriptor(e, t, s) {
98
- const { get: a, set: r } = T(this.prototype, e) ?? { get() {
99
- return this[t];
100
- }, set(i) {
101
- this[t] = i;
102
- } };
103
- return { get: a, set(i) {
104
- const o = a?.call(this);
105
- r?.call(this, i), this.requestUpdate(e, o, s);
106
- }, configurable: !0, enumerable: !0 };
107
- }
108
- static getPropertyOptions(e) {
109
- return this.elementProperties.get(e) ?? $;
110
- }
111
- static _$Ei() {
112
- if (this.hasOwnProperty(p("elementProperties"))) return;
113
- const e = U(this);
114
- e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
115
- }
116
- static finalize() {
117
- if (this.hasOwnProperty(p("finalized"))) return;
118
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(p("properties"))) {
119
- const t = this.properties, s = [...H(t), ...z(t)];
120
- for (const a of s) this.createProperty(a, t[a]);
121
- }
122
- const e = this[Symbol.metadata];
123
- if (e !== null) {
124
- const t = litPropertyMetadata.get(e);
125
- if (t !== void 0) for (const [s, a] of t) this.elementProperties.set(s, a);
126
- }
127
- this._$Eh = /* @__PURE__ */ new Map();
128
- for (const [t, s] of this.elementProperties) {
129
- const a = this._$Eu(t, s);
130
- a !== void 0 && this._$Eh.set(a, t);
131
- }
132
- this.elementStyles = this.finalizeStyles(this.styles);
133
- }
134
- static finalizeStyles(e) {
135
- const t = [];
136
- if (Array.isArray(e)) {
137
- const s = new Set(e.flat(1 / 0).reverse());
138
- for (const a of s) t.unshift(w(a));
139
- } else e !== void 0 && t.push(w(e));
140
- return t;
141
- }
142
- static _$Eu(e, t) {
143
- const s = t.attribute;
144
- return s === !1 ? void 0 : typeof s == "string" ? s : typeof e == "string" ? e.toLowerCase() : void 0;
145
- }
146
- constructor() {
147
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
148
- }
149
- _$Ev() {
150
- this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((e) => e(this)));
151
- }
152
- addController(e) {
153
- (this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
154
- }
155
- removeController(e) {
156
- this._$EO?.delete(e);
157
- }
158
- _$E_() {
159
- const e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
160
- for (const s of t.keys()) this.hasOwnProperty(s) && (e.set(s, this[s]), delete this[s]);
161
- e.size > 0 && (this._$Ep = e);
162
- }
163
- createRenderRoot() {
164
- const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
165
- return V(e, this.constructor.elementStyles), e;
166
- }
167
- connectedCallback() {
168
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
169
- }
170
- enableUpdating(e) {
171
- }
172
- disconnectedCallback() {
173
- this._$EO?.forEach(((e) => e.hostDisconnected?.()));
174
- }
175
- attributeChangedCallback(e, t, s) {
176
- this._$AK(e, s);
177
- }
178
- _$ET(e, t) {
179
- const s = this.constructor.elementProperties.get(e), a = this.constructor._$Eu(e, s);
180
- if (a !== void 0 && s.reflect === !0) {
181
- const r = (s.converter?.toAttribute !== void 0 ? s.converter : C).toAttribute(t, s.type);
182
- this._$Em = e, r == null ? this.removeAttribute(a) : this.setAttribute(a, r), this._$Em = null;
183
- }
184
- }
185
- _$AK(e, t) {
186
- const s = this.constructor, a = s._$Eh.get(e);
187
- if (a !== void 0 && this._$Em !== a) {
188
- const r = s.getPropertyOptions(a), i = typeof r.converter == "function" ? { fromAttribute: r.converter } : r.converter?.fromAttribute !== void 0 ? r.converter : C;
189
- this._$Em = a;
190
- const o = i.fromAttribute(t, r.type);
191
- this[a] = o ?? this._$Ej?.get(a) ?? o, this._$Em = null;
192
- }
193
- }
194
- requestUpdate(e, t, s) {
195
- if (e !== void 0) {
196
- const a = this.constructor, r = this[e];
197
- if (s ??= a.getPropertyOptions(e), !((s.hasChanged ?? b)(r, t) || s.useDefault && s.reflect && r === this._$Ej?.get(e) && !this.hasAttribute(a._$Eu(e, s)))) return;
198
- this.C(e, t, s);
199
- }
200
- this.isUpdatePending === !1 && (this._$ES = this._$EP());
201
- }
202
- C(e, t, { useDefault: s, reflect: a, wrapped: r }, i) {
203
- s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, i ?? t ?? this[e]), r !== !0 || i !== void 0) || (this._$AL.has(e) || (this.hasUpdated || s || (t = void 0), this._$AL.set(e, t)), a === !0 && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
204
- }
205
- async _$EP() {
206
- this.isUpdatePending = !0;
207
- try {
208
- await this._$ES;
209
- } catch (t) {
210
- Promise.reject(t);
211
- }
212
- const e = this.scheduleUpdate();
213
- return e != null && await e, !this.isUpdatePending;
214
- }
215
- scheduleUpdate() {
216
- return this.performUpdate();
217
- }
218
- performUpdate() {
219
- if (!this.isUpdatePending) return;
220
- if (!this.hasUpdated) {
221
- if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
222
- for (const [a, r] of this._$Ep) this[a] = r;
223
- this._$Ep = void 0;
224
- }
225
- const s = this.constructor.elementProperties;
226
- if (s.size > 0) for (const [a, r] of s) {
227
- const { wrapped: i } = r, o = this[a];
228
- i !== !0 || this._$AL.has(a) || o === void 0 || this.C(a, void 0, r, o);
229
- }
230
- }
231
- let e = !1;
232
- const t = this._$AL;
233
- try {
234
- e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((s) => s.hostUpdate?.())), this.update(t)) : this._$EM();
235
- } catch (s) {
236
- throw e = !1, this._$EM(), s;
237
- }
238
- e && this._$AE(t);
239
- }
240
- willUpdate(e) {
241
- }
242
- _$AE(e) {
243
- this._$EO?.forEach(((t) => t.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
244
- }
245
- _$EM() {
246
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
247
- }
248
- get updateComplete() {
249
- return this.getUpdateComplete();
250
- }
251
- getUpdateComplete() {
252
- return this._$ES;
253
- }
254
- shouldUpdate(e) {
255
- return !0;
256
- }
257
- update(e) {
258
- this._$Eq &&= this._$Eq.forEach(((t) => this._$ET(t, this[t]))), this._$EM();
259
- }
260
- updated(e) {
261
- }
262
- firstUpdated(e) {
263
- }
264
- }
265
- u.elementStyles = [], u.shadowRootOptions = { mode: "open" }, u[p("elementProperties")] = /* @__PURE__ */ new Map(), u[p("finalized")] = /* @__PURE__ */ new Map(), D?.({ ReactiveElement: u }), (_.reactiveElementVersions ??= []).push("2.1.1");
266
- /**
267
- * @license
268
- * Copyright 2017 Google LLC
269
- * SPDX-License-Identifier: BSD-3-Clause
270
- */
271
- const B = { attribute: !0, type: String, converter: C, reflect: !1, hasChanged: b }, R = (n = B, e, t) => {
272
- const { kind: s, metadata: a } = t;
273
- let r = globalThis.litPropertyMetadata.get(a);
274
- if (r === void 0 && globalThis.litPropertyMetadata.set(a, r = /* @__PURE__ */ new Map()), s === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(t.name, n), s === "accessor") {
275
- const { name: i } = t;
276
- return { set(o) {
277
- const v = e.get.call(this);
278
- e.set.call(this, o), this.requestUpdate(i, v, n);
279
- }, init(o) {
280
- return o !== void 0 && this.C(i, void 0, n, o), o;
281
- } };
282
- }
283
- if (s === "setter") {
284
- const { name: i } = t;
285
- return function(o) {
286
- const v = this[i];
287
- e.call(this, o), this.requestUpdate(i, v, n);
288
- };
289
- }
290
- throw Error("Unsupported decorator location: " + s);
291
- };
292
- function h(n) {
293
- return (e, t) => typeof t == "object" ? R(n, e, t) : ((s, a, r) => {
294
- const i = a.hasOwnProperty(r);
295
- return a.constructor.createProperty(r, s), i ? Object.getOwnPropertyDescriptor(a, r) : void 0;
296
- })(n, e, t);
297
- }
298
- const N = L`
299
- :host {
300
- /* Global Unav Header Styles */
301
- --_nys-unavheader-padding--gutter: var(--nys-gutter-xs, 20px);
302
- --_nys-unavheader-background-color: var(
303
- --nys-color-surface,
304
- var(--nys-color-white, #ffffff)
305
- );
306
- --_nys-unavheader-color: var(
307
- --nys-color-text,
308
- var(--nys-color-neutral-900, #1b1b1b)
309
- );
310
-
311
- /* Trustbar, Search Bar, and Language */
312
- --_nys-unavheader-background-color--section-raised: var(
313
- --nys-color-surface-raised,
314
- var(--nys-color-neutral-10, #f6f6f6)
315
- );
316
-
317
- /* Typography */
318
- font-size: var(--nys-font-size-ui-md, 16px);
319
- font-weight: var(--nys-font-weight-semibold, 600);
320
- line-height: var(--nys-font-lineheight-ui-md, 24px);
321
- font-family: var(
322
- --nys-font-family-ui,
323
- var(
324
- --nys-font-family-sans,
325
- "Proxima Nova",
326
- "Helvetica Neue",
327
- "Helvetica",
328
- "Arial",
329
- sans-serif
330
- )
331
- );
332
- }
333
-
334
- .nys-unavheader {
335
- display: flex;
336
- flex-direction: column;
337
- }
338
-
339
- .nys-unavheader > * {
340
- padding: 0 var(--_nys-unavheader-padding--gutter);
341
- }
342
-
343
- .nys-unavheader__main.wrapper {
344
- background-color: var(--_nys-unavheader-background-color);
345
- }
346
-
347
- .nys-unavheader__main.content {
348
- display: flex;
349
- align-items: center;
350
- justify-content: space-between;
351
- gap: var(--nys-space-300, 24px);
352
- padding-top: var(--nys-space-100, 8px);
353
- padding-bottom: var(--nys-space-100, 8px);
354
- }
355
-
356
- .nys-unavheader__spacer {
357
- flex: 1;
358
- }
359
-
360
- .nys-unavheader__trustbar.wrapper {
361
- background-color: var(--nys-color-neutral-100, #d0d0ce);
362
- padding-top: var(--nys-space-100, 8px);
363
- padding-bottom: var(--nys-space-100, 8px);
364
- }
365
- .nys-unavheader__trustbar.wrapper > .content,
366
- .nys-unavheader__trustbar.wrapper > .content * {
367
- cursor: pointer;
368
- }
369
- .nys-unavheader__trustbar.inline,
370
- .nys-unavheader__trustbar.inline #nys-unavheader__official {
371
- background-color: transparent;
372
- cursor: default;
373
- }
374
-
375
- /*
376
- .content -> small screens
377
- .inline -> large screens
378
- */
379
- .nys-unavheader__trustbar > .content,
380
- .nys-unavheader__trustbar.inline {
381
- display: flex;
382
- align-items: center;
383
- gap: var(--nys-space-100, 8px);
384
- height: fit-content;
385
- /* Typography */
386
- font-size: var(--nys-font-size-ui-xs, 12px);
387
- font-weight: var(--nys-font-weight-regular, 400);
388
- line-height: var(--nys-font-lineheight-ui-xs, 20px);
389
- font-family: var(
390
- --nys-font-family-ui,
391
- var(
392
- --nys-font-family-sans,
393
- "Proxima Nova",
394
- "Helvetica Neue",
395
- "Helvetica",
396
- "Arial",
397
- sans-serif
398
- )
399
- );
400
- }
401
-
402
- a#nys-unavheader__logolink {
403
- outline-offset: var(--nys-space-2px, 2px);
404
- }
405
-
406
- .nys-unavheader__logo svg {
407
- vertical-align: top;
408
- height: var(--nys-size-500, 40px);
409
- width: auto;
410
- }
411
-
412
- #nys-unavheader__know,
413
- #nys-unavheader__know--inline {
414
- width: max-content;
415
- display: flex;
416
- align-items: center;
417
- cursor: pointer;
418
- gap: var(--nys-space-50, 4px);
419
- /* These props ARE NOT publicly overridable */
420
- --_nys-button-height: var(--nys-font-lineheight-ui-xs, 20px);
421
- --_nys-button-border-radius--start: var(--nys-radius-md, 4px);
422
- --_nys-button-border-radius--end: var(--nys-radius-md, 4px);
423
- --_nys-button-padding--y: var(--nys-space-2px, 2px);
424
- --_nys-button-padding--x: var(--nys-space-50, 4px);
425
- --_nys-button-border-width: 0px;
426
- --_nys-button-text-decoration: underline;
427
- /* These props ARE publicly overridable */
428
- --nys-button-color: var(--nys-color-link, #004dd1);
429
- --nys-button-color--hover: var(--nys-color-link-strong, #003ba1);
430
- --nys-button-color--active: var(--nys-color-link-strongest, #002971);
431
- --nys-button-background-color--hover: var(
432
- --nys-color-transparent,
433
- #ffffff00
434
- );
435
- --nys-button-background-color--active: var(
436
- --nys-color-transparent,
437
- #ffffff00
438
- );
439
-
440
- /* typography */
441
- --_nys-button-font-size: var(--nys-font-size-ui-xs, 12px);
442
- --_nys-button-font-weight: var(--nys-font-weight-regular, 400);
443
- --_nys-button-line-height: var(--nys-font-lineheight-ui-xs, 20px);
444
- --_nys-button-font-family: var(
445
- --nys-font-family-ui,
446
- var(
447
- --nys-font-family-sans,
448
- "Proxima Nova",
449
- "Helvetica Neue",
450
- "Helvetica",
451
- "Arial",
452
- sans-serif
453
- )
454
- );
455
- }
456
-
457
- .hide {
458
- display: none;
459
- }
460
-
461
- .nys-unavheader__trustpanel.wrapper.show {
462
- background-color: var(--_nys-unavheader-background-color--section-raised);
463
- display: flex;
464
- padding-top: var(--nys-space-400, 32px);
465
- padding-bottom: var(--nys-space-400, 32px);
466
- }
467
- .nys-unavheader__messagewrapper {
468
- display: flex;
469
- gap: var(--nys-space-400, 32px);
470
- }
471
-
472
- .nys-unavheader__trustpanel.content {
473
- display: flex;
474
- flex-direction: row-reverse;
475
- }
476
-
477
- .nys-unavheader__trustcontentmessage {
478
- flex: 1;
479
- display: flex;
480
- flex-direction: column;
481
- gap: var(--nys-space-100, 8px);
482
-
483
- /* UI/Small/Bold */
484
- font-family: var(--nys-type-family-ui, "Proxima Nova");
485
- font-size: var(--nys-type-size-ui-sm, 14px);
486
- font-style: normal;
487
- font-weight: 400;
488
- line-height: var(--nys-typography-font-lineheight-ui-sm, 24px);
489
- letter-spacing: var(--nys-typography-font-letterspacing-ui-sm, 0.044px);
490
- }
491
- .nys-unavheader__searchdropdown.wrapper {
492
- background-color: var(--_nys-unavheader-background-color--section-raised);
493
- padding-top: var(--nys-space-250, 20px);
494
- padding-bottom: var(--nys-space-250, 20px);
495
- }
496
-
497
- .nys-unavheader__trustpanel.wrapper > .content,
498
- .nys-unavheader__main.wrapper > .content,
499
- .nys-unavheader__trustbar > .content,
500
- .nys-unavheader__searchdropdown.wrapper > .content {
501
- max-width: 1280px;
502
- margin: 0 auto;
503
- }
504
-
505
- .nys-unavheader__search {
506
- max-width: var(--nys-form-width-md, 200px);
507
- transition: max-width 0.5s ease;
508
- --_nys-textinput-gap: 0px;
509
- }
510
-
511
- /* Grow size on focus */
512
- .nys-unavheader__search:focus {
513
- width: var(--nys-form-width-lg, 384px);
514
- max-width: var(--nys-form-width-lg, 384px);
515
- }
516
-
517
- #nys-unavheader__translate--desktop,
518
- #nys-unavheader__translate--mobile,
519
- #nys-unavheader__searchbutton {
520
- /* These props ARE publicly overridable */
521
- --nys-button-color: var(--nys-color-state-blue-700, #154973);
522
- --nys-button-color--hover: var(--nys-color-state-blue-700, #154973);
523
- --nys-button-color--active: var(--nys-color-state-blue-700, #154973);
524
- --_nys-button-border-width: 0px;
525
- }
526
-
527
- .nys-unavheader__iconbutton {
528
- /* These props ARE NOT publicly overridable */
529
- --_nys-button-width: var(--nys-size-400, 32px);
530
- --_nys-button-height: var(--nys-size-400, 32px);
531
- --_nys-button-padding--y: 0;
532
- --_nys-button-padding--x: 0;
533
- }
534
-
535
- .nys-unavheader__translatewrapper {
536
- position: relative;
537
- }
538
-
539
- .nys-unavheader__languagelist.show {
540
- position: absolute;
541
- display: flex;
542
- flex-direction: column;
543
- min-width: fit-content;
544
- width: max-content;
545
- z-index: 99999;
546
- background-color: var(--_nys-unavheader-background-color--section-raised);
547
- color: var(--nys-color-state-blue-700, #154973);
548
- margin-top: var(--nys-space-150, 12px);
549
- right: 0;
550
- }
551
-
552
- a.nys-unavheader__languagelink {
553
- padding: var(--nys-space-200, 16px) var(--nys-space-250, 20px);
554
- color: var(--nys-color-state-blue-700, #154973);
555
- text-decoration: none;
556
- }
557
-
558
- a.nys-unavheader__languagelink:hover {
559
- background-color: var(--nys-color-neutral-100, #d0d0ce);
560
- }
561
-
562
- a.nys-unavheader__languagelink:active {
563
- background-color: var(--nys-color-neutral-200, #bec0c1);
564
- }
565
-
566
- /* Breakpoints using NYSDS Grid Guidelines */
567
- @media (min-width: 0) and (max-width: 479px) {
568
- /* Mobile (XS) */
569
- :host {
570
- --_nys-unavheader-padding--gutter: var(--nys-gutter-xs, 20px);
571
- }
572
-
573
- #nys-unavheader__know {
574
- --_nys-button-padding--x: 0px;
575
- --_nys-button-padding--y: 0px;
576
- --_nys-button-height: var(--nys-space-200, 16px);
577
- }
578
-
579
- .nys-unavheader__trustbar > .content {
580
- flex-direction: column;
581
- align-items: flex-start;
582
- gap: 0px;
583
- line-height: 16px;
584
- }
585
-
586
- .nys-unavheader__trustbar.wrapper {
587
- padding-top: var(--nys-space-50, 4px);
588
- padding-bottom: var(--nys-space-50, 4px);
589
- }
590
-
591
- .nys-unavheader__trustbar.inline {
592
- display: none;
593
- }
594
-
595
- .nys-unavheader__messagewrapper {
596
- flex-direction: column;
597
- }
598
-
599
- #nys-unavheader__translate--desktop,
600
- #nys-unavheader__searchbar {
601
- display: none;
602
- }
603
- }
604
-
605
- @media (min-width: 480px) and (max-width: 767px) {
606
- /* Mobile Large (SM - Above 480px) */
607
- :host {
608
- --_nys-unavheader-padding--gutter: var(--nys-gutter-sm, 20px);
609
- }
610
-
611
- .nys-unavheader__trustbar.inline {
612
- display: none;
613
- }
614
-
615
- .nys-unavheader__messagewrapper {
616
- flex-direction: column;
617
- }
618
-
619
- #nys-unavheader__translate--desktop,
620
- #nys-unavheader__searchbar {
621
- display: none;
622
- }
623
- }
624
-
625
- @media (min-width: 768px) and (max-width: 1023px) {
626
- /* Tablet (MD - Above 768px) */
627
- :host {
628
- --_nys-unavheader-padding--gutter: var(--nys-gutter-md, 32px);
629
- }
630
-
631
- .nys-unavheader__trustbar.wrapper {
632
- display: none;
633
- }
634
-
635
- #nys-unavheader__translate--desktop,
636
- #nys-unavheader__searchbar {
637
- display: none;
638
- }
639
-
640
- .nys-unavheader__trustpanel.wrapper.show {
641
- order: 2;
642
- }
643
- }
644
-
645
- @media (min-width: 1024px) and (max-width: 1279px) {
646
- /* Desktop (LG - Above 1024px) */
647
- :host {
648
- --_nys-unavheader-padding--gutter: var(--nys-gutter-lg, 32px);
649
- }
650
- .nys-unavheader__trustbar.wrapper {
651
- display: none;
652
- }
653
-
654
- #nys-unavheader__translate--mobile,
655
- #nys-unavheader__searchbutton[circle] {
656
- display: none;
657
- }
658
-
659
- .nys-unavheader__searchdropdown.wrapper {
660
- display: none;
661
- }
662
-
663
- .nys-unavheader__languagelist.show {
664
- margin-top: var(--nys-space-100, 8px);
665
- }
666
-
667
- .nys-unavheader__trustpanel.wrapper.show {
668
- order: 2;
669
- }
670
- }
671
-
672
- @media (min-width: 1280px) {
673
- /* Desktop Large (XL - Above 1280px) */
674
- :host {
675
- --_nys-unavheader-padding--gutter: var(--nys-gutter-xl, 64px);
676
- }
677
- .nys-unavheader__trustbar.wrapper {
678
- display: none;
679
- }
680
-
681
- #nys-unavheader__translate--mobile,
682
- #nys-unavheader__searchbutton[circle] {
683
- display: none;
684
- }
685
-
686
- .nys-unavheader__searchdropdown.wrapper {
687
- display: none;
688
- }
689
-
690
- .nys-unavheader__languagelist.show {
691
- margin-top: var(--nys-space-100, 8px);
692
- }
693
-
694
- .nys-unavheader__trustpanel.wrapper.show {
695
- order: 2;
696
- }
697
- }
698
- `, Z = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
1
+ import { LitElement as c, unsafeCSS as C, html as o } from "lit";
2
+ import { property as t } from "lit/decorators.js";
3
+ const y = `<svg xmlns="http://www.w3.org/2000/svg" width="91" height="55" viewBox="0 0 91 55" fill="none">
699
4
  <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"/>
700
5
  <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"/>
701
6
  <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"/>
@@ -711,13 +16,13 @@ const N = L`
711
16
  <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"/>
712
17
  <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"/>
713
18
  <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"/>
714
- </svg>`;
715
- var j = Object.defineProperty, d = (n, e, t, s) => {
716
- for (var a = void 0, r = n.length - 1, i; r >= 0; r--)
717
- (i = n[r]) && (a = i(e, t, a) || a);
718
- return a && j(e, t, a), a;
19
+ </svg>`, p = ':host{--_nys-unavheader-padding--gutter: var(--nys-gutter-xs, 20px);--_nys-unavheader-background-color: var( --nys-color-surface, var(--nys-color-white, #ffffff) );--_nys-unavheader-color: var( --nys-color-text, var(--nys-color-neutral-900, #1b1b1b) );--_nys-unavheader-background-color--section-raised: var( --nys-color-surface-raised, var(--nys-color-neutral-10, #f6f6f6) );font-size:var(--nys-font-size-ui-md, 16px);font-weight:var(--nys-font-weight-semibold, 600);line-height:var(--nys-font-lineheight-ui-md, 24px);font-family:var(--nys-font-family-ui, var(--nys-font-family-sans, "Proxima Nova", "Helvetica Neue", "Helvetica", "Arial", sans-serif))}.nys-unavheader{display:flex;flex-direction:column}.nys-unavheader>*{padding:0 var(--_nys-unavheader-padding--gutter)}.nys-unavheader__main.wrapper{background-color:var(--_nys-unavheader-background-color)}.nys-unavheader__main.content{display:flex;align-items:center;justify-content:space-between;gap:var(--nys-space-300, 24px);padding-top:var(--nys-space-100, 8px);padding-bottom:var(--nys-space-100, 8px)}.nys-unavheader__spacer{flex:1}.nys-unavheader__trustbar.wrapper{background-color:var(--nys-color-neutral-100, #d0d0ce);padding-top:var(--nys-space-100, 8px);padding-bottom:var(--nys-space-100, 8px)}.nys-unavheader__trustbar.wrapper>.content,.nys-unavheader__trustbar.wrapper>.content *{cursor:pointer}.nys-unavheader__trustbar.inline,.nys-unavheader__trustbar.inline #nys-unavheader__official{background-color:transparent;cursor:default}.nys-unavheader__trustbar>.content,.nys-unavheader__trustbar.inline{display:flex;align-items:center;gap:var(--nys-space-100, 8px);height:fit-content;font-size:var(--nys-font-size-ui-xs, 12px);font-weight:var(--nys-font-weight-regular, 400);line-height:var(--nys-font-lineheight-ui-xs, 20px);font-family:var(--nys-font-family-ui, var(--nys-font-family-sans, "Proxima Nova", "Helvetica Neue", "Helvetica", "Arial", sans-serif))}a#nys-unavheader__logolink{outline-offset:var(--nys-space-2px, 2px)}.nys-unavheader__logo svg{vertical-align:top;height:var(--nys-size-500, 40px);width:auto}#nys-unavheader__know,#nys-unavheader__know--inline{width:max-content;display:flex;align-items:center;cursor:pointer;gap:var(--nys-space-50, 4px);--_nys-button-height: var(--nys-font-lineheight-ui-xs, 20px);--_nys-button-border-radius--start: var(--nys-radius-md, 4px);--_nys-button-border-radius--end: var(--nys-radius-md, 4px);--_nys-button-padding--y: var(--nys-space-2px, 2px);--_nys-button-padding--x: var(--nys-space-50, 4px);--_nys-button-border-width: 0px;--_nys-button-text-decoration: underline;--nys-button-color: var(--nys-color-link, #004dd1);--nys-button-color--hover: var(--nys-color-link-strong, #003ba1);--nys-button-color--active: var(--nys-color-link-strongest, #002971);--nys-button-background-color--hover: var( --nys-color-transparent, #ffffff00 );--nys-button-background-color--active: var( --nys-color-transparent, #ffffff00 );--_nys-button-font-size: var(--nys-font-size-ui-xs, 12px);--_nys-button-font-weight: var(--nys-font-weight-regular, 400);--_nys-button-line-height: var(--nys-font-lineheight-ui-xs, 20px);--_nys-button-font-family: var( --nys-font-family-ui, var( --nys-font-family-sans, "Proxima Nova", "Helvetica Neue", "Helvetica", "Arial", sans-serif ) )}.hide{display:none}.nys-unavheader__trustpanel.wrapper.show{background-color:var(--_nys-unavheader-background-color--section-raised);display:flex;padding-top:var(--nys-space-400, 32px);padding-bottom:var(--nys-space-400, 32px)}.nys-unavheader__messagewrapper{display:flex;gap:var(--nys-space-400, 32px)}.nys-unavheader__trustpanel.content{display:flex;flex-direction:row-reverse}.nys-unavheader__trustcontentmessage{flex:1;display:flex;flex-direction:column;gap:var(--nys-space-100, 8px);font-family:var(--nys-type-family-ui, "Proxima Nova");font-size:var(--nys-type-size-ui-sm, 14px);font-style:normal;font-weight:400;line-height:var(--nys-typography-font-lineheight-ui-sm, 24px);letter-spacing:var(--nys-typography-font-letterspacing-ui-sm, .044px)}.nys-unavheader__searchdropdown.wrapper{background-color:var(--_nys-unavheader-background-color--section-raised);padding-top:var(--nys-space-250, 20px);padding-bottom:var(--nys-space-250, 20px)}.nys-unavheader__trustpanel.wrapper>.content,.nys-unavheader__main.wrapper>.content,.nys-unavheader__trustbar>.content,.nys-unavheader__searchdropdown.wrapper>.content{max-width:1280px;margin:0 auto}.nys-unavheader__search{max-width:var(--nys-form-width-md, 200px);transition:max-width .5s ease;--_nys-textinput-gap: 0px}.nys-unavheader__search:focus{width:var(--nys-form-width-lg, 384px);max-width:var(--nys-form-width-lg, 384px)}#nys-unavheader__translate--desktop,#nys-unavheader__translate--mobile,#nys-unavheader__searchbutton{--nys-button-color: var(--nys-color-state-blue-700, #154973);--nys-button-color--hover: var(--nys-color-state-blue-700, #154973);--nys-button-color--active: var(--nys-color-state-blue-700, #154973);--_nys-button-border-width: 0px}.nys-unavheader__iconbutton{--_nys-button-width: var(--nys-size-400, 32px);--_nys-button-height: var(--nys-size-400, 32px);--_nys-button-padding--y: 0;--_nys-button-padding--x: 0}.nys-unavheader__translatewrapper{position:relative}.nys-unavheader__languagelist.show{position:absolute;display:flex;flex-direction:column;min-width:fit-content;width:max-content;z-index:99999;background-color:var(--_nys-unavheader-background-color--section-raised);color:var(--nys-color-state-blue-700, #154973);margin-top:var(--nys-space-150, 12px);right:0}a.nys-unavheader__languagelink{padding:var(--nys-space-200, 16px) var(--nys-space-250, 20px);color:var(--nys-color-state-blue-700, #154973);text-decoration:none}a.nys-unavheader__languagelink:hover{background-color:var(--nys-color-neutral-100, #d0d0ce)}a.nys-unavheader__languagelink:active{background-color:var(--nys-color-neutral-200, #bec0c1)}@media(min-width:0)and (max-width:479px){:host{--_nys-unavheader-padding--gutter: var(--nys-gutter-xs, 20px)}#nys-unavheader__know{--_nys-button-padding--x: 0px;--_nys-button-padding--y: 0px;--_nys-button-height: var(--nys-space-200, 16px)}.nys-unavheader__trustbar>.content{flex-direction:column;align-items:flex-start;gap:0px;line-height:16px}.nys-unavheader__trustbar.wrapper{padding-top:var(--nys-space-50, 4px);padding-bottom:var(--nys-space-50, 4px)}.nys-unavheader__trustbar.inline{display:none}.nys-unavheader__messagewrapper{flex-direction:column}#nys-unavheader__translate--desktop,#nys-unavheader__searchbar{display:none}}@media(min-width:480px)and (max-width:767px){:host{--_nys-unavheader-padding--gutter: var(--nys-gutter-sm, 20px)}.nys-unavheader__trustbar.inline{display:none}.nys-unavheader__messagewrapper{flex-direction:column}#nys-unavheader__translate--desktop,#nys-unavheader__searchbar{display:none}}@media(min-width:768px)and (max-width:1023px){:host{--_nys-unavheader-padding--gutter: var(--nys-gutter-md, 32px)}.nys-unavheader__trustbar.wrapper,#nys-unavheader__translate--desktop,#nys-unavheader__searchbar{display:none}.nys-unavheader__trustpanel.wrapper.show{order:2}}@media(min-width:1024px)and (max-width:1279px){:host{--_nys-unavheader-padding--gutter: var(--nys-gutter-lg, 32px)}.nys-unavheader__trustbar.wrapper,#nys-unavheader__translate--mobile,#nys-unavheader__searchbutton[circle],.nys-unavheader__searchdropdown.wrapper{display:none}.nys-unavheader__languagelist.show{margin-top:var(--nys-space-100, 8px)}.nys-unavheader__trustpanel.wrapper.show{order:2}}@media(min-width:1280px){:host{--_nys-unavheader-padding--gutter: var(--nys-gutter-xl, 64px)}.nys-unavheader__trustbar.wrapper,#nys-unavheader__translate--mobile,#nys-unavheader__searchbutton[circle],.nys-unavheader__searchdropdown.wrapper{display:none}.nys-unavheader__languagelist.show{margin-top:var(--nys-space-100, 8px)}.nys-unavheader__trustpanel.wrapper.show{order:2}}';
20
+ var v = Object.defineProperty, r = (h, e, a, i) => {
21
+ for (var s = void 0, l = h.length - 1, u; l >= 0; l--)
22
+ (u = h[l]) && (s = u(e, a, s) || s);
23
+ return s && v(e, a, s), s;
719
24
  };
720
- const f = class f extends E {
25
+ const d = class d extends c {
721
26
  constructor() {
722
27
  super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
723
28
  ["English", ""],
@@ -737,14 +42,14 @@ const f = class f extends E {
737
42
  ];
738
43
  }
739
44
  _getNysLogo() {
740
- return new DOMParser().parseFromString(Z, "image/svg+xml").documentElement;
45
+ return new DOMParser().parseFromString(y, "image/svg+xml").documentElement;
741
46
  }
742
47
  _toggleTrustbar(e) {
743
48
  if (this.trustbarVisible = !this.trustbarVisible, this.trustbarVisible && (this.languageVisible = !1, this.searchDropdownVisible = !1), e === "no focus") return;
744
49
  if (e === "nys-unavheader__know--inline" || !e) {
745
- const s = this.trustbarVisible ? "nys-unavheader__closetrustbar" : "nys-unavheader__know--inline";
50
+ const i = this.trustbarVisible ? "nys-unavheader__closetrustbar" : "nys-unavheader__know--inline";
746
51
  this.updateComplete.then(() => {
747
- this.shadowRoot?.getElementById(s)?.focus();
52
+ this.shadowRoot?.getElementById(i)?.focus();
748
53
  });
749
54
  }
750
55
  }
@@ -762,15 +67,15 @@ const f = class f extends E {
762
67
  }
763
68
  _handleSearchKeyup(e) {
764
69
  if (e.key === "Escape" && (this._handleSearchBlur(), e.target.blur()), e.key === "Enter") {
765
- const t = e.target.value?.trim();
766
- t !== "" && this._handleSearch(t);
70
+ const a = e.target.value?.trim();
71
+ a !== "" && this._handleSearch(a);
767
72
  }
768
73
  }
769
74
  _handleSearchButton(e) {
770
- const s = (this.shadowRoot?.getElementById(
75
+ const i = (this.shadowRoot?.getElementById(
771
76
  e
772
77
  )).value?.trim();
773
- s !== "" && this._handleSearch(s);
78
+ i !== "" && this._handleSearch(i);
774
79
  }
775
80
  _handleSearch(e) {
776
81
  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`;
@@ -782,7 +87,7 @@ const f = class f extends E {
782
87
  super.disconnectedCallback();
783
88
  }
784
89
  render() {
785
- return c`
90
+ return o`
786
91
  <header class="nys-unavheader">
787
92
  <div
788
93
  class="nys-unavheader__trustbar wrapper"
@@ -797,7 +102,6 @@ const f = class f extends E {
797
102
  <nys-button
798
103
  id="nys-unavheader__know"
799
104
  label="Here's how you know"
800
- ariaLabel=${this.trustbarVisible ? "Here's how you know expanded" : "Here's how you know collapsed"}
801
105
  variant="ghost"
802
106
  size="sm"
803
107
  suffixIcon="slotted"
@@ -815,7 +119,6 @@ const f = class f extends E {
815
119
  </div>
816
120
  <div
817
121
  class="nys-unavheader__trustpanel wrapper ${this.trustbarVisible ? "show" : "hide"}"
818
- aria-expanded="${this.trustbarVisible}"
819
122
  >
820
123
  <div class="nys-unavheader__trustpanel content">
821
124
  <nys-button
@@ -826,6 +129,7 @@ const f = class f extends E {
826
129
  icon="close"
827
130
  size="sm"
828
131
  ariaLabel="Close this notice"
132
+ aria-expanded="${this.trustbarVisible}"
829
133
  @nys-click="${() => this._toggleTrustbar("nys-unavheader__know--inline")}"
830
134
  ></nys-button>
831
135
  <div class="nys-unavheader__messagewrapper">
@@ -871,8 +175,8 @@ const f = class f extends E {
871
175
  <nys-button
872
176
  id="nys-unavheader__know--inline"
873
177
  label="Here's how you know"
874
- ariaControls="trust_official"
875
- ariaLabel=${this.trustbarVisible ? "Here's how you know expanded" : "Here's how you know collapsed"}
178
+ aria-controls="nys-unavheader__closetrustbar"
179
+ aria-expanded="${this.trustbarVisible}"
876
180
  variant="ghost"
877
181
  size="sm"
878
182
  suffixIcon="slotted"
@@ -886,12 +190,13 @@ const f = class f extends E {
886
190
  </nys-button>
887
191
  </div>
888
192
  <div class="nys-unavheader__spacer"></div>
889
- ${this.hideTranslate ? null : c`<div class="nys-unavheader__translatewrapper">
193
+ ${this.hideTranslate ? null : o`<div class="nys-unavheader__translatewrapper">
890
194
  <nys-button
891
195
  variant="ghost"
892
196
  circle
893
197
  icon="slotted"
894
- ariaLabel=${this.languageVisible ? "Translate expanded" : "Translate collapsed"}
198
+ ariaLabel="Translate"
199
+ aria-expanded="${this.languageVisible}"
895
200
  id="nys-unavheader__translate--mobile"
896
201
  class="nys-unavheader__iconbutton"
897
202
  @nys-click=${this._toggleLanguageList}
@@ -902,15 +207,14 @@ const f = class f extends E {
902
207
  size="16"
903
208
  ></nys-icon>
904
209
  </nys-button>
905
-
906
- ${this.isSearchFocused ? null : c`
210
+ ${this.isSearchFocused ? null : o`
907
211
  <nys-button
908
212
  variant="ghost"
909
213
  label="Translate"
214
+ aria-expanded="${this.languageVisible}"
910
215
  size="sm"
911
216
  prefixIcon="language"
912
217
  suffixIcon=${this.languageVisible ? "chevron_up" : "chevron_down"}
913
- ariaLabel=${this.languageVisible ? "Translate expanded" : "Translate collapsed"}
914
218
  id="nys-unavheader__translate--desktop"
915
219
  @nys-click="${this._toggleLanguageList}"
916
220
  ></nys-button>
@@ -919,21 +223,22 @@ const f = class f extends E {
919
223
  class="nys-unavheader__languagelist ${this.languageVisible ? "show" : "hide"}"
920
224
  >
921
225
  ${this.languages.map(
922
- ([e, t]) => c`<a
226
+ ([e, a]) => o`<a
923
227
  class="nys-unavheader__languagelink"
924
228
  target="_self"
925
- href="https://${t ? t + "." : ""}${window.location.hostname}"
229
+ href="https://${a ? a + "." : ""}${window.location.hostname}"
926
230
  >${e}</a
927
231
  >`
928
232
  )}
929
233
  </div>
930
234
  </div>`}
931
- ${this.hideSearch ? null : c`
235
+ ${this.hideSearch ? null : o`
932
236
  <nys-button
933
237
  variant="ghost"
934
238
  circle
935
239
  icon="search"
936
- ariaLabel=${this.searchDropdownVisible ? "Search expanded" : "Search collapsed"}
240
+ ariaLabel="Search"
241
+ aria-expanded="${this.searchDropdownVisible}"
937
242
  id="nys-unavheader__searchbutton"
938
243
  class="nys-unavheader__iconbutton"
939
244
  @nys-click=${this._toggleSearchDropdown}
@@ -958,7 +263,7 @@ const f = class f extends E {
958
263
  slot="endButton"
959
264
  type="submit"
960
265
  prefixIcon="search"
961
- ariaLabel="Search Button"
266
+ ariaLabel="Search"
962
267
  @nys-click=${() => {
963
268
  this._handleSearchButton("nys-unavheader__searchbar");
964
269
  }}
@@ -985,7 +290,7 @@ const f = class f extends E {
985
290
  slot="endButton"
986
291
  type="submit"
987
292
  prefixIcon="search"
988
- ariaLabel="Search Button"
293
+ ariaLabel="Search"
989
294
  @nys-click=${() => {
990
295
  this._handleSearchButton("nys-unavheader__searchbardropdown");
991
296
  }}
@@ -997,31 +302,31 @@ const f = class f extends E {
997
302
  `;
998
303
  }
999
304
  };
1000
- f.styles = N;
1001
- let l = f;
1002
- d([
1003
- h({ type: Boolean })
1004
- ], l.prototype, "trustbarVisible");
1005
- d([
1006
- h({ type: Boolean })
1007
- ], l.prototype, "searchDropdownVisible");
1008
- d([
1009
- h({ type: Boolean })
1010
- ], l.prototype, "languageVisible");
1011
- d([
1012
- h({ type: Boolean })
1013
- ], l.prototype, "isSearchFocused");
1014
- d([
1015
- h({ type: Boolean })
1016
- ], l.prototype, "hideTranslate");
1017
- d([
1018
- h({ type: Boolean })
1019
- ], l.prototype, "hideSearch");
1020
- d([
1021
- h({ type: Array, reflect: !0 })
1022
- ], l.prototype, "languages");
1023
- customElements.get("nys-unavheader") || customElements.define("nys-unavheader", l);
305
+ d.styles = C(p);
306
+ let n = d;
307
+ r([
308
+ t({ type: Boolean })
309
+ ], n.prototype, "trustbarVisible");
310
+ r([
311
+ t({ type: Boolean })
312
+ ], n.prototype, "searchDropdownVisible");
313
+ r([
314
+ t({ type: Boolean })
315
+ ], n.prototype, "languageVisible");
316
+ r([
317
+ t({ type: Boolean })
318
+ ], n.prototype, "isSearchFocused");
319
+ r([
320
+ t({ type: Boolean })
321
+ ], n.prototype, "hideTranslate");
322
+ r([
323
+ t({ type: Boolean })
324
+ ], n.prototype, "hideSearch");
325
+ r([
326
+ t({ type: Array, reflect: !0 })
327
+ ], n.prototype, "languages");
328
+ customElements.get("nys-unavheader") || customElements.define("nys-unavheader", n);
1024
329
  export {
1025
- l as NysUnavHeader
330
+ n as NysUnavHeader
1026
331
  };
1027
332
  //# sourceMappingURL=nys-unavheader.js.map