@utahdts/utah-design-system-header 0.8.0 → 0.9.5
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/style.css +1 -1
- package/dist/utah-design-system-header.es.js +1078 -1174
- package/dist/utah-design-system-header.umd.js +110 -109
- package/package.json +6 -12
|
@@ -1,67 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
".": {
|
|
3
|
-
"development-local": "./src/index.js",
|
|
4
|
-
development: "./dist/utah-design-system-header.es.js",
|
|
5
|
-
production: "./dist/utah-design-system-header.es.js",
|
|
6
|
-
import: "./dist/utah-design-system-header.es.js",
|
|
7
|
-
require: "./dist/utah-design-system-header.umd.js",
|
|
8
|
-
default: [
|
|
9
|
-
"./dist/utah-design-system-header.es.js",
|
|
10
|
-
"./dist/utah-design-system-header.umd.js",
|
|
11
|
-
"./src/index.js"
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
"./css": "./dist/style.css",
|
|
15
|
-
"./src/css/index.scss": "./src/css/index.scss"
|
|
16
|
-
}, An = "./src/index.js", On = [
|
|
17
|
-
"src/css",
|
|
18
|
-
"dist"
|
|
19
|
-
], wn = {
|
|
20
|
-
build: "vite build",
|
|
21
|
-
preview: "vite preview",
|
|
22
|
-
publishHeader: "npm publish --access public",
|
|
23
|
-
"test-publish": "npm publish --dry-run",
|
|
24
|
-
test: "vitest",
|
|
25
|
-
testc: "vitest run --coverage",
|
|
26
|
-
testOnce: "vitest run",
|
|
27
|
-
testui: "vitest --ui",
|
|
28
|
-
watch: "vite build --watch"
|
|
29
|
-
}, Ln = {
|
|
30
|
-
type: "git",
|
|
31
|
-
url: "git+https://github.com/utahdts/utah-design-system.git"
|
|
32
|
-
}, yn = "Apache-2.0", Pn = {
|
|
33
|
-
url: "https://github.com/utahdts/utah-design-system/issues"
|
|
34
|
-
}, Nn = "https://github.com/utahdts/utah-design-system#readme", Sn = {
|
|
35
|
-
"@popperjs/core": "2.11.7"
|
|
36
|
-
}, Un = {
|
|
37
|
-
"@vitest/ui": "0.31.1",
|
|
38
|
-
eslint: "8.40.0",
|
|
39
|
-
"eslint-config-airbnb": "19.0.4",
|
|
40
|
-
"eslint-plugin-import": "2.27.5",
|
|
41
|
-
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
42
|
-
"eslint-plugin-react-refresh": "0.4.1",
|
|
43
|
-
jsdom: "22.0.0",
|
|
44
|
-
sass: "1.62.1",
|
|
45
|
-
vite: "4.3.7",
|
|
46
|
-
"vite-plugin-eslint": "1.8.1",
|
|
47
|
-
vitest: "0.31.0"
|
|
48
|
-
}, Cn = "module", Rn = {
|
|
49
|
-
name: In,
|
|
50
|
-
version: gn,
|
|
51
|
-
description: Tn,
|
|
52
|
-
exports: Mn,
|
|
53
|
-
main: An,
|
|
54
|
-
files: On,
|
|
55
|
-
scripts: wn,
|
|
56
|
-
repository: Ln,
|
|
57
|
-
license: yn,
|
|
58
|
-
bugs: Pn,
|
|
59
|
-
homepage: Nn,
|
|
60
|
-
dependencies: Sn,
|
|
61
|
-
devDependencies: Un,
|
|
62
|
-
type: Cn
|
|
63
|
-
};
|
|
64
|
-
const j = {
|
|
1
|
+
const Y = {
|
|
65
2
|
FLYOUT: (
|
|
66
3
|
/** @type {ChildrenMenuType} */
|
|
67
4
|
"flyout"
|
|
@@ -98,7 +35,7 @@ const j = {
|
|
|
98
35
|
/** @type {Size} */
|
|
99
36
|
"LARGE"
|
|
100
37
|
)
|
|
101
|
-
},
|
|
38
|
+
}, vn = `/* @media is never in scope for --variables, so this is the only way to solve this. :-( */
|
|
102
39
|
|
|
103
40
|
@media screen and (max-width: media-size__tablet-landscape__PLACEHOLDER) {
|
|
104
41
|
/* put your media query here for tablet landscape */
|
|
@@ -168,7 +105,7 @@ const j = {
|
|
|
168
105
|
@media screen and (max-width: media-size__mobile__PLACEHOLDER) {
|
|
169
106
|
/* put your media query here for mobile */
|
|
170
107
|
}
|
|
171
|
-
`,
|
|
108
|
+
`, bn = `<div class="utah-design-system utds-header-mobile-menu" id="utds-header-mobile-menu">
|
|
172
109
|
<div class="utds-header-mobile-menu__backdrop" aria-hidden></div>
|
|
173
110
|
<div class="utds-header-mobile-menu__wrapper">
|
|
174
111
|
<div class="utds-header-mobile-menu__action-bar" role="tablist">
|
|
@@ -251,8 +188,10 @@ const a = {
|
|
|
251
188
|
MAIN_MENU__SEARCH: "main-menu__search",
|
|
252
189
|
MAIN_MENU__TITLE: "main-menu__title",
|
|
253
190
|
MENU_ITEM: "menu-item",
|
|
191
|
+
MENU_ITEM__ARROW: "menu-item__menu-arrow",
|
|
254
192
|
MENU_ITEM__BUTTON_TITLE: "menu-item__button-title",
|
|
255
193
|
MENU_ITEM__LINK_TITLE: "menu-item__link-title",
|
|
194
|
+
MENU_ITEM__LINK_TITLE_SPAN: "menu-item__link-title-span",
|
|
256
195
|
MENU_ITEM__SELECTED: "menu-item--selected",
|
|
257
196
|
MENU_ITEM__TITLE: "menu-item__title",
|
|
258
197
|
MENU_ITEM__FLY_OUT: "menu-item--fly_out",
|
|
@@ -311,25 +250,25 @@ const a = {
|
|
|
311
250
|
UTAH_ID: "utds-utah-id-wrapper",
|
|
312
251
|
UTAH_ID__BUTTON: "utds-utah-id__button"
|
|
313
252
|
};
|
|
314
|
-
function
|
|
253
|
+
function X(e, t) {
|
|
315
254
|
if (e)
|
|
316
255
|
throw new Error(t);
|
|
317
256
|
}
|
|
318
|
-
function
|
|
257
|
+
function O(e, t) {
|
|
319
258
|
if (e == null)
|
|
320
259
|
throw new Error(t);
|
|
321
260
|
return e;
|
|
322
261
|
}
|
|
323
|
-
function
|
|
262
|
+
function wt(e) {
|
|
324
263
|
return typeof e == "string" || e instanceof String;
|
|
325
264
|
}
|
|
326
|
-
function
|
|
265
|
+
function In(e) {
|
|
327
266
|
const t = new DOMParser();
|
|
328
267
|
let n;
|
|
329
|
-
if (
|
|
268
|
+
if (wt(e)) {
|
|
330
269
|
const o = (
|
|
331
270
|
/** @type {Document} */
|
|
332
|
-
|
|
271
|
+
wt(e) ? t.parseFromString(e, "text/html") : e
|
|
333
272
|
), r = o.body.children.length > 1 ? o.body.children : o.body.children.item(0);
|
|
334
273
|
if (!r)
|
|
335
274
|
throw console.error(e), new Error("renderDOM: nothing rendered");
|
|
@@ -343,8 +282,8 @@ function Hn(e) {
|
|
|
343
282
|
throw e ? (console.error(e), new Error(`renderDOM: str is not a string nor a DOM Element : '${e}'`)) : new Error("renderDOM: falsy string passed; cannot render nothing");
|
|
344
283
|
return n;
|
|
345
284
|
}
|
|
346
|
-
function
|
|
347
|
-
const t = typeof e == "string" ?
|
|
285
|
+
function I(e) {
|
|
286
|
+
const t = typeof e == "string" ? In(e) : e;
|
|
348
287
|
if (t instanceof HTMLCollection && t.length > 1)
|
|
349
288
|
throw new Error("renderDOMSingle: must render a single element");
|
|
350
289
|
const n = (
|
|
@@ -355,67 +294,9 @@ function g(e) {
|
|
|
355
294
|
throw console.error(e), new Error("renderDOMSingle: nothing rendered");
|
|
356
295
|
return n;
|
|
357
296
|
}
|
|
358
|
-
const
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
</div>
|
|
362
|
-
<div class="utds-footer__utah-logo-wrapper">
|
|
363
|
-
<div class="utah-logo-svg" id="utah-logo-svg">
|
|
364
|
-
<svg viewBox="0 0 107 30.51" role="img">
|
|
365
|
-
<g><path d="m12.44,30.51c-4.21,0-7.33-1.22-9.38-3.66C1.02,24.4,0,20.61,0,15.48V0h7.93v16.4c0,2.67.36,4.55,1.08,5.65.77,1.12,2.08,1.74,3.43,1.64,1.36.1,2.68-.52,3.48-1.63.75-1.09,1.13-2.97,1.13-5.65V0h7.65v15.48c0,5.13-1,8.92-3,11.36-2,2.44-5.09,3.66-9.26,3.66Zm24.42-.56V6.64h-7.93V0h23.78v6.64h-7.93v23.31h-7.92Zm26.17-14.56l-.51,2.07h5.53l-.51-2.07c-.37-1.44-.74-3.01-1.11-4.7-.37-1.69-.74-3.29-1.11-4.79h-.18c-.34,1.53-.68,3.14-1.04,4.82-.35,1.68-.71,3.24-1.08,4.68Zm-11.52,14.56L60.64,0h9.58l9.12,29.95h-8.39l-1.48-6.36h-8.38l-1.47,6.36h-8.11Zm30.69,0V0h7.93v11.15h8.94V0h7.93v29.95h-7.93v-11.89h-8.94v11.89h-7.93Z"/></g>
|
|
366
|
-
</svg>
|
|
367
|
-
</div>
|
|
368
|
-
<div class="utds-footer__vertical-divider" role="separator" aria-orientation="vertical"></div>
|
|
369
|
-
<div class="utds-footer__official-site-wrapper">
|
|
370
|
-
<div class="utds-footer__official-site">An official website of the <span class="whitespace-no-wrap">State of Utah</span></div>
|
|
371
|
-
<div class="utds-footer__copyright">©2023 State of Utah</div>
|
|
372
|
-
</div>
|
|
373
|
-
</div>
|
|
374
|
-
<div class="utds-footer__links">
|
|
375
|
-
<ul>
|
|
376
|
-
<li><a href="#" target="__blank" rel="noreferrer">Utah.gov Home</a></li>
|
|
377
|
-
<li><a href="#" target="__blank" rel="noreferrer">Terms of Use</a></li>
|
|
378
|
-
<li><a href="#" target="__blank" rel="noreferrer">Privacy Policy</a></li>
|
|
379
|
-
<li><a href="#" target="__blank" rel="noreferrer">Accessibility</a></li>
|
|
380
|
-
<li><a href="#" target="__blank" rel="noreferrer">Translate</a></li>
|
|
381
|
-
</ul>
|
|
382
|
-
</div>
|
|
383
|
-
</div>
|
|
384
|
-
`;
|
|
385
|
-
let se = null;
|
|
386
|
-
function Wn() {
|
|
387
|
-
var o, r, i, u, s, l, c, d, h, f, _, m, E, v, T, A;
|
|
388
|
-
const e = O(), t = document.querySelector(p(a.FOOTER));
|
|
389
|
-
let n = t;
|
|
390
|
-
if (e.footer === null)
|
|
391
|
-
t == null || t.remove();
|
|
392
|
-
else if (((o = se == null ? void 0 : se.footer) == null ? void 0 : o.domLocationTarget) !== ((r = e == null ? void 0 : e.footer) == null ? void 0 : r.domLocationTarget) || ((i = se == null ? void 0 : se.footer) == null ? void 0 : i.showHorizontalRule) !== ((u = e == null ? void 0 : e.footer) == null ? void 0 : u.showHorizontalRule) || !t) {
|
|
393
|
-
t && t.remove(), n = g(xn);
|
|
394
|
-
let b = document.body;
|
|
395
|
-
if ((s = e == null ? void 0 : e.footer) != null && s.domLocationTarget) {
|
|
396
|
-
const I = [
|
|
397
|
-
(l = e == null ? void 0 : e.footer) == null ? void 0 : l.domLocationTarget.cssSelector,
|
|
398
|
-
(c = e == null ? void 0 : e.footer) == null ? void 0 : c.domLocationTarget.element,
|
|
399
|
-
(d = e == null ? void 0 : e.footer) == null ? void 0 : d.domLocationTarget.elementFunction
|
|
400
|
-
].filter((M) => M);
|
|
401
|
-
if (ee(I.length < 1, "renderFooter: footer.domLocationTarget must either have a value for one of its properties or not be specified at all"), ee(I.length > 1, "renderFooter: footer.domLocationTarget must only have one target specified"), (h = e == null ? void 0 : e.footer) != null && h.domLocationTarget.cssSelector)
|
|
402
|
-
b = document.querySelector((f = e == null ? void 0 : e.footer) == null ? void 0 : f.domLocationTarget.cssSelector), ee(!b, `renderFooter: element not found for domLocationTarget.cssSelector ${(_ = e == null ? void 0 : e.footer) == null ? void 0 : _.domLocationTarget.cssSelector}`);
|
|
403
|
-
else if ((m = e == null ? void 0 : e.footer) != null && m.domLocationTarget.element)
|
|
404
|
-
b = (E = e == null ? void 0 : e.footer) == null ? void 0 : E.domLocationTarget.element;
|
|
405
|
-
else if ((v = e == null ? void 0 : e.footer) != null && v.domLocationTarget.elementFunction)
|
|
406
|
-
b = (T = e == null ? void 0 : e.footer) == null ? void 0 : T.domLocationTarget.elementFunction(), ee(!b, "renderFooter: element not returned from domLocationTarget.elementFunction");
|
|
407
|
-
else
|
|
408
|
-
throw new Error("renderFooter: domLocationTarget must have at least one field set");
|
|
409
|
-
}
|
|
410
|
-
if (b == null || b.appendChild(n), !((A = e == null ? void 0 : e.footer) != null && A.showHorizontalRule)) {
|
|
411
|
-
const I = document.querySelector(p(a.FOOTER_HORIZONTAL_DIVIDER));
|
|
412
|
-
ee(!I, "renderFooter: cannot remove horizontal rule; not found"), I == null || I.remove();
|
|
413
|
-
}
|
|
414
|
-
se = JSON.parse(JSON.stringify(e));
|
|
415
|
-
}
|
|
416
|
-
return n;
|
|
417
|
-
}
|
|
418
|
-
const jt = {
|
|
297
|
+
const Ot = {
|
|
298
|
+
onSearch: !1,
|
|
299
|
+
mainMenu: !1,
|
|
419
300
|
mediaSizes: {
|
|
420
301
|
mobile: 640,
|
|
421
302
|
tabletPortrait: 768,
|
|
@@ -424,195 +305,71 @@ const jt = {
|
|
|
424
305
|
showTitle: !0,
|
|
425
306
|
size: Te.MEDIUM,
|
|
426
307
|
title: "My Utah.gov Site",
|
|
427
|
-
titleURL: "/"
|
|
308
|
+
titleURL: "/",
|
|
309
|
+
utahId: !1
|
|
428
310
|
};
|
|
429
|
-
|
|
430
|
-
function O() {
|
|
431
|
-
return ke;
|
|
432
|
-
}
|
|
433
|
-
function kn(e) {
|
|
311
|
+
function Tn(e) {
|
|
434
312
|
if (!e.showTitle && !e.logo)
|
|
435
313
|
throw new Error("validateSettings: A title must be shown if there is no logo. Please change the `showTitle` setting to be `true` or provide a logo image.");
|
|
436
314
|
}
|
|
437
|
-
|
|
438
|
-
|
|
315
|
+
class gn {
|
|
316
|
+
constructor() {
|
|
317
|
+
this.settings = { ...Ot };
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @param {SettingsInput} settings
|
|
321
|
+
*/
|
|
322
|
+
setSettings(t) {
|
|
323
|
+
const n = { ...Ot, ...this.settings, ...t };
|
|
324
|
+
Tn(n), this.settings = n;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @returns {Settings}
|
|
328
|
+
*/
|
|
329
|
+
getSettings() {
|
|
330
|
+
return this.settings;
|
|
331
|
+
}
|
|
439
332
|
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
const Vn = setInterval(
|
|
444
|
-
() => {
|
|
445
|
-
Pt += 1, Pt >= qn || zt ? clearInterval(Vn) : document.dispatchEvent(new Event($t.HEADER_LOADED));
|
|
446
|
-
},
|
|
447
|
-
2
|
|
448
|
-
);
|
|
449
|
-
function ni(e) {
|
|
450
|
-
return ke = { ...jt, ...O(), ...e }, kn(ke), zt = !0, document != null && document.body ? yt() : window.addEventListener("load", () => yt()), ke;
|
|
333
|
+
const je = new gn();
|
|
334
|
+
function L() {
|
|
335
|
+
return je.getSettings();
|
|
451
336
|
}
|
|
452
|
-
const
|
|
337
|
+
const Mn = `<div class="utds-header-mobile-menu__content-item" role="tabpanel">
|
|
453
338
|
</div>
|
|
454
339
|
`;
|
|
455
|
-
function
|
|
340
|
+
function U() {
|
|
456
341
|
return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(
|
|
457
342
|
/[018]/g,
|
|
458
343
|
// eslint-disable-next-line no-bitwise
|
|
459
344
|
(e) => (e ^ crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> e) / 4).toString(16)
|
|
460
345
|
);
|
|
461
346
|
}
|
|
462
|
-
function
|
|
347
|
+
function nt(e) {
|
|
463
348
|
const t = document.querySelector(p(a.MOBILE_MENU__WRAPPER));
|
|
464
349
|
if (!t)
|
|
465
350
|
throw new Error("addMobileMenuContentItem: mobileMenuWrapper not found");
|
|
466
351
|
const n = t.querySelector(p(a.MOBILE_MENU__CONTENT));
|
|
467
352
|
if (!n)
|
|
468
353
|
throw new Error("addMobileMenuContentItem: mobileContentWrapper not found");
|
|
469
|
-
const o =
|
|
470
|
-
return o.appendChild(e), n.appendChild(o), o.setAttribute("id",
|
|
354
|
+
const o = I(Mn);
|
|
355
|
+
return o.appendChild(e), n.appendChild(o), o.setAttribute("id", U()), o;
|
|
471
356
|
}
|
|
472
357
|
function K(e) {
|
|
473
358
|
return typeof e == "function" ? e() : e;
|
|
474
359
|
}
|
|
475
|
-
const Gn = `<div class="utds-badge__wrapper">
|
|
476
|
-
<span class="utds-badge__value"></span>
|
|
477
|
-
<span class="utds-badge__label visually-hidden"></span>
|
|
478
|
-
</div>
|
|
479
|
-
`;
|
|
480
|
-
function at(e) {
|
|
481
|
-
let t = null;
|
|
482
|
-
if (e) {
|
|
483
|
-
t = /** @type {HTMLElement} */
|
|
484
|
-
g(Gn), t.classList.add(a.BADGE_WRAPPER__ACTION_ITEM);
|
|
485
|
-
const n = t.querySelector(p(a.BADGE__LABEL));
|
|
486
|
-
if (!n)
|
|
487
|
-
throw new Error("renderActionItemBadge: badgeLabel not found");
|
|
488
|
-
if (n.appendChild(document.createTextNode(e.label)), e.value || e.value === 0) {
|
|
489
|
-
const o = t.querySelector(p(a.BADGE__VALUE));
|
|
490
|
-
if (!o)
|
|
491
|
-
throw new Error("renderActionItemBadge: badgeValue not found");
|
|
492
|
-
o.appendChild(document.createTextNode(`${e.value}`));
|
|
493
|
-
} else
|
|
494
|
-
t.classList.add(a.BADGE_WRAPPER__SMALL);
|
|
495
|
-
e.className && t.classList.add(e.className);
|
|
496
|
-
}
|
|
497
|
-
return t;
|
|
498
|
-
}
|
|
499
|
-
const $n = `<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
|
|
500
|
-
<h2 class="utds-official-website-popup__heading">
|
|
501
|
-
This is an official website of the State of Utah. Here’s how you know:
|
|
502
|
-
</h2>
|
|
503
|
-
<div class="utds-official-website-popup__content">
|
|
504
|
-
<div class="utds-official-website-popup__col">
|
|
505
|
-
<div class="utds-icon-before-verified big-icon" aria-hidden="true"></div>
|
|
506
|
-
<div>
|
|
507
|
-
<strong>Official Utah websites use utah.gov in the browser's address bar.</strong><br />
|
|
508
|
-
A Utah.gov website belongs to an official government organization in the State of Utah.
|
|
509
|
-
<div class="utds-official-website-popup__address-bar"></div>
|
|
510
|
-
</div>
|
|
511
|
-
</div>
|
|
512
|
-
<div class="utds-official-website-popup__col">
|
|
513
|
-
<div class="utds-icon-before-lock big-icon" aria-hidden="true"></div>
|
|
514
|
-
<div>
|
|
515
|
-
<strong>Be careful when sharing sensitive information.</strong><br />
|
|
516
|
-
Share sensitive information only on secure official Utah.gov websites.
|
|
517
|
-
</div>
|
|
518
|
-
</div>
|
|
519
|
-
<div>
|
|
520
|
-
<svg class="utds-official-website-popup__official-image" viewBox="0 0 105.9496 47.6226" role="img">
|
|
521
|
-
<g>
|
|
522
|
-
<g>
|
|
523
|
-
<path
|
|
524
|
-
d="M12.2714,30.0877c-4.1489,0-7.2318-1.2037-9.2489-3.611C1.0055,24.0693-.002,20.334,0,15.2709V0H7.8175V16.1806c0,2.6363,.356,4.4923,1.0679,5.5679,.7613,1.1018,2.0506,1.7162,3.3859,1.6134,1.3465,.0953,2.6458-.5157,3.4313-1.6134,.7422-1.0756,1.1133-2.9316,1.1133-5.5679V0h7.5448V15.2709c0,5.0601-.9847,8.7946-2.9541,11.2035-1.9694,2.4089-5.0145,3.6133-9.1352,3.6133Zm24.0887-.5463V6.5444h-7.8175V0h23.4526V6.5444h-7.8175V29.5414h-7.8175Zm25.8151-14.362l-.5002,2.0452h5.455l-.5002-2.0452c-.3637-1.4239-.7273-2.9693-1.091-4.636-.3637-1.6667-.7261-3.242-1.0871-4.7259h-.1821c-.3334,1.5151-.6743,3.0983-1.0226,4.7497s-.7053,3.189-1.071,4.6129l-.0008-.0008Zm-11.3617,14.362L59.8127,0h9.4502l9.0023,29.5414h-8.2724l-1.4544-6.2709h-8.2716l-1.4544,6.2709h-7.9988Zm30.2713,0V0h7.8175V10.9991h8.8171V0h7.8175V29.5414h-7.8175v-11.7251h-8.8194v11.7251h-7.8152Z" />
|
|
525
|
-
</g>
|
|
526
|
-
<text transform="translate(.0419 43.5205)" aria-hidden="true">
|
|
527
|
-
<tspan x="0" y="0">An official website</tspan>
|
|
528
|
-
</text>
|
|
529
|
-
</g>
|
|
530
|
-
</svg>
|
|
531
|
-
<div class="utds-official-website-popup__copyright">© State of Utah</div>
|
|
532
|
-
</div>
|
|
533
|
-
</div>
|
|
534
|
-
<button type="button" class="utds-official-website-popup__close-button button icon-button icon-button--borderless"
|
|
535
|
-
tabIndex="-1">
|
|
536
|
-
<span class="utds-icon-before-x-icon" aria-hidden="true"></span>
|
|
537
|
-
<span class="visually-hidden">Close official website popup</span>
|
|
538
|
-
</button>
|
|
539
|
-
</div>
|
|
540
|
-
`;
|
|
541
|
-
function Yt() {
|
|
542
|
-
const e = P(
|
|
543
|
-
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
544
|
-
"openOfficialWebsite: official wrapper not found"
|
|
545
|
-
), t = P(
|
|
546
|
-
document.querySelector(p(a.LOGO)),
|
|
547
|
-
"openOfficialWebsite: logoWrapper not found"
|
|
548
|
-
), n = P(
|
|
549
|
-
t.querySelector(p(a.LOGO_SVG)),
|
|
550
|
-
"openOfficialWebsite: logoButton not found"
|
|
551
|
-
), o = P(
|
|
552
|
-
e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
|
|
553
|
-
"openOfficialWebsite: official close button not found"
|
|
554
|
-
);
|
|
555
|
-
e.classList.add(a.VISUALLY_HIDDEN), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), o.setAttribute("tabIndex", -1), e.setAttribute("tabIndex", -1);
|
|
556
|
-
const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
|
|
557
|
-
r == null || r.forEach((i) => {
|
|
558
|
-
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
function jn() {
|
|
562
|
-
const e = P(
|
|
563
|
-
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
564
|
-
"openOfficialWebsite: official wrapper not found"
|
|
565
|
-
), t = P(
|
|
566
|
-
document.querySelector(p(a.LOGO)),
|
|
567
|
-
"openOfficialWebsite: logoWrapper not found"
|
|
568
|
-
), n = P(
|
|
569
|
-
t.querySelector(p(a.LOGO_SVG)),
|
|
570
|
-
"openOfficialWebsite: logoButton not found"
|
|
571
|
-
), o = P(
|
|
572
|
-
e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
|
|
573
|
-
"openOfficialWebsite: official close button not found"
|
|
574
|
-
);
|
|
575
|
-
e.classList.remove(a.VISUALLY_HIDDEN), o.removeAttribute("tabIndex"), e.removeAttribute("tabIndex"), n.setAttribute("aria-expanded", "true"), e.setAttribute("aria-hidden", "false"), e.focus();
|
|
576
|
-
const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
|
|
577
|
-
r == null || r.forEach((i) => {
|
|
578
|
-
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
579
|
-
}), Ge();
|
|
580
|
-
}
|
|
581
|
-
function zn() {
|
|
582
|
-
const e = g($n), n = (
|
|
583
|
-
/** @type {HTMLElement} */
|
|
584
|
-
document.querySelector(p(a.LOGO)).querySelector(p(a.LOGO_SVG))
|
|
585
|
-
);
|
|
586
|
-
if (!n)
|
|
587
|
-
throw new Error("renderOfficialWebsite: logoButton not found");
|
|
588
|
-
if (n.onclick)
|
|
589
|
-
throw new Error("renderOfficialWebsite: logoButton already has an onclick");
|
|
590
|
-
const o = e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON));
|
|
591
|
-
if (!o)
|
|
592
|
-
throw new Error("renderOfficialWebsite: closeButton not found");
|
|
593
|
-
return n.onclick = () => {
|
|
594
|
-
e.classList.toggle(a.VISUALLY_HIDDEN), e.classList.contains(a.VISUALLY_HIDDEN) ? Yt() : jn();
|
|
595
|
-
const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
|
|
596
|
-
r == null || r.forEach((i) => {
|
|
597
|
-
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
598
|
-
});
|
|
599
|
-
}, o.onclick = () => {
|
|
600
|
-
e.classList.toggle(a.VISUALLY_HIDDEN), n.focus(), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true");
|
|
601
|
-
}, o.id || (o.id = R()), e.id || (e.id = R()), n.setAttribute("aria-controls", e.id), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), e.setAttribute("aria-labelledby", n.id), e;
|
|
602
|
-
}
|
|
603
360
|
function we(e) {
|
|
604
361
|
const t = (
|
|
605
362
|
/** @type {HTMLElement} */
|
|
606
|
-
|
|
363
|
+
O(
|
|
607
364
|
document.querySelector(p(a.MOBILE_MENU)),
|
|
608
365
|
`${e}: mobileMenu not found`
|
|
609
366
|
)
|
|
610
|
-
), n =
|
|
367
|
+
), n = O(
|
|
611
368
|
document.getElementById(a.MAIN_MENU__HAMBURGER_ID),
|
|
612
369
|
`${e}: hamburger not found (🍔 🎶 I will gladly pay you Tuesday for a hamburger today 🎵 🍔)`
|
|
613
370
|
), o = (
|
|
614
371
|
/** @type {HTMLElement} */
|
|
615
|
-
|
|
372
|
+
O(
|
|
616
373
|
document.getElementById(a.MAIN_MENU__HAMBURGER_ICON_ID),
|
|
617
374
|
`${e}: hamburgerIcon not found`
|
|
618
375
|
)
|
|
@@ -623,76 +380,18 @@ function we(e) {
|
|
|
623
380
|
mobileMenu: t
|
|
624
381
|
};
|
|
625
382
|
}
|
|
626
|
-
function
|
|
383
|
+
function qe() {
|
|
627
384
|
const { hamburger: e, hamburgerIcon: t, mobileMenu: n } = we("hideMobileMenu");
|
|
628
|
-
e.setAttribute("aria-expanded", "false"), n.classList.remove(a.IS_OPEN), t.classList.add("utds-icon-before-hamburger"), t.classList.remove("utds-icon-before-x-icon");
|
|
385
|
+
e.setAttribute("aria-expanded", "false"), n.classList.remove(a.IS_OPEN), e.setAttribute("aria-label", "Open the mobile menu"), t.classList.add("utds-icon-before-hamburger"), t.classList.remove("utds-icon-before-x-icon");
|
|
629
386
|
}
|
|
630
|
-
function
|
|
387
|
+
function An() {
|
|
631
388
|
var r;
|
|
632
389
|
const e = document.querySelector(p(a.MAIN_MENU));
|
|
633
390
|
e != null && e.classList.contains(a.MOBILE__HIDDEN) && ((r = document.querySelector(`${p(a.UTAH_DESIGN_SYSTEM)}${p(a.MOBILE_MENU)}`)) == null || r.classList.add(a.MAIN_MENU__REMOVED));
|
|
634
391
|
const { hamburger: t, hamburgerIcon: n, mobileMenu: o } = we("showMobileMenu");
|
|
635
|
-
t.setAttribute("aria-expanded", "true"), o.classList.add(a.IS_OPEN), n.classList.remove("utds-icon-before-hamburger"), n.classList.add("utds-icon-before-x-icon");
|
|
636
|
-
}
|
|
637
|
-
function Zn(e) {
|
|
638
|
-
var l, c;
|
|
639
|
-
const { hamburger: t } = we("hookupHamburger"), n = O();
|
|
640
|
-
if ((l = n.actionItems) == null ? void 0 : l.some((d) => !!d.badge)) {
|
|
641
|
-
const d = at({ label: "Home Badge" });
|
|
642
|
-
d && t.appendChild(d);
|
|
643
|
-
}
|
|
644
|
-
Ge();
|
|
645
|
-
function r() {
|
|
646
|
-
const d = P(
|
|
647
|
-
/** @type {HTMLElement} */
|
|
648
|
-
document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
|
|
649
|
-
"hookupHamburger: no action items to select on mobile hamburger open"
|
|
650
|
-
), h = d.querySelector("button"), f = h == null ? void 0 : h.getAttribute("aria-controls");
|
|
651
|
-
return { actionItem: d, actionItemWrapper: f ? document.getElementById(f) : null };
|
|
652
|
-
}
|
|
653
|
-
const i = P(
|
|
654
|
-
/** @type {HTMLElement} */
|
|
655
|
-
document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
|
|
656
|
-
"hookupHamburger: no action items to select on mobile hamburger open"
|
|
657
|
-
), u = (c = i.querySelector) == null ? void 0 : c.call(i, "button"), s = (u || i).getAttribute("id");
|
|
658
|
-
if (!s)
|
|
659
|
-
throw new Error("mobileMenuInteractionHandler: actionItemId not found");
|
|
660
|
-
if (e) {
|
|
661
|
-
const d = e.getAttribute("id");
|
|
662
|
-
if (!d)
|
|
663
|
-
throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");
|
|
664
|
-
(u || i).setAttribute("aria-controls", d), e.setAttribute("aria-labelledby", s);
|
|
665
|
-
}
|
|
666
|
-
st(
|
|
667
|
-
t,
|
|
668
|
-
() => r().actionItemWrapper,
|
|
669
|
-
() => r().actionItem,
|
|
670
|
-
{
|
|
671
|
-
additionalOnClick: () => Yt(),
|
|
672
|
-
ariaHasPopupType: "menu",
|
|
673
|
-
shouldOnClickCloseMenu: !0
|
|
674
|
-
}
|
|
675
|
-
), ee(!!t.onblur, "hookupHamburger: hamburger already has an onblur event"), t.onblur = () => {
|
|
676
|
-
const { mobileMenu: d } = we("showMobileMenu");
|
|
677
|
-
if (d.classList.contains(a.IS_OPEN)) {
|
|
678
|
-
const h = p(a.MOBILE_MENU__ACTION_BAR), f = p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER), _ = p(a.ICON_BUTTON), m = (
|
|
679
|
-
/** @type {HTMLElement | null} */
|
|
680
|
-
document.querySelector(`${h} ${f}:first-child ${_}`)
|
|
681
|
-
);
|
|
682
|
-
m == null || m.focus();
|
|
683
|
-
}
|
|
684
|
-
}, (n.mainMenu || n.actionItems) && !n.onSearch && n.utahId === !1 && (P(
|
|
685
|
-
document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
|
|
686
|
-
"hookupHamburger: citizen experience mobile not found"
|
|
687
|
-
).appendChild(t), P(
|
|
688
|
-
document.querySelector(p(a.MAIN_MENU)),
|
|
689
|
-
"hookupHamburger: main menu not found"
|
|
690
|
-
).classList.add(a.MOBILE__HIDDEN)), n.onSearch && !n.mainMenu && P(
|
|
691
|
-
document.querySelector(p(a.MAIN_MENU)),
|
|
692
|
-
"renderMainMenu: main menu not found"
|
|
693
|
-
).classList.add(a.DESKTOP__HIDDEN);
|
|
392
|
+
t.setAttribute("aria-expanded", "true"), o.classList.add(a.IS_OPEN), t.setAttribute("aria-label", "Close the mobile menu"), n.classList.remove("utds-icon-before-hamburger"), n.classList.add("utds-icon-before-x-icon");
|
|
694
393
|
}
|
|
695
|
-
function
|
|
394
|
+
function Ze(e, t) {
|
|
696
395
|
e.querySelectorAll(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)).forEach((o) => {
|
|
697
396
|
o.classList.remove(a.ACTION_ITEM__SELECTED);
|
|
698
397
|
const r = o.querySelector("button");
|
|
@@ -705,16 +404,16 @@ function Je(e, t) {
|
|
|
705
404
|
throw new Error("showActionItem: actionWrapper does not have actionItem B");
|
|
706
405
|
n.setAttribute("aria-selected", "true"), n.removeAttribute("tabIndex"), n.focus();
|
|
707
406
|
}
|
|
708
|
-
function
|
|
407
|
+
function Lt(e, t) {
|
|
709
408
|
e.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach((n) => n.classList.remove(a.IS_OPEN)), t.classList.add(a.IS_OPEN);
|
|
710
409
|
}
|
|
711
|
-
function
|
|
410
|
+
function ot(e, t, n, {
|
|
712
411
|
ariaHasPopupType: o,
|
|
713
412
|
additionalOnClick: r,
|
|
714
413
|
onClickHandler: i,
|
|
715
414
|
shouldOnClickCloseMenu: u
|
|
716
415
|
}) {
|
|
717
|
-
var
|
|
416
|
+
var h, _;
|
|
718
417
|
if (t && !o)
|
|
719
418
|
throw new Error("mobileMenuInteractionHandler: there is content, but the aria type is not given");
|
|
720
419
|
const s = (
|
|
@@ -735,16 +434,16 @@ function st(e, t, n, {
|
|
|
735
434
|
);
|
|
736
435
|
if (!c)
|
|
737
436
|
throw new Error("mobileMenuInteractionHandler: mobileContentWrapper not found");
|
|
738
|
-
const d = K(n),
|
|
437
|
+
const d = K(n), m = (_ = (h = K(n)) == null ? void 0 : h.querySelector) == null ? void 0 : _.call(h, "button"), f = (m || e).getAttribute("id");
|
|
739
438
|
if (!f)
|
|
740
439
|
throw new Error("mobileMenuInteractionHandler: interactiveElementId not found");
|
|
741
440
|
if (t) {
|
|
742
441
|
const E = K(t);
|
|
743
442
|
if (E) {
|
|
744
|
-
const
|
|
745
|
-
if (!
|
|
443
|
+
const b = E.getAttribute("id");
|
|
444
|
+
if (!b)
|
|
746
445
|
throw new Error("mobileMenuInteractionHandler: mobileMenuContentId not found");
|
|
747
|
-
(
|
|
446
|
+
(m || e).setAttribute("aria-controls", b), E.setAttribute("aria-labelledby", f);
|
|
748
447
|
}
|
|
749
448
|
}
|
|
750
449
|
if (e.onclick)
|
|
@@ -752,40 +451,40 @@ function st(e, t, n, {
|
|
|
752
451
|
if (e.onclick = (E) => {
|
|
753
452
|
if (!(i != null && i(E)))
|
|
754
453
|
if (r == null || r(E), s.classList.contains(a.IS_OPEN))
|
|
755
|
-
u &&
|
|
454
|
+
u && qe();
|
|
756
455
|
else {
|
|
757
|
-
|
|
758
|
-
const
|
|
759
|
-
|
|
456
|
+
An();
|
|
457
|
+
const g = K(t);
|
|
458
|
+
g && Lt(c, g), Ze(l, K(n));
|
|
760
459
|
}
|
|
761
460
|
}, t) {
|
|
762
461
|
if (d !== e && d.onclick)
|
|
763
462
|
throw new Error("mobileMenuInteractionHandler: actionItemWrapperValue already has onclick");
|
|
764
463
|
d.onclick = (E) => {
|
|
765
464
|
if (!(i != null && i(E))) {
|
|
766
|
-
const
|
|
767
|
-
|
|
465
|
+
const b = K(t);
|
|
466
|
+
b && Lt(c, b), Ze(l, K(n));
|
|
768
467
|
}
|
|
769
468
|
};
|
|
770
469
|
}
|
|
771
470
|
}
|
|
772
|
-
const
|
|
471
|
+
const wn = `<div class="utds-header-mobile-menu__action-item" role="tab">
|
|
773
472
|
<button type="button" class="icon-button icon-button--borderless utds-header-action-item__icon-button">
|
|
774
473
|
<div class="utds-header-action-item__title visually-hidden"></div>
|
|
775
474
|
<span aria-hidden="true" role="presentation">
|
|
776
475
|
</button>
|
|
777
476
|
<span class="menu-chiclet"></span>
|
|
778
477
|
</div>
|
|
779
|
-
`,
|
|
478
|
+
`, On = `<div class="utds-header-action-item-menu">
|
|
780
479
|
<div class="vertical-menu__wrapper-title"></div>
|
|
781
480
|
</div>
|
|
782
|
-
`,
|
|
783
|
-
`,
|
|
481
|
+
`, Ln = `<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
|
|
482
|
+
`, Gt = `<span class="utds-new-tab-link-a11y">
|
|
784
483
|
<span class="visually-hidden">opens in a new tab</span>
|
|
785
484
|
<span class="utds-icon-after-external-link" aria-hidden="true"></span>
|
|
786
485
|
</span>
|
|
787
|
-
`,
|
|
788
|
-
`,
|
|
486
|
+
`, yn = `<ul class="vertical-menu" role="menu" />
|
|
487
|
+
`, Pn = `<li class="vertical-menu__item">
|
|
789
488
|
<span class="vertical-menu__title">
|
|
790
489
|
<span class="vertical-menu__plain-title"></span>
|
|
791
490
|
<a href="#" class="vertical-menu__link-title">
|
|
@@ -797,7 +496,7 @@ const Kn = `<div class="utds-header-mobile-menu__action-item" role="tab">
|
|
|
797
496
|
</span>
|
|
798
497
|
<span class="vertical-menu__divider" />
|
|
799
498
|
</li>
|
|
800
|
-
`,
|
|
499
|
+
`, rt = {
|
|
801
500
|
AUTO: (
|
|
802
501
|
/** @type {PopupPlacement} */
|
|
803
502
|
"auto"
|
|
@@ -859,20 +558,20 @@ const Kn = `<div class="utds-header-mobile-menu__action-item" role="tab">
|
|
|
859
558
|
"top-end"
|
|
860
559
|
)
|
|
861
560
|
};
|
|
862
|
-
function
|
|
561
|
+
function ke(e, t, n) {
|
|
863
562
|
var r;
|
|
864
563
|
let o = !1;
|
|
865
|
-
return e && (Array.isArray(e) ? o = e.some((i) =>
|
|
866
|
-
}
|
|
867
|
-
var H = "top",
|
|
868
|
-
return e.concat([t + "-" +
|
|
869
|
-
}, []),
|
|
870
|
-
return e.concat([t, t + "-" +
|
|
871
|
-
}, []),
|
|
872
|
-
function
|
|
564
|
+
return e && (Array.isArray(e) ? o = e.some((i) => ke(i, t, n)) : (o = n(e), o || (o = !!((r = t == null ? void 0 : t.filter((i) => e[i])) != null && r.some((i) => ke(e[i], t, n)))))), o;
|
|
565
|
+
}
|
|
566
|
+
var H = "top", V = "bottom", $ = "right", x = "left", it = "auto", Ne = [H, V, $, x], de = "start", Oe = "end", Nn = "clippingParents", zt = "viewport", ve = "popper", Sn = "reference", yt = /* @__PURE__ */ Ne.reduce(function(e, t) {
|
|
567
|
+
return e.concat([t + "-" + de, t + "-" + Oe]);
|
|
568
|
+
}, []), Yt = /* @__PURE__ */ [].concat(Ne, [it]).reduce(function(e, t) {
|
|
569
|
+
return e.concat([t, t + "-" + de, t + "-" + Oe]);
|
|
570
|
+
}, []), Un = "beforeRead", Cn = "read", Rn = "afterRead", Dn = "beforeMain", Bn = "main", Hn = "afterMain", xn = "beforeWrite", Wn = "write", kn = "afterWrite", Fn = [Un, Cn, Rn, Dn, Bn, Hn, xn, Wn, kn];
|
|
571
|
+
function Z(e) {
|
|
873
572
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
874
573
|
}
|
|
875
|
-
function
|
|
574
|
+
function F(e) {
|
|
876
575
|
if (e == null)
|
|
877
576
|
return window;
|
|
878
577
|
if (e.toString() !== "[object Window]") {
|
|
@@ -881,31 +580,31 @@ function V(e) {
|
|
|
881
580
|
}
|
|
882
581
|
return e;
|
|
883
582
|
}
|
|
884
|
-
function
|
|
885
|
-
var t =
|
|
583
|
+
function le(e) {
|
|
584
|
+
var t = F(e).Element;
|
|
886
585
|
return e instanceof t || e instanceof Element;
|
|
887
586
|
}
|
|
888
587
|
function q(e) {
|
|
889
|
-
var t =
|
|
588
|
+
var t = F(e).HTMLElement;
|
|
890
589
|
return e instanceof t || e instanceof HTMLElement;
|
|
891
590
|
}
|
|
892
|
-
function
|
|
591
|
+
function at(e) {
|
|
893
592
|
if (typeof ShadowRoot > "u")
|
|
894
593
|
return !1;
|
|
895
|
-
var t =
|
|
594
|
+
var t = F(e).ShadowRoot;
|
|
896
595
|
return e instanceof t || e instanceof ShadowRoot;
|
|
897
596
|
}
|
|
898
|
-
function
|
|
597
|
+
function qn(e) {
|
|
899
598
|
var t = e.state;
|
|
900
599
|
Object.keys(t.elements).forEach(function(n) {
|
|
901
600
|
var o = t.styles[n] || {}, r = t.attributes[n] || {}, i = t.elements[n];
|
|
902
|
-
!q(i) || !
|
|
601
|
+
!q(i) || !Z(i) || (Object.assign(i.style, o), Object.keys(r).forEach(function(u) {
|
|
903
602
|
var s = r[u];
|
|
904
603
|
s === !1 ? i.removeAttribute(u) : i.setAttribute(u, s === !0 ? "" : s);
|
|
905
604
|
}));
|
|
906
605
|
});
|
|
907
606
|
}
|
|
908
|
-
function
|
|
607
|
+
function Vn(e) {
|
|
909
608
|
var t = e.state, n = {
|
|
910
609
|
popper: {
|
|
911
610
|
position: t.options.strategy,
|
|
@@ -923,51 +622,51 @@ function _o(e) {
|
|
|
923
622
|
var r = t.elements[o], i = t.attributes[o] || {}, u = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]), s = u.reduce(function(l, c) {
|
|
924
623
|
return l[c] = "", l;
|
|
925
624
|
}, {});
|
|
926
|
-
!q(r) || !
|
|
625
|
+
!q(r) || !Z(r) || (Object.assign(r.style, s), Object.keys(i).forEach(function(l) {
|
|
927
626
|
r.removeAttribute(l);
|
|
928
627
|
}));
|
|
929
628
|
});
|
|
930
629
|
};
|
|
931
630
|
}
|
|
932
|
-
const
|
|
631
|
+
const $n = {
|
|
933
632
|
name: "applyStyles",
|
|
934
633
|
enabled: !0,
|
|
935
634
|
phase: "write",
|
|
936
|
-
fn:
|
|
937
|
-
effect:
|
|
635
|
+
fn: qn,
|
|
636
|
+
effect: Vn,
|
|
938
637
|
requires: ["computeStyles"]
|
|
939
638
|
};
|
|
940
|
-
function
|
|
639
|
+
function j(e) {
|
|
941
640
|
return e.split("-")[0];
|
|
942
641
|
}
|
|
943
|
-
var
|
|
944
|
-
function
|
|
642
|
+
var se = Math.max, Fe = Math.min, pe = Math.round;
|
|
643
|
+
function Xe() {
|
|
945
644
|
var e = navigator.userAgentData;
|
|
946
645
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
947
646
|
return t.brand + "/" + t.version;
|
|
948
647
|
}).join(" ") : navigator.userAgent;
|
|
949
648
|
}
|
|
950
|
-
function
|
|
951
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
649
|
+
function Kt() {
|
|
650
|
+
return !/^((?!chrome|android).)*safari/i.test(Xe());
|
|
952
651
|
}
|
|
953
|
-
function
|
|
652
|
+
function fe(e, t, n) {
|
|
954
653
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
955
654
|
var o = e.getBoundingClientRect(), r = 1, i = 1;
|
|
956
|
-
t && q(e) && (r = e.offsetWidth > 0 &&
|
|
957
|
-
var u =
|
|
655
|
+
t && q(e) && (r = e.offsetWidth > 0 && pe(o.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && pe(o.height) / e.offsetHeight || 1);
|
|
656
|
+
var u = le(e) ? F(e) : window, s = u.visualViewport, l = !Kt() && n, c = (o.left + (l && s ? s.offsetLeft : 0)) / r, d = (o.top + (l && s ? s.offsetTop : 0)) / i, m = o.width / r, f = o.height / i;
|
|
958
657
|
return {
|
|
959
|
-
width:
|
|
658
|
+
width: m,
|
|
960
659
|
height: f,
|
|
961
660
|
top: d,
|
|
962
|
-
right: c +
|
|
661
|
+
right: c + m,
|
|
963
662
|
bottom: d + f,
|
|
964
663
|
left: c,
|
|
965
664
|
x: c,
|
|
966
665
|
y: d
|
|
967
666
|
};
|
|
968
667
|
}
|
|
969
|
-
function
|
|
970
|
-
var t =
|
|
668
|
+
function st(e) {
|
|
669
|
+
var t = fe(e), n = e.offsetWidth, o = e.offsetHeight;
|
|
971
670
|
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), {
|
|
972
671
|
x: e.offsetLeft,
|
|
973
672
|
y: e.offsetTop,
|
|
@@ -975,11 +674,11 @@ function ut(e) {
|
|
|
975
674
|
height: o
|
|
976
675
|
};
|
|
977
676
|
}
|
|
978
|
-
function
|
|
677
|
+
function jt(e, t) {
|
|
979
678
|
var n = t.getRootNode && t.getRootNode();
|
|
980
679
|
if (e.contains(t))
|
|
981
680
|
return !0;
|
|
982
|
-
if (n &&
|
|
681
|
+
if (n && at(n)) {
|
|
983
682
|
var o = t;
|
|
984
683
|
do {
|
|
985
684
|
if (o && e.isSameNode(o))
|
|
@@ -989,66 +688,66 @@ function Qt(e, t) {
|
|
|
989
688
|
}
|
|
990
689
|
return !1;
|
|
991
690
|
}
|
|
992
|
-
function
|
|
993
|
-
return
|
|
691
|
+
function J(e) {
|
|
692
|
+
return F(e).getComputedStyle(e);
|
|
994
693
|
}
|
|
995
|
-
function
|
|
996
|
-
return ["table", "td", "th"].indexOf(
|
|
694
|
+
function Gn(e) {
|
|
695
|
+
return ["table", "td", "th"].indexOf(Z(e)) >= 0;
|
|
997
696
|
}
|
|
998
|
-
function
|
|
999
|
-
return ((
|
|
697
|
+
function ee(e) {
|
|
698
|
+
return ((le(e) ? e.ownerDocument : (
|
|
1000
699
|
// $FlowFixMe[prop-missing]
|
|
1001
700
|
e.document
|
|
1002
701
|
)) || window.document).documentElement;
|
|
1003
702
|
}
|
|
1004
|
-
function
|
|
1005
|
-
return
|
|
703
|
+
function Ve(e) {
|
|
704
|
+
return Z(e) === "html" ? e : (
|
|
1006
705
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
1007
706
|
// $FlowFixMe[incompatible-return]
|
|
1008
707
|
// $FlowFixMe[prop-missing]
|
|
1009
708
|
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
1010
709
|
e.parentNode || // DOM Element detected
|
|
1011
|
-
(
|
|
710
|
+
(at(e) ? e.host : null) || // ShadowRoot detected
|
|
1012
711
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
1013
|
-
|
|
712
|
+
ee(e)
|
|
1014
713
|
);
|
|
1015
714
|
}
|
|
1016
|
-
function
|
|
715
|
+
function Pt(e) {
|
|
1017
716
|
return !q(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
1018
|
-
|
|
717
|
+
J(e).position === "fixed" ? null : e.offsetParent;
|
|
1019
718
|
}
|
|
1020
|
-
function
|
|
1021
|
-
var t = /firefox/i.test(
|
|
719
|
+
function zn(e) {
|
|
720
|
+
var t = /firefox/i.test(Xe()), n = /Trident/i.test(Xe());
|
|
1022
721
|
if (n && q(e)) {
|
|
1023
|
-
var o =
|
|
722
|
+
var o = J(e);
|
|
1024
723
|
if (o.position === "fixed")
|
|
1025
724
|
return null;
|
|
1026
725
|
}
|
|
1027
|
-
var r =
|
|
1028
|
-
for (
|
|
1029
|
-
var i =
|
|
726
|
+
var r = Ve(e);
|
|
727
|
+
for (at(r) && (r = r.host); q(r) && ["html", "body"].indexOf(Z(r)) < 0; ) {
|
|
728
|
+
var i = J(r);
|
|
1030
729
|
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
|
|
1031
730
|
return r;
|
|
1032
731
|
r = r.parentNode;
|
|
1033
732
|
}
|
|
1034
733
|
return null;
|
|
1035
734
|
}
|
|
1036
|
-
function
|
|
1037
|
-
for (var t =
|
|
1038
|
-
n =
|
|
1039
|
-
return n && (
|
|
735
|
+
function Se(e) {
|
|
736
|
+
for (var t = F(e), n = Pt(e); n && Gn(n) && J(n).position === "static"; )
|
|
737
|
+
n = Pt(n);
|
|
738
|
+
return n && (Z(n) === "html" || Z(n) === "body" && J(n).position === "static") ? t : n || zn(e) || t;
|
|
1040
739
|
}
|
|
1041
|
-
function
|
|
740
|
+
function lt(e) {
|
|
1042
741
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
1043
742
|
}
|
|
1044
|
-
function
|
|
1045
|
-
return
|
|
743
|
+
function ge(e, t, n) {
|
|
744
|
+
return se(e, Fe(t, n));
|
|
1046
745
|
}
|
|
1047
|
-
function
|
|
1048
|
-
var o =
|
|
746
|
+
function Yn(e, t, n) {
|
|
747
|
+
var o = ge(e, t, n);
|
|
1049
748
|
return o > n ? n : o;
|
|
1050
749
|
}
|
|
1051
|
-
function
|
|
750
|
+
function Zt() {
|
|
1052
751
|
return {
|
|
1053
752
|
top: 0,
|
|
1054
753
|
right: 0,
|
|
@@ -1056,131 +755,114 @@ function en() {
|
|
|
1056
755
|
left: 0
|
|
1057
756
|
};
|
|
1058
757
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return Object.assign({},
|
|
758
|
+
function Xt(e) {
|
|
759
|
+
return Object.assign({}, Zt(), e);
|
|
1061
760
|
}
|
|
1062
|
-
function
|
|
761
|
+
function Jt(e, t) {
|
|
1063
762
|
return t.reduce(function(n, o) {
|
|
1064
763
|
return n[o] = e, n;
|
|
1065
764
|
}, {});
|
|
1066
765
|
}
|
|
1067
|
-
var
|
|
766
|
+
var Kn = function(t, n) {
|
|
1068
767
|
return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
|
|
1069
768
|
placement: n.placement
|
|
1070
|
-
})) : t,
|
|
769
|
+
})) : t, Xt(typeof t != "number" ? t : Jt(t, Ne));
|
|
1071
770
|
};
|
|
1072
|
-
function
|
|
1073
|
-
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets, s =
|
|
771
|
+
function jn(e) {
|
|
772
|
+
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets, s = j(n.placement), l = lt(s), c = [x, $].indexOf(s) >= 0, d = c ? "height" : "width";
|
|
1074
773
|
if (!(!i || !u)) {
|
|
1075
|
-
var
|
|
1076
|
-
n.modifiersData[o] = (t = {}, t[
|
|
774
|
+
var m = Kn(r.padding, n), f = st(i), h = l === "y" ? H : x, _ = l === "y" ? V : $, E = n.rects.reference[d] + n.rects.reference[l] - u[l] - n.rects.popper[d], b = u[l] - n.rects.reference[l], g = Se(i), M = g ? l === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, w = E / 2 - b / 2, v = m[h], T = M - f[d] - m[_], A = M / 2 - f[d] / 2 + w, P = ge(v, A, T), C = l;
|
|
775
|
+
n.modifiersData[o] = (t = {}, t[C] = P, t.centerOffset = P - A, t);
|
|
1077
776
|
}
|
|
1078
777
|
}
|
|
1079
|
-
function
|
|
778
|
+
function Zn(e) {
|
|
1080
779
|
var t = e.state, n = e.options, o = n.element, r = o === void 0 ? "[data-popper-arrow]" : o;
|
|
1081
|
-
|
|
1082
|
-
if ({}.NODE_ENV !== "production" && (q(r) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !Qt(t.elements.popper, r)) {
|
|
1083
|
-
({}).NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
1084
|
-
return;
|
|
1085
|
-
}
|
|
1086
|
-
t.elements.arrow = r;
|
|
1087
|
-
}
|
|
780
|
+
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || jt(t.elements.popper, r) && (t.elements.arrow = r));
|
|
1088
781
|
}
|
|
1089
|
-
const
|
|
782
|
+
const Xn = {
|
|
1090
783
|
name: "arrow",
|
|
1091
784
|
enabled: !0,
|
|
1092
785
|
phase: "main",
|
|
1093
|
-
fn:
|
|
1094
|
-
effect:
|
|
786
|
+
fn: jn,
|
|
787
|
+
effect: Zn,
|
|
1095
788
|
requires: ["popperOffsets"],
|
|
1096
789
|
requiresIfExists: ["preventOverflow"]
|
|
1097
790
|
};
|
|
1098
|
-
function
|
|
791
|
+
function _e(e) {
|
|
1099
792
|
return e.split("-")[1];
|
|
1100
793
|
}
|
|
1101
|
-
var
|
|
794
|
+
var Jn = {
|
|
1102
795
|
top: "auto",
|
|
1103
796
|
right: "auto",
|
|
1104
797
|
bottom: "auto",
|
|
1105
798
|
left: "auto"
|
|
1106
799
|
};
|
|
1107
|
-
function
|
|
800
|
+
function Qn(e, t) {
|
|
1108
801
|
var n = e.x, o = e.y, r = t.devicePixelRatio || 1;
|
|
1109
802
|
return {
|
|
1110
|
-
x:
|
|
1111
|
-
y:
|
|
803
|
+
x: pe(n * r) / r || 0,
|
|
804
|
+
y: pe(o * r) / r || 0
|
|
1112
805
|
};
|
|
1113
806
|
}
|
|
1114
|
-
function
|
|
1115
|
-
var t, n = e.popper, o = e.popperRect, r = e.placement, i = e.variation, u = e.offsets, s = e.position, l = e.gpuAcceleration, c = e.adaptive, d = e.roundOffsets,
|
|
1116
|
-
x:
|
|
807
|
+
function Nt(e) {
|
|
808
|
+
var t, n = e.popper, o = e.popperRect, r = e.placement, i = e.variation, u = e.offsets, s = e.position, l = e.gpuAcceleration, c = e.adaptive, d = e.roundOffsets, m = e.isFixed, f = u.x, h = f === void 0 ? 0 : f, _ = u.y, E = _ === void 0 ? 0 : _, b = typeof d == "function" ? d({
|
|
809
|
+
x: h,
|
|
1117
810
|
y: E
|
|
1118
811
|
}) : {
|
|
1119
|
-
x:
|
|
812
|
+
x: h,
|
|
1120
813
|
y: E
|
|
1121
814
|
};
|
|
1122
|
-
|
|
1123
|
-
var
|
|
815
|
+
h = b.x, E = b.y;
|
|
816
|
+
var g = u.hasOwnProperty("x"), M = u.hasOwnProperty("y"), w = x, v = H, T = window;
|
|
1124
817
|
if (c) {
|
|
1125
|
-
var
|
|
1126
|
-
if (
|
|
1127
|
-
|
|
1128
|
-
var
|
|
818
|
+
var A = Se(n), P = "clientHeight", C = "clientWidth";
|
|
819
|
+
if (A === F(n) && (A = ee(n), J(A).position !== "static" && s === "absolute" && (P = "scrollHeight", C = "scrollWidth")), A = A, r === H || (r === x || r === $) && i === Oe) {
|
|
820
|
+
v = V;
|
|
821
|
+
var S = m && A === T && T.visualViewport ? T.visualViewport.height : (
|
|
1129
822
|
// $FlowFixMe[prop-missing]
|
|
1130
|
-
|
|
823
|
+
A[P]
|
|
1131
824
|
);
|
|
1132
|
-
E -=
|
|
825
|
+
E -= S - o.height, E *= l ? 1 : -1;
|
|
1133
826
|
}
|
|
1134
|
-
if (r === x || (r === H || r ===
|
|
1135
|
-
|
|
1136
|
-
var
|
|
827
|
+
if (r === x || (r === H || r === V) && i === Oe) {
|
|
828
|
+
w = $;
|
|
829
|
+
var N = m && A === T && T.visualViewport ? T.visualViewport.width : (
|
|
1137
830
|
// $FlowFixMe[prop-missing]
|
|
1138
|
-
|
|
831
|
+
A[C]
|
|
1139
832
|
);
|
|
1140
|
-
|
|
833
|
+
h -= N - o.width, h *= l ? 1 : -1;
|
|
1141
834
|
}
|
|
1142
835
|
}
|
|
1143
|
-
var
|
|
836
|
+
var R = Object.assign({
|
|
1144
837
|
position: s
|
|
1145
|
-
}, c &&
|
|
1146
|
-
x:
|
|
838
|
+
}, c && Jn), G = d === !0 ? Qn({
|
|
839
|
+
x: h,
|
|
1147
840
|
y: E
|
|
1148
|
-
},
|
|
1149
|
-
x:
|
|
841
|
+
}, F(n)) : {
|
|
842
|
+
x: h,
|
|
1150
843
|
y: E
|
|
1151
844
|
};
|
|
1152
|
-
if (
|
|
1153
|
-
var
|
|
1154
|
-
return Object.assign({},
|
|
845
|
+
if (h = G.x, E = G.y, l) {
|
|
846
|
+
var D;
|
|
847
|
+
return Object.assign({}, R, (D = {}, D[v] = M ? "0" : "", D[w] = g ? "0" : "", D.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + E + "px)" : "translate3d(" + h + "px, " + E + "px, 0)", D));
|
|
1155
848
|
}
|
|
1156
|
-
return Object.assign({},
|
|
849
|
+
return Object.assign({}, R, (t = {}, t[v] = M ? E + "px" : "", t[w] = g ? h + "px" : "", t.transform = "", t));
|
|
1157
850
|
}
|
|
1158
|
-
function
|
|
1159
|
-
var t = e.state, n = e.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, i = n.adaptive, u = i === void 0 ? !0 : i, s = n.roundOffsets, l = s === void 0 ? !0 : s
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
u && ["transform", "top", "right", "bottom", "left"].some(function(h) {
|
|
1163
|
-
return c.indexOf(h) >= 0;
|
|
1164
|
-
}) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
|
|
1165
|
-
|
|
1166
|
-
`, 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", `
|
|
1167
|
-
|
|
1168
|
-
`, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
|
|
1169
|
-
}
|
|
1170
|
-
var d = {
|
|
1171
|
-
placement: z(t.placement),
|
|
1172
|
-
variation: me(t.placement),
|
|
851
|
+
function eo(e) {
|
|
852
|
+
var t = e.state, n = e.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, i = n.adaptive, u = i === void 0 ? !0 : i, s = n.roundOffsets, l = s === void 0 ? !0 : s, c = {
|
|
853
|
+
placement: j(t.placement),
|
|
854
|
+
variation: _e(t.placement),
|
|
1173
855
|
popper: t.elements.popper,
|
|
1174
856
|
popperRect: t.rects.popper,
|
|
1175
857
|
gpuAcceleration: r,
|
|
1176
858
|
isFixed: t.options.strategy === "fixed"
|
|
1177
859
|
};
|
|
1178
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
860
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Nt(Object.assign({}, c, {
|
|
1179
861
|
offsets: t.modifiersData.popperOffsets,
|
|
1180
862
|
position: t.options.strategy,
|
|
1181
863
|
adaptive: u,
|
|
1182
864
|
roundOffsets: l
|
|
1183
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
865
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Nt(Object.assign({}, c, {
|
|
1184
866
|
offsets: t.modifiersData.arrow,
|
|
1185
867
|
position: "absolute",
|
|
1186
868
|
adaptive: !1,
|
|
@@ -1189,105 +871,105 @@ function Oo(e) {
|
|
|
1189
871
|
"data-popper-placement": t.placement
|
|
1190
872
|
});
|
|
1191
873
|
}
|
|
1192
|
-
const
|
|
874
|
+
const to = {
|
|
1193
875
|
name: "computeStyles",
|
|
1194
876
|
enabled: !0,
|
|
1195
877
|
phase: "beforeWrite",
|
|
1196
|
-
fn:
|
|
878
|
+
fn: eo,
|
|
1197
879
|
data: {}
|
|
1198
880
|
};
|
|
1199
|
-
var
|
|
881
|
+
var He = {
|
|
1200
882
|
passive: !0
|
|
1201
883
|
};
|
|
1202
|
-
function
|
|
1203
|
-
var t = e.state, n = e.instance, o = e.options, r = o.scroll, i = r === void 0 ? !0 : r, u = o.resize, s = u === void 0 ? !0 : u, l =
|
|
884
|
+
function no(e) {
|
|
885
|
+
var t = e.state, n = e.instance, o = e.options, r = o.scroll, i = r === void 0 ? !0 : r, u = o.resize, s = u === void 0 ? !0 : u, l = F(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
1204
886
|
return i && c.forEach(function(d) {
|
|
1205
|
-
d.addEventListener("scroll", n.update,
|
|
1206
|
-
}), s && l.addEventListener("resize", n.update,
|
|
887
|
+
d.addEventListener("scroll", n.update, He);
|
|
888
|
+
}), s && l.addEventListener("resize", n.update, He), function() {
|
|
1207
889
|
i && c.forEach(function(d) {
|
|
1208
|
-
d.removeEventListener("scroll", n.update,
|
|
1209
|
-
}), s && l.removeEventListener("resize", n.update,
|
|
890
|
+
d.removeEventListener("scroll", n.update, He);
|
|
891
|
+
}), s && l.removeEventListener("resize", n.update, He);
|
|
1210
892
|
};
|
|
1211
893
|
}
|
|
1212
|
-
const
|
|
894
|
+
const oo = {
|
|
1213
895
|
name: "eventListeners",
|
|
1214
896
|
enabled: !0,
|
|
1215
897
|
phase: "write",
|
|
1216
898
|
fn: function() {
|
|
1217
899
|
},
|
|
1218
|
-
effect:
|
|
900
|
+
effect: no,
|
|
1219
901
|
data: {}
|
|
1220
902
|
};
|
|
1221
|
-
var
|
|
903
|
+
var ro = {
|
|
1222
904
|
left: "right",
|
|
1223
905
|
right: "left",
|
|
1224
906
|
bottom: "top",
|
|
1225
907
|
top: "bottom"
|
|
1226
908
|
};
|
|
1227
|
-
function
|
|
909
|
+
function We(e) {
|
|
1228
910
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
1229
|
-
return
|
|
911
|
+
return ro[t];
|
|
1230
912
|
});
|
|
1231
913
|
}
|
|
1232
|
-
var
|
|
914
|
+
var io = {
|
|
1233
915
|
start: "end",
|
|
1234
916
|
end: "start"
|
|
1235
917
|
};
|
|
1236
|
-
function
|
|
918
|
+
function St(e) {
|
|
1237
919
|
return e.replace(/start|end/g, function(t) {
|
|
1238
|
-
return
|
|
920
|
+
return io[t];
|
|
1239
921
|
});
|
|
1240
922
|
}
|
|
1241
|
-
function
|
|
1242
|
-
var t =
|
|
923
|
+
function ct(e) {
|
|
924
|
+
var t = F(e), n = t.pageXOffset, o = t.pageYOffset;
|
|
1243
925
|
return {
|
|
1244
926
|
scrollLeft: n,
|
|
1245
927
|
scrollTop: o
|
|
1246
928
|
};
|
|
1247
929
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return
|
|
930
|
+
function ut(e) {
|
|
931
|
+
return fe(ee(e)).left + ct(e).scrollLeft;
|
|
1250
932
|
}
|
|
1251
|
-
function
|
|
1252
|
-
var n =
|
|
933
|
+
function ao(e, t) {
|
|
934
|
+
var n = F(e), o = ee(e), r = n.visualViewport, i = o.clientWidth, u = o.clientHeight, s = 0, l = 0;
|
|
1253
935
|
if (r) {
|
|
1254
936
|
i = r.width, u = r.height;
|
|
1255
|
-
var c =
|
|
937
|
+
var c = Kt();
|
|
1256
938
|
(c || !c && t === "fixed") && (s = r.offsetLeft, l = r.offsetTop);
|
|
1257
939
|
}
|
|
1258
940
|
return {
|
|
1259
941
|
width: i,
|
|
1260
942
|
height: u,
|
|
1261
|
-
x: s +
|
|
943
|
+
x: s + ut(e),
|
|
1262
944
|
y: l
|
|
1263
945
|
};
|
|
1264
946
|
}
|
|
1265
|
-
function
|
|
1266
|
-
var t, n =
|
|
1267
|
-
return
|
|
947
|
+
function so(e) {
|
|
948
|
+
var t, n = ee(e), o = ct(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, i = se(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), u = se(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), s = -o.scrollLeft + ut(e), l = -o.scrollTop;
|
|
949
|
+
return J(r || n).direction === "rtl" && (s += se(n.clientWidth, r ? r.clientWidth : 0) - i), {
|
|
1268
950
|
width: i,
|
|
1269
951
|
height: u,
|
|
1270
952
|
x: s,
|
|
1271
953
|
y: l
|
|
1272
954
|
};
|
|
1273
955
|
}
|
|
1274
|
-
function
|
|
1275
|
-
var t =
|
|
956
|
+
function dt(e) {
|
|
957
|
+
var t = J(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
|
|
1276
958
|
return /auto|scroll|overlay|hidden/.test(n + r + o);
|
|
1277
959
|
}
|
|
1278
|
-
function
|
|
1279
|
-
return ["html", "body", "#document"].indexOf(
|
|
960
|
+
function Qt(e) {
|
|
961
|
+
return ["html", "body", "#document"].indexOf(Z(e)) >= 0 ? e.ownerDocument.body : q(e) && dt(e) ? e : Qt(Ve(e));
|
|
1280
962
|
}
|
|
1281
|
-
function
|
|
963
|
+
function Me(e, t) {
|
|
1282
964
|
var n;
|
|
1283
965
|
t === void 0 && (t = []);
|
|
1284
|
-
var o =
|
|
966
|
+
var o = Qt(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = F(o), u = r ? [i].concat(i.visualViewport || [], dt(o) ? o : []) : o, s = t.concat(u);
|
|
1285
967
|
return r ? s : (
|
|
1286
968
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1287
|
-
s.concat(
|
|
969
|
+
s.concat(Me(Ve(u)))
|
|
1288
970
|
);
|
|
1289
971
|
}
|
|
1290
|
-
function
|
|
972
|
+
function Je(e) {
|
|
1291
973
|
return Object.assign({}, e, {
|
|
1292
974
|
left: e.x,
|
|
1293
975
|
top: e.y,
|
|
@@ -1295,28 +977,28 @@ function tt(e) {
|
|
|
1295
977
|
bottom: e.y + e.height
|
|
1296
978
|
});
|
|
1297
979
|
}
|
|
1298
|
-
function
|
|
1299
|
-
var n =
|
|
980
|
+
function lo(e, t) {
|
|
981
|
+
var n = fe(e, !1, t === "fixed");
|
|
1300
982
|
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
1301
983
|
}
|
|
1302
|
-
function
|
|
1303
|
-
return t ===
|
|
984
|
+
function Ut(e, t, n) {
|
|
985
|
+
return t === zt ? Je(ao(e, n)) : le(t) ? lo(t, n) : Je(so(ee(e)));
|
|
1304
986
|
}
|
|
1305
|
-
function
|
|
1306
|
-
var t =
|
|
1307
|
-
return
|
|
1308
|
-
return
|
|
987
|
+
function co(e) {
|
|
988
|
+
var t = Me(Ve(e)), n = ["absolute", "fixed"].indexOf(J(e).position) >= 0, o = n && q(e) ? Se(e) : e;
|
|
989
|
+
return le(o) ? t.filter(function(r) {
|
|
990
|
+
return le(r) && jt(r, o) && Z(r) !== "body";
|
|
1309
991
|
}) : [];
|
|
1310
992
|
}
|
|
1311
|
-
function
|
|
1312
|
-
var r = t === "clippingParents" ?
|
|
1313
|
-
var d =
|
|
1314
|
-
return l.top =
|
|
1315
|
-
},
|
|
993
|
+
function uo(e, t, n, o) {
|
|
994
|
+
var r = t === "clippingParents" ? co(e) : [].concat(t), i = [].concat(r, [n]), u = i[0], s = i.reduce(function(l, c) {
|
|
995
|
+
var d = Ut(e, c, o);
|
|
996
|
+
return l.top = se(d.top, l.top), l.right = Fe(d.right, l.right), l.bottom = Fe(d.bottom, l.bottom), l.left = se(d.left, l.left), l;
|
|
997
|
+
}, Ut(e, u, o));
|
|
1316
998
|
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
1317
999
|
}
|
|
1318
|
-
function
|
|
1319
|
-
var t = e.reference, n = e.element, o = e.placement, r = o ?
|
|
1000
|
+
function en(e) {
|
|
1001
|
+
var t = e.reference, n = e.element, o = e.placement, r = o ? j(o) : null, i = o ? _e(o) : null, u = t.x + t.width / 2 - n.width / 2, s = t.y + t.height / 2 - n.height / 2, l;
|
|
1320
1002
|
switch (r) {
|
|
1321
1003
|
case H:
|
|
1322
1004
|
l = {
|
|
@@ -1324,13 +1006,13 @@ function rn(e) {
|
|
|
1324
1006
|
y: t.y - n.height
|
|
1325
1007
|
};
|
|
1326
1008
|
break;
|
|
1327
|
-
case
|
|
1009
|
+
case V:
|
|
1328
1010
|
l = {
|
|
1329
1011
|
x: u,
|
|
1330
1012
|
y: t.y + t.height
|
|
1331
1013
|
};
|
|
1332
1014
|
break;
|
|
1333
|
-
case
|
|
1015
|
+
case $:
|
|
1334
1016
|
l = {
|
|
1335
1017
|
x: t.x + t.width,
|
|
1336
1018
|
y: s
|
|
@@ -1348,128 +1030,128 @@ function rn(e) {
|
|
|
1348
1030
|
y: t.y
|
|
1349
1031
|
};
|
|
1350
1032
|
}
|
|
1351
|
-
var c = r ?
|
|
1033
|
+
var c = r ? lt(r) : null;
|
|
1352
1034
|
if (c != null) {
|
|
1353
1035
|
var d = c === "y" ? "height" : "width";
|
|
1354
1036
|
switch (i) {
|
|
1355
|
-
case
|
|
1037
|
+
case de:
|
|
1356
1038
|
l[c] = l[c] - (t[d] / 2 - n[d] / 2);
|
|
1357
1039
|
break;
|
|
1358
|
-
case
|
|
1040
|
+
case Oe:
|
|
1359
1041
|
l[c] = l[c] + (t[d] / 2 - n[d] / 2);
|
|
1360
1042
|
break;
|
|
1361
1043
|
}
|
|
1362
1044
|
}
|
|
1363
1045
|
return l;
|
|
1364
1046
|
}
|
|
1365
|
-
function
|
|
1047
|
+
function Le(e, t) {
|
|
1366
1048
|
t === void 0 && (t = {});
|
|
1367
|
-
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, i = n.strategy, u = i === void 0 ? e.strategy : i, s = n.boundary, l = s === void 0 ?
|
|
1368
|
-
reference:
|
|
1369
|
-
element:
|
|
1049
|
+
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, i = n.strategy, u = i === void 0 ? e.strategy : i, s = n.boundary, l = s === void 0 ? Nn : s, c = n.rootBoundary, d = c === void 0 ? zt : c, m = n.elementContext, f = m === void 0 ? ve : m, h = n.altBoundary, _ = h === void 0 ? !1 : h, E = n.padding, b = E === void 0 ? 0 : E, g = Xt(typeof b != "number" ? b : Jt(b, Ne)), M = f === ve ? Sn : ve, w = e.rects.popper, v = e.elements[_ ? M : f], T = uo(le(v) ? v : v.contextElement || ee(e.elements.popper), l, d, u), A = fe(e.elements.reference), P = en({
|
|
1050
|
+
reference: A,
|
|
1051
|
+
element: w,
|
|
1370
1052
|
strategy: "absolute",
|
|
1371
1053
|
placement: r
|
|
1372
|
-
}),
|
|
1373
|
-
top:
|
|
1374
|
-
bottom:
|
|
1375
|
-
left:
|
|
1376
|
-
right:
|
|
1377
|
-
},
|
|
1378
|
-
if (f ===
|
|
1379
|
-
var
|
|
1380
|
-
Object.keys(
|
|
1381
|
-
var
|
|
1382
|
-
|
|
1054
|
+
}), C = Je(Object.assign({}, w, P)), S = f === ve ? C : A, N = {
|
|
1055
|
+
top: T.top - S.top + g.top,
|
|
1056
|
+
bottom: S.bottom - T.bottom + g.bottom,
|
|
1057
|
+
left: T.left - S.left + g.left,
|
|
1058
|
+
right: S.right - T.right + g.right
|
|
1059
|
+
}, R = e.modifiersData.offset;
|
|
1060
|
+
if (f === ve && R) {
|
|
1061
|
+
var G = R[r];
|
|
1062
|
+
Object.keys(N).forEach(function(D) {
|
|
1063
|
+
var te = [$, V].indexOf(D) >= 0 ? 1 : -1, ne = [H, V].indexOf(D) >= 0 ? "y" : "x";
|
|
1064
|
+
N[D] += G[ne] * te;
|
|
1383
1065
|
});
|
|
1384
1066
|
}
|
|
1385
|
-
return
|
|
1067
|
+
return N;
|
|
1386
1068
|
}
|
|
1387
|
-
function
|
|
1069
|
+
function po(e, t) {
|
|
1388
1070
|
t === void 0 && (t = {});
|
|
1389
|
-
var n = t, o = n.placement, r = n.boundary, i = n.rootBoundary, u = n.padding, s = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ?
|
|
1390
|
-
return
|
|
1391
|
-
}) :
|
|
1392
|
-
return c.indexOf(
|
|
1071
|
+
var n = t, o = n.placement, r = n.boundary, i = n.rootBoundary, u = n.padding, s = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? Yt : l, d = _e(o), m = d ? s ? yt : yt.filter(function(_) {
|
|
1072
|
+
return _e(_) === d;
|
|
1073
|
+
}) : Ne, f = m.filter(function(_) {
|
|
1074
|
+
return c.indexOf(_) >= 0;
|
|
1393
1075
|
});
|
|
1394
|
-
f.length === 0 && (f =
|
|
1395
|
-
var
|
|
1396
|
-
return
|
|
1076
|
+
f.length === 0 && (f = m);
|
|
1077
|
+
var h = f.reduce(function(_, E) {
|
|
1078
|
+
return _[E] = Le(e, {
|
|
1397
1079
|
placement: E,
|
|
1398
1080
|
boundary: r,
|
|
1399
1081
|
rootBoundary: i,
|
|
1400
1082
|
padding: u
|
|
1401
|
-
})[
|
|
1083
|
+
})[j(E)], _;
|
|
1402
1084
|
}, {});
|
|
1403
|
-
return Object.keys(
|
|
1404
|
-
return _
|
|
1085
|
+
return Object.keys(h).sort(function(_, E) {
|
|
1086
|
+
return h[_] - h[E];
|
|
1405
1087
|
});
|
|
1406
1088
|
}
|
|
1407
|
-
function
|
|
1408
|
-
if (
|
|
1089
|
+
function fo(e) {
|
|
1090
|
+
if (j(e) === it)
|
|
1409
1091
|
return [];
|
|
1410
|
-
var t =
|
|
1411
|
-
return [
|
|
1092
|
+
var t = We(e);
|
|
1093
|
+
return [St(e), t, St(t)];
|
|
1412
1094
|
}
|
|
1413
|
-
function
|
|
1095
|
+
function _o(e) {
|
|
1414
1096
|
var t = e.state, n = e.options, o = e.name;
|
|
1415
1097
|
if (!t.modifiersData[o]._skip) {
|
|
1416
|
-
for (var r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis, s = u === void 0 ? !0 : u, l = n.fallbackPlacements, c = n.padding, d = n.boundary,
|
|
1417
|
-
return
|
|
1418
|
-
placement:
|
|
1098
|
+
for (var r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis, s = u === void 0 ? !0 : u, l = n.fallbackPlacements, c = n.padding, d = n.boundary, m = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, _ = h === void 0 ? !0 : h, E = n.allowedAutoPlacements, b = t.options.placement, g = j(b), M = g === b, w = l || (M || !_ ? [We(b)] : fo(b)), v = [b].concat(w).reduce(function(ce, Q) {
|
|
1099
|
+
return ce.concat(j(Q) === it ? po(t, {
|
|
1100
|
+
placement: Q,
|
|
1419
1101
|
boundary: d,
|
|
1420
|
-
rootBoundary:
|
|
1102
|
+
rootBoundary: m,
|
|
1421
1103
|
padding: c,
|
|
1422
|
-
flipVariations:
|
|
1104
|
+
flipVariations: _,
|
|
1423
1105
|
allowedAutoPlacements: E
|
|
1424
|
-
}) :
|
|
1425
|
-
}, []),
|
|
1426
|
-
var
|
|
1427
|
-
placement:
|
|
1106
|
+
}) : Q);
|
|
1107
|
+
}, []), T = t.rects.reference, A = t.rects.popper, P = /* @__PURE__ */ new Map(), C = !0, S = v[0], N = 0; N < v.length; N++) {
|
|
1108
|
+
var R = v[N], G = j(R), D = _e(R) === de, te = [H, V].indexOf(G) >= 0, ne = te ? "width" : "height", W = Le(t, {
|
|
1109
|
+
placement: R,
|
|
1428
1110
|
boundary: d,
|
|
1429
|
-
rootBoundary:
|
|
1111
|
+
rootBoundary: m,
|
|
1430
1112
|
altBoundary: f,
|
|
1431
1113
|
padding: c
|
|
1432
|
-
}),
|
|
1433
|
-
|
|
1434
|
-
var
|
|
1435
|
-
if (i &&
|
|
1436
|
-
return
|
|
1114
|
+
}), z = te ? D ? $ : x : D ? V : H;
|
|
1115
|
+
T[ne] > A[ne] && (z = We(z));
|
|
1116
|
+
var Ue = We(z), oe = [];
|
|
1117
|
+
if (i && oe.push(W[G] <= 0), s && oe.push(W[z] <= 0, W[Ue] <= 0), oe.every(function(ce) {
|
|
1118
|
+
return ce;
|
|
1437
1119
|
})) {
|
|
1438
|
-
|
|
1120
|
+
S = R, C = !1;
|
|
1439
1121
|
break;
|
|
1440
1122
|
}
|
|
1441
|
-
|
|
1123
|
+
P.set(R, oe);
|
|
1442
1124
|
}
|
|
1443
|
-
if (
|
|
1444
|
-
for (var
|
|
1445
|
-
var
|
|
1446
|
-
var
|
|
1447
|
-
if (
|
|
1448
|
-
return
|
|
1449
|
-
return
|
|
1125
|
+
if (C)
|
|
1126
|
+
for (var Ce = _ ? 3 : 1, $e = function(Q) {
|
|
1127
|
+
var Ee = v.find(function(De) {
|
|
1128
|
+
var re = P.get(De);
|
|
1129
|
+
if (re)
|
|
1130
|
+
return re.slice(0, Q).every(function(Ge) {
|
|
1131
|
+
return Ge;
|
|
1450
1132
|
});
|
|
1451
1133
|
});
|
|
1452
|
-
if (
|
|
1453
|
-
return
|
|
1454
|
-
},
|
|
1455
|
-
var
|
|
1456
|
-
if (
|
|
1134
|
+
if (Ee)
|
|
1135
|
+
return S = Ee, "break";
|
|
1136
|
+
}, me = Ce; me > 0; me--) {
|
|
1137
|
+
var Re = $e(me);
|
|
1138
|
+
if (Re === "break")
|
|
1457
1139
|
break;
|
|
1458
1140
|
}
|
|
1459
|
-
t.placement !==
|
|
1141
|
+
t.placement !== S && (t.modifiersData[o]._skip = !0, t.placement = S, t.reset = !0);
|
|
1460
1142
|
}
|
|
1461
1143
|
}
|
|
1462
|
-
const
|
|
1144
|
+
const ho = {
|
|
1463
1145
|
name: "flip",
|
|
1464
1146
|
enabled: !0,
|
|
1465
1147
|
phase: "main",
|
|
1466
|
-
fn:
|
|
1148
|
+
fn: _o,
|
|
1467
1149
|
requiresIfExists: ["offset"],
|
|
1468
1150
|
data: {
|
|
1469
1151
|
_skip: !1
|
|
1470
1152
|
}
|
|
1471
1153
|
};
|
|
1472
|
-
function
|
|
1154
|
+
function Ct(e, t, n) {
|
|
1473
1155
|
return n === void 0 && (n = {
|
|
1474
1156
|
x: 0,
|
|
1475
1157
|
y: 0
|
|
@@ -1480,39 +1162,39 @@ function Bt(e, t, n) {
|
|
|
1480
1162
|
left: e.left - t.width - n.x
|
|
1481
1163
|
};
|
|
1482
1164
|
}
|
|
1483
|
-
function
|
|
1484
|
-
return [H,
|
|
1165
|
+
function Rt(e) {
|
|
1166
|
+
return [H, $, V, x].some(function(t) {
|
|
1485
1167
|
return e[t] >= 0;
|
|
1486
1168
|
});
|
|
1487
1169
|
}
|
|
1488
|
-
function
|
|
1489
|
-
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, u =
|
|
1170
|
+
function mo(e) {
|
|
1171
|
+
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, u = Le(t, {
|
|
1490
1172
|
elementContext: "reference"
|
|
1491
|
-
}), s =
|
|
1173
|
+
}), s = Le(t, {
|
|
1492
1174
|
altBoundary: !0
|
|
1493
|
-
}), l =
|
|
1175
|
+
}), l = Ct(u, o), c = Ct(s, r, i), d = Rt(l), m = Rt(c);
|
|
1494
1176
|
t.modifiersData[n] = {
|
|
1495
1177
|
referenceClippingOffsets: l,
|
|
1496
1178
|
popperEscapeOffsets: c,
|
|
1497
1179
|
isReferenceHidden: d,
|
|
1498
|
-
hasPopperEscaped:
|
|
1180
|
+
hasPopperEscaped: m
|
|
1499
1181
|
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
1500
1182
|
"data-popper-reference-hidden": d,
|
|
1501
|
-
"data-popper-escaped":
|
|
1183
|
+
"data-popper-escaped": m
|
|
1502
1184
|
});
|
|
1503
1185
|
}
|
|
1504
|
-
const
|
|
1186
|
+
const Eo = {
|
|
1505
1187
|
name: "hide",
|
|
1506
1188
|
enabled: !0,
|
|
1507
1189
|
phase: "main",
|
|
1508
1190
|
requiresIfExists: ["preventOverflow"],
|
|
1509
|
-
fn:
|
|
1191
|
+
fn: mo
|
|
1510
1192
|
};
|
|
1511
|
-
function
|
|
1512
|
-
var o =
|
|
1193
|
+
function vo(e, t, n) {
|
|
1194
|
+
var o = j(e), r = [x, H].indexOf(o) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
|
|
1513
1195
|
placement: e
|
|
1514
1196
|
})) : n, u = i[0], s = i[1];
|
|
1515
|
-
return u = u || 0, s = (s || 0) * r, [x,
|
|
1197
|
+
return u = u || 0, s = (s || 0) * r, [x, $].indexOf(o) >= 0 ? {
|
|
1516
1198
|
x: s,
|
|
1517
1199
|
y: u
|
|
1518
1200
|
} : {
|
|
@@ -1520,109 +1202,109 @@ function Vo(e, t, n) {
|
|
|
1520
1202
|
y: s
|
|
1521
1203
|
};
|
|
1522
1204
|
}
|
|
1523
|
-
function
|
|
1524
|
-
var t = e.state, n = e.options, o = e.name, r = n.offset, i = r === void 0 ? [0, 0] : r, u =
|
|
1525
|
-
return d[
|
|
1205
|
+
function bo(e) {
|
|
1206
|
+
var t = e.state, n = e.options, o = e.name, r = n.offset, i = r === void 0 ? [0, 0] : r, u = Yt.reduce(function(d, m) {
|
|
1207
|
+
return d[m] = vo(m, t.rects, i), d;
|
|
1526
1208
|
}, {}), s = u[t.placement], l = s.x, c = s.y;
|
|
1527
1209
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += c), t.modifiersData[o] = u;
|
|
1528
1210
|
}
|
|
1529
|
-
const
|
|
1211
|
+
const Io = {
|
|
1530
1212
|
name: "offset",
|
|
1531
1213
|
enabled: !0,
|
|
1532
1214
|
phase: "main",
|
|
1533
1215
|
requires: ["popperOffsets"],
|
|
1534
|
-
fn:
|
|
1216
|
+
fn: bo
|
|
1535
1217
|
};
|
|
1536
|
-
function
|
|
1218
|
+
function To(e) {
|
|
1537
1219
|
var t = e.state, n = e.name;
|
|
1538
|
-
t.modifiersData[n] =
|
|
1220
|
+
t.modifiersData[n] = en({
|
|
1539
1221
|
reference: t.rects.reference,
|
|
1540
1222
|
element: t.rects.popper,
|
|
1541
1223
|
strategy: "absolute",
|
|
1542
1224
|
placement: t.placement
|
|
1543
1225
|
});
|
|
1544
1226
|
}
|
|
1545
|
-
const
|
|
1227
|
+
const go = {
|
|
1546
1228
|
name: "popperOffsets",
|
|
1547
1229
|
enabled: !0,
|
|
1548
1230
|
phase: "read",
|
|
1549
|
-
fn:
|
|
1231
|
+
fn: To,
|
|
1550
1232
|
data: {}
|
|
1551
1233
|
};
|
|
1552
|
-
function
|
|
1234
|
+
function Mo(e) {
|
|
1553
1235
|
return e === "x" ? "y" : "x";
|
|
1554
1236
|
}
|
|
1555
|
-
function
|
|
1556
|
-
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis, s = u === void 0 ? !1 : u, l = n.boundary, c = n.rootBoundary, d = n.altBoundary,
|
|
1237
|
+
function Ao(e) {
|
|
1238
|
+
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis, s = u === void 0 ? !1 : u, l = n.boundary, c = n.rootBoundary, d = n.altBoundary, m = n.padding, f = n.tether, h = f === void 0 ? !0 : f, _ = n.tetherOffset, E = _ === void 0 ? 0 : _, b = Le(t, {
|
|
1557
1239
|
boundary: l,
|
|
1558
1240
|
rootBoundary: c,
|
|
1559
|
-
padding:
|
|
1241
|
+
padding: m,
|
|
1560
1242
|
altBoundary: d
|
|
1561
|
-
}),
|
|
1243
|
+
}), g = j(t.placement), M = _e(t.placement), w = !M, v = lt(g), T = Mo(v), A = t.modifiersData.popperOffsets, P = t.rects.reference, C = t.rects.popper, S = typeof E == "function" ? E(Object.assign({}, t.rects, {
|
|
1562
1244
|
placement: t.placement
|
|
1563
|
-
})) : E,
|
|
1564
|
-
mainAxis:
|
|
1565
|
-
altAxis:
|
|
1245
|
+
})) : E, N = typeof S == "number" ? {
|
|
1246
|
+
mainAxis: S,
|
|
1247
|
+
altAxis: S
|
|
1566
1248
|
} : Object.assign({
|
|
1567
1249
|
mainAxis: 0,
|
|
1568
1250
|
altAxis: 0
|
|
1569
|
-
},
|
|
1251
|
+
}, S), R = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, G = {
|
|
1570
1252
|
x: 0,
|
|
1571
1253
|
y: 0
|
|
1572
1254
|
};
|
|
1573
|
-
if (
|
|
1255
|
+
if (A) {
|
|
1574
1256
|
if (i) {
|
|
1575
|
-
var
|
|
1257
|
+
var D, te = v === "y" ? H : x, ne = v === "y" ? V : $, W = v === "y" ? "height" : "width", z = A[v], Ue = z + b[te], oe = z - b[ne], Ce = h ? -C[W] / 2 : 0, $e = M === de ? P[W] : C[W], me = M === de ? -C[W] : -P[W], Re = t.elements.arrow, ce = h && Re ? st(Re) : {
|
|
1576
1258
|
width: 0,
|
|
1577
1259
|
height: 0
|
|
1578
|
-
},
|
|
1579
|
-
|
|
1260
|
+
}, Q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Zt(), Ee = Q[te], De = Q[ne], re = ge(0, P[W], ce[W]), Ge = w ? P[W] / 2 - Ce - re - Ee - N.mainAxis : $e - re - Ee - N.mainAxis, pn = w ? -P[W] / 2 + Ce + re + De + N.mainAxis : me + re + De + N.mainAxis, ze = t.elements.arrow && Se(t.elements.arrow), fn = ze ? v === "y" ? ze.clientTop || 0 : ze.clientLeft || 0 : 0, mt = (D = R == null ? void 0 : R[v]) != null ? D : 0, _n = z + Ge - mt - fn, hn = z + pn - mt, Et = ge(h ? Fe(Ue, _n) : Ue, z, h ? se(oe, hn) : oe);
|
|
1261
|
+
A[v] = Et, G[v] = Et - z;
|
|
1580
1262
|
}
|
|
1581
1263
|
if (s) {
|
|
1582
|
-
var
|
|
1583
|
-
|
|
1264
|
+
var vt, mn = v === "x" ? H : x, En = v === "x" ? V : $, ie = A[T], Be = T === "y" ? "height" : "width", bt = ie + b[mn], It = ie - b[En], Ye = [H, x].indexOf(g) !== -1, Tt = (vt = R == null ? void 0 : R[T]) != null ? vt : 0, gt = Ye ? bt : ie - P[Be] - C[Be] - Tt + N.altAxis, Mt = Ye ? ie + P[Be] + C[Be] - Tt - N.altAxis : It, At = h && Ye ? Yn(gt, ie, Mt) : ge(h ? gt : bt, ie, h ? Mt : It);
|
|
1265
|
+
A[T] = At, G[T] = At - ie;
|
|
1584
1266
|
}
|
|
1585
|
-
t.modifiersData[o] =
|
|
1267
|
+
t.modifiersData[o] = G;
|
|
1586
1268
|
}
|
|
1587
1269
|
}
|
|
1588
|
-
const
|
|
1270
|
+
const wo = {
|
|
1589
1271
|
name: "preventOverflow",
|
|
1590
1272
|
enabled: !0,
|
|
1591
1273
|
phase: "main",
|
|
1592
|
-
fn:
|
|
1274
|
+
fn: Ao,
|
|
1593
1275
|
requiresIfExists: ["offset"]
|
|
1594
1276
|
};
|
|
1595
|
-
function
|
|
1277
|
+
function Oo(e) {
|
|
1596
1278
|
return {
|
|
1597
1279
|
scrollLeft: e.scrollLeft,
|
|
1598
1280
|
scrollTop: e.scrollTop
|
|
1599
1281
|
};
|
|
1600
1282
|
}
|
|
1601
|
-
function
|
|
1602
|
-
return e ===
|
|
1283
|
+
function Lo(e) {
|
|
1284
|
+
return e === F(e) || !q(e) ? ct(e) : Oo(e);
|
|
1603
1285
|
}
|
|
1604
|
-
function
|
|
1605
|
-
var t = e.getBoundingClientRect(), n =
|
|
1286
|
+
function yo(e) {
|
|
1287
|
+
var t = e.getBoundingClientRect(), n = pe(t.width) / e.offsetWidth || 1, o = pe(t.height) / e.offsetHeight || 1;
|
|
1606
1288
|
return n !== 1 || o !== 1;
|
|
1607
1289
|
}
|
|
1608
|
-
function
|
|
1290
|
+
function Po(e, t, n) {
|
|
1609
1291
|
n === void 0 && (n = !1);
|
|
1610
|
-
var o = q(t), r = q(t) &&
|
|
1292
|
+
var o = q(t), r = q(t) && yo(t), i = ee(t), u = fe(e, r, n), s = {
|
|
1611
1293
|
scrollLeft: 0,
|
|
1612
1294
|
scrollTop: 0
|
|
1613
1295
|
}, l = {
|
|
1614
1296
|
x: 0,
|
|
1615
1297
|
y: 0
|
|
1616
1298
|
};
|
|
1617
|
-
return (o || !o && !n) && ((
|
|
1618
|
-
|
|
1299
|
+
return (o || !o && !n) && ((Z(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1300
|
+
dt(i)) && (s = Lo(t)), q(t) ? (l = fe(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : i && (l.x = ut(i))), {
|
|
1619
1301
|
x: u.left + s.scrollLeft - l.x,
|
|
1620
1302
|
y: u.top + s.scrollTop - l.y,
|
|
1621
1303
|
width: u.width,
|
|
1622
1304
|
height: u.height
|
|
1623
1305
|
};
|
|
1624
1306
|
}
|
|
1625
|
-
function
|
|
1307
|
+
function No(e) {
|
|
1626
1308
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = [];
|
|
1627
1309
|
e.forEach(function(i) {
|
|
1628
1310
|
t.set(i.name, i);
|
|
@@ -1641,15 +1323,15 @@ function er(e) {
|
|
|
1641
1323
|
n.has(i.name) || r(i);
|
|
1642
1324
|
}), o;
|
|
1643
1325
|
}
|
|
1644
|
-
function
|
|
1645
|
-
var t =
|
|
1646
|
-
return
|
|
1326
|
+
function So(e) {
|
|
1327
|
+
var t = No(e);
|
|
1328
|
+
return Fn.reduce(function(n, o) {
|
|
1647
1329
|
return n.concat(t.filter(function(r) {
|
|
1648
1330
|
return r.phase === o;
|
|
1649
1331
|
}));
|
|
1650
1332
|
}, []);
|
|
1651
1333
|
}
|
|
1652
|
-
function
|
|
1334
|
+
function Uo(e) {
|
|
1653
1335
|
var t;
|
|
1654
1336
|
return function() {
|
|
1655
1337
|
return t || (t = new Promise(function(n) {
|
|
@@ -1659,66 +1341,7 @@ function nr(e) {
|
|
|
1659
1341
|
})), t;
|
|
1660
1342
|
};
|
|
1661
1343
|
}
|
|
1662
|
-
function
|
|
1663
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
|
|
1664
|
-
n[o - 1] = arguments[o];
|
|
1665
|
-
return [].concat(n).reduce(function(r, i) {
|
|
1666
|
-
return r.replace(/%s/, i);
|
|
1667
|
-
}, e);
|
|
1668
|
-
}
|
|
1669
|
-
var le = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', or = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', xt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
1670
|
-
function rr(e) {
|
|
1671
|
-
e.forEach(function(t) {
|
|
1672
|
-
[].concat(Object.keys(t), xt).filter(function(n, o, r) {
|
|
1673
|
-
return r.indexOf(n) === o;
|
|
1674
|
-
}).forEach(function(n) {
|
|
1675
|
-
switch (n) {
|
|
1676
|
-
case "name":
|
|
1677
|
-
typeof t.name != "string" && console.error(Q(le, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
|
|
1678
|
-
break;
|
|
1679
|
-
case "enabled":
|
|
1680
|
-
typeof t.enabled != "boolean" && console.error(Q(le, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
|
|
1681
|
-
break;
|
|
1682
|
-
case "phase":
|
|
1683
|
-
Qe.indexOf(t.phase) < 0 && console.error(Q(le, t.name, '"phase"', "either " + Qe.join(", "), '"' + String(t.phase) + '"'));
|
|
1684
|
-
break;
|
|
1685
|
-
case "fn":
|
|
1686
|
-
typeof t.fn != "function" && console.error(Q(le, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
|
|
1687
|
-
break;
|
|
1688
|
-
case "effect":
|
|
1689
|
-
t.effect != null && typeof t.effect != "function" && console.error(Q(le, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
|
|
1690
|
-
break;
|
|
1691
|
-
case "requires":
|
|
1692
|
-
t.requires != null && !Array.isArray(t.requires) && console.error(Q(le, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
|
|
1693
|
-
break;
|
|
1694
|
-
case "requiresIfExists":
|
|
1695
|
-
Array.isArray(t.requiresIfExists) || console.error(Q(le, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
|
|
1696
|
-
break;
|
|
1697
|
-
case "options":
|
|
1698
|
-
case "data":
|
|
1699
|
-
break;
|
|
1700
|
-
default:
|
|
1701
|
-
console.error('PopperJS: an invalid property has been provided to the "' + t.name + '" modifier, valid properties are ' + xt.map(function(o) {
|
|
1702
|
-
return '"' + o + '"';
|
|
1703
|
-
}).join(", ") + '; but "' + n + '" was provided.');
|
|
1704
|
-
}
|
|
1705
|
-
t.requires && t.requires.forEach(function(o) {
|
|
1706
|
-
e.find(function(r) {
|
|
1707
|
-
return r.name === o;
|
|
1708
|
-
}) == null && console.error(Q(or, String(t.name), o, o));
|
|
1709
|
-
});
|
|
1710
|
-
});
|
|
1711
|
-
});
|
|
1712
|
-
}
|
|
1713
|
-
function ir(e, t) {
|
|
1714
|
-
var n = /* @__PURE__ */ new Set();
|
|
1715
|
-
return e.filter(function(o) {
|
|
1716
|
-
var r = t(o);
|
|
1717
|
-
if (!n.has(r))
|
|
1718
|
-
return n.add(r), !0;
|
|
1719
|
-
});
|
|
1720
|
-
}
|
|
1721
|
-
function ar(e) {
|
|
1344
|
+
function Co(e) {
|
|
1722
1345
|
var t = e.reduce(function(n, o) {
|
|
1723
1346
|
var r = n[o.name];
|
|
1724
1347
|
return n[o.name] = r ? Object.assign({}, r, o, {
|
|
@@ -1730,27 +1353,27 @@ function ar(e) {
|
|
|
1730
1353
|
return t[n];
|
|
1731
1354
|
});
|
|
1732
1355
|
}
|
|
1733
|
-
var
|
|
1356
|
+
var Dt = {
|
|
1734
1357
|
placement: "bottom",
|
|
1735
1358
|
modifiers: [],
|
|
1736
1359
|
strategy: "absolute"
|
|
1737
1360
|
};
|
|
1738
|
-
function
|
|
1361
|
+
function Bt() {
|
|
1739
1362
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1740
1363
|
t[n] = arguments[n];
|
|
1741
1364
|
return !t.some(function(o) {
|
|
1742
1365
|
return !(o && typeof o.getBoundingClientRect == "function");
|
|
1743
1366
|
});
|
|
1744
1367
|
}
|
|
1745
|
-
function
|
|
1368
|
+
function Ro(e) {
|
|
1746
1369
|
e === void 0 && (e = {});
|
|
1747
|
-
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ?
|
|
1370
|
+
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ? Dt : r;
|
|
1748
1371
|
return function(s, l, c) {
|
|
1749
1372
|
c === void 0 && (c = i);
|
|
1750
1373
|
var d = {
|
|
1751
1374
|
placement: "bottom",
|
|
1752
1375
|
orderedModifiers: [],
|
|
1753
|
-
options: Object.assign({},
|
|
1376
|
+
options: Object.assign({}, Dt, i),
|
|
1754
1377
|
modifiersData: {},
|
|
1755
1378
|
elements: {
|
|
1756
1379
|
reference: s,
|
|
@@ -1758,35 +1381,18 @@ function lr(e) {
|
|
|
1758
1381
|
},
|
|
1759
1382
|
attributes: {},
|
|
1760
1383
|
styles: {}
|
|
1761
|
-
},
|
|
1384
|
+
}, m = [], f = !1, h = {
|
|
1762
1385
|
state: d,
|
|
1763
|
-
setOptions: function(
|
|
1764
|
-
var
|
|
1765
|
-
E(), d.options = Object.assign({}, i, d.options,
|
|
1766
|
-
reference:
|
|
1767
|
-
popper:
|
|
1386
|
+
setOptions: function(g) {
|
|
1387
|
+
var M = typeof g == "function" ? g(d.options) : g;
|
|
1388
|
+
E(), d.options = Object.assign({}, i, d.options, M), d.scrollParents = {
|
|
1389
|
+
reference: le(s) ? Me(s) : s.contextElement ? Me(s.contextElement) : [],
|
|
1390
|
+
popper: Me(l)
|
|
1768
1391
|
};
|
|
1769
|
-
var
|
|
1770
|
-
|
|
1771
|
-
return
|
|
1772
|
-
}),
|
|
1773
|
-
var b = ir([].concat(L, d.options.modifiers), function(w) {
|
|
1774
|
-
var D = w.name;
|
|
1775
|
-
return D;
|
|
1776
|
-
});
|
|
1777
|
-
if (rr(b), z(d.options.placement) === $e) {
|
|
1778
|
-
var I = d.orderedModifiers.find(function(w) {
|
|
1779
|
-
var D = w.name;
|
|
1780
|
-
return D === "flip";
|
|
1781
|
-
});
|
|
1782
|
-
I || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
1783
|
-
}
|
|
1784
|
-
var M = Y(l), N = M.marginTop, S = M.marginRight, U = M.marginBottom, C = M.marginLeft;
|
|
1785
|
-
[N, S, U, C].some(function(w) {
|
|
1786
|
-
return parseFloat(w);
|
|
1787
|
-
}) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
|
|
1788
|
-
}
|
|
1789
|
-
return m(), _.update();
|
|
1392
|
+
var w = So(Co([].concat(o, d.options.modifiers)));
|
|
1393
|
+
return d.orderedModifiers = w.filter(function(v) {
|
|
1394
|
+
return v.enabled;
|
|
1395
|
+
}), _(), h.update();
|
|
1790
1396
|
},
|
|
1791
1397
|
// Sync update – it will always be executed, even if not necessary. This
|
|
1792
1398
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -1795,89 +1401,83 @@ function lr(e) {
|
|
|
1795
1401
|
// prefer the async Popper#update method
|
|
1796
1402
|
forceUpdate: function() {
|
|
1797
1403
|
if (!f) {
|
|
1798
|
-
var
|
|
1799
|
-
if (
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1404
|
+
var g = d.elements, M = g.reference, w = g.popper;
|
|
1405
|
+
if (Bt(M, w)) {
|
|
1406
|
+
d.rects = {
|
|
1407
|
+
reference: Po(M, Se(w), d.options.strategy === "fixed"),
|
|
1408
|
+
popper: st(w)
|
|
1409
|
+
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(N) {
|
|
1410
|
+
return d.modifiersData[N.name] = Object.assign({}, N.data);
|
|
1411
|
+
});
|
|
1412
|
+
for (var v = 0; v < d.orderedModifiers.length; v++) {
|
|
1413
|
+
if (d.reset === !0) {
|
|
1414
|
+
d.reset = !1, v = -1;
|
|
1415
|
+
continue;
|
|
1416
|
+
}
|
|
1417
|
+
var T = d.orderedModifiers[v], A = T.fn, P = T.options, C = P === void 0 ? {} : P, S = T.name;
|
|
1418
|
+
typeof A == "function" && (d = A({
|
|
1419
|
+
state: d,
|
|
1420
|
+
options: C,
|
|
1421
|
+
name: S,
|
|
1422
|
+
instance: h
|
|
1423
|
+
}) || d);
|
|
1817
1424
|
}
|
|
1818
|
-
var M = d.orderedModifiers[I], N = M.fn, S = M.options, U = S === void 0 ? {} : S, C = M.name;
|
|
1819
|
-
typeof N == "function" && (d = N({
|
|
1820
|
-
state: d,
|
|
1821
|
-
options: U,
|
|
1822
|
-
name: C,
|
|
1823
|
-
instance: _
|
|
1824
|
-
}) || d);
|
|
1825
1425
|
}
|
|
1826
1426
|
}
|
|
1827
1427
|
},
|
|
1828
1428
|
// Async and optimistically optimized update – it will not be executed if
|
|
1829
1429
|
// not necessary (debounced to run at most once-per-tick)
|
|
1830
|
-
update:
|
|
1831
|
-
return new Promise(function(
|
|
1832
|
-
|
|
1430
|
+
update: Uo(function() {
|
|
1431
|
+
return new Promise(function(b) {
|
|
1432
|
+
h.forceUpdate(), b(d);
|
|
1833
1433
|
});
|
|
1834
1434
|
}),
|
|
1835
1435
|
destroy: function() {
|
|
1836
1436
|
E(), f = !0;
|
|
1837
1437
|
}
|
|
1838
1438
|
};
|
|
1839
|
-
if (!
|
|
1840
|
-
return
|
|
1841
|
-
|
|
1842
|
-
!f && c.onFirstUpdate && c.onFirstUpdate(
|
|
1439
|
+
if (!Bt(s, l))
|
|
1440
|
+
return h;
|
|
1441
|
+
h.setOptions(c).then(function(b) {
|
|
1442
|
+
!f && c.onFirstUpdate && c.onFirstUpdate(b);
|
|
1843
1443
|
});
|
|
1844
|
-
function
|
|
1845
|
-
d.orderedModifiers.forEach(function(
|
|
1846
|
-
var
|
|
1847
|
-
if (typeof
|
|
1848
|
-
var
|
|
1444
|
+
function _() {
|
|
1445
|
+
d.orderedModifiers.forEach(function(b) {
|
|
1446
|
+
var g = b.name, M = b.options, w = M === void 0 ? {} : M, v = b.effect;
|
|
1447
|
+
if (typeof v == "function") {
|
|
1448
|
+
var T = v({
|
|
1849
1449
|
state: d,
|
|
1850
|
-
name:
|
|
1851
|
-
instance:
|
|
1852
|
-
options:
|
|
1853
|
-
}),
|
|
1450
|
+
name: g,
|
|
1451
|
+
instance: h,
|
|
1452
|
+
options: w
|
|
1453
|
+
}), A = function() {
|
|
1854
1454
|
};
|
|
1855
|
-
|
|
1455
|
+
m.push(T || A);
|
|
1856
1456
|
}
|
|
1857
1457
|
});
|
|
1858
1458
|
}
|
|
1859
1459
|
function E() {
|
|
1860
|
-
|
|
1861
|
-
return
|
|
1862
|
-
}),
|
|
1460
|
+
m.forEach(function(b) {
|
|
1461
|
+
return b();
|
|
1462
|
+
}), m = [];
|
|
1863
1463
|
}
|
|
1864
|
-
return
|
|
1464
|
+
return h;
|
|
1865
1465
|
};
|
|
1866
1466
|
}
|
|
1867
|
-
var
|
|
1868
|
-
defaultModifiers:
|
|
1467
|
+
var Do = [oo, go, to, $n, Io, ho, wo, Xn, Eo], tn = /* @__PURE__ */ Ro({
|
|
1468
|
+
defaultModifiers: Do
|
|
1869
1469
|
});
|
|
1870
|
-
function
|
|
1470
|
+
function Qe(e, t, n, o) {
|
|
1871
1471
|
t ? (e.classList.remove(o), e.classList.add(n)) : (e.classList.add(o), e.classList.remove(n));
|
|
1872
1472
|
}
|
|
1873
1473
|
let k;
|
|
1874
|
-
const
|
|
1474
|
+
const be = {}, et = {
|
|
1875
1475
|
SHIFT: "shift-key"
|
|
1876
1476
|
};
|
|
1877
|
-
function
|
|
1477
|
+
function nn() {
|
|
1878
1478
|
k && (document.removeEventListener("click", k.globalOnClick), document.removeEventListener("keyup", k.globalOnKeyup), document.removeEventListener("keydown", k.globalOnKeydown), k = null);
|
|
1879
1479
|
}
|
|
1880
|
-
function
|
|
1480
|
+
function tt() {
|
|
1881
1481
|
const e = document.querySelectorAll(
|
|
1882
1482
|
`${p(a.UTAH_DESIGN_SYSTEM)} ${p(a.POPUP_WRAPPER)}`
|
|
1883
1483
|
);
|
|
@@ -1887,70 +1487,72 @@ function rt() {
|
|
|
1887
1487
|
const o = document.querySelector(`[aria-controls="${n}"]`);
|
|
1888
1488
|
o && o.setAttribute("aria-expanded", "false");
|
|
1889
1489
|
}
|
|
1890
|
-
|
|
1490
|
+
Qe(t, !1, a.POPUP__VISIBLE, a.POPUP__HIDDEN);
|
|
1891
1491
|
});
|
|
1892
1492
|
}
|
|
1893
|
-
function
|
|
1894
|
-
k &&
|
|
1895
|
-
e.key === "Escape" &&
|
|
1493
|
+
function Bo() {
|
|
1494
|
+
k && nn(), k = {}, k.globalOnClick = tt, document.addEventListener("click", k.globalOnClick), k.globalOnKeyup = (e) => {
|
|
1495
|
+
e.key === "Escape" && tt(), e.shiftKey || (be[et.SHIFT] = !1), be[e.key] = !1;
|
|
1896
1496
|
}, document.addEventListener("keyup", k.globalOnKeyup), k.globalOnKeydown = (e) => {
|
|
1897
|
-
e.shiftKey && (
|
|
1497
|
+
e.shiftKey && (be[et.SHIFT] = !0), be[e.key] = !0;
|
|
1898
1498
|
}, document.addEventListener("keydown", k.globalOnKeydown);
|
|
1899
1499
|
}
|
|
1900
|
-
function
|
|
1500
|
+
function Ho() {
|
|
1901
1501
|
return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
1902
1502
|
}
|
|
1903
|
-
function
|
|
1503
|
+
function ye(e, t, n, o, r) {
|
|
1904
1504
|
let i = NaN, u = NaN;
|
|
1905
1505
|
const s = 300, l = 150, c = 50;
|
|
1906
1506
|
t.setAttribute("aria-expanded", "false"), t.setAttribute("aria-haspopup", o);
|
|
1907
1507
|
function d(f) {
|
|
1908
1508
|
clearTimeout(i), clearTimeout(u), (!(r != null && r.isPerformPopup) || r != null && r.isPerformPopup && r.isPerformPopup()) && (i = window.setTimeout(
|
|
1909
1509
|
() => {
|
|
1910
|
-
|
|
1911
|
-
placement: (r == null ? void 0 : r.popupPlacement) ||
|
|
1510
|
+
tn(t, n, {
|
|
1511
|
+
placement: (r == null ? void 0 : r.popupPlacement) || rt.BOTTOM,
|
|
1912
1512
|
modifiers: [
|
|
1913
1513
|
{
|
|
1914
1514
|
name: "offset",
|
|
1915
1515
|
options: { offset: [0, 11] }
|
|
1916
1516
|
}
|
|
1917
1517
|
]
|
|
1918
|
-
}),
|
|
1518
|
+
}), Qe(n, !0, a.POPUP__VISIBLE, a.POPUP__HIDDEN), t.setAttribute("aria-expanded", "true"), document.querySelectorAll(p(a.TOOLTIP__WRAPPER)).forEach((h) => h.classList.add(a.TOOLTIP__WRAPPER__HIDDEN));
|
|
1919
1519
|
},
|
|
1920
1520
|
f
|
|
1921
1521
|
));
|
|
1922
1522
|
}
|
|
1923
|
-
function
|
|
1523
|
+
function m(f) {
|
|
1924
1524
|
clearTimeout(i), clearTimeout(u), (!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (u = window.setTimeout(
|
|
1925
1525
|
() => {
|
|
1926
|
-
|
|
1526
|
+
Qe(n, !1, a.POPUP__VISIBLE, a.POPUP__HIDDEN), t.setAttribute("aria-expanded", "false");
|
|
1927
1527
|
},
|
|
1928
1528
|
f
|
|
1929
1529
|
));
|
|
1930
1530
|
}
|
|
1931
|
-
if (r != null && r.preventOnClickHandling
|
|
1531
|
+
if (r != null && r.preventOnClickHandling ? (X(!!e.onclick, "popupFocusHandler: wrapper already has an onclick"), e.onclick = (f) => {
|
|
1532
|
+
f.preventDefault(), f.stopPropagation();
|
|
1533
|
+
}) : (e.addEventListener("focusin", () => d(l)), e.addEventListener("focusout", () => m(l))), r != null && r.shouldFocusOnHover && (e.addEventListener("mouseenter", () => d(s)), e.addEventListener("mouseleave", () => m(s))), !(r != null && r.preventOnClickHandling)) {
|
|
1932
1534
|
if (t.onclick)
|
|
1933
1535
|
throw new Error("popupFocusHandler: button already has onclick");
|
|
1934
1536
|
t.onclick = (f) => {
|
|
1935
|
-
var
|
|
1936
|
-
const
|
|
1937
|
-
(!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (f.stopPropagation(), f.preventDefault(),
|
|
1537
|
+
var _;
|
|
1538
|
+
const h = t.getAttribute("aria-expanded") === "true";
|
|
1539
|
+
(!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (f.stopPropagation(), f.preventDefault(), h && t.getAttribute("aria-expanded") === "true" ? (m(c), (_ = document.activeElement) == null || _.blur()) : (Ho() && tt(), d(c))), r != null && r.onClick && r.onClick(f);
|
|
1938
1540
|
};
|
|
1939
1541
|
}
|
|
1940
1542
|
}
|
|
1941
|
-
const
|
|
1543
|
+
const xo = `<div class="popup__wrapper popup__wrapper--hidden">
|
|
1942
1544
|
<div class="popup__content">
|
|
1943
1545
|
<div class="popup__arrow" data-popper-arrow></div>
|
|
1944
1546
|
</div>
|
|
1945
1547
|
</div>
|
|
1946
1548
|
`;
|
|
1947
|
-
function
|
|
1549
|
+
function pt(e, t) {
|
|
1948
1550
|
const n = e.getAttribute("id");
|
|
1949
1551
|
if (!n)
|
|
1950
1552
|
throw new Error("renderPopup: labelledByElement does not have an `id` attribute");
|
|
1951
|
-
const o =
|
|
1553
|
+
const o = U();
|
|
1952
1554
|
e.setAttribute("aria-controls", o);
|
|
1953
|
-
const r =
|
|
1555
|
+
const r = I(xo);
|
|
1954
1556
|
if (r.setAttribute("id", o), r.setAttribute("aria-labelledby", n), t != null && t.removePopupArrow) {
|
|
1955
1557
|
const i = r.querySelector(p(a.POPUP_ARROW));
|
|
1956
1558
|
if (!i)
|
|
@@ -1959,7 +1561,7 @@ function ht(e, t) {
|
|
|
1959
1561
|
}
|
|
1960
1562
|
return r;
|
|
1961
1563
|
}
|
|
1962
|
-
function
|
|
1564
|
+
function Wo(e) {
|
|
1963
1565
|
const t = e.closest("li");
|
|
1964
1566
|
if (!t)
|
|
1965
1567
|
throw console.error("element", e), new Error("toggleChildMenuExpansion: parent not found for child");
|
|
@@ -1974,18 +1576,18 @@ function fr(e) {
|
|
|
1974
1576
|
n.classList.toggle(a.VISUALLY_HIDDEN), n.classList.contains(a.VISUALLY_HIDDEN) ? (o.setAttribute("aria-expanded", "false"), r.classList.add(a.IS_CLOSED), r.classList.remove(a.IS_OPEN)) : (o.setAttribute("aria-expanded", "true"), r.classList.remove(a.IS_CLOSED), r.classList.add(a.IS_OPEN));
|
|
1975
1577
|
});
|
|
1976
1578
|
}
|
|
1977
|
-
function
|
|
1579
|
+
function ko(e) {
|
|
1978
1580
|
return (t) => {
|
|
1979
|
-
t.preventDefault(), t.stopPropagation(),
|
|
1581
|
+
t.preventDefault(), t.stopPropagation(), Wo(e);
|
|
1980
1582
|
};
|
|
1981
1583
|
}
|
|
1982
|
-
function
|
|
1983
|
-
const e =
|
|
1584
|
+
function Ht() {
|
|
1585
|
+
const e = I(Ln);
|
|
1984
1586
|
return e.classList.add(a.IS_CLOSED), e;
|
|
1985
1587
|
}
|
|
1986
|
-
function
|
|
1987
|
-
var
|
|
1988
|
-
const o =
|
|
1588
|
+
function Fo(e, t, n) {
|
|
1589
|
+
var f, h;
|
|
1590
|
+
const o = I(Pn), r = o.querySelector(p(a.POPUP_MENU__TITLE));
|
|
1989
1591
|
if (!r)
|
|
1990
1592
|
throw new Error("renderPopupMenuItem: menuItemTitleWrapper not found");
|
|
1991
1593
|
const i = (
|
|
@@ -2015,14 +1617,22 @@ function hr(e, t, n) {
|
|
|
2015
1617
|
const d = o.querySelector(`a ${p(a.POPUP_MENU__LINK_TEXT)}`);
|
|
2016
1618
|
if (!d)
|
|
2017
1619
|
throw new Error("renderPopupMenuItem: titleSpanLink not found");
|
|
2018
|
-
|
|
1620
|
+
const m = t.actionMenu && [...t.actionMenu];
|
|
1621
|
+
if (m && (t.actionFunction || t.actionUrl || t.actionFunctionUrl) && m.unshift({
|
|
1622
|
+
actionFunction: t.actionFunction,
|
|
1623
|
+
actionFunctionUrl: t.actionFunctionUrl,
|
|
1624
|
+
actionUrl: t.actionUrl,
|
|
1625
|
+
className: t.className,
|
|
1626
|
+
icon: t.icon,
|
|
1627
|
+
title: `${t.title} (page)`
|
|
1628
|
+
}), m) {
|
|
2019
1629
|
let _;
|
|
2020
1630
|
switch (n.childrenMenuType) {
|
|
2021
|
-
case
|
|
2022
|
-
_ =
|
|
2023
|
-
const
|
|
1631
|
+
case Y.FLYOUT: {
|
|
1632
|
+
_ = Ht(), i.appendChild(_), i.setAttribute("id", U());
|
|
1633
|
+
const E = ft(
|
|
2024
1634
|
{
|
|
2025
|
-
menuItems:
|
|
1635
|
+
menuItems: m,
|
|
2026
1636
|
title: t.title
|
|
2027
1637
|
},
|
|
2028
1638
|
i,
|
|
@@ -2031,44 +1641,44 @@ function hr(e, t, n) {
|
|
|
2031
1641
|
removePopupArrow: !0
|
|
2032
1642
|
}
|
|
2033
1643
|
);
|
|
2034
|
-
o.appendChild(
|
|
1644
|
+
o.appendChild(E), ye(
|
|
2035
1645
|
o,
|
|
2036
1646
|
i,
|
|
2037
|
-
|
|
1647
|
+
E,
|
|
2038
1648
|
"menu",
|
|
2039
1649
|
{
|
|
2040
|
-
popupPlacement:
|
|
1650
|
+
popupPlacement: rt.RIGHT_START,
|
|
2041
1651
|
preventOnClickHandling: !0,
|
|
2042
1652
|
shouldFocusOnHover: !0
|
|
2043
1653
|
}
|
|
2044
1654
|
), u.remove(), s.remove();
|
|
2045
1655
|
break;
|
|
2046
1656
|
}
|
|
2047
|
-
case
|
|
2048
|
-
const
|
|
2049
|
-
|
|
1657
|
+
case Y.INLINE: {
|
|
1658
|
+
const E = he(
|
|
1659
|
+
m,
|
|
2050
1660
|
n
|
|
2051
|
-
),
|
|
2052
|
-
|
|
2053
|
-
var
|
|
2054
|
-
for (let
|
|
1661
|
+
), b = U();
|
|
1662
|
+
E.setAttribute("id", b), E.classList.add(a.VISUALLY_HIDDEN), o.appendChild(E), i.onclick = ko(i), i.setAttribute("aria-expanded", "false"), i.setAttribute("aria-controls", b), _ = Ht(), i.appendChild(_), u.remove(), s.remove(), o.addEventListener("focusin", (g) => {
|
|
1663
|
+
var M, w, v, T;
|
|
1664
|
+
for (let A = (
|
|
2055
1665
|
/** @type Element | null | undefined */
|
|
2056
|
-
(
|
|
2057
|
-
);
|
|
2058
|
-
|
|
1666
|
+
(M = g.target) == null ? void 0 : M.closest("ul")
|
|
1667
|
+
); A; A = (w = A.parentElement) == null ? void 0 : w.closest("ul"))
|
|
1668
|
+
A.classList.remove(a.VISUALLY_HIDDEN), i.setAttribute("aria-expanded", "true"), g.target !== i && ((v = _ == null ? void 0 : _.classList) == null || v.remove(a.IS_CLOSED), (T = _ == null ? void 0 : _.classList) == null || T.add(a.IS_OPEN));
|
|
2059
1669
|
});
|
|
2060
1670
|
break;
|
|
2061
1671
|
}
|
|
2062
|
-
case
|
|
2063
|
-
const
|
|
2064
|
-
|
|
1672
|
+
case Y.MEGA_MENU: {
|
|
1673
|
+
const E = he(
|
|
1674
|
+
m,
|
|
2065
1675
|
n
|
|
2066
|
-
),
|
|
2067
|
-
|
|
1676
|
+
), b = U();
|
|
1677
|
+
E.setAttribute("id", b), o.appendChild(E), u.remove(), i.remove(), s.appendChild(document.createTextNode(t.title));
|
|
2068
1678
|
break;
|
|
2069
1679
|
}
|
|
2070
1680
|
default:
|
|
2071
|
-
throw new Error(`renderPopupMenuItem: childrenMenuType unknown '${
|
|
1681
|
+
throw new Error(`renderPopupMenuItem: childrenMenuType unknown '${n.childrenMenuType}'`);
|
|
2072
1682
|
}
|
|
2073
1683
|
l.remove();
|
|
2074
1684
|
} else if (t.actionFunction)
|
|
@@ -2077,34 +1687,58 @@ function hr(e, t, n) {
|
|
|
2077
1687
|
u.setAttribute("href", t.actionUrl.url), i.remove(), l.remove(), s.remove();
|
|
2078
1688
|
else if (t.actionFunctionUrl)
|
|
2079
1689
|
u.setAttribute("href", t.actionFunctionUrl.url), u.onclick = (_) => {
|
|
2080
|
-
var
|
|
2081
|
-
(
|
|
1690
|
+
var E, b;
|
|
1691
|
+
(E = t.actionFunctionUrl) != null && E.skipHandleEvent || (_.stopPropagation(), _.preventDefault()), (b = t.actionFunctionUrl) == null || b.actionFunction(_);
|
|
2082
1692
|
}, i.remove(), l.remove(), s.remove();
|
|
2083
1693
|
else if (t.isDivider)
|
|
2084
1694
|
r.remove(), o.setAttribute("aria-hidden", "true"), o.setAttribute("role", "separator");
|
|
2085
1695
|
else
|
|
2086
1696
|
throw console.error(t), new Error("renderPopupMenuItem: popupMenuItem must have either actionMenu, actionFunction, actionUrl, or isDivider (popupMenuItem.title)");
|
|
2087
|
-
if (!t.isDivider && (c.appendChild(document.createTextNode(t.title)), d.appendChild(document.createTextNode(t.title)), (
|
|
1697
|
+
if (!t.isDivider && (c.appendChild(document.createTextNode(t.title)), d.appendChild(document.createTextNode(t.title)), (f = t.actionUrl) != null && f.openInNewTab || (h = t.actionFunctionUrl) != null && h.openInNewTab)) {
|
|
2088
1698
|
u.setAttribute("target", "_blank");
|
|
2089
|
-
const _ =
|
|
1699
|
+
const _ = I(Gt);
|
|
2090
1700
|
c.appendChild(_), d.appendChild(_);
|
|
2091
1701
|
}
|
|
2092
|
-
return (t.isSelected || t.actionMenu &&
|
|
1702
|
+
return (t.isSelected || t.actionMenu && ke(t.actionMenu, ["actionMenu"], (_) => !!_.isSelected)) && (i.classList.add(a.MENU_ITEM__SELECTED), u.classList.add(a.MENU_ITEM__SELECTED)), t.isSelected ? o.classList.add(a.MENU_ITEM__SELECTED) : o.classList.remove(a.MENU_ITEM__SELECTED), e.appendChild(o), o;
|
|
2093
1703
|
}
|
|
2094
|
-
function
|
|
2095
|
-
const n =
|
|
2096
|
-
return e == null || e.forEach((o) =>
|
|
1704
|
+
function he(e, t) {
|
|
1705
|
+
const n = I(yn);
|
|
1706
|
+
return e == null || e.forEach((o) => Fo(n, o, t)), n;
|
|
2097
1707
|
}
|
|
2098
|
-
function
|
|
2099
|
-
const o =
|
|
1708
|
+
function ft(e, t, n) {
|
|
1709
|
+
const o = pt(t, { removePopupArrow: n.removePopupArrow }), r = o.querySelector(p(a.POPUP_CONTENT_WRAPPER));
|
|
2100
1710
|
if (!r)
|
|
2101
1711
|
throw new Error("renderPopupMenu: contentWrapper not found");
|
|
2102
|
-
const i =
|
|
1712
|
+
const i = he(e.menuItems, n);
|
|
2103
1713
|
return i.setAttribute("aria-label", e.title), r.appendChild(i), o;
|
|
2104
1714
|
}
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
1715
|
+
const qo = `<div class="utds-badge__wrapper">
|
|
1716
|
+
<span class="utds-badge__value"></span>
|
|
1717
|
+
<span class="utds-badge__label visually-hidden"></span>
|
|
1718
|
+
</div>
|
|
1719
|
+
`;
|
|
1720
|
+
function _t(e) {
|
|
1721
|
+
let t = null;
|
|
1722
|
+
if (e) {
|
|
1723
|
+
t = /** @type {HTMLElement} */
|
|
1724
|
+
I(qo), t.classList.add(a.BADGE_WRAPPER__ACTION_ITEM);
|
|
1725
|
+
const n = t.querySelector(p(a.BADGE__LABEL));
|
|
1726
|
+
if (!n)
|
|
1727
|
+
throw new Error("renderActionItemBadge: badgeLabel not found");
|
|
1728
|
+
if (n.appendChild(document.createTextNode(e.label)), e.value || e.value === 0) {
|
|
1729
|
+
const o = t.querySelector(p(a.BADGE__VALUE));
|
|
1730
|
+
if (!o)
|
|
1731
|
+
throw new Error("renderActionItemBadge: badgeValue not found");
|
|
1732
|
+
o.appendChild(document.createTextNode(`${e.value}`));
|
|
1733
|
+
} else
|
|
1734
|
+
t.classList.add(a.BADGE_WRAPPER__SMALL);
|
|
1735
|
+
e.className && t.classList.add(e.className);
|
|
1736
|
+
}
|
|
1737
|
+
return t;
|
|
1738
|
+
}
|
|
1739
|
+
function Vo(e) {
|
|
1740
|
+
const t = I(wn);
|
|
1741
|
+
t.getAttribute("id") || t.setAttribute("id", U());
|
|
2108
1742
|
const n = document.createTextNode(e.title), o = (
|
|
2109
1743
|
/** @type {HTMLElement} */
|
|
2110
1744
|
t instanceof HTMLCollection ? t[0] : t
|
|
@@ -2121,30 +1755,30 @@ function mr(e) {
|
|
|
2121
1755
|
if (!i)
|
|
2122
1756
|
throw new Error("renderActionItem: iconButton not found");
|
|
2123
1757
|
e.className && i.classList.add(e.className);
|
|
2124
|
-
const u =
|
|
1758
|
+
const u = _t(e.badge);
|
|
2125
1759
|
u && i.appendChild(u);
|
|
2126
|
-
const s =
|
|
1760
|
+
const s = I(e.icon);
|
|
2127
1761
|
s.setAttribute("role", "presentation"), i.appendChild(s);
|
|
2128
1762
|
let l = null;
|
|
2129
1763
|
if (e.actionFunction)
|
|
2130
1764
|
i.onclick = e.actionFunction;
|
|
2131
1765
|
else if (e.actionDom) {
|
|
2132
|
-
const c =
|
|
2133
|
-
i.setAttribute("id", c), l =
|
|
1766
|
+
const c = U();
|
|
1767
|
+
i.setAttribute("id", c), l = I(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom);
|
|
2134
1768
|
} else if (e.actionPopupMenu) {
|
|
2135
|
-
const c =
|
|
2136
|
-
i.setAttribute("id", c), l =
|
|
1769
|
+
const c = U();
|
|
1770
|
+
i.setAttribute("id", c), l = I(On);
|
|
2137
1771
|
const d = l.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
|
|
2138
1772
|
if (!d)
|
|
2139
1773
|
throw new Error("renderMobileActionItem: actionItemContentTitle not found");
|
|
2140
1774
|
d.appendChild(document.createTextNode(e.actionPopupMenu.title));
|
|
2141
|
-
const
|
|
2142
|
-
l.appendChild(
|
|
1775
|
+
const m = he(e.actionPopupMenu.menuItems, { childrenMenuType: Y.INLINE });
|
|
1776
|
+
l.appendChild(m);
|
|
2143
1777
|
} else
|
|
2144
1778
|
throw console.error(e), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
|
|
2145
1779
|
return { actionItemElement: t, actionItemContent: l };
|
|
2146
1780
|
}
|
|
2147
|
-
function
|
|
1781
|
+
function $o() {
|
|
2148
1782
|
var u, s, l;
|
|
2149
1783
|
const e = document.getElementById(a.MOBILE_MENU_ACTON_BAR__HOME_ID);
|
|
2150
1784
|
if (!e)
|
|
@@ -2155,11 +1789,11 @@ function Er() {
|
|
|
2155
1789
|
);
|
|
2156
1790
|
if (!t)
|
|
2157
1791
|
throw new Error("renderMobileActionItems: homeActionItemWrapper not found");
|
|
2158
|
-
const o = !!
|
|
1792
|
+
const o = !!L().utahId ? document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID) : null, r = (
|
|
2159
1793
|
/** @type {HTMLElement} */
|
|
2160
1794
|
(u = o == null ? void 0 : o.closest) == null ? void 0 : u.call(o, p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER))
|
|
2161
1795
|
);
|
|
2162
|
-
(l = (s = [...
|
|
1796
|
+
(l = (s = [...L().actionItems || []].reverse()) == null ? void 0 : s.map((c) => ({ actionItem: c, ...Vo(c) }))) == null || l.forEach(({ actionItem: c, actionItemContent: d, actionItemElement: m }) => {
|
|
2163
1797
|
let f;
|
|
2164
1798
|
switch (c.mobileMenuLocation) {
|
|
2165
1799
|
case "left":
|
|
@@ -2173,46 +1807,106 @@ function Er() {
|
|
|
2173
1807
|
f = r || t;
|
|
2174
1808
|
break;
|
|
2175
1809
|
}
|
|
2176
|
-
if (f && (f.after(
|
|
2177
|
-
const
|
|
2178
|
-
let
|
|
2179
|
-
c.actionDom ?
|
|
1810
|
+
if (f && (f.after(m), d)) {
|
|
1811
|
+
const h = nt(d);
|
|
1812
|
+
let _ = null;
|
|
1813
|
+
c.actionDom ? _ = "dialog" : c.actionPopupMenu && (_ = "menu"), ot(
|
|
1814
|
+
m,
|
|
2180
1815
|
h,
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
{ ariaHasPopupType: m, shouldOnClickCloseMenu: !1 }
|
|
1816
|
+
m,
|
|
1817
|
+
{ ariaHasPopupType: _, shouldOnClickCloseMenu: !1 }
|
|
2184
1818
|
);
|
|
2185
1819
|
}
|
|
2186
|
-
}),
|
|
2187
|
-
}
|
|
2188
|
-
const
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
1820
|
+
}), L().mainMenu || (e.remove(), t.remove());
|
|
1821
|
+
}
|
|
1822
|
+
const Go = `<div class="utds-footer utah-design-system">
|
|
1823
|
+
<div class="utds-footer__horizontal-divider">
|
|
1824
|
+
<hr />
|
|
1825
|
+
</div>
|
|
1826
|
+
<div class="utds-footer__utah-logo-wrapper">
|
|
1827
|
+
<div class="utah-logo-svg" id="utah-logo-svg">
|
|
1828
|
+
<svg viewBox="0 0 107 30.51" role="img">
|
|
1829
|
+
<g><path d="m12.44,30.51c-4.21,0-7.33-1.22-9.38-3.66C1.02,24.4,0,20.61,0,15.48V0h7.93v16.4c0,2.67.36,4.55,1.08,5.65.77,1.12,2.08,1.74,3.43,1.64,1.36.1,2.68-.52,3.48-1.63.75-1.09,1.13-2.97,1.13-5.65V0h7.65v15.48c0,5.13-1,8.92-3,11.36-2,2.44-5.09,3.66-9.26,3.66Zm24.42-.56V6.64h-7.93V0h23.78v6.64h-7.93v23.31h-7.92Zm26.17-14.56l-.51,2.07h5.53l-.51-2.07c-.37-1.44-.74-3.01-1.11-4.7-.37-1.69-.74-3.29-1.11-4.79h-.18c-.34,1.53-.68,3.14-1.04,4.82-.35,1.68-.71,3.24-1.08,4.68Zm-11.52,14.56L60.64,0h9.58l9.12,29.95h-8.39l-1.48-6.36h-8.38l-1.47,6.36h-8.11Zm30.69,0V0h7.93v11.15h8.94V0h7.93v29.95h-7.93v-11.89h-8.94v11.89h-7.93Z"/></g>
|
|
1830
|
+
</svg>
|
|
1831
|
+
</div>
|
|
1832
|
+
<div class="utds-footer__vertical-divider" role="separator" aria-orientation="vertical"></div>
|
|
1833
|
+
<div class="utds-footer__official-site-wrapper">
|
|
1834
|
+
<div class="utds-footer__official-site">An official website of the <span class="whitespace-no-wrap">State of Utah</span></div>
|
|
1835
|
+
<div class="utds-footer__copyright">©2023 State of Utah</div>
|
|
1836
|
+
</div>
|
|
1837
|
+
</div>
|
|
1838
|
+
<div class="utds-footer__links">
|
|
1839
|
+
<ul>
|
|
1840
|
+
<li><a href="https://www.utah.gov" target="__blank" rel="noreferrer">Utah.gov Home</a></li>
|
|
1841
|
+
<li><a href="https://www.utah.gov/disclaimer.html" target="__blank" rel="noreferrer">Terms of Use</a></li>
|
|
1842
|
+
<li><a href="https://www.utah.gov/privacypolicy.html" target="__blank" rel="noreferrer">Privacy Policy</a></li>
|
|
1843
|
+
<li><a href="https://www.utah.gov/accessibility.html" target="__blank" rel="noreferrer">Accessibility</a></li>
|
|
1844
|
+
<li><a href="https://www.utah.gov/translate.html" target="__blank" rel="noreferrer">Translate</a></li>
|
|
1845
|
+
</ul>
|
|
1846
|
+
</div>
|
|
1847
|
+
</div>
|
|
1848
|
+
`;
|
|
1849
|
+
let ae = null;
|
|
1850
|
+
function zo() {
|
|
1851
|
+
var o, r, i, u, s, l, c, d, m, f, h, _, E, b, g, M;
|
|
1852
|
+
const e = L(), t = document.querySelector(p(a.FOOTER));
|
|
1853
|
+
let n = t;
|
|
1854
|
+
if (e.footer === null)
|
|
1855
|
+
t == null || t.remove();
|
|
1856
|
+
else if (((o = ae == null ? void 0 : ae.footer) == null ? void 0 : o.domLocationTarget) !== ((r = e == null ? void 0 : e.footer) == null ? void 0 : r.domLocationTarget) || ((i = ae == null ? void 0 : ae.footer) == null ? void 0 : i.showHorizontalRule) !== ((u = e == null ? void 0 : e.footer) == null ? void 0 : u.showHorizontalRule) || !t) {
|
|
1857
|
+
t && t.remove(), n = I(Go);
|
|
1858
|
+
let v = document.body;
|
|
1859
|
+
if ((s = e == null ? void 0 : e.footer) != null && s.domLocationTarget) {
|
|
1860
|
+
const T = [
|
|
1861
|
+
(l = e == null ? void 0 : e.footer) == null ? void 0 : l.domLocationTarget.cssSelector,
|
|
1862
|
+
(c = e == null ? void 0 : e.footer) == null ? void 0 : c.domLocationTarget.element,
|
|
1863
|
+
(d = e == null ? void 0 : e.footer) == null ? void 0 : d.domLocationTarget.elementFunction
|
|
1864
|
+
].filter((A) => A);
|
|
1865
|
+
if (X(T.length < 1, "renderFooter: footer.domLocationTarget must either have a value for one of its properties or not be specified at all"), X(T.length > 1, "renderFooter: footer.domLocationTarget must only have one target specified"), (m = e == null ? void 0 : e.footer) != null && m.domLocationTarget.cssSelector)
|
|
1866
|
+
v = document.querySelector((f = e == null ? void 0 : e.footer) == null ? void 0 : f.domLocationTarget.cssSelector), X(!v, `renderFooter: element not found for domLocationTarget.cssSelector ${(h = e == null ? void 0 : e.footer) == null ? void 0 : h.domLocationTarget.cssSelector}`);
|
|
1867
|
+
else if ((_ = e == null ? void 0 : e.footer) != null && _.domLocationTarget.element)
|
|
1868
|
+
v = (E = e == null ? void 0 : e.footer) == null ? void 0 : E.domLocationTarget.element;
|
|
1869
|
+
else if ((b = e == null ? void 0 : e.footer) != null && b.domLocationTarget.elementFunction)
|
|
1870
|
+
v = (g = e == null ? void 0 : e.footer) == null ? void 0 : g.domLocationTarget.elementFunction(), X(!v, "renderFooter: element not returned from domLocationTarget.elementFunction");
|
|
1871
|
+
else
|
|
1872
|
+
throw new Error("renderFooter: domLocationTarget must have at least one field set");
|
|
1873
|
+
}
|
|
1874
|
+
if (v == null || v.appendChild(n), !((M = e == null ? void 0 : e.footer) != null && M.showHorizontalRule)) {
|
|
1875
|
+
const T = document.querySelector(p(a.FOOTER_HORIZONTAL_DIVIDER));
|
|
1876
|
+
X(!T, "renderFooter: cannot remove horizontal rule; not found"), T == null || T.remove();
|
|
1877
|
+
}
|
|
1878
|
+
ae = JSON.parse(JSON.stringify(e));
|
|
1879
|
+
}
|
|
1880
|
+
return n;
|
|
1881
|
+
}
|
|
1882
|
+
const Yo = `<div class="utds-citizen-experience-wrapper--mobile"></div>
|
|
1883
|
+
`, Ko = `<h1 class="utds-logo-wrapper"></h1>
|
|
1884
|
+
`, jo = `<div class="utah-design-system utds-header" role="banner" aria-label="Utah.gov Header"></div>
|
|
1885
|
+
`, Zo = `<span class="utds-logo-vert-line"></span>
|
|
1886
|
+
`, Xo = `<div class="utds-citizen-experience-wrapper"></div>
|
|
1887
|
+
`, Jo = `<div class="utds-action-items-wrapper"></div>
|
|
1888
|
+
`, Qo = `<div class="utds-header-action-item">
|
|
2195
1889
|
<button type="button" class="icon-button utds-header-action-item__icon-button">
|
|
2196
1890
|
<div class="utds-header-action-item__title visually-hidden"></div>
|
|
2197
1891
|
</button>
|
|
2198
1892
|
</div>
|
|
2199
|
-
`,
|
|
1893
|
+
`, er = `<div class="tooltip__wrapper tooltip__wrapper--hidden" aria-hidden="true">
|
|
2200
1894
|
<div class="tooltip__content">
|
|
2201
1895
|
<div class="tooltip__arrow" data-popper-arrow></div>
|
|
2202
1896
|
</div>
|
|
2203
1897
|
</div>
|
|
2204
1898
|
`;
|
|
2205
|
-
let
|
|
2206
|
-
function
|
|
2207
|
-
const n =
|
|
1899
|
+
let ue = NaN;
|
|
1900
|
+
function Ae(e, t) {
|
|
1901
|
+
const n = I(er), o = n.querySelector(p(a.TOOLTIP__CONTENT));
|
|
2208
1902
|
if (!o)
|
|
2209
1903
|
throw new Error("hookupToolTip: toolTipContent not found");
|
|
2210
1904
|
o.appendChild(t), e.appendChild(n);
|
|
2211
|
-
const r =
|
|
1905
|
+
const r = tn(
|
|
2212
1906
|
e,
|
|
2213
1907
|
n,
|
|
2214
1908
|
{
|
|
2215
|
-
placement:
|
|
1909
|
+
placement: rt.BOTTOM,
|
|
2216
1910
|
modifiers: [
|
|
2217
1911
|
{
|
|
2218
1912
|
name: "offset",
|
|
@@ -2227,24 +1921,24 @@ function Oe(e, t) {
|
|
|
2227
1921
|
e.onmouseenter = () => {
|
|
2228
1922
|
clearTimeout(i), i = window.setTimeout(
|
|
2229
1923
|
() => {
|
|
2230
|
-
clearTimeout(
|
|
1924
|
+
clearTimeout(ue), ue = -1;
|
|
2231
1925
|
const u = e.querySelector(p(a.POPUP_WRAPPER));
|
|
2232
1926
|
(!u || u.classList.contains(a.POPUP__HIDDEN)) && (n.classList.remove(a.TOOLTIP__WRAPPER__HIDDEN), n.classList.add(a.TOOLTIP__WRAPPER__VISIBLE), r.update().catch((s) => console.error(s)));
|
|
2233
1927
|
},
|
|
2234
1928
|
// tooltip was already opened on another item, so instantly open tooltip
|
|
2235
|
-
|
|
1929
|
+
ue ? 0 : 500
|
|
2236
1930
|
);
|
|
2237
1931
|
}, e.onmouseleave = () => {
|
|
2238
|
-
clearTimeout(i), n.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), n.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE), clearTimeout(
|
|
1932
|
+
clearTimeout(i), n.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), n.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE), clearTimeout(ue), ue = window.setTimeout(
|
|
2239
1933
|
() => {
|
|
2240
|
-
|
|
1934
|
+
ue = NaN;
|
|
2241
1935
|
},
|
|
2242
1936
|
500
|
|
2243
1937
|
);
|
|
2244
1938
|
};
|
|
2245
1939
|
}
|
|
2246
|
-
function
|
|
2247
|
-
const t =
|
|
1940
|
+
function tr(e) {
|
|
1941
|
+
const t = I(Qo), n = document.createTextNode(e.title), o = (
|
|
2248
1942
|
/** @type {HTMLElement} */
|
|
2249
1943
|
t instanceof HTMLCollection ? t[0] : t
|
|
2250
1944
|
);
|
|
@@ -2257,62 +1951,62 @@ function wr(e) {
|
|
|
2257
1951
|
if (!i)
|
|
2258
1952
|
throw new Error("renderActionItem: iconButton not found");
|
|
2259
1953
|
e.className && i.classList.add(e.className);
|
|
2260
|
-
const u =
|
|
1954
|
+
const u = _t(e.badge);
|
|
2261
1955
|
u && i.appendChild(u);
|
|
2262
|
-
const s =
|
|
1956
|
+
const s = I(e.icon);
|
|
2263
1957
|
if (s.setAttribute("role", "presentation"), i.appendChild(s), !(i instanceof HTMLElement))
|
|
2264
1958
|
throw new Error("renderActionItem: iconButton is not an HTMLElement");
|
|
2265
1959
|
if (e.actionFunction)
|
|
2266
1960
|
i.onclick = e.actionFunction;
|
|
2267
1961
|
else if (e.actionDom) {
|
|
2268
|
-
const l =
|
|
1962
|
+
const l = U();
|
|
2269
1963
|
i.setAttribute("id", l);
|
|
2270
|
-
const c =
|
|
1964
|
+
const c = pt(i), d = (
|
|
2271
1965
|
/** @type {HTMLElement} */
|
|
2272
1966
|
c.querySelector(p(a.POPUP_CONTENT_WRAPPER))
|
|
2273
1967
|
);
|
|
2274
1968
|
if (!d)
|
|
2275
1969
|
throw new Error("renderPopupMenu: contentWrapper not found");
|
|
2276
|
-
d.appendChild(
|
|
1970
|
+
d.appendChild(I(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom)), t.appendChild(c), ye(o, i, c, "dialog", void 0);
|
|
2277
1971
|
} else if (e.actionPopupMenu) {
|
|
2278
|
-
const l =
|
|
1972
|
+
const l = U();
|
|
2279
1973
|
i.setAttribute("id", l);
|
|
2280
|
-
const c =
|
|
1974
|
+
const c = ft(
|
|
2281
1975
|
/** @type {PopupMenu} */
|
|
2282
1976
|
e.actionPopupMenu,
|
|
2283
1977
|
i,
|
|
2284
|
-
{ childrenMenuType:
|
|
1978
|
+
{ childrenMenuType: Y.INLINE }
|
|
2285
1979
|
);
|
|
2286
|
-
t.appendChild(c),
|
|
1980
|
+
t.appendChild(c), ye(o, i, c, "menu", void 0);
|
|
2287
1981
|
} else
|
|
2288
1982
|
throw console.error(e), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
|
|
2289
|
-
return
|
|
1983
|
+
return Ae(t, document.createTextNode(e.title)), t;
|
|
2290
1984
|
}
|
|
2291
|
-
function
|
|
1985
|
+
function nr() {
|
|
2292
1986
|
var n, o;
|
|
2293
|
-
const { actionItems: e } =
|
|
1987
|
+
const { actionItems: e } = L();
|
|
2294
1988
|
let t = null;
|
|
2295
|
-
return e != null && e.length && (t =
|
|
1989
|
+
return e != null && e.length && (t = I(Jo), (o = (n = L().actionItems) == null ? void 0 : n.map((r) => tr(r))) == null || o.forEach((r) => t.appendChild(r))), t;
|
|
2296
1990
|
}
|
|
2297
|
-
const
|
|
2298
|
-
`,
|
|
2299
|
-
`,
|
|
1991
|
+
const or = `<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
|
|
1992
|
+
`, on = `<div class="utds-utah-id-wrapper"></div>
|
|
1993
|
+
`, Pe = {
|
|
2300
1994
|
PROFILE: "https://id.utah.gov",
|
|
2301
1995
|
SIGN_IN: `https://id.utah.gov/login?goto=${window.location}`,
|
|
2302
1996
|
SIGN_OUT: `https://id.utah.gov/logout?goto=${window.location}`,
|
|
2303
1997
|
USER_INFO: "https://id.utah.gov/api/userInfo"
|
|
2304
|
-
},
|
|
1998
|
+
}, rr = `<div class="vertical-menu__wrapper">
|
|
2305
1999
|
<div class="vertical-menu__wrapper-title"></div>
|
|
2306
2000
|
</div>
|
|
2307
2001
|
`;
|
|
2308
|
-
function
|
|
2309
|
-
const n =
|
|
2002
|
+
function rn(e, t) {
|
|
2003
|
+
const n = I(rr), o = n.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
|
|
2310
2004
|
if (!o)
|
|
2311
2005
|
throw new Error("renderMenuWithTitle: menuTitleDiv not found");
|
|
2312
2006
|
return o.appendChild(document.createTextNode(t)), n.appendChild(e), n;
|
|
2313
2007
|
}
|
|
2314
2008
|
let y = null;
|
|
2315
|
-
function
|
|
2009
|
+
function an(e) {
|
|
2316
2010
|
y = e, document.querySelectorAll(p(a.UTAH_ID__BUTTON)).forEach((n) => {
|
|
2317
2011
|
var o;
|
|
2318
2012
|
if (n) {
|
|
@@ -2325,21 +2019,21 @@ function un(e) {
|
|
|
2325
2019
|
if (!r)
|
|
2326
2020
|
throw new Error(`authChangedEventHandler: popup id for button not found - ${r}`);
|
|
2327
2021
|
const i = document.getElementById(r);
|
|
2328
|
-
i &&
|
|
2022
|
+
i && ht(n, i);
|
|
2329
2023
|
}
|
|
2330
2024
|
});
|
|
2331
2025
|
}
|
|
2332
|
-
function
|
|
2026
|
+
function ht(e, t) {
|
|
2333
2027
|
var n;
|
|
2334
2028
|
e && t && (!!(y != null && y.isDefinitive) && !!((n = y == null ? void 0 : y.userInfo) != null && n.authenticated) ? (e.setAttribute("aria-haspopup", "menu"), e.setAttribute("aria-expanded", "false"), t.removeAttribute("aria-hidden")) : (e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), t.setAttribute("aria-hidden", "true")));
|
|
2335
2029
|
}
|
|
2336
|
-
function
|
|
2337
|
-
const e =
|
|
2338
|
-
return e.setAttribute("id",
|
|
2030
|
+
function sn() {
|
|
2031
|
+
const e = I(or);
|
|
2032
|
+
return e.setAttribute("id", U()), y && an(y), e;
|
|
2339
2033
|
}
|
|
2340
|
-
function
|
|
2034
|
+
function ln(e) {
|
|
2341
2035
|
var l, c, d;
|
|
2342
|
-
const t =
|
|
2036
|
+
const t = L(), n = t.utahId !== !1 && t.utahId !== !0 && ((l = t.utahId) == null ? void 0 : l.onProfile), o = t.utahId !== !1 && t.utahId !== !0 && ((c = t.utahId) == null ? void 0 : c.onSignOut), r = [...t.utahId !== !0 && t.utahId !== !1 && ((d = t.utahId) == null ? void 0 : d.menuItems) || []];
|
|
2343
2037
|
r.length && r.push({
|
|
2344
2038
|
isDivider: !0,
|
|
2345
2039
|
title: "--divider--"
|
|
@@ -2347,32 +2041,32 @@ function pn(e) {
|
|
|
2347
2041
|
const i = [
|
|
2348
2042
|
...r,
|
|
2349
2043
|
{
|
|
2350
|
-
actionUrl: n ? void 0 : { url:
|
|
2044
|
+
actionUrl: n ? void 0 : { url: Pe.PROFILE, openInNewTab: !0 },
|
|
2351
2045
|
actionFunction: n || void 0,
|
|
2352
2046
|
className: "external-link",
|
|
2353
2047
|
title: "UtahID Profile"
|
|
2354
2048
|
},
|
|
2355
2049
|
{
|
|
2356
|
-
actionUrl: o ? void 0 : { url:
|
|
2050
|
+
actionUrl: o ? void 0 : { url: Pe.SIGN_OUT },
|
|
2357
2051
|
actionFunction: o || void 0,
|
|
2358
2052
|
title: "Sign Out"
|
|
2359
2053
|
}
|
|
2360
|
-
], u =
|
|
2361
|
-
return s.setAttribute("aria-label", "Utah Id Menu"), s.setAttribute("id",
|
|
2054
|
+
], u = he(i, { childrenMenuType: Y.INLINE }), s = e ? rn(u, "Utah ID Menu") : u;
|
|
2055
|
+
return s.setAttribute("aria-label", "Utah Id Menu"), s.setAttribute("id", U()), s;
|
|
2362
2056
|
}
|
|
2363
|
-
function
|
|
2057
|
+
function ir() {
|
|
2364
2058
|
var s;
|
|
2365
|
-
const e =
|
|
2366
|
-
t.setAttribute("id",
|
|
2367
|
-
const n =
|
|
2059
|
+
const e = I(on), t = sn();
|
|
2060
|
+
t.setAttribute("id", U()), e.appendChild(t);
|
|
2061
|
+
const n = ln(!1), o = pt(t), r = (
|
|
2368
2062
|
/** @type {HTMLElement} */
|
|
2369
2063
|
o.querySelector(p(a.POPUP_CONTENT_WRAPPER))
|
|
2370
2064
|
);
|
|
2371
2065
|
if (!r)
|
|
2372
2066
|
throw new Error("renderUtahIdForDesktop: contentWrapper not found");
|
|
2373
|
-
r.appendChild(n), e.appendChild(o),
|
|
2374
|
-
const i =
|
|
2375
|
-
return
|
|
2067
|
+
r.appendChild(n), e.appendChild(o), ht(t, o);
|
|
2068
|
+
const i = L(), u = i.utahId !== !1 && i.utahId !== !0 && ((s = i.utahId) == null ? void 0 : s.onSignIn);
|
|
2069
|
+
return ye(
|
|
2376
2070
|
e,
|
|
2377
2071
|
t,
|
|
2378
2072
|
o,
|
|
@@ -2384,51 +2078,51 @@ function Nr() {
|
|
|
2384
2078
|
},
|
|
2385
2079
|
onClick: (l) => {
|
|
2386
2080
|
var c;
|
|
2387
|
-
(!(y != null && y.isDefinitive) || !((c = y == null ? void 0 : y.userInfo) != null && c.authenticated)) && (u ? u(l) : (l.preventDefault(), l.stopPropagation(), window.location.href =
|
|
2081
|
+
(!(y != null && y.isDefinitive) || !((c = y == null ? void 0 : y.userInfo) != null && c.authenticated)) && (u ? u(l) : (l.preventDefault(), l.stopPropagation(), window.location.href = Pe.SIGN_IN));
|
|
2388
2082
|
}
|
|
2389
2083
|
}
|
|
2390
2084
|
), e;
|
|
2391
2085
|
}
|
|
2392
|
-
function
|
|
2393
|
-
const e =
|
|
2086
|
+
function ar() {
|
|
2087
|
+
const e = I(on), t = sn(), n = t.getAttribute("id");
|
|
2394
2088
|
if (!n)
|
|
2395
2089
|
throw new Error("renderUtahIdForMobile: utahIdButton has no id");
|
|
2396
2090
|
e.appendChild(t);
|
|
2397
|
-
const o =
|
|
2091
|
+
const o = ln(!0), r = o.getAttribute("id");
|
|
2398
2092
|
if (!r)
|
|
2399
2093
|
throw new Error("renderUtahIdForMobile: utahIdPopupMenu has no id");
|
|
2400
|
-
return e.appendChild(o), t.setAttribute("aria-controls", r), o.setAttribute("aria-labelledby", n),
|
|
2094
|
+
return e.appendChild(o), t.setAttribute("aria-controls", r), o.setAttribute("aria-labelledby", n), ht(t, o), { button: t, menu: o };
|
|
2401
2095
|
}
|
|
2402
|
-
function
|
|
2403
|
-
const e =
|
|
2404
|
-
return t && e.appendChild(t),
|
|
2096
|
+
function sr() {
|
|
2097
|
+
const e = I(Xo), t = nr();
|
|
2098
|
+
return t && e.appendChild(t), L().utahId !== !1 && e.appendChild(ir()), e;
|
|
2405
2099
|
}
|
|
2406
|
-
const
|
|
2100
|
+
const lr = `<div class="utds-title-wrapper">
|
|
2407
2101
|
<div class="utds-title-wrapper__logo"></div>
|
|
2408
2102
|
<div class="utds-title-wrapper__title"></div>
|
|
2409
2103
|
</div>
|
|
2410
|
-
`,
|
|
2104
|
+
`, cr = `<a class="utds-title-wrapper">
|
|
2411
2105
|
<div class="utds-title-wrapper__logo"></div>
|
|
2412
2106
|
<div class="utds-title-wrapper__title"></div>
|
|
2413
2107
|
</a>
|
|
2414
2108
|
`;
|
|
2415
|
-
function
|
|
2416
|
-
const e =
|
|
2109
|
+
function ur() {
|
|
2110
|
+
const e = L().titleURL, t = I(e ? cr : lr);
|
|
2417
2111
|
if (!t)
|
|
2418
2112
|
throw new Error("LogoTitle: titleWrapper is null");
|
|
2419
2113
|
e && t.setAttribute("href", e);
|
|
2420
2114
|
const n = t.querySelector(p(a.TITLE__LOGO));
|
|
2421
2115
|
if (!n)
|
|
2422
2116
|
throw new Error("LogoTitle: logoWrapper is null");
|
|
2423
|
-
const o =
|
|
2117
|
+
const o = L().logo, r = L().showTitle, i = L().title;
|
|
2424
2118
|
if (o) {
|
|
2425
2119
|
let l;
|
|
2426
2120
|
if (o.htmlString)
|
|
2427
|
-
l =
|
|
2121
|
+
l = I(K(o.htmlString));
|
|
2428
2122
|
else if (o.element)
|
|
2429
2123
|
l = K(o.element);
|
|
2430
2124
|
else if (o.imageUrl)
|
|
2431
|
-
l =
|
|
2125
|
+
l = I(`<img src=${K(o.imageUrl)} id="design-system-logo" />`);
|
|
2432
2126
|
else
|
|
2433
2127
|
throw new Error("LogoTitle: logo set but has no settings");
|
|
2434
2128
|
l.setAttribute("role", "presentation"), n.appendChild(l);
|
|
@@ -2437,7 +2131,7 @@ function Dr() {
|
|
|
2437
2131
|
const u = document.createTextNode(i), s = t.querySelector(p(a.TITLE__TITLE));
|
|
2438
2132
|
return s == null || s.appendChild(u), !r && o && (s == null || s.classList.add(a.VISUALLY_HIDDEN)), t;
|
|
2439
2133
|
}
|
|
2440
|
-
const
|
|
2134
|
+
const dr = `<div class="utah-logo-wrapper">
|
|
2441
2135
|
<button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
|
|
2442
2136
|
<span class="visually-hidden" id="utah-logo-description">An official website of the State of Utah. Click to learn
|
|
2443
2137
|
more.</span>
|
|
@@ -2454,7 +2148,7 @@ const Br = `<div class="utah-logo-wrapper">
|
|
|
2454
2148
|
</svg>
|
|
2455
2149
|
</button>
|
|
2456
2150
|
</div>
|
|
2457
|
-
`,
|
|
2151
|
+
`, pr = `<div class="utah-logo-wrapper">
|
|
2458
2152
|
<button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
|
|
2459
2153
|
<span class="visually-hidden" id="utah-logo-description">An official website of the State of Utah. Click to learn
|
|
2460
2154
|
more.</span>
|
|
@@ -2471,45 +2165,51 @@ const Br = `<div class="utah-logo-wrapper">
|
|
|
2471
2165
|
</svg>
|
|
2472
2166
|
</button>
|
|
2473
2167
|
</div>
|
|
2474
|
-
`,
|
|
2168
|
+
`, fr = `<div class="utds-official-website-hover__wrapper">
|
|
2475
2169
|
How do I know it’s official?<br />
|
|
2476
2170
|
Learn more.
|
|
2477
2171
|
</div>
|
|
2478
2172
|
`;
|
|
2479
|
-
function
|
|
2173
|
+
function _r() {
|
|
2480
2174
|
let e;
|
|
2481
|
-
switch (
|
|
2175
|
+
switch (L().size) {
|
|
2482
2176
|
case Te.LARGE:
|
|
2483
|
-
e =
|
|
2177
|
+
e = dr;
|
|
2484
2178
|
break;
|
|
2485
2179
|
case Te.SMALL:
|
|
2486
2180
|
case Te.MEDIUM:
|
|
2487
|
-
e =
|
|
2181
|
+
e = pr;
|
|
2488
2182
|
break;
|
|
2489
2183
|
default:
|
|
2490
|
-
throw new Error(`Unknown settings size: '${
|
|
2184
|
+
throw new Error(`Unknown settings size: '${L().size}'`);
|
|
2491
2185
|
}
|
|
2492
|
-
const t =
|
|
2186
|
+
const t = I(e);
|
|
2493
2187
|
if (!/** @type {HTMLElement} */
|
|
2494
2188
|
t.querySelector(p(a.LOGO_SVG)))
|
|
2495
2189
|
throw new Error("UtahLogo: logoButton not found");
|
|
2496
|
-
return t.setAttribute("id",
|
|
2190
|
+
return t.setAttribute("id", U()), Ae(t, I(fr)), t;
|
|
2497
2191
|
}
|
|
2498
|
-
function
|
|
2192
|
+
function hr() {
|
|
2499
2193
|
var n;
|
|
2500
|
-
const e =
|
|
2501
|
-
e.classList.add(`utds-header--${((n =
|
|
2502
|
-
const t =
|
|
2503
|
-
return e.appendChild(t), t.appendChild(
|
|
2194
|
+
const e = I(jo);
|
|
2195
|
+
e.classList.add(`utds-header--${((n = L().size) == null ? void 0 : n.toLowerCase()) || Te.MEDIUM}`);
|
|
2196
|
+
const t = I(Ko);
|
|
2197
|
+
return e.appendChild(t), t.appendChild(_r()), t.appendChild(I(Zo)), t.appendChild(ur()), e.appendChild(sr()), e.appendChild(I(Yo)), e;
|
|
2504
2198
|
}
|
|
2505
|
-
const
|
|
2199
|
+
const mr = `<li class="menu-item">
|
|
2506
2200
|
<span class="menu-item__title">
|
|
2507
|
-
<button class="menu-item__button-title" type="button"
|
|
2508
|
-
|
|
2201
|
+
<button class="menu-item__button-title" type="button">
|
|
2202
|
+
<span class="menu-item__link-title-span"></span>
|
|
2203
|
+
<span class="menu-item__menu-arrow utds-icon-before-chevron-down" aria-hidden="true"></span>
|
|
2204
|
+
</button>
|
|
2205
|
+
<a class="menu-item__link-title">
|
|
2206
|
+
<span class="menu-item__link-title-span"></span>
|
|
2207
|
+
<span class="menu-item__menu-arrow utds-icon-before-chevron-down" aria-hidden="true"></span>
|
|
2208
|
+
</a>
|
|
2509
2209
|
<span class="menu-chiclet"></span>
|
|
2510
2210
|
</span>
|
|
2511
2211
|
</li>
|
|
2512
|
-
`,
|
|
2212
|
+
`, Er = `<div class="utah-design-system main-menu__outer">
|
|
2513
2213
|
<div class="main-menu__wrapper">
|
|
2514
2214
|
<nav class="horizontal-menu main-menu__nav">
|
|
2515
2215
|
<h2 class="main-menu__title visually-hidden"></h2>
|
|
@@ -2531,12 +2231,11 @@ const qr = `<li class="menu-item">
|
|
|
2531
2231
|
id="utds-main-menu__hamburger">
|
|
2532
2232
|
<div>
|
|
2533
2233
|
<span class="utds-icon-before-hamburger" id="utds-main-menu__hamburger-icon" aria-hidden="true"></span>
|
|
2534
|
-
<span class="visually-hidden">Open Mobile Menu</span>
|
|
2535
2234
|
</div>
|
|
2536
2235
|
</button>
|
|
2537
2236
|
</div>
|
|
2538
2237
|
</div>
|
|
2539
|
-
`,
|
|
2238
|
+
`, vr = `<div class="utah-design-system" id="search-modal">
|
|
2540
2239
|
<div class="search-modal__close-button-wrapper">
|
|
2541
2240
|
<button type="button" class="search-modal__close-button button icon-button icon-button--borderless">
|
|
2542
2241
|
<span class="utds-icon-before-x-icon" aria-hidden="true"></span>
|
|
@@ -2562,7 +2261,7 @@ const qr = `<li class="menu-item">
|
|
|
2562
2261
|
<div class="search-backdrop modal-backdrop backdrop-dark"></div>
|
|
2563
2262
|
</div>
|
|
2564
2263
|
`;
|
|
2565
|
-
function
|
|
2264
|
+
function xe() {
|
|
2566
2265
|
const e = document.getElementById(a.SEARCH__SEARCH_MODAL);
|
|
2567
2266
|
if (!e)
|
|
2568
2267
|
throw new Error("closSearchModal: searchModal not found");
|
|
@@ -2575,8 +2274,8 @@ function We() {
|
|
|
2575
2274
|
throw new Error("closSearchModal: searchIcon not found");
|
|
2576
2275
|
t.focus();
|
|
2577
2276
|
}
|
|
2578
|
-
function
|
|
2579
|
-
const e =
|
|
2277
|
+
function Ke() {
|
|
2278
|
+
const e = I(vr), t = (
|
|
2580
2279
|
/** @type {HTMLElement} */
|
|
2581
2280
|
e.querySelector(p(a.SEARCH__SEARCH_BACKDROP))
|
|
2582
2281
|
);
|
|
@@ -2607,20 +2306,21 @@ function Xe() {
|
|
|
2607
2306
|
if (!i)
|
|
2608
2307
|
throw new Error("showSearchModal: searchInput not found");
|
|
2609
2308
|
o.onclick = (s) => {
|
|
2610
|
-
|
|
2611
|
-
|
|
2309
|
+
s.preventDefault(), s.stopPropagation(), xe();
|
|
2310
|
+
const { onSearch: l } = L();
|
|
2311
|
+
l && (l == null || l(i.value));
|
|
2612
2312
|
}, n.onclick = (s) => {
|
|
2613
|
-
s.preventDefault(), s.stopPropagation(),
|
|
2313
|
+
s.preventDefault(), s.stopPropagation(), xe();
|
|
2614
2314
|
}, t.onclick = (s) => {
|
|
2615
|
-
s.preventDefault(), s.stopPropagation(),
|
|
2315
|
+
s.preventDefault(), s.stopPropagation(), xe();
|
|
2616
2316
|
}, document.body.appendChild(e), i.focus(), i.oninput = () => {
|
|
2617
2317
|
r.classList.remove(a.VISUALLY_HIDDEN);
|
|
2618
2318
|
}, o.onfocus = () => {
|
|
2619
2319
|
r.classList.remove(a.VISUALLY_HIDDEN);
|
|
2620
2320
|
}, e.onkeyup = (s) => {
|
|
2621
|
-
(s.code === "Escape" || s.key === "Escape") && (s.preventDefault(), s.stopPropagation(),
|
|
2321
|
+
(s.code === "Escape" || s.key === "Escape") && (s.preventDefault(), s.stopPropagation(), xe());
|
|
2622
2322
|
}, n.addEventListener("focusout", (s) => {
|
|
2623
|
-
s.preventDefault(), s.stopPropagation(),
|
|
2323
|
+
s.preventDefault(), s.stopPropagation(), be[et.SHIFT] ? o.focus() : i.focus();
|
|
2624
2324
|
});
|
|
2625
2325
|
const u = e.querySelector(".search-modal__hidden-last-focusable");
|
|
2626
2326
|
if (!u)
|
|
@@ -2629,9 +2329,9 @@ function Xe() {
|
|
|
2629
2329
|
s.preventDefault(), s.stopPropagation(), n.focus();
|
|
2630
2330
|
});
|
|
2631
2331
|
}
|
|
2632
|
-
function
|
|
2332
|
+
function br() {
|
|
2633
2333
|
var s;
|
|
2634
|
-
const e =
|
|
2334
|
+
const e = L(), t = I(Er);
|
|
2635
2335
|
let n = t.querySelector(p(a.MAIN_MENU__NAV));
|
|
2636
2336
|
if (!n)
|
|
2637
2337
|
throw new Error("renderMainMenu(): mainMenu not created");
|
|
@@ -2644,178 +2344,367 @@ function Gr() {
|
|
|
2644
2344
|
if (!l)
|
|
2645
2345
|
throw new Error("renderMainMenu(): mainMenuTop not found");
|
|
2646
2346
|
e.mainMenu.menuItems.forEach((c) => {
|
|
2647
|
-
var
|
|
2648
|
-
const d =
|
|
2347
|
+
var b, g;
|
|
2348
|
+
const d = I(mr);
|
|
2649
2349
|
l.appendChild(d);
|
|
2650
|
-
const
|
|
2350
|
+
const m = O(
|
|
2651
2351
|
d.querySelector(p(a.MENU_ITEM__TITLE)),
|
|
2652
2352
|
`renderMainMenu(): sub menu title not found for ${c.title}`
|
|
2653
|
-
), f =
|
|
2353
|
+
), f = O(
|
|
2654
2354
|
/** @type {HTMLElement} */
|
|
2655
|
-
|
|
2355
|
+
m.querySelector(p(a.MENU_ITEM__BUTTON_TITLE)),
|
|
2656
2356
|
`renderMainMenu(): button title not found for ${c.title}`
|
|
2657
2357
|
);
|
|
2658
|
-
f.setAttribute("id", `${a.MENU_ITEM__BUTTON_TITLE}__${c.title}-${
|
|
2659
|
-
const
|
|
2358
|
+
f.setAttribute("id", `${a.MENU_ITEM__BUTTON_TITLE}__${c.title}-${U()}`);
|
|
2359
|
+
const h = O(
|
|
2660
2360
|
/** @type {HTMLElement} */
|
|
2661
|
-
|
|
2361
|
+
m.querySelector(p(a.MENU_ITEM__LINK_TITLE)),
|
|
2662
2362
|
`renderMainMenu(): link title not found for ${c.title}`
|
|
2663
2363
|
);
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2364
|
+
h.setAttribute("id", `${a.MENU_ITEM__LINK_TITLE}__${c.title}-${U()}`);
|
|
2365
|
+
let _;
|
|
2366
|
+
if (c.actionFunctionUrl || c.actionUrl)
|
|
2367
|
+
_ = h, f.remove();
|
|
2368
|
+
else if (c.actionMenu || c.actionFunction)
|
|
2369
|
+
_ = f, h.remove();
|
|
2370
|
+
else
|
|
2371
|
+
throw new Error(`renderMainMenu(): menuItem is missing an action: ${c.title}`);
|
|
2372
|
+
const E = O(
|
|
2373
|
+
_.querySelector(p(a.MENU_ITEM__LINK_TITLE_SPAN)),
|
|
2374
|
+
`renderMainMenu(): main menu item title span not found for: ${c.title}`
|
|
2375
|
+
);
|
|
2376
|
+
if ((c.isSelected || c.actionMenu && ke(c.actionMenu, ["actionMenu"], (M) => !!M.isSelected)) && _.classList.add(a.MENU_ITEM__SELECTED), c.actionMenu) {
|
|
2377
|
+
E.innerHTML = c.title;
|
|
2378
|
+
const M = {
|
|
2667
2379
|
menuItems: c.actionMenu,
|
|
2668
2380
|
title: c.title
|
|
2669
|
-
},
|
|
2670
|
-
|
|
2671
|
-
|
|
2381
|
+
}, w = ft(
|
|
2382
|
+
M,
|
|
2383
|
+
_,
|
|
2672
2384
|
{
|
|
2673
|
-
childrenMenuType: c.childrenMenuType ||
|
|
2385
|
+
childrenMenuType: c.childrenMenuType || Y.FLYOUT
|
|
2674
2386
|
}
|
|
2675
2387
|
);
|
|
2676
|
-
d.appendChild(
|
|
2677
|
-
let
|
|
2388
|
+
d.appendChild(w), ye(d, _, w, "menu", { shouldFocusOnHover: !0 });
|
|
2389
|
+
let v;
|
|
2678
2390
|
switch (c.childrenMenuType) {
|
|
2679
|
-
case
|
|
2680
|
-
|
|
2391
|
+
case Y.INLINE:
|
|
2392
|
+
v = a.MENU_ITEM__INLINE;
|
|
2681
2393
|
break;
|
|
2682
|
-
case
|
|
2683
|
-
|
|
2394
|
+
case Y.MEGA_MENU:
|
|
2395
|
+
v = a.MENU_ITEM__MEGA_MENU;
|
|
2684
2396
|
break;
|
|
2685
|
-
case
|
|
2397
|
+
case Y.FLYOUT:
|
|
2686
2398
|
default:
|
|
2687
|
-
|
|
2399
|
+
v = a.MENU_ITEM__FLY_OUT;
|
|
2688
2400
|
break;
|
|
2689
2401
|
}
|
|
2690
|
-
d.classList.add(
|
|
2691
|
-
} else
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
else
|
|
2701
|
-
throw new Error(`renderMainMenu(): menuItem is missing an action: ${c.title}`);
|
|
2702
|
-
((m = c.actionUrl) != null && m.openInNewTab || (E = c.actionFunctionUrl) != null && E.openInNewTab) && (_.setAttribute("target", "_blank"), _.appendChild(g(Zt)));
|
|
2402
|
+
d.classList.add(v);
|
|
2403
|
+
} else
|
|
2404
|
+
O(
|
|
2405
|
+
_.querySelector(p(a.MENU_ITEM__ARROW)),
|
|
2406
|
+
`renderMainMenu(): menu arrow not found for ${c.title}`
|
|
2407
|
+
).remove();
|
|
2408
|
+
c.actionFunction ? (E.innerHTML = c.title, _.onclick = c.actionFunction) : c.actionFunctionUrl ? (E.innerHTML = c.title, _.setAttribute("href", c.actionFunctionUrl.url), _.onclick = (M) => {
|
|
2409
|
+
var w, v;
|
|
2410
|
+
(w = c.actionFunctionUrl) != null && w.skipHandleEvent || (M.stopPropagation(), M.preventDefault()), (v = c.actionFunctionUrl) == null || v.actionFunction(M);
|
|
2411
|
+
}) : c.actionUrl && (E.innerHTML = c.title, _.setAttribute("href", c.actionUrl.url)), ((b = c.actionUrl) != null && b.openInNewTab || (g = c.actionFunctionUrl) != null && g.openInNewTab) && (_.setAttribute("target", "_blank"), _.appendChild(I(Gt)));
|
|
2703
2412
|
});
|
|
2704
2413
|
}
|
|
2705
2414
|
let i = null;
|
|
2706
2415
|
if (e.utahId) {
|
|
2707
|
-
const { button: l, menu: c } =
|
|
2708
|
-
i = c,
|
|
2416
|
+
const { button: l, menu: c } = ar();
|
|
2417
|
+
i = c, O(
|
|
2709
2418
|
t.querySelector(p(a.MOBILE__UTAH_ID)),
|
|
2710
2419
|
"renderMainMenu: utahIdButtonWrapper not found"
|
|
2711
2420
|
).appendChild(l);
|
|
2712
2421
|
}
|
|
2713
|
-
const u =
|
|
2422
|
+
const u = O(
|
|
2714
2423
|
/** @type {HTMLElement} */
|
|
2715
2424
|
t.querySelector(p(a.MAIN_MENU__SEARCH)),
|
|
2716
2425
|
"renderMainMenu: searchIcon not found"
|
|
2717
2426
|
);
|
|
2718
2427
|
if (e.onSearch) {
|
|
2719
|
-
if (
|
|
2428
|
+
if (Ae(u, document.createTextNode("Search")), u.onclick)
|
|
2720
2429
|
throw new Error("searchIcon already has onclick");
|
|
2721
|
-
if (u.onclick = () =>
|
|
2722
|
-
const l =
|
|
2430
|
+
if (u.onclick = () => Ke(), !e.mainMenu) {
|
|
2431
|
+
const l = O(
|
|
2723
2432
|
document.querySelector(p(a.CITIZEN_EXPERIENCE)),
|
|
2724
2433
|
"renderMainMenu: citizen experience wrapper not found"
|
|
2725
|
-
), c =
|
|
2726
|
-
if (
|
|
2727
|
-
const d =
|
|
2434
|
+
), c = I(u.outerHTML);
|
|
2435
|
+
if (Ae(c, document.createTextNode("Search")), c.onclick = () => Ke(), u.classList.add(a.DESKTOP__HIDDEN), e.utahId !== !1) {
|
|
2436
|
+
const d = O(document.querySelector(p(a.UTAH_ID)), "renderMainMenu: utahId wrapper not found");
|
|
2728
2437
|
l.insertBefore(c, d);
|
|
2729
2438
|
} else
|
|
2730
2439
|
l.appendChild(c);
|
|
2731
2440
|
}
|
|
2732
2441
|
if (!e.mainMenu && !e.actionItems && e.utahId === !1) {
|
|
2733
|
-
const l =
|
|
2442
|
+
const l = I(
|
|
2734
2443
|
/** @type {HTMLElement} */
|
|
2735
2444
|
u.outerHTML
|
|
2736
2445
|
);
|
|
2737
|
-
if (
|
|
2446
|
+
if (Ae(l, document.createTextNode("Search")), l.onclick)
|
|
2738
2447
|
throw new Error("searchIconMobile already has onclick");
|
|
2739
|
-
l.onclick = () =>
|
|
2448
|
+
l.onclick = () => Ke(), O(
|
|
2740
2449
|
document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
|
|
2741
2450
|
"renderMainMenu: citizen-experience--mobile not found"
|
|
2742
2451
|
).appendChild(l);
|
|
2743
2452
|
}
|
|
2744
2453
|
}
|
|
2745
|
-
return e.onSearch || ((e.mainMenu || !e.mainMenu && e.utahId) && ((s = u.parentElement) == null || s.insertBefore(
|
|
2454
|
+
return e.onSearch || ((e.mainMenu || !e.mainMenu && e.utahId) && ((s = u.parentElement) == null || s.insertBefore(I('<div class="main-menu__search-placeholder">'), u)), u.remove()), { mainMenuWrapper: t, utahIdPopup: i };
|
|
2746
2455
|
}
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2456
|
+
const Ir = `<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
|
|
2457
|
+
<h2 class="utds-official-website-popup__heading">
|
|
2458
|
+
This is an official website of the State of Utah. Here’s how you know:
|
|
2459
|
+
</h2>
|
|
2460
|
+
<div class="utds-official-website-popup__content">
|
|
2461
|
+
<div class="utds-official-website-popup__col">
|
|
2462
|
+
<div class="utds-icon-before-verified big-icon" aria-hidden="true"></div>
|
|
2463
|
+
<div>
|
|
2464
|
+
<strong>Official Utah websites use utah.gov in the browser's address bar.</strong><br />
|
|
2465
|
+
A Utah.gov website belongs to an official government organization in the State of Utah.
|
|
2466
|
+
<div class="utds-official-website-popup__address-bar"></div>
|
|
2467
|
+
</div>
|
|
2468
|
+
</div>
|
|
2469
|
+
<div class="utds-official-website-popup__col">
|
|
2470
|
+
<div class="utds-icon-before-lock big-icon" aria-hidden="true"></div>
|
|
2471
|
+
<div>
|
|
2472
|
+
<strong>Be careful when sharing sensitive information.</strong><br />
|
|
2473
|
+
Share sensitive information only on secure official Utah.gov websites.
|
|
2474
|
+
</div>
|
|
2475
|
+
</div>
|
|
2476
|
+
<div>
|
|
2477
|
+
<svg class="utds-official-website-popup__official-image" viewBox="0 0 105.9496 47.6226" role="img">
|
|
2478
|
+
<g>
|
|
2479
|
+
<g>
|
|
2480
|
+
<path
|
|
2481
|
+
d="M12.2714,30.0877c-4.1489,0-7.2318-1.2037-9.2489-3.611C1.0055,24.0693-.002,20.334,0,15.2709V0H7.8175V16.1806c0,2.6363,.356,4.4923,1.0679,5.5679,.7613,1.1018,2.0506,1.7162,3.3859,1.6134,1.3465,.0953,2.6458-.5157,3.4313-1.6134,.7422-1.0756,1.1133-2.9316,1.1133-5.5679V0h7.5448V15.2709c0,5.0601-.9847,8.7946-2.9541,11.2035-1.9694,2.4089-5.0145,3.6133-9.1352,3.6133Zm24.0887-.5463V6.5444h-7.8175V0h23.4526V6.5444h-7.8175V29.5414h-7.8175Zm25.8151-14.362l-.5002,2.0452h5.455l-.5002-2.0452c-.3637-1.4239-.7273-2.9693-1.091-4.636-.3637-1.6667-.7261-3.242-1.0871-4.7259h-.1821c-.3334,1.5151-.6743,3.0983-1.0226,4.7497s-.7053,3.189-1.071,4.6129l-.0008-.0008Zm-11.3617,14.362L59.8127,0h9.4502l9.0023,29.5414h-8.2724l-1.4544-6.2709h-8.2716l-1.4544,6.2709h-7.9988Zm30.2713,0V0h7.8175V10.9991h8.8171V0h7.8175V29.5414h-7.8175v-11.7251h-8.8194v11.7251h-7.8152Z" />
|
|
2482
|
+
</g>
|
|
2483
|
+
<text transform="translate(.0419 43.5205)" aria-hidden="true">
|
|
2484
|
+
<tspan x="0" y="0">An official website</tspan>
|
|
2485
|
+
</text>
|
|
2486
|
+
</g>
|
|
2487
|
+
</svg>
|
|
2488
|
+
<div class="utds-official-website-popup__copyright">© State of Utah</div>
|
|
2489
|
+
</div>
|
|
2490
|
+
</div>
|
|
2491
|
+
<button type="button" class="utds-official-website-popup__close-button button icon-button icon-button--borderless"
|
|
2492
|
+
tabIndex="-1">
|
|
2493
|
+
<span class="utds-icon-before-x-icon" aria-hidden="true"></span>
|
|
2494
|
+
<span class="visually-hidden">Close official website popup</span>
|
|
2495
|
+
</button>
|
|
2496
|
+
</div>
|
|
2497
|
+
`;
|
|
2498
|
+
function cn() {
|
|
2499
|
+
const e = O(
|
|
2500
|
+
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
2501
|
+
"openOfficialWebsite: official wrapper not found"
|
|
2502
|
+
), t = O(
|
|
2503
|
+
document.querySelector(p(a.LOGO)),
|
|
2504
|
+
"openOfficialWebsite: logoWrapper not found"
|
|
2505
|
+
), n = O(
|
|
2506
|
+
t.querySelector(p(a.LOGO_SVG)),
|
|
2507
|
+
"openOfficialWebsite: logoButton not found"
|
|
2508
|
+
), o = O(
|
|
2509
|
+
e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
|
|
2510
|
+
"openOfficialWebsite: official close button not found"
|
|
2511
|
+
);
|
|
2512
|
+
e.classList.add(a.VISUALLY_HIDDEN), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), o.setAttribute("tabIndex", -1), e.setAttribute("tabIndex", -1);
|
|
2513
|
+
const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
|
|
2514
|
+
r == null || r.forEach((i) => {
|
|
2515
|
+
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
2516
|
+
});
|
|
2517
|
+
}
|
|
2518
|
+
function Tr() {
|
|
2519
|
+
const e = O(
|
|
2520
|
+
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
2521
|
+
"openOfficialWebsite: official wrapper not found"
|
|
2522
|
+
), t = O(
|
|
2523
|
+
document.querySelector(p(a.LOGO)),
|
|
2524
|
+
"openOfficialWebsite: logoWrapper not found"
|
|
2525
|
+
), n = O(
|
|
2526
|
+
t.querySelector(p(a.LOGO_SVG)),
|
|
2527
|
+
"openOfficialWebsite: logoButton not found"
|
|
2528
|
+
), o = O(
|
|
2529
|
+
e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
|
|
2530
|
+
"openOfficialWebsite: official close button not found"
|
|
2531
|
+
);
|
|
2532
|
+
e.classList.remove(a.VISUALLY_HIDDEN), o.removeAttribute("tabIndex"), e.removeAttribute("tabIndex"), n.setAttribute("aria-expanded", "true"), e.setAttribute("aria-hidden", "false"), e.focus();
|
|
2533
|
+
const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
|
|
2534
|
+
r == null || r.forEach((i) => {
|
|
2535
|
+
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
2536
|
+
}), qe();
|
|
2537
|
+
}
|
|
2538
|
+
function gr() {
|
|
2539
|
+
const e = I(Ir), n = (
|
|
2540
|
+
/** @type {HTMLElement} */
|
|
2541
|
+
document.querySelector(p(a.LOGO)).querySelector(p(a.LOGO_SVG))
|
|
2542
|
+
);
|
|
2543
|
+
if (!n)
|
|
2544
|
+
throw new Error("renderOfficialWebsite: logoButton not found");
|
|
2545
|
+
if (n.onclick)
|
|
2546
|
+
throw new Error("renderOfficialWebsite: logoButton already has an onclick");
|
|
2547
|
+
const o = e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON));
|
|
2548
|
+
if (!o)
|
|
2549
|
+
throw new Error("renderOfficialWebsite: closeButton not found");
|
|
2550
|
+
return n.onclick = () => {
|
|
2551
|
+
e.classList.toggle(a.VISUALLY_HIDDEN), e.classList.contains(a.VISUALLY_HIDDEN) ? cn() : Tr();
|
|
2552
|
+
const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
|
|
2553
|
+
r == null || r.forEach((i) => {
|
|
2554
|
+
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
2555
|
+
});
|
|
2556
|
+
}, o.onclick = () => {
|
|
2557
|
+
e.classList.toggle(a.VISUALLY_HIDDEN), n.focus(), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true");
|
|
2558
|
+
}, o.id || (o.id = U()), e.id || (e.id = U()), n.setAttribute("aria-controls", e.id), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), e.setAttribute("aria-labelledby", n.id), e;
|
|
2559
|
+
}
|
|
2560
|
+
function Mr(e) {
|
|
2561
|
+
var l, c;
|
|
2562
|
+
const { hamburger: t } = we("hookupHamburger"), n = L();
|
|
2563
|
+
if ((l = n.actionItems) == null ? void 0 : l.some((d) => !!d.badge)) {
|
|
2564
|
+
const d = _t({ label: "Home Badge" });
|
|
2565
|
+
d && t.appendChild(d);
|
|
2566
|
+
}
|
|
2567
|
+
qe();
|
|
2568
|
+
function r() {
|
|
2569
|
+
const d = O(
|
|
2570
|
+
/** @type {HTMLElement} */
|
|
2571
|
+
document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
|
|
2572
|
+
"hookupHamburger: no action items to select on mobile hamburger open"
|
|
2573
|
+
), m = d.querySelector("button"), f = m == null ? void 0 : m.getAttribute("aria-controls");
|
|
2574
|
+
return { actionItem: d, actionItemWrapper: f ? document.getElementById(f) : null };
|
|
2575
|
+
}
|
|
2576
|
+
const i = O(
|
|
2577
|
+
/** @type {HTMLElement} */
|
|
2578
|
+
document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
|
|
2579
|
+
"hookupHamburger: no action items to select on mobile hamburger open"
|
|
2580
|
+
), u = (c = i.querySelector) == null ? void 0 : c.call(i, "button"), s = (u || i).getAttribute("id");
|
|
2581
|
+
if (!s)
|
|
2582
|
+
throw new Error("mobileMenuInteractionHandler: actionItemId not found");
|
|
2583
|
+
if (e) {
|
|
2584
|
+
const d = e.getAttribute("id");
|
|
2585
|
+
if (!d)
|
|
2586
|
+
throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");
|
|
2587
|
+
(u || i).setAttribute("aria-controls", d), e.setAttribute("aria-labelledby", s);
|
|
2588
|
+
}
|
|
2589
|
+
ot(
|
|
2590
|
+
t,
|
|
2591
|
+
() => r().actionItemWrapper,
|
|
2592
|
+
() => r().actionItem,
|
|
2593
|
+
{
|
|
2594
|
+
additionalOnClick: () => cn(),
|
|
2595
|
+
ariaHasPopupType: "menu",
|
|
2596
|
+
shouldOnClickCloseMenu: !0
|
|
2760
2597
|
}
|
|
2761
|
-
|
|
2598
|
+
), X(!!t.onblur, "hookupHamburger: hamburger already has an onblur event"), t.onblur = () => {
|
|
2599
|
+
const { mobileMenu: d } = we("showMobileMenu");
|
|
2600
|
+
if (d.classList.contains(a.IS_OPEN)) {
|
|
2601
|
+
const m = p(a.MOBILE_MENU__ACTION_BAR), f = p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER), h = p(a.ICON_BUTTON), _ = (
|
|
2602
|
+
/** @type {HTMLElement | null} */
|
|
2603
|
+
document.querySelector(`${m} ${f}:first-child ${h}`)
|
|
2604
|
+
);
|
|
2605
|
+
_ == null || _.focus();
|
|
2606
|
+
}
|
|
2607
|
+
}, (n.mainMenu || n.actionItems) && !n.onSearch && n.utahId === !1 && (O(
|
|
2608
|
+
document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
|
|
2609
|
+
"hookupHamburger: citizen experience mobile not found"
|
|
2610
|
+
).appendChild(t), O(
|
|
2611
|
+
document.querySelector(p(a.MAIN_MENU)),
|
|
2612
|
+
"hookupHamburger: main menu not found"
|
|
2613
|
+
).classList.add(a.MOBILE__HIDDEN)), n.onSearch && !n.mainMenu && O(
|
|
2614
|
+
document.querySelector(p(a.MAIN_MENU)),
|
|
2615
|
+
"renderMainMenu: main menu not found"
|
|
2616
|
+
).classList.add(a.DESKTOP__HIDDEN);
|
|
2617
|
+
}
|
|
2618
|
+
const Ie = {
|
|
2619
|
+
AUTOMATIC: (
|
|
2620
|
+
/** @type {UtahIdFetchStyle} */
|
|
2621
|
+
"Automatic"
|
|
2622
|
+
),
|
|
2623
|
+
NONE: (
|
|
2624
|
+
/** @type {UtahIdFetchStyle} */
|
|
2625
|
+
"None"
|
|
2626
|
+
),
|
|
2627
|
+
PROVIDED: (
|
|
2628
|
+
/** @type {UtahIdFetchStyle} */
|
|
2629
|
+
"Provided"
|
|
2630
|
+
)
|
|
2631
|
+
};
|
|
2632
|
+
let xt = Ie.NONE;
|
|
2633
|
+
function Ar(e) {
|
|
2634
|
+
let t;
|
|
2635
|
+
if (e === !0)
|
|
2636
|
+
t = Ie.AUTOMATIC;
|
|
2637
|
+
else if (e === !1)
|
|
2638
|
+
t = Ie.NONE;
|
|
2639
|
+
else if (e === void 0 || e.currentUser === void 0)
|
|
2640
|
+
t = Ie.AUTOMATIC;
|
|
2641
|
+
else if (e.currentUser === null || e.currentUser)
|
|
2642
|
+
t = Ie.PROVIDED;
|
|
2643
|
+
else
|
|
2644
|
+
throw new Error(`determineFetchStyle: Unknown utah id fetch style: '${e.currentUser}'`);
|
|
2645
|
+
return t;
|
|
2762
2646
|
}
|
|
2763
|
-
const
|
|
2647
|
+
const B = {
|
|
2764
2648
|
// null = not yet loaded, false = ajaxing, true = have a result (may be error or user data)
|
|
2765
2649
|
isDefinitive: null,
|
|
2766
2650
|
lastError: null,
|
|
2767
2651
|
userInfo: null
|
|
2768
2652
|
};
|
|
2769
|
-
function
|
|
2770
|
-
var t, n, o;
|
|
2771
|
-
e.isDefinitive && (un(e), (o = (n = (t = O()) == null ? void 0 : t.utahId) == null ? void 0 : n.onAuthChanged) == null || o.call(n, e));
|
|
2772
|
-
}
|
|
2773
|
-
let Gt = !0;
|
|
2774
|
-
const jr = 500;
|
|
2775
|
-
async function fn() {
|
|
2653
|
+
function Wt(e) {
|
|
2776
2654
|
var t, n;
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2655
|
+
if (e.isDefinitive) {
|
|
2656
|
+
an(e);
|
|
2657
|
+
const o = (t = L()) == null ? void 0 : t.utahId;
|
|
2658
|
+
typeof o == "object" && ((n = o.onAuthChanged) == null || n.call(o, e));
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
let kt = !0;
|
|
2662
|
+
const wr = 500;
|
|
2663
|
+
let Ft = NaN;
|
|
2664
|
+
async function un() {
|
|
2665
|
+
var o, r;
|
|
2666
|
+
let e = Promise.resolve(B);
|
|
2667
|
+
const t = L(), n = Ar(t.utahId);
|
|
2668
|
+
if (B.isDefinitive === !1)
|
|
2669
|
+
e = Promise.resolve(B);
|
|
2670
|
+
else if (kt)
|
|
2671
|
+
clearTimeout(Ft), e = new Promise((i) => {
|
|
2672
|
+
Ft = window.setTimeout(
|
|
2673
|
+
() => {
|
|
2674
|
+
kt = !1, un().then((u) => i(u)).catch((u) => console.error(u));
|
|
2675
|
+
},
|
|
2676
|
+
wr
|
|
2677
|
+
);
|
|
2783
2678
|
});
|
|
2679
|
+
else if (t.utahId === !1)
|
|
2680
|
+
e = Promise.resolve({
|
|
2681
|
+
isDefinitive: !0,
|
|
2682
|
+
lastError: "Utah ID is off",
|
|
2683
|
+
userInfo: null
|
|
2684
|
+
});
|
|
2685
|
+
else if (t.utahId === !0 || ((o = t.utahId) == null ? void 0 : o.currentUser) === void 0)
|
|
2686
|
+
(n !== xt || B.isDefinitive === null) && (B.isDefinitive = !1, e = fetch(Pe.USER_INFO, { credentials: "include" }).then((i) => i.json()).then((i) => {
|
|
2687
|
+
if (i.status === 200)
|
|
2688
|
+
B.lastError = null, B.userInfo = /** @type {UserInfo} */
|
|
2689
|
+
i.data;
|
|
2690
|
+
else
|
|
2691
|
+
throw new Error(i.err);
|
|
2692
|
+
return B;
|
|
2693
|
+
}).catch((i) => (B.lastError = i, B.userInfo = null, B)).finally(() => (B.isDefinitive = !0, Wt(B), B)));
|
|
2784
2694
|
else {
|
|
2785
|
-
const
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
});
|
|
2792
|
-
else if (o.utahId === !0 || ((t = o.utahId) == null ? void 0 : t.currentUser) === void 0)
|
|
2793
|
-
Z.isDefinitive = !1, e = fetch(Ne.USER_INFO, { credentials: "include" }).then((r) => r.json()).then((r) => {
|
|
2794
|
-
if (r.status === 200)
|
|
2795
|
-
Z.lastError = null, Z.userInfo = /** @type UserInfo */
|
|
2796
|
-
r.data;
|
|
2797
|
-
else
|
|
2798
|
-
throw new Error(r.err);
|
|
2799
|
-
}).catch((r) => {
|
|
2800
|
-
Z.lastError = r, Z.userInfo = null;
|
|
2801
|
-
}).finally(() => {
|
|
2802
|
-
Z.isDefinitive = !0, Ft(Z);
|
|
2803
|
-
});
|
|
2804
|
-
else {
|
|
2805
|
-
const r = {
|
|
2806
|
-
isDefinitive: !0,
|
|
2807
|
-
lastError: null,
|
|
2808
|
-
userInfo: (n = o.utahId) == null ? void 0 : n.currentUser
|
|
2809
|
-
};
|
|
2810
|
-
e = Promise.resolve(r), Ft(r);
|
|
2811
|
-
}
|
|
2695
|
+
const i = {
|
|
2696
|
+
isDefinitive: !0,
|
|
2697
|
+
lastError: null,
|
|
2698
|
+
userInfo: (r = t.utahId) == null ? void 0 : r.currentUser
|
|
2699
|
+
};
|
|
2700
|
+
e = Promise.resolve(i), Wt(i);
|
|
2812
2701
|
}
|
|
2813
|
-
return e;
|
|
2702
|
+
return xt = n, e;
|
|
2814
2703
|
}
|
|
2815
|
-
function
|
|
2816
|
-
return
|
|
2704
|
+
function Or() {
|
|
2705
|
+
return B;
|
|
2817
2706
|
}
|
|
2818
|
-
function
|
|
2707
|
+
function Lr() {
|
|
2819
2708
|
const e = document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID);
|
|
2820
2709
|
if (!e)
|
|
2821
2710
|
throw new Error("removeUtahIdInMobileMenu: profileActionItem not found");
|
|
@@ -2827,7 +2716,7 @@ function Yr() {
|
|
|
2827
2716
|
throw new Error("removeUtahIdInMobileMenu: profileActionItemWrapper not found");
|
|
2828
2717
|
t.remove();
|
|
2829
2718
|
}
|
|
2830
|
-
function
|
|
2719
|
+
function yr(e, t) {
|
|
2831
2720
|
const n = document.querySelector(p(a.MOBILE__UTAH_ID));
|
|
2832
2721
|
if (!n)
|
|
2833
2722
|
throw new Error("hookupUtahIdInMobileMenu: utahIdWrapper not found");
|
|
@@ -2848,8 +2737,8 @@ function Zr(e, t) {
|
|
|
2848
2737
|
);
|
|
2849
2738
|
if (!u)
|
|
2850
2739
|
throw new Error("hookupHamburger: profileActionItemWrapper not found");
|
|
2851
|
-
const s =
|
|
2852
|
-
|
|
2740
|
+
const s = nt(t);
|
|
2741
|
+
ot(
|
|
2853
2742
|
o,
|
|
2854
2743
|
s,
|
|
2855
2744
|
u,
|
|
@@ -2857,30 +2746,31 @@ function Zr(e, t) {
|
|
|
2857
2746
|
ariaHasPopupType: "menu",
|
|
2858
2747
|
onClickHandler: (l) => {
|
|
2859
2748
|
var f;
|
|
2860
|
-
const c =
|
|
2861
|
-
let
|
|
2749
|
+
const c = Or(), d = L();
|
|
2750
|
+
let m = !1;
|
|
2862
2751
|
if (!(c != null && c.isDefinitive) || !((f = c == null ? void 0 : c.userInfo) != null && f.authenticated)) {
|
|
2863
|
-
|
|
2864
|
-
const
|
|
2865
|
-
|
|
2752
|
+
m = !0;
|
|
2753
|
+
const h = d.utahId !== !1 && d.utahId !== !0 && d.utahId.onSignIn;
|
|
2754
|
+
h ? h(l) : (l.preventDefault(), l.stopPropagation(), window.location.href = Pe.SIGN_IN);
|
|
2866
2755
|
}
|
|
2867
|
-
return
|
|
2756
|
+
return m;
|
|
2868
2757
|
},
|
|
2869
2758
|
shouldOnClickCloseMenu: !0
|
|
2870
2759
|
}
|
|
2871
2760
|
);
|
|
2872
2761
|
}
|
|
2873
|
-
function
|
|
2874
|
-
var
|
|
2875
|
-
|
|
2876
|
-
|
|
2762
|
+
function Pr() {
|
|
2763
|
+
var t;
|
|
2764
|
+
const e = L();
|
|
2765
|
+
return he(
|
|
2766
|
+
e.mainMenu && ((t = e.mainMenu) == null ? void 0 : t.menuItems) || void 0,
|
|
2877
2767
|
{
|
|
2878
|
-
childrenMenuType:
|
|
2768
|
+
childrenMenuType: Y.INLINE,
|
|
2879
2769
|
removePopupArrow: !0
|
|
2880
2770
|
}
|
|
2881
2771
|
);
|
|
2882
2772
|
}
|
|
2883
|
-
function
|
|
2773
|
+
function Nr() {
|
|
2884
2774
|
const t = [...document.querySelectorAll(`
|
|
2885
2775
|
${p(a.MOBILE_MENU__ACTION_BAR)}
|
|
2886
2776
|
${p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)}
|
|
@@ -2907,19 +2797,19 @@ function Xr() {
|
|
|
2907
2797
|
if (d && document.getElementById(d))
|
|
2908
2798
|
l.click();
|
|
2909
2799
|
else {
|
|
2910
|
-
const
|
|
2800
|
+
const h = (
|
|
2911
2801
|
/** @type {HTMLElement} */
|
|
2912
2802
|
document.querySelector(p(a.MOBILE_MENU__WRAPPER))
|
|
2913
2803
|
);
|
|
2914
|
-
if (!
|
|
2804
|
+
if (!h)
|
|
2915
2805
|
throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");
|
|
2916
|
-
const
|
|
2806
|
+
const _ = (
|
|
2917
2807
|
/** @type {HTMLElement} */
|
|
2918
|
-
|
|
2808
|
+
h.querySelector(p(a.MOBILE_MENU__CONTENT))
|
|
2919
2809
|
);
|
|
2920
|
-
if (!
|
|
2810
|
+
if (!_)
|
|
2921
2811
|
throw new Error("hookupMobileActionItemKeyboarding: mobileContentWrapper not found");
|
|
2922
|
-
|
|
2812
|
+
_.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach((E) => E.classList.remove(a.IS_OPEN));
|
|
2923
2813
|
}
|
|
2924
2814
|
const f = (
|
|
2925
2815
|
/** @type {HTMLElement} */
|
|
@@ -2927,12 +2817,12 @@ function Xr() {
|
|
|
2927
2817
|
);
|
|
2928
2818
|
if (!f)
|
|
2929
2819
|
throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");
|
|
2930
|
-
|
|
2820
|
+
Ze(f, c);
|
|
2931
2821
|
}
|
|
2932
2822
|
};
|
|
2933
2823
|
}
|
|
2934
2824
|
);
|
|
2935
|
-
const n =
|
|
2825
|
+
const n = O(
|
|
2936
2826
|
document.querySelector(p(a.MOBILE_MENU__LAST_FOCUSABLE)),
|
|
2937
2827
|
"hookupMobileActionItemKeyboarding: hiddenLastFocusableButton not found"
|
|
2938
2828
|
), { hamburger: o } = we("hookupMobileActionItemKeyboarding");
|
|
@@ -2940,13 +2830,13 @@ function Xr() {
|
|
|
2940
2830
|
r.preventDefault(), r.stopPropagation(), o.focus();
|
|
2941
2831
|
});
|
|
2942
2832
|
}
|
|
2943
|
-
function
|
|
2944
|
-
const e =
|
|
2833
|
+
function Sr() {
|
|
2834
|
+
const e = vn.replace(a.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER, `${L().mediaSizes.tabletPortrait}px`).replace(a.MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER, `${L().mediaSizes.tabletLandscape}px`).replace(a.MEDIA_SIZE__MOBILE__PLACEHOLDER, `${L().mediaSizes.mobile}px`);
|
|
2945
2835
|
let t = document.getElementById(a.CSS_HEADER_MEDIA_TAG_ID);
|
|
2946
2836
|
t || (t = document.createElement("style"), t.id = a.CSS_HEADER_MEDIA_TAG_ID), t.innerHTML = e, document.body.appendChild(t);
|
|
2947
2837
|
}
|
|
2948
|
-
function
|
|
2949
|
-
const e =
|
|
2838
|
+
function Ur() {
|
|
2839
|
+
const e = L();
|
|
2950
2840
|
let t = document.body;
|
|
2951
2841
|
if (e.domLocationTarget) {
|
|
2952
2842
|
const n = [
|
|
@@ -2959,26 +2849,26 @@ function Qr() {
|
|
|
2959
2849
|
if (n.length > 1)
|
|
2960
2850
|
throw new Error("loadHeader: domLocationTarget must only have one target specified");
|
|
2961
2851
|
if (e.domLocationTarget.cssSelector)
|
|
2962
|
-
t = document.querySelector(e.domLocationTarget.cssSelector),
|
|
2852
|
+
t = document.querySelector(e.domLocationTarget.cssSelector), X(!t, `loadHeader: element not found for domLocationTarget.cssSelector ${e.domLocationTarget.cssSelector}`);
|
|
2963
2853
|
else if (e.domLocationTarget.element)
|
|
2964
2854
|
t = e.domLocationTarget.element;
|
|
2965
2855
|
else if (e.domLocationTarget.elementFunction)
|
|
2966
|
-
t = e.domLocationTarget.elementFunction(),
|
|
2856
|
+
t = e.domLocationTarget.elementFunction(), X(!t, "loadHeader: element not returned from domLocationTarget.elementFunction");
|
|
2967
2857
|
else
|
|
2968
2858
|
throw new Error("loadHeader: domLocationTarget must have at least one field set");
|
|
2969
2859
|
}
|
|
2970
|
-
return
|
|
2860
|
+
return O(t, "loadHeader: domTarget is null (how?!)");
|
|
2971
2861
|
}
|
|
2972
|
-
function
|
|
2862
|
+
function Cr() {
|
|
2973
2863
|
var t;
|
|
2974
2864
|
if (!document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.HEADER]))) {
|
|
2975
|
-
const n =
|
|
2865
|
+
const n = hr(), o = Ur();
|
|
2976
2866
|
o.insertBefore(n, o.firstChild);
|
|
2977
|
-
const r =
|
|
2867
|
+
const r = gr();
|
|
2978
2868
|
n.after(r);
|
|
2979
|
-
const { mainMenuWrapper: i, utahIdPopup: u } =
|
|
2869
|
+
const { mainMenuWrapper: i, utahIdPopup: u } = br();
|
|
2980
2870
|
i && r.after(i);
|
|
2981
|
-
const s =
|
|
2871
|
+
const s = I(bn);
|
|
2982
2872
|
r.after(s);
|
|
2983
2873
|
const l = (
|
|
2984
2874
|
/** @type {HTMLElement} */
|
|
@@ -2988,29 +2878,43 @@ function ei() {
|
|
|
2988
2878
|
throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");
|
|
2989
2879
|
if (l.onclick)
|
|
2990
2880
|
throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");
|
|
2991
|
-
l.onclick = () =>
|
|
2992
|
-
const c =
|
|
2881
|
+
l.onclick = () => qe();
|
|
2882
|
+
const c = Pr(), d = rn(c, "Main Menu");
|
|
2993
2883
|
d.appendChild(c);
|
|
2994
|
-
const
|
|
2995
|
-
|
|
2996
|
-
const f =
|
|
2884
|
+
const m = nt(d);
|
|
2885
|
+
Mr(m), u ? ((t = u.closest("div")) == null || t.removeAttribute("aria-labelledby"), yr(s, u)) : Lr(), $o(), Nr(), Bo(), Sr(), un().catch((h) => console.error(h));
|
|
2886
|
+
const f = L();
|
|
2997
2887
|
(!f.mainMenu && !f.actionItems && f.utahId === !1 && !f.onSearch || !f.mainMenu && !f.actionItems && f.utahId === !1 && f.onSearch || !f.mainMenu && f.actionItems && f.utahId === !1 && !f.onSearch) && (s.classList.add(a.MAIN_MENU__REMOVED), i.remove()), (!f.mainMenu && !f.actionItems && f.utahId && !f.onSearch || !f.mainMenu && f.actionItems && f.utahId && !f.onSearch || !f.mainMenu && f.actionItems && !f.utahId && f.onSearch) && i.classList.add(a.DESKTOP__HIDDEN);
|
|
2998
2888
|
}
|
|
2999
|
-
|
|
2889
|
+
zo();
|
|
3000
2890
|
}
|
|
3001
|
-
function
|
|
2891
|
+
function Rr(e) {
|
|
3002
2892
|
var t, n, o, r;
|
|
3003
|
-
(t = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.HEADER]))) == null || t.remove(), (n = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.MAIN_MENU__OUTER]))) == null || n.remove(), (o = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.MOBILE_MENU]))) == null || o.remove(), (r = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.LOGO_OFFICIAL_WRAPPER]))) == null || r.remove(),
|
|
2893
|
+
(t = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.HEADER]))) == null || t.remove(), (n = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.MAIN_MENU__OUTER]))) == null || n.remove(), (o = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.MOBILE_MENU]))) == null || o.remove(), (r = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.LOGO_OFFICIAL_WRAPPER]))) == null || r.remove(), nn(), e && setTimeout(() => document.dispatchEvent(new Event($t.HEADER_UNLOADED)), 0);
|
|
2894
|
+
}
|
|
2895
|
+
function qt() {
|
|
2896
|
+
Rr(!1), Cr();
|
|
2897
|
+
}
|
|
2898
|
+
let dn = !1;
|
|
2899
|
+
const Dr = 15e3;
|
|
2900
|
+
let Vt = 0;
|
|
2901
|
+
const Br = setInterval(
|
|
2902
|
+
() => {
|
|
2903
|
+
Vt += 1, Vt >= Dr || dn ? clearInterval(Br) : document.dispatchEvent(new Event($t.HEADER_LOADED));
|
|
2904
|
+
},
|
|
2905
|
+
2
|
|
2906
|
+
);
|
|
2907
|
+
function Hr(e) {
|
|
2908
|
+
return je.setSettings(e), dn = !0, document != null && document.body ? qt() : window.addEventListener("load", () => qt()), je.getSettings();
|
|
3004
2909
|
}
|
|
3005
|
-
console.log(`Utah Header v${Rn.version}`);
|
|
3006
2910
|
export {
|
|
3007
|
-
|
|
3008
|
-
|
|
2911
|
+
Y as childrenMenuTypes,
|
|
2912
|
+
Ot as defaultSettings,
|
|
3009
2913
|
$t as events,
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
2914
|
+
L as getUtahHeaderSettings,
|
|
2915
|
+
Cr as loadHeader,
|
|
2916
|
+
Rr as removeHeader,
|
|
2917
|
+
I as renderDOMSingle,
|
|
2918
|
+
Hr as setUtahHeaderSettings,
|
|
3015
2919
|
Te as sizes
|
|
3016
2920
|
};
|