@museumwnf/viewer-layout 3.12.0 → 3.13.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 +58 -1
- package/dist/minisite.js +1460 -288
- package/dist/viewer-layout.css +1 -1
- package/package.json +1 -1
package/dist/minisite.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { r as e } from "./chrome-DNsZQXrL.js";
|
|
2
2
|
import { t } from "./GlossaryPopover-B7E6BsjS.js";
|
|
3
3
|
import { Fragment as n, Teleport as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, normalizeClass as d, normalizeStyle as f, openBlock as p, reactive as m, ref as h, renderList as g, renderSlot as _, resolveComponent as v, toDisplayString as y, unref as b, vShow as x, watch as S, withCtx as C, withDirectives as w, withModifiers as T } from "vue";
|
|
4
|
-
import {
|
|
5
|
-
import { useRoute as
|
|
4
|
+
import { NotFoundView as E, glossaryEntries as D, glossaryTermsFor as O, mdInline as k, mdStrip as A, mwnfLinks as j, removeEndingPoint as M, renderBlock as N, useCatalogue as P, useCollectionTree as F, useDataPackage as I, useGlossaryPopup as L, useI18n as R, useSiteConfig as z } from "@museumwnf/viewer-core";
|
|
5
|
+
import { useRoute as B, useRouter as V } from "vue-router";
|
|
6
6
|
//#region src/minisite/tip.js
|
|
7
|
-
var
|
|
7
|
+
var H = m({
|
|
8
8
|
text: "",
|
|
9
9
|
width: 100,
|
|
10
10
|
x: 0,
|
|
11
11
|
y: 0,
|
|
12
12
|
visible: !1
|
|
13
13
|
});
|
|
14
|
-
function
|
|
15
|
-
|
|
14
|
+
function U(e) {
|
|
15
|
+
H.x = e.pageX, H.y = e.pageY;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function W(e, t) {
|
|
18
18
|
e.__tip = t.value;
|
|
19
19
|
}
|
|
20
|
-
var
|
|
20
|
+
var G = {
|
|
21
21
|
mounted(e, t) {
|
|
22
|
-
|
|
22
|
+
W(e, t), e.addEventListener("mouseenter", (t) => {
|
|
23
23
|
let n = e.__tip;
|
|
24
|
-
n?.text && (
|
|
25
|
-
}), e.addEventListener("mousemove",
|
|
26
|
-
|
|
24
|
+
n?.text && (H.text = n.text, H.width = n.width ?? 100, U(t), H.visible = !0);
|
|
25
|
+
}), e.addEventListener("mousemove", U), e.addEventListener("mouseleave", () => {
|
|
26
|
+
H.visible = !1;
|
|
27
27
|
});
|
|
28
28
|
},
|
|
29
|
-
updated:
|
|
29
|
+
updated: W,
|
|
30
30
|
beforeUnmount() {
|
|
31
|
-
|
|
31
|
+
H.visible = !1;
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, ee = {
|
|
34
34
|
key: 1,
|
|
35
35
|
class: "mwnf-minisite"
|
|
36
|
-
}, te = { class: "mwnf-minisite__column" },
|
|
36
|
+
}, te = { class: "mwnf-minisite__column" }, K = { class: "mwnf-minisite-header" }, ne = { class: "mwnf-minisite-header__logo" }, re = ["href"], ie = ["src"], q = { class: "mwnf-minisite-header__nav" }, ae = { class: "mwnf-minisite-header__back" }, oe = ["href"], se = ["value", "aria-label"], ce = ["value"], le = { class: "mwnf-minisite-menu" }, ue = { class: "mwnf-minisite-menu__list" }, de = ["href", "onClick"], fe = ["href"], pe = { class: "mwnf-minisite-footer" }, me = ["href"], he = {
|
|
37
37
|
__name: "Shell",
|
|
38
38
|
props: {
|
|
39
39
|
languages: {
|
|
@@ -75,7 +75,7 @@ var U = {
|
|
|
75
75
|
},
|
|
76
76
|
emits: ["update:language"],
|
|
77
77
|
setup(t, { emit: r }) {
|
|
78
|
-
let a = t, u = r, { t: m } =
|
|
78
|
+
let a = t, u = r, { t: m } = R(), h = z(), v = B(), S = i(() => v.meta?.bare ?? null), C = (t) => e(h.chrome, t), E = i(() => [...a.languages].sort((e, t) => e.label.localeCompare(t.label))), D = (/* @__PURE__ */ new Date()).getFullYear(), O = i(() => {
|
|
79
79
|
let e = C("legacy/bg_fading_left.gif"), t = C("legacy/bg_fading_right.gif");
|
|
80
80
|
return a.language === "en" ? [e, t] : [t, e];
|
|
81
81
|
});
|
|
@@ -86,21 +86,21 @@ var U = {
|
|
|
86
86
|
return (e, r) => (p(), s(n, null, [S.value ? (p(), s("div", {
|
|
87
87
|
key: 0,
|
|
88
88
|
class: d(`mwnf-minisite-window mwnf-minisite-window--${S.value}`)
|
|
89
|
-
}, [_(e.$slots, "default")], 2)) : (p(), s("div",
|
|
89
|
+
}, [_(e.$slots, "default")], 2)) : (p(), s("div", ee, [
|
|
90
90
|
c("div", {
|
|
91
91
|
class: "mwnf-minisite__strip",
|
|
92
92
|
style: f({ backgroundImage: O.value[0] ? `url(${O.value[0]})` : "none" }),
|
|
93
93
|
"aria-hidden": "true"
|
|
94
94
|
}, null, 4),
|
|
95
95
|
c("div", te, [
|
|
96
|
-
c("header",
|
|
96
|
+
c("header", K, [c("div", ne, [w((p(), s("a", { href: t.logoHref }, [c("img", {
|
|
97
97
|
src: C(`legacy/logo_${t.language}.gif`),
|
|
98
98
|
alt: "",
|
|
99
99
|
height: "60"
|
|
100
|
-
}, null, 8,
|
|
100
|
+
}, null, 8, ie)], 8, re)), [[b(G), { text: b(m)(t.logoTip) }]])]), c("div", q, [c("div", ae, [(p(!0), s(n, null, g(t.headerLinks, (e, t) => (p(), s(n, { key: e.label }, [t > 0 ? (p(), s(n, { key: 0 }, [l("\xA0|\xA0")], 64)) : o("", !0), w((p(), s("a", {
|
|
101
101
|
class: "mwnf-minisite-header__link",
|
|
102
102
|
href: e.href
|
|
103
|
-
}, [l(y(b(m)(e.label)), 1)], 8,
|
|
103
|
+
}, [l(y(b(m)(e.label)), 1)], 8, oe)), [[b(G), { text: e.tip ? b(m)(e.tip) : "" }]])], 64))), 128))]), c("div", null, [c("select", {
|
|
104
104
|
class: "mwnf-minisite-header__select",
|
|
105
105
|
value: t.language,
|
|
106
106
|
"aria-label": b(m)("layout.language.label"),
|
|
@@ -108,18 +108,18 @@ var U = {
|
|
|
108
108
|
}, [(p(!0), s(n, null, g(E.value, (e) => (p(), s("option", {
|
|
109
109
|
key: e.code,
|
|
110
110
|
value: e.code
|
|
111
|
-
}, y(e.label), 9,
|
|
111
|
+
}, y(e.label), 9, ce))), 128))], 40, se)])])]),
|
|
112
112
|
c("main", null, [_(e.$slots, "default")]),
|
|
113
|
-
c("nav",
|
|
113
|
+
c("nav", le, [c("ul", ue, [(p(!0), s(n, null, g(t.menu, (e, r) => (p(), s(n, { key: e.label }, [r > 0 && t.menuSeparator ? (p(), s(n, { key: 0 }, [l("|")], 64)) : o("", !0), c("li", null, [e.window ? (p(), s("a", {
|
|
114
114
|
key: 0,
|
|
115
115
|
href: e.href,
|
|
116
116
|
onClick: T((t) => k(e), ["prevent"])
|
|
117
|
-
}, y(b(m)(e.label)), 9,
|
|
117
|
+
}, y(b(m)(e.label)), 9, de)) : (p(), s("a", {
|
|
118
118
|
key: 1,
|
|
119
119
|
href: e.href
|
|
120
|
-
}, y(b(m)(e.label)), 9,
|
|
120
|
+
}, y(b(m)(e.label)), 9, fe))])], 64))), 128))])]),
|
|
121
121
|
r[2] ||= c("div", { class: "mwnf-minisite-menu__line" }, null, -1),
|
|
122
|
-
c("footer",
|
|
122
|
+
c("footer", pe, [(p(!0), s(n, null, g(t.footerLinks, (e) => (p(), s(n, { key: e.label }, [c("a", { href: e.href }, y(b(m)(e.label)), 9, me), r[1] ||= l("\xA0|\xA0 ", -1)], 64))), 128)), l(y(b(m)(t.copyright)) + " " + y(b(D)), 1)])
|
|
123
123
|
]),
|
|
124
124
|
c("div", {
|
|
125
125
|
class: "mwnf-minisite__strip",
|
|
@@ -129,27 +129,27 @@ var U = {
|
|
|
129
129
|
])), w(c("div", {
|
|
130
130
|
class: "mwnf-minisite-tip",
|
|
131
131
|
style: f({
|
|
132
|
-
left: `${b(
|
|
133
|
-
top: `${b(
|
|
134
|
-
width: `${b(
|
|
132
|
+
left: `${b(H).x + 12}px`,
|
|
133
|
+
top: `${b(H).y + 16}px`,
|
|
134
|
+
width: `${b(H).width}px`
|
|
135
135
|
}),
|
|
136
136
|
role: "tooltip"
|
|
137
|
-
}, y(b(
|
|
137
|
+
}, y(b(H).text), 5), [[x, b(H).visible]])], 64));
|
|
138
138
|
}
|
|
139
|
-
},
|
|
139
|
+
}, ge = [
|
|
140
140
|
[/[‘’]/g, "'"],
|
|
141
141
|
[/[“”]/g, "\""],
|
|
142
142
|
[/…/g, "..."],
|
|
143
143
|
[/•/g, "*"]
|
|
144
144
|
];
|
|
145
145
|
function J(e) {
|
|
146
|
-
return
|
|
146
|
+
return ge.reduce((e, [t, n]) => e.replace(t, n), String(e ?? ""));
|
|
147
147
|
}
|
|
148
|
-
var
|
|
148
|
+
var _e = /^(Theme|Page) \d+$/, ve = {
|
|
149
149
|
partners: ["325b7505-1527-5442-99ea-6a40f8c43d3f"],
|
|
150
150
|
monuments: (/* @__PURE__ */ "01.02.03.04.05.06.07.08.09.10.11.14.18.19.20.21.24.25.26.27.28.29.30.31.32.33.34.35".split(".")).map((e) => `PA ${e}`)
|
|
151
151
|
};
|
|
152
|
-
function
|
|
152
|
+
function ye(e, t) {
|
|
153
153
|
return e.flatMap((e, n) => t(e.id).map((t, r) => ({
|
|
154
154
|
theme: n + 1,
|
|
155
155
|
page: r + 1,
|
|
@@ -157,7 +157,7 @@ function ve(e, t) {
|
|
|
157
157
|
themeNode: e
|
|
158
158
|
})));
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function be(e, t, n) {
|
|
161
161
|
let r = e.findIndex((e) => e.theme === t && e.page === n);
|
|
162
162
|
if (r < 0) return null;
|
|
163
163
|
let i = (e) => ({
|
|
@@ -173,7 +173,7 @@ function ye(e, t, n) {
|
|
|
173
173
|
next: r < e.length - 1 ? i(e[r + 1]) : null
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function xe(e) {
|
|
177
177
|
let t = /* @__PURE__ */ new Map();
|
|
178
178
|
for (let n of e?.items ?? []) {
|
|
179
179
|
let e = n.display_order ?? 0;
|
|
@@ -182,38 +182,38 @@ function be(e) {
|
|
|
182
182
|
let n = (t) => (e?.images ?? []).find((e) => e.display_order === t)?.url ?? null;
|
|
183
183
|
return [...t.entries()].sort(([e], [t]) => e - t).map(([e, t]) => ({
|
|
184
184
|
n: e,
|
|
185
|
-
variants: [...t].sort((e, t) => (e.variant_order ?? 0) - (t.variant_order ?? 0)).flatMap((t) => t.details?.length ? t.details.map((
|
|
185
|
+
variants: [...t].sort((e, t) => (e.variant_order ?? 0) - (t.variant_order ?? 0)).flatMap((t) => t.details?.length ? t.details.map((r) => ({
|
|
186
186
|
entry: t,
|
|
187
|
-
view:
|
|
188
|
-
image:
|
|
187
|
+
view: r,
|
|
188
|
+
image: r.image_url ?? n(e)
|
|
189
189
|
})) : [{
|
|
190
190
|
entry: t,
|
|
191
191
|
image: t.image_url ?? n(e)
|
|
192
192
|
}])
|
|
193
193
|
}));
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Se(e, t, n) {
|
|
196
196
|
return !e || e.type === "object" && n?.partners?.includes(e.partner_id) || e.type === "monument" && n?.monuments?.includes(e.mwnf_reference) ? "" : t(e);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Ce(e, t, n, r) {
|
|
199
199
|
return [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
200
|
+
M(t.location ?? ""),
|
|
201
|
+
M(t.province ?? ""),
|
|
202
|
+
Se(e, n, r)
|
|
203
203
|
].filter(Boolean).join(", ");
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
return n.location ? [n.location, e ? r(e) : ""].filter(Boolean).join(", ") :
|
|
205
|
+
function we({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i }) {
|
|
206
|
+
return n.location ? [n.location, e ? r(e) : ""].filter(Boolean).join(", ") : Ce(e, t, r, i);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Te(e, t, n) {
|
|
209
209
|
let r = e?.type === "object" ? t.artist : t.architects, i = [].concat(t.materials ?? []).filter(Boolean).join(", ");
|
|
210
210
|
return {
|
|
211
|
-
artist: J(n.artist ||
|
|
212
|
-
material: J(n.material ||
|
|
211
|
+
artist: J(n.artist || M(r ?? "")),
|
|
212
|
+
material: J(n.material || M(i))
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
let o = e?.type === "object" ? n.museum ||
|
|
215
|
+
function Ee({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i, family: a }) {
|
|
216
|
+
let o = e?.type === "object" ? n.museum || M(t.holder ?? "") : "", s = we({
|
|
217
217
|
item: e,
|
|
218
218
|
own: t,
|
|
219
219
|
caption: n,
|
|
@@ -221,18 +221,18 @@ function Te({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i, fa
|
|
|
221
221
|
noCountry: i
|
|
222
222
|
});
|
|
223
223
|
return {
|
|
224
|
-
name: J(n.name ?
|
|
224
|
+
name: J(n.name ? M(n.name) : M(t.name ?? "")),
|
|
225
225
|
detailName: J(n.detail_name),
|
|
226
|
-
dateLines: [n.date ||
|
|
226
|
+
dateLines: [n.date || M(t.dates ?? ""), n.dynasty || M(t.dynasty ?? "")].filter(Boolean).map(J),
|
|
227
227
|
details: [o, s].filter(Boolean).map(J),
|
|
228
|
-
...a === "BAR" ?
|
|
228
|
+
...a === "BAR" ? Te(e, t, n) : {},
|
|
229
229
|
justification: J(n.justification)
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function De({ caption: e = {}, first: t = {}, record: n = {}, placement: r }) {
|
|
233
233
|
let i = (n, r = "") => e[n] || t[n] || r || "";
|
|
234
234
|
return {
|
|
235
|
-
name:
|
|
235
|
+
name: M(i("name", n.name)),
|
|
236
236
|
detailName: e.detail_name ?? "",
|
|
237
237
|
dateLines: [
|
|
238
238
|
i("dynasty"),
|
|
@@ -240,13 +240,13 @@ function Ee({ caption: e = {}, first: t = {}, record: n = {}, placement: r }) {
|
|
|
240
240
|
i("museum"),
|
|
241
241
|
i("location", n.location)
|
|
242
242
|
].filter(Boolean),
|
|
243
|
-
details: r ? [
|
|
243
|
+
details: r ? [we(r)].filter(Boolean).map(J) : [],
|
|
244
244
|
artist: i("artist", n.artist),
|
|
245
245
|
material: i("material"),
|
|
246
246
|
justification: e.justification || t.justification || ""
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Oe(e, t, n = "ISL") {
|
|
250
250
|
return {
|
|
251
251
|
name: e.name || t.name,
|
|
252
252
|
detailName: n === "BAR" ? e.detailName : e.detailName || t.detailName,
|
|
@@ -257,27 +257,27 @@ function De(e, t, n = "ISL") {
|
|
|
257
257
|
justification: e.justification || t.justification
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function ke(e, t, n) {
|
|
261
261
|
let r = (e) => {
|
|
262
262
|
let t = e ? n(e.entry.id) : null;
|
|
263
263
|
return t && t.type !== "picture" ? t.id : null;
|
|
264
264
|
};
|
|
265
265
|
return r(e?.variants[t]) ?? r(e?.variants[0]) ?? null;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Ae(e, t) {
|
|
268
268
|
return e?.variants[t]?.image || e?.variants[0]?.image || null;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
let a = (e, t) => e ? J(
|
|
270
|
+
function je({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i }) {
|
|
271
|
+
let a = (e, t) => e ? J(M(e)) : t;
|
|
272
272
|
return [
|
|
273
|
-
a(n.name,
|
|
274
|
-
a(n.date,
|
|
275
|
-
a(n.dynasty, J(
|
|
276
|
-
e?.type === "object" ? a(n.museum,
|
|
277
|
-
a(n.location,
|
|
273
|
+
a(n.name, M(t.name ?? "")),
|
|
274
|
+
a(n.date, M(t.dates ?? "")),
|
|
275
|
+
a(n.dynasty, J(M(t.dynasty ?? ""))),
|
|
276
|
+
e?.type === "object" ? a(n.museum, M(t.holder ?? "")) : "",
|
|
277
|
+
a(n.location, Ce(e, t, r, i))
|
|
278
278
|
];
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Me(e, { partnerName: t, partnerCountry: n, countryName: r }) {
|
|
281
281
|
let i = (e) => e ? r(e) : "";
|
|
282
282
|
return e.partner ? e.place ? [
|
|
283
283
|
t(e.partner),
|
|
@@ -285,66 +285,67 @@ function je(e, { partnerName: t, partnerCountry: n, countryName: r }) {
|
|
|
285
285
|
i(e.country)
|
|
286
286
|
].filter(Boolean).join(", ") : [t(e.partner), i(n(e.partner))].filter(Boolean).join(", ") : [e.name, i(e.country)].filter(Boolean).join(", ");
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Ne(e, t) {
|
|
289
289
|
return "href" in e ? e.href : t?.(e.partner);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Pe(e) {
|
|
292
292
|
return /(^|[^*])\*[^*\s][^*]*\*/.test(e ?? "") || /\b_[^_]+_\b/.test(e ?? "");
|
|
293
293
|
}
|
|
294
294
|
//#endregion
|
|
295
295
|
//#region src/minisite/exhibition.js
|
|
296
296
|
var Y = {
|
|
297
297
|
ISL: "minisite",
|
|
298
|
-
BAR: "minisiteBaroque"
|
|
298
|
+
BAR: "minisiteBaroque",
|
|
299
|
+
SH: "minisiteSharingHistory"
|
|
299
300
|
};
|
|
300
|
-
function
|
|
301
|
+
function Fe(e) {
|
|
301
302
|
return e?.family ?? "ISL";
|
|
302
303
|
}
|
|
303
|
-
function
|
|
304
|
-
return e?.texts ?? Y[
|
|
304
|
+
function Ie(e) {
|
|
305
|
+
return e?.texts ?? Y[Fe(e)] ?? Y.ISL;
|
|
305
306
|
}
|
|
306
|
-
var
|
|
307
|
+
var Le = [
|
|
307
308
|
"collections",
|
|
308
309
|
"items",
|
|
309
310
|
"countries",
|
|
310
311
|
"partners",
|
|
311
312
|
"glossary"
|
|
312
|
-
],
|
|
313
|
-
function
|
|
314
|
-
if (!
|
|
315
|
-
let e =
|
|
316
|
-
|
|
313
|
+
], Re = null;
|
|
314
|
+
function ze() {
|
|
315
|
+
if (!Re) {
|
|
316
|
+
let e = I();
|
|
317
|
+
Re = {
|
|
317
318
|
pkg: e,
|
|
318
|
-
data:
|
|
319
|
-
eager:
|
|
319
|
+
data: P({
|
|
320
|
+
eager: Le,
|
|
320
321
|
glossary: !1
|
|
321
322
|
}),
|
|
322
|
-
tree:
|
|
323
|
+
tree: F({
|
|
323
324
|
rootId: e.manifest.site?.root_collection_id,
|
|
324
325
|
entity: "collections"
|
|
325
326
|
})
|
|
326
327
|
};
|
|
327
328
|
}
|
|
328
|
-
return
|
|
329
|
+
return Re;
|
|
329
330
|
}
|
|
330
|
-
var
|
|
331
|
+
var Be = [
|
|
331
332
|
"collections",
|
|
332
333
|
"items",
|
|
333
334
|
"countries",
|
|
334
335
|
"glossary"
|
|
335
336
|
];
|
|
336
337
|
function X() {
|
|
337
|
-
let { pkg: t, data: n, tree: r } =
|
|
338
|
-
S(p, (e) => Promise.all(
|
|
339
|
-
let m = r.root, h = i(() => m.value ? r.children(m.value.id) : []), g = i(() =>
|
|
338
|
+
let { pkg: t, data: n, tree: r } = ze(), { locale: a, t: o } = R(), s = z(), c = s.minisite ?? {}, l = Fe(c), u = Ie(c), d = (e) => o(`${u}.${e}`), f = V(), p = i(() => a.value);
|
|
339
|
+
S(p, (e) => Promise.all(Le.flatMap((n) => [t.loadTranslations(n, e), t.loadTranslations(n, "en")])), { immediate: !0 });
|
|
340
|
+
let m = r.root, h = i(() => m.value ? r.children(m.value.id) : []), g = i(() => ye(h.value, r.children));
|
|
340
341
|
function _(e) {
|
|
341
342
|
let n = t.translations("collections", p.value)[e] ?? {};
|
|
342
|
-
return
|
|
343
|
+
return _e.test(n.title ?? "") ? {
|
|
343
344
|
...n,
|
|
344
345
|
title: ""
|
|
345
346
|
} : n;
|
|
346
347
|
}
|
|
347
|
-
let v = (e) => e?.country_id ?
|
|
348
|
+
let v = (e) => e?.country_id ? M(n.tr("countries", e.country_id, p.value).name ?? "") : "";
|
|
348
349
|
function y(e) {
|
|
349
350
|
return {
|
|
350
351
|
item: n.itemById.value.get(e.id),
|
|
@@ -357,20 +358,20 @@ function X() {
|
|
|
357
358
|
}
|
|
358
359
|
function b(e, t) {
|
|
359
360
|
let r = (t) => {
|
|
360
|
-
if (!t.view) return
|
|
361
|
+
if (!t.view) return Ee(y(t.entry));
|
|
361
362
|
let r = e.variants[0];
|
|
362
|
-
return
|
|
363
|
+
return De({
|
|
363
364
|
caption: t.view.caption?.[p.value] ?? {},
|
|
364
365
|
first: r.view ? r.view.caption?.[p.value] ?? {} : {},
|
|
365
366
|
record: t.view.id ? n.tr("items", t.view.id, p.value) : {},
|
|
366
367
|
placement: y(t.entry)
|
|
367
368
|
});
|
|
368
369
|
}, i = e?.variants[t];
|
|
369
|
-
return i ?
|
|
370
|
+
return i ? Oe(r(i), r(e.variants[0]), l) : null;
|
|
370
371
|
}
|
|
371
372
|
function x(e) {
|
|
372
373
|
let r = _(e).glossary_ids ?? [];
|
|
373
|
-
return r.length === 0 ? [] :
|
|
374
|
+
return r.length === 0 ? [] : D(O({ glossary_ids: r }, p.value, {
|
|
374
375
|
translations: t.translations,
|
|
375
376
|
byId: n.index("glossary").value
|
|
376
377
|
}));
|
|
@@ -401,78 +402,78 @@ function X() {
|
|
|
401
402
|
picture: C,
|
|
402
403
|
href: w,
|
|
403
404
|
glossaryFor: x,
|
|
404
|
-
pageAt: (e, t) =>
|
|
405
|
-
slots:
|
|
406
|
-
placementCaption: (e) =>
|
|
405
|
+
pageAt: (e, t) => be(g.value, e, t),
|
|
406
|
+
slots: xe,
|
|
407
|
+
placementCaption: (e) => Ee(y(e)),
|
|
407
408
|
viewCaption: b,
|
|
408
|
-
introCaption: (e) =>
|
|
409
|
+
introCaption: (e) => je(y(e)),
|
|
409
410
|
title: i(() => m.value ? _(m.value.id).title ?? "" : "")
|
|
410
411
|
};
|
|
411
412
|
}
|
|
412
|
-
var
|
|
413
|
+
var Ve = {
|
|
413
414
|
credits: ["exhcredits", "scrollbars=auto, resizable=1, width=420, height=530"],
|
|
414
415
|
map: ["exhibition_map", "scrollbars=auto, resize=yes, width=800, height=418"],
|
|
415
416
|
zoom: ["mwnfing", ""],
|
|
416
417
|
introZoom: ["BAR", "scrollbars=no,resize=no,width=565,height=435"]
|
|
417
418
|
};
|
|
418
|
-
function
|
|
419
|
+
function Z(e, [t, n]) {
|
|
419
420
|
window.open(e, t, n)?.focus();
|
|
420
421
|
}
|
|
421
422
|
//#endregion
|
|
422
423
|
//#region src/minisite/Home.vue
|
|
423
|
-
var
|
|
424
|
+
var He = { class: "mwnf-minisite-home" }, Ue = { class: "mwnf-minisite-home__title" }, We = ["innerHTML"], Ge = { class: "mwnf-minisite-home__menu" }, Ke = {
|
|
424
425
|
key: 0,
|
|
425
426
|
class: "mwnf-minisite-home__menu2"
|
|
426
|
-
},
|
|
427
|
+
}, qe = {
|
|
427
428
|
key: 0,
|
|
428
429
|
class: "mwnf-minisite-partners mwnf-minisite-partners--baroque"
|
|
429
|
-
},
|
|
430
|
+
}, Je = { class: "mwnf-minisite-partners__curators" }, Ye = { class: "mwnf-minisite-partners__line" }, Xe = ["innerHTML"], Ze = { class: "mwnf-minisite-partners__cooperation" }, Qe = ["href"], $e = { class: "mwnf-minisite-partners__tab" }, et = ["href"], tt = ["src"], nt = {
|
|
430
431
|
key: 0,
|
|
431
432
|
class: "mwnf-minisite-partners__design"
|
|
432
|
-
},
|
|
433
|
+
}, rt = { class: "mwnf-minisite-partners__design-tab" }, it = { class: "mwnf-minisite-partners__design-tab" }, at = ["href"], ot = ["src"], st = {
|
|
433
434
|
key: 1,
|
|
434
435
|
class: "mwnf-minisite-partners"
|
|
435
|
-
},
|
|
436
|
+
}, ct = { class: "mwnf-minisite-partners__line" }, lt = ["href"], ut = { class: "mwnf-minisite-partners__logos" }, dt = ["href"], ft = ["src"], pt = {
|
|
436
437
|
__name: "Home",
|
|
437
438
|
setup(e) {
|
|
438
|
-
let { label: t, family: d, lang: m, data: h, root: _, themes: x, text: E, title: D, settings: O, picture: k, href: A, glossaryFor: j } = X(), M = i(() => _.value ? h.mdInline(E(_.value.id).description, { glossary: j(_.value.id) }) : ""), N = i(() => (O.menuSecondColumnFrom ?? Infinity) - 1),
|
|
439
|
+
let { label: t, family: d, lang: m, data: h, root: _, themes: x, text: E, title: D, settings: O, picture: k, href: A, glossaryFor: j } = X(), M = i(() => _.value ? h.mdInline(E(_.value.id).description, { glossary: j(_.value.id) }) : ""), N = i(() => (O.menuSecondColumnFrom ?? Infinity) - 1), P = i(() => x.value.slice(0, N.value).map((e, t) => ({
|
|
439
440
|
theme: e,
|
|
440
441
|
number: t + 1
|
|
441
|
-
}))),
|
|
442
|
+
}))), F = i(() => x.value.slice(N.value).map((e, t) => ({
|
|
442
443
|
theme: e,
|
|
443
444
|
number: N.value + t + 1
|
|
444
|
-
}))),
|
|
445
|
+
}))), I = i(() => O.curators ?? []), L = (e) => Me(e, {
|
|
445
446
|
partnerName: (e) => h.tr("partners", e, m.value).name,
|
|
446
447
|
partnerCountry: (e) => h.partnerById.value.get(e)?.country_id,
|
|
447
448
|
countryName: (e) => h.tr("countries", e, m.value).name
|
|
448
|
-
}),
|
|
449
|
+
}), R = (e) => Ne(e, O.partnerHref), z = i(() => _.value ? E(_.value.id).extra?.credits ?? "" : ""), B = i(() => O.design ?? null), V = i(() => d === "BAR" ? k(O.banner) : null), H = i(() => k(m.value === "ar" ? "legacy/home_bg_ar.jpg" : "legacy/home_bg.jpg"));
|
|
449
450
|
return S([D, m], () => {
|
|
450
451
|
document.title = [t("identity.windowTitle"), D.value].filter(Boolean).join(" | ");
|
|
451
452
|
}, { immediate: !0 }), (e, i) => {
|
|
452
453
|
let m = v("router-link");
|
|
453
454
|
return p(), s(n, null, [
|
|
454
|
-
c("div",
|
|
455
|
+
c("div", He, [
|
|
455
456
|
i[4] ||= c("div", { class: "mwnf-minisite-home__bg1" }, null, -1),
|
|
456
457
|
c("div", {
|
|
457
458
|
class: "mwnf-minisite-home__bg2",
|
|
458
|
-
style: f({ backgroundImage:
|
|
459
|
+
style: f({ backgroundImage: H.value ? `url(${H.value})` : "none" })
|
|
459
460
|
}, null, 4),
|
|
460
|
-
c("div",
|
|
461
|
+
c("div", Ue, y(b(D)), 1),
|
|
461
462
|
c("div", {
|
|
462
463
|
class: "mwnf-minisite-home__description",
|
|
463
464
|
innerHTML: M.value
|
|
464
|
-
}, null, 8,
|
|
465
|
-
c("div",
|
|
465
|
+
}, null, 8, We),
|
|
466
|
+
c("div", Ge, [c("div", null, [i[1] ||= l("> ", -1), u(m, { to: { name: "introduction" } }, {
|
|
466
467
|
default: C(() => [l(y(b(t)("home.introduction")), 1)]),
|
|
467
468
|
_: 1
|
|
468
|
-
})]), (p(!0), s(n, null, g(
|
|
469
|
+
})]), (p(!0), s(n, null, g(P.value, ({ theme: e, number: t }) => (p(), s("div", { key: e.id }, [i[2] ||= l(" > ", -1), u(m, { to: {
|
|
469
470
|
name: "exhibition",
|
|
470
471
|
params: { theme: t }
|
|
471
472
|
} }, {
|
|
472
473
|
default: C(() => [l(y(b(E)(e.id).title), 1)]),
|
|
473
474
|
_: 2
|
|
474
475
|
}, 1032, ["to"])]))), 128))]),
|
|
475
|
-
|
|
476
|
+
F.value.length ? (p(), s("div", Ke, [(p(!0), s(n, null, g(F.value, ({ theme: e, number: t }) => (p(), s("div", { key: e.id }, [i[3] ||= l(" > ", -1), u(m, { to: {
|
|
476
477
|
name: "exhibition",
|
|
477
478
|
params: { theme: t }
|
|
478
479
|
} }, {
|
|
@@ -480,129 +481,129 @@ var Be = { class: "mwnf-minisite-home" }, Ve = { class: "mwnf-minisite-home__tit
|
|
|
480
481
|
_: 2
|
|
481
482
|
}, 1032, ["to"])]))), 128))])) : o("", !0)
|
|
482
483
|
]),
|
|
483
|
-
b(d) === "BAR" ? (p(), s("div",
|
|
484
|
-
c("div",
|
|
484
|
+
b(d) === "BAR" ? (p(), s("div", qe, [c("div", Je, [
|
|
485
|
+
c("div", Ye, y(b(t)("home.curatedBy")), 1),
|
|
485
486
|
c("div", {
|
|
486
487
|
class: "mwnf-minisite-partners__tab",
|
|
487
|
-
innerHTML: b(h).mdInline(
|
|
488
|
-
}, null, 8,
|
|
489
|
-
c("div",
|
|
490
|
-
c("div",
|
|
491
|
-
l(y(
|
|
488
|
+
innerHTML: b(h).mdInline(z.value)
|
|
489
|
+
}, null, 8, Xe),
|
|
490
|
+
c("div", Ze, [l(y(b(t)("home.cooperation")) + " ", 1), c("a", { href: b(O).partnerListHref }, y(b(t)("home.partnerInstitutions")), 9, Qe)]),
|
|
491
|
+
c("div", $e, [(p(!0), s(n, null, g(I.value, (e, t) => (p(), s(n, { key: e.logo }, [
|
|
492
|
+
l(y(L(e)), 1),
|
|
492
493
|
i[5] ||= c("br", null, null, -1),
|
|
493
494
|
w((p(), s("a", {
|
|
494
495
|
class: "mwnf-minisite-partners__curator",
|
|
495
|
-
href:
|
|
496
|
+
href: R(e)
|
|
496
497
|
}, [c("img", {
|
|
497
498
|
src: b(k)(e.logo),
|
|
498
499
|
alt: ""
|
|
499
|
-
}, null, 8,
|
|
500
|
-
text:
|
|
500
|
+
}, null, 8, tt)], 8, et)), [[b(G), {
|
|
501
|
+
text: L(e),
|
|
501
502
|
width: 220
|
|
502
503
|
}]]),
|
|
503
|
-
t <
|
|
504
|
+
t < I.value.length - 1 ? (p(), s("span", {
|
|
504
505
|
key: 0,
|
|
505
506
|
class: "mwnf-minisite-partners__gap",
|
|
506
507
|
style: f({ width: `${e.space ?? 0}px` })
|
|
507
508
|
}, null, 4)) : o("", !0)
|
|
508
509
|
], 64))), 128))])
|
|
509
|
-
]),
|
|
510
|
+
]), B.value ? (p(), s("div", nt, [
|
|
510
511
|
l(y(b(t)("home.design")) + " ", 1),
|
|
511
|
-
c("div",
|
|
512
|
-
c("div",
|
|
513
|
-
href:
|
|
512
|
+
c("div", rt, y(B.value.name), 1),
|
|
513
|
+
c("div", it, [c("a", {
|
|
514
|
+
href: B.value.href,
|
|
514
515
|
target: "_blank",
|
|
515
516
|
rel: "noopener"
|
|
516
517
|
}, [c("img", {
|
|
517
|
-
src: b(k)(
|
|
518
|
+
src: b(k)(B.value.logo),
|
|
518
519
|
alt: ""
|
|
519
|
-
}, null, 8,
|
|
520
|
-
])) : o("", !0)])) : (p(), s("div",
|
|
520
|
+
}, null, 8, ot)], 8, at)])
|
|
521
|
+
])) : o("", !0)])) : (p(), s("div", st, [c("div", ct, [c("a", {
|
|
521
522
|
href: b(A)({ name: "credits" }),
|
|
522
|
-
onClick: i[0] ||= T((e) => b(
|
|
523
|
-
}, y(b(t)("home.curatedBy")), 9,
|
|
523
|
+
onClick: i[0] ||= T((e) => b(Z)(b(A)({ name: "credits" }), b(Ve).credits), ["prevent"])
|
|
524
|
+
}, y(b(t)("home.curatedBy")), 9, lt)]), c("div", ut, [(p(!0), s(n, null, g(I.value, (e, t) => (p(), s(n, { key: e.logo }, [w((p(), s("a", {
|
|
524
525
|
class: "mwnf-minisite-partners__curator",
|
|
525
|
-
href:
|
|
526
|
+
href: R(e)
|
|
526
527
|
}, [c("img", {
|
|
527
528
|
src: b(k)(e.logo),
|
|
528
529
|
alt: "",
|
|
529
530
|
height: "74"
|
|
530
|
-
}, null, 8,
|
|
531
|
-
text:
|
|
531
|
+
}, null, 8, ft)], 8, dt)), [[b(G), {
|
|
532
|
+
text: L(e),
|
|
532
533
|
width: 280
|
|
533
|
-
}]]), t <
|
|
534
|
+
}]]), t < I.value.length - 1 ? (p(), s("span", {
|
|
534
535
|
key: 0,
|
|
535
536
|
class: "mwnf-minisite-partners__space",
|
|
536
537
|
style: f({ width: `${e.space ?? 0}px` })
|
|
537
538
|
}, null, 4)) : o("", !0)], 64))), 128))])])),
|
|
538
|
-
|
|
539
|
+
V.value ? (p(), a(r, {
|
|
539
540
|
key: 2,
|
|
540
541
|
defer: "",
|
|
541
542
|
to: ".mwnf-minisite-footer"
|
|
542
543
|
}, [c("div", {
|
|
543
544
|
class: "mwnf-minisite-home__banner",
|
|
544
|
-
style: f({ backgroundImage: `url(${
|
|
545
|
+
style: f({ backgroundImage: `url(${V.value})` }),
|
|
545
546
|
"aria-hidden": "true"
|
|
546
547
|
}, null, 4)])) : o("", !0)
|
|
547
548
|
], 64);
|
|
548
549
|
};
|
|
549
550
|
}
|
|
550
|
-
},
|
|
551
|
+
}, Q = (e) => String(e ?? "").replace(/[&<>"]/g, (e) => ({
|
|
551
552
|
"&": "&",
|
|
552
553
|
"<": "<",
|
|
553
554
|
">": ">",
|
|
554
555
|
"\"": """
|
|
555
556
|
})[e]);
|
|
556
|
-
function
|
|
557
|
-
let r = `<!DOCTYPE html><html><head><meta charset="utf-8"><title>${
|
|
557
|
+
function mt(e, t, n) {
|
|
558
|
+
let r = `<!DOCTYPE html><html><head><meta charset="utf-8"><title>${Q(t)}</title></head><body>${n}</body></html>`, i = document.createElement("a");
|
|
558
559
|
i.href = URL.createObjectURL(new window.Blob([r], { type: "application/vnd.ms-word" })), i.download = e, document.body.appendChild(i), i.click(), i.remove(), URL.revokeObjectURL(i.href);
|
|
559
560
|
}
|
|
560
|
-
var
|
|
561
|
-
function
|
|
561
|
+
var ht = (...e) => `${e.map((e) => A(e).replace(/[,:]/g, "").replace(/ /g, "-")).join("-")}.doc`;
|
|
562
|
+
function gt({ documentTitle: e, title: t, header: n, text: r, captions: i }) {
|
|
562
563
|
let a = i.map((e) => {
|
|
563
564
|
let [t, ...n] = e;
|
|
564
|
-
return `<div><br/>${[t ? `<strong>${
|
|
565
|
+
return `<div><br/>${[t ? `<strong>${Q(A(t))}</strong>` : "", ...n.map((e) => Q(A(e)))].filter(Boolean).join("<br/>")}</div>`;
|
|
565
566
|
}).join("");
|
|
566
|
-
|
|
567
|
+
mt(`${A(t).replace(/ /g, "-")}-con.doc`, e, `<div><b>${Q(A(t))}</b><br/><br/></div><table border="0"><tr><td style="vertical-align:top"><div>${Q(A(n))}</div><div>${Q(A(r))}<br/><br/></div></td><td>${a}</td></tr></table>`);
|
|
567
568
|
}
|
|
568
|
-
var
|
|
569
|
-
function
|
|
570
|
-
return `<tr bgcolor="#FFFFFF"><td width='150px' ${
|
|
569
|
+
var _t = "align='center' style='color:#000000;vertical-align:top;'";
|
|
570
|
+
function vt(e) {
|
|
571
|
+
return `<tr bgcolor="#FFFFFF"><td width='150px' ${_t}>${Q(A(e.name))}</td><td width='100px' ${_t}>${Q(A(e.dateLines.join(" ")))}</td><td width='100px' ${_t}>${e.details.map((e) => Q(A(e))).join("<br/>")}</td><td width='100px' ${_t}>${k(e.justification)}`;
|
|
571
572
|
}
|
|
572
|
-
function
|
|
573
|
+
function yt({ documentTitle: e, title: t, pageTitle: n, quote: r, text: i, slots: a }) {
|
|
573
574
|
let o = "<tr><th>Name</th><th>Dynasty</th><th>Details</th><th>Justification</th></tr>", s = a.map(([e, ...t]) => {
|
|
574
|
-
let n = t.length ? `<table width="100%" cellpadding="1" cellspacing="1" border="1" bgcolor="#FFFFFF">${o}${t.map((e) => `${
|
|
575
|
-
return `${
|
|
575
|
+
let n = t.length ? `<table width="100%" cellpadding="1" cellspacing="1" border="1" bgcolor="#FFFFFF">${o}${t.map((e) => `${vt(e)}</td></tr>`).join("")}</table>` : "";
|
|
576
|
+
return `${vt(e)}${n}</td></tr>`;
|
|
576
577
|
}).join("");
|
|
577
|
-
|
|
578
|
+
mt(ht(t, n), e, `<table width="100%" cellpadding="1" cellspacing="1" border="0" bgcolor="#CCCCCC"><tr bgcolor="#FFFFFF"><td style="color:#000000"><b>${Q(A(t))} / ${Q(A(n))}<br/><br/></b></td></tr><tr bgcolor="#FFFFFF"><td style="color:#000000"><i>${Q(A(r))}</i><br/><br/></td></tr><tr bgcolor="#FFFFFF"><td style="color:#000000">${N(i ?? "")}<br/><br/></td></tr><tr><td><table width="100%" cellpadding="1" cellspacing="2" border="0" bgcolor="#CCCCCC">${o}${s}</table></td></tr></table>`);
|
|
578
579
|
}
|
|
579
580
|
//#endregion
|
|
580
581
|
//#region src/minisite/DownloadBlock.vue
|
|
581
|
-
var
|
|
582
|
+
var bt = { class: "mwnf-minisite-download" }, xt = ["src"], St = ["src"], Ct = ["src"], wt = {
|
|
582
583
|
__name: "DownloadBlock",
|
|
583
584
|
props: { word: {
|
|
584
585
|
type: Function,
|
|
585
586
|
required: !0
|
|
586
587
|
} },
|
|
587
588
|
setup(t) {
|
|
588
|
-
let { t: n } =
|
|
589
|
+
let { t: n } = R(), r = z(), i = (t) => e(r.chrome, t), a = (e) => n(`${Ie(r.minisite)}.${e}`);
|
|
589
590
|
function o() {
|
|
590
591
|
window.print();
|
|
591
592
|
}
|
|
592
|
-
return (e, n) => (p(), s("div",
|
|
593
|
+
return (e, n) => (p(), s("div", bt, [
|
|
593
594
|
n[1] ||= c("br", null, null, -1),
|
|
594
595
|
c("img", {
|
|
595
596
|
src: i("legacy/print_dark.gif"),
|
|
596
597
|
alt: "",
|
|
597
598
|
width: "17",
|
|
598
599
|
height: "12"
|
|
599
|
-
}, null, 8,
|
|
600
|
+
}, null, 8, xt),
|
|
600
601
|
l(" / " + y(a("download.heading")), 1),
|
|
601
602
|
n[2] ||= c("br", null, null, -1),
|
|
602
603
|
c("img", {
|
|
603
604
|
src: i("legacy/arrow_inner_black.gif"),
|
|
604
605
|
alt: ""
|
|
605
|
-
}, null, 8,
|
|
606
|
+
}, null, 8, St),
|
|
606
607
|
c("a", {
|
|
607
608
|
href: "#",
|
|
608
609
|
onClick: T(o, ["prevent"])
|
|
@@ -611,33 +612,33 @@ var vt = { class: "mwnf-minisite-download" }, yt = ["src"], bt = ["src"], xt = [
|
|
|
611
612
|
c("img", {
|
|
612
613
|
src: i("legacy/arrow_inner_black.gif"),
|
|
613
614
|
alt: ""
|
|
614
|
-
}, null, 8,
|
|
615
|
+
}, null, 8, Ct),
|
|
615
616
|
c("a", {
|
|
616
617
|
href: "#",
|
|
617
618
|
onClick: n[0] ||= T((e) => t.word(), ["prevent"])
|
|
618
619
|
}, y(a("download.asWord")), 1)
|
|
619
620
|
]));
|
|
620
621
|
}
|
|
621
|
-
},
|
|
622
|
+
}, Tt = { class: "mwnf-minisite-intro__title" }, Et = { class: "mwnf-minisite-intro__nav mwnf-minisite-intro__nav--start" }, Dt = { class: "mwnf-minisite-intro__nav mwnf-minisite-intro__nav--end" }, Ot = { class: "mwnf-minisite-intro__table" }, kt = ["innerHTML"], At = ["innerHTML"], jt = { class: "mwnf-minisite-intro__side" }, Mt = {
|
|
622
623
|
key: 0,
|
|
623
624
|
class: "mwnf-minisite-intro-item"
|
|
624
|
-
},
|
|
625
|
+
}, Nt = ["href"], Pt = ["src"], Ft = ["href"], It = ["href", "onClick"], Lt = ["src"], Rt = ["src"], zt = { key: 2 }, Bt = { key: 0 }, Vt = ["innerHTML"], Ht = ["innerHTML"], Ut = {
|
|
625
626
|
__name: "Introduction",
|
|
626
627
|
setup(e) {
|
|
627
|
-
let { label: r, lang: d, data: m, root: h, text: _, title: x, settings: w, picture: E, href: D, introCaption: O, slots: k, glossaryFor: A, family: j } = X(), M = i(() => h.value ? _(h.value.id) : {}), N = i(() => h.value ? A(h.value.id) : []),
|
|
628
|
+
let { label: r, lang: d, data: m, root: h, text: _, title: x, settings: w, picture: E, href: D, introCaption: O, slots: k, glossaryFor: A, family: j } = X(), M = i(() => h.value ? _(h.value.id) : {}), N = i(() => h.value ? A(h.value.id) : []), P = i(() => m.md(M.value.extra?.intro_text, { glossary: N.value })), F = i(() => m.mdInline(M.value.extra?.intro_header ?? "")), I = i(() => k(h.value).flatMap((e) => e.variants).map(({ entry: e, image: t }) => ({
|
|
628
629
|
entry: e,
|
|
629
630
|
image: t,
|
|
630
631
|
lines: O(e)
|
|
631
|
-
}))),
|
|
632
|
-
function
|
|
633
|
-
|
|
632
|
+
}))), R = i(() => w.map ?? null);
|
|
633
|
+
function z(e) {
|
|
634
|
+
Z(D({
|
|
634
635
|
name: "zoom",
|
|
635
636
|
query: { img: e }
|
|
636
|
-
}),
|
|
637
|
+
}), Ve.introZoom);
|
|
637
638
|
}
|
|
638
|
-
let
|
|
639
|
-
function
|
|
640
|
-
|
|
639
|
+
let B = L(N);
|
|
640
|
+
function V() {
|
|
641
|
+
gt({
|
|
641
642
|
documentTitle: w.documentTitle,
|
|
642
643
|
title: x.value,
|
|
643
644
|
header: M.value.extra?.intro_header ?? "",
|
|
@@ -645,21 +646,21 @@ var vt = { class: "mwnf-minisite-download" }, yt = ["src"], bt = ["src"], xt = [
|
|
|
645
646
|
captions: I.value.map((e) => e.lines)
|
|
646
647
|
});
|
|
647
648
|
}
|
|
648
|
-
let
|
|
649
|
+
let H = i(() => E(d.value === "ar" ? "legacy/intro_bg_ar.jpg" : "legacy/intro_bg.jpg"));
|
|
649
650
|
return S([x, d], () => {
|
|
650
651
|
document.title = [r("identity.windowTitle"), x.value].filter(Boolean).join(" | ");
|
|
651
652
|
}, { immediate: !0 }), (e, i) => {
|
|
652
653
|
let d = v("router-link");
|
|
653
654
|
return p(), s("div", {
|
|
654
655
|
class: "mwnf-minisite-intro",
|
|
655
|
-
style: f({ backgroundImage:
|
|
656
|
+
style: f({ backgroundImage: H.value ? `url(${H.value})` : "none" })
|
|
656
657
|
}, [
|
|
657
|
-
c("div",
|
|
658
|
-
c("div",
|
|
658
|
+
c("div", Tt, y(b(x)), 1),
|
|
659
|
+
c("div", Et, [i[3] ||= l(" < ", -1), u(d, { to: { name: "home" } }, {
|
|
659
660
|
default: C(() => [l(y(b(r)("nav.entrance")), 1)]),
|
|
660
661
|
_: 1
|
|
661
662
|
})]),
|
|
662
|
-
c("div",
|
|
663
|
+
c("div", Dt, [
|
|
663
664
|
i[4] ||= l(" < ", -1),
|
|
664
665
|
u(d, { to: { name: "home" } }, {
|
|
665
666
|
default: C(() => [l(y(b(r)("nav.previous")), 1)]),
|
|
@@ -678,35 +679,35 @@ var vt = { class: "mwnf-minisite-download" }, yt = ["src"], bt = ["src"], xt = [
|
|
|
678
679
|
}),
|
|
679
680
|
i[6] ||= l(" > ", -1)
|
|
680
681
|
]),
|
|
681
|
-
c("div",
|
|
682
|
+
c("div", Ot, [c("div", {
|
|
682
683
|
class: "mwnf-minisite-intro__text",
|
|
683
|
-
onClick: i[0] ||= (...e) => b(
|
|
684
|
+
onClick: i[0] ||= (...e) => b(B).onClick && b(B).onClick(...e)
|
|
684
685
|
}, [
|
|
685
686
|
c("div", {
|
|
686
687
|
class: "mwnf-minisite-intro__header",
|
|
687
|
-
innerHTML:
|
|
688
|
-
}, null, 8,
|
|
688
|
+
innerHTML: F.value
|
|
689
|
+
}, null, 8, kt),
|
|
689
690
|
c("div", {
|
|
690
691
|
class: "mwnf-minisite-intro__content",
|
|
691
|
-
innerHTML:
|
|
692
|
-
}, null, 8,
|
|
693
|
-
u(
|
|
694
|
-
]), c("div",
|
|
692
|
+
innerHTML: P.value
|
|
693
|
+
}, null, 8, At),
|
|
694
|
+
u(wt, { word: V })
|
|
695
|
+
]), c("div", jt, [R.value ? (p(), s("div", Mt, [
|
|
695
696
|
c("a", {
|
|
696
697
|
href: b(D)({ name: "map" }),
|
|
697
|
-
onClick: i[1] ||= T((e) => b(
|
|
698
|
+
onClick: i[1] ||= T((e) => b(Z)(b(D)({ name: "map" }), b(Ve).map), ["prevent"])
|
|
698
699
|
}, [c("img", {
|
|
699
|
-
src: b(E)(
|
|
700
|
+
src: b(E)(R.value.thumbnail),
|
|
700
701
|
alt: "",
|
|
701
702
|
width: "178",
|
|
702
703
|
height: "93"
|
|
703
|
-
}, null, 8,
|
|
704
|
+
}, null, 8, Pt)], 8, Nt),
|
|
704
705
|
i[7] ||= c("br", null, null, -1),
|
|
705
706
|
c("a", {
|
|
706
707
|
class: "mwnf-minisite-intro-item__map",
|
|
707
708
|
href: b(D)({ name: "map" }),
|
|
708
|
-
onClick: i[2] ||= T((e) => b(
|
|
709
|
-
}, y(b(r)("intro.enlargeMap")), 9,
|
|
709
|
+
onClick: i[2] ||= T((e) => b(Z)(b(D)({ name: "map" }), b(Ve).map), ["prevent"])
|
|
710
|
+
}, y(b(r)("intro.enlargeMap")), 9, Ft)
|
|
710
711
|
])) : o("", !0), (p(!0), s(n, null, g(I.value, (e) => (p(), s("div", {
|
|
711
712
|
key: `${e.entry.id}-${e.entry.variant_order}`,
|
|
712
713
|
class: "mwnf-minisite-intro-item"
|
|
@@ -717,31 +718,31 @@ var vt = { class: "mwnf-minisite-download" }, yt = ["src"], bt = ["src"], xt = [
|
|
|
717
718
|
name: "zoom",
|
|
718
719
|
query: { img: e.image }
|
|
719
720
|
}),
|
|
720
|
-
onClick: T((t) =>
|
|
721
|
+
onClick: T((t) => z(e.image), ["prevent"])
|
|
721
722
|
}, [c("img", {
|
|
722
723
|
class: "mwnf-minisite-intro-item__image",
|
|
723
724
|
src: e.image,
|
|
724
725
|
alt: ""
|
|
725
|
-
}, null, 8,
|
|
726
|
+
}, null, 8, Lt)], 8, It)) : e.image ? (p(), s("img", {
|
|
726
727
|
key: 1,
|
|
727
728
|
class: "mwnf-minisite-intro-item__image",
|
|
728
729
|
src: e.image,
|
|
729
730
|
alt: ""
|
|
730
|
-
}, null, 8,
|
|
731
|
-
e.image ? (p(), s("br",
|
|
732
|
-
(p(!0), s(n, null, g(e.lines.filter(Boolean), (t, r) => (p(), s(n, { key: r }, [r > 0 ? (p(), s("br",
|
|
731
|
+
}, null, 8, Rt)) : o("", !0),
|
|
732
|
+
e.image ? (p(), s("br", zt)) : o("", !0),
|
|
733
|
+
(p(!0), s(n, null, g(e.lines.filter(Boolean), (t, r) => (p(), s(n, { key: r }, [r > 0 ? (p(), s("br", Bt)) : o("", !0), r === 0 && e.lines[0] ? (p(), s("strong", {
|
|
733
734
|
key: 1,
|
|
734
735
|
innerHTML: b(m).mdInline(t)
|
|
735
|
-
}, null, 8,
|
|
736
|
+
}, null, 8, Vt)) : (p(), s("span", {
|
|
736
737
|
key: 2,
|
|
737
738
|
innerHTML: b(m).mdInline(t)
|
|
738
|
-
}, null, 8,
|
|
739
|
+
}, null, 8, Ht))], 64))), 128))
|
|
739
740
|
]))), 128))])]),
|
|
740
|
-
b(
|
|
741
|
+
b(B).active.value ? (p(), a(t, {
|
|
741
742
|
key: 0,
|
|
742
|
-
term: b(
|
|
743
|
-
html: b(m).md(b(
|
|
744
|
-
onClose: b(
|
|
743
|
+
term: b(B).active.value,
|
|
744
|
+
html: b(m).md(b(B).active.value.definition),
|
|
745
|
+
onClose: b(B).close
|
|
745
746
|
}, null, 8, [
|
|
746
747
|
"term",
|
|
747
748
|
"html",
|
|
@@ -750,10 +751,10 @@ var vt = { class: "mwnf-minisite-download" }, yt = ["src"], bt = ["src"], xt = [
|
|
|
750
751
|
], 4);
|
|
751
752
|
};
|
|
752
753
|
}
|
|
753
|
-
},
|
|
754
|
+
}, Wt = { class: "mwnf-minisite-page__head" }, Gt = { class: "mwnf-minisite-page__title" }, Kt = { class: "mwnf-minisite-page__nav mwnf-minisite-page__nav--start" }, qt = { class: "mwnf-minisite-page__nav mwnf-minisite-page__nav--end" }, Jt = { class: "mwnf-minisite-page__body" }, Yt = ["innerHTML"], Xt = { class: "mwnf-minisite-page__thumbs" }, Zt = ["onClick"], Qt = ["src"], $t = ["innerHTML"], en = ["innerHTML"], tn = { class: "mwnf-minisite-page__item" }, nn = { class: "mwnf-minisite-page__image" }, rn = ["src"], an = {
|
|
754
755
|
key: 0,
|
|
755
756
|
class: "mwnf-minisite-page__caption"
|
|
756
|
-
},
|
|
757
|
+
}, on = ["innerHTML"], sn = ["innerHTML"], cn = { key: 0 }, ln = ["innerHTML"], un = ["innerHTML"], dn = ["innerHTML"], fn = ["innerHTML"], pn = { key: 1 }, mn = ["onClick"], hn = ["src"], gn = ["innerHTML"], _n = { key: 2 }, vn = ["href"], yn = {
|
|
757
758
|
__name: "Page",
|
|
758
759
|
props: {
|
|
759
760
|
theme: {
|
|
@@ -766,82 +767,82 @@ var vt = { class: "mwnf-minisite-download" }, yt = ["src"], bt = ["src"], xt = [
|
|
|
766
767
|
}
|
|
767
768
|
},
|
|
768
769
|
setup(e) {
|
|
769
|
-
let r = e, { label: m, family: _, lang: x, data: E, title: D, text: O, settings: k, picture: A, href: j, pageAt: M, slots: N, placementCaption:
|
|
770
|
+
let r = e, { label: m, family: _, lang: x, data: E, title: D, text: O, settings: k, picture: A, href: j, pageAt: M, slots: N, placementCaption: P, viewCaption: F, glossaryFor: I } = X(), R = i(() => M(r.theme, r.page)), z = i(() => R.value ? O(R.value.node.id) : {}), B = i(() => R.value ? I(R.value.node.id) : []), V = i(() => R.value ? N(R.value.node) : []), H = i(() => z.value.quote ?? ""), U = h({
|
|
770
771
|
slot: 0,
|
|
771
772
|
variant: 0
|
|
772
773
|
});
|
|
773
|
-
S(() => [r.theme, r.page], () =>
|
|
774
|
+
S(() => [r.theme, r.page], () => U.value = {
|
|
774
775
|
slot: 0,
|
|
775
776
|
variant: 0
|
|
776
777
|
});
|
|
777
|
-
let W = i(() =>
|
|
778
|
-
...
|
|
779
|
-
sheetId:
|
|
778
|
+
let W = i(() => V.value[U.value.slot] ?? null), ee = i(() => W.value?.variants[U.value.variant] ?? null), te = i(() => Ae(W.value, U.value.variant)), K = i(() => !W.value || !ee.value ? null : {
|
|
779
|
+
...F(W.value, U.value.variant),
|
|
780
|
+
sheetId: ke(W.value, U.value.variant, (e) => E.itemById.value.get(e))
|
|
780
781
|
});
|
|
781
782
|
function ne(e) {
|
|
782
|
-
|
|
783
|
+
U.value = {
|
|
783
784
|
slot: e,
|
|
784
785
|
variant: 0
|
|
785
786
|
};
|
|
786
787
|
}
|
|
787
788
|
function re(e) {
|
|
788
|
-
|
|
789
|
-
...
|
|
789
|
+
U.value = {
|
|
790
|
+
...U.value,
|
|
790
791
|
variant: e
|
|
791
792
|
};
|
|
792
793
|
}
|
|
793
794
|
function ie() {
|
|
794
|
-
|
|
795
|
+
te.value && Z(j({
|
|
795
796
|
name: "zoom",
|
|
796
|
-
query: { img:
|
|
797
|
-
}),
|
|
797
|
+
query: { img: te.value }
|
|
798
|
+
}), Ve.zoom);
|
|
798
799
|
}
|
|
799
|
-
let q =
|
|
800
|
+
let q = L(B);
|
|
800
801
|
function ae() {
|
|
801
|
-
|
|
802
|
+
yt({
|
|
802
803
|
documentTitle: k.documentTitle,
|
|
803
804
|
title: D.value,
|
|
804
|
-
pageTitle:
|
|
805
|
-
quote:
|
|
806
|
-
text:
|
|
807
|
-
slots:
|
|
805
|
+
pageTitle: z.value.title ?? "",
|
|
806
|
+
quote: H.value,
|
|
807
|
+
text: z.value.description ?? "",
|
|
808
|
+
slots: V.value.map((e) => e.variants.map((t, n) => t.view ? F(e, n) : P(t.entry)))
|
|
808
809
|
});
|
|
809
810
|
}
|
|
810
811
|
S(() => [
|
|
811
|
-
|
|
812
|
+
z.value.title,
|
|
812
813
|
D.value,
|
|
813
814
|
x.value
|
|
814
815
|
], () => {
|
|
815
816
|
document.title = [
|
|
816
817
|
m("identity.windowTitle"),
|
|
817
818
|
D.value,
|
|
818
|
-
|
|
819
|
+
z.value.title,
|
|
819
820
|
r.page
|
|
820
821
|
].filter(Boolean).join(" | ");
|
|
821
822
|
}, { immediate: !0 });
|
|
822
823
|
let oe = i(() => A(x.value === "ar" ? "legacy/exhibition_bg_ar.jpg" : "legacy/exhibition_bg.jpg"));
|
|
823
824
|
return (e, r) => {
|
|
824
825
|
let i = v("router-link");
|
|
825
|
-
return
|
|
826
|
+
return R.value ? (p(), s("div", {
|
|
826
827
|
key: 0,
|
|
827
828
|
class: "mwnf-minisite-page",
|
|
828
829
|
style: f({ backgroundImage: oe.value ? `url(${oe.value})` : "none" })
|
|
829
830
|
}, [
|
|
830
|
-
c("div",
|
|
831
|
-
c("div",
|
|
832
|
-
c("div",
|
|
831
|
+
c("div", Wt, [
|
|
832
|
+
c("div", Gt, y(b(D)), 1),
|
|
833
|
+
c("div", Kt, [r[1] ||= l(" < ", -1), u(i, { to: { name: "home" } }, {
|
|
833
834
|
default: C(() => [l(y(b(m)("nav.entrance")), 1)]),
|
|
834
835
|
_: 1
|
|
835
836
|
})]),
|
|
836
|
-
c("div",
|
|
837
|
+
c("div", qt, [
|
|
837
838
|
r[4] ||= l(" < ", -1),
|
|
838
|
-
u(i, { to:
|
|
839
|
+
u(i, { to: R.value.previous }, {
|
|
839
840
|
default: C(() => [l(y(b(m)("nav.previous")), 1)]),
|
|
840
841
|
_: 1
|
|
841
842
|
}, 8, ["to"]),
|
|
842
|
-
|
|
843
|
+
R.value.next ? (p(), s(n, { key: 0 }, [
|
|
843
844
|
r[2] ||= l(" | ", -1),
|
|
844
|
-
u(i, { to:
|
|
845
|
+
u(i, { to: R.value.next }, {
|
|
845
846
|
default: C(() => [l(y(b(m)("nav.next")), 1)]),
|
|
846
847
|
_: 1
|
|
847
848
|
}, 8, ["to"]),
|
|
@@ -849,15 +850,15 @@ var vt = { class: "mwnf-minisite-download" }, yt = ["src"], bt = ["src"], xt = [
|
|
|
849
850
|
], 64)) : o("", !0)
|
|
850
851
|
])
|
|
851
852
|
]),
|
|
852
|
-
c("div",
|
|
853
|
+
c("div", Jt, [c("div", {
|
|
853
854
|
class: "mwnf-minisite-page__text",
|
|
854
855
|
onClick: r[0] ||= (...e) => b(q).onClick && b(q).onClick(...e)
|
|
855
856
|
}, [
|
|
856
857
|
c("div", {
|
|
857
858
|
class: "mwnf-minisite-page__page-title",
|
|
858
|
-
innerHTML: b(E).mdInline(
|
|
859
|
-
}, null, 8,
|
|
860
|
-
c("div",
|
|
859
|
+
innerHTML: b(E).mdInline(z.value.title)
|
|
860
|
+
}, null, 8, Yt),
|
|
861
|
+
c("div", Xt, [(p(!0), s(n, null, g(V.value, (e, t) => w((p(), s("a", {
|
|
861
862
|
key: e.n,
|
|
862
863
|
href: "#",
|
|
863
864
|
onClick: T((e) => ne(t), ["prevent"])
|
|
@@ -866,53 +867,53 @@ var vt = { class: "mwnf-minisite-download" }, yt = ["src"], bt = ["src"], xt = [
|
|
|
866
867
|
src: e.variants[0].image,
|
|
867
868
|
alt: "",
|
|
868
869
|
height: "36"
|
|
869
|
-
}, null, 8,
|
|
870
|
-
text: b(E).mdStrip(b(
|
|
870
|
+
}, null, 8, Qt)) : o("", !0)], 8, Zt)), [[b(G), {
|
|
871
|
+
text: b(E).mdStrip(b(F)(e, 0).name),
|
|
871
872
|
width: 160
|
|
872
873
|
}]])), 128))]),
|
|
873
874
|
c("div", {
|
|
874
|
-
class: d(["mwnf-minisite-page__quote", { "mwnf-minisite-page__quote--own-italics": b(
|
|
875
|
-
innerHTML: b(E).mdInline(
|
|
876
|
-
}, null, 10,
|
|
875
|
+
class: d(["mwnf-minisite-page__quote", { "mwnf-minisite-page__quote--own-italics": b(Pe)(H.value) }]),
|
|
876
|
+
innerHTML: b(E).mdInline(H.value, { glossary: B.value })
|
|
877
|
+
}, null, 10, $t),
|
|
877
878
|
c("div", {
|
|
878
879
|
class: "mwnf-minisite-page__content",
|
|
879
|
-
innerHTML: b(E).md(
|
|
880
|
-
}, null, 8,
|
|
881
|
-
u(
|
|
882
|
-
]), c("div",
|
|
880
|
+
innerHTML: b(E).md(z.value.description, { glossary: B.value })
|
|
881
|
+
}, null, 8, en),
|
|
882
|
+
u(wt, { word: ae })
|
|
883
|
+
]), c("div", tn, [c("div", nn, [te.value ? w((p(), s("a", {
|
|
883
884
|
key: 0,
|
|
884
885
|
href: "#",
|
|
885
886
|
onClick: T(ie, ["prevent"])
|
|
886
887
|
}, [c("img", {
|
|
887
|
-
src:
|
|
888
|
+
src: te.value,
|
|
888
889
|
alt: ""
|
|
889
|
-
}, null, 8,
|
|
890
|
+
}, null, 8, rn)])), [[b(G), { text: b(m)("item.showZoom") }]]) : o("", !0)]), K.value ? (p(), s("div", an, [
|
|
890
891
|
c("div", null, [
|
|
891
|
-
c("strong", { innerHTML: b(E).mdInline(K.value.name) }, null, 8,
|
|
892
|
+
c("strong", { innerHTML: b(E).mdInline(K.value.name) }, null, 8, on),
|
|
892
893
|
r[5] ||= c("br", null, null, -1),
|
|
893
|
-
c("span", { innerHTML: b(E).mdInline(K.value.detailName) }, null, 8,
|
|
894
|
+
c("span", { innerHTML: b(E).mdInline(K.value.detailName) }, null, 8, sn),
|
|
894
895
|
r[6] ||= c("br", null, null, -1),
|
|
895
|
-
(p(!0), s(n, null, g(K.value.dateLines, (e, t) => (p(), s(n, { key: t }, [t > 0 ? (p(), s("br",
|
|
896
|
+
(p(!0), s(n, null, g(K.value.dateLines, (e, t) => (p(), s(n, { key: t }, [t > 0 ? (p(), s("br", cn)) : o("", !0), c("span", { innerHTML: b(E).mdInline(e) }, null, 8, ln)], 64))), 128))
|
|
896
897
|
]),
|
|
897
|
-
c("div", null, [(p(!0), s(n, null, g(K.value.details, (e, t) => (p(), s(n, { key: t }, [c("span", { innerHTML: b(E).mdInline(e) }, null, 8,
|
|
898
|
-
b(_) === "BAR" ? (p(), s(n, { key: 0 }, [c("div", { innerHTML: b(E).mdInline(K.value.artist) }, null, 8,
|
|
899
|
-
W.value.variants.length > 1 ? (p(), s("div",
|
|
898
|
+
c("div", null, [(p(!0), s(n, null, g(K.value.details, (e, t) => (p(), s(n, { key: t }, [c("span", { innerHTML: b(E).mdInline(e) }, null, 8, un), r[7] ||= c("br", null, null, -1)], 64))), 128))]),
|
|
899
|
+
b(_) === "BAR" ? (p(), s(n, { key: 0 }, [c("div", { innerHTML: b(E).mdInline(K.value.artist) }, null, 8, dn), c("div", { innerHTML: b(E).mdInline(K.value.material) }, null, 8, fn)], 64)) : o("", !0),
|
|
900
|
+
W.value.variants.length > 1 ? (p(), s("div", pn, [(p(!0), s(n, null, g(W.value.variants, (e, t) => w((p(), s("a", {
|
|
900
901
|
key: t,
|
|
901
902
|
href: "#",
|
|
902
903
|
onClick: T((e) => re(t), ["prevent"])
|
|
903
904
|
}, [c("img", {
|
|
904
|
-
src: b(A)(t ===
|
|
905
|
+
src: b(A)(t === U.value.variant ? "legacy/ico_item_selected.gif" : "legacy/ico_item.gif"),
|
|
905
906
|
alt: ""
|
|
906
|
-
}, null, 8,
|
|
907
|
+
}, null, 8, hn)], 8, mn)), [[b(G), { text: b(m)("item.showDetail") }]])), 128))])) : o("", !0),
|
|
907
908
|
c("div", {
|
|
908
909
|
class: "mwnf-minisite-page__justification",
|
|
909
910
|
innerHTML: b(E).mdInline(K.value.justification)
|
|
910
|
-
}, null, 8,
|
|
911
|
-
K.value.sheetId ? (p(), s("div",
|
|
911
|
+
}, null, 8, gn),
|
|
912
|
+
K.value.sheetId ? (p(), s("div", _n, [c("a", {
|
|
912
913
|
class: "mwnf-minisite-page__more",
|
|
913
914
|
href: b(k).itemHref?.(K.value.sheetId),
|
|
914
915
|
target: "_blank"
|
|
915
|
-
}, "> " + y(b(m)("item.moreInfo")), 9,
|
|
916
|
+
}, "> " + y(b(m)("item.moreInfo")), 9, vn)])) : o("", !0)
|
|
916
917
|
])) : o("", !0)])]),
|
|
917
918
|
b(q).active.value ? (p(), a(t, {
|
|
918
919
|
key: 0,
|
|
@@ -927,27 +928,27 @@ var vt = { class: "mwnf-minisite-download" }, yt = ["src"], bt = ["src"], xt = [
|
|
|
927
928
|
], 4)) : o("", !0);
|
|
928
929
|
};
|
|
929
930
|
}
|
|
930
|
-
},
|
|
931
|
+
}, bn = { class: "mwnf-minisite-credits" }, xn = ["innerHTML"], Sn = {
|
|
931
932
|
__name: "Credits",
|
|
932
933
|
setup(e) {
|
|
933
934
|
let { data: t, root: n, text: r, title: a } = X(), o = i(() => n.value ? t.md(r(n.value.id).extra?.credits) : "");
|
|
934
|
-
return (e, t) => (p(), s("div",
|
|
935
|
+
return (e, t) => (p(), s("div", bn, [c("h1", null, y(b(a)), 1), c("div", { innerHTML: o.value }, null, 8, xn)]));
|
|
935
936
|
}
|
|
936
|
-
},
|
|
937
|
+
}, Cn = { class: "mwnf-minisite-map" }, wn = { key: 0 }, Tn = ["src"], En = {
|
|
937
938
|
__name: "Map",
|
|
938
939
|
setup(e) {
|
|
939
940
|
let { lang: t, settings: r, picture: a } = X(), l = i(() => {
|
|
940
941
|
let e = r.map;
|
|
941
942
|
return e ? [a(e.picture(t.value)), ...Array.from({ length: Math.max((e.count ?? 1) - 1, 0) }, (n, r) => a(e.picture(t.value, r + 2)))].filter(Boolean) : [];
|
|
942
943
|
});
|
|
943
|
-
return (e, t) => (p(), s("div",
|
|
944
|
+
return (e, t) => (p(), s("div", Cn, [(p(!0), s(n, null, g(l.value, (e, t) => (p(), s(n, { key: e }, [t > 0 ? (p(), s("br", wn)) : o("", !0), c("img", {
|
|
944
945
|
src: e,
|
|
945
946
|
alt: "",
|
|
946
947
|
width: "800",
|
|
947
948
|
height: "418"
|
|
948
|
-
}, null, 8,
|
|
949
|
+
}, null, 8, Tn)], 64))), 128))]));
|
|
949
950
|
}
|
|
950
|
-
},
|
|
951
|
+
}, Dn = { class: "mwnf-minisite-zoom" }, On = ["src"], kn = {
|
|
951
952
|
__name: "Zoom",
|
|
952
953
|
props: { image: {
|
|
953
954
|
type: String,
|
|
@@ -955,43 +956,43 @@ var vt = { class: "mwnf-minisite-download" }, yt = ["src"], bt = ["src"], xt = [
|
|
|
955
956
|
} },
|
|
956
957
|
setup(e) {
|
|
957
958
|
let t = e, { pages: n, root: r, slots: a } = X(), c = i(() => [r.value, ...n.value.map((e) => e.node)].filter(Boolean).flatMap((e) => a(e).flatMap((e) => e.variants.map((e) => e.image))).includes(t.image) ? t.image : "");
|
|
958
|
-
return (e, t) => (p(), s("div",
|
|
959
|
+
return (e, t) => (p(), s("div", Dn, [c.value ? (p(), s("img", {
|
|
959
960
|
key: 0,
|
|
960
961
|
src: c.value,
|
|
961
962
|
alt: ""
|
|
962
|
-
}, null, 8,
|
|
963
|
+
}, null, 8, On)) : o("", !0)]));
|
|
963
964
|
}
|
|
964
965
|
};
|
|
965
966
|
//#endregion
|
|
966
967
|
//#region src/minisite/routes.js
|
|
967
|
-
function
|
|
968
|
+
function An(e) {
|
|
968
969
|
return [
|
|
969
970
|
{
|
|
970
971
|
path: "/",
|
|
971
972
|
name: "home",
|
|
972
|
-
component:
|
|
973
|
+
component: pt,
|
|
973
974
|
meta: e("home", "collections", "partners", "countries")
|
|
974
975
|
},
|
|
975
976
|
{
|
|
976
977
|
path: "/introduction",
|
|
977
978
|
name: "introduction",
|
|
978
|
-
component:
|
|
979
|
-
meta: e("introduction", ...
|
|
979
|
+
component: Ut,
|
|
980
|
+
meta: e("introduction", ...Be)
|
|
980
981
|
},
|
|
981
982
|
{
|
|
982
983
|
path: "/exhibition/:theme(\\d+)/:page(\\d+)?",
|
|
983
984
|
name: "exhibition",
|
|
984
|
-
component:
|
|
985
|
+
component: yn,
|
|
985
986
|
props: (e) => ({
|
|
986
987
|
theme: Number(e.params.theme),
|
|
987
988
|
page: Number(e.params.page || 1)
|
|
988
989
|
}),
|
|
989
|
-
meta: e("exhibition", ...
|
|
990
|
+
meta: e("exhibition", ...Be)
|
|
990
991
|
},
|
|
991
992
|
{
|
|
992
993
|
path: "/credits",
|
|
993
994
|
name: "credits",
|
|
994
|
-
component:
|
|
995
|
+
component: Sn,
|
|
995
996
|
meta: {
|
|
996
997
|
...e("credits", "collections"),
|
|
997
998
|
bare: "credits"
|
|
@@ -1000,7 +1001,7 @@ function On(e) {
|
|
|
1000
1001
|
{
|
|
1001
1002
|
path: "/map",
|
|
1002
1003
|
name: "map",
|
|
1003
|
-
component:
|
|
1004
|
+
component: En,
|
|
1004
1005
|
meta: {
|
|
1005
1006
|
...e("map"),
|
|
1006
1007
|
bare: "map"
|
|
@@ -1009,7 +1010,7 @@ function On(e) {
|
|
|
1009
1010
|
{
|
|
1010
1011
|
path: "/zoom",
|
|
1011
1012
|
name: "zoom",
|
|
1012
|
-
component:
|
|
1013
|
+
component: kn,
|
|
1013
1014
|
props: (e) => ({ image: String(e.query.img ?? "") }),
|
|
1014
1015
|
meta: {
|
|
1015
1016
|
...e("zoom", "collections"),
|
|
@@ -1018,7 +1019,7 @@ function On(e) {
|
|
|
1018
1019
|
}
|
|
1019
1020
|
];
|
|
1020
1021
|
}
|
|
1021
|
-
function
|
|
1022
|
+
function jn(e, t = Y.ISL) {
|
|
1022
1023
|
return [
|
|
1023
1024
|
{
|
|
1024
1025
|
label: `${t}.menu.permanentCollection`,
|
|
@@ -1047,11 +1048,11 @@ function kn(e, t = Y.ISL) {
|
|
|
1047
1048
|
},
|
|
1048
1049
|
{
|
|
1049
1050
|
label: `${t}.menu.myCollection`,
|
|
1050
|
-
href:
|
|
1051
|
+
href: j.myCollection
|
|
1051
1052
|
}
|
|
1052
1053
|
];
|
|
1053
1054
|
}
|
|
1054
|
-
function
|
|
1055
|
+
function Mn(e, t = Y.BAR) {
|
|
1055
1056
|
return [
|
|
1056
1057
|
{
|
|
1057
1058
|
label: `${t}.menu.permanentCollection`,
|
|
@@ -1075,23 +1076,23 @@ function An(e, t = Y.BAR) {
|
|
|
1075
1076
|
},
|
|
1076
1077
|
{
|
|
1077
1078
|
label: `${t}.menu.myCollection`,
|
|
1078
|
-
href:
|
|
1079
|
+
href: j.myCollection
|
|
1079
1080
|
}
|
|
1080
1081
|
];
|
|
1081
1082
|
}
|
|
1082
|
-
var
|
|
1083
|
-
function
|
|
1083
|
+
var Nn = "https://www.museumwnf.org/about/language-policy";
|
|
1084
|
+
function Pn({ languages: e, parent: t, family: n = "ISL", texts: r = Ie({ family: n }), menu: i }) {
|
|
1084
1085
|
let a = [
|
|
1085
|
-
["aboutMwnf",
|
|
1086
|
-
["contact",
|
|
1087
|
-
["legalNotice",
|
|
1088
|
-
["credits",
|
|
1089
|
-
...n === "BAR" ? [["languagePolicy",
|
|
1090
|
-
["cookies",
|
|
1086
|
+
["aboutMwnf", j.about],
|
|
1087
|
+
["contact", j.contact],
|
|
1088
|
+
["legalNotice", j.legalNotice],
|
|
1089
|
+
["credits", j.credits],
|
|
1090
|
+
...n === "BAR" ? [["languagePolicy", Nn]] : [],
|
|
1091
|
+
["cookies", j.cookies]
|
|
1091
1092
|
];
|
|
1092
1093
|
return {
|
|
1093
1094
|
languages: e,
|
|
1094
|
-
logoHref:
|
|
1095
|
+
logoHref: j.portal,
|
|
1095
1096
|
logoTip: `${r}.header.logoTip`,
|
|
1096
1097
|
headerLinks: [{
|
|
1097
1098
|
label: `${r}.header.exhibitionsList`,
|
|
@@ -1101,7 +1102,7 @@ function Mn({ languages: e, parent: t, family: n = "ISL", texts: r = Fe({ family
|
|
|
1101
1102
|
href: `${t}/#/`,
|
|
1102
1103
|
tip: `${r}.header.homeTip`
|
|
1103
1104
|
}],
|
|
1104
|
-
menu: i ?? (n === "BAR" ?
|
|
1105
|
+
menu: i ?? (n === "BAR" ? Mn(t, r) : jn(t, r)),
|
|
1105
1106
|
menuSeparator: n !== "BAR",
|
|
1106
1107
|
footerLinks: a.map(([e, t]) => ({
|
|
1107
1108
|
label: `${r}.footer.${e}`,
|
|
@@ -1110,7 +1111,7 @@ function Mn({ languages: e, parent: t, family: n = "ISL", texts: r = Fe({ family
|
|
|
1110
1111
|
copyright: `${r}.footer.copyright`
|
|
1111
1112
|
};
|
|
1112
1113
|
}
|
|
1113
|
-
function
|
|
1114
|
+
function Fn({ parent: e, ...t }) {
|
|
1114
1115
|
return {
|
|
1115
1116
|
parent: e,
|
|
1116
1117
|
itemHref: (t) => `${e}/#/item/${encodeURIComponent(t)}`,
|
|
@@ -1120,4 +1121,1175 @@ function Nn({ parent: e, ...t }) {
|
|
|
1120
1121
|
};
|
|
1121
1122
|
}
|
|
1122
1123
|
//#endregion
|
|
1123
|
-
|
|
1124
|
+
//#region src/minisite/sharinghistory/Shell.vue
|
|
1125
|
+
var In = { class: "mwnf-sh__column" }, Ln = { class: "mwnf-sh-header" }, Rn = { class: "mwnf-sh-header__logo" }, zn = ["href"], Bn = ["src"], Vn = ["href"], Hn = { class: "mwnf-sh-header__links" }, Un = ["href"], Wn = { class: "mwnf-sh-drop" }, Gn = ["href"], Kn = ["href"], qn = ["href"], Jn = {
|
|
1126
|
+
key: 0,
|
|
1127
|
+
class: "mwnf-sh-header__sizes"
|
|
1128
|
+
}, Yn = { class: "mwnf-sh__page" }, Xn = { class: "mwnf-sh-menu" }, Zn = ["href"], Qn = {
|
|
1129
|
+
key: 0,
|
|
1130
|
+
class: "mwnf-sh-drop"
|
|
1131
|
+
}, $n = ["href"], er = { class: "mwnf-sh-footer" }, tr = ["href"], nr = {
|
|
1132
|
+
__name: "Shell",
|
|
1133
|
+
props: {
|
|
1134
|
+
languages: {
|
|
1135
|
+
type: Array,
|
|
1136
|
+
default: () => []
|
|
1137
|
+
},
|
|
1138
|
+
language: {
|
|
1139
|
+
type: String,
|
|
1140
|
+
required: !0
|
|
1141
|
+
},
|
|
1142
|
+
texts: {
|
|
1143
|
+
type: String,
|
|
1144
|
+
default: "minisiteSharingHistory"
|
|
1145
|
+
},
|
|
1146
|
+
portalHref: {
|
|
1147
|
+
type: String,
|
|
1148
|
+
required: !0
|
|
1149
|
+
},
|
|
1150
|
+
homeHref: {
|
|
1151
|
+
type: String,
|
|
1152
|
+
required: !0
|
|
1153
|
+
},
|
|
1154
|
+
aboutLinks: {
|
|
1155
|
+
type: Array,
|
|
1156
|
+
default: () => []
|
|
1157
|
+
},
|
|
1158
|
+
menu: {
|
|
1159
|
+
type: Array,
|
|
1160
|
+
default: () => []
|
|
1161
|
+
},
|
|
1162
|
+
footerLinks: {
|
|
1163
|
+
type: Array,
|
|
1164
|
+
default: () => []
|
|
1165
|
+
}
|
|
1166
|
+
},
|
|
1167
|
+
setup(t) {
|
|
1168
|
+
let r = t, { t: a } = R(), u = z(), m = B(), v = i(() => m.meta?.bare ?? null), x = (t) => e(u.chrome, t), S = (e) => a(`${r.texts}.${e}`), C = (/* @__PURE__ */ new Date()).getFullYear(), T = h(1), E = i(() => m.name !== "home"), D = (e) => {
|
|
1169
|
+
T.value = e === 0 ? 1 : Math.min(1.6, Math.max(.8, T.value + e));
|
|
1170
|
+
}, O = i(() => ({
|
|
1171
|
+
"--sh-title-band": `url(${x("legacy/bg.png") ?? ""})`,
|
|
1172
|
+
"--sh-text-scale": String(T.value)
|
|
1173
|
+
}));
|
|
1174
|
+
return (e, r) => v.value ? (p(), s("div", {
|
|
1175
|
+
key: 0,
|
|
1176
|
+
class: d(`mwnf-sh-window mwnf-sh-window--${v.value}`)
|
|
1177
|
+
}, [_(e.$slots, "default")], 2)) : (p(), s("div", {
|
|
1178
|
+
key: 1,
|
|
1179
|
+
class: "mwnf-sh",
|
|
1180
|
+
style: f(O.value)
|
|
1181
|
+
}, [
|
|
1182
|
+
r[8] ||= c("div", {
|
|
1183
|
+
class: "mwnf-sh__strip",
|
|
1184
|
+
"aria-hidden": "true"
|
|
1185
|
+
}, null, -1),
|
|
1186
|
+
c("div", In, [
|
|
1187
|
+
c("header", Ln, [
|
|
1188
|
+
c("div", Rn, [w((p(), s("a", { href: t.portalHref }, [c("img", {
|
|
1189
|
+
src: x(`legacy/mwnfLogoShExIn-${t.language}.png`) ?? x("legacy/mwnfLogoShExIn-en.png"),
|
|
1190
|
+
alt: "",
|
|
1191
|
+
width: "101",
|
|
1192
|
+
height: "45"
|
|
1193
|
+
}, null, 8, Bn)], 8, zn)), [[b(G), { text: S("header.portalTip") }]])]),
|
|
1194
|
+
r[6] ||= c("div", { class: "mwnf-sh-header__space" }, null, -1),
|
|
1195
|
+
w((p(), s("a", {
|
|
1196
|
+
class: "mwnf-sh-header__name",
|
|
1197
|
+
href: t.homeHref
|
|
1198
|
+
}, [c("h1", null, y(S("header.heading")), 1), c("h2", null, y(S("header.subheading")), 1)], 8, Vn)), [[b(G), { text: S("header.homeTip") }]]),
|
|
1199
|
+
c("div", Hn, [c("ul", { class: d(["mwnf-sh-header__list", { "mwnf-sh-header__list--ruled": E.value }]) }, [
|
|
1200
|
+
c("li", null, [c("a", { href: t.aboutLinks[0]?.href }, y(S("header.about")), 9, Un), c("ul", Wn, [(p(!0), s(n, null, g(t.aboutLinks, (e) => (p(), s("li", { key: e.label }, [c("a", { href: e.href }, y(S(e.label)), 9, Gn)]))), 128))])]),
|
|
1201
|
+
c("li", null, [w((p(), s("a", { href: t.homeHref }, [l(y(S("header.home")), 1)], 8, Kn)), [[b(G), { text: S("header.homeTip") }]])]),
|
|
1202
|
+
c("li", null, [w((p(), s("a", { href: t.portalHref }, [l(y(S("header.portal")), 1)], 8, qn)), [[b(G), { text: S("header.portalTip") }]])])
|
|
1203
|
+
], 2), E.value ? (p(), s("div", Jn, [
|
|
1204
|
+
w((p(), s("button", {
|
|
1205
|
+
type: "button",
|
|
1206
|
+
style: { "font-size": "8px" },
|
|
1207
|
+
onClick: r[0] ||= (e) => D(-.1)
|
|
1208
|
+
}, [...r[3] ||= [l("A", -1)]])), [[b(G), { text: S("header.decreaseSize") }]]),
|
|
1209
|
+
w((p(), s("button", {
|
|
1210
|
+
type: "button",
|
|
1211
|
+
style: { "font-size": "10px" },
|
|
1212
|
+
onClick: r[1] ||= (e) => D(0)
|
|
1213
|
+
}, [...r[4] ||= [l("A", -1)]])), [[b(G), { text: S("header.revertSize") }]]),
|
|
1214
|
+
w((p(), s("button", {
|
|
1215
|
+
type: "button",
|
|
1216
|
+
style: { "font-size": "12px" },
|
|
1217
|
+
onClick: r[2] ||= (e) => D(.1)
|
|
1218
|
+
}, [...r[5] ||= [l("A", -1)]])), [[b(G), { text: S("header.increaseSize") }]])
|
|
1219
|
+
])) : o("", !0)])
|
|
1220
|
+
]),
|
|
1221
|
+
c("main", Yn, [_(e.$slots, "default")]),
|
|
1222
|
+
c("nav", Xn, [c("ul", null, [(p(!0), s(n, null, g(t.menu, (e) => (p(), s("li", { key: e.label }, [w((p(), s("a", { href: e.href ?? "#" }, [l(y(S(e.label)), 1)], 8, Zn)), [[b(G), { text: e.tip ? S(e.tip) : "" }]]), e.links?.length ? (p(), s("ul", Qn, [(p(!0), s(n, null, g(e.links, (e) => (p(), s("li", { key: e.href }, [c("a", { href: e.href }, y(e.text ?? S(e.label)), 9, $n)]))), 128))])) : o("", !0)]))), 128))])]),
|
|
1223
|
+
c("footer", er, [(p(!0), s(n, null, g(t.footerLinks, (e) => (p(), s(n, { key: e.label }, [c("a", { href: e.href }, y(S(e.label)), 9, tr), r[7] ||= l(" | ", -1)], 64))), 128)), l(" " + y(S("footer.copyright")) + " " + y(b(C)), 1)])
|
|
1224
|
+
]),
|
|
1225
|
+
r[9] ||= c("div", {
|
|
1226
|
+
class: "mwnf-sh__strip",
|
|
1227
|
+
"aria-hidden": "true"
|
|
1228
|
+
}, null, -1),
|
|
1229
|
+
b(H).visible ? (p(), s("div", {
|
|
1230
|
+
key: 0,
|
|
1231
|
+
class: "mwnf-sh-tip",
|
|
1232
|
+
style: f({
|
|
1233
|
+
left: `${b(H).x + 12}px`,
|
|
1234
|
+
top: `${b(H).y + 12}px`,
|
|
1235
|
+
width: `${b(H).width}px`
|
|
1236
|
+
})
|
|
1237
|
+
}, y(b(H).text), 5)) : o("", !0)
|
|
1238
|
+
], 4));
|
|
1239
|
+
}
|
|
1240
|
+
}, rr = "minisiteSharingHistory", ir = [
|
|
1241
|
+
"collections",
|
|
1242
|
+
"items",
|
|
1243
|
+
"countries",
|
|
1244
|
+
"partners"
|
|
1245
|
+
];
|
|
1246
|
+
function ar(e, t) {
|
|
1247
|
+
return e.flatMap((e, n) => [{
|
|
1248
|
+
theme: n + 1,
|
|
1249
|
+
page: 0,
|
|
1250
|
+
node: e,
|
|
1251
|
+
themeNode: e
|
|
1252
|
+
}, ...t(e.id).map((t, r) => ({
|
|
1253
|
+
theme: n + 1,
|
|
1254
|
+
page: r + 1,
|
|
1255
|
+
node: t,
|
|
1256
|
+
themeNode: e
|
|
1257
|
+
}))]);
|
|
1258
|
+
}
|
|
1259
|
+
function or(e) {
|
|
1260
|
+
return e.page === 0 ? {
|
|
1261
|
+
name: "theme",
|
|
1262
|
+
params: { theme: e.theme }
|
|
1263
|
+
} : {
|
|
1264
|
+
name: "subtheme",
|
|
1265
|
+
params: {
|
|
1266
|
+
theme: e.theme,
|
|
1267
|
+
page: e.page
|
|
1268
|
+
}
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
function sr(e, t, n) {
|
|
1272
|
+
let r = e.findIndex((e) => e.theme === t && e.page === n);
|
|
1273
|
+
return r < 0 ? null : {
|
|
1274
|
+
...e[r],
|
|
1275
|
+
next: r < e.length - 1 ? or(e[r + 1]) : null
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
function cr(e) {
|
|
1279
|
+
let t = /* @__PURE__ */ new Map();
|
|
1280
|
+
for (let n of e?.items ?? []) {
|
|
1281
|
+
if (!n.image_url || n.curator_status !== "Y") continue;
|
|
1282
|
+
let e = n.display_order ?? 0;
|
|
1283
|
+
t.has(e) || t.set(e, []), t.get(e).push(n);
|
|
1284
|
+
}
|
|
1285
|
+
return [...t.entries()].sort(([e], [t]) => e - t).map(([e, t]) => ({
|
|
1286
|
+
n: e,
|
|
1287
|
+
variants: [...t].sort((e, t) => (e.variant_order ?? 0) - (t.variant_order ?? 0))
|
|
1288
|
+
})).filter((e) => (e.variants[0].variant_order ?? 1) === 1);
|
|
1289
|
+
}
|
|
1290
|
+
function lr({ item: e, own: t, entry: n, lang: r, countryName: i }) {
|
|
1291
|
+
let a = e?.type !== "monument", o = [
|
|
1292
|
+
a ? t.holder : "",
|
|
1293
|
+
t.location,
|
|
1294
|
+
i(t.country_id_present_days),
|
|
1295
|
+
i(e?.country_id)
|
|
1296
|
+
].map((e) => (e ?? "").trim()).filter(Boolean).join(", "), s = n?.curator_status === "Y" ? (n.justifications?.[r]?.curator ?? "").trim() : "";
|
|
1297
|
+
return {
|
|
1298
|
+
name: t.name ?? "",
|
|
1299
|
+
date: t.dates ?? "",
|
|
1300
|
+
place: o,
|
|
1301
|
+
artist: a ? t.artist ?? "" : "",
|
|
1302
|
+
material: a ? t.materials ?? "" : "",
|
|
1303
|
+
architects: a ? "" : t.architects ?? "",
|
|
1304
|
+
justification: s.replace(/\s+/g, " ")
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
function ur({ parent: e, exhibitionId: t, themeId: n = null, subthemeId: r = null, title: i = "", furtherReading: a }) {
|
|
1308
|
+
let o = encodeURIComponent(t), s = [`exhibition=${o}`];
|
|
1309
|
+
n && s.push(`theme=${encodeURIComponent(n)}`), r && s.push(`chapter=${encodeURIComponent(r)}`);
|
|
1310
|
+
let c = {
|
|
1311
|
+
key: "politicalTimeline",
|
|
1312
|
+
href: `${e}/#/timeline/results?collection=pc`
|
|
1313
|
+
}, l = {
|
|
1314
|
+
key: "thematicTimeline",
|
|
1315
|
+
href: `${e}/#/timeline/results?collection=${o}`,
|
|
1316
|
+
tipText: i.toLowerCase().replace(/(^|[\s])(\S)/g, (e, t, n) => t + n.toUpperCase())
|
|
1317
|
+
};
|
|
1318
|
+
return [
|
|
1319
|
+
...n && !r ? [l, c] : [c, l],
|
|
1320
|
+
{
|
|
1321
|
+
key: "gallery",
|
|
1322
|
+
href: `${e}/#/permanent-collection/results?${s.join("&")}`,
|
|
1323
|
+
tip: "galleryTip"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
key: "furtherReading",
|
|
1327
|
+
to: a,
|
|
1328
|
+
tip: "furtherReadingTip"
|
|
1329
|
+
}
|
|
1330
|
+
];
|
|
1331
|
+
}
|
|
1332
|
+
function $() {
|
|
1333
|
+
let { pkg: t, data: n, tree: r } = ze(), { locale: a, t: o } = R(), s = z(), c = s.minisite ?? {}, l = c.texts ?? "minisiteSharingHistory", u = (e) => o(`${l}.${e}`), d = V(), f = i(() => a.value);
|
|
1334
|
+
S(f, (e) => Promise.all(ir.flatMap((n) => [t.loadTranslations(n, e), t.loadTranslations(n, "en")])), { immediate: !0 });
|
|
1335
|
+
let p = r.root, m = i(() => p.value ? r.children(p.value.id) : []), h = i(() => ar(m.value, r.children)), g = (e) => t.translations("collections", f.value)[e] ?? {}, _ = (t.manifest.site?.languages ?? []).map((e) => e.code), v = (e) => t.manifest.site?.languages?.find((t) => t.code === e)?.label ?? e, y = (e) => e ? M(n.tr("countries", e, f.value).name ?? "") : "";
|
|
1336
|
+
function b(e) {
|
|
1337
|
+
return lr({
|
|
1338
|
+
item: n.itemById.value.get(e.id),
|
|
1339
|
+
own: n.tr("items", e.id, f.value),
|
|
1340
|
+
entry: e,
|
|
1341
|
+
lang: f.value,
|
|
1342
|
+
countryName: y
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
let x = (t) => t ? e(s.chrome, t) : null;
|
|
1346
|
+
function C(e) {
|
|
1347
|
+
return new URL(d.resolve({
|
|
1348
|
+
...e,
|
|
1349
|
+
query: {
|
|
1350
|
+
...e.query,
|
|
1351
|
+
lang: f.value
|
|
1352
|
+
}
|
|
1353
|
+
}).href, window.location.href).href;
|
|
1354
|
+
}
|
|
1355
|
+
return {
|
|
1356
|
+
t: o,
|
|
1357
|
+
label: u,
|
|
1358
|
+
lang: f,
|
|
1359
|
+
data: n,
|
|
1360
|
+
tree: r,
|
|
1361
|
+
root: p,
|
|
1362
|
+
themes: m,
|
|
1363
|
+
pages: h,
|
|
1364
|
+
text: g,
|
|
1365
|
+
offered: _,
|
|
1366
|
+
languageName: v,
|
|
1367
|
+
settings: c,
|
|
1368
|
+
caption: b,
|
|
1369
|
+
picture: x,
|
|
1370
|
+
href: C,
|
|
1371
|
+
imagesOf: (e) => [...p.value?.images ?? []].filter((t) => t.type === e).sort((e, t) => e.display_order - t.display_order),
|
|
1372
|
+
slots: cr,
|
|
1373
|
+
pageAt: (e, t) => sr(h.value, e, t),
|
|
1374
|
+
title: i(() => p.value ? g(p.value.id).title ?? "" : ""),
|
|
1375
|
+
related: (e = null, t = null) => p.value ? ur({
|
|
1376
|
+
parent: c.parent,
|
|
1377
|
+
exhibitionId: p.value.id,
|
|
1378
|
+
themeId: e,
|
|
1379
|
+
subthemeId: t,
|
|
1380
|
+
title: g(p.value.id).title ?? "",
|
|
1381
|
+
furtherReading: { name: "further-reading" }
|
|
1382
|
+
}) : []
|
|
1383
|
+
};
|
|
1384
|
+
}
|
|
1385
|
+
var dr = {
|
|
1386
|
+
credits: ["exhcredits", "scrollbars=auto, resizable=1, width=520, height=530"],
|
|
1387
|
+
coverImage: ["exhCoverImage", "scrollbars=auto, resizable=1, width=520, height=530"],
|
|
1388
|
+
zoom: ["SHImages", "scrollbars=no,resize=no,width=565,height=435"]
|
|
1389
|
+
}, fr = { class: "mwnf-sh-related" }, pr = { class: "mwnf-sh-related__heading" }, mr = ["src"], hr = ["href", "target"], gr = {
|
|
1390
|
+
key: 0,
|
|
1391
|
+
class: "mwnf-sh-related__all"
|
|
1392
|
+
}, _r = ["src"], vr = ["href"], yr = {
|
|
1393
|
+
__name: "Related",
|
|
1394
|
+
props: {
|
|
1395
|
+
allExhibitions: {
|
|
1396
|
+
type: Boolean,
|
|
1397
|
+
default: !1
|
|
1398
|
+
},
|
|
1399
|
+
arrow: {
|
|
1400
|
+
type: String,
|
|
1401
|
+
default: "legacy/arrow_inner_black.gif"
|
|
1402
|
+
},
|
|
1403
|
+
themeId: {
|
|
1404
|
+
type: String,
|
|
1405
|
+
default: null
|
|
1406
|
+
},
|
|
1407
|
+
subthemeId: {
|
|
1408
|
+
type: String,
|
|
1409
|
+
default: null
|
|
1410
|
+
}
|
|
1411
|
+
},
|
|
1412
|
+
setup(e) {
|
|
1413
|
+
let t = e, { label: r, picture: u, related: d, settings: f } = $(), m = i(() => d(t.themeId, t.subthemeId)), h = i(() => t.themeId ? "_blank" : void 0), _ = (e) => e.tipText ?? (e.tip ? r(`related.${e.tip}`) : "");
|
|
1414
|
+
return (t, i) => {
|
|
1415
|
+
let d = v("router-link");
|
|
1416
|
+
return p(), s("div", fr, [c("span", pr, "\xA0" + y(b(r)("related.heading")), 1), c("ul", null, [(p(!0), s(n, null, g(m.value, (t) => (p(), s("li", { key: t.key }, [
|
|
1417
|
+
i[0] ||= l(" \xA0", -1),
|
|
1418
|
+
c("img", {
|
|
1419
|
+
src: b(u)(e.arrow),
|
|
1420
|
+
alt: "",
|
|
1421
|
+
class: "mwnf-sh-arrow",
|
|
1422
|
+
width: "11",
|
|
1423
|
+
height: "8"
|
|
1424
|
+
}, null, 8, mr),
|
|
1425
|
+
t.to ? w((p(), a(d, {
|
|
1426
|
+
key: 0,
|
|
1427
|
+
to: t.to,
|
|
1428
|
+
target: h.value
|
|
1429
|
+
}, {
|
|
1430
|
+
default: C(() => [l(y(b(r)(`related.${t.key}`)), 1)]),
|
|
1431
|
+
_: 2
|
|
1432
|
+
}, 1032, ["to", "target"])), [[b(G), { text: _(t) }]]) : w((p(), s("a", {
|
|
1433
|
+
key: 1,
|
|
1434
|
+
href: t.href,
|
|
1435
|
+
target: h.value
|
|
1436
|
+
}, [l(y(b(r)(`related.${t.key}`)), 1)], 8, hr)), [[b(G), { text: _(t) }]])
|
|
1437
|
+
]))), 128)), e.allExhibitions ? (p(), s("li", gr, [
|
|
1438
|
+
i[1] ||= l(" \xA0", -1),
|
|
1439
|
+
c("img", {
|
|
1440
|
+
src: b(u)(e.arrow),
|
|
1441
|
+
alt: "",
|
|
1442
|
+
class: "mwnf-sh-arrow",
|
|
1443
|
+
width: "11",
|
|
1444
|
+
height: "8"
|
|
1445
|
+
}, null, 8, _r),
|
|
1446
|
+
c("b", null, [c("a", { href: `${b(f).parent}/#/exhibitions` }, y(b(r)("nav.allExhibitions")), 9, vr)])
|
|
1447
|
+
])) : o("", !0)])]);
|
|
1448
|
+
};
|
|
1449
|
+
}
|
|
1450
|
+
}, br = ["src"], xr = ["src"], Sr = ["src"], Cr = "https://www.museumwnf.org/about/support", wr = {
|
|
1451
|
+
__name: "Windows",
|
|
1452
|
+
setup(e) {
|
|
1453
|
+
let { href: t, label: n, picture: r } = $(), i = r("legacy/arrow_curator.gif");
|
|
1454
|
+
return (e, r) => (p(), s("div", null, [
|
|
1455
|
+
c("a", {
|
|
1456
|
+
href: "#",
|
|
1457
|
+
onClick: r[0] ||= T((e) => b(Z)(b(t)({ name: "credits" }), b(dr).credits), ["prevent"])
|
|
1458
|
+
}, [l(y(b(n)("band.curatedBy")) + " ", 1), b(i) ? (p(), s("img", {
|
|
1459
|
+
key: 0,
|
|
1460
|
+
src: b(i),
|
|
1461
|
+
alt: "",
|
|
1462
|
+
width: "12",
|
|
1463
|
+
height: "7"
|
|
1464
|
+
}, null, 8, br)) : o("", !0)]),
|
|
1465
|
+
c("div", null, [c("a", {
|
|
1466
|
+
href: "#",
|
|
1467
|
+
onClick: r[1] ||= T((e) => b(Z)(b(t)({ name: "cover-image" }), b(dr).coverImage), ["prevent"])
|
|
1468
|
+
}, [l(y(b(n)("band.coverImage")) + " ", 1), b(i) ? (p(), s("img", {
|
|
1469
|
+
key: 0,
|
|
1470
|
+
src: b(i),
|
|
1471
|
+
alt: "",
|
|
1472
|
+
width: "12",
|
|
1473
|
+
height: "7"
|
|
1474
|
+
}, null, 8, xr)) : o("", !0)])]),
|
|
1475
|
+
c("div", null, [c("a", { href: Cr }, [l(y(b(n)("band.support")) + " ", 1), b(i) ? (p(), s("img", {
|
|
1476
|
+
key: 0,
|
|
1477
|
+
src: b(i),
|
|
1478
|
+
alt: "",
|
|
1479
|
+
width: "12",
|
|
1480
|
+
height: "7"
|
|
1481
|
+
}, null, 8, Sr)) : o("", !0)])])
|
|
1482
|
+
]));
|
|
1483
|
+
}
|
|
1484
|
+
}, Tr = {
|
|
1485
|
+
key: 0,
|
|
1486
|
+
class: "mwnf-sh-home"
|
|
1487
|
+
}, Er = { class: "mwnf-sh-home__heading" }, Dr = { class: "mwnf-sh-home__title" }, Or = ["innerHTML"], kr = { class: "mwnf-sh-home__menu" }, Ar = { class: "mwnf-sh-home__themes" }, jr = ["src"], Mr = ["aria-expanded", "onClick"], Nr = ["src"], Pr = {
|
|
1488
|
+
key: 0,
|
|
1489
|
+
class: "mwnf-sh-home__pages"
|
|
1490
|
+
}, Fr = ["src"], Ir = ["src"], Lr = { class: "mwnf-sh-band" }, Rr = { class: "mwnf-sh-band__logos" }, zr = {
|
|
1491
|
+
key: 0,
|
|
1492
|
+
class: "mwnf-sh-band__gap"
|
|
1493
|
+
}, Br = ["href"], Vr = ["src"], Hr = ["src"], Ur = {
|
|
1494
|
+
__name: "Home",
|
|
1495
|
+
setup(e) {
|
|
1496
|
+
let { data: t, imagesOf: r, label: a, picture: d, root: m, settings: _, text: x, themes: S, title: T, tree: E } = $(), D = (e) => _.partnerLinks?.[e.link] ?? e.link, O = i(() => m.value ? x(m.value.id).extra?.subtitle ?? "" : ""), k = i(() => r("logo")), A = h(-1);
|
|
1497
|
+
return (e, r) => {
|
|
1498
|
+
let i = v("router-link");
|
|
1499
|
+
return b(m) ? (p(), s("div", Tr, [
|
|
1500
|
+
c("div", {
|
|
1501
|
+
class: "mwnf-sh-home__picture",
|
|
1502
|
+
style: f({ backgroundImage: `url(${b(d)("legacy/home_bg.jpg") ?? ""})` })
|
|
1503
|
+
}, [c("div", Er, [c("div", Dr, y(b(T)), 1), O.value ? (p(), s("div", {
|
|
1504
|
+
key: 0,
|
|
1505
|
+
class: "mwnf-sh-home__quote",
|
|
1506
|
+
innerHTML: b(t).mdInline(O.value)
|
|
1507
|
+
}, null, 8, Or)) : o("", !0)])], 4),
|
|
1508
|
+
c("div", kr, [c("div", Ar, [u(i, { to: { name: "introduction" } }, {
|
|
1509
|
+
default: C(() => [c("b", null, y(b(a)("home.introduction")), 1), c("img", {
|
|
1510
|
+
src: b(d)("legacy/arrow_black.gif"),
|
|
1511
|
+
alt: "",
|
|
1512
|
+
width: "15",
|
|
1513
|
+
height: "9"
|
|
1514
|
+
}, null, 8, jr)]),
|
|
1515
|
+
_: 1
|
|
1516
|
+
}), (p(!0), s(n, null, g(b(S), (e, t) => (p(), s("div", { key: e.id }, [c("button", {
|
|
1517
|
+
type: "button",
|
|
1518
|
+
class: "mwnf-sh-home__theme",
|
|
1519
|
+
"aria-expanded": A.value === t,
|
|
1520
|
+
onClick: (e) => A.value = A.value === t ? -1 : t
|
|
1521
|
+
}, [l(y(b(x)(e.id).title) + " ", 1), c("img", {
|
|
1522
|
+
src: b(d)("legacy/arrow_black_down.gif"),
|
|
1523
|
+
alt: "",
|
|
1524
|
+
width: "15",
|
|
1525
|
+
height: "9"
|
|
1526
|
+
}, null, 8, Nr)], 8, Mr), A.value === t ? (p(), s("ul", Pr, [c("li", null, [c("img", {
|
|
1527
|
+
src: b(d)("legacy/arrow_inner_black.gif"),
|
|
1528
|
+
alt: "",
|
|
1529
|
+
class: "mwnf-sh-arrow",
|
|
1530
|
+
width: "11",
|
|
1531
|
+
height: "8"
|
|
1532
|
+
}, null, 8, Fr), u(i, { to: {
|
|
1533
|
+
name: "theme",
|
|
1534
|
+
params: { theme: t + 1 }
|
|
1535
|
+
} }, {
|
|
1536
|
+
default: C(() => [l(y(b(a)("home.overview")), 1)]),
|
|
1537
|
+
_: 1
|
|
1538
|
+
}, 8, ["to"])]), (p(!0), s(n, null, g(b(E).children(e.id), (e, n) => (p(), s("li", { key: e.id }, [c("img", {
|
|
1539
|
+
src: b(d)("legacy/arrow_inner_black.gif"),
|
|
1540
|
+
alt: "",
|
|
1541
|
+
class: "mwnf-sh-arrow",
|
|
1542
|
+
width: "11",
|
|
1543
|
+
height: "8"
|
|
1544
|
+
}, null, 8, Ir), u(i, { to: {
|
|
1545
|
+
name: "subtheme",
|
|
1546
|
+
params: {
|
|
1547
|
+
theme: t + 1,
|
|
1548
|
+
page: n + 1
|
|
1549
|
+
}
|
|
1550
|
+
} }, {
|
|
1551
|
+
default: C(() => [l(y(b(x)(e.id).title), 1)]),
|
|
1552
|
+
_: 2
|
|
1553
|
+
}, 1032, ["to"])]))), 128))])) : o("", !0)]))), 128))]), u(yr, { "all-exhibitions": "" })]),
|
|
1554
|
+
c("div", Lr, [u(wr, { class: "mwnf-sh-band__links" }), c("div", Rr, [(p(!0), s(n, null, g(k.value, (e, t) => (p(), s(n, { key: e.url }, [t > 0 ? (p(), s("span", zr)) : o("", !0), e.link ? w((p(), s("a", {
|
|
1555
|
+
key: 1,
|
|
1556
|
+
href: D(e)
|
|
1557
|
+
}, [c("img", {
|
|
1558
|
+
src: e.url,
|
|
1559
|
+
alt: ""
|
|
1560
|
+
}, null, 8, Vr)], 8, Br)), [[b(G), { text: e.alt_text ?? "" }]]) : (p(), s("img", {
|
|
1561
|
+
key: 2,
|
|
1562
|
+
src: e.url,
|
|
1563
|
+
alt: ""
|
|
1564
|
+
}, null, 8, Hr))], 64))), 128))])])
|
|
1565
|
+
])) : o("", !0);
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1568
|
+
}, Wr = { class: "mwnf-sh-banner__title" }, Gr = { class: "mwnf-sh-nav" }, Kr = { class: "mwnf-sh-nav__group" }, qr = { class: "mwnf-sh-nav__first" }, Jr = { class: "mwnf-sh-nav__second" }, Yr = ["href"], Xr = {
|
|
1569
|
+
key: 0,
|
|
1570
|
+
class: "mwnf-sh-nav__group"
|
|
1571
|
+
}, Zr = { class: "mwnf-sh-nav__first mwnf-sh-nav__previous" }, Qr = {
|
|
1572
|
+
key: 0,
|
|
1573
|
+
class: "mwnf-sh-nav__second mwnf-sh-nav__next"
|
|
1574
|
+
}, $r = {
|
|
1575
|
+
__name: "Banner",
|
|
1576
|
+
props: {
|
|
1577
|
+
kind: {
|
|
1578
|
+
type: String,
|
|
1579
|
+
default: "page"
|
|
1580
|
+
},
|
|
1581
|
+
heading: {
|
|
1582
|
+
type: String,
|
|
1583
|
+
default: null
|
|
1584
|
+
},
|
|
1585
|
+
paging: {
|
|
1586
|
+
type: Boolean,
|
|
1587
|
+
default: !0
|
|
1588
|
+
},
|
|
1589
|
+
previous: {
|
|
1590
|
+
type: Object,
|
|
1591
|
+
default: null
|
|
1592
|
+
},
|
|
1593
|
+
next: {
|
|
1594
|
+
type: Object,
|
|
1595
|
+
default: null
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
setup(e) {
|
|
1599
|
+
let t = e, n = V(), { label: r, picture: i, settings: a, title: m } = $(), h = i(t.kind === "intro" ? "legacy/intro_bg.jpg" : "legacy/exhibition_bg.jpg");
|
|
1600
|
+
function g() {
|
|
1601
|
+
t.previous ? n.push(t.previous) : n.back();
|
|
1602
|
+
}
|
|
1603
|
+
return (t, n) => {
|
|
1604
|
+
let i = v("router-link");
|
|
1605
|
+
return p(), s("div", {
|
|
1606
|
+
class: d(["mwnf-sh-banner", `mwnf-sh-banner--${e.kind}`]),
|
|
1607
|
+
style: f({ backgroundImage: b(h) ? `url(${b(h)})` : "none" })
|
|
1608
|
+
}, [
|
|
1609
|
+
n[0] ||= c("div", { class: "mwnf-sh-banner__top" }, null, -1),
|
|
1610
|
+
c("div", Wr, y(e.heading ?? b(m)), 1),
|
|
1611
|
+
c("nav", Gr, [c("div", Kr, [c("div", qr, [u(i, { to: { name: "home" } }, {
|
|
1612
|
+
default: C(() => [l(y(b(r)("nav.entrance")), 1)]),
|
|
1613
|
+
_: 1
|
|
1614
|
+
})]), c("div", Jr, [c("a", { href: `${b(a).parent}/#/exhibitions` }, y(b(r)("nav.allExhibitions")), 9, Yr)])]), e.paging ? (p(), s("div", Xr, [c("div", Zr, [c("button", {
|
|
1615
|
+
type: "button",
|
|
1616
|
+
onClick: g
|
|
1617
|
+
}, y(b(r)("nav.previous")), 1)]), e.next ? (p(), s("div", Qr, [u(i, { to: e.next }, {
|
|
1618
|
+
default: C(() => [l(y(b(r)("nav.next")), 1)]),
|
|
1619
|
+
_: 1
|
|
1620
|
+
}, 8, ["to"])])) : o("", !0)])) : o("", !0)])
|
|
1621
|
+
], 6);
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
}, ei = { class: "mwnf-sh-download" }, ti = ["src"], ni = ["src"], ri = ["src"], ii = {
|
|
1625
|
+
__name: "Download",
|
|
1626
|
+
props: {
|
|
1627
|
+
title: {
|
|
1628
|
+
type: String,
|
|
1629
|
+
required: !0
|
|
1630
|
+
},
|
|
1631
|
+
blocks: {
|
|
1632
|
+
type: Array,
|
|
1633
|
+
default: () => []
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
setup(e) {
|
|
1637
|
+
let t = e, { label: n, picture: r } = $(), i = (e) => String(e ?? "").replace(/[&<>"]/g, (e) => ({
|
|
1638
|
+
"&": "&",
|
|
1639
|
+
"<": "<",
|
|
1640
|
+
">": ">",
|
|
1641
|
+
"\"": """
|
|
1642
|
+
})[e]);
|
|
1643
|
+
function a() {
|
|
1644
|
+
let e = t.blocks.map(({ heading: e, text: t }) => `${e ? `<h2>${i(A(e))}</h2>` : ""}${t ? N(t) : ""}`).join(""), n = `<!DOCTYPE html><html><head><meta charset="utf-8"><title>${i(A(t.title))}</title></head><body><h1>${i(A(t.title))}</h1>${e}</body></html>`, r = document.createElement("a");
|
|
1645
|
+
r.href = URL.createObjectURL(new window.Blob([n], { type: "application/vnd.ms-word" })), r.download = `${A(t.title).replace(/[,:]/g, "").replace(/ /g, "-")}.doc`, document.body.appendChild(r), r.click(), r.remove(), URL.revokeObjectURL(r.href);
|
|
1646
|
+
}
|
|
1647
|
+
return (e, t) => (p(), s("div", ei, [
|
|
1648
|
+
c("img", {
|
|
1649
|
+
src: b(r)("legacy/print.gif"),
|
|
1650
|
+
alt: "",
|
|
1651
|
+
width: "14",
|
|
1652
|
+
height: "14"
|
|
1653
|
+
}, null, 8, ti),
|
|
1654
|
+
l(" / " + y(b(n)("download.heading")), 1),
|
|
1655
|
+
t[1] ||= c("br", null, null, -1),
|
|
1656
|
+
c("img", {
|
|
1657
|
+
src: b(r)("legacy/arrow_inner_black.gif"),
|
|
1658
|
+
alt: "",
|
|
1659
|
+
class: "mwnf-sh-arrow",
|
|
1660
|
+
width: "11",
|
|
1661
|
+
height: "8"
|
|
1662
|
+
}, null, 8, ni),
|
|
1663
|
+
c("a", {
|
|
1664
|
+
href: "#",
|
|
1665
|
+
onClick: t[0] ||= T((t) => e.window.print(), ["prevent"])
|
|
1666
|
+
}, y(b(n)("download.asPdf")), 1),
|
|
1667
|
+
t[2] ||= c("br", null, null, -1),
|
|
1668
|
+
c("img", {
|
|
1669
|
+
src: b(r)("legacy/arrow_inner_black.gif"),
|
|
1670
|
+
alt: "",
|
|
1671
|
+
class: "mwnf-sh-arrow",
|
|
1672
|
+
width: "11",
|
|
1673
|
+
height: "8"
|
|
1674
|
+
}, null, 8, ri),
|
|
1675
|
+
c("a", {
|
|
1676
|
+
href: "#",
|
|
1677
|
+
onClick: T(a, ["prevent"])
|
|
1678
|
+
}, y(b(n)("download.asWord")), 1)
|
|
1679
|
+
]));
|
|
1680
|
+
}
|
|
1681
|
+
}, ai = {
|
|
1682
|
+
key: 0,
|
|
1683
|
+
style: { "font-size": "calc(11px * var(--sh-text-scale, 1))" }
|
|
1684
|
+
}, oi = { class: "mwnf-sh-intro" }, si = { class: "mwnf-sh-intro__text" }, ci = { class: "mwnf-sh-intro__heading" }, li = ["innerHTML"], ui = { class: "mwnf-sh-intro__pictures" }, di = {
|
|
1685
|
+
key: 0,
|
|
1686
|
+
class: "mwnf-sh-intro__picture"
|
|
1687
|
+
}, fi = { class: "mwnf-sh-intro__frame" }, pi = ["src"], mi = ["src"], hi = ["innerHTML"], gi = ["innerHTML"], _i = ["innerHTML"], vi = ["src"], yi = ["href"], bi = {
|
|
1688
|
+
key: 1,
|
|
1689
|
+
class: "mwnf-sh-intro__thumbs"
|
|
1690
|
+
}, xi = ["onClick"], Si = ["src"], Ci = { class: "mwnf-sh-bottom" }, wi = { class: "mwnf-sh-bottom__pages" }, Ti = ["src"], Ei = { class: "mwnf-sh-bottom__current" }, Di = ["src"], Oi = { class: "mwnf-sh-bottom__related" }, ki = {
|
|
1691
|
+
__name: "Introduction",
|
|
1692
|
+
setup(e) {
|
|
1693
|
+
let { caption: t, data: r, href: a, label: d, lang: f, pages: m, picture: _, root: x, settings: S, text: T, themes: E, title: D } = $(), O = i(() => x.value ? T(x.value.id) : {}), k = i(() => m.value[0] ? {
|
|
1694
|
+
name: "theme",
|
|
1695
|
+
params: { theme: 1 }
|
|
1696
|
+
} : null), A = i(() => [...x.value?.items ?? []].filter((e) => e.image_url).sort((e, t) => (e.display_order ?? 0) - (t.display_order ?? 0)).slice(0, 5)), j = h(0), M = i(() => A.value[j.value] ?? null), N = i(() => {
|
|
1697
|
+
if (!M.value) return null;
|
|
1698
|
+
let e = r.tr("items", M.value.id, f.value), n = r.itemById.value.get(M.value.id)?.images?.[0]?.photographers ?? {};
|
|
1699
|
+
return {
|
|
1700
|
+
...t(M.value),
|
|
1701
|
+
secondName: e.second_name ?? "",
|
|
1702
|
+
photographer: n[f.value] ?? n.en ?? ""
|
|
1703
|
+
};
|
|
1704
|
+
}), P = i(() => M.value ? `${S.parent}/#/item/${encodeURIComponent(M.value.id)}` : "");
|
|
1705
|
+
function F() {
|
|
1706
|
+
Z(a({
|
|
1707
|
+
name: "zoom",
|
|
1708
|
+
query: { img: M.value.image_url }
|
|
1709
|
+
}), dr.zoom);
|
|
1710
|
+
}
|
|
1711
|
+
return (e, t) => {
|
|
1712
|
+
let i = v("router-link");
|
|
1713
|
+
return b(x) ? (p(), s("div", ai, [
|
|
1714
|
+
u($r, {
|
|
1715
|
+
kind: "intro",
|
|
1716
|
+
previous: { name: "home" },
|
|
1717
|
+
next: k.value
|
|
1718
|
+
}, null, 8, ["next"]),
|
|
1719
|
+
c("div", oi, [c("div", si, [
|
|
1720
|
+
c("div", ci, y(b(d)("home.introduction")), 1),
|
|
1721
|
+
c("div", {
|
|
1722
|
+
class: "mwnf-sh-intro__body",
|
|
1723
|
+
innerHTML: b(r).md(O.value.description ?? "")
|
|
1724
|
+
}, null, 8, li),
|
|
1725
|
+
u(ii, {
|
|
1726
|
+
title: b(D),
|
|
1727
|
+
blocks: [{
|
|
1728
|
+
heading: b(d)("home.introduction"),
|
|
1729
|
+
text: O.value.description ?? ""
|
|
1730
|
+
}]
|
|
1731
|
+
}, null, 8, ["title", "blocks"])
|
|
1732
|
+
]), c("div", ui, [M.value ? (p(), s("div", di, [
|
|
1733
|
+
c("div", fi, [c("div", null, [
|
|
1734
|
+
w((p(), s("button", {
|
|
1735
|
+
type: "button",
|
|
1736
|
+
onClick: F
|
|
1737
|
+
}, [c("img", {
|
|
1738
|
+
class: "mwnf-sh-intro__shown",
|
|
1739
|
+
src: M.value.image_url,
|
|
1740
|
+
alt: ""
|
|
1741
|
+
}, null, 8, pi)])), [[b(G), { text: b(d)("item.showZoom") }]]),
|
|
1742
|
+
t[0] ||= l("\xA0", -1),
|
|
1743
|
+
t[1] ||= c("br", null, null, -1),
|
|
1744
|
+
w((p(), s("button", {
|
|
1745
|
+
type: "button",
|
|
1746
|
+
onClick: F
|
|
1747
|
+
}, [c("img", {
|
|
1748
|
+
src: b(_)("legacy/magnify.png"),
|
|
1749
|
+
alt: "",
|
|
1750
|
+
width: "15",
|
|
1751
|
+
height: "15"
|
|
1752
|
+
}, null, 8, mi)])), [[b(G), { text: b(d)("item.showZoom") }]])
|
|
1753
|
+
])]),
|
|
1754
|
+
N.value.name ? (p(), s("b", {
|
|
1755
|
+
key: 0,
|
|
1756
|
+
innerHTML: b(r).mdInline(N.value.name)
|
|
1757
|
+
}, null, 8, hi)) : o("", !0),
|
|
1758
|
+
N.value.secondName ? (p(), s(n, { key: 1 }, [
|
|
1759
|
+
t[2] ||= c("br", null, null, -1),
|
|
1760
|
+
t[3] ||= c("br", null, null, -1),
|
|
1761
|
+
c("b", { innerHTML: b(r).mdInline(N.value.secondName) }, null, 8, gi)
|
|
1762
|
+
], 64)) : o("", !0),
|
|
1763
|
+
(p(), s(n, null, g([
|
|
1764
|
+
"date",
|
|
1765
|
+
"place",
|
|
1766
|
+
"artist",
|
|
1767
|
+
"material",
|
|
1768
|
+
"architects",
|
|
1769
|
+
"photographer"
|
|
1770
|
+
], (e) => (p(), s(n, { key: e }, [N.value[e] ? (p(), s(n, { key: 0 }, [
|
|
1771
|
+
t[4] ||= c("br", null, null, -1),
|
|
1772
|
+
t[5] ||= c("br", null, null, -1),
|
|
1773
|
+
c("span", { innerHTML: b(r).mdInline(N.value[e]) }, null, 8, _i)
|
|
1774
|
+
], 64)) : o("", !0)], 64))), 64)),
|
|
1775
|
+
t[6] ||= c("br", null, null, -1),
|
|
1776
|
+
t[7] ||= c("br", null, null, -1),
|
|
1777
|
+
c("img", {
|
|
1778
|
+
src: b(_)("legacy/arrow_inner_black.gif"),
|
|
1779
|
+
alt: "",
|
|
1780
|
+
class: "mwnf-sh-arrow",
|
|
1781
|
+
width: "11",
|
|
1782
|
+
height: "8"
|
|
1783
|
+
}, null, 8, vi),
|
|
1784
|
+
c("a", { href: P.value }, y(b(d)("item.moreInfo")), 9, yi)
|
|
1785
|
+
])) : o("", !0), A.value.length ? (p(), s("div", bi, [(p(!0), s(n, null, g(A.value, (e, t) => (p(), s("button", {
|
|
1786
|
+
key: e.image_url,
|
|
1787
|
+
type: "button",
|
|
1788
|
+
onClick: (e) => j.value = t
|
|
1789
|
+
}, [c("img", {
|
|
1790
|
+
src: e.image_url,
|
|
1791
|
+
alt: ""
|
|
1792
|
+
}, null, 8, Si)], 8, xi))), 128))])) : o("", !0)])]),
|
|
1793
|
+
c("div", Ci, [c("div", wi, [c("b", null, y(b(d)("page.inExhibition")), 1), c("ul", null, [c("li", null, [c("img", {
|
|
1794
|
+
src: b(_)("legacy/arrow.gif"),
|
|
1795
|
+
alt: "",
|
|
1796
|
+
width: "10",
|
|
1797
|
+
height: "9"
|
|
1798
|
+
}, null, 8, Ti), c("span", Ei, y(b(d)("home.introduction")), 1)]), (p(!0), s(n, null, g(b(E), (e, t) => (p(), s("li", { key: e.id }, [c("img", {
|
|
1799
|
+
src: b(_)("legacy/arrow.gif"),
|
|
1800
|
+
alt: "",
|
|
1801
|
+
width: "10",
|
|
1802
|
+
height: "9"
|
|
1803
|
+
}, null, 8, Di), u(i, { to: {
|
|
1804
|
+
name: "theme",
|
|
1805
|
+
params: { theme: t + 1 }
|
|
1806
|
+
} }, {
|
|
1807
|
+
default: C(() => [l(y(b(T)(e.id).title), 1)]),
|
|
1808
|
+
_: 2
|
|
1809
|
+
}, 1032, ["to"])]))), 128))])]), c("div", Oi, [u(yr, { arrow: "legacy/arrow_inner.gif" }), u(wr, { class: "mwnf-sh-bottom__windows" })])])
|
|
1810
|
+
])) : o("", !0);
|
|
1811
|
+
};
|
|
1812
|
+
}
|
|
1813
|
+
}, Ai = {
|
|
1814
|
+
key: 0,
|
|
1815
|
+
class: "mwnf-sh-panel"
|
|
1816
|
+
}, ji = { class: "mwnf-sh-panel__picture" }, Mi = { class: "mwnf-sh-panel__frame" }, Ni = ["src"], Pi = { class: "mwnf-sh-panel__magnify" }, Fi = ["src"], Ii = { class: "mwnf-sh-panel__caption" }, Li = ["innerHTML"], Ri = ["innerHTML"], zi = ["innerHTML"], Bi = ["innerHTML"], Vi = ["innerHTML"], Hi = ["innerHTML"], Ui = ["innerHTML"], Wi = ["src"], Gi = ["href"], Ki = { class: "mwnf-sh-panel__related" }, qi = ["onClick"], Ji = ["src"], Yi = {
|
|
1817
|
+
__name: "Panel",
|
|
1818
|
+
props: {
|
|
1819
|
+
slot: {
|
|
1820
|
+
type: Object,
|
|
1821
|
+
default: null
|
|
1822
|
+
},
|
|
1823
|
+
view: {
|
|
1824
|
+
type: Number,
|
|
1825
|
+
default: 0
|
|
1826
|
+
}
|
|
1827
|
+
},
|
|
1828
|
+
emits: ["update:view"],
|
|
1829
|
+
setup(e, { emit: t }) {
|
|
1830
|
+
let r = e, a = t, { caption: l, data: u, href: d, label: f, picture: m, settings: h } = $(), _ = i(() => r.slot?.variants[r.view] ?? null), v = i(() => _.value ? l(_.value) : null), x = i(() => _.value ? `${h.parent}/#/item/${encodeURIComponent(_.value.id)}` : ""), S = i(() => (r.slot?.variants ?? []).slice(0, 6).map((e, t) => ({
|
|
1831
|
+
variant: e,
|
|
1832
|
+
index: t
|
|
1833
|
+
})).filter((e) => e.index !== r.view));
|
|
1834
|
+
function C() {
|
|
1835
|
+
Z(d({
|
|
1836
|
+
name: "zoom",
|
|
1837
|
+
query: { img: _.value.image_url }
|
|
1838
|
+
}), dr.zoom);
|
|
1839
|
+
}
|
|
1840
|
+
return (e, t) => _.value ? (p(), s("div", Ai, [c("div", ji, [c("div", Mi, [c("div", null, [w((p(), s("button", {
|
|
1841
|
+
type: "button",
|
|
1842
|
+
onClick: C
|
|
1843
|
+
}, [c("img", {
|
|
1844
|
+
class: "mwnf-sh-panel__shown",
|
|
1845
|
+
src: _.value.image_url,
|
|
1846
|
+
alt: ""
|
|
1847
|
+
}, null, 8, Ni)])), [[b(G), { text: b(f)("item.showZoom") }]]), c("div", Pi, [w((p(), s("button", {
|
|
1848
|
+
type: "button",
|
|
1849
|
+
onClick: C
|
|
1850
|
+
}, [c("img", {
|
|
1851
|
+
src: b(m)("legacy/magnify.png"),
|
|
1852
|
+
alt: "",
|
|
1853
|
+
width: "15",
|
|
1854
|
+
height: "15"
|
|
1855
|
+
}, null, 8, Fi)])), [[b(G), { text: b(f)("item.showZoom") }]])])])])]), c("div", Ii, [
|
|
1856
|
+
v.value.name ? (p(), s("p", {
|
|
1857
|
+
key: 0,
|
|
1858
|
+
class: "mwnf-sh-panel__name",
|
|
1859
|
+
innerHTML: b(u).mdInline(v.value.name)
|
|
1860
|
+
}, null, 8, Li)) : o("", !0),
|
|
1861
|
+
v.value.date ? (p(), s("p", {
|
|
1862
|
+
key: 1,
|
|
1863
|
+
innerHTML: b(u).mdInline(v.value.date)
|
|
1864
|
+
}, null, 8, Ri)) : o("", !0),
|
|
1865
|
+
v.value.place ? (p(), s("p", {
|
|
1866
|
+
key: 2,
|
|
1867
|
+
innerHTML: b(u).mdInline(v.value.place)
|
|
1868
|
+
}, null, 8, zi)) : o("", !0),
|
|
1869
|
+
v.value.artist ? (p(), s("p", {
|
|
1870
|
+
key: 3,
|
|
1871
|
+
innerHTML: b(u).mdInline(v.value.artist)
|
|
1872
|
+
}, null, 8, Bi)) : o("", !0),
|
|
1873
|
+
v.value.material ? (p(), s("p", {
|
|
1874
|
+
key: 4,
|
|
1875
|
+
innerHTML: b(u).mdInline(v.value.material)
|
|
1876
|
+
}, null, 8, Vi)) : o("", !0),
|
|
1877
|
+
v.value.architects ? (p(), s("p", {
|
|
1878
|
+
key: 5,
|
|
1879
|
+
innerHTML: b(u).mdInline(v.value.architects)
|
|
1880
|
+
}, null, 8, Hi)) : o("", !0),
|
|
1881
|
+
v.value.justification ? (p(), s("p", {
|
|
1882
|
+
key: 6,
|
|
1883
|
+
class: "mwnf-sh-panel__justification",
|
|
1884
|
+
innerHTML: b(u).mdInline(v.value.justification)
|
|
1885
|
+
}, null, 8, Ui)) : o("", !0),
|
|
1886
|
+
c("p", null, [c("img", {
|
|
1887
|
+
src: b(m)("legacy/arrow_inner_black.gif"),
|
|
1888
|
+
alt: "",
|
|
1889
|
+
class: "mwnf-sh-arrow",
|
|
1890
|
+
width: "11",
|
|
1891
|
+
height: "8"
|
|
1892
|
+
}, null, 8, Wi), c("a", {
|
|
1893
|
+
href: x.value,
|
|
1894
|
+
target: "_blank",
|
|
1895
|
+
rel: "noopener"
|
|
1896
|
+
}, y(b(f)("item.moreInfo")), 9, Gi)]),
|
|
1897
|
+
S.value.length ? (p(), s(n, { key: 7 }, [c("p", null, [c("b", null, y(b(f)("item.related")), 1)]), c("div", Ki, [(p(!0), s(n, null, g(S.value, (e) => (p(), s("button", {
|
|
1898
|
+
key: e.index,
|
|
1899
|
+
type: "button",
|
|
1900
|
+
onClick: (t) => a("update:view", e.index)
|
|
1901
|
+
}, [c("img", {
|
|
1902
|
+
src: e.variant.image_url,
|
|
1903
|
+
alt: ""
|
|
1904
|
+
}, null, 8, Ji)], 8, qi))), 128))])], 64)) : o("", !0)
|
|
1905
|
+
])])) : o("", !0);
|
|
1906
|
+
}
|
|
1907
|
+
}, Xi = {
|
|
1908
|
+
key: 1,
|
|
1909
|
+
class: "mwnf-sh-pagewrap",
|
|
1910
|
+
style: { "font-size": "calc(11px * var(--sh-text-scale, 1))" }
|
|
1911
|
+
}, Zi = { class: "mwnf-sh-page" }, Qi = { class: "mwnf-sh-page__text" }, $i = { class: "mwnf-sh-page__theme" }, ea = { class: "mwnf-sh-page__name" }, ta = {
|
|
1912
|
+
key: 0,
|
|
1913
|
+
class: "mwnf-sh-page__thumbs"
|
|
1914
|
+
}, na = ["onClick"], ra = ["src"], ia = { class: "mwnf-sh-page__body" }, aa = ["innerHTML"], oa = ["innerHTML"], sa = { class: "mwnf-sh-more" }, ca = { class: "mwnf-sh-more__label" }, la = { class: "mwnf-sh-more__theme" }, ua = ["src"], da = {
|
|
1915
|
+
key: 0,
|
|
1916
|
+
class: "mwnf-sh-more__current"
|
|
1917
|
+
}, fa = ["src"], pa = {
|
|
1918
|
+
key: 0,
|
|
1919
|
+
class: "mwnf-sh-more__current"
|
|
1920
|
+
}, ma = { class: "mwnf-sh-bottom" }, ha = { class: "mwnf-sh-bottom__pages" }, ga = ["src"], _a = ["src"], va = {
|
|
1921
|
+
key: 0,
|
|
1922
|
+
class: "mwnf-sh-bottom__current"
|
|
1923
|
+
}, ya = { class: "mwnf-sh-bottom__related" }, ba = {
|
|
1924
|
+
__name: "Page",
|
|
1925
|
+
props: {
|
|
1926
|
+
theme: {
|
|
1927
|
+
type: Number,
|
|
1928
|
+
required: !0
|
|
1929
|
+
},
|
|
1930
|
+
page: {
|
|
1931
|
+
type: Number,
|
|
1932
|
+
default: 0
|
|
1933
|
+
}
|
|
1934
|
+
},
|
|
1935
|
+
setup(e) {
|
|
1936
|
+
let t = e, { data: r, label: d, pageAt: f, picture: m, slots: _, text: x, themes: w, title: T, tree: D } = $(), O = i(() => f(t.theme, t.page)), k = i(() => O.value?.themeNode ?? null), A = i(() => O.value?.node ?? null), j = i(() => A.value ? x(A.value.id) : {}), M = i(() => _(A.value)), N = i(() => k.value ? D.children(k.value.id) : []), P = h(0), F = h(0);
|
|
1937
|
+
S(A, () => {
|
|
1938
|
+
P.value = 0, F.value = 0;
|
|
1939
|
+
});
|
|
1940
|
+
let I = (e) => {
|
|
1941
|
+
P.value = e, F.value = 0;
|
|
1942
|
+
}, L = i(() => t.page === 0 ? d("home.overview") : j.value.title ?? ""), R = i(() => [
|
|
1943
|
+
{ heading: x(k.value?.id).title },
|
|
1944
|
+
{ heading: L.value },
|
|
1945
|
+
{ text: j.value.quote ?? "" },
|
|
1946
|
+
{ text: j.value.description ?? "" }
|
|
1947
|
+
]);
|
|
1948
|
+
return (t, i) => {
|
|
1949
|
+
let f = v("router-link");
|
|
1950
|
+
return O.value ? (p(), s("div", Xi, [
|
|
1951
|
+
u($r, { next: O.value.next }, null, 8, ["next"]),
|
|
1952
|
+
c("div", Zi, [c("div", Qi, [
|
|
1953
|
+
c("div", $i, y(b(x)(k.value.id).title), 1),
|
|
1954
|
+
c("div", ea, "\xA0" + y(L.value), 1),
|
|
1955
|
+
M.value.length ? (p(), s("div", ta, [(p(!0), s(n, null, g(M.value, (e, t) => (p(), s("button", {
|
|
1956
|
+
key: e.n,
|
|
1957
|
+
type: "button",
|
|
1958
|
+
onClick: (e) => I(t)
|
|
1959
|
+
}, [c("img", {
|
|
1960
|
+
src: e.variants[0].image_url,
|
|
1961
|
+
alt: ""
|
|
1962
|
+
}, null, 8, ra)], 8, na))), 128))])) : o("", !0),
|
|
1963
|
+
i[2] ||= c("div", { class: "mwnf-sh-page__rule" }, null, -1),
|
|
1964
|
+
c("div", ia, [j.value.quote ? (p(), s("div", {
|
|
1965
|
+
key: 0,
|
|
1966
|
+
class: "mwnf-sh-page__quote",
|
|
1967
|
+
innerHTML: b(r).md(j.value.quote)
|
|
1968
|
+
}, null, 8, aa)) : o("", !0), j.value.description ? (p(), s("div", {
|
|
1969
|
+
key: 1,
|
|
1970
|
+
innerHTML: b(r).md(j.value.description)
|
|
1971
|
+
}, null, 8, oa)) : o("", !0)]),
|
|
1972
|
+
c("div", sa, [c("b", null, [
|
|
1973
|
+
c("span", ca, y(b(d)("page.moreAbout")), 1),
|
|
1974
|
+
i[1] ||= c("br", null, null, -1),
|
|
1975
|
+
c("span", la, y(b(x)(k.value.id).title), 1)
|
|
1976
|
+
]), c("ul", null, [c("li", null, [c("img", {
|
|
1977
|
+
src: b(m)("legacy/arrow_inner_black.gif"),
|
|
1978
|
+
alt: "",
|
|
1979
|
+
class: "mwnf-sh-arrow",
|
|
1980
|
+
width: "11",
|
|
1981
|
+
height: "8"
|
|
1982
|
+
}, null, 8, ua), e.page === 0 ? (p(), s("span", da, y(b(d)("home.overview")), 1)) : (p(), a(f, {
|
|
1983
|
+
key: 1,
|
|
1984
|
+
to: {
|
|
1985
|
+
name: "theme",
|
|
1986
|
+
params: { theme: e.theme }
|
|
1987
|
+
}
|
|
1988
|
+
}, {
|
|
1989
|
+
default: C(() => [l(y(b(d)("home.overview")), 1)]),
|
|
1990
|
+
_: 1
|
|
1991
|
+
}, 8, ["to"]))]), (p(!0), s(n, null, g(N.value, (t, n) => (p(), s("li", { key: t.id }, [c("img", {
|
|
1992
|
+
src: b(m)("legacy/arrow_inner_black.gif"),
|
|
1993
|
+
alt: "",
|
|
1994
|
+
class: "mwnf-sh-arrow",
|
|
1995
|
+
width: "11",
|
|
1996
|
+
height: "8"
|
|
1997
|
+
}, null, 8, fa), e.page === n + 1 ? (p(), s("span", pa, y(b(x)(t.id).title), 1)) : (p(), a(f, {
|
|
1998
|
+
key: 1,
|
|
1999
|
+
to: {
|
|
2000
|
+
name: "subtheme",
|
|
2001
|
+
params: {
|
|
2002
|
+
theme: e.theme,
|
|
2003
|
+
page: n + 1
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
}, {
|
|
2007
|
+
default: C(() => [l(y(b(x)(t.id).title), 1)]),
|
|
2008
|
+
_: 2
|
|
2009
|
+
}, 1032, ["to"]))]))), 128))])]),
|
|
2010
|
+
u(ii, {
|
|
2011
|
+
title: b(T),
|
|
2012
|
+
blocks: R.value
|
|
2013
|
+
}, null, 8, ["title", "blocks"])
|
|
2014
|
+
]), u(Yi, {
|
|
2015
|
+
view: F.value,
|
|
2016
|
+
"onUpdate:view": i[0] ||= (e) => F.value = e,
|
|
2017
|
+
slot: M.value[P.value] ?? null
|
|
2018
|
+
}, null, 8, ["view", "slot"])]),
|
|
2019
|
+
c("div", ma, [c("div", ha, [c("b", null, y(b(d)("page.inExhibition")), 1), c("ul", null, [c("li", null, [c("img", {
|
|
2020
|
+
src: b(m)("legacy/arrow.gif"),
|
|
2021
|
+
alt: "",
|
|
2022
|
+
width: "10",
|
|
2023
|
+
height: "9"
|
|
2024
|
+
}, null, 8, ga), u(f, { to: { name: "introduction" } }, {
|
|
2025
|
+
default: C(() => [l(y(b(d)("home.introduction")), 1)]),
|
|
2026
|
+
_: 1
|
|
2027
|
+
})]), (p(!0), s(n, null, g(b(w), (t, n) => (p(), s("li", { key: t.id }, [c("img", {
|
|
2028
|
+
src: b(m)("legacy/arrow.gif"),
|
|
2029
|
+
alt: "",
|
|
2030
|
+
width: "10",
|
|
2031
|
+
height: "9"
|
|
2032
|
+
}, null, 8, _a), n + 1 === e.theme ? (p(), s("span", va, y(b(x)(t.id).title), 1)) : (p(), a(f, {
|
|
2033
|
+
key: 1,
|
|
2034
|
+
to: {
|
|
2035
|
+
name: "theme",
|
|
2036
|
+
params: { theme: n + 1 }
|
|
2037
|
+
}
|
|
2038
|
+
}, {
|
|
2039
|
+
default: C(() => [l(y(b(x)(t.id).title), 1)]),
|
|
2040
|
+
_: 2
|
|
2041
|
+
}, 1032, ["to"]))]))), 128))])]), c("div", ya, [u(yr, {
|
|
2042
|
+
arrow: "legacy/arrow_inner.gif",
|
|
2043
|
+
"theme-id": k.value.id,
|
|
2044
|
+
"subtheme-id": e.page === 0 ? null : A.value.id
|
|
2045
|
+
}, null, 8, ["theme-id", "subtheme-id"]), u(wr, { class: "mwnf-sh-bottom__windows" })])])
|
|
2046
|
+
])) : (p(), a(b(E), { key: 0 }));
|
|
2047
|
+
};
|
|
2048
|
+
}
|
|
2049
|
+
}, xa = { key: 0 }, Sa = { class: "mwnf-sh-reading" }, Ca = { class: "mwnf-sh-reading__languages" }, wa = {
|
|
2050
|
+
key: 0,
|
|
2051
|
+
class: "mwnf-sh-reading__language mwnf-sh-reading__language--current"
|
|
2052
|
+
}, Ta = {
|
|
2053
|
+
key: 1,
|
|
2054
|
+
class: "mwnf-sh-reading__language"
|
|
2055
|
+
}, Ea = { class: "mwnf-sh-reading__content" }, Da = { class: "mwnf-sh-reading__close" }, Oa = ["src"], ka = { class: "mwnf-sh-reading__title" }, Aa = ["innerHTML"], ja = {
|
|
2056
|
+
__name: "FurtherReading",
|
|
2057
|
+
setup(e) {
|
|
2058
|
+
let { data: t, label: r, lang: a, languageName: d, offered: f, picture: m, root: h, text: _, title: x } = $(), S = i(() => h.value ? _(h.value.id).extra?.bibliography ?? {} : {}), w = i(() => S.value[a.value] ? a.value : "en"), E = i(() => S.value[w.value] ?? []), D = i(() => f.filter((e) => S.value[e]?.length).reverse()), O = () => window.close();
|
|
2059
|
+
return (e, i) => {
|
|
2060
|
+
let a = v("router-link");
|
|
2061
|
+
return b(h) ? (p(), s("div", xa, [u($r, {
|
|
2062
|
+
kind: "intro",
|
|
2063
|
+
heading: b(r)("related.furtherReading"),
|
|
2064
|
+
paging: !1
|
|
2065
|
+
}, null, 8, ["heading"]), c("div", Sa, [c("div", Ca, [(p(!0), s(n, null, g(D.value, (e) => (p(), s(n, { key: e }, [e === w.value ? (p(), s("div", wa, y(b(d)(e)), 1)) : (p(), s("div", Ta, [u(a, { to: {
|
|
2066
|
+
name: "further-reading",
|
|
2067
|
+
query: { lang: e }
|
|
2068
|
+
} }, {
|
|
2069
|
+
default: C(() => [l(y(b(d)(e)), 1)]),
|
|
2070
|
+
_: 2
|
|
2071
|
+
}, 1032, ["to"])]))], 64))), 128))]), c("div", Ea, [
|
|
2072
|
+
c("div", Da, [c("a", {
|
|
2073
|
+
href: "#",
|
|
2074
|
+
onClick: T(O, ["prevent"])
|
|
2075
|
+
}, [c("img", {
|
|
2076
|
+
src: b(m)("legacy/dash_dark_back.gif"),
|
|
2077
|
+
alt: "",
|
|
2078
|
+
width: "11",
|
|
2079
|
+
height: "8"
|
|
2080
|
+
}, null, 8, Oa), l(y(b(r)("reading.close")), 1)])]),
|
|
2081
|
+
c("div", ka, [c("span", null, y(b(x)), 1)]),
|
|
2082
|
+
(p(!0), s(n, null, g(E.value, (e) => (p(), s("p", {
|
|
2083
|
+
key: e,
|
|
2084
|
+
innerHTML: b(t).mdInline(e)
|
|
2085
|
+
}, null, 8, Aa))), 128))
|
|
2086
|
+
])])])) : o("", !0);
|
|
2087
|
+
};
|
|
2088
|
+
}
|
|
2089
|
+
}, Ma = ["innerHTML"], Na = {
|
|
2090
|
+
__name: "Window",
|
|
2091
|
+
props: { kind: {
|
|
2092
|
+
type: String,
|
|
2093
|
+
required: !0
|
|
2094
|
+
} },
|
|
2095
|
+
setup(e) {
|
|
2096
|
+
let t = e, { data: n, label: r, root: a, text: o, title: l } = $(), u = {
|
|
2097
|
+
curators: "curated_by",
|
|
2098
|
+
coverImage: "cover_images"
|
|
2099
|
+
}, d = i(() => a.value ? n.md(o(a.value.id).extra?.[u[t.kind]] ?? "") : "");
|
|
2100
|
+
return (t, n) => (p(), s("div", null, [
|
|
2101
|
+
c("h3", null, y(b(l)), 1),
|
|
2102
|
+
c("p", null, y(b(r)(`windows.${e.kind}`)), 1),
|
|
2103
|
+
n[0] ||= c("br", null, null, -1),
|
|
2104
|
+
c("div", { innerHTML: d.value }, null, 8, Ma)
|
|
2105
|
+
]));
|
|
2106
|
+
}
|
|
2107
|
+
}, Pa = ["src"], Fa = {
|
|
2108
|
+
__name: "Zoom",
|
|
2109
|
+
props: { image: {
|
|
2110
|
+
type: String,
|
|
2111
|
+
default: ""
|
|
2112
|
+
} },
|
|
2113
|
+
setup(e) {
|
|
2114
|
+
let t = e, { pages: n, root: r, slots: a } = $(), c = i(() => {
|
|
2115
|
+
let e = [...(r.value?.items ?? []).map((e) => e.image_url), ...n.value.flatMap((e) => a(e.node).flatMap((e) => e.variants.map((e) => e.image_url)))];
|
|
2116
|
+
return t.image && e.includes(t.image) ? t.image : "";
|
|
2117
|
+
});
|
|
2118
|
+
return (e, t) => c.value ? (p(), s("img", {
|
|
2119
|
+
key: 0,
|
|
2120
|
+
src: c.value,
|
|
2121
|
+
alt: ""
|
|
2122
|
+
}, null, 8, Pa)) : o("", !0);
|
|
2123
|
+
}
|
|
2124
|
+
}, Ia = [
|
|
2125
|
+
"collections",
|
|
2126
|
+
"items",
|
|
2127
|
+
"countries",
|
|
2128
|
+
"partners"
|
|
2129
|
+
];
|
|
2130
|
+
function La(e) {
|
|
2131
|
+
return [
|
|
2132
|
+
{
|
|
2133
|
+
path: "/",
|
|
2134
|
+
name: "home",
|
|
2135
|
+
component: Ur,
|
|
2136
|
+
meta: e("home", ...Ia)
|
|
2137
|
+
},
|
|
2138
|
+
{
|
|
2139
|
+
path: "/introduction",
|
|
2140
|
+
name: "introduction",
|
|
2141
|
+
component: ki,
|
|
2142
|
+
meta: e("introduction", ...Ia)
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
path: "/theme/:theme(\\d+)",
|
|
2146
|
+
name: "theme",
|
|
2147
|
+
component: ba,
|
|
2148
|
+
props: (e) => ({
|
|
2149
|
+
theme: Number(e.params.theme),
|
|
2150
|
+
page: 0
|
|
2151
|
+
}),
|
|
2152
|
+
meta: e("theme", ...Ia)
|
|
2153
|
+
},
|
|
2154
|
+
{
|
|
2155
|
+
path: "/theme/:theme(\\d+)/:page(\\d+)",
|
|
2156
|
+
name: "subtheme",
|
|
2157
|
+
component: ba,
|
|
2158
|
+
props: (e) => ({
|
|
2159
|
+
theme: Number(e.params.theme),
|
|
2160
|
+
page: Number(e.params.page)
|
|
2161
|
+
}),
|
|
2162
|
+
meta: e("subtheme", ...Ia)
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
path: "/further-reading",
|
|
2166
|
+
name: "further-reading",
|
|
2167
|
+
component: ja,
|
|
2168
|
+
meta: e("further-reading", "collections")
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
path: "/credits",
|
|
2172
|
+
name: "credits",
|
|
2173
|
+
component: Na,
|
|
2174
|
+
props: { kind: "curators" },
|
|
2175
|
+
meta: {
|
|
2176
|
+
...e("credits", "collections"),
|
|
2177
|
+
bare: "credits"
|
|
2178
|
+
}
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
path: "/cover-image",
|
|
2182
|
+
name: "cover-image",
|
|
2183
|
+
component: Na,
|
|
2184
|
+
props: { kind: "coverImage" },
|
|
2185
|
+
meta: {
|
|
2186
|
+
...e("cover-image", "collections"),
|
|
2187
|
+
bare: "cover-image"
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
path: "/zoom",
|
|
2192
|
+
name: "zoom",
|
|
2193
|
+
component: Fa,
|
|
2194
|
+
props: (e) => ({ image: String(e.query.img ?? "") }),
|
|
2195
|
+
meta: {
|
|
2196
|
+
...e("zoom", "collections"),
|
|
2197
|
+
bare: "zoom"
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
];
|
|
2201
|
+
}
|
|
2202
|
+
var Ra = "https://www.museumwnf.org/about/language-policy";
|
|
2203
|
+
function za({ languages: e, parent: t, profiles: n = [], texts: r = rr }) {
|
|
2204
|
+
let i = [{
|
|
2205
|
+
label: "header.project",
|
|
2206
|
+
href: `${t}/#/about`
|
|
2207
|
+
}, {
|
|
2208
|
+
label: "header.historicalBackground",
|
|
2209
|
+
href: `${t}/#/historical-background`
|
|
2210
|
+
}];
|
|
2211
|
+
return {
|
|
2212
|
+
languages: e,
|
|
2213
|
+
texts: r,
|
|
2214
|
+
portalHref: j.portal,
|
|
2215
|
+
homeHref: `${t}/#/`,
|
|
2216
|
+
aboutLinks: i,
|
|
2217
|
+
menu: [
|
|
2218
|
+
{
|
|
2219
|
+
label: "menu.about",
|
|
2220
|
+
href: `${t}/#/about`,
|
|
2221
|
+
links: i
|
|
2222
|
+
},
|
|
2223
|
+
{
|
|
2224
|
+
label: "menu.exhibitions",
|
|
2225
|
+
tip: "menu.exhibitionsTip",
|
|
2226
|
+
href: `${t}/#/exhibitions`
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
label: "menu.collections",
|
|
2230
|
+
tip: "menu.collectionsTip",
|
|
2231
|
+
href: `${t}/#/permanent-collection`
|
|
2232
|
+
},
|
|
2233
|
+
{
|
|
2234
|
+
label: "menu.database",
|
|
2235
|
+
tip: "menu.databaseTip",
|
|
2236
|
+
href: `${t}/#/database`
|
|
2237
|
+
},
|
|
2238
|
+
{
|
|
2239
|
+
label: "menu.timeline",
|
|
2240
|
+
tip: "menu.timelineTip",
|
|
2241
|
+
href: `${t}/#/timeline`
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
label: "menu.historicalProfiles",
|
|
2245
|
+
links: n
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
label: "menu.partners",
|
|
2249
|
+
tip: "menu.partnersTip",
|
|
2250
|
+
href: `${t}/#/partners`
|
|
2251
|
+
},
|
|
2252
|
+
{
|
|
2253
|
+
label: "menu.myCollection",
|
|
2254
|
+
tip: "menu.myCollectionTip",
|
|
2255
|
+
href: j.myCollection
|
|
2256
|
+
}
|
|
2257
|
+
],
|
|
2258
|
+
footerLinks: [
|
|
2259
|
+
{
|
|
2260
|
+
label: "footer.aboutMwnf",
|
|
2261
|
+
href: j.about
|
|
2262
|
+
},
|
|
2263
|
+
{
|
|
2264
|
+
label: "footer.contact",
|
|
2265
|
+
href: j.contact
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
label: "footer.legalNotice",
|
|
2269
|
+
href: j.legalNotice
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
label: "footer.credits",
|
|
2273
|
+
href: j.credits
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
label: "footer.languagePolicy",
|
|
2277
|
+
href: Ra
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
label: "footer.cookies",
|
|
2281
|
+
href: j.cookies
|
|
2282
|
+
}
|
|
2283
|
+
]
|
|
2284
|
+
};
|
|
2285
|
+
}
|
|
2286
|
+
function Ba({ parent: e, texts: t = rr, ...n }) {
|
|
2287
|
+
return {
|
|
2288
|
+
parent: e,
|
|
2289
|
+
texts: t,
|
|
2290
|
+
family: "SH",
|
|
2291
|
+
...n
|
|
2292
|
+
};
|
|
2293
|
+
}
|
|
2294
|
+
//#endregion
|
|
2295
|
+
export { Be as EXHIBITION_ENTITIES, ve as ISLAMICART_NO_COUNTRY, Y as LABELS, Sn as MinisiteCredits, pt as MinisiteHome, Ut as MinisiteIntroduction, En as MinisiteMap, yn as MinisitePage, he as MinisiteShell, kn as MinisiteZoom, _e as PLACEHOLDER_TITLE, rr as SHARINGHISTORY_LABELS, dr as SHARINGHISTORY_WINDOWS, ja as SharingHistoryFurtherReading, Ur as SharingHistoryHome, ki as SharingHistoryIntroduction, ba as SharingHistoryPage, nr as SharingHistoryShell, Na as SharingHistoryWindow, Fa as SharingHistoryZoom, Mn as baroqueartMenu, J as cleanText, Me as curatorLabel, Ne as curatorLink, De as detailViewCaption, ze as exhibitionData, Fe as familyOf, je as introCaption, jn as islamicartMenu, Ie as labelSet, Pn as minisiteNavigation, An as minisiteRoutes, Fn as minisiteSettings, be as pageWithNeighbours, Ee as placementCaption, Pe as quoteHasItalics, ye as readingOrder, lr as sharinghistoryCaption, za as sharinghistoryNavigation, or as sharinghistoryPageRoute, sr as sharinghistoryPageWithNext, ar as sharinghistoryReadingOrder, ur as sharinghistoryRelatedLinks, La as sharinghistoryRoutes, Ba as sharinghistorySettings, cr as sharinghistorySlotsOf, ke as sheetItemId, xe as slotsOf, X as useExhibition, $ as useSharingHistoryExhibition, Ae as viewPicture, Oe as withFirstView };
|