@museumwnf/viewer-layout 3.11.0 → 3.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/minisite.js +169 -159
- package/package.json +1 -1
package/dist/minisite.js
CHANGED
|
@@ -30,10 +30,10 @@ var U = {
|
|
|
30
30
|
beforeUnmount() {
|
|
31
31
|
B.visible = !1;
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, ee = {
|
|
34
34
|
key: 1,
|
|
35
35
|
class: "mwnf-minisite"
|
|
36
|
-
},
|
|
36
|
+
}, W = { class: "mwnf-minisite__column" }, G = { class: "mwnf-minisite-header" }, te = { class: "mwnf-minisite-header__logo" }, ne = ["href"], re = ["src"], K = { class: "mwnf-minisite-header__nav" }, ie = { class: "mwnf-minisite-header__back" }, q = ["href"], ae = ["value", "aria-label"], oe = ["value"], se = { class: "mwnf-minisite-menu" }, ce = { class: "mwnf-minisite-menu__list" }, le = ["href", "onClick"], ue = ["href"], de = { class: "mwnf-minisite-footer" }, fe = ["href"], pe = {
|
|
37
37
|
__name: "Shell",
|
|
38
38
|
props: {
|
|
39
39
|
languages: {
|
|
@@ -78,21 +78,21 @@ var U = {
|
|
|
78
78
|
return (e, r) => (f(), o(n, null, [S.value ? (f(), o("div", {
|
|
79
79
|
key: 0,
|
|
80
80
|
class: u(`mwnf-minisite-window mwnf-minisite-window--${S.value}`)
|
|
81
|
-
}, [g(e.$slots, "default")], 2)) : (f(), o("div",
|
|
81
|
+
}, [g(e.$slots, "default")], 2)) : (f(), o("div", ee, [
|
|
82
82
|
s("div", {
|
|
83
83
|
class: "mwnf-minisite__strip",
|
|
84
84
|
style: d({ backgroundImage: O.value[0] ? `url(${O.value[0]})` : "none" }),
|
|
85
85
|
"aria-hidden": "true"
|
|
86
86
|
}, null, 4),
|
|
87
|
-
s("div",
|
|
88
|
-
s("header",
|
|
87
|
+
s("div", W, [
|
|
88
|
+
s("header", G, [s("div", te, [C((f(), o("a", { href: t.logoHref }, [s("img", {
|
|
89
89
|
src: T(`legacy/logo_${t.language}.gif`),
|
|
90
90
|
alt: "",
|
|
91
91
|
height: "60"
|
|
92
|
-
}, null, 8,
|
|
92
|
+
}, null, 8, re)], 8, ne)), [[y(U), { text: y(m)("minisite.header.logoTip") }]])]), s("div", K, [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
93
|
class: "mwnf-minisite-header__link",
|
|
94
94
|
href: e.href
|
|
95
|
-
}, [c(v(y(m)(e.label)), 1)], 8,
|
|
95
|
+
}, [c(v(y(m)(e.label)), 1)], 8, q)), [[y(U), { text: e.tip ? y(m)(e.tip) : "" }]])], 64))), 128))]), s("div", null, [s("select", {
|
|
96
96
|
class: "mwnf-minisite-header__select",
|
|
97
97
|
value: t.language,
|
|
98
98
|
"aria-label": y(m)("layout.language.label"),
|
|
@@ -100,18 +100,18 @@ var U = {
|
|
|
100
100
|
}, [(f(!0), o(n, null, h(E.value, (e) => (f(), o("option", {
|
|
101
101
|
key: e.code,
|
|
102
102
|
value: e.code
|
|
103
|
-
}, v(e.label), 9,
|
|
103
|
+
}, v(e.label), 9, oe))), 128))], 40, ae)])])]),
|
|
104
104
|
s("main", null, [g(e.$slots, "default")]),
|
|
105
|
-
s("nav",
|
|
105
|
+
s("nav", se, [s("ul", ce, [(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
106
|
key: 0,
|
|
107
107
|
href: e.href,
|
|
108
108
|
onClick: w((t) => k(e), ["prevent"])
|
|
109
|
-
}, v(y(m)(e.label)), 9,
|
|
109
|
+
}, v(y(m)(e.label)), 9, le)) : (f(), o("a", {
|
|
110
110
|
key: 1,
|
|
111
111
|
href: e.href
|
|
112
|
-
}, v(y(m)(e.label)), 9,
|
|
112
|
+
}, v(y(m)(e.label)), 9, ue))])], 64))), 128))])]),
|
|
113
113
|
r[2] ||= s("div", { class: "mwnf-minisite-menu__line" }, null, -1),
|
|
114
|
-
s("footer",
|
|
114
|
+
s("footer", de, [(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, fe), r[1] ||= c("\xA0|\xA0 ", -1)], 64))), 128)), c(v(y(m)(t.copyright)) + " " + v(y(D)), 1)])
|
|
115
115
|
]),
|
|
116
116
|
s("div", {
|
|
117
117
|
class: "mwnf-minisite__strip",
|
|
@@ -128,20 +128,20 @@ var U = {
|
|
|
128
128
|
role: "tooltip"
|
|
129
129
|
}, v(y(B).text), 5), [[b, y(B).visible]])], 64));
|
|
130
130
|
}
|
|
131
|
-
},
|
|
131
|
+
}, me = [
|
|
132
132
|
[/[‘’]/g, "'"],
|
|
133
133
|
[/[“”]/g, "\""],
|
|
134
134
|
[/…/g, "..."],
|
|
135
135
|
[/•/g, "*"]
|
|
136
136
|
];
|
|
137
|
-
function
|
|
138
|
-
return
|
|
137
|
+
function J(e) {
|
|
138
|
+
return me.reduce((e, [t, n]) => e.replace(t, n), String(e ?? ""));
|
|
139
139
|
}
|
|
140
|
-
var
|
|
140
|
+
var he = /^(Theme|Page) \d+$/, ge = {
|
|
141
141
|
partners: ["325b7505-1527-5442-99ea-6a40f8c43d3f"],
|
|
142
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
143
|
};
|
|
144
|
-
function
|
|
144
|
+
function _e(e, t) {
|
|
145
145
|
return e.flatMap((e, n) => t(e.id).map((t, r) => ({
|
|
146
146
|
theme: n + 1,
|
|
147
147
|
page: r + 1,
|
|
@@ -149,7 +149,7 @@ function ve(e, t) {
|
|
|
149
149
|
themeNode: e
|
|
150
150
|
})));
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function ve(e, t, n) {
|
|
153
153
|
let r = e.findIndex((e) => e.theme === t && e.page === n);
|
|
154
154
|
if (r < 0) return null;
|
|
155
155
|
let i = (e) => ({
|
|
@@ -165,7 +165,7 @@ function ye(e, t, n) {
|
|
|
165
165
|
next: r < e.length - 1 ? i(e[r + 1]) : null
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function ye(e) {
|
|
169
169
|
let t = /* @__PURE__ */ new Map();
|
|
170
170
|
for (let n of e?.items ?? []) {
|
|
171
171
|
let e = n.display_order ?? 0;
|
|
@@ -180,27 +180,27 @@ function be(e) {
|
|
|
180
180
|
}))
|
|
181
181
|
}));
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function be(e, t, n) {
|
|
184
184
|
return !e || e.type === "object" && n?.partners?.includes(e.partner_id) || e.type === "monument" && n?.monuments?.includes(e.mwnf_reference) ? "" : t(e);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function xe(e, t, n, r) {
|
|
187
187
|
return [
|
|
188
188
|
A(t.location ?? ""),
|
|
189
189
|
A(t.province ?? ""),
|
|
190
|
-
|
|
190
|
+
be(e, n, r)
|
|
191
191
|
].filter(Boolean).join(", ");
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
let a = e?.type === "object" ? n.museum || A(t.holder ?? "") : "", o = n.location ? [n.location, e ? r(e) : ""].filter(Boolean).join(", ") :
|
|
193
|
+
function Se({ 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(", ") : xe(e, t, r, i);
|
|
195
195
|
return {
|
|
196
|
-
name:
|
|
197
|
-
detailName:
|
|
198
|
-
dateLines: [n.date || A(t.dates ?? ""), n.dynasty || A(t.dynasty ?? "")].filter(Boolean).map(
|
|
199
|
-
details: [a, o].filter(Boolean).map(
|
|
200
|
-
justification:
|
|
196
|
+
name: J(n.name ? A(n.name) : A(t.name ?? "")),
|
|
197
|
+
detailName: J(n.detail_name),
|
|
198
|
+
dateLines: [n.date || A(t.dates ?? ""), n.dynasty || A(t.dynasty ?? "")].filter(Boolean).map(J),
|
|
199
|
+
details: [a, o].filter(Boolean).map(J),
|
|
200
|
+
justification: J(n.justification)
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Ce(e, t) {
|
|
204
204
|
return {
|
|
205
205
|
name: e.name || t.name,
|
|
206
206
|
detailName: e.detailName || t.detailName,
|
|
@@ -209,42 +209,52 @@ function we(e, t) {
|
|
|
209
209
|
justification: e.justification || t.justification
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
let
|
|
212
|
+
function we(e, t, n) {
|
|
213
|
+
let r = (e) => {
|
|
214
|
+
let t = e ? n(e.entry.id) : null;
|
|
215
|
+
return t && t.type !== "picture" ? t.id : null;
|
|
216
|
+
};
|
|
217
|
+
return r(e?.variants[t]) ?? r(e?.variants[0]) ?? null;
|
|
218
|
+
}
|
|
219
|
+
function Te(e, t) {
|
|
220
|
+
return e?.variants[t]?.image || e?.variants[0]?.image || null;
|
|
221
|
+
}
|
|
222
|
+
function Ee({ item: e, own: t, caption: n = {}, countryName: r, noCountry: i }) {
|
|
223
|
+
let a = (e, t) => e ? J(A(e)) : t;
|
|
214
224
|
return [
|
|
215
225
|
a(n.name, A(t.name ?? "")),
|
|
216
226
|
a(n.date, A(t.dates ?? "")),
|
|
217
|
-
a(n.dynasty,
|
|
227
|
+
a(n.dynasty, J(A(t.dynasty ?? ""))),
|
|
218
228
|
e?.type === "object" ? a(n.museum, A(t.holder ?? "")) : "",
|
|
219
|
-
a(n.location,
|
|
229
|
+
a(n.location, xe(e, t, r, i))
|
|
220
230
|
];
|
|
221
231
|
}
|
|
222
|
-
function
|
|
232
|
+
function De(e, { partnerName: t, partnerCountry: n, countryName: r }) {
|
|
223
233
|
let i = (e) => e ? r(e) : "";
|
|
224
234
|
return e.partner ? [t(e.partner), i(n(e.partner))].filter(Boolean).join(", ") : [e.name, i(e.country)].filter(Boolean).join(", ");
|
|
225
235
|
}
|
|
226
|
-
function
|
|
236
|
+
function Oe(e, t) {
|
|
227
237
|
return "href" in e ? e.href : t?.(e.partner);
|
|
228
238
|
}
|
|
229
|
-
function
|
|
239
|
+
function ke(e) {
|
|
230
240
|
return /(^|[^*])\*[^*\s][^*]*\*/.test(e ?? "") || /\b_[^_]+_\b/.test(e ?? "");
|
|
231
241
|
}
|
|
232
242
|
//#endregion
|
|
233
243
|
//#region src/minisite/exhibition.js
|
|
234
|
-
var
|
|
244
|
+
var Ae = [
|
|
235
245
|
"collections",
|
|
236
246
|
"items",
|
|
237
247
|
"countries",
|
|
238
248
|
"partners",
|
|
239
249
|
"glossary"
|
|
240
|
-
],
|
|
241
|
-
function
|
|
242
|
-
if (!
|
|
250
|
+
], je = null;
|
|
251
|
+
function Me() {
|
|
252
|
+
if (!je) {
|
|
243
253
|
let e = P();
|
|
244
|
-
|
|
254
|
+
je = {
|
|
245
255
|
pkg: e,
|
|
246
256
|
data: M({
|
|
247
|
-
eager:
|
|
257
|
+
eager: Ae,
|
|
248
258
|
glossary: !1
|
|
249
259
|
}),
|
|
250
260
|
tree: N({
|
|
@@ -253,21 +263,21 @@ function Ae() {
|
|
|
253
263
|
})
|
|
254
264
|
};
|
|
255
265
|
}
|
|
256
|
-
return
|
|
266
|
+
return je;
|
|
257
267
|
}
|
|
258
|
-
var
|
|
268
|
+
var Ne = [
|
|
259
269
|
"collections",
|
|
260
270
|
"items",
|
|
261
271
|
"countries",
|
|
262
272
|
"glossary"
|
|
263
273
|
];
|
|
264
274
|
function Y() {
|
|
265
|
-
let { pkg: t, data: n, tree: i } =
|
|
266
|
-
x(u, (e) => Promise.all(
|
|
267
|
-
let d = i.root, f = r(() => d.value ? i.children(d.value.id) : []), p = r(() =>
|
|
275
|
+
let { pkg: t, data: n, tree: i } = Me(), { locale: a, t: o } = I(), s = L(), c = s.minisite ?? {}, l = z(), u = r(() => a.value);
|
|
276
|
+
x(u, (e) => Promise.all(Ae.flatMap((n) => [t.loadTranslations(n, e), t.loadTranslations(n, "en")])), { immediate: !0 });
|
|
277
|
+
let d = i.root, f = r(() => d.value ? i.children(d.value.id) : []), p = r(() => _e(f.value, i.children));
|
|
268
278
|
function m(e) {
|
|
269
279
|
let n = t.translations("collections", u.value)[e] ?? {};
|
|
270
|
-
return
|
|
280
|
+
return he.test(n.title ?? "") ? {
|
|
271
281
|
...n,
|
|
272
282
|
title: ""
|
|
273
283
|
} : n;
|
|
@@ -313,10 +323,10 @@ function Y() {
|
|
|
313
323
|
picture: v,
|
|
314
324
|
href: y,
|
|
315
325
|
glossaryFor: _,
|
|
316
|
-
pageAt: (e, t) =>
|
|
317
|
-
slots:
|
|
318
|
-
placementCaption: (e) =>
|
|
319
|
-
introCaption: (e) =>
|
|
326
|
+
pageAt: (e, t) => ve(p.value, e, t),
|
|
327
|
+
slots: ye,
|
|
328
|
+
placementCaption: (e) => Se(g(e)),
|
|
329
|
+
introCaption: (e) => Ee(g(e)),
|
|
320
330
|
title: r(() => d.value ? m(d.value.id).title ?? "" : "")
|
|
321
331
|
};
|
|
322
332
|
}
|
|
@@ -330,10 +340,10 @@ function Z(e, [t, n]) {
|
|
|
330
340
|
}
|
|
331
341
|
//#endregion
|
|
332
342
|
//#region src/minisite/Home.vue
|
|
333
|
-
var
|
|
343
|
+
var Pe = { class: "mwnf-minisite-home" }, Fe = { class: "mwnf-minisite-home__title" }, Ie = ["innerHTML"], Le = { class: "mwnf-minisite-home__menu" }, Re = {
|
|
334
344
|
key: 0,
|
|
335
345
|
class: "mwnf-minisite-home__menu2"
|
|
336
|
-
},
|
|
346
|
+
}, ze = { class: "mwnf-minisite-partners" }, Be = { class: "mwnf-minisite-partners__line" }, Ve = ["href"], He = { class: "mwnf-minisite-partners__logos" }, Ue = ["href"], We = ["src"], Ge = {
|
|
337
347
|
__name: "Home",
|
|
338
348
|
setup(e) {
|
|
339
349
|
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) => ({
|
|
@@ -342,27 +352,27 @@ var Me = { class: "mwnf-minisite-home" }, Ne = { class: "mwnf-minisite-home__tit
|
|
|
342
352
|
}))), M = r(() => m.value.slice(A.value).map((e, t) => ({
|
|
343
353
|
theme: e,
|
|
344
354
|
number: A.value + t + 1
|
|
345
|
-
}))), N = r(() => T.curators ?? []), P = (e) =>
|
|
355
|
+
}))), N = r(() => T.curators ?? []), P = (e) => De(e, {
|
|
346
356
|
partnerName: (e) => u.tr("partners", e, i.value).name,
|
|
347
357
|
partnerCountry: (e) => u.partnerById.value.get(e)?.country_id,
|
|
348
358
|
countryName: (e) => u.tr("countries", e, i.value).name
|
|
349
|
-
}), F = (e) =>
|
|
359
|
+
}), F = (e) => Oe(e, T.partnerHref), I = r(() => E(i.value === "ar" ? "legacy/home_bg_ar.jpg" : "legacy/home_bg.jpg"));
|
|
350
360
|
return x([b, i], () => {
|
|
351
361
|
document.title = [t("minisite.identity.windowTitle"), b.value].filter(Boolean).join(" | ");
|
|
352
362
|
}, { immediate: !0 }), (e, r) => {
|
|
353
363
|
let i = _("router-link");
|
|
354
|
-
return f(), o(n, null, [s("div",
|
|
364
|
+
return f(), o(n, null, [s("div", Pe, [
|
|
355
365
|
r[4] ||= s("div", { class: "mwnf-minisite-home__bg1" }, null, -1),
|
|
356
366
|
s("div", {
|
|
357
367
|
class: "mwnf-minisite-home__bg2",
|
|
358
368
|
style: d({ backgroundImage: I.value ? `url(${I.value})` : "none" })
|
|
359
369
|
}, null, 4),
|
|
360
|
-
s("div",
|
|
370
|
+
s("div", Fe, v(y(b)), 1),
|
|
361
371
|
s("div", {
|
|
362
372
|
class: "mwnf-minisite-home__description",
|
|
363
373
|
innerHTML: k.value
|
|
364
|
-
}, null, 8,
|
|
365
|
-
s("div",
|
|
374
|
+
}, null, 8, Ie),
|
|
375
|
+
s("div", Le, [s("div", null, [r[1] ||= c("> ", -1), l(i, { to: { name: "introduction" } }, {
|
|
366
376
|
default: S(() => [c(v(y(t)("minisite.home.introduction")), 1)]),
|
|
367
377
|
_: 1
|
|
368
378
|
})]), (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: {
|
|
@@ -372,21 +382,21 @@ var Me = { class: "mwnf-minisite-home" }, Ne = { class: "mwnf-minisite-home__tit
|
|
|
372
382
|
default: S(() => [c(v(y(g)(e.id).title), 1)]),
|
|
373
383
|
_: 2
|
|
374
384
|
}, 1032, ["to"])]))), 128))]),
|
|
375
|
-
M.value.length ? (f(), o("div",
|
|
385
|
+
M.value.length ? (f(), o("div", Re, [(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
386
|
name: "exhibition",
|
|
377
387
|
params: { theme: t }
|
|
378
388
|
} }, {
|
|
379
389
|
default: S(() => [c(v(y(g)(e.id).title), 1)]),
|
|
380
390
|
_: 2
|
|
381
391
|
}, 1032, ["to"])]))), 128))])) : a("", !0)
|
|
382
|
-
]), s("div",
|
|
392
|
+
]), s("div", ze, [s("div", Be, [s("a", {
|
|
383
393
|
href: y(D)({ name: "credits" }),
|
|
384
394
|
onClick: r[0] ||= w((e) => y(Z)(y(D)({ name: "credits" }), y(X).credits), ["prevent"])
|
|
385
|
-
}, v(y(t)("minisite.home.curatedBy")), 9,
|
|
395
|
+
}, v(y(t)("minisite.home.curatedBy")), 9, Ve)]), s("div", He, [(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
396
|
src: y(E)(e.logo),
|
|
387
397
|
alt: "",
|
|
388
398
|
height: "74"
|
|
389
|
-
}, null, 8,
|
|
399
|
+
}, null, 8, We)], 8, Ue)), [[y(U), {
|
|
390
400
|
text: P(e),
|
|
391
401
|
width: 280
|
|
392
402
|
}]]), t < N.value.length - 1 ? (f(), o("span", {
|
|
@@ -402,32 +412,32 @@ var Me = { class: "mwnf-minisite-home" }, Ne = { class: "mwnf-minisite-home__tit
|
|
|
402
412
|
">": ">",
|
|
403
413
|
"\"": """
|
|
404
414
|
})[e]);
|
|
405
|
-
function
|
|
415
|
+
function Ke(e, t, n) {
|
|
406
416
|
let r = `<!DOCTYPE html><html><head><meta charset="utf-8"><title>${Q(t)}</title></head><body>${n}</body></html>`, i = document.createElement("a");
|
|
407
417
|
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
418
|
}
|
|
409
|
-
var
|
|
410
|
-
function
|
|
419
|
+
var qe = (...e) => `${e.map((e) => O(e).replace(/[,:]/g, "").replace(/ /g, "-")).join("-")}.doc`;
|
|
420
|
+
function Je({ documentTitle: e, title: t, header: n, text: r, captions: i }) {
|
|
411
421
|
let a = i.map((e) => {
|
|
412
422
|
let [t, ...n] = e;
|
|
413
423
|
return `<div><br/>${[t ? `<strong>${Q(O(t))}</strong>` : "", ...n.map((e) => Q(O(e)))].filter(Boolean).join("<br/>")}</div>`;
|
|
414
424
|
}).join("");
|
|
415
|
-
|
|
425
|
+
Ke(`${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
426
|
}
|
|
417
427
|
var $ = "align='center' style='color:#000000;vertical-align:top;'";
|
|
418
|
-
function
|
|
428
|
+
function Ye(e) {
|
|
419
429
|
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
430
|
}
|
|
421
|
-
function
|
|
431
|
+
function Xe({ documentTitle: e, title: t, pageTitle: n, quote: r, text: i, slots: a }) {
|
|
422
432
|
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) => `${
|
|
424
|
-
return `${
|
|
433
|
+
let n = t.length ? `<table width="100%" cellpadding="1" cellspacing="1" border="1" bgcolor="#FFFFFF">${o}${t.map((e) => `${Ye(e)}</td></tr>`).join("")}</table>` : "";
|
|
434
|
+
return `${Ye(e)}${n}</td></tr>`;
|
|
425
435
|
}).join("");
|
|
426
|
-
|
|
436
|
+
Ke(qe(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
437
|
}
|
|
428
438
|
//#endregion
|
|
429
439
|
//#region src/minisite/DownloadBlock.vue
|
|
430
|
-
var
|
|
440
|
+
var Ze = { class: "mwnf-minisite-download" }, Qe = ["src"], $e = ["src"], et = ["src"], tt = {
|
|
431
441
|
__name: "DownloadBlock",
|
|
432
442
|
props: { word: {
|
|
433
443
|
type: Function,
|
|
@@ -438,20 +448,20 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
438
448
|
function a() {
|
|
439
449
|
window.print();
|
|
440
450
|
}
|
|
441
|
-
return (e, r) => (f(), o("div",
|
|
451
|
+
return (e, r) => (f(), o("div", Ze, [
|
|
442
452
|
r[1] ||= s("br", null, null, -1),
|
|
443
453
|
s("img", {
|
|
444
454
|
src: i("legacy/print_dark.gif"),
|
|
445
455
|
alt: "",
|
|
446
456
|
width: "17",
|
|
447
457
|
height: "12"
|
|
448
|
-
}, null, 8,
|
|
458
|
+
}, null, 8, Qe),
|
|
449
459
|
c(" / " + v(y(n)("minisite.download.heading")), 1),
|
|
450
460
|
r[2] ||= s("br", null, null, -1),
|
|
451
461
|
s("img", {
|
|
452
462
|
src: i("legacy/arrow_inner_black.gif"),
|
|
453
463
|
alt: ""
|
|
454
|
-
}, null, 8,
|
|
464
|
+
}, null, 8, $e),
|
|
455
465
|
s("a", {
|
|
456
466
|
href: "#",
|
|
457
467
|
onClick: w(a, ["prevent"])
|
|
@@ -460,17 +470,17 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
460
470
|
s("img", {
|
|
461
471
|
src: i("legacy/arrow_inner_black.gif"),
|
|
462
472
|
alt: ""
|
|
463
|
-
}, null, 8,
|
|
473
|
+
}, null, 8, et),
|
|
464
474
|
s("a", {
|
|
465
475
|
href: "#",
|
|
466
476
|
onClick: r[0] ||= w((e) => t.word(), ["prevent"])
|
|
467
477
|
}, v(y(n)("minisite.download.asWord")), 1)
|
|
468
478
|
]));
|
|
469
479
|
}
|
|
470
|
-
},
|
|
480
|
+
}, nt = { class: "mwnf-minisite-intro__title" }, rt = { class: "mwnf-minisite-intro__nav mwnf-minisite-intro__nav--start" }, it = { class: "mwnf-minisite-intro__nav mwnf-minisite-intro__nav--end" }, at = { class: "mwnf-minisite-intro__table" }, ot = ["innerHTML"], st = ["innerHTML"], ct = { class: "mwnf-minisite-intro__side" }, lt = {
|
|
471
481
|
key: 0,
|
|
472
482
|
class: "mwnf-minisite-intro-item"
|
|
473
|
-
},
|
|
483
|
+
}, ut = ["href"], dt = ["src"], ft = ["href"], pt = ["src"], mt = { key: 0 }, ht = ["innerHTML"], gt = ["innerHTML"], _t = {
|
|
474
484
|
__name: "Introduction",
|
|
475
485
|
setup(e) {
|
|
476
486
|
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 }) => ({
|
|
@@ -479,7 +489,7 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
479
489
|
lines: O(e)
|
|
480
490
|
}))), L = r(() => T.map ?? null), R = F(M);
|
|
481
491
|
function z() {
|
|
482
|
-
|
|
492
|
+
Je({
|
|
483
493
|
documentTitle: T.documentTitle,
|
|
484
494
|
title: C.value,
|
|
485
495
|
header: j.value.extra?.intro_header ?? "",
|
|
@@ -496,12 +506,12 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
496
506
|
class: "mwnf-minisite-intro",
|
|
497
507
|
style: d({ backgroundImage: B.value ? `url(${B.value})` : "none" })
|
|
498
508
|
}, [
|
|
499
|
-
s("div",
|
|
500
|
-
s("div",
|
|
509
|
+
s("div", nt, v(y(C)), 1),
|
|
510
|
+
s("div", rt, [r[3] ||= c(" < ", -1), l(p, { to: { name: "home" } }, {
|
|
501
511
|
default: S(() => [c(v(y(u)("minisite.nav.entrance")), 1)]),
|
|
502
512
|
_: 1
|
|
503
513
|
})]),
|
|
504
|
-
s("div",
|
|
514
|
+
s("div", it, [
|
|
505
515
|
r[4] ||= c(" < ", -1),
|
|
506
516
|
l(p, { to: { name: "home" } }, {
|
|
507
517
|
default: S(() => [c(v(y(u)("minisite.nav.previous")), 1)]),
|
|
@@ -520,20 +530,20 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
520
530
|
}),
|
|
521
531
|
r[6] ||= c(" > ", -1)
|
|
522
532
|
]),
|
|
523
|
-
s("div",
|
|
533
|
+
s("div", at, [s("div", {
|
|
524
534
|
class: "mwnf-minisite-intro__text",
|
|
525
535
|
onClick: r[0] ||= (...e) => y(R).onClick && y(R).onClick(...e)
|
|
526
536
|
}, [
|
|
527
537
|
s("div", {
|
|
528
538
|
class: "mwnf-minisite-intro__header",
|
|
529
539
|
innerHTML: P.value
|
|
530
|
-
}, null, 8,
|
|
540
|
+
}, null, 8, ot),
|
|
531
541
|
s("div", {
|
|
532
542
|
class: "mwnf-minisite-intro__content",
|
|
533
543
|
innerHTML: N.value
|
|
534
|
-
}, null, 8,
|
|
535
|
-
l(
|
|
536
|
-
]), s("div",
|
|
544
|
+
}, null, 8, st),
|
|
545
|
+
l(tt, { word: z })
|
|
546
|
+
]), s("div", ct, [L.value ? (f(), o("div", lt, [
|
|
537
547
|
s("a", {
|
|
538
548
|
href: y(D)({ name: "map" }),
|
|
539
549
|
onClick: r[1] ||= w((e) => y(Z)(y(D)({ name: "map" }), y(X).map), ["prevent"])
|
|
@@ -542,13 +552,13 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
542
552
|
alt: "",
|
|
543
553
|
width: "178",
|
|
544
554
|
height: "93"
|
|
545
|
-
}, null, 8,
|
|
555
|
+
}, null, 8, dt)], 8, ut),
|
|
546
556
|
r[7] ||= s("br", null, null, -1),
|
|
547
557
|
s("a", {
|
|
548
558
|
class: "mwnf-minisite-intro-item__map",
|
|
549
559
|
href: y(D)({ name: "map" }),
|
|
550
560
|
onClick: r[2] ||= w((e) => y(Z)(y(D)({ name: "map" }), y(X).map), ["prevent"])
|
|
551
|
-
}, v(y(u)("minisite.intro.enlargeMap")), 9,
|
|
561
|
+
}, v(y(u)("minisite.intro.enlargeMap")), 9, ft)
|
|
552
562
|
])) : a("", !0), (f(!0), o(n, null, h(I.value, (e) => (f(), o("div", {
|
|
553
563
|
key: `${e.entry.id}-${e.entry.variant_order}`,
|
|
554
564
|
class: "mwnf-minisite-intro-item"
|
|
@@ -558,15 +568,15 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
558
568
|
class: "mwnf-minisite-intro-item__image",
|
|
559
569
|
src: e.image,
|
|
560
570
|
alt: ""
|
|
561
|
-
}, null, 8,
|
|
571
|
+
}, null, 8, pt)) : a("", !0),
|
|
562
572
|
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",
|
|
573
|
+
(f(!0), o(n, null, h(e.lines.filter(Boolean), (t, r) => (f(), o(n, { key: r }, [r > 0 ? (f(), o("br", mt)) : a("", !0), r === 0 && e.lines[0] ? (f(), o("strong", {
|
|
564
574
|
key: 1,
|
|
565
575
|
innerHTML: y(m).mdInline(t)
|
|
566
|
-
}, null, 8,
|
|
576
|
+
}, null, 8, ht)) : (f(), o("span", {
|
|
567
577
|
key: 2,
|
|
568
578
|
innerHTML: y(m).mdInline(t)
|
|
569
|
-
}, null, 8,
|
|
579
|
+
}, null, 8, gt))], 64))), 128))
|
|
570
580
|
]))), 128))])]),
|
|
571
581
|
y(R).active.value ? (f(), i(t, {
|
|
572
582
|
key: 0,
|
|
@@ -581,10 +591,10 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
581
591
|
], 4);
|
|
582
592
|
};
|
|
583
593
|
}
|
|
584
|
-
},
|
|
594
|
+
}, vt = { class: "mwnf-minisite-page__head" }, yt = { class: "mwnf-minisite-page__title" }, bt = { class: "mwnf-minisite-page__nav mwnf-minisite-page__nav--start" }, xt = { class: "mwnf-minisite-page__nav mwnf-minisite-page__nav--end" }, St = { class: "mwnf-minisite-page__body" }, Ct = ["innerHTML"], wt = { class: "mwnf-minisite-page__thumbs" }, Tt = ["onClick"], Et = ["src"], Dt = ["innerHTML"], Ot = ["innerHTML"], kt = { class: "mwnf-minisite-page__item" }, At = { class: "mwnf-minisite-page__image" }, jt = ["src"], Mt = {
|
|
585
595
|
key: 0,
|
|
586
596
|
class: "mwnf-minisite-page__caption"
|
|
587
|
-
},
|
|
597
|
+
}, Nt = ["innerHTML"], Pt = ["innerHTML"], Ft = { key: 0 }, It = ["innerHTML"], Lt = ["innerHTML"], Rt = { key: 0 }, zt = ["onClick"], Bt = ["src"], Vt = ["innerHTML"], Ht = { key: 1 }, Ut = ["href"], Wt = {
|
|
588
598
|
__name: "Page",
|
|
589
599
|
props: {
|
|
590
600
|
theme: {
|
|
@@ -605,31 +615,31 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
605
615
|
slot: 0,
|
|
606
616
|
variant: 0
|
|
607
617
|
});
|
|
608
|
-
let H = r(() => z.value[V.value.slot] ?? null),
|
|
609
|
-
...
|
|
610
|
-
|
|
618
|
+
let H = r(() => z.value[V.value.slot] ?? null), ee = r(() => H.value?.variants[V.value.variant] ?? null), W = r(() => Te(H.value, V.value.variant)), G = r(() => !H.value || !ee.value ? null : {
|
|
619
|
+
...Ce(N(ee.value.entry), N(H.value.variants[0].entry)),
|
|
620
|
+
sheetId: we(H.value, V.value.variant, (e) => T.itemById.value.get(e))
|
|
611
621
|
});
|
|
612
|
-
function
|
|
622
|
+
function te(e) {
|
|
613
623
|
V.value = {
|
|
614
624
|
slot: e,
|
|
615
625
|
variant: 0
|
|
616
626
|
};
|
|
617
627
|
}
|
|
618
|
-
function
|
|
628
|
+
function ne(e) {
|
|
619
629
|
V.value = {
|
|
620
630
|
...V.value,
|
|
621
631
|
variant: e
|
|
622
632
|
};
|
|
623
633
|
}
|
|
624
|
-
function
|
|
625
|
-
W.value
|
|
634
|
+
function re() {
|
|
635
|
+
W.value && Z(A({
|
|
626
636
|
name: "zoom",
|
|
627
|
-
query: { img: W.value
|
|
637
|
+
query: { img: W.value }
|
|
628
638
|
}), X.zoom);
|
|
629
639
|
}
|
|
630
640
|
let K = F(R);
|
|
631
|
-
function
|
|
632
|
-
|
|
641
|
+
function ie() {
|
|
642
|
+
Xe({
|
|
633
643
|
documentTitle: O.documentTitle,
|
|
634
644
|
title: E.value,
|
|
635
645
|
pageTitle: L.value.title ?? "",
|
|
@@ -650,21 +660,21 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
650
660
|
p.page
|
|
651
661
|
].filter(Boolean).join(" | ");
|
|
652
662
|
}, { immediate: !0 });
|
|
653
|
-
let
|
|
663
|
+
let q = r(() => k(b.value === "ar" ? "legacy/exhibition_bg_ar.jpg" : "legacy/exhibition_bg.jpg"));
|
|
654
664
|
return (e, r) => {
|
|
655
665
|
let p = _("router-link");
|
|
656
666
|
return I.value ? (f(), o("div", {
|
|
657
667
|
key: 0,
|
|
658
668
|
class: "mwnf-minisite-page",
|
|
659
|
-
style: d({ backgroundImage:
|
|
669
|
+
style: d({ backgroundImage: q.value ? `url(${q.value})` : "none" })
|
|
660
670
|
}, [
|
|
661
|
-
s("div",
|
|
662
|
-
s("div",
|
|
663
|
-
s("div",
|
|
671
|
+
s("div", vt, [
|
|
672
|
+
s("div", yt, v(y(E)), 1),
|
|
673
|
+
s("div", bt, [r[1] ||= c(" < ", -1), l(p, { to: { name: "home" } }, {
|
|
664
674
|
default: S(() => [c(v(y(g)("minisite.nav.entrance")), 1)]),
|
|
665
675
|
_: 1
|
|
666
676
|
})]),
|
|
667
|
-
s("div",
|
|
677
|
+
s("div", xt, [
|
|
668
678
|
r[4] ||= c(" < ", -1),
|
|
669
679
|
l(p, { to: I.value.previous }, {
|
|
670
680
|
default: S(() => [c(v(y(g)("minisite.nav.previous")), 1)]),
|
|
@@ -680,69 +690,69 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
680
690
|
], 64)) : a("", !0)
|
|
681
691
|
])
|
|
682
692
|
]),
|
|
683
|
-
s("div",
|
|
693
|
+
s("div", St, [s("div", {
|
|
684
694
|
class: "mwnf-minisite-page__text",
|
|
685
695
|
onClick: r[0] ||= (...e) => y(K).onClick && y(K).onClick(...e)
|
|
686
696
|
}, [
|
|
687
697
|
s("div", {
|
|
688
698
|
class: "mwnf-minisite-page__page-title",
|
|
689
699
|
innerHTML: y(T).mdInline(L.value.title)
|
|
690
|
-
}, null, 8,
|
|
691
|
-
s("div",
|
|
700
|
+
}, null, 8, Ct),
|
|
701
|
+
s("div", wt, [(f(!0), o(n, null, h(z.value, (e, t) => C((f(), o("a", {
|
|
692
702
|
key: e.n,
|
|
693
703
|
href: "#",
|
|
694
|
-
onClick: w((e) =>
|
|
704
|
+
onClick: w((e) => te(t), ["prevent"])
|
|
695
705
|
}, [e.variants[0].image ? (f(), o("img", {
|
|
696
706
|
key: 0,
|
|
697
707
|
src: e.variants[0].image,
|
|
698
708
|
alt: "",
|
|
699
709
|
height: "36"
|
|
700
|
-
}, null, 8,
|
|
710
|
+
}, null, 8, Et)) : a("", !0)], 8, Tt)), [[y(U), {
|
|
701
711
|
text: y(T).mdStrip(y(N)(e.variants[0].entry).name),
|
|
702
712
|
width: 160
|
|
703
713
|
}]])), 128))]),
|
|
704
714
|
s("div", {
|
|
705
|
-
class: u(["mwnf-minisite-page__quote", { "mwnf-minisite-page__quote--own-italics": y(
|
|
715
|
+
class: u(["mwnf-minisite-page__quote", { "mwnf-minisite-page__quote--own-italics": y(ke)(B.value) }]),
|
|
706
716
|
innerHTML: y(T).mdInline(B.value, { glossary: R.value })
|
|
707
|
-
}, null, 10,
|
|
717
|
+
}, null, 10, Dt),
|
|
708
718
|
s("div", {
|
|
709
719
|
class: "mwnf-minisite-page__content",
|
|
710
720
|
innerHTML: y(T).md(L.value.description, { glossary: R.value })
|
|
711
|
-
}, null, 8,
|
|
712
|
-
l(
|
|
713
|
-
]), s("div",
|
|
721
|
+
}, null, 8, Ot),
|
|
722
|
+
l(tt, { word: ie })
|
|
723
|
+
]), s("div", kt, [s("div", At, [W.value ? C((f(), o("a", {
|
|
714
724
|
key: 0,
|
|
715
725
|
href: "#",
|
|
716
|
-
onClick: w(
|
|
726
|
+
onClick: w(re, ["prevent"])
|
|
717
727
|
}, [s("img", {
|
|
718
|
-
src: W.value
|
|
728
|
+
src: W.value,
|
|
719
729
|
alt: ""
|
|
720
|
-
}, null, 8,
|
|
730
|
+
}, null, 8, jt)])), [[y(U), { text: y(g)("minisite.item.showZoom") }]]) : a("", !0)]), G.value ? (f(), o("div", Mt, [
|
|
721
731
|
s("div", null, [
|
|
722
|
-
s("strong", { innerHTML: y(T).mdInline(G.value.name) }, null, 8,
|
|
732
|
+
s("strong", { innerHTML: y(T).mdInline(G.value.name) }, null, 8, Nt),
|
|
723
733
|
r[5] ||= s("br", null, null, -1),
|
|
724
|
-
s("span", { innerHTML: y(T).mdInline(G.value.detailName) }, null, 8,
|
|
734
|
+
s("span", { innerHTML: y(T).mdInline(G.value.detailName) }, null, 8, Pt),
|
|
725
735
|
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",
|
|
736
|
+
(f(!0), o(n, null, h(G.value.dateLines, (e, t) => (f(), o(n, { key: t }, [t > 0 ? (f(), o("br", Ft)) : a("", !0), s("span", { innerHTML: y(T).mdInline(e) }, null, 8, It)], 64))), 128))
|
|
727
737
|
]),
|
|
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,
|
|
729
|
-
H.value.variants.length > 1 ? (f(), o("div",
|
|
738
|
+
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, Lt), r[7] ||= s("br", null, null, -1)], 64))), 128))]),
|
|
739
|
+
H.value.variants.length > 1 ? (f(), o("div", Rt, [(f(!0), o(n, null, h(H.value.variants, (e, t) => C((f(), o("a", {
|
|
730
740
|
key: t,
|
|
731
741
|
href: "#",
|
|
732
|
-
onClick: w((e) =>
|
|
742
|
+
onClick: w((e) => ne(t), ["prevent"])
|
|
733
743
|
}, [s("img", {
|
|
734
744
|
src: y(k)(t === V.value.variant ? "legacy/ico_item_selected.gif" : "legacy/ico_item.gif"),
|
|
735
745
|
alt: ""
|
|
736
|
-
}, null, 8,
|
|
746
|
+
}, null, 8, Bt)], 8, zt)), [[y(U), { text: y(g)("minisite.item.showDetail") }]])), 128))])) : a("", !0),
|
|
737
747
|
s("div", {
|
|
738
748
|
class: "mwnf-minisite-page__justification",
|
|
739
749
|
innerHTML: y(T).mdInline(G.value.justification)
|
|
740
|
-
}, null, 8,
|
|
741
|
-
|
|
750
|
+
}, null, 8, Vt),
|
|
751
|
+
G.value.sheetId ? (f(), o("div", Ht, [s("a", {
|
|
742
752
|
class: "mwnf-minisite-page__more",
|
|
743
|
-
href: y(O).itemHref?.(G.value.
|
|
753
|
+
href: y(O).itemHref?.(G.value.sheetId),
|
|
744
754
|
target: "_blank"
|
|
745
|
-
}, "> " + v(y(g)("minisite.item.moreInfo")), 9,
|
|
755
|
+
}, "> " + v(y(g)("minisite.item.moreInfo")), 9, Ut)])) : a("", !0)
|
|
746
756
|
])) : a("", !0)])]),
|
|
747
757
|
y(K).active.value ? (f(), i(t, {
|
|
748
758
|
key: 0,
|
|
@@ -757,27 +767,27 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
757
767
|
], 4)) : a("", !0);
|
|
758
768
|
};
|
|
759
769
|
}
|
|
760
|
-
},
|
|
770
|
+
}, Gt = { class: "mwnf-minisite-credits" }, Kt = ["innerHTML"], qt = {
|
|
761
771
|
__name: "Credits",
|
|
762
772
|
setup(e) {
|
|
763
773
|
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",
|
|
774
|
+
return (e, t) => (f(), o("div", Gt, [s("h1", null, v(y(a)), 1), s("div", { innerHTML: c.value }, null, 8, Kt)]));
|
|
765
775
|
}
|
|
766
|
-
},
|
|
776
|
+
}, Jt = { class: "mwnf-minisite-map" }, Yt = { key: 0 }, Xt = ["src"], Zt = {
|
|
767
777
|
__name: "Map",
|
|
768
778
|
setup(e) {
|
|
769
779
|
let { lang: t, settings: i, picture: c } = Y(), l = r(() => {
|
|
770
780
|
let e = i.map;
|
|
771
781
|
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
782
|
});
|
|
773
|
-
return (e, t) => (f(), o("div",
|
|
783
|
+
return (e, t) => (f(), o("div", Jt, [(f(!0), o(n, null, h(l.value, (e, t) => (f(), o(n, { key: e }, [t > 0 ? (f(), o("br", Yt)) : a("", !0), s("img", {
|
|
774
784
|
src: e,
|
|
775
785
|
alt: "",
|
|
776
786
|
width: "800",
|
|
777
787
|
height: "418"
|
|
778
|
-
}, null, 8,
|
|
788
|
+
}, null, 8, Xt)], 64))), 128))]));
|
|
779
789
|
}
|
|
780
|
-
},
|
|
790
|
+
}, Qt = { class: "mwnf-minisite-zoom" }, $t = ["src"], en = {
|
|
781
791
|
__name: "Zoom",
|
|
782
792
|
props: { image: {
|
|
783
793
|
type: String,
|
|
@@ -785,43 +795,43 @@ var Ye = { class: "mwnf-minisite-download" }, Xe = ["src"], Ze = ["src"], Qe = [
|
|
|
785
795
|
} },
|
|
786
796
|
setup(e) {
|
|
787
797
|
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",
|
|
798
|
+
return (e, t) => (f(), o("div", Qt, [c.value ? (f(), o("img", {
|
|
789
799
|
key: 0,
|
|
790
800
|
src: c.value,
|
|
791
801
|
alt: ""
|
|
792
|
-
}, null, 8,
|
|
802
|
+
}, null, 8, $t)) : a("", !0)]));
|
|
793
803
|
}
|
|
794
804
|
};
|
|
795
805
|
//#endregion
|
|
796
806
|
//#region src/minisite/routes.js
|
|
797
|
-
function
|
|
807
|
+
function tn(e) {
|
|
798
808
|
return [
|
|
799
809
|
{
|
|
800
810
|
path: "/",
|
|
801
811
|
name: "home",
|
|
802
|
-
component:
|
|
812
|
+
component: Ge,
|
|
803
813
|
meta: e("home", "collections", "partners", "countries")
|
|
804
814
|
},
|
|
805
815
|
{
|
|
806
816
|
path: "/introduction",
|
|
807
817
|
name: "introduction",
|
|
808
|
-
component:
|
|
809
|
-
meta: e("introduction", ...
|
|
818
|
+
component: _t,
|
|
819
|
+
meta: e("introduction", ...Ne)
|
|
810
820
|
},
|
|
811
821
|
{
|
|
812
822
|
path: "/exhibition/:theme(\\d+)/:page(\\d+)?",
|
|
813
823
|
name: "exhibition",
|
|
814
|
-
component:
|
|
824
|
+
component: Wt,
|
|
815
825
|
props: (e) => ({
|
|
816
826
|
theme: Number(e.params.theme),
|
|
817
827
|
page: Number(e.params.page || 1)
|
|
818
828
|
}),
|
|
819
|
-
meta: e("exhibition", ...
|
|
829
|
+
meta: e("exhibition", ...Ne)
|
|
820
830
|
},
|
|
821
831
|
{
|
|
822
832
|
path: "/credits",
|
|
823
833
|
name: "credits",
|
|
824
|
-
component:
|
|
834
|
+
component: qt,
|
|
825
835
|
meta: {
|
|
826
836
|
...e("credits", "collections"),
|
|
827
837
|
bare: "credits"
|
|
@@ -830,7 +840,7 @@ function Qt(e) {
|
|
|
830
840
|
{
|
|
831
841
|
path: "/map",
|
|
832
842
|
name: "map",
|
|
833
|
-
component:
|
|
843
|
+
component: Zt,
|
|
834
844
|
meta: {
|
|
835
845
|
...e("map"),
|
|
836
846
|
bare: "map"
|
|
@@ -839,7 +849,7 @@ function Qt(e) {
|
|
|
839
849
|
{
|
|
840
850
|
path: "/zoom",
|
|
841
851
|
name: "zoom",
|
|
842
|
-
component:
|
|
852
|
+
component: en,
|
|
843
853
|
props: (e) => ({ image: String(e.query.img ?? "") }),
|
|
844
854
|
meta: {
|
|
845
855
|
...e("zoom", "collections"),
|
|
@@ -848,7 +858,7 @@ function Qt(e) {
|
|
|
848
858
|
}
|
|
849
859
|
];
|
|
850
860
|
}
|
|
851
|
-
function
|
|
861
|
+
function nn(e) {
|
|
852
862
|
return [
|
|
853
863
|
{
|
|
854
864
|
label: "minisite.menu.permanentCollection",
|
|
@@ -881,7 +891,7 @@ function $t(e) {
|
|
|
881
891
|
}
|
|
882
892
|
];
|
|
883
893
|
}
|
|
884
|
-
function
|
|
894
|
+
function rn({ languages: e, parent: t, menu: n = nn(t) }) {
|
|
885
895
|
return {
|
|
886
896
|
languages: e,
|
|
887
897
|
logoHref: k.portal,
|
|
@@ -919,7 +929,7 @@ function en({ languages: e, parent: t, menu: n = $t(t) }) {
|
|
|
919
929
|
copyright: "minisite.footer.copyright"
|
|
920
930
|
};
|
|
921
931
|
}
|
|
922
|
-
function
|
|
932
|
+
function an({ parent: e, ...t }) {
|
|
923
933
|
return {
|
|
924
934
|
parent: e,
|
|
925
935
|
itemHref: (t) => `${e}/#/item/${encodeURIComponent(t)}`,
|
|
@@ -928,4 +938,4 @@ function tn({ parent: e, ...t }) {
|
|
|
928
938
|
};
|
|
929
939
|
}
|
|
930
940
|
//#endregion
|
|
931
|
-
export {
|
|
941
|
+
export { Ne as EXHIBITION_ENTITIES, ge as ISLAMICART_NO_COUNTRY, qt as MinisiteCredits, Ge as MinisiteHome, _t as MinisiteIntroduction, Zt as MinisiteMap, Wt as MinisitePage, pe as MinisiteShell, en as MinisiteZoom, he as PLACEHOLDER_TITLE, J as cleanText, De as curatorLabel, Oe as curatorLink, Me as exhibitionData, Ee as introCaption, nn as islamicartMenu, rn as minisiteNavigation, tn as minisiteRoutes, an as minisiteSettings, ve as pageWithNeighbours, Se as placementCaption, ke as quoteHasItalics, _e as readingOrder, we as sheetItemId, ye as slotsOf, Y as useExhibition, Te as viewPicture, Ce as withFirstView };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.2",
|
|
4
4
|
"description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|