@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
package/dist/standalone.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as e } from "./chrome-
|
|
2
|
-
import {
|
|
3
|
-
import { n as i, t as a } from "./RecordView-
|
|
4
|
-
import { t as o } from "./SiteShell-
|
|
1
|
+
import { r as e } from "./chrome-DNsZQXrL.js";
|
|
2
|
+
import { s as t, t as n, u as r } from "./MediaGallery-CHhf9xUZ.js";
|
|
3
|
+
import { n as i, t as a } from "./RecordView-C23v0iYh.js";
|
|
4
|
+
import { t as o } from "./SiteShell-DPdTxtJ5.js";
|
|
5
5
|
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useSlots as E, watch as D, withCtx as O } from "vue";
|
|
6
|
-
import { byId as k, loadEntities as A, pictureCredits as j,
|
|
6
|
+
import { byId as k, loadEntities as A, pictureCredits as j, picturesInLanguage as M, removeEndingPoint as N, renderBlock as P, renderInline as F, renderPlain as I, useDataPackage as L, useI18n as R, useSection as ee, useSiteConfig as z } from "@museumwnf/viewer-core";
|
|
7
7
|
//#region src/standalone/Banner.vue
|
|
8
|
-
var
|
|
8
|
+
var B = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "mwnf-standalone-banner__title"
|
|
11
|
-
},
|
|
11
|
+
}, V = {
|
|
12
12
|
__name: "Banner",
|
|
13
13
|
props: {
|
|
14
14
|
image: {
|
|
@@ -24,26 +24,26 @@ var z = {
|
|
|
24
24
|
return (t, n) => (b(), d("div", {
|
|
25
25
|
class: "mwnf-standalone-banner",
|
|
26
26
|
style: y(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
|
|
27
|
-
}, [e.title ? (b(), d("h1",
|
|
27
|
+
}, [e.title ? (b(), d("h1", B, [f("span", null, w(e.title), 1)])) : u("", !0)], 4));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/standalone/chrome.js
|
|
32
|
-
function
|
|
33
|
-
let t =
|
|
32
|
+
function H() {
|
|
33
|
+
let t = z();
|
|
34
34
|
return (n) => e(t.chrome, n);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function U(e, t) {
|
|
37
37
|
return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function W(e = /* @__PURE__ */ new Date()) {
|
|
40
40
|
let t = new Date(e.getFullYear(), 0, 1);
|
|
41
41
|
return Math.round((new Date(e.getFullYear(), e.getMonth(), e.getDate()) - t) / 864e5);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
return e?.length ? e[
|
|
43
|
+
function G(e, t = /* @__PURE__ */ new Date()) {
|
|
44
|
+
return e?.length ? e[W(t) % e.length] : null;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function K(e) {
|
|
47
47
|
let [t, ...n] = String(e ?? "").split("*")[0].trim().split(";");
|
|
48
48
|
return !t || n.length < 5 ? "" : [
|
|
49
49
|
"mwnf3",
|
|
@@ -56,16 +56,16 @@ function G(e) {
|
|
|
56
56
|
var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
57
57
|
key: 0,
|
|
58
58
|
class: "mwnf-standalone-sponsors__text"
|
|
59
|
-
}, re = ["innerHTML"], ie = { key: 1 }, ae = ["innerHTML"],
|
|
59
|
+
}, re = ["innerHTML"], ie = { key: 1 }, ae = ["innerHTML"], q = {
|
|
60
60
|
key: 1,
|
|
61
61
|
class: "mwnf-standalone-sponsors__title"
|
|
62
|
-
},
|
|
62
|
+
}, J = {
|
|
63
63
|
key: 2,
|
|
64
64
|
class: "mwnf-standalone-sponsors__logos"
|
|
65
|
-
},
|
|
65
|
+
}, oe = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "mwnf-standalone-sponsors__note"
|
|
68
|
-
},
|
|
68
|
+
}, se = ["src", "alt"], ce = ["innerHTML"], le = ["href"], ue = ["src", "alt"], de = ["src", "alt"], fe = {
|
|
69
69
|
key: 3,
|
|
70
70
|
class: "mwnf-standalone-sponsors__links"
|
|
71
71
|
}, Y = {
|
|
@@ -75,22 +75,22 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
75
75
|
default: () => []
|
|
76
76
|
} },
|
|
77
77
|
setup(e) {
|
|
78
|
-
let t = e, { t:
|
|
78
|
+
let t = e, { t: n } = R(), i = H(), a = c(() => t.columns.map((e, t) => ({
|
|
79
79
|
key: t,
|
|
80
80
|
width: e.width ?? null,
|
|
81
|
-
lead: e.lead ?
|
|
82
|
-
text: e.text ?
|
|
81
|
+
lead: e.lead ? F(n(e.lead)) : "",
|
|
82
|
+
text: e.text ? F(n(e.text)) : "",
|
|
83
83
|
break: !!e.break,
|
|
84
|
-
title: e.title ?
|
|
84
|
+
title: e.title ? n(e.title) : "",
|
|
85
85
|
logos: (e.logos ?? []).map((e) => ({
|
|
86
86
|
src: i(e.src) ?? "",
|
|
87
|
-
alt: e.alt ?
|
|
87
|
+
alt: e.alt ? n(e.alt) : "",
|
|
88
88
|
href: e.href ?? "",
|
|
89
|
-
note: e.note ?
|
|
89
|
+
note: e.note ? P(n(e.note)) : ""
|
|
90
90
|
})),
|
|
91
91
|
links: (e.links ?? []).map((e) => ({
|
|
92
92
|
...e,
|
|
93
|
-
label:
|
|
93
|
+
label: n(e.label)
|
|
94
94
|
}))
|
|
95
95
|
})));
|
|
96
96
|
return (e, t) => (b(), d("div", te, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("div", {
|
|
@@ -109,14 +109,14 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
109
109
|
innerHTML: e.text
|
|
110
110
|
}, null, 8, ae)) : u("", !0)
|
|
111
111
|
])) : u("", !0),
|
|
112
|
-
e.title ? (b(), d("p",
|
|
113
|
-
e.logos.length ? (b(), d("ul",
|
|
112
|
+
e.title ? (b(), d("p", q, w(e.title), 1)) : u("", !0),
|
|
113
|
+
e.logos.length ? (b(), d("ul", J, [(b(!0), d(s, null, S(e.logos, (e) => (b(), d("li", { key: e.src }, [e.note ? (b(), d("details", oe, [f("summary", null, [f("img", {
|
|
114
114
|
src: e.src,
|
|
115
115
|
alt: e.alt
|
|
116
|
-
}, null, 8,
|
|
116
|
+
}, null, 8, se)]), f("div", {
|
|
117
117
|
class: "mwnf-standalone-sponsors__note-body",
|
|
118
118
|
innerHTML: e.note
|
|
119
|
-
}, null, 8,
|
|
119
|
+
}, null, 8, ce)])) : e.href ? (b(), d("a", {
|
|
120
120
|
key: 1,
|
|
121
121
|
href: e.href,
|
|
122
122
|
target: "_blank",
|
|
@@ -124,12 +124,12 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
124
124
|
}, [f("img", {
|
|
125
125
|
src: e.src,
|
|
126
126
|
alt: e.alt
|
|
127
|
-
}, null, 8,
|
|
127
|
+
}, null, 8, ue)], 8, le)) : (b(), d("img", {
|
|
128
128
|
key: 2,
|
|
129
129
|
src: e.src,
|
|
130
130
|
alt: e.alt
|
|
131
|
-
}, null, 8,
|
|
132
|
-
e.links.length ? (b(), d("ul",
|
|
131
|
+
}, null, 8, de))]))), 128))])) : u("", !0),
|
|
132
|
+
e.links.length ? (b(), d("ul", fe, [(b(!0), d(s, null, S(e.links, (e) => (b(), d("li", { key: e.label }, [h(r, {
|
|
133
133
|
to: e.to,
|
|
134
134
|
href: e.href,
|
|
135
135
|
external: !!e.external
|
|
@@ -143,13 +143,13 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
143
143
|
])]))), 128))])) : u("", !0)
|
|
144
144
|
], 4))), 128))]));
|
|
145
145
|
}
|
|
146
|
-
},
|
|
146
|
+
}, pe = { class: "mwnf-banner mwnf-standalone-home-banner" }, me = ["src"], he = { class: "mwnf-standalone-home-banner__text" }, ge = {
|
|
147
147
|
key: 0,
|
|
148
148
|
class: "mwnf-standalone-home-banner__title"
|
|
149
|
-
},
|
|
149
|
+
}, _e = {
|
|
150
150
|
key: 1,
|
|
151
151
|
class: "mwnf-standalone-home-banner__line"
|
|
152
|
-
},
|
|
152
|
+
}, ve = ["src"], ye = {
|
|
153
153
|
__name: "Shell",
|
|
154
154
|
props: {
|
|
155
155
|
language: {
|
|
@@ -163,7 +163,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
163
163
|
},
|
|
164
164
|
emits: ["update:language"],
|
|
165
165
|
setup(t, { emit: n }) {
|
|
166
|
-
let r = t, i = n, { t: a, locale: s } =
|
|
166
|
+
let r = t, i = n, { t: a, locale: s } = R(), m = z(), g = ee(), v = c(() => m.standalone ?? {}), y = c(() => m.navigation ?? {}), x = c(() => g.value === "home"), S = c(() => v.value.areas?.[g.value] ?? null), E = (t) => e(m.chrome, U(t, s.value)), D = c(() => {
|
|
167
167
|
let e = v.value.logo ?? {}, t = E(S.value?.logo ?? e.src);
|
|
168
168
|
return t ? {
|
|
169
169
|
logo: t,
|
|
@@ -196,13 +196,13 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
196
196
|
},
|
|
197
197
|
banner: null,
|
|
198
198
|
...D.value ? { brand: D.value } : {}
|
|
199
|
-
})),
|
|
199
|
+
})), L = (/* @__PURE__ */ new Date()).getFullYear(), B = c(() => v.value.copyright ? `${a(v.value.copyright)} ${L}` : ""), H = c(() => [
|
|
200
200
|
"mwnf-standalone",
|
|
201
201
|
x.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
|
|
202
202
|
S.value?.class ?? ""
|
|
203
203
|
]);
|
|
204
204
|
return (e, t) => (b(), l(o, {
|
|
205
|
-
class: _(
|
|
205
|
+
class: _(H.value),
|
|
206
206
|
config: I.value,
|
|
207
207
|
languages: v.value.languages === !1 ? [] : r.languages,
|
|
208
208
|
language: r.language,
|
|
@@ -213,7 +213,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
213
213
|
"header-subtitle": x.value ? "" : v.value.subheading ? T(a)(v.value.subheading) : "",
|
|
214
214
|
"header-title-href": "#/",
|
|
215
215
|
"banner-image": x.value && !P.value ? j.value : "",
|
|
216
|
-
"footer-text":
|
|
216
|
+
"footer-text": B.value || void 0,
|
|
217
217
|
"onUpdate:language": t[0] ||= (e) => i("update:language", e)
|
|
218
218
|
}, p({
|
|
219
219
|
default: O(() => [C(e.$slots, "default")]),
|
|
@@ -221,19 +221,19 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
221
221
|
}, [
|
|
222
222
|
N.value ? {
|
|
223
223
|
name: "banner",
|
|
224
|
-
fn: O(() => [h(
|
|
224
|
+
fn: O(() => [h(V, {
|
|
225
225
|
image: j.value,
|
|
226
226
|
title: M.value
|
|
227
227
|
}, null, 8, ["image", "title"])]),
|
|
228
228
|
key: "0"
|
|
229
229
|
} : P.value ? {
|
|
230
230
|
name: "banner",
|
|
231
|
-
fn: O(() => [f("section",
|
|
231
|
+
fn: O(() => [f("section", pe, [j.value ? (b(), d("img", {
|
|
232
232
|
key: 0,
|
|
233
233
|
class: "mwnf-banner__image",
|
|
234
234
|
src: j.value,
|
|
235
235
|
alt: ""
|
|
236
|
-
}, null, 8,
|
|
236
|
+
}, null, 8, me)) : u("", !0), f("div", he, [P.value.title ? (b(), d("h2", ge, [f("i", null, w(P.value.title), 1)])) : u("", !0), P.value.text ? (b(), d("p", _e, [f("span", null, w(P.value.text), 1)])) : u("", !0)])])]),
|
|
237
237
|
key: "1"
|
|
238
238
|
} : void 0,
|
|
239
239
|
k.value ? {
|
|
@@ -242,7 +242,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
242
242
|
class: "mwnf-standalone__print-logo",
|
|
243
243
|
src: k.value,
|
|
244
244
|
alt: ""
|
|
245
|
-
}, null, 8,
|
|
245
|
+
}, null, 8, ve)]),
|
|
246
246
|
key: "2"
|
|
247
247
|
} : void 0,
|
|
248
248
|
e.$slots.sponsors ? {
|
|
@@ -271,16 +271,16 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
271
271
|
"footer-text"
|
|
272
272
|
]));
|
|
273
273
|
}
|
|
274
|
-
},
|
|
274
|
+
}, be = {
|
|
275
275
|
key: 0,
|
|
276
276
|
class: "mwnf-standalone-highlight"
|
|
277
|
-
},
|
|
277
|
+
}, xe = ["src", "alt"], Se = {
|
|
278
278
|
key: 1,
|
|
279
279
|
class: "mwnf-standalone-highlight__heading"
|
|
280
|
-
},
|
|
280
|
+
}, Ce = { class: "mwnf-standalone-highlight__lines" }, we = ["innerHTML"], Te = {
|
|
281
281
|
key: 2,
|
|
282
282
|
class: "mwnf-standalone-highlight__place"
|
|
283
|
-
},
|
|
283
|
+
}, Ee = {
|
|
284
284
|
key: 3,
|
|
285
285
|
class: "mwnf-standalone-highlight__action"
|
|
286
286
|
}, X = {
|
|
@@ -320,21 +320,21 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
322
|
setup(e) {
|
|
323
|
-
let t = e, { t:
|
|
324
|
-
let e = t.text ?? {},
|
|
325
|
-
a &&
|
|
323
|
+
let t = e, { t: n } = R(), i = (e) => N(Array.isArray(e) ? e.join("; ") : e), a = c(() => {
|
|
324
|
+
let e = t.text ?? {}, r = [], a = i(e.name ?? t.record?.internal_name ?? "");
|
|
325
|
+
a && r.push(F(a));
|
|
326
326
|
let o = i(e.alternate_name);
|
|
327
|
-
o &&
|
|
327
|
+
o && r.push(`${t.alsoKnownAs ? `${n(t.alsoKnownAs)} ` : ""}${F(o)}`);
|
|
328
328
|
let s = [i(e.dates), i(e.dynasty)].filter(Boolean).join(", ");
|
|
329
|
-
s &&
|
|
329
|
+
s && r.push(F(s));
|
|
330
330
|
for (let t of ["materials", "holder"]) {
|
|
331
|
-
let
|
|
332
|
-
|
|
331
|
+
let n = i(e[t]);
|
|
332
|
+
n && r.push(F(n));
|
|
333
333
|
}
|
|
334
|
-
return
|
|
335
|
-
}), o = c(() => [i(t.text?.location), t.country].filter(Boolean).join(", ")), p = c(() => t.picture || (t.record?.images?.[0]?.url ?? "")), g = c(() =>
|
|
336
|
-
return (t, i) => e.record ? (b(), d("div",
|
|
337
|
-
p.value ? (b(), l(
|
|
334
|
+
return r;
|
|
335
|
+
}), o = c(() => [i(t.text?.location), t.country].filter(Boolean).join(", ")), p = c(() => t.picture || (t.record?.images?.[0]?.url ?? "")), g = c(() => I(String(t.text?.name ?? t.record?.internal_name ?? "")));
|
|
336
|
+
return (t, i) => e.record ? (b(), d("div", be, [
|
|
337
|
+
p.value ? (b(), l(r, {
|
|
338
338
|
key: 0,
|
|
339
339
|
class: "mwnf-standalone-highlight__media",
|
|
340
340
|
to: e.to
|
|
@@ -343,25 +343,25 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
343
343
|
class: "mwnf-standalone-highlight__image",
|
|
344
344
|
src: p.value,
|
|
345
345
|
alt: g.value
|
|
346
|
-
}, null, 8,
|
|
346
|
+
}, null, 8, xe)]),
|
|
347
347
|
_: 1
|
|
348
348
|
}, 8, ["to"])) : u("", !0),
|
|
349
|
-
e.heading ? (b(), d("p",
|
|
350
|
-
f("p",
|
|
351
|
-
o.value ? (b(), d("p",
|
|
352
|
-
e.action ? (b(), d("p",
|
|
353
|
-
default: O(() => [m(w(T(
|
|
349
|
+
e.heading ? (b(), d("p", Se, [f("strong", null, w(T(n)(e.heading)), 1)])) : u("", !0),
|
|
350
|
+
f("p", Ce, [(b(!0), d(s, null, S(a.value, (e, t) => (b(), d(s, { key: t }, [f("span", { innerHTML: e }, null, 8, we), i[0] ||= f("br", null, null, -1)], 64))), 128))]),
|
|
351
|
+
o.value ? (b(), d("p", Te, w(T(I)(o.value)), 1)) : u("", !0),
|
|
352
|
+
e.action ? (b(), d("p", Ee, [h(r, { to: e.to }, {
|
|
353
|
+
default: O(() => [m(w(T(n)(e.action)), 1)]),
|
|
354
354
|
_: 1
|
|
355
355
|
}, 8, ["to"])])) : u("", !0)
|
|
356
356
|
])) : u("", !0);
|
|
357
357
|
}
|
|
358
|
-
},
|
|
358
|
+
}, De = {
|
|
359
359
|
key: 0,
|
|
360
360
|
class: "mwnf-standalone-tiles"
|
|
361
|
-
},
|
|
361
|
+
}, Oe = {
|
|
362
362
|
key: 0,
|
|
363
363
|
class: "mwnf-standalone-tiles__caption"
|
|
364
|
-
},
|
|
364
|
+
}, ke = { class: "mwnf-standalone-tiles__grid" }, Ae = ["src", "alt"], je = {
|
|
365
365
|
key: 0,
|
|
366
366
|
class: "mwnf-standalone-tiles__label"
|
|
367
367
|
}, Z = {
|
|
@@ -377,15 +377,15 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
379
|
setup(e) {
|
|
380
|
-
let t = e, { t:
|
|
380
|
+
let t = e, { t: n } = R(), i = H(), a = c(() => t.items.map((e) => ({
|
|
381
381
|
...e,
|
|
382
382
|
image: i(e.image) ?? "",
|
|
383
|
-
label: e.text ?
|
|
383
|
+
label: e.text ? I(e.text) : e.label ? n(e.label) : ""
|
|
384
384
|
})));
|
|
385
|
-
return (t, i) => a.value.length ? (b(), d("section",
|
|
385
|
+
return (t, i) => a.value.length ? (b(), d("section", De, [e.caption ? (b(), d("p", Oe, w(T(n)(e.caption)), 1)) : u("", !0), f("ul", ke, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("li", {
|
|
386
386
|
key: e.image,
|
|
387
387
|
class: "mwnf-standalone-tiles__tile"
|
|
388
|
-
}, [h(
|
|
388
|
+
}, [h(r, {
|
|
389
389
|
to: e.to,
|
|
390
390
|
href: e.href,
|
|
391
391
|
class: "mwnf-standalone-tiles__link"
|
|
@@ -394,33 +394,33 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
394
394
|
class: "mwnf-standalone-tiles__image",
|
|
395
395
|
src: e.image,
|
|
396
396
|
alt: e.label
|
|
397
|
-
}, null, 8,
|
|
397
|
+
}, null, 8, Ae), e.label ? (b(), d("span", je, w(e.label), 1)) : u("", !0)]),
|
|
398
398
|
_: 2
|
|
399
399
|
}, 1032, ["to", "href"])]))), 128))])])) : u("", !0);
|
|
400
400
|
}
|
|
401
|
-
},
|
|
401
|
+
}, Me = { class: "mwnf-standalone-home" }, Ne = {
|
|
402
402
|
key: 0,
|
|
403
403
|
class: "mwnf-standalone-home__links"
|
|
404
|
-
},
|
|
404
|
+
}, Pe = { key: 1 }, Fe = {
|
|
405
405
|
__name: "Home",
|
|
406
406
|
props: { home: {
|
|
407
407
|
type: Object,
|
|
408
408
|
default: null
|
|
409
409
|
} },
|
|
410
410
|
setup(e) {
|
|
411
|
-
let t = e, { t:
|
|
411
|
+
let t = e, { t: n, locale: i } = R(), a = z(), o = c(() => t.home ?? a.standalone?.home ?? {}), f = c(() => (o.value.links ?? []).map((e) => ({
|
|
412
412
|
...e,
|
|
413
|
-
label:
|
|
414
|
-
prefix: e.prefix ?
|
|
415
|
-
title: e.title ?
|
|
416
|
-
}))), p = c(() => o.value.highlight ?? null), g =
|
|
413
|
+
label: n(e.label),
|
|
414
|
+
prefix: e.prefix ? n(e.prefix) : "",
|
|
415
|
+
title: e.title ? n(e.title) : void 0
|
|
416
|
+
}))), p = c(() => o.value.highlight ?? null), g = L();
|
|
417
417
|
p.value?.list?.length && (A(["items", "countries"]), D(i, (e) => {
|
|
418
418
|
g.loadTranslations("items", e), g.loadTranslations("countries", e);
|
|
419
419
|
}, { immediate: !0 }));
|
|
420
420
|
let v = k("items", "backward_compatibility"), y = c(() => {
|
|
421
|
-
let e = p.value?.list ?? [], t = e.indexOf(
|
|
421
|
+
let e = p.value?.list ?? [], t = e.indexOf(G(e));
|
|
422
422
|
for (let n = 0; t >= 0 && n < e.length; n++) {
|
|
423
|
-
let r = v.value.get(
|
|
423
|
+
let r = v.value.get(K(e[(t + n) % e.length]));
|
|
424
424
|
if (r) return r;
|
|
425
425
|
}
|
|
426
426
|
return null;
|
|
@@ -430,24 +430,24 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
430
430
|
}), E = c(() => y.value ? {
|
|
431
431
|
name: p.value.route ?? "item",
|
|
432
432
|
params: { id: y.value.id }
|
|
433
|
-
} : null), j =
|
|
433
|
+
} : null), j = H(), M = c(() => {
|
|
434
434
|
let e = p.value?.pictures ?? [];
|
|
435
|
-
return e.length ? j(
|
|
435
|
+
return e.length ? j(G(e)) ?? "" : "";
|
|
436
436
|
}), N = c(() => {
|
|
437
437
|
let e = o.value.tiles?.items;
|
|
438
438
|
return (typeof e == "function" ? e() : e) ?? [];
|
|
439
439
|
});
|
|
440
|
-
return (e, t) => (b(), d("div",
|
|
441
|
-
f.value.length ? (b(), d("ul",
|
|
440
|
+
return (e, t) => (b(), d("div", Me, [
|
|
441
|
+
f.value.length ? (b(), d("ul", Ne, [(b(!0), d(s, null, S(f.value, (e) => (b(), d("li", {
|
|
442
442
|
key: e.label,
|
|
443
443
|
class: _({ "mwnf-standalone-home__link--gap": e.gap })
|
|
444
|
-
}, [h(
|
|
444
|
+
}, [h(r, {
|
|
445
445
|
to: e.to,
|
|
446
446
|
href: e.href,
|
|
447
447
|
external: !!e.external,
|
|
448
448
|
title: e.title
|
|
449
449
|
}, {
|
|
450
|
-
default: O(() => [e.prefix ? (b(), d(s, { key: 0 }, [m(w(`${e.prefix} `), 1)], 64)) : u("", !0), e.italic ? (b(), d("i",
|
|
450
|
+
default: O(() => [e.prefix ? (b(), d(s, { key: 0 }, [m(w(`${e.prefix} `), 1)], 64)) : u("", !0), e.italic ? (b(), d("i", Pe, w(e.label), 1)) : (b(), d(s, { key: 2 }, [m(w(e.label), 1)], 64))]),
|
|
451
451
|
_: 2
|
|
452
452
|
}, 1032, [
|
|
453
453
|
"to",
|
|
@@ -483,10 +483,10 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
483
483
|
C(e.$slots, "default")
|
|
484
484
|
]));
|
|
485
485
|
}
|
|
486
|
-
},
|
|
486
|
+
}, Ie = { class: "mwnf-standalone-related" }, Le = { class: "mwnf-standalone-related__heading" }, Re = { class: "mwnf-standalone-related__group-heading" }, ze = { class: "mwnf-standalone-related__thumbs" }, Be = ["src", "alt"], Ve = ["innerHTML"], He = {
|
|
487
487
|
key: 0,
|
|
488
488
|
class: "mwnf-standalone-related__download"
|
|
489
|
-
},
|
|
489
|
+
}, Ue = { class: "mwnf-standalone-related__download-heading" }, Q = {
|
|
490
490
|
__name: "RelatedContent",
|
|
491
491
|
props: {
|
|
492
492
|
heading: {
|
|
@@ -507,19 +507,19 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
507
507
|
}
|
|
508
508
|
},
|
|
509
509
|
setup(e) {
|
|
510
|
-
let t = e, { t:
|
|
511
|
-
heading:
|
|
510
|
+
let t = e, { t: n } = R(), i = c(() => t.groups.map((e) => ({
|
|
511
|
+
heading: n(e.heading),
|
|
512
512
|
rows: t.records.filter((t) => !e.type || t.badge === e.type)
|
|
513
513
|
})).filter((e) => e.rows.length));
|
|
514
514
|
function a() {
|
|
515
515
|
window.print();
|
|
516
516
|
}
|
|
517
|
-
return (t, o) => (b(), d("aside",
|
|
518
|
-
f("p",
|
|
517
|
+
return (t, o) => (b(), d("aside", Ie, [
|
|
518
|
+
f("p", Le, [f("strong", null, w(T(n)(e.heading)), 1)]),
|
|
519
519
|
(b(!0), d(s, null, S(i.value, (e) => (b(), d("div", {
|
|
520
520
|
key: e.heading,
|
|
521
521
|
class: "mwnf-standalone-related__group"
|
|
522
|
-
}, [f("p",
|
|
522
|
+
}, [f("p", Re, w(e.heading), 1), f("ul", ze, [(b(!0), d(s, null, S(e.rows, (e) => (b(), d("li", { key: e.id }, [h(r, {
|
|
523
523
|
to: e.to,
|
|
524
524
|
title: e.imageAlt
|
|
525
525
|
}, {
|
|
@@ -527,24 +527,24 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
527
527
|
key: 0,
|
|
528
528
|
src: e.image,
|
|
529
529
|
alt: e.imageAlt
|
|
530
|
-
}, null, 8,
|
|
530
|
+
}, null, 8, Be)) : (b(), d("span", {
|
|
531
531
|
key: 1,
|
|
532
532
|
innerHTML: e.name
|
|
533
|
-
}, null, 8,
|
|
533
|
+
}, null, 8, Ve))]),
|
|
534
534
|
_: 2
|
|
535
535
|
}, 1032, ["to", "title"])]))), 128))])]))), 128)),
|
|
536
536
|
C(t.$slots, "default"),
|
|
537
|
-
e.download ? (b(), d("div",
|
|
537
|
+
e.download ? (b(), d("div", He, [f("p", Ue, w(T(n)(e.download.heading)), 1), f("button", {
|
|
538
538
|
type: "button",
|
|
539
539
|
class: "mwnf-standalone-related__print",
|
|
540
540
|
onClick: a
|
|
541
|
-
}, w(T(
|
|
541
|
+
}, w(T(n)(e.download.print)), 1)])) : u("", !0)
|
|
542
542
|
]));
|
|
543
543
|
}
|
|
544
|
-
},
|
|
544
|
+
}, We = { class: "mwnf-standalone-item__top" }, Ge = { class: "mwnf-standalone-item__left" }, Ke = {
|
|
545
545
|
key: 0,
|
|
546
546
|
class: "mwnf-standalone-item__back"
|
|
547
|
-
},
|
|
547
|
+
}, qe = {
|
|
548
548
|
__name: "ItemSheet",
|
|
549
549
|
props: {
|
|
550
550
|
spec: {
|
|
@@ -565,7 +565,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
565
565
|
}
|
|
566
566
|
},
|
|
567
567
|
setup(e) {
|
|
568
|
-
let o = e, { t: _ } =
|
|
568
|
+
let o = e, { t: _ } = R(), y = E(), x = c(() => ({
|
|
569
569
|
...o.spec,
|
|
570
570
|
media: () => []
|
|
571
571
|
}));
|
|
@@ -578,8 +578,8 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
578
578
|
text: t,
|
|
579
579
|
language: n
|
|
580
580
|
});
|
|
581
|
-
let r =
|
|
582
|
-
return (e?.images
|
|
581
|
+
let r = I(String(t?.name ?? e?.internal_name ?? ""));
|
|
582
|
+
return M(e?.images, n).map((e) => ({
|
|
583
583
|
url: e.url,
|
|
584
584
|
alt: e.captions?.[n] ?? r,
|
|
585
585
|
caption: e.captions?.[n] ?? "",
|
|
@@ -595,8 +595,8 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
595
595
|
"related",
|
|
596
596
|
"sidebar",
|
|
597
597
|
"aside"
|
|
598
|
-
]),
|
|
599
|
-
function
|
|
598
|
+
]), N = c(() => Object.keys(y).filter((e) => !A.has(e)));
|
|
599
|
+
function P() {
|
|
600
600
|
window.history.back();
|
|
601
601
|
}
|
|
602
602
|
return (i, o) => (b(), l(a, {
|
|
@@ -604,7 +604,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
604
604
|
id: e.id,
|
|
605
605
|
class: "mwnf-standalone-item"
|
|
606
606
|
}, p({
|
|
607
|
-
header: O(({ languages: e, language: n, select: r }) => [f("div",
|
|
607
|
+
header: O(({ languages: e, language: n, select: r }) => [f("div", We, [h(t, {
|
|
608
608
|
languages: e,
|
|
609
609
|
language: n,
|
|
610
610
|
onSelect: r
|
|
@@ -613,12 +613,12 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
613
613
|
"language",
|
|
614
614
|
"onSelect"
|
|
615
615
|
])])]),
|
|
616
|
-
"before-sheet": O((e) => [f("div",
|
|
616
|
+
"before-sheet": O((e) => [f("div", Ge, [k.value.length ? (b(), d("p", Ke, [(b(!0), d(s, null, S(k.value, (e) => (b(), d(s, { key: e.label }, [e.history ? (b(), d("button", {
|
|
617
617
|
key: 0,
|
|
618
618
|
type: "button",
|
|
619
619
|
class: "mwnf-standalone-item__back-link",
|
|
620
|
-
onClick:
|
|
621
|
-
}, w(e.label), 1)) : (b(), l(
|
|
620
|
+
onClick: P
|
|
621
|
+
}, w(e.label), 1)) : (b(), l(r, {
|
|
622
622
|
key: 1,
|
|
623
623
|
class: "mwnf-standalone-item__back-link",
|
|
624
624
|
to: e.to,
|
|
@@ -626,7 +626,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
626
626
|
}, {
|
|
627
627
|
default: O(() => [m(w(e.label), 1)]),
|
|
628
628
|
_: 2
|
|
629
|
-
}, 1032, ["to", "href"]))], 64))), 128))])) : u("", !0), h(
|
|
629
|
+
}, 1032, ["to", "href"]))], 64))), 128))])) : u("", !0), h(n, { images: T(e) }, null, 8, ["images"])]), C(i.$slots, "before-sheet", v(g(e)))]),
|
|
630
630
|
related: O((t) => [h(Q, {
|
|
631
631
|
heading: e.related.heading ?? "record.related.title",
|
|
632
632
|
records: t.records,
|
|
@@ -642,18 +642,18 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
642
642
|
"download"
|
|
643
643
|
])]),
|
|
644
644
|
_: 2
|
|
645
|
-
}, [S(
|
|
645
|
+
}, [S(N.value, (e) => ({
|
|
646
646
|
name: e,
|
|
647
647
|
fn: O((t) => [C(i.$slots, e, v(g(t)))])
|
|
648
648
|
}))]), 1032, ["spec", "id"]));
|
|
649
649
|
}
|
|
650
|
-
},
|
|
650
|
+
}, Je = ["innerHTML"], $ = {
|
|
651
651
|
key: 0,
|
|
652
652
|
class: "mwnf-standalone-page__link"
|
|
653
|
-
},
|
|
653
|
+
}, Ye = {
|
|
654
654
|
key: 1,
|
|
655
655
|
class: "mwnf-standalone-page__print"
|
|
656
|
-
},
|
|
656
|
+
}, Xe = {
|
|
657
657
|
__name: "TextPage",
|
|
658
658
|
props: {
|
|
659
659
|
body: {
|
|
@@ -674,7 +674,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
674
674
|
}
|
|
675
675
|
},
|
|
676
676
|
setup(e) {
|
|
677
|
-
let t = e, { t:
|
|
677
|
+
let t = e, { t: n } = R(), i = c(() => P(n(t.body)));
|
|
678
678
|
function a() {
|
|
679
679
|
window.print();
|
|
680
680
|
}
|
|
@@ -682,25 +682,25 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
682
682
|
f("div", {
|
|
683
683
|
class: "mwnf-standalone-page__body",
|
|
684
684
|
innerHTML: i.value
|
|
685
|
-
}, null, 8,
|
|
686
|
-
e.link ? (b(), d("p",
|
|
685
|
+
}, null, 8, Je),
|
|
686
|
+
e.link ? (b(), d("p", $, [h(r, {
|
|
687
687
|
to: e.link.to,
|
|
688
688
|
href: e.link.href
|
|
689
689
|
}, {
|
|
690
|
-
default: O(() => [f("strong", null, w(e.link.text ?? T(
|
|
690
|
+
default: O(() => [f("strong", null, w(e.link.text ?? T(n)(e.link.label)), 1)]),
|
|
691
691
|
_: 1
|
|
692
692
|
}, 8, ["to", "href"])])) : u("", !0),
|
|
693
|
-
e.print ? (b(), d("p",
|
|
693
|
+
e.print ? (b(), d("p", Ye, [f("button", {
|
|
694
694
|
type: "button",
|
|
695
695
|
class: "mwnf-standalone-page__print-button",
|
|
696
696
|
onClick: a
|
|
697
|
-
}, w(T(
|
|
697
|
+
}, w(T(n)(e.print)), 1)])) : u("", !0)
|
|
698
698
|
], 2));
|
|
699
699
|
}
|
|
700
|
-
},
|
|
700
|
+
}, Ze = {
|
|
701
701
|
key: 0,
|
|
702
702
|
class: "mwnf-standalone-subnav"
|
|
703
|
-
},
|
|
703
|
+
}, Qe = { class: "mwnf-standalone-subnav__tabs" }, $e = {
|
|
704
704
|
__name: "SubNav",
|
|
705
705
|
props: {
|
|
706
706
|
tabs: {
|
|
@@ -713,11 +713,11 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
713
713
|
}
|
|
714
714
|
},
|
|
715
715
|
setup(e) {
|
|
716
|
-
let t = e, { t:
|
|
716
|
+
let t = e, { t: n } = R(), i = c(() => t.tabs.map((e) => ({
|
|
717
717
|
...e,
|
|
718
|
-
label:
|
|
718
|
+
label: n(e.label)
|
|
719
719
|
})));
|
|
720
|
-
return (t, a) => i.value.length || e.aside ? (b(), d("nav",
|
|
720
|
+
return (t, a) => i.value.length || e.aside ? (b(), d("nav", Ze, [f("ul", Qe, [(b(!0), d(s, null, S(i.value, (e) => (b(), d("li", { key: e.label }, [h(r, {
|
|
721
721
|
to: e.to,
|
|
722
722
|
href: e.href,
|
|
723
723
|
class: _(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
|
|
@@ -730,20 +730,20 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
730
730
|
"href",
|
|
731
731
|
"class",
|
|
732
732
|
"aria-current"
|
|
733
|
-
])]))), 128))]), e.aside ? (b(), l(
|
|
733
|
+
])]))), 128))]), e.aside ? (b(), l(r, {
|
|
734
734
|
key: 0,
|
|
735
735
|
to: e.aside.to,
|
|
736
736
|
href: e.aside.href,
|
|
737
737
|
class: "mwnf-standalone-subnav__aside"
|
|
738
738
|
}, {
|
|
739
|
-
default: O(() => [m(w(T(
|
|
739
|
+
default: O(() => [m(w(T(n)(e.aside.label)), 1)]),
|
|
740
740
|
_: 1
|
|
741
741
|
}, 8, ["to", "href"])) : u("", !0)])) : u("", !0);
|
|
742
742
|
}
|
|
743
|
-
},
|
|
743
|
+
}, et = ["disabled", "aria-label"], tt = { class: "mwnf-standalone-slider__track" }, nt = ["src", "alt"], rt = {
|
|
744
744
|
key: 0,
|
|
745
745
|
class: "mwnf-standalone-slider__label"
|
|
746
|
-
},
|
|
746
|
+
}, it = ["disabled", "aria-label"], at = {
|
|
747
747
|
__name: "Slider",
|
|
748
748
|
props: {
|
|
749
749
|
slides: {
|
|
@@ -764,10 +764,10 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
764
764
|
}
|
|
765
765
|
},
|
|
766
766
|
setup(e) {
|
|
767
|
-
let t = e, { t:
|
|
767
|
+
let t = e, { t: n } = R(), i = H(), a = x(0), o = c(() => Math.max(0, t.slides.length - t.visible)), l = c(() => t.slides.slice(a.value, a.value + t.visible).map((e) => ({
|
|
768
768
|
...e,
|
|
769
769
|
image: i(e.image) ?? "",
|
|
770
|
-
label: e.label ?
|
|
770
|
+
label: e.label ? n(e.label) : ""
|
|
771
771
|
})));
|
|
772
772
|
return (t, i) => e.slides.length ? (b(), d("div", {
|
|
773
773
|
key: 0,
|
|
@@ -778,31 +778,31 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
778
778
|
type: "button",
|
|
779
779
|
class: "mwnf-standalone-slider__button",
|
|
780
780
|
disabled: a.value === 0,
|
|
781
|
-
"aria-label": T(
|
|
781
|
+
"aria-label": T(n)(e.previousLabel),
|
|
782
782
|
onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
|
|
783
|
-
}, "‹", 8,
|
|
784
|
-
f("ul",
|
|
783
|
+
}, "‹", 8, et),
|
|
784
|
+
f("ul", tt, [(b(!0), d(s, null, S(l.value, (e) => (b(), d("li", {
|
|
785
785
|
key: e.image,
|
|
786
786
|
class: "mwnf-standalone-slider__slide"
|
|
787
|
-
}, [h(
|
|
787
|
+
}, [h(r, {
|
|
788
788
|
to: e.to,
|
|
789
789
|
href: e.href
|
|
790
790
|
}, {
|
|
791
791
|
default: O(() => [f("img", {
|
|
792
792
|
src: e.image,
|
|
793
793
|
alt: e.label
|
|
794
|
-
}, null, 8,
|
|
794
|
+
}, null, 8, nt), e.label ? (b(), d("span", rt, w(e.label), 1)) : u("", !0)]),
|
|
795
795
|
_: 2
|
|
796
796
|
}, 1032, ["to", "href"])]))), 128))]),
|
|
797
797
|
f("button", {
|
|
798
798
|
type: "button",
|
|
799
799
|
class: "mwnf-standalone-slider__button",
|
|
800
800
|
disabled: a.value >= o.value,
|
|
801
|
-
"aria-label": T(
|
|
801
|
+
"aria-label": T(n)(e.nextLabel),
|
|
802
802
|
onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
|
|
803
|
-
}, "›", 8,
|
|
803
|
+
}, "›", 8, it)
|
|
804
804
|
], 4)) : u("", !0);
|
|
805
805
|
}
|
|
806
806
|
};
|
|
807
807
|
//#endregion
|
|
808
|
-
export { Q as RelatedContent,
|
|
808
|
+
export { Q as RelatedContent, V as StandaloneBanner, Fe as StandaloneHome, qe as StandaloneItemSheet, ye as StandaloneShell, at as StandaloneSlider, Y as StandaloneSponsors, $e as StandaloneSubNav, Xe as StandaloneTextPage, Z as StandaloneTileGrid, X as TodayHighlight, U as byLanguage, W as dayOfYear, K as legacyHomeItemKey, G as pickForDay };
|