@phila/phila-ui-app-header 0.3.0-beta.5 → 0.3.0-beta.7

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,223 +1,219 @@
1
- import { defineComponent as h, useSlots as ce, computed as k, createElementBlock as u, openBlock as o, Fragment as N, createElementVNode as s, createCommentVNode as b, unref as n, createTextVNode as _, createVNode as p, renderSlot as f, createBlock as m, withCtx as v, resolveDynamicComponent as S, normalizeClass as z, renderList as j, toDisplayString as g, withKeys as de, mergeProps as C, useId as ue, ref as B, onUnmounted as K, withModifiers as fe, normalizeStyle as W, normalizeProps as A, guardReactiveProps as L, useTemplateRef as ve, watch as me, onMounted as be, createSlots as q } from "vue";
2
- import { FontAwesomeIcon as $ } from "@fortawesome/vue-fontawesome";
3
- import { useCollapse as Y, cn as E, BaseLink as Z, ActionContent as T, debounce as pe, Icon as he } from "@phila/phila-ui-core";
4
- import { CollapsePanel as D } from "@phila/phila-ui-collapse-panel";
5
- import { Logo as ye } from "@phila/phila-ui-logo";
6
- import './index.css';var ge = {
1
+ import { defineComponent as k, useSlots as H, computed as M, createElementBlock as c, openBlock as s, Fragment as y, createElementVNode as a, createCommentVNode as h, unref as t, createTextVNode as C, createVNode as b, renderSlot as f, createBlock as u, withCtx as m, resolveDynamicComponent as _, normalizeClass as $, renderList as A, toDisplayString as x, withKeys as O, mergeProps as z, useTemplateRef as j, ref as N, watch as D, onMounted as V, onUnmounted as Q, normalizeStyle as K, createSlots as S } from "vue";
2
+ import { FontAwesomeIcon as p } from "@fortawesome/vue-fontawesome";
3
+ import { useCollapse as T, debounce as F, Icon as R } from "@phila/phila-ui-core";
4
+ import { CollapsePanel as w } from "@phila/phila-ui-collapse-panel";
5
+ import { Logo as q } from "@phila/phila-ui-logo";
6
+ import './index.css';var W = {
7
7
  prefix: "fas",
8
8
  iconName: "magnifying-glass",
9
9
  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"]
10
- }, ke = ge, xe = {
10
+ }, X = W, Y = {
11
11
  prefix: "fas",
12
12
  iconName: "circle-exclamation",
13
13
  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"]
14
- }, X = {
14
+ }, E = {
15
15
  prefix: "fas",
16
16
  iconName: "xmark",
17
17
  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"]
18
- }, _e = X, J = X, $e = {
18
+ }, Z = E, I = E, J = {
19
19
  prefix: "fas",
20
20
  iconName: "lock",
21
21
  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"]
22
- }, P = {
22
+ }, U = {
23
23
  prefix: "fas",
24
24
  iconName: "caret-up",
25
25
  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"]
26
- }, ee = {
26
+ }, G = {
27
27
  prefix: "fas",
28
28
  iconName: "caret-down",
29
29
  icon: [320, 512, [], "f0d7", "M140.3 376.8c12.6 10.2 31.1 9.5 42.8-2.2l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301.4 192 288.5 192l-256 0c-12.9 0-24.6 7.8-29.6 19.8S.7 237.5 9.9 246.6l128 128 2.4 2.2z"]
30
- }, Ce = {
30
+ }, P = {
31
31
  prefix: "fas",
32
32
  iconName: "building-columns",
33
33
  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"]
34
- }, we = {
34
+ }, ee = {
35
35
  prefix: "fas",
36
36
  iconName: "bars",
37
37
  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"]
38
- }, Be = {
38
+ }, ae = {
39
39
  prefix: "fas",
40
40
  iconName: "circle-info",
41
41
  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"]
42
- }, te = Be;
43
- const Ne = "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", ze = {
42
+ }, ne = ae;
43
+ const te = "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", ie = {
44
44
  id: "trusted-site",
45
- class: "has-background-ghost-gray is-flex is-justify-space-between"
46
- }, Me = { class: "trusted-wrap" }, Ae = { class: "hidden-tablet trusted-toggle is-flex is-align-center" }, Le = ["src"], Te = ["aria-label", "aria-expanded"], Se = {
45
+ class: "is-flex is-justify-space-between"
46
+ }, se = { class: "trusted-wrap" }, oe = { class: "hidden-tablet trusted-toggle is-flex is-align-center" }, le = ["src"], re = ["aria-label", "aria-expanded"], ce = {
47
47
  class: "icon",
48
48
  "aria-hidden": "true"
49
- }, Ee = { class: "hidden-desktop trusted-toggle is-flex is-align-center" }, Ie = ["aria-label", "aria-expanded"], Oe = {
49
+ }, de = { class: "hidden-desktop trusted-toggle is-flex is-align-center" }, ue = ["aria-label", "aria-expanded"], ve = {
50
50
  class: "icon",
51
51
  "aria-hidden": "true"
52
- }, De = {
52
+ }, fe = {
53
53
  key: 0,
54
54
  class: "trusted-translation is-flex is-align-center"
55
- }, Re = ["hidden"], He = { class: "trusted-site-info-content content has-text-body-small is-flex is-justify-space-between" }, Ue = { class: "info-item-wrap is-flex" }, Ge = { class: "info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4" }, je = { class: "trusted-icon is-flex is-flex-column has-text-center" }, Fe = { class: "icon circle-icon p-3 mb-2" }, Ve = { 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" }, Ke = { class: "icon circle-icon p-3 mb-2" }, We = { class: "info-content-close mt-4" }, qe = /* @__PURE__ */ h({
55
+ }, he = ["hidden"], be = { class: "trusted-site-info-content content has-text-body-small is-flex is-justify-space-between" }, me = { class: "info-item-wrap is-flex" }, pe = { class: "info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4" }, ke = { class: "trusted-icon is-flex is-flex-column has-text-center" }, ge = { class: "icon circle-icon p-3 mb-2" }, xe = { 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" }, _e = { class: "icon circle-icon p-3 mb-2" }, $e = { class: "info-content-close mt-4" }, Ce = /* @__PURE__ */ k({
56
56
  __name: "TrustedSite",
57
- setup(t) {
58
- const e = ce(), { isCollapsed: r, onClickToggle: a } = Y({
57
+ setup(e) {
58
+ const l = H(), { isCollapsed: d, onClickToggle: n } = T({
59
59
  id: "trusted-site-info",
60
60
  escapeKeyClose: !0
61
- }), c = k(() => r("trusted-site-info"));
62
- return (d, i) => (o(), u(N, null, [
63
- s("div", ze, [
64
- s("div", Me, [
65
- s("div", Ae, [
66
- s("img", {
67
- src: n(Ne),
61
+ }), v = M(() => d("trusted-site-info"));
62
+ return (r, o) => (s(), c(y, null, [
63
+ a("div", ie, [
64
+ a("div", se, [
65
+ a("div", oe, [
66
+ a("img", {
67
+ src: t(te),
68
68
  alt: "",
69
69
  class: "icon"
70
- }, null, 8, Le),
71
- i[4] || (i[4] = s("div", { class: "content mx-2" }, "An official website of the City of Philadelphia government", -1)),
72
- s("button", {
70
+ }, null, 8, le),
71
+ o[4] || (o[4] = a("div", { class: "content mx-2" }, "An official website of the City of Philadelphia government", -1)),
72
+ a("button", {
73
73
  class: "phila-button is-extra-small",
74
- "aria-label": `${c.value ? "Close" : "Open"} Trusted Site information panel`,
74
+ "aria-label": `${v.value ? "Close" : "Open"} Trusted Site information panel`,
75
75
  "aria-controls": "trusted-site-info",
76
- "aria-expanded": c.value,
77
- onClick: i[0] || (i[0] = //@ts-ignore
78
- (...l) => n(a) && n(a)(...l))
76
+ "aria-expanded": v.value,
77
+ onClick: o[0] || (o[0] = //@ts-ignore
78
+ (...i) => t(n) && t(n)(...i))
79
79
  }, [
80
- i[3] || (i[3] = _(" Here's how you know ", -1)),
81
- s("span", Se, [
82
- p(n($), {
83
- icon: c.value ? n(P) : n(ee)
80
+ o[3] || (o[3] = C(" Here's how you know ", -1)),
81
+ a("span", ce, [
82
+ b(t(p), {
83
+ icon: v.value ? t(U) : t(G)
84
84
  }, null, 8, ["icon"])
85
85
  ])
86
- ], 8, Te)
86
+ ], 8, re)
87
87
  ]),
88
- s("div", Ee, [
89
- s("button", {
88
+ a("div", de, [
89
+ a("button", {
90
90
  class: "phila-button is-extra-small",
91
- "aria-label": `${c.value ? "Close" : "Open"} Trusted Site information panel`,
91
+ "aria-label": `${v.value ? "Close" : "Open"} Trusted Site information panel`,
92
92
  "aria-controls": "trusted-site-info",
93
- "aria-expanded": c.value,
94
- onClick: i[1] || (i[1] = //@ts-ignore
95
- (...l) => n(a) && n(a)(...l))
93
+ "aria-expanded": v.value,
94
+ onClick: o[1] || (o[1] = //@ts-ignore
95
+ (...i) => t(n) && t(n)(...i))
96
96
  }, [
97
- i[5] || (i[5] = _(" An official website ", -1)),
98
- s("span", Oe, [
99
- p(n($), { icon: n(te) }, null, 8, ["icon"])
97
+ o[5] || (o[5] = C(" An official website ", -1)),
98
+ a("span", ve, [
99
+ b(t(p), { icon: t(ne) }, null, 8, ["icon"])
100
100
  ])
101
- ], 8, Ie)
101
+ ], 8, ue)
102
102
  ])
103
103
  ]),
104
- n(e).translation ? (o(), u("div", De, [
105
- f(d.$slots, "translation", {}, void 0, !0)
106
- ])) : b("", !0)
104
+ t(l).translation ? (s(), c("div", fe, [
105
+ f(r.$slots, "translation", {}, void 0, !0)
106
+ ])) : h("", !0)
107
107
  ]),
108
- s("div", {
108
+ a("div", {
109
109
  id: "trusted-site-info",
110
- class: "has-background-secondary px-6",
111
- hidden: !c.value
110
+ class: "px-6",
111
+ hidden: !v.value
112
112
  }, [
113
- s("div", He, [
114
- s("div", Ue, [
115
- s("div", Ge, [
116
- s("div", je, [
117
- s("div", Fe, [
118
- p(n($), { icon: n($e) }, null, 8, ["icon"])
113
+ a("div", be, [
114
+ a("div", me, [
115
+ a("div", pe, [
116
+ a("div", ke, [
117
+ a("span", ge, [
118
+ b(t(p), { icon: t(P) }, null, 8, ["icon"])
119
119
  ]),
120
- i[6] || (i[6] = s("span", { class: "has-text-bold" }, "https://", -1))
120
+ o[6] || (o[6] = a("span", { class: "has-text-bold" }, ".gov", -1))
121
121
  ]),
122
- i[7] || (i[7] = s("div", { class: "trusted-text m-4" }, [
123
- _(" The "),
124
- s("strong", null, "https://"),
125
- _(" in the address bar means your information is encrypted and can not be accessed by anyone else ")
126
- ], -1))
122
+ o[7] || (o[7] = a("div", { class: "trusted-text m-4" }, "Only government entities in the U.S. can end in .gov", -1))
127
123
  ]),
128
- s("div", Ve, [
129
- s("div", Qe, [
130
- s("span", Ke, [
131
- p(n($), { icon: n(Ce) }, null, 8, ["icon"])
124
+ a("div", xe, [
125
+ a("div", ye, [
126
+ a("div", _e, [
127
+ b(t(p), { icon: t(J) }, null, 8, ["icon"])
132
128
  ]),
133
- i[8] || (i[8] = s("span", { class: "has-text-bold" }, ".gov", -1))
129
+ o[8] || (o[8] = a("span", { class: "has-text-bold" }, "https://", -1))
134
130
  ]),
135
- i[9] || (i[9] = s("div", { class: "trusted-text m-4" }, "Only government entities in the U.S. can end in .gov", -1))
131
+ o[9] || (o[9] = a("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))
136
132
  ])
137
133
  ]),
138
- s("div", We, [
139
- s("button", {
134
+ a("div", $e, [
135
+ a("button", {
140
136
  class: "phila-button phila-button--primary icon-button is-extra-small",
141
137
  "aria-label": "Close Trusted Site information panel",
142
- onClick: i[2] || (i[2] = //@ts-ignore
143
- (...l) => n(a) && n(a)(...l))
138
+ onClick: o[2] || (o[2] = //@ts-ignore
139
+ (...i) => t(n) && t(n)(...i))
144
140
  }, [
145
- p(n($), { icon: n(_e) }, null, 8, ["icon"])
141
+ b(t(p), { icon: t(Z) }, null, 8, ["icon"])
146
142
  ])
147
143
  ])
148
144
  ])
149
- ], 8, Re)
145
+ ], 8, he)
150
146
  ], 64));
151
147
  }
152
- }), I = (t, e) => {
153
- const r = t.__vccOpts || t;
154
- for (const [a, c] of e)
155
- r[a] = c;
156
- return r;
157
- }, Ye = /* @__PURE__ */ I(qe, [["__scopeId", "data-v-117bdb56"]]), Ze = ["aria-controls", "aria-expanded", "aria-label", "onClick"], Xe = { class: "icon" }, Je = ["id", "hidden"], Pe = /* @__PURE__ */ h({
148
+ }), B = (e, l) => {
149
+ const d = e.__vccOpts || e;
150
+ for (const [n, v] of l)
151
+ d[n] = v;
152
+ return d;
153
+ }, we = /* @__PURE__ */ B(Ce, [["__scopeId", "data-v-3fc90bb2"]]), Be = ["aria-controls", "aria-expanded", "aria-label", "onClick"], Ae = { class: "icon" }, Ne = ["id", "hidden"], Le = /* @__PURE__ */ k({
158
154
  __name: "NavbarBurger",
159
155
  props: {
160
156
  mobileNav: {},
161
157
  collapseGroup: {}
162
158
  },
163
- setup(t) {
164
- return (e, r) => (o(), m(n(D), {
159
+ setup(e) {
160
+ return (l, d) => (s(), u(t(w), {
165
161
  id: "mobile-nav",
166
- group: t.collapseGroup,
162
+ group: e.collapseGroup,
167
163
  "outside-click-close": "",
168
164
  "escape-key-close": "",
169
165
  "blur-close": "",
170
166
  "open-single": ""
171
167
  }, {
172
- toggle: v((a) => [
173
- s("button", {
174
- class: z(["phila-navbar-burger phila-button icon-button", { "phila-navbar-item-flyout-active": a.open }]),
175
- "aria-controls": a.ariaControls,
176
- "aria-expanded": a.open,
177
- "aria-label": `${a.open ? "Close" : "Open"} mobile navigation panel`,
178
- onClick: a.onClick
168
+ toggle: m((n) => [
169
+ a("button", {
170
+ class: $(["phila-navbar-burger phila-button icon-button", { "phila-navbar-item-flyout-active": n.open }]),
171
+ "aria-controls": n.ariaControls,
172
+ "aria-expanded": n.open,
173
+ "aria-label": `${n.open ? "Close" : "Open"} mobile navigation panel`,
174
+ onClick: n.onClick
179
175
  }, [
180
- s("span", Xe, [
181
- p(n($), {
182
- icon: a.open ? n(J) : n(we)
176
+ a("span", Ae, [
177
+ b(t(p), {
178
+ icon: n.open ? t(I) : t(ee)
183
179
  }, null, 8, ["icon"])
184
180
  ])
185
- ], 10, Ze)
181
+ ], 10, Be)
186
182
  ]),
187
- default: v((a) => [
188
- s("div", {
189
- id: a.id,
183
+ default: m((n) => [
184
+ a("div", {
185
+ id: n.id,
190
186
  class: "phila-mobile-nav",
191
- hidden: !a.open
187
+ hidden: !n.open
192
188
  }, [
193
- f(e.$slots, "mobile-nav", {}, () => [
194
- (o(), m(S(t.mobileNav)))
189
+ f(l.$slots, "mobile-nav", {}, () => [
190
+ (s(), u(_(e.mobileNav)))
195
191
  ])
196
- ], 8, Je)
192
+ ], 8, Ne)
197
193
  ]),
198
194
  _: 3
199
195
  }, 8, ["group"]));
200
196
  }
201
- }), et = ["href"], tt = ["href", "aria-controls", "aria-expanded", "onKeypress", "onTouchend", "onClick"], at = ["id", "hidden"], it = {
197
+ }), Me = ["href"], ze = ["href", "aria-controls", "aria-expanded", "onKeypress", "onTouchend", "onClick"], Se = ["id", "hidden"], Te = {
202
198
  key: 0,
203
199
  class: "content nav-flyout has-background-ghost-gray px-6 py-4",
204
200
  tabindex: "-1"
205
- }, nt = {
201
+ }, Ee = {
206
202
  class: "is-flex is-flex-column is-flex-wrap-wrap",
207
203
  style: { gap: "var(--spacing-4xl)" }
208
- }, st = ["href"], ot = /* @__PURE__ */ h({
204
+ }, Ie = ["href"], Ue = /* @__PURE__ */ k({
209
205
  __name: "NavbarLinks",
210
206
  props: {
211
207
  links: {},
212
208
  collapseGroup: {}
213
209
  },
214
- setup(t) {
215
- const e = (a) => !!(a.subLinks || a.subNav), r = (a) => `main-nav-${a.text.split(" ").join("-").toLowerCase().replace(/[^a-z0-9-]/g, "")}`;
216
- return (a, c) => (o(!0), u(N, null, j(t.links, (d, i) => (o(), u(N, null, [
217
- e(d) ? (o(), m(n(D), {
218
- id: r(d),
219
- key: `collapse-${i}`,
220
- group: t.collapseGroup,
210
+ setup(e) {
211
+ const l = (n) => !!(n.subLinks || n.subNav), d = (n) => `main-nav-${n.text.split(" ").join("-").toLowerCase().replace(/[^a-z0-9-]/g, "")}`;
212
+ return (n, v) => (s(!0), c(y, null, A(e.links, (r, o) => (s(), c(y, null, [
213
+ l(r) ? (s(), u(t(w), {
214
+ id: d(r),
215
+ key: `collapse-${o}`,
216
+ group: e.collapseGroup,
221
217
  "outside-click-close": "",
222
218
  "escape-key-close": "",
223
219
  "blur-close": "",
@@ -225,61 +221,61 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
225
221
  "open-single": "",
226
222
  class: "phila-navbar-link-list-item"
227
223
  }, {
228
- toggle: v((l) => [
229
- s("a", {
230
- href: d.href,
231
- class: z(["phila-navbar-link px-4", { "phila-navbar-item-flyout-active": l.open }]),
232
- "aria-controls": l.ariaControls,
233
- "aria-expanded": l.open,
224
+ toggle: m((i) => [
225
+ a("a", {
226
+ href: r.href,
227
+ class: $(["phila-navbar-link px-4", { "phila-navbar-item-flyout-active": i.open }]),
228
+ "aria-controls": i.ariaControls,
229
+ "aria-expanded": i.open,
234
230
  tabindex: "0",
235
- onKeypress: de(l.onClick, ["enter"]),
236
- onTouchend: l.onClick,
237
- onClick: l.onClick
231
+ onKeypress: O(i.onClick, ["enter"]),
232
+ onTouchend: i.onClick,
233
+ onClick: i.onClick
238
234
  }, [
239
- _(g(d.text) + " ", 1),
240
- p(n($), {
235
+ C(x(r.text) + " ", 1),
236
+ b(t(p), {
241
237
  class: "ml-1",
242
- icon: l.open ? n(P) : n(ee)
238
+ icon: i.open ? t(U) : t(G)
243
239
  }, null, 8, ["icon"])
244
- ], 42, tt)
240
+ ], 42, ze)
245
241
  ]),
246
- default: v((l) => [
247
- (o(), u("div", {
248
- id: l.id,
249
- key: d.text,
250
- hidden: !l.open
242
+ default: m((i) => [
243
+ (s(), c("div", {
244
+ id: i.id,
245
+ key: r.text,
246
+ hidden: !i.open
251
247
  }, [
252
- d.subLinks ? (o(), u("div", it, [
253
- s("ul", nt, [
254
- (o(!0), u(N, null, j(d.subLinks, (x) => (o(), u("li", {
255
- key: x.text,
248
+ r.subLinks ? (s(), c("div", Te, [
249
+ a("ul", Ee, [
250
+ (s(!0), c(y, null, A(r.subLinks, (g) => (s(), c("li", {
251
+ key: g.text,
256
252
  class: "sub-nav-link is-flex is-align-center",
257
253
  style: { width: "150px" }
258
254
  }, [
259
- s("a", {
260
- href: x.href,
255
+ a("a", {
256
+ href: g.href,
261
257
  class: "has-text-link has-text-weight-medium",
262
258
  tabindex: "0"
263
- }, g(x.text), 9, st)
259
+ }, x(g.text), 9, Ie)
264
260
  ]))), 128))
265
261
  ])
266
- ])) : (o(), m(S(d.subNav), { key: 1 }))
267
- ], 8, at))
262
+ ])) : (s(), u(_(r.subNav), { key: 1 }))
263
+ ], 8, Se))
268
264
  ]),
269
265
  _: 2
270
- }, 1032, ["id", "group"])) : (o(), u("div", {
271
- key: `link-${i}`,
266
+ }, 1032, ["id", "group"])) : (s(), c("div", {
267
+ key: `link-${o}`,
272
268
  class: "phila-navbar-link-list-item"
273
269
  }, [
274
- s("a", {
275
- href: d.href,
270
+ a("a", {
271
+ href: r.href,
276
272
  class: "phila-navbar-link px-4",
277
273
  tabindex: "0"
278
- }, g(d.text), 9, et)
274
+ }, x(r.text), 9, Me)
279
275
  ]))
280
276
  ], 64))), 256));
281
277
  }
282
- }), lt = /* @__PURE__ */ h({
278
+ }), Ge = /* @__PURE__ */ k({
283
279
  __name: "NavbarBrandLogo",
284
280
  props: {
285
281
  logo: {},
@@ -287,411 +283,72 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
287
283
  href: {},
288
284
  altText: {}
289
285
  },
290
- setup(t) {
291
- const e = t, r = k(() => ({
286
+ setup(e) {
287
+ const l = e, d = M(() => ({
292
288
  variant: "city",
293
289
  layout: "stacked",
294
290
  colorScheme: "on-primary",
295
- href: e.href,
296
- ...e.logo
291
+ href: l.href,
292
+ ...l.logo
297
293
  }));
298
- return (a, c) => (o(), m(n(ye), C(r.value, { class: "phila-navbar-logo" }), null, 16));
294
+ return (n, v) => (s(), u(t(q), z(d.value, { class: "phila-navbar-logo" }), null, 16));
299
295
  }
300
- }), rt = /* @__PURE__ */ I(lt, [["__scopeId", "data-v-3011c249"]]), ct = { class: "pr-4" }, dt = ["aria-controls", "aria-expanded", "aria-label", "onClick"], ut = { class: "icon" }, ft = ["id", "hidden"], vt = /* @__PURE__ */ h({
296
+ }), He = /* @__PURE__ */ B(Ge, [["__scopeId", "data-v-3011c249"]]), Oe = { class: "pr-4" }, je = ["aria-controls", "aria-expanded", "aria-label", "onClick"], De = { class: "icon" }, Ve = ["id", "hidden"], Qe = /* @__PURE__ */ k({
301
297
  __name: "NavbarSearch",
302
298
  props: {
303
299
  search: {},
304
300
  collapseGroup: {}
305
301
  },
306
- setup(t) {
307
- return (e, r) => (o(), m(n(D), {
302
+ setup(e) {
303
+ return (l, d) => (s(), u(t(w), {
308
304
  id: "navbar-search",
309
- group: t.collapseGroup,
305
+ group: e.collapseGroup,
310
306
  "outside-click-close": "",
311
307
  "escape-key-close": "",
312
308
  "blur-close": "",
313
309
  "open-single": ""
314
310
  }, {
315
- toggle: v((a) => [
316
- s("div", ct, [
317
- s("button", {
318
- class: z(["phila-button phila-button--primary icon-button is-small", { "phila-navbar-item-flyout-active": a.open }]),
319
- "aria-controls": a.ariaControls,
320
- "aria-expanded": a.open,
321
- "aria-label": `${a.open ? "Close" : "Open"} search panel`,
322
- onClick: a.onClick
311
+ toggle: m((n) => [
312
+ a("div", Oe, [
313
+ a("button", {
314
+ class: $(["phila-button phila-button--primary icon-button is-small", { "phila-navbar-item-flyout-active": n.open }]),
315
+ "aria-controls": n.ariaControls,
316
+ "aria-expanded": n.open,
317
+ "aria-label": `${n.open ? "Close" : "Open"} search panel`,
318
+ onClick: n.onClick
323
319
  }, [
324
- s("span", ut, [
325
- p(n($), {
326
- icon: a.open ? n(J) : n(ke)
320
+ a("span", De, [
321
+ b(t(p), {
322
+ icon: n.open ? t(I) : t(X)
327
323
  }, null, 8, ["icon"])
328
324
  ])
329
- ], 10, dt)
325
+ ], 10, je)
330
326
  ])
331
327
  ]),
332
- default: v((a) => [
333
- s("div", {
334
- id: a.id,
328
+ default: m((n) => [
329
+ a("div", {
330
+ id: n.id,
335
331
  class: "nav-flyout is-12",
336
- hidden: !a.open
332
+ hidden: !n.open
337
333
  }, [
338
- f(e.$slots, "default", {}, () => [
339
- t.search && a.open ? (o(), m(S(t.search), { key: 0 })) : b("", !0)
334
+ f(l.$slots, "default", {}, () => [
335
+ e.search && n.open ? (s(), u(_(e.search), { key: 0 })) : h("", !0)
340
336
  ])
341
- ], 8, ft)
337
+ ], 8, Ve)
342
338
  ]),
343
339
  _: 3
344
340
  }, 8, ["group"]));
345
341
  }
346
- }), mt = ["disabled"], F = /* @__PURE__ */ h({
347
- inheritAttrs: !1,
348
- __name: "PhlButton",
349
- props: {
350
- href: {},
351
- to: {},
352
- target: {},
353
- rel: {},
354
- disabled: { type: Boolean, default: !1 },
355
- clickTarget: {},
356
- variant: { default: "primary" },
357
- size: { default: "medium" },
358
- iconOnly: { type: Boolean, default: !1 },
359
- iconRight: { type: Boolean },
360
- text: {},
361
- className: {},
362
- iconDefinition: {},
363
- iconClass: {},
364
- src: {},
365
- svgRaw: {}
366
- },
367
- setup(t) {
368
- const e = t, r = (i) => "href" in i && i.href !== void 0 || "to" in i && i.to !== void 0, a = k(() => E(
369
- "phila-button",
370
- `phila-button--${e.variant}`,
371
- e.size && `is-${e.size}`,
372
- e.iconOnly && "icon-button",
373
- e.iconOnly && e.variant === "standard" && "icon-button--standard",
374
- e.className
375
- )), c = k(() => r(e) ? "to" in e && e.to !== void 0 ? {
376
- to: e.to,
377
- disabled: e.disabled,
378
- className: a.value
379
- } : {
380
- href: e.href,
381
- target: e.target,
382
- rel: e.rel,
383
- disabled: e.disabled,
384
- className: a.value
385
- } : {}), d = k(
386
- () => ({
387
- iconDefinition: e.iconDefinition,
388
- iconClass: e.iconClass,
389
- src: e.src,
390
- iconRight: e.iconRight,
391
- iconOnly: e.iconOnly,
392
- text: e.text,
393
- size: e.size
394
- })
395
- );
396
- return (i, l) => r(e) ? (o(), m(n(Z), C({ key: 0 }, { ...c.value, ...i.$attrs }, { role: "button" }), {
397
- default: v(() => [
398
- p(n(T), A(L(d.value)), {
399
- default: v(() => [
400
- f(i.$slots, "default", {}, () => [
401
- _(g(e.text), 1)
402
- ])
403
- ]),
404
- _: 3
405
- }, 16)
406
- ]),
407
- _: 3
408
- }, 16)) : (o(), u("button", C({
409
- key: 1,
410
- type: "button",
411
- disabled: e.disabled,
412
- class: a.value
413
- }, i.$attrs), [
414
- p(n(T), A(L(d.value)), {
415
- default: v(() => [
416
- f(i.$slots, "default", {}, () => [
417
- _(g(e.text), 1)
418
- ])
419
- ]),
420
- _: 3
421
- }, 16)
422
- ], 16, mt));
423
- }
424
- });
425
- var V = {
426
- prefix: "fas",
427
- iconName: "xmark",
428
- 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"]
429
- };
430
- const bt = ["id"], pt = {
431
- key: 0,
432
- class: "tooltip__tail",
433
- "aria-hidden": "true"
434
- }, ht = {
435
- key: 1,
436
- class: "tooltip__plain-row has-text-body-small"
437
- }, yt = {
438
- key: 0,
439
- class: "tooltip__title-row"
440
- }, gt = { key: 0 }, kt = /* @__PURE__ */ h({
441
- __name: "TooltipBubble",
442
- props: {
443
- id: {},
444
- type: { default: "plain" },
445
- color: { default: "default" },
446
- tail: { type: Boolean, default: !1 },
447
- placement: { default: "top-center" },
448
- title: {},
449
- dismissable: { type: Boolean, default: !1 },
450
- className: {}
451
- },
452
- emits: ["dismiss"],
453
- setup(t) {
454
- const e = t, r = k(
455
- () => E(
456
- "tooltip",
457
- "content",
458
- "resets-link-colors",
459
- `tooltip--${e.type}`,
460
- `tooltip--${e.color}`,
461
- e.tail && `tooltip--${e.placement}`,
462
- e.className
463
- )
464
- );
465
- return (a, c) => (o(), u("div", {
466
- id: t.id,
467
- class: z(r.value),
468
- role: "tooltip"
469
- }, [
470
- t.tail ? (o(), u("div", pt)) : b("", !0),
471
- t.type === "plain" ? (o(), u("div", ht, [
472
- f(a.$slots, "default", {}, void 0, !0),
473
- t.dismissable ? (o(), m(n(F), {
474
- key: 0,
475
- class: "tooltip__dismiss",
476
- variant: "standard",
477
- size: "extra-small",
478
- "icon-only": !0,
479
- "icon-definition": n(V),
480
- "aria-label": "Dismiss tooltip",
481
- onClick: c[0] || (c[0] = (d) => a.$emit("dismiss"))
482
- }, null, 8, ["icon-definition"])) : b("", !0)
483
- ])) : (o(), u(N, { key: 2 }, [
484
- t.title || t.dismissable ? (o(), u("div", yt, [
485
- t.title ? (o(), u("h6", gt, g(t.title), 1)) : b("", !0),
486
- t.dismissable ? (o(), m(n(F), {
487
- key: 1,
488
- class: "tooltip__dismiss",
489
- variant: "standard",
490
- size: "extra-small",
491
- "icon-only": !0,
492
- "icon-definition": n(V),
493
- "aria-label": "Dismiss tooltip",
494
- onClick: c[1] || (c[1] = (d) => a.$emit("dismiss"))
495
- }, null, 8, ["icon-definition"])) : b("", !0)
496
- ])) : b("", !0),
497
- f(a.$slots, "default", {}, void 0, !0)
498
- ], 64))
499
- ], 10, bt));
500
- }
501
- }), ae = (t, e) => {
502
- const r = t.__vccOpts || t;
503
- for (const [a, c] of e)
504
- r[a] = c;
505
- return r;
506
- }, xt = /* @__PURE__ */ ae(kt, [["__scopeId", "data-v-0155bbdd"]]), _t = /* @__PURE__ */ h({
507
- __name: "Tooltip",
508
- props: {
509
- trigger: { default: "hover" },
510
- type: { default: "plain" },
511
- color: { default: "default" },
512
- tail: { type: Boolean, default: !1 },
513
- placement: { default: "auto" },
514
- title: {},
515
- dismissable: { type: Boolean },
516
- className: {}
517
- },
518
- setup(t) {
519
- const e = t, r = ue(), a = B(!1), c = B(null), d = B(null), i = B("top-center"), l = () => {
520
- const y = c.value?.getBoundingClientRect();
521
- if (!y) return "top-center";
522
- const { innerWidth: M, innerHeight: se } = window, H = y.top, oe = se - y.bottom, U = d.value?.firstElementChild?.getBoundingClientRect().height ?? 0, le = (U > 0 ? H >= U : H >= oe) ? "top" : "bottom", G = y.left + y.width / 2, re = G < M / 3 ? "left" : G > M * 2 / 3 ? "right" : "center";
523
- return `${le}-${re}`;
524
- }, x = (y) => {
525
- y.key === "Escape" && w();
526
- }, R = (y) => {
527
- c.value && !c.value.contains(y.target) && w();
528
- }, O = () => {
529
- e.placement === "auto" ? i.value = l() : i.value = e.placement, a.value = !0, document.addEventListener("keydown", x), e.trigger === "click" && document.addEventListener("click", R);
530
- }, w = () => {
531
- a.value = !1, document.removeEventListener("keydown", x), document.removeEventListener("click", R);
532
- }, ie = () => {
533
- a.value ? w() : O();
534
- };
535
- K(w);
536
- const ne = k(() => ({
537
- type: e.type,
538
- color: e.color,
539
- tail: e.tail,
540
- placement: i.value,
541
- title: e.title,
542
- dismissable: e.dismissable
543
- }));
544
- return (y, M) => (o(), u("span", C(
545
- {
546
- ref_key: "wrapperEl",
547
- ref: c,
548
- class: n(E)("tooltip-trigger", e.className)
549
- },
550
- t.trigger === "click" ? { onClick: ie } : { onMouseenter: O, onMouseleave: w, onFocusin: O, onFocusout: w }
551
- ), [
552
- f(y.$slots, "default", { tooltipId: n(r) }, void 0, !0),
553
- s("span", {
554
- ref_key: "positionerEl",
555
- ref: d,
556
- class: z(["tooltip-trigger__positioner", `tooltip-trigger__positioner--${i.value}`]),
557
- style: W({
558
- visibility: a.value ? "visible" : "hidden",
559
- "--positioner-gap": t.tail ? "var(--spacing-l)" : "0.5rem"
560
- }),
561
- onClick: M[0] || (M[0] = fe(() => {
562
- }, ["stop"]))
563
- }, [
564
- p(xt, C(ne.value, {
565
- id: n(r),
566
- onDismiss: w
567
- }), {
568
- default: v(() => [
569
- f(y.$slots, "body", {}, void 0, !0)
570
- ]),
571
- _: 3
572
- }, 16, ["id"])
573
- ], 6)
574
- ], 16));
575
- }
576
- }), $t = /* @__PURE__ */ ae(_t, [["__scopeId", "data-v-5dcd06cf"]]), Ct = ["disabled"], wt = /* @__PURE__ */ h({
577
- inheritAttrs: !1,
578
- __name: "PhlButton",
579
- props: {
580
- href: {},
581
- to: {},
582
- target: {},
583
- rel: {},
584
- disabled: { type: Boolean, default: !1 },
585
- clickTarget: {},
586
- variant: { default: "primary" },
587
- size: { default: "medium" },
588
- iconOnly: { type: Boolean, default: !1 },
589
- iconRight: { type: Boolean },
590
- text: {},
591
- className: {},
592
- iconDefinition: {},
593
- iconClass: {},
594
- src: {},
595
- svgRaw: {}
596
- },
597
- setup(t) {
598
- const e = t, r = (i) => "href" in i && i.href !== void 0 || "to" in i && i.to !== void 0, a = k(() => E(
599
- "phila-button",
600
- `phila-button--${e.variant}`,
601
- e.size && `is-${e.size}`,
602
- e.iconOnly && "icon-button",
603
- e.iconOnly && e.variant === "standard" && "icon-button--standard",
604
- e.className
605
- )), c = k(() => r(e) ? "to" in e && e.to !== void 0 ? {
606
- to: e.to,
607
- disabled: e.disabled,
608
- className: a.value
609
- } : {
610
- href: e.href,
611
- target: e.target,
612
- rel: e.rel,
613
- disabled: e.disabled,
614
- className: a.value
615
- } : {}), d = k(
616
- () => ({
617
- iconDefinition: e.iconDefinition,
618
- iconClass: e.iconClass,
619
- src: e.src,
620
- iconRight: e.iconRight,
621
- iconOnly: e.iconOnly,
622
- text: e.text,
623
- size: e.size
624
- })
625
- );
626
- return (i, l) => r(e) ? (o(), m(n(Z), C({ key: 0 }, { ...c.value, ...i.$attrs }, { role: "button" }), {
627
- default: v(() => [
628
- p(n(T), A(L(d.value)), {
629
- default: v(() => [
630
- f(i.$slots, "default", {}, () => [
631
- _(g(e.text), 1)
632
- ])
633
- ]),
634
- _: 3
635
- }, 16)
636
- ]),
637
- _: 3
638
- }, 16)) : (o(), u("button", C({
639
- key: 1,
640
- type: "button",
641
- disabled: e.disabled,
642
- class: a.value
643
- }, i.$attrs), [
644
- p(n(T), A(L(d.value)), {
645
- default: v(() => [
646
- f(i.$slots, "default", {}, () => [
647
- _(g(e.text), 1)
648
- ])
649
- ]),
650
- _: 3
651
- }, 16)
652
- ], 16, Ct));
653
- }
654
- }), Bt = { class: "navbar-info" }, Nt = { class: "has-text-body-small" }, zt = /* @__PURE__ */ h({
655
- __name: "NavbarInfo",
656
- props: {
657
- infoTitle: {},
658
- infoMessage: {}
659
- },
660
- setup(t) {
661
- return (e, r) => (o(), u("div", Bt, [
662
- p(n($t), {
663
- type: "rich",
664
- title: t.infoTitle,
665
- trigger: "click",
666
- dismissable: !0
667
- }, {
668
- default: v(({ tooltipId: a }) => [
669
- p(n(wt), {
670
- class: "navbar-info__trigger",
671
- variant: "standard",
672
- size: "small",
673
- "icon-only": !0,
674
- "icon-definition": n(te),
675
- "aria-label": "More information",
676
- "aria-describedby": a
677
- }, null, 8, ["icon-definition", "aria-describedby"])
678
- ]),
679
- body: v(() => [
680
- f(e.$slots, "default", {}, () => [
681
- s("div", Nt, g(t.infoMessage), 1)
682
- ], !0)
683
- ]),
684
- _: 3
685
- }, 8, ["title"])
686
- ]));
687
- }
688
- }), Mt = /* @__PURE__ */ I(zt, [["__scopeId", "data-v-56b79838"]]), At = { class: "phila-navbar-brand" }, Lt = {
342
+ }), Ke = { class: "phila-navbar-brand" }, Fe = {
689
343
  key: 0,
690
344
  class: "phila-navbar-item phila-navbar-brand-link hidden-tablet"
691
- }, Tt = {
345
+ }, Re = {
692
346
  key: 0,
693
347
  class: "content"
694
- }, St = ["href"], Et = { class: "phila-navbar-item phila-navbar-list is-flex is-align-center is-justify-space-between content has-text-label-default hidden-tablet" }, It = { class: "phila-navbar-search" }, Q = "5rem", Ot = /* @__PURE__ */ h({
348
+ }, qe = ["href"], We = { class: "phila-navbar-item phila-navbar-list is-flex is-align-center is-justify-space-between content has-text-label-default hidden-tablet" }, Xe = { class: "phila-navbar-search" }, Ye = {
349
+ key: 0,
350
+ class: "phila-navbar-end"
351
+ }, L = "5rem", Ze = /* @__PURE__ */ k({
695
352
  __name: "index",
696
353
  props: {
697
354
  id: {},
@@ -700,112 +357,103 @@ const bt = ["id"], pt = {
700
357
  mobileNav: {},
701
358
  collapseGroup: {},
702
359
  search: {},
703
- links: { default: () => [{ text: "Home", href: "#" }] },
704
- infoTitle: {},
705
- infoMessage: {}
360
+ links: { default: () => [{ text: "Home", href: "#" }] }
706
361
  },
707
- setup(t) {
708
- const e = t, { state: r } = Y(), a = ve("navBarElement"), c = B(Q), d = B(0), i = pe(() => {
709
- const l = (a.value?.offsetTop || 0) + (a.value?.offsetHeight || 0), x = typeof window < "u" ? window.innerWidth : 1024;
710
- c.value = !e.sticky || x < 1024 ? l + "px" : Q, d.value = l;
362
+ setup(e) {
363
+ const l = e, { state: d } = T(), n = j("navBarElement"), v = N(L), r = N(0), o = F(() => {
364
+ const i = (n.value?.offsetTop || 0) + (n.value?.offsetHeight || 0), g = typeof window < "u" ? window.innerWidth : 1024;
365
+ v.value = !l.sticky || g < 1024 ? i + "px" : L, r.value = i;
711
366
  }, 100);
712
- return me(() => r.value, i, { deep: !0, immediate: !0 }), be(() => {
713
- window.addEventListener("resize", i);
714
- }), K(() => {
715
- window.removeEventListener("resize", i);
716
- }), (l, x) => (o(), u("nav", {
367
+ return D(() => d.value, o, { deep: !0, immediate: !0 }), V(() => {
368
+ window.addEventListener("resize", o);
369
+ }), Q(() => {
370
+ window.removeEventListener("resize", o);
371
+ }), (i, g) => (s(), c("nav", {
717
372
  ref_key: "navBarElement",
718
- ref: a,
719
- class: z(["phila-navbar has-background-primary", { "is-sticky-desktop": t.sticky }]),
373
+ ref: n,
374
+ class: $(["phila-navbar has-links-on-primary", { "is-sticky-desktop": e.sticky }]),
720
375
  "aria-label": "Main navigation",
721
- style: W(`--nav-height:${c.value};--nav-bottom:${d.value}px`)
376
+ style: K(`--nav-height:${v.value};--nav-bottom:${r.value}px`)
722
377
  }, [
723
- f(l.$slots, "navbar-burger", {}, () => [
724
- t.mobileNav || l.$slots["mobile-nav"] ? (o(), m(Pe, {
378
+ f(i.$slots, "navbar-burger", {}, () => [
379
+ e.mobileNav || i.$slots["mobile-nav"] ? (s(), u(Le, {
725
380
  key: 0,
726
- "mobile-nav": t.mobileNav,
727
- "collapse-group": t.id
728
- }, q({ _: 2 }, [
729
- l.$slots["mobile-nav"] ? {
381
+ "mobile-nav": e.mobileNav,
382
+ "collapse-group": e.id
383
+ }, S({ _: 2 }, [
384
+ i.$slots["mobile-nav"] ? {
730
385
  name: "mobile-nav",
731
- fn: v(() => [
732
- f(l.$slots, "mobile-nav", {}, void 0, !0)
386
+ fn: m(() => [
387
+ f(i.$slots, "mobile-nav", {}, void 0, !0)
733
388
  ]),
734
389
  key: "0"
735
390
  } : void 0
736
- ]), 1032, ["mobile-nav", "collapse-group"])) : b("", !0)
391
+ ]), 1032, ["mobile-nav", "collapse-group"])) : h("", !0)
737
392
  ], !0),
738
- s("div", At, [
739
- f(l.$slots, "navbar-logo", {}, () => [
740
- t.navbarBrand?.brandingImage ? (o(), m(rt, C({ key: 0 }, t.navbarBrand.brandingImage, {
741
- logo: t.navbarBrand?.logo
742
- }), null, 16, ["logo"])) : b("", !0)
393
+ a("div", Ke, [
394
+ f(i.$slots, "navbar-logo", {}, () => [
395
+ e.navbarBrand?.brandingImage ? (s(), u(He, z({ key: 0 }, e.navbarBrand.brandingImage, {
396
+ logo: e.navbarBrand?.logo
397
+ }), null, 16, ["logo"])) : h("", !0)
743
398
  ], !0),
744
- l.$slots["navbar-brand-link"] || t.navbarBrand?.brandingLink ? (o(), u("div", Lt, [
745
- f(l.$slots, "navbar-brand-link", {}, () => [
746
- t.navbarBrand?.brandingLink ? (o(), u("div", Tt, [
747
- s("a", {
399
+ i.$slots["navbar-brand-link"] || e.navbarBrand?.brandingLink ? (s(), c("div", Fe, [
400
+ f(i.$slots, "navbar-brand-link", {}, () => [
401
+ e.navbarBrand?.brandingLink ? (s(), c("div", Re, [
402
+ a("a", {
748
403
  tabindex: "0",
749
- href: t.navbarBrand.brandingLink.href,
404
+ href: e.navbarBrand.brandingLink.href,
750
405
  class: "has-text-underline"
751
- }, g(t.navbarBrand.brandingLink.text), 9, St)
752
- ])) : b("", !0)
406
+ }, x(e.navbarBrand.brandingLink.text), 9, qe)
407
+ ])) : h("", !0)
753
408
  ], !0)
754
- ])) : b("", !0),
755
- t.infoTitle || t.infoMessage || l.$slots["info-body"] ? (o(), m(Mt, {
756
- key: 1,
757
- "info-title": t.infoTitle,
758
- "info-message": t.infoMessage
759
- }, {
760
- default: v(() => [
761
- l.$slots["info-body"] ? f(l.$slots, "info-body", { key: 0 }, void 0, !0) : b("", !0)
762
- ]),
763
- _: 3
764
- }, 8, ["info-title", "info-message"])) : b("", !0)
409
+ ])) : h("", !0)
765
410
  ]),
766
- s("div", Et, [
767
- f(l.$slots, "navbar-links", {}, () => [
768
- t.links ? (o(), m(ot, {
411
+ a("div", We, [
412
+ f(i.$slots, "navbar-links", {}, () => [
413
+ e.links ? (s(), u(Ue, {
769
414
  key: 0,
770
- links: t.links,
771
- "collapse-group": t.id
772
- }, null, 8, ["links", "collapse-group"])) : b("", !0)
415
+ links: e.links,
416
+ "collapse-group": e.id
417
+ }, null, 8, ["links", "collapse-group"])) : h("", !0)
773
418
  ], !0)
774
419
  ]),
775
- s("div", It, [
776
- f(l.$slots, "navbar-search", {}, () => [
777
- t.search ? (o(), m(vt, {
420
+ a("div", Xe, [
421
+ f(i.$slots, "navbar-search", {}, () => [
422
+ e.search ? (s(), u(Qe, {
778
423
  key: 0,
779
- search: t.search,
780
- "collapse-group": t.id
781
- }, null, 8, ["search", "collapse-group"])) : b("", !0)
424
+ search: e.search,
425
+ "collapse-group": e.id
426
+ }, null, 8, ["search", "collapse-group"])) : h("", !0)
782
427
  ], !0)
783
- ])
428
+ ]),
429
+ i.$slots["navbar-end"] ? (s(), c("div", Ye, [
430
+ f(i.$slots, "navbar-end", {}, void 0, !0)
431
+ ])) : h("", !0)
784
432
  ], 6));
785
433
  }
786
- }), Dt = /* @__PURE__ */ I(Ot, [["__scopeId", "data-v-604219b3"]]), Rt = { class: "site-wide-alert content" }, Ht = { class: "alert-content" }, Ut = { class: "content-text" }, Gt = { class: "title" }, jt = { class: "body" }, Ft = /* @__PURE__ */ h({
434
+ }), Je = /* @__PURE__ */ B(Ze, [["__scopeId", "data-v-caf52a6d"]]), Pe = { class: "site-wide-alert content" }, ea = { class: "alert-content" }, aa = { class: "content-text" }, na = { class: "title" }, ta = { class: "body" }, ia = /* @__PURE__ */ k({
787
435
  __name: "AlertBanner",
788
436
  props: {
789
437
  bannerTitle: {},
790
438
  bannerMessage: {}
791
439
  },
792
- setup(t) {
793
- const e = t;
794
- return (r, a) => (o(), u("div", Rt, [
795
- s("div", Ht, [
796
- p(n(he), {
797
- "icon-definition": n(xe),
440
+ setup(e) {
441
+ const l = e;
442
+ return (d, n) => (s(), c("div", Pe, [
443
+ a("div", ea, [
444
+ b(t(R), {
445
+ "icon-definition": t(Y),
798
446
  size: "small",
799
447
  decorative: !0
800
448
  }, null, 8, ["icon-definition"]),
801
- s("div", Ut, [
802
- s("h6", Gt, g(e.bannerTitle), 1),
803
- s("div", jt, g(e.bannerMessage), 1)
449
+ a("div", aa, [
450
+ a("h6", na, x(l.bannerTitle), 1),
451
+ a("div", ta, x(l.bannerMessage), 1)
804
452
  ])
805
453
  ])
806
454
  ]));
807
455
  }
808
- }), Yt = /* @__PURE__ */ h({
456
+ }), da = /* @__PURE__ */ k({
809
457
  __name: "AppHeader",
810
458
  props: {
811
459
  showTrustedSite: { type: Boolean, default: !0 },
@@ -818,54 +466,50 @@ const bt = ["id"], pt = {
818
466
  collapseGroup: {},
819
467
  search: { default: void 0 },
820
468
  links: { default: void 0 },
821
- infoTitle: { default: void 0 },
822
- infoMessage: { default: void 0 },
823
469
  bannerTitle: { default: void 0 },
824
470
  bannerMessage: { default: void 0 }
825
471
  },
826
- setup(t) {
827
- return (e, r) => (o(), u(N, null, [
828
- t.showTrustedSite ? (o(), m(Ye, { key: 0 }, {
829
- translation: v(() => [
830
- f(e.$slots, "translations", {}, () => [
831
- t.translations ? (o(), m(S(t.translations), { key: 0 })) : b("", !0)
472
+ setup(e) {
473
+ return (l, d) => (s(), c(y, null, [
474
+ e.showTrustedSite ? (s(), u(we, { key: 0 }, {
475
+ translation: m(() => [
476
+ f(l.$slots, "translations", {}, () => [
477
+ e.translations ? (s(), u(_(e.translations), { key: 0 })) : h("", !0)
832
478
  ])
833
479
  ]),
834
480
  _: 3
835
- })) : b("", !0),
836
- p(Dt, {
837
- id: t.id,
838
- sticky: t.sticky,
839
- "mobile-nav": t.mobileNav,
840
- links: t.links,
841
- "navbar-brand": t.navbarBrand,
842
- search: t.search,
843
- "info-title": t.infoTitle,
844
- "info-message": t.infoMessage
845
- }, q({ _: 2 }, [
846
- e.$slots["info-body"] ? {
847
- name: "info-body",
848
- fn: v(() => [
849
- f(e.$slots, "info-body")
481
+ })) : h("", !0),
482
+ b(Je, {
483
+ id: e.id,
484
+ sticky: e.sticky,
485
+ "mobile-nav": e.mobileNav,
486
+ links: e.links,
487
+ "navbar-brand": e.navbarBrand,
488
+ search: e.search
489
+ }, S({ _: 2 }, [
490
+ l.$slots["mobile-nav"] ? {
491
+ name: "mobile-nav",
492
+ fn: m(() => [
493
+ f(l.$slots, "mobile-nav")
850
494
  ]),
851
495
  key: "0"
852
496
  } : void 0,
853
- e.$slots["mobile-nav"] ? {
854
- name: "mobile-nav",
855
- fn: v(() => [
856
- f(e.$slots, "mobile-nav")
497
+ l.$slots["navbar-end"] ? {
498
+ name: "navbar-end",
499
+ fn: m(() => [
500
+ f(l.$slots, "navbar-end")
857
501
  ]),
858
502
  key: "1"
859
503
  } : void 0
860
- ]), 1032, ["id", "sticky", "mobile-nav", "links", "navbar-brand", "search", "info-title", "info-message"]),
861
- t.bannerTitle || t.bannerMessage ? (o(), m(Ft, {
504
+ ]), 1032, ["id", "sticky", "mobile-nav", "links", "navbar-brand", "search"]),
505
+ e.bannerTitle || e.bannerMessage ? (s(), u(ia, {
862
506
  key: 1,
863
- "banner-title": t.bannerTitle,
864
- "banner-message": t.bannerMessage
865
- }, null, 8, ["banner-title", "banner-message"])) : b("", !0)
507
+ "banner-title": e.bannerTitle,
508
+ "banner-message": e.bannerMessage
509
+ }, null, 8, ["banner-title", "banner-message"])) : h("", !0)
866
510
  ], 64));
867
511
  }
868
512
  });
869
513
  export {
870
- Yt as AppHeader
514
+ da as AppHeader
871
515
  };