@utahdts/utah-design-system-header 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
const
|
|
1
|
+
const fn = "@utahdts/utah-design-system-header", hn = "0.4.1", _n = "Utah Header for the Utah Design System", mn = "src/index.js", En = [
|
|
2
2
|
"src/css",
|
|
3
3
|
"dist"
|
|
4
|
-
],
|
|
4
|
+
], vn = {
|
|
5
5
|
build: "vite build --mode development",
|
|
6
6
|
preview: "vite preview",
|
|
7
7
|
"sass-build": "sass --no-source-map ./src/css/index.scss ./src/css/build/utah-design-system-header.css",
|
|
8
8
|
"test-publish": "npm publish --dry-run",
|
|
9
9
|
test: "vitest",
|
|
10
|
+
testc: "vitest run --coverage",
|
|
10
11
|
watch: "vite build --watch --mode development"
|
|
11
|
-
},
|
|
12
|
+
}, bn = {
|
|
12
13
|
type: "git",
|
|
13
14
|
url: "git+https://github.com/utahdts/utah-design-system.git"
|
|
14
|
-
},
|
|
15
|
+
}, In = "Apache-2.0", gn = {
|
|
15
16
|
url: "https://github.com/utahdts/utah-design-system/issues"
|
|
16
|
-
},
|
|
17
|
-
"@popperjs/core": "2.11.
|
|
18
|
-
},
|
|
19
|
-
eslint: "8.
|
|
17
|
+
}, Mn = "https://github.com/utahdts/utah-design-system#readme", Tn = {
|
|
18
|
+
"@popperjs/core": "2.11.7"
|
|
19
|
+
}, An = {
|
|
20
|
+
eslint: "8.37.0",
|
|
20
21
|
"eslint-config-airbnb": "19.0.4",
|
|
21
22
|
"eslint-plugin-import": "2.27.5",
|
|
22
23
|
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
23
|
-
sass: "1.
|
|
24
|
+
sass: "1.60.0",
|
|
24
25
|
vite: "4.2.1",
|
|
25
26
|
"vite-plugin-eslint": "1.8.1",
|
|
26
|
-
vitest: "0.29.
|
|
27
|
-
},
|
|
28
|
-
name:
|
|
29
|
-
version:
|
|
30
|
-
description:
|
|
31
|
-
main:
|
|
32
|
-
files:
|
|
33
|
-
scripts:
|
|
34
|
-
repository:
|
|
35
|
-
license:
|
|
36
|
-
bugs:
|
|
37
|
-
homepage:
|
|
38
|
-
dependencies:
|
|
39
|
-
devDependencies:
|
|
40
|
-
type:
|
|
27
|
+
vitest: "0.29.8"
|
|
28
|
+
}, wn = "module", On = {
|
|
29
|
+
name: fn,
|
|
30
|
+
version: hn,
|
|
31
|
+
description: _n,
|
|
32
|
+
main: mn,
|
|
33
|
+
files: En,
|
|
34
|
+
scripts: vn,
|
|
35
|
+
repository: bn,
|
|
36
|
+
license: In,
|
|
37
|
+
bugs: gn,
|
|
38
|
+
homepage: Mn,
|
|
39
|
+
dependencies: Tn,
|
|
40
|
+
devDependencies: An,
|
|
41
|
+
type: wn
|
|
41
42
|
};
|
|
42
43
|
const W = {
|
|
43
44
|
FLYOUT: (
|
|
@@ -52,7 +53,7 @@ const W = {
|
|
|
52
53
|
/** @type {ChildrenMenuType} */
|
|
53
54
|
"mega-menu"
|
|
54
55
|
)
|
|
55
|
-
},
|
|
56
|
+
}, kt = {
|
|
56
57
|
// Fired when the utah header is first loaded (setUtahHeaderSettings does not trigger this)
|
|
57
58
|
HEADER_LOADED: (
|
|
58
59
|
/** @type {Events} */
|
|
@@ -137,7 +138,7 @@ const W = {
|
|
|
137
138
|
/** @type {Size} */
|
|
138
139
|
"LARGE"
|
|
139
140
|
)
|
|
140
|
-
},
|
|
141
|
+
}, yn = `/* @media is never in scope for --variables, so this is the only way to solve this. :-( */
|
|
141
142
|
|
|
142
143
|
@media screen and (max-width: media-size__tablet-landscape__PLACEHOLDER) {
|
|
143
144
|
/* put your media query here for tablet landscape */
|
|
@@ -187,7 +188,7 @@ const W = {
|
|
|
187
188
|
@media screen and (max-width: media-size__mobile__PLACEHOLDER) {
|
|
188
189
|
/* put your media query here for mobile */
|
|
189
190
|
}
|
|
190
|
-
`,
|
|
191
|
+
`, Pn = `<div class="utah-design-system utds-header-mobile-menu" id="utds-header-mobile-menu">
|
|
191
192
|
<div class="utds-header-mobile-menu__backdrop" aria-hidden></div>
|
|
192
193
|
<div class="utds-header-mobile-menu__wrapper">
|
|
193
194
|
<div class="utds-header-mobile-menu__action-bar" role="tablist">
|
|
@@ -320,7 +321,7 @@ const s = {
|
|
|
320
321
|
function Ge(t) {
|
|
321
322
|
return typeof t == "string" || t instanceof String;
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function Nn(t) {
|
|
324
325
|
const e = new DOMParser();
|
|
325
326
|
let n;
|
|
326
327
|
if (Ge(t)) {
|
|
@@ -341,7 +342,7 @@ function On(t) {
|
|
|
341
342
|
return n;
|
|
342
343
|
}
|
|
343
344
|
function T(t) {
|
|
344
|
-
const e = typeof t == "string" ?
|
|
345
|
+
const e = typeof t == "string" ? Nn(t) : t;
|
|
345
346
|
if (e instanceof HTMLCollection && e.length > 1)
|
|
346
347
|
throw new Error("renderDOMSingle: must render a single element");
|
|
347
348
|
const n = (
|
|
@@ -352,10 +353,10 @@ function T(t) {
|
|
|
352
353
|
throw console.error(t), new Error("renderDOMSingle: nothing rendered");
|
|
353
354
|
return n;
|
|
354
355
|
}
|
|
355
|
-
const
|
|
356
|
-
`,
|
|
357
|
-
`,
|
|
358
|
-
`,
|
|
356
|
+
const Ln = `<h1 class="utds-logo-wrapper"></h1>
|
|
357
|
+
`, Un = `<div class="utah-design-system utds-header" role="banner" aria-label="Utah.gov Header"></div>
|
|
358
|
+
`, Sn = `<span class="utds-logo-vert-line"></span>
|
|
359
|
+
`, Cn = {
|
|
359
360
|
mainMenu: {
|
|
360
361
|
menuItems: [
|
|
361
362
|
{ title: "Home", actionUrl: { url: "/" } }
|
|
@@ -372,11 +373,11 @@ const yn = `<h1 class="utds-logo-wrapper"></h1>
|
|
|
372
373
|
title: "Utah Design System",
|
|
373
374
|
titleURL: "/",
|
|
374
375
|
utahId: !0
|
|
375
|
-
},
|
|
376
|
-
`,
|
|
377
|
-
`,
|
|
378
|
-
`,
|
|
379
|
-
`,
|
|
376
|
+
}, Dn = `<span class="utds-icon-before-alert" aria-hidden="true" />
|
|
377
|
+
`, Rn = `<span class="utds-icon-before-gear" aria-hidden="true" />
|
|
378
|
+
`, xn = `<span class="utds-icon-before-help" aria-hidden="true" />
|
|
379
|
+
`, Hn = `<span class="utds-icon-before-waffle" aria-hidden="true" />
|
|
380
|
+
`, Bn = {
|
|
380
381
|
actionItems: [
|
|
381
382
|
{
|
|
382
383
|
actionPopupMenu: {
|
|
@@ -430,7 +431,7 @@ const yn = `<h1 class="utds-logo-wrapper"></h1>
|
|
|
430
431
|
title: "Divisions Menu"
|
|
431
432
|
},
|
|
432
433
|
className: "icon-waffle",
|
|
433
|
-
icon:
|
|
434
|
+
icon: Hn,
|
|
434
435
|
showTitle: !0,
|
|
435
436
|
title: "Divisions"
|
|
436
437
|
},
|
|
@@ -444,7 +445,7 @@ const yn = `<h1 class="utds-logo-wrapper"></h1>
|
|
|
444
445
|
label: "Unread Alert",
|
|
445
446
|
value: 1
|
|
446
447
|
},
|
|
447
|
-
icon:
|
|
448
|
+
icon: Dn,
|
|
448
449
|
showTitle: !1,
|
|
449
450
|
title: "Alerts"
|
|
450
451
|
},
|
|
@@ -459,7 +460,7 @@ const yn = `<h1 class="utds-logo-wrapper"></h1>
|
|
|
459
460
|
// Note: make sure the `label` is plural/singular to match the value
|
|
460
461
|
label: "Help Items Available"
|
|
461
462
|
},
|
|
462
|
-
icon:
|
|
463
|
+
icon: xn,
|
|
463
464
|
showTitle: !1,
|
|
464
465
|
title: "Help"
|
|
465
466
|
},
|
|
@@ -470,7 +471,7 @@ const yn = `<h1 class="utds-logo-wrapper"></h1>
|
|
|
470
471
|
const e = document.createElement("button");
|
|
471
472
|
return e.appendChild(document.createTextNode("Speak Different")), e.onclick = () => alert("lorem ipsum"), t.appendChild(e), t;
|
|
472
473
|
},
|
|
473
|
-
icon:
|
|
474
|
+
icon: Rn,
|
|
474
475
|
showTitle: !1,
|
|
475
476
|
title: "Settings"
|
|
476
477
|
}
|
|
@@ -682,34 +683,46 @@ const yn = `<h1 class="utds-logo-wrapper"></h1>
|
|
|
682
683
|
title: "Utah Design System Main Menu"
|
|
683
684
|
}
|
|
684
685
|
};
|
|
685
|
-
let De = { ...
|
|
686
|
+
let De = { ...Bn };
|
|
686
687
|
function N() {
|
|
687
688
|
return De;
|
|
688
689
|
}
|
|
689
|
-
function
|
|
690
|
+
function kn(t) {
|
|
690
691
|
if (!t.showTitle && !t.logo)
|
|
691
692
|
throw new Error("validateSettings: A title must be shown if there is no logo. Please change the `showTitle` setting to be `true` or provide a logo image.");
|
|
692
693
|
}
|
|
693
|
-
function
|
|
694
|
-
|
|
694
|
+
function Mt() {
|
|
695
|
+
jo(!1), $o();
|
|
695
696
|
}
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
697
|
+
let Wt = !1;
|
|
698
|
+
const Wn = 15e3;
|
|
699
|
+
let Tt = 0;
|
|
700
|
+
const qn = setInterval(
|
|
701
|
+
() => {
|
|
702
|
+
Tt += 1, Tt >= Wn || Wt ? clearInterval(qn) : document.dispatchEvent(new Event(kt.HEADER_LOADED));
|
|
703
|
+
},
|
|
704
|
+
2
|
|
705
|
+
);
|
|
706
|
+
function zo(t) {
|
|
707
|
+
return De = { ...Cn, ...t }, kn(De), Wt = !0, document != null && document.body ? Mt() : window.addEventListener("load", () => Mt()), De;
|
|
708
|
+
}
|
|
709
|
+
const Vn = `<div class="utds-citizen-experience-wrapper"></div>
|
|
710
|
+
`, Fn = `<div class="utds-action-items-wrapper"></div>
|
|
711
|
+
`, Gn = `<div class="utds-header-action-item">
|
|
699
712
|
<button type="button" class="icon-button utds-header-action-item__icon-button">
|
|
700
713
|
<div class="utds-header-action-item__title visually-hidden"></div>
|
|
701
714
|
</button>
|
|
702
715
|
</div>
|
|
703
716
|
`;
|
|
704
|
-
var R = "top",
|
|
717
|
+
var R = "top", F = "bottom", G = "right", x = "left", Be = "auto", we = [R, F, G, x], ue = "start", ge = "end", $n = "clippingParents", qt = "viewport", Ee = "popper", jn = "reference", At = /* @__PURE__ */ we.reduce(function(t, e) {
|
|
705
718
|
return t.concat([e + "-" + ue, e + "-" + ge]);
|
|
706
|
-
}, []),
|
|
719
|
+
}, []), Vt = /* @__PURE__ */ [].concat(we, [Be]).reduce(function(t, e) {
|
|
707
720
|
return t.concat([e, e + "-" + ue, e + "-" + ge]);
|
|
708
|
-
}, []),
|
|
721
|
+
}, []), Yn = "beforeRead", zn = "read", Kn = "afterRead", Zn = "beforeMain", Xn = "main", Qn = "afterMain", Jn = "beforeWrite", er = "write", tr = "afterWrite", $e = [Yn, zn, Kn, Zn, Xn, Qn, Jn, er, tr];
|
|
709
722
|
function K(t) {
|
|
710
723
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
711
724
|
}
|
|
712
|
-
function
|
|
725
|
+
function V(t) {
|
|
713
726
|
if (t == null)
|
|
714
727
|
return window;
|
|
715
728
|
if (t.toString() !== "[object Window]") {
|
|
@@ -719,20 +732,20 @@ function G(t) {
|
|
|
719
732
|
return t;
|
|
720
733
|
}
|
|
721
734
|
function ae(t) {
|
|
722
|
-
var e =
|
|
735
|
+
var e = V(t).Element;
|
|
723
736
|
return t instanceof e || t instanceof Element;
|
|
724
737
|
}
|
|
725
738
|
function q(t) {
|
|
726
|
-
var e =
|
|
739
|
+
var e = V(t).HTMLElement;
|
|
727
740
|
return t instanceof e || t instanceof HTMLElement;
|
|
728
741
|
}
|
|
729
742
|
function Je(t) {
|
|
730
743
|
if (typeof ShadowRoot > "u")
|
|
731
744
|
return !1;
|
|
732
|
-
var e =
|
|
745
|
+
var e = V(t).ShadowRoot;
|
|
733
746
|
return t instanceof e || t instanceof ShadowRoot;
|
|
734
747
|
}
|
|
735
|
-
function
|
|
748
|
+
function nr(t) {
|
|
736
749
|
var e = t.state;
|
|
737
750
|
Object.keys(e.elements).forEach(function(n) {
|
|
738
751
|
var r = e.styles[n] || {}, o = e.attributes[n] || {}, i = e.elements[n];
|
|
@@ -742,7 +755,7 @@ function Xn(t) {
|
|
|
742
755
|
}));
|
|
743
756
|
});
|
|
744
757
|
}
|
|
745
|
-
function
|
|
758
|
+
function rr(t) {
|
|
746
759
|
var e = t.state, n = {
|
|
747
760
|
popper: {
|
|
748
761
|
position: e.options.strategy,
|
|
@@ -766,12 +779,12 @@ function Qn(t) {
|
|
|
766
779
|
});
|
|
767
780
|
};
|
|
768
781
|
}
|
|
769
|
-
const
|
|
782
|
+
const or = {
|
|
770
783
|
name: "applyStyles",
|
|
771
784
|
enabled: !0,
|
|
772
785
|
phase: "write",
|
|
773
|
-
fn:
|
|
774
|
-
effect:
|
|
786
|
+
fn: nr,
|
|
787
|
+
effect: rr,
|
|
775
788
|
requires: ["computeStyles"]
|
|
776
789
|
};
|
|
777
790
|
function j(t) {
|
|
@@ -780,18 +793,18 @@ function j(t) {
|
|
|
780
793
|
var ie = Math.max, xe = Math.min, de = Math.round;
|
|
781
794
|
function je() {
|
|
782
795
|
var t = navigator.userAgentData;
|
|
783
|
-
return t != null && t.brands ? t.brands.map(function(e) {
|
|
796
|
+
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
784
797
|
return e.brand + "/" + e.version;
|
|
785
798
|
}).join(" ") : navigator.userAgent;
|
|
786
799
|
}
|
|
787
|
-
function
|
|
800
|
+
function Ft() {
|
|
788
801
|
return !/^((?!chrome|android).)*safari/i.test(je());
|
|
789
802
|
}
|
|
790
803
|
function pe(t, e, n) {
|
|
791
804
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
792
805
|
var r = t.getBoundingClientRect(), o = 1, i = 1;
|
|
793
806
|
e && q(t) && (o = t.offsetWidth > 0 && de(r.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && de(r.height) / t.offsetHeight || 1);
|
|
794
|
-
var c = ae(t) ?
|
|
807
|
+
var c = ae(t) ? V(t) : window, a = c.visualViewport, l = !Ft() && n, u = (r.left + (l && a ? a.offsetLeft : 0)) / o, d = (r.top + (l && a ? a.offsetTop : 0)) / i, _ = r.width / o, h = r.height / i;
|
|
795
808
|
return {
|
|
796
809
|
width: _,
|
|
797
810
|
height: h,
|
|
@@ -812,7 +825,7 @@ function et(t) {
|
|
|
812
825
|
height: r
|
|
813
826
|
};
|
|
814
827
|
}
|
|
815
|
-
function
|
|
828
|
+
function Gt(t, e) {
|
|
816
829
|
var n = e.getRootNode && e.getRootNode();
|
|
817
830
|
if (t.contains(e))
|
|
818
831
|
return !0;
|
|
@@ -827,9 +840,9 @@ function Wt(t, e) {
|
|
|
827
840
|
return !1;
|
|
828
841
|
}
|
|
829
842
|
function Y(t) {
|
|
830
|
-
return
|
|
843
|
+
return V(t).getComputedStyle(t);
|
|
831
844
|
}
|
|
832
|
-
function
|
|
845
|
+
function ir(t) {
|
|
833
846
|
return ["table", "td", "th"].indexOf(K(t)) >= 0;
|
|
834
847
|
}
|
|
835
848
|
function Q(t) {
|
|
@@ -850,11 +863,11 @@ function ke(t) {
|
|
|
850
863
|
Q(t)
|
|
851
864
|
);
|
|
852
865
|
}
|
|
853
|
-
function
|
|
866
|
+
function wt(t) {
|
|
854
867
|
return !q(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
855
868
|
Y(t).position === "fixed" ? null : t.offsetParent;
|
|
856
869
|
}
|
|
857
|
-
function
|
|
870
|
+
function ar(t) {
|
|
858
871
|
var e = /firefox/i.test(je()), n = /Trident/i.test(je());
|
|
859
872
|
if (n && q(t)) {
|
|
860
873
|
var r = Y(t);
|
|
@@ -871,9 +884,9 @@ function tr(t) {
|
|
|
871
884
|
return null;
|
|
872
885
|
}
|
|
873
886
|
function Oe(t) {
|
|
874
|
-
for (var e =
|
|
875
|
-
n =
|
|
876
|
-
return n && (K(n) === "html" || K(n) === "body" && Y(n).position === "static") ? e : n ||
|
|
887
|
+
for (var e = V(t), n = wt(t); n && ir(n) && Y(n).position === "static"; )
|
|
888
|
+
n = wt(n);
|
|
889
|
+
return n && (K(n) === "html" || K(n) === "body" && Y(n).position === "static") ? e : n || ar(t) || e;
|
|
877
890
|
}
|
|
878
891
|
function tt(t) {
|
|
879
892
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
@@ -881,11 +894,11 @@ function tt(t) {
|
|
|
881
894
|
function be(t, e, n) {
|
|
882
895
|
return ie(t, xe(e, n));
|
|
883
896
|
}
|
|
884
|
-
function
|
|
897
|
+
function sr(t, e, n) {
|
|
885
898
|
var r = be(t, e, n);
|
|
886
899
|
return r > n ? n : r;
|
|
887
900
|
}
|
|
888
|
-
function
|
|
901
|
+
function $t() {
|
|
889
902
|
return {
|
|
890
903
|
top: 0,
|
|
891
904
|
right: 0,
|
|
@@ -893,62 +906,62 @@ function qt() {
|
|
|
893
906
|
left: 0
|
|
894
907
|
};
|
|
895
908
|
}
|
|
896
|
-
function
|
|
897
|
-
return Object.assign({},
|
|
909
|
+
function jt(t) {
|
|
910
|
+
return Object.assign({}, $t(), t);
|
|
898
911
|
}
|
|
899
|
-
function
|
|
912
|
+
function Yt(t, e) {
|
|
900
913
|
return e.reduce(function(n, r) {
|
|
901
914
|
return n[r] = t, n;
|
|
902
915
|
}, {});
|
|
903
916
|
}
|
|
904
|
-
var
|
|
917
|
+
var lr = function(e, n) {
|
|
905
918
|
return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
|
|
906
919
|
placement: n.placement
|
|
907
|
-
})) : e,
|
|
920
|
+
})) : e, jt(typeof e != "number" ? e : Yt(e, we));
|
|
908
921
|
};
|
|
909
|
-
function
|
|
910
|
-
var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, c = n.modifiersData.popperOffsets, a = j(n.placement), l = tt(a), u = [x,
|
|
922
|
+
function cr(t) {
|
|
923
|
+
var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, c = n.modifiersData.popperOffsets, a = j(n.placement), l = tt(a), u = [x, G].indexOf(a) >= 0, d = u ? "height" : "width";
|
|
911
924
|
if (!(!i || !c)) {
|
|
912
|
-
var _ =
|
|
925
|
+
var _ = lr(o.padding, n), h = et(i), p = l === "y" ? R : x, m = l === "y" ? F : G, v = n.rects.reference[d] + n.rects.reference[l] - c[l] - n.rects.popper[d], E = c[l] - n.rects.reference[l], g = Oe(i), A = g ? l === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, y = v / 2 - E / 2, b = _[p], I = A - h[d] - _[m], M = A / 2 - h[d] / 2 + y, P = be(b, M, I), L = l;
|
|
913
926
|
n.modifiersData[r] = (e = {}, e[L] = P, e.centerOffset = P - M, e);
|
|
914
927
|
}
|
|
915
928
|
}
|
|
916
|
-
function
|
|
929
|
+
function ur(t) {
|
|
917
930
|
var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
|
|
918
931
|
if (o != null && !(typeof o == "string" && (o = e.elements.popper.querySelector(o), !o))) {
|
|
919
|
-
if ({}.NODE_ENV !== "production" && (q(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !
|
|
932
|
+
if ({}.NODE_ENV !== "production" && (q(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !Gt(e.elements.popper, o)) {
|
|
920
933
|
({}).NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
921
934
|
return;
|
|
922
935
|
}
|
|
923
936
|
e.elements.arrow = o;
|
|
924
937
|
}
|
|
925
938
|
}
|
|
926
|
-
const
|
|
939
|
+
const dr = {
|
|
927
940
|
name: "arrow",
|
|
928
941
|
enabled: !0,
|
|
929
942
|
phase: "main",
|
|
930
|
-
fn:
|
|
931
|
-
effect:
|
|
943
|
+
fn: cr,
|
|
944
|
+
effect: ur,
|
|
932
945
|
requires: ["popperOffsets"],
|
|
933
946
|
requiresIfExists: ["preventOverflow"]
|
|
934
947
|
};
|
|
935
948
|
function fe(t) {
|
|
936
949
|
return t.split("-")[1];
|
|
937
950
|
}
|
|
938
|
-
var
|
|
951
|
+
var pr = {
|
|
939
952
|
top: "auto",
|
|
940
953
|
right: "auto",
|
|
941
954
|
bottom: "auto",
|
|
942
955
|
left: "auto"
|
|
943
956
|
};
|
|
944
|
-
function
|
|
945
|
-
var
|
|
957
|
+
function fr(t, e) {
|
|
958
|
+
var n = t.x, r = t.y, o = e.devicePixelRatio || 1;
|
|
946
959
|
return {
|
|
947
|
-
x: de(
|
|
948
|
-
y: de(
|
|
960
|
+
x: de(n * o) / o || 0,
|
|
961
|
+
y: de(r * o) / o || 0
|
|
949
962
|
};
|
|
950
963
|
}
|
|
951
|
-
function
|
|
964
|
+
function Ot(t) {
|
|
952
965
|
var e, n = t.popper, r = t.popperRect, o = t.placement, i = t.variation, c = t.offsets, a = t.position, l = t.gpuAcceleration, u = t.adaptive, d = t.roundOffsets, _ = t.isFixed, h = c.x, p = h === void 0 ? 0 : h, m = c.y, v = m === void 0 ? 0 : m, E = typeof d == "function" ? d({
|
|
953
966
|
x: p,
|
|
954
967
|
y: v
|
|
@@ -960,16 +973,16 @@ function Tt(t) {
|
|
|
960
973
|
var g = c.hasOwnProperty("x"), A = c.hasOwnProperty("y"), y = x, b = R, I = window;
|
|
961
974
|
if (u) {
|
|
962
975
|
var M = Oe(n), P = "clientHeight", L = "clientWidth";
|
|
963
|
-
if (M ===
|
|
964
|
-
b =
|
|
976
|
+
if (M === V(n) && (M = Q(n), Y(M).position !== "static" && a === "absolute" && (P = "scrollHeight", L = "scrollWidth")), M = M, o === R || (o === x || o === G) && i === ge) {
|
|
977
|
+
b = F;
|
|
965
978
|
var U = _ && M === I && I.visualViewport ? I.visualViewport.height : (
|
|
966
979
|
// $FlowFixMe[prop-missing]
|
|
967
980
|
M[P]
|
|
968
981
|
);
|
|
969
982
|
v -= U - r.height, v *= l ? 1 : -1;
|
|
970
983
|
}
|
|
971
|
-
if (o === x || (o === R || o ===
|
|
972
|
-
y =
|
|
984
|
+
if (o === x || (o === R || o === F) && i === ge) {
|
|
985
|
+
y = G;
|
|
973
986
|
var S = _ && M === I && I.visualViewport ? I.visualViewport.width : (
|
|
974
987
|
// $FlowFixMe[prop-missing]
|
|
975
988
|
M[L]
|
|
@@ -979,10 +992,10 @@ function Tt(t) {
|
|
|
979
992
|
}
|
|
980
993
|
var w = Object.assign({
|
|
981
994
|
position: a
|
|
982
|
-
}, u &&
|
|
995
|
+
}, u && pr), C = d === !0 ? fr({
|
|
983
996
|
x: p,
|
|
984
997
|
y: v
|
|
985
|
-
}) : {
|
|
998
|
+
}, V(n)) : {
|
|
986
999
|
x: p,
|
|
987
1000
|
y: v
|
|
988
1001
|
};
|
|
@@ -992,7 +1005,7 @@ function Tt(t) {
|
|
|
992
1005
|
}
|
|
993
1006
|
return Object.assign({}, w, (e = {}, e[b] = A ? v + "px" : "", e[y] = g ? p + "px" : "", e.transform = "", e));
|
|
994
1007
|
}
|
|
995
|
-
function
|
|
1008
|
+
function hr(t) {
|
|
996
1009
|
var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, i = n.adaptive, c = i === void 0 ? !0 : i, a = n.roundOffsets, l = a === void 0 ? !0 : a;
|
|
997
1010
|
if ({}.NODE_ENV !== "production") {
|
|
998
1011
|
var u = Y(e.elements.popper).transitionProperty || "";
|
|
@@ -1012,12 +1025,12 @@ function cr(t) {
|
|
|
1012
1025
|
gpuAcceleration: o,
|
|
1013
1026
|
isFixed: e.options.strategy === "fixed"
|
|
1014
1027
|
};
|
|
1015
|
-
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper,
|
|
1028
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Ot(Object.assign({}, d, {
|
|
1016
1029
|
offsets: e.modifiersData.popperOffsets,
|
|
1017
1030
|
position: e.options.strategy,
|
|
1018
1031
|
adaptive: c,
|
|
1019
1032
|
roundOffsets: l
|
|
1020
|
-
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow,
|
|
1033
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Ot(Object.assign({}, d, {
|
|
1021
1034
|
offsets: e.modifiersData.arrow,
|
|
1022
1035
|
position: "absolute",
|
|
1023
1036
|
adaptive: !1,
|
|
@@ -1026,18 +1039,18 @@ function cr(t) {
|
|
|
1026
1039
|
"data-popper-placement": e.placement
|
|
1027
1040
|
});
|
|
1028
1041
|
}
|
|
1029
|
-
const
|
|
1042
|
+
const _r = {
|
|
1030
1043
|
name: "computeStyles",
|
|
1031
1044
|
enabled: !0,
|
|
1032
1045
|
phase: "beforeWrite",
|
|
1033
|
-
fn:
|
|
1046
|
+
fn: hr,
|
|
1034
1047
|
data: {}
|
|
1035
1048
|
};
|
|
1036
1049
|
var Se = {
|
|
1037
1050
|
passive: !0
|
|
1038
1051
|
};
|
|
1039
|
-
function
|
|
1040
|
-
var e = t.state, n = t.instance, r = t.options, o = r.scroll, i = o === void 0 ? !0 : o, c = r.resize, a = c === void 0 ? !0 : c, l =
|
|
1052
|
+
function mr(t) {
|
|
1053
|
+
var e = t.state, n = t.instance, r = t.options, o = r.scroll, i = o === void 0 ? !0 : o, c = r.resize, a = c === void 0 ? !0 : c, l = V(e.elements.popper), u = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
1041
1054
|
return i && u.forEach(function(d) {
|
|
1042
1055
|
d.addEventListener("scroll", n.update, Se);
|
|
1043
1056
|
}), a && l.addEventListener("resize", n.update, Se), function() {
|
|
@@ -1046,16 +1059,16 @@ function dr(t) {
|
|
|
1046
1059
|
}), a && l.removeEventListener("resize", n.update, Se);
|
|
1047
1060
|
};
|
|
1048
1061
|
}
|
|
1049
|
-
const
|
|
1062
|
+
const Er = {
|
|
1050
1063
|
name: "eventListeners",
|
|
1051
1064
|
enabled: !0,
|
|
1052
1065
|
phase: "write",
|
|
1053
1066
|
fn: function() {
|
|
1054
1067
|
},
|
|
1055
|
-
effect:
|
|
1068
|
+
effect: mr,
|
|
1056
1069
|
data: {}
|
|
1057
1070
|
};
|
|
1058
|
-
var
|
|
1071
|
+
var vr = {
|
|
1059
1072
|
left: "right",
|
|
1060
1073
|
right: "left",
|
|
1061
1074
|
bottom: "top",
|
|
@@ -1063,20 +1076,20 @@ var fr = {
|
|
|
1063
1076
|
};
|
|
1064
1077
|
function Re(t) {
|
|
1065
1078
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
1066
|
-
return
|
|
1079
|
+
return vr[e];
|
|
1067
1080
|
});
|
|
1068
1081
|
}
|
|
1069
|
-
var
|
|
1082
|
+
var br = {
|
|
1070
1083
|
start: "end",
|
|
1071
1084
|
end: "start"
|
|
1072
1085
|
};
|
|
1073
|
-
function
|
|
1086
|
+
function yt(t) {
|
|
1074
1087
|
return t.replace(/start|end/g, function(e) {
|
|
1075
|
-
return
|
|
1088
|
+
return br[e];
|
|
1076
1089
|
});
|
|
1077
1090
|
}
|
|
1078
1091
|
function nt(t) {
|
|
1079
|
-
var e =
|
|
1092
|
+
var e = V(t), n = e.pageXOffset, r = e.pageYOffset;
|
|
1080
1093
|
return {
|
|
1081
1094
|
scrollLeft: n,
|
|
1082
1095
|
scrollTop: r
|
|
@@ -1085,11 +1098,11 @@ function nt(t) {
|
|
|
1085
1098
|
function rt(t) {
|
|
1086
1099
|
return pe(Q(t)).left + nt(t).scrollLeft;
|
|
1087
1100
|
}
|
|
1088
|
-
function
|
|
1089
|
-
var n =
|
|
1101
|
+
function Ir(t, e) {
|
|
1102
|
+
var n = V(t), r = Q(t), o = n.visualViewport, i = r.clientWidth, c = r.clientHeight, a = 0, l = 0;
|
|
1090
1103
|
if (o) {
|
|
1091
1104
|
i = o.width, c = o.height;
|
|
1092
|
-
var u =
|
|
1105
|
+
var u = Ft();
|
|
1093
1106
|
(u || !u && e === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
|
|
1094
1107
|
}
|
|
1095
1108
|
return {
|
|
@@ -1099,7 +1112,7 @@ function _r(t, e) {
|
|
|
1099
1112
|
y: l
|
|
1100
1113
|
};
|
|
1101
1114
|
}
|
|
1102
|
-
function
|
|
1115
|
+
function gr(t) {
|
|
1103
1116
|
var e, n = Q(t), r = nt(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = ie(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), c = ie(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -r.scrollLeft + rt(t), l = -r.scrollTop;
|
|
1104
1117
|
return Y(o || n).direction === "rtl" && (a += ie(n.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
1105
1118
|
width: i,
|
|
@@ -1112,13 +1125,13 @@ function ot(t) {
|
|
|
1112
1125
|
var e = Y(t), n = e.overflow, r = e.overflowX, o = e.overflowY;
|
|
1113
1126
|
return /auto|scroll|overlay|hidden/.test(n + o + r);
|
|
1114
1127
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return ["html", "body", "#document"].indexOf(K(t)) >= 0 ? t.ownerDocument.body : q(t) && ot(t) ? t :
|
|
1128
|
+
function zt(t) {
|
|
1129
|
+
return ["html", "body", "#document"].indexOf(K(t)) >= 0 ? t.ownerDocument.body : q(t) && ot(t) ? t : zt(ke(t));
|
|
1117
1130
|
}
|
|
1118
1131
|
function Ie(t, e) {
|
|
1119
1132
|
var n;
|
|
1120
1133
|
e === void 0 && (e = []);
|
|
1121
|
-
var r =
|
|
1134
|
+
var r = zt(t), o = r === ((n = t.ownerDocument) == null ? void 0 : n.body), i = V(r), c = o ? [i].concat(i.visualViewport || [], ot(r) ? r : []) : r, a = e.concat(c);
|
|
1122
1135
|
return o ? a : (
|
|
1123
1136
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1124
1137
|
a.concat(Ie(ke(c)))
|
|
@@ -1132,27 +1145,27 @@ function Ye(t) {
|
|
|
1132
1145
|
bottom: t.y + t.height
|
|
1133
1146
|
});
|
|
1134
1147
|
}
|
|
1135
|
-
function
|
|
1148
|
+
function Mr(t, e) {
|
|
1136
1149
|
var n = pe(t, !1, e === "fixed");
|
|
1137
1150
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
1138
1151
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return e ===
|
|
1152
|
+
function Pt(t, e, n) {
|
|
1153
|
+
return e === qt ? Ye(Ir(t, n)) : ae(e) ? Mr(e, n) : Ye(gr(Q(t)));
|
|
1141
1154
|
}
|
|
1142
|
-
function
|
|
1155
|
+
function Tr(t) {
|
|
1143
1156
|
var e = Ie(ke(t)), n = ["absolute", "fixed"].indexOf(Y(t).position) >= 0, r = n && q(t) ? Oe(t) : t;
|
|
1144
1157
|
return ae(r) ? e.filter(function(o) {
|
|
1145
|
-
return ae(o) &&
|
|
1158
|
+
return ae(o) && Gt(o, r) && K(o) !== "body";
|
|
1146
1159
|
}) : [];
|
|
1147
1160
|
}
|
|
1148
|
-
function
|
|
1149
|
-
var o = e === "clippingParents" ?
|
|
1150
|
-
var d =
|
|
1161
|
+
function Ar(t, e, n, r) {
|
|
1162
|
+
var o = e === "clippingParents" ? Tr(t) : [].concat(e), i = [].concat(o, [n]), c = i[0], a = i.reduce(function(l, u) {
|
|
1163
|
+
var d = Pt(t, u, r);
|
|
1151
1164
|
return l.top = ie(d.top, l.top), l.right = xe(d.right, l.right), l.bottom = xe(d.bottom, l.bottom), l.left = ie(d.left, l.left), l;
|
|
1152
|
-
},
|
|
1165
|
+
}, Pt(t, c, r));
|
|
1153
1166
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
1154
1167
|
}
|
|
1155
|
-
function
|
|
1168
|
+
function Kt(t) {
|
|
1156
1169
|
var e = t.reference, n = t.element, r = t.placement, o = r ? j(r) : null, i = r ? fe(r) : null, c = e.x + e.width / 2 - n.width / 2, a = e.y + e.height / 2 - n.height / 2, l;
|
|
1157
1170
|
switch (o) {
|
|
1158
1171
|
case R:
|
|
@@ -1161,13 +1174,13 @@ function $t(t) {
|
|
|
1161
1174
|
y: e.y - n.height
|
|
1162
1175
|
};
|
|
1163
1176
|
break;
|
|
1164
|
-
case
|
|
1177
|
+
case F:
|
|
1165
1178
|
l = {
|
|
1166
1179
|
x: c,
|
|
1167
1180
|
y: e.y + e.height
|
|
1168
1181
|
};
|
|
1169
1182
|
break;
|
|
1170
|
-
case
|
|
1183
|
+
case G:
|
|
1171
1184
|
l = {
|
|
1172
1185
|
x: e.x + e.width,
|
|
1173
1186
|
y: a
|
|
@@ -1201,7 +1214,7 @@ function $t(t) {
|
|
|
1201
1214
|
}
|
|
1202
1215
|
function Me(t, e) {
|
|
1203
1216
|
e === void 0 && (e = {});
|
|
1204
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, c = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ?
|
|
1217
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, c = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? $n : a, u = n.rootBoundary, d = u === void 0 ? qt : u, _ = n.elementContext, h = _ === void 0 ? Ee : _, p = n.altBoundary, m = p === void 0 ? !1 : p, v = n.padding, E = v === void 0 ? 0 : v, g = jt(typeof E != "number" ? E : Yt(E, we)), A = h === Ee ? jn : Ee, y = t.rects.popper, b = t.elements[m ? A : h], I = Ar(ae(b) ? b : b.contextElement || Q(t.elements.popper), l, d, c), M = pe(t.elements.reference), P = Kt({
|
|
1205
1218
|
reference: M,
|
|
1206
1219
|
element: y,
|
|
1207
1220
|
strategy: "absolute",
|
|
@@ -1215,15 +1228,15 @@ function Me(t, e) {
|
|
|
1215
1228
|
if (h === Ee && w) {
|
|
1216
1229
|
var C = w[o];
|
|
1217
1230
|
Object.keys(S).forEach(function(D) {
|
|
1218
|
-
var J = [
|
|
1231
|
+
var J = [G, F].indexOf(D) >= 0 ? 1 : -1, ee = [R, F].indexOf(D) >= 0 ? "y" : "x";
|
|
1219
1232
|
S[D] += C[ee] * J;
|
|
1220
1233
|
});
|
|
1221
1234
|
}
|
|
1222
1235
|
return S;
|
|
1223
1236
|
}
|
|
1224
|
-
function
|
|
1237
|
+
function wr(t, e) {
|
|
1225
1238
|
e === void 0 && (e = {});
|
|
1226
|
-
var n = e, r = n.placement, o = n.boundary, i = n.rootBoundary, c = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, u = l === void 0 ?
|
|
1239
|
+
var n = e, r = n.placement, o = n.boundary, i = n.rootBoundary, c = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, u = l === void 0 ? Vt : l, d = fe(r), _ = d ? a ? At : At.filter(function(m) {
|
|
1227
1240
|
return fe(m) === d;
|
|
1228
1241
|
}) : we, h = _.filter(function(m) {
|
|
1229
1242
|
return u.indexOf(m) >= 0;
|
|
@@ -1241,17 +1254,17 @@ function Ir(t, e) {
|
|
|
1241
1254
|
return p[m] - p[v];
|
|
1242
1255
|
});
|
|
1243
1256
|
}
|
|
1244
|
-
function
|
|
1257
|
+
function Or(t) {
|
|
1245
1258
|
if (j(t) === Be)
|
|
1246
1259
|
return [];
|
|
1247
1260
|
var e = Re(t);
|
|
1248
|
-
return [
|
|
1261
|
+
return [yt(t), e, yt(e)];
|
|
1249
1262
|
}
|
|
1250
|
-
function
|
|
1263
|
+
function yr(t) {
|
|
1251
1264
|
var e = t.state, n = t.options, r = t.name;
|
|
1252
1265
|
if (!e.modifiersData[r]._skip) {
|
|
1253
|
-
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, c = n.altAxis, a = c === void 0 ? !0 : c, l = n.fallbackPlacements, u = n.padding, d = n.boundary, _ = n.rootBoundary, h = n.altBoundary, p = n.flipVariations, m = p === void 0 ? !0 : p, v = n.allowedAutoPlacements, E = e.options.placement, g = j(E), A = g === E, y = l || (A || !m ? [Re(E)] :
|
|
1254
|
-
return se.concat(j(Z) === Be ?
|
|
1266
|
+
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, c = n.altAxis, a = c === void 0 ? !0 : c, l = n.fallbackPlacements, u = n.padding, d = n.boundary, _ = n.rootBoundary, h = n.altBoundary, p = n.flipVariations, m = p === void 0 ? !0 : p, v = n.allowedAutoPlacements, E = e.options.placement, g = j(E), A = g === E, y = l || (A || !m ? [Re(E)] : Or(E)), b = [E].concat(y).reduce(function(se, Z) {
|
|
1267
|
+
return se.concat(j(Z) === Be ? wr(e, {
|
|
1255
1268
|
placement: Z,
|
|
1256
1269
|
boundary: d,
|
|
1257
1270
|
rootBoundary: _,
|
|
@@ -1260,13 +1273,13 @@ function Mr(t) {
|
|
|
1260
1273
|
allowedAutoPlacements: v
|
|
1261
1274
|
}) : Z);
|
|
1262
1275
|
}, []), I = e.rects.reference, M = e.rects.popper, P = /* @__PURE__ */ new Map(), L = !0, U = b[0], S = 0; S < b.length; S++) {
|
|
1263
|
-
var w = b[S], C = j(w), D = fe(w) === ue, J = [R,
|
|
1276
|
+
var w = b[S], C = j(w), D = fe(w) === ue, J = [R, F].indexOf(C) >= 0, ee = J ? "width" : "height", B = Me(e, {
|
|
1264
1277
|
placement: w,
|
|
1265
1278
|
boundary: d,
|
|
1266
1279
|
rootBoundary: _,
|
|
1267
1280
|
altBoundary: h,
|
|
1268
1281
|
padding: u
|
|
1269
|
-
}), $ = J ? D ?
|
|
1282
|
+
}), $ = J ? D ? G : x : D ? F : R;
|
|
1270
1283
|
I[ee] > M[ee] && ($ = Re($));
|
|
1271
1284
|
var ye = Re($), te = [];
|
|
1272
1285
|
if (i && te.push(B[C] <= 0), a && te.push(B[$] <= 0, B[ye] <= 0), te.every(function(se) {
|
|
@@ -1296,17 +1309,17 @@ function Mr(t) {
|
|
|
1296
1309
|
e.placement !== U && (e.modifiersData[r]._skip = !0, e.placement = U, e.reset = !0);
|
|
1297
1310
|
}
|
|
1298
1311
|
}
|
|
1299
|
-
const
|
|
1312
|
+
const Pr = {
|
|
1300
1313
|
name: "flip",
|
|
1301
1314
|
enabled: !0,
|
|
1302
1315
|
phase: "main",
|
|
1303
|
-
fn:
|
|
1316
|
+
fn: yr,
|
|
1304
1317
|
requiresIfExists: ["offset"],
|
|
1305
1318
|
data: {
|
|
1306
1319
|
_skip: !1
|
|
1307
1320
|
}
|
|
1308
1321
|
};
|
|
1309
|
-
function
|
|
1322
|
+
function Nt(t, e, n) {
|
|
1310
1323
|
return n === void 0 && (n = {
|
|
1311
1324
|
x: 0,
|
|
1312
1325
|
y: 0
|
|
@@ -1317,17 +1330,17 @@ function Ot(t, e, n) {
|
|
|
1317
1330
|
left: t.left - e.width - n.x
|
|
1318
1331
|
};
|
|
1319
1332
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return [R,
|
|
1333
|
+
function Lt(t) {
|
|
1334
|
+
return [R, G, F, x].some(function(e) {
|
|
1322
1335
|
return t[e] >= 0;
|
|
1323
1336
|
});
|
|
1324
1337
|
}
|
|
1325
|
-
function
|
|
1338
|
+
function Nr(t) {
|
|
1326
1339
|
var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, i = e.modifiersData.preventOverflow, c = Me(e, {
|
|
1327
1340
|
elementContext: "reference"
|
|
1328
1341
|
}), a = Me(e, {
|
|
1329
1342
|
altBoundary: !0
|
|
1330
|
-
}), l =
|
|
1343
|
+
}), l = Nt(c, r), u = Nt(a, o, i), d = Lt(l), _ = Lt(u);
|
|
1331
1344
|
e.modifiersData[n] = {
|
|
1332
1345
|
referenceClippingOffsets: l,
|
|
1333
1346
|
popperEscapeOffsets: u,
|
|
@@ -1338,18 +1351,18 @@ function Ar(t) {
|
|
|
1338
1351
|
"data-popper-escaped": _
|
|
1339
1352
|
});
|
|
1340
1353
|
}
|
|
1341
|
-
const
|
|
1354
|
+
const Lr = {
|
|
1342
1355
|
name: "hide",
|
|
1343
1356
|
enabled: !0,
|
|
1344
1357
|
phase: "main",
|
|
1345
1358
|
requiresIfExists: ["preventOverflow"],
|
|
1346
|
-
fn:
|
|
1359
|
+
fn: Nr
|
|
1347
1360
|
};
|
|
1348
|
-
function
|
|
1361
|
+
function Ur(t, e, n) {
|
|
1349
1362
|
var r = j(t), o = [x, R].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, e, {
|
|
1350
1363
|
placement: t
|
|
1351
1364
|
})) : n, c = i[0], a = i[1];
|
|
1352
|
-
return c = c || 0, a = (a || 0) * o, [x,
|
|
1365
|
+
return c = c || 0, a = (a || 0) * o, [x, G].indexOf(r) >= 0 ? {
|
|
1353
1366
|
x: a,
|
|
1354
1367
|
y: c
|
|
1355
1368
|
} : {
|
|
@@ -1357,45 +1370,45 @@ function Or(t, e, n) {
|
|
|
1357
1370
|
y: a
|
|
1358
1371
|
};
|
|
1359
1372
|
}
|
|
1360
|
-
function
|
|
1361
|
-
var e = t.state, n = t.options, r = t.name, o = n.offset, i = o === void 0 ? [0, 0] : o, c =
|
|
1362
|
-
return d[_] =
|
|
1373
|
+
function Sr(t) {
|
|
1374
|
+
var e = t.state, n = t.options, r = t.name, o = n.offset, i = o === void 0 ? [0, 0] : o, c = Vt.reduce(function(d, _) {
|
|
1375
|
+
return d[_] = Ur(_, e.rects, i), d;
|
|
1363
1376
|
}, {}), a = c[e.placement], l = a.x, u = a.y;
|
|
1364
1377
|
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += u), e.modifiersData[r] = c;
|
|
1365
1378
|
}
|
|
1366
|
-
const
|
|
1379
|
+
const Cr = {
|
|
1367
1380
|
name: "offset",
|
|
1368
1381
|
enabled: !0,
|
|
1369
1382
|
phase: "main",
|
|
1370
1383
|
requires: ["popperOffsets"],
|
|
1371
|
-
fn:
|
|
1384
|
+
fn: Sr
|
|
1372
1385
|
};
|
|
1373
|
-
function
|
|
1386
|
+
function Dr(t) {
|
|
1374
1387
|
var e = t.state, n = t.name;
|
|
1375
|
-
e.modifiersData[n] =
|
|
1388
|
+
e.modifiersData[n] = Kt({
|
|
1376
1389
|
reference: e.rects.reference,
|
|
1377
1390
|
element: e.rects.popper,
|
|
1378
1391
|
strategy: "absolute",
|
|
1379
1392
|
placement: e.placement
|
|
1380
1393
|
});
|
|
1381
1394
|
}
|
|
1382
|
-
const
|
|
1395
|
+
const Rr = {
|
|
1383
1396
|
name: "popperOffsets",
|
|
1384
1397
|
enabled: !0,
|
|
1385
1398
|
phase: "read",
|
|
1386
|
-
fn:
|
|
1399
|
+
fn: Dr,
|
|
1387
1400
|
data: {}
|
|
1388
1401
|
};
|
|
1389
|
-
function
|
|
1402
|
+
function xr(t) {
|
|
1390
1403
|
return t === "x" ? "y" : "x";
|
|
1391
1404
|
}
|
|
1392
|
-
function
|
|
1405
|
+
function Hr(t) {
|
|
1393
1406
|
var e = t.state, n = t.options, r = t.name, o = n.mainAxis, i = o === void 0 ? !0 : o, c = n.altAxis, a = c === void 0 ? !1 : c, l = n.boundary, u = n.rootBoundary, d = n.altBoundary, _ = n.padding, h = n.tether, p = h === void 0 ? !0 : h, m = n.tetherOffset, v = m === void 0 ? 0 : m, E = Me(e, {
|
|
1394
1407
|
boundary: l,
|
|
1395
1408
|
rootBoundary: u,
|
|
1396
1409
|
padding: _,
|
|
1397
1410
|
altBoundary: d
|
|
1398
|
-
}), g = j(e.placement), A = fe(e.placement), y = !A, b = tt(g), I =
|
|
1411
|
+
}), g = j(e.placement), A = fe(e.placement), y = !A, b = tt(g), I = xr(b), M = e.modifiersData.popperOffsets, P = e.rects.reference, L = e.rects.popper, U = typeof v == "function" ? v(Object.assign({}, e.rects, {
|
|
1399
1412
|
placement: e.placement
|
|
1400
1413
|
})) : v, S = typeof U == "number" ? {
|
|
1401
1414
|
mainAxis: U,
|
|
@@ -1409,42 +1422,42 @@ function Sr(t) {
|
|
|
1409
1422
|
};
|
|
1410
1423
|
if (M) {
|
|
1411
1424
|
if (i) {
|
|
1412
|
-
var D, J = b === "y" ? R : x, ee = b === "y" ?
|
|
1425
|
+
var D, J = b === "y" ? R : x, ee = b === "y" ? F : G, B = b === "y" ? "height" : "width", $ = M[b], ye = $ + E[J], te = $ - E[ee], Pe = p ? -L[B] / 2 : 0, We = A === ue ? P[B] : L[B], _e = A === ue ? -L[B] : -P[B], Ne = e.elements.arrow, se = p && Ne ? et(Ne) : {
|
|
1413
1426
|
width: 0,
|
|
1414
1427
|
height: 0
|
|
1415
|
-
}, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding :
|
|
1416
|
-
M[b] =
|
|
1428
|
+
}, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $t(), me = Z[J], Le = Z[ee], ne = be(0, P[B], se[B]), qe = y ? P[B] / 2 - Pe - ne - me - S.mainAxis : We - ne - me - S.mainAxis, sn = y ? -P[B] / 2 + Pe + ne + Le + S.mainAxis : _e + ne + Le + S.mainAxis, Ve = e.elements.arrow && Oe(e.elements.arrow), ln = Ve ? b === "y" ? Ve.clientTop || 0 : Ve.clientLeft || 0 : 0, ft = (D = w == null ? void 0 : w[b]) != null ? D : 0, cn = $ + qe - ft - ln, un = $ + sn - ft, ht = be(p ? xe(ye, cn) : ye, $, p ? ie(te, un) : te);
|
|
1429
|
+
M[b] = ht, C[b] = ht - $;
|
|
1417
1430
|
}
|
|
1418
1431
|
if (a) {
|
|
1419
|
-
var
|
|
1420
|
-
M[I] =
|
|
1432
|
+
var _t, dn = b === "x" ? R : x, pn = b === "x" ? F : G, re = M[I], Ue = I === "y" ? "height" : "width", mt = re + E[dn], Et = re - E[pn], Fe = [R, x].indexOf(g) !== -1, vt = (_t = w == null ? void 0 : w[I]) != null ? _t : 0, bt = Fe ? mt : re - P[Ue] - L[Ue] - vt + S.altAxis, It = Fe ? re + P[Ue] + L[Ue] - vt - S.altAxis : Et, gt = p && Fe ? sr(bt, re, It) : be(p ? bt : mt, re, p ? It : Et);
|
|
1433
|
+
M[I] = gt, C[I] = gt - re;
|
|
1421
1434
|
}
|
|
1422
1435
|
e.modifiersData[r] = C;
|
|
1423
1436
|
}
|
|
1424
1437
|
}
|
|
1425
|
-
const
|
|
1438
|
+
const Br = {
|
|
1426
1439
|
name: "preventOverflow",
|
|
1427
1440
|
enabled: !0,
|
|
1428
1441
|
phase: "main",
|
|
1429
|
-
fn:
|
|
1442
|
+
fn: Hr,
|
|
1430
1443
|
requiresIfExists: ["offset"]
|
|
1431
1444
|
};
|
|
1432
|
-
function
|
|
1445
|
+
function kr(t) {
|
|
1433
1446
|
return {
|
|
1434
1447
|
scrollLeft: t.scrollLeft,
|
|
1435
1448
|
scrollTop: t.scrollTop
|
|
1436
1449
|
};
|
|
1437
1450
|
}
|
|
1438
|
-
function
|
|
1439
|
-
return t ===
|
|
1451
|
+
function Wr(t) {
|
|
1452
|
+
return t === V(t) || !q(t) ? nt(t) : kr(t);
|
|
1440
1453
|
}
|
|
1441
|
-
function
|
|
1454
|
+
function qr(t) {
|
|
1442
1455
|
var e = t.getBoundingClientRect(), n = de(e.width) / t.offsetWidth || 1, r = de(e.height) / t.offsetHeight || 1;
|
|
1443
1456
|
return n !== 1 || r !== 1;
|
|
1444
1457
|
}
|
|
1445
|
-
function
|
|
1458
|
+
function Vr(t, e, n) {
|
|
1446
1459
|
n === void 0 && (n = !1);
|
|
1447
|
-
var r = q(e), o = q(e) &&
|
|
1460
|
+
var r = q(e), o = q(e) && qr(e), i = Q(e), c = pe(t, o, n), a = {
|
|
1448
1461
|
scrollLeft: 0,
|
|
1449
1462
|
scrollTop: 0
|
|
1450
1463
|
}, l = {
|
|
@@ -1452,14 +1465,14 @@ function Hr(t, e, n) {
|
|
|
1452
1465
|
y: 0
|
|
1453
1466
|
};
|
|
1454
1467
|
return (r || !r && !n) && ((K(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1455
|
-
ot(i)) && (a =
|
|
1468
|
+
ot(i)) && (a = Wr(e)), q(e) ? (l = pe(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = rt(i))), {
|
|
1456
1469
|
x: c.left + a.scrollLeft - l.x,
|
|
1457
1470
|
y: c.top + a.scrollTop - l.y,
|
|
1458
1471
|
width: c.width,
|
|
1459
1472
|
height: c.height
|
|
1460
1473
|
};
|
|
1461
1474
|
}
|
|
1462
|
-
function
|
|
1475
|
+
function Fr(t) {
|
|
1463
1476
|
var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
|
|
1464
1477
|
t.forEach(function(i) {
|
|
1465
1478
|
e.set(i.name, i);
|
|
@@ -1478,15 +1491,15 @@ function Br(t) {
|
|
|
1478
1491
|
n.has(i.name) || o(i);
|
|
1479
1492
|
}), r;
|
|
1480
1493
|
}
|
|
1481
|
-
function
|
|
1482
|
-
var e =
|
|
1494
|
+
function Gr(t) {
|
|
1495
|
+
var e = Fr(t);
|
|
1483
1496
|
return $e.reduce(function(n, r) {
|
|
1484
1497
|
return n.concat(e.filter(function(o) {
|
|
1485
1498
|
return o.phase === r;
|
|
1486
1499
|
}));
|
|
1487
1500
|
}, []);
|
|
1488
1501
|
}
|
|
1489
|
-
function
|
|
1502
|
+
function $r(t) {
|
|
1490
1503
|
var e;
|
|
1491
1504
|
return function() {
|
|
1492
1505
|
return e || (e = new Promise(function(n) {
|
|
@@ -1503,10 +1516,10 @@ function X(t) {
|
|
|
1503
1516
|
return o.replace(/%s/, i);
|
|
1504
1517
|
}, t);
|
|
1505
1518
|
}
|
|
1506
|
-
var oe = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',
|
|
1507
|
-
function
|
|
1519
|
+
var oe = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', jr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Ut = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
1520
|
+
function Yr(t) {
|
|
1508
1521
|
t.forEach(function(e) {
|
|
1509
|
-
[].concat(Object.keys(e),
|
|
1522
|
+
[].concat(Object.keys(e), Ut).filter(function(n, r, o) {
|
|
1510
1523
|
return o.indexOf(n) === r;
|
|
1511
1524
|
}).forEach(function(n) {
|
|
1512
1525
|
switch (n) {
|
|
@@ -1535,19 +1548,19 @@ function Vr(t) {
|
|
|
1535
1548
|
case "data":
|
|
1536
1549
|
break;
|
|
1537
1550
|
default:
|
|
1538
|
-
console.error('PopperJS: an invalid property has been provided to the "' + e.name + '" modifier, valid properties are ' +
|
|
1551
|
+
console.error('PopperJS: an invalid property has been provided to the "' + e.name + '" modifier, valid properties are ' + Ut.map(function(r) {
|
|
1539
1552
|
return '"' + r + '"';
|
|
1540
1553
|
}).join(", ") + '; but "' + n + '" was provided.');
|
|
1541
1554
|
}
|
|
1542
1555
|
e.requires && e.requires.forEach(function(r) {
|
|
1543
1556
|
t.find(function(o) {
|
|
1544
1557
|
return o.name === r;
|
|
1545
|
-
}) == null && console.error(X(
|
|
1558
|
+
}) == null && console.error(X(jr, String(e.name), r, r));
|
|
1546
1559
|
});
|
|
1547
1560
|
});
|
|
1548
1561
|
});
|
|
1549
1562
|
}
|
|
1550
|
-
function
|
|
1563
|
+
function zr(t, e) {
|
|
1551
1564
|
var n = /* @__PURE__ */ new Set();
|
|
1552
1565
|
return t.filter(function(r) {
|
|
1553
1566
|
var o = e(r);
|
|
@@ -1555,7 +1568,7 @@ function Fr(t, e) {
|
|
|
1555
1568
|
return n.add(o), !0;
|
|
1556
1569
|
});
|
|
1557
1570
|
}
|
|
1558
|
-
function
|
|
1571
|
+
function Kr(t) {
|
|
1559
1572
|
var e = t.reduce(function(n, r) {
|
|
1560
1573
|
var o = n[r.name];
|
|
1561
1574
|
return n[r.name] = o ? Object.assign({}, o, r, {
|
|
@@ -1567,27 +1580,27 @@ function Gr(t) {
|
|
|
1567
1580
|
return e[n];
|
|
1568
1581
|
});
|
|
1569
1582
|
}
|
|
1570
|
-
var
|
|
1583
|
+
var St = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Zr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", Ct = {
|
|
1571
1584
|
placement: "bottom",
|
|
1572
1585
|
modifiers: [],
|
|
1573
1586
|
strategy: "absolute"
|
|
1574
1587
|
};
|
|
1575
|
-
function
|
|
1588
|
+
function Dt() {
|
|
1576
1589
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
1577
1590
|
e[n] = arguments[n];
|
|
1578
1591
|
return !e.some(function(r) {
|
|
1579
1592
|
return !(r && typeof r.getBoundingClientRect == "function");
|
|
1580
1593
|
});
|
|
1581
1594
|
}
|
|
1582
|
-
function
|
|
1595
|
+
function Xr(t) {
|
|
1583
1596
|
t === void 0 && (t = {});
|
|
1584
|
-
var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, i = o === void 0 ?
|
|
1597
|
+
var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, i = o === void 0 ? Ct : o;
|
|
1585
1598
|
return function(a, l, u) {
|
|
1586
1599
|
u === void 0 && (u = i);
|
|
1587
1600
|
var d = {
|
|
1588
1601
|
placement: "bottom",
|
|
1589
1602
|
orderedModifiers: [],
|
|
1590
|
-
options: Object.assign({},
|
|
1603
|
+
options: Object.assign({}, Ct, i),
|
|
1591
1604
|
modifiersData: {},
|
|
1592
1605
|
elements: {
|
|
1593
1606
|
reference: a,
|
|
@@ -1603,15 +1616,15 @@ function jr(t) {
|
|
|
1603
1616
|
reference: ae(a) ? Ie(a) : a.contextElement ? Ie(a.contextElement) : [],
|
|
1604
1617
|
popper: Ie(l)
|
|
1605
1618
|
};
|
|
1606
|
-
var y =
|
|
1619
|
+
var y = Gr(Kr([].concat(r, d.options.modifiers)));
|
|
1607
1620
|
if (d.orderedModifiers = y.filter(function(w) {
|
|
1608
1621
|
return w.enabled;
|
|
1609
1622
|
}), {}.NODE_ENV !== "production") {
|
|
1610
|
-
var b =
|
|
1623
|
+
var b = zr([].concat(y, d.options.modifiers), function(w) {
|
|
1611
1624
|
var C = w.name;
|
|
1612
1625
|
return C;
|
|
1613
1626
|
});
|
|
1614
|
-
if (
|
|
1627
|
+
if (Yr(b), j(d.options.placement) === Be) {
|
|
1615
1628
|
var I = d.orderedModifiers.find(function(w) {
|
|
1616
1629
|
var C = w.name;
|
|
1617
1630
|
return C === "flip";
|
|
@@ -1633,19 +1646,19 @@ function jr(t) {
|
|
|
1633
1646
|
forceUpdate: function() {
|
|
1634
1647
|
if (!h) {
|
|
1635
1648
|
var g = d.elements, A = g.reference, y = g.popper;
|
|
1636
|
-
if (!
|
|
1637
|
-
({}).NODE_ENV !== "production" && console.error(
|
|
1649
|
+
if (!Dt(A, y)) {
|
|
1650
|
+
({}).NODE_ENV !== "production" && console.error(St);
|
|
1638
1651
|
return;
|
|
1639
1652
|
}
|
|
1640
1653
|
d.rects = {
|
|
1641
|
-
reference:
|
|
1654
|
+
reference: Vr(A, Oe(y), d.options.strategy === "fixed"),
|
|
1642
1655
|
popper: et(y)
|
|
1643
1656
|
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(w) {
|
|
1644
1657
|
return d.modifiersData[w.name] = Object.assign({}, w.data);
|
|
1645
1658
|
});
|
|
1646
1659
|
for (var b = 0, I = 0; I < d.orderedModifiers.length; I++) {
|
|
1647
1660
|
if ({}.NODE_ENV !== "production" && (b += 1, b > 100)) {
|
|
1648
|
-
console.error(
|
|
1661
|
+
console.error(Zr);
|
|
1649
1662
|
break;
|
|
1650
1663
|
}
|
|
1651
1664
|
if (d.reset === !0) {
|
|
@@ -1664,7 +1677,7 @@ function jr(t) {
|
|
|
1664
1677
|
},
|
|
1665
1678
|
// Async and optimistically optimized update – it will not be executed if
|
|
1666
1679
|
// not necessary (debounced to run at most once-per-tick)
|
|
1667
|
-
update:
|
|
1680
|
+
update: $r(function() {
|
|
1668
1681
|
return new Promise(function(E) {
|
|
1669
1682
|
p.forceUpdate(), E(d);
|
|
1670
1683
|
});
|
|
@@ -1673,8 +1686,8 @@ function jr(t) {
|
|
|
1673
1686
|
v(), h = !0;
|
|
1674
1687
|
}
|
|
1675
1688
|
};
|
|
1676
|
-
if (!
|
|
1677
|
-
return {}.NODE_ENV !== "production" && console.error(
|
|
1689
|
+
if (!Dt(a, l))
|
|
1690
|
+
return {}.NODE_ENV !== "production" && console.error(St), p;
|
|
1678
1691
|
p.setOptions(u).then(function(E) {
|
|
1679
1692
|
!h && u.onFirstUpdate && u.onFirstUpdate(E);
|
|
1680
1693
|
});
|
|
@@ -1701,8 +1714,8 @@ function jr(t) {
|
|
|
1701
1714
|
return p;
|
|
1702
1715
|
};
|
|
1703
1716
|
}
|
|
1704
|
-
var
|
|
1705
|
-
defaultModifiers:
|
|
1717
|
+
var Qr = [Er, Rr, _r, or, Cr, Pr, Br, dr, Lr], Zt = /* @__PURE__ */ Xr({
|
|
1718
|
+
defaultModifiers: Qr
|
|
1706
1719
|
});
|
|
1707
1720
|
function ze(t, e, n, r) {
|
|
1708
1721
|
e ? (t.classList.remove(r), t.classList.add(n)) : (t.classList.add(r), t.classList.remove(n));
|
|
@@ -1711,7 +1724,7 @@ let k;
|
|
|
1711
1724
|
const ve = {}, Ke = {
|
|
1712
1725
|
SHIFT: "shift-key"
|
|
1713
1726
|
};
|
|
1714
|
-
function
|
|
1727
|
+
function Xt() {
|
|
1715
1728
|
k && (document.removeEventListener("click", k.globalOnClick), document.removeEventListener("keyup", k.globalOnKeyup), document.removeEventListener("keydown", k.globalOnKeydown), k = null);
|
|
1716
1729
|
}
|
|
1717
1730
|
function Ze() {
|
|
@@ -1727,14 +1740,14 @@ function Ze() {
|
|
|
1727
1740
|
ze(e, !1, s.POPUP__VISIBLE, s.POPUP__HIDDEN);
|
|
1728
1741
|
});
|
|
1729
1742
|
}
|
|
1730
|
-
function
|
|
1731
|
-
k &&
|
|
1743
|
+
function Jr() {
|
|
1744
|
+
k && Xt(), k = {}, k.globalOnClick = Ze, document.addEventListener("click", k.globalOnClick), k.globalOnKeyup = (t) => {
|
|
1732
1745
|
t.key === "Escape" && Ze(), t.shiftKey || (ve[Ke.SHIFT] = !1), ve[t.key] = !1;
|
|
1733
1746
|
}, document.addEventListener("keyup", k.globalOnKeyup), k.globalOnKeydown = (t) => {
|
|
1734
1747
|
t.shiftKey && (ve[Ke.SHIFT] = !0), ve[t.key] = !0;
|
|
1735
1748
|
}, document.addEventListener("keydown", k.globalOnKeydown);
|
|
1736
1749
|
}
|
|
1737
|
-
function
|
|
1750
|
+
function eo() {
|
|
1738
1751
|
return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
1739
1752
|
}
|
|
1740
1753
|
function Te(t, e, n, r, o) {
|
|
@@ -1744,7 +1757,7 @@ function Te(t, e, n, r, o) {
|
|
|
1744
1757
|
function d(h) {
|
|
1745
1758
|
clearTimeout(i), clearTimeout(c), (!(o != null && o.isPerformPopup) || o != null && o.isPerformPopup && o.isPerformPopup()) && (i = window.setTimeout(
|
|
1746
1759
|
() => {
|
|
1747
|
-
|
|
1760
|
+
Zt(e, n, {
|
|
1748
1761
|
placement: (o == null ? void 0 : o.popupPlacement) || Qe.BOTTOM,
|
|
1749
1762
|
modifiers: [
|
|
1750
1763
|
{
|
|
@@ -1771,7 +1784,7 @@ function Te(t, e, n, r, o) {
|
|
|
1771
1784
|
e.onclick = (h) => {
|
|
1772
1785
|
var m;
|
|
1773
1786
|
const p = e.getAttribute("aria-expanded") === "true";
|
|
1774
|
-
(!(o != null && o.isPerformPopup) || o.isPerformPopup()) && (h.stopPropagation(), h.preventDefault(), p && e.getAttribute("aria-expanded") === "true" ? (_(u), (m = document.activeElement) == null || m.blur()) : (
|
|
1787
|
+
(!(o != null && o.isPerformPopup) || o.isPerformPopup()) && (h.stopPropagation(), h.preventDefault(), p && e.getAttribute("aria-expanded") === "true" ? (_(u), (m = document.activeElement) == null || m.blur()) : (eo() && Ze(), d(u))), o != null && o.onClick && o.onClick(h);
|
|
1775
1788
|
};
|
|
1776
1789
|
}
|
|
1777
1790
|
}
|
|
@@ -1782,7 +1795,7 @@ function H() {
|
|
|
1782
1795
|
(t) => (t ^ crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> t) / 4).toString(16)
|
|
1783
1796
|
);
|
|
1784
1797
|
}
|
|
1785
|
-
const
|
|
1798
|
+
const to = `<div class="popup__wrapper popup__wrapper--hidden">
|
|
1786
1799
|
<div class="popup__content">
|
|
1787
1800
|
<div class="popup__arrow" data-popper-arrow></div>
|
|
1788
1801
|
</div>
|
|
@@ -1794,7 +1807,7 @@ function it(t, e) {
|
|
|
1794
1807
|
throw new Error("renderPopup: labelledByElement does not have an `id` attribute");
|
|
1795
1808
|
const r = H();
|
|
1796
1809
|
t.setAttribute("aria-controls", r);
|
|
1797
|
-
const o = T(
|
|
1810
|
+
const o = T(to);
|
|
1798
1811
|
if (o.setAttribute("id", r), o.setAttribute("aria-labelledby", n), e != null && e.removePopupArrow) {
|
|
1799
1812
|
const i = o.querySelector(f(s.POPUP_ARROW));
|
|
1800
1813
|
if (!i)
|
|
@@ -1803,13 +1816,13 @@ function it(t, e) {
|
|
|
1803
1816
|
}
|
|
1804
1817
|
return o;
|
|
1805
1818
|
}
|
|
1806
|
-
const
|
|
1807
|
-
`,
|
|
1819
|
+
const no = `<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
|
|
1820
|
+
`, Qt = `<span class="utds-new-tab-link-a11y">
|
|
1808
1821
|
<span class="visually-hidden">opens in a new tab</span>
|
|
1809
1822
|
<span class="utds-icon-after-external-link" aria-hidden="true"></span>
|
|
1810
1823
|
</span>
|
|
1811
|
-
`,
|
|
1812
|
-
`,
|
|
1824
|
+
`, ro = `<ul class="vertical-menu" role="menu" />
|
|
1825
|
+
`, oo = `<li class="vertical-menu__item">
|
|
1813
1826
|
<span class="vertical-menu__title">
|
|
1814
1827
|
<span class="vertical-menu__plain-title"></span>
|
|
1815
1828
|
<a href="#" class="vertical-menu__link-title">
|
|
@@ -1827,7 +1840,7 @@ function He(t, e, n) {
|
|
|
1827
1840
|
let r = !1;
|
|
1828
1841
|
return t && (Array.isArray(t) ? r = t.some((i) => He(i, e, n)) : (r = n(t), r || (r = !!((o = e == null ? void 0 : e.filter((i) => t[i])) != null && o.some((i) => He(t[i], e, n)))))), r;
|
|
1829
1842
|
}
|
|
1830
|
-
function
|
|
1843
|
+
function io(t) {
|
|
1831
1844
|
const e = t.closest("li");
|
|
1832
1845
|
if (!e)
|
|
1833
1846
|
throw console.error("element", t), new Error("toggleChildMenuExpansion: parent not found for child");
|
|
@@ -1842,18 +1855,18 @@ function eo(t) {
|
|
|
1842
1855
|
n.classList.toggle(s.VISUALLY_HIDDEN), n.classList.contains(s.VISUALLY_HIDDEN) ? (r.setAttribute("aria-expanded", "false"), o.classList.add(s.IS_CLOSED), o.classList.remove(s.IS_OPEN)) : (r.setAttribute("aria-expanded", "true"), o.classList.remove(s.IS_CLOSED), o.classList.add(s.IS_OPEN));
|
|
1843
1856
|
});
|
|
1844
1857
|
}
|
|
1845
|
-
function
|
|
1858
|
+
function ao(t) {
|
|
1846
1859
|
return (e) => {
|
|
1847
|
-
e.preventDefault(), e.stopPropagation(),
|
|
1860
|
+
e.preventDefault(), e.stopPropagation(), io(t);
|
|
1848
1861
|
};
|
|
1849
1862
|
}
|
|
1850
|
-
function
|
|
1851
|
-
const t = T(
|
|
1863
|
+
function Rt() {
|
|
1864
|
+
const t = T(no);
|
|
1852
1865
|
return t.classList.add(s.IS_CLOSED), t;
|
|
1853
1866
|
}
|
|
1854
|
-
function
|
|
1867
|
+
function so(t, e, n) {
|
|
1855
1868
|
var _, h;
|
|
1856
|
-
const r = T(
|
|
1869
|
+
const r = T(oo), o = r.querySelector(f(s.POPUP_MENU__TITLE));
|
|
1857
1870
|
if (!o)
|
|
1858
1871
|
throw new Error("renderPopupMenuItem: menuItemTitleWrapper not found");
|
|
1859
1872
|
const i = (
|
|
@@ -1887,7 +1900,7 @@ function no(t, e, n) {
|
|
|
1887
1900
|
let p;
|
|
1888
1901
|
switch (n.childrenMenuType) {
|
|
1889
1902
|
case W.FLYOUT: {
|
|
1890
|
-
p =
|
|
1903
|
+
p = Rt(), i.appendChild(p), i.setAttribute("id", H());
|
|
1891
1904
|
const m = at(
|
|
1892
1905
|
{
|
|
1893
1906
|
menuItems: e.actionMenu,
|
|
@@ -1917,7 +1930,7 @@ function no(t, e, n) {
|
|
|
1917
1930
|
e.actionMenu,
|
|
1918
1931
|
n
|
|
1919
1932
|
), v = H();
|
|
1920
|
-
m.setAttribute("id", v), m.classList.add(s.VISUALLY_HIDDEN), r.appendChild(m), i.onclick =
|
|
1933
|
+
m.setAttribute("id", v), m.classList.add(s.VISUALLY_HIDDEN), r.appendChild(m), i.onclick = ao(i), i.setAttribute("aria-expanded", "false"), i.setAttribute("aria-controls", v), p = Rt(), i.appendChild(p), c.remove(), a.remove(), r.addEventListener("focusin", (E) => {
|
|
1921
1934
|
var g, A, y, b;
|
|
1922
1935
|
for (let I = (
|
|
1923
1936
|
/** @type Element | null | undefined */
|
|
@@ -1954,14 +1967,14 @@ function no(t, e, n) {
|
|
|
1954
1967
|
throw console.error(e), new Error("renderPopupMenuItem: popupMenuItem must have either actionMenu, actionFunction, actionUrl, or isDivider (popupMenuItem.title)");
|
|
1955
1968
|
if (!e.isDivider && (u.appendChild(document.createTextNode(e.title)), d.appendChild(document.createTextNode(e.title)), (_ = e.actionUrl) != null && _.openInNewTab || (h = e.actionFunctionUrl) != null && h.openInNewTab)) {
|
|
1956
1969
|
c.setAttribute("target", "_blank");
|
|
1957
|
-
const p = T(
|
|
1970
|
+
const p = T(Qt);
|
|
1958
1971
|
u.appendChild(p), d.appendChild(p);
|
|
1959
1972
|
}
|
|
1960
1973
|
return (e.isSelected || e.actionMenu && He(e.actionMenu, ["actionMenu"], (p) => !!p.isSelected)) && (i.classList.add(s.MENU_ITEM__SELECTED), c.classList.add(s.MENU_ITEM__SELECTED)), e.isSelected ? r.classList.add(s.MENU_ITEM__SELECTED) : r.classList.remove(s.MENU_ITEM__SELECTED), t.appendChild(r), r;
|
|
1961
1974
|
}
|
|
1962
1975
|
function he(t, e) {
|
|
1963
|
-
const n = T(
|
|
1964
|
-
return t.forEach((r) =>
|
|
1976
|
+
const n = T(ro);
|
|
1977
|
+
return t.forEach((r) => so(n, r, e)), n;
|
|
1965
1978
|
}
|
|
1966
1979
|
function at(t, e, n) {
|
|
1967
1980
|
const r = it(e, { removePopupArrow: n.removePopupArrow }), o = r.querySelector(f(s.POPUP_CONTENT_WRAPPER));
|
|
@@ -1970,19 +1983,19 @@ function at(t, e, n) {
|
|
|
1970
1983
|
const i = he(t.menuItems, n);
|
|
1971
1984
|
return i.setAttribute("aria-label", t.title), o.appendChild(i), r;
|
|
1972
1985
|
}
|
|
1973
|
-
const
|
|
1986
|
+
const lo = `<div class="tooltip__wrapper tooltip__wrapper--hidden" aria-hidden="true">
|
|
1974
1987
|
<div class="tooltip__content">
|
|
1975
1988
|
<div class="tooltip__arrow" data-popper-arrow></div>
|
|
1976
1989
|
</div>
|
|
1977
1990
|
</div>
|
|
1978
1991
|
`;
|
|
1979
1992
|
let le = NaN;
|
|
1980
|
-
function
|
|
1981
|
-
const n = T(
|
|
1993
|
+
function Jt(t, e) {
|
|
1994
|
+
const n = T(lo), r = n.querySelector(f(s.TOOLTIP__CONTENT));
|
|
1982
1995
|
if (!r)
|
|
1983
1996
|
throw new Error("hookupToolTip: toolTipContent not found");
|
|
1984
1997
|
r.appendChild(document.createTextNode(e)), t.appendChild(n);
|
|
1985
|
-
const o =
|
|
1998
|
+
const o = Zt(
|
|
1986
1999
|
t,
|
|
1987
2000
|
n,
|
|
1988
2001
|
{
|
|
@@ -2017,7 +2030,7 @@ function Kt(t, e) {
|
|
|
2017
2030
|
);
|
|
2018
2031
|
};
|
|
2019
2032
|
}
|
|
2020
|
-
const
|
|
2033
|
+
const co = `<div class="utds-badge__wrapper">
|
|
2021
2034
|
<span class="utds-badge__value"></span>
|
|
2022
2035
|
<span class="utds-badge__label visually-hidden"></span>
|
|
2023
2036
|
</div>
|
|
@@ -2026,7 +2039,7 @@ function st(t) {
|
|
|
2026
2039
|
let e = null;
|
|
2027
2040
|
if (t) {
|
|
2028
2041
|
e = /** @type {HTMLElement} */
|
|
2029
|
-
T(
|
|
2042
|
+
T(co), e.classList.add(s.BADGE_WRAPPER__ACTION_ITEM);
|
|
2030
2043
|
const n = e.querySelector(f(s.BADGE__LABEL));
|
|
2031
2044
|
if (!n)
|
|
2032
2045
|
throw new Error("renderActionItemBadge: badgeLabel not found");
|
|
@@ -2041,8 +2054,8 @@ function st(t) {
|
|
|
2041
2054
|
}
|
|
2042
2055
|
return e;
|
|
2043
2056
|
}
|
|
2044
|
-
function
|
|
2045
|
-
const e = T(
|
|
2057
|
+
function uo(t) {
|
|
2058
|
+
const e = T(Gn), n = document.createTextNode(t.title), r = (
|
|
2046
2059
|
/** @type {HTMLElement} */
|
|
2047
2060
|
e instanceof HTMLCollection ? e[0] : e
|
|
2048
2061
|
);
|
|
@@ -2084,33 +2097,33 @@ function io(t) {
|
|
|
2084
2097
|
e.appendChild(u), Te(r, i, u, "menu", void 0);
|
|
2085
2098
|
} else
|
|
2086
2099
|
throw console.error(t), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
|
|
2087
|
-
return
|
|
2100
|
+
return Jt(e, t.title), e;
|
|
2088
2101
|
}
|
|
2089
|
-
function
|
|
2102
|
+
function po() {
|
|
2090
2103
|
var n, r;
|
|
2091
2104
|
const { actionItems: t } = N();
|
|
2092
2105
|
let e = null;
|
|
2093
|
-
return t != null && t.length && (e = T(
|
|
2106
|
+
return t != null && t.length && (e = T(Fn), (r = (n = N().actionItems) == null ? void 0 : n.map((o) => uo(o))) == null || r.forEach((o) => e.appendChild(o))), e;
|
|
2094
2107
|
}
|
|
2095
|
-
const
|
|
2096
|
-
`,
|
|
2108
|
+
const fo = `<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
|
|
2109
|
+
`, en = `<div class="utds-utah-id-wrapper"></div>
|
|
2097
2110
|
`, Ae = {
|
|
2098
2111
|
PROFILE: "https://id.utah.gov",
|
|
2099
2112
|
SIGN_IN: `https://id.utah.gov/login?goto=${window.location}`,
|
|
2100
2113
|
SIGN_OUT: `https://id.utah.gov/logout?goto=${window.location}`,
|
|
2101
2114
|
USER_INFO: "https://id.utah.gov/api/userInfo"
|
|
2102
|
-
},
|
|
2115
|
+
}, ho = `<div class="vertical-menu__wrapper">
|
|
2103
2116
|
<div class="vertical-menu__wrapper-title"></div>
|
|
2104
2117
|
</div>
|
|
2105
2118
|
`;
|
|
2106
|
-
function
|
|
2107
|
-
const n = T(
|
|
2119
|
+
function tn(t, e) {
|
|
2120
|
+
const n = T(ho), r = n.querySelector(f(s.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
|
|
2108
2121
|
if (!r)
|
|
2109
2122
|
throw new Error("renderMenuWithTitle: menuTitleDiv not found");
|
|
2110
2123
|
return r.appendChild(document.createTextNode(e)), n.appendChild(t), n;
|
|
2111
2124
|
}
|
|
2112
2125
|
let O = null;
|
|
2113
|
-
function
|
|
2126
|
+
function nn(t) {
|
|
2114
2127
|
O = t, document.querySelectorAll(f(s.UTAH_ID__BUTTON)).forEach((n) => {
|
|
2115
2128
|
var r;
|
|
2116
2129
|
if (n) {
|
|
@@ -2131,11 +2144,11 @@ function lt(t, e) {
|
|
|
2131
2144
|
var n;
|
|
2132
2145
|
t && e && (!!(O != null && O.isDefinitive) && !!((n = O == null ? void 0 : O.userInfo) != null && n.authenticated) ? (t.setAttribute("aria-haspopup", "menu"), t.setAttribute("aria-expanded", "false"), e.removeAttribute("aria-hidden")) : (t.removeAttribute("aria-haspopup"), t.removeAttribute("aria-expanded"), e.setAttribute("aria-hidden", "true")));
|
|
2133
2146
|
}
|
|
2134
|
-
function
|
|
2135
|
-
const t = T(
|
|
2136
|
-
return t.setAttribute("id", H()), O &&
|
|
2147
|
+
function rn() {
|
|
2148
|
+
const t = T(fo);
|
|
2149
|
+
return t.setAttribute("id", H()), O && nn(O), t;
|
|
2137
2150
|
}
|
|
2138
|
-
function
|
|
2151
|
+
function on(t) {
|
|
2139
2152
|
var l;
|
|
2140
2153
|
const e = N(), n = e.utahId !== !1 && e.utahId !== !0 && e.utahId.onProfile, r = e.utahId !== !1 && e.utahId !== !0 && e.utahId.onSignOut, o = [...e.utahId !== !0 && e.utahId !== !1 && ((l = e.utahId) == null ? void 0 : l.menuItems) || []];
|
|
2141
2154
|
o.length && o.push({
|
|
@@ -2155,13 +2168,13 @@ function en(t) {
|
|
|
2155
2168
|
actionFunction: r || void 0,
|
|
2156
2169
|
title: "Sign Out"
|
|
2157
2170
|
}
|
|
2158
|
-
], c = he(i, { childrenMenuType: W.INLINE }), a = t ?
|
|
2171
|
+
], c = he(i, { childrenMenuType: W.INLINE }), a = t ? tn(c, "Utah ID Menu") : c;
|
|
2159
2172
|
return a.setAttribute("aria-label", "Utah Id Menu"), a.setAttribute("id", H()), a;
|
|
2160
2173
|
}
|
|
2161
|
-
function
|
|
2162
|
-
const t = T(
|
|
2174
|
+
function _o() {
|
|
2175
|
+
const t = T(en), e = rn();
|
|
2163
2176
|
e.setAttribute("id", H()), t.appendChild(e);
|
|
2164
|
-
const n =
|
|
2177
|
+
const n = on(!1), r = it(e), o = (
|
|
2165
2178
|
/** @type {HTMLElement} */
|
|
2166
2179
|
r.querySelector(f(s.POPUP_CONTENT_WRAPPER))
|
|
2167
2180
|
);
|
|
@@ -2186,31 +2199,31 @@ function co() {
|
|
|
2186
2199
|
}
|
|
2187
2200
|
), t;
|
|
2188
2201
|
}
|
|
2189
|
-
function
|
|
2190
|
-
const t = T(
|
|
2202
|
+
function mo() {
|
|
2203
|
+
const t = T(en), e = rn(), n = e.getAttribute("id");
|
|
2191
2204
|
if (!n)
|
|
2192
2205
|
throw new Error("renderUtahIdForMobile: utahIdButton has no id");
|
|
2193
2206
|
t.appendChild(e);
|
|
2194
|
-
const r =
|
|
2207
|
+
const r = on(!0), o = r.getAttribute("id");
|
|
2195
2208
|
if (!o)
|
|
2196
2209
|
throw new Error("renderUtahIdForMobile: utahIdPopupMenu has no id");
|
|
2197
2210
|
return t.appendChild(r), e.setAttribute("aria-controls", o), r.setAttribute("aria-labelledby", n), lt(e, r), { button: e, menu: r };
|
|
2198
2211
|
}
|
|
2199
|
-
function
|
|
2200
|
-
const t = T(
|
|
2201
|
-
return e && t.appendChild(e), N().utahId !== !1 && t.appendChild(
|
|
2212
|
+
function Eo() {
|
|
2213
|
+
const t = T(Vn), e = po();
|
|
2214
|
+
return e && t.appendChild(e), N().utahId !== !1 && t.appendChild(_o()), t;
|
|
2202
2215
|
}
|
|
2203
|
-
const
|
|
2216
|
+
const vo = `<div class="utds-title-wrapper">
|
|
2204
2217
|
<div class="utds-title-wrapper__logo"></div>
|
|
2205
2218
|
<div class="utds-title-wrapper__title"></div>
|
|
2206
2219
|
</div>
|
|
2207
|
-
`,
|
|
2220
|
+
`, bo = `<a class="utds-title-wrapper">
|
|
2208
2221
|
<div class="utds-title-wrapper__logo"></div>
|
|
2209
2222
|
<div class="utds-title-wrapper__title"></div>
|
|
2210
2223
|
</a>
|
|
2211
2224
|
`;
|
|
2212
|
-
function
|
|
2213
|
-
const t = N().titleURL, e = T(t ?
|
|
2225
|
+
function Io() {
|
|
2226
|
+
const t = N().titleURL, e = T(t ? bo : vo);
|
|
2214
2227
|
if (!e)
|
|
2215
2228
|
throw new Error("LogoTitle: titleWrapper is null");
|
|
2216
2229
|
t && e.setAttribute("href", t);
|
|
@@ -2230,7 +2243,7 @@ function _o() {
|
|
|
2230
2243
|
const c = document.createTextNode(i), a = e.querySelector(f(s.TITLE__TITLE));
|
|
2231
2244
|
return a == null || a.appendChild(c), !o && r && (a == null || a.classList.add(s.VISUALLY_HIDDEN)), e;
|
|
2232
2245
|
}
|
|
2233
|
-
const
|
|
2246
|
+
const go = `<div class="utah-logo-svg" role="img">
|
|
2234
2247
|
<title>An official website of the State of Utah</title>
|
|
2235
2248
|
<svg viewBox="0 0 137.363 56.6959">
|
|
2236
2249
|
<g>
|
|
@@ -2241,7 +2254,7 @@ const mo = `<div class="utah-logo-svg" role="img">
|
|
|
2241
2254
|
</g>
|
|
2242
2255
|
</svg>
|
|
2243
2256
|
</div>
|
|
2244
|
-
`,
|
|
2257
|
+
`, Mo = `<div class="utah-logo-svg">
|
|
2245
2258
|
<svg viewBox="0 0 105.9496 47.6226" role="img">
|
|
2246
2259
|
<title>An official website of the State of Utah</title>
|
|
2247
2260
|
<g>
|
|
@@ -2253,36 +2266,36 @@ const mo = `<div class="utah-logo-svg" role="img">
|
|
|
2253
2266
|
</svg>
|
|
2254
2267
|
</div>
|
|
2255
2268
|
`;
|
|
2256
|
-
function
|
|
2269
|
+
function To() {
|
|
2257
2270
|
let t;
|
|
2258
2271
|
switch (N().size) {
|
|
2259
2272
|
case ce.LARGE:
|
|
2260
|
-
t =
|
|
2273
|
+
t = go;
|
|
2261
2274
|
break;
|
|
2262
2275
|
case ce.SMALL:
|
|
2263
2276
|
case ce.MEDIUM:
|
|
2264
|
-
t =
|
|
2277
|
+
t = Mo;
|
|
2265
2278
|
break;
|
|
2266
2279
|
default:
|
|
2267
2280
|
throw new Error(`Unknown settings size: '${N().size}'`);
|
|
2268
2281
|
}
|
|
2269
2282
|
return T(t);
|
|
2270
2283
|
}
|
|
2271
|
-
function
|
|
2284
|
+
function Ao() {
|
|
2272
2285
|
var n;
|
|
2273
|
-
const t = T(
|
|
2286
|
+
const t = T(Un);
|
|
2274
2287
|
t.classList.add(`utds-header--${((n = N().size) == null ? void 0 : n.toLowerCase()) || ce.MEDIUM}`);
|
|
2275
|
-
const e = T(
|
|
2276
|
-
return t.appendChild(e), e.appendChild(
|
|
2288
|
+
const e = T(Ln);
|
|
2289
|
+
return t.appendChild(e), e.appendChild(To()), e.appendChild(T(Sn)), e.appendChild(Io()), t.appendChild(Eo()), t;
|
|
2277
2290
|
}
|
|
2278
|
-
const
|
|
2291
|
+
const wo = `<li class="menu-item">
|
|
2279
2292
|
<span class="menu-item__title">
|
|
2280
2293
|
<button class="menu-item__button-title" type="button"></button>
|
|
2281
2294
|
<a class="menu-item__link-title"></a>
|
|
2282
2295
|
<span class="menu-chiclet"></span>
|
|
2283
2296
|
</span>
|
|
2284
2297
|
</li>
|
|
2285
|
-
`,
|
|
2298
|
+
`, Oo = `<div class="utah-design-system main-menu__outer">
|
|
2286
2299
|
<div class="main-menu__wrapper">
|
|
2287
2300
|
<nav class="horizontal-menu main-menu__nav">
|
|
2288
2301
|
<h2 class="main-menu__title visually-hidden"></h2>
|
|
@@ -2309,7 +2322,7 @@ const Io = `<li class="menu-item">
|
|
|
2309
2322
|
</button>
|
|
2310
2323
|
</div>
|
|
2311
2324
|
</div>
|
|
2312
|
-
`,
|
|
2325
|
+
`, yo = `<div class="utah-design-system" id="search-modal">
|
|
2313
2326
|
<div class="search-modal__close-button-wrapper">
|
|
2314
2327
|
<button type="button" class="search-modal__close-button button icon-button icon-button--borderless">
|
|
2315
2328
|
<span class="utds-icon-before-x-icon" aria-hidden="true"></span>
|
|
@@ -2317,7 +2330,7 @@ const Io = `<li class="menu-item">
|
|
|
2317
2330
|
</button>
|
|
2318
2331
|
</div>
|
|
2319
2332
|
<div class="search-modal">
|
|
2320
|
-
<form class="search-modal__form hcenter" role="search" aria-label="
|
|
2333
|
+
<form class="search-modal__form hcenter" role="search" aria-label="Sitewide">
|
|
2321
2334
|
<span class="utds-icon-before-search search-modal__icon-search vcenter" aria-hidden="true"></span>
|
|
2322
2335
|
<label for="search-modal-input-id" class="search-modal__input-label visually-hidden">Enter your search
|
|
2323
2336
|
terms</label>
|
|
@@ -2348,8 +2361,8 @@ function Ce() {
|
|
|
2348
2361
|
throw new Error("closSearchModal: searchIcon not found");
|
|
2349
2362
|
e.focus();
|
|
2350
2363
|
}
|
|
2351
|
-
function
|
|
2352
|
-
const t = T(
|
|
2364
|
+
function Po() {
|
|
2365
|
+
const t = T(yo), e = (
|
|
2353
2366
|
/** @type {HTMLElement} */
|
|
2354
2367
|
t.querySelector(f(s.SEARCH__SEARCH_BACKDROP))
|
|
2355
2368
|
);
|
|
@@ -2402,9 +2415,9 @@ function To() {
|
|
|
2402
2415
|
a.preventDefault(), a.stopPropagation(), n.focus();
|
|
2403
2416
|
});
|
|
2404
2417
|
}
|
|
2405
|
-
function
|
|
2418
|
+
function No() {
|
|
2406
2419
|
var l;
|
|
2407
|
-
const t = N(), e = T(
|
|
2420
|
+
const t = N(), e = T(Oo), n = e.querySelector(f(s.MAIN_MENU__NAV));
|
|
2408
2421
|
if (!n)
|
|
2409
2422
|
throw new Error("renderMainMenu(): mainMenu not created");
|
|
2410
2423
|
const r = n.querySelector(f(s.MAIN_MENU__TITLE));
|
|
@@ -2417,7 +2430,7 @@ function Ao() {
|
|
|
2417
2430
|
throw new Error("renderMainMenu(): mainMenuTop not found");
|
|
2418
2431
|
t.mainMenu.menuItems.forEach((u) => {
|
|
2419
2432
|
var m, v;
|
|
2420
|
-
const d = T(
|
|
2433
|
+
const d = T(wo);
|
|
2421
2434
|
i.appendChild(d);
|
|
2422
2435
|
const _ = d.querySelector(f(s.MENU_ITEM__TITLE));
|
|
2423
2436
|
if (!_)
|
|
@@ -2473,11 +2486,11 @@ function Ao() {
|
|
|
2473
2486
|
p.innerHTML = u.title, p.setAttribute("href", u.actionUrl.url), h.remove();
|
|
2474
2487
|
else
|
|
2475
2488
|
throw new Error(`renderMainMenu(): menuItem is missing an action: ${u.title}`);
|
|
2476
|
-
((m = u.actionUrl) != null && m.openInNewTab || (v = u.actionFunctionUrl) != null && v.openInNewTab) && (p.setAttribute("target", "_blank"), p.appendChild(T(
|
|
2489
|
+
((m = u.actionUrl) != null && m.openInNewTab || (v = u.actionFunctionUrl) != null && v.openInNewTab) && (p.setAttribute("target", "_blank"), p.appendChild(T(Qt)));
|
|
2477
2490
|
});
|
|
2478
2491
|
let c = null;
|
|
2479
2492
|
if (t.utahId) {
|
|
2480
|
-
const { button: u, menu: d } =
|
|
2493
|
+
const { button: u, menu: d } = mo();
|
|
2481
2494
|
c = d;
|
|
2482
2495
|
const _ = e.querySelector(f(s.MOBILE__UTAH_ID));
|
|
2483
2496
|
if (!_)
|
|
@@ -2488,14 +2501,14 @@ function Ao() {
|
|
|
2488
2501
|
if (!a || !(a instanceof HTMLElement))
|
|
2489
2502
|
throw new Error("renderMainMenu: searchIcon not found");
|
|
2490
2503
|
if (t.onSearch) {
|
|
2491
|
-
if (
|
|
2504
|
+
if (Jt(a, "Search"), a.onclick)
|
|
2492
2505
|
throw new Error("searchIcon already has onclick");
|
|
2493
|
-
a.onclick = () =>
|
|
2506
|
+
a.onclick = () => Po();
|
|
2494
2507
|
} else
|
|
2495
2508
|
(l = a.parentElement) == null || l.insertBefore(T('<div class="main-menu__search-placeholder">'), a), a.remove();
|
|
2496
2509
|
return { mainMenuWrapper: e, utahIdPopup: c };
|
|
2497
2510
|
}
|
|
2498
|
-
const
|
|
2511
|
+
const Lo = `<div class="utds-header-mobile-menu__content-item" role="tabpanel">
|
|
2499
2512
|
</div>
|
|
2500
2513
|
`;
|
|
2501
2514
|
function ct(t) {
|
|
@@ -2505,7 +2518,7 @@ function ct(t) {
|
|
|
2505
2518
|
const n = e.querySelector(f(s.MOBILE_MENU__CONTENT));
|
|
2506
2519
|
if (!n)
|
|
2507
2520
|
throw new Error("addMobileMenuContentItem: mobileContentWrapper not found");
|
|
2508
|
-
const r = T(
|
|
2521
|
+
const r = T(Lo);
|
|
2509
2522
|
return r.appendChild(t), n.appendChild(r), r.setAttribute("id", H()), r;
|
|
2510
2523
|
}
|
|
2511
2524
|
function Xe(t, e) {
|
|
@@ -2521,7 +2534,7 @@ function Xe(t, e) {
|
|
|
2521
2534
|
throw new Error("showActionItem: actionWrapper does not have actionItem");
|
|
2522
2535
|
n.setAttribute("aria-selected", "true"), n.removeAttribute("tabIndex"), n.focus();
|
|
2523
2536
|
}
|
|
2524
|
-
function
|
|
2537
|
+
function xt(t, e) {
|
|
2525
2538
|
t.querySelectorAll(f(s.MOBILE_MENU__CONTENT_ITEM)).forEach((n) => n.classList.remove(s.IS_OPEN)), e.classList.add(s.IS_OPEN);
|
|
2526
2539
|
}
|
|
2527
2540
|
function ut(t, e, n, {
|
|
@@ -2562,12 +2575,12 @@ function ut(t, e, n, {
|
|
|
2562
2575
|
if (t.onclick)
|
|
2563
2576
|
throw new Error("mobileMenuInteractionHandler: interactiveElement already has onclick");
|
|
2564
2577
|
if (t.onclick = (h) => {
|
|
2565
|
-
o && o(h) || (c.classList.contains(s.IS_OPEN) ? i &&
|
|
2578
|
+
o && o(h) || (c.classList.contains(s.IS_OPEN) ? i && pt() : (Uo(), e && xt(l, e), Xe(a, n)));
|
|
2566
2579
|
}, e) {
|
|
2567
2580
|
if (n !== t && n.onclick)
|
|
2568
2581
|
throw new Error("mobileMenuInteractionHandler: actionItemWrapper already has onclick");
|
|
2569
2582
|
n.onclick = (h) => {
|
|
2570
|
-
o && o(h) || (
|
|
2583
|
+
o && o(h) || (xt(l, e), Xe(a, n));
|
|
2571
2584
|
};
|
|
2572
2585
|
}
|
|
2573
2586
|
}
|
|
@@ -2593,22 +2606,22 @@ function dt(t) {
|
|
|
2593
2606
|
mobileMenu: e
|
|
2594
2607
|
};
|
|
2595
2608
|
}
|
|
2596
|
-
function
|
|
2609
|
+
function pt() {
|
|
2597
2610
|
const { hamburger: t, hamburgerIcon: e, mobileMenu: n } = dt("hideMobileMenu");
|
|
2598
2611
|
t.setAttribute("aria-expanded", "false"), n.classList.remove(s.IS_OPEN), e.classList.add("utds-icon-before-hamburger"), e.classList.remove("utds-icon-before-x-icon");
|
|
2599
2612
|
}
|
|
2600
|
-
function
|
|
2613
|
+
function Uo() {
|
|
2601
2614
|
const { hamburger: t, hamburgerIcon: e, mobileMenu: n } = dt("showMobileMenu");
|
|
2602
2615
|
t.setAttribute("aria-expanded", "true"), n.classList.add(s.IS_OPEN), e.classList.remove("utds-icon-before-hamburger"), e.classList.add("utds-icon-before-x-icon");
|
|
2603
2616
|
}
|
|
2604
|
-
function
|
|
2617
|
+
function So(t) {
|
|
2605
2618
|
var c;
|
|
2606
2619
|
const { hamburger: e } = dt("hookupHamburger");
|
|
2607
2620
|
if ((c = N().actionItems) == null ? void 0 : c.some((a) => !!a.badge)) {
|
|
2608
2621
|
const a = st({ label: "Home Badge" });
|
|
2609
2622
|
a && e.appendChild(a);
|
|
2610
2623
|
}
|
|
2611
|
-
|
|
2624
|
+
pt();
|
|
2612
2625
|
const o = document.getElementById(s.MOBILE_MENU_ACTON_BAR__HOME_ID);
|
|
2613
2626
|
if (!o)
|
|
2614
2627
|
throw new Error("hookupHamburger: homeActionItem not found");
|
|
@@ -2625,7 +2638,7 @@ function yo(t) {
|
|
|
2625
2638
|
{ ariaHasPopupType: "menu", shouldOnClickCloseMenu: !0 }
|
|
2626
2639
|
);
|
|
2627
2640
|
}
|
|
2628
|
-
function
|
|
2641
|
+
function Co(t) {
|
|
2629
2642
|
let e = NaN, n = null, r = null;
|
|
2630
2643
|
return {
|
|
2631
2644
|
promise: new Promise((i, c) => {
|
|
@@ -2647,20 +2660,20 @@ const z = {
|
|
|
2647
2660
|
lastError: null,
|
|
2648
2661
|
userInfo: null
|
|
2649
2662
|
};
|
|
2650
|
-
function
|
|
2663
|
+
function Ht(t) {
|
|
2651
2664
|
var e, n, r;
|
|
2652
|
-
t.isDefinitive && (
|
|
2665
|
+
t.isDefinitive && (nn(t), (r = (n = (e = N()) == null ? void 0 : e.utahId) == null ? void 0 : n.onAuthChanged) == null || r.call(n, t));
|
|
2653
2666
|
}
|
|
2654
|
-
let
|
|
2655
|
-
const
|
|
2656
|
-
async function
|
|
2667
|
+
let Bt = !0;
|
|
2668
|
+
const Do = 500;
|
|
2669
|
+
async function an() {
|
|
2657
2670
|
var e, n;
|
|
2658
2671
|
let t = null;
|
|
2659
2672
|
if (z.isDefinitive === !1)
|
|
2660
2673
|
t = Promise.resolve(z);
|
|
2661
|
-
else if (
|
|
2662
|
-
t =
|
|
2663
|
-
|
|
2674
|
+
else if (Bt)
|
|
2675
|
+
t = Co(Do).promise.then(() => {
|
|
2676
|
+
Bt = !1, an();
|
|
2664
2677
|
});
|
|
2665
2678
|
else {
|
|
2666
2679
|
const r = N();
|
|
@@ -2680,7 +2693,7 @@ async function nn() {
|
|
|
2680
2693
|
}).catch((o) => {
|
|
2681
2694
|
z.lastError = o, z.userInfo = null;
|
|
2682
2695
|
}).finally(() => {
|
|
2683
|
-
z.isDefinitive = !0,
|
|
2696
|
+
z.isDefinitive = !0, Ht(z);
|
|
2684
2697
|
});
|
|
2685
2698
|
else {
|
|
2686
2699
|
const o = {
|
|
@@ -2688,15 +2701,15 @@ async function nn() {
|
|
|
2688
2701
|
lastError: null,
|
|
2689
2702
|
userInfo: (n = r.utahId) == null ? void 0 : n.currentUser
|
|
2690
2703
|
};
|
|
2691
|
-
t = Promise.resolve(o),
|
|
2704
|
+
t = Promise.resolve(o), Ht(o);
|
|
2692
2705
|
}
|
|
2693
2706
|
}
|
|
2694
2707
|
return t;
|
|
2695
2708
|
}
|
|
2696
|
-
function
|
|
2709
|
+
function Ro() {
|
|
2697
2710
|
return z;
|
|
2698
2711
|
}
|
|
2699
|
-
function
|
|
2712
|
+
function xo() {
|
|
2700
2713
|
const t = document.getElementById(s.MOBILE_MENU_ACTON_BAR__PROFILE_ID);
|
|
2701
2714
|
if (!t)
|
|
2702
2715
|
throw new Error("removeUtahIdInMobileMenu: profileActionItem not found");
|
|
@@ -2708,7 +2721,7 @@ function Uo() {
|
|
|
2708
2721
|
throw new Error("removeUtahIdInMobileMenu: profileActionItemWrapper not found");
|
|
2709
2722
|
e.remove();
|
|
2710
2723
|
}
|
|
2711
|
-
function
|
|
2724
|
+
function Ho(t, e) {
|
|
2712
2725
|
const n = document.querySelector(f(s.MOBILE__UTAH_ID));
|
|
2713
2726
|
if (!n)
|
|
2714
2727
|
throw new Error("hookupUtahIdInMobileMenu: utahIdWrapper not found");
|
|
@@ -2738,7 +2751,7 @@ function So(t, e) {
|
|
|
2738
2751
|
ariaHasPopupType: "menu",
|
|
2739
2752
|
onClickHandler: (l) => {
|
|
2740
2753
|
var h;
|
|
2741
|
-
const u =
|
|
2754
|
+
const u = Ro(), d = N();
|
|
2742
2755
|
let _ = !1;
|
|
2743
2756
|
if (!(u != null && u.isDefinitive) || !((h = u == null ? void 0 : u.userInfo) != null && h.authenticated)) {
|
|
2744
2757
|
_ = !0;
|
|
@@ -2751,7 +2764,7 @@ function So(t, e) {
|
|
|
2751
2764
|
}
|
|
2752
2765
|
);
|
|
2753
2766
|
}
|
|
2754
|
-
function
|
|
2767
|
+
function Bo() {
|
|
2755
2768
|
return he(
|
|
2756
2769
|
N().mainMenu.menuItems,
|
|
2757
2770
|
{
|
|
@@ -2760,19 +2773,19 @@ function Co() {
|
|
|
2760
2773
|
}
|
|
2761
2774
|
);
|
|
2762
2775
|
}
|
|
2763
|
-
const
|
|
2776
|
+
const ko = `<div class="utds-header-mobile-menu__action-item" role="tab">
|
|
2764
2777
|
<button type="button" class="icon-button icon-button--borderless utds-header-action-item__icon-button">
|
|
2765
2778
|
<div class="utds-header-action-item__title visually-hidden"></div>
|
|
2766
2779
|
<span aria-hidden="true" role="presentation">
|
|
2767
2780
|
</button>
|
|
2768
2781
|
<span class="menu-chiclet"></span>
|
|
2769
2782
|
</div>
|
|
2770
|
-
`,
|
|
2783
|
+
`, Wo = `<div class="utds-header-action-item-menu">
|
|
2771
2784
|
<div class="vertical-menu__wrapper-title"></div>
|
|
2772
2785
|
</div>
|
|
2773
2786
|
`;
|
|
2774
|
-
function
|
|
2775
|
-
const e = T(
|
|
2787
|
+
function qo(t) {
|
|
2788
|
+
const e = T(ko);
|
|
2776
2789
|
e.getAttribute("id") || e.setAttribute("id", H());
|
|
2777
2790
|
const n = document.createTextNode(t.title), r = (
|
|
2778
2791
|
/** @type {HTMLElement} */
|
|
@@ -2802,7 +2815,7 @@ function xo(t) {
|
|
|
2802
2815
|
i.setAttribute("id", u), l = T(typeof t.actionDom == "function" ? t.actionDom() : t.actionDom);
|
|
2803
2816
|
} else if (t.actionPopupMenu) {
|
|
2804
2817
|
const u = H();
|
|
2805
|
-
i.setAttribute("id", u), l = T(
|
|
2818
|
+
i.setAttribute("id", u), l = T(Wo);
|
|
2806
2819
|
const d = l.querySelector(f(s.POPUP_MENU_WRAPPER__WRAPPER_TITLE));
|
|
2807
2820
|
if (!d)
|
|
2808
2821
|
throw new Error("renderMobileActionItem: actionItemContentTitle not found");
|
|
@@ -2813,7 +2826,7 @@ function xo(t) {
|
|
|
2813
2826
|
throw console.error(t), new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");
|
|
2814
2827
|
return { actionItemElement: e, actionItemContent: l };
|
|
2815
2828
|
}
|
|
2816
|
-
function
|
|
2829
|
+
function Vo() {
|
|
2817
2830
|
var i, c, a;
|
|
2818
2831
|
const t = document.getElementById(s.MOBILE_MENU_ACTON_BAR__HOME_ID);
|
|
2819
2832
|
if (!t)
|
|
@@ -2828,7 +2841,7 @@ function Ho() {
|
|
|
2828
2841
|
/** @type {HTMLElement} */
|
|
2829
2842
|
(i = r == null ? void 0 : r.closest) == null ? void 0 : i.call(r, f(s.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER))
|
|
2830
2843
|
);
|
|
2831
|
-
(a = (c = [...N().actionItems || []].reverse()) == null ? void 0 : c.map((l) => ({ actionItem: l, ...
|
|
2844
|
+
(a = (c = [...N().actionItems || []].reverse()) == null ? void 0 : c.map((l) => ({ actionItem: l, ...qo(l) }))) == null || a.forEach(({ actionItem: l, actionItemContent: u, actionItemElement: d }) => {
|
|
2832
2845
|
let _;
|
|
2833
2846
|
switch (l.mobileMenuLocation) {
|
|
2834
2847
|
case "left":
|
|
@@ -2854,7 +2867,7 @@ function Ho() {
|
|
|
2854
2867
|
}
|
|
2855
2868
|
});
|
|
2856
2869
|
}
|
|
2857
|
-
function
|
|
2870
|
+
function Fo() {
|
|
2858
2871
|
const e = [...document.querySelectorAll(`
|
|
2859
2872
|
${f(s.MOBILE_MENU__ACTION_BAR)}
|
|
2860
2873
|
${f(s.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)}
|
|
@@ -2907,41 +2920,50 @@ function Bo() {
|
|
|
2907
2920
|
}
|
|
2908
2921
|
);
|
|
2909
2922
|
}
|
|
2910
|
-
function
|
|
2911
|
-
const t =
|
|
2923
|
+
function Go() {
|
|
2924
|
+
const t = yn.replace(s.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER, `${N().mediaSizes.tabletPortrait}px`).replace(s.MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER, `${N().mediaSizes.tabletLandscape}px`).replace(s.MEDIA_SIZE__MOBILE__PLACEHOLDER, `${N().mediaSizes.mobile}px`);
|
|
2912
2925
|
let e = document.getElementById(s.CSS_HEADER_MEDIA_TAG_ID);
|
|
2913
2926
|
e || (e = document.createElement("style"), e.id = s.CSS_HEADER_MEDIA_TAG_ID), e.innerHTML = t, document.body.appendChild(e);
|
|
2914
2927
|
}
|
|
2915
|
-
function
|
|
2928
|
+
function $o() {
|
|
2916
2929
|
var e;
|
|
2917
2930
|
if (!document.querySelector(f([s.UTAH_DESIGN_SYSTEM, s.HEADER]))) {
|
|
2918
|
-
const n =
|
|
2931
|
+
const n = Ao();
|
|
2919
2932
|
document.body.insertBefore(n, document.body.firstChild);
|
|
2920
|
-
const { mainMenuWrapper: r, utahIdPopup: o } =
|
|
2933
|
+
const { mainMenuWrapper: r, utahIdPopup: o } = No();
|
|
2921
2934
|
r && n.after(r);
|
|
2922
|
-
const i = T(
|
|
2935
|
+
const i = T(Pn);
|
|
2923
2936
|
n.after(i);
|
|
2924
|
-
const c =
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2937
|
+
const c = (
|
|
2938
|
+
/** @type {HTMLElement} */
|
|
2939
|
+
document.querySelector(f(s.MOBILE_MENU__BACKDROP))
|
|
2940
|
+
);
|
|
2941
|
+
if (!c)
|
|
2942
|
+
throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");
|
|
2943
|
+
if (c.onclick)
|
|
2944
|
+
throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");
|
|
2945
|
+
c.onclick = () => pt();
|
|
2946
|
+
const a = Bo(), l = tn(a, "Main Menu");
|
|
2947
|
+
l.appendChild(a);
|
|
2948
|
+
const u = ct(l);
|
|
2949
|
+
So(u), o ? ((e = o.closest("div")) == null || e.removeAttribute("aria-labelledby"), Ho(i, o)) : xo(), Vo(), Fo(), Jr(), Go(), an();
|
|
2928
2950
|
}
|
|
2929
2951
|
}
|
|
2930
|
-
function
|
|
2952
|
+
function jo(t) {
|
|
2931
2953
|
var e, n, r;
|
|
2932
|
-
(e = document.querySelector(f([s.UTAH_DESIGN_SYSTEM, s.HEADER]))) == null || e.remove(), (n = document.querySelector(f([s.UTAH_DESIGN_SYSTEM, s.MAIN_MENU__OUTER]))) == null || n.remove(), (r = document.querySelector(f([s.UTAH_DESIGN_SYSTEM, s.MOBILE_MENU]))) == null || r.remove(),
|
|
2954
|
+
(e = document.querySelector(f([s.UTAH_DESIGN_SYSTEM, s.HEADER]))) == null || e.remove(), (n = document.querySelector(f([s.UTAH_DESIGN_SYSTEM, s.MAIN_MENU__OUTER]))) == null || n.remove(), (r = document.querySelector(f([s.UTAH_DESIGN_SYSTEM, s.MOBILE_MENU]))) == null || r.remove(), Xt(), t && setTimeout(() => document.dispatchEvent(new Event(kt.HEADER_UNLOADED)), 0);
|
|
2933
2955
|
}
|
|
2934
|
-
const
|
|
2935
|
-
console.log(`Utah Header v${
|
|
2956
|
+
const Yo = On.version.replace(/\./g, "");
|
|
2957
|
+
console.log(`Utah Header v${Yo}`);
|
|
2936
2958
|
export {
|
|
2937
|
-
|
|
2959
|
+
Cn as baseSettings,
|
|
2938
2960
|
W as childrenMenuTypes,
|
|
2939
|
-
|
|
2961
|
+
kt as events,
|
|
2940
2962
|
N as getUtahHeaderSettings,
|
|
2941
|
-
|
|
2963
|
+
$o as loadHeader,
|
|
2942
2964
|
Qe as popupPlacement,
|
|
2943
|
-
|
|
2965
|
+
jo as removeHeader,
|
|
2944
2966
|
T as renderDOMSingle,
|
|
2945
|
-
|
|
2967
|
+
zo as setUtahHeaderSettings,
|
|
2946
2968
|
ce as sizes
|
|
2947
2969
|
};
|