@utahdts/utah-design-system-header 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -53
- package/dist/style.css +1 -1
- package/dist/utah-design-system-header.es.js +401 -384
- package/dist/utah-design-system-header.umd.js +27 -20
- package/package.json +22 -4
- package/src/css/_font.scss +1 -0
- package/src/css/_logos.scss +1 -1
- package/src/css/_official-website-popup.scss +1 -1
- package/src/css/index.scss +1 -0
- package/src/css/media-queries.css +8 -1
|
@@ -35,7 +35,7 @@ const j = {
|
|
|
35
35
|
/** @type {Size} */
|
|
36
36
|
"LARGE"
|
|
37
37
|
)
|
|
38
|
-
},
|
|
38
|
+
}, bn = `/* @media is never in scope for --variables, so this is the only way to solve this. :-( */
|
|
39
39
|
|
|
40
40
|
@media screen and (max-width: media-size__tablet-landscape__PLACEHOLDER) {
|
|
41
41
|
/* put your media query here for tablet landscape */
|
|
@@ -46,7 +46,7 @@ const j = {
|
|
|
46
46
|
|
|
47
47
|
@media screen and (max-width: media-size__tablet-portrait__PLACEHOLDER) {
|
|
48
48
|
.utds-header-desktop--hidden {
|
|
49
|
-
display:
|
|
49
|
+
display: block !important;
|
|
50
50
|
}
|
|
51
51
|
.utds-header-mobile--hidden {
|
|
52
52
|
display: none !important;
|
|
@@ -100,12 +100,19 @@ const j = {
|
|
|
100
100
|
.utah-design-system .utds-official-website-popup__col {
|
|
101
101
|
width: 100%;
|
|
102
102
|
}
|
|
103
|
+
|
|
104
|
+
.color-example {
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
}
|
|
107
|
+
.color-example > div:not(:last-child) {
|
|
108
|
+
margin-bottom: var(--spacing-l);
|
|
109
|
+
}
|
|
103
110
|
}
|
|
104
111
|
|
|
105
112
|
@media screen and (max-width: media-size__mobile__PLACEHOLDER) {
|
|
106
113
|
/* put your media query here for mobile */
|
|
107
114
|
}
|
|
108
|
-
`,
|
|
115
|
+
`, In = `<div class="utah-design-system utds-header-mobile-menu" id="utds-header-mobile-menu">
|
|
109
116
|
<div class="utds-header-mobile-menu__backdrop" aria-hidden></div>
|
|
110
117
|
<div class="utds-header-mobile-menu__wrapper">
|
|
111
118
|
<div class="utds-header-mobile-menu__action-bar" role="tablist">
|
|
@@ -254,21 +261,21 @@ function J(e, t) {
|
|
|
254
261
|
if (e)
|
|
255
262
|
throw new Error(t);
|
|
256
263
|
}
|
|
257
|
-
function
|
|
264
|
+
function w(e, t) {
|
|
258
265
|
if (e == null)
|
|
259
266
|
throw new Error(t);
|
|
260
267
|
return e;
|
|
261
268
|
}
|
|
262
|
-
function
|
|
269
|
+
function wt(e) {
|
|
263
270
|
return typeof e == "string" || e instanceof String;
|
|
264
271
|
}
|
|
265
|
-
function
|
|
272
|
+
function Tn(e) {
|
|
266
273
|
const t = new DOMParser();
|
|
267
274
|
let n;
|
|
268
|
-
if (
|
|
275
|
+
if (wt(e)) {
|
|
269
276
|
const o = (
|
|
270
277
|
/** @type {Document} */
|
|
271
|
-
|
|
278
|
+
wt(e) ? t.parseFromString(e, "text/html") : e
|
|
272
279
|
), r = o.body.children.length > 1 ? o.body.children : o.body.children.item(0);
|
|
273
280
|
if (!r)
|
|
274
281
|
throw console.error(e), new Error("renderDOM: nothing rendered");
|
|
@@ -283,7 +290,7 @@ function In(e) {
|
|
|
283
290
|
return n;
|
|
284
291
|
}
|
|
285
292
|
function I(e) {
|
|
286
|
-
const t = typeof e == "string" ?
|
|
293
|
+
const t = typeof e == "string" ? Tn(e) : e;
|
|
287
294
|
if (t instanceof HTMLCollection && t.length > 1)
|
|
288
295
|
throw new Error("renderDOMSingle: must render a single element");
|
|
289
296
|
const n = (
|
|
@@ -308,11 +315,11 @@ const Ze = {
|
|
|
308
315
|
titleURL: "/",
|
|
309
316
|
utahId: !1
|
|
310
317
|
};
|
|
311
|
-
function
|
|
318
|
+
function gn(e) {
|
|
312
319
|
if (!e.showTitle && !e.logo)
|
|
313
320
|
throw new Error("validateSettings: A title must be shown if there is no logo. Please change the `showTitle` setting to be `true` or provide a logo image.");
|
|
314
321
|
}
|
|
315
|
-
class
|
|
322
|
+
class Mn {
|
|
316
323
|
constructor() {
|
|
317
324
|
this.settings = { ...Ze };
|
|
318
325
|
}
|
|
@@ -321,7 +328,7 @@ class gn {
|
|
|
321
328
|
*/
|
|
322
329
|
setSettings(t) {
|
|
323
330
|
const n = { ...Ze, ...this.settings, ...t };
|
|
324
|
-
|
|
331
|
+
gn(n), this.settings = n;
|
|
325
332
|
}
|
|
326
333
|
/**
|
|
327
334
|
* @returns {Settings}
|
|
@@ -330,11 +337,11 @@ class gn {
|
|
|
330
337
|
return this.settings;
|
|
331
338
|
}
|
|
332
339
|
}
|
|
333
|
-
const ke = new
|
|
340
|
+
const ke = new Mn();
|
|
334
341
|
function L() {
|
|
335
342
|
return ke.getSettings();
|
|
336
343
|
}
|
|
337
|
-
const
|
|
344
|
+
const An = `<div class="utds-header-mobile-menu__content-item" role="tabpanel">
|
|
338
345
|
</div>
|
|
339
346
|
`;
|
|
340
347
|
function R() {
|
|
@@ -351,25 +358,25 @@ function ot(e) {
|
|
|
351
358
|
const n = t.querySelector(p(a.MOBILE_MENU__CONTENT));
|
|
352
359
|
if (!n)
|
|
353
360
|
throw new Error("addMobileMenuContentItem: mobileContentWrapper not found");
|
|
354
|
-
const o = I(
|
|
361
|
+
const o = I(An);
|
|
355
362
|
return o.appendChild(e), n.appendChild(o), o.setAttribute("id", R()), o;
|
|
356
363
|
}
|
|
357
364
|
function Z(e) {
|
|
358
365
|
return typeof e == "function" ? e() : e;
|
|
359
366
|
}
|
|
360
|
-
function
|
|
367
|
+
function Oe(e) {
|
|
361
368
|
const t = (
|
|
362
369
|
/** @type {HTMLElement} */
|
|
363
|
-
|
|
370
|
+
w(
|
|
364
371
|
document.querySelector(p(a.MOBILE_MENU)),
|
|
365
372
|
`${e}: mobileMenu not found`
|
|
366
373
|
)
|
|
367
|
-
), n =
|
|
374
|
+
), n = w(
|
|
368
375
|
document.getElementById(a.MAIN_MENU__HAMBURGER_ID),
|
|
369
376
|
`${e}: hamburger not found (🍔 🎶 I will gladly pay you Tuesday for a hamburger today 🎵 🍔)`
|
|
370
377
|
), o = (
|
|
371
378
|
/** @type {HTMLElement} */
|
|
372
|
-
|
|
379
|
+
w(
|
|
373
380
|
document.getElementById(a.MAIN_MENU__HAMBURGER_ICON_ID),
|
|
374
381
|
`${e}: hamburgerIcon not found`
|
|
375
382
|
)
|
|
@@ -381,14 +388,14 @@ function we(e) {
|
|
|
381
388
|
};
|
|
382
389
|
}
|
|
383
390
|
function Ve() {
|
|
384
|
-
const { hamburger: e, hamburgerIcon: t, mobileMenu: n } =
|
|
391
|
+
const { hamburger: e, hamburgerIcon: t, mobileMenu: n } = Oe("hideMobileMenu");
|
|
385
392
|
e.setAttribute("aria-expanded", "false"), n.classList.remove(a.IS_OPEN), e.setAttribute("aria-label", "Open the mobile menu"), t.classList.add("utds-icon-before-hamburger"), t.classList.remove("utds-icon-before-x-icon");
|
|
386
393
|
}
|
|
387
|
-
function
|
|
394
|
+
function On() {
|
|
388
395
|
var r;
|
|
389
396
|
const e = document.querySelector(p(a.MAIN_MENU));
|
|
390
397
|
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));
|
|
391
|
-
const { hamburger: t, hamburgerIcon: n, mobileMenu: o } =
|
|
398
|
+
const { hamburger: t, hamburgerIcon: n, mobileMenu: o } = Oe("showMobileMenu");
|
|
392
399
|
t.setAttribute("aria-expanded", "true"), o.classList.add(a.IS_OPEN), t.setAttribute("aria-label", "Close the mobile menu"), n.classList.remove("utds-icon-before-hamburger"), n.classList.add("utds-icon-before-x-icon");
|
|
393
400
|
}
|
|
394
401
|
function Xe(e, t) {
|
|
@@ -416,21 +423,21 @@ function rt(e, t, n, {
|
|
|
416
423
|
var h, _;
|
|
417
424
|
if (t && !o)
|
|
418
425
|
throw new Error("mobileMenuInteractionHandler: there is content, but the aria type is not given");
|
|
419
|
-
const
|
|
426
|
+
const l = (
|
|
420
427
|
/** @type {HTMLElement} */
|
|
421
428
|
document.querySelector(p(a.MOBILE_MENU))
|
|
422
429
|
);
|
|
423
|
-
if (!
|
|
430
|
+
if (!l)
|
|
424
431
|
throw new Error("mobileMenuInteractionHandler: mobileMenu not found");
|
|
425
|
-
const
|
|
432
|
+
const s = (
|
|
426
433
|
/** @type {HTMLElement} */
|
|
427
434
|
document.querySelector(p(a.MOBILE_MENU__WRAPPER))
|
|
428
435
|
);
|
|
429
|
-
if (!
|
|
436
|
+
if (!s)
|
|
430
437
|
throw new Error("mobileMenuInteractionHandler: mobileMenuWrapper not found");
|
|
431
438
|
const c = (
|
|
432
439
|
/** @type {HTMLElement} */
|
|
433
|
-
|
|
440
|
+
s.querySelector(p(a.MOBILE_MENU__CONTENT))
|
|
434
441
|
);
|
|
435
442
|
if (!c)
|
|
436
443
|
throw new Error("mobileMenuInteractionHandler: mobileContentWrapper not found");
|
|
@@ -450,12 +457,12 @@ function rt(e, t, n, {
|
|
|
450
457
|
throw new Error("mobileMenuInteractionHandler: interactiveElement already has onclick");
|
|
451
458
|
if (e.onclick = (E) => {
|
|
452
459
|
if (!(i != null && i(E)))
|
|
453
|
-
if (r == null || r(E),
|
|
460
|
+
if (r == null || r(E), l.classList.contains(a.IS_OPEN))
|
|
454
461
|
u && Ve();
|
|
455
462
|
else {
|
|
456
|
-
|
|
463
|
+
On();
|
|
457
464
|
const T = Z(t);
|
|
458
|
-
T && Lt(c, T), Xe(
|
|
465
|
+
T && Lt(c, T), Xe(s, Z(n));
|
|
459
466
|
}
|
|
460
467
|
}, t) {
|
|
461
468
|
if (d !== e && d.onclick)
|
|
@@ -463,7 +470,7 @@ function rt(e, t, n, {
|
|
|
463
470
|
d.onclick = (E) => {
|
|
464
471
|
if (!(i != null && i(E))) {
|
|
465
472
|
const v = Z(t);
|
|
466
|
-
v && Lt(c, v), Xe(
|
|
473
|
+
v && Lt(c, v), Xe(s, Z(n));
|
|
467
474
|
}
|
|
468
475
|
};
|
|
469
476
|
}
|
|
@@ -475,16 +482,16 @@ const wn = `<div class="utds-header-mobile-menu__action-item" role="tab">
|
|
|
475
482
|
</button>
|
|
476
483
|
<span class="menu-chiclet"></span>
|
|
477
484
|
</div>
|
|
478
|
-
`,
|
|
485
|
+
`, Ln = `<div class="utds-header-action-item-menu">
|
|
479
486
|
<div class="vertical-menu__wrapper-title"></div>
|
|
480
487
|
</div>
|
|
481
|
-
`,
|
|
488
|
+
`, yn = `<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
|
|
482
489
|
`, Gt = `<span class="utds-new-tab-link-a11y">
|
|
483
490
|
<span class="visually-hidden">opens in a new tab</span>
|
|
484
491
|
<span class="utds-icon-after-external-link" aria-hidden="true"></span>
|
|
485
492
|
</span>
|
|
486
|
-
`,
|
|
487
|
-
`,
|
|
493
|
+
`, Pn = `<ul class="vertical-menu" role="menu" />
|
|
494
|
+
`, Nn = `<li class="vertical-menu__item">
|
|
488
495
|
<span class="vertical-menu__title">
|
|
489
496
|
<span class="vertical-menu__plain-title"></span>
|
|
490
497
|
<a href="#" class="vertical-menu__link-title">
|
|
@@ -563,11 +570,11 @@ function Fe(e, t, n) {
|
|
|
563
570
|
let o = !1;
|
|
564
571
|
return e && (Array.isArray(e) ? o = e.some((i) => Fe(i, t, n)) : (o = n(e), o || (o = !!((r = t == null ? void 0 : t.filter((i) => e[i])) != null && r.some((i) => Fe(e[i], t, n)))))), o;
|
|
565
572
|
}
|
|
566
|
-
var F = "top", z = "bottom", Y = "right", q = "left", at = "auto", Ne = [F, z, Y, q], de = "start",
|
|
567
|
-
return e.concat([t + "-" + de, t + "-" +
|
|
573
|
+
var F = "top", z = "bottom", Y = "right", q = "left", at = "auto", Ne = [F, z, Y, q], de = "start", we = "end", Sn = "clippingParents", zt = "viewport", ve = "popper", Un = "reference", yt = /* @__PURE__ */ Ne.reduce(function(e, t) {
|
|
574
|
+
return e.concat([t + "-" + de, t + "-" + we]);
|
|
568
575
|
}, []), Yt = /* @__PURE__ */ [].concat(Ne, [at]).reduce(function(e, t) {
|
|
569
|
-
return e.concat([t, t + "-" + de, t + "-" +
|
|
570
|
-
}, []),
|
|
576
|
+
return e.concat([t, t + "-" + de, t + "-" + we]);
|
|
577
|
+
}, []), Cn = "beforeRead", Rn = "read", Dn = "afterRead", Bn = "beforeMain", Hn = "main", xn = "afterMain", Wn = "beforeWrite", kn = "write", Fn = "afterWrite", qn = [Cn, Rn, Dn, Bn, Hn, xn, Wn, kn, Fn];
|
|
571
578
|
function Q(e) {
|
|
572
579
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
573
580
|
}
|
|
@@ -594,17 +601,17 @@ function st(e) {
|
|
|
594
601
|
var t = $(e).ShadowRoot;
|
|
595
602
|
return e instanceof t || e instanceof ShadowRoot;
|
|
596
603
|
}
|
|
597
|
-
function
|
|
604
|
+
function Vn(e) {
|
|
598
605
|
var t = e.state;
|
|
599
606
|
Object.keys(t.elements).forEach(function(n) {
|
|
600
607
|
var o = t.styles[n] || {}, r = t.attributes[n] || {}, i = t.elements[n];
|
|
601
608
|
!G(i) || !Q(i) || (Object.assign(i.style, o), Object.keys(r).forEach(function(u) {
|
|
602
|
-
var
|
|
603
|
-
|
|
609
|
+
var l = r[u];
|
|
610
|
+
l === !1 ? i.removeAttribute(u) : i.setAttribute(u, l === !0 ? "" : l);
|
|
604
611
|
}));
|
|
605
612
|
});
|
|
606
613
|
}
|
|
607
|
-
function
|
|
614
|
+
function $n(e) {
|
|
608
615
|
var t = e.state, n = {
|
|
609
616
|
popper: {
|
|
610
617
|
position: t.options.strategy,
|
|
@@ -619,21 +626,21 @@ function Vn(e) {
|
|
|
619
626
|
};
|
|
620
627
|
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
|
|
621
628
|
Object.keys(t.elements).forEach(function(o) {
|
|
622
|
-
var r = t.elements[o], i = t.attributes[o] || {}, u = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]),
|
|
623
|
-
return
|
|
629
|
+
var r = t.elements[o], i = t.attributes[o] || {}, u = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]), l = u.reduce(function(s, c) {
|
|
630
|
+
return s[c] = "", s;
|
|
624
631
|
}, {});
|
|
625
|
-
!G(r) || !Q(r) || (Object.assign(r.style,
|
|
626
|
-
r.removeAttribute(
|
|
632
|
+
!G(r) || !Q(r) || (Object.assign(r.style, l), Object.keys(i).forEach(function(s) {
|
|
633
|
+
r.removeAttribute(s);
|
|
627
634
|
}));
|
|
628
635
|
});
|
|
629
636
|
};
|
|
630
637
|
}
|
|
631
|
-
const
|
|
638
|
+
const Gn = {
|
|
632
639
|
name: "applyStyles",
|
|
633
640
|
enabled: !0,
|
|
634
641
|
phase: "write",
|
|
635
|
-
fn:
|
|
636
|
-
effect:
|
|
642
|
+
fn: Vn,
|
|
643
|
+
effect: $n,
|
|
637
644
|
requires: ["computeStyles"]
|
|
638
645
|
};
|
|
639
646
|
function X(e) {
|
|
@@ -653,7 +660,7 @@ function fe(e, t, n) {
|
|
|
653
660
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
654
661
|
var o = e.getBoundingClientRect(), r = 1, i = 1;
|
|
655
662
|
t && G(e) && (r = e.offsetWidth > 0 && pe(o.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && pe(o.height) / e.offsetHeight || 1);
|
|
656
|
-
var u = le(e) ? $(e) : window,
|
|
663
|
+
var u = le(e) ? $(e) : window, l = u.visualViewport, s = !Kt() && n, c = (o.left + (s && l ? l.offsetLeft : 0)) / r, d = (o.top + (s && l ? l.offsetTop : 0)) / i, m = o.width / r, f = o.height / i;
|
|
657
664
|
return {
|
|
658
665
|
width: m,
|
|
659
666
|
height: f,
|
|
@@ -691,7 +698,7 @@ function jt(e, t) {
|
|
|
691
698
|
function ee(e) {
|
|
692
699
|
return $(e).getComputedStyle(e);
|
|
693
700
|
}
|
|
694
|
-
function
|
|
701
|
+
function zn(e) {
|
|
695
702
|
return ["table", "td", "th"].indexOf(Q(e)) >= 0;
|
|
696
703
|
}
|
|
697
704
|
function oe(e) {
|
|
@@ -716,7 +723,7 @@ function Pt(e) {
|
|
|
716
723
|
return !G(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
717
724
|
ee(e).position === "fixed" ? null : e.offsetParent;
|
|
718
725
|
}
|
|
719
|
-
function
|
|
726
|
+
function Yn(e) {
|
|
720
727
|
var t = /firefox/i.test(Qe()), n = /Trident/i.test(Qe());
|
|
721
728
|
if (n && G(e)) {
|
|
722
729
|
var o = ee(e);
|
|
@@ -733,9 +740,9 @@ function zn(e) {
|
|
|
733
740
|
return null;
|
|
734
741
|
}
|
|
735
742
|
function Se(e) {
|
|
736
|
-
for (var t = $(e), n = Pt(e); n &&
|
|
743
|
+
for (var t = $(e), n = Pt(e); n && zn(n) && ee(n).position === "static"; )
|
|
737
744
|
n = Pt(n);
|
|
738
|
-
return n && (Q(n) === "html" || Q(n) === "body" && ee(n).position === "static") ? t : n ||
|
|
745
|
+
return n && (Q(n) === "html" || Q(n) === "body" && ee(n).position === "static") ? t : n || Yn(e) || t;
|
|
739
746
|
}
|
|
740
747
|
function ct(e) {
|
|
741
748
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
@@ -743,7 +750,7 @@ function ct(e) {
|
|
|
743
750
|
function ge(e, t, n) {
|
|
744
751
|
return se(e, qe(t, n));
|
|
745
752
|
}
|
|
746
|
-
function
|
|
753
|
+
function Kn(e, t, n) {
|
|
747
754
|
var o = ge(e, t, n);
|
|
748
755
|
return o > n ? n : o;
|
|
749
756
|
}
|
|
@@ -763,41 +770,41 @@ function Qt(e, t) {
|
|
|
763
770
|
return n[o] = e, n;
|
|
764
771
|
}, {});
|
|
765
772
|
}
|
|
766
|
-
var
|
|
773
|
+
var jn = function(t, n) {
|
|
767
774
|
return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
|
|
768
775
|
placement: n.placement
|
|
769
776
|
})) : t, Xt(typeof t != "number" ? t : Qt(t, Ne));
|
|
770
777
|
};
|
|
771
|
-
function
|
|
772
|
-
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets,
|
|
778
|
+
function Zn(e) {
|
|
779
|
+
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, u = n.modifiersData.popperOffsets, l = X(n.placement), s = ct(l), c = [q, Y].indexOf(l) >= 0, d = c ? "height" : "width";
|
|
773
780
|
if (!(!i || !u)) {
|
|
774
|
-
var m =
|
|
781
|
+
var m = jn(r.padding, n), f = lt(i), h = s === "y" ? F : q, _ = s === "y" ? z : Y, E = n.rects.reference[d] + n.rects.reference[s] - u[s] - n.rects.popper[d], v = u[s] - n.rects.reference[s], T = Se(i), g = T ? s === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, O = E / 2 - v / 2, b = m[h], A = g - f[d] - m[_], M = g / 2 - f[d] / 2 + O, P = ge(b, M, A), U = s;
|
|
775
782
|
n.modifiersData[o] = (t = {}, t[U] = P, t.centerOffset = P - M, t);
|
|
776
783
|
}
|
|
777
784
|
}
|
|
778
|
-
function
|
|
785
|
+
function Xn(e) {
|
|
779
786
|
var t = e.state, n = e.options, o = n.element, r = o === void 0 ? "[data-popper-arrow]" : o;
|
|
780
787
|
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || jt(t.elements.popper, r) && (t.elements.arrow = r));
|
|
781
788
|
}
|
|
782
|
-
const
|
|
789
|
+
const Qn = {
|
|
783
790
|
name: "arrow",
|
|
784
791
|
enabled: !0,
|
|
785
792
|
phase: "main",
|
|
786
|
-
fn:
|
|
787
|
-
effect:
|
|
793
|
+
fn: Zn,
|
|
794
|
+
effect: Xn,
|
|
788
795
|
requires: ["popperOffsets"],
|
|
789
796
|
requiresIfExists: ["preventOverflow"]
|
|
790
797
|
};
|
|
791
798
|
function _e(e) {
|
|
792
799
|
return e.split("-")[1];
|
|
793
800
|
}
|
|
794
|
-
var
|
|
801
|
+
var Jn = {
|
|
795
802
|
top: "auto",
|
|
796
803
|
right: "auto",
|
|
797
804
|
bottom: "auto",
|
|
798
805
|
left: "auto"
|
|
799
806
|
};
|
|
800
|
-
function
|
|
807
|
+
function eo(e, t) {
|
|
801
808
|
var n = e.x, o = e.y, r = t.devicePixelRatio || 1;
|
|
802
809
|
return {
|
|
803
810
|
x: pe(n * r) / r || 0,
|
|
@@ -805,7 +812,7 @@ function Jn(e, t) {
|
|
|
805
812
|
};
|
|
806
813
|
}
|
|
807
814
|
function Nt(e) {
|
|
808
|
-
var t, n = e.popper, o = e.popperRect, r = e.placement, i = e.variation, u = e.offsets,
|
|
815
|
+
var t, n = e.popper, o = e.popperRect, r = e.placement, i = e.variation, u = e.offsets, l = e.position, s = e.gpuAcceleration, c = e.adaptive, d = e.roundOffsets, m = e.isFixed, f = u.x, h = f === void 0 ? 0 : f, _ = u.y, E = _ === void 0 ? 0 : _, v = typeof d == "function" ? d({
|
|
809
816
|
x: h,
|
|
810
817
|
y: E
|
|
811
818
|
}) : {
|
|
@@ -813,43 +820,43 @@ function Nt(e) {
|
|
|
813
820
|
y: E
|
|
814
821
|
};
|
|
815
822
|
h = v.x, E = v.y;
|
|
816
|
-
var T = u.hasOwnProperty("x"), g = u.hasOwnProperty("y"),
|
|
823
|
+
var T = u.hasOwnProperty("x"), g = u.hasOwnProperty("y"), O = q, b = F, A = window;
|
|
817
824
|
if (c) {
|
|
818
825
|
var M = Se(n), P = "clientHeight", U = "clientWidth";
|
|
819
|
-
if (M === $(n) && (M = oe(n), ee(M).position !== "static" &&
|
|
826
|
+
if (M === $(n) && (M = oe(n), ee(M).position !== "static" && l === "absolute" && (P = "scrollHeight", U = "scrollWidth")), M = M, r === F || (r === q || r === Y) && i === we) {
|
|
820
827
|
b = z;
|
|
821
828
|
var S = m && M === A && A.visualViewport ? A.visualViewport.height : (
|
|
822
829
|
// $FlowFixMe[prop-missing]
|
|
823
830
|
M[P]
|
|
824
831
|
);
|
|
825
|
-
E -= S - o.height, E *=
|
|
832
|
+
E -= S - o.height, E *= s ? 1 : -1;
|
|
826
833
|
}
|
|
827
|
-
if (r === q || (r === F || r === z) && i ===
|
|
828
|
-
|
|
834
|
+
if (r === q || (r === F || r === z) && i === we) {
|
|
835
|
+
O = Y;
|
|
829
836
|
var N = m && M === A && A.visualViewport ? A.visualViewport.width : (
|
|
830
837
|
// $FlowFixMe[prop-missing]
|
|
831
838
|
M[U]
|
|
832
839
|
);
|
|
833
|
-
h -= N - o.width, h *=
|
|
840
|
+
h -= N - o.width, h *= s ? 1 : -1;
|
|
834
841
|
}
|
|
835
842
|
}
|
|
836
843
|
var C = Object.assign({
|
|
837
|
-
position:
|
|
838
|
-
}, c &&
|
|
844
|
+
position: l
|
|
845
|
+
}, c && Jn), k = d === !0 ? eo({
|
|
839
846
|
x: h,
|
|
840
847
|
y: E
|
|
841
848
|
}, $(n)) : {
|
|
842
849
|
x: h,
|
|
843
850
|
y: E
|
|
844
851
|
};
|
|
845
|
-
if (h = k.x, E = k.y,
|
|
852
|
+
if (h = k.x, E = k.y, s) {
|
|
846
853
|
var D;
|
|
847
|
-
return Object.assign({}, C, (D = {}, D[b] = g ? "0" : "", D[
|
|
854
|
+
return Object.assign({}, C, (D = {}, D[b] = g ? "0" : "", D[O] = T ? "0" : "", D.transform = (A.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + E + "px)" : "translate3d(" + h + "px, " + E + "px, 0)", D));
|
|
848
855
|
}
|
|
849
|
-
return Object.assign({}, C, (t = {}, t[b] = g ? E + "px" : "", t[
|
|
856
|
+
return Object.assign({}, C, (t = {}, t[b] = g ? E + "px" : "", t[O] = T ? h + "px" : "", t.transform = "", t));
|
|
850
857
|
}
|
|
851
|
-
function
|
|
852
|
-
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,
|
|
858
|
+
function to(e) {
|
|
859
|
+
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 = {
|
|
853
860
|
placement: X(t.placement),
|
|
854
861
|
variation: _e(t.placement),
|
|
855
862
|
popper: t.elements.popper,
|
|
@@ -861,46 +868,46 @@ function eo(e) {
|
|
|
861
868
|
offsets: t.modifiersData.popperOffsets,
|
|
862
869
|
position: t.options.strategy,
|
|
863
870
|
adaptive: u,
|
|
864
|
-
roundOffsets:
|
|
871
|
+
roundOffsets: s
|
|
865
872
|
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Nt(Object.assign({}, c, {
|
|
866
873
|
offsets: t.modifiersData.arrow,
|
|
867
874
|
position: "absolute",
|
|
868
875
|
adaptive: !1,
|
|
869
|
-
roundOffsets:
|
|
876
|
+
roundOffsets: s
|
|
870
877
|
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
871
878
|
"data-popper-placement": t.placement
|
|
872
879
|
});
|
|
873
880
|
}
|
|
874
|
-
const
|
|
881
|
+
const no = {
|
|
875
882
|
name: "computeStyles",
|
|
876
883
|
enabled: !0,
|
|
877
884
|
phase: "beforeWrite",
|
|
878
|
-
fn:
|
|
885
|
+
fn: to,
|
|
879
886
|
data: {}
|
|
880
887
|
};
|
|
881
888
|
var He = {
|
|
882
889
|
passive: !0
|
|
883
890
|
};
|
|
884
|
-
function
|
|
885
|
-
var t = e.state, n = e.instance, o = e.options, r = o.scroll, i = r === void 0 ? !0 : r, u = o.resize,
|
|
891
|
+
function oo(e) {
|
|
892
|
+
var t = e.state, n = e.instance, o = e.options, r = o.scroll, i = r === void 0 ? !0 : r, u = o.resize, l = u === void 0 ? !0 : u, s = $(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
886
893
|
return i && c.forEach(function(d) {
|
|
887
894
|
d.addEventListener("scroll", n.update, He);
|
|
888
|
-
}),
|
|
895
|
+
}), l && s.addEventListener("resize", n.update, He), function() {
|
|
889
896
|
i && c.forEach(function(d) {
|
|
890
897
|
d.removeEventListener("scroll", n.update, He);
|
|
891
|
-
}),
|
|
898
|
+
}), l && s.removeEventListener("resize", n.update, He);
|
|
892
899
|
};
|
|
893
900
|
}
|
|
894
|
-
const
|
|
901
|
+
const ro = {
|
|
895
902
|
name: "eventListeners",
|
|
896
903
|
enabled: !0,
|
|
897
904
|
phase: "write",
|
|
898
905
|
fn: function() {
|
|
899
906
|
},
|
|
900
|
-
effect:
|
|
907
|
+
effect: oo,
|
|
901
908
|
data: {}
|
|
902
909
|
};
|
|
903
|
-
var
|
|
910
|
+
var io = {
|
|
904
911
|
left: "right",
|
|
905
912
|
right: "left",
|
|
906
913
|
bottom: "top",
|
|
@@ -908,16 +915,16 @@ var ro = {
|
|
|
908
915
|
};
|
|
909
916
|
function We(e) {
|
|
910
917
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
911
|
-
return
|
|
918
|
+
return io[t];
|
|
912
919
|
});
|
|
913
920
|
}
|
|
914
|
-
var
|
|
921
|
+
var ao = {
|
|
915
922
|
start: "end",
|
|
916
923
|
end: "start"
|
|
917
924
|
};
|
|
918
925
|
function St(e) {
|
|
919
926
|
return e.replace(/start|end/g, function(t) {
|
|
920
|
-
return
|
|
927
|
+
return ao[t];
|
|
921
928
|
});
|
|
922
929
|
}
|
|
923
930
|
function ut(e) {
|
|
@@ -930,27 +937,27 @@ function ut(e) {
|
|
|
930
937
|
function dt(e) {
|
|
931
938
|
return fe(oe(e)).left + ut(e).scrollLeft;
|
|
932
939
|
}
|
|
933
|
-
function
|
|
934
|
-
var n = $(e), o = oe(e), r = n.visualViewport, i = o.clientWidth, u = o.clientHeight,
|
|
940
|
+
function so(e, t) {
|
|
941
|
+
var n = $(e), o = oe(e), r = n.visualViewport, i = o.clientWidth, u = o.clientHeight, l = 0, s = 0;
|
|
935
942
|
if (r) {
|
|
936
943
|
i = r.width, u = r.height;
|
|
937
944
|
var c = Kt();
|
|
938
|
-
(c || !c && t === "fixed") && (
|
|
945
|
+
(c || !c && t === "fixed") && (l = r.offsetLeft, s = r.offsetTop);
|
|
939
946
|
}
|
|
940
947
|
return {
|
|
941
948
|
width: i,
|
|
942
949
|
height: u,
|
|
943
|
-
x:
|
|
944
|
-
y:
|
|
950
|
+
x: l + dt(e),
|
|
951
|
+
y: s
|
|
945
952
|
};
|
|
946
953
|
}
|
|
947
|
-
function
|
|
948
|
-
var t, n = oe(e), o = ut(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, i = se(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), u = se(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0),
|
|
949
|
-
return ee(r || n).direction === "rtl" && (
|
|
954
|
+
function lo(e) {
|
|
955
|
+
var t, n = oe(e), o = ut(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, i = se(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), u = se(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), l = -o.scrollLeft + dt(e), s = -o.scrollTop;
|
|
956
|
+
return ee(r || n).direction === "rtl" && (l += se(n.clientWidth, r ? r.clientWidth : 0) - i), {
|
|
950
957
|
width: i,
|
|
951
958
|
height: u,
|
|
952
|
-
x:
|
|
953
|
-
y:
|
|
959
|
+
x: l,
|
|
960
|
+
y: s
|
|
954
961
|
};
|
|
955
962
|
}
|
|
956
963
|
function pt(e) {
|
|
@@ -963,10 +970,10 @@ function Jt(e) {
|
|
|
963
970
|
function Me(e, t) {
|
|
964
971
|
var n;
|
|
965
972
|
t === void 0 && (t = []);
|
|
966
|
-
var o = Jt(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = $(o), u = r ? [i].concat(i.visualViewport || [], pt(o) ? o : []) : o,
|
|
967
|
-
return r ?
|
|
973
|
+
var o = Jt(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = $(o), u = r ? [i].concat(i.visualViewport || [], pt(o) ? o : []) : o, l = t.concat(u);
|
|
974
|
+
return r ? l : (
|
|
968
975
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
969
|
-
|
|
976
|
+
l.concat(Me($e(u)))
|
|
970
977
|
);
|
|
971
978
|
}
|
|
972
979
|
function Je(e) {
|
|
@@ -977,55 +984,55 @@ function Je(e) {
|
|
|
977
984
|
bottom: e.y + e.height
|
|
978
985
|
});
|
|
979
986
|
}
|
|
980
|
-
function
|
|
987
|
+
function co(e, t) {
|
|
981
988
|
var n = fe(e, !1, t === "fixed");
|
|
982
989
|
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;
|
|
983
990
|
}
|
|
984
991
|
function Ut(e, t, n) {
|
|
985
|
-
return t === zt ? Je(
|
|
992
|
+
return t === zt ? Je(so(e, n)) : le(t) ? co(t, n) : Je(lo(oe(e)));
|
|
986
993
|
}
|
|
987
|
-
function
|
|
994
|
+
function uo(e) {
|
|
988
995
|
var t = Me($e(e)), n = ["absolute", "fixed"].indexOf(ee(e).position) >= 0, o = n && G(e) ? Se(e) : e;
|
|
989
996
|
return le(o) ? t.filter(function(r) {
|
|
990
997
|
return le(r) && jt(r, o) && Q(r) !== "body";
|
|
991
998
|
}) : [];
|
|
992
999
|
}
|
|
993
|
-
function
|
|
994
|
-
var r = t === "clippingParents" ?
|
|
1000
|
+
function po(e, t, n, o) {
|
|
1001
|
+
var r = t === "clippingParents" ? uo(e) : [].concat(t), i = [].concat(r, [n]), u = i[0], l = i.reduce(function(s, c) {
|
|
995
1002
|
var d = Ut(e, c, o);
|
|
996
|
-
return
|
|
1003
|
+
return s.top = se(d.top, s.top), s.right = qe(d.right, s.right), s.bottom = qe(d.bottom, s.bottom), s.left = se(d.left, s.left), s;
|
|
997
1004
|
}, Ut(e, u, o));
|
|
998
|
-
return
|
|
1005
|
+
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
999
1006
|
}
|
|
1000
1007
|
function en(e) {
|
|
1001
|
-
var t = e.reference, n = e.element, o = e.placement, r = o ? X(o) : null, i = o ? _e(o) : null, u = t.x + t.width / 2 - n.width / 2,
|
|
1008
|
+
var t = e.reference, n = e.element, o = e.placement, r = o ? X(o) : null, i = o ? _e(o) : null, u = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, s;
|
|
1002
1009
|
switch (r) {
|
|
1003
1010
|
case F:
|
|
1004
|
-
|
|
1011
|
+
s = {
|
|
1005
1012
|
x: u,
|
|
1006
1013
|
y: t.y - n.height
|
|
1007
1014
|
};
|
|
1008
1015
|
break;
|
|
1009
1016
|
case z:
|
|
1010
|
-
|
|
1017
|
+
s = {
|
|
1011
1018
|
x: u,
|
|
1012
1019
|
y: t.y + t.height
|
|
1013
1020
|
};
|
|
1014
1021
|
break;
|
|
1015
1022
|
case Y:
|
|
1016
|
-
|
|
1023
|
+
s = {
|
|
1017
1024
|
x: t.x + t.width,
|
|
1018
|
-
y:
|
|
1025
|
+
y: l
|
|
1019
1026
|
};
|
|
1020
1027
|
break;
|
|
1021
1028
|
case q:
|
|
1022
|
-
|
|
1029
|
+
s = {
|
|
1023
1030
|
x: t.x - n.width,
|
|
1024
|
-
y:
|
|
1031
|
+
y: l
|
|
1025
1032
|
};
|
|
1026
1033
|
break;
|
|
1027
1034
|
default:
|
|
1028
|
-
|
|
1035
|
+
s = {
|
|
1029
1036
|
x: t.x,
|
|
1030
1037
|
y: t.y
|
|
1031
1038
|
};
|
|
@@ -1035,23 +1042,23 @@ function en(e) {
|
|
|
1035
1042
|
var d = c === "y" ? "height" : "width";
|
|
1036
1043
|
switch (i) {
|
|
1037
1044
|
case de:
|
|
1038
|
-
|
|
1045
|
+
s[c] = s[c] - (t[d] / 2 - n[d] / 2);
|
|
1039
1046
|
break;
|
|
1040
|
-
case
|
|
1041
|
-
|
|
1047
|
+
case we:
|
|
1048
|
+
s[c] = s[c] + (t[d] / 2 - n[d] / 2);
|
|
1042
1049
|
break;
|
|
1043
1050
|
}
|
|
1044
1051
|
}
|
|
1045
|
-
return
|
|
1052
|
+
return s;
|
|
1046
1053
|
}
|
|
1047
1054
|
function Le(e, t) {
|
|
1048
1055
|
t === void 0 && (t = {});
|
|
1049
|
-
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, i = n.strategy, u = i === void 0 ? e.strategy : i,
|
|
1056
|
+
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, i = n.strategy, u = i === void 0 ? e.strategy : i, l = n.boundary, s = l === void 0 ? Sn : l, c = n.rootBoundary, d = c === void 0 ? zt : c, m = n.elementContext, f = m === void 0 ? ve : m, h = n.altBoundary, _ = h === void 0 ? !1 : h, E = n.padding, v = E === void 0 ? 0 : E, T = Xt(typeof v != "number" ? v : Qt(v, Ne)), g = f === ve ? Un : ve, O = e.rects.popper, b = e.elements[_ ? g : f], A = po(le(b) ? b : b.contextElement || oe(e.elements.popper), s, d, u), M = fe(e.elements.reference), P = en({
|
|
1050
1057
|
reference: M,
|
|
1051
|
-
element:
|
|
1058
|
+
element: O,
|
|
1052
1059
|
strategy: "absolute",
|
|
1053
1060
|
placement: r
|
|
1054
|
-
}), U = Je(Object.assign({},
|
|
1061
|
+
}), U = Je(Object.assign({}, O, P)), S = f === ve ? U : M, N = {
|
|
1055
1062
|
top: A.top - S.top + T.top,
|
|
1056
1063
|
bottom: S.bottom - A.bottom + T.bottom,
|
|
1057
1064
|
left: A.left - S.left + T.left,
|
|
@@ -1066,9 +1073,9 @@ function Le(e, t) {
|
|
|
1066
1073
|
}
|
|
1067
1074
|
return N;
|
|
1068
1075
|
}
|
|
1069
|
-
function
|
|
1076
|
+
function fo(e, t) {
|
|
1070
1077
|
t === void 0 && (t = {});
|
|
1071
|
-
var n = t, o = n.placement, r = n.boundary, i = n.rootBoundary, u = n.padding,
|
|
1078
|
+
var n = t, o = n.placement, r = n.boundary, i = n.rootBoundary, u = n.padding, l = n.flipVariations, s = n.allowedAutoPlacements, c = s === void 0 ? Yt : s, d = _e(o), m = d ? l ? yt : yt.filter(function(_) {
|
|
1072
1079
|
return _e(_) === d;
|
|
1073
1080
|
}) : Ne, f = m.filter(function(_) {
|
|
1074
1081
|
return c.indexOf(_) >= 0;
|
|
@@ -1086,17 +1093,17 @@ function po(e, t) {
|
|
|
1086
1093
|
return h[_] - h[E];
|
|
1087
1094
|
});
|
|
1088
1095
|
}
|
|
1089
|
-
function
|
|
1096
|
+
function _o(e) {
|
|
1090
1097
|
if (X(e) === at)
|
|
1091
1098
|
return [];
|
|
1092
1099
|
var t = We(e);
|
|
1093
1100
|
return [St(e), t, St(t)];
|
|
1094
1101
|
}
|
|
1095
|
-
function
|
|
1102
|
+
function ho(e) {
|
|
1096
1103
|
var t = e.state, n = e.options, o = e.name;
|
|
1097
1104
|
if (!t.modifiersData[o]._skip) {
|
|
1098
|
-
for (var r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis,
|
|
1099
|
-
return ce.concat(X(te) === at ?
|
|
1105
|
+
for (var r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis, l = u === void 0 ? !0 : u, s = n.fallbackPlacements, c = n.padding, d = n.boundary, m = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, _ = h === void 0 ? !0 : h, E = n.allowedAutoPlacements, v = t.options.placement, T = X(v), g = T === v, O = s || (g || !_ ? [We(v)] : _o(v)), b = [v].concat(O).reduce(function(ce, te) {
|
|
1106
|
+
return ce.concat(X(te) === at ? fo(t, {
|
|
1100
1107
|
placement: te,
|
|
1101
1108
|
boundary: d,
|
|
1102
1109
|
rootBoundary: m,
|
|
@@ -1114,7 +1121,7 @@ function _o(e) {
|
|
|
1114
1121
|
}), K = B ? D ? Y : q : D ? z : F;
|
|
1115
1122
|
A[H] > M[H] && (K = We(K));
|
|
1116
1123
|
var Ue = We(K), re = [];
|
|
1117
|
-
if (i && re.push(x[k] <= 0),
|
|
1124
|
+
if (i && re.push(x[k] <= 0), l && re.push(x[K] <= 0, x[Ue] <= 0), re.every(function(ce) {
|
|
1118
1125
|
return ce;
|
|
1119
1126
|
})) {
|
|
1120
1127
|
S = C, U = !1;
|
|
@@ -1141,11 +1148,11 @@ function _o(e) {
|
|
|
1141
1148
|
t.placement !== S && (t.modifiersData[o]._skip = !0, t.placement = S, t.reset = !0);
|
|
1142
1149
|
}
|
|
1143
1150
|
}
|
|
1144
|
-
const
|
|
1151
|
+
const mo = {
|
|
1145
1152
|
name: "flip",
|
|
1146
1153
|
enabled: !0,
|
|
1147
1154
|
phase: "main",
|
|
1148
|
-
fn:
|
|
1155
|
+
fn: ho,
|
|
1149
1156
|
requiresIfExists: ["offset"],
|
|
1150
1157
|
data: {
|
|
1151
1158
|
_skip: !1
|
|
@@ -1167,14 +1174,14 @@ function Rt(e) {
|
|
|
1167
1174
|
return e[t] >= 0;
|
|
1168
1175
|
});
|
|
1169
1176
|
}
|
|
1170
|
-
function
|
|
1177
|
+
function Eo(e) {
|
|
1171
1178
|
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, u = Le(t, {
|
|
1172
1179
|
elementContext: "reference"
|
|
1173
|
-
}),
|
|
1180
|
+
}), l = Le(t, {
|
|
1174
1181
|
altBoundary: !0
|
|
1175
|
-
}),
|
|
1182
|
+
}), s = Ct(u, o), c = Ct(l, r, i), d = Rt(s), m = Rt(c);
|
|
1176
1183
|
t.modifiersData[n] = {
|
|
1177
|
-
referenceClippingOffsets:
|
|
1184
|
+
referenceClippingOffsets: s,
|
|
1178
1185
|
popperEscapeOffsets: c,
|
|
1179
1186
|
isReferenceHidden: d,
|
|
1180
1187
|
hasPopperEscaped: m
|
|
@@ -1183,39 +1190,39 @@ function mo(e) {
|
|
|
1183
1190
|
"data-popper-escaped": m
|
|
1184
1191
|
});
|
|
1185
1192
|
}
|
|
1186
|
-
const
|
|
1193
|
+
const vo = {
|
|
1187
1194
|
name: "hide",
|
|
1188
1195
|
enabled: !0,
|
|
1189
1196
|
phase: "main",
|
|
1190
1197
|
requiresIfExists: ["preventOverflow"],
|
|
1191
|
-
fn:
|
|
1198
|
+
fn: Eo
|
|
1192
1199
|
};
|
|
1193
|
-
function
|
|
1200
|
+
function bo(e, t, n) {
|
|
1194
1201
|
var o = X(e), r = [q, F].indexOf(o) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
|
|
1195
1202
|
placement: e
|
|
1196
|
-
})) : n, u = i[0],
|
|
1197
|
-
return u = u || 0,
|
|
1198
|
-
x:
|
|
1203
|
+
})) : n, u = i[0], l = i[1];
|
|
1204
|
+
return u = u || 0, l = (l || 0) * r, [q, Y].indexOf(o) >= 0 ? {
|
|
1205
|
+
x: l,
|
|
1199
1206
|
y: u
|
|
1200
1207
|
} : {
|
|
1201
1208
|
x: u,
|
|
1202
|
-
y:
|
|
1209
|
+
y: l
|
|
1203
1210
|
};
|
|
1204
1211
|
}
|
|
1205
|
-
function
|
|
1212
|
+
function Io(e) {
|
|
1206
1213
|
var t = e.state, n = e.options, o = e.name, r = n.offset, i = r === void 0 ? [0, 0] : r, u = Yt.reduce(function(d, m) {
|
|
1207
|
-
return d[m] =
|
|
1208
|
-
}, {}),
|
|
1209
|
-
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x +=
|
|
1214
|
+
return d[m] = bo(m, t.rects, i), d;
|
|
1215
|
+
}, {}), l = u[t.placement], s = l.x, c = l.y;
|
|
1216
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += c), t.modifiersData[o] = u;
|
|
1210
1217
|
}
|
|
1211
|
-
const
|
|
1218
|
+
const To = {
|
|
1212
1219
|
name: "offset",
|
|
1213
1220
|
enabled: !0,
|
|
1214
1221
|
phase: "main",
|
|
1215
1222
|
requires: ["popperOffsets"],
|
|
1216
|
-
fn:
|
|
1223
|
+
fn: Io
|
|
1217
1224
|
};
|
|
1218
|
-
function
|
|
1225
|
+
function go(e) {
|
|
1219
1226
|
var t = e.state, n = e.name;
|
|
1220
1227
|
t.modifiersData[n] = en({
|
|
1221
1228
|
reference: t.rects.reference,
|
|
@@ -1224,23 +1231,23 @@ function To(e) {
|
|
|
1224
1231
|
placement: t.placement
|
|
1225
1232
|
});
|
|
1226
1233
|
}
|
|
1227
|
-
const
|
|
1234
|
+
const Mo = {
|
|
1228
1235
|
name: "popperOffsets",
|
|
1229
1236
|
enabled: !0,
|
|
1230
1237
|
phase: "read",
|
|
1231
|
-
fn:
|
|
1238
|
+
fn: go,
|
|
1232
1239
|
data: {}
|
|
1233
1240
|
};
|
|
1234
|
-
function
|
|
1241
|
+
function Ao(e) {
|
|
1235
1242
|
return e === "x" ? "y" : "x";
|
|
1236
1243
|
}
|
|
1237
|
-
function
|
|
1238
|
-
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis,
|
|
1239
|
-
boundary:
|
|
1244
|
+
function Oo(e) {
|
|
1245
|
+
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, i = r === void 0 ? !0 : r, u = n.altAxis, l = u === void 0 ? !1 : u, s = n.boundary, c = n.rootBoundary, d = n.altBoundary, m = n.padding, f = n.tether, h = f === void 0 ? !0 : f, _ = n.tetherOffset, E = _ === void 0 ? 0 : _, v = Le(t, {
|
|
1246
|
+
boundary: s,
|
|
1240
1247
|
rootBoundary: c,
|
|
1241
1248
|
padding: m,
|
|
1242
1249
|
altBoundary: d
|
|
1243
|
-
}), T = X(t.placement), g = _e(t.placement),
|
|
1250
|
+
}), T = X(t.placement), g = _e(t.placement), O = !g, b = ct(T), A = Ao(b), M = t.modifiersData.popperOffsets, P = t.rects.reference, U = t.rects.popper, S = typeof E == "function" ? E(Object.assign({}, t.rects, {
|
|
1244
1251
|
placement: t.placement
|
|
1245
1252
|
})) : E, N = typeof S == "number" ? {
|
|
1246
1253
|
mainAxis: S,
|
|
@@ -1257,12 +1264,12 @@ function Ao(e) {
|
|
|
1257
1264
|
var D, B = b === "y" ? F : q, H = b === "y" ? z : Y, x = b === "y" ? "height" : "width", K = M[b], Ue = K + v[B], re = K - v[H], Ce = h ? -U[x] / 2 : 0, Ge = g === de ? P[x] : U[x], me = g === de ? -U[x] : -P[x], Re = t.elements.arrow, ce = h && Re ? lt(Re) : {
|
|
1258
1265
|
width: 0,
|
|
1259
1266
|
height: 0
|
|
1260
|
-
}, te = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Zt(), Ee = te[B], De = te[H], ie = ge(0, P[x], ce[x]), ze =
|
|
1267
|
+
}, te = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Zt(), Ee = te[B], De = te[H], ie = ge(0, P[x], ce[x]), ze = O ? P[x] / 2 - Ce - ie - Ee - N.mainAxis : Ge - ie - Ee - N.mainAxis, fn = O ? -P[x] / 2 + Ce + ie + De + N.mainAxis : me + ie + De + N.mainAxis, Ye = t.elements.arrow && Se(t.elements.arrow), _n = Ye ? b === "y" ? Ye.clientTop || 0 : Ye.clientLeft || 0 : 0, Et = (D = C == null ? void 0 : C[b]) != null ? D : 0, hn = K + ze - Et - _n, mn = K + fn - Et, vt = ge(h ? qe(Ue, hn) : Ue, K, h ? se(re, mn) : re);
|
|
1261
1268
|
M[b] = vt, k[b] = vt - K;
|
|
1262
1269
|
}
|
|
1263
|
-
if (
|
|
1264
|
-
var bt,
|
|
1265
|
-
M[A] =
|
|
1270
|
+
if (l) {
|
|
1271
|
+
var bt, En = b === "x" ? F : q, vn = b === "x" ? z : Y, ae = M[A], Be = A === "y" ? "height" : "width", It = ae + v[En], Tt = ae - v[vn], Ke = [F, q].indexOf(T) !== -1, gt = (bt = C == null ? void 0 : C[A]) != null ? bt : 0, Mt = Ke ? It : ae - P[Be] - U[Be] - gt + N.altAxis, At = Ke ? ae + P[Be] + U[Be] - gt - N.altAxis : Tt, Ot = h && Ke ? Kn(Mt, ae, At) : ge(h ? Mt : It, ae, h ? At : Tt);
|
|
1272
|
+
M[A] = Ot, k[A] = Ot - ae;
|
|
1266
1273
|
}
|
|
1267
1274
|
t.modifiersData[o] = k;
|
|
1268
1275
|
}
|
|
@@ -1271,40 +1278,40 @@ const wo = {
|
|
|
1271
1278
|
name: "preventOverflow",
|
|
1272
1279
|
enabled: !0,
|
|
1273
1280
|
phase: "main",
|
|
1274
|
-
fn:
|
|
1281
|
+
fn: Oo,
|
|
1275
1282
|
requiresIfExists: ["offset"]
|
|
1276
1283
|
};
|
|
1277
|
-
function
|
|
1284
|
+
function Lo(e) {
|
|
1278
1285
|
return {
|
|
1279
1286
|
scrollLeft: e.scrollLeft,
|
|
1280
1287
|
scrollTop: e.scrollTop
|
|
1281
1288
|
};
|
|
1282
1289
|
}
|
|
1283
|
-
function Lo(e) {
|
|
1284
|
-
return e === $(e) || !G(e) ? ut(e) : Oo(e);
|
|
1285
|
-
}
|
|
1286
1290
|
function yo(e) {
|
|
1291
|
+
return e === $(e) || !G(e) ? ut(e) : Lo(e);
|
|
1292
|
+
}
|
|
1293
|
+
function Po(e) {
|
|
1287
1294
|
var t = e.getBoundingClientRect(), n = pe(t.width) / e.offsetWidth || 1, o = pe(t.height) / e.offsetHeight || 1;
|
|
1288
1295
|
return n !== 1 || o !== 1;
|
|
1289
1296
|
}
|
|
1290
|
-
function
|
|
1297
|
+
function No(e, t, n) {
|
|
1291
1298
|
n === void 0 && (n = !1);
|
|
1292
|
-
var o = G(t), r = G(t) &&
|
|
1299
|
+
var o = G(t), r = G(t) && Po(t), i = oe(t), u = fe(e, r, n), l = {
|
|
1293
1300
|
scrollLeft: 0,
|
|
1294
1301
|
scrollTop: 0
|
|
1295
|
-
},
|
|
1302
|
+
}, s = {
|
|
1296
1303
|
x: 0,
|
|
1297
1304
|
y: 0
|
|
1298
1305
|
};
|
|
1299
1306
|
return (o || !o && !n) && ((Q(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1300
|
-
pt(i)) && (
|
|
1301
|
-
x: u.left +
|
|
1302
|
-
y: u.top +
|
|
1307
|
+
pt(i)) && (l = yo(t)), G(t) ? (s = fe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = dt(i))), {
|
|
1308
|
+
x: u.left + l.scrollLeft - s.x,
|
|
1309
|
+
y: u.top + l.scrollTop - s.y,
|
|
1303
1310
|
width: u.width,
|
|
1304
1311
|
height: u.height
|
|
1305
1312
|
};
|
|
1306
1313
|
}
|
|
1307
|
-
function
|
|
1314
|
+
function So(e) {
|
|
1308
1315
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = [];
|
|
1309
1316
|
e.forEach(function(i) {
|
|
1310
1317
|
t.set(i.name, i);
|
|
@@ -1312,10 +1319,10 @@ function No(e) {
|
|
|
1312
1319
|
function r(i) {
|
|
1313
1320
|
n.add(i.name);
|
|
1314
1321
|
var u = [].concat(i.requires || [], i.requiresIfExists || []);
|
|
1315
|
-
u.forEach(function(
|
|
1316
|
-
if (!n.has(
|
|
1317
|
-
var
|
|
1318
|
-
|
|
1322
|
+
u.forEach(function(l) {
|
|
1323
|
+
if (!n.has(l)) {
|
|
1324
|
+
var s = t.get(l);
|
|
1325
|
+
s && r(s);
|
|
1319
1326
|
}
|
|
1320
1327
|
}), o.push(i);
|
|
1321
1328
|
}
|
|
@@ -1323,15 +1330,15 @@ function No(e) {
|
|
|
1323
1330
|
n.has(i.name) || r(i);
|
|
1324
1331
|
}), o;
|
|
1325
1332
|
}
|
|
1326
|
-
function
|
|
1327
|
-
var t =
|
|
1328
|
-
return
|
|
1333
|
+
function Uo(e) {
|
|
1334
|
+
var t = So(e);
|
|
1335
|
+
return qn.reduce(function(n, o) {
|
|
1329
1336
|
return n.concat(t.filter(function(r) {
|
|
1330
1337
|
return r.phase === o;
|
|
1331
1338
|
}));
|
|
1332
1339
|
}, []);
|
|
1333
1340
|
}
|
|
1334
|
-
function
|
|
1341
|
+
function Co(e) {
|
|
1335
1342
|
var t;
|
|
1336
1343
|
return function() {
|
|
1337
1344
|
return t || (t = new Promise(function(n) {
|
|
@@ -1341,7 +1348,7 @@ function Uo(e) {
|
|
|
1341
1348
|
})), t;
|
|
1342
1349
|
};
|
|
1343
1350
|
}
|
|
1344
|
-
function
|
|
1351
|
+
function Ro(e) {
|
|
1345
1352
|
var t = e.reduce(function(n, o) {
|
|
1346
1353
|
var r = n[o.name];
|
|
1347
1354
|
return n[o.name] = r ? Object.assign({}, r, o, {
|
|
@@ -1365,10 +1372,10 @@ function Bt() {
|
|
|
1365
1372
|
return !(o && typeof o.getBoundingClientRect == "function");
|
|
1366
1373
|
});
|
|
1367
1374
|
}
|
|
1368
|
-
function
|
|
1375
|
+
function Do(e) {
|
|
1369
1376
|
e === void 0 && (e = {});
|
|
1370
1377
|
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ? Dt : r;
|
|
1371
|
-
return function(
|
|
1378
|
+
return function(l, s, c) {
|
|
1372
1379
|
c === void 0 && (c = i);
|
|
1373
1380
|
var d = {
|
|
1374
1381
|
placement: "bottom",
|
|
@@ -1376,8 +1383,8 @@ function Ro(e) {
|
|
|
1376
1383
|
options: Object.assign({}, Dt, i),
|
|
1377
1384
|
modifiersData: {},
|
|
1378
1385
|
elements: {
|
|
1379
|
-
reference:
|
|
1380
|
-
popper:
|
|
1386
|
+
reference: l,
|
|
1387
|
+
popper: s
|
|
1381
1388
|
},
|
|
1382
1389
|
attributes: {},
|
|
1383
1390
|
styles: {}
|
|
@@ -1386,11 +1393,11 @@ function Ro(e) {
|
|
|
1386
1393
|
setOptions: function(T) {
|
|
1387
1394
|
var g = typeof T == "function" ? T(d.options) : T;
|
|
1388
1395
|
E(), d.options = Object.assign({}, i, d.options, g), d.scrollParents = {
|
|
1389
|
-
reference: le(
|
|
1390
|
-
popper: Me(
|
|
1396
|
+
reference: le(l) ? Me(l) : l.contextElement ? Me(l.contextElement) : [],
|
|
1397
|
+
popper: Me(s)
|
|
1391
1398
|
};
|
|
1392
|
-
var
|
|
1393
|
-
return d.orderedModifiers =
|
|
1399
|
+
var O = Uo(Ro([].concat(o, d.options.modifiers)));
|
|
1400
|
+
return d.orderedModifiers = O.filter(function(b) {
|
|
1394
1401
|
return b.enabled;
|
|
1395
1402
|
}), _(), h.update();
|
|
1396
1403
|
},
|
|
@@ -1401,11 +1408,11 @@ function Ro(e) {
|
|
|
1401
1408
|
// prefer the async Popper#update method
|
|
1402
1409
|
forceUpdate: function() {
|
|
1403
1410
|
if (!f) {
|
|
1404
|
-
var T = d.elements, g = T.reference,
|
|
1405
|
-
if (Bt(g,
|
|
1411
|
+
var T = d.elements, g = T.reference, O = T.popper;
|
|
1412
|
+
if (Bt(g, O)) {
|
|
1406
1413
|
d.rects = {
|
|
1407
|
-
reference:
|
|
1408
|
-
popper: lt(
|
|
1414
|
+
reference: No(g, Se(O), d.options.strategy === "fixed"),
|
|
1415
|
+
popper: lt(O)
|
|
1409
1416
|
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(N) {
|
|
1410
1417
|
return d.modifiersData[N.name] = Object.assign({}, N.data);
|
|
1411
1418
|
});
|
|
@@ -1427,7 +1434,7 @@ function Ro(e) {
|
|
|
1427
1434
|
},
|
|
1428
1435
|
// Async and optimistically optimized update – it will not be executed if
|
|
1429
1436
|
// not necessary (debounced to run at most once-per-tick)
|
|
1430
|
-
update:
|
|
1437
|
+
update: Co(function() {
|
|
1431
1438
|
return new Promise(function(v) {
|
|
1432
1439
|
h.forceUpdate(), v(d);
|
|
1433
1440
|
});
|
|
@@ -1436,20 +1443,20 @@ function Ro(e) {
|
|
|
1436
1443
|
E(), f = !0;
|
|
1437
1444
|
}
|
|
1438
1445
|
};
|
|
1439
|
-
if (!Bt(
|
|
1446
|
+
if (!Bt(l, s))
|
|
1440
1447
|
return h;
|
|
1441
1448
|
h.setOptions(c).then(function(v) {
|
|
1442
1449
|
!f && c.onFirstUpdate && c.onFirstUpdate(v);
|
|
1443
1450
|
});
|
|
1444
1451
|
function _() {
|
|
1445
1452
|
d.orderedModifiers.forEach(function(v) {
|
|
1446
|
-
var T = v.name, g = v.options,
|
|
1453
|
+
var T = v.name, g = v.options, O = g === void 0 ? {} : g, b = v.effect;
|
|
1447
1454
|
if (typeof b == "function") {
|
|
1448
1455
|
var A = b({
|
|
1449
1456
|
state: d,
|
|
1450
1457
|
name: T,
|
|
1451
1458
|
instance: h,
|
|
1452
|
-
options:
|
|
1459
|
+
options: O
|
|
1453
1460
|
}), M = function() {
|
|
1454
1461
|
};
|
|
1455
1462
|
m.push(A || M);
|
|
@@ -1464,8 +1471,8 @@ function Ro(e) {
|
|
|
1464
1471
|
return h;
|
|
1465
1472
|
};
|
|
1466
1473
|
}
|
|
1467
|
-
var
|
|
1468
|
-
defaultModifiers:
|
|
1474
|
+
var Bo = [ro, Mo, no, Gn, To, mo, wo, Qn, vo], tn = /* @__PURE__ */ Do({
|
|
1475
|
+
defaultModifiers: Bo
|
|
1469
1476
|
});
|
|
1470
1477
|
function et(e, t, n, o) {
|
|
1471
1478
|
t ? (e.classList.remove(o), e.classList.add(n)) : (e.classList.add(o), e.classList.remove(n));
|
|
@@ -1490,19 +1497,27 @@ function nt() {
|
|
|
1490
1497
|
et(t, !1, a.POPUP__VISIBLE, a.POPUP__HIDDEN);
|
|
1491
1498
|
});
|
|
1492
1499
|
}
|
|
1493
|
-
function
|
|
1494
|
-
V && nn(), V = {
|
|
1500
|
+
function Ho() {
|
|
1501
|
+
V && nn(), V = {
|
|
1502
|
+
globalOnClick: () => {
|
|
1503
|
+
},
|
|
1504
|
+
globalOnKeyup: () => {
|
|
1505
|
+
},
|
|
1506
|
+
globalOnKeydown: () => {
|
|
1507
|
+
}
|
|
1508
|
+
}, V.globalOnClick = nt, document.addEventListener("click", V.globalOnClick), V.globalOnKeyup = /** @param {KeyboardEvent} e */
|
|
1509
|
+
(e) => {
|
|
1495
1510
|
e.key === "Escape" && nt(), e.shiftKey || (be[tt.SHIFT] = !1), be[e.key] = !1;
|
|
1496
1511
|
}, document.addEventListener("keyup", V.globalOnKeyup), V.globalOnKeydown = (e) => {
|
|
1497
1512
|
e.shiftKey && (be[tt.SHIFT] = !0), be[e.key] = !0;
|
|
1498
1513
|
}, document.addEventListener("keydown", V.globalOnKeydown);
|
|
1499
1514
|
}
|
|
1500
|
-
function
|
|
1515
|
+
function xo() {
|
|
1501
1516
|
return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
1502
1517
|
}
|
|
1503
1518
|
function ye(e, t, n, o, r) {
|
|
1504
1519
|
let i = NaN, u = NaN;
|
|
1505
|
-
const
|
|
1520
|
+
const l = 300, s = 150, c = 50;
|
|
1506
1521
|
t.setAttribute("aria-expanded", "false"), t.setAttribute("aria-haspopup", o);
|
|
1507
1522
|
function d(f) {
|
|
1508
1523
|
clearTimeout(i), clearTimeout(u), (!(r != null && r.isPerformPopup) || r != null && r.isPerformPopup && r.isPerformPopup()) && (i = window.setTimeout(
|
|
@@ -1530,17 +1545,17 @@ function ye(e, t, n, o, r) {
|
|
|
1530
1545
|
}
|
|
1531
1546
|
if (r != null && r.preventOnClickHandling ? (J(!!e.onclick, "popupFocusHandler: wrapper already has an onclick"), e.onclick = (f) => {
|
|
1532
1547
|
f.preventDefault(), f.stopPropagation();
|
|
1533
|
-
}) : (e.addEventListener("focusin", () => d(
|
|
1548
|
+
}) : (e.addEventListener("focusin", () => d(s)), e.addEventListener("focusout", () => m(s))), r != null && r.shouldFocusOnHover && (e.addEventListener("mouseenter", () => d(l)), e.addEventListener("mouseleave", () => m(l))), !(r != null && r.preventOnClickHandling)) {
|
|
1534
1549
|
if (t.onclick)
|
|
1535
1550
|
throw new Error("popupFocusHandler: button already has onclick");
|
|
1536
1551
|
t.onclick = (f) => {
|
|
1537
1552
|
var _;
|
|
1538
1553
|
const h = t.getAttribute("aria-expanded") === "true";
|
|
1539
|
-
(!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (f.stopPropagation(), f.preventDefault(), h && t.getAttribute("aria-expanded") === "true" ? (m(c), (_ = document.activeElement) == null || _.blur()) : (
|
|
1554
|
+
(!(r != null && r.isPerformPopup) || r.isPerformPopup()) && (f.stopPropagation(), f.preventDefault(), h && t.getAttribute("aria-expanded") === "true" ? (m(c), (_ = document.activeElement) == null || _.blur()) : (xo() && nt(), d(c))), r != null && r.onClick && r.onClick(f);
|
|
1540
1555
|
};
|
|
1541
1556
|
}
|
|
1542
1557
|
}
|
|
1543
|
-
const
|
|
1558
|
+
const Wo = `<div class="popup__wrapper popup__wrapper--hidden">
|
|
1544
1559
|
<div class="popup__content">
|
|
1545
1560
|
<div class="popup__arrow" data-popper-arrow></div>
|
|
1546
1561
|
</div>
|
|
@@ -1552,7 +1567,7 @@ function ft(e, t) {
|
|
|
1552
1567
|
throw new Error("renderPopup: labelledByElement does not have an `id` attribute");
|
|
1553
1568
|
const o = R();
|
|
1554
1569
|
e.setAttribute("aria-controls", o);
|
|
1555
|
-
const r = I(
|
|
1570
|
+
const r = I(Wo);
|
|
1556
1571
|
if (r.setAttribute("id", o), r.setAttribute("aria-labelledby", n), t != null && t.removePopupArrow) {
|
|
1557
1572
|
const i = r.querySelector(p(a.POPUP_ARROW));
|
|
1558
1573
|
if (!i)
|
|
@@ -1561,7 +1576,7 @@ function ft(e, t) {
|
|
|
1561
1576
|
}
|
|
1562
1577
|
return r;
|
|
1563
1578
|
}
|
|
1564
|
-
function
|
|
1579
|
+
function on(e) {
|
|
1565
1580
|
const t = e.closest("li");
|
|
1566
1581
|
if (!t)
|
|
1567
1582
|
throw console.error("element", e), new Error("toggleChildMenuExpansion: parent not found for child");
|
|
@@ -1578,16 +1593,16 @@ function Wo(e) {
|
|
|
1578
1593
|
}
|
|
1579
1594
|
function ko(e) {
|
|
1580
1595
|
return (t) => {
|
|
1581
|
-
t.preventDefault(), t.stopPropagation(),
|
|
1596
|
+
t.preventDefault(), t.stopPropagation(), on(e);
|
|
1582
1597
|
};
|
|
1583
1598
|
}
|
|
1584
1599
|
function Ht() {
|
|
1585
|
-
const e = I(
|
|
1600
|
+
const e = I(yn);
|
|
1586
1601
|
return e.classList.add(a.IS_CLOSED), e;
|
|
1587
1602
|
}
|
|
1588
1603
|
function Fo(e, t, n) {
|
|
1589
1604
|
var f, h;
|
|
1590
|
-
const o = I(
|
|
1605
|
+
const o = I(Nn), r = o.querySelector(p(a.POPUP_MENU__TITLE));
|
|
1591
1606
|
if (!r)
|
|
1592
1607
|
throw new Error("renderPopupMenuItem: menuItemTitleWrapper not found");
|
|
1593
1608
|
const i = (
|
|
@@ -1602,14 +1617,14 @@ function Fo(e, t, n) {
|
|
|
1602
1617
|
);
|
|
1603
1618
|
if (!u)
|
|
1604
1619
|
throw new Error("renderPopupMenuItem: aHref not found");
|
|
1605
|
-
const
|
|
1620
|
+
const l = (
|
|
1606
1621
|
/** @type HTMLElement | null */
|
|
1607
1622
|
o.querySelector(p(a.POPUP_MENU__PLAIN_TITLE))
|
|
1608
1623
|
);
|
|
1609
|
-
if (!s)
|
|
1610
|
-
throw new Error("renderPopupMenuItem: plainTitle not found");
|
|
1611
|
-
const l = o.querySelector(p(a.POPUP_MENU__DIVIDER));
|
|
1612
1624
|
if (!l)
|
|
1625
|
+
throw new Error("renderPopupMenuItem: plainTitle not found");
|
|
1626
|
+
const s = o.querySelector(p(a.POPUP_MENU__DIVIDER));
|
|
1627
|
+
if (!s)
|
|
1613
1628
|
throw new Error("renderPopupMenuItem: menuDivider not found");
|
|
1614
1629
|
const c = o.querySelector(`button ${p(a.POPUP_MENU__LINK_TEXT)}`);
|
|
1615
1630
|
if (!c)
|
|
@@ -1651,7 +1666,7 @@ function Fo(e, t, n) {
|
|
|
1651
1666
|
preventOnClickHandling: !0,
|
|
1652
1667
|
shouldFocusOnHover: !0
|
|
1653
1668
|
}
|
|
1654
|
-
), u.remove(),
|
|
1669
|
+
), u.remove(), l.remove();
|
|
1655
1670
|
break;
|
|
1656
1671
|
}
|
|
1657
1672
|
case j.INLINE: {
|
|
@@ -1659,12 +1674,12 @@ function Fo(e, t, n) {
|
|
|
1659
1674
|
m,
|
|
1660
1675
|
n
|
|
1661
1676
|
), v = R();
|
|
1662
|
-
E.setAttribute("id", v), E.classList.add(a.VISUALLY_HIDDEN), o.appendChild(E), i.onclick = ko(i), i.setAttribute("aria-expanded", "false"), i.setAttribute("aria-controls", v), _ = Ht(), i.appendChild(_), u.remove(),
|
|
1663
|
-
var g,
|
|
1677
|
+
E.setAttribute("id", v), E.classList.add(a.VISUALLY_HIDDEN), o.appendChild(E), i.onclick = ko(i), i.setAttribute("aria-expanded", "false"), i.setAttribute("aria-controls", v), _ = Ht(), i.appendChild(_), u.remove(), l.remove(), o.addEventListener("focusin", (T) => {
|
|
1678
|
+
var g, O, b, A;
|
|
1664
1679
|
for (let M = (
|
|
1665
1680
|
/** @type Element | null | undefined */
|
|
1666
1681
|
(g = T.target) == null ? void 0 : g.closest("ul")
|
|
1667
|
-
); M; M = (
|
|
1682
|
+
); M; M = (O = M.parentElement) == null ? void 0 : O.closest("ul"))
|
|
1668
1683
|
M.classList.remove(a.VISUALLY_HIDDEN), i.setAttribute("aria-expanded", "true"), T.target !== i && ((b = _ == null ? void 0 : _.classList) == null || b.remove(a.IS_CLOSED), (A = _ == null ? void 0 : _.classList) == null || A.add(a.IS_OPEN));
|
|
1669
1684
|
});
|
|
1670
1685
|
break;
|
|
@@ -1674,22 +1689,22 @@ function Fo(e, t, n) {
|
|
|
1674
1689
|
m,
|
|
1675
1690
|
n
|
|
1676
1691
|
), v = R();
|
|
1677
|
-
E.setAttribute("id", v), o.appendChild(E), u.remove(), i.remove(),
|
|
1692
|
+
E.setAttribute("id", v), o.appendChild(E), u.remove(), i.remove(), l.appendChild(document.createTextNode(t.title));
|
|
1678
1693
|
break;
|
|
1679
1694
|
}
|
|
1680
1695
|
default:
|
|
1681
1696
|
throw new Error(`renderPopupMenuItem: childrenMenuType unknown '${n.childrenMenuType}'`);
|
|
1682
1697
|
}
|
|
1683
|
-
|
|
1698
|
+
s.remove();
|
|
1684
1699
|
} else if (t.actionFunction)
|
|
1685
|
-
i.onclick = t.actionFunction, u.remove(),
|
|
1700
|
+
i.onclick = t.actionFunction, u.remove(), s.remove(), l.remove();
|
|
1686
1701
|
else if (t.actionUrl)
|
|
1687
|
-
u.setAttribute("href", t.actionUrl.url), i.remove(),
|
|
1702
|
+
u.setAttribute("href", t.actionUrl.url), i.remove(), s.remove(), l.remove();
|
|
1688
1703
|
else if (t.actionFunctionUrl)
|
|
1689
1704
|
u.setAttribute("href", t.actionFunctionUrl.url), u.onclick = (_) => {
|
|
1690
1705
|
var E, v;
|
|
1691
1706
|
(E = t.actionFunctionUrl) != null && E.skipHandleEvent || (_.stopPropagation(), _.preventDefault()), (v = t.actionFunctionUrl) == null || v.actionFunction(_);
|
|
1692
|
-
}, i.remove(),
|
|
1707
|
+
}, i.remove(), s.remove(), l.remove();
|
|
1693
1708
|
else if (t.isDivider)
|
|
1694
1709
|
r.remove(), o.setAttribute("aria-hidden", "true"), o.setAttribute("role", "separator");
|
|
1695
1710
|
else
|
|
@@ -1699,10 +1714,10 @@ function Fo(e, t, n) {
|
|
|
1699
1714
|
const _ = I(Gt);
|
|
1700
1715
|
c.appendChild(_), d.appendChild(_);
|
|
1701
1716
|
}
|
|
1702
|
-
return (t.isSelected || t.actionMenu && Fe(t.actionMenu, ["actionMenu"], (_) => !!_.isSelected)) && (i.classList.add(a.MENU_ITEM__SELECTED), u.classList.add(a.MENU_ITEM__SELECTED)), t.isSelected ? o.classList.add(a.MENU_ITEM__SELECTED) : o.classList.remove(a.MENU_ITEM__SELECTED), e.appendChild(o), o;
|
|
1717
|
+
return (t.isSelected || t.actionMenu && Fe(t.actionMenu, ["actionMenu"], (_) => !!_.isSelected)) && (i.classList.add(a.MENU_ITEM__SELECTED), u.classList.add(a.MENU_ITEM__SELECTED)), t.isSelected ? (on(o), o.classList.add(a.MENU_ITEM__SELECTED)) : o.classList.remove(a.MENU_ITEM__SELECTED), e.appendChild(o), o;
|
|
1703
1718
|
}
|
|
1704
1719
|
function he(e, t) {
|
|
1705
|
-
const n = I(
|
|
1720
|
+
const n = I(Pn);
|
|
1706
1721
|
return e == null || e.forEach((o) => Fo(n, o, t)), n;
|
|
1707
1722
|
}
|
|
1708
1723
|
function _t(e, t, n) {
|
|
@@ -1757,29 +1772,29 @@ function Vo(e) {
|
|
|
1757
1772
|
e.className && i.classList.add(e.className);
|
|
1758
1773
|
const u = ht(e.badge);
|
|
1759
1774
|
u && i.appendChild(u);
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1762
|
-
let
|
|
1775
|
+
const l = I(e.icon);
|
|
1776
|
+
l.setAttribute("role", "presentation"), i.appendChild(l);
|
|
1777
|
+
let s = null;
|
|
1763
1778
|
if (e.actionFunction)
|
|
1764
1779
|
i.onclick = e.actionFunction;
|
|
1765
1780
|
else if (e.actionDom) {
|
|
1766
1781
|
const c = R();
|
|
1767
|
-
i.setAttribute("id", c),
|
|
1782
|
+
i.setAttribute("id", c), s = I(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom);
|
|
1768
1783
|
} else if (e.actionPopupMenu) {
|
|
1769
1784
|
const c = R();
|
|
1770
|
-
i.setAttribute("id", c),
|
|
1771
|
-
const d =
|
|
1785
|
+
i.setAttribute("id", c), s = I(Ln);
|
|
1786
|
+
const d = s.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
|
|
1772
1787
|
if (!d)
|
|
1773
1788
|
throw new Error("renderMobileActionItem: actionItemContentTitle not found");
|
|
1774
1789
|
d.appendChild(document.createTextNode(e.actionPopupMenu.title));
|
|
1775
1790
|
const m = he(e.actionPopupMenu.menuItems, { childrenMenuType: j.INLINE });
|
|
1776
|
-
|
|
1791
|
+
s.appendChild(m);
|
|
1777
1792
|
} else
|
|
1778
1793
|
throw console.error(e), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
|
|
1779
|
-
return { actionItemElement: t, actionItemContent:
|
|
1794
|
+
return { actionItemElement: t, actionItemContent: s };
|
|
1780
1795
|
}
|
|
1781
1796
|
function $o() {
|
|
1782
|
-
var u,
|
|
1797
|
+
var u, l, s;
|
|
1783
1798
|
const e = document.getElementById(a.MOBILE_MENU_ACTON_BAR__HOME_ID);
|
|
1784
1799
|
if (!e)
|
|
1785
1800
|
throw new Error("renderMobileActionItems: homeActionItem not found");
|
|
@@ -1793,7 +1808,7 @@ function $o() {
|
|
|
1793
1808
|
/** @type {HTMLElement} */
|
|
1794
1809
|
(u = o == null ? void 0 : o.closest) == null ? void 0 : u.call(o, p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER))
|
|
1795
1810
|
);
|
|
1796
|
-
(
|
|
1811
|
+
(s = (l = [...L().actionItems || []].reverse()) == null ? void 0 : l.map((c) => ({ actionItem: c, ...Vo(c) }))) == null || s.forEach(({ actionItem: c, actionItemContent: d, actionItemElement: m }) => {
|
|
1797
1812
|
let f;
|
|
1798
1813
|
switch (c.mobileMenuLocation) {
|
|
1799
1814
|
case "left":
|
|
@@ -1854,12 +1869,12 @@ const Go = `<div class="utds-footer utah-design-system">
|
|
|
1854
1869
|
showHorizontalRule: !1
|
|
1855
1870
|
};
|
|
1856
1871
|
function zo() {
|
|
1857
|
-
var o, r, i, u,
|
|
1872
|
+
var o, r, i, u, l, s, c, d, m, f, h, _, E, v, T, g, O, b, A, M, P, U, S, N, C, k;
|
|
1858
1873
|
const e = L(), t = document.querySelector(p(a.FOOTER));
|
|
1859
1874
|
let n = t;
|
|
1860
1875
|
if (e.footer === null)
|
|
1861
1876
|
t == null || t.remove();
|
|
1862
|
-
else if (ne.domLocationTarget.cssSelector !== ((r = (o = e == null ? void 0 : e.footer) == null ? void 0 : o.domLocationTarget) == null ? void 0 : r.cssSelector) || ne.domLocationTarget.element !== ((u = (i = e == null ? void 0 : e.footer) == null ? void 0 : i.domLocationTarget) == null ? void 0 : u.element) || ne.domLocationTarget.elementFunction !== ((
|
|
1877
|
+
else if (ne.domLocationTarget.cssSelector !== ((r = (o = e == null ? void 0 : e.footer) == null ? void 0 : o.domLocationTarget) == null ? void 0 : r.cssSelector) || ne.domLocationTarget.element !== ((u = (i = e == null ? void 0 : e.footer) == null ? void 0 : i.domLocationTarget) == null ? void 0 : u.element) || ne.domLocationTarget.elementFunction !== ((s = (l = e == null ? void 0 : e.footer) == null ? void 0 : l.domLocationTarget) == null ? void 0 : s.elementFunction) || ne.showHorizontalRule !== ((c = e == null ? void 0 : e.footer) == null ? void 0 : c.showHorizontalRule) || !t) {
|
|
1863
1878
|
t && t.remove(), n = I(Go);
|
|
1864
1879
|
let B = document.body;
|
|
1865
1880
|
if ((d = e == null ? void 0 : e.footer) != null && d.domLocationTarget) {
|
|
@@ -1872,7 +1887,7 @@ function zo() {
|
|
|
1872
1887
|
B = document.querySelector((E = e == null ? void 0 : e.footer) == null ? void 0 : E.domLocationTarget.cssSelector), J(!B, `renderFooter: element not found for domLocationTarget.cssSelector ${(v = e == null ? void 0 : e.footer) == null ? void 0 : v.domLocationTarget.cssSelector}`);
|
|
1873
1888
|
else if ((T = e == null ? void 0 : e.footer) != null && T.domLocationTarget.element)
|
|
1874
1889
|
B = (g = e == null ? void 0 : e.footer) == null ? void 0 : g.domLocationTarget.element;
|
|
1875
|
-
else if ((
|
|
1890
|
+
else if ((O = e == null ? void 0 : e.footer) != null && O.domLocationTarget.elementFunction)
|
|
1876
1891
|
B = (b = e == null ? void 0 : e.footer) == null ? void 0 : b.domLocationTarget.elementFunction(), J(!B, "renderFooter: element not returned from domLocationTarget.elementFunction");
|
|
1877
1892
|
else
|
|
1878
1893
|
throw new Error("renderFooter: domLocationTarget must have at least one field set");
|
|
@@ -1929,7 +1944,7 @@ function Ae(e, t) {
|
|
|
1929
1944
|
() => {
|
|
1930
1945
|
clearTimeout(ue), ue = -1;
|
|
1931
1946
|
const u = e.querySelector(p(a.POPUP_WRAPPER));
|
|
1932
|
-
(!u || u.classList.contains(a.POPUP__HIDDEN)) && (n.classList.remove(a.TOOLTIP__WRAPPER__HIDDEN), n.classList.add(a.TOOLTIP__WRAPPER__VISIBLE), r.update().catch((
|
|
1947
|
+
(!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)));
|
|
1933
1948
|
},
|
|
1934
1949
|
// tooltip was already opened on another item, so instantly open tooltip
|
|
1935
1950
|
ue ? 0 : 500
|
|
@@ -1959,14 +1974,14 @@ function tr(e) {
|
|
|
1959
1974
|
e.className && i.classList.add(e.className);
|
|
1960
1975
|
const u = ht(e.badge);
|
|
1961
1976
|
u && i.appendChild(u);
|
|
1962
|
-
const
|
|
1963
|
-
if (
|
|
1977
|
+
const l = I(e.icon);
|
|
1978
|
+
if (l.setAttribute("role", "presentation"), i.appendChild(l), !(i instanceof HTMLElement))
|
|
1964
1979
|
throw new Error("renderActionItem: iconButton is not an HTMLElement");
|
|
1965
1980
|
if (e.actionFunction)
|
|
1966
1981
|
i.onclick = e.actionFunction;
|
|
1967
1982
|
else if (e.actionDom) {
|
|
1968
|
-
const
|
|
1969
|
-
i.setAttribute("id",
|
|
1983
|
+
const s = R();
|
|
1984
|
+
i.setAttribute("id", s);
|
|
1970
1985
|
const c = ft(i), d = (
|
|
1971
1986
|
/** @type {HTMLElement} */
|
|
1972
1987
|
c.querySelector(p(a.POPUP_CONTENT_WRAPPER))
|
|
@@ -1975,8 +1990,8 @@ function tr(e) {
|
|
|
1975
1990
|
throw new Error("renderPopupMenu: contentWrapper not found");
|
|
1976
1991
|
d.appendChild(I(typeof e.actionDom == "function" ? e.actionDom() : e.actionDom)), t.appendChild(c), ye(o, i, c, "dialog", void 0);
|
|
1977
1992
|
} else if (e.actionPopupMenu) {
|
|
1978
|
-
const
|
|
1979
|
-
i.setAttribute("id",
|
|
1993
|
+
const s = R();
|
|
1994
|
+
i.setAttribute("id", s);
|
|
1980
1995
|
const c = _t(
|
|
1981
1996
|
/** @type {PopupMenu} */
|
|
1982
1997
|
e.actionPopupMenu,
|
|
@@ -1992,10 +2007,10 @@ function nr() {
|
|
|
1992
2007
|
var n, o;
|
|
1993
2008
|
const { actionItems: e } = L();
|
|
1994
2009
|
let t = null;
|
|
1995
|
-
return e != null && e.length && (t = I(Qo), (o = (n = L().actionItems) == null ? void 0 : n.map((r) => tr(r))) == null || o.forEach((r) => t.appendChild(r))), t;
|
|
2010
|
+
return e != null && e.length && (t = I(Qo), (o = (n = L().actionItems) == null ? void 0 : n.map((r) => tr(r))) == null || o.forEach((r) => t == null ? void 0 : t.appendChild(r))), t;
|
|
1996
2011
|
}
|
|
1997
2012
|
const or = `<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
|
|
1998
|
-
`,
|
|
2013
|
+
`, rn = `<div class="utds-utah-id-wrapper"></div>
|
|
1999
2014
|
`, Pe = {
|
|
2000
2015
|
PROFILE: "https://id.utah.gov",
|
|
2001
2016
|
SIGN_IN: `https://id.utah.gov/login?goto=${window.location}`,
|
|
@@ -2005,14 +2020,14 @@ const or = `<button class="utds-utah-id__button button--solid" type="button">Uta
|
|
|
2005
2020
|
<div class="vertical-menu__wrapper-title"></div>
|
|
2006
2021
|
</div>
|
|
2007
2022
|
`;
|
|
2008
|
-
function
|
|
2023
|
+
function an(e, t) {
|
|
2009
2024
|
const n = I(rr), o = n.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
|
|
2010
2025
|
if (!o)
|
|
2011
2026
|
throw new Error("renderMenuWithTitle: menuTitleDiv not found");
|
|
2012
2027
|
return o.appendChild(document.createTextNode(t)), n.appendChild(e), n;
|
|
2013
2028
|
}
|
|
2014
2029
|
let y = null;
|
|
2015
|
-
function
|
|
2030
|
+
function sn(e) {
|
|
2016
2031
|
y = e, document.querySelectorAll(p(a.UTAH_ID__BUTTON)).forEach((n) => {
|
|
2017
2032
|
var o;
|
|
2018
2033
|
if (n) {
|
|
@@ -2033,13 +2048,13 @@ function mt(e, t) {
|
|
|
2033
2048
|
var n;
|
|
2034
2049
|
e && t && (!!(y != null && y.isDefinitive) && !!((n = y == null ? void 0 : y.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")));
|
|
2035
2050
|
}
|
|
2036
|
-
function
|
|
2051
|
+
function ln() {
|
|
2037
2052
|
const e = I(or);
|
|
2038
|
-
return e.setAttribute("id", R()), y &&
|
|
2053
|
+
return e.setAttribute("id", R()), y && sn(y), e;
|
|
2039
2054
|
}
|
|
2040
|
-
function
|
|
2041
|
-
var
|
|
2042
|
-
const t = L(), n = t.utahId !== !1 && t.utahId !== !0 && ((
|
|
2055
|
+
function cn(e) {
|
|
2056
|
+
var s, c, d;
|
|
2057
|
+
const t = L(), 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) || []];
|
|
2043
2058
|
r.length && r.push({
|
|
2044
2059
|
isDivider: !0,
|
|
2045
2060
|
title: "--divider--"
|
|
@@ -2057,21 +2072,21 @@ function ln(e) {
|
|
|
2057
2072
|
actionFunction: o || void 0,
|
|
2058
2073
|
title: "Sign Out"
|
|
2059
2074
|
}
|
|
2060
|
-
], u = he(i, { childrenMenuType: j.INLINE }),
|
|
2061
|
-
return
|
|
2075
|
+
], u = he(i, { childrenMenuType: j.INLINE }), l = e ? an(u, "Utah ID Menu") : u;
|
|
2076
|
+
return l.setAttribute("aria-label", "Utah Id Menu"), l.setAttribute("id", R()), l;
|
|
2062
2077
|
}
|
|
2063
2078
|
function ir() {
|
|
2064
|
-
var
|
|
2065
|
-
const e = I(
|
|
2079
|
+
var l;
|
|
2080
|
+
const e = I(rn), t = ln();
|
|
2066
2081
|
t.setAttribute("id", R()), e.appendChild(t);
|
|
2067
|
-
const n =
|
|
2082
|
+
const n = cn(!1), o = ft(t), r = (
|
|
2068
2083
|
/** @type {HTMLElement} */
|
|
2069
2084
|
o.querySelector(p(a.POPUP_CONTENT_WRAPPER))
|
|
2070
2085
|
);
|
|
2071
2086
|
if (!r)
|
|
2072
2087
|
throw new Error("renderUtahIdForDesktop: contentWrapper not found");
|
|
2073
2088
|
r.appendChild(n), e.appendChild(o), mt(t, o);
|
|
2074
|
-
const i = L(), u = i.utahId !== !1 && i.utahId !== !0 && ((
|
|
2089
|
+
const i = L(), u = i.utahId !== !1 && i.utahId !== !0 && ((l = i.utahId) == null ? void 0 : l.onSignIn);
|
|
2075
2090
|
return ye(
|
|
2076
2091
|
e,
|
|
2077
2092
|
t,
|
|
@@ -2079,22 +2094,22 @@ function ir() {
|
|
|
2079
2094
|
"menu",
|
|
2080
2095
|
{
|
|
2081
2096
|
isPerformPopup: () => {
|
|
2082
|
-
var
|
|
2083
|
-
return !!(y != null && y.isDefinitive) && !!((
|
|
2097
|
+
var s;
|
|
2098
|
+
return !!(y != null && y.isDefinitive) && !!((s = y == null ? void 0 : y.userInfo) != null && s.authenticated);
|
|
2084
2099
|
},
|
|
2085
|
-
onClick: (
|
|
2100
|
+
onClick: (s) => {
|
|
2086
2101
|
var c;
|
|
2087
|
-
(!(y != null && y.isDefinitive) || !((c = y == null ? void 0 : y.userInfo) != null && c.authenticated)) && (u ? u(
|
|
2102
|
+
(!(y != null && y.isDefinitive) || !((c = y == null ? void 0 : y.userInfo) != null && c.authenticated)) && (u ? u(s) : (s.preventDefault(), s.stopPropagation(), window.location.href = Pe.SIGN_IN));
|
|
2088
2103
|
}
|
|
2089
2104
|
}
|
|
2090
2105
|
), e;
|
|
2091
2106
|
}
|
|
2092
2107
|
function ar() {
|
|
2093
|
-
const e = I(
|
|
2108
|
+
const e = I(rn), t = ln(), n = t.getAttribute("id");
|
|
2094
2109
|
if (!n)
|
|
2095
2110
|
throw new Error("renderUtahIdForMobile: utahIdButton has no id");
|
|
2096
2111
|
e.appendChild(t);
|
|
2097
|
-
const o =
|
|
2112
|
+
const o = cn(!0), r = o.getAttribute("id");
|
|
2098
2113
|
if (!r)
|
|
2099
2114
|
throw new Error("renderUtahIdForMobile: utahIdPopupMenu has no id");
|
|
2100
2115
|
return e.appendChild(o), t.setAttribute("aria-controls", r), o.setAttribute("aria-labelledby", n), mt(t, o), { button: t, menu: o };
|
|
@@ -2122,20 +2137,20 @@ function ur() {
|
|
|
2122
2137
|
throw new Error("LogoTitle: logoWrapper is null");
|
|
2123
2138
|
const o = L().logo, r = L().showTitle, i = L().title;
|
|
2124
2139
|
if (o) {
|
|
2125
|
-
let
|
|
2140
|
+
let s;
|
|
2126
2141
|
if (o.htmlString)
|
|
2127
|
-
|
|
2142
|
+
s = I(Z(o.htmlString));
|
|
2128
2143
|
else if (o.element)
|
|
2129
|
-
|
|
2144
|
+
s = Z(o.element);
|
|
2130
2145
|
else if (o.imageUrl)
|
|
2131
|
-
|
|
2146
|
+
s = I(`<img src=${Z(o.imageUrl)} id="design-system-logo" />`);
|
|
2132
2147
|
else
|
|
2133
2148
|
throw new Error("LogoTitle: logo set but has no settings");
|
|
2134
|
-
|
|
2149
|
+
s.setAttribute("role", "presentation"), n.appendChild(s);
|
|
2135
2150
|
} else
|
|
2136
2151
|
t.removeChild(n);
|
|
2137
|
-
const u = document.createTextNode(i),
|
|
2138
|
-
return
|
|
2152
|
+
const u = document.createTextNode(i), l = t.querySelector(p(a.TITLE__TITLE));
|
|
2153
|
+
return l == null || l.appendChild(u), !r && o && (l == null || l.classList.add(a.VISUALLY_HIDDEN)), t;
|
|
2139
2154
|
}
|
|
2140
2155
|
const dr = `<div class="utah-logo-wrapper">
|
|
2141
2156
|
<button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
|
|
@@ -2311,32 +2326,32 @@ function je() {
|
|
|
2311
2326
|
);
|
|
2312
2327
|
if (!i)
|
|
2313
2328
|
throw new Error("showSearchModal: searchInput not found");
|
|
2314
|
-
o.onclick = (
|
|
2315
|
-
|
|
2316
|
-
const { onSearch:
|
|
2317
|
-
|
|
2318
|
-
}, n.onclick = (
|
|
2319
|
-
|
|
2320
|
-
}, t.onclick = (
|
|
2321
|
-
|
|
2329
|
+
o.onclick = (l) => {
|
|
2330
|
+
l.preventDefault(), l.stopPropagation(), xe();
|
|
2331
|
+
const { onSearch: s } = L();
|
|
2332
|
+
s && (s == null || s(i.value));
|
|
2333
|
+
}, n.onclick = (l) => {
|
|
2334
|
+
l.preventDefault(), l.stopPropagation(), xe();
|
|
2335
|
+
}, t.onclick = (l) => {
|
|
2336
|
+
l.preventDefault(), l.stopPropagation(), xe();
|
|
2322
2337
|
}, document.body.appendChild(e), i.focus(), i.oninput = () => {
|
|
2323
2338
|
r.classList.remove(a.VISUALLY_HIDDEN);
|
|
2324
2339
|
}, o.onfocus = () => {
|
|
2325
2340
|
r.classList.remove(a.VISUALLY_HIDDEN);
|
|
2326
|
-
}, e.onkeyup = (
|
|
2327
|
-
(
|
|
2328
|
-
}, n.addEventListener("focusout", (
|
|
2329
|
-
|
|
2341
|
+
}, e.onkeyup = (l) => {
|
|
2342
|
+
(l.code === "Escape" || l.key === "Escape") && (l.preventDefault(), l.stopPropagation(), xe());
|
|
2343
|
+
}, n.addEventListener("focusout", (l) => {
|
|
2344
|
+
l.preventDefault(), l.stopPropagation(), be[tt.SHIFT] ? o.focus() : i.focus();
|
|
2330
2345
|
});
|
|
2331
2346
|
const u = e.querySelector(".search-modal__hidden-last-focusable");
|
|
2332
2347
|
if (!u)
|
|
2333
2348
|
throw new Error("showSearchModal: hiddenLastFocusableButton not found");
|
|
2334
|
-
u.addEventListener("focusin", (
|
|
2335
|
-
|
|
2349
|
+
u.addEventListener("focusin", (l) => {
|
|
2350
|
+
l.preventDefault(), l.stopPropagation(), n.focus();
|
|
2336
2351
|
});
|
|
2337
2352
|
}
|
|
2338
2353
|
function br() {
|
|
2339
|
-
var
|
|
2354
|
+
var l;
|
|
2340
2355
|
const e = L(), t = I(Er);
|
|
2341
2356
|
let n = t.querySelector(p(a.MAIN_MENU__NAV));
|
|
2342
2357
|
if (!n)
|
|
@@ -2346,23 +2361,23 @@ function br() {
|
|
|
2346
2361
|
throw new Error("renderMainMenu(): titleTag not found");
|
|
2347
2362
|
const r = "main-menu__nav";
|
|
2348
2363
|
if (n.setAttribute("aria-labelledby", r), o.setAttribute("id", r), e.mainMenu ? o.innerHTML = e.mainMenu.title : (n.remove(), n = null), e.mainMenu) {
|
|
2349
|
-
const
|
|
2350
|
-
if (!
|
|
2364
|
+
const s = n == null ? void 0 : n.querySelector(p(a.MAIN_MENU__MENU_TOP));
|
|
2365
|
+
if (!s)
|
|
2351
2366
|
throw new Error("renderMainMenu(): mainMenuTop not found");
|
|
2352
2367
|
e.mainMenu.menuItems.forEach((c) => {
|
|
2353
2368
|
var v, T;
|
|
2354
2369
|
const d = I(mr);
|
|
2355
|
-
|
|
2356
|
-
const m =
|
|
2370
|
+
s.appendChild(d);
|
|
2371
|
+
const m = w(
|
|
2357
2372
|
d.querySelector(p(a.MENU_ITEM__TITLE)),
|
|
2358
2373
|
`renderMainMenu(): sub menu title not found for ${c.title}`
|
|
2359
|
-
), f =
|
|
2374
|
+
), f = w(
|
|
2360
2375
|
/** @type {HTMLElement} */
|
|
2361
2376
|
m.querySelector(p(a.MENU_ITEM__BUTTON_TITLE)),
|
|
2362
2377
|
`renderMainMenu(): button title not found for ${c.title}`
|
|
2363
2378
|
);
|
|
2364
2379
|
f.setAttribute("id", `${a.MENU_ITEM__BUTTON_TITLE}__${c.title}-${R()}`);
|
|
2365
|
-
const h =
|
|
2380
|
+
const h = w(
|
|
2366
2381
|
/** @type {HTMLElement} */
|
|
2367
2382
|
m.querySelector(p(a.MENU_ITEM__LINK_TITLE)),
|
|
2368
2383
|
`renderMainMenu(): link title not found for ${c.title}`
|
|
@@ -2375,7 +2390,7 @@ function br() {
|
|
|
2375
2390
|
_ = f, h.remove();
|
|
2376
2391
|
else
|
|
2377
2392
|
throw new Error(`renderMainMenu(): menuItem is missing an action: ${c.title}`);
|
|
2378
|
-
const E =
|
|
2393
|
+
const E = w(
|
|
2379
2394
|
_.querySelector(p(a.MENU_ITEM__LINK_TITLE_SPAN)),
|
|
2380
2395
|
`renderMainMenu(): main menu item title span not found for: ${c.title}`
|
|
2381
2396
|
);
|
|
@@ -2384,14 +2399,14 @@ function br() {
|
|
|
2384
2399
|
const g = {
|
|
2385
2400
|
menuItems: c.actionMenu,
|
|
2386
2401
|
title: c.title
|
|
2387
|
-
},
|
|
2402
|
+
}, O = _t(
|
|
2388
2403
|
g,
|
|
2389
2404
|
_,
|
|
2390
2405
|
{
|
|
2391
2406
|
childrenMenuType: c.childrenMenuType || j.FLYOUT
|
|
2392
2407
|
}
|
|
2393
2408
|
);
|
|
2394
|
-
d.appendChild(
|
|
2409
|
+
d.appendChild(O), ye(d, _, O, "menu", { shouldFocusOnHover: !0 });
|
|
2395
2410
|
let b;
|
|
2396
2411
|
switch (c.childrenMenuType) {
|
|
2397
2412
|
case j.INLINE:
|
|
@@ -2407,25 +2422,25 @@ function br() {
|
|
|
2407
2422
|
}
|
|
2408
2423
|
d.classList.add(b);
|
|
2409
2424
|
} else
|
|
2410
|
-
|
|
2425
|
+
w(
|
|
2411
2426
|
_.querySelector(p(a.MENU_ITEM__ARROW)),
|
|
2412
2427
|
`renderMainMenu(): menu arrow not found for ${c.title}`
|
|
2413
2428
|
).remove();
|
|
2414
2429
|
c.actionFunction ? (E.innerHTML = c.title, _.onclick = c.actionFunction) : c.actionFunctionUrl ? (E.innerHTML = c.title, _.setAttribute("href", c.actionFunctionUrl.url), _.onclick = (g) => {
|
|
2415
|
-
var
|
|
2416
|
-
(
|
|
2430
|
+
var O, b;
|
|
2431
|
+
(O = c.actionFunctionUrl) != null && O.skipHandleEvent || (g.stopPropagation(), g.preventDefault()), (b = c.actionFunctionUrl) == null || b.actionFunction(g);
|
|
2417
2432
|
}) : c.actionUrl && (E.innerHTML = c.title, _.setAttribute("href", c.actionUrl.url)), ((v = c.actionUrl) != null && v.openInNewTab || (T = c.actionFunctionUrl) != null && T.openInNewTab) && (_.setAttribute("target", "_blank"), _.appendChild(I(Gt)));
|
|
2418
2433
|
});
|
|
2419
2434
|
}
|
|
2420
2435
|
let i = null;
|
|
2421
2436
|
if (e.utahId) {
|
|
2422
|
-
const { button:
|
|
2423
|
-
i = c,
|
|
2437
|
+
const { button: s, menu: c } = ar();
|
|
2438
|
+
i = c, w(
|
|
2424
2439
|
t.querySelector(p(a.MOBILE__UTAH_ID)),
|
|
2425
2440
|
"renderMainMenu: utahIdButtonWrapper not found"
|
|
2426
|
-
).appendChild(
|
|
2441
|
+
).appendChild(s);
|
|
2427
2442
|
}
|
|
2428
|
-
const u =
|
|
2443
|
+
const u = w(
|
|
2429
2444
|
/** @type {HTMLElement} */
|
|
2430
2445
|
t.querySelector(p(a.MAIN_MENU__SEARCH)),
|
|
2431
2446
|
"renderMainMenu: searchIcon not found"
|
|
@@ -2434,30 +2449,30 @@ function br() {
|
|
|
2434
2449
|
if (Ae(u, document.createTextNode("Search")), u.onclick)
|
|
2435
2450
|
throw new Error("searchIcon already has onclick");
|
|
2436
2451
|
if (u.onclick = () => je(), !e.mainMenu) {
|
|
2437
|
-
const
|
|
2452
|
+
const s = w(
|
|
2438
2453
|
document.querySelector(p(a.CITIZEN_EXPERIENCE)),
|
|
2439
2454
|
"renderMainMenu: citizen experience wrapper not found"
|
|
2440
2455
|
), c = I(u.outerHTML);
|
|
2441
2456
|
if (Ae(c, document.createTextNode("Search")), c.onclick = () => je(), u.classList.add(a.DESKTOP__HIDDEN), e.utahId !== !1) {
|
|
2442
|
-
const d =
|
|
2443
|
-
|
|
2457
|
+
const d = w(document.querySelector(p(a.UTAH_ID)), "renderMainMenu: utahId wrapper not found");
|
|
2458
|
+
s.insertBefore(c, d);
|
|
2444
2459
|
} else
|
|
2445
|
-
|
|
2460
|
+
s.appendChild(c);
|
|
2446
2461
|
}
|
|
2447
2462
|
if (!e.mainMenu && !e.actionItems && e.utahId === !1) {
|
|
2448
|
-
const
|
|
2463
|
+
const s = I(
|
|
2449
2464
|
/** @type {HTMLElement} */
|
|
2450
2465
|
u.outerHTML
|
|
2451
2466
|
);
|
|
2452
|
-
if (Ae(
|
|
2467
|
+
if (Ae(s, document.createTextNode("Search")), s.onclick)
|
|
2453
2468
|
throw new Error("searchIconMobile already has onclick");
|
|
2454
|
-
|
|
2469
|
+
s.onclick = () => je(), w(
|
|
2455
2470
|
document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
|
|
2456
2471
|
"renderMainMenu: citizen-experience--mobile not found"
|
|
2457
|
-
).appendChild(
|
|
2472
|
+
).appendChild(s);
|
|
2458
2473
|
}
|
|
2459
2474
|
}
|
|
2460
|
-
return e.onSearch || ((e.mainMenu || !e.mainMenu && e.utahId) && ((
|
|
2475
|
+
return e.onSearch || ((e.mainMenu || !e.mainMenu && e.utahId) && ((l = u.parentElement) == null || l.insertBefore(I('<div class="main-menu__search-placeholder">'), u)), u.remove()), { mainMenuWrapper: t, utahIdPopup: i };
|
|
2461
2476
|
}
|
|
2462
2477
|
const Ir = `<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
|
|
2463
2478
|
<h2 class="utds-official-website-popup__heading">
|
|
@@ -2501,37 +2516,37 @@ const Ir = `<div class="utah-design-system utds-official-website-popup__wrapper
|
|
|
2501
2516
|
</button>
|
|
2502
2517
|
</div>
|
|
2503
2518
|
`;
|
|
2504
|
-
function
|
|
2505
|
-
const e =
|
|
2519
|
+
function un() {
|
|
2520
|
+
const e = w(
|
|
2506
2521
|
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
2507
2522
|
"openOfficialWebsite: official wrapper not found"
|
|
2508
|
-
), t =
|
|
2523
|
+
), t = w(
|
|
2509
2524
|
document.querySelector(p(a.LOGO)),
|
|
2510
2525
|
"openOfficialWebsite: logoWrapper not found"
|
|
2511
|
-
), n =
|
|
2526
|
+
), n = w(
|
|
2512
2527
|
t.querySelector(p(a.LOGO_SVG)),
|
|
2513
2528
|
"openOfficialWebsite: logoButton not found"
|
|
2514
|
-
), o =
|
|
2529
|
+
), o = w(
|
|
2515
2530
|
e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
|
|
2516
2531
|
"openOfficialWebsite: official close button not found"
|
|
2517
2532
|
);
|
|
2518
|
-
e.classList.add(a.VISUALLY_HIDDEN), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), o.setAttribute("tabIndex", -1), e.setAttribute("tabIndex", -1);
|
|
2533
|
+
e.classList.add(a.VISUALLY_HIDDEN), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), o.setAttribute("tabIndex", "-1"), e.setAttribute("tabIndex", "-1");
|
|
2519
2534
|
const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
|
|
2520
2535
|
r == null || r.forEach((i) => {
|
|
2521
2536
|
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
2522
2537
|
});
|
|
2523
2538
|
}
|
|
2524
2539
|
function Tr() {
|
|
2525
|
-
const e =
|
|
2540
|
+
const e = w(
|
|
2526
2541
|
document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),
|
|
2527
2542
|
"openOfficialWebsite: official wrapper not found"
|
|
2528
|
-
), t =
|
|
2543
|
+
), t = w(
|
|
2529
2544
|
document.querySelector(p(a.LOGO)),
|
|
2530
2545
|
"openOfficialWebsite: logoWrapper not found"
|
|
2531
|
-
), n =
|
|
2546
|
+
), n = w(
|
|
2532
2547
|
t.querySelector(p(a.LOGO_SVG)),
|
|
2533
2548
|
"openOfficialWebsite: logoButton not found"
|
|
2534
|
-
), o =
|
|
2549
|
+
), o = w(
|
|
2535
2550
|
e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),
|
|
2536
2551
|
"openOfficialWebsite: official close button not found"
|
|
2537
2552
|
);
|
|
@@ -2542,9 +2557,9 @@ function Tr() {
|
|
|
2542
2557
|
}), Ve();
|
|
2543
2558
|
}
|
|
2544
2559
|
function gr() {
|
|
2545
|
-
const e = I(Ir), n = (
|
|
2560
|
+
const e = I(Ir), t = document.querySelector(p(a.LOGO)), n = (
|
|
2546
2561
|
/** @type {HTMLElement} */
|
|
2547
|
-
|
|
2562
|
+
t == null ? void 0 : t.querySelector(p(a.LOGO_SVG))
|
|
2548
2563
|
);
|
|
2549
2564
|
if (!n)
|
|
2550
2565
|
throw new Error("renderOfficialWebsite: logoButton not found");
|
|
@@ -2554,7 +2569,7 @@ function gr() {
|
|
|
2554
2569
|
if (!o)
|
|
2555
2570
|
throw new Error("renderOfficialWebsite: closeButton not found");
|
|
2556
2571
|
return n.onclick = () => {
|
|
2557
|
-
e.classList.toggle(a.VISUALLY_HIDDEN), e.classList.contains(a.VISUALLY_HIDDEN) ?
|
|
2572
|
+
e.classList.toggle(a.VISUALLY_HIDDEN), e.classList.contains(a.VISUALLY_HIDDEN) ? un() : Tr();
|
|
2558
2573
|
const r = document.querySelectorAll(p(a.TOOLTIP__WRAPPER));
|
|
2559
2574
|
r == null || r.forEach((i) => {
|
|
2560
2575
|
i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN), i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE);
|
|
@@ -2564,45 +2579,45 @@ function gr() {
|
|
|
2564
2579
|
}, o.id || (o.id = R()), e.id || (e.id = R()), n.setAttribute("aria-controls", e.id), n.setAttribute("aria-expanded", "false"), e.setAttribute("aria-hidden", "true"), e.setAttribute("aria-labelledby", n.id), e;
|
|
2565
2580
|
}
|
|
2566
2581
|
function Mr(e) {
|
|
2567
|
-
var
|
|
2568
|
-
const { hamburger: t } =
|
|
2569
|
-
if ((
|
|
2582
|
+
var s, c;
|
|
2583
|
+
const { hamburger: t } = Oe("hookupHamburger"), n = L();
|
|
2584
|
+
if ((s = n.actionItems) == null ? void 0 : s.some((d) => !!d.badge)) {
|
|
2570
2585
|
const d = ht({ label: "Home Badge" });
|
|
2571
2586
|
d && t.appendChild(d);
|
|
2572
2587
|
}
|
|
2573
2588
|
Ve();
|
|
2574
2589
|
function r() {
|
|
2575
|
-
const d =
|
|
2590
|
+
const d = w(
|
|
2576
2591
|
/** @type {HTMLElement} */
|
|
2577
2592
|
document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
|
|
2578
2593
|
"hookupHamburger: no action items to select on mobile hamburger open"
|
|
2579
2594
|
), m = d.querySelector("button"), f = m == null ? void 0 : m.getAttribute("aria-controls");
|
|
2580
2595
|
return { actionItem: d, actionItemWrapper: f ? document.getElementById(f) : null };
|
|
2581
2596
|
}
|
|
2582
|
-
const i =
|
|
2597
|
+
const i = w(
|
|
2583
2598
|
/** @type {HTMLElement} */
|
|
2584
2599
|
document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],
|
|
2585
2600
|
"hookupHamburger: no action items to select on mobile hamburger open"
|
|
2586
|
-
), u = (c = i.querySelector) == null ? void 0 : c.call(i, "button"),
|
|
2587
|
-
if (!
|
|
2601
|
+
), u = (c = i.querySelector) == null ? void 0 : c.call(i, "button"), l = (u || i).getAttribute("id");
|
|
2602
|
+
if (!l)
|
|
2588
2603
|
throw new Error("mobileMenuInteractionHandler: actionItemId not found");
|
|
2589
2604
|
if (e) {
|
|
2590
2605
|
const d = e.getAttribute("id");
|
|
2591
2606
|
if (!d)
|
|
2592
2607
|
throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");
|
|
2593
|
-
(u || i).setAttribute("aria-controls", d), e.setAttribute("aria-labelledby",
|
|
2608
|
+
(u || i).setAttribute("aria-controls", d), e.setAttribute("aria-labelledby", l);
|
|
2594
2609
|
}
|
|
2595
2610
|
rt(
|
|
2596
2611
|
t,
|
|
2597
2612
|
() => r().actionItemWrapper,
|
|
2598
2613
|
() => r().actionItem,
|
|
2599
2614
|
{
|
|
2600
|
-
additionalOnClick: () =>
|
|
2615
|
+
additionalOnClick: () => un(),
|
|
2601
2616
|
ariaHasPopupType: "menu",
|
|
2602
2617
|
shouldOnClickCloseMenu: !0
|
|
2603
2618
|
}
|
|
2604
2619
|
), J(!!t.onblur, "hookupHamburger: hamburger already has an onblur event"), t.onblur = () => {
|
|
2605
|
-
const { mobileMenu: d } =
|
|
2620
|
+
const { mobileMenu: d } = Oe("showMobileMenu");
|
|
2606
2621
|
if (d.classList.contains(a.IS_OPEN)) {
|
|
2607
2622
|
const m = p(a.MOBILE_MENU__ACTION_BAR), f = p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER), h = p(a.ICON_BUTTON), _ = (
|
|
2608
2623
|
/** @type {HTMLElement | null} */
|
|
@@ -2610,13 +2625,13 @@ function Mr(e) {
|
|
|
2610
2625
|
);
|
|
2611
2626
|
_ == null || _.focus();
|
|
2612
2627
|
}
|
|
2613
|
-
}, (n.mainMenu || n.actionItems) && !n.onSearch && n.utahId === !1 && (
|
|
2628
|
+
}, (n.mainMenu || n.actionItems) && !n.onSearch && n.utahId === !1 && (w(
|
|
2614
2629
|
document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),
|
|
2615
2630
|
"hookupHamburger: citizen experience mobile not found"
|
|
2616
|
-
).appendChild(t),
|
|
2631
|
+
).appendChild(t), w(
|
|
2617
2632
|
document.querySelector(p(a.MAIN_MENU)),
|
|
2618
2633
|
"hookupHamburger: main menu not found"
|
|
2619
|
-
).classList.add(a.MOBILE__HIDDEN)), n.onSearch && !n.mainMenu &&
|
|
2634
|
+
).classList.add(a.MOBILE__HIDDEN)), n.onSearch && !n.mainMenu && w(
|
|
2620
2635
|
document.querySelector(p(a.MAIN_MENU)),
|
|
2621
2636
|
"renderMainMenu: main menu not found"
|
|
2622
2637
|
).classList.add(a.DESKTOP__HIDDEN);
|
|
@@ -2659,15 +2674,15 @@ const W = {
|
|
|
2659
2674
|
function Wt(e) {
|
|
2660
2675
|
var t, n;
|
|
2661
2676
|
if (e.isDefinitive) {
|
|
2662
|
-
|
|
2677
|
+
sn(e);
|
|
2663
2678
|
const o = (t = L()) == null ? void 0 : t.utahId;
|
|
2664
2679
|
typeof o == "object" && ((n = o.onAuthChanged) == null || n.call(o, e));
|
|
2665
2680
|
}
|
|
2666
2681
|
}
|
|
2667
2682
|
let kt = !0;
|
|
2668
|
-
const
|
|
2683
|
+
const Or = 500;
|
|
2669
2684
|
let Ft = NaN;
|
|
2670
|
-
async function
|
|
2685
|
+
async function dn() {
|
|
2671
2686
|
var o, r;
|
|
2672
2687
|
let e = Promise.resolve(W);
|
|
2673
2688
|
const t = L(), n = Ar(t.utahId);
|
|
@@ -2677,9 +2692,9 @@ async function un() {
|
|
|
2677
2692
|
clearTimeout(Ft), e = new Promise((i) => {
|
|
2678
2693
|
Ft = window.setTimeout(
|
|
2679
2694
|
() => {
|
|
2680
|
-
kt = !1,
|
|
2695
|
+
kt = !1, dn().then((u) => i(u)).catch((u) => console.error(u));
|
|
2681
2696
|
},
|
|
2682
|
-
|
|
2697
|
+
Or
|
|
2683
2698
|
);
|
|
2684
2699
|
});
|
|
2685
2700
|
else if (t.utahId === !1)
|
|
@@ -2707,7 +2722,7 @@ async function un() {
|
|
|
2707
2722
|
}
|
|
2708
2723
|
return xt = n, e;
|
|
2709
2724
|
}
|
|
2710
|
-
function
|
|
2725
|
+
function wr() {
|
|
2711
2726
|
return W;
|
|
2712
2727
|
}
|
|
2713
2728
|
function Lr() {
|
|
@@ -2743,21 +2758,21 @@ function yr(e, t) {
|
|
|
2743
2758
|
);
|
|
2744
2759
|
if (!u)
|
|
2745
2760
|
throw new Error("hookupHamburger: profileActionItemWrapper not found");
|
|
2746
|
-
const
|
|
2761
|
+
const l = ot(t);
|
|
2747
2762
|
rt(
|
|
2748
2763
|
o,
|
|
2749
|
-
|
|
2764
|
+
l,
|
|
2750
2765
|
u,
|
|
2751
2766
|
{
|
|
2752
2767
|
ariaHasPopupType: "menu",
|
|
2753
|
-
onClickHandler: (
|
|
2754
|
-
var f;
|
|
2755
|
-
const c =
|
|
2768
|
+
onClickHandler: (s) => {
|
|
2769
|
+
var f, h;
|
|
2770
|
+
const c = wr(), d = L();
|
|
2756
2771
|
let m = !1;
|
|
2757
2772
|
if (!(c != null && c.isDefinitive) || !((f = c == null ? void 0 : c.userInfo) != null && f.authenticated)) {
|
|
2758
2773
|
m = !0;
|
|
2759
|
-
const
|
|
2760
|
-
|
|
2774
|
+
const _ = d.utahId !== !1 && d.utahId !== !0 && ((h = d.utahId) == null ? void 0 : h.onSignIn);
|
|
2775
|
+
_ ? _(s) : (s.preventDefault(), s.stopPropagation(), window.location.href = Pe.SIGN_IN);
|
|
2761
2776
|
}
|
|
2762
2777
|
return m;
|
|
2763
2778
|
},
|
|
@@ -2784,24 +2799,26 @@ function Nr() {
|
|
|
2784
2799
|
`)];
|
|
2785
2800
|
t.forEach(
|
|
2786
2801
|
(r) => {
|
|
2787
|
-
r.onkeydown =
|
|
2802
|
+
r.onkeydown = /** @param {KeyboardEvent} draftE */
|
|
2803
|
+
(i) => {
|
|
2788
2804
|
(i.code === "Home" || i.code === "End" || i.code === "ArrowRight" || i.code === "ArrowLeft") && i.preventDefault();
|
|
2789
|
-
}, r.onkeyup =
|
|
2805
|
+
}, r.onkeyup = /** @param {KeyboardEvent} e */
|
|
2806
|
+
(i) => {
|
|
2790
2807
|
const u = t.indexOf(r);
|
|
2791
|
-
let
|
|
2792
|
-
if (i.code === "Home" ?
|
|
2808
|
+
let l = NaN;
|
|
2809
|
+
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)) {
|
|
2793
2810
|
i.preventDefault(), i.stopPropagation();
|
|
2794
|
-
const
|
|
2811
|
+
const s = t[l], c = (
|
|
2795
2812
|
/** @type {HTMLElement} */
|
|
2796
|
-
|
|
2813
|
+
s == null ? void 0 : s.closest(
|
|
2797
2814
|
p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)
|
|
2798
2815
|
)
|
|
2799
2816
|
);
|
|
2800
2817
|
if (!c)
|
|
2801
2818
|
throw new Error("hookupMobileActionItemKeyboarding: newWrapper not found... how in the blazes?!");
|
|
2802
|
-
const d =
|
|
2819
|
+
const d = s == null ? void 0 : s.getAttribute("aria-controls");
|
|
2803
2820
|
if (d && document.getElementById(d))
|
|
2804
|
-
|
|
2821
|
+
s == null || s.click();
|
|
2805
2822
|
else {
|
|
2806
2823
|
const h = (
|
|
2807
2824
|
/** @type {HTMLElement} */
|
|
@@ -2828,16 +2845,16 @@ function Nr() {
|
|
|
2828
2845
|
};
|
|
2829
2846
|
}
|
|
2830
2847
|
);
|
|
2831
|
-
const n =
|
|
2848
|
+
const n = w(
|
|
2832
2849
|
document.querySelector(p(a.MOBILE_MENU__LAST_FOCUSABLE)),
|
|
2833
2850
|
"hookupMobileActionItemKeyboarding: hiddenLastFocusableButton not found"
|
|
2834
|
-
), { hamburger: o } =
|
|
2851
|
+
), { hamburger: o } = Oe("hookupMobileActionItemKeyboarding");
|
|
2835
2852
|
n.addEventListener("focusin", (r) => {
|
|
2836
2853
|
r.preventDefault(), r.stopPropagation(), o.focus();
|
|
2837
2854
|
});
|
|
2838
2855
|
}
|
|
2839
2856
|
function Sr() {
|
|
2840
|
-
const e =
|
|
2857
|
+
const e = bn.replace(a.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER, `${L().mediaSizes.tabletPortrait}px`).replace(a.MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER, `${L().mediaSizes.tabletLandscape}px`).replace(a.MEDIA_SIZE__MOBILE__PLACEHOLDER, `${L().mediaSizes.mobile}px`);
|
|
2841
2858
|
let t = document.getElementById(a.CSS_HEADER_MEDIA_TAG_ID);
|
|
2842
2859
|
t || (t = document.createElement("style"), t.id = a.CSS_HEADER_MEDIA_TAG_ID), t.innerHTML = e, document.body.appendChild(t);
|
|
2843
2860
|
}
|
|
@@ -2863,7 +2880,7 @@ function Ur() {
|
|
|
2863
2880
|
else
|
|
2864
2881
|
throw new Error("loadHeader: domLocationTarget must have at least one field set");
|
|
2865
2882
|
}
|
|
2866
|
-
return
|
|
2883
|
+
return w(t, "loadHeader: domTarget is null (how?!)");
|
|
2867
2884
|
}
|
|
2868
2885
|
function Cr() {
|
|
2869
2886
|
var t;
|
|
@@ -2874,23 +2891,23 @@ function Cr() {
|
|
|
2874
2891
|
n.after(r);
|
|
2875
2892
|
const { mainMenuWrapper: i, utahIdPopup: u } = br();
|
|
2876
2893
|
i && r.after(i);
|
|
2877
|
-
const
|
|
2878
|
-
r.after(
|
|
2879
|
-
const
|
|
2894
|
+
const l = I(In);
|
|
2895
|
+
r.after(l);
|
|
2896
|
+
const s = (
|
|
2880
2897
|
/** @type {HTMLElement} */
|
|
2881
2898
|
document.querySelector(p(a.MOBILE_MENU__BACKDROP))
|
|
2882
2899
|
);
|
|
2883
|
-
if (!
|
|
2900
|
+
if (!s)
|
|
2884
2901
|
throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");
|
|
2885
|
-
if (
|
|
2902
|
+
if (s.onclick)
|
|
2886
2903
|
throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");
|
|
2887
|
-
|
|
2888
|
-
const c = Pr(), d =
|
|
2904
|
+
s.onclick = () => Ve();
|
|
2905
|
+
const c = Pr(), d = an(c, "Main Menu");
|
|
2889
2906
|
d.appendChild(c);
|
|
2890
2907
|
const m = ot(d);
|
|
2891
|
-
Mr(m), u ? ((t = u.closest("div")) == null || t.removeAttribute("aria-labelledby"), yr(
|
|
2908
|
+
Mr(m), u ? ((t = u.closest("div")) == null || t.removeAttribute("aria-labelledby"), yr(l, u)) : Lr(), $o(), Nr(), Ho(), Sr(), dn().catch((h) => console.error(h));
|
|
2892
2909
|
const f = L();
|
|
2893
|
-
(!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) && (
|
|
2910
|
+
(!f.mainMenu && !f.actionItems && f.utahId === !1 && !f.onSearch || !f.mainMenu && !f.actionItems && f.utahId === !1 && f.onSearch || !f.mainMenu && f.actionItems && f.utahId === !1 && !f.onSearch) && (l.classList.add(a.MAIN_MENU__REMOVED), i.remove()), (!f.mainMenu && !f.actionItems && f.utahId && !f.onSearch || !f.mainMenu && f.actionItems && f.utahId && !f.onSearch || !f.mainMenu && f.actionItems && !f.utahId && f.onSearch) && i.classList.add(a.DESKTOP__HIDDEN);
|
|
2894
2911
|
}
|
|
2895
2912
|
zo();
|
|
2896
2913
|
}
|
|
@@ -2901,17 +2918,17 @@ function Rr(e) {
|
|
|
2901
2918
|
function qt() {
|
|
2902
2919
|
Rr(!1), Cr();
|
|
2903
2920
|
}
|
|
2904
|
-
let
|
|
2921
|
+
let pn = !1;
|
|
2905
2922
|
const Dr = 15e3;
|
|
2906
2923
|
let Vt = 0;
|
|
2907
2924
|
const Br = setInterval(
|
|
2908
2925
|
() => {
|
|
2909
|
-
Vt += 1, Vt >= Dr ||
|
|
2926
|
+
Vt += 1, Vt >= Dr || pn ? clearInterval(Br) : document.dispatchEvent(new Event($t.HEADER_LOADED));
|
|
2910
2927
|
},
|
|
2911
2928
|
2
|
|
2912
2929
|
);
|
|
2913
2930
|
function Hr(e) {
|
|
2914
|
-
return ke.setSettings(e),
|
|
2931
|
+
return ke.setSettings(e), pn = !0, document != null && document.body ? qt() : window.addEventListener("load", () => qt()), ke.getSettings();
|
|
2915
2932
|
}
|
|
2916
2933
|
function xr(e) {
|
|
2917
2934
|
return Hr({ ...Ze, ...ke.getSettings(), footer: e });
|