@museumwnf/viewer-layout 2.15.2 → 2.16.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 +108 -28
- package/dist/BackLink-LfSIuXnL.js +45 -0
- package/dist/TimelineEventList-D5Hot788.js +1362 -0
- package/dist/{TimelineLookup-DRc43FkL.js → TimelineLookup-D-p1aQ_Z.js} +1 -1
- package/dist/TimelineResultsView-DJo_yYEK.js +1203 -0
- package/dist/{content-DUXrQ-l8.js → content-DncTPD5P.js} +46 -21
- package/dist/content.js +5 -5
- package/dist/dxa.js +418 -570
- package/dist/index.js +5 -5
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +287 -271
- package/package.json +3 -3
- package/src/tokens.reference.css +26 -0
- package/dist/BackLink-BJ16COHd.js +0 -106
- package/dist/TimelineEventList-BmfLBaTT.js +0 -967
- package/dist/TimelineResultsView-D78PPWk-.js +0 -1220
package/dist/views.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, t as i } from "./TimelineLookup-
|
|
2
|
-
import { a, g as o, i as s,
|
|
3
|
-
import { a as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { I18nText as
|
|
1
|
+
import { a as e, i as t, n, o as r, t as i } from "./TimelineLookup-D-p1aQ_Z.js";
|
|
2
|
+
import { a, g as o, i as s, l as ee, n as te, o as c, s as l, v as u } from "./TimelineEventList-D5Hot788.js";
|
|
3
|
+
import { a as d, i as f, n as p, o as m, r as ne, t as h } from "./TimelineResultsView-DJo_yYEK.js";
|
|
4
|
+
import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, guardReactiveProps as T, mergeProps as re, normalizeClass as E, normalizeProps as D, openBlock as O, ref as k, renderList as A, renderSlot as j, toDisplayString as M, unref as N, useSlots as ie, watch as ae, withCtx as P } from "vue";
|
|
5
|
+
import { I18nText as F, NotFoundView as oe, byId as se, entityRef as ce, glossaryEntries as le, glossaryTermsForText as ue, loadEntities as I, mdInline as L, mdStrip as R, mwnfLinks as z, partnerView as B, renderBlock as de, renderInline as V, renderPlain as fe, useCollectionTree as pe, useDataPackage as me, useFeaturedRecord as he, useGlossaryPopup as ge, useI18n as _e, useProjects as ve, useRecordLanguage as ye, useSiteConfig as H } from "@museumwnf/viewer-core";
|
|
6
6
|
//#region src/views/HomeView.vue
|
|
7
|
-
var
|
|
7
|
+
var U = { class: "mwnf-home" }, W = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "mwnf-home__welcome"
|
|
10
|
-
},
|
|
10
|
+
}, be = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "mwnf-home__title"
|
|
13
|
-
},
|
|
13
|
+
}, xe = {
|
|
14
14
|
__name: "HomeView",
|
|
15
15
|
props: {
|
|
16
16
|
title: {
|
|
@@ -31,7 +31,7 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
setup(t) {
|
|
34
|
-
let n = t, { t: i, locale: a } =
|
|
34
|
+
let n = t, { t: i, locale: a } = _e(), o = H(), s = _(() => ({
|
|
35
35
|
...o.home ?? {},
|
|
36
36
|
...ee(n)
|
|
37
37
|
}));
|
|
@@ -45,21 +45,21 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
45
45
|
]) e[n] != null && e[n] !== "" && (t[n] = e[n]);
|
|
46
46
|
return t;
|
|
47
47
|
}
|
|
48
|
-
let te =
|
|
48
|
+
let te = _(() => (s.value.cards ?? []).map((e) => ({
|
|
49
49
|
...e,
|
|
50
50
|
title: e.title ? i(e.title) : "",
|
|
51
51
|
description: e.description ? i(e.description) : "",
|
|
52
52
|
action: e.action ? i(e.action) : ""
|
|
53
|
-
}))), c =
|
|
53
|
+
}))), c = _(() => s.value.featured ?? null), l = c.value?.entity ?? "", u = me();
|
|
54
54
|
l && u.loadTranslations(l, "en");
|
|
55
|
-
let d = l ?
|
|
55
|
+
let d = l ? he(l, {
|
|
56
56
|
seed: c.value?.seed,
|
|
57
57
|
images: c.value?.images ?? "images"
|
|
58
|
-
}) :
|
|
58
|
+
}) : _(() => null), f = _(() => d.value ? u.tr(l, d.value.id, a.value, "en") : {});
|
|
59
59
|
function p(e, t, n) {
|
|
60
60
|
return typeof e == "function" ? e(t, n) : typeof e != "string" || !e ? "" : n[e] ?? t[e] ?? "";
|
|
61
61
|
}
|
|
62
|
-
let m =
|
|
62
|
+
let m = _(() => {
|
|
63
63
|
let e = d.value, t = c.value;
|
|
64
64
|
if (!e || !t) return null;
|
|
65
65
|
let n = f.value.name ?? e.internal_name ?? e.id, r = typeof t.meta == "function" ? t.meta(e, f.value) : (t.meta ?? []).map((t) => p(t, e, f.value)), a = t.images ?? "images";
|
|
@@ -68,7 +68,7 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
68
68
|
image: e[a]?.[0]?.url ?? "",
|
|
69
69
|
imageAlt: fe(String(n)),
|
|
70
70
|
eyebrow: String(p(t.eyebrow, e, f.value) ?? ""),
|
|
71
|
-
name:
|
|
71
|
+
name: V(String(n)),
|
|
72
72
|
meta: r.filter(Boolean).map(String),
|
|
73
73
|
action: t.action ? i(t.action) : "",
|
|
74
74
|
to: typeof t.to == "function" ? t.to(e) : {
|
|
@@ -77,54 +77,57 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
});
|
|
80
|
-
return (t, n) => (O(),
|
|
81
|
-
s.value.title || s.value.intro ? (O(),
|
|
80
|
+
return (t, n) => (O(), b("section", U, [
|
|
81
|
+
s.value.title || s.value.intro ? (O(), b("header", W, [s.value.title ? (O(), b("h1", be, M(N(i)(s.value.title)), 1)) : y("", !0), s.value.intro ? (O(), v(N(F), {
|
|
82
82
|
key: 1,
|
|
83
83
|
tag: "div",
|
|
84
84
|
class: "mwnf-home__intro",
|
|
85
85
|
keypath: s.value.intro
|
|
86
|
-
}, null, 8, ["keypath"])) :
|
|
86
|
+
}, null, 8, ["keypath"])) : y("", !0)])) : y("", !0),
|
|
87
87
|
j(t.$slots, "before"),
|
|
88
|
-
|
|
88
|
+
w(r, { cards: te.value }, null, 8, ["cards"]),
|
|
89
89
|
j(t.$slots, "default"),
|
|
90
|
-
m.value ? (O(),
|
|
90
|
+
m.value ? (O(), v(e, D(re({ key: 1 }, m.value)), null, 16)) : y("", !0),
|
|
91
91
|
j(t.$slots, "after")
|
|
92
92
|
]));
|
|
93
93
|
}
|
|
94
|
-
},
|
|
94
|
+
}, Se = {
|
|
95
95
|
key: 0,
|
|
96
96
|
class: "mwnf-sheet-source"
|
|
97
|
-
},
|
|
97
|
+
}, Ce = {
|
|
98
98
|
key: 0,
|
|
99
99
|
class: "mwnf-sheet-source__line"
|
|
100
|
-
},
|
|
100
|
+
}, we = {
|
|
101
101
|
key: 1,
|
|
102
102
|
class: "mwnf-sheet-source__uid"
|
|
103
|
-
},
|
|
103
|
+
}, Te = {
|
|
104
104
|
key: 2,
|
|
105
105
|
class: "mwnf-sheet-source__collection"
|
|
106
|
-
},
|
|
106
|
+
}, Ee = ["href"], De = {
|
|
107
107
|
key: 1,
|
|
108
108
|
class: "mwnf-sheet-notice"
|
|
109
|
-
},
|
|
109
|
+
}, Oe = {
|
|
110
|
+
key: "museum",
|
|
111
|
+
class: "mwnf-sheet-museum"
|
|
112
|
+
}, ke = ["innerHTML"], Ae = {
|
|
110
113
|
key: 0,
|
|
111
114
|
class: "mwnf-sheet-related"
|
|
112
|
-
},
|
|
115
|
+
}, je = {
|
|
113
116
|
key: 0,
|
|
114
117
|
class: "mwnf-sheet-related__heading mwnf-sheet-related__heading--caps"
|
|
115
|
-
},
|
|
118
|
+
}, Me = {
|
|
116
119
|
key: 1,
|
|
117
120
|
class: "mwnf-sheet-related__description"
|
|
118
|
-
},
|
|
121
|
+
}, Ne = {
|
|
119
122
|
key: 0,
|
|
120
123
|
class: "mwnf-sheet-related__references"
|
|
121
|
-
},
|
|
124
|
+
}, G = { key: 2 }, Pe = {
|
|
122
125
|
key: 3,
|
|
123
126
|
class: "mwnf-sheet-related__unresolved"
|
|
124
|
-
},
|
|
127
|
+
}, Fe = {
|
|
125
128
|
key: 2,
|
|
126
129
|
class: "mwnf-sheet-related__line"
|
|
127
|
-
},
|
|
130
|
+
}, Ie = ["href"], Le = ["href"], Re = { key: 7 }, ze = { class: "mwnf-sheet-related__heading" }, Be = { key: 0 }, K = { class: "mwnf-sheet-related__subheading" }, q = ["href"], J = { key: 1 }, Ve = { class: "mwnf-sheet-related__unresolved" }, He = { key: 1 }, Y = { class: "mwnf-sheet-related__subheading" }, Ue = ["href"], We = { key: 1 }, X = { class: "mwnf-sheet-related__unresolved" }, Z = { key: 8 }, Ge = { class: "mwnf-sheet-related__heading" }, Q = { class: "mwnf-sheet-related__line" }, Ke = ["href"], qe = { key: 9 }, Je = { class: "mwnf-sheet-related__heading" }, Ye = { class: "mwnf-sheet-related__line" }, Xe = ["href"], Ze = { key: 10 }, Qe = { class: "mwnf-sheet-related__heading" }, $e = {
|
|
128
131
|
__name: "RecordSheetView",
|
|
129
132
|
props: {
|
|
130
133
|
spec: {
|
|
@@ -145,12 +148,12 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
145
148
|
}
|
|
146
149
|
},
|
|
147
150
|
setup(e) {
|
|
148
|
-
let r = e, a =
|
|
151
|
+
let r = e, a = ie(), o = /* @__PURE__ */ new Set([
|
|
149
152
|
"before-sheet",
|
|
150
153
|
"museum",
|
|
151
154
|
"related"
|
|
152
|
-
]),
|
|
153
|
-
function
|
|
155
|
+
]), s = _(() => Object.keys(a).filter((e) => !o.has(e))), l = _(() => !r.dataGetter || r.dataGetter(r.id) != null), { t: u } = _e(), f = _(() => r.spec), p = ve(), m = (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), ne = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "gallery").sort(m), h = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "exhibition").sort(m), re = (e) => p.links(e.project_id)?.artisticIntroductionUrl ?? null, k = (e) => p.links(e.project_id)?.relatedDatabaseUrl ?? null;
|
|
156
|
+
function ae(e, t) {
|
|
154
157
|
if (!e) return null;
|
|
155
158
|
let n = f.value.sourceDatabase === !1 ? null : f.value.sourceDatabase ?? null, r = null;
|
|
156
159
|
if (n) {
|
|
@@ -158,10 +161,10 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
158
161
|
(i || a) && (r = {
|
|
159
162
|
chipClass: i,
|
|
160
163
|
name: a,
|
|
161
|
-
label:
|
|
164
|
+
label: u(n.label ?? "record.sheet.sourceDatabase")
|
|
162
165
|
});
|
|
163
166
|
}
|
|
164
|
-
let i = n && n.addToCollection !== !1 ?
|
|
167
|
+
let i = n && n.addToCollection !== !1 ? u(n.addToCollection?.label ?? "record.action.addToCollection") : null, a = n ? e.backward_compatibility ?? "" : "", o = f.value.notice === !1 ? null : f.value.notice ?? null, s = o && o.show(e, t) ? u(o.label) : null;
|
|
165
168
|
return {
|
|
166
169
|
source: r,
|
|
167
170
|
addToCollectionLabel: i,
|
|
@@ -169,43 +172,52 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
169
172
|
backwardCompatibility: a
|
|
170
173
|
};
|
|
171
174
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
let F = me(), ce = se("partners"), le = se("countries");
|
|
176
|
+
I(["partners", "countries"]), F.loadTranslations("countries", "en");
|
|
177
|
+
function ue(e, t) {
|
|
178
|
+
let n = F.tr("countries", e, t, "en");
|
|
179
|
+
return R(n.name ?? le.value?.get(e)?.internal_name ?? "");
|
|
180
|
+
}
|
|
181
|
+
function de(e) {
|
|
182
|
+
let t = e.text?.holder ? L(String(e.text.holder)) : "", n = f.value.museum === !1 ? null : f.value.museum ?? null, r = n ? ce.value?.get(e.record?.partner_id) : null;
|
|
183
|
+
return {
|
|
184
|
+
holder: t,
|
|
185
|
+
view: r ? B(r, F.tr("partners", r.id, e.language, "en"), {
|
|
186
|
+
countryLabel: (t) => ue(t, e.language),
|
|
187
|
+
route: (t) => n.route ? n.route(t.id, e) : null
|
|
188
|
+
}) : null
|
|
177
189
|
};
|
|
178
190
|
}
|
|
179
|
-
function
|
|
191
|
+
function V(e, t) {
|
|
180
192
|
if (!e) return null;
|
|
181
193
|
let n = f.value.related ?? {}, i = t.records ?? [], a = t.outside ?? [], o = r.dataGetter ? i.filter((e) => r.dataGetter(e.id) != null) : i, s = r.dataGetter ? i.filter((e) => r.dataGetter(e.id) == null).map((t) => (e.related_items ?? []).find((e) => e.id === t.id)).filter(Boolean) : [], ee = [...a, ...s].map((e) => ({
|
|
182
194
|
...e,
|
|
183
195
|
name: e.project_id ? p.label(e.project_id) : null,
|
|
184
196
|
chipClass: n.outsideChip ? n.outsideChip(e, t) : null
|
|
185
197
|
})), te = n.onDisplayIn && n.onDisplayIn !== !1 ? {
|
|
186
|
-
linkPendingLabel:
|
|
198
|
+
linkPendingLabel: u(n.onDisplayIn.linkPendingLabel),
|
|
187
199
|
galleries: ne(e),
|
|
188
|
-
exhibitions:
|
|
189
|
-
} : null, c = n.databaseLabel &&
|
|
190
|
-
url:
|
|
191
|
-
label:
|
|
200
|
+
exhibitions: h(e)
|
|
201
|
+
} : null, c = n.databaseLabel && k(e) ? {
|
|
202
|
+
url: k(e),
|
|
203
|
+
label: u(n.databaseLabel),
|
|
192
204
|
name: p.label(e.project_id)
|
|
193
205
|
} : null, l = n.overallDatabase && n.overallDatabase !== !1 ? {
|
|
194
|
-
label:
|
|
195
|
-
linkLabel:
|
|
206
|
+
label: u(n.overallDatabase.label),
|
|
207
|
+
linkLabel: u(n.overallDatabase.linkLabel)
|
|
196
208
|
} : null;
|
|
197
209
|
return {
|
|
198
|
-
title: n.title ?
|
|
199
|
-
description: n.description ?
|
|
200
|
-
heading:
|
|
210
|
+
title: n.title ? u(n.title) : "",
|
|
211
|
+
description: n.description ? u(n.description) : "",
|
|
212
|
+
heading: u(n.heading ?? "record.related.items"),
|
|
201
213
|
variant: n.variant ?? "grid",
|
|
202
|
-
actionLabel: n.actionLabel ?
|
|
214
|
+
actionLabel: n.actionLabel ? u(n.actionLabel) : "",
|
|
203
215
|
inPackage: o,
|
|
204
216
|
references: ee,
|
|
205
|
-
notInPackageLabel: n.notInPackageLabel ?
|
|
206
|
-
artisticIntroduction: n.artisticIntroductionLabel &&
|
|
207
|
-
url:
|
|
208
|
-
label:
|
|
217
|
+
notInPackageLabel: n.notInPackageLabel ? u(n.notInPackageLabel) : "",
|
|
218
|
+
artisticIntroduction: n.artisticIntroductionLabel && re(e) ? {
|
|
219
|
+
url: re(e),
|
|
220
|
+
label: u(n.artisticIntroductionLabel)
|
|
209
221
|
} : null,
|
|
210
222
|
timeline: n.timeline ? n.timeline(e, t) : null,
|
|
211
223
|
glossary: n.glossary !== !1,
|
|
@@ -215,58 +227,62 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
215
227
|
database: c,
|
|
216
228
|
overallDatabase: l,
|
|
217
229
|
download: n.download === !1 ? null : {
|
|
218
|
-
label:
|
|
219
|
-
pdfLabel:
|
|
230
|
+
label: u("record.action.download"),
|
|
231
|
+
pdfLabel: u("record.action.downloadPdf")
|
|
220
232
|
}
|
|
221
233
|
};
|
|
222
234
|
}
|
|
223
|
-
function
|
|
235
|
+
function fe() {
|
|
224
236
|
window.print();
|
|
225
237
|
}
|
|
226
|
-
return (r, a) =>
|
|
238
|
+
return (r, a) => l.value ? (O(), v(d, {
|
|
227
239
|
key: 0,
|
|
228
240
|
spec: f.value,
|
|
229
241
|
id: e.id,
|
|
230
242
|
entity: e.entity
|
|
231
|
-
},
|
|
232
|
-
"before-sheet":
|
|
233
|
-
t.source ? (O(),
|
|
243
|
+
}, S({
|
|
244
|
+
"before-sheet": P((e) => [j(r.$slots, "before-sheet", D(T(e)), () => [(O(!0), b(g, null, A([ae(e.record, e)], (t) => (O(), b(g, { key: "before-sheet" }, [t?.source || t?.backwardCompatibility || t?.addToCollectionLabel ? (O(), b("div", Se, [
|
|
245
|
+
t.source ? (O(), b("p", Ce, [t.source.chipClass ? (O(), b("span", {
|
|
234
246
|
key: 0,
|
|
235
247
|
class: E(["mwnf-chip", t.source.chipClass]),
|
|
236
248
|
"aria-hidden": "true"
|
|
237
|
-
}, null, 2)) :
|
|
238
|
-
t.backwardCompatibility ? (O(),
|
|
239
|
-
t.addToCollectionLabel ? (O(),
|
|
240
|
-
href: N(
|
|
249
|
+
}, null, 2)) : y("", !0), t.source.name ? (O(), b(g, { key: 1 }, [C(M(t.source.label) + ": " + M(t.source.name), 1)], 64)) : y("", !0)])) : y("", !0),
|
|
250
|
+
t.backwardCompatibility ? (O(), b("p", we, [x("code", null, M(t.backwardCompatibility), 1)])) : y("", !0),
|
|
251
|
+
t.addToCollectionLabel ? (O(), b("p", Te, [x("a", {
|
|
252
|
+
href: N(z).myCollection,
|
|
241
253
|
target: "_blank",
|
|
242
254
|
rel: "noopener"
|
|
243
|
-
}, "↗ " + M(t.addToCollectionLabel), 9,
|
|
244
|
-
])) :
|
|
245
|
-
museum:
|
|
255
|
+
}, "↗ " + M(t.addToCollectionLabel), 9, Ee)])) : y("", !0)
|
|
256
|
+
])) : y("", !0), t?.notice ? (O(), b("div", De, [C(M(t.notice) + " ", 1), x("strong", null, [x("em", null, M(e.languages.map((e) => e.label).join(", ")), 1)])])) : y("", !0)], 64))), 128))])]),
|
|
257
|
+
museum: P((e) => [j(r.$slots, "museum", D(T(e)), () => [(O(!0), b(g, null, A([de(e)], (t) => (O(), b("div", Oe, [t.holder ? (O(), b("p", {
|
|
246
258
|
key: 0,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
259
|
+
class: "mwnf-sheet-museum__holder",
|
|
260
|
+
innerHTML: t.holder
|
|
261
|
+
}, null, 8, ke)) : y("", !0), t.view ? (O(), v(te, {
|
|
262
|
+
key: 1,
|
|
263
|
+
variant: "summary",
|
|
264
|
+
partner: t.view,
|
|
265
|
+
label: "partner.info.about",
|
|
266
|
+
dir: e.dir
|
|
267
|
+
}, null, 8, ["partner", "dir"])) : y("", !0)]))), 128))])]),
|
|
268
|
+
related: P((e) => [j(r.$slots, "related", D(T(e)), () => [(O(!0), b(g, null, A([V(e.record, e)], (r) => (O(), b(g, { key: e.record?.id ?? "related" }, [r ? (O(), b("div", Ae, [
|
|
269
|
+
r.title ? (O(), b("p", je, M(r.title), 1)) : y("", !0),
|
|
270
|
+
r.description ? (O(), b("p", Me, M(r.description), 1)) : y("", !0),
|
|
271
|
+
w(c, {
|
|
256
272
|
heading: r.heading,
|
|
257
273
|
records: r.inPackage,
|
|
258
274
|
variant: r.variant,
|
|
259
275
|
"action-label": r.actionLabel
|
|
260
276
|
}, {
|
|
261
|
-
default:
|
|
262
|
-
e.chipClass ? (O(),
|
|
277
|
+
default: P(() => [r.references.length ? (O(), b("ul", Ne, [(O(!0), b(g, null, A(r.references, (e) => (O(), b("li", { key: e.id }, [
|
|
278
|
+
e.chipClass ? (O(), b("span", {
|
|
263
279
|
key: 0,
|
|
264
280
|
class: E(["mwnf-chip", e.chipClass]),
|
|
265
281
|
"aria-hidden": "true"
|
|
266
|
-
}, null, 2)) :
|
|
267
|
-
e.name ? (O(),
|
|
268
|
-
r.notInPackageLabel ? (O(),
|
|
269
|
-
]))), 128))])) :
|
|
282
|
+
}, null, 2)) : y("", !0),
|
|
283
|
+
e.name ? (O(), b(g, { key: 1 }, [C(M(e.name), 1)], 64)) : (O(), b("code", G, M(e.backward_compatibility), 1)),
|
|
284
|
+
r.notInPackageLabel ? (O(), b("span", Pe, M(r.notInPackageLabel), 1)) : y("", !0)
|
|
285
|
+
]))), 128))])) : y("", !0)]),
|
|
270
286
|
_: 2
|
|
271
287
|
}, 1032, [
|
|
272
288
|
"heading",
|
|
@@ -274,23 +290,23 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
274
290
|
"variant",
|
|
275
291
|
"action-label"
|
|
276
292
|
]),
|
|
277
|
-
r.artisticIntroduction ? (O(),
|
|
293
|
+
r.artisticIntroduction ? (O(), b("p", Fe, [x("a", {
|
|
278
294
|
href: r.artisticIntroduction.url,
|
|
279
295
|
target: "_blank",
|
|
280
296
|
rel: "noopener"
|
|
281
|
-
}, "↗ " + M(r.artisticIntroduction.label), 9,
|
|
282
|
-
r.timeline ? (O(),
|
|
297
|
+
}, "↗ " + M(r.artisticIntroduction.label), 9, Ie)])) : y("", !0),
|
|
298
|
+
r.timeline ? (O(), v(i, {
|
|
283
299
|
key: e.record.id,
|
|
284
300
|
info: r.timeline
|
|
285
|
-
}, null, 8, ["info"])) :
|
|
286
|
-
r.glossary ? (O(),
|
|
301
|
+
}, null, 8, ["info"])) : y("", !0),
|
|
302
|
+
r.glossary ? (O(), v(t, {
|
|
287
303
|
key: 4,
|
|
288
304
|
language: e.language,
|
|
289
305
|
dir: e.dir
|
|
290
|
-
}, null, 8, ["language", "dir"])) :
|
|
291
|
-
r.dynasties?.records?.length ? (O(),
|
|
306
|
+
}, null, 8, ["language", "dir"])) : y("", !0),
|
|
307
|
+
r.dynasties?.records?.length ? (O(), v(n, {
|
|
292
308
|
key: 5,
|
|
293
|
-
heading: N(
|
|
309
|
+
heading: N(u)("record.dynasty.list"),
|
|
294
310
|
dynasties: r.dynasties.records,
|
|
295
311
|
tr: r.dynasties.tr,
|
|
296
312
|
dir: e.dir
|
|
@@ -299,104 +315,104 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
299
315
|
"dynasties",
|
|
300
316
|
"tr",
|
|
301
317
|
"dir"
|
|
302
|
-
])) :
|
|
303
|
-
r.media.length ? (O(),
|
|
318
|
+
])) : y("", !0),
|
|
319
|
+
r.media.length ? (O(), v(ee, {
|
|
304
320
|
key: 6,
|
|
305
|
-
heading: N(
|
|
321
|
+
heading: N(u)("record.related.audioVideo")
|
|
306
322
|
}, {
|
|
307
|
-
default:
|
|
323
|
+
default: P(() => [(O(!0), b(g, null, A(r.media, (e) => (O(), b("p", {
|
|
308
324
|
key: e.url,
|
|
309
325
|
class: "mwnf-sheet-related__line"
|
|
310
|
-
}, [
|
|
326
|
+
}, [x("a", {
|
|
311
327
|
href: e.url,
|
|
312
328
|
target: "_blank",
|
|
313
329
|
rel: "noopener"
|
|
314
|
-
}, "↗ " + M(e.title ?? e.url), 9,
|
|
330
|
+
}, "↗ " + M(e.title ?? e.url), 9, Le)]))), 128))]),
|
|
315
331
|
_: 2
|
|
316
|
-
}, 1032, ["heading"])) :
|
|
317
|
-
r.onDisplayIn && (r.onDisplayIn.galleries.length || r.onDisplayIn.exhibitions.length) ? (O(),
|
|
318
|
-
|
|
319
|
-
r.onDisplayIn.exhibitions.length ? (O(),
|
|
332
|
+
}, 1032, ["heading"])) : y("", !0),
|
|
333
|
+
r.onDisplayIn && (r.onDisplayIn.galleries.length || r.onDisplayIn.exhibitions.length) ? (O(), b("div", Re, [
|
|
334
|
+
x("p", ze, M(N(u)("record.related.onDisplayIn")), 1),
|
|
335
|
+
r.onDisplayIn.exhibitions.length ? (O(), b("div", Be, [x("p", K, M(N(u)("record.related.exhibitions")), 1), (O(!0), b(g, null, A(r.onDisplayIn.exhibitions, (e) => (O(), b("p", {
|
|
320
336
|
key: e.id,
|
|
321
337
|
class: "mwnf-sheet-related__line"
|
|
322
|
-
}, [e.legacy_host ? (O(),
|
|
338
|
+
}, [e.legacy_host ? (O(), b("a", {
|
|
323
339
|
key: 0,
|
|
324
340
|
href: e.legacy_host,
|
|
325
341
|
target: "_blank",
|
|
326
342
|
rel: "noopener"
|
|
327
|
-
}, "↗ " + M(e.name), 9,
|
|
328
|
-
r.onDisplayIn.galleries.length ? (O(),
|
|
343
|
+
}, "↗ " + M(e.name), 9, q)) : (O(), b("span", J, [C(M(e.name) + " ", 1), x("span", Ve, M(r.onDisplayIn.linkPendingLabel), 1)]))]))), 128))])) : y("", !0),
|
|
344
|
+
r.onDisplayIn.galleries.length ? (O(), b("div", He, [x("p", Y, M(N(u)("record.related.galleries")), 1), (O(!0), b(g, null, A(r.onDisplayIn.galleries, (e) => (O(), b("p", {
|
|
329
345
|
key: e.id,
|
|
330
346
|
class: "mwnf-sheet-related__line"
|
|
331
|
-
}, [e.legacy_host ? (O(),
|
|
347
|
+
}, [e.legacy_host ? (O(), b("a", {
|
|
332
348
|
key: 0,
|
|
333
349
|
href: e.legacy_host,
|
|
334
350
|
target: "_blank",
|
|
335
351
|
rel: "noopener"
|
|
336
|
-
}, "↗ " + M(e.name), 9,
|
|
337
|
-
])) :
|
|
338
|
-
r.database ? (O(),
|
|
352
|
+
}, "↗ " + M(e.name), 9, Ue)) : (O(), b("span", We, [C(M(e.name) + " ", 1), x("span", X, M(r.onDisplayIn.linkPendingLabel), 1)]))]))), 128))])) : y("", !0)
|
|
353
|
+
])) : y("", !0),
|
|
354
|
+
r.database ? (O(), b("div", Z, [x("p", Ge, M(r.database.label), 1), x("p", Q, [x("a", {
|
|
339
355
|
href: r.database.url,
|
|
340
356
|
target: "_blank",
|
|
341
357
|
rel: "noopener"
|
|
342
|
-
}, "↗ " + M(r.database.name), 9,
|
|
343
|
-
r.overallDatabase ? (O(),
|
|
344
|
-
href: N(
|
|
358
|
+
}, "↗ " + M(r.database.name), 9, Ke)])])) : y("", !0),
|
|
359
|
+
r.overallDatabase ? (O(), b("div", qe, [x("p", Je, M(r.overallDatabase.label), 1), x("p", Ye, [x("a", {
|
|
360
|
+
href: N(z).overallDatabase,
|
|
345
361
|
target: "_blank",
|
|
346
362
|
rel: "noopener"
|
|
347
|
-
}, "↗ " + M(r.overallDatabase.linkLabel), 9,
|
|
348
|
-
r.download ? (O(),
|
|
363
|
+
}, "↗ " + M(r.overallDatabase.linkLabel), 9, Xe)])])) : y("", !0),
|
|
364
|
+
r.download ? (O(), b("div", Ze, [x("p", Qe, M(r.download.label), 1), x("p", {
|
|
349
365
|
class: "mwnf-sheet-related__line mwnf-sheet-related__line--action",
|
|
350
|
-
onClick:
|
|
351
|
-
}, "➤ " + M(r.download.pdfLabel), 1)])) :
|
|
352
|
-
])) :
|
|
366
|
+
onClick: fe
|
|
367
|
+
}, "➤ " + M(r.download.pdfLabel), 1)])) : y("", !0)
|
|
368
|
+
])) : y("", !0)], 64))), 128))])]),
|
|
353
369
|
_: 2
|
|
354
|
-
}, [A(
|
|
370
|
+
}, [A(s.value, (e) => ({
|
|
355
371
|
name: e,
|
|
356
|
-
fn:
|
|
372
|
+
fn: P((t) => [j(r.$slots, e, D(T(t)))])
|
|
357
373
|
}))]), 1032, [
|
|
358
374
|
"spec",
|
|
359
375
|
"id",
|
|
360
376
|
"entity"
|
|
361
|
-
])) : (O(),
|
|
377
|
+
])) : (O(), v(N(oe), { key: 1 }));
|
|
362
378
|
}
|
|
363
|
-
},
|
|
379
|
+
}, et = ["dir"], tt = {
|
|
364
380
|
key: 0,
|
|
365
381
|
class: "mwnf-essay__breadcrumb"
|
|
366
|
-
},
|
|
382
|
+
}, nt = { class: "mwnf-essay__breadcrumb-label" }, rt = {
|
|
367
383
|
key: 1,
|
|
368
384
|
class: "mwnf-essay__breadcrumb-link"
|
|
369
|
-
},
|
|
385
|
+
}, it = ["aria-label"], at = { class: "mwnf-essay__title" }, ot = {
|
|
370
386
|
key: 0,
|
|
371
387
|
class: "mwnf-essay__number"
|
|
372
|
-
},
|
|
388
|
+
}, st = ["innerHTML"], ct = { class: "mwnf-essay__body" }, lt = { class: "mwnf-essay__main" }, ut = {
|
|
373
389
|
key: 0,
|
|
374
390
|
class: "mwnf-essay__status"
|
|
375
|
-
},
|
|
391
|
+
}, dt = ["innerHTML"], ft = ["innerHTML"], pt = {
|
|
376
392
|
key: 4,
|
|
377
393
|
class: "mwnf-essay__nav"
|
|
378
|
-
},
|
|
394
|
+
}, mt = {
|
|
379
395
|
key: 1,
|
|
380
396
|
class: "mwnf-essay__nav-spacer"
|
|
381
|
-
},
|
|
397
|
+
}, ht = {
|
|
382
398
|
key: 0,
|
|
383
399
|
class: "mwnf-essay__side"
|
|
384
|
-
},
|
|
400
|
+
}, gt = {
|
|
385
401
|
key: 0,
|
|
386
402
|
class: "mwnf-essay__panel"
|
|
387
|
-
},
|
|
403
|
+
}, _t = {
|
|
388
404
|
key: 0,
|
|
389
405
|
class: "mwnf-essay__variants"
|
|
390
|
-
},
|
|
406
|
+
}, vt = ["aria-pressed", "onClick"], yt = ["src", "alt"], bt = ["innerHTML"], xt = {
|
|
391
407
|
key: 0,
|
|
392
408
|
class: "mwnf-essay__panel-label"
|
|
393
|
-
},
|
|
409
|
+
}, St = ["innerHTML"], Ct = ["innerHTML"], wt = {
|
|
394
410
|
key: 0,
|
|
395
411
|
class: "mwnf-essay__thumbs"
|
|
396
|
-
},
|
|
412
|
+
}, Tt = ["onClick"], Et = ["src"], Dt = {
|
|
397
413
|
key: 2,
|
|
398
414
|
class: "mwnf-essay__status"
|
|
399
|
-
},
|
|
415
|
+
}, Ot = {
|
|
400
416
|
__name: "EssayView",
|
|
401
417
|
props: {
|
|
402
418
|
spec: {
|
|
@@ -409,14 +425,14 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
409
425
|
}
|
|
410
426
|
},
|
|
411
427
|
setup(e) {
|
|
412
|
-
let t = e, { t: n } =
|
|
413
|
-
function
|
|
428
|
+
let t = e, { t: n } = _e(), r = me(), i = ie();
|
|
429
|
+
function ee(e) {
|
|
414
430
|
return !!e && typeof e.walk == "function" && typeof e.children == "function";
|
|
415
431
|
}
|
|
416
|
-
function
|
|
432
|
+
function te(e) {
|
|
417
433
|
return typeof e == "string" ? e : "themes";
|
|
418
434
|
}
|
|
419
|
-
let
|
|
435
|
+
let c = t.spec.entity ?? "items", d = t.spec.tree, f = d?.entity ?? (d?.themes ? te(d.themes) : t.spec.entity ?? "collections"), p = ee(d) ? d : d?.themes ? pe({
|
|
420
436
|
source: "themes",
|
|
421
437
|
entity: f,
|
|
422
438
|
childType: d.childType
|
|
@@ -426,34 +442,34 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
426
442
|
childType: d?.childType,
|
|
427
443
|
entity: f,
|
|
428
444
|
order: d?.order
|
|
429
|
-
}), m =
|
|
430
|
-
if (
|
|
445
|
+
}), m = ce(f), ne = _(() => m.value !== null), h = _(() => t.spec), S = _(() => p.byId.value.get(t.id) ?? null), re = _(() => p.parents(t.id).at(-1) ?? null), F = _(() => {
|
|
446
|
+
if (re.value) return p.children(re.value.id);
|
|
431
447
|
let e = p.root.value;
|
|
432
448
|
return e ? p.children(e.id) : p.walk().filter((e) => p.parents(e.id).length === 0);
|
|
433
|
-
}),
|
|
434
|
-
|
|
435
|
-
if (H.value = !1, !
|
|
449
|
+
}), I = _(() => F.value.findIndex((e) => e.id === t.id)), L = _(() => h.value.navigation || !1), R = _(() => L.value === "siblings" ? I.value > 0 ? F.value[I.value - 1] : null : L.value === "tree" ? p.previous(t.id) : null), z = _(() => L.value === "siblings" ? I.value !== -1 && I.value < F.value.length - 1 ? F.value[I.value + 1] : null : L.value === "tree" ? p.next(t.id) : null), { language: B, dir: he } = ye(S, { entity: f }), ve = _(() => S.value ? r.tr(f, S.value.id, B.value, "en") : {}), H = k(!1);
|
|
450
|
+
ae(() => [S.value?.id, B.value], async () => {
|
|
451
|
+
if (H.value = !1, !S.value) {
|
|
436
452
|
H.value = !0;
|
|
437
453
|
return;
|
|
438
454
|
}
|
|
439
|
-
let e =
|
|
440
|
-
await Promise.all([f,
|
|
455
|
+
let e = B.value === "en" ? ["en"] : [B.value, "en"];
|
|
456
|
+
await Promise.all([f, c].flatMap((t) => e.map((e) => r.loadTranslations(t, e)))), H.value = !0;
|
|
441
457
|
}, { immediate: !0 });
|
|
442
458
|
function U(e) {
|
|
443
459
|
if (!e) return "";
|
|
444
|
-
let t =
|
|
460
|
+
let t = h.value.placeholder, n = (e) => !!e && !!t && t.test(e), i = r.tr(f, e.id, B.value, "en");
|
|
445
461
|
if (i.title && !n(i.title)) return i.title;
|
|
446
462
|
let a = r.tr(f, e.id, "en").title;
|
|
447
463
|
return a && !n(a) ? a : e.internal_name ?? e.id;
|
|
448
464
|
}
|
|
449
|
-
let W =
|
|
450
|
-
node:
|
|
451
|
-
text:
|
|
452
|
-
language:
|
|
465
|
+
let W = _(() => ({
|
|
466
|
+
node: S.value,
|
|
467
|
+
text: ve.value,
|
|
468
|
+
language: B.value,
|
|
453
469
|
tree: p,
|
|
454
470
|
select: Ve,
|
|
455
471
|
t: n,
|
|
456
|
-
tr: (e, t) => r.tr(e, t,
|
|
472
|
+
tr: (e, t) => r.tr(e, t, B.value, "en")
|
|
457
473
|
}));
|
|
458
474
|
function be(e, t) {
|
|
459
475
|
return t.split(".").reduce((e, t) => e?.[t], e);
|
|
@@ -461,17 +477,17 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
461
477
|
function xe(e, t) {
|
|
462
478
|
return e === !1 || e == null ? "" : typeof e == "function" ? e(t) ?? "" : be(t.text, e) ?? "";
|
|
463
479
|
}
|
|
464
|
-
let Se =
|
|
465
|
-
if (!
|
|
480
|
+
let Se = _(() => xe(h.value.quote ?? "quote", W.value)), Ce = _(() => xe(h.value.body ?? "description", W.value)), we = _(() => {
|
|
481
|
+
if (!h.value.glossary || !S.value) return [];
|
|
466
482
|
let e = [Se.value, Ce.value].filter(Boolean);
|
|
467
|
-
return
|
|
468
|
-
}), Te =
|
|
483
|
+
return ue(e.join("\n\n"), B.value);
|
|
484
|
+
}), Te = _(() => le(we.value)), { active: Ee, onClick: De, close: Oe } = ge(we), ke = _(() => Ee.value ? de(Ee.value.definition, { breaks: !0 }) : ""), Ae = _(() => S.value ? h.value.heading ? h.value.heading(W.value) : V(String(U(S.value)), { glossary: Te.value }) : ""), je = _(() => Se.value ? V(String(Se.value), { glossary: Te.value }) : ""), Me = _(() => Ce.value ? de(String(Ce.value), {
|
|
469
485
|
breaks: !0,
|
|
470
486
|
glossary: Te.value
|
|
471
|
-
}) : ""), Ne =
|
|
487
|
+
}) : ""), Ne = _(() => S.value ? h.value.about?.(S.value) ?? !1 : !1), G = _(() => !!Ne.value);
|
|
472
488
|
function Pe(e) {
|
|
473
489
|
let t = Ne.value;
|
|
474
|
-
return t && typeof t == "object" ? !!t[e] : !!
|
|
490
|
+
return t && typeof t == "object" ? !!t[e] : !!h.value.aboutKeeps?.includes(e);
|
|
475
491
|
}
|
|
476
492
|
let Fe = [
|
|
477
493
|
[1e3, "M"],
|
|
@@ -493,35 +509,35 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
493
509
|
for (let [e, r] of Fe) for (; t >= e;) n += r, t -= e;
|
|
494
510
|
return n;
|
|
495
511
|
}
|
|
496
|
-
let Le =
|
|
497
|
-
let e =
|
|
498
|
-
if (!e || !
|
|
499
|
-
let n = (
|
|
512
|
+
let Le = _(() => {
|
|
513
|
+
let e = h.value.numbering;
|
|
514
|
+
if (!e || !S.value) return "";
|
|
515
|
+
let n = (F.value.length ? F.value : [S.value]).findIndex((e) => e.id === t.id), r = n >= 0 ? n + 1 : 1;
|
|
500
516
|
return e === "roman" ? Ie(r) : String(r);
|
|
501
517
|
});
|
|
502
518
|
function Re(e) {
|
|
503
519
|
return e ? Array.isArray(e.items) ? e.items.map((e) => e && typeof e == "object" ? e.id : e).filter((e) => e != null) : Array.isArray(e.item_ids) ? e.item_ids.filter((e) => e != null) : Array.isArray(e.pictures) ? e.pictures.map((e) => e?.picture_item_id).filter((e) => e != null) : [] : [];
|
|
504
520
|
}
|
|
505
|
-
let ze =
|
|
506
|
-
let e =
|
|
507
|
-
return
|
|
508
|
-
}), K =
|
|
509
|
-
|
|
521
|
+
let ze = se(c), Be = _(() => {
|
|
522
|
+
let e = h.value.items?.of ?? Re;
|
|
523
|
+
return S.value ? e(S.value, W.value) : [];
|
|
524
|
+
}), K = _(() => Be.value.map((e) => ze.value.get(e)).filter(Boolean)), q = k(null);
|
|
525
|
+
ae(K, (e) => {
|
|
510
526
|
e.some((e) => e.id === q.value) || (q.value = e[0]?.id ?? null);
|
|
511
527
|
}, { immediate: !0 });
|
|
512
|
-
let J =
|
|
528
|
+
let J = _(() => K.value.find((e) => e.id === q.value) ?? K.value[0] ?? null);
|
|
513
529
|
function Ve(e) {
|
|
514
530
|
q.value = e;
|
|
515
531
|
}
|
|
516
532
|
function He(e) {
|
|
517
|
-
let t =
|
|
533
|
+
let t = h.value.items?.route;
|
|
518
534
|
return !t || !e ? null : typeof t == "function" ? t(e, W.value) : {
|
|
519
535
|
name: t,
|
|
520
536
|
params: { id: e.id }
|
|
521
537
|
};
|
|
522
538
|
}
|
|
523
539
|
function Y(e) {
|
|
524
|
-
let t =
|
|
540
|
+
let t = h.value.route;
|
|
525
541
|
return !t || !e ? null : typeof t == "function" ? t(e, W.value) : {
|
|
526
542
|
name: t,
|
|
527
543
|
params: { id: e.id }
|
|
@@ -529,22 +545,22 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
529
545
|
}
|
|
530
546
|
function Ue(e) {
|
|
531
547
|
if (!e) return null;
|
|
532
|
-
let t = r.tr(
|
|
548
|
+
let t = r.tr(c, e.id, B.value, "en").name ?? e.internal_name ?? e.id;
|
|
533
549
|
return {
|
|
534
|
-
name:
|
|
550
|
+
name: V(String(t)),
|
|
535
551
|
image: e.images?.[0]?.url ?? "",
|
|
536
552
|
imageAlt: fe(String(t))
|
|
537
553
|
};
|
|
538
554
|
}
|
|
539
|
-
let We =
|
|
555
|
+
let We = _(() => {
|
|
540
556
|
let e = J.value;
|
|
541
557
|
if (!e) return null;
|
|
542
|
-
let t = Ue(e), n =
|
|
558
|
+
let t = Ue(e), n = h.value.items?.caption?.(e, S.value, W.value);
|
|
543
559
|
return {
|
|
544
560
|
...t,
|
|
545
561
|
...n
|
|
546
562
|
};
|
|
547
|
-
}), X =
|
|
563
|
+
}), X = _(() => !!h.value.panel), Z = _(() => {
|
|
548
564
|
let e = J.value;
|
|
549
565
|
if (!e) return [];
|
|
550
566
|
let t = We.value, n = e.images?.[0]?.url ? [{
|
|
@@ -556,39 +572,39 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
556
572
|
justification: "",
|
|
557
573
|
fields: null
|
|
558
574
|
}
|
|
559
|
-
}] : [], r =
|
|
575
|
+
}] : [], r = h.value.panel?.variants?.(e, W.value) ?? [];
|
|
560
576
|
return [...n, ...r.map((e, t) => ({
|
|
561
577
|
id: e.id ?? `variant-${t}`,
|
|
562
578
|
...e
|
|
563
579
|
}))];
|
|
564
580
|
}), Ge = k(null);
|
|
565
|
-
|
|
581
|
+
ae(Z, (e) => {
|
|
566
582
|
e.some((e) => e.id === Ge.value) || (Ge.value = e[0]?.id ?? null);
|
|
567
583
|
}, { immediate: !0 });
|
|
568
|
-
let Q =
|
|
584
|
+
let Q = _(() => Z.value.find((e) => e.id === Ge.value) ?? Z.value[0] ?? null);
|
|
569
585
|
function Ke(e) {
|
|
570
586
|
Ge.value = e;
|
|
571
587
|
}
|
|
572
|
-
let qe =
|
|
588
|
+
let qe = _(() => {
|
|
573
589
|
let e = Q.value;
|
|
574
590
|
return e?.image ? [{
|
|
575
591
|
url: e.image,
|
|
576
592
|
alt: e.alt ?? ""
|
|
577
593
|
}] : [];
|
|
578
|
-
}), Je =
|
|
594
|
+
}), Je = _(() => {
|
|
579
595
|
let e = J.value;
|
|
580
|
-
return !e || !
|
|
581
|
-
}),
|
|
596
|
+
return !e || !h.value.panel?.fields ? [] : h.value.panel.fields(e, S.value, W.value) ?? [];
|
|
597
|
+
}), Ye = _(() => {
|
|
582
598
|
let e = Q.value?.caption?.fields;
|
|
583
599
|
return e == null ? Je.value : e.map((e) => ({
|
|
584
600
|
label: e.label ? n(e.label) : "",
|
|
585
601
|
value: e.value
|
|
586
602
|
}));
|
|
587
|
-
}),
|
|
603
|
+
}), Xe = _(() => {
|
|
588
604
|
let e = Q.value?.caption?.justification;
|
|
589
|
-
return e ?
|
|
590
|
-
}),
|
|
591
|
-
let t = Ue(e), n =
|
|
605
|
+
return e ? V(String(e)) : "";
|
|
606
|
+
}), Ze = _(() => K.value.map((e) => {
|
|
607
|
+
let t = Ue(e), n = h.value.items?.meta?.(e, W.value) ?? [], r = h.value.items?.badge?.(e, W.value) ?? "";
|
|
592
608
|
return {
|
|
593
609
|
id: e.id,
|
|
594
610
|
image: t.image,
|
|
@@ -598,135 +614,135 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
598
614
|
badge: r,
|
|
599
615
|
to: He(e)
|
|
600
616
|
};
|
|
601
|
-
})),
|
|
602
|
-
let e =
|
|
603
|
-
return e ? e === "children" ?
|
|
604
|
-
}), Ot =
|
|
617
|
+
})), Qe = _(() => h.value.breadcrumb && S.value ? p.parents(t.id) : []), $e = _(() => {
|
|
618
|
+
let e = h.value.tabs;
|
|
619
|
+
return e ? e === "children" ? S.value ? p.children(S.value.id) : [] : F.value : [];
|
|
620
|
+
}), Ot = _(() => h.value.previous ?? "exhibition.theme.previous"), kt = _(() => h.value.next ?? "exhibition.theme.next"), At = _(() => h.value.backTo ?? "record.action.backToResults"), jt = _(() => h.value.inThisTheme ?? "exhibition.theme.inThisTheme"), Mt = _(() => h.value.seeAll ?? "exhibition.theme.seeAllInTheme"), $ = _(() => ({
|
|
605
621
|
...W.value,
|
|
606
622
|
items: K.value,
|
|
607
623
|
selected: J.value,
|
|
608
624
|
selectedVariant: Q.value,
|
|
609
625
|
selectVariant: Ke,
|
|
610
|
-
breadcrumb:
|
|
611
|
-
previous:
|
|
612
|
-
next:
|
|
613
|
-
})), Nt =
|
|
614
|
-
return (t, r) => ne.value && !
|
|
626
|
+
breadcrumb: Qe.value,
|
|
627
|
+
previous: R.value,
|
|
628
|
+
next: z.value
|
|
629
|
+
})), Nt = _(() => G.value && !Pe("panel") ? !1 : X.value || K.value.length > 0 || !!i.aside), Pt = _(() => (!G.value || Pe("navigation")) && !!L.value && !!(R.value || z.value));
|
|
630
|
+
return (t, r) => ne.value && !S.value ? (O(), v(N(oe), { key: 0 })) : S.value ? (O(), b("article", {
|
|
615
631
|
key: 1,
|
|
616
632
|
class: E(["mwnf-essay", { "mwnf-essay--about": G.value }]),
|
|
617
|
-
dir: N(
|
|
633
|
+
dir: N(he) || void 0,
|
|
618
634
|
onClick: r[0] ||= (...e) => N(De) && N(De)(...e)
|
|
619
635
|
}, [
|
|
620
|
-
j(t.$slots, "header", D(
|
|
621
|
-
|
|
636
|
+
j(t.$slots, "header", D(T($.value)), () => [
|
|
637
|
+
Qe.value.length ? (O(), b("p", tt, [x("span", nt, M(N(n)(At.value)), 1), (O(!0), b(g, null, A(Qe.value, (e) => (O(), b(g, { key: e.id }, [Y(e) ? (O(), v(u, {
|
|
622
638
|
key: 0,
|
|
623
639
|
to: Y(e),
|
|
624
640
|
class: "mwnf-essay__breadcrumb-link"
|
|
625
641
|
}, {
|
|
626
|
-
default:
|
|
642
|
+
default: P(() => [C(M(U(e)), 1)]),
|
|
627
643
|
_: 2
|
|
628
|
-
}, 1032, ["to"])) : (O(),
|
|
629
|
-
|
|
644
|
+
}, 1032, ["to"])) : (O(), b("span", rt, M(U(e)), 1))], 64))), 128))])) : y("", !0),
|
|
645
|
+
$e.value.length > 1 ? (O(), b("div", {
|
|
630
646
|
key: 1,
|
|
631
647
|
class: "mwnf-essay__tabs",
|
|
632
648
|
role: "tablist",
|
|
633
649
|
"aria-label": N(n)(jt.value)
|
|
634
|
-
}, [(O(!0),
|
|
650
|
+
}, [(O(!0), b(g, null, A($e.value, (t) => (O(), v(u, {
|
|
635
651
|
key: t.id,
|
|
636
652
|
to: Y(t),
|
|
637
653
|
class: E(["mwnf-essay__tab", { "mwnf-essay__tab--active": t.id === e.id }])
|
|
638
654
|
}, {
|
|
639
|
-
default:
|
|
655
|
+
default: P(() => [C(M(U(t)), 1)]),
|
|
640
656
|
_: 2
|
|
641
|
-
}, 1032, ["to", "class"]))), 128))], 8,
|
|
642
|
-
|
|
657
|
+
}, 1032, ["to", "class"]))), 128))], 8, it)) : y("", !0),
|
|
658
|
+
x("h1", at, [Le.value ? (O(), b("span", ot, M(Le.value), 1)) : y("", !0), x("span", { innerHTML: Ae.value }, null, 8, st)])
|
|
643
659
|
]),
|
|
644
|
-
|
|
645
|
-
H.value ?
|
|
646
|
-
je.value ? (O(),
|
|
660
|
+
x("div", ct, [x("div", lt, [
|
|
661
|
+
H.value ? y("", !0) : (O(), b("p", ut, M(N(n)("core.status.loading")), 1)),
|
|
662
|
+
je.value ? (O(), b("p", {
|
|
647
663
|
key: 1,
|
|
648
664
|
class: "mwnf-essay__quote",
|
|
649
665
|
innerHTML: je.value
|
|
650
|
-
}, null, 8,
|
|
651
|
-
j(t.$slots, "before-body", D(
|
|
652
|
-
Me.value ? (O(),
|
|
666
|
+
}, null, 8, dt)) : y("", !0),
|
|
667
|
+
j(t.$slots, "before-body", D(T($.value))),
|
|
668
|
+
Me.value ? (O(), b("div", {
|
|
653
669
|
key: 2,
|
|
654
670
|
class: "mwnf-essay__prose mwnf-sheet__block",
|
|
655
671
|
innerHTML: Me.value
|
|
656
|
-
}, null, 8,
|
|
657
|
-
j(t.$slots, "after-body", D(
|
|
658
|
-
G.value ?
|
|
659
|
-
Pt.value ? (O(),
|
|
672
|
+
}, null, 8, ft)) : y("", !0),
|
|
673
|
+
j(t.$slots, "after-body", D(T($.value))),
|
|
674
|
+
G.value ? y("", !0) : j(t.$slots, "justifications", D(T($.value)), void 0, void 0, 3),
|
|
675
|
+
Pt.value ? (O(), b("div", pt, [j(t.$slots, "navigation", D(T($.value)), () => [R.value ? (O(), v(u, {
|
|
660
676
|
key: 0,
|
|
661
|
-
to: Y(
|
|
677
|
+
to: Y(R.value),
|
|
662
678
|
class: "mwnf-essay__nav-link mwnf-essay__nav-link--previous"
|
|
663
679
|
}, {
|
|
664
|
-
default:
|
|
680
|
+
default: P(() => [C("← " + M(N(n)(Ot.value)), 1)]),
|
|
665
681
|
_: 1
|
|
666
|
-
}, 8, ["to"])) : (O(),
|
|
682
|
+
}, 8, ["to"])) : (O(), b("span", mt)), z.value ? (O(), v(u, {
|
|
667
683
|
key: 2,
|
|
668
|
-
to: Y(
|
|
684
|
+
to: Y(z.value),
|
|
669
685
|
class: "mwnf-essay__nav-link mwnf-essay__nav-link--next"
|
|
670
686
|
}, {
|
|
671
|
-
default:
|
|
687
|
+
default: P(() => [C(M(N(n)(kt.value)) + " →", 1)]),
|
|
672
688
|
_: 1
|
|
673
|
-
}, 8, ["to"])) :
|
|
674
|
-
]), Nt.value ? (O(),
|
|
675
|
-
j(t.$slots, "panel", D(
|
|
676
|
-
|
|
677
|
-
Z.value.length > 1 ? (O(),
|
|
689
|
+
}, 8, ["to"])) : y("", !0)])])) : y("", !0)
|
|
690
|
+
]), Nt.value ? (O(), b("div", ht, [
|
|
691
|
+
j(t.$slots, "panel", D(T($.value)), () => [X.value && We.value ? (O(), b("div", gt, [
|
|
692
|
+
w(a, { images: qe.value }, null, 8, ["images"]),
|
|
693
|
+
Z.value.length > 1 ? (O(), b("ul", _t, [(O(!0), b(g, null, A(Z.value, (e) => (O(), b("li", { key: e.id }, [x("button", {
|
|
678
694
|
type: "button",
|
|
679
695
|
class: E(["mwnf-essay__variant", { "mwnf-essay__variant--active": e.id === Q.value?.id }]),
|
|
680
696
|
"aria-pressed": e.id === Q.value?.id ? "true" : "false",
|
|
681
697
|
onClick: (t) => Ke(e.id)
|
|
682
|
-
}, [e.image ? (O(),
|
|
698
|
+
}, [e.image ? (O(), b("img", {
|
|
683
699
|
key: 0,
|
|
684
700
|
src: e.image,
|
|
685
701
|
alt: e.alt ?? "",
|
|
686
702
|
loading: "lazy"
|
|
687
|
-
}, null, 8,
|
|
688
|
-
|
|
703
|
+
}, null, 8, yt)) : y("", !0)], 10, vt)]))), 128))])) : y("", !0),
|
|
704
|
+
x("h3", {
|
|
689
705
|
class: "mwnf-essay__panel-name",
|
|
690
706
|
innerHTML: Q.value?.caption?.title || We.value.name
|
|
691
|
-
}, null, 8,
|
|
692
|
-
(O(!0),
|
|
707
|
+
}, null, 8, bt),
|
|
708
|
+
(O(!0), b(g, null, A(Ye.value, (e, t) => (O(), b("p", {
|
|
693
709
|
key: t,
|
|
694
710
|
class: "mwnf-essay__panel-field"
|
|
695
|
-
}, [e.label ? (O(),
|
|
696
|
-
|
|
711
|
+
}, [e.label ? (O(), b("span", xt, M(e.label), 1)) : y("", !0), x("span", { innerHTML: e.value }, null, 8, St)]))), 128)),
|
|
712
|
+
Xe.value ? (O(), b("p", {
|
|
697
713
|
key: 1,
|
|
698
714
|
class: "mwnf-essay__panel-justification mwnf-sheet__block",
|
|
699
|
-
innerHTML:
|
|
700
|
-
}, null, 8,
|
|
701
|
-
He(J.value) ? (O(),
|
|
715
|
+
innerHTML: Xe.value
|
|
716
|
+
}, null, 8, Ct)) : y("", !0),
|
|
717
|
+
He(J.value) ? (O(), v(u, {
|
|
702
718
|
key: 2,
|
|
703
719
|
to: He(J.value),
|
|
704
720
|
class: "mwnf-essay__panel-link"
|
|
705
721
|
}, {
|
|
706
|
-
default:
|
|
722
|
+
default: P(() => [C(M(N(n)(Mt.value)) + " →", 1)]),
|
|
707
723
|
_: 1
|
|
708
|
-
}, 8, ["to"])) :
|
|
709
|
-
])) :
|
|
710
|
-
j(t.$slots, "thumbnails", D(
|
|
724
|
+
}, 8, ["to"])) : y("", !0)
|
|
725
|
+
])) : y("", !0)]),
|
|
726
|
+
j(t.$slots, "thumbnails", D(T($.value)), () => [X.value && K.value.length > 1 ? (O(), b("ul", wt, [(O(!0), b(g, null, A(K.value, (e) => (O(), b("li", { key: e.id }, [x("button", {
|
|
711
727
|
type: "button",
|
|
712
728
|
class: E(["mwnf-essay__thumb", { "mwnf-essay__thumb--active": e.id === J.value?.id }]),
|
|
713
729
|
onClick: (t) => Ve(e.id)
|
|
714
|
-
}, [e.images?.[0]?.url ? (O(),
|
|
730
|
+
}, [e.images?.[0]?.url ? (O(), b("img", {
|
|
715
731
|
key: 0,
|
|
716
732
|
src: e.images[0].url,
|
|
717
733
|
alt: "",
|
|
718
734
|
loading: "lazy"
|
|
719
|
-
}, null, 8,
|
|
735
|
+
}, null, 8, Et)) : y("", !0)], 10, Tt)]))), 128))])) : !X.value && Ze.value.length ? (O(), v(o, {
|
|
720
736
|
key: 1,
|
|
721
|
-
records:
|
|
722
|
-
}, null, 8, ["records"])) :
|
|
723
|
-
j(t.$slots, "aside", D(
|
|
724
|
-
])) :
|
|
725
|
-
j(t.$slots, "after", D(
|
|
726
|
-
|
|
737
|
+
records: Ze.value
|
|
738
|
+
}, null, 8, ["records"])) : y("", !0)]),
|
|
739
|
+
j(t.$slots, "aside", D(T($.value)))
|
|
740
|
+
])) : y("", !0)]),
|
|
741
|
+
j(t.$slots, "after", D(T($.value)), () => [w(l)]),
|
|
742
|
+
w(s, {
|
|
727
743
|
term: N(Ee),
|
|
728
744
|
html: ke.value,
|
|
729
|
-
dir: N(
|
|
745
|
+
dir: N(he),
|
|
730
746
|
onClose: N(Oe)
|
|
731
747
|
}, null, 8, [
|
|
732
748
|
"term",
|
|
@@ -734,65 +750,65 @@ var V = { class: "mwnf-home" }, ve = {
|
|
|
734
750
|
"dir",
|
|
735
751
|
"onClose"
|
|
736
752
|
])
|
|
737
|
-
], 10,
|
|
753
|
+
], 10, et)) : (O(), b("p", Dt, M(N(n)("core.status.loading")), 1));
|
|
738
754
|
}
|
|
739
|
-
},
|
|
755
|
+
}, kt = { class: "mwnf-link-list" }, At = {
|
|
740
756
|
key: 0,
|
|
741
757
|
class: "mwnf-link-list__back"
|
|
742
|
-
},
|
|
758
|
+
}, jt = {
|
|
743
759
|
key: 1,
|
|
744
760
|
class: "mwnf-link-list__title"
|
|
745
|
-
},
|
|
761
|
+
}, Mt = {
|
|
746
762
|
key: 2,
|
|
747
763
|
class: "mwnf-link-list__groups"
|
|
748
|
-
},
|
|
764
|
+
}, $ = {
|
|
749
765
|
key: 0,
|
|
750
766
|
class: "mwnf-link-list__heading"
|
|
751
|
-
},
|
|
767
|
+
}, Nt = {
|
|
752
768
|
key: 1,
|
|
753
769
|
class: "mwnf-link-list__links"
|
|
754
|
-
},
|
|
770
|
+
}, Pt = ["innerHTML"], Ft = ["innerHTML"], It = {
|
|
755
771
|
key: 3,
|
|
756
772
|
class: "mwnf-link-list__empty"
|
|
757
|
-
},
|
|
773
|
+
}, Lt = {
|
|
758
774
|
__name: "LinkListView",
|
|
759
775
|
props: { spec: {
|
|
760
776
|
type: Object,
|
|
761
777
|
required: !0
|
|
762
778
|
} },
|
|
763
779
|
setup(e) {
|
|
764
|
-
let t = e, { t: n } =
|
|
765
|
-
return (e,
|
|
766
|
-
t.spec.back && a.value ? (O(),
|
|
780
|
+
let t = e, { t: n } = _e(), r = _(() => ((typeof t.spec.groups == "function" ? t.spec.groups({}) : t.spec.groups ?? []) ?? []).filter((e) => e.links?.length > 0)), i = _(() => t.spec.title ? n(t.spec.title) : ""), a = _(() => t.spec.back?.label ? n(t.spec.back.label) : ""), o = _(() => n(t.spec.empty ?? "catalogue.results.noResults"));
|
|
781
|
+
return (e, s) => (O(), b("div", kt, [
|
|
782
|
+
t.spec.back && a.value ? (O(), b("div", At, [w(u, {
|
|
767
783
|
to: t.spec.back.to,
|
|
768
784
|
href: t.spec.back.href
|
|
769
785
|
}, {
|
|
770
|
-
default:
|
|
786
|
+
default: P(() => [C(" ← " + M(a.value), 1)]),
|
|
771
787
|
_: 1
|
|
772
|
-
}, 8, ["to", "href"])])) :
|
|
773
|
-
i.value ? (O(),
|
|
788
|
+
}, 8, ["to", "href"])])) : y("", !0),
|
|
789
|
+
i.value ? (O(), b("h1", jt, M(i.value), 1)) : y("", !0),
|
|
774
790
|
j(e.$slots, "before"),
|
|
775
|
-
r.value.length ? (O(),
|
|
791
|
+
r.value.length ? (O(), b("div", Mt, [(O(!0), b(g, null, A(r.value, (t, r) => (O(), b("section", {
|
|
776
792
|
key: r,
|
|
777
793
|
class: "mwnf-link-list__group"
|
|
778
|
-
}, [j(e.$slots, "group", { group: t }, () => [t.heading ? (O(),
|
|
794
|
+
}, [j(e.$slots, "group", { group: t }, () => [t.heading ? (O(), b("h2", $, M(N(n)(t.heading)), 1)) : y("", !0), t.links?.length ? (O(), b("ul", Nt, [(O(!0), b(g, null, A(t.links, (e, t) => (O(), b("li", {
|
|
779
795
|
key: t,
|
|
780
796
|
class: "mwnf-link-list__item"
|
|
781
|
-
}, [
|
|
797
|
+
}, [w(u, {
|
|
782
798
|
class: "mwnf-link-list__link",
|
|
783
799
|
to: e.to,
|
|
784
800
|
href: e.href
|
|
785
801
|
}, {
|
|
786
|
-
default:
|
|
802
|
+
default: P(() => [x("span", { innerHTML: N(L)(e.label) }, null, 8, Pt)]),
|
|
787
803
|
_: 2
|
|
788
|
-
}, 1032, ["to", "href"]), e.note ? (O(),
|
|
804
|
+
}, 1032, ["to", "href"]), e.note ? (O(), b("div", {
|
|
789
805
|
key: 0,
|
|
790
806
|
class: "mwnf-link-list__note",
|
|
791
|
-
innerHTML: N(
|
|
792
|
-
}, null, 8,
|
|
807
|
+
innerHTML: N(L)(e.note)
|
|
808
|
+
}, null, 8, Ft)) : y("", !0)]))), 128))])) : y("", !0)])]))), 128))])) : (O(), b("div", It, M(o.value), 1)),
|
|
793
809
|
j(e.$slots, "after")
|
|
794
810
|
]));
|
|
795
811
|
}
|
|
796
812
|
};
|
|
797
813
|
//#endregion
|
|
798
|
-
export {
|
|
814
|
+
export { m as CatalogueResultsView, Ot as EssayView, xe as HomeView, Lt as LinkListView, f as PartnerListView, $e as RecordSheetView, d as RecordView, p as SearchFormView, ne as TextPageView, h as TimelineResultsView };
|