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