@museumwnf/viewer-layout 3.66.0 → 3.67.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/dist/Theme-BM4TFT0i.js +412 -0
- package/dist/dxa.js +764 -745
- package/package.json +1 -1
- package/src/dxa/testing.js +18 -5
- package/src/styles/dxa-exhibition.css +23 -0
- package/src/styles/dxa-gallery.css +87 -4
- package/dist/Theme-TtISKJme.js +0 -391
package/dist/dxa.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { s as e } from "./OnDisplayIn-BH3Bqope.js";
|
|
2
2
|
import { c as t, d as n, t as r } from "./PartnerMap-DdyMLtgH.js";
|
|
3
|
-
import { a as i, i as a, n as o
|
|
4
|
-
import { t as
|
|
5
|
-
import { A as
|
|
6
|
-
import { A as S, C as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { i as
|
|
10
|
-
import { i as
|
|
11
|
-
import { n as
|
|
12
|
-
import { n as
|
|
13
|
-
import { n as
|
|
14
|
-
import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as
|
|
15
|
-
import { I18nText as W, NotFoundView as
|
|
16
|
-
import { RouterLink as Y, useRoute as X, useRouter as
|
|
17
|
-
import { romanFor as
|
|
3
|
+
import { a as i, i as a, n as o } from "./TimelineEventList-CIkKxyQu.js";
|
|
4
|
+
import { t as s } from "./RecordView-Bgd5mm_e.js";
|
|
5
|
+
import { A as c, C as l, D as u, E as d, M as f, N as p, O as m, S as h, T as g, _, a as v, b as y, c as ee, d as te, f as b, g as x, h as ne, i as re, j as ie, k as ae, l as oe, m as se, n as ce, o as le, p as ue, r as de, s as fe, t as pe, u as me, v as he, w as ge, x as _e, y as ve } from "./data-DlmKSxgh.js";
|
|
6
|
+
import { A as S, C as ye, D as be, E as xe, M as Se, N as Ce, O as we, S as Te, T as Ee, _ as De, a as Oe, b as ke, c as C, d as Ae, f as je, g as Me, h as Ne, i as Pe, j as w, k as Fe, l as Ie, m as Le, n as Re, o as ze, p as Be, r as Ve, s as He, t as Ue, u as We, v as T, w as Ge, x as Ke, y as qe } from "./data-CtYatYQi.js";
|
|
7
|
+
import { n as Je, r as E, t as Ye } from "./TimelineResultsView-BF3VoCs_.js";
|
|
8
|
+
import { t as Xe } from "./SiteShell-UsZ_cpe9.js";
|
|
9
|
+
import { i as Ze, n as Qe, r as $e, t as et } from "./chrome-Bv_mLlHM.js";
|
|
10
|
+
import { i as tt } from "./PageShell-CIGVv7sK.js";
|
|
11
|
+
import { n as nt, t as rt } from "./LegacyItemSheet-DO80usKA.js";
|
|
12
|
+
import { n as it, r as D } from "./Theme-BM4TFT0i.js";
|
|
13
|
+
import { n as at, r as ot, t as st } from "./themeSpecs-DePD36Wi.js";
|
|
14
|
+
import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as ct, createTextVNode as P, createVNode as F, normalizeClass as I, normalizeStyle as lt, onBeforeUnmount as ut, onMounted as dt, openBlock as L, reactive as ft, ref as R, renderList as z, renderSlot as pt, resolveDynamicComponent as mt, toDisplayString as B, unref as V, vModelCheckbox as ht, vModelSelect as gt, vModelText as _t, vShow as vt, watch as yt, watchEffect as bt, withCtx as H, withDirectives as U, withModifiers as xt } from "vue";
|
|
15
|
+
import { I18nText as W, NotFoundView as St, languageLabels as Ct, loadEntities as wt, mwnfLinks as G, offeredLanguages as Tt, renderBlock as Et, renderInline as K, renderPlain as Dt, sectionMeta as Ot, useDataPackage as kt, useFacets as At, useI18n as q, useKeywordIndex as jt, useSection as Mt, useSiteConfig as Nt, withEraWords as Pt, yearBuckets as J, yearBucketsFromRange as Ft } from "@museumwnf/viewer-core";
|
|
16
|
+
import { RouterLink as Y, useRoute as X, useRouter as It } from "vue-router";
|
|
17
|
+
import { romanFor as Lt } from "@museumwnf/viewer-core/dxa";
|
|
18
18
|
// src/dxa/PartnerDetail.vue
|
|
19
|
-
var
|
|
19
|
+
var Rt = { class: "mwnf-dxa-profile-languages" }, zt = { class: "mwnf-dxa-profile-map-label" }, Bt = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "mwnf-dxa-profile-no-map"
|
|
22
|
-
},
|
|
22
|
+
}, Vt = {
|
|
23
23
|
__name: "PartnerDetail",
|
|
24
24
|
props: {
|
|
25
25
|
id: {
|
|
@@ -36,14 +36,14 @@ var zt = { class: "mwnf-dxa-profile-languages" }, Bt = { class: "mwnf-dxa-profil
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
setup(i) {
|
|
39
|
-
let a = i, { t:
|
|
40
|
-
return (a, u) => i.family.visible(i.id) ? (L(), A(
|
|
39
|
+
let a = i, { t: c } = q(), l = k(() => a.family.labels?.[a.variant] ?? a.family.labels?.partner ?? {});
|
|
40
|
+
return (a, u) => i.family.visible(i.id) ? (L(), A(s, {
|
|
41
41
|
key: 0,
|
|
42
42
|
spec: i.family.spec,
|
|
43
43
|
id: i.id,
|
|
44
44
|
class: I(["mwnf-dxa-partner-profile", i.family.className])
|
|
45
45
|
}, {
|
|
46
|
-
header: H(({ languages: n, language: r, select: a }) => [N("div",
|
|
46
|
+
header: H(({ languages: n, language: r, select: a }) => [N("div", Rt, [F(t, {
|
|
47
47
|
languages: n,
|
|
48
48
|
language: r,
|
|
49
49
|
from: i.family.legacyMap ? 1 : 2,
|
|
@@ -62,19 +62,19 @@ var zt = { class: "mwnf-dxa-profile-languages" }, Bt = { class: "mwnf-dxa-profil
|
|
|
62
62
|
media: i.family.media ?? {},
|
|
63
63
|
show: i.family.legacyMap ? { map: !1 } : {},
|
|
64
64
|
dir: a
|
|
65
|
-
},
|
|
65
|
+
}, ct({
|
|
66
66
|
actions: H(({ partner: e }) => [e.objectsRoute ? (L(), A(n, {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "mwnf-button",
|
|
69
69
|
to: e.objectsRoute
|
|
70
70
|
}, {
|
|
71
|
-
default: H(() => [P(B(V(
|
|
71
|
+
default: H(() => [P(B(V(c)(l.value.objects ?? "partner.action.viewObjects")), 1)]),
|
|
72
72
|
_: 1
|
|
73
73
|
}, 8, ["to"])) : j("", !0)]),
|
|
74
74
|
_: 2
|
|
75
75
|
}, [i.family.legacyMap ? {
|
|
76
76
|
name: "after",
|
|
77
|
-
fn: H(({ partner: e }) => [e.map ? (L(), M(O, { key: 0 }, [N("p",
|
|
77
|
+
fn: H(({ partner: e }) => [e.map ? (L(), M(O, { key: 0 }, [N("p", zt, B(V(c)(i.family.legacyMap.label)), 1), F(r, {
|
|
78
78
|
class: "mwnf-dxa-profile-map",
|
|
79
79
|
provider: "google",
|
|
80
80
|
latitude: e.map.latitude,
|
|
@@ -86,7 +86,7 @@ var zt = { class: "mwnf-dxa-profile-languages" }, Bt = { class: "mwnf-dxa-profil
|
|
|
86
86
|
"longitude",
|
|
87
87
|
"zoom",
|
|
88
88
|
"label"
|
|
89
|
-
])], 64)) : (L(), M("p",
|
|
89
|
+
])], 64)) : (L(), M("p", Bt))]),
|
|
90
90
|
key: "0"
|
|
91
91
|
} : void 0]), 1032, [
|
|
92
92
|
"partner",
|
|
@@ -100,9 +100,9 @@ var zt = { class: "mwnf-dxa-profile-languages" }, Bt = { class: "mwnf-dxa-profil
|
|
|
100
100
|
"spec",
|
|
101
101
|
"id",
|
|
102
102
|
"class"
|
|
103
|
-
])) : (L(), A(V(
|
|
103
|
+
])) : (L(), A(V(St), { key: 1 }));
|
|
104
104
|
}
|
|
105
|
-
},
|
|
105
|
+
}, Ht = {
|
|
106
106
|
__name: "TextPage",
|
|
107
107
|
props: {
|
|
108
108
|
body: {
|
|
@@ -131,50 +131,50 @@ var zt = { class: "mwnf-dxa-profile-languages" }, Bt = { class: "mwnf-dxa-profil
|
|
|
131
131
|
"blank-lines": ""
|
|
132
132
|
}, null, 8, ["keypath"])], 2));
|
|
133
133
|
}
|
|
134
|
-
},
|
|
134
|
+
}, Ut = {
|
|
135
135
|
__name: "About",
|
|
136
136
|
setup(e) {
|
|
137
|
-
return (e, t) => (L(), A(
|
|
137
|
+
return (e, t) => (L(), A(Ht, {
|
|
138
138
|
kind: "about",
|
|
139
139
|
body: "gallery.about.body"
|
|
140
140
|
}));
|
|
141
141
|
}
|
|
142
|
-
},
|
|
142
|
+
}, Wt = {
|
|
143
143
|
__name: "Credits",
|
|
144
144
|
props: { bodyKey: {
|
|
145
145
|
type: String,
|
|
146
146
|
required: !0
|
|
147
147
|
} },
|
|
148
148
|
setup(e) {
|
|
149
|
-
return (t, n) => (L(), A(
|
|
149
|
+
return (t, n) => (L(), A(Ht, {
|
|
150
150
|
kind: "credits",
|
|
151
151
|
body: e.bodyKey
|
|
152
152
|
}, null, 8, ["body"]));
|
|
153
153
|
}
|
|
154
|
-
},
|
|
154
|
+
}, Gt = { class: "mwnf-dxa-exhibition-credits" }, Kt = {
|
|
155
155
|
__name: "Credits",
|
|
156
156
|
props: { bodyKey: {
|
|
157
157
|
type: String,
|
|
158
158
|
required: !0
|
|
159
159
|
} },
|
|
160
160
|
setup(t) {
|
|
161
|
-
return (n, r) => (L(), M("div",
|
|
161
|
+
return (n, r) => (L(), M("div", Gt, [F(e), F(V(W), {
|
|
162
162
|
class: "mwnf-dxa-exhibition-credits__body",
|
|
163
163
|
dir: "auto",
|
|
164
164
|
keypath: t.bodyKey,
|
|
165
165
|
"blank-lines": ""
|
|
166
166
|
}, null, 8, ["keypath"])]));
|
|
167
167
|
}
|
|
168
|
-
},
|
|
168
|
+
}, qt = {
|
|
169
169
|
__name: "SearchHowTo",
|
|
170
170
|
setup(e) {
|
|
171
|
-
return (e, t) => (L(), A(
|
|
171
|
+
return (e, t) => (L(), A(Ht, {
|
|
172
172
|
kind: "how-to",
|
|
173
173
|
body: "catalogue.search.howToEssay",
|
|
174
174
|
back: { name: "collection" }
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
|
-
},
|
|
177
|
+
}, Jt = {
|
|
178
178
|
DGA: "dga",
|
|
179
179
|
ISL: "isl",
|
|
180
180
|
EPM: "isl",
|
|
@@ -182,14 +182,14 @@ var zt = { class: "mwnf-dxa-profile-languages" }, Bt = { class: "mwnf-dxa-profil
|
|
|
182
182
|
BAR: "dba",
|
|
183
183
|
GALLERIES: "galleries",
|
|
184
184
|
DCA: "dca"
|
|
185
|
-
},
|
|
185
|
+
}, Yt = {
|
|
186
186
|
partner: "gallery.partners.statusPartner",
|
|
187
187
|
affiliate: "gallery.partners.statusAffiliate"
|
|
188
188
|
};
|
|
189
|
-
function Z(e, t =
|
|
189
|
+
function Z(e, t = Yt) {
|
|
190
190
|
let n = e?.own_project;
|
|
191
191
|
if (!n?.name) return null;
|
|
192
|
-
let r = String(n.backward_compatibility ?? "").split(":").pop().toUpperCase(), i = n.exhibition ? "exh" :
|
|
192
|
+
let r = String(n.backward_compatibility ?? "").split(":").pop().toUpperCase(), i = n.exhibition ? "exh" : Jt[r] ?? "", a = n.level === "partner" || !!n.exhibition;
|
|
193
193
|
return {
|
|
194
194
|
name: n.name,
|
|
195
195
|
status: a ? t.partner : t.affiliate,
|
|
@@ -197,42 +197,42 @@ function Z(e, t = Xt) {
|
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
// src/dxa/gallery/Partners.vue
|
|
200
|
-
var
|
|
200
|
+
var Xt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Zt = { class: "mwnf-dxa-gallery-partners__options" }, Qt = { class: "mwnf-dxa-gallery-partners__order" }, $t = ["onClick"], en = { class: "mwnf-dxa-gallery-partners__country" }, tn = { class: "mwnf-dxa-gallery-partners__partner" }, nn = { class: "mwnf-dxa-gallery-partners__text" }, rn = ["innerHTML"], an = {
|
|
201
201
|
key: 0,
|
|
202
202
|
class: "mwnf-dxa-gallery-partners__city"
|
|
203
|
-
},
|
|
203
|
+
}, on = { class: "mwnf-dxa-partner-badge__status" }, sn = { class: "mwnf-dxa-gallery-partners__links" }, cn = { class: "mwnf-dxa-gallery-partners__logo" }, ln = ["src", "alt"], un = {
|
|
204
204
|
__name: "Partners",
|
|
205
205
|
setup(t) {
|
|
206
206
|
let r = {
|
|
207
|
-
...
|
|
208
|
-
objectsRoute:
|
|
207
|
+
...l,
|
|
208
|
+
objectsRoute: g,
|
|
209
209
|
orderToggle: !1,
|
|
210
210
|
tiebreak: (e) => e.own_project?.name ?? ""
|
|
211
211
|
};
|
|
212
|
-
return (t, i) => (L(), M("div",
|
|
213
|
-
before: H(({ t, orderDir: n, toggleOrder: r }) => [N("div",
|
|
212
|
+
return (t, i) => (L(), M("div", Xt, [F(Je, { spec: r }, {
|
|
213
|
+
before: H(({ t, orderDir: n, toggleOrder: r }) => [N("div", Zt, [F(e), N("div", Qt, [N("button", {
|
|
214
214
|
type: "button",
|
|
215
215
|
onClick: r
|
|
216
|
-
}, B(t(n === "asc" ? "partner.list.sortDescending" : "partner.list.sortAscending")), 9,
|
|
216
|
+
}, B(t(n === "asc" ? "partner.list.sortDescending" : "partner.list.sortAscending")), 9, $t)])]), F(V(W), {
|
|
217
217
|
id: "mwnf-dxa-partners-intro",
|
|
218
218
|
class: "mwnf-dxa-gallery-partners__intro",
|
|
219
219
|
dir: "auto",
|
|
220
220
|
keypath: "gallery.partners.intro"
|
|
221
221
|
})]),
|
|
222
|
-
"group-heading": H(({ group: e }) => [N("div",
|
|
223
|
-
row: H(({ partner: e, view: t, t: r }) => [N("div",
|
|
222
|
+
"group-heading": H(({ group: e }) => [N("div", en, B(e.label), 1)]),
|
|
223
|
+
row: H(({ partner: e, view: t, t: r }) => [N("div", tn, [N("div", nn, [
|
|
224
224
|
F(n, {
|
|
225
225
|
class: "mwnf-dxa-gallery-partners__name",
|
|
226
226
|
to: t.route
|
|
227
227
|
}, {
|
|
228
|
-
default: H(() => [N("span", { innerHTML: t.name }, null, 8,
|
|
228
|
+
default: H(() => [N("span", { innerHTML: t.name }, null, 8, rn), t.city ? (L(), M("span", an, ", " + B(t.city), 1)) : j("", !0)]),
|
|
229
229
|
_: 2
|
|
230
230
|
}, 1032, ["to"]),
|
|
231
231
|
V(Z)(e) ? (L(), M("div", {
|
|
232
232
|
key: 0,
|
|
233
233
|
class: I(["mwnf-dxa-partner-badge", V(Z)(e).tone && `mwnf-dxa-partner-badge--${V(Z)(e).tone}`])
|
|
234
|
-
}, [P(B(V(Z)(e).name) + " ", 1), N("span",
|
|
235
|
-
N("div",
|
|
234
|
+
}, [P(B(V(Z)(e).name) + " ", 1), N("span", on, B(r(V(Z)(e).status)), 1)], 2)) : j("", !0),
|
|
235
|
+
N("div", sn, [F(n, { to: t.route }, {
|
|
236
236
|
default: H(() => [P(B(r("partner.action.readMore")), 1)]),
|
|
237
237
|
_: 2
|
|
238
238
|
}, 1032, ["to"]), e.item_count > 0 && t.objectsRoute ? (L(), M(O, { key: 0 }, [i[0] ||= N("span", {
|
|
@@ -242,19 +242,104 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
242
242
|
default: H(() => [P(B(r("partner.action.viewObjects")), 1)]),
|
|
243
243
|
_: 2
|
|
244
244
|
}, 1032, ["to"])], 64)) : j("", !0)])
|
|
245
|
-
]), N("div",
|
|
245
|
+
]), N("div", cn, [t.logos?.[0] ? (L(), M("img", {
|
|
246
246
|
key: 0,
|
|
247
247
|
src: t.logos[0].url,
|
|
248
248
|
alt: t.plainName,
|
|
249
249
|
loading: "lazy"
|
|
250
|
-
}, null, 8,
|
|
250
|
+
}, null, 8, ln)) : j("", !0)])])]),
|
|
251
251
|
_: 1
|
|
252
252
|
})]));
|
|
253
253
|
}
|
|
254
|
-
},
|
|
254
|
+
}, dn = ["disabled"], fn = { key: 0 }, pn = ["disabled"], mn = { key: 0 }, hn = [
|
|
255
|
+
"disabled",
|
|
256
|
+
"aria-current",
|
|
257
|
+
"onClick"
|
|
258
|
+
], gn = ["disabled"], _n = { key: 0 }, vn = ["disabled"], yn = { key: 0 }, Q = {
|
|
259
|
+
__name: "LegacyPages",
|
|
260
|
+
props: {
|
|
261
|
+
pageInfo: {
|
|
262
|
+
type: Object,
|
|
263
|
+
required: !0
|
|
264
|
+
},
|
|
265
|
+
family: {
|
|
266
|
+
type: String,
|
|
267
|
+
default: "exhibition"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
emits: ["navigate"],
|
|
271
|
+
setup(e, { emit: t }) {
|
|
272
|
+
let n = e, r = t, { t: i } = q(), a = k(() => `mwnf-dxa-${n.family}-pages`), o = (e) => i(`${n.family}.pages.${e}`), s = (e) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(`(max-width: ${e}px)`).matches, c = s(499), [l, u, d] = s(599) ? [
|
|
273
|
+
3,
|
|
274
|
+
2,
|
|
275
|
+
5
|
|
276
|
+
] : s(724) ? [
|
|
277
|
+
5,
|
|
278
|
+
4,
|
|
279
|
+
9
|
|
280
|
+
] : s(849) ? [
|
|
281
|
+
6,
|
|
282
|
+
5,
|
|
283
|
+
11
|
|
284
|
+
] : [
|
|
285
|
+
8,
|
|
286
|
+
7,
|
|
287
|
+
15
|
|
288
|
+
], f = k(() => n.pageInfo?.currentPage ?? 1), p = k(() => n.pageInfo?.lastPage ?? 1), m = k(() => {
|
|
289
|
+
let e = 1, t = p.value;
|
|
290
|
+
if (p.value > d) {
|
|
291
|
+
let n = f.value;
|
|
292
|
+
n > l && (e = n - u), n + u < p.value ? t = e <= u && n <= u ? d : n + u : (e = p.value - (d - 1), t = p.value);
|
|
293
|
+
}
|
|
294
|
+
let n = [];
|
|
295
|
+
for (let r = e; r <= t; r++) n.push(r);
|
|
296
|
+
return n;
|
|
297
|
+
}), h = (e) => e < 1 || e > p.value || e === f.value;
|
|
298
|
+
function g(e) {
|
|
299
|
+
h(e) || r("navigate", e);
|
|
300
|
+
}
|
|
301
|
+
return (e, t) => p.value > 1 ? (L(), M("div", {
|
|
302
|
+
key: 0,
|
|
303
|
+
class: I(a.value)
|
|
304
|
+
}, [
|
|
305
|
+
N("button", {
|
|
306
|
+
type: "button",
|
|
307
|
+
class: I([`${a.value}__button`, { "is-disabled": h(1) }]),
|
|
308
|
+
disabled: h(1),
|
|
309
|
+
onClick: t[0] ||= (e) => g(1)
|
|
310
|
+
}, [t[4] ||= P(" <<", -1), V(c) ? j("", !0) : (L(), M("span", fn, B(" " + o("first")), 1))], 10, dn),
|
|
311
|
+
N("button", {
|
|
312
|
+
type: "button",
|
|
313
|
+
class: I([`${a.value}__button`, { "is-disabled": h(f.value - 1) }]),
|
|
314
|
+
disabled: h(f.value - 1),
|
|
315
|
+
onClick: t[1] ||= (e) => g(f.value - 1)
|
|
316
|
+
}, [t[5] ||= P(" <", -1), V(c) ? j("", !0) : (L(), M("span", mn, B(" " + o("previous")), 1))], 10, pn),
|
|
317
|
+
N("div", { class: I(`${a.value}__numbers`) }, [(L(!0), M(O, null, z(m.value, (e) => (L(), M("button", {
|
|
318
|
+
key: e,
|
|
319
|
+
type: "button",
|
|
320
|
+
class: I([`${a.value}__button`, { "is-disabled": h(e) }]),
|
|
321
|
+
disabled: h(e),
|
|
322
|
+
"aria-current": e === f.value ? "page" : void 0,
|
|
323
|
+
onClick: (t) => g(e)
|
|
324
|
+
}, B(e), 11, hn))), 128))], 2),
|
|
325
|
+
N("button", {
|
|
326
|
+
type: "button",
|
|
327
|
+
class: I([`${a.value}__button`, { "is-disabled": h(f.value + 1) }]),
|
|
328
|
+
disabled: h(f.value + 1),
|
|
329
|
+
onClick: t[2] ||= (e) => g(f.value + 1)
|
|
330
|
+
}, [V(c) ? j("", !0) : (L(), M("span", _n, B(o("next") + " "), 1)), t[6] ||= P("> ", -1)], 10, gn),
|
|
331
|
+
N("button", {
|
|
332
|
+
type: "button",
|
|
333
|
+
class: I([`${a.value}__button`, { "is-disabled": h(p.value) }]),
|
|
334
|
+
disabled: h(p.value),
|
|
335
|
+
onClick: t[3] ||= (e) => g(p.value)
|
|
336
|
+
}, [V(c) ? j("", !0) : (L(), M("span", yn, B(o("last") + " "), 1)), t[7] ||= P(">> ", -1)], 10, vn)
|
|
337
|
+
], 2)) : j("", !0);
|
|
338
|
+
}
|
|
339
|
+
}, bn = ["onMouseenter"], xn = { class: "mwnf-dxa-grid__frame" }, Sn = ["src", "alt"], Cn = ["src", "alt"], wn = { class: "mwnf-dxa-grid__text" }, Tn = ["innerHTML"], En = { class: "mwnf-dxa-grid__date" }, Dn = { class: "mwnf-dxa-grid__partner" }, On = { class: "mwnf-dxa-grid__place" }, kn = {
|
|
255
340
|
key: 0,
|
|
256
341
|
class: "mwnf-dxa-grid__project"
|
|
257
|
-
},
|
|
342
|
+
}, $ = {
|
|
258
343
|
__name: "ObjectGrid",
|
|
259
344
|
props: {
|
|
260
345
|
rows: {
|
|
@@ -273,12 +358,12 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
273
358
|
class: "mwnf-dxa-grid__entry",
|
|
274
359
|
onMouseenter: (e) => r.value = o,
|
|
275
360
|
onMouseleave: a[0] ||= (e) => r.value = -1
|
|
276
|
-
}, [N("div",
|
|
361
|
+
}, [N("div", xn, [N("img", {
|
|
277
362
|
class: "mwnf-dxa-grid__image",
|
|
278
363
|
src: i.image,
|
|
279
364
|
alt: i.imageAlt,
|
|
280
365
|
loading: "lazy"
|
|
281
|
-
}, null, 8,
|
|
366
|
+
}, null, 8, Sn)]), N("div", { class: I(["mwnf-dxa-grid__card", { "mwnf-dxa-grid__card--open": r.value === o }]) }, [F(n, {
|
|
282
367
|
class: "mwnf-dxa-grid__card-image",
|
|
283
368
|
to: i.to,
|
|
284
369
|
tabindex: "-1"
|
|
@@ -287,17 +372,17 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
287
372
|
src: i.image,
|
|
288
373
|
alt: i.imageAlt,
|
|
289
374
|
loading: "lazy"
|
|
290
|
-
}, null, 8,
|
|
375
|
+
}, null, 8, Cn)]),
|
|
291
376
|
_: 2
|
|
292
|
-
}, 1032, ["to"]), N("div",
|
|
377
|
+
}, 1032, ["to"]), N("div", wn, [
|
|
293
378
|
N("p", {
|
|
294
379
|
class: "mwnf-dxa-grid__name",
|
|
295
380
|
innerHTML: i.name
|
|
296
|
-
}, null, 8,
|
|
297
|
-
N("p",
|
|
298
|
-
N("p",
|
|
299
|
-
N("p",
|
|
300
|
-
e.family !== "exhibition" || i.project ? (L(), M("p",
|
|
381
|
+
}, null, 8, Tn),
|
|
382
|
+
N("p", En, B(i.date), 1),
|
|
383
|
+
N("p", Dn, B(i.partner), 1),
|
|
384
|
+
N("p", On, B(i.place), 1),
|
|
385
|
+
e.family !== "exhibition" || i.project ? (L(), M("p", kn, [P(B(V(t)("gallery.results.for")) + " ", 1), N("span", null, B(i.project), 1)])) : j("", !0),
|
|
301
386
|
F(n, {
|
|
302
387
|
class: "mwnf-dxa-grid__link",
|
|
303
388
|
to: i.to
|
|
@@ -305,22 +390,22 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
305
390
|
default: H(() => [P(B(V(t)("catalogue.results.seeDatabaseEntry")) + " >", 1)]),
|
|
306
391
|
_: 1
|
|
307
392
|
}, 8, ["to"])
|
|
308
|
-
])], 2)], 40,
|
|
393
|
+
])], 2)], 40, bn))), 128))], 2));
|
|
309
394
|
}
|
|
310
|
-
},
|
|
395
|
+
}, An = ["onSubmit"], jn = ["placeholder"], Mn = {
|
|
311
396
|
type: "submit",
|
|
312
397
|
class: "mwnf-dxa-refine-search-submit"
|
|
313
|
-
},
|
|
398
|
+
}, Nn = { class: "mwnf-dxa-how-to" }, Pn = {
|
|
314
399
|
key: 1,
|
|
315
400
|
class: "mwnf-dxa-no-results"
|
|
316
|
-
},
|
|
401
|
+
}, Fn = {
|
|
317
402
|
__name: "SearchResults",
|
|
318
403
|
setup(t) {
|
|
319
|
-
let n =
|
|
404
|
+
let n = jt("items", {
|
|
320
405
|
grammar: "boolean",
|
|
321
|
-
haystack:
|
|
406
|
+
haystack: b
|
|
322
407
|
}), r = R(!1);
|
|
323
|
-
|
|
408
|
+
ve().then(() => {
|
|
324
409
|
r.value = !0;
|
|
325
410
|
});
|
|
326
411
|
function i(e) {
|
|
@@ -331,12 +416,11 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
331
416
|
keys: ["q"],
|
|
332
417
|
sort: !1,
|
|
333
418
|
narrow: (e, t) => r.value ? i(t.q) ? e : n.search(t.q) : [],
|
|
334
|
-
pageSize:
|
|
419
|
+
pageSize: he.pageSize,
|
|
335
420
|
variant: "grid",
|
|
336
421
|
recordRoute: "item",
|
|
337
422
|
actionLabel: "catalogue.results.seeDatabaseEntry",
|
|
338
|
-
record: (e, { t }) =>
|
|
339
|
-
pagination: { jump: !0 },
|
|
423
|
+
record: (e, { t }) => ae(e, t),
|
|
340
424
|
summary: ({ filters: e, pageInfo: t, t: n, total: r }) => [{
|
|
341
425
|
label: n("core.section.database"),
|
|
342
426
|
value: i(e.q) ? n("catalogue.results.allObjects") : `“${e.q}”`
|
|
@@ -352,26 +436,38 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
352
436
|
before: H(() => [F(e)]),
|
|
353
437
|
filters: H(({ apply: e }) => [N("form", {
|
|
354
438
|
class: "mwnf-dxa-refine-search",
|
|
355
|
-
onSubmit:
|
|
439
|
+
onSubmit: xt((t) => e({ q: a.value || "all-objects" }), ["prevent"])
|
|
356
440
|
}, [U(N("input", {
|
|
357
441
|
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
358
442
|
type: "text",
|
|
359
443
|
class: "mwnf-dxa-refine-search-input",
|
|
360
444
|
placeholder: t.$t("catalogue.search.keywordPlaceholder")
|
|
361
|
-
}, null, 8,
|
|
445
|
+
}, null, 8, jn), [[_t, a.value]]), N("button", Mn, B(t.$t("catalogue.search.submit")), 1)], 40, An), N("p", Nn, [F(V(Y), { to: { name: "search-how-to" } }, {
|
|
362
446
|
default: H(() => [P(B(t.$t("catalogue.search.howTo")) + " ›", 1)]),
|
|
363
447
|
_: 1
|
|
364
448
|
})])]),
|
|
365
|
-
|
|
449
|
+
actions: H(({ pageInfo: e, goToPage: t }) => [F(Q, {
|
|
450
|
+
family: "gallery",
|
|
451
|
+
class: "mwnf-dxa-gallery-pages--top",
|
|
452
|
+
"page-info": e,
|
|
453
|
+
onNavigate: t
|
|
454
|
+
}, null, 8, ["page-info", "onNavigate"])]),
|
|
455
|
+
pagination: H(() => [...n[1] ||= []]),
|
|
456
|
+
after: H(({ pageInfo: e, goToPage: t }) => [F(Q, {
|
|
457
|
+
family: "gallery",
|
|
458
|
+
"page-info": e,
|
|
459
|
+
onNavigate: t
|
|
460
|
+
}, null, 8, ["page-info", "onNavigate"])]),
|
|
461
|
+
records: H(({ rows: e }) => [e.length ? (L(), A($, {
|
|
366
462
|
key: 0,
|
|
367
463
|
rows: e
|
|
368
|
-
}, null, 8, ["rows"])) : (L(), M("p",
|
|
464
|
+
}, null, 8, ["rows"])) : (L(), M("p", Pn, [
|
|
369
465
|
P(B(t.$t("catalogue.results.noResultsSearch")) + " ", 1),
|
|
370
466
|
F(V(Y), { to: { name: "search-how-to" } }, {
|
|
371
467
|
default: H(() => [P(B(t.$t("catalogue.search.howTo")), 1)]),
|
|
372
468
|
_: 1
|
|
373
469
|
}),
|
|
374
|
-
n[
|
|
470
|
+
n[2] ||= N("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
|
|
375
471
|
F(V(Y), { to: { name: "collection" } }, {
|
|
376
472
|
default: H(() => [P(B(t.$t("core.section.collection")), 1)]),
|
|
377
473
|
_: 1
|
|
@@ -380,32 +476,32 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
380
476
|
_: 1
|
|
381
477
|
}, 8, ["spec"]));
|
|
382
478
|
}
|
|
383
|
-
},
|
|
479
|
+
}, In = {
|
|
384
480
|
__name: "TimelineResults",
|
|
385
481
|
setup(t) {
|
|
386
|
-
return (t, n) => (L(), A(
|
|
387
|
-
spec: V(
|
|
482
|
+
return (t, n) => (L(), A(Ye, {
|
|
483
|
+
spec: V(ie),
|
|
388
484
|
class: "mwnf-dxa-timeline-results"
|
|
389
485
|
}, {
|
|
390
486
|
before: H(() => [F(e)]),
|
|
391
487
|
_: 1
|
|
392
488
|
}, 8, ["spec"]));
|
|
393
489
|
}
|
|
394
|
-
},
|
|
490
|
+
}, Ln = { class: "mwnf-dxa-back-to-events" }, Rn = {
|
|
395
491
|
key: 1,
|
|
396
492
|
class: "mwnf-record-grid__empty"
|
|
397
|
-
},
|
|
493
|
+
}, zn = {
|
|
398
494
|
__name: "TimelineGallery",
|
|
399
495
|
setup(t) {
|
|
400
496
|
return (t, n) => (L(), A(E, {
|
|
401
497
|
spec: {
|
|
402
|
-
...V(
|
|
403
|
-
...V(
|
|
498
|
+
...V(c),
|
|
499
|
+
...V(he)
|
|
404
500
|
},
|
|
405
501
|
class: "mwnf-dxa-timeline-gallery"
|
|
406
502
|
}, {
|
|
407
503
|
before: H(() => [F(e)]),
|
|
408
|
-
actions: H(({ filters: e, pageInfo: n, goToPage: r }) => [N("p",
|
|
504
|
+
actions: H(({ filters: e, pageInfo: n, goToPage: r }) => [N("p", Ln, [F(V(Y), { to: {
|
|
409
505
|
name: "timeline-results",
|
|
410
506
|
query: {
|
|
411
507
|
country: e.country,
|
|
@@ -415,26 +511,32 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
415
511
|
} }, {
|
|
416
512
|
default: H(() => [P(" ➤ " + B(t.$t("timeline.nav.backToEvents")), 1)]),
|
|
417
513
|
_: 1
|
|
418
|
-
}, 8, ["to"])]), F(
|
|
419
|
-
|
|
514
|
+
}, 8, ["to"])]), F(Q, {
|
|
515
|
+
family: "gallery",
|
|
516
|
+
class: "mwnf-dxa-gallery-pages--top",
|
|
420
517
|
"page-info": n,
|
|
421
|
-
jump: "",
|
|
422
518
|
onNavigate: r
|
|
423
519
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
424
|
-
records: H(({ rows: e, empty: t }) => [e.length ? (L(), A(
|
|
520
|
+
records: H(({ rows: e, empty: t }) => [e.length ? (L(), A($, {
|
|
425
521
|
key: 0,
|
|
426
522
|
rows: e
|
|
427
|
-
}, null, 8, ["rows"])) : (L(), M("p",
|
|
523
|
+
}, null, 8, ["rows"])) : (L(), M("p", Rn, B(t), 1))]),
|
|
524
|
+
pagination: H(() => [...n[0] ||= []]),
|
|
525
|
+
after: H(({ pageInfo: e, goToPage: t }) => [F(Q, {
|
|
526
|
+
family: "gallery",
|
|
527
|
+
"page-info": e,
|
|
528
|
+
onNavigate: t
|
|
529
|
+
}, null, 8, ["page-info", "onNavigate"])]),
|
|
428
530
|
_: 1
|
|
429
531
|
}, 8, ["spec"]));
|
|
430
532
|
}
|
|
431
|
-
},
|
|
432
|
-
key:
|
|
533
|
+
}, Bn = { class: "mwnf-dxa-gallery-results" }, Vn = { class: "mwnf-dxa-gallery-results__info" }, Hn = { class: "mwnf-dxa-gallery-results__choices" }, Un = {
|
|
534
|
+
key: 0,
|
|
433
535
|
class: "mwnf-dxa-gallery-results__end"
|
|
434
|
-
},
|
|
536
|
+
}, Wn = { class: "mwnf-dxa-date-wrapper" }, Gn = {
|
|
435
537
|
key: 0,
|
|
436
538
|
class: "mwnf-dxa-timeline-link-box"
|
|
437
|
-
},
|
|
539
|
+
}, Kn = { class: "mwnf-dxa-options-label" }, qn = { class: "mwnf-dxa-gallery-results__timeline" }, Jn = {
|
|
438
540
|
__name: "CollectionResults",
|
|
439
541
|
setup(t) {
|
|
440
542
|
let { t: n } = q(), r = {
|
|
@@ -442,35 +544,34 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
442
544
|
dynasty: "gallery.collection.periodDynasty",
|
|
443
545
|
subject: "gallery.collection.subject",
|
|
444
546
|
material: "gallery.collection.material"
|
|
445
|
-
}, o = (e) => n(
|
|
446
|
-
function
|
|
447
|
-
let i = (n) => (t[n] ?? []).find((t) => String(t.value) === String(e[n]))?.label ?? e[n], a = (e) =>
|
|
547
|
+
}, o = (e) => n(ce[e] ?? e), s = k(() => J(x.value ?? [], o)), c = k(() => (x.value ?? []).length), l = v.keys, u = (e) => l.every((t) => !e[t]);
|
|
548
|
+
function d(e, t, r) {
|
|
549
|
+
let i = (n) => (t[n] ?? []).find((t) => String(t.value) === String(e[n]))?.label ?? e[n], a = (e) => s.value.find((t) => String(t.value) === String(e))?.label ?? e, o = [];
|
|
448
550
|
e.country && o.push(i("country"));
|
|
449
|
-
for (let t of
|
|
551
|
+
for (let t of de) e[t] && o.push(i(t));
|
|
450
552
|
return e.from && o.push(`${n("gallery.collection.start")} ${a(e.from)}`), e.to && o.push(`${n("gallery.collection.end")} ${a(e.to)}`), o.length ? o.join(" & ") : r.length ? n("gallery.collection.allObjects") : n("gallery.collection.none");
|
|
451
553
|
}
|
|
452
|
-
let
|
|
453
|
-
function
|
|
454
|
-
let t =
|
|
455
|
-
return !!(t &&
|
|
554
|
+
let p = k(() => new Set((f.value ?? []).map((e) => e.country_id)));
|
|
555
|
+
function m(e) {
|
|
556
|
+
let t = le(e.country);
|
|
557
|
+
return !!(t && p.value.has(t));
|
|
456
558
|
}
|
|
457
|
-
return (t,
|
|
559
|
+
return (t, s) => (L(), M("div", Bn, [F(E, {
|
|
458
560
|
spec: {
|
|
459
|
-
...V(
|
|
460
|
-
...V(
|
|
561
|
+
...V(v),
|
|
562
|
+
...V(he),
|
|
461
563
|
summary: () => []
|
|
462
564
|
},
|
|
463
565
|
class: "mwnf-dxa-collection-results"
|
|
464
566
|
}, {
|
|
465
|
-
before: H(({ filters: t, options: r, matching: i, pageInfo: a }) => [F(e), N("div",
|
|
466
|
-
actions: H(({ pageInfo: e, goToPage: t }) => [
|
|
467
|
-
|
|
468
|
-
class: "mwnf-dxa-pages",
|
|
567
|
+
before: H(({ filters: t, options: r, matching: i, pageInfo: a }) => [F(e), N("div", Vn, [N("p", null, [P(B(V(n)("gallery.collection.heading")) + " | ", 1), N("span", Hn, B(d(t, r, i)), 1)]), N("p", null, B(a.total) + " " + B(V(n)("gallery.collection.resultsOutOf")) + " " + B(c.value) + " " + B(V(n)("gallery.collection.objects")), 1)])]),
|
|
568
|
+
actions: H(({ pageInfo: e, goToPage: t }) => [F(Q, {
|
|
569
|
+
family: "gallery",
|
|
570
|
+
class: "mwnf-dxa-gallery-pages--top",
|
|
469
571
|
"page-info": e,
|
|
470
|
-
jump: "",
|
|
471
572
|
onNavigate: t
|
|
472
|
-
}, null, 8, ["page-info", "onNavigate"])
|
|
473
|
-
records: H(({ rows: e }) => [e.length ? (L(), A(
|
|
573
|
+
}, null, 8, ["page-info", "onNavigate"])]),
|
|
574
|
+
records: H(({ rows: e }) => [e.length ? (L(), A($, {
|
|
474
575
|
key: 0,
|
|
475
576
|
rows: e
|
|
476
577
|
}, null, 8, ["rows"])) : (L(), A(V(W), {
|
|
@@ -478,24 +579,23 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
478
579
|
class: "mwnf-dxa-gallery-results__none",
|
|
479
580
|
keypath: "gallery.collection.noResults"
|
|
480
581
|
}))]),
|
|
481
|
-
pagination: H(({ pageInfo: e
|
|
482
|
-
|
|
483
|
-
|
|
582
|
+
pagination: H(({ pageInfo: e }) => [e.lastPage <= 1 ? (L(), M("div", Un)) : j("", !0)]),
|
|
583
|
+
after: H(({ pageInfo: e, goToPage: t }) => [F(Q, {
|
|
584
|
+
family: "gallery",
|
|
484
585
|
"page-info": e,
|
|
485
|
-
jump: "",
|
|
486
586
|
onNavigate: t
|
|
487
|
-
}, null, 8, ["page-info", "onNavigate"])
|
|
488
|
-
aside: H(({ filters: e, apply: t, reset:
|
|
587
|
+
}, null, 8, ["page-info", "onNavigate"])]),
|
|
588
|
+
aside: H(({ filters: e, apply: t, reset: c, matching: l, options: d }) => [F(a, {
|
|
489
589
|
mode: "immediate",
|
|
490
|
-
title:
|
|
590
|
+
title: u(e) ? V(n)("gallery.collection.filterBy") : V(n)("gallery.collection.filterFurtherBy"),
|
|
491
591
|
"reset-label": V(n)("gallery.collection.resetFilters"),
|
|
492
592
|
disabled: l.length === 0,
|
|
493
|
-
onReset: (e) =>
|
|
593
|
+
onReset: (e) => c()
|
|
494
594
|
}, {
|
|
495
595
|
default: H(() => [
|
|
496
596
|
F(i, {
|
|
497
597
|
"model-value": e.country,
|
|
498
|
-
options:
|
|
598
|
+
options: d.country,
|
|
499
599
|
placeholder: V(n)("gallery.collection.selectCountry"),
|
|
500
600
|
"onUpdate:modelValue": (e) => t({ country: e })
|
|
501
601
|
}, null, 8, [
|
|
@@ -504,10 +604,10 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
504
604
|
"placeholder",
|
|
505
605
|
"onUpdate:modelValue"
|
|
506
606
|
]),
|
|
507
|
-
(L(!0), M(O, null, z(V(
|
|
607
|
+
(L(!0), M(O, null, z(V(de), (a) => (L(), A(i, {
|
|
508
608
|
key: a,
|
|
509
609
|
"model-value": e[a],
|
|
510
|
-
options:
|
|
610
|
+
options: d[a],
|
|
511
611
|
placeholder: V(n)(r[a]),
|
|
512
612
|
"hide-empty": "",
|
|
513
613
|
"onUpdate:modelValue": (e) => t({ [a]: e })
|
|
@@ -517,7 +617,7 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
517
617
|
"placeholder",
|
|
518
618
|
"onUpdate:modelValue"
|
|
519
619
|
]))), 128)),
|
|
520
|
-
N("div",
|
|
620
|
+
N("div", Wn, [F(i, {
|
|
521
621
|
"model-value": e.from,
|
|
522
622
|
options: V(J)(l, o),
|
|
523
623
|
placeholder: V(n)("gallery.collection.startDate"),
|
|
@@ -545,7 +645,7 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
545
645
|
"reset-label",
|
|
546
646
|
"disabled",
|
|
547
647
|
"onReset"
|
|
548
|
-
]),
|
|
648
|
+
]), m(e) ? (L(), M("div", Gn, [N("div", Kn, B(V(n)("gallery.collection.timelineForSearch")), 1), N("p", qn, [s[0] ||= N("span", {
|
|
549
649
|
class: "mwnf-dxa-gallery-results__share",
|
|
550
650
|
"aria-hidden": "true"
|
|
551
651
|
}, "➦", -1), F(V(Y), { to: {
|
|
@@ -556,112 +656,110 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
556
656
|
end: e.to
|
|
557
657
|
}
|
|
558
658
|
} }, {
|
|
559
|
-
default: H(() => [P(B(V(n)("gallery.collection.timeline")) + " | " + B(V(
|
|
659
|
+
default: H(() => [P(B(V(n)("gallery.collection.timeline")) + " | " + B(V(_)("countries", V(le)(e.country))), 1)]),
|
|
560
660
|
_: 2
|
|
561
661
|
}, 1032, ["to"])])])) : j("", !0)]),
|
|
562
662
|
_: 1
|
|
563
663
|
}, 8, ["spec"])]));
|
|
564
664
|
}
|
|
565
|
-
},
|
|
665
|
+
}, Yn = { class: "mwnf-dxa-gallery-collection" }, Xn = { class: "mwnf-dxa-gallery-collection__dropdowns" }, Zn = { class: "mwnf-dxa-gallery-collection__label" }, Qn = { class: "mwnf-dxa-gallery-collection__selects" }, $n = ["aria-label", "onChange"], er = {
|
|
566
666
|
selected: "",
|
|
567
667
|
disabled: "",
|
|
568
668
|
value: ""
|
|
569
|
-
},
|
|
669
|
+
}, tr = ["value"], nr = { class: "mwnf-dxa-gallery-collection__dates" }, rr = ["aria-label"], ir = {
|
|
570
670
|
selected: "",
|
|
571
671
|
disabled: "",
|
|
572
672
|
value: ""
|
|
573
|
-
},
|
|
673
|
+
}, ar = ["value"], or = ["aria-label"], sr = {
|
|
574
674
|
selected: "",
|
|
575
675
|
disabled: "",
|
|
576
676
|
value: ""
|
|
577
|
-
},
|
|
677
|
+
}, cr = ["value"], lr = ["innerHTML"], ur = {
|
|
578
678
|
__name: "CollectionSearch",
|
|
579
679
|
setup(e) {
|
|
580
|
-
let t =
|
|
680
|
+
let t = It(), { t: n } = q(), r = k(() => Et(`${n("gallery.collection.introBeforeName")} *${te(ee)}* ${n("gallery.collection.introAfterName")}`)), i = At(x, pe), a = {
|
|
581
681
|
country: "gallery.collection.selectCountry",
|
|
582
682
|
type: "gallery.collection.type",
|
|
583
683
|
dynasty: "gallery.collection.periodDynasty",
|
|
584
684
|
subject: "gallery.collection.subject",
|
|
585
685
|
material: "gallery.collection.material"
|
|
586
|
-
}, o = k(() => ["country", ...
|
|
686
|
+
}, o = k(() => ["country", ...de].filter((e) => e === "country" || (i.value[e] ?? []).length > 0).map((e) => ({
|
|
587
687
|
key: e,
|
|
588
688
|
name: a[e],
|
|
589
689
|
options: i.value[e] ?? []
|
|
590
|
-
}))), s = (e) => n(
|
|
690
|
+
}))), s = (e) => n(ce[e] ?? e), c = k(() => J(x.value ?? [], s));
|
|
591
691
|
function l(e, n) {
|
|
592
692
|
n !== "" && n != null && t.push({
|
|
593
693
|
name: "collection-results",
|
|
594
694
|
query: { [e]: String(n) }
|
|
595
695
|
});
|
|
596
696
|
}
|
|
597
|
-
return (e, t) => (L(), M("div",
|
|
697
|
+
return (e, t) => (L(), M("div", Yn, [N("div", Xn, [N("div", Zn, B(V(n)("gallery.collection.filterBy")), 1), N("div", Qn, [(L(!0), M(O, null, z(o.value, (e) => (L(), M("select", {
|
|
598
698
|
key: e.key,
|
|
599
699
|
class: "mwnf-dxa-gallery-collection__select",
|
|
600
700
|
"aria-label": V(n)(e.name),
|
|
601
701
|
onChange: (t) => l(e.key, t.target.value)
|
|
602
|
-
}, [N("option",
|
|
702
|
+
}, [N("option", er, B(V(n)(e.name)), 1), (L(!0), M(O, null, z(e.options, (e) => (L(), M("option", {
|
|
603
703
|
key: e.value,
|
|
604
704
|
value: String(e.value)
|
|
605
|
-
}, B(e.label), 9,
|
|
705
|
+
}, B(e.label), 9, tr))), 128))], 40, $n))), 128)), N("div", nr, [N("select", {
|
|
606
706
|
class: "mwnf-dxa-gallery-collection__select",
|
|
607
707
|
"aria-label": V(n)("gallery.collection.startDate"),
|
|
608
708
|
onChange: t[0] ||= (e) => l("from", e.target.value)
|
|
609
|
-
}, [N("option",
|
|
709
|
+
}, [N("option", ir, B(V(n)("gallery.collection.startDate")), 1), (L(!0), M(O, null, z(c.value, (e) => (L(), M("option", {
|
|
610
710
|
key: e.value,
|
|
611
711
|
value: String(e.value)
|
|
612
|
-
}, B(e.label), 9,
|
|
712
|
+
}, B(e.label), 9, ar))), 128))], 40, rr), N("select", {
|
|
613
713
|
class: "mwnf-dxa-gallery-collection__select",
|
|
614
714
|
"aria-label": V(n)("gallery.collection.endDate"),
|
|
615
715
|
onChange: t[1] ||= (e) => l("to", e.target.value)
|
|
616
|
-
}, [N("option",
|
|
716
|
+
}, [N("option", sr, B(V(n)("gallery.collection.endDate")), 1), (L(!0), M(O, null, z(c.value, (e) => (L(), M("option", {
|
|
617
717
|
key: e.value,
|
|
618
718
|
value: String(e.value)
|
|
619
|
-
}, B(e.label), 9,
|
|
719
|
+
}, B(e.label), 9, cr))), 128))], 40, or)])])]), N("div", {
|
|
620
720
|
class: "mwnf-dxa-gallery-collection__description mwnf-prose vc-text",
|
|
621
721
|
dir: "auto",
|
|
622
722
|
innerHTML: r.value
|
|
623
|
-
}, null, 8,
|
|
723
|
+
}, null, 8, lr)]));
|
|
624
724
|
}
|
|
625
|
-
},
|
|
725
|
+
}, dr = {
|
|
626
726
|
key: 0,
|
|
627
727
|
class: "mwnf-dxa-partner-objects mwnf-dxa-gallery-objects"
|
|
628
|
-
},
|
|
728
|
+
}, fr = { class: "mwnf-dxa-gallery-objects__header" }, pr = ["innerHTML"], mr = {
|
|
629
729
|
key: 0,
|
|
630
730
|
class: "mwnf-dxa-gallery-objects__place"
|
|
631
|
-
},
|
|
632
|
-
key:
|
|
731
|
+
}, hr = {
|
|
732
|
+
key: 0,
|
|
633
733
|
class: "mwnf-dxa-gallery-objects__end"
|
|
634
|
-
},
|
|
734
|
+
}, gr = {
|
|
635
735
|
__name: "PartnerObjects",
|
|
636
736
|
setup(t) {
|
|
637
|
-
let n = X(), r = k(() =>
|
|
638
|
-
..._e,
|
|
737
|
+
let n = X(), r = k(() => y.value.get(n.params.id) ?? null), i = k(() => ({
|
|
639
738
|
...ge,
|
|
739
|
+
...he,
|
|
640
740
|
scope: (e) => e.partner_id === n.params.id
|
|
641
|
-
})), a = k(() => r.value ?
|
|
642
|
-
return (t, n) => r.value ? (L(), M("div",
|
|
643
|
-
before: H(() => [F(e), N("div",
|
|
741
|
+
})), a = k(() => r.value ? _e.view(r.value, p("partners", r.value.id, fe)) : null), o = k(() => [a.value?.city, a.value?.country].filter(Boolean).join(", "));
|
|
742
|
+
return (t, n) => r.value ? (L(), M("div", dr, [F(E, { spec: i.value }, {
|
|
743
|
+
before: H(() => [F(e), N("div", fr, [N("p", {
|
|
644
744
|
class: "mwnf-dxa-gallery-objects__name",
|
|
645
745
|
innerHTML: a.value.name
|
|
646
|
-
}, null, 8,
|
|
647
|
-
actions: H(({ pageInfo: e, goToPage: t }) => [
|
|
648
|
-
|
|
649
|
-
class: "mwnf-dxa-pages",
|
|
746
|
+
}, null, 8, pr), o.value ? (L(), M("p", mr, B(o.value), 1)) : j("", !0)])]),
|
|
747
|
+
actions: H(({ pageInfo: e, goToPage: t }) => [F(Q, {
|
|
748
|
+
family: "gallery",
|
|
749
|
+
class: "mwnf-dxa-gallery-pages--top",
|
|
650
750
|
"page-info": e,
|
|
651
|
-
jump: "",
|
|
652
751
|
onNavigate: t
|
|
653
|
-
}, null, 8, ["page-info", "onNavigate"])
|
|
654
|
-
records: H(({ rows: e }) => [F(
|
|
655
|
-
pagination: H(({ pageInfo: e
|
|
656
|
-
|
|
657
|
-
|
|
752
|
+
}, null, 8, ["page-info", "onNavigate"])]),
|
|
753
|
+
records: H(({ rows: e }) => [F($, { rows: e }, null, 8, ["rows"])]),
|
|
754
|
+
pagination: H(({ pageInfo: e }) => [e.lastPage <= 1 ? (L(), M("div", hr)) : j("", !0)]),
|
|
755
|
+
after: H(({ pageInfo: e, goToPage: t }) => [F(Q, {
|
|
756
|
+
family: "gallery",
|
|
658
757
|
"page-info": e,
|
|
659
|
-
jump: "",
|
|
660
758
|
onNavigate: t
|
|
661
|
-
}, null, 8, ["page-info", "onNavigate"])
|
|
759
|
+
}, null, 8, ["page-info", "onNavigate"])]),
|
|
662
760
|
aside: H(() => [F(V(Y), {
|
|
663
761
|
class: "mwnf-dxa-gallery-objects__profile",
|
|
664
|
-
to: V(
|
|
762
|
+
to: V(d)(r.value)
|
|
665
763
|
}, {
|
|
666
764
|
default: H(() => [n[0] ||= N("span", {
|
|
667
765
|
class: "mwnf-dxa-gallery-objects__profile-arrow",
|
|
@@ -672,24 +770,24 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
672
770
|
_: 1
|
|
673
771
|
}, 8, ["spec"])])) : j("", !0);
|
|
674
772
|
}
|
|
675
|
-
},
|
|
773
|
+
}, _r = { class: "mwnf-dxa-exhibition-how-to" }, vr = {
|
|
676
774
|
__name: "SearchHowTo",
|
|
677
775
|
setup(t) {
|
|
678
|
-
return (t, n) => (L(), M("div",
|
|
776
|
+
return (t, n) => (L(), M("div", _r, [F(e), F(V(W), {
|
|
679
777
|
class: "mwnf-dxa-exhibition-how-to__text",
|
|
680
778
|
dir: "auto",
|
|
681
779
|
keypath: "catalogue.search.howToEssay"
|
|
682
780
|
})]));
|
|
683
781
|
}
|
|
684
|
-
},
|
|
782
|
+
}, yr = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners mwnf-dxa-exhibition-partners" }, br = { class: "mwnf-dxa-gallery-partners__options" }, xr = { class: "mwnf-dxa-gallery-partners__order" }, Sr = ["onClick"], Cr = { class: "mwnf-dxa-gallery-partners__country" }, wr = { class: "mwnf-dxa-gallery-partners__partner" }, Tr = { class: "mwnf-dxa-gallery-partners__text" }, Er = ["innerHTML"], Dr = {
|
|
685
783
|
key: 0,
|
|
686
784
|
class: "mwnf-dxa-gallery-partners__city"
|
|
687
|
-
},
|
|
785
|
+
}, Or = { class: "mwnf-dxa-partner-badge__status" }, kr = { class: "mwnf-dxa-gallery-partners__links" }, Ar = { class: "mwnf-dxa-gallery-partners__logo" }, jr = ["src", "alt"], Mr = {
|
|
688
786
|
__name: "Partners",
|
|
689
787
|
setup(t) {
|
|
690
788
|
let r = {
|
|
691
|
-
...
|
|
692
|
-
objectsRoute:
|
|
789
|
+
...Ge,
|
|
790
|
+
objectsRoute: Ee,
|
|
693
791
|
orderToggle: !1,
|
|
694
792
|
tiebreak: (e) => e.own_project?.name ?? ""
|
|
695
793
|
}, i = {
|
|
@@ -703,30 +801,30 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
703
801
|
tone: "institution"
|
|
704
802
|
} : Z(e, i);
|
|
705
803
|
}
|
|
706
|
-
return (t, i) => (L(), M("div",
|
|
707
|
-
before: H(({ t, orderDir: n, toggleOrder: r }) => [N("div",
|
|
804
|
+
return (t, i) => (L(), M("div", yr, [F(Je, { spec: r }, {
|
|
805
|
+
before: H(({ t, orderDir: n, toggleOrder: r }) => [N("div", br, [F(e), N("div", xr, [N("button", {
|
|
708
806
|
type: "button",
|
|
709
807
|
onClick: r
|
|
710
|
-
}, B(t(n === "asc" ? "partner.list.sortDescending" : "partner.list.sortAscending")), 9,
|
|
808
|
+
}, B(t(n === "asc" ? "partner.list.sortDescending" : "partner.list.sortAscending")), 9, Sr)])]), F(V(W), {
|
|
711
809
|
id: "mwnf-dxa-partners-intro",
|
|
712
810
|
class: "mwnf-dxa-gallery-partners__intro",
|
|
713
811
|
dir: "auto",
|
|
714
812
|
keypath: "exhibition.partners.intro"
|
|
715
813
|
})]),
|
|
716
|
-
"group-heading": H(({ group: e }) => [N("div",
|
|
717
|
-
row: H(({ partner: e, view: t, t: r }) => [N("div",
|
|
814
|
+
"group-heading": H(({ group: e }) => [N("div", Cr, B(e.label), 1)]),
|
|
815
|
+
row: H(({ partner: e, view: t, t: r }) => [N("div", wr, [N("div", Tr, [
|
|
718
816
|
F(n, {
|
|
719
817
|
class: "mwnf-dxa-gallery-partners__name",
|
|
720
818
|
to: t.route
|
|
721
819
|
}, {
|
|
722
|
-
default: H(() => [N("span", { innerHTML: t.name }, null, 8,
|
|
820
|
+
default: H(() => [N("span", { innerHTML: t.name }, null, 8, Er), t.city ? (L(), M("span", Dr, ", " + B(t.city), 1)) : j("", !0)]),
|
|
723
821
|
_: 2
|
|
724
822
|
}, 1032, ["to"]),
|
|
725
823
|
a(e) ? (L(), M("div", {
|
|
726
824
|
key: 0,
|
|
727
825
|
class: I(["mwnf-dxa-partner-badge", a(e).tone && `mwnf-dxa-partner-badge--${a(e).tone}`])
|
|
728
|
-
}, [a(e).name ? (L(), M(O, { key: 0 }, [P(B(a(e).name + " "), 1)], 64)) : j("", !0), N("span",
|
|
729
|
-
N("div",
|
|
826
|
+
}, [a(e).name ? (L(), M(O, { key: 0 }, [P(B(a(e).name + " "), 1)], 64)) : j("", !0), N("span", Or, B(r(a(e).status)), 1)], 2)) : j("", !0),
|
|
827
|
+
N("div", kr, [F(n, { to: t.route }, {
|
|
730
828
|
default: H(() => [P(B(r("partner.action.readMore")), 1)]),
|
|
731
829
|
_: 2
|
|
732
830
|
}, 1032, ["to"]), e.item_count > 0 && t.objectsRoute ? (L(), M(O, { key: 0 }, [i[0] ||= N("span", {
|
|
@@ -736,135 +834,56 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
736
834
|
default: H(() => [P(B(r("exhibition.partners.viewItems")), 1)]),
|
|
737
835
|
_: 2
|
|
738
836
|
}, 1032, ["to"])], 64)) : j("", !0)])
|
|
739
|
-
]), N("div",
|
|
837
|
+
]), N("div", Ar, [t.logos?.[0] ? (L(), M("img", {
|
|
740
838
|
key: 0,
|
|
741
839
|
src: t.logos[0].url,
|
|
742
840
|
alt: t.plainName,
|
|
743
841
|
loading: "lazy"
|
|
744
|
-
}, null, 8,
|
|
842
|
+
}, null, 8, jr)) : j("", !0)])])]),
|
|
745
843
|
_: 1
|
|
746
844
|
})]));
|
|
747
845
|
}
|
|
748
|
-
},
|
|
749
|
-
key: 0,
|
|
750
|
-
class: "mwnf-dxa-exhibition-pages"
|
|
751
|
-
}, Er = ["disabled"], Dr = { key: 0 }, Or = ["disabled"], kr = { key: 0 }, Ar = { class: "mwnf-dxa-exhibition-pages__numbers" }, jr = [
|
|
752
|
-
"disabled",
|
|
753
|
-
"aria-current",
|
|
754
|
-
"onClick"
|
|
755
|
-
], Mr = ["disabled"], Nr = { key: 0 }, Pr = ["disabled"], Fr = { key: 0 }, $ = {
|
|
756
|
-
__name: "Pages",
|
|
757
|
-
props: { pageInfo: {
|
|
758
|
-
type: Object,
|
|
759
|
-
required: !0
|
|
760
|
-
} },
|
|
761
|
-
emits: ["navigate"],
|
|
762
|
-
setup(e, { emit: t }) {
|
|
763
|
-
let n = e, r = t, { t: i } = q(), a = (e) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(`(max-width: ${e}px)`).matches, o = a(499), [s, c, l] = a(599) ? [
|
|
764
|
-
3,
|
|
765
|
-
2,
|
|
766
|
-
5
|
|
767
|
-
] : a(724) ? [
|
|
768
|
-
5,
|
|
769
|
-
4,
|
|
770
|
-
9
|
|
771
|
-
] : a(849) ? [
|
|
772
|
-
6,
|
|
773
|
-
5,
|
|
774
|
-
11
|
|
775
|
-
] : [
|
|
776
|
-
8,
|
|
777
|
-
7,
|
|
778
|
-
15
|
|
779
|
-
], u = k(() => n.pageInfo?.currentPage ?? 1), d = k(() => n.pageInfo?.lastPage ?? 1), f = k(() => {
|
|
780
|
-
let e = 1, t = d.value;
|
|
781
|
-
if (d.value > l) {
|
|
782
|
-
let n = u.value;
|
|
783
|
-
n > s && (e = n - c), n + c < d.value ? t = e <= c && n <= c ? l : n + c : (e = d.value - (l - 1), t = d.value);
|
|
784
|
-
}
|
|
785
|
-
let n = [];
|
|
786
|
-
for (let r = e; r <= t; r++) n.push(r);
|
|
787
|
-
return n;
|
|
788
|
-
}), p = (e) => e < 1 || e > d.value || e === u.value;
|
|
789
|
-
function m(e) {
|
|
790
|
-
p(e) || r("navigate", e);
|
|
791
|
-
}
|
|
792
|
-
return (e, t) => d.value > 1 ? (L(), M("div", Tr, [
|
|
793
|
-
N("button", {
|
|
794
|
-
type: "button",
|
|
795
|
-
class: I(["mwnf-dxa-exhibition-pages__button", { "is-disabled": p(1) }]),
|
|
796
|
-
disabled: p(1),
|
|
797
|
-
onClick: t[0] ||= (e) => m(1)
|
|
798
|
-
}, [t[4] ||= P(" <<", -1), V(o) ? j("", !0) : (L(), M("span", Dr, B(" " + V(i)("exhibition.pages.first")), 1))], 10, Er),
|
|
799
|
-
N("button", {
|
|
800
|
-
type: "button",
|
|
801
|
-
class: I(["mwnf-dxa-exhibition-pages__button", { "is-disabled": p(u.value - 1) }]),
|
|
802
|
-
disabled: p(u.value - 1),
|
|
803
|
-
onClick: t[1] ||= (e) => m(u.value - 1)
|
|
804
|
-
}, [t[5] ||= P(" <", -1), V(o) ? j("", !0) : (L(), M("span", kr, B(" " + V(i)("exhibition.pages.previous")), 1))], 10, Or),
|
|
805
|
-
N("div", Ar, [(L(!0), M(O, null, z(f.value, (e) => (L(), M("button", {
|
|
806
|
-
key: e,
|
|
807
|
-
type: "button",
|
|
808
|
-
class: I(["mwnf-dxa-exhibition-pages__button", { "is-disabled": p(e) }]),
|
|
809
|
-
disabled: p(e),
|
|
810
|
-
"aria-current": e === u.value ? "page" : void 0,
|
|
811
|
-
onClick: (t) => m(e)
|
|
812
|
-
}, B(e), 11, jr))), 128))]),
|
|
813
|
-
N("button", {
|
|
814
|
-
type: "button",
|
|
815
|
-
class: I(["mwnf-dxa-exhibition-pages__button", { "is-disabled": p(u.value + 1) }]),
|
|
816
|
-
disabled: p(u.value + 1),
|
|
817
|
-
onClick: t[2] ||= (e) => m(u.value + 1)
|
|
818
|
-
}, [V(o) ? j("", !0) : (L(), M("span", Nr, B(V(i)("exhibition.pages.next") + " "), 1)), t[6] ||= P("> ", -1)], 10, Mr),
|
|
819
|
-
N("button", {
|
|
820
|
-
type: "button",
|
|
821
|
-
class: I(["mwnf-dxa-exhibition-pages__button", { "is-disabled": p(d.value) }]),
|
|
822
|
-
disabled: p(d.value),
|
|
823
|
-
onClick: t[3] ||= (e) => m(d.value)
|
|
824
|
-
}, [V(o) ? j("", !0) : (L(), M("span", Fr, B(V(i)("exhibition.pages.last") + " "), 1)), t[7] ||= P(">> ", -1)], 10, Pr)
|
|
825
|
-
])) : j("", !0);
|
|
826
|
-
}
|
|
827
|
-
}, Ir = { class: "mwnf-dxa-exhibition-search" }, Lr = { class: "mwnf-dxa-exhibition-search__header" }, Rr = { class: "mwnf-dxa-exhibition-search__info" }, zr = { key: 0 }, Br = { key: 1 }, Vr = { class: "mwnf-dxa-exhibition-search__box" }, Hr = ["placeholder", "aria-label"], Ur = { class: "mwnf-dxa-exhibition-search__buttons" }, Wr = {
|
|
846
|
+
}, Nr = { class: "mwnf-dxa-exhibition-search" }, Pr = { class: "mwnf-dxa-exhibition-search__header" }, Fr = { class: "mwnf-dxa-exhibition-search__info" }, Ir = { key: 0 }, Lr = { key: 1 }, Rr = { class: "mwnf-dxa-exhibition-search__box" }, zr = ["placeholder", "aria-label"], Br = { class: "mwnf-dxa-exhibition-search__buttons" }, Vr = {
|
|
828
847
|
type: "submit",
|
|
829
848
|
class: "mwnf-dxa-exhibition-search__button"
|
|
830
|
-
},
|
|
849
|
+
}, Hr = { class: "mwnf-dxa-exhibition-search__tips" }, Ur = {
|
|
831
850
|
key: 0,
|
|
832
851
|
class: "mwnf-dxa-exhibition-search__results"
|
|
833
|
-
},
|
|
852
|
+
}, Wr = {
|
|
834
853
|
key: 0,
|
|
835
854
|
class: "mwnf-dxa-exhibition-search__main"
|
|
836
|
-
},
|
|
855
|
+
}, Gr = { class: "mwnf-dxa-exhibition-search__main-photo" }, Kr = ["src", "alt"], qr = { class: "mwnf-dxa-exhibition-search__main-text" }, Jr = ["innerHTML"], Yr = { class: "mwnf-dxa-exhibition-search__main-holder" }, Xr = { class: "mwnf-dxa-exhibition-search__list" }, Zr = [
|
|
837
856
|
"src",
|
|
838
857
|
"alt",
|
|
839
858
|
"onMouseover"
|
|
840
|
-
],
|
|
859
|
+
], Qr = { class: "mwnf-dxa-exhibition-search__result-text" }, $r = ["innerHTML", "onMouseover"], ei = {
|
|
841
860
|
key: 1,
|
|
842
861
|
class: "mwnf-dxa-exhibition-search__end"
|
|
843
|
-
},
|
|
862
|
+
}, ti = {
|
|
844
863
|
__name: "SearchResults",
|
|
845
864
|
setup(t) {
|
|
846
|
-
let { t: n } = q(), r = X(), i =
|
|
865
|
+
let { t: n } = q(), r = X(), i = It(), a = jt("items", {
|
|
847
866
|
grammar: "boolean",
|
|
848
|
-
haystack:
|
|
867
|
+
haystack: Be
|
|
849
868
|
}), o = R(!1);
|
|
850
|
-
|
|
869
|
+
Ke().then(() => {
|
|
851
870
|
o.value = !0;
|
|
852
871
|
});
|
|
853
872
|
let s = (e) => !e || e === "all-items" || e === "all-objects", c = (e) => e && e.length > 80 ? `${e.slice(0, 80)}...` : e ?? "", l = k(() => ({
|
|
854
873
|
entity: "items",
|
|
855
874
|
keys: ["q"],
|
|
856
|
-
scope: (e) =>
|
|
875
|
+
scope: (e) => Le.value.has(e.id),
|
|
857
876
|
narrow: (e, t) => {
|
|
858
877
|
if (!o.value) return [];
|
|
859
878
|
if (s(t.q)) return e;
|
|
860
879
|
let n = new Set(e.map((e) => e.id));
|
|
861
880
|
return a.search(t.q).filter((e) => n.has(e.id));
|
|
862
881
|
},
|
|
863
|
-
...
|
|
864
|
-
sort: s(r.query.q) ?
|
|
882
|
+
...qe,
|
|
883
|
+
sort: s(r.query.q) ? qe.sort : !1,
|
|
865
884
|
summary: () => [],
|
|
866
885
|
record: (e) => {
|
|
867
|
-
let t = w("items", e.id,
|
|
886
|
+
let t = w("items", e.id, He);
|
|
868
887
|
return {
|
|
869
888
|
id: e.id,
|
|
870
889
|
image: e.images?.[0]?.url ?? "",
|
|
@@ -874,11 +893,11 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
874
893
|
partner: T("partners", e.partner_id),
|
|
875
894
|
place: [t.location, T("countries", e.country_id)].filter(Boolean).join(", "),
|
|
876
895
|
start: e.start_date ?? 0,
|
|
877
|
-
to:
|
|
896
|
+
to: Me(e)
|
|
878
897
|
};
|
|
879
898
|
}
|
|
880
899
|
})), u = (e) => [...e].sort((e, t) => e.start - t.start), d = R("");
|
|
881
|
-
|
|
900
|
+
yt(() => r.query.q, (e) => {
|
|
882
901
|
d.value = s(e) ? "" : String(e ?? "");
|
|
883
902
|
}, { immediate: !0 });
|
|
884
903
|
function f() {
|
|
@@ -900,43 +919,43 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
900
919
|
function _(e) {
|
|
901
920
|
return e.find((e) => e.id === m.value) ?? e[0];
|
|
902
921
|
}
|
|
903
|
-
return
|
|
922
|
+
return yt(() => r.fullPath, () => {
|
|
904
923
|
m.value = null;
|
|
905
|
-
}), (t, r) => (L(), M("div",
|
|
924
|
+
}), (t, r) => (L(), M("div", Nr, [F(E, {
|
|
906
925
|
spec: l.value,
|
|
907
926
|
class: "mwnf-dxa-exhibition-search__view"
|
|
908
927
|
}, {
|
|
909
928
|
before: H(({ pageInfo: t, goToPage: i }) => [
|
|
910
929
|
F(e),
|
|
911
|
-
N("div",
|
|
930
|
+
N("div", Pr, [N("div", Fr, [t.total ? (L(), M("p", Ir, B(V(n)("exhibition.search.heading")) + " | " + B(t.total) + " " + B(V(n)("exhibition.search.recordsOutOf")) + " " + B(V(Le).size) + " " + B(V(n)("exhibition.collection.items")), 1)) : (L(), M("p", Lr, [P(B(V(n)("exhibition.search.heading")) + " | ", 1), N("span", null, B(V(n)("exhibition.search.none")), 1)]))]), N("div", Rr, [N("form", { onSubmit: r[2] ||= xt((e) => f(), ["prevent"]) }, [U(N("input", {
|
|
912
931
|
"onUpdate:modelValue": r[0] ||= (e) => d.value = e,
|
|
913
932
|
class: "mwnf-dxa-exhibition-search__input",
|
|
914
933
|
type: "search",
|
|
915
934
|
placeholder: V(n)("exhibition.search.placeholder"),
|
|
916
935
|
"aria-label": V(n)("exhibition.search.placeholder")
|
|
917
|
-
}, null, 8,
|
|
936
|
+
}, null, 8, zr), [[_t, d.value]]), N("div", Br, [N("button", Vr, B(V(n)("exhibition.search.submit")), 1), N("button", {
|
|
918
937
|
type: "button",
|
|
919
938
|
class: "mwnf-dxa-exhibition-search__button",
|
|
920
939
|
onClick: r[1] ||= (e) => p()
|
|
921
|
-
}, B(V(n)("exhibition.search.reset")), 1)])], 32), N("div",
|
|
940
|
+
}, B(V(n)("exhibition.search.reset")), 1)])], 32), N("div", Hr, [F(V(Y), { to: { name: "search-how-to" } }, {
|
|
922
941
|
default: H(() => [P(B(V(n)("exhibition.search.tips")), 1)]),
|
|
923
942
|
_: 1
|
|
924
943
|
})])])]),
|
|
925
|
-
F(
|
|
944
|
+
F(Q, {
|
|
926
945
|
class: "mwnf-dxa-exhibition-pages--top",
|
|
927
946
|
"page-info": t,
|
|
928
947
|
onNavigate: i
|
|
929
948
|
}, null, 8, ["page-info", "onNavigate"])
|
|
930
949
|
]),
|
|
931
|
-
records: H(({ rows: e }) => [e.length ? (L(), M("div",
|
|
950
|
+
records: H(({ rows: e }) => [e.length ? (L(), M("div", Ur, [g.value ? j("", !0) : (L(), M("div", Wr, [N("div", Gr, [N("img", {
|
|
932
951
|
src: _(u(e)).image,
|
|
933
952
|
alt: _(u(e)).imageAlt
|
|
934
|
-
}, null, 8,
|
|
935
|
-
N("p", null, [N("strong", { innerHTML: _(u(e)).name }, null, 8,
|
|
953
|
+
}, null, 8, Kr)]), N("div", qr, [
|
|
954
|
+
N("p", null, [N("strong", { innerHTML: _(u(e)).name }, null, 8, Jr)]),
|
|
936
955
|
N("p", null, B(_(u(e)).date), 1),
|
|
937
|
-
N("p",
|
|
956
|
+
N("p", Yr, [N("strong", null, B(_(u(e)).partner), 1)]),
|
|
938
957
|
N("p", null, B(_(u(e)).place), 1)
|
|
939
|
-
])])), N("div",
|
|
958
|
+
])])), N("div", Xr, [(L(!0), M(O, null, z(u(e), (e) => (L(), M("div", {
|
|
940
959
|
key: e.id,
|
|
941
960
|
class: "mwnf-dxa-exhibition-search__result"
|
|
942
961
|
}, [F(V(Y), {
|
|
@@ -948,13 +967,13 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
948
967
|
alt: e.imageAlt,
|
|
949
968
|
loading: "lazy",
|
|
950
969
|
onMouseover: (t) => m.value = e.id
|
|
951
|
-
}, null, 40,
|
|
970
|
+
}, null, 40, Zr)]),
|
|
952
971
|
_: 2
|
|
953
|
-
}, 1032, ["to"]), N("div",
|
|
972
|
+
}, 1032, ["to"]), N("div", Qr, [F(V(Y), { to: e.to }, {
|
|
954
973
|
default: H(() => [N("strong", {
|
|
955
974
|
innerHTML: e.name,
|
|
956
975
|
onMouseover: (t) => m.value = e.id
|
|
957
|
-
}, null, 40,
|
|
976
|
+
}, null, 40, $r), N("span", null, ", " + B(e.place), 1)]),
|
|
958
977
|
_: 2
|
|
959
978
|
}, 1032, ["to"]), N("p", null, [N("em", null, B(e.date), 1)])])]))), 128))])])) : (L(), A(V(W), {
|
|
960
979
|
key: 1,
|
|
@@ -962,54 +981,54 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
962
981
|
keypath: "exhibition.search.noResults"
|
|
963
982
|
}))]),
|
|
964
983
|
pagination: H(() => [...r[3] ||= []]),
|
|
965
|
-
after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(
|
|
984
|
+
after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(Q, {
|
|
966
985
|
key: 0,
|
|
967
986
|
"page-info": e,
|
|
968
987
|
onNavigate: t
|
|
969
|
-
}, null, 8, ["page-info", "onNavigate"])) : (L(), M("div",
|
|
988
|
+
}, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", ei))]),
|
|
970
989
|
_: 1
|
|
971
990
|
}, 8, ["spec"])]));
|
|
972
991
|
}
|
|
973
|
-
},
|
|
992
|
+
}, ni = { class: "mwnf-dxa-exhibition-timeline-results" }, ri = { class: "mwnf-dxa-exhibition-timeline-results__band" }, ii = { class: "mwnf-dxa-exhibition-timeline-results__current" }, ai = { key: 0 }, oi = { class: "mwnf-dxa-exhibition-timeline-results__fields" }, si = ["aria-label"], ci = {
|
|
974
993
|
disabled: "",
|
|
975
994
|
value: ""
|
|
976
|
-
},
|
|
995
|
+
}, li = ["value"], ui = ["aria-label"], di = {
|
|
977
996
|
disabled: "",
|
|
978
997
|
value: ""
|
|
979
|
-
},
|
|
998
|
+
}, fi = ["value"], pi = ["aria-label"], mi = {
|
|
980
999
|
disabled: "",
|
|
981
1000
|
value: ""
|
|
982
|
-
},
|
|
1001
|
+
}, hi = ["value"], gi = ["onClick"], _i = ["onClick"], vi = { class: "mwnf-dxa-exhibition-timeline-results__body" }, yi = {
|
|
983
1002
|
key: 0,
|
|
984
1003
|
class: "mwnf-dxa-exhibition-timeline-results__list"
|
|
985
|
-
},
|
|
1004
|
+
}, bi = { class: "mwnf-dxa-exhibition-timeline-results__labels" }, xi = { class: "mwnf-dxa-exhibition-timeline-results__year" }, Si = { class: "mwnf-dxa-exhibition-timeline-results__text" }, Ci = ["innerHTML"], wi = ["innerHTML"], Ti = {
|
|
986
1005
|
key: 1,
|
|
987
1006
|
class: "mwnf-dxa-exhibition-timeline-results__none"
|
|
988
|
-
},
|
|
1007
|
+
}, Ei = {
|
|
989
1008
|
key: 2,
|
|
990
1009
|
class: "mwnf-dxa-exhibition-timeline-results__related"
|
|
991
|
-
},
|
|
1010
|
+
}, Di = { class: "mwnf-dxa-exhibition-timeline-results__related-header" }, Oi = {
|
|
992
1011
|
key: 1,
|
|
993
1012
|
class: "mwnf-dxa-exhibition-timeline-results__end"
|
|
994
|
-
},
|
|
1013
|
+
}, ki = {
|
|
995
1014
|
__name: "TimelineResults",
|
|
996
1015
|
setup(t) {
|
|
997
1016
|
let n = {
|
|
998
1017
|
"catalogue.era.ad": "exhibition.era.ad",
|
|
999
1018
|
"catalogue.era.bc": "exhibition.era.bc"
|
|
1000
|
-
}, r = ({ years: e, t }) =>
|
|
1019
|
+
}, r = ({ years: e, t }) => Ft(e.min, e.max, Pt(t, n)), i = k(() => ({
|
|
1001
1020
|
...S.value,
|
|
1002
1021
|
pageSize: 20,
|
|
1003
1022
|
controls: S.value.controls.map((e) => e.options ? {
|
|
1004
1023
|
...e,
|
|
1005
1024
|
options: r
|
|
1006
1025
|
} : e)
|
|
1007
|
-
})), a = k(() => S.value.scope === "country"), o = X(), s =
|
|
1026
|
+
})), a = k(() => S.value.scope === "country"), o = X(), s = ft({
|
|
1008
1027
|
country: "",
|
|
1009
1028
|
begin: "",
|
|
1010
1029
|
end: ""
|
|
1011
1030
|
});
|
|
1012
|
-
|
|
1031
|
+
yt(() => o.query, (e) => {
|
|
1013
1032
|
s.country = String(e.country ?? ""), s.begin = String(e.begin ?? ""), s.end = String(e.end ?? "");
|
|
1014
1033
|
}, { immediate: !0 });
|
|
1015
1034
|
let c = (e, t) => (e ?? []).find((e) => String(e.value) === String(t))?.label ?? t;
|
|
@@ -1017,64 +1036,64 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
1017
1036
|
let n = e?.year_from;
|
|
1018
1037
|
return Number.isFinite(n) ? `${n} ${t(n < 0 ? "exhibition.era.bc" : "exhibition.era.ad")}` : "";
|
|
1019
1038
|
}
|
|
1020
|
-
return (t, n) => (L(), M("div",
|
|
1039
|
+
return (t, n) => (L(), M("div", ni, [F(Ye, {
|
|
1021
1040
|
spec: i.value,
|
|
1022
1041
|
class: "mwnf-dxa-timeline-results"
|
|
1023
1042
|
}, {
|
|
1024
|
-
form: H((e) => [N("div",
|
|
1043
|
+
form: H((e) => [N("div", ri, [N("p", ii, [
|
|
1025
1044
|
P(B(e.t("exhibition.timeline.heading")) + " | " + B(c(e.options.begin, e.filters.begin)) + " " + B(e.t("exhibition.timeline.to")) + " " + B(c(e.options.end, e.filters.end)) + " | ", 1),
|
|
1026
|
-
a.value && e.filters.country ? (L(), M("span",
|
|
1045
|
+
a.value && e.filters.country ? (L(), M("span", ai, B(c(e.countries, e.filters.country)) + " | ", 1)) : j("", !0),
|
|
1027
1046
|
N("span", null, B(e.pageInfo?.total ?? 0) + " " + B(e.t("exhibition.timeline.results")), 1)
|
|
1028
|
-
]), N("div",
|
|
1047
|
+
]), N("div", oi, [
|
|
1029
1048
|
N("span", null, B(e.t("exhibition.collection.startDate")), 1),
|
|
1030
1049
|
U(N("select", {
|
|
1031
1050
|
"onUpdate:modelValue": n[0] ||= (e) => s.begin = e,
|
|
1032
1051
|
"aria-label": e.t("exhibition.collection.startDate")
|
|
1033
|
-
}, [N("option",
|
|
1052
|
+
}, [N("option", ci, B(e.t("exhibition.collection.startDate")), 1), (L(!0), M(O, null, z(e.options.begin ?? [], (e) => (L(), M("option", {
|
|
1034
1053
|
key: e.value,
|
|
1035
1054
|
value: String(e.value)
|
|
1036
|
-
}, B(e.label), 9,
|
|
1055
|
+
}, B(e.label), 9, li))), 128))], 8, si), [[gt, s.begin]]),
|
|
1037
1056
|
N("span", null, B(e.t("exhibition.collection.endDate")), 1),
|
|
1038
1057
|
U(N("select", {
|
|
1039
1058
|
"onUpdate:modelValue": n[1] ||= (e) => s.end = e,
|
|
1040
1059
|
"aria-label": e.t("exhibition.collection.endDate")
|
|
1041
|
-
}, [N("option",
|
|
1060
|
+
}, [N("option", di, B(e.t("exhibition.collection.endDate")), 1), (L(!0), M(O, null, z(e.options.end ?? [], (e) => (L(), M("option", {
|
|
1042
1061
|
key: e.value,
|
|
1043
1062
|
value: String(e.value)
|
|
1044
|
-
}, B(e.label), 9,
|
|
1063
|
+
}, B(e.label), 9, fi))), 128))], 8, ui), [[gt, s.end]]),
|
|
1045
1064
|
a.value ? (L(), M(O, { key: 0 }, [N("span", null, B(e.t("exhibition.timeline.country")), 1), U(N("select", {
|
|
1046
1065
|
"onUpdate:modelValue": n[2] ||= (e) => s.country = e,
|
|
1047
1066
|
"aria-label": e.t("exhibition.timeline.selectCountry")
|
|
1048
|
-
}, [N("option",
|
|
1067
|
+
}, [N("option", mi, B(e.t("exhibition.timeline.selectCountry")), 1), (L(!0), M(O, null, z(e.countries, (e) => (L(), M("option", {
|
|
1049
1068
|
key: e.value,
|
|
1050
1069
|
value: e.value
|
|
1051
|
-
}, B(e.label), 9,
|
|
1070
|
+
}, B(e.label), 9, hi))), 128))], 8, pi), [[gt, s.country]])], 64)) : j("", !0),
|
|
1052
1071
|
N("button", {
|
|
1053
1072
|
type: "button",
|
|
1054
1073
|
onClick: (t) => e.apply({ ...s })
|
|
1055
|
-
}, B(e.t("core.action.go")), 9,
|
|
1074
|
+
}, B(e.t("core.action.go")), 9, gi),
|
|
1056
1075
|
N("button", {
|
|
1057
1076
|
type: "button",
|
|
1058
1077
|
onClick: (t) => e.reset()
|
|
1059
|
-
}, B(e.t("exhibition.search.reset")), 9,
|
|
1078
|
+
}, B(e.t("exhibition.search.reset")), 9, _i)
|
|
1060
1079
|
])])]),
|
|
1061
|
-
summary: H(({ pageInfo: t, goToPage: n }) => [F(e), F(
|
|
1080
|
+
summary: H(({ pageInfo: t, goToPage: n }) => [F(e), F(Q, {
|
|
1062
1081
|
class: "mwnf-dxa-exhibition-timeline-results__pages",
|
|
1063
1082
|
"page-info": t,
|
|
1064
1083
|
onNavigate: n
|
|
1065
1084
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
1066
1085
|
gallery: H(() => [...n[3] ||= []]),
|
|
1067
|
-
event: H(({ pageInfo: e, rows: t, gallery: r, t: i }) => [N("div",
|
|
1086
|
+
event: H(({ pageInfo: e, rows: t, gallery: r, t: i }) => [N("div", vi, [t.length ? (L(), M("div", yi, [N("div", bi, [N("div", null, B(i("exhibition.timeline.date")), 1), N("div", null, B(i(a.value && s.country ? "exhibition.timeline.countryDescription" : "exhibition.timeline.description")), 1)]), (L(!0), M(O, null, z(t, (t, n) => (L(), M("div", {
|
|
1068
1087
|
key: t.id,
|
|
1069
1088
|
class: "mwnf-dxa-exhibition-timeline-results__event"
|
|
1070
|
-
}, [N("div",
|
|
1089
|
+
}, [N("div", xi, [N("span", null, B(l(e.rows[n], i)), 1)]), N("div", Si, [a.value && s.country && t.caption ? (L(), M("div", {
|
|
1071
1090
|
key: 0,
|
|
1072
1091
|
class: "mwnf-dxa-exhibition-timeline-results__country",
|
|
1073
1092
|
innerHTML: t.caption
|
|
1074
|
-
}, null, 8,
|
|
1093
|
+
}, null, 8, Ci)) : j("", !0), N("div", {
|
|
1075
1094
|
class: "mwnf-dxa-exhibition-timeline-results__description",
|
|
1076
1095
|
innerHTML: t.description
|
|
1077
|
-
}, null, 8,
|
|
1096
|
+
}, null, 8, wi)])]))), 128))])) : (L(), M("div", Ti, B(i("exhibition.timeline.noResults")), 1)), t.length && r ? (L(), M("div", Ei, [N("p", Di, B(i("exhibition.timeline.relatedContent")), 1), N("p", null, [
|
|
1078
1097
|
n[4] ||= N("span", { "aria-hidden": "true" }, "➦", -1),
|
|
1079
1098
|
n[5] ||= P(),
|
|
1080
1099
|
F(V(Y), { to: r.to }, {
|
|
@@ -1082,58 +1101,58 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
1082
1101
|
_: 2
|
|
1083
1102
|
}, 1032, ["to"])
|
|
1084
1103
|
])])) : j("", !0)])]),
|
|
1085
|
-
pagination: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(
|
|
1104
|
+
pagination: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(Q, {
|
|
1086
1105
|
key: 0,
|
|
1087
1106
|
"page-info": e,
|
|
1088
1107
|
onNavigate: t
|
|
1089
|
-
}, null, 8, ["page-info", "onNavigate"])) : (L(), M("div",
|
|
1108
|
+
}, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", Oi))]),
|
|
1090
1109
|
_: 1
|
|
1091
1110
|
}, 8, ["spec"])]));
|
|
1092
1111
|
}
|
|
1093
|
-
},
|
|
1112
|
+
}, Ai = { class: "mwnf-dxa-exhibition-partner-objects mwnf-dxa-exhibition-timeline-gallery" }, ji = { class: "mwnf-dxa-exhibition-partner-objects__header" }, Mi = { class: "mwnf-dxa-exhibition-partner-objects__content" }, Ni = { class: "mwnf-dxa-exhibition-partner-objects__grid" }, Pi = { class: "mwnf-dxa-exhibition-partner-objects__profile" }, Fi = {
|
|
1094
1113
|
key: 1,
|
|
1095
1114
|
class: "mwnf-dxa-exhibition-partner-objects__end"
|
|
1096
|
-
},
|
|
1115
|
+
}, Ii = {
|
|
1097
1116
|
__name: "TimelineGallery",
|
|
1098
1117
|
setup(t) {
|
|
1099
1118
|
let { t: n } = q(), r = {
|
|
1100
1119
|
"catalogue.era.ad": "exhibition.era.ad",
|
|
1101
1120
|
"catalogue.era.bc": "exhibition.era.bc"
|
|
1102
1121
|
}, i = k(() => ({
|
|
1103
|
-
...
|
|
1104
|
-
...
|
|
1122
|
+
...Fe,
|
|
1123
|
+
...qe,
|
|
1105
1124
|
summary: () => [],
|
|
1106
|
-
record:
|
|
1125
|
+
record: ke
|
|
1107
1126
|
}));
|
|
1108
1127
|
function a(e) {
|
|
1109
1128
|
let t = Number(e);
|
|
1110
1129
|
if (e === "" || e == null || !Number.isFinite(t)) return "";
|
|
1111
|
-
let i =
|
|
1130
|
+
let i = Ft(t, t, Pt(n, r));
|
|
1112
1131
|
return i.find((e) => Number(e.value) === t)?.label ?? i[0]?.label ?? String(e);
|
|
1113
1132
|
}
|
|
1114
1133
|
let o = k(() => S.value.scope === "country");
|
|
1115
|
-
return (t, r) => (L(), M("div",
|
|
1134
|
+
return (t, r) => (L(), M("div", Ai, [F(E, {
|
|
1116
1135
|
spec: i.value,
|
|
1117
1136
|
class: "mwnf-dxa-partner-objects"
|
|
1118
1137
|
}, {
|
|
1119
1138
|
before: H(({ filters: t, pageInfo: r, goToPage: i }) => [
|
|
1120
1139
|
F(e),
|
|
1121
|
-
N("div",
|
|
1140
|
+
N("div", ji, [N("p", null, [
|
|
1122
1141
|
P(B(V(n)("exhibition.timeline.heading")) + " | " + B(a(t.begin)) + " " + B(V(n)("exhibition.timeline.to")) + " " + B(a(t.end)) + " | ", 1),
|
|
1123
|
-
o.value && t.country ? (L(), M(O, { key: 0 }, [P(B(V(
|
|
1142
|
+
o.value && t.country ? (L(), M(O, { key: 0 }, [P(B(V(ze)(t.country)) + " | ", 1)], 64)) : j("", !0),
|
|
1124
1143
|
P(B(V(n)("exhibition.timeline.gallery")), 1)
|
|
1125
1144
|
])]),
|
|
1126
|
-
F(
|
|
1145
|
+
F(Q, {
|
|
1127
1146
|
class: "mwnf-dxa-exhibition-pages--top",
|
|
1128
1147
|
"page-info": r,
|
|
1129
1148
|
onNavigate: i
|
|
1130
1149
|
}, null, 8, ["page-info", "onNavigate"])
|
|
1131
1150
|
]),
|
|
1132
|
-
records: H(({ rows: e, filters: t }) => [N("div",
|
|
1151
|
+
records: H(({ rows: e, filters: t }) => [N("div", Mi, [N("div", Ni, [e.length ? (L(), A($, {
|
|
1133
1152
|
key: 0,
|
|
1134
1153
|
rows: e,
|
|
1135
1154
|
family: "exhibition"
|
|
1136
|
-
}, null, 8, ["rows"])) : j("", !0)]), N("div",
|
|
1155
|
+
}, null, 8, ["rows"])) : j("", !0)]), N("div", Pi, [F(V(Y), { to: {
|
|
1137
1156
|
name: "timeline-results",
|
|
1138
1157
|
query: {
|
|
1139
1158
|
...t.country ? { country: t.country } : {},
|
|
@@ -1145,31 +1164,31 @@ var Zt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Qt = { class:
|
|
|
1145
1164
|
_: 1
|
|
1146
1165
|
}, 8, ["to"])])])]),
|
|
1147
1166
|
pagination: H(() => [...r[1] ||= []]),
|
|
1148
|
-
after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(
|
|
1167
|
+
after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(Q, {
|
|
1149
1168
|
key: 0,
|
|
1150
1169
|
"page-info": e,
|
|
1151
1170
|
onNavigate: t
|
|
1152
|
-
}, null, 8, ["page-info", "onNavigate"])) : (L(), M("div",
|
|
1171
|
+
}, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", Fi))]),
|
|
1153
1172
|
_: 1
|
|
1154
1173
|
}, 8, ["spec"])]));
|
|
1155
1174
|
}
|
|
1156
|
-
}, { aboutTheme:
|
|
1157
|
-
function
|
|
1175
|
+
}, { aboutTheme: Li, listedThemes: Ri, pictureById: zi, pictureParent: Bi, romanFor: Vi, themeText: Hi, themeTree: Ui } = we;
|
|
1176
|
+
function Wi(e) {
|
|
1158
1177
|
return String(e?.backward_compatibility ?? "").split(":").pop();
|
|
1159
1178
|
}
|
|
1160
|
-
function
|
|
1161
|
-
let t = (t) =>
|
|
1162
|
-
value:
|
|
1163
|
-
label: t(
|
|
1164
|
-
node:
|
|
1165
|
-
}] : [], ...
|
|
1166
|
-
value:
|
|
1167
|
-
label: `${
|
|
1179
|
+
function Gi(e) {
|
|
1180
|
+
let t = (t) => Hi(t, e.value).title ?? t?.internal_name ?? "", n = k(() => [...Li.value ? [{
|
|
1181
|
+
value: Wi(Li.value),
|
|
1182
|
+
label: t(Li.value),
|
|
1183
|
+
node: Li.value
|
|
1184
|
+
}] : [], ...Ri.value.map((e) => ({
|
|
1185
|
+
value: Wi(e),
|
|
1186
|
+
label: `${Vi(e.display_order)}. ${t(e)}`,
|
|
1168
1187
|
node: e
|
|
1169
1188
|
}))]), r = (e) => n.value.find((t) => t.value === String(e))?.node ?? null;
|
|
1170
1189
|
function i(e) {
|
|
1171
1190
|
return (r(e)?.sub_themes ?? []).map((e, n) => ({
|
|
1172
|
-
value:
|
|
1191
|
+
value: Wi(e),
|
|
1173
1192
|
label: `${n + 1}. ${t(e)}`,
|
|
1174
1193
|
node: e
|
|
1175
1194
|
}));
|
|
@@ -1177,8 +1196,8 @@ function Ji(e) {
|
|
|
1177
1196
|
function a(e) {
|
|
1178
1197
|
let t = /* @__PURE__ */ new Set();
|
|
1179
1198
|
if (!e) return t;
|
|
1180
|
-
for (let n of
|
|
1181
|
-
let e =
|
|
1199
|
+
for (let n of Ui.itemsUnder(e.id)) {
|
|
1200
|
+
let e = Bi(zi.value.get(n));
|
|
1182
1201
|
e && t.add(e.id);
|
|
1183
1202
|
}
|
|
1184
1203
|
return t;
|
|
@@ -1195,39 +1214,39 @@ function Ji(e) {
|
|
|
1195
1214
|
};
|
|
1196
1215
|
}
|
|
1197
1216
|
// src/dxa/exhibition/CollectionResults.vue
|
|
1198
|
-
var
|
|
1217
|
+
var Ki = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, qi = { class: "mwnf-dxa-gallery-results__info" }, Ji = { class: "mwnf-dxa-gallery-results__choices" }, Yi = {
|
|
1199
1218
|
key: 1,
|
|
1200
1219
|
class: "mwnf-dxa-gallery-results__end"
|
|
1201
|
-
},
|
|
1220
|
+
}, Xi = ["aria-label", "aria-expanded"], Zi = ["viewBox"], Qi = ["d"], $i = { class: "mwnf-dxa-exhibition-results__refine" }, ea = ["aria-label"], ta = ["viewBox"], na = ["d"], ra = {
|
|
1202
1221
|
key: 1,
|
|
1203
1222
|
class: "mwnf-dxa-exhibition-results__themes"
|
|
1204
|
-
},
|
|
1223
|
+
}, ia = { class: "mwnf-dxa-options-label" }, aa = { class: "mwnf-dxa-exhibition-results__theme-selects" }, oa = [
|
|
1205
1224
|
"aria-label",
|
|
1206
1225
|
"value",
|
|
1207
1226
|
"disabled",
|
|
1208
1227
|
"onChange"
|
|
1209
|
-
],
|
|
1228
|
+
], sa = {
|
|
1210
1229
|
disabled: "",
|
|
1211
1230
|
value: ""
|
|
1212
|
-
},
|
|
1231
|
+
}, ca = { value: "all" }, la = ["value"], ua = [
|
|
1213
1232
|
"aria-label",
|
|
1214
1233
|
"value",
|
|
1215
1234
|
"disabled",
|
|
1216
1235
|
"onChange"
|
|
1217
|
-
],
|
|
1236
|
+
], da = {
|
|
1218
1237
|
disabled: "",
|
|
1219
1238
|
value: ""
|
|
1220
|
-
},
|
|
1239
|
+
}, fa = ["value"], pa = [
|
|
1221
1240
|
"aria-label",
|
|
1222
1241
|
"disabled",
|
|
1223
1242
|
"onChange"
|
|
1224
|
-
],
|
|
1243
|
+
], ma = {
|
|
1225
1244
|
disabled: "",
|
|
1226
1245
|
value: ""
|
|
1227
|
-
},
|
|
1246
|
+
}, ha = { value: "all" }, ga = ["value"], _a = { class: "mwnf-dxa-date-wrapper" }, va = {
|
|
1228
1247
|
__name: "CollectionResults",
|
|
1229
1248
|
setup(t) {
|
|
1230
|
-
let { t: n, locale: r } = q(), { themeOptions: o, subThemeOptions: s, scopeFor: c } =
|
|
1249
|
+
let { t: n, locale: r } = q(), { themeOptions: o, subThemeOptions: s, scopeFor: c } = Gi(r), l = {
|
|
1231
1250
|
viewBox: "0 0 512 512",
|
|
1232
1251
|
path: "M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"
|
|
1233
1252
|
}, u = {
|
|
@@ -1236,9 +1255,9 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1236
1255
|
}, d = typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(max-width: 499px)") : null, f = R(!!d?.matches), p = (e) => {
|
|
1237
1256
|
f.value = e.matches;
|
|
1238
1257
|
};
|
|
1239
|
-
d?.addEventListener("change", p),
|
|
1258
|
+
d?.addEventListener("change", p), ut(() => d?.removeEventListener("change", p));
|
|
1240
1259
|
let m = R(!1), h = X();
|
|
1241
|
-
|
|
1260
|
+
yt(() => h.fullPath, () => {
|
|
1242
1261
|
m.value = !1;
|
|
1243
1262
|
});
|
|
1244
1263
|
let g = {
|
|
@@ -1247,11 +1266,11 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1247
1266
|
}, _ = ["type", "material"], v = {
|
|
1248
1267
|
"catalogue.era.ad": "exhibition.era.ad",
|
|
1249
1268
|
"catalogue.era.bc": "exhibition.era.bc"
|
|
1250
|
-
}, y = (e) => n(v[e] ?? e), ee = k(() => J(
|
|
1251
|
-
...
|
|
1252
|
-
...
|
|
1269
|
+
}, y = (e) => n(v[e] ?? e), ee = k(() => J(De.value ?? [], y)), te = k(() => Le.value.size), b = {
|
|
1270
|
+
...Pe,
|
|
1271
|
+
...qe,
|
|
1253
1272
|
keys: [
|
|
1254
|
-
...
|
|
1273
|
+
...Pe.keys,
|
|
1255
1274
|
"theme",
|
|
1256
1275
|
"subtheme"
|
|
1257
1276
|
],
|
|
@@ -1260,15 +1279,15 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1260
1279
|
return !n || n.has(e.id);
|
|
1261
1280
|
},
|
|
1262
1281
|
summary: () => [],
|
|
1263
|
-
record:
|
|
1264
|
-
},
|
|
1265
|
-
function
|
|
1282
|
+
record: ke
|
|
1283
|
+
}, x = (e) => b.keys.every((t) => !e[t]);
|
|
1284
|
+
function ne(e) {
|
|
1266
1285
|
let t = o.value.find((t) => t.value === String(e.theme))?.label ?? e.theme, n = e.subtheme ? s(e.theme).find((t) => t.value === String(e.subtheme))?.label : "";
|
|
1267
1286
|
return n ? `${t} ▪ ${n}` : t;
|
|
1268
1287
|
}
|
|
1269
1288
|
function re(e, t, r) {
|
|
1270
1289
|
let i = (n) => (t[n] ?? []).find((t) => String(t.value) === String(e[n]))?.label ?? e[n], a = (e) => ee.value.find((t) => String(t.value) === String(e))?.label ?? e, o = [];
|
|
1271
|
-
e.theme && o.push(
|
|
1290
|
+
e.theme && o.push(ne(e)), e.country && o.push(i("country"));
|
|
1272
1291
|
for (let t of _) e[t] && o.push(i(t));
|
|
1273
1292
|
return e.from && o.push(`${n("exhibition.collection.start")} ${a(e.from)}`), e.to && o.push(`${n("exhibition.collection.end")} ${a(e.to)}`), o.length ? o.join(" & ") : r.length ? n("exhibition.collection.allItems") : n("exhibition.collection.none");
|
|
1274
1293
|
}
|
|
@@ -1286,20 +1305,20 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1286
1305
|
subtheme: n
|
|
1287
1306
|
});
|
|
1288
1307
|
}
|
|
1289
|
-
return (t, r) => (L(), M("div",
|
|
1308
|
+
return (t, r) => (L(), M("div", Ki, [F(E, {
|
|
1290
1309
|
spec: b,
|
|
1291
1310
|
class: "mwnf-dxa-collection-results"
|
|
1292
1311
|
}, {
|
|
1293
1312
|
before: H(({ filters: r, options: i, matching: a, pageInfo: o }) => [
|
|
1294
1313
|
F(e),
|
|
1295
|
-
N("div",
|
|
1296
|
-
F(
|
|
1314
|
+
N("div", qi, [N("p", null, [P(B(V(n)("exhibition.collection.heading")) + " | ", 1), N("span", Ji, B(re(r, i, a)), 1)]), N("p", null, B(o.total) + " " + B(V(n)("exhibition.collection.resultsOutOf")) + " " + B(te.value) + " " + B(V(n)("exhibition.collection.items")), 1)]),
|
|
1315
|
+
F(Q, {
|
|
1297
1316
|
class: "mwnf-dxa-exhibition-pages--top",
|
|
1298
1317
|
"page-info": o,
|
|
1299
1318
|
onNavigate: t.goToPage
|
|
1300
1319
|
}, null, 8, ["page-info", "onNavigate"])
|
|
1301
1320
|
]),
|
|
1302
|
-
records: H(({ rows: e }) => [e.length ? (L(), A(
|
|
1321
|
+
records: H(({ rows: e }) => [e.length ? (L(), A($, {
|
|
1303
1322
|
key: 0,
|
|
1304
1323
|
rows: e,
|
|
1305
1324
|
family: "exhibition"
|
|
@@ -1309,11 +1328,11 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1309
1328
|
keypath: "exhibition.collection.noResults"
|
|
1310
1329
|
}))]),
|
|
1311
1330
|
pagination: H(() => [...r[2] ||= []]),
|
|
1312
|
-
after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(
|
|
1331
|
+
after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(Q, {
|
|
1313
1332
|
key: 0,
|
|
1314
1333
|
"page-info": e,
|
|
1315
1334
|
onNavigate: t
|
|
1316
|
-
}, null, 8, ["page-info", "onNavigate"])) : (L(), M("div",
|
|
1335
|
+
}, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", Yi))]),
|
|
1317
1336
|
aside: H(({ filters: e, apply: t, reset: c, matching: d, options: p }) => [f.value ? (L(), M("button", {
|
|
1318
1337
|
key: 0,
|
|
1319
1338
|
type: "button",
|
|
@@ -1325,7 +1344,7 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1325
1344
|
viewBox: l.viewBox,
|
|
1326
1345
|
"aria-hidden": "true",
|
|
1327
1346
|
focusable: "false"
|
|
1328
|
-
}, [N("path", { d: l.path }, null, 8,
|
|
1347
|
+
}, [N("path", { d: l.path }, null, 8, Qi)], 8, Zi))], 8, Xi)) : j("", !0), U(N("div", $i, [
|
|
1329
1348
|
f.value && m.value ? (L(), M("button", {
|
|
1330
1349
|
key: 0,
|
|
1331
1350
|
type: "button",
|
|
@@ -1336,40 +1355,40 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1336
1355
|
viewBox: u.viewBox,
|
|
1337
1356
|
"aria-hidden": "true",
|
|
1338
1357
|
focusable: "false"
|
|
1339
|
-
}, [N("path", { d: u.path }, null, 8,
|
|
1340
|
-
|
|
1358
|
+
}, [N("path", { d: u.path }, null, 8, na)], 8, ta))], 8, ea)) : j("", !0),
|
|
1359
|
+
x(e) ? j("", !0) : (L(), M("div", ra, [N("div", ia, B(V(n)("exhibition.collection.filterByTheme")), 1), N("div", aa, [N("select", {
|
|
1341
1360
|
class: "mwnf-facet__select",
|
|
1342
1361
|
"aria-label": V(n)("exhibition.collection.selectTheme"),
|
|
1343
1362
|
value: e.theme || "",
|
|
1344
1363
|
disabled: !d.length,
|
|
1345
1364
|
onChange: (e) => ie(t, c, e.target.value)
|
|
1346
1365
|
}, [
|
|
1347
|
-
N("option",
|
|
1348
|
-
N("option",
|
|
1366
|
+
N("option", sa, B(V(n)("exhibition.collection.selectTheme")), 1),
|
|
1367
|
+
N("option", ca, B(V(n)("exhibition.collection.allThemes")), 1),
|
|
1349
1368
|
(L(!0), M(O, null, z(V(o), (e) => (L(), M("option", {
|
|
1350
1369
|
key: e.value,
|
|
1351
1370
|
value: e.value
|
|
1352
|
-
}, B(e.label), 9,
|
|
1353
|
-
], 40,
|
|
1371
|
+
}, B(e.label), 9, la))), 128))
|
|
1372
|
+
], 40, oa), e.theme && V(s)(e.theme).length ? (L(), M("select", {
|
|
1354
1373
|
key: 0,
|
|
1355
1374
|
class: "mwnf-facet__select",
|
|
1356
1375
|
"aria-label": V(n)("exhibition.themeGallery.select"),
|
|
1357
1376
|
value: e.subtheme || "",
|
|
1358
1377
|
disabled: !d.length,
|
|
1359
1378
|
onChange: (n) => ae(t, e, n.target.value)
|
|
1360
|
-
}, [N("option",
|
|
1379
|
+
}, [N("option", da, B(V(n)("exhibition.themeGallery.select")), 1), (L(!0), M(O, null, z(V(s)(e.theme), (e) => (L(), M("option", {
|
|
1361
1380
|
key: e.value,
|
|
1362
1381
|
value: e.value
|
|
1363
|
-
}, B(e.label), 9,
|
|
1382
|
+
}, B(e.label), 9, fa))), 128))], 40, ua)) : j("", !0)])])),
|
|
1364
1383
|
F(a, {
|
|
1365
1384
|
mode: "immediate",
|
|
1366
|
-
title:
|
|
1385
|
+
title: x(e) ? V(n)("exhibition.collection.filterBy") : V(n)("exhibition.collection.filterFurtherBy"),
|
|
1367
1386
|
"reset-label": V(n)("exhibition.collection.resetFilters"),
|
|
1368
1387
|
disabled: d.length === 0,
|
|
1369
1388
|
onReset: (e) => c()
|
|
1370
1389
|
}, {
|
|
1371
1390
|
default: H(() => [
|
|
1372
|
-
|
|
1391
|
+
x(e) ? (L(), M("select", {
|
|
1373
1392
|
key: 0,
|
|
1374
1393
|
class: "mwnf-facet__select",
|
|
1375
1394
|
"aria-label": V(n)("exhibition.collection.selectTheme"),
|
|
@@ -1377,13 +1396,13 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1377
1396
|
disabled: !d.length,
|
|
1378
1397
|
onChange: (e) => ie(t, c, e.target.value)
|
|
1379
1398
|
}, [
|
|
1380
|
-
N("option",
|
|
1381
|
-
N("option",
|
|
1399
|
+
N("option", ma, B(V(n)("exhibition.collection.selectTheme")), 1),
|
|
1400
|
+
N("option", ha, B(V(n)("exhibition.collection.allThemes")), 1),
|
|
1382
1401
|
(L(!0), M(O, null, z(V(o), (e) => (L(), M("option", {
|
|
1383
1402
|
key: e.value,
|
|
1384
1403
|
value: e.value
|
|
1385
|
-
}, B(e.label), 9,
|
|
1386
|
-
], 40,
|
|
1404
|
+
}, B(e.label), 9, ga))), 128))
|
|
1405
|
+
], 40, pa)) : j("", !0),
|
|
1387
1406
|
F(i, {
|
|
1388
1407
|
"model-value": e.country,
|
|
1389
1408
|
options: p.country,
|
|
@@ -1408,7 +1427,7 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1408
1427
|
"placeholder",
|
|
1409
1428
|
"onUpdate:modelValue"
|
|
1410
1429
|
])), 64)),
|
|
1411
|
-
N("div",
|
|
1430
|
+
N("div", _a, [F(i, {
|
|
1412
1431
|
"model-value": e.from,
|
|
1413
1432
|
options: V(J)(d, y),
|
|
1414
1433
|
placeholder: V(n)("exhibition.collection.startDate"),
|
|
@@ -1437,30 +1456,30 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1437
1456
|
"disabled",
|
|
1438
1457
|
"onReset"
|
|
1439
1458
|
])
|
|
1440
|
-
], 512), [[
|
|
1459
|
+
], 512), [[vt, !f.value || m.value]])]),
|
|
1441
1460
|
_: 1
|
|
1442
1461
|
})]));
|
|
1443
1462
|
}
|
|
1444
|
-
},
|
|
1463
|
+
}, ya = { class: "mwnf-dxa-exhibition-collection" }, ba = { class: "mwnf-dxa-exhibition-collection__dropdowns" }, xa = { class: "mwnf-dxa-exhibition-collection__label" }, Sa = { class: "mwnf-dxa-exhibition-collection__selects" }, Ca = ["aria-label"], wa = {
|
|
1445
1464
|
selected: "",
|
|
1446
1465
|
disabled: "",
|
|
1447
1466
|
value: ""
|
|
1448
|
-
},
|
|
1467
|
+
}, Ta = { value: "all" }, Ea = ["value"], Da = ["aria-label", "onChange"], Oa = {
|
|
1449
1468
|
selected: "",
|
|
1450
1469
|
disabled: "",
|
|
1451
1470
|
value: ""
|
|
1452
|
-
},
|
|
1471
|
+
}, ka = ["value"], Aa = { class: "mwnf-dxa-exhibition-collection__dates" }, ja = ["aria-label"], Ma = {
|
|
1453
1472
|
selected: "",
|
|
1454
1473
|
disabled: "",
|
|
1455
1474
|
value: ""
|
|
1456
|
-
},
|
|
1475
|
+
}, Na = ["value"], Pa = ["aria-label"], Fa = {
|
|
1457
1476
|
selected: "",
|
|
1458
1477
|
disabled: "",
|
|
1459
1478
|
value: ""
|
|
1460
|
-
},
|
|
1479
|
+
}, Ia = ["value"], La = {
|
|
1461
1480
|
__name: "CollectionSearch",
|
|
1462
1481
|
setup(e) {
|
|
1463
|
-
let t =
|
|
1482
|
+
let t = It(), { t: n, locale: r } = q(), { themeOptions: i } = Gi(r), a = At(De, Ue), o = k(() => [
|
|
1464
1483
|
{
|
|
1465
1484
|
key: "country",
|
|
1466
1485
|
name: "exhibition.collection.selectCountry",
|
|
@@ -1479,66 +1498,66 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1479
1498
|
]), s = {
|
|
1480
1499
|
"catalogue.era.ad": "exhibition.era.ad",
|
|
1481
1500
|
"catalogue.era.bc": "exhibition.era.bc"
|
|
1482
|
-
}, c = (e) => n(s[e] ?? e), l = k(() => J(
|
|
1501
|
+
}, c = (e) => n(s[e] ?? e), l = k(() => J(De.value ?? [], c));
|
|
1483
1502
|
function u(e, n) {
|
|
1484
1503
|
n !== "" && n != null && (n === "all" ? t.push({ name: "collection-results" }) : t.push({
|
|
1485
1504
|
name: "collection-results",
|
|
1486
1505
|
query: { [e]: String(n) }
|
|
1487
1506
|
}));
|
|
1488
1507
|
}
|
|
1489
|
-
return (e, t) => (L(), M("div",
|
|
1508
|
+
return (e, t) => (L(), M("div", ya, [N("div", ba, [N("div", xa, B(V(n)("exhibition.collection.filterBy")), 1), N("div", Sa, [
|
|
1490
1509
|
N("select", {
|
|
1491
1510
|
class: "mwnf-dxa-exhibition-collection__select",
|
|
1492
1511
|
"aria-label": V(n)("exhibition.collection.selectTheme"),
|
|
1493
1512
|
onChange: t[0] ||= (e) => u("theme", e.target.value)
|
|
1494
1513
|
}, [
|
|
1495
|
-
N("option",
|
|
1496
|
-
N("option",
|
|
1514
|
+
N("option", wa, B(V(n)("exhibition.collection.selectTheme")), 1),
|
|
1515
|
+
N("option", Ta, B(V(n)("exhibition.collection.allThemes")), 1),
|
|
1497
1516
|
(L(!0), M(O, null, z(V(i), (e) => (L(), M("option", {
|
|
1498
1517
|
key: e.value,
|
|
1499
1518
|
value: e.value
|
|
1500
|
-
}, B(e.label), 9,
|
|
1501
|
-
], 40,
|
|
1519
|
+
}, B(e.label), 9, Ea))), 128))
|
|
1520
|
+
], 40, Ca),
|
|
1502
1521
|
(L(!0), M(O, null, z(o.value, (e) => (L(), M("select", {
|
|
1503
1522
|
key: e.key,
|
|
1504
1523
|
class: "mwnf-dxa-exhibition-collection__select",
|
|
1505
1524
|
"aria-label": V(n)(e.name),
|
|
1506
1525
|
onChange: (t) => u(e.key, t.target.value)
|
|
1507
|
-
}, [N("option",
|
|
1526
|
+
}, [N("option", Oa, B(V(n)(e.name)), 1), (L(!0), M(O, null, z(e.options, (e) => (L(), M("option", {
|
|
1508
1527
|
key: e.value,
|
|
1509
1528
|
value: String(e.value)
|
|
1510
|
-
}, B(e.label), 9,
|
|
1511
|
-
N("div",
|
|
1529
|
+
}, B(e.label), 9, ka))), 128))], 40, Da))), 128)),
|
|
1530
|
+
N("div", Aa, [N("select", {
|
|
1512
1531
|
class: "mwnf-dxa-exhibition-collection__select",
|
|
1513
1532
|
"aria-label": V(n)("exhibition.collection.startDate"),
|
|
1514
1533
|
onChange: t[1] ||= (e) => u("from", e.target.value)
|
|
1515
|
-
}, [N("option",
|
|
1534
|
+
}, [N("option", Ma, B(V(n)("exhibition.collection.startDate")), 1), (L(!0), M(O, null, z(l.value, (e) => (L(), M("option", {
|
|
1516
1535
|
key: e.value,
|
|
1517
1536
|
value: String(e.value)
|
|
1518
|
-
}, B(e.label), 9,
|
|
1537
|
+
}, B(e.label), 9, Na))), 128))], 40, ja), N("select", {
|
|
1519
1538
|
class: "mwnf-dxa-exhibition-collection__select",
|
|
1520
1539
|
"aria-label": V(n)("exhibition.collection.endDate"),
|
|
1521
1540
|
onChange: t[2] ||= (e) => u("to", e.target.value)
|
|
1522
|
-
}, [N("option",
|
|
1541
|
+
}, [N("option", Fa, B(V(n)("exhibition.collection.endDate")), 1), (L(!0), M(O, null, z(l.value, (e) => (L(), M("option", {
|
|
1523
1542
|
key: e.value,
|
|
1524
1543
|
value: String(e.value)
|
|
1525
|
-
}, B(e.label), 9,
|
|
1544
|
+
}, B(e.label), 9, Ia))), 128))], 40, Pa)])
|
|
1526
1545
|
])]), F(V(W), {
|
|
1527
1546
|
class: "mwnf-dxa-exhibition-collection__description mwnf-prose",
|
|
1528
1547
|
dir: "auto",
|
|
1529
1548
|
keypath: "exhibition.collection.intro"
|
|
1530
1549
|
})]));
|
|
1531
1550
|
}
|
|
1532
|
-
},
|
|
1551
|
+
}, Ra = {
|
|
1533
1552
|
key: 0,
|
|
1534
1553
|
class: "mwnf-dxa-exhibition-partner-objects"
|
|
1535
|
-
},
|
|
1554
|
+
}, za = {
|
|
1536
1555
|
key: 0,
|
|
1537
1556
|
class: "mwnf-dxa-exhibition-partner-objects__header"
|
|
1538
|
-
},
|
|
1557
|
+
}, Ba = { class: "mwnf-dxa-exhibition-partner-objects__name" }, Va = { class: "mwnf-dxa-exhibition-partner-objects__place" }, Ha = { class: "mwnf-dxa-exhibition-partner-objects__content" }, Ua = { class: "mwnf-dxa-exhibition-partner-objects__grid" }, Wa = { class: "mwnf-dxa-exhibition-partner-objects__profile" }, Ga = {
|
|
1539
1558
|
key: 1,
|
|
1540
1559
|
class: "mwnf-dxa-exhibition-partner-objects__end"
|
|
1541
|
-
},
|
|
1560
|
+
}, Ka = {
|
|
1542
1561
|
__name: "PartnerObjects",
|
|
1543
1562
|
props: {
|
|
1544
1563
|
variant: {
|
|
@@ -1551,64 +1570,64 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1551
1570
|
}
|
|
1552
1571
|
},
|
|
1553
1572
|
setup(t) {
|
|
1554
|
-
let n = t, r = k(() => n.variant === "institution"), i = X(), a = k(() =>
|
|
1573
|
+
let n = t, r = k(() => n.variant === "institution"), i = X(), a = k(() => Se(i.params.id)), o = k(() => ({
|
|
1555
1574
|
entity: "items",
|
|
1556
1575
|
scope: (e) => e.partner_id === a.value?.id,
|
|
1557
|
-
...
|
|
1576
|
+
...qe,
|
|
1558
1577
|
summary: () => [],
|
|
1559
|
-
record:
|
|
1578
|
+
record: ke
|
|
1560
1579
|
}));
|
|
1561
1580
|
function s(e) {
|
|
1562
1581
|
let t = e[0];
|
|
1563
1582
|
if (!t) return null;
|
|
1564
|
-
let n = w("items", t.id,
|
|
1583
|
+
let n = w("items", t.id, He);
|
|
1565
1584
|
return {
|
|
1566
1585
|
name: T("partners", a.value?.id),
|
|
1567
1586
|
place: [n.location, T("countries", t.country_id)].filter(Boolean).join(", ")
|
|
1568
1587
|
};
|
|
1569
1588
|
}
|
|
1570
|
-
return (n, i) => a.value ? (L(), M("div",
|
|
1589
|
+
return (n, i) => a.value ? (L(), M("div", Ra, [F(E, {
|
|
1571
1590
|
spec: o.value,
|
|
1572
1591
|
class: "mwnf-dxa-partner-objects"
|
|
1573
1592
|
}, {
|
|
1574
1593
|
before: H(({ matching: t, pageInfo: n, goToPage: r }) => [
|
|
1575
1594
|
F(e),
|
|
1576
|
-
s(t) ? (L(), M("div",
|
|
1577
|
-
F(
|
|
1595
|
+
s(t) ? (L(), M("div", za, [N("p", Ba, B(s(t).name), 1), N("p", Va, B(s(t).place), 1)])) : j("", !0),
|
|
1596
|
+
F(Q, {
|
|
1578
1597
|
class: "mwnf-dxa-exhibition-pages--top",
|
|
1579
1598
|
"page-info": n,
|
|
1580
1599
|
onNavigate: r
|
|
1581
1600
|
}, null, 8, ["page-info", "onNavigate"])
|
|
1582
1601
|
]),
|
|
1583
|
-
records: H(({ rows: e }) => [N("div",
|
|
1602
|
+
records: H(({ rows: e }) => [N("div", Ha, [N("div", Ua, [e.length ? (L(), A($, {
|
|
1584
1603
|
key: 0,
|
|
1585
1604
|
rows: e,
|
|
1586
1605
|
family: "exhibition"
|
|
1587
1606
|
}, null, 8, ["rows"])) : (L(), A(V(W), {
|
|
1588
1607
|
key: 1,
|
|
1589
1608
|
keypath: r.value ? t.texts.emptyInstitution : t.texts.emptyPartner
|
|
1590
|
-
}, null, 8, ["keypath"]))]), N("div",
|
|
1609
|
+
}, null, 8, ["keypath"]))]), N("div", Wa, [F(V(Y), { to: V(xe)(a.value) }, {
|
|
1591
1610
|
default: H(() => [i[0] ||= N("span", { "aria-hidden": "true" }, "➦", -1), P(" " + B(n.$t(r.value ? t.texts.institutionProfileLabel : t.texts.partnerProfileLabel)), 1)]),
|
|
1592
1611
|
_: 1
|
|
1593
1612
|
}, 8, ["to"])])])]),
|
|
1594
1613
|
pagination: H(() => [...i[1] ||= []]),
|
|
1595
|
-
after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(
|
|
1614
|
+
after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(Q, {
|
|
1596
1615
|
key: 0,
|
|
1597
1616
|
"page-info": e,
|
|
1598
1617
|
onNavigate: t
|
|
1599
|
-
}, null, 8, ["page-info", "onNavigate"])) : (L(), M("div",
|
|
1618
|
+
}, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", Ga))]),
|
|
1600
1619
|
_: 1
|
|
1601
1620
|
}, 8, ["spec"])])) : j("", !0);
|
|
1602
1621
|
}
|
|
1603
|
-
},
|
|
1622
|
+
}, qa = () => Promise.resolve().then(() => ns), Ja = () => Promise.resolve().then(() => ds), Ya = () => Promise.resolve().then(() => ps), Xa = () => Promise.resolve().then(() => ks), Za = () => Promise.resolve().then(() => Ms), Qa = () => Promise.resolve().then(() => Fs), $a = () => import("./Theme-BM4TFT0i.js").then((e) => e.t), eo = () => Promise.resolve().then(() => $s), to = () => Promise.resolve().then(() => vc), no = () => Promise.resolve().then(() => bc), ro = () => Promise.resolve().then(() => Ic), io = {
|
|
1604
1623
|
emptyPartner: "exhibition.partnerObjects.emptyPartner",
|
|
1605
1624
|
emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
|
|
1606
1625
|
institutionSummary: "exhibition.partner.monumentsInExhibition",
|
|
1607
1626
|
partnerProfileLabel: "partner.action.partnerProfile",
|
|
1608
1627
|
institutionProfileLabel: "exhibition.partnerObjects.institutionProfile"
|
|
1609
1628
|
};
|
|
1610
|
-
function
|
|
1611
|
-
let t =
|
|
1629
|
+
function ao(e) {
|
|
1630
|
+
let t = Ot([
|
|
1612
1631
|
"gallery",
|
|
1613
1632
|
"items",
|
|
1614
1633
|
"partners",
|
|
@@ -1619,104 +1638,104 @@ function co(e) {
|
|
|
1619
1638
|
{
|
|
1620
1639
|
path: "/",
|
|
1621
1640
|
name: "home",
|
|
1622
|
-
component:
|
|
1641
|
+
component: qa,
|
|
1623
1642
|
meta: t("home")
|
|
1624
1643
|
},
|
|
1625
1644
|
{
|
|
1626
1645
|
path: "/item/:id",
|
|
1627
1646
|
name: "item",
|
|
1628
|
-
component:
|
|
1647
|
+
component: Ja,
|
|
1629
1648
|
props: (e) => ({ id: String(e.params.id) }),
|
|
1630
1649
|
meta: t("database", "languages", "dynasties", "glossary", "timelines", "timeline_events")
|
|
1631
1650
|
},
|
|
1632
1651
|
{
|
|
1633
1652
|
path: "/timeline",
|
|
1634
1653
|
name: "timeline",
|
|
1635
|
-
component:
|
|
1654
|
+
component: Ya,
|
|
1636
1655
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1637
1656
|
}
|
|
1638
1657
|
] : [],
|
|
1639
1658
|
{
|
|
1640
1659
|
path: "/search",
|
|
1641
1660
|
name: "search-results",
|
|
1642
|
-
component:
|
|
1661
|
+
component: Fn,
|
|
1643
1662
|
meta: t("database")
|
|
1644
1663
|
},
|
|
1645
1664
|
{
|
|
1646
1665
|
path: "/how-to-search",
|
|
1647
1666
|
name: "search-how-to",
|
|
1648
|
-
component:
|
|
1667
|
+
component: qt,
|
|
1649
1668
|
meta: t("database")
|
|
1650
1669
|
},
|
|
1651
1670
|
{
|
|
1652
1671
|
path: "/partners",
|
|
1653
1672
|
name: "partners",
|
|
1654
|
-
component:
|
|
1673
|
+
component: un,
|
|
1655
1674
|
meta: t("partners")
|
|
1656
1675
|
},
|
|
1657
1676
|
{
|
|
1658
1677
|
path: "/partner/:id",
|
|
1659
1678
|
name: "partner",
|
|
1660
|
-
component:
|
|
1679
|
+
component: Vt,
|
|
1661
1680
|
props: (e) => ({
|
|
1662
1681
|
id: String(e.params.id),
|
|
1663
|
-
family:
|
|
1682
|
+
family: _e
|
|
1664
1683
|
}),
|
|
1665
1684
|
meta: t("partners", "languages")
|
|
1666
1685
|
},
|
|
1667
1686
|
{
|
|
1668
1687
|
path: "/partner/:id/objects",
|
|
1669
1688
|
name: "partner-objects",
|
|
1670
|
-
component:
|
|
1689
|
+
component: gr,
|
|
1671
1690
|
meta: t("partners")
|
|
1672
1691
|
},
|
|
1673
1692
|
{
|
|
1674
1693
|
path: "/timeline-results",
|
|
1675
1694
|
name: "timeline-results",
|
|
1676
|
-
component:
|
|
1695
|
+
component: In,
|
|
1677
1696
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1678
1697
|
},
|
|
1679
1698
|
{
|
|
1680
1699
|
path: "/timeline/gallery",
|
|
1681
1700
|
name: "timeline-gallery",
|
|
1682
|
-
component:
|
|
1701
|
+
component: zn,
|
|
1683
1702
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1684
1703
|
},
|
|
1685
1704
|
{
|
|
1686
1705
|
path: "/about",
|
|
1687
1706
|
name: "about",
|
|
1688
|
-
component:
|
|
1707
|
+
component: Ut,
|
|
1689
1708
|
meta: t("about")
|
|
1690
1709
|
},
|
|
1691
1710
|
{
|
|
1692
1711
|
path: "/credits",
|
|
1693
1712
|
name: "credits",
|
|
1694
|
-
component:
|
|
1713
|
+
component: Wt,
|
|
1695
1714
|
props: { bodyKey: n },
|
|
1696
1715
|
meta: t("credits")
|
|
1697
1716
|
},
|
|
1698
1717
|
{
|
|
1699
1718
|
path: "/collection",
|
|
1700
1719
|
name: "collection",
|
|
1701
|
-
component:
|
|
1720
|
+
component: ur,
|
|
1702
1721
|
meta: t("collection", "tags")
|
|
1703
1722
|
},
|
|
1704
1723
|
{
|
|
1705
1724
|
path: "/collection-results",
|
|
1706
1725
|
name: "collection-results",
|
|
1707
|
-
component:
|
|
1726
|
+
component: Jn,
|
|
1708
1727
|
meta: t("collection", "tags", "timelines")
|
|
1709
1728
|
}
|
|
1710
1729
|
];
|
|
1711
1730
|
}
|
|
1712
|
-
function
|
|
1713
|
-
let t =
|
|
1731
|
+
function oo(e) {
|
|
1732
|
+
let t = Ot([
|
|
1714
1733
|
"exhibition",
|
|
1715
1734
|
"items",
|
|
1716
1735
|
"partners",
|
|
1717
1736
|
"countries"
|
|
1718
1737
|
]), n = {
|
|
1719
|
-
...
|
|
1738
|
+
...io,
|
|
1720
1739
|
...e.partnerObjects
|
|
1721
1740
|
};
|
|
1722
1741
|
return [
|
|
@@ -1724,56 +1743,56 @@ function lo(e) {
|
|
|
1724
1743
|
{
|
|
1725
1744
|
path: "/",
|
|
1726
1745
|
name: "home",
|
|
1727
|
-
component:
|
|
1746
|
+
component: Xa,
|
|
1728
1747
|
meta: t("home")
|
|
1729
1748
|
},
|
|
1730
1749
|
{
|
|
1731
1750
|
path: "/about",
|
|
1732
1751
|
name: "about",
|
|
1733
|
-
component:
|
|
1734
|
-
meta: t("about", "themes")
|
|
1752
|
+
component: Za,
|
|
1753
|
+
meta: t("about", "themes", "glossary", "dynasties")
|
|
1735
1754
|
},
|
|
1736
1755
|
{
|
|
1737
1756
|
path: "/themes",
|
|
1738
1757
|
name: "themes",
|
|
1739
|
-
component:
|
|
1758
|
+
component: Qa,
|
|
1740
1759
|
meta: t("themes", "themes")
|
|
1741
1760
|
},
|
|
1742
1761
|
{
|
|
1743
1762
|
path: "/theme/:id/:subtheme?/:image?",
|
|
1744
1763
|
name: "theme",
|
|
1745
|
-
component:
|
|
1764
|
+
component: $a,
|
|
1746
1765
|
meta: t("themes", "themes", "glossary", "dynasties")
|
|
1747
1766
|
},
|
|
1748
1767
|
{
|
|
1749
1768
|
path: "/theme-gallery/:id/:subtheme?",
|
|
1750
1769
|
name: "theme-gallery",
|
|
1751
|
-
component:
|
|
1770
|
+
component: eo,
|
|
1752
1771
|
meta: t("themes", "themes")
|
|
1753
1772
|
},
|
|
1754
1773
|
{
|
|
1755
1774
|
path: "/item/:id",
|
|
1756
1775
|
name: "item",
|
|
1757
|
-
component:
|
|
1776
|
+
component: to,
|
|
1758
1777
|
props: (e) => ({ id: String(e.params.id) }),
|
|
1759
1778
|
meta: t("database", "languages", "dynasties", "glossary", "timelines", "timeline_events")
|
|
1760
1779
|
},
|
|
1761
1780
|
{
|
|
1762
1781
|
path: "/related",
|
|
1763
1782
|
name: "related",
|
|
1764
|
-
component:
|
|
1783
|
+
component: no,
|
|
1765
1784
|
meta: t("related", "related_content")
|
|
1766
1785
|
},
|
|
1767
1786
|
{
|
|
1768
1787
|
path: "/timeline",
|
|
1769
1788
|
name: "timeline",
|
|
1770
|
-
component:
|
|
1789
|
+
component: ro,
|
|
1771
1790
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1772
1791
|
},
|
|
1773
1792
|
...e.creditsBody ? [{
|
|
1774
1793
|
path: "/credits",
|
|
1775
1794
|
name: "credits",
|
|
1776
|
-
component:
|
|
1795
|
+
component: Kt,
|
|
1777
1796
|
props: { bodyKey: e.creditsBody },
|
|
1778
1797
|
meta: t("credits")
|
|
1779
1798
|
}] : []
|
|
@@ -1781,45 +1800,45 @@ function lo(e) {
|
|
|
1781
1800
|
{
|
|
1782
1801
|
path: "/search",
|
|
1783
1802
|
name: "search-results",
|
|
1784
|
-
component:
|
|
1803
|
+
component: ti,
|
|
1785
1804
|
meta: t("database")
|
|
1786
1805
|
},
|
|
1787
1806
|
{
|
|
1788
1807
|
path: "/how-to-search",
|
|
1789
1808
|
name: "search-how-to",
|
|
1790
|
-
component:
|
|
1809
|
+
component: vr,
|
|
1791
1810
|
meta: t("database")
|
|
1792
1811
|
},
|
|
1793
1812
|
{
|
|
1794
1813
|
path: "/partners",
|
|
1795
1814
|
name: "partners",
|
|
1796
|
-
component:
|
|
1815
|
+
component: Mr,
|
|
1797
1816
|
meta: t("partners")
|
|
1798
1817
|
},
|
|
1799
1818
|
{
|
|
1800
1819
|
path: "/partner/:id",
|
|
1801
1820
|
name: "partner",
|
|
1802
|
-
component:
|
|
1821
|
+
component: Vt,
|
|
1803
1822
|
props: (e) => ({
|
|
1804
1823
|
id: String(e.params.id),
|
|
1805
|
-
family:
|
|
1824
|
+
family: ye
|
|
1806
1825
|
}),
|
|
1807
1826
|
meta: t("partners", "languages")
|
|
1808
1827
|
},
|
|
1809
1828
|
{
|
|
1810
1829
|
path: "/partner/:id/objects",
|
|
1811
1830
|
name: "partner-objects",
|
|
1812
|
-
component:
|
|
1831
|
+
component: Ka,
|
|
1813
1832
|
props: { texts: n },
|
|
1814
1833
|
meta: t("partners")
|
|
1815
1834
|
},
|
|
1816
1835
|
{
|
|
1817
1836
|
path: "/institution/:id",
|
|
1818
1837
|
name: "institution",
|
|
1819
|
-
component:
|
|
1838
|
+
component: Vt,
|
|
1820
1839
|
props: (e) => ({
|
|
1821
1840
|
id: String(e.params.id),
|
|
1822
|
-
family:
|
|
1841
|
+
family: ye,
|
|
1823
1842
|
variant: "institution"
|
|
1824
1843
|
}),
|
|
1825
1844
|
meta: t("partners", "languages")
|
|
@@ -1827,7 +1846,7 @@ function lo(e) {
|
|
|
1827
1846
|
{
|
|
1828
1847
|
path: "/institution/:id/monuments",
|
|
1829
1848
|
name: "institution-monuments",
|
|
1830
|
-
component:
|
|
1849
|
+
component: Ka,
|
|
1831
1850
|
props: {
|
|
1832
1851
|
variant: "institution",
|
|
1833
1852
|
texts: n
|
|
@@ -1837,36 +1856,36 @@ function lo(e) {
|
|
|
1837
1856
|
{
|
|
1838
1857
|
path: "/timeline-results",
|
|
1839
1858
|
name: "timeline-results",
|
|
1840
|
-
component:
|
|
1859
|
+
component: ki,
|
|
1841
1860
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1842
1861
|
},
|
|
1843
1862
|
{
|
|
1844
1863
|
path: "/timeline/gallery",
|
|
1845
1864
|
name: "timeline-gallery",
|
|
1846
|
-
component:
|
|
1865
|
+
component: Ii,
|
|
1847
1866
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1848
1867
|
},
|
|
1849
1868
|
{
|
|
1850
1869
|
path: "/collection",
|
|
1851
1870
|
name: "collection",
|
|
1852
|
-
component:
|
|
1871
|
+
component: La,
|
|
1853
1872
|
meta: t("collection", "tags", "themes")
|
|
1854
1873
|
},
|
|
1855
1874
|
{
|
|
1856
1875
|
path: "/collection-results",
|
|
1857
1876
|
name: "collection-results",
|
|
1858
|
-
component:
|
|
1877
|
+
component: va,
|
|
1859
1878
|
meta: t("collection", "tags", "timelines", "themes")
|
|
1860
1879
|
}
|
|
1861
1880
|
];
|
|
1862
1881
|
}
|
|
1863
|
-
function
|
|
1864
|
-
if (e === "gallery") return
|
|
1865
|
-
if (e === "exhibition") return
|
|
1882
|
+
function so(e, t = {}) {
|
|
1883
|
+
if (e === "gallery") return ao(t);
|
|
1884
|
+
if (e === "exhibition") return oo(t);
|
|
1866
1885
|
throw Error(`standardRoutes: unknown family "${e}" (expected "gallery" or "exhibition")`);
|
|
1867
1886
|
}
|
|
1868
1887
|
// node_modules/@museumwnf/viewer-core/src/legacy/index.js
|
|
1869
|
-
function
|
|
1888
|
+
function co(e, t = []) {
|
|
1870
1889
|
let n = String(e?.backward_compatibility ?? "").split(":");
|
|
1871
1890
|
if (n[0] === "mwnf3_sharing_history") {
|
|
1872
1891
|
let t = n[2] ?? e?.id ?? "";
|
|
@@ -1885,18 +1904,18 @@ function fo(e, t = []) {
|
|
|
1885
1904
|
countryCode: r?.code ?? ""
|
|
1886
1905
|
};
|
|
1887
1906
|
}
|
|
1888
|
-
function
|
|
1907
|
+
function lo(e, t, n, r) {
|
|
1889
1908
|
return (e ?? []).find((e) => {
|
|
1890
|
-
let i =
|
|
1909
|
+
let i = co(e, t);
|
|
1891
1910
|
return i.legacyId === r && i.countryCode === n;
|
|
1892
1911
|
}) ?? null;
|
|
1893
1912
|
}
|
|
1894
|
-
function
|
|
1913
|
+
function uo(e, t) {
|
|
1895
1914
|
let n = String(t ?? "").split("/").join(":").toLowerCase();
|
|
1896
1915
|
return (e ?? []).find((e) => e?.backward_compatibility?.toLowerCase() === n) ?? null;
|
|
1897
1916
|
}
|
|
1898
1917
|
// src/dxa/gallery/Shell.vue
|
|
1899
|
-
var
|
|
1918
|
+
var fo = {
|
|
1900
1919
|
__name: "Shell",
|
|
1901
1920
|
props: {
|
|
1902
1921
|
language: {
|
|
@@ -1910,49 +1929,49 @@ var ho = {
|
|
|
1910
1929
|
},
|
|
1911
1930
|
emits: ["update:language"],
|
|
1912
1931
|
setup(e, { emit: t }) {
|
|
1913
|
-
let n = e, r = t, { t: i, locale: a } = q(), o =
|
|
1932
|
+
let n = e, r = t, { t: i, locale: a } = q(), o = Nt(), s = k(() => o.links ?? {}), c = k(() => o.galleryShell ?? {}), l = Mt(), u = k(() => l.value === "home"), d = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1914
1933
|
function f(e) {
|
|
1915
1934
|
return e?.[a.value] ?? e?.en ?? "";
|
|
1916
1935
|
}
|
|
1917
|
-
let
|
|
1936
|
+
let m = k(() => te(f));
|
|
1918
1937
|
function h(e, t) {
|
|
1919
1938
|
if (!(e in c.value)) return t();
|
|
1920
1939
|
let n = c.value[e];
|
|
1921
1940
|
return n ? i(n) : "";
|
|
1922
1941
|
}
|
|
1923
|
-
let g = k(() => u.value ? "" : h("headerEyebrow", () => i("core.project.galleries"))),
|
|
1942
|
+
let g = k(() => u.value ? "" : h("headerEyebrow", () => i("core.project.galleries"))), v = k(() => u.value ? "" : h("headerTitle", () => m.value)), y = k(() => c.value.bannerImage ? $e(o.chrome, c.value.bannerImage) : re(me.value?.banner_image_path, "hi_res")), b = k(() => {
|
|
1924
1943
|
if (c.value.bannerCaption) return c.value.bannerCaption;
|
|
1925
|
-
let e =
|
|
1944
|
+
let e = ue.value.get(me.value?.banner_item_id);
|
|
1926
1945
|
if (!e) return "";
|
|
1927
|
-
let t =
|
|
1946
|
+
let t = p("items", e.id, fe);
|
|
1928
1947
|
return {
|
|
1929
|
-
name:
|
|
1930
|
-
partner:
|
|
1948
|
+
name: _("items", e.id),
|
|
1949
|
+
partner: _("partners", e.partner_id),
|
|
1931
1950
|
location: t.location ?? "",
|
|
1932
|
-
country:
|
|
1951
|
+
country: _("countries", e.country_id)
|
|
1933
1952
|
};
|
|
1934
|
-
}),
|
|
1953
|
+
}), x = k(() => u.value ? h("bannerEyebrow", () => i("gallery.banner.discoverGalleries")) : ""), ne = k(() => u.value ? h("bannerTitle", () => m.value) : void 0), ie = k(() => c.value.notice === !1 ? null : {
|
|
1935
1954
|
title: i("gallery.notice.tip"),
|
|
1936
|
-
text: `${i("gallery.notice.searchThe")} ${
|
|
1937
|
-
}), ae = k(() =>
|
|
1938
|
-
return (e, t) => (L(), A(
|
|
1955
|
+
text: `${i("gallery.notice.searchThe")} ${te(ee)} ${i("gallery.notice.database")}`
|
|
1956
|
+
}), ae = k(() => !!$e(o.chrome, o.brand?.logo));
|
|
1957
|
+
return (e, t) => (L(), A(Xe, {
|
|
1939
1958
|
class: I(["mwnf-dxa-gallery-shell", { "mwnf-dxa-gallery-shell--home": u.value }]),
|
|
1940
1959
|
languages: n.languages,
|
|
1941
1960
|
language: n.language,
|
|
1942
1961
|
"language-placement": "none",
|
|
1943
1962
|
"header-home": s.value.portal,
|
|
1944
1963
|
"header-eyebrow": g.value,
|
|
1945
|
-
"header-title":
|
|
1964
|
+
"header-title": v.value,
|
|
1946
1965
|
"header-title-href": "#/",
|
|
1947
1966
|
"banner-image": y.value,
|
|
1948
|
-
"banner-caption":
|
|
1949
|
-
"banner-eyebrow":
|
|
1950
|
-
"banner-title":
|
|
1951
|
-
notice:
|
|
1967
|
+
"banner-caption": b.value,
|
|
1968
|
+
"banner-eyebrow": x.value,
|
|
1969
|
+
"banner-title": ne.value,
|
|
1970
|
+
notice: ie.value,
|
|
1952
1971
|
"footer-text": `${V(i)("core.footer.copyright")} 2004–${V(d)}`,
|
|
1953
1972
|
"onUpdate:language": t[0] ||= (e) => r("update:language", e)
|
|
1954
|
-
},
|
|
1955
|
-
default: H(() => [
|
|
1973
|
+
}, ct({
|
|
1974
|
+
default: H(() => [pt(e.$slots, "default")]),
|
|
1956
1975
|
_: 2
|
|
1957
1976
|
}, [ae.value ? void 0 : {
|
|
1958
1977
|
name: "brand",
|
|
@@ -1973,10 +1992,10 @@ var ho = {
|
|
|
1973
1992
|
"footer-text"
|
|
1974
1993
|
]));
|
|
1975
1994
|
}
|
|
1976
|
-
},
|
|
1995
|
+
}, po = {
|
|
1977
1996
|
key: 0,
|
|
1978
1997
|
class: "mwnf-popup-logo"
|
|
1979
|
-
},
|
|
1998
|
+
}, mo = ["aria-label"], ho = ["innerHTML"], go = ["innerHTML"], _o = {
|
|
1980
1999
|
__name: "PopupLogo",
|
|
1981
2000
|
props: {
|
|
1982
2001
|
content: {
|
|
@@ -1998,21 +2017,21 @@ var ho = {
|
|
|
1998
2017
|
},
|
|
1999
2018
|
setup(e) {
|
|
2000
2019
|
let t = e, n = R(!1), r = k(() => t.rawHtml ? t.content : K(t.content)), i = k(() => t.enabled && !!t.content && !n.value);
|
|
2001
|
-
return (t, a) => i.value ? (L(), M("div",
|
|
2020
|
+
return (t, a) => i.value ? (L(), M("div", po, [N("button", {
|
|
2002
2021
|
class: "mwnf-popup-logo__close",
|
|
2003
2022
|
"aria-label": t.$t(e.closeLabel),
|
|
2004
2023
|
onClick: a[0] ||= (e) => n.value = !0
|
|
2005
|
-
}, "✕", 8,
|
|
2024
|
+
}, "✕", 8, mo), e.rawHtml ? (L(), M("div", {
|
|
2006
2025
|
key: 0,
|
|
2007
2026
|
class: "mwnf-popup-logo__content",
|
|
2008
2027
|
innerHTML: r.value
|
|
2009
|
-
}, null, 8,
|
|
2028
|
+
}, null, 8, ho)) : (L(), M("div", {
|
|
2010
2029
|
key: 1,
|
|
2011
2030
|
class: "mwnf-popup-logo__content",
|
|
2012
2031
|
innerHTML: r.value
|
|
2013
|
-
}, null, 8,
|
|
2032
|
+
}, null, 8, go))])) : j("", !0);
|
|
2014
2033
|
}
|
|
2015
|
-
},
|
|
2034
|
+
}, vo = {
|
|
2016
2035
|
__name: "Shell",
|
|
2017
2036
|
props: {
|
|
2018
2037
|
language: {
|
|
@@ -2026,16 +2045,16 @@ var ho = {
|
|
|
2026
2045
|
},
|
|
2027
2046
|
emits: ["update:language"],
|
|
2028
2047
|
setup(e, { emit: t }) {
|
|
2029
|
-
let n = e, r = t, { t: i, locale: a } = q(), o =
|
|
2030
|
-
|
|
2048
|
+
let n = e, r = t, { t: i, locale: a } = q(), o = Nt(), s = k(() => o.links ?? {}), c = k(() => !!$e(o.chrome, o.brand?.logo)), l = Mt(), u = k(() => l.value === "home"), d = (/* @__PURE__ */ new Date()).getFullYear(), f = k(() => u.value ? C.value?.homepage_image_path : null);
|
|
2049
|
+
bt(() => {
|
|
2031
2050
|
if (typeof document > "u") return;
|
|
2032
|
-
let e = C.value?.homepage_image_path, t = e ?
|
|
2051
|
+
let e = C.value?.homepage_image_path, t = e ? Ve(e, "hi_res") : "";
|
|
2033
2052
|
t ? document.documentElement.style.setProperty("--mwnf-dxa-exhibition-backdrop", `url("${t.replace(/"/g, "%22")}")`) : document.documentElement.style.removeProperty("--mwnf-dxa-exhibition-backdrop");
|
|
2034
2053
|
});
|
|
2035
|
-
let p = k(() => f.value ?
|
|
2036
|
-
let e = f.value ? C.value?.homepage_item_id : C.value?.banner_item_id, t =
|
|
2037
|
-
if (!t) return f.value ? "" :
|
|
2038
|
-
let n = w("items", t.id,
|
|
2054
|
+
let p = k(() => f.value ? Ve(f.value, "hi_res") : Ve(C.value?.banner_image_path, "hi_res")), m = k(() => {
|
|
2055
|
+
let e = f.value ? C.value?.homepage_item_id : C.value?.banner_item_id, t = Le.value.get(e);
|
|
2056
|
+
if (!t) return f.value ? "" : Re(a.value);
|
|
2057
|
+
let n = w("items", t.id, He);
|
|
2039
2058
|
return {
|
|
2040
2059
|
name: T("items", t.id),
|
|
2041
2060
|
holder: n.holder ?? "",
|
|
@@ -2059,10 +2078,10 @@ var ho = {
|
|
|
2059
2078
|
let e = o.sponsorLogos;
|
|
2060
2079
|
return Array.isArray(e) ? e.map((e) => ({
|
|
2061
2080
|
...e,
|
|
2062
|
-
image:
|
|
2081
|
+
image: $e(o.chrome, e.image),
|
|
2063
2082
|
alt: e.alt ? i(e.alt) : ""
|
|
2064
2083
|
})).filter((e) => e.image) : (C.value?.logos ?? []).map((e) => ({
|
|
2065
|
-
image: e.legacy_path ?
|
|
2084
|
+
image: e.legacy_path ? Ve(e.legacy_path, "full") : null,
|
|
2066
2085
|
alt: g(e),
|
|
2067
2086
|
href: e.url || void 0,
|
|
2068
2087
|
category_id: e.category_id,
|
|
@@ -2075,13 +2094,13 @@ var ho = {
|
|
|
2075
2094
|
let t = o.media?.legacyHost;
|
|
2076
2095
|
if (!t || !e.startsWith(`${t.replace(/\/+$/, "")}/`)) return null;
|
|
2077
2096
|
let n = e.slice(t.replace(/\/+$/, "").length + 1).split("/").slice(1).join("/");
|
|
2078
|
-
return
|
|
2097
|
+
return Qe(o.chrome, n);
|
|
2079
2098
|
}
|
|
2080
|
-
let y = k(() =>
|
|
2099
|
+
let y = k(() => Ze(Te(C.value?.popup_logos?.[a.value] ?? C.value?.popup_logos?.en ?? ""), v)), ee = k(() => {
|
|
2081
2100
|
let e = C.value?.popup_logo_show;
|
|
2082
2101
|
return e == null ? !1 : typeof e == "boolean" ? e : e[a.value] ?? e.en ?? !1;
|
|
2083
2102
|
});
|
|
2084
|
-
return (e, t) => (L(), A(
|
|
2103
|
+
return (e, t) => (L(), A(Xe, {
|
|
2085
2104
|
languages: n.languages,
|
|
2086
2105
|
language: n.language,
|
|
2087
2106
|
"language-placement": "header",
|
|
@@ -2092,29 +2111,29 @@ var ho = {
|
|
|
2092
2111
|
"banner-image": p.value,
|
|
2093
2112
|
"banner-caption": m.value,
|
|
2094
2113
|
"banner-caption-label": V(i)("layout.banner.detailFrom"),
|
|
2095
|
-
"banner-title": u.value ? V(
|
|
2096
|
-
"banner-subtitle": u.value ? V(
|
|
2097
|
-
"banner-headline": u.value ? V(
|
|
2114
|
+
"banner-title": u.value ? V(Ae)(V(a)) : "",
|
|
2115
|
+
"banner-subtitle": u.value ? V(We)(V(a)) : "",
|
|
2116
|
+
"banner-headline": u.value ? V(Ie)(V(a)) : "",
|
|
2098
2117
|
"banner-enter": u.value ? {
|
|
2099
2118
|
label: V(i)("exhibition.action.enter"),
|
|
2100
2119
|
href: "#/about"
|
|
2101
2120
|
} : null,
|
|
2102
2121
|
"banner-strapline": u.value ? V(i)("exhibition.identity.strapline") : "",
|
|
2103
2122
|
"hyperlinks-variant": "tiles",
|
|
2104
|
-
"hyperlinks-title": V(
|
|
2123
|
+
"hyperlinks-title": V(Ae)(V(a)),
|
|
2105
2124
|
"hyperlinks-title-href": "#/",
|
|
2106
|
-
"hyperlinks-subtitle": V(
|
|
2125
|
+
"hyperlinks-subtitle": V(We)(V(a)),
|
|
2107
2126
|
hyperlinks: h.value,
|
|
2108
2127
|
"footer-text": `${V(i)("core.footer.copyright")} 2004–${V(d)}`,
|
|
2109
2128
|
logos: _.value,
|
|
2110
2129
|
"onUpdate:language": t[0] ||= (e) => r("update:language", e)
|
|
2111
|
-
},
|
|
2112
|
-
notice: H(() => [F(
|
|
2130
|
+
}, ct({
|
|
2131
|
+
notice: H(() => [F(_o, {
|
|
2113
2132
|
content: y.value,
|
|
2114
2133
|
enabled: ee.value,
|
|
2115
2134
|
"raw-html": ""
|
|
2116
2135
|
}, null, 8, ["content", "enabled"])]),
|
|
2117
|
-
default: H(() => [
|
|
2136
|
+
default: H(() => [pt(e.$slots, "default")]),
|
|
2118
2137
|
_: 2
|
|
2119
2138
|
}, [c.value ? void 0 : {
|
|
2120
2139
|
name: "brand",
|
|
@@ -2142,27 +2161,27 @@ var ho = {
|
|
|
2142
2161
|
}
|
|
2143
2162
|
};
|
|
2144
2163
|
// src/dxa/config.js
|
|
2145
|
-
function
|
|
2164
|
+
function yo(e, t) {
|
|
2146
2165
|
let n = `exhibition.sponsors.section${Number(t)}`, r = e(n);
|
|
2147
2166
|
return r && r !== n ? r : null;
|
|
2148
2167
|
}
|
|
2149
|
-
function
|
|
2168
|
+
function bo({ country: e, start: t, end: n, page: r }) {
|
|
2150
2169
|
let i = { country: e };
|
|
2151
2170
|
return t !== "any" && (i.begin = t), n !== "any" && (i.end = n), Number(r) > 1 && (i.page = r), {
|
|
2152
2171
|
name: "timeline-gallery",
|
|
2153
2172
|
query: i
|
|
2154
2173
|
};
|
|
2155
2174
|
}
|
|
2156
|
-
function
|
|
2157
|
-
let { manifest: c } =
|
|
2175
|
+
function xo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects: i = [], creditsBody: a, chrome: o = {}, homeLogos: s = [] }) {
|
|
2176
|
+
let { manifest: c } = kt(), l = Tt();
|
|
2158
2177
|
return {
|
|
2159
2178
|
datasetPackage: e,
|
|
2160
2179
|
siteName: c.site?.names?.en ?? t,
|
|
2161
2180
|
features: { entities: [] },
|
|
2162
2181
|
languages: l,
|
|
2163
|
-
shell:
|
|
2182
|
+
shell: fo,
|
|
2164
2183
|
navigation: {
|
|
2165
|
-
languages:
|
|
2184
|
+
languages: Ct(l),
|
|
2166
2185
|
links: [
|
|
2167
2186
|
{
|
|
2168
2187
|
section: "about",
|
|
@@ -2247,7 +2266,7 @@ function wo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2247
2266
|
empty: "all-objects"
|
|
2248
2267
|
},
|
|
2249
2268
|
placement: ({ section: e }) => e === "home" ? "after-banner" : "before-banner",
|
|
2250
|
-
socialLinks:
|
|
2269
|
+
socialLinks: tt
|
|
2251
2270
|
},
|
|
2252
2271
|
banner: {
|
|
2253
2272
|
variant: ({ section: e }) => e === "home" ? "strip" : "section",
|
|
@@ -2269,7 +2288,7 @@ function wo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2269
2288
|
projectColors: r,
|
|
2270
2289
|
noticeProjects: i,
|
|
2271
2290
|
site: { origin: n },
|
|
2272
|
-
extraViews:
|
|
2291
|
+
extraViews: so("gallery", {
|
|
2273
2292
|
creditsBody: a,
|
|
2274
2293
|
pages: !0
|
|
2275
2294
|
}),
|
|
@@ -2277,8 +2296,8 @@ function wo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2277
2296
|
{
|
|
2278
2297
|
path: "/database-item/:uid(.*)/:language",
|
|
2279
2298
|
async resolve({ uid: e }) {
|
|
2280
|
-
await
|
|
2281
|
-
let t =
|
|
2299
|
+
await wt(["items"]);
|
|
2300
|
+
let t = ne(e);
|
|
2282
2301
|
return t ? {
|
|
2283
2302
|
name: "item",
|
|
2284
2303
|
params: { id: t.id }
|
|
@@ -2288,8 +2307,8 @@ function wo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2288
2307
|
{
|
|
2289
2308
|
path: "/partner/:country/:id/:language",
|
|
2290
2309
|
async resolve({ country: e, id: t }) {
|
|
2291
|
-
await
|
|
2292
|
-
let n =
|
|
2310
|
+
await wt(["partners"]);
|
|
2311
|
+
let n = h(e, t);
|
|
2293
2312
|
return n ? {
|
|
2294
2313
|
name: "partner",
|
|
2295
2314
|
params: { id: n.id }
|
|
@@ -2299,8 +2318,8 @@ function wo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2299
2318
|
{
|
|
2300
2319
|
path: "/partner-objects/:country/:id/:page",
|
|
2301
2320
|
async resolve({ country: e, id: t, page: n }) {
|
|
2302
|
-
await
|
|
2303
|
-
let r =
|
|
2321
|
+
await wt(["partners"]);
|
|
2322
|
+
let r = h(e, t);
|
|
2304
2323
|
return r ? {
|
|
2305
2324
|
name: "partner-objects",
|
|
2306
2325
|
params: { id: r.id },
|
|
@@ -2310,7 +2329,7 @@ function wo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2310
2329
|
},
|
|
2311
2330
|
{
|
|
2312
2331
|
path: "/timeline-gallery/:country/:start/:end/:page",
|
|
2313
|
-
resolve:
|
|
2332
|
+
resolve: bo
|
|
2314
2333
|
},
|
|
2315
2334
|
{
|
|
2316
2335
|
path: "/error",
|
|
@@ -2319,18 +2338,18 @@ function wo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2319
2338
|
]
|
|
2320
2339
|
};
|
|
2321
2340
|
}
|
|
2322
|
-
function
|
|
2323
|
-
let { manifest: l } =
|
|
2341
|
+
function So({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects: i = [], creditsBody: a, partnerObjects: o, chrome: s = {}, sponsorLogos: c }) {
|
|
2342
|
+
let { manifest: l } = kt(), u = Tt(), d = async (e, t) => (await wt([
|
|
2324
2343
|
"exhibition",
|
|
2325
2344
|
"partners",
|
|
2326
2345
|
"countries"
|
|
2327
|
-
]),
|
|
2346
|
+
]), lo(Ce.value, Oe.value, e, t));
|
|
2328
2347
|
return {
|
|
2329
2348
|
datasetPackage: e,
|
|
2330
2349
|
siteName: l.site?.names?.en ?? t,
|
|
2331
2350
|
features: { entities: [] },
|
|
2332
2351
|
languages: u,
|
|
2333
|
-
shell:
|
|
2352
|
+
shell: vo,
|
|
2334
2353
|
navigation: {
|
|
2335
2354
|
languages: u.map((e) => ({
|
|
2336
2355
|
code: e,
|
|
@@ -2361,7 +2380,7 @@ function To({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2361
2380
|
section: "timeline",
|
|
2362
2381
|
label: "core.nav.timeline",
|
|
2363
2382
|
to: { name: "timeline" },
|
|
2364
|
-
when: () =>
|
|
2383
|
+
when: () => je.value
|
|
2365
2384
|
},
|
|
2366
2385
|
{
|
|
2367
2386
|
section: "related",
|
|
@@ -2432,7 +2451,7 @@ function To({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2432
2451
|
empty: "all-items"
|
|
2433
2452
|
},
|
|
2434
2453
|
placement: "before-banner",
|
|
2435
|
-
socialLinks:
|
|
2454
|
+
socialLinks: tt
|
|
2436
2455
|
},
|
|
2437
2456
|
banner: {
|
|
2438
2457
|
variant: ({ section: e }) => e === "home" ? "split" : "section",
|
|
@@ -2440,7 +2459,7 @@ function To({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2440
2459
|
if (e?.name !== "theme" && e?.name !== "theme-gallery") return "";
|
|
2441
2460
|
let n = Number(e.params.id);
|
|
2442
2461
|
if (!Number.isInteger(n) || n < 1) return "";
|
|
2443
|
-
let r = `${t("exhibition.theme.romanLabel")} ${
|
|
2462
|
+
let r = `${t("exhibition.theme.romanLabel")} ${Lt(n + 1)}`, i = e.params.subtheme;
|
|
2444
2463
|
return i && i !== "overview" ? `${r} ▪ ${t("exhibition.theme.subthemeLabel")} ${i}` : e.name === "theme-gallery" ? `${r} ▪ ${t("exhibition.theme.galleryLabel")}` : `${r} ▪ ${t("exhibition.theme.overview")}`;
|
|
2445
2464
|
}
|
|
2446
2465
|
},
|
|
@@ -2461,7 +2480,7 @@ function To({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2461
2480
|
r ? r.push(t) : n.set(e, [t]);
|
|
2462
2481
|
}
|
|
2463
2482
|
return [...n.entries()].sort((e, t) => e[0] - t[0]).map(([e, n]) => ({
|
|
2464
|
-
title: Number(e) === 1 ? t("exhibition.sponsors.patronage") : Number(e) === 2 ? t("exhibition.sponsors.support") :
|
|
2483
|
+
title: Number(e) === 1 ? t("exhibition.sponsors.patronage") : Number(e) === 2 ? t("exhibition.sponsors.support") : yo(t, e) ?? n[0].category ?? "",
|
|
2465
2484
|
sponsors: [...n].sort((e, t) => (e.display_order ?? 0) - (t.display_order ?? 0)).map((e) => ({
|
|
2466
2485
|
name: e.alt,
|
|
2467
2486
|
href: e.href,
|
|
@@ -2475,7 +2494,7 @@ function To({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2475
2494
|
projectColors: r,
|
|
2476
2495
|
noticeProjects: i,
|
|
2477
2496
|
site: { origin: n },
|
|
2478
|
-
extraViews:
|
|
2497
|
+
extraViews: so("exhibition", {
|
|
2479
2498
|
creditsBody: a,
|
|
2480
2499
|
partnerObjects: o,
|
|
2481
2500
|
pages: !0
|
|
@@ -2484,8 +2503,8 @@ function To({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2484
2503
|
{
|
|
2485
2504
|
path: "/database-item/:uid(.*)/:language",
|
|
2486
2505
|
async resolve({ uid: e }) {
|
|
2487
|
-
await
|
|
2488
|
-
let t =
|
|
2506
|
+
await wt(["items"]);
|
|
2507
|
+
let t = uo(De.value, e);
|
|
2489
2508
|
return t ? {
|
|
2490
2509
|
name: "item",
|
|
2491
2510
|
params: { id: t.id }
|
|
@@ -2536,7 +2555,7 @@ function To({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2536
2555
|
},
|
|
2537
2556
|
{
|
|
2538
2557
|
path: "/timeline-gallery/:country/:start/:end/:page",
|
|
2539
|
-
resolve:
|
|
2558
|
+
resolve: bo
|
|
2540
2559
|
},
|
|
2541
2560
|
{
|
|
2542
2561
|
path: "/error",
|
|
@@ -2546,16 +2565,16 @@ function To({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2546
2565
|
};
|
|
2547
2566
|
}
|
|
2548
2567
|
// src/dxa/FeaturedPartners.vue
|
|
2549
|
-
var
|
|
2568
|
+
var Co = {
|
|
2550
2569
|
key: 0,
|
|
2551
2570
|
class: "mwnf-featured-partners"
|
|
2552
|
-
},
|
|
2571
|
+
}, wo = { class: "mwnf-featured-partners__heading" }, To = { class: "mwnf-featured-partners__carousel" }, Eo = {
|
|
2553
2572
|
key: 0,
|
|
2554
2573
|
class: "mwnf-featured-partners__image"
|
|
2555
|
-
},
|
|
2574
|
+
}, Do = ["src", "alt"], Oo = { class: "mwnf-featured-partners__body" }, ko = { class: "mwnf-featured-partners__name" }, Ao = { class: "mwnf-featured-partners__location" }, jo = { key: 0 }, Mo = { class: "mwnf-featured-partners__description" }, No = {
|
|
2556
2575
|
key: 0,
|
|
2557
2576
|
class: "mwnf-featured-partners__controls"
|
|
2558
|
-
},
|
|
2577
|
+
}, Po = ["aria-label", "onClick"], Fo = 8e3, Io = {
|
|
2559
2578
|
__name: "FeaturedPartners",
|
|
2560
2579
|
props: {
|
|
2561
2580
|
records: {
|
|
@@ -2610,21 +2629,21 @@ var Eo = {
|
|
|
2610
2629
|
function l() {
|
|
2611
2630
|
s && clearInterval(s), a.value.length > 0 && (s = setInterval(() => {
|
|
2612
2631
|
o.value = (o.value + 1) % a.value.length;
|
|
2613
|
-
},
|
|
2632
|
+
}, Fo));
|
|
2614
2633
|
}
|
|
2615
|
-
return
|
|
2616
|
-
N("h2",
|
|
2617
|
-
N("div",
|
|
2634
|
+
return dt(l), ut(() => s && clearInterval(s)), (t, r) => a.value.length ? (L(), M("section", Co, [
|
|
2635
|
+
N("h2", wo, B(t.$t(e.headingEntry)), 1),
|
|
2636
|
+
N("div", To, [(L(!0), M(O, null, z(a.value, (r, i) => U((L(), M("div", {
|
|
2618
2637
|
key: r.id,
|
|
2619
2638
|
class: "mwnf-featured-partners__card"
|
|
2620
|
-
}, [r.logo ? (L(), M("span",
|
|
2639
|
+
}, [r.logo ? (L(), M("span", Eo, [N("img", {
|
|
2621
2640
|
src: r.logo,
|
|
2622
2641
|
alt: r.name,
|
|
2623
2642
|
class: "mwnf-featured-partners__logo"
|
|
2624
|
-
}, null, 8,
|
|
2625
|
-
N("span",
|
|
2626
|
-
N("span",
|
|
2627
|
-
N("span",
|
|
2643
|
+
}, null, 8, Do)])) : j("", !0), N("span", Oo, [
|
|
2644
|
+
N("span", ko, B(r.name), 1),
|
|
2645
|
+
N("span", Ao, [r.city ? (L(), M("span", jo, B(r.city) + ", ", 1)) : j("", !0), P(B(r.country), 1)]),
|
|
2646
|
+
N("span", Mo, B(r.description), 1),
|
|
2628
2647
|
r.route ? (L(), A(n, {
|
|
2629
2648
|
key: 0,
|
|
2630
2649
|
to: r.route,
|
|
@@ -2641,34 +2660,34 @@ var Eo = {
|
|
|
2641
2660
|
default: H(() => [P(B(t.$t(e.viewObjectsEntry)) + " >>", 1)]),
|
|
2642
2661
|
_: 1
|
|
2643
2662
|
}, 8, ["to"])) : j("", !0)
|
|
2644
|
-
])])), [[
|
|
2645
|
-
a.value.length > 1 ? (L(), M("div",
|
|
2663
|
+
])])), [[vt, i === o.value]])), 128))]),
|
|
2664
|
+
a.value.length > 1 ? (L(), M("div", No, [(L(!0), M(O, null, z(a.value, (e, n) => (L(), M("button", {
|
|
2646
2665
|
key: e.id,
|
|
2647
2666
|
class: I(["mwnf-featured-partners__bullet", { "mwnf-featured-partners__bullet--active": n === o.value }]),
|
|
2648
2667
|
"aria-label": `${t.$t("core.action.show")} ${e.name}`,
|
|
2649
2668
|
onClick: (e) => c(n)
|
|
2650
|
-
}, null, 10,
|
|
2669
|
+
}, null, 10, Po))), 128))])) : j("", !0)
|
|
2651
2670
|
])) : j("", !0);
|
|
2652
2671
|
}
|
|
2653
|
-
},
|
|
2672
|
+
}, Lo = { class: "mwnf-sibling-galleries" }, Ro = {
|
|
2654
2673
|
key: 0,
|
|
2655
2674
|
class: "mwnf-sibling-galleries__galleries"
|
|
2656
|
-
},
|
|
2675
|
+
}, zo = { class: "mwnf-sibling-galleries__header" }, Bo = { class: "mwnf-sibling-galleries__heading" }, Vo = ["href"], Ho = { class: "mwnf-sibling-galleries__grid" }, Uo = {
|
|
2657
2676
|
key: 0,
|
|
2658
2677
|
class: "mwnf-sibling-galleries__image"
|
|
2659
|
-
},
|
|
2678
|
+
}, Wo = ["src", "alt"], Go = {
|
|
2660
2679
|
key: 1,
|
|
2661
2680
|
class: "mwnf-sibling-galleries__image mwnf-sibling-galleries__image--empty"
|
|
2662
|
-
},
|
|
2681
|
+
}, Ko = { class: "mwnf-sibling-galleries__name" }, qo = {
|
|
2663
2682
|
key: 1,
|
|
2664
2683
|
class: "mwnf-sibling-galleries__museums"
|
|
2665
|
-
},
|
|
2684
|
+
}, Jo = { class: "mwnf-sibling-galleries__heading" }, Yo = { class: "mwnf-sibling-galleries__museums-grid" }, Xo = ["href"], Zo = {
|
|
2666
2685
|
key: 0,
|
|
2667
2686
|
class: "mwnf-sibling-galleries__museum-image mwnf-sibling-galleries__museum-image--picture"
|
|
2668
|
-
},
|
|
2687
|
+
}, Qo = ["src"], $o = {
|
|
2669
2688
|
key: 1,
|
|
2670
2689
|
class: "mwnf-sibling-galleries__museum-image"
|
|
2671
|
-
},
|
|
2690
|
+
}, es = { class: "mwnf-sibling-galleries__museum-name" }, ts = {
|
|
2672
2691
|
__name: "SiblingGalleries",
|
|
2673
2692
|
props: {
|
|
2674
2693
|
galleries: {
|
|
@@ -2697,82 +2716,82 @@ var Eo = {
|
|
|
2697
2716
|
}
|
|
2698
2717
|
},
|
|
2699
2718
|
setup(e) {
|
|
2700
|
-
return (t, r) => (L(), M("section",
|
|
2719
|
+
return (t, r) => (L(), M("section", Lo, [e.galleries.length ? (L(), M("div", Ro, [N("div", zo, [N("p", Bo, B(t.$t(e.galleriesHeadingEntry)), 1), e.seeMoreGalleriesHref ? (L(), M("a", {
|
|
2701
2720
|
key: 0,
|
|
2702
2721
|
href: e.seeMoreGalleriesHref,
|
|
2703
2722
|
target: "_blank",
|
|
2704
2723
|
rel: "noopener",
|
|
2705
2724
|
class: "mwnf-sibling-galleries__see-more"
|
|
2706
|
-
}, B(t.$t(e.seeMoreGalleriesEntry)) + " » ", 9,
|
|
2725
|
+
}, B(t.$t(e.seeMoreGalleriesEntry)) + " » ", 9, Vo)) : j("", !0)]), N("div", Ho, [(L(!0), M(O, null, z(e.galleries, (e) => (L(), A(n, {
|
|
2707
2726
|
key: e.id,
|
|
2708
2727
|
to: e.route,
|
|
2709
2728
|
class: I(["mwnf-sibling-galleries__gallery", { "mwnf-sibling-galleries__gallery--no-link": !e.route }])
|
|
2710
2729
|
}, {
|
|
2711
|
-
default: H(() => [e.image ? (L(), M("span",
|
|
2730
|
+
default: H(() => [e.image ? (L(), M("span", Uo, [N("img", {
|
|
2712
2731
|
src: e.image,
|
|
2713
2732
|
alt: e.name
|
|
2714
|
-
}, null, 8,
|
|
2733
|
+
}, null, 8, Wo)])) : (L(), M("span", Go)), N("p", Ko, B(e.name), 1)]),
|
|
2715
2734
|
_: 2
|
|
2716
|
-
}, 1032, ["to", "class"]))), 128))])])) : j("", !0), e.museums.length ? (L(), M("div",
|
|
2735
|
+
}, 1032, ["to", "class"]))), 128))])])) : j("", !0), e.museums.length ? (L(), M("div", qo, [N("div", Jo, B(t.$t(e.museumsHeadingEntry)), 1), N("div", Yo, [(L(!0), M(O, null, z(e.museums, (e) => (L(), M("a", {
|
|
2717
2736
|
key: e.name,
|
|
2718
2737
|
href: e.href || e.to,
|
|
2719
2738
|
target: "_blank",
|
|
2720
2739
|
rel: "noopener",
|
|
2721
2740
|
class: "mwnf-sibling-galleries__museum",
|
|
2722
|
-
style:
|
|
2741
|
+
style: lt({
|
|
2723
2742
|
"--mwnf-museum-bg": e.accent || "var(--mwnf-color-border)",
|
|
2724
2743
|
"--mwnf-museum-text": e.textColor || "inherit"
|
|
2725
2744
|
})
|
|
2726
|
-
}, [e.image ? (L(), M("div",
|
|
2745
|
+
}, [e.image ? (L(), M("div", Zo, [N("img", {
|
|
2727
2746
|
src: e.image,
|
|
2728
2747
|
alt: ""
|
|
2729
|
-
}, null, 8,
|
|
2748
|
+
}, null, 8, Qo)])) : (L(), M("div", $o, B(e.name.split(" ").map((e) => e[0]).join("")), 1)), N("p", es, B(e.name), 1)], 12, Xo))), 128))])])) : j("", !0)]));
|
|
2730
2749
|
}
|
|
2731
|
-
},
|
|
2750
|
+
}, ns = /* @__PURE__ */ D({ default: () => us }), rs = { class: "mwnf-dxa-home" }, is = {
|
|
2732
2751
|
key: 0,
|
|
2733
2752
|
class: "mwnf-dxa-home-logos"
|
|
2734
|
-
},
|
|
2753
|
+
}, as = { class: "mwnf-dxa-home-logos__label" }, os = { class: "mwnf-dxa-home-logos__list" }, ss = ["src", "alt"], cs = 3, ls = 4, us = {
|
|
2735
2754
|
__name: "Home",
|
|
2736
2755
|
setup(e) {
|
|
2737
|
-
let { t, locale: n } = q(), r =
|
|
2738
|
-
|
|
2739
|
-
o.value =
|
|
2756
|
+
let { t, locale: n } = q(), r = Nt(), i = k(() => r.links ?? {}), a = k(() => oe(cs)), o = R([]);
|
|
2757
|
+
dt(() => {
|
|
2758
|
+
o.value = u(ls);
|
|
2740
2759
|
});
|
|
2741
2760
|
let s = k(() => o.value.map((e) => ({
|
|
2742
2761
|
id: e.id,
|
|
2743
2762
|
name: e.names?.[n.value] ?? e.names?.en ?? e.slug,
|
|
2744
|
-
image: e.image_path ?
|
|
2745
|
-
route:
|
|
2763
|
+
image: e.image_path ? re(e.image_path, "zoom") : null,
|
|
2764
|
+
route: m(e)
|
|
2746
2765
|
}))), c = k(() => [
|
|
2747
2766
|
{
|
|
2748
2767
|
name: t("core.project.islamicArt"),
|
|
2749
2768
|
href: `${i.value.islamicArt}/`,
|
|
2750
|
-
image:
|
|
2769
|
+
image: et(r.chrome, "dia.jpg"),
|
|
2751
2770
|
accent: "var(--mwnf-project-ISLandEPM, #ffcc00)",
|
|
2752
2771
|
textColor: "var(--mwnf-project-ISLandEPM-text, #000000)"
|
|
2753
2772
|
},
|
|
2754
2773
|
{
|
|
2755
2774
|
name: t("core.project.baroqueArt"),
|
|
2756
2775
|
href: `${i.value.baroqueArt}/`,
|
|
2757
|
-
image:
|
|
2776
|
+
image: et(r.chrome, "dba.jpg"),
|
|
2758
2777
|
accent: "var(--mwnf-project-DBA, #001d66)",
|
|
2759
2778
|
textColor: "var(--mwnf-project-DBA-text, #ffffff)"
|
|
2760
2779
|
},
|
|
2761
2780
|
{
|
|
2762
2781
|
name: t("core.project.sharingHistory"),
|
|
2763
2782
|
href: `${i.value.sharingHistory}/`,
|
|
2764
|
-
image:
|
|
2783
|
+
image: et(r.chrome, "sh.jpg"),
|
|
2765
2784
|
accent: "var(--mwnf-project-AWE, #900000)",
|
|
2766
2785
|
textColor: "var(--mwnf-project-AWE-text, #ffffff)"
|
|
2767
2786
|
}
|
|
2768
2787
|
]), l = k(() => (r.homeLogos ?? []).map((e) => ({
|
|
2769
|
-
image:
|
|
2788
|
+
image: Qe(r.chrome, e.image) ?? re(e.image, "gallery_logo"),
|
|
2770
2789
|
href: e.href ?? "",
|
|
2771
2790
|
alt: e.alt ? t(e.alt) : ""
|
|
2772
|
-
})).filter((e) => e.image)),
|
|
2773
|
-
return (e, n) => (L(), M("div",
|
|
2774
|
-
F(
|
|
2775
|
-
l.value.length ? (L(), M("section",
|
|
2791
|
+
})).filter((e) => e.image)), d = k(() => `${i.value.galleries}/list`);
|
|
2792
|
+
return (e, n) => (L(), M("div", rs, [
|
|
2793
|
+
F(Io, { partners: a.value }, null, 8, ["partners"]),
|
|
2794
|
+
l.value.length ? (L(), M("section", is, [N("p", as, B(V(t)("gallery.home.logosLabel")), 1), N("ul", os, [(L(!0), M(O, null, z(l.value, (e) => (L(), M("li", { key: e.image }, [(L(), A(mt(e.href ? "a" : "span"), {
|
|
2776
2795
|
class: "mwnf-dxa-home-logos__logo",
|
|
2777
2796
|
href: e.href || void 0,
|
|
2778
2797
|
title: e.alt || void 0,
|
|
@@ -2782,7 +2801,7 @@ var Eo = {
|
|
|
2782
2801
|
default: H(() => [N("img", {
|
|
2783
2802
|
src: e.image,
|
|
2784
2803
|
alt: e.alt
|
|
2785
|
-
}, null, 8,
|
|
2804
|
+
}, null, 8, ss)]),
|
|
2786
2805
|
_: 2
|
|
2787
2806
|
}, 1032, [
|
|
2788
2807
|
"href",
|
|
@@ -2790,12 +2809,12 @@ var Eo = {
|
|
|
2790
2809
|
"target",
|
|
2791
2810
|
"rel"
|
|
2792
2811
|
]))]))), 128))])])) : j("", !0),
|
|
2793
|
-
F(
|
|
2812
|
+
F(ts, {
|
|
2794
2813
|
galleries: s.value,
|
|
2795
2814
|
museums: c.value,
|
|
2796
2815
|
"galleries-heading-entry": "gallery.action.visitGalleries",
|
|
2797
2816
|
"see-more-galleries-entry": "gallery.action.seeMoreGalleries",
|
|
2798
|
-
"see-more-galleries-href":
|
|
2817
|
+
"see-more-galleries-href": d.value,
|
|
2799
2818
|
"museums-heading-entry": "gallery.siblings.otherVirtualMuseums"
|
|
2800
2819
|
}, null, 8, [
|
|
2801
2820
|
"galleries",
|
|
@@ -2804,7 +2823,7 @@ var Eo = {
|
|
|
2804
2823
|
])
|
|
2805
2824
|
]));
|
|
2806
2825
|
}
|
|
2807
|
-
},
|
|
2826
|
+
}, ds = /* @__PURE__ */ D({ default: () => fs }), fs = {
|
|
2808
2827
|
__name: "ItemDetail",
|
|
2809
2828
|
props: { id: {
|
|
2810
2829
|
type: String,
|
|
@@ -2821,38 +2840,38 @@ var Eo = {
|
|
|
2821
2840
|
relatedAudio: "gallery.related.audio",
|
|
2822
2841
|
relatedVideos: "gallery.related.videos"
|
|
2823
2842
|
};
|
|
2824
|
-
return (n, r) => (L(), A(
|
|
2843
|
+
return (n, r) => (L(), A(rt, {
|
|
2825
2844
|
id: e.id,
|
|
2826
|
-
"item-detail": V(
|
|
2845
|
+
"item-detail": V(se),
|
|
2827
2846
|
words: t
|
|
2828
2847
|
}, null, 8, ["id", "item-detail"]));
|
|
2829
2848
|
}
|
|
2830
|
-
},
|
|
2849
|
+
}, ps = /* @__PURE__ */ D({ default: () => Os }), ms = { class: "mwnf-dxa-timeline" }, hs = { class: "mwnf-dxa-timeline__entrance" }, gs = [
|
|
2831
2850
|
"value",
|
|
2832
2851
|
"aria-label",
|
|
2833
2852
|
"onChange"
|
|
2834
|
-
],
|
|
2853
|
+
], _s = {
|
|
2835
2854
|
disabled: "",
|
|
2836
2855
|
value: ""
|
|
2837
|
-
},
|
|
2856
|
+
}, vs = ["value"], ys = { class: "mwnf-dxa-timeline__dates" }, bs = [
|
|
2838
2857
|
"value",
|
|
2839
2858
|
"aria-label",
|
|
2840
2859
|
"onChange"
|
|
2841
|
-
],
|
|
2860
|
+
], xs = {
|
|
2842
2861
|
disabled: "",
|
|
2843
2862
|
value: ""
|
|
2844
|
-
},
|
|
2863
|
+
}, Ss = ["value"], Cs = [
|
|
2845
2864
|
"value",
|
|
2846
2865
|
"aria-label",
|
|
2847
2866
|
"onChange"
|
|
2848
|
-
],
|
|
2867
|
+
], ws = {
|
|
2849
2868
|
disabled: "",
|
|
2850
2869
|
value: ""
|
|
2851
|
-
},
|
|
2870
|
+
}, Ts = ["value"], Es = { class: "mwnf-dxa-timeline__go" }, Ds = ["onClick"], Os = {
|
|
2852
2871
|
__name: "Timeline",
|
|
2853
2872
|
setup(e) {
|
|
2854
2873
|
let t = {
|
|
2855
|
-
...
|
|
2874
|
+
...ie,
|
|
2856
2875
|
entrance: !0
|
|
2857
2876
|
};
|
|
2858
2877
|
function n({ filters: e, options: t, go: n, t: r }) {
|
|
@@ -2871,39 +2890,39 @@ var Eo = {
|
|
|
2871
2890
|
end: e.end || a.at(-1)?.value
|
|
2872
2891
|
});
|
|
2873
2892
|
}
|
|
2874
|
-
return (e, r) => (L(), M("div",
|
|
2893
|
+
return (e, r) => (L(), M("div", ms, [F(Ye, {
|
|
2875
2894
|
spec: t,
|
|
2876
2895
|
class: "mwnf-dxa-timeline__form"
|
|
2877
2896
|
}, {
|
|
2878
|
-
form: H((e) => [N("div",
|
|
2897
|
+
form: H((e) => [N("div", hs, [
|
|
2879
2898
|
N("select", {
|
|
2880
2899
|
class: "mwnf-dxa-timeline__country",
|
|
2881
2900
|
value: e.filters.country,
|
|
2882
2901
|
"aria-label": e.t("gallery.timeline.selectCountry"),
|
|
2883
2902
|
onChange: (t) => e.filters.country = t.target.value
|
|
2884
|
-
}, [N("option",
|
|
2903
|
+
}, [N("option", _s, B(e.t("gallery.timeline.selectCountry")), 1), (L(!0), M(O, null, z(e.countries, (e) => (L(), M("option", {
|
|
2885
2904
|
key: e.value,
|
|
2886
2905
|
value: e.value
|
|
2887
|
-
}, B(e.label), 9,
|
|
2888
|
-
N("div",
|
|
2906
|
+
}, B(e.label), 9, vs))), 128))], 40, gs),
|
|
2907
|
+
N("div", ys, [N("select", {
|
|
2889
2908
|
value: e.filters.begin,
|
|
2890
2909
|
"aria-label": e.t("gallery.timeline.startDate"),
|
|
2891
2910
|
onChange: (t) => e.filters.begin = t.target.value
|
|
2892
|
-
}, [N("option",
|
|
2911
|
+
}, [N("option", xs, B(e.t("gallery.timeline.startDate")), 1), (L(!0), M(O, null, z(e.options.begin ?? [], (e) => (L(), M("option", {
|
|
2893
2912
|
key: e.value,
|
|
2894
2913
|
value: e.value
|
|
2895
|
-
}, B(e.label), 9,
|
|
2914
|
+
}, B(e.label), 9, Ss))), 128))], 40, bs), N("select", {
|
|
2896
2915
|
value: e.filters.end,
|
|
2897
2916
|
"aria-label": e.t("gallery.timeline.endDate"),
|
|
2898
2917
|
onChange: (t) => e.filters.end = t.target.value
|
|
2899
|
-
}, [N("option",
|
|
2918
|
+
}, [N("option", ws, B(e.t("gallery.timeline.endDate")), 1), (L(!0), M(O, null, z(e.options.end ?? [], (e) => (L(), M("option", {
|
|
2900
2919
|
key: e.value,
|
|
2901
2920
|
value: e.value
|
|
2902
|
-
}, B(e.label), 9,
|
|
2903
|
-
N("div",
|
|
2921
|
+
}, B(e.label), 9, Ts))), 128))], 40, Cs)]),
|
|
2922
|
+
N("div", Es, [N("button", {
|
|
2904
2923
|
type: "button",
|
|
2905
2924
|
onClick: (t) => n(e)
|
|
2906
|
-
}, B(e.t("core.action.go")), 9,
|
|
2925
|
+
}, B(e.t("core.action.go")), 9, Ds)])
|
|
2907
2926
|
])]),
|
|
2908
2927
|
_: 1
|
|
2909
2928
|
}), F(V(W), {
|
|
@@ -2912,29 +2931,29 @@ var Eo = {
|
|
|
2912
2931
|
keypath: "gallery.timeline.intro"
|
|
2913
2932
|
})]));
|
|
2914
2933
|
}
|
|
2915
|
-
},
|
|
2934
|
+
}, ks = /* @__PURE__ */ D({ default: () => js }), As = { class: "mwnf-dxa-home" }, js = {
|
|
2916
2935
|
__name: "Home",
|
|
2917
2936
|
setup(e) {
|
|
2918
|
-
return (e, t) => (L(), M("div",
|
|
2937
|
+
return (e, t) => (L(), M("div", As));
|
|
2919
2938
|
}
|
|
2920
|
-
},
|
|
2939
|
+
}, Ms = /* @__PURE__ */ D({ default: () => Ps }), Ns = { class: "mwnf-dxa-about" }, Ps = {
|
|
2921
2940
|
__name: "About",
|
|
2922
2941
|
setup(e) {
|
|
2923
|
-
return (e, t) => (L(), M("div",
|
|
2942
|
+
return (e, t) => (L(), M("div", Ns, [F(it, { "about-mode": "" })]));
|
|
2924
2943
|
}
|
|
2925
|
-
},
|
|
2944
|
+
}, Fs = /* @__PURE__ */ D({ default: () => Qs }), Is = { class: "mwnf-dxa-themes-page" }, Ls = { class: "mwnf-dxa-themes-page__container" }, Rs = ["onClick"], zs = ["innerHTML"], Bs = {
|
|
2926
2945
|
key: 0,
|
|
2927
2946
|
class: "mwnf-dxa-themes-page__strips"
|
|
2928
|
-
},
|
|
2947
|
+
}, Vs = ["src"], Hs = {
|
|
2929
2948
|
key: 1,
|
|
2930
2949
|
class: "mwnf-dxa-themes-page__open"
|
|
2931
|
-
},
|
|
2950
|
+
}, Us = { class: "mwnf-dxa-themes-page__image" }, Ws = ["src", "alt"], Gs = {
|
|
2932
2951
|
key: 1,
|
|
2933
2952
|
class: "mwnf-dxa-themes-page__caption"
|
|
2934
|
-
},
|
|
2953
|
+
}, Ks = ["innerHTML"], qs = { class: "mwnf-dxa-themes-page__info" }, Js = { class: "mwnf-dxa-themes-page__description" }, Ys = { class: "mwnf-dxa-themes-page__subthemes" }, Xs = { class: "mwnf-dxa-themes-page__subthemes-label" }, Zs = { class: "mwnf-dxa-themes-page__gallery" }, Qs = {
|
|
2935
2954
|
__name: "Themes",
|
|
2936
2955
|
setup(e) {
|
|
2937
|
-
let { listedThemes: t, pictureById: n, pictureParent: r, romanFor: i, themeText: a } =
|
|
2956
|
+
let { listedThemes: t, pictureById: n, pictureParent: r, romanFor: i, themeText: a } = we, { t: o, locale: s } = q(), c = R(!1), l = R(null);
|
|
2938
2957
|
function u(e) {
|
|
2939
2958
|
c.value || (l.value = l.value === e ? null : e);
|
|
2940
2959
|
}
|
|
@@ -2964,19 +2983,19 @@ var Eo = {
|
|
|
2964
2983
|
numeral: i(e.display_order),
|
|
2965
2984
|
cover: r?.image_url ?? "",
|
|
2966
2985
|
caption: p(r),
|
|
2967
|
-
excerpt: f(
|
|
2968
|
-
to:
|
|
2986
|
+
excerpt: f(Dt(String(o.presentation ?? ""))),
|
|
2987
|
+
to: at(e),
|
|
2969
2988
|
gallery: {
|
|
2970
2989
|
name: "theme-gallery",
|
|
2971
2990
|
params: { id: String(e.display_order - 1) }
|
|
2972
2991
|
},
|
|
2973
2992
|
subThemes: (e.sub_themes ?? []).map((e, t) => ({
|
|
2974
2993
|
label: `${t + 1}. ${a(e, s.value).title ?? e.internal_name ?? ""}`,
|
|
2975
|
-
to:
|
|
2994
|
+
to: at(e)
|
|
2976
2995
|
}))
|
|
2977
2996
|
};
|
|
2978
2997
|
}));
|
|
2979
|
-
return (e, t) => (L(), M("div",
|
|
2998
|
+
return (e, t) => (L(), M("div", Is, [N("div", Ls, [N("div", {
|
|
2980
2999
|
class: "mwnf-dxa-themes-page__show-all",
|
|
2981
3000
|
onClick: d
|
|
2982
3001
|
}, [N("span", null, B(c.value ? V(o)("exhibition.themes.collapseAll") : V(o)("exhibition.themes.expandAll")), 1)]), (L(!0), M(O, null, z(m.value, (e) => (L(), M("div", {
|
|
@@ -2987,18 +3006,18 @@ var Eo = {
|
|
|
2987
3006
|
onClick: (t) => u(e.index)
|
|
2988
3007
|
}, [N("span", null, [
|
|
2989
3008
|
P(B(V(o)("exhibition.theme.romanLabel")) + " " + B(e.numeral) + " ▪ ", 1),
|
|
2990
|
-
N("span", { innerHTML: V(K)(e.title) }, null, 8,
|
|
3009
|
+
N("span", { innerHTML: V(K)(e.title) }, null, 8, zs),
|
|
2991
3010
|
c.value ? j("", !0) : (L(), M(O, { key: 0 }, [P(B(l.value === e.index ? "▴" : "▾"), 1)], 64))
|
|
2992
|
-
])], 10,
|
|
3011
|
+
])], 10, Rs), l.value !== e.index && !c.value ? (L(), M("div", Bs, [(L(), M(O, null, z(4, (t) => N("img", {
|
|
2993
3012
|
key: t,
|
|
2994
3013
|
src: e.cover,
|
|
2995
3014
|
alt: ""
|
|
2996
|
-
}, null, 8,
|
|
3015
|
+
}, null, 8, Vs)), 64))])) : (L(), M("div", Hs, [N("div", Us, [e.cover ? (L(), M("img", {
|
|
2997
3016
|
key: 0,
|
|
2998
3017
|
src: e.cover,
|
|
2999
|
-
alt: V(
|
|
3000
|
-
}, null, 8,
|
|
3001
|
-
N("div",
|
|
3018
|
+
alt: V(Dt)(e.title)
|
|
3019
|
+
}, null, 8, Ws)) : j("", !0), e.caption ? (L(), M("div", Gs, [N("span", { innerHTML: V(K)(e.caption) }, null, 8, Ks)])) : j("", !0)]), N("div", qs, [
|
|
3020
|
+
N("div", Js, [
|
|
3002
3021
|
N("span", null, B(e.excerpt), 1),
|
|
3003
3022
|
t[0] ||= P(" " + B(" "), -1),
|
|
3004
3023
|
F(V(Y), {
|
|
@@ -3009,41 +3028,41 @@ var Eo = {
|
|
|
3009
3028
|
_: 1
|
|
3010
3029
|
}, 8, ["to"])
|
|
3011
3030
|
]),
|
|
3012
|
-
N("div",
|
|
3031
|
+
N("div", Ys, [N("div", Xs, B(V(o)("exhibition.theme.inThisTheme")), 1), (L(!0), M(O, null, z(e.subThemes, (e) => (L(), M("div", { key: e.label }, [F(V(Y), {
|
|
3013
3032
|
to: e.to,
|
|
3014
3033
|
class: "mwnf-dxa-themes-page__link"
|
|
3015
3034
|
}, {
|
|
3016
3035
|
default: H(() => [P(B(e.label), 1)]),
|
|
3017
3036
|
_: 2
|
|
3018
3037
|
}, 1032, ["to"])]))), 128))]),
|
|
3019
|
-
N("div",
|
|
3038
|
+
N("div", Zs, [F(V(Y), { to: e.gallery }, {
|
|
3020
3039
|
default: H(() => [P(B(V(o)("exhibition.themes.seeGallery")) + " " + B(e.numeral), 1)]),
|
|
3021
3040
|
_: 2
|
|
3022
3041
|
}, 1032, ["to"])])
|
|
3023
3042
|
])]))]))), 128))])]));
|
|
3024
3043
|
}
|
|
3025
|
-
},
|
|
3044
|
+
}, $s = /* @__PURE__ */ D({ default: () => _c }), ec = {
|
|
3026
3045
|
key: 0,
|
|
3027
3046
|
class: "mwnf-dxa-theme-gallery-page"
|
|
3028
|
-
},
|
|
3047
|
+
}, tc = { class: "mwnf-dxa-theme-gallery-page__header" }, nc = ["innerHTML"], rc = {
|
|
3029
3048
|
key: 0,
|
|
3030
3049
|
class: "mwnf-dxa-theme-gallery-page__bold"
|
|
3031
|
-
},
|
|
3050
|
+
}, ic = ["innerHTML"], ac = { class: "mwnf-dxa-theme-gallery-page__wrapper" }, oc = { class: "mwnf-dxa-theme-gallery-page__content" }, sc = { class: "mwnf-dxa-theme-gallery-page__objects" }, cc = { class: "mwnf-dxa-theme-gallery-page__filter" }, lc = { class: "mwnf-dxa-theme-gallery-page__label" }, uc = ["disabled", "value"], dc = {
|
|
3032
3051
|
value: "",
|
|
3033
3052
|
disabled: ""
|
|
3034
|
-
},
|
|
3053
|
+
}, fc = ["value"], pc = {
|
|
3035
3054
|
key: 0,
|
|
3036
3055
|
class: "mwnf-dxa-theme-gallery-page__reset"
|
|
3037
|
-
},
|
|
3056
|
+
}, mc = {
|
|
3038
3057
|
key: 0,
|
|
3039
3058
|
class: "mwnf-dxa-theme-gallery-page__top"
|
|
3040
|
-
},
|
|
3059
|
+
}, hc = ["aria-label"], gc = {
|
|
3041
3060
|
key: 1,
|
|
3042
3061
|
class: "mwnf-loader"
|
|
3043
|
-
},
|
|
3062
|
+
}, _c = {
|
|
3044
3063
|
__name: "ThemeGallery",
|
|
3045
3064
|
setup(t) {
|
|
3046
|
-
let { pictureParent: n, romanFor: r, themeByRouteId: i, themeText: a, themePictures: o } =
|
|
3065
|
+
let { pictureParent: n, romanFor: r, themeByRouteId: i, themeText: a, themePictures: o } = we, s = X(), c = It(), { t: l, locale: u } = q(), d = k(() => i(s.params.id)), f = k(() => d.value?.sub_themes ?? []), p = k(() => {
|
|
3047
3066
|
let e = Number(s.params.subtheme);
|
|
3048
3067
|
return Number.isInteger(e) && e >= 1 && e <= f.value.length ? e : null;
|
|
3049
3068
|
}), m = (e) => a(e, u.value).title ?? e?.internal_name ?? "";
|
|
@@ -3086,53 +3105,53 @@ var Eo = {
|
|
|
3086
3105
|
}), v = R(!1), y = () => {
|
|
3087
3106
|
v.value = document.body.scrollHeight > window.innerHeight;
|
|
3088
3107
|
};
|
|
3089
|
-
|
|
3108
|
+
dt(() => {
|
|
3090
3109
|
y(), window.addEventListener("scroll", y), window.addEventListener("resize", y);
|
|
3091
|
-
}),
|
|
3110
|
+
}), ut(() => {
|
|
3092
3111
|
window.removeEventListener("scroll", y), window.removeEventListener("resize", y);
|
|
3093
3112
|
});
|
|
3094
3113
|
let ee = () => window.scrollTo({
|
|
3095
3114
|
top: 0,
|
|
3096
3115
|
behavior: "smooth"
|
|
3097
3116
|
});
|
|
3098
|
-
return (t, n) => d.value ? (L(), M("div",
|
|
3117
|
+
return (t, n) => d.value ? (L(), M("div", ec, [
|
|
3099
3118
|
F(e),
|
|
3100
|
-
N("div",
|
|
3119
|
+
N("div", tc, [N("span", null, [
|
|
3101
3120
|
P(B(V(l)("exhibition.theme.romanLabel")) + " " + B(V(r)(d.value.display_order)) + " | ", 1),
|
|
3102
3121
|
N("span", {
|
|
3103
3122
|
class: "mwnf-dxa-theme-gallery-page__bold",
|
|
3104
3123
|
innerHTML: V(K)(m(d.value))
|
|
3105
|
-
}, null, 8,
|
|
3106
|
-
p.value ? (L(), M("span",
|
|
3124
|
+
}, null, 8, nc),
|
|
3125
|
+
p.value ? (L(), M("span", rc, [n[2] ||= P(" ▪ ", -1), N("span", { innerHTML: V(K)(m(f.value[p.value - 1])) }, null, 8, ic)])) : j("", !0),
|
|
3107
3126
|
P(" | " + B(V(l)("exhibition.theme.galleryLabel")), 1)
|
|
3108
3127
|
])]),
|
|
3109
|
-
N("div",
|
|
3128
|
+
N("div", ac, [N("div", oc, [N("div", sc, [F($, {
|
|
3110
3129
|
rows: _.value,
|
|
3111
3130
|
family: "exhibition"
|
|
3112
|
-
}, null, 8, ["rows"])]), N("div",
|
|
3113
|
-
N("div",
|
|
3131
|
+
}, null, 8, ["rows"])]), N("div", cc, [
|
|
3132
|
+
N("div", lc, B(V(l)("exhibition.themeGallery.filterBy")), 1),
|
|
3114
3133
|
N("select", {
|
|
3115
3134
|
class: "mwnf-dxa-theme-gallery-page__select",
|
|
3116
3135
|
disabled: !_.value.length,
|
|
3117
3136
|
value: p.value ? String(p.value) : "",
|
|
3118
3137
|
onChange: n[0] ||= (e) => h(e.target.value)
|
|
3119
|
-
}, [N("option",
|
|
3138
|
+
}, [N("option", dc, B(V(l)("exhibition.themeGallery.select")), 1), (L(!0), M(O, null, z(f.value, (e, t) => (L(), M("option", {
|
|
3120
3139
|
key: e.id,
|
|
3121
3140
|
value: String(t + 1)
|
|
3122
|
-
}, B(t + 1) + ". " + B(m(e)), 9,
|
|
3123
|
-
p.value ? (L(), M("div",
|
|
3141
|
+
}, B(t + 1) + ". " + B(m(e)), 9, fc))), 128))], 40, uc),
|
|
3142
|
+
p.value ? (L(), M("div", pc, [N("button", {
|
|
3124
3143
|
type: "button",
|
|
3125
3144
|
onClick: n[1] ||= (e) => h("")
|
|
3126
3145
|
}, B(V(l)("exhibition.theme.seeAllInTheme")), 1)])) : j("", !0)
|
|
3127
3146
|
])])]),
|
|
3128
|
-
v.value ? (L(), M("div",
|
|
3147
|
+
v.value ? (L(), M("div", mc, [N("button", {
|
|
3129
3148
|
type: "button",
|
|
3130
3149
|
"aria-label": V(l)("exhibition.themeGallery.top"),
|
|
3131
3150
|
onClick: ee
|
|
3132
|
-
}, "⌃", 8,
|
|
3133
|
-
])) : (L(), M("div",
|
|
3151
|
+
}, "⌃", 8, hc)])) : j("", !0)
|
|
3152
|
+
])) : (L(), M("div", gc, B(V(l)("exhibition.theme.notInExhibition")), 1));
|
|
3134
3153
|
}
|
|
3135
|
-
},
|
|
3154
|
+
}, vc = /* @__PURE__ */ D({ default: () => yc }), yc = {
|
|
3136
3155
|
__name: "ItemDetail",
|
|
3137
3156
|
props: { id: {
|
|
3138
3157
|
type: String,
|
|
@@ -3148,16 +3167,16 @@ var Eo = {
|
|
|
3148
3167
|
workingNumber: "exhibition.sheet.workingNumber",
|
|
3149
3168
|
relatedAudio: "exhibition.sheet.relatedAudio",
|
|
3150
3169
|
relatedVideos: "exhibition.sheet.relatedVideos"
|
|
3151
|
-
}, n = (e) =>
|
|
3152
|
-
return (r, i) => (L(), A(
|
|
3170
|
+
}, n = (e) => Le.value.get(e);
|
|
3171
|
+
return (r, i) => (L(), A(rt, {
|
|
3153
3172
|
id: e.id,
|
|
3154
|
-
"item-detail": V(
|
|
3173
|
+
"item-detail": V(Ne),
|
|
3155
3174
|
"data-getter": n,
|
|
3156
3175
|
words: t,
|
|
3157
3176
|
class: "mwnf-dxa-exhibition-item"
|
|
3158
3177
|
}, null, 8, ["id", "item-detail"]));
|
|
3159
3178
|
}
|
|
3160
|
-
},
|
|
3179
|
+
}, bc = /* @__PURE__ */ D({ default: () => Fc }), xc = { class: "mwnf-dxa-related-page" }, Sc = { class: "mwnf-dxa-related-page__container" }, Cc = { key: 0 }, wc = { class: "mwnf-dxa-related-page__heading" }, Tc = ["innerHTML"], Ec = ["innerHTML"], Dc = { key: 2 }, Oc = { key: 3 }, kc = ["href", "innerHTML"], Ac = ["innerHTML"], jc = { key: 4 }, Mc = ["href"], Nc = ["innerHTML"], Pc = ["innerHTML"], Fc = {
|
|
3161
3180
|
__name: "RelatedContent",
|
|
3162
3181
|
setup(t) {
|
|
3163
3182
|
let n = {
|
|
@@ -3172,11 +3191,11 @@ var Eo = {
|
|
|
3172
3191
|
4
|
|
3173
3192
|
], { t: i, locale: a } = q(), o = (e) => e?.[a.value] ?? e?.en ?? "";
|
|
3174
3193
|
function s(e) {
|
|
3175
|
-
let t = e.document_path ?
|
|
3194
|
+
let t = e.document_path ? Ve(e.document_path, "hi_res") : "";
|
|
3176
3195
|
return {
|
|
3177
|
-
reading:
|
|
3196
|
+
reading: Et(o(e.texts) || e.further_reading || ""),
|
|
3178
3197
|
partner: e.partner_name ? K(e.partner_name) : "",
|
|
3179
|
-
place: [e.entity_location, e.entity_country ?
|
|
3198
|
+
place: [e.entity_location, e.entity_country ? ze(e.entity_country) : ""].filter(Boolean).join(", "),
|
|
3180
3199
|
title: o(e.titles) ? K(o(e.titles)) : "",
|
|
3181
3200
|
href: t || e.url || "",
|
|
3182
3201
|
byline: [e.authors, e.type_resource].filter(Boolean).map((e) => K(e)).join(", "),
|
|
@@ -3185,7 +3204,7 @@ var Eo = {
|
|
|
3185
3204
|
}
|
|
3186
3205
|
let c = k(() => {
|
|
3187
3206
|
let e = /* @__PURE__ */ new Map();
|
|
3188
|
-
for (let t of
|
|
3207
|
+
for (let t of be.value ?? []) {
|
|
3189
3208
|
let n = e.get(t.category_id);
|
|
3190
3209
|
n ? n.push(t) : e.set(t.category_id, [t]);
|
|
3191
3210
|
}
|
|
@@ -3195,74 +3214,74 @@ var Eo = {
|
|
|
3195
3214
|
entries: [...e.get(t)].sort((e, t) => (e.display_order ?? 0) - (t.display_order ?? 0)).map(s)
|
|
3196
3215
|
}));
|
|
3197
3216
|
});
|
|
3198
|
-
return (t, n) => (L(), M("div",
|
|
3217
|
+
return (t, n) => (L(), M("div", xc, [F(e), N("div", Sc, [c.value.length ? j("", !0) : (L(), M("p", Cc, B(V(i)("exhibition.related.notAvailable")), 1)), (L(!0), M(O, null, z(c.value, (e) => (L(), M("div", {
|
|
3199
3218
|
key: e.id,
|
|
3200
3219
|
class: "mwnf-dxa-related-page__category"
|
|
3201
|
-
}, [N("div",
|
|
3220
|
+
}, [N("div", wc, B(V(i)(e.heading)), 1), (L(!0), M(O, null, z(e.entries, (e, t) => (L(), M("div", {
|
|
3202
3221
|
key: t,
|
|
3203
3222
|
class: "mwnf-dxa-related-page__entry"
|
|
3204
3223
|
}, [
|
|
3205
3224
|
e.reading ? (L(), M("div", {
|
|
3206
3225
|
key: 0,
|
|
3207
3226
|
innerHTML: e.reading
|
|
3208
|
-
}, null, 8,
|
|
3227
|
+
}, null, 8, Tc)) : j("", !0),
|
|
3209
3228
|
e.partner ? (L(), M("div", {
|
|
3210
3229
|
key: 1,
|
|
3211
3230
|
innerHTML: e.partner
|
|
3212
|
-
}, null, 8,
|
|
3213
|
-
e.place ? (L(), M("div",
|
|
3214
|
-
e.title ? (L(), M("div",
|
|
3231
|
+
}, null, 8, Ec)) : j("", !0),
|
|
3232
|
+
e.place ? (L(), M("div", Dc, B(e.place), 1)) : j("", !0),
|
|
3233
|
+
e.title ? (L(), M("div", Oc, [e.href ? (L(), M("a", {
|
|
3215
3234
|
key: 0,
|
|
3216
3235
|
href: e.href,
|
|
3217
3236
|
target: "_blank",
|
|
3218
3237
|
rel: "noopener",
|
|
3219
3238
|
innerHTML: e.title
|
|
3220
|
-
}, null, 8,
|
|
3239
|
+
}, null, 8, kc)) : (L(), M("span", {
|
|
3221
3240
|
key: 1,
|
|
3222
3241
|
innerHTML: e.title
|
|
3223
|
-
}, null, 8,
|
|
3242
|
+
}, null, 8, Ac))])) : e.href ? (L(), M("div", jc, [N("a", {
|
|
3224
3243
|
href: e.href,
|
|
3225
3244
|
target: "_blank",
|
|
3226
3245
|
rel: "noopener"
|
|
3227
|
-
}, B(e.href), 9,
|
|
3246
|
+
}, B(e.href), 9, Mc)])) : j("", !0),
|
|
3228
3247
|
e.byline ? (L(), M("div", {
|
|
3229
3248
|
key: 5,
|
|
3230
3249
|
innerHTML: e.byline
|
|
3231
|
-
}, null, 8,
|
|
3250
|
+
}, null, 8, Nc)) : j("", !0),
|
|
3232
3251
|
e.description ? (L(), M("div", {
|
|
3233
3252
|
key: 6,
|
|
3234
3253
|
innerHTML: e.description
|
|
3235
|
-
}, null, 8,
|
|
3254
|
+
}, null, 8, Pc)) : j("", !0)
|
|
3236
3255
|
]))), 128))]))), 128))])]));
|
|
3237
3256
|
}
|
|
3238
|
-
},
|
|
3257
|
+
}, Ic = /* @__PURE__ */ D({ default: () => Zc }), Lc = { class: "mwnf-dxa-timeline mwnf-dxa-exhibition-timeline" }, Rc = { class: "mwnf-dxa-timeline__entrance" }, zc = [
|
|
3239
3258
|
"value",
|
|
3240
3259
|
"aria-label",
|
|
3241
3260
|
"onChange"
|
|
3242
|
-
],
|
|
3261
|
+
], Bc = {
|
|
3243
3262
|
disabled: "",
|
|
3244
3263
|
value: ""
|
|
3245
|
-
},
|
|
3264
|
+
}, Vc = ["value"], Hc = { class: "mwnf-dxa-timeline__dates" }, Uc = [
|
|
3246
3265
|
"value",
|
|
3247
3266
|
"aria-label",
|
|
3248
3267
|
"onChange"
|
|
3249
|
-
],
|
|
3268
|
+
], Wc = {
|
|
3250
3269
|
disabled: "",
|
|
3251
3270
|
value: ""
|
|
3252
|
-
},
|
|
3271
|
+
}, Gc = ["value"], Kc = [
|
|
3253
3272
|
"value",
|
|
3254
3273
|
"aria-label",
|
|
3255
3274
|
"onChange"
|
|
3256
|
-
],
|
|
3275
|
+
], qc = {
|
|
3257
3276
|
disabled: "",
|
|
3258
3277
|
value: ""
|
|
3259
|
-
},
|
|
3278
|
+
}, Jc = ["value"], Yc = { class: "mwnf-dxa-timeline__go" }, Xc = ["onClick"], Zc = {
|
|
3260
3279
|
__name: "Timeline",
|
|
3261
3280
|
setup(e) {
|
|
3262
3281
|
let t = {
|
|
3263
3282
|
"catalogue.era.ad": "exhibition.era.ad",
|
|
3264
3283
|
"catalogue.era.bc": "exhibition.era.bc"
|
|
3265
|
-
}, n = ({ years: e, t: n }) =>
|
|
3284
|
+
}, n = ({ years: e, t: n }) => Ft(e.min, e.max, Pt(n, t)), r = k(() => ({
|
|
3266
3285
|
...S.value,
|
|
3267
3286
|
entrance: !0,
|
|
3268
3287
|
controls: S.value.controls.map((e) => e.options ? {
|
|
@@ -3278,40 +3297,40 @@ var Eo = {
|
|
|
3278
3297
|
end: e.end || a.at(-1)?.value
|
|
3279
3298
|
});
|
|
3280
3299
|
}
|
|
3281
|
-
return (e, t) => (L(), M("div",
|
|
3300
|
+
return (e, t) => (L(), M("div", Lc, [F(Ye, {
|
|
3282
3301
|
spec: r.value,
|
|
3283
3302
|
class: "mwnf-dxa-timeline__form"
|
|
3284
3303
|
}, {
|
|
3285
|
-
form: H((e) => [N("div",
|
|
3304
|
+
form: H((e) => [N("div", Rc, [
|
|
3286
3305
|
i.value && e.countries?.length ? (L(), M("select", {
|
|
3287
3306
|
key: 0,
|
|
3288
3307
|
class: "mwnf-dxa-timeline__country",
|
|
3289
3308
|
value: e.filters.country,
|
|
3290
3309
|
"aria-label": e.t("exhibition.timeline.selectCountry"),
|
|
3291
3310
|
onChange: (t) => e.filters.country = t.target.value
|
|
3292
|
-
}, [N("option",
|
|
3311
|
+
}, [N("option", Bc, B(e.t("exhibition.timeline.selectCountry")), 1), (L(!0), M(O, null, z(e.countries, (e) => (L(), M("option", {
|
|
3293
3312
|
key: e.value,
|
|
3294
3313
|
value: e.value
|
|
3295
|
-
}, B(e.label), 9,
|
|
3296
|
-
N("div",
|
|
3314
|
+
}, B(e.label), 9, Vc))), 128))], 40, zc)) : j("", !0),
|
|
3315
|
+
N("div", Hc, [N("select", {
|
|
3297
3316
|
value: e.filters.begin,
|
|
3298
3317
|
"aria-label": e.t("exhibition.collection.startDate"),
|
|
3299
3318
|
onChange: (t) => e.filters.begin = t.target.value
|
|
3300
|
-
}, [N("option",
|
|
3319
|
+
}, [N("option", Wc, B(e.t("exhibition.collection.startDate")), 1), (L(!0), M(O, null, z(e.options.begin ?? [], (e) => (L(), M("option", {
|
|
3301
3320
|
key: e.value,
|
|
3302
3321
|
value: e.value
|
|
3303
|
-
}, B(e.label), 9,
|
|
3322
|
+
}, B(e.label), 9, Gc))), 128))], 40, Uc), N("select", {
|
|
3304
3323
|
value: e.filters.end,
|
|
3305
3324
|
"aria-label": e.t("exhibition.collection.endDate"),
|
|
3306
3325
|
onChange: (t) => e.filters.end = t.target.value
|
|
3307
|
-
}, [N("option",
|
|
3326
|
+
}, [N("option", qc, B(e.t("exhibition.collection.endDate")), 1), (L(!0), M(O, null, z(e.options.end ?? [], (e) => (L(), M("option", {
|
|
3308
3327
|
key: e.value,
|
|
3309
3328
|
value: e.value
|
|
3310
|
-
}, B(e.label), 9,
|
|
3311
|
-
N("div",
|
|
3329
|
+
}, B(e.label), 9, Jc))), 128))], 40, Kc)]),
|
|
3330
|
+
N("div", Yc, [N("button", {
|
|
3312
3331
|
type: "button",
|
|
3313
3332
|
onClick: (t) => a(e)
|
|
3314
|
-
}, B(e.t("core.action.go")), 9,
|
|
3333
|
+
}, B(e.t("core.action.go")), 9, Xc)])
|
|
3315
3334
|
])]),
|
|
3316
3335
|
_: 1
|
|
3317
3336
|
}, 8, ["spec"]), F(V(W), {
|
|
@@ -3320,28 +3339,28 @@ var Eo = {
|
|
|
3320
3339
|
keypath: "exhibition.timeline.intro"
|
|
3321
3340
|
})]));
|
|
3322
3341
|
}
|
|
3323
|
-
},
|
|
3342
|
+
}, Qc = { class: "mwnf-picture-gallery" }, $c = {
|
|
3324
3343
|
key: 0,
|
|
3325
3344
|
class: "mwnf-picture-gallery__selected"
|
|
3326
|
-
},
|
|
3345
|
+
}, el = { class: "mwnf-picture-gallery__image" }, tl = ["src", "alt"], nl = { class: "mwnf-picture-gallery__details" }, rl = { class: "mwnf-picture-gallery__detail mwnf-picture-gallery__detail--title" }, il = { key: 0 }, al = ["innerHTML"], ol = {
|
|
3327
3346
|
key: 0,
|
|
3328
3347
|
class: "mwnf-picture-gallery__label"
|
|
3329
|
-
},
|
|
3348
|
+
}, sl = ["innerHTML"], cl = {
|
|
3330
3349
|
key: 0,
|
|
3331
3350
|
class: "mwnf-picture-gallery__detail"
|
|
3332
|
-
},
|
|
3351
|
+
}, ll = {
|
|
3333
3352
|
key: 2,
|
|
3334
3353
|
class: "mwnf-picture-gallery__unresolved"
|
|
3335
|
-
},
|
|
3354
|
+
}, ul = {
|
|
3336
3355
|
key: 1,
|
|
3337
3356
|
class: "mwnf-picture-gallery__empty"
|
|
3338
|
-
},
|
|
3357
|
+
}, dl = {
|
|
3339
3358
|
key: 2,
|
|
3340
3359
|
class: "mwnf-picture-gallery__strip"
|
|
3341
|
-
},
|
|
3360
|
+
}, fl = { class: "mwnf-picture-gallery__thumbs" }, pl = ["onClick"], ml = ["src", "alt"], hl = { class: "mwnf-picture-gallery__thumb-text" }, gl = { key: 0 }, _l = ["innerHTML"], vl = { key: 1 }, yl = {
|
|
3342
3361
|
key: 0,
|
|
3343
3362
|
class: "mwnf-picture-gallery__toggle"
|
|
3344
|
-
},
|
|
3363
|
+
}, bl = {
|
|
3345
3364
|
__name: "PictureGallery",
|
|
3346
3365
|
props: {
|
|
3347
3366
|
pictures: {
|
|
@@ -3376,23 +3395,23 @@ var Eo = {
|
|
|
3376
3395
|
emits: ["update:selectedId"],
|
|
3377
3396
|
setup(e, { emit: t }) {
|
|
3378
3397
|
let r = e, i = t, { t: a } = q(), o = k(() => r.pictures.find((e) => e.id === r.selectedId) ?? null), s = k(() => r.pictures.some((e) => e.backRelated?.length)), c = R(!1);
|
|
3379
|
-
|
|
3398
|
+
yt(() => r.pictures, () => {
|
|
3380
3399
|
c.value = !1;
|
|
3381
3400
|
});
|
|
3382
3401
|
let l = k(() => c.value ? r.pictures : r.pictures.filter((e) => !e.backRelated?.length));
|
|
3383
3402
|
function u(e) {
|
|
3384
3403
|
i("update:selectedId", e.id);
|
|
3385
3404
|
}
|
|
3386
|
-
return (t, r) => (L(), M("div",
|
|
3405
|
+
return (t, r) => (L(), M("div", Qc, [o.value ? (L(), M("div", $c, [N("div", el, [N("img", {
|
|
3387
3406
|
src: o.value.image,
|
|
3388
3407
|
alt: o.value.imageAlt ?? ""
|
|
3389
|
-
}, null, 8,
|
|
3390
|
-
N("div",
|
|
3408
|
+
}, null, 8, tl)]), N("div", nl, [
|
|
3409
|
+
N("div", rl, [o.value.imageCaption ? (L(), M("span", il, B(o.value.imageCaption) + ", ", 1)) : j("", !0), N("span", { innerHTML: o.value.name }, null, 8, al)]),
|
|
3391
3410
|
(L(!0), M(O, null, z(o.value.fields ?? [], (e, t) => (L(), M("div", {
|
|
3392
3411
|
key: t,
|
|
3393
3412
|
class: "mwnf-picture-gallery__detail"
|
|
3394
|
-
}, [e.label ? (L(), M("span",
|
|
3395
|
-
o.value.detail ? (L(), M("div",
|
|
3413
|
+
}, [e.label ? (L(), M("span", ol, B(e.label), 1)) : j("", !0), N("span", { innerHTML: e.value }, null, 8, sl)]))), 128)),
|
|
3414
|
+
o.value.detail ? (L(), M("div", cl, B(o.value.detail), 1)) : j("", !0),
|
|
3396
3415
|
o.value.to ? (L(), A(n, {
|
|
3397
3416
|
key: 1,
|
|
3398
3417
|
class: "mwnf-picture-gallery__link",
|
|
@@ -3400,8 +3419,8 @@ var Eo = {
|
|
|
3400
3419
|
}, {
|
|
3401
3420
|
default: H(() => [P(B(V(a)(e.seeItemEntry)) + " →", 1)]),
|
|
3402
3421
|
_: 1
|
|
3403
|
-
}, 8, ["to"])) : (L(), M("div",
|
|
3404
|
-
])])) : (L(), M("div",
|
|
3422
|
+
}, 8, ["to"])) : (L(), M("div", ll, B(V(a)(e.unresolvedEntry)), 1))
|
|
3423
|
+
])])) : (L(), M("div", ul, B(V(a)(e.emptyEntry)), 1)), e.pictures.length ? (L(), M("div", dl, [N("ul", fl, [(L(!0), M(O, null, z(l.value, (t) => (L(), M("li", {
|
|
3405
3424
|
key: t.id,
|
|
3406
3425
|
class: I(["mwnf-picture-gallery__thumb", {
|
|
3407
3426
|
"mwnf-picture-gallery__thumb--active": t.id === e.selectedId,
|
|
@@ -3414,31 +3433,31 @@ var Eo = {
|
|
|
3414
3433
|
src: t.image,
|
|
3415
3434
|
alt: t.imageAlt ?? "",
|
|
3416
3435
|
loading: "lazy"
|
|
3417
|
-
}, null, 8,
|
|
3418
|
-
t.imageCaption ? (L(), M("span",
|
|
3436
|
+
}, null, 8, ml)], 8, pl), N("div", hl, [
|
|
3437
|
+
t.imageCaption ? (L(), M("span", gl, B(t.imageCaption) + ", ", 1)) : j("", !0),
|
|
3419
3438
|
N("span", {
|
|
3420
3439
|
class: "mwnf-picture-gallery__thumb-name",
|
|
3421
3440
|
innerHTML: t.name
|
|
3422
|
-
}, null, 8,
|
|
3423
|
-
t.detail ? (L(), M("span",
|
|
3424
|
-
])], 2))), 128))]), s.value ? (L(), M("label",
|
|
3441
|
+
}, null, 8, _l),
|
|
3442
|
+
t.detail ? (L(), M("span", vl, ", " + B(t.detail), 1)) : j("", !0)
|
|
3443
|
+
])], 2))), 128))]), s.value ? (L(), M("label", yl, [U(N("input", {
|
|
3425
3444
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
3426
3445
|
type: "checkbox"
|
|
3427
|
-
}, null, 512), [[
|
|
3446
|
+
}, null, 512), [[ht, c.value]]), N("span", null, B(c.value ? V(a)(e.hideRelatedEntry) : V(a)(e.addRelatedEntry)), 1)])) : j("", !0)])) : j("", !0)]));
|
|
3428
3447
|
}
|
|
3429
|
-
},
|
|
3448
|
+
}, xl = {
|
|
3430
3449
|
key: 0,
|
|
3431
3450
|
class: "mwnf-picture-narrative"
|
|
3432
|
-
},
|
|
3451
|
+
}, Sl = ["innerHTML"], Cl = {
|
|
3433
3452
|
key: 1,
|
|
3434
3453
|
class: "mwnf-picture-narrative__related"
|
|
3435
|
-
},
|
|
3454
|
+
}, wl = { class: "mwnf-picture-narrative__heading" }, Tl = { class: "mwnf-picture-narrative__images" }, El = { class: "mwnf-picture-narrative__image mwnf-picture-narrative__image--main" }, Dl = ["src", "alt"], Ol = { class: "mwnf-picture-narrative__thumb-text" }, kl = ["innerHTML"], Al = { key: 0 }, jl = ["onClick"], Ml = ["src", "alt"], Nl = { class: "mwnf-picture-narrative__thumb-text" }, Pl = ["innerHTML"], Fl = { key: 0 }, Il = {
|
|
3436
3455
|
key: 0,
|
|
3437
3456
|
class: "mwnf-picture-narrative__relation"
|
|
3438
|
-
},
|
|
3457
|
+
}, Ll = {
|
|
3439
3458
|
key: 2,
|
|
3440
3459
|
class: "mwnf-picture-narrative__related"
|
|
3441
|
-
},
|
|
3460
|
+
}, Rl = { class: "mwnf-picture-narrative__heading" }, zl = { class: "mwnf-picture-narrative__text mwnf-picture-narrative__text--reciprocal" }, Bl = { class: "mwnf-picture-narrative__image" }, Vl = ["src", "alt"], Hl = { class: "mwnf-picture-narrative__thumb-text" }, Ul = ["innerHTML"], Wl = { key: 0 }, Gl = {
|
|
3442
3461
|
__name: "PictureNarrative",
|
|
3443
3462
|
props: {
|
|
3444
3463
|
picture: {
|
|
@@ -3460,20 +3479,20 @@ var Eo = {
|
|
|
3460
3479
|
},
|
|
3461
3480
|
emits: ["select"],
|
|
3462
3481
|
setup(e, { emit: t }) {
|
|
3463
|
-
let n = e, r = t, { t: i } = q(), a = k(() => n.contextualDescription ?
|
|
3482
|
+
let n = e, r = t, { t: i } = q(), a = k(() => n.contextualDescription ? Et(n.contextualDescription, { breaks: !0 }) : ""), o = k(() => n.picture?.related ?? []), s = k(() => n.picture?.backRelated?.[0] ?? null);
|
|
3464
3483
|
function c(e) {
|
|
3465
3484
|
r("select", e.id);
|
|
3466
3485
|
}
|
|
3467
|
-
return (t, n) => e.picture ? (L(), M("div",
|
|
3486
|
+
return (t, n) => e.picture ? (L(), M("div", xl, [
|
|
3468
3487
|
a.value ? (L(), M("div", {
|
|
3469
3488
|
key: 0,
|
|
3470
3489
|
class: "mwnf-picture-narrative__text mwnf-sheet__block",
|
|
3471
3490
|
innerHTML: a.value
|
|
3472
|
-
}, null, 8,
|
|
3473
|
-
o.value.length ? (L(), M("div",
|
|
3491
|
+
}, null, 8, Sl)) : j("", !0),
|
|
3492
|
+
o.value.length ? (L(), M("div", Cl, [N("div", wl, B(V(i)(e.relatedHeadingEntry)), 1), N("div", Tl, [N("div", El, [N("img", {
|
|
3474
3493
|
src: e.picture.image,
|
|
3475
3494
|
alt: e.picture.imageAlt ?? ""
|
|
3476
|
-
}, null, 8,
|
|
3495
|
+
}, null, 8, Dl), N("div", Ol, [N("span", { innerHTML: e.picture.name }, null, 8, kl), e.picture.detail ? (L(), M("span", Al, ", " + B(e.picture.detail), 1)) : j("", !0)])]), (L(!0), M(O, null, z(o.value, (e) => (L(), M("div", {
|
|
3477
3496
|
key: e.picture.id,
|
|
3478
3497
|
class: "mwnf-picture-narrative__image"
|
|
3479
3498
|
}, [
|
|
@@ -3483,22 +3502,22 @@ var Eo = {
|
|
|
3483
3502
|
}, [N("img", {
|
|
3484
3503
|
src: e.picture.image,
|
|
3485
3504
|
alt: e.picture.imageAlt ?? ""
|
|
3486
|
-
}, null, 8,
|
|
3487
|
-
N("div",
|
|
3488
|
-
e.text ? (L(), M("div",
|
|
3505
|
+
}, null, 8, Ml)], 8, jl),
|
|
3506
|
+
N("div", Nl, [N("span", { innerHTML: e.picture.name }, null, 8, Pl), e.picture.detail ? (L(), M("span", Fl, ", " + B(e.picture.detail), 1)) : j("", !0)]),
|
|
3507
|
+
e.text ? (L(), M("div", Il, B(e.text), 1)) : j("", !0)
|
|
3489
3508
|
]))), 128))])])) : j("", !0),
|
|
3490
|
-
s.value ? (L(), M("div",
|
|
3491
|
-
N("div",
|
|
3492
|
-
N("p",
|
|
3493
|
-
N("div",
|
|
3509
|
+
s.value ? (L(), M("div", Ll, [
|
|
3510
|
+
N("div", Rl, B(V(i)(e.relatedHeadingEntry)), 1),
|
|
3511
|
+
N("p", zl, B(s.value.reciprocalText || V(i)(e.reciprocalFallbackEntry)), 1),
|
|
3512
|
+
N("div", Bl, [N("button", {
|
|
3494
3513
|
type: "button",
|
|
3495
3514
|
onClick: n[0] ||= (e) => c(s.value.picture)
|
|
3496
3515
|
}, [N("img", {
|
|
3497
3516
|
src: s.value.picture.image,
|
|
3498
3517
|
alt: s.value.picture.imageAlt ?? ""
|
|
3499
|
-
}, null, 8,
|
|
3518
|
+
}, null, 8, Vl)]), N("div", Hl, [N("span", { innerHTML: s.value.picture.name }, null, 8, Ul), s.value.picture.detail ? (L(), M("span", Wl, ", " + B(s.value.picture.detail), 1)) : j("", !0)])])
|
|
3500
3519
|
])) : j("", !0)
|
|
3501
3520
|
])) : j("", !0);
|
|
3502
3521
|
}
|
|
3503
3522
|
};
|
|
3504
|
-
export {
|
|
3523
|
+
export { Ps as ExhibitionAbout, va as ExhibitionCollectionResults, La as ExhibitionCollectionSearch, js as ExhibitionHome, yc as ExhibitionItemDetail, Ka as ExhibitionPartnerObjects, Mr as ExhibitionPartners, Fc as ExhibitionRelatedContent, vr as ExhibitionSearchHowTo, ti as ExhibitionSearchResults, vo as ExhibitionShell, it as ExhibitionTheme, _c as ExhibitionThemeGallery, Qs as ExhibitionThemes, Zc as ExhibitionTimeline, Ii as ExhibitionTimelineGallery, ki as ExhibitionTimelineResults, Io as FeaturedPartners, Ut as GalleryAbout, Jn as GalleryCollectionResults, ur as GalleryCollectionSearch, Wt as GalleryCredits, us as GalleryHome, fs as GalleryItemDetail, gr as GalleryPartnerObjects, un as GalleryPartners, qt as GallerySearchHowTo, Fn as GallerySearchResults, fo as GalleryShell, Os as GalleryTimeline, zn as GalleryTimelineGallery, In as GalleryTimelineResults, nt as ItemDetailView, Q as LegacyPages, Vt as PartnerDetail, bl as PictureGallery, Gl as PictureNarrative, _o as PopupLogo, ts as SiblingGalleries, st as exhibitionAboutSpec, So as exhibitionConfig, ye as exhibitionPartnerDetail, ot as exhibitionThemeSpec, xo as galleryConfig, _e as galleryPartnerDetail, so as standardRoutes, at as themeNodeRoute };
|