@museumwnf/viewer-layout 3.8.0 → 3.9.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/dist/{ItemDetailView-CzSe_jZn.js → ItemDetailView-Dko_grJr.js} +8 -3
- package/dist/{OnDisplayIn-BfJoPonn.js → OnDisplayIn-2ctLMfvw.js} +1 -3
- package/dist/{RecordView-DovgfTMz.js → RecordView-CdKx9tFy.js} +38 -31
- package/dist/{content-C6oMa4eE.js → content-Cu_44di8.js} +6 -2
- package/dist/content.js +2 -2
- package/dist/dxa.js +6 -5
- package/dist/index.js +2 -2
- package/dist/standalone.js +231 -228
- package/dist/views.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./chrome-i1DOEyLS.js";
|
|
2
2
|
import { r as t } from "./GlossaryPopover-DcptyNWI.js";
|
|
3
3
|
import { n } from "./TimelineEventList-gsoc-SBx.js";
|
|
4
|
-
import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-
|
|
5
|
-
import { t as c } from "./RecordView-
|
|
4
|
+
import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-2ctLMfvw.js";
|
|
5
|
+
import { t as c } from "./RecordView-CdKx9tFy.js";
|
|
6
6
|
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as ee, createTextVNode as h, createVNode as g, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as te, openBlock as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, useSlots as ne, withCtx as T } from "vue";
|
|
7
7
|
import { NotFoundView as re, byId as E, loadEntities as ie, mdInline as D, mdStrip as ae, mwnfLinks as O, partnerView as oe, useDataPackage as se, useI18n as ce, useProjects as le, useSiteConfig as ue } from "@museumwnf/viewer-core";
|
|
8
8
|
//#region src/dxa/ItemDetailView.vue
|
|
@@ -255,9 +255,14 @@ var k = {
|
|
|
255
255
|
])) : f("", !0),
|
|
256
256
|
g(i, {
|
|
257
257
|
media: e.media,
|
|
258
|
+
language: n.language,
|
|
258
259
|
descriptions: !1,
|
|
259
260
|
dir: n.dir
|
|
260
|
-
}, null, 8, [
|
|
261
|
+
}, null, 8, [
|
|
262
|
+
"media",
|
|
263
|
+
"language",
|
|
264
|
+
"dir"
|
|
265
|
+
]),
|
|
261
266
|
e.onDisplayIn?.groups.length ? (b(), p("div", U, [m("p", de, C(w(K)("record.related.onDisplayIn")), 1), g(s, {
|
|
262
267
|
heading: "",
|
|
263
268
|
groups: e.onDisplayIn.groups,
|
|
@@ -329,9 +329,7 @@ var k = ["href"], A = {
|
|
|
329
329
|
setup(e) {
|
|
330
330
|
let c = e, { t: l } = T(), u = r(() => {
|
|
331
331
|
let e = c.media.filter((e) => e?.url);
|
|
332
|
-
|
|
333
|
-
let t = e.filter((e) => e.language === c.language);
|
|
334
|
-
return t.length ? t : e;
|
|
332
|
+
return c.language ? e.filter((e) => !e.language || e.language === c.language) : e;
|
|
335
333
|
});
|
|
336
334
|
return (r, c) => u.value.length ? (f(), i(t, {
|
|
337
335
|
key: 0,
|
|
@@ -2,8 +2,14 @@ import { a as e, c as t, d as n, i as r, n as ee, o as te, r as ne, s as re, t a
|
|
|
2
2
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, guardReactiveProps as p, normalizeClass as ae, normalizeProps as m, openBlock as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, useSlots as b, withCtx as x } from "vue";
|
|
3
3
|
import { NotFoundView as oe, byId as se, citation as ce, entityRef as le, languageLabels as ue, pictureCredits as de, renderBlock as S, renderInline as C, renderPlain as w, sheetRows as T, sourceUrl as fe, useDataPackage as pe, useGlossaryPopup as me, useI18n as he, useProjects as ge, useRecordSheet as _e, useRelatedRecords as ve } from "@museumwnf/viewer-core";
|
|
4
4
|
import { useRoute as ye } from "vue-router";
|
|
5
|
+
//#region src/views/pictureLimit.js
|
|
6
|
+
function E(e, t, n) {
|
|
7
|
+
let r = typeof t == "function" ? t(n) : t;
|
|
8
|
+
return Number.isInteger(r) && r > 0 ? e.slice(0, r) : e;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
5
11
|
//#region src/views/RecordView.vue
|
|
6
|
-
var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" },
|
|
12
|
+
var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, Se = { class: "mwnf-record__main" }, Ce = {
|
|
7
13
|
key: 1,
|
|
8
14
|
class: "mwnf-record__status"
|
|
9
15
|
}, D = {
|
|
@@ -29,11 +35,11 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
29
35
|
}
|
|
30
36
|
},
|
|
31
37
|
setup(k) {
|
|
32
|
-
let A = k, { t: j, locale:
|
|
38
|
+
let A = k, { t: j, locale: we } = he(), M = pe(), Te = ge(), Ee = b(), De = ye(), N = A.spec.entity ?? A.entity, P = a(() => A.spec), Oe = le(N), ke = se(N), F = a(() => ke.value.get(A.id) ?? null), Ae = a(() => Oe.value !== null), { language: I, languages: je, dir: L, select: R, text: z, ready: B, terms: Me, glossary: V, attribution: H } = _e(F, {
|
|
33
39
|
entity: N,
|
|
34
40
|
translations: A.spec.translations ?? [],
|
|
35
41
|
attribution: A.spec.attribution ?? []
|
|
36
|
-
}), U = a(() => ue(
|
|
42
|
+
}), U = a(() => ue(je.value)), { active: W, onClick: G, close: Ne } = me(Me), Pe = a(() => W.value ? S(W.value.definition, { breaks: !0 }) : ""), K = (e, t) => M.tr(e, t, I.value, "en"), Fe = (e) => M.translations(e, I.value), q = a(() => ({
|
|
37
43
|
record: F.value,
|
|
38
44
|
text: z.value,
|
|
39
45
|
language: I.value,
|
|
@@ -45,7 +51,7 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
45
51
|
attribution: H.value,
|
|
46
52
|
t: j,
|
|
47
53
|
tr: K,
|
|
48
|
-
translations:
|
|
54
|
+
translations: Fe
|
|
49
55
|
}));
|
|
50
56
|
function J(e) {
|
|
51
57
|
return ((typeof e == "function" ? e(q.value) : e) ?? []).map((e) => ({
|
|
@@ -53,22 +59,22 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
53
59
|
label: e.label ? j(e.label) : ""
|
|
54
60
|
}));
|
|
55
61
|
}
|
|
56
|
-
let
|
|
62
|
+
let Ie = a(() => F.value ? T(J(P.value.fields), q.value) : []), Le = a(() => F.value ? T(J(P.value.sections).map((e) => ({
|
|
57
63
|
render: "block",
|
|
58
64
|
...e
|
|
59
|
-
})), q.value) : []), Y = a(() => P.value.shortDescription === !1 ? "" : P.value.shortDescription ?? "short_description"),
|
|
65
|
+
})), q.value) : []), Y = a(() => P.value.shortDescription === !1 ? "" : P.value.shortDescription ?? "short_description"), Re = a(() => {
|
|
60
66
|
let e = Y.value ? z.value[Y.value] : "";
|
|
61
67
|
return e ? { html: S(String(e), {
|
|
62
68
|
breaks: !0,
|
|
63
69
|
glossary: V.value
|
|
64
70
|
}) } : null;
|
|
65
|
-
}),
|
|
71
|
+
}), ze = a(() => {
|
|
66
72
|
if (!F.value) return "";
|
|
67
73
|
if (P.value.title) return P.value.title(q.value);
|
|
68
74
|
let e = z.value.name ?? F.value.internal_name ?? F.value.id;
|
|
69
75
|
return C(String(e), { glossary: V.value });
|
|
70
|
-
}), X = a(() =>
|
|
71
|
-
|
|
76
|
+
}), X = a(() => F.value ? E(Be(), P.value.pictureLimit, q.value) : []);
|
|
77
|
+
function Be() {
|
|
72
78
|
if (P.value.media) return P.value.media(F.value, q.value);
|
|
73
79
|
let e = w(String(z.value.name ?? F.value.internal_name ?? ""));
|
|
74
80
|
return (F.value.images ?? []).map((t) => ({
|
|
@@ -77,7 +83,8 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
77
83
|
caption: t.captions?.[I.value] ?? "",
|
|
78
84
|
...de(t, I.value)
|
|
79
85
|
}));
|
|
80
|
-
}
|
|
86
|
+
}
|
|
87
|
+
let Ve = [
|
|
81
88
|
{
|
|
82
89
|
field: "author",
|
|
83
90
|
label: "sheet.field.preparedBy"
|
|
@@ -94,13 +101,13 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
94
101
|
field: "translation_copy_editor",
|
|
95
102
|
label: "sheet.field.translationCopyeditedBy"
|
|
96
103
|
}
|
|
97
|
-
],
|
|
104
|
+
], He = a(() => (P.value.credits ?? Ve).map(({ field: e, label: t }) => ({
|
|
98
105
|
label: j(t),
|
|
99
106
|
value: z.value[e] ?? H.value[e] ?? ""
|
|
100
|
-
})).filter((e) => e.value)),
|
|
107
|
+
})).filter((e) => e.value)), Ue = a(() => String(F.value?.[P.value.workingNumber ?? "mwnf_reference"] ?? "")), We = a(() => {
|
|
101
108
|
let e = P.value.citation;
|
|
102
109
|
if (!F.value || e === !1) return "";
|
|
103
|
-
let t = typeof e?.project == "function" ? null : e?.project ?? F.value.project_id, n = typeof e?.project == "function" ? e.project(F.value, q.value) :
|
|
110
|
+
let t = typeof e?.project == "function" ? null : e?.project ?? F.value.project_id, n = typeof e?.project == "function" ? e.project(F.value, q.value) : Te.label(t), r = e?.permalink === !1 ? void 0 : typeof e?.permalink == "string" ? e.permalink : fe(De) ?? void 0;
|
|
104
111
|
return ce({
|
|
105
112
|
author: z.value.author ?? H.value.author,
|
|
106
113
|
name: z.value.name ?? F.value.internal_name ?? "",
|
|
@@ -113,10 +120,10 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
113
120
|
language: I
|
|
114
121
|
}), Q = a(() => P.value.related === !1 ? null : P.value.related ?? {}), $ = a(() => {
|
|
115
122
|
if (!Q.value) return [];
|
|
116
|
-
let e = Q.value.record ??
|
|
123
|
+
let e = Q.value.record ?? Ge;
|
|
117
124
|
return Z.value.inPackage.map((t) => e(t, q.value));
|
|
118
125
|
});
|
|
119
|
-
function
|
|
126
|
+
function Ge({ record: e, justification: t }) {
|
|
120
127
|
let n = K(N, e.id).name ?? e.internal_name ?? e.id;
|
|
121
128
|
return {
|
|
122
129
|
id: e.id,
|
|
@@ -131,7 +138,7 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
131
138
|
}
|
|
132
139
|
};
|
|
133
140
|
}
|
|
134
|
-
let
|
|
141
|
+
let Ke = /* @__PURE__ */ new Set([
|
|
135
142
|
"header",
|
|
136
143
|
"before-sheet",
|
|
137
144
|
"after-sheet",
|
|
@@ -140,8 +147,8 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
140
147
|
"related",
|
|
141
148
|
"after",
|
|
142
149
|
"default"
|
|
143
|
-
]),
|
|
144
|
-
return (a, b) =>
|
|
150
|
+
]), qe = a(() => Object.keys(Ee).filter((e) => !Ke.has(e)));
|
|
151
|
+
return (a, b) => Ae.value && !F.value ? (h(), o(y(oe), { key: 0 })) : F.value ? (h(), c("article", {
|
|
145
152
|
key: 1,
|
|
146
153
|
class: ae(["mwnf-record", { "mwnf-record--spaced": P.value.spaced }]),
|
|
147
154
|
onClick: b[0] ||= (...e) => y(G) && y(G)(...e)
|
|
@@ -168,24 +175,24 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
168
175
|
l("h1", {
|
|
169
176
|
class: "mwnf-record__title",
|
|
170
177
|
dir: y(L) || void 0,
|
|
171
|
-
innerHTML:
|
|
178
|
+
innerHTML: ze.value
|
|
172
179
|
}, null, 8, be)
|
|
173
180
|
]),
|
|
174
|
-
l("div", xe, [l("div",
|
|
181
|
+
l("div", xe, [l("div", Se, [
|
|
175
182
|
X.value.length ? (h(), o(ee, {
|
|
176
183
|
key: 0,
|
|
177
184
|
images: X.value,
|
|
178
185
|
variant: P.value.mediaVariant ?? ""
|
|
179
186
|
}, null, 8, ["images", "variant"])) : s("", !0),
|
|
180
|
-
y(B) ? s("", !0) : (h(), c("p",
|
|
187
|
+
y(B) ? s("", !0) : (h(), c("p", Ce, v(y(j)("core.status.loading")), 1)),
|
|
181
188
|
_(a.$slots, "before-sheet", m(p(q.value))),
|
|
182
189
|
f(re, {
|
|
183
|
-
rows:
|
|
190
|
+
rows: Ie.value,
|
|
184
191
|
layout: P.value.layout ?? "table",
|
|
185
192
|
dir: y(L),
|
|
186
|
-
"short-description":
|
|
193
|
+
"short-description": Re.value,
|
|
187
194
|
"short-description-after": P.value.shortDescriptionAfter ?? "description"
|
|
188
|
-
}, u({ _: 2 }, [g(
|
|
195
|
+
}, u({ _: 2 }, [g(qe.value, (e) => ({
|
|
189
196
|
name: e,
|
|
190
197
|
fn: x((t) => [_(a.$slots, e, m(p({
|
|
191
198
|
...t,
|
|
@@ -198,7 +205,7 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
198
205
|
"short-description",
|
|
199
206
|
"short-description-after"
|
|
200
207
|
]),
|
|
201
|
-
(h(!0), c(i, null, g(
|
|
208
|
+
(h(!0), c(i, null, g(Le.value, (e) => (h(), o(te, {
|
|
202
209
|
key: e.key,
|
|
203
210
|
heading: e.label,
|
|
204
211
|
html: e.html,
|
|
@@ -210,10 +217,10 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
210
217
|
]))), 128)),
|
|
211
218
|
_(a.$slots, "after-sheet", m(p(q.value))),
|
|
212
219
|
f(e, {
|
|
213
|
-
credits:
|
|
214
|
-
"working-number":
|
|
220
|
+
credits: He.value,
|
|
221
|
+
"working-number": Ue.value,
|
|
215
222
|
"working-number-label": y(j)("sheet.field.workingNumber"),
|
|
216
|
-
citation:
|
|
223
|
+
citation: We.value,
|
|
217
224
|
"citation-heading": P.value.citation?.heading ? y(j)(P.value.citation.heading) : ""
|
|
218
225
|
}, null, 8, [
|
|
219
226
|
"credits",
|
|
@@ -247,9 +254,9 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
247
254
|
_(a.$slots, "after", m(p(q.value))),
|
|
248
255
|
f(ie, {
|
|
249
256
|
term: y(W),
|
|
250
|
-
html:
|
|
257
|
+
html: Pe.value,
|
|
251
258
|
dir: y(L),
|
|
252
|
-
onClose: y(
|
|
259
|
+
onClose: y(Ne)
|
|
253
260
|
}, null, 8, [
|
|
254
261
|
"term",
|
|
255
262
|
"html",
|
|
@@ -260,4 +267,4 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
|
|
|
260
267
|
}
|
|
261
268
|
};
|
|
262
269
|
//#endregion
|
|
263
|
-
export { k as t };
|
|
270
|
+
export { E as n, k as t };
|
|
@@ -27,6 +27,10 @@ var g = ["innerHTML"], _ = ["innerHTML"], v = ["innerHTML"], y = {
|
|
|
27
27
|
dir: {
|
|
28
28
|
type: String,
|
|
29
29
|
default: ""
|
|
30
|
+
},
|
|
31
|
+
pictureLimit: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 0
|
|
30
34
|
}
|
|
31
35
|
},
|
|
32
36
|
setup(y) {
|
|
@@ -36,9 +40,9 @@ var g = ["innerHTML"], _ = ["innerHTML"], v = ["innerHTML"], y = {
|
|
|
36
40
|
id: e.id,
|
|
37
41
|
name: h(t.name ?? e.internal_name ?? e.id),
|
|
38
42
|
meta: [t.location, t.dates].filter(Boolean),
|
|
39
|
-
artist: h(t.artist
|
|
43
|
+
artist: h(t.artist ?? ""),
|
|
40
44
|
description: m(t.description, { glossary: b.glossary }),
|
|
41
|
-
images: (e.images ?? []).map((e) => ({
|
|
45
|
+
images: (e.images ?? []).slice(0, b.pictureLimit > 0 ? b.pictureLimit : void 0).map((e) => ({
|
|
42
46
|
url: e.url,
|
|
43
47
|
alt: e.captions?.[b.language] ?? ""
|
|
44
48
|
}))
|
package/dist/content.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./FeaturedRecord-DJfyvfqt.js";
|
|
2
2
|
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./GlossaryPopover-DcptyNWI.js";
|
|
3
3
|
import { a as d, c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./TimelineEventList-gsoc-SBx.js";
|
|
4
|
-
import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-
|
|
5
|
-
import { t as E } from "./content-
|
|
4
|
+
import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-2ctLMfvw.js";
|
|
5
|
+
import { t as E } from "./content-Cu_44di8.js";
|
|
6
6
|
export { w as BackLink, b as DynastyList, y as DynastyPopout, h as FacetSelect, e as FeaturedRecord, d as FilterPanel, l as GlossaryPopover, S as GlossaryTool, a as MediaGallery, T as OnDisplayIn, _ as Pagination, g as PartnerMap, m as PartnerPanel, t as RecordCredits, i as RecordGrid, n as RecordLanguages, u as RecordList, c as RecordSheet, x as RelatedMedia, s as RelatedRecords, p as ResultsSummary, f as SectionCards, o as SheetSection, r as SourceCredit, E as SpecialFeatures, v as TimelineEventList, C as TimelineLookup };
|
package/dist/dxa.js
CHANGED
|
@@ -2,13 +2,13 @@ import { a as e, i as t, n, r } from "./Theme-tF4wOaNa.js";
|
|
|
2
2
|
import { c as i, i as a, n as o, r as s, t as c } from "./chrome-i1DOEyLS.js";
|
|
3
3
|
import { c as l, d as u } from "./GlossaryPopover-DcptyNWI.js";
|
|
4
4
|
import { a as d, c as f, n as p, o as m, s as h } from "./TimelineEventList-gsoc-SBx.js";
|
|
5
|
-
import { s as g } from "./OnDisplayIn-
|
|
5
|
+
import { s as g } from "./OnDisplayIn-2ctLMfvw.js";
|
|
6
6
|
import { a as ee, i as _, n as v, r as y, s as b, t as x } from "./TimelineResultsView-C2-TnM71.js";
|
|
7
|
-
import { t as te } from "./RecordView-
|
|
7
|
+
import { t as te } from "./RecordView-CdKx9tFy.js";
|
|
8
8
|
import { t as ne } from "./SiteShell-CXMfLqzq.js";
|
|
9
9
|
import { A as re, C as ie, D as ae, E as oe, M as se, N as ce, O as le, S as ue, T as de, _ as fe, a as pe, b as S, c as me, d as he, f as ge, g as C, h as _e, i as ve, j as ye, k as be, l as xe, m as Se, n as Ce, o as we, p as Te, r as Ee, s as De, t as Oe, u as w, v as ke, w as Ae, x as je, y as Me } from "./data-CCcDVsTG.js";
|
|
10
10
|
import { A as Ne, C as Pe, D as Fe, E as Ie, F as Le, I as Re, L as ze, M as Be, N as Ve, O as He, P as Ue, R as We, S as Ge, T, _ as Ke, a as qe, b as Je, c as Ye, d as Xe, f as E, g as Ze, h as Qe, i as $e, j as et, k as tt, l as nt, m as rt, n as it, o as D, p as at, r as ot, s as st, t as ct, u as lt, v as O, w as k, x as A, y as ut } from "./data-CGFEbGab.js";
|
|
11
|
-
import { t as dt } from "./ItemDetailView-
|
|
11
|
+
import { t as dt } from "./ItemDetailView-Dko_grJr.js";
|
|
12
12
|
import { n as ft, r as pt, t as mt } from "./themeSpecs-C2Y2abxd.js";
|
|
13
13
|
import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as ht, createTextVNode as L, createVNode as R, normalizeClass as gt, normalizeStyle as _t, onBeforeUnmount as vt, onMounted as yt, openBlock as z, ref as B, renderList as V, renderSlot as bt, resolveDynamicComponent as xt, toDisplayString as H, unref as U, vModelText as St, vShow as Ct, withCtx as W, withDirectives as G, withModifiers as wt } from "vue";
|
|
14
14
|
import { I18nText as K, NotFoundView as Tt, languageLabels as Et, loadEntities as q, mwnfLinks as J, offeredLanguages as Dt, renderInline as Ot, sectionMeta as kt, useDataPackage as At, useFacets as jt, useI18n as Y, useKeywordIndex as Mt, useSection as Nt, useSiteConfig as X, yearBuckets as Z } from "@museumwnf/viewer-core";
|
|
@@ -1695,7 +1695,8 @@ var nr = {
|
|
|
1695
1695
|
setup(e) {
|
|
1696
1696
|
let t = e;
|
|
1697
1697
|
function n(e) {
|
|
1698
|
-
|
|
1698
|
+
let t = String(e ?? "").replace(/<[^>]*>/g, " ");
|
|
1699
|
+
return (typeof DOMParser > "u" ? t : new DOMParser().parseFromString(t, "text/html").documentElement.textContent ?? "").replace(/\s+/g, " ").trim();
|
|
1699
1700
|
}
|
|
1700
1701
|
function r(e, t) {
|
|
1701
1702
|
if (!e || e.length <= t) return e;
|
|
@@ -1839,7 +1840,7 @@ var nr = {
|
|
|
1839
1840
|
}, Fr = /* @__PURE__ */ e({ default: () => Ur }), Ir = { class: "mwnf-dxa-home" }, Lr = {
|
|
1840
1841
|
key: 0,
|
|
1841
1842
|
class: "mwnf-dxa-home-logos"
|
|
1842
|
-
}, Rr = { class: "mwnf-dxa-home-logos__label" }, zr = { class: "mwnf-dxa-home-logos__list" }, Br = ["src", "alt"], Vr =
|
|
1843
|
+
}, Rr = { class: "mwnf-dxa-home-logos__label" }, zr = { class: "mwnf-dxa-home-logos__list" }, Br = ["src", "alt"], Vr = 3, Hr = 4, Ur = {
|
|
1843
1844
|
__name: "Home",
|
|
1844
1845
|
setup(e) {
|
|
1845
1846
|
let { t, locale: n } = Y(), r = X(), i = M(() => r.links ?? {}), a = M(() => xe(Vr)), s = B([]);
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,6 @@ import { a as e, c as t, d as n, f as r, l as i, m as a, n as o, o as s, p as c,
|
|
|
2
2
|
import { t as p } from "./FeaturedRecord-DJfyvfqt.js";
|
|
3
3
|
import { a as m, c as h, i as g, l as _, n as v, o as y, r as b, s as x, t as S, u as C } from "./GlossaryPopover-DcptyNWI.js";
|
|
4
4
|
import { a as w, c as T, i as E, n as D, o as O, r as k, s as A, t as j } from "./TimelineEventList-gsoc-SBx.js";
|
|
5
|
-
import { a as M, i as N, n as P, o as F, r as I, s as L, t as R } from "./OnDisplayIn-
|
|
6
|
-
import { t as z } from "./content-
|
|
5
|
+
import { a as M, i as N, n as P, o as F, r as I, s as L, t as R } from "./OnDisplayIn-2ctLMfvw.js";
|
|
6
|
+
import { t as z } from "./content-Cu_44di8.js";
|
|
7
7
|
export { c as AppBanner, n as AppContent, s as AppFooter, a as AppHeader, f as AppHyperlinks, r as AppNavigation, i as AppSponsors, L as BackLink, N as DynastyList, M as DynastyPopout, O as FacetSelect, p as FeaturedRecord, w as FilterPanel, S as GlossaryPopover, F as GlossaryTool, v as MediaGallery, R as OnDisplayIn, e as PageShell, A as Pagination, k as PartnerMap, D as PartnerPanel, m as RecordCredits, _ as RecordGrid, h as RecordLanguages, C as RecordList, x as RecordSheet, P as RelatedMedia, b as RelatedRecords, E as ResultsSummary, T as SectionCards, y as SheetSection, u as SocialLinks, g as SourceCredit, z as SpecialFeatures, j as TimelineEventList, I as TimelineLookup, d as chromeAsset, o as chromePicture, l as chromeSource, t as mwnfSocialLinks };
|
package/dist/standalone.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as e } from "./chrome-i1DOEyLS.js";
|
|
2
2
|
import { c as t, d as n, n as r } from "./GlossaryPopover-DcptyNWI.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { byId as
|
|
3
|
+
import { n as i, t as a } from "./RecordView-CdKx9tFy.js";
|
|
4
|
+
import { t as o } from "./SiteShell-CXMfLqzq.js";
|
|
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, removeEndingPoint as M, renderBlock as N, renderInline as P, renderPlain as F, useDataPackage as I, useI18n as L, useSection as ee, useSiteConfig as R } from "@museumwnf/viewer-core";
|
|
7
7
|
//#region src/standalone/Banner.vue
|
|
8
|
-
var
|
|
8
|
+
var z = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "mwnf-standalone-banner__title"
|
|
11
|
-
},
|
|
11
|
+
}, B = {
|
|
12
12
|
__name: "Banner",
|
|
13
13
|
props: {
|
|
14
14
|
image: {
|
|
@@ -21,29 +21,29 @@ var R = {
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
setup(e) {
|
|
24
|
-
return (t, n) => (
|
|
24
|
+
return (t, n) => (b(), d("div", {
|
|
25
25
|
class: "mwnf-standalone-banner",
|
|
26
|
-
style:
|
|
27
|
-
}, [e.title ? (
|
|
26
|
+
style: y(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
|
|
27
|
+
}, [e.title ? (b(), d("h1", z, [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 V() {
|
|
33
|
+
let t = R();
|
|
34
34
|
return (n) => e(t.chrome, n);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function H(e, t) {
|
|
37
37
|
return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function U(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 W(e, t = /* @__PURE__ */ new Date()) {
|
|
44
|
+
return e?.length ? e[U(t) % e.length] : null;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function G(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 W(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"], K = {
|
|
60
60
|
key: 1,
|
|
61
61
|
class: "mwnf-standalone-sponsors__title"
|
|
62
|
-
},
|
|
62
|
+
}, q = {
|
|
63
63
|
key: 2,
|
|
64
64
|
class: "mwnf-standalone-sponsors__logos"
|
|
65
|
-
},
|
|
65
|
+
}, J = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "mwnf-standalone-sponsors__note"
|
|
68
|
-
},
|
|
68
|
+
}, oe = ["src", "alt"], se = ["innerHTML"], ce = ["href"], le = ["src", "alt"], ue = ["src", "alt"], de = {
|
|
69
69
|
key: 3,
|
|
70
70
|
class: "mwnf-standalone-sponsors__links"
|
|
71
71
|
}, Y = {
|
|
@@ -75,81 +75,81 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
75
75
|
default: () => []
|
|
76
76
|
} },
|
|
77
77
|
setup(e) {
|
|
78
|
-
let t = e, { t: r } =
|
|
78
|
+
let t = e, { t: r } = L(), i = V(), 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 ? P(r(e.lead)) : "",
|
|
82
|
+
text: e.text ? P(r(e.text)) : "",
|
|
83
83
|
break: !!e.break,
|
|
84
84
|
title: e.title ? r(e.title) : "",
|
|
85
85
|
logos: (e.logos ?? []).map((e) => ({
|
|
86
86
|
src: i(e.src) ?? "",
|
|
87
87
|
alt: e.alt ? r(e.alt) : "",
|
|
88
88
|
href: e.href ?? "",
|
|
89
|
-
note: e.note ?
|
|
89
|
+
note: e.note ? N(r(e.note)) : ""
|
|
90
90
|
})),
|
|
91
91
|
links: (e.links ?? []).map((e) => ({
|
|
92
92
|
...e,
|
|
93
93
|
label: r(e.label)
|
|
94
94
|
}))
|
|
95
95
|
})));
|
|
96
|
-
return (e, t) => (
|
|
96
|
+
return (e, t) => (b(), d("div", te, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("div", {
|
|
97
97
|
key: e.key,
|
|
98
98
|
class: "mwnf-standalone-sponsors__column",
|
|
99
|
-
style:
|
|
99
|
+
style: y(e.width ? { flexGrow: e.width } : void 0)
|
|
100
100
|
}, [
|
|
101
|
-
e.lead || e.text ? (
|
|
102
|
-
e.lead ? (
|
|
101
|
+
e.lead || e.text ? (b(), d("p", ne, [
|
|
102
|
+
e.lead ? (b(), d("i", {
|
|
103
103
|
key: 0,
|
|
104
104
|
innerHTML: e.lead
|
|
105
|
-
}, null, 8, re)) :
|
|
106
|
-
e.lead && e.break ? (
|
|
107
|
-
e.text ? (
|
|
105
|
+
}, null, 8, re)) : u("", !0),
|
|
106
|
+
e.lead && e.break ? (b(), d("br", ie)) : e.lead && e.text ? (b(), d(s, { key: 2 }, [m(w(" "))], 64)) : u("", !0),
|
|
107
|
+
e.text ? (b(), d("span", {
|
|
108
108
|
key: 3,
|
|
109
109
|
innerHTML: e.text
|
|
110
|
-
}, null, 8, ae)) :
|
|
111
|
-
])) :
|
|
112
|
-
e.title ? (
|
|
113
|
-
e.logos.length ? (
|
|
110
|
+
}, null, 8, ae)) : u("", !0)
|
|
111
|
+
])) : u("", !0),
|
|
112
|
+
e.title ? (b(), d("p", K, w(e.title), 1)) : u("", !0),
|
|
113
|
+
e.logos.length ? (b(), d("ul", q, [(b(!0), d(s, null, S(e.logos, (e) => (b(), d("li", { key: e.src }, [e.note ? (b(), d("details", J, [f("summary", null, [f("img", {
|
|
114
114
|
src: e.src,
|
|
115
115
|
alt: e.alt
|
|
116
|
-
}, null, 8,
|
|
116
|
+
}, null, 8, oe)]), f("div", {
|
|
117
117
|
class: "mwnf-standalone-sponsors__note-body",
|
|
118
118
|
innerHTML: e.note
|
|
119
|
-
}, null, 8,
|
|
119
|
+
}, null, 8, se)])) : e.href ? (b(), d("a", {
|
|
120
120
|
key: 1,
|
|
121
121
|
href: e.href,
|
|
122
122
|
target: "_blank",
|
|
123
123
|
rel: "noopener"
|
|
124
|
-
}, [
|
|
124
|
+
}, [f("img", {
|
|
125
125
|
src: e.src,
|
|
126
126
|
alt: e.alt
|
|
127
|
-
}, null, 8,
|
|
127
|
+
}, null, 8, le)], 8, ce)) : (b(), d("img", {
|
|
128
128
|
key: 2,
|
|
129
129
|
src: e.src,
|
|
130
130
|
alt: e.alt
|
|
131
|
-
}, null, 8,
|
|
132
|
-
e.links.length ? (
|
|
131
|
+
}, null, 8, ue))]))), 128))])) : u("", !0),
|
|
132
|
+
e.links.length ? (b(), d("ul", de, [(b(!0), d(s, null, S(e.links, (e) => (b(), d("li", { key: e.label }, [h(n, {
|
|
133
133
|
to: e.to,
|
|
134
134
|
href: e.href,
|
|
135
135
|
external: !!e.external
|
|
136
136
|
}, {
|
|
137
|
-
default:
|
|
137
|
+
default: O(() => [m(w(e.label), 1)]),
|
|
138
138
|
_: 2
|
|
139
139
|
}, 1032, [
|
|
140
140
|
"to",
|
|
141
141
|
"href",
|
|
142
142
|
"external"
|
|
143
|
-
])]))), 128))])) :
|
|
143
|
+
])]))), 128))])) : u("", !0)
|
|
144
144
|
], 4))), 128))]));
|
|
145
145
|
}
|
|
146
|
-
},
|
|
146
|
+
}, fe = { class: "mwnf-banner mwnf-standalone-home-banner" }, pe = ["src"], me = { class: "mwnf-standalone-home-banner__text" }, he = {
|
|
147
147
|
key: 0,
|
|
148
148
|
class: "mwnf-standalone-home-banner__title"
|
|
149
|
-
},
|
|
149
|
+
}, ge = {
|
|
150
150
|
key: 1,
|
|
151
151
|
class: "mwnf-standalone-home-banner__line"
|
|
152
|
-
},
|
|
152
|
+
}, _e = ["src"], ve = {
|
|
153
153
|
__name: "Shell",
|
|
154
154
|
props: {
|
|
155
155
|
language: {
|
|
@@ -163,100 +163,100 @@ 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:
|
|
167
|
-
let e = v.value.logo ?? {}, t = E(
|
|
166
|
+
let r = t, i = n, { t: a, locale: s } = L(), m = R(), 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, H(t, s.value)), D = c(() => {
|
|
167
|
+
let e = v.value.logo ?? {}, t = E(S.value?.logo ?? e.src);
|
|
168
168
|
return t ? {
|
|
169
169
|
logo: t,
|
|
170
170
|
alt: e.alt ?? ""
|
|
171
171
|
} : null;
|
|
172
|
-
}), k =
|
|
172
|
+
}), k = c(() => E(v.value.logo?.print)), A = c(() => (v.value.headerLinks ?? []).filter((e) => !e.on || e.on === "all" || e.on === (x.value ? "home" : "inner"))), j = c(() => {
|
|
173
173
|
let e = {
|
|
174
174
|
...v.value.banner ?? {},
|
|
175
|
-
...
|
|
175
|
+
...S.value?.banner ?? {}
|
|
176
176
|
};
|
|
177
177
|
return E(x.value ? e.home : e.inner) ?? "";
|
|
178
|
-
}), M =
|
|
179
|
-
let e =
|
|
180
|
-
return e ?
|
|
181
|
-
}), N =
|
|
178
|
+
}), M = c(() => {
|
|
179
|
+
let e = y.value.sectionTitles?.[g.value];
|
|
180
|
+
return e ? a(e) : "";
|
|
181
|
+
}), N = c(() => !x.value && !!(j.value || M.value)), P = c(() => {
|
|
182
182
|
let { homeTitle: e, homeText: t } = v.value.banner ?? {};
|
|
183
183
|
return x.value && (e || t) ? {
|
|
184
|
-
title: e ?
|
|
185
|
-
text: t ?
|
|
184
|
+
title: e ? a(e) : "",
|
|
185
|
+
text: t ? a(t) : ""
|
|
186
186
|
} : null;
|
|
187
|
-
}), F =
|
|
187
|
+
}), F = c(() => {
|
|
188
188
|
let e = v.value.sponsors;
|
|
189
189
|
return e?.columns?.length && (e.on === "all" || x.value) ? e : null;
|
|
190
|
-
}),
|
|
190
|
+
}), I = c(() => ({
|
|
191
191
|
navigation: {
|
|
192
|
-
...
|
|
192
|
+
...y.value,
|
|
193
193
|
headerLinks: A.value,
|
|
194
194
|
sectionTitles: {},
|
|
195
195
|
...v.value.languages === !1 ? { languages: [] } : {}
|
|
196
196
|
},
|
|
197
197
|
banner: null,
|
|
198
|
-
...
|
|
199
|
-
})),
|
|
198
|
+
...D.value ? { brand: D.value } : {}
|
|
199
|
+
})), z = (/* @__PURE__ */ new Date()).getFullYear(), V = c(() => v.value.copyright ? `${a(v.value.copyright)} ${z}` : ""), U = c(() => [
|
|
200
200
|
"mwnf-standalone",
|
|
201
201
|
x.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
|
|
202
|
-
|
|
202
|
+
S.value?.class ?? ""
|
|
203
203
|
]);
|
|
204
|
-
return (e, t) => (
|
|
205
|
-
class:
|
|
206
|
-
config:
|
|
204
|
+
return (e, t) => (b(), l(o, {
|
|
205
|
+
class: _(U.value),
|
|
206
|
+
config: I.value,
|
|
207
207
|
languages: v.value.languages === !1 ? [] : r.languages,
|
|
208
208
|
language: r.language,
|
|
209
209
|
"language-placement": "header",
|
|
210
210
|
"language-style": "select",
|
|
211
211
|
"header-home": v.value.logo?.href ?? "",
|
|
212
|
-
"header-title": x.value ? "" : v.value.heading ?
|
|
213
|
-
"header-subtitle": x.value ? "" : v.value.subheading ?
|
|
212
|
+
"header-title": x.value ? "" : v.value.heading ? T(a)(v.value.heading) : "",
|
|
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": V.value || void 0,
|
|
217
217
|
"onUpdate:language": t[0] ||= (e) => i("update:language", e)
|
|
218
|
-
},
|
|
219
|
-
default:
|
|
218
|
+
}, p({
|
|
219
|
+
default: O(() => [C(e.$slots, "default")]),
|
|
220
220
|
_: 2
|
|
221
221
|
}, [
|
|
222
222
|
N.value ? {
|
|
223
223
|
name: "banner",
|
|
224
|
-
fn:
|
|
224
|
+
fn: O(() => [h(B, {
|
|
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:
|
|
231
|
+
fn: O(() => [f("section", fe, [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, pe)) : u("", !0), f("div", me, [P.value.title ? (b(), d("h2", he, [f("i", null, w(P.value.title), 1)])) : u("", !0), P.value.text ? (b(), d("p", ge, [f("span", null, w(P.value.text), 1)])) : u("", !0)])])]),
|
|
237
237
|
key: "1"
|
|
238
238
|
} : void 0,
|
|
239
239
|
k.value ? {
|
|
240
240
|
name: "notice",
|
|
241
|
-
fn:
|
|
241
|
+
fn: O(() => [f("img", {
|
|
242
242
|
class: "mwnf-standalone__print-logo",
|
|
243
243
|
src: k.value,
|
|
244
244
|
alt: ""
|
|
245
|
-
}, null, 8,
|
|
245
|
+
}, null, 8, _e)]),
|
|
246
246
|
key: "2"
|
|
247
247
|
} : void 0,
|
|
248
248
|
e.$slots.sponsors ? {
|
|
249
249
|
name: "sponsors",
|
|
250
|
-
fn:
|
|
250
|
+
fn: O(() => [C(e.$slots, "sponsors")]),
|
|
251
251
|
key: "3"
|
|
252
252
|
} : F.value ? {
|
|
253
253
|
name: "sponsors",
|
|
254
|
-
fn:
|
|
254
|
+
fn: O(() => [h(Y, { columns: F.value.columns }, null, 8, ["columns"])]),
|
|
255
255
|
key: "4"
|
|
256
256
|
} : void 0,
|
|
257
257
|
e.$slots.footer ? {
|
|
258
258
|
name: "footer",
|
|
259
|
-
fn:
|
|
259
|
+
fn: O(() => [C(e.$slots, "footer")]),
|
|
260
260
|
key: "5"
|
|
261
261
|
} : void 0
|
|
262
262
|
]), 1032, [
|
|
@@ -271,16 +271,16 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
271
271
|
"footer-text"
|
|
272
272
|
]));
|
|
273
273
|
}
|
|
274
|
-
},
|
|
274
|
+
}, ye = {
|
|
275
275
|
key: 0,
|
|
276
276
|
class: "mwnf-standalone-highlight"
|
|
277
|
-
},
|
|
277
|
+
}, be = ["src", "alt"], xe = {
|
|
278
278
|
key: 1,
|
|
279
279
|
class: "mwnf-standalone-highlight__heading"
|
|
280
|
-
},
|
|
280
|
+
}, Se = { class: "mwnf-standalone-highlight__lines" }, Ce = ["innerHTML"], we = {
|
|
281
281
|
key: 2,
|
|
282
282
|
class: "mwnf-standalone-highlight__place"
|
|
283
|
-
},
|
|
283
|
+
}, Te = {
|
|
284
284
|
key: 3,
|
|
285
285
|
class: "mwnf-standalone-highlight__action"
|
|
286
286
|
}, X = {
|
|
@@ -320,48 +320,48 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
322
|
setup(e) {
|
|
323
|
-
let t = e, { t: r } =
|
|
323
|
+
let t = e, { t: r } = L(), i = (e) => M(Array.isArray(e) ? e.join("; ") : e), a = c(() => {
|
|
324
324
|
let e = t.text ?? {}, n = [], a = i(e.name ?? t.record?.internal_name ?? "");
|
|
325
|
-
a && n.push(
|
|
325
|
+
a && n.push(P(a));
|
|
326
326
|
let o = i(e.alternate_name);
|
|
327
|
-
o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${
|
|
327
|
+
o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${P(o)}`);
|
|
328
328
|
let s = [i(e.dates), i(e.dynasty)].filter(Boolean).join(", ");
|
|
329
|
-
s && n.push(
|
|
329
|
+
s && n.push(P(s));
|
|
330
330
|
for (let t of ["materials", "holder"]) {
|
|
331
331
|
let r = i(e[t]);
|
|
332
|
-
r && n.push(
|
|
332
|
+
r && n.push(P(r));
|
|
333
333
|
}
|
|
334
334
|
return n;
|
|
335
|
-
}),
|
|
336
|
-
return (t, i) => e.record ? (
|
|
337
|
-
|
|
335
|
+
}), o = c(() => [i(t.text?.location), t.country].filter(Boolean).join(", ")), p = c(() => t.picture || (t.record?.images?.[0]?.url ?? "")), g = c(() => F(String(t.text?.name ?? t.record?.internal_name ?? "")));
|
|
336
|
+
return (t, i) => e.record ? (b(), d("div", ye, [
|
|
337
|
+
p.value ? (b(), l(n, {
|
|
338
338
|
key: 0,
|
|
339
339
|
class: "mwnf-standalone-highlight__media",
|
|
340
340
|
to: e.to
|
|
341
341
|
}, {
|
|
342
|
-
default:
|
|
342
|
+
default: O(() => [f("img", {
|
|
343
343
|
class: "mwnf-standalone-highlight__image",
|
|
344
|
-
src:
|
|
344
|
+
src: p.value,
|
|
345
345
|
alt: g.value
|
|
346
|
-
}, null, 8,
|
|
346
|
+
}, null, 8, be)]),
|
|
347
347
|
_: 1
|
|
348
|
-
}, 8, ["to"])) :
|
|
349
|
-
e.heading ? (
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
e.action ? (
|
|
353
|
-
default:
|
|
348
|
+
}, 8, ["to"])) : u("", !0),
|
|
349
|
+
e.heading ? (b(), d("p", xe, [f("strong", null, w(T(r)(e.heading)), 1)])) : u("", !0),
|
|
350
|
+
f("p", Se, [(b(!0), d(s, null, S(a.value, (e, t) => (b(), d(s, { key: t }, [f("span", { innerHTML: e }, null, 8, Ce), i[0] ||= f("br", null, null, -1)], 64))), 128))]),
|
|
351
|
+
o.value ? (b(), d("p", we, w(T(F)(o.value)), 1)) : u("", !0),
|
|
352
|
+
e.action ? (b(), d("p", Te, [h(n, { to: e.to }, {
|
|
353
|
+
default: O(() => [m(w(T(r)(e.action)), 1)]),
|
|
354
354
|
_: 1
|
|
355
|
-
}, 8, ["to"])])) :
|
|
356
|
-
])) :
|
|
355
|
+
}, 8, ["to"])])) : u("", !0)
|
|
356
|
+
])) : u("", !0);
|
|
357
357
|
}
|
|
358
|
-
},
|
|
358
|
+
}, Ee = {
|
|
359
359
|
key: 0,
|
|
360
360
|
class: "mwnf-standalone-tiles"
|
|
361
|
-
},
|
|
361
|
+
}, De = {
|
|
362
362
|
key: 0,
|
|
363
363
|
class: "mwnf-standalone-tiles__caption"
|
|
364
|
-
},
|
|
364
|
+
}, Oe = { class: "mwnf-standalone-tiles__grid" }, ke = ["src", "alt"], Ae = {
|
|
365
365
|
key: 0,
|
|
366
366
|
class: "mwnf-standalone-tiles__label"
|
|
367
367
|
}, Z = {
|
|
@@ -377,94 +377,94 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
379
|
setup(e) {
|
|
380
|
-
let t = e, { t: r } =
|
|
380
|
+
let t = e, { t: r } = L(), i = V(), a = c(() => t.items.map((e) => ({
|
|
381
381
|
...e,
|
|
382
382
|
image: i(e.image) ?? "",
|
|
383
|
-
label: e.text ?
|
|
383
|
+
label: e.text ? F(e.text) : e.label ? r(e.label) : ""
|
|
384
384
|
})));
|
|
385
|
-
return (t, i) => a.value.length ? (
|
|
385
|
+
return (t, i) => a.value.length ? (b(), d("section", Ee, [e.caption ? (b(), d("p", De, w(T(r)(e.caption)), 1)) : u("", !0), f("ul", Oe, [(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
|
-
}, [
|
|
388
|
+
}, [h(n, {
|
|
389
389
|
to: e.to,
|
|
390
390
|
href: e.href,
|
|
391
391
|
class: "mwnf-standalone-tiles__link"
|
|
392
392
|
}, {
|
|
393
|
-
default:
|
|
393
|
+
default: O(() => [f("img", {
|
|
394
394
|
class: "mwnf-standalone-tiles__image",
|
|
395
395
|
src: e.image,
|
|
396
396
|
alt: e.label
|
|
397
|
-
}, null, 8,
|
|
397
|
+
}, null, 8, ke), e.label ? (b(), d("span", Ae, w(e.label), 1)) : u("", !0)]),
|
|
398
398
|
_: 2
|
|
399
|
-
}, 1032, ["to", "href"])]))), 128))])])) :
|
|
399
|
+
}, 1032, ["to", "href"])]))), 128))])])) : u("", !0);
|
|
400
400
|
}
|
|
401
|
-
},
|
|
401
|
+
}, je = { class: "mwnf-standalone-home" }, Me = {
|
|
402
402
|
key: 0,
|
|
403
403
|
class: "mwnf-standalone-home__links"
|
|
404
|
-
},
|
|
404
|
+
}, Ne = { key: 1 }, Pe = {
|
|
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: r, locale: i } =
|
|
411
|
+
let t = e, { t: r, locale: i } = L(), a = R(), o = c(() => t.home ?? a.standalone?.home ?? {}), f = c(() => (o.value.links ?? []).map((e) => ({
|
|
412
412
|
...e,
|
|
413
413
|
label: r(e.label),
|
|
414
414
|
prefix: e.prefix ? r(e.prefix) : "",
|
|
415
415
|
title: e.title ? r(e.title) : void 0
|
|
416
|
-
}))),
|
|
417
|
-
|
|
418
|
-
|
|
416
|
+
}))), p = c(() => o.value.highlight ?? null), g = I();
|
|
417
|
+
p.value?.list?.length && (A(["items", "countries"]), D(i, (e) => {
|
|
418
|
+
g.loadTranslations("items", e), g.loadTranslations("countries", e);
|
|
419
419
|
}, { immediate: !0 }));
|
|
420
|
-
let v =
|
|
421
|
-
let e =
|
|
420
|
+
let v = k("items", "backward_compatibility"), y = c(() => {
|
|
421
|
+
let e = p.value?.list ?? [], t = e.indexOf(W(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(G(e[(t + n) % e.length]));
|
|
424
424
|
if (r) return r;
|
|
425
425
|
}
|
|
426
426
|
return null;
|
|
427
|
-
}),
|
|
428
|
-
let e =
|
|
429
|
-
return e ?
|
|
430
|
-
}),
|
|
431
|
-
name:
|
|
432
|
-
params: { id:
|
|
433
|
-
} : null), j =
|
|
434
|
-
let e =
|
|
435
|
-
return e.length ? j(
|
|
436
|
-
}), N =
|
|
437
|
-
let e =
|
|
427
|
+
}), x = c(() => y.value ? g.tr("items", y.value.id, i.value, "en") : {}), T = c(() => {
|
|
428
|
+
let e = y.value?.country_id;
|
|
429
|
+
return e ? g.tr("countries", e, i.value, "en").name ?? "" : "";
|
|
430
|
+
}), E = c(() => y.value ? {
|
|
431
|
+
name: p.value.route ?? "item",
|
|
432
|
+
params: { id: y.value.id }
|
|
433
|
+
} : null), j = V(), M = c(() => {
|
|
434
|
+
let e = p.value?.pictures ?? [];
|
|
435
|
+
return e.length ? j(W(e)) ?? "" : "";
|
|
436
|
+
}), N = c(() => {
|
|
437
|
+
let e = o.value.tiles?.items;
|
|
438
438
|
return (typeof e == "function" ? e() : e) ?? [];
|
|
439
439
|
});
|
|
440
|
-
return (e, t) => (
|
|
441
|
-
f.value.length ? (
|
|
440
|
+
return (e, t) => (b(), d("div", je, [
|
|
441
|
+
f.value.length ? (b(), d("ul", Me, [(b(!0), d(s, null, S(f.value, (e) => (b(), d("li", {
|
|
442
442
|
key: e.label,
|
|
443
|
-
class:
|
|
444
|
-
}, [
|
|
443
|
+
class: _({ "mwnf-standalone-home__link--gap": e.gap })
|
|
444
|
+
}, [h(n, {
|
|
445
445
|
to: e.to,
|
|
446
446
|
href: e.href,
|
|
447
447
|
external: !!e.external,
|
|
448
448
|
title: e.title
|
|
449
449
|
}, {
|
|
450
|
-
default:
|
|
450
|
+
default: O(() => [e.prefix ? (b(), d(s, { key: 0 }, [m(w(`${e.prefix} `), 1)], 64)) : u("", !0), e.italic ? (b(), d("i", Ne, w(e.label), 1)) : (b(), d(s, { key: 2 }, [m(w(e.label), 1)], 64))]),
|
|
451
451
|
_: 2
|
|
452
452
|
}, 1032, [
|
|
453
453
|
"to",
|
|
454
454
|
"href",
|
|
455
455
|
"external",
|
|
456
456
|
"title"
|
|
457
|
-
])], 2))), 128))])) :
|
|
458
|
-
|
|
457
|
+
])], 2))), 128))])) : u("", !0),
|
|
458
|
+
p.value ? (b(), l(X, {
|
|
459
459
|
key: 1,
|
|
460
|
-
record:
|
|
461
|
-
text:
|
|
460
|
+
record: y.value,
|
|
461
|
+
text: x.value,
|
|
462
462
|
country: T.value,
|
|
463
|
-
to:
|
|
463
|
+
to: E.value,
|
|
464
464
|
picture: M.value,
|
|
465
|
-
heading:
|
|
466
|
-
"also-known-as":
|
|
467
|
-
action:
|
|
465
|
+
heading: p.value.heading ?? "",
|
|
466
|
+
"also-known-as": p.value.alsoKnownAs ?? "",
|
|
467
|
+
action: p.value.action ?? ""
|
|
468
468
|
}, null, 8, [
|
|
469
469
|
"record",
|
|
470
470
|
"text",
|
|
@@ -474,19 +474,19 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
474
474
|
"heading",
|
|
475
475
|
"also-known-as",
|
|
476
476
|
"action"
|
|
477
|
-
])) :
|
|
478
|
-
|
|
477
|
+
])) : u("", !0),
|
|
478
|
+
o.value.tiles ? (b(), l(Z, {
|
|
479
479
|
key: 2,
|
|
480
|
-
caption:
|
|
480
|
+
caption: o.value.tiles.caption ?? "",
|
|
481
481
|
items: N.value
|
|
482
|
-
}, null, 8, ["caption", "items"])) :
|
|
483
|
-
|
|
482
|
+
}, null, 8, ["caption", "items"])) : u("", !0),
|
|
483
|
+
C(e.$slots, "default")
|
|
484
484
|
]));
|
|
485
485
|
}
|
|
486
|
-
},
|
|
486
|
+
}, Fe = { class: "mwnf-standalone-related" }, Ie = { class: "mwnf-standalone-related__heading" }, Le = { class: "mwnf-standalone-related__group-heading" }, Re = { class: "mwnf-standalone-related__thumbs" }, ze = ["src", "alt"], Be = ["innerHTML"], Ve = {
|
|
487
487
|
key: 0,
|
|
488
488
|
class: "mwnf-standalone-related__download"
|
|
489
|
-
},
|
|
489
|
+
}, He = { class: "mwnf-standalone-related__download-heading" }, Q = {
|
|
490
490
|
__name: "RelatedContent",
|
|
491
491
|
props: {
|
|
492
492
|
heading: {
|
|
@@ -507,44 +507,44 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
507
507
|
}
|
|
508
508
|
},
|
|
509
509
|
setup(e) {
|
|
510
|
-
let t = e, { t: r } =
|
|
510
|
+
let t = e, { t: r } = L(), i = c(() => t.groups.map((e) => ({
|
|
511
511
|
heading: r(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,
|
|
518
|
-
|
|
519
|
-
(
|
|
517
|
+
return (t, o) => (b(), d("aside", Fe, [
|
|
518
|
+
f("p", Ie, [f("strong", null, w(T(r)(e.heading)), 1)]),
|
|
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
|
-
}, [
|
|
522
|
+
}, [f("p", Le, w(e.heading), 1), f("ul", Re, [(b(!0), d(s, null, S(e.rows, (e) => (b(), d("li", { key: e.id }, [h(n, {
|
|
523
523
|
to: e.to,
|
|
524
524
|
title: e.imageAlt
|
|
525
525
|
}, {
|
|
526
|
-
default:
|
|
526
|
+
default: O(() => [e.image ? (b(), d("img", {
|
|
527
527
|
key: 0,
|
|
528
528
|
src: e.image,
|
|
529
529
|
alt: e.imageAlt
|
|
530
|
-
}, null, 8,
|
|
530
|
+
}, null, 8, ze)) : (b(), d("span", {
|
|
531
531
|
key: 1,
|
|
532
532
|
innerHTML: e.name
|
|
533
|
-
}, null, 8,
|
|
533
|
+
}, null, 8, Be))]),
|
|
534
534
|
_: 2
|
|
535
535
|
}, 1032, ["to", "title"])]))), 128))])]))), 128)),
|
|
536
|
-
|
|
537
|
-
e.download ? (
|
|
536
|
+
C(t.$slots, "default"),
|
|
537
|
+
e.download ? (b(), d("div", Ve, [f("p", He, w(T(r)(e.download.heading)), 1), f("button", {
|
|
538
538
|
type: "button",
|
|
539
539
|
class: "mwnf-standalone-related__print",
|
|
540
540
|
onClick: a
|
|
541
|
-
},
|
|
541
|
+
}, w(T(r)(e.download.print)), 1)])) : u("", !0)
|
|
542
542
|
]));
|
|
543
543
|
}
|
|
544
|
-
},
|
|
544
|
+
}, Ue = { class: "mwnf-standalone-item__top" }, We = { class: "mwnf-standalone-item__left" }, Ge = {
|
|
545
545
|
key: 0,
|
|
546
546
|
class: "mwnf-standalone-item__back"
|
|
547
|
-
},
|
|
547
|
+
}, Ke = {
|
|
548
548
|
__name: "ItemSheet",
|
|
549
549
|
props: {
|
|
550
550
|
spec: {
|
|
@@ -565,43 +565,46 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
565
565
|
}
|
|
566
566
|
},
|
|
567
567
|
setup(e) {
|
|
568
|
-
let
|
|
569
|
-
...
|
|
568
|
+
let o = e, { t: _ } = L(), y = E(), x = c(() => ({
|
|
569
|
+
...o.spec,
|
|
570
570
|
media: () => []
|
|
571
571
|
}));
|
|
572
|
-
function
|
|
573
|
-
|
|
572
|
+
function T(e) {
|
|
573
|
+
return i(D(e), o.spec.pictureLimit, e);
|
|
574
|
+
}
|
|
575
|
+
function D({ record: e, text: t, language: n }) {
|
|
576
|
+
if (o.spec.media) return o.spec.media(e, {
|
|
574
577
|
record: e,
|
|
575
578
|
text: t,
|
|
576
579
|
language: n
|
|
577
580
|
});
|
|
578
|
-
let r =
|
|
581
|
+
let r = F(String(t?.name ?? e?.internal_name ?? ""));
|
|
579
582
|
return (e?.images ?? []).map((e) => ({
|
|
580
583
|
url: e.url,
|
|
581
584
|
alt: e.captions?.[n] ?? r,
|
|
582
585
|
caption: e.captions?.[n] ?? "",
|
|
583
|
-
...
|
|
586
|
+
...j(e, n)
|
|
584
587
|
}));
|
|
585
588
|
}
|
|
586
|
-
let
|
|
589
|
+
let k = c(() => o.back.map((e) => ({
|
|
587
590
|
...e,
|
|
588
|
-
label:
|
|
589
|
-
}))),
|
|
591
|
+
label: _(e.label)
|
|
592
|
+
}))), A = /* @__PURE__ */ new Set([
|
|
590
593
|
"header",
|
|
591
594
|
"before-sheet",
|
|
592
595
|
"related",
|
|
593
596
|
"sidebar",
|
|
594
597
|
"aside"
|
|
595
|
-
]),
|
|
596
|
-
function
|
|
598
|
+
]), M = c(() => Object.keys(y).filter((e) => !A.has(e)));
|
|
599
|
+
function N() {
|
|
597
600
|
window.history.back();
|
|
598
601
|
}
|
|
599
|
-
return (
|
|
600
|
-
spec:
|
|
602
|
+
return (i, o) => (b(), l(a, {
|
|
603
|
+
spec: x.value,
|
|
601
604
|
id: e.id,
|
|
602
605
|
class: "mwnf-standalone-item"
|
|
603
|
-
},
|
|
604
|
-
header:
|
|
606
|
+
}, p({
|
|
607
|
+
header: O(({ languages: e, language: n, select: r }) => [f("div", Ue, [h(t, {
|
|
605
608
|
languages: e,
|
|
606
609
|
language: n,
|
|
607
610
|
onSelect: r
|
|
@@ -610,27 +613,27 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
610
613
|
"language",
|
|
611
614
|
"onSelect"
|
|
612
615
|
])])]),
|
|
613
|
-
"before-sheet":
|
|
616
|
+
"before-sheet": O((e) => [f("div", We, [k.value.length ? (b(), d("p", Ge, [(b(!0), d(s, null, S(k.value, (e) => (b(), d(s, { key: e.label }, [e.history ? (b(), d("button", {
|
|
614
617
|
key: 0,
|
|
615
618
|
type: "button",
|
|
616
619
|
class: "mwnf-standalone-item__back-link",
|
|
617
|
-
onClick:
|
|
618
|
-
},
|
|
620
|
+
onClick: N
|
|
621
|
+
}, w(e.label), 1)) : (b(), l(n, {
|
|
619
622
|
key: 1,
|
|
620
623
|
class: "mwnf-standalone-item__back-link",
|
|
621
624
|
to: e.to,
|
|
622
625
|
href: e.href
|
|
623
626
|
}, {
|
|
624
|
-
default:
|
|
627
|
+
default: O(() => [m(w(e.label), 1)]),
|
|
625
628
|
_: 2
|
|
626
|
-
}, 1032, ["to", "href"]))], 64))), 128))])) :
|
|
627
|
-
related:
|
|
629
|
+
}, 1032, ["to", "href"]))], 64))), 128))])) : u("", !0), h(r, { images: T(e) }, null, 8, ["images"])]), C(i.$slots, "before-sheet", v(g(e)))]),
|
|
630
|
+
related: O((t) => [h(Q, {
|
|
628
631
|
heading: e.related.heading ?? "record.related.title",
|
|
629
632
|
records: t.records,
|
|
630
633
|
groups: e.related.groups ?? [],
|
|
631
634
|
download: e.related.download ?? null
|
|
632
635
|
}, {
|
|
633
|
-
default:
|
|
636
|
+
default: O(() => [C(i.$slots, "sidebar", v(g(t)))]),
|
|
634
637
|
_: 2
|
|
635
638
|
}, 1032, [
|
|
636
639
|
"heading",
|
|
@@ -639,18 +642,18 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
639
642
|
"download"
|
|
640
643
|
])]),
|
|
641
644
|
_: 2
|
|
642
|
-
}, [
|
|
645
|
+
}, [S(M.value, (e) => ({
|
|
643
646
|
name: e,
|
|
644
|
-
fn:
|
|
647
|
+
fn: O((t) => [C(i.$slots, e, v(g(t)))])
|
|
645
648
|
}))]), 1032, ["spec", "id"]));
|
|
646
649
|
}
|
|
647
|
-
},
|
|
650
|
+
}, qe = ["innerHTML"], Je = {
|
|
648
651
|
key: 0,
|
|
649
652
|
class: "mwnf-standalone-page__link"
|
|
650
|
-
},
|
|
653
|
+
}, $ = {
|
|
651
654
|
key: 1,
|
|
652
655
|
class: "mwnf-standalone-page__print"
|
|
653
|
-
},
|
|
656
|
+
}, Ye = {
|
|
654
657
|
__name: "TextPage",
|
|
655
658
|
props: {
|
|
656
659
|
body: {
|
|
@@ -671,33 +674,33 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
671
674
|
}
|
|
672
675
|
},
|
|
673
676
|
setup(e) {
|
|
674
|
-
let t = e, { t: r } =
|
|
677
|
+
let t = e, { t: r } = L(), i = c(() => N(r(t.body)));
|
|
675
678
|
function a() {
|
|
676
679
|
window.print();
|
|
677
680
|
}
|
|
678
|
-
return (t, o) => (
|
|
679
|
-
|
|
681
|
+
return (t, o) => (b(), d("article", { class: _(["mwnf-standalone-page", { "mwnf-standalone-page--drop-cap": e.dropCap }]) }, [
|
|
682
|
+
f("div", {
|
|
680
683
|
class: "mwnf-standalone-page__body",
|
|
681
684
|
innerHTML: i.value
|
|
682
|
-
}, null, 8,
|
|
683
|
-
e.link ? (
|
|
685
|
+
}, null, 8, qe),
|
|
686
|
+
e.link ? (b(), d("p", Je, [h(n, {
|
|
684
687
|
to: e.link.to,
|
|
685
688
|
href: e.link.href
|
|
686
689
|
}, {
|
|
687
|
-
default:
|
|
690
|
+
default: O(() => [f("strong", null, w(e.link.text ?? T(r)(e.link.label)), 1)]),
|
|
688
691
|
_: 1
|
|
689
|
-
}, 8, ["to", "href"])])) :
|
|
690
|
-
e.print ? (
|
|
692
|
+
}, 8, ["to", "href"])])) : u("", !0),
|
|
693
|
+
e.print ? (b(), d("p", $, [f("button", {
|
|
691
694
|
type: "button",
|
|
692
695
|
class: "mwnf-standalone-page__print-button",
|
|
693
696
|
onClick: a
|
|
694
|
-
},
|
|
697
|
+
}, w(T(r)(e.print)), 1)])) : u("", !0)
|
|
695
698
|
], 2));
|
|
696
699
|
}
|
|
697
|
-
},
|
|
700
|
+
}, Xe = {
|
|
698
701
|
key: 0,
|
|
699
702
|
class: "mwnf-standalone-subnav"
|
|
700
|
-
},
|
|
703
|
+
}, Ze = { class: "mwnf-standalone-subnav__tabs" }, Qe = {
|
|
701
704
|
__name: "SubNav",
|
|
702
705
|
props: {
|
|
703
706
|
tabs: {
|
|
@@ -710,37 +713,37 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
710
713
|
}
|
|
711
714
|
},
|
|
712
715
|
setup(e) {
|
|
713
|
-
let t = e, { t: r } =
|
|
716
|
+
let t = e, { t: r } = L(), i = c(() => t.tabs.map((e) => ({
|
|
714
717
|
...e,
|
|
715
718
|
label: r(e.label)
|
|
716
719
|
})));
|
|
717
|
-
return (t, a) => i.value.length || e.aside ? (
|
|
720
|
+
return (t, a) => i.value.length || e.aside ? (b(), d("nav", Xe, [f("ul", Ze, [(b(!0), d(s, null, S(i.value, (e) => (b(), d("li", { key: e.label }, [h(n, {
|
|
718
721
|
to: e.to,
|
|
719
722
|
href: e.href,
|
|
720
|
-
class:
|
|
723
|
+
class: _(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
|
|
721
724
|
"aria-current": e.active ? "page" : void 0
|
|
722
725
|
}, {
|
|
723
|
-
default:
|
|
726
|
+
default: O(() => [m(w(e.label), 1)]),
|
|
724
727
|
_: 2
|
|
725
728
|
}, 1032, [
|
|
726
729
|
"to",
|
|
727
730
|
"href",
|
|
728
731
|
"class",
|
|
729
732
|
"aria-current"
|
|
730
|
-
])]))), 128))]), e.aside ? (
|
|
733
|
+
])]))), 128))]), e.aside ? (b(), l(n, {
|
|
731
734
|
key: 0,
|
|
732
735
|
to: e.aside.to,
|
|
733
736
|
href: e.aside.href,
|
|
734
737
|
class: "mwnf-standalone-subnav__aside"
|
|
735
738
|
}, {
|
|
736
|
-
default:
|
|
739
|
+
default: O(() => [m(w(T(r)(e.aside.label)), 1)]),
|
|
737
740
|
_: 1
|
|
738
|
-
}, 8, ["to", "href"])) :
|
|
741
|
+
}, 8, ["to", "href"])) : u("", !0)])) : u("", !0);
|
|
739
742
|
}
|
|
740
|
-
},
|
|
743
|
+
}, $e = ["disabled", "aria-label"], et = { class: "mwnf-standalone-slider__track" }, tt = ["src", "alt"], nt = {
|
|
741
744
|
key: 0,
|
|
742
745
|
class: "mwnf-standalone-slider__label"
|
|
743
|
-
},
|
|
746
|
+
}, rt = ["disabled", "aria-label"], it = {
|
|
744
747
|
__name: "Slider",
|
|
745
748
|
props: {
|
|
746
749
|
slides: {
|
|
@@ -761,45 +764,45 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
761
764
|
}
|
|
762
765
|
},
|
|
763
766
|
setup(e) {
|
|
764
|
-
let t = e, { t: r } =
|
|
767
|
+
let t = e, { t: r } = L(), i = V(), 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) => ({
|
|
765
768
|
...e,
|
|
766
769
|
image: i(e.image) ?? "",
|
|
767
770
|
label: e.label ? r(e.label) : ""
|
|
768
771
|
})));
|
|
769
|
-
return (t, i) => e.slides.length ? (
|
|
772
|
+
return (t, i) => e.slides.length ? (b(), d("div", {
|
|
770
773
|
key: 0,
|
|
771
774
|
class: "mwnf-standalone-slider",
|
|
772
|
-
style:
|
|
775
|
+
style: y({ "--mwnf-standalone-slider-count": e.visible })
|
|
773
776
|
}, [
|
|
774
|
-
|
|
777
|
+
f("button", {
|
|
775
778
|
type: "button",
|
|
776
779
|
class: "mwnf-standalone-slider__button",
|
|
777
780
|
disabled: a.value === 0,
|
|
778
|
-
"aria-label":
|
|
781
|
+
"aria-label": T(r)(e.previousLabel),
|
|
779
782
|
onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
|
|
780
|
-
}, "‹", 8,
|
|
781
|
-
|
|
783
|
+
}, "‹", 8, $e),
|
|
784
|
+
f("ul", et, [(b(!0), d(s, null, S(l.value, (e) => (b(), d("li", {
|
|
782
785
|
key: e.image,
|
|
783
786
|
class: "mwnf-standalone-slider__slide"
|
|
784
|
-
}, [
|
|
787
|
+
}, [h(n, {
|
|
785
788
|
to: e.to,
|
|
786
789
|
href: e.href
|
|
787
790
|
}, {
|
|
788
|
-
default:
|
|
791
|
+
default: O(() => [f("img", {
|
|
789
792
|
src: e.image,
|
|
790
793
|
alt: e.label
|
|
791
|
-
}, null, 8,
|
|
794
|
+
}, null, 8, tt), e.label ? (b(), d("span", nt, w(e.label), 1)) : u("", !0)]),
|
|
792
795
|
_: 2
|
|
793
796
|
}, 1032, ["to", "href"])]))), 128))]),
|
|
794
|
-
|
|
797
|
+
f("button", {
|
|
795
798
|
type: "button",
|
|
796
799
|
class: "mwnf-standalone-slider__button",
|
|
797
|
-
disabled: a.value >=
|
|
798
|
-
"aria-label":
|
|
799
|
-
onClick: i[1] ||= (e) => a.value = Math.min(
|
|
800
|
-
}, "›", 8,
|
|
801
|
-
], 4)) :
|
|
800
|
+
disabled: a.value >= o.value,
|
|
801
|
+
"aria-label": T(r)(e.nextLabel),
|
|
802
|
+
onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
|
|
803
|
+
}, "›", 8, rt)
|
|
804
|
+
], 4)) : u("", !0);
|
|
802
805
|
}
|
|
803
806
|
};
|
|
804
807
|
//#endregion
|
|
805
|
-
export { Q as RelatedContent,
|
|
808
|
+
export { Q as RelatedContent, B as StandaloneBanner, Pe as StandaloneHome, Ke as StandaloneItemSheet, ve as StandaloneShell, it as StandaloneSlider, Y as StandaloneSponsors, Qe as StandaloneSubNav, Ye as StandaloneTextPage, Z as StandaloneTileGrid, X as TodayHighlight, H as byLanguage, U as dayOfYear, G as legacyHomeItemKey, W as pickForDay };
|
package/dist/views.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./FeaturedRecord-DJfyvfqt.js";
|
|
2
2
|
import { c as t } from "./TimelineEventList-gsoc-SBx.js";
|
|
3
3
|
import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./TimelineResultsView-C2-TnM71.js";
|
|
4
|
-
import { t as l } from "./RecordView-
|
|
4
|
+
import { t as l } from "./RecordView-CdKx9tFy.js";
|
|
5
5
|
import { computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createVNode as m, mergeProps as h, normalizeClass as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b } from "vue";
|
|
6
6
|
import { I18nText as x, renderInline as S, renderPlain as C, useDataPackage as w, useFeaturedRecord as T, useI18n as E, useSiteConfig as D } from "@museumwnf/viewer-core";
|
|
7
7
|
//#region src/views/HomeView.vue
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|