@utahdts/utah-design-system-header 1.13.0 → 1.13.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.
|
@@ -11,7 +11,7 @@ const Z = {
|
|
|
11
11
|
/** @type {ChildrenMenuTypes} */
|
|
12
12
|
"mega-menu"
|
|
13
13
|
)
|
|
14
|
-
},
|
|
14
|
+
}, rt = {
|
|
15
15
|
AUTO: (
|
|
16
16
|
/** @type {PopupPlacementType} */
|
|
17
17
|
"auto"
|
|
@@ -72,7 +72,7 @@ const Z = {
|
|
|
72
72
|
/** @type {PopupPlacementType} */
|
|
73
73
|
"top-end"
|
|
74
74
|
)
|
|
75
|
-
},
|
|
75
|
+
}, Yt = {
|
|
76
76
|
// Fired when the utah header is first loaded (setUtahHeaderSettings does not trigger this)
|
|
77
77
|
HEADER_LOADED: (
|
|
78
78
|
/** @type {Events} */
|
|
@@ -96,7 +96,7 @@ const Z = {
|
|
|
96
96
|
/** @type {Size} */
|
|
97
97
|
"LARGE"
|
|
98
98
|
)
|
|
99
|
-
},
|
|
99
|
+
}, In = `/* @media is never in scope for --variables, so this is the only way to solve this. :-( */
|
|
100
100
|
|
|
101
101
|
@media screen and (max-width: media-size__tablet-landscape__PLACEHOLDER) {
|
|
102
102
|
/* put your media query here for tablet landscape */
|
|
@@ -187,7 +187,7 @@ const Z = {
|
|
|
187
187
|
@media screen and (max-width: media-size__mobile__PLACEHOLDER) {
|
|
188
188
|
/* put your media query here for mobile */
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`, Tn = `<div class="utah-design-system utds-header-mobile-menu" id="utds-header-mobile-menu">
|
|
191
191
|
<div class="utds-header-mobile-menu__backdrop" aria-hidden></div>
|
|
192
192
|
<div class="utds-header-mobile-menu__wrapper">
|
|
193
193
|
<div class="utds-header-mobile-menu__action-bar" role="tablist">
|
|
@@ -348,16 +348,16 @@ function O(e, t) {
|
|
|
348
348
|
throw new Error(t);
|
|
349
349
|
return e;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function yt(e) {
|
|
352
352
|
return typeof e == "string" || e instanceof String;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function gn(e) {
|
|
355
355
|
const t = new DOMParser();
|
|
356
356
|
let n;
|
|
357
|
-
if (
|
|
357
|
+
if (yt(e)) {
|
|
358
358
|
const o = (
|
|
359
359
|
/** @type {Document} */
|
|
360
|
-
|
|
360
|
+
yt(e) ? t.parseFromString(e, "text/html") : e
|
|
361
361
|
), r = o.body.children.length > 1 ? o.body.children : o.body.children.item(0);
|
|
362
362
|
if (!r)
|
|
363
363
|
throw console.error(e), new Error("renderDOM: nothing rendered");
|
|
@@ -372,7 +372,7 @@ function Tn(e) {
|
|
|
372
372
|
return n;
|
|
373
373
|
}
|
|
374
374
|
function T(e) {
|
|
375
|
-
const t = typeof e == "string" ?
|
|
375
|
+
const t = typeof e == "string" ? gn(e) : e;
|
|
376
376
|
if (t instanceof HTMLCollection && t.length > 1)
|
|
377
377
|
throw new Error("renderDOMSingle: must render a single element");
|
|
378
378
|
const n = (
|
|
@@ -383,7 +383,7 @@ function T(e) {
|
|
|
383
383
|
throw console.error(e), new Error("renderDOMSingle: nothing rendered");
|
|
384
384
|
return n;
|
|
385
385
|
}
|
|
386
|
-
const
|
|
386
|
+
const Ze = {
|
|
387
387
|
onSearch: !1,
|
|
388
388
|
mainMenu: !1,
|
|
389
389
|
mediaSizes: {
|
|
@@ -398,20 +398,20 @@ const je = {
|
|
|
398
398
|
titleURL: "/",
|
|
399
399
|
utahId: !1
|
|
400
400
|
};
|
|
401
|
-
function
|
|
401
|
+
function Mn(e) {
|
|
402
402
|
if (!e.showTitle && !e.logo)
|
|
403
403
|
throw new Error("validateSettings: A title must be shown if there is no logo. Please change the `showTitle` setting to be `true` or provide a logo image.");
|
|
404
404
|
}
|
|
405
|
-
class
|
|
405
|
+
class An {
|
|
406
406
|
constructor() {
|
|
407
|
-
this.settings = { ...
|
|
407
|
+
this.settings = { ...Ze };
|
|
408
408
|
}
|
|
409
409
|
/**
|
|
410
410
|
* @param {SettingsInput} settings
|
|
411
411
|
*/
|
|
412
412
|
setSettings(t) {
|
|
413
|
-
const n = { ...
|
|
414
|
-
|
|
413
|
+
const n = { ...Ze, ...this.settings, ...t };
|
|
414
|
+
Mn(n), this.settings = n;
|
|
415
415
|
}
|
|
416
416
|
/**
|
|
417
417
|
* @returns {Settings}
|
|
@@ -420,11 +420,11 @@ class Mn {
|
|
|
420
420
|
return this.settings;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
const
|
|
423
|
+
const qe = new An();
|
|
424
424
|
function w() {
|
|
425
|
-
return
|
|
425
|
+
return qe.getSettings();
|
|
426
426
|
}
|
|
427
|
-
const
|
|
427
|
+
const On = `<div class="utds-header-mobile-menu__content-item" role="tabpanel">
|
|
428
428
|
</div>
|
|
429
429
|
`;
|
|
430
430
|
function H() {
|
|
@@ -441,14 +441,14 @@ function H() {
|
|
|
441
441
|
)
|
|
442
442
|
);
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function it(e) {
|
|
445
445
|
const t = document.querySelector(p(a.MOBILE_MENU__WRAPPER));
|
|
446
446
|
if (!t)
|
|
447
447
|
throw new Error("addMobileMenuContentItem: mobileMenuWrapper not found");
|
|
448
448
|
const n = t.querySelector(p(a.MOBILE_MENU__CONTENT));
|
|
449
449
|
if (!n)
|
|
450
450
|
throw new Error("addMobileMenuContentItem: mobileContentWrapper not found");
|
|
451
|
-
const o = T(
|
|
451
|
+
const o = T(On);
|
|
452
452
|
return o.appendChild(e), n.appendChild(o), o.setAttribute("id", H()), o;
|
|
453
453
|
}
|
|
454
454
|
function ee(e) {
|
|
@@ -468,18 +468,18 @@ function ye(e) {
|
|
|
468
468
|
mobileMenu: t
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Ge() {
|
|
472
472
|
const { hamburger: e, hamburgerIcon: t, mobileMenu: n } = ye("hideMobileMenu");
|
|
473
473
|
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"), document.body.style.position = "";
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Ln() {
|
|
476
476
|
var r;
|
|
477
477
|
const e = document.querySelector(p(a.MAIN_MENU));
|
|
478
478
|
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));
|
|
479
479
|
const { hamburger: t, hamburgerIcon: n, mobileMenu: o } = ye("showMobileMenu");
|
|
480
480
|
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"), document.body.style.position = "relative";
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Xe(e, t) {
|
|
483
483
|
e.querySelectorAll(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)).forEach((o) => {
|
|
484
484
|
o.classList.remove(a.ACTION_ITEM__SELECTED);
|
|
485
485
|
const r = o.querySelector("button");
|
|
@@ -492,10 +492,10 @@ function Ze(e, t) {
|
|
|
492
492
|
throw new Error("showActionItem: actionWrapper does not have actionItem B");
|
|
493
493
|
n.setAttribute("aria-selected", "true"), n.removeAttribute("tabIndex"), n.focus();
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Nt(e, t) {
|
|
496
496
|
e.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach((n) => n.classList.remove(a.IS_OPEN)), t.classList.add(a.IS_OPEN);
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function at(e, t, n, {
|
|
499
499
|
ariaHasPopupType: o,
|
|
500
500
|
additionalOnClick: r,
|
|
501
501
|
onClickHandler: i,
|
|
@@ -539,11 +539,11 @@ function it(e, t, n, {
|
|
|
539
539
|
if (e.onclick = (v) => {
|
|
540
540
|
if (!(i != null && i(v)))
|
|
541
541
|
if (r == null || r(v), l.classList.contains(a.IS_OPEN))
|
|
542
|
-
u &&
|
|
542
|
+
u && Ge();
|
|
543
543
|
else {
|
|
544
|
-
|
|
545
|
-
const
|
|
546
|
-
|
|
544
|
+
Ln();
|
|
545
|
+
const b = ee(t);
|
|
546
|
+
b && Nt(c, b), Xe(s, ee(n));
|
|
547
547
|
}
|
|
548
548
|
}, t) {
|
|
549
549
|
if (d !== e && d.onclick)
|
|
@@ -551,28 +551,28 @@ function it(e, t, n, {
|
|
|
551
551
|
d.onclick = (v) => {
|
|
552
552
|
if (!(i != null && i(v))) {
|
|
553
553
|
const E = ee(t);
|
|
554
|
-
E &&
|
|
554
|
+
E && Nt(c, E), Xe(s, ee(n));
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
const
|
|
559
|
+
const wn = `<div class="utds-header-mobile-menu__action-item" role="tab">
|
|
560
560
|
<button type="button" class="icon-button icon-button--borderless utds-header-action-item__icon-button">
|
|
561
561
|
<div class="utds-header-action-item__title visually-hidden"></div>
|
|
562
562
|
<span aria-hidden="true" role="presentation">
|
|
563
563
|
</button>
|
|
564
564
|
<span class="menu-chiclet"></span>
|
|
565
565
|
</div>
|
|
566
|
-
`,
|
|
566
|
+
`, yn = `<div class="utds-header-action-item-menu">
|
|
567
567
|
<div class="vertical-menu__wrapper-title"></div>
|
|
568
568
|
</div>
|
|
569
|
-
`,
|
|
570
|
-
`,
|
|
569
|
+
`, Nn = `<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
|
|
570
|
+
`, st = `<span class="utds-new-tab-link-a11y">
|
|
571
571
|
<span class="visually-hidden">, opens in a new tab</span>
|
|
572
572
|
<span class="utds-icon-after-external-link" aria-hidden="true"></span>
|
|
573
573
|
</span>
|
|
574
|
-
`,
|
|
575
|
-
`,
|
|
574
|
+
`, Pn = `<ul class="vertical-menu" role="menu" />
|
|
575
|
+
`, Sn = `<li class="vertical-menu__item">
|
|
576
576
|
<span class="vertical-menu__title">
|
|
577
577
|
<span class="vertical-menu__plain-title"></span>
|
|
578
578
|
<a href="#" class="vertical-menu__link-title">
|
|
@@ -585,16 +585,16 @@ const Ln = `<div class="utds-header-mobile-menu__action-item" role="tab">
|
|
|
585
585
|
<span class="vertical-menu__divider" />
|
|
586
586
|
</li>
|
|
587
587
|
`;
|
|
588
|
-
function
|
|
588
|
+
function Qe(e, t, n) {
|
|
589
589
|
var r;
|
|
590
590
|
let o = !1;
|
|
591
|
-
return e && (Array.isArray(e) ? o = e.some((i) =>
|
|
591
|
+
return e && (Array.isArray(e) ? o = e.some((i) => Qe(i, t, n)) : (o = n(e), o || (o = !!((r = t == null ? void 0 : t.filter((i) => e[i])) != null && r.some((i) => Qe(e[i], t, n)))))), o;
|
|
592
592
|
}
|
|
593
|
-
var q = "top", z = "bottom", K = "right", V = "left",
|
|
593
|
+
var q = "top", z = "bottom", K = "right", V = "left", lt = "auto", Ce = [q, z, K, V], fe = "start", Ne = "end", Un = "clippingParents", zt = "viewport", Te = "popper", Cn = "reference", Pt = /* @__PURE__ */ Ce.reduce(function(e, t) {
|
|
594
594
|
return e.concat([t + "-" + fe, t + "-" + Ne]);
|
|
595
|
-
}, []),
|
|
595
|
+
}, []), Kt = /* @__PURE__ */ [].concat(Ce, [lt]).reduce(function(e, t) {
|
|
596
596
|
return e.concat([t, t + "-" + fe, t + "-" + Ne]);
|
|
597
|
-
}, []),
|
|
597
|
+
}, []), Rn = "beforeRead", Dn = "read", Hn = "afterRead", Bn = "beforeMain", xn = "main", kn = "afterMain", Wn = "beforeWrite", Fn = "write", qn = "afterWrite", Vn = [Rn, Dn, Hn, Bn, xn, kn, Wn, Fn, qn];
|
|
598
598
|
function ne(e) {
|
|
599
599
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
600
600
|
}
|
|
@@ -615,13 +615,13 @@ function Y(e) {
|
|
|
615
615
|
var t = $(e).HTMLElement;
|
|
616
616
|
return e instanceof t || e instanceof HTMLElement;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function ct(e) {
|
|
619
619
|
if (typeof ShadowRoot > "u")
|
|
620
620
|
return !1;
|
|
621
621
|
var t = $(e).ShadowRoot;
|
|
622
622
|
return e instanceof t || e instanceof ShadowRoot;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Gn(e) {
|
|
625
625
|
var t = e.state;
|
|
626
626
|
Object.keys(t.elements).forEach(function(n) {
|
|
627
627
|
var o = t.styles[n] || {}, r = t.attributes[n] || {}, i = t.elements[n];
|
|
@@ -631,7 +631,7 @@ function Vn(e) {
|
|
|
631
631
|
}));
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function $n(e) {
|
|
635
635
|
var t = e.state, n = {
|
|
636
636
|
popper: {
|
|
637
637
|
position: t.options.strategy,
|
|
@@ -655,32 +655,32 @@ function Gn(e) {
|
|
|
655
655
|
});
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
|
-
const
|
|
658
|
+
const Yn = {
|
|
659
659
|
name: "applyStyles",
|
|
660
660
|
enabled: !0,
|
|
661
661
|
phase: "write",
|
|
662
|
-
fn:
|
|
663
|
-
effect:
|
|
662
|
+
fn: Gn,
|
|
663
|
+
effect: $n,
|
|
664
664
|
requires: ["computeStyles"]
|
|
665
665
|
};
|
|
666
666
|
function te(e) {
|
|
667
667
|
return e.split("-")[0];
|
|
668
668
|
}
|
|
669
|
-
var le = Math.max,
|
|
670
|
-
function
|
|
669
|
+
var le = Math.max, Ve = Math.min, _e = Math.round;
|
|
670
|
+
function Je() {
|
|
671
671
|
var e = navigator.userAgentData;
|
|
672
672
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
673
673
|
return t.brand + "/" + t.version;
|
|
674
674
|
}).join(" ") : navigator.userAgent;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
676
|
+
function jt() {
|
|
677
|
+
return !/^((?!chrome|android).)*safari/i.test(Je());
|
|
678
678
|
}
|
|
679
679
|
function he(e, t, n) {
|
|
680
680
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
681
681
|
var o = e.getBoundingClientRect(), r = 1, i = 1;
|
|
682
682
|
t && Y(e) && (r = e.offsetWidth > 0 && _e(o.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && _e(o.height) / e.offsetHeight || 1);
|
|
683
|
-
var u = ce(e) ? $(e) : window, l = u.visualViewport, s = !
|
|
683
|
+
var u = ce(e) ? $(e) : window, l = u.visualViewport, s = !jt() && n, c = (o.left + (s && l ? l.offsetLeft : 0)) / r, d = (o.top + (s && l ? l.offsetTop : 0)) / i, _ = o.width / r, h = o.height / i;
|
|
684
684
|
return {
|
|
685
685
|
width: _,
|
|
686
686
|
height: h,
|
|
@@ -692,7 +692,7 @@ function he(e, t, n) {
|
|
|
692
692
|
y: d
|
|
693
693
|
};
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function ut(e) {
|
|
696
696
|
var t = he(e), n = e.offsetWidth, o = e.offsetHeight;
|
|
697
697
|
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), {
|
|
698
698
|
x: e.offsetLeft,
|
|
@@ -701,11 +701,11 @@ function ct(e) {
|
|
|
701
701
|
height: o
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function Zt(e, t) {
|
|
705
705
|
var n = t.getRootNode && t.getRootNode();
|
|
706
706
|
if (e.contains(t))
|
|
707
707
|
return !0;
|
|
708
|
-
if (n &&
|
|
708
|
+
if (n && ct(n)) {
|
|
709
709
|
var o = t;
|
|
710
710
|
do {
|
|
711
711
|
if (o && e.isSameNode(o))
|
|
@@ -718,7 +718,7 @@ function jt(e, t) {
|
|
|
718
718
|
function oe(e) {
|
|
719
719
|
return $(e).getComputedStyle(e);
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function zn(e) {
|
|
722
722
|
return ["table", "td", "th"].indexOf(ne(e)) >= 0;
|
|
723
723
|
}
|
|
724
724
|
function ie(e) {
|
|
@@ -727,31 +727,31 @@ function ie(e) {
|
|
|
727
727
|
e.document
|
|
728
728
|
)) || window.document).documentElement;
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function $e(e) {
|
|
731
731
|
return ne(e) === "html" ? e : (
|
|
732
732
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
733
733
|
// $FlowFixMe[incompatible-return]
|
|
734
734
|
// $FlowFixMe[prop-missing]
|
|
735
735
|
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
736
736
|
e.parentNode || // DOM Element detected
|
|
737
|
-
(
|
|
737
|
+
(ct(e) ? e.host : null) || // ShadowRoot detected
|
|
738
738
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
739
739
|
ie(e)
|
|
740
740
|
);
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function St(e) {
|
|
743
743
|
return !Y(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
744
744
|
oe(e).position === "fixed" ? null : e.offsetParent;
|
|
745
745
|
}
|
|
746
|
-
function
|
|
747
|
-
var t = /firefox/i.test(
|
|
746
|
+
function Kn(e) {
|
|
747
|
+
var t = /firefox/i.test(Je()), n = /Trident/i.test(Je());
|
|
748
748
|
if (n && Y(e)) {
|
|
749
749
|
var o = oe(e);
|
|
750
750
|
if (o.position === "fixed")
|
|
751
751
|
return null;
|
|
752
752
|
}
|
|
753
|
-
var r =
|
|
754
|
-
for (
|
|
753
|
+
var r = $e(e);
|
|
754
|
+
for (ct(r) && (r = r.host); Y(r) && ["html", "body"].indexOf(ne(r)) < 0; ) {
|
|
755
755
|
var i = oe(r);
|
|
756
756
|
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")
|
|
757
757
|
return r;
|
|
@@ -760,21 +760,21 @@ function zn(e) {
|
|
|
760
760
|
return null;
|
|
761
761
|
}
|
|
762
762
|
function Re(e) {
|
|
763
|
-
for (var t = $(e), n =
|
|
764
|
-
n =
|
|
765
|
-
return n && (ne(n) === "html" || ne(n) === "body" && oe(n).position === "static") ? t : n ||
|
|
763
|
+
for (var t = $(e), n = St(e); n && zn(n) && oe(n).position === "static"; )
|
|
764
|
+
n = St(n);
|
|
765
|
+
return n && (ne(n) === "html" || ne(n) === "body" && oe(n).position === "static") ? t : n || Kn(e) || t;
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function dt(e) {
|
|
768
768
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
769
769
|
}
|
|
770
770
|
function Oe(e, t, n) {
|
|
771
|
-
return le(e,
|
|
771
|
+
return le(e, Ve(t, n));
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function jn(e, t, n) {
|
|
774
774
|
var o = Oe(e, t, n);
|
|
775
775
|
return o > n ? n : o;
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function Xt() {
|
|
778
778
|
return {
|
|
779
779
|
top: 0,
|
|
780
780
|
right: 0,
|
|
@@ -782,56 +782,56 @@ function Zt() {
|
|
|
782
782
|
left: 0
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
|
-
function
|
|
786
|
-
return Object.assign({},
|
|
785
|
+
function Qt(e) {
|
|
786
|
+
return Object.assign({}, Xt(), e);
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function Jt(e, t) {
|
|
789
789
|
return t.reduce(function(n, o) {
|
|
790
790
|
return n[o] = e, n;
|
|
791
791
|
}, {});
|
|
792
792
|
}
|
|
793
|
-
var
|
|
793
|
+
var Zn = function(t, n) {
|
|
794
794
|
return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
|
|
795
795
|
placement: n.placement
|
|
796
|
-
})) : t,
|
|
796
|
+
})) : t, Qt(typeof t != "number" ? t : Jt(t, Ce));
|
|
797
797
|
};
|
|
798
|
-
function
|
|
799
|
-
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets, l = te(n.placement), s =
|
|
798
|
+
function Xn(e) {
|
|
799
|
+
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets, l = te(n.placement), s = dt(l), c = [V, K].indexOf(l) >= 0, d = c ? "height" : "width";
|
|
800
800
|
if (!(!i || !u)) {
|
|
801
|
-
var _ =
|
|
801
|
+
var _ = Zn(r.padding, n), h = ut(i), m = s === "y" ? q : V, f = s === "y" ? z : K, v = n.rects.reference[d] + n.rects.reference[s] - u[s] - n.rects.popper[d], E = u[s] - n.rects.reference[s], b = Re(i), g = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, L = v / 2 - E / 2, I = _[m], M = g - h[d] - _[f], A = g / 2 - h[d] / 2 + L, y = Oe(I, A, M), P = s;
|
|
802
802
|
n.modifiersData[o] = (t = {}, t[P] = y, t.centerOffset = y - A, t);
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function Qn(e) {
|
|
806
806
|
var t = e.state, n = e.options, o = n.element, r = o === void 0 ? "[data-popper-arrow]" : o;
|
|
807
|
-
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) ||
|
|
807
|
+
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || Zt(t.elements.popper, r) && (t.elements.arrow = r));
|
|
808
808
|
}
|
|
809
|
-
const
|
|
809
|
+
const Jn = {
|
|
810
810
|
name: "arrow",
|
|
811
811
|
enabled: !0,
|
|
812
812
|
phase: "main",
|
|
813
|
-
fn:
|
|
814
|
-
effect:
|
|
813
|
+
fn: Xn,
|
|
814
|
+
effect: Qn,
|
|
815
815
|
requires: ["popperOffsets"],
|
|
816
816
|
requiresIfExists: ["preventOverflow"]
|
|
817
817
|
};
|
|
818
818
|
function me(e) {
|
|
819
819
|
return e.split("-")[1];
|
|
820
820
|
}
|
|
821
|
-
var
|
|
821
|
+
var eo = {
|
|
822
822
|
top: "auto",
|
|
823
823
|
right: "auto",
|
|
824
824
|
bottom: "auto",
|
|
825
825
|
left: "auto"
|
|
826
826
|
};
|
|
827
|
-
function
|
|
827
|
+
function to(e, t) {
|
|
828
828
|
var n = e.x, o = e.y, r = t.devicePixelRatio || 1;
|
|
829
829
|
return {
|
|
830
830
|
x: _e(n * r) / r || 0,
|
|
831
831
|
y: _e(o * r) / r || 0
|
|
832
832
|
};
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Ut(e) {
|
|
835
835
|
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, h = u.x, m = h === void 0 ? 0 : h, f = u.y, v = f === void 0 ? 0 : f, E = typeof d == "function" ? d({
|
|
836
836
|
x: m,
|
|
837
837
|
y: v
|
|
@@ -840,11 +840,11 @@ function St(e) {
|
|
|
840
840
|
y: v
|
|
841
841
|
};
|
|
842
842
|
m = E.x, v = E.y;
|
|
843
|
-
var
|
|
843
|
+
var b = u.hasOwnProperty("x"), g = u.hasOwnProperty("y"), L = V, I = q, M = window;
|
|
844
844
|
if (c) {
|
|
845
845
|
var A = Re(n), y = "clientHeight", P = "clientWidth";
|
|
846
846
|
if (A === $(n) && (A = ie(n), oe(A).position !== "static" && l === "absolute" && (y = "scrollHeight", P = "scrollWidth")), A = A, r === q || (r === V || r === K) && i === Ne) {
|
|
847
|
-
|
|
847
|
+
I = z;
|
|
848
848
|
var C = _ && A === M && M.visualViewport ? M.visualViewport.height : (
|
|
849
849
|
// $FlowFixMe[prop-missing]
|
|
850
850
|
A[y]
|
|
@@ -862,7 +862,7 @@ function St(e) {
|
|
|
862
862
|
}
|
|
863
863
|
var R = Object.assign({
|
|
864
864
|
position: l
|
|
865
|
-
}, c &&
|
|
865
|
+
}, c && eo), W = d === !0 ? to({
|
|
866
866
|
x: m,
|
|
867
867
|
y: v
|
|
868
868
|
}, $(n)) : {
|
|
@@ -871,11 +871,11 @@ function St(e) {
|
|
|
871
871
|
};
|
|
872
872
|
if (m = W.x, v = W.y, s) {
|
|
873
873
|
var D;
|
|
874
|
-
return Object.assign({}, R, (D = {}, D[
|
|
874
|
+
return Object.assign({}, R, (D = {}, D[I] = g ? "0" : "", D[L] = b ? "0" : "", D.transform = (M.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + v + "px)" : "translate3d(" + m + "px, " + v + "px, 0)", D));
|
|
875
875
|
}
|
|
876
|
-
return Object.assign({}, R, (t = {}, t[
|
|
876
|
+
return Object.assign({}, R, (t = {}, t[I] = g ? v + "px" : "", t[L] = b ? m + "px" : "", t.transform = "", t));
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function no(e) {
|
|
879
879
|
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 = {
|
|
880
880
|
placement: te(t.placement),
|
|
881
881
|
variation: me(t.placement),
|
|
@@ -884,12 +884,12 @@ function to(e) {
|
|
|
884
884
|
gpuAcceleration: r,
|
|
885
885
|
isFixed: t.options.strategy === "fixed"
|
|
886
886
|
};
|
|
887
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
887
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ut(Object.assign({}, c, {
|
|
888
888
|
offsets: t.modifiersData.popperOffsets,
|
|
889
889
|
position: t.options.strategy,
|
|
890
890
|
adaptive: u,
|
|
891
891
|
roundOffsets: s
|
|
892
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
892
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ut(Object.assign({}, c, {
|
|
893
893
|
offsets: t.modifiersData.arrow,
|
|
894
894
|
position: "absolute",
|
|
895
895
|
adaptive: !1,
|
|
@@ -898,17 +898,17 @@ function to(e) {
|
|
|
898
898
|
"data-popper-placement": t.placement
|
|
899
899
|
});
|
|
900
900
|
}
|
|
901
|
-
const
|
|
901
|
+
const oo = {
|
|
902
902
|
name: "computeStyles",
|
|
903
903
|
enabled: !0,
|
|
904
904
|
phase: "beforeWrite",
|
|
905
|
-
fn:
|
|
905
|
+
fn: no,
|
|
906
906
|
data: {}
|
|
907
907
|
};
|
|
908
908
|
var xe = {
|
|
909
909
|
passive: !0
|
|
910
910
|
};
|
|
911
|
-
function
|
|
911
|
+
function ro(e) {
|
|
912
912
|
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 = $(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
913
913
|
return i && c.forEach(function(d) {
|
|
914
914
|
d.addEventListener("scroll", n.update, xe);
|
|
@@ -918,61 +918,61 @@ function oo(e) {
|
|
|
918
918
|
}), l && s.removeEventListener("resize", n.update, xe);
|
|
919
919
|
};
|
|
920
920
|
}
|
|
921
|
-
const
|
|
921
|
+
const io = {
|
|
922
922
|
name: "eventListeners",
|
|
923
923
|
enabled: !0,
|
|
924
924
|
phase: "write",
|
|
925
925
|
fn: function() {
|
|
926
926
|
},
|
|
927
|
-
effect:
|
|
927
|
+
effect: ro,
|
|
928
928
|
data: {}
|
|
929
929
|
};
|
|
930
|
-
var
|
|
930
|
+
var ao = {
|
|
931
931
|
left: "right",
|
|
932
932
|
right: "left",
|
|
933
933
|
bottom: "top",
|
|
934
934
|
top: "bottom"
|
|
935
935
|
};
|
|
936
|
-
function
|
|
936
|
+
function Fe(e) {
|
|
937
937
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
938
|
-
return
|
|
938
|
+
return ao[t];
|
|
939
939
|
});
|
|
940
940
|
}
|
|
941
|
-
var
|
|
941
|
+
var so = {
|
|
942
942
|
start: "end",
|
|
943
943
|
end: "start"
|
|
944
944
|
};
|
|
945
|
-
function
|
|
945
|
+
function Ct(e) {
|
|
946
946
|
return e.replace(/start|end/g, function(t) {
|
|
947
|
-
return
|
|
947
|
+
return so[t];
|
|
948
948
|
});
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function pt(e) {
|
|
951
951
|
var t = $(e), n = t.pageXOffset, o = t.pageYOffset;
|
|
952
952
|
return {
|
|
953
953
|
scrollLeft: n,
|
|
954
954
|
scrollTop: o
|
|
955
955
|
};
|
|
956
956
|
}
|
|
957
|
-
function
|
|
958
|
-
return he(ie(e)).left +
|
|
957
|
+
function ft(e) {
|
|
958
|
+
return he(ie(e)).left + pt(e).scrollLeft;
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function lo(e, t) {
|
|
961
961
|
var n = $(e), o = ie(e), r = n.visualViewport, i = o.clientWidth, u = o.clientHeight, l = 0, s = 0;
|
|
962
962
|
if (r) {
|
|
963
963
|
i = r.width, u = r.height;
|
|
964
|
-
var c =
|
|
964
|
+
var c = jt();
|
|
965
965
|
(c || !c && t === "fixed") && (l = r.offsetLeft, s = r.offsetTop);
|
|
966
966
|
}
|
|
967
967
|
return {
|
|
968
968
|
width: i,
|
|
969
969
|
height: u,
|
|
970
|
-
x: l +
|
|
970
|
+
x: l + ft(e),
|
|
971
971
|
y: s
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
var t, n = ie(e), o =
|
|
974
|
+
function co(e) {
|
|
975
|
+
var t, n = ie(e), o = pt(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, i = le(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), u = le(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), l = -o.scrollLeft + ft(e), s = -o.scrollTop;
|
|
976
976
|
return oe(r || n).direction === "rtl" && (l += le(n.clientWidth, r ? r.clientWidth : 0) - i), {
|
|
977
977
|
width: i,
|
|
978
978
|
height: u,
|
|
@@ -980,23 +980,23 @@ function lo(e) {
|
|
|
980
980
|
y: s
|
|
981
981
|
};
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function _t(e) {
|
|
984
984
|
var t = oe(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
|
|
985
985
|
return /auto|scroll|overlay|hidden/.test(n + r + o);
|
|
986
986
|
}
|
|
987
|
-
function
|
|
988
|
-
return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : Y(e) &&
|
|
987
|
+
function en(e) {
|
|
988
|
+
return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : Y(e) && _t(e) ? e : en($e(e));
|
|
989
989
|
}
|
|
990
990
|
function Le(e, t) {
|
|
991
991
|
var n;
|
|
992
992
|
t === void 0 && (t = []);
|
|
993
|
-
var o =
|
|
993
|
+
var o = en(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = $(o), u = r ? [i].concat(i.visualViewport || [], _t(o) ? o : []) : o, l = t.concat(u);
|
|
994
994
|
return r ? l : (
|
|
995
995
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
996
|
-
l.concat(Le(
|
|
996
|
+
l.concat(Le($e(u)))
|
|
997
997
|
);
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function et(e) {
|
|
1000
1000
|
return Object.assign({}, e, {
|
|
1001
1001
|
left: e.x,
|
|
1002
1002
|
top: e.y,
|
|
@@ -1004,27 +1004,27 @@ function Je(e) {
|
|
|
1004
1004
|
bottom: e.y + e.height
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function uo(e, t) {
|
|
1008
1008
|
var n = he(e, !1, t === "fixed");
|
|
1009
1009
|
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;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return t ===
|
|
1011
|
+
function Rt(e, t, n) {
|
|
1012
|
+
return t === zt ? et(lo(e, n)) : ce(t) ? uo(t, n) : et(co(ie(e)));
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
var t = Le(
|
|
1014
|
+
function po(e) {
|
|
1015
|
+
var t = Le($e(e)), n = ["absolute", "fixed"].indexOf(oe(e).position) >= 0, o = n && Y(e) ? Re(e) : e;
|
|
1016
1016
|
return ce(o) ? t.filter(function(r) {
|
|
1017
|
-
return ce(r) &&
|
|
1017
|
+
return ce(r) && Zt(r, o) && ne(r) !== "body";
|
|
1018
1018
|
}) : [];
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
var r = t === "clippingParents" ?
|
|
1022
|
-
var d =
|
|
1023
|
-
return s.top = le(d.top, s.top), s.right =
|
|
1024
|
-
},
|
|
1020
|
+
function fo(e, t, n, o) {
|
|
1021
|
+
var r = t === "clippingParents" ? po(e) : [].concat(t), i = [].concat(r, [n]), u = i[0], l = i.reduce(function(s, c) {
|
|
1022
|
+
var d = Rt(e, c, o);
|
|
1023
|
+
return s.top = le(d.top, s.top), s.right = Ve(d.right, s.right), s.bottom = Ve(d.bottom, s.bottom), s.left = le(d.left, s.left), s;
|
|
1024
|
+
}, Rt(e, u, o));
|
|
1025
1025
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function tn(e) {
|
|
1028
1028
|
var t = e.reference, n = e.element, o = e.placement, r = o ? te(o) : null, i = o ? me(o) : null, u = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, s;
|
|
1029
1029
|
switch (r) {
|
|
1030
1030
|
case q:
|
|
@@ -1057,7 +1057,7 @@ function en(e) {
|
|
|
1057
1057
|
y: t.y
|
|
1058
1058
|
};
|
|
1059
1059
|
}
|
|
1060
|
-
var c = r ?
|
|
1060
|
+
var c = r ? dt(r) : null;
|
|
1061
1061
|
if (c != null) {
|
|
1062
1062
|
var d = c === "y" ? "height" : "width";
|
|
1063
1063
|
switch (i) {
|
|
@@ -1073,16 +1073,16 @@ function en(e) {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
function Pe(e, t) {
|
|
1075
1075
|
t === void 0 && (t = {});
|
|
1076
|
-
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 ?
|
|
1076
|
+
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 ? Un : l, c = n.rootBoundary, d = c === void 0 ? zt : c, _ = n.elementContext, h = _ === void 0 ? Te : _, m = n.altBoundary, f = m === void 0 ? !1 : m, v = n.padding, E = v === void 0 ? 0 : v, b = Qt(typeof E != "number" ? E : Jt(E, Ce)), g = h === Te ? Cn : Te, L = e.rects.popper, I = e.elements[f ? g : h], M = fo(ce(I) ? I : I.contextElement || ie(e.elements.popper), s, d, u), A = he(e.elements.reference), y = tn({
|
|
1077
1077
|
reference: A,
|
|
1078
1078
|
element: L,
|
|
1079
1079
|
strategy: "absolute",
|
|
1080
1080
|
placement: r
|
|
1081
|
-
}), P =
|
|
1082
|
-
top: M.top - C.top +
|
|
1083
|
-
bottom: C.bottom - M.bottom +
|
|
1084
|
-
left: M.left - C.left +
|
|
1085
|
-
right: C.right - M.right +
|
|
1081
|
+
}), P = et(Object.assign({}, L, y)), C = h === Te ? P : A, U = {
|
|
1082
|
+
top: M.top - C.top + b.top,
|
|
1083
|
+
bottom: C.bottom - M.bottom + b.bottom,
|
|
1084
|
+
left: M.left - C.left + b.left,
|
|
1085
|
+
right: C.right - M.right + b.right
|
|
1086
1086
|
}, R = e.modifiersData.offset;
|
|
1087
1087
|
if (h === Te && R) {
|
|
1088
1088
|
var W = R[r];
|
|
@@ -1093,9 +1093,9 @@ function Pe(e, t) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
return U;
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function _o(e, t) {
|
|
1097
1097
|
t === void 0 && (t = {});
|
|
1098
|
-
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 ?
|
|
1098
|
+
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 = me(o), _ = d ? l ? Pt : Pt.filter(function(f) {
|
|
1099
1099
|
return me(f) === d;
|
|
1100
1100
|
}) : Ce, h = _.filter(function(f) {
|
|
1101
1101
|
return c.indexOf(f) >= 0;
|
|
@@ -1113,17 +1113,17 @@ function fo(e, t) {
|
|
|
1113
1113
|
return m[f] - m[v];
|
|
1114
1114
|
});
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
if (te(e) ===
|
|
1116
|
+
function ho(e) {
|
|
1117
|
+
if (te(e) === lt)
|
|
1118
1118
|
return [];
|
|
1119
|
-
var t =
|
|
1120
|
-
return [
|
|
1119
|
+
var t = Fe(e);
|
|
1120
|
+
return [Ct(e), t, Ct(t)];
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1122
|
+
function mo(e) {
|
|
1123
1123
|
var t = e.state, n = e.options, o = e.name;
|
|
1124
1124
|
if (!t.modifiersData[o]._skip) {
|
|
1125
|
-
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, h = n.altBoundary, m = n.flipVariations, f = m === void 0 ? !0 : m, v = n.allowedAutoPlacements, E = t.options.placement,
|
|
1126
|
-
return de.concat(te(re) ===
|
|
1125
|
+
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, h = n.altBoundary, m = n.flipVariations, f = m === void 0 ? !0 : m, v = n.allowedAutoPlacements, E = t.options.placement, b = te(E), g = b === E, L = s || (g || !f ? [Fe(E)] : ho(E)), I = [E].concat(L).reduce(function(de, re) {
|
|
1126
|
+
return de.concat(te(re) === lt ? _o(t, {
|
|
1127
1127
|
placement: re,
|
|
1128
1128
|
boundary: d,
|
|
1129
1129
|
rootBoundary: _,
|
|
@@ -1131,16 +1131,16 @@ function ho(e) {
|
|
|
1131
1131
|
flipVariations: f,
|
|
1132
1132
|
allowedAutoPlacements: v
|
|
1133
1133
|
}) : re);
|
|
1134
|
-
}, []), M = t.rects.reference, A = t.rects.popper, y = /* @__PURE__ */ new Map(), P = !0, C =
|
|
1135
|
-
var R =
|
|
1134
|
+
}, []), M = t.rects.reference, A = t.rects.popper, y = /* @__PURE__ */ new Map(), P = !0, C = I[0], U = 0; U < I.length; U++) {
|
|
1135
|
+
var R = I[U], W = te(R), D = me(R) === fe, X = [q, z].indexOf(W) >= 0, Q = X ? "width" : "height", B = Pe(t, {
|
|
1136
1136
|
placement: R,
|
|
1137
1137
|
boundary: d,
|
|
1138
1138
|
rootBoundary: _,
|
|
1139
1139
|
altBoundary: h,
|
|
1140
1140
|
padding: c
|
|
1141
1141
|
}), F = X ? D ? K : V : D ? z : q;
|
|
1142
|
-
M[Q] > A[Q] && (F =
|
|
1143
|
-
var ve =
|
|
1142
|
+
M[Q] > A[Q] && (F = Fe(F));
|
|
1143
|
+
var ve = Fe(F), x = [];
|
|
1144
1144
|
if (i && x.push(B[W] <= 0), l && x.push(B[F] <= 0, B[ve] <= 0), x.every(function(de) {
|
|
1145
1145
|
return de;
|
|
1146
1146
|
})) {
|
|
@@ -1151,11 +1151,11 @@ function ho(e) {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
if (P)
|
|
1153
1153
|
for (var be = f ? 3 : 1, De = function(re) {
|
|
1154
|
-
var Ie =
|
|
1154
|
+
var Ie = I.find(function(He) {
|
|
1155
1155
|
var ae = y.get(He);
|
|
1156
1156
|
if (ae)
|
|
1157
|
-
return ae.slice(0, re).every(function(
|
|
1158
|
-
return
|
|
1157
|
+
return ae.slice(0, re).every(function(Ye) {
|
|
1158
|
+
return Ye;
|
|
1159
1159
|
});
|
|
1160
1160
|
});
|
|
1161
1161
|
if (Ie)
|
|
@@ -1168,17 +1168,17 @@ function ho(e) {
|
|
|
1168
1168
|
t.placement !== C && (t.modifiersData[o]._skip = !0, t.placement = C, t.reset = !0);
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
|
-
const
|
|
1171
|
+
const Eo = {
|
|
1172
1172
|
name: "flip",
|
|
1173
1173
|
enabled: !0,
|
|
1174
1174
|
phase: "main",
|
|
1175
|
-
fn:
|
|
1175
|
+
fn: mo,
|
|
1176
1176
|
requiresIfExists: ["offset"],
|
|
1177
1177
|
data: {
|
|
1178
1178
|
_skip: !1
|
|
1179
1179
|
}
|
|
1180
1180
|
};
|
|
1181
|
-
function
|
|
1181
|
+
function Dt(e, t, n) {
|
|
1182
1182
|
return n === void 0 && (n = {
|
|
1183
1183
|
x: 0,
|
|
1184
1184
|
y: 0
|
|
@@ -1189,17 +1189,17 @@ function Rt(e, t, n) {
|
|
|
1189
1189
|
left: e.left - t.width - n.x
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function Ht(e) {
|
|
1193
1193
|
return [q, K, z, V].some(function(t) {
|
|
1194
1194
|
return e[t] >= 0;
|
|
1195
1195
|
});
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function vo(e) {
|
|
1198
1198
|
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, u = Pe(t, {
|
|
1199
1199
|
elementContext: "reference"
|
|
1200
1200
|
}), l = Pe(t, {
|
|
1201
1201
|
altBoundary: !0
|
|
1202
|
-
}), s =
|
|
1202
|
+
}), s = Dt(u, o), c = Dt(l, r, i), d = Ht(s), _ = Ht(c);
|
|
1203
1203
|
t.modifiersData[n] = {
|
|
1204
1204
|
referenceClippingOffsets: s,
|
|
1205
1205
|
popperEscapeOffsets: c,
|
|
@@ -1210,14 +1210,14 @@ function Eo(e) {
|
|
|
1210
1210
|
"data-popper-escaped": _
|
|
1211
1211
|
});
|
|
1212
1212
|
}
|
|
1213
|
-
const
|
|
1213
|
+
const bo = {
|
|
1214
1214
|
name: "hide",
|
|
1215
1215
|
enabled: !0,
|
|
1216
1216
|
phase: "main",
|
|
1217
1217
|
requiresIfExists: ["preventOverflow"],
|
|
1218
|
-
fn:
|
|
1218
|
+
fn: vo
|
|
1219
1219
|
};
|
|
1220
|
-
function
|
|
1220
|
+
function Io(e, t, n) {
|
|
1221
1221
|
var o = te(e), r = [V, q].indexOf(o) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
|
|
1222
1222
|
placement: e
|
|
1223
1223
|
})) : n, u = i[0], l = i[1];
|
|
@@ -1229,45 +1229,45 @@ function bo(e, t, n) {
|
|
|
1229
1229
|
y: l
|
|
1230
1230
|
};
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1233
|
-
var t = e.state, n = e.options, o = e.name, r = n.offset, i = r === void 0 ? [0, 0] : r, u =
|
|
1234
|
-
return d[_] =
|
|
1232
|
+
function To(e) {
|
|
1233
|
+
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, _) {
|
|
1234
|
+
return d[_] = Io(_, t.rects, i), d;
|
|
1235
1235
|
}, {}), l = u[t.placement], s = l.x, c = l.y;
|
|
1236
1236
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += c), t.modifiersData[o] = u;
|
|
1237
1237
|
}
|
|
1238
|
-
const
|
|
1238
|
+
const go = {
|
|
1239
1239
|
name: "offset",
|
|
1240
1240
|
enabled: !0,
|
|
1241
1241
|
phase: "main",
|
|
1242
1242
|
requires: ["popperOffsets"],
|
|
1243
|
-
fn:
|
|
1243
|
+
fn: To
|
|
1244
1244
|
};
|
|
1245
|
-
function
|
|
1245
|
+
function Mo(e) {
|
|
1246
1246
|
var t = e.state, n = e.name;
|
|
1247
|
-
t.modifiersData[n] =
|
|
1247
|
+
t.modifiersData[n] = tn({
|
|
1248
1248
|
reference: t.rects.reference,
|
|
1249
1249
|
element: t.rects.popper,
|
|
1250
1250
|
strategy: "absolute",
|
|
1251
1251
|
placement: t.placement
|
|
1252
1252
|
});
|
|
1253
1253
|
}
|
|
1254
|
-
const
|
|
1254
|
+
const Ao = {
|
|
1255
1255
|
name: "popperOffsets",
|
|
1256
1256
|
enabled: !0,
|
|
1257
1257
|
phase: "read",
|
|
1258
|
-
fn:
|
|
1258
|
+
fn: Mo,
|
|
1259
1259
|
data: {}
|
|
1260
1260
|
};
|
|
1261
|
-
function
|
|
1261
|
+
function Oo(e) {
|
|
1262
1262
|
return e === "x" ? "y" : "x";
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Lo(e) {
|
|
1265
1265
|
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, h = n.tether, m = h === void 0 ? !0 : h, f = n.tetherOffset, v = f === void 0 ? 0 : f, E = Pe(t, {
|
|
1266
1266
|
boundary: s,
|
|
1267
1267
|
rootBoundary: c,
|
|
1268
1268
|
padding: _,
|
|
1269
1269
|
altBoundary: d
|
|
1270
|
-
}),
|
|
1270
|
+
}), b = te(t.placement), g = me(t.placement), L = !g, I = dt(b), M = Oo(I), A = t.modifiersData.popperOffsets, y = t.rects.reference, P = t.rects.popper, C = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
|
1271
1271
|
placement: t.placement
|
|
1272
1272
|
})) : v, U = typeof C == "number" ? {
|
|
1273
1273
|
mainAxis: C,
|
|
@@ -1281,42 +1281,42 @@ function Oo(e) {
|
|
|
1281
1281
|
};
|
|
1282
1282
|
if (A) {
|
|
1283
1283
|
if (i) {
|
|
1284
|
-
var D, X =
|
|
1284
|
+
var D, X = I === "y" ? q : V, Q = I === "y" ? z : K, B = I === "y" ? "height" : "width", F = A[I], ve = F + E[X], x = F - E[Q], be = m ? -P[B] / 2 : 0, De = g === fe ? y[B] : P[B], S = g === fe ? -P[B] : -y[B], ue = t.elements.arrow, de = m && ue ? ut(ue) : {
|
|
1285
1285
|
width: 0,
|
|
1286
1286
|
height: 0
|
|
1287
|
-
}, re = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
1288
|
-
A[
|
|
1287
|
+
}, re = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Xt(), Ie = re[X], He = re[Q], ae = Oe(0, y[B], de[B]), Ye = L ? y[B] / 2 - be - ae - Ie - U.mainAxis : De - ae - Ie - U.mainAxis, _n = L ? -y[B] / 2 + be + ae + He + U.mainAxis : S + ae + He + U.mainAxis, ze = t.elements.arrow && Re(t.elements.arrow), hn = ze ? I === "y" ? ze.clientTop || 0 : ze.clientLeft || 0 : 0, bt = (D = R == null ? void 0 : R[I]) != null ? D : 0, mn = F + Ye - bt - hn, En = F + _n - bt, It = Oe(m ? Ve(ve, mn) : ve, F, m ? le(x, En) : x);
|
|
1288
|
+
A[I] = It, W[I] = It - F;
|
|
1289
1289
|
}
|
|
1290
1290
|
if (l) {
|
|
1291
|
-
var
|
|
1292
|
-
A[M] =
|
|
1291
|
+
var Tt, vn = I === "x" ? q : V, bn = I === "x" ? z : K, se = A[M], Be = M === "y" ? "height" : "width", gt = se + E[vn], Mt = se - E[bn], Ke = [q, V].indexOf(b) !== -1, At = (Tt = R == null ? void 0 : R[M]) != null ? Tt : 0, Ot = Ke ? gt : se - y[Be] - P[Be] - At + U.altAxis, Lt = Ke ? se + y[Be] + P[Be] - At - U.altAxis : Mt, wt = m && Ke ? jn(Ot, se, Lt) : Oe(m ? Ot : gt, se, m ? Lt : Mt);
|
|
1292
|
+
A[M] = wt, W[M] = wt - se;
|
|
1293
1293
|
}
|
|
1294
1294
|
t.modifiersData[o] = W;
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
|
-
const
|
|
1297
|
+
const wo = {
|
|
1298
1298
|
name: "preventOverflow",
|
|
1299
1299
|
enabled: !0,
|
|
1300
1300
|
phase: "main",
|
|
1301
|
-
fn:
|
|
1301
|
+
fn: Lo,
|
|
1302
1302
|
requiresIfExists: ["offset"]
|
|
1303
1303
|
};
|
|
1304
|
-
function
|
|
1304
|
+
function yo(e) {
|
|
1305
1305
|
return {
|
|
1306
1306
|
scrollLeft: e.scrollLeft,
|
|
1307
1307
|
scrollTop: e.scrollTop
|
|
1308
1308
|
};
|
|
1309
1309
|
}
|
|
1310
|
-
function yo(e) {
|
|
1311
|
-
return e === $(e) || !Y(e) ? dt(e) : wo(e);
|
|
1312
|
-
}
|
|
1313
1310
|
function No(e) {
|
|
1311
|
+
return e === $(e) || !Y(e) ? pt(e) : yo(e);
|
|
1312
|
+
}
|
|
1313
|
+
function Po(e) {
|
|
1314
1314
|
var t = e.getBoundingClientRect(), n = _e(t.width) / e.offsetWidth || 1, o = _e(t.height) / e.offsetHeight || 1;
|
|
1315
1315
|
return n !== 1 || o !== 1;
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1317
|
+
function So(e, t, n) {
|
|
1318
1318
|
n === void 0 && (n = !1);
|
|
1319
|
-
var o = Y(t), r = Y(t) &&
|
|
1319
|
+
var o = Y(t), r = Y(t) && Po(t), i = ie(t), u = he(e, r, n), l = {
|
|
1320
1320
|
scrollLeft: 0,
|
|
1321
1321
|
scrollTop: 0
|
|
1322
1322
|
}, s = {
|
|
@@ -1324,14 +1324,14 @@ function Po(e, t, n) {
|
|
|
1324
1324
|
y: 0
|
|
1325
1325
|
};
|
|
1326
1326
|
return (o || !o && !n) && ((ne(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1327
|
-
|
|
1327
|
+
_t(i)) && (l = No(t)), Y(t) ? (s = he(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = ft(i))), {
|
|
1328
1328
|
x: u.left + l.scrollLeft - s.x,
|
|
1329
1329
|
y: u.top + l.scrollTop - s.y,
|
|
1330
1330
|
width: u.width,
|
|
1331
1331
|
height: u.height
|
|
1332
1332
|
};
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function Uo(e) {
|
|
1335
1335
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = [];
|
|
1336
1336
|
e.forEach(function(i) {
|
|
1337
1337
|
t.set(i.name, i);
|
|
@@ -1350,15 +1350,15 @@ function So(e) {
|
|
|
1350
1350
|
n.has(i.name) || r(i);
|
|
1351
1351
|
}), o;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1354
|
-
var t =
|
|
1355
|
-
return
|
|
1353
|
+
function Co(e) {
|
|
1354
|
+
var t = Uo(e);
|
|
1355
|
+
return Vn.reduce(function(n, o) {
|
|
1356
1356
|
return n.concat(t.filter(function(r) {
|
|
1357
1357
|
return r.phase === o;
|
|
1358
1358
|
}));
|
|
1359
1359
|
}, []);
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function Ro(e) {
|
|
1362
1362
|
var t;
|
|
1363
1363
|
return function() {
|
|
1364
1364
|
return t || (t = new Promise(function(n) {
|
|
@@ -1368,7 +1368,7 @@ function Co(e) {
|
|
|
1368
1368
|
})), t;
|
|
1369
1369
|
};
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function Do(e) {
|
|
1372
1372
|
var t = e.reduce(function(n, o) {
|
|
1373
1373
|
var r = n[o.name];
|
|
1374
1374
|
return n[o.name] = r ? Object.assign({}, r, o, {
|
|
@@ -1380,27 +1380,27 @@ function Ro(e) {
|
|
|
1380
1380
|
return t[n];
|
|
1381
1381
|
});
|
|
1382
1382
|
}
|
|
1383
|
-
var
|
|
1383
|
+
var Bt = {
|
|
1384
1384
|
placement: "bottom",
|
|
1385
1385
|
modifiers: [],
|
|
1386
1386
|
strategy: "absolute"
|
|
1387
1387
|
};
|
|
1388
|
-
function
|
|
1388
|
+
function xt() {
|
|
1389
1389
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1390
1390
|
t[n] = arguments[n];
|
|
1391
1391
|
return !t.some(function(o) {
|
|
1392
1392
|
return !(o && typeof o.getBoundingClientRect == "function");
|
|
1393
1393
|
});
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function Ho(e) {
|
|
1396
1396
|
e === void 0 && (e = {});
|
|
1397
|
-
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ?
|
|
1397
|
+
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ? Bt : r;
|
|
1398
1398
|
return function(l, s, c) {
|
|
1399
1399
|
c === void 0 && (c = i);
|
|
1400
1400
|
var d = {
|
|
1401
1401
|
placement: "bottom",
|
|
1402
1402
|
orderedModifiers: [],
|
|
1403
|
-
options: Object.assign({},
|
|
1403
|
+
options: Object.assign({}, Bt, i),
|
|
1404
1404
|
modifiersData: {},
|
|
1405
1405
|
elements: {
|
|
1406
1406
|
reference: l,
|
|
@@ -1410,15 +1410,15 @@ function Do(e) {
|
|
|
1410
1410
|
styles: {}
|
|
1411
1411
|
}, _ = [], h = !1, m = {
|
|
1412
1412
|
state: d,
|
|
1413
|
-
setOptions: function(
|
|
1414
|
-
var g = typeof
|
|
1413
|
+
setOptions: function(b) {
|
|
1414
|
+
var g = typeof b == "function" ? b(d.options) : b;
|
|
1415
1415
|
v(), d.options = Object.assign({}, i, d.options, g), d.scrollParents = {
|
|
1416
1416
|
reference: ce(l) ? Le(l) : l.contextElement ? Le(l.contextElement) : [],
|
|
1417
1417
|
popper: Le(s)
|
|
1418
1418
|
};
|
|
1419
|
-
var L =
|
|
1420
|
-
return d.orderedModifiers = L.filter(function(
|
|
1421
|
-
return
|
|
1419
|
+
var L = Co(Do([].concat(o, d.options.modifiers)));
|
|
1420
|
+
return d.orderedModifiers = L.filter(function(I) {
|
|
1421
|
+
return I.enabled;
|
|
1422
1422
|
}), f(), m.update();
|
|
1423
1423
|
},
|
|
1424
1424
|
// Sync update – it will always be executed, even if not necessary. This
|
|
@@ -1428,20 +1428,20 @@ function Do(e) {
|
|
|
1428
1428
|
// prefer the async Popper#update method
|
|
1429
1429
|
forceUpdate: function() {
|
|
1430
1430
|
if (!h) {
|
|
1431
|
-
var
|
|
1432
|
-
if (
|
|
1431
|
+
var b = d.elements, g = b.reference, L = b.popper;
|
|
1432
|
+
if (xt(g, L)) {
|
|
1433
1433
|
d.rects = {
|
|
1434
|
-
reference:
|
|
1435
|
-
popper:
|
|
1434
|
+
reference: So(g, Re(L), d.options.strategy === "fixed"),
|
|
1435
|
+
popper: ut(L)
|
|
1436
1436
|
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(U) {
|
|
1437
1437
|
return d.modifiersData[U.name] = Object.assign({}, U.data);
|
|
1438
1438
|
});
|
|
1439
|
-
for (var
|
|
1439
|
+
for (var I = 0; I < d.orderedModifiers.length; I++) {
|
|
1440
1440
|
if (d.reset === !0) {
|
|
1441
|
-
d.reset = !1,
|
|
1441
|
+
d.reset = !1, I = -1;
|
|
1442
1442
|
continue;
|
|
1443
1443
|
}
|
|
1444
|
-
var M = d.orderedModifiers[
|
|
1444
|
+
var M = d.orderedModifiers[I], A = M.fn, y = M.options, P = y === void 0 ? {} : y, C = M.name;
|
|
1445
1445
|
typeof A == "function" && (d = A({
|
|
1446
1446
|
state: d,
|
|
1447
1447
|
options: P,
|
|
@@ -1454,7 +1454,7 @@ function Do(e) {
|
|
|
1454
1454
|
},
|
|
1455
1455
|
// Async and optimistically optimized update – it will not be executed if
|
|
1456
1456
|
// not necessary (debounced to run at most once-per-tick)
|
|
1457
|
-
update:
|
|
1457
|
+
update: Ro(function() {
|
|
1458
1458
|
return new Promise(function(E) {
|
|
1459
1459
|
m.forceUpdate(), E(d);
|
|
1460
1460
|
});
|
|
@@ -1463,18 +1463,18 @@ function Do(e) {
|
|
|
1463
1463
|
v(), h = !0;
|
|
1464
1464
|
}
|
|
1465
1465
|
};
|
|
1466
|
-
if (!
|
|
1466
|
+
if (!xt(l, s))
|
|
1467
1467
|
return m;
|
|
1468
1468
|
m.setOptions(c).then(function(E) {
|
|
1469
1469
|
!h && c.onFirstUpdate && c.onFirstUpdate(E);
|
|
1470
1470
|
});
|
|
1471
1471
|
function f() {
|
|
1472
1472
|
d.orderedModifiers.forEach(function(E) {
|
|
1473
|
-
var
|
|
1474
|
-
if (typeof
|
|
1475
|
-
var M =
|
|
1473
|
+
var b = E.name, g = E.options, L = g === void 0 ? {} : g, I = E.effect;
|
|
1474
|
+
if (typeof I == "function") {
|
|
1475
|
+
var M = I({
|
|
1476
1476
|
state: d,
|
|
1477
|
-
name:
|
|
1477
|
+
name: b,
|
|
1478
1478
|
instance: m,
|
|
1479
1479
|
options: L
|
|
1480
1480
|
}), A = function() {
|
|
@@ -1491,20 +1491,20 @@ function Do(e) {
|
|
|
1491
1491
|
return m;
|
|
1492
1492
|
};
|
|
1493
1493
|
}
|
|
1494
|
-
var
|
|
1495
|
-
defaultModifiers:
|
|
1494
|
+
var Bo = [io, Ao, oo, Yn, go, Eo, wo, Jn, bo], nn = /* @__PURE__ */ Ho({
|
|
1495
|
+
defaultModifiers: Bo
|
|
1496
1496
|
});
|
|
1497
|
-
function
|
|
1497
|
+
function tt(e, t, n, o) {
|
|
1498
1498
|
t ? (e.classList.remove(o), e.classList.add(n)) : (e.classList.add(o), e.classList.remove(n));
|
|
1499
1499
|
}
|
|
1500
1500
|
let G;
|
|
1501
|
-
const ge = {},
|
|
1501
|
+
const ge = {}, nt = {
|
|
1502
1502
|
SHIFT: "shift-key"
|
|
1503
1503
|
};
|
|
1504
|
-
function
|
|
1504
|
+
function on() {
|
|
1505
1505
|
G && (document.removeEventListener("click", G.globalOnClick), document.removeEventListener("keyup", G.globalOnKeyup), document.removeEventListener("keydown", G.globalOnKeydown), G = null);
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function ot() {
|
|
1508
1508
|
const e = document.querySelectorAll(
|
|
1509
1509
|
`${p(a.UTAH_DESIGN_SYSTEM)} ${p(a.POPUP_WRAPPER)}`
|
|
1510
1510
|
);
|
|
@@ -1514,25 +1514,25 @@ function nt() {
|
|
|
1514
1514
|
const o = document.querySelector(`[aria-controls="${n}"]`);
|
|
1515
1515
|
o && o.setAttribute("aria-expanded", "false");
|
|
1516
1516
|
}
|
|
1517
|
-
|
|
1517
|
+
tt(t, !1, a.POPUP__VISIBLE, a.POPUP__HIDDEN);
|
|
1518
1518
|
});
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1521
|
-
G &&
|
|
1520
|
+
function xo() {
|
|
1521
|
+
G && on(), G = {
|
|
1522
1522
|
globalOnClick: () => {
|
|
1523
1523
|
},
|
|
1524
1524
|
globalOnKeyup: () => {
|
|
1525
1525
|
},
|
|
1526
1526
|
globalOnKeydown: () => {
|
|
1527
1527
|
}
|
|
1528
|
-
}, G.globalOnClick =
|
|
1528
|
+
}, G.globalOnClick = ot, document.addEventListener("click", G.globalOnClick), G.globalOnKeyup = /** @param {KeyboardEvent} e */
|
|
1529
1529
|
(e) => {
|
|
1530
|
-
e.key === "Escape" &&
|
|
1530
|
+
e.key === "Escape" && ot(), e.shiftKey || (ge[nt.SHIFT] = !1), ge[e.key] = !1;
|
|
1531
1531
|
}, document.addEventListener("keyup", G.globalOnKeyup), G.globalOnKeydown = (e) => {
|
|
1532
|
-
e.shiftKey && (ge[
|
|
1532
|
+
e.shiftKey && (ge[nt.SHIFT] = !0), ge[e.key] = !0;
|
|
1533
1533
|
}, document.addEventListener("keydown", G.globalOnKeydown);
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function ko() {
|
|
1536
1536
|
return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
1537
1537
|
}
|
|
1538
1538
|
function Se(e, t, n, o, r) {
|
|
@@ -1542,15 +1542,15 @@ function Se(e, t, n, o, r) {
|
|
|
1542
1542
|
function d(h) {
|
|
1543
1543
|
clearTimeout(i), clearTimeout(u), (!(r != null && r.isPerformPopup) || r != null && r.isPerformPopup && r.isPerformPopup()) && (i = window.setTimeout(
|
|
1544
1544
|
() => {
|
|
1545
|
-
|
|
1546
|
-
placement: (r == null ? void 0 : r.popupPlacement) ||
|
|
1545
|
+
nn(t, n, {
|
|
1546
|
+
placement: (r == null ? void 0 : r.popupPlacement) || rt.BOTTOM,
|
|
1547
1547
|
modifiers: [
|
|
1548
1548
|
{
|
|
1549
1549
|
name: "offset",
|
|
1550
1550
|
options: { offset: [0, 11] }
|
|
1551
1551
|
}
|
|
1552
1552
|
]
|
|
1553
|
-
}),
|
|
1553
|
+
}), tt(n, !0, a.POPUP__VISIBLE, a.POPUP__HIDDEN), t.setAttribute("aria-expanded", "true"), document.querySelectorAll(p(a.TOOLTIP__WRAPPER)).forEach((m) => m.classList.add(a.TOOLTIP__WRAPPER__HIDDEN));
|
|
1554
1554
|
},
|
|
1555
1555
|
h
|
|
1556
1556
|
));
|
|
@@ -1558,7 +1558,7 @@ function Se(e, t, n, o, r) {
|
|
|
1558
1558
|
function _(h) {
|
|
1559
1559
|
clearTimeout(i), clearTimeout(u), (!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (u = window.setTimeout(
|
|
1560
1560
|
() => {
|
|
1561
|
-
|
|
1561
|
+
tt(n, !1, a.POPUP__VISIBLE, a.POPUP__HIDDEN), t.setAttribute("aria-expanded", "false");
|
|
1562
1562
|
},
|
|
1563
1563
|
h
|
|
1564
1564
|
));
|
|
@@ -1571,23 +1571,23 @@ function Se(e, t, n, o, r) {
|
|
|
1571
1571
|
t.onclick = (h) => {
|
|
1572
1572
|
var f;
|
|
1573
1573
|
const m = t.getAttribute("aria-expanded") === "true";
|
|
1574
|
-
(!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (h.stopPropagation(), h.preventDefault(), m && t.getAttribute("aria-expanded") === "true" ? (_(c), (f = document.activeElement) == null || f.blur()) : (
|
|
1574
|
+
(!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (h.stopPropagation(), h.preventDefault(), m && t.getAttribute("aria-expanded") === "true" ? (_(c), (f = document.activeElement) == null || f.blur()) : (ko() && ot(), d(c))), r != null && r.onClick && r.onClick(h);
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
|
-
const
|
|
1578
|
+
const Wo = `<div class="popup__wrapper popup__wrapper--hidden">
|
|
1579
1579
|
<div class="popup__content">
|
|
1580
1580
|
<div class="popup__arrow" data-popper-arrow></div>
|
|
1581
1581
|
</div>
|
|
1582
1582
|
</div>
|
|
1583
1583
|
`;
|
|
1584
|
-
function
|
|
1584
|
+
function ht(e, t) {
|
|
1585
1585
|
const n = e.getAttribute("id");
|
|
1586
1586
|
if (!n)
|
|
1587
1587
|
throw new Error("renderPopup: labelledByElement does not have an `id` attribute");
|
|
1588
1588
|
const o = H();
|
|
1589
1589
|
e.setAttribute("aria-controls", o);
|
|
1590
|
-
const r = T(
|
|
1590
|
+
const r = T(Wo);
|
|
1591
1591
|
if (r.setAttribute("id", o), r.setAttribute("aria-labelledby", n), t != null && t.removePopupArrow) {
|
|
1592
1592
|
const i = r.querySelector(p(a.POPUP_ARROW));
|
|
1593
1593
|
if (!i)
|
|
@@ -1596,7 +1596,7 @@ function _t(e, t) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
return r;
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function rn(e) {
|
|
1600
1600
|
const t = e.closest("li");
|
|
1601
1601
|
if (!t)
|
|
1602
1602
|
throw console.error("element", e), new Error("toggleChildMenuExpansion: parent not found for child");
|
|
@@ -1611,18 +1611,24 @@ function on(e) {
|
|
|
1611
1611
|
n.classList.toggle(a.VISUALLY_HIDDEN), n.classList.contains(a.VISUALLY_HIDDEN) ? (o.setAttribute("aria-expanded", "false"), r.classList.add(a.IS_CLOSED), r.classList.remove(a.IS_OPEN)) : (o.setAttribute("aria-expanded", "true"), r.classList.remove(a.IS_CLOSED), r.classList.add(a.IS_OPEN));
|
|
1612
1612
|
});
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function Fo(e) {
|
|
1615
1615
|
return (t) => {
|
|
1616
|
-
t.preventDefault(), t.stopPropagation(),
|
|
1616
|
+
t.preventDefault(), t.stopPropagation(), rn(e);
|
|
1617
1617
|
};
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1620
|
-
const e = T(
|
|
1619
|
+
function kt() {
|
|
1620
|
+
const e = T(Nn);
|
|
1621
1621
|
return e.classList.add(a.IS_CLOSED), e;
|
|
1622
1622
|
}
|
|
1623
|
-
function
|
|
1623
|
+
function ke() {
|
|
1624
|
+
setTimeout(() => {
|
|
1625
|
+
var e;
|
|
1626
|
+
(e = document.activeElement) == null || e.blur();
|
|
1627
|
+
}, 0);
|
|
1628
|
+
}
|
|
1629
|
+
function qo(e, t, n) {
|
|
1624
1630
|
var m, f, v;
|
|
1625
|
-
const o = T(
|
|
1631
|
+
const o = T(Sn), r = o.querySelector(p(a.POPUP_MENU__TITLE));
|
|
1626
1632
|
if (!r)
|
|
1627
1633
|
throw new Error("renderPopupMenuItem: menuItemTitleWrapper not found");
|
|
1628
1634
|
const i = (
|
|
@@ -1652,6 +1658,7 @@ function Fo(e, t, n) {
|
|
|
1652
1658
|
const d = o.querySelector(`a ${p(a.POPUP_MENU__LINK_TEXT)}`);
|
|
1653
1659
|
if (!d)
|
|
1654
1660
|
throw new Error("renderPopupMenuItem: titleSpanLink not found");
|
|
1661
|
+
u.onclick = ke, i.onclick = ke;
|
|
1655
1662
|
const _ = t.actionMenu && [...t.actionMenu];
|
|
1656
1663
|
if (_ && (t.actionFunction || t.actionUrl || t.actionFunctionUrl) && _.unshift({
|
|
1657
1664
|
actionFunction: t.actionFunction,
|
|
@@ -1664,8 +1671,8 @@ function Fo(e, t, n) {
|
|
|
1664
1671
|
let E;
|
|
1665
1672
|
switch (n.childrenMenuType) {
|
|
1666
1673
|
case Z.FLYOUT: {
|
|
1667
|
-
E =
|
|
1668
|
-
const
|
|
1674
|
+
E = kt(), i.appendChild(E), i.setAttribute("id", H());
|
|
1675
|
+
const b = mt(
|
|
1669
1676
|
{
|
|
1670
1677
|
menuItems: _,
|
|
1671
1678
|
title: t.title
|
|
@@ -1676,13 +1683,13 @@ function Fo(e, t, n) {
|
|
|
1676
1683
|
removePopupArrow: !0
|
|
1677
1684
|
}
|
|
1678
1685
|
);
|
|
1679
|
-
o.appendChild(
|
|
1686
|
+
o.appendChild(b), Se(
|
|
1680
1687
|
o,
|
|
1681
1688
|
i,
|
|
1682
|
-
|
|
1689
|
+
b,
|
|
1683
1690
|
"menu",
|
|
1684
1691
|
{
|
|
1685
|
-
popupPlacement:
|
|
1692
|
+
popupPlacement: rt.RIGHT_START,
|
|
1686
1693
|
preventOnClickHandling: !0,
|
|
1687
1694
|
shouldFocusOnHover: !0
|
|
1688
1695
|
}
|
|
@@ -1690,26 +1697,26 @@ function Fo(e, t, n) {
|
|
|
1690
1697
|
break;
|
|
1691
1698
|
}
|
|
1692
1699
|
case Z.INLINE: {
|
|
1693
|
-
const
|
|
1700
|
+
const b = Ee(
|
|
1694
1701
|
_,
|
|
1695
1702
|
n
|
|
1696
1703
|
), g = H();
|
|
1697
|
-
|
|
1698
|
-
var
|
|
1704
|
+
b.setAttribute("id", g), b.classList.add(a.VISUALLY_HIDDEN), o.appendChild(b), i.onclick = Fo(i), i.setAttribute("aria-expanded", "false"), i.setAttribute("aria-controls", g), E = kt(), i.appendChild(E), u.remove(), l.remove(), o.addEventListener("focusin", (L) => {
|
|
1705
|
+
var I, M, A, y;
|
|
1699
1706
|
for (let P = (
|
|
1700
1707
|
/** @type {Element | null | undefined} */
|
|
1701
|
-
(
|
|
1708
|
+
(I = L.target) == null ? void 0 : I.closest("ul")
|
|
1702
1709
|
); P; P = (M = P.parentElement) == null ? void 0 : M.closest("ul"))
|
|
1703
1710
|
P.classList.remove(a.VISUALLY_HIDDEN), i.setAttribute("aria-expanded", "true"), L.target !== i && ((A = E == null ? void 0 : E.classList) == null || A.remove(a.IS_CLOSED), (y = E == null ? void 0 : E.classList) == null || y.add(a.IS_OPEN));
|
|
1704
1711
|
});
|
|
1705
1712
|
break;
|
|
1706
1713
|
}
|
|
1707
1714
|
case Z.MEGA_MENU: {
|
|
1708
|
-
const
|
|
1715
|
+
const b = Ee(
|
|
1709
1716
|
_,
|
|
1710
1717
|
n
|
|
1711
1718
|
), g = H();
|
|
1712
|
-
|
|
1719
|
+
b.setAttribute("id", g), o.appendChild(b), u.remove(), i.remove(), l.appendChild(document.createTextNode(t.title));
|
|
1713
1720
|
break;
|
|
1714
1721
|
}
|
|
1715
1722
|
default:
|
|
@@ -1717,13 +1724,16 @@ function Fo(e, t, n) {
|
|
|
1717
1724
|
}
|
|
1718
1725
|
s.remove();
|
|
1719
1726
|
} else if (t.actionFunction)
|
|
1720
|
-
i.onclick =
|
|
1727
|
+
i.onclick = (E) => {
|
|
1728
|
+
var b;
|
|
1729
|
+
(b = t.actionFunction) == null || b.call(t, E), ke();
|
|
1730
|
+
}, u.remove(), s.remove(), l.remove();
|
|
1721
1731
|
else if (t.actionUrl)
|
|
1722
1732
|
u.setAttribute("href", t.actionUrl.url), i.remove(), s.remove(), l.remove();
|
|
1723
1733
|
else if (t.actionFunctionUrl)
|
|
1724
1734
|
u.setAttribute("href", t.actionFunctionUrl.url), u.onclick = (E) => {
|
|
1725
|
-
var
|
|
1726
|
-
(
|
|
1735
|
+
var b, g;
|
|
1736
|
+
(b = t.actionFunctionUrl) != null && b.skipHandleEvent || (E.stopPropagation(), E.preventDefault()), (g = t.actionFunctionUrl) == null || g.actionFunction(E), ke();
|
|
1727
1737
|
}, i.remove(), s.remove(), l.remove();
|
|
1728
1738
|
else if (t.isDivider)
|
|
1729
1739
|
r.remove(), o.setAttribute("aria-hidden", "true"), o.setAttribute("role", "separator");
|
|
@@ -1731,33 +1741,33 @@ function Fo(e, t, n) {
|
|
|
1731
1741
|
throw console.error(t), new Error("renderPopupMenuItem: popupMenuItem must have either actionMenu, actionFunction, actionUrl, or isDivider (popupMenuItem.title)");
|
|
1732
1742
|
if (!t.isDivider && (c.appendChild(document.createTextNode(t.title)), d.appendChild(document.createTextNode(t.title)), (m = t.actionUrl) != null && m.openInNewTab || (f = t.actionFunctionUrl) != null && f.openInNewTab)) {
|
|
1733
1743
|
u.setAttribute("target", "_blank");
|
|
1734
|
-
const E = T(
|
|
1744
|
+
const E = T(st);
|
|
1735
1745
|
c.appendChild(E), d.appendChild(E);
|
|
1736
1746
|
}
|
|
1737
1747
|
const h = (v = t.actionMenu) != null && v.length ? a.MENU_ITEM__SELECTED_PARENT : a.MENU_ITEM__SELECTED;
|
|
1738
|
-
return (t.isSelected || t.actionMenu &&
|
|
1748
|
+
return (t.isSelected || t.actionMenu && Qe(t.actionMenu, ["actionMenu"], (E) => !!E.isSelected)) && (i.classList.add(h), u.classList.add(h)), t.isSelected ? (rn(o), o.classList.add(h)) : o.classList.remove(h), t.className && o.classList.add(t.className), e.appendChild(o), o;
|
|
1739
1749
|
}
|
|
1740
1750
|
function Ee(e, t) {
|
|
1741
|
-
const n = T(
|
|
1742
|
-
return e == null || e.forEach((o) =>
|
|
1751
|
+
const n = T(Pn);
|
|
1752
|
+
return e == null || e.forEach((o) => qo(n, o, t)), n;
|
|
1743
1753
|
}
|
|
1744
|
-
function
|
|
1745
|
-
const o =
|
|
1754
|
+
function mt(e, t, n) {
|
|
1755
|
+
const o = ht(t, { removePopupArrow: n.removePopupArrow }), r = o.querySelector(p(a.POPUP_CONTENT_WRAPPER));
|
|
1746
1756
|
if (!r)
|
|
1747
1757
|
throw new Error("renderPopupMenu: contentWrapper not found");
|
|
1748
1758
|
const i = Ee(e.menuItems, n);
|
|
1749
1759
|
return i.setAttribute("aria-label", e.title), r.appendChild(i), o;
|
|
1750
1760
|
}
|
|
1751
|
-
const
|
|
1761
|
+
const Vo = `<div class="utds-badge__wrapper">
|
|
1752
1762
|
<span class="utds-badge__value"></span>
|
|
1753
1763
|
<span class="utds-badge__label visually-hidden"></span>
|
|
1754
1764
|
</div>
|
|
1755
1765
|
`;
|
|
1756
|
-
function
|
|
1766
|
+
function Et(e) {
|
|
1757
1767
|
let t = null;
|
|
1758
1768
|
if (e) {
|
|
1759
1769
|
t = /** @type {HTMLElement} */
|
|
1760
|
-
T(
|
|
1770
|
+
T(Vo), t.classList.add(a.BADGE_WRAPPER__ACTION_ITEM);
|
|
1761
1771
|
const n = t.querySelector(p(a.BADGE__LABEL));
|
|
1762
1772
|
if (!n)
|
|
1763
1773
|
throw new Error("renderActionItemBadge: badgeLabel not found");
|
|
@@ -1772,8 +1782,8 @@ function mt(e) {
|
|
|
1772
1782
|
}
|
|
1773
1783
|
return t;
|
|
1774
1784
|
}
|
|
1775
|
-
function
|
|
1776
|
-
const t = T(
|
|
1785
|
+
function Go(e) {
|
|
1786
|
+
const t = T(wn);
|
|
1777
1787
|
t.getAttribute("id") || t.setAttribute("id", H());
|
|
1778
1788
|
const n = document.createTextNode(e.title), o = (
|
|
1779
1789
|
/** @type {HTMLElement} */
|
|
@@ -1791,7 +1801,7 @@ function Vo(e) {
|
|
|
1791
1801
|
if (!i)
|
|
1792
1802
|
throw new Error("renderActionItem: iconButton not found");
|
|
1793
1803
|
e.className && i.classList.add(e.className);
|
|
1794
|
-
const u =
|
|
1804
|
+
const u = Et(e.badge);
|
|
1795
1805
|
u && i.appendChild(u);
|
|
1796
1806
|
const l = T(e.icon);
|
|
1797
1807
|
l.setAttribute("role", "presentation"), i.appendChild(l);
|
|
@@ -1803,7 +1813,7 @@ function Vo(e) {
|
|
|
1803
1813
|
i.setAttribute("id", c), s = T(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom);
|
|
1804
1814
|
} else if (e.actionPopupMenu) {
|
|
1805
1815
|
const c = H();
|
|
1806
|
-
i.setAttribute("id", c), s = T(
|
|
1816
|
+
i.setAttribute("id", c), s = T(yn);
|
|
1807
1817
|
const d = s.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
|
|
1808
1818
|
if (!d)
|
|
1809
1819
|
throw new Error("renderMobileActionItem: actionItemContentTitle not found");
|
|
@@ -1814,7 +1824,7 @@ function Vo(e) {
|
|
|
1814
1824
|
throw console.error(e), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
|
|
1815
1825
|
return { actionItemElement: t, actionItemContent: s };
|
|
1816
1826
|
}
|
|
1817
|
-
function
|
|
1827
|
+
function $o() {
|
|
1818
1828
|
var u, l, s;
|
|
1819
1829
|
const e = document.getElementById(a.MOBILE_MENU_ACTON_BAR__HOME_ID);
|
|
1820
1830
|
if (!e)
|
|
@@ -1829,7 +1839,7 @@ function Go() {
|
|
|
1829
1839
|
/** @type {HTMLElement} */
|
|
1830
1840
|
(u = o == null ? void 0 : o.closest) == null ? void 0 : u.call(o, p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER))
|
|
1831
1841
|
);
|
|
1832
|
-
(s = (l = [...w().actionItems || []].reverse()) == null ? void 0 : l.map((c) => ({ actionItem: c, ...
|
|
1842
|
+
(s = (l = [...w().actionItems || []].reverse()) == null ? void 0 : l.map((c) => ({ actionItem: c, ...Go(c) }))) == null || s.forEach(({ actionItem: c, actionItemContent: d, actionItemElement: _ }) => {
|
|
1833
1843
|
let h;
|
|
1834
1844
|
switch (c.mobileMenuLocation) {
|
|
1835
1845
|
case "left":
|
|
@@ -1844,9 +1854,9 @@ function Go() {
|
|
|
1844
1854
|
break;
|
|
1845
1855
|
}
|
|
1846
1856
|
if (h && (h.after(_), d)) {
|
|
1847
|
-
const m =
|
|
1857
|
+
const m = it(d);
|
|
1848
1858
|
let f = null;
|
|
1849
|
-
c.actionDom ? f = "dialog" : c.actionPopupMenu && (f = "menu"),
|
|
1859
|
+
c.actionDom ? f = "dialog" : c.actionPopupMenu && (f = "menu"), at(
|
|
1850
1860
|
_,
|
|
1851
1861
|
m,
|
|
1852
1862
|
_,
|
|
@@ -1855,7 +1865,7 @@ function Go() {
|
|
|
1855
1865
|
}
|
|
1856
1866
|
}), w().mainMenu || (e.remove(), t.remove());
|
|
1857
1867
|
}
|
|
1858
|
-
const
|
|
1868
|
+
const Yo = `<div class="utds-footer utah-design-system">
|
|
1859
1869
|
<div class="utds-footer__horizontal-divider">
|
|
1860
1870
|
<hr />
|
|
1861
1871
|
</div>
|
|
@@ -1897,7 +1907,7 @@ const $o = `<div class="utds-footer utah-design-system">
|
|
|
1897
1907
|
</div>
|
|
1898
1908
|
</div>
|
|
1899
1909
|
`;
|
|
1900
|
-
function
|
|
1910
|
+
function zo(e, t) {
|
|
1901
1911
|
const n = O(
|
|
1902
1912
|
e.querySelector(p(a.FOOTER_COPYRIGHT_YEAR)),
|
|
1903
1913
|
"renderFooterCopyrightYear: copyrightYearSpan not found"
|
|
@@ -1913,14 +1923,14 @@ const J = {
|
|
|
1913
1923
|
},
|
|
1914
1924
|
showHorizontalRule: !1
|
|
1915
1925
|
};
|
|
1916
|
-
function
|
|
1917
|
-
var o, r, i, u, l, s, c, d, _, h, m, f, v, E,
|
|
1926
|
+
function Ko() {
|
|
1927
|
+
var o, r, i, u, l, s, c, d, _, h, m, f, v, E, b, g, L, I, M, A, y, P, C, U, R, W, D, X, Q, B, F;
|
|
1918
1928
|
const e = w(), t = document.querySelector(p(a.FOOTER));
|
|
1919
1929
|
let n = t;
|
|
1920
1930
|
if (e.footer === null)
|
|
1921
1931
|
t == null || t.remove();
|
|
1922
1932
|
else if (J.domLocationTarget.cssSelector !== ((r = (o = e == null ? void 0 : e.footer) == null ? void 0 : o.domLocationTarget) == null ? void 0 : r.cssSelector) || J.domLocationTarget.element !== ((u = (i = e == null ? void 0 : e.footer) == null ? void 0 : i.domLocationTarget) == null ? void 0 : u.element) || J.domLocationTarget.elementFunction !== ((s = (l = e == null ? void 0 : e.footer) == null ? void 0 : l.domLocationTarget) == null ? void 0 : s.elementFunction) || J.showHorizontalRule !== ((c = e == null ? void 0 : e.footer) == null ? void 0 : c.showHorizontalRule) || J.copyrightYear !== ((d = e == null ? void 0 : e.footer) == null ? void 0 : d.copyrightYear) || !t) {
|
|
1923
|
-
t && t.remove(), n = T(
|
|
1933
|
+
t && t.remove(), n = T(Yo);
|
|
1924
1934
|
let x = document.body;
|
|
1925
1935
|
if ((_ = e == null ? void 0 : e.footer) != null && _.domLocationTarget) {
|
|
1926
1936
|
const S = [
|
|
@@ -1929,10 +1939,10 @@ function zo() {
|
|
|
1929
1939
|
(f = e == null ? void 0 : e.footer) == null ? void 0 : f.domLocationTarget.elementFunction
|
|
1930
1940
|
].filter((ue) => ue);
|
|
1931
1941
|
if (j(S.length < 1, "renderFooter: footer.domLocationTarget must either have a value for one of its properties or not be specified at all"), j(S.length > 1, "renderFooter: footer.domLocationTarget must only have one target specified"), (v = e == null ? void 0 : e.footer) != null && v.domLocationTarget.cssSelector)
|
|
1932
|
-
x = document.querySelector((E = e == null ? void 0 : e.footer) == null ? void 0 : E.domLocationTarget.cssSelector), j(!x, `renderFooter: element not found for domLocationTarget.cssSelector ${(
|
|
1942
|
+
x = document.querySelector((E = e == null ? void 0 : e.footer) == null ? void 0 : E.domLocationTarget.cssSelector), j(!x, `renderFooter: element not found for domLocationTarget.cssSelector ${(b = e == null ? void 0 : e.footer) == null ? void 0 : b.domLocationTarget.cssSelector}`);
|
|
1933
1943
|
else if ((g = e == null ? void 0 : e.footer) != null && g.domLocationTarget.element)
|
|
1934
1944
|
x = (L = e == null ? void 0 : e.footer) == null ? void 0 : L.domLocationTarget.element;
|
|
1935
|
-
else if ((
|
|
1945
|
+
else if ((I = e == null ? void 0 : e.footer) != null && I.domLocationTarget.elementFunction)
|
|
1936
1946
|
x = (M = e == null ? void 0 : e.footer) == null ? void 0 : M.domLocationTarget.elementFunction(), j(!x, "renderFooter: element not returned from domLocationTarget.elementFunction");
|
|
1937
1947
|
else
|
|
1938
1948
|
throw new Error("renderFooter: domLocationTarget must have at least one field set");
|
|
@@ -1950,23 +1960,23 @@ function zo() {
|
|
|
1950
1960
|
j(!S, "renderFooter: cannot find terms of use link"), S == null || S.setAttribute("href", e.footer.linkTermsOfUse);
|
|
1951
1961
|
}
|
|
1952
1962
|
O(document.querySelector(p(a.FOOTER_LINKS)), "renderFooter: footer links not found").querySelectorAll("a").forEach((S) => {
|
|
1953
|
-
S.appendChild(T(
|
|
1954
|
-
}),
|
|
1963
|
+
S.appendChild(T(st));
|
|
1964
|
+
}), zo(n, (C = e == null ? void 0 : e.footer) == null ? void 0 : C.copyrightYear), J.copyrightYear = (U = e == null ? void 0 : e.footer) == null ? void 0 : U.copyrightYear, J.domLocationTarget.cssSelector = (W = (R = e == null ? void 0 : e.footer) == null ? void 0 : R.domLocationTarget) == null ? void 0 : W.cssSelector, J.domLocationTarget.element = (X = (D = e == null ? void 0 : e.footer) == null ? void 0 : D.domLocationTarget) == null ? void 0 : X.element, J.domLocationTarget.elementFunction = (B = (Q = e == null ? void 0 : e.footer) == null ? void 0 : Q.domLocationTarget) == null ? void 0 : B.elementFunction, J.showHorizontalRule = (F = e == null ? void 0 : e.footer) == null ? void 0 : F.showHorizontalRule;
|
|
1955
1965
|
}
|
|
1956
1966
|
return n;
|
|
1957
1967
|
}
|
|
1958
|
-
const
|
|
1959
|
-
`,
|
|
1960
|
-
`,
|
|
1961
|
-
`,
|
|
1962
|
-
`,
|
|
1963
|
-
`,
|
|
1964
|
-
`,
|
|
1968
|
+
const jo = `<div class="utds-citizen-experience-wrapper--mobile"></div>
|
|
1969
|
+
`, Zo = `<h1 class="utds-logo-wrapper"></h1>
|
|
1970
|
+
`, Xo = `<header class="utah-design-system utds-header" aria-label="Utah.gov Header"></header>
|
|
1971
|
+
`, Qo = `<span class="utds-logo-vert-line"></span>
|
|
1972
|
+
`, Jo = `<div class="utds-citizen-experience-wrapper"></div>
|
|
1973
|
+
`, er = `<div class="utds-action-items-wrapper"></div>
|
|
1974
|
+
`, tr = `<div class="utds-header-action-item">
|
|
1965
1975
|
<button type="button" class="icon-button utds-header-action-item__icon-button">
|
|
1966
1976
|
<div class="utds-header-action-item__title visually-hidden"></div>
|
|
1967
1977
|
</button>
|
|
1968
1978
|
</div>
|
|
1969
|
-
`,
|
|
1979
|
+
`, nr = `<div class="tooltip__wrapper tooltip__wrapper--hidden" aria-hidden="true">
|
|
1970
1980
|
<div class="tooltip__content">
|
|
1971
1981
|
<div class="tooltip__arrow" data-popper-arrow></div>
|
|
1972
1982
|
</div>
|
|
@@ -1974,15 +1984,15 @@ const Ko = `<div class="utds-citizen-experience-wrapper--mobile"></div>
|
|
|
1974
1984
|
`;
|
|
1975
1985
|
let pe = NaN;
|
|
1976
1986
|
function we(e, t) {
|
|
1977
|
-
const n = T(
|
|
1987
|
+
const n = T(nr), o = n.querySelector(p(a.TOOLTIP__CONTENT));
|
|
1978
1988
|
if (!o)
|
|
1979
1989
|
throw new Error("hookupTooltip: tooltipContent not found");
|
|
1980
1990
|
o.appendChild(t), e.appendChild(n);
|
|
1981
|
-
const r =
|
|
1991
|
+
const r = nn(
|
|
1982
1992
|
e,
|
|
1983
1993
|
n,
|
|
1984
1994
|
{
|
|
1985
|
-
placement:
|
|
1995
|
+
placement: rt.BOTTOM,
|
|
1986
1996
|
modifiers: [
|
|
1987
1997
|
{
|
|
1988
1998
|
name: "offset",
|
|
@@ -2013,8 +2023,8 @@ function we(e, t) {
|
|
|
2013
2023
|
);
|
|
2014
2024
|
};
|
|
2015
2025
|
}
|
|
2016
|
-
function
|
|
2017
|
-
const t = T(
|
|
2026
|
+
function or(e) {
|
|
2027
|
+
const t = T(tr), n = document.createTextNode(e.title), o = (
|
|
2018
2028
|
/** @type {HTMLElement} */
|
|
2019
2029
|
t instanceof HTMLCollection ? t[0] : t
|
|
2020
2030
|
);
|
|
@@ -2027,7 +2037,7 @@ function nr(e) {
|
|
|
2027
2037
|
if (!i)
|
|
2028
2038
|
throw new Error("renderActionItem: iconButton not found");
|
|
2029
2039
|
e.className && i.classList.add(e.className);
|
|
2030
|
-
const u =
|
|
2040
|
+
const u = Et(e.badge);
|
|
2031
2041
|
u && i.appendChild(u);
|
|
2032
2042
|
const l = T(e.icon);
|
|
2033
2043
|
if (l.setAttribute("role", "presentation"), i.appendChild(l), !(i instanceof HTMLElement))
|
|
@@ -2037,7 +2047,7 @@ function nr(e) {
|
|
|
2037
2047
|
else if (e.actionDom) {
|
|
2038
2048
|
const s = H();
|
|
2039
2049
|
i.setAttribute("id", s);
|
|
2040
|
-
const c =
|
|
2050
|
+
const c = ht(i), d = (
|
|
2041
2051
|
/** @type {HTMLElement} */
|
|
2042
2052
|
c.querySelector(p(a.POPUP_CONTENT_WRAPPER))
|
|
2043
2053
|
);
|
|
@@ -2047,7 +2057,7 @@ function nr(e) {
|
|
|
2047
2057
|
} else if (e.actionPopupMenu) {
|
|
2048
2058
|
const s = H();
|
|
2049
2059
|
i.setAttribute("id", s);
|
|
2050
|
-
const c =
|
|
2060
|
+
const c = mt(
|
|
2051
2061
|
/** @type {PopupMenu} */
|
|
2052
2062
|
e.actionPopupMenu,
|
|
2053
2063
|
i,
|
|
@@ -2058,31 +2068,31 @@ function nr(e) {
|
|
|
2058
2068
|
throw console.error(e), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
|
|
2059
2069
|
return we(t, document.createTextNode(e.title)), t;
|
|
2060
2070
|
}
|
|
2061
|
-
function
|
|
2071
|
+
function rr() {
|
|
2062
2072
|
var n, o;
|
|
2063
2073
|
const { actionItems: e } = w();
|
|
2064
2074
|
let t = null;
|
|
2065
|
-
return e != null && e.length && (t = T(
|
|
2075
|
+
return e != null && e.length && (t = T(er), (o = (n = w().actionItems) == null ? void 0 : n.map((r) => or(r))) == null || o.forEach((r) => t == null ? void 0 : t.appendChild(r))), t;
|
|
2066
2076
|
}
|
|
2067
|
-
const
|
|
2068
|
-
`,
|
|
2077
|
+
const ir = `<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
|
|
2078
|
+
`, an = `<div class="utds-utah-id-wrapper"></div>
|
|
2069
2079
|
`, Ue = {
|
|
2070
2080
|
PROFILE: "https://id.utah.gov",
|
|
2071
2081
|
SIGN_IN: `https://id.utah.gov/login?goto=${window.location}`,
|
|
2072
2082
|
SIGN_OUT: `https://id.utah.gov/logout?goto=${window.location}`,
|
|
2073
2083
|
USER_INFO: "https://id.utah.gov/api/userInfo"
|
|
2074
|
-
},
|
|
2084
|
+
}, ar = `<div class="vertical-menu__wrapper">
|
|
2075
2085
|
<div class="vertical-menu__wrapper-title"></div>
|
|
2076
2086
|
</div>
|
|
2077
2087
|
`;
|
|
2078
|
-
function
|
|
2079
|
-
const n = T(
|
|
2088
|
+
function sn(e, t) {
|
|
2089
|
+
const n = T(ar), o = n.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
|
|
2080
2090
|
if (!o)
|
|
2081
2091
|
throw new Error("renderMenuWithTitle: menuTitleDiv not found");
|
|
2082
2092
|
return o.appendChild(document.createTextNode(t)), n.appendChild(e), n;
|
|
2083
2093
|
}
|
|
2084
2094
|
let N = null;
|
|
2085
|
-
function
|
|
2095
|
+
function ln(e) {
|
|
2086
2096
|
N = e, document.querySelectorAll(p(a.UTAH_ID__BUTTON)).forEach((n) => {
|
|
2087
2097
|
var o;
|
|
2088
2098
|
if (n) {
|
|
@@ -2095,19 +2105,19 @@ function sn(e) {
|
|
|
2095
2105
|
if (!r)
|
|
2096
2106
|
throw new Error(`authChangedEventHandler: popup id for button not found - ${r}`);
|
|
2097
2107
|
const i = document.getElementById(r);
|
|
2098
|
-
i &&
|
|
2108
|
+
i && vt(n, i);
|
|
2099
2109
|
}
|
|
2100
2110
|
});
|
|
2101
2111
|
}
|
|
2102
|
-
function
|
|
2112
|
+
function vt(e, t) {
|
|
2103
2113
|
var n;
|
|
2104
2114
|
e && t && (!!(N != null && N.isDefinitive) && !!((n = N == null ? void 0 : N.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")));
|
|
2105
2115
|
}
|
|
2106
|
-
function
|
|
2107
|
-
const e = T(
|
|
2108
|
-
return e.setAttribute("id", H()), N &&
|
|
2116
|
+
function cn() {
|
|
2117
|
+
const e = T(ir);
|
|
2118
|
+
return e.setAttribute("id", H()), N && ln(N), e;
|
|
2109
2119
|
}
|
|
2110
|
-
function
|
|
2120
|
+
function un(e) {
|
|
2111
2121
|
var s, c, d;
|
|
2112
2122
|
const t = w(), 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) || []];
|
|
2113
2123
|
r.length && r.push({
|
|
@@ -2127,20 +2137,20 @@ function cn(e) {
|
|
|
2127
2137
|
actionFunction: o || void 0,
|
|
2128
2138
|
title: "Sign Out"
|
|
2129
2139
|
}
|
|
2130
|
-
], u = Ee(i, { childrenMenuType: Z.INLINE }), l = e ?
|
|
2140
|
+
], u = Ee(i, { childrenMenuType: Z.INLINE }), l = e ? sn(u, "Utah ID Menu") : u;
|
|
2131
2141
|
return l.setAttribute("aria-label", "Utah Id Menu"), l.setAttribute("id", H()), l;
|
|
2132
2142
|
}
|
|
2133
|
-
function
|
|
2143
|
+
function sr() {
|
|
2134
2144
|
var l;
|
|
2135
|
-
const e = T(
|
|
2145
|
+
const e = T(an), t = cn();
|
|
2136
2146
|
t.setAttribute("id", H()), e.appendChild(t);
|
|
2137
|
-
const n =
|
|
2147
|
+
const n = un(!1), o = ht(t), r = (
|
|
2138
2148
|
/** @type {HTMLElement} */
|
|
2139
2149
|
o.querySelector(p(a.POPUP_CONTENT_WRAPPER))
|
|
2140
2150
|
);
|
|
2141
2151
|
if (!r)
|
|
2142
2152
|
throw new Error("renderUtahIdForDesktop: contentWrapper not found");
|
|
2143
|
-
r.appendChild(n), e.appendChild(o),
|
|
2153
|
+
r.appendChild(n), e.appendChild(o), vt(t, o);
|
|
2144
2154
|
const i = w(), u = i.utahId !== !1 && i.utahId !== !0 && ((l = i.utahId) == null ? void 0 : l.onSignIn);
|
|
2145
2155
|
return Se(
|
|
2146
2156
|
e,
|
|
@@ -2159,31 +2169,31 @@ function ar() {
|
|
|
2159
2169
|
}
|
|
2160
2170
|
), e;
|
|
2161
2171
|
}
|
|
2162
|
-
function
|
|
2163
|
-
const e = T(
|
|
2172
|
+
function lr() {
|
|
2173
|
+
const e = T(an), t = cn(), n = t.getAttribute("id");
|
|
2164
2174
|
if (!n)
|
|
2165
2175
|
throw new Error("renderUtahIdForMobile: utahIdButton has no id");
|
|
2166
2176
|
e.appendChild(t);
|
|
2167
|
-
const o =
|
|
2177
|
+
const o = un(!0), r = o.getAttribute("id");
|
|
2168
2178
|
if (!r)
|
|
2169
2179
|
throw new Error("renderUtahIdForMobile: utahIdPopupMenu has no id");
|
|
2170
|
-
return e.appendChild(o), t.setAttribute("aria-controls", r), o.setAttribute("aria-labelledby", n),
|
|
2180
|
+
return e.appendChild(o), t.setAttribute("aria-controls", r), o.setAttribute("aria-labelledby", n), vt(t, o), { button: t, menu: o };
|
|
2171
2181
|
}
|
|
2172
|
-
function
|
|
2173
|
-
const e = T(
|
|
2174
|
-
return t && e.appendChild(t), w().utahId !== !1 && e.appendChild(
|
|
2182
|
+
function cr() {
|
|
2183
|
+
const e = T(Jo), t = rr();
|
|
2184
|
+
return t && e.appendChild(t), w().utahId !== !1 && e.appendChild(sr()), e;
|
|
2175
2185
|
}
|
|
2176
|
-
const
|
|
2186
|
+
const ur = `<div class="utds-title-wrapper">
|
|
2177
2187
|
<div class="utds-title-wrapper__logo"></div>
|
|
2178
2188
|
<div class="utds-title-wrapper__title"></div>
|
|
2179
2189
|
</div>
|
|
2180
|
-
`,
|
|
2190
|
+
`, dr = `<a class="utds-title-wrapper">
|
|
2181
2191
|
<div class="utds-title-wrapper__logo"></div>
|
|
2182
2192
|
<div class="utds-title-wrapper__title"></div>
|
|
2183
2193
|
</a>
|
|
2184
2194
|
`;
|
|
2185
|
-
function
|
|
2186
|
-
const e = w().titleURL, t = T(e ?
|
|
2195
|
+
function pr() {
|
|
2196
|
+
const e = w().titleURL, t = T(e ? dr : ur);
|
|
2187
2197
|
if (!t)
|
|
2188
2198
|
throw new Error("LogoTitle: titleWrapper is null");
|
|
2189
2199
|
e && t.setAttribute("href", e);
|
|
@@ -2207,7 +2217,7 @@ function dr() {
|
|
|
2207
2217
|
const u = document.createTextNode(i), l = t.querySelector(p(a.TITLE__TITLE));
|
|
2208
2218
|
return l == null || l.appendChild(u), !r && o && (l == null || l.classList.add(a.VISUALLY_HIDDEN)), t;
|
|
2209
2219
|
}
|
|
2210
|
-
const
|
|
2220
|
+
const fr = `<div class="utah-logo-wrapper">
|
|
2211
2221
|
<button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
|
|
2212
2222
|
<span class="visually-hidden" id="utah-logo-description">An official website of the state of Utah. Click to learn
|
|
2213
2223
|
more.</span>
|
|
@@ -2224,7 +2234,7 @@ const pr = `<div class="utah-logo-wrapper">
|
|
|
2224
2234
|
</svg>
|
|
2225
2235
|
</button>
|
|
2226
2236
|
</div>
|
|
2227
|
-
`,
|
|
2237
|
+
`, _r = `<div class="utah-logo-wrapper">
|
|
2228
2238
|
<button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
|
|
2229
2239
|
<span class="visually-hidden" id="utah-logo-description">An official website of the state of Utah. Click to learn
|
|
2230
2240
|
more.</span>
|
|
@@ -2241,20 +2251,20 @@ const pr = `<div class="utah-logo-wrapper">
|
|
|
2241
2251
|
</svg>
|
|
2242
2252
|
</button>
|
|
2243
2253
|
</div>
|
|
2244
|
-
`,
|
|
2254
|
+
`, hr = `<div class="utds-official-website-hover__wrapper">
|
|
2245
2255
|
How do I know it's official?<br />
|
|
2246
2256
|
Learn more.
|
|
2247
2257
|
</div>
|
|
2248
2258
|
`;
|
|
2249
|
-
function
|
|
2259
|
+
function mr() {
|
|
2250
2260
|
let e;
|
|
2251
2261
|
switch (w().size) {
|
|
2252
2262
|
case Ae.LARGE:
|
|
2253
|
-
e =
|
|
2263
|
+
e = fr;
|
|
2254
2264
|
break;
|
|
2255
2265
|
case Ae.SMALL:
|
|
2256
2266
|
case Ae.MEDIUM:
|
|
2257
|
-
e =
|
|
2267
|
+
e = _r;
|
|
2258
2268
|
break;
|
|
2259
2269
|
default:
|
|
2260
2270
|
throw new Error(`Unknown settings size: '${w().size}'`);
|
|
@@ -2263,16 +2273,16 @@ function hr() {
|
|
|
2263
2273
|
if (!/** @type {HTMLElement} */
|
|
2264
2274
|
t.querySelector(p(a.LOGO_SVG)))
|
|
2265
2275
|
throw new Error("UtahLogo: logoButton not found");
|
|
2266
|
-
return t.setAttribute("id", H()), we(t, T(
|
|
2276
|
+
return t.setAttribute("id", H()), we(t, T(hr)), t;
|
|
2267
2277
|
}
|
|
2268
|
-
function
|
|
2278
|
+
function Er() {
|
|
2269
2279
|
var n;
|
|
2270
|
-
const e = T(
|
|
2280
|
+
const e = T(Xo);
|
|
2271
2281
|
e.classList.add(`utds-header--${((n = w().size) == null ? void 0 : n.toLowerCase()) || Ae.MEDIUM}`);
|
|
2272
|
-
const t = T(
|
|
2273
|
-
return e.appendChild(t), t.appendChild(
|
|
2282
|
+
const t = T(Zo);
|
|
2283
|
+
return e.appendChild(t), t.appendChild(mr()), t.appendChild(T(Qo)), t.appendChild(pr()), e.appendChild(cr()), e.appendChild(T(jo)), e;
|
|
2274
2284
|
}
|
|
2275
|
-
const
|
|
2285
|
+
const vr = `<li class="menu-item">
|
|
2276
2286
|
<span class="menu-item__title">
|
|
2277
2287
|
<button class="menu-item__button-title" type="button">
|
|
2278
2288
|
<span class="menu-item__link-title-span"></span>
|
|
@@ -2285,7 +2295,7 @@ const Er = `<li class="menu-item">
|
|
|
2285
2295
|
<span class="menu-chiclet"></span>
|
|
2286
2296
|
</span>
|
|
2287
2297
|
</li>
|
|
2288
|
-
`,
|
|
2298
|
+
`, br = `<div class="utah-design-system main-menu__outer">
|
|
2289
2299
|
<div class="main-menu__wrapper">
|
|
2290
2300
|
<nav class="horizontal-menu main-menu__nav">
|
|
2291
2301
|
<h2 class="main-menu__title visually-hidden"></h2>
|
|
@@ -2311,7 +2321,7 @@ const Er = `<li class="menu-item">
|
|
|
2311
2321
|
</button>
|
|
2312
2322
|
</div>
|
|
2313
2323
|
</div>
|
|
2314
|
-
`,
|
|
2324
|
+
`, Ir = `<div class="utah-design-system visually-hidden" id="search-modal">
|
|
2315
2325
|
<div class="search-modal__close-button-wrapper">
|
|
2316
2326
|
<button type="button" class="search-modal__close-button button icon-button icon-button--borderless">
|
|
2317
2327
|
<span class="utds-icon-before-x-icon" aria-hidden="true"></span>
|
|
@@ -2337,7 +2347,7 @@ const Er = `<li class="menu-item">
|
|
|
2337
2347
|
<div class="search-backdrop modal-backdrop backdrop-dark"></div>
|
|
2338
2348
|
</div>
|
|
2339
2349
|
`;
|
|
2340
|
-
function
|
|
2350
|
+
function We() {
|
|
2341
2351
|
O(document.getElementById(a.SEARCH__SEARCH_MODAL), "closeSearchModal: search modal not found").classList.add(a.VISUALLY_HIDDEN);
|
|
2342
2352
|
const t = (
|
|
2343
2353
|
/** @type {HTMLElement} */
|
|
@@ -2347,7 +2357,7 @@ function ke() {
|
|
|
2347
2357
|
throw new Error("closSearchModal: searchIcon not found");
|
|
2348
2358
|
t.focus();
|
|
2349
2359
|
}
|
|
2350
|
-
function
|
|
2360
|
+
function je() {
|
|
2351
2361
|
const e = O(document.getElementById(a.SEARCH__SEARCH_MODAL), "showSearchModal: search modal not found");
|
|
2352
2362
|
e.classList.remove(a.VISUALLY_HIDDEN), O(
|
|
2353
2363
|
/** @type {HTMLInputElement} */
|
|
@@ -2355,8 +2365,8 @@ function Ke() {
|
|
|
2355
2365
|
"showSearchModal: searchInput not found"
|
|
2356
2366
|
).focus();
|
|
2357
2367
|
}
|
|
2358
|
-
function
|
|
2359
|
-
const e = T(
|
|
2368
|
+
function Tr() {
|
|
2369
|
+
const e = T(Ir), t = (
|
|
2360
2370
|
/** @type {HTMLElement} */
|
|
2361
2371
|
e.querySelector(p(a.SEARCH__SEARCH_BACKDROP))
|
|
2362
2372
|
);
|
|
@@ -2387,21 +2397,21 @@ function Ir() {
|
|
|
2387
2397
|
if (!i)
|
|
2388
2398
|
throw new Error("setupSearchModal: searchInput not found");
|
|
2389
2399
|
o.onclick = (l) => {
|
|
2390
|
-
l.preventDefault(), l.stopPropagation(),
|
|
2400
|
+
l.preventDefault(), l.stopPropagation(), We();
|
|
2391
2401
|
const { onSearch: s } = w();
|
|
2392
2402
|
s && (s == null || s(i.value));
|
|
2393
2403
|
}, n.onclick = (l) => {
|
|
2394
|
-
l.preventDefault(), l.stopPropagation(),
|
|
2404
|
+
l.preventDefault(), l.stopPropagation(), We();
|
|
2395
2405
|
}, t.onclick = (l) => {
|
|
2396
|
-
l.preventDefault(), l.stopPropagation(),
|
|
2406
|
+
l.preventDefault(), l.stopPropagation(), We();
|
|
2397
2407
|
}, document.body.appendChild(e), i.oninput = () => {
|
|
2398
2408
|
r.classList.remove(a.VISUALLY_HIDDEN);
|
|
2399
2409
|
}, o.onfocus = () => {
|
|
2400
2410
|
r.classList.remove(a.VISUALLY_HIDDEN);
|
|
2401
2411
|
}, e.onkeyup = (l) => {
|
|
2402
|
-
(l.code === "Escape" || l.key === "Escape") && (l.preventDefault(), l.stopPropagation(),
|
|
2412
|
+
(l.code === "Escape" || l.key === "Escape") && (l.preventDefault(), l.stopPropagation(), We());
|
|
2403
2413
|
}, n.addEventListener("focusout", (l) => {
|
|
2404
|
-
l.preventDefault(), l.stopPropagation(), e.classList.contains(a.VISUALLY_HIDDEN) || (ge[
|
|
2414
|
+
l.preventDefault(), l.stopPropagation(), e.classList.contains(a.VISUALLY_HIDDEN) || (ge[nt.SHIFT] ? o.focus() : i.focus());
|
|
2405
2415
|
});
|
|
2406
2416
|
const u = e.querySelector(".search-modal__hidden-last-focusable");
|
|
2407
2417
|
if (!u)
|
|
@@ -2410,9 +2420,9 @@ function Ir() {
|
|
|
2410
2420
|
l.preventDefault(), l.stopPropagation(), n.focus();
|
|
2411
2421
|
});
|
|
2412
2422
|
}
|
|
2413
|
-
function
|
|
2423
|
+
function gr() {
|
|
2414
2424
|
var l;
|
|
2415
|
-
const e = w(), t = T(
|
|
2425
|
+
const e = w(), t = T(br);
|
|
2416
2426
|
let n = t.querySelector(p(a.MAIN_MENU__NAV));
|
|
2417
2427
|
if (!n)
|
|
2418
2428
|
throw new Error("renderMainMenu(): mainMenu not created");
|
|
@@ -2425,8 +2435,8 @@ function Tr() {
|
|
|
2425
2435
|
if (!s)
|
|
2426
2436
|
throw new Error("renderMainMenu(): mainMenuTop not found");
|
|
2427
2437
|
e.mainMenu.menuItems.forEach((c) => {
|
|
2428
|
-
var E,
|
|
2429
|
-
const d = T(
|
|
2438
|
+
var E, b;
|
|
2439
|
+
const d = T(vr);
|
|
2430
2440
|
s.appendChild(d);
|
|
2431
2441
|
const _ = O(
|
|
2432
2442
|
d.querySelector(p(a.MENU_ITEM__TITLE)),
|
|
@@ -2465,14 +2475,14 @@ function Tr() {
|
|
|
2465
2475
|
icon: c.icon,
|
|
2466
2476
|
title: `${c.title} (page)`
|
|
2467
2477
|
});
|
|
2468
|
-
const L = { menuItems: g, title: c.title },
|
|
2478
|
+
const L = { menuItems: g, title: c.title }, I = mt(
|
|
2469
2479
|
L,
|
|
2470
2480
|
f,
|
|
2471
2481
|
{
|
|
2472
2482
|
childrenMenuType: c.childrenMenuType || Z.FLYOUT
|
|
2473
2483
|
}
|
|
2474
2484
|
);
|
|
2475
|
-
d.appendChild(
|
|
2485
|
+
d.appendChild(I), Se(d, f, I, "menu", { shouldFocusOnHover: !0 });
|
|
2476
2486
|
let M;
|
|
2477
2487
|
switch (c.childrenMenuType) {
|
|
2478
2488
|
case Z.INLINE:
|
|
@@ -2493,14 +2503,14 @@ function Tr() {
|
|
|
2493
2503
|
`renderMainMenu(): menu arrow not found for ${c.title}`
|
|
2494
2504
|
).remove();
|
|
2495
2505
|
c.actionFunction ? (v.innerHTML = c.title, c.actionMenu || (f.onclick = c.actionFunction)) : c.actionFunctionUrl ? (v.innerHTML = c.title, f.setAttribute("href", c.actionFunctionUrl.url), c.actionMenu || (f.onclick = (g) => {
|
|
2496
|
-
var L,
|
|
2497
|
-
(L = c.actionFunctionUrl) != null && L.skipHandleEvent || (g.stopPropagation(), g.preventDefault()), (
|
|
2498
|
-
})) : c.actionUrl && (v.innerHTML = c.title, f.setAttribute("href", c.actionUrl.url)), !c.actionMenu && ((E = c.actionUrl) != null && E.openInNewTab || (
|
|
2506
|
+
var L, I;
|
|
2507
|
+
(L = c.actionFunctionUrl) != null && L.skipHandleEvent || (g.stopPropagation(), g.preventDefault()), (I = c.actionFunctionUrl) == null || I.actionFunction(g);
|
|
2508
|
+
})) : c.actionUrl && (v.innerHTML = c.title, f.setAttribute("href", c.actionUrl.url)), !c.actionMenu && ((E = c.actionUrl) != null && E.openInNewTab || (b = c.actionFunctionUrl) != null && b.openInNewTab) && (f.setAttribute("target", "_blank"), f.appendChild(T(st)));
|
|
2499
2509
|
});
|
|
2500
2510
|
}
|
|
2501
2511
|
let i = null;
|
|
2502
2512
|
if (e.utahId) {
|
|
2503
|
-
const { button: s, menu: c } =
|
|
2513
|
+
const { button: s, menu: c } = lr();
|
|
2504
2514
|
i = c, O(
|
|
2505
2515
|
t.querySelector(p(a.MOBILE__UTAH_ID)),
|
|
2506
2516
|
"renderMainMenu: utahIdButtonWrapper not found"
|
|
@@ -2512,14 +2522,14 @@ function Tr() {
|
|
|
2512
2522
|
"renderMainMenu: searchIcon not found"
|
|
2513
2523
|
);
|
|
2514
2524
|
if (e.onSearch) {
|
|
2515
|
-
if (
|
|
2525
|
+
if (Tr(), we(u, document.createTextNode("Search")), u.onclick)
|
|
2516
2526
|
throw new Error("searchIcon already has onclick");
|
|
2517
|
-
if (u.onclick = () =>
|
|
2527
|
+
if (u.onclick = () => je(), !e.mainMenu) {
|
|
2518
2528
|
const s = O(
|
|
2519
2529
|
document.querySelector(p(a.CITIZEN_EXPERIENCE)),
|
|
2520
2530
|
"renderMainMenu: citizen experience wrapper not found"
|
|
2521
2531
|
), c = T(u.outerHTML);
|
|
2522
|
-
if (we(c, document.createTextNode("Search")), c.onclick = () =>
|
|
2532
|
+
if (we(c, document.createTextNode("Search")), c.onclick = () => je(), u.classList.add(a.DESKTOP__HIDDEN), e.utahId !== !1) {
|
|
2523
2533
|
const d = O(document.querySelector(p(a.UTAH_ID)), "renderMainMenu: utahId wrapper not found");
|
|
2524
2534
|
s.insertBefore(c, d);
|
|
2525
2535
|
} else
|
|
@@ -2532,7 +2542,7 @@ function Tr() {
|
|
|
2532
2542
|
);
|
|
2533
2543
|
if (we(s, document.createTextNode("Search")), s.onclick)
|
|
2534
2544
|
throw new Error("searchIconMobile already has onclick");
|
|
2535
|
-
s.onclick = () =>
|
|
2545
|
+
s.onclick = () => je(), O(
|
|
2536
2546
|
document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
|
|
2537
2547
|
"renderMainMenu: citizen-experience--mobile not found"
|
|
2538
2548
|
).appendChild(s);
|
|
@@ -2540,7 +2550,7 @@ function Tr() {
|
|
|
2540
2550
|
}
|
|
2541
2551
|
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 };
|
|
2542
2552
|
}
|
|
2543
|
-
const
|
|
2553
|
+
const Mr = `<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
|
|
2544
2554
|
<h2 class="utds-official-website-popup__heading">
|
|
2545
2555
|
An official website of the state of Utah. Here's how you know:
|
|
2546
2556
|
</h2>
|
|
@@ -2582,7 +2592,7 @@ const gr = `<div class="utah-design-system utds-official-website-popup__wrapper
|
|
|
2582
2592
|
</button>
|
|
2583
2593
|
</div>
|
|
2584
2594
|
`;
|
|
2585
|
-
function
|
|
2595
|
+
function dn() {
|
|
2586
2596
|
const e = O(
|
|
2587
2597
|
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
2588
2598
|
"openOfficialWebsite: official wrapper not found"
|
|
@@ -2602,7 +2612,7 @@ function un() {
|
|
|
2602
2612
|
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
2603
2613
|
});
|
|
2604
2614
|
}
|
|
2605
|
-
function
|
|
2615
|
+
function Ar() {
|
|
2606
2616
|
const e = O(
|
|
2607
2617
|
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
2608
2618
|
"openOfficialWebsite: official wrapper not found"
|
|
@@ -2620,10 +2630,10 @@ function Mr() {
|
|
|
2620
2630
|
const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
|
|
2621
2631
|
r == null || r.forEach((i) => {
|
|
2622
2632
|
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
2623
|
-
}),
|
|
2633
|
+
}), Ge();
|
|
2624
2634
|
}
|
|
2625
|
-
function
|
|
2626
|
-
const e = T(
|
|
2635
|
+
function Or() {
|
|
2636
|
+
const e = T(Mr), t = document.querySelector(p(a.LOGO)), n = (
|
|
2627
2637
|
/** @type {HTMLElement} */
|
|
2628
2638
|
t == null ? void 0 : t.querySelector(p(a.LOGO_SVG))
|
|
2629
2639
|
);
|
|
@@ -2635,7 +2645,7 @@ function Ar() {
|
|
|
2635
2645
|
if (!o)
|
|
2636
2646
|
throw new Error("renderOfficialWebsite: closeButton not found");
|
|
2637
2647
|
return n.onclick = () => {
|
|
2638
|
-
e.classList.toggle(a.VISUALLY_HIDDEN), e.classList.contains(a.VISUALLY_HIDDEN) ?
|
|
2648
|
+
e.classList.toggle(a.VISUALLY_HIDDEN), e.classList.contains(a.VISUALLY_HIDDEN) ? dn() : Ar();
|
|
2639
2649
|
const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
|
|
2640
2650
|
r == null || r.forEach((i) => {
|
|
2641
2651
|
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
@@ -2644,7 +2654,7 @@ function Ar() {
|
|
|
2644
2654
|
e.classList.toggle(a.VISUALLY_HIDDEN), n.focus(), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true");
|
|
2645
2655
|
}, o.id || (o.id = H()), e.id || (e.id = H()), n.setAttribute("aria-controls", e.id), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), e.setAttribute("aria-labelledby", n.id), e;
|
|
2646
2656
|
}
|
|
2647
|
-
function
|
|
2657
|
+
function Lr(e) {
|
|
2648
2658
|
var c, d;
|
|
2649
2659
|
const { hamburger: t } = ye("hookupHamburger"), n = (
|
|
2650
2660
|
/**
|
|
@@ -2654,10 +2664,10 @@ function Or(e) {
|
|
|
2654
2664
|
(_) => O(t, `hookupHamburger: hamburger required but is null: ${_}`)
|
|
2655
2665
|
), o = w();
|
|
2656
2666
|
if ((c = o.actionItems) == null ? void 0 : c.some((_) => !!_.badge)) {
|
|
2657
|
-
const _ =
|
|
2667
|
+
const _ = Et({ label: "Home Badge" });
|
|
2658
2668
|
_ && n("home badge").appendChild(_);
|
|
2659
2669
|
}
|
|
2660
|
-
|
|
2670
|
+
Ge();
|
|
2661
2671
|
function i() {
|
|
2662
2672
|
const _ = O(
|
|
2663
2673
|
/** @type {HTMLElement} */
|
|
@@ -2679,12 +2689,12 @@ function Or(e) {
|
|
|
2679
2689
|
throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");
|
|
2680
2690
|
(l || u).setAttribute("aria-controls", _), e.setAttribute("aria-labelledby", s);
|
|
2681
2691
|
}
|
|
2682
|
-
t &&
|
|
2692
|
+
t && at(
|
|
2683
2693
|
t,
|
|
2684
2694
|
() => i().actionItemWrapper,
|
|
2685
2695
|
() => i().actionItem,
|
|
2686
2696
|
{
|
|
2687
|
-
additionalOnClick: () =>
|
|
2697
|
+
additionalOnClick: () => dn(),
|
|
2688
2698
|
ariaHasPopupType: "menu",
|
|
2689
2699
|
shouldOnClickCloseMenu: !0
|
|
2690
2700
|
}
|
|
@@ -2722,8 +2732,8 @@ const Me = {
|
|
|
2722
2732
|
"Provided"
|
|
2723
2733
|
)
|
|
2724
2734
|
};
|
|
2725
|
-
let
|
|
2726
|
-
function
|
|
2735
|
+
let Wt = Me.NONE;
|
|
2736
|
+
function wr(e) {
|
|
2727
2737
|
let t;
|
|
2728
2738
|
if (e === !0)
|
|
2729
2739
|
t = Me.AUTOMATIC;
|
|
@@ -2743,30 +2753,30 @@ const k = {
|
|
|
2743
2753
|
lastError: null,
|
|
2744
2754
|
userInfo: null
|
|
2745
2755
|
};
|
|
2746
|
-
function
|
|
2756
|
+
function Ft(e) {
|
|
2747
2757
|
var t, n;
|
|
2748
2758
|
if (e.isDefinitive) {
|
|
2749
|
-
|
|
2759
|
+
ln(e);
|
|
2750
2760
|
const o = (t = w()) == null ? void 0 : t.utahId;
|
|
2751
2761
|
typeof o == "object" && ((n = o.onAuthChanged) == null || n.call(o, e));
|
|
2752
2762
|
}
|
|
2753
2763
|
}
|
|
2754
|
-
let
|
|
2755
|
-
const
|
|
2756
|
-
let
|
|
2757
|
-
async function
|
|
2764
|
+
let qt = !0;
|
|
2765
|
+
const yr = 500;
|
|
2766
|
+
let Vt = NaN;
|
|
2767
|
+
async function pn() {
|
|
2758
2768
|
var o, r;
|
|
2759
2769
|
let e = Promise.resolve(k);
|
|
2760
|
-
const t = w(), n =
|
|
2770
|
+
const t = w(), n = wr(t.utahId);
|
|
2761
2771
|
if (k.isDefinitive === !1)
|
|
2762
2772
|
e = Promise.resolve(k);
|
|
2763
|
-
else if (
|
|
2764
|
-
clearTimeout(
|
|
2765
|
-
|
|
2773
|
+
else if (qt)
|
|
2774
|
+
clearTimeout(Vt), e = new Promise((i) => {
|
|
2775
|
+
Vt = window.setTimeout(
|
|
2766
2776
|
() => {
|
|
2767
|
-
|
|
2777
|
+
qt = !1, pn().then((u) => i(u)).catch((u) => console.error(u));
|
|
2768
2778
|
},
|
|
2769
|
-
|
|
2779
|
+
yr
|
|
2770
2780
|
);
|
|
2771
2781
|
});
|
|
2772
2782
|
else if (t.utahId === !1)
|
|
@@ -2776,28 +2786,28 @@ async function dn() {
|
|
|
2776
2786
|
userInfo: null
|
|
2777
2787
|
});
|
|
2778
2788
|
else if (t.utahId === !0 || ((o = t.utahId) == null ? void 0 : o.currentUser) === void 0)
|
|
2779
|
-
(n !==
|
|
2789
|
+
(n !== Wt || k.isDefinitive === null) && (k.isDefinitive = !1, e = fetch(Ue.USER_INFO, { credentials: "include" }).then((i) => i.json()).then((i) => {
|
|
2780
2790
|
if (i.status === 200)
|
|
2781
2791
|
k.lastError = null, k.userInfo = /** @type {UserInfo} */
|
|
2782
2792
|
i.data;
|
|
2783
2793
|
else
|
|
2784
2794
|
throw new Error(i.err);
|
|
2785
2795
|
return k;
|
|
2786
|
-
}).catch((i) => (k.lastError = i, k.userInfo = null, k)).finally(() => (k.isDefinitive = !0,
|
|
2796
|
+
}).catch((i) => (k.lastError = i, k.userInfo = null, k)).finally(() => (k.isDefinitive = !0, Ft(k), k)));
|
|
2787
2797
|
else {
|
|
2788
2798
|
const i = {
|
|
2789
2799
|
isDefinitive: !0,
|
|
2790
2800
|
lastError: null,
|
|
2791
2801
|
userInfo: (r = t.utahId) == null ? void 0 : r.currentUser
|
|
2792
2802
|
};
|
|
2793
|
-
e = Promise.resolve(i),
|
|
2803
|
+
e = Promise.resolve(i), Ft(i);
|
|
2794
2804
|
}
|
|
2795
|
-
return
|
|
2805
|
+
return Wt = n, e;
|
|
2796
2806
|
}
|
|
2797
|
-
function
|
|
2807
|
+
function Nr() {
|
|
2798
2808
|
return k;
|
|
2799
2809
|
}
|
|
2800
|
-
function
|
|
2810
|
+
function Pr() {
|
|
2801
2811
|
const e = document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID);
|
|
2802
2812
|
if (!e)
|
|
2803
2813
|
throw new Error("removeUtahIdInMobileMenu: profileActionItem not found");
|
|
@@ -2809,7 +2819,7 @@ function Nr() {
|
|
|
2809
2819
|
throw new Error("removeUtahIdInMobileMenu: profileActionItemWrapper not found");
|
|
2810
2820
|
t.remove();
|
|
2811
2821
|
}
|
|
2812
|
-
function
|
|
2822
|
+
function Sr(e, t) {
|
|
2813
2823
|
const n = document.querySelector(p(a.MOBILE__UTAH_ID));
|
|
2814
2824
|
if (!n)
|
|
2815
2825
|
throw new Error("hookupUtahIdInMobileMenu: utahIdWrapper not found");
|
|
@@ -2830,8 +2840,8 @@ function Pr(e, t) {
|
|
|
2830
2840
|
);
|
|
2831
2841
|
if (!u)
|
|
2832
2842
|
throw new Error("hookupHamburger: profileActionItemWrapper not found");
|
|
2833
|
-
const l =
|
|
2834
|
-
|
|
2843
|
+
const l = it(t);
|
|
2844
|
+
at(
|
|
2835
2845
|
o,
|
|
2836
2846
|
l,
|
|
2837
2847
|
u,
|
|
@@ -2839,7 +2849,7 @@ function Pr(e, t) {
|
|
|
2839
2849
|
ariaHasPopupType: "menu",
|
|
2840
2850
|
onClickHandler: (s) => {
|
|
2841
2851
|
var h, m;
|
|
2842
|
-
const c =
|
|
2852
|
+
const c = Nr(), d = w();
|
|
2843
2853
|
let _ = !1;
|
|
2844
2854
|
if (!(c != null && c.isDefinitive) || !((h = c == null ? void 0 : c.userInfo) != null && h.authenticated)) {
|
|
2845
2855
|
_ = !0;
|
|
@@ -2852,7 +2862,7 @@ function Pr(e, t) {
|
|
|
2852
2862
|
}
|
|
2853
2863
|
);
|
|
2854
2864
|
}
|
|
2855
|
-
function
|
|
2865
|
+
function Ur() {
|
|
2856
2866
|
var t;
|
|
2857
2867
|
const e = w();
|
|
2858
2868
|
return Ee(
|
|
@@ -2863,7 +2873,7 @@ function Sr() {
|
|
|
2863
2873
|
}
|
|
2864
2874
|
);
|
|
2865
2875
|
}
|
|
2866
|
-
function
|
|
2876
|
+
function Cr() {
|
|
2867
2877
|
const t = [...document.querySelectorAll(`
|
|
2868
2878
|
${p(a.MOBILE_MENU__ACTION_BAR)}
|
|
2869
2879
|
${p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)}
|
|
@@ -2912,7 +2922,7 @@ function Ur() {
|
|
|
2912
2922
|
);
|
|
2913
2923
|
if (!h)
|
|
2914
2924
|
throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");
|
|
2915
|
-
|
|
2925
|
+
Xe(h, c);
|
|
2916
2926
|
}
|
|
2917
2927
|
};
|
|
2918
2928
|
}
|
|
@@ -2925,17 +2935,17 @@ function Ur() {
|
|
|
2925
2935
|
r.preventDefault(), r.stopPropagation(), o == null || o.focus();
|
|
2926
2936
|
});
|
|
2927
2937
|
}
|
|
2928
|
-
const
|
|
2938
|
+
const Rr = `<div class="utah-design-system skip-link__wrapper">
|
|
2929
2939
|
<div class="skip-link__tab">
|
|
2930
2940
|
<a href="#" class="skip-link__link button button--solid button--primary-color">Skip to main content</a>
|
|
2931
2941
|
</div>
|
|
2932
2942
|
</div>
|
|
2933
2943
|
`;
|
|
2934
|
-
function
|
|
2944
|
+
function Dr() {
|
|
2935
2945
|
const { skipLinkUrl: e } = w();
|
|
2936
2946
|
let t;
|
|
2937
2947
|
if (e) {
|
|
2938
|
-
t = T(
|
|
2948
|
+
t = T(Rr);
|
|
2939
2949
|
const n = t.querySelector(p(a.SKIP_LINK_LINK));
|
|
2940
2950
|
if (!n)
|
|
2941
2951
|
throw new Error("Skip Link Link is null");
|
|
@@ -2944,12 +2954,12 @@ function Rr() {
|
|
|
2944
2954
|
t = null, console.warn("Utah Design System: It is best practice to provide a skip link url (skipLinkUrl). See: https://designsystem.utah.gov/library/components/navigationLinks/skipLink");
|
|
2945
2955
|
return t;
|
|
2946
2956
|
}
|
|
2947
|
-
function
|
|
2948
|
-
const e =
|
|
2957
|
+
function Hr() {
|
|
2958
|
+
const e = In.replace(a.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER, `${w().mediaSizes.tabletPortrait}px`).replace(a.MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER, `${w().mediaSizes.tabletLandscape}px`).replace(a.MEDIA_SIZE__MOBILE__PLACEHOLDER, `${w().mediaSizes.mobile}px`);
|
|
2949
2959
|
let t = document.getElementById(a.CSS_HEADER_MEDIA_TAG_ID);
|
|
2950
2960
|
t || (t = document.createElement("style"), t.id = a.CSS_HEADER_MEDIA_TAG_ID), t.innerHTML = e, document.body.appendChild(t);
|
|
2951
2961
|
}
|
|
2952
|
-
function
|
|
2962
|
+
function Br() {
|
|
2953
2963
|
const e = w();
|
|
2954
2964
|
let t = document.body;
|
|
2955
2965
|
if (e.domLocationTarget) {
|
|
@@ -2973,18 +2983,18 @@ function Hr() {
|
|
|
2973
2983
|
}
|
|
2974
2984
|
return O(t, "loadHeader: domTarget is null (how?!)");
|
|
2975
2985
|
}
|
|
2976
|
-
function
|
|
2986
|
+
function xr() {
|
|
2977
2987
|
var t;
|
|
2978
2988
|
if (!document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.HEADER]))) {
|
|
2979
|
-
const n =
|
|
2989
|
+
const n = Er(), o = Br();
|
|
2980
2990
|
o.insertBefore(n, o.firstChild);
|
|
2981
|
-
const r =
|
|
2991
|
+
const r = Or();
|
|
2982
2992
|
n.after(r);
|
|
2983
|
-
const i =
|
|
2993
|
+
const i = Dr(), u = document.body;
|
|
2984
2994
|
i && u && u.insertBefore(i, u.firstChild);
|
|
2985
|
-
const { mainMenuWrapper: l, utahIdPopup: s } =
|
|
2995
|
+
const { mainMenuWrapper: l, utahIdPopup: s } = gr();
|
|
2986
2996
|
l && r.after(l);
|
|
2987
|
-
const c = T(
|
|
2997
|
+
const c = T(Tn);
|
|
2988
2998
|
r.after(c);
|
|
2989
2999
|
const d = (
|
|
2990
3000
|
/** @type {HTMLElement} */
|
|
@@ -2994,48 +3004,48 @@ function Br() {
|
|
|
2994
3004
|
throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");
|
|
2995
3005
|
if (d.onclick)
|
|
2996
3006
|
throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");
|
|
2997
|
-
d.onclick = () =>
|
|
2998
|
-
const _ =
|
|
3007
|
+
d.onclick = () => Ge();
|
|
3008
|
+
const _ = Ur(), h = sn(_, "Main Menu");
|
|
2999
3009
|
h.appendChild(_);
|
|
3000
|
-
const m =
|
|
3001
|
-
|
|
3010
|
+
const m = it(h);
|
|
3011
|
+
Lr(m), s ? ((t = s.closest("div")) == null || t.removeAttribute("aria-labelledby"), Sr(c, s)) : Pr(), $o(), Cr(), xo(), Hr(), pn().catch((v) => console.error(v));
|
|
3002
3012
|
const f = w();
|
|
3003
3013
|
(!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) && (c.classList.add(a.MAIN_MENU__REMOVED), l.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) && l.classList.add(a.DESKTOP__HIDDEN);
|
|
3004
3014
|
}
|
|
3005
|
-
|
|
3015
|
+
Ko();
|
|
3006
3016
|
}
|
|
3007
|
-
function
|
|
3017
|
+
function kr(e) {
|
|
3008
3018
|
var t, n, o, r, i, u;
|
|
3009
|
-
(t = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.SKIP_LINK_WRAPPER]))) == null || t.remove(), (n = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.HEADER]))) == null || n.remove(), (o = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.MAIN_MENU__OUTER]))) == null || o.remove(), (r = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.MOBILE_MENU]))) == null || r.remove(), (i = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.LOGO_OFFICIAL_WRAPPER]))) == null || i.remove(), (u = document.getElementById(a.SEARCH__SEARCH_MODAL)) == null || u.remove(),
|
|
3019
|
+
(t = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.SKIP_LINK_WRAPPER]))) == null || t.remove(), (n = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.HEADER]))) == null || n.remove(), (o = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.MAIN_MENU__OUTER]))) == null || o.remove(), (r = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.MOBILE_MENU]))) == null || r.remove(), (i = document.querySelector(p([a.UTAH_DESIGN_SYSTEM, a.LOGO_OFFICIAL_WRAPPER]))) == null || i.remove(), (u = document.getElementById(a.SEARCH__SEARCH_MODAL)) == null || u.remove(), on(), e && setTimeout(() => document.dispatchEvent(new Event(Yt.HEADER_UNLOADED)), 0);
|
|
3010
3020
|
}
|
|
3011
|
-
function
|
|
3012
|
-
|
|
3021
|
+
function Gt() {
|
|
3022
|
+
kr(!1), xr();
|
|
3013
3023
|
}
|
|
3014
|
-
let
|
|
3015
|
-
const
|
|
3016
|
-
let
|
|
3017
|
-
const
|
|
3024
|
+
let fn = !1;
|
|
3025
|
+
const Wr = 15e3;
|
|
3026
|
+
let $t = 0;
|
|
3027
|
+
const Fr = setInterval(
|
|
3018
3028
|
() => {
|
|
3019
|
-
|
|
3029
|
+
$t += 1, $t >= Wr || fn ? clearInterval(Fr) : document.dispatchEvent(new Event(Yt.HEADER_LOADED));
|
|
3020
3030
|
},
|
|
3021
3031
|
2
|
|
3022
3032
|
);
|
|
3023
|
-
function Fr(e) {
|
|
3024
|
-
return Fe.setSettings(e), pn = !0, document != null && document.body ? Vt() : window.addEventListener("load", () => Vt()), Fe.getSettings();
|
|
3025
|
-
}
|
|
3026
3033
|
function qr(e) {
|
|
3027
|
-
return
|
|
3034
|
+
return qe.setSettings(e), fn = !0, document != null && document.body ? Gt() : window.addEventListener("load", () => Gt()), qe.getSettings();
|
|
3035
|
+
}
|
|
3036
|
+
function Vr(e) {
|
|
3037
|
+
return qr({ ...Ze, ...qe.getSettings(), footer: e });
|
|
3028
3038
|
}
|
|
3029
3039
|
export {
|
|
3030
|
-
|
|
3040
|
+
rt as PopupPlacement,
|
|
3031
3041
|
Z as childrenMenuTypes,
|
|
3032
|
-
|
|
3033
|
-
|
|
3042
|
+
Ze as defaultSettings,
|
|
3043
|
+
Yt as events,
|
|
3034
3044
|
w as getUtahHeaderSettings,
|
|
3035
|
-
|
|
3036
|
-
|
|
3045
|
+
xr as loadHeader,
|
|
3046
|
+
kr as removeHeader,
|
|
3037
3047
|
T as renderDOMSingle,
|
|
3038
|
-
|
|
3039
|
-
|
|
3048
|
+
Vr as setUtahFooterSettings,
|
|
3049
|
+
qr as setUtahHeaderSettings,
|
|
3040
3050
|
Ae as sizes
|
|
3041
3051
|
};
|