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