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