@phila/phila-ui-app-header 1.0.0-beta.14 → 1.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AlertBanner.vue.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher.vue.d.ts.map +1 -1
- package/dist/components/NavBar/NavbarBurger.vue.d.ts.map +1 -1
- package/dist/components/NavBar/NavbarInfo.vue.d.ts.map +1 -1
- package/dist/components/NavBar/NavbarLinks.vue.d.ts.map +1 -1
- package/dist/components/NavBar/NavbarSearch.vue.d.ts.map +1 -1
- package/dist/components/TrustedSite.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +404 -438
- package/package.json +6 -7
package/dist/index.mjs
CHANGED
|
@@ -1,173 +1,140 @@
|
|
|
1
|
-
import { defineComponent as w, useSlots as
|
|
2
|
-
import {
|
|
3
|
-
import { useVisibility as
|
|
4
|
-
import { Logo as
|
|
5
|
-
import './index.css';
|
|
6
|
-
prefix: "fas",
|
|
7
|
-
iconName: "magnifying-glass",
|
|
8
|
-
icon: [512, 512, [128269, "search"], "f002", "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]
|
|
9
|
-
}, Be = we, Me = {
|
|
10
|
-
prefix: "fas",
|
|
11
|
-
iconName: "circle-exclamation",
|
|
12
|
-
icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]
|
|
13
|
-
}, fe = {
|
|
14
|
-
prefix: "fas",
|
|
15
|
-
iconName: "xmark",
|
|
16
|
-
icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]
|
|
17
|
-
}, Ce = fe, ve = fe, Le = {
|
|
18
|
-
prefix: "fas",
|
|
19
|
-
iconName: "lock",
|
|
20
|
-
icon: [384, 512, [128274], "f023", "M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]
|
|
21
|
-
}, Z = {
|
|
22
|
-
prefix: "fas",
|
|
23
|
-
iconName: "caret-up",
|
|
24
|
-
icon: [320, 512, [], "f0d8", "M140.3 135.2c12.6-10.3 31.1-9.5 42.8 2.2l128 128c9.2 9.2 11.9 22.9 6.9 34.9S301.4 320 288.5 320l-256 0c-12.9 0-24.6-7.8-29.6-19.8S.7 274.5 9.9 265.4l128-128 2.4-2.2z"]
|
|
25
|
-
}, ze = {
|
|
26
|
-
prefix: "fas",
|
|
27
|
-
iconName: "globe",
|
|
28
|
-
icon: [512, 512, [127760], "f0ac", "M351.9 280l-190.9 0c2.9 64.5 17.2 123.9 37.5 167.4 11.4 24.5 23.7 41.8 35.1 52.4 11.2 10.5 18.9 12.2 22.9 12.2s11.7-1.7 22.9-12.2c11.4-10.6 23.7-28 35.1-52.4 20.3-43.5 34.6-102.9 37.5-167.4zM160.9 232l190.9 0C349 167.5 334.7 108.1 314.4 64.6 303 40.2 290.7 22.8 279.3 12.2 268.1 1.7 260.4 0 256.4 0s-11.7 1.7-22.9 12.2c-11.4 10.6-23.7 28-35.1 52.4-20.3 43.5-34.6 102.9-37.5 167.4zm-48 0C116.4 146.4 138.5 66.9 170.8 14.7 78.7 47.3 10.9 131.2 1.5 232l111.4 0zM1.5 280c9.4 100.8 77.2 184.7 169.3 217.3-32.3-52.2-54.4-131.7-57.9-217.3L1.5 280zm398.4 0c-3.5 85.6-25.6 165.1-57.9 217.3 92.1-32.7 159.9-116.5 169.3-217.3l-111.4 0zm111.4-48C501.9 131.2 434.1 47.3 342 14.7 374.3 66.9 396.4 146.4 399.9 232l111.4 0z"]
|
|
29
|
-
}, J = {
|
|
30
|
-
prefix: "fas",
|
|
31
|
-
iconName: "caret-down",
|
|
32
|
-
icon: [320, 512, [], "f0d7", "M140.3 376.8c12.6 10.2 31.1 9.5 42.8-2.2l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301.4 192 288.5 192l-256 0c-12.9 0-24.6 7.8-29.6 19.8S.7 237.5 9.9 246.6l128 128 2.4 2.2z"]
|
|
33
|
-
}, Ne = {
|
|
34
|
-
prefix: "fas",
|
|
35
|
-
iconName: "building-columns",
|
|
36
|
-
icon: [512, 512, ["bank", "institution", "museum", "university"], "f19c", "M271.9 20.2c-9.8-5.6-21.9-5.6-31.8 0l-224 128c-12.6 7.2-18.8 22-15.1 36S17.5 208 32 208l32 0 0 208 0 0-51.2 38.4C4.7 460.4 0 469.9 0 480 0 497.7 14.3 512 32 512l448 0c17.7 0 32-14.3 32-32 0-10.1-4.7-19.6-12.8-25.6l-51.2-38.4 0-208 32 0c14.5 0 27.2-9.8 30.9-23.8s-2.5-28.8-15.1-36l-224-128zM400 208l0 208-64 0 0-208 64 0zm-112 0l0 208-64 0 0-208 64 0zm-112 0l0 208-64 0 0-208 64 0zM256 96a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]
|
|
37
|
-
}, Ae = {
|
|
38
|
-
prefix: "fas",
|
|
39
|
-
iconName: "bars",
|
|
40
|
-
icon: [448, 512, ["navicon"], "f0c9", "M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]
|
|
41
|
-
}, Te = {
|
|
42
|
-
prefix: "fas",
|
|
43
|
-
iconName: "circle-info",
|
|
44
|
-
icon: [512, 512, ["info-circle"], "f05a", "M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]
|
|
45
|
-
}, pe = Te;
|
|
46
|
-
const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%200%2016%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='16'%20height='11'%20fill='url(%23pattern0_61022_1867)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_61022_1867'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_61022_1867'%20transform='scale(0.0625%200.0909091)'/%3e%3c/pattern%3e%3cimage%20id='image0_61022_1867'%20width='16'%20height='11'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAMAAABBPP0LAAAAG1BMVEUdM7EeNLIeM7HgQCDaPh/bPh/bPx/////bPyBEby41AAAAUElEQVQI123MNw4CABDEwD3jC/9/MQ1BQrgeOSkIqYe2o2FZtthXgQLgbHVMZdlsfUQFQnHtjP1+8BUhBDKOqtmfot6ojqPzR7TjdU+f6vkED+IDPhTBcMAAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e", Ee = { class: "trusted-wrap" }, Ie = { class: "hidden-tablet trusted-toggle is-flex is-align-center" }, De = ["src"], He = ["aria-label", "aria-expanded"], Oe = {
|
|
47
|
-
class: "icon",
|
|
48
|
-
"aria-hidden": "true"
|
|
49
|
-
}, Re = { class: "hidden-desktop trusted-toggle is-flex is-align-center" }, Ge = ["aria-label", "aria-expanded"], Pe = {
|
|
50
|
-
class: "icon",
|
|
51
|
-
"aria-hidden": "true"
|
|
52
|
-
}, Ue = {
|
|
1
|
+
import { defineComponent as w, useSlots as pe, useTemplateRef as G, computed as A, watch as se, nextTick as Z, createElementBlock as d, openBlock as o, Fragment as z, createElementVNode as c, normalizeClass as O, createCommentVNode as $, unref as a, mergeProps as I, createTextVNode as H, createVNode as g, renderSlot as v, ref as M, onMounted as oe, onUnmounted as le, normalizeStyle as re, toDisplayString as x, onBeforeMount as ge, renderList as K, createBlock as B, withModifiers as F, withCtx as _, resolveDynamicComponent as ce, onBeforeUnmount as he, createSlots as ae, normalizeProps as P, useId as me, guardReactiveProps as Q } from "vue";
|
|
2
|
+
import { IconCaretUp as J, IconCaretDown as ee, IconCircleInfo as de, IconBuildingColumns as ye, IconLock as _e, IconClose as U, IconCircleExclamation as $e, IconMagnifyingGlass as ke, IconBars as xe, IconGlobe as we } from "@phila/phila-ui-core/icons";
|
|
3
|
+
import { useVisibility as V, Icon as N, debounce as Be, FocusTrap as ue, cn as q, BaseLink as ve, ActionContent as W } from "@phila/phila-ui-core";
|
|
4
|
+
import { Logo as Ce } from "@phila/phila-ui-logo";
|
|
5
|
+
import './index.css';const Ae = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%200%2016%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='16'%20height='11'%20fill='url(%23pattern0_61022_1867)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_61022_1867'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_61022_1867'%20transform='scale(0.0625%200.0909091)'/%3e%3c/pattern%3e%3cimage%20id='image0_61022_1867'%20width='16'%20height='11'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAMAAABBPP0LAAAAG1BMVEUdM7EeNLIeM7HgQCDaPh/bPh/bPx/////bPyBEby41AAAAUElEQVQI123MNw4CABDEwD3jC/9/MQ1BQrgeOSkIqYe2o2FZtthXgQLgbHVMZdlsfUQFQnHtjP1+8BUhBDKOqtmfot6ojqPzR7TjdU+f6vkED+IDPhTBcMAAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e", Me = { class: "trusted-wrap" }, Ie = { class: "hidden-tablet trusted-toggle is-flex is-align-center" }, Te = ["src"], Ne = ["aria-label", "aria-expanded"], Le = { class: "hidden-desktop trusted-toggle is-flex is-align-center" }, Ee = ["aria-label", "aria-expanded"], ze = {
|
|
53
6
|
key: 0,
|
|
54
7
|
class: "trusted-translation is-flex is-align-center"
|
|
55
|
-
},
|
|
8
|
+
}, Se = ["hidden"], He = { class: "trusted-site-info-content content has-text-body-small is-flex is-justify-space-between" }, Oe = { class: "info-item-wrap is-flex" }, De = { class: "info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4" }, Re = { class: "trusted-icon is-flex is-flex-column has-text-center" }, Ge = { class: "circle-icon p-3 mb-2" }, Pe = { class: "info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4" }, Ue = { class: "trusted-icon is-flex is-flex-column has-text-center" }, Ve = { class: "circle-icon p-3 mb-2" }, je = { class: "info-content-close mt-4" }, Ke = /* @__PURE__ */ w({
|
|
56
9
|
__name: "TrustedSite",
|
|
57
10
|
props: {
|
|
58
11
|
compactMobile: { type: Boolean }
|
|
59
12
|
},
|
|
60
13
|
setup(t) {
|
|
61
|
-
const e =
|
|
14
|
+
const e = pe(), { isVisible: i, setVisibility: n, toggleProps: s } = V({
|
|
62
15
|
id: "trusted-site-info",
|
|
63
16
|
escapeKeyHide: !0
|
|
64
|
-
}),
|
|
17
|
+
}), l = G("infoToggle"), r = G("closeInfoToggle"), k = G("infoToggleMobile"), b = A(() => i());
|
|
65
18
|
return se(
|
|
66
|
-
() =>
|
|
67
|
-
(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}) : (
|
|
19
|
+
() => b.value,
|
|
20
|
+
(m) => {
|
|
21
|
+
m ? Z(() => {
|
|
22
|
+
r.value?.focus();
|
|
23
|
+
}) : (l.value?.focus(), k.value?.focus());
|
|
71
24
|
}
|
|
72
|
-
), (
|
|
73
|
-
|
|
25
|
+
), (m, p) => (o(), d(z, null, [
|
|
26
|
+
c("div", {
|
|
74
27
|
id: "trusted-site",
|
|
75
|
-
class:
|
|
28
|
+
class: O(["is-flex is-justify-space-between", { "is-compact-mobile": t.compactMobile }])
|
|
76
29
|
}, [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
src: a(
|
|
30
|
+
c("div", Me, [
|
|
31
|
+
c("div", Ie, [
|
|
32
|
+
c("img", {
|
|
33
|
+
src: a(Ae),
|
|
81
34
|
alt: "",
|
|
82
35
|
class: "icon"
|
|
83
|
-
}, null, 8,
|
|
84
|
-
|
|
85
|
-
|
|
36
|
+
}, null, 8, Te),
|
|
37
|
+
p[2] || (p[2] = c("div", { class: "content mx-2" }, "An official website of the City of Philadelphia government", -1)),
|
|
38
|
+
c("button", I({
|
|
86
39
|
ref_key: "infoToggle",
|
|
87
|
-
ref:
|
|
40
|
+
ref: l,
|
|
88
41
|
class: "phila-button is-extra-small",
|
|
89
|
-
"aria-label": `${
|
|
42
|
+
"aria-label": `${b.value ? "Close" : "Open"} Trusted Site information panel`,
|
|
90
43
|
"aria-controls": "trusted-site-info",
|
|
91
|
-
"aria-expanded":
|
|
44
|
+
"aria-expanded": b.value
|
|
92
45
|
}, a(s)), [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
])
|
|
99
|
-
], 16,
|
|
46
|
+
p[1] || (p[1] = H(" Here's how you know ", -1)),
|
|
47
|
+
g(a(N), {
|
|
48
|
+
icon: b.value ? a(J) : a(ee),
|
|
49
|
+
inline: !0,
|
|
50
|
+
decorative: !0
|
|
51
|
+
}, null, 8, ["icon"])
|
|
52
|
+
], 16, Ne)
|
|
100
53
|
]),
|
|
101
|
-
|
|
102
|
-
|
|
54
|
+
c("div", Le, [
|
|
55
|
+
c("button", I({
|
|
103
56
|
ref_key: "infoToggleMobile",
|
|
104
57
|
ref: k,
|
|
105
58
|
class: "phila-button is-extra-small",
|
|
106
|
-
"aria-label": `${
|
|
59
|
+
"aria-label": `${b.value ? "Close" : "Open"} Trusted Site information panel`,
|
|
107
60
|
"aria-controls": "trusted-site-info",
|
|
108
|
-
"aria-expanded":
|
|
61
|
+
"aria-expanded": b.value
|
|
109
62
|
}, a(s)), [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
63
|
+
p[3] || (p[3] = H(" An official website ", -1)),
|
|
64
|
+
g(a(N), {
|
|
65
|
+
icon: a(de),
|
|
66
|
+
size: "extra-small",
|
|
67
|
+
decorative: !0
|
|
68
|
+
}, null, 8, ["icon"])
|
|
69
|
+
], 16, Ee)
|
|
115
70
|
])
|
|
116
71
|
]),
|
|
117
|
-
a(e).translation ? (
|
|
118
|
-
|
|
72
|
+
a(e).translation ? (o(), d("div", ze, [
|
|
73
|
+
v(m.$slots, "translation", {}, void 0, !0)
|
|
119
74
|
])) : $("", !0)
|
|
120
75
|
], 2),
|
|
121
|
-
|
|
76
|
+
c("div", {
|
|
122
77
|
id: "trusted-site-info",
|
|
123
78
|
class: "px-6",
|
|
124
|
-
hidden: !
|
|
79
|
+
hidden: !b.value
|
|
125
80
|
}, [
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
g(a(
|
|
81
|
+
c("div", He, [
|
|
82
|
+
c("div", Oe, [
|
|
83
|
+
c("div", De, [
|
|
84
|
+
c("div", Re, [
|
|
85
|
+
c("span", Ge, [
|
|
86
|
+
g(a(N), {
|
|
87
|
+
icon: a(ye),
|
|
88
|
+
inline: !0,
|
|
89
|
+
decorative: !0
|
|
90
|
+
}, null, 8, ["icon"])
|
|
132
91
|
]),
|
|
133
|
-
|
|
92
|
+
p[4] || (p[4] = c("span", { class: "has-text-bold" }, ".gov", -1))
|
|
134
93
|
]),
|
|
135
|
-
|
|
94
|
+
p[5] || (p[5] = c("div", { class: "trusted-text m-4" }, "Only government entities in the U.S. can end in .gov", -1))
|
|
136
95
|
]),
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
g(a(
|
|
96
|
+
c("div", Pe, [
|
|
97
|
+
c("div", Ue, [
|
|
98
|
+
c("div", Ve, [
|
|
99
|
+
g(a(N), {
|
|
100
|
+
icon: a(_e),
|
|
101
|
+
inline: !0,
|
|
102
|
+
decorative: !0
|
|
103
|
+
}, null, 8, ["icon"])
|
|
141
104
|
]),
|
|
142
|
-
|
|
105
|
+
p[6] || (p[6] = c("span", { class: "has-text-bold" }, "https://", -1))
|
|
143
106
|
]),
|
|
144
|
-
|
|
107
|
+
p[7] || (p[7] = c("div", { class: "trusted-text m-4" }, " The https:// in the address bar means your information is encrypted and can not be accessed by anyone else ", -1))
|
|
145
108
|
])
|
|
146
109
|
]),
|
|
147
|
-
|
|
148
|
-
|
|
110
|
+
c("div", je, [
|
|
111
|
+
c("button", {
|
|
149
112
|
ref_key: "closeInfoToggle",
|
|
150
|
-
ref:
|
|
113
|
+
ref: r,
|
|
151
114
|
class: "phila-button phila-button--primary icon-button is-extra-small",
|
|
152
115
|
"aria-label": "Close Trusted Site information panel",
|
|
153
|
-
onClick:
|
|
116
|
+
onClick: p[0] || (p[0] = (u) => a(n)(!1))
|
|
154
117
|
}, [
|
|
155
|
-
g(a(
|
|
118
|
+
g(a(N), {
|
|
119
|
+
icon: a(U),
|
|
120
|
+
size: "extra-small",
|
|
121
|
+
decorative: !0
|
|
122
|
+
}, null, 8, ["icon"])
|
|
156
123
|
], 512)
|
|
157
124
|
])
|
|
158
125
|
])
|
|
159
|
-
], 8,
|
|
126
|
+
], 8, Se)
|
|
160
127
|
], 64));
|
|
161
128
|
}
|
|
162
|
-
}),
|
|
129
|
+
}), R = (t, e) => {
|
|
163
130
|
const i = t.__vccOpts || t;
|
|
164
131
|
for (const [n, s] of e)
|
|
165
132
|
i[n] = s;
|
|
166
133
|
return i;
|
|
167
|
-
},
|
|
134
|
+
}, Fe = /* @__PURE__ */ R(Ke, [["__scopeId", "data-v-dee4f05c"]]), Qe = {
|
|
168
135
|
key: 0,
|
|
169
136
|
class: "phila-navbar-end"
|
|
170
|
-
},
|
|
137
|
+
}, ie = "5rem", We = /* @__PURE__ */ w({
|
|
171
138
|
__name: "index",
|
|
172
139
|
props: {
|
|
173
140
|
id: {},
|
|
@@ -178,30 +145,30 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
178
145
|
links: { default: () => [{ text: "Home", href: "#" }] }
|
|
179
146
|
},
|
|
180
147
|
setup(t) {
|
|
181
|
-
const e = t, { visibilityState: i } =
|
|
182
|
-
const
|
|
183
|
-
s.value = !e.sticky ||
|
|
184
|
-
}, 100), k =
|
|
185
|
-
return se(() => k.value,
|
|
186
|
-
window.addEventListener("resize",
|
|
148
|
+
const e = t, { visibilityState: i } = V({ group: "app-header" }), n = G("navBarElement"), s = M(ie), l = M(0), r = Be(() => {
|
|
149
|
+
const b = (n.value?.offsetTop || 0) + (n.value?.offsetHeight || 0), m = typeof window < "u" ? window.innerWidth : 1024;
|
|
150
|
+
s.value = !e.sticky || m < 1024 ? b + "px" : ie, l.value = b;
|
|
151
|
+
}, 100), k = A(() => i.value?.appHeader);
|
|
152
|
+
return se(() => k.value, r, { deep: !0, immediate: !0 }), oe(() => {
|
|
153
|
+
window.addEventListener("resize", r);
|
|
187
154
|
}), le(() => {
|
|
188
|
-
window.removeEventListener("resize",
|
|
189
|
-
}), (
|
|
155
|
+
window.removeEventListener("resize", r);
|
|
156
|
+
}), (b, m) => (o(), d("nav", {
|
|
190
157
|
ref_key: "navBarElement",
|
|
191
158
|
ref: n,
|
|
192
|
-
class:
|
|
159
|
+
class: O(["phila-navbar has-links-on-primary", { "is-sticky-desktop": t.sticky, "is-compact-mobile": t.compactMobile }]),
|
|
193
160
|
"aria-label": "Main navigation",
|
|
194
|
-
style: re(`--nav-height:${s.value};--nav-bottom:${
|
|
161
|
+
style: re(`--nav-height:${s.value};--nav-bottom:${l.value}px`)
|
|
195
162
|
}, [
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
163
|
+
v(b.$slots, "navbar-toggle", {}, void 0, !0),
|
|
164
|
+
v(b.$slots, "navbar-left", {}, void 0, !0),
|
|
165
|
+
v(b.$slots, "navbar-right", {}, void 0, !0),
|
|
166
|
+
b.$slots["navbar-end"] ? (o(), d("div", Qe, [
|
|
167
|
+
v(b.$slots, "navbar-end", {}, void 0, !0)
|
|
201
168
|
])) : $("", !0)
|
|
202
169
|
], 6));
|
|
203
170
|
}
|
|
204
|
-
}),
|
|
171
|
+
}), qe = /* @__PURE__ */ R(We, [["__scopeId", "data-v-8a07f1df"]]), Xe = { class: "site-wide-alert content" }, Ye = { class: "alert-content" }, Ze = { class: "content-text" }, Je = { class: "title" }, et = { class: "body" }, tt = /* @__PURE__ */ w({
|
|
205
172
|
__name: "AlertBanner",
|
|
206
173
|
props: {
|
|
207
174
|
bannerTitle: {},
|
|
@@ -209,35 +176,35 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
209
176
|
},
|
|
210
177
|
setup(t) {
|
|
211
178
|
const e = t;
|
|
212
|
-
return (i, n) => (
|
|
213
|
-
|
|
214
|
-
g(a(
|
|
215
|
-
|
|
179
|
+
return (i, n) => (o(), d("div", Xe, [
|
|
180
|
+
c("div", Ye, [
|
|
181
|
+
g(a(N), {
|
|
182
|
+
icon: a($e),
|
|
216
183
|
size: "small",
|
|
217
184
|
decorative: !0
|
|
218
|
-
}, null, 8, ["icon
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
185
|
+
}, null, 8, ["icon"]),
|
|
186
|
+
c("div", Ze, [
|
|
187
|
+
c("h6", Je, x(e.bannerTitle), 1),
|
|
188
|
+
c("div", et, x(e.bannerMessage), 1)
|
|
222
189
|
])
|
|
223
190
|
])
|
|
224
191
|
]));
|
|
225
192
|
}
|
|
226
|
-
}),
|
|
193
|
+
}), at = /* @__PURE__ */ R(tt, [["__scopeId", "data-v-f391cc47"]]), it = { class: "phila-navbar-item phila-navbar-list is-flex is-align-center is-justify-space-between content has-text-label-default hidden-tablet" }, nt = ["href"], st = ["id", "onMouseenter", "onMouseleave"], ot = ["href", "aria-controls", "aria-expanded", "data-toggle", "onTouchend", "onClick"], lt = {
|
|
227
194
|
key: 0,
|
|
228
195
|
class: "content nav-flyout has-background-ghost-gray px-6 py-4",
|
|
229
196
|
tabindex: "-1"
|
|
230
|
-
},
|
|
197
|
+
}, rt = {
|
|
231
198
|
class: "is-flex is-flex-column is-flex-wrap-wrap",
|
|
232
199
|
style: { gap: "var(--spacing-4xl)" }
|
|
233
|
-
},
|
|
200
|
+
}, ct = ["href"], dt = /* @__PURE__ */ w({
|
|
234
201
|
__name: "NavbarLinks",
|
|
235
202
|
props: {
|
|
236
203
|
links: {},
|
|
237
204
|
visibilityGroup: {}
|
|
238
205
|
},
|
|
239
206
|
setup(t) {
|
|
240
|
-
const e = (
|
|
207
|
+
const e = (m) => !!(m.subLinks || m.subNav), i = (m) => `main-nav-${m.text.split(" ").join("-").toLowerCase().replace(/[^a-z0-9-]/g, "")}`, n = t, { setVisibility: s, create: l, isVisible: r, onMouseEnter: k, onMouseLeave: b } = V({
|
|
241
208
|
group: n.visibilityGroup,
|
|
242
209
|
outsideClickHide: !0,
|
|
243
210
|
escapeKeyHide: !0,
|
|
@@ -245,84 +212,86 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
245
212
|
blurHide: !0,
|
|
246
213
|
showSingle: !0
|
|
247
214
|
});
|
|
248
|
-
return
|
|
249
|
-
n.links?.forEach((
|
|
250
|
-
if (e(
|
|
251
|
-
const
|
|
252
|
-
|
|
215
|
+
return ge(() => {
|
|
216
|
+
n.links?.forEach((m) => {
|
|
217
|
+
if (e(m)) {
|
|
218
|
+
const p = i(m);
|
|
219
|
+
l(p);
|
|
253
220
|
}
|
|
254
221
|
});
|
|
255
|
-
}), (
|
|
256
|
-
(
|
|
257
|
-
e(u) ? (
|
|
222
|
+
}), (m, p) => (o(), d("div", it, [
|
|
223
|
+
(o(!0), d(z, null, K(t.links, (u, E) => (o(), d(z, null, [
|
|
224
|
+
e(u) ? (o(), d("div", {
|
|
258
225
|
id: `${n.visibilityGroup}-item-${i(u)}`,
|
|
259
|
-
key: `navbar-link-${
|
|
226
|
+
key: `navbar-link-${E}`,
|
|
260
227
|
class: "phila-navbar-link-list-item",
|
|
261
228
|
onMouseenter: (y) => a(k)(i(u)),
|
|
262
|
-
onMouseleave: (y) => a(
|
|
229
|
+
onMouseleave: (y) => a(b)(i(u))
|
|
263
230
|
}, [
|
|
264
|
-
|
|
231
|
+
c("a", {
|
|
265
232
|
href: u.href,
|
|
266
|
-
class:
|
|
233
|
+
class: O(["phila-navbar-link px-4", { "phila-navbar-item-flyout-active": a(r)(i(u)) }]),
|
|
267
234
|
"aria-controls": i(u),
|
|
268
|
-
"aria-expanded": a(
|
|
235
|
+
"aria-expanded": a(r)(i(u)),
|
|
269
236
|
"data-toggle": `visibility-${i(u)}`,
|
|
270
237
|
tabindex: "0",
|
|
271
|
-
onTouchend: (y) => a(s)(!a(
|
|
272
|
-
onClick:
|
|
238
|
+
onTouchend: (y) => a(s)(!a(r)(i(u)), i(u)),
|
|
239
|
+
onClick: F((y) => a(s)(!a(r)(i(u)), i(u)), ["prevent"])
|
|
273
240
|
}, [
|
|
274
|
-
|
|
275
|
-
g(a(
|
|
276
|
-
|
|
277
|
-
|
|
241
|
+
H(x(u.text) + " ", 1),
|
|
242
|
+
g(a(N), {
|
|
243
|
+
icon: a(r)(i(u)) ? a(J) : a(ee),
|
|
244
|
+
inline: !0,
|
|
245
|
+
decorative: !0,
|
|
246
|
+
class: "ml-1"
|
|
278
247
|
}, null, 8, ["icon"])
|
|
279
|
-
], 42,
|
|
280
|
-
(
|
|
248
|
+
], 42, ot),
|
|
249
|
+
(o(), B(a(ue), {
|
|
281
250
|
id: i(u),
|
|
282
251
|
key: u.text,
|
|
283
252
|
"allow-escape": "",
|
|
284
|
-
hidden: !a(
|
|
253
|
+
hidden: !a(r)(i(u)),
|
|
285
254
|
onEscape: (y) => a(s)(!1, i(u))
|
|
286
255
|
}, {
|
|
287
256
|
default: _(() => [
|
|
288
|
-
u.subLinks ? (
|
|
289
|
-
|
|
290
|
-
(
|
|
257
|
+
u.subLinks ? (o(), d("div", lt, [
|
|
258
|
+
c("ul", rt, [
|
|
259
|
+
(o(!0), d(z, null, K(u.subLinks, (y) => (o(), d("li", {
|
|
291
260
|
key: y.text,
|
|
292
261
|
class: "sub-nav-link is-flex is-align-center",
|
|
293
262
|
style: { width: "150px" }
|
|
294
263
|
}, [
|
|
295
|
-
|
|
264
|
+
c("a", {
|
|
296
265
|
href: y.href,
|
|
297
266
|
class: "has-text-link has-text-weight-medium",
|
|
298
267
|
tabindex: "0"
|
|
299
|
-
}, x(y.text), 9,
|
|
268
|
+
}, x(y.text), 9, ct)
|
|
300
269
|
]))), 128))
|
|
301
270
|
])
|
|
302
|
-
])) : (
|
|
271
|
+
])) : (o(), B(ce(u.subNav), { key: 1 }))
|
|
303
272
|
]),
|
|
304
273
|
_: 2
|
|
305
274
|
}, 1032, ["id", "hidden", "onEscape"]))
|
|
306
|
-
], 40,
|
|
307
|
-
key: `link-${
|
|
275
|
+
], 40, st)) : (o(), d("div", {
|
|
276
|
+
key: `link-${E}`,
|
|
308
277
|
class: "phila-navbar-link-list-item"
|
|
309
278
|
}, [
|
|
310
|
-
|
|
279
|
+
c("a", {
|
|
311
280
|
href: u.href,
|
|
312
281
|
class: "phila-navbar-link px-4",
|
|
313
282
|
tabindex: "0"
|
|
314
|
-
}, x(u.text), 9,
|
|
283
|
+
}, x(u.text), 9, nt)
|
|
315
284
|
]))
|
|
316
285
|
], 64))), 256))
|
|
317
286
|
]));
|
|
318
287
|
}
|
|
319
|
-
}),
|
|
288
|
+
}), ut = { class: "phila-navbar-search is-flex" }, vt = { id: "navbar-search" }, ft = { class: "pr-4" }, bt = ["aria-controls", "data-toggle", "aria-expanded", "aria-label"], pt = /* @__PURE__ */ w({
|
|
320
289
|
__name: "NavbarSearch",
|
|
321
290
|
props: {
|
|
322
291
|
visibilityGroup: {}
|
|
323
292
|
},
|
|
324
293
|
setup(t) {
|
|
325
|
-
const e = t, { setVisibility: i, isVisible: n } =
|
|
294
|
+
const e = t, { setVisibility: i, isVisible: n } = V({
|
|
326
295
|
id: `${e.visibilityGroup}-flyout-navbar-search`,
|
|
327
296
|
group: e.visibilityGroup,
|
|
328
297
|
outsideClickHide: !0,
|
|
@@ -330,40 +299,39 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
330
299
|
blurHide: !0,
|
|
331
300
|
showSingle: !0
|
|
332
301
|
});
|
|
333
|
-
return (s,
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
class:
|
|
302
|
+
return (s, l) => (o(), d("div", ut, [
|
|
303
|
+
c("div", vt, [
|
|
304
|
+
c("div", ft, [
|
|
305
|
+
c("button", {
|
|
306
|
+
class: O(["phila-button phila-button--primary icon-button is-small", { "phila-navbar-item-flyout-active": a(n)() }]),
|
|
338
307
|
"aria-controls": `${e.visibilityGroup}-flyout-navbar-search`,
|
|
339
308
|
"data-toggle": `visibility-${e.visibilityGroup}-flyout-navbar-search`,
|
|
340
309
|
"aria-expanded": a(n)(),
|
|
341
310
|
"aria-label": `${a(n)() ? "Close" : "Open"} search panel`,
|
|
342
|
-
onClick:
|
|
311
|
+
onClick: l[0] || (l[0] = (r) => a(i)(!a(n)()))
|
|
343
312
|
}, [
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
], 10, $t)
|
|
313
|
+
g(a(N), {
|
|
314
|
+
icon: a(n)() ? a(U) : a(ke),
|
|
315
|
+
decorative: !0
|
|
316
|
+
}, null, 8, ["icon"])
|
|
317
|
+
], 10, bt)
|
|
350
318
|
])
|
|
351
319
|
]),
|
|
352
|
-
g(a(
|
|
320
|
+
g(a(ue), {
|
|
353
321
|
id: `${e.visibilityGroup}-flyout-navbar-search`,
|
|
354
322
|
"allow-escape": "",
|
|
355
323
|
class: "nav-flyout is-12",
|
|
356
324
|
hidden: !a(n)(),
|
|
357
|
-
onEscape:
|
|
325
|
+
onEscape: l[1] || (l[1] = (r) => a(i)(!1, `${e.visibilityGroup}-flyout-navbar-search`))
|
|
358
326
|
}, {
|
|
359
327
|
default: _(() => [
|
|
360
|
-
|
|
328
|
+
v(s.$slots, "search-panel")
|
|
361
329
|
]),
|
|
362
330
|
_: 3
|
|
363
331
|
}, 8, ["id", "hidden"])
|
|
364
332
|
]));
|
|
365
333
|
}
|
|
366
|
-
}),
|
|
334
|
+
}), gt = /* @__PURE__ */ w({
|
|
367
335
|
__name: "NavbarBrandLogo",
|
|
368
336
|
props: {
|
|
369
337
|
logo: {},
|
|
@@ -372,22 +340,22 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
372
340
|
altText: {}
|
|
373
341
|
},
|
|
374
342
|
setup(t) {
|
|
375
|
-
const e = t, i =
|
|
343
|
+
const e = t, i = A(() => ({
|
|
376
344
|
variant: "city",
|
|
377
345
|
layout: "stacked",
|
|
378
346
|
colorScheme: "on-primary",
|
|
379
347
|
href: e.href,
|
|
380
348
|
...e.logo
|
|
381
349
|
}));
|
|
382
|
-
return (n, s) => (
|
|
350
|
+
return (n, s) => (o(), B(a(Ce), I(i.value, { class: "phila-navbar-logo" }), null, 16));
|
|
383
351
|
}
|
|
384
|
-
}),
|
|
352
|
+
}), ht = /* @__PURE__ */ R(gt, [["__scopeId", "data-v-3011c249"]]), mt = { class: "phila-navbar-brand is-flex" }, yt = {
|
|
385
353
|
key: 0,
|
|
386
354
|
class: "phila-navbar-item phila-navbar-brand-link hidden-tablet"
|
|
387
|
-
},
|
|
355
|
+
}, _t = {
|
|
388
356
|
key: 0,
|
|
389
357
|
class: "content"
|
|
390
|
-
},
|
|
358
|
+
}, $t = ["href"], kt = /* @__PURE__ */ w({
|
|
391
359
|
__name: "NavbarBrand",
|
|
392
360
|
props: {
|
|
393
361
|
brandingImage: {},
|
|
@@ -395,72 +363,72 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
395
363
|
logo: {}
|
|
396
364
|
},
|
|
397
365
|
setup(t) {
|
|
398
|
-
return (e, i) => (
|
|
399
|
-
|
|
400
|
-
t.brandingImage ? (
|
|
366
|
+
return (e, i) => (o(), d("div", mt, [
|
|
367
|
+
v(e.$slots, "navbar-logo", {}, () => [
|
|
368
|
+
t.brandingImage ? (o(), B(ht, I({ key: 0 }, t.brandingImage, { logo: t.logo }), null, 16, ["logo"])) : $("", !0)
|
|
401
369
|
]),
|
|
402
|
-
e.$slots["navbar-brand-link"] || t.brandingLink ? (
|
|
403
|
-
|
|
404
|
-
t.brandingLink ? (
|
|
405
|
-
|
|
370
|
+
e.$slots["navbar-brand-link"] || t.brandingLink ? (o(), d("div", yt, [
|
|
371
|
+
v(e.$slots, "navbar-brand-link", {}, () => [
|
|
372
|
+
t.brandingLink ? (o(), d("div", _t, [
|
|
373
|
+
c("a", {
|
|
406
374
|
tabindex: "0",
|
|
407
375
|
href: t.brandingLink.href,
|
|
408
376
|
class: "has-text-underline"
|
|
409
|
-
}, x(t.brandingLink.text), 9,
|
|
377
|
+
}, x(t.brandingLink.text), 9, $t)
|
|
410
378
|
])) : $("", !0)
|
|
411
379
|
])
|
|
412
380
|
])) : $("", !0)
|
|
413
381
|
]));
|
|
414
382
|
}
|
|
415
|
-
}),
|
|
383
|
+
}), xt = ["id"], wt = ["aria-controls", "aria-expanded", "aria-label"], Bt = ["id", "hidden"], Ct = /* @__PURE__ */ w({
|
|
416
384
|
__name: "NavbarBurger",
|
|
417
385
|
props: {
|
|
418
386
|
visibilityGroup: {},
|
|
419
387
|
id: {}
|
|
420
388
|
},
|
|
421
389
|
setup(t) {
|
|
422
|
-
const e = t, { isVisible: i, toggleProps: n } =
|
|
390
|
+
const e = t, { isVisible: i, toggleProps: n } = V({
|
|
423
391
|
id: e.id,
|
|
424
392
|
group: e.visibilityGroup,
|
|
425
393
|
outsideClickHide: !0,
|
|
426
394
|
escapeKeyHide: !0,
|
|
427
395
|
blurHide: !1,
|
|
428
396
|
showSingle: !0
|
|
429
|
-
}), s =
|
|
430
|
-
return (
|
|
397
|
+
}), s = A(() => i(e.id));
|
|
398
|
+
return (l, r) => (o(), d("div", {
|
|
431
399
|
id: e.id
|
|
432
400
|
}, [
|
|
433
|
-
|
|
401
|
+
c("button", I({
|
|
434
402
|
class: ["phila-navbar-burger phila-button icon-button", { "phila-navbar-item-flyout-active": s.value }],
|
|
435
403
|
"aria-controls": `navbar-burger-flyout-${e.visibilityGroup}`,
|
|
436
404
|
"aria-expanded": s.value,
|
|
437
405
|
"aria-label": `${s.value ? "Close" : "Open"} mobile navigation panel`
|
|
438
406
|
}, a(n)), [
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
])
|
|
444
|
-
], 16,
|
|
445
|
-
|
|
407
|
+
g(a(N), {
|
|
408
|
+
icon: s.value ? a(U) : a(xe),
|
|
409
|
+
size: "large",
|
|
410
|
+
decorative: !0
|
|
411
|
+
}, null, 8, ["icon"])
|
|
412
|
+
], 16, wt),
|
|
413
|
+
c("div", {
|
|
446
414
|
id: `navbar-burger-flyout-${e.visibilityGroup}`,
|
|
447
415
|
class: "phila-mobile-nav",
|
|
448
416
|
hidden: !s.value
|
|
449
417
|
}, [
|
|
450
|
-
|
|
451
|
-
], 8,
|
|
452
|
-
], 8,
|
|
418
|
+
v(l.$slots, "mobile-nav")
|
|
419
|
+
], 8, Bt)
|
|
420
|
+
], 8, xt));
|
|
453
421
|
}
|
|
454
|
-
}),
|
|
422
|
+
}), At = {
|
|
455
423
|
class: "language-inline hidden-tablet",
|
|
456
424
|
"aria-label": "Language selection"
|
|
457
|
-
},
|
|
425
|
+
}, Mt = { class: "is-flex is-align-center is-gap-4" }, It = ["lang", "onClick"], Tt = { class: "language-globe" }, Nt = ["aria-expanded"], Lt = {
|
|
458
426
|
class: "icon",
|
|
459
427
|
"aria-hidden": "true"
|
|
460
|
-
},
|
|
428
|
+
}, Et = {
|
|
461
429
|
class: "icon",
|
|
462
430
|
"aria-hidden": "true"
|
|
463
|
-
},
|
|
431
|
+
}, zt = ["lang", "aria-checked", "tabindex", "onClick"], St = /* @__PURE__ */ w({
|
|
464
432
|
__name: "LanguageSwitcher",
|
|
465
433
|
props: {
|
|
466
434
|
languages: {},
|
|
@@ -468,117 +436,125 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
468
436
|
},
|
|
469
437
|
emits: ["update:locale"],
|
|
470
438
|
setup(t, { emit: e }) {
|
|
471
|
-
const i = t, n = e, s =
|
|
472
|
-
function
|
|
473
|
-
s.value = !0,
|
|
439
|
+
const i = t, n = e, s = M(!1), l = M(-1), r = M(null), k = M(null), b = M([]), m = A(() => i.languages.slice(0, 3));
|
|
440
|
+
function p() {
|
|
441
|
+
s.value = !0, l.value = Math.max(
|
|
474
442
|
0,
|
|
475
|
-
i.languages.findIndex((
|
|
476
|
-
),
|
|
443
|
+
i.languages.findIndex((f) => f.code === i.locale)
|
|
444
|
+
), Z(() => y(l.value));
|
|
477
445
|
}
|
|
478
446
|
function u() {
|
|
479
|
-
s.value ? (s.value = !1,
|
|
447
|
+
s.value ? (s.value = !1, l.value = -1) : p();
|
|
480
448
|
}
|
|
481
|
-
function
|
|
482
|
-
s.value = !1,
|
|
449
|
+
function E() {
|
|
450
|
+
s.value = !1, l.value = -1, k.value?.focus();
|
|
483
451
|
}
|
|
484
|
-
function y(
|
|
485
|
-
|
|
452
|
+
function y(f) {
|
|
453
|
+
b.value[f]?.focus();
|
|
486
454
|
}
|
|
487
|
-
function
|
|
488
|
-
|
|
455
|
+
function L(f, S) {
|
|
456
|
+
f && (b.value[S] = f);
|
|
489
457
|
}
|
|
490
|
-
function
|
|
491
|
-
n("update:locale",
|
|
458
|
+
function X(f) {
|
|
459
|
+
n("update:locale", f), E();
|
|
492
460
|
}
|
|
493
|
-
function
|
|
494
|
-
(
|
|
461
|
+
function Y(f) {
|
|
462
|
+
(f.key === "ArrowDown" || f.key === "ArrowUp") && (f.preventDefault(), s.value || p());
|
|
495
463
|
}
|
|
496
|
-
function
|
|
497
|
-
switch (
|
|
464
|
+
function h(f) {
|
|
465
|
+
switch (f.key) {
|
|
498
466
|
case "Escape":
|
|
499
|
-
|
|
467
|
+
f.preventDefault(), E();
|
|
500
468
|
break;
|
|
501
469
|
case "ArrowDown":
|
|
502
|
-
|
|
470
|
+
f.preventDefault(), l.value = (l.value + 1) % i.languages.length, y(l.value);
|
|
503
471
|
break;
|
|
504
472
|
case "ArrowUp":
|
|
505
|
-
|
|
473
|
+
f.preventDefault(), l.value = (l.value - 1 + i.languages.length) % i.languages.length, y(l.value);
|
|
506
474
|
break;
|
|
507
475
|
case "Home":
|
|
508
|
-
|
|
476
|
+
f.preventDefault(), l.value = 0, y(l.value);
|
|
509
477
|
break;
|
|
510
478
|
case "End":
|
|
511
|
-
|
|
479
|
+
f.preventDefault(), l.value = i.languages.length - 1, y(l.value);
|
|
512
480
|
break;
|
|
513
481
|
case "Tab":
|
|
514
|
-
|
|
482
|
+
E();
|
|
515
483
|
break;
|
|
516
484
|
}
|
|
517
485
|
}
|
|
518
|
-
function
|
|
519
|
-
|
|
486
|
+
function T(f) {
|
|
487
|
+
r.value && !r.value.contains(f.target) && (s.value = !1, l.value = -1);
|
|
520
488
|
}
|
|
521
489
|
return oe(() => {
|
|
522
|
-
document.addEventListener("click",
|
|
523
|
-
}),
|
|
524
|
-
document.removeEventListener("click",
|
|
525
|
-
}), (
|
|
490
|
+
document.addEventListener("click", T);
|
|
491
|
+
}), he(() => {
|
|
492
|
+
document.removeEventListener("click", T);
|
|
493
|
+
}), (f, S) => (o(), d("div", {
|
|
526
494
|
ref_key: "containerRef",
|
|
527
|
-
ref:
|
|
495
|
+
ref: r,
|
|
528
496
|
class: "language-switcher is-flex is-align-center is-gap-4"
|
|
529
497
|
}, [
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
(
|
|
533
|
-
key:
|
|
534
|
-
lang:
|
|
498
|
+
c("nav", At, [
|
|
499
|
+
c("div", Mt, [
|
|
500
|
+
(o(!0), d(z, null, K(m.value, (C) => (o(), d("button", {
|
|
501
|
+
key: C.code,
|
|
502
|
+
lang: C.lang,
|
|
535
503
|
class: "language-link",
|
|
536
|
-
onClick: (
|
|
537
|
-
}, x(
|
|
504
|
+
onClick: (D) => n("update:locale", C.code)
|
|
505
|
+
}, x(C.title), 9, It))), 128))
|
|
538
506
|
])
|
|
539
507
|
]),
|
|
540
|
-
|
|
541
|
-
|
|
508
|
+
c("div", Tt, [
|
|
509
|
+
c("button", {
|
|
542
510
|
ref_key: "toggleRef",
|
|
543
511
|
ref: k,
|
|
544
512
|
class: "language-globe-toggle is-flex is-align-center",
|
|
545
513
|
"aria-label": "Select language",
|
|
546
514
|
"aria-haspopup": "true",
|
|
547
515
|
"aria-expanded": s.value,
|
|
548
|
-
onClick:
|
|
549
|
-
onKeydown:
|
|
516
|
+
onClick: F(u, ["stop"]),
|
|
517
|
+
onKeydown: Y
|
|
550
518
|
}, [
|
|
551
|
-
|
|
552
|
-
g(a(
|
|
519
|
+
c("span", Lt, [
|
|
520
|
+
g(a(N), {
|
|
521
|
+
icon: a(we),
|
|
522
|
+
decorative: "",
|
|
523
|
+
inline: "",
|
|
524
|
+
style: { "font-size": "1em" }
|
|
525
|
+
}, null, 8, ["icon"])
|
|
553
526
|
]),
|
|
554
|
-
|
|
555
|
-
g(a(
|
|
556
|
-
icon: s.value ? a(
|
|
527
|
+
c("span", Et, [
|
|
528
|
+
g(a(N), {
|
|
529
|
+
icon: s.value ? a(J) : a(ee),
|
|
530
|
+
decorative: "",
|
|
531
|
+
inline: "",
|
|
532
|
+
style: { "font-size": "1em" }
|
|
557
533
|
}, null, 8, ["icon"])
|
|
558
534
|
])
|
|
559
|
-
], 40,
|
|
560
|
-
s.value ? (
|
|
535
|
+
], 40, Nt),
|
|
536
|
+
s.value ? (o(), d("div", {
|
|
561
537
|
key: 0,
|
|
562
538
|
class: "language-menu",
|
|
563
539
|
role: "menu",
|
|
564
|
-
onKeydown:
|
|
540
|
+
onKeydown: h
|
|
565
541
|
}, [
|
|
566
|
-
(
|
|
567
|
-
key:
|
|
542
|
+
(o(!0), d(z, null, K(t.languages, (C, D) => (o(), d("button", {
|
|
543
|
+
key: C.code,
|
|
568
544
|
ref_for: !0,
|
|
569
|
-
ref: (
|
|
570
|
-
lang:
|
|
545
|
+
ref: (j) => L(j, D),
|
|
546
|
+
lang: C.lang,
|
|
571
547
|
role: "menuitemradio",
|
|
572
|
-
"aria-checked":
|
|
573
|
-
tabindex:
|
|
574
|
-
class:
|
|
575
|
-
onClick:
|
|
576
|
-
}, x(
|
|
548
|
+
"aria-checked": C.code === t.locale,
|
|
549
|
+
tabindex: D === l.value ? 0 : -1,
|
|
550
|
+
class: O(["language-menu-item", { "is-selected": C.code === t.locale }]),
|
|
551
|
+
onClick: F((j) => X(C.code), ["stop"])
|
|
552
|
+
}, x(C.title), 11, zt))), 128))
|
|
577
553
|
], 32)) : $("", !0)
|
|
578
554
|
])
|
|
579
555
|
], 512));
|
|
580
556
|
}
|
|
581
|
-
}),
|
|
557
|
+
}), Ht = /* @__PURE__ */ R(St, [["__scopeId", "data-v-f91f4b58"]]), na = /* @__PURE__ */ w({
|
|
582
558
|
__name: "AppHeader",
|
|
583
559
|
props: {
|
|
584
560
|
showTrustedSite: { type: Boolean, default: !0 },
|
|
@@ -598,38 +574,38 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
598
574
|
emits: ["update:locale"],
|
|
599
575
|
setup(t, { emit: e }) {
|
|
600
576
|
const i = e;
|
|
601
|
-
return (n, s) => (
|
|
602
|
-
t.showTrustedSite ? (
|
|
577
|
+
return (n, s) => (o(), d(z, null, [
|
|
578
|
+
t.showTrustedSite ? (o(), B(Fe, {
|
|
603
579
|
key: 0,
|
|
604
580
|
"compact-mobile": t.compactMobile
|
|
605
581
|
}, {
|
|
606
582
|
translation: _(() => [
|
|
607
|
-
|
|
608
|
-
t.languages ? (
|
|
583
|
+
v(n.$slots, "translations", {}, () => [
|
|
584
|
+
t.languages ? (o(), B(Ht, {
|
|
609
585
|
key: 0,
|
|
610
586
|
languages: t.languages,
|
|
611
587
|
locale: t.locale ?? "",
|
|
612
|
-
"onUpdate:locale": s[0] || (s[0] = (
|
|
613
|
-
}, null, 8, ["languages", "locale"])) : t.translations ? (
|
|
588
|
+
"onUpdate:locale": s[0] || (s[0] = (l) => i("update:locale", l))
|
|
589
|
+
}, null, 8, ["languages", "locale"])) : t.translations ? (o(), B(ce(t.translations), { key: 1 })) : $("", !0)
|
|
614
590
|
])
|
|
615
591
|
]),
|
|
616
592
|
_: 3
|
|
617
593
|
}, 8, ["compact-mobile"])) : $("", !0),
|
|
618
|
-
g(
|
|
594
|
+
g(qe, {
|
|
619
595
|
id: t.id,
|
|
620
596
|
sticky: t.sticky,
|
|
621
597
|
"compact-mobile": t.compactMobile
|
|
622
|
-
},
|
|
598
|
+
}, ae({
|
|
623
599
|
"navbar-toggle": _(() => [
|
|
624
|
-
|
|
625
|
-
g(
|
|
600
|
+
v(n.$slots, "navbar-toggle", {}, () => [
|
|
601
|
+
g(Ct, {
|
|
626
602
|
id: `mobile-nav-${t.id}`,
|
|
627
603
|
"visibility-group": t.id
|
|
628
|
-
},
|
|
604
|
+
}, ae({ _: 2 }, [
|
|
629
605
|
n.$slots["mobile-nav"] ? {
|
|
630
606
|
name: "mobile-nav",
|
|
631
607
|
fn: _(() => [
|
|
632
|
-
|
|
608
|
+
v(n.$slots, "mobile-nav")
|
|
633
609
|
]),
|
|
634
610
|
key: "0"
|
|
635
611
|
} : void 0
|
|
@@ -637,25 +613,25 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
637
613
|
])
|
|
638
614
|
]),
|
|
639
615
|
"navbar-left": _(() => [
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
t.navbarBrand ? (
|
|
616
|
+
v(n.$slots, "navbar-left", {}, () => [
|
|
617
|
+
v(n.$slots, "navbar-brand", {}, () => [
|
|
618
|
+
t.navbarBrand ? (o(), B(kt, P(I({ key: 0 }, t.navbarBrand)), null, 16)) : $("", !0)
|
|
643
619
|
])
|
|
644
620
|
])
|
|
645
621
|
]),
|
|
646
622
|
"navbar-right": _(() => [
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
t.links ? (
|
|
623
|
+
v(n.$slots, "navbar-right", {}, () => [
|
|
624
|
+
v(n.$slots, "navbar-links", {}, () => [
|
|
625
|
+
t.links ? (o(), B(dt, {
|
|
650
626
|
key: 0,
|
|
651
627
|
links: t.links,
|
|
652
628
|
"visibility-group": t.id
|
|
653
629
|
}, null, 8, ["links", "visibility-group"])) : $("", !0)
|
|
654
630
|
]),
|
|
655
|
-
|
|
656
|
-
g(
|
|
631
|
+
v(n.$slots, "navbar-search", {}, () => [
|
|
632
|
+
g(pt, { "visibility-group": t.id }, {
|
|
657
633
|
"search-panel": _(() => [
|
|
658
|
-
|
|
634
|
+
v(n.$slots, "search-panel")
|
|
659
635
|
]),
|
|
660
636
|
_: 3
|
|
661
637
|
}, 8, ["visibility-group"])
|
|
@@ -667,19 +643,19 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
667
643
|
n.$slots["navbar-end"] ? {
|
|
668
644
|
name: "navbar-end",
|
|
669
645
|
fn: _(() => [
|
|
670
|
-
|
|
646
|
+
v(n.$slots, "navbar-end")
|
|
671
647
|
]),
|
|
672
648
|
key: "0"
|
|
673
649
|
} : void 0
|
|
674
650
|
]), 1032, ["id", "sticky", "compact-mobile"]),
|
|
675
|
-
t.bannerTitle || t.bannerMessage ? (
|
|
651
|
+
t.bannerTitle || t.bannerMessage ? (o(), B(at, {
|
|
676
652
|
key: 1,
|
|
677
653
|
"banner-title": t.bannerTitle,
|
|
678
654
|
"banner-message": t.bannerMessage
|
|
679
655
|
}, null, 8, ["banner-title", "banner-message"])) : $("", !0)
|
|
680
656
|
], 64));
|
|
681
657
|
}
|
|
682
|
-
}),
|
|
658
|
+
}), Ot = ["disabled"], ne = /* @__PURE__ */ w({
|
|
683
659
|
inheritAttrs: !1,
|
|
684
660
|
__name: "PhlButton",
|
|
685
661
|
props: {
|
|
@@ -695,20 +671,19 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
695
671
|
iconRight: { type: Boolean },
|
|
696
672
|
text: {},
|
|
697
673
|
className: {},
|
|
698
|
-
|
|
699
|
-
iconClass: {},
|
|
674
|
+
icon: {},
|
|
700
675
|
src: {},
|
|
701
676
|
svgRaw: {}
|
|
702
677
|
},
|
|
703
678
|
setup(t) {
|
|
704
|
-
const e = t, i = (
|
|
679
|
+
const e = t, i = (r) => "href" in r && r.href !== void 0 || "to" in r && r.to !== void 0, n = A(() => q(
|
|
705
680
|
"phila-button",
|
|
706
681
|
`phila-button--${e.variant}`,
|
|
707
682
|
e.size && `is-${e.size}`,
|
|
708
683
|
e.iconOnly && "icon-button",
|
|
709
684
|
e.iconOnly && e.variant === "standard" && "icon-button--standard",
|
|
710
685
|
e.className
|
|
711
|
-
)), s =
|
|
686
|
+
)), s = A(() => i(e) ? "to" in e && e.to !== void 0 ? {
|
|
712
687
|
to: e.to,
|
|
713
688
|
disabled: e.disabled,
|
|
714
689
|
className: n.value
|
|
@@ -718,10 +693,9 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
718
693
|
rel: e.rel,
|
|
719
694
|
disabled: e.disabled,
|
|
720
695
|
className: n.value
|
|
721
|
-
} : {}),
|
|
696
|
+
} : {}), l = A(
|
|
722
697
|
() => ({
|
|
723
|
-
|
|
724
|
-
iconClass: e.iconClass,
|
|
698
|
+
icon: e.icon,
|
|
725
699
|
src: e.src,
|
|
726
700
|
iconRight: e.iconRight,
|
|
727
701
|
iconOnly: e.iconOnly,
|
|
@@ -729,51 +703,45 @@ const Se = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
729
703
|
size: e.size
|
|
730
704
|
})
|
|
731
705
|
);
|
|
732
|
-
return (
|
|
706
|
+
return (r, k) => i(e) ? (o(), B(a(ve), I({ key: 0 }, { ...s.value, ...r.$attrs }, { role: "button" }), {
|
|
733
707
|
default: _(() => [
|
|
734
|
-
g(a(
|
|
708
|
+
g(a(W), P(Q(l.value)), {
|
|
735
709
|
default: _(() => [
|
|
736
|
-
|
|
737
|
-
|
|
710
|
+
v(r.$slots, "default", {}, () => [
|
|
711
|
+
H(x(e.text), 1)
|
|
738
712
|
])
|
|
739
713
|
]),
|
|
740
714
|
_: 3
|
|
741
715
|
}, 16)
|
|
742
716
|
]),
|
|
743
717
|
_: 3
|
|
744
|
-
}, 16)) : (
|
|
718
|
+
}, 16)) : (o(), d("button", I({
|
|
745
719
|
key: 1,
|
|
746
720
|
type: "button",
|
|
747
721
|
disabled: e.disabled,
|
|
748
722
|
class: n.value
|
|
749
|
-
},
|
|
750
|
-
g(a(
|
|
723
|
+
}, r.$attrs), [
|
|
724
|
+
g(a(W), P(Q(l.value)), {
|
|
751
725
|
default: _(() => [
|
|
752
|
-
|
|
753
|
-
|
|
726
|
+
v(r.$slots, "default", {}, () => [
|
|
727
|
+
H(x(e.text), 1)
|
|
754
728
|
])
|
|
755
729
|
]),
|
|
756
730
|
_: 3
|
|
757
731
|
}, 16)
|
|
758
|
-
], 16,
|
|
732
|
+
], 16, Ot));
|
|
759
733
|
}
|
|
760
|
-
})
|
|
761
|
-
var ne = {
|
|
762
|
-
prefix: "fas",
|
|
763
|
-
iconName: "xmark",
|
|
764
|
-
icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]
|
|
765
|
-
};
|
|
766
|
-
const Qt = ["id"], Wt = {
|
|
734
|
+
}), Dt = ["id"], Rt = {
|
|
767
735
|
key: 0,
|
|
768
736
|
class: "tooltip__tail",
|
|
769
737
|
"aria-hidden": "true"
|
|
770
|
-
},
|
|
738
|
+
}, Gt = {
|
|
771
739
|
key: 1,
|
|
772
740
|
class: "tooltip__plain-row has-text-body-small"
|
|
773
|
-
},
|
|
741
|
+
}, Pt = {
|
|
774
742
|
key: 0,
|
|
775
743
|
class: "tooltip__title-row"
|
|
776
|
-
},
|
|
744
|
+
}, Ut = { key: 0 }, Vt = /* @__PURE__ */ w({
|
|
777
745
|
__name: "TooltipBubble",
|
|
778
746
|
props: {
|
|
779
747
|
id: {},
|
|
@@ -787,8 +755,8 @@ const Qt = ["id"], Wt = {
|
|
|
787
755
|
},
|
|
788
756
|
emits: ["dismiss"],
|
|
789
757
|
setup(t) {
|
|
790
|
-
const e = t, i =
|
|
791
|
-
() =>
|
|
758
|
+
const e = t, i = A(
|
|
759
|
+
() => q(
|
|
792
760
|
"tooltip",
|
|
793
761
|
"content",
|
|
794
762
|
"resets-link-colors",
|
|
@@ -798,48 +766,48 @@ const Qt = ["id"], Wt = {
|
|
|
798
766
|
e.className
|
|
799
767
|
)
|
|
800
768
|
);
|
|
801
|
-
return (n, s) => (
|
|
769
|
+
return (n, s) => (o(), d("div", {
|
|
802
770
|
id: t.id,
|
|
803
|
-
class:
|
|
771
|
+
class: O(i.value),
|
|
804
772
|
role: "tooltip"
|
|
805
773
|
}, [
|
|
806
|
-
t.tail ? (
|
|
807
|
-
t.type === "plain" ? (
|
|
808
|
-
|
|
809
|
-
t.dismissable ? (
|
|
774
|
+
t.tail ? (o(), d("div", Rt)) : $("", !0),
|
|
775
|
+
t.type === "plain" ? (o(), d("div", Gt, [
|
|
776
|
+
v(n.$slots, "default", {}, void 0, !0),
|
|
777
|
+
t.dismissable ? (o(), B(a(ne), {
|
|
810
778
|
key: 0,
|
|
811
779
|
class: "tooltip__dismiss",
|
|
812
780
|
variant: "standard",
|
|
813
781
|
size: "extra-small",
|
|
814
782
|
"icon-only": !0,
|
|
815
|
-
|
|
783
|
+
icon: a(U),
|
|
816
784
|
"aria-label": "Dismiss tooltip",
|
|
817
|
-
onClick: s[0] || (s[0] = (
|
|
818
|
-
}, null, 8, ["icon
|
|
819
|
-
])) : (
|
|
820
|
-
t.title || t.dismissable ? (
|
|
821
|
-
t.title ? (
|
|
822
|
-
t.dismissable ? (
|
|
785
|
+
onClick: s[0] || (s[0] = (l) => n.$emit("dismiss"))
|
|
786
|
+
}, null, 8, ["icon"])) : $("", !0)
|
|
787
|
+
])) : (o(), d(z, { key: 2 }, [
|
|
788
|
+
t.title || t.dismissable ? (o(), d("div", Pt, [
|
|
789
|
+
t.title ? (o(), d("h6", Ut, x(t.title), 1)) : $("", !0),
|
|
790
|
+
t.dismissable ? (o(), B(a(ne), {
|
|
823
791
|
key: 1,
|
|
824
792
|
class: "tooltip__dismiss",
|
|
825
793
|
variant: "standard",
|
|
826
794
|
size: "extra-small",
|
|
827
795
|
"icon-only": !0,
|
|
828
|
-
|
|
796
|
+
icon: a(U),
|
|
829
797
|
"aria-label": "Dismiss tooltip",
|
|
830
|
-
onClick: s[1] || (s[1] = (
|
|
831
|
-
}, null, 8, ["icon
|
|
798
|
+
onClick: s[1] || (s[1] = (l) => n.$emit("dismiss"))
|
|
799
|
+
}, null, 8, ["icon"])) : $("", !0)
|
|
832
800
|
])) : $("", !0),
|
|
833
|
-
|
|
801
|
+
v(n.$slots, "default", {}, void 0, !0)
|
|
834
802
|
], 64))
|
|
835
|
-
], 10,
|
|
803
|
+
], 10, Dt));
|
|
836
804
|
}
|
|
837
|
-
}),
|
|
805
|
+
}), fe = (t, e) => {
|
|
838
806
|
const i = t.__vccOpts || t;
|
|
839
807
|
for (const [n, s] of e)
|
|
840
808
|
i[n] = s;
|
|
841
809
|
return i;
|
|
842
|
-
},
|
|
810
|
+
}, jt = /* @__PURE__ */ fe(Vt, [["__scopeId", "data-v-7af177ec"]]), Kt = /* @__PURE__ */ w({
|
|
843
811
|
__name: "Tooltip",
|
|
844
812
|
props: {
|
|
845
813
|
trigger: { default: "hover" },
|
|
@@ -852,31 +820,31 @@ const Qt = ["id"], Wt = {
|
|
|
852
820
|
className: {}
|
|
853
821
|
},
|
|
854
822
|
setup(t, { expose: e }) {
|
|
855
|
-
const i = t, n =
|
|
856
|
-
const
|
|
857
|
-
if (!
|
|
858
|
-
const { innerWidth:
|
|
859
|
-
return `${
|
|
860
|
-
},
|
|
861
|
-
|
|
862
|
-
}, u = (
|
|
863
|
-
|
|
823
|
+
const i = t, n = me(), s = M(!1), l = M(null), r = M(null), k = M("top-center"), b = M(0), m = () => {
|
|
824
|
+
const h = l.value?.getBoundingClientRect();
|
|
825
|
+
if (!h) return "top-center";
|
|
826
|
+
const { innerWidth: T, innerHeight: f } = window, S = h.top, C = f - h.bottom, D = r.value?.firstElementChild?.getBoundingClientRect().height ?? 0, j = (D > 0 ? S >= D : S >= C) ? "top" : "bottom", te = h.left + h.width / 2, be = te < T / 3 ? "left" : te > T * 2 / 3 ? "right" : "center";
|
|
827
|
+
return `${j}-${be}`;
|
|
828
|
+
}, p = (h) => {
|
|
829
|
+
h.key === "Escape" && L();
|
|
830
|
+
}, u = (h) => {
|
|
831
|
+
l.value && !l.value.contains(h.target) && L();
|
|
864
832
|
};
|
|
865
|
-
function
|
|
866
|
-
const
|
|
867
|
-
if (!
|
|
868
|
-
const
|
|
869
|
-
|
|
833
|
+
function E() {
|
|
834
|
+
const h = r.value?.firstElementChild?.getBoundingClientRect();
|
|
835
|
+
if (!h) return;
|
|
836
|
+
const T = 8, f = h.right - (window.innerWidth - T), S = T - h.left;
|
|
837
|
+
f <= 0 && S <= 0 || (b.value = window.innerWidth / 2 - (h.left + h.width / 2));
|
|
870
838
|
}
|
|
871
839
|
const y = async () => {
|
|
872
|
-
i.placement === "auto" ? k.value =
|
|
873
|
-
},
|
|
874
|
-
s.value = !1, document.removeEventListener("keydown",
|
|
875
|
-
},
|
|
876
|
-
s.value ?
|
|
840
|
+
i.placement === "auto" ? k.value = m() : k.value = i.placement, b.value = 0, s.value = !0, document.addEventListener("keydown", p), i.trigger === "click" && document.addEventListener("click", u), await Z(), E();
|
|
841
|
+
}, L = () => {
|
|
842
|
+
s.value = !1, document.removeEventListener("keydown", p), document.removeEventListener("click", u);
|
|
843
|
+
}, X = () => {
|
|
844
|
+
s.value ? L() : y();
|
|
877
845
|
};
|
|
878
|
-
le(
|
|
879
|
-
const
|
|
846
|
+
le(L), e({ show: y, hide: L });
|
|
847
|
+
const Y = A(() => ({
|
|
880
848
|
type: i.type,
|
|
881
849
|
color: i.color,
|
|
882
850
|
tail: i.tail,
|
|
@@ -884,43 +852,43 @@ const Qt = ["id"], Wt = {
|
|
|
884
852
|
title: i.title,
|
|
885
853
|
dismissable: i.dismissable
|
|
886
854
|
}));
|
|
887
|
-
return (
|
|
855
|
+
return (h, T) => (o(), d("span", I(
|
|
888
856
|
{
|
|
889
857
|
ref_key: "wrapperEl",
|
|
890
|
-
ref:
|
|
891
|
-
class: a(
|
|
858
|
+
ref: l,
|
|
859
|
+
class: a(q)("tooltip-trigger", i.className)
|
|
892
860
|
},
|
|
893
|
-
t.trigger === "click" ? { onClick:
|
|
861
|
+
t.trigger === "click" ? { onClick: X } : { onMouseenter: y, onMouseleave: L, onFocusin: y, onFocusout: L }
|
|
894
862
|
), [
|
|
895
|
-
|
|
863
|
+
v(h.$slots, "default", {
|
|
896
864
|
tooltipId: a(n),
|
|
897
865
|
isOpen: s.value
|
|
898
866
|
}, void 0, !0),
|
|
899
|
-
|
|
867
|
+
c("span", {
|
|
900
868
|
ref_key: "positionerEl",
|
|
901
|
-
ref:
|
|
902
|
-
class:
|
|
869
|
+
ref: r,
|
|
870
|
+
class: O(["tooltip-trigger__positioner", `tooltip-trigger__positioner--${k.value}`]),
|
|
903
871
|
style: re({
|
|
904
872
|
visibility: s.value ? "visible" : "hidden",
|
|
905
873
|
"--positioner-gap": t.tail ? "var(--spacing-l)" : "0.5rem",
|
|
906
|
-
"--adjust-x": `${
|
|
874
|
+
"--adjust-x": `${b.value}px`
|
|
907
875
|
}),
|
|
908
|
-
onClick:
|
|
876
|
+
onClick: T[0] || (T[0] = F(() => {
|
|
909
877
|
}, ["stop"]))
|
|
910
878
|
}, [
|
|
911
|
-
g(
|
|
879
|
+
g(jt, I(Y.value, {
|
|
912
880
|
id: a(n),
|
|
913
|
-
onDismiss:
|
|
881
|
+
onDismiss: L
|
|
914
882
|
}), {
|
|
915
883
|
default: _(() => [
|
|
916
|
-
|
|
884
|
+
v(h.$slots, "body", {}, void 0, !0)
|
|
917
885
|
]),
|
|
918
886
|
_: 3
|
|
919
887
|
}, 16, ["id"])
|
|
920
888
|
], 6)
|
|
921
889
|
], 16));
|
|
922
890
|
}
|
|
923
|
-
}),
|
|
891
|
+
}), Ft = /* @__PURE__ */ fe(Kt, [["__scopeId", "data-v-b3f93b8c"]]), Qt = ["disabled"], Wt = /* @__PURE__ */ w({
|
|
924
892
|
inheritAttrs: !1,
|
|
925
893
|
__name: "PhlButton",
|
|
926
894
|
props: {
|
|
@@ -936,20 +904,19 @@ const Qt = ["id"], Wt = {
|
|
|
936
904
|
iconRight: { type: Boolean },
|
|
937
905
|
text: {},
|
|
938
906
|
className: {},
|
|
939
|
-
|
|
940
|
-
iconClass: {},
|
|
907
|
+
icon: {},
|
|
941
908
|
src: {},
|
|
942
909
|
svgRaw: {}
|
|
943
910
|
},
|
|
944
911
|
setup(t) {
|
|
945
|
-
const e = t, i = (
|
|
912
|
+
const e = t, i = (r) => "href" in r && r.href !== void 0 || "to" in r && r.to !== void 0, n = A(() => q(
|
|
946
913
|
"phila-button",
|
|
947
914
|
`phila-button--${e.variant}`,
|
|
948
915
|
e.size && `is-${e.size}`,
|
|
949
916
|
e.iconOnly && "icon-button",
|
|
950
917
|
e.iconOnly && e.variant === "standard" && "icon-button--standard",
|
|
951
918
|
e.className
|
|
952
|
-
)), s =
|
|
919
|
+
)), s = A(() => i(e) ? "to" in e && e.to !== void 0 ? {
|
|
953
920
|
to: e.to,
|
|
954
921
|
disabled: e.disabled,
|
|
955
922
|
className: n.value
|
|
@@ -959,10 +926,9 @@ const Qt = ["id"], Wt = {
|
|
|
959
926
|
rel: e.rel,
|
|
960
927
|
disabled: e.disabled,
|
|
961
928
|
className: n.value
|
|
962
|
-
} : {}),
|
|
929
|
+
} : {}), l = A(
|
|
963
930
|
() => ({
|
|
964
|
-
|
|
965
|
-
iconClass: e.iconClass,
|
|
931
|
+
icon: e.icon,
|
|
966
932
|
src: e.src,
|
|
967
933
|
iconRight: e.iconRight,
|
|
968
934
|
iconOnly: e.iconOnly,
|
|
@@ -970,39 +936,39 @@ const Qt = ["id"], Wt = {
|
|
|
970
936
|
size: e.size
|
|
971
937
|
})
|
|
972
938
|
);
|
|
973
|
-
return (
|
|
939
|
+
return (r, k) => i(e) ? (o(), B(a(ve), I({ key: 0 }, { ...s.value, ...r.$attrs }, { role: "button" }), {
|
|
974
940
|
default: _(() => [
|
|
975
|
-
g(a(
|
|
941
|
+
g(a(W), P(Q(l.value)), {
|
|
976
942
|
default: _(() => [
|
|
977
|
-
|
|
978
|
-
|
|
943
|
+
v(r.$slots, "default", {}, () => [
|
|
944
|
+
H(x(e.text), 1)
|
|
979
945
|
])
|
|
980
946
|
]),
|
|
981
947
|
_: 3
|
|
982
948
|
}, 16)
|
|
983
949
|
]),
|
|
984
950
|
_: 3
|
|
985
|
-
}, 16)) : (
|
|
951
|
+
}, 16)) : (o(), d("button", I({
|
|
986
952
|
key: 1,
|
|
987
953
|
type: "button",
|
|
988
954
|
disabled: e.disabled,
|
|
989
955
|
class: n.value
|
|
990
|
-
},
|
|
991
|
-
g(a(
|
|
956
|
+
}, r.$attrs), [
|
|
957
|
+
g(a(W), P(Q(l.value)), {
|
|
992
958
|
default: _(() => [
|
|
993
|
-
|
|
994
|
-
|
|
959
|
+
v(r.$slots, "default", {}, () => [
|
|
960
|
+
H(x(e.text), 1)
|
|
995
961
|
])
|
|
996
962
|
]),
|
|
997
963
|
_: 3
|
|
998
964
|
}, 16)
|
|
999
|
-
], 16,
|
|
965
|
+
], 16, Qt));
|
|
1000
966
|
}
|
|
1001
|
-
}),
|
|
967
|
+
}), qt = { class: "navbar-info" }, Xt = { class: "navbar-info__group" }, Yt = {
|
|
1002
968
|
key: 0,
|
|
1003
969
|
class: "navbar-info__label has-text-body-default hidden-tablet",
|
|
1004
970
|
"aria-hidden": "true"
|
|
1005
|
-
},
|
|
971
|
+
}, Zt = { class: "has-text-body-small" }, Jt = /* @__PURE__ */ w({
|
|
1006
972
|
__name: "NavbarInfo",
|
|
1007
973
|
props: {
|
|
1008
974
|
infoTitle: {},
|
|
@@ -1010,12 +976,12 @@ const Qt = ["id"], Wt = {
|
|
|
1010
976
|
label: {}
|
|
1011
977
|
},
|
|
1012
978
|
setup(t, { expose: e }) {
|
|
1013
|
-
const i =
|
|
979
|
+
const i = G("tooltip");
|
|
1014
980
|
return e({
|
|
1015
981
|
show: () => i.value?.show(),
|
|
1016
982
|
hide: () => i.value?.hide()
|
|
1017
|
-
}), (n, s) => (
|
|
1018
|
-
g(a(
|
|
983
|
+
}), (n, s) => (o(), d("div", qt, [
|
|
984
|
+
g(a(Ft), {
|
|
1019
985
|
ref_key: "tooltip",
|
|
1020
986
|
ref: i,
|
|
1021
987
|
type: "rich",
|
|
@@ -1023,41 +989,41 @@ const Qt = ["id"], Wt = {
|
|
|
1023
989
|
trigger: "click",
|
|
1024
990
|
dismissable: !0
|
|
1025
991
|
}, {
|
|
1026
|
-
default: _(({ tooltipId:
|
|
1027
|
-
|
|
1028
|
-
g(a(
|
|
992
|
+
default: _(({ tooltipId: l, isOpen: r }) => [
|
|
993
|
+
c("span", Xt, [
|
|
994
|
+
g(a(Wt), {
|
|
1029
995
|
class: "navbar-info__trigger",
|
|
1030
996
|
variant: "standard",
|
|
1031
997
|
size: "small",
|
|
1032
998
|
"icon-only": !0,
|
|
1033
|
-
|
|
999
|
+
icon: a(de),
|
|
1034
1000
|
"aria-label": "More information",
|
|
1035
|
-
"aria-describedby":
|
|
1036
|
-
"aria-pressed":
|
|
1037
|
-
}, null, 8, ["icon
|
|
1038
|
-
t.label ? (
|
|
1001
|
+
"aria-describedby": l,
|
|
1002
|
+
"aria-pressed": r
|
|
1003
|
+
}, null, 8, ["icon", "aria-describedby", "aria-pressed"]),
|
|
1004
|
+
t.label ? (o(), d("span", Yt, x(t.label), 1)) : $("", !0)
|
|
1039
1005
|
])
|
|
1040
1006
|
]),
|
|
1041
1007
|
body: _(() => [
|
|
1042
|
-
|
|
1043
|
-
|
|
1008
|
+
v(n.$slots, "default", {}, () => [
|
|
1009
|
+
c("div", Zt, x(t.infoMessage), 1)
|
|
1044
1010
|
], !0)
|
|
1045
1011
|
]),
|
|
1046
1012
|
_: 3
|
|
1047
1013
|
}, 8, ["title"])
|
|
1048
1014
|
]));
|
|
1049
1015
|
}
|
|
1050
|
-
}),
|
|
1016
|
+
}), sa = /* @__PURE__ */ R(Jt, [["__scopeId", "data-v-a29fa022"]]);
|
|
1051
1017
|
export {
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1018
|
+
at as AlertBanner,
|
|
1019
|
+
na as AppHeader,
|
|
1020
|
+
Ht as LanguageSwitcher,
|
|
1021
|
+
qe as NavBar,
|
|
1022
|
+
kt as NavbarBrand,
|
|
1023
|
+
ht as NavbarBrandLogo,
|
|
1024
|
+
Ct as NavbarBurger,
|
|
1025
|
+
sa as NavbarInfo,
|
|
1026
|
+
dt as NavbarLinks,
|
|
1027
|
+
pt as NavbarSearch,
|
|
1028
|
+
Fe as TrustedSite
|
|
1063
1029
|
};
|