@utahdts/utah-design-system-header 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Y = {
|
|
2
2
|
FLYOUT: (
|
|
3
3
|
/** @type {ChildrenMenuType} */
|
|
4
4
|
"flyout"
|
|
@@ -22,7 +22,7 @@ const j = {
|
|
|
22
22
|
/** @type {Events} */
|
|
23
23
|
"utahHeaderUnloaded"
|
|
24
24
|
)
|
|
25
|
-
},
|
|
25
|
+
}, ge = {
|
|
26
26
|
SMALL: (
|
|
27
27
|
/** @type {Size} */
|
|
28
28
|
"SMALL"
|
|
@@ -100,6 +100,11 @@ const j = {
|
|
|
100
100
|
.utah-design-system .utds-official-website-popup__col {
|
|
101
101
|
width: 100%;
|
|
102
102
|
}
|
|
103
|
+
.utah-design-system .utds-official-website-popup__address-bar {
|
|
104
|
+
width: auto;
|
|
105
|
+
background-size: contain;
|
|
106
|
+
background-repeat: no-repeat;
|
|
107
|
+
}
|
|
103
108
|
|
|
104
109
|
.color-example {
|
|
105
110
|
flex-direction: column;
|
|
@@ -179,6 +184,7 @@ const a = {
|
|
|
179
184
|
CITIZEN_EXPERIENCE: "utds-citizen-experience-wrapper",
|
|
180
185
|
CITIZEN_EXPERIENCE_MOBILE: "utds-citizen-experience-wrapper--mobile",
|
|
181
186
|
FOOTER_HORIZONTAL_DIVIDER: "utds-footer__horizontal-divider",
|
|
187
|
+
FOOTER_LINKS: "utds-footer__links",
|
|
182
188
|
LOGO: "utds-logo-wrapper",
|
|
183
189
|
LOGO_OFFICIAL_CLOSE_BUTTON: "utds-official-website-popup__close-button",
|
|
184
190
|
LOGO_OFFICIAL_WRAPPER: "utds-official-website-popup__wrapper",
|
|
@@ -200,6 +206,7 @@ const a = {
|
|
|
200
206
|
MENU_ITEM__LINK_TITLE: "menu-item__link-title",
|
|
201
207
|
MENU_ITEM__LINK_TITLE_SPAN: "menu-item__link-title-span",
|
|
202
208
|
MENU_ITEM__SELECTED: "menu-item--selected",
|
|
209
|
+
MENU_ITEM__SELECTED_PARENT: "menu-item--selected_parent",
|
|
203
210
|
MENU_ITEM__TITLE: "menu-item__title",
|
|
204
211
|
MENU_ITEM__FLY_OUT: "menu-item--fly_out",
|
|
205
212
|
MENU_ITEM__INLINE: "menu-item--inline",
|
|
@@ -257,25 +264,25 @@ const a = {
|
|
|
257
264
|
UTAH_ID: "utds-utah-id-wrapper",
|
|
258
265
|
UTAH_ID__BUTTON: "utds-utah-id__button"
|
|
259
266
|
};
|
|
260
|
-
function
|
|
267
|
+
function Q(e, t) {
|
|
261
268
|
if (e)
|
|
262
269
|
throw new Error(t);
|
|
263
270
|
}
|
|
264
|
-
function
|
|
271
|
+
function L(e, t) {
|
|
265
272
|
if (e == null)
|
|
266
273
|
throw new Error(t);
|
|
267
274
|
return e;
|
|
268
275
|
}
|
|
269
|
-
function
|
|
276
|
+
function Lt(e) {
|
|
270
277
|
return typeof e == "string" || e instanceof String;
|
|
271
278
|
}
|
|
272
279
|
function Tn(e) {
|
|
273
280
|
const t = new DOMParser();
|
|
274
281
|
let n;
|
|
275
|
-
if (
|
|
282
|
+
if (Lt(e)) {
|
|
276
283
|
const o = (
|
|
277
284
|
/** @type {Document} */
|
|
278
|
-
|
|
285
|
+
Lt(e) ? t.parseFromString(e, "text/html") : e
|
|
279
286
|
), r = o.body.children.length > 1 ? o.body.children : o.body.children.item(0);
|
|
280
287
|
if (!r)
|
|
281
288
|
throw console.error(e), new Error("renderDOM: nothing rendered");
|
|
@@ -289,7 +296,7 @@ function Tn(e) {
|
|
|
289
296
|
throw e ? (console.error(e), new Error(`renderDOM: str is not a string nor a DOM Element : '${e}'`)) : new Error("renderDOM: falsy string passed; cannot render nothing");
|
|
290
297
|
return n;
|
|
291
298
|
}
|
|
292
|
-
function
|
|
299
|
+
function T(e) {
|
|
293
300
|
const t = typeof e == "string" ? Tn(e) : e;
|
|
294
301
|
if (t instanceof HTMLCollection && t.length > 1)
|
|
295
302
|
throw new Error("renderDOMSingle: must render a single element");
|
|
@@ -310,7 +317,7 @@ const Ze = {
|
|
|
310
317
|
tabletLandscape: 1024
|
|
311
318
|
},
|
|
312
319
|
showTitle: !0,
|
|
313
|
-
size:
|
|
320
|
+
size: ge.MEDIUM,
|
|
314
321
|
title: "My Utah.gov Site",
|
|
315
322
|
titleURL: "/",
|
|
316
323
|
utahId: !1
|
|
@@ -338,13 +345,13 @@ class Mn {
|
|
|
338
345
|
}
|
|
339
346
|
}
|
|
340
347
|
const ke = new Mn();
|
|
341
|
-
function
|
|
348
|
+
function y() {
|
|
342
349
|
return ke.getSettings();
|
|
343
350
|
}
|
|
344
351
|
const An = `<div class="utds-header-mobile-menu__content-item" role="tabpanel">
|
|
345
352
|
</div>
|
|
346
353
|
`;
|
|
347
|
-
function
|
|
354
|
+
function D() {
|
|
348
355
|
return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(
|
|
349
356
|
/[018]/g,
|
|
350
357
|
// eslint-disable-next-line no-bitwise
|
|
@@ -358,29 +365,20 @@ function ot(e) {
|
|
|
358
365
|
const n = t.querySelector(p(a.MOBILE_MENU__CONTENT));
|
|
359
366
|
if (!n)
|
|
360
367
|
throw new Error("addMobileMenuContentItem: mobileContentWrapper not found");
|
|
361
|
-
const o =
|
|
362
|
-
return o.appendChild(e), n.appendChild(o), o.setAttribute("id",
|
|
368
|
+
const o = T(An);
|
|
369
|
+
return o.appendChild(e), n.appendChild(o), o.setAttribute("id", D()), o;
|
|
363
370
|
}
|
|
364
|
-
function
|
|
371
|
+
function j(e) {
|
|
365
372
|
return typeof e == "function" ? e() : e;
|
|
366
373
|
}
|
|
367
|
-
function
|
|
374
|
+
function we(e) {
|
|
368
375
|
const t = (
|
|
369
376
|
/** @type {HTMLElement} */
|
|
370
|
-
|
|
377
|
+
L(
|
|
371
378
|
document.querySelector(p(a.MOBILE_MENU)),
|
|
372
379
|
`${e}: mobileMenu not found`
|
|
373
380
|
)
|
|
374
|
-
), n =
|
|
375
|
-
document.getElementById(a.MAIN_MENU__HAMBURGER_ID),
|
|
376
|
-
`${e}: hamburger not found (🍔 🎶 I will gladly pay you Tuesday for a hamburger today 🎵 🍔)`
|
|
377
|
-
), o = (
|
|
378
|
-
/** @type {HTMLElement} */
|
|
379
|
-
w(
|
|
380
|
-
document.getElementById(a.MAIN_MENU__HAMBURGER_ICON_ID),
|
|
381
|
-
`${e}: hamburgerIcon not found`
|
|
382
|
-
)
|
|
383
|
-
);
|
|
381
|
+
), n = document.getElementById(a.MAIN_MENU__HAMBURGER_ID), o = document.getElementById(a.MAIN_MENU__HAMBURGER_ICON_ID);
|
|
384
382
|
return {
|
|
385
383
|
hamburger: n,
|
|
386
384
|
hamburgerIcon: o,
|
|
@@ -388,15 +386,15 @@ function Oe(e) {
|
|
|
388
386
|
};
|
|
389
387
|
}
|
|
390
388
|
function Ve() {
|
|
391
|
-
const { hamburger: e, hamburgerIcon: t, mobileMenu: n } =
|
|
392
|
-
e.setAttribute("aria-expanded", "false"), n.classList.remove(a.IS_OPEN), e.setAttribute("aria-label", "Open the mobile menu"), t.classList.add("utds-icon-before-hamburger"), t.classList.remove("utds-icon-before-x-icon");
|
|
389
|
+
const { hamburger: e, hamburgerIcon: t, mobileMenu: n } = we("hideMobileMenu");
|
|
390
|
+
e == null || e.setAttribute("aria-expanded", "false"), n.classList.remove(a.IS_OPEN), e == null || e.setAttribute("aria-label", "Open the mobile menu"), t == null || t.classList.add("utds-icon-before-hamburger"), t == null || t.classList.remove("utds-icon-before-x-icon");
|
|
393
391
|
}
|
|
394
392
|
function On() {
|
|
395
393
|
var r;
|
|
396
394
|
const e = document.querySelector(p(a.MAIN_MENU));
|
|
397
395
|
e != null && e.classList.contains(a.MOBILE__HIDDEN) && ((r = document.querySelector(`${p(a.UTAH_DESIGN_SYSTEM)}${p(a.MOBILE_MENU)}`)) == null || r.classList.add(a.MAIN_MENU__REMOVED));
|
|
398
|
-
const { hamburger: t, hamburgerIcon: n, mobileMenu: o } =
|
|
399
|
-
t.setAttribute("aria-expanded", "true"), o.classList.add(a.IS_OPEN), t.setAttribute("aria-label", "Close the mobile menu"), n.classList.remove("utds-icon-before-hamburger"), n.classList.add("utds-icon-before-x-icon");
|
|
396
|
+
const { hamburger: t, hamburgerIcon: n, mobileMenu: o } = we("showMobileMenu");
|
|
397
|
+
t == null || t.setAttribute("aria-expanded", "true"), o.classList.add(a.IS_OPEN), t == null || t.setAttribute("aria-label", "Close the mobile menu"), n == null || n.classList.remove("utds-icon-before-hamburger"), n == null || n.classList.add("utds-icon-before-x-icon");
|
|
400
398
|
}
|
|
401
399
|
function Xe(e, t) {
|
|
402
400
|
e.querySelectorAll(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)).forEach((o) => {
|
|
@@ -411,7 +409,7 @@ function Xe(e, t) {
|
|
|
411
409
|
throw new Error("showActionItem: actionWrapper does not have actionItem B");
|
|
412
410
|
n.setAttribute("aria-selected", "true"), n.removeAttribute("tabIndex"), n.focus();
|
|
413
411
|
}
|
|
414
|
-
function
|
|
412
|
+
function yt(e, t) {
|
|
415
413
|
e.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach((n) => n.classList.remove(a.IS_OPEN)), t.classList.add(a.IS_OPEN);
|
|
416
414
|
}
|
|
417
415
|
function rt(e, t, n, {
|
|
@@ -420,7 +418,7 @@ function rt(e, t, n, {
|
|
|
420
418
|
onClickHandler: i,
|
|
421
419
|
shouldOnClickCloseMenu: u
|
|
422
420
|
}) {
|
|
423
|
-
var h,
|
|
421
|
+
var h, E;
|
|
424
422
|
if (t && !o)
|
|
425
423
|
throw new Error("mobileMenuInteractionHandler: there is content, but the aria type is not given");
|
|
426
424
|
const l = (
|
|
@@ -441,36 +439,36 @@ function rt(e, t, n, {
|
|
|
441
439
|
);
|
|
442
440
|
if (!c)
|
|
443
441
|
throw new Error("mobileMenuInteractionHandler: mobileContentWrapper not found");
|
|
444
|
-
const d =
|
|
442
|
+
const d = j(n), _ = (E = (h = j(n)) == null ? void 0 : h.querySelector) == null ? void 0 : E.call(h, "button"), f = (_ || e).getAttribute("id");
|
|
445
443
|
if (!f)
|
|
446
444
|
throw new Error("mobileMenuInteractionHandler: interactiveElementId not found");
|
|
447
445
|
if (t) {
|
|
448
|
-
const
|
|
449
|
-
if (
|
|
450
|
-
const
|
|
451
|
-
if (!
|
|
446
|
+
const v = j(t);
|
|
447
|
+
if (v) {
|
|
448
|
+
const m = v.getAttribute("id");
|
|
449
|
+
if (!m)
|
|
452
450
|
throw new Error("mobileMenuInteractionHandler: mobileMenuContentId not found");
|
|
453
|
-
(
|
|
451
|
+
(_ || e).setAttribute("aria-controls", m), v.setAttribute("aria-labelledby", f);
|
|
454
452
|
}
|
|
455
453
|
}
|
|
456
454
|
if (e.onclick)
|
|
457
455
|
throw new Error("mobileMenuInteractionHandler: interactiveElement already has onclick");
|
|
458
|
-
if (e.onclick = (
|
|
459
|
-
if (!(i != null && i(
|
|
460
|
-
if (r == null || r(
|
|
456
|
+
if (e.onclick = (v) => {
|
|
457
|
+
if (!(i != null && i(v)))
|
|
458
|
+
if (r == null || r(v), l.classList.contains(a.IS_OPEN))
|
|
461
459
|
u && Ve();
|
|
462
460
|
else {
|
|
463
461
|
On();
|
|
464
|
-
const
|
|
465
|
-
|
|
462
|
+
const I = j(t);
|
|
463
|
+
I && yt(c, I), Xe(s, j(n));
|
|
466
464
|
}
|
|
467
465
|
}, t) {
|
|
468
466
|
if (d !== e && d.onclick)
|
|
469
467
|
throw new Error("mobileMenuInteractionHandler: actionItemWrapperValue already has onclick");
|
|
470
|
-
d.onclick = (
|
|
471
|
-
if (!(i != null && i(
|
|
472
|
-
const
|
|
473
|
-
|
|
468
|
+
d.onclick = (v) => {
|
|
469
|
+
if (!(i != null && i(v))) {
|
|
470
|
+
const m = j(t);
|
|
471
|
+
m && yt(c, m), Xe(s, j(n));
|
|
474
472
|
}
|
|
475
473
|
};
|
|
476
474
|
}
|
|
@@ -486,7 +484,7 @@ const wn = `<div class="utds-header-mobile-menu__action-item" role="tab">
|
|
|
486
484
|
<div class="vertical-menu__wrapper-title"></div>
|
|
487
485
|
</div>
|
|
488
486
|
`, yn = `<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
|
|
489
|
-
`,
|
|
487
|
+
`, it = `<span class="utds-new-tab-link-a11y">
|
|
490
488
|
<span class="visually-hidden">opens in a new tab</span>
|
|
491
489
|
<span class="utds-icon-after-external-link" aria-hidden="true"></span>
|
|
492
490
|
</span>
|
|
@@ -503,7 +501,7 @@ const wn = `<div class="utds-header-mobile-menu__action-item" role="tab">
|
|
|
503
501
|
</span>
|
|
504
502
|
<span class="vertical-menu__divider" />
|
|
505
503
|
</li>
|
|
506
|
-
`,
|
|
504
|
+
`, at = {
|
|
507
505
|
AUTO: (
|
|
508
506
|
/** @type {PopupPlacement} */
|
|
509
507
|
"auto"
|
|
@@ -570,15 +568,15 @@ function Fe(e, t, n) {
|
|
|
570
568
|
let o = !1;
|
|
571
569
|
return e && (Array.isArray(e) ? o = e.some((i) => Fe(i, t, n)) : (o = n(e), o || (o = !!((r = t == null ? void 0 : t.filter((i) => e[i])) != null && r.some((i) => Fe(e[i], t, n)))))), o;
|
|
572
570
|
}
|
|
573
|
-
var F = "top", z = "bottom",
|
|
574
|
-
return e.concat([t + "-" +
|
|
575
|
-
}, []),
|
|
576
|
-
return e.concat([t, t + "-" +
|
|
571
|
+
var F = "top", z = "bottom", K = "right", q = "left", st = "auto", Se = [F, z, K, q], pe = "start", Le = "end", Sn = "clippingParents", zt = "viewport", be = "popper", Un = "reference", Pt = /* @__PURE__ */ Se.reduce(function(e, t) {
|
|
572
|
+
return e.concat([t + "-" + pe, t + "-" + Le]);
|
|
573
|
+
}, []), Kt = /* @__PURE__ */ [].concat(Se, [st]).reduce(function(e, t) {
|
|
574
|
+
return e.concat([t, t + "-" + pe, t + "-" + Le]);
|
|
577
575
|
}, []), Cn = "beforeRead", Rn = "read", Dn = "afterRead", Bn = "beforeMain", Hn = "main", xn = "afterMain", Wn = "beforeWrite", kn = "write", Fn = "afterWrite", qn = [Cn, Rn, Dn, Bn, Hn, xn, Wn, kn, Fn];
|
|
578
|
-
function
|
|
576
|
+
function X(e) {
|
|
579
577
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
580
578
|
}
|
|
581
|
-
function
|
|
579
|
+
function G(e) {
|
|
582
580
|
if (e == null)
|
|
583
581
|
return window;
|
|
584
582
|
if (e.toString() !== "[object Window]") {
|
|
@@ -588,30 +586,30 @@ function $(e) {
|
|
|
588
586
|
return e;
|
|
589
587
|
}
|
|
590
588
|
function le(e) {
|
|
591
|
-
var t =
|
|
589
|
+
var t = G(e).Element;
|
|
592
590
|
return e instanceof t || e instanceof Element;
|
|
593
591
|
}
|
|
594
|
-
function
|
|
595
|
-
var t =
|
|
592
|
+
function $(e) {
|
|
593
|
+
var t = G(e).HTMLElement;
|
|
596
594
|
return e instanceof t || e instanceof HTMLElement;
|
|
597
595
|
}
|
|
598
|
-
function
|
|
596
|
+
function lt(e) {
|
|
599
597
|
if (typeof ShadowRoot > "u")
|
|
600
598
|
return !1;
|
|
601
|
-
var t =
|
|
599
|
+
var t = G(e).ShadowRoot;
|
|
602
600
|
return e instanceof t || e instanceof ShadowRoot;
|
|
603
601
|
}
|
|
604
602
|
function Vn(e) {
|
|
605
603
|
var t = e.state;
|
|
606
604
|
Object.keys(t.elements).forEach(function(n) {
|
|
607
605
|
var o = t.styles[n] || {}, r = t.attributes[n] || {}, i = t.elements[n];
|
|
608
|
-
|
|
606
|
+
!$(i) || !X(i) || (Object.assign(i.style, o), Object.keys(r).forEach(function(u) {
|
|
609
607
|
var l = r[u];
|
|
610
608
|
l === !1 ? i.removeAttribute(u) : i.setAttribute(u, l === !0 ? "" : l);
|
|
611
609
|
}));
|
|
612
610
|
});
|
|
613
611
|
}
|
|
614
|
-
function
|
|
612
|
+
function Gn(e) {
|
|
615
613
|
var t = e.state, n = {
|
|
616
614
|
popper: {
|
|
617
615
|
position: t.options.strategy,
|
|
@@ -629,51 +627,51 @@ function $n(e) {
|
|
|
629
627
|
var r = t.elements[o], i = t.attributes[o] || {}, u = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]), l = u.reduce(function(s, c) {
|
|
630
628
|
return s[c] = "", s;
|
|
631
629
|
}, {});
|
|
632
|
-
|
|
630
|
+
!$(r) || !X(r) || (Object.assign(r.style, l), Object.keys(i).forEach(function(s) {
|
|
633
631
|
r.removeAttribute(s);
|
|
634
632
|
}));
|
|
635
633
|
});
|
|
636
634
|
};
|
|
637
635
|
}
|
|
638
|
-
const
|
|
636
|
+
const $n = {
|
|
639
637
|
name: "applyStyles",
|
|
640
638
|
enabled: !0,
|
|
641
639
|
phase: "write",
|
|
642
640
|
fn: Vn,
|
|
643
|
-
effect:
|
|
641
|
+
effect: Gn,
|
|
644
642
|
requires: ["computeStyles"]
|
|
645
643
|
};
|
|
646
|
-
function
|
|
644
|
+
function Z(e) {
|
|
647
645
|
return e.split("-")[0];
|
|
648
646
|
}
|
|
649
|
-
var se = Math.max, qe = Math.min,
|
|
647
|
+
var se = Math.max, qe = Math.min, fe = Math.round;
|
|
650
648
|
function Qe() {
|
|
651
649
|
var e = navigator.userAgentData;
|
|
652
650
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
653
651
|
return t.brand + "/" + t.version;
|
|
654
652
|
}).join(" ") : navigator.userAgent;
|
|
655
653
|
}
|
|
656
|
-
function
|
|
654
|
+
function Yt() {
|
|
657
655
|
return !/^((?!chrome|android).)*safari/i.test(Qe());
|
|
658
656
|
}
|
|
659
|
-
function
|
|
657
|
+
function _e(e, t, n) {
|
|
660
658
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
661
659
|
var o = e.getBoundingClientRect(), r = 1, i = 1;
|
|
662
|
-
t &&
|
|
663
|
-
var u = le(e) ?
|
|
660
|
+
t && $(e) && (r = e.offsetWidth > 0 && fe(o.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && fe(o.height) / e.offsetHeight || 1);
|
|
661
|
+
var u = le(e) ? G(e) : window, l = u.visualViewport, s = !Yt() && n, c = (o.left + (s && l ? l.offsetLeft : 0)) / r, d = (o.top + (s && l ? l.offsetTop : 0)) / i, _ = o.width / r, f = o.height / i;
|
|
664
662
|
return {
|
|
665
|
-
width:
|
|
663
|
+
width: _,
|
|
666
664
|
height: f,
|
|
667
665
|
top: d,
|
|
668
|
-
right: c +
|
|
666
|
+
right: c + _,
|
|
669
667
|
bottom: d + f,
|
|
670
668
|
left: c,
|
|
671
669
|
x: c,
|
|
672
670
|
y: d
|
|
673
671
|
};
|
|
674
672
|
}
|
|
675
|
-
function
|
|
676
|
-
var t =
|
|
673
|
+
function ct(e) {
|
|
674
|
+
var t = _e(e), n = e.offsetWidth, o = e.offsetHeight;
|
|
677
675
|
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), {
|
|
678
676
|
x: e.offsetLeft,
|
|
679
677
|
y: e.offsetTop,
|
|
@@ -685,7 +683,7 @@ function jt(e, t) {
|
|
|
685
683
|
var n = t.getRootNode && t.getRootNode();
|
|
686
684
|
if (e.contains(t))
|
|
687
685
|
return !0;
|
|
688
|
-
if (n &&
|
|
686
|
+
if (n && lt(n)) {
|
|
689
687
|
var o = t;
|
|
690
688
|
do {
|
|
691
689
|
if (o && e.isSameNode(o))
|
|
@@ -695,11 +693,11 @@ function jt(e, t) {
|
|
|
695
693
|
}
|
|
696
694
|
return !1;
|
|
697
695
|
}
|
|
698
|
-
function
|
|
699
|
-
return
|
|
696
|
+
function J(e) {
|
|
697
|
+
return G(e).getComputedStyle(e);
|
|
700
698
|
}
|
|
701
699
|
function zn(e) {
|
|
702
|
-
return ["table", "td", "th"].indexOf(
|
|
700
|
+
return ["table", "td", "th"].indexOf(X(e)) >= 0;
|
|
703
701
|
}
|
|
704
702
|
function oe(e) {
|
|
705
703
|
return ((le(e) ? e.ownerDocument : (
|
|
@@ -707,51 +705,51 @@ function oe(e) {
|
|
|
707
705
|
e.document
|
|
708
706
|
)) || window.document).documentElement;
|
|
709
707
|
}
|
|
710
|
-
function
|
|
711
|
-
return
|
|
708
|
+
function Ge(e) {
|
|
709
|
+
return X(e) === "html" ? e : (
|
|
712
710
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
713
711
|
// $FlowFixMe[incompatible-return]
|
|
714
712
|
// $FlowFixMe[prop-missing]
|
|
715
713
|
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
716
714
|
e.parentNode || // DOM Element detected
|
|
717
|
-
(
|
|
715
|
+
(lt(e) ? e.host : null) || // ShadowRoot detected
|
|
718
716
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
719
717
|
oe(e)
|
|
720
718
|
);
|
|
721
719
|
}
|
|
722
|
-
function
|
|
723
|
-
return
|
|
724
|
-
|
|
720
|
+
function Nt(e) {
|
|
721
|
+
return !$(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
722
|
+
J(e).position === "fixed" ? null : e.offsetParent;
|
|
725
723
|
}
|
|
726
|
-
function
|
|
724
|
+
function Kn(e) {
|
|
727
725
|
var t = /firefox/i.test(Qe()), n = /Trident/i.test(Qe());
|
|
728
|
-
if (n &&
|
|
729
|
-
var o =
|
|
726
|
+
if (n && $(e)) {
|
|
727
|
+
var o = J(e);
|
|
730
728
|
if (o.position === "fixed")
|
|
731
729
|
return null;
|
|
732
730
|
}
|
|
733
|
-
var r =
|
|
734
|
-
for (
|
|
735
|
-
var i =
|
|
731
|
+
var r = Ge(e);
|
|
732
|
+
for (lt(r) && (r = r.host); $(r) && ["html", "body"].indexOf(X(r)) < 0; ) {
|
|
733
|
+
var i = J(r);
|
|
736
734
|
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")
|
|
737
735
|
return r;
|
|
738
736
|
r = r.parentNode;
|
|
739
737
|
}
|
|
740
738
|
return null;
|
|
741
739
|
}
|
|
742
|
-
function
|
|
743
|
-
for (var t =
|
|
744
|
-
n =
|
|
745
|
-
return n && (
|
|
740
|
+
function Ue(e) {
|
|
741
|
+
for (var t = G(e), n = Nt(e); n && zn(n) && J(n).position === "static"; )
|
|
742
|
+
n = Nt(n);
|
|
743
|
+
return n && (X(n) === "html" || X(n) === "body" && J(n).position === "static") ? t : n || Kn(e) || t;
|
|
746
744
|
}
|
|
747
|
-
function
|
|
745
|
+
function ut(e) {
|
|
748
746
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
749
747
|
}
|
|
750
|
-
function
|
|
748
|
+
function Me(e, t, n) {
|
|
751
749
|
return se(e, qe(t, n));
|
|
752
750
|
}
|
|
753
|
-
function
|
|
754
|
-
var o =
|
|
751
|
+
function Yn(e, t, n) {
|
|
752
|
+
var o = Me(e, t, n);
|
|
755
753
|
return o > n ? n : o;
|
|
756
754
|
}
|
|
757
755
|
function Zt() {
|
|
@@ -773,13 +771,13 @@ function Qt(e, t) {
|
|
|
773
771
|
var jn = function(t, n) {
|
|
774
772
|
return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
|
|
775
773
|
placement: n.placement
|
|
776
|
-
})) : t, Xt(typeof t != "number" ? t : Qt(t,
|
|
774
|
+
})) : t, Xt(typeof t != "number" ? t : Qt(t, Se));
|
|
777
775
|
};
|
|
778
776
|
function Zn(e) {
|
|
779
|
-
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets, l =
|
|
777
|
+
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets, l = Z(n.placement), s = ut(l), c = [q, K].indexOf(l) >= 0, d = c ? "height" : "width";
|
|
780
778
|
if (!(!i || !u)) {
|
|
781
|
-
var
|
|
782
|
-
n.modifiersData[o] = (t = {}, t[
|
|
779
|
+
var _ = jn(r.padding, n), f = ct(i), h = s === "y" ? F : q, E = s === "y" ? z : K, v = n.rects.reference[d] + n.rects.reference[s] - u[s] - n.rects.popper[d], m = u[s] - n.rects.reference[s], I = Ue(i), g = I ? s === "y" ? I.clientHeight || 0 : I.clientWidth || 0 : 0, O = v / 2 - m / 2, b = _[h], M = g - f[d] - _[E], A = g / 2 - f[d] / 2 + O, w = Me(b, A, M), N = s;
|
|
780
|
+
n.modifiersData[o] = (t = {}, t[N] = w, t.centerOffset = w - A, t);
|
|
783
781
|
}
|
|
784
782
|
}
|
|
785
783
|
function Xn(e) {
|
|
@@ -795,7 +793,7 @@ const Qn = {
|
|
|
795
793
|
requires: ["popperOffsets"],
|
|
796
794
|
requiresIfExists: ["preventOverflow"]
|
|
797
795
|
};
|
|
798
|
-
function
|
|
796
|
+
function he(e) {
|
|
799
797
|
return e.split("-")[1];
|
|
800
798
|
}
|
|
801
799
|
var Jn = {
|
|
@@ -807,69 +805,69 @@ var Jn = {
|
|
|
807
805
|
function eo(e, t) {
|
|
808
806
|
var n = e.x, o = e.y, r = t.devicePixelRatio || 1;
|
|
809
807
|
return {
|
|
810
|
-
x:
|
|
811
|
-
y:
|
|
808
|
+
x: fe(n * r) / r || 0,
|
|
809
|
+
y: fe(o * r) / r || 0
|
|
812
810
|
};
|
|
813
811
|
}
|
|
814
|
-
function
|
|
815
|
-
var t, n = e.popper, o = e.popperRect, r = e.placement, i = e.variation, u = e.offsets, l = e.position, s = e.gpuAcceleration, c = e.adaptive, d = e.roundOffsets,
|
|
812
|
+
function St(e) {
|
|
813
|
+
var t, n = e.popper, o = e.popperRect, r = e.placement, i = e.variation, u = e.offsets, l = e.position, s = e.gpuAcceleration, c = e.adaptive, d = e.roundOffsets, _ = e.isFixed, f = u.x, h = f === void 0 ? 0 : f, E = u.y, v = E === void 0 ? 0 : E, m = typeof d == "function" ? d({
|
|
816
814
|
x: h,
|
|
817
|
-
y:
|
|
815
|
+
y: v
|
|
818
816
|
}) : {
|
|
819
817
|
x: h,
|
|
820
|
-
y:
|
|
818
|
+
y: v
|
|
821
819
|
};
|
|
822
|
-
h =
|
|
823
|
-
var
|
|
820
|
+
h = m.x, v = m.y;
|
|
821
|
+
var I = u.hasOwnProperty("x"), g = u.hasOwnProperty("y"), O = q, b = F, M = window;
|
|
824
822
|
if (c) {
|
|
825
|
-
var
|
|
826
|
-
if (
|
|
823
|
+
var A = Ue(n), w = "clientHeight", N = "clientWidth";
|
|
824
|
+
if (A === G(n) && (A = oe(n), J(A).position !== "static" && l === "absolute" && (w = "scrollHeight", N = "scrollWidth")), A = A, r === F || (r === q || r === K) && i === Le) {
|
|
827
825
|
b = z;
|
|
828
|
-
var
|
|
826
|
+
var U = _ && A === M && M.visualViewport ? M.visualViewport.height : (
|
|
829
827
|
// $FlowFixMe[prop-missing]
|
|
830
|
-
|
|
828
|
+
A[w]
|
|
831
829
|
);
|
|
832
|
-
|
|
830
|
+
v -= U - o.height, v *= s ? 1 : -1;
|
|
833
831
|
}
|
|
834
|
-
if (r === q || (r === F || r === z) && i ===
|
|
835
|
-
O =
|
|
836
|
-
var
|
|
832
|
+
if (r === q || (r === F || r === z) && i === Le) {
|
|
833
|
+
O = K;
|
|
834
|
+
var S = _ && A === M && M.visualViewport ? M.visualViewport.width : (
|
|
837
835
|
// $FlowFixMe[prop-missing]
|
|
838
|
-
|
|
836
|
+
A[N]
|
|
839
837
|
);
|
|
840
|
-
h -=
|
|
838
|
+
h -= S - o.width, h *= s ? 1 : -1;
|
|
841
839
|
}
|
|
842
840
|
}
|
|
843
|
-
var
|
|
841
|
+
var R = Object.assign({
|
|
844
842
|
position: l
|
|
845
|
-
}, c && Jn),
|
|
843
|
+
}, c && Jn), W = d === !0 ? eo({
|
|
846
844
|
x: h,
|
|
847
|
-
y:
|
|
848
|
-
},
|
|
845
|
+
y: v
|
|
846
|
+
}, G(n)) : {
|
|
849
847
|
x: h,
|
|
850
|
-
y:
|
|
848
|
+
y: v
|
|
851
849
|
};
|
|
852
|
-
if (h =
|
|
853
|
-
var
|
|
854
|
-
return Object.assign({},
|
|
850
|
+
if (h = W.x, v = W.y, s) {
|
|
851
|
+
var B;
|
|
852
|
+
return Object.assign({}, R, (B = {}, B[b] = g ? "0" : "", B[O] = I ? "0" : "", B.transform = (M.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + v + "px)" : "translate3d(" + h + "px, " + v + "px, 0)", B));
|
|
855
853
|
}
|
|
856
|
-
return Object.assign({},
|
|
854
|
+
return Object.assign({}, R, (t = {}, t[b] = g ? v + "px" : "", t[O] = I ? h + "px" : "", t.transform = "", t));
|
|
857
855
|
}
|
|
858
856
|
function to(e) {
|
|
859
857
|
var t = e.state, n = e.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, i = n.adaptive, u = i === void 0 ? !0 : i, l = n.roundOffsets, s = l === void 0 ? !0 : l, c = {
|
|
860
|
-
placement:
|
|
861
|
-
variation:
|
|
858
|
+
placement: Z(t.placement),
|
|
859
|
+
variation: he(t.placement),
|
|
862
860
|
popper: t.elements.popper,
|
|
863
861
|
popperRect: t.rects.popper,
|
|
864
862
|
gpuAcceleration: r,
|
|
865
863
|
isFixed: t.options.strategy === "fixed"
|
|
866
864
|
};
|
|
867
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
865
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, St(Object.assign({}, c, {
|
|
868
866
|
offsets: t.modifiersData.popperOffsets,
|
|
869
867
|
position: t.options.strategy,
|
|
870
868
|
adaptive: u,
|
|
871
869
|
roundOffsets: s
|
|
872
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
870
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, St(Object.assign({}, c, {
|
|
873
871
|
offsets: t.modifiersData.arrow,
|
|
874
872
|
position: "absolute",
|
|
875
873
|
adaptive: !1,
|
|
@@ -889,7 +887,7 @@ var He = {
|
|
|
889
887
|
passive: !0
|
|
890
888
|
};
|
|
891
889
|
function oo(e) {
|
|
892
|
-
var t = e.state, n = e.instance, o = e.options, r = o.scroll, i = r === void 0 ? !0 : r, u = o.resize, l = u === void 0 ? !0 : u, s =
|
|
890
|
+
var t = e.state, n = e.instance, o = e.options, r = o.scroll, i = r === void 0 ? !0 : r, u = o.resize, l = u === void 0 ? !0 : u, s = G(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
893
891
|
return i && c.forEach(function(d) {
|
|
894
892
|
d.addEventListener("scroll", n.update, He);
|
|
895
893
|
}), l && s.addEventListener("resize", n.update, He), function() {
|
|
@@ -922,58 +920,58 @@ var ao = {
|
|
|
922
920
|
start: "end",
|
|
923
921
|
end: "start"
|
|
924
922
|
};
|
|
925
|
-
function
|
|
923
|
+
function Ut(e) {
|
|
926
924
|
return e.replace(/start|end/g, function(t) {
|
|
927
925
|
return ao[t];
|
|
928
926
|
});
|
|
929
927
|
}
|
|
930
|
-
function
|
|
931
|
-
var t =
|
|
928
|
+
function dt(e) {
|
|
929
|
+
var t = G(e), n = t.pageXOffset, o = t.pageYOffset;
|
|
932
930
|
return {
|
|
933
931
|
scrollLeft: n,
|
|
934
932
|
scrollTop: o
|
|
935
933
|
};
|
|
936
934
|
}
|
|
937
|
-
function
|
|
938
|
-
return
|
|
935
|
+
function pt(e) {
|
|
936
|
+
return _e(oe(e)).left + dt(e).scrollLeft;
|
|
939
937
|
}
|
|
940
938
|
function so(e, t) {
|
|
941
|
-
var n =
|
|
939
|
+
var n = G(e), o = oe(e), r = n.visualViewport, i = o.clientWidth, u = o.clientHeight, l = 0, s = 0;
|
|
942
940
|
if (r) {
|
|
943
941
|
i = r.width, u = r.height;
|
|
944
|
-
var c =
|
|
942
|
+
var c = Yt();
|
|
945
943
|
(c || !c && t === "fixed") && (l = r.offsetLeft, s = r.offsetTop);
|
|
946
944
|
}
|
|
947
945
|
return {
|
|
948
946
|
width: i,
|
|
949
947
|
height: u,
|
|
950
|
-
x: l +
|
|
948
|
+
x: l + pt(e),
|
|
951
949
|
y: s
|
|
952
950
|
};
|
|
953
951
|
}
|
|
954
952
|
function lo(e) {
|
|
955
|
-
var t, n = oe(e), o =
|
|
956
|
-
return
|
|
953
|
+
var t, n = oe(e), o = dt(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, i = se(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), u = se(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), l = -o.scrollLeft + pt(e), s = -o.scrollTop;
|
|
954
|
+
return J(r || n).direction === "rtl" && (l += se(n.clientWidth, r ? r.clientWidth : 0) - i), {
|
|
957
955
|
width: i,
|
|
958
956
|
height: u,
|
|
959
957
|
x: l,
|
|
960
958
|
y: s
|
|
961
959
|
};
|
|
962
960
|
}
|
|
963
|
-
function
|
|
964
|
-
var t =
|
|
961
|
+
function ft(e) {
|
|
962
|
+
var t = J(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
|
|
965
963
|
return /auto|scroll|overlay|hidden/.test(n + r + o);
|
|
966
964
|
}
|
|
967
965
|
function Jt(e) {
|
|
968
|
-
return ["html", "body", "#document"].indexOf(
|
|
966
|
+
return ["html", "body", "#document"].indexOf(X(e)) >= 0 ? e.ownerDocument.body : $(e) && ft(e) ? e : Jt(Ge(e));
|
|
969
967
|
}
|
|
970
|
-
function
|
|
968
|
+
function Ae(e, t) {
|
|
971
969
|
var n;
|
|
972
970
|
t === void 0 && (t = []);
|
|
973
|
-
var o = Jt(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i =
|
|
971
|
+
var o = Jt(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = G(o), u = r ? [i].concat(i.visualViewport || [], ft(o) ? o : []) : o, l = t.concat(u);
|
|
974
972
|
return r ? l : (
|
|
975
973
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
976
|
-
l.concat(
|
|
974
|
+
l.concat(Ae(Ge(u)))
|
|
977
975
|
);
|
|
978
976
|
}
|
|
979
977
|
function Je(e) {
|
|
@@ -985,27 +983,27 @@ function Je(e) {
|
|
|
985
983
|
});
|
|
986
984
|
}
|
|
987
985
|
function co(e, t) {
|
|
988
|
-
var n =
|
|
986
|
+
var n = _e(e, !1, t === "fixed");
|
|
989
987
|
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;
|
|
990
988
|
}
|
|
991
|
-
function
|
|
989
|
+
function Ct(e, t, n) {
|
|
992
990
|
return t === zt ? Je(so(e, n)) : le(t) ? co(t, n) : Je(lo(oe(e)));
|
|
993
991
|
}
|
|
994
992
|
function uo(e) {
|
|
995
|
-
var t =
|
|
993
|
+
var t = Ae(Ge(e)), n = ["absolute", "fixed"].indexOf(J(e).position) >= 0, o = n && $(e) ? Ue(e) : e;
|
|
996
994
|
return le(o) ? t.filter(function(r) {
|
|
997
|
-
return le(r) && jt(r, o) &&
|
|
995
|
+
return le(r) && jt(r, o) && X(r) !== "body";
|
|
998
996
|
}) : [];
|
|
999
997
|
}
|
|
1000
998
|
function po(e, t, n, o) {
|
|
1001
999
|
var r = t === "clippingParents" ? uo(e) : [].concat(t), i = [].concat(r, [n]), u = i[0], l = i.reduce(function(s, c) {
|
|
1002
|
-
var d =
|
|
1000
|
+
var d = Ct(e, c, o);
|
|
1003
1001
|
return s.top = se(d.top, s.top), s.right = qe(d.right, s.right), s.bottom = qe(d.bottom, s.bottom), s.left = se(d.left, s.left), s;
|
|
1004
|
-
},
|
|
1002
|
+
}, Ct(e, u, o));
|
|
1005
1003
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
1006
1004
|
}
|
|
1007
1005
|
function en(e) {
|
|
1008
|
-
var t = e.reference, n = e.element, o = e.placement, r = o ?
|
|
1006
|
+
var t = e.reference, n = e.element, o = e.placement, r = o ? Z(o) : null, i = o ? he(o) : null, u = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, s;
|
|
1009
1007
|
switch (r) {
|
|
1010
1008
|
case F:
|
|
1011
1009
|
s = {
|
|
@@ -1019,7 +1017,7 @@ function en(e) {
|
|
|
1019
1017
|
y: t.y + t.height
|
|
1020
1018
|
};
|
|
1021
1019
|
break;
|
|
1022
|
-
case
|
|
1020
|
+
case K:
|
|
1023
1021
|
s = {
|
|
1024
1022
|
x: t.x + t.width,
|
|
1025
1023
|
y: l
|
|
@@ -1037,115 +1035,115 @@ function en(e) {
|
|
|
1037
1035
|
y: t.y
|
|
1038
1036
|
};
|
|
1039
1037
|
}
|
|
1040
|
-
var c = r ?
|
|
1038
|
+
var c = r ? ut(r) : null;
|
|
1041
1039
|
if (c != null) {
|
|
1042
1040
|
var d = c === "y" ? "height" : "width";
|
|
1043
1041
|
switch (i) {
|
|
1044
|
-
case
|
|
1042
|
+
case pe:
|
|
1045
1043
|
s[c] = s[c] - (t[d] / 2 - n[d] / 2);
|
|
1046
1044
|
break;
|
|
1047
|
-
case
|
|
1045
|
+
case Le:
|
|
1048
1046
|
s[c] = s[c] + (t[d] / 2 - n[d] / 2);
|
|
1049
1047
|
break;
|
|
1050
1048
|
}
|
|
1051
1049
|
}
|
|
1052
1050
|
return s;
|
|
1053
1051
|
}
|
|
1054
|
-
function
|
|
1052
|
+
function ye(e, t) {
|
|
1055
1053
|
t === void 0 && (t = {});
|
|
1056
|
-
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, i = n.strategy, u = i === void 0 ? e.strategy : i, l = n.boundary, s = l === void 0 ? Sn : l, c = n.rootBoundary, d = c === void 0 ? zt : c,
|
|
1057
|
-
reference:
|
|
1054
|
+
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, i = n.strategy, u = i === void 0 ? e.strategy : i, l = n.boundary, s = l === void 0 ? Sn : l, c = n.rootBoundary, d = c === void 0 ? zt : c, _ = n.elementContext, f = _ === void 0 ? be : _, h = n.altBoundary, E = h === void 0 ? !1 : h, v = n.padding, m = v === void 0 ? 0 : v, I = Xt(typeof m != "number" ? m : Qt(m, Se)), g = f === be ? Un : be, O = e.rects.popper, b = e.elements[E ? g : f], M = po(le(b) ? b : b.contextElement || oe(e.elements.popper), s, d, u), A = _e(e.elements.reference), w = en({
|
|
1055
|
+
reference: A,
|
|
1058
1056
|
element: O,
|
|
1059
1057
|
strategy: "absolute",
|
|
1060
1058
|
placement: r
|
|
1061
|
-
}),
|
|
1062
|
-
top:
|
|
1063
|
-
bottom:
|
|
1064
|
-
left:
|
|
1065
|
-
right:
|
|
1066
|
-
},
|
|
1067
|
-
if (f ===
|
|
1068
|
-
var
|
|
1069
|
-
Object.keys(
|
|
1070
|
-
var
|
|
1071
|
-
|
|
1059
|
+
}), N = Je(Object.assign({}, O, w)), U = f === be ? N : A, S = {
|
|
1060
|
+
top: M.top - U.top + I.top,
|
|
1061
|
+
bottom: U.bottom - M.bottom + I.bottom,
|
|
1062
|
+
left: M.left - U.left + I.left,
|
|
1063
|
+
right: U.right - M.right + I.right
|
|
1064
|
+
}, R = e.modifiersData.offset;
|
|
1065
|
+
if (f === be && R) {
|
|
1066
|
+
var W = R[r];
|
|
1067
|
+
Object.keys(S).forEach(function(B) {
|
|
1068
|
+
var H = [K, z].indexOf(B) >= 0 ? 1 : -1, ee = [F, z].indexOf(B) >= 0 ? "y" : "x";
|
|
1069
|
+
S[B] += W[ee] * H;
|
|
1072
1070
|
});
|
|
1073
1071
|
}
|
|
1074
|
-
return
|
|
1072
|
+
return S;
|
|
1075
1073
|
}
|
|
1076
1074
|
function fo(e, t) {
|
|
1077
1075
|
t === void 0 && (t = {});
|
|
1078
|
-
var n = t, o = n.placement, r = n.boundary, i = n.rootBoundary, u = n.padding, l = n.flipVariations, s = n.allowedAutoPlacements, c = s === void 0 ?
|
|
1079
|
-
return
|
|
1080
|
-
}) :
|
|
1081
|
-
return c.indexOf(
|
|
1076
|
+
var n = t, o = n.placement, r = n.boundary, i = n.rootBoundary, u = n.padding, l = n.flipVariations, s = n.allowedAutoPlacements, c = s === void 0 ? Kt : s, d = he(o), _ = d ? l ? Pt : Pt.filter(function(E) {
|
|
1077
|
+
return he(E) === d;
|
|
1078
|
+
}) : Se, f = _.filter(function(E) {
|
|
1079
|
+
return c.indexOf(E) >= 0;
|
|
1082
1080
|
});
|
|
1083
|
-
f.length === 0 && (f =
|
|
1084
|
-
var h = f.reduce(function(
|
|
1085
|
-
return
|
|
1086
|
-
placement:
|
|
1081
|
+
f.length === 0 && (f = _);
|
|
1082
|
+
var h = f.reduce(function(E, v) {
|
|
1083
|
+
return E[v] = ye(e, {
|
|
1084
|
+
placement: v,
|
|
1087
1085
|
boundary: r,
|
|
1088
1086
|
rootBoundary: i,
|
|
1089
1087
|
padding: u
|
|
1090
|
-
})[
|
|
1088
|
+
})[Z(v)], E;
|
|
1091
1089
|
}, {});
|
|
1092
|
-
return Object.keys(h).sort(function(
|
|
1093
|
-
return h[
|
|
1090
|
+
return Object.keys(h).sort(function(E, v) {
|
|
1091
|
+
return h[E] - h[v];
|
|
1094
1092
|
});
|
|
1095
1093
|
}
|
|
1096
1094
|
function _o(e) {
|
|
1097
|
-
if (
|
|
1095
|
+
if (Z(e) === st)
|
|
1098
1096
|
return [];
|
|
1099
1097
|
var t = We(e);
|
|
1100
|
-
return [
|
|
1098
|
+
return [Ut(e), t, Ut(t)];
|
|
1101
1099
|
}
|
|
1102
1100
|
function ho(e) {
|
|
1103
1101
|
var t = e.state, n = e.options, o = e.name;
|
|
1104
1102
|
if (!t.modifiersData[o]._skip) {
|
|
1105
|
-
for (var r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis, l = u === void 0 ? !0 : u, s = n.fallbackPlacements, c = n.padding, d = n.boundary,
|
|
1106
|
-
return
|
|
1103
|
+
for (var r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis, l = u === void 0 ? !0 : u, s = n.fallbackPlacements, c = n.padding, d = n.boundary, _ = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, E = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, m = t.options.placement, I = Z(m), g = I === m, O = s || (g || !E ? [We(m)] : _o(m)), b = [m].concat(O).reduce(function(ue, te) {
|
|
1104
|
+
return ue.concat(Z(te) === st ? fo(t, {
|
|
1107
1105
|
placement: te,
|
|
1108
1106
|
boundary: d,
|
|
1109
|
-
rootBoundary:
|
|
1107
|
+
rootBoundary: _,
|
|
1110
1108
|
padding: c,
|
|
1111
|
-
flipVariations:
|
|
1112
|
-
allowedAutoPlacements:
|
|
1109
|
+
flipVariations: E,
|
|
1110
|
+
allowedAutoPlacements: v
|
|
1113
1111
|
}) : te);
|
|
1114
|
-
}, []),
|
|
1115
|
-
var
|
|
1116
|
-
placement:
|
|
1112
|
+
}, []), M = t.rects.reference, A = t.rects.popper, w = /* @__PURE__ */ new Map(), N = !0, U = b[0], S = 0; S < b.length; S++) {
|
|
1113
|
+
var R = b[S], W = Z(R), B = he(R) === pe, H = [F, z].indexOf(W) >= 0, ee = H ? "width" : "height", k = ye(t, {
|
|
1114
|
+
placement: R,
|
|
1117
1115
|
boundary: d,
|
|
1118
|
-
rootBoundary:
|
|
1116
|
+
rootBoundary: _,
|
|
1119
1117
|
altBoundary: f,
|
|
1120
1118
|
padding: c
|
|
1121
|
-
}),
|
|
1122
|
-
|
|
1123
|
-
var
|
|
1124
|
-
if (i && re.push(
|
|
1125
|
-
return
|
|
1119
|
+
}), C = H ? B ? K : q : B ? z : F;
|
|
1120
|
+
M[ee] > A[ee] && (C = We(C));
|
|
1121
|
+
var ce = We(C), re = [];
|
|
1122
|
+
if (i && re.push(k[W] <= 0), l && re.push(k[C] <= 0, k[ce] <= 0), re.every(function(ue) {
|
|
1123
|
+
return ue;
|
|
1126
1124
|
})) {
|
|
1127
|
-
|
|
1125
|
+
U = R, N = !1;
|
|
1128
1126
|
break;
|
|
1129
1127
|
}
|
|
1130
|
-
|
|
1128
|
+
w.set(R, re);
|
|
1131
1129
|
}
|
|
1132
|
-
if (
|
|
1133
|
-
for (var Ce =
|
|
1134
|
-
var
|
|
1135
|
-
var ie =
|
|
1130
|
+
if (N)
|
|
1131
|
+
for (var Ce = E ? 3 : 1, $e = function(te) {
|
|
1132
|
+
var ve = b.find(function(De) {
|
|
1133
|
+
var ie = w.get(De);
|
|
1136
1134
|
if (ie)
|
|
1137
1135
|
return ie.slice(0, te).every(function(ze) {
|
|
1138
1136
|
return ze;
|
|
1139
1137
|
});
|
|
1140
1138
|
});
|
|
1141
|
-
if (
|
|
1142
|
-
return
|
|
1143
|
-
},
|
|
1144
|
-
var Re =
|
|
1139
|
+
if (ve)
|
|
1140
|
+
return U = ve, "break";
|
|
1141
|
+
}, Ee = Ce; Ee > 0; Ee--) {
|
|
1142
|
+
var Re = $e(Ee);
|
|
1145
1143
|
if (Re === "break")
|
|
1146
1144
|
break;
|
|
1147
1145
|
}
|
|
1148
|
-
t.placement !==
|
|
1146
|
+
t.placement !== U && (t.modifiersData[o]._skip = !0, t.placement = U, t.reset = !0);
|
|
1149
1147
|
}
|
|
1150
1148
|
}
|
|
1151
1149
|
const mo = {
|
|
@@ -1158,7 +1156,7 @@ const mo = {
|
|
|
1158
1156
|
_skip: !1
|
|
1159
1157
|
}
|
|
1160
1158
|
};
|
|
1161
|
-
function
|
|
1159
|
+
function Rt(e, t, n) {
|
|
1162
1160
|
return n === void 0 && (n = {
|
|
1163
1161
|
x: 0,
|
|
1164
1162
|
y: 0
|
|
@@ -1169,25 +1167,25 @@ function Ct(e, t, n) {
|
|
|
1169
1167
|
left: e.left - t.width - n.x
|
|
1170
1168
|
};
|
|
1171
1169
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return [F,
|
|
1170
|
+
function Dt(e) {
|
|
1171
|
+
return [F, K, z, q].some(function(t) {
|
|
1174
1172
|
return e[t] >= 0;
|
|
1175
1173
|
});
|
|
1176
1174
|
}
|
|
1177
1175
|
function Eo(e) {
|
|
1178
|
-
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, u =
|
|
1176
|
+
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, u = ye(t, {
|
|
1179
1177
|
elementContext: "reference"
|
|
1180
|
-
}), l =
|
|
1178
|
+
}), l = ye(t, {
|
|
1181
1179
|
altBoundary: !0
|
|
1182
|
-
}), s =
|
|
1180
|
+
}), s = Rt(u, o), c = Rt(l, r, i), d = Dt(s), _ = Dt(c);
|
|
1183
1181
|
t.modifiersData[n] = {
|
|
1184
1182
|
referenceClippingOffsets: s,
|
|
1185
1183
|
popperEscapeOffsets: c,
|
|
1186
1184
|
isReferenceHidden: d,
|
|
1187
|
-
hasPopperEscaped:
|
|
1185
|
+
hasPopperEscaped: _
|
|
1188
1186
|
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
1189
1187
|
"data-popper-reference-hidden": d,
|
|
1190
|
-
"data-popper-escaped":
|
|
1188
|
+
"data-popper-escaped": _
|
|
1191
1189
|
});
|
|
1192
1190
|
}
|
|
1193
1191
|
const vo = {
|
|
@@ -1198,10 +1196,10 @@ const vo = {
|
|
|
1198
1196
|
fn: Eo
|
|
1199
1197
|
};
|
|
1200
1198
|
function bo(e, t, n) {
|
|
1201
|
-
var o =
|
|
1199
|
+
var o = Z(e), r = [q, F].indexOf(o) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
|
|
1202
1200
|
placement: e
|
|
1203
1201
|
})) : n, u = i[0], l = i[1];
|
|
1204
|
-
return u = u || 0, l = (l || 0) * r, [q,
|
|
1202
|
+
return u = u || 0, l = (l || 0) * r, [q, K].indexOf(o) >= 0 ? {
|
|
1205
1203
|
x: l,
|
|
1206
1204
|
y: u
|
|
1207
1205
|
} : {
|
|
@@ -1210,8 +1208,8 @@ function bo(e, t, n) {
|
|
|
1210
1208
|
};
|
|
1211
1209
|
}
|
|
1212
1210
|
function Io(e) {
|
|
1213
|
-
var t = e.state, n = e.options, o = e.name, r = n.offset, i = r === void 0 ? [0, 0] : r, u =
|
|
1214
|
-
return d[
|
|
1211
|
+
var t = e.state, n = e.options, o = e.name, r = n.offset, i = r === void 0 ? [0, 0] : r, u = Kt.reduce(function(d, _) {
|
|
1212
|
+
return d[_] = bo(_, t.rects, i), d;
|
|
1215
1213
|
}, {}), l = u[t.placement], s = l.x, c = l.y;
|
|
1216
1214
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += c), t.modifiersData[o] = u;
|
|
1217
1215
|
}
|
|
@@ -1242,36 +1240,36 @@ function Ao(e) {
|
|
|
1242
1240
|
return e === "x" ? "y" : "x";
|
|
1243
1241
|
}
|
|
1244
1242
|
function Oo(e) {
|
|
1245
|
-
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis, l = u === void 0 ? !1 : u, s = n.boundary, c = n.rootBoundary, d = n.altBoundary,
|
|
1243
|
+
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis, l = u === void 0 ? !1 : u, s = n.boundary, c = n.rootBoundary, d = n.altBoundary, _ = n.padding, f = n.tether, h = f === void 0 ? !0 : f, E = n.tetherOffset, v = E === void 0 ? 0 : E, m = ye(t, {
|
|
1246
1244
|
boundary: s,
|
|
1247
1245
|
rootBoundary: c,
|
|
1248
|
-
padding:
|
|
1246
|
+
padding: _,
|
|
1249
1247
|
altBoundary: d
|
|
1250
|
-
}),
|
|
1248
|
+
}), I = Z(t.placement), g = he(t.placement), O = !g, b = ut(I), M = Ao(b), A = t.modifiersData.popperOffsets, w = t.rects.reference, N = t.rects.popper, U = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
|
1251
1249
|
placement: t.placement
|
|
1252
|
-
})) :
|
|
1253
|
-
mainAxis:
|
|
1254
|
-
altAxis:
|
|
1250
|
+
})) : v, S = typeof U == "number" ? {
|
|
1251
|
+
mainAxis: U,
|
|
1252
|
+
altAxis: U
|
|
1255
1253
|
} : Object.assign({
|
|
1256
1254
|
mainAxis: 0,
|
|
1257
1255
|
altAxis: 0
|
|
1258
|
-
},
|
|
1256
|
+
}, U), R = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, W = {
|
|
1259
1257
|
x: 0,
|
|
1260
1258
|
y: 0
|
|
1261
1259
|
};
|
|
1262
|
-
if (
|
|
1260
|
+
if (A) {
|
|
1263
1261
|
if (i) {
|
|
1264
|
-
var
|
|
1262
|
+
var B, H = b === "y" ? F : q, ee = b === "y" ? z : K, k = b === "y" ? "height" : "width", C = A[b], ce = C + m[H], re = C - m[ee], Ce = h ? -N[k] / 2 : 0, $e = g === pe ? w[k] : N[k], Ee = g === pe ? -N[k] : -w[k], Re = t.elements.arrow, ue = h && Re ? ct(Re) : {
|
|
1265
1263
|
width: 0,
|
|
1266
1264
|
height: 0
|
|
1267
|
-
}, te = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Zt(),
|
|
1268
|
-
|
|
1265
|
+
}, te = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Zt(), ve = te[H], De = te[ee], ie = Me(0, w[k], ue[k]), ze = O ? w[k] / 2 - Ce - ie - ve - S.mainAxis : $e - ie - ve - S.mainAxis, fn = O ? -w[k] / 2 + Ce + ie + De + S.mainAxis : Ee + ie + De + S.mainAxis, Ke = t.elements.arrow && Ue(t.elements.arrow), _n = Ke ? b === "y" ? Ke.clientTop || 0 : Ke.clientLeft || 0 : 0, vt = (B = R == null ? void 0 : R[b]) != null ? B : 0, hn = C + ze - vt - _n, mn = C + fn - vt, bt = Me(h ? qe(ce, hn) : ce, C, h ? se(re, mn) : re);
|
|
1266
|
+
A[b] = bt, W[b] = bt - C;
|
|
1269
1267
|
}
|
|
1270
1268
|
if (l) {
|
|
1271
|
-
var
|
|
1272
|
-
M
|
|
1269
|
+
var It, En = b === "x" ? F : q, vn = b === "x" ? z : K, ae = A[M], Be = M === "y" ? "height" : "width", Tt = ae + m[En], gt = ae - m[vn], Ye = [F, q].indexOf(I) !== -1, Mt = (It = R == null ? void 0 : R[M]) != null ? It : 0, At = Ye ? Tt : ae - w[Be] - N[Be] - Mt + S.altAxis, Ot = Ye ? ae + w[Be] + N[Be] - Mt - S.altAxis : gt, wt = h && Ye ? Yn(At, ae, Ot) : Me(h ? At : Tt, ae, h ? Ot : gt);
|
|
1270
|
+
A[M] = wt, W[M] = wt - ae;
|
|
1273
1271
|
}
|
|
1274
|
-
t.modifiersData[o] =
|
|
1272
|
+
t.modifiersData[o] = W;
|
|
1275
1273
|
}
|
|
1276
1274
|
}
|
|
1277
1275
|
const wo = {
|
|
@@ -1288,23 +1286,23 @@ function Lo(e) {
|
|
|
1288
1286
|
};
|
|
1289
1287
|
}
|
|
1290
1288
|
function yo(e) {
|
|
1291
|
-
return e ===
|
|
1289
|
+
return e === G(e) || !$(e) ? dt(e) : Lo(e);
|
|
1292
1290
|
}
|
|
1293
1291
|
function Po(e) {
|
|
1294
|
-
var t = e.getBoundingClientRect(), n =
|
|
1292
|
+
var t = e.getBoundingClientRect(), n = fe(t.width) / e.offsetWidth || 1, o = fe(t.height) / e.offsetHeight || 1;
|
|
1295
1293
|
return n !== 1 || o !== 1;
|
|
1296
1294
|
}
|
|
1297
1295
|
function No(e, t, n) {
|
|
1298
1296
|
n === void 0 && (n = !1);
|
|
1299
|
-
var o =
|
|
1297
|
+
var o = $(t), r = $(t) && Po(t), i = oe(t), u = _e(e, r, n), l = {
|
|
1300
1298
|
scrollLeft: 0,
|
|
1301
1299
|
scrollTop: 0
|
|
1302
1300
|
}, s = {
|
|
1303
1301
|
x: 0,
|
|
1304
1302
|
y: 0
|
|
1305
1303
|
};
|
|
1306
|
-
return (o || !o && !n) && ((
|
|
1307
|
-
|
|
1304
|
+
return (o || !o && !n) && ((X(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1305
|
+
ft(i)) && (l = yo(t)), $(t) ? (s = _e(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = pt(i))), {
|
|
1308
1306
|
x: u.left + l.scrollLeft - s.x,
|
|
1309
1307
|
y: u.top + l.scrollTop - s.y,
|
|
1310
1308
|
width: u.width,
|
|
@@ -1360,12 +1358,12 @@ function Ro(e) {
|
|
|
1360
1358
|
return t[n];
|
|
1361
1359
|
});
|
|
1362
1360
|
}
|
|
1363
|
-
var
|
|
1361
|
+
var Bt = {
|
|
1364
1362
|
placement: "bottom",
|
|
1365
1363
|
modifiers: [],
|
|
1366
1364
|
strategy: "absolute"
|
|
1367
1365
|
};
|
|
1368
|
-
function
|
|
1366
|
+
function Ht() {
|
|
1369
1367
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1370
1368
|
t[n] = arguments[n];
|
|
1371
1369
|
return !t.some(function(o) {
|
|
@@ -1374,13 +1372,13 @@ function Bt() {
|
|
|
1374
1372
|
}
|
|
1375
1373
|
function Do(e) {
|
|
1376
1374
|
e === void 0 && (e = {});
|
|
1377
|
-
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ?
|
|
1375
|
+
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ? Bt : r;
|
|
1378
1376
|
return function(l, s, c) {
|
|
1379
1377
|
c === void 0 && (c = i);
|
|
1380
1378
|
var d = {
|
|
1381
1379
|
placement: "bottom",
|
|
1382
1380
|
orderedModifiers: [],
|
|
1383
|
-
options: Object.assign({},
|
|
1381
|
+
options: Object.assign({}, Bt, i),
|
|
1384
1382
|
modifiersData: {},
|
|
1385
1383
|
elements: {
|
|
1386
1384
|
reference: l,
|
|
@@ -1388,18 +1386,18 @@ function Do(e) {
|
|
|
1388
1386
|
},
|
|
1389
1387
|
attributes: {},
|
|
1390
1388
|
styles: {}
|
|
1391
|
-
},
|
|
1389
|
+
}, _ = [], f = !1, h = {
|
|
1392
1390
|
state: d,
|
|
1393
|
-
setOptions: function(
|
|
1394
|
-
var g = typeof
|
|
1395
|
-
|
|
1396
|
-
reference: le(l) ?
|
|
1397
|
-
popper:
|
|
1391
|
+
setOptions: function(I) {
|
|
1392
|
+
var g = typeof I == "function" ? I(d.options) : I;
|
|
1393
|
+
v(), d.options = Object.assign({}, i, d.options, g), d.scrollParents = {
|
|
1394
|
+
reference: le(l) ? Ae(l) : l.contextElement ? Ae(l.contextElement) : [],
|
|
1395
|
+
popper: Ae(s)
|
|
1398
1396
|
};
|
|
1399
1397
|
var O = Uo(Ro([].concat(o, d.options.modifiers)));
|
|
1400
1398
|
return d.orderedModifiers = O.filter(function(b) {
|
|
1401
1399
|
return b.enabled;
|
|
1402
|
-
}),
|
|
1400
|
+
}), E(), h.update();
|
|
1403
1401
|
},
|
|
1404
1402
|
// Sync update – it will always be executed, even if not necessary. This
|
|
1405
1403
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -1408,24 +1406,24 @@ function Do(e) {
|
|
|
1408
1406
|
// prefer the async Popper#update method
|
|
1409
1407
|
forceUpdate: function() {
|
|
1410
1408
|
if (!f) {
|
|
1411
|
-
var
|
|
1412
|
-
if (
|
|
1409
|
+
var I = d.elements, g = I.reference, O = I.popper;
|
|
1410
|
+
if (Ht(g, O)) {
|
|
1413
1411
|
d.rects = {
|
|
1414
|
-
reference: No(g,
|
|
1415
|
-
popper:
|
|
1416
|
-
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(
|
|
1417
|
-
return d.modifiersData[
|
|
1412
|
+
reference: No(g, Ue(O), d.options.strategy === "fixed"),
|
|
1413
|
+
popper: ct(O)
|
|
1414
|
+
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(S) {
|
|
1415
|
+
return d.modifiersData[S.name] = Object.assign({}, S.data);
|
|
1418
1416
|
});
|
|
1419
1417
|
for (var b = 0; b < d.orderedModifiers.length; b++) {
|
|
1420
1418
|
if (d.reset === !0) {
|
|
1421
1419
|
d.reset = !1, b = -1;
|
|
1422
1420
|
continue;
|
|
1423
1421
|
}
|
|
1424
|
-
var
|
|
1425
|
-
typeof
|
|
1422
|
+
var M = d.orderedModifiers[b], A = M.fn, w = M.options, N = w === void 0 ? {} : w, U = M.name;
|
|
1423
|
+
typeof A == "function" && (d = A({
|
|
1426
1424
|
state: d,
|
|
1427
|
-
options:
|
|
1428
|
-
name:
|
|
1425
|
+
options: N,
|
|
1426
|
+
name: U,
|
|
1429
1427
|
instance: h
|
|
1430
1428
|
}) || d);
|
|
1431
1429
|
}
|
|
@@ -1435,50 +1433,50 @@ function Do(e) {
|
|
|
1435
1433
|
// Async and optimistically optimized update – it will not be executed if
|
|
1436
1434
|
// not necessary (debounced to run at most once-per-tick)
|
|
1437
1435
|
update: Co(function() {
|
|
1438
|
-
return new Promise(function(
|
|
1439
|
-
h.forceUpdate(),
|
|
1436
|
+
return new Promise(function(m) {
|
|
1437
|
+
h.forceUpdate(), m(d);
|
|
1440
1438
|
});
|
|
1441
1439
|
}),
|
|
1442
1440
|
destroy: function() {
|
|
1443
|
-
|
|
1441
|
+
v(), f = !0;
|
|
1444
1442
|
}
|
|
1445
1443
|
};
|
|
1446
|
-
if (!
|
|
1444
|
+
if (!Ht(l, s))
|
|
1447
1445
|
return h;
|
|
1448
|
-
h.setOptions(c).then(function(
|
|
1449
|
-
!f && c.onFirstUpdate && c.onFirstUpdate(
|
|
1446
|
+
h.setOptions(c).then(function(m) {
|
|
1447
|
+
!f && c.onFirstUpdate && c.onFirstUpdate(m);
|
|
1450
1448
|
});
|
|
1451
|
-
function
|
|
1452
|
-
d.orderedModifiers.forEach(function(
|
|
1453
|
-
var
|
|
1449
|
+
function E() {
|
|
1450
|
+
d.orderedModifiers.forEach(function(m) {
|
|
1451
|
+
var I = m.name, g = m.options, O = g === void 0 ? {} : g, b = m.effect;
|
|
1454
1452
|
if (typeof b == "function") {
|
|
1455
|
-
var
|
|
1453
|
+
var M = b({
|
|
1456
1454
|
state: d,
|
|
1457
|
-
name:
|
|
1455
|
+
name: I,
|
|
1458
1456
|
instance: h,
|
|
1459
1457
|
options: O
|
|
1460
|
-
}),
|
|
1458
|
+
}), A = function() {
|
|
1461
1459
|
};
|
|
1462
|
-
|
|
1460
|
+
_.push(M || A);
|
|
1463
1461
|
}
|
|
1464
1462
|
});
|
|
1465
1463
|
}
|
|
1466
|
-
function
|
|
1467
|
-
|
|
1468
|
-
return
|
|
1469
|
-
}),
|
|
1464
|
+
function v() {
|
|
1465
|
+
_.forEach(function(m) {
|
|
1466
|
+
return m();
|
|
1467
|
+
}), _ = [];
|
|
1470
1468
|
}
|
|
1471
1469
|
return h;
|
|
1472
1470
|
};
|
|
1473
1471
|
}
|
|
1474
|
-
var Bo = [ro, Mo, no,
|
|
1472
|
+
var Bo = [ro, Mo, no, $n, To, mo, wo, Qn, vo], tn = /* @__PURE__ */ Do({
|
|
1475
1473
|
defaultModifiers: Bo
|
|
1476
1474
|
});
|
|
1477
1475
|
function et(e, t, n, o) {
|
|
1478
1476
|
t ? (e.classList.remove(o), e.classList.add(n)) : (e.classList.add(o), e.classList.remove(n));
|
|
1479
1477
|
}
|
|
1480
1478
|
let V;
|
|
1481
|
-
const
|
|
1479
|
+
const Ie = {}, tt = {
|
|
1482
1480
|
SHIFT: "shift-key"
|
|
1483
1481
|
};
|
|
1484
1482
|
function nn() {
|
|
@@ -1507,15 +1505,15 @@ function Ho() {
|
|
|
1507
1505
|
}
|
|
1508
1506
|
}, V.globalOnClick = nt, document.addEventListener("click", V.globalOnClick), V.globalOnKeyup = /** @param {KeyboardEvent} e */
|
|
1509
1507
|
(e) => {
|
|
1510
|
-
e.key === "Escape" && nt(), e.shiftKey || (
|
|
1508
|
+
e.key === "Escape" && nt(), e.shiftKey || (Ie[tt.SHIFT] = !1), Ie[e.key] = !1;
|
|
1511
1509
|
}, document.addEventListener("keyup", V.globalOnKeyup), V.globalOnKeydown = (e) => {
|
|
1512
|
-
e.shiftKey && (
|
|
1510
|
+
e.shiftKey && (Ie[tt.SHIFT] = !0), Ie[e.key] = !0;
|
|
1513
1511
|
}, document.addEventListener("keydown", V.globalOnKeydown);
|
|
1514
1512
|
}
|
|
1515
1513
|
function xo() {
|
|
1516
1514
|
return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
1517
1515
|
}
|
|
1518
|
-
function
|
|
1516
|
+
function Pe(e, t, n, o, r) {
|
|
1519
1517
|
let i = NaN, u = NaN;
|
|
1520
1518
|
const l = 300, s = 150, c = 50;
|
|
1521
1519
|
t.setAttribute("aria-expanded", "false"), t.setAttribute("aria-haspopup", o);
|
|
@@ -1523,7 +1521,7 @@ function ye(e, t, n, o, r) {
|
|
|
1523
1521
|
clearTimeout(i), clearTimeout(u), (!(r != null && r.isPerformPopup) || r != null && r.isPerformPopup && r.isPerformPopup()) && (i = window.setTimeout(
|
|
1524
1522
|
() => {
|
|
1525
1523
|
tn(t, n, {
|
|
1526
|
-
placement: (r == null ? void 0 : r.popupPlacement) ||
|
|
1524
|
+
placement: (r == null ? void 0 : r.popupPlacement) || at.BOTTOM,
|
|
1527
1525
|
modifiers: [
|
|
1528
1526
|
{
|
|
1529
1527
|
name: "offset",
|
|
@@ -1535,7 +1533,7 @@ function ye(e, t, n, o, r) {
|
|
|
1535
1533
|
f
|
|
1536
1534
|
));
|
|
1537
1535
|
}
|
|
1538
|
-
function
|
|
1536
|
+
function _(f) {
|
|
1539
1537
|
clearTimeout(i), clearTimeout(u), (!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (u = window.setTimeout(
|
|
1540
1538
|
() => {
|
|
1541
1539
|
et(n, !1, a.POPUP__VISIBLE, a.POPUP__HIDDEN), t.setAttribute("aria-expanded", "false");
|
|
@@ -1543,15 +1541,15 @@ function ye(e, t, n, o, r) {
|
|
|
1543
1541
|
f
|
|
1544
1542
|
));
|
|
1545
1543
|
}
|
|
1546
|
-
if (r != null && r.preventOnClickHandling ? (
|
|
1544
|
+
if (r != null && r.preventOnClickHandling ? (Q(!!e.onclick, "popupFocusHandler: wrapper already has an onclick"), e.onclick = (f) => {
|
|
1547
1545
|
f.preventDefault(), f.stopPropagation();
|
|
1548
|
-
}) : (e.addEventListener("focusin", () => d(s)), e.addEventListener("focusout", () =>
|
|
1546
|
+
}) : (e.addEventListener("focusin", () => d(s)), e.addEventListener("focusout", () => _(s))), r != null && r.shouldFocusOnHover && (e.addEventListener("mouseenter", () => d(l)), e.addEventListener("mouseleave", () => _(l))), !(r != null && r.preventOnClickHandling)) {
|
|
1549
1547
|
if (t.onclick)
|
|
1550
1548
|
throw new Error("popupFocusHandler: button already has onclick");
|
|
1551
1549
|
t.onclick = (f) => {
|
|
1552
|
-
var
|
|
1550
|
+
var E;
|
|
1553
1551
|
const h = t.getAttribute("aria-expanded") === "true";
|
|
1554
|
-
(!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (f.stopPropagation(), f.preventDefault(), h && t.getAttribute("aria-expanded") === "true" ? (
|
|
1552
|
+
(!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (f.stopPropagation(), f.preventDefault(), h && t.getAttribute("aria-expanded") === "true" ? (_(c), (E = document.activeElement) == null || E.blur()) : (xo() && nt(), d(c))), r != null && r.onClick && r.onClick(f);
|
|
1555
1553
|
};
|
|
1556
1554
|
}
|
|
1557
1555
|
}
|
|
@@ -1561,13 +1559,13 @@ const Wo = `<div class="popup__wrapper popup__wrapper--hidden">
|
|
|
1561
1559
|
</div>
|
|
1562
1560
|
</div>
|
|
1563
1561
|
`;
|
|
1564
|
-
function
|
|
1562
|
+
function _t(e, t) {
|
|
1565
1563
|
const n = e.getAttribute("id");
|
|
1566
1564
|
if (!n)
|
|
1567
1565
|
throw new Error("renderPopup: labelledByElement does not have an `id` attribute");
|
|
1568
|
-
const o =
|
|
1566
|
+
const o = D();
|
|
1569
1567
|
e.setAttribute("aria-controls", o);
|
|
1570
|
-
const r =
|
|
1568
|
+
const r = T(Wo);
|
|
1571
1569
|
if (r.setAttribute("id", o), r.setAttribute("aria-labelledby", n), t != null && t.removePopupArrow) {
|
|
1572
1570
|
const i = r.querySelector(p(a.POPUP_ARROW));
|
|
1573
1571
|
if (!i)
|
|
@@ -1596,13 +1594,13 @@ function ko(e) {
|
|
|
1596
1594
|
t.preventDefault(), t.stopPropagation(), on(e);
|
|
1597
1595
|
};
|
|
1598
1596
|
}
|
|
1599
|
-
function
|
|
1600
|
-
const e =
|
|
1597
|
+
function xt() {
|
|
1598
|
+
const e = T(yn);
|
|
1601
1599
|
return e.classList.add(a.IS_CLOSED), e;
|
|
1602
1600
|
}
|
|
1603
1601
|
function Fo(e, t, n) {
|
|
1604
|
-
var
|
|
1605
|
-
const o =
|
|
1602
|
+
var h, E, v;
|
|
1603
|
+
const o = T(Nn), r = o.querySelector(p(a.POPUP_MENU__TITLE));
|
|
1606
1604
|
if (!r)
|
|
1607
1605
|
throw new Error("renderPopupMenuItem: menuItemTitleWrapper not found");
|
|
1608
1606
|
const i = (
|
|
@@ -1632,22 +1630,22 @@ function Fo(e, t, n) {
|
|
|
1632
1630
|
const d = o.querySelector(`a ${p(a.POPUP_MENU__LINK_TEXT)}`);
|
|
1633
1631
|
if (!d)
|
|
1634
1632
|
throw new Error("renderPopupMenuItem: titleSpanLink not found");
|
|
1635
|
-
const
|
|
1636
|
-
if (
|
|
1633
|
+
const _ = t.actionMenu && [...t.actionMenu];
|
|
1634
|
+
if (_ && (t.actionFunction || t.actionUrl || t.actionFunctionUrl) && _.unshift({
|
|
1637
1635
|
actionFunction: t.actionFunction,
|
|
1638
1636
|
actionFunctionUrl: t.actionFunctionUrl,
|
|
1639
1637
|
actionUrl: t.actionUrl,
|
|
1640
1638
|
className: t.className,
|
|
1641
1639
|
icon: t.icon,
|
|
1642
1640
|
title: `${t.title} (page)`
|
|
1643
|
-
}),
|
|
1644
|
-
let
|
|
1641
|
+
}), _) {
|
|
1642
|
+
let m;
|
|
1645
1643
|
switch (n.childrenMenuType) {
|
|
1646
|
-
case
|
|
1647
|
-
|
|
1648
|
-
const
|
|
1644
|
+
case Y.FLYOUT: {
|
|
1645
|
+
m = xt(), i.appendChild(m), i.setAttribute("id", D());
|
|
1646
|
+
const I = ht(
|
|
1649
1647
|
{
|
|
1650
|
-
menuItems:
|
|
1648
|
+
menuItems: _,
|
|
1651
1649
|
title: t.title
|
|
1652
1650
|
},
|
|
1653
1651
|
i,
|
|
@@ -1656,40 +1654,40 @@ function Fo(e, t, n) {
|
|
|
1656
1654
|
removePopupArrow: !0
|
|
1657
1655
|
}
|
|
1658
1656
|
);
|
|
1659
|
-
o.appendChild(
|
|
1657
|
+
o.appendChild(I), Pe(
|
|
1660
1658
|
o,
|
|
1661
1659
|
i,
|
|
1662
|
-
|
|
1660
|
+
I,
|
|
1663
1661
|
"menu",
|
|
1664
1662
|
{
|
|
1665
|
-
popupPlacement:
|
|
1663
|
+
popupPlacement: at.RIGHT_START,
|
|
1666
1664
|
preventOnClickHandling: !0,
|
|
1667
1665
|
shouldFocusOnHover: !0
|
|
1668
1666
|
}
|
|
1669
1667
|
), u.remove(), l.remove();
|
|
1670
1668
|
break;
|
|
1671
1669
|
}
|
|
1672
|
-
case
|
|
1673
|
-
const
|
|
1674
|
-
|
|
1670
|
+
case Y.INLINE: {
|
|
1671
|
+
const I = me(
|
|
1672
|
+
_,
|
|
1675
1673
|
n
|
|
1676
|
-
),
|
|
1677
|
-
|
|
1678
|
-
var
|
|
1679
|
-
for (let
|
|
1674
|
+
), g = D();
|
|
1675
|
+
I.setAttribute("id", g), I.classList.add(a.VISUALLY_HIDDEN), o.appendChild(I), i.onclick = ko(i), i.setAttribute("aria-expanded", "false"), i.setAttribute("aria-controls", g), m = xt(), i.appendChild(m), u.remove(), l.remove(), o.addEventListener("focusin", (O) => {
|
|
1676
|
+
var b, M, A, w;
|
|
1677
|
+
for (let N = (
|
|
1680
1678
|
/** @type Element | null | undefined */
|
|
1681
|
-
(
|
|
1682
|
-
);
|
|
1683
|
-
|
|
1679
|
+
(b = O.target) == null ? void 0 : b.closest("ul")
|
|
1680
|
+
); N; N = (M = N.parentElement) == null ? void 0 : M.closest("ul"))
|
|
1681
|
+
N.classList.remove(a.VISUALLY_HIDDEN), i.setAttribute("aria-expanded", "true"), O.target !== i && ((A = m == null ? void 0 : m.classList) == null || A.remove(a.IS_CLOSED), (w = m == null ? void 0 : m.classList) == null || w.add(a.IS_OPEN));
|
|
1684
1682
|
});
|
|
1685
1683
|
break;
|
|
1686
1684
|
}
|
|
1687
|
-
case
|
|
1688
|
-
const
|
|
1689
|
-
|
|
1685
|
+
case Y.MEGA_MENU: {
|
|
1686
|
+
const I = me(
|
|
1687
|
+
_,
|
|
1690
1688
|
n
|
|
1691
|
-
),
|
|
1692
|
-
|
|
1689
|
+
), g = D();
|
|
1690
|
+
I.setAttribute("id", g), o.appendChild(I), u.remove(), i.remove(), l.appendChild(document.createTextNode(t.title));
|
|
1693
1691
|
break;
|
|
1694
1692
|
}
|
|
1695
1693
|
default:
|
|
@@ -1701,30 +1699,31 @@ function Fo(e, t, n) {
|
|
|
1701
1699
|
else if (t.actionUrl)
|
|
1702
1700
|
u.setAttribute("href", t.actionUrl.url), i.remove(), s.remove(), l.remove();
|
|
1703
1701
|
else if (t.actionFunctionUrl)
|
|
1704
|
-
u.setAttribute("href", t.actionFunctionUrl.url), u.onclick = (
|
|
1705
|
-
var
|
|
1706
|
-
(
|
|
1702
|
+
u.setAttribute("href", t.actionFunctionUrl.url), u.onclick = (m) => {
|
|
1703
|
+
var I, g;
|
|
1704
|
+
(I = t.actionFunctionUrl) != null && I.skipHandleEvent || (m.stopPropagation(), m.preventDefault()), (g = t.actionFunctionUrl) == null || g.actionFunction(m);
|
|
1707
1705
|
}, i.remove(), s.remove(), l.remove();
|
|
1708
1706
|
else if (t.isDivider)
|
|
1709
1707
|
r.remove(), o.setAttribute("aria-hidden", "true"), o.setAttribute("role", "separator");
|
|
1710
1708
|
else
|
|
1711
1709
|
throw console.error(t), new Error("renderPopupMenuItem: popupMenuItem must have either actionMenu, actionFunction, actionUrl, or isDivider (popupMenuItem.title)");
|
|
1712
|
-
if (!t.isDivider && (c.appendChild(document.createTextNode(t.title)), d.appendChild(document.createTextNode(t.title)), (
|
|
1710
|
+
if (!t.isDivider && (c.appendChild(document.createTextNode(t.title)), d.appendChild(document.createTextNode(t.title)), (h = t.actionUrl) != null && h.openInNewTab || (E = t.actionFunctionUrl) != null && E.openInNewTab)) {
|
|
1713
1711
|
u.setAttribute("target", "_blank");
|
|
1714
|
-
const
|
|
1715
|
-
c.appendChild(
|
|
1712
|
+
const m = T(it);
|
|
1713
|
+
c.appendChild(m), d.appendChild(m);
|
|
1716
1714
|
}
|
|
1717
|
-
|
|
1715
|
+
const f = (v = t.actionMenu) != null && v.length ? a.MENU_ITEM__SELECTED_PARENT : a.MENU_ITEM__SELECTED;
|
|
1716
|
+
return (t.isSelected || t.actionMenu && Fe(t.actionMenu, ["actionMenu"], (m) => !!m.isSelected)) && (i.classList.add(f), u.classList.add(f)), t.isSelected ? (on(o), o.classList.add(f)) : o.classList.remove(f), e.appendChild(o), o;
|
|
1718
1717
|
}
|
|
1719
|
-
function
|
|
1720
|
-
const n =
|
|
1718
|
+
function me(e, t) {
|
|
1719
|
+
const n = T(Pn);
|
|
1721
1720
|
return e == null || e.forEach((o) => Fo(n, o, t)), n;
|
|
1722
1721
|
}
|
|
1723
|
-
function
|
|
1724
|
-
const o =
|
|
1722
|
+
function ht(e, t, n) {
|
|
1723
|
+
const o = _t(t, { removePopupArrow: n.removePopupArrow }), r = o.querySelector(p(a.POPUP_CONTENT_WRAPPER));
|
|
1725
1724
|
if (!r)
|
|
1726
1725
|
throw new Error("renderPopupMenu: contentWrapper not found");
|
|
1727
|
-
const i =
|
|
1726
|
+
const i = me(e.menuItems, n);
|
|
1728
1727
|
return i.setAttribute("aria-label", e.title), r.appendChild(i), o;
|
|
1729
1728
|
}
|
|
1730
1729
|
const qo = `<div class="utds-badge__wrapper">
|
|
@@ -1732,11 +1731,11 @@ const qo = `<div class="utds-badge__wrapper">
|
|
|
1732
1731
|
<span class="utds-badge__label visually-hidden"></span>
|
|
1733
1732
|
</div>
|
|
1734
1733
|
`;
|
|
1735
|
-
function
|
|
1734
|
+
function mt(e) {
|
|
1736
1735
|
let t = null;
|
|
1737
1736
|
if (e) {
|
|
1738
1737
|
t = /** @type {HTMLElement} */
|
|
1739
|
-
|
|
1738
|
+
T(qo), t.classList.add(a.BADGE_WRAPPER__ACTION_ITEM);
|
|
1740
1739
|
const n = t.querySelector(p(a.BADGE__LABEL));
|
|
1741
1740
|
if (!n)
|
|
1742
1741
|
throw new Error("renderActionItemBadge: badgeLabel not found");
|
|
@@ -1752,8 +1751,8 @@ function ht(e) {
|
|
|
1752
1751
|
return t;
|
|
1753
1752
|
}
|
|
1754
1753
|
function Vo(e) {
|
|
1755
|
-
const t =
|
|
1756
|
-
t.getAttribute("id") || t.setAttribute("id",
|
|
1754
|
+
const t = T(wn);
|
|
1755
|
+
t.getAttribute("id") || t.setAttribute("id", D());
|
|
1757
1756
|
const n = document.createTextNode(e.title), o = (
|
|
1758
1757
|
/** @type {HTMLElement} */
|
|
1759
1758
|
t instanceof HTMLCollection ? t[0] : t
|
|
@@ -1770,30 +1769,30 @@ function Vo(e) {
|
|
|
1770
1769
|
if (!i)
|
|
1771
1770
|
throw new Error("renderActionItem: iconButton not found");
|
|
1772
1771
|
e.className && i.classList.add(e.className);
|
|
1773
|
-
const u =
|
|
1772
|
+
const u = mt(e.badge);
|
|
1774
1773
|
u && i.appendChild(u);
|
|
1775
|
-
const l =
|
|
1774
|
+
const l = T(e.icon);
|
|
1776
1775
|
l.setAttribute("role", "presentation"), i.appendChild(l);
|
|
1777
1776
|
let s = null;
|
|
1778
1777
|
if (e.actionFunction)
|
|
1779
1778
|
i.onclick = e.actionFunction;
|
|
1780
1779
|
else if (e.actionDom) {
|
|
1781
|
-
const c =
|
|
1782
|
-
i.setAttribute("id", c), s =
|
|
1780
|
+
const c = D();
|
|
1781
|
+
i.setAttribute("id", c), s = T(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom);
|
|
1783
1782
|
} else if (e.actionPopupMenu) {
|
|
1784
|
-
const c =
|
|
1785
|
-
i.setAttribute("id", c), s =
|
|
1783
|
+
const c = D();
|
|
1784
|
+
i.setAttribute("id", c), s = T(Ln);
|
|
1786
1785
|
const d = s.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
|
|
1787
1786
|
if (!d)
|
|
1788
1787
|
throw new Error("renderMobileActionItem: actionItemContentTitle not found");
|
|
1789
1788
|
d.appendChild(document.createTextNode(e.actionPopupMenu.title));
|
|
1790
|
-
const
|
|
1791
|
-
s.appendChild(
|
|
1789
|
+
const _ = me(e.actionPopupMenu.menuItems, { childrenMenuType: Y.INLINE });
|
|
1790
|
+
s.appendChild(_);
|
|
1792
1791
|
} else
|
|
1793
1792
|
throw console.error(e), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
|
|
1794
1793
|
return { actionItemElement: t, actionItemContent: s };
|
|
1795
1794
|
}
|
|
1796
|
-
function
|
|
1795
|
+
function Go() {
|
|
1797
1796
|
var u, l, s;
|
|
1798
1797
|
const e = document.getElementById(a.MOBILE_MENU_ACTON_BAR__HOME_ID);
|
|
1799
1798
|
if (!e)
|
|
@@ -1804,11 +1803,11 @@ function $o() {
|
|
|
1804
1803
|
);
|
|
1805
1804
|
if (!t)
|
|
1806
1805
|
throw new Error("renderMobileActionItems: homeActionItemWrapper not found");
|
|
1807
|
-
const o = !!
|
|
1806
|
+
const o = !!y().utahId ? document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID) : null, r = (
|
|
1808
1807
|
/** @type {HTMLElement} */
|
|
1809
1808
|
(u = o == null ? void 0 : o.closest) == null ? void 0 : u.call(o, p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER))
|
|
1810
1809
|
);
|
|
1811
|
-
(s = (l = [...
|
|
1810
|
+
(s = (l = [...y().actionItems || []].reverse()) == null ? void 0 : l.map((c) => ({ actionItem: c, ...Vo(c) }))) == null || s.forEach(({ actionItem: c, actionItemContent: d, actionItemElement: _ }) => {
|
|
1812
1811
|
let f;
|
|
1813
1812
|
switch (c.mobileMenuLocation) {
|
|
1814
1813
|
case "left":
|
|
@@ -1822,41 +1821,56 @@ function $o() {
|
|
|
1822
1821
|
f = r || t;
|
|
1823
1822
|
break;
|
|
1824
1823
|
}
|
|
1825
|
-
if (f && (f.after(
|
|
1824
|
+
if (f && (f.after(_), d)) {
|
|
1826
1825
|
const h = ot(d);
|
|
1827
|
-
let
|
|
1828
|
-
c.actionDom ?
|
|
1829
|
-
|
|
1826
|
+
let E = null;
|
|
1827
|
+
c.actionDom ? E = "dialog" : c.actionPopupMenu && (E = "menu"), rt(
|
|
1828
|
+
_,
|
|
1830
1829
|
h,
|
|
1831
|
-
|
|
1832
|
-
{ ariaHasPopupType:
|
|
1830
|
+
_,
|
|
1831
|
+
{ ariaHasPopupType: E, shouldOnClickCloseMenu: !1 }
|
|
1833
1832
|
);
|
|
1834
1833
|
}
|
|
1835
|
-
}),
|
|
1834
|
+
}), y().mainMenu || (e.remove(), t.remove());
|
|
1836
1835
|
}
|
|
1837
|
-
const
|
|
1836
|
+
const $o = `<div class="utds-footer utah-design-system">
|
|
1838
1837
|
<div class="utds-footer__horizontal-divider">
|
|
1839
1838
|
<hr />
|
|
1840
1839
|
</div>
|
|
1841
1840
|
<div class="utds-footer__utah-logo-wrapper">
|
|
1842
1841
|
<div class="utah-logo-svg" id="utah-logo-svg">
|
|
1843
1842
|
<svg viewBox="0 0 107 30.51" role="img">
|
|
1844
|
-
|
|
1843
|
+
<g>
|
|
1844
|
+
<path
|
|
1845
|
+
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" />
|
|
1846
|
+
</g>
|
|
1845
1847
|
</svg>
|
|
1846
1848
|
</div>
|
|
1847
1849
|
<div class="utds-footer__vertical-divider" role="separator" aria-orientation="vertical"></div>
|
|
1848
1850
|
<div class="utds-footer__official-site-wrapper">
|
|
1849
|
-
<div class="utds-footer__official-site">An official website of the <span class="whitespace-no-wrap">State of
|
|
1851
|
+
<div class="utds-footer__official-site">An official website of the <span class="whitespace-no-wrap">State of
|
|
1852
|
+
Utah</span></div>
|
|
1850
1853
|
<div class="utds-footer__copyright">©2023 State of Utah</div>
|
|
1851
1854
|
</div>
|
|
1852
1855
|
</div>
|
|
1853
1856
|
<div class="utds-footer__links">
|
|
1854
1857
|
<ul>
|
|
1855
|
-
<li
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
<li
|
|
1859
|
-
|
|
1858
|
+
<li>
|
|
1859
|
+
<a href="https://www.utah.gov/index.html" target="__blank" rel="noreferrer">Utah.gov Home</a>
|
|
1860
|
+
</li>
|
|
1861
|
+
<li>
|
|
1862
|
+
<a href="https://www.utah.gov/support/disclaimer.html" target="__blank" rel="noreferrer">Terms of Use</a>
|
|
1863
|
+
</li>
|
|
1864
|
+
<li>
|
|
1865
|
+
<a href="https://www.utah.gov/support/privacypolicy.html" target="__blank" rel="noreferrer">Privacy
|
|
1866
|
+
Policy</a>
|
|
1867
|
+
</li>
|
|
1868
|
+
<li>
|
|
1869
|
+
<a href="https://www.utah.gov/support/accessibility.html" target="__blank" rel="noreferrer">Accessibility</a>
|
|
1870
|
+
</li>
|
|
1871
|
+
<li>
|
|
1872
|
+
<a href="https://www.utah.gov/support/translate.html" target="__blank" rel="noreferrer">Translate</a>
|
|
1873
|
+
</li>
|
|
1860
1874
|
</ul>
|
|
1861
1875
|
</div>
|
|
1862
1876
|
</div>
|
|
@@ -1869,39 +1883,41 @@ const Go = `<div class="utds-footer utah-design-system">
|
|
|
1869
1883
|
showHorizontalRule: !1
|
|
1870
1884
|
};
|
|
1871
1885
|
function zo() {
|
|
1872
|
-
var o, r, i, u, l, s, c, d,
|
|
1873
|
-
const e =
|
|
1886
|
+
var o, r, i, u, l, s, c, d, _, f, h, E, v, m, I, g, O, b, M, A, w, N, U, S, R, W;
|
|
1887
|
+
const e = y(), t = document.querySelector(p(a.FOOTER));
|
|
1874
1888
|
let n = t;
|
|
1875
1889
|
if (e.footer === null)
|
|
1876
1890
|
t == null || t.remove();
|
|
1877
1891
|
else if (ne.domLocationTarget.cssSelector !== ((r = (o = e == null ? void 0 : e.footer) == null ? void 0 : o.domLocationTarget) == null ? void 0 : r.cssSelector) || ne.domLocationTarget.element !== ((u = (i = e == null ? void 0 : e.footer) == null ? void 0 : i.domLocationTarget) == null ? void 0 : u.element) || ne.domLocationTarget.elementFunction !== ((s = (l = e == null ? void 0 : e.footer) == null ? void 0 : l.domLocationTarget) == null ? void 0 : s.elementFunction) || ne.showHorizontalRule !== ((c = e == null ? void 0 : e.footer) == null ? void 0 : c.showHorizontalRule) || !t) {
|
|
1878
|
-
t && t.remove(), n =
|
|
1879
|
-
let
|
|
1892
|
+
t && t.remove(), n = T($o);
|
|
1893
|
+
let H = document.body;
|
|
1880
1894
|
if ((d = e == null ? void 0 : e.footer) != null && d.domLocationTarget) {
|
|
1881
|
-
const
|
|
1882
|
-
(
|
|
1895
|
+
const C = [
|
|
1896
|
+
(_ = e == null ? void 0 : e.footer) == null ? void 0 : _.domLocationTarget.cssSelector,
|
|
1883
1897
|
(f = e == null ? void 0 : e.footer) == null ? void 0 : f.domLocationTarget.element,
|
|
1884
1898
|
(h = e == null ? void 0 : e.footer) == null ? void 0 : h.domLocationTarget.elementFunction
|
|
1885
|
-
].filter((
|
|
1886
|
-
if (
|
|
1887
|
-
|
|
1888
|
-
else if ((
|
|
1889
|
-
|
|
1899
|
+
].filter((ce) => ce);
|
|
1900
|
+
if (Q(C.length < 1, "renderFooter: footer.domLocationTarget must either have a value for one of its properties or not be specified at all"), Q(C.length > 1, "renderFooter: footer.domLocationTarget must only have one target specified"), (E = e == null ? void 0 : e.footer) != null && E.domLocationTarget.cssSelector)
|
|
1901
|
+
H = document.querySelector((v = e == null ? void 0 : e.footer) == null ? void 0 : v.domLocationTarget.cssSelector), Q(!H, `renderFooter: element not found for domLocationTarget.cssSelector ${(m = e == null ? void 0 : e.footer) == null ? void 0 : m.domLocationTarget.cssSelector}`);
|
|
1902
|
+
else if ((I = e == null ? void 0 : e.footer) != null && I.domLocationTarget.element)
|
|
1903
|
+
H = (g = e == null ? void 0 : e.footer) == null ? void 0 : g.domLocationTarget.element;
|
|
1890
1904
|
else if ((O = e == null ? void 0 : e.footer) != null && O.domLocationTarget.elementFunction)
|
|
1891
|
-
|
|
1905
|
+
H = (b = e == null ? void 0 : e.footer) == null ? void 0 : b.domLocationTarget.elementFunction(), Q(!H, "renderFooter: element not returned from domLocationTarget.elementFunction");
|
|
1892
1906
|
else
|
|
1893
1907
|
throw new Error("renderFooter: domLocationTarget must have at least one field set");
|
|
1894
1908
|
}
|
|
1895
|
-
if (
|
|
1896
|
-
const
|
|
1897
|
-
|
|
1909
|
+
if (H == null || H.appendChild(n), !((M = e == null ? void 0 : e.footer) != null && M.showHorizontalRule)) {
|
|
1910
|
+
const C = document.querySelector(p(a.FOOTER_HORIZONTAL_DIVIDER));
|
|
1911
|
+
Q(!C, "renderFooter: cannot remove horizontal rule; not found"), C == null || C.remove();
|
|
1898
1912
|
}
|
|
1899
|
-
|
|
1913
|
+
L(document.querySelector(p(a.FOOTER_LINKS)), "renderFooter: footer links not found").querySelectorAll("li").forEach((C) => {
|
|
1914
|
+
C.appendChild(T(it));
|
|
1915
|
+
}), ne.domLocationTarget.cssSelector = (w = (A = e == null ? void 0 : e.footer) == null ? void 0 : A.domLocationTarget) == null ? void 0 : w.cssSelector, ne.domLocationTarget.element = (U = (N = e == null ? void 0 : e.footer) == null ? void 0 : N.domLocationTarget) == null ? void 0 : U.element, ne.domLocationTarget.elementFunction = (R = (S = e == null ? void 0 : e.footer) == null ? void 0 : S.domLocationTarget) == null ? void 0 : R.elementFunction, ne.showHorizontalRule = (W = e == null ? void 0 : e.footer) == null ? void 0 : W.showHorizontalRule;
|
|
1900
1916
|
}
|
|
1901
1917
|
return n;
|
|
1902
1918
|
}
|
|
1903
|
-
const
|
|
1904
|
-
`,
|
|
1919
|
+
const Ko = `<div class="utds-citizen-experience-wrapper--mobile"></div>
|
|
1920
|
+
`, Yo = `<h1 class="utds-logo-wrapper"></h1>
|
|
1905
1921
|
`, jo = `<div class="utah-design-system utds-header" role="banner" aria-label="Utah.gov Header"></div>
|
|
1906
1922
|
`, Zo = `<span class="utds-logo-vert-line"></span>
|
|
1907
1923
|
`, Xo = `<div class="utds-citizen-experience-wrapper"></div>
|
|
@@ -1917,9 +1933,9 @@ const Yo = `<div class="utds-citizen-experience-wrapper--mobile"></div>
|
|
|
1917
1933
|
</div>
|
|
1918
1934
|
</div>
|
|
1919
1935
|
`;
|
|
1920
|
-
let
|
|
1921
|
-
function
|
|
1922
|
-
const n =
|
|
1936
|
+
let de = NaN;
|
|
1937
|
+
function Oe(e, t) {
|
|
1938
|
+
const n = T(er), o = n.querySelector(p(a.TOOLTIP__CONTENT));
|
|
1923
1939
|
if (!o)
|
|
1924
1940
|
throw new Error("hookupToolTip: toolTipContent not found");
|
|
1925
1941
|
o.appendChild(t), e.appendChild(n);
|
|
@@ -1927,7 +1943,7 @@ function Ae(e, t) {
|
|
|
1927
1943
|
e,
|
|
1928
1944
|
n,
|
|
1929
1945
|
{
|
|
1930
|
-
placement:
|
|
1946
|
+
placement: at.BOTTOM,
|
|
1931
1947
|
modifiers: [
|
|
1932
1948
|
{
|
|
1933
1949
|
name: "offset",
|
|
@@ -1942,24 +1958,24 @@ function Ae(e, t) {
|
|
|
1942
1958
|
e.onmouseenter = () => {
|
|
1943
1959
|
clearTimeout(i), i = window.setTimeout(
|
|
1944
1960
|
() => {
|
|
1945
|
-
clearTimeout(
|
|
1961
|
+
clearTimeout(de), de = -1;
|
|
1946
1962
|
const u = e.querySelector(p(a.POPUP_WRAPPER));
|
|
1947
1963
|
(!u || u.classList.contains(a.POPUP__HIDDEN)) && (n.classList.remove(a.TOOLTIP__WRAPPER__HIDDEN), n.classList.add(a.TOOLTIP__WRAPPER__VISIBLE), r.update().catch((l) => console.error(l)));
|
|
1948
1964
|
},
|
|
1949
1965
|
// tooltip was already opened on another item, so instantly open tooltip
|
|
1950
|
-
|
|
1966
|
+
de ? 0 : 500
|
|
1951
1967
|
);
|
|
1952
1968
|
}, e.onmouseleave = () => {
|
|
1953
|
-
clearTimeout(i), n.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), n.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE), clearTimeout(
|
|
1969
|
+
clearTimeout(i), n.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), n.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE), clearTimeout(de), de = window.setTimeout(
|
|
1954
1970
|
() => {
|
|
1955
|
-
|
|
1971
|
+
de = NaN;
|
|
1956
1972
|
},
|
|
1957
1973
|
500
|
|
1958
1974
|
);
|
|
1959
1975
|
};
|
|
1960
1976
|
}
|
|
1961
1977
|
function tr(e) {
|
|
1962
|
-
const t =
|
|
1978
|
+
const t = T(Jo), n = document.createTextNode(e.title), o = (
|
|
1963
1979
|
/** @type {HTMLElement} */
|
|
1964
1980
|
t instanceof HTMLCollection ? t[0] : t
|
|
1965
1981
|
);
|
|
@@ -1972,46 +1988,46 @@ function tr(e) {
|
|
|
1972
1988
|
if (!i)
|
|
1973
1989
|
throw new Error("renderActionItem: iconButton not found");
|
|
1974
1990
|
e.className && i.classList.add(e.className);
|
|
1975
|
-
const u =
|
|
1991
|
+
const u = mt(e.badge);
|
|
1976
1992
|
u && i.appendChild(u);
|
|
1977
|
-
const l =
|
|
1993
|
+
const l = T(e.icon);
|
|
1978
1994
|
if (l.setAttribute("role", "presentation"), i.appendChild(l), !(i instanceof HTMLElement))
|
|
1979
1995
|
throw new Error("renderActionItem: iconButton is not an HTMLElement");
|
|
1980
1996
|
if (e.actionFunction)
|
|
1981
1997
|
i.onclick = e.actionFunction;
|
|
1982
1998
|
else if (e.actionDom) {
|
|
1983
|
-
const s =
|
|
1999
|
+
const s = D();
|
|
1984
2000
|
i.setAttribute("id", s);
|
|
1985
|
-
const c =
|
|
2001
|
+
const c = _t(i), d = (
|
|
1986
2002
|
/** @type {HTMLElement} */
|
|
1987
2003
|
c.querySelector(p(a.POPUP_CONTENT_WRAPPER))
|
|
1988
2004
|
);
|
|
1989
2005
|
if (!d)
|
|
1990
2006
|
throw new Error("renderPopupMenu: contentWrapper not found");
|
|
1991
|
-
d.appendChild(
|
|
2007
|
+
d.appendChild(T(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom)), t.appendChild(c), Pe(o, i, c, "dialog", void 0);
|
|
1992
2008
|
} else if (e.actionPopupMenu) {
|
|
1993
|
-
const s =
|
|
2009
|
+
const s = D();
|
|
1994
2010
|
i.setAttribute("id", s);
|
|
1995
|
-
const c =
|
|
2011
|
+
const c = ht(
|
|
1996
2012
|
/** @type {PopupMenu} */
|
|
1997
2013
|
e.actionPopupMenu,
|
|
1998
2014
|
i,
|
|
1999
|
-
{ childrenMenuType:
|
|
2015
|
+
{ childrenMenuType: Y.INLINE }
|
|
2000
2016
|
);
|
|
2001
|
-
t.appendChild(c),
|
|
2017
|
+
t.appendChild(c), Pe(o, i, c, "menu", void 0);
|
|
2002
2018
|
} else
|
|
2003
2019
|
throw console.error(e), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
|
|
2004
|
-
return
|
|
2020
|
+
return Oe(t, document.createTextNode(e.title)), t;
|
|
2005
2021
|
}
|
|
2006
2022
|
function nr() {
|
|
2007
2023
|
var n, o;
|
|
2008
|
-
const { actionItems: e } =
|
|
2024
|
+
const { actionItems: e } = y();
|
|
2009
2025
|
let t = null;
|
|
2010
|
-
return e != null && e.length && (t =
|
|
2026
|
+
return e != null && e.length && (t = T(Qo), (o = (n = y().actionItems) == null ? void 0 : n.map((r) => tr(r))) == null || o.forEach((r) => t == null ? void 0 : t.appendChild(r))), t;
|
|
2011
2027
|
}
|
|
2012
2028
|
const or = `<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
|
|
2013
2029
|
`, rn = `<div class="utds-utah-id-wrapper"></div>
|
|
2014
|
-
`,
|
|
2030
|
+
`, Ne = {
|
|
2015
2031
|
PROFILE: "https://id.utah.gov",
|
|
2016
2032
|
SIGN_IN: `https://id.utah.gov/login?goto=${window.location}`,
|
|
2017
2033
|
SIGN_OUT: `https://id.utah.gov/logout?goto=${window.location}`,
|
|
@@ -2021,40 +2037,40 @@ const or = `<button class="utds-utah-id__button button--solid" type="button">Uta
|
|
|
2021
2037
|
</div>
|
|
2022
2038
|
`;
|
|
2023
2039
|
function an(e, t) {
|
|
2024
|
-
const n =
|
|
2040
|
+
const n = T(rr), o = n.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
|
|
2025
2041
|
if (!o)
|
|
2026
2042
|
throw new Error("renderMenuWithTitle: menuTitleDiv not found");
|
|
2027
2043
|
return o.appendChild(document.createTextNode(t)), n.appendChild(e), n;
|
|
2028
2044
|
}
|
|
2029
|
-
let
|
|
2045
|
+
let P = null;
|
|
2030
2046
|
function sn(e) {
|
|
2031
|
-
|
|
2047
|
+
P = e, document.querySelectorAll(p(a.UTAH_ID__BUTTON)).forEach((n) => {
|
|
2032
2048
|
var o;
|
|
2033
2049
|
if (n) {
|
|
2034
|
-
if (n.innerHTML = "",
|
|
2050
|
+
if (n.innerHTML = "", P != null && P.userInfo && ((o = P.userInfo) != null && o.authenticated)) {
|
|
2035
2051
|
const u = document.createElement("span");
|
|
2036
|
-
u.appendChild(document.createTextNode("UtahID Account:")), u.classList.add(a.VISUALLY_HIDDEN), n.appendChild(u), n.appendChild(document.createTextNode(`Hello, ${
|
|
2052
|
+
u.appendChild(document.createTextNode("UtahID Account:")), u.classList.add(a.VISUALLY_HIDDEN), n.appendChild(u), n.appendChild(document.createTextNode(`Hello, ${P.userInfo.first || ""}`));
|
|
2037
2053
|
} else
|
|
2038
2054
|
n.appendChild(document.createTextNode("UtahID Sign In"));
|
|
2039
2055
|
const r = n.getAttribute("aria-controls");
|
|
2040
2056
|
if (!r)
|
|
2041
2057
|
throw new Error(`authChangedEventHandler: popup id for button not found - ${r}`);
|
|
2042
2058
|
const i = document.getElementById(r);
|
|
2043
|
-
i &&
|
|
2059
|
+
i && Et(n, i);
|
|
2044
2060
|
}
|
|
2045
2061
|
});
|
|
2046
2062
|
}
|
|
2047
|
-
function
|
|
2063
|
+
function Et(e, t) {
|
|
2048
2064
|
var n;
|
|
2049
|
-
e && t && (!!(
|
|
2065
|
+
e && t && (!!(P != null && P.isDefinitive) && !!((n = P == null ? void 0 : P.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")));
|
|
2050
2066
|
}
|
|
2051
2067
|
function ln() {
|
|
2052
|
-
const e =
|
|
2053
|
-
return e.setAttribute("id",
|
|
2068
|
+
const e = T(or);
|
|
2069
|
+
return e.setAttribute("id", D()), P && sn(P), e;
|
|
2054
2070
|
}
|
|
2055
2071
|
function cn(e) {
|
|
2056
2072
|
var s, c, d;
|
|
2057
|
-
const t =
|
|
2073
|
+
const t = y(), n = t.utahId !== !1 && t.utahId !== !0 && ((s = t.utahId) == null ? void 0 : s.onProfile), o = t.utahId !== !1 && t.utahId !== !0 && ((c = t.utahId) == null ? void 0 : c.onSignOut), r = [...t.utahId !== !0 && t.utahId !== !1 && ((d = t.utahId) == null ? void 0 : d.menuItems) || []];
|
|
2058
2074
|
r.length && r.push({
|
|
2059
2075
|
isDivider: !0,
|
|
2060
2076
|
title: "--divider--"
|
|
@@ -2062,32 +2078,32 @@ function cn(e) {
|
|
|
2062
2078
|
const i = [
|
|
2063
2079
|
...r,
|
|
2064
2080
|
{
|
|
2065
|
-
actionUrl: n ? void 0 : { url:
|
|
2081
|
+
actionUrl: n ? void 0 : { url: Ne.PROFILE, openInNewTab: !0 },
|
|
2066
2082
|
actionFunction: n || void 0,
|
|
2067
2083
|
className: "external-link",
|
|
2068
2084
|
title: "UtahID Profile"
|
|
2069
2085
|
},
|
|
2070
2086
|
{
|
|
2071
|
-
actionUrl: o ? void 0 : { url:
|
|
2087
|
+
actionUrl: o ? void 0 : { url: Ne.SIGN_OUT },
|
|
2072
2088
|
actionFunction: o || void 0,
|
|
2073
2089
|
title: "Sign Out"
|
|
2074
2090
|
}
|
|
2075
|
-
], u =
|
|
2076
|
-
return l.setAttribute("aria-label", "Utah Id Menu"), l.setAttribute("id",
|
|
2091
|
+
], u = me(i, { childrenMenuType: Y.INLINE }), l = e ? an(u, "Utah ID Menu") : u;
|
|
2092
|
+
return l.setAttribute("aria-label", "Utah Id Menu"), l.setAttribute("id", D()), l;
|
|
2077
2093
|
}
|
|
2078
2094
|
function ir() {
|
|
2079
2095
|
var l;
|
|
2080
|
-
const e =
|
|
2081
|
-
t.setAttribute("id",
|
|
2082
|
-
const n = cn(!1), o =
|
|
2096
|
+
const e = T(rn), t = ln();
|
|
2097
|
+
t.setAttribute("id", D()), e.appendChild(t);
|
|
2098
|
+
const n = cn(!1), o = _t(t), r = (
|
|
2083
2099
|
/** @type {HTMLElement} */
|
|
2084
2100
|
o.querySelector(p(a.POPUP_CONTENT_WRAPPER))
|
|
2085
2101
|
);
|
|
2086
2102
|
if (!r)
|
|
2087
2103
|
throw new Error("renderUtahIdForDesktop: contentWrapper not found");
|
|
2088
|
-
r.appendChild(n), e.appendChild(o),
|
|
2089
|
-
const i =
|
|
2090
|
-
return
|
|
2104
|
+
r.appendChild(n), e.appendChild(o), Et(t, o);
|
|
2105
|
+
const i = y(), u = i.utahId !== !1 && i.utahId !== !0 && ((l = i.utahId) == null ? void 0 : l.onSignIn);
|
|
2106
|
+
return Pe(
|
|
2091
2107
|
e,
|
|
2092
2108
|
t,
|
|
2093
2109
|
o,
|
|
@@ -2095,28 +2111,28 @@ function ir() {
|
|
|
2095
2111
|
{
|
|
2096
2112
|
isPerformPopup: () => {
|
|
2097
2113
|
var s;
|
|
2098
|
-
return !!(
|
|
2114
|
+
return !!(P != null && P.isDefinitive) && !!((s = P == null ? void 0 : P.userInfo) != null && s.authenticated);
|
|
2099
2115
|
},
|
|
2100
2116
|
onClick: (s) => {
|
|
2101
2117
|
var c;
|
|
2102
|
-
(!(
|
|
2118
|
+
(!(P != null && P.isDefinitive) || !((c = P == null ? void 0 : P.userInfo) != null && c.authenticated)) && (u ? u(s) : (s.preventDefault(), s.stopPropagation(), window.location.href = Ne.SIGN_IN));
|
|
2103
2119
|
}
|
|
2104
2120
|
}
|
|
2105
2121
|
), e;
|
|
2106
2122
|
}
|
|
2107
2123
|
function ar() {
|
|
2108
|
-
const e =
|
|
2124
|
+
const e = T(rn), t = ln(), n = t.getAttribute("id");
|
|
2109
2125
|
if (!n)
|
|
2110
2126
|
throw new Error("renderUtahIdForMobile: utahIdButton has no id");
|
|
2111
2127
|
e.appendChild(t);
|
|
2112
2128
|
const o = cn(!0), r = o.getAttribute("id");
|
|
2113
2129
|
if (!r)
|
|
2114
2130
|
throw new Error("renderUtahIdForMobile: utahIdPopupMenu has no id");
|
|
2115
|
-
return e.appendChild(o), t.setAttribute("aria-controls", r), o.setAttribute("aria-labelledby", n),
|
|
2131
|
+
return e.appendChild(o), t.setAttribute("aria-controls", r), o.setAttribute("aria-labelledby", n), Et(t, o), { button: t, menu: o };
|
|
2116
2132
|
}
|
|
2117
2133
|
function sr() {
|
|
2118
|
-
const e =
|
|
2119
|
-
return t && e.appendChild(t),
|
|
2134
|
+
const e = T(Xo), t = nr();
|
|
2135
|
+
return t && e.appendChild(t), y().utahId !== !1 && e.appendChild(ir()), e;
|
|
2120
2136
|
}
|
|
2121
2137
|
const lr = `<div class="utds-title-wrapper">
|
|
2122
2138
|
<div class="utds-title-wrapper__logo"></div>
|
|
@@ -2128,22 +2144,22 @@ const lr = `<div class="utds-title-wrapper">
|
|
|
2128
2144
|
</a>
|
|
2129
2145
|
`;
|
|
2130
2146
|
function ur() {
|
|
2131
|
-
const e =
|
|
2147
|
+
const e = y().titleURL, t = T(e ? cr : lr);
|
|
2132
2148
|
if (!t)
|
|
2133
2149
|
throw new Error("LogoTitle: titleWrapper is null");
|
|
2134
2150
|
e && t.setAttribute("href", e);
|
|
2135
2151
|
const n = t.querySelector(p(a.TITLE__LOGO));
|
|
2136
2152
|
if (!n)
|
|
2137
2153
|
throw new Error("LogoTitle: logoWrapper is null");
|
|
2138
|
-
const o =
|
|
2154
|
+
const o = y().logo, r = y().showTitle, i = y().title;
|
|
2139
2155
|
if (o) {
|
|
2140
2156
|
let s;
|
|
2141
2157
|
if (o.htmlString)
|
|
2142
|
-
s =
|
|
2158
|
+
s = T(j(o.htmlString));
|
|
2143
2159
|
else if (o.element)
|
|
2144
|
-
s =
|
|
2160
|
+
s = j(o.element);
|
|
2145
2161
|
else if (o.imageUrl)
|
|
2146
|
-
s =
|
|
2162
|
+
s = T(`<img src=${j(o.imageUrl)} id="design-system-logo" />`);
|
|
2147
2163
|
else
|
|
2148
2164
|
throw new Error("LogoTitle: logo set but has no settings");
|
|
2149
2165
|
s.setAttribute("role", "presentation"), n.appendChild(s);
|
|
@@ -2193,29 +2209,29 @@ const dr = `<div class="utah-logo-wrapper">
|
|
|
2193
2209
|
`;
|
|
2194
2210
|
function _r() {
|
|
2195
2211
|
let e;
|
|
2196
|
-
switch (
|
|
2197
|
-
case
|
|
2212
|
+
switch (y().size) {
|
|
2213
|
+
case ge.LARGE:
|
|
2198
2214
|
e = dr;
|
|
2199
2215
|
break;
|
|
2200
|
-
case
|
|
2201
|
-
case
|
|
2216
|
+
case ge.SMALL:
|
|
2217
|
+
case ge.MEDIUM:
|
|
2202
2218
|
e = pr;
|
|
2203
2219
|
break;
|
|
2204
2220
|
default:
|
|
2205
|
-
throw new Error(`Unknown settings size: '${
|
|
2221
|
+
throw new Error(`Unknown settings size: '${y().size}'`);
|
|
2206
2222
|
}
|
|
2207
|
-
const t =
|
|
2223
|
+
const t = T(e);
|
|
2208
2224
|
if (!/** @type {HTMLElement} */
|
|
2209
2225
|
t.querySelector(p(a.LOGO_SVG)))
|
|
2210
2226
|
throw new Error("UtahLogo: logoButton not found");
|
|
2211
|
-
return t.setAttribute("id",
|
|
2227
|
+
return t.setAttribute("id", D()), Oe(t, T(fr)), t;
|
|
2212
2228
|
}
|
|
2213
2229
|
function hr() {
|
|
2214
2230
|
var n;
|
|
2215
|
-
const e =
|
|
2216
|
-
e.classList.add(`utds-header--${((n =
|
|
2217
|
-
const t =
|
|
2218
|
-
return e.appendChild(t), t.appendChild(_r()), t.appendChild(
|
|
2231
|
+
const e = T(jo);
|
|
2232
|
+
e.classList.add(`utds-header--${((n = y().size) == null ? void 0 : n.toLowerCase()) || ge.MEDIUM}`);
|
|
2233
|
+
const t = T(Yo);
|
|
2234
|
+
return e.appendChild(t), t.appendChild(_r()), t.appendChild(T(Zo)), t.appendChild(ur()), e.appendChild(sr()), e.appendChild(T(Ko)), e;
|
|
2219
2235
|
}
|
|
2220
2236
|
const mr = `<li class="menu-item">
|
|
2221
2237
|
<span class="menu-item__title">
|
|
@@ -2296,7 +2312,7 @@ function xe() {
|
|
|
2296
2312
|
t.focus();
|
|
2297
2313
|
}
|
|
2298
2314
|
function je() {
|
|
2299
|
-
const e =
|
|
2315
|
+
const e = T(vr), t = (
|
|
2300
2316
|
/** @type {HTMLElement} */
|
|
2301
2317
|
e.querySelector(p(a.SEARCH__SEARCH_BACKDROP))
|
|
2302
2318
|
);
|
|
@@ -2328,7 +2344,7 @@ function je() {
|
|
|
2328
2344
|
throw new Error("showSearchModal: searchInput not found");
|
|
2329
2345
|
o.onclick = (l) => {
|
|
2330
2346
|
l.preventDefault(), l.stopPropagation(), xe();
|
|
2331
|
-
const { onSearch: s } =
|
|
2347
|
+
const { onSearch: s } = y();
|
|
2332
2348
|
s && (s == null || s(i.value));
|
|
2333
2349
|
}, n.onclick = (l) => {
|
|
2334
2350
|
l.preventDefault(), l.stopPropagation(), xe();
|
|
@@ -2341,7 +2357,7 @@ function je() {
|
|
|
2341
2357
|
}, e.onkeyup = (l) => {
|
|
2342
2358
|
(l.code === "Escape" || l.key === "Escape") && (l.preventDefault(), l.stopPropagation(), xe());
|
|
2343
2359
|
}, n.addEventListener("focusout", (l) => {
|
|
2344
|
-
l.preventDefault(), l.stopPropagation(),
|
|
2360
|
+
l.preventDefault(), l.stopPropagation(), Ie[tt.SHIFT] ? o.focus() : i.focus();
|
|
2345
2361
|
});
|
|
2346
2362
|
const u = e.querySelector(".search-modal__hidden-last-focusable");
|
|
2347
2363
|
if (!u)
|
|
@@ -2352,7 +2368,7 @@ function je() {
|
|
|
2352
2368
|
}
|
|
2353
2369
|
function br() {
|
|
2354
2370
|
var l;
|
|
2355
|
-
const e =
|
|
2371
|
+
const e = y(), t = T(Er);
|
|
2356
2372
|
let n = t.querySelector(p(a.MAIN_MENU__NAV));
|
|
2357
2373
|
if (!n)
|
|
2358
2374
|
throw new Error("renderMainMenu(): mainMenu not created");
|
|
@@ -2365,114 +2381,114 @@ function br() {
|
|
|
2365
2381
|
if (!s)
|
|
2366
2382
|
throw new Error("renderMainMenu(): mainMenuTop not found");
|
|
2367
2383
|
e.mainMenu.menuItems.forEach((c) => {
|
|
2368
|
-
var
|
|
2369
|
-
const d =
|
|
2384
|
+
var m, I;
|
|
2385
|
+
const d = T(mr);
|
|
2370
2386
|
s.appendChild(d);
|
|
2371
|
-
const
|
|
2387
|
+
const _ = L(
|
|
2372
2388
|
d.querySelector(p(a.MENU_ITEM__TITLE)),
|
|
2373
2389
|
`renderMainMenu(): sub menu title not found for ${c.title}`
|
|
2374
|
-
), f =
|
|
2390
|
+
), f = L(
|
|
2375
2391
|
/** @type {HTMLElement} */
|
|
2376
|
-
|
|
2392
|
+
_.querySelector(p(a.MENU_ITEM__BUTTON_TITLE)),
|
|
2377
2393
|
`renderMainMenu(): button title not found for ${c.title}`
|
|
2378
2394
|
);
|
|
2379
|
-
f.setAttribute("id", `${a.MENU_ITEM__BUTTON_TITLE}__${c.title}-${
|
|
2380
|
-
const h =
|
|
2395
|
+
f.setAttribute("id", `${a.MENU_ITEM__BUTTON_TITLE}__${c.title}-${D()}`);
|
|
2396
|
+
const h = L(
|
|
2381
2397
|
/** @type {HTMLElement} */
|
|
2382
|
-
|
|
2398
|
+
_.querySelector(p(a.MENU_ITEM__LINK_TITLE)),
|
|
2383
2399
|
`renderMainMenu(): link title not found for ${c.title}`
|
|
2384
2400
|
);
|
|
2385
|
-
h.setAttribute("id", `${a.MENU_ITEM__LINK_TITLE}__${c.title}-${
|
|
2386
|
-
let
|
|
2401
|
+
h.setAttribute("id", `${a.MENU_ITEM__LINK_TITLE}__${c.title}-${D()}`);
|
|
2402
|
+
let E;
|
|
2387
2403
|
if (c.actionFunctionUrl || c.actionUrl)
|
|
2388
|
-
|
|
2404
|
+
E = h, f.remove();
|
|
2389
2405
|
else if (c.actionMenu || c.actionFunction)
|
|
2390
|
-
|
|
2406
|
+
E = f, h.remove();
|
|
2391
2407
|
else
|
|
2392
2408
|
throw new Error(`renderMainMenu(): menuItem is missing an action: ${c.title}`);
|
|
2393
|
-
const
|
|
2394
|
-
|
|
2409
|
+
const v = L(
|
|
2410
|
+
E.querySelector(p(a.MENU_ITEM__LINK_TITLE_SPAN)),
|
|
2395
2411
|
`renderMainMenu(): main menu item title span not found for: ${c.title}`
|
|
2396
2412
|
);
|
|
2397
|
-
if ((c.isSelected || c.actionMenu && Fe(c.actionMenu, ["actionMenu"], (g) => !!g.isSelected)) &&
|
|
2398
|
-
|
|
2413
|
+
if ((c.isSelected || c.actionMenu && Fe(c.actionMenu, ["actionMenu"], (g) => !!g.isSelected)) && E.classList.add(a.MENU_ITEM__SELECTED), c.actionMenu) {
|
|
2414
|
+
v.innerHTML = c.title;
|
|
2399
2415
|
const g = {
|
|
2400
2416
|
menuItems: c.actionMenu,
|
|
2401
2417
|
title: c.title
|
|
2402
|
-
}, O =
|
|
2418
|
+
}, O = ht(
|
|
2403
2419
|
g,
|
|
2404
|
-
|
|
2420
|
+
E,
|
|
2405
2421
|
{
|
|
2406
|
-
childrenMenuType: c.childrenMenuType ||
|
|
2422
|
+
childrenMenuType: c.childrenMenuType || Y.FLYOUT
|
|
2407
2423
|
}
|
|
2408
2424
|
);
|
|
2409
|
-
d.appendChild(O),
|
|
2425
|
+
d.appendChild(O), Pe(d, E, O, "menu", { shouldFocusOnHover: !0 });
|
|
2410
2426
|
let b;
|
|
2411
2427
|
switch (c.childrenMenuType) {
|
|
2412
|
-
case
|
|
2428
|
+
case Y.INLINE:
|
|
2413
2429
|
b = a.MENU_ITEM__INLINE;
|
|
2414
2430
|
break;
|
|
2415
|
-
case
|
|
2431
|
+
case Y.MEGA_MENU:
|
|
2416
2432
|
b = a.MENU_ITEM__MEGA_MENU;
|
|
2417
2433
|
break;
|
|
2418
|
-
case
|
|
2434
|
+
case Y.FLYOUT:
|
|
2419
2435
|
default:
|
|
2420
2436
|
b = a.MENU_ITEM__FLY_OUT;
|
|
2421
2437
|
break;
|
|
2422
2438
|
}
|
|
2423
2439
|
d.classList.add(b);
|
|
2424
2440
|
} else
|
|
2425
|
-
|
|
2426
|
-
|
|
2441
|
+
L(
|
|
2442
|
+
E.querySelector(p(a.MENU_ITEM__ARROW)),
|
|
2427
2443
|
`renderMainMenu(): menu arrow not found for ${c.title}`
|
|
2428
2444
|
).remove();
|
|
2429
|
-
c.actionFunction ? (
|
|
2445
|
+
c.actionFunction ? (v.innerHTML = c.title, E.onclick = c.actionFunction) : c.actionFunctionUrl ? (v.innerHTML = c.title, E.setAttribute("href", c.actionFunctionUrl.url), E.onclick = (g) => {
|
|
2430
2446
|
var O, b;
|
|
2431
2447
|
(O = c.actionFunctionUrl) != null && O.skipHandleEvent || (g.stopPropagation(), g.preventDefault()), (b = c.actionFunctionUrl) == null || b.actionFunction(g);
|
|
2432
|
-
}) : c.actionUrl && (
|
|
2448
|
+
}) : c.actionUrl && (v.innerHTML = c.title, E.setAttribute("href", c.actionUrl.url)), ((m = c.actionUrl) != null && m.openInNewTab || (I = c.actionFunctionUrl) != null && I.openInNewTab) && (E.setAttribute("target", "_blank"), E.appendChild(T(it)));
|
|
2433
2449
|
});
|
|
2434
2450
|
}
|
|
2435
2451
|
let i = null;
|
|
2436
2452
|
if (e.utahId) {
|
|
2437
2453
|
const { button: s, menu: c } = ar();
|
|
2438
|
-
i = c,
|
|
2454
|
+
i = c, L(
|
|
2439
2455
|
t.querySelector(p(a.MOBILE__UTAH_ID)),
|
|
2440
2456
|
"renderMainMenu: utahIdButtonWrapper not found"
|
|
2441
2457
|
).appendChild(s);
|
|
2442
2458
|
}
|
|
2443
|
-
const u =
|
|
2459
|
+
const u = L(
|
|
2444
2460
|
/** @type {HTMLElement} */
|
|
2445
2461
|
t.querySelector(p(a.MAIN_MENU__SEARCH)),
|
|
2446
2462
|
"renderMainMenu: searchIcon not found"
|
|
2447
2463
|
);
|
|
2448
2464
|
if (e.onSearch) {
|
|
2449
|
-
if (
|
|
2465
|
+
if (Oe(u, document.createTextNode("Search")), u.onclick)
|
|
2450
2466
|
throw new Error("searchIcon already has onclick");
|
|
2451
2467
|
if (u.onclick = () => je(), !e.mainMenu) {
|
|
2452
|
-
const s =
|
|
2468
|
+
const s = L(
|
|
2453
2469
|
document.querySelector(p(a.CITIZEN_EXPERIENCE)),
|
|
2454
2470
|
"renderMainMenu: citizen experience wrapper not found"
|
|
2455
|
-
), c =
|
|
2456
|
-
if (
|
|
2457
|
-
const d =
|
|
2471
|
+
), c = T(u.outerHTML);
|
|
2472
|
+
if (Oe(c, document.createTextNode("Search")), c.onclick = () => je(), u.classList.add(a.DESKTOP__HIDDEN), e.utahId !== !1) {
|
|
2473
|
+
const d = L(document.querySelector(p(a.UTAH_ID)), "renderMainMenu: utahId wrapper not found");
|
|
2458
2474
|
s.insertBefore(c, d);
|
|
2459
2475
|
} else
|
|
2460
2476
|
s.appendChild(c);
|
|
2461
2477
|
}
|
|
2462
2478
|
if (!e.mainMenu && !e.actionItems && e.utahId === !1) {
|
|
2463
|
-
const s =
|
|
2479
|
+
const s = T(
|
|
2464
2480
|
/** @type {HTMLElement} */
|
|
2465
2481
|
u.outerHTML
|
|
2466
2482
|
);
|
|
2467
|
-
if (
|
|
2483
|
+
if (Oe(s, document.createTextNode("Search")), s.onclick)
|
|
2468
2484
|
throw new Error("searchIconMobile already has onclick");
|
|
2469
|
-
s.onclick = () => je(),
|
|
2485
|
+
s.onclick = () => je(), L(
|
|
2470
2486
|
document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
|
|
2471
2487
|
"renderMainMenu: citizen-experience--mobile not found"
|
|
2472
2488
|
).appendChild(s);
|
|
2473
2489
|
}
|
|
2474
2490
|
}
|
|
2475
|
-
return e.onSearch || ((e.mainMenu || !e.mainMenu && e.utahId) && ((l = u.parentElement) == null || l.insertBefore(
|
|
2491
|
+
return e.onSearch || ((e.mainMenu || !e.mainMenu && e.utahId) && ((l = u.parentElement) == null || l.insertBefore(T('<div class="main-menu__search-placeholder">'), u)), u.remove()), { mainMenuWrapper: t, utahIdPopup: i };
|
|
2476
2492
|
}
|
|
2477
2493
|
const Ir = `<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
|
|
2478
2494
|
<h2 class="utds-official-website-popup__heading">
|
|
@@ -2517,16 +2533,16 @@ const Ir = `<div class="utah-design-system utds-official-website-popup__wrapper
|
|
|
2517
2533
|
</div>
|
|
2518
2534
|
`;
|
|
2519
2535
|
function un() {
|
|
2520
|
-
const e =
|
|
2536
|
+
const e = L(
|
|
2521
2537
|
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
2522
2538
|
"openOfficialWebsite: official wrapper not found"
|
|
2523
|
-
), t =
|
|
2539
|
+
), t = L(
|
|
2524
2540
|
document.querySelector(p(a.LOGO)),
|
|
2525
2541
|
"openOfficialWebsite: logoWrapper not found"
|
|
2526
|
-
), n =
|
|
2542
|
+
), n = L(
|
|
2527
2543
|
t.querySelector(p(a.LOGO_SVG)),
|
|
2528
2544
|
"openOfficialWebsite: logoButton not found"
|
|
2529
|
-
), o =
|
|
2545
|
+
), o = L(
|
|
2530
2546
|
e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
|
|
2531
2547
|
"openOfficialWebsite: official close button not found"
|
|
2532
2548
|
);
|
|
@@ -2537,16 +2553,16 @@ function un() {
|
|
|
2537
2553
|
});
|
|
2538
2554
|
}
|
|
2539
2555
|
function Tr() {
|
|
2540
|
-
const e =
|
|
2556
|
+
const e = L(
|
|
2541
2557
|
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
2542
2558
|
"openOfficialWebsite: official wrapper not found"
|
|
2543
|
-
), t =
|
|
2559
|
+
), t = L(
|
|
2544
2560
|
document.querySelector(p(a.LOGO)),
|
|
2545
2561
|
"openOfficialWebsite: logoWrapper not found"
|
|
2546
|
-
), n =
|
|
2562
|
+
), n = L(
|
|
2547
2563
|
t.querySelector(p(a.LOGO_SVG)),
|
|
2548
2564
|
"openOfficialWebsite: logoButton not found"
|
|
2549
|
-
), o =
|
|
2565
|
+
), o = L(
|
|
2550
2566
|
e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
|
|
2551
2567
|
"openOfficialWebsite: official close button not found"
|
|
2552
2568
|
);
|
|
@@ -2557,7 +2573,7 @@ function Tr() {
|
|
|
2557
2573
|
}), Ve();
|
|
2558
2574
|
}
|
|
2559
2575
|
function gr() {
|
|
2560
|
-
const e =
|
|
2576
|
+
const e = T(Ir), t = document.querySelector(p(a.LOGO)), n = (
|
|
2561
2577
|
/** @type {HTMLElement} */
|
|
2562
2578
|
t == null ? void 0 : t.querySelector(p(a.LOGO_SVG))
|
|
2563
2579
|
);
|
|
@@ -2576,67 +2592,70 @@ function gr() {
|
|
|
2576
2592
|
});
|
|
2577
2593
|
}, o.onclick = () => {
|
|
2578
2594
|
e.classList.toggle(a.VISUALLY_HIDDEN), n.focus(), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true");
|
|
2579
|
-
}, o.id || (o.id =
|
|
2595
|
+
}, o.id || (o.id = D()), e.id || (e.id = D()), n.setAttribute("aria-controls", e.id), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), e.setAttribute("aria-labelledby", n.id), e;
|
|
2580
2596
|
}
|
|
2581
2597
|
function Mr(e) {
|
|
2582
|
-
var
|
|
2583
|
-
const { hamburger: t } =
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2598
|
+
var c, d;
|
|
2599
|
+
const { hamburger: t } = we("hookupHamburger"), n = (
|
|
2600
|
+
/** @param {string} context */
|
|
2601
|
+
(_) => L(t, `hookupHamburger: hamburger required but is null: ${_}`)
|
|
2602
|
+
), o = y();
|
|
2603
|
+
if ((c = o.actionItems) == null ? void 0 : c.some((_) => !!_.badge)) {
|
|
2604
|
+
const _ = mt({ label: "Home Badge" });
|
|
2605
|
+
_ && n("home badge").appendChild(_);
|
|
2587
2606
|
}
|
|
2588
2607
|
Ve();
|
|
2589
|
-
function
|
|
2590
|
-
const
|
|
2608
|
+
function i() {
|
|
2609
|
+
const _ = L(
|
|
2591
2610
|
/** @type {HTMLElement} */
|
|
2592
2611
|
document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
|
|
2593
2612
|
"hookupHamburger: no action items to select on mobile hamburger open"
|
|
2594
|
-
),
|
|
2595
|
-
return { actionItem:
|
|
2613
|
+
), f = _.querySelector("button"), h = f == null ? void 0 : f.getAttribute("aria-controls");
|
|
2614
|
+
return { actionItem: _, actionItemWrapper: h ? document.getElementById(h) : null };
|
|
2596
2615
|
}
|
|
2597
|
-
const
|
|
2616
|
+
const u = L(
|
|
2598
2617
|
/** @type {HTMLElement} */
|
|
2599
2618
|
document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
|
|
2600
2619
|
"hookupHamburger: no action items to select on mobile hamburger open"
|
|
2601
|
-
),
|
|
2602
|
-
if (!
|
|
2620
|
+
), l = (d = u.querySelector) == null ? void 0 : d.call(u, "button"), s = (l || u).getAttribute("id");
|
|
2621
|
+
if (!s)
|
|
2603
2622
|
throw new Error("mobileMenuInteractionHandler: actionItemId not found");
|
|
2604
2623
|
if (e) {
|
|
2605
|
-
const
|
|
2606
|
-
if (!
|
|
2624
|
+
const _ = e.getAttribute("id");
|
|
2625
|
+
if (!_)
|
|
2607
2626
|
throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");
|
|
2608
|
-
(
|
|
2627
|
+
(l || u).setAttribute("aria-controls", _), e.setAttribute("aria-labelledby", s);
|
|
2609
2628
|
}
|
|
2610
|
-
rt(
|
|
2629
|
+
t && rt(
|
|
2611
2630
|
t,
|
|
2612
|
-
() =>
|
|
2613
|
-
() =>
|
|
2631
|
+
() => i().actionItemWrapper,
|
|
2632
|
+
() => i().actionItem,
|
|
2614
2633
|
{
|
|
2615
2634
|
additionalOnClick: () => un(),
|
|
2616
2635
|
ariaHasPopupType: "menu",
|
|
2617
2636
|
shouldOnClickCloseMenu: !0
|
|
2618
2637
|
}
|
|
2619
|
-
),
|
|
2620
|
-
const { mobileMenu:
|
|
2621
|
-
if (
|
|
2622
|
-
const
|
|
2638
|
+
), t && (Q(!!t.onblur, "hookupHamburger: hamburger already has an onblur event"), t.onblur = () => {
|
|
2639
|
+
const { mobileMenu: _ } = we("showMobileMenu");
|
|
2640
|
+
if (_.classList.contains(a.IS_OPEN)) {
|
|
2641
|
+
const f = p(a.MOBILE_MENU__ACTION_BAR), h = p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER), E = p(a.ICON_BUTTON), v = (
|
|
2623
2642
|
/** @type {HTMLElement | null} */
|
|
2624
|
-
document.querySelector(`${
|
|
2643
|
+
document.querySelector(`${f} ${h}:first-child ${E}`)
|
|
2625
2644
|
);
|
|
2626
|
-
|
|
2645
|
+
v == null || v.focus();
|
|
2627
2646
|
}
|
|
2628
|
-
}, (
|
|
2647
|
+
}), (o.mainMenu || o.actionItems) && !o.onSearch && o.utahId === !1 && (L(
|
|
2629
2648
|
document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
|
|
2630
2649
|
"hookupHamburger: citizen experience mobile not found"
|
|
2631
|
-
).appendChild(
|
|
2650
|
+
).appendChild(n("adding to citizen experience")), L(
|
|
2632
2651
|
document.querySelector(p(a.MAIN_MENU)),
|
|
2633
2652
|
"hookupHamburger: main menu not found"
|
|
2634
|
-
).classList.add(a.MOBILE__HIDDEN)),
|
|
2653
|
+
).classList.add(a.MOBILE__HIDDEN)), o.onSearch && !o.mainMenu && L(
|
|
2635
2654
|
document.querySelector(p(a.MAIN_MENU)),
|
|
2636
2655
|
"renderMainMenu: main menu not found"
|
|
2637
2656
|
).classList.add(a.DESKTOP__HIDDEN);
|
|
2638
2657
|
}
|
|
2639
|
-
const
|
|
2658
|
+
const Te = {
|
|
2640
2659
|
AUTOMATIC: (
|
|
2641
2660
|
/** @type {UtahIdFetchStyle} */
|
|
2642
2661
|
"Automatic"
|
|
@@ -2650,49 +2669,49 @@ const Ie = {
|
|
|
2650
2669
|
"Provided"
|
|
2651
2670
|
)
|
|
2652
2671
|
};
|
|
2653
|
-
let
|
|
2672
|
+
let Wt = Te.NONE;
|
|
2654
2673
|
function Ar(e) {
|
|
2655
2674
|
let t;
|
|
2656
2675
|
if (e === !0)
|
|
2657
|
-
t =
|
|
2676
|
+
t = Te.AUTOMATIC;
|
|
2658
2677
|
else if (e === !1)
|
|
2659
|
-
t =
|
|
2678
|
+
t = Te.NONE;
|
|
2660
2679
|
else if (e === void 0 || e.currentUser === void 0)
|
|
2661
|
-
t =
|
|
2680
|
+
t = Te.AUTOMATIC;
|
|
2662
2681
|
else if (e.currentUser === null || e.currentUser)
|
|
2663
|
-
t =
|
|
2682
|
+
t = Te.PROVIDED;
|
|
2664
2683
|
else
|
|
2665
2684
|
throw new Error("determineFetchStyle: Unknown utah id fetch style");
|
|
2666
2685
|
return t;
|
|
2667
2686
|
}
|
|
2668
|
-
const
|
|
2687
|
+
const x = {
|
|
2669
2688
|
// null = not yet loaded, false = ajaxing, true = have a result (may be error or user data)
|
|
2670
2689
|
isDefinitive: null,
|
|
2671
2690
|
lastError: null,
|
|
2672
2691
|
userInfo: null
|
|
2673
2692
|
};
|
|
2674
|
-
function
|
|
2693
|
+
function kt(e) {
|
|
2675
2694
|
var t, n;
|
|
2676
2695
|
if (e.isDefinitive) {
|
|
2677
2696
|
sn(e);
|
|
2678
|
-
const o = (t =
|
|
2697
|
+
const o = (t = y()) == null ? void 0 : t.utahId;
|
|
2679
2698
|
typeof o == "object" && ((n = o.onAuthChanged) == null || n.call(o, e));
|
|
2680
2699
|
}
|
|
2681
2700
|
}
|
|
2682
|
-
let
|
|
2701
|
+
let Ft = !0;
|
|
2683
2702
|
const Or = 500;
|
|
2684
|
-
let
|
|
2703
|
+
let qt = NaN;
|
|
2685
2704
|
async function dn() {
|
|
2686
2705
|
var o, r;
|
|
2687
|
-
let e = Promise.resolve(
|
|
2688
|
-
const t =
|
|
2689
|
-
if (
|
|
2690
|
-
e = Promise.resolve(
|
|
2691
|
-
else if (
|
|
2692
|
-
clearTimeout(
|
|
2693
|
-
|
|
2706
|
+
let e = Promise.resolve(x);
|
|
2707
|
+
const t = y(), n = Ar(t.utahId);
|
|
2708
|
+
if (x.isDefinitive === !1)
|
|
2709
|
+
e = Promise.resolve(x);
|
|
2710
|
+
else if (Ft)
|
|
2711
|
+
clearTimeout(qt), e = new Promise((i) => {
|
|
2712
|
+
qt = window.setTimeout(
|
|
2694
2713
|
() => {
|
|
2695
|
-
|
|
2714
|
+
Ft = !1, dn().then((u) => i(u)).catch((u) => console.error(u));
|
|
2696
2715
|
},
|
|
2697
2716
|
Or
|
|
2698
2717
|
);
|
|
@@ -2704,26 +2723,26 @@ async function dn() {
|
|
|
2704
2723
|
userInfo: null
|
|
2705
2724
|
});
|
|
2706
2725
|
else if (t.utahId === !0 || ((o = t.utahId) == null ? void 0 : o.currentUser) === void 0)
|
|
2707
|
-
(n !==
|
|
2726
|
+
(n !== Wt || x.isDefinitive === null) && (x.isDefinitive = !1, e = fetch(Ne.USER_INFO, { credentials: "include" }).then((i) => i.json()).then((i) => {
|
|
2708
2727
|
if (i.status === 200)
|
|
2709
|
-
|
|
2728
|
+
x.lastError = null, x.userInfo = /** @type {UserInfo} */
|
|
2710
2729
|
i.data;
|
|
2711
2730
|
else
|
|
2712
2731
|
throw new Error(i.err);
|
|
2713
|
-
return
|
|
2714
|
-
}).catch((i) => (
|
|
2732
|
+
return x;
|
|
2733
|
+
}).catch((i) => (x.lastError = i, x.userInfo = null, x)).finally(() => (x.isDefinitive = !0, kt(x), x)));
|
|
2715
2734
|
else {
|
|
2716
2735
|
const i = {
|
|
2717
2736
|
isDefinitive: !0,
|
|
2718
2737
|
lastError: null,
|
|
2719
2738
|
userInfo: (r = t.utahId) == null ? void 0 : r.currentUser
|
|
2720
2739
|
};
|
|
2721
|
-
e = Promise.resolve(i),
|
|
2740
|
+
e = Promise.resolve(i), kt(i);
|
|
2722
2741
|
}
|
|
2723
|
-
return
|
|
2742
|
+
return Wt = n, e;
|
|
2724
2743
|
}
|
|
2725
2744
|
function wr() {
|
|
2726
|
-
return
|
|
2745
|
+
return x;
|
|
2727
2746
|
}
|
|
2728
2747
|
function Lr() {
|
|
2729
2748
|
const e = document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID);
|
|
@@ -2767,14 +2786,14 @@ function yr(e, t) {
|
|
|
2767
2786
|
ariaHasPopupType: "menu",
|
|
2768
2787
|
onClickHandler: (s) => {
|
|
2769
2788
|
var f, h;
|
|
2770
|
-
const c = wr(), d =
|
|
2771
|
-
let
|
|
2789
|
+
const c = wr(), d = y();
|
|
2790
|
+
let _ = !1;
|
|
2772
2791
|
if (!(c != null && c.isDefinitive) || !((f = c == null ? void 0 : c.userInfo) != null && f.authenticated)) {
|
|
2773
|
-
|
|
2774
|
-
const
|
|
2775
|
-
|
|
2792
|
+
_ = !0;
|
|
2793
|
+
const E = d.utahId !== !1 && d.utahId !== !0 && ((h = d.utahId) == null ? void 0 : h.onSignIn);
|
|
2794
|
+
E ? E(s) : (s.preventDefault(), s.stopPropagation(), window.location.href = Ne.SIGN_IN);
|
|
2776
2795
|
}
|
|
2777
|
-
return
|
|
2796
|
+
return _;
|
|
2778
2797
|
},
|
|
2779
2798
|
shouldOnClickCloseMenu: !0
|
|
2780
2799
|
}
|
|
@@ -2782,11 +2801,11 @@ function yr(e, t) {
|
|
|
2782
2801
|
}
|
|
2783
2802
|
function Pr() {
|
|
2784
2803
|
var t;
|
|
2785
|
-
const e =
|
|
2786
|
-
return
|
|
2804
|
+
const e = y();
|
|
2805
|
+
return me(
|
|
2787
2806
|
e.mainMenu && ((t = e.mainMenu) == null ? void 0 : t.menuItems) || void 0,
|
|
2788
2807
|
{
|
|
2789
|
-
childrenMenuType:
|
|
2808
|
+
childrenMenuType: Y.INLINE,
|
|
2790
2809
|
removePopupArrow: !0
|
|
2791
2810
|
}
|
|
2792
2811
|
);
|
|
@@ -2826,13 +2845,13 @@ function Nr() {
|
|
|
2826
2845
|
);
|
|
2827
2846
|
if (!h)
|
|
2828
2847
|
throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");
|
|
2829
|
-
const
|
|
2848
|
+
const E = (
|
|
2830
2849
|
/** @type {HTMLElement} */
|
|
2831
2850
|
h.querySelector(p(a.MOBILE_MENU__CONTENT))
|
|
2832
2851
|
);
|
|
2833
|
-
if (!
|
|
2852
|
+
if (!E)
|
|
2834
2853
|
throw new Error("hookupMobileActionItemKeyboarding: mobileContentWrapper not found");
|
|
2835
|
-
|
|
2854
|
+
E.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach((v) => v.classList.remove(a.IS_OPEN));
|
|
2836
2855
|
}
|
|
2837
2856
|
const f = (
|
|
2838
2857
|
/** @type {HTMLElement} */
|
|
@@ -2845,21 +2864,21 @@ function Nr() {
|
|
|
2845
2864
|
};
|
|
2846
2865
|
}
|
|
2847
2866
|
);
|
|
2848
|
-
const n =
|
|
2867
|
+
const n = L(
|
|
2849
2868
|
document.querySelector(p(a.MOBILE_MENU__LAST_FOCUSABLE)),
|
|
2850
2869
|
"hookupMobileActionItemKeyboarding: hiddenLastFocusableButton not found"
|
|
2851
|
-
), { hamburger: o } =
|
|
2870
|
+
), { hamburger: o } = we("hookupMobileActionItemKeyboarding");
|
|
2852
2871
|
n.addEventListener("focusin", (r) => {
|
|
2853
|
-
r.preventDefault(), r.stopPropagation(), o.focus();
|
|
2872
|
+
r.preventDefault(), r.stopPropagation(), o == null || o.focus();
|
|
2854
2873
|
});
|
|
2855
2874
|
}
|
|
2856
2875
|
function Sr() {
|
|
2857
|
-
const e = bn.replace(a.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER, `${
|
|
2876
|
+
const e = bn.replace(a.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER, `${y().mediaSizes.tabletPortrait}px`).replace(a.MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER, `${y().mediaSizes.tabletLandscape}px`).replace(a.MEDIA_SIZE__MOBILE__PLACEHOLDER, `${y().mediaSizes.mobile}px`);
|
|
2858
2877
|
let t = document.getElementById(a.CSS_HEADER_MEDIA_TAG_ID);
|
|
2859
2878
|
t || (t = document.createElement("style"), t.id = a.CSS_HEADER_MEDIA_TAG_ID), t.innerHTML = e, document.body.appendChild(t);
|
|
2860
2879
|
}
|
|
2861
2880
|
function Ur() {
|
|
2862
|
-
const e =
|
|
2881
|
+
const e = y();
|
|
2863
2882
|
let t = document.body;
|
|
2864
2883
|
if (e.domLocationTarget) {
|
|
2865
2884
|
const n = [
|
|
@@ -2872,15 +2891,15 @@ function Ur() {
|
|
|
2872
2891
|
if (n.length > 1)
|
|
2873
2892
|
throw new Error("loadHeader: domLocationTarget must only have one target specified");
|
|
2874
2893
|
if (e.domLocationTarget.cssSelector)
|
|
2875
|
-
t = document.querySelector(e.domLocationTarget.cssSelector),
|
|
2894
|
+
t = document.querySelector(e.domLocationTarget.cssSelector), Q(!t, `loadHeader: element not found for domLocationTarget.cssSelector ${e.domLocationTarget.cssSelector}`);
|
|
2876
2895
|
else if (e.domLocationTarget.element)
|
|
2877
2896
|
t = e.domLocationTarget.element;
|
|
2878
2897
|
else if (e.domLocationTarget.elementFunction)
|
|
2879
|
-
t = e.domLocationTarget.elementFunction(),
|
|
2898
|
+
t = e.domLocationTarget.elementFunction(), Q(!t, "loadHeader: element not returned from domLocationTarget.elementFunction");
|
|
2880
2899
|
else
|
|
2881
2900
|
throw new Error("loadHeader: domLocationTarget must have at least one field set");
|
|
2882
2901
|
}
|
|
2883
|
-
return
|
|
2902
|
+
return L(t, "loadHeader: domTarget is null (how?!)");
|
|
2884
2903
|
}
|
|
2885
2904
|
function Cr() {
|
|
2886
2905
|
var t;
|
|
@@ -2891,7 +2910,7 @@ function Cr() {
|
|
|
2891
2910
|
n.after(r);
|
|
2892
2911
|
const { mainMenuWrapper: i, utahIdPopup: u } = br();
|
|
2893
2912
|
i && r.after(i);
|
|
2894
|
-
const l =
|
|
2913
|
+
const l = T(In);
|
|
2895
2914
|
r.after(l);
|
|
2896
2915
|
const s = (
|
|
2897
2916
|
/** @type {HTMLElement} */
|
|
@@ -2904,9 +2923,9 @@ function Cr() {
|
|
|
2904
2923
|
s.onclick = () => Ve();
|
|
2905
2924
|
const c = Pr(), d = an(c, "Main Menu");
|
|
2906
2925
|
d.appendChild(c);
|
|
2907
|
-
const
|
|
2908
|
-
Mr(
|
|
2909
|
-
const f =
|
|
2926
|
+
const _ = ot(d);
|
|
2927
|
+
Mr(_), u ? ((t = u.closest("div")) == null || t.removeAttribute("aria-labelledby"), yr(l, u)) : Lr(), Go(), Nr(), Ho(), Sr(), dn().catch((h) => console.error(h));
|
|
2928
|
+
const f = y();
|
|
2910
2929
|
(!f.mainMenu && !f.actionItems && f.utahId === !1 && !f.onSearch || !f.mainMenu && !f.actionItems && f.utahId === !1 && f.onSearch || !f.mainMenu && f.actionItems && f.utahId === !1 && !f.onSearch) && (l.classList.add(a.MAIN_MENU__REMOVED), i.remove()), (!f.mainMenu && !f.actionItems && f.utahId && !f.onSearch || !f.mainMenu && f.actionItems && f.utahId && !f.onSearch || !f.mainMenu && f.actionItems && !f.utahId && f.onSearch) && i.classList.add(a.DESKTOP__HIDDEN);
|
|
2911
2930
|
}
|
|
2912
2931
|
zo();
|
|
@@ -2915,33 +2934,33 @@ function Rr(e) {
|
|
|
2915
2934
|
var t, n, o, r;
|
|
2916
2935
|
(t = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.HEADER]))) == null || t.remove(), (n = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.MAIN_MENU__OUTER]))) == null || n.remove(), (o = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.MOBILE_MENU]))) == null || o.remove(), (r = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.LOGO_OFFICIAL_WRAPPER]))) == null || r.remove(), nn(), e && setTimeout(() => document.dispatchEvent(new Event($t.HEADER_UNLOADED)), 0);
|
|
2917
2936
|
}
|
|
2918
|
-
function
|
|
2937
|
+
function Vt() {
|
|
2919
2938
|
Rr(!1), Cr();
|
|
2920
2939
|
}
|
|
2921
2940
|
let pn = !1;
|
|
2922
2941
|
const Dr = 15e3;
|
|
2923
|
-
let
|
|
2942
|
+
let Gt = 0;
|
|
2924
2943
|
const Br = setInterval(
|
|
2925
2944
|
() => {
|
|
2926
|
-
|
|
2945
|
+
Gt += 1, Gt >= Dr || pn ? clearInterval(Br) : document.dispatchEvent(new Event($t.HEADER_LOADED));
|
|
2927
2946
|
},
|
|
2928
2947
|
2
|
|
2929
2948
|
);
|
|
2930
2949
|
function Hr(e) {
|
|
2931
|
-
return ke.setSettings(e), pn = !0, document != null && document.body ?
|
|
2950
|
+
return ke.setSettings(e), pn = !0, document != null && document.body ? Vt() : window.addEventListener("load", () => Vt()), ke.getSettings();
|
|
2932
2951
|
}
|
|
2933
2952
|
function xr(e) {
|
|
2934
2953
|
return Hr({ ...Ze, ...ke.getSettings(), footer: e });
|
|
2935
2954
|
}
|
|
2936
2955
|
export {
|
|
2937
|
-
|
|
2956
|
+
Y as childrenMenuTypes,
|
|
2938
2957
|
Ze as defaultSettings,
|
|
2939
2958
|
$t as events,
|
|
2940
|
-
|
|
2959
|
+
y as getUtahHeaderSettings,
|
|
2941
2960
|
Cr as loadHeader,
|
|
2942
2961
|
Rr as removeHeader,
|
|
2943
|
-
|
|
2962
|
+
T as renderDOMSingle,
|
|
2944
2963
|
xr as setUtahFooterSettings,
|
|
2945
2964
|
Hr as setUtahHeaderSettings,
|
|
2946
|
-
|
|
2965
|
+
ge as sizes
|
|
2947
2966
|
};
|