@museumwnf/viewer-layout 3.3.0 → 3.5.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 +191 -12
- package/dist/{FeaturedRecord-BJ8LaWGP.js → FeaturedRecord-DJfyvfqt.js} +1 -1
- package/dist/GlossaryPopover-DcptyNWI.js +654 -0
- package/dist/ItemDetailView-COWC8GDg.js +299 -0
- package/dist/{OnDisplayIn-Dv8i7uvH.js → OnDisplayIn-BfJoPonn.js} +38 -38
- package/dist/RecordView-C9rP8TyQ.js +263 -0
- package/dist/SiteShell-4vV2jIzf.js +192 -0
- package/dist/{Theme-Db88mckV.js → Theme-CZ-OVXao.js} +26 -26
- package/dist/TimelineEventList-gsoc-SBx.js +841 -0
- package/dist/TimelineResultsView-C2-TnM71.js +1386 -0
- package/dist/chrome-DPuPeWzV.js +1141 -0
- package/dist/components.js +1 -1
- package/dist/{content-p0tqKkcD.js → content-CtwBcSjU.js} +2 -2
- package/dist/content.js +6 -5
- package/dist/data-CJlLA-Mf.js +38 -0
- package/dist/data-DTbAYdr2.js +40 -0
- package/dist/dxa.js +638 -519
- package/dist/index.js +7 -6
- package/dist/standalone.js +762 -0
- package/dist/{themeSpecs-C_uGarTs.js → themeSpecs-B885l456.js} +3 -2
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +5 -4
- package/package.json +4 -3
- package/src/dxa/testing.js +37 -14
- package/src/styles/dxa-exhibition.css +25 -1
- package/src/styles/dxa-gallery.css +249 -2
- package/src/tokens.reference.css +78 -0
- package/dist/ItemDetailView-CfUtRLOV.js +0 -284
- package/dist/PageShell-CbJ9lQoQ.js +0 -961
- package/dist/SiteShell-C3OgZO8p.js +0 -154
- package/dist/TimelineEventList-COjkXEzS.js +0 -1487
- package/dist/TimelineResultsView-CmHomvV_.js +0 -1636
- package/dist/data-BfyYB8ff.js +0 -33
- package/dist/data-G8uXeEfE.js +0 -35
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { t as e } from "./chrome-DPuPeWzV.js";
|
|
2
|
+
import { r as t } from "./GlossaryPopover-DcptyNWI.js";
|
|
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-BfJoPonn.js";
|
|
5
|
+
import { t as c } from "./RecordView-C9rP8TyQ.js";
|
|
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
|
+
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
|
+
//#region src/dxa/ItemDetailView.vue
|
|
9
|
+
var k = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "mwnf-sheet-source"
|
|
12
|
+
}, A = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "mwnf-sheet-source__line"
|
|
15
|
+
}, j = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "mwnf-sheet-source__collection"
|
|
18
|
+
}, M = ["href"], N = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "mwnf-sheet-notice"
|
|
21
|
+
}, P = {
|
|
22
|
+
key: "museum",
|
|
23
|
+
class: "mwnf-sheet-museum"
|
|
24
|
+
}, F = ["innerHTML"], I = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "mwnf-sheet-related"
|
|
27
|
+
}, L = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "mwnf-sheet-related__heading mwnf-sheet-related__heading--caps"
|
|
30
|
+
}, R = {
|
|
31
|
+
key: 1,
|
|
32
|
+
class: "mwnf-sheet-related__description"
|
|
33
|
+
}, z = {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "mwnf-sheet-related__references"
|
|
36
|
+
}, B = {
|
|
37
|
+
key: 2,
|
|
38
|
+
class: "mwnf-sheet-related__unresolved"
|
|
39
|
+
}, V = {
|
|
40
|
+
key: 3,
|
|
41
|
+
class: "mwnf-sheet-related__line"
|
|
42
|
+
}, H = ["href"], U = { key: 7 }, de = { class: "mwnf-sheet-related__heading" }, fe = { key: 8 }, pe = { class: "mwnf-sheet-related__heading" }, me = { class: "mwnf-sheet-related__line" }, he = ["href"], ge = { key: 9 }, _e = { class: "mwnf-sheet-related__heading" }, ve = { class: "mwnf-sheet-related__line" }, ye = ["href"], be = { key: 10 }, xe = { class: "mwnf-sheet-related__heading" }, Se = "sheet.field.", W = {
|
|
43
|
+
__name: "ItemDetailView",
|
|
44
|
+
props: {
|
|
45
|
+
spec: {
|
|
46
|
+
type: Object,
|
|
47
|
+
required: !0
|
|
48
|
+
},
|
|
49
|
+
id: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: !0
|
|
52
|
+
},
|
|
53
|
+
entity: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: ""
|
|
56
|
+
},
|
|
57
|
+
dataGetter: {
|
|
58
|
+
type: Function,
|
|
59
|
+
default: null
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
setup(W) {
|
|
63
|
+
let G = W, Ce = ne(), we = /* @__PURE__ */ new Set([
|
|
64
|
+
"before-sheet",
|
|
65
|
+
"museum",
|
|
66
|
+
"related",
|
|
67
|
+
"aside"
|
|
68
|
+
]), Te = u(() => Object.keys(Ce).filter((e) => !we.has(e))), Ee = u(() => !G.dataGetter || G.dataGetter(G.id) != null), { t: K } = ce();
|
|
69
|
+
function De(e) {
|
|
70
|
+
if (typeof e != "string" || !e.startsWith(Se)) return e;
|
|
71
|
+
let t = `sheet.dxa.${e.slice(12)}`;
|
|
72
|
+
return K(t) === t ? e : t;
|
|
73
|
+
}
|
|
74
|
+
let q = u(() => Array.isArray(G.spec.fields) ? {
|
|
75
|
+
...G.spec,
|
|
76
|
+
fields: G.spec.fields.map((e) => ({
|
|
77
|
+
...e,
|
|
78
|
+
label: De(e.label)
|
|
79
|
+
}))
|
|
80
|
+
} : G.spec), J = le(), Y = (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), Oe = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "gallery").sort(Y), X = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "exhibition").sort(Y), Z = (e) => J.links(e.project_id)?.artisticIntroductionUrl ?? null, Q = (e) => J.links(e.project_id)?.relatedDatabaseUrl ?? null;
|
|
81
|
+
function ke(e, t) {
|
|
82
|
+
if (!e) return null;
|
|
83
|
+
let n = q.value.sourceDatabase === !1 ? null : q.value.sourceDatabase ?? null, r = null;
|
|
84
|
+
if (n) {
|
|
85
|
+
let i = n.chipClass ? n.chipClass(e, t) : null, a = J.label(e.project_id);
|
|
86
|
+
(i || a) && (r = {
|
|
87
|
+
chipClass: i,
|
|
88
|
+
name: a,
|
|
89
|
+
label: K(n.label ?? "record.sheet.sourceDatabase")
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
let i = n && n.addToCollection !== !1 ? K(n.addToCollection?.label ?? "record.action.addToCollection") : null, a = q.value.notice === !1 ? null : q.value.notice ?? null, o = a && a.show(e, t) ? K(a.label) : null;
|
|
93
|
+
return {
|
|
94
|
+
source: r,
|
|
95
|
+
addToCollectionLabel: i,
|
|
96
|
+
notice: o
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
let $ = se(), Ae = E("partners"), je = E("countries");
|
|
100
|
+
ie(["partners", "countries"]), $.loadTranslations("countries", "en");
|
|
101
|
+
function Me(e, t) {
|
|
102
|
+
let n = $.tr("countries", e, t, "en");
|
|
103
|
+
return ae(n.name ?? je.value?.get(e)?.internal_name ?? "");
|
|
104
|
+
}
|
|
105
|
+
function Ne(e) {
|
|
106
|
+
let t = e.text?.holder ? D(String(e.text.holder)) : "", n = q.value.museum === !1 ? null : q.value.museum ?? null, r = n ? Ae.value?.get(e.record?.partner_id) : null;
|
|
107
|
+
return {
|
|
108
|
+
holder: t,
|
|
109
|
+
view: r ? oe(r, $.tr("partners", r.id, e.language, "en"), {
|
|
110
|
+
countryLabel: (t) => Me(t, e.language),
|
|
111
|
+
route: (t) => n.route ? n.route(t.id, e) : null
|
|
112
|
+
}) : null
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function Pe(e, t) {
|
|
116
|
+
if (!e) return null;
|
|
117
|
+
let n = q.value.related ?? {}, r = t.records ?? [], i = t.outside ?? [], a = G.dataGetter ? r.filter((e) => G.dataGetter(e.id) != null) : r, o = G.dataGetter ? r.filter((e) => G.dataGetter(e.id) == null).map((t) => (e.related_items ?? []).find((e) => e.id === t.id)).filter(Boolean) : [], s = [...i, ...o].map((e) => ({
|
|
118
|
+
...e,
|
|
119
|
+
name: e.project_id ? J.label(e.project_id) : null,
|
|
120
|
+
chipClass: n.outsideChip ? n.outsideChip(e, t) : null
|
|
121
|
+
})), c = (e) => ({
|
|
122
|
+
id: e.id,
|
|
123
|
+
label: D(e.name ?? ""),
|
|
124
|
+
href: e.legacy_host || "",
|
|
125
|
+
external: !!e.legacy_host
|
|
126
|
+
}), l = n.onDisplayIn && n.onDisplayIn !== !1 ? {
|
|
127
|
+
pendingLabel: n.onDisplayIn.linkPendingLabel ?? "",
|
|
128
|
+
groups: [{
|
|
129
|
+
heading: "record.related.exhibitions",
|
|
130
|
+
links: X(e).map(c)
|
|
131
|
+
}, {
|
|
132
|
+
heading: "record.related.galleries",
|
|
133
|
+
links: Oe(e).map(c)
|
|
134
|
+
}].filter((e) => e.links.length)
|
|
135
|
+
} : null, u = n.databaseLabel && Q(e) ? {
|
|
136
|
+
url: Q(e),
|
|
137
|
+
label: K(n.databaseLabel),
|
|
138
|
+
name: J.label(e.project_id)
|
|
139
|
+
} : null, d = n.overallDatabase && n.overallDatabase !== !1 ? {
|
|
140
|
+
label: K(n.overallDatabase.label),
|
|
141
|
+
linkLabel: K(n.overallDatabase.linkLabel)
|
|
142
|
+
} : null;
|
|
143
|
+
return {
|
|
144
|
+
title: n.title ? K(n.title) : "",
|
|
145
|
+
description: n.description ? K(n.description) : "",
|
|
146
|
+
heading: K(n.heading ?? "record.related.items"),
|
|
147
|
+
variant: n.variant ?? "grid",
|
|
148
|
+
actionLabel: n.actionLabel ? K(n.actionLabel) : "",
|
|
149
|
+
inPackage: a,
|
|
150
|
+
references: s,
|
|
151
|
+
notInPackageLabel: n.notInPackageLabel ? K(n.notInPackageLabel) : "",
|
|
152
|
+
artisticIntroduction: n.artisticIntroductionLabel && Z(e) ? {
|
|
153
|
+
url: Z(e),
|
|
154
|
+
label: K(n.artisticIntroductionLabel)
|
|
155
|
+
} : null,
|
|
156
|
+
timeline: n.timeline ? n.timeline(e, t) : null,
|
|
157
|
+
glossary: n.glossary !== !1,
|
|
158
|
+
dynasties: n.dynasties ? n.dynasties(e, t.language, t) : null,
|
|
159
|
+
media: n.media === !1 ? [] : e.media ?? [],
|
|
160
|
+
onDisplayIn: l,
|
|
161
|
+
database: u,
|
|
162
|
+
overallDatabase: d,
|
|
163
|
+
download: n.download === !1 ? null : {
|
|
164
|
+
label: K("record.action.download"),
|
|
165
|
+
pdfLabel: K("record.action.downloadPdf")
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
let Fe = ue(), Ie = u(() => {
|
|
170
|
+
let t = e(Fe.chrome, "world.png");
|
|
171
|
+
return t ? { "--mwnf-dxa-glossary-image": `url("${t}")` } : null;
|
|
172
|
+
});
|
|
173
|
+
function Le() {
|
|
174
|
+
window.print();
|
|
175
|
+
}
|
|
176
|
+
return (e, u) => Ee.value ? (b(), d(c, {
|
|
177
|
+
key: 0,
|
|
178
|
+
spec: q.value,
|
|
179
|
+
id: W.id,
|
|
180
|
+
entity: W.entity,
|
|
181
|
+
style: te(Ie.value)
|
|
182
|
+
}, ee({
|
|
183
|
+
"before-sheet": T((t) => [S(e.$slots, "before-sheet", y(_(t)), () => [(b(!0), p(l, null, x([ke(t.record, t)], (e) => (b(), p(l, { key: "before-sheet" }, [e?.source || e?.addToCollectionLabel ? (b(), p("div", k, [e.source ? (b(), p("p", A, [e.source.chipClass ? (b(), p("span", {
|
|
184
|
+
key: 0,
|
|
185
|
+
class: v(["mwnf-chip", e.source.chipClass]),
|
|
186
|
+
"aria-hidden": "true"
|
|
187
|
+
}, null, 2)) : f("", !0), e.source.name ? (b(), p(l, { key: 1 }, [h(C(e.source.label) + ": " + C(e.source.name), 1)], 64)) : f("", !0)])) : f("", !0), e.addToCollectionLabel ? (b(), p("p", j, [m("a", {
|
|
188
|
+
href: w(O).myCollection,
|
|
189
|
+
target: "_blank",
|
|
190
|
+
rel: "noopener"
|
|
191
|
+
}, "↗ " + C(e.addToCollectionLabel), 9, M)])) : f("", !0)])) : f("", !0), e?.notice ? (b(), p("div", N, [h(C(e.notice) + " ", 1), m("strong", null, [m("em", null, C(t.languages.map((e) => e.label).join(", ")), 1)])])) : f("", !0)], 64))), 128))])]),
|
|
192
|
+
museum: T((t) => [S(e.$slots, "museum", y(_(t)), () => [(b(!0), p(l, null, x([Ne(t)], (e) => (b(), p("div", P, [e.holder ? (b(), p("p", {
|
|
193
|
+
key: 0,
|
|
194
|
+
class: "mwnf-sheet-museum__holder",
|
|
195
|
+
innerHTML: e.holder
|
|
196
|
+
}, null, 8, F)) : f("", !0), e.view ? (b(), d(n, {
|
|
197
|
+
key: 1,
|
|
198
|
+
variant: "summary",
|
|
199
|
+
partner: e.view,
|
|
200
|
+
label: "partner.info.about",
|
|
201
|
+
dir: t.dir
|
|
202
|
+
}, null, 8, ["partner", "dir"])) : f("", !0)]))), 128))])]),
|
|
203
|
+
related: T(() => []),
|
|
204
|
+
aside: T((n) => [S(e.$slots, "related", y(_(n)), () => [(b(!0), p(l, null, x([Pe(n.record, n)], (e) => (b(), p(l, { key: n.record?.id ?? "related" }, [e ? (b(), p("div", I, [
|
|
205
|
+
e.title ? (b(), p("p", L, C(e.title), 1)) : f("", !0),
|
|
206
|
+
e.description ? (b(), p("p", R, C(e.description), 1)) : f("", !0),
|
|
207
|
+
e.inPackage.length || e.references.length ? (b(), d(t, {
|
|
208
|
+
key: 2,
|
|
209
|
+
heading: e.heading,
|
|
210
|
+
records: e.inPackage,
|
|
211
|
+
variant: e.variant,
|
|
212
|
+
"action-label": e.actionLabel
|
|
213
|
+
}, {
|
|
214
|
+
default: T(() => [e.references.length ? (b(), p("ul", z, [(b(!0), p(l, null, x(e.references, (t) => (b(), p("li", { key: t.id }, [
|
|
215
|
+
t.chipClass ? (b(), p("span", {
|
|
216
|
+
key: 0,
|
|
217
|
+
class: v(["mwnf-chip", t.chipClass]),
|
|
218
|
+
"aria-hidden": "true"
|
|
219
|
+
}, null, 2)) : f("", !0),
|
|
220
|
+
t.name ? (b(), p(l, { key: 1 }, [h(C(t.name), 1)], 64)) : f("", !0),
|
|
221
|
+
e.notInPackageLabel ? (b(), p("span", B, C(e.notInPackageLabel), 1)) : f("", !0)
|
|
222
|
+
]))), 128))])) : f("", !0)]),
|
|
223
|
+
_: 2
|
|
224
|
+
}, 1032, [
|
|
225
|
+
"heading",
|
|
226
|
+
"records",
|
|
227
|
+
"variant",
|
|
228
|
+
"action-label"
|
|
229
|
+
])) : f("", !0),
|
|
230
|
+
e.artisticIntroduction ? (b(), p("p", V, [m("a", {
|
|
231
|
+
href: e.artisticIntroduction.url,
|
|
232
|
+
target: "_blank",
|
|
233
|
+
rel: "noopener"
|
|
234
|
+
}, "↗ " + C(e.artisticIntroduction.label), 9, H)])) : f("", !0),
|
|
235
|
+
e.timeline ? (b(), d(o, {
|
|
236
|
+
key: n.record.id,
|
|
237
|
+
info: e.timeline
|
|
238
|
+
}, null, 8, ["info"])) : f("", !0),
|
|
239
|
+
e.glossary ? (b(), d(a, {
|
|
240
|
+
key: 5,
|
|
241
|
+
language: n.language,
|
|
242
|
+
dir: n.dir
|
|
243
|
+
}, null, 8, ["language", "dir"])) : f("", !0),
|
|
244
|
+
e.dynasties?.records?.length ? (b(), d(r, {
|
|
245
|
+
key: 6,
|
|
246
|
+
heading: w(K)("record.dynasty.list"),
|
|
247
|
+
dynasties: e.dynasties.records,
|
|
248
|
+
tr: e.dynasties.tr,
|
|
249
|
+
dir: n.dir
|
|
250
|
+
}, null, 8, [
|
|
251
|
+
"heading",
|
|
252
|
+
"dynasties",
|
|
253
|
+
"tr",
|
|
254
|
+
"dir"
|
|
255
|
+
])) : f("", !0),
|
|
256
|
+
g(i, {
|
|
257
|
+
media: e.media,
|
|
258
|
+
descriptions: !1,
|
|
259
|
+
dir: n.dir
|
|
260
|
+
}, null, 8, ["media", "dir"]),
|
|
261
|
+
e.onDisplayIn?.groups.length ? (b(), p("div", U, [m("p", de, C(w(K)("record.related.onDisplayIn")), 1), g(s, {
|
|
262
|
+
heading: "",
|
|
263
|
+
groups: e.onDisplayIn.groups,
|
|
264
|
+
"pending-label": e.onDisplayIn.pendingLabel,
|
|
265
|
+
dir: n.dir
|
|
266
|
+
}, null, 8, [
|
|
267
|
+
"groups",
|
|
268
|
+
"pending-label",
|
|
269
|
+
"dir"
|
|
270
|
+
])])) : f("", !0),
|
|
271
|
+
e.database ? (b(), p("div", fe, [m("p", pe, C(e.database.label), 1), m("p", me, [m("a", {
|
|
272
|
+
href: e.database.url,
|
|
273
|
+
target: "_blank",
|
|
274
|
+
rel: "noopener"
|
|
275
|
+
}, "↗ " + C(e.database.name), 9, he)])])) : f("", !0),
|
|
276
|
+
e.overallDatabase ? (b(), p("div", ge, [m("p", _e, C(e.overallDatabase.label), 1), m("p", ve, [m("a", {
|
|
277
|
+
href: w(O).overallDatabase,
|
|
278
|
+
target: "_blank",
|
|
279
|
+
rel: "noopener"
|
|
280
|
+
}, "↗ " + C(e.overallDatabase.linkLabel), 9, ye)])])) : f("", !0),
|
|
281
|
+
e.download ? (b(), p("div", be, [m("p", xe, C(e.download.label), 1), m("p", {
|
|
282
|
+
class: "mwnf-sheet-related__line mwnf-sheet-related__line--action",
|
|
283
|
+
onClick: Le
|
|
284
|
+
}, "➤ " + C(e.download.pdfLabel), 1)])) : f("", !0)
|
|
285
|
+
])) : f("", !0)], 64))), 128))])]),
|
|
286
|
+
_: 2
|
|
287
|
+
}, [x(Te.value, (t) => ({
|
|
288
|
+
name: t,
|
|
289
|
+
fn: T((n) => [S(e.$slots, t, y(_(n)))])
|
|
290
|
+
}))]), 1032, [
|
|
291
|
+
"spec",
|
|
292
|
+
"id",
|
|
293
|
+
"entity",
|
|
294
|
+
"style"
|
|
295
|
+
])) : (b(), d(w(re), { key: 1 }));
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
//#endregion
|
|
299
|
+
export { W as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as e, o as t } from "./GlossaryPopover-DcptyNWI.js";
|
|
2
2
|
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, mergeProps as u, normalizeClass as d, openBlock as f, ref as p, renderList as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, vModelSelect as y, vModelText as b, watch as x, withCtx as S, withDirectives as C, withKeys as w } from "vue";
|
|
3
3
|
import { useI18n as T } from "@museumwnf/viewer-core/i18n";
|
|
4
4
|
import { md as E, mdInline as D, searchGlossary as ee } from "@museumwnf/viewer-core";
|
|
@@ -35,8 +35,8 @@ var k = ["href"], A = {
|
|
|
35
35
|
default: "←"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
setup(
|
|
39
|
-
let n = O(), a =
|
|
38
|
+
setup(t) {
|
|
39
|
+
let n = O(), a = t, l = r(() => !!(a.to || a.href));
|
|
40
40
|
function u() {
|
|
41
41
|
return window.history.state?.back != null || !l.value && window.history.length > 1;
|
|
42
42
|
}
|
|
@@ -47,28 +47,28 @@ var k = ["href"], A = {
|
|
|
47
47
|
function m(e) {
|
|
48
48
|
e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (u() ? (e.preventDefault(), n.back()) : a.to && n ? (e.preventDefault(), n.push(a.to)) : l.value || e.preventDefault());
|
|
49
49
|
}
|
|
50
|
-
return (n, r) =>
|
|
50
|
+
return (n, r) => t.variant === "bar" ? (f(), o("a", {
|
|
51
51
|
key: 0,
|
|
52
52
|
href: p.value,
|
|
53
53
|
class: "mwnf-back-bar mwnf-back-bar--link",
|
|
54
54
|
onClick: m
|
|
55
55
|
}, [
|
|
56
|
-
s("span", A, _(
|
|
56
|
+
s("span", A, _(t.arrow), 1),
|
|
57
57
|
r[0] ||= c(),
|
|
58
|
-
h(n.$slots, "default", {}, () => [c(_(n.$t(
|
|
59
|
-
], 8, k)) : (f(), o("div", te, [l.value && !u() ? (f(), i(
|
|
58
|
+
h(n.$slots, "default", {}, () => [c(_(n.$t(t.label)), 1)])
|
|
59
|
+
], 8, k)) : (f(), o("div", te, [l.value && !u() ? (f(), i(e, {
|
|
60
60
|
key: 0,
|
|
61
|
-
to:
|
|
62
|
-
href:
|
|
61
|
+
to: t.to,
|
|
62
|
+
href: t.href,
|
|
63
63
|
class: "mwnf-back-link__button"
|
|
64
64
|
}, {
|
|
65
|
-
default: S(() => [c(" ↩ " + _(n.$t(
|
|
65
|
+
default: S(() => [c(" ↩ " + _(n.$t(t.label)), 1)]),
|
|
66
66
|
_: 1
|
|
67
67
|
}, 8, ["to", "href"])) : (f(), o("button", {
|
|
68
68
|
key: 1,
|
|
69
69
|
class: "mwnf-back-link__button",
|
|
70
70
|
onClick: d
|
|
71
|
-
}, " ↩ " + _(n.$t(
|
|
71
|
+
}, " ↩ " + _(n.$t(t.label)), 1))]));
|
|
72
72
|
}
|
|
73
73
|
}, j = ["dir"], M = { class: "mwnf-glossary-tool__toggle" }, N = { class: "mwnf-glossary-tool__panel" }, P = { class: "mwnf-glossary-tool__heading" }, F = { class: "mwnf-glossary-tool__instructions" }, I = ["aria-expanded", "aria-label"], L = {
|
|
74
74
|
key: 0,
|
|
@@ -256,8 +256,8 @@ var k = ["href"], A = {
|
|
|
256
256
|
type: Object,
|
|
257
257
|
required: !0
|
|
258
258
|
} },
|
|
259
|
-
setup(
|
|
260
|
-
let i =
|
|
259
|
+
setup(t) {
|
|
260
|
+
let i = t, { t: u } = T(), d = p(!1), h = p(i.info.defaultCountry ? i.info.defaultCountry() : "all");
|
|
261
261
|
x(() => i.info, (e) => {
|
|
262
262
|
h.value = e.defaultCountry ? e.defaultCountry() : "all";
|
|
263
263
|
});
|
|
@@ -265,23 +265,23 @@ var k = ["href"], A = {
|
|
|
265
265
|
return (r, i) => (f(), o("div", ue, [s("p", {
|
|
266
266
|
class: "mwnf-sheet-timeline__trigger",
|
|
267
267
|
onClick: i[0] ||= (e) => d.value = !d.value
|
|
268
|
-
}, "➤ " + _(v(u)(
|
|
268
|
+
}, "➤ " + _(v(u)(t.info.trigger ?? "record.related.timelineForItem")), 1), d.value ? (f(), o("div", de, [
|
|
269
269
|
s("button", {
|
|
270
270
|
type: "button",
|
|
271
271
|
class: "mwnf-sheet-timeline__close",
|
|
272
272
|
"aria-label": v(u)("core.action.close"),
|
|
273
273
|
onClick: i[1] ||= (e) => d.value = !1
|
|
274
274
|
}, "✕", 8, fe),
|
|
275
|
-
s("p", pe, _(v(u)(
|
|
275
|
+
s("p", pe, _(v(u)(t.info.heading)), 1),
|
|
276
276
|
s("div", me, [C(s("select", {
|
|
277
277
|
"onUpdate:modelValue": i[2] ||= (e) => h.value = e,
|
|
278
278
|
class: "mwnf-sheet-timeline__select"
|
|
279
|
-
}, [(f(!0), o(n, null, m(
|
|
279
|
+
}, [(f(!0), o(n, null, m(t.info.countries, (e) => (f(), o("option", {
|
|
280
280
|
key: e.value,
|
|
281
281
|
value: e.value
|
|
282
|
-
}, _(e.label), 9, he))), 128))], 512), [[y, h.value]]), l(
|
|
282
|
+
}, _(e.label), 9, he))), 128))], 512), [[y, h.value]]), l(e, {
|
|
283
283
|
class: "mwnf-sheet-timeline__link",
|
|
284
|
-
to:
|
|
284
|
+
to: t.info.searchTo(h.value, g.value)
|
|
285
285
|
}, {
|
|
286
286
|
default: S(() => [c("➤ " + _(v(u)("timeline.action.beginFullSearch")), 1)]),
|
|
287
287
|
_: 1
|
|
@@ -326,28 +326,28 @@ var k = ["href"], A = {
|
|
|
326
326
|
default: ""
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
|
-
setup(
|
|
330
|
-
let c =
|
|
329
|
+
setup(e) {
|
|
330
|
+
let c = e, { t: l } = T(), u = r(() => {
|
|
331
331
|
let e = c.media.filter((e) => e?.url);
|
|
332
332
|
if (!c.language) return e;
|
|
333
333
|
let t = e.filter((e) => e.language === c.language);
|
|
334
334
|
return t.length ? t : e;
|
|
335
335
|
});
|
|
336
|
-
return (r, c) => u.value.length ? (f(), i(
|
|
336
|
+
return (r, c) => u.value.length ? (f(), i(t, {
|
|
337
337
|
key: 0,
|
|
338
|
-
heading:
|
|
339
|
-
dir:
|
|
338
|
+
heading: e.heading ? v(l)(e.heading) : "",
|
|
339
|
+
dir: e.dir,
|
|
340
340
|
class: "mwnf-related-media"
|
|
341
341
|
}, {
|
|
342
|
-
default: S(() => [(f(!0), o(n, null, m(u.value, (
|
|
343
|
-
key:
|
|
342
|
+
default: S(() => [(f(!0), o(n, null, m(u.value, (t) => (f(), o("div", {
|
|
343
|
+
key: t.url,
|
|
344
344
|
class: "mwnf-related-media__entry"
|
|
345
345
|
}, [s("a", {
|
|
346
|
-
href:
|
|
346
|
+
href: t.url,
|
|
347
347
|
target: "_blank",
|
|
348
348
|
rel: "noopener",
|
|
349
349
|
class: "mwnf-related-media__link"
|
|
350
|
-
}, "↗ " + _(
|
|
350
|
+
}, "↗ " + _(t.title || t.url), 9, xe), e.descriptions && t.description ? (f(), o("p", Se, _(t.description), 1)) : a("", !0)]))), 128))]),
|
|
351
351
|
_: 1
|
|
352
352
|
}, 8, ["heading", "dir"])) : a("", !0);
|
|
353
353
|
}
|
|
@@ -376,29 +376,29 @@ var k = ["href"], A = {
|
|
|
376
376
|
},
|
|
377
377
|
setup(l) {
|
|
378
378
|
let d = l, { t: p } = T(), h = r(() => d.groups.filter((e) => e.links?.length));
|
|
379
|
-
return (r, d) => h.value.length ? (f(), i(g(l.heading ?
|
|
379
|
+
return (r, d) => h.value.length ? (f(), i(g(l.heading ? t : "div"), u({ key: 0 }, l.heading ? { heading: v(p)(l.heading) } : {}, {
|
|
380
380
|
dir: l.dir || void 0,
|
|
381
381
|
class: "mwnf-on-display"
|
|
382
382
|
}), {
|
|
383
|
-
default: S(() => [(f(!0), o(n, null, m(h.value, (
|
|
384
|
-
key:
|
|
383
|
+
default: S(() => [(f(!0), o(n, null, m(h.value, (t, r) => (f(), o("div", {
|
|
384
|
+
key: t.heading ?? r,
|
|
385
385
|
class: "mwnf-on-display__group"
|
|
386
|
-
}, [
|
|
387
|
-
key:
|
|
386
|
+
}, [t.heading ? (f(), o("p", we, _(v(p)(t.heading)), 1)) : a("", !0), s("ul", Te, [(f(!0), o(n, null, m(t.links, (t, r) => (f(), o("li", {
|
|
387
|
+
key: t.id ?? r,
|
|
388
388
|
class: "mwnf-on-display__item"
|
|
389
|
-
}, [
|
|
389
|
+
}, [t.to || t.href ? (f(), i(e, {
|
|
390
390
|
key: 0,
|
|
391
|
-
to:
|
|
392
|
-
href:
|
|
393
|
-
external: !!
|
|
391
|
+
to: t.to,
|
|
392
|
+
href: t.href,
|
|
393
|
+
external: !!t.external
|
|
394
394
|
}, {
|
|
395
|
-
default: S(() => [
|
|
395
|
+
default: S(() => [t.external ? (f(), o(n, { key: 0 }, [c("↗ ")], 64)) : a("", !0), s("span", { innerHTML: t.label }, null, 8, Ee)]),
|
|
396
396
|
_: 2
|
|
397
397
|
}, 1032, [
|
|
398
398
|
"to",
|
|
399
399
|
"href",
|
|
400
400
|
"external"
|
|
401
|
-
])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML:
|
|
401
|
+
])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML: t.label }, null, 8, De), l.pendingLabel ? (f(), o(n, { key: 0 }, [d[0] ||= c(_(" "), -1), s("span", Oe, _(v(p)(l.pendingLabel)), 1)], 64)) : a("", !0)], 64))]))), 128))])]))), 128))]),
|
|
402
402
|
_: 1
|
|
403
403
|
}, 16, ["dir"])) : a("", !0);
|
|
404
404
|
}
|