@museumwnf/viewer-layout 3.80.0 → 3.80.2
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/LegacyItemSheet-DKgLfAz_.js +662 -0
- package/dist/RecordView-DAvWufWV.js +384 -0
- package/dist/{SiteShell-CzKgoOBm.js → SiteShell-D0u1FGMu.js} +47 -47
- package/dist/Theme-BUfsZDdm.js +408 -0
- package/dist/components.js +1 -1
- package/dist/{content-hV5uyd-b.js → content-B1458eb-.js} +6 -6
- package/dist/content.js +1 -1
- package/dist/{data-D9H1tB75.js → data-CD0QmDAc.js} +13 -13
- package/dist/{data-DlmKSxgh.js → data-CxiuR3R_.js} +16 -17
- package/dist/dxa.js +1075 -1075
- package/dist/index.js +1 -1
- package/dist/minisite.js +1159 -1159
- package/dist/standalone.js +967 -967
- package/dist/{themeSpecs-BJ82RvA1.js → themeSpecs-C0tSNkSd.js} +1 -1
- package/dist/views.js +298 -298
- package/package.json +9 -4
- package/src/dxa/testing.js +6 -2
- package/dist/LegacyItemSheet-CNooycyz.js +0 -662
- package/dist/RecordView-CBC7tBCX.js +0 -384
- package/dist/Theme-BCn6_VkI.js +0 -408
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, nextTick as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as ee, onMounted as te, openBlock as d, ref as f, renderList as p, toDisplayString as m, unref as h, vModelCheckbox as ne, watch as g, withCtx as _, withDirectives as re } from "vue";
|
|
2
|
+
import { RouterLink as v, useRoute as ie, useRouter as ae } from "vue-router";
|
|
3
|
+
import { glossaryEntries as oe, glossaryTermsForText as se, renderBlock as y, renderInline as b, useGlossaryPopup as ce, useI18n as le } from "@museumwnf/viewer-core";
|
|
4
|
+
import { t as ue } from "./GlossaryPopover-DbQKXhx9.js";
|
|
5
|
+
import { M as de, c as fe, d as pe, k as me, u as he, v as ge } from "./data-CD0QmDAc.js";
|
|
6
|
+
import { n as x } from "./themeSpecs-C0tSNkSd.js";
|
|
7
|
+
// \0rolldown/runtime.js
|
|
8
|
+
var S = Object.defineProperty, C = (e, t) => {
|
|
9
|
+
let n = Object.setPrototypeOf({}, null);
|
|
10
|
+
for (var r in e) S(n, r, {
|
|
11
|
+
get: e[r],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
return t & 1 || S(n, Symbol.toStringTag, { value: "Module" }), t & 2 ? n : Object.preventExtensions(n);
|
|
15
|
+
}, _e = ["src", "alt"], ve = ["src"], ye = {
|
|
16
|
+
__name: "HoverZoom",
|
|
17
|
+
props: {
|
|
18
|
+
src: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: !0
|
|
21
|
+
},
|
|
22
|
+
alt: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ""
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(e) {
|
|
28
|
+
let t = f(null), n = f(null), r = f(null), o = f(!1);
|
|
29
|
+
function s(e) {
|
|
30
|
+
let i = t.value?.getBoundingClientRect();
|
|
31
|
+
if (!i || !n.value || !r.value) return;
|
|
32
|
+
let a = (e.clientX - i.left) / n.value.offsetWidth, o = (e.clientY - i.top) / n.value.offsetHeight;
|
|
33
|
+
r.value.style.left = `${-a * (r.value.offsetWidth - n.value.offsetWidth)}px`, r.value.style.top = `${-o * (r.value.offsetHeight - n.value.offsetHeight)}px`;
|
|
34
|
+
}
|
|
35
|
+
return (c, l) => (d(), i("div", {
|
|
36
|
+
ref_key: "box",
|
|
37
|
+
ref: t,
|
|
38
|
+
class: "mwnf-hover-zoom",
|
|
39
|
+
onMouseenter: l[0] ||= (e) => o.value = !0,
|
|
40
|
+
onMouseleave: l[1] ||= (e) => o.value = !1,
|
|
41
|
+
onMousemove: s
|
|
42
|
+
}, [a("img", {
|
|
43
|
+
ref_key: "normal",
|
|
44
|
+
ref: n,
|
|
45
|
+
class: "mwnf-hover-zoom__normal",
|
|
46
|
+
style: u({ opacity: +!o.value }),
|
|
47
|
+
src: e.src,
|
|
48
|
+
alt: e.alt
|
|
49
|
+
}, null, 12, _e), a("img", {
|
|
50
|
+
ref_key: "zoom",
|
|
51
|
+
ref: r,
|
|
52
|
+
class: "mwnf-hover-zoom__zoom",
|
|
53
|
+
style: u({ opacity: +!!o.value }),
|
|
54
|
+
src: e.src,
|
|
55
|
+
alt: "",
|
|
56
|
+
"aria-hidden": "true"
|
|
57
|
+
}, null, 12, ve)], 544));
|
|
58
|
+
}
|
|
59
|
+
}, be = /* @__PURE__ */ C({ default: () => w }), xe = { class: "mwnf-dxa-theme-page__band" }, Se = { class: "mwnf-dxa-theme-page__thumbs-frame" }, Ce = {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: "mwnf-dxa-theme-page__arrows"
|
|
62
|
+
}, we = ["aria-label"], Te = ["aria-label"], Ee = [
|
|
63
|
+
"src",
|
|
64
|
+
"alt",
|
|
65
|
+
"onClick"
|
|
66
|
+
], De = ["innerHTML"], Oe = ["innerHTML"], ke = {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "mwnf-dxa-theme-page__controls"
|
|
69
|
+
}, Ae = { class: "mwnf-dxa-theme-page__control" }, je = { class: "mwnf-dxa-theme-page__switch" }, Me = { class: "mwnf-dxa-theme-page__body" }, Ne = {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "mwnf-dxa-theme-page__selected"
|
|
72
|
+
}, Pe = { class: "mwnf-dxa-theme-page__lightbox-frame" }, Fe = ["src", "alt"], Ie = {
|
|
73
|
+
key: 2,
|
|
74
|
+
class: "mwnf-dxa-theme-page__details"
|
|
75
|
+
}, Le = { class: "mwnf-dxa-theme-page__detail mwnf-dxa-theme-page__detail--title" }, Re = ["innerHTML"], ze = ["innerHTML"], Be = {
|
|
76
|
+
key: 0,
|
|
77
|
+
class: "mwnf-dxa-theme-page__detail"
|
|
78
|
+
}, Ve = ["innerHTML"], He = ["innerHTML"], Ue = ["innerHTML"], We = ["innerHTML"], Ge = ["innerHTML"], Ke = {
|
|
79
|
+
key: 5,
|
|
80
|
+
class: "mwnf-dxa-theme-page__detail"
|
|
81
|
+
}, qe = {
|
|
82
|
+
key: 1,
|
|
83
|
+
class: "mwnf-dxa-theme-page__empty"
|
|
84
|
+
}, Je = { class: "mwnf-dxa-theme-page__theme-title" }, Ye = { class: "mwnf-dxa-theme-page__title" }, Xe = ["innerHTML"], Ze = ["innerHTML"], Qe = ["innerHTML"], $e = {
|
|
85
|
+
key: 3,
|
|
86
|
+
class: "mwnf-dxa-theme-page__related"
|
|
87
|
+
}, et = { class: "mwnf-dxa-theme-page__related-heading" }, tt = ["innerHTML"], nt = { class: "mwnf-dxa-theme-page__related-images" }, rt = { class: "mwnf-dxa-theme-page__related-image mwnf-dxa-theme-page__related-image--main" }, it = ["src", "alt"], at = [
|
|
88
|
+
"src",
|
|
89
|
+
"alt",
|
|
90
|
+
"onClick"
|
|
91
|
+
], ot = {
|
|
92
|
+
key: 4,
|
|
93
|
+
class: "mwnf-dxa-theme-page__related"
|
|
94
|
+
}, st = { class: "mwnf-dxa-theme-page__related-heading" }, ct = { class: "mwnf-dxa-theme-page__justification mwnf-dxa-theme-page__reciprocal" }, lt = ["innerHTML"], ut = { key: 1 }, dt = { class: "mwnf-dxa-theme-page__related-image" }, ft = ["src", "alt"], pt = { class: "mwnf-dxa-theme-page__tour" }, mt = {
|
|
95
|
+
key: 5,
|
|
96
|
+
class: "mwnf-dxa-theme-page__links"
|
|
97
|
+
}, ht = { class: "mwnf-dxa-theme-page__links-inner" }, gt = { class: "mwnf-dxa-theme-page__links-label" }, _t = {
|
|
98
|
+
key: 6,
|
|
99
|
+
class: "mwnf-dxa-theme-page__media"
|
|
100
|
+
}, vt = { class: "mwnf-dxa-theme-page__media-heading" }, yt = ["href"], bt = ["innerHTML"], xt = {
|
|
101
|
+
key: 1,
|
|
102
|
+
class: "mwnf-loader"
|
|
103
|
+
}, w = {
|
|
104
|
+
__name: "Theme",
|
|
105
|
+
props: { aboutMode: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: !1
|
|
108
|
+
} },
|
|
109
|
+
setup(u) {
|
|
110
|
+
let S = u, { aboutTheme: C, listedThemes: _e, pictureById: ve, pictureParent: be, romanFor: w, themeByRouteId: St, themeText: T, useThemePictures: Ct } = me, { t: E, locale: D } = le(), O = ie(), wt = ae(), k = t(() => S.aboutMode ? C.value : St(O.params.id)), A = t(() => {
|
|
111
|
+
let e = O.params.subtheme;
|
|
112
|
+
if (S.aboutMode || !e || e === "overview") return null;
|
|
113
|
+
let t = Number(e);
|
|
114
|
+
return Number.isInteger(t) && t >= 1 ? t : null;
|
|
115
|
+
}), j = t(() => A.value === null ? null : (k.value?.sub_themes ?? [])[A.value - 1] ?? null), M = t(() => j.value ?? k.value), N = Ct(M), P = (e) => (e.backRelated ?? []).length > 0, Tt = t(() => N.value.some(P)), F = f(!1), I = t(() => F.value ? N.value : N.value.filter((e) => !P(e))), Et = [
|
|
116
|
+
[774, 4],
|
|
117
|
+
[899, 5],
|
|
118
|
+
[1024, 6],
|
|
119
|
+
[1199, 7],
|
|
120
|
+
[1299, 8]
|
|
121
|
+
], Dt = f(typeof window > "u" ? 1366 : window.innerWidth), Ot = () => {
|
|
122
|
+
Dt.value = window.innerWidth;
|
|
123
|
+
};
|
|
124
|
+
te(() => window.addEventListener("resize", Ot)), ee(() => window.removeEventListener("resize", Ot));
|
|
125
|
+
let kt = t(() => Et.find(([e]) => Dt.value <= e)?.[1] ?? 9), At = t(() => !F.value && I.value.length > kt.value), L = f(null);
|
|
126
|
+
function jt(e) {
|
|
127
|
+
let t = (L.value?.querySelector("img")?.clientWidth ?? 125) + 50;
|
|
128
|
+
L.value?.scrollTo({
|
|
129
|
+
left: (L.value.scrollLeft ?? 0) + e * t,
|
|
130
|
+
behavior: "smooth"
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
let Mt = f(!1);
|
|
134
|
+
function Nt(e) {
|
|
135
|
+
Mt.value = e.clientX > window.innerWidth / 2;
|
|
136
|
+
}
|
|
137
|
+
let R = f(null), z = f(null);
|
|
138
|
+
function Pt() {
|
|
139
|
+
let e = Number(O.params.image);
|
|
140
|
+
return (N.value.find((t) => t.displayOrder === e) ?? I.value[0] ?? N.value[0])?.id ?? null;
|
|
141
|
+
}
|
|
142
|
+
function B() {
|
|
143
|
+
R.value = Pt(), z.value = null;
|
|
144
|
+
}
|
|
145
|
+
te(B), g([
|
|
146
|
+
() => O.params.id,
|
|
147
|
+
() => O.params.subtheme,
|
|
148
|
+
() => S.aboutMode
|
|
149
|
+
], () => {
|
|
150
|
+
F.value = !1, B();
|
|
151
|
+
}), g(N, (e) => {
|
|
152
|
+
e.some((e) => e.id === R.value) || B();
|
|
153
|
+
});
|
|
154
|
+
let V = t(() => N.value.find((e) => e.id === R.value) ?? null), H = t(() => z.value === null ? null : V.value?.related?.[z.value] ?? null), U = t(() => H.value?.picture ?? V.value);
|
|
155
|
+
function Ft(e) {
|
|
156
|
+
R.value = e.id, z.value = null, S.aboutMode || wt.replace({
|
|
157
|
+
name: "theme",
|
|
158
|
+
params: {
|
|
159
|
+
id: O.params.id,
|
|
160
|
+
subtheme: O.params.subtheme ?? "overview",
|
|
161
|
+
image: String(e.displayOrder)
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
let W = f(!1), G = t(() => {
|
|
166
|
+
let e = U.value;
|
|
167
|
+
if (!e) return null;
|
|
168
|
+
let t = ve.value.get(e.id), n = t ? be(t) : null, r = n ? de("items", n.id, D.value) : {}, i = Array.isArray(r.materials) ? r.materials.join(", ") : r.materials ?? "";
|
|
169
|
+
return {
|
|
170
|
+
caption: H.value ? "" : e.imageCaption ?? "",
|
|
171
|
+
name: e.name ?? "",
|
|
172
|
+
alsoKnownAs: r.alternate_name ? b(r.alternate_name) : "",
|
|
173
|
+
artist: r.artist ? b(r.artist) : "",
|
|
174
|
+
materials: i ? b(i) : "",
|
|
175
|
+
date: r.dates ? b(r.dates) : "",
|
|
176
|
+
dynasty: r.dynasty ? b(r.dynasty) : "",
|
|
177
|
+
place: [
|
|
178
|
+
r.holder || (n ? ge("partners", n.partner_id) : ""),
|
|
179
|
+
r.location,
|
|
180
|
+
r.province,
|
|
181
|
+
n ? ge("countries", n.country_id) : ""
|
|
182
|
+
].filter(Boolean).join(", "),
|
|
183
|
+
to: e.to ?? null
|
|
184
|
+
};
|
|
185
|
+
}), K = t(() => M.value ? T(M.value, D.value) : {}), It = t(() => {
|
|
186
|
+
if (S.aboutMode) return pe(D.value);
|
|
187
|
+
let e = T(k.value, D.value).title ?? k.value?.internal_name ?? "";
|
|
188
|
+
return k.value ? `${w(k.value.display_order)} ▪ ${e}` : e;
|
|
189
|
+
}), Lt = t(() => S.aboutMode ? he(D.value) : j.value ? T(j.value, D.value).title ?? j.value.internal_name ?? "" : E("exhibition.theme.overview")), q = t(() => !M.value?.id || !V.value?.id || H.value ? "" : de("themes", `${M.value.id}/${V.value.id}`, D.value).contextual_description ?? ""), Rt = t(() => j.value ? K.value.quote : K.value.presentation), zt = t(() => se([Rt.value, q.value].filter(Boolean).join("\n\n"), D.value)), J = t(() => oe(zt.value)), { active: Y, onClick: Bt, close: Vt } = ce(zt), Ht = t(() => Y.value ? y(Y.value.definition, { breaks: !0 }) : ""), Ut = t(() => K.value.quote ? b(String(K.value.quote), { glossary: j.value ? J.value : [] }) : ""), Wt = t(() => K.value.presentation ? y(String(K.value.presentation), {
|
|
190
|
+
breaks: !0,
|
|
191
|
+
glossary: j.value ? [] : J.value
|
|
192
|
+
}) : ""), Gt = t(() => q.value ? y(String(q.value), {
|
|
193
|
+
breaks: !0,
|
|
194
|
+
glossary: J.value
|
|
195
|
+
}) : ""), Kt = t(() => A.value === null || !V.value ? [] : V.value.related ?? []), X = t(() => V.value && !H.value ? (V.value.backRelated ?? [])[0] ?? null : null);
|
|
196
|
+
function qt() {
|
|
197
|
+
let e = N.value.find((e) => e.id === X.value?.picture?.id);
|
|
198
|
+
e && Ft(e);
|
|
199
|
+
}
|
|
200
|
+
let Z = t(() => {
|
|
201
|
+
let e = C.value ? [C.value] : [];
|
|
202
|
+
for (let t of _e.value) e.push(t, ...t.sub_themes ?? []);
|
|
203
|
+
return e;
|
|
204
|
+
}), Q = t(() => Z.value.findIndex((e) => e.id === M.value?.id)), Jt = t(() => Q.value > 0 ? x(Z.value[Q.value - 1]) : null), Yt = t(() => Q.value >= 0 && Q.value < Z.value.length - 1 ? x(Z.value[Q.value + 1]) : null), Xt = t(() => S.aboutMode ? [] : (k.value?.sub_themes ?? []).map((e, t) => ({
|
|
205
|
+
index: t + 1,
|
|
206
|
+
title: T(e, D.value).title ?? e.internal_name ?? "",
|
|
207
|
+
to: x(e)
|
|
208
|
+
}))), Zt = t(() => k.value ? x(k.value) : null), $ = t(() => ((S.aboutMode ? fe.value?.media : M.value?.media) ?? []).filter((e) => !e.language || e.language === D.value)), Qt = t(() => $.value.filter((e) => e.type === "audio")), $t = t(() => $.value.filter((e) => e.type === "video")), en = t(() => Qt.value.length && $t.value.length ? E("exhibition.sheet.relatedAudioVideos") : Qt.value.length ? E("exhibition.sheet.relatedAudio") : E("exhibition.sheet.relatedVideos"));
|
|
209
|
+
return g(F, () => c(() => L.value?.scrollTo({ left: 0 }))), (t, c) => M.value ? (d(), i("div", {
|
|
210
|
+
key: 0,
|
|
211
|
+
class: l(["mwnf-dxa-theme-page", { "mwnf-dxa-theme-page--about": u.aboutMode }])
|
|
212
|
+
}, [
|
|
213
|
+
a("div", xe, [a("div", Se, [At.value ? (d(), i("div", Ce, [a("button", {
|
|
214
|
+
type: "button",
|
|
215
|
+
class: "mwnf-dxa-theme-page__arrow",
|
|
216
|
+
"aria-label": h(E)("core.pagination.previous"),
|
|
217
|
+
onClick: c[0] ||= (e) => jt(-1)
|
|
218
|
+
}, "‹", 8, we), a("button", {
|
|
219
|
+
type: "button",
|
|
220
|
+
class: "mwnf-dxa-theme-page__arrow",
|
|
221
|
+
"aria-label": h(E)("core.pagination.next"),
|
|
222
|
+
onClick: c[1] ||= (e) => jt(1)
|
|
223
|
+
}, "›", 8, Te)])) : r("", !0), h(N).length ? (d(), i("div", {
|
|
224
|
+
key: 1,
|
|
225
|
+
ref_key: "strip",
|
|
226
|
+
ref: L,
|
|
227
|
+
class: l(["mwnf-dxa-theme-page__thumbs", { "mwnf-dxa-theme-page__thumbs--scroll": At.value }])
|
|
228
|
+
}, [(d(!0), i(e, null, p(I.value, (t) => (d(), i("div", {
|
|
229
|
+
key: t.id,
|
|
230
|
+
class: l(["mwnf-dxa-theme-page__thumb", {
|
|
231
|
+
"mwnf-dxa-theme-page__thumb--selected": t.id === R.value,
|
|
232
|
+
"mwnf-dxa-theme-page__thumb--related": P(t)
|
|
233
|
+
}])
|
|
234
|
+
}, [a("img", {
|
|
235
|
+
src: t.image,
|
|
236
|
+
alt: t.imageAlt,
|
|
237
|
+
onClick: (e) => Ft(t),
|
|
238
|
+
onMouseover: Nt
|
|
239
|
+
}, null, 40, Ee), a("div", { class: l(["mwnf-dxa-theme-page__tip", { "mwnf-dxa-theme-page__tip--left": Mt.value }]) }, [a("div", null, [
|
|
240
|
+
t.imageCaption ? (d(), i(e, { key: 0 }, [a("span", { innerHTML: h(b)(t.imageCaption) }, null, 8, De), c[8] ||= o(", ", -1)], 64)) : r("", !0),
|
|
241
|
+
a("i", { innerHTML: t.name }, null, 8, Oe),
|
|
242
|
+
t.detail ? (d(), i(e, { key: 1 }, [o(", " + m(t.detail), 1)], 64)) : r("", !0)
|
|
243
|
+
])], 2)], 2))), 128))], 2)) : r("", !0)]), Tt.value ? (d(), i("div", ke, [a("div", Ae, [a("label", je, [re(a("input", {
|
|
244
|
+
"onUpdate:modelValue": c[2] ||= (e) => F.value = e,
|
|
245
|
+
type: "checkbox"
|
|
246
|
+
}, null, 512), [[ne, F.value]]), c[9] ||= a("span", { class: "mwnf-dxa-theme-page__slider" }, null, -1)]), a("span", { onClick: c[3] ||= (e) => F.value = !F.value }, m(F.value ? h(E)("exhibition.theme.hideRelatedWorks") : h(E)("exhibition.theme.addRelatedWorks")), 1)])])) : r("", !0)]),
|
|
247
|
+
a("div", Me, [h(N).length ? (d(), i("div", Ne, [
|
|
248
|
+
U.value ? (d(), i("div", {
|
|
249
|
+
key: 0,
|
|
250
|
+
class: "mwnf-dxa-theme-page__picture",
|
|
251
|
+
onClick: c[4] ||= (e) => W.value = !0
|
|
252
|
+
}, [s(ye, {
|
|
253
|
+
src: U.value.image,
|
|
254
|
+
alt: U.value.imageAlt
|
|
255
|
+
}, null, 8, ["src", "alt"])])) : r("", !0),
|
|
256
|
+
W.value && U.value ? (d(), i("div", {
|
|
257
|
+
key: 1,
|
|
258
|
+
class: "mwnf-dxa-theme-page__lightbox",
|
|
259
|
+
onClick: c[5] ||= (e) => W.value = !1
|
|
260
|
+
}, [a("div", Pe, [a("img", {
|
|
261
|
+
src: U.value.image,
|
|
262
|
+
alt: U.value.imageAlt
|
|
263
|
+
}, null, 8, Fe)])])) : r("", !0),
|
|
264
|
+
G.value ? (d(), i("div", Ie, [
|
|
265
|
+
a("div", Le, [G.value.caption ? (d(), i(e, { key: 0 }, [a("span", { innerHTML: h(b)(G.value.caption) }, null, 8, Re), c[10] ||= o(", ", -1)], 64)) : r("", !0), a("span", { innerHTML: G.value.name }, null, 8, ze)]),
|
|
266
|
+
G.value.alsoKnownAs ? (d(), i("div", Be, [o(m(h(E)("sheet.field.alsoKnownAs")) + ": ", 1), a("span", { innerHTML: G.value.alsoKnownAs }, null, 8, Ve)])) : r("", !0),
|
|
267
|
+
G.value.artist ? (d(), i("div", {
|
|
268
|
+
key: 1,
|
|
269
|
+
class: "mwnf-dxa-theme-page__detail",
|
|
270
|
+
innerHTML: G.value.artist
|
|
271
|
+
}, null, 8, He)) : r("", !0),
|
|
272
|
+
G.value.materials ? (d(), i("div", {
|
|
273
|
+
key: 2,
|
|
274
|
+
class: "mwnf-dxa-theme-page__detail",
|
|
275
|
+
innerHTML: G.value.materials
|
|
276
|
+
}, null, 8, Ue)) : r("", !0),
|
|
277
|
+
G.value.date ? (d(), i("div", {
|
|
278
|
+
key: 3,
|
|
279
|
+
class: "mwnf-dxa-theme-page__detail",
|
|
280
|
+
innerHTML: G.value.date
|
|
281
|
+
}, null, 8, We)) : r("", !0),
|
|
282
|
+
G.value.dynasty ? (d(), i("div", {
|
|
283
|
+
key: 4,
|
|
284
|
+
class: "mwnf-dxa-theme-page__detail",
|
|
285
|
+
innerHTML: G.value.dynasty
|
|
286
|
+
}, null, 8, Ge)) : r("", !0),
|
|
287
|
+
G.value.place ? (d(), i("div", Ke, m(G.value.place), 1)) : r("", !0),
|
|
288
|
+
G.value.to ? (d(), n(h(v), {
|
|
289
|
+
key: 6,
|
|
290
|
+
to: G.value.to,
|
|
291
|
+
class: "mwnf-dxa-theme-page__detail mwnf-dxa-theme-page__entry"
|
|
292
|
+
}, {
|
|
293
|
+
default: _(() => [o(m(h(E)("exhibition.theme.seeItemEntry")), 1)]),
|
|
294
|
+
_: 1
|
|
295
|
+
}, 8, ["to"])) : r("", !0)
|
|
296
|
+
])) : r("", !0)
|
|
297
|
+
])) : (d(), i("div", qe, m(h(E)("exhibition.theme.additionalContent")), 1)), a("div", {
|
|
298
|
+
class: "mwnf-dxa-theme-page__content",
|
|
299
|
+
onClick: c[7] ||= (...e) => h(Bt) && h(Bt)(...e)
|
|
300
|
+
}, [
|
|
301
|
+
a("div", Je, m(It.value), 1),
|
|
302
|
+
a("div", Ye, m(Lt.value), 1),
|
|
303
|
+
Ut.value ? (d(), i(e, { key: 0 }, [c[11] ||= a("br", null, null, -1), a("div", {
|
|
304
|
+
class: "mwnf-dxa-theme-page__quote",
|
|
305
|
+
innerHTML: Ut.value
|
|
306
|
+
}, null, 8, Xe)], 64)) : r("", !0),
|
|
307
|
+
Wt.value ? (d(), i(e, { key: 1 }, [c[12] ||= a("br", null, null, -1), a("div", {
|
|
308
|
+
class: "mwnf-dxa-theme-page__presentation",
|
|
309
|
+
innerHTML: Wt.value
|
|
310
|
+
}, null, 8, Ze)], 64)) : r("", !0),
|
|
311
|
+
c[14] ||= a("br", null, null, -1),
|
|
312
|
+
Gt.value ? (d(), i("div", {
|
|
313
|
+
key: 2,
|
|
314
|
+
class: "mwnf-dxa-theme-page__justification",
|
|
315
|
+
innerHTML: Gt.value
|
|
316
|
+
}, null, 8, Qe)) : r("", !0),
|
|
317
|
+
Kt.value.length ? (d(), i("div", $e, [
|
|
318
|
+
a("div", et, m(h(E)("exhibition.related.items")), 1),
|
|
319
|
+
H.value?.text ? (d(), i("div", {
|
|
320
|
+
key: 0,
|
|
321
|
+
class: "mwnf-dxa-theme-page__justification",
|
|
322
|
+
innerHTML: h(b)(H.value.text)
|
|
323
|
+
}, null, 8, tt)) : r("", !0),
|
|
324
|
+
a("div", nt, [a("div", rt, [a("img", {
|
|
325
|
+
src: V.value.image,
|
|
326
|
+
alt: V.value.imageAlt,
|
|
327
|
+
onClick: c[6] ||= (e) => z.value = null
|
|
328
|
+
}, null, 8, it)]), (d(!0), i(e, null, p(Kt.value, (e, t) => (d(), i("div", {
|
|
329
|
+
key: e.picture.id,
|
|
330
|
+
class: l(["mwnf-dxa-theme-page__related-image", { "mwnf-dxa-theme-page__thumb--selected": t === z.value }])
|
|
331
|
+
}, [a("img", {
|
|
332
|
+
src: e.picture.image,
|
|
333
|
+
alt: e.picture.imageAlt,
|
|
334
|
+
onClick: (e) => z.value = t
|
|
335
|
+
}, null, 8, at)], 2))), 128))])
|
|
336
|
+
])) : r("", !0),
|
|
337
|
+
X.value ? (d(), i("div", ot, [
|
|
338
|
+
a("div", st, m(h(E)("exhibition.related.items")), 1),
|
|
339
|
+
a("div", ct, [X.value.reciprocalText ? (d(), i("span", {
|
|
340
|
+
key: 0,
|
|
341
|
+
innerHTML: h(b)(X.value.reciprocalText)
|
|
342
|
+
}, null, 8, lt)) : (d(), i("span", ut, m(h(E)("exhibition.related.reciprocal")), 1))]),
|
|
343
|
+
a("div", dt, [a("img", {
|
|
344
|
+
src: X.value.picture.image,
|
|
345
|
+
alt: X.value.picture.imageAlt,
|
|
346
|
+
onClick: qt
|
|
347
|
+
}, null, 8, ft)])
|
|
348
|
+
])) : r("", !0),
|
|
349
|
+
a("div", pt, [Jt.value ? (d(), n(h(v), {
|
|
350
|
+
key: 0,
|
|
351
|
+
to: Jt.value,
|
|
352
|
+
class: "mwnf-dxa-theme-page__tour-link mwnf-dxa-theme-page__tour-link--previous"
|
|
353
|
+
}, {
|
|
354
|
+
default: _(() => [o("← " + m(h(E)("core.pagination.previous")), 1)]),
|
|
355
|
+
_: 1
|
|
356
|
+
}, 8, ["to"])) : r("", !0), Yt.value ? (d(), n(h(v), {
|
|
357
|
+
key: 1,
|
|
358
|
+
to: Yt.value,
|
|
359
|
+
class: "mwnf-dxa-theme-page__tour-link mwnf-dxa-theme-page__tour-link--next"
|
|
360
|
+
}, {
|
|
361
|
+
default: _(() => [o(m(h(E)("core.pagination.next")) + " →", 1)]),
|
|
362
|
+
_: 1
|
|
363
|
+
}, 8, ["to"])) : r("", !0)]),
|
|
364
|
+
Xt.value.length ? (d(), i("div", mt, [a("div", ht, [
|
|
365
|
+
a("div", gt, m(h(E)("exhibition.theme.inThisTheme")), 1),
|
|
366
|
+
a("div", null, [s(h(v), {
|
|
367
|
+
to: Zt.value,
|
|
368
|
+
class: l({ "mwnf-dxa-theme-page__link--current": A.value === null })
|
|
369
|
+
}, {
|
|
370
|
+
default: _(() => [o(m(h(E)("exhibition.theme.overview")), 1)]),
|
|
371
|
+
_: 1
|
|
372
|
+
}, 8, ["to", "class"])]),
|
|
373
|
+
(d(!0), i(e, null, p(Xt.value, (e) => (d(), i("div", { key: e.index }, [s(h(v), {
|
|
374
|
+
to: e.to,
|
|
375
|
+
class: l({ "mwnf-dxa-theme-page__link--current": A.value === e.index })
|
|
376
|
+
}, {
|
|
377
|
+
default: _(() => [o(m(e.index) + ". " + m(e.title), 1)]),
|
|
378
|
+
_: 2
|
|
379
|
+
}, 1032, ["to", "class"])]))), 128))
|
|
380
|
+
])])) : r("", !0),
|
|
381
|
+
$.value.length ? (d(), i("div", _t, [a("div", vt, m(en.value), 1), (d(!0), i(e, null, p([...Qt.value, ...$t.value], (e) => (d(), i("div", {
|
|
382
|
+
key: e.url,
|
|
383
|
+
class: "mwnf-dxa-theme-page__media-entry"
|
|
384
|
+
}, [a("a", {
|
|
385
|
+
href: e.url,
|
|
386
|
+
target: "_blank",
|
|
387
|
+
rel: "noopener"
|
|
388
|
+
}, [c[13] ||= a("span", {
|
|
389
|
+
class: "mwnf-dxa-theme-page__media-icon",
|
|
390
|
+
"aria-hidden": "true"
|
|
391
|
+
}, "↗", -1), o(" " + m(e.title), 1)], 8, yt), e.description ? (d(), i("p", {
|
|
392
|
+
key: 0,
|
|
393
|
+
innerHTML: h(b)(e.description)
|
|
394
|
+
}, null, 8, bt)) : r("", !0)]))), 128))])) : r("", !0)
|
|
395
|
+
])]),
|
|
396
|
+
s(ue, {
|
|
397
|
+
term: h(Y),
|
|
398
|
+
html: Ht.value,
|
|
399
|
+
onClose: h(Vt)
|
|
400
|
+
}, null, 8, [
|
|
401
|
+
"term",
|
|
402
|
+
"html",
|
|
403
|
+
"onClose"
|
|
404
|
+
])
|
|
405
|
+
], 2)) : (d(), i("div", xt, m(h(E)("exhibition.theme.notInExhibition")), 1));
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
export { w as n, C as r, be as t };
|
package/dist/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as SiteShell } from "./SiteShell-
|
|
1
|
+
export { t as SiteShell } from "./SiteShell-D0u1FGMu.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./FeaturedRecord-Fe19w6_G.js";
|
|
2
2
|
import { n as e, o as t } from "./PartnerMap-DdyMLtgH.js";
|
|
3
3
|
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { md as p, mdInline as m } from "@museumwnf/viewer-core";
|
|
5
|
+
import { useI18n as h } from "@museumwnf/viewer-core/i18n";
|
|
6
6
|
// src/content/SpecialFeatures.vue
|
|
7
7
|
var g = ["innerHTML"], _ = ["innerHTML"], v = ["innerHTML"], y = {
|
|
8
8
|
__name: "SpecialFeatures",
|
|
@@ -34,14 +34,14 @@ var g = ["innerHTML"], _ = ["innerHTML"], v = ["innerHTML"], y = {
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
setup(y) {
|
|
37
|
-
let b = y, { t: x } =
|
|
37
|
+
let b = y, { t: x } = h(), S = r(() => [...b.features].sort((e, t) => (e.display_order ?? 1e400) - (t.display_order ?? 1e400)).map((e) => {
|
|
38
38
|
let t = b.tr(e) ?? {};
|
|
39
39
|
return {
|
|
40
40
|
id: e.id,
|
|
41
|
-
name:
|
|
41
|
+
name: m(t.name ?? e.internal_name ?? e.id),
|
|
42
42
|
meta: [t.location, t.dates].filter(Boolean),
|
|
43
|
-
artist:
|
|
44
|
-
description:
|
|
43
|
+
artist: m(t.artist ?? ""),
|
|
44
|
+
description: p(t.description, { glossary: b.glossary }),
|
|
45
45
|
images: (e.images ?? []).slice(0, b.pictureLimit > 0 ? b.pictureLimit : void 0).map((e) => ({
|
|
46
46
|
url: e.url,
|
|
47
47
|
alt: e.captions?.[b.language] ?? ""
|
package/dist/content.js
CHANGED
|
@@ -3,5 +3,5 @@ import { a as n, c as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as
|
|
|
3
3
|
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "./TimelineEventList-CIkKxyQu.js";
|
|
4
4
|
import { t as v } from "./GlossaryPopover-DbQKXhx9.js";
|
|
5
5
|
import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-BH3Bqope.js";
|
|
6
|
-
import { t as E } from "./content-
|
|
6
|
+
import { t as E } from "./content-B1458eb-.js";
|
|
7
7
|
export { w as BackLink, b as DynastyList, y as DynastyPopout, f as FacetSelect, t as FeaturedRecord, p as FilterPanel, v as GlossaryPopover, S as GlossaryTool, o as MediaGallery, T as OnDisplayIn, h as Pagination, u as PartnerMap, m as PartnerPanel, n as RecordCredits, a as RecordGrid, r as RecordLanguages, d as RecordList, l as RecordSheet, x as RelatedMedia, c as RelatedRecords, g as ResultsSummary, e as SectionCards, s as SheetSection, i as SourceCredit, E as SpecialFeatures, _ as TimelineEventList, C as TimelineLookup };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { computed as e } from "vue";
|
|
2
|
+
import { partnerView as t, renderInline as n, useSiteConfig as r } from "@museumwnf/viewer-core";
|
|
3
|
+
import { n as i } from "./chrome-Bv_mLlHM.js";
|
|
4
|
+
import { t as ee } from "./legacyFacets-CQw2NYL4.js";
|
|
5
5
|
import { useExhibitionCollection as a, useExhibitionData as o, useExhibitionItemDetail as s, useExhibitionPartner as c, useExhibitionThemes as l, useExhibitionTimeline as te } from "@museumwnf/viewer-core/dxa";
|
|
6
6
|
// src/dxa/exhibition/data.js
|
|
7
7
|
var u = o(), d = a(u), f = te(u, d), p = c(u), m = l(u), { itemDetail: h } = s(u, f), { defaultLang: g, tr: _, md: v, mdInline: y, mdStrip: ne, labelOf: b, loadEnglish: x, exhibition: S, relatedContent: C, items: w, itemById: T, countries: E, timelines: re, visiblePartners: D, visiblePartnerById: O, isHiddenPartner: k, itemRoute: A, partnerRoute: j, partnerObjectsRoute: M, countryLabelFromCode: N, exhibitionTitle: P, exhibitionSubtitle: F, exhibitionHeadline: I, bannerCaption: L, projectName: ie } = u;
|
|
8
|
-
function R(
|
|
9
|
-
return
|
|
8
|
+
function R(e, t = "hi_res") {
|
|
9
|
+
return i(r().chrome, e) ?? u.chromeImage(e, t);
|
|
10
10
|
}
|
|
11
|
-
var { haystack: z, tile: ae, countryIdForCode: oe } = d, B =
|
|
11
|
+
var { haystack: z, tile: ae, countryIdForCode: oe } = d, B = ee(d.FACETS), V = {
|
|
12
12
|
...d.collectionResults,
|
|
13
13
|
facets: B
|
|
14
14
|
}, H = (e, t) => String(e ?? "").localeCompare(String(t ?? ""), "en", { sensitivity: "base" });
|
|
@@ -31,13 +31,13 @@ var G = {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
function K(e) {
|
|
34
|
-
let t = _("items", e.id, g),
|
|
34
|
+
let t = _("items", e.id, g), r = e.type === "monument" ? "" : t.dates ?? "";
|
|
35
35
|
return {
|
|
36
36
|
id: e.id,
|
|
37
37
|
image: e.images?.[0]?.url ?? "",
|
|
38
38
|
imageAlt: b("items", e.id),
|
|
39
|
-
name:
|
|
40
|
-
date:
|
|
39
|
+
name: n(t.name ?? e.internal_name ?? ""),
|
|
40
|
+
date: r.length > 80 ? `${r.slice(0, 80)}...` : r,
|
|
41
41
|
partner: b("partners", e.partner_id),
|
|
42
42
|
place: [t.location, b("countries", e.country_id)].filter(Boolean).join(", "),
|
|
43
43
|
project: ie(e, g) ?? "",
|
|
@@ -51,7 +51,7 @@ var { hasTimeline: q, timelineSpec: J, timelineGallerySpec: Y } = f, { partnerLi
|
|
|
51
51
|
route: j,
|
|
52
52
|
objectsRoute: M,
|
|
53
53
|
hidden: k
|
|
54
|
-
}, ce =
|
|
54
|
+
}, ce = e(() => {
|
|
55
55
|
let e = /* @__PURE__ */ new Map();
|
|
56
56
|
for (let t of w.value ?? []) t.partner_id && (e.has(t.partner_id) || e.set(t.partner_id, /* @__PURE__ */ new Set()), e.get(t.partner_id).add(t.type));
|
|
57
57
|
return e;
|
|
@@ -74,9 +74,9 @@ var ue = {
|
|
|
74
74
|
sourceCredit: !1
|
|
75
75
|
},
|
|
76
76
|
visible: (e) => !!O(e),
|
|
77
|
-
view: (e,
|
|
77
|
+
view: (e, n) => t(e, {
|
|
78
78
|
..._("partners", e.id, g),
|
|
79
|
-
...
|
|
79
|
+
...n
|
|
80
80
|
}, se),
|
|
81
81
|
labels: {
|
|
82
82
|
partner: {
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { partnerView as e, useSiteConfig as t } from "@museumwnf/viewer-core";
|
|
2
|
+
import { n } from "./chrome-Bv_mLlHM.js";
|
|
3
|
+
import { t as r } from "./legacyFacets-CQw2NYL4.js";
|
|
4
4
|
import { FACET_CATEGORIES as i, GALLERY_ERA_WORDS as a, useGalleryCollection as o, useGalleryData as s, useGalleryItemDetail as c, useGalleryPartner as l, useGalleryTimeline as u } from "@museumwnf/viewer-core/dxa";
|
|
5
5
|
// src/dxa/gallery/data.js
|
|
6
6
|
var d = s(), f = o(d), p = u(d, f), m = l(d, f), { itemDetail: h } = c(d, p), { manifest: g, defaultLang: _, tr: v, md: y, mdInline: b, loadEnglish: x, labelOf: S, gallery: C, items: w, itemById: T, partners: E, countries: ee, timelines: D, partnerById: O, itemRoute: te, partnerRoute: k, partnerObjectsRoute: A, itemFromUidPath: j, partnerFromKey: M, pickSiblings: N, siblingUrl: P } = d, F = (e) => e?.en ?? "";
|
|
7
7
|
function I(e) {
|
|
8
|
-
|
|
9
|
-
return e(t?.name) || e(g.site?.names) || e(C.value?.names);
|
|
8
|
+
return e(g.projects?.[g.gallery?.project_id ?? C.value?.project_id]?.name) || e(g.site?.names) || e(C.value?.names);
|
|
10
9
|
}
|
|
11
|
-
function L(
|
|
12
|
-
return
|
|
10
|
+
function L(e, r = "hi_res") {
|
|
11
|
+
return n(t().chrome, e) ?? d.chromeImage(e, r);
|
|
13
12
|
}
|
|
14
|
-
var { haystack: R, tile: z, legacyOrder: B, countryIdForCode: V } = f, H =
|
|
13
|
+
var { haystack: R, tile: z, legacyOrder: B, countryIdForCode: V } = f, H = r(f.FACETS), U = {
|
|
15
14
|
...f.collectionResults,
|
|
16
15
|
facets: H
|
|
17
16
|
}, W = {
|
|
@@ -27,13 +26,13 @@ var { haystack: R, tile: z, legacyOrder: B, countryIdForCode: V } = f, H = t(f.F
|
|
|
27
26
|
route: k,
|
|
28
27
|
objectsRoute: A
|
|
29
28
|
};
|
|
30
|
-
function Q(
|
|
31
|
-
let
|
|
32
|
-
for (let e =
|
|
33
|
-
let
|
|
34
|
-
[
|
|
29
|
+
function Q(t) {
|
|
30
|
+
let n = [...E.value ?? []];
|
|
31
|
+
for (let e = n.length - 1; e > 0; e--) {
|
|
32
|
+
let t = Math.floor(Math.random() * (e + 1));
|
|
33
|
+
[n[e], n[t]] = [n[t], n[e]];
|
|
35
34
|
}
|
|
36
|
-
return
|
|
35
|
+
return n.slice(0, t).map((t) => e(t, v("partners", t.id, _), Z));
|
|
37
36
|
}
|
|
38
37
|
var $ = {
|
|
39
38
|
spec: {
|
|
@@ -42,9 +41,9 @@ var $ = {
|
|
|
42
41
|
sourceCredit: !1
|
|
43
42
|
},
|
|
44
43
|
visible: () => !0,
|
|
45
|
-
view: (
|
|
46
|
-
...v("partners",
|
|
47
|
-
...
|
|
44
|
+
view: (t, n) => e(t, {
|
|
45
|
+
...v("partners", t.id, _),
|
|
46
|
+
...n
|
|
48
47
|
}, Z),
|
|
49
48
|
labels: { partner: {
|
|
50
49
|
objects: "gallery.partner.viewObjects",
|