@museumwnf/viewer-layout 3.10.0 → 3.11.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 +63 -0
- package/dist/{FeaturedRecord-DJfyvfqt.js → FeaturedRecord-DGZ1dpyc.js} +1 -1
- package/dist/GlossaryPopover-B7E6BsjS.js +55 -0
- package/dist/{ItemDetailView-CzIquvf7.js → ItemDetailView-BAoP3CHx.js} +5 -5
- package/dist/{GlossaryPopover-DcptyNWI.js → MediaGallery-CHhf9xUZ.js} +11 -60
- package/dist/{OnDisplayIn-2ctLMfvw.js → OnDisplayIn-BCjxYjO7.js} +38 -38
- package/dist/{chrome-Co3f_Shw.js → PageShell-BT9SnXav.js} +123 -153
- package/dist/{RecordView-BvKoAB2j.js → RecordView-C23v0iYh.js} +13 -12
- package/dist/{SiteShell-DmKiH3jM.js → SiteShell-DPdTxtJ5.js} +2 -1
- package/dist/{Theme-pxrmYfo-.js → Theme-Dn5MBpQG.js} +26 -26
- package/dist/{TimelineEventList-gsoc-SBx.js → TimelineEventList-C5cbF_an.js} +40 -40
- package/dist/TimelineResultsView-xA0Wu7zv.js +1387 -0
- package/dist/chrome-DNsZQXrL.js +34 -0
- package/dist/components.js +1 -1
- package/dist/{content-Cu_44di8.js → content-DCtsRrwx.js} +13 -13
- package/dist/content.js +7 -6
- package/dist/{data-d30zAska.js → data-BINc9QjV.js} +1 -1
- package/dist/{data-Dz9REf19.js → data-CXRsGwLQ.js} +1 -1
- package/dist/dxa.js +14 -13
- package/dist/index.js +9 -7
- package/dist/minisite.js +931 -0
- package/dist/standalone.js +55 -55
- package/dist/{themeSpecs-CXVCN8UV.js → themeSpecs-DP9xWiVJ.js} +1 -1
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +4 -4
- package/package.json +2 -1
- package/dist/TimelineResultsView-C2-TnM71.js +0 -1386
package/dist/minisite.js
ADDED
|
@@ -0,0 +1,931 @@
|
|
|
1
|
+
import { r as e } from "./chrome-DNsZQXrL.js";
|
|
2
|
+
import { t } from "./GlossaryPopover-B7E6BsjS.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, normalizeClass as u, normalizeStyle as d, openBlock as f, reactive as p, ref as m, renderList as h, renderSlot as g, resolveComponent as _, toDisplayString as v, unref as y, vShow as b, watch as x, withCtx as S, withDirectives as C, withModifiers as w } from "vue";
|
|
4
|
+
import { glossaryEntries as T, glossaryTermsFor as E, mdInline as D, mdStrip as O, mwnfLinks as k, removeEndingPoint as A, renderBlock as j, useCatalogue as M, useCollectionTree as N, useDataPackage as P, useGlossaryPopup as F, useI18n as I, useSiteConfig as L } from "@museumwnf/viewer-core";
|
|
5
|
+
import { useRoute as R, useRouter as z } from "vue-router";
|
|
6
|
+
//#region src/minisite/tip.js
|
|
7
|
+
var B = p({
|
|
8
|
+
text: "",
|
|
9
|
+
width: 100,
|
|
10
|
+
x: 0,
|
|
11
|
+
y: 0,
|
|
12
|
+
visible: !1
|
|
13
|
+
});
|
|
14
|
+
function V(e) {
|
|
15
|
+
B.x = e.pageX, B.y = e.pageY;
|
|
16
|
+
}
|
|
17
|
+
function H(e, t) {
|
|
18
|
+
e.__tip = t.value;
|
|
19
|
+
}
|
|
20
|
+
var U = {
|
|
21
|
+
mounted(e, t) {
|
|
22
|
+
H(e, t), e.addEventListener("mouseenter", (t) => {
|
|
23
|
+
let n = e.__tip;
|
|
24
|
+
n?.text && (B.text = n.text, B.width = n.width ?? 100, V(t), B.visible = !0);
|
|
25
|
+
}), e.addEventListener("mousemove", V), e.addEventListener("mouseleave", () => {
|
|
26
|
+
B.visible = !1;
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
updated: H,
|
|
30
|
+
beforeUnmount() {
|
|
31
|
+
B.visible = !1;
|
|
32
|
+
}
|
|
33
|
+
}, W = {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: "mwnf-minisite"
|
|
36
|
+
}, G = { class: "mwnf-minisite__column" }, ee = { class: "mwnf-minisite-header" }, te = { class: "mwnf-minisite-header__logo" }, ne = ["href"], K = ["src"], re = { 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
|
+
__name: "Shell",
|
|
38
|
+
props: {
|
|
39
|
+
languages: {
|
|
40
|
+
type: Array,
|
|
41
|
+
default: () => []
|
|
42
|
+
},
|
|
43
|
+
language: {
|
|
44
|
+
type: String,
|
|
45
|
+
required: !0
|
|
46
|
+
},
|
|
47
|
+
logoHref: {
|
|
48
|
+
type: String,
|
|
49
|
+
required: !0
|
|
50
|
+
},
|
|
51
|
+
headerLinks: {
|
|
52
|
+
type: Array,
|
|
53
|
+
default: () => []
|
|
54
|
+
},
|
|
55
|
+
menu: {
|
|
56
|
+
type: Array,
|
|
57
|
+
default: () => []
|
|
58
|
+
},
|
|
59
|
+
footerLinks: {
|
|
60
|
+
type: Array,
|
|
61
|
+
default: () => []
|
|
62
|
+
},
|
|
63
|
+
copyright: {
|
|
64
|
+
type: String,
|
|
65
|
+
required: !0
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
emits: ["update:language"],
|
|
69
|
+
setup(t, { emit: i }) {
|
|
70
|
+
let l = t, p = i, { t: m } = I(), _ = L(), x = R(), S = r(() => x.meta?.bare ?? null), T = (t) => e(_.chrome, t), E = r(() => [...l.languages].sort((e, t) => e.label.localeCompare(t.label))), D = (/* @__PURE__ */ new Date()).getFullYear(), O = r(() => {
|
|
71
|
+
let e = T("legacy/bg_fading_left.gif"), t = T("legacy/bg_fading_right.gif");
|
|
72
|
+
return l.language === "en" ? [e, t] : [t, e];
|
|
73
|
+
});
|
|
74
|
+
function k(e) {
|
|
75
|
+
let t = Math.min(window.screen.availWidth, 1600), n = Math.min(window.screen.availHeight, 1200);
|
|
76
|
+
window.open(e.href, "exhibitions", `left=0,top=0,width=${t},height=${n}`)?.focus();
|
|
77
|
+
}
|
|
78
|
+
return (e, r) => (f(), o(n, null, [S.value ? (f(), o("div", {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: u(`mwnf-minisite-window mwnf-minisite-window--${S.value}`)
|
|
81
|
+
}, [g(e.$slots, "default")], 2)) : (f(), o("div", W, [
|
|
82
|
+
s("div", {
|
|
83
|
+
class: "mwnf-minisite__strip",
|
|
84
|
+
style: d({ backgroundImage: O.value[0] ? `url(${O.value[0]})` : "none" }),
|
|
85
|
+
"aria-hidden": "true"
|
|
86
|
+
}, null, 4),
|
|
87
|
+
s("div", G, [
|
|
88
|
+
s("header", ee, [s("div", te, [C((f(), o("a", { href: t.logoHref }, [s("img", {
|
|
89
|
+
src: T(`legacy/logo_${t.language}.gif`),
|
|
90
|
+
alt: "",
|
|
91
|
+
height: "60"
|
|
92
|
+
}, null, 8, K)], 8, ne)), [[y(U), { text: y(m)("minisite.header.logoTip") }]])]), s("div", re, [s("div", ie, [(f(!0), o(n, null, h(t.headerLinks, (e, t) => (f(), o(n, { key: e.label }, [t > 0 ? (f(), o(n, { key: 0 }, [c("\xA0|\xA0")], 64)) : a("", !0), C((f(), o("a", {
|
|
93
|
+
class: "mwnf-minisite-header__link",
|
|
94
|
+
href: e.href
|
|
95
|
+
}, [c(v(y(m)(e.label)), 1)], 8, ae)), [[y(U), { text: e.tip ? y(m)(e.tip) : "" }]])], 64))), 128))]), s("div", null, [s("select", {
|
|
96
|
+
class: "mwnf-minisite-header__select",
|
|
97
|
+
value: t.language,
|
|
98
|
+
"aria-label": y(m)("layout.language.label"),
|
|
99
|
+
onChange: r[0] ||= (e) => p("update:language", e.target.value)
|
|
100
|
+
}, [(f(!0), o(n, null, h(E.value, (e) => (f(), o("option", {
|
|
101
|
+
key: e.code,
|
|
102
|
+
value: e.code
|
|
103
|
+
}, v(e.label), 9, se))), 128))], 40, oe)])])]),
|
|
104
|
+
s("main", null, [g(e.$slots, "default")]),
|
|
105
|
+
s("nav", ce, [s("ul", le, [(f(!0), o(n, null, h(t.menu, (e, t) => (f(), o(n, { key: e.label }, [t > 0 ? (f(), o(n, { key: 0 }, [c("|")], 64)) : a("", !0), s("li", null, [e.window ? (f(), o("a", {
|
|
106
|
+
key: 0,
|
|
107
|
+
href: e.href,
|
|
108
|
+
onClick: w((t) => k(e), ["prevent"])
|
|
109
|
+
}, v(y(m)(e.label)), 9, ue)) : (f(), o("a", {
|
|
110
|
+
key: 1,
|
|
111
|
+
href: e.href
|
|
112
|
+
}, v(y(m)(e.label)), 9, de))])], 64))), 128))])]),
|
|
113
|
+
r[2] ||= s("div", { class: "mwnf-minisite-menu__line" }, null, -1),
|
|
114
|
+
s("footer", fe, [(f(!0), o(n, null, h(t.footerLinks, (e) => (f(), o(n, { key: e.label }, [s("a", { href: e.href }, v(y(m)(e.label)), 9, pe), r[1] ||= c("\xA0|\xA0 ", -1)], 64))), 128)), c(v(y(m)(t.copyright)) + " " + v(y(D)), 1)])
|
|
115
|
+
]),
|
|
116
|
+
s("div", {
|
|
117
|
+
class: "mwnf-minisite__strip",
|
|
118
|
+
style: d({ backgroundImage: O.value[1] ? `url(${O.value[1]})` : "none" }),
|
|
119
|
+
"aria-hidden": "true"
|
|
120
|
+
}, null, 4)
|
|
121
|
+
])), C(s("div", {
|
|
122
|
+
class: "mwnf-minisite-tip",
|
|
123
|
+
style: d({
|
|
124
|
+
left: `${y(B).x + 12}px`,
|
|
125
|
+
top: `${y(B).y + 16}px`,
|
|
126
|
+
width: `${y(B).width}px`
|
|
127
|
+
}),
|
|
128
|
+
role: "tooltip"
|
|
129
|
+
}, v(y(B).text), 5), [[b, y(B).visible]])], 64));
|
|
130
|
+
}
|
|
131
|
+
}, he = [
|
|
132
|
+
[/[‘’]/g, "'"],
|
|
133
|
+
[/[“”]/g, "\""],
|
|
134
|
+
[/…/g, "..."],
|
|
135
|
+
[/•/g, "*"]
|
|
136
|
+
];
|
|
137
|
+
function q(e) {
|
|
138
|
+
return he.reduce((e, [t, n]) => e.replace(t, n), String(e ?? ""));
|
|
139
|
+
}
|
|
140
|
+
var ge = /^(Theme|Page) \d+$/, _e = {
|
|
141
|
+
partners: ["325b7505-1527-5442-99ea-6a40f8c43d3f"],
|
|
142
|
+
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
|
+
};
|
|
144
|
+
function ve(e, t) {
|
|
145
|
+
return e.flatMap((e, n) => t(e.id).map((t, r) => ({
|
|
146
|
+
theme: n + 1,
|
|
147
|
+
page: r + 1,
|
|
148
|
+
node: t,
|
|
149
|
+
themeNode: e
|
|
150
|
+
})));
|
|
151
|
+
}
|
|
152
|
+
function ye(e, t, n) {
|
|
153
|
+
let r = e.findIndex((e) => e.theme === t && e.page === n);
|
|
154
|
+
if (r < 0) return null;
|
|
155
|
+
let i = (e) => ({
|
|
156
|
+
name: "exhibition",
|
|
157
|
+
params: {
|
|
158
|
+
theme: e.theme,
|
|
159
|
+
page: e.page
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
return {
|
|
163
|
+
...e[r],
|
|
164
|
+
previous: r > 0 ? i(e[r - 1]) : { name: "introduction" },
|
|
165
|
+
next: r < e.length - 1 ? i(e[r + 1]) : null
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
function be(e) {
|
|
169
|
+
let t = /* @__PURE__ */ new Map();
|
|
170
|
+
for (let n of e?.items ?? []) {
|
|
171
|
+
let e = n.display_order ?? 0;
|
|
172
|
+
t.has(e) || t.set(e, []), t.get(e).push(n);
|
|
173
|
+
}
|
|
174
|
+
let n = (t) => (e?.images ?? []).find((e) => e.display_order === t)?.url ?? null;
|
|
175
|
+
return [...t.entries()].sort(([e], [t]) => e - t).map(([e, t]) => ({
|
|
176
|
+
n: e,
|
|
177
|
+
variants: [...t].sort((e, t) => (e.variant_order ?? 0) - (t.variant_order ?? 0)).map((t) => ({
|
|
178
|
+
entry: t,
|
|
179
|
+
image: t.image_url ?? n(e)
|
|
180
|
+
}))
|
|
181
|
+
}));
|
|
182
|
+
}
|
|
183
|
+
function xe(e, t, n) {
|
|
184
|
+
return !e || e.type === "object" && n?.partners?.includes(e.partner_id) || e.type === "monument" && n?.monuments?.includes(e.mwnf_reference) ? "" : t(e);
|
|
185
|
+
}
|
|
186
|
+
function Se(e, t, n, r) {
|
|
187
|
+
return [
|
|
188
|
+
A(t.location ?? ""),
|
|
189
|
+
A(t.province ?? ""),
|
|
190
|
+
xe(e, n, r)
|
|
191
|
+
].filter(Boolean).join(", ");
|
|
192
|
+
}
|
|
193
|
+
function Ce({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i }) {
|
|
194
|
+
let a = e?.type === "object" ? n.museum || A(t.holder ?? "") : "", o = n.location ? [n.location, e ? r(e) : ""].filter(Boolean).join(", ") : Se(e, t, r, i);
|
|
195
|
+
return {
|
|
196
|
+
name: q(n.name ? A(n.name) : A(t.name ?? "")),
|
|
197
|
+
detailName: q(n.detail_name),
|
|
198
|
+
dateLines: [n.date || A(t.dates ?? ""), n.dynasty || A(t.dynasty ?? "")].filter(Boolean).map(q),
|
|
199
|
+
details: [a, o].filter(Boolean).map(q),
|
|
200
|
+
justification: q(n.justification)
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
function we(e, t) {
|
|
204
|
+
return {
|
|
205
|
+
name: e.name || t.name,
|
|
206
|
+
detailName: e.detailName || t.detailName,
|
|
207
|
+
dateLines: e.dateLines.length ? e.dateLines : t.dateLines,
|
|
208
|
+
details: e.details.length ? e.details : t.details,
|
|
209
|
+
justification: e.justification || t.justification
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
function Te({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i }) {
|
|
213
|
+
let a = (e, t) => e ? q(A(e)) : t;
|
|
214
|
+
return [
|
|
215
|
+
a(n.name, A(t.name ?? "")),
|
|
216
|
+
a(n.date, A(t.dates ?? "")),
|
|
217
|
+
a(n.dynasty, q(A(t.dynasty ?? ""))),
|
|
218
|
+
e?.type === "object" ? a(n.museum, A(t.holder ?? "")) : "",
|
|
219
|
+
a(n.location, Se(e, t, r, i))
|
|
220
|
+
];
|
|
221
|
+
}
|
|
222
|
+
function Ee(e, { partnerName: t, partnerCountry: n, countryName: r }) {
|
|
223
|
+
let i = (e) => e ? r(e) : "";
|
|
224
|
+
return e.partner ? [t(e.partner), i(n(e.partner))].filter(Boolean).join(", ") : [e.name, i(e.country)].filter(Boolean).join(", ");
|
|
225
|
+
}
|
|
226
|
+
function De(e, t) {
|
|
227
|
+
return "href" in e ? e.href : t?.(e.partner);
|
|
228
|
+
}
|
|
229
|
+
function Oe(e) {
|
|
230
|
+
return /(^|[^*])\*[^*\s][^*]*\*/.test(e ?? "") || /\b_[^_]+_\b/.test(e ?? "");
|
|
231
|
+
}
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/minisite/exhibition.js
|
|
234
|
+
var ke = [
|
|
235
|
+
"collections",
|
|
236
|
+
"items",
|
|
237
|
+
"countries",
|
|
238
|
+
"partners",
|
|
239
|
+
"glossary"
|
|
240
|
+
], J = null;
|
|
241
|
+
function Ae() {
|
|
242
|
+
if (!J) {
|
|
243
|
+
let e = P();
|
|
244
|
+
J = {
|
|
245
|
+
pkg: e,
|
|
246
|
+
data: M({
|
|
247
|
+
eager: ke,
|
|
248
|
+
glossary: !1
|
|
249
|
+
}),
|
|
250
|
+
tree: N({
|
|
251
|
+
rootId: e.manifest.site?.root_collection_id,
|
|
252
|
+
entity: "collections"
|
|
253
|
+
})
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
return J;
|
|
257
|
+
}
|
|
258
|
+
var je = [
|
|
259
|
+
"collections",
|
|
260
|
+
"items",
|
|
261
|
+
"countries",
|
|
262
|
+
"glossary"
|
|
263
|
+
];
|
|
264
|
+
function Y() {
|
|
265
|
+
let { pkg: t, data: n, tree: i } = Ae(), { locale: a, t: o } = I(), s = L(), c = s.minisite ?? {}, l = z(), u = r(() => a.value);
|
|
266
|
+
x(u, (e) => Promise.all(ke.flatMap((n) => [t.loadTranslations(n, e), t.loadTranslations(n, "en")])), { immediate: !0 });
|
|
267
|
+
let d = i.root, f = r(() => d.value ? i.children(d.value.id) : []), p = r(() => ve(f.value, i.children));
|
|
268
|
+
function m(e) {
|
|
269
|
+
let n = t.translations("collections", u.value)[e] ?? {};
|
|
270
|
+
return ge.test(n.title ?? "") ? {
|
|
271
|
+
...n,
|
|
272
|
+
title: ""
|
|
273
|
+
} : n;
|
|
274
|
+
}
|
|
275
|
+
let h = (e) => e?.country_id ? A(n.tr("countries", e.country_id, u.value).name ?? "") : "";
|
|
276
|
+
function g(e) {
|
|
277
|
+
return {
|
|
278
|
+
item: n.itemById.value.get(e.id),
|
|
279
|
+
own: n.tr("items", e.id, u.value),
|
|
280
|
+
caption: e.caption?.[u.value] ?? {},
|
|
281
|
+
countryName: h,
|
|
282
|
+
noCountry: c.noCountry
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
function _(e) {
|
|
286
|
+
let r = m(e).glossary_ids ?? [];
|
|
287
|
+
return r.length === 0 ? [] : T(E({ glossary_ids: r }, u.value, {
|
|
288
|
+
translations: t.translations,
|
|
289
|
+
byId: n.index("glossary").value
|
|
290
|
+
}));
|
|
291
|
+
}
|
|
292
|
+
function v(t) {
|
|
293
|
+
return t ? e(s.chrome, String(t).replace("{lang}", u.value)) : null;
|
|
294
|
+
}
|
|
295
|
+
function y(e) {
|
|
296
|
+
return new URL(l.resolve({
|
|
297
|
+
...e,
|
|
298
|
+
query: {
|
|
299
|
+
...e.query,
|
|
300
|
+
lang: u.value
|
|
301
|
+
}
|
|
302
|
+
}).href, window.location.href).href;
|
|
303
|
+
}
|
|
304
|
+
return {
|
|
305
|
+
t: o,
|
|
306
|
+
lang: u,
|
|
307
|
+
data: n,
|
|
308
|
+
root: d,
|
|
309
|
+
themes: f,
|
|
310
|
+
pages: p,
|
|
311
|
+
text: m,
|
|
312
|
+
settings: c,
|
|
313
|
+
picture: v,
|
|
314
|
+
href: y,
|
|
315
|
+
glossaryFor: _,
|
|
316
|
+
pageAt: (e, t) => ye(p.value, e, t),
|
|
317
|
+
slots: be,
|
|
318
|
+
placementCaption: (e) => Ce(g(e)),
|
|
319
|
+
introCaption: (e) => Te(g(e)),
|
|
320
|
+
title: r(() => d.value ? m(d.value.id).title ?? "" : "")
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
var X = {
|
|
324
|
+
credits: ["exhcredits", "scrollbars=auto, resizable=1, width=420, height=530"],
|
|
325
|
+
map: ["exhibition_map", "scrollbars=auto, resize=yes, width=800, height=418"],
|
|
326
|
+
zoom: ["mwnfing", ""]
|
|
327
|
+
};
|
|
328
|
+
function Z(e, [t, n]) {
|
|
329
|
+
window.open(e, t, n)?.focus();
|
|
330
|
+
}
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region src/minisite/Home.vue
|
|
333
|
+
var Me = { class: "mwnf-minisite-home" }, Ne = { class: "mwnf-minisite-home__title" }, Pe = ["innerHTML"], Fe = { class: "mwnf-minisite-home__menu" }, Ie = {
|
|
334
|
+
key: 0,
|
|
335
|
+
class: "mwnf-minisite-home__menu2"
|
|
336
|
+
}, Le = { class: "mwnf-minisite-partners" }, Re = { class: "mwnf-minisite-partners__line" }, ze = ["href"], Be = { class: "mwnf-minisite-partners__logos" }, Ve = ["href"], He = ["src"], Ue = {
|
|
337
|
+
__name: "Home",
|
|
338
|
+
setup(e) {
|
|
339
|
+
let { t, lang: i, data: u, root: p, themes: m, text: g, title: b, settings: T, picture: E, href: D, glossaryFor: O } = Y(), k = r(() => p.value ? u.mdInline(g(p.value.id).description, { glossary: O(p.value.id) }) : ""), A = r(() => (T.menuSecondColumnFrom ?? Infinity) - 1), j = r(() => m.value.slice(0, A.value).map((e, t) => ({
|
|
340
|
+
theme: e,
|
|
341
|
+
number: t + 1
|
|
342
|
+
}))), M = r(() => m.value.slice(A.value).map((e, t) => ({
|
|
343
|
+
theme: e,
|
|
344
|
+
number: A.value + t + 1
|
|
345
|
+
}))), N = r(() => T.curators ?? []), P = (e) => Ee(e, {
|
|
346
|
+
partnerName: (e) => u.tr("partners", e, i.value).name,
|
|
347
|
+
partnerCountry: (e) => u.partnerById.value.get(e)?.country_id,
|
|
348
|
+
countryName: (e) => u.tr("countries", e, i.value).name
|
|
349
|
+
}), F = (e) => De(e, T.partnerHref), I = r(() => E(i.value === "ar" ? "legacy/home_bg_ar.jpg" : "legacy/home_bg.jpg"));
|
|
350
|
+
return x([b, i], () => {
|
|
351
|
+
document.title = [t("minisite.identity.windowTitle"), b.value].filter(Boolean).join(" | ");
|
|
352
|
+
}, { immediate: !0 }), (e, r) => {
|
|
353
|
+
let i = _("router-link");
|
|
354
|
+
return f(), o(n, null, [s("div", Me, [
|
|
355
|
+
r[4] ||= s("div", { class: "mwnf-minisite-home__bg1" }, null, -1),
|
|
356
|
+
s("div", {
|
|
357
|
+
class: "mwnf-minisite-home__bg2",
|
|
358
|
+
style: d({ backgroundImage: I.value ? `url(${I.value})` : "none" })
|
|
359
|
+
}, null, 4),
|
|
360
|
+
s("div", Ne, v(y(b)), 1),
|
|
361
|
+
s("div", {
|
|
362
|
+
class: "mwnf-minisite-home__description",
|
|
363
|
+
innerHTML: k.value
|
|
364
|
+
}, null, 8, Pe),
|
|
365
|
+
s("div", Fe, [s("div", null, [r[1] ||= c("> ", -1), l(i, { to: { name: "introduction" } }, {
|
|
366
|
+
default: S(() => [c(v(y(t)("minisite.home.introduction")), 1)]),
|
|
367
|
+
_: 1
|
|
368
|
+
})]), (f(!0), o(n, null, h(j.value, ({ theme: e, number: t }) => (f(), o("div", { key: e.id }, [r[2] ||= c(" > ", -1), l(i, { to: {
|
|
369
|
+
name: "exhibition",
|
|
370
|
+
params: { theme: t }
|
|
371
|
+
} }, {
|
|
372
|
+
default: S(() => [c(v(y(g)(e.id).title), 1)]),
|
|
373
|
+
_: 2
|
|
374
|
+
}, 1032, ["to"])]))), 128))]),
|
|
375
|
+
M.value.length ? (f(), o("div", Ie, [(f(!0), o(n, null, h(M.value, ({ theme: e, number: t }) => (f(), o("div", { key: e.id }, [r[3] ||= c(" > ", -1), l(i, { to: {
|
|
376
|
+
name: "exhibition",
|
|
377
|
+
params: { theme: t }
|
|
378
|
+
} }, {
|
|
379
|
+
default: S(() => [c(v(y(g)(e.id).title), 1)]),
|
|
380
|
+
_: 2
|
|
381
|
+
}, 1032, ["to"])]))), 128))])) : a("", !0)
|
|
382
|
+
]), s("div", Le, [s("div", Re, [s("a", {
|
|
383
|
+
href: y(D)({ name: "credits" }),
|
|
384
|
+
onClick: r[0] ||= w((e) => y(Z)(y(D)({ name: "credits" }), y(X).credits), ["prevent"])
|
|
385
|
+
}, v(y(t)("minisite.home.curatedBy")), 9, ze)]), s("div", Be, [(f(!0), o(n, null, h(N.value, (e, t) => (f(), o(n, { key: e.logo }, [C((f(), o("a", { href: F(e) }, [s("img", {
|
|
386
|
+
src: y(E)(e.logo),
|
|
387
|
+
alt: "",
|
|
388
|
+
height: "74"
|
|
389
|
+
}, null, 8, He)], 8, Ve)), [[y(U), {
|
|
390
|
+
text: P(e),
|
|
391
|
+
width: 280
|
|
392
|
+
}]]), t < N.value.length - 1 ? (f(), o("span", {
|
|
393
|
+
key: 0,
|
|
394
|
+
class: "mwnf-minisite-partners__space",
|
|
395
|
+
style: d({ width: `${e.space ?? 0}px` })
|
|
396
|
+
}, null, 4)) : a("", !0)], 64))), 128))])])], 64);
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
}, Q = (e) => String(e ?? "").replace(/[&<>"]/g, (e) => ({
|
|
400
|
+
"&": "&",
|
|
401
|
+
"<": "<",
|
|
402
|
+
">": ">",
|
|
403
|
+
"\"": """
|
|
404
|
+
})[e]);
|
|
405
|
+
function We(e, t, n) {
|
|
406
|
+
let r = `<!DOCTYPE html><html><head><meta charset="utf-8"><title>${Q(t)}</title></head><body>${n}</body></html>`, i = document.createElement("a");
|
|
407
|
+
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);
|
|
408
|
+
}
|
|
409
|
+
var Ge = (...e) => `${e.map((e) => O(e).replace(/[,:]/g, "").replace(/ /g, "-")).join("-")}.doc`;
|
|
410
|
+
function Ke({ documentTitle: e, title: t, header: n, text: r, captions: i }) {
|
|
411
|
+
let a = i.map((e) => {
|
|
412
|
+
let [t, ...n] = e;
|
|
413
|
+
return `<div><br/>${[t ? `<strong>${Q(O(t))}</strong>` : "", ...n.map((e) => Q(O(e)))].filter(Boolean).join("<br/>")}</div>`;
|
|
414
|
+
}).join("");
|
|
415
|
+
We(`${O(t).replace(/ /g, "-")}-con.doc`, e, `<div><b>${Q(O(t))}</b><br/><br/></div><table border="0"><tr><td style="vertical-align:top"><div>${Q(O(n))}</div><div>${Q(O(r))}<br/><br/></div></td><td>${a}</td></tr></table>`);
|
|
416
|
+
}
|
|
417
|
+
var $ = "align='center' style='color:#000000;vertical-align:top;'";
|
|
418
|
+
function qe(e) {
|
|
419
|
+
return `<tr bgcolor="#FFFFFF"><td width='150px' ${$}>${Q(O(e.name))}</td><td width='100px' ${$}>${Q(O(e.dateLines.join(" ")))}</td><td width='100px' ${$}>${e.details.map((e) => Q(O(e))).join("<br/>")}</td><td width='100px' ${$}>${D(e.justification)}`;
|
|
420
|
+
}
|
|
421
|
+
function Je({ documentTitle: e, title: t, pageTitle: n, quote: r, text: i, slots: a }) {
|
|
422
|
+
let o = "<tr><th>Name</th><th>Dynasty</th><th>Details</th><th>Justification</th></tr>", s = a.map(([e, ...t]) => {
|
|
423
|
+
let n = t.length ? `<table width="100%" cellpadding="1" cellspacing="1" border="1" bgcolor="#FFFFFF">${o}${t.map((e) => `${qe(e)}</td></tr>`).join("")}</table>` : "";
|
|
424
|
+
return `${qe(e)}${n}</td></tr>`;
|
|
425
|
+
}).join("");
|
|
426
|
+
We(Ge(t, n), e, `<table width="100%" cellpadding="1" cellspacing="1" border="0" bgcolor="#CCCCCC"><tr bgcolor="#FFFFFF"><td style="color:#000000"><b>${Q(O(t))} / ${Q(O(n))}<br/><br/></b></td></tr><tr bgcolor="#FFFFFF"><td style="color:#000000"><i>${Q(O(r))}</i><br/><br/></td></tr><tr bgcolor="#FFFFFF"><td style="color:#000000">${j(i ?? "")}<br/><br/></td></tr><tr><td><table width="100%" cellpadding="1" cellspacing="2" border="0" bgcolor="#CCCCCC">${o}${s}</table></td></tr></table>`);
|
|
427
|
+
}
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region src/minisite/DownloadBlock.vue
|
|
430
|
+
var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = ["src"], $e = {
|
|
431
|
+
__name: "DownloadBlock",
|
|
432
|
+
props: { word: {
|
|
433
|
+
type: Function,
|
|
434
|
+
required: !0
|
|
435
|
+
} },
|
|
436
|
+
setup(t) {
|
|
437
|
+
let { t: n } = I(), r = L(), i = (t) => e(r.chrome, t);
|
|
438
|
+
function a() {
|
|
439
|
+
window.print();
|
|
440
|
+
}
|
|
441
|
+
return (e, r) => (f(), o("div", Ye, [
|
|
442
|
+
r[1] ||= s("br", null, null, -1),
|
|
443
|
+
s("img", {
|
|
444
|
+
src: i("legacy/print_dark.gif"),
|
|
445
|
+
alt: "",
|
|
446
|
+
width: "17",
|
|
447
|
+
height: "12"
|
|
448
|
+
}, null, 8, Xe),
|
|
449
|
+
c(" / " + v(y(n)("minisite.download.heading")), 1),
|
|
450
|
+
r[2] ||= s("br", null, null, -1),
|
|
451
|
+
s("img", {
|
|
452
|
+
src: i("legacy/arrow_inner_black.gif"),
|
|
453
|
+
alt: ""
|
|
454
|
+
}, null, 8, Ze),
|
|
455
|
+
s("a", {
|
|
456
|
+
href: "#",
|
|
457
|
+
onClick: w(a, ["prevent"])
|
|
458
|
+
}, v(y(n)("minisite.download.asPdf")), 1),
|
|
459
|
+
r[3] ||= s("br", null, null, -1),
|
|
460
|
+
s("img", {
|
|
461
|
+
src: i("legacy/arrow_inner_black.gif"),
|
|
462
|
+
alt: ""
|
|
463
|
+
}, null, 8, Qe),
|
|
464
|
+
s("a", {
|
|
465
|
+
href: "#",
|
|
466
|
+
onClick: r[0] ||= w((e) => t.word(), ["prevent"])
|
|
467
|
+
}, v(y(n)("minisite.download.asWord")), 1)
|
|
468
|
+
]));
|
|
469
|
+
}
|
|
470
|
+
}, et = { class: "mwnf-minisite-intro__title" }, tt = { class: "mwnf-minisite-intro__nav mwnf-minisite-intro__nav--start" }, nt = { class: "mwnf-minisite-intro__nav mwnf-minisite-intro__nav--end" }, rt = { class: "mwnf-minisite-intro__table" }, it = ["innerHTML"], at = ["innerHTML"], ot = { class: "mwnf-minisite-intro__side" }, st = {
|
|
471
|
+
key: 0,
|
|
472
|
+
class: "mwnf-minisite-intro-item"
|
|
473
|
+
}, ct = ["href"], lt = ["src"], ut = ["href"], dt = ["src"], ft = { key: 0 }, pt = ["innerHTML"], mt = ["innerHTML"], ht = {
|
|
474
|
+
__name: "Introduction",
|
|
475
|
+
setup(e) {
|
|
476
|
+
let { t: u, lang: p, data: m, root: g, text: b, title: C, settings: T, picture: E, href: D, introCaption: O, slots: k, glossaryFor: A } = Y(), j = r(() => g.value ? b(g.value.id) : {}), M = r(() => g.value ? A(g.value.id) : []), N = r(() => m.md(j.value.extra?.intro_text, { glossary: M.value })), P = r(() => m.mdInline(j.value.extra?.intro_header ?? "")), I = r(() => k(g.value).flatMap((e) => e.variants).map(({ entry: e, image: t }) => ({
|
|
477
|
+
entry: e,
|
|
478
|
+
image: t,
|
|
479
|
+
lines: O(e)
|
|
480
|
+
}))), L = r(() => T.map ?? null), R = F(M);
|
|
481
|
+
function z() {
|
|
482
|
+
Ke({
|
|
483
|
+
documentTitle: T.documentTitle,
|
|
484
|
+
title: C.value,
|
|
485
|
+
header: j.value.extra?.intro_header ?? "",
|
|
486
|
+
text: j.value.extra?.intro_text ?? "",
|
|
487
|
+
captions: I.value.map((e) => e.lines)
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
let B = r(() => E(p.value === "ar" ? "legacy/intro_bg_ar.jpg" : "legacy/intro_bg.jpg"));
|
|
491
|
+
return x([C, p], () => {
|
|
492
|
+
document.title = [u("minisite.identity.windowTitle"), C.value].filter(Boolean).join(" | ");
|
|
493
|
+
}, { immediate: !0 }), (e, r) => {
|
|
494
|
+
let p = _("router-link");
|
|
495
|
+
return f(), o("div", {
|
|
496
|
+
class: "mwnf-minisite-intro",
|
|
497
|
+
style: d({ backgroundImage: B.value ? `url(${B.value})` : "none" })
|
|
498
|
+
}, [
|
|
499
|
+
s("div", et, v(y(C)), 1),
|
|
500
|
+
s("div", tt, [r[3] ||= c(" < ", -1), l(p, { to: { name: "home" } }, {
|
|
501
|
+
default: S(() => [c(v(y(u)("minisite.nav.entrance")), 1)]),
|
|
502
|
+
_: 1
|
|
503
|
+
})]),
|
|
504
|
+
s("div", nt, [
|
|
505
|
+
r[4] ||= c(" < ", -1),
|
|
506
|
+
l(p, { to: { name: "home" } }, {
|
|
507
|
+
default: S(() => [c(v(y(u)("minisite.nav.previous")), 1)]),
|
|
508
|
+
_: 1
|
|
509
|
+
}),
|
|
510
|
+
r[5] ||= c(" | ", -1),
|
|
511
|
+
l(p, { to: {
|
|
512
|
+
name: "exhibition",
|
|
513
|
+
params: {
|
|
514
|
+
theme: 1,
|
|
515
|
+
page: 1
|
|
516
|
+
}
|
|
517
|
+
} }, {
|
|
518
|
+
default: S(() => [c(v(y(u)("minisite.nav.next")), 1)]),
|
|
519
|
+
_: 1
|
|
520
|
+
}),
|
|
521
|
+
r[6] ||= c(" > ", -1)
|
|
522
|
+
]),
|
|
523
|
+
s("div", rt, [s("div", {
|
|
524
|
+
class: "mwnf-minisite-intro__text",
|
|
525
|
+
onClick: r[0] ||= (...e) => y(R).onClick && y(R).onClick(...e)
|
|
526
|
+
}, [
|
|
527
|
+
s("div", {
|
|
528
|
+
class: "mwnf-minisite-intro__header",
|
|
529
|
+
innerHTML: P.value
|
|
530
|
+
}, null, 8, it),
|
|
531
|
+
s("div", {
|
|
532
|
+
class: "mwnf-minisite-intro__content",
|
|
533
|
+
innerHTML: N.value
|
|
534
|
+
}, null, 8, at),
|
|
535
|
+
l($e, { word: z })
|
|
536
|
+
]), s("div", ot, [L.value ? (f(), o("div", st, [
|
|
537
|
+
s("a", {
|
|
538
|
+
href: y(D)({ name: "map" }),
|
|
539
|
+
onClick: r[1] ||= w((e) => y(Z)(y(D)({ name: "map" }), y(X).map), ["prevent"])
|
|
540
|
+
}, [s("img", {
|
|
541
|
+
src: y(E)(L.value.thumbnail),
|
|
542
|
+
alt: "",
|
|
543
|
+
width: "178",
|
|
544
|
+
height: "93"
|
|
545
|
+
}, null, 8, lt)], 8, ct),
|
|
546
|
+
r[7] ||= s("br", null, null, -1),
|
|
547
|
+
s("a", {
|
|
548
|
+
class: "mwnf-minisite-intro-item__map",
|
|
549
|
+
href: y(D)({ name: "map" }),
|
|
550
|
+
onClick: r[2] ||= w((e) => y(Z)(y(D)({ name: "map" }), y(X).map), ["prevent"])
|
|
551
|
+
}, v(y(u)("minisite.intro.enlargeMap")), 9, ut)
|
|
552
|
+
])) : a("", !0), (f(!0), o(n, null, h(I.value, (e) => (f(), o("div", {
|
|
553
|
+
key: `${e.entry.id}-${e.entry.variant_order}`,
|
|
554
|
+
class: "mwnf-minisite-intro-item"
|
|
555
|
+
}, [
|
|
556
|
+
e.image ? (f(), o("img", {
|
|
557
|
+
key: 0,
|
|
558
|
+
class: "mwnf-minisite-intro-item__image",
|
|
559
|
+
src: e.image,
|
|
560
|
+
alt: ""
|
|
561
|
+
}, null, 8, dt)) : a("", !0),
|
|
562
|
+
r[8] ||= s("br", null, null, -1),
|
|
563
|
+
(f(!0), o(n, null, h(e.lines.filter(Boolean), (t, r) => (f(), o(n, { key: r }, [r > 0 ? (f(), o("br", ft)) : a("", !0), r === 0 && e.lines[0] ? (f(), o("strong", {
|
|
564
|
+
key: 1,
|
|
565
|
+
innerHTML: y(m).mdInline(t)
|
|
566
|
+
}, null, 8, pt)) : (f(), o("span", {
|
|
567
|
+
key: 2,
|
|
568
|
+
innerHTML: y(m).mdInline(t)
|
|
569
|
+
}, null, 8, mt))], 64))), 128))
|
|
570
|
+
]))), 128))])]),
|
|
571
|
+
y(R).active.value ? (f(), i(t, {
|
|
572
|
+
key: 0,
|
|
573
|
+
term: y(R).active.value,
|
|
574
|
+
html: y(m).md(y(R).active.value.definition),
|
|
575
|
+
onClose: y(R).close
|
|
576
|
+
}, null, 8, [
|
|
577
|
+
"term",
|
|
578
|
+
"html",
|
|
579
|
+
"onClose"
|
|
580
|
+
])) : a("", !0)
|
|
581
|
+
], 4);
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
}, gt = { class: "mwnf-minisite-page__head" }, _t = { class: "mwnf-minisite-page__title" }, vt = { class: "mwnf-minisite-page__nav mwnf-minisite-page__nav--start" }, yt = { class: "mwnf-minisite-page__nav mwnf-minisite-page__nav--end" }, bt = { class: "mwnf-minisite-page__body" }, xt = ["innerHTML"], St = { class: "mwnf-minisite-page__thumbs" }, Ct = ["onClick"], wt = ["src"], Tt = ["innerHTML"], Et = ["innerHTML"], Dt = { class: "mwnf-minisite-page__item" }, Ot = { class: "mwnf-minisite-page__image" }, kt = ["src"], At = {
|
|
585
|
+
key: 0,
|
|
586
|
+
class: "mwnf-minisite-page__caption"
|
|
587
|
+
}, jt = ["innerHTML"], Mt = ["innerHTML"], Nt = { key: 0 }, Pt = ["innerHTML"], Ft = ["innerHTML"], It = { key: 0 }, Lt = ["onClick"], Rt = ["src"], zt = ["innerHTML"], Bt = ["href"], Vt = {
|
|
588
|
+
__name: "Page",
|
|
589
|
+
props: {
|
|
590
|
+
theme: {
|
|
591
|
+
type: Number,
|
|
592
|
+
required: !0
|
|
593
|
+
},
|
|
594
|
+
page: {
|
|
595
|
+
type: Number,
|
|
596
|
+
required: !0
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
setup(e) {
|
|
600
|
+
let p = e, { t: g, lang: b, data: T, title: E, text: D, settings: O, picture: k, href: A, pageAt: j, slots: M, placementCaption: N, glossaryFor: P } = Y(), I = r(() => j(p.theme, p.page)), L = r(() => I.value ? D(I.value.node.id) : {}), R = r(() => I.value ? P(I.value.node.id) : []), z = r(() => I.value ? M(I.value.node) : []), B = r(() => L.value.quote ?? ""), V = m({
|
|
601
|
+
slot: 0,
|
|
602
|
+
variant: 0
|
|
603
|
+
});
|
|
604
|
+
x(() => [p.theme, p.page], () => V.value = {
|
|
605
|
+
slot: 0,
|
|
606
|
+
variant: 0
|
|
607
|
+
});
|
|
608
|
+
let H = r(() => z.value[V.value.slot] ?? null), W = r(() => H.value?.variants[V.value.variant] ?? null), G = r(() => !H.value || !W.value ? null : {
|
|
609
|
+
...we(N(W.value.entry), N(H.value.variants[0].entry)),
|
|
610
|
+
itemId: W.value.entry.id
|
|
611
|
+
});
|
|
612
|
+
function ee(e) {
|
|
613
|
+
V.value = {
|
|
614
|
+
slot: e,
|
|
615
|
+
variant: 0
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
function te(e) {
|
|
619
|
+
V.value = {
|
|
620
|
+
...V.value,
|
|
621
|
+
variant: e
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
function ne() {
|
|
625
|
+
W.value?.image && Z(A({
|
|
626
|
+
name: "zoom",
|
|
627
|
+
query: { img: W.value.image }
|
|
628
|
+
}), X.zoom);
|
|
629
|
+
}
|
|
630
|
+
let K = F(R);
|
|
631
|
+
function re() {
|
|
632
|
+
Je({
|
|
633
|
+
documentTitle: O.documentTitle,
|
|
634
|
+
title: E.value,
|
|
635
|
+
pageTitle: L.value.title ?? "",
|
|
636
|
+
quote: B.value,
|
|
637
|
+
text: L.value.description ?? "",
|
|
638
|
+
slots: z.value.map((e) => e.variants.map((e) => N(e.entry)))
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
x(() => [
|
|
642
|
+
L.value.title,
|
|
643
|
+
E.value,
|
|
644
|
+
b.value
|
|
645
|
+
], () => {
|
|
646
|
+
document.title = [
|
|
647
|
+
g("minisite.identity.windowTitle"),
|
|
648
|
+
E.value,
|
|
649
|
+
L.value.title,
|
|
650
|
+
p.page
|
|
651
|
+
].filter(Boolean).join(" | ");
|
|
652
|
+
}, { immediate: !0 });
|
|
653
|
+
let ie = r(() => k(b.value === "ar" ? "legacy/exhibition_bg_ar.jpg" : "legacy/exhibition_bg.jpg"));
|
|
654
|
+
return (e, r) => {
|
|
655
|
+
let p = _("router-link");
|
|
656
|
+
return I.value ? (f(), o("div", {
|
|
657
|
+
key: 0,
|
|
658
|
+
class: "mwnf-minisite-page",
|
|
659
|
+
style: d({ backgroundImage: ie.value ? `url(${ie.value})` : "none" })
|
|
660
|
+
}, [
|
|
661
|
+
s("div", gt, [
|
|
662
|
+
s("div", _t, v(y(E)), 1),
|
|
663
|
+
s("div", vt, [r[1] ||= c(" < ", -1), l(p, { to: { name: "home" } }, {
|
|
664
|
+
default: S(() => [c(v(y(g)("minisite.nav.entrance")), 1)]),
|
|
665
|
+
_: 1
|
|
666
|
+
})]),
|
|
667
|
+
s("div", yt, [
|
|
668
|
+
r[4] ||= c(" < ", -1),
|
|
669
|
+
l(p, { to: I.value.previous }, {
|
|
670
|
+
default: S(() => [c(v(y(g)("minisite.nav.previous")), 1)]),
|
|
671
|
+
_: 1
|
|
672
|
+
}, 8, ["to"]),
|
|
673
|
+
I.value.next ? (f(), o(n, { key: 0 }, [
|
|
674
|
+
r[2] ||= c(" | ", -1),
|
|
675
|
+
l(p, { to: I.value.next }, {
|
|
676
|
+
default: S(() => [c(v(y(g)("minisite.nav.next")), 1)]),
|
|
677
|
+
_: 1
|
|
678
|
+
}, 8, ["to"]),
|
|
679
|
+
r[3] ||= c(" > ", -1)
|
|
680
|
+
], 64)) : a("", !0)
|
|
681
|
+
])
|
|
682
|
+
]),
|
|
683
|
+
s("div", bt, [s("div", {
|
|
684
|
+
class: "mwnf-minisite-page__text",
|
|
685
|
+
onClick: r[0] ||= (...e) => y(K).onClick && y(K).onClick(...e)
|
|
686
|
+
}, [
|
|
687
|
+
s("div", {
|
|
688
|
+
class: "mwnf-minisite-page__page-title",
|
|
689
|
+
innerHTML: y(T).mdInline(L.value.title)
|
|
690
|
+
}, null, 8, xt),
|
|
691
|
+
s("div", St, [(f(!0), o(n, null, h(z.value, (e, t) => C((f(), o("a", {
|
|
692
|
+
key: e.n,
|
|
693
|
+
href: "#",
|
|
694
|
+
onClick: w((e) => ee(t), ["prevent"])
|
|
695
|
+
}, [e.variants[0].image ? (f(), o("img", {
|
|
696
|
+
key: 0,
|
|
697
|
+
src: e.variants[0].image,
|
|
698
|
+
alt: "",
|
|
699
|
+
height: "36"
|
|
700
|
+
}, null, 8, wt)) : a("", !0)], 8, Ct)), [[y(U), {
|
|
701
|
+
text: y(T).mdStrip(y(N)(e.variants[0].entry).name),
|
|
702
|
+
width: 160
|
|
703
|
+
}]])), 128))]),
|
|
704
|
+
s("div", {
|
|
705
|
+
class: u(["mwnf-minisite-page__quote", { "mwnf-minisite-page__quote--own-italics": y(Oe)(B.value) }]),
|
|
706
|
+
innerHTML: y(T).mdInline(B.value, { glossary: R.value })
|
|
707
|
+
}, null, 10, Tt),
|
|
708
|
+
s("div", {
|
|
709
|
+
class: "mwnf-minisite-page__content",
|
|
710
|
+
innerHTML: y(T).md(L.value.description, { glossary: R.value })
|
|
711
|
+
}, null, 8, Et),
|
|
712
|
+
l($e, { word: re })
|
|
713
|
+
]), s("div", Dt, [s("div", Ot, [W.value?.image ? C((f(), o("a", {
|
|
714
|
+
key: 0,
|
|
715
|
+
href: "#",
|
|
716
|
+
onClick: w(ne, ["prevent"])
|
|
717
|
+
}, [s("img", {
|
|
718
|
+
src: W.value.image,
|
|
719
|
+
alt: ""
|
|
720
|
+
}, null, 8, kt)])), [[y(U), { text: y(g)("minisite.item.showZoom") }]]) : a("", !0)]), G.value ? (f(), o("div", At, [
|
|
721
|
+
s("div", null, [
|
|
722
|
+
s("strong", { innerHTML: y(T).mdInline(G.value.name) }, null, 8, jt),
|
|
723
|
+
r[5] ||= s("br", null, null, -1),
|
|
724
|
+
s("span", { innerHTML: y(T).mdInline(G.value.detailName) }, null, 8, Mt),
|
|
725
|
+
r[6] ||= s("br", null, null, -1),
|
|
726
|
+
(f(!0), o(n, null, h(G.value.dateLines, (e, t) => (f(), o(n, { key: t }, [t > 0 ? (f(), o("br", Nt)) : a("", !0), s("span", { innerHTML: y(T).mdInline(e) }, null, 8, Pt)], 64))), 128))
|
|
727
|
+
]),
|
|
728
|
+
s("div", null, [(f(!0), o(n, null, h(G.value.details, (e, t) => (f(), o(n, { key: t }, [s("span", { innerHTML: y(T).mdInline(e) }, null, 8, Ft), r[7] ||= s("br", null, null, -1)], 64))), 128))]),
|
|
729
|
+
H.value.variants.length > 1 ? (f(), o("div", It, [(f(!0), o(n, null, h(H.value.variants, (e, t) => C((f(), o("a", {
|
|
730
|
+
key: t,
|
|
731
|
+
href: "#",
|
|
732
|
+
onClick: w((e) => te(t), ["prevent"])
|
|
733
|
+
}, [s("img", {
|
|
734
|
+
src: y(k)(t === V.value.variant ? "legacy/ico_item_selected.gif" : "legacy/ico_item.gif"),
|
|
735
|
+
alt: ""
|
|
736
|
+
}, null, 8, Rt)], 8, Lt)), [[y(U), { text: y(g)("minisite.item.showDetail") }]])), 128))])) : a("", !0),
|
|
737
|
+
s("div", {
|
|
738
|
+
class: "mwnf-minisite-page__justification",
|
|
739
|
+
innerHTML: y(T).mdInline(G.value.justification)
|
|
740
|
+
}, null, 8, zt),
|
|
741
|
+
s("div", null, [s("a", {
|
|
742
|
+
class: "mwnf-minisite-page__more",
|
|
743
|
+
href: y(O).itemHref?.(G.value.itemId),
|
|
744
|
+
target: "_blank"
|
|
745
|
+
}, "> " + v(y(g)("minisite.item.moreInfo")), 9, Bt)])
|
|
746
|
+
])) : a("", !0)])]),
|
|
747
|
+
y(K).active.value ? (f(), i(t, {
|
|
748
|
+
key: 0,
|
|
749
|
+
term: y(K).active.value,
|
|
750
|
+
html: y(T).md(y(K).active.value.definition),
|
|
751
|
+
onClose: y(K).close
|
|
752
|
+
}, null, 8, [
|
|
753
|
+
"term",
|
|
754
|
+
"html",
|
|
755
|
+
"onClose"
|
|
756
|
+
])) : a("", !0)
|
|
757
|
+
], 4)) : a("", !0);
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
}, Ht = { class: "mwnf-minisite-credits" }, Ut = ["innerHTML"], Wt = {
|
|
761
|
+
__name: "Credits",
|
|
762
|
+
setup(e) {
|
|
763
|
+
let { data: t, root: n, text: i, title: a } = Y(), c = r(() => n.value ? t.md(i(n.value.id).extra?.credits) : "");
|
|
764
|
+
return (e, t) => (f(), o("div", Ht, [s("h1", null, v(y(a)), 1), s("div", { innerHTML: c.value }, null, 8, Ut)]));
|
|
765
|
+
}
|
|
766
|
+
}, Gt = { class: "mwnf-minisite-map" }, Kt = { key: 0 }, qt = ["src"], Jt = {
|
|
767
|
+
__name: "Map",
|
|
768
|
+
setup(e) {
|
|
769
|
+
let { lang: t, settings: i, picture: c } = Y(), l = r(() => {
|
|
770
|
+
let e = i.map;
|
|
771
|
+
return e ? [c(e.picture(t.value)), ...Array.from({ length: Math.max((e.count ?? 1) - 1, 0) }, (n, r) => c(e.picture(t.value, r + 2)))].filter(Boolean) : [];
|
|
772
|
+
});
|
|
773
|
+
return (e, t) => (f(), o("div", Gt, [(f(!0), o(n, null, h(l.value, (e, t) => (f(), o(n, { key: e }, [t > 0 ? (f(), o("br", Kt)) : a("", !0), s("img", {
|
|
774
|
+
src: e,
|
|
775
|
+
alt: "",
|
|
776
|
+
width: "800",
|
|
777
|
+
height: "418"
|
|
778
|
+
}, null, 8, qt)], 64))), 128))]));
|
|
779
|
+
}
|
|
780
|
+
}, Yt = { class: "mwnf-minisite-zoom" }, Xt = ["src"], Zt = {
|
|
781
|
+
__name: "Zoom",
|
|
782
|
+
props: { image: {
|
|
783
|
+
type: String,
|
|
784
|
+
default: ""
|
|
785
|
+
} },
|
|
786
|
+
setup(e) {
|
|
787
|
+
let t = e, { pages: n, root: i, slots: s } = Y(), c = r(() => [i.value, ...n.value.map((e) => e.node)].filter(Boolean).flatMap((e) => s(e).flatMap((e) => e.variants.map((e) => e.image))).includes(t.image) ? t.image : "");
|
|
788
|
+
return (e, t) => (f(), o("div", Yt, [c.value ? (f(), o("img", {
|
|
789
|
+
key: 0,
|
|
790
|
+
src: c.value,
|
|
791
|
+
alt: ""
|
|
792
|
+
}, null, 8, Xt)) : a("", !0)]));
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
//#endregion
|
|
796
|
+
//#region src/minisite/routes.js
|
|
797
|
+
function Qt(e) {
|
|
798
|
+
return [
|
|
799
|
+
{
|
|
800
|
+
path: "/",
|
|
801
|
+
name: "home",
|
|
802
|
+
component: Ue,
|
|
803
|
+
meta: e("home", "collections", "partners", "countries")
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
path: "/introduction",
|
|
807
|
+
name: "introduction",
|
|
808
|
+
component: ht,
|
|
809
|
+
meta: e("introduction", ...je)
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
path: "/exhibition/:theme(\\d+)/:page(\\d+)?",
|
|
813
|
+
name: "exhibition",
|
|
814
|
+
component: Vt,
|
|
815
|
+
props: (e) => ({
|
|
816
|
+
theme: Number(e.params.theme),
|
|
817
|
+
page: Number(e.params.page || 1)
|
|
818
|
+
}),
|
|
819
|
+
meta: e("exhibition", ...je)
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
path: "/credits",
|
|
823
|
+
name: "credits",
|
|
824
|
+
component: Wt,
|
|
825
|
+
meta: {
|
|
826
|
+
...e("credits", "collections"),
|
|
827
|
+
bare: "credits"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
path: "/map",
|
|
832
|
+
name: "map",
|
|
833
|
+
component: Jt,
|
|
834
|
+
meta: {
|
|
835
|
+
...e("map"),
|
|
836
|
+
bare: "map"
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
path: "/zoom",
|
|
841
|
+
name: "zoom",
|
|
842
|
+
component: Zt,
|
|
843
|
+
props: (e) => ({ image: String(e.query.img ?? "") }),
|
|
844
|
+
meta: {
|
|
845
|
+
...e("zoom", "collections"),
|
|
846
|
+
bare: "zoom"
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
];
|
|
850
|
+
}
|
|
851
|
+
function $t(e) {
|
|
852
|
+
return [
|
|
853
|
+
{
|
|
854
|
+
label: "minisite.menu.permanentCollection",
|
|
855
|
+
href: `${e}/#/permanent-collection`
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
label: "minisite.menu.database",
|
|
859
|
+
href: `${e}/#/database`
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
label: "minisite.menu.exhibitions",
|
|
863
|
+
href: `${e}/#/exhibitions`
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
label: "minisite.menu.artisticIntroduction",
|
|
867
|
+
href: `${e}/#/artistic-introduction`,
|
|
868
|
+
window: !0
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
label: "minisite.menu.timeline",
|
|
872
|
+
href: `${e}/#/timeline`
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
label: "minisite.menu.partners",
|
|
876
|
+
href: `${e}/#/partners`
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
label: "minisite.menu.myCollection",
|
|
880
|
+
href: k.myCollection
|
|
881
|
+
}
|
|
882
|
+
];
|
|
883
|
+
}
|
|
884
|
+
function en({ languages: e, parent: t, menu: n = $t(t) }) {
|
|
885
|
+
return {
|
|
886
|
+
languages: e,
|
|
887
|
+
logoHref: k.portal,
|
|
888
|
+
headerLinks: [{
|
|
889
|
+
label: "minisite.header.exhibitionsList",
|
|
890
|
+
href: `${t}/#/exhibitions`
|
|
891
|
+
}, {
|
|
892
|
+
label: "minisite.header.home",
|
|
893
|
+
href: `${t}/#/`,
|
|
894
|
+
tip: "minisite.header.homeTip"
|
|
895
|
+
}],
|
|
896
|
+
menu: n,
|
|
897
|
+
footerLinks: [
|
|
898
|
+
{
|
|
899
|
+
label: "minisite.footer.aboutMwnf",
|
|
900
|
+
href: k.about
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
label: "minisite.footer.contact",
|
|
904
|
+
href: k.contact
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
label: "minisite.footer.legalNotice",
|
|
908
|
+
href: k.legalNotice
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
label: "minisite.footer.credits",
|
|
912
|
+
href: k.credits
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
label: "minisite.footer.cookies",
|
|
916
|
+
href: k.cookies
|
|
917
|
+
}
|
|
918
|
+
],
|
|
919
|
+
copyright: "minisite.footer.copyright"
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
function tn({ parent: e, ...t }) {
|
|
923
|
+
return {
|
|
924
|
+
parent: e,
|
|
925
|
+
itemHref: (t) => `${e}/#/item/${encodeURIComponent(t)}`,
|
|
926
|
+
partnerHref: (t) => `${e}/#/partner/${encodeURIComponent(t)}`,
|
|
927
|
+
...t
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
//#endregion
|
|
931
|
+
export { je as EXHIBITION_ENTITIES, _e as ISLAMICART_NO_COUNTRY, Wt as MinisiteCredits, Ue as MinisiteHome, ht as MinisiteIntroduction, Jt as MinisiteMap, Vt as MinisitePage, me as MinisiteShell, Zt as MinisiteZoom, ge as PLACEHOLDER_TITLE, q as cleanText, Ee as curatorLabel, De as curatorLink, Ae as exhibitionData, Te as introCaption, $t as islamicartMenu, en as minisiteNavigation, Qt as minisiteRoutes, tn as minisiteSettings, ye as pageWithNeighbours, Ce as placementCaption, Oe as quoteHasItalics, ve as readingOrder, be as slotsOf, Y as useExhibition, we as withFirstView };
|