@museumwnf/viewer-layout 3.13.1 → 3.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/minisite.js +666 -365
- 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 { 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
|
|
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 ee, useI18n as L, useSiteConfig as R } from "@museumwnf/viewer-core";
|
|
5
|
+
import { useRoute as z, useRouter as B } from "vue-router";
|
|
6
6
|
//#region src/minisite/tip.js
|
|
7
|
-
var
|
|
7
|
+
var V = 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 H(e) {
|
|
15
|
+
V.x = e.pageX, V.y = e.pageY;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function U(e, t) {
|
|
18
18
|
e.__tip = t.value;
|
|
19
19
|
}
|
|
20
|
-
var
|
|
20
|
+
var W = {
|
|
21
21
|
mounted(e, t) {
|
|
22
|
-
|
|
22
|
+
U(e, t), e.addEventListener("mouseenter", (t) => {
|
|
23
23
|
let n = e.__tip;
|
|
24
|
-
n?.text && (
|
|
25
|
-
}), e.addEventListener("mousemove",
|
|
26
|
-
|
|
24
|
+
n?.text && (V.text = n.text, V.width = n.width ?? 100, H(t), V.visible = !0);
|
|
25
|
+
}), e.addEventListener("mousemove", H), e.addEventListener("mouseleave", () => {
|
|
26
|
+
V.visible = !1;
|
|
27
27
|
});
|
|
28
28
|
},
|
|
29
|
-
updated:
|
|
29
|
+
updated: U,
|
|
30
30
|
beforeUnmount() {
|
|
31
|
-
|
|
31
|
+
V.visible = !1;
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, G = {
|
|
34
34
|
key: 1,
|
|
35
35
|
class: "mwnf-minisite"
|
|
36
|
-
},
|
|
36
|
+
}, K = { class: "mwnf-minisite__column" }, q = { class: "mwnf-minisite-header" }, te = { class: "mwnf-minisite-header__logo" }, ne = ["href"], re = ["src"], J = { class: "mwnf-minisite-header__nav" }, ie = { class: "mwnf-minisite-header__back" }, ae = ["href"], oe = ["value", "aria-label"], se = ["value"], ce = { class: "mwnf-minisite-menu" }, le = { class: "mwnf-minisite-menu__list" }, ue = ["href", "onClick"], de = ["href"], fe = { class: "mwnf-minisite-footer" }, pe = ["href"], me = {
|
|
37
37
|
__name: "Shell",
|
|
38
38
|
props: {
|
|
39
39
|
languages: {
|
|
@@ -75,7 +75,7 @@ var G = {
|
|
|
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 } = L(), h = R(), v = z(), 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 G = {
|
|
|
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", G, [
|
|
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
|
-
c("div",
|
|
96
|
-
c("header",
|
|
95
|
+
c("div", K, [
|
|
96
|
+
c("header", q, [c("div", te, [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, re)], 8, ne)), [[b(W), { text: t.logoTip ? b(m)(t.logoTip) : "" }]])]), c("div", J, [c("div", ie, [(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, ae)), [[b(W), { 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,17 @@ var G = {
|
|
|
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, se))), 128))], 40, oe)])])]),
|
|
112
112
|
c("main", null, [_(e.$slots, "default")]),
|
|
113
|
-
c("nav",
|
|
113
|
+
t.menu.length ? (p(), s(n, { key: 0 }, [c("nav", ce, [c("ul", le, [(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, ue)) : (p(), s("a", {
|
|
118
118
|
key: 1,
|
|
119
119
|
href: e.href
|
|
120
|
-
}, y(b(m)(e.label)), 9,
|
|
121
|
-
|
|
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)])
|
|
120
|
+
}, y(b(m)(e.label)), 9, de))])], 64))), 128))])]), r[1] ||= c("div", { class: "mwnf-minisite-menu__line" }, null, -1)], 64)) : o("", !0),
|
|
121
|
+
c("footer", fe, [(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, pe), r[2] ||= l("\xA0|\xA0 ", -1)], 64))), 128)), l(y(b(m)(t.copyright)) + " " + y(b(D)), 1)])
|
|
123
122
|
]),
|
|
124
123
|
c("div", {
|
|
125
124
|
class: "mwnf-minisite__strip",
|
|
@@ -129,27 +128,27 @@ var G = {
|
|
|
129
128
|
])), w(c("div", {
|
|
130
129
|
class: "mwnf-minisite-tip",
|
|
131
130
|
style: f({
|
|
132
|
-
left: `${b(
|
|
133
|
-
top: `${b(
|
|
134
|
-
width: `${b(
|
|
131
|
+
left: `${b(V).x + 12}px`,
|
|
132
|
+
top: `${b(V).y + 16}px`,
|
|
133
|
+
width: `${b(V).width}px`
|
|
135
134
|
}),
|
|
136
135
|
role: "tooltip"
|
|
137
|
-
}, y(b(
|
|
136
|
+
}, y(b(V).text), 5), [[x, b(V).visible]])], 64));
|
|
138
137
|
}
|
|
139
|
-
},
|
|
138
|
+
}, he = [
|
|
140
139
|
[/[‘’]/g, "'"],
|
|
141
140
|
[/[“”]/g, "\""],
|
|
142
141
|
[/…/g, "..."],
|
|
143
142
|
[/•/g, "*"]
|
|
144
143
|
];
|
|
145
|
-
function
|
|
146
|
-
return
|
|
144
|
+
function Y(e) {
|
|
145
|
+
return he.reduce((e, [t, n]) => e.replace(t, n), String(e ?? ""));
|
|
147
146
|
}
|
|
148
|
-
var
|
|
147
|
+
var ge = /^(Artintro )?(Theme|Page) \d+$/, _e = {
|
|
149
148
|
partners: ["325b7505-1527-5442-99ea-6a40f8c43d3f"],
|
|
150
149
|
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
150
|
};
|
|
152
|
-
function
|
|
151
|
+
function ve(e, t) {
|
|
153
152
|
return e.flatMap((e, n) => t(e.id).map((t, r) => ({
|
|
154
153
|
theme: n + 1,
|
|
155
154
|
page: r + 1,
|
|
@@ -157,7 +156,7 @@ function ye(e, t) {
|
|
|
157
156
|
themeNode: e
|
|
158
157
|
})));
|
|
159
158
|
}
|
|
160
|
-
function
|
|
159
|
+
function ye(e, t, n) {
|
|
161
160
|
let r = e.findIndex((e) => e.theme === t && e.page === n);
|
|
162
161
|
if (r < 0) return null;
|
|
163
162
|
let i = (e) => ({
|
|
@@ -173,7 +172,7 @@ function be(e, t, n) {
|
|
|
173
172
|
next: r < e.length - 1 ? i(e[r + 1]) : null
|
|
174
173
|
};
|
|
175
174
|
}
|
|
176
|
-
function
|
|
175
|
+
function be(e) {
|
|
177
176
|
let t = /* @__PURE__ */ new Map();
|
|
178
177
|
for (let n of e?.items ?? []) {
|
|
179
178
|
let e = n.display_order ?? 0;
|
|
@@ -192,28 +191,28 @@ function xe(e) {
|
|
|
192
191
|
}])
|
|
193
192
|
}));
|
|
194
193
|
}
|
|
195
|
-
function
|
|
194
|
+
function xe(e, t, n) {
|
|
196
195
|
return !e || e.type === "object" && n?.partners?.includes(e.partner_id) || e.type === "monument" && n?.monuments?.includes(e.mwnf_reference) ? "" : t(e);
|
|
197
196
|
}
|
|
198
|
-
function
|
|
197
|
+
function Se(e, t, n, r) {
|
|
199
198
|
return [
|
|
200
199
|
M(t.location ?? ""),
|
|
201
200
|
M(t.province ?? ""),
|
|
202
|
-
|
|
201
|
+
xe(e, n, r)
|
|
203
202
|
].filter(Boolean).join(", ");
|
|
204
203
|
}
|
|
205
|
-
function
|
|
206
|
-
return n.location ? [n.location, e ? r(e) : ""].filter(Boolean).join(", ") :
|
|
204
|
+
function Ce({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i }) {
|
|
205
|
+
return n.location ? [n.location, e ? r(e) : ""].filter(Boolean).join(", ") : Se(e, t, r, i);
|
|
207
206
|
}
|
|
208
|
-
function
|
|
207
|
+
function we(e, t, n) {
|
|
209
208
|
let r = e?.type === "object" ? t.artist : t.architects, i = [].concat(t.materials ?? []).filter(Boolean).join(", ");
|
|
210
209
|
return {
|
|
211
|
-
artist:
|
|
212
|
-
material:
|
|
210
|
+
artist: Y(n.artist || M(r ?? "")),
|
|
211
|
+
material: Y(n.material || M(i))
|
|
213
212
|
};
|
|
214
213
|
}
|
|
215
|
-
function
|
|
216
|
-
let o = e?.type === "object" ? n.museum || M(t.holder ?? "") : "", s =
|
|
214
|
+
function Te({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i, family: a }) {
|
|
215
|
+
let o = e?.type === "object" ? n.museum || M(t.holder ?? "") : "", s = Ce({
|
|
217
216
|
item: e,
|
|
218
217
|
own: t,
|
|
219
218
|
caption: n,
|
|
@@ -221,15 +220,15 @@ function Ee({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i, fa
|
|
|
221
220
|
noCountry: i
|
|
222
221
|
});
|
|
223
222
|
return {
|
|
224
|
-
name:
|
|
225
|
-
detailName:
|
|
226
|
-
dateLines: [n.date || M(t.dates ?? ""), n.dynasty || M(t.dynasty ?? "")].filter(Boolean).map(
|
|
227
|
-
details: [o, s].filter(Boolean).map(
|
|
228
|
-
...a === "BAR" ?
|
|
229
|
-
justification:
|
|
223
|
+
name: Y(n.name ? M(n.name) : M(t.name ?? "")),
|
|
224
|
+
detailName: Y(n.detail_name),
|
|
225
|
+
dateLines: [n.date || M(t.dates ?? ""), n.dynasty || M(t.dynasty ?? "")].filter(Boolean).map(Y),
|
|
226
|
+
details: [o, s].filter(Boolean).map(Y),
|
|
227
|
+
...a === "BAR" ? we(e, t, n) : {},
|
|
228
|
+
justification: Y(n.justification)
|
|
230
229
|
};
|
|
231
230
|
}
|
|
232
|
-
function
|
|
231
|
+
function Ee({ caption: e = {}, first: t = {}, record: n = {}, placement: r }) {
|
|
233
232
|
let i = (n, r = "") => e[n] || t[n] || r || "";
|
|
234
233
|
return {
|
|
235
234
|
name: M(i("name", n.name)),
|
|
@@ -240,13 +239,13 @@ function De({ caption: e = {}, first: t = {}, record: n = {}, placement: r }) {
|
|
|
240
239
|
i("museum"),
|
|
241
240
|
i("location", n.location)
|
|
242
241
|
].filter(Boolean),
|
|
243
|
-
details: r ? [
|
|
242
|
+
details: r ? [Ce(r)].filter(Boolean).map(Y) : [],
|
|
244
243
|
artist: i("artist", n.artist),
|
|
245
244
|
material: i("material"),
|
|
246
245
|
justification: e.justification || t.justification || ""
|
|
247
246
|
};
|
|
248
247
|
}
|
|
249
|
-
function
|
|
248
|
+
function De(e, t, n = "ISL") {
|
|
250
249
|
return {
|
|
251
250
|
name: e.name || t.name,
|
|
252
251
|
detailName: n === "BAR" ? e.detailName : e.detailName || t.detailName,
|
|
@@ -257,27 +256,27 @@ function Oe(e, t, n = "ISL") {
|
|
|
257
256
|
justification: e.justification || t.justification
|
|
258
257
|
};
|
|
259
258
|
}
|
|
260
|
-
function
|
|
259
|
+
function Oe(e, t, n) {
|
|
261
260
|
let r = (e) => {
|
|
262
261
|
let t = e ? n(e.entry.id) : null;
|
|
263
262
|
return t && t.type !== "picture" ? t.id : null;
|
|
264
263
|
};
|
|
265
264
|
return r(e?.variants[t]) ?? r(e?.variants[0]) ?? null;
|
|
266
265
|
}
|
|
267
|
-
function
|
|
266
|
+
function ke(e, t) {
|
|
268
267
|
return e?.variants[t]?.image || e?.variants[0]?.image || null;
|
|
269
268
|
}
|
|
270
|
-
function
|
|
271
|
-
let a = (e, t) => e ?
|
|
269
|
+
function Ae({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i }) {
|
|
270
|
+
let a = (e, t) => e ? Y(M(e)) : t;
|
|
272
271
|
return [
|
|
273
272
|
a(n.name, M(t.name ?? "")),
|
|
274
273
|
a(n.date, M(t.dates ?? "")),
|
|
275
|
-
a(n.dynasty,
|
|
274
|
+
a(n.dynasty, Y(M(t.dynasty ?? ""))),
|
|
276
275
|
e?.type === "object" ? a(n.museum, M(t.holder ?? "")) : "",
|
|
277
|
-
a(n.location,
|
|
276
|
+
a(n.location, Se(e, t, r, i))
|
|
278
277
|
];
|
|
279
278
|
}
|
|
280
|
-
function
|
|
279
|
+
function je(e, { partnerName: t, partnerCountry: n, countryName: r }) {
|
|
281
280
|
let i = (e) => e ? r(e) : "";
|
|
282
281
|
return e.partner ? e.place ? [
|
|
283
282
|
t(e.partner),
|
|
@@ -285,24 +284,25 @@ function Me(e, { partnerName: t, partnerCountry: n, countryName: r }) {
|
|
|
285
284
|
i(e.country)
|
|
286
285
|
].filter(Boolean).join(", ") : [t(e.partner), i(n(e.partner))].filter(Boolean).join(", ") : [e.name, i(e.country)].filter(Boolean).join(", ");
|
|
287
286
|
}
|
|
288
|
-
function
|
|
287
|
+
function Me(e, t) {
|
|
289
288
|
return "href" in e ? e.href : t?.(e.partner);
|
|
290
289
|
}
|
|
291
|
-
function
|
|
290
|
+
function Ne(e) {
|
|
292
291
|
return /(^|[^*])\*[^*\s][^*]*\*/.test(e ?? "") || /\b_[^_]+_\b/.test(e ?? "");
|
|
293
292
|
}
|
|
294
293
|
//#endregion
|
|
295
294
|
//#region src/minisite/exhibition.js
|
|
296
|
-
var
|
|
295
|
+
var Pe = {
|
|
297
296
|
ISL: "minisite",
|
|
298
297
|
BAR: "minisiteBaroque",
|
|
299
|
-
SH: "minisiteSharingHistory"
|
|
298
|
+
SH: "minisiteSharingHistory",
|
|
299
|
+
GAI: "minisiteArtIntro"
|
|
300
300
|
};
|
|
301
301
|
function Fe(e) {
|
|
302
302
|
return e?.family ?? "ISL";
|
|
303
303
|
}
|
|
304
304
|
function Ie(e) {
|
|
305
|
-
return e?.texts ??
|
|
305
|
+
return e?.texts ?? Pe[Fe(e)] ?? Pe.ISL;
|
|
306
306
|
}
|
|
307
307
|
var Le = [
|
|
308
308
|
"collections",
|
|
@@ -335,12 +335,12 @@ var Be = [
|
|
|
335
335
|
"glossary"
|
|
336
336
|
];
|
|
337
337
|
function X() {
|
|
338
|
-
let { pkg: t, data: n, tree: r } = ze(), { locale: a, t: o } =
|
|
338
|
+
let { pkg: t, data: n, tree: r } = ze(), { locale: a, t: o } = L(), s = R(), c = s.minisite ?? {}, l = Fe(c), u = Ie(c), d = (e) => o(`${u}.${e}`), f = B(), p = i(() => a.value);
|
|
339
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(() =>
|
|
340
|
+
let m = r.root, h = i(() => m.value ? r.children(m.value.id) : []), g = i(() => ve(h.value, r.children));
|
|
341
341
|
function _(e) {
|
|
342
342
|
let n = t.translations("collections", p.value)[e] ?? {};
|
|
343
|
-
return
|
|
343
|
+
return ge.test(n.title ?? "") ? {
|
|
344
344
|
...n,
|
|
345
345
|
title: ""
|
|
346
346
|
} : n;
|
|
@@ -358,16 +358,16 @@ function X() {
|
|
|
358
358
|
}
|
|
359
359
|
function b(e, t) {
|
|
360
360
|
let r = (t) => {
|
|
361
|
-
if (!t.view) return
|
|
361
|
+
if (!t.view) return Te(y(t.entry));
|
|
362
362
|
let r = e.variants[0];
|
|
363
|
-
return
|
|
363
|
+
return Ee({
|
|
364
364
|
caption: t.view.caption?.[p.value] ?? {},
|
|
365
365
|
first: r.view ? r.view.caption?.[p.value] ?? {} : {},
|
|
366
366
|
record: t.view.id ? n.tr("items", t.view.id, p.value) : {},
|
|
367
367
|
placement: y(t.entry)
|
|
368
368
|
});
|
|
369
369
|
}, i = e?.variants[t];
|
|
370
|
-
return i ?
|
|
370
|
+
return i ? De(r(i), r(e.variants[0]), l) : null;
|
|
371
371
|
}
|
|
372
372
|
function x(e) {
|
|
373
373
|
let r = _(e).glossary_ids ?? [];
|
|
@@ -402,11 +402,11 @@ function X() {
|
|
|
402
402
|
picture: C,
|
|
403
403
|
href: w,
|
|
404
404
|
glossaryFor: x,
|
|
405
|
-
pageAt: (e, t) =>
|
|
406
|
-
slots:
|
|
407
|
-
placementCaption: (e) =>
|
|
405
|
+
pageAt: (e, t) => ye(g.value, e, t),
|
|
406
|
+
slots: be,
|
|
407
|
+
placementCaption: (e) => Te(y(e)),
|
|
408
408
|
viewCaption: b,
|
|
409
|
-
introCaption: (e) =>
|
|
409
|
+
introCaption: (e) => Ae(y(e)),
|
|
410
410
|
title: i(() => m.value ? _(m.value.id).title ?? "" : "")
|
|
411
411
|
};
|
|
412
412
|
}
|
|
@@ -442,11 +442,11 @@ var He = { class: "mwnf-minisite-home" }, Ue = { class: "mwnf-minisite-home__tit
|
|
|
442
442
|
}))), F = i(() => x.value.slice(N.value).map((e, t) => ({
|
|
443
443
|
theme: e,
|
|
444
444
|
number: N.value + t + 1
|
|
445
|
-
}))), I = i(() => O.curators ?? []),
|
|
445
|
+
}))), I = i(() => O.curators ?? []), ee = (e) => je(e, {
|
|
446
446
|
partnerName: (e) => h.tr("partners", e, m.value).name,
|
|
447
447
|
partnerCountry: (e) => h.partnerById.value.get(e)?.country_id,
|
|
448
448
|
countryName: (e) => h.tr("countries", e, m.value).name
|
|
449
|
-
}),
|
|
449
|
+
}), L = (e) => Me(e, O.partnerHref), R = i(() => _.value ? E(_.value.id).extra?.credits ?? "" : ""), z = i(() => O.design ?? null), B = i(() => d === "BAR" ? k(O.banner) : null), V = i(() => k(m.value === "ar" ? "legacy/home_bg_ar.jpg" : "legacy/home_bg.jpg"));
|
|
450
450
|
return S([D, m], () => {
|
|
451
451
|
document.title = [t("identity.windowTitle"), D.value].filter(Boolean).join(" | ");
|
|
452
452
|
}, { immediate: !0 }), (e, i) => {
|
|
@@ -456,7 +456,7 @@ var He = { class: "mwnf-minisite-home" }, Ue = { class: "mwnf-minisite-home__tit
|
|
|
456
456
|
i[4] ||= c("div", { class: "mwnf-minisite-home__bg1" }, null, -1),
|
|
457
457
|
c("div", {
|
|
458
458
|
class: "mwnf-minisite-home__bg2",
|
|
459
|
-
style: f({ backgroundImage:
|
|
459
|
+
style: f({ backgroundImage: V.value ? `url(${V.value})` : "none" })
|
|
460
460
|
}, null, 4),
|
|
461
461
|
c("div", Ue, y(b(D)), 1),
|
|
462
462
|
c("div", {
|
|
@@ -485,20 +485,20 @@ var He = { class: "mwnf-minisite-home" }, Ue = { class: "mwnf-minisite-home__tit
|
|
|
485
485
|
c("div", Ye, y(b(t)("home.curatedBy")), 1),
|
|
486
486
|
c("div", {
|
|
487
487
|
class: "mwnf-minisite-partners__tab",
|
|
488
|
-
innerHTML: b(h).mdInline(
|
|
488
|
+
innerHTML: b(h).mdInline(R.value)
|
|
489
489
|
}, null, 8, Xe),
|
|
490
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
491
|
c("div", $e, [(p(!0), s(n, null, g(I.value, (e, t) => (p(), s(n, { key: e.logo }, [
|
|
492
|
-
l(y(
|
|
492
|
+
l(y(ee(e)), 1),
|
|
493
493
|
i[5] ||= c("br", null, null, -1),
|
|
494
494
|
w((p(), s("a", {
|
|
495
495
|
class: "mwnf-minisite-partners__curator",
|
|
496
|
-
href:
|
|
496
|
+
href: L(e)
|
|
497
497
|
}, [c("img", {
|
|
498
498
|
src: b(k)(e.logo),
|
|
499
499
|
alt: ""
|
|
500
|
-
}, null, 8, tt)], 8, et)), [[b(
|
|
501
|
-
text:
|
|
500
|
+
}, null, 8, tt)], 8, et)), [[b(W), {
|
|
501
|
+
text: ee(e),
|
|
502
502
|
width: 220
|
|
503
503
|
}]]),
|
|
504
504
|
t < I.value.length - 1 ? (p(), s("span", {
|
|
@@ -507,15 +507,15 @@ var He = { class: "mwnf-minisite-home" }, Ue = { class: "mwnf-minisite-home__tit
|
|
|
507
507
|
style: f({ width: `${e.space ?? 0}px` })
|
|
508
508
|
}, null, 4)) : o("", !0)
|
|
509
509
|
], 64))), 128))])
|
|
510
|
-
]),
|
|
510
|
+
]), z.value ? (p(), s("div", nt, [
|
|
511
511
|
l(y(b(t)("home.design")) + " ", 1),
|
|
512
|
-
c("div", rt, y(
|
|
512
|
+
c("div", rt, y(z.value.name), 1),
|
|
513
513
|
c("div", it, [c("a", {
|
|
514
|
-
href:
|
|
514
|
+
href: z.value.href,
|
|
515
515
|
target: "_blank",
|
|
516
516
|
rel: "noopener"
|
|
517
517
|
}, [c("img", {
|
|
518
|
-
src: b(k)(
|
|
518
|
+
src: b(k)(z.value.logo),
|
|
519
519
|
alt: ""
|
|
520
520
|
}, null, 8, ot)], 8, at)])
|
|
521
521
|
])) : o("", !0)])) : (p(), s("div", st, [c("div", ct, [c("a", {
|
|
@@ -523,26 +523,26 @@ var He = { class: "mwnf-minisite-home" }, Ue = { class: "mwnf-minisite-home__tit
|
|
|
523
523
|
onClick: i[0] ||= T((e) => b(Z)(b(A)({ name: "credits" }), b(Ve).credits), ["prevent"])
|
|
524
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", {
|
|
525
525
|
class: "mwnf-minisite-partners__curator",
|
|
526
|
-
href:
|
|
526
|
+
href: L(e)
|
|
527
527
|
}, [c("img", {
|
|
528
528
|
src: b(k)(e.logo),
|
|
529
529
|
alt: "",
|
|
530
530
|
height: "74"
|
|
531
|
-
}, null, 8, ft)], 8, dt)), [[b(
|
|
532
|
-
text:
|
|
531
|
+
}, null, 8, ft)], 8, dt)), [[b(W), {
|
|
532
|
+
text: ee(e),
|
|
533
533
|
width: 280
|
|
534
534
|
}]]), t < I.value.length - 1 ? (p(), s("span", {
|
|
535
535
|
key: 0,
|
|
536
536
|
class: "mwnf-minisite-partners__space",
|
|
537
537
|
style: f({ width: `${e.space ?? 0}px` })
|
|
538
538
|
}, null, 4)) : o("", !0)], 64))), 128))])])),
|
|
539
|
-
|
|
539
|
+
B.value ? (p(), a(r, {
|
|
540
540
|
key: 2,
|
|
541
541
|
defer: "",
|
|
542
542
|
to: ".mwnf-minisite-footer"
|
|
543
543
|
}, [c("div", {
|
|
544
544
|
class: "mwnf-minisite-home__banner",
|
|
545
|
-
style: f({ backgroundImage: `url(${
|
|
545
|
+
style: f({ backgroundImage: `url(${B.value})` }),
|
|
546
546
|
"aria-hidden": "true"
|
|
547
547
|
}, null, 4)])) : o("", !0)
|
|
548
548
|
], 64);
|
|
@@ -586,7 +586,7 @@ var bt = { class: "mwnf-minisite-download" }, xt = ["src"], St = ["src"], Ct = [
|
|
|
586
586
|
required: !0
|
|
587
587
|
} },
|
|
588
588
|
setup(t) {
|
|
589
|
-
let { t: n } =
|
|
589
|
+
let { t: n } = L(), r = R(), i = (t) => e(r.chrome, t), a = (e) => n(`${Ie(r.minisite)}.${e}`);
|
|
590
590
|
function o() {
|
|
591
591
|
window.print();
|
|
592
592
|
}
|
|
@@ -629,15 +629,15 @@ var bt = { class: "mwnf-minisite-download" }, xt = ["src"], St = ["src"], Ct = [
|
|
|
629
629
|
entry: e,
|
|
630
630
|
image: t,
|
|
631
631
|
lines: O(e)
|
|
632
|
-
}))),
|
|
633
|
-
function
|
|
632
|
+
}))), L = i(() => w.map ?? null);
|
|
633
|
+
function R(e) {
|
|
634
634
|
Z(D({
|
|
635
635
|
name: "zoom",
|
|
636
636
|
query: { img: e }
|
|
637
637
|
}), Ve.introZoom);
|
|
638
638
|
}
|
|
639
|
-
let
|
|
640
|
-
function
|
|
639
|
+
let z = ee(N);
|
|
640
|
+
function B() {
|
|
641
641
|
gt({
|
|
642
642
|
documentTitle: w.documentTitle,
|
|
643
643
|
title: x.value,
|
|
@@ -646,14 +646,14 @@ var bt = { class: "mwnf-minisite-download" }, xt = ["src"], St = ["src"], Ct = [
|
|
|
646
646
|
captions: I.value.map((e) => e.lines)
|
|
647
647
|
});
|
|
648
648
|
}
|
|
649
|
-
let
|
|
649
|
+
let V = i(() => E(d.value === "ar" ? "legacy/intro_bg_ar.jpg" : "legacy/intro_bg.jpg"));
|
|
650
650
|
return S([x, d], () => {
|
|
651
651
|
document.title = [r("identity.windowTitle"), x.value].filter(Boolean).join(" | ");
|
|
652
652
|
}, { immediate: !0 }), (e, i) => {
|
|
653
653
|
let d = v("router-link");
|
|
654
654
|
return p(), s("div", {
|
|
655
655
|
class: "mwnf-minisite-intro",
|
|
656
|
-
style: f({ backgroundImage:
|
|
656
|
+
style: f({ backgroundImage: V.value ? `url(${V.value})` : "none" })
|
|
657
657
|
}, [
|
|
658
658
|
c("div", Tt, y(b(x)), 1),
|
|
659
659
|
c("div", Et, [i[3] ||= l(" < ", -1), u(d, { to: { name: "home" } }, {
|
|
@@ -681,7 +681,7 @@ var bt = { class: "mwnf-minisite-download" }, xt = ["src"], St = ["src"], Ct = [
|
|
|
681
681
|
]),
|
|
682
682
|
c("div", Ot, [c("div", {
|
|
683
683
|
class: "mwnf-minisite-intro__text",
|
|
684
|
-
onClick: i[0] ||= (...e) => b(
|
|
684
|
+
onClick: i[0] ||= (...e) => b(z).onClick && b(z).onClick(...e)
|
|
685
685
|
}, [
|
|
686
686
|
c("div", {
|
|
687
687
|
class: "mwnf-minisite-intro__header",
|
|
@@ -691,13 +691,13 @@ var bt = { class: "mwnf-minisite-download" }, xt = ["src"], St = ["src"], Ct = [
|
|
|
691
691
|
class: "mwnf-minisite-intro__content",
|
|
692
692
|
innerHTML: P.value
|
|
693
693
|
}, null, 8, At),
|
|
694
|
-
u(wt, { word:
|
|
695
|
-
]), c("div", jt, [
|
|
694
|
+
u(wt, { word: B })
|
|
695
|
+
]), c("div", jt, [L.value ? (p(), s("div", Mt, [
|
|
696
696
|
c("a", {
|
|
697
697
|
href: b(D)({ name: "map" }),
|
|
698
698
|
onClick: i[1] ||= T((e) => b(Z)(b(D)({ name: "map" }), b(Ve).map), ["prevent"])
|
|
699
699
|
}, [c("img", {
|
|
700
|
-
src: b(E)(
|
|
700
|
+
src: b(E)(L.value.thumbnail),
|
|
701
701
|
alt: "",
|
|
702
702
|
width: "178",
|
|
703
703
|
height: "93"
|
|
@@ -718,7 +718,7 @@ var bt = { class: "mwnf-minisite-download" }, xt = ["src"], St = ["src"], Ct = [
|
|
|
718
718
|
name: "zoom",
|
|
719
719
|
query: { img: e.image }
|
|
720
720
|
}),
|
|
721
|
-
onClick: T((t) =>
|
|
721
|
+
onClick: T((t) => R(e.image), ["prevent"])
|
|
722
722
|
}, [c("img", {
|
|
723
723
|
class: "mwnf-minisite-intro-item__image",
|
|
724
724
|
src: e.image,
|
|
@@ -738,11 +738,11 @@ var bt = { class: "mwnf-minisite-download" }, xt = ["src"], St = ["src"], Ct = [
|
|
|
738
738
|
innerHTML: b(m).mdInline(t)
|
|
739
739
|
}, null, 8, Ht))], 64))), 128))
|
|
740
740
|
]))), 128))])]),
|
|
741
|
-
b(
|
|
741
|
+
b(z).active.value ? (p(), a(t, {
|
|
742
742
|
key: 0,
|
|
743
|
-
term: b(
|
|
744
|
-
html: b(m).md(b(
|
|
745
|
-
onClose: b(
|
|
743
|
+
term: b(z).active.value,
|
|
744
|
+
html: b(m).md(b(z).active.value.definition),
|
|
745
|
+
onClose: b(z).close
|
|
746
746
|
}, null, 8, [
|
|
747
747
|
"term",
|
|
748
748
|
"html",
|
|
@@ -767,66 +767,66 @@ var bt = { class: "mwnf-minisite-download" }, xt = ["src"], St = ["src"], Ct = [
|
|
|
767
767
|
}
|
|
768
768
|
},
|
|
769
769
|
setup(e) {
|
|
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(),
|
|
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(), L = i(() => M(r.theme, r.page)), R = i(() => L.value ? O(L.value.node.id) : {}), z = i(() => L.value ? I(L.value.node.id) : []), B = i(() => L.value ? N(L.value.node) : []), V = i(() => R.value.quote ?? ""), H = h({
|
|
771
771
|
slot: 0,
|
|
772
772
|
variant: 0
|
|
773
773
|
});
|
|
774
|
-
S(() => [r.theme, r.page], () =>
|
|
774
|
+
S(() => [r.theme, r.page], () => H.value = {
|
|
775
775
|
slot: 0,
|
|
776
776
|
variant: 0
|
|
777
777
|
});
|
|
778
|
-
let
|
|
779
|
-
...F(
|
|
780
|
-
sheetId:
|
|
778
|
+
let U = i(() => B.value[H.value.slot] ?? null), G = i(() => U.value?.variants[H.value.variant] ?? null), K = i(() => ke(U.value, H.value.variant)), q = i(() => !U.value || !G.value ? null : {
|
|
779
|
+
...F(U.value, H.value.variant),
|
|
780
|
+
sheetId: Oe(U.value, H.value.variant, (e) => E.itemById.value.get(e))
|
|
781
781
|
});
|
|
782
|
-
function
|
|
783
|
-
|
|
782
|
+
function te(e) {
|
|
783
|
+
H.value = {
|
|
784
784
|
slot: e,
|
|
785
785
|
variant: 0
|
|
786
786
|
};
|
|
787
787
|
}
|
|
788
|
-
function
|
|
789
|
-
|
|
790
|
-
...
|
|
788
|
+
function ne(e) {
|
|
789
|
+
H.value = {
|
|
790
|
+
...H.value,
|
|
791
791
|
variant: e
|
|
792
792
|
};
|
|
793
793
|
}
|
|
794
|
-
function
|
|
795
|
-
|
|
794
|
+
function re() {
|
|
795
|
+
K.value && Z(j({
|
|
796
796
|
name: "zoom",
|
|
797
|
-
query: { img:
|
|
797
|
+
query: { img: K.value }
|
|
798
798
|
}), Ve.zoom);
|
|
799
799
|
}
|
|
800
|
-
let
|
|
801
|
-
function
|
|
800
|
+
let J = ee(z);
|
|
801
|
+
function ie() {
|
|
802
802
|
yt({
|
|
803
803
|
documentTitle: k.documentTitle,
|
|
804
804
|
title: D.value,
|
|
805
|
-
pageTitle:
|
|
806
|
-
quote:
|
|
807
|
-
text:
|
|
808
|
-
slots:
|
|
805
|
+
pageTitle: R.value.title ?? "",
|
|
806
|
+
quote: V.value,
|
|
807
|
+
text: R.value.description ?? "",
|
|
808
|
+
slots: B.value.map((e) => e.variants.map((t, n) => t.view ? F(e, n) : P(t.entry)))
|
|
809
809
|
});
|
|
810
810
|
}
|
|
811
811
|
S(() => [
|
|
812
|
-
|
|
812
|
+
R.value.title,
|
|
813
813
|
D.value,
|
|
814
814
|
x.value
|
|
815
815
|
], () => {
|
|
816
816
|
document.title = [
|
|
817
817
|
m("identity.windowTitle"),
|
|
818
818
|
D.value,
|
|
819
|
-
|
|
819
|
+
R.value.title,
|
|
820
820
|
r.page
|
|
821
821
|
].filter(Boolean).join(" | ");
|
|
822
822
|
}, { immediate: !0 });
|
|
823
|
-
let
|
|
823
|
+
let ae = i(() => A(x.value === "ar" ? "legacy/exhibition_bg_ar.jpg" : "legacy/exhibition_bg.jpg"));
|
|
824
824
|
return (e, r) => {
|
|
825
825
|
let i = v("router-link");
|
|
826
|
-
return
|
|
826
|
+
return L.value ? (p(), s("div", {
|
|
827
827
|
key: 0,
|
|
828
828
|
class: "mwnf-minisite-page",
|
|
829
|
-
style: f({ backgroundImage:
|
|
829
|
+
style: f({ backgroundImage: ae.value ? `url(${ae.value})` : "none" })
|
|
830
830
|
}, [
|
|
831
831
|
c("div", Wt, [
|
|
832
832
|
c("div", Gt, y(b(D)), 1),
|
|
@@ -836,13 +836,13 @@ var bt = { class: "mwnf-minisite-download" }, xt = ["src"], St = ["src"], Ct = [
|
|
|
836
836
|
})]),
|
|
837
837
|
c("div", qt, [
|
|
838
838
|
r[4] ||= l(" < ", -1),
|
|
839
|
-
u(i, { to:
|
|
839
|
+
u(i, { to: L.value.previous }, {
|
|
840
840
|
default: C(() => [l(y(b(m)("nav.previous")), 1)]),
|
|
841
841
|
_: 1
|
|
842
842
|
}, 8, ["to"]),
|
|
843
|
-
|
|
843
|
+
L.value.next ? (p(), s(n, { key: 0 }, [
|
|
844
844
|
r[2] ||= l(" | ", -1),
|
|
845
|
-
u(i, { to:
|
|
845
|
+
u(i, { to: L.value.next }, {
|
|
846
846
|
default: C(() => [l(y(b(m)("nav.next")), 1)]),
|
|
847
847
|
_: 1
|
|
848
848
|
}, 8, ["to"]),
|
|
@@ -852,74 +852,74 @@ var bt = { class: "mwnf-minisite-download" }, xt = ["src"], St = ["src"], Ct = [
|
|
|
852
852
|
]),
|
|
853
853
|
c("div", Jt, [c("div", {
|
|
854
854
|
class: "mwnf-minisite-page__text",
|
|
855
|
-
onClick: r[0] ||= (...e) => b(
|
|
855
|
+
onClick: r[0] ||= (...e) => b(J).onClick && b(J).onClick(...e)
|
|
856
856
|
}, [
|
|
857
857
|
c("div", {
|
|
858
858
|
class: "mwnf-minisite-page__page-title",
|
|
859
|
-
innerHTML: b(E).mdInline(
|
|
859
|
+
innerHTML: b(E).mdInline(R.value.title)
|
|
860
860
|
}, null, 8, Yt),
|
|
861
|
-
c("div", Xt, [(p(!0), s(n, null, g(
|
|
861
|
+
c("div", Xt, [(p(!0), s(n, null, g(B.value, (e, t) => w((p(), s("a", {
|
|
862
862
|
key: e.n,
|
|
863
863
|
href: "#",
|
|
864
|
-
onClick: T((e) =>
|
|
864
|
+
onClick: T((e) => te(t), ["prevent"])
|
|
865
865
|
}, [e.variants[0].image ? (p(), s("img", {
|
|
866
866
|
key: 0,
|
|
867
867
|
src: e.variants[0].image,
|
|
868
868
|
alt: "",
|
|
869
869
|
height: "36"
|
|
870
|
-
}, null, 8, Qt)) : o("", !0)], 8, Zt)), [[b(
|
|
870
|
+
}, null, 8, Qt)) : o("", !0)], 8, Zt)), [[b(W), {
|
|
871
871
|
text: b(E).mdStrip(b(F)(e, 0).name),
|
|
872
872
|
width: 160
|
|
873
873
|
}]])), 128))]),
|
|
874
874
|
c("div", {
|
|
875
|
-
class: d(["mwnf-minisite-page__quote", { "mwnf-minisite-page__quote--own-italics": b(
|
|
876
|
-
innerHTML: b(E).mdInline(
|
|
875
|
+
class: d(["mwnf-minisite-page__quote", { "mwnf-minisite-page__quote--own-italics": b(Ne)(V.value) }]),
|
|
876
|
+
innerHTML: b(E).mdInline(V.value, { glossary: z.value })
|
|
877
877
|
}, null, 10, $t),
|
|
878
878
|
c("div", {
|
|
879
879
|
class: "mwnf-minisite-page__content",
|
|
880
|
-
innerHTML: b(E).md(
|
|
880
|
+
innerHTML: b(E).md(R.value.description, { glossary: z.value })
|
|
881
881
|
}, null, 8, en),
|
|
882
|
-
u(wt, { word:
|
|
883
|
-
]), c("div", tn, [c("div", nn, [
|
|
882
|
+
u(wt, { word: ie })
|
|
883
|
+
]), c("div", tn, [c("div", nn, [K.value ? w((p(), s("a", {
|
|
884
884
|
key: 0,
|
|
885
885
|
href: "#",
|
|
886
|
-
onClick: T(
|
|
886
|
+
onClick: T(re, ["prevent"])
|
|
887
887
|
}, [c("img", {
|
|
888
|
-
src:
|
|
888
|
+
src: K.value,
|
|
889
889
|
alt: ""
|
|
890
|
-
}, null, 8, rn)])), [[b(
|
|
890
|
+
}, null, 8, rn)])), [[b(W), { text: b(m)("item.showZoom") }]]) : o("", !0)]), q.value ? (p(), s("div", an, [
|
|
891
891
|
c("div", null, [
|
|
892
|
-
c("strong", { innerHTML: b(E).mdInline(
|
|
892
|
+
c("strong", { innerHTML: b(E).mdInline(q.value.name) }, null, 8, on),
|
|
893
893
|
r[5] ||= c("br", null, null, -1),
|
|
894
|
-
c("span", { innerHTML: b(E).mdInline(
|
|
894
|
+
c("span", { innerHTML: b(E).mdInline(q.value.detailName) }, null, 8, sn),
|
|
895
895
|
r[6] ||= c("br", null, null, -1),
|
|
896
|
-
(p(!0), s(n, null, g(
|
|
896
|
+
(p(!0), s(n, null, g(q.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))
|
|
897
897
|
]),
|
|
898
|
-
c("div", null, [(p(!0), s(n, null, g(
|
|
899
|
-
b(_) === "BAR" ? (p(), s(n, { key: 0 }, [c("div", { innerHTML: b(E).mdInline(
|
|
900
|
-
|
|
898
|
+
c("div", null, [(p(!0), s(n, null, g(q.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(q.value.artist) }, null, 8, dn), c("div", { innerHTML: b(E).mdInline(q.value.material) }, null, 8, fn)], 64)) : o("", !0),
|
|
900
|
+
U.value.variants.length > 1 ? (p(), s("div", pn, [(p(!0), s(n, null, g(U.value.variants, (e, t) => w((p(), s("a", {
|
|
901
901
|
key: t,
|
|
902
902
|
href: "#",
|
|
903
|
-
onClick: T((e) =>
|
|
903
|
+
onClick: T((e) => ne(t), ["prevent"])
|
|
904
904
|
}, [c("img", {
|
|
905
|
-
src: b(A)(t ===
|
|
905
|
+
src: b(A)(t === H.value.variant ? "legacy/ico_item_selected.gif" : "legacy/ico_item.gif"),
|
|
906
906
|
alt: ""
|
|
907
|
-
}, null, 8, hn)], 8, mn)), [[b(
|
|
907
|
+
}, null, 8, hn)], 8, mn)), [[b(W), { text: b(m)("item.showDetail") }]])), 128))])) : o("", !0),
|
|
908
908
|
c("div", {
|
|
909
909
|
class: "mwnf-minisite-page__justification",
|
|
910
|
-
innerHTML: b(E).mdInline(
|
|
910
|
+
innerHTML: b(E).mdInline(q.value.justification)
|
|
911
911
|
}, null, 8, gn),
|
|
912
|
-
|
|
912
|
+
q.value.sheetId ? (p(), s("div", _n, [c("a", {
|
|
913
913
|
class: "mwnf-minisite-page__more",
|
|
914
|
-
href: b(k).itemHref?.(
|
|
914
|
+
href: b(k).itemHref?.(q.value.sheetId),
|
|
915
915
|
target: "_blank"
|
|
916
916
|
}, "> " + y(b(m)("item.moreInfo")), 9, vn)])) : o("", !0)
|
|
917
917
|
])) : o("", !0)])]),
|
|
918
|
-
b(
|
|
918
|
+
b(J).active.value ? (p(), a(t, {
|
|
919
919
|
key: 0,
|
|
920
|
-
term: b(
|
|
921
|
-
html: b(E).md(b(
|
|
922
|
-
onClose: b(
|
|
920
|
+
term: b(J).active.value,
|
|
921
|
+
html: b(E).md(b(J).active.value.definition),
|
|
922
|
+
onClose: b(J).close
|
|
923
923
|
}, null, 8, [
|
|
924
924
|
"term",
|
|
925
925
|
"html",
|
|
@@ -1019,7 +1019,7 @@ function An(e) {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
];
|
|
1021
1021
|
}
|
|
1022
|
-
function jn(e, t =
|
|
1022
|
+
function jn(e, t = Pe.ISL) {
|
|
1023
1023
|
return [
|
|
1024
1024
|
{
|
|
1025
1025
|
label: `${t}.menu.permanentCollection`,
|
|
@@ -1052,7 +1052,7 @@ function jn(e, t = Y.ISL) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
];
|
|
1054
1054
|
}
|
|
1055
|
-
function Mn(e, t =
|
|
1055
|
+
function Mn(e, t = Pe.BAR) {
|
|
1056
1056
|
return [
|
|
1057
1057
|
{
|
|
1058
1058
|
label: `${t}.menu.permanentCollection`,
|
|
@@ -1165,7 +1165,7 @@ var In = { class: "mwnf-sh__column" }, Ln = { class: "mwnf-sh-header" }, Rn = {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
},
|
|
1167
1167
|
setup(t) {
|
|
1168
|
-
let r = t, { t: a } =
|
|
1168
|
+
let r = t, { t: a } = L(), u = R(), m = z(), 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
1169
|
T.value = e === 0 ? 1 : Math.min(1.6, Math.max(.8, T.value + e));
|
|
1170
1170
|
}, O = i(() => ({
|
|
1171
1171
|
"--sh-title-band": `url(${x("legacy/bg.png") ?? ""})`,
|
|
@@ -1190,51 +1190,51 @@ var In = { class: "mwnf-sh__column" }, Ln = { class: "mwnf-sh-header" }, Rn = {
|
|
|
1190
1190
|
alt: "",
|
|
1191
1191
|
width: "101",
|
|
1192
1192
|
height: "45"
|
|
1193
|
-
}, null, 8, Bn)], 8, zn)), [[b(
|
|
1193
|
+
}, null, 8, Bn)], 8, zn)), [[b(W), { text: S("header.portalTip") }]])]),
|
|
1194
1194
|
r[6] ||= c("div", { class: "mwnf-sh-header__space" }, null, -1),
|
|
1195
1195
|
w((p(), s("a", {
|
|
1196
1196
|
class: "mwnf-sh-header__name",
|
|
1197
1197
|
href: t.homeHref
|
|
1198
|
-
}, [c("h1", null, y(S("header.heading")), 1), c("h2", null, y(S("header.subheading")), 1)], 8, Vn)), [[b(
|
|
1198
|
+
}, [c("h1", null, y(S("header.heading")), 1), c("h2", null, y(S("header.subheading")), 1)], 8, Vn)), [[b(W), { text: S("header.homeTip") }]]),
|
|
1199
1199
|
c("div", Hn, [c("ul", { class: d(["mwnf-sh-header__list", { "mwnf-sh-header__list--ruled": E.value }]) }, [
|
|
1200
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(
|
|
1202
|
-
c("li", null, [w((p(), s("a", { href: t.portalHref }, [l(y(S("header.portal")), 1)], 8, qn)), [[b(
|
|
1201
|
+
c("li", null, [w((p(), s("a", { href: t.homeHref }, [l(y(S("header.home")), 1)], 8, Kn)), [[b(W), { text: S("header.homeTip") }]])]),
|
|
1202
|
+
c("li", null, [w((p(), s("a", { href: t.portalHref }, [l(y(S("header.portal")), 1)], 8, qn)), [[b(W), { text: S("header.portalTip") }]])])
|
|
1203
1203
|
], 2), E.value ? (p(), s("div", Jn, [
|
|
1204
1204
|
w((p(), s("button", {
|
|
1205
1205
|
type: "button",
|
|
1206
1206
|
style: { "font-size": "8px" },
|
|
1207
1207
|
onClick: r[0] ||= (e) => D(-.1)
|
|
1208
|
-
}, [...r[3] ||= [l("A", -1)]])), [[b(
|
|
1208
|
+
}, [...r[3] ||= [l("A", -1)]])), [[b(W), { text: S("header.decreaseSize") }]]),
|
|
1209
1209
|
w((p(), s("button", {
|
|
1210
1210
|
type: "button",
|
|
1211
1211
|
style: { "font-size": "10px" },
|
|
1212
1212
|
onClick: r[1] ||= (e) => D(0)
|
|
1213
|
-
}, [...r[4] ||= [l("A", -1)]])), [[b(
|
|
1213
|
+
}, [...r[4] ||= [l("A", -1)]])), [[b(W), { text: S("header.revertSize") }]]),
|
|
1214
1214
|
w((p(), s("button", {
|
|
1215
1215
|
type: "button",
|
|
1216
1216
|
style: { "font-size": "12px" },
|
|
1217
1217
|
onClick: r[2] ||= (e) => D(.1)
|
|
1218
|
-
}, [...r[5] ||= [l("A", -1)]])), [[b(
|
|
1218
|
+
}, [...r[5] ||= [l("A", -1)]])), [[b(W), { text: S("header.increaseSize") }]])
|
|
1219
1219
|
])) : o("", !0)])
|
|
1220
1220
|
]),
|
|
1221
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(
|
|
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(W), { 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
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
1224
|
]),
|
|
1225
1225
|
r[9] ||= c("div", {
|
|
1226
1226
|
class: "mwnf-sh__strip",
|
|
1227
1227
|
"aria-hidden": "true"
|
|
1228
1228
|
}, null, -1),
|
|
1229
|
-
b(
|
|
1229
|
+
b(V).visible ? (p(), s("div", {
|
|
1230
1230
|
key: 0,
|
|
1231
1231
|
class: "mwnf-sh-tip",
|
|
1232
1232
|
style: f({
|
|
1233
|
-
left: `${b(
|
|
1234
|
-
top: `${b(
|
|
1235
|
-
width: `${b(
|
|
1233
|
+
left: `${b(V).x + 12}px`,
|
|
1234
|
+
top: `${b(V).y + 12}px`,
|
|
1235
|
+
width: `${b(V).width}px`
|
|
1236
1236
|
})
|
|
1237
|
-
}, y(b(
|
|
1237
|
+
}, y(b(V).text), 5)) : o("", !0)
|
|
1238
1238
|
], 4));
|
|
1239
1239
|
}
|
|
1240
1240
|
}, rr = "minisiteSharingHistory", ir = [
|
|
@@ -1289,10 +1289,14 @@ function ur(e) {
|
|
|
1289
1289
|
let e = n.display_order ?? 0;
|
|
1290
1290
|
t.has(e) || t.set(e, []), t.get(e).push(n);
|
|
1291
1291
|
}
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1292
|
+
let n = (e) => (e.variant_order ?? 1) === 1;
|
|
1293
|
+
return [...t.entries()].sort(([e], [t]) => e - t).flatMap(([e, t]) => {
|
|
1294
|
+
let r = t.filter((e) => !n(e)).sort((e, t) => e.variant_order - t.variant_order);
|
|
1295
|
+
return t.filter(n).map((t) => ({
|
|
1296
|
+
n: e,
|
|
1297
|
+
variants: [t, ...r]
|
|
1298
|
+
}));
|
|
1299
|
+
});
|
|
1296
1300
|
}
|
|
1297
1301
|
function dr({ item: e, own: t, entry: n, lang: r, countryName: i }) {
|
|
1298
1302
|
let a = e?.type !== "monument", o = [
|
|
@@ -1337,7 +1341,7 @@ function fr({ parent: e, exhibitionId: t, themeId: n = null, subthemeId: r = nul
|
|
|
1337
1341
|
];
|
|
1338
1342
|
}
|
|
1339
1343
|
function $() {
|
|
1340
|
-
let { pkg: t, data: n, tree: r } = ze(), { locale: a, t: o } =
|
|
1344
|
+
let { pkg: t, data: n, tree: r } = ze(), { locale: a, t: o } = L(), s = R(), c = s.minisite ?? {}, l = c.texts ?? "minisiteSharingHistory", u = (e) => o(`${l}.${e}`), d = B(), f = i(() => a.value);
|
|
1341
1345
|
S(f, (e) => Promise.all(ir.flatMap((n) => [t.loadTranslations(n, e), t.loadTranslations(n, "en")])), { immediate: !0 });
|
|
1342
1346
|
let p = (e) => t.translations("collections", f.value)[e] ?? {}, m = (e, n) => t.translations("collections", n)[e]?.title, h = r.root, g = i(() => h.value ? or(r.children(h.value.id), m, f.value) : []), _ = (e) => sr(r.children(e), m, f.value), v = i(() => ar(g.value, _)), y = (t.manifest.site?.languages ?? []).map((e) => e.code), b = (e) => t.manifest.site?.languages?.find((t) => t.code === e)?.label ?? e, x = (e) => e ? M(n.tr("countries", e, f.value).name ?? "") : "";
|
|
1343
1347
|
function C(e) {
|
|
@@ -1437,11 +1441,11 @@ var pr = {
|
|
|
1437
1441
|
}, {
|
|
1438
1442
|
default: C(() => [l(y(b(r)(`related.${t.key}`)), 1)]),
|
|
1439
1443
|
_: 2
|
|
1440
|
-
}, 1032, ["to", "target"])), [[b(
|
|
1444
|
+
}, 1032, ["to", "target"])), [[b(W), { text: _(t) }]]) : w((p(), s("a", {
|
|
1441
1445
|
key: 1,
|
|
1442
1446
|
href: t.href,
|
|
1443
1447
|
target: h.value
|
|
1444
|
-
}, [l(y(b(r)(`related.${t.key}`)), 1)], 8, _r)), [[b(
|
|
1448
|
+
}, [l(y(b(r)(`related.${t.key}`)), 1)], 8, _r)), [[b(W), { text: _(t) }]])
|
|
1445
1449
|
]))), 128)), e.allExhibitions ? (p(), s("li", vr, [
|
|
1446
1450
|
i[1] ||= l(" \xA0", -1),
|
|
1447
1451
|
c("img", {
|
|
@@ -1492,13 +1496,13 @@ var pr = {
|
|
|
1492
1496
|
}, Dr = {
|
|
1493
1497
|
key: 0,
|
|
1494
1498
|
class: "mwnf-sh-home"
|
|
1495
|
-
}, Or = { class: "mwnf-sh-home__heading" }, kr = { class: "mwnf-sh-home__title" }, Ar = ["innerHTML"], jr = { class: "mwnf-sh-home__menu" }, Mr = { class: "mwnf-sh-home__themes" }, Nr = ["src"], Pr = ["aria-expanded", "onClick"], Fr = ["
|
|
1499
|
+
}, Or = { class: "mwnf-sh-home__heading" }, kr = { class: "mwnf-sh-home__title" }, Ar = ["innerHTML"], jr = { class: "mwnf-sh-home__menu" }, Mr = { class: "mwnf-sh-home__themes" }, Nr = ["src"], Pr = ["aria-expanded", "onClick"], Fr = ["innerHTML"], Ir = ["src"], Lr = {
|
|
1496
1500
|
key: 0,
|
|
1497
1501
|
class: "mwnf-sh-home__pages"
|
|
1498
|
-
},
|
|
1502
|
+
}, Rr = ["src"], zr = ["src"], Br = { class: "mwnf-sh-band" }, Vr = { class: "mwnf-sh-band__logos" }, Hr = {
|
|
1499
1503
|
key: 0,
|
|
1500
1504
|
class: "mwnf-sh-band__gap"
|
|
1501
|
-
},
|
|
1505
|
+
}, Ur = ["href"], Wr = ["src"], Gr = ["src"], Kr = {
|
|
1502
1506
|
__name: "Home",
|
|
1503
1507
|
setup(e) {
|
|
1504
1508
|
let { data: t, imagesOf: r, label: a, picture: d, root: m, settings: _, subthemesOf: x, text: S, themes: T, title: E } = $(), D = (e) => _.partnerLinks?.[e.link] ?? e.link, O = i(() => m.value ? S(m.value.id).extra?.subtitle ?? "" : ""), k = i(() => r("logo")), A = h(-1);
|
|
@@ -1521,25 +1525,25 @@ var pr = {
|
|
|
1521
1525
|
height: "9"
|
|
1522
1526
|
}, null, 8, Nr)]),
|
|
1523
1527
|
_: 1
|
|
1524
|
-
}), (p(!0), s(n, null, g(b(T), (e,
|
|
1528
|
+
}), (p(!0), s(n, null, g(b(T), (e, r) => (p(), s("div", { key: e.id }, [c("button", {
|
|
1525
1529
|
type: "button",
|
|
1526
1530
|
class: "mwnf-sh-home__theme",
|
|
1527
|
-
"aria-expanded": A.value ===
|
|
1528
|
-
onClick: (e) => A.value = A.value ===
|
|
1529
|
-
}, [
|
|
1531
|
+
"aria-expanded": A.value === r,
|
|
1532
|
+
onClick: (e) => A.value = A.value === r ? -1 : r
|
|
1533
|
+
}, [c("span", { innerHTML: b(t).mdInline(b(S)(e.id).title ?? "") }, null, 8, Fr), c("img", {
|
|
1530
1534
|
src: b(d)("legacy/arrow_black_down.gif"),
|
|
1531
1535
|
alt: "",
|
|
1532
1536
|
width: "15",
|
|
1533
1537
|
height: "9"
|
|
1534
|
-
}, null, 8,
|
|
1538
|
+
}, null, 8, Ir)], 8, Pr), A.value === r ? (p(), s("ul", Lr, [c("li", null, [c("img", {
|
|
1535
1539
|
src: b(d)("legacy/arrow_inner_black.gif"),
|
|
1536
1540
|
alt: "",
|
|
1537
1541
|
class: "mwnf-sh-arrow",
|
|
1538
1542
|
width: "11",
|
|
1539
1543
|
height: "8"
|
|
1540
|
-
}, null, 8,
|
|
1544
|
+
}, null, 8, Rr), u(i, { to: {
|
|
1541
1545
|
name: "theme",
|
|
1542
|
-
params: { theme:
|
|
1546
|
+
params: { theme: r + 1 }
|
|
1543
1547
|
} }, {
|
|
1544
1548
|
default: C(() => [l(y(b(a)("home.overview")), 1)]),
|
|
1545
1549
|
_: 1
|
|
@@ -1549,37 +1553,37 @@ var pr = {
|
|
|
1549
1553
|
class: "mwnf-sh-arrow",
|
|
1550
1554
|
width: "11",
|
|
1551
1555
|
height: "8"
|
|
1552
|
-
}, null, 8,
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
},
|
|
1562
|
-
c("div",
|
|
1556
|
+
}, null, 8, zr), u(i, {
|
|
1557
|
+
to: {
|
|
1558
|
+
name: "subtheme",
|
|
1559
|
+
params: {
|
|
1560
|
+
theme: r + 1,
|
|
1561
|
+
page: n + 1
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1564
|
+
innerHTML: b(t).mdInline(b(S)(e.id).title ?? "")
|
|
1565
|
+
}, null, 8, ["to", "innerHTML"])]))), 128))])) : o("", !0)]))), 128))]), u(xr, { "all-exhibitions": "" })]),
|
|
1566
|
+
c("div", Br, [u(Er, { class: "mwnf-sh-band__links" }), c("div", Vr, [(p(!0), s(n, null, g(k.value, (e, t) => (p(), s(n, { key: e.url }, [t > 0 ? (p(), s("span", Hr)) : o("", !0), e.link ? w((p(), s("a", {
|
|
1563
1567
|
key: 1,
|
|
1564
1568
|
href: D(e)
|
|
1565
1569
|
}, [c("img", {
|
|
1566
1570
|
src: e.url,
|
|
1567
1571
|
alt: ""
|
|
1568
|
-
}, null, 8,
|
|
1572
|
+
}, null, 8, Wr)], 8, Ur)), [[b(W), { text: e.alt_text ?? "" }]]) : (p(), s("img", {
|
|
1569
1573
|
key: 2,
|
|
1570
1574
|
src: e.url,
|
|
1571
1575
|
alt: ""
|
|
1572
|
-
}, null, 8,
|
|
1576
|
+
}, null, 8, Gr))], 64))), 128))])])
|
|
1573
1577
|
])) : o("", !0);
|
|
1574
1578
|
};
|
|
1575
1579
|
}
|
|
1576
|
-
},
|
|
1580
|
+
}, qr = { class: "mwnf-sh-banner__title" }, Jr = { class: "mwnf-sh-nav" }, Yr = { class: "mwnf-sh-nav__group" }, Xr = { class: "mwnf-sh-nav__first" }, Zr = { class: "mwnf-sh-nav__second" }, Qr = ["href"], $r = {
|
|
1577
1581
|
key: 0,
|
|
1578
1582
|
class: "mwnf-sh-nav__group"
|
|
1579
|
-
},
|
|
1583
|
+
}, ei = { class: "mwnf-sh-nav__first mwnf-sh-nav__previous" }, ti = {
|
|
1580
1584
|
key: 0,
|
|
1581
1585
|
class: "mwnf-sh-nav__second mwnf-sh-nav__next"
|
|
1582
|
-
},
|
|
1586
|
+
}, ni = {
|
|
1583
1587
|
__name: "Banner",
|
|
1584
1588
|
props: {
|
|
1585
1589
|
kind: {
|
|
@@ -1604,7 +1608,7 @@ var pr = {
|
|
|
1604
1608
|
}
|
|
1605
1609
|
},
|
|
1606
1610
|
setup(e) {
|
|
1607
|
-
let t = e, n =
|
|
1611
|
+
let t = e, n = B(), { label: r, picture: i, settings: a, title: m } = $(), h = i(t.kind === "intro" ? "legacy/intro_bg.jpg" : "legacy/exhibition_bg.jpg");
|
|
1608
1612
|
function g() {
|
|
1609
1613
|
t.previous ? n.push(t.previous) : n.back();
|
|
1610
1614
|
}
|
|
@@ -1615,21 +1619,21 @@ var pr = {
|
|
|
1615
1619
|
style: f({ backgroundImage: b(h) ? `url(${b(h)})` : "none" })
|
|
1616
1620
|
}, [
|
|
1617
1621
|
n[0] ||= c("div", { class: "mwnf-sh-banner__top" }, null, -1),
|
|
1618
|
-
c("div",
|
|
1619
|
-
c("nav",
|
|
1622
|
+
c("div", qr, y(e.heading ?? b(m)), 1),
|
|
1623
|
+
c("nav", Jr, [c("div", Yr, [c("div", Xr, [u(i, { to: { name: "home" } }, {
|
|
1620
1624
|
default: C(() => [l(y(b(r)("nav.entrance")), 1)]),
|
|
1621
1625
|
_: 1
|
|
1622
|
-
})]), c("div",
|
|
1626
|
+
})]), c("div", Zr, [c("a", { href: `${b(a).parent}/#/exhibitions` }, y(b(r)("nav.allExhibitions")), 9, Qr)])]), e.paging ? (p(), s("div", $r, [c("div", ei, [c("button", {
|
|
1623
1627
|
type: "button",
|
|
1624
1628
|
onClick: g
|
|
1625
|
-
}, y(b(r)("nav.previous")), 1)]), e.next ? (p(), s("div",
|
|
1629
|
+
}, y(b(r)("nav.previous")), 1)]), e.next ? (p(), s("div", ti, [u(i, { to: e.next }, {
|
|
1626
1630
|
default: C(() => [l(y(b(r)("nav.next")), 1)]),
|
|
1627
1631
|
_: 1
|
|
1628
1632
|
}, 8, ["to"])])) : o("", !0)])) : o("", !0)])
|
|
1629
1633
|
], 6);
|
|
1630
1634
|
};
|
|
1631
1635
|
}
|
|
1632
|
-
},
|
|
1636
|
+
}, ri = { class: "mwnf-sh-download" }, ii = ["src"], ai = ["src"], oi = ["src"], si = {
|
|
1633
1637
|
__name: "Download",
|
|
1634
1638
|
props: {
|
|
1635
1639
|
title: {
|
|
@@ -1652,13 +1656,13 @@ var pr = {
|
|
|
1652
1656
|
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");
|
|
1653
1657
|
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);
|
|
1654
1658
|
}
|
|
1655
|
-
return (e, t) => (p(), s("div",
|
|
1659
|
+
return (e, t) => (p(), s("div", ri, [
|
|
1656
1660
|
c("img", {
|
|
1657
1661
|
src: b(r)("legacy/print.gif"),
|
|
1658
1662
|
alt: "",
|
|
1659
1663
|
width: "14",
|
|
1660
1664
|
height: "14"
|
|
1661
|
-
}, null, 8,
|
|
1665
|
+
}, null, 8, ii),
|
|
1662
1666
|
l(" / " + y(b(n)("download.heading")), 1),
|
|
1663
1667
|
t[1] ||= c("br", null, null, -1),
|
|
1664
1668
|
c("img", {
|
|
@@ -1667,7 +1671,7 @@ var pr = {
|
|
|
1667
1671
|
class: "mwnf-sh-arrow",
|
|
1668
1672
|
width: "11",
|
|
1669
1673
|
height: "8"
|
|
1670
|
-
}, null, 8,
|
|
1674
|
+
}, null, 8, ai),
|
|
1671
1675
|
c("a", {
|
|
1672
1676
|
href: "#",
|
|
1673
1677
|
onClick: t[0] ||= T((t) => e.window.print(), ["prevent"])
|
|
@@ -1679,94 +1683,94 @@ var pr = {
|
|
|
1679
1683
|
class: "mwnf-sh-arrow",
|
|
1680
1684
|
width: "11",
|
|
1681
1685
|
height: "8"
|
|
1682
|
-
}, null, 8,
|
|
1686
|
+
}, null, 8, oi),
|
|
1683
1687
|
c("a", {
|
|
1684
1688
|
href: "#",
|
|
1685
1689
|
onClick: T(a, ["prevent"])
|
|
1686
1690
|
}, y(b(n)("download.asWord")), 1)
|
|
1687
1691
|
]));
|
|
1688
1692
|
}
|
|
1689
|
-
},
|
|
1693
|
+
}, ci = {
|
|
1690
1694
|
key: 0,
|
|
1691
1695
|
style: { "font-size": "calc(11px * var(--sh-text-scale, 1))" }
|
|
1692
|
-
},
|
|
1696
|
+
}, li = { class: "mwnf-sh-intro" }, ui = { class: "mwnf-sh-intro__text" }, di = { class: "mwnf-sh-intro__heading" }, fi = ["innerHTML"], pi = { class: "mwnf-sh-intro__pictures" }, mi = {
|
|
1693
1697
|
key: 0,
|
|
1694
1698
|
class: "mwnf-sh-intro__picture"
|
|
1695
|
-
},
|
|
1699
|
+
}, hi = { class: "mwnf-sh-intro__frame" }, gi = ["src"], _i = ["src"], vi = ["innerHTML"], yi = ["innerHTML"], bi = ["innerHTML"], xi = ["src"], Si = ["href"], Ci = {
|
|
1696
1700
|
key: 1,
|
|
1697
1701
|
class: "mwnf-sh-intro__thumbs"
|
|
1698
|
-
},
|
|
1702
|
+
}, wi = ["onClick"], Ti = ["src"], Ei = { class: "mwnf-sh-bottom" }, Di = { class: "mwnf-sh-bottom__pages" }, Oi = ["src"], ki = { class: "mwnf-sh-bottom__current" }, Ai = ["src"], ji = { class: "mwnf-sh-bottom__related" }, Mi = {
|
|
1699
1703
|
__name: "Introduction",
|
|
1700
1704
|
setup(e) {
|
|
1701
1705
|
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] ? {
|
|
1702
1706
|
name: "theme",
|
|
1703
1707
|
params: { theme: 1 }
|
|
1704
|
-
} : null),
|
|
1705
|
-
if (!
|
|
1706
|
-
let e = r.tr("items",
|
|
1708
|
+
} : null), j = i(() => [...x.value?.items ?? []].filter((e) => e.image_url).sort((e, t) => (e.display_order ?? 0) - (t.display_order ?? 0)).slice(0, 5)), M = h(0), N = i(() => j.value[M.value] ?? null), P = i(() => {
|
|
1709
|
+
if (!N.value) return null;
|
|
1710
|
+
let e = r.tr("items", N.value.id, f.value), n = r.itemById.value.get(N.value.id)?.images?.[0]?.photographers ?? {};
|
|
1707
1711
|
return {
|
|
1708
|
-
...t(
|
|
1712
|
+
...t(N.value),
|
|
1709
1713
|
secondName: e.second_name ?? "",
|
|
1710
1714
|
photographer: n[f.value] ?? n.en ?? ""
|
|
1711
1715
|
};
|
|
1712
|
-
}),
|
|
1713
|
-
function
|
|
1716
|
+
}), F = i(() => N.value ? `${S.parent}/#/item/${encodeURIComponent(N.value.id)}` : "");
|
|
1717
|
+
function I() {
|
|
1714
1718
|
Z(a({
|
|
1715
1719
|
name: "zoom",
|
|
1716
|
-
query: { img:
|
|
1720
|
+
query: { img: N.value.image_url }
|
|
1717
1721
|
}), pr.zoom);
|
|
1718
1722
|
}
|
|
1719
1723
|
return (e, t) => {
|
|
1720
1724
|
let i = v("router-link");
|
|
1721
|
-
return b(x) ? (p(), s("div",
|
|
1722
|
-
u(
|
|
1725
|
+
return b(x) ? (p(), s("div", ci, [
|
|
1726
|
+
u(ni, {
|
|
1723
1727
|
kind: "intro",
|
|
1724
1728
|
previous: { name: "home" },
|
|
1725
1729
|
next: k.value
|
|
1726
1730
|
}, null, 8, ["next"]),
|
|
1727
|
-
c("div",
|
|
1728
|
-
c("div",
|
|
1731
|
+
c("div", li, [c("div", ui, [
|
|
1732
|
+
c("div", di, y(b(d)("home.introduction")), 1),
|
|
1729
1733
|
c("div", {
|
|
1730
1734
|
class: "mwnf-sh-intro__body",
|
|
1731
1735
|
innerHTML: b(r).md(O.value.description ?? "")
|
|
1732
|
-
}, null, 8,
|
|
1733
|
-
u(
|
|
1736
|
+
}, null, 8, fi),
|
|
1737
|
+
u(si, {
|
|
1734
1738
|
title: b(D),
|
|
1735
1739
|
blocks: [{
|
|
1736
1740
|
heading: b(d)("home.introduction"),
|
|
1737
1741
|
text: O.value.description ?? ""
|
|
1738
1742
|
}]
|
|
1739
1743
|
}, null, 8, ["title", "blocks"])
|
|
1740
|
-
]), c("div",
|
|
1741
|
-
c("div",
|
|
1744
|
+
]), c("div", pi, [N.value ? (p(), s("div", mi, [
|
|
1745
|
+
c("div", hi, [c("div", null, [
|
|
1742
1746
|
w((p(), s("button", {
|
|
1743
1747
|
type: "button",
|
|
1744
|
-
onClick:
|
|
1748
|
+
onClick: I
|
|
1745
1749
|
}, [c("img", {
|
|
1746
1750
|
class: "mwnf-sh-intro__shown",
|
|
1747
|
-
src:
|
|
1751
|
+
src: N.value.image_url,
|
|
1748
1752
|
alt: ""
|
|
1749
|
-
}, null, 8,
|
|
1753
|
+
}, null, 8, gi)])), [[b(W), { text: b(d)("item.showZoom") }]]),
|
|
1750
1754
|
t[0] ||= l("\xA0", -1),
|
|
1751
1755
|
t[1] ||= c("br", null, null, -1),
|
|
1752
1756
|
w((p(), s("button", {
|
|
1753
1757
|
type: "button",
|
|
1754
|
-
onClick:
|
|
1758
|
+
onClick: I
|
|
1755
1759
|
}, [c("img", {
|
|
1756
1760
|
src: b(_)("legacy/magnify.png"),
|
|
1757
1761
|
alt: "",
|
|
1758
1762
|
width: "15",
|
|
1759
1763
|
height: "15"
|
|
1760
|
-
}, null, 8,
|
|
1764
|
+
}, null, 8, _i)])), [[b(W), { text: b(d)("item.showZoom") }]])
|
|
1761
1765
|
])]),
|
|
1762
|
-
|
|
1766
|
+
P.value.name ? (p(), s("b", {
|
|
1763
1767
|
key: 0,
|
|
1764
|
-
innerHTML: b(r).mdInline(
|
|
1765
|
-
}, null, 8,
|
|
1766
|
-
|
|
1768
|
+
innerHTML: b(r).mdInline(P.value.name)
|
|
1769
|
+
}, null, 8, vi)) : o("", !0),
|
|
1770
|
+
P.value.secondName ? (p(), s(n, { key: 1 }, [
|
|
1767
1771
|
t[2] ||= c("br", null, null, -1),
|
|
1768
1772
|
t[3] ||= c("br", null, null, -1),
|
|
1769
|
-
c("b", { innerHTML: b(r).mdInline(
|
|
1773
|
+
c("b", { innerHTML: b(r).mdInline(P.value.secondName) }, null, 8, yi)
|
|
1770
1774
|
], 64)) : o("", !0),
|
|
1771
1775
|
(p(), s(n, null, g([
|
|
1772
1776
|
"date",
|
|
@@ -1775,10 +1779,10 @@ var pr = {
|
|
|
1775
1779
|
"material",
|
|
1776
1780
|
"architects",
|
|
1777
1781
|
"photographer"
|
|
1778
|
-
], (e) => (p(), s(n, { key: e }, [
|
|
1782
|
+
], (e) => (p(), s(n, { key: e }, [P.value[e] ? (p(), s(n, { key: 0 }, [
|
|
1779
1783
|
t[4] ||= c("br", null, null, -1),
|
|
1780
1784
|
t[5] ||= c("br", null, null, -1),
|
|
1781
|
-
c("span", { innerHTML: b(r).mdInline(
|
|
1785
|
+
c("span", { innerHTML: b(r).mdInline(P.value[e]) }, null, 8, bi)
|
|
1782
1786
|
], 64)) : o("", !0)], 64))), 64)),
|
|
1783
1787
|
t[6] ||= c("br", null, null, -1),
|
|
1784
1788
|
t[7] ||= c("br", null, null, -1),
|
|
@@ -1788,40 +1792,40 @@ var pr = {
|
|
|
1788
1792
|
class: "mwnf-sh-arrow",
|
|
1789
1793
|
width: "11",
|
|
1790
1794
|
height: "8"
|
|
1791
|
-
}, null, 8,
|
|
1792
|
-
c("a", { href:
|
|
1793
|
-
])) : o("", !0),
|
|
1795
|
+
}, null, 8, xi),
|
|
1796
|
+
c("a", { href: F.value }, y(b(d)("item.moreInfo")), 9, Si)
|
|
1797
|
+
])) : o("", !0), j.value.length ? (p(), s("div", Ci, [(p(!0), s(n, null, g(j.value, (e, t) => (p(), s("button", {
|
|
1794
1798
|
key: e.image_url,
|
|
1795
1799
|
type: "button",
|
|
1796
|
-
onClick: (e) =>
|
|
1800
|
+
onClick: (e) => M.value = t
|
|
1797
1801
|
}, [c("img", {
|
|
1798
1802
|
src: e.image_url,
|
|
1799
1803
|
alt: ""
|
|
1800
|
-
}, null, 8,
|
|
1801
|
-
c("div",
|
|
1804
|
+
}, null, 8, Ti)], 8, wi))), 128))])) : o("", !0)])]),
|
|
1805
|
+
c("div", Ei, [c("div", Di, [c("b", null, y(b(d)("page.inExhibition")), 1), c("ul", null, [c("li", null, [c("img", {
|
|
1802
1806
|
src: b(_)("legacy/arrow.gif"),
|
|
1803
1807
|
alt: "",
|
|
1804
1808
|
width: "10",
|
|
1805
1809
|
height: "9"
|
|
1806
|
-
}, null, 8,
|
|
1810
|
+
}, null, 8, Oi), c("span", ki, y(b(d)("home.introduction")), 1)]), (p(!0), s(n, null, g(b(E), (e, t) => (p(), s("li", { key: e.id }, [c("img", {
|
|
1807
1811
|
src: b(_)("legacy/arrow.gif"),
|
|
1808
1812
|
alt: "",
|
|
1809
1813
|
width: "10",
|
|
1810
1814
|
height: "9"
|
|
1811
|
-
}, null, 8,
|
|
1815
|
+
}, null, 8, Ai), u(i, { to: {
|
|
1812
1816
|
name: "theme",
|
|
1813
1817
|
params: { theme: t + 1 }
|
|
1814
1818
|
} }, {
|
|
1815
|
-
default: C(() => [l(y(b(T)(e.id).title), 1)]),
|
|
1819
|
+
default: C(() => [l(y(b(A)(b(T)(e.id).title ?? "")), 1)]),
|
|
1816
1820
|
_: 2
|
|
1817
|
-
}, 1032, ["to"])]))), 128))])]), c("div",
|
|
1821
|
+
}, 1032, ["to"])]))), 128))])]), c("div", ji, [u(xr, { arrow: "legacy/arrow_inner.gif" }), u(Er, { class: "mwnf-sh-bottom__windows" })])])
|
|
1818
1822
|
])) : o("", !0);
|
|
1819
1823
|
};
|
|
1820
1824
|
}
|
|
1821
|
-
},
|
|
1825
|
+
}, Ni = {
|
|
1822
1826
|
key: 0,
|
|
1823
1827
|
class: "mwnf-sh-panel"
|
|
1824
|
-
},
|
|
1828
|
+
}, Pi = { class: "mwnf-sh-panel__picture" }, Fi = { class: "mwnf-sh-panel__frame" }, Ii = ["src"], Li = { class: "mwnf-sh-panel__magnify" }, Ri = ["src"], zi = { class: "mwnf-sh-panel__caption" }, Bi = ["innerHTML"], Vi = ["innerHTML"], Hi = ["innerHTML"], Ui = ["innerHTML"], Wi = ["innerHTML"], Gi = ["innerHTML"], Ki = ["innerHTML"], qi = ["src"], Ji = ["href"], Yi = { class: "mwnf-sh-panel__related" }, Xi = ["onClick"], Zi = ["src"], Qi = {
|
|
1825
1829
|
__name: "Panel",
|
|
1826
1830
|
props: {
|
|
1827
1831
|
slot: {
|
|
@@ -1845,14 +1849,14 @@ var pr = {
|
|
|
1845
1849
|
query: { img: _.value.image_url }
|
|
1846
1850
|
}), pr.zoom);
|
|
1847
1851
|
}
|
|
1848
|
-
return (e, t) => _.value ? (p(), s("div",
|
|
1852
|
+
return (e, t) => _.value ? (p(), s("div", Ni, [c("div", Pi, [c("div", Fi, [c("div", null, [w((p(), s("button", {
|
|
1849
1853
|
type: "button",
|
|
1850
1854
|
onClick: C
|
|
1851
1855
|
}, [c("img", {
|
|
1852
1856
|
class: "mwnf-sh-panel__shown",
|
|
1853
1857
|
src: _.value.image_url,
|
|
1854
1858
|
alt: ""
|
|
1855
|
-
}, null, 8,
|
|
1859
|
+
}, null, 8, Ii)])), [[b(W), { text: b(f)("item.showZoom") }]]), c("div", Li, [w((p(), s("button", {
|
|
1856
1860
|
type: "button",
|
|
1857
1861
|
onClick: C
|
|
1858
1862
|
}, [c("img", {
|
|
@@ -1860,75 +1864,75 @@ var pr = {
|
|
|
1860
1864
|
alt: "",
|
|
1861
1865
|
width: "15",
|
|
1862
1866
|
height: "15"
|
|
1863
|
-
}, null, 8,
|
|
1867
|
+
}, null, 8, Ri)])), [[b(W), { text: b(f)("item.showZoom") }]])])])])]), c("div", zi, [
|
|
1864
1868
|
v.value.name ? (p(), s("p", {
|
|
1865
1869
|
key: 0,
|
|
1866
1870
|
class: "mwnf-sh-panel__name",
|
|
1867
1871
|
innerHTML: b(u).mdInline(v.value.name)
|
|
1868
|
-
}, null, 8,
|
|
1872
|
+
}, null, 8, Bi)) : o("", !0),
|
|
1869
1873
|
v.value.date ? (p(), s("p", {
|
|
1870
1874
|
key: 1,
|
|
1871
1875
|
innerHTML: b(u).mdInline(v.value.date)
|
|
1872
|
-
}, null, 8,
|
|
1876
|
+
}, null, 8, Vi)) : o("", !0),
|
|
1873
1877
|
v.value.place ? (p(), s("p", {
|
|
1874
1878
|
key: 2,
|
|
1875
1879
|
innerHTML: b(u).mdInline(v.value.place)
|
|
1876
|
-
}, null, 8,
|
|
1880
|
+
}, null, 8, Hi)) : o("", !0),
|
|
1877
1881
|
v.value.artist ? (p(), s("p", {
|
|
1878
1882
|
key: 3,
|
|
1879
1883
|
innerHTML: b(u).mdInline(v.value.artist)
|
|
1880
|
-
}, null, 8,
|
|
1884
|
+
}, null, 8, Ui)) : o("", !0),
|
|
1881
1885
|
v.value.material ? (p(), s("p", {
|
|
1882
1886
|
key: 4,
|
|
1883
1887
|
innerHTML: b(u).mdInline(v.value.material)
|
|
1884
|
-
}, null, 8,
|
|
1888
|
+
}, null, 8, Wi)) : o("", !0),
|
|
1885
1889
|
v.value.architects ? (p(), s("p", {
|
|
1886
1890
|
key: 5,
|
|
1887
1891
|
innerHTML: b(u).mdInline(v.value.architects)
|
|
1888
|
-
}, null, 8,
|
|
1892
|
+
}, null, 8, Gi)) : o("", !0),
|
|
1889
1893
|
v.value.justification ? (p(), s("p", {
|
|
1890
1894
|
key: 6,
|
|
1891
1895
|
class: "mwnf-sh-panel__justification",
|
|
1892
1896
|
innerHTML: b(u).mdInline(v.value.justification)
|
|
1893
|
-
}, null, 8,
|
|
1897
|
+
}, null, 8, Ki)) : o("", !0),
|
|
1894
1898
|
c("p", null, [c("img", {
|
|
1895
1899
|
src: b(m)("legacy/arrow_inner_black.gif"),
|
|
1896
1900
|
alt: "",
|
|
1897
1901
|
class: "mwnf-sh-arrow",
|
|
1898
1902
|
width: "11",
|
|
1899
1903
|
height: "8"
|
|
1900
|
-
}, null, 8,
|
|
1904
|
+
}, null, 8, qi), c("a", {
|
|
1901
1905
|
href: x.value,
|
|
1902
1906
|
target: "_blank",
|
|
1903
1907
|
rel: "noopener"
|
|
1904
|
-
}, y(b(f)("item.moreInfo")), 9,
|
|
1905
|
-
S.value.length ? (p(), s(n, { key: 7 }, [c("p", null, [c("b", null, y(b(f)("item.related")), 1)]), c("div",
|
|
1908
|
+
}, y(b(f)("item.moreInfo")), 9, Ji)]),
|
|
1909
|
+
S.value.length ? (p(), s(n, { key: 7 }, [c("p", null, [c("b", null, y(b(f)("item.related")), 1)]), c("div", Yi, [(p(!0), s(n, null, g(S.value, (e) => (p(), s("button", {
|
|
1906
1910
|
key: e.index,
|
|
1907
1911
|
type: "button",
|
|
1908
1912
|
onClick: (t) => a("update:view", e.index)
|
|
1909
1913
|
}, [c("img", {
|
|
1910
1914
|
src: e.variant.image_url,
|
|
1911
1915
|
alt: ""
|
|
1912
|
-
}, null, 8,
|
|
1916
|
+
}, null, 8, Zi)], 8, Xi))), 128))])], 64)) : o("", !0)
|
|
1913
1917
|
])])) : o("", !0);
|
|
1914
1918
|
}
|
|
1915
|
-
},
|
|
1919
|
+
}, $i = {
|
|
1916
1920
|
key: 1,
|
|
1917
1921
|
class: "mwnf-sh-pagewrap",
|
|
1918
1922
|
style: { "font-size": "calc(11px * var(--sh-text-scale, 1))" }
|
|
1919
|
-
},
|
|
1923
|
+
}, ea = { class: "mwnf-sh-page" }, ta = { class: "mwnf-sh-page__text" }, na = { class: "mwnf-sh-page__theme" }, ra = { class: "mwnf-sh-page__name" }, ia = {
|
|
1920
1924
|
key: 0,
|
|
1921
1925
|
class: "mwnf-sh-page__thumbs"
|
|
1922
|
-
},
|
|
1926
|
+
}, aa = ["onClick"], oa = ["src"], sa = { class: "mwnf-sh-page__body" }, ca = ["innerHTML"], la = ["innerHTML"], ua = { class: "mwnf-sh-more" }, da = { class: "mwnf-sh-more__label" }, fa = { class: "mwnf-sh-more__theme" }, pa = ["src"], ma = {
|
|
1923
1927
|
key: 0,
|
|
1924
1928
|
class: "mwnf-sh-more__current"
|
|
1925
|
-
},
|
|
1929
|
+
}, ha = ["src"], ga = {
|
|
1926
1930
|
key: 0,
|
|
1927
1931
|
class: "mwnf-sh-more__current"
|
|
1928
|
-
},
|
|
1932
|
+
}, _a = { class: "mwnf-sh-bottom" }, va = { class: "mwnf-sh-bottom__pages" }, ya = ["src"], ba = ["src"], xa = {
|
|
1929
1933
|
key: 0,
|
|
1930
1934
|
class: "mwnf-sh-bottom__current"
|
|
1931
|
-
},
|
|
1935
|
+
}, Sa = { class: "mwnf-sh-bottom__related" }, Ca = {
|
|
1932
1936
|
__name: "Page",
|
|
1933
1937
|
props: {
|
|
1934
1938
|
theme: {
|
|
@@ -1941,53 +1945,53 @@ var pr = {
|
|
|
1941
1945
|
}
|
|
1942
1946
|
},
|
|
1943
1947
|
setup(e) {
|
|
1944
|
-
let t = e, { data: r, label: d, pageAt: f, picture: m, slots: _, subthemesOf: x, text: w, themes: T, title: D } = $(), O = i(() => f(t.theme, t.page)), k = i(() => O.value?.themeNode ?? null),
|
|
1945
|
-
S(
|
|
1946
|
-
|
|
1948
|
+
let t = e, { data: r, label: d, pageAt: f, picture: m, slots: _, subthemesOf: x, text: w, themes: T, title: D } = $(), O = i(() => f(t.theme, t.page)), k = i(() => O.value?.themeNode ?? null), j = i(() => O.value?.node ?? null), M = i(() => j.value ? w(j.value.id) : {}), N = i(() => _(j.value)), P = i(() => k.value ? x(k.value.id) : []), F = h(0), I = h(0);
|
|
1949
|
+
S(j, () => {
|
|
1950
|
+
F.value = 0, I.value = 0;
|
|
1947
1951
|
});
|
|
1948
|
-
let
|
|
1949
|
-
|
|
1950
|
-
}, L = i(() => t.page === 0 ? d("home.overview") :
|
|
1952
|
+
let ee = (e) => {
|
|
1953
|
+
F.value = e, I.value = 0;
|
|
1954
|
+
}, L = (e) => A(w(e).title ?? ""), R = i(() => t.page === 0 ? d("home.overview") : A(M.value.title ?? "")), z = i(() => [
|
|
1951
1955
|
{ heading: w(k.value?.id).title },
|
|
1952
|
-
{ heading:
|
|
1953
|
-
{ text:
|
|
1954
|
-
{ text:
|
|
1956
|
+
{ heading: R.value },
|
|
1957
|
+
{ text: M.value.quote ?? "" },
|
|
1958
|
+
{ text: M.value.description ?? "" }
|
|
1955
1959
|
]);
|
|
1956
1960
|
return (t, i) => {
|
|
1957
1961
|
let f = v("router-link");
|
|
1958
|
-
return O.value ? (p(), s("div",
|
|
1959
|
-
u(
|
|
1960
|
-
c("div",
|
|
1961
|
-
c("div",
|
|
1962
|
-
c("div",
|
|
1963
|
-
|
|
1964
|
-
key: e.n
|
|
1962
|
+
return O.value ? (p(), s("div", $i, [
|
|
1963
|
+
u(ni, { next: O.value.next }, null, 8, ["next"]),
|
|
1964
|
+
c("div", ea, [c("div", ta, [
|
|
1965
|
+
c("div", na, y(L(k.value.id)), 1),
|
|
1966
|
+
c("div", ra, "\xA0" + y(R.value), 1),
|
|
1967
|
+
N.value.length ? (p(), s("div", ia, [(p(!0), s(n, null, g(N.value, (e, t) => (p(), s("button", {
|
|
1968
|
+
key: `${e.n}-${e.variants[0].id}`,
|
|
1965
1969
|
type: "button",
|
|
1966
|
-
onClick: (e) =>
|
|
1970
|
+
onClick: (e) => ee(t)
|
|
1967
1971
|
}, [c("img", {
|
|
1968
1972
|
src: e.variants[0].image_url,
|
|
1969
1973
|
alt: ""
|
|
1970
|
-
}, null, 8,
|
|
1974
|
+
}, null, 8, oa)], 8, aa))), 128))])) : o("", !0),
|
|
1971
1975
|
i[2] ||= c("div", { class: "mwnf-sh-page__rule" }, null, -1),
|
|
1972
|
-
c("div",
|
|
1976
|
+
c("div", sa, [M.value.quote ? (p(), s("div", {
|
|
1973
1977
|
key: 0,
|
|
1974
1978
|
class: "mwnf-sh-page__quote",
|
|
1975
|
-
innerHTML: b(r).md(
|
|
1976
|
-
}, null, 8,
|
|
1979
|
+
innerHTML: b(r).md(M.value.quote)
|
|
1980
|
+
}, null, 8, ca)) : o("", !0), M.value.description ? (p(), s("div", {
|
|
1977
1981
|
key: 1,
|
|
1978
|
-
innerHTML: b(r).md(
|
|
1979
|
-
}, null, 8,
|
|
1980
|
-
c("div",
|
|
1981
|
-
c("span",
|
|
1982
|
+
innerHTML: b(r).md(M.value.description)
|
|
1983
|
+
}, null, 8, la)) : o("", !0)]),
|
|
1984
|
+
c("div", ua, [c("b", null, [
|
|
1985
|
+
c("span", da, y(b(d)("page.moreAbout")), 1),
|
|
1982
1986
|
i[1] ||= c("br", null, null, -1),
|
|
1983
|
-
c("span",
|
|
1987
|
+
c("span", fa, y(L(k.value.id)), 1)
|
|
1984
1988
|
]), c("ul", null, [c("li", null, [c("img", {
|
|
1985
1989
|
src: b(m)("legacy/arrow_inner_black.gif"),
|
|
1986
1990
|
alt: "",
|
|
1987
1991
|
class: "mwnf-sh-arrow",
|
|
1988
1992
|
width: "11",
|
|
1989
1993
|
height: "8"
|
|
1990
|
-
}, null, 8,
|
|
1994
|
+
}, null, 8, pa), e.page === 0 ? (p(), s("span", ma, y(b(d)("home.overview")), 1)) : (p(), a(f, {
|
|
1991
1995
|
key: 1,
|
|
1992
1996
|
to: {
|
|
1993
1997
|
name: "theme",
|
|
@@ -1996,13 +2000,13 @@ var pr = {
|
|
|
1996
2000
|
}, {
|
|
1997
2001
|
default: C(() => [l(y(b(d)("home.overview")), 1)]),
|
|
1998
2002
|
_: 1
|
|
1999
|
-
}, 8, ["to"]))]), (p(!0), s(n, null, g(
|
|
2003
|
+
}, 8, ["to"]))]), (p(!0), s(n, null, g(P.value, (t, n) => (p(), s("li", { key: t.id }, [c("img", {
|
|
2000
2004
|
src: b(m)("legacy/arrow_inner_black.gif"),
|
|
2001
2005
|
alt: "",
|
|
2002
2006
|
class: "mwnf-sh-arrow",
|
|
2003
2007
|
width: "11",
|
|
2004
2008
|
height: "8"
|
|
2005
|
-
}, null, 8,
|
|
2009
|
+
}, null, 8, ha), e.page === n + 1 ? (p(), s("span", ga, y(L(t.id)), 1)) : (p(), a(f, {
|
|
2006
2010
|
key: 1,
|
|
2007
2011
|
to: {
|
|
2008
2012
|
name: "subtheme",
|
|
@@ -2012,24 +2016,24 @@ var pr = {
|
|
|
2012
2016
|
}
|
|
2013
2017
|
}
|
|
2014
2018
|
}, {
|
|
2015
|
-
default: C(() => [l(y(
|
|
2019
|
+
default: C(() => [l(y(L(t.id)), 1)]),
|
|
2016
2020
|
_: 2
|
|
2017
2021
|
}, 1032, ["to"]))]))), 128))])]),
|
|
2018
|
-
u(
|
|
2022
|
+
u(si, {
|
|
2019
2023
|
title: b(D),
|
|
2020
|
-
blocks:
|
|
2024
|
+
blocks: z.value
|
|
2021
2025
|
}, null, 8, ["title", "blocks"])
|
|
2022
|
-
]), u(
|
|
2023
|
-
view:
|
|
2024
|
-
"onUpdate:view": i[0] ||= (e) =>
|
|
2025
|
-
slot:
|
|
2026
|
+
]), u(Qi, {
|
|
2027
|
+
view: I.value,
|
|
2028
|
+
"onUpdate:view": i[0] ||= (e) => I.value = e,
|
|
2029
|
+
slot: N.value[F.value] ?? null
|
|
2026
2030
|
}, null, 8, ["view", "slot"])]),
|
|
2027
|
-
c("div",
|
|
2031
|
+
c("div", _a, [c("div", va, [c("b", null, y(b(d)("page.inExhibition")), 1), c("ul", null, [c("li", null, [c("img", {
|
|
2028
2032
|
src: b(m)("legacy/arrow.gif"),
|
|
2029
2033
|
alt: "",
|
|
2030
2034
|
width: "10",
|
|
2031
2035
|
height: "9"
|
|
2032
|
-
}, null, 8,
|
|
2036
|
+
}, null, 8, ya), u(f, { to: { name: "introduction" } }, {
|
|
2033
2037
|
default: C(() => [l(y(b(d)("home.introduction")), 1)]),
|
|
2034
2038
|
_: 1
|
|
2035
2039
|
})]), (p(!0), s(n, null, g(b(T), (t, n) => (p(), s("li", { key: t.id }, [c("img", {
|
|
@@ -2037,47 +2041,47 @@ var pr = {
|
|
|
2037
2041
|
alt: "",
|
|
2038
2042
|
width: "10",
|
|
2039
2043
|
height: "9"
|
|
2040
|
-
}, null, 8,
|
|
2044
|
+
}, null, 8, ba), n + 1 === e.theme ? (p(), s("span", xa, y(L(t.id)), 1)) : (p(), a(f, {
|
|
2041
2045
|
key: 1,
|
|
2042
2046
|
to: {
|
|
2043
2047
|
name: "theme",
|
|
2044
2048
|
params: { theme: n + 1 }
|
|
2045
2049
|
}
|
|
2046
2050
|
}, {
|
|
2047
|
-
default: C(() => [l(y(
|
|
2051
|
+
default: C(() => [l(y(L(t.id)), 1)]),
|
|
2048
2052
|
_: 2
|
|
2049
|
-
}, 1032, ["to"]))]))), 128))])]), c("div",
|
|
2053
|
+
}, 1032, ["to"]))]))), 128))])]), c("div", Sa, [u(xr, {
|
|
2050
2054
|
arrow: "legacy/arrow_inner.gif",
|
|
2051
2055
|
"theme-id": k.value.id,
|
|
2052
|
-
"subtheme-id": e.page === 0 ? null :
|
|
2056
|
+
"subtheme-id": e.page === 0 ? null : j.value.id
|
|
2053
2057
|
}, null, 8, ["theme-id", "subtheme-id"]), u(Er, { class: "mwnf-sh-bottom__windows" })])])
|
|
2054
2058
|
])) : (p(), a(b(E), { key: 0 }));
|
|
2055
2059
|
};
|
|
2056
2060
|
}
|
|
2057
|
-
},
|
|
2061
|
+
}, wa = { key: 0 }, Ta = { class: "mwnf-sh-reading" }, Ea = { class: "mwnf-sh-reading__languages" }, Da = {
|
|
2058
2062
|
key: 0,
|
|
2059
2063
|
class: "mwnf-sh-reading__language mwnf-sh-reading__language--current"
|
|
2060
|
-
},
|
|
2064
|
+
}, Oa = {
|
|
2061
2065
|
key: 1,
|
|
2062
2066
|
class: "mwnf-sh-reading__language"
|
|
2063
|
-
},
|
|
2067
|
+
}, ka = { class: "mwnf-sh-reading__content" }, Aa = { class: "mwnf-sh-reading__close" }, ja = ["src"], Ma = { class: "mwnf-sh-reading__title" }, Na = ["innerHTML"], Pa = {
|
|
2064
2068
|
__name: "FurtherReading",
|
|
2065
2069
|
setup(e) {
|
|
2066
2070
|
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();
|
|
2067
2071
|
return (e, i) => {
|
|
2068
2072
|
let a = v("router-link");
|
|
2069
|
-
return b(h) ? (p(), s("div",
|
|
2073
|
+
return b(h) ? (p(), s("div", wa, [u(ni, {
|
|
2070
2074
|
kind: "intro",
|
|
2071
2075
|
heading: b(r)("related.furtherReading"),
|
|
2072
2076
|
paging: !1
|
|
2073
|
-
}, null, 8, ["heading"]), c("div",
|
|
2077
|
+
}, null, 8, ["heading"]), c("div", Ta, [c("div", Ea, [(p(!0), s(n, null, g(D.value, (e) => (p(), s(n, { key: e }, [e === w.value ? (p(), s("div", Da, y(b(d)(e)), 1)) : (p(), s("div", Oa, [u(a, { to: {
|
|
2074
2078
|
name: "further-reading",
|
|
2075
2079
|
query: { lang: e }
|
|
2076
2080
|
} }, {
|
|
2077
2081
|
default: C(() => [l(y(b(d)(e)), 1)]),
|
|
2078
2082
|
_: 2
|
|
2079
|
-
}, 1032, ["to"])]))], 64))), 128))]), c("div",
|
|
2080
|
-
c("div",
|
|
2083
|
+
}, 1032, ["to"])]))], 64))), 128))]), c("div", ka, [
|
|
2084
|
+
c("div", Aa, [c("a", {
|
|
2081
2085
|
href: "#",
|
|
2082
2086
|
onClick: T(O, ["prevent"])
|
|
2083
2087
|
}, [c("img", {
|
|
@@ -2085,16 +2089,16 @@ var pr = {
|
|
|
2085
2089
|
alt: "",
|
|
2086
2090
|
width: "11",
|
|
2087
2091
|
height: "8"
|
|
2088
|
-
}, null, 8,
|
|
2089
|
-
c("div",
|
|
2092
|
+
}, null, 8, ja), l(y(b(r)("reading.close")), 1)])]),
|
|
2093
|
+
c("div", Ma, [c("span", null, y(b(x)), 1)]),
|
|
2090
2094
|
(p(!0), s(n, null, g(E.value, (e) => (p(), s("p", {
|
|
2091
2095
|
key: e,
|
|
2092
2096
|
innerHTML: b(t).mdInline(e)
|
|
2093
|
-
}, null, 8,
|
|
2097
|
+
}, null, 8, Na))), 128))
|
|
2094
2098
|
])])])) : o("", !0);
|
|
2095
2099
|
};
|
|
2096
2100
|
}
|
|
2097
|
-
},
|
|
2101
|
+
}, Fa = ["innerHTML"], Ia = {
|
|
2098
2102
|
__name: "Window",
|
|
2099
2103
|
props: { kind: {
|
|
2100
2104
|
type: String,
|
|
@@ -2109,10 +2113,10 @@ var pr = {
|
|
|
2109
2113
|
c("h3", null, y(b(l)), 1),
|
|
2110
2114
|
c("p", null, y(b(r)(`windows.${e.kind}`)), 1),
|
|
2111
2115
|
n[0] ||= c("br", null, null, -1),
|
|
2112
|
-
c("div", { innerHTML: d.value }, null, 8,
|
|
2116
|
+
c("div", { innerHTML: d.value }, null, 8, Fa)
|
|
2113
2117
|
]));
|
|
2114
2118
|
}
|
|
2115
|
-
},
|
|
2119
|
+
}, La = ["src"], Ra = {
|
|
2116
2120
|
__name: "Zoom",
|
|
2117
2121
|
props: { image: {
|
|
2118
2122
|
type: String,
|
|
@@ -2127,58 +2131,58 @@ var pr = {
|
|
|
2127
2131
|
key: 0,
|
|
2128
2132
|
src: c.value,
|
|
2129
2133
|
alt: ""
|
|
2130
|
-
}, null, 8,
|
|
2134
|
+
}, null, 8, La)) : o("", !0);
|
|
2131
2135
|
}
|
|
2132
|
-
},
|
|
2136
|
+
}, za = [
|
|
2133
2137
|
"collections",
|
|
2134
2138
|
"items",
|
|
2135
2139
|
"countries",
|
|
2136
2140
|
"partners"
|
|
2137
2141
|
];
|
|
2138
|
-
function
|
|
2142
|
+
function Ba(e) {
|
|
2139
2143
|
return [
|
|
2140
2144
|
{
|
|
2141
2145
|
path: "/",
|
|
2142
2146
|
name: "home",
|
|
2143
|
-
component:
|
|
2144
|
-
meta: e("home", ...
|
|
2147
|
+
component: Kr,
|
|
2148
|
+
meta: e("home", ...za)
|
|
2145
2149
|
},
|
|
2146
2150
|
{
|
|
2147
2151
|
path: "/introduction",
|
|
2148
2152
|
name: "introduction",
|
|
2149
|
-
component:
|
|
2150
|
-
meta: e("introduction", ...
|
|
2153
|
+
component: Mi,
|
|
2154
|
+
meta: e("introduction", ...za)
|
|
2151
2155
|
},
|
|
2152
2156
|
{
|
|
2153
2157
|
path: "/theme/:theme(\\d+)",
|
|
2154
2158
|
name: "theme",
|
|
2155
|
-
component:
|
|
2159
|
+
component: Ca,
|
|
2156
2160
|
props: (e) => ({
|
|
2157
2161
|
theme: Number(e.params.theme),
|
|
2158
2162
|
page: 0
|
|
2159
2163
|
}),
|
|
2160
|
-
meta: e("theme", ...
|
|
2164
|
+
meta: e("theme", ...za)
|
|
2161
2165
|
},
|
|
2162
2166
|
{
|
|
2163
2167
|
path: "/theme/:theme(\\d+)/:page(\\d+)",
|
|
2164
2168
|
name: "subtheme",
|
|
2165
|
-
component:
|
|
2169
|
+
component: Ca,
|
|
2166
2170
|
props: (e) => ({
|
|
2167
2171
|
theme: Number(e.params.theme),
|
|
2168
2172
|
page: Number(e.params.page)
|
|
2169
2173
|
}),
|
|
2170
|
-
meta: e("subtheme", ...
|
|
2174
|
+
meta: e("subtheme", ...za)
|
|
2171
2175
|
},
|
|
2172
2176
|
{
|
|
2173
2177
|
path: "/further-reading",
|
|
2174
2178
|
name: "further-reading",
|
|
2175
|
-
component:
|
|
2179
|
+
component: Pa,
|
|
2176
2180
|
meta: e("further-reading", "collections")
|
|
2177
2181
|
},
|
|
2178
2182
|
{
|
|
2179
2183
|
path: "/credits",
|
|
2180
2184
|
name: "credits",
|
|
2181
|
-
component:
|
|
2185
|
+
component: Ia,
|
|
2182
2186
|
props: { kind: "curators" },
|
|
2183
2187
|
meta: {
|
|
2184
2188
|
...e("credits", "collections"),
|
|
@@ -2188,7 +2192,7 @@ function za(e) {
|
|
|
2188
2192
|
{
|
|
2189
2193
|
path: "/cover-image",
|
|
2190
2194
|
name: "cover-image",
|
|
2191
|
-
component:
|
|
2195
|
+
component: Ia,
|
|
2192
2196
|
props: { kind: "coverImage" },
|
|
2193
2197
|
meta: {
|
|
2194
2198
|
...e("cover-image", "collections"),
|
|
@@ -2198,7 +2202,7 @@ function za(e) {
|
|
|
2198
2202
|
{
|
|
2199
2203
|
path: "/zoom",
|
|
2200
2204
|
name: "zoom",
|
|
2201
|
-
component:
|
|
2205
|
+
component: Ra,
|
|
2202
2206
|
props: (e) => ({ image: String(e.query.img ?? "") }),
|
|
2203
2207
|
meta: {
|
|
2204
2208
|
...e("zoom", "collections"),
|
|
@@ -2207,8 +2211,8 @@ function za(e) {
|
|
|
2207
2211
|
}
|
|
2208
2212
|
];
|
|
2209
2213
|
}
|
|
2210
|
-
var
|
|
2211
|
-
function
|
|
2214
|
+
var Va = "https://www.museumwnf.org/about/language-policy";
|
|
2215
|
+
function Ha({ languages: e, parent: t, profiles: n = [], texts: r = rr }) {
|
|
2212
2216
|
let i = [{
|
|
2213
2217
|
label: "header.project",
|
|
2214
2218
|
href: `${t}/#/about`
|
|
@@ -2282,7 +2286,7 @@ function Va({ languages: e, parent: t, profiles: n = [], texts: r = rr }) {
|
|
|
2282
2286
|
},
|
|
2283
2287
|
{
|
|
2284
2288
|
label: "footer.languagePolicy",
|
|
2285
|
-
href:
|
|
2289
|
+
href: Va
|
|
2286
2290
|
},
|
|
2287
2291
|
{
|
|
2288
2292
|
label: "footer.cookies",
|
|
@@ -2291,7 +2295,7 @@ function Va({ languages: e, parent: t, profiles: n = [], texts: r = rr }) {
|
|
|
2291
2295
|
]
|
|
2292
2296
|
};
|
|
2293
2297
|
}
|
|
2294
|
-
function
|
|
2298
|
+
function Ua({ parent: e, texts: t = rr, ...n }) {
|
|
2295
2299
|
return {
|
|
2296
2300
|
parent: e,
|
|
2297
2301
|
texts: t,
|
|
@@ -2300,4 +2304,301 @@ function Ha({ parent: e, texts: t = rr, ...n }) {
|
|
|
2300
2304
|
};
|
|
2301
2305
|
}
|
|
2302
2306
|
//#endregion
|
|
2303
|
-
|
|
2307
|
+
//#region src/minisite/artintro/Home.vue
|
|
2308
|
+
var Wa = ["innerHTML"], Ga = ["innerHTML"], Ka = ["innerHTML"], qa = ["innerHTML"], Ja = { class: "mwnf-artintro-home__menu" }, Ya = {
|
|
2309
|
+
key: 0,
|
|
2310
|
+
class: "mwnf-artintro-home__menu2"
|
|
2311
|
+
}, Xa = {
|
|
2312
|
+
key: 1,
|
|
2313
|
+
class: "mwnf-artintro-home__icons"
|
|
2314
|
+
}, Za = { class: "mwnf-artintro-home__social" }, Qa = ["href"], $a = {
|
|
2315
|
+
__name: "Home",
|
|
2316
|
+
setup(e) {
|
|
2317
|
+
let { label: t, lang: r, data: a, root: d, themes: m, text: h, title: _, settings: x, picture: w, glossaryFor: T } = X(), E = i(() => d.value ? h(d.value.id) : {}), D = i(() => d.value ? a.mdInline(E.value.description, { glossary: T(d.value.id) }) : ""), O = i(() => (x.menuSecondColumnFrom ?? Infinity) - 1), k = i(() => m.value.slice(0, O.value).map((e, t) => ({
|
|
2318
|
+
theme: e,
|
|
2319
|
+
number: t + 1
|
|
2320
|
+
}))), A = i(() => m.value.slice(O.value).map((e, t) => ({
|
|
2321
|
+
theme: e,
|
|
2322
|
+
number: O.value + t + 1
|
|
2323
|
+
}))), j = i(() => x.social ?? []), M = i(() => w(r.value === "ar" ? "legacy/home_bg_ar.jpg" : "legacy/home_bg.jpg"));
|
|
2324
|
+
return S([_, r], () => {
|
|
2325
|
+
document.title = [t("identity.windowTitle"), _.value].filter(Boolean).join(" | ");
|
|
2326
|
+
}, { immediate: !0 }), (e, t) => {
|
|
2327
|
+
let r = v("router-link");
|
|
2328
|
+
return p(), s("div", {
|
|
2329
|
+
class: "mwnf-artintro-home",
|
|
2330
|
+
style: f({ backgroundImage: M.value ? `url(${M.value})` : "none" })
|
|
2331
|
+
}, [
|
|
2332
|
+
c("div", {
|
|
2333
|
+
class: "mwnf-artintro-home__title",
|
|
2334
|
+
innerHTML: b(a).mdInline(b(_))
|
|
2335
|
+
}, null, 8, Wa),
|
|
2336
|
+
c("div", {
|
|
2337
|
+
class: "mwnf-artintro-home__subtitle",
|
|
2338
|
+
innerHTML: b(a).mdInline(E.value.extra?.subtitle ?? "")
|
|
2339
|
+
}, null, 8, Ga),
|
|
2340
|
+
c("div", {
|
|
2341
|
+
class: "mwnf-artintro-home__description",
|
|
2342
|
+
innerHTML: D.value
|
|
2343
|
+
}, null, 8, Ka),
|
|
2344
|
+
c("div", {
|
|
2345
|
+
class: "mwnf-artintro-home__credits",
|
|
2346
|
+
innerHTML: b(a).mdInline(E.value.extra?.credits ?? "")
|
|
2347
|
+
}, null, 8, qa),
|
|
2348
|
+
c("div", Ja, [(p(!0), s(n, null, g(k.value, ({ theme: e, number: t }) => (p(), s("div", { key: e.id }, [u(r, { to: {
|
|
2349
|
+
name: "page",
|
|
2350
|
+
params: { theme: t }
|
|
2351
|
+
} }, {
|
|
2352
|
+
default: C(() => [l(y(b(h)(e.id).title), 1)]),
|
|
2353
|
+
_: 2
|
|
2354
|
+
}, 1032, ["to"])]))), 128))]),
|
|
2355
|
+
A.value.length ? (p(), s("div", Ya, [(p(!0), s(n, null, g(A.value, ({ theme: e, number: n }) => (p(), s("div", { key: e.id }, [t[0] ||= l(" > ", -1), u(r, { to: {
|
|
2356
|
+
name: "page",
|
|
2357
|
+
params: { theme: n }
|
|
2358
|
+
} }, {
|
|
2359
|
+
default: C(() => [l(y(b(h)(e.id).title), 1)]),
|
|
2360
|
+
_: 2
|
|
2361
|
+
}, 1032, ["to"])]))), 128))])) : o("", !0),
|
|
2362
|
+
j.value.length ? (p(), s("div", Xa, [c("div", Za, [(p(!0), s(n, null, g(j.value, (e) => (p(), s("a", {
|
|
2363
|
+
key: e.href,
|
|
2364
|
+
href: e.href,
|
|
2365
|
+
target: "_blank",
|
|
2366
|
+
rel: "noopener"
|
|
2367
|
+
}, [c("span", {
|
|
2368
|
+
class: "mwnf-artintro-home__icon",
|
|
2369
|
+
style: f({
|
|
2370
|
+
maskImage: `url("${b(w)(e.icon)}")`,
|
|
2371
|
+
width: `${e.aspect ?? 1}em`
|
|
2372
|
+
}),
|
|
2373
|
+
"aria-hidden": "true"
|
|
2374
|
+
}, null, 4)], 8, Qa))), 128))]), t[1] ||= c("br", null, null, -1)])) : o("", !0)
|
|
2375
|
+
], 4);
|
|
2376
|
+
};
|
|
2377
|
+
}
|
|
2378
|
+
}, eo = {
|
|
2379
|
+
key: 0,
|
|
2380
|
+
class: "mwnf-artintro-page"
|
|
2381
|
+
}, to = { class: "mwnf-artintro-page__back" }, no = ["innerHTML"], ro = ["innerHTML"], io = { class: "mwnf-artintro-page__body" }, ao = ["innerHTML"], oo = { class: "mwnf-artintro-page__pages" }, so = ["innerHTML"], co = ["innerHTML"], lo = ["innerHTML"], uo = { class: "mwnf-artintro-page__item" }, fo = { class: "mwnf-artintro-page__image" }, po = ["src"], mo = {
|
|
2382
|
+
key: 0,
|
|
2383
|
+
class: "mwnf-artintro-page__caption"
|
|
2384
|
+
}, ho = ["innerHTML"], go = { key: 0 }, _o = ["innerHTML"], vo = ["innerHTML"], yo = { key: 0 }, bo = ["onClick"], xo = ["src"], So = ["innerHTML"], Co = { key: 1 }, wo = ["href"], To = { class: "mwnf-artintro-page__thumbs" }, Eo = ["onClick"], Do = ["src"], Oo = {
|
|
2385
|
+
__name: "Page",
|
|
2386
|
+
props: {
|
|
2387
|
+
theme: {
|
|
2388
|
+
type: Number,
|
|
2389
|
+
required: !0
|
|
2390
|
+
},
|
|
2391
|
+
page: {
|
|
2392
|
+
type: Number,
|
|
2393
|
+
required: !0
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
setup(e) {
|
|
2397
|
+
let r = e, { label: m, lang: _, data: x, root: E, title: D, text: O, settings: k, picture: A, href: j, pages: M, slots: N, viewCaption: P, glossaryFor: F } = X(), I = i(() => M.value.find((e) => e.theme === r.theme && e.page === r.page) ?? null), L = i(() => M.value.filter((e) => e.theme === r.theme)), R = i(() => I.value ? O(I.value.node.id) : {}), z = i(() => I.value ? F(I.value.node.id) : []), B = i(() => I.value ? N(I.value.node) : []), V = i(() => R.value.quote ?? ""), H = i(() => E.value ? O(E.value.id).extra?.subtitle ?? "" : ""), U = h({
|
|
2398
|
+
slot: 0,
|
|
2399
|
+
variant: 0
|
|
2400
|
+
});
|
|
2401
|
+
S(() => [r.theme, r.page], () => U.value = {
|
|
2402
|
+
slot: 0,
|
|
2403
|
+
variant: 0
|
|
2404
|
+
});
|
|
2405
|
+
let G = i(() => B.value[U.value.slot] ?? null), K = i(() => ke(G.value, U.value.variant)), q = i(() => G.value?.variants[U.value.variant] ? {
|
|
2406
|
+
...P(G.value, U.value.variant),
|
|
2407
|
+
sheetId: Oe(G.value, U.value.variant, (e) => x.itemById.value.get(e))
|
|
2408
|
+
} : null);
|
|
2409
|
+
function te(e) {
|
|
2410
|
+
U.value = {
|
|
2411
|
+
slot: e,
|
|
2412
|
+
variant: 0
|
|
2413
|
+
};
|
|
2414
|
+
}
|
|
2415
|
+
function ne(e) {
|
|
2416
|
+
U.value = {
|
|
2417
|
+
...U.value,
|
|
2418
|
+
variant: e
|
|
2419
|
+
};
|
|
2420
|
+
}
|
|
2421
|
+
function re() {
|
|
2422
|
+
K.value && Z(j({
|
|
2423
|
+
name: "zoom",
|
|
2424
|
+
query: { img: K.value }
|
|
2425
|
+
}), Ve.zoom);
|
|
2426
|
+
}
|
|
2427
|
+
let J = ee(z), ie = i(() => A("legacy/page_block1_bg.gif"));
|
|
2428
|
+
return S([D, _], () => {
|
|
2429
|
+
document.title = [m("identity.windowTitle"), D.value].filter(Boolean).join(" | ");
|
|
2430
|
+
}, { immediate: !0 }), (r, i) => {
|
|
2431
|
+
let h = v("router-link");
|
|
2432
|
+
return I.value ? (p(), s("div", eo, [
|
|
2433
|
+
c("div", {
|
|
2434
|
+
class: "mwnf-artintro-page__head",
|
|
2435
|
+
style: f({ backgroundImage: ie.value ? `url(${ie.value})` : "none" })
|
|
2436
|
+
}, [c("div", to, [i[2] ||= l(" < ", -1), u(h, { to: { name: "home" } }, {
|
|
2437
|
+
default: C(() => [
|
|
2438
|
+
c("span", { innerHTML: b(x).mdInline(H.value) }, null, 8, no),
|
|
2439
|
+
i[1] ||= l(" | ", -1),
|
|
2440
|
+
c("span", { innerHTML: b(x).mdInline(b(D)) }, null, 8, ro)
|
|
2441
|
+
]),
|
|
2442
|
+
_: 1
|
|
2443
|
+
})])], 4),
|
|
2444
|
+
c("div", io, [c("div", {
|
|
2445
|
+
class: "mwnf-artintro-page__text",
|
|
2446
|
+
onClick: i[0] ||= (...e) => b(J).onClick && b(J).onClick(...e)
|
|
2447
|
+
}, [
|
|
2448
|
+
c("div", {
|
|
2449
|
+
class: "mwnf-artintro-page__title",
|
|
2450
|
+
innerHTML: b(x).mdInline(b(O)(I.value.themeNode.id).title)
|
|
2451
|
+
}, null, 8, ao),
|
|
2452
|
+
c("div", oo, [(p(!0), s(n, null, g(L.value, (t, r) => (p(), s(n, { key: t.node.id }, [r > 0 ? (p(), s(n, { key: 0 }, [l(" / ")], 64)) : o("", !0), u(h, {
|
|
2453
|
+
to: {
|
|
2454
|
+
name: "page",
|
|
2455
|
+
params: {
|
|
2456
|
+
theme: t.theme,
|
|
2457
|
+
page: t.page
|
|
2458
|
+
}
|
|
2459
|
+
},
|
|
2460
|
+
class: d(t.page === e.page ? "mwnf-artintro-page__current" : "mwnf-artintro-page__other")
|
|
2461
|
+
}, {
|
|
2462
|
+
default: C(() => [c("span", { innerHTML: b(x).mdInline(b(O)(t.node.id).title) }, null, 8, so)]),
|
|
2463
|
+
_: 2
|
|
2464
|
+
}, 1032, ["to", "class"])], 64))), 128))]),
|
|
2465
|
+
c("div", {
|
|
2466
|
+
class: d(["mwnf-artintro-page__quote", { "mwnf-artintro-page__quote--own-italics": b(Ne)(V.value) }]),
|
|
2467
|
+
innerHTML: b(x).mdInline(V.value, { glossary: z.value })
|
|
2468
|
+
}, null, 10, co),
|
|
2469
|
+
c("div", {
|
|
2470
|
+
class: "mwnf-artintro-page__content",
|
|
2471
|
+
innerHTML: b(x).md(R.value.description, { glossary: z.value })
|
|
2472
|
+
}, null, 8, lo)
|
|
2473
|
+
]), c("div", uo, [
|
|
2474
|
+
c("div", fo, [K.value ? w((p(), s("a", {
|
|
2475
|
+
key: 0,
|
|
2476
|
+
href: "#",
|
|
2477
|
+
onClick: T(re, ["prevent"])
|
|
2478
|
+
}, [c("img", {
|
|
2479
|
+
src: K.value,
|
|
2480
|
+
alt: ""
|
|
2481
|
+
}, null, 8, po)])), [[b(W), { text: b(m)("item.showZoom") }]]) : o("", !0)]),
|
|
2482
|
+
q.value ? (p(), s("div", mo, [
|
|
2483
|
+
c("div", null, [
|
|
2484
|
+
c("strong", { innerHTML: b(x).mdInline(q.value.name) }, null, 8, ho),
|
|
2485
|
+
i[3] ||= c("br", null, null, -1),
|
|
2486
|
+
(p(!0), s(n, null, g(q.value.dateLines, (e, t) => (p(), s(n, { key: t }, [t > 0 ? (p(), s("br", go)) : o("", !0), c("span", { innerHTML: b(x).mdInline(e) }, null, 8, _o)], 64))), 128))
|
|
2487
|
+
]),
|
|
2488
|
+
c("div", null, [(p(!0), s(n, null, g(q.value.details, (e, t) => (p(), s(n, { key: t }, [c("span", { innerHTML: b(x).mdInline(e) }, null, 8, vo), i[4] ||= c("br", null, null, -1)], 64))), 128))]),
|
|
2489
|
+
G.value.variants.length > 1 ? (p(), s("div", yo, [(p(!0), s(n, null, g(G.value.variants, (e, t) => w((p(), s("a", {
|
|
2490
|
+
key: t,
|
|
2491
|
+
href: "#",
|
|
2492
|
+
onClick: T((e) => ne(t), ["prevent"])
|
|
2493
|
+
}, [c("img", {
|
|
2494
|
+
src: b(A)(t === U.value.variant ? "legacy/ico_item_selected.gif" : "legacy/ico_item.gif"),
|
|
2495
|
+
alt: ""
|
|
2496
|
+
}, null, 8, xo)], 8, bo)), [[b(W), { text: b(m)("item.showDetail") }]])), 128))])) : o("", !0),
|
|
2497
|
+
c("div", {
|
|
2498
|
+
class: "mwnf-artintro-page__justification",
|
|
2499
|
+
innerHTML: b(x).mdInline(q.value.justification)
|
|
2500
|
+
}, null, 8, So),
|
|
2501
|
+
q.value.sheetId ? (p(), s("div", Co, [c("a", {
|
|
2502
|
+
class: "mwnf-artintro-page__more",
|
|
2503
|
+
href: b(k).itemHref?.(q.value.sheetId)
|
|
2504
|
+
}, "> " + y(b(m)("item.moreInfo")), 9, wo)])) : o("", !0)
|
|
2505
|
+
])) : o("", !0),
|
|
2506
|
+
c("div", To, [(p(!0), s(n, null, g(B.value, (e, t) => w((p(), s("a", {
|
|
2507
|
+
key: `${e.n}-${e.variants[0].entry.id}`,
|
|
2508
|
+
href: "#",
|
|
2509
|
+
onClick: T((e) => te(t), ["prevent"])
|
|
2510
|
+
}, [e.variants[0].image ? (p(), s("img", {
|
|
2511
|
+
key: 0,
|
|
2512
|
+
src: e.variants[0].image,
|
|
2513
|
+
alt: "",
|
|
2514
|
+
height: "36"
|
|
2515
|
+
}, null, 8, Do)) : o("", !0)], 8, Eo)), [[b(W), {
|
|
2516
|
+
text: b(x).mdStrip(b(P)(e, 0).name),
|
|
2517
|
+
width: 160
|
|
2518
|
+
}]])), 128))])
|
|
2519
|
+
])]),
|
|
2520
|
+
b(J).active.value ? (p(), a(t, {
|
|
2521
|
+
key: 0,
|
|
2522
|
+
term: b(J).active.value,
|
|
2523
|
+
html: b(x).md(b(J).active.value.definition),
|
|
2524
|
+
onClose: b(J).close
|
|
2525
|
+
}, null, 8, [
|
|
2526
|
+
"term",
|
|
2527
|
+
"html",
|
|
2528
|
+
"onClose"
|
|
2529
|
+
])) : o("", !0)
|
|
2530
|
+
])) : o("", !0);
|
|
2531
|
+
};
|
|
2532
|
+
}
|
|
2533
|
+
};
|
|
2534
|
+
//#endregion
|
|
2535
|
+
//#region src/minisite/artintro/routes.js
|
|
2536
|
+
function ko(e) {
|
|
2537
|
+
return [
|
|
2538
|
+
{
|
|
2539
|
+
path: "/",
|
|
2540
|
+
name: "home",
|
|
2541
|
+
component: $a,
|
|
2542
|
+
meta: e("home", "collections")
|
|
2543
|
+
},
|
|
2544
|
+
{
|
|
2545
|
+
path: "/page/:theme(\\d+)/:page(\\d+)?",
|
|
2546
|
+
name: "page",
|
|
2547
|
+
component: Oo,
|
|
2548
|
+
props: (e) => ({
|
|
2549
|
+
theme: Number(e.params.theme),
|
|
2550
|
+
page: Number(e.params.page || 1)
|
|
2551
|
+
}),
|
|
2552
|
+
meta: e("page", ...Be)
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
path: "/zoom",
|
|
2556
|
+
name: "zoom",
|
|
2557
|
+
component: kn,
|
|
2558
|
+
props: (e) => ({ image: String(e.query.img ?? "") }),
|
|
2559
|
+
meta: {
|
|
2560
|
+
...e("zoom", "collections"),
|
|
2561
|
+
bare: "zoom"
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
];
|
|
2565
|
+
}
|
|
2566
|
+
function Ao({ languages: e, parent: t, texts: n = Pe.GAI }) {
|
|
2567
|
+
let r = [
|
|
2568
|
+
["aboutMwnf", j.about],
|
|
2569
|
+
["contact", j.contact],
|
|
2570
|
+
["legalNotice", j.legalNotice],
|
|
2571
|
+
["credits", j.credits],
|
|
2572
|
+
["cookies", j.cookies]
|
|
2573
|
+
];
|
|
2574
|
+
return {
|
|
2575
|
+
languages: e,
|
|
2576
|
+
logoHref: `${t}/#/`,
|
|
2577
|
+
logoTip: "",
|
|
2578
|
+
headerLinks: [{
|
|
2579
|
+
label: `${n}.header.portal`,
|
|
2580
|
+
href: j.portal,
|
|
2581
|
+
tip: `${n}.header.portalTip`
|
|
2582
|
+
}, {
|
|
2583
|
+
label: `${n}.header.home`,
|
|
2584
|
+
href: `${t}/#/`,
|
|
2585
|
+
tip: `${n}.header.homeTip`
|
|
2586
|
+
}],
|
|
2587
|
+
menu: [],
|
|
2588
|
+
footerLinks: r.map(([e, t]) => ({
|
|
2589
|
+
label: `${n}.footer.${e}`,
|
|
2590
|
+
href: t
|
|
2591
|
+
})),
|
|
2592
|
+
copyright: `${n}.footer.copyright`
|
|
2593
|
+
};
|
|
2594
|
+
}
|
|
2595
|
+
function jo({ parent: e, ...t }) {
|
|
2596
|
+
return {
|
|
2597
|
+
parent: e,
|
|
2598
|
+
family: "GAI",
|
|
2599
|
+
itemHref: (t) => `${e}/#/item/${encodeURIComponent(t)}`,
|
|
2600
|
+
...t
|
|
2601
|
+
};
|
|
2602
|
+
}
|
|
2603
|
+
//#endregion
|
|
2604
|
+
export { $a as ArtIntroHome, Oo as ArtIntroPage, Be as EXHIBITION_ENTITIES, _e as ISLAMICART_NO_COUNTRY, Pe as LABELS, Sn as MinisiteCredits, pt as MinisiteHome, Ut as MinisiteIntroduction, En as MinisiteMap, yn as MinisitePage, me as MinisiteShell, kn as MinisiteZoom, ge as PLACEHOLDER_TITLE, rr as SHARINGHISTORY_LABELS, pr as SHARINGHISTORY_WINDOWS, Pa as SharingHistoryFurtherReading, Kr as SharingHistoryHome, Mi as SharingHistoryIntroduction, Ca as SharingHistoryPage, nr as SharingHistoryShell, Ia as SharingHistoryWindow, Ra as SharingHistoryZoom, Ao as artintroNavigation, ko as artintroRoutes, jo as artintroSettings, Mn as baroqueartMenu, Y as cleanText, je as curatorLabel, Me as curatorLink, Ee as detailViewCaption, ze as exhibitionData, Fe as familyOf, Ae as introCaption, jn as islamicartMenu, Ie as labelSet, Pn as minisiteNavigation, An as minisiteRoutes, Fn as minisiteSettings, ye as pageWithNeighbours, Te as placementCaption, Ne as quoteHasItalics, ve as readingOrder, dr as sharinghistoryCaption, sr as sharinghistoryListedSubthemes, or as sharinghistoryListedThemes, Ha as sharinghistoryNavigation, cr as sharinghistoryPageRoute, lr as sharinghistoryPageWithNext, ar as sharinghistoryReadingOrder, fr as sharinghistoryRelatedLinks, Ba as sharinghistoryRoutes, Ua as sharinghistorySettings, ur as sharinghistorySlotsOf, Oe as sheetItemId, be as slotsOf, X as useExhibition, $ as useSharingHistoryExhibition, ke as viewPicture, De as withFirstView };
|