@museumwnf/viewer-layout 3.2.2 → 3.4.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 +167 -12
- package/dist/ItemDetailView-I__hm63H.js +298 -0
- package/dist/SiteShell-4vV2jIzf.js +192 -0
- package/dist/{Theme-Dd8G1RA3.js → Theme-B5J0XRe1.js} +3 -3
- package/dist/{TimelineResultsView-5Cy-OkZY.js → TimelineResultsView-ChkBn27W.js} +489 -485
- package/dist/chrome-DPuPeWzV.js +1141 -0
- package/dist/components.js +1 -1
- package/dist/data-CJlLA-Mf.js +38 -0
- package/dist/data-DTbAYdr2.js +40 -0
- package/dist/dxa.js +619 -502
- package/dist/index.js +6 -6
- package/dist/{themeSpecs-C_uGarTs.js → themeSpecs-B885l456.js} +3 -2
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +1 -1
- package/package.json +8 -2
- package/src/dxa/testing.js +857 -0
- package/src/styles/dxa-exhibition.css +389 -0
- package/src/styles/dxa-gallery.css +589 -0
- package/src/tokens.reference.css +25 -7
- package/dist/ItemDetailView-C-X-LgJU.js +0 -284
- package/dist/PageShell-CbJ9lQoQ.js +0 -961
- package/dist/SiteShell-C3OgZO8p.js +0 -154
- package/dist/data-BfyYB8ff.js +0 -33
- package/dist/data-G8uXeEfE.js +0 -35
package/dist/dxa.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { a as e, i as t, n, r } from "./Theme-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import { A as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
1
|
+
import { a as e, i as t, n, r } from "./Theme-B5J0XRe1.js";
|
|
2
|
+
import { c as i, i as a, n as o, r as s, t as c } from "./chrome-DPuPeWzV.js";
|
|
3
|
+
import { d as l, h as u, m as d, n as f, p, v as m, y as h } from "./TimelineEventList-COjkXEzS.js";
|
|
4
|
+
import { s as g } from "./OnDisplayIn-Dv8i7uvH.js";
|
|
5
|
+
import { a as _, c as v, i as y, n as b, r as x, s as S, t as C } from "./TimelineResultsView-ChkBn27W.js";
|
|
6
|
+
import { t as ee } from "./SiteShell-4vV2jIzf.js";
|
|
7
|
+
import { A as te, C as ne, D as re, E as ie, M as ae, N as oe, O as se, S as ce, T as le, _ as ue, a as de, b as fe, c as pe, d as me, f as he, g as w, h as ge, i as _e, j as ve, k as ye, l as be, m as xe, n as Se, o as Ce, p as we, r as Te, s as Ee, t as De, u as T, v as Oe, w as ke, x as Ae, y as je } from "./data-DTbAYdr2.js";
|
|
8
|
+
import { A as Me, C as Ne, D as Pe, E as Fe, F as Ie, I as Le, L as Re, M as ze, N as Be, O as Ve, P as He, R as Ue, S as We, T as E, _ as Ge, a as Ke, b as qe, c as Je, d as Ye, f as D, g as Xe, h as Ze, i as Qe, j as $e, k as et, l as tt, m as nt, n as rt, o as O, p as it, r as at, s as ot, t as st, u as ct, v as k, w as A, x as j, y as lt } from "./data-CJlLA-Mf.js";
|
|
9
|
+
import { t as ut } from "./ItemDetailView-I__hm63H.js";
|
|
10
|
+
import { n as dt, r as ft, t as pt } from "./themeSpecs-B885l456.js";
|
|
11
|
+
import { Fragment as M, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createSlots as mt, createTextVNode as R, createVNode as z, normalizeClass as ht, normalizeStyle as gt, onBeforeUnmount as _t, onMounted as vt, openBlock as B, ref as V, renderList as H, renderSlot as yt, resolveDynamicComponent as bt, toDisplayString as U, unref as W, vModelText as xt, vShow as St, withCtx as G, withDirectives as K, withModifiers as Ct } from "vue";
|
|
12
|
+
import { I18nText as q, NotFoundView as wt, languageLabels as Tt, loadEntities as J, mwnfLinks as Y, offeredLanguages as Et, renderInline as Dt, sectionMeta as Ot, useDataPackage as kt, useFacets as At, useI18n as X, useKeywordIndex as jt, useSection as Mt, useSiteConfig as Nt, yearBuckets as Z } from "@museumwnf/viewer-core";
|
|
13
|
+
import { RouterLink as Q, useRoute as Pt, useRouter as Ft } from "vue-router";
|
|
13
14
|
//#region src/dxa/PartnerDetail.vue
|
|
14
|
-
var
|
|
15
|
+
var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
15
16
|
__name: "PartnerDetail",
|
|
16
17
|
props: {
|
|
17
18
|
id: {
|
|
@@ -28,14 +29,14 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
setup(e) {
|
|
31
|
-
let t = e, { t: n } =
|
|
32
|
-
return (t,
|
|
32
|
+
let t = e, { t: n } = X(), r = N(() => t.family.labels?.[t.variant] ?? t.family.labels?.partner ?? {});
|
|
33
|
+
return (t, i) => e.family.visible(e.id) ? (B(), P(S, {
|
|
33
34
|
key: 0,
|
|
34
35
|
spec: e.family.spec,
|
|
35
36
|
id: e.id,
|
|
36
37
|
class: "mwnf-dxa-partner-profile"
|
|
37
38
|
}, {
|
|
38
|
-
header:
|
|
39
|
+
header: G(({ languages: e, language: t, select: n }) => [L("div", It, [z(l, {
|
|
39
40
|
languages: e,
|
|
40
41
|
language: t,
|
|
41
42
|
onSelect: n
|
|
@@ -43,22 +44,22 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
43
44
|
"languages",
|
|
44
45
|
"language",
|
|
45
46
|
"onSelect"
|
|
46
|
-
])]),
|
|
47
|
-
"before-sheet":
|
|
47
|
+
])]), z(g)]),
|
|
48
|
+
"before-sheet": G(({ record: t, text: i, dir: a }) => [z(f, {
|
|
48
49
|
variant: "full",
|
|
49
50
|
partner: e.family.view(t, i),
|
|
50
51
|
heading: 1,
|
|
51
52
|
"homepage-label": r.value.homepage ?? "partner.nav.homepage",
|
|
52
53
|
dir: a
|
|
53
54
|
}, {
|
|
54
|
-
actions:
|
|
55
|
+
actions: G(({ partner: e }) => [e.objectsRoute ? (B(), P(h, {
|
|
55
56
|
key: 0,
|
|
56
57
|
class: "mwnf-button",
|
|
57
58
|
to: e.objectsRoute
|
|
58
59
|
}, {
|
|
59
|
-
default:
|
|
60
|
+
default: G(() => [R(U(W(n)(r.value.objects ?? "partner.action.viewObjects")), 1)]),
|
|
60
61
|
_: 1
|
|
61
|
-
}, 8, ["to"])) :
|
|
62
|
+
}, 8, ["to"])) : F("", !0)]),
|
|
62
63
|
_: 1
|
|
63
64
|
}, 8, [
|
|
64
65
|
"partner",
|
|
@@ -66,37 +67,37 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
66
67
|
"dir"
|
|
67
68
|
])]),
|
|
68
69
|
_: 1
|
|
69
|
-
}, 8, ["spec", "id"])) : (
|
|
70
|
+
}, 8, ["spec", "id"])) : (B(), P(W(wt), { key: 1 }));
|
|
70
71
|
}
|
|
71
|
-
},
|
|
72
|
+
}, Lt = {
|
|
72
73
|
__name: "About",
|
|
73
74
|
setup(e) {
|
|
74
75
|
let t = {
|
|
75
76
|
body: "gallery.about.body",
|
|
76
77
|
back: !0
|
|
77
78
|
};
|
|
78
|
-
return (e, n) => (
|
|
79
|
+
return (e, n) => (B(), P(x, {
|
|
79
80
|
spec: t,
|
|
80
81
|
class: "mwnf-dxa-editorial"
|
|
81
82
|
}));
|
|
82
83
|
}
|
|
83
|
-
},
|
|
84
|
+
}, Rt = {
|
|
84
85
|
__name: "Credits",
|
|
85
86
|
props: { bodyKey: {
|
|
86
87
|
type: String,
|
|
87
88
|
required: !0
|
|
88
89
|
} },
|
|
89
90
|
setup(e) {
|
|
90
|
-
let t = e, n =
|
|
91
|
+
let t = e, n = N(() => ({
|
|
91
92
|
body: t.bodyKey,
|
|
92
93
|
back: !0
|
|
93
94
|
}));
|
|
94
|
-
return (e, t) => (
|
|
95
|
+
return (e, t) => (B(), P(x, {
|
|
95
96
|
spec: n.value,
|
|
96
97
|
class: "mwnf-dxa-editorial"
|
|
97
98
|
}, null, 8, ["spec"]));
|
|
98
99
|
}
|
|
99
|
-
},
|
|
100
|
+
}, zt = {
|
|
100
101
|
__name: "SearchHowTo",
|
|
101
102
|
setup(e) {
|
|
102
103
|
let t = {
|
|
@@ -106,22 +107,22 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
106
107
|
to: { name: "collection" }
|
|
107
108
|
}
|
|
108
109
|
};
|
|
109
|
-
return (e, n) => (
|
|
110
|
+
return (e, n) => (B(), P(x, {
|
|
110
111
|
spec: t,
|
|
111
112
|
class: "mwnf-dxa-editorial"
|
|
112
113
|
}));
|
|
113
114
|
}
|
|
114
|
-
},
|
|
115
|
+
}, Bt = { class: "mwnf-dxa-partners" }, Vt = {
|
|
115
116
|
__name: "Partners",
|
|
116
117
|
setup(e) {
|
|
117
118
|
let t = {
|
|
118
|
-
...
|
|
119
|
+
...ce,
|
|
119
120
|
objectsRoute: ke,
|
|
120
121
|
actions: !0,
|
|
121
122
|
emptyLabel: "gallery.partner.noObjectsInGallery"
|
|
122
123
|
};
|
|
123
|
-
return (e, n) => (
|
|
124
|
-
before:
|
|
124
|
+
return (e, n) => (B(), I("div", Bt, [z(y, { spec: t }, {
|
|
125
|
+
before: G(() => [z(g), z(W(q), {
|
|
125
126
|
id: "mwnf-dxa-partners-intro",
|
|
126
127
|
class: "mwnf-prose",
|
|
127
128
|
dir: "auto",
|
|
@@ -130,23 +131,23 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
130
131
|
_: 1
|
|
131
132
|
})]));
|
|
132
133
|
}
|
|
133
|
-
},
|
|
134
|
+
}, Ht = ["onSubmit"], Ut = ["placeholder"], Wt = {
|
|
134
135
|
type: "submit",
|
|
135
136
|
class: "mwnf-dxa-refine-search-submit"
|
|
136
|
-
},
|
|
137
|
+
}, Gt = { class: "mwnf-dxa-how-to" }, Kt = { class: "mwnf-dxa-no-results" }, qt = {
|
|
137
138
|
__name: "SearchResults",
|
|
138
139
|
setup(e) {
|
|
139
|
-
let t =
|
|
140
|
+
let t = jt("items", {
|
|
140
141
|
grammar: "boolean",
|
|
141
142
|
haystack: me
|
|
142
|
-
}), n =
|
|
143
|
-
|
|
143
|
+
}), n = V(!1);
|
|
144
|
+
ue().then(() => {
|
|
144
145
|
n.value = !0;
|
|
145
146
|
});
|
|
146
147
|
function r(e) {
|
|
147
148
|
return !e || e === "all-objects";
|
|
148
149
|
}
|
|
149
|
-
let i =
|
|
150
|
+
let i = V(""), a = N(() => ({
|
|
150
151
|
entity: "items",
|
|
151
152
|
keys: ["q"],
|
|
152
153
|
sort: !1,
|
|
@@ -155,7 +156,7 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
155
156
|
variant: "grid",
|
|
156
157
|
recordRoute: "item",
|
|
157
158
|
actionLabel: "catalogue.results.seeDatabaseEntry",
|
|
158
|
-
record: (e, { t }) =>
|
|
159
|
+
record: (e, { t }) => se(e, t),
|
|
159
160
|
pagination: { jump: !0 },
|
|
160
161
|
summary: ({ filters: e, pageInfo: t, t: n, total: i }) => [{
|
|
161
162
|
label: n("core.section.database"),
|
|
@@ -165,58 +166,58 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
165
166
|
value: `${n("catalogue.results.outOf")} ${i} ${n("catalogue.results.objects")}`
|
|
166
167
|
}]
|
|
167
168
|
}));
|
|
168
|
-
return (e, t) => (
|
|
169
|
+
return (e, t) => (B(), P(v, {
|
|
169
170
|
spec: a.value,
|
|
170
171
|
class: "mwnf-dxa-search-results"
|
|
171
172
|
}, {
|
|
172
|
-
before:
|
|
173
|
-
filters:
|
|
173
|
+
before: G(() => [z(g)]),
|
|
174
|
+
filters: G(({ apply: n }) => [L("form", {
|
|
174
175
|
class: "mwnf-dxa-refine-search",
|
|
175
|
-
onSubmit:
|
|
176
|
-
}, [
|
|
176
|
+
onSubmit: Ct((e) => n({ q: i.value || "all-objects" }), ["prevent"])
|
|
177
|
+
}, [K(L("input", {
|
|
177
178
|
"onUpdate:modelValue": t[0] ||= (e) => i.value = e,
|
|
178
179
|
type: "text",
|
|
179
180
|
class: "mwnf-dxa-refine-search-input",
|
|
180
181
|
placeholder: e.$t("catalogue.search.keywordPlaceholder")
|
|
181
|
-
}, null, 8,
|
|
182
|
-
default:
|
|
182
|
+
}, null, 8, Ut), [[xt, i.value]]), L("button", Wt, U(e.$t("catalogue.search.submit")), 1)], 40, Ht), L("p", Gt, [z(W(Q), { to: { name: "search-how-to" } }, {
|
|
183
|
+
default: G(() => [R(U(e.$t("catalogue.search.howTo")) + " ›", 1)]),
|
|
183
184
|
_: 1
|
|
184
185
|
})])]),
|
|
185
|
-
empty:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
default:
|
|
186
|
+
empty: G(() => [L("p", Kt, [
|
|
187
|
+
R(U(e.$t("catalogue.results.noResultsSearch")) + " ", 1),
|
|
188
|
+
z(W(Q), { to: { name: "search-how-to" } }, {
|
|
189
|
+
default: G(() => [R(U(e.$t("catalogue.search.howTo")), 1)]),
|
|
189
190
|
_: 1
|
|
190
191
|
}),
|
|
191
|
-
t[1] ||=
|
|
192
|
-
|
|
193
|
-
default:
|
|
192
|
+
t[1] ||= L("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
|
|
193
|
+
z(W(Q), { to: { name: "collection" } }, {
|
|
194
|
+
default: G(() => [R(U(e.$t("core.section.collection")), 1)]),
|
|
194
195
|
_: 1
|
|
195
196
|
})
|
|
196
197
|
])]),
|
|
197
198
|
_: 1
|
|
198
199
|
}, 8, ["spec"]));
|
|
199
200
|
}
|
|
200
|
-
},
|
|
201
|
+
}, Jt = {
|
|
201
202
|
__name: "TimelineResults",
|
|
202
203
|
setup(e) {
|
|
203
|
-
return (e, t) => (
|
|
204
|
-
spec:
|
|
204
|
+
return (e, t) => (B(), P(C, {
|
|
205
|
+
spec: W(te),
|
|
205
206
|
class: "mwnf-dxa-timeline-results"
|
|
206
207
|
}, {
|
|
207
|
-
before:
|
|
208
|
+
before: G(() => [z(g)]),
|
|
208
209
|
_: 1
|
|
209
210
|
}, 8, ["spec"]));
|
|
210
211
|
}
|
|
211
|
-
},
|
|
212
|
+
}, Yt = { class: "mwnf-dxa-back-to-events" }, Xt = {
|
|
212
213
|
__name: "TimelineGallery",
|
|
213
214
|
setup(e) {
|
|
214
|
-
return (e, t) => (
|
|
215
|
-
spec:
|
|
215
|
+
return (e, t) => (B(), P(v, {
|
|
216
|
+
spec: W(ye),
|
|
216
217
|
class: "mwnf-dxa-timeline-gallery"
|
|
217
218
|
}, {
|
|
218
|
-
before:
|
|
219
|
-
actions:
|
|
219
|
+
before: G(() => [z(g)]),
|
|
220
|
+
actions: G(({ filters: t, pageInfo: n, goToPage: r }) => [L("p", Yt, [z(W(Q), { to: {
|
|
220
221
|
name: "timeline-results",
|
|
221
222
|
query: {
|
|
222
223
|
country: t.country,
|
|
@@ -224,9 +225,9 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
224
225
|
end: t.end
|
|
225
226
|
}
|
|
226
227
|
} }, {
|
|
227
|
-
default:
|
|
228
|
+
default: G(() => [R(" ➤ " + U(e.$t("timeline.nav.backToEvents")), 1)]),
|
|
228
229
|
_: 1
|
|
229
|
-
}, 8, ["to"])]),
|
|
230
|
+
}, 8, ["to"])]), z(u, {
|
|
230
231
|
class: "mwnf-dxa-pages",
|
|
231
232
|
"page-info": n,
|
|
232
233
|
jump: "",
|
|
@@ -235,83 +236,83 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
235
236
|
_: 1
|
|
236
237
|
}, 8, ["spec"]));
|
|
237
238
|
}
|
|
238
|
-
},
|
|
239
|
+
}, Zt = { class: "mwnf-dxa-date-wrapper" }, Qt = {
|
|
239
240
|
key: 0,
|
|
240
241
|
class: "mwnf-dxa-timeline-link-box"
|
|
241
|
-
},
|
|
242
|
+
}, $t = { class: "mwnf-dxa-options-label" }, en = {
|
|
242
243
|
__name: "CollectionResults",
|
|
243
244
|
setup(e) {
|
|
244
|
-
let t =
|
|
245
|
-
function
|
|
245
|
+
let t = Ft(), { t: n } = X(), r = oe(), i = Ce.keys, a = (e) => i.filter((t) => e[t]).length <= 1;
|
|
246
|
+
function o() {
|
|
246
247
|
t.push({ name: "collection" });
|
|
247
248
|
}
|
|
248
|
-
let
|
|
249
|
-
function
|
|
249
|
+
let s = N(() => new Set((ve.value ?? []).map((e) => e.country_id)));
|
|
250
|
+
function c(e) {
|
|
250
251
|
let t = Ee(e.country);
|
|
251
|
-
return !!(t &&
|
|
252
|
+
return !!(t && s.value.has(t));
|
|
252
253
|
}
|
|
253
|
-
return (e, t) => (
|
|
254
|
-
spec:
|
|
254
|
+
return (e, t) => (B(), P(v, {
|
|
255
|
+
spec: W(Ce),
|
|
255
256
|
class: "mwnf-dxa-collection-results"
|
|
256
257
|
}, {
|
|
257
|
-
before:
|
|
258
|
-
actions:
|
|
258
|
+
before: G(() => [z(g)]),
|
|
259
|
+
actions: G(({ pageInfo: e, goToPage: t }) => [z(u, {
|
|
259
260
|
class: "mwnf-dxa-pages",
|
|
260
261
|
"page-info": e,
|
|
261
262
|
jump: "",
|
|
262
263
|
onNavigate: t
|
|
263
264
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
264
|
-
empty:
|
|
265
|
+
empty: G(() => [R(U(e.$t("catalogue.results.noResults")) + " ", 1), L("button", {
|
|
265
266
|
class: "mwnf-dxa-linkish",
|
|
266
|
-
onClick: t[0] ||= (e) =>
|
|
267
|
-
},
|
|
268
|
-
aside:
|
|
267
|
+
onClick: t[0] ||= (e) => o()
|
|
268
|
+
}, U(e.$t("catalogue.results.resetFilters")), 1)]),
|
|
269
|
+
aside: G(({ filters: i, apply: s, matching: l, options: u }) => [z(p, {
|
|
269
270
|
mode: "immediate",
|
|
270
|
-
title:
|
|
271
|
+
title: a(i) ? e.$t("catalogue.facet.filterBy") : e.$t("catalogue.facet.filterFurtherBy"),
|
|
271
272
|
"reset-label": e.$t("catalogue.results.resetFilters"),
|
|
272
|
-
disabled:
|
|
273
|
-
onReset: t[1] ||= (e) =>
|
|
273
|
+
disabled: l.length === 0,
|
|
274
|
+
onReset: t[1] ||= (e) => o()
|
|
274
275
|
}, {
|
|
275
|
-
default:
|
|
276
|
-
|
|
276
|
+
default: G(() => [
|
|
277
|
+
z(d, {
|
|
277
278
|
"model-value": i.country,
|
|
278
|
-
options:
|
|
279
|
+
options: u.country,
|
|
279
280
|
placeholder: e.$t("catalogue.facet.selectCountry"),
|
|
280
|
-
"onUpdate:modelValue": (e) =>
|
|
281
|
+
"onUpdate:modelValue": (e) => s({ country: e })
|
|
281
282
|
}, null, 8, [
|
|
282
283
|
"model-value",
|
|
283
284
|
"options",
|
|
284
285
|
"placeholder",
|
|
285
286
|
"onUpdate:modelValue"
|
|
286
287
|
]),
|
|
287
|
-
(
|
|
288
|
+
(B(!0), I(M, null, H(W(Se), (e) => (B(), P(d, {
|
|
288
289
|
key: e,
|
|
289
290
|
"model-value": i[e],
|
|
290
|
-
options:
|
|
291
|
-
placeholder:
|
|
291
|
+
options: u[e],
|
|
292
|
+
placeholder: W(r)[e],
|
|
292
293
|
"hide-empty": "",
|
|
293
|
-
"onUpdate:modelValue": (t) =>
|
|
294
|
+
"onUpdate:modelValue": (t) => s({ [e]: t })
|
|
294
295
|
}, null, 8, [
|
|
295
296
|
"model-value",
|
|
296
297
|
"options",
|
|
297
298
|
"placeholder",
|
|
298
299
|
"onUpdate:modelValue"
|
|
299
300
|
]))), 128)),
|
|
300
|
-
|
|
301
|
+
L("div", Zt, [z(d, {
|
|
301
302
|
"model-value": i.from,
|
|
302
|
-
options:
|
|
303
|
+
options: W(Z)(l, W(n)),
|
|
303
304
|
placeholder: e.$t("catalogue.facet.startDate"),
|
|
304
|
-
"onUpdate:modelValue": (e) =>
|
|
305
|
+
"onUpdate:modelValue": (e) => s({ from: e })
|
|
305
306
|
}, null, 8, [
|
|
306
307
|
"model-value",
|
|
307
308
|
"options",
|
|
308
309
|
"placeholder",
|
|
309
310
|
"onUpdate:modelValue"
|
|
310
|
-
]),
|
|
311
|
+
]), z(d, {
|
|
311
312
|
"model-value": i.to,
|
|
312
|
-
options:
|
|
313
|
+
options: W(Z)(l, W(n)),
|
|
313
314
|
placeholder: e.$t("catalogue.facet.endDate"),
|
|
314
|
-
"onUpdate:modelValue": (e) =>
|
|
315
|
+
"onUpdate:modelValue": (e) => s({ to: e })
|
|
315
316
|
}, null, 8, [
|
|
316
317
|
"model-value",
|
|
317
318
|
"options",
|
|
@@ -324,7 +325,7 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
324
325
|
"title",
|
|
325
326
|
"reset-label",
|
|
326
327
|
"disabled"
|
|
327
|
-
]),
|
|
328
|
+
]), c(i) ? (B(), I("div", Qt, [L("div", $t, U(e.$t("catalogue.results.timelineForSearch")), 1), L("p", null, [t[2] ||= R(" ➤ ", -1), z(W(Q), { to: {
|
|
328
329
|
name: "timeline-results",
|
|
329
330
|
query: {
|
|
330
331
|
country: i.country,
|
|
@@ -332,16 +333,16 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
332
333
|
end: i.to
|
|
333
334
|
}
|
|
334
335
|
} }, {
|
|
335
|
-
default:
|
|
336
|
+
default: G(() => [R(U(e.$t("core.section.timeline")) + " | " + U(W(w)("countries", W(Ee)(i.country))), 1)]),
|
|
336
337
|
_: 2
|
|
337
|
-
}, 1032, ["to"])])])) :
|
|
338
|
+
}, 1032, ["to"])])])) : F("", !0)]),
|
|
338
339
|
_: 1
|
|
339
340
|
}, 8, ["spec"]));
|
|
340
341
|
}
|
|
341
|
-
},
|
|
342
|
+
}, tn = { class: "mwnf-dxa-collection-search" }, nn = { class: "mwnf-dxa-dropdown-label" }, rn = {
|
|
342
343
|
__name: "CollectionSearch",
|
|
343
344
|
setup(e) {
|
|
344
|
-
let t =
|
|
345
|
+
let t = At(ge, De), n = N(() => Se.filter((e) => (t.value[e] ?? []).length > 0)), r = N(() => ({
|
|
345
346
|
mode: "facets",
|
|
346
347
|
target: "collection-results",
|
|
347
348
|
dates: "buckets",
|
|
@@ -355,50 +356,50 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
355
356
|
options: t.value[e]
|
|
356
357
|
}))]
|
|
357
358
|
}));
|
|
358
|
-
return (e, t) => (
|
|
359
|
-
before:
|
|
359
|
+
return (e, t) => (B(), I("div", tn, [z(b, { spec: r.value }, {
|
|
360
|
+
before: G(() => [L("div", nn, U(e.$t("catalogue.facet.filterBy")), 1)]),
|
|
360
361
|
_: 1
|
|
361
|
-
}, 8, ["spec"]),
|
|
362
|
+
}, 8, ["spec"]), z(W(q), {
|
|
362
363
|
id: "mwnf-dxa-collection-search-description",
|
|
363
364
|
class: "mwnf-dxa-description mwnf-prose",
|
|
364
365
|
dir: "auto",
|
|
365
366
|
keypath: "gallery.collection.intro"
|
|
366
367
|
})]));
|
|
367
368
|
}
|
|
368
|
-
},
|
|
369
|
+
}, an = {
|
|
369
370
|
key: 0,
|
|
370
371
|
class: "mwnf-dxa-partner-objects"
|
|
371
|
-
},
|
|
372
|
+
}, on = { class: "mwnf-dxa-profile-link-container" }, sn = {
|
|
372
373
|
__name: "PartnerObjects",
|
|
373
374
|
setup(e) {
|
|
374
|
-
let t =
|
|
375
|
-
...
|
|
375
|
+
let t = Pt(), n = N(() => je.value.get(t.params.id) ?? null), r = N(() => ({
|
|
376
|
+
...ne,
|
|
376
377
|
scope: (e) => e.partner_id === t.params.id
|
|
377
|
-
})), i =
|
|
378
|
-
return (e, t) => n.value ? (
|
|
379
|
-
before:
|
|
378
|
+
})), i = N(() => n.value ? fe.view(n.value, ae("partners", n.value.id, pe)) : null);
|
|
379
|
+
return (e, t) => n.value ? (B(), I("div", an, [z(v, { spec: r.value }, {
|
|
380
|
+
before: G(() => [z(g), z(f, {
|
|
380
381
|
class: "mwnf-dxa-partner-objects-header",
|
|
381
382
|
variant: "summary",
|
|
382
383
|
heading: 1,
|
|
383
384
|
partner: i.value
|
|
384
385
|
}, null, 8, ["partner"])]),
|
|
385
|
-
actions:
|
|
386
|
+
actions: G(({ pageInfo: e, goToPage: t }) => [z(u, {
|
|
386
387
|
class: "mwnf-dxa-pages",
|
|
387
388
|
"page-info": e,
|
|
388
389
|
jump: "",
|
|
389
390
|
onNavigate: t
|
|
390
391
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
391
|
-
after:
|
|
392
|
+
after: G(() => [L("div", on, [z(W(Q), {
|
|
392
393
|
class: "mwnf-dxa-profile-link",
|
|
393
|
-
to:
|
|
394
|
+
to: W(le)(n.value)
|
|
394
395
|
}, {
|
|
395
|
-
default:
|
|
396
|
+
default: G(() => [R("➤ " + U(e.$t("partner.action.partnerProfile")), 1)]),
|
|
396
397
|
_: 1
|
|
397
398
|
}, 8, ["to"])])]),
|
|
398
399
|
_: 1
|
|
399
|
-
}, 8, ["spec"])])) :
|
|
400
|
+
}, 8, ["spec"])])) : F("", !0);
|
|
400
401
|
}
|
|
401
|
-
},
|
|
402
|
+
}, cn = {
|
|
402
403
|
__name: "SearchHowTo",
|
|
403
404
|
setup(e) {
|
|
404
405
|
let t = {
|
|
@@ -408,12 +409,12 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
408
409
|
to: { name: "collection" }
|
|
409
410
|
}
|
|
410
411
|
};
|
|
411
|
-
return (e, n) => (
|
|
412
|
+
return (e, n) => (B(), P(x, {
|
|
412
413
|
spec: t,
|
|
413
414
|
class: "mwnf-dxa-editorial"
|
|
414
415
|
}));
|
|
415
416
|
}
|
|
416
|
-
},
|
|
417
|
+
}, ln = { class: "mwnf-dxa-partners" }, un = { class: "mwnf-dxa-partners-options" }, dn = {
|
|
417
418
|
__name: "Partners",
|
|
418
419
|
setup(e) {
|
|
419
420
|
let t = {
|
|
@@ -422,8 +423,8 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
422
423
|
actions: !0,
|
|
423
424
|
emptyLabel: "exhibition.partner.noObjectsInExhibition"
|
|
424
425
|
};
|
|
425
|
-
return (e, n) => (
|
|
426
|
-
before:
|
|
426
|
+
return (e, n) => (B(), I("div", ln, [z(y, { spec: t }, {
|
|
427
|
+
before: G(() => [L("div", un, [z(g)]), z(W(q), {
|
|
427
428
|
id: "mwnf-dxa-partners-intro",
|
|
428
429
|
class: "mwnf-prose",
|
|
429
430
|
dir: "auto",
|
|
@@ -432,26 +433,26 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
432
433
|
_: 1
|
|
433
434
|
})]));
|
|
434
435
|
}
|
|
435
|
-
},
|
|
436
|
+
}, fn = ["onSubmit"], pn = ["placeholder"], mn = {
|
|
436
437
|
type: "submit",
|
|
437
438
|
class: "mwnf-dxa-refine-search-submit"
|
|
438
|
-
},
|
|
439
|
+
}, hn = { class: "mwnf-dxa-how-to" }, gn = { class: "mwnf-dxa-no-results" }, _n = {
|
|
439
440
|
__name: "SearchResults",
|
|
440
441
|
setup(e) {
|
|
441
|
-
let t =
|
|
442
|
+
let t = jt("items", {
|
|
442
443
|
grammar: "boolean",
|
|
443
444
|
haystack: Ge
|
|
444
|
-
}), n =
|
|
445
|
+
}), n = V(!1);
|
|
445
446
|
We().then(() => {
|
|
446
447
|
n.value = !0;
|
|
447
448
|
});
|
|
448
449
|
function r(e) {
|
|
449
450
|
return !e || e === "all-objects";
|
|
450
451
|
}
|
|
451
|
-
let i =
|
|
452
|
+
let i = V(""), a = N(() => ({
|
|
452
453
|
entity: "items",
|
|
453
454
|
keys: ["q"],
|
|
454
|
-
scope: (e) =>
|
|
455
|
+
scope: (e) => k.value.has(e.id),
|
|
455
456
|
sort: !1,
|
|
456
457
|
narrow: (e, i) => {
|
|
457
458
|
if (!n.value) return [];
|
|
@@ -463,148 +464,148 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
463
464
|
variant: "grid",
|
|
464
465
|
recordRoute: "item",
|
|
465
466
|
actionLabel: "catalogue.results.seeDatabaseEntry",
|
|
466
|
-
record: (e, { t }) =>
|
|
467
|
+
record: (e, { t }) => $e(e, t),
|
|
467
468
|
pagination: { jump: !0 },
|
|
468
469
|
summary: ({ filters: e, pageInfo: t, t: n }) => [{
|
|
469
470
|
label: n("core.section.database"),
|
|
470
471
|
value: r(e.q) ? n("catalogue.results.allObjects") : `“${e.q}”`
|
|
471
472
|
}, {
|
|
472
473
|
count: t.total,
|
|
473
|
-
value: `${n("catalogue.results.outOf")} ${
|
|
474
|
+
value: `${n("catalogue.results.outOf")} ${k.value.size} ${n("catalogue.results.objects")}`
|
|
474
475
|
}]
|
|
475
476
|
}));
|
|
476
|
-
return (e, t) => (
|
|
477
|
+
return (e, t) => (B(), P(v, {
|
|
477
478
|
spec: a.value,
|
|
478
479
|
class: "mwnf-dxa-search-results"
|
|
479
480
|
}, {
|
|
480
|
-
before:
|
|
481
|
-
filters:
|
|
481
|
+
before: G(() => [z(g)]),
|
|
482
|
+
filters: G(({ apply: n }) => [L("form", {
|
|
482
483
|
class: "mwnf-dxa-refine-search",
|
|
483
|
-
onSubmit:
|
|
484
|
-
}, [
|
|
484
|
+
onSubmit: Ct((e) => n({ q: i.value || "all-objects" }), ["prevent"])
|
|
485
|
+
}, [K(L("input", {
|
|
485
486
|
"onUpdate:modelValue": t[0] ||= (e) => i.value = e,
|
|
486
487
|
type: "text",
|
|
487
488
|
class: "mwnf-dxa-refine-search-input",
|
|
488
489
|
placeholder: e.$t("catalogue.search.keywordPlaceholder")
|
|
489
|
-
}, null, 8,
|
|
490
|
-
default:
|
|
490
|
+
}, null, 8, pn), [[xt, i.value]]), L("button", mn, U(e.$t("catalogue.search.submit")), 1)], 40, fn), L("p", hn, [z(W(Q), { to: { name: "search-how-to" } }, {
|
|
491
|
+
default: G(() => [R(U(e.$t("catalogue.search.howTo")) + " ›", 1)]),
|
|
491
492
|
_: 1
|
|
492
493
|
})])]),
|
|
493
|
-
empty:
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
default:
|
|
494
|
+
empty: G(() => [L("p", gn, [
|
|
495
|
+
R(U(e.$t("catalogue.results.noResultsSearch")) + " ", 1),
|
|
496
|
+
z(W(Q), { to: { name: "search-how-to" } }, {
|
|
497
|
+
default: G(() => [R(U(e.$t("catalogue.search.howTo")), 1)]),
|
|
497
498
|
_: 1
|
|
498
499
|
}),
|
|
499
|
-
t[1] ||=
|
|
500
|
-
|
|
501
|
-
default:
|
|
500
|
+
t[1] ||= L("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
|
|
501
|
+
z(W(Q), { to: { name: "collection" } }, {
|
|
502
|
+
default: G(() => [R(U(e.$t("core.section.collection")), 1)]),
|
|
502
503
|
_: 1
|
|
503
504
|
})
|
|
504
505
|
])]),
|
|
505
506
|
_: 1
|
|
506
507
|
}, 8, ["spec"]));
|
|
507
508
|
}
|
|
508
|
-
},
|
|
509
|
+
}, vn = {
|
|
509
510
|
__name: "TimelineResults",
|
|
510
511
|
setup(e) {
|
|
511
|
-
return (e, t) => (
|
|
512
|
-
spec:
|
|
512
|
+
return (e, t) => (B(), P(C, {
|
|
513
|
+
spec: W(Be),
|
|
513
514
|
class: "mwnf-dxa-timeline-results"
|
|
514
515
|
}, {
|
|
515
|
-
before:
|
|
516
|
+
before: G(() => [z(g)]),
|
|
516
517
|
_: 1
|
|
517
518
|
}, 8, ["spec"]));
|
|
518
519
|
}
|
|
519
|
-
},
|
|
520
|
+
}, yn = {
|
|
520
521
|
__name: "TimelineGallery",
|
|
521
522
|
setup(e) {
|
|
522
|
-
return (e, t) => (
|
|
523
|
-
spec:
|
|
523
|
+
return (e, t) => (B(), P(v, {
|
|
524
|
+
spec: W(ze),
|
|
524
525
|
class: "mwnf-dxa-timeline-gallery"
|
|
525
526
|
}, {
|
|
526
|
-
before:
|
|
527
|
+
before: G(() => [z(g)]),
|
|
527
528
|
_: 1
|
|
528
529
|
}, 8, ["spec"]));
|
|
529
530
|
}
|
|
530
|
-
},
|
|
531
|
+
}, bn = { class: "mwnf-dxa-date-wrapper" }, xn = {
|
|
531
532
|
key: 0,
|
|
532
533
|
class: "mwnf-dxa-timeline-link-box"
|
|
533
|
-
},
|
|
534
|
+
}, Sn = { class: "mwnf-dxa-options-label" }, Cn = {
|
|
534
535
|
__name: "CollectionResults",
|
|
535
536
|
setup(e) {
|
|
536
|
-
let t =
|
|
537
|
-
function
|
|
537
|
+
let t = Ft(), { t: n } = X(), r = Le(), i = ot.keys, a = (e) => i.filter((t) => e[t]).length <= 1;
|
|
538
|
+
function o() {
|
|
538
539
|
t.push({ name: "collection" });
|
|
539
540
|
}
|
|
540
|
-
let
|
|
541
|
-
function
|
|
541
|
+
let s = N(() => new Set((He.value ?? []).map((e) => e.country_id)));
|
|
542
|
+
function c(e) {
|
|
542
543
|
if (!Xe.value) return !1;
|
|
543
|
-
let t =
|
|
544
|
-
return !!(t &&
|
|
544
|
+
let t = tt(e.country);
|
|
545
|
+
return !!(t && s.value.has(t));
|
|
545
546
|
}
|
|
546
|
-
return (e, t) => (
|
|
547
|
-
spec:
|
|
547
|
+
return (e, t) => (B(), P(v, {
|
|
548
|
+
spec: W(ot),
|
|
548
549
|
class: "mwnf-dxa-collection-results"
|
|
549
550
|
}, {
|
|
550
|
-
before:
|
|
551
|
-
actions:
|
|
551
|
+
before: G(() => [z(g)]),
|
|
552
|
+
actions: G(({ pageInfo: e, goToPage: t }) => [z(u, {
|
|
552
553
|
class: "mwnf-dxa-pages",
|
|
553
554
|
"page-info": e,
|
|
554
555
|
jump: "",
|
|
555
556
|
onNavigate: t
|
|
556
557
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
557
|
-
empty:
|
|
558
|
+
empty: G(() => [R(U(e.$t("catalogue.results.noResults")) + " ", 1), L("button", {
|
|
558
559
|
class: "mwnf-dxa-linkish",
|
|
559
|
-
onClick: t[0] ||= (e) =>
|
|
560
|
-
},
|
|
561
|
-
aside:
|
|
560
|
+
onClick: t[0] ||= (e) => o()
|
|
561
|
+
}, U(e.$t("catalogue.results.resetFilters")), 1)]),
|
|
562
|
+
aside: G(({ filters: i, apply: s, matching: l, options: u }) => [z(p, {
|
|
562
563
|
mode: "immediate",
|
|
563
|
-
title:
|
|
564
|
+
title: a(i) ? e.$t("catalogue.facet.filterBy") : e.$t("catalogue.facet.filterFurtherBy"),
|
|
564
565
|
"reset-label": e.$t("catalogue.results.resetFilters"),
|
|
565
|
-
disabled:
|
|
566
|
-
onReset: t[1] ||= (e) =>
|
|
566
|
+
disabled: l.length === 0,
|
|
567
|
+
onReset: t[1] ||= (e) => o()
|
|
567
568
|
}, {
|
|
568
|
-
default:
|
|
569
|
-
|
|
569
|
+
default: G(() => [
|
|
570
|
+
z(d, {
|
|
570
571
|
"model-value": i.country,
|
|
571
|
-
options:
|
|
572
|
+
options: u.country,
|
|
572
573
|
placeholder: e.$t("catalogue.facet.selectCountry"),
|
|
573
|
-
"onUpdate:modelValue": (e) =>
|
|
574
|
+
"onUpdate:modelValue": (e) => s({ country: e })
|
|
574
575
|
}, null, 8, [
|
|
575
576
|
"model-value",
|
|
576
577
|
"options",
|
|
577
578
|
"placeholder",
|
|
578
579
|
"onUpdate:modelValue"
|
|
579
580
|
]),
|
|
580
|
-
(
|
|
581
|
+
(B(!0), I(M, null, H(W(rt), (e) => (B(), P(d, {
|
|
581
582
|
key: e,
|
|
582
583
|
"model-value": i[e],
|
|
583
|
-
options:
|
|
584
|
-
placeholder:
|
|
584
|
+
options: u[e],
|
|
585
|
+
placeholder: W(r)[e],
|
|
585
586
|
"hide-empty": "",
|
|
586
|
-
"onUpdate:modelValue": (t) =>
|
|
587
|
+
"onUpdate:modelValue": (t) => s({ [e]: t })
|
|
587
588
|
}, null, 8, [
|
|
588
589
|
"model-value",
|
|
589
590
|
"options",
|
|
590
591
|
"placeholder",
|
|
591
592
|
"onUpdate:modelValue"
|
|
592
593
|
]))), 128)),
|
|
593
|
-
|
|
594
|
+
L("div", bn, [z(d, {
|
|
594
595
|
"model-value": i.from,
|
|
595
|
-
options:
|
|
596
|
+
options: W(Z)(l, W(n)),
|
|
596
597
|
placeholder: e.$t("catalogue.facet.startDate"),
|
|
597
|
-
"onUpdate:modelValue": (e) =>
|
|
598
|
+
"onUpdate:modelValue": (e) => s({ from: e })
|
|
598
599
|
}, null, 8, [
|
|
599
600
|
"model-value",
|
|
600
601
|
"options",
|
|
601
602
|
"placeholder",
|
|
602
603
|
"onUpdate:modelValue"
|
|
603
|
-
]),
|
|
604
|
+
]), z(d, {
|
|
604
605
|
"model-value": i.to,
|
|
605
|
-
options:
|
|
606
|
+
options: W(Z)(l, W(n)),
|
|
606
607
|
placeholder: e.$t("catalogue.facet.endDate"),
|
|
607
|
-
"onUpdate:modelValue": (e) =>
|
|
608
|
+
"onUpdate:modelValue": (e) => s({ to: e })
|
|
608
609
|
}, null, 8, [
|
|
609
610
|
"model-value",
|
|
610
611
|
"options",
|
|
@@ -617,24 +618,24 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
617
618
|
"title",
|
|
618
619
|
"reset-label",
|
|
619
620
|
"disabled"
|
|
620
|
-
]),
|
|
621
|
+
]), c(i) ? (B(), I("div", xn, [L("div", Sn, U(e.$t("catalogue.results.timelineForSearch")), 1), L("p", null, [t[2] ||= R(" ➤ ", -1), z(W(Q), { to: {
|
|
621
622
|
name: "timeline-results",
|
|
622
623
|
query: {
|
|
623
|
-
country:
|
|
624
|
+
country: W(tt)(i.country),
|
|
624
625
|
begin: i.from,
|
|
625
626
|
end: i.to
|
|
626
627
|
}
|
|
627
628
|
} }, {
|
|
628
|
-
default:
|
|
629
|
+
default: G(() => [R(U(e.$t("core.section.timeline")) + " | " + U(W(j)("countries", W(tt)(i.country))), 1)]),
|
|
629
630
|
_: 2
|
|
630
|
-
}, 1032, ["to"])])])) :
|
|
631
|
+
}, 1032, ["to"])])])) : F("", !0)]),
|
|
631
632
|
_: 1
|
|
632
633
|
}, 8, ["spec"]));
|
|
633
634
|
}
|
|
634
|
-
},
|
|
635
|
+
}, wn = { class: "mwnf-dxa-collection-search" }, Tn = {
|
|
635
636
|
__name: "CollectionSearch",
|
|
636
637
|
setup(e) {
|
|
637
|
-
let t =
|
|
638
|
+
let t = At(qe, st), n = N(() => rt.filter((e) => (t.value[e] ?? []).length > 0)), r = N(() => ({
|
|
638
639
|
mode: "facets",
|
|
639
640
|
target: "collection-results",
|
|
640
641
|
dates: "buckets",
|
|
@@ -645,12 +646,12 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
645
646
|
options: t.value.country
|
|
646
647
|
}, ...n.value.map((e) => ({
|
|
647
648
|
key: e,
|
|
648
|
-
label:
|
|
649
|
+
label: at[e],
|
|
649
650
|
options: t.value[e]
|
|
650
651
|
}))]
|
|
651
652
|
}));
|
|
652
|
-
return (e, t) => (
|
|
653
|
-
intro:
|
|
653
|
+
return (e, t) => (B(), I("div", wn, [z(b, { spec: r.value }, {
|
|
654
|
+
intro: G(() => [z(W(q), {
|
|
654
655
|
id: "mwnf-dxa-collection-search-description",
|
|
655
656
|
class: "mwnf-dxa-description mwnf-prose",
|
|
656
657
|
dir: "auto",
|
|
@@ -659,7 +660,7 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
659
660
|
_: 1
|
|
660
661
|
}, 8, ["spec"])]));
|
|
661
662
|
}
|
|
662
|
-
},
|
|
663
|
+
}, En = { class: "mwnf-dxa-profile-link-container" }, Dn = {
|
|
663
664
|
__name: "PartnerObjects",
|
|
664
665
|
props: {
|
|
665
666
|
variant: {
|
|
@@ -672,7 +673,7 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
672
673
|
}
|
|
673
674
|
},
|
|
674
675
|
setup(e) {
|
|
675
|
-
let t = e, n =
|
|
676
|
+
let t = e, n = N(() => t.variant === "institution"), r = Pt(), i = N(() => Re(r.params.id)), a = N(() => i.value ? E.view(i.value, Ie("partners", i.value.id, Ye)) : null), o = N(() => ({
|
|
676
677
|
entity: "items",
|
|
677
678
|
scope: (e) => e.partner_id === i.value?.id,
|
|
678
679
|
sort: { undated: "first" },
|
|
@@ -681,48 +682,48 @@ var kt = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
681
682
|
recordRoute: "item",
|
|
682
683
|
actionLabel: "catalogue.results.seeDatabaseEntry",
|
|
683
684
|
empty: n.value ? t.texts.emptyInstitution : t.texts.emptyPartner,
|
|
684
|
-
record: (e, { t }) =>
|
|
685
|
+
record: (e, { t }) => $e(e, t),
|
|
685
686
|
summary: ({ pageInfo: e, t: r }) => [{
|
|
686
687
|
count: e.total,
|
|
687
688
|
value: r(n.value ? t.texts.institutionSummary : "partner.item.objectsInSite")
|
|
688
689
|
}]
|
|
689
690
|
}));
|
|
690
|
-
return (e, r) => i.value ? (
|
|
691
|
+
return (e, r) => i.value ? (B(), P(v, {
|
|
691
692
|
key: 0,
|
|
692
|
-
spec:
|
|
693
|
+
spec: o.value,
|
|
693
694
|
class: "mwnf-dxa-partner-objects"
|
|
694
695
|
}, {
|
|
695
|
-
before:
|
|
696
|
+
before: G(() => [z(g), z(f, {
|
|
696
697
|
class: "mwnf-dxa-partner-objects-header",
|
|
697
698
|
variant: "summary",
|
|
698
699
|
heading: 1,
|
|
699
|
-
partner:
|
|
700
|
+
partner: a.value
|
|
700
701
|
}, null, 8, ["partner"])]),
|
|
701
|
-
actions:
|
|
702
|
+
actions: G(({ pageInfo: e, goToPage: t }) => [z(u, {
|
|
702
703
|
class: "mwnf-dxa-pages",
|
|
703
704
|
"page-info": e,
|
|
704
705
|
jump: "",
|
|
705
706
|
onNavigate: t
|
|
706
707
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
707
|
-
after:
|
|
708
|
+
after: G(() => [L("div", En, [z(W(Q), {
|
|
708
709
|
class: "mwnf-dxa-profile-link",
|
|
709
|
-
to:
|
|
710
|
+
to: W(Ve)(i.value)
|
|
710
711
|
}, {
|
|
711
|
-
default:
|
|
712
|
+
default: G(() => [R(" ➤ " + U(n.value ? e.$t(t.texts.institutionProfileLabel) : e.$t(t.texts.partnerProfileLabel)), 1)]),
|
|
712
713
|
_: 1
|
|
713
714
|
}, 8, ["to"])])]),
|
|
714
715
|
_: 1
|
|
715
|
-
}, 8, ["spec"])) :
|
|
716
|
+
}, 8, ["spec"])) : F("", !0);
|
|
716
717
|
}
|
|
717
|
-
},
|
|
718
|
+
}, On = () => Promise.resolve().then(() => Fr), kn = () => Promise.resolve().then(() => Wr), An = () => Promise.resolve().then(() => qr), jn = () => Promise.resolve().then(() => Xr), Mn = () => Promise.resolve().then(() => $r), Nn = () => Promise.resolve().then(() => ni), Pn = () => import("./Theme-B5J0XRe1.js").then((e) => e.t), Fn = () => Promise.resolve().then(() => oi), In = () => Promise.resolve().then(() => ui), Ln = () => Promise.resolve().then(() => pi), Rn = () => Promise.resolve().then(() => hi), zn = {
|
|
718
719
|
emptyPartner: "exhibition.partnerObjects.emptyPartner",
|
|
719
720
|
emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
|
|
720
721
|
institutionSummary: "exhibition.partner.monumentsInExhibition",
|
|
721
722
|
partnerProfileLabel: "partner.action.partnerProfile",
|
|
722
723
|
institutionProfileLabel: "exhibition.partnerObjects.institutionProfile"
|
|
723
724
|
};
|
|
724
|
-
function
|
|
725
|
-
let t =
|
|
725
|
+
function Bn(e) {
|
|
726
|
+
let t = Ot([
|
|
726
727
|
"gallery",
|
|
727
728
|
"items",
|
|
728
729
|
"partners",
|
|
@@ -733,39 +734,39 @@ function Nn(e) {
|
|
|
733
734
|
{
|
|
734
735
|
path: "/",
|
|
735
736
|
name: "home",
|
|
736
|
-
component:
|
|
737
|
+
component: On,
|
|
737
738
|
meta: t("home")
|
|
738
739
|
},
|
|
739
740
|
{
|
|
740
741
|
path: "/item/:id",
|
|
741
742
|
name: "item",
|
|
742
|
-
component:
|
|
743
|
+
component: kn,
|
|
743
744
|
props: (e) => ({ id: String(e.params.id) }),
|
|
744
745
|
meta: t("database", "languages", "dynasties", "glossary", "timelines", "timeline_events")
|
|
745
746
|
},
|
|
746
747
|
{
|
|
747
748
|
path: "/timeline",
|
|
748
749
|
name: "timeline",
|
|
749
|
-
component:
|
|
750
|
+
component: An,
|
|
750
751
|
meta: t("timeline", "timelines", "timeline_events")
|
|
751
752
|
}
|
|
752
753
|
] : [],
|
|
753
754
|
{
|
|
754
755
|
path: "/search",
|
|
755
756
|
name: "search-results",
|
|
756
|
-
component:
|
|
757
|
+
component: qt,
|
|
757
758
|
meta: t("database")
|
|
758
759
|
},
|
|
759
760
|
{
|
|
760
761
|
path: "/how-to-search",
|
|
761
762
|
name: "search-how-to",
|
|
762
|
-
component:
|
|
763
|
+
component: zt,
|
|
763
764
|
meta: t("database")
|
|
764
765
|
},
|
|
765
766
|
{
|
|
766
767
|
path: "/partners",
|
|
767
768
|
name: "partners",
|
|
768
|
-
component:
|
|
769
|
+
component: Vt,
|
|
769
770
|
meta: t("partners")
|
|
770
771
|
},
|
|
771
772
|
{
|
|
@@ -774,63 +775,63 @@ function Nn(e) {
|
|
|
774
775
|
component: $,
|
|
775
776
|
props: (e) => ({
|
|
776
777
|
id: String(e.params.id),
|
|
777
|
-
family:
|
|
778
|
+
family: fe
|
|
778
779
|
}),
|
|
779
780
|
meta: t("partners", "languages")
|
|
780
781
|
},
|
|
781
782
|
{
|
|
782
783
|
path: "/partner/:id/objects",
|
|
783
784
|
name: "partner-objects",
|
|
784
|
-
component:
|
|
785
|
+
component: sn,
|
|
785
786
|
meta: t("partners")
|
|
786
787
|
},
|
|
787
788
|
{
|
|
788
789
|
path: "/timeline-results",
|
|
789
790
|
name: "timeline-results",
|
|
790
|
-
component:
|
|
791
|
+
component: Jt,
|
|
791
792
|
meta: t("timeline", "timelines", "timeline_events")
|
|
792
793
|
},
|
|
793
794
|
{
|
|
794
795
|
path: "/timeline/gallery",
|
|
795
796
|
name: "timeline-gallery",
|
|
796
|
-
component:
|
|
797
|
+
component: Xt,
|
|
797
798
|
meta: t("timeline", "timelines", "timeline_events")
|
|
798
799
|
},
|
|
799
800
|
{
|
|
800
801
|
path: "/about",
|
|
801
802
|
name: "about",
|
|
802
|
-
component:
|
|
803
|
+
component: Lt,
|
|
803
804
|
meta: t("about")
|
|
804
805
|
},
|
|
805
806
|
{
|
|
806
807
|
path: "/credits",
|
|
807
808
|
name: "credits",
|
|
808
|
-
component:
|
|
809
|
+
component: Rt,
|
|
809
810
|
props: { bodyKey: n },
|
|
810
811
|
meta: t("credits")
|
|
811
812
|
},
|
|
812
813
|
{
|
|
813
814
|
path: "/collection",
|
|
814
815
|
name: "collection",
|
|
815
|
-
component:
|
|
816
|
+
component: rn,
|
|
816
817
|
meta: t("collection", "tags")
|
|
817
818
|
},
|
|
818
819
|
{
|
|
819
820
|
path: "/collection-results",
|
|
820
821
|
name: "collection-results",
|
|
821
|
-
component:
|
|
822
|
+
component: en,
|
|
822
823
|
meta: t("collection", "tags", "timelines")
|
|
823
824
|
}
|
|
824
825
|
];
|
|
825
826
|
}
|
|
826
|
-
function
|
|
827
|
-
let t =
|
|
827
|
+
function Vn(e) {
|
|
828
|
+
let t = Ot([
|
|
828
829
|
"exhibition",
|
|
829
830
|
"items",
|
|
830
831
|
"partners",
|
|
831
832
|
"countries"
|
|
832
833
|
]), n = {
|
|
833
|
-
...
|
|
834
|
+
...zn,
|
|
834
835
|
...e.partnerObjects
|
|
835
836
|
};
|
|
836
837
|
return [
|
|
@@ -838,56 +839,56 @@ function Pn(e) {
|
|
|
838
839
|
{
|
|
839
840
|
path: "/",
|
|
840
841
|
name: "home",
|
|
841
|
-
component:
|
|
842
|
+
component: jn,
|
|
842
843
|
meta: t("home")
|
|
843
844
|
},
|
|
844
845
|
{
|
|
845
846
|
path: "/about",
|
|
846
847
|
name: "about",
|
|
847
|
-
component:
|
|
848
|
+
component: Mn,
|
|
848
849
|
meta: t("about", "themes")
|
|
849
850
|
},
|
|
850
851
|
{
|
|
851
852
|
path: "/themes",
|
|
852
853
|
name: "themes",
|
|
853
|
-
component:
|
|
854
|
+
component: Nn,
|
|
854
855
|
meta: t("themes", "themes")
|
|
855
856
|
},
|
|
856
857
|
{
|
|
857
858
|
path: "/theme/:id/:subtheme?/:image?",
|
|
858
859
|
name: "theme",
|
|
859
|
-
component:
|
|
860
|
+
component: Pn,
|
|
860
861
|
meta: t("themes", "themes", "glossary", "dynasties")
|
|
861
862
|
},
|
|
862
863
|
{
|
|
863
864
|
path: "/theme-gallery/:id",
|
|
864
865
|
name: "theme-gallery",
|
|
865
|
-
component:
|
|
866
|
+
component: Fn,
|
|
866
867
|
meta: t("themes", "themes")
|
|
867
868
|
},
|
|
868
869
|
{
|
|
869
870
|
path: "/item/:id",
|
|
870
871
|
name: "item",
|
|
871
|
-
component:
|
|
872
|
+
component: In,
|
|
872
873
|
props: (e) => ({ id: String(e.params.id) }),
|
|
873
874
|
meta: t("database", "languages", "dynasties", "glossary", "timelines", "timeline_events")
|
|
874
875
|
},
|
|
875
876
|
{
|
|
876
877
|
path: "/related",
|
|
877
878
|
name: "related",
|
|
878
|
-
component:
|
|
879
|
+
component: Ln,
|
|
879
880
|
meta: t("related", "related_content")
|
|
880
881
|
},
|
|
881
882
|
{
|
|
882
883
|
path: "/timeline",
|
|
883
884
|
name: "timeline",
|
|
884
|
-
component:
|
|
885
|
+
component: Rn,
|
|
885
886
|
meta: t("timeline", "timelines", "timeline_events")
|
|
886
887
|
},
|
|
887
888
|
...e.creditsBody ? [{
|
|
888
889
|
path: "/credits",
|
|
889
890
|
name: "credits",
|
|
890
|
-
component:
|
|
891
|
+
component: x,
|
|
891
892
|
props: { spec: {
|
|
892
893
|
body: e.creditsBody,
|
|
893
894
|
back: !0
|
|
@@ -898,19 +899,19 @@ function Pn(e) {
|
|
|
898
899
|
{
|
|
899
900
|
path: "/search",
|
|
900
901
|
name: "search-results",
|
|
901
|
-
component:
|
|
902
|
+
component: _n,
|
|
902
903
|
meta: t("database")
|
|
903
904
|
},
|
|
904
905
|
{
|
|
905
906
|
path: "/how-to-search",
|
|
906
907
|
name: "search-how-to",
|
|
907
|
-
component:
|
|
908
|
+
component: cn,
|
|
908
909
|
meta: t("database")
|
|
909
910
|
},
|
|
910
911
|
{
|
|
911
912
|
path: "/partners",
|
|
912
913
|
name: "partners",
|
|
913
|
-
component:
|
|
914
|
+
component: dn,
|
|
914
915
|
meta: t("partners")
|
|
915
916
|
},
|
|
916
917
|
{
|
|
@@ -919,14 +920,14 @@ function Pn(e) {
|
|
|
919
920
|
component: $,
|
|
920
921
|
props: (e) => ({
|
|
921
922
|
id: String(e.params.id),
|
|
922
|
-
family:
|
|
923
|
+
family: E
|
|
923
924
|
}),
|
|
924
925
|
meta: t("partners", "languages")
|
|
925
926
|
},
|
|
926
927
|
{
|
|
927
928
|
path: "/partner/:id/objects",
|
|
928
929
|
name: "partner-objects",
|
|
929
|
-
component:
|
|
930
|
+
component: Dn,
|
|
930
931
|
props: { texts: n },
|
|
931
932
|
meta: t("partners")
|
|
932
933
|
},
|
|
@@ -936,7 +937,7 @@ function Pn(e) {
|
|
|
936
937
|
component: $,
|
|
937
938
|
props: (e) => ({
|
|
938
939
|
id: String(e.params.id),
|
|
939
|
-
family:
|
|
940
|
+
family: E,
|
|
940
941
|
variant: "institution"
|
|
941
942
|
}),
|
|
942
943
|
meta: t("partners", "languages")
|
|
@@ -944,7 +945,7 @@ function Pn(e) {
|
|
|
944
945
|
{
|
|
945
946
|
path: "/institution/:id/monuments",
|
|
946
947
|
name: "institution-monuments",
|
|
947
|
-
component:
|
|
948
|
+
component: Dn,
|
|
948
949
|
props: {
|
|
949
950
|
variant: "institution",
|
|
950
951
|
texts: n
|
|
@@ -954,37 +955,37 @@ function Pn(e) {
|
|
|
954
955
|
{
|
|
955
956
|
path: "/timeline-results",
|
|
956
957
|
name: "timeline-results",
|
|
957
|
-
component:
|
|
958
|
+
component: vn,
|
|
958
959
|
meta: t("timeline", "timelines", "timeline_events")
|
|
959
960
|
},
|
|
960
961
|
{
|
|
961
962
|
path: "/timeline/gallery",
|
|
962
963
|
name: "timeline-gallery",
|
|
963
|
-
component:
|
|
964
|
+
component: yn,
|
|
964
965
|
meta: t("timeline", "timelines", "timeline_events")
|
|
965
966
|
},
|
|
966
967
|
{
|
|
967
968
|
path: "/collection",
|
|
968
969
|
name: "collection",
|
|
969
|
-
component:
|
|
970
|
+
component: Tn,
|
|
970
971
|
meta: t("collection", "tags")
|
|
971
972
|
},
|
|
972
973
|
{
|
|
973
974
|
path: "/collection-results",
|
|
974
975
|
name: "collection-results",
|
|
975
|
-
component:
|
|
976
|
+
component: Cn,
|
|
976
977
|
meta: t("collection", "tags", "timelines")
|
|
977
978
|
}
|
|
978
979
|
];
|
|
979
980
|
}
|
|
980
|
-
function
|
|
981
|
-
if (e === "gallery") return
|
|
982
|
-
if (e === "exhibition") return
|
|
981
|
+
function Hn(e, t = {}) {
|
|
982
|
+
if (e === "gallery") return Bn(t);
|
|
983
|
+
if (e === "exhibition") return Vn(t);
|
|
983
984
|
throw Error(`standardRoutes: unknown family "${e}" (expected "gallery" or "exhibition")`);
|
|
984
985
|
}
|
|
985
986
|
//#endregion
|
|
986
987
|
//#region node_modules/@museumwnf/viewer-core/src/legacy/index.js
|
|
987
|
-
function
|
|
988
|
+
function Un(e, t = []) {
|
|
988
989
|
let n = String(e?.backward_compatibility ?? "").split(":");
|
|
989
990
|
if (n[0] === "mwnf3_sharing_history") {
|
|
990
991
|
let t = n[2] ?? e?.id ?? "";
|
|
@@ -1003,19 +1004,19 @@ function In(e, t = []) {
|
|
|
1003
1004
|
countryCode: r?.code ?? ""
|
|
1004
1005
|
};
|
|
1005
1006
|
}
|
|
1006
|
-
function
|
|
1007
|
+
function Wn(e, t, n, r) {
|
|
1007
1008
|
return (e ?? []).find((e) => {
|
|
1008
|
-
let i =
|
|
1009
|
+
let i = Un(e, t);
|
|
1009
1010
|
return i.legacyId === r && i.countryCode === n;
|
|
1010
1011
|
}) ?? null;
|
|
1011
1012
|
}
|
|
1012
|
-
function
|
|
1013
|
+
function Gn(e, t) {
|
|
1013
1014
|
let n = String(t ?? "").split("/").join(":").toLowerCase();
|
|
1014
1015
|
return (e ?? []).find((e) => e?.backward_compatibility?.toLowerCase() === n) ?? null;
|
|
1015
1016
|
}
|
|
1016
1017
|
//#endregion
|
|
1017
1018
|
//#region src/dxa/gallery/Shell.vue
|
|
1018
|
-
var
|
|
1019
|
+
var Kn = {
|
|
1019
1020
|
__name: "Shell",
|
|
1020
1021
|
props: {
|
|
1021
1022
|
language: {
|
|
@@ -1029,40 +1030,59 @@ var zn = {
|
|
|
1029
1030
|
},
|
|
1030
1031
|
emits: ["update:language"],
|
|
1031
1032
|
setup(e, { emit: t }) {
|
|
1032
|
-
let n = e, r = t, { t: i, locale: a } =
|
|
1033
|
-
|
|
1033
|
+
let n = e, r = t, { t: i, locale: a } = X(), o = Nt(), c = N(() => o.links ?? {}), l = N(() => o.galleryShell ?? {}), u = Mt(), d = N(() => u.value === "home"), f = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1034
|
+
function p(e) {
|
|
1035
|
+
return e?.[a.value] ?? e?.en ?? "";
|
|
1036
|
+
}
|
|
1037
|
+
let m = N(() => {
|
|
1038
|
+
let e = Oe.projects?.[Oe.gallery?.project_id ?? T.value?.project_id];
|
|
1039
|
+
return p(e?.name) || p(Oe.site?.names) || p(T.value?.names);
|
|
1040
|
+
});
|
|
1041
|
+
function h(e, t) {
|
|
1042
|
+
if (!(e in l.value)) return t();
|
|
1043
|
+
let n = l.value[e];
|
|
1044
|
+
return n ? i(n) : "";
|
|
1045
|
+
}
|
|
1046
|
+
let g = N(() => d.value ? "" : h("headerEyebrow", () => i("core.project.galleries"))), _ = N(() => d.value ? "" : h("headerTitle", () => m.value)), v = N(() => l.value.bannerImage ? s(o.chrome, l.value.bannerImage) : de(T.value?.banner_image_path, "hi_res")), y = N(() => {
|
|
1047
|
+
if (l.value.bannerCaption) return l.value.bannerCaption;
|
|
1048
|
+
let e = he.value.get(T.value?.banner_item_id);
|
|
1034
1049
|
if (!e) return "";
|
|
1035
|
-
let t =
|
|
1050
|
+
let t = ae("items", e.id, pe);
|
|
1036
1051
|
return {
|
|
1037
|
-
name:
|
|
1038
|
-
partner:
|
|
1052
|
+
name: w("items", e.id),
|
|
1053
|
+
partner: w("partners", e.partner_id),
|
|
1039
1054
|
location: t.location ?? "",
|
|
1040
|
-
country:
|
|
1055
|
+
country: w("countries", e.country_id)
|
|
1041
1056
|
};
|
|
1042
|
-
})
|
|
1043
|
-
|
|
1057
|
+
}), b = N(() => d.value ? h("bannerEyebrow", () => i("gallery.banner.discoverGalleries")) : ""), x = N(() => d.value ? h("bannerTitle", () => m.value) : void 0), S = N(() => l.value.notice === !1 ? null : {
|
|
1058
|
+
title: i("gallery.notice.tip"),
|
|
1059
|
+
text: i("gallery.notice.databaseReplaced")
|
|
1060
|
+
}), C = N(() => !!s(o.chrome, o.brand?.logo));
|
|
1061
|
+
return (e, t) => (B(), P(ee, {
|
|
1062
|
+
class: ht(["mwnf-dxa-gallery-shell", { "mwnf-dxa-gallery-shell--home": d.value }]),
|
|
1044
1063
|
languages: n.languages,
|
|
1045
1064
|
language: n.language,
|
|
1046
|
-
"language-placement": "
|
|
1047
|
-
"
|
|
1048
|
-
"header-
|
|
1049
|
-
"header-
|
|
1050
|
-
"header-title": l.value ? "" : s.value,
|
|
1065
|
+
"language-placement": "none",
|
|
1066
|
+
"header-home": c.value.portal,
|
|
1067
|
+
"header-eyebrow": g.value,
|
|
1068
|
+
"header-title": _.value,
|
|
1051
1069
|
"header-title-href": "#/",
|
|
1052
|
-
"banner-image":
|
|
1053
|
-
"banner-caption":
|
|
1054
|
-
"banner-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
},
|
|
1059
|
-
"footer-text": `${H(i)("core.footer.copyright")} 2004–${H(u)}`,
|
|
1070
|
+
"banner-image": v.value,
|
|
1071
|
+
"banner-caption": y.value,
|
|
1072
|
+
"banner-eyebrow": b.value,
|
|
1073
|
+
"banner-title": x.value,
|
|
1074
|
+
notice: S.value,
|
|
1075
|
+
"footer-text": `${W(i)("core.footer.copyright")} 2004–${W(f)}`,
|
|
1060
1076
|
"onUpdate:language": t[0] ||= (e) => r("update:language", e)
|
|
1061
|
-
}, {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1077
|
+
}, mt({
|
|
1078
|
+
default: G(() => [yt(e.$slots, "default")]),
|
|
1079
|
+
_: 2
|
|
1080
|
+
}, [C.value ? void 0 : {
|
|
1081
|
+
name: "brand",
|
|
1082
|
+
fn: G(() => [t[1] ||= L("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
|
|
1083
|
+
key: "0"
|
|
1084
|
+
}]), 1032, [
|
|
1085
|
+
"class",
|
|
1066
1086
|
"languages",
|
|
1067
1087
|
"language",
|
|
1068
1088
|
"header-home",
|
|
@@ -1070,15 +1090,16 @@ var zn = {
|
|
|
1070
1090
|
"header-title",
|
|
1071
1091
|
"banner-image",
|
|
1072
1092
|
"banner-caption",
|
|
1093
|
+
"banner-eyebrow",
|
|
1073
1094
|
"banner-title",
|
|
1074
1095
|
"notice",
|
|
1075
1096
|
"footer-text"
|
|
1076
1097
|
]));
|
|
1077
1098
|
}
|
|
1078
|
-
},
|
|
1099
|
+
}, qn = {
|
|
1079
1100
|
key: 0,
|
|
1080
1101
|
class: "mwnf-popup-logo"
|
|
1081
|
-
},
|
|
1102
|
+
}, Jn = ["aria-label"], Yn = ["innerHTML"], Xn = ["innerHTML"], Zn = {
|
|
1082
1103
|
__name: "PopupLogo",
|
|
1083
1104
|
props: {
|
|
1084
1105
|
content: {
|
|
@@ -1099,22 +1120,22 @@ var zn = {
|
|
|
1099
1120
|
}
|
|
1100
1121
|
},
|
|
1101
1122
|
setup(e) {
|
|
1102
|
-
let t = e, n =
|
|
1103
|
-
return (t, a) => i.value ? (
|
|
1123
|
+
let t = e, n = V(!1), r = N(() => t.rawHtml ? t.content : Dt(t.content)), i = N(() => t.enabled && !!t.content && !n.value);
|
|
1124
|
+
return (t, a) => i.value ? (B(), I("div", qn, [L("button", {
|
|
1104
1125
|
class: "mwnf-popup-logo__close",
|
|
1105
1126
|
"aria-label": t.$t(e.closeLabel),
|
|
1106
1127
|
onClick: a[0] ||= (e) => n.value = !0
|
|
1107
|
-
}, "✕", 8,
|
|
1128
|
+
}, "✕", 8, Jn), e.rawHtml ? (B(), I("div", {
|
|
1108
1129
|
key: 0,
|
|
1109
1130
|
class: "mwnf-popup-logo__content",
|
|
1110
1131
|
innerHTML: r.value
|
|
1111
|
-
}, null, 8,
|
|
1132
|
+
}, null, 8, Yn)) : (B(), I("div", {
|
|
1112
1133
|
key: 1,
|
|
1113
1134
|
class: "mwnf-popup-logo__content",
|
|
1114
1135
|
innerHTML: r.value
|
|
1115
|
-
}, null, 8,
|
|
1136
|
+
}, null, 8, Xn))])) : F("", !0);
|
|
1116
1137
|
}
|
|
1117
|
-
},
|
|
1138
|
+
}, Qn = {
|
|
1118
1139
|
__name: "Shell",
|
|
1119
1140
|
props: {
|
|
1120
1141
|
language: {
|
|
@@ -1128,19 +1149,19 @@ var zn = {
|
|
|
1128
1149
|
},
|
|
1129
1150
|
emits: ["update:language"],
|
|
1130
1151
|
setup(e, { emit: t }) {
|
|
1131
|
-
let n = e, r = t, { t: i, locale:
|
|
1132
|
-
let e = Ke(
|
|
1152
|
+
let n = e, r = t, { t: i, locale: c } = X(), l = Nt(), u = N(() => l.links ?? {}), d = N(() => !!s(l.chrome, l.brand?.logo)), f = Mt(), p = N(() => f.value === "home"), m = (/* @__PURE__ */ new Date()).getFullYear(), h = N(() => p.value ? D.value?.homepage_image_path : null), g = N(() => h.value ? O(h.value, "hi_res") : O(D.value?.banner_image_path, "hi_res")), _ = N(() => {
|
|
1153
|
+
let e = h.value ? "" : Ke(c.value);
|
|
1133
1154
|
if (e) return e;
|
|
1134
|
-
let t =
|
|
1135
|
-
if (!
|
|
1136
|
-
let
|
|
1155
|
+
let t = h.value ? D.value?.homepage_item_id : D.value?.banner_item_id, n = k.value.get(t);
|
|
1156
|
+
if (!n) return "";
|
|
1157
|
+
let r = Ie("items", n.id, Ye);
|
|
1137
1158
|
return {
|
|
1138
|
-
name:
|
|
1139
|
-
partner:
|
|
1140
|
-
location:
|
|
1141
|
-
country:
|
|
1159
|
+
name: j("items", n.id),
|
|
1160
|
+
partner: j("partners", n.partner_id),
|
|
1161
|
+
location: r.location ?? "",
|
|
1162
|
+
country: j("countries", n.country_id)
|
|
1142
1163
|
};
|
|
1143
|
-
}),
|
|
1164
|
+
}), v = N(() => [{
|
|
1144
1165
|
label: i("core.nav.about"),
|
|
1145
1166
|
description: i("exhibition.nav.introduction"),
|
|
1146
1167
|
href: "#/about"
|
|
@@ -1149,58 +1170,75 @@ var zn = {
|
|
|
1149
1170
|
description: i("exhibition.nav.contentAtAGlance"),
|
|
1150
1171
|
href: "#/themes"
|
|
1151
1172
|
}]);
|
|
1152
|
-
function
|
|
1153
|
-
return e.labels?.[
|
|
1173
|
+
function y(e) {
|
|
1174
|
+
return e.labels?.[c.value] ?? e.labels?.en ?? e.alt_text ?? "";
|
|
1154
1175
|
}
|
|
1155
|
-
let
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1176
|
+
let b = N(() => {
|
|
1177
|
+
let e = l.sponsorLogos;
|
|
1178
|
+
return Array.isArray(e) ? e.map((e) => ({
|
|
1179
|
+
...e,
|
|
1180
|
+
image: s(l.chrome, e.image),
|
|
1181
|
+
alt: e.alt ? i(e.alt) : ""
|
|
1182
|
+
})).filter((e) => e.image) : (D.value?.logos ?? []).map((e) => ({
|
|
1183
|
+
image: e.legacy_path ? O(e.legacy_path, "full") : null,
|
|
1184
|
+
alt: y(e),
|
|
1185
|
+
href: e.url || void 0,
|
|
1186
|
+
category_id: e.category_id,
|
|
1187
|
+
category: e.category,
|
|
1188
|
+
visible: e.visible,
|
|
1189
|
+
display_order: e.display_order
|
|
1190
|
+
})).filter((e) => e.image);
|
|
1166
1191
|
});
|
|
1167
|
-
|
|
1192
|
+
function x(e) {
|
|
1193
|
+
let t = l.media?.legacyHost;
|
|
1194
|
+
if (!t || !e.startsWith(`${t.replace(/\/+$/, "")}/`)) return null;
|
|
1195
|
+
let n = e.slice(t.replace(/\/+$/, "").length + 1).split("/").slice(1).join("/");
|
|
1196
|
+
return o(l.chrome, n);
|
|
1197
|
+
}
|
|
1198
|
+
let S = N(() => a(Ne(D.value?.popup_logos?.[c.value] ?? D.value?.popup_logos?.en ?? ""), x)), C = N(() => {
|
|
1199
|
+
let e = D.value?.popup_logo_show;
|
|
1200
|
+
return e == null ? !1 : typeof e == "boolean" ? e : e[c.value] ?? e.en ?? !1;
|
|
1201
|
+
});
|
|
1202
|
+
return (e, t) => (B(), P(ee, {
|
|
1168
1203
|
languages: n.languages,
|
|
1169
1204
|
language: n.language,
|
|
1170
1205
|
"language-placement": "header",
|
|
1171
|
-
"language-style": "
|
|
1172
|
-
"header-home":
|
|
1173
|
-
"header-title":
|
|
1206
|
+
"language-style": "select",
|
|
1207
|
+
"header-home": u.value.portal,
|
|
1208
|
+
"header-title": W(i)("exhibition.identity.tagline"),
|
|
1174
1209
|
"header-title-href": "#/about",
|
|
1175
|
-
"banner-image":
|
|
1176
|
-
"banner-caption":
|
|
1177
|
-
"banner-caption-label":
|
|
1178
|
-
"banner-title":
|
|
1179
|
-
"banner-subtitle":
|
|
1180
|
-
"banner-headline":
|
|
1181
|
-
"banner-enter":
|
|
1182
|
-
label:
|
|
1210
|
+
"banner-image": g.value,
|
|
1211
|
+
"banner-caption": _.value,
|
|
1212
|
+
"banner-caption-label": W(i)("layout.banner.detailFrom"),
|
|
1213
|
+
"banner-title": p.value ? W(Ze)(W(c)) : "",
|
|
1214
|
+
"banner-subtitle": p.value ? W(nt)(W(c)) : "",
|
|
1215
|
+
"banner-headline": p.value ? W(it)(W(c)) : "",
|
|
1216
|
+
"banner-enter": p.value ? {
|
|
1217
|
+
label: W(i)("exhibition.action.enter"),
|
|
1183
1218
|
href: "#/about"
|
|
1184
1219
|
} : null,
|
|
1185
|
-
"banner-strapline":
|
|
1220
|
+
"banner-strapline": p.value ? W(i)("exhibition.identity.strapline") : "",
|
|
1186
1221
|
"hyperlinks-variant": "tiles",
|
|
1187
|
-
"hyperlinks-title":
|
|
1222
|
+
"hyperlinks-title": W(Ze)(W(c)),
|
|
1188
1223
|
"hyperlinks-title-href": "#/",
|
|
1189
|
-
"hyperlinks-subtitle":
|
|
1190
|
-
hyperlinks:
|
|
1191
|
-
"footer-text": `${
|
|
1192
|
-
logos:
|
|
1224
|
+
"hyperlinks-subtitle": W(nt)(W(c)),
|
|
1225
|
+
hyperlinks: v.value,
|
|
1226
|
+
"footer-text": `${W(i)("core.footer.copyright")} 2004–${W(m)}`,
|
|
1227
|
+
logos: b.value,
|
|
1193
1228
|
"onUpdate:language": t[0] ||= (e) => r("update:language", e)
|
|
1194
|
-
}, {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
enabled: g.value,
|
|
1229
|
+
}, mt({
|
|
1230
|
+
notice: G(() => [z(Zn, {
|
|
1231
|
+
content: S.value,
|
|
1232
|
+
enabled: C.value,
|
|
1199
1233
|
"raw-html": ""
|
|
1200
1234
|
}, null, 8, ["content", "enabled"])]),
|
|
1201
|
-
default:
|
|
1202
|
-
_:
|
|
1203
|
-
},
|
|
1235
|
+
default: G(() => [yt(e.$slots, "default")]),
|
|
1236
|
+
_: 2
|
|
1237
|
+
}, [d.value ? void 0 : {
|
|
1238
|
+
name: "brand",
|
|
1239
|
+
fn: G(() => [t[1] ||= L("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
|
|
1240
|
+
key: "0"
|
|
1241
|
+
}]), 1032, [
|
|
1204
1242
|
"languages",
|
|
1205
1243
|
"language",
|
|
1206
1244
|
"header-home",
|
|
@@ -1223,23 +1261,23 @@ var zn = {
|
|
|
1223
1261
|
};
|
|
1224
1262
|
//#endregion
|
|
1225
1263
|
//#region src/dxa/config.js
|
|
1226
|
-
function
|
|
1264
|
+
function $n({ country: e, start: t, end: n, page: r }) {
|
|
1227
1265
|
let i = { country: e };
|
|
1228
1266
|
return t !== "any" && (i.begin = t), n !== "any" && (i.end = n), Number(r) > 1 && (i.page = r), {
|
|
1229
1267
|
name: "timeline-gallery",
|
|
1230
1268
|
query: i
|
|
1231
1269
|
};
|
|
1232
1270
|
}
|
|
1233
|
-
function
|
|
1234
|
-
let { manifest:
|
|
1271
|
+
function er({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects: a = [], creditsBody: o, chrome: s = {}, homeLogos: c = [] }) {
|
|
1272
|
+
let { manifest: l } = kt(), u = Et();
|
|
1235
1273
|
return {
|
|
1236
1274
|
datasetPackage: e,
|
|
1237
|
-
siteName:
|
|
1275
|
+
siteName: l.site?.names?.en ?? t,
|
|
1238
1276
|
features: { entities: [] },
|
|
1239
|
-
languages:
|
|
1240
|
-
shell:
|
|
1277
|
+
languages: u,
|
|
1278
|
+
shell: Kn,
|
|
1241
1279
|
navigation: {
|
|
1242
|
-
languages:
|
|
1280
|
+
languages: Tt(u),
|
|
1243
1281
|
links: [
|
|
1244
1282
|
{
|
|
1245
1283
|
section: "about",
|
|
@@ -1268,7 +1306,7 @@ function qn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1268
1306
|
},
|
|
1269
1307
|
{
|
|
1270
1308
|
label: "core.nav.myCollection",
|
|
1271
|
-
href:
|
|
1309
|
+
href: Y.myCollection,
|
|
1272
1310
|
external: !0
|
|
1273
1311
|
}
|
|
1274
1312
|
],
|
|
@@ -1277,33 +1315,33 @@ function qn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1277
1315
|
to: { name: "home" }
|
|
1278
1316
|
}, {
|
|
1279
1317
|
label: "gallery.nav.allGalleries",
|
|
1280
|
-
href: `${
|
|
1318
|
+
href: `${Y.galleries}/list/1`,
|
|
1281
1319
|
external: !0
|
|
1282
1320
|
}],
|
|
1283
1321
|
footerLinks: [
|
|
1284
1322
|
{
|
|
1285
1323
|
label: "core.footer.aboutMwnf",
|
|
1286
|
-
href:
|
|
1324
|
+
href: Y.about,
|
|
1287
1325
|
external: !0
|
|
1288
1326
|
},
|
|
1289
1327
|
{
|
|
1290
1328
|
label: "core.footer.contact",
|
|
1291
|
-
href:
|
|
1329
|
+
href: Y.contact,
|
|
1292
1330
|
external: !0
|
|
1293
1331
|
},
|
|
1294
1332
|
{
|
|
1295
1333
|
label: "core.footer.legalNotice",
|
|
1296
|
-
href:
|
|
1334
|
+
href: Y.legalNotice,
|
|
1297
1335
|
external: !0
|
|
1298
1336
|
},
|
|
1299
1337
|
{
|
|
1300
1338
|
label: "core.footer.credits",
|
|
1301
|
-
href:
|
|
1339
|
+
href: Y.credits,
|
|
1302
1340
|
external: !0
|
|
1303
1341
|
},
|
|
1304
1342
|
{
|
|
1305
1343
|
label: "core.footer.cookies",
|
|
1306
|
-
href:
|
|
1344
|
+
href: Y.cookies,
|
|
1307
1345
|
external: !0
|
|
1308
1346
|
}
|
|
1309
1347
|
],
|
|
@@ -1322,11 +1360,12 @@ function qn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1322
1360
|
placeholder: "catalogue.search.placeholder",
|
|
1323
1361
|
submitLabel: "catalogue.search.submit",
|
|
1324
1362
|
empty: "all-objects"
|
|
1325
|
-
}
|
|
1363
|
+
},
|
|
1364
|
+
placement: ({ section: e }) => e === "home" ? "after-banner" : "before-banner",
|
|
1365
|
+
socialLinks: i
|
|
1326
1366
|
},
|
|
1327
1367
|
banner: {
|
|
1328
1368
|
variant: ({ section: e }) => e === "home" ? "strip" : "section",
|
|
1329
|
-
eyebrow: ({ section: e, t }) => e === "home" ? t("gallery.banner.discoverGalleries") : "",
|
|
1330
1369
|
captionLabel: "layout.banner.detailFrom",
|
|
1331
1370
|
enter: ({ section: e, t }) => e === "home" ? {
|
|
1332
1371
|
label: "»",
|
|
@@ -1334,20 +1373,26 @@ function qn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1334
1373
|
ariaLabel: t("gallery.action.goToCollection")
|
|
1335
1374
|
} : null
|
|
1336
1375
|
},
|
|
1376
|
+
chrome: s,
|
|
1377
|
+
brand: {
|
|
1378
|
+
logo: "logo.png",
|
|
1379
|
+
alt: "MWNF Logo"
|
|
1380
|
+
},
|
|
1381
|
+
homeLogos: c,
|
|
1337
1382
|
media: { legacyHost: "https://images.museumwnf.org" },
|
|
1338
|
-
links: { ...
|
|
1383
|
+
links: { ...Y },
|
|
1339
1384
|
projectColors: r,
|
|
1340
|
-
noticeProjects:
|
|
1385
|
+
noticeProjects: a,
|
|
1341
1386
|
site: { origin: n },
|
|
1342
|
-
extraViews:
|
|
1343
|
-
creditsBody:
|
|
1387
|
+
extraViews: Hn("gallery", {
|
|
1388
|
+
creditsBody: o,
|
|
1344
1389
|
pages: !0
|
|
1345
1390
|
}),
|
|
1346
1391
|
legacyRoutes: [
|
|
1347
1392
|
{
|
|
1348
1393
|
path: "/database-item/:uid(.*)/:language",
|
|
1349
1394
|
async resolve({ uid: e }) {
|
|
1350
|
-
await
|
|
1395
|
+
await J(["items"]);
|
|
1351
1396
|
let t = xe(e);
|
|
1352
1397
|
return t ? {
|
|
1353
1398
|
name: "item",
|
|
@@ -1358,7 +1403,7 @@ function qn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1358
1403
|
{
|
|
1359
1404
|
path: "/partner/:country/:id/:language",
|
|
1360
1405
|
async resolve({ country: e, id: t }) {
|
|
1361
|
-
await
|
|
1406
|
+
await J(["partners"]);
|
|
1362
1407
|
let n = Ae(e, t);
|
|
1363
1408
|
return n ? {
|
|
1364
1409
|
name: "partner",
|
|
@@ -1369,7 +1414,7 @@ function qn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1369
1414
|
{
|
|
1370
1415
|
path: "/partner-objects/:country/:id/:page",
|
|
1371
1416
|
async resolve({ country: e, id: t, page: n }) {
|
|
1372
|
-
await
|
|
1417
|
+
await J(["partners"]);
|
|
1373
1418
|
let r = Ae(e, t);
|
|
1374
1419
|
return r ? {
|
|
1375
1420
|
name: "partner-objects",
|
|
@@ -1380,7 +1425,7 @@ function qn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1380
1425
|
},
|
|
1381
1426
|
{
|
|
1382
1427
|
path: "/timeline-gallery/:country/:start/:end/:page",
|
|
1383
|
-
resolve:
|
|
1428
|
+
resolve: $n
|
|
1384
1429
|
},
|
|
1385
1430
|
{
|
|
1386
1431
|
path: "/error",
|
|
@@ -1389,20 +1434,23 @@ function qn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1389
1434
|
]
|
|
1390
1435
|
};
|
|
1391
1436
|
}
|
|
1392
|
-
function
|
|
1393
|
-
let { manifest:
|
|
1437
|
+
function tr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects: a = [], creditsBody: o, partnerObjects: s, chrome: c = {}, sponsorLogos: l }) {
|
|
1438
|
+
let { manifest: u } = kt(), d = Et(), f = async (e, t) => (await J([
|
|
1394
1439
|
"exhibition",
|
|
1395
1440
|
"partners",
|
|
1396
1441
|
"countries"
|
|
1397
|
-
]),
|
|
1442
|
+
]), Wn(Ue.value, Je.value, e, t));
|
|
1398
1443
|
return {
|
|
1399
1444
|
datasetPackage: e,
|
|
1400
|
-
siteName:
|
|
1445
|
+
siteName: u.site?.names?.en ?? t,
|
|
1401
1446
|
features: { entities: [] },
|
|
1402
|
-
languages:
|
|
1403
|
-
shell:
|
|
1447
|
+
languages: d,
|
|
1448
|
+
shell: Qn,
|
|
1404
1449
|
navigation: {
|
|
1405
|
-
languages:
|
|
1450
|
+
languages: d.map((e) => ({
|
|
1451
|
+
code: e,
|
|
1452
|
+
label: String(e).toUpperCase()
|
|
1453
|
+
})),
|
|
1406
1454
|
links: [
|
|
1407
1455
|
{
|
|
1408
1456
|
section: "about",
|
|
@@ -1442,7 +1490,7 @@ function Jn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1442
1490
|
},
|
|
1443
1491
|
{
|
|
1444
1492
|
label: "core.nav.myCollection",
|
|
1445
|
-
href:
|
|
1493
|
+
href: Y.myCollection,
|
|
1446
1494
|
external: !0
|
|
1447
1495
|
}
|
|
1448
1496
|
],
|
|
@@ -1451,33 +1499,33 @@ function Jn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1451
1499
|
to: { name: "home" }
|
|
1452
1500
|
}, {
|
|
1453
1501
|
label: "core.footer.aboutMwnf",
|
|
1454
|
-
href:
|
|
1502
|
+
href: Y.about,
|
|
1455
1503
|
external: !0
|
|
1456
1504
|
}],
|
|
1457
1505
|
footerLinks: [
|
|
1458
1506
|
{
|
|
1459
1507
|
label: "core.footer.aboutMwnf",
|
|
1460
|
-
href:
|
|
1508
|
+
href: Y.about,
|
|
1461
1509
|
external: !0
|
|
1462
1510
|
},
|
|
1463
1511
|
{
|
|
1464
1512
|
label: "core.footer.contact",
|
|
1465
|
-
href:
|
|
1513
|
+
href: Y.contact,
|
|
1466
1514
|
external: !0
|
|
1467
1515
|
},
|
|
1468
1516
|
{
|
|
1469
1517
|
label: "core.footer.legalNotice",
|
|
1470
|
-
href:
|
|
1518
|
+
href: Y.legalNotice,
|
|
1471
1519
|
external: !0
|
|
1472
1520
|
},
|
|
1473
1521
|
{
|
|
1474
1522
|
label: "core.footer.credits",
|
|
1475
|
-
href:
|
|
1523
|
+
href: Y.credits,
|
|
1476
1524
|
external: !0
|
|
1477
1525
|
},
|
|
1478
1526
|
{
|
|
1479
1527
|
label: "core.footer.cookies",
|
|
1480
|
-
href:
|
|
1528
|
+
href: Y.cookies,
|
|
1481
1529
|
external: !0
|
|
1482
1530
|
}
|
|
1483
1531
|
],
|
|
@@ -1497,9 +1545,17 @@ function Jn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1497
1545
|
placeholder: "catalogue.search.placeholder",
|
|
1498
1546
|
submitLabel: "catalogue.search.submit",
|
|
1499
1547
|
empty: "all-objects"
|
|
1500
|
-
}
|
|
1548
|
+
},
|
|
1549
|
+
placement: "before-banner",
|
|
1550
|
+
socialLinks: i
|
|
1501
1551
|
},
|
|
1502
1552
|
banner: { variant: ({ section: e }) => e === "home" ? "split" : "section" },
|
|
1553
|
+
chrome: c,
|
|
1554
|
+
brand: {
|
|
1555
|
+
logo: "logo_black.png",
|
|
1556
|
+
alt: "MWNF Logo"
|
|
1557
|
+
},
|
|
1558
|
+
sponsorLogos: l,
|
|
1503
1559
|
logos: {
|
|
1504
1560
|
header: (e) => Number(e.category_id) === 0 && e.visible !== !1,
|
|
1505
1561
|
headerTitle: "exhibition.sponsors.coOrganisers",
|
|
@@ -1521,21 +1577,21 @@ function Jn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1521
1577
|
}
|
|
1522
1578
|
},
|
|
1523
1579
|
media: { legacyHost: "https://images.museumwnf.org" },
|
|
1524
|
-
links: { ...
|
|
1580
|
+
links: { ...Y },
|
|
1525
1581
|
projectColors: r,
|
|
1526
|
-
noticeProjects:
|
|
1582
|
+
noticeProjects: a,
|
|
1527
1583
|
site: { origin: n },
|
|
1528
|
-
extraViews:
|
|
1529
|
-
creditsBody:
|
|
1530
|
-
partnerObjects:
|
|
1584
|
+
extraViews: Hn("exhibition", {
|
|
1585
|
+
creditsBody: o,
|
|
1586
|
+
partnerObjects: s,
|
|
1531
1587
|
pages: !0
|
|
1532
1588
|
}),
|
|
1533
1589
|
legacyRoutes: [
|
|
1534
1590
|
{
|
|
1535
1591
|
path: "/database-item/:uid(.*)/:language",
|
|
1536
1592
|
async resolve({ uid: e }) {
|
|
1537
|
-
await
|
|
1538
|
-
let t =
|
|
1593
|
+
await J(["items"]);
|
|
1594
|
+
let t = Gn(qe.value, e);
|
|
1539
1595
|
return t ? {
|
|
1540
1596
|
name: "item",
|
|
1541
1597
|
params: { id: t.id }
|
|
@@ -1545,7 +1601,7 @@ function Jn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1545
1601
|
{
|
|
1546
1602
|
path: "/partner/:country/:id/:language",
|
|
1547
1603
|
async resolve({ country: e, id: t }) {
|
|
1548
|
-
let n = await
|
|
1604
|
+
let n = await f(e, t);
|
|
1549
1605
|
return n ? {
|
|
1550
1606
|
name: "partner",
|
|
1551
1607
|
params: { id: n.id }
|
|
@@ -1555,7 +1611,7 @@ function Jn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1555
1611
|
{
|
|
1556
1612
|
path: "/partner-objects/:country/:id/:page",
|
|
1557
1613
|
async resolve({ country: e, id: t, page: n }) {
|
|
1558
|
-
let r = await
|
|
1614
|
+
let r = await f(e, t);
|
|
1559
1615
|
return r ? {
|
|
1560
1616
|
name: "partner-objects",
|
|
1561
1617
|
params: { id: r.id },
|
|
@@ -1566,7 +1622,7 @@ function Jn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1566
1622
|
{
|
|
1567
1623
|
path: "/institution/:country/:id/:language",
|
|
1568
1624
|
async resolve({ country: e, id: t }) {
|
|
1569
|
-
let n = await
|
|
1625
|
+
let n = await f(e, t);
|
|
1570
1626
|
return n ? {
|
|
1571
1627
|
name: "institution",
|
|
1572
1628
|
params: { id: n.id }
|
|
@@ -1576,7 +1632,7 @@ function Jn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1576
1632
|
{
|
|
1577
1633
|
path: "/institution-monuments/:country/:id/:page",
|
|
1578
1634
|
async resolve({ country: e, id: t, page: n }) {
|
|
1579
|
-
let r = await
|
|
1635
|
+
let r = await f(e, t);
|
|
1580
1636
|
return r ? {
|
|
1581
1637
|
name: "institution-monuments",
|
|
1582
1638
|
params: { id: r.id },
|
|
@@ -1586,7 +1642,7 @@ function Jn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1586
1642
|
},
|
|
1587
1643
|
{
|
|
1588
1644
|
path: "/timeline-gallery/:country/:start/:end/:page",
|
|
1589
|
-
resolve:
|
|
1645
|
+
resolve: $n
|
|
1590
1646
|
},
|
|
1591
1647
|
{
|
|
1592
1648
|
path: "/error",
|
|
@@ -1597,16 +1653,16 @@ function Jn({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1597
1653
|
}
|
|
1598
1654
|
//#endregion
|
|
1599
1655
|
//#region src/dxa/FeaturedPartners.vue
|
|
1600
|
-
var
|
|
1656
|
+
var nr = {
|
|
1601
1657
|
key: 0,
|
|
1602
1658
|
class: "mwnf-featured-partners"
|
|
1603
|
-
},
|
|
1659
|
+
}, rr = { class: "mwnf-featured-partners__heading" }, ir = { class: "mwnf-featured-partners__carousel" }, ar = {
|
|
1604
1660
|
key: 0,
|
|
1605
1661
|
class: "mwnf-featured-partners__image"
|
|
1606
|
-
},
|
|
1662
|
+
}, or = ["src", "alt"], sr = { class: "mwnf-featured-partners__body" }, cr = { class: "mwnf-featured-partners__name" }, lr = { class: "mwnf-featured-partners__location" }, ur = { key: 0 }, dr = { class: "mwnf-featured-partners__description" }, fr = {
|
|
1607
1663
|
key: 0,
|
|
1608
1664
|
class: "mwnf-featured-partners__controls"
|
|
1609
|
-
},
|
|
1665
|
+
}, pr = ["aria-label", "onClick"], mr = 8e3, hr = {
|
|
1610
1666
|
__name: "FeaturedPartners",
|
|
1611
1667
|
props: {
|
|
1612
1668
|
records: {
|
|
@@ -1624,6 +1680,14 @@ var Yn = {
|
|
|
1624
1680
|
headingEntry: {
|
|
1625
1681
|
type: String,
|
|
1626
1682
|
default: "partner.list.featured"
|
|
1683
|
+
},
|
|
1684
|
+
readMoreEntry: {
|
|
1685
|
+
type: String,
|
|
1686
|
+
default: "partner.action.readMore"
|
|
1687
|
+
},
|
|
1688
|
+
viewObjectsEntry: {
|
|
1689
|
+
type: String,
|
|
1690
|
+
default: "partner.action.viewObjects"
|
|
1627
1691
|
}
|
|
1628
1692
|
},
|
|
1629
1693
|
setup(e) {
|
|
@@ -1636,62 +1700,81 @@ var Yn = {
|
|
|
1636
1700
|
let n = e.lastIndexOf(" ", t);
|
|
1637
1701
|
return `${e.slice(0, n > 0 ? n : t)}...`;
|
|
1638
1702
|
}
|
|
1639
|
-
let i =
|
|
1703
|
+
let i = N(() => t.partners.length ? t.partners.map((e) => ({
|
|
1640
1704
|
id: e.id,
|
|
1641
1705
|
name: e.plainName,
|
|
1642
1706
|
logo: e.pictures?.[0]?.url ?? e.logos?.[0]?.url ?? null,
|
|
1643
1707
|
city: e.city,
|
|
1644
1708
|
country: e.country,
|
|
1645
1709
|
description: r(n(e.description), t.descriptionLength),
|
|
1646
|
-
route: e.route
|
|
1647
|
-
|
|
1710
|
+
route: e.route,
|
|
1711
|
+
objectsRoute: e.objectsRoute ?? null
|
|
1712
|
+
})) : t.records), a = V(0), o = null;
|
|
1648
1713
|
function s(e) {
|
|
1649
1714
|
a.value = e, c();
|
|
1650
1715
|
}
|
|
1651
1716
|
function c() {
|
|
1652
1717
|
o && clearInterval(o), i.value.length > 0 && (o = setInterval(() => {
|
|
1653
1718
|
a.value = (a.value + 1) % i.value.length;
|
|
1654
|
-
},
|
|
1719
|
+
}, mr));
|
|
1655
1720
|
}
|
|
1656
|
-
return
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
key:
|
|
1660
|
-
to: e.route,
|
|
1721
|
+
return vt(c), _t(() => o && clearInterval(o)), (t, n) => i.value.length ? (B(), I("section", nr, [
|
|
1722
|
+
L("h2", rr, U(t.$t(e.headingEntry)), 1),
|
|
1723
|
+
L("div", ir, [(B(!0), I(M, null, H(i.value, (n, r) => K((B(), I("div", {
|
|
1724
|
+
key: n.id,
|
|
1661
1725
|
class: "mwnf-featured-partners__card"
|
|
1662
|
-
}, {
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1726
|
+
}, [n.logo ? (B(), I("span", ar, [L("img", {
|
|
1727
|
+
src: n.logo,
|
|
1728
|
+
alt: n.name,
|
|
1729
|
+
class: "mwnf-featured-partners__logo"
|
|
1730
|
+
}, null, 8, or)])) : F("", !0), L("span", sr, [
|
|
1731
|
+
L("span", cr, U(n.name), 1),
|
|
1732
|
+
L("span", lr, [n.city ? (B(), I("span", ur, U(n.city) + ", ", 1)) : F("", !0), R(U(n.country), 1)]),
|
|
1733
|
+
L("span", dr, U(n.description), 1),
|
|
1734
|
+
n.route ? (B(), P(h, {
|
|
1735
|
+
key: 0,
|
|
1736
|
+
to: n.route,
|
|
1737
|
+
class: "mwnf-featured-partners__more"
|
|
1738
|
+
}, {
|
|
1739
|
+
default: G(() => [R(U(t.$t(e.readMoreEntry)) + " >>", 1)]),
|
|
1740
|
+
_: 1
|
|
1741
|
+
}, 8, ["to"])) : F("", !0),
|
|
1742
|
+
n.objectsRoute ? (B(), P(h, {
|
|
1743
|
+
key: 1,
|
|
1744
|
+
to: n.objectsRoute,
|
|
1745
|
+
class: "mwnf-featured-partners__more"
|
|
1746
|
+
}, {
|
|
1747
|
+
default: G(() => [R(U(t.$t(e.viewObjectsEntry)) + " >>", 1)]),
|
|
1748
|
+
_: 1
|
|
1749
|
+
}, 8, ["to"])) : F("", !0)
|
|
1750
|
+
])])), [[St, r === a.value]])), 128))]),
|
|
1751
|
+
i.value.length > 1 ? (B(), I("div", fr, [(B(!0), I(M, null, H(i.value, (e, n) => (B(), I("button", {
|
|
1675
1752
|
key: e.id,
|
|
1676
|
-
class:
|
|
1753
|
+
class: ht(["mwnf-featured-partners__bullet", { "mwnf-featured-partners__bullet--active": n === a.value }]),
|
|
1677
1754
|
"aria-label": `${t.$t("core.action.show")} ${e.name}`,
|
|
1678
1755
|
onClick: (e) => s(n)
|
|
1679
|
-
}, null, 10,
|
|
1680
|
-
])) :
|
|
1756
|
+
}, null, 10, pr))), 128))])) : F("", !0)
|
|
1757
|
+
])) : F("", !0);
|
|
1681
1758
|
}
|
|
1682
|
-
},
|
|
1759
|
+
}, gr = { class: "mwnf-sibling-galleries" }, _r = {
|
|
1683
1760
|
key: 0,
|
|
1684
1761
|
class: "mwnf-sibling-galleries__galleries"
|
|
1685
|
-
},
|
|
1762
|
+
}, vr = { class: "mwnf-sibling-galleries__header" }, yr = { class: "mwnf-sibling-galleries__heading" }, br = ["href"], xr = { class: "mwnf-sibling-galleries__grid" }, Sr = {
|
|
1686
1763
|
key: 0,
|
|
1687
1764
|
class: "mwnf-sibling-galleries__image"
|
|
1688
|
-
},
|
|
1765
|
+
}, Cr = ["src", "alt"], wr = {
|
|
1689
1766
|
key: 1,
|
|
1690
1767
|
class: "mwnf-sibling-galleries__image mwnf-sibling-galleries__image--empty"
|
|
1691
|
-
},
|
|
1768
|
+
}, Tr = { class: "mwnf-sibling-galleries__name" }, Er = {
|
|
1692
1769
|
key: 1,
|
|
1693
1770
|
class: "mwnf-sibling-galleries__museums"
|
|
1694
|
-
},
|
|
1771
|
+
}, Dr = { class: "mwnf-sibling-galleries__heading" }, Or = { class: "mwnf-sibling-galleries__museums-grid" }, kr = ["href"], Ar = {
|
|
1772
|
+
key: 0,
|
|
1773
|
+
class: "mwnf-sibling-galleries__museum-image mwnf-sibling-galleries__museum-image--picture"
|
|
1774
|
+
}, jr = ["src"], Mr = {
|
|
1775
|
+
key: 1,
|
|
1776
|
+
class: "mwnf-sibling-galleries__museum-image"
|
|
1777
|
+
}, Nr = { class: "mwnf-sibling-galleries__museum-name" }, Pr = {
|
|
1695
1778
|
__name: "SiblingGalleries",
|
|
1696
1779
|
props: {
|
|
1697
1780
|
galleries: {
|
|
@@ -1720,92 +1803,126 @@ var Yn = {
|
|
|
1720
1803
|
}
|
|
1721
1804
|
},
|
|
1722
1805
|
setup(e) {
|
|
1723
|
-
return (t, n) => (
|
|
1806
|
+
return (t, n) => (B(), I("section", gr, [e.galleries.length ? (B(), I("div", _r, [L("div", vr, [L("p", yr, U(t.$t(e.galleriesHeadingEntry)), 1), e.seeMoreGalleriesHref ? (B(), I("a", {
|
|
1724
1807
|
key: 0,
|
|
1725
1808
|
href: e.seeMoreGalleriesHref,
|
|
1726
1809
|
target: "_blank",
|
|
1727
1810
|
rel: "noopener",
|
|
1728
1811
|
class: "mwnf-sibling-galleries__see-more"
|
|
1729
|
-
},
|
|
1812
|
+
}, U(t.$t(e.seeMoreGalleriesEntry)) + " » ", 9, br)) : F("", !0)]), L("div", xr, [(B(!0), I(M, null, H(e.galleries, (e) => (B(), P(h, {
|
|
1730
1813
|
key: e.id,
|
|
1731
1814
|
to: e.route,
|
|
1732
|
-
class:
|
|
1815
|
+
class: ht(["mwnf-sibling-galleries__gallery", { "mwnf-sibling-galleries__gallery--no-link": !e.route }])
|
|
1733
1816
|
}, {
|
|
1734
|
-
default:
|
|
1817
|
+
default: G(() => [e.image ? (B(), I("span", Sr, [L("img", {
|
|
1735
1818
|
src: e.image,
|
|
1736
1819
|
alt: e.name
|
|
1737
|
-
}, null, 8,
|
|
1820
|
+
}, null, 8, Cr)])) : (B(), I("span", wr)), L("p", Tr, U(e.name), 1)]),
|
|
1738
1821
|
_: 2
|
|
1739
|
-
}, 1032, ["to", "class"]))), 128))])])) :
|
|
1822
|
+
}, 1032, ["to", "class"]))), 128))])])) : F("", !0), e.museums.length ? (B(), I("div", Er, [L("div", Dr, U(t.$t(e.museumsHeadingEntry)), 1), L("div", Or, [(B(!0), I(M, null, H(e.museums, (e) => (B(), I("a", {
|
|
1740
1823
|
key: e.name,
|
|
1741
1824
|
href: e.href || e.to,
|
|
1742
1825
|
target: "_blank",
|
|
1743
1826
|
rel: "noopener",
|
|
1744
1827
|
class: "mwnf-sibling-galleries__museum",
|
|
1745
|
-
style:
|
|
1828
|
+
style: gt({
|
|
1746
1829
|
"--mwnf-museum-bg": e.accent || "var(--mwnf-color-border)",
|
|
1747
1830
|
"--mwnf-museum-text": e.textColor || "inherit"
|
|
1748
1831
|
})
|
|
1749
|
-
}, [
|
|
1832
|
+
}, [e.image ? (B(), I("div", Ar, [L("img", {
|
|
1833
|
+
src: e.image,
|
|
1834
|
+
alt: ""
|
|
1835
|
+
}, null, 8, jr)])) : (B(), I("div", Mr, U(e.name.split(" ").map((e) => e[0]).join("")), 1)), L("p", Nr, U(e.name), 1)], 12, kr))), 128))])])) : F("", !0)]));
|
|
1750
1836
|
}
|
|
1751
|
-
},
|
|
1837
|
+
}, Fr = /* @__PURE__ */ e({ default: () => Ur }), Ir = { class: "mwnf-dxa-home" }, Lr = {
|
|
1838
|
+
key: 0,
|
|
1839
|
+
class: "mwnf-dxa-home-logos"
|
|
1840
|
+
}, Rr = { class: "mwnf-dxa-home-logos__label" }, zr = { class: "mwnf-dxa-home-logos__list" }, Br = ["src", "alt"], Vr = 8, Hr = 4, Ur = {
|
|
1752
1841
|
__name: "Home",
|
|
1753
1842
|
setup(e) {
|
|
1754
|
-
let { t, locale: n } =
|
|
1755
|
-
|
|
1756
|
-
|
|
1843
|
+
let { t, locale: n } = X(), r = Nt(), i = N(() => r.links ?? {}), a = N(() => be(Vr)), s = V([]);
|
|
1844
|
+
vt(() => {
|
|
1845
|
+
s.value = ie(Hr);
|
|
1757
1846
|
});
|
|
1758
|
-
let
|
|
1847
|
+
let l = N(() => s.value.map((e) => ({
|
|
1759
1848
|
id: e.id,
|
|
1760
1849
|
name: e.names?.[n.value] ?? e.names?.en ?? e.slug,
|
|
1761
|
-
image: e.image_path ?
|
|
1762
|
-
route:
|
|
1763
|
-
}))),
|
|
1850
|
+
image: e.image_path ? de(e.image_path, "zoom") : null,
|
|
1851
|
+
route: re(e)
|
|
1852
|
+
}))), u = N(() => [
|
|
1764
1853
|
{
|
|
1765
1854
|
name: t("core.project.islamicArt"),
|
|
1766
|
-
href: `${
|
|
1855
|
+
href: `${i.value.islamicArt}/`,
|
|
1856
|
+
image: c(r.chrome, "dia.jpg"),
|
|
1767
1857
|
accent: "var(--mwnf-project-ISLandEPM, #ffcc00)",
|
|
1768
1858
|
textColor: "var(--mwnf-project-ISLandEPM-text, #000000)"
|
|
1769
1859
|
},
|
|
1770
1860
|
{
|
|
1771
1861
|
name: t("core.project.baroqueArt"),
|
|
1772
|
-
href: `${
|
|
1862
|
+
href: `${i.value.baroqueArt}/`,
|
|
1863
|
+
image: c(r.chrome, "dba.jpg"),
|
|
1773
1864
|
accent: "var(--mwnf-project-DBA, #001d66)",
|
|
1774
1865
|
textColor: "var(--mwnf-project-DBA-text, #ffffff)"
|
|
1775
1866
|
},
|
|
1776
1867
|
{
|
|
1777
1868
|
name: t("core.project.sharingHistory"),
|
|
1778
|
-
href: `${
|
|
1869
|
+
href: `${i.value.sharingHistory}/`,
|
|
1870
|
+
image: c(r.chrome, "sh.jpg"),
|
|
1779
1871
|
accent: "var(--mwnf-project-AWE, #900000)",
|
|
1780
1872
|
textColor: "var(--mwnf-project-AWE-text, #ffffff)"
|
|
1781
1873
|
}
|
|
1782
|
-
]),
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
"
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1874
|
+
]), d = N(() => (r.homeLogos ?? []).map((e) => ({
|
|
1875
|
+
image: o(r.chrome, e.image) ?? de(e.image, "gallery_logo"),
|
|
1876
|
+
href: e.href ?? "",
|
|
1877
|
+
alt: e.alt ? t(e.alt) : ""
|
|
1878
|
+
})).filter((e) => e.image)), f = N(() => `${i.value.galleries}/list`);
|
|
1879
|
+
return (e, n) => (B(), I("div", Ir, [
|
|
1880
|
+
z(hr, { partners: a.value }, null, 8, ["partners"]),
|
|
1881
|
+
d.value.length ? (B(), I("section", Lr, [L("p", Rr, U(W(t)("gallery.home.logosLabel")), 1), L("ul", zr, [(B(!0), I(M, null, H(d.value, (e) => (B(), I("li", { key: e.image }, [(B(), P(bt(e.href ? "a" : "span"), {
|
|
1882
|
+
class: "mwnf-dxa-home-logos__logo",
|
|
1883
|
+
href: e.href || void 0,
|
|
1884
|
+
title: e.alt || void 0,
|
|
1885
|
+
target: e.href ? "_blank" : void 0,
|
|
1886
|
+
rel: e.href ? "noopener" : void 0
|
|
1887
|
+
}, {
|
|
1888
|
+
default: G(() => [L("img", {
|
|
1889
|
+
src: e.image,
|
|
1890
|
+
alt: e.alt
|
|
1891
|
+
}, null, 8, Br)]),
|
|
1892
|
+
_: 2
|
|
1893
|
+
}, 1032, [
|
|
1894
|
+
"href",
|
|
1895
|
+
"title",
|
|
1896
|
+
"target",
|
|
1897
|
+
"rel"
|
|
1898
|
+
]))]))), 128))])])) : F("", !0),
|
|
1899
|
+
z(Pr, {
|
|
1900
|
+
galleries: l.value,
|
|
1901
|
+
museums: u.value,
|
|
1902
|
+
"galleries-heading-entry": "gallery.action.visitGalleries",
|
|
1903
|
+
"see-more-galleries-entry": "gallery.action.seeMoreGalleries",
|
|
1904
|
+
"see-more-galleries-href": f.value,
|
|
1905
|
+
"museums-heading-entry": "gallery.siblings.otherVirtualMuseums"
|
|
1906
|
+
}, null, 8, [
|
|
1907
|
+
"galleries",
|
|
1908
|
+
"museums",
|
|
1909
|
+
"see-more-galleries-href"
|
|
1910
|
+
])
|
|
1911
|
+
]));
|
|
1795
1912
|
}
|
|
1796
|
-
},
|
|
1913
|
+
}, Wr = /* @__PURE__ */ e({ default: () => Kr }), Gr = { class: "mwnf-dxa-item__languages" }, Kr = {
|
|
1797
1914
|
__name: "ItemDetail",
|
|
1798
1915
|
props: { id: {
|
|
1799
1916
|
type: String,
|
|
1800
1917
|
required: !0
|
|
1801
1918
|
} },
|
|
1802
1919
|
setup(e) {
|
|
1803
|
-
return (t, n) => (
|
|
1804
|
-
spec:
|
|
1920
|
+
return (t, n) => (B(), P(ut, {
|
|
1921
|
+
spec: W(we),
|
|
1805
1922
|
id: e.id,
|
|
1806
1923
|
class: "mwnf-dxa-item"
|
|
1807
1924
|
}, {
|
|
1808
|
-
header:
|
|
1925
|
+
header: G(({ languages: e, language: t, select: n }) => [L("div", Gr, [z(l, {
|
|
1809
1926
|
languages: e,
|
|
1810
1927
|
language: t,
|
|
1811
1928
|
onSelect: n
|
|
@@ -1813,62 +1930,62 @@ var Yn = {
|
|
|
1813
1930
|
"languages",
|
|
1814
1931
|
"language",
|
|
1815
1932
|
"onSelect"
|
|
1816
|
-
])]),
|
|
1933
|
+
])]), z(g)]),
|
|
1817
1934
|
_: 1
|
|
1818
1935
|
}, 8, ["spec", "id"]));
|
|
1819
1936
|
}
|
|
1820
|
-
},
|
|
1937
|
+
}, qr = /* @__PURE__ */ e({ default: () => Yr }), Jr = { class: "mwnf-dxa-timeline" }, Yr = {
|
|
1821
1938
|
__name: "Timeline",
|
|
1822
1939
|
setup(e) {
|
|
1823
1940
|
let t = {
|
|
1824
|
-
...
|
|
1941
|
+
...te,
|
|
1825
1942
|
entrance: !0
|
|
1826
1943
|
};
|
|
1827
|
-
return (e, n) => (
|
|
1944
|
+
return (e, n) => (B(), I("div", Jr, [z(C, {
|
|
1828
1945
|
spec: t,
|
|
1829
1946
|
class: "mwnf-dxa-timeline__form"
|
|
1830
|
-
}),
|
|
1947
|
+
}), z(W(q), {
|
|
1831
1948
|
class: "mwnf-prose mwnf-dxa-timeline__intro",
|
|
1832
1949
|
dir: "auto",
|
|
1833
1950
|
keypath: "gallery.timeline.intro"
|
|
1834
1951
|
})]));
|
|
1835
1952
|
}
|
|
1836
|
-
},
|
|
1953
|
+
}, Xr = /* @__PURE__ */ e({ default: () => Qr }), Zr = { class: "mwnf-dxa-home" }, Qr = {
|
|
1837
1954
|
__name: "Home",
|
|
1838
1955
|
setup(e) {
|
|
1839
|
-
return (e, t) => (
|
|
1956
|
+
return (e, t) => (B(), I("div", Zr));
|
|
1840
1957
|
}
|
|
1841
|
-
},
|
|
1958
|
+
}, $r = /* @__PURE__ */ e({ default: () => ti }), ei = { class: "mwnf-dxa-about" }, ti = {
|
|
1842
1959
|
__name: "About",
|
|
1843
1960
|
setup(e) {
|
|
1844
|
-
return (e, t) => (
|
|
1961
|
+
return (e, t) => (B(), I("div", ei, [z(n, { "about-mode": "" })]));
|
|
1845
1962
|
}
|
|
1846
|
-
},
|
|
1963
|
+
}, ni = /* @__PURE__ */ e({ default: () => ai }), ri = { class: "mwnf-dxa-themes" }, ii = { class: "mwnf-dxa-themes__container" }, ai = {
|
|
1847
1964
|
__name: "Themes",
|
|
1848
1965
|
setup(e) {
|
|
1849
|
-
let { listedThemes: t, romanFor: n, themeText: r } = Me, { t: i, locale: a } =
|
|
1966
|
+
let { listedThemes: t, romanFor: n, themeText: r } = Me, { t: i, locale: a } = X(), o = N(() => t.value.map((e) => ({
|
|
1850
1967
|
title: r(e, a.value).title ?? e.internal_name ?? "",
|
|
1851
1968
|
number: n(e.display_order),
|
|
1852
1969
|
children: [{
|
|
1853
1970
|
title: i("exhibition.theme.overview"),
|
|
1854
|
-
to:
|
|
1971
|
+
to: dt(e)
|
|
1855
1972
|
}, ...(e.sub_themes ?? []).map((e) => ({
|
|
1856
1973
|
title: r(e, a.value).title ?? e.internal_name ?? "",
|
|
1857
|
-
to:
|
|
1974
|
+
to: dt(e)
|
|
1858
1975
|
}))]
|
|
1859
1976
|
})));
|
|
1860
|
-
return (e, t) => (
|
|
1977
|
+
return (e, t) => (B(), I("div", ri, [L("div", ii, [z(m, {
|
|
1861
1978
|
cards: o.value,
|
|
1862
1979
|
variant: "accordion"
|
|
1863
1980
|
}, null, 8, ["cards"])])]));
|
|
1864
1981
|
}
|
|
1865
|
-
},
|
|
1982
|
+
}, oi = /* @__PURE__ */ e({ default: () => li }), si = { class: "mwnf-dxa-theme-gallery__empty" }, ci = {
|
|
1866
1983
|
key: 1,
|
|
1867
1984
|
class: "mwnf-loader"
|
|
1868
|
-
},
|
|
1985
|
+
}, li = {
|
|
1869
1986
|
__name: "ThemeGallery",
|
|
1870
1987
|
setup(e) {
|
|
1871
|
-
let { pictureById: t, pictureParent: n, romanFor: r, themeByRouteId: i, themeText: a, themeTree: o } = Me, s =
|
|
1988
|
+
let { pictureById: t, pictureParent: n, romanFor: r, themeByRouteId: i, themeText: a, themeTree: o } = Me, s = Pt(), { t: c, locale: l } = X(), u = N(() => i(s.params.id)), d = N(() => {
|
|
1872
1989
|
let e = /* @__PURE__ */ new Set();
|
|
1873
1990
|
if (!u.value) return e;
|
|
1874
1991
|
for (let r of o.itemsUnder(u.value.id)) {
|
|
@@ -1876,44 +1993,44 @@ var Yn = {
|
|
|
1876
1993
|
i && e.add(i.id);
|
|
1877
1994
|
}
|
|
1878
1995
|
return e;
|
|
1879
|
-
}),
|
|
1996
|
+
}), f = N(() => a(u.value, l.value).title ?? u.value?.internal_name ?? ""), p = N(() => ({
|
|
1880
1997
|
entity: "items",
|
|
1881
|
-
scope: (e) =>
|
|
1998
|
+
scope: (e) => d.value.has(e.id),
|
|
1882
1999
|
sort: { undated: "first" },
|
|
1883
2000
|
variant: "grid",
|
|
1884
2001
|
recordRoute: "item",
|
|
1885
|
-
record: (e, t) =>
|
|
2002
|
+
record: (e, t) => $e(e, t.t),
|
|
1886
2003
|
actionLabel: "catalogue.results.seeDatabaseEntry",
|
|
1887
2004
|
empty: "exhibition.theme.noRecords",
|
|
1888
2005
|
summary: () => [{
|
|
1889
2006
|
label: c("exhibition.theme.galleryLabel"),
|
|
1890
|
-
value: `${c("exhibition.theme.romanLabel")} ${r(u.value?.display_order ?? 1)} | ${
|
|
2007
|
+
value: `${c("exhibition.theme.romanLabel")} ${r(u.value?.display_order ?? 1)} | ${f.value}`
|
|
1891
2008
|
}]
|
|
1892
2009
|
}));
|
|
1893
|
-
return (e, t) => u.value ? (
|
|
2010
|
+
return (e, t) => u.value ? (B(), P(v, {
|
|
1894
2011
|
key: 0,
|
|
1895
|
-
spec:
|
|
2012
|
+
spec: p.value,
|
|
1896
2013
|
class: "mwnf-dxa-theme-gallery"
|
|
1897
2014
|
}, {
|
|
1898
|
-
before:
|
|
1899
|
-
empty:
|
|
2015
|
+
before: G(() => [z(g)]),
|
|
2016
|
+
empty: G(() => [L("p", si, U(W(c)("exhibition.theme.noRecords")), 1)]),
|
|
1900
2017
|
_: 1
|
|
1901
|
-
}, 8, ["spec"])) : (
|
|
2018
|
+
}, 8, ["spec"])) : (B(), I("div", ci, U(W(c)("exhibition.theme.notInExhibition")), 1));
|
|
1902
2019
|
}
|
|
1903
|
-
},
|
|
2020
|
+
}, ui = /* @__PURE__ */ e({ default: () => fi }), di = { class: "mwnf-dxa-item__languages" }, fi = {
|
|
1904
2021
|
__name: "ItemDetail",
|
|
1905
2022
|
props: { id: {
|
|
1906
2023
|
type: String,
|
|
1907
2024
|
required: !0
|
|
1908
2025
|
} },
|
|
1909
2026
|
setup(e) {
|
|
1910
|
-
return (t, n) => (
|
|
1911
|
-
spec:
|
|
2027
|
+
return (t, n) => (B(), P(ut, {
|
|
2028
|
+
spec: W(lt),
|
|
1912
2029
|
id: e.id,
|
|
1913
|
-
"data-getter": (e) =>
|
|
2030
|
+
"data-getter": (e) => W(k).get(e),
|
|
1914
2031
|
class: "mwnf-dxa-item"
|
|
1915
2032
|
}, {
|
|
1916
|
-
header:
|
|
2033
|
+
header: G(({ languages: e, language: t, select: n }) => [L("div", di, [z(l, {
|
|
1917
2034
|
languages: e,
|
|
1918
2035
|
language: t,
|
|
1919
2036
|
onSelect: n
|
|
@@ -1921,7 +2038,7 @@ var Yn = {
|
|
|
1921
2038
|
"languages",
|
|
1922
2039
|
"language",
|
|
1923
2040
|
"onSelect"
|
|
1924
|
-
])]),
|
|
2041
|
+
])]), z(g)]),
|
|
1925
2042
|
_: 1
|
|
1926
2043
|
}, 8, [
|
|
1927
2044
|
"spec",
|
|
@@ -1929,7 +2046,7 @@ var Yn = {
|
|
|
1929
2046
|
"data-getter"
|
|
1930
2047
|
]));
|
|
1931
2048
|
}
|
|
1932
|
-
},
|
|
2049
|
+
}, pi = /* @__PURE__ */ e({ default: () => mi }), mi = {
|
|
1933
2050
|
__name: "RelatedContent",
|
|
1934
2051
|
setup(e) {
|
|
1935
2052
|
let t = {
|
|
@@ -1942,24 +2059,24 @@ var Yn = {
|
|
|
1942
2059
|
2,
|
|
1943
2060
|
3,
|
|
1944
2061
|
4
|
|
1945
|
-
], { t: r, locale: i } =
|
|
2062
|
+
], { t: r, locale: i } = X();
|
|
1946
2063
|
function a(e) {
|
|
1947
2064
|
return e?.[i.value] ?? e?.en ?? "";
|
|
1948
2065
|
}
|
|
1949
2066
|
function o(e) {
|
|
1950
|
-
return e.document_path ?
|
|
2067
|
+
return e.document_path ? O(e.document_path, "hi_res") : e.url ?? null;
|
|
1951
2068
|
}
|
|
1952
2069
|
function s(e) {
|
|
1953
|
-
return a(e.titles) ?
|
|
2070
|
+
return a(e.titles) ? A(a(e.titles)) : a(e.texts) ? A(a(e.texts)) : o(e) || r("exhibition.relatedCategory.unknown");
|
|
1954
2071
|
}
|
|
1955
2072
|
function c(e) {
|
|
1956
2073
|
if (!a(e.titles)) return "";
|
|
1957
2074
|
let t = [];
|
|
1958
|
-
return (e.entity_location || e.entity_country) && t.push([e.entity_location, e.entity_country ?
|
|
2075
|
+
return (e.entity_location || e.entity_country) && t.push([e.entity_location, e.entity_country ? ct(e.entity_country) : ""].filter(Boolean).join(", ")), (e.authors || e.type_resource) && t.push([e.authors, e.type_resource].filter(Boolean).join(", ")), a(e.descriptions) && t.push(A(a(e.descriptions))), e.further_reading && t.push(A(e.further_reading)), t.join(" — ");
|
|
1959
2076
|
}
|
|
1960
2077
|
function l() {
|
|
1961
2078
|
let e = /* @__PURE__ */ new Map();
|
|
1962
|
-
for (let t of
|
|
2079
|
+
for (let t of et.value ?? []) {
|
|
1963
2080
|
let n = e.get(t.category_id);
|
|
1964
2081
|
n ? n.push(t) : e.set(t.category_id, [t]);
|
|
1965
2082
|
}
|
|
@@ -1980,20 +2097,20 @@ var Yn = {
|
|
|
1980
2097
|
to: { name: "home" }
|
|
1981
2098
|
}
|
|
1982
2099
|
};
|
|
1983
|
-
return (e, t) => (
|
|
2100
|
+
return (e, t) => (B(), P(_, {
|
|
1984
2101
|
spec: u,
|
|
1985
2102
|
class: "mwnf-dxa-related"
|
|
1986
2103
|
}));
|
|
1987
2104
|
}
|
|
1988
|
-
},
|
|
2105
|
+
}, hi = /* @__PURE__ */ e({ default: () => gi }), gi = {
|
|
1989
2106
|
__name: "Timeline",
|
|
1990
2107
|
setup(e) {
|
|
1991
|
-
let t =
|
|
2108
|
+
let t = N(() => ({
|
|
1992
2109
|
...Be.value,
|
|
1993
2110
|
entrance: !0
|
|
1994
2111
|
}));
|
|
1995
|
-
return (e, n) => (
|
|
1996
|
-
after:
|
|
2112
|
+
return (e, n) => (B(), P(C, { spec: t.value }, {
|
|
2113
|
+
after: G(() => [z(W(q), {
|
|
1997
2114
|
class: "mwnf-prose mwnf-dxa-timeline__intro",
|
|
1998
2115
|
dir: "auto",
|
|
1999
2116
|
keypath: "exhibition.timeline.intro"
|
|
@@ -2003,4 +2120,4 @@ var Yn = {
|
|
|
2003
2120
|
}
|
|
2004
2121
|
};
|
|
2005
2122
|
//#endregion
|
|
2006
|
-
export {
|
|
2123
|
+
export { ti as ExhibitionAbout, Cn as ExhibitionCollectionResults, Tn as ExhibitionCollectionSearch, Qr as ExhibitionHome, fi as ExhibitionItemDetail, Dn as ExhibitionPartnerObjects, dn as ExhibitionPartners, mi as ExhibitionRelatedContent, cn as ExhibitionSearchHowTo, _n as ExhibitionSearchResults, Qn as ExhibitionShell, n as ExhibitionTheme, li as ExhibitionThemeGallery, ai as ExhibitionThemes, gi as ExhibitionTimeline, yn as ExhibitionTimelineGallery, vn as ExhibitionTimelineResults, hr as FeaturedPartners, Lt as GalleryAbout, en as GalleryCollectionResults, rn as GalleryCollectionSearch, Rt as GalleryCredits, Ur as GalleryHome, Kr as GalleryItemDetail, sn as GalleryPartnerObjects, Vt as GalleryPartners, zt as GallerySearchHowTo, qt as GallerySearchResults, Kn as GalleryShell, Yr as GalleryTimeline, Xt as GalleryTimelineGallery, Jt as GalleryTimelineResults, ut as ItemDetailView, $ as PartnerDetail, t as PictureGallery, r as PictureNarrative, Zn as PopupLogo, Pr as SiblingGalleries, pt as exhibitionAboutSpec, tr as exhibitionConfig, E as exhibitionPartnerDetail, ft as exhibitionThemeSpec, er as galleryConfig, fe as galleryPartnerDetail, Hn as standardRoutes, dt as themeNodeRoute };
|