@phila/phila-ui-app-header 1.0.0-beta.17 → 1.0.0-beta.18

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