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