@utahdts/utah-design-system-header 5.0.1 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +94 -0
- package/dist/utah-design-system-header.es.js +631 -611
- package/dist/utah-design-system-header.umd.js +39 -19
- package/package.json +1 -1
|
@@ -295,14 +295,14 @@ function x() {
|
|
|
295
295
|
let { hamburger: e, hamburgerIcon: t, mobileMenu: n } = b("hideMobileMenu");
|
|
296
296
|
e?.setAttribute("aria-expanded", "false"), n.classList.remove(o.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"), document.body.style.position = "";
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function ee() {
|
|
299
299
|
document.querySelector(a(o.MAIN_MENU))?.classList.contains(o.MOBILE__HIDDEN) && document.querySelector(`${a(o.UTAH_DESIGN_SYSTEM)}${a(o.MOBILE_MENU)}`)?.classList.add(o.MAIN_MENU__REMOVED);
|
|
300
300
|
let { hamburger: e, hamburgerIcon: t, mobileMenu: n } = b("showMobileMenu");
|
|
301
301
|
e?.setAttribute("aria-expanded", "true"), n.classList.add(o.IS_OPEN), e?.setAttribute("aria-label", "Close the mobile menu"), t?.classList.remove("utds-icon-before-hamburger"), t?.classList.add("utds-icon-before-x-icon"), document.body.style.position = "relative";
|
|
302
302
|
}
|
|
303
303
|
//#endregion
|
|
304
304
|
//#region src/js/renderables/mobile/mobileMenuInteractionHandler.js
|
|
305
|
-
function
|
|
305
|
+
function S(e, t) {
|
|
306
306
|
e.querySelectorAll(a(o.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)).forEach((e) => {
|
|
307
307
|
e.classList.remove(o.ACTION_ITEM__SELECTED);
|
|
308
308
|
let t = e.querySelector("button");
|
|
@@ -313,46 +313,47 @@ function C(e, t) {
|
|
|
313
313
|
if (!n) throw Error("showActionItem: actionWrapper does not have actionItem B");
|
|
314
314
|
n.setAttribute("aria-selected", "true"), n.removeAttribute("tabIndex"), n.focus();
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function C(e, t) {
|
|
317
317
|
e.querySelectorAll(a(o.MOBILE_MENU__CONTENT_ITEM)).forEach((e) => e.classList.remove(o.IS_OPEN)), t.classList.add(o.IS_OPEN);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function w(e, t, n, { ariaHasPopupType: r, additionalOnClick: i, onClickHandler: s, shouldOnClickCloseMenu: c }) {
|
|
320
|
+
let l = h();
|
|
320
321
|
if (t && !r) throw Error("mobileMenuInteractionHandler: there is content, but the aria type is not given");
|
|
321
|
-
let
|
|
322
|
-
if (!
|
|
323
|
-
let
|
|
324
|
-
if (!
|
|
325
|
-
let
|
|
326
|
-
if (!
|
|
327
|
-
let
|
|
328
|
-
if (!
|
|
329
|
-
if (t) {
|
|
322
|
+
let u = document.querySelector(a(o.MOBILE_MENU));
|
|
323
|
+
if (!u) throw Error("mobileMenuInteractionHandler: mobileMenu not found");
|
|
324
|
+
let d = document.querySelector(a(o.MOBILE_MENU__WRAPPER));
|
|
325
|
+
if (!d) throw Error("mobileMenuInteractionHandler: mobileMenuWrapper not found");
|
|
326
|
+
let f = d.querySelector(a(o.MOBILE_MENU__CONTENT));
|
|
327
|
+
if (!f) throw Error("mobileMenuInteractionHandler: mobileContentWrapper not found");
|
|
328
|
+
let p = y(n), m = y(n)?.querySelector?.("button"), g = (m || e).getAttribute("id");
|
|
329
|
+
if (!g) throw Error("mobileMenuInteractionHandler: interactiveElementId not found");
|
|
330
|
+
if (t && l.mainMenu) {
|
|
330
331
|
let n = y(t);
|
|
331
332
|
if (n) {
|
|
332
333
|
let t = n.getAttribute("id");
|
|
333
334
|
if (!t) throw Error("mobileMenuInteractionHandler: mobileMenuContentId not found");
|
|
334
|
-
(
|
|
335
|
+
(m || e).setAttribute("aria-controls", t), n.setAttribute("aria-labelledby", g);
|
|
335
336
|
}
|
|
336
337
|
}
|
|
337
338
|
if (e.onclick) throw Error("mobileMenuInteractionHandler: interactiveElement already has onclick");
|
|
338
339
|
if (e.onclick = (e) => {
|
|
339
|
-
if (!s?.(e)) if (i?.(e),
|
|
340
|
+
if (!s?.(e)) if (i?.(e), u.classList.contains(o.IS_OPEN)) c && x();
|
|
340
341
|
else {
|
|
341
|
-
|
|
342
|
+
ee();
|
|
342
343
|
let e = y(t);
|
|
343
|
-
e &&
|
|
344
|
+
e && C(f, e), S(d, y(n));
|
|
344
345
|
}
|
|
345
346
|
}, t) {
|
|
346
|
-
if (
|
|
347
|
-
|
|
347
|
+
if (p !== e && p.onclick) throw Error("mobileMenuInteractionHandler: actionItemWrapperValue already has onclick");
|
|
348
|
+
p.onclick = (e) => {
|
|
348
349
|
if (!s?.(e)) {
|
|
349
350
|
let e = y(t);
|
|
350
|
-
e &&
|
|
351
|
+
e && C(f, e), S(d, y(n));
|
|
351
352
|
}
|
|
352
353
|
};
|
|
353
354
|
}
|
|
354
355
|
}
|
|
355
|
-
var
|
|
356
|
+
var T = new class {
|
|
356
357
|
#e = {
|
|
357
358
|
notifications: null,
|
|
358
359
|
isBusy: !1
|
|
@@ -369,75 +370,75 @@ var E = new class {
|
|
|
369
370
|
...e
|
|
370
371
|
};
|
|
371
372
|
}
|
|
372
|
-
}({}),
|
|
373
|
+
}({}), E = Math.min, D = Math.max, O = Math.round, k = Math.floor, A = (e) => ({
|
|
373
374
|
x: e,
|
|
374
375
|
y: e
|
|
375
|
-
}),
|
|
376
|
+
}), te = {
|
|
376
377
|
left: "right",
|
|
377
378
|
right: "left",
|
|
378
379
|
bottom: "top",
|
|
379
380
|
top: "bottom"
|
|
380
381
|
};
|
|
381
|
-
function
|
|
382
|
-
return
|
|
382
|
+
function ne(e, t, n) {
|
|
383
|
+
return D(e, E(t, n));
|
|
383
384
|
}
|
|
384
|
-
function
|
|
385
|
+
function j(e, t) {
|
|
385
386
|
return typeof e == "function" ? e(t) : e;
|
|
386
387
|
}
|
|
387
|
-
function
|
|
388
|
+
function M(e) {
|
|
388
389
|
return e.split("-")[0];
|
|
389
390
|
}
|
|
390
|
-
function
|
|
391
|
+
function re(e) {
|
|
391
392
|
return e.split("-")[1];
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
+
function ie(e) {
|
|
394
395
|
return e === "x" ? "y" : "x";
|
|
395
396
|
}
|
|
396
|
-
function
|
|
397
|
+
function ae(e) {
|
|
397
398
|
return e === "y" ? "height" : "width";
|
|
398
399
|
}
|
|
399
|
-
function
|
|
400
|
+
function N(e) {
|
|
400
401
|
let t = e[0];
|
|
401
402
|
return t === "t" || t === "b" ? "y" : "x";
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
-
return
|
|
404
|
+
function oe(e) {
|
|
405
|
+
return ie(N(e));
|
|
405
406
|
}
|
|
406
|
-
function
|
|
407
|
+
function se(e, t, n) {
|
|
407
408
|
n === void 0 && (n = !1);
|
|
408
|
-
let r =
|
|
409
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
409
|
+
let r = re(e), i = oe(e), a = ae(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
410
|
+
return t.reference[a] > t.floating[a] && (o = ge(o)), [o, ge(o)];
|
|
410
411
|
}
|
|
411
|
-
function
|
|
412
|
-
let t =
|
|
412
|
+
function ce(e) {
|
|
413
|
+
let t = ge(e);
|
|
413
414
|
return [
|
|
414
|
-
|
|
415
|
+
le(e),
|
|
415
416
|
t,
|
|
416
|
-
|
|
417
|
+
le(t)
|
|
417
418
|
];
|
|
418
419
|
}
|
|
419
|
-
function
|
|
420
|
+
function le(e) {
|
|
420
421
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
421
422
|
}
|
|
422
|
-
var
|
|
423
|
-
function
|
|
423
|
+
var ue = ["left", "right"], de = ["right", "left"], fe = ["top", "bottom"], pe = ["bottom", "top"];
|
|
424
|
+
function me(e, t, n) {
|
|
424
425
|
switch (e) {
|
|
425
426
|
case "top":
|
|
426
|
-
case "bottom": return n ? t ?
|
|
427
|
+
case "bottom": return n ? t ? de : ue : t ? ue : de;
|
|
427
428
|
case "left":
|
|
428
|
-
case "right": return t ?
|
|
429
|
+
case "right": return t ? fe : pe;
|
|
429
430
|
default: return [];
|
|
430
431
|
}
|
|
431
432
|
}
|
|
432
|
-
function
|
|
433
|
-
let i =
|
|
434
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
435
|
-
}
|
|
436
|
-
function he(e) {
|
|
437
|
-
let t = N(e);
|
|
438
|
-
return ee[t] + e.slice(t.length);
|
|
433
|
+
function he(e, t, n, r) {
|
|
434
|
+
let i = re(e), a = me(M(e), n === "start", r);
|
|
435
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(le)))), a;
|
|
439
436
|
}
|
|
440
437
|
function ge(e) {
|
|
438
|
+
let t = M(e);
|
|
439
|
+
return te[t] + e.slice(t.length);
|
|
440
|
+
}
|
|
441
|
+
function _e(e) {
|
|
441
442
|
return {
|
|
442
443
|
top: 0,
|
|
443
444
|
right: 0,
|
|
@@ -446,15 +447,15 @@ function ge(e) {
|
|
|
446
447
|
...e
|
|
447
448
|
};
|
|
448
449
|
}
|
|
449
|
-
function
|
|
450
|
+
function ve(e) {
|
|
450
451
|
return typeof e == "number" ? {
|
|
451
452
|
top: e,
|
|
452
453
|
right: e,
|
|
453
454
|
bottom: e,
|
|
454
455
|
left: e
|
|
455
|
-
} :
|
|
456
|
+
} : _e(e);
|
|
456
457
|
}
|
|
457
|
-
function
|
|
458
|
+
function ye(e) {
|
|
458
459
|
let { x: t, y: n, width: r, height: i } = e;
|
|
459
460
|
return {
|
|
460
461
|
width: r,
|
|
@@ -469,8 +470,8 @@ function ve(e) {
|
|
|
469
470
|
}
|
|
470
471
|
//#endregion
|
|
471
472
|
//#region ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
472
|
-
function
|
|
473
|
-
let { reference: r, floating: i } = e, a =
|
|
473
|
+
function be(e, t, n) {
|
|
474
|
+
let { reference: r, floating: i } = e, a = N(t), o = oe(t), s = ae(o), c = M(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
474
475
|
switch (c) {
|
|
475
476
|
case "top":
|
|
476
477
|
p = {
|
|
@@ -501,7 +502,7 @@ function ye(e, t, n) {
|
|
|
501
502
|
y: r.y
|
|
502
503
|
};
|
|
503
504
|
}
|
|
504
|
-
switch (
|
|
505
|
+
switch (re(t)) {
|
|
505
506
|
case "start":
|
|
506
507
|
p[o] -= f * (n && l ? -1 : 1);
|
|
507
508
|
break;
|
|
@@ -511,9 +512,9 @@ function ye(e, t, n) {
|
|
|
511
512
|
}
|
|
512
513
|
return p;
|
|
513
514
|
}
|
|
514
|
-
async function
|
|
515
|
+
async function xe(e, t) {
|
|
515
516
|
t === void 0 && (t = {});
|
|
516
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
517
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = j(t, e), p = ve(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = ye(await i.getClippingRect({
|
|
517
518
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
518
519
|
boundary: c,
|
|
519
520
|
rootBoundary: l,
|
|
@@ -526,7 +527,7 @@ async function be(e, t) {
|
|
|
526
527
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
527
528
|
x: 1,
|
|
528
529
|
y: 1
|
|
529
|
-
}, y =
|
|
530
|
+
}, y = ye(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
530
531
|
elements: o,
|
|
531
532
|
rect: g,
|
|
532
533
|
offsetParent: _,
|
|
@@ -539,15 +540,15 @@ async function be(e, t) {
|
|
|
539
540
|
right: (y.right - h.right + p.right) / v.x
|
|
540
541
|
};
|
|
541
542
|
}
|
|
542
|
-
var
|
|
543
|
+
var Se = 50, Ce = async (e, t, n) => {
|
|
543
544
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
544
545
|
...o,
|
|
545
|
-
detectOverflow:
|
|
546
|
+
detectOverflow: xe
|
|
546
547
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
547
548
|
reference: e,
|
|
548
549
|
floating: t,
|
|
549
550
|
strategy: i
|
|
550
|
-
}), { x: u, y: d } =
|
|
551
|
+
}), { x: u, y: d } = be(l, r, c), f = r, p = 0, m = {};
|
|
551
552
|
for (let n = 0; n < a.length; n++) {
|
|
552
553
|
let h = a[n];
|
|
553
554
|
if (!h) continue;
|
|
@@ -568,11 +569,11 @@ var xe = 50, Se = async (e, t, n) => {
|
|
|
568
569
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
569
570
|
...m[g],
|
|
570
571
|
...b
|
|
571
|
-
}, x && p <
|
|
572
|
+
}, x && p < Se && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
572
573
|
reference: e,
|
|
573
574
|
floating: t,
|
|
574
575
|
strategy: i
|
|
575
|
-
}) : x.rects), {x: u, y: d} =
|
|
576
|
+
}) : x.rects), {x: u, y: d} = be(l, f, c)), n = -1);
|
|
576
577
|
}
|
|
577
578
|
return {
|
|
578
579
|
x: u,
|
|
@@ -581,61 +582,61 @@ var xe = 50, Se = async (e, t, n) => {
|
|
|
581
582
|
strategy: i,
|
|
582
583
|
middlewareData: m
|
|
583
584
|
};
|
|
584
|
-
},
|
|
585
|
+
}, we = (e) => ({
|
|
585
586
|
name: "arrow",
|
|
586
587
|
options: e,
|
|
587
588
|
async fn(t) {
|
|
588
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
589
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = j(e, t) || {};
|
|
589
590
|
if (l == null) return {};
|
|
590
|
-
let d =
|
|
591
|
+
let d = ve(u), f = {
|
|
591
592
|
x: n,
|
|
592
593
|
y: r
|
|
593
|
-
}, p =
|
|
594
|
-
(!
|
|
595
|
-
let
|
|
594
|
+
}, p = oe(i), m = ae(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], ee = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), S = ee ? ee[y] : 0;
|
|
595
|
+
(!S || !await (o.isElement == null ? void 0 : o.isElement(ee))) && (S = s.floating[y] || a.floating[m]);
|
|
596
|
+
let C = b / 2 - x / 2, w = S / 2 - h[m] / 2 - 1, T = E(d[_], w), D = E(d[v], w), O = T, k = S - h[m] - D, A = S / 2 - h[m] / 2 + C, te = ne(O, A, k), M = !c.arrow && re(i) != null && A !== te && a.reference[m] / 2 - (A < O ? T : D) - h[m] / 2 < 0, ie = M ? A < O ? A - O : A - k : 0;
|
|
596
597
|
return {
|
|
597
|
-
[p]: f[p] +
|
|
598
|
+
[p]: f[p] + ie,
|
|
598
599
|
data: {
|
|
599
|
-
[p]:
|
|
600
|
-
centerOffset:
|
|
601
|
-
...
|
|
600
|
+
[p]: te,
|
|
601
|
+
centerOffset: A - te - ie,
|
|
602
|
+
...M && { alignmentOffset: ie }
|
|
602
603
|
},
|
|
603
|
-
reset:
|
|
604
|
+
reset: M
|
|
604
605
|
};
|
|
605
606
|
}
|
|
606
|
-
}),
|
|
607
|
+
}), Te = function(e) {
|
|
607
608
|
return e === void 0 && (e = {}), {
|
|
608
609
|
name: "flip",
|
|
609
610
|
options: e,
|
|
610
611
|
async fn(t) {
|
|
611
612
|
var n;
|
|
612
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
613
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = j(e, t);
|
|
613
614
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
614
|
-
let g =
|
|
615
|
-
!d && x && b.push(...
|
|
616
|
-
let
|
|
617
|
-
if (l &&
|
|
618
|
-
let e =
|
|
619
|
-
|
|
615
|
+
let g = M(r), _ = N(o), v = M(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [ge(o)] : ce(o)), x = p !== "none";
|
|
616
|
+
!d && x && b.push(...he(o, m, p, y));
|
|
617
|
+
let ee = [o, ...b], S = await s.detectOverflow(t, h), C = [], w = i.flip?.overflows || [];
|
|
618
|
+
if (l && C.push(S[g]), u) {
|
|
619
|
+
let e = se(r, a, y);
|
|
620
|
+
C.push(S[e[0]], S[e[1]]);
|
|
620
621
|
}
|
|
621
|
-
if (
|
|
622
|
+
if (w = [...w, {
|
|
622
623
|
placement: r,
|
|
623
|
-
overflows:
|
|
624
|
-
}], !
|
|
625
|
-
let e = (i.flip?.index || 0) + 1, t =
|
|
626
|
-
if (t && (!(u === "alignment" && _ !==
|
|
624
|
+
overflows: C
|
|
625
|
+
}], !C.every((e) => e <= 0)) {
|
|
626
|
+
let e = (i.flip?.index || 0) + 1, t = ee[e];
|
|
627
|
+
if (t && (!(u === "alignment" && _ !== N(t)) || w.every((e) => N(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
627
628
|
data: {
|
|
628
629
|
index: e,
|
|
629
|
-
overflows:
|
|
630
|
+
overflows: w
|
|
630
631
|
},
|
|
631
632
|
reset: { placement: t }
|
|
632
633
|
};
|
|
633
|
-
let n =
|
|
634
|
+
let n = w.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
634
635
|
if (!n) switch (f) {
|
|
635
636
|
case "bestFit": {
|
|
636
|
-
let e =
|
|
637
|
+
let e = w.filter((e) => {
|
|
637
638
|
if (x) {
|
|
638
|
-
let t =
|
|
639
|
+
let t = N(e.placement);
|
|
639
640
|
return t === _ || t === "y";
|
|
640
641
|
}
|
|
641
642
|
return !0;
|
|
@@ -652,9 +653,9 @@ var xe = 50, Se = async (e, t, n) => {
|
|
|
652
653
|
return {};
|
|
653
654
|
}
|
|
654
655
|
};
|
|
655
|
-
},
|
|
656
|
-
async function
|
|
657
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
656
|
+
}, Ee = /* @__PURE__ */ new Set(["left", "top"]);
|
|
657
|
+
async function De(e, t) {
|
|
658
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = M(n), s = re(n), c = N(n) === "y", l = Ee.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = j(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
658
659
|
mainAxis: d,
|
|
659
660
|
crossAxis: 0,
|
|
660
661
|
alignmentAxis: null
|
|
@@ -671,13 +672,13 @@ async function Ee(e, t) {
|
|
|
671
672
|
y: p * u
|
|
672
673
|
};
|
|
673
674
|
}
|
|
674
|
-
var
|
|
675
|
+
var Oe = function(e) {
|
|
675
676
|
return e === void 0 && (e = 0), {
|
|
676
677
|
name: "offset",
|
|
677
678
|
options: e,
|
|
678
679
|
async fn(t) {
|
|
679
680
|
var n;
|
|
680
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
681
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await De(t, e);
|
|
681
682
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
682
683
|
x: r + s.x,
|
|
683
684
|
y: i + s.y,
|
|
@@ -688,7 +689,7 @@ var De = function(e) {
|
|
|
688
689
|
};
|
|
689
690
|
}
|
|
690
691
|
};
|
|
691
|
-
},
|
|
692
|
+
}, ke = function(e) {
|
|
692
693
|
return e === void 0 && (e = {}), {
|
|
693
694
|
name: "shift",
|
|
694
695
|
options: e,
|
|
@@ -699,17 +700,17 @@ var De = function(e) {
|
|
|
699
700
|
x: t,
|
|
700
701
|
y: n
|
|
701
702
|
};
|
|
702
|
-
} }, ...l } =
|
|
703
|
+
} }, ...l } = j(e, t), u = {
|
|
703
704
|
x: n,
|
|
704
705
|
y: r
|
|
705
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
706
|
+
}, d = await a.detectOverflow(t, l), f = N(M(i)), p = ie(f), m = u[p], h = u[f];
|
|
706
707
|
if (o) {
|
|
707
708
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
708
|
-
m =
|
|
709
|
+
m = ne(n, m, r);
|
|
709
710
|
}
|
|
710
711
|
if (s) {
|
|
711
712
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
712
|
-
h =
|
|
713
|
+
h = ne(n, h, r);
|
|
713
714
|
}
|
|
714
715
|
let g = c.fn({
|
|
715
716
|
...t,
|
|
@@ -732,39 +733,39 @@ var De = function(e) {
|
|
|
732
733
|
};
|
|
733
734
|
//#endregion
|
|
734
735
|
//#region ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
735
|
-
function
|
|
736
|
+
function Ae() {
|
|
736
737
|
return typeof window < "u";
|
|
737
738
|
}
|
|
738
|
-
function
|
|
739
|
-
return
|
|
739
|
+
function P(e) {
|
|
740
|
+
return je(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
740
741
|
}
|
|
741
|
-
function
|
|
742
|
+
function F(e) {
|
|
742
743
|
var t;
|
|
743
744
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
744
745
|
}
|
|
745
|
-
function
|
|
746
|
-
return ((
|
|
746
|
+
function I(e) {
|
|
747
|
+
return ((je(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
747
748
|
}
|
|
748
|
-
function
|
|
749
|
-
return
|
|
749
|
+
function je(e) {
|
|
750
|
+
return Ae() ? e instanceof Node || e instanceof F(e).Node : !1;
|
|
750
751
|
}
|
|
751
|
-
function
|
|
752
|
-
return
|
|
752
|
+
function L(e) {
|
|
753
|
+
return Ae() ? e instanceof Element || e instanceof F(e).Element : !1;
|
|
753
754
|
}
|
|
754
|
-
function
|
|
755
|
-
return
|
|
755
|
+
function R(e) {
|
|
756
|
+
return Ae() ? e instanceof HTMLElement || e instanceof F(e).HTMLElement : !1;
|
|
756
757
|
}
|
|
757
|
-
function
|
|
758
|
-
return !
|
|
758
|
+
function Me(e) {
|
|
759
|
+
return !Ae() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof F(e).ShadowRoot;
|
|
759
760
|
}
|
|
760
|
-
function
|
|
761
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } =
|
|
761
|
+
function z(e) {
|
|
762
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = H(e);
|
|
762
763
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
763
764
|
}
|
|
764
|
-
function Me(e) {
|
|
765
|
-
return /^(table|td|th)$/.test(F(e));
|
|
766
|
-
}
|
|
767
765
|
function Ne(e) {
|
|
766
|
+
return /^(table|td|th)$/.test(P(e));
|
|
767
|
+
}
|
|
768
|
+
function Pe(e) {
|
|
768
769
|
try {
|
|
769
770
|
if (e.matches(":popover-open")) return !0;
|
|
770
771
|
} catch {}
|
|
@@ -774,31 +775,31 @@ function Ne(e) {
|
|
|
774
775
|
return !1;
|
|
775
776
|
}
|
|
776
777
|
}
|
|
777
|
-
var
|
|
778
|
-
function Le(e) {
|
|
779
|
-
let t = R(e) ? U(e) : e;
|
|
780
|
-
return V(t.transform) || V(t.translate) || V(t.scale) || V(t.rotate) || V(t.perspective) || !ze() && (V(t.backdropFilter) || V(t.filter)) || Pe.test(t.willChange || "") || Fe.test(t.contain || "");
|
|
781
|
-
}
|
|
778
|
+
var Fe = /transform|translate|scale|rotate|perspective|filter/, Ie = /paint|layout|strict|content/, B = (e) => !!e && e !== "none", Le;
|
|
782
779
|
function Re(e) {
|
|
783
|
-
let t =
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
780
|
+
let t = L(e) ? H(e) : e;
|
|
781
|
+
return B(t.transform) || B(t.translate) || B(t.scale) || B(t.rotate) || B(t.perspective) || !Be() && (B(t.backdropFilter) || B(t.filter)) || Fe.test(t.willChange || "") || Ie.test(t.contain || "");
|
|
782
|
+
}
|
|
783
|
+
function ze(e) {
|
|
784
|
+
let t = U(e);
|
|
785
|
+
for (; R(t) && !V(t);) {
|
|
786
|
+
if (Re(t)) return t;
|
|
787
|
+
if (Pe(t)) return null;
|
|
788
|
+
t = U(t);
|
|
788
789
|
}
|
|
789
790
|
return null;
|
|
790
791
|
}
|
|
791
|
-
function
|
|
792
|
-
return
|
|
792
|
+
function Be() {
|
|
793
|
+
return Le ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Le;
|
|
793
794
|
}
|
|
794
|
-
function
|
|
795
|
-
return /^(html|body|#document)$/.test(
|
|
795
|
+
function V(e) {
|
|
796
|
+
return /^(html|body|#document)$/.test(P(e));
|
|
796
797
|
}
|
|
797
|
-
function
|
|
798
|
-
return
|
|
798
|
+
function H(e) {
|
|
799
|
+
return F(e).getComputedStyle(e);
|
|
799
800
|
}
|
|
800
|
-
function
|
|
801
|
-
return
|
|
801
|
+
function Ve(e) {
|
|
802
|
+
return L(e) ? {
|
|
802
803
|
scrollLeft: e.scrollLeft,
|
|
803
804
|
scrollTop: e.scrollTop
|
|
804
805
|
} : {
|
|
@@ -806,101 +807,101 @@ function Be(e) {
|
|
|
806
807
|
scrollTop: e.scrollY
|
|
807
808
|
};
|
|
808
809
|
}
|
|
809
|
-
function
|
|
810
|
-
if (
|
|
811
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
812
|
-
return
|
|
810
|
+
function U(e) {
|
|
811
|
+
if (P(e) === "html") return e;
|
|
812
|
+
let t = e.assignedSlot || e.parentNode || Me(e) && e.host || I(e);
|
|
813
|
+
return Me(t) ? t.host : t;
|
|
813
814
|
}
|
|
814
|
-
function
|
|
815
|
-
let t =
|
|
816
|
-
return
|
|
815
|
+
function He(e) {
|
|
816
|
+
let t = U(e);
|
|
817
|
+
return V(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : R(t) && z(t) ? t : He(t);
|
|
817
818
|
}
|
|
818
|
-
function
|
|
819
|
+
function Ue(e, t, n) {
|
|
819
820
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
820
|
-
let r =
|
|
821
|
+
let r = He(e), i = r === e.ownerDocument?.body, a = F(r);
|
|
821
822
|
if (i) {
|
|
822
|
-
let e =
|
|
823
|
-
return t.concat(a, a.visualViewport || [],
|
|
824
|
-
} else return t.concat(r,
|
|
823
|
+
let e = We(a);
|
|
824
|
+
return t.concat(a, a.visualViewport || [], z(r) ? r : [], e && n ? Ue(e) : []);
|
|
825
|
+
} else return t.concat(r, Ue(r, [], n));
|
|
825
826
|
}
|
|
826
|
-
function
|
|
827
|
+
function We(e) {
|
|
827
828
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
828
829
|
}
|
|
829
830
|
//#endregion
|
|
830
831
|
//#region ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
831
|
-
function
|
|
832
|
-
let t =
|
|
832
|
+
function Ge(e) {
|
|
833
|
+
let t = H(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = R(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = O(n) !== a || O(r) !== o;
|
|
833
834
|
return s && (n = a, r = o), {
|
|
834
835
|
width: n,
|
|
835
836
|
height: r,
|
|
836
837
|
$: s
|
|
837
838
|
};
|
|
838
839
|
}
|
|
839
|
-
function
|
|
840
|
-
return
|
|
840
|
+
function Ke(e) {
|
|
841
|
+
return L(e) ? e : e.contextElement;
|
|
841
842
|
}
|
|
842
|
-
function
|
|
843
|
-
let t =
|
|
844
|
-
if (!
|
|
845
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
843
|
+
function W(e) {
|
|
844
|
+
let t = Ke(e);
|
|
845
|
+
if (!R(t)) return A(1);
|
|
846
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Ge(t), o = (a ? O(n.width) : n.width) / r, s = (a ? O(n.height) : n.height) / i;
|
|
846
847
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
847
848
|
x: o,
|
|
848
849
|
y: s
|
|
849
850
|
};
|
|
850
851
|
}
|
|
851
|
-
var
|
|
852
|
-
function
|
|
853
|
-
let t =
|
|
854
|
-
return !
|
|
852
|
+
var qe = /* @__PURE__ */ A(0);
|
|
853
|
+
function Je(e) {
|
|
854
|
+
let t = F(e);
|
|
855
|
+
return !Be() || !t.visualViewport ? qe : {
|
|
855
856
|
x: t.visualViewport.offsetLeft,
|
|
856
857
|
y: t.visualViewport.offsetTop
|
|
857
858
|
};
|
|
858
859
|
}
|
|
859
|
-
function
|
|
860
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
860
|
+
function Ye(e, t, n) {
|
|
861
|
+
return t === void 0 && (t = !1), !n || t && n !== F(e) ? !1 : t;
|
|
861
862
|
}
|
|
862
|
-
function
|
|
863
|
+
function G(e, t, n, r) {
|
|
863
864
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
864
|
-
let i = e.getBoundingClientRect(), a =
|
|
865
|
-
t && (r ?
|
|
866
|
-
let s =
|
|
865
|
+
let i = e.getBoundingClientRect(), a = Ke(e), o = A(1);
|
|
866
|
+
t && (r ? L(r) && (o = W(r)) : o = W(e));
|
|
867
|
+
let s = Ye(a, n, r) ? Je(a) : A(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
867
868
|
if (a) {
|
|
868
|
-
let e =
|
|
869
|
+
let e = F(a), t = r && L(r) ? F(r) : r, n = e, i = We(n);
|
|
869
870
|
for (; i && r && t !== n;) {
|
|
870
|
-
let e =
|
|
871
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
871
|
+
let e = W(i), t = i.getBoundingClientRect(), r = H(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
872
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = F(i), i = We(n);
|
|
872
873
|
}
|
|
873
874
|
}
|
|
874
|
-
return
|
|
875
|
+
return ye({
|
|
875
876
|
width: u,
|
|
876
877
|
height: d,
|
|
877
878
|
x: c,
|
|
878
879
|
y: l
|
|
879
880
|
});
|
|
880
881
|
}
|
|
881
|
-
function Ye(e, t) {
|
|
882
|
-
let n = Be(e).scrollLeft;
|
|
883
|
-
return t ? t.left + n : K(L(e)).left + n;
|
|
884
|
-
}
|
|
885
882
|
function Xe(e, t) {
|
|
883
|
+
let n = Ve(e).scrollLeft;
|
|
884
|
+
return t ? t.left + n : G(I(e)).left + n;
|
|
885
|
+
}
|
|
886
|
+
function Ze(e, t) {
|
|
886
887
|
let n = e.getBoundingClientRect();
|
|
887
888
|
return {
|
|
888
|
-
x: n.left + t.scrollLeft -
|
|
889
|
+
x: n.left + t.scrollLeft - Xe(e, n),
|
|
889
890
|
y: n.top + t.scrollTop
|
|
890
891
|
};
|
|
891
892
|
}
|
|
892
|
-
function
|
|
893
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
893
|
+
function Qe(e) {
|
|
894
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = I(r), s = t ? Pe(t.floating) : !1;
|
|
894
895
|
if (r === o || s && a) return n;
|
|
895
896
|
let c = {
|
|
896
897
|
scrollLeft: 0,
|
|
897
898
|
scrollTop: 0
|
|
898
|
-
}, l =
|
|
899
|
-
if ((d || !d && !a) && ((
|
|
900
|
-
let e =
|
|
901
|
-
l =
|
|
899
|
+
}, l = A(1), u = A(0), d = R(r);
|
|
900
|
+
if ((d || !d && !a) && ((P(r) !== "body" || z(o)) && (c = Ve(r)), d)) {
|
|
901
|
+
let e = G(r);
|
|
902
|
+
l = W(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
902
903
|
}
|
|
903
|
-
let f = o && !d && !a ?
|
|
904
|
+
let f = o && !d && !a ? Ze(o, c) : A(0);
|
|
904
905
|
return {
|
|
905
906
|
width: n.width * l.x,
|
|
906
907
|
height: n.height * l.y,
|
|
@@ -908,31 +909,31 @@ function Ze(e) {
|
|
|
908
909
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
909
910
|
};
|
|
910
911
|
}
|
|
911
|
-
function
|
|
912
|
+
function $e(e) {
|
|
912
913
|
return Array.from(e.getClientRects());
|
|
913
914
|
}
|
|
914
|
-
function
|
|
915
|
-
let t =
|
|
916
|
-
return
|
|
915
|
+
function et(e) {
|
|
916
|
+
let t = I(e), n = Ve(e), r = e.ownerDocument.body, i = D(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = D(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Xe(e), s = -n.scrollTop;
|
|
917
|
+
return H(r).direction === "rtl" && (o += D(t.clientWidth, r.clientWidth) - i), {
|
|
917
918
|
width: i,
|
|
918
919
|
height: a,
|
|
919
920
|
x: o,
|
|
920
921
|
y: s
|
|
921
922
|
};
|
|
922
923
|
}
|
|
923
|
-
var
|
|
924
|
-
function
|
|
925
|
-
let n =
|
|
924
|
+
var tt = 25;
|
|
925
|
+
function nt(e, t) {
|
|
926
|
+
let n = F(e), r = I(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
926
927
|
if (i) {
|
|
927
928
|
a = i.width, o = i.height;
|
|
928
|
-
let e =
|
|
929
|
+
let e = Be();
|
|
929
930
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
930
931
|
}
|
|
931
|
-
let l =
|
|
932
|
+
let l = Xe(r);
|
|
932
933
|
if (l <= 0) {
|
|
933
934
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
934
|
-
o <=
|
|
935
|
-
} else l <=
|
|
935
|
+
o <= tt && (a -= o);
|
|
936
|
+
} else l <= tt && (a += l);
|
|
936
937
|
return {
|
|
937
938
|
width: a,
|
|
938
939
|
height: o,
|
|
@@ -940,8 +941,8 @@ function tt(e, t) {
|
|
|
940
941
|
y: c
|
|
941
942
|
};
|
|
942
943
|
}
|
|
943
|
-
function
|
|
944
|
-
let n =
|
|
944
|
+
function rt(e, t) {
|
|
945
|
+
let n = G(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = R(e) ? W(e) : A(1);
|
|
945
946
|
return {
|
|
946
947
|
width: e.clientWidth * a.x,
|
|
947
948
|
height: e.clientHeight * a.y,
|
|
@@ -949,13 +950,13 @@ function nt(e, t) {
|
|
|
949
950
|
y: r * a.y
|
|
950
951
|
};
|
|
951
952
|
}
|
|
952
|
-
function
|
|
953
|
+
function it(e, t, n) {
|
|
953
954
|
let r;
|
|
954
|
-
if (t === "viewport") r =
|
|
955
|
-
else if (t === "document") r =
|
|
956
|
-
else if (
|
|
955
|
+
if (t === "viewport") r = nt(e, n);
|
|
956
|
+
else if (t === "document") r = et(I(e));
|
|
957
|
+
else if (L(t)) r = rt(t, n);
|
|
957
958
|
else {
|
|
958
|
-
let n =
|
|
959
|
+
let n = Je(e);
|
|
959
960
|
r = {
|
|
960
961
|
x: t.x - n.x,
|
|
961
962
|
y: t.y - n.y,
|
|
@@ -963,27 +964,27 @@ function rt(e, t, n) {
|
|
|
963
964
|
height: t.height
|
|
964
965
|
};
|
|
965
966
|
}
|
|
966
|
-
return
|
|
967
|
-
}
|
|
968
|
-
function it(e, t) {
|
|
969
|
-
let n = W(e);
|
|
970
|
-
return n === t || !R(n) || H(n) ? !1 : U(n).position === "fixed" || it(n, t);
|
|
967
|
+
return ye(r);
|
|
971
968
|
}
|
|
972
969
|
function at(e, t) {
|
|
970
|
+
let n = U(e);
|
|
971
|
+
return n === t || !L(n) || V(n) ? !1 : H(n).position === "fixed" || at(n, t);
|
|
972
|
+
}
|
|
973
|
+
function ot(e, t) {
|
|
973
974
|
let n = t.get(e);
|
|
974
975
|
if (n) return n;
|
|
975
|
-
let r =
|
|
976
|
-
for (;
|
|
977
|
-
let t =
|
|
978
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
976
|
+
let r = Ue(e, [], !1).filter((e) => L(e) && P(e) !== "body"), i = null, a = H(e).position === "fixed", o = a ? U(e) : e;
|
|
977
|
+
for (; L(o) && !V(o);) {
|
|
978
|
+
let t = H(o), n = Re(o);
|
|
979
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || z(o) && !n && at(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = U(o);
|
|
979
980
|
}
|
|
980
981
|
return t.set(e, r), r;
|
|
981
982
|
}
|
|
982
|
-
function
|
|
983
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
983
|
+
function st(e) {
|
|
984
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Pe(t) ? [] : ot(t, this._c) : [].concat(n), r], o = it(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
984
985
|
for (let e = 1; e < a.length; e++) {
|
|
985
|
-
let n =
|
|
986
|
-
s =
|
|
986
|
+
let n = it(t, a[e], i);
|
|
987
|
+
s = D(n.top, s), c = E(n.right, c), l = E(n.bottom, l), u = D(n.left, u);
|
|
987
988
|
}
|
|
988
989
|
return {
|
|
989
990
|
width: c - u,
|
|
@@ -992,27 +993,27 @@ function ot(e) {
|
|
|
992
993
|
y: s
|
|
993
994
|
};
|
|
994
995
|
}
|
|
995
|
-
function
|
|
996
|
-
let { width: t, height: n } =
|
|
996
|
+
function ct(e) {
|
|
997
|
+
let { width: t, height: n } = Ge(e);
|
|
997
998
|
return {
|
|
998
999
|
width: t,
|
|
999
1000
|
height: n
|
|
1000
1001
|
};
|
|
1001
1002
|
}
|
|
1002
|
-
function
|
|
1003
|
-
let r =
|
|
1003
|
+
function lt(e, t, n) {
|
|
1004
|
+
let r = R(t), i = I(t), a = n === "fixed", o = G(e, !0, a, t), s = {
|
|
1004
1005
|
scrollLeft: 0,
|
|
1005
1006
|
scrollTop: 0
|
|
1006
|
-
}, c =
|
|
1007
|
+
}, c = A(0);
|
|
1007
1008
|
function l() {
|
|
1008
|
-
c.x =
|
|
1009
|
+
c.x = Xe(i);
|
|
1009
1010
|
}
|
|
1010
|
-
if (r || !r && !a) if ((
|
|
1011
|
-
let e =
|
|
1011
|
+
if (r || !r && !a) if ((P(t) !== "body" || z(i)) && (s = Ve(t)), r) {
|
|
1012
|
+
let e = G(t, !0, a, t);
|
|
1012
1013
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1013
1014
|
} else i && l();
|
|
1014
1015
|
a && !r && i && l();
|
|
1015
|
-
let u = i && !r && !a ?
|
|
1016
|
+
let u = i && !r && !a ? Ze(i, s) : A(0);
|
|
1016
1017
|
return {
|
|
1017
1018
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
1018
1019
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -1020,34 +1021,34 @@ function ct(e, t, n) {
|
|
|
1020
1021
|
height: o.height
|
|
1021
1022
|
};
|
|
1022
1023
|
}
|
|
1023
|
-
function
|
|
1024
|
-
return
|
|
1024
|
+
function ut(e) {
|
|
1025
|
+
return H(e).position === "static";
|
|
1025
1026
|
}
|
|
1026
|
-
function
|
|
1027
|
-
if (!
|
|
1027
|
+
function dt(e, t) {
|
|
1028
|
+
if (!R(e) || H(e).position === "fixed") return null;
|
|
1028
1029
|
if (t) return t(e);
|
|
1029
1030
|
let n = e.offsetParent;
|
|
1030
|
-
return
|
|
1031
|
-
}
|
|
1032
|
-
function
|
|
1033
|
-
let n =
|
|
1034
|
-
if (
|
|
1035
|
-
if (!
|
|
1036
|
-
let t =
|
|
1037
|
-
for (; t && !
|
|
1038
|
-
if (
|
|
1039
|
-
t =
|
|
1031
|
+
return I(e) === n && (n = n.ownerDocument.body), n;
|
|
1032
|
+
}
|
|
1033
|
+
function ft(e, t) {
|
|
1034
|
+
let n = F(e);
|
|
1035
|
+
if (Pe(e)) return n;
|
|
1036
|
+
if (!R(e)) {
|
|
1037
|
+
let t = U(e);
|
|
1038
|
+
for (; t && !V(t);) {
|
|
1039
|
+
if (L(t) && !ut(t)) return t;
|
|
1040
|
+
t = U(t);
|
|
1040
1041
|
}
|
|
1041
1042
|
return n;
|
|
1042
1043
|
}
|
|
1043
|
-
let r =
|
|
1044
|
-
for (; r &&
|
|
1045
|
-
return r &&
|
|
1044
|
+
let r = dt(e, t);
|
|
1045
|
+
for (; r && Ne(r) && ut(r);) r = dt(r, t);
|
|
1046
|
+
return r && V(r) && ut(r) && !Re(r) ? n : r || ze(e) || n;
|
|
1046
1047
|
}
|
|
1047
|
-
var
|
|
1048
|
-
let t = this.getOffsetParent ||
|
|
1048
|
+
var pt = async function(e) {
|
|
1049
|
+
let t = this.getOffsetParent || ft, n = this.getDimensions, r = await n(e.floating);
|
|
1049
1050
|
return {
|
|
1050
|
-
reference:
|
|
1051
|
+
reference: lt(e.reference, await t(e.floating), e.strategy),
|
|
1051
1052
|
floating: {
|
|
1052
1053
|
x: 0,
|
|
1053
1054
|
y: 0,
|
|
@@ -1056,26 +1057,26 @@ var ft = async function(e) {
|
|
|
1056
1057
|
}
|
|
1057
1058
|
};
|
|
1058
1059
|
};
|
|
1059
|
-
function
|
|
1060
|
-
return
|
|
1061
|
-
}
|
|
1062
|
-
var
|
|
1063
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1064
|
-
getDocumentElement:
|
|
1065
|
-
getClippingRect:
|
|
1066
|
-
getOffsetParent:
|
|
1067
|
-
getElementRects:
|
|
1068
|
-
getClientRects:
|
|
1069
|
-
getDimensions:
|
|
1070
|
-
getScale:
|
|
1071
|
-
isElement:
|
|
1072
|
-
isRTL:
|
|
1060
|
+
function mt(e) {
|
|
1061
|
+
return H(e).direction === "rtl";
|
|
1062
|
+
}
|
|
1063
|
+
var ht = {
|
|
1064
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Qe,
|
|
1065
|
+
getDocumentElement: I,
|
|
1066
|
+
getClippingRect: st,
|
|
1067
|
+
getOffsetParent: ft,
|
|
1068
|
+
getElementRects: pt,
|
|
1069
|
+
getClientRects: $e,
|
|
1070
|
+
getDimensions: ct,
|
|
1071
|
+
getScale: W,
|
|
1072
|
+
isElement: L,
|
|
1073
|
+
isRTL: mt
|
|
1073
1074
|
};
|
|
1074
|
-
function
|
|
1075
|
+
function gt(e, t) {
|
|
1075
1076
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1076
1077
|
}
|
|
1077
|
-
function
|
|
1078
|
-
let n = null, r, i =
|
|
1078
|
+
function _t(e, t) {
|
|
1079
|
+
let n = null, r, i = I(e);
|
|
1079
1080
|
function a() {
|
|
1080
1081
|
var e;
|
|
1081
1082
|
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
@@ -1084,9 +1085,9 @@ function gt(e, t) {
|
|
|
1084
1085
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
1085
1086
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
1086
1087
|
if (s || t(), !f || !p) return;
|
|
1087
|
-
let m =
|
|
1088
|
+
let m = k(d), h = k(i.clientWidth - (u + f)), g = k(i.clientHeight - (d + p)), _ = k(u), v = {
|
|
1088
1089
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
1089
|
-
threshold:
|
|
1090
|
+
threshold: D(0, E(1, c)) || 1
|
|
1090
1091
|
}, y = !0;
|
|
1091
1092
|
function b(t) {
|
|
1092
1093
|
let n = t[0].intersectionRatio;
|
|
@@ -1096,7 +1097,7 @@ function gt(e, t) {
|
|
|
1096
1097
|
o(!1, 1e-7);
|
|
1097
1098
|
}, 1e3);
|
|
1098
1099
|
}
|
|
1099
|
-
n === 1 && !
|
|
1100
|
+
n === 1 && !gt(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
1100
1101
|
}
|
|
1101
1102
|
try {
|
|
1102
1103
|
n = new IntersectionObserver(b, {
|
|
@@ -1110,13 +1111,13 @@ function gt(e, t) {
|
|
|
1110
1111
|
}
|
|
1111
1112
|
return o(!0), a;
|
|
1112
1113
|
}
|
|
1113
|
-
function
|
|
1114
|
+
function vt(e, t, n, r) {
|
|
1114
1115
|
r === void 0 && (r = {});
|
|
1115
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
1116
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ke(e), u = i || a ? [...l ? Ue(l) : [], ...t ? Ue(t) : []] : [];
|
|
1116
1117
|
u.forEach((e) => {
|
|
1117
1118
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
1118
1119
|
});
|
|
1119
|
-
let d = l && s ?
|
|
1120
|
+
let d = l && s ? _t(l, n) : null, f = -1, p = null;
|
|
1120
1121
|
o && (p = new ResizeObserver((e) => {
|
|
1121
1122
|
let [r] = e;
|
|
1122
1123
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -1124,11 +1125,11 @@ function _t(e, t, n, r) {
|
|
|
1124
1125
|
(e = p) == null || e.observe(t);
|
|
1125
1126
|
})), n();
|
|
1126
1127
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
1127
|
-
let m, h = c ?
|
|
1128
|
+
let m, h = c ? G(e) : null;
|
|
1128
1129
|
c && g();
|
|
1129
1130
|
function g() {
|
|
1130
|
-
let t =
|
|
1131
|
-
h && !
|
|
1131
|
+
let t = G(e);
|
|
1132
|
+
h && !gt(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
1132
1133
|
}
|
|
1133
1134
|
return n(), () => {
|
|
1134
1135
|
var e;
|
|
@@ -1137,30 +1138,30 @@ function _t(e, t, n, r) {
|
|
|
1137
1138
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
1138
1139
|
};
|
|
1139
1140
|
}
|
|
1140
|
-
var
|
|
1141
|
+
var yt = Oe, bt = ke, xt = Te, St = we, Ct = (e, t, n) => {
|
|
1141
1142
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
1142
|
-
platform:
|
|
1143
|
+
platform: ht,
|
|
1143
1144
|
...n
|
|
1144
1145
|
}, a = {
|
|
1145
1146
|
...i.platform,
|
|
1146
1147
|
_c: r
|
|
1147
1148
|
};
|
|
1148
|
-
return
|
|
1149
|
+
return Ce(e, t, {
|
|
1149
1150
|
...i,
|
|
1150
1151
|
platform: a
|
|
1151
1152
|
});
|
|
1152
|
-
},
|
|
1153
|
-
function
|
|
1154
|
-
let r = d(
|
|
1153
|
+
}, wt = "<div class=\"tooltip__wrapper tooltip__wrapper--hidden\" aria-hidden=\"true\">\n <div class=\"tooltip__content\">\n <div class=\"tooltip__arrow\"></div>\n </div>\n</div>\n", Tt = NaN;
|
|
1154
|
+
function Et(e, n) {
|
|
1155
|
+
let r = d(wt), i = r.querySelector(a(o.TOOLTIP__CONTENT)), s = r.querySelector(a(o.TOOLTIP__ARROW)), c;
|
|
1155
1156
|
if (!i) throw Error("hookupTooltip: tooltipContent not found");
|
|
1156
1157
|
i.appendChild(n), e.appendChild(r);
|
|
1157
1158
|
let l = [
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1159
|
+
yt(5),
|
|
1160
|
+
xt(),
|
|
1161
|
+
bt()
|
|
1161
1162
|
];
|
|
1162
|
-
s && l.push(
|
|
1163
|
-
let u = () =>
|
|
1163
|
+
s && l.push(St({ element: s }));
|
|
1164
|
+
let u = () => Ct(e, r, {
|
|
1164
1165
|
placement: t.BOTTOM,
|
|
1165
1166
|
middleware: l
|
|
1166
1167
|
}).then(({ x: e, y: n, middlewareData: i }) => {
|
|
@@ -1174,8 +1175,8 @@ function Tt(e, n) {
|
|
|
1174
1175
|
});
|
|
1175
1176
|
if (e.onmouseenter || e.onmouseleave) throw Error("hookupTooltip: element already has an onmouseenter and/or onmouseleave event");
|
|
1176
1177
|
let f = NaN, p = () => {
|
|
1177
|
-
clearTimeout(f), r.classList.add(o.TOOLTIP__WRAPPER__HIDDEN), r.classList.remove(o.TOOLTIP__WRAPPER__VISIBLE), typeof c == "function" && c(),
|
|
1178
|
-
|
|
1178
|
+
clearTimeout(f), r.classList.add(o.TOOLTIP__WRAPPER__HIDDEN), r.classList.remove(o.TOOLTIP__WRAPPER__VISIBLE), typeof c == "function" && c(), Tt = window.setTimeout(() => {
|
|
1179
|
+
Tt = NaN;
|
|
1179
1180
|
}, 500);
|
|
1180
1181
|
}, m = (e) => {
|
|
1181
1182
|
(e.code === "Escape" || e.key === "Escape") && (p(), document.removeEventListener("keyup", m));
|
|
@@ -1184,21 +1185,21 @@ function Tt(e, n) {
|
|
|
1184
1185
|
p(), document.removeEventListener("keyup", m);
|
|
1185
1186
|
}, e.onmouseenter = () => {
|
|
1186
1187
|
clearTimeout(f), f = window.setTimeout(() => {
|
|
1187
|
-
clearTimeout(
|
|
1188
|
+
clearTimeout(Tt), Tt = -1;
|
|
1188
1189
|
let t = e.querySelector(a(o.POPUP_WRAPPER));
|
|
1189
|
-
(!t || t.classList.contains(o.POPUP__HIDDEN)) && (r.classList.remove(o.TOOLTIP__WRAPPER__HIDDEN), r.classList.add(o.TOOLTIP__WRAPPER__VISIBLE), c =
|
|
1190
|
-
},
|
|
1190
|
+
(!t || t.classList.contains(o.POPUP__HIDDEN)) && (r.classList.remove(o.TOOLTIP__WRAPPER__HIDDEN), r.classList.add(o.TOOLTIP__WRAPPER__VISIBLE), c = vt(e, r, u), document.addEventListener("keyup", m));
|
|
1191
|
+
}, Tt ? 0 : 500);
|
|
1191
1192
|
};
|
|
1192
1193
|
}
|
|
1193
1194
|
//#endregion
|
|
1194
1195
|
//#region src/js/renderables/actionItems/html/AnchorActionItem.html?raw
|
|
1195
|
-
var
|
|
1196
|
+
var Dt = "<div class=\"utds-header-action-item\">\n <a href=\"#\" class=\"icon-button utds-header-action-item__icon-button\">\n <span class=\"utds-header-action-item__title visually-hidden\"></span>\n </a>\n</div>\n", Ot = "<div class=\"utds-badge__wrapper\">\n <span class=\"utds-badge__value\"></span>\n <span class=\"utds-badge__label visually-hidden\"></span>\n</div>\n";
|
|
1196
1197
|
//#endregion
|
|
1197
1198
|
//#region src/js/renderables/actionItems/renderActionItemBadge.js
|
|
1198
|
-
function
|
|
1199
|
+
function kt(e) {
|
|
1199
1200
|
let t = null;
|
|
1200
1201
|
if (e) {
|
|
1201
|
-
t = d(
|
|
1202
|
+
t = d(Ot), t.classList.add(o.BADGE_WRAPPER__ACTION_ITEM);
|
|
1202
1203
|
let n = t.querySelector(a(o.BADGE__LABEL));
|
|
1203
1204
|
if (!n) throw Error("renderActionItemBadge: badgeLabel not found");
|
|
1204
1205
|
if (n.appendChild(document.createTextNode(e.label)), e.value || e.value === 0) {
|
|
@@ -1212,8 +1213,8 @@ function Ot(e) {
|
|
|
1212
1213
|
}
|
|
1213
1214
|
//#endregion
|
|
1214
1215
|
//#region src/js/renderables/actionItems/renderAnchorActionItem.js
|
|
1215
|
-
function
|
|
1216
|
-
let t = d(
|
|
1216
|
+
function At(e) {
|
|
1217
|
+
let t = d(Dt), n = document.createTextNode(e.title), r = t instanceof HTMLCollection ? t[0] : t;
|
|
1217
1218
|
e.showTitle && r.classList.add(o.ACTION_ITEM__ICON_BUTTON_TITLE);
|
|
1218
1219
|
let i = r.querySelector(a(o.ACTION_ITEM__TITLE));
|
|
1219
1220
|
if (!i) throw Error("renderActionItem: titleDiv not found");
|
|
@@ -1221,20 +1222,20 @@ function kt(e) {
|
|
|
1221
1222
|
let s = t.querySelector(a(o.ACTION_ITEM__ICON_BUTTON));
|
|
1222
1223
|
if (!s) throw Error("renderActionItem: iconAnchor not found");
|
|
1223
1224
|
e.className && s.classList.add(e.className);
|
|
1224
|
-
let c =
|
|
1225
|
+
let c = kt(e.badge);
|
|
1225
1226
|
c && s.appendChild(c);
|
|
1226
1227
|
let l = d(e.icon);
|
|
1227
1228
|
if (l.setAttribute("role", "presentation"), s.appendChild(l), !(s instanceof HTMLElement)) throw Error("renderActionItem: iconAnchor is not an HTMLElement");
|
|
1228
1229
|
if (e.actionLink) s.href = e.actionLink;
|
|
1229
1230
|
else throw console.error(e), Error("Action Item: no defined action; must have an actionLink");
|
|
1230
|
-
return
|
|
1231
|
+
return Et(t, document.createTextNode(e.title)), t;
|
|
1231
1232
|
}
|
|
1232
1233
|
//#endregion
|
|
1233
1234
|
//#region src/js/renderables/notifications/html/NotificationsDrawer.html?raw
|
|
1234
|
-
var
|
|
1235
|
+
var jt = "<div class=\"utah-design-system\" id=\"utds-notifications__drawer\">\n <div class=\"drawer-wrapper utds-notifications-drawer\">\n <div class=\"drawer__backdrop backdrop-dark\">\n <dialog\n aria-labelledby=\"notifications-drawer-title\"\n class=\"drawer__inner drawer--right\"\n >\n <div\n class=\"drawer__title\"\n id=\"notifications-drawer-title\"\n tabindex=\"0\"\n >\n <span class=\"utds-icon-before-alert\" aria-hidden=\"true\"></span> Notifications\n </div>\n\n <div\n class=\"utds-notifications-drawer__header-buttons\"\n >\n <button\n class=\"button button--solid button--primary-color\"\n type=\"button\"\n id=\"utds-notifications__mark-all-read\"\n disabled\n >\n Mark all as read\n </button>\n <a\n class=\"button button--solid\"\n type=\"button\"\n id=\"utds-notifications__view-all\"\n >\n View all\n <span class=\"utds-new-tab-link-a11y\">\n <span class=\"visually-hidden\">opens in a new tab</span>\n <span class=\"utds-icon-after-external-link\" aria-hidden=\"true\" />\n </span>\n </a>\n </div>\n <ul class=\"utds-notifications__list\"></ul>\n <button class=\"button icon-button drawer__close-button icon-button--borderless icon-button--small drawer__close-button\" type=\"button\"><span class=\"utds-icon-before-x-icon\" aria-hidden=\"true\"></span><span class=\"visually-hidden\">Close</span></button>\n </dialog>\n <a href=\"#endofdialog\" class=\"drawer__end-focus visually-hidden\">End of dialog</a>\n </div>\n </div>\n</div>\n";
|
|
1235
1236
|
//#endregion
|
|
1236
1237
|
//#region src/js/renderables/notifications/getNotificationCardDom.js
|
|
1237
|
-
function
|
|
1238
|
+
function Mt(e) {
|
|
1238
1239
|
return {
|
|
1239
1240
|
status: c(e.querySelector(a(o.NOTIFY__LIST_ITEM_STATUS)), "renderNotificationItem: status not found"),
|
|
1240
1241
|
icon: c(e.querySelector(`.${o.NOTIFY__LIST_ITEM_ICON} span`), "renderNotificationItem: icon not found"),
|
|
@@ -1248,8 +1249,8 @@ function jt(e) {
|
|
|
1248
1249
|
}
|
|
1249
1250
|
//#endregion
|
|
1250
1251
|
//#region src/js/renderables/notifications/renderNotificationBadge.js
|
|
1251
|
-
function
|
|
1252
|
-
let t =
|
|
1252
|
+
function Nt(e = NaN) {
|
|
1253
|
+
let t = T.getState(), n = c(document.getElementsByClassName(o.NOTIFICATIONS__ACTION_ITEM), "renderNotificationBadge: notifications action item not found"), r = c(document.getElementById(o.MAIN_MENU__HAMBURGER_ID), "renderNotificationBadge: notifications hamburger menu item not found"), i = Array.from(n);
|
|
1253
1254
|
r && i.push(r), i.forEach((n) => {
|
|
1254
1255
|
let r = n.querySelector(`.${o.NOTIFICATIONS__ACTION_ITEM_BADGE}`);
|
|
1255
1256
|
if (e || t.notifications?.unreadCount && t.notifications.unreadCount > 0) {
|
|
@@ -1258,20 +1259,20 @@ function Mt(e = NaN) {
|
|
|
1258
1259
|
value: t.notifications?.unreadCount || e,
|
|
1259
1260
|
className: o.NOTIFICATIONS__ACTION_ITEM_BADGE
|
|
1260
1261
|
};
|
|
1261
|
-
r && r.remove(), r = c(
|
|
1262
|
+
r && r.remove(), r = c(kt(i), "renderNotificationBadge: notifications badge not found"), n.appendChild(r);
|
|
1262
1263
|
} else r && r.remove();
|
|
1263
1264
|
});
|
|
1264
1265
|
}
|
|
1265
1266
|
//#endregion
|
|
1266
1267
|
//#region src/js/renderables/notifications/getIframeUrl.js
|
|
1267
|
-
function
|
|
1268
|
+
function Pt() {
|
|
1268
1269
|
if (!(window.location.href.includes(".local") && !1)) return "https://cdn.utah.gov/dts-ds-custom-header-plugin/notifications/v1/index.html";
|
|
1269
1270
|
}
|
|
1270
1271
|
//#endregion
|
|
1271
1272
|
//#region src/js/renderables/notifications/utahHeaderSetDebug.js
|
|
1272
|
-
var
|
|
1273
|
-
function
|
|
1274
|
-
localStorage.removeItem(
|
|
1273
|
+
var Ft = "setDebug";
|
|
1274
|
+
function It(e = void 0) {
|
|
1275
|
+
localStorage.removeItem(Ft);
|
|
1275
1276
|
let t = [
|
|
1276
1277
|
"localhost",
|
|
1277
1278
|
"127.0.0.1",
|
|
@@ -1280,33 +1281,33 @@ function Ft(e = void 0) {
|
|
|
1280
1281
|
".dev",
|
|
1281
1282
|
".at"
|
|
1282
1283
|
].find((e) => window.location.hostname.includes(e)) ? "true" : "false", n = typeof e == "boolean" ? e ? "true" : "false" : t;
|
|
1283
|
-
localStorage.setItem(
|
|
1284
|
+
localStorage.setItem(Ft, n);
|
|
1284
1285
|
}
|
|
1285
1286
|
//#endregion
|
|
1286
1287
|
//#region src/js/renderables/notifications/showDebugMessage.js
|
|
1287
|
-
function
|
|
1288
|
+
function K() {
|
|
1288
1289
|
localStorage.getItem("setDebug") === "true" && console.log(...arguments);
|
|
1289
1290
|
}
|
|
1290
|
-
function
|
|
1291
|
+
function Lt() {
|
|
1291
1292
|
localStorage.getItem("setDebug") === "true" && console.warn(...arguments);
|
|
1292
1293
|
}
|
|
1293
|
-
function
|
|
1294
|
+
function Rt() {
|
|
1294
1295
|
localStorage.getItem("setDebug") === "true" && console.error(...arguments);
|
|
1295
1296
|
}
|
|
1296
1297
|
//#endregion
|
|
1297
1298
|
//#region src/js/renderables/notifications/postMessageMarkAllAsRead.js
|
|
1298
|
-
function
|
|
1299
|
-
let e = document.getElementById(o.NOTIFICATIONS__IFRAME), t =
|
|
1300
|
-
e?.contentWindow ? (
|
|
1299
|
+
function zt() {
|
|
1300
|
+
let e = document.getElementById(o.NOTIFICATIONS__IFRAME), t = Pt();
|
|
1301
|
+
e?.contentWindow ? (K("Parent: Mark all notifications as read:"), e.contentWindow.postMessage({ request: "markAllAsRead" }, t)) : console.error("postMessageMarkAllAsRead: Iframe is not ready or not found. Cannot mark notification as read.");
|
|
1301
1302
|
}
|
|
1302
1303
|
//#endregion
|
|
1303
1304
|
//#region src/js/renderables/notifications/markAllAsRead.js
|
|
1304
|
-
function
|
|
1305
|
+
function Bt() {
|
|
1305
1306
|
c(Array.from(document.querySelectorAll(a(o.NOTIFY__LIST_ITEM))), "renderNotificationItem: Notifications List not found").forEach((e) => {
|
|
1306
|
-
let { status: t, title: n } =
|
|
1307
|
+
let { status: t, title: n } = Mt(e);
|
|
1307
1308
|
t.classList.add(o.NOTIFY__LIST_ITEM_STATUS_IS_READ), n.classList.add(o.NOTIFY__LIST_ITEM_STATUS_IS_READ), e.classList.add(o.NOTIFY__LIST_ITEM_IS_READ);
|
|
1308
1309
|
});
|
|
1309
|
-
let e =
|
|
1310
|
+
let e = T.getState()?.notifications;
|
|
1310
1311
|
if (!e || !e.edges) throw Error("No notifications object found in current state!");
|
|
1311
1312
|
{
|
|
1312
1313
|
let t = e.edges.map((e) => {
|
|
@@ -1322,35 +1323,35 @@ function zt() {
|
|
|
1322
1323
|
};
|
|
1323
1324
|
}
|
|
1324
1325
|
});
|
|
1325
|
-
|
|
1326
|
+
T.setState({ notifications: {
|
|
1326
1327
|
...e,
|
|
1327
1328
|
edges: t,
|
|
1328
1329
|
unreadCount: 0
|
|
1329
|
-
} }),
|
|
1330
|
+
} }), Nt(), zt();
|
|
1330
1331
|
}
|
|
1331
1332
|
}
|
|
1332
1333
|
//#endregion
|
|
1333
1334
|
//#region src/js/renderables/notifications/html/NotificationCard.html?raw
|
|
1334
|
-
var
|
|
1335
|
+
var Vt = "<li class=\"utds-notify-list-item\" tabindex=\"0\">\n <div class=\"utds-notify-list-item__header\">\n <div class=\"utds-notify-list-item__status\"></div>\n <div class=\"utds-notify-list-item__icon\">\n <span class=\"utds-icon-before-info\" aria-hidden=\"true\" />\n </div>\n <div class=\"utds-notify-list-item__title\"></div>\n <div class=\"utds-notify-list-item__time\"></div>\n </div>\n\n <div class=\"utds-notify-list-item__message\"></div>\n <div class=\"utds-notify-list-item__footer gap-xs\">\n <img src=\"\" alt=\"\" class=\"utds-notify-list-item__brand\">\n <a href=\"#\" class=\"utds-notify-list-item__link button button--primary-color button--small\" target=\"_blank\" rel=\"noreferrer\">\n <span class=\"utds-notify-list-item__link-text\">Learn more</span>\n <span class=\"utds-new-tab-link-a11y\">\n <span class=\"visually-hidden\">opens in a new tab</span>\n <span class=\"utds-icon-after-external-link\" aria-hidden=\"true\" />\n </span>\n </a>\n </div>\n</li>\n";
|
|
1335
1336
|
//#endregion
|
|
1336
1337
|
//#region src/js/misc/timeSince.js
|
|
1337
|
-
function
|
|
1338
|
+
function Ht(e) {
|
|
1338
1339
|
let t = new Date(e), n = Math.floor(((/* @__PURE__ */ new Date()).getTime() - t.getTime()) / 1e3);
|
|
1339
1340
|
return n < 3600 ? `${Math.round(n / 60)}m` : n < 86400 ? `${Math.round(n / 3600)}h` : `${Math.round(n / 86400)}d`;
|
|
1340
1341
|
}
|
|
1341
1342
|
//#endregion
|
|
1342
1343
|
//#region src/js/renderables/notifications/postMessageMarkAsRead.js
|
|
1343
|
-
function
|
|
1344
|
-
let t = document.getElementById(o.NOTIFICATIONS__IFRAME), n =
|
|
1345
|
-
t?.contentWindow ? (
|
|
1344
|
+
function Ut(e) {
|
|
1345
|
+
let t = document.getElementById(o.NOTIFICATIONS__IFRAME), n = Pt();
|
|
1346
|
+
t?.contentWindow ? (K("Parent: Mark a notification as read:", e), t.contentWindow.postMessage({
|
|
1346
1347
|
request: "markAsRead",
|
|
1347
1348
|
options: { id: e }
|
|
1348
1349
|
}, n)) : console.error("postMessageMarkAsRead: Iframe is not ready or not found. Cannot mark notification as read.");
|
|
1349
1350
|
}
|
|
1350
1351
|
//#endregion
|
|
1351
1352
|
//#region src/js/renderables/notifications/markNotificationAsRead.js
|
|
1352
|
-
function
|
|
1353
|
-
let t =
|
|
1353
|
+
function Wt(e) {
|
|
1354
|
+
let t = T.getState()?.notifications;
|
|
1354
1355
|
if (!t || !t.edges) throw Error("No notifications object found in current state!");
|
|
1355
1356
|
{
|
|
1356
1357
|
let n = t.edges.find((t) => t.node.id === e);
|
|
@@ -1362,36 +1363,36 @@ function Ut(e) {
|
|
|
1362
1363
|
...n,
|
|
1363
1364
|
node: r
|
|
1364
1365
|
}, a = t.edges.map((t) => t.node.id === e ? i : t), o = Math.max(0, t.unreadCount - 1);
|
|
1365
|
-
|
|
1366
|
+
T.setState({ notifications: {
|
|
1366
1367
|
...t,
|
|
1367
1368
|
edges: a,
|
|
1368
1369
|
unreadCount: o
|
|
1369
|
-
} }),
|
|
1370
|
+
} }), Nt(), Ut(e);
|
|
1370
1371
|
}
|
|
1371
1372
|
}
|
|
1372
1373
|
}
|
|
1373
1374
|
//#endregion
|
|
1374
1375
|
//#region src/js/renderables/notifications/renderNotificationItem.js
|
|
1375
|
-
function
|
|
1376
|
-
let t = d(
|
|
1376
|
+
function Gt(e) {
|
|
1377
|
+
let t = d(Vt), { status: n, icon: r, title: i, time: a, brand: s, message: c, link: l, linkText: u } = Mt(t);
|
|
1377
1378
|
t.id = e.id, t.addEventListener("click", (e) => {
|
|
1378
1379
|
e.preventDefault(), e.stopPropagation(), t.focus();
|
|
1379
1380
|
});
|
|
1380
1381
|
let f = NaN;
|
|
1381
1382
|
return t.addEventListener("focusin", () => {
|
|
1382
1383
|
clearTimeout(f), f = window.setTimeout(() => {
|
|
1383
|
-
|
|
1384
|
+
Wt(e.id), n.classList.add(o.NOTIFY__LIST_ITEM_STATUS_IS_READ), i.classList.add(o.NOTIFY__LIST_ITEM_STATUS_IS_READ), t.classList.add(o.NOTIFY__LIST_ITEM_IS_READ);
|
|
1384
1385
|
}, 2e3);
|
|
1385
1386
|
}), t.addEventListener("focusout", () => {
|
|
1386
1387
|
clearTimeout(f);
|
|
1387
|
-
}), e.isRead && (n.classList.add(`${o.NOTIFY__LIST_ITEM_STATUS_IS_READ}`), i.classList.add(o.NOTIFY__LIST_ITEM_STATUS_IS_READ), t.classList.add(o.NOTIFY__LIST_ITEM_IS_READ)), r.className = `utds-icon-before-${e.icon}`, i.innerText = e.title, a.innerText = e.createDate ?
|
|
1388
|
-
|
|
1388
|
+
}), e.isRead && (n.classList.add(`${o.NOTIFY__LIST_ITEM_STATUS_IS_READ}`), i.classList.add(o.NOTIFY__LIST_ITEM_STATUS_IS_READ), t.classList.add(o.NOTIFY__LIST_ITEM_IS_READ)), r.className = `utds-icon-before-${e.icon}`, i.innerText = e.title, a.innerText = e.createDate ? Ht(e.createDate) : "", s.setAttribute("src", e.logoUrl), s.setAttribute("alt", `logo for ${e.logoUrl}`), c.innerText = e.message, l.setAttribute("href", e.linkUrl), u.innerText = e.linkText, l.addEventListener("click", (t) => {
|
|
1389
|
+
Wt(e.id), t.stopPropagation();
|
|
1389
1390
|
}), t;
|
|
1390
1391
|
}
|
|
1391
1392
|
//#endregion
|
|
1392
1393
|
//#region src/js/renderables/notifications/renderZeroUnreadMessages.js
|
|
1393
|
-
function
|
|
1394
|
-
return
|
|
1394
|
+
function Kt(e = !1) {
|
|
1395
|
+
return Gt({
|
|
1395
1396
|
logoUrl: "https://cdn.utah.gov/agency-brands/dgo-myutah.svg",
|
|
1396
1397
|
logoDescription: "MyUtah Logo",
|
|
1397
1398
|
createDate: "",
|
|
@@ -1407,20 +1408,20 @@ function Gt(e = !1) {
|
|
|
1407
1408
|
}
|
|
1408
1409
|
//#endregion
|
|
1409
1410
|
//#region src/js/renderables/notifications/html/ButtonNext.html?raw
|
|
1410
|
-
var
|
|
1411
|
+
var qt = "<li class=\"flex justify-center p-spacing-xl\">\n <button class=\"button button--solid button--primary-color\" type=\"button\" id=\"load-more-notifications\">\n Load more\n </button>\n</li>\n", Jt = "<div\n aria-valuemax=\"100\"\n aria-valuemin=\"0\"\n class=\"spinner spinner--indeterminate\"\n role=\"progressbar\"\n aria-label=\"Loading...\"\n>\n <div class=\"spinner__animation\">\n <svg\n height=\"64\"\n role=\"presentation\"\n viewBox=\"-10.00 -10.00 120.00 120.00\"\n width=\"64\"\n >\n <path\n stroke-width=\"7\"\n class=\"spinner__track\"\n d=\"M 50,50 m 0,-45 a 45,45 0 1 1 0,90 a 45,45 0 1 1 0,-90\"\n ></path>\n <path\n class=\"spinner__value\"\n d=\"M 50,50 m 0,-45 a 45,45 0 1 1 0,90 a 45,45 0 1 1 0,-90\"\n pathLength=\"360\"\n stroke-dasharray=\"360 360\"\n stroke-dashoffset=\"270\"\n stroke-width=\"11\"\n ></path>\n </svg>\n </div>\n <div class=\"spinner__children\">\n Loading\n </div>\n</div>\n";
|
|
1411
1412
|
//#endregion
|
|
1412
1413
|
//#region src/js/renderables/spinner/renderSpinner.js
|
|
1413
|
-
function
|
|
1414
|
+
function Yt({ size: e, strokeWidth: t } = {
|
|
1414
1415
|
size: "64",
|
|
1415
1416
|
strokeWidth: "2"
|
|
1416
1417
|
}) {
|
|
1417
|
-
let n = d(
|
|
1418
|
+
let n = d(Jt), r = c(n.querySelector(`${a(o.SPINNER__ANIMATION)} svg`), "renderSpinner: spinnerSVG not found"), i = c(n.querySelector(a(o.SPINNER__VALUE)), "renderSpinner: spinnerValue not found");
|
|
1418
1419
|
return r.setAttribute("height", e), r.setAttribute("width", e), i.setAttribute("stroke-width", t), n;
|
|
1419
1420
|
}
|
|
1420
1421
|
//#endregion
|
|
1421
1422
|
//#region src/js/renderables/notifications/renderNextButton.js
|
|
1422
|
-
function
|
|
1423
|
-
let t = document.getElementById(o.NOTIFICATIONS__IFRAME), n =
|
|
1423
|
+
function Xt(e) {
|
|
1424
|
+
let t = document.getElementById(o.NOTIFICATIONS__IFRAME), n = Pt();
|
|
1424
1425
|
t?.contentWindow && t.contentWindow.postMessage({
|
|
1425
1426
|
request: "getNotifications",
|
|
1426
1427
|
options: {
|
|
@@ -1429,27 +1430,27 @@ function Yt(e) {
|
|
|
1429
1430
|
}
|
|
1430
1431
|
}, n);
|
|
1431
1432
|
}
|
|
1432
|
-
function
|
|
1433
|
+
function Zt(e) {
|
|
1433
1434
|
let t = document.getElementById(o.NOTIFICATIONS__LOAD_MORE);
|
|
1434
1435
|
t && t.parentElement?.remove();
|
|
1435
|
-
let n = d(
|
|
1436
|
+
let n = d(qt), r = n.children[0];
|
|
1436
1437
|
return r && r.addEventListener("click", () => {
|
|
1437
|
-
r.innerHTML = "", r.appendChild(
|
|
1438
|
+
r.innerHTML = "", r.appendChild(Yt({
|
|
1438
1439
|
size: "24",
|
|
1439
1440
|
strokeWidth: "8"
|
|
1440
|
-
})), r.ariaDisabled = "true", r.setAttribute("disabled", "true"),
|
|
1441
|
+
})), r.ariaDisabled = "true", r.setAttribute("disabled", "true"), Xt(e);
|
|
1441
1442
|
}), n;
|
|
1442
1443
|
}
|
|
1443
1444
|
//#endregion
|
|
1444
1445
|
//#region src/js/renderables/notifications/renderNotificationCards.js
|
|
1445
|
-
function
|
|
1446
|
+
function Qt(e, t = null, n, r = !1) {
|
|
1446
1447
|
let i = t || document.querySelector(a(o.NOTIFICATIONS__LIST));
|
|
1447
1448
|
if (i) if (e.length > 0) {
|
|
1448
1449
|
e.sort((e, t) => {
|
|
1449
1450
|
let n = new Date(e.node.createDate).valueOf(), r = new Date(t.node.createDate).valueOf();
|
|
1450
1451
|
return Number(e.node.isRead) - Number(t.node.isRead) || r - n;
|
|
1451
1452
|
}).forEach((e) => {
|
|
1452
|
-
document.getElementById(e.node.id) || i.appendChild(
|
|
1453
|
+
document.getElementById(e.node.id) || i.appendChild(Gt({
|
|
1453
1454
|
logoUrl: e.node.logoUrl,
|
|
1454
1455
|
logoDescription: e.node.logoDescription,
|
|
1455
1456
|
createDate: e.node.createDate,
|
|
@@ -1464,29 +1465,29 @@ function Zt(e, t = null, n, r = !1) {
|
|
|
1464
1465
|
}));
|
|
1465
1466
|
});
|
|
1466
1467
|
let t = document.querySelector(`#${o.NOTIFICATIONS__DRAWER_MARK_ALL_READ_ID}`);
|
|
1467
|
-
t && (t.disabled = !1), n?.hasNextPage ? i.appendChild(
|
|
1468
|
-
} else i.appendChild(
|
|
1468
|
+
t && (t.disabled = !1), n?.hasNextPage ? i.appendChild(Zt(n.endCursor)) : document.getElementById(o.NOTIFICATIONS__LOAD_MORE)?.parentElement?.remove();
|
|
1469
|
+
} else i.appendChild(Kt(r));
|
|
1469
1470
|
else throw Error("renderNotificationCards: notificationsListDom not found!");
|
|
1470
1471
|
}
|
|
1471
1472
|
//#endregion
|
|
1472
1473
|
//#region src/js/renderables/notifications/renderBusyCard.js
|
|
1473
|
-
function
|
|
1474
|
+
function $t() {
|
|
1474
1475
|
let e = d("<li class=\"utds-notify-list-item utds-notify-list-item--busy-card\" tabindex=\"0\"></li>");
|
|
1475
|
-
return e.appendChild(
|
|
1476
|
+
return e.appendChild(Yt({
|
|
1476
1477
|
size: "120",
|
|
1477
1478
|
strokeWidth: "8"
|
|
1478
1479
|
})), e;
|
|
1479
1480
|
}
|
|
1480
1481
|
//#endregion
|
|
1481
1482
|
//#region src/js/enumerations/regularExpressions.js
|
|
1482
|
-
var
|
|
1483
|
+
var en = /^my(.local|.dev|.at)?\.utah\.gov$/;
|
|
1483
1484
|
//#endregion
|
|
1484
1485
|
//#region src/js/renderables/notifications/renderNotificationsDrawer.js
|
|
1485
|
-
function
|
|
1486
|
+
function tn() {
|
|
1486
1487
|
function e(e) {
|
|
1487
1488
|
e.remove(), document.body.style.overflow = "unset";
|
|
1488
1489
|
}
|
|
1489
|
-
let t = d(
|
|
1490
|
+
let t = d(jt), n = document.body, r = en.test(document.location.hostname), i = c(t.querySelector(a(o.NOTIFICATIONS__DRAWER_CLOSE_BUTTON)), "renderNotificationsDrawer: closeButton not found"), s = c(t.querySelector(a(o.NOTIFICATIONS__DRAWER_BACKDROP)), "renderNotificationsDrawer: backdrop not found"), l = c(t.querySelector(a(o.NOTIFICATIONS__DRAWER_INNER)), "renderNotificationsDrawer: drawer inner not found"), u = c(t.querySelector(a(o.NOTIFICATIONS__DRAWER_TITLE)), "renderNotificationsDrawer: drawer title not found"), f = c(t.querySelector(a(o.NOTIFICATIONS__DRAWER_END_FOCUS)), "renderNotificationsDrawer: drawer end focus not found"), p = c(t.querySelector(a(o.NOTIFICATIONS__DRAWER_HEADER_BUTTONS)), "renderNotificationsDrawer: drawer \"header buttons\" not found"), m = c(t.querySelector(`#${o.NOTIFICATIONS__DRAWER_MARK_ALL_READ_ID}`), "renderNotificationsDrawer: drawer \"mark all read\" not found"), h = c(t.querySelector(`#${o.NOTIFICATIONS__DRAWER_VIEW_ALL_ID}`), "renderNotificationsDrawer: drawer \"mark all read\" not found"), g = c(t.querySelector(a(o.NOTIFICATIONS__LIST)), "renderNotificationsDrawer: notifications list end not found");
|
|
1490
1491
|
i.onclick = (n) => {
|
|
1491
1492
|
n.preventDefault(), n.stopPropagation(), e(t);
|
|
1492
1493
|
}, s.onclick = (n) => {
|
|
@@ -1496,7 +1497,7 @@ function en() {
|
|
|
1496
1497
|
}, l.onclick = (e) => {
|
|
1497
1498
|
e.stopPropagation();
|
|
1498
1499
|
};
|
|
1499
|
-
let _ =
|
|
1500
|
+
let _ = At({
|
|
1500
1501
|
icon: "<span class=\"utds-icon-before-gear\" aria-hidden=\"true\"></span>",
|
|
1501
1502
|
title: "Settings",
|
|
1502
1503
|
showTitle: !1,
|
|
@@ -1504,21 +1505,21 @@ function en() {
|
|
|
1504
1505
|
className: "notifications-settings-button"
|
|
1505
1506
|
});
|
|
1506
1507
|
p.appendChild(_), m.onclick = (e) => {
|
|
1507
|
-
e.stopPropagation(), e.preventDefault(),
|
|
1508
|
+
e.stopPropagation(), e.preventDefault(), Bt();
|
|
1508
1509
|
}, h.href = r ? "/u?id=my_notifications" : "https://my.utah.gov/u?id=my_notifications";
|
|
1509
|
-
let { notifications: v, isBusy: y } =
|
|
1510
|
-
y && g.appendChild(
|
|
1510
|
+
let { notifications: v, isBusy: y } = T.getState();
|
|
1511
|
+
y && g.appendChild($t()), v && (Qt(v.edges, g, v.pageInfo, r), m.disabled = !1), f.addEventListener("focus", (e) => {
|
|
1511
1512
|
e.preventDefault(), e.stopPropagation(), u.focus();
|
|
1512
1513
|
}), n?.appendChild(t), document.body.style.overflow = "hidden", u.focus();
|
|
1513
1514
|
}
|
|
1514
1515
|
//#endregion
|
|
1515
1516
|
//#region src/js/renderables/notifications/getNotificationsActionItem.js
|
|
1516
|
-
function
|
|
1517
|
+
function nn() {
|
|
1517
1518
|
return {
|
|
1518
1519
|
showTitle: !1,
|
|
1519
1520
|
title: "Notifications",
|
|
1520
1521
|
actionFunction: () => {
|
|
1521
|
-
|
|
1522
|
+
tn();
|
|
1522
1523
|
},
|
|
1523
1524
|
icon: "<span class=\"utds-icon-before-alert\" aria-hidden=\"true\" />",
|
|
1524
1525
|
className: o.NOTIFICATIONS__ACTION_ITEM
|
|
@@ -1526,66 +1527,66 @@ function tn() {
|
|
|
1526
1527
|
}
|
|
1527
1528
|
//#endregion
|
|
1528
1529
|
//#region src/js/misc/findRecursive.js
|
|
1529
|
-
function
|
|
1530
|
+
function rn(e, t, n) {
|
|
1530
1531
|
let r = !1;
|
|
1531
|
-
return e && (Array.isArray(e) ? r = e.some((e) =>
|
|
1532
|
+
return e && (Array.isArray(e) ? r = e.some((e) => rn(e, t, n)) : (r = n(e), r ||= !!t?.filter((t) => e[t])?.some((r) => rn(e[r], t, n)))), r;
|
|
1532
1533
|
}
|
|
1533
1534
|
//#endregion
|
|
1534
1535
|
//#region src/js/misc/allowAriaExpanded.js
|
|
1535
|
-
function
|
|
1536
|
+
function an(e) {
|
|
1536
1537
|
return !e.closest(".menu-item__title") && !e.closest(".vertical-menu__title");
|
|
1537
1538
|
}
|
|
1538
1539
|
//#endregion
|
|
1539
1540
|
//#region src/js/misc/showHideElement.js
|
|
1540
|
-
function
|
|
1541
|
+
function on(e, t, n, r) {
|
|
1541
1542
|
t ? (e.classList.remove(r), e.classList.add(n)) : (e.classList.add(r), e.classList.remove(n));
|
|
1542
1543
|
}
|
|
1543
1544
|
//#endregion
|
|
1544
1545
|
//#region src/js/lifecycle/globalEvents.js
|
|
1545
|
-
var
|
|
1546
|
-
function cn() {
|
|
1547
|
-
J &&= (document.removeEventListener("click", J.globalOnClick), document.removeEventListener("keyup", J.globalOnKeyup), document.removeEventListener("keydown", J.globalOnKeydown), null);
|
|
1548
|
-
}
|
|
1546
|
+
var q, sn = {}, cn = { SHIFT: "shift-key" };
|
|
1549
1547
|
function ln() {
|
|
1548
|
+
q &&= (document.removeEventListener("click", q.globalOnClick), document.removeEventListener("keyup", q.globalOnKeyup), document.removeEventListener("keydown", q.globalOnKeydown), null);
|
|
1549
|
+
}
|
|
1550
|
+
function un() {
|
|
1550
1551
|
let e = [`${a(o.UTAH_DESIGN_SYSTEM)} ${a(o.HEADER)} ${a(o.POPUP_WRAPPER)}`, `${a(o.UTAH_DESIGN_SYSTEM)} ${a(o.MAIN_MENU)} ${a(o.POPUP_WRAPPER)}`], t = document.querySelectorAll(e.join(","));
|
|
1551
1552
|
Array.from(t).filter((e) => !e.classList.contains(o.POPUP__HIDDEN)).forEach((e) => {
|
|
1552
1553
|
let t = e.getAttribute("id");
|
|
1553
1554
|
if (t) {
|
|
1554
1555
|
let e = document.querySelector(`[aria-controls="${t}"]`);
|
|
1555
|
-
e &&
|
|
1556
|
+
e && an(e) && e.setAttribute("aria-expanded", "false");
|
|
1556
1557
|
}
|
|
1557
|
-
|
|
1558
|
+
on(e, !1, o.POPUP__VISIBLE, o.POPUP__HIDDEN);
|
|
1558
1559
|
});
|
|
1559
1560
|
}
|
|
1560
|
-
function
|
|
1561
|
-
|
|
1561
|
+
function dn() {
|
|
1562
|
+
q && ln(), q = {
|
|
1562
1563
|
globalOnClick: () => {},
|
|
1563
1564
|
globalOnKeyup: () => {},
|
|
1564
1565
|
globalOnKeydown: () => {}
|
|
1565
|
-
},
|
|
1566
|
-
e.key === "Escape" &&
|
|
1567
|
-
}), document.addEventListener("keyup",
|
|
1568
|
-
e.shiftKey && (
|
|
1569
|
-
}, document.addEventListener("keydown",
|
|
1566
|
+
}, q.globalOnClick = un, document.addEventListener("click", q.globalOnClick), q.globalOnKeyup = ((e) => {
|
|
1567
|
+
e.key === "Escape" && un(), e.shiftKey || (sn[cn.SHIFT] = !1), sn[e.key] = !1;
|
|
1568
|
+
}), document.addEventListener("keyup", q.globalOnKeyup), q.globalOnKeydown = (e) => {
|
|
1569
|
+
e.shiftKey && (sn[cn.SHIFT] = !0), sn[e.key] = !0;
|
|
1570
|
+
}, document.addEventListener("keydown", q.globalOnKeydown);
|
|
1570
1571
|
}
|
|
1571
1572
|
//#endregion
|
|
1572
1573
|
//#region src/js/misc/isTouchDevice.js
|
|
1573
|
-
function
|
|
1574
|
+
function fn() {
|
|
1574
1575
|
return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
1575
1576
|
}
|
|
1576
1577
|
//#endregion
|
|
1577
1578
|
//#region src/js/misc/popupFocusHandler.js
|
|
1578
|
-
function
|
|
1579
|
+
function J(e, n, r, i, c) {
|
|
1579
1580
|
let l = NaN, u = NaN;
|
|
1580
1581
|
i && n.setAttribute("aria-expanded", "false"), n.setAttribute("aria-haspopup", i), r.setAttribute("inert", "true");
|
|
1581
1582
|
function d(s) {
|
|
1582
1583
|
clearTimeout(l), clearTimeout(u), (!c?.isPerformPopup || c?.isPerformPopup()) && (l = window.setTimeout(() => {
|
|
1583
1584
|
let s = r.querySelector(a(o.POPUP_ARROW)), l = [
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1585
|
+
yt(11),
|
|
1586
|
+
xt(),
|
|
1587
|
+
bt()
|
|
1587
1588
|
];
|
|
1588
|
-
s && l.push(
|
|
1589
|
+
s && l.push(St({ element: s })), Ct(n, r, {
|
|
1589
1590
|
placement: c?.popupPlacement || t.BOTTOM,
|
|
1590
1591
|
middleware: l
|
|
1591
1592
|
}).then(({ x: e, y: n, middlewareData: i }) => {
|
|
@@ -1596,12 +1597,12 @@ function Y(e, n, r, i, c) {
|
|
|
1596
1597
|
left: e == null ? "" : `${i?.arrow?.x}px`,
|
|
1597
1598
|
top: n == null ? "" : `${i?.arrow?.y}px`
|
|
1598
1599
|
});
|
|
1599
|
-
}),
|
|
1600
|
+
}), on(r, !0, o.POPUP__VISIBLE, o.POPUP__HIDDEN), r.removeAttribute("inert"), c?.shouldFocusOnTab || (e.addEventListener("focusin", p), e.addEventListener("focusout", m)), i && n.setAttribute("aria-expanded", "true"), document.querySelectorAll(a(o.TOOLTIP__WRAPPER)).forEach((e) => e.classList.add(o.TOOLTIP__WRAPPER__HIDDEN));
|
|
1600
1601
|
}, s));
|
|
1601
1602
|
}
|
|
1602
1603
|
function f(t) {
|
|
1603
1604
|
clearTimeout(l), clearTimeout(u), (!c?.isPerformPopup || c.isPerformPopup()) && (u = window.setTimeout(() => {
|
|
1604
|
-
|
|
1605
|
+
on(r, !1, o.POPUP__VISIBLE, o.POPUP__HIDDEN), r.setAttribute("inert", "true"), c?.shouldFocusOnTab || (e.removeEventListener("focusin", p), e.removeEventListener("focusout", m)), i && n.setAttribute("aria-expanded", "false");
|
|
1605
1606
|
}, t));
|
|
1606
1607
|
}
|
|
1607
1608
|
if (c?.preventOnClickHandling && (s(!!e.onclick, "popupFocusHandler: wrapper already has an onclick"), e.onclick = (e) => {
|
|
@@ -1612,7 +1613,7 @@ function Y(e, n, r, i, c) {
|
|
|
1612
1613
|
if (n.onclick) throw Error("popupFocusHandler: button already has onclick");
|
|
1613
1614
|
n.onclick = (e) => {
|
|
1614
1615
|
let t = n.getAttribute("aria-expanded") === "true";
|
|
1615
|
-
(!c?.isPerformPopup || c.isPerformPopup()) && (e.stopPropagation(), e.preventDefault(), t && n.getAttribute("aria-expanded") === "true" ? c?.doNotClosePopupOnClick || f(50) : (
|
|
1616
|
+
(!c?.isPerformPopup || c.isPerformPopup()) && (e.stopPropagation(), e.preventDefault(), t && n.getAttribute("aria-expanded") === "true" ? c?.doNotClosePopupOnClick || f(50) : (fn() && un(), d(50))), c?.onClick && c.onClick(e);
|
|
1616
1617
|
};
|
|
1617
1618
|
}
|
|
1618
1619
|
function p() {
|
|
@@ -1624,24 +1625,24 @@ function Y(e, n, r, i, c) {
|
|
|
1624
1625
|
}
|
|
1625
1626
|
//#endregion
|
|
1626
1627
|
//#region src/js/renderables/_html/NewTabAccessibility.html?raw
|
|
1627
|
-
var
|
|
1628
|
+
var pn = "<span class=\"utds-new-tab-link-a11y\">\n <span class=\"visually-hidden\">, opens in a new tab</span>\n <span class=\"utds-icon-after-external-link\" aria-hidden=\"true\"></span>\n</span>\n", mn = "<span class=\"utds-icon-before-chevron-right vertical-menu__chevron\" aria-hidden=\"true\"></span>\n";
|
|
1628
1629
|
//#endregion
|
|
1629
1630
|
//#region src/js/renderables/mainMenu/suffixForMenuItemTitle.js
|
|
1630
|
-
function
|
|
1631
|
+
function hn(e, t) {
|
|
1631
1632
|
let n;
|
|
1632
1633
|
return n = typeof t == "function" ? t(e) : t ?? "Overview", ` ${n}`;
|
|
1633
1634
|
}
|
|
1634
1635
|
//#endregion
|
|
1635
1636
|
//#region src/js/renderables/popup/html/Popup.html?raw
|
|
1636
|
-
var
|
|
1637
|
+
var gn = "<div class=\"popup__wrapper popup__wrapper--hidden\">\n <div class=\"popup__content\">\n <div class=\"popup__arrow\"></div>\n </div>\n</div>\n";
|
|
1637
1638
|
//#endregion
|
|
1638
1639
|
//#region src/js/renderables/popup/renderPopup.js
|
|
1639
|
-
function
|
|
1640
|
+
function _n(e, t) {
|
|
1640
1641
|
let n = e.getAttribute("id");
|
|
1641
1642
|
if (!n) throw Error("renderPopup: labelledByElement does not have an `id` attribute");
|
|
1642
1643
|
let r = g();
|
|
1643
1644
|
e.setAttribute("aria-controls", r);
|
|
1644
|
-
let i = d(
|
|
1645
|
+
let i = d(gn);
|
|
1645
1646
|
if (i.setAttribute("id", r), i.setAttribute("aria-labelledby", n), t?.removePopupArrow) {
|
|
1646
1647
|
let e = i.querySelector(a(o.POPUP_ARROW));
|
|
1647
1648
|
if (!e) throw Error("renderPopup(): popup arrow missing (I wanted to remove it!!)");
|
|
@@ -1651,10 +1652,10 @@ function gn(e, t) {
|
|
|
1651
1652
|
}
|
|
1652
1653
|
//#endregion
|
|
1653
1654
|
//#region src/js/renderables/popupMenu/html/PopupMenu.html?raw
|
|
1654
|
-
var
|
|
1655
|
+
var vn = "<ul class=\"vertical-menu\" />\n", yn = "<li class=\"vertical-menu__item\">\n <span class=\"vertical-menu__title\">\n <span class=\"vertical-menu__plain-title\"></span>\n <a href=\"#\" class=\"vertical-menu__link-title\">\n <span class=\"vertical-menu__link-text\"></span>\n </a>\n <button class=\"vertical-menu__button-title\">\n <span class=\"vertical-menu__link-text\"></span>\n </button>\n </span>\n <span class=\"vertical-menu__divider\" />\n</li>\n";
|
|
1655
1656
|
//#endregion
|
|
1656
1657
|
//#region src/js/renderables/popupMenu/renderPopupMenu.js
|
|
1657
|
-
function
|
|
1658
|
+
function bn(e) {
|
|
1658
1659
|
let t = e.closest("li");
|
|
1659
1660
|
if (!t) throw console.error("element", e), Error("toggleChildMenuExpansion: parent not found for child");
|
|
1660
1661
|
t.querySelectorAll(":scope > ul").forEach((e) => {
|
|
@@ -1665,22 +1666,22 @@ function yn(e) {
|
|
|
1665
1666
|
e.classList.toggle(o.VISUALLY_HIDDEN), e.classList.contains(o.VISUALLY_HIDDEN) ? (t.setAttribute("aria-expanded", "false"), e.setAttribute("inert", "true"), n.classList.add(o.IS_CLOSED), n.classList.remove(o.IS_OPEN)) : (t.setAttribute("aria-expanded", "true"), e.removeAttribute("inert"), n.classList.remove(o.IS_CLOSED), n.classList.add(o.IS_OPEN));
|
|
1666
1667
|
});
|
|
1667
1668
|
}
|
|
1668
|
-
function
|
|
1669
|
+
function xn(e) {
|
|
1669
1670
|
return (t) => {
|
|
1670
|
-
t.preventDefault(), t.stopPropagation(),
|
|
1671
|
+
t.preventDefault(), t.stopPropagation(), bn(e);
|
|
1671
1672
|
};
|
|
1672
1673
|
}
|
|
1673
|
-
function
|
|
1674
|
-
let e = d(
|
|
1674
|
+
function Sn() {
|
|
1675
|
+
let e = d(mn);
|
|
1675
1676
|
return e.classList.add(o.IS_CLOSED), e;
|
|
1676
1677
|
}
|
|
1677
|
-
function
|
|
1678
|
+
function Cn() {
|
|
1678
1679
|
setTimeout(() => {
|
|
1679
1680
|
document.activeElement?.blur();
|
|
1680
1681
|
}, 0);
|
|
1681
1682
|
}
|
|
1682
|
-
function
|
|
1683
|
-
let s = d(
|
|
1683
|
+
function wn(n, r, i) {
|
|
1684
|
+
let s = d(yn), c = s.querySelector(a(o.VERTICAL_MENU__TITLE));
|
|
1684
1685
|
if (!c) throw Error("renderPopupMenuItem: menuItemTitleWrapper not found");
|
|
1685
1686
|
let l = s.querySelector(a(o.VERTICAL_MENU__BUTTON_TITLE));
|
|
1686
1687
|
if (!l) throw Error("renderPopupMenuItem: menuButton not found");
|
|
@@ -1701,20 +1702,20 @@ function Cn(n, r, i) {
|
|
|
1701
1702
|
actionUrl: r.actionUrl,
|
|
1702
1703
|
className: r.className,
|
|
1703
1704
|
icon: r.icon,
|
|
1704
|
-
title: `${r.title}${
|
|
1705
|
-
}), _?.length || (u.onclick =
|
|
1705
|
+
title: `${r.title}${hn(r, i.parentMenuLinkSuffix)}`
|
|
1706
|
+
}), _?.length || (u.onclick = Cn, l.onclick = Cn), _) {
|
|
1706
1707
|
let n;
|
|
1707
1708
|
switch (i.childrenMenuType) {
|
|
1708
1709
|
case e.FLYOUT: {
|
|
1709
|
-
n =
|
|
1710
|
-
let e =
|
|
1710
|
+
n = Sn(), l.appendChild(n), l.setAttribute("id", g());
|
|
1711
|
+
let e = Tn({
|
|
1711
1712
|
menuItems: _,
|
|
1712
1713
|
title: r.title
|
|
1713
1714
|
}, l, {
|
|
1714
1715
|
...i,
|
|
1715
1716
|
removePopupArrow: !0
|
|
1716
1717
|
});
|
|
1717
|
-
s.appendChild(e),
|
|
1718
|
+
s.appendChild(e), J(s, l, e, "menu", {
|
|
1718
1719
|
popupPlacement: t.RIGHT_START,
|
|
1719
1720
|
preventOnClickHandling: !1,
|
|
1720
1721
|
shouldFocusOnHover: !0
|
|
@@ -1722,14 +1723,14 @@ function Cn(n, r, i) {
|
|
|
1722
1723
|
break;
|
|
1723
1724
|
}
|
|
1724
1725
|
case e.INLINE: {
|
|
1725
|
-
let e =
|
|
1726
|
-
e.setAttribute("id", t), e.classList.add(o.VISUALLY_HIDDEN), e.setAttribute("inert", "true"), s.appendChild(e), l.onclick =
|
|
1726
|
+
let e = Y(_, i), t = g();
|
|
1727
|
+
e.setAttribute("id", t), e.classList.add(o.VISUALLY_HIDDEN), e.setAttribute("inert", "true"), s.appendChild(e), l.onclick = xn(l), l.setAttribute("aria-expanded", "false"), l.setAttribute("aria-controls", t), n = Sn(), l.appendChild(n), u.remove(), f.remove(), s.addEventListener("click", (t) => {
|
|
1727
1728
|
for (let r = t.target?.closest("ul"); r; r = r.parentElement?.closest("ul")) r.classList.remove(o.VISUALLY_HIDDEN), e.removeAttribute("inert"), l.setAttribute("aria-expanded", "true"), t.target !== l && (n?.classList?.remove(o.IS_CLOSED), n?.classList?.add(o.IS_OPEN));
|
|
1728
1729
|
});
|
|
1729
1730
|
break;
|
|
1730
1731
|
}
|
|
1731
1732
|
case e.MEGA_MENU: {
|
|
1732
|
-
let e =
|
|
1733
|
+
let e = Y(_, i), t = g();
|
|
1733
1734
|
e.setAttribute("id", t), s.appendChild(e), u.remove(), l.remove(), f.appendChild(document.createTextNode(r.title));
|
|
1734
1735
|
break;
|
|
1735
1736
|
}
|
|
@@ -1737,11 +1738,11 @@ function Cn(n, r, i) {
|
|
|
1737
1738
|
}
|
|
1738
1739
|
p.remove();
|
|
1739
1740
|
} else if (r.actionFunction) l.onclick = (e) => {
|
|
1740
|
-
r.actionFunction?.(e),
|
|
1741
|
+
r.actionFunction?.(e), Cn();
|
|
1741
1742
|
}, u.remove(), p.remove(), f.remove();
|
|
1742
1743
|
else if (r.actionUrl) u.setAttribute("href", r.actionUrl.url), l.remove(), p.remove(), f.remove();
|
|
1743
1744
|
else if (r.actionFunctionUrl) u.setAttribute("href", r.actionFunctionUrl.url), u.onclick = (e) => {
|
|
1744
|
-
r.actionFunctionUrl?.skipHandleEvent || (e.stopPropagation(), e.preventDefault()), r.actionFunctionUrl?.actionFunction(e),
|
|
1745
|
+
r.actionFunctionUrl?.skipHandleEvent || (e.stopPropagation(), e.preventDefault()), r.actionFunctionUrl?.actionFunction(e), Cn();
|
|
1745
1746
|
}, l.remove(), p.remove(), f.remove();
|
|
1746
1747
|
else if (r.isDivider) c.remove(), s.setAttribute("aria-hidden", "true"), s.setAttribute("role", "separator");
|
|
1747
1748
|
else throw console.error(r), Error("renderPopupMenuItem: popupMenuItem must have either actionMenu, actionFunction, actionUrl, or isDivider (popupMenuItem.title)");
|
|
@@ -1752,32 +1753,32 @@ function Cn(n, r, i) {
|
|
|
1752
1753
|
}
|
|
1753
1754
|
if (m.appendChild(document.createTextNode(r.title)), h.appendChild(document.createTextNode(r.title)), r.actionUrl?.openInNewTab || r.actionFunctionUrl?.openInNewTab) {
|
|
1754
1755
|
u.setAttribute("target", "_blank");
|
|
1755
|
-
let e = d(
|
|
1756
|
+
let e = d(pn);
|
|
1756
1757
|
m.appendChild(e), h.appendChild(e);
|
|
1757
1758
|
}
|
|
1758
1759
|
}
|
|
1759
1760
|
let v = r.actionMenu?.length ? o.MENU_ITEM__SELECTED_PARENT : o.MENU_ITEM__SELECTED;
|
|
1760
|
-
return (r.isSelected || r.actionMenu &&
|
|
1761
|
+
return (r.isSelected || r.actionMenu && rn(r.actionMenu, ["actionMenu"], (e) => !!e.isSelected)) && (l.classList.add(v), u.classList.add(v)), i.childrenMenuType !== e.MEGA_MENU && (r.isSelected ? (bn(s), s.classList.add(v)) : s.classList.remove(v)), r.className && s.classList.add(r.className), s.setAttribute("role", "menuitem"), n.setAttribute("role", "menu"), n.appendChild(s), s;
|
|
1761
1762
|
}
|
|
1762
|
-
function
|
|
1763
|
-
let n = d(
|
|
1764
|
-
return e?.forEach((e) =>
|
|
1763
|
+
function Y(e, t) {
|
|
1764
|
+
let n = d(vn);
|
|
1765
|
+
return e?.forEach((e) => wn(n, e, t)), n;
|
|
1765
1766
|
}
|
|
1766
|
-
function
|
|
1767
|
-
let r =
|
|
1767
|
+
function Tn(e, t, n) {
|
|
1768
|
+
let r = _n(t, { removePopupArrow: n.removePopupArrow });
|
|
1768
1769
|
r.setAttribute("role", "dialog");
|
|
1769
1770
|
let i = r.querySelector(a(o.POPUP_CONTENT_WRAPPER));
|
|
1770
1771
|
if (!i) throw Error("renderPopupMenu: contentWrapper not found");
|
|
1771
|
-
let s =
|
|
1772
|
+
let s = Y(e.menuItems, n);
|
|
1772
1773
|
return s.setAttribute("aria-label", e.title), i.appendChild(s), r;
|
|
1773
1774
|
}
|
|
1774
1775
|
//#endregion
|
|
1775
1776
|
//#region src/js/renderables/actionItems/html/ActionItemMenuContent.html?raw
|
|
1776
|
-
var
|
|
1777
|
+
var En = "<div class=\"utds-header-action-item-menu\">\n <div class=\"vertical-menu__wrapper-title\"></div>\n</div>\n", Dn = "<div class=\"utds-header-mobile-menu__action-item\">\n <button type=\"button\" class=\"icon-button icon-button--borderless utds-header-action-item__icon-button\" role=\"tab\">\n <span class=\"utds-header-action-item__title visually-hidden\"></span>\n <span aria-hidden=\"true\" role=\"presentation\">\n </button>\n <span class=\"menu-chiclet\"></span>\n</div>\n";
|
|
1777
1778
|
//#endregion
|
|
1778
1779
|
//#region src/js/renderables/actionItems/renderMobileActionItem.js
|
|
1779
|
-
function
|
|
1780
|
-
let n = d(
|
|
1780
|
+
function On(t) {
|
|
1781
|
+
let n = d(Dn);
|
|
1781
1782
|
n.getAttribute("id") || n.setAttribute("id", g());
|
|
1782
1783
|
let r = document.createTextNode(t.title), i = n instanceof HTMLCollection ? n[0] : n;
|
|
1783
1784
|
t.showTitle && i.classList.add(o.ACTION_ITEM__ICON_BUTTON_TITLE), i.classList.add(o.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER), i.classList.remove(o.ACTION_ITEM);
|
|
@@ -1787,7 +1788,7 @@ function Dn(t) {
|
|
|
1787
1788
|
let c = n.querySelector(a(o.ACTION_ITEM__ICON_BUTTON));
|
|
1788
1789
|
if (!c) throw Error("renderActionItem: iconButton not found");
|
|
1789
1790
|
t.className && c.classList.add(t.className);
|
|
1790
|
-
let l =
|
|
1791
|
+
let l = kt(t.badge);
|
|
1791
1792
|
l && c.appendChild(l);
|
|
1792
1793
|
let u = d(t.icon);
|
|
1793
1794
|
u.setAttribute("role", "presentation"), c.appendChild(u);
|
|
@@ -1798,11 +1799,11 @@ function Dn(t) {
|
|
|
1798
1799
|
c.setAttribute("id", e), f = d(typeof t.actionDom == "function" ? t.actionDom() : t.actionDom);
|
|
1799
1800
|
} else if (t.actionPopupMenu) {
|
|
1800
1801
|
let n = g();
|
|
1801
|
-
c.setAttribute("id", n), f = d(
|
|
1802
|
+
c.setAttribute("id", n), f = d(En);
|
|
1802
1803
|
let r = f.querySelector(a(o.VERTICAL_MENU_WRAPPER__WRAPPER_TITLE));
|
|
1803
1804
|
if (!r) throw Error("renderMobileActionItem: actionItemContentTitle not found");
|
|
1804
1805
|
r.appendChild(document.createTextNode(t.actionPopupMenu.title));
|
|
1805
|
-
let i =
|
|
1806
|
+
let i = Y(t.actionPopupMenu.menuItems, {
|
|
1806
1807
|
childrenMenuType: e.INLINE,
|
|
1807
1808
|
parentMenuLinkSuffix: t.actionPopupMenu.parentMenuLinkSuffix
|
|
1808
1809
|
});
|
|
@@ -1815,15 +1816,15 @@ function Dn(t) {
|
|
|
1815
1816
|
}
|
|
1816
1817
|
//#endregion
|
|
1817
1818
|
//#region src/js/renderables/actionItems/renderMobileActionItems.js
|
|
1818
|
-
function
|
|
1819
|
+
function kn() {
|
|
1819
1820
|
let e = document.getElementById(o.MOBILE_MENU_ACTON_BAR__HOME_ID);
|
|
1820
1821
|
if (!e) throw Error("renderMobileActionItems: homeActionItem not found");
|
|
1821
1822
|
let t = e.closest(a(o.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));
|
|
1822
1823
|
if (!t) throw Error("renderMobileActionItems: homeActionItemWrapper not found");
|
|
1823
1824
|
let n = (h().utahId ? document.getElementById(o.MOBILE_MENU_ACTON_BAR__PROFILE_ID) : null)?.closest?.(a(o.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)), { actionItems: r, notifications: i } = h(), s = [...r || []];
|
|
1824
|
-
i && s.push(
|
|
1825
|
+
i && s.push(nn()), [...s]?.reverse()?.map((e) => ({
|
|
1825
1826
|
actionItem: e,
|
|
1826
|
-
...
|
|
1827
|
+
...On(e)
|
|
1827
1828
|
}))?.forEach(({ actionItem: e, actionItemContent: r, actionItemElement: i }) => {
|
|
1828
1829
|
let a;
|
|
1829
1830
|
switch (e.mobileMenuLocation) {
|
|
@@ -1839,7 +1840,7 @@ function On() {
|
|
|
1839
1840
|
}
|
|
1840
1841
|
if (a && (a.after(i), r)) {
|
|
1841
1842
|
let t = v(r), n = null;
|
|
1842
|
-
e.actionDom ? n = "dialog" : e.actionPopupMenu && (n = "menu"),
|
|
1843
|
+
e.actionDom ? n = "dialog" : e.actionPopupMenu && (n = "menu"), w(i, t, i, {
|
|
1843
1844
|
ariaHasPopupType: n,
|
|
1844
1845
|
shouldOnClickCloseMenu: !1
|
|
1845
1846
|
});
|
|
@@ -1848,16 +1849,16 @@ function On() {
|
|
|
1848
1849
|
}
|
|
1849
1850
|
//#endregion
|
|
1850
1851
|
//#region src/js/renderables/footer/html/Footer.html?raw
|
|
1851
|
-
var
|
|
1852
|
+
var An = "<div class=\"utds-footer utah-design-system\">\n <div class=\"utds-footer__horizontal-divider\">\n <hr />\n </div>\n <div class=\"utds-footer__utah-logo-wrapper\">\n <div class=\"utah-logo-svg\" id=\"utah-logo-svg__footer\">\n <svg viewBox=\"0 0 155 40\" role=\"presentation\">\n <g>\n <path d=\"M45.233 24.1476V11.3603C45.233 10.2609 44.7708 9.72113 43.479 9.72113H42.1873V7.27185H54.9868V9.72113H53.695C52.3834 9.72113 51.94 10.2609 51.94 11.3603V24.0891C51.94 27.8111 54.2345 29.2967 57.7424 29.2967C61.2504 29.2967 63.7942 27.8122 63.7942 24.0891V11.3603C63.7942 10.2609 63.3508 9.72113 62.0017 9.72113H59.3795V7.27185H69.7302V9.72113H68.4197C67.1091 9.72113 66.6657 10.2609 66.6657 11.3603V24.1476C66.6657 30.2614 62.5213 33.1732 56.1022 33.1732C49.6831 33.1732 45.2309 30.2614 45.2309 24.1476H45.233Z\" />\n <path d=\"M77.6977 30.28H79.0469C80.3376 30.28 80.781 29.7402 80.781 28.6408V9.72093H79.1815C76.695 9.72093 75.4805 10.434 74.9222 13.1924L74.3442 15.8933H72.1082V7.27161H96.164V15.8932H93.9468L93.3687 13.1923C92.7907 10.3953 91.5949 9.72088 89.1085 9.72088H87.5089V28.6408C87.5089 29.7402 87.9325 30.1254 89.2441 30.1254H90.5734V32.7292H77.6977L77.6977 30.28Z\" />\n <path d=\"M110.855 30.28H112.648C113.824 30.28 114.21 29.7403 113.747 28.5052L112.204 24.4167H103.531L101.988 28.5052C101.526 29.7392 101.911 30.28 103.087 30.28H105.014V32.7293H95.1843V30.28H95.9742C97.3619 30.28 97.9786 29.7591 98.5765 28.1972L106.575 7.27161H112.57L120.57 28.1972C121.167 29.7591 121.784 30.28 123.172 30.28H123.807V32.7293H110.854V30.28H110.855ZM111.163 21.6396L107.887 12.8645L104.572 21.6396H111.164H111.163Z\" />\n <path d=\"M142.202 30.28H143.493C144.804 30.28 145.247 29.7402 145.247 28.6408V21.0413H135.59V28.6408C135.59 29.7402 136.034 30.28 137.344 30.28H138.636V32.7292H125.838V30.28H127.129C128.421 30.28 128.883 29.7402 128.883 28.6408V11.36C128.883 10.2607 128.421 9.72088 127.129 9.72088H125.838V7.27161H138.636V9.72088H137.344C136.034 9.72088 135.59 10.2606 135.59 11.36V18.2642H145.247V11.36C145.247 10.2607 144.804 9.72088 143.493 9.72088H142.202V7.27161H155V9.72088H153.708C152.417 9.72088 151.954 10.2606 151.954 11.36V28.6408C151.954 29.7402 152.417 30.28 153.708 30.28H155V32.7292H142.202V30.28Z\" />\n <path d=\"M17.3196 17.6045C15.1806 17.6045 13.1814 17.4709 11.6904 17.2276C10.9224 17.1023 10.0929 16.9248 9.49504 16.6158C9.15908 17.3749 8.89197 18.1642 8.6958 18.9722C9.28115 19.3794 12.2538 19.9317 17.3123 19.9317C22.3708 19.9317 25.3361 19.3815 25.9267 18.9743C25.7305 18.1684 25.4645 17.3811 25.1306 16.6242C24.5338 16.9291 23.7115 17.1044 22.9499 17.2287C21.4588 17.472 19.4596 17.6056 17.3207 17.6056L17.3196 17.6045Z\" />\n <path d=\"M17.3103 24.9377H17.3082C14.6965 24.9377 12.258 24.7874 10.4414 24.516C9.14447 24.3218 8.22838 24.0806 7.64403 23.7664L7.26006 25.5255C7.19222 25.8366 7.27258 26.1676 7.49483 26.3983C8.3525 27.292 11.0299 27.8475 14.1549 28.0677C15.0272 28.0656 15.5855 27.4706 15.7347 26.7575C15.8787 26.0705 16.4442 25.4472 17.3186 25.4472C18.193 25.4472 18.7585 26.0695 18.9025 26.7575C19.0517 27.4664 19.6057 28.0594 20.4707 28.0667C23.5926 27.8464 26.2669 27.291 27.1245 26.3983C27.3468 26.1666 27.4271 25.8366 27.3593 25.5255L26.9753 23.7664C26.39 24.0806 25.4738 24.3218 24.1769 24.516C22.3603 24.7885 19.9208 24.9377 17.3092 24.9377H17.3103Z\" />\n <path d=\"M17.3197 14.0338C15.7848 14.0338 14.3501 13.9524 13.2796 13.8041C12.6201 13.7133 11.9878 13.5901 11.5475 13.3615C11.4098 13.5212 11.2773 13.682 11.15 13.8448C10.7389 14.371 10.3716 14.9265 10.0492 15.5048C10.7629 15.8859 13.2608 16.3526 17.3197 16.3526C21.3786 16.3526 23.8442 15.8922 24.5767 15.5121C24.2522 14.9306 23.8849 14.3731 23.4717 13.8448C23.3465 13.6851 23.2161 13.5264 23.0804 13.3688C22.6401 13.5933 22.0141 13.7143 21.3609 13.8052C20.2903 13.9534 18.8557 14.0349 17.3208 14.0349L17.3197 14.0338Z\" />\n <path d=\"M12.5001 12.3875C13.2503 12.5838 14.8927 12.78 17.3197 12.78C19.7467 12.78 21.3692 12.5859 22.1246 12.3906C20.8746 11.2683 19.2771 10.4164 17.3103 10.4164C15.3435 10.4164 13.7501 11.2672 12.5001 12.3875Z\" />\n <path d=\"M17.3112 21.1834C14.855 21.1834 12.5616 21.0497 10.8525 20.8055C9.90505 20.6708 9.15589 20.5037 8.62587 20.3095C8.57264 20.2897 8.49859 20.2625 8.41508 20.2281L7.93823 22.4153C7.93823 22.4153 8.05719 22.5437 8.04883 22.5323C8.06345 22.5511 8.4307 22.9948 11.0841 23.3414C12.7849 23.5638 14.9948 23.6859 17.3091 23.6859C19.6234 23.6859 21.8333 23.5638 23.5341 23.3414C26.1875 22.9948 26.5548 22.5511 26.5694 22.5323C26.561 22.5427 26.6789 22.4112 26.6789 22.4112L26.2021 20.225C25.5478 20.5121 24.6537 20.6802 23.7688 20.8055C22.0597 21.0487 19.7663 21.1834 17.3101 21.1834H17.3112Z\" />\n <path d=\"M17.3102 0L0 9.99975V30.0003L17.3102 40L34.6204 30.0003V9.99975L17.3102 0ZM32.1163 28.5532L17.3103 37.107L2.5042 28.5532V11.4468L17.3102 2.89299L32.1162 11.4467L32.1163 28.5532Z\" />\n </g>\n </svg>\n\n </div>\n <div class=\"utds-footer__vertical-divider\" role=\"separator\" aria-orientation=\"vertical\"></div>\n <div class=\"utds-footer__official-site-wrapper\">\n <div class=\"utds-footer__official-site\">An official website of the <span class=\"whitespace-no-wrap\">state of Utah</span></div>\n <div class=\"utds-footer__copyright\">©<span class=\"utds-footer__copyright-year\">2025</span> state of Utah</div>\n </div>\n </div>\n <div class=\"utds-footer__links\">\n <ul>\n <li>\n <a href=\"https://www.utah.gov/index.html\" target=\"_blank\" rel=\"noreferrer\">Utah.gov Home</a>\n </li>\n <li>\n <a href=\"https://www.utah.gov/support/disclaimer.html\" target=\"_blank\" rel=\"noreferrer\" id=\"utds-footer-terms-link\">Terms of Use</a>\n </li>\n <li>\n <a href=\"https://www.utah.gov/support/privacypolicy.html\" target=\"_blank\" rel=\"noreferrer\" id=\"utds-footer-privacy-link\">Privacy\n Policy</a>\n </li>\n <li>\n <a href=\"https://www.utah.gov/support/accessibility.html\" target=\"_blank\" rel=\"noreferrer\">Accessibility</a>\n </li>\n <li>\n <a href=\"https://www.utah.gov/support/translate.html\" target=\"_blank\" rel=\"noreferrer\">Translate</a>\n </li>\n </ul>\n </div>\n</div>\n";
|
|
1852
1853
|
//#endregion
|
|
1853
1854
|
//#region src/js/renderables/footer/renderFooterCopyrightYear.js
|
|
1854
|
-
function
|
|
1855
|
+
function jn(e, t) {
|
|
1855
1856
|
let n = c(e.querySelector(a(o.FOOTER_COPYRIGHT_YEAR)), "renderFooterCopyrightYear: copyrightYearSpan not found");
|
|
1856
1857
|
n.innerHTML = t ?? "";
|
|
1857
1858
|
}
|
|
1858
1859
|
//#endregion
|
|
1859
1860
|
//#region src/js/renderables/footer/renderFooter.js
|
|
1860
|
-
var
|
|
1861
|
+
var X = {
|
|
1861
1862
|
copyrightYear: void 0,
|
|
1862
1863
|
domLocationTarget: {
|
|
1863
1864
|
cssSelector: void 0,
|
|
@@ -1866,11 +1867,11 @@ var Z = {
|
|
|
1866
1867
|
},
|
|
1867
1868
|
showHorizontalRule: !1
|
|
1868
1869
|
};
|
|
1869
|
-
function
|
|
1870
|
+
function Mn() {
|
|
1870
1871
|
let e = h(), t = document.querySelector(a(o.FOOTER)), n = t;
|
|
1871
1872
|
if (e.footer === null) t?.remove();
|
|
1872
|
-
else if (
|
|
1873
|
-
t && t.remove(), n = d(
|
|
1873
|
+
else if (X.domLocationTarget.cssSelector !== e?.footer?.domLocationTarget?.cssSelector || X.domLocationTarget.element !== e?.footer?.domLocationTarget?.element || X.domLocationTarget.elementFunction !== e?.footer?.domLocationTarget?.elementFunction || X.showHorizontalRule !== e?.footer?.showHorizontalRule || X.copyrightYear !== e?.footer?.copyrightYear || !t) {
|
|
1874
|
+
t && t.remove(), n = d(An);
|
|
1874
1875
|
let r = document.body;
|
|
1875
1876
|
if (e?.footer?.domLocationTarget) {
|
|
1876
1877
|
let t = [
|
|
@@ -1900,18 +1901,18 @@ function jn() {
|
|
|
1900
1901
|
s(!t, "renderFooter: cannot find terms of use link"), t?.setAttribute("href", e.footer.linkTermsOfUse);
|
|
1901
1902
|
}
|
|
1902
1903
|
c(document.querySelector(a(o.FOOTER_LINKS)), "renderFooter: footer links not found").querySelectorAll("a").forEach((e) => {
|
|
1903
|
-
e.appendChild(d(
|
|
1904
|
-
}),
|
|
1904
|
+
e.appendChild(d(pn));
|
|
1905
|
+
}), jn(n, e?.footer?.copyrightYear), X.copyrightYear = e?.footer?.copyrightYear, X.domLocationTarget.cssSelector = e?.footer?.domLocationTarget?.cssSelector, X.domLocationTarget.element = e?.footer?.domLocationTarget?.element, X.domLocationTarget.elementFunction = e?.footer?.domLocationTarget?.elementFunction, X.showHorizontalRule = e?.footer?.showHorizontalRule;
|
|
1905
1906
|
}
|
|
1906
1907
|
return n;
|
|
1907
1908
|
}
|
|
1908
1909
|
//#endregion
|
|
1909
1910
|
//#region src/js/renderables/actionItems/html/ActionItemsWrapper.html?raw
|
|
1910
|
-
var
|
|
1911
|
+
var Nn = "<div class=\"utds-action-items-wrapper\"></div>\n", Pn = "<div class=\"utds-header-action-item\">\n <button type=\"button\" class=\"icon-button utds-header-action-item__icon-button\">\n <span class=\"utds-header-action-item__title visually-hidden\"></span>\n </button>\n</div>\n";
|
|
1911
1912
|
//#endregion
|
|
1912
1913
|
//#region src/js/renderables/actionItems/renderActionItem.js
|
|
1913
|
-
function
|
|
1914
|
-
let n = d(
|
|
1914
|
+
function Fn(t) {
|
|
1915
|
+
let n = d(Pn), r = document.createTextNode(t.title), i = n instanceof HTMLCollection ? n[0] : n;
|
|
1915
1916
|
t.showTitle && i.classList.add(o.ACTION_ITEM__ICON_BUTTON_TITLE);
|
|
1916
1917
|
let s = i.querySelector(a(o.ACTION_ITEM__TITLE));
|
|
1917
1918
|
if (!s) throw Error("renderActionItem: titleDiv not found");
|
|
@@ -1919,7 +1920,7 @@ function Pn(t) {
|
|
|
1919
1920
|
let c = n.querySelector(a(o.ACTION_ITEM__ICON_BUTTON));
|
|
1920
1921
|
if (!c) throw Error("renderActionItem: iconButton not found");
|
|
1921
1922
|
t.className && c.classList.add(t.className);
|
|
1922
|
-
let l =
|
|
1923
|
+
let l = kt(t.badge);
|
|
1923
1924
|
l && c.appendChild(l);
|
|
1924
1925
|
let u = d(t.icon);
|
|
1925
1926
|
if (u.setAttribute("role", "presentation"), c.appendChild(u), !(c instanceof HTMLElement)) throw Error("renderActionItem: iconButton is not an HTMLElement");
|
|
@@ -1927,37 +1928,37 @@ function Pn(t) {
|
|
|
1927
1928
|
else if (t.actionDom) {
|
|
1928
1929
|
let e = g();
|
|
1929
1930
|
c.setAttribute("id", e);
|
|
1930
|
-
let r =
|
|
1931
|
+
let r = _n(c), s = r.querySelector(a(o.POPUP_CONTENT_WRAPPER));
|
|
1931
1932
|
if (!s) throw Error("renderPopupMenu: contentWrapper not found");
|
|
1932
|
-
s.appendChild(d(typeof t.actionDom == "function" ? t.actionDom() : t.actionDom)), n.appendChild(r),
|
|
1933
|
+
s.appendChild(d(typeof t.actionDom == "function" ? t.actionDom() : t.actionDom)), n.appendChild(r), J(i, c, r, "dialog", void 0);
|
|
1933
1934
|
} else if (t.actionPopupMenu) {
|
|
1934
1935
|
let r = g();
|
|
1935
1936
|
c.setAttribute("id", r);
|
|
1936
|
-
let a =
|
|
1937
|
+
let a = Tn(t.actionPopupMenu, c, {
|
|
1937
1938
|
childrenMenuType: e.INLINE,
|
|
1938
1939
|
parentMenuLinkSuffix: t.actionPopupMenu.parentMenuLinkSuffix
|
|
1939
1940
|
});
|
|
1940
|
-
n.appendChild(a),
|
|
1941
|
+
n.appendChild(a), J(i, c, a, "menu", void 0);
|
|
1941
1942
|
} else throw console.error(t), Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
|
|
1942
|
-
return
|
|
1943
|
+
return Et(n, document.createTextNode(t.title)), n;
|
|
1943
1944
|
}
|
|
1944
1945
|
//#endregion
|
|
1945
1946
|
//#region src/js/renderables/actionItems/ActionItems.js
|
|
1946
|
-
function
|
|
1947
|
+
function In() {
|
|
1947
1948
|
let { actionItems: e, notifications: t } = h(), n = null;
|
|
1948
|
-
return (e?.length || t) && (n = d(
|
|
1949
|
+
return (e?.length || t) && (n = d(Nn)), e?.length && h().actionItems?.map((e) => Fn(e))?.forEach((e) => n?.appendChild(e)), t && n?.append(Fn(nn())), n;
|
|
1949
1950
|
}
|
|
1950
1951
|
//#endregion
|
|
1951
1952
|
//#region src/js/enumerations/utahIdUrls.js
|
|
1952
|
-
var
|
|
1953
|
+
var Ln = {
|
|
1953
1954
|
PROFILE: "https://mylogin.utah.gov",
|
|
1954
1955
|
SIGN_IN: `https://mylogin.utah.gov/login/?goto=${window.location}&redirect_uri=${window.location}`,
|
|
1955
1956
|
SIGN_OUT: `https://mylogin.utah.gov/logout/?goto=${window.location}&redirect_uri=${window.location}`,
|
|
1956
1957
|
USER_INFO: "https://mylogin.utah.gov/profile/#/account-info"
|
|
1957
|
-
},
|
|
1958
|
+
}, Rn = "<iframe id=\"utds-notifications-iframe\" src=\"https://notiframe.local.utah.gov:5174\" style=\"display: none;\"></iframe>\n";
|
|
1958
1959
|
//#endregion
|
|
1959
1960
|
//#region src/js/misc/areDomainsMatching.js
|
|
1960
|
-
function
|
|
1961
|
+
function zn(e, t) {
|
|
1961
1962
|
let n = !1;
|
|
1962
1963
|
try {
|
|
1963
1964
|
let r = new URL(e), i = new URL(t);
|
|
@@ -1969,199 +1970,203 @@ function Rn(e, t) {
|
|
|
1969
1970
|
}
|
|
1970
1971
|
//#endregion
|
|
1971
1972
|
//#region src/js/renderables/notifications/whitelist.js
|
|
1972
|
-
var
|
|
1973
|
+
var Bn = { YOUTUBE: "https://www.youtube.com" };
|
|
1973
1974
|
//#endregion
|
|
1974
1975
|
//#region src/js/renderables/notifications/setupNotificationsListener.js
|
|
1975
|
-
function
|
|
1976
|
-
let e = document.getElementById(o.NOTIFICATIONS__IFRAME), t =
|
|
1976
|
+
function Vn() {
|
|
1977
|
+
let e = document.getElementById(o.NOTIFICATIONS__IFRAME), t = Pt(), n = en.test(document.location.hostname);
|
|
1977
1978
|
function r(n = {}) {
|
|
1978
|
-
|
|
1979
|
-
let r =
|
|
1980
|
-
e?.contentWindow
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1979
|
+
K("has utah header settings been set yet?", window["@utahdts/utah-design-system-header"]?.isSetUtahHeaderSettingsCalled);
|
|
1980
|
+
let r = Jn();
|
|
1981
|
+
if (e?.contentWindow) {
|
|
1982
|
+
K("Parent: Requesting data from iframe with options:", n), K("***** requestNotifications userInfo:", r), T.setState({ isBusy: !0 });
|
|
1983
|
+
let i = r?.authenticated === !1 ? "getMessageNotLoggedIn" : r?.authenticated && r?.isPublic === !1 ? "getMessageNotLoggedInEmployee" : "getNotifications";
|
|
1984
|
+
e.contentWindow.postMessage({
|
|
1985
|
+
request: i,
|
|
1986
|
+
options: n
|
|
1987
|
+
}, t);
|
|
1988
|
+
} else Rt("Parent: Iframe is not ready or not found. Cannot request notifications.");
|
|
1984
1989
|
}
|
|
1985
1990
|
window.addEventListener("message", (e) => {
|
|
1986
1991
|
if (["https://mylogin.utah.gov", "https://mylogin.at.utah.gov"].includes(e.origin)) return;
|
|
1987
|
-
if (
|
|
1988
|
-
Object.values(
|
|
1992
|
+
if (K("message event:", e), !zn(e.origin, t)) {
|
|
1993
|
+
Object.values(Bn).includes(e.origin) || Lt(`Parent: Blocking message from untrusted origin: ${e.origin}. Expected: ${t}`);
|
|
1989
1994
|
return;
|
|
1990
1995
|
}
|
|
1991
1996
|
let r = e.data;
|
|
1992
1997
|
if (!(!r || r.request !== "getNotifications")) {
|
|
1993
|
-
if (
|
|
1998
|
+
if (K("Parent: Received response from iframe:", r), r.notifications) {
|
|
1994
1999
|
let t = r.notifications;
|
|
1995
|
-
e.data?.options?.endCursor ||
|
|
2000
|
+
e.data?.options?.endCursor || T.setState({ notifications: t }), Nt();
|
|
1996
2001
|
let i = document.getElementById(o.NOTIFICATIONS__DRAWER_ID);
|
|
1997
2002
|
if (i) {
|
|
1998
2003
|
let e = c(i.querySelector(a(o.NOTIFICATIONS__LIST)), "setupNotificationsListener: notifications list end not found");
|
|
1999
|
-
|
|
2004
|
+
Qt(t.edges, e, t.pageInfo, n);
|
|
2000
2005
|
let r = i.querySelector(`.${o.NOTIFY__BUSY_CARD}`);
|
|
2001
2006
|
r && r.remove();
|
|
2002
2007
|
}
|
|
2003
|
-
|
|
2004
|
-
} else
|
|
2005
|
-
|
|
2008
|
+
K("Parent: Notifications received from iframe:", t);
|
|
2009
|
+
} else Lt("Parent: Error receiving notifications from iframe:", r.notifications?.errors?.[0]?.message || "An unknown error occurred.");
|
|
2010
|
+
T.setState({ isBusy: !1 });
|
|
2006
2011
|
}
|
|
2007
2012
|
}), e?.addEventListener("load", function() {
|
|
2008
2013
|
r({ hostname: document.location.hostname }), e.contentWindow.postMessage({
|
|
2009
2014
|
request: "setDebug",
|
|
2010
|
-
options: { setDebug: localStorage.getItem(
|
|
2015
|
+
options: { setDebug: localStorage.getItem(Ft) }
|
|
2011
2016
|
}, t);
|
|
2012
2017
|
});
|
|
2013
2018
|
}
|
|
2014
2019
|
//#endregion
|
|
2015
2020
|
//#region src/js/renderables/notifications/setupNotifications.js
|
|
2016
|
-
function
|
|
2021
|
+
function Hn() {
|
|
2017
2022
|
if (!document.getElementById(o.NOTIFICATIONS__IFRAME)) {
|
|
2018
|
-
let e = d(
|
|
2019
|
-
e.setAttribute("src",
|
|
2023
|
+
let e = d(Rn);
|
|
2024
|
+
e.setAttribute("src", Pt()), document.body.appendChild(e), window.utahHeaderSetDebug = It, It(), Vn();
|
|
2020
2025
|
}
|
|
2021
2026
|
}
|
|
2022
2027
|
//#endregion
|
|
2023
2028
|
//#region src/js/utahId/utahIdData.js
|
|
2024
|
-
var
|
|
2029
|
+
var Z = {
|
|
2025
2030
|
isDefinitive: null,
|
|
2026
2031
|
lastError: null,
|
|
2027
2032
|
userInfo: null
|
|
2028
2033
|
};
|
|
2029
|
-
function
|
|
2034
|
+
function Un(e) {
|
|
2030
2035
|
if (e.isDefinitive) {
|
|
2031
|
-
|
|
2036
|
+
er(e);
|
|
2032
2037
|
let t = h()?.utahId;
|
|
2033
2038
|
typeof t == "object" && t.onAuthChanged?.(e);
|
|
2034
2039
|
}
|
|
2035
2040
|
}
|
|
2036
|
-
function
|
|
2037
|
-
let t =
|
|
2038
|
-
if (
|
|
2039
|
-
else if (n.utahId === !0 || n.utahId?.currentUser === void 0) e && e.userInfo && (
|
|
2041
|
+
function Wn(e) {
|
|
2042
|
+
let t = Z, n = h();
|
|
2043
|
+
if (K("handleMyLogInInfo hit...", JSON.parse(JSON.stringify(n))), n.utahId === !1) Z.lastError = "Utah ID is off", Z.userInfo = null, Z.isDefinitive = !0;
|
|
2044
|
+
else if (n.utahId === !0 || n.utahId?.currentUser === void 0) e && e.userInfo && (Z.lastError = null, Z.userInfo = e.userInfo, Z.isDefinitive = !0, t = Z, Un(Z), n.notifications !== !1 && n.utahId && (Hn(), Nt()));
|
|
2040
2045
|
else {
|
|
2041
2046
|
let e = {
|
|
2042
2047
|
isDefinitive: !0,
|
|
2043
2048
|
lastError: null,
|
|
2044
2049
|
userInfo: n.utahId?.currentUser
|
|
2045
2050
|
};
|
|
2046
|
-
t = e,
|
|
2051
|
+
t = e, Un(e), n.notifications === !0 && (Hn(), Nt());
|
|
2047
2052
|
}
|
|
2048
2053
|
return t;
|
|
2049
2054
|
}
|
|
2050
|
-
function
|
|
2051
|
-
return
|
|
2055
|
+
function Gn() {
|
|
2056
|
+
return Z;
|
|
2052
2057
|
}
|
|
2053
2058
|
//#endregion
|
|
2054
2059
|
//#region src/js/renderables/utahId/utahIdCommon.js
|
|
2055
|
-
function
|
|
2056
|
-
e.preventDefault(), e.stopPropagation(), window.location.href =
|
|
2060
|
+
function Kn(e) {
|
|
2061
|
+
e.preventDefault(), e.stopPropagation(), window.location.href = Ln.SIGN_IN;
|
|
2057
2062
|
}
|
|
2058
|
-
function
|
|
2063
|
+
function qn() {
|
|
2059
2064
|
let e, t = h();
|
|
2060
|
-
return e = t.utahId === !1 ? null : t.utahId === !0 ?
|
|
2065
|
+
return e = t.utahId === !1 ? null : t.utahId === !0 ? Kn : t.utahId?.onSignIn ?? Kn, e;
|
|
2061
2066
|
}
|
|
2062
|
-
function
|
|
2063
|
-
let e =
|
|
2064
|
-
return n = t.utahId === !0 ? e.userInfo : t.utahId === !1 ? null : t.utahId?.currentUser
|
|
2067
|
+
function Jn() {
|
|
2068
|
+
let e = Gn(), t = h(), n;
|
|
2069
|
+
return n = t.utahId === !0 ? e.userInfo : t.utahId === !1 ? null : t.utahId?.currentUser || e.userInfo || null, n;
|
|
2065
2070
|
}
|
|
2066
|
-
function
|
|
2067
|
-
let t =
|
|
2068
|
-
(!t || !t.authenticated) &&
|
|
2071
|
+
function Yn(e) {
|
|
2072
|
+
let t = Jn();
|
|
2073
|
+
(!t || !t.authenticated) && qn()?.(e);
|
|
2069
2074
|
}
|
|
2070
2075
|
//#endregion
|
|
2071
2076
|
//#region src/js/renderables/menu/html/MenuWithTitle.html?raw
|
|
2072
|
-
var
|
|
2077
|
+
var Xn = "<div class=\"vertical-menu__wrapper\">\n <div class=\"vertical-menu__wrapper-title\"></div>\n</div>\n";
|
|
2073
2078
|
//#endregion
|
|
2074
2079
|
//#region src/js/renderables/menu/renderMenuWithTitle.js
|
|
2075
|
-
function
|
|
2076
|
-
let n = d(
|
|
2080
|
+
function Zn(e, t) {
|
|
2081
|
+
let n = d(Xn), r = n.querySelector(a(o.VERTICAL_MENU_WRAPPER__WRAPPER_TITLE));
|
|
2077
2082
|
if (!r) throw Error("renderMenuWithTitle: menuTitleDiv not found");
|
|
2078
2083
|
return r.appendChild(document.createTextNode(t)), n.appendChild(e), n;
|
|
2079
2084
|
}
|
|
2080
2085
|
//#endregion
|
|
2081
2086
|
//#region src/js/renderables/utahId/html/UtahIdButton.html?raw
|
|
2082
|
-
var
|
|
2083
|
-
function
|
|
2084
|
-
|
|
2087
|
+
var Qn = "<button class=\"utds-utah-id__button button--solid\" type=\"button\">UtahID Sign In</button>\n", $n = "<div class=\"utds-utah-id-wrapper\"></div>\n", Q = null;
|
|
2088
|
+
function er(e) {
|
|
2089
|
+
Q = e, document.querySelectorAll(a(o.UTAH_ID__BUTTON)).forEach((e) => {
|
|
2085
2090
|
if (e) {
|
|
2086
|
-
if (e.innerHTML = "",
|
|
2091
|
+
if (e.innerHTML = "", Q?.userInfo?.authenticated) {
|
|
2087
2092
|
let t = document.createElement("span");
|
|
2088
|
-
t.appendChild(document.createTextNode("UtahID Account:")), t.classList.add(o.VISUALLY_HIDDEN), e.appendChild(t), e.appendChild(document.createTextNode(`Hello, ${
|
|
2093
|
+
t.appendChild(document.createTextNode("UtahID Account:")), t.classList.add(o.VISUALLY_HIDDEN), e.appendChild(t), e.appendChild(document.createTextNode(`Hello, ${Q.userInfo.name || Q.userInfo.first || ""}`));
|
|
2089
2094
|
} else e.appendChild(document.createTextNode("UtahID Sign In"));
|
|
2090
2095
|
let t = e.getAttribute("aria-controls");
|
|
2091
2096
|
if (!t) throw Error(`authChangedEventHandler: popup id for button not found - ${t}`);
|
|
2092
2097
|
let n = document.getElementById(t);
|
|
2093
|
-
n &&
|
|
2098
|
+
n && tr(e, n);
|
|
2094
2099
|
}
|
|
2095
2100
|
});
|
|
2096
2101
|
}
|
|
2097
|
-
function
|
|
2098
|
-
e && t && (
|
|
2102
|
+
function tr(e, t) {
|
|
2103
|
+
e && t && (Q?.isDefinitive && Q?.userInfo?.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")));
|
|
2099
2104
|
}
|
|
2100
|
-
function
|
|
2101
|
-
let e = d(
|
|
2102
|
-
return e.setAttribute("id", g()),
|
|
2105
|
+
function nr() {
|
|
2106
|
+
let e = d(Qn);
|
|
2107
|
+
return e.setAttribute("id", g()), Q && er(Q), e;
|
|
2103
2108
|
}
|
|
2104
|
-
function
|
|
2109
|
+
function rr(t) {
|
|
2105
2110
|
let n = h(), r = n.utahId !== !1 && n.utahId !== !0 && n.utahId?.onProfile, i = n.utahId !== !1 && n.utahId !== !0 && n.utahId?.onSignOut, a = [...n.utahId !== !0 && n.utahId !== !1 && n.utahId?.menuItems || []];
|
|
2106
2111
|
a.length && a.push({
|
|
2107
2112
|
isDivider: !0,
|
|
2108
2113
|
title: "--divider--"
|
|
2109
2114
|
});
|
|
2110
|
-
let o =
|
|
2115
|
+
let o = Y([
|
|
2111
2116
|
...a,
|
|
2112
2117
|
{
|
|
2113
2118
|
actionUrl: r ? void 0 : {
|
|
2114
|
-
url:
|
|
2119
|
+
url: Ln.PROFILE,
|
|
2115
2120
|
openInNewTab: !0
|
|
2116
2121
|
},
|
|
2117
2122
|
actionFunction: r || void 0,
|
|
2118
2123
|
title: "UtahID Profile"
|
|
2119
2124
|
},
|
|
2120
2125
|
{
|
|
2121
|
-
actionUrl: i ? void 0 : { url:
|
|
2126
|
+
actionUrl: i ? void 0 : { url: Ln.SIGN_OUT },
|
|
2122
2127
|
actionFunction: i || void 0,
|
|
2123
2128
|
title: "Sign Out"
|
|
2124
2129
|
}
|
|
2125
|
-
], { childrenMenuType: e.INLINE }), s = t ?
|
|
2130
|
+
], { childrenMenuType: e.INLINE }), s = t ? Zn(o, "Utah ID Menu") : o;
|
|
2126
2131
|
return s.setAttribute("aria-label", "Utah Id Menu"), s.setAttribute("role", "menu"), s.setAttribute("id", g()), s;
|
|
2127
2132
|
}
|
|
2128
|
-
function
|
|
2129
|
-
let e = d(
|
|
2133
|
+
function ir() {
|
|
2134
|
+
let e = d($n), t = nr();
|
|
2130
2135
|
t.setAttribute("id", g()), e.appendChild(t);
|
|
2131
|
-
let n =
|
|
2136
|
+
let n = rr(!1), r = _n(t), i = r.querySelector(a(o.POPUP_CONTENT_WRAPPER));
|
|
2132
2137
|
if (!i) throw Error("renderUtahIdForDesktop: contentWrapper not found");
|
|
2133
|
-
return i.appendChild(n), e.appendChild(r),
|
|
2134
|
-
isPerformPopup: () =>
|
|
2135
|
-
onClick: (e) =>
|
|
2138
|
+
return i.appendChild(n), e.appendChild(r), tr(t, r), J(e, t, r, "menu", {
|
|
2139
|
+
isPerformPopup: () => !!Q?.isDefinitive && !!Q?.userInfo?.authenticated,
|
|
2140
|
+
onClick: (e) => Yn(e)
|
|
2136
2141
|
}), e;
|
|
2137
2142
|
}
|
|
2138
|
-
function
|
|
2139
|
-
let e = d(
|
|
2143
|
+
function ar() {
|
|
2144
|
+
let e = d($n), t = nr(), n = t.getAttribute("id");
|
|
2140
2145
|
if (!n) throw Error("renderUtahIdForMobile: utahIdButton has no id");
|
|
2141
2146
|
e.appendChild(t);
|
|
2142
|
-
let r =
|
|
2147
|
+
let r = rr(!0), i = r.getAttribute("id");
|
|
2143
2148
|
if (!i) throw Error("renderUtahIdForMobile: utahIdPopupMenu has no id");
|
|
2144
|
-
return e.appendChild(r), t.setAttribute("aria-controls", i), r.setAttribute("aria-labelledby", n),
|
|
2149
|
+
return e.appendChild(r), t.setAttribute("aria-controls", i), r.setAttribute("aria-labelledby", n), tr(t, r), {
|
|
2145
2150
|
button: t,
|
|
2146
2151
|
menu: r
|
|
2147
2152
|
};
|
|
2148
2153
|
}
|
|
2149
2154
|
//#endregion
|
|
2150
2155
|
//#region src/js/renderables/citizenExperience/html/CitizenExperienceWrapper.html?raw
|
|
2151
|
-
var
|
|
2156
|
+
var or = "<div class=\"utds-citizen-experience-wrapper\"></div>\n";
|
|
2152
2157
|
//#endregion
|
|
2153
2158
|
//#region src/js/renderables/citizenExperience/CitizenExperience.js
|
|
2154
|
-
function
|
|
2155
|
-
let e = d(
|
|
2156
|
-
return t && e.appendChild(t), h().utahId !== !1 && e.appendChild(
|
|
2159
|
+
function sr() {
|
|
2160
|
+
let e = d(or), t = In();
|
|
2161
|
+
return t && e.appendChild(t), h().utahId !== !1 && e.appendChild(ir()), e;
|
|
2157
2162
|
}
|
|
2158
2163
|
//#endregion
|
|
2159
2164
|
//#region src/js/renderables/citizenExperience/html/CitizenExperienceWrapperMobile.html?raw
|
|
2160
|
-
var sr = "<div class=\"utds-citizen-experience-wrapper--mobile\"></div>\n", cr = "<div class=\"utds-title-wrapper\">\n <div class=\"utds-title-wrapper__logo\"></div>\n <div class=\"utds-title-wrapper__title\"></div>\n</div>\n", lr = "<a class=\"utds-title-wrapper\">\n <div class=\"utds-title-wrapper__logo\"></div>\n <div class=\"utds-title-wrapper__title\"></div>\n</a>\n";
|
|
2165
|
+
var cr = "<div class=\"utds-citizen-experience-wrapper--mobile\"></div>\n", lr = "<div class=\"utds-title-wrapper\">\n <div class=\"utds-title-wrapper__logo\"></div>\n <div class=\"utds-title-wrapper__title\"></div>\n</div>\n", ur = "<a class=\"utds-title-wrapper\">\n <div class=\"utds-title-wrapper__logo\"></div>\n <div class=\"utds-title-wrapper__title\"></div>\n</a>\n", dr = "<svg width=\"867\" height=\"1000\" viewBox=\"0 0 867 1000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_127_29707)\">\n<path d=\"M599.64 271.919L594.449 270.074L600.906 251.932L606.044 253.759C611.307 255.64 614.147 258.805 611.56 266.077C609.082 273.059 604.868 273.782 599.64 271.919ZM324.954 281.614L326.817 281.217C334.848 279.498 342.608 272.317 338.918 255.007C335.101 237.136 325.207 234.296 317.176 236.014L311.406 237.244L320.287 278.811C320.811 281.235 321.842 282.284 324.972 281.614H324.954ZM433.012 64.1225L810.494 282.067V717.955L433.012 935.899L55.5306 717.955V282.067L433.012 64.1225ZM337.995 379.924C352.014 383.957 384.536 388.172 433.103 388.172C481.669 388.172 513.776 384.011 527.939 379.996C473.186 326.346 392.748 326.346 337.995 379.924ZM433.103 405.138C403.927 405.138 376.668 403.583 356.355 400.779C342.047 398.808 331.881 396.329 325.153 393.074C312.437 407.291 301.566 422.937 292.54 439.596C341.884 462.188 523.688 462.152 573.413 439.741C564.35 423.01 553.461 407.309 540.691 393.019C527.469 399.314 498.166 405.12 433.121 405.12L433.103 405.138ZM365.815 220.585L366.177 226.735L368.781 226.572C371.784 226.391 372.887 227.567 373.032 230.045L374.768 258.841C375.637 273.149 386.037 279.064 401.448 278.123C416.335 277.219 425.867 270.11 424.999 255.803L423.263 227.006C423.118 224.528 424.004 223.226 427.025 223.045L429.63 222.882L429.25 216.732L405.428 218.179L405.808 224.329L411.831 223.967C414.852 223.787 415.901 224.962 416.046 227.44L417.764 256.002C418.252 264.196 412.808 267.542 405.337 267.994C397.903 268.446 392.531 265.751 392.043 257.557L390.324 228.996C390.18 226.518 391.084 225.216 394.087 225.035L396.691 224.872L396.311 218.722L365.797 220.567L365.815 220.585ZM286.697 236.195L287.981 242.237L290.55 241.694C293.498 241.061 294.765 242.074 295.271 244.498L303.356 282.41C303.881 284.834 303.139 286.263 300.191 286.896L297.641 287.439L298.925 293.48L325.514 287.801C343.042 284.056 360.859 273.999 356.011 251.353C351.181 228.707 330.85 226.789 313.287 230.533L286.697 236.213V236.195ZM284.925 454.79C277.309 471.377 271.467 488.778 267.397 506.631C302.741 530.327 563.88 530.109 598.465 506.649C594.395 488.832 588.57 471.468 580.991 454.917C571.966 459.511 558.526 463.183 540.148 466.186C484.871 475.664 381.334 475.664 326.075 466.186C307.499 463.147 293.969 459.439 284.943 454.772L284.925 454.79ZM263.689 523.489L252.927 572.761L252.981 572.798C289.248 604.506 576.252 604.615 612.899 572.798L612.953 572.761L602.191 523.507C541.415 548.071 324.719 548.143 263.689 523.489ZM222.484 323.706L219.608 318.243L217.293 319.473C214.616 320.884 213.187 320.233 212.011 318.044L193.905 283.731C192.747 281.542 193.037 279.987 195.696 278.576L198.011 277.346L195.135 271.883L168.093 286.155L170.969 291.617L173.285 290.387C175.962 288.976 177.427 289.609 178.602 291.798L196.709 326.111C197.866 328.318 197.541 329.892 194.882 331.285L192.566 332.496L195.442 337.959L222.484 323.687V323.706ZM230.986 318.786L253.777 310.067L251.57 304.315L245.438 306.667C242.616 307.752 241.26 306.938 240.373 304.604L227.965 272.154L228.345 272.01L270.544 303.664L283.767 298.599L266.366 253.126C265.48 250.792 265.95 249.291 268.772 248.206L271.214 247.265L269.007 241.495L246.252 250.195L248.459 255.947L254.591 253.596C257.413 252.511 258.769 253.325 259.655 255.64L269.333 280.927L268.953 281.072L234.025 254.862L210.076 264.033L212.283 269.803L214.724 268.862C217.546 267.777 218.939 268.573 219.825 270.906L233.681 307.137C234.567 309.452 234.061 310.99 231.239 312.057L228.797 312.997L231.004 318.768L230.986 318.786ZM350.114 788.354H341.414C337.851 788.354 336.639 786.871 336.639 783.832V739.878H323.687C317.845 746.299 312.744 749.067 302.018 750.55V756.808C307.86 756.447 312.003 755.958 315.078 755.488C317.357 755.108 318.587 756.012 318.587 758.454V783.832C318.587 786.853 317.375 788.354 313.757 788.354H305.002V795.101H350.132V788.354H350.114ZM419.066 772.473C419.066 762.542 411.108 756.754 403.293 754.041C409.407 752.178 416.082 748.361 416.082 740.656C416.082 730.725 406.043 723.725 390.342 723.725C374.642 723.725 363.21 731.684 363.21 746.335C363.21 754.403 369.27 760.824 376.849 764.224C369.089 766.033 361.618 770.374 361.618 778.876C361.618 788.861 372.869 796.349 389.112 796.349C405.355 796.349 419.048 788.444 419.048 772.455L419.066 772.473ZM488.923 769.615C488.923 754.475 481.018 738.612 459.927 738.612C442.888 738.612 432.108 749.175 432.108 763.248C432.108 775.837 440.971 784.7 453.126 784.7C461.772 784.7 468.212 780.721 471.178 774.191C470.853 787.685 463.111 802.589 438.529 810.241L439.596 815.07C472.879 809.553 488.923 793.672 488.923 769.633V769.615ZM558.996 772.907C558.996 761.439 550.133 752.576 537.978 752.576C529.476 752.576 523.164 756.392 520.143 761.656C520.197 742.428 533.836 728.482 558.635 730.02L557.676 725.027C554.167 724.123 550.621 723.815 547.474 723.815C522.947 723.815 502.037 740.963 502.037 765.762C502.037 782.331 510.538 796.403 531.448 796.403C548.216 796.403 558.996 785.84 558.996 772.943V772.907ZM625.018 628.147L616.896 590.94C560.118 621.22 306.106 621.328 248.947 590.94L240.826 628.147C239.523 634.098 241.061 640.411 245.312 644.825C261.699 661.882 312.889 672.518 372.616 676.714C389.293 676.678 399.947 665.3 402.805 651.698C409.787 618.416 456.4 618.416 463.382 651.698C466.222 665.246 476.822 676.569 493.372 676.714C550.513 671.957 631.638 661.809 625.036 628.165L625.018 628.147ZM638.15 323.615L665.192 337.85L668.249 332.044L665.933 330.832C663.22 329.403 662.786 328.228 663.944 326.021L671.505 311.659L696.141 298.961C699.306 297.315 700.663 297.333 702.978 298.545L704.425 299.305L707.301 293.842L686.735 283.007L683.859 288.452L687.513 290.369C689.629 291.491 689.575 293.118 687.368 294.349L672.445 302.687L670.727 285.576C670.437 283.061 671.812 282.085 673.928 283.206L677.546 285.105L680.422 279.643L650.595 263.924L647.719 269.387L649.166 270.147C651.445 271.34 652.259 272.48 652.693 276.025L656.166 303.519L648.605 317.881C647.447 320.088 646 320.721 643.341 319.328L641.026 318.098L638.15 323.561V323.615ZM562.849 287.475L560.787 293.281L589.638 303.537L591.7 297.731L589.185 296.845C586.346 295.832 585.839 294.33 586.671 291.997L592.496 275.609L594.63 276.369C598.899 277.888 599.315 279.878 599.224 284.129L598.917 296.266C598.718 303.971 601.015 307.607 609.155 310.501L619.863 314.3L621.925 308.493L620.46 307.969C618.036 307.101 617.186 305.491 616.987 302.778L616.119 291.31C615.504 283.224 612.537 279.914 608.648 278.16L608.684 278.069C614.762 279.281 625.362 279.1 628.581 270.074C632.109 260.162 623.806 253.542 612.772 249.635L580.413 238.131L578.351 243.937L580.811 244.805C583.65 245.818 584.193 247.337 583.361 249.671L570.374 286.209C569.542 288.56 568.167 289.374 565.327 288.361L562.867 287.493L562.849 287.475ZM503.52 242.255L509.055 243.358L511.714 237.317C514.21 231.565 517.303 230.642 522.567 231.691L525.443 232.27L517.14 273.963C516.652 276.405 515.458 277.436 512.492 276.839L509.887 276.315L508.675 282.374L538.719 288.361L540.004 281.922L537.399 281.397C534.433 280.8 533.637 279.788 534.125 277.346L542.428 235.634L545.304 236.213C550.567 237.262 553.063 239.288 553.172 245.565L553.299 252.149L558.833 253.252L562.777 233.41L507.499 222.412L503.538 242.255H503.52ZM442.943 272.787C450.069 275.826 455.351 277.852 462.478 278.359C474.832 279.227 487.44 273.059 488.38 259.782C489.049 250.394 483.695 246.107 475.809 242.707L467.579 239.143C462.478 236.955 460.126 235.019 460.434 230.678C460.705 226.735 464.341 224.329 469.623 224.709C474.941 225.089 478.414 227.965 480.53 235.182L481.308 237.913L486.933 238.311L487.964 223.135C481.235 220.079 475.972 218.505 470.22 218.089C457.612 217.203 446 223.533 445.095 236.358C444.48 245.022 450.124 250.684 458.806 254.283L467.145 257.72C471.938 259.71 473.349 261.663 473.114 265.028C472.752 270.165 468.881 272.154 463.473 271.774C457.721 271.358 452.439 268.139 449.762 259.511L448.894 256.653L443.323 256.255L442.943 272.806V272.787ZM866.025 249.996V750.007L433.012 1000L0 750.007V249.996L433.012 0L866.025 249.996ZM842.546 263.562L433.012 27.1322L23.4965 263.562V736.441L433.03 972.871L842.564 736.441V263.562H842.546ZM392.947 770.031L380.159 765.563C376.812 768.746 375.329 771.876 375.329 775.656C375.329 783.995 380.756 788.879 390.776 788.879C400.273 788.879 404.686 783.995 404.686 779.22C404.686 774.444 401.503 773.015 392.947 770.031ZM387.539 748.795L400.273 753.046C402.823 750.188 403.673 747.203 403.673 743.803C403.673 735.953 398.301 731.232 389.655 731.232C381.009 731.232 377.554 734.885 377.554 739.733C377.554 743.875 380.683 746.534 387.539 748.813V748.795ZM531.231 760.372C525.334 760.372 521.626 765.527 521.626 774.281C521.626 783.524 525.244 788.879 531.231 788.879C537.218 788.879 540.836 783.633 540.836 774.281C540.836 765.473 537.164 760.372 531.231 760.372ZM459.873 746.1C453.922 746.1 450.268 751.346 450.268 761.873C450.268 771.749 453.922 776.85 459.873 776.85C465.824 776.85 469.424 771.695 469.424 761.71C469.424 751.726 465.86 746.1 459.873 746.1Z\" fill=\"#071D49\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_127_29707\">\n<rect width=\"866.025\" height=\"1000\" fill=\"white\"/>\n</clipPath>\n</defs>\n</svg>\n", fr = "<svg width=\"867\" height=\"1000\" viewBox=\"0 0 867 1000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_127_29502)\">\n<path d=\"M540.835 774.28C540.835 783.624 537.181 788.871 531.23 788.871C525.279 788.871 521.625 783.52 521.625 774.28C521.625 765.51 525.331 760.369 531.23 760.369C537.128 760.369 540.835 765.458 540.835 774.28ZM387.545 748.806L400.282 753.06C402.84 750.189 403.675 747.214 403.675 743.821C403.675 735.964 398.324 731.24 389.659 731.24C380.993 731.24 377.548 734.894 377.548 739.723C377.548 743.873 380.68 746.509 387.519 748.806H387.545ZM392.948 770.026L380.158 765.563C376.817 768.747 375.329 771.879 375.329 775.638C375.329 783.964 380.758 788.844 390.781 788.844C400.282 788.844 404.693 783.964 404.693 779.187C404.693 774.411 401.509 772.975 392.948 770V770.026ZM433.012 64.1297L810.508 282.071V717.955L433.012 935.896L55.5164 717.955V282.045L433.012 64.1297ZM336.805 223.266L339.389 245.243C342.547 244.591 345.705 243.99 348.863 243.39C348.524 235.847 351.238 231.331 362.07 229.844L370.788 228.721L375.956 281.81C376.426 285.83 374.52 288.414 370.866 288.884C369.3 289.092 367.734 289.301 366.168 289.536C366.56 292.225 366.951 294.939 367.317 297.627C380.941 295.67 394.618 294.339 408.321 293.634C408.19 290.92 408.034 288.179 407.903 285.464C406.337 285.543 404.771 285.647 403.179 285.725C399.525 285.96 397.15 283.794 396.837 279.774L391.669 226.685L400.308 226.111C411.218 225.485 414.716 229.348 415.812 236.813C419.022 236.786 422.233 236.786 425.417 236.813L423.746 214.731C393.548 214.47 366.507 217.159 336.805 223.24V223.266ZM338.005 379.923C352.021 383.969 384.543 388.171 433.117 388.171C481.69 388.171 513.794 384.021 527.967 380.002C473.207 326.364 392.765 326.338 338.031 379.923H338.005ZM325.138 393.078C312.427 407.303 301.569 422.937 292.538 439.616C341.868 462.193 523.686 462.167 573.409 439.746C564.352 423.016 553.441 407.303 540.678 393.026C527.471 399.316 498.134 405.137 433.117 405.137C403.936 405.137 376.687 403.597 356.38 400.778C342.077 398.794 331.898 396.341 325.164 393.078H325.138ZM598.465 506.643C594.393 488.842 588.573 471.459 580.978 454.911C571.947 459.505 558.531 463.185 540.13 466.186C484.848 475.661 381.333 475.661 326.051 466.186C307.467 463.159 293.947 459.426 284.916 454.78C277.295 471.38 271.448 488.764 267.377 506.617C302.717 530.316 563.856 530.081 598.439 506.617L598.465 506.643ZM263.67 523.478L252.917 572.756L252.969 572.808C289.223 604.521 576.253 604.625 612.873 572.808H612.925L602.172 523.504C541.383 548.065 324.694 548.143 263.67 523.504V523.478ZM241.041 265.367C245.243 276.538 249.445 287.735 253.674 298.906C261.086 318.038 278.678 320.988 297.471 315.167C315.585 309.555 328.766 296.609 323.572 275.703C320.935 265.523 318.299 255.318 315.663 245.139C313.94 238.535 315.506 235.455 320.387 234.255C320.962 234.124 321.536 233.968 322.136 233.837C321.51 231.201 320.857 228.539 320.231 225.902C308.355 228.774 296.531 232.036 284.838 235.716C285.647 238.326 286.482 240.91 287.292 243.52C288.101 243.259 288.884 243.025 289.693 242.764C295.774 240.884 299.846 242.424 301.725 248.976C304.388 258.215 307.076 267.481 309.738 276.721C313.21 288.91 307.18 296.244 296.453 299.481C285.412 302.821 276.982 299.585 272.936 287.318C269.7 277.425 266.489 267.507 263.253 257.615C262 253.778 263.67 250.75 267.716 249.498C268.943 249.106 270.169 248.741 271.396 248.375C270.613 245.765 269.804 243.155 269.021 240.545C254.953 244.826 241.015 249.68 227.234 255.161C228.251 257.693 229.243 260.225 230.235 262.757C231.018 262.444 231.801 262.13 232.61 261.817C236.447 260.329 239.658 261.634 241.067 265.393L241.041 265.367ZM350.116 788.349H341.398C337.849 788.349 336.622 786.861 336.622 783.833V739.879H323.676C317.829 746.3 312.74 749.067 302.012 750.555V756.819C307.859 756.453 311.983 755.958 315.063 755.488C317.36 755.122 318.56 756.01 318.56 758.463V783.833C318.56 786.861 317.334 788.349 313.732 788.349H304.962V795.083H350.09V788.349H350.116ZM419.074 772.479C419.074 762.561 411.114 756.767 403.31 754.052C409.417 752.199 416.099 748.362 416.099 740.662C416.099 730.744 406.076 723.723 390.364 723.723C374.651 723.723 363.245 731.684 363.245 746.326C363.245 754.391 369.3 760.812 376.896 764.205C369.144 766.006 361.653 770.365 361.653 778.848C361.653 788.818 372.902 796.309 389.163 796.309C405.424 796.309 419.101 788.401 419.101 772.427L419.074 772.479ZM488.92 769.608C488.92 754.47 481.012 738.6 459.922 738.6C442.878 738.6 432.099 749.171 432.099 763.24C432.099 775.82 440.973 784.695 453.11 784.695C461.749 784.695 468.196 780.727 471.172 774.176C470.858 787.67 463.106 802.574 438.52 810.221L439.59 815.05C472.868 809.516 488.92 793.647 488.92 769.608ZM559.001 772.897C559.001 761.439 550.127 752.564 537.99 752.564C529.507 752.564 523.19 756.375 520.163 761.647C520.215 742.437 533.866 728.473 558.661 730.013L557.696 725.028C554.198 724.115 550.649 723.801 547.49 723.801C522.956 723.801 502.049 740.95 502.049 765.745C502.049 782.319 510.532 796.388 531.464 796.388C548.247 796.388 559.027 785.817 559.027 772.923L559.001 772.897ZM625.01 628.142L616.892 590.948C560.097 621.225 306.084 621.33 248.949 590.948L240.832 628.142C239.527 634.093 241.067 640.409 245.321 644.82C261.713 661.89 312.896 672.513 372.641 676.715C389.32 676.663 399.969 665.309 402.84 651.685C409.835 618.406 456.425 618.406 463.42 651.685C466.265 665.231 476.862 676.559 493.41 676.689C550.544 671.939 631.665 661.786 625.062 628.142H625.01ZM525.07 302.221C537.598 304.962 550.022 308.25 562.342 312.035C563.151 309.425 563.96 306.841 564.769 304.231C563.699 303.892 562.603 303.578 561.533 303.239C557.983 302.169 556.495 299.298 557.591 295.435L562.838 277.138C572.13 279.801 581.526 282.802 590.766 285.804L584.893 303.918C583.64 307.755 580.795 309.294 577.245 308.198C576.175 307.859 575.079 307.52 573.983 307.206C573.2 309.816 572.417 312.427 571.608 315.037C583.953 318.769 596.194 323.023 608.279 327.826C609.297 325.294 610.289 322.763 611.307 320.231C610.315 319.839 610.211 319.761 609.193 319.396C605.669 318.143 604.312 315.193 605.617 311.383L621.904 265.054C623.261 261.269 626.106 259.599 630.099 261.008C631.248 261.426 632.37 261.817 633.519 262.235C634.458 259.677 635.398 257.119 636.338 254.561C622.034 249.341 608.723 244.382 594.263 239.997C593.48 242.607 592.697 245.217 591.914 247.827C593.141 248.193 594.367 248.584 595.594 248.949C599.64 250.202 601.31 253.23 600.057 257.067L594.707 273.589C585.206 270.509 575.914 267.533 566.361 264.793L571.164 248.114C572.26 244.225 575.34 242.659 579.386 243.886C580.612 244.251 581.839 244.617 583.066 245.008C583.875 242.398 584.684 239.814 585.467 237.204C571.059 232.741 557.487 229.478 542.923 225.798C542.244 228.434 541.592 231.07 540.913 233.733C542.061 234.02 543.236 234.333 544.384 234.62C548.43 235.69 550.231 238.64 549.161 242.503L536.163 290.032C535.092 293.921 532.326 295.592 528.776 294.678C527.758 294.417 527.81 294.548 526.792 294.313C526.218 296.975 525.618 299.637 525.044 302.299L525.07 302.221ZM430.219 284.838C429.593 284.838 428.967 284.838 428.34 284.838C428.34 287.553 428.392 290.293 428.419 293.008C438.728 292.929 449.064 293.19 459.348 293.791C459.505 291.076 459.661 288.362 459.844 285.621C458.382 285.543 456.895 285.464 455.433 285.386C451.466 285.177 450.187 282.358 452.17 277.713C453.475 274.659 454.806 271.631 456.138 268.603C464.568 269.021 472.999 269.647 481.429 270.509C482.447 274.241 483.413 278 484.353 281.732C485.318 285.569 483.7 287.631 480.046 287.239C478.402 287.083 476.757 286.926 475.139 286.77C474.904 289.484 474.643 292.198 474.382 294.913C487.485 296.114 500.535 297.888 513.507 300.211C514.003 297.523 514.473 294.861 514.943 292.172C514.421 292.094 513.899 291.99 513.377 291.885C509.435 291.181 507.478 290.215 506.303 284.681L488.476 216.845C481.325 216.089 474.173 215.488 466.996 215.018L438.807 276.773C436.484 282.567 434.918 284.786 430.193 284.786L430.219 284.838ZM471.798 237.961C471.38 237.935 470.963 237.909 470.519 237.857C467.544 243.808 464.673 249.785 461.906 255.788C467.152 256.101 472.398 256.493 477.619 256.988C475.765 250.646 473.834 244.303 471.798 237.961ZM459.87 746.091C453.919 746.091 450.265 751.338 450.265 761.856C450.265 771.722 453.919 776.838 459.87 776.838C465.821 776.838 469.423 771.696 469.423 761.7C469.423 751.703 465.873 746.091 459.87 746.091ZM866.025 249.993V750.007L433.012 1000L0 750.007V249.993L433.012 0L866.025 249.993ZM842.534 263.566L433.012 27.1187L23.4907 263.566V736.46L433.012 972.881L842.534 736.46V263.566Z\" fill=\"#071D49\"/>\n</g>\n<defs>\n<clipPath id=\"clip0_127_29502\">\n<rect width=\"866.025\" height=\"1000\" fill=\"white\"/>\n</clipPath>\n</defs>\n</svg>\n";
|
|
2161
2166
|
//#endregion
|
|
2162
2167
|
//#region src/js/renderables/logoTitle/LogoTitle.js
|
|
2163
|
-
function
|
|
2164
|
-
let e = h(), t = e.titleUrl || e.titleURL, n = d(t ?
|
|
2168
|
+
function pr() {
|
|
2169
|
+
let e = h(), t = e.titleUrl || e.titleURL, n = d(t ? ur : lr);
|
|
2165
2170
|
if (!n) throw Error("LogoTitle: titleWrapper is null");
|
|
2166
2171
|
if (t && n.setAttribute("href", t), e.titleFunction) {
|
|
2167
2172
|
if (n.onclick) throw Error("LogoTitle: logoTitleWrapper already has an onclick");
|
|
@@ -2175,6 +2180,14 @@ function ur() {
|
|
|
2175
2180
|
if (i.htmlString) e = d(y(i.htmlString));
|
|
2176
2181
|
else if (i.element) e = y(i.element);
|
|
2177
2182
|
else if (i.imageUrl) e = d(`<img src=${y(i.imageUrl)} id="design-system-logo" />`);
|
|
2183
|
+
else if (i.icon) switch (i.icon) {
|
|
2184
|
+
case "industry":
|
|
2185
|
+
e = d(dr);
|
|
2186
|
+
break;
|
|
2187
|
+
default:
|
|
2188
|
+
e = d(fr);
|
|
2189
|
+
break;
|
|
2190
|
+
}
|
|
2178
2191
|
else throw Error("LogoTitle: logo set but has no settings");
|
|
2179
2192
|
!s && i ? e.setAttribute("alt", `${c} logo`) : e.setAttribute("role", "presentation"), r.appendChild(e);
|
|
2180
2193
|
} else n.removeChild(r);
|
|
@@ -2183,21 +2196,21 @@ function ur() {
|
|
|
2183
2196
|
}
|
|
2184
2197
|
//#endregion
|
|
2185
2198
|
//#region src/js/renderables/headerWrapper/html/HeaderLogoWrapper.html?raw
|
|
2186
|
-
var
|
|
2199
|
+
var mr = "<div class=\"utds-logo-wrapper\"></div>\n", hr = "<header class=\"utah-design-system utds-header\" aria-label=\"Utah.gov Header\"></header>\n";
|
|
2187
2200
|
//#endregion
|
|
2188
2201
|
//#region src/js/renderables/headerWrapper/HeaderWrapper.js
|
|
2189
|
-
function
|
|
2190
|
-
let e = d(
|
|
2202
|
+
function gr() {
|
|
2203
|
+
let e = d(hr);
|
|
2191
2204
|
e.classList.add(`utds-header--${h().size?.toLowerCase() || r.MEDIUM}`);
|
|
2192
|
-
let t = d(
|
|
2193
|
-
return e.appendChild(t), t.appendChild(
|
|
2205
|
+
let t = d(mr);
|
|
2206
|
+
return e.appendChild(t), t.appendChild(pr()), e.appendChild(sr()), e.appendChild(d(cr)), e;
|
|
2194
2207
|
}
|
|
2195
2208
|
//#endregion
|
|
2196
2209
|
//#region src/js/renderables/search/html/SearchModal.html?raw
|
|
2197
|
-
var
|
|
2210
|
+
var _r = "<div class=\"utah-design-system visually-hidden\" id=\"search-modal\">\n <div class=\"search-modal__close-button-wrapper\">\n <button type=\"button\" class=\"search-modal__close-button button icon-button icon-button--borderless\">\n <span class=\"utds-icon-before-x-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Close search modal</span>\n </button>\n </div>\n <div class=\"search-modal\">\n <form class=\"search-modal__form hcenter\" role=\"search\" aria-label=\"Sitewide\" autocomplete=\"off\">\n <span class=\"utds-icon-before-search search-modal__icon-search search-input__icon-search vcenter\" aria-hidden=\"true\"></span>\n <label for=\"search-modal-input-id\" class=\"search-modal__input-label visually-hidden\">Enter your search\n terms</label>\n <input type=\"text\" id=\"search-modal-input-id\" placeholder=\"Search\" class=\"search-modal__input\">\n <div class=\"search-modal__button-wrapper vcenter visually-hidden\">\n <button type=\"submit\" class=\"search-modal__button button button--solid button--primary-color\">\n Search Now\n </button>\n </div>\n <div aria-hidden=\"true\" tabindex=\"0\" class=\"search-modal__hidden-last-focusable visually-hidden\">\n end of search form\n </div>\n </form>\n </div>\n <div class=\"search-backdrop modal-backdrop backdrop-dark\"></div>\n</div>\n";
|
|
2198
2211
|
//#endregion
|
|
2199
2212
|
//#region src/js/renderables/search/searchModal.js
|
|
2200
|
-
function
|
|
2213
|
+
function vr(e) {
|
|
2201
2214
|
let t = c(e || document.getElementById(o.SEARCH__SEARCH_MODAL), `setupSearchModal: '#${o.SEARCH__SEARCH_MODAL}' not found`), n = c(t.querySelector(a(o.SEARCH__SEARCH_BACKDROP)), "setupSearchModal: backdrop not found"), r = c(t.querySelector(a(o.SEARCH__SEARCH_CLOSE_BUTTON)), "setupSearchModal: closeButton not found"), i = c(t.querySelector(a(o.SEARCH__SEARCH_BUTTON)), "setupSearchModal: searchButton not found"), s = c(t.querySelector(a(o.SEARCH__SEARCH_BUTTON_WRAPPER)), "setupSearchModal: searchButtonWrapper not found"), l = c(t.querySelector(a(o.SEARCH__SEARCH_INPUT)), "setupSearchModal: searchInput not found");
|
|
2202
2215
|
return {
|
|
2203
2216
|
backdrop: n,
|
|
@@ -2209,51 +2222,51 @@ function hr(e) {
|
|
|
2209
2222
|
searchModal: t
|
|
2210
2223
|
};
|
|
2211
2224
|
}
|
|
2212
|
-
function
|
|
2225
|
+
function $() {
|
|
2213
2226
|
c(document.getElementById(o.SEARCH__SEARCH_MODAL), "closeSearchModal: search modal not found").classList.add(o.VISUALLY_HIDDEN);
|
|
2214
|
-
let { closeButton: e, hiddenLastFocusableButton: t } =
|
|
2227
|
+
let { closeButton: e, hiddenLastFocusableButton: t } = vr(), n = document.querySelector(a(o.MAIN_MENU__SEARCH));
|
|
2215
2228
|
n && document.activeElement?.closest(`#${o.SEARCH__SEARCH_MODAL}`) && n.focus(), e.tabIndex = -1, t.tabIndex = -1;
|
|
2216
2229
|
}
|
|
2217
|
-
function
|
|
2230
|
+
function yr() {
|
|
2218
2231
|
c(document.getElementById(o.SEARCH__SEARCH_MODAL), "showSearchModal: search modal not found").classList.remove(o.VISUALLY_HIDDEN);
|
|
2219
|
-
let { searchInput: e, closeButton: t, hiddenLastFocusableButton: n } =
|
|
2232
|
+
let { searchInput: e, closeButton: t, hiddenLastFocusableButton: n } = vr();
|
|
2220
2233
|
e.focus(), t.tabIndex = 0, n.tabIndex = 0;
|
|
2221
2234
|
}
|
|
2222
|
-
function
|
|
2223
|
-
let e = d(
|
|
2235
|
+
function br() {
|
|
2236
|
+
let e = d(_r), { backdrop: t, closeButton: n, hiddenLastFocusableButton: r, searchButton: i, searchButtonWrapper: a, searchInput: s } = vr(e);
|
|
2224
2237
|
i.onclick = (e) => {
|
|
2225
|
-
e.preventDefault(), e.stopPropagation(),
|
|
2238
|
+
e.preventDefault(), e.stopPropagation(), $();
|
|
2226
2239
|
let { onSearch: t } = h();
|
|
2227
2240
|
t && t?.(s.value);
|
|
2228
2241
|
}, n.onclick = (e) => {
|
|
2229
|
-
e.preventDefault(), e.stopPropagation(),
|
|
2242
|
+
e.preventDefault(), e.stopPropagation(), $();
|
|
2230
2243
|
}, t.onclick = (e) => {
|
|
2231
|
-
e.preventDefault(), e.stopPropagation(),
|
|
2244
|
+
e.preventDefault(), e.stopPropagation(), $();
|
|
2232
2245
|
}, document.body.appendChild(e), s.oninput = () => {
|
|
2233
2246
|
a.classList.remove(o.VISUALLY_HIDDEN);
|
|
2234
2247
|
}, i.onfocus = () => {
|
|
2235
2248
|
a.classList.remove(o.VISUALLY_HIDDEN);
|
|
2236
2249
|
}, e.onkeyup = (e) => {
|
|
2237
|
-
(e.code === "Escape" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(),
|
|
2250
|
+
(e.code === "Escape" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(), $());
|
|
2238
2251
|
}, n.addEventListener("focusout", (t) => {
|
|
2239
|
-
t.preventDefault(), t.stopPropagation(), e.classList.contains(o.VISUALLY_HIDDEN) || (
|
|
2252
|
+
t.preventDefault(), t.stopPropagation(), e.classList.contains(o.VISUALLY_HIDDEN) || (sn[cn.SHIFT] ? i.focus() : s.focus());
|
|
2240
2253
|
}), r.addEventListener("focusin", (t) => {
|
|
2241
2254
|
t.preventDefault(), t.stopPropagation(), e.classList.contains(o.VISUALLY_HIDDEN) || n.focus();
|
|
2242
|
-
}),
|
|
2255
|
+
}), $();
|
|
2243
2256
|
}
|
|
2244
2257
|
//#endregion
|
|
2245
2258
|
//#region src/js/renderables/mainMenu/html/MainMenuItem.html?raw
|
|
2246
|
-
var
|
|
2259
|
+
var xr = "<li class=\"menu-item\">\n <span class=\"menu-item__title\">\n <button class=\"menu-item__button-title\" type=\"button\">\n <span class=\"menu-item__link-title-span\"></span>\n <span class=\"menu-item__menu-arrow utds-icon-before-chevron-down\" aria-hidden=\"true\"></span>\n </button>\n <a class=\"menu-item__link-title\">\n <span class=\"menu-item__link-title-span\"></span>\n <span class=\"menu-item__menu-arrow utds-icon-before-chevron-down\" aria-hidden=\"true\"></span>\n </a>\n <span class=\"menu-chiclet\"></span>\n </span>\n</li>\n", Sr = "<div class=\"utah-design-system main-menu__outer\">\n <div class=\"main-menu__wrapper\">\n <nav class=\"horizontal-menu main-menu__nav\">\n <ul class=\"main-menu__menu-top\"></ul>\n </nav>\n <div class=\"main-menu__search\">\n <button type=\"button\" class=\"button icon-button icon-button--borderless\">\n <span>\n <span class=\"utds-icon-before-search\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">search</span>\n </span>\n </button>\n </div>\n <div class=\"utds-header-mobile__vip-action-items--left\">\n </div>\n <div class=\"utds-header-mobile__utah-id-wrapper\">\n </div>\n <div class=\"utds-header-mobile__vip-action-items--right\">\n </div>\n <button type=\"button\" class=\"button icon-button icon-button--borderless main-menu__hamburger\"\n id=\"utds-main-menu__hamburger\" aria-controls=\"utds-header-mobile-menu\">\n <span>\n <span class=\"utds-icon-before-hamburger\" id=\"utds-main-menu__hamburger-icon\" aria-hidden=\"true\"></span>\n </span>\n </button>\n </div>\n</div>\n";
|
|
2247
2260
|
//#endregion
|
|
2248
2261
|
//#region src/js/renderables/mainMenu/renderMainMenu.js
|
|
2249
|
-
function
|
|
2250
|
-
let t = h(), n = d(
|
|
2262
|
+
function Cr() {
|
|
2263
|
+
let t = h(), n = d(Sr), r = n.querySelector(a(o.MAIN_MENU__NAV));
|
|
2251
2264
|
if (!r) throw Error("renderMainMenu(): mainMenu not created");
|
|
2252
2265
|
if (t.mainMenu ? r.setAttribute("aria-label", t.mainMenu.title || "Main Menu") : (r.remove(), r = null), t.mainMenu) {
|
|
2253
2266
|
let n = r?.querySelector(a(o.MAIN_MENU__MENU_TOP));
|
|
2254
2267
|
if (!n) throw Error("renderMainMenu(): mainMenuTop not found");
|
|
2255
2268
|
t.mainMenu.menuItems.forEach((r) => {
|
|
2256
|
-
let i = d(
|
|
2269
|
+
let i = d(xr);
|
|
2257
2270
|
n.appendChild(i);
|
|
2258
2271
|
let s = c(i.querySelector(a(o.MENU_ITEM__TITLE)), `renderMainMenu(): sub menu title not found for ${r.title}`), l = c(s.querySelector(a(o.MENU_ITEM__BUTTON_TITLE)), `renderMainMenu(): button title not found for ${r.title}`);
|
|
2259
2272
|
l.setAttribute("id", `${o.MENU_ITEM__BUTTON_TITLE}__${r.title.replaceAll(" ", "")}-${g()}`), r.className && l.classList.add(r.className);
|
|
@@ -2274,16 +2287,16 @@ function xr() {
|
|
|
2274
2287
|
actionUrl: r.actionUrl,
|
|
2275
2288
|
className: r.className,
|
|
2276
2289
|
icon: r.icon,
|
|
2277
|
-
title: `${r.title}${
|
|
2290
|
+
title: `${r.title}${hn(r, n.parentMenuLinkSuffix)}`
|
|
2278
2291
|
});
|
|
2279
|
-
let s =
|
|
2292
|
+
let s = Tn({
|
|
2280
2293
|
menuItems: a,
|
|
2281
2294
|
title: r.title
|
|
2282
2295
|
}, f, {
|
|
2283
2296
|
childrenMenuType: r.childrenMenuType || e.FLYOUT,
|
|
2284
2297
|
parentMenuLinkSuffix: n.parentMenuLinkSuffix
|
|
2285
2298
|
});
|
|
2286
|
-
s.setAttribute("role", "dialog"), i.appendChild(s),
|
|
2299
|
+
s.setAttribute("role", "dialog"), i.appendChild(s), J(i, f, s, "menu", {
|
|
2287
2300
|
shouldFocusOnHover: !0,
|
|
2288
2301
|
doNotClosePopupOnClick: !0
|
|
2289
2302
|
});
|
|
@@ -2304,7 +2317,7 @@ function xr() {
|
|
|
2304
2317
|
} else c(f.querySelector(a(o.MENU_ITEM__ARROW)), `renderMainMenu(): menu arrow not found for ${r.title}`).remove();
|
|
2305
2318
|
if (r.actionFunction ? (p.innerHTML = r.title, r.actionMenu || (f.onclick = r.actionFunction)) : r.actionFunctionUrl ? (p.innerHTML = r.title, f.tagName === "A" && f.setAttribute("href", r.actionFunctionUrl.url), r.actionMenu || (f.onclick = (e) => {
|
|
2306
2319
|
r.actionFunctionUrl?.skipHandleEvent || (e.stopPropagation(), e.preventDefault()), r.actionFunctionUrl?.actionFunction(e);
|
|
2307
|
-
})) : r.actionUrl && (p.innerHTML = r.title, f.tagName === "A" && f.setAttribute("href", r.actionUrl.url)), !r.actionMenu && (r.actionUrl?.openInNewTab || r.actionFunctionUrl?.openInNewTab) && (f.setAttribute("target", "_blank"), f.appendChild(d(
|
|
2320
|
+
})) : r.actionUrl && (p.innerHTML = r.title, f.tagName === "A" && f.setAttribute("href", r.actionUrl.url)), !r.actionMenu && (r.actionUrl?.openInNewTab || r.actionFunctionUrl?.openInNewTab) && (f.setAttribute("target", "_blank"), f.appendChild(d(pn))), r.icon) {
|
|
2308
2321
|
let e = d(r.icon);
|
|
2309
2322
|
e.setAttribute("role", "presentation"), f.insertBefore(e, p);
|
|
2310
2323
|
}
|
|
@@ -2312,25 +2325,25 @@ function xr() {
|
|
|
2312
2325
|
}
|
|
2313
2326
|
let i = null;
|
|
2314
2327
|
if (t.utahId) {
|
|
2315
|
-
let { button: e, menu: t } =
|
|
2328
|
+
let { button: e, menu: t } = ar();
|
|
2316
2329
|
i = t, c(n.querySelector(a(o.MOBILE__UTAH_ID)), "renderMainMenu: utahIdButtonWrapper not found").appendChild(e);
|
|
2317
2330
|
}
|
|
2318
2331
|
let s = c(n.querySelector(a(o.MAIN_MENU__SEARCH)), "renderMainMenu: searchIcon not found");
|
|
2319
2332
|
if (t.onSearch) {
|
|
2320
|
-
|
|
2333
|
+
br();
|
|
2321
2334
|
let e = d(s.outerHTML);
|
|
2322
|
-
if (
|
|
2323
|
-
if (s.onclick = () =>
|
|
2335
|
+
if (Et(s, document.createTextNode("Search")), s.onclick) throw Error("searchIcon already has onclick");
|
|
2336
|
+
if (s.onclick = () => yr(), !t.mainMenu) {
|
|
2324
2337
|
let n = c(document.querySelector(a(o.CITIZEN_EXPERIENCE)), "renderMainMenu: citizen experience wrapper not found");
|
|
2325
|
-
if (
|
|
2338
|
+
if (Et(e, document.createTextNode("Search")), e.onclick = () => yr(), s.classList.add(o.DESKTOP__HIDDEN), t.utahId !== !1) {
|
|
2326
2339
|
let t = c(document.querySelector(a(o.UTAH_ID)), "renderMainMenu: utahId wrapper not found");
|
|
2327
2340
|
n.insertBefore(e, t);
|
|
2328
2341
|
} else n.appendChild(e);
|
|
2329
2342
|
}
|
|
2330
2343
|
if (!t.mainMenu && !t.actionItems && t.utahId === !1) {
|
|
2331
2344
|
let e = d(s.outerHTML);
|
|
2332
|
-
if (
|
|
2333
|
-
e.onclick = () =>
|
|
2345
|
+
if (Et(e, document.createTextNode("Search")), e.onclick) throw Error("searchIconMobile already has onclick");
|
|
2346
|
+
e.onclick = () => yr(), c(document.querySelector(a(o.CITIZEN_EXPERIENCE_MOBILE)), "renderMainMenu: citizen-experience--mobile not found").appendChild(e);
|
|
2334
2347
|
}
|
|
2335
2348
|
}
|
|
2336
2349
|
return t.onSearch || ((t.mainMenu || !t.mainMenu && t.utahId) && s.parentElement?.insertBefore(d("<div class=\"main-menu__search-placeholder\">"), s), s.remove()), {
|
|
@@ -2340,35 +2353,35 @@ function xr() {
|
|
|
2340
2353
|
}
|
|
2341
2354
|
//#endregion
|
|
2342
2355
|
//#region src/js/renderables/officialBanner/html/OfficialBanner.html?raw
|
|
2343
|
-
var Sr = "<div class=\"utah-design-system utds-official-website__wrapper\">\n <div class=\"utds-official-website__banner\">\n <span>An official website of the state of Utah.</span>\n <button class=\"utds-official-website__button\" type=\"button\">\n <span class=\"utds-official-website__button-title--desktop\">Here is how you know</span>\n <span class=\"utds-official-website__button-title--mobile\">Official website of the state of Utah</span>\n <svg width=\"8\" height=\"5\" viewBox=\"0 0 8 5\">\n <path d=\"M4 5L0 0.945946L0.933333 0L4 3.10811L7.06667 0L8 0.945946L4 5Z\"/>\n </svg>\n </button>\n </div>\n</div>\n", Cr = "<div class=\"utah-design-system utds-official-website-popup__wrapper visually-hidden\" tabindex=\"-1\" role=\"dialog\">\n <div class=\"utds-official-website-popup__content\">\n <div class=\"utds-official-website-popup__col\">\n <div class=\"utds-icon-before-verified big-icon\" aria-hidden=\"true\"></div>\n <div>\n <strong>Official Utah websites use utah.gov in the browser's address bar.</strong><br />\n A Utah.gov website belongs to an official government organization in the state of Utah.\n <div class=\"utds-official-website-popup__address-bar\"></div>\n </div>\n </div>\n <div class=\"utds-official-website-popup__col\">\n <div class=\"utds-icon-before-lock big-icon\" aria-hidden=\"true\"></div>\n <div>\n <strong>Be careful when sharing sensitive information.</strong><br />\n Share sensitive information only on secure official Utah.gov websites.\n </div>\n </div>\n <div>\n <svg class=\"utds-official-website-popup__official-image\" viewBox=\"0 0 252 65\" role=\"img\">\n <g>\n <path d=\"M73.5401 39.2395V18.4602C73.5401 16.6737 72.7886 15.7966 70.6885 15.7966H68.5884V11.8165H89.398V15.7966H87.2978C85.1655 15.7966 84.4445 16.6737 84.4445 18.4602V39.1445C84.4445 45.1927 88.1749 47.6069 93.8782 47.6069C99.5814 47.6069 103.717 45.1945 103.717 39.1445V18.4602C103.717 16.6737 102.996 15.7966 100.803 15.7966H96.5398V11.8165H113.368V15.7966H111.237C109.107 15.7966 108.386 16.6737 108.386 18.4602V39.2395C108.386 49.1745 101.648 53.9062 91.2114 53.9062C80.7753 53.9062 73.5368 49.1745 73.5368 39.2395H73.5401Z\"/>\n <path d=\"M126.322 49.2051H128.515C130.613 49.2051 131.334 48.328 131.334 46.5415V15.7966H128.734C124.691 15.7966 122.717 16.9554 121.809 21.4377L120.869 25.8266H117.234V11.8165H156.344V25.8266H152.739L151.8 21.4377C150.86 16.8926 148.916 15.7966 144.873 15.7966H142.273V46.5415C142.273 48.328 142.961 48.954 145.094 48.954H147.255V53.1852H126.322V49.2051Z\"/>\n <path d=\"M180.229 49.2051H183.144C185.055 49.2051 185.683 48.328 184.93 46.321L182.423 39.6773H168.321L165.813 46.321C165.062 48.3263 165.688 49.2051 167.6 49.2051H170.733V53.1852H154.751V49.2051H156.035C158.292 49.2051 159.294 48.3585 160.266 45.8205L173.271 11.8165H183.016L196.023 45.8205C196.995 48.3585 197.997 49.2051 200.253 49.2051H201.287V53.1852H180.228V49.2051H180.229ZM180.73 35.1644L175.403 20.9049L170.014 35.1644H180.731H180.73Z\"/>\n <path d=\"M231.192 49.2051H233.292C235.423 49.2051 236.144 48.328 236.144 46.5415V34.1923H220.444V46.5415C220.444 48.328 221.165 49.2051 223.295 49.2051H225.396V53.1852H204.588V49.2051H206.688C208.788 49.2051 209.54 48.328 209.54 46.5415V18.4602C209.54 16.6737 208.788 15.7966 206.688 15.7966H204.588V11.8165H225.396V15.7966H223.295C221.165 15.7966 220.444 16.6737 220.444 18.4602V29.6795H236.144V18.4602C236.144 16.6737 235.423 15.7966 233.292 15.7966H231.192V11.8165H252V15.7966H249.9C247.8 15.7966 247.048 16.6737 247.048 18.4602V46.5415C247.048 48.328 247.8 49.2051 249.9 49.2051H252V53.1852H231.192V49.2051Z\"/>\n <path d=\"M30.6978 49.3815C30.6978 50.0805 30.4383 50.4402 30.0294 50.4402C29.6206 50.4402 29.3577 50.0839 29.3577 49.3917C29.3577 48.6554 29.6138 48.289 30.0294 48.289C30.4451 48.289 30.6978 48.6639 30.6978 49.3815ZM25.3457 49.9652L24.45 49.653C24.2159 49.8753 24.1124 50.0958 24.1124 50.3588C24.1124 50.9424 24.4907 51.2834 25.193 51.2834C25.858 51.2834 26.1667 50.9407 26.1667 50.6065C26.1667 50.2722 25.9444 50.1722 25.3457 49.9635L25.3457 49.9652ZM24.9674 48.4789L25.8597 48.7758C26.0378 48.5756 26.0972 48.3669 26.0972 48.1294C26.0972 47.5798 25.7223 47.2489 25.1167 47.2489C24.5111 47.2489 24.2702 47.5051 24.2702 47.8427C24.2702 48.1328 24.4891 48.3177 24.9691 48.4772L24.9674 48.4789ZM35.0219 49.2882C34.6097 49.2882 34.3502 49.6479 34.3502 50.262C34.3502 50.9084 34.6029 51.2833 35.0219 51.2833C35.4409 51.2833 35.6937 50.9152 35.6937 50.262C35.6937 49.6444 35.4376 49.2882 35.0219 49.2882ZM39.7464 17.125C39.9143 16.6516 39.7311 16.4463 39.3885 16.3242L39.0543 16.2054L38.6353 17.3845L38.9729 17.505C39.3121 17.6255 39.5852 17.5797 39.7464 17.125ZM21.12 18.1344L21.2405 18.109C21.7613 17.997 22.2668 17.5305 22.0259 16.4057C21.7783 15.2435 21.1354 15.0603 20.6129 15.1706L20.2379 15.2503L20.8147 17.9512C20.8487 18.109 20.9165 18.1768 21.1184 18.1344H21.12ZM28.1431 4.16841L52.678 18.3346V46.667L28.1431 60.8332L3.60822 46.667V18.3329L28.1431 4.16841ZM28.1431 21.7108C25.6816 21.7108 23.702 22.8203 22.1735 24.2506C23.0556 24.505 25.0997 24.7697 28.155 24.7697C31.2102 24.7697 33.2289 24.5084 34.1194 24.2557C32.5893 22.8238 30.6096 21.7109 28.1448 21.7109L28.1431 21.7108ZM39.4597 36.3825L38.7862 33.2813C38.145 33.5646 37.1899 33.7886 35.8769 33.9752C33.8328 34.2653 31.0863 34.4265 28.1448 34.4265C25.2032 34.4265 22.4567 34.2653 20.4126 33.9752C19.0962 33.7886 18.1412 33.5629 17.4999 33.2796L16.8265 36.3809C16.8299 36.386 17.1284 36.9713 20.4058 37.4243C22.4907 37.711 25.2388 37.8704 28.143 37.8704C31.0473 37.8704 33.7954 37.7126 35.8802 37.4243C39.1577 36.973 39.4579 36.3877 39.4596 36.3809L39.4597 36.3825ZM38.5538 32.2226C38.2977 31.1029 37.9312 30.0103 37.4546 28.9686C36.8863 29.257 36.0415 29.4878 34.8863 29.6778C33.1051 29.9679 30.7149 30.1291 28.155 30.1291C25.5952 30.1291 23.2032 29.9696 21.4238 29.6778C20.2549 29.4878 19.4051 29.2536 18.8368 28.9601C18.3584 30.0035 17.9903 31.0978 17.7341 32.2209C18.6264 32.7315 22.1363 33.361 28.1465 33.361C34.1568 33.361 37.6582 32.7332 38.5556 32.2226L38.5538 32.2226ZM36.9779 28.0151C36.5639 27.2517 36.089 26.5188 35.5495 25.83C35.3511 25.5772 35.1407 25.3244 34.9201 25.0784C34.0889 25.4737 32.245 25.8402 28.155 25.8402C26.3195 25.8402 24.6061 25.7435 23.3287 25.5654C22.4296 25.4415 21.7901 25.2854 21.366 25.0819C21.1455 25.3279 20.9368 25.579 20.7383 25.8317C20.2006 26.5188 19.7273 27.2484 19.315 28.0084C19.6594 28.1882 20.3905 28.4512 21.9139 28.6752C23.6018 28.9246 25.819 29.062 28.1549 29.062C30.4908 29.062 32.708 28.9246 34.3959 28.6752C35.8955 28.4529 36.6266 28.1967 36.9778 28.0169L36.9779 28.0151ZM23.7748 14.1679L23.7986 14.5683L23.9682 14.5581C24.1633 14.5462 24.2346 14.6226 24.2448 14.7837L24.3584 16.655C24.4144 17.5847 25.0913 17.9698 26.0921 17.9088C27.0591 17.8511 27.6782 17.3879 27.6222 16.4582L27.5086 14.5869C27.4984 14.4257 27.5578 14.3409 27.7528 14.329L27.9225 14.3188L27.8988 13.9184L26.35 14.0118L26.3737 14.4121L26.7655 14.3884C26.9606 14.3765 27.0302 14.4529 27.0387 14.614L27.1506 16.4717C27.1828 17.0044 26.8283 17.2216 26.3431 17.2521C25.8596 17.281 25.5102 17.1063 25.4779 16.5735L25.366 14.7174C25.3558 14.5563 25.4152 14.4714 25.6103 14.4596L25.7799 14.4494L25.7562 14.049L23.7731 14.1695L23.7748 14.1679ZM18.6331 15.1824L18.7163 15.5743L18.8825 15.5387C19.0742 15.498 19.1556 15.5625 19.1896 15.7203L19.7154 18.1854C19.7494 18.3432 19.7018 18.4365 19.5102 18.4772L19.3439 18.5128L19.427 18.9047L21.1557 18.5365C22.2939 18.2939 23.4526 17.6391 23.1387 16.1682C22.8249 14.6955 21.5034 14.5717 20.3617 14.8143L18.6331 15.1824ZM14.46 20.871L14.2734 20.5164L14.1224 20.5961C13.9494 20.6877 13.8544 20.6453 13.7798 20.5028L12.6041 18.2735C12.5295 18.131 12.5465 18.0292 12.7212 17.9376L12.8722 17.8579L12.6856 17.5033L10.9281 18.4313L11.1147 18.7859L11.2657 18.7061C11.4388 18.6145 11.5354 18.6553 11.6101 18.7978L12.7874 21.027C12.862 21.1696 12.8417 21.273 12.6687 21.3647L12.5177 21.4444L12.7043 21.7989L14.4617 20.871H14.46ZM15.0113 20.552L16.4923 19.9854L16.3497 19.6104L15.9511 19.7631C15.7679 19.8326 15.6797 19.78 15.622 19.6291L14.8145 17.5203L14.8382 17.5118L17.5812 19.5697L18.4413 19.2406L17.3098 16.2852C17.2521 16.1342 17.2827 16.0358 17.4659 15.9662L17.6253 15.9052L17.4828 15.5302L16.0036 16.0968L16.1461 16.4718L16.5448 16.3191C16.7279 16.2496 16.8161 16.3022 16.8739 16.4531L17.5032 18.0971L17.4795 18.1056L15.2097 16.4023L13.6524 16.9978L13.795 17.3727L13.9544 17.3116C14.1376 17.2421 14.2292 17.293 14.2869 17.444L15.1877 19.7988C15.2454 19.9498 15.2132 20.0482 15.0283 20.1194L14.8688 20.1805L15.0113 20.5555V20.552ZM22.3482 51.246H21.7392C21.4898 51.246 21.405 51.1426 21.405 50.9305V47.8546H20.4992C20.0903 48.3042 19.7342 48.4976 18.9826 48.6011V49.0388C19.3915 49.0133 19.6816 48.9794 19.897 48.9454C20.0565 48.92 20.143 48.9828 20.143 49.1541V50.9304C20.143 51.1425 20.0582 51.246 19.8054 51.246H19.193V51.7176H22.35V51.246L22.3482 51.246ZM27.1745 50.1365C27.1745 49.4409 26.6181 49.0372 26.0718 48.8471C26.4993 48.7165 26.9675 48.4501 26.9675 47.9106C26.9675 47.2167 26.2652 46.7247 25.166 46.7247C24.0667 46.7247 23.2677 47.2829 23.2677 48.3076C23.2677 48.8726 23.6918 49.3222 24.2227 49.5597C23.6799 49.6869 23.1574 49.9906 23.1574 50.5845C23.1574 51.2834 23.9446 51.8077 25.0811 51.8077C26.2177 51.8077 27.1762 51.2546 27.1762 50.1366L27.1745 50.1365ZM32.0617 49.9346C32.0617 48.876 31.5087 47.7647 30.0328 47.7647C28.8403 47.7647 28.0854 48.5045 28.0854 49.4885C28.0854 50.369 28.7062 50.9899 29.5561 50.9899C30.1617 50.9899 30.6113 50.7117 30.8199 50.2536C30.7979 51.1968 30.255 52.2419 28.5349 52.7763L28.6095 53.114C30.9387 52.7271 32.06 51.6159 32.06 49.9329L32.0617 49.9346ZM36.9643 50.1653C36.9643 49.3629 36.3434 48.7419 35.4935 48.7419C34.8998 48.7419 34.457 49.01 34.245 49.3781C34.2484 48.0327 35.2034 47.0555 36.9388 47.1641L36.8727 46.8146C36.6267 46.7518 36.379 46.7298 36.1602 46.7298C34.4434 46.7298 32.9795 47.9292 32.9795 49.6648C32.9795 50.8236 33.5732 51.8093 35.0372 51.8093C36.2111 51.8093 36.966 51.0696 36.966 50.167L36.9643 50.1653ZM40.2247 39.8638L39.7141 37.5243C39.0441 37.9026 37.9465 38.1978 36.3672 38.4354C34.1941 38.7611 31.2729 38.9393 28.1448 38.9393H28.1431C25.0149 38.9393 22.0938 38.7594 19.9207 38.4337C18.3413 38.1979 17.2438 37.9026 16.5754 37.5226L16.0648 39.8622C15.9834 40.2354 16.0801 40.6324 16.3464 40.9106C17.3778 41.9846 20.5959 42.6513 24.3533 42.916C25.4017 42.9126 26.0718 42.1983 26.2516 41.3416C26.4247 40.5154 27.1032 39.7672 28.1567 39.7672C29.2102 39.7672 29.887 40.5154 30.0618 41.3416C30.2416 42.1933 30.9065 42.9058 31.9482 42.9143C35.7006 42.6496 38.9152 41.9812 39.9466 40.909C40.213 40.6308 40.3097 40.2337 40.2282 39.8605L40.2247 39.8638ZM41.475 20.8659L43.2325 21.7922L43.4309 21.4156L43.2799 21.3358C43.1035 21.2425 43.0763 21.1662 43.151 21.0237L43.643 20.0889L45.2444 19.2644C45.4497 19.1575 45.5379 19.1592 45.6889 19.2372L45.7839 19.2864L45.9704 18.9319L44.6337 18.2278L44.4471 18.5824L44.6846 18.7079C44.822 18.7809 44.8186 18.8861 44.6761 18.9675L43.7058 19.5087L43.5939 18.3974C43.5752 18.2345 43.6652 18.17 43.8026 18.243L44.0367 18.3669L44.2233 18.0123L42.2843 16.991L42.0977 17.3455L42.1927 17.3947C42.3403 17.4728 42.3929 17.5457 42.4217 17.7764L42.6473 19.5646L42.1554 20.4977C42.0807 20.6403 41.9857 20.6827 41.8127 20.5911L41.6617 20.5113L41.475 20.8659ZM36.5809 18.5162L36.4469 18.8945L38.3214 19.5613L38.4554 19.183L38.2926 19.1253C38.1076 19.0592 38.0754 18.9624 38.1297 18.8097L38.508 17.7443L38.6471 17.7935C38.9237 17.8919 38.9525 18.0209 38.9457 18.2974L38.9254 19.0863C38.9135 19.5868 39.0611 19.8227 39.5921 20.0109L40.2876 20.2586L40.4216 19.8803L40.3266 19.8463C40.1688 19.7903 40.1146 19.6852 40.101 19.5087L40.045 18.7639C40.006 18.238 39.8126 18.0226 39.5598 17.9089V17.9038C39.9568 17.9819 40.6455 17.9699 40.8542 17.383C41.0832 16.74 40.5437 16.309 39.8262 16.0546L37.7226 15.3064L37.5886 15.6847L37.7481 15.7424C37.933 15.8085 37.9686 15.9069 37.9144 16.058L37.0713 18.4331C37.017 18.5858 36.9271 18.6384 36.7421 18.5739L36.5827 18.5162L36.5809 18.5162ZM32.725 15.5777L33.0847 15.649L33.2577 15.2571C33.4206 14.8839 33.6208 14.8228 33.9634 14.8924L34.15 14.9297L33.6106 17.6408C33.5784 17.7986 33.5003 17.8664 33.3086 17.8274L33.139 17.7935L33.0609 18.1871L35.0135 18.5756L35.0966 18.1566L34.9269 18.1226C34.7353 18.0836 34.6827 18.0174 34.7149 17.8597L35.2543 15.1486L35.4409 15.1859C35.7836 15.2538 35.9448 15.3861 35.9532 15.7933L35.9617 16.2208L36.3214 16.2921L36.5775 15.001L32.9845 14.2851L32.7284 15.5762L32.725 15.5777ZM28.7894 17.561C29.2525 17.7595 29.5952 17.8902 30.0583 17.9224C30.8607 17.9784 31.6817 17.5779 31.7428 16.7144C31.7852 16.1054 31.4391 15.8254 30.9251 15.6049L30.3891 15.3725C30.0583 15.2299 29.9056 15.1044 29.926 14.8228C29.9446 14.5666 30.1804 14.4105 30.5231 14.4343C30.8675 14.458 31.0947 14.6463 31.2322 15.1146L31.2831 15.291L31.6478 15.3165L31.7156 14.3291C31.278 14.1306 30.937 14.0271 30.5621 14.0016C29.7427 13.944 28.9879 14.3545 28.9285 15.1892C28.8877 15.7525 29.2559 16.1206 29.819 16.3548L30.3619 16.5787C30.674 16.7077 30.7656 16.8349 30.7504 17.0538C30.7266 17.388 30.4756 17.5169 30.1244 17.4915C29.7512 17.4643 29.4068 17.2556 29.2338 16.6941L29.1778 16.5075L28.8148 16.482L28.791 17.5576L28.7894 17.561ZM56.2861 16.2496V48.7504L28.143 65L0 48.7504V16.2496L28.1431 0L56.2861 16.2496ZM54.7594 17.1318L28.1431 1.76271L1.52675 17.1318V47.8699L28.1431 63.2373L54.7594 47.8699L54.7594 17.1318Z\"/>\n </g>\n </svg>\n\n <div class=\"utds-official-website-popup__copyright\">\n An official website of the state of Utah\n <br/>\n © state of Utah\n </div>\n </div>\n </div>\n</div>\n";
|
|
2356
|
+
var wr = "<div class=\"utah-design-system utds-official-website__wrapper\">\n <div class=\"utds-official-website__banner\">\n <span>An official website of the state of Utah.</span>\n <button class=\"utds-official-website__button\" type=\"button\">\n <span class=\"utds-official-website__button-title--desktop\">Here is how you know</span>\n <span class=\"utds-official-website__button-title--mobile\">Official website of the state of Utah</span>\n <svg width=\"8\" height=\"5\" viewBox=\"0 0 8 5\">\n <path d=\"M4 5L0 0.945946L0.933333 0L4 3.10811L7.06667 0L8 0.945946L4 5Z\"/>\n </svg>\n </button>\n </div>\n</div>\n", Tr = "<div class=\"utah-design-system utds-official-website-popup__wrapper visually-hidden\" tabindex=\"-1\" role=\"dialog\">\n <div class=\"utds-official-website-popup__content\">\n <div class=\"utds-official-website-popup__col\">\n <div class=\"utds-icon-before-verified big-icon\" aria-hidden=\"true\"></div>\n <div>\n <strong>Official Utah websites use utah.gov in the browser's address bar.</strong><br />\n A Utah.gov website belongs to an official government organization in the state of Utah.\n <div class=\"utds-official-website-popup__address-bar\"></div>\n </div>\n </div>\n <div class=\"utds-official-website-popup__col\">\n <div class=\"utds-icon-before-lock big-icon\" aria-hidden=\"true\"></div>\n <div>\n <strong>Be careful when sharing sensitive information.</strong><br />\n Share sensitive information only on secure official Utah.gov websites.\n </div>\n </div>\n <div>\n <svg class=\"utds-official-website-popup__official-image\" viewBox=\"0 0 252 65\" role=\"img\">\n <g>\n <path d=\"M73.5401 39.2395V18.4602C73.5401 16.6737 72.7886 15.7966 70.6885 15.7966H68.5884V11.8165H89.398V15.7966H87.2978C85.1655 15.7966 84.4445 16.6737 84.4445 18.4602V39.1445C84.4445 45.1927 88.1749 47.6069 93.8782 47.6069C99.5814 47.6069 103.717 45.1945 103.717 39.1445V18.4602C103.717 16.6737 102.996 15.7966 100.803 15.7966H96.5398V11.8165H113.368V15.7966H111.237C109.107 15.7966 108.386 16.6737 108.386 18.4602V39.2395C108.386 49.1745 101.648 53.9062 91.2114 53.9062C80.7753 53.9062 73.5368 49.1745 73.5368 39.2395H73.5401Z\"/>\n <path d=\"M126.322 49.2051H128.515C130.613 49.2051 131.334 48.328 131.334 46.5415V15.7966H128.734C124.691 15.7966 122.717 16.9554 121.809 21.4377L120.869 25.8266H117.234V11.8165H156.344V25.8266H152.739L151.8 21.4377C150.86 16.8926 148.916 15.7966 144.873 15.7966H142.273V46.5415C142.273 48.328 142.961 48.954 145.094 48.954H147.255V53.1852H126.322V49.2051Z\"/>\n <path d=\"M180.229 49.2051H183.144C185.055 49.2051 185.683 48.328 184.93 46.321L182.423 39.6773H168.321L165.813 46.321C165.062 48.3263 165.688 49.2051 167.6 49.2051H170.733V53.1852H154.751V49.2051H156.035C158.292 49.2051 159.294 48.3585 160.266 45.8205L173.271 11.8165H183.016L196.023 45.8205C196.995 48.3585 197.997 49.2051 200.253 49.2051H201.287V53.1852H180.228V49.2051H180.229ZM180.73 35.1644L175.403 20.9049L170.014 35.1644H180.731H180.73Z\"/>\n <path d=\"M231.192 49.2051H233.292C235.423 49.2051 236.144 48.328 236.144 46.5415V34.1923H220.444V46.5415C220.444 48.328 221.165 49.2051 223.295 49.2051H225.396V53.1852H204.588V49.2051H206.688C208.788 49.2051 209.54 48.328 209.54 46.5415V18.4602C209.54 16.6737 208.788 15.7966 206.688 15.7966H204.588V11.8165H225.396V15.7966H223.295C221.165 15.7966 220.444 16.6737 220.444 18.4602V29.6795H236.144V18.4602C236.144 16.6737 235.423 15.7966 233.292 15.7966H231.192V11.8165H252V15.7966H249.9C247.8 15.7966 247.048 16.6737 247.048 18.4602V46.5415C247.048 48.328 247.8 49.2051 249.9 49.2051H252V53.1852H231.192V49.2051Z\"/>\n <path d=\"M30.6978 49.3815C30.6978 50.0805 30.4383 50.4402 30.0294 50.4402C29.6206 50.4402 29.3577 50.0839 29.3577 49.3917C29.3577 48.6554 29.6138 48.289 30.0294 48.289C30.4451 48.289 30.6978 48.6639 30.6978 49.3815ZM25.3457 49.9652L24.45 49.653C24.2159 49.8753 24.1124 50.0958 24.1124 50.3588C24.1124 50.9424 24.4907 51.2834 25.193 51.2834C25.858 51.2834 26.1667 50.9407 26.1667 50.6065C26.1667 50.2722 25.9444 50.1722 25.3457 49.9635L25.3457 49.9652ZM24.9674 48.4789L25.8597 48.7758C26.0378 48.5756 26.0972 48.3669 26.0972 48.1294C26.0972 47.5798 25.7223 47.2489 25.1167 47.2489C24.5111 47.2489 24.2702 47.5051 24.2702 47.8427C24.2702 48.1328 24.4891 48.3177 24.9691 48.4772L24.9674 48.4789ZM35.0219 49.2882C34.6097 49.2882 34.3502 49.6479 34.3502 50.262C34.3502 50.9084 34.6029 51.2833 35.0219 51.2833C35.4409 51.2833 35.6937 50.9152 35.6937 50.262C35.6937 49.6444 35.4376 49.2882 35.0219 49.2882ZM39.7464 17.125C39.9143 16.6516 39.7311 16.4463 39.3885 16.3242L39.0543 16.2054L38.6353 17.3845L38.9729 17.505C39.3121 17.6255 39.5852 17.5797 39.7464 17.125ZM21.12 18.1344L21.2405 18.109C21.7613 17.997 22.2668 17.5305 22.0259 16.4057C21.7783 15.2435 21.1354 15.0603 20.6129 15.1706L20.2379 15.2503L20.8147 17.9512C20.8487 18.109 20.9165 18.1768 21.1184 18.1344H21.12ZM28.1431 4.16841L52.678 18.3346V46.667L28.1431 60.8332L3.60822 46.667V18.3329L28.1431 4.16841ZM28.1431 21.7108C25.6816 21.7108 23.702 22.8203 22.1735 24.2506C23.0556 24.505 25.0997 24.7697 28.155 24.7697C31.2102 24.7697 33.2289 24.5084 34.1194 24.2557C32.5893 22.8238 30.6096 21.7109 28.1448 21.7109L28.1431 21.7108ZM39.4597 36.3825L38.7862 33.2813C38.145 33.5646 37.1899 33.7886 35.8769 33.9752C33.8328 34.2653 31.0863 34.4265 28.1448 34.4265C25.2032 34.4265 22.4567 34.2653 20.4126 33.9752C19.0962 33.7886 18.1412 33.5629 17.4999 33.2796L16.8265 36.3809C16.8299 36.386 17.1284 36.9713 20.4058 37.4243C22.4907 37.711 25.2388 37.8704 28.143 37.8704C31.0473 37.8704 33.7954 37.7126 35.8802 37.4243C39.1577 36.973 39.4579 36.3877 39.4596 36.3809L39.4597 36.3825ZM38.5538 32.2226C38.2977 31.1029 37.9312 30.0103 37.4546 28.9686C36.8863 29.257 36.0415 29.4878 34.8863 29.6778C33.1051 29.9679 30.7149 30.1291 28.155 30.1291C25.5952 30.1291 23.2032 29.9696 21.4238 29.6778C20.2549 29.4878 19.4051 29.2536 18.8368 28.9601C18.3584 30.0035 17.9903 31.0978 17.7341 32.2209C18.6264 32.7315 22.1363 33.361 28.1465 33.361C34.1568 33.361 37.6582 32.7332 38.5556 32.2226L38.5538 32.2226ZM36.9779 28.0151C36.5639 27.2517 36.089 26.5188 35.5495 25.83C35.3511 25.5772 35.1407 25.3244 34.9201 25.0784C34.0889 25.4737 32.245 25.8402 28.155 25.8402C26.3195 25.8402 24.6061 25.7435 23.3287 25.5654C22.4296 25.4415 21.7901 25.2854 21.366 25.0819C21.1455 25.3279 20.9368 25.579 20.7383 25.8317C20.2006 26.5188 19.7273 27.2484 19.315 28.0084C19.6594 28.1882 20.3905 28.4512 21.9139 28.6752C23.6018 28.9246 25.819 29.062 28.1549 29.062C30.4908 29.062 32.708 28.9246 34.3959 28.6752C35.8955 28.4529 36.6266 28.1967 36.9778 28.0169L36.9779 28.0151ZM23.7748 14.1679L23.7986 14.5683L23.9682 14.5581C24.1633 14.5462 24.2346 14.6226 24.2448 14.7837L24.3584 16.655C24.4144 17.5847 25.0913 17.9698 26.0921 17.9088C27.0591 17.8511 27.6782 17.3879 27.6222 16.4582L27.5086 14.5869C27.4984 14.4257 27.5578 14.3409 27.7528 14.329L27.9225 14.3188L27.8988 13.9184L26.35 14.0118L26.3737 14.4121L26.7655 14.3884C26.9606 14.3765 27.0302 14.4529 27.0387 14.614L27.1506 16.4717C27.1828 17.0044 26.8283 17.2216 26.3431 17.2521C25.8596 17.281 25.5102 17.1063 25.4779 16.5735L25.366 14.7174C25.3558 14.5563 25.4152 14.4714 25.6103 14.4596L25.7799 14.4494L25.7562 14.049L23.7731 14.1695L23.7748 14.1679ZM18.6331 15.1824L18.7163 15.5743L18.8825 15.5387C19.0742 15.498 19.1556 15.5625 19.1896 15.7203L19.7154 18.1854C19.7494 18.3432 19.7018 18.4365 19.5102 18.4772L19.3439 18.5128L19.427 18.9047L21.1557 18.5365C22.2939 18.2939 23.4526 17.6391 23.1387 16.1682C22.8249 14.6955 21.5034 14.5717 20.3617 14.8143L18.6331 15.1824ZM14.46 20.871L14.2734 20.5164L14.1224 20.5961C13.9494 20.6877 13.8544 20.6453 13.7798 20.5028L12.6041 18.2735C12.5295 18.131 12.5465 18.0292 12.7212 17.9376L12.8722 17.8579L12.6856 17.5033L10.9281 18.4313L11.1147 18.7859L11.2657 18.7061C11.4388 18.6145 11.5354 18.6553 11.6101 18.7978L12.7874 21.027C12.862 21.1696 12.8417 21.273 12.6687 21.3647L12.5177 21.4444L12.7043 21.7989L14.4617 20.871H14.46ZM15.0113 20.552L16.4923 19.9854L16.3497 19.6104L15.9511 19.7631C15.7679 19.8326 15.6797 19.78 15.622 19.6291L14.8145 17.5203L14.8382 17.5118L17.5812 19.5697L18.4413 19.2406L17.3098 16.2852C17.2521 16.1342 17.2827 16.0358 17.4659 15.9662L17.6253 15.9052L17.4828 15.5302L16.0036 16.0968L16.1461 16.4718L16.5448 16.3191C16.7279 16.2496 16.8161 16.3022 16.8739 16.4531L17.5032 18.0971L17.4795 18.1056L15.2097 16.4023L13.6524 16.9978L13.795 17.3727L13.9544 17.3116C14.1376 17.2421 14.2292 17.293 14.2869 17.444L15.1877 19.7988C15.2454 19.9498 15.2132 20.0482 15.0283 20.1194L14.8688 20.1805L15.0113 20.5555V20.552ZM22.3482 51.246H21.7392C21.4898 51.246 21.405 51.1426 21.405 50.9305V47.8546H20.4992C20.0903 48.3042 19.7342 48.4976 18.9826 48.6011V49.0388C19.3915 49.0133 19.6816 48.9794 19.897 48.9454C20.0565 48.92 20.143 48.9828 20.143 49.1541V50.9304C20.143 51.1425 20.0582 51.246 19.8054 51.246H19.193V51.7176H22.35V51.246L22.3482 51.246ZM27.1745 50.1365C27.1745 49.4409 26.6181 49.0372 26.0718 48.8471C26.4993 48.7165 26.9675 48.4501 26.9675 47.9106C26.9675 47.2167 26.2652 46.7247 25.166 46.7247C24.0667 46.7247 23.2677 47.2829 23.2677 48.3076C23.2677 48.8726 23.6918 49.3222 24.2227 49.5597C23.6799 49.6869 23.1574 49.9906 23.1574 50.5845C23.1574 51.2834 23.9446 51.8077 25.0811 51.8077C26.2177 51.8077 27.1762 51.2546 27.1762 50.1366L27.1745 50.1365ZM32.0617 49.9346C32.0617 48.876 31.5087 47.7647 30.0328 47.7647C28.8403 47.7647 28.0854 48.5045 28.0854 49.4885C28.0854 50.369 28.7062 50.9899 29.5561 50.9899C30.1617 50.9899 30.6113 50.7117 30.8199 50.2536C30.7979 51.1968 30.255 52.2419 28.5349 52.7763L28.6095 53.114C30.9387 52.7271 32.06 51.6159 32.06 49.9329L32.0617 49.9346ZM36.9643 50.1653C36.9643 49.3629 36.3434 48.7419 35.4935 48.7419C34.8998 48.7419 34.457 49.01 34.245 49.3781C34.2484 48.0327 35.2034 47.0555 36.9388 47.1641L36.8727 46.8146C36.6267 46.7518 36.379 46.7298 36.1602 46.7298C34.4434 46.7298 32.9795 47.9292 32.9795 49.6648C32.9795 50.8236 33.5732 51.8093 35.0372 51.8093C36.2111 51.8093 36.966 51.0696 36.966 50.167L36.9643 50.1653ZM40.2247 39.8638L39.7141 37.5243C39.0441 37.9026 37.9465 38.1978 36.3672 38.4354C34.1941 38.7611 31.2729 38.9393 28.1448 38.9393H28.1431C25.0149 38.9393 22.0938 38.7594 19.9207 38.4337C18.3413 38.1979 17.2438 37.9026 16.5754 37.5226L16.0648 39.8622C15.9834 40.2354 16.0801 40.6324 16.3464 40.9106C17.3778 41.9846 20.5959 42.6513 24.3533 42.916C25.4017 42.9126 26.0718 42.1983 26.2516 41.3416C26.4247 40.5154 27.1032 39.7672 28.1567 39.7672C29.2102 39.7672 29.887 40.5154 30.0618 41.3416C30.2416 42.1933 30.9065 42.9058 31.9482 42.9143C35.7006 42.6496 38.9152 41.9812 39.9466 40.909C40.213 40.6308 40.3097 40.2337 40.2282 39.8605L40.2247 39.8638ZM41.475 20.8659L43.2325 21.7922L43.4309 21.4156L43.2799 21.3358C43.1035 21.2425 43.0763 21.1662 43.151 21.0237L43.643 20.0889L45.2444 19.2644C45.4497 19.1575 45.5379 19.1592 45.6889 19.2372L45.7839 19.2864L45.9704 18.9319L44.6337 18.2278L44.4471 18.5824L44.6846 18.7079C44.822 18.7809 44.8186 18.8861 44.6761 18.9675L43.7058 19.5087L43.5939 18.3974C43.5752 18.2345 43.6652 18.17 43.8026 18.243L44.0367 18.3669L44.2233 18.0123L42.2843 16.991L42.0977 17.3455L42.1927 17.3947C42.3403 17.4728 42.3929 17.5457 42.4217 17.7764L42.6473 19.5646L42.1554 20.4977C42.0807 20.6403 41.9857 20.6827 41.8127 20.5911L41.6617 20.5113L41.475 20.8659ZM36.5809 18.5162L36.4469 18.8945L38.3214 19.5613L38.4554 19.183L38.2926 19.1253C38.1076 19.0592 38.0754 18.9624 38.1297 18.8097L38.508 17.7443L38.6471 17.7935C38.9237 17.8919 38.9525 18.0209 38.9457 18.2974L38.9254 19.0863C38.9135 19.5868 39.0611 19.8227 39.5921 20.0109L40.2876 20.2586L40.4216 19.8803L40.3266 19.8463C40.1688 19.7903 40.1146 19.6852 40.101 19.5087L40.045 18.7639C40.006 18.238 39.8126 18.0226 39.5598 17.9089V17.9038C39.9568 17.9819 40.6455 17.9699 40.8542 17.383C41.0832 16.74 40.5437 16.309 39.8262 16.0546L37.7226 15.3064L37.5886 15.6847L37.7481 15.7424C37.933 15.8085 37.9686 15.9069 37.9144 16.058L37.0713 18.4331C37.017 18.5858 36.9271 18.6384 36.7421 18.5739L36.5827 18.5162L36.5809 18.5162ZM32.725 15.5777L33.0847 15.649L33.2577 15.2571C33.4206 14.8839 33.6208 14.8228 33.9634 14.8924L34.15 14.9297L33.6106 17.6408C33.5784 17.7986 33.5003 17.8664 33.3086 17.8274L33.139 17.7935L33.0609 18.1871L35.0135 18.5756L35.0966 18.1566L34.9269 18.1226C34.7353 18.0836 34.6827 18.0174 34.7149 17.8597L35.2543 15.1486L35.4409 15.1859C35.7836 15.2538 35.9448 15.3861 35.9532 15.7933L35.9617 16.2208L36.3214 16.2921L36.5775 15.001L32.9845 14.2851L32.7284 15.5762L32.725 15.5777ZM28.7894 17.561C29.2525 17.7595 29.5952 17.8902 30.0583 17.9224C30.8607 17.9784 31.6817 17.5779 31.7428 16.7144C31.7852 16.1054 31.4391 15.8254 30.9251 15.6049L30.3891 15.3725C30.0583 15.2299 29.9056 15.1044 29.926 14.8228C29.9446 14.5666 30.1804 14.4105 30.5231 14.4343C30.8675 14.458 31.0947 14.6463 31.2322 15.1146L31.2831 15.291L31.6478 15.3165L31.7156 14.3291C31.278 14.1306 30.937 14.0271 30.5621 14.0016C29.7427 13.944 28.9879 14.3545 28.9285 15.1892C28.8877 15.7525 29.2559 16.1206 29.819 16.3548L30.3619 16.5787C30.674 16.7077 30.7656 16.8349 30.7504 17.0538C30.7266 17.388 30.4756 17.5169 30.1244 17.4915C29.7512 17.4643 29.4068 17.2556 29.2338 16.6941L29.1778 16.5075L28.8148 16.482L28.791 17.5576L28.7894 17.561ZM56.2861 16.2496V48.7504L28.143 65L0 48.7504V16.2496L28.1431 0L56.2861 16.2496ZM54.7594 17.1318L28.1431 1.76271L1.52675 17.1318V47.8699L28.1431 63.2373L54.7594 47.8699L54.7594 17.1318Z\"/>\n </g>\n </svg>\n\n <div class=\"utds-official-website-popup__copyright\">\n An official website of the state of Utah\n <br/>\n © state of Utah\n </div>\n </div>\n </div>\n</div>\n";
|
|
2344
2357
|
//#endregion
|
|
2345
2358
|
//#region src/js/renderables/officialBanner/renderOfficialBanner.js
|
|
2346
|
-
function
|
|
2359
|
+
function Er() {
|
|
2347
2360
|
let e = c(document.querySelector(a(o.OFFICIAL_BANNER)), "closeOfficialWebsite: officialBanner not found"), t = c(document.querySelector(a(o.OFFICIAL_WRAPPER)), "closeOfficialWebsite: officialPopupContent not found"), n = c(e.querySelector(a(o.OFFICIAL_BUTTON)), "closeOfficialWebsite: moreButton not found");
|
|
2348
2361
|
t.classList.add(o.VISUALLY_HIDDEN), n.setAttribute("aria-expanded", "false"), t.setAttribute("aria-hidden", "true"), t.setAttribute("tabIndex", "-1");
|
|
2349
2362
|
}
|
|
2350
|
-
function
|
|
2363
|
+
function Dr() {
|
|
2351
2364
|
let e = c(document.querySelector(a(o.OFFICIAL_BANNER)), "officialBanner: officialBanner not found"), t = c(document.querySelector(a(o.OFFICIAL_WRAPPER)), "openOfficialWebsite: officialPopupContent not found"), n = c(e.querySelector(a(o.OFFICIAL_BUTTON)), "openOfficialWebsite: moreButton not found");
|
|
2352
2365
|
t.classList.remove(o.VISUALLY_HIDDEN), t.removeAttribute("tabIndex"), n.setAttribute("aria-expanded", "true"), t.setAttribute("aria-hidden", "false"), t.focus(), x();
|
|
2353
2366
|
}
|
|
2354
|
-
function
|
|
2355
|
-
let e = d(
|
|
2367
|
+
function Or() {
|
|
2368
|
+
let e = d(wr), t = d(Tr);
|
|
2356
2369
|
e.appendChild(t);
|
|
2357
2370
|
let n = e?.querySelector(a(o.OFFICIAL_BUTTON));
|
|
2358
2371
|
if (!n) throw Error("renderOfficialWebsite: moreButton not found");
|
|
2359
2372
|
if (n.onclick) throw Error("renderOfficialWebsite: moreButton already has an onclick");
|
|
2360
2373
|
return n.onclick = (e) => {
|
|
2361
|
-
e.stopPropagation(), e.preventDefault(), t.classList.toggle(o.VISUALLY_HIDDEN), t.classList.contains(o.VISUALLY_HIDDEN) ?
|
|
2374
|
+
e.stopPropagation(), e.preventDefault(), t.classList.toggle(o.VISUALLY_HIDDEN), t.classList.contains(o.VISUALLY_HIDDEN) ? Er() : Dr(), document.querySelectorAll(a(o.TOOLTIP__WRAPPER))?.forEach((e) => {
|
|
2362
2375
|
e.classList.add(o.TOOLTIP__WRAPPER__HIDDEN), e.classList.remove(o.TOOLTIP__WRAPPER__VISIBLE);
|
|
2363
2376
|
});
|
|
2364
2377
|
}, n.id ||= g(), t.id ||= g(), n.setAttribute("aria-controls", t.id), n.setAttribute("aria-expanded", "false"), t.setAttribute("aria-hidden", "true"), t.setAttribute("aria-labelledby", n.id), e;
|
|
2365
2378
|
}
|
|
2366
2379
|
//#endregion
|
|
2367
2380
|
//#region src/js/renderables/mobile/hookupHamburger.js
|
|
2368
|
-
function
|
|
2381
|
+
function kr(e) {
|
|
2369
2382
|
let { hamburger: t } = b("hookupHamburger"), n = ((e) => c(t, `hookupHamburger: hamburger required but is null: ${e}`)), r = h();
|
|
2370
2383
|
if (r.actionItems?.some((e) => !!e.badge)) {
|
|
2371
|
-
let e =
|
|
2384
|
+
let e = kt({ label: "Home Badge" });
|
|
2372
2385
|
e && n("home badge").appendChild(e);
|
|
2373
2386
|
}
|
|
2374
2387
|
x();
|
|
@@ -2381,13 +2394,13 @@ function Dr(e) {
|
|
|
2381
2394
|
}
|
|
2382
2395
|
let l = c(document.querySelectorAll(`.${o.MOBILE_MENU__ACTION_BAR} .${o.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0], "hookupHamburger: no action items to select on mobile hamburger open"), u = l.querySelector?.("button"), d = (u || l).getAttribute("id");
|
|
2383
2396
|
if (!d) throw Error("mobileMenuInteractionHandler: actionItemId not found");
|
|
2384
|
-
if (e) {
|
|
2397
|
+
if (e && r.mainMenu) {
|
|
2385
2398
|
let t = e.getAttribute("id");
|
|
2386
2399
|
if (!t) throw Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");
|
|
2387
2400
|
(u || l).setAttribute("aria-controls", t), e.setAttribute("aria-labelledby", d);
|
|
2388
2401
|
}
|
|
2389
|
-
t &&
|
|
2390
|
-
additionalOnClick: () =>
|
|
2402
|
+
t && w(t, () => i().actionItemWrapper, () => i().actionItem, {
|
|
2403
|
+
additionalOnClick: () => Er(),
|
|
2391
2404
|
ariaHasPopupType: "menu",
|
|
2392
2405
|
shouldOnClickCloseMenu: !0
|
|
2393
2406
|
}), t && (s(!!t.onblur, "hookupHamburger: hamburger already has an onblur event"), t.onblur = () => {
|
|
@@ -2400,14 +2413,14 @@ function Dr(e) {
|
|
|
2400
2413
|
}
|
|
2401
2414
|
//#endregion
|
|
2402
2415
|
//#region src/js/renderables/mobile/hookupUtahIdInMobileMenu.js
|
|
2403
|
-
function
|
|
2416
|
+
function Ar() {
|
|
2404
2417
|
let e = document.getElementById(o.MOBILE_MENU_ACTON_BAR__PROFILE_ID);
|
|
2405
2418
|
if (!e) throw Error("removeUtahIdInMobileMenu: profileActionItem not found");
|
|
2406
2419
|
let t = e.closest(a(o.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));
|
|
2407
2420
|
if (!t) throw Error("removeUtahIdInMobileMenu: profileActionItemWrapper not found");
|
|
2408
2421
|
t.remove();
|
|
2409
2422
|
}
|
|
2410
|
-
function
|
|
2423
|
+
function jr(e, t) {
|
|
2411
2424
|
let n = document.querySelector(a(o.MOBILE__UTAH_ID));
|
|
2412
2425
|
if (!n) throw Error("hookupUtahIdInMobileMenu: utahIdWrapper not found");
|
|
2413
2426
|
let r = n.querySelector(a(o.UTAH_ID__BUTTON));
|
|
@@ -2417,20 +2430,20 @@ function kr(e, t) {
|
|
|
2417
2430
|
if (!i) throw Error("hookupUtahIdInMobileMenu: profileActionItem not found");
|
|
2418
2431
|
let s = i.closest(a(o.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));
|
|
2419
2432
|
if (!s) throw Error("hookupHamburger: profileActionItemWrapper not found");
|
|
2420
|
-
|
|
2433
|
+
w(r, v(t), s, {
|
|
2421
2434
|
ariaHasPopupType: "menu",
|
|
2422
|
-
onClickHandler: (e) => (
|
|
2435
|
+
onClickHandler: (e) => (Yn(e), !1),
|
|
2423
2436
|
shouldOnClickCloseMenu: !0
|
|
2424
2437
|
});
|
|
2425
2438
|
}
|
|
2426
2439
|
//#endregion
|
|
2427
2440
|
//#region src/js/renderables/mobile/html/MobileMenuWrapper.html?raw
|
|
2428
|
-
var
|
|
2441
|
+
var Mr = "<div class=\"utah-design-system utds-header-mobile-menu\" id=\"utds-header-mobile-menu\">\n <div class=\"utds-header-mobile-menu__backdrop\" aria-hidden=\"true\"></div>\n <div class=\"utds-header-mobile-menu__wrapper\">\n <div class=\"utds-header-mobile-menu__action-bar\" role=\"tablist\">\n\n <div class=\"utds-header-mobile-menu__action-item\">\n <button type=\"button\" class=\"icon-button icon-button--borderless utds-header-action-item__icon-button icon-home\"\n id=\"utds-header-mobile-menu_action-bar__home\" role=\"tab\">\n <span class=\"utds-header-action-item__title visually-hidden\">Main Menu</span>\n <span class=\"utds-icon-before-home-menu\" aria-hidden=\"true\" role=\"presentation\">\n </span>\n </button>\n <span class=\"menu-chiclet\"></span>\n </div>\n <div class=\"utds-header-mobile-menu__action-item\">\n <button type=\"button\"\n class=\"icon-button icon-button--borderless utds-header-action-item__icon-button icon-profile\"\n id=\"utds-header-mobile-menu_action-bar__profile\" role=\"tab\">\n <span class=\"utds-header-action-item__title visually-hidden\">Profile</span>\n <span class=\"utds-icon-before-account\" aria-hidden=\"true\" role=\"presentation\">\n </span>\n </button>\n <span class=\"menu-chiclet\"></span>\n </div>\n\n </div>\n <div class=\"utds-header-mobile-menu__content\"> </div>\n <div aria-hidden=\"true\" tabindex=\"0\" class=\"utds-header-mobile-menu__hidden-last-focusable visually-hidden\">\n end of mobile content form\n </div>\n </div>\n</div>\n";
|
|
2429
2442
|
//#endregion
|
|
2430
2443
|
//#region src/js/renderables/mobile/renderMobileMenuHomeMenu.js
|
|
2431
|
-
function
|
|
2444
|
+
function Nr() {
|
|
2432
2445
|
let t = h();
|
|
2433
|
-
return
|
|
2446
|
+
return Y(t.mainMenu && t.mainMenu?.menuItems || void 0, {
|
|
2434
2447
|
childrenMenuType: e.INLINE,
|
|
2435
2448
|
parentMenuLinkSuffix: typeof t.mainMenu == "object" ? t.mainMenu.parentMenuLinkSuffix : void 0,
|
|
2436
2449
|
removePopupArrow: !0
|
|
@@ -2438,13 +2451,13 @@ function jr() {
|
|
|
2438
2451
|
}
|
|
2439
2452
|
//#endregion
|
|
2440
2453
|
//#region src/js/renderables/skipLink/html/SkipLink.html?raw
|
|
2441
|
-
var
|
|
2454
|
+
var Pr = "<div class=\"utah-design-system skip-link__wrapper\">\n <div class=\"skip-link__tab\">\n <a href=\"#\" class=\"skip-link__link button button--solid button--primary-color\" id=\"skip-link\">Skip to main content</a>\n </div>\n</div>\n";
|
|
2442
2455
|
//#endregion
|
|
2443
2456
|
//#region src/js/renderables/skipLink/SkipLink.js
|
|
2444
|
-
function
|
|
2457
|
+
function Fr() {
|
|
2445
2458
|
let { skipLinkUrl: e } = h(), t;
|
|
2446
2459
|
if (e) {
|
|
2447
|
-
t = d(
|
|
2460
|
+
t = d(Pr);
|
|
2448
2461
|
let n = t.querySelector(a(o.SKIP_LINK_LINK));
|
|
2449
2462
|
if (!n) throw Error("Skip Link Link is null");
|
|
2450
2463
|
n.setAttribute("href", e);
|
|
@@ -2453,7 +2466,7 @@ function Nr() {
|
|
|
2453
2466
|
}
|
|
2454
2467
|
//#endregion
|
|
2455
2468
|
//#region src/js/lifecycle/hookupMobileActionItemKeyboarding.js
|
|
2456
|
-
function
|
|
2469
|
+
function Ir() {
|
|
2457
2470
|
let e = [...document.querySelectorAll(`
|
|
2458
2471
|
${a(o.MOBILE_MENU__ACTION_BAR)}
|
|
2459
2472
|
${a(o.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)}
|
|
@@ -2479,7 +2492,7 @@ function Pr() {
|
|
|
2479
2492
|
}
|
|
2480
2493
|
let c = document.querySelector(a(o.MOBILE_MENU__WRAPPER));
|
|
2481
2494
|
if (!c) throw Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");
|
|
2482
|
-
|
|
2495
|
+
S(c, r);
|
|
2483
2496
|
}
|
|
2484
2497
|
});
|
|
2485
2498
|
});
|
|
@@ -2490,21 +2503,21 @@ function Pr() {
|
|
|
2490
2503
|
}
|
|
2491
2504
|
//#endregion
|
|
2492
2505
|
//#region src/js/lifecycle/lifecycle.js
|
|
2493
|
-
function
|
|
2506
|
+
function Lr() {
|
|
2494
2507
|
let e = i.replace(o.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER, `${h().mediaSizes.tabletPortrait}px`).replace(o.MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER, `${h().mediaSizes.tabletLandscape}px`).replace(o.MEDIA_SIZE__MOBILE__PLACEHOLDER, `${h().mediaSizes.mobile}px`), t = document.getElementById(o.CSS_HEADER_MEDIA_TAG_ID);
|
|
2495
2508
|
t || (t = document.createElement("style"), t.id = o.CSS_HEADER_MEDIA_TAG_ID), t.innerHTML = e, document.body.appendChild(t);
|
|
2496
2509
|
}
|
|
2497
|
-
function
|
|
2510
|
+
function Rr(e) {
|
|
2498
2511
|
let t = e.currentValues.utahid;
|
|
2499
|
-
|
|
2512
|
+
K("********** handleMyLoginEvent:", t), Wn(t);
|
|
2500
2513
|
}
|
|
2501
|
-
function
|
|
2514
|
+
function zr() {
|
|
2502
2515
|
let e = h(), t = document.getElementById(o.SSO_HEADER_SCRIPT_TAG_ID);
|
|
2503
|
-
|
|
2516
|
+
K("isSetUtahHeaderSettingsCalled", window["@utahdts/utah-design-system-header"]?.isSetUtahHeaderSettingsCalled), K("utah header settings", JSON.parse(JSON.stringify(e)));
|
|
2504
2517
|
let n = (typeof e.utahId == "object" ? e.utahId?.currentUser : null) ?? null;
|
|
2505
|
-
!t && !n ? (
|
|
2518
|
+
!t && !n ? (K("going to create script for ssouserinfo.js iframe"), t = document.createElement("script"), t.id = o.SSO_HEADER_SCRIPT_TAG_ID, t.setAttribute("src", "https://mylogin.utah.gov/ssouserinfo/ssouserinfo.js"), document.head.appendChild(t), document.addEventListener("ssoUserInfo.pollComplete", Rr), document.addEventListener("ssoUserInfo.valuesChanged", Rr)) : n && (K("handling my login info immediately!"), Wn());
|
|
2506
2519
|
}
|
|
2507
|
-
function
|
|
2520
|
+
function Br() {
|
|
2508
2521
|
let e = h(), t = document.body;
|
|
2509
2522
|
if (e.domLocationTarget) {
|
|
2510
2523
|
let n = [
|
|
@@ -2521,54 +2534,61 @@ function Rr() {
|
|
|
2521
2534
|
}
|
|
2522
2535
|
return c(t, "loadHeader: domTarget is null (how?!)");
|
|
2523
2536
|
}
|
|
2524
|
-
function
|
|
2537
|
+
function Vr() {
|
|
2525
2538
|
if (!document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.HEADER]))) {
|
|
2526
|
-
let e =
|
|
2539
|
+
let e = gr(), t = Br();
|
|
2527
2540
|
t.insertBefore(e, t.firstChild);
|
|
2528
|
-
let n =
|
|
2541
|
+
let n = Or();
|
|
2529
2542
|
e.before(n);
|
|
2530
|
-
let r =
|
|
2543
|
+
let r = Fr(), i = document.body;
|
|
2531
2544
|
r && i && i.insertBefore(r, i.firstChild);
|
|
2532
|
-
let s = d(
|
|
2545
|
+
let s = d(Mr);
|
|
2533
2546
|
e.after(s), s.onkeyup = (e) => {
|
|
2534
2547
|
(e.code === "Escape" || e.key === "Escape") && (e.preventDefault(), e.stopPropagation(), x());
|
|
2535
2548
|
};
|
|
2536
|
-
let { mainMenuWrapper: c, utahIdPopup: l } =
|
|
2549
|
+
let { mainMenuWrapper: c, utahIdPopup: l } = Cr();
|
|
2537
2550
|
c && e.after(c);
|
|
2538
2551
|
let u = document.querySelector(a(o.MOBILE_MENU__BACKDROP));
|
|
2539
2552
|
if (!u) throw Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");
|
|
2540
2553
|
if (u.onclick) throw Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");
|
|
2541
2554
|
u.onclick = () => x();
|
|
2542
|
-
let f =
|
|
2543
|
-
p.appendChild(f),
|
|
2555
|
+
let f = Nr(), p = Zn(f, "Main Menu");
|
|
2556
|
+
p.appendChild(f), kr(v(p)), l ? (l.closest("div")?.removeAttribute("aria-labelledby"), jr(s, l)) : Ar(), kn(), Ir(), dn(), Lr(), zr();
|
|
2544
2557
|
let m = h();
|
|
2545
|
-
|
|
2558
|
+
if (m.notifications) {
|
|
2559
|
+
let e = document;
|
|
2560
|
+
typeof e.ssouserinfo?.triggerPoll == "function" && e.ssouserinfo.triggerPoll();
|
|
2561
|
+
}
|
|
2562
|
+
(!m.mainMenu && !m.actionItems && m.utahId === !1 && !m.onSearch || !m.mainMenu && !m.actionItems && m.utahId === !1 && m.onSearch || !m.mainMenu && m.actionItems && m.utahId === !1 && !m.onSearch) && (s.classList.add(o.MAIN_MENU__REMOVED), c.remove()), (!m.mainMenu && !m.actionItems && m.utahId && !m.onSearch || !m.mainMenu && m.actionItems && m.utahId && !m.onSearch || !m.mainMenu && m.actionItems && !m.utahId && m.onSearch) && c.classList.add(o.DESKTOP__HIDDEN);
|
|
2546
2563
|
}
|
|
2547
|
-
|
|
2564
|
+
Mn();
|
|
2548
2565
|
}
|
|
2549
|
-
function
|
|
2550
|
-
document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.SKIP_LINK_WRAPPER]))?.remove(), document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.OFFICIAL_BANNER]))?.remove(), document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.HEADER]))?.remove(), document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.MAIN_MENU__OUTER]))?.remove(), document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.MOBILE_MENU]))?.remove(), document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.LOGO_OFFICIAL_WRAPPER]))?.remove(), document.getElementById(o.SEARCH__SEARCH_MODAL)?.remove(),
|
|
2566
|
+
function Hr(e) {
|
|
2567
|
+
document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.SKIP_LINK_WRAPPER]))?.remove(), document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.OFFICIAL_BANNER]))?.remove(), document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.HEADER]))?.remove(), document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.MAIN_MENU__OUTER]))?.remove(), document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.MOBILE_MENU]))?.remove(), document.querySelector(a([o.UTAH_DESIGN_SYSTEM, o.LOGO_OFFICIAL_WRAPPER]))?.remove(), document.getElementById(o.SEARCH__SEARCH_MODAL)?.remove(), ln(), e && setTimeout(() => document.dispatchEvent(new Event(n.HEADER_UNLOADED)), 0);
|
|
2551
2568
|
}
|
|
2552
2569
|
//#endregion
|
|
2553
2570
|
//#region src/js/settings/settings.js
|
|
2554
|
-
function
|
|
2555
|
-
|
|
2571
|
+
function Ur() {
|
|
2572
|
+
Hr(!1), Vr();
|
|
2556
2573
|
}
|
|
2557
|
-
var
|
|
2558
|
-
|
|
2574
|
+
var Wr = 15e3, Gr = 0, Kr = setInterval(() => {
|
|
2575
|
+
Gr += 1, Gr >= Wr || typeof window > "u" || window["@utahdts/utah-design-system-header"]?.isSetUtahHeaderSettingsCalled ? clearInterval(Kr) : document.dispatchEvent(new Event(n.HEADER_LOADED));
|
|
2559
2576
|
}, 2);
|
|
2560
2577
|
window.addEventListener("unload", () => {
|
|
2561
|
-
clearInterval(
|
|
2578
|
+
clearInterval(Kr);
|
|
2562
2579
|
});
|
|
2563
|
-
function
|
|
2564
|
-
return m.setSettings(e), window["@utahdts/utah-design-system-header"] && (window["@utahdts/utah-design-system-header"].isSetUtahHeaderSettingsCalled = !0), document?.body ?
|
|
2580
|
+
function qr(e) {
|
|
2581
|
+
return m.setSettings(e), window["@utahdts/utah-design-system-header"] && (window["@utahdts/utah-design-system-header"].isSetUtahHeaderSettingsCalled = !0), document?.body ? Ur() : window.addEventListener("load", () => Ur()), m.getSettings();
|
|
2565
2582
|
}
|
|
2566
|
-
function
|
|
2567
|
-
return
|
|
2583
|
+
function Jr(e) {
|
|
2584
|
+
return qr({
|
|
2568
2585
|
...f,
|
|
2569
2586
|
...m.getSettings(),
|
|
2570
2587
|
footer: e
|
|
2571
2588
|
});
|
|
2572
2589
|
}
|
|
2573
2590
|
//#endregion
|
|
2574
|
-
|
|
2591
|
+
//#region src/index.js
|
|
2592
|
+
var Yr = "5.1.0";
|
|
2593
|
+
//#endregion
|
|
2594
|
+
export { t as PopupPlacement, Yr as UTDS_VERSION, e as childrenMenuTypes, f as defaultSettings, n as events, h as getUtahHeaderSettings, Vr as loadHeader, J as popupFocusHandler, Hr as removeHeader, d as renderDOMSingle, Jr as setUtahFooterSettings, qr as setUtahHeaderSettings, r as sizes };
|