@museumwnf/viewer-layout 3.11.1 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -2
- package/dist/minisite.js +617 -428
- package/dist/viewer-layout.css +1 -1
- package/package.json +1 -1
package/dist/minisite.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as e } from "./chrome-DNsZQXrL.js";
|
|
2
2
|
import { t } from "./GlossaryPopover-B7E6BsjS.js";
|
|
3
|
-
import { Fragment as n,
|
|
4
|
-
import { glossaryEntries as
|
|
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 { glossaryEntries as E, glossaryTermsFor as D, mdInline as O, mdStrip as k, mwnfLinks as A, removeEndingPoint as j, renderBlock as M, useCatalogue as N, useCollectionTree as ee, useDataPackage as P, useGlossaryPopup as F, useI18n as I, useSiteConfig as L } from "@museumwnf/viewer-core";
|
|
5
5
|
import { useRoute as R, useRouter as z } from "vue-router";
|
|
6
6
|
//#region src/minisite/tip.js
|
|
7
|
-
var B =
|
|
7
|
+
var B = m({
|
|
8
8
|
text: "",
|
|
9
9
|
width: 100,
|
|
10
10
|
x: 0,
|
|
@@ -33,7 +33,7 @@ var U = {
|
|
|
33
33
|
}, W = {
|
|
34
34
|
key: 1,
|
|
35
35
|
class: "mwnf-minisite"
|
|
36
|
-
},
|
|
36
|
+
}, te = { class: "mwnf-minisite__column" }, G = { class: "mwnf-minisite-header" }, K = { class: "mwnf-minisite-header__logo" }, ne = ["href"], re = ["src"], ie = { class: "mwnf-minisite-header__nav" }, q = { 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: {
|
|
@@ -48,6 +48,10 @@ var U = {
|
|
|
48
48
|
type: String,
|
|
49
49
|
required: !0
|
|
50
50
|
},
|
|
51
|
+
logoTip: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: "minisite.header.logoTip"
|
|
54
|
+
},
|
|
51
55
|
headerLinks: {
|
|
52
56
|
type: Array,
|
|
53
57
|
default: () => []
|
|
@@ -56,6 +60,10 @@ var U = {
|
|
|
56
60
|
type: Array,
|
|
57
61
|
default: () => []
|
|
58
62
|
},
|
|
63
|
+
menuSeparator: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: !0
|
|
66
|
+
},
|
|
59
67
|
footerLinks: {
|
|
60
68
|
type: Array,
|
|
61
69
|
default: () => []
|
|
@@ -66,82 +74,82 @@ var U = {
|
|
|
66
74
|
}
|
|
67
75
|
},
|
|
68
76
|
emits: ["update:language"],
|
|
69
|
-
setup(t, { emit:
|
|
70
|
-
let
|
|
71
|
-
let e =
|
|
72
|
-
return
|
|
77
|
+
setup(t, { emit: r }) {
|
|
78
|
+
let a = t, u = r, { t: m } = I(), h = L(), v = R(), 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
|
+
let e = C("legacy/bg_fading_left.gif"), t = C("legacy/bg_fading_right.gif");
|
|
80
|
+
return a.language === "en" ? [e, t] : [t, e];
|
|
73
81
|
});
|
|
74
82
|
function k(e) {
|
|
75
83
|
let t = Math.min(window.screen.availWidth, 1600), n = Math.min(window.screen.availHeight, 1200);
|
|
76
84
|
window.open(e.href, "exhibitions", `left=0,top=0,width=${t},height=${n}`)?.focus();
|
|
77
85
|
}
|
|
78
|
-
return (e, r) => (
|
|
86
|
+
return (e, r) => (p(), s(n, null, [S.value ? (p(), s("div", {
|
|
79
87
|
key: 0,
|
|
80
|
-
class:
|
|
81
|
-
}, [
|
|
82
|
-
|
|
88
|
+
class: d(`mwnf-minisite-window mwnf-minisite-window--${S.value}`)
|
|
89
|
+
}, [_(e.$slots, "default")], 2)) : (p(), s("div", W, [
|
|
90
|
+
c("div", {
|
|
83
91
|
class: "mwnf-minisite__strip",
|
|
84
|
-
style:
|
|
92
|
+
style: f({ backgroundImage: O.value[0] ? `url(${O.value[0]})` : "none" }),
|
|
85
93
|
"aria-hidden": "true"
|
|
86
94
|
}, null, 4),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
src:
|
|
95
|
+
c("div", te, [
|
|
96
|
+
c("header", G, [c("div", K, [w((p(), s("a", { href: t.logoHref }, [c("img", {
|
|
97
|
+
src: C(`legacy/logo_${t.language}.gif`),
|
|
90
98
|
alt: "",
|
|
91
99
|
height: "60"
|
|
92
|
-
}, null, 8,
|
|
100
|
+
}, null, 8, re)], 8, ne)), [[b(U), { text: b(m)(t.logoTip) }]])]), c("div", ie, [c("div", q, [(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", {
|
|
93
101
|
class: "mwnf-minisite-header__link",
|
|
94
102
|
href: e.href
|
|
95
|
-
}, [
|
|
103
|
+
}, [l(y(b(m)(e.label)), 1)], 8, ae)), [[b(U), { text: e.tip ? b(m)(e.tip) : "" }]])], 64))), 128))]), c("div", null, [c("select", {
|
|
96
104
|
class: "mwnf-minisite-header__select",
|
|
97
105
|
value: t.language,
|
|
98
|
-
"aria-label":
|
|
99
|
-
onChange: r[0] ||= (e) =>
|
|
100
|
-
}, [(
|
|
106
|
+
"aria-label": b(m)("layout.language.label"),
|
|
107
|
+
onChange: r[0] ||= (e) => u("update:language", e.target.value)
|
|
108
|
+
}, [(p(!0), s(n, null, g(E.value, (e) => (p(), s("option", {
|
|
101
109
|
key: e.code,
|
|
102
110
|
value: e.code
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
|
|
111
|
+
}, y(e.label), 9, se))), 128))], 40, oe)])])]),
|
|
112
|
+
c("main", null, [_(e.$slots, "default")]),
|
|
113
|
+
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", {
|
|
106
114
|
key: 0,
|
|
107
115
|
href: e.href,
|
|
108
|
-
onClick:
|
|
109
|
-
},
|
|
116
|
+
onClick: T((t) => k(e), ["prevent"])
|
|
117
|
+
}, y(b(m)(e.label)), 9, ue)) : (p(), s("a", {
|
|
110
118
|
key: 1,
|
|
111
119
|
href: e.href
|
|
112
|
-
},
|
|
113
|
-
r[2] ||=
|
|
114
|
-
|
|
120
|
+
}, y(b(m)(e.label)), 9, de))])], 64))), 128))])]),
|
|
121
|
+
r[2] ||= c("div", { class: "mwnf-minisite-menu__line" }, null, -1),
|
|
122
|
+
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[1] ||= l("\xA0|\xA0 ", -1)], 64))), 128)), l(y(b(m)(t.copyright)) + " " + y(b(D)), 1)])
|
|
115
123
|
]),
|
|
116
|
-
|
|
124
|
+
c("div", {
|
|
117
125
|
class: "mwnf-minisite__strip",
|
|
118
|
-
style:
|
|
126
|
+
style: f({ backgroundImage: O.value[1] ? `url(${O.value[1]})` : "none" }),
|
|
119
127
|
"aria-hidden": "true"
|
|
120
128
|
}, null, 4)
|
|
121
|
-
])),
|
|
129
|
+
])), w(c("div", {
|
|
122
130
|
class: "mwnf-minisite-tip",
|
|
123
|
-
style:
|
|
124
|
-
left: `${
|
|
125
|
-
top: `${
|
|
126
|
-
width: `${
|
|
131
|
+
style: f({
|
|
132
|
+
left: `${b(B).x + 12}px`,
|
|
133
|
+
top: `${b(B).y + 16}px`,
|
|
134
|
+
width: `${b(B).width}px`
|
|
127
135
|
}),
|
|
128
136
|
role: "tooltip"
|
|
129
|
-
},
|
|
137
|
+
}, y(b(B).text), 5), [[x, b(B).visible]])], 64));
|
|
130
138
|
}
|
|
131
|
-
},
|
|
139
|
+
}, he = [
|
|
132
140
|
[/[‘’]/g, "'"],
|
|
133
141
|
[/[“”]/g, "\""],
|
|
134
142
|
[/…/g, "..."],
|
|
135
143
|
[/•/g, "*"]
|
|
136
144
|
];
|
|
137
145
|
function J(e) {
|
|
138
|
-
return
|
|
146
|
+
return he.reduce((e, [t, n]) => e.replace(t, n), String(e ?? ""));
|
|
139
147
|
}
|
|
140
|
-
var
|
|
148
|
+
var ge = /^(Theme|Page) \d+$/, _e = {
|
|
141
149
|
partners: ["325b7505-1527-5442-99ea-6a40f8c43d3f"],
|
|
142
150
|
monuments: (/* @__PURE__ */ "01.02.03.04.05.06.07.08.09.10.11.14.18.19.20.21.24.25.26.27.28.29.30.31.32.33.34.35".split(".")).map((e) => `PA ${e}`)
|
|
143
151
|
};
|
|
144
|
-
function
|
|
152
|
+
function ve(e, t) {
|
|
145
153
|
return e.flatMap((e, n) => t(e.id).map((t, r) => ({
|
|
146
154
|
theme: n + 1,
|
|
147
155
|
page: r + 1,
|
|
@@ -149,7 +157,7 @@ function _e(e, t) {
|
|
|
149
157
|
themeNode: e
|
|
150
158
|
})));
|
|
151
159
|
}
|
|
152
|
-
function
|
|
160
|
+
function ye(e, t, n) {
|
|
153
161
|
let r = e.findIndex((e) => e.theme === t && e.page === n);
|
|
154
162
|
if (r < 0) return null;
|
|
155
163
|
let i = (e) => ({
|
|
@@ -165,7 +173,7 @@ function ve(e, t, n) {
|
|
|
165
173
|
next: r < e.length - 1 ? i(e[r + 1]) : null
|
|
166
174
|
};
|
|
167
175
|
}
|
|
168
|
-
function
|
|
176
|
+
function be(e) {
|
|
169
177
|
let t = /* @__PURE__ */ new Map();
|
|
170
178
|
for (let n of e?.items ?? []) {
|
|
171
179
|
let e = n.display_order ?? 0;
|
|
@@ -174,420 +182,578 @@ function ye(e) {
|
|
|
174
182
|
let n = (t) => (e?.images ?? []).find((e) => e.display_order === t)?.url ?? null;
|
|
175
183
|
return [...t.entries()].sort(([e], [t]) => e - t).map(([e, t]) => ({
|
|
176
184
|
n: e,
|
|
177
|
-
variants: [...t].sort((e, t) => (e.variant_order ?? 0) - (t.variant_order ?? 0)).
|
|
185
|
+
variants: [...t].sort((e, t) => (e.variant_order ?? 0) - (t.variant_order ?? 0)).flatMap((t) => t.details?.length ? t.details.map((e) => ({
|
|
186
|
+
entry: t,
|
|
187
|
+
view: e,
|
|
188
|
+
image: e.image_url ?? null
|
|
189
|
+
})) : [{
|
|
178
190
|
entry: t,
|
|
179
191
|
image: t.image_url ?? n(e)
|
|
180
|
-
})
|
|
192
|
+
}])
|
|
181
193
|
}));
|
|
182
194
|
}
|
|
183
|
-
function
|
|
195
|
+
function xe(e, t, n) {
|
|
184
196
|
return !e || e.type === "object" && n?.partners?.includes(e.partner_id) || e.type === "monument" && n?.monuments?.includes(e.mwnf_reference) ? "" : t(e);
|
|
185
197
|
}
|
|
186
|
-
function
|
|
198
|
+
function Se(e, t, n, r) {
|
|
187
199
|
return [
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
200
|
+
j(t.location ?? ""),
|
|
201
|
+
j(t.province ?? ""),
|
|
202
|
+
xe(e, n, r)
|
|
191
203
|
].filter(Boolean).join(", ");
|
|
192
204
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
205
|
+
function Ce({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i }) {
|
|
206
|
+
return n.location ? [n.location, e ? r(e) : ""].filter(Boolean).join(", ") : Se(e, t, r, i);
|
|
207
|
+
}
|
|
208
|
+
function we(e, t, n) {
|
|
209
|
+
let r = e?.type === "object" ? t.artist : t.architects, i = [].concat(t.materials ?? []).filter(Boolean).join(", ");
|
|
210
|
+
return {
|
|
211
|
+
artist: J(n.artist || j(r ?? "")),
|
|
212
|
+
material: J(n.material || j(i))
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function Te({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i, family: a }) {
|
|
216
|
+
let o = e?.type === "object" ? n.museum || j(t.holder ?? "") : "", s = Ce({
|
|
217
|
+
item: e,
|
|
218
|
+
own: t,
|
|
219
|
+
caption: n,
|
|
220
|
+
countryName: r,
|
|
221
|
+
noCountry: i
|
|
222
|
+
});
|
|
195
223
|
return {
|
|
196
|
-
name: J(n.name ?
|
|
224
|
+
name: J(n.name ? j(n.name) : j(t.name ?? "")),
|
|
197
225
|
detailName: J(n.detail_name),
|
|
198
|
-
dateLines: [n.date ||
|
|
199
|
-
details: [
|
|
226
|
+
dateLines: [n.date || j(t.dates ?? ""), n.dynasty || j(t.dynasty ?? "")].filter(Boolean).map(J),
|
|
227
|
+
details: [o, s].filter(Boolean).map(J),
|
|
228
|
+
...a === "BAR" ? we(e, t, n) : {},
|
|
200
229
|
justification: J(n.justification)
|
|
201
230
|
};
|
|
202
231
|
}
|
|
203
|
-
function
|
|
232
|
+
function Ee({ caption: e = {}, first: t = {}, record: n = {}, placement: r }) {
|
|
233
|
+
let i = (n, r = "") => e[n] || t[n] || r || "";
|
|
234
|
+
return {
|
|
235
|
+
name: j(i("name", n.name)),
|
|
236
|
+
detailName: e.detail_name ?? "",
|
|
237
|
+
dateLines: [
|
|
238
|
+
i("dynasty"),
|
|
239
|
+
i("date", n.dates),
|
|
240
|
+
i("museum"),
|
|
241
|
+
i("location", n.location)
|
|
242
|
+
].filter(Boolean),
|
|
243
|
+
details: r ? [Ce(r)].filter(Boolean).map(J) : [],
|
|
244
|
+
artist: i("artist", n.artist),
|
|
245
|
+
material: i("material"),
|
|
246
|
+
justification: e.justification || t.justification || ""
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
function De(e, t, n = "ISL") {
|
|
204
250
|
return {
|
|
205
251
|
name: e.name || t.name,
|
|
206
|
-
detailName: e.detailName || t.detailName,
|
|
252
|
+
detailName: n === "BAR" ? e.detailName : e.detailName || t.detailName,
|
|
207
253
|
dateLines: e.dateLines.length ? e.dateLines : t.dateLines,
|
|
208
254
|
details: e.details.length ? e.details : t.details,
|
|
255
|
+
..."artist" in e || "artist" in t ? { artist: e.artist || t.artist || "" } : {},
|
|
256
|
+
..."material" in e || "material" in t ? { material: e.material || t.material || "" } : {},
|
|
209
257
|
justification: e.justification || t.justification
|
|
210
258
|
};
|
|
211
259
|
}
|
|
212
|
-
function
|
|
260
|
+
function Oe(e, t, n) {
|
|
261
|
+
let r = (e) => {
|
|
262
|
+
let t = e ? n(e.entry.id) : null;
|
|
263
|
+
return t && t.type !== "picture" ? t.id : null;
|
|
264
|
+
};
|
|
265
|
+
return r(e?.variants[t]) ?? r(e?.variants[0]) ?? null;
|
|
266
|
+
}
|
|
267
|
+
function ke(e, t) {
|
|
213
268
|
return e?.variants[t]?.image || e?.variants[0]?.image || null;
|
|
214
269
|
}
|
|
215
|
-
function
|
|
216
|
-
let a = (e, t) => e ? J(
|
|
270
|
+
function Ae({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i }) {
|
|
271
|
+
let a = (e, t) => e ? J(j(e)) : t;
|
|
217
272
|
return [
|
|
218
|
-
a(n.name,
|
|
219
|
-
a(n.date,
|
|
220
|
-
a(n.dynasty, J(
|
|
221
|
-
e?.type === "object" ? a(n.museum,
|
|
222
|
-
a(n.location,
|
|
273
|
+
a(n.name, j(t.name ?? "")),
|
|
274
|
+
a(n.date, j(t.dates ?? "")),
|
|
275
|
+
a(n.dynasty, J(j(t.dynasty ?? ""))),
|
|
276
|
+
e?.type === "object" ? a(n.museum, j(t.holder ?? "")) : "",
|
|
277
|
+
a(n.location, Se(e, t, r, i))
|
|
223
278
|
];
|
|
224
279
|
}
|
|
225
|
-
function
|
|
280
|
+
function je(e, { partnerName: t, partnerCountry: n, countryName: r }) {
|
|
226
281
|
let i = (e) => e ? r(e) : "";
|
|
227
|
-
return e.partner ?
|
|
282
|
+
return e.partner ? e.place ? [
|
|
283
|
+
t(e.partner),
|
|
284
|
+
e.place,
|
|
285
|
+
i(e.country)
|
|
286
|
+
].filter(Boolean).join(", ") : [t(e.partner), i(n(e.partner))].filter(Boolean).join(", ") : [e.name, i(e.country)].filter(Boolean).join(", ");
|
|
228
287
|
}
|
|
229
|
-
function
|
|
288
|
+
function Me(e, t) {
|
|
230
289
|
return "href" in e ? e.href : t?.(e.partner);
|
|
231
290
|
}
|
|
232
|
-
function
|
|
291
|
+
function Ne(e) {
|
|
233
292
|
return /(^|[^*])\*[^*\s][^*]*\*/.test(e ?? "") || /\b_[^_]+_\b/.test(e ?? "");
|
|
234
293
|
}
|
|
235
294
|
//#endregion
|
|
236
295
|
//#region src/minisite/exhibition.js
|
|
237
|
-
var
|
|
296
|
+
var Y = {
|
|
297
|
+
ISL: "minisite",
|
|
298
|
+
BAR: "minisiteBaroque"
|
|
299
|
+
};
|
|
300
|
+
function Pe(e) {
|
|
301
|
+
return e?.family ?? "ISL";
|
|
302
|
+
}
|
|
303
|
+
function Fe(e) {
|
|
304
|
+
return e?.texts ?? Y[Pe(e)] ?? Y.ISL;
|
|
305
|
+
}
|
|
306
|
+
var Ie = [
|
|
238
307
|
"collections",
|
|
239
308
|
"items",
|
|
240
309
|
"countries",
|
|
241
310
|
"partners",
|
|
242
311
|
"glossary"
|
|
243
|
-
],
|
|
244
|
-
function
|
|
245
|
-
if (!
|
|
312
|
+
], Le = null;
|
|
313
|
+
function Re() {
|
|
314
|
+
if (!Le) {
|
|
246
315
|
let e = P();
|
|
247
|
-
|
|
316
|
+
Le = {
|
|
248
317
|
pkg: e,
|
|
249
|
-
data:
|
|
250
|
-
eager:
|
|
318
|
+
data: N({
|
|
319
|
+
eager: Ie,
|
|
251
320
|
glossary: !1
|
|
252
321
|
}),
|
|
253
|
-
tree:
|
|
322
|
+
tree: ee({
|
|
254
323
|
rootId: e.manifest.site?.root_collection_id,
|
|
255
324
|
entity: "collections"
|
|
256
325
|
})
|
|
257
326
|
};
|
|
258
327
|
}
|
|
259
|
-
return
|
|
328
|
+
return Le;
|
|
260
329
|
}
|
|
261
|
-
var
|
|
330
|
+
var ze = [
|
|
262
331
|
"collections",
|
|
263
332
|
"items",
|
|
264
333
|
"countries",
|
|
265
334
|
"glossary"
|
|
266
335
|
];
|
|
267
|
-
function
|
|
268
|
-
let { pkg: t, data: n, tree:
|
|
269
|
-
|
|
270
|
-
let
|
|
271
|
-
function
|
|
272
|
-
let n = t.translations("collections",
|
|
273
|
-
return
|
|
336
|
+
function X() {
|
|
337
|
+
let { pkg: t, data: n, tree: r } = Re(), { locale: a, t: o } = I(), s = L(), c = s.minisite ?? {}, l = Pe(c), u = Fe(c), d = (e) => o(`${u}.${e}`), f = z(), p = i(() => a.value);
|
|
338
|
+
S(p, (e) => Promise.all(Ie.flatMap((n) => [t.loadTranslations(n, e), t.loadTranslations(n, "en")])), { immediate: !0 });
|
|
339
|
+
let m = r.root, h = i(() => m.value ? r.children(m.value.id) : []), g = i(() => ve(h.value, r.children));
|
|
340
|
+
function _(e) {
|
|
341
|
+
let n = t.translations("collections", p.value)[e] ?? {};
|
|
342
|
+
return ge.test(n.title ?? "") ? {
|
|
274
343
|
...n,
|
|
275
344
|
title: ""
|
|
276
345
|
} : n;
|
|
277
346
|
}
|
|
278
|
-
let
|
|
279
|
-
function
|
|
347
|
+
let v = (e) => e?.country_id ? j(n.tr("countries", e.country_id, p.value).name ?? "") : "";
|
|
348
|
+
function y(e) {
|
|
280
349
|
return {
|
|
281
350
|
item: n.itemById.value.get(e.id),
|
|
282
|
-
own: n.tr("items", e.id,
|
|
283
|
-
caption: e.caption?.[
|
|
284
|
-
countryName:
|
|
285
|
-
noCountry: c.noCountry
|
|
351
|
+
own: n.tr("items", e.id, p.value),
|
|
352
|
+
caption: e.caption?.[p.value] ?? {},
|
|
353
|
+
countryName: v,
|
|
354
|
+
noCountry: c.noCountry,
|
|
355
|
+
family: l
|
|
286
356
|
};
|
|
287
357
|
}
|
|
288
|
-
function
|
|
289
|
-
let r =
|
|
290
|
-
|
|
358
|
+
function b(e, t) {
|
|
359
|
+
let r = (t) => {
|
|
360
|
+
if (!t.view) return Te(y(t.entry));
|
|
361
|
+
let r = e.variants[0];
|
|
362
|
+
return Ee({
|
|
363
|
+
caption: t.view.caption?.[p.value] ?? {},
|
|
364
|
+
first: r.view ? r.view.caption?.[p.value] ?? {} : {},
|
|
365
|
+
record: t.view.id ? n.tr("items", t.view.id, p.value) : {},
|
|
366
|
+
placement: y(t.entry)
|
|
367
|
+
});
|
|
368
|
+
}, i = e?.variants[t];
|
|
369
|
+
return i ? De(r(i), r(e.variants[0]), l) : null;
|
|
370
|
+
}
|
|
371
|
+
function x(e) {
|
|
372
|
+
let r = _(e).glossary_ids ?? [];
|
|
373
|
+
return r.length === 0 ? [] : E(D({ glossary_ids: r }, p.value, {
|
|
291
374
|
translations: t.translations,
|
|
292
375
|
byId: n.index("glossary").value
|
|
293
376
|
}));
|
|
294
377
|
}
|
|
295
|
-
function
|
|
296
|
-
return t ? e(s.chrome, String(t).replace("{lang}",
|
|
378
|
+
function C(t) {
|
|
379
|
+
return t ? e(s.chrome, String(t).replace("{lang}", p.value)) : null;
|
|
297
380
|
}
|
|
298
|
-
function
|
|
299
|
-
return new URL(
|
|
381
|
+
function w(e) {
|
|
382
|
+
return new URL(f.resolve({
|
|
300
383
|
...e,
|
|
301
384
|
query: {
|
|
302
385
|
...e.query,
|
|
303
|
-
lang:
|
|
386
|
+
lang: p.value
|
|
304
387
|
}
|
|
305
388
|
}).href, window.location.href).href;
|
|
306
389
|
}
|
|
307
390
|
return {
|
|
308
391
|
t: o,
|
|
309
|
-
|
|
392
|
+
label: d,
|
|
393
|
+
family: l,
|
|
394
|
+
lang: p,
|
|
310
395
|
data: n,
|
|
311
|
-
root:
|
|
312
|
-
themes:
|
|
313
|
-
pages:
|
|
314
|
-
text:
|
|
396
|
+
root: m,
|
|
397
|
+
themes: h,
|
|
398
|
+
pages: g,
|
|
399
|
+
text: _,
|
|
315
400
|
settings: c,
|
|
316
|
-
picture:
|
|
317
|
-
href:
|
|
318
|
-
glossaryFor:
|
|
319
|
-
pageAt: (e, t) =>
|
|
320
|
-
slots:
|
|
321
|
-
placementCaption: (e) =>
|
|
322
|
-
|
|
323
|
-
|
|
401
|
+
picture: C,
|
|
402
|
+
href: w,
|
|
403
|
+
glossaryFor: x,
|
|
404
|
+
pageAt: (e, t) => ye(g.value, e, t),
|
|
405
|
+
slots: be,
|
|
406
|
+
placementCaption: (e) => Te(y(e)),
|
|
407
|
+
viewCaption: b,
|
|
408
|
+
introCaption: (e) => Ae(y(e)),
|
|
409
|
+
title: i(() => m.value ? _(m.value.id).title ?? "" : "")
|
|
324
410
|
};
|
|
325
411
|
}
|
|
326
|
-
var
|
|
412
|
+
var Z = {
|
|
327
413
|
credits: ["exhcredits", "scrollbars=auto, resizable=1, width=420, height=530"],
|
|
328
414
|
map: ["exhibition_map", "scrollbars=auto, resize=yes, width=800, height=418"],
|
|
329
|
-
zoom: ["mwnfing", ""]
|
|
415
|
+
zoom: ["mwnfing", ""],
|
|
416
|
+
introZoom: ["BAR", "scrollbars=no,resize=no,width=565,height=435"]
|
|
330
417
|
};
|
|
331
|
-
function
|
|
418
|
+
function Q(e, [t, n]) {
|
|
332
419
|
window.open(e, t, n)?.focus();
|
|
333
420
|
}
|
|
334
421
|
//#endregion
|
|
335
422
|
//#region src/minisite/Home.vue
|
|
336
|
-
var
|
|
423
|
+
var Be = { class: "mwnf-minisite-home" }, Ve = { class: "mwnf-minisite-home__title" }, He = ["innerHTML"], Ue = { class: "mwnf-minisite-home__menu" }, We = {
|
|
337
424
|
key: 0,
|
|
338
425
|
class: "mwnf-minisite-home__menu2"
|
|
339
|
-
},
|
|
426
|
+
}, Ge = {
|
|
427
|
+
key: 0,
|
|
428
|
+
class: "mwnf-minisite-partners mwnf-minisite-partners--baroque"
|
|
429
|
+
}, Ke = { class: "mwnf-minisite-partners__curators" }, qe = { class: "mwnf-minisite-partners__line" }, Je = ["innerHTML"], Ye = { class: "mwnf-minisite-partners__cooperation" }, Xe = ["href"], Ze = { class: "mwnf-minisite-partners__tab" }, Qe = ["href"], $e = ["src"], et = {
|
|
430
|
+
key: 0,
|
|
431
|
+
class: "mwnf-minisite-partners__design"
|
|
432
|
+
}, tt = { class: "mwnf-minisite-partners__design-tab" }, nt = { class: "mwnf-minisite-partners__design-tab" }, rt = ["href"], it = ["src"], at = {
|
|
433
|
+
key: 1,
|
|
434
|
+
class: "mwnf-minisite-partners"
|
|
435
|
+
}, ot = { class: "mwnf-minisite-partners__line" }, st = ["href"], ct = { class: "mwnf-minisite-partners__logos" }, lt = ["href"], ut = ["src"], dt = {
|
|
340
436
|
__name: "Home",
|
|
341
437
|
setup(e) {
|
|
342
|
-
let { t, lang:
|
|
438
|
+
let { label: t, family: d, lang: m, data: h, root: _, themes: x, text: E, title: D, settings: O, picture: k, href: A, glossaryFor: j } = X(), M = i(() => _.value ? h.mdInline(E(_.value.id).description, { glossary: j(_.value.id) }) : ""), N = i(() => (O.menuSecondColumnFrom ?? Infinity) - 1), ee = i(() => x.value.slice(0, N.value).map((e, t) => ({
|
|
343
439
|
theme: e,
|
|
344
440
|
number: t + 1
|
|
345
|
-
}))),
|
|
441
|
+
}))), P = i(() => x.value.slice(N.value).map((e, t) => ({
|
|
346
442
|
theme: e,
|
|
347
|
-
number:
|
|
348
|
-
}))),
|
|
349
|
-
partnerName: (e) =>
|
|
350
|
-
partnerCountry: (e) =>
|
|
351
|
-
countryName: (e) =>
|
|
352
|
-
}),
|
|
353
|
-
return
|
|
354
|
-
document.title = [t("
|
|
355
|
-
}, { immediate: !0 }), (e,
|
|
356
|
-
let
|
|
357
|
-
return
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
443
|
+
number: N.value + t + 1
|
|
444
|
+
}))), F = i(() => O.curators ?? []), I = (e) => je(e, {
|
|
445
|
+
partnerName: (e) => h.tr("partners", e, m.value).name,
|
|
446
|
+
partnerCountry: (e) => h.partnerById.value.get(e)?.country_id,
|
|
447
|
+
countryName: (e) => h.tr("countries", e, m.value).name
|
|
448
|
+
}), 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"));
|
|
449
|
+
return S([D, m], () => {
|
|
450
|
+
document.title = [t("identity.windowTitle"), D.value].filter(Boolean).join(" | ");
|
|
451
|
+
}, { immediate: !0 }), (e, i) => {
|
|
452
|
+
let m = v("router-link");
|
|
453
|
+
return p(), s(n, null, [
|
|
454
|
+
c("div", Be, [
|
|
455
|
+
i[4] ||= c("div", { class: "mwnf-minisite-home__bg1" }, null, -1),
|
|
456
|
+
c("div", {
|
|
457
|
+
class: "mwnf-minisite-home__bg2",
|
|
458
|
+
style: f({ backgroundImage: V.value ? `url(${V.value})` : "none" })
|
|
459
|
+
}, null, 4),
|
|
460
|
+
c("div", Ve, y(b(D)), 1),
|
|
461
|
+
c("div", {
|
|
462
|
+
class: "mwnf-minisite-home__description",
|
|
463
|
+
innerHTML: M.value
|
|
464
|
+
}, null, 8, He),
|
|
465
|
+
c("div", Ue, [c("div", null, [i[1] ||= l("> ", -1), u(m, { to: { name: "introduction" } }, {
|
|
466
|
+
default: C(() => [l(y(b(t)("home.introduction")), 1)]),
|
|
467
|
+
_: 1
|
|
468
|
+
})]), (p(!0), s(n, null, g(ee.value, ({ theme: e, number: t }) => (p(), s("div", { key: e.id }, [i[2] ||= l(" > ", -1), u(m, { to: {
|
|
469
|
+
name: "exhibition",
|
|
470
|
+
params: { theme: t }
|
|
471
|
+
} }, {
|
|
472
|
+
default: C(() => [l(y(b(E)(e.id).title), 1)]),
|
|
473
|
+
_: 2
|
|
474
|
+
}, 1032, ["to"])]))), 128))]),
|
|
475
|
+
P.value.length ? (p(), s("div", We, [(p(!0), s(n, null, g(P.value, ({ theme: e, number: t }) => (p(), s("div", { key: e.id }, [i[3] ||= l(" > ", -1), u(m, { to: {
|
|
476
|
+
name: "exhibition",
|
|
477
|
+
params: { theme: t }
|
|
478
|
+
} }, {
|
|
479
|
+
default: C(() => [l(y(b(E)(e.id).title), 1)]),
|
|
480
|
+
_: 2
|
|
481
|
+
}, 1032, ["to"])]))), 128))])) : o("", !0)
|
|
482
|
+
]),
|
|
483
|
+
b(d) === "BAR" ? (p(), s("div", Ge, [c("div", Ke, [
|
|
484
|
+
c("div", qe, y(b(t)("home.curatedBy")), 1),
|
|
485
|
+
c("div", {
|
|
486
|
+
class: "mwnf-minisite-partners__tab",
|
|
487
|
+
innerHTML: b(h).mdInline(R.value)
|
|
488
|
+
}, null, 8, Je),
|
|
489
|
+
c("div", Ye, [l(y(b(t)("home.cooperation")) + " ", 1), c("a", { href: b(O).partnerListHref }, y(b(t)("home.partnerInstitutions")), 9, Xe)]),
|
|
490
|
+
c("div", Ze, [(p(!0), s(n, null, g(F.value, (e, t) => (p(), s(n, { key: e.logo }, [
|
|
491
|
+
l(y(I(e)), 1),
|
|
492
|
+
i[5] ||= c("br", null, null, -1),
|
|
493
|
+
w((p(), s("a", {
|
|
494
|
+
class: "mwnf-minisite-partners__curator",
|
|
495
|
+
href: L(e)
|
|
496
|
+
}, [c("img", {
|
|
497
|
+
src: b(k)(e.logo),
|
|
498
|
+
alt: ""
|
|
499
|
+
}, null, 8, $e)], 8, Qe)), [[b(U), {
|
|
500
|
+
text: I(e),
|
|
501
|
+
width: 220
|
|
502
|
+
}]]),
|
|
503
|
+
t < F.value.length - 1 ? (p(), s("span", {
|
|
504
|
+
key: 0,
|
|
505
|
+
class: "mwnf-minisite-partners__gap",
|
|
506
|
+
style: f({ width: `${e.space ?? 0}px` })
|
|
507
|
+
}, null, 4)) : o("", !0)
|
|
508
|
+
], 64))), 128))])
|
|
509
|
+
]), z.value ? (p(), s("div", et, [
|
|
510
|
+
l(y(b(t)("home.design")) + " ", 1),
|
|
511
|
+
c("div", tt, y(z.value.name), 1),
|
|
512
|
+
c("div", nt, [c("a", {
|
|
513
|
+
href: z.value.href,
|
|
514
|
+
target: "_blank",
|
|
515
|
+
rel: "noopener"
|
|
516
|
+
}, [c("img", {
|
|
517
|
+
src: b(k)(z.value.logo),
|
|
518
|
+
alt: ""
|
|
519
|
+
}, null, 8, it)], 8, rt)])
|
|
520
|
+
])) : o("", !0)])) : (p(), s("div", at, [c("div", ot, [c("a", {
|
|
521
|
+
href: b(A)({ name: "credits" }),
|
|
522
|
+
onClick: i[0] ||= T((e) => b(Q)(b(A)({ name: "credits" }), b(Z).credits), ["prevent"])
|
|
523
|
+
}, y(b(t)("home.curatedBy")), 9, st)]), c("div", ct, [(p(!0), s(n, null, g(F.value, (e, t) => (p(), s(n, { key: e.logo }, [w((p(), s("a", {
|
|
524
|
+
class: "mwnf-minisite-partners__curator",
|
|
525
|
+
href: L(e)
|
|
526
|
+
}, [c("img", {
|
|
527
|
+
src: b(k)(e.logo),
|
|
528
|
+
alt: "",
|
|
529
|
+
height: "74"
|
|
530
|
+
}, null, 8, ut)], 8, lt)), [[b(U), {
|
|
531
|
+
text: I(e),
|
|
532
|
+
width: 280
|
|
533
|
+
}]]), t < F.value.length - 1 ? (p(), s("span", {
|
|
534
|
+
key: 0,
|
|
535
|
+
class: "mwnf-minisite-partners__space",
|
|
536
|
+
style: f({ width: `${e.space ?? 0}px` })
|
|
537
|
+
}, null, 4)) : o("", !0)], 64))), 128))])])),
|
|
538
|
+
B.value ? (p(), a(r, {
|
|
539
|
+
key: 2,
|
|
540
|
+
defer: "",
|
|
541
|
+
to: ".mwnf-minisite-footer"
|
|
542
|
+
}, [c("div", {
|
|
543
|
+
class: "mwnf-minisite-home__banner",
|
|
544
|
+
style: f({ backgroundImage: `url(${B.value})` }),
|
|
545
|
+
"aria-hidden": "true"
|
|
546
|
+
}, null, 4)])) : o("", !0)
|
|
547
|
+
], 64);
|
|
400
548
|
};
|
|
401
549
|
}
|
|
402
|
-
},
|
|
550
|
+
}, $ = (e) => String(e ?? "").replace(/[&<>"]/g, (e) => ({
|
|
403
551
|
"&": "&",
|
|
404
552
|
"<": "<",
|
|
405
553
|
">": ">",
|
|
406
554
|
"\"": """
|
|
407
555
|
})[e]);
|
|
408
|
-
function
|
|
409
|
-
let r = `<!DOCTYPE html><html><head><meta charset="utf-8"><title>${
|
|
556
|
+
function ft(e, t, n) {
|
|
557
|
+
let r = `<!DOCTYPE html><html><head><meta charset="utf-8"><title>${$(t)}</title></head><body>${n}</body></html>`, i = document.createElement("a");
|
|
410
558
|
i.href = URL.createObjectURL(new window.Blob([r], { type: "application/vnd.ms-word" })), i.download = e, document.body.appendChild(i), i.click(), i.remove(), URL.revokeObjectURL(i.href);
|
|
411
559
|
}
|
|
412
|
-
var
|
|
413
|
-
function
|
|
560
|
+
var pt = (...e) => `${e.map((e) => k(e).replace(/[,:]/g, "").replace(/ /g, "-")).join("-")}.doc`;
|
|
561
|
+
function mt({ documentTitle: e, title: t, header: n, text: r, captions: i }) {
|
|
414
562
|
let a = i.map((e) => {
|
|
415
563
|
let [t, ...n] = e;
|
|
416
|
-
return `<div><br/>${[t ? `<strong>${
|
|
564
|
+
return `<div><br/>${[t ? `<strong>${$(k(t))}</strong>` : "", ...n.map((e) => $(k(e)))].filter(Boolean).join("<br/>")}</div>`;
|
|
417
565
|
}).join("");
|
|
418
|
-
|
|
566
|
+
ft(`${k(t).replace(/ /g, "-")}-con.doc`, e, `<div><b>${$(k(t))}</b><br/><br/></div><table border="0"><tr><td style="vertical-align:top"><div>${$(k(n))}</div><div>${$(k(r))}<br/><br/></div></td><td>${a}</td></tr></table>`);
|
|
419
567
|
}
|
|
420
|
-
var
|
|
421
|
-
function
|
|
422
|
-
return `<tr bgcolor="#FFFFFF"><td width='150px' ${
|
|
568
|
+
var ht = "align='center' style='color:#000000;vertical-align:top;'";
|
|
569
|
+
function gt(e) {
|
|
570
|
+
return `<tr bgcolor="#FFFFFF"><td width='150px' ${ht}>${$(k(e.name))}</td><td width='100px' ${ht}>${$(k(e.dateLines.join(" ")))}</td><td width='100px' ${ht}>${e.details.map((e) => $(k(e))).join("<br/>")}</td><td width='100px' ${ht}>${O(e.justification)}`;
|
|
423
571
|
}
|
|
424
|
-
function
|
|
572
|
+
function _t({ documentTitle: e, title: t, pageTitle: n, quote: r, text: i, slots: a }) {
|
|
425
573
|
let o = "<tr><th>Name</th><th>Dynasty</th><th>Details</th><th>Justification</th></tr>", s = a.map(([e, ...t]) => {
|
|
426
|
-
let n = t.length ? `<table width="100%" cellpadding="1" cellspacing="1" border="1" bgcolor="#FFFFFF">${o}${t.map((e) => `${
|
|
427
|
-
return `${
|
|
574
|
+
let n = t.length ? `<table width="100%" cellpadding="1" cellspacing="1" border="1" bgcolor="#FFFFFF">${o}${t.map((e) => `${gt(e)}</td></tr>`).join("")}</table>` : "";
|
|
575
|
+
return `${gt(e)}${n}</td></tr>`;
|
|
428
576
|
}).join("");
|
|
429
|
-
|
|
577
|
+
ft(pt(t, n), e, `<table width="100%" cellpadding="1" cellspacing="1" border="0" bgcolor="#CCCCCC"><tr bgcolor="#FFFFFF"><td style="color:#000000"><b>${$(k(t))} / ${$(k(n))}<br/><br/></b></td></tr><tr bgcolor="#FFFFFF"><td style="color:#000000"><i>${$(k(r))}</i><br/><br/></td></tr><tr bgcolor="#FFFFFF"><td style="color:#000000">${M(i ?? "")}<br/><br/></td></tr><tr><td><table width="100%" cellpadding="1" cellspacing="2" border="0" bgcolor="#CCCCCC">${o}${s}</table></td></tr></table>`);
|
|
430
578
|
}
|
|
431
579
|
//#endregion
|
|
432
580
|
//#region src/minisite/DownloadBlock.vue
|
|
433
|
-
var
|
|
581
|
+
var vt = { class: "mwnf-minisite-download" }, yt = ["src"], bt = ["src"], xt = ["src"], St = {
|
|
434
582
|
__name: "DownloadBlock",
|
|
435
583
|
props: { word: {
|
|
436
584
|
type: Function,
|
|
437
585
|
required: !0
|
|
438
586
|
} },
|
|
439
587
|
setup(t) {
|
|
440
|
-
let { t: n } = I(), r = L(), i = (t) => e(r.chrome, t);
|
|
441
|
-
function
|
|
588
|
+
let { t: n } = I(), r = L(), i = (t) => e(r.chrome, t), a = (e) => n(`${Fe(r.minisite)}.${e}`);
|
|
589
|
+
function o() {
|
|
442
590
|
window.print();
|
|
443
591
|
}
|
|
444
|
-
return (e,
|
|
445
|
-
|
|
446
|
-
|
|
592
|
+
return (e, n) => (p(), s("div", vt, [
|
|
593
|
+
n[1] ||= c("br", null, null, -1),
|
|
594
|
+
c("img", {
|
|
447
595
|
src: i("legacy/print_dark.gif"),
|
|
448
596
|
alt: "",
|
|
449
597
|
width: "17",
|
|
450
598
|
height: "12"
|
|
451
|
-
}, null, 8,
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
599
|
+
}, null, 8, yt),
|
|
600
|
+
l(" / " + y(a("download.heading")), 1),
|
|
601
|
+
n[2] ||= c("br", null, null, -1),
|
|
602
|
+
c("img", {
|
|
455
603
|
src: i("legacy/arrow_inner_black.gif"),
|
|
456
604
|
alt: ""
|
|
457
|
-
}, null, 8,
|
|
458
|
-
|
|
605
|
+
}, null, 8, bt),
|
|
606
|
+
c("a", {
|
|
459
607
|
href: "#",
|
|
460
|
-
onClick:
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
|
|
608
|
+
onClick: T(o, ["prevent"])
|
|
609
|
+
}, y(a("download.asPdf")), 1),
|
|
610
|
+
n[3] ||= c("br", null, null, -1),
|
|
611
|
+
c("img", {
|
|
464
612
|
src: i("legacy/arrow_inner_black.gif"),
|
|
465
613
|
alt: ""
|
|
466
|
-
}, null, 8,
|
|
467
|
-
|
|
614
|
+
}, null, 8, xt),
|
|
615
|
+
c("a", {
|
|
468
616
|
href: "#",
|
|
469
|
-
onClick:
|
|
470
|
-
},
|
|
617
|
+
onClick: n[0] ||= T((e) => t.word(), ["prevent"])
|
|
618
|
+
}, y(a("download.asWord")), 1)
|
|
471
619
|
]));
|
|
472
620
|
}
|
|
473
|
-
},
|
|
621
|
+
}, Ct = { class: "mwnf-minisite-intro__title" }, wt = { class: "mwnf-minisite-intro__nav mwnf-minisite-intro__nav--start" }, Tt = { class: "mwnf-minisite-intro__nav mwnf-minisite-intro__nav--end" }, Et = { class: "mwnf-minisite-intro__table" }, Dt = ["innerHTML"], Ot = ["innerHTML"], kt = { class: "mwnf-minisite-intro__side" }, At = {
|
|
474
622
|
key: 0,
|
|
475
623
|
class: "mwnf-minisite-intro-item"
|
|
476
|
-
},
|
|
624
|
+
}, jt = ["href"], Mt = ["src"], Nt = ["href"], Pt = ["href", "onClick"], Ft = ["src"], It = ["src"], Lt = { key: 2 }, Rt = { key: 0 }, zt = ["innerHTML"], Bt = ["innerHTML"], Vt = {
|
|
477
625
|
__name: "Introduction",
|
|
478
626
|
setup(e) {
|
|
479
|
-
let {
|
|
627
|
+
let { label: r, lang: d, data: m, root: h, text: _, title: x, settings: w, picture: E, href: D, introCaption: O, slots: k, glossaryFor: A, family: j } = X(), M = i(() => h.value ? _(h.value.id) : {}), N = i(() => h.value ? A(h.value.id) : []), ee = i(() => m.md(M.value.extra?.intro_text, { glossary: N.value })), P = i(() => m.mdInline(M.value.extra?.intro_header ?? "")), I = i(() => k(h.value).flatMap((e) => e.variants).map(({ entry: e, image: t }) => ({
|
|
480
628
|
entry: e,
|
|
481
629
|
image: t,
|
|
482
630
|
lines: O(e)
|
|
483
|
-
}))), L =
|
|
484
|
-
function
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
631
|
+
}))), L = i(() => w.map ?? null);
|
|
632
|
+
function R(e) {
|
|
633
|
+
Q(D({
|
|
634
|
+
name: "zoom",
|
|
635
|
+
query: { img: e }
|
|
636
|
+
}), Z.introZoom);
|
|
637
|
+
}
|
|
638
|
+
let z = F(N);
|
|
639
|
+
function B() {
|
|
640
|
+
mt({
|
|
641
|
+
documentTitle: w.documentTitle,
|
|
642
|
+
title: x.value,
|
|
643
|
+
header: M.value.extra?.intro_header ?? "",
|
|
644
|
+
text: M.value.extra?.intro_text ?? "",
|
|
490
645
|
captions: I.value.map((e) => e.lines)
|
|
491
646
|
});
|
|
492
647
|
}
|
|
493
|
-
let
|
|
494
|
-
return
|
|
495
|
-
document.title = [
|
|
496
|
-
}, { immediate: !0 }), (e,
|
|
497
|
-
let
|
|
498
|
-
return
|
|
648
|
+
let V = i(() => E(d.value === "ar" ? "legacy/intro_bg_ar.jpg" : "legacy/intro_bg.jpg"));
|
|
649
|
+
return S([x, d], () => {
|
|
650
|
+
document.title = [r("identity.windowTitle"), x.value].filter(Boolean).join(" | ");
|
|
651
|
+
}, { immediate: !0 }), (e, i) => {
|
|
652
|
+
let d = v("router-link");
|
|
653
|
+
return p(), s("div", {
|
|
499
654
|
class: "mwnf-minisite-intro",
|
|
500
|
-
style:
|
|
655
|
+
style: f({ backgroundImage: V.value ? `url(${V.value})` : "none" })
|
|
501
656
|
}, [
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
default:
|
|
657
|
+
c("div", Ct, y(b(x)), 1),
|
|
658
|
+
c("div", wt, [i[3] ||= l(" < ", -1), u(d, { to: { name: "home" } }, {
|
|
659
|
+
default: C(() => [l(y(b(r)("nav.entrance")), 1)]),
|
|
505
660
|
_: 1
|
|
506
661
|
})]),
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
default:
|
|
662
|
+
c("div", Tt, [
|
|
663
|
+
i[4] ||= l(" < ", -1),
|
|
664
|
+
u(d, { to: { name: "home" } }, {
|
|
665
|
+
default: C(() => [l(y(b(r)("nav.previous")), 1)]),
|
|
511
666
|
_: 1
|
|
512
667
|
}),
|
|
513
|
-
|
|
514
|
-
|
|
668
|
+
i[5] ||= l(" | ", -1),
|
|
669
|
+
u(d, { to: {
|
|
515
670
|
name: "exhibition",
|
|
516
671
|
params: {
|
|
517
672
|
theme: 1,
|
|
518
673
|
page: 1
|
|
519
674
|
}
|
|
520
675
|
} }, {
|
|
521
|
-
default:
|
|
676
|
+
default: C(() => [l(y(b(r)("nav.next")), 1)]),
|
|
522
677
|
_: 1
|
|
523
678
|
}),
|
|
524
|
-
|
|
679
|
+
i[6] ||= l(" > ", -1)
|
|
525
680
|
]),
|
|
526
|
-
|
|
681
|
+
c("div", Et, [c("div", {
|
|
527
682
|
class: "mwnf-minisite-intro__text",
|
|
528
|
-
onClick:
|
|
683
|
+
onClick: i[0] ||= (...e) => b(z).onClick && b(z).onClick(...e)
|
|
529
684
|
}, [
|
|
530
|
-
|
|
685
|
+
c("div", {
|
|
531
686
|
class: "mwnf-minisite-intro__header",
|
|
532
687
|
innerHTML: P.value
|
|
533
|
-
}, null, 8,
|
|
534
|
-
|
|
688
|
+
}, null, 8, Dt),
|
|
689
|
+
c("div", {
|
|
535
690
|
class: "mwnf-minisite-intro__content",
|
|
536
|
-
innerHTML:
|
|
537
|
-
}, null, 8,
|
|
538
|
-
|
|
539
|
-
]),
|
|
540
|
-
|
|
541
|
-
href:
|
|
542
|
-
onClick:
|
|
543
|
-
}, [
|
|
544
|
-
src:
|
|
691
|
+
innerHTML: ee.value
|
|
692
|
+
}, null, 8, Ot),
|
|
693
|
+
u(St, { word: B })
|
|
694
|
+
]), c("div", kt, [L.value ? (p(), s("div", At, [
|
|
695
|
+
c("a", {
|
|
696
|
+
href: b(D)({ name: "map" }),
|
|
697
|
+
onClick: i[1] ||= T((e) => b(Q)(b(D)({ name: "map" }), b(Z).map), ["prevent"])
|
|
698
|
+
}, [c("img", {
|
|
699
|
+
src: b(E)(L.value.thumbnail),
|
|
545
700
|
alt: "",
|
|
546
701
|
width: "178",
|
|
547
702
|
height: "93"
|
|
548
|
-
}, null, 8,
|
|
549
|
-
|
|
550
|
-
|
|
703
|
+
}, null, 8, Mt)], 8, jt),
|
|
704
|
+
i[7] ||= c("br", null, null, -1),
|
|
705
|
+
c("a", {
|
|
551
706
|
class: "mwnf-minisite-intro-item__map",
|
|
552
|
-
href:
|
|
553
|
-
onClick:
|
|
554
|
-
},
|
|
555
|
-
])) :
|
|
707
|
+
href: b(D)({ name: "map" }),
|
|
708
|
+
onClick: i[2] ||= T((e) => b(Q)(b(D)({ name: "map" }), b(Z).map), ["prevent"])
|
|
709
|
+
}, y(b(r)("intro.enlargeMap")), 9, Nt)
|
|
710
|
+
])) : o("", !0), (p(!0), s(n, null, g(I.value, (e) => (p(), s("div", {
|
|
556
711
|
key: `${e.entry.id}-${e.entry.variant_order}`,
|
|
557
712
|
class: "mwnf-minisite-intro-item"
|
|
558
713
|
}, [
|
|
559
|
-
e.image ? (
|
|
714
|
+
e.image && b(j) === "BAR" ? (p(), s("a", {
|
|
560
715
|
key: 0,
|
|
716
|
+
href: b(D)({
|
|
717
|
+
name: "zoom",
|
|
718
|
+
query: { img: e.image }
|
|
719
|
+
}),
|
|
720
|
+
onClick: T((t) => R(e.image), ["prevent"])
|
|
721
|
+
}, [c("img", {
|
|
561
722
|
class: "mwnf-minisite-intro-item__image",
|
|
562
723
|
src: e.image,
|
|
563
724
|
alt: ""
|
|
564
|
-
}, null, 8,
|
|
565
|
-
r[8] ||= s("br", null, null, -1),
|
|
566
|
-
(f(!0), o(n, null, h(e.lines.filter(Boolean), (t, r) => (f(), o(n, { key: r }, [r > 0 ? (f(), o("br", pt)) : a("", !0), r === 0 && e.lines[0] ? (f(), o("strong", {
|
|
725
|
+
}, null, 8, Ft)], 8, Pt)) : e.image ? (p(), s("img", {
|
|
567
726
|
key: 1,
|
|
568
|
-
|
|
569
|
-
|
|
727
|
+
class: "mwnf-minisite-intro-item__image",
|
|
728
|
+
src: e.image,
|
|
729
|
+
alt: ""
|
|
730
|
+
}, null, 8, It)) : o("", !0),
|
|
731
|
+
e.image ? (p(), s("br", Lt)) : o("", !0),
|
|
732
|
+
(p(!0), s(n, null, g(e.lines.filter(Boolean), (t, r) => (p(), s(n, { key: r }, [r > 0 ? (p(), s("br", Rt)) : o("", !0), r === 0 && e.lines[0] ? (p(), s("strong", {
|
|
733
|
+
key: 1,
|
|
734
|
+
innerHTML: b(m).mdInline(t)
|
|
735
|
+
}, null, 8, zt)) : (p(), s("span", {
|
|
570
736
|
key: 2,
|
|
571
|
-
innerHTML:
|
|
572
|
-
}, null, 8,
|
|
737
|
+
innerHTML: b(m).mdInline(t)
|
|
738
|
+
}, null, 8, Bt))], 64))), 128))
|
|
573
739
|
]))), 128))])]),
|
|
574
|
-
|
|
740
|
+
b(z).active.value ? (p(), a(t, {
|
|
575
741
|
key: 0,
|
|
576
|
-
term:
|
|
577
|
-
html:
|
|
578
|
-
onClose:
|
|
742
|
+
term: b(z).active.value,
|
|
743
|
+
html: b(m).md(b(z).active.value.definition),
|
|
744
|
+
onClose: b(z).close
|
|
579
745
|
}, null, 8, [
|
|
580
746
|
"term",
|
|
581
747
|
"html",
|
|
582
748
|
"onClose"
|
|
583
|
-
])) :
|
|
749
|
+
])) : o("", !0)
|
|
584
750
|
], 4);
|
|
585
751
|
};
|
|
586
752
|
}
|
|
587
|
-
},
|
|
753
|
+
}, Ht = { class: "mwnf-minisite-page__head" }, Ut = { class: "mwnf-minisite-page__title" }, Wt = { class: "mwnf-minisite-page__nav mwnf-minisite-page__nav--start" }, Gt = { class: "mwnf-minisite-page__nav mwnf-minisite-page__nav--end" }, Kt = { class: "mwnf-minisite-page__body" }, qt = ["innerHTML"], Jt = { class: "mwnf-minisite-page__thumbs" }, Yt = ["onClick"], Xt = ["src"], Zt = ["innerHTML"], Qt = ["innerHTML"], $t = { class: "mwnf-minisite-page__item" }, en = { class: "mwnf-minisite-page__image" }, tn = ["src"], nn = {
|
|
588
754
|
key: 0,
|
|
589
755
|
class: "mwnf-minisite-page__caption"
|
|
590
|
-
},
|
|
756
|
+
}, rn = ["innerHTML"], an = ["innerHTML"], on = { key: 0 }, sn = ["innerHTML"], cn = ["innerHTML"], ln = ["innerHTML"], un = ["innerHTML"], dn = { key: 1 }, fn = ["onClick"], pn = ["src"], mn = ["innerHTML"], hn = { key: 2 }, gn = ["href"], _n = {
|
|
591
757
|
__name: "Page",
|
|
592
758
|
props: {
|
|
593
759
|
theme: {
|
|
@@ -600,231 +766,232 @@ var Xe = { class: "mwnf-minisite-download" }, Ze = ["src"], Qe = ["src"], $e = [
|
|
|
600
766
|
}
|
|
601
767
|
},
|
|
602
768
|
setup(e) {
|
|
603
|
-
let
|
|
769
|
+
let r = e, { label: m, family: _, lang: x, data: E, title: D, text: O, settings: k, picture: A, href: j, pageAt: M, slots: N, placementCaption: ee, viewCaption: P, 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({
|
|
604
770
|
slot: 0,
|
|
605
771
|
variant: 0
|
|
606
772
|
});
|
|
607
|
-
|
|
773
|
+
S(() => [r.theme, r.page], () => H.value = {
|
|
608
774
|
slot: 0,
|
|
609
775
|
variant: 0
|
|
610
776
|
});
|
|
611
|
-
let
|
|
612
|
-
...
|
|
613
|
-
|
|
777
|
+
let W = i(() => B.value[H.value.slot] ?? null), te = i(() => W.value?.variants[H.value.variant] ?? null), G = i(() => ke(W.value, H.value.variant)), K = i(() => !W.value || !te.value ? null : {
|
|
778
|
+
...P(W.value, H.value.variant),
|
|
779
|
+
sheetId: Oe(W.value, H.value.variant, (e) => E.itemById.value.get(e))
|
|
614
780
|
});
|
|
615
|
-
function
|
|
616
|
-
|
|
781
|
+
function ne(e) {
|
|
782
|
+
H.value = {
|
|
617
783
|
slot: e,
|
|
618
784
|
variant: 0
|
|
619
785
|
};
|
|
620
786
|
}
|
|
621
|
-
function
|
|
622
|
-
|
|
623
|
-
...
|
|
787
|
+
function re(e) {
|
|
788
|
+
H.value = {
|
|
789
|
+
...H.value,
|
|
624
790
|
variant: e
|
|
625
791
|
};
|
|
626
792
|
}
|
|
627
|
-
function
|
|
628
|
-
G.value &&
|
|
793
|
+
function ie() {
|
|
794
|
+
G.value && Q(j({
|
|
629
795
|
name: "zoom",
|
|
630
796
|
query: { img: G.value }
|
|
631
|
-
}),
|
|
797
|
+
}), Z.zoom);
|
|
632
798
|
}
|
|
633
|
-
let q = F(
|
|
634
|
-
function
|
|
635
|
-
|
|
636
|
-
documentTitle:
|
|
637
|
-
title:
|
|
638
|
-
pageTitle:
|
|
639
|
-
quote:
|
|
640
|
-
text:
|
|
641
|
-
slots:
|
|
799
|
+
let q = F(z);
|
|
800
|
+
function ae() {
|
|
801
|
+
_t({
|
|
802
|
+
documentTitle: k.documentTitle,
|
|
803
|
+
title: D.value,
|
|
804
|
+
pageTitle: R.value.title ?? "",
|
|
805
|
+
quote: V.value,
|
|
806
|
+
text: R.value.description ?? "",
|
|
807
|
+
slots: B.value.map((e) => e.variants.map((t, n) => t.view ? P(e, n) : ee(t.entry)))
|
|
642
808
|
});
|
|
643
809
|
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
810
|
+
S(() => [
|
|
811
|
+
R.value.title,
|
|
812
|
+
D.value,
|
|
813
|
+
x.value
|
|
648
814
|
], () => {
|
|
649
815
|
document.title = [
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
816
|
+
m("identity.windowTitle"),
|
|
817
|
+
D.value,
|
|
818
|
+
R.value.title,
|
|
819
|
+
r.page
|
|
654
820
|
].filter(Boolean).join(" | ");
|
|
655
821
|
}, { immediate: !0 });
|
|
656
|
-
let
|
|
822
|
+
let oe = i(() => A(x.value === "ar" ? "legacy/exhibition_bg_ar.jpg" : "legacy/exhibition_bg.jpg"));
|
|
657
823
|
return (e, r) => {
|
|
658
|
-
let
|
|
659
|
-
return
|
|
824
|
+
let i = v("router-link");
|
|
825
|
+
return L.value ? (p(), s("div", {
|
|
660
826
|
key: 0,
|
|
661
827
|
class: "mwnf-minisite-page",
|
|
662
|
-
style:
|
|
828
|
+
style: f({ backgroundImage: oe.value ? `url(${oe.value})` : "none" })
|
|
663
829
|
}, [
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
default:
|
|
830
|
+
c("div", Ht, [
|
|
831
|
+
c("div", Ut, y(b(D)), 1),
|
|
832
|
+
c("div", Wt, [r[1] ||= l(" < ", -1), u(i, { to: { name: "home" } }, {
|
|
833
|
+
default: C(() => [l(y(b(m)("nav.entrance")), 1)]),
|
|
668
834
|
_: 1
|
|
669
835
|
})]),
|
|
670
|
-
|
|
671
|
-
r[4] ||=
|
|
672
|
-
|
|
673
|
-
default:
|
|
836
|
+
c("div", Gt, [
|
|
837
|
+
r[4] ||= l(" < ", -1),
|
|
838
|
+
u(i, { to: L.value.previous }, {
|
|
839
|
+
default: C(() => [l(y(b(m)("nav.previous")), 1)]),
|
|
674
840
|
_: 1
|
|
675
841
|
}, 8, ["to"]),
|
|
676
|
-
|
|
677
|
-
r[2] ||=
|
|
678
|
-
|
|
679
|
-
default:
|
|
842
|
+
L.value.next ? (p(), s(n, { key: 0 }, [
|
|
843
|
+
r[2] ||= l(" | ", -1),
|
|
844
|
+
u(i, { to: L.value.next }, {
|
|
845
|
+
default: C(() => [l(y(b(m)("nav.next")), 1)]),
|
|
680
846
|
_: 1
|
|
681
847
|
}, 8, ["to"]),
|
|
682
|
-
r[3] ||=
|
|
683
|
-
], 64)) :
|
|
848
|
+
r[3] ||= l(" > ", -1)
|
|
849
|
+
], 64)) : o("", !0)
|
|
684
850
|
])
|
|
685
851
|
]),
|
|
686
|
-
|
|
852
|
+
c("div", Kt, [c("div", {
|
|
687
853
|
class: "mwnf-minisite-page__text",
|
|
688
|
-
onClick: r[0] ||= (...e) =>
|
|
854
|
+
onClick: r[0] ||= (...e) => b(q).onClick && b(q).onClick(...e)
|
|
689
855
|
}, [
|
|
690
|
-
|
|
856
|
+
c("div", {
|
|
691
857
|
class: "mwnf-minisite-page__page-title",
|
|
692
|
-
innerHTML:
|
|
693
|
-
}, null, 8,
|
|
694
|
-
|
|
858
|
+
innerHTML: b(E).mdInline(R.value.title)
|
|
859
|
+
}, null, 8, qt),
|
|
860
|
+
c("div", Jt, [(p(!0), s(n, null, g(B.value, (e, t) => w((p(), s("a", {
|
|
695
861
|
key: e.n,
|
|
696
862
|
href: "#",
|
|
697
|
-
onClick:
|
|
698
|
-
}, [e.variants[0].image ? (
|
|
863
|
+
onClick: T((e) => ne(t), ["prevent"])
|
|
864
|
+
}, [e.variants[0].image ? (p(), s("img", {
|
|
699
865
|
key: 0,
|
|
700
866
|
src: e.variants[0].image,
|
|
701
867
|
alt: "",
|
|
702
868
|
height: "36"
|
|
703
|
-
}, null, 8,
|
|
704
|
-
text:
|
|
869
|
+
}, null, 8, Xt)) : o("", !0)], 8, Yt)), [[b(U), {
|
|
870
|
+
text: b(E).mdStrip(b(P)(e, 0).name),
|
|
705
871
|
width: 160
|
|
706
872
|
}]])), 128))]),
|
|
707
|
-
|
|
708
|
-
class:
|
|
709
|
-
innerHTML:
|
|
710
|
-
}, null, 10,
|
|
711
|
-
|
|
873
|
+
c("div", {
|
|
874
|
+
class: d(["mwnf-minisite-page__quote", { "mwnf-minisite-page__quote--own-italics": b(Ne)(V.value) }]),
|
|
875
|
+
innerHTML: b(E).mdInline(V.value, { glossary: z.value })
|
|
876
|
+
}, null, 10, Zt),
|
|
877
|
+
c("div", {
|
|
712
878
|
class: "mwnf-minisite-page__content",
|
|
713
|
-
innerHTML:
|
|
714
|
-
}, null, 8,
|
|
715
|
-
|
|
716
|
-
]),
|
|
879
|
+
innerHTML: b(E).md(R.value.description, { glossary: z.value })
|
|
880
|
+
}, null, 8, Qt),
|
|
881
|
+
u(St, { word: ae })
|
|
882
|
+
]), c("div", $t, [c("div", en, [G.value ? w((p(), s("a", {
|
|
717
883
|
key: 0,
|
|
718
884
|
href: "#",
|
|
719
|
-
onClick:
|
|
720
|
-
}, [
|
|
885
|
+
onClick: T(ie, ["prevent"])
|
|
886
|
+
}, [c("img", {
|
|
721
887
|
src: G.value,
|
|
722
888
|
alt: ""
|
|
723
|
-
}, null, 8,
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
r[5] ||=
|
|
727
|
-
|
|
728
|
-
r[6] ||=
|
|
729
|
-
(
|
|
889
|
+
}, null, 8, tn)])), [[b(U), { text: b(m)("item.showZoom") }]]) : o("", !0)]), K.value ? (p(), s("div", nn, [
|
|
890
|
+
c("div", null, [
|
|
891
|
+
c("strong", { innerHTML: b(E).mdInline(K.value.name) }, null, 8, rn),
|
|
892
|
+
r[5] ||= c("br", null, null, -1),
|
|
893
|
+
c("span", { innerHTML: b(E).mdInline(K.value.detailName) }, null, 8, an),
|
|
894
|
+
r[6] ||= c("br", null, null, -1),
|
|
895
|
+
(p(!0), s(n, null, g(K.value.dateLines, (e, t) => (p(), s(n, { key: t }, [t > 0 ? (p(), s("br", on)) : o("", !0), c("span", { innerHTML: b(E).mdInline(e) }, null, 8, sn)], 64))), 128))
|
|
730
896
|
]),
|
|
731
|
-
|
|
732
|
-
|
|
897
|
+
c("div", null, [(p(!0), s(n, null, g(K.value.details, (e, t) => (p(), s(n, { key: t }, [c("span", { innerHTML: b(E).mdInline(e) }, null, 8, cn), r[7] ||= c("br", null, null, -1)], 64))), 128))]),
|
|
898
|
+
b(_) === "BAR" ? (p(), s(n, { key: 0 }, [c("div", { innerHTML: b(E).mdInline(K.value.artist) }, null, 8, ln), c("div", { innerHTML: b(E).mdInline(K.value.material) }, null, 8, un)], 64)) : o("", !0),
|
|
899
|
+
W.value.variants.length > 1 ? (p(), s("div", dn, [(p(!0), s(n, null, g(W.value.variants, (e, t) => w((p(), s("a", {
|
|
733
900
|
key: t,
|
|
734
901
|
href: "#",
|
|
735
|
-
onClick:
|
|
736
|
-
}, [
|
|
737
|
-
src:
|
|
902
|
+
onClick: T((e) => re(t), ["prevent"])
|
|
903
|
+
}, [c("img", {
|
|
904
|
+
src: b(A)(t === H.value.variant ? "legacy/ico_item_selected.gif" : "legacy/ico_item.gif"),
|
|
738
905
|
alt: ""
|
|
739
|
-
}, null, 8,
|
|
740
|
-
|
|
906
|
+
}, null, 8, pn)], 8, fn)), [[b(U), { text: b(m)("item.showDetail") }]])), 128))])) : o("", !0),
|
|
907
|
+
c("div", {
|
|
741
908
|
class: "mwnf-minisite-page__justification",
|
|
742
|
-
innerHTML:
|
|
743
|
-
}, null, 8,
|
|
744
|
-
s("div",
|
|
909
|
+
innerHTML: b(E).mdInline(K.value.justification)
|
|
910
|
+
}, null, 8, mn),
|
|
911
|
+
K.value.sheetId ? (p(), s("div", hn, [c("a", {
|
|
745
912
|
class: "mwnf-minisite-page__more",
|
|
746
|
-
href:
|
|
913
|
+
href: b(k).itemHref?.(K.value.sheetId),
|
|
747
914
|
target: "_blank"
|
|
748
|
-
}, "> " +
|
|
749
|
-
])) :
|
|
750
|
-
|
|
915
|
+
}, "> " + y(b(m)("item.moreInfo")), 9, gn)])) : o("", !0)
|
|
916
|
+
])) : o("", !0)])]),
|
|
917
|
+
b(q).active.value ? (p(), a(t, {
|
|
751
918
|
key: 0,
|
|
752
|
-
term:
|
|
753
|
-
html:
|
|
754
|
-
onClose:
|
|
919
|
+
term: b(q).active.value,
|
|
920
|
+
html: b(E).md(b(q).active.value.definition),
|
|
921
|
+
onClose: b(q).close
|
|
755
922
|
}, null, 8, [
|
|
756
923
|
"term",
|
|
757
924
|
"html",
|
|
758
925
|
"onClose"
|
|
759
|
-
])) :
|
|
760
|
-
], 4)) :
|
|
926
|
+
])) : o("", !0)
|
|
927
|
+
], 4)) : o("", !0);
|
|
761
928
|
};
|
|
762
929
|
}
|
|
763
|
-
},
|
|
930
|
+
}, vn = { class: "mwnf-minisite-credits" }, yn = ["innerHTML"], bn = {
|
|
764
931
|
__name: "Credits",
|
|
765
932
|
setup(e) {
|
|
766
|
-
let { data: t, root: n, text:
|
|
767
|
-
return (e, t) => (
|
|
933
|
+
let { data: t, root: n, text: r, title: a } = X(), o = i(() => n.value ? t.md(r(n.value.id).extra?.credits) : "");
|
|
934
|
+
return (e, t) => (p(), s("div", vn, [c("h1", null, y(b(a)), 1), c("div", { innerHTML: o.value }, null, 8, yn)]));
|
|
768
935
|
}
|
|
769
|
-
},
|
|
936
|
+
}, xn = { class: "mwnf-minisite-map" }, Sn = { key: 0 }, Cn = ["src"], wn = {
|
|
770
937
|
__name: "Map",
|
|
771
938
|
setup(e) {
|
|
772
|
-
let { lang: t, settings:
|
|
773
|
-
let e =
|
|
774
|
-
return e ? [
|
|
939
|
+
let { lang: t, settings: r, picture: a } = X(), l = i(() => {
|
|
940
|
+
let e = r.map;
|
|
941
|
+
return e ? [a(e.picture(t.value)), ...Array.from({ length: Math.max((e.count ?? 1) - 1, 0) }, (n, r) => a(e.picture(t.value, r + 2)))].filter(Boolean) : [];
|
|
775
942
|
});
|
|
776
|
-
return (e, t) => (
|
|
943
|
+
return (e, t) => (p(), s("div", xn, [(p(!0), s(n, null, g(l.value, (e, t) => (p(), s(n, { key: e }, [t > 0 ? (p(), s("br", Sn)) : o("", !0), c("img", {
|
|
777
944
|
src: e,
|
|
778
945
|
alt: "",
|
|
779
946
|
width: "800",
|
|
780
947
|
height: "418"
|
|
781
|
-
}, null, 8,
|
|
948
|
+
}, null, 8, Cn)], 64))), 128))]));
|
|
782
949
|
}
|
|
783
|
-
},
|
|
950
|
+
}, Tn = { class: "mwnf-minisite-zoom" }, En = ["src"], Dn = {
|
|
784
951
|
__name: "Zoom",
|
|
785
952
|
props: { image: {
|
|
786
953
|
type: String,
|
|
787
954
|
default: ""
|
|
788
955
|
} },
|
|
789
956
|
setup(e) {
|
|
790
|
-
let t = e, { pages: n, root:
|
|
791
|
-
return (e, t) => (
|
|
957
|
+
let t = e, { pages: n, root: r, slots: a } = X(), c = i(() => [r.value, ...n.value.map((e) => e.node)].filter(Boolean).flatMap((e) => a(e).flatMap((e) => e.variants.map((e) => e.image))).includes(t.image) ? t.image : "");
|
|
958
|
+
return (e, t) => (p(), s("div", Tn, [c.value ? (p(), s("img", {
|
|
792
959
|
key: 0,
|
|
793
960
|
src: c.value,
|
|
794
961
|
alt: ""
|
|
795
|
-
}, null, 8,
|
|
962
|
+
}, null, 8, En)) : o("", !0)]));
|
|
796
963
|
}
|
|
797
964
|
};
|
|
798
965
|
//#endregion
|
|
799
966
|
//#region src/minisite/routes.js
|
|
800
|
-
function
|
|
967
|
+
function On(e) {
|
|
801
968
|
return [
|
|
802
969
|
{
|
|
803
970
|
path: "/",
|
|
804
971
|
name: "home",
|
|
805
|
-
component:
|
|
972
|
+
component: dt,
|
|
806
973
|
meta: e("home", "collections", "partners", "countries")
|
|
807
974
|
},
|
|
808
975
|
{
|
|
809
976
|
path: "/introduction",
|
|
810
977
|
name: "introduction",
|
|
811
|
-
component:
|
|
812
|
-
meta: e("introduction", ...
|
|
978
|
+
component: Vt,
|
|
979
|
+
meta: e("introduction", ...ze)
|
|
813
980
|
},
|
|
814
981
|
{
|
|
815
982
|
path: "/exhibition/:theme(\\d+)/:page(\\d+)?",
|
|
816
983
|
name: "exhibition",
|
|
817
|
-
component:
|
|
984
|
+
component: _n,
|
|
818
985
|
props: (e) => ({
|
|
819
986
|
theme: Number(e.params.theme),
|
|
820
987
|
page: Number(e.params.page || 1)
|
|
821
988
|
}),
|
|
822
|
-
meta: e("exhibition", ...
|
|
989
|
+
meta: e("exhibition", ...ze)
|
|
823
990
|
},
|
|
824
991
|
{
|
|
825
992
|
path: "/credits",
|
|
826
993
|
name: "credits",
|
|
827
|
-
component:
|
|
994
|
+
component: bn,
|
|
828
995
|
meta: {
|
|
829
996
|
...e("credits", "collections"),
|
|
830
997
|
bare: "credits"
|
|
@@ -833,7 +1000,7 @@ function $t(e) {
|
|
|
833
1000
|
{
|
|
834
1001
|
path: "/map",
|
|
835
1002
|
name: "map",
|
|
836
|
-
component:
|
|
1003
|
+
component: wn,
|
|
837
1004
|
meta: {
|
|
838
1005
|
...e("map"),
|
|
839
1006
|
bare: "map"
|
|
@@ -842,7 +1009,7 @@ function $t(e) {
|
|
|
842
1009
|
{
|
|
843
1010
|
path: "/zoom",
|
|
844
1011
|
name: "zoom",
|
|
845
|
-
component:
|
|
1012
|
+
component: Dn,
|
|
846
1013
|
props: (e) => ({ image: String(e.query.img ?? "") }),
|
|
847
1014
|
meta: {
|
|
848
1015
|
...e("zoom", "collections"),
|
|
@@ -851,84 +1018,106 @@ function $t(e) {
|
|
|
851
1018
|
}
|
|
852
1019
|
];
|
|
853
1020
|
}
|
|
854
|
-
function
|
|
1021
|
+
function kn(e, t = Y.ISL) {
|
|
855
1022
|
return [
|
|
856
1023
|
{
|
|
857
|
-
label:
|
|
1024
|
+
label: `${t}.menu.permanentCollection`,
|
|
858
1025
|
href: `${e}/#/permanent-collection`
|
|
859
1026
|
},
|
|
860
1027
|
{
|
|
861
|
-
label:
|
|
1028
|
+
label: `${t}.menu.database`,
|
|
862
1029
|
href: `${e}/#/database`
|
|
863
1030
|
},
|
|
864
1031
|
{
|
|
865
|
-
label:
|
|
1032
|
+
label: `${t}.menu.exhibitions`,
|
|
866
1033
|
href: `${e}/#/exhibitions`
|
|
867
1034
|
},
|
|
868
1035
|
{
|
|
869
|
-
label:
|
|
1036
|
+
label: `${t}.menu.artisticIntroduction`,
|
|
870
1037
|
href: `${e}/#/artistic-introduction`,
|
|
871
1038
|
window: !0
|
|
872
1039
|
},
|
|
873
1040
|
{
|
|
874
|
-
label:
|
|
1041
|
+
label: `${t}.menu.timeline`,
|
|
875
1042
|
href: `${e}/#/timeline`
|
|
876
1043
|
},
|
|
877
1044
|
{
|
|
878
|
-
label:
|
|
1045
|
+
label: `${t}.menu.partners`,
|
|
879
1046
|
href: `${e}/#/partners`
|
|
880
1047
|
},
|
|
881
1048
|
{
|
|
882
|
-
label:
|
|
883
|
-
href:
|
|
1049
|
+
label: `${t}.menu.myCollection`,
|
|
1050
|
+
href: A.myCollection
|
|
884
1051
|
}
|
|
885
1052
|
];
|
|
886
1053
|
}
|
|
887
|
-
function
|
|
1054
|
+
function An(e, t = Y.BAR) {
|
|
1055
|
+
return [
|
|
1056
|
+
{
|
|
1057
|
+
label: `${t}.menu.permanentCollection`,
|
|
1058
|
+
href: `${e}/#/permanent-collection`
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
label: `${t}.menu.database`,
|
|
1062
|
+
href: `${e}/#/database`
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
label: `${t}.menu.exhibitions`,
|
|
1066
|
+
href: "#/"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
label: `${t}.menu.timeline`,
|
|
1070
|
+
href: `${e}/#/timeline`
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
label: `${t}.menu.partners`,
|
|
1074
|
+
href: `${e}/#/partners`
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
label: `${t}.menu.myCollection`,
|
|
1078
|
+
href: A.myCollection
|
|
1079
|
+
}
|
|
1080
|
+
];
|
|
1081
|
+
}
|
|
1082
|
+
var jn = "https://www.museumwnf.org/about/language-policy";
|
|
1083
|
+
function Mn({ languages: e, parent: t, family: n = "ISL", texts: r = Fe({ family: n }), menu: i }) {
|
|
1084
|
+
let a = [
|
|
1085
|
+
["aboutMwnf", A.about],
|
|
1086
|
+
["contact", A.contact],
|
|
1087
|
+
["legalNotice", A.legalNotice],
|
|
1088
|
+
["credits", A.credits],
|
|
1089
|
+
...n === "BAR" ? [["languagePolicy", jn]] : [],
|
|
1090
|
+
["cookies", A.cookies]
|
|
1091
|
+
];
|
|
888
1092
|
return {
|
|
889
1093
|
languages: e,
|
|
890
|
-
logoHref:
|
|
1094
|
+
logoHref: A.portal,
|
|
1095
|
+
logoTip: `${r}.header.logoTip`,
|
|
891
1096
|
headerLinks: [{
|
|
892
|
-
label:
|
|
1097
|
+
label: `${r}.header.exhibitionsList`,
|
|
893
1098
|
href: `${t}/#/exhibitions`
|
|
894
1099
|
}, {
|
|
895
|
-
label:
|
|
1100
|
+
label: `${r}.header.home`,
|
|
896
1101
|
href: `${t}/#/`,
|
|
897
|
-
tip:
|
|
1102
|
+
tip: `${r}.header.homeTip`
|
|
898
1103
|
}],
|
|
899
|
-
menu: n,
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
label: "minisite.footer.contact",
|
|
907
|
-
href: k.contact
|
|
908
|
-
},
|
|
909
|
-
{
|
|
910
|
-
label: "minisite.footer.legalNotice",
|
|
911
|
-
href: k.legalNotice
|
|
912
|
-
},
|
|
913
|
-
{
|
|
914
|
-
label: "minisite.footer.credits",
|
|
915
|
-
href: k.credits
|
|
916
|
-
},
|
|
917
|
-
{
|
|
918
|
-
label: "minisite.footer.cookies",
|
|
919
|
-
href: k.cookies
|
|
920
|
-
}
|
|
921
|
-
],
|
|
922
|
-
copyright: "minisite.footer.copyright"
|
|
1104
|
+
menu: i ?? (n === "BAR" ? An(t, r) : kn(t, r)),
|
|
1105
|
+
menuSeparator: n !== "BAR",
|
|
1106
|
+
footerLinks: a.map(([e, t]) => ({
|
|
1107
|
+
label: `${r}.footer.${e}`,
|
|
1108
|
+
href: t
|
|
1109
|
+
})),
|
|
1110
|
+
copyright: `${r}.footer.copyright`
|
|
923
1111
|
};
|
|
924
1112
|
}
|
|
925
|
-
function
|
|
1113
|
+
function Nn({ parent: e, ...t }) {
|
|
926
1114
|
return {
|
|
927
1115
|
parent: e,
|
|
928
1116
|
itemHref: (t) => `${e}/#/item/${encodeURIComponent(t)}`,
|
|
929
1117
|
partnerHref: (t) => `${e}/#/partner/${encodeURIComponent(t)}`,
|
|
1118
|
+
partnerListHref: `${e}/#/partners`,
|
|
930
1119
|
...t
|
|
931
1120
|
};
|
|
932
1121
|
}
|
|
933
1122
|
//#endregion
|
|
934
|
-
export {
|
|
1123
|
+
export { ze as EXHIBITION_ENTITIES, _e as ISLAMICART_NO_COUNTRY, Y as LABELS, bn as MinisiteCredits, dt as MinisiteHome, Vt as MinisiteIntroduction, wn as MinisiteMap, _n as MinisitePage, me as MinisiteShell, Dn as MinisiteZoom, ge as PLACEHOLDER_TITLE, An as baroqueartMenu, J as cleanText, je as curatorLabel, Me as curatorLink, Ee as detailViewCaption, Re as exhibitionData, Pe as familyOf, Ae as introCaption, kn as islamicartMenu, Fe as labelSet, Mn as minisiteNavigation, On as minisiteRoutes, Nn as minisiteSettings, ye as pageWithNeighbours, Te as placementCaption, Ne as quoteHasItalics, ve as readingOrder, Oe as sheetItemId, be as slotsOf, X as useExhibition, ke as viewPicture, De as withFirstView };
|