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