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