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