@utahdts/utah-design-system-header 1.16.0 → 1.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -76,7 +76,7 @@ const Z = {
|
|
|
76
76
|
/** @type {PopupPlacementType} */
|
|
77
77
|
"top-end"
|
|
78
78
|
)
|
|
79
|
-
},
|
|
79
|
+
}, Kt = {
|
|
80
80
|
// Fired when the utah header is first loaded (setUtahHeaderSettings does not trigger this)
|
|
81
81
|
HEADER_LOADED: (
|
|
82
82
|
/** @type {Events} */
|
|
@@ -87,7 +87,7 @@ const Z = {
|
|
|
87
87
|
/** @type {Events} */
|
|
88
88
|
"utahHeaderUnloaded"
|
|
89
89
|
)
|
|
90
|
-
},
|
|
90
|
+
}, Oe = {
|
|
91
91
|
SMALL: (
|
|
92
92
|
/** @type {Size} */
|
|
93
93
|
"SMALL"
|
|
@@ -351,21 +351,21 @@ function j(e, t) {
|
|
|
351
351
|
if (e)
|
|
352
352
|
throw new Error(t);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function M(e, t) {
|
|
355
355
|
if (e == null)
|
|
356
356
|
throw new Error(t);
|
|
357
357
|
return e;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function St(e) {
|
|
360
360
|
return typeof e == "string" || e instanceof String;
|
|
361
361
|
}
|
|
362
362
|
function Mn(e) {
|
|
363
363
|
const t = new DOMParser();
|
|
364
364
|
let n;
|
|
365
|
-
if (
|
|
365
|
+
if (St(e)) {
|
|
366
366
|
const o = (
|
|
367
367
|
/** @type {Document} */
|
|
368
|
-
|
|
368
|
+
St(e) ? t.parseFromString(e, "text/html") : e
|
|
369
369
|
), r = o.body.children.length > 1 ? o.body.children : o.body.children.item(0);
|
|
370
370
|
if (!r)
|
|
371
371
|
throw console.error(e), new Error("renderDOM: nothing rendered");
|
|
@@ -400,7 +400,7 @@ const Xe = {
|
|
|
400
400
|
tabletLandscape: 1024
|
|
401
401
|
},
|
|
402
402
|
showTitle: !0,
|
|
403
|
-
size:
|
|
403
|
+
size: Oe.MEDIUM,
|
|
404
404
|
skipLinkUrl: "#main-content",
|
|
405
405
|
title: "My Utah.gov Site",
|
|
406
406
|
titleURL: "/",
|
|
@@ -445,7 +445,7 @@ function H() {
|
|
|
445
445
|
* @returns {string}
|
|
446
446
|
*/
|
|
447
447
|
// eslint-disable-next-line no-bitwise
|
|
448
|
-
(e) => (e ^
|
|
448
|
+
(e) => (e ^ M(crypto.getRandomValues(new Uint8Array(1))[0], "uuidv4: crypto") & (15 >> e) / 4).toString(16)
|
|
449
449
|
)
|
|
450
450
|
);
|
|
451
451
|
}
|
|
@@ -462,10 +462,10 @@ function at(e) {
|
|
|
462
462
|
function ee(e) {
|
|
463
463
|
return typeof e == "function" ? e() : e;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Se(e) {
|
|
466
466
|
const t = (
|
|
467
467
|
/** @type {HTMLElement} */
|
|
468
|
-
|
|
468
|
+
M(
|
|
469
469
|
document.querySelector(p(a.MOBILE_MENU)),
|
|
470
470
|
`${e}: mobileMenu not found`
|
|
471
471
|
)
|
|
@@ -477,14 +477,14 @@ function Ne(e) {
|
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
function Ge() {
|
|
480
|
-
const { hamburger: e, hamburgerIcon: t, mobileMenu: n } =
|
|
480
|
+
const { hamburger: e, hamburgerIcon: t, mobileMenu: n } = Se("hideMobileMenu");
|
|
481
481
|
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 = "";
|
|
482
482
|
}
|
|
483
483
|
function yn() {
|
|
484
484
|
var r;
|
|
485
485
|
const e = document.querySelector(p(a.MAIN_MENU));
|
|
486
486
|
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));
|
|
487
|
-
const { hamburger: t, hamburgerIcon: n, mobileMenu: o } =
|
|
487
|
+
const { hamburger: t, hamburgerIcon: n, mobileMenu: o } = Se("showMobileMenu");
|
|
488
488
|
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";
|
|
489
489
|
}
|
|
490
490
|
function Qe(e, t) {
|
|
@@ -500,7 +500,7 @@ function Qe(e, t) {
|
|
|
500
500
|
throw new Error("showActionItem: actionWrapper does not have actionItem B");
|
|
501
501
|
n.setAttribute("aria-selected", "true"), n.removeAttribute("tabIndex"), n.focus();
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Pt(e, t) {
|
|
504
504
|
e.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach((n) => n.classList.remove(a.IS_OPEN)), t.classList.add(a.IS_OPEN);
|
|
505
505
|
}
|
|
506
506
|
function st(e, t, n, {
|
|
@@ -512,11 +512,11 @@ function st(e, t, n, {
|
|
|
512
512
|
var m, f;
|
|
513
513
|
if (t && !o)
|
|
514
514
|
throw new Error("mobileMenuInteractionHandler: there is content, but the aria type is not given");
|
|
515
|
-
const
|
|
515
|
+
const l = (
|
|
516
516
|
/** @type {HTMLElement} */
|
|
517
517
|
document.querySelector(p(a.MOBILE_MENU))
|
|
518
518
|
);
|
|
519
|
-
if (!
|
|
519
|
+
if (!l)
|
|
520
520
|
throw new Error("mobileMenuInteractionHandler: mobileMenu not found");
|
|
521
521
|
const s = (
|
|
522
522
|
/** @type {HTMLElement} */
|
|
@@ -524,11 +524,11 @@ function st(e, t, n, {
|
|
|
524
524
|
);
|
|
525
525
|
if (!s)
|
|
526
526
|
throw new Error("mobileMenuInteractionHandler: mobileMenuWrapper not found");
|
|
527
|
-
const
|
|
527
|
+
const c = (
|
|
528
528
|
/** @type {HTMLElement} */
|
|
529
529
|
s.querySelector(p(a.MOBILE_MENU__CONTENT))
|
|
530
530
|
);
|
|
531
|
-
if (!
|
|
531
|
+
if (!c)
|
|
532
532
|
throw new Error("mobileMenuInteractionHandler: mobileContentWrapper not found");
|
|
533
533
|
const d = ee(n), _ = (f = (m = ee(n)) == null ? void 0 : m.querySelector) == null ? void 0 : f.call(m, "button"), h = (_ || e).getAttribute("id");
|
|
534
534
|
if (!h)
|
|
@@ -546,12 +546,12 @@ function st(e, t, n, {
|
|
|
546
546
|
throw new Error("mobileMenuInteractionHandler: interactiveElement already has onclick");
|
|
547
547
|
if (e.onclick = (v) => {
|
|
548
548
|
if (!(i != null && i(v)))
|
|
549
|
-
if (r == null || r(v),
|
|
549
|
+
if (r == null || r(v), l.classList.contains(a.IS_OPEN))
|
|
550
550
|
u && Ge();
|
|
551
551
|
else {
|
|
552
552
|
yn();
|
|
553
553
|
const b = ee(t);
|
|
554
|
-
b &&
|
|
554
|
+
b && Pt(c, b), Qe(s, ee(n));
|
|
555
555
|
}
|
|
556
556
|
}, t) {
|
|
557
557
|
if (d !== e && d.onclick)
|
|
@@ -559,7 +559,7 @@ function st(e, t, n, {
|
|
|
559
559
|
d.onclick = (v) => {
|
|
560
560
|
if (!(i != null && i(v))) {
|
|
561
561
|
const E = ee(t);
|
|
562
|
-
E &&
|
|
562
|
+
E && Pt(c, E), Qe(s, ee(n));
|
|
563
563
|
}
|
|
564
564
|
};
|
|
565
565
|
}
|
|
@@ -601,10 +601,10 @@ function Je(e, t, n) {
|
|
|
601
601
|
let o = !1;
|
|
602
602
|
return e && (Array.isArray(e) ? o = e.some((i) => Je(i, t, n)) : (o = n(e), o || (o = !!((r = t == null ? void 0 : t.filter((i) => e[i])) != null && r.some((i) => Je(e[i], t, n)))))), o;
|
|
603
603
|
}
|
|
604
|
-
var V = "top", z = "bottom", K = "right", q = "left", ct = "auto",
|
|
605
|
-
return e.concat([t + "-" + _e, t + "-" +
|
|
606
|
-
}, []),
|
|
607
|
-
return e.concat([t, t + "-" + _e, t + "-" +
|
|
604
|
+
var V = "top", z = "bottom", K = "right", q = "left", ct = "auto", De = [V, z, K, q], _e = "start", Pe = "end", Un = "clippingParents", jt = "viewport", ge = "popper", Dn = "reference", Ct = /* @__PURE__ */ De.reduce(function(e, t) {
|
|
605
|
+
return e.concat([t + "-" + _e, t + "-" + Pe]);
|
|
606
|
+
}, []), Zt = /* @__PURE__ */ [].concat(De, [ct]).reduce(function(e, t) {
|
|
607
|
+
return e.concat([t, t + "-" + _e, t + "-" + Pe]);
|
|
608
608
|
}, []), Hn = "beforeRead", Bn = "read", xn = "afterRead", kn = "beforeMain", Wn = "main", Fn = "afterMain", Vn = "beforeWrite", qn = "write", $n = "afterWrite", Gn = [Hn, Bn, xn, kn, Wn, Fn, Vn, qn, $n];
|
|
609
609
|
function ne(e) {
|
|
610
610
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
@@ -637,8 +637,8 @@ function Yn(e) {
|
|
|
637
637
|
Object.keys(t.elements).forEach(function(n) {
|
|
638
638
|
var o = t.styles[n] || {}, r = t.attributes[n] || {}, i = t.elements[n];
|
|
639
639
|
!Y(i) || !ne(i) || (Object.assign(i.style, o), Object.keys(r).forEach(function(u) {
|
|
640
|
-
var
|
|
641
|
-
|
|
640
|
+
var l = r[u];
|
|
641
|
+
l === !1 ? i.removeAttribute(u) : i.setAttribute(u, l === !0 ? "" : l);
|
|
642
642
|
}));
|
|
643
643
|
});
|
|
644
644
|
}
|
|
@@ -657,10 +657,10 @@ function zn(e) {
|
|
|
657
657
|
};
|
|
658
658
|
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
|
|
659
659
|
Object.keys(t.elements).forEach(function(o) {
|
|
660
|
-
var r = t.elements[o], i = t.attributes[o] || {}, u = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]),
|
|
661
|
-
return s[
|
|
660
|
+
var r = t.elements[o], i = t.attributes[o] || {}, u = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]), l = u.reduce(function(s, c) {
|
|
661
|
+
return s[c] = "", s;
|
|
662
662
|
}, {});
|
|
663
|
-
!Y(r) || !ne(r) || (Object.assign(r.style,
|
|
663
|
+
!Y(r) || !ne(r) || (Object.assign(r.style, l), Object.keys(i).forEach(function(s) {
|
|
664
664
|
r.removeAttribute(s);
|
|
665
665
|
}));
|
|
666
666
|
});
|
|
@@ -684,22 +684,22 @@ function et() {
|
|
|
684
684
|
return t.brand + "/" + t.version;
|
|
685
685
|
}).join(" ") : navigator.userAgent;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function Xt() {
|
|
688
688
|
return !/^((?!chrome|android).)*safari/i.test(et());
|
|
689
689
|
}
|
|
690
690
|
function me(e, t, n) {
|
|
691
691
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
692
692
|
var o = e.getBoundingClientRect(), r = 1, i = 1;
|
|
693
693
|
t && Y(e) && (r = e.offsetWidth > 0 && he(o.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && he(o.height) / e.offsetHeight || 1);
|
|
694
|
-
var u = ue(e) ? G(e) : window,
|
|
694
|
+
var u = ue(e) ? G(e) : window, l = u.visualViewport, s = !Xt() && 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;
|
|
695
695
|
return {
|
|
696
696
|
width: _,
|
|
697
697
|
height: h,
|
|
698
698
|
top: d,
|
|
699
|
-
right:
|
|
699
|
+
right: c + _,
|
|
700
700
|
bottom: d + h,
|
|
701
|
-
left:
|
|
702
|
-
x:
|
|
701
|
+
left: c,
|
|
702
|
+
x: c,
|
|
703
703
|
y: d
|
|
704
704
|
};
|
|
705
705
|
}
|
|
@@ -712,7 +712,7 @@ function dt(e) {
|
|
|
712
712
|
height: o
|
|
713
713
|
};
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function Qt(e, t) {
|
|
716
716
|
var n = t.getRootNode && t.getRootNode();
|
|
717
717
|
if (e.contains(t))
|
|
718
718
|
return !0;
|
|
@@ -750,7 +750,7 @@ function Ye(e) {
|
|
|
750
750
|
ae(e)
|
|
751
751
|
);
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function Rt(e) {
|
|
754
754
|
return !Y(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
755
755
|
oe(e).position === "fixed" ? null : e.offsetParent;
|
|
756
756
|
}
|
|
@@ -770,22 +770,22 @@ function Zn(e) {
|
|
|
770
770
|
}
|
|
771
771
|
return null;
|
|
772
772
|
}
|
|
773
|
-
function
|
|
774
|
-
for (var t = G(e), n =
|
|
775
|
-
n =
|
|
773
|
+
function He(e) {
|
|
774
|
+
for (var t = G(e), n = Rt(e); n && jn(n) && oe(n).position === "static"; )
|
|
775
|
+
n = Rt(n);
|
|
776
776
|
return n && (ne(n) === "html" || ne(n) === "body" && oe(n).position === "static") ? t : n || Zn(e) || t;
|
|
777
777
|
}
|
|
778
778
|
function pt(e) {
|
|
779
779
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function we(e, t, n) {
|
|
782
782
|
return ce(e, $e(t, n));
|
|
783
783
|
}
|
|
784
784
|
function Xn(e, t, n) {
|
|
785
|
-
var o =
|
|
785
|
+
var o = we(e, t, n);
|
|
786
786
|
return o > n ? n : o;
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function Jt() {
|
|
789
789
|
return {
|
|
790
790
|
top: 0,
|
|
791
791
|
right: 0,
|
|
@@ -793,10 +793,10 @@ function Qt() {
|
|
|
793
793
|
left: 0
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
function
|
|
797
|
-
return Object.assign({},
|
|
796
|
+
function en(e) {
|
|
797
|
+
return Object.assign({}, Jt(), e);
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function tn(e, t) {
|
|
800
800
|
return t.reduce(function(n, o) {
|
|
801
801
|
return n[o] = e, n;
|
|
802
802
|
}, {});
|
|
@@ -804,18 +804,18 @@ function en(e, t) {
|
|
|
804
804
|
var Qn = function(t, n) {
|
|
805
805
|
return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
|
|
806
806
|
placement: n.placement
|
|
807
|
-
})) : t,
|
|
807
|
+
})) : t, en(typeof t != "number" ? t : tn(t, De));
|
|
808
808
|
};
|
|
809
809
|
function Jn(e) {
|
|
810
|
-
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets,
|
|
810
|
+
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets, l = te(n.placement), s = pt(l), c = [q, K].indexOf(l) >= 0, d = c ? "height" : "width";
|
|
811
811
|
if (!(!i || !u)) {
|
|
812
|
-
var _ = Qn(r.padding, n), h = dt(i), m = s === "y" ? V : q, 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 =
|
|
812
|
+
var _ = Qn(r.padding, n), h = dt(i), m = s === "y" ? V : q, 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 = He(i), g = b ? s === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, O = v / 2 - E / 2, I = _[m], L = g - h[d] - _[f], A = g / 2 - h[d] / 2 + O, y = we(I, A, L), S = s;
|
|
813
813
|
n.modifiersData[o] = (t = {}, t[S] = y, t.centerOffset = y - A, t);
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
816
|
function eo(e) {
|
|
817
817
|
var t = e.state, n = e.options, o = n.element, r = o === void 0 ? "[data-popper-arrow]" : o;
|
|
818
|
-
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) ||
|
|
818
|
+
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || Qt(t.elements.popper, r) && (t.elements.arrow = r));
|
|
819
819
|
}
|
|
820
820
|
const to = {
|
|
821
821
|
name: "arrow",
|
|
@@ -842,8 +842,8 @@ function oo(e, t) {
|
|
|
842
842
|
y: he(o * r) / r || 0
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
var t, n = e.popper, o = e.popperRect, r = e.placement, i = e.variation, u = e.offsets,
|
|
845
|
+
function Ut(e) {
|
|
846
|
+
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({
|
|
847
847
|
x: m,
|
|
848
848
|
y: v
|
|
849
849
|
}) : {
|
|
@@ -851,20 +851,20 @@ function Rt(e) {
|
|
|
851
851
|
y: v
|
|
852
852
|
};
|
|
853
853
|
m = E.x, v = E.y;
|
|
854
|
-
var b = u.hasOwnProperty("x"), g = u.hasOwnProperty("y"),
|
|
855
|
-
if (
|
|
856
|
-
var A =
|
|
857
|
-
if (A === G(n) && (A = ae(n), oe(A).position !== "static" &&
|
|
854
|
+
var b = u.hasOwnProperty("x"), g = u.hasOwnProperty("y"), O = q, I = V, L = window;
|
|
855
|
+
if (c) {
|
|
856
|
+
var A = He(n), y = "clientHeight", S = "clientWidth";
|
|
857
|
+
if (A === G(n) && (A = ae(n), oe(A).position !== "static" && l === "absolute" && (y = "scrollHeight", S = "scrollWidth")), A = A, r === V || (r === q || r === K) && i === Pe) {
|
|
858
858
|
I = z;
|
|
859
|
-
var R = _ && A ===
|
|
859
|
+
var R = _ && A === L && L.visualViewport ? L.visualViewport.height : (
|
|
860
860
|
// $FlowFixMe[prop-missing]
|
|
861
861
|
A[y]
|
|
862
862
|
);
|
|
863
863
|
v -= R - o.height, v *= s ? 1 : -1;
|
|
864
864
|
}
|
|
865
|
-
if (r === q || (r === V || r === z) && i ===
|
|
866
|
-
|
|
867
|
-
var C = _ && A ===
|
|
865
|
+
if (r === q || (r === V || r === z) && i === Pe) {
|
|
866
|
+
O = K;
|
|
867
|
+
var C = _ && A === L && L.visualViewport ? L.visualViewport.width : (
|
|
868
868
|
// $FlowFixMe[prop-missing]
|
|
869
869
|
A[S]
|
|
870
870
|
);
|
|
@@ -872,8 +872,8 @@ function Rt(e) {
|
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
var U = Object.assign({
|
|
875
|
-
position:
|
|
876
|
-
},
|
|
875
|
+
position: l
|
|
876
|
+
}, c && no), W = d === !0 ? oo({
|
|
877
877
|
x: m,
|
|
878
878
|
y: v
|
|
879
879
|
}, G(n)) : {
|
|
@@ -882,12 +882,12 @@ function Rt(e) {
|
|
|
882
882
|
};
|
|
883
883
|
if (m = W.x, v = W.y, s) {
|
|
884
884
|
var D;
|
|
885
|
-
return Object.assign({}, U, (D = {}, D[I] = g ? "0" : "", D[
|
|
885
|
+
return Object.assign({}, U, (D = {}, D[I] = g ? "0" : "", D[O] = b ? "0" : "", D.transform = (L.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + v + "px)" : "translate3d(" + m + "px, " + v + "px, 0)", D));
|
|
886
886
|
}
|
|
887
|
-
return Object.assign({}, U, (t = {}, t[I] = g ? v + "px" : "", t[
|
|
887
|
+
return Object.assign({}, U, (t = {}, t[I] = g ? v + "px" : "", t[O] = b ? m + "px" : "", t.transform = "", t));
|
|
888
888
|
}
|
|
889
889
|
function ro(e) {
|
|
890
|
-
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,
|
|
890
|
+
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 = {
|
|
891
891
|
placement: te(t.placement),
|
|
892
892
|
variation: Ee(t.placement),
|
|
893
893
|
popper: t.elements.popper,
|
|
@@ -895,12 +895,12 @@ function ro(e) {
|
|
|
895
895
|
gpuAcceleration: r,
|
|
896
896
|
isFixed: t.options.strategy === "fixed"
|
|
897
897
|
};
|
|
898
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
898
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ut(Object.assign({}, c, {
|
|
899
899
|
offsets: t.modifiersData.popperOffsets,
|
|
900
900
|
position: t.options.strategy,
|
|
901
901
|
adaptive: u,
|
|
902
902
|
roundOffsets: s
|
|
903
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
903
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ut(Object.assign({}, c, {
|
|
904
904
|
offsets: t.modifiersData.arrow,
|
|
905
905
|
position: "absolute",
|
|
906
906
|
adaptive: !1,
|
|
@@ -916,17 +916,17 @@ const io = {
|
|
|
916
916
|
fn: ro,
|
|
917
917
|
data: {}
|
|
918
918
|
};
|
|
919
|
-
var
|
|
919
|
+
var We = {
|
|
920
920
|
passive: !0
|
|
921
921
|
};
|
|
922
922
|
function ao(e) {
|
|
923
|
-
var t = e.state, n = e.instance, o = e.options, r = o.scroll, i = r === void 0 ? !0 : r, u = o.resize,
|
|
924
|
-
return i &&
|
|
925
|
-
d.addEventListener("scroll", n.update,
|
|
926
|
-
}),
|
|
927
|
-
i &&
|
|
928
|
-
d.removeEventListener("scroll", n.update,
|
|
929
|
-
}),
|
|
923
|
+
var t = e.state, n = e.instance, o = e.options, r = o.scroll, i = r === void 0 ? !0 : r, u = o.resize, l = u === void 0 ? !0 : u, s = G(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
924
|
+
return i && c.forEach(function(d) {
|
|
925
|
+
d.addEventListener("scroll", n.update, We);
|
|
926
|
+
}), l && s.addEventListener("resize", n.update, We), function() {
|
|
927
|
+
i && c.forEach(function(d) {
|
|
928
|
+
d.removeEventListener("scroll", n.update, We);
|
|
929
|
+
}), l && s.removeEventListener("resize", n.update, We);
|
|
930
930
|
};
|
|
931
931
|
}
|
|
932
932
|
const so = {
|
|
@@ -953,7 +953,7 @@ var co = {
|
|
|
953
953
|
start: "end",
|
|
954
954
|
end: "start"
|
|
955
955
|
};
|
|
956
|
-
function
|
|
956
|
+
function Dt(e) {
|
|
957
957
|
return e.replace(/start|end/g, function(t) {
|
|
958
958
|
return co[t];
|
|
959
959
|
});
|
|
@@ -969,25 +969,25 @@ function _t(e) {
|
|
|
969
969
|
return me(ae(e)).left + ft(e).scrollLeft;
|
|
970
970
|
}
|
|
971
971
|
function uo(e, t) {
|
|
972
|
-
var n = G(e), o = ae(e), r = n.visualViewport, i = o.clientWidth, u = o.clientHeight,
|
|
972
|
+
var n = G(e), o = ae(e), r = n.visualViewport, i = o.clientWidth, u = o.clientHeight, l = 0, s = 0;
|
|
973
973
|
if (r) {
|
|
974
974
|
i = r.width, u = r.height;
|
|
975
|
-
var
|
|
976
|
-
(
|
|
975
|
+
var c = Xt();
|
|
976
|
+
(c || !c && t === "fixed") && (l = r.offsetLeft, s = r.offsetTop);
|
|
977
977
|
}
|
|
978
978
|
return {
|
|
979
979
|
width: i,
|
|
980
980
|
height: u,
|
|
981
|
-
x:
|
|
981
|
+
x: l + _t(e),
|
|
982
982
|
y: s
|
|
983
983
|
};
|
|
984
984
|
}
|
|
985
985
|
function po(e) {
|
|
986
|
-
var t, n = ae(e), o = ft(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, i = ce(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), u = ce(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0),
|
|
987
|
-
return oe(r || n).direction === "rtl" && (
|
|
986
|
+
var t, n = ae(e), o = ft(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, i = ce(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), u = ce(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), l = -o.scrollLeft + _t(e), s = -o.scrollTop;
|
|
987
|
+
return oe(r || n).direction === "rtl" && (l += ce(n.clientWidth, r ? r.clientWidth : 0) - i), {
|
|
988
988
|
width: i,
|
|
989
989
|
height: u,
|
|
990
|
-
x:
|
|
990
|
+
x: l,
|
|
991
991
|
y: s
|
|
992
992
|
};
|
|
993
993
|
}
|
|
@@ -995,16 +995,16 @@ function ht(e) {
|
|
|
995
995
|
var t = oe(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
|
|
996
996
|
return /auto|scroll|overlay|hidden/.test(n + r + o);
|
|
997
997
|
}
|
|
998
|
-
function
|
|
999
|
-
return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : Y(e) && ht(e) ? e :
|
|
998
|
+
function nn(e) {
|
|
999
|
+
return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : Y(e) && ht(e) ? e : nn(Ye(e));
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function ye(e, t) {
|
|
1002
1002
|
var n;
|
|
1003
1003
|
t === void 0 && (t = []);
|
|
1004
|
-
var o =
|
|
1005
|
-
return r ?
|
|
1004
|
+
var o = nn(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = G(o), u = r ? [i].concat(i.visualViewport || [], ht(o) ? o : []) : o, l = t.concat(u);
|
|
1005
|
+
return r ? l : (
|
|
1006
1006
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1007
|
-
|
|
1007
|
+
l.concat(ye(Ye(u)))
|
|
1008
1008
|
);
|
|
1009
1009
|
}
|
|
1010
1010
|
function tt(e) {
|
|
@@ -1019,24 +1019,24 @@ function fo(e, t) {
|
|
|
1019
1019
|
var n = me(e, !1, t === "fixed");
|
|
1020
1020
|
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;
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1023
|
-
return t ===
|
|
1022
|
+
function Ht(e, t, n) {
|
|
1023
|
+
return t === jt ? tt(uo(e, n)) : ue(t) ? fo(t, n) : tt(po(ae(e)));
|
|
1024
1024
|
}
|
|
1025
1025
|
function _o(e) {
|
|
1026
|
-
var t =
|
|
1026
|
+
var t = ye(Ye(e)), n = ["absolute", "fixed"].indexOf(oe(e).position) >= 0, o = n && Y(e) ? He(e) : e;
|
|
1027
1027
|
return ue(o) ? t.filter(function(r) {
|
|
1028
|
-
return ue(r) &&
|
|
1028
|
+
return ue(r) && Qt(r, o) && ne(r) !== "body";
|
|
1029
1029
|
}) : [];
|
|
1030
1030
|
}
|
|
1031
1031
|
function ho(e, t, n, o) {
|
|
1032
|
-
var r = t === "clippingParents" ? _o(e) : [].concat(t), i = [].concat(r, [n]), u = i[0],
|
|
1033
|
-
var d =
|
|
1032
|
+
var r = t === "clippingParents" ? _o(e) : [].concat(t), i = [].concat(r, [n]), u = i[0], l = i.reduce(function(s, c) {
|
|
1033
|
+
var d = Ht(e, c, o);
|
|
1034
1034
|
return s.top = ce(d.top, s.top), s.right = $e(d.right, s.right), s.bottom = $e(d.bottom, s.bottom), s.left = ce(d.left, s.left), s;
|
|
1035
|
-
},
|
|
1036
|
-
return
|
|
1035
|
+
}, Ht(e, u, o));
|
|
1036
|
+
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1039
|
-
var t = e.reference, n = e.element, o = e.placement, r = o ? te(o) : null, i = o ? Ee(o) : null, u = t.x + t.width / 2 - n.width / 2,
|
|
1038
|
+
function on(e) {
|
|
1039
|
+
var t = e.reference, n = e.element, o = e.placement, r = o ? te(o) : null, i = o ? Ee(o) : null, u = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, s;
|
|
1040
1040
|
switch (r) {
|
|
1041
1041
|
case V:
|
|
1042
1042
|
s = {
|
|
@@ -1053,13 +1053,13 @@ function nn(e) {
|
|
|
1053
1053
|
case K:
|
|
1054
1054
|
s = {
|
|
1055
1055
|
x: t.x + t.width,
|
|
1056
|
-
y:
|
|
1056
|
+
y: l
|
|
1057
1057
|
};
|
|
1058
1058
|
break;
|
|
1059
1059
|
case q:
|
|
1060
1060
|
s = {
|
|
1061
1061
|
x: t.x - n.width,
|
|
1062
|
-
y:
|
|
1062
|
+
y: l
|
|
1063
1063
|
};
|
|
1064
1064
|
break;
|
|
1065
1065
|
default:
|
|
@@ -1068,32 +1068,32 @@ function nn(e) {
|
|
|
1068
1068
|
y: t.y
|
|
1069
1069
|
};
|
|
1070
1070
|
}
|
|
1071
|
-
var
|
|
1072
|
-
if (
|
|
1073
|
-
var d =
|
|
1071
|
+
var c = r ? pt(r) : null;
|
|
1072
|
+
if (c != null) {
|
|
1073
|
+
var d = c === "y" ? "height" : "width";
|
|
1074
1074
|
switch (i) {
|
|
1075
1075
|
case _e:
|
|
1076
|
-
s[
|
|
1076
|
+
s[c] = s[c] - (t[d] / 2 - n[d] / 2);
|
|
1077
1077
|
break;
|
|
1078
|
-
case
|
|
1079
|
-
s[
|
|
1078
|
+
case Pe:
|
|
1079
|
+
s[c] = s[c] + (t[d] / 2 - n[d] / 2);
|
|
1080
1080
|
break;
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
return s;
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Ce(e, t) {
|
|
1086
1086
|
t === void 0 && (t = {});
|
|
1087
|
-
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, i = n.strategy, u = i === void 0 ? e.strategy : i,
|
|
1087
|
+
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 ? jt : c, _ = n.elementContext, h = _ === void 0 ? ge : _, m = n.altBoundary, f = m === void 0 ? !1 : m, v = n.padding, E = v === void 0 ? 0 : v, b = en(typeof E != "number" ? E : tn(E, De)), g = h === ge ? Dn : ge, O = e.rects.popper, I = e.elements[f ? g : h], L = ho(ue(I) ? I : I.contextElement || ae(e.elements.popper), s, d, u), A = me(e.elements.reference), y = on({
|
|
1088
1088
|
reference: A,
|
|
1089
|
-
element:
|
|
1089
|
+
element: O,
|
|
1090
1090
|
strategy: "absolute",
|
|
1091
1091
|
placement: r
|
|
1092
|
-
}), S = tt(Object.assign({},
|
|
1093
|
-
top:
|
|
1094
|
-
bottom: R.bottom -
|
|
1095
|
-
left:
|
|
1096
|
-
right: R.right -
|
|
1092
|
+
}), S = tt(Object.assign({}, O, y)), R = h === ge ? S : A, C = {
|
|
1093
|
+
top: L.top - R.top + b.top,
|
|
1094
|
+
bottom: R.bottom - L.bottom + b.bottom,
|
|
1095
|
+
left: L.left - R.left + b.left,
|
|
1096
|
+
right: R.right - L.right + b.right
|
|
1097
1097
|
}, U = e.modifiersData.offset;
|
|
1098
1098
|
if (h === ge && U) {
|
|
1099
1099
|
var W = U[r];
|
|
@@ -1106,14 +1106,14 @@ function Pe(e, t) {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
function mo(e, t) {
|
|
1108
1108
|
t === void 0 && (t = {});
|
|
1109
|
-
var n = t, o = n.placement, r = n.boundary, i = n.rootBoundary, u = n.padding,
|
|
1109
|
+
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 ? Zt : s, d = Ee(o), _ = d ? l ? Ct : Ct.filter(function(f) {
|
|
1110
1110
|
return Ee(f) === d;
|
|
1111
|
-
}) :
|
|
1112
|
-
return
|
|
1111
|
+
}) : De, h = _.filter(function(f) {
|
|
1112
|
+
return c.indexOf(f) >= 0;
|
|
1113
1113
|
});
|
|
1114
1114
|
h.length === 0 && (h = _);
|
|
1115
1115
|
var m = h.reduce(function(f, v) {
|
|
1116
|
-
return f[v] =
|
|
1116
|
+
return f[v] = Ce(e, {
|
|
1117
1117
|
placement: v,
|
|
1118
1118
|
boundary: r,
|
|
1119
1119
|
rootBoundary: i,
|
|
@@ -1128,31 +1128,31 @@ function Eo(e) {
|
|
|
1128
1128
|
if (te(e) === ct)
|
|
1129
1129
|
return [];
|
|
1130
1130
|
var t = Ve(e);
|
|
1131
|
-
return [
|
|
1131
|
+
return [Dt(e), t, Dt(t)];
|
|
1132
1132
|
}
|
|
1133
1133
|
function vo(e) {
|
|
1134
1134
|
var t = e.state, n = e.options, o = e.name;
|
|
1135
1135
|
if (!t.modifiersData[o]._skip) {
|
|
1136
|
-
for (var r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis,
|
|
1136
|
+
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, O = s || (g || !f ? [Ve(E)] : Eo(E)), I = [E].concat(O).reduce(function(pe, re) {
|
|
1137
1137
|
return pe.concat(te(re) === ct ? mo(t, {
|
|
1138
1138
|
placement: re,
|
|
1139
1139
|
boundary: d,
|
|
1140
1140
|
rootBoundary: _,
|
|
1141
|
-
padding:
|
|
1141
|
+
padding: c,
|
|
1142
1142
|
flipVariations: f,
|
|
1143
1143
|
allowedAutoPlacements: v
|
|
1144
1144
|
}) : re);
|
|
1145
|
-
}, []),
|
|
1146
|
-
var U = I[C], W = te(U), D = Ee(U) === _e, X = [V, z].indexOf(W) >= 0, Q = X ? "width" : "height", B =
|
|
1145
|
+
}, []), L = t.rects.reference, A = t.rects.popper, y = /* @__PURE__ */ new Map(), S = !0, R = I[0], C = 0; C < I.length; C++) {
|
|
1146
|
+
var U = I[C], W = te(U), D = Ee(U) === _e, X = [V, z].indexOf(W) >= 0, Q = X ? "width" : "height", B = Ce(t, {
|
|
1147
1147
|
placement: U,
|
|
1148
1148
|
boundary: d,
|
|
1149
1149
|
rootBoundary: _,
|
|
1150
1150
|
altBoundary: h,
|
|
1151
|
-
padding:
|
|
1151
|
+
padding: c
|
|
1152
1152
|
}), F = X ? D ? K : q : D ? z : V;
|
|
1153
|
-
|
|
1153
|
+
L[Q] > A[Q] && (F = Ve(F));
|
|
1154
1154
|
var be = Ve(F), x = [];
|
|
1155
|
-
if (i && x.push(B[W] <= 0),
|
|
1155
|
+
if (i && x.push(B[W] <= 0), l && x.push(B[F] <= 0, B[be] <= 0), x.every(function(pe) {
|
|
1156
1156
|
return pe;
|
|
1157
1157
|
})) {
|
|
1158
1158
|
R = U, S = !1;
|
|
@@ -1161,9 +1161,9 @@ function vo(e) {
|
|
|
1161
1161
|
y.set(U, x);
|
|
1162
1162
|
}
|
|
1163
1163
|
if (S)
|
|
1164
|
-
for (var Ie = f ? 3 : 1,
|
|
1165
|
-
var Te = I.find(function(
|
|
1166
|
-
var se = y.get(
|
|
1164
|
+
for (var Ie = f ? 3 : 1, Be = function(re) {
|
|
1165
|
+
var Te = I.find(function(xe) {
|
|
1166
|
+
var se = y.get(xe);
|
|
1167
1167
|
if (se)
|
|
1168
1168
|
return se.slice(0, re).every(function(ze) {
|
|
1169
1169
|
return ze;
|
|
@@ -1172,7 +1172,7 @@ function vo(e) {
|
|
|
1172
1172
|
if (Te)
|
|
1173
1173
|
return R = Te, "break";
|
|
1174
1174
|
}, P = Ie; P > 0; P--) {
|
|
1175
|
-
var de =
|
|
1175
|
+
var de = Be(P);
|
|
1176
1176
|
if (de === "break")
|
|
1177
1177
|
break;
|
|
1178
1178
|
}
|
|
@@ -1189,7 +1189,7 @@ const bo = {
|
|
|
1189
1189
|
_skip: !1
|
|
1190
1190
|
}
|
|
1191
1191
|
};
|
|
1192
|
-
function
|
|
1192
|
+
function Bt(e, t, n) {
|
|
1193
1193
|
return n === void 0 && (n = {
|
|
1194
1194
|
x: 0,
|
|
1195
1195
|
y: 0
|
|
@@ -1200,20 +1200,20 @@ function Ht(e, t, n) {
|
|
|
1200
1200
|
left: e.left - t.width - n.x
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function xt(e) {
|
|
1204
1204
|
return [V, K, z, q].some(function(t) {
|
|
1205
1205
|
return e[t] >= 0;
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
1208
|
function Io(e) {
|
|
1209
|
-
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, u =
|
|
1209
|
+
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, u = Ce(t, {
|
|
1210
1210
|
elementContext: "reference"
|
|
1211
|
-
}),
|
|
1211
|
+
}), l = Ce(t, {
|
|
1212
1212
|
altBoundary: !0
|
|
1213
|
-
}), s =
|
|
1213
|
+
}), s = Bt(u, o), c = Bt(l, r, i), d = xt(s), _ = xt(c);
|
|
1214
1214
|
t.modifiersData[n] = {
|
|
1215
1215
|
referenceClippingOffsets: s,
|
|
1216
|
-
popperEscapeOffsets:
|
|
1216
|
+
popperEscapeOffsets: c,
|
|
1217
1217
|
isReferenceHidden: d,
|
|
1218
1218
|
hasPopperEscaped: _
|
|
1219
1219
|
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
@@ -1231,20 +1231,20 @@ const To = {
|
|
|
1231
1231
|
function go(e, t, n) {
|
|
1232
1232
|
var o = te(e), r = [q, V].indexOf(o) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
|
|
1233
1233
|
placement: e
|
|
1234
|
-
})) : n, u = i[0],
|
|
1235
|
-
return u = u || 0,
|
|
1236
|
-
x:
|
|
1234
|
+
})) : n, u = i[0], l = i[1];
|
|
1235
|
+
return u = u || 0, l = (l || 0) * r, [q, K].indexOf(o) >= 0 ? {
|
|
1236
|
+
x: l,
|
|
1237
1237
|
y: u
|
|
1238
1238
|
} : {
|
|
1239
1239
|
x: u,
|
|
1240
|
-
y:
|
|
1240
|
+
y: l
|
|
1241
1241
|
};
|
|
1242
1242
|
}
|
|
1243
1243
|
function Ao(e) {
|
|
1244
|
-
var t = e.state, n = e.options, o = e.name, r = n.offset, i = r === void 0 ? [0, 0] : r, u =
|
|
1244
|
+
var t = e.state, n = e.options, o = e.name, r = n.offset, i = r === void 0 ? [0, 0] : r, u = Zt.reduce(function(d, _) {
|
|
1245
1245
|
return d[_] = go(_, t.rects, i), d;
|
|
1246
|
-
}, {}),
|
|
1247
|
-
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y +=
|
|
1246
|
+
}, {}), l = u[t.placement], s = l.x, c = l.y;
|
|
1247
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += c), t.modifiersData[o] = u;
|
|
1248
1248
|
}
|
|
1249
1249
|
const Mo = {
|
|
1250
1250
|
name: "offset",
|
|
@@ -1255,7 +1255,7 @@ const Mo = {
|
|
|
1255
1255
|
};
|
|
1256
1256
|
function Lo(e) {
|
|
1257
1257
|
var t = e.state, n = e.name;
|
|
1258
|
-
t.modifiersData[n] =
|
|
1258
|
+
t.modifiersData[n] = on({
|
|
1259
1259
|
reference: t.rects.reference,
|
|
1260
1260
|
element: t.rects.popper,
|
|
1261
1261
|
strategy: "absolute",
|
|
@@ -1273,12 +1273,12 @@ function wo(e) {
|
|
|
1273
1273
|
return e === "x" ? "y" : "x";
|
|
1274
1274
|
}
|
|
1275
1275
|
function yo(e) {
|
|
1276
|
-
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis,
|
|
1276
|
+
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 = Ce(t, {
|
|
1277
1277
|
boundary: s,
|
|
1278
|
-
rootBoundary:
|
|
1278
|
+
rootBoundary: c,
|
|
1279
1279
|
padding: _,
|
|
1280
1280
|
altBoundary: d
|
|
1281
|
-
}), b = te(t.placement), g = Ee(t.placement),
|
|
1281
|
+
}), b = te(t.placement), g = Ee(t.placement), O = !g, I = pt(b), L = wo(I), A = t.modifiersData.popperOffsets, y = t.rects.reference, S = t.rects.popper, R = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
|
1282
1282
|
placement: t.placement
|
|
1283
1283
|
})) : v, C = typeof R == "number" ? {
|
|
1284
1284
|
mainAxis: R,
|
|
@@ -1292,15 +1292,15 @@ function yo(e) {
|
|
|
1292
1292
|
};
|
|
1293
1293
|
if (A) {
|
|
1294
1294
|
if (i) {
|
|
1295
|
-
var D, X = I === "y" ? V : q, Q = I === "y" ? z : K, B = I === "y" ? "height" : "width", F = A[I], be = F + E[X], x = F - E[Q], Ie = m ? -S[B] / 2 : 0,
|
|
1295
|
+
var D, X = I === "y" ? V : q, Q = I === "y" ? z : K, B = I === "y" ? "height" : "width", F = A[I], be = F + E[X], x = F - E[Q], Ie = m ? -S[B] / 2 : 0, Be = g === _e ? y[B] : S[B], P = g === _e ? -S[B] : -y[B], de = t.elements.arrow, pe = m && de ? dt(de) : {
|
|
1296
1296
|
width: 0,
|
|
1297
1297
|
height: 0
|
|
1298
|
-
}, re = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
1299
|
-
A[I] =
|
|
1298
|
+
}, re = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Jt(), Te = re[X], xe = re[Q], se = we(0, y[B], pe[B]), ze = O ? y[B] / 2 - Ie - se - Te - C.mainAxis : Be - se - Te - C.mainAxis, mn = O ? -y[B] / 2 + Ie + se + xe + C.mainAxis : P + se + xe + C.mainAxis, Ke = t.elements.arrow && He(t.elements.arrow), En = Ke ? I === "y" ? Ke.clientTop || 0 : Ke.clientLeft || 0 : 0, Tt = (D = U == null ? void 0 : U[I]) != null ? D : 0, vn = F + ze - Tt - En, bn = F + mn - Tt, gt = we(m ? $e(be, vn) : be, F, m ? ce(x, bn) : x);
|
|
1299
|
+
A[I] = gt, W[I] = gt - F;
|
|
1300
1300
|
}
|
|
1301
|
-
if (
|
|
1302
|
-
var
|
|
1303
|
-
A[
|
|
1301
|
+
if (l) {
|
|
1302
|
+
var At, In = I === "x" ? V : q, Tn = I === "x" ? z : K, le = A[L], ke = L === "y" ? "height" : "width", Mt = le + E[In], Lt = le - E[Tn], je = [V, q].indexOf(b) !== -1, Ot = (At = U == null ? void 0 : U[L]) != null ? At : 0, wt = je ? Mt : le - y[ke] - S[ke] - Ot + C.altAxis, yt = je ? le + y[ke] + S[ke] - Ot - C.altAxis : Lt, Nt = m && je ? Xn(wt, le, yt) : we(m ? wt : Mt, le, m ? yt : Lt);
|
|
1303
|
+
A[L] = Nt, W[L] = Nt - le;
|
|
1304
1304
|
}
|
|
1305
1305
|
t.modifiersData[o] = W;
|
|
1306
1306
|
}
|
|
@@ -1327,7 +1327,7 @@ function Co(e) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
function Ro(e, t, n) {
|
|
1329
1329
|
n === void 0 && (n = !1);
|
|
1330
|
-
var o = Y(t), r = Y(t) && Co(t), i = ae(t), u = me(e, r, n),
|
|
1330
|
+
var o = Y(t), r = Y(t) && Co(t), i = ae(t), u = me(e, r, n), l = {
|
|
1331
1331
|
scrollLeft: 0,
|
|
1332
1332
|
scrollTop: 0
|
|
1333
1333
|
}, s = {
|
|
@@ -1335,9 +1335,9 @@ function Ro(e, t, n) {
|
|
|
1335
1335
|
y: 0
|
|
1336
1336
|
};
|
|
1337
1337
|
return (o || !o && !n) && ((ne(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1338
|
-
ht(i)) && (
|
|
1339
|
-
x: u.left +
|
|
1340
|
-
y: u.top +
|
|
1338
|
+
ht(i)) && (l = Po(t)), Y(t) ? (s = me(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = _t(i))), {
|
|
1339
|
+
x: u.left + l.scrollLeft - s.x,
|
|
1340
|
+
y: u.top + l.scrollTop - s.y,
|
|
1341
1341
|
width: u.width,
|
|
1342
1342
|
height: u.height
|
|
1343
1343
|
};
|
|
@@ -1350,9 +1350,9 @@ function Uo(e) {
|
|
|
1350
1350
|
function r(i) {
|
|
1351
1351
|
n.add(i.name);
|
|
1352
1352
|
var u = [].concat(i.requires || [], i.requiresIfExists || []);
|
|
1353
|
-
u.forEach(function(
|
|
1354
|
-
if (!n.has(
|
|
1355
|
-
var s = t.get(
|
|
1353
|
+
u.forEach(function(l) {
|
|
1354
|
+
if (!n.has(l)) {
|
|
1355
|
+
var s = t.get(l);
|
|
1356
1356
|
s && r(s);
|
|
1357
1357
|
}
|
|
1358
1358
|
}), o.push(i);
|
|
@@ -1391,12 +1391,12 @@ function Bo(e) {
|
|
|
1391
1391
|
return t[n];
|
|
1392
1392
|
});
|
|
1393
1393
|
}
|
|
1394
|
-
var
|
|
1394
|
+
var kt = {
|
|
1395
1395
|
placement: "bottom",
|
|
1396
1396
|
modifiers: [],
|
|
1397
1397
|
strategy: "absolute"
|
|
1398
1398
|
};
|
|
1399
|
-
function
|
|
1399
|
+
function Wt() {
|
|
1400
1400
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1401
1401
|
t[n] = arguments[n];
|
|
1402
1402
|
return !t.some(function(o) {
|
|
@@ -1405,16 +1405,16 @@ function kt() {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
function xo(e) {
|
|
1407
1407
|
e === void 0 && (e = {});
|
|
1408
|
-
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ?
|
|
1409
|
-
return function(
|
|
1410
|
-
|
|
1408
|
+
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ? kt : r;
|
|
1409
|
+
return function(l, s, c) {
|
|
1410
|
+
c === void 0 && (c = i);
|
|
1411
1411
|
var d = {
|
|
1412
1412
|
placement: "bottom",
|
|
1413
1413
|
orderedModifiers: [],
|
|
1414
|
-
options: Object.assign({},
|
|
1414
|
+
options: Object.assign({}, kt, i),
|
|
1415
1415
|
modifiersData: {},
|
|
1416
1416
|
elements: {
|
|
1417
|
-
reference:
|
|
1417
|
+
reference: l,
|
|
1418
1418
|
popper: s
|
|
1419
1419
|
},
|
|
1420
1420
|
attributes: {},
|
|
@@ -1424,11 +1424,11 @@ function xo(e) {
|
|
|
1424
1424
|
setOptions: function(b) {
|
|
1425
1425
|
var g = typeof b == "function" ? b(d.options) : b;
|
|
1426
1426
|
v(), d.options = Object.assign({}, i, d.options, g), d.scrollParents = {
|
|
1427
|
-
reference: ue(
|
|
1428
|
-
popper:
|
|
1427
|
+
reference: ue(l) ? ye(l) : l.contextElement ? ye(l.contextElement) : [],
|
|
1428
|
+
popper: ye(s)
|
|
1429
1429
|
};
|
|
1430
|
-
var
|
|
1431
|
-
return d.orderedModifiers =
|
|
1430
|
+
var O = Do(Bo([].concat(o, d.options.modifiers)));
|
|
1431
|
+
return d.orderedModifiers = O.filter(function(I) {
|
|
1432
1432
|
return I.enabled;
|
|
1433
1433
|
}), f(), m.update();
|
|
1434
1434
|
},
|
|
@@ -1439,11 +1439,11 @@ function xo(e) {
|
|
|
1439
1439
|
// prefer the async Popper#update method
|
|
1440
1440
|
forceUpdate: function() {
|
|
1441
1441
|
if (!h) {
|
|
1442
|
-
var b = d.elements, g = b.reference,
|
|
1443
|
-
if (
|
|
1442
|
+
var b = d.elements, g = b.reference, O = b.popper;
|
|
1443
|
+
if (Wt(g, O)) {
|
|
1444
1444
|
d.rects = {
|
|
1445
|
-
reference: Ro(g,
|
|
1446
|
-
popper: dt(
|
|
1445
|
+
reference: Ro(g, He(O), d.options.strategy === "fixed"),
|
|
1446
|
+
popper: dt(O)
|
|
1447
1447
|
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(C) {
|
|
1448
1448
|
return d.modifiersData[C.name] = Object.assign({}, C.data);
|
|
1449
1449
|
});
|
|
@@ -1452,7 +1452,7 @@ function xo(e) {
|
|
|
1452
1452
|
d.reset = !1, I = -1;
|
|
1453
1453
|
continue;
|
|
1454
1454
|
}
|
|
1455
|
-
var
|
|
1455
|
+
var L = d.orderedModifiers[I], A = L.fn, y = L.options, S = y === void 0 ? {} : y, R = L.name;
|
|
1456
1456
|
typeof A == "function" && (d = A({
|
|
1457
1457
|
state: d,
|
|
1458
1458
|
options: S,
|
|
@@ -1474,23 +1474,23 @@ function xo(e) {
|
|
|
1474
1474
|
v(), h = !0;
|
|
1475
1475
|
}
|
|
1476
1476
|
};
|
|
1477
|
-
if (!
|
|
1477
|
+
if (!Wt(l, s))
|
|
1478
1478
|
return m;
|
|
1479
|
-
m.setOptions(
|
|
1480
|
-
!h &&
|
|
1479
|
+
m.setOptions(c).then(function(E) {
|
|
1480
|
+
!h && c.onFirstUpdate && c.onFirstUpdate(E);
|
|
1481
1481
|
});
|
|
1482
1482
|
function f() {
|
|
1483
1483
|
d.orderedModifiers.forEach(function(E) {
|
|
1484
|
-
var b = E.name, g = E.options,
|
|
1484
|
+
var b = E.name, g = E.options, O = g === void 0 ? {} : g, I = E.effect;
|
|
1485
1485
|
if (typeof I == "function") {
|
|
1486
|
-
var
|
|
1486
|
+
var L = I({
|
|
1487
1487
|
state: d,
|
|
1488
1488
|
name: b,
|
|
1489
1489
|
instance: m,
|
|
1490
|
-
options:
|
|
1490
|
+
options: O
|
|
1491
1491
|
}), A = function() {
|
|
1492
1492
|
};
|
|
1493
|
-
_.push(
|
|
1493
|
+
_.push(L || A);
|
|
1494
1494
|
}
|
|
1495
1495
|
});
|
|
1496
1496
|
}
|
|
@@ -1502,17 +1502,17 @@ function xo(e) {
|
|
|
1502
1502
|
return m;
|
|
1503
1503
|
};
|
|
1504
1504
|
}
|
|
1505
|
-
var ko = [so, Oo, io, Kn, Mo, bo, No, to, To],
|
|
1505
|
+
var ko = [so, Oo, io, Kn, Mo, bo, No, to, To], rn = /* @__PURE__ */ xo({
|
|
1506
1506
|
defaultModifiers: ko
|
|
1507
1507
|
});
|
|
1508
1508
|
function nt(e, t, n, o) {
|
|
1509
1509
|
t ? (e.classList.remove(o), e.classList.add(n)) : (e.classList.add(o), e.classList.remove(n));
|
|
1510
1510
|
}
|
|
1511
1511
|
let $;
|
|
1512
|
-
const
|
|
1512
|
+
const Me = {}, ot = {
|
|
1513
1513
|
SHIFT: "shift-key"
|
|
1514
1514
|
};
|
|
1515
|
-
function
|
|
1515
|
+
function an() {
|
|
1516
1516
|
$ && (document.removeEventListener("click", $.globalOnClick), document.removeEventListener("keyup", $.globalOnKeyup), document.removeEventListener("keydown", $.globalOnKeydown), $ = null);
|
|
1517
1517
|
}
|
|
1518
1518
|
function rt() {
|
|
@@ -1530,7 +1530,7 @@ function rt() {
|
|
|
1530
1530
|
});
|
|
1531
1531
|
}
|
|
1532
1532
|
function Wo() {
|
|
1533
|
-
$ &&
|
|
1533
|
+
$ && an(), $ = {
|
|
1534
1534
|
globalOnClick: () => {
|
|
1535
1535
|
},
|
|
1536
1536
|
globalOnKeyup: () => {
|
|
@@ -1539,22 +1539,22 @@ function Wo() {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
}, $.globalOnClick = rt, document.addEventListener("click", $.globalOnClick), $.globalOnKeyup = /** @param {KeyboardEvent} e */
|
|
1541
1541
|
(e) => {
|
|
1542
|
-
e.key === "Escape" && rt(), e.shiftKey || (
|
|
1542
|
+
e.key === "Escape" && rt(), e.shiftKey || (Me[ot.SHIFT] = !1), Me[e.key] = !1;
|
|
1543
1543
|
}, document.addEventListener("keyup", $.globalOnKeyup), $.globalOnKeydown = (e) => {
|
|
1544
|
-
e.shiftKey && (
|
|
1544
|
+
e.shiftKey && (Me[ot.SHIFT] = !0), Me[e.key] = !0;
|
|
1545
1545
|
}, document.addEventListener("keydown", $.globalOnKeydown);
|
|
1546
1546
|
}
|
|
1547
1547
|
function Fo() {
|
|
1548
1548
|
return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function Re(e, t, n, o, r) {
|
|
1551
1551
|
let i = NaN, u = NaN;
|
|
1552
|
-
const
|
|
1552
|
+
const l = 350, s = 150, c = 50;
|
|
1553
1553
|
ie(t) && t.setAttribute("aria-expanded", "false"), t.setAttribute("aria-haspopup", o);
|
|
1554
1554
|
function d(h) {
|
|
1555
1555
|
clearTimeout(i), clearTimeout(u), (!(r != null && r.isPerformPopup) || r != null && r.isPerformPopup && r.isPerformPopup()) && (i = window.setTimeout(
|
|
1556
1556
|
() => {
|
|
1557
|
-
|
|
1557
|
+
rn(t, n, {
|
|
1558
1558
|
placement: (r == null ? void 0 : r.popupPlacement) || it.BOTTOM,
|
|
1559
1559
|
modifiers: [
|
|
1560
1560
|
{
|
|
@@ -1577,13 +1577,13 @@ function Ce(e, t, n, o, r) {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
if (r != null && r.preventOnClickHandling && (j(!!e.onclick, "popupFocusHandler: wrapper already has an onclick"), e.onclick = (h) => {
|
|
1579
1579
|
h.stopPropagation();
|
|
1580
|
-
}), e.addEventListener("focusin", () => d(s)), e.addEventListener("focusout", () => _(s)), r != null && r.shouldFocusOnHover && (e.addEventListener("mouseenter", () => d(
|
|
1580
|
+
}), e.addEventListener("focusin", () => d(s)), e.addEventListener("focusout", () => _(s)), r != null && r.shouldFocusOnHover && (e.addEventListener("mouseenter", () => d(l)), e.addEventListener("mouseleave", () => _(l))), !(r != null && r.preventOnClickHandling)) {
|
|
1581
1581
|
if (t.onclick)
|
|
1582
1582
|
throw new Error("popupFocusHandler: button already has onclick");
|
|
1583
1583
|
t.onclick = (h) => {
|
|
1584
1584
|
var f;
|
|
1585
1585
|
const m = t.getAttribute("aria-expanded") === "true";
|
|
1586
|
-
(!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (h.stopPropagation(), h.preventDefault(), m && t.getAttribute("aria-expanded") === "true" ? r != null && r.doNotClosePopupOnClick || (_(
|
|
1586
|
+
(!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (h.stopPropagation(), h.preventDefault(), m && t.getAttribute("aria-expanded") === "true" ? r != null && r.doNotClosePopupOnClick || (_(c), (f = document.activeElement) == null || f.blur()) : (Fo() && rt(), d(c))), r != null && r.onClick && r.onClick(h);
|
|
1587
1587
|
};
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
@@ -1608,11 +1608,11 @@ function mt(e, t) {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
return r;
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function sn(e, t) {
|
|
1612
1612
|
let n;
|
|
1613
1613
|
return typeof t == "function" ? n = t(e) : n = t ?? "Overview", ` ${n}`;
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function ln(e) {
|
|
1616
1616
|
const t = e.closest("li");
|
|
1617
1617
|
if (!t)
|
|
1618
1618
|
throw console.error("element", e), new Error("toggleChildMenuExpansion: parent not found for child");
|
|
@@ -1629,14 +1629,14 @@ function sn(e) {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
function qo(e) {
|
|
1631
1631
|
return (t) => {
|
|
1632
|
-
t.preventDefault(), t.stopPropagation(),
|
|
1632
|
+
t.preventDefault(), t.stopPropagation(), ln(e);
|
|
1633
1633
|
};
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1635
|
+
function Ft() {
|
|
1636
1636
|
const e = T(Pn);
|
|
1637
1637
|
return e.classList.add(a.IS_CLOSED), e;
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function Fe() {
|
|
1640
1640
|
setTimeout(() => {
|
|
1641
1641
|
var e;
|
|
1642
1642
|
(e = document.activeElement) == null || e.blur();
|
|
@@ -1659,17 +1659,17 @@ function $o(e, t, n) {
|
|
|
1659
1659
|
);
|
|
1660
1660
|
if (!u)
|
|
1661
1661
|
throw new Error("renderPopupMenuItem: aHref not found");
|
|
1662
|
-
const
|
|
1662
|
+
const l = (
|
|
1663
1663
|
/** @type {HTMLElement | null} */
|
|
1664
1664
|
o.querySelector(p(a.VERTICAL_MENU__PLAIN_TITLE))
|
|
1665
1665
|
);
|
|
1666
|
-
if (!
|
|
1666
|
+
if (!l)
|
|
1667
1667
|
throw new Error("renderPopupMenuItem: plainTitle not found");
|
|
1668
1668
|
const s = o.querySelector(p(a.VERTICAL_MENU__DIVIDER));
|
|
1669
1669
|
if (!s)
|
|
1670
1670
|
throw new Error("renderPopupMenuItem: menuDivider not found");
|
|
1671
|
-
const
|
|
1672
|
-
if (!
|
|
1671
|
+
const c = o.querySelector(`button ${p(a.VERTICAL_MENU__LINK_TEXT)}`);
|
|
1672
|
+
if (!c)
|
|
1673
1673
|
throw new Error("renderPopupMenuItem: titleSpanButton not found");
|
|
1674
1674
|
const d = o.querySelector(`a ${p(a.VERTICAL_MENU__LINK_TEXT)}`);
|
|
1675
1675
|
if (!d)
|
|
@@ -1681,12 +1681,12 @@ function $o(e, t, n) {
|
|
|
1681
1681
|
actionUrl: t.actionUrl,
|
|
1682
1682
|
className: t.className,
|
|
1683
1683
|
icon: t.icon,
|
|
1684
|
-
title: `${t.title}${
|
|
1685
|
-
}), _ != null && _.length || (u.onclick =
|
|
1684
|
+
title: `${t.title}${sn(t, n.parentMenuLinkSuffix)}`
|
|
1685
|
+
}), _ != null && _.length || (u.onclick = Fe, i.onclick = Fe), _) {
|
|
1686
1686
|
let E;
|
|
1687
1687
|
switch (n.childrenMenuType) {
|
|
1688
1688
|
case Z.FLYOUT: {
|
|
1689
|
-
E =
|
|
1689
|
+
E = Ft(), i.appendChild(E), i.setAttribute("id", H());
|
|
1690
1690
|
const b = Et(
|
|
1691
1691
|
{
|
|
1692
1692
|
menuItems: _,
|
|
@@ -1698,7 +1698,7 @@ function $o(e, t, n) {
|
|
|
1698
1698
|
removePopupArrow: !0
|
|
1699
1699
|
}
|
|
1700
1700
|
);
|
|
1701
|
-
o.appendChild(b),
|
|
1701
|
+
o.appendChild(b), Re(
|
|
1702
1702
|
o,
|
|
1703
1703
|
i,
|
|
1704
1704
|
b,
|
|
@@ -1708,7 +1708,7 @@ function $o(e, t, n) {
|
|
|
1708
1708
|
preventOnClickHandling: !0,
|
|
1709
1709
|
shouldFocusOnHover: !0
|
|
1710
1710
|
}
|
|
1711
|
-
), u.remove(),
|
|
1711
|
+
), u.remove(), l.remove();
|
|
1712
1712
|
break;
|
|
1713
1713
|
}
|
|
1714
1714
|
case Z.INLINE: {
|
|
@@ -1716,13 +1716,13 @@ function $o(e, t, n) {
|
|
|
1716
1716
|
_,
|
|
1717
1717
|
n
|
|
1718
1718
|
), g = H();
|
|
1719
|
-
b.setAttribute("id", g), b.classList.add(a.VISUALLY_HIDDEN), o.appendChild(b), i.onclick = qo(i), ie(i) && i.setAttribute("aria-expanded", "false"), i.setAttribute("aria-controls", g), E =
|
|
1720
|
-
var I,
|
|
1719
|
+
b.setAttribute("id", g), b.classList.add(a.VISUALLY_HIDDEN), o.appendChild(b), i.onclick = qo(i), ie(i) && i.setAttribute("aria-expanded", "false"), i.setAttribute("aria-controls", g), E = Ft(), i.appendChild(E), u.remove(), l.remove(), o.addEventListener("focusin", (O) => {
|
|
1720
|
+
var I, L, A, y;
|
|
1721
1721
|
for (let S = (
|
|
1722
1722
|
/** @type {Element | null | undefined} */
|
|
1723
|
-
(I =
|
|
1724
|
-
); S; S = (
|
|
1725
|
-
S.classList.remove(a.VISUALLY_HIDDEN), ie(i) && i.setAttribute("aria-expanded", "true"),
|
|
1723
|
+
(I = O.target) == null ? void 0 : I.closest("ul")
|
|
1724
|
+
); S; S = (L = S.parentElement) == null ? void 0 : L.closest("ul"))
|
|
1725
|
+
S.classList.remove(a.VISUALLY_HIDDEN), ie(i) && i.setAttribute("aria-expanded", "true"), O.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));
|
|
1726
1726
|
});
|
|
1727
1727
|
break;
|
|
1728
1728
|
}
|
|
@@ -1731,7 +1731,7 @@ function $o(e, t, n) {
|
|
|
1731
1731
|
_,
|
|
1732
1732
|
n
|
|
1733
1733
|
), g = H();
|
|
1734
|
-
b.setAttribute("id", g), o.appendChild(b), u.remove(), i.remove(),
|
|
1734
|
+
b.setAttribute("id", g), o.appendChild(b), u.remove(), i.remove(), l.appendChild(document.createTextNode(t.title));
|
|
1735
1735
|
break;
|
|
1736
1736
|
}
|
|
1737
1737
|
default:
|
|
@@ -1741,26 +1741,26 @@ function $o(e, t, n) {
|
|
|
1741
1741
|
} else if (t.actionFunction)
|
|
1742
1742
|
i.onclick = (E) => {
|
|
1743
1743
|
var b;
|
|
1744
|
-
(b = t.actionFunction) == null || b.call(t, E),
|
|
1745
|
-
}, u.remove(), s.remove(),
|
|
1744
|
+
(b = t.actionFunction) == null || b.call(t, E), Fe();
|
|
1745
|
+
}, u.remove(), s.remove(), l.remove();
|
|
1746
1746
|
else if (t.actionUrl)
|
|
1747
|
-
u.setAttribute("href", t.actionUrl.url), i.remove(), s.remove(),
|
|
1747
|
+
u.setAttribute("href", t.actionUrl.url), i.remove(), s.remove(), l.remove();
|
|
1748
1748
|
else if (t.actionFunctionUrl)
|
|
1749
1749
|
u.setAttribute("href", t.actionFunctionUrl.url), u.onclick = (E) => {
|
|
1750
1750
|
var b, g;
|
|
1751
|
-
(b = t.actionFunctionUrl) != null && b.skipHandleEvent || (E.stopPropagation(), E.preventDefault()), (g = t.actionFunctionUrl) == null || g.actionFunction(E),
|
|
1752
|
-
}, i.remove(), s.remove(),
|
|
1751
|
+
(b = t.actionFunctionUrl) != null && b.skipHandleEvent || (E.stopPropagation(), E.preventDefault()), (g = t.actionFunctionUrl) == null || g.actionFunction(E), Fe();
|
|
1752
|
+
}, i.remove(), s.remove(), l.remove();
|
|
1753
1753
|
else if (t.isDivider)
|
|
1754
1754
|
r.remove(), o.setAttribute("aria-hidden", "true"), o.setAttribute("role", "separator");
|
|
1755
1755
|
else
|
|
1756
1756
|
throw console.error(t), new Error("renderPopupMenuItem: popupMenuItem must have either actionMenu, actionFunction, actionUrl, or isDivider (popupMenuItem.title)");
|
|
1757
|
-
if (!t.isDivider && (
|
|
1757
|
+
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)) {
|
|
1758
1758
|
u.setAttribute("target", "_blank");
|
|
1759
1759
|
const E = T(lt);
|
|
1760
|
-
|
|
1760
|
+
c.appendChild(E), d.appendChild(E);
|
|
1761
1761
|
}
|
|
1762
1762
|
const h = (v = t.actionMenu) != null && v.length ? a.MENU_ITEM__SELECTED_PARENT : a.MENU_ITEM__SELECTED;
|
|
1763
|
-
return (t.isSelected || t.actionMenu && Je(t.actionMenu, ["actionMenu"], (E) => !!E.isSelected)) && (i.classList.add(h), u.classList.add(h)), t.isSelected ? (
|
|
1763
|
+
return (t.isSelected || t.actionMenu && Je(t.actionMenu, ["actionMenu"], (E) => !!E.isSelected)) && (i.classList.add(h), u.classList.add(h)), t.isSelected ? (ln(o), o.classList.add(h)) : o.classList.remove(h), t.className && o.classList.add(t.className), e.appendChild(o), o;
|
|
1764
1764
|
}
|
|
1765
1765
|
function ve(e, t) {
|
|
1766
1766
|
const n = T(Cn);
|
|
@@ -1818,17 +1818,17 @@ function Yo(e) {
|
|
|
1818
1818
|
e.className && i.classList.add(e.className);
|
|
1819
1819
|
const u = vt(e.badge);
|
|
1820
1820
|
u && i.appendChild(u);
|
|
1821
|
-
const
|
|
1822
|
-
|
|
1821
|
+
const l = T(e.icon);
|
|
1822
|
+
l.setAttribute("role", "presentation"), i.appendChild(l);
|
|
1823
1823
|
let s = null;
|
|
1824
1824
|
if (e.actionFunction)
|
|
1825
1825
|
i.onclick = e.actionFunction;
|
|
1826
1826
|
else if (e.actionDom) {
|
|
1827
|
-
const
|
|
1828
|
-
i.setAttribute("id",
|
|
1827
|
+
const c = H();
|
|
1828
|
+
i.setAttribute("id", c), s = T(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom);
|
|
1829
1829
|
} else if (e.actionPopupMenu) {
|
|
1830
|
-
const
|
|
1831
|
-
i.setAttribute("id",
|
|
1830
|
+
const c = H();
|
|
1831
|
+
i.setAttribute("id", c), s = T(Sn);
|
|
1832
1832
|
const d = s.querySelector(p(a.VERTICAL_MENU_WRAPPER__WRAPPER_TITLE));
|
|
1833
1833
|
if (!d)
|
|
1834
1834
|
throw new Error("renderMobileActionItem: actionItemContentTitle not found");
|
|
@@ -1846,7 +1846,7 @@ function Yo(e) {
|
|
|
1846
1846
|
return { actionItemElement: t, actionItemContent: s };
|
|
1847
1847
|
}
|
|
1848
1848
|
function zo() {
|
|
1849
|
-
var u,
|
|
1849
|
+
var u, l, s;
|
|
1850
1850
|
const e = document.getElementById(a.MOBILE_MENU_ACTON_BAR__HOME_ID);
|
|
1851
1851
|
if (!e)
|
|
1852
1852
|
throw new Error("renderMobileActionItems: homeActionItem not found");
|
|
@@ -1860,9 +1860,9 @@ function zo() {
|
|
|
1860
1860
|
/** @type {HTMLElement} */
|
|
1861
1861
|
(u = o == null ? void 0 : o.closest) == null ? void 0 : u.call(o, p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER))
|
|
1862
1862
|
);
|
|
1863
|
-
(s = (
|
|
1863
|
+
(s = (l = [...w().actionItems || []].reverse()) == null ? void 0 : l.map((c) => ({ actionItem: c, ...Yo(c) }))) == null || s.forEach(({ actionItem: c, actionItemContent: d, actionItemElement: _ }) => {
|
|
1864
1864
|
let h;
|
|
1865
|
-
switch (
|
|
1865
|
+
switch (c.mobileMenuLocation) {
|
|
1866
1866
|
case "left":
|
|
1867
1867
|
h = t;
|
|
1868
1868
|
break;
|
|
@@ -1877,7 +1877,7 @@ function zo() {
|
|
|
1877
1877
|
if (h && (h.after(_), d)) {
|
|
1878
1878
|
const m = at(d);
|
|
1879
1879
|
let f = null;
|
|
1880
|
-
|
|
1880
|
+
c.actionDom ? f = "dialog" : c.actionPopupMenu && (f = "menu"), st(
|
|
1881
1881
|
_,
|
|
1882
1882
|
m,
|
|
1883
1883
|
_,
|
|
@@ -1928,7 +1928,7 @@ const Ko = `<div class="utds-footer utah-design-system">
|
|
|
1928
1928
|
</div>
|
|
1929
1929
|
`;
|
|
1930
1930
|
function jo(e, t) {
|
|
1931
|
-
const n =
|
|
1931
|
+
const n = M(
|
|
1932
1932
|
e.querySelector(p(a.FOOTER_COPYRIGHT_YEAR)),
|
|
1933
1933
|
"renderFooterCopyrightYear: copyrightYearSpan not found"
|
|
1934
1934
|
);
|
|
@@ -1944,12 +1944,12 @@ const J = {
|
|
|
1944
1944
|
showHorizontalRule: !1
|
|
1945
1945
|
};
|
|
1946
1946
|
function Zo() {
|
|
1947
|
-
var o, r, i, u,
|
|
1947
|
+
var o, r, i, u, l, s, c, d, _, h, m, f, v, E, b, g, O, I, L, A, y, S, R, C, U, W, D, X, Q, B, F;
|
|
1948
1948
|
const e = w(), t = document.querySelector(p(a.FOOTER));
|
|
1949
1949
|
let n = t;
|
|
1950
1950
|
if (e.footer === null)
|
|
1951
1951
|
t == null || t.remove();
|
|
1952
|
-
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 = (
|
|
1952
|
+
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) {
|
|
1953
1953
|
t && t.remove(), n = T(Ko);
|
|
1954
1954
|
let x = document.body;
|
|
1955
1955
|
if ((_ = e == null ? void 0 : e.footer) != null && _.domLocationTarget) {
|
|
@@ -1961,9 +1961,9 @@ function Zo() {
|
|
|
1961
1961
|
if (j(P.length < 1, "renderFooter: footer.domLocationTarget must either have a value for one of its properties or not be specified at all"), j(P.length > 1, "renderFooter: footer.domLocationTarget must only have one target specified"), (v = e == null ? void 0 : e.footer) != null && v.domLocationTarget.cssSelector)
|
|
1962
1962
|
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}`);
|
|
1963
1963
|
else if ((g = e == null ? void 0 : e.footer) != null && g.domLocationTarget.element)
|
|
1964
|
-
x = (
|
|
1964
|
+
x = (O = e == null ? void 0 : e.footer) == null ? void 0 : O.domLocationTarget.element;
|
|
1965
1965
|
else if ((I = e == null ? void 0 : e.footer) != null && I.domLocationTarget.elementFunction)
|
|
1966
|
-
x = (
|
|
1966
|
+
x = (L = e == null ? void 0 : e.footer) == null ? void 0 : L.domLocationTarget.elementFunction(), j(!x, "renderFooter: element not returned from domLocationTarget.elementFunction");
|
|
1967
1967
|
else
|
|
1968
1968
|
throw new Error("renderFooter: domLocationTarget must have at least one field set");
|
|
1969
1969
|
}
|
|
@@ -1979,7 +1979,7 @@ function Zo() {
|
|
|
1979
1979
|
const P = document.getElementById(a.FOOTER_LINK_TERMS_ID);
|
|
1980
1980
|
j(!P, "renderFooter: cannot find terms of use link"), P == null || P.setAttribute("href", e.footer.linkTermsOfUse);
|
|
1981
1981
|
}
|
|
1982
|
-
|
|
1982
|
+
M(document.querySelector(p(a.FOOTER_LINKS)), "renderFooter: footer links not found").querySelectorAll("a").forEach((P) => {
|
|
1983
1983
|
P.appendChild(T(lt));
|
|
1984
1984
|
}), jo(n, (R = e == null ? void 0 : e.footer) == null ? void 0 : R.copyrightYear), J.copyrightYear = (C = e == null ? void 0 : e.footer) == null ? void 0 : C.copyrightYear, J.domLocationTarget.cssSelector = (W = (U = e == null ? void 0 : e.footer) == null ? void 0 : U.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;
|
|
1985
1985
|
}
|
|
@@ -2003,12 +2003,12 @@ const Xo = `<div class="utds-citizen-experience-wrapper--mobile"></div>
|
|
|
2003
2003
|
</div>
|
|
2004
2004
|
`;
|
|
2005
2005
|
let fe = NaN;
|
|
2006
|
-
function
|
|
2006
|
+
function Ne(e, t) {
|
|
2007
2007
|
const n = T(rr), o = n.querySelector(p(a.TOOLTIP__CONTENT));
|
|
2008
2008
|
if (!o)
|
|
2009
2009
|
throw new Error("hookupTooltip: tooltipContent not found");
|
|
2010
2010
|
o.appendChild(t), e.appendChild(n);
|
|
2011
|
-
const r =
|
|
2011
|
+
const r = rn(
|
|
2012
2012
|
e,
|
|
2013
2013
|
n,
|
|
2014
2014
|
{
|
|
@@ -2029,7 +2029,7 @@ function ye(e, t) {
|
|
|
2029
2029
|
() => {
|
|
2030
2030
|
clearTimeout(fe), fe = -1;
|
|
2031
2031
|
const u = e.querySelector(p(a.POPUP_WRAPPER));
|
|
2032
|
-
(!u || u.classList.contains(a.POPUP__HIDDEN)) && (n.classList.remove(a.TOOLTIP__WRAPPER__HIDDEN), n.classList.add(a.TOOLTIP__WRAPPER__VISIBLE), r.update().catch((
|
|
2032
|
+
(!u || u.classList.contains(a.POPUP__HIDDEN)) && (n.classList.remove(a.TOOLTIP__WRAPPER__HIDDEN), n.classList.add(a.TOOLTIP__WRAPPER__VISIBLE), r.update().catch((l) => console.error(l)));
|
|
2033
2033
|
},
|
|
2034
2034
|
// tooltip was already opened on another item, so instantly open tooltip
|
|
2035
2035
|
fe ? 0 : 500
|
|
@@ -2059,25 +2059,25 @@ function ir(e) {
|
|
|
2059
2059
|
e.className && i.classList.add(e.className);
|
|
2060
2060
|
const u = vt(e.badge);
|
|
2061
2061
|
u && i.appendChild(u);
|
|
2062
|
-
const
|
|
2063
|
-
if (
|
|
2062
|
+
const l = T(e.icon);
|
|
2063
|
+
if (l.setAttribute("role", "presentation"), i.appendChild(l), !(i instanceof HTMLElement))
|
|
2064
2064
|
throw new Error("renderActionItem: iconButton is not an HTMLElement");
|
|
2065
2065
|
if (e.actionFunction)
|
|
2066
2066
|
i.onclick = e.actionFunction;
|
|
2067
2067
|
else if (e.actionDom) {
|
|
2068
2068
|
const s = H();
|
|
2069
2069
|
i.setAttribute("id", s);
|
|
2070
|
-
const
|
|
2070
|
+
const c = mt(i), d = (
|
|
2071
2071
|
/** @type {HTMLElement} */
|
|
2072
|
-
|
|
2072
|
+
c.querySelector(p(a.POPUP_CONTENT_WRAPPER))
|
|
2073
2073
|
);
|
|
2074
2074
|
if (!d)
|
|
2075
2075
|
throw new Error("renderPopupMenu: contentWrapper not found");
|
|
2076
|
-
d.appendChild(T(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom)), t.appendChild(
|
|
2076
|
+
d.appendChild(T(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom)), t.appendChild(c), Re(o, i, c, "dialog", void 0);
|
|
2077
2077
|
} else if (e.actionPopupMenu) {
|
|
2078
2078
|
const s = H();
|
|
2079
2079
|
i.setAttribute("id", s);
|
|
2080
|
-
const
|
|
2080
|
+
const c = Et(
|
|
2081
2081
|
/** @type {PopupMenu} */
|
|
2082
2082
|
e.actionPopupMenu,
|
|
2083
2083
|
i,
|
|
@@ -2086,10 +2086,10 @@ function ir(e) {
|
|
|
2086
2086
|
parentMenuLinkSuffix: e.actionPopupMenu.parentMenuLinkSuffix
|
|
2087
2087
|
}
|
|
2088
2088
|
);
|
|
2089
|
-
t.appendChild(
|
|
2089
|
+
t.appendChild(c), Re(o, i, c, "menu", void 0);
|
|
2090
2090
|
} else
|
|
2091
2091
|
throw console.error(e), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
|
|
2092
|
-
return
|
|
2092
|
+
return Ne(t, document.createTextNode(e.title)), t;
|
|
2093
2093
|
}
|
|
2094
2094
|
function ar() {
|
|
2095
2095
|
var n, o;
|
|
@@ -2098,8 +2098,8 @@ function ar() {
|
|
|
2098
2098
|
return e != null && e.length && (t = T(nr), (o = (n = w().actionItems) == null ? void 0 : n.map((r) => ir(r))) == null || o.forEach((r) => t == null ? void 0 : t.appendChild(r))), t;
|
|
2099
2099
|
}
|
|
2100
2100
|
const sr = `<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
|
|
2101
|
-
`,
|
|
2102
|
-
`,
|
|
2101
|
+
`, cn = `<div class="utds-utah-id-wrapper"></div>
|
|
2102
|
+
`, Ue = {
|
|
2103
2103
|
PROFILE: "https://id.utah.gov",
|
|
2104
2104
|
SIGN_IN: `https://id.utah.gov/login?goto=${window.location}`,
|
|
2105
2105
|
SIGN_OUT: `https://id.utah.gov/logout?goto=${window.location}`,
|
|
@@ -2108,14 +2108,14 @@ const sr = `<button class="utds-utah-id__button button--solid" type="button">Uta
|
|
|
2108
2108
|
<div class="vertical-menu__wrapper-title"></div>
|
|
2109
2109
|
</div>
|
|
2110
2110
|
`;
|
|
2111
|
-
function
|
|
2111
|
+
function un(e, t) {
|
|
2112
2112
|
const n = T(lr), o = n.querySelector(p(a.VERTICAL_MENU_WRAPPER__WRAPPER_TITLE));
|
|
2113
2113
|
if (!o)
|
|
2114
2114
|
throw new Error("renderMenuWithTitle: menuTitleDiv not found");
|
|
2115
2115
|
return o.appendChild(document.createTextNode(t)), n.appendChild(e), n;
|
|
2116
2116
|
}
|
|
2117
2117
|
let N = null;
|
|
2118
|
-
function
|
|
2118
|
+
function dn(e) {
|
|
2119
2119
|
N = e, document.querySelectorAll(p(a.UTAH_ID__BUTTON)).forEach((n) => {
|
|
2120
2120
|
var o;
|
|
2121
2121
|
if (n) {
|
|
@@ -2136,13 +2136,13 @@ function bt(e, t) {
|
|
|
2136
2136
|
var n;
|
|
2137
2137
|
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")));
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2139
|
+
function pn() {
|
|
2140
2140
|
const e = T(sr);
|
|
2141
|
-
return e.setAttribute("id", H()), N &&
|
|
2141
|
+
return e.setAttribute("id", H()), N && dn(N), e;
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2144
|
-
var s,
|
|
2145
|
-
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 && ((
|
|
2143
|
+
function fn(e) {
|
|
2144
|
+
var s, c, d;
|
|
2145
|
+
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) || []];
|
|
2146
2146
|
r.length && r.push({
|
|
2147
2147
|
isDivider: !0,
|
|
2148
2148
|
title: "--divider--"
|
|
@@ -2150,31 +2150,31 @@ function pn(e) {
|
|
|
2150
2150
|
const i = [
|
|
2151
2151
|
...r,
|
|
2152
2152
|
{
|
|
2153
|
-
actionUrl: n ? void 0 : { url:
|
|
2153
|
+
actionUrl: n ? void 0 : { url: Ue.PROFILE, openInNewTab: !0 },
|
|
2154
2154
|
actionFunction: n || void 0,
|
|
2155
2155
|
title: "UtahID Profile"
|
|
2156
2156
|
},
|
|
2157
2157
|
{
|
|
2158
|
-
actionUrl: o ? void 0 : { url:
|
|
2158
|
+
actionUrl: o ? void 0 : { url: Ue.SIGN_OUT },
|
|
2159
2159
|
actionFunction: o || void 0,
|
|
2160
2160
|
title: "Sign Out"
|
|
2161
2161
|
}
|
|
2162
|
-
], u = ve(i, { childrenMenuType: Z.INLINE }),
|
|
2163
|
-
return
|
|
2162
|
+
], u = ve(i, { childrenMenuType: Z.INLINE }), l = e ? un(u, "Utah ID Menu") : u;
|
|
2163
|
+
return l.setAttribute("aria-label", "Utah Id Menu"), l.setAttribute("id", H()), l;
|
|
2164
2164
|
}
|
|
2165
2165
|
function cr() {
|
|
2166
|
-
var
|
|
2167
|
-
const e = T(
|
|
2166
|
+
var l;
|
|
2167
|
+
const e = T(cn), t = pn();
|
|
2168
2168
|
t.setAttribute("id", H()), e.appendChild(t);
|
|
2169
|
-
const n =
|
|
2169
|
+
const n = fn(!1), o = mt(t), r = (
|
|
2170
2170
|
/** @type {HTMLElement} */
|
|
2171
2171
|
o.querySelector(p(a.POPUP_CONTENT_WRAPPER))
|
|
2172
2172
|
);
|
|
2173
2173
|
if (!r)
|
|
2174
2174
|
throw new Error("renderUtahIdForDesktop: contentWrapper not found");
|
|
2175
2175
|
r.appendChild(n), e.appendChild(o), bt(t, o);
|
|
2176
|
-
const i = w(), u = i.utahId !== !1 && i.utahId !== !0 && ((
|
|
2177
|
-
return
|
|
2176
|
+
const i = w(), u = i.utahId !== !1 && i.utahId !== !0 && ((l = i.utahId) == null ? void 0 : l.onSignIn);
|
|
2177
|
+
return Re(
|
|
2178
2178
|
e,
|
|
2179
2179
|
t,
|
|
2180
2180
|
o,
|
|
@@ -2185,18 +2185,18 @@ function cr() {
|
|
|
2185
2185
|
return !!(N != null && N.isDefinitive) && !!((s = N == null ? void 0 : N.userInfo) != null && s.authenticated);
|
|
2186
2186
|
},
|
|
2187
2187
|
onClick: (s) => {
|
|
2188
|
-
var
|
|
2189
|
-
(!(N != null && N.isDefinitive) || !((
|
|
2188
|
+
var c;
|
|
2189
|
+
(!(N != null && N.isDefinitive) || !((c = N == null ? void 0 : N.userInfo) != null && c.authenticated)) && (u ? u(s) : (s.preventDefault(), s.stopPropagation(), window.location.href = Ue.SIGN_IN));
|
|
2190
2190
|
}
|
|
2191
2191
|
}
|
|
2192
2192
|
), e;
|
|
2193
2193
|
}
|
|
2194
2194
|
function ur() {
|
|
2195
|
-
const e = T(
|
|
2195
|
+
const e = T(cn), t = pn(), n = t.getAttribute("id");
|
|
2196
2196
|
if (!n)
|
|
2197
2197
|
throw new Error("renderUtahIdForMobile: utahIdButton has no id");
|
|
2198
2198
|
e.appendChild(t);
|
|
2199
|
-
const o =
|
|
2199
|
+
const o = fn(!0), r = o.getAttribute("id");
|
|
2200
2200
|
if (!r)
|
|
2201
2201
|
throw new Error("renderUtahIdForMobile: utahIdPopupMenu has no id");
|
|
2202
2202
|
return e.appendChild(o), t.setAttribute("aria-controls", r), o.setAttribute("aria-labelledby", n), bt(t, o), { button: t, menu: o };
|
|
@@ -2236,8 +2236,8 @@ function _r() {
|
|
|
2236
2236
|
s.setAttribute("role", "presentation"), s.setAttribute("alt", ""), n.appendChild(s);
|
|
2237
2237
|
} else
|
|
2238
2238
|
t.removeChild(n);
|
|
2239
|
-
const u = document.createTextNode(i),
|
|
2240
|
-
return
|
|
2239
|
+
const u = document.createTextNode(i), l = t.querySelector(p(a.TITLE__TITLE));
|
|
2240
|
+
return l == null || l.appendChild(u), !r && o && (l == null || l.classList.add(a.VISUALLY_HIDDEN)), t;
|
|
2241
2241
|
}
|
|
2242
2242
|
const hr = `<div class="utah-logo-wrapper">
|
|
2243
2243
|
<button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
|
|
@@ -2281,11 +2281,11 @@ const hr = `<div class="utah-logo-wrapper">
|
|
|
2281
2281
|
function vr() {
|
|
2282
2282
|
let e;
|
|
2283
2283
|
switch (w().size) {
|
|
2284
|
-
case
|
|
2284
|
+
case Oe.LARGE:
|
|
2285
2285
|
e = hr;
|
|
2286
2286
|
break;
|
|
2287
|
-
case
|
|
2288
|
-
case
|
|
2287
|
+
case Oe.SMALL:
|
|
2288
|
+
case Oe.MEDIUM:
|
|
2289
2289
|
e = mr;
|
|
2290
2290
|
break;
|
|
2291
2291
|
default:
|
|
@@ -2295,12 +2295,12 @@ function vr() {
|
|
|
2295
2295
|
if (!/** @type {HTMLElement} */
|
|
2296
2296
|
t.querySelector(p(a.LOGO_SVG)))
|
|
2297
2297
|
throw new Error("UtahLogo: logoButton not found");
|
|
2298
|
-
return t.setAttribute("id", H()),
|
|
2298
|
+
return t.setAttribute("id", H()), Ne(t, T(Er)), t;
|
|
2299
2299
|
}
|
|
2300
2300
|
function br() {
|
|
2301
2301
|
var n;
|
|
2302
2302
|
const e = T(Jo);
|
|
2303
|
-
e.classList.add(`utds-header--${((n = w().size) == null ? void 0 : n.toLowerCase()) ||
|
|
2303
|
+
e.classList.add(`utds-header--${((n = w().size) == null ? void 0 : n.toLowerCase()) || Oe.MEDIUM}`);
|
|
2304
2304
|
const t = T(Qo);
|
|
2305
2305
|
return e.appendChild(t), t.appendChild(vr()), t.appendChild(T(er)), t.appendChild(_r()), e.appendChild(dr()), e.appendChild(T(Xo)), e;
|
|
2306
2306
|
}
|
|
@@ -2369,81 +2369,81 @@ const Ir = `<li class="menu-item">
|
|
|
2369
2369
|
<div class="search-backdrop modal-backdrop backdrop-dark"></div>
|
|
2370
2370
|
</div>
|
|
2371
2371
|
`;
|
|
2372
|
-
function
|
|
2373
|
-
|
|
2374
|
-
const t = (
|
|
2372
|
+
function It(e) {
|
|
2373
|
+
const t = M(e || document.getElementById(a.SEARCH__SEARCH_MODAL), `setupSearchModal: '#${a.SEARCH__SEARCH_MODAL}' not found`), n = (
|
|
2375
2374
|
/** @type {HTMLElement} */
|
|
2376
|
-
|
|
2377
|
-
)
|
|
2378
|
-
if (!t)
|
|
2379
|
-
throw new Error("closSearchModal: searchIcon not found");
|
|
2380
|
-
t.focus();
|
|
2381
|
-
}
|
|
2382
|
-
function Ze() {
|
|
2383
|
-
const e = O(document.getElementById(a.SEARCH__SEARCH_MODAL), "showSearchModal: search modal not found");
|
|
2384
|
-
e.classList.remove(a.VISUALLY_HIDDEN), O(
|
|
2385
|
-
/** @type {HTMLInputElement} */
|
|
2386
|
-
e.querySelector(p(a.SEARCH__SEARCH_INPUT)),
|
|
2387
|
-
"showSearchModal: searchInput not found"
|
|
2388
|
-
).focus();
|
|
2389
|
-
}
|
|
2390
|
-
function Ar() {
|
|
2391
|
-
const e = T(gr), t = (
|
|
2375
|
+
M(t.querySelector(p(a.SEARCH__SEARCH_BACKDROP)), "setupSearchModal: backdrop not found")
|
|
2376
|
+
), o = (
|
|
2392
2377
|
/** @type {HTMLElement} */
|
|
2393
|
-
|
|
2394
|
-
)
|
|
2395
|
-
if (!t)
|
|
2396
|
-
throw new Error("setupSearchModal: backdrop not found");
|
|
2397
|
-
const n = (
|
|
2378
|
+
M(t.querySelector(p(a.SEARCH__SEARCH_CLOSE_BUTTON)), "setupSearchModal: closeButton not found")
|
|
2379
|
+
), r = (
|
|
2398
2380
|
/** @type {HTMLElement} */
|
|
2399
|
-
|
|
2400
|
-
)
|
|
2401
|
-
if (!n)
|
|
2402
|
-
throw new Error("setupSearchModal: closeButton not found");
|
|
2403
|
-
const o = (
|
|
2381
|
+
M(t.querySelector(p(a.SEARCH__SEARCH_BUTTON)), "setupSearchModal: searchButton not found")
|
|
2382
|
+
), i = (
|
|
2404
2383
|
/** @type {HTMLElement} */
|
|
2405
|
-
|
|
2406
|
-
)
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2384
|
+
M(t.querySelector(p(a.SEARCH__SEARCH_BUTTON_WRAPPER)), "setupSearchModal: searchButtonWrapper not found")
|
|
2385
|
+
), u = (
|
|
2386
|
+
/** @type {HTMLInputElement} */
|
|
2387
|
+
M(t.querySelector(p(a.SEARCH__SEARCH_INPUT)), "setupSearchModal: searchInput not found")
|
|
2388
|
+
), l = (
|
|
2410
2389
|
/** @type {HTMLElement} */
|
|
2411
|
-
|
|
2390
|
+
M(t.querySelector(".search-modal__hidden-last-focusable"), "setupSearchModal: hiddenLastFocusableButton not found")
|
|
2412
2391
|
);
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2392
|
+
return {
|
|
2393
|
+
backdrop: n,
|
|
2394
|
+
closeButton: o,
|
|
2395
|
+
hiddenLastFocusableButton: l,
|
|
2396
|
+
searchButton: r,
|
|
2397
|
+
searchButtonWrapper: i,
|
|
2398
|
+
searchInput: u,
|
|
2399
|
+
searchModal: t
|
|
2400
|
+
};
|
|
2401
|
+
}
|
|
2402
|
+
function Ae() {
|
|
2403
|
+
var r;
|
|
2404
|
+
M(document.getElementById(a.SEARCH__SEARCH_MODAL), "closeSearchModal: search modal not found").classList.add(a.VISUALLY_HIDDEN);
|
|
2405
|
+
const { closeButton: t, hiddenLastFocusableButton: n } = It(), o = (
|
|
2406
|
+
/** @type {HTMLElement} */
|
|
2407
|
+
document.querySelector(p(a.MAIN_MENU__SEARCH))
|
|
2418
2408
|
);
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2409
|
+
o && ((r = document.activeElement) != null && r.closest(`#${a.SEARCH__SEARCH_MODAL}`)) && o.focus(), t.tabIndex = -1, n.tabIndex = -1;
|
|
2410
|
+
}
|
|
2411
|
+
function Ze() {
|
|
2412
|
+
M(document.getElementById(a.SEARCH__SEARCH_MODAL), "showSearchModal: search modal not found").classList.remove(a.VISUALLY_HIDDEN);
|
|
2413
|
+
const { searchInput: t, closeButton: n, hiddenLastFocusableButton: o } = It();
|
|
2414
|
+
t.focus(), n.tabIndex = 0, o.tabIndex = 0;
|
|
2415
|
+
}
|
|
2416
|
+
function Ar() {
|
|
2417
|
+
const e = T(gr), {
|
|
2418
|
+
backdrop: t,
|
|
2419
|
+
closeButton: n,
|
|
2420
|
+
hiddenLastFocusableButton: o,
|
|
2421
|
+
searchButton: r,
|
|
2422
|
+
searchButtonWrapper: i,
|
|
2423
|
+
searchInput: u
|
|
2424
|
+
} = It(e);
|
|
2425
|
+
r.onclick = (l) => {
|
|
2426
|
+
l.preventDefault(), l.stopPropagation(), Ae();
|
|
2423
2427
|
const { onSearch: s } = w();
|
|
2424
|
-
s && (s == null || s(
|
|
2425
|
-
}, n.onclick = (
|
|
2426
|
-
|
|
2427
|
-
}, t.onclick = (
|
|
2428
|
-
|
|
2429
|
-
}, document.body.appendChild(e),
|
|
2430
|
-
|
|
2431
|
-
},
|
|
2432
|
-
|
|
2433
|
-
}, e.onkeyup = (
|
|
2434
|
-
(
|
|
2435
|
-
}, n.addEventListener("focusout", (
|
|
2436
|
-
|
|
2437
|
-
})
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
throw new Error("setupSearchModal: hiddenLastFocusableButton not found");
|
|
2441
|
-
u.addEventListener("focusin", (c) => {
|
|
2442
|
-
c.preventDefault(), c.stopPropagation(), n.focus();
|
|
2443
|
-
});
|
|
2428
|
+
s && (s == null || s(u.value));
|
|
2429
|
+
}, n.onclick = (l) => {
|
|
2430
|
+
l.preventDefault(), l.stopPropagation(), Ae();
|
|
2431
|
+
}, t.onclick = (l) => {
|
|
2432
|
+
l.preventDefault(), l.stopPropagation(), Ae();
|
|
2433
|
+
}, document.body.appendChild(e), u.oninput = () => {
|
|
2434
|
+
i.classList.remove(a.VISUALLY_HIDDEN);
|
|
2435
|
+
}, r.onfocus = () => {
|
|
2436
|
+
i.classList.remove(a.VISUALLY_HIDDEN);
|
|
2437
|
+
}, e.onkeyup = (l) => {
|
|
2438
|
+
(l.code === "Escape" || l.key === "Escape") && (l.preventDefault(), l.stopPropagation(), Ae());
|
|
2439
|
+
}, n.addEventListener("focusout", (l) => {
|
|
2440
|
+
l.preventDefault(), l.stopPropagation(), e.classList.contains(a.VISUALLY_HIDDEN) || (Me[ot.SHIFT] ? r.focus() : u.focus());
|
|
2441
|
+
}), o.addEventListener("focusin", (l) => {
|
|
2442
|
+
l.preventDefault(), l.stopPropagation(), e.classList.contains(a.VISUALLY_HIDDEN) || n.focus();
|
|
2443
|
+
}), Ae();
|
|
2444
2444
|
}
|
|
2445
2445
|
function Mr() {
|
|
2446
|
-
var
|
|
2446
|
+
var l;
|
|
2447
2447
|
const e = w(), t = T(Tr);
|
|
2448
2448
|
let n = t.querySelector(p(a.MAIN_MENU__NAV));
|
|
2449
2449
|
if (!n)
|
|
@@ -2456,62 +2456,62 @@ function Mr() {
|
|
|
2456
2456
|
const s = n == null ? void 0 : n.querySelector(p(a.MAIN_MENU__MENU_TOP));
|
|
2457
2457
|
if (!s)
|
|
2458
2458
|
throw new Error("renderMainMenu(): mainMenuTop not found");
|
|
2459
|
-
e.mainMenu.menuItems.forEach((
|
|
2459
|
+
e.mainMenu.menuItems.forEach((c) => {
|
|
2460
2460
|
var E, b;
|
|
2461
2461
|
const d = T(Ir);
|
|
2462
2462
|
s.appendChild(d);
|
|
2463
|
-
const _ =
|
|
2463
|
+
const _ = M(
|
|
2464
2464
|
d.querySelector(p(a.MENU_ITEM__TITLE)),
|
|
2465
|
-
`renderMainMenu(): sub menu title not found for ${
|
|
2466
|
-
), h =
|
|
2465
|
+
`renderMainMenu(): sub menu title not found for ${c.title}`
|
|
2466
|
+
), h = M(
|
|
2467
2467
|
/** @type {HTMLElement} */
|
|
2468
2468
|
_.querySelector(p(a.MENU_ITEM__BUTTON_TITLE)),
|
|
2469
|
-
`renderMainMenu(): button title not found for ${
|
|
2469
|
+
`renderMainMenu(): button title not found for ${c.title}`
|
|
2470
2470
|
);
|
|
2471
|
-
h.setAttribute("id", `${a.MENU_ITEM__BUTTON_TITLE}__${
|
|
2472
|
-
const m =
|
|
2471
|
+
h.setAttribute("id", `${a.MENU_ITEM__BUTTON_TITLE}__${c.title}-${H()}`), c.className && h.classList.add(c.className);
|
|
2472
|
+
const m = M(
|
|
2473
2473
|
/** @type {HTMLElement} */
|
|
2474
2474
|
_.querySelector(p(a.MENU_ITEM__LINK_TITLE)),
|
|
2475
|
-
`renderMainMenu(): link title not found for ${
|
|
2475
|
+
`renderMainMenu(): link title not found for ${c.title}`
|
|
2476
2476
|
);
|
|
2477
|
-
m.setAttribute("id", `${a.MENU_ITEM__LINK_TITLE}__${
|
|
2477
|
+
m.setAttribute("id", `${a.MENU_ITEM__LINK_TITLE}__${c.title}-${H()}`), c.className && m.classList.add(c.className);
|
|
2478
2478
|
let f;
|
|
2479
|
-
if (
|
|
2479
|
+
if (c.actionFunctionUrl || c.actionUrl)
|
|
2480
2480
|
f = m, h.remove();
|
|
2481
|
-
else if (
|
|
2481
|
+
else if (c.actionMenu || c.actionFunction)
|
|
2482
2482
|
f = h, m.remove();
|
|
2483
2483
|
else
|
|
2484
|
-
throw new Error(`renderMainMenu(): menuItem is missing an action: ${
|
|
2485
|
-
const v =
|
|
2484
|
+
throw new Error(`renderMainMenu(): menuItem is missing an action: ${c.title}`);
|
|
2485
|
+
const v = M(
|
|
2486
2486
|
f.querySelector(p(a.MENU_ITEM__LINK_TITLE_SPAN)),
|
|
2487
|
-
`renderMainMenu(): main menu item title span not found for: ${
|
|
2487
|
+
`renderMainMenu(): main menu item title span not found for: ${c.title}`
|
|
2488
2488
|
);
|
|
2489
|
-
if (
|
|
2489
|
+
if (c.isSelected && f.classList.add(a.MENU_ITEM__SELECTED), c.actionMenu) {
|
|
2490
2490
|
const g = (
|
|
2491
2491
|
/** @type {MainMenu} */
|
|
2492
2492
|
e.mainMenu
|
|
2493
2493
|
);
|
|
2494
|
-
v.innerHTML =
|
|
2495
|
-
const
|
|
2496
|
-
(
|
|
2497
|
-
actionFunction:
|
|
2498
|
-
actionFunctionUrl:
|
|
2499
|
-
actionUrl:
|
|
2500
|
-
className:
|
|
2501
|
-
icon:
|
|
2502
|
-
title: `${
|
|
2494
|
+
v.innerHTML = c.title;
|
|
2495
|
+
const O = [...c.actionMenu];
|
|
2496
|
+
(c.actionFunction || c.actionUrl || c.actionFunctionUrl) && O.unshift({
|
|
2497
|
+
actionFunction: c.actionFunction,
|
|
2498
|
+
actionFunctionUrl: c.actionFunctionUrl,
|
|
2499
|
+
actionUrl: c.actionUrl,
|
|
2500
|
+
className: c.className,
|
|
2501
|
+
icon: c.icon,
|
|
2502
|
+
title: `${c.title}${sn(c, g.parentMenuLinkSuffix)}`
|
|
2503
2503
|
});
|
|
2504
|
-
const I = { menuItems:
|
|
2504
|
+
const I = { menuItems: O, title: c.title }, L = Et(
|
|
2505
2505
|
I,
|
|
2506
2506
|
f,
|
|
2507
2507
|
{
|
|
2508
|
-
childrenMenuType:
|
|
2508
|
+
childrenMenuType: c.childrenMenuType || Z.FLYOUT,
|
|
2509
2509
|
parentMenuLinkSuffix: g.parentMenuLinkSuffix
|
|
2510
2510
|
}
|
|
2511
2511
|
);
|
|
2512
|
-
d.appendChild(
|
|
2512
|
+
d.appendChild(L), Re(d, f, L, "menu", { shouldFocusOnHover: !0, doNotClosePopupOnClick: !0 });
|
|
2513
2513
|
let A;
|
|
2514
|
-
switch (
|
|
2514
|
+
switch (c.childrenMenuType) {
|
|
2515
2515
|
case Z.INLINE:
|
|
2516
2516
|
A = a.MENU_ITEM__INLINE;
|
|
2517
2517
|
break;
|
|
@@ -2525,57 +2525,57 @@ function Mr() {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
d.classList.add(A);
|
|
2527
2527
|
} else
|
|
2528
|
-
|
|
2528
|
+
M(
|
|
2529
2529
|
f.querySelector(p(a.MENU_ITEM__ARROW)),
|
|
2530
|
-
`renderMainMenu(): menu arrow not found for ${
|
|
2530
|
+
`renderMainMenu(): menu arrow not found for ${c.title}`
|
|
2531
2531
|
).remove();
|
|
2532
|
-
|
|
2533
|
-
var
|
|
2534
|
-
(
|
|
2535
|
-
})) :
|
|
2532
|
+
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) => {
|
|
2533
|
+
var O, I;
|
|
2534
|
+
(O = c.actionFunctionUrl) != null && O.skipHandleEvent || (g.stopPropagation(), g.preventDefault()), (I = c.actionFunctionUrl) == null || I.actionFunction(g);
|
|
2535
|
+
})) : 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(lt)));
|
|
2536
2536
|
});
|
|
2537
2537
|
}
|
|
2538
2538
|
let i = null;
|
|
2539
2539
|
if (e.utahId) {
|
|
2540
|
-
const { button: s, menu:
|
|
2541
|
-
i =
|
|
2540
|
+
const { button: s, menu: c } = ur();
|
|
2541
|
+
i = c, M(
|
|
2542
2542
|
t.querySelector(p(a.MOBILE__UTAH_ID)),
|
|
2543
2543
|
"renderMainMenu: utahIdButtonWrapper not found"
|
|
2544
2544
|
).appendChild(s);
|
|
2545
2545
|
}
|
|
2546
|
-
const u =
|
|
2546
|
+
const u = M(
|
|
2547
2547
|
/** @type {HTMLElement} */
|
|
2548
2548
|
t.querySelector(p(a.MAIN_MENU__SEARCH)),
|
|
2549
2549
|
"renderMainMenu: searchIcon not found"
|
|
2550
2550
|
);
|
|
2551
2551
|
if (e.onSearch) {
|
|
2552
|
-
if (Ar(),
|
|
2552
|
+
if (Ar(), Ne(u, document.createTextNode("Search")), u.onclick)
|
|
2553
2553
|
throw new Error("searchIcon already has onclick");
|
|
2554
2554
|
if (u.onclick = () => Ze(), !e.mainMenu) {
|
|
2555
|
-
const s =
|
|
2555
|
+
const s = M(
|
|
2556
2556
|
document.querySelector(p(a.CITIZEN_EXPERIENCE)),
|
|
2557
2557
|
"renderMainMenu: citizen experience wrapper not found"
|
|
2558
|
-
),
|
|
2559
|
-
if (
|
|
2560
|
-
const d =
|
|
2561
|
-
s.insertBefore(
|
|
2558
|
+
), c = T(u.outerHTML);
|
|
2559
|
+
if (Ne(c, document.createTextNode("Search")), c.onclick = () => Ze(), u.classList.add(a.DESKTOP__HIDDEN), e.utahId !== !1) {
|
|
2560
|
+
const d = M(document.querySelector(p(a.UTAH_ID)), "renderMainMenu: utahId wrapper not found");
|
|
2561
|
+
s.insertBefore(c, d);
|
|
2562
2562
|
} else
|
|
2563
|
-
s.appendChild(
|
|
2563
|
+
s.appendChild(c);
|
|
2564
2564
|
}
|
|
2565
2565
|
if (!e.mainMenu && !e.actionItems && e.utahId === !1) {
|
|
2566
2566
|
const s = T(
|
|
2567
2567
|
/** @type {HTMLElement} */
|
|
2568
2568
|
u.outerHTML
|
|
2569
2569
|
);
|
|
2570
|
-
if (
|
|
2570
|
+
if (Ne(s, document.createTextNode("Search")), s.onclick)
|
|
2571
2571
|
throw new Error("searchIconMobile already has onclick");
|
|
2572
|
-
s.onclick = () => Ze(),
|
|
2572
|
+
s.onclick = () => Ze(), M(
|
|
2573
2573
|
document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
|
|
2574
2574
|
"renderMainMenu: citizen-experience--mobile not found"
|
|
2575
2575
|
).appendChild(s);
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
2578
|
-
return e.onSearch || ((e.mainMenu || !e.mainMenu && e.utahId) && ((
|
|
2578
|
+
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 };
|
|
2579
2579
|
}
|
|
2580
2580
|
const Lr = `<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
|
|
2581
2581
|
<h2 class="utds-official-website-popup__heading">
|
|
@@ -2619,17 +2619,17 @@ const Lr = `<div class="utah-design-system utds-official-website-popup__wrapper
|
|
|
2619
2619
|
</button>
|
|
2620
2620
|
</div>
|
|
2621
2621
|
`;
|
|
2622
|
-
function
|
|
2623
|
-
const e =
|
|
2622
|
+
function _n() {
|
|
2623
|
+
const e = M(
|
|
2624
2624
|
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
2625
2625
|
"openOfficialWebsite: official wrapper not found"
|
|
2626
|
-
), t =
|
|
2626
|
+
), t = M(
|
|
2627
2627
|
document.querySelector(p(a.LOGO)),
|
|
2628
2628
|
"openOfficialWebsite: logoWrapper not found"
|
|
2629
|
-
), n =
|
|
2629
|
+
), n = M(
|
|
2630
2630
|
t.querySelector(p(a.LOGO_SVG)),
|
|
2631
2631
|
"openOfficialWebsite: logoButton not found"
|
|
2632
|
-
), o =
|
|
2632
|
+
), o = M(
|
|
2633
2633
|
e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
|
|
2634
2634
|
"openOfficialWebsite: official close button not found"
|
|
2635
2635
|
);
|
|
@@ -2640,16 +2640,16 @@ function fn() {
|
|
|
2640
2640
|
});
|
|
2641
2641
|
}
|
|
2642
2642
|
function Or() {
|
|
2643
|
-
const e =
|
|
2643
|
+
const e = M(
|
|
2644
2644
|
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
2645
2645
|
"openOfficialWebsite: official wrapper not found"
|
|
2646
|
-
), t =
|
|
2646
|
+
), t = M(
|
|
2647
2647
|
document.querySelector(p(a.LOGO)),
|
|
2648
2648
|
"openOfficialWebsite: logoWrapper not found"
|
|
2649
|
-
), n =
|
|
2649
|
+
), n = M(
|
|
2650
2650
|
t.querySelector(p(a.LOGO_SVG)),
|
|
2651
2651
|
"openOfficialWebsite: logoButton not found"
|
|
2652
|
-
), o =
|
|
2652
|
+
), o = M(
|
|
2653
2653
|
e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
|
|
2654
2654
|
"openOfficialWebsite: official close button not found"
|
|
2655
2655
|
);
|
|
@@ -2672,7 +2672,7 @@ function wr() {
|
|
|
2672
2672
|
if (!o)
|
|
2673
2673
|
throw new Error("renderOfficialWebsite: closeButton not found");
|
|
2674
2674
|
return n.onclick = () => {
|
|
2675
|
-
e.classList.toggle(a.VISUALLY_HIDDEN), e.classList.contains(a.VISUALLY_HIDDEN) ?
|
|
2675
|
+
e.classList.toggle(a.VISUALLY_HIDDEN), e.classList.contains(a.VISUALLY_HIDDEN) ? _n() : Or();
|
|
2676
2676
|
const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
|
|
2677
2677
|
r == null || r.forEach((i) => {
|
|
2678
2678
|
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
@@ -2682,51 +2682,51 @@ function wr() {
|
|
|
2682
2682
|
}, 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;
|
|
2683
2683
|
}
|
|
2684
2684
|
function yr(e) {
|
|
2685
|
-
var
|
|
2686
|
-
const { hamburger: t } =
|
|
2685
|
+
var c, d;
|
|
2686
|
+
const { hamburger: t } = Se("hookupHamburger"), n = (
|
|
2687
2687
|
/**
|
|
2688
2688
|
* @param {string} context
|
|
2689
2689
|
* @returns {HTMLElement}
|
|
2690
2690
|
*/
|
|
2691
|
-
(_) =>
|
|
2691
|
+
(_) => M(t, `hookupHamburger: hamburger required but is null: ${_}`)
|
|
2692
2692
|
), o = w();
|
|
2693
|
-
if ((
|
|
2693
|
+
if ((c = o.actionItems) == null ? void 0 : c.some((_) => !!_.badge)) {
|
|
2694
2694
|
const _ = vt({ label: "Home Badge" });
|
|
2695
2695
|
_ && n("home badge").appendChild(_);
|
|
2696
2696
|
}
|
|
2697
2697
|
Ge();
|
|
2698
2698
|
function i() {
|
|
2699
|
-
const _ =
|
|
2699
|
+
const _ = M(
|
|
2700
2700
|
/** @type {HTMLElement} */
|
|
2701
2701
|
document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
|
|
2702
2702
|
"hookupHamburger: no action items to select on mobile hamburger open"
|
|
2703
2703
|
), h = _.querySelector("button"), m = h == null ? void 0 : h.getAttribute("aria-controls");
|
|
2704
2704
|
return { actionItem: _, actionItemWrapper: m ? document.getElementById(m) : null };
|
|
2705
2705
|
}
|
|
2706
|
-
const u =
|
|
2706
|
+
const u = M(
|
|
2707
2707
|
/** @type {HTMLElement} */
|
|
2708
2708
|
document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
|
|
2709
2709
|
"hookupHamburger: no action items to select on mobile hamburger open"
|
|
2710
|
-
),
|
|
2710
|
+
), l = (d = u.querySelector) == null ? void 0 : d.call(u, "button"), s = (l || u).getAttribute("id");
|
|
2711
2711
|
if (!s)
|
|
2712
2712
|
throw new Error("mobileMenuInteractionHandler: actionItemId not found");
|
|
2713
2713
|
if (e) {
|
|
2714
2714
|
const _ = e.getAttribute("id");
|
|
2715
2715
|
if (!_)
|
|
2716
2716
|
throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");
|
|
2717
|
-
(
|
|
2717
|
+
(l || u).setAttribute("aria-controls", _), e.setAttribute("aria-labelledby", s);
|
|
2718
2718
|
}
|
|
2719
2719
|
t && st(
|
|
2720
2720
|
t,
|
|
2721
2721
|
() => i().actionItemWrapper,
|
|
2722
2722
|
() => i().actionItem,
|
|
2723
2723
|
{
|
|
2724
|
-
additionalOnClick: () =>
|
|
2724
|
+
additionalOnClick: () => _n(),
|
|
2725
2725
|
ariaHasPopupType: "menu",
|
|
2726
2726
|
shouldOnClickCloseMenu: !0
|
|
2727
2727
|
}
|
|
2728
2728
|
), t && (j(!!t.onblur, "hookupHamburger: hamburger already has an onblur event"), t.onblur = () => {
|
|
2729
|
-
const { mobileMenu: _ } =
|
|
2729
|
+
const { mobileMenu: _ } = Se("showMobileMenu");
|
|
2730
2730
|
if (_.classList.contains(a.IS_OPEN)) {
|
|
2731
2731
|
const h = p(a.MOBILE_MENU__ACTION_BAR), m = p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER), f = p(a.ICON_BUTTON), v = (
|
|
2732
2732
|
/** @type {HTMLElement | null} */
|
|
@@ -2734,18 +2734,18 @@ function yr(e) {
|
|
|
2734
2734
|
);
|
|
2735
2735
|
v == null || v.focus();
|
|
2736
2736
|
}
|
|
2737
|
-
}), (o.mainMenu || o.actionItems) && !o.onSearch && o.utahId === !1 && (
|
|
2737
|
+
}), (o.mainMenu || o.actionItems) && !o.onSearch && o.utahId === !1 && (M(
|
|
2738
2738
|
document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
|
|
2739
2739
|
"hookupHamburger: citizen experience mobile not found"
|
|
2740
|
-
).appendChild(n("adding to citizen experience")),
|
|
2740
|
+
).appendChild(n("adding to citizen experience")), M(
|
|
2741
2741
|
document.querySelector(p(a.MAIN_MENU)),
|
|
2742
2742
|
"hookupHamburger: main menu not found"
|
|
2743
|
-
).classList.add(a.MOBILE__HIDDEN)), o.onSearch && !o.mainMenu &&
|
|
2743
|
+
).classList.add(a.MOBILE__HIDDEN)), o.onSearch && !o.mainMenu && M(
|
|
2744
2744
|
document.querySelector(p(a.MAIN_MENU)),
|
|
2745
2745
|
"renderMainMenu: main menu not found"
|
|
2746
2746
|
).classList.add(a.DESKTOP__HIDDEN);
|
|
2747
2747
|
}
|
|
2748
|
-
const
|
|
2748
|
+
const Le = {
|
|
2749
2749
|
AUTOMATIC: (
|
|
2750
2750
|
/** @type {UtahIdFetchStyle} */
|
|
2751
2751
|
"Automatic"
|
|
@@ -2759,17 +2759,17 @@ const Me = {
|
|
|
2759
2759
|
"Provided"
|
|
2760
2760
|
)
|
|
2761
2761
|
};
|
|
2762
|
-
let
|
|
2762
|
+
let Vt = Le.NONE;
|
|
2763
2763
|
function Nr(e) {
|
|
2764
2764
|
let t;
|
|
2765
2765
|
if (e === !0)
|
|
2766
|
-
t =
|
|
2766
|
+
t = Le.AUTOMATIC;
|
|
2767
2767
|
else if (e === !1)
|
|
2768
|
-
t =
|
|
2768
|
+
t = Le.NONE;
|
|
2769
2769
|
else if (e === void 0 || e.currentUser === void 0)
|
|
2770
|
-
t =
|
|
2770
|
+
t = Le.AUTOMATIC;
|
|
2771
2771
|
else if (e.currentUser === null || e.currentUser)
|
|
2772
|
-
t =
|
|
2772
|
+
t = Le.PROVIDED;
|
|
2773
2773
|
else
|
|
2774
2774
|
throw new Error("determineFetchStyle: Unknown utah id fetch style");
|
|
2775
2775
|
return t;
|
|
@@ -2780,28 +2780,28 @@ const k = {
|
|
|
2780
2780
|
lastError: null,
|
|
2781
2781
|
userInfo: null
|
|
2782
2782
|
};
|
|
2783
|
-
function
|
|
2783
|
+
function qt(e) {
|
|
2784
2784
|
var t, n;
|
|
2785
2785
|
if (e.isDefinitive) {
|
|
2786
|
-
|
|
2786
|
+
dn(e);
|
|
2787
2787
|
const o = (t = w()) == null ? void 0 : t.utahId;
|
|
2788
2788
|
typeof o == "object" && ((n = o.onAuthChanged) == null || n.call(o, e));
|
|
2789
2789
|
}
|
|
2790
2790
|
}
|
|
2791
|
-
let
|
|
2791
|
+
let $t = !0;
|
|
2792
2792
|
const Sr = 500;
|
|
2793
|
-
let
|
|
2794
|
-
async function
|
|
2793
|
+
let Gt = NaN;
|
|
2794
|
+
async function hn() {
|
|
2795
2795
|
var o, r;
|
|
2796
2796
|
let e = Promise.resolve(k);
|
|
2797
2797
|
const t = w(), n = Nr(t.utahId);
|
|
2798
2798
|
if (k.isDefinitive === !1)
|
|
2799
2799
|
e = Promise.resolve(k);
|
|
2800
|
-
else if (
|
|
2801
|
-
clearTimeout(
|
|
2802
|
-
|
|
2800
|
+
else if ($t)
|
|
2801
|
+
clearTimeout(Gt), e = new Promise((i) => {
|
|
2802
|
+
Gt = window.setTimeout(
|
|
2803
2803
|
() => {
|
|
2804
|
-
|
|
2804
|
+
$t = !1, hn().then((u) => i(u)).catch((u) => console.error(u));
|
|
2805
2805
|
},
|
|
2806
2806
|
Sr
|
|
2807
2807
|
);
|
|
@@ -2813,23 +2813,23 @@ async function _n() {
|
|
|
2813
2813
|
userInfo: null
|
|
2814
2814
|
});
|
|
2815
2815
|
else if (t.utahId === !0 || ((o = t.utahId) == null ? void 0 : o.currentUser) === void 0)
|
|
2816
|
-
(n !==
|
|
2816
|
+
(n !== Vt || k.isDefinitive === null) && (k.isDefinitive = !1, e = fetch(Ue.USER_INFO, { credentials: "include" }).then((i) => i.json()).then((i) => {
|
|
2817
2817
|
if (i.status === 200)
|
|
2818
2818
|
k.lastError = null, k.userInfo = /** @type {UserInfo} */
|
|
2819
2819
|
i.data;
|
|
2820
2820
|
else
|
|
2821
2821
|
throw new Error(i.err);
|
|
2822
2822
|
return k;
|
|
2823
|
-
}).catch((i) => (k.lastError = i, k.userInfo = null, k)).finally(() => (k.isDefinitive = !0,
|
|
2823
|
+
}).catch((i) => (k.lastError = i, k.userInfo = null, k)).finally(() => (k.isDefinitive = !0, qt(k), k)));
|
|
2824
2824
|
else {
|
|
2825
2825
|
const i = {
|
|
2826
2826
|
isDefinitive: !0,
|
|
2827
2827
|
lastError: null,
|
|
2828
2828
|
userInfo: (r = t.utahId) == null ? void 0 : r.currentUser
|
|
2829
2829
|
};
|
|
2830
|
-
e = Promise.resolve(i),
|
|
2830
|
+
e = Promise.resolve(i), qt(i);
|
|
2831
2831
|
}
|
|
2832
|
-
return
|
|
2832
|
+
return Vt = n, e;
|
|
2833
2833
|
}
|
|
2834
2834
|
function Pr() {
|
|
2835
2835
|
return k;
|
|
@@ -2867,21 +2867,21 @@ function Rr(e, t) {
|
|
|
2867
2867
|
);
|
|
2868
2868
|
if (!u)
|
|
2869
2869
|
throw new Error("hookupHamburger: profileActionItemWrapper not found");
|
|
2870
|
-
const
|
|
2870
|
+
const l = at(t);
|
|
2871
2871
|
st(
|
|
2872
2872
|
o,
|
|
2873
|
-
|
|
2873
|
+
l,
|
|
2874
2874
|
u,
|
|
2875
2875
|
{
|
|
2876
2876
|
ariaHasPopupType: "menu",
|
|
2877
2877
|
onClickHandler: (s) => {
|
|
2878
2878
|
var h, m;
|
|
2879
|
-
const
|
|
2879
|
+
const c = Pr(), d = w();
|
|
2880
2880
|
let _ = !1;
|
|
2881
|
-
if (!(
|
|
2881
|
+
if (!(c != null && c.isDefinitive) || !((h = c == null ? void 0 : c.userInfo) != null && h.authenticated)) {
|
|
2882
2882
|
_ = !0;
|
|
2883
2883
|
const f = d.utahId !== !1 && d.utahId !== !0 && ((m = d.utahId) == null ? void 0 : m.onSignIn);
|
|
2884
|
-
f ? f(s) : (s.preventDefault(), s.stopPropagation(), window.location.href =
|
|
2884
|
+
f ? f(s) : (s.preventDefault(), s.stopPropagation(), window.location.href = Ue.SIGN_IN);
|
|
2885
2885
|
}
|
|
2886
2886
|
return _;
|
|
2887
2887
|
},
|
|
@@ -2915,16 +2915,16 @@ function Dr() {
|
|
|
2915
2915
|
}, r.onkeyup = /** @param {KeyboardEvent} e */
|
|
2916
2916
|
(i) => {
|
|
2917
2917
|
const u = t.indexOf(r);
|
|
2918
|
-
let
|
|
2919
|
-
if (i.code === "Home" ?
|
|
2918
|
+
let l = NaN;
|
|
2919
|
+
if (i.code === "Home" ? l = 0 : i.code === "End" ? l = t.length - 1 : i.code === "ArrowRight" ? l = (u + 1) % t.length : i.code === "ArrowLeft" && (l = (t.length + u - 1) % t.length), !Number.isNaN(l)) {
|
|
2920
2920
|
i.preventDefault(), i.stopPropagation();
|
|
2921
|
-
const s = t[
|
|
2921
|
+
const s = t[l], c = (
|
|
2922
2922
|
/** @type {HTMLElement} */
|
|
2923
2923
|
s == null ? void 0 : s.closest(
|
|
2924
2924
|
p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)
|
|
2925
2925
|
)
|
|
2926
2926
|
);
|
|
2927
|
-
if (!
|
|
2927
|
+
if (!c)
|
|
2928
2928
|
throw new Error("hookupMobileActionItemKeyboarding: newWrapper not found... how in the blazes?!");
|
|
2929
2929
|
const d = s == null ? void 0 : s.getAttribute("aria-controls");
|
|
2930
2930
|
if (d && document.getElementById(d))
|
|
@@ -2950,15 +2950,15 @@ function Dr() {
|
|
|
2950
2950
|
);
|
|
2951
2951
|
if (!h)
|
|
2952
2952
|
throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");
|
|
2953
|
-
Qe(h,
|
|
2953
|
+
Qe(h, c);
|
|
2954
2954
|
}
|
|
2955
2955
|
};
|
|
2956
2956
|
}
|
|
2957
2957
|
);
|
|
2958
|
-
const n =
|
|
2958
|
+
const n = M(
|
|
2959
2959
|
document.querySelector(p(a.MOBILE_MENU__LAST_FOCUSABLE)),
|
|
2960
2960
|
"hookupMobileActionItemKeyboarding: hiddenLastFocusableButton not found"
|
|
2961
|
-
), { hamburger: o } =
|
|
2961
|
+
), { hamburger: o } = Se("hookupMobileActionItemKeyboarding");
|
|
2962
2962
|
n.addEventListener("focusin", (r) => {
|
|
2963
2963
|
r.preventDefault(), r.stopPropagation(), o == null || o.focus();
|
|
2964
2964
|
});
|
|
@@ -3009,7 +3009,7 @@ function kr() {
|
|
|
3009
3009
|
else
|
|
3010
3010
|
throw new Error("loadHeader: domLocationTarget must have at least one field set");
|
|
3011
3011
|
}
|
|
3012
|
-
return
|
|
3012
|
+
return M(t, "loadHeader: domTarget is null (how?!)");
|
|
3013
3013
|
}
|
|
3014
3014
|
function Wr() {
|
|
3015
3015
|
var t;
|
|
@@ -3020,10 +3020,10 @@ function Wr() {
|
|
|
3020
3020
|
n.after(r);
|
|
3021
3021
|
const i = Br(), u = document.body;
|
|
3022
3022
|
i && u && u.insertBefore(i, u.firstChild);
|
|
3023
|
-
const { mainMenuWrapper:
|
|
3024
|
-
|
|
3025
|
-
const
|
|
3026
|
-
r.after(
|
|
3023
|
+
const { mainMenuWrapper: l, utahIdPopup: s } = Mr();
|
|
3024
|
+
l && r.after(l);
|
|
3025
|
+
const c = T(An);
|
|
3026
|
+
r.after(c);
|
|
3027
3027
|
const d = (
|
|
3028
3028
|
/** @type {HTMLElement} */
|
|
3029
3029
|
document.querySelector(p(a.MOBILE_MENU__BACKDROP))
|
|
@@ -3033,33 +3033,33 @@ function Wr() {
|
|
|
3033
3033
|
if (d.onclick)
|
|
3034
3034
|
throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");
|
|
3035
3035
|
d.onclick = () => Ge();
|
|
3036
|
-
const _ = Ur(), h =
|
|
3036
|
+
const _ = Ur(), h = un(_, "Main Menu");
|
|
3037
3037
|
h.appendChild(_);
|
|
3038
3038
|
const m = at(h);
|
|
3039
|
-
yr(m), s ? ((t = s.closest("div")) == null || t.removeAttribute("aria-labelledby"), Rr(
|
|
3039
|
+
yr(m), s ? ((t = s.closest("div")) == null || t.removeAttribute("aria-labelledby"), Rr(c, s)) : Cr(), zo(), Dr(), Wo(), xr(), hn().catch((v) => console.error(v));
|
|
3040
3040
|
const f = w();
|
|
3041
|
-
(!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) && (
|
|
3041
|
+
(!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);
|
|
3042
3042
|
}
|
|
3043
3043
|
Zo();
|
|
3044
3044
|
}
|
|
3045
3045
|
function Fr(e) {
|
|
3046
3046
|
var t, n, o, r, i, u;
|
|
3047
|
-
(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(),
|
|
3047
|
+
(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(), an(), e && setTimeout(() => document.dispatchEvent(new Event(Kt.HEADER_UNLOADED)), 0);
|
|
3048
3048
|
}
|
|
3049
|
-
function
|
|
3049
|
+
function Yt() {
|
|
3050
3050
|
Fr(!1), Wr();
|
|
3051
3051
|
}
|
|
3052
|
-
let hn = !1;
|
|
3053
3052
|
const Vr = 15e3;
|
|
3054
|
-
let
|
|
3053
|
+
let zt = 0;
|
|
3055
3054
|
const qr = setInterval(
|
|
3056
3055
|
() => {
|
|
3057
|
-
|
|
3056
|
+
var e;
|
|
3057
|
+
zt += 1, zt >= Vr || (e = window["@utahdts/utah-design-system-header"]) != null && e.isSetUtahHeaderSettingsCalled ? clearInterval(qr) : document.dispatchEvent(new Event(Kt.HEADER_LOADED));
|
|
3058
3058
|
},
|
|
3059
3059
|
2
|
|
3060
3060
|
);
|
|
3061
3061
|
function $r(e) {
|
|
3062
|
-
return qe.setSettings(e),
|
|
3062
|
+
return qe.setSettings(e), window["@utahdts/utah-design-system-header"] && (window["@utahdts/utah-design-system-header"].isSetUtahHeaderSettingsCalled = !0), document != null && document.body ? Yt() : window.addEventListener("load", () => Yt()), qe.getSettings();
|
|
3063
3063
|
}
|
|
3064
3064
|
function Gr(e) {
|
|
3065
3065
|
return $r({ ...Xe, ...qe.getSettings(), footer: e });
|
|
@@ -3068,12 +3068,12 @@ export {
|
|
|
3068
3068
|
it as PopupPlacement,
|
|
3069
3069
|
Z as childrenMenuTypes,
|
|
3070
3070
|
Xe as defaultSettings,
|
|
3071
|
-
|
|
3071
|
+
Kt as events,
|
|
3072
3072
|
w as getUtahHeaderSettings,
|
|
3073
3073
|
Wr as loadHeader,
|
|
3074
3074
|
Fr as removeHeader,
|
|
3075
3075
|
T as renderDOMSingle,
|
|
3076
3076
|
Gr as setUtahFooterSettings,
|
|
3077
3077
|
$r as setUtahHeaderSettings,
|
|
3078
|
-
|
|
3078
|
+
Oe as sizes
|
|
3079
3079
|
};
|