@museumwnf/viewer-layout 3.3.0 → 3.4.0
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/README.md +121 -10
- package/dist/ItemDetailView-I__hm63H.js +298 -0
- package/dist/SiteShell-4vV2jIzf.js +192 -0
- package/dist/{Theme-Db88mckV.js → Theme-B5J0XRe1.js} +3 -3
- package/dist/{TimelineResultsView-CmHomvV_.js → TimelineResultsView-ChkBn27W.js} +5 -1
- package/dist/chrome-DPuPeWzV.js +1141 -0
- package/dist/components.js +1 -1
- package/dist/data-CJlLA-Mf.js +38 -0
- package/dist/data-DTbAYdr2.js +40 -0
- package/dist/dxa.js +619 -502
- package/dist/index.js +6 -6
- package/dist/{themeSpecs-C_uGarTs.js → themeSpecs-B885l456.js} +3 -2
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +1 -1
- package/package.json +1 -1
- package/src/dxa/testing.js +37 -14
- package/src/styles/dxa-exhibition.css +25 -1
- package/src/styles/dxa-gallery.css +249 -2
- package/src/tokens.reference.css +12 -0
- package/dist/ItemDetailView-CfUtRLOV.js +0 -284
- package/dist/PageShell-CbJ9lQoQ.js +0 -961
- package/dist/SiteShell-C3OgZO8p.js +0 -154
- package/dist/data-BfyYB8ff.js +0 -33
- package/dist/data-G8uXeEfE.js +0 -35
|
@@ -0,0 +1,1141 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, normalizeClass as l, openBlock as u, ref as d, renderList as f, renderSlot as p, resolveDynamicComponent as m, toDisplayString as h, unref as g, useSlots as _, vModelText as v, withCtx as y, withDirectives as b, withModifiers as x } from "vue";
|
|
2
|
+
import { renderBlock as S, useI18n as C } from "@museumwnf/viewer-core/i18n";
|
|
3
|
+
//#region src/sections/AppHeader.vue
|
|
4
|
+
var w = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "mwnf-header"
|
|
7
|
+
}, T = { class: "mwnf-header__inner" }, E = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "mwnf-header__brand"
|
|
10
|
+
}, D = ["src", "alt"], O = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "mwnf-header__logos"
|
|
13
|
+
}, k = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "mwnf-header__logos-title"
|
|
16
|
+
}, A = { class: "mwnf-header__logo-list" }, j = ["src", "alt"], M = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "mwnf-header__eyebrow"
|
|
19
|
+
}, ee = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "mwnf-header__title"
|
|
22
|
+
}, te = {
|
|
23
|
+
key: 2,
|
|
24
|
+
class: "mwnf-header__subtitle"
|
|
25
|
+
}, ne = {
|
|
26
|
+
key: 2,
|
|
27
|
+
class: "mwnf-header__tools"
|
|
28
|
+
}, re = {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "mwnf-header__links"
|
|
31
|
+
}, ie = [
|
|
32
|
+
"href",
|
|
33
|
+
"target",
|
|
34
|
+
"rel"
|
|
35
|
+
], ae = ["placeholder", "aria-label"], oe = ["aria-label"], se = ["aria-label"], ce = [
|
|
36
|
+
"aria-pressed",
|
|
37
|
+
"lang",
|
|
38
|
+
"onClick"
|
|
39
|
+
], le = {
|
|
40
|
+
key: 3,
|
|
41
|
+
class: "mwnf-header__languages"
|
|
42
|
+
}, ue = { class: "mwnf-header__language-label" }, de = ["value"], fe = ["value"], N = {
|
|
43
|
+
__name: "AppHeader",
|
|
44
|
+
props: {
|
|
45
|
+
title: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: ""
|
|
48
|
+
},
|
|
49
|
+
subtitle: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: ""
|
|
52
|
+
},
|
|
53
|
+
eyebrow: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: ""
|
|
56
|
+
},
|
|
57
|
+
titleHref: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: ""
|
|
60
|
+
},
|
|
61
|
+
home: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: ""
|
|
64
|
+
},
|
|
65
|
+
brand: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: ""
|
|
68
|
+
},
|
|
69
|
+
brandLogo: {
|
|
70
|
+
type: Object,
|
|
71
|
+
default: null
|
|
72
|
+
},
|
|
73
|
+
logos: {
|
|
74
|
+
type: Array,
|
|
75
|
+
default: () => []
|
|
76
|
+
},
|
|
77
|
+
logosTitle: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: ""
|
|
80
|
+
},
|
|
81
|
+
links: {
|
|
82
|
+
type: Array,
|
|
83
|
+
default: () => []
|
|
84
|
+
},
|
|
85
|
+
search: {
|
|
86
|
+
type: Object,
|
|
87
|
+
default: null
|
|
88
|
+
},
|
|
89
|
+
languages: {
|
|
90
|
+
type: Array,
|
|
91
|
+
default: () => []
|
|
92
|
+
},
|
|
93
|
+
language: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: ""
|
|
96
|
+
},
|
|
97
|
+
languageStyle: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: ""
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
emits: ["search", "update:language"],
|
|
103
|
+
setup(o, { emit: c }) {
|
|
104
|
+
let S = o, N = c, P = _(), { t: F } = C(), I = t(() => S.languages.map((e) => typeof e == "string" ? {
|
|
105
|
+
code: e,
|
|
106
|
+
label: e
|
|
107
|
+
} : e)), L = t(() => S.languageStyle && I.value.length > 1);
|
|
108
|
+
function R() {
|
|
109
|
+
return !!(P.default || P.brand || S.title || S.subtitle || S.eyebrow || S.brand || S.brandLogo?.src || S.logos.length || S.links.length || S.search || L.value);
|
|
110
|
+
}
|
|
111
|
+
let z = d("");
|
|
112
|
+
function B() {
|
|
113
|
+
N("search", z.value), z.value = "";
|
|
114
|
+
}
|
|
115
|
+
return (t, c) => R() ? (u(), i("header", w, [p(t.$slots, "default", {}, () => [a("div", T, [
|
|
116
|
+
g(P).brand || o.brand || o.brandLogo?.src || o.logos.length ? (u(), i("div", E, [g(P).brand || o.brand || o.brandLogo?.src ? (u(), n(m(o.home ? "a" : "span"), {
|
|
117
|
+
key: 0,
|
|
118
|
+
class: "mwnf-header__home",
|
|
119
|
+
href: o.home || void 0
|
|
120
|
+
}, {
|
|
121
|
+
default: y(() => [p(t.$slots, "brand", {}, () => [o.brandLogo?.src ? (u(), i("img", {
|
|
122
|
+
key: 0,
|
|
123
|
+
class: "mwnf-header__brand-logo",
|
|
124
|
+
src: o.brandLogo.src,
|
|
125
|
+
alt: o.brandLogo.alt ?? ""
|
|
126
|
+
}, null, 8, D)) : (u(), i(e, { key: 1 }, [s(h(o.brand), 1)], 64))])]),
|
|
127
|
+
_: 3
|
|
128
|
+
}, 8, ["href"])) : r("", !0), o.logos.length ? (u(), i("div", O, [o.logosTitle ? (u(), i("p", k, h(o.logosTitle), 1)) : r("", !0), a("ul", A, [(u(!0), i(e, null, f(o.logos, (e) => (u(), i("li", { key: e.image }, [(u(), n(m(e.href ? "a" : "span"), {
|
|
129
|
+
class: "mwnf-header__logo",
|
|
130
|
+
href: e.href || void 0,
|
|
131
|
+
title: e.alt,
|
|
132
|
+
target: e.href ? "_blank" : void 0,
|
|
133
|
+
rel: e.href ? "noopener" : void 0
|
|
134
|
+
}, {
|
|
135
|
+
default: y(() => [a("img", {
|
|
136
|
+
src: e.image,
|
|
137
|
+
alt: e.alt ?? ""
|
|
138
|
+
}, null, 8, j)]),
|
|
139
|
+
_: 2
|
|
140
|
+
}, 1032, [
|
|
141
|
+
"href",
|
|
142
|
+
"title",
|
|
143
|
+
"target",
|
|
144
|
+
"rel"
|
|
145
|
+
]))]))), 128))])])) : r("", !0)])) : r("", !0),
|
|
146
|
+
o.title || o.subtitle || o.eyebrow ? (u(), n(m(o.titleHref ? "a" : "div"), {
|
|
147
|
+
key: 1,
|
|
148
|
+
class: "mwnf-header__lockup",
|
|
149
|
+
href: o.titleHref || void 0
|
|
150
|
+
}, {
|
|
151
|
+
default: y(() => [
|
|
152
|
+
o.eyebrow ? (u(), i("p", M, h(o.eyebrow), 1)) : r("", !0),
|
|
153
|
+
o.title ? (u(), i("p", ee, h(o.title), 1)) : r("", !0),
|
|
154
|
+
o.subtitle ? (u(), i("p", te, h(o.subtitle), 1)) : r("", !0)
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
}, 8, ["href"])) : r("", !0),
|
|
158
|
+
o.links.length || o.search || L.value ? (u(), i("div", ne, [
|
|
159
|
+
o.links.length ? (u(), i("ul", re, [(u(!0), i(e, null, f(o.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
|
|
160
|
+
class: "mwnf-header__link",
|
|
161
|
+
href: e.href,
|
|
162
|
+
target: e.external ? "_blank" : void 0,
|
|
163
|
+
rel: e.external ? "noopener" : void 0
|
|
164
|
+
}, h(e.label), 9, ie)]))), 128))])) : r("", !0),
|
|
165
|
+
o.search ? (u(), i("form", {
|
|
166
|
+
key: 1,
|
|
167
|
+
class: "mwnf-header__search",
|
|
168
|
+
role: "search",
|
|
169
|
+
onSubmit: x(B, ["prevent"])
|
|
170
|
+
}, [b(a("input", {
|
|
171
|
+
"onUpdate:modelValue": c[0] ||= (e) => z.value = e,
|
|
172
|
+
class: "mwnf-header__search-input",
|
|
173
|
+
type: "search",
|
|
174
|
+
placeholder: o.search.placeholder ?? "",
|
|
175
|
+
"aria-label": o.search.placeholder ?? o.search.submitLabel ?? ""
|
|
176
|
+
}, null, 8, ae), [[v, z.value]]), a("button", {
|
|
177
|
+
class: "mwnf-header__search-submit",
|
|
178
|
+
type: "submit",
|
|
179
|
+
"aria-label": o.search.submitLabel ?? ""
|
|
180
|
+
}, h(o.search.submitText ?? "⌕"), 9, oe)], 32)) : r("", !0),
|
|
181
|
+
L.value && o.languageStyle === "buttons" ? (u(), i("div", {
|
|
182
|
+
key: 2,
|
|
183
|
+
class: "mwnf-header__languages",
|
|
184
|
+
role: "group",
|
|
185
|
+
"aria-label": g(F)("layout.language.label")
|
|
186
|
+
}, [(u(!0), i(e, null, f(I.value, (e) => (u(), i("button", {
|
|
187
|
+
key: e.code,
|
|
188
|
+
type: "button",
|
|
189
|
+
class: l(["mwnf-header__language", { "mwnf-header__language--active": e.code === o.language }]),
|
|
190
|
+
"aria-pressed": e.code === o.language ? "true" : "false",
|
|
191
|
+
lang: e.code,
|
|
192
|
+
onClick: (t) => N("update:language", e.code)
|
|
193
|
+
}, h(e.label), 11, ce))), 128))], 8, se)) : L.value ? (u(), i("label", le, [a("span", ue, h(g(F)("layout.language.label")), 1), a("select", {
|
|
194
|
+
class: "mwnf-header__language-select",
|
|
195
|
+
value: o.language,
|
|
196
|
+
onChange: c[1] ||= (e) => N("update:language", e.target.value)
|
|
197
|
+
}, [(u(!0), i(e, null, f(I.value, (e) => (u(), i("option", {
|
|
198
|
+
key: e.code,
|
|
199
|
+
value: e.code
|
|
200
|
+
}, h(e.label), 9, fe))), 128))], 40, de)])) : r("", !0)
|
|
201
|
+
])) : r("", !0)
|
|
202
|
+
])])])) : r("", !0);
|
|
203
|
+
}
|
|
204
|
+
}, P = ["src", "alt"], F = {
|
|
205
|
+
key: 1,
|
|
206
|
+
class: "mwnf-banner__text"
|
|
207
|
+
}, I = {
|
|
208
|
+
key: 1,
|
|
209
|
+
class: "mwnf-banner__frame"
|
|
210
|
+
}, L = { class: "mwnf-banner__media" }, R = ["src", "alt"], z = {
|
|
211
|
+
key: 1,
|
|
212
|
+
class: "mwnf-banner__fallback",
|
|
213
|
+
"aria-hidden": "true"
|
|
214
|
+
}, B = {
|
|
215
|
+
key: 2,
|
|
216
|
+
class: "mwnf-banner__caption"
|
|
217
|
+
}, V = { class: "mwnf-banner__caption-name" }, pe = {
|
|
218
|
+
key: 0,
|
|
219
|
+
class: "mwnf-banner__caption-rest"
|
|
220
|
+
}, me = { class: "mwnf-banner__body" }, he = {
|
|
221
|
+
key: 0,
|
|
222
|
+
class: "mwnf-banner__eyebrow"
|
|
223
|
+
}, ge = ["href", "aria-label"], _e = {
|
|
224
|
+
key: 2,
|
|
225
|
+
class: "mwnf-banner__subtitle"
|
|
226
|
+
}, ve = ["innerHTML"], ye = ["href", "aria-label"], be = {
|
|
227
|
+
key: 5,
|
|
228
|
+
class: "mwnf-banner__strapline"
|
|
229
|
+
}, xe = {
|
|
230
|
+
key: 6,
|
|
231
|
+
class: "mwnf-banner__text"
|
|
232
|
+
}, Se = {
|
|
233
|
+
key: 7,
|
|
234
|
+
class: "mwnf-banner__caption"
|
|
235
|
+
}, Ce = { class: "mwnf-banner__caption-name" }, we = {
|
|
236
|
+
key: 0,
|
|
237
|
+
class: "mwnf-banner__caption-rest"
|
|
238
|
+
}, H = {
|
|
239
|
+
__name: "AppBanner",
|
|
240
|
+
props: {
|
|
241
|
+
variant: {
|
|
242
|
+
type: String,
|
|
243
|
+
default: ""
|
|
244
|
+
},
|
|
245
|
+
image: {
|
|
246
|
+
type: String,
|
|
247
|
+
default: ""
|
|
248
|
+
},
|
|
249
|
+
imageAlt: {
|
|
250
|
+
type: String,
|
|
251
|
+
default: ""
|
|
252
|
+
},
|
|
253
|
+
text: {
|
|
254
|
+
type: String,
|
|
255
|
+
default: ""
|
|
256
|
+
},
|
|
257
|
+
caption: {
|
|
258
|
+
type: [String, Object],
|
|
259
|
+
default: ""
|
|
260
|
+
},
|
|
261
|
+
captionLabel: {
|
|
262
|
+
type: String,
|
|
263
|
+
default: ""
|
|
264
|
+
},
|
|
265
|
+
eyebrow: {
|
|
266
|
+
type: String,
|
|
267
|
+
default: ""
|
|
268
|
+
},
|
|
269
|
+
title: {
|
|
270
|
+
type: String,
|
|
271
|
+
default: ""
|
|
272
|
+
},
|
|
273
|
+
titleHref: {
|
|
274
|
+
type: String,
|
|
275
|
+
default: ""
|
|
276
|
+
},
|
|
277
|
+
subtitle: {
|
|
278
|
+
type: String,
|
|
279
|
+
default: ""
|
|
280
|
+
},
|
|
281
|
+
headline: {
|
|
282
|
+
type: String,
|
|
283
|
+
default: ""
|
|
284
|
+
},
|
|
285
|
+
enter: {
|
|
286
|
+
type: Object,
|
|
287
|
+
default: null
|
|
288
|
+
},
|
|
289
|
+
strapline: {
|
|
290
|
+
type: String,
|
|
291
|
+
default: ""
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
setup(o) {
|
|
295
|
+
let c = o, f = _();
|
|
296
|
+
function g() {
|
|
297
|
+
return !!(f.default || c.image || c.text || c.title || c.eyebrow || c.headline);
|
|
298
|
+
}
|
|
299
|
+
let v = t(() => c.headline ? S(c.headline) : ""), b = t(() => {
|
|
300
|
+
let e = c.caption;
|
|
301
|
+
if (!e) return null;
|
|
302
|
+
let t = typeof e == "string" ? e : e.name ?? "", n = typeof e == "string" ? "" : [
|
|
303
|
+
e.partner,
|
|
304
|
+
e.location,
|
|
305
|
+
e.country
|
|
306
|
+
].filter(Boolean).join(", ");
|
|
307
|
+
return {
|
|
308
|
+
name: [c.captionLabel, t].filter(Boolean).join(" "),
|
|
309
|
+
rest: n
|
|
310
|
+
};
|
|
311
|
+
}), x = t(() => c.imageAlt || b.value?.name || c.title), C = d(!1);
|
|
312
|
+
return (t, c) => g() ? (u(), i("section", {
|
|
313
|
+
key: 0,
|
|
314
|
+
class: l(["mwnf-banner", o.variant ? `mwnf-banner--${o.variant}` : ""])
|
|
315
|
+
}, [p(t.$slots, "default", {}, () => [o.variant ? (u(), i("div", I, [a("div", L, [o.image && !C.value ? (u(), i("img", {
|
|
316
|
+
key: 0,
|
|
317
|
+
class: "mwnf-banner__image",
|
|
318
|
+
src: o.image,
|
|
319
|
+
alt: x.value,
|
|
320
|
+
onError: c[0] ||= (e) => C.value = !0
|
|
321
|
+
}, null, 40, R)) : (u(), i("div", z)), b.value && o.variant !== "section" ? (u(), i("p", B, [a("span", V, h(b.value.name), 1), b.value.rest ? (u(), i("span", pe, h(b.value.rest), 1)) : r("", !0)])) : r("", !0)]), a("div", me, [
|
|
322
|
+
o.eyebrow ? (u(), i("p", he, h(o.eyebrow), 1)) : r("", !0),
|
|
323
|
+
o.title ? (u(), n(m(o.titleHref ? "a" : "p"), {
|
|
324
|
+
key: 1,
|
|
325
|
+
class: "mwnf-banner__title",
|
|
326
|
+
href: o.titleHref || void 0
|
|
327
|
+
}, {
|
|
328
|
+
default: y(() => [s(h(o.title) + " ", 1), o.variant === "strip" && o.enter ? (u(), i("a", {
|
|
329
|
+
key: 0,
|
|
330
|
+
class: "mwnf-banner__enter",
|
|
331
|
+
href: o.enter.href,
|
|
332
|
+
"aria-label": o.enter.ariaLabel
|
|
333
|
+
}, h(o.enter.label), 9, ge)) : r("", !0)]),
|
|
334
|
+
_: 1
|
|
335
|
+
}, 8, ["href"])) : r("", !0),
|
|
336
|
+
o.subtitle ? (u(), i("p", _e, h(o.subtitle), 1)) : r("", !0),
|
|
337
|
+
v.value ? (u(), i("div", {
|
|
338
|
+
key: 3,
|
|
339
|
+
class: "mwnf-banner__headline",
|
|
340
|
+
innerHTML: v.value
|
|
341
|
+
}, null, 8, ve)) : r("", !0),
|
|
342
|
+
o.variant !== "strip" && o.enter ? (u(), i("a", {
|
|
343
|
+
key: 4,
|
|
344
|
+
class: "mwnf-banner__enter",
|
|
345
|
+
href: o.enter.href,
|
|
346
|
+
"aria-label": o.enter.ariaLabel
|
|
347
|
+
}, h(o.enter.label), 9, ye)) : r("", !0),
|
|
348
|
+
o.strapline ? (u(), i("p", be, h(o.strapline), 1)) : r("", !0),
|
|
349
|
+
o.text ? (u(), i("p", xe, h(o.text), 1)) : r("", !0),
|
|
350
|
+
b.value && o.variant === "section" ? (u(), i("p", Se, [a("span", Ce, h(b.value.name), 1), b.value.rest ? (u(), i("span", we, h(b.value.rest), 1)) : r("", !0)])) : r("", !0)
|
|
351
|
+
])])) : (u(), i(e, { key: 0 }, [o.image ? (u(), i("img", {
|
|
352
|
+
key: 0,
|
|
353
|
+
class: "mwnf-banner__image",
|
|
354
|
+
src: o.image,
|
|
355
|
+
alt: o.imageAlt
|
|
356
|
+
}, null, 8, P)) : r("", !0), o.text ? (u(), i("p", F, h(o.text), 1)) : r("", !0)], 64))])], 2)) : r("", !0);
|
|
357
|
+
}
|
|
358
|
+
}, Te = ["aria-label"], Ee = { class: "mwnf-nav__bar" }, De = ["aria-expanded"], Oe = {
|
|
359
|
+
key: 0,
|
|
360
|
+
id: "mwnf-nav-links",
|
|
361
|
+
class: "mwnf-nav__links"
|
|
362
|
+
}, ke = [
|
|
363
|
+
"href",
|
|
364
|
+
"aria-current",
|
|
365
|
+
"target",
|
|
366
|
+
"rel"
|
|
367
|
+
], Ae = {
|
|
368
|
+
key: 1,
|
|
369
|
+
class: "mwnf-nav__language"
|
|
370
|
+
}, je = { class: "mwnf-nav__language-label" }, Me = ["value"], Ne = ["value"], Pe = {
|
|
371
|
+
key: 0,
|
|
372
|
+
class: "mwnf-nav__notice"
|
|
373
|
+
}, Fe = {
|
|
374
|
+
key: 0,
|
|
375
|
+
class: "mwnf-nav__notice-title"
|
|
376
|
+
}, U = {
|
|
377
|
+
__name: "AppNavigation",
|
|
378
|
+
props: {
|
|
379
|
+
links: {
|
|
380
|
+
type: Array,
|
|
381
|
+
default: () => []
|
|
382
|
+
},
|
|
383
|
+
languages: {
|
|
384
|
+
type: Array,
|
|
385
|
+
default: () => []
|
|
386
|
+
},
|
|
387
|
+
language: {
|
|
388
|
+
type: String,
|
|
389
|
+
default: ""
|
|
390
|
+
},
|
|
391
|
+
languageSwitcher: {
|
|
392
|
+
type: Boolean,
|
|
393
|
+
default: !0
|
|
394
|
+
},
|
|
395
|
+
notice: {
|
|
396
|
+
type: Object,
|
|
397
|
+
default: null
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
emits: ["update:language"],
|
|
401
|
+
setup(n, { emit: o }) {
|
|
402
|
+
let c = n, m = o, v = _(), { t: y } = C(), b = t(() => c.languages.map((e) => typeof e == "string" ? {
|
|
403
|
+
code: e,
|
|
404
|
+
label: e
|
|
405
|
+
} : e)), x = t(() => c.languageSwitcher && b.value.length > 1);
|
|
406
|
+
function S() {
|
|
407
|
+
return !!(v.default || c.links.length || x.value || c.notice);
|
|
408
|
+
}
|
|
409
|
+
let w = d(!1);
|
|
410
|
+
return (t, o) => S() ? (u(), i("nav", {
|
|
411
|
+
key: 0,
|
|
412
|
+
class: l(["mwnf-nav", { "mwnf-nav--open": w.value }]),
|
|
413
|
+
"aria-label": g(y)("layout.nav.label")
|
|
414
|
+
}, [a("div", Ee, [
|
|
415
|
+
n.links.length ? (u(), i("button", {
|
|
416
|
+
key: 0,
|
|
417
|
+
type: "button",
|
|
418
|
+
class: "mwnf-nav__toggle",
|
|
419
|
+
"aria-expanded": w.value ? "true" : "false",
|
|
420
|
+
"aria-controls": "mwnf-nav-links",
|
|
421
|
+
onClick: o[0] ||= (e) => w.value = !w.value
|
|
422
|
+
}, [o[3] ||= a("span", {
|
|
423
|
+
class: "mwnf-nav__toggle-icon",
|
|
424
|
+
"aria-hidden": "true"
|
|
425
|
+
}, "☰", -1), s(" " + h(g(y)("layout.nav.menu")), 1)], 8, De)) : r("", !0),
|
|
426
|
+
p(t.$slots, "default", {}, () => [n.links.length ? (u(), i("ul", Oe, [(u(!0), i(e, null, f(n.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
|
|
427
|
+
class: l(["mwnf-nav__link", { "mwnf-nav__link--active": e.active }]),
|
|
428
|
+
href: e.href,
|
|
429
|
+
"aria-current": e.active ? "page" : void 0,
|
|
430
|
+
target: e.external ? "_blank" : void 0,
|
|
431
|
+
rel: e.external ? "noopener" : void 0,
|
|
432
|
+
onClick: o[1] ||= (e) => w.value = !1
|
|
433
|
+
}, h(e.label), 11, ke)]))), 128))])) : r("", !0)]),
|
|
434
|
+
x.value ? (u(), i("label", Ae, [a("span", je, h(g(y)("layout.language.label")), 1), a("select", {
|
|
435
|
+
class: "mwnf-nav__language-select",
|
|
436
|
+
value: n.language,
|
|
437
|
+
onChange: o[2] ||= (e) => m("update:language", e.target.value)
|
|
438
|
+
}, [(u(!0), i(e, null, f(b.value, (e) => (u(), i("option", {
|
|
439
|
+
key: e.code,
|
|
440
|
+
value: e.code
|
|
441
|
+
}, h(e.label), 9, Ne))), 128))], 40, Me)])) : r("", !0)
|
|
442
|
+
]), n.notice && (n.notice.text || n.notice.title) ? (u(), i("p", Pe, [n.notice.title ? (u(), i("strong", Fe, h(n.notice.title), 1)) : r("", !0), s(" " + h(n.notice.text), 1)])) : r("", !0)], 10, Te)) : r("", !0);
|
|
443
|
+
}
|
|
444
|
+
}, Ie = {
|
|
445
|
+
key: 0,
|
|
446
|
+
id: "mwnf-content",
|
|
447
|
+
class: "mwnf-content"
|
|
448
|
+
}, W = {
|
|
449
|
+
__name: "AppContent",
|
|
450
|
+
setup(e) {
|
|
451
|
+
let t = _();
|
|
452
|
+
function n() {
|
|
453
|
+
return !!t.default;
|
|
454
|
+
}
|
|
455
|
+
return (e, t) => n() ? (u(), i("main", Ie, [p(e.$slots, "default")])) : r("", !0);
|
|
456
|
+
}
|
|
457
|
+
}, Le = ["aria-label"], Re = {
|
|
458
|
+
key: 0,
|
|
459
|
+
class: "mwnf-hyperlinks__title"
|
|
460
|
+
}, ze = {
|
|
461
|
+
key: 1,
|
|
462
|
+
class: "mwnf-hyperlinks__subtitle"
|
|
463
|
+
}, Be = {
|
|
464
|
+
key: 1,
|
|
465
|
+
class: "mwnf-hyperlinks__title"
|
|
466
|
+
}, Ve = { class: "mwnf-hyperlinks__list" }, He = [
|
|
467
|
+
"href",
|
|
468
|
+
"target",
|
|
469
|
+
"rel"
|
|
470
|
+
], Ue = { class: "mwnf-hyperlinks__label" }, We = {
|
|
471
|
+
key: 0,
|
|
472
|
+
class: "mwnf-hyperlinks__description"
|
|
473
|
+
}, G = {
|
|
474
|
+
__name: "AppHyperlinks",
|
|
475
|
+
props: {
|
|
476
|
+
variant: {
|
|
477
|
+
type: String,
|
|
478
|
+
default: ""
|
|
479
|
+
},
|
|
480
|
+
title: {
|
|
481
|
+
type: String,
|
|
482
|
+
default: ""
|
|
483
|
+
},
|
|
484
|
+
titleHref: {
|
|
485
|
+
type: String,
|
|
486
|
+
default: ""
|
|
487
|
+
},
|
|
488
|
+
subtitle: {
|
|
489
|
+
type: String,
|
|
490
|
+
default: ""
|
|
491
|
+
},
|
|
492
|
+
links: {
|
|
493
|
+
type: Array,
|
|
494
|
+
default: () => []
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
setup(t) {
|
|
498
|
+
let o = t, s = _(), { t: c } = C();
|
|
499
|
+
function d() {
|
|
500
|
+
return !!(s.default || o.links.length);
|
|
501
|
+
}
|
|
502
|
+
return (o, s) => d() ? (u(), i("section", {
|
|
503
|
+
key: 0,
|
|
504
|
+
class: l(["mwnf-hyperlinks", t.variant ? `mwnf-hyperlinks--${t.variant}` : ""]),
|
|
505
|
+
"aria-label": t.title || g(c)("layout.hyperlinks.label")
|
|
506
|
+
}, [t.variant === "tiles" ? (u(), i(e, { key: 0 }, [t.title || t.subtitle ? (u(), n(m(t.titleHref ? "a" : "div"), {
|
|
507
|
+
key: 0,
|
|
508
|
+
class: "mwnf-hyperlinks__lockup",
|
|
509
|
+
href: t.titleHref || void 0
|
|
510
|
+
}, {
|
|
511
|
+
default: y(() => [t.title ? (u(), i("p", Re, h(t.title), 1)) : r("", !0), t.subtitle ? (u(), i("p", ze, h(t.subtitle), 1)) : r("", !0)]),
|
|
512
|
+
_: 1
|
|
513
|
+
}, 8, ["href"])) : r("", !0)], 64)) : t.title ? (u(), i("p", Be, h(t.title), 1)) : r("", !0), p(o.$slots, "default", {}, () => [a("ul", Ve, [(u(!0), i(e, null, f(t.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
|
|
514
|
+
class: "mwnf-hyperlinks__link",
|
|
515
|
+
href: e.href,
|
|
516
|
+
target: e.external ? "_blank" : void 0,
|
|
517
|
+
rel: e.external ? "noopener" : void 0
|
|
518
|
+
}, [a("span", Ue, h(e.label), 1), e.description ? (u(), i("span", We, h(e.description), 1)) : r("", !0)], 8, He)]))), 128))])])], 10, Le)) : r("", !0);
|
|
519
|
+
}
|
|
520
|
+
}, Ge = ["aria-label"], Ke = {
|
|
521
|
+
key: 0,
|
|
522
|
+
class: "mwnf-sponsors__title"
|
|
523
|
+
}, qe = {
|
|
524
|
+
key: 0,
|
|
525
|
+
class: "mwnf-sponsors__list"
|
|
526
|
+
}, Je = ["src", "alt"], Ye = {
|
|
527
|
+
key: 1,
|
|
528
|
+
class: "mwnf-sponsors__groups"
|
|
529
|
+
}, Xe = {
|
|
530
|
+
key: 0,
|
|
531
|
+
class: "mwnf-sponsors__group-title"
|
|
532
|
+
}, Ze = { class: "mwnf-sponsors__list" }, Qe = ["src", "alt"], K = {
|
|
533
|
+
__name: "AppSponsors",
|
|
534
|
+
props: {
|
|
535
|
+
title: {
|
|
536
|
+
type: String,
|
|
537
|
+
default: ""
|
|
538
|
+
},
|
|
539
|
+
sponsors: {
|
|
540
|
+
type: Array,
|
|
541
|
+
default: () => []
|
|
542
|
+
},
|
|
543
|
+
groups: {
|
|
544
|
+
type: Array,
|
|
545
|
+
default: () => []
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
setup(o) {
|
|
549
|
+
let c = o, l = _(), { t: d } = C(), v = t(() => c.groups.filter((e) => e?.sponsors?.length));
|
|
550
|
+
function b() {
|
|
551
|
+
return !!(l.default || c.sponsors.length || v.value.length);
|
|
552
|
+
}
|
|
553
|
+
return (t, c) => b() ? (u(), i("section", {
|
|
554
|
+
key: 0,
|
|
555
|
+
class: "mwnf-sponsors",
|
|
556
|
+
"aria-label": o.title || g(d)("layout.sponsors.label")
|
|
557
|
+
}, [o.title ? (u(), i("p", Ke, h(o.title), 1)) : r("", !0), p(t.$slots, "default", {}, () => [o.sponsors.length ? (u(), i("ul", qe, [(u(!0), i(e, null, f(o.sponsors, (t) => (u(), i("li", { key: t.name }, [(u(), n(m(t.href ? "a" : "span"), {
|
|
558
|
+
class: "mwnf-sponsors__item",
|
|
559
|
+
href: t.href,
|
|
560
|
+
target: t.href ? "_blank" : void 0,
|
|
561
|
+
rel: t.href ? "noopener" : void 0
|
|
562
|
+
}, {
|
|
563
|
+
default: y(() => [t.logo ? (u(), i("img", {
|
|
564
|
+
key: 0,
|
|
565
|
+
class: "mwnf-sponsors__logo",
|
|
566
|
+
src: t.logo,
|
|
567
|
+
alt: t.name
|
|
568
|
+
}, null, 8, Je)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
|
|
569
|
+
_: 2
|
|
570
|
+
}, 1032, [
|
|
571
|
+
"href",
|
|
572
|
+
"target",
|
|
573
|
+
"rel"
|
|
574
|
+
]))]))), 128))])) : r("", !0), v.value.length ? (u(), i("div", Ye, [(u(!0), i(e, null, f(v.value, (t) => (u(), i("div", {
|
|
575
|
+
key: t.title,
|
|
576
|
+
class: "mwnf-sponsors__group"
|
|
577
|
+
}, [t.title ? (u(), i("p", Xe, h(t.title), 1)) : r("", !0), a("ul", Ze, [(u(!0), i(e, null, f(t.sponsors, (t) => (u(), i("li", { key: t.name }, [(u(), n(m(t.href ? "a" : "span"), {
|
|
578
|
+
class: "mwnf-sponsors__item",
|
|
579
|
+
href: t.href,
|
|
580
|
+
target: t.href ? "_blank" : void 0,
|
|
581
|
+
rel: t.href ? "noopener" : void 0,
|
|
582
|
+
title: t.name
|
|
583
|
+
}, {
|
|
584
|
+
default: y(() => [t.logo ? (u(), i("img", {
|
|
585
|
+
key: 0,
|
|
586
|
+
class: "mwnf-sponsors__logo",
|
|
587
|
+
src: t.logo,
|
|
588
|
+
alt: t.name
|
|
589
|
+
}, null, 8, Qe)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
|
|
590
|
+
_: 2
|
|
591
|
+
}, 1032, [
|
|
592
|
+
"href",
|
|
593
|
+
"target",
|
|
594
|
+
"rel",
|
|
595
|
+
"title"
|
|
596
|
+
]))]))), 128))])]))), 128))])) : r("", !0)])], 8, Ge)) : r("", !0);
|
|
597
|
+
}
|
|
598
|
+
}, q = {
|
|
599
|
+
youtube: {
|
|
600
|
+
viewBox: "0 0 448 512",
|
|
601
|
+
path: "M282 256.2l-95.2-54.1V310.3L282 256.2zM384 32H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64zm14.4 136.1c7.6 28.6 7.6 88.2 7.6 88.2s0 59.6-7.6 88.1c-4.2 15.8-16.5 27.7-32.2 31.9C337.9 384 224 384 224 384s-113.9 0-142.2-7.6c-15.7-4.2-28-16.1-32.2-31.9C42 315.9 42 256.3 42 256.3s0-59.7 7.6-88.2c4.2-15.8 16.5-28.2 32.2-32.4C110.1 128 224 128 224 128s113.9 0 142.2 7.7c15.7 4.2 28 16.6 32.2 32.4z"
|
|
602
|
+
},
|
|
603
|
+
x: {
|
|
604
|
+
viewBox: "0 0 448 512",
|
|
605
|
+
path: "M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm297.1 84L257.3 234.6 379.4 396H283.8L209 298.1 123.3 396H75.8l111-126.9L69.7 116h98l67.7 89.5L313.6 116h47.5zM323.3 367.6L153.4 142.9H125.1L296.9 367.6h26.3z"
|
|
606
|
+
},
|
|
607
|
+
facebook: {
|
|
608
|
+
viewBox: "0 0 448 512",
|
|
609
|
+
path: "M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64h98.2V334.2H109.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H255V480H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"
|
|
610
|
+
},
|
|
611
|
+
instagram: {
|
|
612
|
+
viewBox: "0 0 448 512",
|
|
613
|
+
path: "M194.4 211.7a53.3 53.3 0 1 0 59.3 88.7 53.3 53.3 0 1 0 -59.3-88.7zm142.3-68.4c-5.2-5.2-11.5-9.3-18.4-12c-18.1-7.1-57.6-6.8-83.1-6.5c-4.1 0-7.9 .1-11.2 .1c-3.3 0-7.2 0-11.4-.1c-25.5-.3-64.8-.7-82.9 6.5c-6.9 2.7-13.1 6.8-18.4 12s-9.3 11.5-12 18.4c-7.1 18.1-6.7 57.7-6.5 83.2c0 4.1 .1 7.9 .1 11.1s0 7-.1 11.1c-.2 25.5-.6 65.1 6.5 83.2c2.7 6.9 6.8 13.1 12 18.4s11.5 9.3 18.4 12c18.1 7.1 57.6 6.8 83.1 6.5c4.1 0 7.9-.1 11.2-.1c3.3 0 7.2 0 11.4 .1c25.5 .3 64.8 .7 82.9-6.5c6.9-2.7 13.1-6.8 18.4-12s9.3-11.5 12-18.4c7.2-18 6.8-57.4 6.5-83c0-4.2-.1-8.1-.1-11.4s0-7.1 .1-11.4c.3-25.5 .7-64.9-6.5-83l0 0c-2.7-6.9-6.8-13.1-12-18.4zm-67.1 44.5A82 82 0 1 1 178.4 324.2a82 82 0 1 1 91.1-136.4zm29.2-1.3c-3.1-2.1-5.6-5.1-7.1-8.6s-1.8-7.3-1.1-11.1s2.6-7.1 5.2-9.8s6.1-4.5 9.8-5.2s7.6-.4 11.1 1.1s6.5 3.9 8.6 7s3.2 6.8 3.2 10.6c0 2.5-.5 5-1.4 7.3s-2.4 4.4-4.1 6.2s-3.9 3.2-6.2 4.2s-4.8 1.5-7.3 1.5l0 0c-3.8 0-7.5-1.1-10.6-3.2zM448 96c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96zM357 389c-18.7 18.7-41.4 24.6-67 25.9c-26.4 1.5-105.6 1.5-132 0c-25.6-1.3-48.3-7.2-67-25.9s-24.6-41.4-25.8-67c-1.5-26.4-1.5-105.6 0-132c1.3-25.6 7.1-48.3 25.8-67s41.5-24.6 67-25.8c26.4-1.5 105.6-1.5 132 0c25.6 1.3 48.3 7.1 67 25.8s24.6 41.4 25.8 67c1.5 26.3 1.5 105.4 0 131.9c-1.3 25.6-7.1 48.3-25.8 67z"
|
|
614
|
+
},
|
|
615
|
+
weibo: {
|
|
616
|
+
viewBox: "0 0 512 512",
|
|
617
|
+
path: "M407 177.6c7.6-24-13.4-46.8-37.4-41.7-22 4.8-28.8-28.1-7.1-32.8 50.1-10.9 92.3 37.1 76.5 84.8-6.8 21.2-38.8 10.8-32-10.3zM214.8 446.7C108.5 446.7 0 395.3 0 310.4c0-44.3 28-95.4 76.3-143.7C176 67 279.5 65.8 249.9 161c-4 13.1 12.3 5.7 12.3 6 79.5-33.6 140.5-16.8 114 51.4-3.7 9.4 1.1 10.9 8.3 13.1 135.7 42.3 34.8 215.2-169.7 215.2zm143.7-146.3c-5.4-55.7-78.5-94-163.4-85.7-84.8 8.6-148.8 60.3-143.4 116s78.5 94 163.4 85.7c84.8-8.6 148.8-60.3 143.4-116zM347.9 35.1c-25.9 5.6-16.8 43.7 8.3 38.3 72.3-15.2 134.8 52.8 111.7 124-7.4 24.2 29.1 37 37.4 12 31.9-99.8-55.1-195.9-157.4-174.3zm-78.5 311c-17.1 38.8-66.8 60-109.1 46.3-40.8-13.1-58-53.4-40.3-89.7 17.7-35.4 63.1-55.4 103.4-45.1 42 10.8 63.1 50.2 46 88.5zm-86.3-30c-12.9-5.4-30 .3-38 12.9-8.3 12.9-4.3 28 8.6 34 13.1 6 30.8.3 39.1-12.9 8-13.1 3.7-28.3-9.7-34zm32.6-13.4c-5.1-1.7-11.4.6-14.3 5.4-2.9 5.1-1.4 10.6 3.7 12.9 5.1 2 11.7-.3 14.6-5.4 2.8-5.2 1.1-10.9-4-12.9z"
|
|
618
|
+
},
|
|
619
|
+
linkedin: {
|
|
620
|
+
viewBox: "0 0 448 512",
|
|
621
|
+
path: "M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"
|
|
622
|
+
}
|
|
623
|
+
}, $e = Object.freeze([
|
|
624
|
+
{
|
|
625
|
+
label: "YouTube",
|
|
626
|
+
href: "https://www.youtube.com/channel/UC5X2a5jDFyIfTEV5prWNF5Q",
|
|
627
|
+
icon: "youtube"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
label: "X",
|
|
631
|
+
href: "https://x.com/mwnf_org/",
|
|
632
|
+
icon: "x"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
label: "Facebook",
|
|
636
|
+
href: "http://www.facebook.com/pages/Museum-With-No-Frontiers/370544525423",
|
|
637
|
+
icon: "facebook"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
label: "Instagram",
|
|
641
|
+
href: "https://www.instagram.com/museumwithnofrontiers/",
|
|
642
|
+
icon: "instagram"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
label: "Weibo",
|
|
646
|
+
href: "https://www.weibo.com/6540990409/profile?topnav=1&wvr=6&is_all=1",
|
|
647
|
+
icon: "weibo"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
label: "LinkedIn",
|
|
651
|
+
href: "https://www.linkedin.com/company/museum-with-no-frontiers/",
|
|
652
|
+
icon: "linkedin"
|
|
653
|
+
}
|
|
654
|
+
]), et = {
|
|
655
|
+
key: 0,
|
|
656
|
+
class: "mwnf-footer__social"
|
|
657
|
+
}, tt = [
|
|
658
|
+
"href",
|
|
659
|
+
"aria-label",
|
|
660
|
+
"title"
|
|
661
|
+
], nt = ["viewBox"], rt = ["d"], J = {
|
|
662
|
+
__name: "SocialLinks",
|
|
663
|
+
props: { links: {
|
|
664
|
+
type: Array,
|
|
665
|
+
default: () => []
|
|
666
|
+
} },
|
|
667
|
+
setup(n) {
|
|
668
|
+
let o = n, s = t(() => o.links.filter((e) => q[e.icon]));
|
|
669
|
+
return (t, n) => s.value.length ? (u(), i("ul", et, [(u(!0), i(e, null, f(s.value, (e) => (u(), i("li", { key: e.href }, [a("a", {
|
|
670
|
+
class: "mwnf-footer__social-link",
|
|
671
|
+
href: e.href,
|
|
672
|
+
target: "_blank",
|
|
673
|
+
rel: "noopener",
|
|
674
|
+
"aria-label": e.label,
|
|
675
|
+
title: e.label
|
|
676
|
+
}, [(u(), i("svg", {
|
|
677
|
+
class: "mwnf-footer__social-icon",
|
|
678
|
+
viewBox: g(q)[e.icon].viewBox,
|
|
679
|
+
"aria-hidden": "true",
|
|
680
|
+
focusable: "false"
|
|
681
|
+
}, [a("path", {
|
|
682
|
+
fill: "currentColor",
|
|
683
|
+
d: g(q)[e.icon].path
|
|
684
|
+
}, null, 8, rt)], 8, nt))], 8, tt)]))), 128))])) : r("", !0);
|
|
685
|
+
}
|
|
686
|
+
}, it = {
|
|
687
|
+
key: 0,
|
|
688
|
+
class: "mwnf-footer"
|
|
689
|
+
}, at = {
|
|
690
|
+
key: 0,
|
|
691
|
+
class: "mwnf-footer__links"
|
|
692
|
+
}, Y = [
|
|
693
|
+
"href",
|
|
694
|
+
"target",
|
|
695
|
+
"rel"
|
|
696
|
+
], ot = {
|
|
697
|
+
key: 1,
|
|
698
|
+
class: "mwnf-footer__text"
|
|
699
|
+
}, st = {
|
|
700
|
+
key: 2,
|
|
701
|
+
class: "mwnf-footer__attribution"
|
|
702
|
+
}, ct = {
|
|
703
|
+
key: 0,
|
|
704
|
+
class: "mwnf-footer__attribution-label"
|
|
705
|
+
}, lt = ["href"], X = {
|
|
706
|
+
__name: "AppFooter",
|
|
707
|
+
props: {
|
|
708
|
+
text: {
|
|
709
|
+
type: String,
|
|
710
|
+
default: ""
|
|
711
|
+
},
|
|
712
|
+
links: {
|
|
713
|
+
type: Array,
|
|
714
|
+
default: () => []
|
|
715
|
+
},
|
|
716
|
+
attributionLabel: {
|
|
717
|
+
type: String,
|
|
718
|
+
default: ""
|
|
719
|
+
},
|
|
720
|
+
attributionText: {
|
|
721
|
+
type: String,
|
|
722
|
+
default: ""
|
|
723
|
+
},
|
|
724
|
+
termsHref: {
|
|
725
|
+
type: String,
|
|
726
|
+
default: ""
|
|
727
|
+
},
|
|
728
|
+
termsLabel: {
|
|
729
|
+
type: String,
|
|
730
|
+
default: ""
|
|
731
|
+
},
|
|
732
|
+
social: {
|
|
733
|
+
type: Array,
|
|
734
|
+
default: () => []
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
setup(n) {
|
|
738
|
+
let o = n, l = _(), d = t(() => o.social.filter((e) => q[e.icon]));
|
|
739
|
+
function m() {
|
|
740
|
+
return !!(l.default || o.text || o.links.length || o.attributionText || d.value.length);
|
|
741
|
+
}
|
|
742
|
+
return (t, o) => m() ? (u(), i("footer", it, [p(t.$slots, "default", {}, () => [
|
|
743
|
+
n.links.length ? (u(), i("ul", at, [(u(!0), i(e, null, f(n.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
|
|
744
|
+
class: "mwnf-footer__link",
|
|
745
|
+
href: e.href,
|
|
746
|
+
target: e.external ? "_blank" : void 0,
|
|
747
|
+
rel: e.external ? "noopener" : void 0
|
|
748
|
+
}, h(e.label), 9, Y)]))), 128))])) : r("", !0),
|
|
749
|
+
n.text ? (u(), i("p", ot, h(n.text), 1)) : r("", !0),
|
|
750
|
+
n.attributionText ? (u(), i("p", st, [
|
|
751
|
+
n.attributionLabel ? (u(), i("span", ct, h(n.attributionLabel), 1)) : r("", !0),
|
|
752
|
+
s(" " + h(n.attributionText) + " ", 1),
|
|
753
|
+
n.termsHref ? (u(), i("a", {
|
|
754
|
+
key: 1,
|
|
755
|
+
class: "mwnf-footer__terms",
|
|
756
|
+
href: n.termsHref
|
|
757
|
+
}, h(n.termsLabel), 9, lt)) : r("", !0)
|
|
758
|
+
])) : r("", !0),
|
|
759
|
+
c(J, { links: d.value }, null, 8, ["links"])
|
|
760
|
+
])])) : r("", !0);
|
|
761
|
+
}
|
|
762
|
+
}, ut = { class: "mwnf-page" }, dt = {
|
|
763
|
+
class: "mwnf-skip-link",
|
|
764
|
+
href: "#mwnf-content"
|
|
765
|
+
}, ft = {
|
|
766
|
+
__name: "PageShell",
|
|
767
|
+
props: {
|
|
768
|
+
headerTitle: {
|
|
769
|
+
type: String,
|
|
770
|
+
default: ""
|
|
771
|
+
},
|
|
772
|
+
headerSubtitle: {
|
|
773
|
+
type: String,
|
|
774
|
+
default: ""
|
|
775
|
+
},
|
|
776
|
+
headerEyebrow: {
|
|
777
|
+
type: String,
|
|
778
|
+
default: ""
|
|
779
|
+
},
|
|
780
|
+
headerTitleHref: {
|
|
781
|
+
type: String,
|
|
782
|
+
default: ""
|
|
783
|
+
},
|
|
784
|
+
headerHome: {
|
|
785
|
+
type: String,
|
|
786
|
+
default: ""
|
|
787
|
+
},
|
|
788
|
+
headerBrand: {
|
|
789
|
+
type: String,
|
|
790
|
+
default: ""
|
|
791
|
+
},
|
|
792
|
+
headerBrandLogo: {
|
|
793
|
+
type: Object,
|
|
794
|
+
default: null
|
|
795
|
+
},
|
|
796
|
+
headerLogos: {
|
|
797
|
+
type: Array,
|
|
798
|
+
default: () => []
|
|
799
|
+
},
|
|
800
|
+
headerLogosTitle: {
|
|
801
|
+
type: String,
|
|
802
|
+
default: ""
|
|
803
|
+
},
|
|
804
|
+
headerLinks: {
|
|
805
|
+
type: Array,
|
|
806
|
+
default: () => []
|
|
807
|
+
},
|
|
808
|
+
search: {
|
|
809
|
+
type: Object,
|
|
810
|
+
default: null
|
|
811
|
+
},
|
|
812
|
+
languages: {
|
|
813
|
+
type: Array,
|
|
814
|
+
default: () => []
|
|
815
|
+
},
|
|
816
|
+
language: {
|
|
817
|
+
type: String,
|
|
818
|
+
default: ""
|
|
819
|
+
},
|
|
820
|
+
languagePlacement: {
|
|
821
|
+
type: String,
|
|
822
|
+
default: "navigation"
|
|
823
|
+
},
|
|
824
|
+
languageStyle: {
|
|
825
|
+
type: String,
|
|
826
|
+
default: "select"
|
|
827
|
+
},
|
|
828
|
+
bannerVariant: {
|
|
829
|
+
type: String,
|
|
830
|
+
default: ""
|
|
831
|
+
},
|
|
832
|
+
bannerImage: {
|
|
833
|
+
type: String,
|
|
834
|
+
default: ""
|
|
835
|
+
},
|
|
836
|
+
bannerImageAlt: {
|
|
837
|
+
type: String,
|
|
838
|
+
default: ""
|
|
839
|
+
},
|
|
840
|
+
bannerText: {
|
|
841
|
+
type: String,
|
|
842
|
+
default: ""
|
|
843
|
+
},
|
|
844
|
+
bannerCaption: {
|
|
845
|
+
type: [String, Object],
|
|
846
|
+
default: ""
|
|
847
|
+
},
|
|
848
|
+
bannerCaptionLabel: {
|
|
849
|
+
type: String,
|
|
850
|
+
default: ""
|
|
851
|
+
},
|
|
852
|
+
bannerEyebrow: {
|
|
853
|
+
type: String,
|
|
854
|
+
default: ""
|
|
855
|
+
},
|
|
856
|
+
bannerTitle: {
|
|
857
|
+
type: String,
|
|
858
|
+
default: ""
|
|
859
|
+
},
|
|
860
|
+
bannerTitleHref: {
|
|
861
|
+
type: String,
|
|
862
|
+
default: ""
|
|
863
|
+
},
|
|
864
|
+
bannerSubtitle: {
|
|
865
|
+
type: String,
|
|
866
|
+
default: ""
|
|
867
|
+
},
|
|
868
|
+
bannerHeadline: {
|
|
869
|
+
type: String,
|
|
870
|
+
default: ""
|
|
871
|
+
},
|
|
872
|
+
bannerEnter: {
|
|
873
|
+
type: Object,
|
|
874
|
+
default: null
|
|
875
|
+
},
|
|
876
|
+
bannerStrapline: {
|
|
877
|
+
type: String,
|
|
878
|
+
default: ""
|
|
879
|
+
},
|
|
880
|
+
navigationPlacement: {
|
|
881
|
+
type: String,
|
|
882
|
+
default: "after-banner"
|
|
883
|
+
},
|
|
884
|
+
navLinks: {
|
|
885
|
+
type: Array,
|
|
886
|
+
default: () => []
|
|
887
|
+
},
|
|
888
|
+
notice: {
|
|
889
|
+
type: Object,
|
|
890
|
+
default: null
|
|
891
|
+
},
|
|
892
|
+
hyperlinksVariant: {
|
|
893
|
+
type: String,
|
|
894
|
+
default: ""
|
|
895
|
+
},
|
|
896
|
+
hyperlinksTitle: {
|
|
897
|
+
type: String,
|
|
898
|
+
default: ""
|
|
899
|
+
},
|
|
900
|
+
hyperlinksTitleHref: {
|
|
901
|
+
type: String,
|
|
902
|
+
default: ""
|
|
903
|
+
},
|
|
904
|
+
hyperlinksSubtitle: {
|
|
905
|
+
type: String,
|
|
906
|
+
default: ""
|
|
907
|
+
},
|
|
908
|
+
hyperlinks: {
|
|
909
|
+
type: Array,
|
|
910
|
+
default: () => []
|
|
911
|
+
},
|
|
912
|
+
sponsorsTitle: {
|
|
913
|
+
type: String,
|
|
914
|
+
default: ""
|
|
915
|
+
},
|
|
916
|
+
sponsors: {
|
|
917
|
+
type: Array,
|
|
918
|
+
default: () => []
|
|
919
|
+
},
|
|
920
|
+
sponsorGroups: {
|
|
921
|
+
type: Array,
|
|
922
|
+
default: () => []
|
|
923
|
+
},
|
|
924
|
+
footerText: {
|
|
925
|
+
type: String,
|
|
926
|
+
default: ""
|
|
927
|
+
},
|
|
928
|
+
footerLinks: {
|
|
929
|
+
type: Array,
|
|
930
|
+
default: () => []
|
|
931
|
+
},
|
|
932
|
+
footerSocial: {
|
|
933
|
+
type: Array,
|
|
934
|
+
default: () => []
|
|
935
|
+
},
|
|
936
|
+
footerAttributionLabel: {
|
|
937
|
+
type: String,
|
|
938
|
+
default: ""
|
|
939
|
+
},
|
|
940
|
+
footerAttributionText: {
|
|
941
|
+
type: String,
|
|
942
|
+
default: ""
|
|
943
|
+
},
|
|
944
|
+
footerTermsHref: {
|
|
945
|
+
type: String,
|
|
946
|
+
default: ""
|
|
947
|
+
},
|
|
948
|
+
footerTermsLabel: {
|
|
949
|
+
type: String,
|
|
950
|
+
default: ""
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
emits: ["update:language", "search"],
|
|
954
|
+
setup(r, { emit: s }) {
|
|
955
|
+
let l = r, d = s, { t: m } = C(), _ = t(() => l.navigationPlacement === "before-banner" ? ["navigation", "banner"] : ["banner", "navigation"]);
|
|
956
|
+
return (t, s) => (u(), i("div", ut, [
|
|
957
|
+
a("a", dt, h(g(m)("layout.nav.skipToContent")), 1),
|
|
958
|
+
c(N, {
|
|
959
|
+
title: r.headerTitle,
|
|
960
|
+
subtitle: r.headerSubtitle,
|
|
961
|
+
eyebrow: r.headerEyebrow,
|
|
962
|
+
"title-href": r.headerTitleHref,
|
|
963
|
+
home: r.headerHome,
|
|
964
|
+
brand: r.headerBrand,
|
|
965
|
+
"brand-logo": r.headerBrandLogo,
|
|
966
|
+
logos: r.headerLogos,
|
|
967
|
+
"logos-title": r.headerLogosTitle,
|
|
968
|
+
links: r.headerLinks,
|
|
969
|
+
search: r.search,
|
|
970
|
+
languages: r.languages,
|
|
971
|
+
language: r.language,
|
|
972
|
+
"language-style": r.languagePlacement === "header" ? r.languageStyle : "",
|
|
973
|
+
onSearch: s[0] ||= (e) => d("search", e),
|
|
974
|
+
"onUpdate:language": s[1] ||= (e) => d("update:language", e)
|
|
975
|
+
}, o({ _: 2 }, [t.$slots.header ? {
|
|
976
|
+
name: "default",
|
|
977
|
+
fn: y(() => [p(t.$slots, "header")]),
|
|
978
|
+
key: "0"
|
|
979
|
+
} : void 0, t.$slots["header-brand"] ? {
|
|
980
|
+
name: "brand",
|
|
981
|
+
fn: y(() => [p(t.$slots, "header-brand")]),
|
|
982
|
+
key: "1"
|
|
983
|
+
} : void 0]), 1032, [
|
|
984
|
+
"title",
|
|
985
|
+
"subtitle",
|
|
986
|
+
"eyebrow",
|
|
987
|
+
"title-href",
|
|
988
|
+
"home",
|
|
989
|
+
"brand",
|
|
990
|
+
"brand-logo",
|
|
991
|
+
"logos",
|
|
992
|
+
"logos-title",
|
|
993
|
+
"links",
|
|
994
|
+
"search",
|
|
995
|
+
"languages",
|
|
996
|
+
"language",
|
|
997
|
+
"language-style"
|
|
998
|
+
]),
|
|
999
|
+
(u(!0), i(e, null, f(_.value, (a) => (u(), i(e, { key: a }, [a === "banner" ? (u(), n(H, {
|
|
1000
|
+
key: 0,
|
|
1001
|
+
variant: r.bannerVariant,
|
|
1002
|
+
image: r.bannerImage,
|
|
1003
|
+
"image-alt": r.bannerImageAlt,
|
|
1004
|
+
text: r.bannerText,
|
|
1005
|
+
caption: r.bannerCaption,
|
|
1006
|
+
"caption-label": r.bannerCaptionLabel,
|
|
1007
|
+
eyebrow: r.bannerEyebrow,
|
|
1008
|
+
title: r.bannerTitle,
|
|
1009
|
+
"title-href": r.bannerTitleHref,
|
|
1010
|
+
subtitle: r.bannerSubtitle,
|
|
1011
|
+
headline: r.bannerHeadline,
|
|
1012
|
+
enter: r.bannerEnter,
|
|
1013
|
+
strapline: r.bannerStrapline
|
|
1014
|
+
}, o({ _: 2 }, [t.$slots.banner ? {
|
|
1015
|
+
name: "default",
|
|
1016
|
+
fn: y(() => [p(t.$slots, "banner")]),
|
|
1017
|
+
key: "0"
|
|
1018
|
+
} : void 0]), 1032, [
|
|
1019
|
+
"variant",
|
|
1020
|
+
"image",
|
|
1021
|
+
"image-alt",
|
|
1022
|
+
"text",
|
|
1023
|
+
"caption",
|
|
1024
|
+
"caption-label",
|
|
1025
|
+
"eyebrow",
|
|
1026
|
+
"title",
|
|
1027
|
+
"title-href",
|
|
1028
|
+
"subtitle",
|
|
1029
|
+
"headline",
|
|
1030
|
+
"enter",
|
|
1031
|
+
"strapline"
|
|
1032
|
+
])) : (u(), n(U, {
|
|
1033
|
+
key: 1,
|
|
1034
|
+
links: r.navLinks,
|
|
1035
|
+
languages: r.languages,
|
|
1036
|
+
language: r.language,
|
|
1037
|
+
"language-switcher": r.languagePlacement === "navigation",
|
|
1038
|
+
notice: r.notice,
|
|
1039
|
+
"onUpdate:language": s[2] ||= (e) => d("update:language", e)
|
|
1040
|
+
}, o({ _: 2 }, [t.$slots.navigation ? {
|
|
1041
|
+
name: "default",
|
|
1042
|
+
fn: y(() => [p(t.$slots, "navigation")]),
|
|
1043
|
+
key: "0"
|
|
1044
|
+
} : void 0]), 1032, [
|
|
1045
|
+
"links",
|
|
1046
|
+
"languages",
|
|
1047
|
+
"language",
|
|
1048
|
+
"language-switcher",
|
|
1049
|
+
"notice"
|
|
1050
|
+
]))], 64))), 128)),
|
|
1051
|
+
c(W, null, o({ _: 2 }, [t.$slots.default ? {
|
|
1052
|
+
name: "default",
|
|
1053
|
+
fn: y(() => [p(t.$slots, "default")]),
|
|
1054
|
+
key: "0"
|
|
1055
|
+
} : void 0]), 1024),
|
|
1056
|
+
c(G, {
|
|
1057
|
+
variant: r.hyperlinksVariant,
|
|
1058
|
+
title: r.hyperlinksTitle,
|
|
1059
|
+
"title-href": r.hyperlinksTitleHref,
|
|
1060
|
+
subtitle: r.hyperlinksSubtitle,
|
|
1061
|
+
links: r.hyperlinks
|
|
1062
|
+
}, o({ _: 2 }, [t.$slots.hyperlinks ? {
|
|
1063
|
+
name: "default",
|
|
1064
|
+
fn: y(() => [p(t.$slots, "hyperlinks")]),
|
|
1065
|
+
key: "0"
|
|
1066
|
+
} : void 0]), 1032, [
|
|
1067
|
+
"variant",
|
|
1068
|
+
"title",
|
|
1069
|
+
"title-href",
|
|
1070
|
+
"subtitle",
|
|
1071
|
+
"links"
|
|
1072
|
+
]),
|
|
1073
|
+
c(K, {
|
|
1074
|
+
title: r.sponsorsTitle,
|
|
1075
|
+
sponsors: r.sponsors,
|
|
1076
|
+
groups: r.sponsorGroups
|
|
1077
|
+
}, o({ _: 2 }, [t.$slots.sponsors ? {
|
|
1078
|
+
name: "default",
|
|
1079
|
+
fn: y(() => [p(t.$slots, "sponsors")]),
|
|
1080
|
+
key: "0"
|
|
1081
|
+
} : void 0]), 1032, [
|
|
1082
|
+
"title",
|
|
1083
|
+
"sponsors",
|
|
1084
|
+
"groups"
|
|
1085
|
+
]),
|
|
1086
|
+
c(X, {
|
|
1087
|
+
text: r.footerText,
|
|
1088
|
+
links: r.footerLinks,
|
|
1089
|
+
social: r.footerSocial,
|
|
1090
|
+
"attribution-label": r.footerAttributionLabel,
|
|
1091
|
+
"attribution-text": r.footerAttributionText,
|
|
1092
|
+
"terms-href": r.footerTermsHref,
|
|
1093
|
+
"terms-label": r.footerTermsLabel
|
|
1094
|
+
}, o({ _: 2 }, [t.$slots.footer ? {
|
|
1095
|
+
name: "default",
|
|
1096
|
+
fn: y(() => [p(t.$slots, "footer")]),
|
|
1097
|
+
key: "0"
|
|
1098
|
+
} : void 0]), 1032, [
|
|
1099
|
+
"text",
|
|
1100
|
+
"links",
|
|
1101
|
+
"social",
|
|
1102
|
+
"attribution-label",
|
|
1103
|
+
"attribution-text",
|
|
1104
|
+
"terms-href",
|
|
1105
|
+
"terms-label"
|
|
1106
|
+
])
|
|
1107
|
+
]));
|
|
1108
|
+
}
|
|
1109
|
+
}, pt = /^.*?theme\/assets\//, Z = /* @__PURE__ */ new WeakMap();
|
|
1110
|
+
function mt(e) {
|
|
1111
|
+
let t = Z.get(e);
|
|
1112
|
+
if (!t) {
|
|
1113
|
+
t = /* @__PURE__ */ new Map();
|
|
1114
|
+
for (let [n, r] of Object.entries(e)) typeof r == "string" && r && t.set(Q(n), r);
|
|
1115
|
+
Z.set(e, t);
|
|
1116
|
+
}
|
|
1117
|
+
return t;
|
|
1118
|
+
}
|
|
1119
|
+
function Q(e) {
|
|
1120
|
+
return String(e).replaceAll("\\", "/").replace(pt, "").replace(/^(\.\/|\/)+/, "");
|
|
1121
|
+
}
|
|
1122
|
+
function $(e, t) {
|
|
1123
|
+
return !e || typeof e != "object" || !t ? null : mt(e).get(Q(t)) ?? null;
|
|
1124
|
+
}
|
|
1125
|
+
function ht(e, t) {
|
|
1126
|
+
return t ? $(e, `chrome/${String(t).replace(/^\/+/, "")}`) : null;
|
|
1127
|
+
}
|
|
1128
|
+
function gt(e, t) {
|
|
1129
|
+
return !t || typeof t != "string" ? null : /^(?:[a-z][a-z0-9+.-]*:|\/\/|\/)/i.test(t) ? t : $(e, t);
|
|
1130
|
+
}
|
|
1131
|
+
function _t(e, t) {
|
|
1132
|
+
if (!e || typeof DOMParser > "u") return e;
|
|
1133
|
+
let n = new DOMParser().parseFromString(`<body>${e}</body>`, "text/html"), r = !1;
|
|
1134
|
+
for (let e of n.body.querySelectorAll("img[src]")) {
|
|
1135
|
+
let n = t(e.getAttribute("src"));
|
|
1136
|
+
n && (e.setAttribute("src", n), r = !0);
|
|
1137
|
+
}
|
|
1138
|
+
return r ? n.body.innerHTML : e;
|
|
1139
|
+
}
|
|
1140
|
+
//#endregion
|
|
1141
|
+
export { ft as a, $e as c, W as d, U as f, _t as i, K as l, N as m, ht as n, X as o, H as p, gt as r, J as s, $ as t, G as u };
|