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