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