@museumwnf/viewer-layout 3.9.0 → 3.11.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 +63 -0
- package/dist/{FeaturedRecord-DJfyvfqt.js → FeaturedRecord-DGZ1dpyc.js} +1 -1
- package/dist/GlossaryPopover-B7E6BsjS.js +55 -0
- package/dist/{ItemDetailView-Dko_grJr.js → ItemDetailView-BAoP3CHx.js} +5 -5
- package/dist/{GlossaryPopover-DcptyNWI.js → MediaGallery-CHhf9xUZ.js} +11 -60
- package/dist/{OnDisplayIn-2ctLMfvw.js → OnDisplayIn-BCjxYjO7.js} +38 -38
- package/dist/{chrome-i1DOEyLS.js → PageShell-BT9SnXav.js} +125 -154
- package/dist/RecordView-C23v0iYh.js +276 -0
- package/dist/{SiteShell-CXMfLqzq.js → SiteShell-DPdTxtJ5.js} +2 -1
- package/dist/{Theme-tF4wOaNa.js → Theme-Dn5MBpQG.js} +26 -26
- package/dist/{TimelineEventList-gsoc-SBx.js → TimelineEventList-C5cbF_an.js} +40 -40
- package/dist/TimelineResultsView-xA0Wu7zv.js +1387 -0
- package/dist/chrome-DNsZQXrL.js +34 -0
- package/dist/components.js +1 -1
- package/dist/{content-Cu_44di8.js → content-DCtsRrwx.js} +13 -13
- package/dist/content.js +7 -6
- package/dist/{data-CGFEbGab.js → data-BINc9QjV.js} +1 -1
- package/dist/{data-CCcDVsTG.js → data-CXRsGwLQ.js} +1 -1
- package/dist/dxa.js +76 -74
- package/dist/index.js +9 -7
- package/dist/minisite.js +931 -0
- package/dist/standalone.js +140 -140
- package/dist/{themeSpecs-C2Y2abxd.js → themeSpecs-DP9xWiVJ.js} +1 -1
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +4 -4
- package/package.json +4 -3
- package/dist/RecordView-CdKx9tFy.js +0 -270
- package/dist/TimelineResultsView-C2-TnM71.js +0 -1386
|
@@ -39,7 +39,7 @@ var w = {
|
|
|
39
39
|
], le = {
|
|
40
40
|
key: 3,
|
|
41
41
|
class: "mwnf-header__languages"
|
|
42
|
-
},
|
|
42
|
+
}, N = { class: "mwnf-header__language-label" }, P = ["value"], F = ["value"], I = {
|
|
43
43
|
__name: "AppHeader",
|
|
44
44
|
props: {
|
|
45
45
|
title: {
|
|
@@ -101,19 +101,19 @@ var w = {
|
|
|
101
101
|
},
|
|
102
102
|
emits: ["search", "update:language"],
|
|
103
103
|
setup(o, { emit: c }) {
|
|
104
|
-
let S = o,
|
|
104
|
+
let S = o, I = c, L = _(), { t: R } = C(), z = t(() => S.languages.map((e) => typeof e == "string" ? {
|
|
105
105
|
code: e,
|
|
106
106
|
label: e
|
|
107
|
-
} : e)),
|
|
108
|
-
function
|
|
109
|
-
return !!(
|
|
107
|
+
} : e)), B = t(() => S.languageStyle && z.value.length > 1);
|
|
108
|
+
function V() {
|
|
109
|
+
return !!(L.default || L.brand || S.title || S.subtitle || S.eyebrow || S.brand || S.brandLogo?.src || S.logos.length || S.links.length || S.search || B.value);
|
|
110
110
|
}
|
|
111
|
-
let
|
|
112
|
-
function
|
|
113
|
-
|
|
111
|
+
let H = d("");
|
|
112
|
+
function U() {
|
|
113
|
+
I("search", H.value), H.value = "";
|
|
114
114
|
}
|
|
115
|
-
return (t, c) =>
|
|
116
|
-
g(
|
|
115
|
+
return (t, c) => V() ? (u(), i("header", w, [p(t.$slots, "default", {}, () => [a("div", T, [
|
|
116
|
+
g(L).brand || o.brand || o.brandLogo?.src || o.logos.length ? (u(), i("div", E, [g(L).brand || o.brand || o.brandLogo?.src ? (u(), n(m(o.home ? "a" : "span"), {
|
|
117
117
|
key: 0,
|
|
118
118
|
class: "mwnf-header__home",
|
|
119
119
|
href: o.home || void 0
|
|
@@ -155,7 +155,7 @@ var w = {
|
|
|
155
155
|
]),
|
|
156
156
|
_: 1
|
|
157
157
|
}, 8, ["href"])) : r("", !0),
|
|
158
|
-
o.links.length || o.search ||
|
|
158
|
+
o.links.length || o.search || B.value ? (u(), i("div", ne, [
|
|
159
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
160
|
class: "mwnf-header__link",
|
|
161
161
|
href: e.href,
|
|
@@ -166,76 +166,76 @@ var w = {
|
|
|
166
166
|
key: 1,
|
|
167
167
|
class: "mwnf-header__search",
|
|
168
168
|
role: "search",
|
|
169
|
-
onSubmit: x(
|
|
169
|
+
onSubmit: x(U, ["prevent"])
|
|
170
170
|
}, [b(a("input", {
|
|
171
|
-
"onUpdate:modelValue": c[0] ||= (e) =>
|
|
171
|
+
"onUpdate:modelValue": c[0] ||= (e) => H.value = e,
|
|
172
172
|
class: "mwnf-header__search-input",
|
|
173
173
|
type: "search",
|
|
174
174
|
placeholder: o.search.placeholder ?? "",
|
|
175
175
|
"aria-label": o.search.placeholder ?? o.search.submitLabel ?? ""
|
|
176
|
-
}, null, 8, ae), [[v,
|
|
176
|
+
}, null, 8, ae), [[v, H.value]]), a("button", {
|
|
177
177
|
class: "mwnf-header__search-submit",
|
|
178
178
|
type: "submit",
|
|
179
179
|
"aria-label": o.search.submitLabel ?? ""
|
|
180
180
|
}, h(o.search.submitText ?? "⌕"), 9, oe)], 32)) : r("", !0),
|
|
181
|
-
|
|
181
|
+
B.value && o.languageStyle === "buttons" ? (u(), i("div", {
|
|
182
182
|
key: 2,
|
|
183
183
|
class: "mwnf-header__languages",
|
|
184
184
|
role: "group",
|
|
185
|
-
"aria-label": g(
|
|
186
|
-
}, [(u(!0), i(e, null, f(
|
|
185
|
+
"aria-label": g(R)("layout.language.label")
|
|
186
|
+
}, [(u(!0), i(e, null, f(z.value, (e) => (u(), i("button", {
|
|
187
187
|
key: e.code,
|
|
188
188
|
type: "button",
|
|
189
189
|
class: l(["mwnf-header__language", { "mwnf-header__language--active": e.code === o.language }]),
|
|
190
190
|
"aria-pressed": e.code === o.language ? "true" : "false",
|
|
191
191
|
lang: e.code,
|
|
192
|
-
onClick: (t) =>
|
|
193
|
-
}, h(e.label), 11, ce))), 128))], 8, se)) :
|
|
192
|
+
onClick: (t) => I("update:language", e.code)
|
|
193
|
+
}, h(e.label), 11, ce))), 128))], 8, se)) : B.value ? (u(), i("label", le, [a("span", N, h(g(R)("layout.language.label")), 1), a("select", {
|
|
194
194
|
class: "mwnf-header__language-select",
|
|
195
195
|
value: o.language,
|
|
196
|
-
onChange: c[1] ||= (e) =>
|
|
197
|
-
}, [(u(!0), i(e, null, f(
|
|
196
|
+
onChange: c[1] ||= (e) => I("update:language", e.target.value)
|
|
197
|
+
}, [(u(!0), i(e, null, f(z.value, (e) => (u(), i("option", {
|
|
198
198
|
key: e.code,
|
|
199
199
|
value: e.code
|
|
200
|
-
}, h(e.label), 9,
|
|
200
|
+
}, h(e.label), 9, F))), 128))], 40, P)])) : r("", !0)
|
|
201
201
|
])) : r("", !0)
|
|
202
202
|
])])])) : r("", !0);
|
|
203
203
|
}
|
|
204
|
-
},
|
|
204
|
+
}, L = ["src", "alt"], R = {
|
|
205
205
|
key: 1,
|
|
206
206
|
class: "mwnf-banner__text"
|
|
207
|
-
},
|
|
207
|
+
}, z = {
|
|
208
208
|
key: 1,
|
|
209
209
|
class: "mwnf-banner__frame"
|
|
210
|
-
},
|
|
210
|
+
}, B = { class: "mwnf-banner__media" }, V = ["src", "alt"], H = {
|
|
211
211
|
key: 1,
|
|
212
212
|
class: "mwnf-banner__fallback",
|
|
213
213
|
"aria-hidden": "true"
|
|
214
|
-
},
|
|
214
|
+
}, U = {
|
|
215
215
|
key: 2,
|
|
216
216
|
class: "mwnf-banner__caption"
|
|
217
|
-
},
|
|
217
|
+
}, W = { class: "mwnf-banner__caption-name" }, ue = {
|
|
218
218
|
key: 0,
|
|
219
219
|
class: "mwnf-banner__caption-rest"
|
|
220
|
-
},
|
|
220
|
+
}, de = { class: "mwnf-banner__body" }, fe = {
|
|
221
221
|
key: 0,
|
|
222
222
|
class: "mwnf-banner__eyebrow"
|
|
223
|
-
},
|
|
223
|
+
}, pe = ["href", "aria-label"], me = {
|
|
224
224
|
key: 2,
|
|
225
225
|
class: "mwnf-banner__subtitle"
|
|
226
|
-
},
|
|
226
|
+
}, he = ["innerHTML"], ge = ["href", "aria-label"], _e = {
|
|
227
227
|
key: 5,
|
|
228
228
|
class: "mwnf-banner__strapline"
|
|
229
|
-
},
|
|
229
|
+
}, ve = {
|
|
230
230
|
key: 6,
|
|
231
231
|
class: "mwnf-banner__text"
|
|
232
|
-
},
|
|
232
|
+
}, ye = {
|
|
233
233
|
key: 7,
|
|
234
234
|
class: "mwnf-banner__caption"
|
|
235
|
-
},
|
|
235
|
+
}, be = { class: "mwnf-banner__caption-name" }, xe = {
|
|
236
236
|
key: 0,
|
|
237
237
|
class: "mwnf-banner__caption-rest"
|
|
238
|
-
},
|
|
238
|
+
}, G = {
|
|
239
239
|
__name: "AppBanner",
|
|
240
240
|
props: {
|
|
241
241
|
variant: {
|
|
@@ -300,8 +300,9 @@ var w = {
|
|
|
300
300
|
let e = c.caption;
|
|
301
301
|
if (!e) return null;
|
|
302
302
|
let t = typeof e == "string" ? e : e.name ?? "", n = typeof e == "string" ? "" : [
|
|
303
|
-
e.partner,
|
|
303
|
+
e.holder ?? e.partner,
|
|
304
304
|
e.location,
|
|
305
|
+
e.province,
|
|
305
306
|
e.country
|
|
306
307
|
].filter(Boolean).join(", ");
|
|
307
308
|
return {
|
|
@@ -312,14 +313,14 @@ var w = {
|
|
|
312
313
|
return (t, c) => g() ? (u(), i("section", {
|
|
313
314
|
key: 0,
|
|
314
315
|
class: l(["mwnf-banner", o.variant ? `mwnf-banner--${o.variant}` : ""])
|
|
315
|
-
}, [p(t.$slots, "default", {}, () => [o.variant ? (u(), i("div",
|
|
316
|
+
}, [p(t.$slots, "default", {}, () => [o.variant ? (u(), i("div", z, [a("div", B, [o.image && !C.value ? (u(), i("img", {
|
|
316
317
|
key: 0,
|
|
317
318
|
class: "mwnf-banner__image",
|
|
318
319
|
src: o.image,
|
|
319
320
|
alt: x.value,
|
|
320
321
|
onError: c[0] ||= (e) => C.value = !0
|
|
321
|
-
}, null, 40,
|
|
322
|
-
o.eyebrow ? (u(), i("p",
|
|
322
|
+
}, null, 40, V)) : (u(), i("div", H)), b.value && o.variant !== "section" ? (u(), i("p", U, [a("span", W, h(b.value.name), 1), b.value.rest ? (u(), i("span", ue, h(b.value.rest), 1)) : r("", !0)])) : r("", !0)]), a("div", de, [
|
|
323
|
+
o.eyebrow ? (u(), i("p", fe, h(o.eyebrow), 1)) : r("", !0),
|
|
323
324
|
o.title ? (u(), n(m(o.titleHref ? "a" : "p"), {
|
|
324
325
|
key: 1,
|
|
325
326
|
class: "mwnf-banner__title",
|
|
@@ -330,58 +331,58 @@ var w = {
|
|
|
330
331
|
class: "mwnf-banner__enter",
|
|
331
332
|
href: o.enter.href,
|
|
332
333
|
"aria-label": o.enter.ariaLabel
|
|
333
|
-
}, h(o.enter.label), 9,
|
|
334
|
+
}, h(o.enter.label), 9, pe)) : r("", !0)]),
|
|
334
335
|
_: 1
|
|
335
336
|
}, 8, ["href"])) : r("", !0),
|
|
336
|
-
o.subtitle ? (u(), i("p",
|
|
337
|
+
o.subtitle ? (u(), i("p", me, h(o.subtitle), 1)) : r("", !0),
|
|
337
338
|
v.value ? (u(), i("div", {
|
|
338
339
|
key: 3,
|
|
339
340
|
class: "mwnf-banner__headline",
|
|
340
341
|
innerHTML: v.value
|
|
341
|
-
}, null, 8,
|
|
342
|
+
}, null, 8, he)) : r("", !0),
|
|
342
343
|
o.variant !== "strip" && o.enter ? (u(), i("a", {
|
|
343
344
|
key: 4,
|
|
344
345
|
class: "mwnf-banner__enter",
|
|
345
346
|
href: o.enter.href,
|
|
346
347
|
"aria-label": o.enter.ariaLabel
|
|
347
|
-
}, h(o.enter.label), 9,
|
|
348
|
-
o.strapline ? (u(), i("p",
|
|
349
|
-
o.text ? (u(), i("p",
|
|
350
|
-
b.value && o.variant === "section" ? (u(), i("p",
|
|
348
|
+
}, h(o.enter.label), 9, ge)) : r("", !0),
|
|
349
|
+
o.strapline ? (u(), i("p", _e, h(o.strapline), 1)) : r("", !0),
|
|
350
|
+
o.text ? (u(), i("p", ve, h(o.text), 1)) : r("", !0),
|
|
351
|
+
b.value && o.variant === "section" ? (u(), i("p", ye, [a("span", be, h(b.value.name), 1), b.value.rest ? (u(), i("span", xe, h(b.value.rest), 1)) : r("", !0)])) : r("", !0)
|
|
351
352
|
])])) : (u(), i(e, { key: 0 }, [o.image ? (u(), i("img", {
|
|
352
353
|
key: 0,
|
|
353
354
|
class: "mwnf-banner__image",
|
|
354
355
|
src: o.image,
|
|
355
356
|
alt: o.imageAlt
|
|
356
|
-
}, null, 8,
|
|
357
|
+
}, null, 8, L)) : r("", !0), o.text ? (u(), i("p", R, h(o.text), 1)) : r("", !0)], 64))])], 2)) : r("", !0);
|
|
357
358
|
}
|
|
358
|
-
},
|
|
359
|
+
}, Se = ["aria-label"], Ce = { class: "mwnf-nav__bar" }, we = ["aria-expanded"], Te = {
|
|
359
360
|
key: 0,
|
|
360
361
|
id: "mwnf-nav-links",
|
|
361
362
|
class: "mwnf-nav__links"
|
|
362
|
-
},
|
|
363
|
+
}, Ee = [
|
|
363
364
|
"href",
|
|
364
365
|
"aria-current",
|
|
365
366
|
"aria-haspopup",
|
|
366
367
|
"target",
|
|
367
368
|
"rel"
|
|
368
|
-
],
|
|
369
|
+
], De = {
|
|
369
370
|
key: 0,
|
|
370
371
|
class: "mwnf-nav__sublinks"
|
|
371
|
-
},
|
|
372
|
+
}, Oe = [
|
|
372
373
|
"href",
|
|
373
374
|
"target",
|
|
374
375
|
"rel"
|
|
375
|
-
],
|
|
376
|
+
], ke = {
|
|
376
377
|
key: 1,
|
|
377
378
|
class: "mwnf-nav__language"
|
|
378
|
-
},
|
|
379
|
+
}, Ae = { class: "mwnf-nav__language-label" }, je = ["value"], Me = ["value"], Ne = {
|
|
379
380
|
key: 0,
|
|
380
381
|
class: "mwnf-nav__notice"
|
|
381
|
-
},
|
|
382
|
+
}, Pe = {
|
|
382
383
|
key: 0,
|
|
383
384
|
class: "mwnf-nav__notice-title"
|
|
384
|
-
},
|
|
385
|
+
}, K = {
|
|
385
386
|
__name: "AppNavigation",
|
|
386
387
|
props: {
|
|
387
388
|
links: {
|
|
@@ -419,7 +420,7 @@ var w = {
|
|
|
419
420
|
key: 0,
|
|
420
421
|
class: l(["mwnf-nav", { "mwnf-nav--open": w.value }]),
|
|
421
422
|
"aria-label": g(y)("layout.nav.label")
|
|
422
|
-
}, [a("div",
|
|
423
|
+
}, [a("div", Ce, [
|
|
423
424
|
n.links.length ? (u(), i("button", {
|
|
424
425
|
key: 0,
|
|
425
426
|
type: "button",
|
|
@@ -430,8 +431,8 @@ var w = {
|
|
|
430
431
|
}, [o[4] ||= a("span", {
|
|
431
432
|
class: "mwnf-nav__toggle-icon",
|
|
432
433
|
"aria-hidden": "true"
|
|
433
|
-
}, "☰", -1), s(" " + h(g(y)("layout.nav.menu")), 1)], 8,
|
|
434
|
-
p(t.$slots, "default", {}, () => [n.links.length ? (u(), i("ul",
|
|
434
|
+
}, "☰", -1), s(" " + h(g(y)("layout.nav.menu")), 1)], 8, we)) : r("", !0),
|
|
435
|
+
p(t.$slots, "default", {}, () => [n.links.length ? (u(), i("ul", Te, [(u(!0), i(e, null, f(n.links, (t) => (u(), i("li", {
|
|
435
436
|
key: t.href ?? t.label,
|
|
436
437
|
class: l({ "mwnf-nav__item--parent": t.children?.length })
|
|
437
438
|
}, [a("a", {
|
|
@@ -442,53 +443,53 @@ var w = {
|
|
|
442
443
|
target: t.external ? "_blank" : void 0,
|
|
443
444
|
rel: t.external ? "noopener" : void 0,
|
|
444
445
|
onClick: o[1] ||= (e) => w.value = !1
|
|
445
|
-
}, h(t.label), 11,
|
|
446
|
+
}, h(t.label), 11, Ee), t.children?.length ? (u(), i("ul", De, [(u(!0), i(e, null, f(t.children, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
|
|
446
447
|
class: "mwnf-nav__sublink",
|
|
447
448
|
href: e.href,
|
|
448
449
|
target: e.external ? "_blank" : void 0,
|
|
449
450
|
rel: e.external ? "noopener" : void 0,
|
|
450
451
|
onClick: o[2] ||= (e) => w.value = !1
|
|
451
|
-
}, h(e.label), 9,
|
|
452
|
-
x.value ? (u(), i("label",
|
|
452
|
+
}, h(e.label), 9, Oe)]))), 128))])) : r("", !0)], 2))), 128))])) : r("", !0)]),
|
|
453
|
+
x.value ? (u(), i("label", ke, [a("span", Ae, h(g(y)("layout.language.label")), 1), a("select", {
|
|
453
454
|
class: "mwnf-nav__language-select",
|
|
454
455
|
value: n.language,
|
|
455
456
|
onChange: o[3] ||= (e) => m("update:language", e.target.value)
|
|
456
457
|
}, [(u(!0), i(e, null, f(b.value, (e) => (u(), i("option", {
|
|
457
458
|
key: e.code,
|
|
458
459
|
value: e.code
|
|
459
|
-
}, h(e.label), 9,
|
|
460
|
-
]), n.notice && (n.notice.text || n.notice.title) ? (u(), i("p",
|
|
460
|
+
}, h(e.label), 9, Me))), 128))], 40, je)])) : r("", !0)
|
|
461
|
+
]), n.notice && (n.notice.text || n.notice.title) ? (u(), i("p", Ne, [n.notice.title ? (u(), i("strong", Pe, h(n.notice.title), 1)) : r("", !0), s(" " + h(n.notice.text), 1)])) : r("", !0)], 10, Se)) : r("", !0);
|
|
461
462
|
}
|
|
462
|
-
},
|
|
463
|
+
}, Fe = {
|
|
463
464
|
key: 0,
|
|
464
465
|
id: "mwnf-content",
|
|
465
466
|
class: "mwnf-content"
|
|
466
|
-
},
|
|
467
|
+
}, q = {
|
|
467
468
|
__name: "AppContent",
|
|
468
469
|
setup(e) {
|
|
469
470
|
let t = _();
|
|
470
471
|
function n() {
|
|
471
472
|
return !!t.default;
|
|
472
473
|
}
|
|
473
|
-
return (e, t) => n() ? (u(), i("main",
|
|
474
|
+
return (e, t) => n() ? (u(), i("main", Fe, [p(e.$slots, "default")])) : r("", !0);
|
|
474
475
|
}
|
|
475
|
-
},
|
|
476
|
+
}, Ie = ["aria-label"], Le = {
|
|
476
477
|
key: 0,
|
|
477
478
|
class: "mwnf-hyperlinks__title"
|
|
478
|
-
},
|
|
479
|
+
}, Re = {
|
|
479
480
|
key: 1,
|
|
480
481
|
class: "mwnf-hyperlinks__subtitle"
|
|
481
|
-
},
|
|
482
|
+
}, ze = {
|
|
482
483
|
key: 1,
|
|
483
484
|
class: "mwnf-hyperlinks__title"
|
|
484
|
-
},
|
|
485
|
+
}, Be = { class: "mwnf-hyperlinks__list" }, Ve = [
|
|
485
486
|
"href",
|
|
486
487
|
"target",
|
|
487
488
|
"rel"
|
|
488
|
-
],
|
|
489
|
+
], He = { class: "mwnf-hyperlinks__label" }, Ue = {
|
|
489
490
|
key: 0,
|
|
490
491
|
class: "mwnf-hyperlinks__description"
|
|
491
|
-
},
|
|
492
|
+
}, J = {
|
|
492
493
|
__name: "AppHyperlinks",
|
|
493
494
|
props: {
|
|
494
495
|
variant: {
|
|
@@ -526,28 +527,28 @@ var w = {
|
|
|
526
527
|
class: "mwnf-hyperlinks__lockup",
|
|
527
528
|
href: t.titleHref || void 0
|
|
528
529
|
}, {
|
|
529
|
-
default: y(() => [t.title ? (u(), i("p",
|
|
530
|
+
default: y(() => [t.title ? (u(), i("p", Le, h(t.title), 1)) : r("", !0), t.subtitle ? (u(), i("p", Re, h(t.subtitle), 1)) : r("", !0)]),
|
|
530
531
|
_: 1
|
|
531
|
-
}, 8, ["href"])) : r("", !0)], 64)) : t.title ? (u(), i("p",
|
|
532
|
+
}, 8, ["href"])) : r("", !0)], 64)) : t.title ? (u(), i("p", ze, h(t.title), 1)) : r("", !0), p(o.$slots, "default", {}, () => [a("ul", Be, [(u(!0), i(e, null, f(t.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
|
|
532
533
|
class: "mwnf-hyperlinks__link",
|
|
533
534
|
href: e.href,
|
|
534
535
|
target: e.external ? "_blank" : void 0,
|
|
535
536
|
rel: e.external ? "noopener" : void 0
|
|
536
|
-
}, [a("span",
|
|
537
|
+
}, [a("span", He, h(e.label), 1), e.description ? (u(), i("span", Ue, h(e.description), 1)) : r("", !0)], 8, Ve)]))), 128))])])], 10, Ie)) : r("", !0);
|
|
537
538
|
}
|
|
538
|
-
},
|
|
539
|
+
}, We = ["aria-label"], Ge = {
|
|
539
540
|
key: 0,
|
|
540
541
|
class: "mwnf-sponsors__title"
|
|
541
|
-
},
|
|
542
|
+
}, Ke = {
|
|
542
543
|
key: 0,
|
|
543
544
|
class: "mwnf-sponsors__list"
|
|
544
|
-
},
|
|
545
|
+
}, qe = ["src", "alt"], Je = {
|
|
545
546
|
key: 1,
|
|
546
547
|
class: "mwnf-sponsors__groups"
|
|
547
|
-
},
|
|
548
|
+
}, Ye = {
|
|
548
549
|
key: 0,
|
|
549
550
|
class: "mwnf-sponsors__group-title"
|
|
550
|
-
},
|
|
551
|
+
}, Xe = { class: "mwnf-sponsors__list" }, Ze = ["src", "alt"], Y = {
|
|
551
552
|
__name: "AppSponsors",
|
|
552
553
|
props: {
|
|
553
554
|
title: {
|
|
@@ -572,7 +573,7 @@ var w = {
|
|
|
572
573
|
key: 0,
|
|
573
574
|
class: "mwnf-sponsors",
|
|
574
575
|
"aria-label": o.title || g(d)("layout.sponsors.label")
|
|
575
|
-
}, [o.title ? (u(), i("p",
|
|
576
|
+
}, [o.title ? (u(), i("p", Ge, h(o.title), 1)) : r("", !0), p(t.$slots, "default", {}, () => [o.sponsors.length ? (u(), i("ul", Ke, [(u(!0), i(e, null, f(o.sponsors, (t) => (u(), i("li", { key: t.name }, [(u(), n(m(t.href ? "a" : "span"), {
|
|
576
577
|
class: "mwnf-sponsors__item",
|
|
577
578
|
href: t.href,
|
|
578
579
|
target: t.href ? "_blank" : void 0,
|
|
@@ -583,16 +584,16 @@ var w = {
|
|
|
583
584
|
class: "mwnf-sponsors__logo",
|
|
584
585
|
src: t.logo,
|
|
585
586
|
alt: t.name
|
|
586
|
-
}, null, 8,
|
|
587
|
+
}, null, 8, qe)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
|
|
587
588
|
_: 2
|
|
588
589
|
}, 1032, [
|
|
589
590
|
"href",
|
|
590
591
|
"target",
|
|
591
592
|
"rel"
|
|
592
|
-
]))]))), 128))])) : r("", !0), v.value.length ? (u(), i("div",
|
|
593
|
+
]))]))), 128))])) : r("", !0), v.value.length ? (u(), i("div", Je, [(u(!0), i(e, null, f(v.value, (t) => (u(), i("div", {
|
|
593
594
|
key: t.title,
|
|
594
595
|
class: "mwnf-sponsors__group"
|
|
595
|
-
}, [t.title ? (u(), i("p",
|
|
596
|
+
}, [t.title ? (u(), i("p", Ye, h(t.title), 1)) : r("", !0), a("ul", Xe, [(u(!0), i(e, null, f(t.sponsors, (t) => (u(), i("li", { key: t.name }, [(u(), n(m(t.href ? "a" : "span"), {
|
|
596
597
|
class: "mwnf-sponsors__item",
|
|
597
598
|
href: t.href,
|
|
598
599
|
target: t.href ? "_blank" : void 0,
|
|
@@ -604,16 +605,16 @@ var w = {
|
|
|
604
605
|
class: "mwnf-sponsors__logo",
|
|
605
606
|
src: t.logo,
|
|
606
607
|
alt: t.name
|
|
607
|
-
}, null, 8,
|
|
608
|
+
}, null, 8, Ze)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
|
|
608
609
|
_: 2
|
|
609
610
|
}, 1032, [
|
|
610
611
|
"href",
|
|
611
612
|
"target",
|
|
612
613
|
"rel",
|
|
613
614
|
"title"
|
|
614
|
-
]))]))), 128))])]))), 128))])) : r("", !0)])], 8,
|
|
615
|
+
]))]))), 128))])]))), 128))])) : r("", !0)])], 8, We)) : r("", !0);
|
|
615
616
|
}
|
|
616
|
-
},
|
|
617
|
+
}, X = {
|
|
617
618
|
youtube: {
|
|
618
619
|
viewBox: "0 0 448 512",
|
|
619
620
|
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"
|
|
@@ -638,7 +639,7 @@ var w = {
|
|
|
638
639
|
viewBox: "0 0 448 512",
|
|
639
640
|
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"
|
|
640
641
|
}
|
|
641
|
-
},
|
|
642
|
+
}, Qe = Object.freeze([
|
|
642
643
|
{
|
|
643
644
|
label: "YouTube",
|
|
644
645
|
href: "https://www.youtube.com/channel/UC5X2a5jDFyIfTEV5prWNF5Q",
|
|
@@ -669,22 +670,22 @@ var w = {
|
|
|
669
670
|
href: "https://www.linkedin.com/company/museum-with-no-frontiers/",
|
|
670
671
|
icon: "linkedin"
|
|
671
672
|
}
|
|
672
|
-
]),
|
|
673
|
+
]), $e = {
|
|
673
674
|
key: 0,
|
|
674
675
|
class: "mwnf-footer__social"
|
|
675
|
-
},
|
|
676
|
+
}, et = [
|
|
676
677
|
"href",
|
|
677
678
|
"aria-label",
|
|
678
679
|
"title"
|
|
679
|
-
],
|
|
680
|
+
], tt = ["viewBox"], nt = ["d"], Z = {
|
|
680
681
|
__name: "SocialLinks",
|
|
681
682
|
props: { links: {
|
|
682
683
|
type: Array,
|
|
683
684
|
default: () => []
|
|
684
685
|
} },
|
|
685
686
|
setup(n) {
|
|
686
|
-
let o = n, s = t(() => o.links.filter((e) =>
|
|
687
|
-
return (t, n) => s.value.length ? (u(), i("ul",
|
|
687
|
+
let o = n, s = t(() => o.links.filter((e) => X[e.icon]));
|
|
688
|
+
return (t, n) => s.value.length ? (u(), i("ul", $e, [(u(!0), i(e, null, f(s.value, (e) => (u(), i("li", { key: e.href }, [a("a", {
|
|
688
689
|
class: "mwnf-footer__social-link",
|
|
689
690
|
href: e.href,
|
|
690
691
|
target: "_blank",
|
|
@@ -693,34 +694,34 @@ var w = {
|
|
|
693
694
|
title: e.label
|
|
694
695
|
}, [(u(), i("svg", {
|
|
695
696
|
class: "mwnf-footer__social-icon",
|
|
696
|
-
viewBox: g(
|
|
697
|
+
viewBox: g(X)[e.icon].viewBox,
|
|
697
698
|
"aria-hidden": "true",
|
|
698
699
|
focusable: "false"
|
|
699
700
|
}, [a("path", {
|
|
700
701
|
fill: "currentColor",
|
|
701
|
-
d: g(
|
|
702
|
-
}, null, 8,
|
|
702
|
+
d: g(X)[e.icon].path
|
|
703
|
+
}, null, 8, nt)], 8, tt))], 8, et)]))), 128))])) : r("", !0);
|
|
703
704
|
}
|
|
704
|
-
},
|
|
705
|
+
}, Q = {
|
|
705
706
|
key: 0,
|
|
706
707
|
class: "mwnf-footer"
|
|
707
|
-
},
|
|
708
|
+
}, rt = {
|
|
708
709
|
key: 0,
|
|
709
710
|
class: "mwnf-footer__links"
|
|
710
|
-
},
|
|
711
|
+
}, it = [
|
|
711
712
|
"href",
|
|
712
713
|
"target",
|
|
713
714
|
"rel"
|
|
714
|
-
],
|
|
715
|
+
], at = {
|
|
715
716
|
key: 1,
|
|
716
717
|
class: "mwnf-footer__text"
|
|
717
|
-
},
|
|
718
|
+
}, ot = {
|
|
718
719
|
key: 2,
|
|
719
720
|
class: "mwnf-footer__attribution"
|
|
720
|
-
},
|
|
721
|
+
}, st = {
|
|
721
722
|
key: 0,
|
|
722
723
|
class: "mwnf-footer__attribution-label"
|
|
723
|
-
},
|
|
724
|
+
}, ct = ["href"], $ = {
|
|
724
725
|
__name: "AppFooter",
|
|
725
726
|
props: {
|
|
726
727
|
text: {
|
|
@@ -753,34 +754,34 @@ var w = {
|
|
|
753
754
|
}
|
|
754
755
|
},
|
|
755
756
|
setup(n) {
|
|
756
|
-
let o = n, l = _(), d = t(() => o.social.filter((e) =>
|
|
757
|
+
let o = n, l = _(), d = t(() => o.social.filter((e) => X[e.icon]));
|
|
757
758
|
function m() {
|
|
758
759
|
return !!(l.default || o.text || o.links.length || o.attributionText || d.value.length);
|
|
759
760
|
}
|
|
760
|
-
return (t, o) => m() ? (u(), i("footer",
|
|
761
|
-
n.links.length ? (u(), i("ul",
|
|
761
|
+
return (t, o) => m() ? (u(), i("footer", Q, [p(t.$slots, "default", {}, () => [
|
|
762
|
+
n.links.length ? (u(), i("ul", rt, [(u(!0), i(e, null, f(n.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
|
|
762
763
|
class: "mwnf-footer__link",
|
|
763
764
|
href: e.href,
|
|
764
765
|
target: e.external ? "_blank" : void 0,
|
|
765
766
|
rel: e.external ? "noopener" : void 0
|
|
766
|
-
}, h(e.label), 9,
|
|
767
|
-
n.text ? (u(), i("p",
|
|
768
|
-
n.attributionText ? (u(), i("p",
|
|
769
|
-
n.attributionLabel ? (u(), i("span",
|
|
767
|
+
}, h(e.label), 9, it)]))), 128))])) : r("", !0),
|
|
768
|
+
n.text ? (u(), i("p", at, h(n.text), 1)) : r("", !0),
|
|
769
|
+
n.attributionText ? (u(), i("p", ot, [
|
|
770
|
+
n.attributionLabel ? (u(), i("span", st, h(n.attributionLabel), 1)) : r("", !0),
|
|
770
771
|
s(" " + h(n.attributionText) + " ", 1),
|
|
771
772
|
n.termsHref ? (u(), i("a", {
|
|
772
773
|
key: 1,
|
|
773
774
|
class: "mwnf-footer__terms",
|
|
774
775
|
href: n.termsHref
|
|
775
|
-
}, h(n.termsLabel), 9,
|
|
776
|
+
}, h(n.termsLabel), 9, ct)) : r("", !0)
|
|
776
777
|
])) : r("", !0),
|
|
777
|
-
c(
|
|
778
|
+
c(Z, { links: d.value }, null, 8, ["links"])
|
|
778
779
|
])])) : r("", !0);
|
|
779
780
|
}
|
|
780
|
-
},
|
|
781
|
+
}, lt = { class: "mwnf-page" }, ut = {
|
|
781
782
|
class: "mwnf-skip-link",
|
|
782
783
|
href: "#mwnf-content"
|
|
783
|
-
},
|
|
784
|
+
}, dt = {
|
|
784
785
|
__name: "PageShell",
|
|
785
786
|
props: {
|
|
786
787
|
headerTitle: {
|
|
@@ -971,9 +972,9 @@ var w = {
|
|
|
971
972
|
emits: ["update:language", "search"],
|
|
972
973
|
setup(r, { emit: s }) {
|
|
973
974
|
let l = r, d = s, { t: m } = C(), _ = t(() => l.navigationPlacement === "before-banner" ? ["navigation", "banner"] : ["banner", "navigation"]);
|
|
974
|
-
return (t, s) => (u(), i("div",
|
|
975
|
-
a("a",
|
|
976
|
-
c(
|
|
975
|
+
return (t, s) => (u(), i("div", lt, [
|
|
976
|
+
a("a", ut, h(g(m)("layout.nav.skipToContent")), 1),
|
|
977
|
+
c(I, {
|
|
977
978
|
title: r.headerTitle,
|
|
978
979
|
subtitle: r.headerSubtitle,
|
|
979
980
|
eyebrow: r.headerEyebrow,
|
|
@@ -1014,7 +1015,7 @@ var w = {
|
|
|
1014
1015
|
"language",
|
|
1015
1016
|
"language-style"
|
|
1016
1017
|
]),
|
|
1017
|
-
(u(!0), i(e, null, f(_.value, (a) => (u(), i(e, { key: a }, [a === "banner" ? (u(), n(
|
|
1018
|
+
(u(!0), i(e, null, f(_.value, (a) => (u(), i(e, { key: a }, [a === "banner" ? (u(), n(G, {
|
|
1018
1019
|
key: 0,
|
|
1019
1020
|
variant: r.bannerVariant,
|
|
1020
1021
|
image: r.bannerImage,
|
|
@@ -1047,7 +1048,7 @@ var w = {
|
|
|
1047
1048
|
"headline",
|
|
1048
1049
|
"enter",
|
|
1049
1050
|
"strapline"
|
|
1050
|
-
])) : (u(), n(
|
|
1051
|
+
])) : (u(), n(K, {
|
|
1051
1052
|
key: 1,
|
|
1052
1053
|
links: r.navLinks,
|
|
1053
1054
|
languages: r.languages,
|
|
@@ -1066,12 +1067,12 @@ var w = {
|
|
|
1066
1067
|
"language-switcher",
|
|
1067
1068
|
"notice"
|
|
1068
1069
|
]))], 64))), 128)),
|
|
1069
|
-
c(
|
|
1070
|
+
c(q, null, o({ _: 2 }, [t.$slots.default ? {
|
|
1070
1071
|
name: "default",
|
|
1071
1072
|
fn: y(() => [p(t.$slots, "default")]),
|
|
1072
1073
|
key: "0"
|
|
1073
1074
|
} : void 0]), 1024),
|
|
1074
|
-
c(
|
|
1075
|
+
c(J, {
|
|
1075
1076
|
variant: r.hyperlinksVariant,
|
|
1076
1077
|
title: r.hyperlinksTitle,
|
|
1077
1078
|
"title-href": r.hyperlinksTitleHref,
|
|
@@ -1088,7 +1089,7 @@ var w = {
|
|
|
1088
1089
|
"subtitle",
|
|
1089
1090
|
"links"
|
|
1090
1091
|
]),
|
|
1091
|
-
c(
|
|
1092
|
+
c(Y, {
|
|
1092
1093
|
title: r.sponsorsTitle,
|
|
1093
1094
|
sponsors: r.sponsors,
|
|
1094
1095
|
groups: r.sponsorGroups
|
|
@@ -1101,7 +1102,7 @@ var w = {
|
|
|
1101
1102
|
"sponsors",
|
|
1102
1103
|
"groups"
|
|
1103
1104
|
]),
|
|
1104
|
-
c(
|
|
1105
|
+
c($, {
|
|
1105
1106
|
text: r.footerText,
|
|
1106
1107
|
links: r.footerLinks,
|
|
1107
1108
|
social: r.footerSocial,
|
|
@@ -1124,36 +1125,6 @@ var w = {
|
|
|
1124
1125
|
])
|
|
1125
1126
|
]));
|
|
1126
1127
|
}
|
|
1127
|
-
}
|
|
1128
|
-
function gt(e) {
|
|
1129
|
-
let t = Z.get(e);
|
|
1130
|
-
if (!t) {
|
|
1131
|
-
t = /* @__PURE__ */ new Map();
|
|
1132
|
-
for (let [n, r] of Object.entries(e)) typeof r == "string" && r && t.set(Q(n), r);
|
|
1133
|
-
Z.set(e, t);
|
|
1134
|
-
}
|
|
1135
|
-
return t;
|
|
1136
|
-
}
|
|
1137
|
-
function Q(e) {
|
|
1138
|
-
return String(e).replaceAll("\\", "/").replace(X, "").replace(/^(\.\/|\/)+/, "");
|
|
1139
|
-
}
|
|
1140
|
-
function $(e, t) {
|
|
1141
|
-
return !e || typeof e != "object" || !t ? null : gt(e).get(Q(t)) ?? null;
|
|
1142
|
-
}
|
|
1143
|
-
function _t(e, t) {
|
|
1144
|
-
return t ? $(e, `chrome/${String(t).replace(/^\/+/, "")}`) : null;
|
|
1145
|
-
}
|
|
1146
|
-
function vt(e, t) {
|
|
1147
|
-
return !t || typeof t != "string" ? null : /^(?:[a-z][a-z0-9+.-]*:|\/\/|\/)/i.test(t) ? t : $(e, t);
|
|
1148
|
-
}
|
|
1149
|
-
function yt(e, t) {
|
|
1150
|
-
if (!e || typeof DOMParser > "u") return e;
|
|
1151
|
-
let n = new DOMParser().parseFromString(`<body>${e}</body>`, "text/html"), r = !1;
|
|
1152
|
-
for (let e of n.body.querySelectorAll("img[src]")) {
|
|
1153
|
-
let n = t(e.getAttribute("src"));
|
|
1154
|
-
n && (e.setAttribute("src", n), r = !0);
|
|
1155
|
-
}
|
|
1156
|
-
return r ? n.body.innerHTML : e;
|
|
1157
|
-
}
|
|
1128
|
+
};
|
|
1158
1129
|
//#endregion
|
|
1159
|
-
export {
|
|
1130
|
+
export { Y as a, K as c, Qe as i, G as l, $ as n, J as o, Z as r, q as s, dt as t, I as u };
|