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