@museumwnf/viewer-layout 3.59.0 → 3.61.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/{FeaturedRecord-CTqnQFox.js → FeaturedRecord-DaGLHyhD.js} +2 -3
- package/dist/{GlossaryPopover-B7E6BsjS.js → GlossaryPopover-DbQKXhx9.js} +1 -2
- package/dist/ItemDetailView-D7m2C1Mg.js +310 -0
- package/dist/{OnDisplayIn-DZHRKjL0.js → OnDisplayIn-DW4iC5BB.js} +10 -5
- package/dist/{PageShell-CcaLOuXI.js → PageShell-CPtgzcxv.js} +1 -2
- package/dist/{PartnerMap-BIKd-AGP.js → PartnerMap-U-Hi2FBi.js} +17 -14
- package/dist/RecordView-BE4mbj6G.js +363 -0
- package/dist/{SiteShell-CYQxXosD.js → SiteShell-qvsZO4Iz.js} +3 -4
- package/dist/{Theme-Co1bf81Z.js → Theme-4RmyRY0x.js} +29 -30
- package/dist/{TimelineEventList-CTJJOWGh.js → TimelineEventList-1feZA5t7.js} +3 -4
- package/dist/{TimelineResultsView-D15BMWZM.js → TimelineResultsView-CkH3NDqL.js} +264 -255
- package/dist/{chrome-DNsZQXrL.js → chrome-Bv_mLlHM.js} +1 -2
- package/dist/components.js +1 -2
- package/dist/{content-PQeMx8U5.js → content-BNS5U0Xv.js} +3 -4
- package/dist/content.js +6 -6
- package/dist/{data-CXRsGwLQ.js → data-EKYeMQcC.js} +16 -11
- package/dist/{data-BINc9QjV.js → data-kqAkoQvf.js} +2 -3
- package/dist/dxa.js +1006 -669
- package/dist/index.js +8 -8
- package/dist/minisite.js +14 -26
- package/dist/standalone.js +209 -217
- package/dist/{themeSpecs-DP9xWiVJ.js → themeSpecs-CsDpl4rR.js} +2 -3
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +5 -6
- package/package.json +10 -10
- package/src/dxa/testing.js +98 -57
- package/src/styles/dxa-gallery.css +32 -4
- package/src/tokens.reference.css +12 -1
- package/dist/ItemDetailView-Bbn-uNaR.js +0 -304
- package/dist/RecordView-DEKHp1A3.js +0 -348
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { t as e } from "./GlossaryPopover-DbQKXhx9.js";
|
|
2
|
+
import { a as t, c as n, d as r, i, n as a, o as ee, r as te, s as ne } from "./PartnerMap-U-Hi2FBi.js";
|
|
3
|
+
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as re, createTextVNode as ie, createVNode as f, guardReactiveProps as p, mergeProps as ae, normalizeClass as oe, normalizeProps as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useSlots as se, watch as x, withCtx as ce } from "vue";
|
|
4
|
+
import { useI18n as S } from "@museumwnf/viewer-core/i18n";
|
|
5
|
+
import { NotFoundView as le, byId as ue, citation as de, creditLine as fe, entityRef as pe, languageLabels as me, loadEntities as he, pictureCredits as ge, picturesInLanguage as _e, renderBlock as C, renderInline as w, renderPlain as T, sheetRows as E, sourceUrl as ve, useDataPackage as ye, useGlossaryPopup as be, useI18n as xe, useProjects as Se, useRecordSheet as Ce, useRelatedRecords as we } from "@museumwnf/viewer-core";
|
|
6
|
+
import { useRoute as Te } from "vue-router";
|
|
7
|
+
// src/content/ShortDescription.vue
|
|
8
|
+
var D = ["dir"], Ee = ["aria-expanded"], O = ["innerHTML"], De = {
|
|
9
|
+
__name: "ShortDescription",
|
|
10
|
+
props: {
|
|
11
|
+
html: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: !0
|
|
14
|
+
},
|
|
15
|
+
dir: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: void 0
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(e) {
|
|
21
|
+
let t = e, { t: n } = S(), r = g(!1);
|
|
22
|
+
return x(() => t.html, () => {
|
|
23
|
+
r.value = !1;
|
|
24
|
+
}), (t, i) => (h(), u("div", {
|
|
25
|
+
class: "mwnf-sheet__short",
|
|
26
|
+
dir: e.dir
|
|
27
|
+
}, [d("button", {
|
|
28
|
+
type: "button",
|
|
29
|
+
class: "mwnf-sheet__toggle",
|
|
30
|
+
"aria-expanded": r.value ? "true" : "false",
|
|
31
|
+
onClick: i[0] ||= (e) => r.value = !r.value
|
|
32
|
+
}, y(r.value ? b(n)("record.action.hideShortDescription") : b(n)("record.action.viewShortDescription")), 9, Ee), r.value ? (h(), u("div", {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "mwnf-sheet__block",
|
|
35
|
+
innerHTML: e.html
|
|
36
|
+
}, null, 8, O)) : l("", !0)], 8, D));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
// src/views/pictureLimit.js
|
|
40
|
+
function k(e, t, n) {
|
|
41
|
+
let r = typeof t == "function" ? t(n) : t;
|
|
42
|
+
return Number.isInteger(r) && r > 0 ? e.slice(0, r) : e;
|
|
43
|
+
}
|
|
44
|
+
// src/views/RecordView.vue
|
|
45
|
+
var Oe = ["dir", "innerHTML"], ke = { class: "mwnf-record__body" }, Ae = { class: "mwnf-record__main" }, je = {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "mwnf-record__media"
|
|
48
|
+
}, Me = {
|
|
49
|
+
key: 2,
|
|
50
|
+
class: "mwnf-record__status"
|
|
51
|
+
}, Ne = {
|
|
52
|
+
key: 0,
|
|
53
|
+
class: "mwnf-record__aside"
|
|
54
|
+
}, Pe = {
|
|
55
|
+
key: 2,
|
|
56
|
+
class: "mwnf-record__status"
|
|
57
|
+
}, A = {
|
|
58
|
+
__name: "RecordView",
|
|
59
|
+
props: {
|
|
60
|
+
spec: {
|
|
61
|
+
type: Object,
|
|
62
|
+
required: !0
|
|
63
|
+
},
|
|
64
|
+
id: {
|
|
65
|
+
type: String,
|
|
66
|
+
required: !0
|
|
67
|
+
},
|
|
68
|
+
entity: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: ""
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
setup(g) {
|
|
74
|
+
let x = g, { t: S, tIn: D, locale: Ee } = xe(), O = ye(), A = Se(), Fe = se(), Ie = Te(), j = x.spec.entity ?? x.entity, M = s(() => x.spec), Le = pe(j), Re = ue(j), N = s(() => Re.value.get(x.id) ?? null), ze = s(() => Le.value !== null), P = x.spec.creditPeople ? x.spec.creditPeople.entity ?? "authors" : null;
|
|
75
|
+
P && he([P]).catch(() => {});
|
|
76
|
+
let F = P ? ue(P) : null, { language: I, languages: Be, dir: L, select: R, text: z, ready: B, terms: Ve, glossary: V, attribution: H } = Ce(N, {
|
|
77
|
+
entity: j,
|
|
78
|
+
translations: [...x.spec.translations ?? [], ...P ? [P] : []],
|
|
79
|
+
attribution: x.spec.attribution ?? []
|
|
80
|
+
}), U = s(() => me(Be.value)), { active: W, onClick: He, close: Ue } = be(Ve), We = s(() => W.value ? C(W.value.definition, { breaks: !0 }) : ""), Ge = (e, t) => O.tr(e, t, I.value, "en"), Ke = (e) => O.translations(e, I.value), G = s(() => ({
|
|
81
|
+
record: N.value,
|
|
82
|
+
text: z.value,
|
|
83
|
+
language: I.value,
|
|
84
|
+
languages: U.value,
|
|
85
|
+
select: R,
|
|
86
|
+
dir: L.value,
|
|
87
|
+
glossary: V.value,
|
|
88
|
+
ready: B.value,
|
|
89
|
+
attribution: H.value,
|
|
90
|
+
t: S,
|
|
91
|
+
tIn: (e) => D ? D(I.value, e) : S(e),
|
|
92
|
+
tr: Ge,
|
|
93
|
+
translations: Ke
|
|
94
|
+
})), K = (e) => M.value.labelsInRecordLanguage && D ? D(I.value, e) : S(e);
|
|
95
|
+
function qe(e) {
|
|
96
|
+
return ((typeof e == "function" ? e(G.value) : e) ?? []).map((e) => ({
|
|
97
|
+
...e,
|
|
98
|
+
label: e.label ? K(e.label) : ""
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
let Je = s(() => N.value ? E(qe(M.value.fields), G.value) : []), Ye = s(() => N.value ? E(qe(M.value.sections).map((e) => ({
|
|
102
|
+
render: "block",
|
|
103
|
+
...e
|
|
104
|
+
})), G.value) : []), q = s(() => M.value.shortDescriptionAfter ?? "description"), Xe = s(() => !Je.value.some((e) => e.key === q.value) && Ye.value.some((e) => e.key === q.value)), Ze = s(() => M.value.shortDescription === !1 ? "" : M.value.shortDescription ?? "short_description"), J = s(() => {
|
|
105
|
+
let e = Ze.value ? z.value[Ze.value] : "";
|
|
106
|
+
return e ? { html: C(String(e), {
|
|
107
|
+
breaks: !0,
|
|
108
|
+
glossary: V.value
|
|
109
|
+
}) } : null;
|
|
110
|
+
}), Qe = s(() => {
|
|
111
|
+
if (!N.value) return "";
|
|
112
|
+
if (M.value.title) return M.value.title(G.value);
|
|
113
|
+
let e = z.value.name ?? N.value.internal_name ?? N.value.id;
|
|
114
|
+
return w(String(e), { glossary: V.value });
|
|
115
|
+
}), Y = s(() => N.value ? k($e(), M.value.pictureLimit, G.value) : []);
|
|
116
|
+
function $e() {
|
|
117
|
+
if (M.value.media) return M.value.media(N.value, G.value);
|
|
118
|
+
let e = T(String(z.value.name ?? N.value.internal_name ?? ""));
|
|
119
|
+
return _e(N.value.images, I.value).map((t) => ({
|
|
120
|
+
url: t.url,
|
|
121
|
+
alt: t.captions?.[I.value] ?? e,
|
|
122
|
+
caption: t.captions?.[I.value] ?? "",
|
|
123
|
+
...ge(t, I.value)
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
let et = [
|
|
127
|
+
{
|
|
128
|
+
field: "author",
|
|
129
|
+
label: "sheet.field.preparedBy"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
field: "copy_editor",
|
|
133
|
+
label: "sheet.field.copyeditedBy"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
field: "translator",
|
|
137
|
+
label: "sheet.field.translationBy"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
field: "translation_copy_editor",
|
|
141
|
+
label: "sheet.field.translationCopyeditedBy"
|
|
142
|
+
}
|
|
143
|
+
];
|
|
144
|
+
function tt(e) {
|
|
145
|
+
let t = M.value.creditNames ? z.value.credit_names?.[e] : null;
|
|
146
|
+
return t?.length ? fe(t) : z.value[e] ?? H.value[e] ?? "";
|
|
147
|
+
}
|
|
148
|
+
function nt(e) {
|
|
149
|
+
let t = F ? z.value.credit_ids?.[e] : null;
|
|
150
|
+
if (!t?.length) return null;
|
|
151
|
+
let n = Ke(P), r = t.map((e) => {
|
|
152
|
+
let t = F.value.get(e);
|
|
153
|
+
if (!t) return null;
|
|
154
|
+
let r = t.name ?? "";
|
|
155
|
+
return {
|
|
156
|
+
name: I.value === "ar" && t.originalname ? t.originalname : r,
|
|
157
|
+
heading: [t.firstname, t.lastname].filter(Boolean).join(" ") || r,
|
|
158
|
+
biography: n?.[e]?.curriculum ?? ""
|
|
159
|
+
};
|
|
160
|
+
});
|
|
161
|
+
return r.every(Boolean) ? r : null;
|
|
162
|
+
}
|
|
163
|
+
let rt = s(() => (M.value.credits ?? et).map(({ field: e, label: t }) => ({
|
|
164
|
+
label: K(t),
|
|
165
|
+
value: tt(e),
|
|
166
|
+
people: nt(e)
|
|
167
|
+
})).filter((e) => e.value)), it = s(() => String(N.value?.[M.value.workingNumber ?? "mwnf_reference"] ?? ""));
|
|
168
|
+
function at(e) {
|
|
169
|
+
if (e?.permalink !== !1) return typeof e?.permalink == "string" ? e.permalink : ve(Ie) ?? void 0;
|
|
170
|
+
}
|
|
171
|
+
let ot = s(() => {
|
|
172
|
+
let e = M.value.citation;
|
|
173
|
+
return !N.value || typeof e?.format != "function" ? "" : e.format(G.value, {
|
|
174
|
+
permalink: at(e),
|
|
175
|
+
year: (/* @__PURE__ */ new Date()).getFullYear()
|
|
176
|
+
});
|
|
177
|
+
}), X = s(() => {
|
|
178
|
+
let e = M.value.citation;
|
|
179
|
+
if (!N.value || e === !1 || typeof e?.format == "function") return "";
|
|
180
|
+
let t = typeof e?.project == "function" ? null : e?.project ?? N.value.project_id, n = typeof e?.project == "function" ? e.project(N.value, G.value) : A.label(t);
|
|
181
|
+
return de({
|
|
182
|
+
author: tt("author") || void 0,
|
|
183
|
+
name: z.value.name ?? N.value.internal_name ?? "",
|
|
184
|
+
project: n,
|
|
185
|
+
permalink: at(e),
|
|
186
|
+
inWord: S("record.citation.in")
|
|
187
|
+
});
|
|
188
|
+
}), Z = we(N, {
|
|
189
|
+
entity: j,
|
|
190
|
+
language: I
|
|
191
|
+
}), Q = s(() => M.value.related === !1 ? null : M.value.related ?? {}), $ = s(() => {
|
|
192
|
+
if (!Q.value) return [];
|
|
193
|
+
let e = Q.value.record ?? st;
|
|
194
|
+
return Z.value.inPackage.map((t) => e(t, G.value));
|
|
195
|
+
});
|
|
196
|
+
function st({ record: e, justification: t }) {
|
|
197
|
+
let n = Ge(j, e.id).name ?? e.internal_name ?? e.id;
|
|
198
|
+
return {
|
|
199
|
+
id: e.id,
|
|
200
|
+
image: e.images?.[0]?.url ?? "",
|
|
201
|
+
imageAlt: T(String(n)),
|
|
202
|
+
name: w(String(n)),
|
|
203
|
+
meta: t ? [t] : [],
|
|
204
|
+
badge: e.type ?? "",
|
|
205
|
+
to: {
|
|
206
|
+
name: M.value.route ?? (x.entity ? `${x.entity}-detail` : "item"),
|
|
207
|
+
params: { id: e.id }
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
let ct = /* @__PURE__ */ new Set([
|
|
212
|
+
"header",
|
|
213
|
+
"before-sheet",
|
|
214
|
+
"after-sheet",
|
|
215
|
+
"after-media",
|
|
216
|
+
"credits",
|
|
217
|
+
"aside",
|
|
218
|
+
"source",
|
|
219
|
+
"related",
|
|
220
|
+
"after",
|
|
221
|
+
"default"
|
|
222
|
+
]), lt = s(() => Object.keys(Fe).filter((e) => !ct.has(e)));
|
|
223
|
+
return (s, g) => ze.value && !N.value ? (h(), c(b(le), { key: 0 })) : N.value ? (h(), u("article", {
|
|
224
|
+
key: 1,
|
|
225
|
+
class: oe(["mwnf-record", { "mwnf-record--spaced": M.value.spaced }]),
|
|
226
|
+
onClick: g[0] ||= (...e) => b(He) && b(He)(...e)
|
|
227
|
+
}, [
|
|
228
|
+
v(s.$slots, "header", m(p(G.value)), () => [
|
|
229
|
+
M.value.back ? (h(), c(r, {
|
|
230
|
+
key: 0,
|
|
231
|
+
class: "mwnf-record__back",
|
|
232
|
+
to: M.value.back.to,
|
|
233
|
+
href: M.value.back.href
|
|
234
|
+
}, {
|
|
235
|
+
default: ce(() => [ie("← " + y(b(S)(M.value.back.label)), 1)]),
|
|
236
|
+
_: 1
|
|
237
|
+
}, 8, ["to", "href"])) : l("", !0),
|
|
238
|
+
f(n, {
|
|
239
|
+
languages: U.value,
|
|
240
|
+
language: b(I),
|
|
241
|
+
onSelect: b(R)
|
|
242
|
+
}, null, 8, [
|
|
243
|
+
"languages",
|
|
244
|
+
"language",
|
|
245
|
+
"onSelect"
|
|
246
|
+
]),
|
|
247
|
+
d("h1", {
|
|
248
|
+
class: "mwnf-record__title",
|
|
249
|
+
dir: b(L) || void 0,
|
|
250
|
+
innerHTML: Qe.value
|
|
251
|
+
}, null, 8, Oe)
|
|
252
|
+
]),
|
|
253
|
+
d("div", ke, [d("div", Ae, [
|
|
254
|
+
s.$slots["after-media"] ? (h(), u("div", je, [Y.value.length ? (h(), c(a, {
|
|
255
|
+
key: 0,
|
|
256
|
+
images: Y.value,
|
|
257
|
+
variant: M.value.mediaVariant ?? ""
|
|
258
|
+
}, null, 8, ["images", "variant"])) : l("", !0), v(s.$slots, "after-media", m(p(G.value)))])) : Y.value.length ? (h(), c(a, {
|
|
259
|
+
key: 1,
|
|
260
|
+
images: Y.value,
|
|
261
|
+
variant: M.value.mediaVariant ?? ""
|
|
262
|
+
}, null, 8, ["images", "variant"])) : l("", !0),
|
|
263
|
+
b(B) ? l("", !0) : (h(), u("p", Me, y(b(S)("core.status.loading")), 1)),
|
|
264
|
+
v(s.$slots, "before-sheet", m(p(G.value))),
|
|
265
|
+
f(ne, {
|
|
266
|
+
rows: Je.value,
|
|
267
|
+
layout: M.value.layout ?? "table",
|
|
268
|
+
dir: b(L),
|
|
269
|
+
"short-description": J.value,
|
|
270
|
+
"short-description-after": q.value,
|
|
271
|
+
"toggle-labels": M.value.shortDescriptionLabels ?? {}
|
|
272
|
+
}, re({ _: 2 }, [_(lt.value, (e) => ({
|
|
273
|
+
name: e,
|
|
274
|
+
fn: ce((t) => [v(s.$slots, e, m(p({
|
|
275
|
+
...t,
|
|
276
|
+
...G.value
|
|
277
|
+
})))])
|
|
278
|
+
}))]), 1032, [
|
|
279
|
+
"rows",
|
|
280
|
+
"layout",
|
|
281
|
+
"dir",
|
|
282
|
+
"short-description",
|
|
283
|
+
"short-description-after",
|
|
284
|
+
"toggle-labels"
|
|
285
|
+
]),
|
|
286
|
+
(h(!0), u(o, null, _(Ye.value, (e) => (h(), u(o, { key: e.key }, [
|
|
287
|
+
f(ee, {
|
|
288
|
+
heading: e.label,
|
|
289
|
+
html: e.html,
|
|
290
|
+
dir: b(L)
|
|
291
|
+
}, null, 8, [
|
|
292
|
+
"heading",
|
|
293
|
+
"html",
|
|
294
|
+
"dir"
|
|
295
|
+
]),
|
|
296
|
+
J.value && Xe.value && e.key === q.value ? (h(), c(De, {
|
|
297
|
+
key: 0,
|
|
298
|
+
html: J.value.html,
|
|
299
|
+
dir: b(L)
|
|
300
|
+
}, null, 8, ["html", "dir"])) : l("", !0),
|
|
301
|
+
v(s.$slots, `after-${e.key}`, ae({ ref_for: !0 }, G.value))
|
|
302
|
+
], 64))), 128)),
|
|
303
|
+
v(s.$slots, "after-sheet", m(p(G.value))),
|
|
304
|
+
v(s.$slots, "credits", m(p({
|
|
305
|
+
...G.value,
|
|
306
|
+
credits: rt.value,
|
|
307
|
+
workingNumber: it.value,
|
|
308
|
+
workingNumberLabel: K(M.value.workingNumberLabel ?? "sheet.field.workingNumber"),
|
|
309
|
+
citation: X.value,
|
|
310
|
+
citationHtml: ot.value
|
|
311
|
+
})), () => [f(t, {
|
|
312
|
+
credits: rt.value,
|
|
313
|
+
"working-number": it.value,
|
|
314
|
+
"working-number-label": K(M.value.workingNumberLabel ?? "sheet.field.workingNumber"),
|
|
315
|
+
citation: X.value,
|
|
316
|
+
"citation-html": ot.value,
|
|
317
|
+
"citation-heading": M.value.citation?.heading ? K(M.value.citation.heading) : ""
|
|
318
|
+
}, null, 8, [
|
|
319
|
+
"credits",
|
|
320
|
+
"working-number",
|
|
321
|
+
"working-number-label",
|
|
322
|
+
"citation",
|
|
323
|
+
"citation-html",
|
|
324
|
+
"citation-heading"
|
|
325
|
+
])]),
|
|
326
|
+
v(s.$slots, "source", m(p(G.value)), () => [M.value.sourceCredit === !1 ? l("", !0) : (h(), c(i, { key: 0 }))]),
|
|
327
|
+
v(s.$slots, "related", m(p({
|
|
328
|
+
...G.value,
|
|
329
|
+
records: $.value,
|
|
330
|
+
outside: b(Z).outside
|
|
331
|
+
})), () => [Q.value ? (h(), c(te, {
|
|
332
|
+
key: 0,
|
|
333
|
+
heading: b(S)(Q.value.heading ?? "record.related.items"),
|
|
334
|
+
records: $.value,
|
|
335
|
+
variant: Q.value.variant ?? "list",
|
|
336
|
+
"action-label": Q.value.actionLabel ? b(S)(Q.value.actionLabel) : ""
|
|
337
|
+
}, null, 8, [
|
|
338
|
+
"heading",
|
|
339
|
+
"records",
|
|
340
|
+
"variant",
|
|
341
|
+
"action-label"
|
|
342
|
+
])) : l("", !0)])
|
|
343
|
+
]), s.$slots.aside ? (h(), u("aside", Ne, [v(s.$slots, "aside", m(p({
|
|
344
|
+
...G.value,
|
|
345
|
+
records: $.value,
|
|
346
|
+
outside: b(Z).outside
|
|
347
|
+
})))])) : l("", !0)]),
|
|
348
|
+
v(s.$slots, "after", m(p(G.value))),
|
|
349
|
+
f(e, {
|
|
350
|
+
term: b(W),
|
|
351
|
+
html: We.value,
|
|
352
|
+
dir: b(L),
|
|
353
|
+
onClose: b(Ue)
|
|
354
|
+
}, null, 8, [
|
|
355
|
+
"term",
|
|
356
|
+
"html",
|
|
357
|
+
"dir",
|
|
358
|
+
"onClose"
|
|
359
|
+
])
|
|
360
|
+
], 2)) : (h(), u("p", Pe, y(b(S)("core.status.loading")), 1));
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
export { k as n, A as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./PageShell-
|
|
2
|
-
import { r as t } from "./chrome-
|
|
1
|
+
import { t as e } from "./PageShell-CPtgzcxv.js";
|
|
2
|
+
import { r as t } from "./chrome-Bv_mLlHM.js";
|
|
3
3
|
import { computed as n, createBlock as r, createSlots as i, mergeProps as a, openBlock as o, renderSlot as s, useAttrs as c, withCtx as l } from "vue";
|
|
4
4
|
import { mwnfLinks as u, useI18n as d, useSection as f, useSiteConfig as p, useSiteRights as m } from "@museumwnf/viewer-core";
|
|
5
5
|
import { useRouter as h } from "vue-router";
|
|
6
|
-
|
|
6
|
+
// src/components/SiteShell.vue
|
|
7
7
|
var g = /*@__PURE__*/ Object.assign({ inheritAttrs: !1 }, {
|
|
8
8
|
__name: "SiteShell",
|
|
9
9
|
props: {
|
|
@@ -191,5 +191,4 @@ var g = /*@__PURE__*/ Object.assign({ inheritAttrs: !1 }, {
|
|
|
191
191
|
]), 1040));
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
|
-
//#endregion
|
|
195
194
|
export { g as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { A as r, F as i, h as a, m as o } from "./data-
|
|
4
|
-
import { n as s, r as c, t as l } from "./themeSpecs-
|
|
1
|
+
import { o as e } from "./TimelineResultsView-CkH3NDqL.js";
|
|
2
|
+
import { d as t, i as n } from "./PartnerMap-U-Hi2FBi.js";
|
|
3
|
+
import { A as r, F as i, h as a, m as o } from "./data-kqAkoQvf.js";
|
|
4
|
+
import { n as s, r as c, t as l } from "./themeSpecs-CsDpl4rR.js";
|
|
5
5
|
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, normalizeClass as v, onMounted as ee, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, vModelCheckbox as w, watch as T, withCtx as E, withDirectives as D } from "vue";
|
|
6
6
|
import { renderBlock as O, useI18n as k } from "@museumwnf/viewer-core";
|
|
7
7
|
import { RouterLink as A, useRoute as te, useRouter as ne } from "vue-router";
|
|
8
|
-
|
|
8
|
+
// \0rolldown/runtime.js
|
|
9
9
|
var j = Object.defineProperty, M = (e, t) => {
|
|
10
10
|
let n = {};
|
|
11
11
|
for (var r in e) j(n, r, {
|
|
@@ -67,8 +67,8 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
emits: ["update:selectedId"],
|
|
70
|
-
setup(
|
|
71
|
-
let r =
|
|
70
|
+
setup(e, { emit: n }) {
|
|
71
|
+
let r = e, i = n, { t: a } = k(), o = d(() => r.pictures.find((e) => e.id === r.selectedId) ?? null), s = d(() => r.pictures.some((e) => e.backRelated?.length)), c = b(!1);
|
|
72
72
|
T(() => r.pictures, () => {
|
|
73
73
|
c.value = !1;
|
|
74
74
|
});
|
|
@@ -86,38 +86,38 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
86
86
|
class: "mwnf-picture-gallery__detail"
|
|
87
87
|
}, [e.label ? (y(), m("span", B, S(e.label), 1)) : p("", !0), h("span", { innerHTML: e.value }, null, 8, V)]))), 128)),
|
|
88
88
|
o.value.detail ? (y(), m("div", H, S(o.value.detail), 1)) : p("", !0),
|
|
89
|
-
o.value.to ? (y(), f(
|
|
89
|
+
o.value.to ? (y(), f(t, {
|
|
90
90
|
key: 1,
|
|
91
91
|
class: "mwnf-picture-gallery__link",
|
|
92
92
|
to: o.value.to
|
|
93
93
|
}, {
|
|
94
|
-
default: E(() => [g(S(C(a)(
|
|
94
|
+
default: E(() => [g(S(C(a)(e.seeItemEntry)) + " →", 1)]),
|
|
95
95
|
_: 1
|
|
96
|
-
}, 8, ["to"])) : (y(), m("div", U, S(C(a)(
|
|
97
|
-
])])) : (y(), m("div", W, S(C(a)(
|
|
98
|
-
key:
|
|
96
|
+
}, 8, ["to"])) : (y(), m("div", U, S(C(a)(e.unresolvedEntry)), 1))
|
|
97
|
+
])])) : (y(), m("div", W, S(C(a)(e.emptyEntry)), 1)), e.pictures.length ? (y(), m("div", G, [h("ul", K, [(y(!0), m(u, null, x(l.value, (t) => (y(), m("li", {
|
|
98
|
+
key: t.id,
|
|
99
99
|
class: v(["mwnf-picture-gallery__thumb", {
|
|
100
|
-
"mwnf-picture-gallery__thumb--active":
|
|
101
|
-
"mwnf-picture-gallery__thumb--related":
|
|
100
|
+
"mwnf-picture-gallery__thumb--active": t.id === e.selectedId,
|
|
101
|
+
"mwnf-picture-gallery__thumb--related": t.backRelated?.length
|
|
102
102
|
}])
|
|
103
103
|
}, [h("button", {
|
|
104
104
|
type: "button",
|
|
105
|
-
onClick: (
|
|
105
|
+
onClick: (e) => _(t)
|
|
106
106
|
}, [h("img", {
|
|
107
|
-
src:
|
|
108
|
-
alt:
|
|
107
|
+
src: t.image,
|
|
108
|
+
alt: t.imageAlt ?? "",
|
|
109
109
|
loading: "lazy"
|
|
110
110
|
}, null, 8, J)], 8, q), h("div", Y, [
|
|
111
|
-
|
|
111
|
+
t.imageCaption ? (y(), m("span", X, S(t.imageCaption) + ", ", 1)) : p("", !0),
|
|
112
112
|
h("span", {
|
|
113
113
|
class: "mwnf-picture-gallery__thumb-name",
|
|
114
|
-
innerHTML:
|
|
114
|
+
innerHTML: t.name
|
|
115
115
|
}, null, 8, Z),
|
|
116
|
-
|
|
116
|
+
t.detail ? (y(), m("span", Q, ", " + S(t.detail), 1)) : p("", !0)
|
|
117
117
|
])], 2))), 128))]), s.value ? (y(), m("label", ie, [D(h("input", {
|
|
118
118
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
119
119
|
type: "checkbox"
|
|
120
|
-
}, null, 512), [[w, c.value]]), h("span", null, S(c.value ? C(a)(
|
|
120
|
+
}, null, 512), [[w, c.value]]), h("span", null, S(c.value ? C(a)(e.hideRelatedEntry) : C(a)(e.addRelatedEntry)), 1)])) : p("", !0)])) : p("", !0)]));
|
|
121
121
|
}
|
|
122
122
|
}, $ = {
|
|
123
123
|
key: 0,
|
|
@@ -211,8 +211,8 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
211
211
|
type: Boolean,
|
|
212
212
|
default: !1
|
|
213
213
|
} },
|
|
214
|
-
setup(
|
|
215
|
-
let w =
|
|
214
|
+
setup(t) {
|
|
215
|
+
let w = t, { aboutTheme: D, owningTheme: O, romanFor: j, themeByRouteId: M, themeText: N, useThemePictures: re } = r, { t: P, locale: F } = k(), I = te(), L = ne(), R = d(() => w.aboutMode ? D.value : M(I.params.id)), z = d(() => {
|
|
216
216
|
let e = I.params.subtheme;
|
|
217
217
|
if (w.aboutMode || !e || e === "overview") return null;
|
|
218
218
|
let t = Number(e);
|
|
@@ -248,11 +248,11 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
248
248
|
title: N(e, F.value).title ?? e.internal_name ?? "",
|
|
249
249
|
to: s(e)
|
|
250
250
|
}))), oe = d(() => R.value ? s(R.value) : null);
|
|
251
|
-
return (r, i) => V.value ? (y(), f(
|
|
251
|
+
return (r, i) => V.value ? (y(), f(e, {
|
|
252
252
|
key: 0,
|
|
253
253
|
spec: H.value,
|
|
254
254
|
id: V.value.id,
|
|
255
|
-
class: v(["mwnf-dxa-theme", { "mwnf-dxa-theme--about":
|
|
255
|
+
class: v(["mwnf-dxa-theme", { "mwnf-dxa-theme--about": t.aboutMode }])
|
|
256
256
|
}, {
|
|
257
257
|
header: E(() => [h("div", je, [Q.value ? (y(), m("span", Me, S(C(P)("exhibition.theme.romanLabel")) + " " + S(Q.value) + " ▪ ", 1)) : p("", !0), g(S(X.value), 1)]), h("div", Ne, S(Z.value), 1)]),
|
|
258
258
|
panel: E(() => [_(ae, {
|
|
@@ -260,7 +260,7 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
260
260
|
"selected-id": W.value,
|
|
261
261
|
"onUpdate:selectedId": J
|
|
262
262
|
}, null, 8, ["pictures", "selected-id"])]),
|
|
263
|
-
"after-body": E(() => [
|
|
263
|
+
"after-body": E(() => [t.aboutMode ? p("", !0) : (y(), f(ke, {
|
|
264
264
|
key: 0,
|
|
265
265
|
picture: q.value,
|
|
266
266
|
"contextual-description": ie.value,
|
|
@@ -300,13 +300,13 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
300
300
|
_: 2
|
|
301
301
|
}, 1032, ["to", "class"])]))), 128))
|
|
302
302
|
])) : p("", !0)]),
|
|
303
|
-
after: E(({ next:
|
|
304
|
-
to: C(s)(
|
|
303
|
+
after: E(({ next: e }) => [t.aboutMode && e ? (y(), m("div", ze, [i[0] ||= h("span", null, null, -1), _(C(A), {
|
|
304
|
+
to: C(s)(e),
|
|
305
305
|
class: "mwnf-dxa-theme__tour-link"
|
|
306
306
|
}, {
|
|
307
307
|
default: E(() => [g(S(C(P)("core.pagination.next")) + " " + S(Ve), 1)]),
|
|
308
308
|
_: 1
|
|
309
|
-
}, 8, ["to"])])) : p("", !0), _(
|
|
309
|
+
}, 8, ["to"])])) : p("", !0), _(n)]),
|
|
310
310
|
_: 1
|
|
311
311
|
}, 8, [
|
|
312
312
|
"spec",
|
|
@@ -315,5 +315,4 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
315
315
|
])) : (y(), m("div", Be, S(C(P)("exhibition.theme.notInExhibition")), 1));
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
|
-
//#endregion
|
|
319
318
|
export { M as a, ae as i, He as n, ke as r, Ae as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as e, n as t, t as n } from "./PartnerMap-
|
|
1
|
+
import { d as e, n as t, t as n } from "./PartnerMap-U-Hi2FBi.js";
|
|
2
2
|
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, mergeProps as d, nextTick as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, renderSlot as _, resolveDynamicComponent as v, toDisplayString as y, unref as b, useId as x, useSlots as S, vModelText as C, vShow as ee, watch as w, withCtx as T, withDirectives as E, withKeys as D, withModifiers as O } from "vue";
|
|
3
3
|
import { useI18n as k } from "@museumwnf/viewer-core/i18n";
|
|
4
4
|
import { mdInline as A } from "@museumwnf/viewer-core";
|
|
5
|
-
|
|
5
|
+
// src/content/SectionCards.vue
|
|
6
6
|
var j = ["innerHTML"], M = ["innerHTML"], N = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "mwnf-cards__action"
|
|
@@ -526,7 +526,7 @@ var j = ["innerHTML"], M = ["innerHTML"], N = {
|
|
|
526
526
|
Home: 0,
|
|
527
527
|
End: t.length - 1
|
|
528
528
|
}[e.key];
|
|
529
|
-
r
|
|
529
|
+
r !== void 0 && t.length && (e.preventDefault(), R.value = t[r], f(() => document.getElementById(z(t[r]))?.focus()));
|
|
530
530
|
}
|
|
531
531
|
let H = i(() => j("persons") ? M.value?.persons ?? [] : []), U = i(() => [...M.value?.contact?.website ? [M.value.contact.website] : [], ...M.value?.contact?.links ?? []]);
|
|
532
532
|
return (i, f) => S.partner && S.variant === "line" ? (m(), s("div", {
|
|
@@ -776,5 +776,4 @@ var j = ["innerHTML"], M = ["innerHTML"], N = {
|
|
|
776
776
|
])]))), 128))])) : b(n) ? (m(), s("div", kt, [_(i.$slots, "empty")])) : o("", !0);
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
|
-
//#endregion
|
|
780
779
|
export { me as a, ye as i, yt as n, se as o, Ee as r, J as s, At as t };
|