@museumwnf/viewer-layout 3.80.1 → 3.80.2
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/LegacyItemSheet-DKgLfAz_.js +662 -0
- package/dist/RecordView-DAvWufWV.js +384 -0
- package/dist/{SiteShell-CzKgoOBm.js → SiteShell-D0u1FGMu.js} +47 -47
- package/dist/Theme-BUfsZDdm.js +408 -0
- package/dist/components.js +1 -1
- package/dist/{content-hV5uyd-b.js → content-B1458eb-.js} +6 -6
- package/dist/content.js +1 -1
- package/dist/{data-D9H1tB75.js → data-CD0QmDAc.js} +13 -13
- package/dist/{data-DlmKSxgh.js → data-CxiuR3R_.js} +16 -17
- package/dist/dxa.js +1075 -1075
- package/dist/index.js +1 -1
- package/dist/minisite.js +1159 -1159
- package/dist/standalone.js +967 -967
- package/dist/{themeSpecs-BJ82RvA1.js → themeSpecs-C0tSNkSd.js} +1 -1
- package/dist/views.js +298 -298
- package/package.json +9 -4
- package/dist/LegacyItemSheet-CNooycyz.js +0 -662
- package/dist/RecordView-CBC7tBCX.js +0 -384
- package/dist/Theme-BCn6_VkI.js +0 -408
package/dist/dxa.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { n as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
1
|
+
import { I18nText as e, LEGACY_SITES as t, NotFoundView as n, languageLabels as r, loadEntities as i, mwnfLinks as a, offeredLanguages as o, renderBlock as s, renderInline as c, renderPlain as l, sectionMeta as u, useDataPackage as d, useFacets as f, useI18n as p, useKeywordIndex as m, useSection as h, useSiteConfig as g, withEraWords as _, yearBuckets as v, yearBucketsFromRange as y } from "@museumwnf/viewer-core";
|
|
2
|
+
import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as E, createTextVNode as D, createVNode as O, normalizeClass as k, normalizeStyle as A, onBeforeUnmount as j, onMounted as M, openBlock as N, reactive as ee, ref as P, renderList as F, renderSlot as te, resolveDynamicComponent as ne, toDisplayString as I, unref as L, vModelCheckbox as re, vModelSelect as ie, vModelText as ae, vShow as oe, watch as se, watchEffect as ce, withCtx as R, withDirectives as z, withModifiers as le } from "vue";
|
|
3
|
+
import { s as B } from "./OnDisplayIn-BH3Bqope.js";
|
|
4
|
+
import { c as ue, d as V, t as de } from "./PartnerMap-DdyMLtgH.js";
|
|
5
|
+
import { a as H, i as fe, n as pe } from "./TimelineEventList-CIkKxyQu.js";
|
|
6
|
+
import { t as me } from "./RecordView-DAvWufWV.js";
|
|
7
|
+
import { A as he, C as ge, D as _e, E as ve, M as ye, N as be, O as xe, S as Se, T as Ce, _ as we, a as Te, b as Ee, c as De, d as Oe, f as ke, g as Ae, h as je, i as Me, j as Ne, k as Pe, l as Fe, m as Ie, n as Le, o as Re, p as ze, r as Be, s as Ve, t as He, u as Ue, v as We, w as Ge, x as Ke, y as qe } from "./data-CxiuR3R_.js";
|
|
8
|
+
import { A as Je, C as Ye, D as Xe, E as Ze, M as Qe, N as $e, O as et, P as tt, S as nt, T as rt, _ as it, a as at, b as ot, c as U, d as st, f as ct, g as lt, h as ut, i as dt, j as W, k as ft, l as pt, m as G, n as mt, o as ht, p as gt, r as _t, s as vt, t as yt, u as bt, v as K, w as xt, x as St, y as Ct } from "./data-CD0QmDAc.js";
|
|
9
|
+
import { n as wt, r as q, t as Tt } from "./TimelineResultsView-Bn4rC_Se.js";
|
|
10
|
+
import { RouterLink as J, useRoute as Y, useRouter as Et } from "vue-router";
|
|
11
|
+
import { romanFor as Dt } from "@museumwnf/viewer-core/dxa";
|
|
12
|
+
import { t as Ot } from "./SiteShell-D0u1FGMu.js";
|
|
13
|
+
import { i as kt, n as At, r as jt, t as Mt } from "./chrome-Bv_mLlHM.js";
|
|
14
|
+
import { i as Nt } from "./PageShell-BAtk_qcb.js";
|
|
15
|
+
import { n as Pt, t as Ft } from "./LegacyItemSheet-DKgLfAz_.js";
|
|
16
|
+
import { n as It, r as X } from "./Theme-BUfsZDdm.js";
|
|
17
|
+
import { n as Lt, r as Rt, t as zt } from "./themeSpecs-C0tSNkSd.js";
|
|
18
18
|
// src/dxa/PartnerDetail.vue
|
|
19
|
-
var
|
|
19
|
+
var Bt = { class: "mwnf-dxa-profile-languages" }, Vt = { class: "mwnf-dxa-profile-map-label" }, Ht = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "mwnf-dxa-profile-no-map"
|
|
22
|
-
},
|
|
22
|
+
}, Ut = {
|
|
23
23
|
__name: "PartnerDetail",
|
|
24
24
|
props: {
|
|
25
25
|
id: {
|
|
@@ -35,62 +35,62 @@ var zt = { class: "mwnf-dxa-profile-languages" }, Bt = { class: "mwnf-dxa-profil
|
|
|
35
35
|
default: "partner"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
setup(
|
|
39
|
-
let
|
|
40
|
-
function
|
|
41
|
-
let t =
|
|
38
|
+
setup(e) {
|
|
39
|
+
let t = e, { t: r } = p(), i = x(() => t.family.labels?.[t.variant] ?? t.family.labels?.partner ?? {});
|
|
40
|
+
function a(e) {
|
|
41
|
+
let t = i.value.objects;
|
|
42
42
|
return (typeof t == "function" ? t(e) : t) ?? "partner.action.viewObjects";
|
|
43
43
|
}
|
|
44
|
-
return (
|
|
44
|
+
return (t, o) => e.family.visible(e.id) ? (N(), S(me, {
|
|
45
45
|
key: 0,
|
|
46
|
-
spec:
|
|
47
|
-
id:
|
|
48
|
-
class:
|
|
46
|
+
spec: e.family.spec,
|
|
47
|
+
id: e.id,
|
|
48
|
+
class: k(["mwnf-dxa-partner-profile", e.family.className])
|
|
49
49
|
}, {
|
|
50
|
-
header:
|
|
51
|
-
languages:
|
|
52
|
-
language:
|
|
53
|
-
from:
|
|
54
|
-
onSelect:
|
|
50
|
+
header: R(({ languages: t, language: n, select: r }) => [T("div", Bt, [O(ue, {
|
|
51
|
+
languages: t,
|
|
52
|
+
language: n,
|
|
53
|
+
from: e.family.legacyMap ? 1 : 2,
|
|
54
|
+
onSelect: r
|
|
55
55
|
}, null, 8, [
|
|
56
56
|
"languages",
|
|
57
57
|
"language",
|
|
58
58
|
"from",
|
|
59
59
|
"onSelect"
|
|
60
|
-
])]),
|
|
61
|
-
"before-sheet":
|
|
60
|
+
])]), O(B)]),
|
|
61
|
+
"before-sheet": R(({ record: t, text: n, dir: o }) => [O(pe, {
|
|
62
62
|
variant: "full",
|
|
63
|
-
partner:
|
|
63
|
+
partner: e.family.view(t, n),
|
|
64
64
|
heading: 1,
|
|
65
|
-
"homepage-label":
|
|
66
|
-
media:
|
|
67
|
-
show:
|
|
68
|
-
dir:
|
|
69
|
-
},
|
|
70
|
-
actions:
|
|
65
|
+
"homepage-label": i.value.homepage ?? "partner.nav.homepage",
|
|
66
|
+
media: e.family.media ?? {},
|
|
67
|
+
show: e.family.legacyMap ? { map: !1 } : {},
|
|
68
|
+
dir: o
|
|
69
|
+
}, E({
|
|
70
|
+
actions: R(({ partner: e }) => [e.objectsRoute ? (N(), S(V, {
|
|
71
71
|
key: 0,
|
|
72
72
|
class: "mwnf-button",
|
|
73
|
-
to:
|
|
73
|
+
to: e.objectsRoute
|
|
74
74
|
}, {
|
|
75
|
-
default:
|
|
75
|
+
default: R(() => [D(I(L(r)(a(t))), 1)]),
|
|
76
76
|
_: 2
|
|
77
|
-
}, 1032, ["to"])) :
|
|
77
|
+
}, 1032, ["to"])) : C("", !0)]),
|
|
78
78
|
_: 2
|
|
79
|
-
}, [
|
|
79
|
+
}, [e.family.legacyMap ? {
|
|
80
80
|
name: "after",
|
|
81
|
-
fn:
|
|
81
|
+
fn: R(({ partner: t }) => [t.map ? (N(), w(b, { key: 0 }, [T("p", Vt, I(L(r)(e.family.legacyMap.label)), 1), O(de, {
|
|
82
82
|
class: "mwnf-dxa-profile-map",
|
|
83
83
|
provider: "google",
|
|
84
|
-
latitude:
|
|
85
|
-
longitude:
|
|
86
|
-
zoom:
|
|
87
|
-
label:
|
|
84
|
+
latitude: t.map.latitude,
|
|
85
|
+
longitude: t.map.longitude,
|
|
86
|
+
zoom: t.map.zoom,
|
|
87
|
+
label: t.map.label
|
|
88
88
|
}, null, 8, [
|
|
89
89
|
"latitude",
|
|
90
90
|
"longitude",
|
|
91
91
|
"zoom",
|
|
92
92
|
"label"
|
|
93
|
-
])], 64)) : (
|
|
93
|
+
])], 64)) : (N(), w("p", Ht))]),
|
|
94
94
|
key: "0"
|
|
95
95
|
} : void 0]), 1032, [
|
|
96
96
|
"partner",
|
|
@@ -104,9 +104,9 @@ var zt = { class: "mwnf-dxa-profile-languages" }, Bt = { class: "mwnf-dxa-profil
|
|
|
104
104
|
"spec",
|
|
105
105
|
"id",
|
|
106
106
|
"class"
|
|
107
|
-
])) : (
|
|
107
|
+
])) : (N(), S(L(n), { key: 1 }));
|
|
108
108
|
}
|
|
109
|
-
},
|
|
109
|
+
}, Wt = {
|
|
110
110
|
__name: "TextPage",
|
|
111
111
|
props: {
|
|
112
112
|
body: {
|
|
@@ -128,57 +128,57 @@ var zt = { class: "mwnf-dxa-profile-languages" }, Bt = { class: "mwnf-dxa-profil
|
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
setup(t) {
|
|
131
|
-
return (n, r) => (
|
|
131
|
+
return (n, r) => (N(), w("div", { class: k(["mwnf-dxa-gallery-text", `mwnf-dxa-gallery-text--${t.kind}`]) }, [O(B, { to: t.back }, null, 8, ["to"]), O(L(e), {
|
|
132
132
|
class: "mwnf-dxa-gallery-text__body",
|
|
133
133
|
dir: "auto",
|
|
134
134
|
keypath: t.body,
|
|
135
135
|
"blank-lines": ""
|
|
136
136
|
}, null, 8, ["keypath"])], 2));
|
|
137
137
|
}
|
|
138
|
-
},
|
|
138
|
+
}, Gt = {
|
|
139
139
|
__name: "About",
|
|
140
140
|
setup(e) {
|
|
141
|
-
return (e, t) => (
|
|
141
|
+
return (e, t) => (N(), S(Wt, {
|
|
142
142
|
kind: "about",
|
|
143
143
|
body: "gallery.about.body"
|
|
144
144
|
}));
|
|
145
145
|
}
|
|
146
|
-
},
|
|
146
|
+
}, Kt = {
|
|
147
147
|
__name: "Credits",
|
|
148
148
|
props: { bodyKey: {
|
|
149
149
|
type: String,
|
|
150
150
|
required: !0
|
|
151
151
|
} },
|
|
152
152
|
setup(e) {
|
|
153
|
-
return (t, n) => (
|
|
153
|
+
return (t, n) => (N(), S(Wt, {
|
|
154
154
|
kind: "credits",
|
|
155
155
|
body: e.bodyKey
|
|
156
156
|
}, null, 8, ["body"]));
|
|
157
157
|
}
|
|
158
|
-
},
|
|
158
|
+
}, qt = { class: "mwnf-dxa-exhibition-credits" }, Jt = {
|
|
159
159
|
__name: "Credits",
|
|
160
160
|
props: { bodyKey: {
|
|
161
161
|
type: String,
|
|
162
162
|
required: !0
|
|
163
163
|
} },
|
|
164
164
|
setup(t) {
|
|
165
|
-
return (n, r) => (
|
|
165
|
+
return (n, r) => (N(), w("div", qt, [O(B), O(L(e), {
|
|
166
166
|
class: "mwnf-dxa-exhibition-credits__body",
|
|
167
167
|
dir: "auto",
|
|
168
168
|
keypath: t.bodyKey,
|
|
169
169
|
"blank-lines": ""
|
|
170
170
|
}, null, 8, ["keypath"])]));
|
|
171
171
|
}
|
|
172
|
-
},
|
|
172
|
+
}, Yt = {
|
|
173
173
|
__name: "SearchHowTo",
|
|
174
174
|
setup(e) {
|
|
175
|
-
return (e, t) => (
|
|
175
|
+
return (e, t) => (N(), S(Wt, {
|
|
176
176
|
kind: "how-to",
|
|
177
177
|
body: "catalogue.search.howToEssay",
|
|
178
178
|
back: { name: "collection" }
|
|
179
179
|
}));
|
|
180
180
|
}
|
|
181
|
-
},
|
|
181
|
+
}, Xt = {
|
|
182
182
|
DGA: "dga",
|
|
183
183
|
ISL: "isl",
|
|
184
184
|
EPM: "isl",
|
|
@@ -186,33 +186,33 @@ var zt = { class: "mwnf-dxa-profile-languages" }, Bt = { class: "mwnf-dxa-profil
|
|
|
186
186
|
BAR: "dba",
|
|
187
187
|
GALLERIES: "galleries",
|
|
188
188
|
DCA: "dca"
|
|
189
|
-
},
|
|
189
|
+
}, Zt = {
|
|
190
190
|
partner: "gallery.partners.statusPartner",
|
|
191
191
|
affiliate: "gallery.partners.statusAffiliate"
|
|
192
192
|
};
|
|
193
|
-
function
|
|
193
|
+
function Qt(e, t = Zt) {
|
|
194
194
|
let n = e?.own_project;
|
|
195
195
|
if (!n?.name) return null;
|
|
196
|
-
let r = String(n.backward_compatibility ?? "").split(":").pop().toUpperCase(), i = n.exhibition ? "exh" :
|
|
196
|
+
let r = String(n.backward_compatibility ?? "").split(":").pop().toUpperCase(), i = n.exhibition ? "exh" : Xt[r] ?? "", a = n.level === "partner" || !!n.exhibition;
|
|
197
197
|
return {
|
|
198
198
|
name: n.name,
|
|
199
199
|
status: a ? t.partner : t.affiliate,
|
|
200
200
|
tone: i
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
var
|
|
203
|
+
var $t = {
|
|
204
204
|
partner: "exhibition.partners.statusPartner",
|
|
205
205
|
associated_partner: "exhibition.partners.statusAssociated",
|
|
206
206
|
minor_contributor: "exhibition.partners.statusFurtherAssociated"
|
|
207
|
-
},
|
|
208
|
-
function
|
|
207
|
+
}, en = "mwnf3:institutions:";
|
|
208
|
+
function Z(e) {
|
|
209
209
|
let t = e?.own_project;
|
|
210
210
|
if (!t?.name) return null;
|
|
211
|
-
let n = String(t.backward_compatibility ?? "").split(":").pop().toUpperCase(), r = String(e?.backward_compatibility ?? "").startsWith(
|
|
211
|
+
let n = String(t.backward_compatibility ?? "").split(":").pop().toUpperCase(), r = String(e?.backward_compatibility ?? "").startsWith(en) ? e.level : t.level;
|
|
212
212
|
return {
|
|
213
213
|
name: t.name,
|
|
214
|
-
status: t.exhibition ?
|
|
215
|
-
tone: t.exhibition ? "exh" :
|
|
214
|
+
status: t.exhibition ? $t.partner : $t[r] ?? null,
|
|
215
|
+
tone: t.exhibition ? "exh" : Xt[n] ?? ""
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
218
|
// src/dxa/gallery/Partners.vue
|
|
@@ -222,51 +222,51 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
222
222
|
}, dn = { class: "mwnf-dxa-partner-badge__status" }, fn = { class: "mwnf-dxa-gallery-partners__links" }, pn = { class: "mwnf-dxa-gallery-partners__logo" }, mn = ["src", "alt"], hn = {
|
|
223
223
|
__name: "Partners",
|
|
224
224
|
setup(t) {
|
|
225
|
-
let
|
|
226
|
-
...
|
|
227
|
-
objectsRoute:
|
|
225
|
+
let n = {
|
|
226
|
+
...ge,
|
|
227
|
+
objectsRoute: Ce,
|
|
228
228
|
orderToggle: !1,
|
|
229
229
|
tiebreak: (e) => e.own_project?.name ?? ""
|
|
230
230
|
};
|
|
231
|
-
return (t,
|
|
232
|
-
before:
|
|
231
|
+
return (t, r) => (N(), w("div", tn, [O(wt, { spec: n }, {
|
|
232
|
+
before: R(({ t, orderDir: n, toggleOrder: r }) => [T("div", nn, [O(B), T("div", rn, [T("button", {
|
|
233
233
|
type: "button",
|
|
234
234
|
onClick: r
|
|
235
|
-
},
|
|
235
|
+
}, I(t(n === "asc" ? "partner.list.sortDescending" : "partner.list.sortAscending")), 9, an)])]), O(L(e), {
|
|
236
236
|
id: "mwnf-dxa-partners-intro",
|
|
237
237
|
class: "mwnf-dxa-gallery-partners__intro",
|
|
238
238
|
dir: "auto",
|
|
239
239
|
keypath: "gallery.partners.intro"
|
|
240
240
|
})]),
|
|
241
|
-
"group-heading":
|
|
242
|
-
row:
|
|
243
|
-
|
|
241
|
+
"group-heading": R(({ group: e }) => [T("div", on, I(e.label), 1)]),
|
|
242
|
+
row: R(({ partner: e, view: t, t: n }) => [T("div", sn, [T("div", cn, [
|
|
243
|
+
O(V, {
|
|
244
244
|
class: "mwnf-dxa-gallery-partners__name",
|
|
245
245
|
to: t.route
|
|
246
246
|
}, {
|
|
247
|
-
default:
|
|
247
|
+
default: R(() => [T("span", { innerHTML: t.name }, null, 8, ln), t.city ? (N(), w("span", un, ", " + I(t.city), 1)) : C("", !0)]),
|
|
248
248
|
_: 2
|
|
249
249
|
}, 1032, ["to"]),
|
|
250
|
-
|
|
250
|
+
L(Qt)(e) ? (N(), w("div", {
|
|
251
251
|
key: 0,
|
|
252
|
-
class:
|
|
253
|
-
}, [
|
|
254
|
-
|
|
255
|
-
default:
|
|
252
|
+
class: k(["mwnf-dxa-partner-badge", L(Qt)(e).tone && `mwnf-dxa-partner-badge--${L(Qt)(e).tone}`])
|
|
253
|
+
}, [D(I(L(Qt)(e).name) + " ", 1), T("span", dn, I(n(L(Qt)(e).status)), 1)], 2)) : C("", !0),
|
|
254
|
+
T("div", fn, [O(V, { to: t.route }, {
|
|
255
|
+
default: R(() => [D(I(n("partner.action.readMore")), 1)]),
|
|
256
256
|
_: 2
|
|
257
|
-
}, 1032, ["to"]), e.item_count > 0 && t.objectsRoute ? (
|
|
257
|
+
}, 1032, ["to"]), e.item_count > 0 && t.objectsRoute ? (N(), w(b, { key: 0 }, [r[0] ||= T("span", {
|
|
258
258
|
class: "mwnf-dxa-gallery-partners__divider",
|
|
259
259
|
"aria-hidden": "true"
|
|
260
|
-
}, "|", -1),
|
|
261
|
-
default:
|
|
260
|
+
}, "|", -1), O(V, { to: t.objectsRoute }, {
|
|
261
|
+
default: R(() => [D(I(n("partner.action.viewObjects")), 1)]),
|
|
262
262
|
_: 2
|
|
263
|
-
}, 1032, ["to"])], 64)) :
|
|
264
|
-
]),
|
|
263
|
+
}, 1032, ["to"])], 64)) : C("", !0)])
|
|
264
|
+
]), T("div", pn, [t.logos?.[0] ? (N(), w("img", {
|
|
265
265
|
key: 0,
|
|
266
266
|
src: t.logos[0].url,
|
|
267
267
|
alt: t.plainName,
|
|
268
268
|
loading: "lazy"
|
|
269
|
-
}, null, 8, mn)) :
|
|
269
|
+
}, null, 8, mn)) : C("", !0)])])]),
|
|
270
270
|
_: 1
|
|
271
271
|
})]));
|
|
272
272
|
}
|
|
@@ -288,7 +288,7 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
288
288
|
},
|
|
289
289
|
emits: ["navigate"],
|
|
290
290
|
setup(e, { emit: t }) {
|
|
291
|
-
let n = e, r = t, { t: i } =
|
|
291
|
+
let n = e, r = t, { t: i } = p(), a = x(() => `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) ? [
|
|
292
292
|
3,
|
|
293
293
|
2,
|
|
294
294
|
5
|
|
@@ -304,56 +304,56 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
304
304
|
8,
|
|
305
305
|
7,
|
|
306
306
|
15
|
|
307
|
-
], f =
|
|
308
|
-
let e = 1, t =
|
|
309
|
-
if (
|
|
307
|
+
], f = x(() => n.pageInfo?.currentPage ?? 1), m = x(() => n.pageInfo?.lastPage ?? 1), h = x(() => {
|
|
308
|
+
let e = 1, t = m.value;
|
|
309
|
+
if (m.value > d) {
|
|
310
310
|
let n = f.value;
|
|
311
|
-
n > l && (e = n - u), n + u <
|
|
311
|
+
n > l && (e = n - u), n + u < m.value ? t = e <= u && n <= u ? d : n + u : (e = m.value - (d - 1), t = m.value);
|
|
312
312
|
}
|
|
313
313
|
let n = [];
|
|
314
314
|
for (let r = e; r <= t; r++) n.push(r);
|
|
315
315
|
return n;
|
|
316
|
-
}),
|
|
317
|
-
function
|
|
318
|
-
|
|
316
|
+
}), g = (e) => e < 1 || e > m.value || e === f.value;
|
|
317
|
+
function _(e) {
|
|
318
|
+
g(e) || r("navigate", e);
|
|
319
319
|
}
|
|
320
|
-
return (e, t) =>
|
|
320
|
+
return (e, t) => m.value > 1 ? (N(), w("div", {
|
|
321
321
|
key: 0,
|
|
322
|
-
class:
|
|
322
|
+
class: k(a.value)
|
|
323
323
|
}, [
|
|
324
|
-
|
|
324
|
+
T("button", {
|
|
325
325
|
type: "button",
|
|
326
|
-
class:
|
|
327
|
-
disabled:
|
|
328
|
-
onClick: t[0] ||= (e) =>
|
|
329
|
-
}, [t[4] ||=
|
|
330
|
-
|
|
326
|
+
class: k([`${a.value}__button`, { "is-disabled": g(1) }]),
|
|
327
|
+
disabled: g(1),
|
|
328
|
+
onClick: t[0] ||= (e) => _(1)
|
|
329
|
+
}, [t[4] ||= D(" <<", -1), L(c) ? C("", !0) : (N(), w("span", _n, I(" " + o("first")), 1))], 10, gn),
|
|
330
|
+
T("button", {
|
|
331
331
|
type: "button",
|
|
332
|
-
class:
|
|
333
|
-
disabled:
|
|
334
|
-
onClick: t[1] ||= (e) =>
|
|
335
|
-
}, [t[5] ||=
|
|
336
|
-
|
|
332
|
+
class: k([`${a.value}__button`, { "is-disabled": g(f.value - 1) }]),
|
|
333
|
+
disabled: g(f.value - 1),
|
|
334
|
+
onClick: t[1] ||= (e) => _(f.value - 1)
|
|
335
|
+
}, [t[5] ||= D(" <", -1), L(c) ? C("", !0) : (N(), w("span", yn, I(" " + o("previous")), 1))], 10, vn),
|
|
336
|
+
T("div", { class: k(`${a.value}__numbers`) }, [(N(!0), w(b, null, F(h.value, (e) => (N(), w("button", {
|
|
337
337
|
key: e,
|
|
338
338
|
type: "button",
|
|
339
|
-
class:
|
|
340
|
-
disabled:
|
|
339
|
+
class: k([`${a.value}__button`, { "is-disabled": g(e) }]),
|
|
340
|
+
disabled: g(e),
|
|
341
341
|
"aria-current": e === f.value ? "page" : void 0,
|
|
342
|
-
onClick: (t) =>
|
|
343
|
-
},
|
|
344
|
-
|
|
342
|
+
onClick: (t) => _(e)
|
|
343
|
+
}, I(e), 11, bn))), 128))], 2),
|
|
344
|
+
T("button", {
|
|
345
345
|
type: "button",
|
|
346
|
-
class:
|
|
347
|
-
disabled:
|
|
348
|
-
onClick: t[2] ||= (e) =>
|
|
349
|
-
}, [
|
|
350
|
-
|
|
346
|
+
class: k([`${a.value}__button`, { "is-disabled": g(f.value + 1) }]),
|
|
347
|
+
disabled: g(f.value + 1),
|
|
348
|
+
onClick: t[2] ||= (e) => _(f.value + 1)
|
|
349
|
+
}, [L(c) ? C("", !0) : (N(), w("span", Sn, I(o("next") + " "), 1)), t[6] ||= D("> ", -1)], 10, xn),
|
|
350
|
+
T("button", {
|
|
351
351
|
type: "button",
|
|
352
|
-
class:
|
|
353
|
-
disabled:
|
|
354
|
-
onClick: t[3] ||= (e) =>
|
|
355
|
-
}, [
|
|
356
|
-
], 2)) :
|
|
352
|
+
class: k([`${a.value}__button`, { "is-disabled": g(m.value) }]),
|
|
353
|
+
disabled: g(m.value),
|
|
354
|
+
onClick: t[3] ||= (e) => _(m.value)
|
|
355
|
+
}, [L(c) ? C("", !0) : (N(), w("span", wn, I(o("last") + " "), 1)), t[7] ||= D(">> ", -1)], 10, Cn)
|
|
356
|
+
], 2)) : C("", !0);
|
|
357
357
|
}
|
|
358
358
|
}, Tn = ["onMouseenter"], En = { class: "mwnf-dxa-grid__frame" }, Dn = ["src", "alt"], On = ["src", "alt"], kn = { class: "mwnf-dxa-grid__text" }, An = ["innerHTML"], jn = { class: "mwnf-dxa-grid__date" }, Mn = { class: "mwnf-dxa-grid__partner" }, Nn = { class: "mwnf-dxa-grid__place" }, Pn = {
|
|
359
359
|
key: 0,
|
|
@@ -371,42 +371,42 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
371
371
|
}
|
|
372
372
|
},
|
|
373
373
|
setup(e) {
|
|
374
|
-
let { t } =
|
|
375
|
-
return (
|
|
376
|
-
key:
|
|
374
|
+
let { t } = p(), n = P(-1);
|
|
375
|
+
return (r, i) => (N(), w("div", { class: k(["mwnf-dxa-grid", { "mwnf-dxa-grid--exhibition": e.family === "exhibition" }]) }, [(N(!0), w(b, null, F(e.rows, (r, a) => (N(), w("div", {
|
|
376
|
+
key: r.id,
|
|
377
377
|
class: "mwnf-dxa-grid__entry",
|
|
378
|
-
onMouseenter: (e) =>
|
|
379
|
-
onMouseleave:
|
|
380
|
-
}, [
|
|
378
|
+
onMouseenter: (e) => n.value = a,
|
|
379
|
+
onMouseleave: i[0] ||= (e) => n.value = -1
|
|
380
|
+
}, [T("div", En, [T("img", {
|
|
381
381
|
class: "mwnf-dxa-grid__image",
|
|
382
|
-
src:
|
|
383
|
-
alt:
|
|
382
|
+
src: r.image,
|
|
383
|
+
alt: r.imageAlt,
|
|
384
384
|
loading: "lazy"
|
|
385
|
-
}, null, 8, Dn)]),
|
|
385
|
+
}, null, 8, Dn)]), T("div", { class: k(["mwnf-dxa-grid__card", { "mwnf-dxa-grid__card--open": n.value === a }]) }, [O(V, {
|
|
386
386
|
class: "mwnf-dxa-grid__card-image",
|
|
387
|
-
to:
|
|
387
|
+
to: r.to,
|
|
388
388
|
tabindex: "-1"
|
|
389
389
|
}, {
|
|
390
|
-
default:
|
|
391
|
-
src:
|
|
392
|
-
alt:
|
|
390
|
+
default: R(() => [T("img", {
|
|
391
|
+
src: r.image,
|
|
392
|
+
alt: r.imageAlt,
|
|
393
393
|
loading: "lazy"
|
|
394
394
|
}, null, 8, On)]),
|
|
395
395
|
_: 2
|
|
396
|
-
}, 1032, ["to"]),
|
|
397
|
-
|
|
396
|
+
}, 1032, ["to"]), T("div", kn, [
|
|
397
|
+
T("p", {
|
|
398
398
|
class: "mwnf-dxa-grid__name",
|
|
399
|
-
innerHTML:
|
|
399
|
+
innerHTML: r.name
|
|
400
400
|
}, null, 8, An),
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
e.family !== "exhibition" ||
|
|
405
|
-
|
|
401
|
+
T("p", jn, I(r.date), 1),
|
|
402
|
+
T("p", Mn, I(r.partner), 1),
|
|
403
|
+
T("p", Nn, I(r.place), 1),
|
|
404
|
+
e.family !== "exhibition" || r.project ? (N(), w("p", Pn, [D(I(e.family === "exhibition" ? L(t)("exhibition.results.for") : L(t)("gallery.results.for")) + " ", 1), T("span", null, I(r.project), 1)])) : C("", !0),
|
|
405
|
+
O(V, {
|
|
406
406
|
class: "mwnf-dxa-grid__link",
|
|
407
|
-
to:
|
|
407
|
+
to: r.to
|
|
408
408
|
}, {
|
|
409
|
-
default:
|
|
409
|
+
default: R(() => [D(I(L(t)("catalogue.results.seeDatabaseEntry")) + " >", 1)]),
|
|
410
410
|
_: 1
|
|
411
411
|
}, 8, ["to"])
|
|
412
412
|
])], 2)], 40, Tn))), 128))], 2));
|
|
@@ -419,76 +419,76 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
419
419
|
class: "mwnf-dxa-no-results"
|
|
420
420
|
}, Bn = {
|
|
421
421
|
__name: "SearchResults",
|
|
422
|
-
setup(
|
|
423
|
-
let
|
|
422
|
+
setup(e) {
|
|
423
|
+
let t = m("items", {
|
|
424
424
|
grammar: "boolean",
|
|
425
|
-
haystack:
|
|
426
|
-
}),
|
|
427
|
-
|
|
428
|
-
|
|
425
|
+
haystack: ke
|
|
426
|
+
}), n = P(!1);
|
|
427
|
+
qe().then(() => {
|
|
428
|
+
n.value = !0;
|
|
429
429
|
});
|
|
430
|
-
function
|
|
430
|
+
function r(e) {
|
|
431
431
|
return !e || e === "all-objects";
|
|
432
432
|
}
|
|
433
|
-
let
|
|
433
|
+
let i = P(""), a = x(() => ({
|
|
434
434
|
entity: "items",
|
|
435
435
|
keys: ["q"],
|
|
436
436
|
sort: !1,
|
|
437
|
-
narrow: (e,
|
|
438
|
-
pageSize:
|
|
437
|
+
narrow: (e, i) => n.value ? r(i.q) ? e : t.search(i.q) : [],
|
|
438
|
+
pageSize: We.pageSize,
|
|
439
439
|
variant: "grid",
|
|
440
440
|
recordRoute: "item",
|
|
441
441
|
actionLabel: "catalogue.results.seeDatabaseEntry",
|
|
442
|
-
record: (e, { t }) =>
|
|
443
|
-
summary: ({ filters: e, pageInfo: t, t: n, total:
|
|
442
|
+
record: (e, { t }) => Pe(e, t),
|
|
443
|
+
summary: ({ filters: e, pageInfo: t, t: n, total: i }) => [{
|
|
444
444
|
label: n("core.section.database"),
|
|
445
|
-
value:
|
|
445
|
+
value: r(e.q) ? n("catalogue.results.allObjects") : `“${e.q}”`
|
|
446
446
|
}, {
|
|
447
447
|
count: t.total,
|
|
448
|
-
value: `${n("catalogue.results.outOf")} ${
|
|
448
|
+
value: `${n("catalogue.results.outOf")} ${i} ${n("catalogue.results.objects")}`
|
|
449
449
|
}]
|
|
450
450
|
}));
|
|
451
|
-
return (
|
|
452
|
-
spec:
|
|
451
|
+
return (e, t) => (N(), S(q, {
|
|
452
|
+
spec: a.value,
|
|
453
453
|
class: "mwnf-dxa-search-results"
|
|
454
454
|
}, {
|
|
455
|
-
before:
|
|
456
|
-
filters:
|
|
455
|
+
before: R(() => [O(B)]),
|
|
456
|
+
filters: R(({ apply: n }) => [T("form", {
|
|
457
457
|
class: "mwnf-dxa-refine-search",
|
|
458
|
-
onSubmit:
|
|
459
|
-
}, [
|
|
460
|
-
"onUpdate:modelValue":
|
|
458
|
+
onSubmit: le((e) => n({ q: i.value || "all-objects" }), ["prevent"])
|
|
459
|
+
}, [z(T("input", {
|
|
460
|
+
"onUpdate:modelValue": t[0] ||= (e) => i.value = e,
|
|
461
461
|
type: "text",
|
|
462
462
|
class: "mwnf-dxa-refine-search-input",
|
|
463
|
-
placeholder:
|
|
464
|
-
}, null, 8, In), [[
|
|
465
|
-
default:
|
|
463
|
+
placeholder: e.$t("catalogue.search.keywordPlaceholder")
|
|
464
|
+
}, null, 8, In), [[ae, i.value]]), T("button", Ln, I(e.$t("catalogue.search.submit")), 1)], 40, Fn), T("p", Rn, [O(L(J), { to: { name: "search-how-to" } }, {
|
|
465
|
+
default: R(() => [D(I(e.$t("catalogue.search.howTo")) + " ›", 1)]),
|
|
466
466
|
_: 1
|
|
467
467
|
})])]),
|
|
468
|
-
actions:
|
|
468
|
+
actions: R(({ pageInfo: e, goToPage: t }) => [O(Q, {
|
|
469
469
|
family: "gallery",
|
|
470
470
|
class: "mwnf-dxa-gallery-pages--top",
|
|
471
471
|
"page-info": e,
|
|
472
472
|
onNavigate: t
|
|
473
473
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
474
|
-
pagination:
|
|
475
|
-
after:
|
|
474
|
+
pagination: R(() => [...t[1] ||= []]),
|
|
475
|
+
after: R(({ pageInfo: e, goToPage: t }) => [O(Q, {
|
|
476
476
|
family: "gallery",
|
|
477
477
|
"page-info": e,
|
|
478
478
|
onNavigate: t
|
|
479
479
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
480
|
-
records:
|
|
480
|
+
records: R(({ rows: n }) => [n.length ? (N(), S($, {
|
|
481
481
|
key: 0,
|
|
482
|
-
rows:
|
|
483
|
-
}, null, 8, ["rows"])) : (
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
default:
|
|
482
|
+
rows: n
|
|
483
|
+
}, null, 8, ["rows"])) : (N(), w("p", zn, [
|
|
484
|
+
D(I(e.$t("catalogue.results.noResultsSearch")) + " ", 1),
|
|
485
|
+
O(L(J), { to: { name: "search-how-to" } }, {
|
|
486
|
+
default: R(() => [D(I(e.$t("catalogue.search.howTo")), 1)]),
|
|
487
487
|
_: 1
|
|
488
488
|
}),
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
default:
|
|
489
|
+
t[2] ||= T("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
|
|
490
|
+
O(L(J), { to: { name: "collection" } }, {
|
|
491
|
+
default: R(() => [D(I(e.$t("core.section.collection")), 1)]),
|
|
492
492
|
_: 1
|
|
493
493
|
})
|
|
494
494
|
]))]),
|
|
@@ -497,12 +497,12 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
497
497
|
}
|
|
498
498
|
}, Vn = {
|
|
499
499
|
__name: "TimelineResults",
|
|
500
|
-
setup(
|
|
501
|
-
return (
|
|
502
|
-
spec:
|
|
500
|
+
setup(e) {
|
|
501
|
+
return (e, t) => (N(), S(Tt, {
|
|
502
|
+
spec: L(Ne),
|
|
503
503
|
class: "mwnf-dxa-timeline-results"
|
|
504
504
|
}, {
|
|
505
|
-
before:
|
|
505
|
+
before: R(() => [O(B)]),
|
|
506
506
|
_: 1
|
|
507
507
|
}, 8, ["spec"]));
|
|
508
508
|
}
|
|
@@ -511,37 +511,37 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
511
511
|
class: "mwnf-record-grid__empty"
|
|
512
512
|
}, Wn = {
|
|
513
513
|
__name: "TimelineGallery",
|
|
514
|
-
setup(
|
|
515
|
-
return (
|
|
514
|
+
setup(e) {
|
|
515
|
+
return (e, t) => (N(), S(q, {
|
|
516
516
|
spec: {
|
|
517
|
-
...
|
|
518
|
-
...
|
|
517
|
+
...L(he),
|
|
518
|
+
...L(We)
|
|
519
519
|
},
|
|
520
520
|
class: "mwnf-dxa-timeline-gallery"
|
|
521
521
|
}, {
|
|
522
|
-
before:
|
|
523
|
-
actions:
|
|
522
|
+
before: R(() => [O(B)]),
|
|
523
|
+
actions: R(({ filters: t, pageInfo: n, goToPage: r }) => [T("p", Hn, [O(L(J), { to: {
|
|
524
524
|
name: "timeline-results",
|
|
525
525
|
query: {
|
|
526
|
-
country:
|
|
527
|
-
begin:
|
|
528
|
-
end:
|
|
526
|
+
country: t.country,
|
|
527
|
+
begin: t.begin,
|
|
528
|
+
end: t.end
|
|
529
529
|
}
|
|
530
530
|
} }, {
|
|
531
|
-
default:
|
|
531
|
+
default: R(() => [D(" ➤ " + I(e.$t("timeline.nav.backToEvents")), 1)]),
|
|
532
532
|
_: 1
|
|
533
|
-
}, 8, ["to"])]),
|
|
533
|
+
}, 8, ["to"])]), O(Q, {
|
|
534
534
|
family: "gallery",
|
|
535
535
|
class: "mwnf-dxa-gallery-pages--top",
|
|
536
536
|
"page-info": n,
|
|
537
537
|
onNavigate: r
|
|
538
538
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
539
|
-
records:
|
|
539
|
+
records: R(({ rows: e, empty: t }) => [e.length ? (N(), S($, {
|
|
540
540
|
key: 0,
|
|
541
541
|
rows: e
|
|
542
|
-
}, null, 8, ["rows"])) : (
|
|
543
|
-
pagination:
|
|
544
|
-
after:
|
|
542
|
+
}, null, 8, ["rows"])) : (N(), w("p", Un, I(t), 1))]),
|
|
543
|
+
pagination: R(() => [...t[0] ||= []]),
|
|
544
|
+
after: R(({ pageInfo: e, goToPage: t }) => [O(Q, {
|
|
545
545
|
family: "gallery",
|
|
546
546
|
"page-info": e,
|
|
547
547
|
onNavigate: t
|
|
@@ -558,64 +558,64 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
558
558
|
}, Zn = { class: "mwnf-dxa-options-label" }, Qn = { class: "mwnf-dxa-gallery-results__timeline" }, $n = {
|
|
559
559
|
__name: "CollectionResults",
|
|
560
560
|
setup(t) {
|
|
561
|
-
let { t: n } =
|
|
561
|
+
let { t: n } = p(), r = {
|
|
562
562
|
type: "gallery.collection.type",
|
|
563
563
|
dynasty: "gallery.collection.periodDynasty",
|
|
564
564
|
subject: "gallery.collection.subject",
|
|
565
565
|
material: "gallery.collection.material"
|
|
566
|
-
},
|
|
567
|
-
function
|
|
568
|
-
let i = (n) => (t[n] ?? []).find((t) => String(t.value) === String(e[n]))?.label ?? e[n],
|
|
569
|
-
e.country &&
|
|
570
|
-
for (let t of
|
|
571
|
-
return e.from &&
|
|
566
|
+
}, i = (e) => n(Le[e] ?? e), a = x(() => v(Ae.value ?? [], i)), o = x(() => (Ae.value ?? []).length), s = Te.keys, c = (e) => s.every((t) => !e[t]);
|
|
567
|
+
function l(e, t, r) {
|
|
568
|
+
let i = (n) => (t[n] ?? []).find((t) => String(t.value) === String(e[n]))?.label ?? e[n], o = (e) => a.value.find((t) => String(t.value) === String(e))?.label ?? e, s = [];
|
|
569
|
+
e.country && s.push(i("country"));
|
|
570
|
+
for (let t of Be) e[t] && s.push(i(t));
|
|
571
|
+
return e.from && s.push(`${n("gallery.collection.start")} ${o(e.from)}`), e.to && s.push(`${n("gallery.collection.end")} ${o(e.to)}`), s.length ? s.join(" & ") : r.length ? n("gallery.collection.allObjects") : n("gallery.collection.none");
|
|
572
572
|
}
|
|
573
|
-
let
|
|
574
|
-
function
|
|
575
|
-
let t =
|
|
576
|
-
return !!(t &&
|
|
573
|
+
let u = x(() => new Set((ye.value ?? []).map((e) => e.country_id)));
|
|
574
|
+
function d(e) {
|
|
575
|
+
let t = Re(e.country);
|
|
576
|
+
return !!(t && u.value.has(t));
|
|
577
577
|
}
|
|
578
|
-
return (t,
|
|
578
|
+
return (t, a) => (N(), w("div", Gn, [O(q, {
|
|
579
579
|
spec: {
|
|
580
|
-
...
|
|
581
|
-
...
|
|
580
|
+
...L(Te),
|
|
581
|
+
...L(We),
|
|
582
582
|
summary: () => []
|
|
583
583
|
},
|
|
584
584
|
class: "mwnf-dxa-collection-results"
|
|
585
585
|
}, {
|
|
586
|
-
before:
|
|
587
|
-
actions:
|
|
586
|
+
before: R(({ filters: e, options: t, matching: r, pageInfo: i }) => [O(B), T("div", Kn, [T("p", null, [D(I(L(n)("gallery.collection.heading")) + " | ", 1), T("span", qn, I(l(e, t, r)), 1)]), T("p", null, I(i.total) + " " + I(L(n)("gallery.collection.resultsOutOf")) + " " + I(o.value) + " " + I(L(n)("gallery.collection.objects")), 1)])]),
|
|
587
|
+
actions: R(({ pageInfo: e, goToPage: t }) => [O(Q, {
|
|
588
588
|
family: "gallery",
|
|
589
589
|
class: "mwnf-dxa-gallery-pages--top",
|
|
590
590
|
"page-info": e,
|
|
591
591
|
onNavigate: t
|
|
592
592
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
593
|
-
records:
|
|
593
|
+
records: R(({ rows: t }) => [t.length ? (N(), S($, {
|
|
594
594
|
key: 0,
|
|
595
|
-
rows:
|
|
596
|
-
}, null, 8, ["rows"])) : (
|
|
595
|
+
rows: t
|
|
596
|
+
}, null, 8, ["rows"])) : (N(), S(L(e), {
|
|
597
597
|
key: 1,
|
|
598
598
|
class: "mwnf-dxa-gallery-results__none",
|
|
599
599
|
keypath: "gallery.collection.noResults"
|
|
600
600
|
}))]),
|
|
601
|
-
pagination:
|
|
602
|
-
after:
|
|
601
|
+
pagination: R(({ pageInfo: e }) => [e.lastPage <= 1 ? (N(), w("div", Jn)) : C("", !0)]),
|
|
602
|
+
after: R(({ pageInfo: e, goToPage: t }) => [O(Q, {
|
|
603
603
|
family: "gallery",
|
|
604
604
|
"page-info": e,
|
|
605
605
|
onNavigate: t
|
|
606
606
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
607
|
-
aside:
|
|
607
|
+
aside: R(({ filters: e, apply: t, reset: o, matching: s, options: l }) => [O(fe, {
|
|
608
608
|
mode: "immediate",
|
|
609
|
-
title:
|
|
610
|
-
"reset-label":
|
|
611
|
-
disabled:
|
|
612
|
-
onReset: (e) =>
|
|
609
|
+
title: c(e) ? L(n)("gallery.collection.filterBy") : L(n)("gallery.collection.filterFurtherBy"),
|
|
610
|
+
"reset-label": L(n)("gallery.collection.resetFilters"),
|
|
611
|
+
disabled: s.length === 0,
|
|
612
|
+
onReset: (e) => o()
|
|
613
613
|
}, {
|
|
614
|
-
default:
|
|
615
|
-
|
|
614
|
+
default: R(() => [
|
|
615
|
+
O(H, {
|
|
616
616
|
"model-value": e.country,
|
|
617
|
-
options:
|
|
618
|
-
placeholder:
|
|
617
|
+
options: l.country,
|
|
618
|
+
placeholder: L(n)("gallery.collection.selectCountry"),
|
|
619
619
|
"onUpdate:modelValue": (e) => t({ country: e })
|
|
620
620
|
}, null, 8, [
|
|
621
621
|
"model-value",
|
|
@@ -623,33 +623,33 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
623
623
|
"placeholder",
|
|
624
624
|
"onUpdate:modelValue"
|
|
625
625
|
]),
|
|
626
|
-
(
|
|
627
|
-
key:
|
|
628
|
-
"model-value": e[
|
|
629
|
-
options:
|
|
630
|
-
placeholder:
|
|
626
|
+
(N(!0), w(b, null, F(L(Be), (i) => (N(), S(H, {
|
|
627
|
+
key: i,
|
|
628
|
+
"model-value": e[i],
|
|
629
|
+
options: l[i],
|
|
630
|
+
placeholder: L(n)(r[i]),
|
|
631
631
|
"hide-empty": "",
|
|
632
|
-
"onUpdate:modelValue": (e) => t({ [
|
|
632
|
+
"onUpdate:modelValue": (e) => t({ [i]: e })
|
|
633
633
|
}, null, 8, [
|
|
634
634
|
"model-value",
|
|
635
635
|
"options",
|
|
636
636
|
"placeholder",
|
|
637
637
|
"onUpdate:modelValue"
|
|
638
638
|
]))), 128)),
|
|
639
|
-
|
|
639
|
+
T("div", Yn, [O(H, {
|
|
640
640
|
"model-value": e.from,
|
|
641
|
-
options:
|
|
642
|
-
placeholder:
|
|
641
|
+
options: L(v)(s, i),
|
|
642
|
+
placeholder: L(n)("gallery.collection.startDate"),
|
|
643
643
|
"onUpdate:modelValue": (e) => t({ from: e })
|
|
644
644
|
}, null, 8, [
|
|
645
645
|
"model-value",
|
|
646
646
|
"options",
|
|
647
647
|
"placeholder",
|
|
648
648
|
"onUpdate:modelValue"
|
|
649
|
-
]),
|
|
649
|
+
]), O(H, {
|
|
650
650
|
"model-value": e.to,
|
|
651
|
-
options:
|
|
652
|
-
placeholder:
|
|
651
|
+
options: L(v)(s, i),
|
|
652
|
+
placeholder: L(n)("gallery.collection.endDate"),
|
|
653
653
|
"onUpdate:modelValue": (e) => t({ to: e })
|
|
654
654
|
}, null, 8, [
|
|
655
655
|
"model-value",
|
|
@@ -664,10 +664,10 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
664
664
|
"reset-label",
|
|
665
665
|
"disabled",
|
|
666
666
|
"onReset"
|
|
667
|
-
]),
|
|
667
|
+
]), d(e) ? (N(), w("div", Xn, [T("div", Zn, I(L(n)("gallery.collection.timelineForSearch")), 1), T("p", Qn, [a[0] ||= T("span", {
|
|
668
668
|
class: "mwnf-dxa-gallery-results__share",
|
|
669
669
|
"aria-hidden": "true"
|
|
670
|
-
}, "➦", -1),
|
|
670
|
+
}, "➦", -1), O(L(J), { to: {
|
|
671
671
|
name: "timeline-results",
|
|
672
672
|
query: {
|
|
673
673
|
country: e.country,
|
|
@@ -675,9 +675,9 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
675
675
|
end: e.to
|
|
676
676
|
}
|
|
677
677
|
} }, {
|
|
678
|
-
default:
|
|
678
|
+
default: R(() => [D(I(L(n)("gallery.collection.timeline")) + " | " + I(L(we)("countries", L(Re)(e.country))), 1)]),
|
|
679
679
|
_: 2
|
|
680
|
-
}, 1032, ["to"])])])) :
|
|
680
|
+
}, 1032, ["to"])])])) : C("", !0)]),
|
|
681
681
|
_: 1
|
|
682
682
|
}, 8, ["spec"])]));
|
|
683
683
|
}
|
|
@@ -696,46 +696,46 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
696
696
|
}, pr = ["value"], mr = ["innerHTML"], hr = {
|
|
697
697
|
__name: "CollectionSearch",
|
|
698
698
|
setup(e) {
|
|
699
|
-
let t =
|
|
699
|
+
let t = Et(), { t: n } = p(), r = x(() => s(`${n("gallery.collection.introBeforeName")} *${Oe(De)}* ${n("gallery.collection.introAfterName")}`)), i = f(Ae, He), a = {
|
|
700
700
|
country: "gallery.collection.selectCountry",
|
|
701
701
|
type: "gallery.collection.type",
|
|
702
702
|
dynasty: "gallery.collection.periodDynasty",
|
|
703
703
|
subject: "gallery.collection.subject",
|
|
704
704
|
material: "gallery.collection.material"
|
|
705
|
-
}, o =
|
|
705
|
+
}, o = x(() => ["country", ...Be].filter((e) => e === "country" || (i.value[e] ?? []).length > 0).map((e) => ({
|
|
706
706
|
key: e,
|
|
707
707
|
name: a[e],
|
|
708
708
|
options: i.value[e] ?? []
|
|
709
|
-
}))),
|
|
710
|
-
function
|
|
709
|
+
}))), c = (e) => n(Le[e] ?? e), l = x(() => v(Ae.value ?? [], c));
|
|
710
|
+
function u(e, n) {
|
|
711
711
|
n !== "" && n != null && t.push({
|
|
712
712
|
name: "collection-results",
|
|
713
713
|
query: { [e]: String(n) }
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
|
-
return (e, t) => (
|
|
716
|
+
return (e, t) => (N(), w("div", er, [T("div", tr, [T("div", nr, I(L(n)("gallery.collection.filterBy")), 1), T("div", rr, [(N(!0), w(b, null, F(o.value, (e) => (N(), w("select", {
|
|
717
717
|
key: e.key,
|
|
718
718
|
class: "mwnf-dxa-gallery-collection__select",
|
|
719
|
-
"aria-label":
|
|
720
|
-
onChange: (t) =>
|
|
721
|
-
}, [
|
|
719
|
+
"aria-label": L(n)(e.name),
|
|
720
|
+
onChange: (t) => u(e.key, t.target.value)
|
|
721
|
+
}, [T("option", ar, I(L(n)(e.name)), 1), (N(!0), w(b, null, F(e.options, (e) => (N(), w("option", {
|
|
722
722
|
key: e.value,
|
|
723
723
|
value: String(e.value)
|
|
724
|
-
},
|
|
724
|
+
}, I(e.label), 9, or))), 128))], 40, ir))), 128)), T("div", sr, [T("select", {
|
|
725
725
|
class: "mwnf-dxa-gallery-collection__select",
|
|
726
|
-
"aria-label":
|
|
727
|
-
onChange: t[0] ||= (e) =>
|
|
728
|
-
}, [
|
|
726
|
+
"aria-label": L(n)("gallery.collection.startDate"),
|
|
727
|
+
onChange: t[0] ||= (e) => u("from", e.target.value)
|
|
728
|
+
}, [T("option", lr, I(L(n)("gallery.collection.startDate")), 1), (N(!0), w(b, null, F(l.value, (e) => (N(), w("option", {
|
|
729
729
|
key: e.value,
|
|
730
730
|
value: String(e.value)
|
|
731
|
-
},
|
|
731
|
+
}, I(e.label), 9, ur))), 128))], 40, cr), T("select", {
|
|
732
732
|
class: "mwnf-dxa-gallery-collection__select",
|
|
733
|
-
"aria-label":
|
|
734
|
-
onChange: t[1] ||= (e) =>
|
|
735
|
-
}, [
|
|
733
|
+
"aria-label": L(n)("gallery.collection.endDate"),
|
|
734
|
+
onChange: t[1] ||= (e) => u("to", e.target.value)
|
|
735
|
+
}, [T("option", fr, I(L(n)("gallery.collection.endDate")), 1), (N(!0), w(b, null, F(l.value, (e) => (N(), w("option", {
|
|
736
736
|
key: e.value,
|
|
737
737
|
value: String(e.value)
|
|
738
|
-
},
|
|
738
|
+
}, I(e.label), 9, pr))), 128))], 40, dr)])])]), T("div", {
|
|
739
739
|
class: "mwnf-dxa-gallery-collection__description mwnf-prose vc-text",
|
|
740
740
|
dir: "auto",
|
|
741
741
|
innerHTML: r.value
|
|
@@ -752,47 +752,47 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
752
752
|
class: "mwnf-dxa-gallery-objects__end"
|
|
753
753
|
}, xr = {
|
|
754
754
|
__name: "PartnerObjects",
|
|
755
|
-
setup(
|
|
756
|
-
let
|
|
757
|
-
...
|
|
758
|
-
...
|
|
759
|
-
scope: (e) => e.partner_id ===
|
|
760
|
-
})),
|
|
761
|
-
return (
|
|
762
|
-
before:
|
|
755
|
+
setup(e) {
|
|
756
|
+
let t = Y(), n = x(() => Ee.value.get(t.params.id) ?? null), r = x(() => ({
|
|
757
|
+
...Ge,
|
|
758
|
+
...We,
|
|
759
|
+
scope: (e) => e.partner_id === t.params.id
|
|
760
|
+
})), i = x(() => n.value ? Ke.view(n.value, be("partners", n.value.id, Ve)) : null), a = x(() => [i.value?.city, i.value?.country].filter(Boolean).join(", "));
|
|
761
|
+
return (e, t) => n.value ? (N(), w("div", gr, [O(q, { spec: r.value }, {
|
|
762
|
+
before: R(() => [O(B), T("div", _r, [T("p", {
|
|
763
763
|
class: "mwnf-dxa-gallery-objects__name",
|
|
764
|
-
innerHTML:
|
|
765
|
-
}, null, 8, vr),
|
|
766
|
-
actions:
|
|
764
|
+
innerHTML: i.value.name
|
|
765
|
+
}, null, 8, vr), a.value ? (N(), w("p", yr, I(a.value), 1)) : C("", !0)])]),
|
|
766
|
+
actions: R(({ pageInfo: e, goToPage: t }) => [O(Q, {
|
|
767
767
|
family: "gallery",
|
|
768
768
|
class: "mwnf-dxa-gallery-pages--top",
|
|
769
769
|
"page-info": e,
|
|
770
770
|
onNavigate: t
|
|
771
771
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
772
|
-
records:
|
|
773
|
-
pagination:
|
|
774
|
-
after:
|
|
772
|
+
records: R(({ rows: e }) => [O($, { rows: e }, null, 8, ["rows"])]),
|
|
773
|
+
pagination: R(({ pageInfo: e }) => [e.lastPage <= 1 ? (N(), w("div", br)) : C("", !0)]),
|
|
774
|
+
after: R(({ pageInfo: e, goToPage: t }) => [O(Q, {
|
|
775
775
|
family: "gallery",
|
|
776
776
|
"page-info": e,
|
|
777
777
|
onNavigate: t
|
|
778
778
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
779
|
-
aside:
|
|
779
|
+
aside: R(() => [O(L(J), {
|
|
780
780
|
class: "mwnf-dxa-gallery-objects__profile",
|
|
781
|
-
to:
|
|
781
|
+
to: L(ve)(n.value)
|
|
782
782
|
}, {
|
|
783
|
-
default:
|
|
783
|
+
default: R(() => [t[0] ||= T("span", {
|
|
784
784
|
class: "mwnf-dxa-gallery-objects__profile-arrow",
|
|
785
785
|
"aria-hidden": "true"
|
|
786
|
-
}, "➦", -1),
|
|
786
|
+
}, "➦", -1), D(I(e.$t("partner.action.partnerProfile")), 1)]),
|
|
787
787
|
_: 1
|
|
788
788
|
}, 8, ["to"])]),
|
|
789
789
|
_: 1
|
|
790
|
-
}, 8, ["spec"])])) :
|
|
790
|
+
}, 8, ["spec"])])) : C("", !0);
|
|
791
791
|
}
|
|
792
792
|
}, Sr = { class: "mwnf-dxa-exhibition-how-to" }, Cr = {
|
|
793
793
|
__name: "SearchHowTo",
|
|
794
794
|
setup(t) {
|
|
795
|
-
return (t, n) => (
|
|
795
|
+
return (t, n) => (N(), w("div", Sr, [O(B), O(L(e), {
|
|
796
796
|
class: "mwnf-dxa-exhibition-how-to__text",
|
|
797
797
|
dir: "auto",
|
|
798
798
|
keypath: "catalogue.search.howToEssay"
|
|
@@ -807,51 +807,51 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
807
807
|
}, Pr = { class: "mwnf-dxa-gallery-partners__links" }, Fr = { class: "mwnf-dxa-gallery-partners__logo" }, Ir = ["src", "alt"], Lr = {
|
|
808
808
|
__name: "Partners",
|
|
809
809
|
setup(t) {
|
|
810
|
-
let
|
|
811
|
-
...
|
|
812
|
-
objectsRoute:
|
|
810
|
+
let n = {
|
|
811
|
+
...rt,
|
|
812
|
+
objectsRoute: Ze,
|
|
813
813
|
orderToggle: !1,
|
|
814
814
|
tiebreak: (e) => e.own_project?.name ?? ""
|
|
815
815
|
};
|
|
816
|
-
return (t,
|
|
817
|
-
before:
|
|
816
|
+
return (t, r) => (N(), w("div", wr, [O(wt, { spec: n }, {
|
|
817
|
+
before: R(({ t, orderDir: n, toggleOrder: r }) => [T("div", Tr, [O(B), T("div", Er, [T("button", {
|
|
818
818
|
type: "button",
|
|
819
819
|
onClick: r
|
|
820
|
-
},
|
|
820
|
+
}, I(t(n === "asc" ? "partner.list.sortDescending" : "partner.list.sortAscending")), 9, Dr)])]), O(L(e), {
|
|
821
821
|
id: "mwnf-dxa-partners-intro",
|
|
822
822
|
class: "mwnf-dxa-gallery-partners__intro",
|
|
823
823
|
dir: "auto",
|
|
824
824
|
keypath: "exhibition.partners.intro"
|
|
825
825
|
})]),
|
|
826
|
-
"group-heading":
|
|
827
|
-
row:
|
|
828
|
-
|
|
826
|
+
"group-heading": R(({ group: e }) => [T("div", Or, I(e.label), 1)]),
|
|
827
|
+
row: R(({ partner: e, view: t, t: n }) => [T("div", kr, [T("div", Ar, [
|
|
828
|
+
O(V, {
|
|
829
829
|
class: "mwnf-dxa-gallery-partners__name",
|
|
830
830
|
to: t.route
|
|
831
831
|
}, {
|
|
832
|
-
default:
|
|
832
|
+
default: R(() => [T("span", { innerHTML: t.name }, null, 8, jr), t.city ? (N(), w("span", Mr, ", " + I(t.city), 1)) : C("", !0)]),
|
|
833
833
|
_: 2
|
|
834
834
|
}, 1032, ["to"]),
|
|
835
|
-
|
|
835
|
+
L(Z)(e) ? (N(), w("div", {
|
|
836
836
|
key: 0,
|
|
837
|
-
class:
|
|
838
|
-
}, [
|
|
839
|
-
|
|
840
|
-
default:
|
|
837
|
+
class: k(["mwnf-dxa-partner-badge", L(Z)(e).tone && `mwnf-dxa-partner-badge--${L(Z)(e).tone}`])
|
|
838
|
+
}, [D(I(L(Z)(e).name + " "), 1), L(Z)(e).status ? (N(), w("span", Nr, I(n(L(Z)(e).status)), 1)) : C("", !0)], 2)) : C("", !0),
|
|
839
|
+
T("div", Pr, [O(V, { to: t.route }, {
|
|
840
|
+
default: R(() => [D(I(n("partner.action.readMore")), 1)]),
|
|
841
841
|
_: 2
|
|
842
|
-
}, 1032, ["to"]), e.item_count > 0 && t.objectsRoute ? (
|
|
842
|
+
}, 1032, ["to"]), e.item_count > 0 && t.objectsRoute ? (N(), w(b, { key: 0 }, [r[0] ||= T("span", {
|
|
843
843
|
class: "mwnf-dxa-gallery-partners__divider",
|
|
844
844
|
"aria-hidden": "true"
|
|
845
|
-
}, "|", -1),
|
|
846
|
-
default:
|
|
845
|
+
}, "|", -1), O(V, { to: t.objectsRoute }, {
|
|
846
|
+
default: R(() => [D(I(n(L(xt)(e))), 1)]),
|
|
847
847
|
_: 2
|
|
848
|
-
}, 1032, ["to"])], 64)) :
|
|
849
|
-
]),
|
|
848
|
+
}, 1032, ["to"])], 64)) : C("", !0)])
|
|
849
|
+
]), T("div", Fr, [t.logos?.[0] ? (N(), w("img", {
|
|
850
850
|
key: 0,
|
|
851
851
|
src: t.logos[0].url,
|
|
852
852
|
alt: t.plainName,
|
|
853
853
|
loading: "lazy"
|
|
854
|
-
}, null, 8, Ir)) :
|
|
854
|
+
}, null, 8, Ir)) : C("", !0)])])]),
|
|
855
855
|
_: 1
|
|
856
856
|
})]));
|
|
857
857
|
}
|
|
@@ -874,130 +874,130 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
874
874
|
}, oi = {
|
|
875
875
|
__name: "SearchResults",
|
|
876
876
|
setup(t) {
|
|
877
|
-
let { t: n } =
|
|
877
|
+
let { t: n } = p(), r = Y(), i = Et(), a = m("items", {
|
|
878
878
|
grammar: "boolean",
|
|
879
|
-
haystack:
|
|
880
|
-
}), o =
|
|
881
|
-
|
|
879
|
+
haystack: gt
|
|
880
|
+
}), o = P(!1);
|
|
881
|
+
St().then(() => {
|
|
882
882
|
o.value = !0;
|
|
883
883
|
});
|
|
884
|
-
let s = (e) => !e || e === "all-items" || e === "all-objects",
|
|
884
|
+
let s = (e) => !e || e === "all-items" || e === "all-objects", l = (e) => e && e.length > 80 ? `${e.slice(0, 80)}...` : e ?? "", u = x(() => ({
|
|
885
885
|
entity: "items",
|
|
886
886
|
keys: ["q"],
|
|
887
|
-
scope: (e) =>
|
|
887
|
+
scope: (e) => G.value.has(e.id),
|
|
888
888
|
narrow: (e, t) => {
|
|
889
889
|
if (!o.value) return [];
|
|
890
890
|
if (s(t.q)) return e;
|
|
891
891
|
let n = new Set(e.map((e) => e.id));
|
|
892
892
|
return a.search(t.q).filter((e) => n.has(e.id));
|
|
893
893
|
},
|
|
894
|
-
...
|
|
895
|
-
sort: s(r.query.q) ?
|
|
894
|
+
...Ct,
|
|
895
|
+
sort: s(r.query.q) ? Ct.sort : !1,
|
|
896
896
|
summary: () => [],
|
|
897
897
|
record: (e) => {
|
|
898
|
-
let t =
|
|
898
|
+
let t = Qe("items", e.id, vt);
|
|
899
899
|
return {
|
|
900
900
|
id: e.id,
|
|
901
901
|
image: e.images?.[0]?.url ?? "",
|
|
902
|
-
imageAlt:
|
|
903
|
-
name:
|
|
904
|
-
date:
|
|
905
|
-
partner:
|
|
906
|
-
place: [t.location,
|
|
902
|
+
imageAlt: K("items", e.id),
|
|
903
|
+
name: c(t.name ?? e.internal_name ?? ""),
|
|
904
|
+
date: l(t.dates),
|
|
905
|
+
partner: K("partners", e.partner_id),
|
|
906
|
+
place: [t.location, K("countries", e.country_id)].filter(Boolean).join(", "),
|
|
907
907
|
start: e.start_date ?? 0,
|
|
908
|
-
to:
|
|
908
|
+
to: lt(e)
|
|
909
909
|
};
|
|
910
910
|
}
|
|
911
|
-
})),
|
|
912
|
-
|
|
913
|
-
|
|
911
|
+
})), d = (e) => [...e].sort((e, t) => e.start - t.start), f = P("");
|
|
912
|
+
se(() => r.query.q, (e) => {
|
|
913
|
+
f.value = s(e) ? "" : String(e ?? "");
|
|
914
914
|
}, { immediate: !0 });
|
|
915
|
-
function
|
|
915
|
+
function h() {
|
|
916
916
|
i.push({
|
|
917
917
|
name: "search-results",
|
|
918
|
-
query: { q:
|
|
918
|
+
query: { q: f.value || "all-items" }
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function g() {
|
|
922
922
|
i.push({
|
|
923
923
|
name: "search-results",
|
|
924
924
|
query: { q: "all-items" }
|
|
925
925
|
});
|
|
926
926
|
}
|
|
927
|
-
let
|
|
928
|
-
|
|
929
|
-
|
|
927
|
+
let _ = P(null), v = typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(max-width: 974px)") : null, y = P(!!v?.matches);
|
|
928
|
+
v?.addEventListener("change", (e) => {
|
|
929
|
+
y.value = e.matches;
|
|
930
930
|
});
|
|
931
|
-
function
|
|
932
|
-
return e.find((e) => e.id ===
|
|
931
|
+
function E(e) {
|
|
932
|
+
return e.find((e) => e.id === _.value) ?? e[0];
|
|
933
933
|
}
|
|
934
|
-
return
|
|
935
|
-
|
|
936
|
-
}), (t, r) => (
|
|
937
|
-
spec:
|
|
934
|
+
return se(() => r.fullPath, () => {
|
|
935
|
+
_.value = null;
|
|
936
|
+
}), (t, r) => (N(), w("div", Rr, [O(q, {
|
|
937
|
+
spec: u.value,
|
|
938
938
|
class: "mwnf-dxa-exhibition-search__view"
|
|
939
939
|
}, {
|
|
940
|
-
before:
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
940
|
+
before: R(({ pageInfo: e, goToPage: t }) => [
|
|
941
|
+
O(B),
|
|
942
|
+
T("div", zr, [T("div", Br, [e.total ? (N(), w("p", Vr, I(L(n)("exhibition.search.heading")) + " | " + I(e.total) + " " + I(L(n)("exhibition.search.recordsOutOf")) + " " + I(L(G).size) + " " + I(L(n)("exhibition.collection.items")), 1)) : (N(), w("p", Hr, [D(I(L(n)("exhibition.search.heading")) + " | ", 1), T("span", null, I(L(n)("exhibition.search.none")), 1)]))]), T("div", Ur, [T("form", { onSubmit: r[2] ||= le((e) => h(), ["prevent"]) }, [z(T("input", {
|
|
943
|
+
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
944
944
|
class: "mwnf-dxa-exhibition-search__input",
|
|
945
945
|
type: "search",
|
|
946
|
-
placeholder:
|
|
947
|
-
"aria-label":
|
|
948
|
-
}, null, 8, Wr), [[
|
|
946
|
+
placeholder: L(n)("exhibition.search.placeholder"),
|
|
947
|
+
"aria-label": L(n)("exhibition.search.placeholder")
|
|
948
|
+
}, null, 8, Wr), [[ae, f.value]]), T("div", Gr, [T("button", Kr, I(L(n)("exhibition.search.submit")), 1), T("button", {
|
|
949
949
|
type: "button",
|
|
950
950
|
class: "mwnf-dxa-exhibition-search__button",
|
|
951
|
-
onClick: r[1] ||= (e) =>
|
|
952
|
-
},
|
|
953
|
-
default:
|
|
951
|
+
onClick: r[1] ||= (e) => g()
|
|
952
|
+
}, I(L(n)("exhibition.search.reset")), 1)])], 32), T("div", qr, [O(L(J), { to: { name: "search-how-to" } }, {
|
|
953
|
+
default: R(() => [D(I(L(n)("exhibition.search.tips")), 1)]),
|
|
954
954
|
_: 1
|
|
955
955
|
})])])]),
|
|
956
|
-
|
|
956
|
+
O(Q, {
|
|
957
957
|
class: "mwnf-dxa-exhibition-pages--top",
|
|
958
|
-
"page-info":
|
|
959
|
-
onNavigate:
|
|
958
|
+
"page-info": e,
|
|
959
|
+
onNavigate: t
|
|
960
960
|
}, null, 8, ["page-info", "onNavigate"])
|
|
961
961
|
]),
|
|
962
|
-
records:
|
|
963
|
-
src:
|
|
964
|
-
alt:
|
|
965
|
-
}, null, 8, Zr)]),
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
])])),
|
|
962
|
+
records: R(({ rows: t }) => [t.length ? (N(), w("div", Jr, [y.value ? C("", !0) : (N(), w("div", Yr, [T("div", Xr, [T("img", {
|
|
963
|
+
src: E(d(t)).image,
|
|
964
|
+
alt: E(d(t)).imageAlt
|
|
965
|
+
}, null, 8, Zr)]), T("div", Qr, [
|
|
966
|
+
T("p", null, [T("strong", { innerHTML: E(d(t)).name }, null, 8, $r)]),
|
|
967
|
+
T("p", null, I(E(d(t)).date), 1),
|
|
968
|
+
T("p", ei, [T("strong", null, I(E(d(t)).partner), 1)]),
|
|
969
|
+
T("p", null, I(E(d(t)).place), 1)
|
|
970
|
+
])])), T("div", ti, [(N(!0), w(b, null, F(d(t), (e) => (N(), w("div", {
|
|
971
971
|
key: e.id,
|
|
972
972
|
class: "mwnf-dxa-exhibition-search__result"
|
|
973
|
-
}, [
|
|
973
|
+
}, [O(L(J), {
|
|
974
974
|
to: e.to,
|
|
975
975
|
class: "mwnf-dxa-exhibition-search__result-image"
|
|
976
976
|
}, {
|
|
977
|
-
default:
|
|
977
|
+
default: R(() => [T("img", {
|
|
978
978
|
src: e.image,
|
|
979
979
|
alt: e.imageAlt,
|
|
980
980
|
loading: "lazy",
|
|
981
|
-
onMouseover: (t) =>
|
|
981
|
+
onMouseover: (t) => _.value = e.id
|
|
982
982
|
}, null, 40, ni)]),
|
|
983
983
|
_: 2
|
|
984
|
-
}, 1032, ["to"]),
|
|
985
|
-
default:
|
|
984
|
+
}, 1032, ["to"]), T("div", ri, [O(L(J), { to: e.to }, {
|
|
985
|
+
default: R(() => [T("strong", {
|
|
986
986
|
innerHTML: e.name,
|
|
987
|
-
onMouseover: (t) =>
|
|
988
|
-
}, null, 40, ii),
|
|
987
|
+
onMouseover: (t) => _.value = e.id
|
|
988
|
+
}, null, 40, ii), T("span", null, ", " + I(e.place), 1)]),
|
|
989
989
|
_: 2
|
|
990
|
-
}, 1032, ["to"]),
|
|
990
|
+
}, 1032, ["to"]), T("p", null, [T("em", null, I(e.date), 1)])])]))), 128))])])) : (N(), S(L(e), {
|
|
991
991
|
key: 1,
|
|
992
992
|
class: "mwnf-dxa-exhibition-search__none",
|
|
993
993
|
keypath: "exhibition.search.noResults"
|
|
994
994
|
}))]),
|
|
995
|
-
pagination:
|
|
996
|
-
after:
|
|
995
|
+
pagination: R(() => [...r[3] ||= []]),
|
|
996
|
+
after: R(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (N(), S(Q, {
|
|
997
997
|
key: 0,
|
|
998
998
|
"page-info": e,
|
|
999
999
|
onNavigate: t
|
|
1000
|
-
}, null, 8, ["page-info", "onNavigate"])) : (
|
|
1000
|
+
}, null, 8, ["page-info", "onNavigate"])) : (N(), w("div", ai))]),
|
|
1001
1001
|
_: 1
|
|
1002
1002
|
}, 8, ["spec"])]));
|
|
1003
1003
|
}
|
|
@@ -1024,100 +1024,100 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
1024
1024
|
class: "mwnf-dxa-exhibition-timeline-results__end"
|
|
1025
1025
|
}, Pi = {
|
|
1026
1026
|
__name: "TimelineResults",
|
|
1027
|
-
setup(
|
|
1028
|
-
let
|
|
1027
|
+
setup(e) {
|
|
1028
|
+
let t = {
|
|
1029
1029
|
"catalogue.era.ad": "exhibition.era.ad",
|
|
1030
1030
|
"catalogue.era.bc": "exhibition.era.bc"
|
|
1031
|
-
},
|
|
1032
|
-
...
|
|
1031
|
+
}, n = ({ years: e, t: n }) => y(e.min, e.max, _(n, t)), r = x(() => ({
|
|
1032
|
+
...W.value,
|
|
1033
1033
|
pageSize: 20,
|
|
1034
|
-
controls:
|
|
1034
|
+
controls: W.value.controls.map((e) => e.options ? {
|
|
1035
1035
|
...e,
|
|
1036
|
-
options:
|
|
1036
|
+
options: n
|
|
1037
1037
|
} : e)
|
|
1038
|
-
})),
|
|
1038
|
+
})), i = x(() => W.value.scope === "country"), a = Y(), o = ee({
|
|
1039
1039
|
country: "",
|
|
1040
1040
|
begin: "",
|
|
1041
1041
|
end: ""
|
|
1042
1042
|
});
|
|
1043
|
-
|
|
1044
|
-
|
|
1043
|
+
se(() => a.query, (e) => {
|
|
1044
|
+
o.country = String(e.country ?? ""), o.begin = String(e.begin ?? ""), o.end = String(e.end ?? "");
|
|
1045
1045
|
}, { immediate: !0 });
|
|
1046
|
-
let
|
|
1047
|
-
function
|
|
1046
|
+
let s = (e, t) => (e ?? []).find((e) => String(e.value) === String(t))?.label ?? t;
|
|
1047
|
+
function c(e, t) {
|
|
1048
1048
|
let n = e?.year_from;
|
|
1049
1049
|
return Number.isFinite(n) ? `${n} ${t(n < 0 ? "exhibition.era.bc" : "exhibition.era.ad")}` : "";
|
|
1050
1050
|
}
|
|
1051
|
-
return (
|
|
1052
|
-
spec:
|
|
1051
|
+
return (e, t) => (N(), w("div", si, [O(Tt, {
|
|
1052
|
+
spec: r.value,
|
|
1053
1053
|
class: "mwnf-dxa-timeline-results"
|
|
1054
1054
|
}, {
|
|
1055
|
-
form:
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
]),
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
"onUpdate:modelValue":
|
|
1055
|
+
form: R((e) => [T("div", ci, [T("p", li, [
|
|
1056
|
+
D(I(e.t("exhibition.timeline.heading")) + " | " + I(s(e.options.begin, e.filters.begin)) + " " + I(e.t("exhibition.timeline.to")) + " " + I(s(e.options.end, e.filters.end)) + " | ", 1),
|
|
1057
|
+
i.value && e.filters.country ? (N(), w("span", ui, I(s(e.countries, e.filters.country)) + " | ", 1)) : C("", !0),
|
|
1058
|
+
T("span", null, I(e.pageInfo?.total ?? 0) + " " + I(e.t("exhibition.timeline.results")), 1)
|
|
1059
|
+
]), T("div", di, [
|
|
1060
|
+
T("span", null, I(e.t("exhibition.collection.startDate")), 1),
|
|
1061
|
+
z(T("select", {
|
|
1062
|
+
"onUpdate:modelValue": t[0] ||= (e) => o.begin = e,
|
|
1063
1063
|
"aria-label": e.t("exhibition.collection.startDate")
|
|
1064
|
-
}, [
|
|
1064
|
+
}, [T("option", pi, I(e.t("exhibition.collection.startDate")), 1), (N(!0), w(b, null, F(e.options.begin ?? [], (e) => (N(), w("option", {
|
|
1065
1065
|
key: e.value,
|
|
1066
1066
|
value: String(e.value)
|
|
1067
|
-
},
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
"onUpdate:modelValue":
|
|
1067
|
+
}, I(e.label), 9, mi))), 128))], 8, fi), [[ie, o.begin]]),
|
|
1068
|
+
T("span", null, I(e.t("exhibition.collection.endDate")), 1),
|
|
1069
|
+
z(T("select", {
|
|
1070
|
+
"onUpdate:modelValue": t[1] ||= (e) => o.end = e,
|
|
1071
1071
|
"aria-label": e.t("exhibition.collection.endDate")
|
|
1072
|
-
}, [
|
|
1072
|
+
}, [T("option", gi, I(e.t("exhibition.collection.endDate")), 1), (N(!0), w(b, null, F(e.options.end ?? [], (e) => (N(), w("option", {
|
|
1073
1073
|
key: e.value,
|
|
1074
1074
|
value: String(e.value)
|
|
1075
|
-
},
|
|
1076
|
-
|
|
1077
|
-
"onUpdate:modelValue":
|
|
1075
|
+
}, I(e.label), 9, _i))), 128))], 8, hi), [[ie, o.end]]),
|
|
1076
|
+
i.value ? (N(), w(b, { key: 0 }, [T("span", null, I(e.t("exhibition.timeline.country")), 1), z(T("select", {
|
|
1077
|
+
"onUpdate:modelValue": t[2] ||= (e) => o.country = e,
|
|
1078
1078
|
"aria-label": e.t("exhibition.timeline.selectCountry")
|
|
1079
|
-
}, [
|
|
1079
|
+
}, [T("option", yi, I(e.t("exhibition.timeline.selectCountry")), 1), (N(!0), w(b, null, F(e.countries, (e) => (N(), w("option", {
|
|
1080
1080
|
key: e.value,
|
|
1081
1081
|
value: e.value
|
|
1082
|
-
},
|
|
1083
|
-
|
|
1082
|
+
}, I(e.label), 9, bi))), 128))], 8, vi), [[ie, o.country]])], 64)) : C("", !0),
|
|
1083
|
+
T("button", {
|
|
1084
1084
|
type: "button",
|
|
1085
|
-
onClick: (t) => e.apply({ ...
|
|
1086
|
-
},
|
|
1087
|
-
|
|
1085
|
+
onClick: (t) => e.apply({ ...o })
|
|
1086
|
+
}, I(e.t("core.action.go")), 9, xi),
|
|
1087
|
+
T("button", {
|
|
1088
1088
|
type: "button",
|
|
1089
1089
|
onClick: (t) => e.reset()
|
|
1090
|
-
},
|
|
1090
|
+
}, I(e.t("exhibition.search.reset")), 9, Si)
|
|
1091
1091
|
])])]),
|
|
1092
|
-
summary:
|
|
1092
|
+
summary: R(({ pageInfo: e, goToPage: t }) => [O(B), O(Q, {
|
|
1093
1093
|
class: "mwnf-dxa-exhibition-timeline-results__pages",
|
|
1094
|
-
"page-info":
|
|
1095
|
-
onNavigate:
|
|
1094
|
+
"page-info": e,
|
|
1095
|
+
onNavigate: t
|
|
1096
1096
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
1097
|
-
gallery:
|
|
1098
|
-
event:
|
|
1097
|
+
gallery: R(() => [...t[3] ||= []]),
|
|
1098
|
+
event: R(({ pageInfo: e, rows: n, gallery: r, t: a }) => [T("div", Ci, [n.length ? (N(), w("div", wi, [T("div", Ti, [T("div", null, I(a("exhibition.timeline.date")), 1), T("div", null, I(a(i.value && o.country ? "exhibition.timeline.countryDescription" : "exhibition.timeline.description")), 1)]), (N(!0), w(b, null, F(n, (t, n) => (N(), w("div", {
|
|
1099
1099
|
key: t.id,
|
|
1100
1100
|
class: "mwnf-dxa-exhibition-timeline-results__event"
|
|
1101
|
-
}, [
|
|
1101
|
+
}, [T("div", Ei, [T("span", null, I(c(e.rows[n], a)), 1)]), T("div", Di, [i.value && o.country && t.caption ? (N(), w("div", {
|
|
1102
1102
|
key: 0,
|
|
1103
1103
|
class: "mwnf-dxa-exhibition-timeline-results__country",
|
|
1104
1104
|
innerHTML: t.caption
|
|
1105
|
-
}, null, 8, Oi)) :
|
|
1105
|
+
}, null, 8, Oi)) : C("", !0), T("div", {
|
|
1106
1106
|
class: "mwnf-dxa-exhibition-timeline-results__description",
|
|
1107
1107
|
innerHTML: t.description
|
|
1108
|
-
}, null, 8, ki)])]))), 128))])) : (
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
default:
|
|
1108
|
+
}, null, 8, ki)])]))), 128))])) : (N(), w("div", Ai, I(a("exhibition.timeline.noResults")), 1)), n.length && r ? (N(), w("div", ji, [T("p", Mi, I(a("exhibition.timeline.relatedContent")), 1), T("p", null, [
|
|
1109
|
+
t[4] ||= T("span", { "aria-hidden": "true" }, "➦", -1),
|
|
1110
|
+
t[5] ||= D(),
|
|
1111
|
+
O(L(J), { to: r.to }, {
|
|
1112
|
+
default: R(() => [D(I(a("exhibition.timeline.seeGallery")), 1)]),
|
|
1113
1113
|
_: 2
|
|
1114
1114
|
}, 1032, ["to"])
|
|
1115
|
-
])])) :
|
|
1116
|
-
pagination:
|
|
1115
|
+
])])) : C("", !0)])]),
|
|
1116
|
+
pagination: R(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (N(), S(Q, {
|
|
1117
1117
|
key: 0,
|
|
1118
1118
|
"page-info": e,
|
|
1119
1119
|
onNavigate: t
|
|
1120
|
-
}, null, 8, ["page-info", "onNavigate"])) : (
|
|
1120
|
+
}, null, 8, ["page-info", "onNavigate"])) : (N(), w("div", Ni))]),
|
|
1121
1121
|
_: 1
|
|
1122
1122
|
}, 8, ["spec"])]));
|
|
1123
1123
|
}
|
|
@@ -1126,70 +1126,70 @@ var tn = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, nn = { class:
|
|
|
1126
1126
|
class: "mwnf-dxa-exhibition-partner-objects__end"
|
|
1127
1127
|
}, Vi = {
|
|
1128
1128
|
__name: "TimelineGallery",
|
|
1129
|
-
setup(
|
|
1130
|
-
let { t
|
|
1129
|
+
setup(e) {
|
|
1130
|
+
let { t } = p(), n = {
|
|
1131
1131
|
"catalogue.era.ad": "exhibition.era.ad",
|
|
1132
1132
|
"catalogue.era.bc": "exhibition.era.bc"
|
|
1133
|
-
},
|
|
1134
|
-
...
|
|
1135
|
-
...
|
|
1133
|
+
}, r = x(() => ({
|
|
1134
|
+
...Je,
|
|
1135
|
+
...Ct,
|
|
1136
1136
|
summary: () => [],
|
|
1137
|
-
record:
|
|
1137
|
+
record: ot
|
|
1138
1138
|
}));
|
|
1139
|
-
function
|
|
1140
|
-
let
|
|
1141
|
-
if (e === "" || e == null || !Number.isFinite(
|
|
1142
|
-
let i =
|
|
1143
|
-
return i.find((e) => Number(e.value) ===
|
|
1139
|
+
function i(e) {
|
|
1140
|
+
let r = Number(e);
|
|
1141
|
+
if (e === "" || e == null || !Number.isFinite(r)) return "";
|
|
1142
|
+
let i = y(r, r, _(t, n));
|
|
1143
|
+
return i.find((e) => Number(e.value) === r)?.label ?? i[0]?.label ?? String(e);
|
|
1144
1144
|
}
|
|
1145
|
-
let
|
|
1146
|
-
return (
|
|
1147
|
-
spec:
|
|
1145
|
+
let a = x(() => W.value.scope === "country");
|
|
1146
|
+
return (e, n) => (N(), w("div", Fi, [O(q, {
|
|
1147
|
+
spec: r.value,
|
|
1148
1148
|
class: "mwnf-dxa-partner-objects"
|
|
1149
1149
|
}, {
|
|
1150
|
-
before:
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1150
|
+
before: R(({ filters: e, pageInfo: n, goToPage: r }) => [
|
|
1151
|
+
O(B),
|
|
1152
|
+
T("div", Ii, [T("p", null, [
|
|
1153
|
+
D(I(L(t)("exhibition.timeline.heading")) + " | " + I(i(e.begin)) + " " + I(L(t)("exhibition.timeline.to")) + " " + I(i(e.end)) + " | ", 1),
|
|
1154
|
+
a.value && e.country ? (N(), w(b, { key: 0 }, [D(I(L(ht)(e.country)) + " | ", 1)], 64)) : C("", !0),
|
|
1155
|
+
D(I(L(t)("exhibition.timeline.gallery")), 1)
|
|
1156
1156
|
])]),
|
|
1157
|
-
|
|
1157
|
+
O(Q, {
|
|
1158
1158
|
class: "mwnf-dxa-exhibition-pages--top",
|
|
1159
|
-
"page-info":
|
|
1160
|
-
onNavigate:
|
|
1159
|
+
"page-info": n,
|
|
1160
|
+
onNavigate: r
|
|
1161
1161
|
}, null, 8, ["page-info", "onNavigate"])
|
|
1162
1162
|
]),
|
|
1163
|
-
records:
|
|
1163
|
+
records: R(({ rows: e, filters: r }) => [T("div", Li, [T("div", Ri, [e.length ? (N(), S($, {
|
|
1164
1164
|
key: 0,
|
|
1165
1165
|
rows: e,
|
|
1166
1166
|
family: "exhibition"
|
|
1167
|
-
}, null, 8, ["rows"])) :
|
|
1167
|
+
}, null, 8, ["rows"])) : C("", !0)]), T("div", zi, [O(L(J), { to: {
|
|
1168
1168
|
name: "timeline-results",
|
|
1169
1169
|
query: {
|
|
1170
|
-
...
|
|
1171
|
-
begin:
|
|
1172
|
-
end:
|
|
1170
|
+
...r.country ? { country: r.country } : {},
|
|
1171
|
+
begin: r.begin,
|
|
1172
|
+
end: r.end
|
|
1173
1173
|
}
|
|
1174
1174
|
} }, {
|
|
1175
|
-
default:
|
|
1175
|
+
default: R(() => [n[0] ||= T("span", { "aria-hidden": "true" }, "➦", -1), D(" " + I(L(t)("exhibition.timeline.seeTimeline")), 1)]),
|
|
1176
1176
|
_: 1
|
|
1177
1177
|
}, 8, ["to"])])])]),
|
|
1178
|
-
pagination:
|
|
1179
|
-
after:
|
|
1178
|
+
pagination: R(() => [...n[1] ||= []]),
|
|
1179
|
+
after: R(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (N(), S(Q, {
|
|
1180
1180
|
key: 0,
|
|
1181
1181
|
"page-info": e,
|
|
1182
1182
|
onNavigate: t
|
|
1183
|
-
}, null, 8, ["page-info", "onNavigate"])) : (
|
|
1183
|
+
}, null, 8, ["page-info", "onNavigate"])) : (N(), w("div", Bi))]),
|
|
1184
1184
|
_: 1
|
|
1185
1185
|
}, 8, ["spec"])]));
|
|
1186
1186
|
}
|
|
1187
|
-
}, { aboutTheme: Hi, listedThemes: Ui, pictureById: Wi, pictureParent: Gi, romanFor: Ki, themeText: qi, themeTree: Ji } =
|
|
1187
|
+
}, { aboutTheme: Hi, listedThemes: Ui, pictureById: Wi, pictureParent: Gi, romanFor: Ki, themeText: qi, themeTree: Ji } = ft;
|
|
1188
1188
|
function Yi(e) {
|
|
1189
1189
|
return e ? String(e.backward_compatibility ?? "").split(":").pop() || String(e.id ?? "") : "";
|
|
1190
1190
|
}
|
|
1191
1191
|
function Xi(e) {
|
|
1192
|
-
let t = (t) => qi(t, e.value).title ?? t?.internal_name ?? "", n =
|
|
1192
|
+
let t = (t) => qi(t, e.value).title ?? t?.internal_name ?? "", n = x(() => [...Hi.value ? [{
|
|
1193
1193
|
value: Yi(Hi.value),
|
|
1194
1194
|
label: t(Hi.value),
|
|
1195
1195
|
node: Hi.value
|
|
@@ -1259,167 +1259,167 @@ var Zi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Qi =
|
|
|
1259
1259
|
}, ba = { value: "all" }, xa = ["value"], Sa = { class: "mwnf-dxa-date-wrapper" }, Ca = {
|
|
1260
1260
|
__name: "CollectionResults",
|
|
1261
1261
|
setup(t) {
|
|
1262
|
-
let { t: n, locale: r } =
|
|
1262
|
+
let { t: n, locale: r } = p(), { themeOptions: i, subThemeOptions: a, scopeFor: o } = Xi(r), s = {
|
|
1263
1263
|
viewBox: "0 0 512 512",
|
|
1264
1264
|
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"
|
|
1265
|
-
},
|
|
1265
|
+
}, c = {
|
|
1266
1266
|
viewBox: "0 0 384 512",
|
|
1267
1267
|
path: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"
|
|
1268
|
-
},
|
|
1269
|
-
|
|
1268
|
+
}, l = typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(max-width: 499px)") : null, u = P(!!l?.matches), d = (e) => {
|
|
1269
|
+
u.value = e.matches;
|
|
1270
1270
|
};
|
|
1271
|
-
|
|
1272
|
-
let
|
|
1273
|
-
|
|
1274
|
-
|
|
1271
|
+
l?.addEventListener("change", d), j(() => l?.removeEventListener("change", d));
|
|
1272
|
+
let f = P(!1), m = Y();
|
|
1273
|
+
se(() => m.fullPath, () => {
|
|
1274
|
+
f.value = !1;
|
|
1275
1275
|
});
|
|
1276
|
-
let
|
|
1276
|
+
let h = {
|
|
1277
1277
|
type: "exhibition.collection.typeOfObject",
|
|
1278
1278
|
material: "exhibition.collection.material"
|
|
1279
|
-
},
|
|
1279
|
+
}, g = ["type", "material"], _ = {
|
|
1280
1280
|
"catalogue.era.ad": "exhibition.era.ad",
|
|
1281
1281
|
"catalogue.era.bc": "exhibition.era.bc"
|
|
1282
|
-
}, y = (e) => n(
|
|
1283
|
-
...
|
|
1284
|
-
...
|
|
1282
|
+
}, y = (e) => n(_[e] ?? e), E = x(() => v(it.value ?? [], y)), k = x(() => G.value.size), A = {
|
|
1283
|
+
...dt,
|
|
1284
|
+
...Ct,
|
|
1285
1285
|
keys: [
|
|
1286
|
-
...
|
|
1286
|
+
...dt.keys,
|
|
1287
1287
|
"theme",
|
|
1288
1288
|
"subtheme"
|
|
1289
1289
|
],
|
|
1290
1290
|
match: (e, t) => {
|
|
1291
|
-
let n =
|
|
1291
|
+
let n = o(t.theme, t.subtheme);
|
|
1292
1292
|
return !n || n.has(e.id);
|
|
1293
1293
|
},
|
|
1294
1294
|
summary: () => [],
|
|
1295
|
-
record:
|
|
1296
|
-
},
|
|
1297
|
-
function
|
|
1298
|
-
let t =
|
|
1295
|
+
record: ot
|
|
1296
|
+
}, M = (e) => A.keys.every((t) => !e[t]);
|
|
1297
|
+
function ee(e) {
|
|
1298
|
+
let t = i.value.find((t) => t.value === String(e.theme))?.label ?? e.theme, n = e.subtheme ? a(e.theme).find((t) => t.value === String(e.subtheme))?.label : "";
|
|
1299
1299
|
return n ? `${t} ▪ ${n}` : t;
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1302
|
-
let i = (n) => (t[n] ?? []).find((t) => String(t.value) === String(e[n]))?.label ?? e[n], a = (e) =>
|
|
1303
|
-
e.theme && o.push(
|
|
1304
|
-
for (let t of
|
|
1301
|
+
function te(e, t, r) {
|
|
1302
|
+
let i = (n) => (t[n] ?? []).find((t) => String(t.value) === String(e[n]))?.label ?? e[n], a = (e) => E.value.find((t) => String(t.value) === String(e))?.label ?? e, o = [];
|
|
1303
|
+
e.theme && o.push(ee(e)), e.country && o.push(i("country"));
|
|
1304
|
+
for (let t of g) e[t] && o.push(i(t));
|
|
1305
1305
|
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");
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function ne(e, t, n) {
|
|
1308
1308
|
if (n === "all") return t();
|
|
1309
1309
|
e({
|
|
1310
|
-
...Object.fromEntries(
|
|
1310
|
+
...Object.fromEntries(A.keys.map((e) => [e, ""])),
|
|
1311
1311
|
theme: n
|
|
1312
1312
|
});
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function re(e, t, n) {
|
|
1315
1315
|
e({
|
|
1316
|
-
...Object.fromEntries(
|
|
1316
|
+
...Object.fromEntries(A.keys.map((e) => [e, ""])),
|
|
1317
1317
|
theme: t.theme,
|
|
1318
1318
|
subtheme: n
|
|
1319
1319
|
});
|
|
1320
1320
|
}
|
|
1321
|
-
return (t, r) => (
|
|
1322
|
-
spec:
|
|
1321
|
+
return (t, r) => (N(), w("div", Zi, [O(q, {
|
|
1322
|
+
spec: A,
|
|
1323
1323
|
class: "mwnf-dxa-collection-results"
|
|
1324
1324
|
}, {
|
|
1325
|
-
before:
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1325
|
+
before: R(({ filters: e, options: r, matching: i, pageInfo: a }) => [
|
|
1326
|
+
O(B),
|
|
1327
|
+
T("div", Qi, [T("p", null, [D(I(L(n)("exhibition.collection.heading")) + " | ", 1), T("span", $i, I(te(e, r, i)), 1)]), T("p", null, I(a.total) + " " + I(L(n)("exhibition.collection.resultsOutOf")) + " " + I(k.value) + " " + I(L(n)("exhibition.collection.items")), 1)]),
|
|
1328
|
+
O(Q, {
|
|
1329
1329
|
class: "mwnf-dxa-exhibition-pages--top",
|
|
1330
|
-
"page-info":
|
|
1330
|
+
"page-info": a,
|
|
1331
1331
|
onNavigate: t.goToPage
|
|
1332
1332
|
}, null, 8, ["page-info", "onNavigate"])
|
|
1333
1333
|
]),
|
|
1334
|
-
records:
|
|
1334
|
+
records: R(({ rows: t }) => [t.length ? (N(), S($, {
|
|
1335
1335
|
key: 0,
|
|
1336
|
-
rows:
|
|
1336
|
+
rows: t,
|
|
1337
1337
|
family: "exhibition"
|
|
1338
|
-
}, null, 8, ["rows"])) : (
|
|
1338
|
+
}, null, 8, ["rows"])) : (N(), S(L(e), {
|
|
1339
1339
|
key: 1,
|
|
1340
1340
|
class: "mwnf-dxa-gallery-results__none",
|
|
1341
1341
|
keypath: "exhibition.collection.noResults"
|
|
1342
1342
|
}))]),
|
|
1343
|
-
pagination:
|
|
1344
|
-
after:
|
|
1343
|
+
pagination: R(() => [...r[2] ||= []]),
|
|
1344
|
+
after: R(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (N(), S(Q, {
|
|
1345
1345
|
key: 0,
|
|
1346
1346
|
"page-info": e,
|
|
1347
1347
|
onNavigate: t
|
|
1348
|
-
}, null, 8, ["page-info", "onNavigate"])) : (
|
|
1349
|
-
aside:
|
|
1348
|
+
}, null, 8, ["page-info", "onNavigate"])) : (N(), w("div", ea))]),
|
|
1349
|
+
aside: R(({ filters: e, apply: t, reset: o, matching: l, options: d }) => [u.value ? (N(), w("button", {
|
|
1350
1350
|
key: 0,
|
|
1351
1351
|
type: "button",
|
|
1352
1352
|
class: "mwnf-dxa-exhibition-results__open",
|
|
1353
|
-
"aria-label":
|
|
1354
|
-
"aria-expanded":
|
|
1355
|
-
onClick: r[0] ||= (e) =>
|
|
1356
|
-
}, [(
|
|
1357
|
-
viewBox:
|
|
1353
|
+
"aria-label": L(n)("exhibition.collection.filterBy"),
|
|
1354
|
+
"aria-expanded": f.value,
|
|
1355
|
+
onClick: r[0] ||= (e) => f.value = !0
|
|
1356
|
+
}, [(N(), w("svg", {
|
|
1357
|
+
viewBox: s.viewBox,
|
|
1358
1358
|
"aria-hidden": "true",
|
|
1359
1359
|
focusable: "false"
|
|
1360
|
-
}, [
|
|
1361
|
-
|
|
1360
|
+
}, [T("path", { d: s.path }, null, 8, ra)], 8, na))], 8, ta)) : C("", !0), z(T("div", ia, [
|
|
1361
|
+
u.value && f.value ? (N(), w("button", {
|
|
1362
1362
|
key: 0,
|
|
1363
1363
|
type: "button",
|
|
1364
1364
|
class: "mwnf-dxa-exhibition-results__close",
|
|
1365
|
-
"aria-label":
|
|
1366
|
-
onClick: r[1] ||= (e) =>
|
|
1367
|
-
}, [(
|
|
1368
|
-
viewBox:
|
|
1365
|
+
"aria-label": L(n)("core.action.close"),
|
|
1366
|
+
onClick: r[1] ||= (e) => f.value = !1
|
|
1367
|
+
}, [(N(), w("svg", {
|
|
1368
|
+
viewBox: c.viewBox,
|
|
1369
1369
|
"aria-hidden": "true",
|
|
1370
1370
|
focusable: "false"
|
|
1371
|
-
}, [
|
|
1372
|
-
|
|
1371
|
+
}, [T("path", { d: c.path }, null, 8, sa)], 8, oa))], 8, aa)) : C("", !0),
|
|
1372
|
+
M(e) ? C("", !0) : (N(), w("div", ca, [T("div", la, I(L(n)("exhibition.collection.filterByTheme")), 1), T("div", ua, [T("select", {
|
|
1373
1373
|
class: "mwnf-facet__select",
|
|
1374
|
-
"aria-label":
|
|
1374
|
+
"aria-label": L(n)("exhibition.collection.selectTheme"),
|
|
1375
1375
|
value: e.theme || "",
|
|
1376
|
-
disabled: !
|
|
1377
|
-
onChange: (e) =>
|
|
1376
|
+
disabled: !l.length,
|
|
1377
|
+
onChange: (e) => ne(t, o, e.target.value)
|
|
1378
1378
|
}, [
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
(
|
|
1379
|
+
T("option", fa, I(L(n)("exhibition.collection.selectTheme")), 1),
|
|
1380
|
+
T("option", pa, I(L(n)("exhibition.collection.allThemes")), 1),
|
|
1381
|
+
(N(!0), w(b, null, F(L(i), (e) => (N(), w("option", {
|
|
1382
1382
|
key: e.value,
|
|
1383
1383
|
value: e.value
|
|
1384
|
-
},
|
|
1385
|
-
], 40, da), e.theme &&
|
|
1384
|
+
}, I(e.label), 9, ma))), 128))
|
|
1385
|
+
], 40, da), e.theme && L(a)(e.theme).length ? (N(), w("select", {
|
|
1386
1386
|
key: 0,
|
|
1387
1387
|
class: "mwnf-facet__select",
|
|
1388
|
-
"aria-label":
|
|
1388
|
+
"aria-label": L(n)("exhibition.themeGallery.select"),
|
|
1389
1389
|
value: e.subtheme || "",
|
|
1390
|
-
disabled: !
|
|
1391
|
-
onChange: (n) =>
|
|
1392
|
-
}, [
|
|
1390
|
+
disabled: !l.length,
|
|
1391
|
+
onChange: (n) => re(t, e, n.target.value)
|
|
1392
|
+
}, [T("option", ga, I(L(n)("exhibition.themeGallery.select")), 1), (N(!0), w(b, null, F(L(a)(e.theme), (e) => (N(), w("option", {
|
|
1393
1393
|
key: e.value,
|
|
1394
1394
|
value: e.value
|
|
1395
|
-
},
|
|
1396
|
-
|
|
1395
|
+
}, I(e.label), 9, _a))), 128))], 40, ha)) : C("", !0)])])),
|
|
1396
|
+
O(fe, {
|
|
1397
1397
|
mode: "immediate",
|
|
1398
|
-
title:
|
|
1399
|
-
"reset-label":
|
|
1400
|
-
disabled:
|
|
1401
|
-
onReset: (e) =>
|
|
1398
|
+
title: M(e) ? L(n)("exhibition.collection.filterBy") : L(n)("exhibition.collection.filterFurtherBy"),
|
|
1399
|
+
"reset-label": L(n)("exhibition.collection.resetFilters"),
|
|
1400
|
+
disabled: l.length === 0,
|
|
1401
|
+
onReset: (e) => o()
|
|
1402
1402
|
}, {
|
|
1403
|
-
default:
|
|
1404
|
-
|
|
1403
|
+
default: R(() => [
|
|
1404
|
+
M(e) ? (N(), w("select", {
|
|
1405
1405
|
key: 0,
|
|
1406
1406
|
class: "mwnf-facet__select",
|
|
1407
|
-
"aria-label":
|
|
1407
|
+
"aria-label": L(n)("exhibition.collection.selectTheme"),
|
|
1408
1408
|
value: "",
|
|
1409
|
-
disabled: !
|
|
1410
|
-
onChange: (e) =>
|
|
1409
|
+
disabled: !l.length,
|
|
1410
|
+
onChange: (e) => ne(t, o, e.target.value)
|
|
1411
1411
|
}, [
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
(
|
|
1412
|
+
T("option", ya, I(L(n)("exhibition.collection.selectTheme")), 1),
|
|
1413
|
+
T("option", ba, I(L(n)("exhibition.collection.allThemes")), 1),
|
|
1414
|
+
(N(!0), w(b, null, F(L(i), (e) => (N(), w("option", {
|
|
1415
1415
|
key: e.value,
|
|
1416
1416
|
value: e.value
|
|
1417
|
-
},
|
|
1418
|
-
], 40, va)) :
|
|
1419
|
-
|
|
1417
|
+
}, I(e.label), 9, xa))), 128))
|
|
1418
|
+
], 40, va)) : C("", !0),
|
|
1419
|
+
O(H, {
|
|
1420
1420
|
"model-value": e.country,
|
|
1421
|
-
options:
|
|
1422
|
-
placeholder:
|
|
1421
|
+
options: d.country,
|
|
1422
|
+
placeholder: L(n)("exhibition.collection.selectCountry"),
|
|
1423
1423
|
"onUpdate:modelValue": (e) => t({ country: e })
|
|
1424
1424
|
}, null, 8, [
|
|
1425
1425
|
"model-value",
|
|
@@ -1427,11 +1427,11 @@ var Zi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Qi =
|
|
|
1427
1427
|
"placeholder",
|
|
1428
1428
|
"onUpdate:modelValue"
|
|
1429
1429
|
]),
|
|
1430
|
-
(
|
|
1430
|
+
(N(), w(b, null, F(g, (r) => O(H, {
|
|
1431
1431
|
key: r,
|
|
1432
1432
|
"model-value": e[r],
|
|
1433
|
-
options:
|
|
1434
|
-
placeholder:
|
|
1433
|
+
options: d[r],
|
|
1434
|
+
placeholder: L(n)(h[r]),
|
|
1435
1435
|
"hide-empty": "",
|
|
1436
1436
|
"onUpdate:modelValue": (e) => t({ [r]: e })
|
|
1437
1437
|
}, null, 8, [
|
|
@@ -1440,20 +1440,20 @@ var Zi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Qi =
|
|
|
1440
1440
|
"placeholder",
|
|
1441
1441
|
"onUpdate:modelValue"
|
|
1442
1442
|
])), 64)),
|
|
1443
|
-
|
|
1443
|
+
T("div", Sa, [O(H, {
|
|
1444
1444
|
"model-value": e.from,
|
|
1445
|
-
options:
|
|
1446
|
-
placeholder:
|
|
1445
|
+
options: L(v)(l, y),
|
|
1446
|
+
placeholder: L(n)("exhibition.collection.startDate"),
|
|
1447
1447
|
"onUpdate:modelValue": (e) => t({ from: e })
|
|
1448
1448
|
}, null, 8, [
|
|
1449
1449
|
"model-value",
|
|
1450
1450
|
"options",
|
|
1451
1451
|
"placeholder",
|
|
1452
1452
|
"onUpdate:modelValue"
|
|
1453
|
-
]),
|
|
1453
|
+
]), O(H, {
|
|
1454
1454
|
"model-value": e.to,
|
|
1455
|
-
options:
|
|
1456
|
-
placeholder:
|
|
1455
|
+
options: L(v)(l, y),
|
|
1456
|
+
placeholder: L(n)("exhibition.collection.endDate"),
|
|
1457
1457
|
"onUpdate:modelValue": (e) => t({ to: e })
|
|
1458
1458
|
}, null, 8, [
|
|
1459
1459
|
"model-value",
|
|
@@ -1469,7 +1469,7 @@ var Zi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Qi =
|
|
|
1469
1469
|
"disabled",
|
|
1470
1470
|
"onReset"
|
|
1471
1471
|
])
|
|
1472
|
-
], 512), [[
|
|
1472
|
+
], 512), [[oe, !u.value || f.value]])]),
|
|
1473
1473
|
_: 1
|
|
1474
1474
|
})]));
|
|
1475
1475
|
}
|
|
@@ -1491,71 +1491,71 @@ var Zi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Qi =
|
|
|
1491
1491
|
value: ""
|
|
1492
1492
|
}, Va = ["value"], Ha = {
|
|
1493
1493
|
__name: "CollectionSearch",
|
|
1494
|
-
setup(
|
|
1495
|
-
let
|
|
1494
|
+
setup(t) {
|
|
1495
|
+
let n = Et(), { t: r, locale: i } = p(), { themeOptions: a } = Xi(i), o = f(it, yt), s = x(() => [
|
|
1496
1496
|
{
|
|
1497
1497
|
key: "country",
|
|
1498
1498
|
name: "exhibition.collection.selectCountry",
|
|
1499
|
-
options:
|
|
1499
|
+
options: o.value.country ?? []
|
|
1500
1500
|
},
|
|
1501
1501
|
{
|
|
1502
1502
|
key: "type",
|
|
1503
1503
|
name: "exhibition.collection.type",
|
|
1504
|
-
options:
|
|
1504
|
+
options: o.value.type ?? []
|
|
1505
1505
|
},
|
|
1506
1506
|
{
|
|
1507
1507
|
key: "material",
|
|
1508
1508
|
name: "exhibition.collection.material",
|
|
1509
|
-
options:
|
|
1509
|
+
options: o.value.material ?? []
|
|
1510
1510
|
}
|
|
1511
|
-
]),
|
|
1511
|
+
]), c = {
|
|
1512
1512
|
"catalogue.era.ad": "exhibition.era.ad",
|
|
1513
1513
|
"catalogue.era.bc": "exhibition.era.bc"
|
|
1514
|
-
},
|
|
1515
|
-
function
|
|
1516
|
-
|
|
1514
|
+
}, l = (e) => r(c[e] ?? e), u = x(() => v(it.value ?? [], l));
|
|
1515
|
+
function d(e, t) {
|
|
1516
|
+
t !== "" && t != null && (t === "all" ? n.push({ name: "collection-results" }) : n.push({
|
|
1517
1517
|
name: "collection-results",
|
|
1518
|
-
query: { [e]: String(
|
|
1518
|
+
query: { [e]: String(t) }
|
|
1519
1519
|
}));
|
|
1520
1520
|
}
|
|
1521
|
-
return (
|
|
1522
|
-
|
|
1521
|
+
return (t, n) => (N(), w("div", wa, [T("div", Ta, [T("div", Ea, I(L(r)("exhibition.collection.filterBy")), 1), T("div", Da, [
|
|
1522
|
+
T("select", {
|
|
1523
1523
|
class: "mwnf-dxa-exhibition-collection__select",
|
|
1524
|
-
"aria-label":
|
|
1525
|
-
onChange:
|
|
1524
|
+
"aria-label": L(r)("exhibition.collection.selectTheme"),
|
|
1525
|
+
onChange: n[0] ||= (e) => d("theme", e.target.value)
|
|
1526
1526
|
}, [
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
(
|
|
1527
|
+
T("option", ka, I(L(r)("exhibition.collection.selectTheme")), 1),
|
|
1528
|
+
T("option", Aa, I(L(r)("exhibition.collection.allThemes")), 1),
|
|
1529
|
+
(N(!0), w(b, null, F(L(a), (e) => (N(), w("option", {
|
|
1530
1530
|
key: e.value,
|
|
1531
1531
|
value: e.value
|
|
1532
|
-
},
|
|
1532
|
+
}, I(e.label), 9, ja))), 128))
|
|
1533
1533
|
], 40, Oa),
|
|
1534
|
-
(
|
|
1534
|
+
(N(!0), w(b, null, F(s.value, (e) => (N(), w("select", {
|
|
1535
1535
|
key: e.key,
|
|
1536
1536
|
class: "mwnf-dxa-exhibition-collection__select",
|
|
1537
|
-
"aria-label":
|
|
1538
|
-
onChange: (t) =>
|
|
1539
|
-
}, [
|
|
1537
|
+
"aria-label": L(r)(e.name),
|
|
1538
|
+
onChange: (t) => d(e.key, t.target.value)
|
|
1539
|
+
}, [T("option", Na, I(L(r)(e.name)), 1), (N(!0), w(b, null, F(e.options, (e) => (N(), w("option", {
|
|
1540
1540
|
key: e.value,
|
|
1541
1541
|
value: String(e.value)
|
|
1542
|
-
},
|
|
1543
|
-
|
|
1542
|
+
}, I(e.label), 9, Pa))), 128))], 40, Ma))), 128)),
|
|
1543
|
+
T("div", Fa, [T("select", {
|
|
1544
1544
|
class: "mwnf-dxa-exhibition-collection__select",
|
|
1545
|
-
"aria-label":
|
|
1546
|
-
onChange:
|
|
1547
|
-
}, [
|
|
1545
|
+
"aria-label": L(r)("exhibition.collection.startDate"),
|
|
1546
|
+
onChange: n[1] ||= (e) => d("from", e.target.value)
|
|
1547
|
+
}, [T("option", La, I(L(r)("exhibition.collection.startDate")), 1), (N(!0), w(b, null, F(u.value, (e) => (N(), w("option", {
|
|
1548
1548
|
key: e.value,
|
|
1549
1549
|
value: String(e.value)
|
|
1550
|
-
},
|
|
1550
|
+
}, I(e.label), 9, Ra))), 128))], 40, Ia), T("select", {
|
|
1551
1551
|
class: "mwnf-dxa-exhibition-collection__select",
|
|
1552
|
-
"aria-label":
|
|
1553
|
-
onChange:
|
|
1554
|
-
}, [
|
|
1552
|
+
"aria-label": L(r)("exhibition.collection.endDate"),
|
|
1553
|
+
onChange: n[2] ||= (e) => d("to", e.target.value)
|
|
1554
|
+
}, [T("option", Ba, I(L(r)("exhibition.collection.endDate")), 1), (N(!0), w(b, null, F(u.value, (e) => (N(), w("option", {
|
|
1555
1555
|
key: e.value,
|
|
1556
1556
|
value: String(e.value)
|
|
1557
|
-
},
|
|
1558
|
-
])]),
|
|
1557
|
+
}, I(e.label), 9, Va))), 128))], 40, za)])
|
|
1558
|
+
])]), O(L(e), {
|
|
1559
1559
|
class: "mwnf-dxa-exhibition-collection__description mwnf-prose",
|
|
1560
1560
|
dir: "auto",
|
|
1561
1561
|
keypath: "exhibition.collection.intro"
|
|
@@ -1583,56 +1583,56 @@ var Zi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Qi =
|
|
|
1583
1583
|
}
|
|
1584
1584
|
},
|
|
1585
1585
|
setup(t) {
|
|
1586
|
-
let n = t, r =
|
|
1586
|
+
let n = t, r = x(() => n.variant === "institution"), i = Y(), a = x(() => $e(i.params.id)), o = x(() => ({
|
|
1587
1587
|
entity: "items",
|
|
1588
1588
|
scope: (e) => e.partner_id === a.value?.id,
|
|
1589
|
-
...
|
|
1589
|
+
...Ct,
|
|
1590
1590
|
summary: () => [],
|
|
1591
|
-
record:
|
|
1591
|
+
record: ot
|
|
1592
1592
|
}));
|
|
1593
1593
|
function s(e) {
|
|
1594
1594
|
let t = e[0];
|
|
1595
1595
|
if (!t) return null;
|
|
1596
|
-
let n =
|
|
1596
|
+
let n = Qe("items", t.id, vt);
|
|
1597
1597
|
return {
|
|
1598
|
-
name:
|
|
1599
|
-
place: [n.location,
|
|
1598
|
+
name: K("partners", a.value?.id),
|
|
1599
|
+
place: [n.location, K("countries", t.country_id)].filter(Boolean).join(", ")
|
|
1600
1600
|
};
|
|
1601
1601
|
}
|
|
1602
|
-
return (n, i) => a.value ? (
|
|
1602
|
+
return (n, i) => a.value ? (N(), w("div", Ua, [O(q, {
|
|
1603
1603
|
spec: o.value,
|
|
1604
1604
|
class: "mwnf-dxa-partner-objects"
|
|
1605
1605
|
}, {
|
|
1606
|
-
before:
|
|
1607
|
-
|
|
1608
|
-
s(
|
|
1609
|
-
|
|
1606
|
+
before: R(({ matching: e, pageInfo: t, goToPage: n }) => [
|
|
1607
|
+
O(B),
|
|
1608
|
+
s(e) ? (N(), w("div", Wa, [T("p", Ga, I(s(e).name), 1), T("p", Ka, I(s(e).place), 1)])) : C("", !0),
|
|
1609
|
+
O(Q, {
|
|
1610
1610
|
class: "mwnf-dxa-exhibition-pages--top",
|
|
1611
|
-
"page-info":
|
|
1612
|
-
onNavigate:
|
|
1611
|
+
"page-info": t,
|
|
1612
|
+
onNavigate: n
|
|
1613
1613
|
}, null, 8, ["page-info", "onNavigate"])
|
|
1614
1614
|
]),
|
|
1615
|
-
records:
|
|
1615
|
+
records: R(({ rows: o }) => [T("div", qa, [T("div", Ja, [o.length ? (N(), S($, {
|
|
1616
1616
|
key: 0,
|
|
1617
|
-
rows:
|
|
1617
|
+
rows: o,
|
|
1618
1618
|
family: "exhibition"
|
|
1619
|
-
}, null, 8, ["rows"])) : (
|
|
1619
|
+
}, null, 8, ["rows"])) : (N(), S(L(e), {
|
|
1620
1620
|
key: 1,
|
|
1621
1621
|
keypath: r.value ? t.texts.emptyInstitution : t.texts.emptyPartner
|
|
1622
|
-
}, null, 8, ["keypath"]))]),
|
|
1623
|
-
default:
|
|
1622
|
+
}, null, 8, ["keypath"]))]), T("div", Ya, [O(L(J), { to: L(Xe)(a.value) }, {
|
|
1623
|
+
default: R(() => [i[0] ||= T("span", { "aria-hidden": "true" }, "➦", -1), D(" " + I(n.$t(r.value ? t.texts.institutionProfileLabel : t.texts.partnerProfileLabel)), 1)]),
|
|
1624
1624
|
_: 1
|
|
1625
1625
|
}, 8, ["to"])])])]),
|
|
1626
|
-
pagination:
|
|
1627
|
-
after:
|
|
1626
|
+
pagination: R(() => [...i[1] ||= []]),
|
|
1627
|
+
after: R(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (N(), S(Q, {
|
|
1628
1628
|
key: 0,
|
|
1629
1629
|
"page-info": e,
|
|
1630
1630
|
onNavigate: t
|
|
1631
|
-
}, null, 8, ["page-info", "onNavigate"])) : (
|
|
1631
|
+
}, null, 8, ["page-info", "onNavigate"])) : (N(), w("div", Xa))]),
|
|
1632
1632
|
_: 1
|
|
1633
|
-
}, 8, ["spec"])])) :
|
|
1633
|
+
}, 8, ["spec"])])) : C("", !0);
|
|
1634
1634
|
}
|
|
1635
|
-
}, Qa = () => Promise.resolve().then(() => fs), $a = () => Promise.resolve().then(() => xs), eo = () => Promise.resolve().then(() => Cs), to = () => Promise.resolve().then(() => zs), no = () => Promise.resolve().then(() => Hs), ro = () => Promise.resolve().then(() => Gs), io = () => import("./Theme-
|
|
1635
|
+
}, Qa = () => Promise.resolve().then(() => fs), $a = () => Promise.resolve().then(() => xs), eo = () => Promise.resolve().then(() => Cs), to = () => Promise.resolve().then(() => zs), no = () => Promise.resolve().then(() => Hs), ro = () => Promise.resolve().then(() => Gs), io = () => import("./Theme-BUfsZDdm.js").then((e) => e.t), ao = () => Promise.resolve().then(() => lc), oo = () => Promise.resolve().then(() => Oc), so = () => Promise.resolve().then(() => Ac), co = () => Promise.resolve().then(() => Kc), lo = {
|
|
1636
1636
|
emptyPartner: "exhibition.partnerObjects.emptyPartner",
|
|
1637
1637
|
emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
|
|
1638
1638
|
institutionSummary: "exhibition.partner.monumentsInExhibition",
|
|
@@ -1640,7 +1640,7 @@ var Zi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Qi =
|
|
|
1640
1640
|
institutionProfileLabel: "exhibition.partnerObjects.institutionProfile"
|
|
1641
1641
|
};
|
|
1642
1642
|
function uo(e) {
|
|
1643
|
-
let t =
|
|
1643
|
+
let t = u([
|
|
1644
1644
|
"gallery",
|
|
1645
1645
|
"items",
|
|
1646
1646
|
"partners",
|
|
@@ -1677,7 +1677,7 @@ function uo(e) {
|
|
|
1677
1677
|
{
|
|
1678
1678
|
path: "/how-to-search",
|
|
1679
1679
|
name: "search-how-to",
|
|
1680
|
-
component:
|
|
1680
|
+
component: Yt,
|
|
1681
1681
|
meta: t("database")
|
|
1682
1682
|
},
|
|
1683
1683
|
{
|
|
@@ -1689,10 +1689,10 @@ function uo(e) {
|
|
|
1689
1689
|
{
|
|
1690
1690
|
path: "/partner/:id",
|
|
1691
1691
|
name: "partner",
|
|
1692
|
-
component:
|
|
1692
|
+
component: Ut,
|
|
1693
1693
|
props: (e) => ({
|
|
1694
1694
|
id: String(e.params.id),
|
|
1695
|
-
family:
|
|
1695
|
+
family: Ke
|
|
1696
1696
|
}),
|
|
1697
1697
|
meta: t("partners", "languages")
|
|
1698
1698
|
},
|
|
@@ -1717,13 +1717,13 @@ function uo(e) {
|
|
|
1717
1717
|
{
|
|
1718
1718
|
path: "/about",
|
|
1719
1719
|
name: "about",
|
|
1720
|
-
component:
|
|
1720
|
+
component: Gt,
|
|
1721
1721
|
meta: t("about")
|
|
1722
1722
|
},
|
|
1723
1723
|
{
|
|
1724
1724
|
path: "/credits",
|
|
1725
1725
|
name: "credits",
|
|
1726
|
-
component:
|
|
1726
|
+
component: Kt,
|
|
1727
1727
|
props: { bodyKey: n },
|
|
1728
1728
|
meta: t("credits")
|
|
1729
1729
|
},
|
|
@@ -1742,7 +1742,7 @@ function uo(e) {
|
|
|
1742
1742
|
];
|
|
1743
1743
|
}
|
|
1744
1744
|
function fo(e) {
|
|
1745
|
-
let t =
|
|
1745
|
+
let t = u([
|
|
1746
1746
|
"exhibition",
|
|
1747
1747
|
"items",
|
|
1748
1748
|
"partners",
|
|
@@ -1805,7 +1805,7 @@ function fo(e) {
|
|
|
1805
1805
|
...e.creditsBody ? [{
|
|
1806
1806
|
path: "/credits",
|
|
1807
1807
|
name: "credits",
|
|
1808
|
-
component:
|
|
1808
|
+
component: Jt,
|
|
1809
1809
|
props: { bodyKey: e.creditsBody },
|
|
1810
1810
|
meta: t("credits")
|
|
1811
1811
|
}] : []
|
|
@@ -1831,10 +1831,10 @@ function fo(e) {
|
|
|
1831
1831
|
{
|
|
1832
1832
|
path: "/partner/:id",
|
|
1833
1833
|
name: "partner",
|
|
1834
|
-
component:
|
|
1834
|
+
component: Ut,
|
|
1835
1835
|
props: (e) => ({
|
|
1836
1836
|
id: String(e.params.id),
|
|
1837
|
-
family:
|
|
1837
|
+
family: Ye
|
|
1838
1838
|
}),
|
|
1839
1839
|
meta: t("partners", "languages")
|
|
1840
1840
|
},
|
|
@@ -1848,10 +1848,10 @@ function fo(e) {
|
|
|
1848
1848
|
{
|
|
1849
1849
|
path: "/institution/:id",
|
|
1850
1850
|
name: "institution",
|
|
1851
|
-
component:
|
|
1851
|
+
component: Ut,
|
|
1852
1852
|
props: (e) => ({
|
|
1853
1853
|
id: String(e.params.id),
|
|
1854
|
-
family:
|
|
1854
|
+
family: Ye,
|
|
1855
1855
|
variant: "institution"
|
|
1856
1856
|
}),
|
|
1857
1857
|
meta: t("partners", "languages")
|
|
@@ -1942,53 +1942,53 @@ var _o = {
|
|
|
1942
1942
|
},
|
|
1943
1943
|
emits: ["update:language"],
|
|
1944
1944
|
setup(e, { emit: t }) {
|
|
1945
|
-
let n = e, r = t, { t: i, locale: a } =
|
|
1945
|
+
let n = e, r = t, { t: i, locale: a } = p(), o = g(), s = x(() => o.links ?? {}), c = x(() => o.galleryShell ?? {}), l = h(), u = x(() => l.value === "home"), d = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1946
1946
|
function f(e) {
|
|
1947
1947
|
return e?.[a.value] ?? e?.en ?? "";
|
|
1948
1948
|
}
|
|
1949
|
-
let m =
|
|
1950
|
-
function
|
|
1949
|
+
let m = x(() => Oe(f));
|
|
1950
|
+
function _(e, t) {
|
|
1951
1951
|
if (!(e in c.value)) return t();
|
|
1952
1952
|
let n = c.value[e];
|
|
1953
1953
|
return n ? i(n) : "";
|
|
1954
1954
|
}
|
|
1955
|
-
let
|
|
1955
|
+
let v = x(() => u.value ? "" : _("headerEyebrow", () => i("core.project.galleries"))), y = x(() => u.value ? "" : _("headerTitle", () => m.value)), b = x(() => c.value.bannerImage ? jt(o.chrome, c.value.bannerImage) : Me(Ue.value?.banner_image_path, "hi_res")), C = x(() => {
|
|
1956
1956
|
if (c.value.bannerCaption) return c.value.bannerCaption;
|
|
1957
|
-
let e =
|
|
1957
|
+
let e = ze.value.get(Ue.value?.banner_item_id);
|
|
1958
1958
|
if (!e) return "";
|
|
1959
|
-
let t =
|
|
1959
|
+
let t = be("items", e.id, Ve);
|
|
1960
1960
|
return {
|
|
1961
|
-
name:
|
|
1962
|
-
partner:
|
|
1961
|
+
name: we("items", e.id),
|
|
1962
|
+
partner: we("partners", e.partner_id),
|
|
1963
1963
|
location: t.location ?? "",
|
|
1964
|
-
country:
|
|
1964
|
+
country: we("countries", e.country_id)
|
|
1965
1965
|
};
|
|
1966
|
-
}),
|
|
1966
|
+
}), w = x(() => u.value ? _("bannerEyebrow", () => i("gallery.banner.discoverGalleries")) : ""), D = x(() => u.value ? _("bannerTitle", () => m.value) : void 0), O = x(() => c.value.notice === !1 ? null : {
|
|
1967
1967
|
title: i("gallery.notice.tip"),
|
|
1968
|
-
text: `${i("gallery.notice.searchThe")} ${
|
|
1969
|
-
}),
|
|
1970
|
-
return (e, t) => (
|
|
1971
|
-
class:
|
|
1968
|
+
text: `${i("gallery.notice.searchThe")} ${Oe(De)} ${i("gallery.notice.database")}`
|
|
1969
|
+
}), A = x(() => !!jt(o.chrome, o.brand?.logo));
|
|
1970
|
+
return (e, t) => (N(), S(Ot, {
|
|
1971
|
+
class: k(["mwnf-dxa-gallery-shell", { "mwnf-dxa-gallery-shell--home": u.value }]),
|
|
1972
1972
|
languages: n.languages,
|
|
1973
1973
|
language: n.language,
|
|
1974
1974
|
"language-placement": "none",
|
|
1975
1975
|
"header-home": s.value.portal,
|
|
1976
|
-
"header-eyebrow":
|
|
1977
|
-
"header-title":
|
|
1976
|
+
"header-eyebrow": v.value,
|
|
1977
|
+
"header-title": y.value,
|
|
1978
1978
|
"header-title-href": "#/",
|
|
1979
|
-
"banner-image":
|
|
1980
|
-
"banner-caption":
|
|
1981
|
-
"banner-eyebrow":
|
|
1982
|
-
"banner-title":
|
|
1983
|
-
notice:
|
|
1984
|
-
"footer-text": `${
|
|
1979
|
+
"banner-image": b.value,
|
|
1980
|
+
"banner-caption": C.value,
|
|
1981
|
+
"banner-eyebrow": w.value,
|
|
1982
|
+
"banner-title": D.value,
|
|
1983
|
+
notice: O.value,
|
|
1984
|
+
"footer-text": `${L(i)("core.footer.copyright")} 2004–${L(d)}`,
|
|
1985
1985
|
"onUpdate:language": t[0] ||= (e) => r("update:language", e)
|
|
1986
|
-
},
|
|
1987
|
-
default:
|
|
1986
|
+
}, E({
|
|
1987
|
+
default: R(() => [te(e.$slots, "default")]),
|
|
1988
1988
|
_: 2
|
|
1989
|
-
}, [
|
|
1989
|
+
}, [A.value ? void 0 : {
|
|
1990
1990
|
name: "brand",
|
|
1991
|
-
fn:
|
|
1991
|
+
fn: R(() => [t[1] ||= T("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
|
|
1992
1992
|
key: "0"
|
|
1993
1993
|
}]), 1032, [
|
|
1994
1994
|
"class",
|
|
@@ -2029,20 +2029,20 @@ var _o = {
|
|
|
2029
2029
|
}
|
|
2030
2030
|
},
|
|
2031
2031
|
setup(e) {
|
|
2032
|
-
let t = e, n =
|
|
2033
|
-
return (t, a) => i.value ? (
|
|
2032
|
+
let t = e, n = P(!1), r = x(() => t.rawHtml ? t.content : c(t.content)), i = x(() => t.enabled && !!t.content && !n.value);
|
|
2033
|
+
return (t, a) => i.value ? (N(), w("div", vo, [T("button", {
|
|
2034
2034
|
class: "mwnf-popup-logo__close",
|
|
2035
2035
|
"aria-label": t.$t(e.closeLabel),
|
|
2036
2036
|
onClick: a[0] ||= (e) => n.value = !0
|
|
2037
|
-
}, "✕", 8, yo), e.rawHtml ? (
|
|
2037
|
+
}, "✕", 8, yo), e.rawHtml ? (N(), w("div", {
|
|
2038
2038
|
key: 0,
|
|
2039
2039
|
class: "mwnf-popup-logo__content",
|
|
2040
2040
|
innerHTML: r.value
|
|
2041
|
-
}, null, 8, bo)) : (
|
|
2041
|
+
}, null, 8, bo)) : (N(), w("div", {
|
|
2042
2042
|
key: 1,
|
|
2043
2043
|
class: "mwnf-popup-logo__content",
|
|
2044
2044
|
innerHTML: r.value
|
|
2045
|
-
}, null, 8, xo))])) :
|
|
2045
|
+
}, null, 8, xo))])) : C("", !0);
|
|
2046
2046
|
}
|
|
2047
2047
|
}, Co = {
|
|
2048
2048
|
__name: "Shell",
|
|
@@ -2058,37 +2058,37 @@ var _o = {
|
|
|
2058
2058
|
},
|
|
2059
2059
|
emits: ["update:language"],
|
|
2060
2060
|
setup(e, { emit: t }) {
|
|
2061
|
-
let n = e, r = t, { t: i, locale: a } =
|
|
2062
|
-
function
|
|
2061
|
+
let n = e, r = t, { t: i, locale: a } = p(), o = g(), s = x(() => o.links ?? {}), c = x(() => !!jt(o.chrome, o.brand?.logo)), l = h(), u = x(() => l.value === "home"), d = (/* @__PURE__ */ new Date()).getFullYear(), f = x(() => o.exhibition ?? {});
|
|
2062
|
+
function m(e) {
|
|
2063
2063
|
return e ? {
|
|
2064
|
-
image:
|
|
2064
|
+
image: jt(o.chrome, e.image) ?? G.value.get(e.item)?.images?.[0]?.url ?? "",
|
|
2065
2065
|
itemId: e.item ?? null
|
|
2066
2066
|
} : null;
|
|
2067
2067
|
}
|
|
2068
|
-
let
|
|
2069
|
-
image:
|
|
2070
|
-
itemId:
|
|
2071
|
-
} : null :
|
|
2072
|
-
image:
|
|
2073
|
-
itemId:
|
|
2074
|
-
} :
|
|
2075
|
-
|
|
2068
|
+
let _ = x(() => f.value.home === void 0 ? U.value?.homepage_image_path ? {
|
|
2069
|
+
image: _t(U.value.homepage_image_path, "hi_res"),
|
|
2070
|
+
itemId: U.value?.homepage_item_id
|
|
2071
|
+
} : null : m(f.value.home)), v = x(() => f.value.banner === void 0 ? {
|
|
2072
|
+
image: _t(U.value?.banner_image_path, "hi_res"),
|
|
2073
|
+
itemId: U.value?.banner_item_id
|
|
2074
|
+
} : m(f.value.banner)), y = x(() => u.value && _.value?.image || null);
|
|
2075
|
+
ce(() => {
|
|
2076
2076
|
if (typeof document > "u") return;
|
|
2077
|
-
let e =
|
|
2077
|
+
let e = _.value?.image ?? "";
|
|
2078
2078
|
e ? document.documentElement.style.setProperty("--mwnf-dxa-exhibition-backdrop", `url("${e.replace(/"/g, "%22")}")`) : document.documentElement.style.removeProperty("--mwnf-dxa-exhibition-backdrop");
|
|
2079
2079
|
});
|
|
2080
|
-
let
|
|
2081
|
-
let e =
|
|
2082
|
-
if (!t) return
|
|
2083
|
-
let n =
|
|
2080
|
+
let b = x(() => y.value ?? v.value?.image ?? null), C = x(() => {
|
|
2081
|
+
let e = y.value ? _.value?.itemId : v.value?.itemId, t = G.value.get(e);
|
|
2082
|
+
if (!t) return y.value ? "" : mt(a.value);
|
|
2083
|
+
let n = Qe("items", t.id, vt);
|
|
2084
2084
|
return {
|
|
2085
|
-
name:
|
|
2085
|
+
name: K("items", t.id),
|
|
2086
2086
|
holder: n.holder ?? "",
|
|
2087
2087
|
location: n.location ?? "",
|
|
2088
2088
|
province: "",
|
|
2089
|
-
country:
|
|
2089
|
+
country: K("countries", t.country_id)
|
|
2090
2090
|
};
|
|
2091
|
-
}),
|
|
2091
|
+
}), w = x(() => [{
|
|
2092
2092
|
label: i("core.nav.about"),
|
|
2093
2093
|
description: i("exhibition.nav.introduction"),
|
|
2094
2094
|
href: "#/about"
|
|
@@ -2097,18 +2097,18 @@ var _o = {
|
|
|
2097
2097
|
description: i("exhibition.nav.contentAtAGlance"),
|
|
2098
2098
|
href: "#/themes"
|
|
2099
2099
|
}]);
|
|
2100
|
-
function
|
|
2100
|
+
function D(e) {
|
|
2101
2101
|
return e.labels?.[a.value] ?? e.labels?.en ?? e.alt_text ?? "";
|
|
2102
2102
|
}
|
|
2103
|
-
let
|
|
2103
|
+
let k = x(() => {
|
|
2104
2104
|
let e = o.sponsorLogos;
|
|
2105
2105
|
return Array.isArray(e) ? e.map((e) => ({
|
|
2106
2106
|
...e,
|
|
2107
|
-
image:
|
|
2107
|
+
image: jt(o.chrome, e.image),
|
|
2108
2108
|
alt: e.alt ? i(e.alt) : ""
|
|
2109
|
-
})).filter((e) => e.image) : (
|
|
2110
|
-
image: e.legacy_path ?
|
|
2111
|
-
alt:
|
|
2109
|
+
})).filter((e) => e.image) : (U.value?.logos ?? []).map((e) => ({
|
|
2110
|
+
image: e.legacy_path ? _t(e.legacy_path, "full") : null,
|
|
2111
|
+
alt: D(e),
|
|
2112
2112
|
href: e.url || void 0,
|
|
2113
2113
|
category_id: e.category_id,
|
|
2114
2114
|
category: e.category,
|
|
@@ -2116,61 +2116,61 @@ var _o = {
|
|
|
2116
2116
|
display_order: e.display_order
|
|
2117
2117
|
})).filter((e) => e.image);
|
|
2118
2118
|
});
|
|
2119
|
-
function
|
|
2119
|
+
function A(e) {
|
|
2120
2120
|
let t = o.media?.legacyHost;
|
|
2121
2121
|
if (!t || !e.startsWith(`${t.replace(/\/+$/, "")}/`)) return null;
|
|
2122
2122
|
let n = e.slice(t.replace(/\/+$/, "").length + 1).split("/").slice(1).join("/");
|
|
2123
|
-
return
|
|
2123
|
+
return At(o.chrome, n);
|
|
2124
2124
|
}
|
|
2125
|
-
let
|
|
2126
|
-
if (
|
|
2127
|
-
let e =
|
|
2128
|
-
return
|
|
2125
|
+
let j = x(() => f.value.popup), M = x(() => {
|
|
2126
|
+
if (j.value !== void 0) {
|
|
2127
|
+
let e = j.value?.body, t = e ? i(e) : "";
|
|
2128
|
+
return kt(nt(t && t !== e ? t : "", { glossary: [] }), (e) => Mt(o.chrome, e));
|
|
2129
2129
|
}
|
|
2130
|
-
return
|
|
2131
|
-
}),
|
|
2132
|
-
if (
|
|
2133
|
-
let e =
|
|
2130
|
+
return kt(nt(U.value?.popup_logos?.[a.value] ?? U.value?.popup_logos?.en ?? "", { glossary: [] }), A);
|
|
2131
|
+
}), ee = x(() => {
|
|
2132
|
+
if (j.value !== void 0) return !!j.value?.body;
|
|
2133
|
+
let e = U.value?.popup_logo_show;
|
|
2134
2134
|
return e == null ? !1 : typeof e == "boolean" ? e : e[a.value] ?? e.en ?? !1;
|
|
2135
2135
|
});
|
|
2136
|
-
return (e, t) => (
|
|
2136
|
+
return (e, t) => (N(), S(Ot, {
|
|
2137
2137
|
languages: n.languages,
|
|
2138
2138
|
language: n.language,
|
|
2139
2139
|
"language-placement": "header",
|
|
2140
2140
|
"language-style": "select",
|
|
2141
2141
|
"header-home": s.value.portal,
|
|
2142
|
-
"header-title":
|
|
2142
|
+
"header-title": L(i)("exhibition.identity.tagline"),
|
|
2143
2143
|
"header-title-href": "#/about",
|
|
2144
|
-
"banner-image":
|
|
2145
|
-
"banner-caption":
|
|
2146
|
-
"banner-caption-label":
|
|
2147
|
-
"banner-title": u.value ?
|
|
2148
|
-
"banner-subtitle": u.value ?
|
|
2149
|
-
"banner-headline": u.value ?
|
|
2144
|
+
"banner-image": b.value,
|
|
2145
|
+
"banner-caption": C.value,
|
|
2146
|
+
"banner-caption-label": L(i)("layout.banner.detailFrom"),
|
|
2147
|
+
"banner-title": u.value ? L(st)(L(a)) : "",
|
|
2148
|
+
"banner-subtitle": u.value ? L(bt)(L(a)) : "",
|
|
2149
|
+
"banner-headline": u.value ? L(pt)(L(a)) : "",
|
|
2150
2150
|
"banner-enter": u.value ? {
|
|
2151
|
-
label:
|
|
2151
|
+
label: L(i)("exhibition.action.enter"),
|
|
2152
2152
|
href: "#/about"
|
|
2153
2153
|
} : null,
|
|
2154
|
-
"banner-strapline": u.value ?
|
|
2154
|
+
"banner-strapline": u.value ? L(i)("exhibition.identity.strapline") : "",
|
|
2155
2155
|
"hyperlinks-variant": "tiles",
|
|
2156
|
-
"hyperlinks-title":
|
|
2156
|
+
"hyperlinks-title": L(st)(L(a)),
|
|
2157
2157
|
"hyperlinks-title-href": "#/",
|
|
2158
|
-
"hyperlinks-subtitle":
|
|
2159
|
-
hyperlinks:
|
|
2160
|
-
"footer-text": `${
|
|
2161
|
-
logos:
|
|
2158
|
+
"hyperlinks-subtitle": L(bt)(L(a)),
|
|
2159
|
+
hyperlinks: w.value,
|
|
2160
|
+
"footer-text": `${L(i)("core.footer.copyright")} 2004–${L(d)}`,
|
|
2161
|
+
logos: k.value,
|
|
2162
2162
|
"onUpdate:language": t[0] ||= (e) => r("update:language", e)
|
|
2163
|
-
},
|
|
2164
|
-
notice:
|
|
2165
|
-
content:
|
|
2166
|
-
enabled:
|
|
2163
|
+
}, E({
|
|
2164
|
+
notice: R(() => [O(So, {
|
|
2165
|
+
content: M.value,
|
|
2166
|
+
enabled: ee.value,
|
|
2167
2167
|
"raw-html": ""
|
|
2168
2168
|
}, null, 8, ["content", "enabled"])]),
|
|
2169
|
-
default:
|
|
2169
|
+
default: R(() => [te(e.$slots, "default")]),
|
|
2170
2170
|
_: 2
|
|
2171
2171
|
}, [c.value ? void 0 : {
|
|
2172
2172
|
name: "brand",
|
|
2173
|
-
fn:
|
|
2173
|
+
fn: R(() => [t[1] ||= T("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
|
|
2174
2174
|
key: "0"
|
|
2175
2175
|
}]), 1032, [
|
|
2176
2176
|
"languages",
|
|
@@ -2198,7 +2198,7 @@ var _o = {
|
|
|
2198
2198
|
sharinghistory: "mwnf-chip--AWE",
|
|
2199
2199
|
carpets: "mwnf-chip--DCA",
|
|
2200
2200
|
glass: "mwnf-chip--DGA"
|
|
2201
|
-
}, To = new Set(
|
|
2201
|
+
}, To = new Set(t.filter((e) => e.family === "exhibition").map((e) => e.slug));
|
|
2202
2202
|
function Eo(e) {
|
|
2203
2203
|
let t = {};
|
|
2204
2204
|
for (let [n, r] of Object.entries(e?.projects ?? {})) {
|
|
@@ -2219,16 +2219,16 @@ function Oo({ country: e, start: t, end: n, page: r }) {
|
|
|
2219
2219
|
query: i
|
|
2220
2220
|
};
|
|
2221
2221
|
}
|
|
2222
|
-
function ko({ datasetPackage: e, siteName: t, origin: n, projectColors:
|
|
2223
|
-
let { manifest:
|
|
2222
|
+
function ko({ datasetPackage: e, siteName: t, origin: n, projectColors: s = {}, noticeProjects: c = [], creditsBody: l, chrome: u = {}, homeLogos: f = [] }) {
|
|
2223
|
+
let { manifest: p } = d(), m = o();
|
|
2224
2224
|
return {
|
|
2225
2225
|
datasetPackage: e,
|
|
2226
|
-
siteName:
|
|
2226
|
+
siteName: p.site?.names?.en ?? t,
|
|
2227
2227
|
features: { entities: [] },
|
|
2228
|
-
languages:
|
|
2228
|
+
languages: m,
|
|
2229
2229
|
shell: _o,
|
|
2230
2230
|
navigation: {
|
|
2231
|
-
languages:
|
|
2231
|
+
languages: r(m),
|
|
2232
2232
|
links: [
|
|
2233
2233
|
{
|
|
2234
2234
|
section: "about",
|
|
@@ -2257,7 +2257,7 @@ function ko({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2257
2257
|
},
|
|
2258
2258
|
{
|
|
2259
2259
|
label: "core.nav.myCollection",
|
|
2260
|
-
href:
|
|
2260
|
+
href: a.myCollection,
|
|
2261
2261
|
external: !0
|
|
2262
2262
|
}
|
|
2263
2263
|
],
|
|
@@ -2266,33 +2266,33 @@ function ko({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2266
2266
|
to: { name: "home" }
|
|
2267
2267
|
}, {
|
|
2268
2268
|
label: "gallery.nav.allGalleries",
|
|
2269
|
-
href: `${
|
|
2269
|
+
href: `${a.galleries}/list/1`,
|
|
2270
2270
|
external: !0
|
|
2271
2271
|
}],
|
|
2272
2272
|
footerLinks: [
|
|
2273
2273
|
{
|
|
2274
2274
|
label: "core.footer.aboutMwnf",
|
|
2275
|
-
href:
|
|
2275
|
+
href: a.about,
|
|
2276
2276
|
external: !0
|
|
2277
2277
|
},
|
|
2278
2278
|
{
|
|
2279
2279
|
label: "core.footer.contact",
|
|
2280
|
-
href:
|
|
2280
|
+
href: a.contact,
|
|
2281
2281
|
external: !0
|
|
2282
2282
|
},
|
|
2283
2283
|
{
|
|
2284
2284
|
label: "core.footer.legalNotice",
|
|
2285
|
-
href:
|
|
2285
|
+
href: a.legalNotice,
|
|
2286
2286
|
external: !0
|
|
2287
2287
|
},
|
|
2288
2288
|
{
|
|
2289
2289
|
label: "core.footer.credits",
|
|
2290
|
-
href:
|
|
2290
|
+
href: a.credits,
|
|
2291
2291
|
external: !0
|
|
2292
2292
|
},
|
|
2293
2293
|
{
|
|
2294
2294
|
label: "core.footer.cookies",
|
|
2295
|
-
href:
|
|
2295
|
+
href: a.cookies,
|
|
2296
2296
|
external: !0
|
|
2297
2297
|
}
|
|
2298
2298
|
],
|
|
@@ -2313,7 +2313,7 @@ function ko({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2313
2313
|
empty: "all-objects"
|
|
2314
2314
|
},
|
|
2315
2315
|
placement: ({ section: e }) => e === "home" ? "after-banner" : "before-banner",
|
|
2316
|
-
socialLinks:
|
|
2316
|
+
socialLinks: Nt
|
|
2317
2317
|
},
|
|
2318
2318
|
banner: {
|
|
2319
2319
|
variant: ({ section: e }) => e === "home" ? "strip" : "section",
|
|
@@ -2324,30 +2324,30 @@ function ko({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2324
2324
|
ariaLabel: t("gallery.action.goToCollection")
|
|
2325
2325
|
} : null
|
|
2326
2326
|
},
|
|
2327
|
-
chrome:
|
|
2327
|
+
chrome: u,
|
|
2328
2328
|
brand: {
|
|
2329
2329
|
logo: "logo.png",
|
|
2330
2330
|
alt: "MWNF Logo"
|
|
2331
2331
|
},
|
|
2332
|
-
homeLogos:
|
|
2332
|
+
homeLogos: f,
|
|
2333
2333
|
media: { legacyHost: "https://images.museumwnf.org" },
|
|
2334
|
-
links: { ...
|
|
2334
|
+
links: { ...a },
|
|
2335
2335
|
projectColors: {
|
|
2336
|
-
...Eo(
|
|
2337
|
-
...
|
|
2336
|
+
...Eo(p),
|
|
2337
|
+
...s
|
|
2338
2338
|
},
|
|
2339
|
-
noticeProjects:
|
|
2339
|
+
noticeProjects: c,
|
|
2340
2340
|
site: { origin: n },
|
|
2341
2341
|
extraViews: po("gallery", {
|
|
2342
|
-
creditsBody:
|
|
2342
|
+
creditsBody: l,
|
|
2343
2343
|
pages: !0
|
|
2344
2344
|
}),
|
|
2345
2345
|
legacyRoutes: [
|
|
2346
2346
|
{
|
|
2347
2347
|
path: "/database-item/:uid(.*)/:language",
|
|
2348
2348
|
async resolve({ uid: e }) {
|
|
2349
|
-
await
|
|
2350
|
-
let t =
|
|
2349
|
+
await i(["items"]);
|
|
2350
|
+
let t = je(e);
|
|
2351
2351
|
return t ? {
|
|
2352
2352
|
name: "item",
|
|
2353
2353
|
params: { id: t.id }
|
|
@@ -2357,8 +2357,8 @@ function ko({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2357
2357
|
{
|
|
2358
2358
|
path: "/partner/:country/:id/:language",
|
|
2359
2359
|
async resolve({ country: e, id: t }) {
|
|
2360
|
-
await
|
|
2361
|
-
let n =
|
|
2360
|
+
await i(["partners"]);
|
|
2361
|
+
let n = Se(e, t);
|
|
2362
2362
|
return n ? {
|
|
2363
2363
|
name: "partner",
|
|
2364
2364
|
params: { id: n.id }
|
|
@@ -2368,8 +2368,8 @@ function ko({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2368
2368
|
{
|
|
2369
2369
|
path: "/partner-objects/:country/:id/:page",
|
|
2370
2370
|
async resolve({ country: e, id: t, page: n }) {
|
|
2371
|
-
await
|
|
2372
|
-
let r =
|
|
2371
|
+
await i(["partners"]);
|
|
2372
|
+
let r = Se(e, t);
|
|
2373
2373
|
return r ? {
|
|
2374
2374
|
name: "partner-objects",
|
|
2375
2375
|
params: { id: r.id },
|
|
@@ -2400,20 +2400,20 @@ function jo(e) {
|
|
|
2400
2400
|
for (let [n, r] of Object.entries(e)) Ao.includes(n) ? r !== void 0 && (t[n] = r) : console.warn(`exhibitionConfig: unknown option "${n}"`);
|
|
2401
2401
|
return t;
|
|
2402
2402
|
}
|
|
2403
|
-
function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects:
|
|
2404
|
-
let { manifest:
|
|
2403
|
+
function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects: s = [], creditsBody: c, partnerObjects: l, chrome: u = {}, sponsorLogos: f, legacyRoutes: p = !0, ...m }) {
|
|
2404
|
+
let { manifest: h } = d(), g = o(), _ = async (e, t) => (await i([
|
|
2405
2405
|
"exhibition",
|
|
2406
2406
|
"partners",
|
|
2407
2407
|
"countries"
|
|
2408
|
-
]), ho(
|
|
2408
|
+
]), ho(tt.value, at.value, e, t));
|
|
2409
2409
|
return {
|
|
2410
2410
|
datasetPackage: e,
|
|
2411
|
-
siteName:
|
|
2411
|
+
siteName: h.site?.names?.en ?? t,
|
|
2412
2412
|
features: { entities: [] },
|
|
2413
|
-
languages:
|
|
2413
|
+
languages: g,
|
|
2414
2414
|
shell: Co,
|
|
2415
2415
|
navigation: {
|
|
2416
|
-
languages:
|
|
2416
|
+
languages: g.map((e) => ({
|
|
2417
2417
|
code: e,
|
|
2418
2418
|
label: String(e).toUpperCase()
|
|
2419
2419
|
})),
|
|
@@ -2442,7 +2442,7 @@ function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2442
2442
|
section: "timeline",
|
|
2443
2443
|
label: "core.nav.timeline",
|
|
2444
2444
|
to: { name: "timeline" },
|
|
2445
|
-
when: () =>
|
|
2445
|
+
when: () => ct.value
|
|
2446
2446
|
},
|
|
2447
2447
|
{
|
|
2448
2448
|
section: "related",
|
|
@@ -2456,7 +2456,7 @@ function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2456
2456
|
},
|
|
2457
2457
|
{
|
|
2458
2458
|
label: "core.nav.myCollection",
|
|
2459
|
-
href:
|
|
2459
|
+
href: a.myCollection,
|
|
2460
2460
|
external: !0
|
|
2461
2461
|
}
|
|
2462
2462
|
],
|
|
@@ -2465,33 +2465,33 @@ function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2465
2465
|
to: { name: "home" }
|
|
2466
2466
|
}, {
|
|
2467
2467
|
label: "core.footer.aboutMwnf",
|
|
2468
|
-
href:
|
|
2468
|
+
href: a.about,
|
|
2469
2469
|
external: !0
|
|
2470
2470
|
}],
|
|
2471
2471
|
footerLinks: [
|
|
2472
2472
|
{
|
|
2473
2473
|
label: "core.footer.aboutMwnf",
|
|
2474
|
-
href:
|
|
2474
|
+
href: a.about,
|
|
2475
2475
|
external: !0
|
|
2476
2476
|
},
|
|
2477
2477
|
{
|
|
2478
2478
|
label: "core.footer.contact",
|
|
2479
|
-
href:
|
|
2479
|
+
href: a.contact,
|
|
2480
2480
|
external: !0
|
|
2481
2481
|
},
|
|
2482
2482
|
{
|
|
2483
2483
|
label: "core.footer.legalNotice",
|
|
2484
|
-
href:
|
|
2484
|
+
href: a.legalNotice,
|
|
2485
2485
|
external: !0
|
|
2486
2486
|
},
|
|
2487
2487
|
{
|
|
2488
2488
|
label: "core.footer.credits",
|
|
2489
|
-
href:
|
|
2489
|
+
href: a.credits,
|
|
2490
2490
|
external: !0
|
|
2491
2491
|
},
|
|
2492
2492
|
{
|
|
2493
2493
|
label: "core.footer.cookies",
|
|
2494
|
-
href:
|
|
2494
|
+
href: a.cookies,
|
|
2495
2495
|
external: !0
|
|
2496
2496
|
}
|
|
2497
2497
|
],
|
|
@@ -2513,7 +2513,7 @@ function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2513
2513
|
empty: "all-items"
|
|
2514
2514
|
},
|
|
2515
2515
|
placement: "before-banner",
|
|
2516
|
-
socialLinks:
|
|
2516
|
+
socialLinks: Nt
|
|
2517
2517
|
},
|
|
2518
2518
|
banner: {
|
|
2519
2519
|
variant: ({ section: e }) => e === "home" ? "split" : "section",
|
|
@@ -2521,16 +2521,16 @@ function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2521
2521
|
if (e?.name !== "theme" && e?.name !== "theme-gallery") return "";
|
|
2522
2522
|
let n = Number(e.params.id);
|
|
2523
2523
|
if (!Number.isInteger(n) || n < 1) return "";
|
|
2524
|
-
let r = `${t("exhibition.theme.romanLabel")} ${
|
|
2524
|
+
let r = `${t("exhibition.theme.romanLabel")} ${Dt(n + 1)}`, i = e.params.subtheme;
|
|
2525
2525
|
return i && i !== "overview" ? `${r} ▪ ${t("exhibition.theme.subthemeLabel")} ${i}` : e.name === "theme-gallery" ? `${r} ▪ ${t("exhibition.theme.galleryLabel")}` : `${r} ▪ ${t("exhibition.theme.overview")}`;
|
|
2526
2526
|
}
|
|
2527
2527
|
},
|
|
2528
|
-
chrome:
|
|
2528
|
+
chrome: u,
|
|
2529
2529
|
brand: {
|
|
2530
2530
|
logo: "logo_black.png",
|
|
2531
2531
|
alt: "MWNF Logo"
|
|
2532
2532
|
},
|
|
2533
|
-
sponsorLogos:
|
|
2533
|
+
sponsorLogos: f,
|
|
2534
2534
|
logos: {
|
|
2535
2535
|
header: (e) => Number(e.category_id) === 0 && e.visible !== !1,
|
|
2536
2536
|
headerTitle: "exhibition.sponsors.coOrganisers",
|
|
@@ -2552,25 +2552,25 @@ function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2552
2552
|
}
|
|
2553
2553
|
},
|
|
2554
2554
|
media: { legacyHost: "https://images.museumwnf.org" },
|
|
2555
|
-
links: { ...
|
|
2555
|
+
links: { ...a },
|
|
2556
2556
|
projectColors: {
|
|
2557
|
-
...Eo(
|
|
2557
|
+
...Eo(h),
|
|
2558
2558
|
...r
|
|
2559
2559
|
},
|
|
2560
|
-
noticeProjects:
|
|
2560
|
+
noticeProjects: s,
|
|
2561
2561
|
site: { origin: n },
|
|
2562
|
-
exhibition: jo(
|
|
2562
|
+
exhibition: jo(m),
|
|
2563
2563
|
extraViews: po("exhibition", {
|
|
2564
|
-
creditsBody:
|
|
2565
|
-
partnerObjects:
|
|
2564
|
+
creditsBody: c,
|
|
2565
|
+
partnerObjects: l,
|
|
2566
2566
|
pages: !0
|
|
2567
2567
|
}),
|
|
2568
|
-
legacyRoutes:
|
|
2568
|
+
legacyRoutes: p === !1 ? [] : [
|
|
2569
2569
|
{
|
|
2570
2570
|
path: "/database-item/:uid(.*)/:language",
|
|
2571
2571
|
async resolve({ uid: e }) {
|
|
2572
|
-
await
|
|
2573
|
-
let t = go(
|
|
2572
|
+
await i(["items"]);
|
|
2573
|
+
let t = go(it.value, e);
|
|
2574
2574
|
return t ? {
|
|
2575
2575
|
name: "item",
|
|
2576
2576
|
params: { id: t.id }
|
|
@@ -2580,7 +2580,7 @@ function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2580
2580
|
{
|
|
2581
2581
|
path: "/partner/:country/:id/:language",
|
|
2582
2582
|
async resolve({ country: e, id: t }) {
|
|
2583
|
-
let n = await
|
|
2583
|
+
let n = await _(e, t);
|
|
2584
2584
|
return n ? {
|
|
2585
2585
|
name: "partner",
|
|
2586
2586
|
params: { id: n.id }
|
|
@@ -2590,7 +2590,7 @@ function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2590
2590
|
{
|
|
2591
2591
|
path: "/partner-objects/:country/:id/:page",
|
|
2592
2592
|
async resolve({ country: e, id: t, page: n }) {
|
|
2593
|
-
let r = await
|
|
2593
|
+
let r = await _(e, t);
|
|
2594
2594
|
return r ? {
|
|
2595
2595
|
name: "partner-objects",
|
|
2596
2596
|
params: { id: r.id },
|
|
@@ -2601,7 +2601,7 @@ function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2601
2601
|
{
|
|
2602
2602
|
path: "/institution/:country/:id/:language",
|
|
2603
2603
|
async resolve({ country: e, id: t }) {
|
|
2604
|
-
let n = await
|
|
2604
|
+
let n = await _(e, t);
|
|
2605
2605
|
return n ? {
|
|
2606
2606
|
name: "institution",
|
|
2607
2607
|
params: { id: n.id }
|
|
@@ -2611,7 +2611,7 @@ function Mo({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
2611
2611
|
{
|
|
2612
2612
|
path: "/institution-monuments/:country/:id/:page",
|
|
2613
2613
|
async resolve({ country: e, id: t, page: n }) {
|
|
2614
|
-
let r = await
|
|
2614
|
+
let r = await _(e, t);
|
|
2615
2615
|
return r ? {
|
|
2616
2616
|
name: "institution-monuments",
|
|
2617
2617
|
params: { id: r.id },
|
|
@@ -2670,70 +2670,70 @@ var No = {
|
|
|
2670
2670
|
},
|
|
2671
2671
|
setup(e) {
|
|
2672
2672
|
let t = e;
|
|
2673
|
-
function
|
|
2673
|
+
function n(e) {
|
|
2674
2674
|
let t = String(e ?? "").replace(/<[^>]*>/g, " ");
|
|
2675
2675
|
return (typeof DOMParser > "u" ? t : new DOMParser().parseFromString(t, "text/html").documentElement.textContent ?? "").replace(/\s+/g, " ").trim();
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2677
|
+
function r(e, t) {
|
|
2678
2678
|
if (!e || e.length <= t) return e;
|
|
2679
2679
|
let n = e.lastIndexOf(" ", t);
|
|
2680
2680
|
return `${e.slice(0, n > 0 ? n : t)}...`;
|
|
2681
2681
|
}
|
|
2682
|
-
let
|
|
2682
|
+
let i = x(() => t.partners.length ? t.partners.map((e) => ({
|
|
2683
2683
|
id: e.id,
|
|
2684
2684
|
name: e.plainName,
|
|
2685
2685
|
logo: e.pictures?.[0]?.url ?? e.logos?.[0]?.url ?? null,
|
|
2686
2686
|
city: e.city,
|
|
2687
2687
|
country: e.country,
|
|
2688
|
-
description:
|
|
2688
|
+
description: r(n(e.description), t.descriptionLength),
|
|
2689
2689
|
route: e.route,
|
|
2690
2690
|
objectsRoute: e.objectsRoute ?? null
|
|
2691
|
-
})) : t.records),
|
|
2692
|
-
function
|
|
2693
|
-
|
|
2691
|
+
})) : t.records), a = P(0), o = null;
|
|
2692
|
+
function s(e) {
|
|
2693
|
+
a.value = e, c();
|
|
2694
2694
|
}
|
|
2695
|
-
function
|
|
2696
|
-
|
|
2697
|
-
|
|
2695
|
+
function c() {
|
|
2696
|
+
o && clearInterval(o), i.value.length > 0 && (o = setInterval(() => {
|
|
2697
|
+
a.value = (a.value + 1) % i.value.length;
|
|
2698
2698
|
}, Go));
|
|
2699
2699
|
}
|
|
2700
|
-
return
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
key:
|
|
2700
|
+
return M(c), j(() => o && clearInterval(o)), (t, n) => i.value.length ? (N(), w("section", No, [
|
|
2701
|
+
T("h2", Po, I(t.$t(e.headingEntry)), 1),
|
|
2702
|
+
T("div", Fo, [(N(!0), w(b, null, F(i.value, (n, r) => z((N(), w("div", {
|
|
2703
|
+
key: n.id,
|
|
2704
2704
|
class: "mwnf-featured-partners__card"
|
|
2705
|
-
}, [
|
|
2706
|
-
src:
|
|
2707
|
-
alt:
|
|
2705
|
+
}, [n.logo ? (N(), w("span", Io, [T("img", {
|
|
2706
|
+
src: n.logo,
|
|
2707
|
+
alt: n.name,
|
|
2708
2708
|
class: "mwnf-featured-partners__logo"
|
|
2709
|
-
}, null, 8, Lo)])) :
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2709
|
+
}, null, 8, Lo)])) : C("", !0), T("span", Ro, [
|
|
2710
|
+
T("span", zo, I(n.name), 1),
|
|
2711
|
+
T("span", Bo, [n.city ? (N(), w("span", Vo, I(n.city) + ", ", 1)) : C("", !0), D(I(n.country), 1)]),
|
|
2712
|
+
T("span", Ho, I(n.description), 1),
|
|
2713
|
+
n.route ? (N(), S(V, {
|
|
2714
2714
|
key: 0,
|
|
2715
|
-
to:
|
|
2715
|
+
to: n.route,
|
|
2716
2716
|
class: "mwnf-featured-partners__more"
|
|
2717
2717
|
}, {
|
|
2718
|
-
default:
|
|
2718
|
+
default: R(() => [D(I(t.$t(e.readMoreEntry)) + " >>", 1)]),
|
|
2719
2719
|
_: 1
|
|
2720
|
-
}, 8, ["to"])) :
|
|
2721
|
-
|
|
2720
|
+
}, 8, ["to"])) : C("", !0),
|
|
2721
|
+
n.objectsRoute ? (N(), S(V, {
|
|
2722
2722
|
key: 1,
|
|
2723
|
-
to:
|
|
2723
|
+
to: n.objectsRoute,
|
|
2724
2724
|
class: "mwnf-featured-partners__more"
|
|
2725
2725
|
}, {
|
|
2726
|
-
default:
|
|
2726
|
+
default: R(() => [D(I(t.$t(e.viewObjectsEntry)) + " >>", 1)]),
|
|
2727
2727
|
_: 1
|
|
2728
|
-
}, 8, ["to"])) :
|
|
2729
|
-
])])), [[
|
|
2730
|
-
|
|
2728
|
+
}, 8, ["to"])) : C("", !0)
|
|
2729
|
+
])])), [[oe, r === a.value]])), 128))]),
|
|
2730
|
+
i.value.length > 1 ? (N(), w("div", Uo, [(N(!0), w(b, null, F(i.value, (e, n) => (N(), w("button", {
|
|
2731
2731
|
key: e.id,
|
|
2732
|
-
class:
|
|
2732
|
+
class: k(["mwnf-featured-partners__bullet", { "mwnf-featured-partners__bullet--active": n === a.value }]),
|
|
2733
2733
|
"aria-label": `${t.$t("core.action.show")} ${e.name}`,
|
|
2734
|
-
onClick: (e) =>
|
|
2735
|
-
}, null, 10, Wo))), 128))])) :
|
|
2736
|
-
])) :
|
|
2734
|
+
onClick: (e) => s(n)
|
|
2735
|
+
}, null, 10, Wo))), 128))])) : C("", !0)
|
|
2736
|
+
])) : C("", !0);
|
|
2737
2737
|
}
|
|
2738
2738
|
}, qo = { class: "mwnf-sibling-galleries" }, Jo = {
|
|
2739
2739
|
key: 0,
|
|
@@ -2782,89 +2782,89 @@ var No = {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
},
|
|
2784
2784
|
setup(e) {
|
|
2785
|
-
return (t,
|
|
2785
|
+
return (t, n) => (N(), w("section", qo, [e.galleries.length ? (N(), w("div", Jo, [T("div", Yo, [T("p", Xo, I(t.$t(e.galleriesHeadingEntry)), 1), e.seeMoreGalleriesHref ? (N(), w("a", {
|
|
2786
2786
|
key: 0,
|
|
2787
2787
|
href: e.seeMoreGalleriesHref,
|
|
2788
2788
|
target: "_blank",
|
|
2789
2789
|
rel: "noopener",
|
|
2790
2790
|
class: "mwnf-sibling-galleries__see-more"
|
|
2791
|
-
},
|
|
2791
|
+
}, I(t.$t(e.seeMoreGalleriesEntry)) + " » ", 9, Zo)) : C("", !0)]), T("div", Qo, [(N(!0), w(b, null, F(e.galleries, (e) => (N(), S(V, {
|
|
2792
2792
|
key: e.id,
|
|
2793
2793
|
to: e.route,
|
|
2794
|
-
class:
|
|
2794
|
+
class: k(["mwnf-sibling-galleries__gallery", { "mwnf-sibling-galleries__gallery--no-link": !e.route }])
|
|
2795
2795
|
}, {
|
|
2796
|
-
default:
|
|
2796
|
+
default: R(() => [e.image ? (N(), w("span", $o, [T("img", {
|
|
2797
2797
|
src: e.image,
|
|
2798
2798
|
alt: e.name
|
|
2799
|
-
}, null, 8, es)])) : (
|
|
2799
|
+
}, null, 8, es)])) : (N(), w("span", ts)), T("p", ns, I(e.name), 1)]),
|
|
2800
2800
|
_: 2
|
|
2801
|
-
}, 1032, ["to", "class"]))), 128))])])) :
|
|
2801
|
+
}, 1032, ["to", "class"]))), 128))])])) : C("", !0), e.museums.length ? (N(), w("div", rs, [T("div", is, I(t.$t(e.museumsHeadingEntry)), 1), T("div", as, [(N(!0), w(b, null, F(e.museums, (e) => (N(), w("a", {
|
|
2802
2802
|
key: e.name,
|
|
2803
2803
|
href: e.href || e.to,
|
|
2804
2804
|
target: "_blank",
|
|
2805
2805
|
rel: "noopener",
|
|
2806
2806
|
class: "mwnf-sibling-galleries__museum",
|
|
2807
|
-
style:
|
|
2807
|
+
style: A({
|
|
2808
2808
|
"--mwnf-museum-bg": e.accent || "var(--mwnf-color-border)",
|
|
2809
2809
|
"--mwnf-museum-text": e.textColor || "inherit"
|
|
2810
2810
|
})
|
|
2811
|
-
}, [e.image ? (
|
|
2811
|
+
}, [e.image ? (N(), w("div", ss, [T("img", {
|
|
2812
2812
|
src: e.image,
|
|
2813
2813
|
alt: ""
|
|
2814
|
-
}, null, 8, cs)])) : (
|
|
2814
|
+
}, null, 8, cs)])) : (N(), w("div", ls, I(e.name.split(" ").map((e) => e[0]).join("")), 1)), T("p", us, I(e.name), 1)], 12, os))), 128))])])) : C("", !0)]));
|
|
2815
2815
|
}
|
|
2816
|
-
}, fs = /* @__PURE__ */
|
|
2816
|
+
}, fs = /* @__PURE__ */ X({ default: () => bs }), ps = { class: "mwnf-dxa-home" }, ms = {
|
|
2817
2817
|
key: 0,
|
|
2818
2818
|
class: "mwnf-dxa-home-logos"
|
|
2819
2819
|
}, hs = { class: "mwnf-dxa-home-logos__label" }, gs = { class: "mwnf-dxa-home-logos__list" }, _s = ["src", "alt"], vs = 3, ys = 4, bs = {
|
|
2820
2820
|
__name: "Home",
|
|
2821
2821
|
setup(e) {
|
|
2822
|
-
let { t, locale: n } =
|
|
2823
|
-
|
|
2824
|
-
o.value =
|
|
2822
|
+
let { t, locale: n } = p(), r = g(), i = x(() => r.links ?? {}), a = x(() => Fe(vs)), o = P([]);
|
|
2823
|
+
M(() => {
|
|
2824
|
+
o.value = _e(ys);
|
|
2825
2825
|
});
|
|
2826
|
-
let s =
|
|
2826
|
+
let s = x(() => o.value.map((e) => ({
|
|
2827
2827
|
id: e.id,
|
|
2828
2828
|
name: e.names?.[n.value] ?? e.names?.en ?? e.slug,
|
|
2829
|
-
image: e.image_path ?
|
|
2830
|
-
route:
|
|
2831
|
-
}))), c =
|
|
2829
|
+
image: e.image_path ? Me(e.image_path, "zoom") : null,
|
|
2830
|
+
route: xe(e)
|
|
2831
|
+
}))), c = x(() => [
|
|
2832
2832
|
{
|
|
2833
2833
|
name: t("core.project.islamicArt"),
|
|
2834
2834
|
href: `${i.value.islamicArt}/`,
|
|
2835
|
-
image:
|
|
2835
|
+
image: Mt(r.chrome, "dia.jpg"),
|
|
2836
2836
|
accent: "var(--mwnf-project-ISLandEPM, #ffcc00)",
|
|
2837
2837
|
textColor: "var(--mwnf-project-ISLandEPM-text, #000000)"
|
|
2838
2838
|
},
|
|
2839
2839
|
{
|
|
2840
2840
|
name: t("core.project.baroqueArt"),
|
|
2841
2841
|
href: `${i.value.baroqueArt}/`,
|
|
2842
|
-
image:
|
|
2842
|
+
image: Mt(r.chrome, "dba.jpg"),
|
|
2843
2843
|
accent: "var(--mwnf-project-DBA, #001d66)",
|
|
2844
2844
|
textColor: "var(--mwnf-project-DBA-text, #ffffff)"
|
|
2845
2845
|
},
|
|
2846
2846
|
{
|
|
2847
2847
|
name: t("core.project.sharingHistory"),
|
|
2848
2848
|
href: `${i.value.sharingHistory}/`,
|
|
2849
|
-
image:
|
|
2849
|
+
image: Mt(r.chrome, "sh.jpg"),
|
|
2850
2850
|
accent: "var(--mwnf-project-AWE, #900000)",
|
|
2851
2851
|
textColor: "var(--mwnf-project-AWE-text, #ffffff)"
|
|
2852
2852
|
}
|
|
2853
|
-
]), l =
|
|
2854
|
-
image:
|
|
2853
|
+
]), l = x(() => (r.homeLogos ?? []).map((e) => ({
|
|
2854
|
+
image: At(r.chrome, e.image) ?? Me(e.image, "gallery_logo"),
|
|
2855
2855
|
href: e.href ?? "",
|
|
2856
2856
|
alt: e.alt ? t(e.alt) : ""
|
|
2857
|
-
})).filter((e) => e.image)),
|
|
2858
|
-
return (e, n) => (
|
|
2859
|
-
|
|
2860
|
-
l.value.length ? (
|
|
2857
|
+
})).filter((e) => e.image)), u = x(() => `${i.value.galleries}/list`);
|
|
2858
|
+
return (e, n) => (N(), w("div", ps, [
|
|
2859
|
+
O(Ko, { partners: a.value }, null, 8, ["partners"]),
|
|
2860
|
+
l.value.length ? (N(), w("section", ms, [T("p", hs, I(L(t)("gallery.home.logosLabel")), 1), T("ul", gs, [(N(!0), w(b, null, F(l.value, (e) => (N(), w("li", { key: e.image }, [(N(), S(ne(e.href ? "a" : "span"), {
|
|
2861
2861
|
class: "mwnf-dxa-home-logos__logo",
|
|
2862
2862
|
href: e.href || void 0,
|
|
2863
2863
|
title: e.alt || void 0,
|
|
2864
2864
|
target: e.href ? "_blank" : void 0,
|
|
2865
2865
|
rel: e.href ? "noopener" : void 0
|
|
2866
2866
|
}, {
|
|
2867
|
-
default:
|
|
2867
|
+
default: R(() => [T("img", {
|
|
2868
2868
|
src: e.image,
|
|
2869
2869
|
alt: e.alt
|
|
2870
2870
|
}, null, 8, _s)]),
|
|
@@ -2874,13 +2874,13 @@ var No = {
|
|
|
2874
2874
|
"title",
|
|
2875
2875
|
"target",
|
|
2876
2876
|
"rel"
|
|
2877
|
-
]))]))), 128))])])) :
|
|
2878
|
-
|
|
2877
|
+
]))]))), 128))])])) : C("", !0),
|
|
2878
|
+
O(ds, {
|
|
2879
2879
|
galleries: s.value,
|
|
2880
2880
|
museums: c.value,
|
|
2881
2881
|
"galleries-heading-entry": "gallery.action.visitGalleries",
|
|
2882
2882
|
"see-more-galleries-entry": "gallery.action.seeMoreGalleries",
|
|
2883
|
-
"see-more-galleries-href":
|
|
2883
|
+
"see-more-galleries-href": u.value,
|
|
2884
2884
|
"museums-heading-entry": "gallery.siblings.otherVirtualMuseums"
|
|
2885
2885
|
}, null, 8, [
|
|
2886
2886
|
"galleries",
|
|
@@ -2889,7 +2889,7 @@ var No = {
|
|
|
2889
2889
|
])
|
|
2890
2890
|
]));
|
|
2891
2891
|
}
|
|
2892
|
-
}, xs = /* @__PURE__ */
|
|
2892
|
+
}, xs = /* @__PURE__ */ X({ default: () => Ss }), Ss = {
|
|
2893
2893
|
__name: "ItemDetail",
|
|
2894
2894
|
props: { id: {
|
|
2895
2895
|
type: String,
|
|
@@ -2908,13 +2908,13 @@ var No = {
|
|
|
2908
2908
|
relatedObjects: "gallery.related.objects",
|
|
2909
2909
|
relatedMonuments: "gallery.related.monuments"
|
|
2910
2910
|
};
|
|
2911
|
-
return (n, r) => (
|
|
2911
|
+
return (n, r) => (N(), S(Ft, {
|
|
2912
2912
|
id: e.id,
|
|
2913
|
-
"item-detail":
|
|
2913
|
+
"item-detail": L(Ie),
|
|
2914
2914
|
words: t
|
|
2915
2915
|
}, null, 8, ["id", "item-detail"]));
|
|
2916
2916
|
}
|
|
2917
|
-
}, Cs = /* @__PURE__ */
|
|
2917
|
+
}, Cs = /* @__PURE__ */ X({ default: () => Rs }), ws = { class: "mwnf-dxa-timeline" }, Ts = { class: "mwnf-dxa-timeline__entrance" }, Es = [
|
|
2918
2918
|
"value",
|
|
2919
2919
|
"aria-label",
|
|
2920
2920
|
"onChange"
|
|
@@ -2937,12 +2937,12 @@ var No = {
|
|
|
2937
2937
|
value: ""
|
|
2938
2938
|
}, Fs = ["value"], Is = { class: "mwnf-dxa-timeline__go" }, Ls = ["onClick"], Rs = {
|
|
2939
2939
|
__name: "Timeline",
|
|
2940
|
-
setup(
|
|
2941
|
-
let
|
|
2942
|
-
...
|
|
2940
|
+
setup(t) {
|
|
2941
|
+
let n = {
|
|
2942
|
+
...Ne,
|
|
2943
2943
|
entrance: !0
|
|
2944
2944
|
};
|
|
2945
|
-
function
|
|
2945
|
+
function r({ filters: e, options: t, go: n, t: r }) {
|
|
2946
2946
|
if (!e.country) {
|
|
2947
2947
|
window.alert(r("gallery.timeline.alertCountry"));
|
|
2948
2948
|
return;
|
|
@@ -2958,58 +2958,58 @@ var No = {
|
|
|
2958
2958
|
end: e.end || a.at(-1)?.value
|
|
2959
2959
|
});
|
|
2960
2960
|
}
|
|
2961
|
-
return (
|
|
2962
|
-
spec:
|
|
2961
|
+
return (t, i) => (N(), w("div", ws, [O(Tt, {
|
|
2962
|
+
spec: n,
|
|
2963
2963
|
class: "mwnf-dxa-timeline__form"
|
|
2964
2964
|
}, {
|
|
2965
|
-
form:
|
|
2966
|
-
|
|
2965
|
+
form: R((e) => [T("div", Ts, [
|
|
2966
|
+
T("select", {
|
|
2967
2967
|
class: "mwnf-dxa-timeline__country",
|
|
2968
2968
|
value: e.filters.country,
|
|
2969
2969
|
"aria-label": e.t("gallery.timeline.selectCountry"),
|
|
2970
2970
|
onChange: (t) => e.filters.country = t.target.value
|
|
2971
|
-
}, [
|
|
2971
|
+
}, [T("option", Ds, I(e.t("gallery.timeline.selectCountry")), 1), (N(!0), w(b, null, F(e.countries, (e) => (N(), w("option", {
|
|
2972
2972
|
key: e.value,
|
|
2973
2973
|
value: e.value
|
|
2974
|
-
},
|
|
2975
|
-
|
|
2974
|
+
}, I(e.label), 9, Os))), 128))], 40, Es),
|
|
2975
|
+
T("div", ks, [T("select", {
|
|
2976
2976
|
value: e.filters.begin,
|
|
2977
2977
|
"aria-label": e.t("gallery.timeline.startDate"),
|
|
2978
2978
|
onChange: (t) => e.filters.begin = t.target.value
|
|
2979
|
-
}, [
|
|
2979
|
+
}, [T("option", js, I(e.t("gallery.timeline.startDate")), 1), (N(!0), w(b, null, F(e.options.begin ?? [], (e) => (N(), w("option", {
|
|
2980
2980
|
key: e.value,
|
|
2981
2981
|
value: e.value
|
|
2982
|
-
},
|
|
2982
|
+
}, I(e.label), 9, Ms))), 128))], 40, As), T("select", {
|
|
2983
2983
|
value: e.filters.end,
|
|
2984
2984
|
"aria-label": e.t("gallery.timeline.endDate"),
|
|
2985
2985
|
onChange: (t) => e.filters.end = t.target.value
|
|
2986
|
-
}, [
|
|
2986
|
+
}, [T("option", Ps, I(e.t("gallery.timeline.endDate")), 1), (N(!0), w(b, null, F(e.options.end ?? [], (e) => (N(), w("option", {
|
|
2987
2987
|
key: e.value,
|
|
2988
2988
|
value: e.value
|
|
2989
|
-
},
|
|
2990
|
-
|
|
2989
|
+
}, I(e.label), 9, Fs))), 128))], 40, Ns)]),
|
|
2990
|
+
T("div", Is, [T("button", {
|
|
2991
2991
|
type: "button",
|
|
2992
|
-
onClick: (t) =>
|
|
2993
|
-
},
|
|
2992
|
+
onClick: (t) => r(e)
|
|
2993
|
+
}, I(e.t("core.action.go")), 9, Ls)])
|
|
2994
2994
|
])]),
|
|
2995
2995
|
_: 1
|
|
2996
|
-
}),
|
|
2996
|
+
}), O(L(e), {
|
|
2997
2997
|
class: "mwnf-dxa-timeline__intro",
|
|
2998
2998
|
dir: "auto",
|
|
2999
2999
|
keypath: "gallery.timeline.intro"
|
|
3000
3000
|
})]));
|
|
3001
3001
|
}
|
|
3002
|
-
}, zs = /* @__PURE__ */
|
|
3002
|
+
}, zs = /* @__PURE__ */ X({ default: () => Vs }), Bs = { class: "mwnf-dxa-home" }, Vs = {
|
|
3003
3003
|
__name: "Home",
|
|
3004
3004
|
setup(e) {
|
|
3005
|
-
return (e, t) => (
|
|
3005
|
+
return (e, t) => (N(), w("div", Bs));
|
|
3006
3006
|
}
|
|
3007
|
-
}, Hs = /* @__PURE__ */
|
|
3007
|
+
}, Hs = /* @__PURE__ */ X({ default: () => Ws }), Us = { class: "mwnf-dxa-about" }, Ws = {
|
|
3008
3008
|
__name: "About",
|
|
3009
3009
|
setup(e) {
|
|
3010
|
-
return (e, t) => (
|
|
3010
|
+
return (e, t) => (N(), w("div", Us, [O(It, { "about-mode": "" })]));
|
|
3011
3011
|
}
|
|
3012
|
-
}, Gs = /* @__PURE__ */
|
|
3012
|
+
}, Gs = /* @__PURE__ */ X({ default: () => cc }), Ks = { class: "mwnf-dxa-themes-page" }, qs = { class: "mwnf-dxa-themes-page__container" }, Js = ["onClick"], Ys = ["innerHTML"], Xs = {
|
|
3013
3013
|
key: 0,
|
|
3014
3014
|
class: "mwnf-dxa-themes-page__strips"
|
|
3015
3015
|
}, Zs = ["src"], Qs = {
|
|
@@ -3021,28 +3021,28 @@ var No = {
|
|
|
3021
3021
|
}, nc = ["innerHTML"], rc = { class: "mwnf-dxa-themes-page__info" }, ic = { class: "mwnf-dxa-themes-page__description" }, ac = { class: "mwnf-dxa-themes-page__subthemes" }, oc = { class: "mwnf-dxa-themes-page__subthemes-label" }, sc = { class: "mwnf-dxa-themes-page__gallery" }, cc = {
|
|
3022
3022
|
__name: "Themes",
|
|
3023
3023
|
setup(e) {
|
|
3024
|
-
let { listedThemes: t, pictureById: n, pictureParent: r, romanFor: i, themeText: a } =
|
|
3025
|
-
function
|
|
3026
|
-
|
|
3024
|
+
let { listedThemes: t, pictureById: n, pictureParent: r, romanFor: i, themeText: a } = ft, { t: o, locale: s } = p(), u = P(!1), d = P(null);
|
|
3025
|
+
function f(e) {
|
|
3026
|
+
u.value || (d.value = d.value === e ? null : e);
|
|
3027
3027
|
}
|
|
3028
|
-
function
|
|
3029
|
-
|
|
3028
|
+
function m() {
|
|
3029
|
+
u.value = !u.value, d.value = null;
|
|
3030
3030
|
}
|
|
3031
|
-
function
|
|
3031
|
+
function h(e) {
|
|
3032
3032
|
return !e || e.length <= 250 ? e ?? "" : `${e.substring(0, e.lastIndexOf(" ", 250))}...`;
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3034
|
+
function g(e) {
|
|
3035
3035
|
let t = e ? r(e) : null;
|
|
3036
3036
|
if (!t) return "";
|
|
3037
|
-
let n =
|
|
3037
|
+
let n = Qe("items", t.id, s.value);
|
|
3038
3038
|
return [
|
|
3039
|
-
|
|
3039
|
+
K("items", t.id),
|
|
3040
3040
|
n.holder,
|
|
3041
3041
|
n.location,
|
|
3042
|
-
|
|
3042
|
+
K("countries", t.country_id)
|
|
3043
3043
|
].filter(Boolean).join(", ");
|
|
3044
3044
|
}
|
|
3045
|
-
let
|
|
3045
|
+
let _ = x(() => t.value.map((e, t) => {
|
|
3046
3046
|
let r = e.cover_picture_item_id ? n.value.get(e.cover_picture_item_id) : null, o = a(e, s.value);
|
|
3047
3047
|
return {
|
|
3048
3048
|
index: t,
|
|
@@ -3050,66 +3050,66 @@ var No = {
|
|
|
3050
3050
|
title: o.title ?? e.internal_name ?? "",
|
|
3051
3051
|
numeral: i(e.display_order),
|
|
3052
3052
|
cover: r?.image_url ?? "",
|
|
3053
|
-
caption:
|
|
3054
|
-
excerpt:
|
|
3055
|
-
to:
|
|
3053
|
+
caption: g(r),
|
|
3054
|
+
excerpt: h(l(String(o.presentation ?? ""))),
|
|
3055
|
+
to: Lt(e),
|
|
3056
3056
|
gallery: {
|
|
3057
3057
|
name: "theme-gallery",
|
|
3058
3058
|
params: { id: String(e.display_order - 1) }
|
|
3059
3059
|
},
|
|
3060
3060
|
subThemes: (e.sub_themes ?? []).map((e, t) => ({
|
|
3061
3061
|
label: `${t + 1}. ${a(e, s.value).title ?? e.internal_name ?? ""}`,
|
|
3062
|
-
to:
|
|
3062
|
+
to: Lt(e)
|
|
3063
3063
|
}))
|
|
3064
3064
|
};
|
|
3065
3065
|
}));
|
|
3066
|
-
return (e, t) => (
|
|
3066
|
+
return (e, t) => (N(), w("div", Ks, [T("div", qs, [T("div", {
|
|
3067
3067
|
class: "mwnf-dxa-themes-page__show-all",
|
|
3068
|
-
onClick:
|
|
3069
|
-
}, [
|
|
3068
|
+
onClick: m
|
|
3069
|
+
}, [T("span", null, I(u.value ? L(o)("exhibition.themes.collapseAll") : L(o)("exhibition.themes.expandAll")), 1)]), (N(!0), w(b, null, F(_.value, (e) => (N(), w("div", {
|
|
3070
3070
|
key: e.id,
|
|
3071
3071
|
class: "mwnf-dxa-themes-page__theme"
|
|
3072
|
-
}, [
|
|
3073
|
-
class:
|
|
3074
|
-
onClick: (t) =>
|
|
3075
|
-
}, [
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
])], 10, Js),
|
|
3072
|
+
}, [T("div", {
|
|
3073
|
+
class: k(["mwnf-dxa-themes-page__title", { "mwnf-dxa-themes-page__title--fixed": u.value }]),
|
|
3074
|
+
onClick: (t) => f(e.index)
|
|
3075
|
+
}, [T("span", null, [
|
|
3076
|
+
D(I(L(o)("exhibition.theme.romanLabel")) + " " + I(e.numeral) + " ▪ ", 1),
|
|
3077
|
+
T("span", { innerHTML: L(c)(e.title) }, null, 8, Ys),
|
|
3078
|
+
u.value ? C("", !0) : (N(), w(b, { key: 0 }, [D(I(d.value === e.index ? "▴" : "▾"), 1)], 64))
|
|
3079
|
+
])], 10, Js), d.value !== e.index && !u.value ? (N(), w("div", Xs, [(N(), w(b, null, F(4, (t) => T("img", {
|
|
3080
3080
|
key: t,
|
|
3081
3081
|
src: e.cover,
|
|
3082
3082
|
alt: ""
|
|
3083
|
-
}, null, 8, Zs)), 64))])) : (
|
|
3083
|
+
}, null, 8, Zs)), 64))])) : (N(), w("div", Qs, [T("div", $s, [e.cover ? (N(), w("img", {
|
|
3084
3084
|
key: 0,
|
|
3085
3085
|
src: e.cover,
|
|
3086
|
-
alt:
|
|
3087
|
-
}, null, 8, ec)) :
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
t[0] ||=
|
|
3091
|
-
|
|
3086
|
+
alt: L(l)(e.title)
|
|
3087
|
+
}, null, 8, ec)) : C("", !0), e.caption ? (N(), w("div", tc, [T("span", { innerHTML: L(c)(e.caption) }, null, 8, nc)])) : C("", !0)]), T("div", rc, [
|
|
3088
|
+
T("div", ic, [
|
|
3089
|
+
T("span", null, I(e.excerpt), 1),
|
|
3090
|
+
t[0] ||= D(" " + I(" "), -1),
|
|
3091
|
+
O(L(J), {
|
|
3092
3092
|
to: e.to,
|
|
3093
3093
|
class: "mwnf-dxa-themes-page__link mwnf-dxa-themes-page__see-more"
|
|
3094
3094
|
}, {
|
|
3095
|
-
default:
|
|
3095
|
+
default: R(() => [D(I(L(o)("exhibition.themes.seeMore")), 1)]),
|
|
3096
3096
|
_: 1
|
|
3097
3097
|
}, 8, ["to"])
|
|
3098
3098
|
]),
|
|
3099
|
-
|
|
3099
|
+
T("div", ac, [T("div", oc, I(L(o)("exhibition.theme.inThisTheme")), 1), (N(!0), w(b, null, F(e.subThemes, (e) => (N(), w("div", { key: e.label }, [O(L(J), {
|
|
3100
3100
|
to: e.to,
|
|
3101
3101
|
class: "mwnf-dxa-themes-page__link"
|
|
3102
3102
|
}, {
|
|
3103
|
-
default:
|
|
3103
|
+
default: R(() => [D(I(e.label), 1)]),
|
|
3104
3104
|
_: 2
|
|
3105
3105
|
}, 1032, ["to"])]))), 128))]),
|
|
3106
|
-
|
|
3107
|
-
default:
|
|
3106
|
+
T("div", sc, [O(L(J), { to: e.gallery }, {
|
|
3107
|
+
default: R(() => [D(I(L(o)("exhibition.themes.seeGallery")) + " " + I(e.numeral), 1)]),
|
|
3108
3108
|
_: 2
|
|
3109
3109
|
}, 1032, ["to"])])
|
|
3110
3110
|
])]))]))), 128))])]));
|
|
3111
3111
|
}
|
|
3112
|
-
}, lc = /* @__PURE__ */
|
|
3112
|
+
}, lc = /* @__PURE__ */ X({ default: () => Dc }), uc = {
|
|
3113
3113
|
key: 0,
|
|
3114
3114
|
class: "mwnf-dxa-theme-gallery-page"
|
|
3115
3115
|
}, dc = { class: "mwnf-dxa-theme-gallery-page__header" }, fc = ["innerHTML"], pc = {
|
|
@@ -3129,38 +3129,38 @@ var No = {
|
|
|
3129
3129
|
class: "mwnf-loader"
|
|
3130
3130
|
}, Dc = {
|
|
3131
3131
|
__name: "ThemeGallery",
|
|
3132
|
-
setup(
|
|
3133
|
-
let { pictureParent:
|
|
3134
|
-
let e = Number(
|
|
3132
|
+
setup(e) {
|
|
3133
|
+
let { pictureParent: t, romanFor: n, themeByRouteId: r, themeText: i, themePictures: a } = ft, o = Y(), s = Et(), { t: l, locale: u } = p(), d = x(() => r(o.params.id)), f = x(() => d.value?.sub_themes ?? []), m = x(() => {
|
|
3134
|
+
let e = Number(o.params.subtheme);
|
|
3135
3135
|
return Number.isInteger(e) && e >= 1 && e <= f.value.length ? e : null;
|
|
3136
|
-
}),
|
|
3137
|
-
function
|
|
3138
|
-
|
|
3136
|
+
}), h = (e) => i(e, u.value).title ?? e?.internal_name ?? "";
|
|
3137
|
+
function g(e) {
|
|
3138
|
+
s.push({
|
|
3139
3139
|
name: "theme-gallery",
|
|
3140
3140
|
params: {
|
|
3141
|
-
id:
|
|
3141
|
+
id: o.params.id,
|
|
3142
3142
|
subtheme: e ? String(e) : ""
|
|
3143
3143
|
}
|
|
3144
3144
|
});
|
|
3145
3145
|
}
|
|
3146
|
-
function
|
|
3146
|
+
function _(e) {
|
|
3147
3147
|
return e && e.length > 80 ? `${e.slice(0, 80)}...` : e ?? "";
|
|
3148
3148
|
}
|
|
3149
|
-
let
|
|
3150
|
-
let e =
|
|
3151
|
-
for (let i of e) for (let e of
|
|
3152
|
-
let a =
|
|
3149
|
+
let v = x(() => {
|
|
3150
|
+
let e = m.value ? [f.value[m.value - 1]] : f.value.length ? f.value : [d.value].filter(Boolean), n = [], r = /* @__PURE__ */ new Set();
|
|
3151
|
+
for (let i of e) for (let e of a(i)) {
|
|
3152
|
+
let a = t(e);
|
|
3153
3153
|
if (!a || !e.image_url || r.has(e.image_url)) continue;
|
|
3154
3154
|
r.add(e.image_url);
|
|
3155
|
-
let o =
|
|
3156
|
-
|
|
3155
|
+
let o = Qe("items", a.id, u.value), s = Qe("themes", `${i.id}/${e.picture_item_id}`, u.value).image_caption ?? "", l = c(K("items", a.id));
|
|
3156
|
+
n.push({
|
|
3157
3157
|
id: e.picture_item_id,
|
|
3158
3158
|
image: e.image_url,
|
|
3159
|
-
imageAlt:
|
|
3160
|
-
name: s ? `${
|
|
3161
|
-
date:
|
|
3162
|
-
partner: o.holder ||
|
|
3163
|
-
place: [o.location,
|
|
3159
|
+
imageAlt: K("items", a.id),
|
|
3160
|
+
name: s ? `${c(s)}, ${l}` : l,
|
|
3161
|
+
date: _(o.dates),
|
|
3162
|
+
partner: o.holder || K("partners", a.partner_id),
|
|
3163
|
+
place: [o.location, K("countries", a.country_id)].filter(Boolean).join(", "),
|
|
3164
3164
|
project: "",
|
|
3165
3165
|
to: {
|
|
3166
3166
|
name: "item",
|
|
@@ -3169,57 +3169,57 @@ var No = {
|
|
|
3169
3169
|
start: a.start_date ?? 0
|
|
3170
3170
|
});
|
|
3171
3171
|
}
|
|
3172
|
-
return
|
|
3173
|
-
}),
|
|
3174
|
-
|
|
3172
|
+
return n.sort((e, t) => (e.start ?? 0) - (t.start ?? 0));
|
|
3173
|
+
}), y = P(!1), S = () => {
|
|
3174
|
+
y.value = document.body.scrollHeight > window.innerHeight;
|
|
3175
3175
|
};
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
}),
|
|
3179
|
-
window.removeEventListener("scroll",
|
|
3176
|
+
M(() => {
|
|
3177
|
+
S(), window.addEventListener("scroll", S), window.addEventListener("resize", S);
|
|
3178
|
+
}), j(() => {
|
|
3179
|
+
window.removeEventListener("scroll", S), window.removeEventListener("resize", S);
|
|
3180
3180
|
});
|
|
3181
|
-
let
|
|
3181
|
+
let E = () => window.scrollTo({
|
|
3182
3182
|
top: 0,
|
|
3183
3183
|
behavior: "smooth"
|
|
3184
3184
|
});
|
|
3185
|
-
return (
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3185
|
+
return (e, t) => d.value ? (N(), w("div", uc, [
|
|
3186
|
+
O(B),
|
|
3187
|
+
T("div", dc, [T("span", null, [
|
|
3188
|
+
D(I(L(l)("exhibition.theme.romanLabel")) + " " + I(L(n)(d.value.display_order)) + " | ", 1),
|
|
3189
|
+
T("span", {
|
|
3190
3190
|
class: "mwnf-dxa-theme-gallery-page__bold",
|
|
3191
|
-
innerHTML:
|
|
3191
|
+
innerHTML: L(c)(h(d.value))
|
|
3192
3192
|
}, null, 8, fc),
|
|
3193
|
-
|
|
3194
|
-
|
|
3193
|
+
m.value ? (N(), w("span", pc, [t[2] ||= D(" ▪ ", -1), T("span", { innerHTML: L(c)(h(f.value[m.value - 1])) }, null, 8, mc)])) : C("", !0),
|
|
3194
|
+
D(" | " + I(L(l)("exhibition.theme.galleryLabel")), 1)
|
|
3195
3195
|
])]),
|
|
3196
|
-
|
|
3197
|
-
rows:
|
|
3196
|
+
T("div", hc, [T("div", gc, [T("div", _c, [O($, {
|
|
3197
|
+
rows: v.value,
|
|
3198
3198
|
family: "exhibition"
|
|
3199
|
-
}, null, 8, ["rows"])]),
|
|
3200
|
-
|
|
3201
|
-
|
|
3199
|
+
}, null, 8, ["rows"])]), T("div", vc, [
|
|
3200
|
+
T("div", yc, I(L(l)("exhibition.themeGallery.filterBy")), 1),
|
|
3201
|
+
T("select", {
|
|
3202
3202
|
class: "mwnf-dxa-theme-gallery-page__select",
|
|
3203
|
-
disabled: !
|
|
3204
|
-
value:
|
|
3205
|
-
onChange:
|
|
3206
|
-
}, [
|
|
3203
|
+
disabled: !v.value.length,
|
|
3204
|
+
value: m.value ? String(m.value) : "",
|
|
3205
|
+
onChange: t[0] ||= (e) => g(e.target.value)
|
|
3206
|
+
}, [T("option", xc, I(L(l)("exhibition.themeGallery.select")), 1), (N(!0), w(b, null, F(f.value, (e, t) => (N(), w("option", {
|
|
3207
3207
|
key: e.id,
|
|
3208
3208
|
value: String(t + 1)
|
|
3209
|
-
},
|
|
3210
|
-
|
|
3209
|
+
}, I(t + 1) + ". " + I(h(e)), 9, Sc))), 128))], 40, bc),
|
|
3210
|
+
m.value ? (N(), w("div", Cc, [T("button", {
|
|
3211
3211
|
type: "button",
|
|
3212
|
-
onClick:
|
|
3213
|
-
},
|
|
3212
|
+
onClick: t[1] ||= (e) => g("")
|
|
3213
|
+
}, I(L(l)("exhibition.theme.seeAllInTheme")), 1)])) : C("", !0)
|
|
3214
3214
|
])])]),
|
|
3215
|
-
|
|
3215
|
+
y.value ? (N(), w("div", wc, [T("button", {
|
|
3216
3216
|
type: "button",
|
|
3217
|
-
"aria-label":
|
|
3218
|
-
onClick:
|
|
3219
|
-
}, "⌃", 8, Tc)])) :
|
|
3220
|
-
])) : (
|
|
3217
|
+
"aria-label": L(l)("exhibition.themeGallery.top"),
|
|
3218
|
+
onClick: E
|
|
3219
|
+
}, "⌃", 8, Tc)])) : C("", !0)
|
|
3220
|
+
])) : (N(), w("div", Ec, I(L(l)("exhibition.theme.notInExhibition")), 1));
|
|
3221
3221
|
}
|
|
3222
|
-
}, Oc = /* @__PURE__ */
|
|
3222
|
+
}, Oc = /* @__PURE__ */ X({ default: () => kc }), kc = {
|
|
3223
3223
|
__name: "ItemDetail",
|
|
3224
3224
|
props: { id: {
|
|
3225
3225
|
type: String,
|
|
@@ -3237,97 +3237,97 @@ var No = {
|
|
|
3237
3237
|
relatedVideos: "exhibition.sheet.relatedVideos",
|
|
3238
3238
|
relatedObjects: "exhibition.related.objects",
|
|
3239
3239
|
relatedMonuments: "exhibition.related.monuments"
|
|
3240
|
-
}, n = (e) =>
|
|
3241
|
-
return (r, i) => (
|
|
3240
|
+
}, n = (e) => G.value.get(e);
|
|
3241
|
+
return (r, i) => (N(), S(Ft, {
|
|
3242
3242
|
id: e.id,
|
|
3243
|
-
"item-detail":
|
|
3243
|
+
"item-detail": L(ut),
|
|
3244
3244
|
"data-getter": n,
|
|
3245
3245
|
words: t,
|
|
3246
3246
|
class: "mwnf-dxa-exhibition-item"
|
|
3247
3247
|
}, null, 8, ["id", "item-detail"]));
|
|
3248
3248
|
}
|
|
3249
|
-
}, Ac = /* @__PURE__ */
|
|
3249
|
+
}, Ac = /* @__PURE__ */ X({ default: () => Gc }), jc = { class: "mwnf-dxa-related-page" }, Mc = { class: "mwnf-dxa-related-page__container" }, Nc = { key: 0 }, Pc = { class: "mwnf-dxa-related-page__heading" }, Fc = ["innerHTML"], Ic = ["innerHTML"], Lc = { key: 2 }, Rc = { key: 3 }, zc = ["href", "innerHTML"], Bc = ["innerHTML"], Vc = { key: 4 }, Hc = ["href"], Uc = ["innerHTML"], Wc = ["innerHTML"], Gc = {
|
|
3250
3250
|
__name: "RelatedContent",
|
|
3251
|
-
setup(
|
|
3252
|
-
let
|
|
3251
|
+
setup(e) {
|
|
3252
|
+
let t = {
|
|
3253
3253
|
1: "exhibition.relatedCategory.furtherReading",
|
|
3254
3254
|
2: "exhibition.relatedCategory.mwnfContent",
|
|
3255
3255
|
3: "exhibition.relatedCategory.partnerContent",
|
|
3256
3256
|
4: "exhibition.relatedCategory.otherContent"
|
|
3257
|
-
},
|
|
3257
|
+
}, n = [
|
|
3258
3258
|
1,
|
|
3259
3259
|
2,
|
|
3260
3260
|
3,
|
|
3261
3261
|
4
|
|
3262
|
-
],
|
|
3262
|
+
], r = {
|
|
3263
3263
|
further_reading: 1,
|
|
3264
3264
|
catalogue: 1
|
|
3265
|
-
},
|
|
3266
|
-
function
|
|
3267
|
-
let t = e.document_path ?
|
|
3265
|
+
}, i = (e) => e.category_id ?? (e.category ? r[e.category] ?? 4 : void 0), { t: a, locale: o } = p(), l = (e) => e?.[o.value] ?? e?.en ?? "";
|
|
3266
|
+
function u(e) {
|
|
3267
|
+
let t = e.document_path ? _t(e.document_path, "hi_res") : "";
|
|
3268
3268
|
return {
|
|
3269
|
-
reading:
|
|
3270
|
-
partner: e.partner_name ?
|
|
3271
|
-
place: [e.entity_location, e.entity_country ?
|
|
3272
|
-
title:
|
|
3269
|
+
reading: s(l(e.texts) || e.further_reading || ""),
|
|
3270
|
+
partner: e.partner_name ? c(e.partner_name) : "",
|
|
3271
|
+
place: [e.entity_location, e.entity_country ? ht(e.entity_country) : ""].filter(Boolean).join(", "),
|
|
3272
|
+
title: l(e.titles) ? c(l(e.titles)) : "",
|
|
3273
3273
|
href: t || e.url || "",
|
|
3274
|
-
byline: [e.authors, e.type_resource].filter(Boolean).map((e) =>
|
|
3275
|
-
description:
|
|
3274
|
+
byline: [e.authors, e.type_resource].filter(Boolean).map((e) => c(e)).join(", "),
|
|
3275
|
+
description: l(e.descriptions) ? c(l(e.descriptions)) : ""
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
3278
|
-
let
|
|
3278
|
+
let d = x(() => {
|
|
3279
3279
|
let e = /* @__PURE__ */ new Map();
|
|
3280
|
-
for (let t of
|
|
3281
|
-
let n =
|
|
3280
|
+
for (let t of et.value ?? []) {
|
|
3281
|
+
let n = i(t), r = e.get(n);
|
|
3282
3282
|
r ? r.push(t) : e.set(n, [t]);
|
|
3283
3283
|
}
|
|
3284
|
-
return [...
|
|
3285
|
-
id:
|
|
3286
|
-
heading: n
|
|
3287
|
-
entries: [...e.get(
|
|
3284
|
+
return [...n.filter((t) => e.has(t)), ...[...e.keys()].filter((e) => !n.includes(e)).sort()].map((n) => ({
|
|
3285
|
+
id: n,
|
|
3286
|
+
heading: t[n] ?? "exhibition.relatedCategory.unknown",
|
|
3287
|
+
entries: [...e.get(n)].sort((e, t) => (e.display_order ?? 0) - (t.display_order ?? 0)).map(u)
|
|
3288
3288
|
}));
|
|
3289
3289
|
});
|
|
3290
|
-
return (
|
|
3290
|
+
return (e, t) => (N(), w("div", jc, [O(B), T("div", Mc, [d.value.length ? C("", !0) : (N(), w("p", Nc, I(L(a)("exhibition.related.notAvailable")), 1)), (N(!0), w(b, null, F(d.value, (e) => (N(), w("div", {
|
|
3291
3291
|
key: e.id,
|
|
3292
3292
|
class: "mwnf-dxa-related-page__category"
|
|
3293
|
-
}, [
|
|
3293
|
+
}, [T("div", Pc, I(L(a)(e.heading)), 1), (N(!0), w(b, null, F(e.entries, (e, t) => (N(), w("div", {
|
|
3294
3294
|
key: t,
|
|
3295
3295
|
class: "mwnf-dxa-related-page__entry"
|
|
3296
3296
|
}, [
|
|
3297
|
-
e.reading ? (
|
|
3297
|
+
e.reading ? (N(), w("div", {
|
|
3298
3298
|
key: 0,
|
|
3299
3299
|
innerHTML: e.reading
|
|
3300
|
-
}, null, 8, Fc)) :
|
|
3301
|
-
e.partner ? (
|
|
3300
|
+
}, null, 8, Fc)) : C("", !0),
|
|
3301
|
+
e.partner ? (N(), w("div", {
|
|
3302
3302
|
key: 1,
|
|
3303
3303
|
innerHTML: e.partner
|
|
3304
|
-
}, null, 8, Ic)) :
|
|
3305
|
-
e.place ? (
|
|
3306
|
-
e.title ? (
|
|
3304
|
+
}, null, 8, Ic)) : C("", !0),
|
|
3305
|
+
e.place ? (N(), w("div", Lc, I(e.place), 1)) : C("", !0),
|
|
3306
|
+
e.title ? (N(), w("div", Rc, [e.href ? (N(), w("a", {
|
|
3307
3307
|
key: 0,
|
|
3308
3308
|
href: e.href,
|
|
3309
3309
|
target: "_blank",
|
|
3310
3310
|
rel: "noopener",
|
|
3311
3311
|
innerHTML: e.title
|
|
3312
|
-
}, null, 8, zc)) : (
|
|
3312
|
+
}, null, 8, zc)) : (N(), w("span", {
|
|
3313
3313
|
key: 1,
|
|
3314
3314
|
innerHTML: e.title
|
|
3315
|
-
}, null, 8, Bc))])) : e.href ? (
|
|
3315
|
+
}, null, 8, Bc))])) : e.href ? (N(), w("div", Vc, [T("a", {
|
|
3316
3316
|
href: e.href,
|
|
3317
3317
|
target: "_blank",
|
|
3318
3318
|
rel: "noopener"
|
|
3319
|
-
},
|
|
3320
|
-
e.byline ? (
|
|
3319
|
+
}, I(e.href), 9, Hc)])) : C("", !0),
|
|
3320
|
+
e.byline ? (N(), w("div", {
|
|
3321
3321
|
key: 5,
|
|
3322
3322
|
innerHTML: e.byline
|
|
3323
|
-
}, null, 8, Uc)) :
|
|
3324
|
-
e.description ? (
|
|
3323
|
+
}, null, 8, Uc)) : C("", !0),
|
|
3324
|
+
e.description ? (N(), w("div", {
|
|
3325
3325
|
key: 6,
|
|
3326
3326
|
innerHTML: e.description
|
|
3327
|
-
}, null, 8, Wc)) :
|
|
3327
|
+
}, null, 8, Wc)) : C("", !0)
|
|
3328
3328
|
]))), 128))]))), 128))])]));
|
|
3329
3329
|
}
|
|
3330
|
-
}, Kc = /* @__PURE__ */
|
|
3330
|
+
}, Kc = /* @__PURE__ */ X({ default: () => sl }), qc = { class: "mwnf-dxa-timeline mwnf-dxa-exhibition-timeline" }, Jc = { class: "mwnf-dxa-timeline__entrance" }, Yc = [
|
|
3331
3331
|
"value",
|
|
3332
3332
|
"aria-label",
|
|
3333
3333
|
"onChange"
|
|
@@ -3350,63 +3350,63 @@ var No = {
|
|
|
3350
3350
|
value: ""
|
|
3351
3351
|
}, il = ["value"], al = { class: "mwnf-dxa-timeline__go" }, ol = ["onClick"], sl = {
|
|
3352
3352
|
__name: "Timeline",
|
|
3353
|
-
setup(
|
|
3354
|
-
let
|
|
3353
|
+
setup(t) {
|
|
3354
|
+
let n = {
|
|
3355
3355
|
"catalogue.era.ad": "exhibition.era.ad",
|
|
3356
3356
|
"catalogue.era.bc": "exhibition.era.bc"
|
|
3357
|
-
},
|
|
3358
|
-
...
|
|
3357
|
+
}, r = ({ years: e, t }) => y(e.min, e.max, _(t, n)), i = x(() => ({
|
|
3358
|
+
...W.value,
|
|
3359
3359
|
entrance: !0,
|
|
3360
|
-
controls:
|
|
3360
|
+
controls: W.value.controls.map((e) => e.options ? {
|
|
3361
3361
|
...e,
|
|
3362
|
-
options:
|
|
3362
|
+
options: r
|
|
3363
3363
|
} : e)
|
|
3364
|
-
})),
|
|
3365
|
-
function
|
|
3366
|
-
let r = t.begin ?? [],
|
|
3364
|
+
})), a = x(() => W.value.scope === "country");
|
|
3365
|
+
function o({ filters: e, options: t, go: n }) {
|
|
3366
|
+
let r = t.begin ?? [], i = t.end ?? [];
|
|
3367
3367
|
n({
|
|
3368
|
-
...
|
|
3368
|
+
...a.value && e.country ? { country: e.country } : {},
|
|
3369
3369
|
begin: e.begin || r[0]?.value,
|
|
3370
|
-
end: e.end ||
|
|
3370
|
+
end: e.end || i.at(-1)?.value
|
|
3371
3371
|
});
|
|
3372
3372
|
}
|
|
3373
|
-
return (
|
|
3374
|
-
spec:
|
|
3373
|
+
return (t, n) => (N(), w("div", qc, [O(Tt, {
|
|
3374
|
+
spec: i.value,
|
|
3375
3375
|
class: "mwnf-dxa-timeline__form"
|
|
3376
3376
|
}, {
|
|
3377
|
-
form:
|
|
3378
|
-
|
|
3377
|
+
form: R((e) => [T("div", Jc, [
|
|
3378
|
+
a.value && e.countries?.length ? (N(), w("select", {
|
|
3379
3379
|
key: 0,
|
|
3380
3380
|
class: "mwnf-dxa-timeline__country",
|
|
3381
3381
|
value: e.filters.country,
|
|
3382
3382
|
"aria-label": e.t("exhibition.timeline.selectCountry"),
|
|
3383
3383
|
onChange: (t) => e.filters.country = t.target.value
|
|
3384
|
-
}, [
|
|
3384
|
+
}, [T("option", Xc, I(e.t("exhibition.timeline.selectCountry")), 1), (N(!0), w(b, null, F(e.countries, (e) => (N(), w("option", {
|
|
3385
3385
|
key: e.value,
|
|
3386
3386
|
value: e.value
|
|
3387
|
-
},
|
|
3388
|
-
|
|
3387
|
+
}, I(e.label), 9, Zc))), 128))], 40, Yc)) : C("", !0),
|
|
3388
|
+
T("div", Qc, [T("select", {
|
|
3389
3389
|
value: e.filters.begin,
|
|
3390
3390
|
"aria-label": e.t("exhibition.collection.startDate"),
|
|
3391
3391
|
onChange: (t) => e.filters.begin = t.target.value
|
|
3392
|
-
}, [
|
|
3392
|
+
}, [T("option", el, I(e.t("exhibition.collection.startDate")), 1), (N(!0), w(b, null, F(e.options.begin ?? [], (e) => (N(), w("option", {
|
|
3393
3393
|
key: e.value,
|
|
3394
3394
|
value: e.value
|
|
3395
|
-
},
|
|
3395
|
+
}, I(e.label), 9, tl))), 128))], 40, $c), T("select", {
|
|
3396
3396
|
value: e.filters.end,
|
|
3397
3397
|
"aria-label": e.t("exhibition.collection.endDate"),
|
|
3398
3398
|
onChange: (t) => e.filters.end = t.target.value
|
|
3399
|
-
}, [
|
|
3399
|
+
}, [T("option", rl, I(e.t("exhibition.collection.endDate")), 1), (N(!0), w(b, null, F(e.options.end ?? [], (e) => (N(), w("option", {
|
|
3400
3400
|
key: e.value,
|
|
3401
3401
|
value: e.value
|
|
3402
|
-
},
|
|
3403
|
-
|
|
3402
|
+
}, I(e.label), 9, il))), 128))], 40, nl)]),
|
|
3403
|
+
T("div", al, [T("button", {
|
|
3404
3404
|
type: "button",
|
|
3405
|
-
onClick: (t) =>
|
|
3406
|
-
},
|
|
3405
|
+
onClick: (t) => o(e)
|
|
3406
|
+
}, I(e.t("core.action.go")), 9, ol)])
|
|
3407
3407
|
])]),
|
|
3408
3408
|
_: 1
|
|
3409
|
-
}, 8, ["spec"]),
|
|
3409
|
+
}, 8, ["spec"]), O(L(e), {
|
|
3410
3410
|
class: "mwnf-dxa-timeline__intro",
|
|
3411
3411
|
dir: "auto",
|
|
3412
3412
|
keypath: "exhibition.timeline.intro"
|
|
@@ -3467,56 +3467,56 @@ var No = {
|
|
|
3467
3467
|
},
|
|
3468
3468
|
emits: ["update:selectedId"],
|
|
3469
3469
|
setup(e, { emit: t }) {
|
|
3470
|
-
let
|
|
3471
|
-
|
|
3472
|
-
|
|
3470
|
+
let n = e, r = t, { t: i } = p(), a = x(() => n.pictures.find((e) => e.id === n.selectedId) ?? null), o = x(() => n.pictures.some((e) => e.backRelated?.length)), s = P(!1);
|
|
3471
|
+
se(() => n.pictures, () => {
|
|
3472
|
+
s.value = !1;
|
|
3473
3473
|
});
|
|
3474
|
-
let
|
|
3475
|
-
function
|
|
3476
|
-
|
|
3474
|
+
let c = x(() => s.value ? n.pictures : n.pictures.filter((e) => !e.backRelated?.length));
|
|
3475
|
+
function l(e) {
|
|
3476
|
+
r("update:selectedId", e.id);
|
|
3477
3477
|
}
|
|
3478
|
-
return (t,
|
|
3479
|
-
src:
|
|
3480
|
-
alt:
|
|
3481
|
-
}, null, 8, dl)]),
|
|
3482
|
-
|
|
3483
|
-
(
|
|
3478
|
+
return (t, n) => (N(), w("div", cl, [a.value ? (N(), w("div", ll, [T("div", ul, [T("img", {
|
|
3479
|
+
src: a.value.image,
|
|
3480
|
+
alt: a.value.imageAlt ?? ""
|
|
3481
|
+
}, null, 8, dl)]), T("div", fl, [
|
|
3482
|
+
T("div", pl, [a.value.imageCaption ? (N(), w("span", ml, I(a.value.imageCaption) + ", ", 1)) : C("", !0), T("span", { innerHTML: a.value.name }, null, 8, hl)]),
|
|
3483
|
+
(N(!0), w(b, null, F(a.value.fields ?? [], (e, t) => (N(), w("div", {
|
|
3484
3484
|
key: t,
|
|
3485
3485
|
class: "mwnf-picture-gallery__detail"
|
|
3486
|
-
}, [e.label ? (
|
|
3487
|
-
|
|
3488
|
-
|
|
3486
|
+
}, [e.label ? (N(), w("span", gl, I(e.label), 1)) : C("", !0), T("span", { innerHTML: e.value }, null, 8, _l)]))), 128)),
|
|
3487
|
+
a.value.detail ? (N(), w("div", vl, I(a.value.detail), 1)) : C("", !0),
|
|
3488
|
+
a.value.to ? (N(), S(V, {
|
|
3489
3489
|
key: 1,
|
|
3490
3490
|
class: "mwnf-picture-gallery__link",
|
|
3491
|
-
to:
|
|
3491
|
+
to: a.value.to
|
|
3492
3492
|
}, {
|
|
3493
|
-
default:
|
|
3493
|
+
default: R(() => [D(I(L(i)(e.seeItemEntry)) + " →", 1)]),
|
|
3494
3494
|
_: 1
|
|
3495
|
-
}, 8, ["to"])) : (
|
|
3496
|
-
])])) : (
|
|
3495
|
+
}, 8, ["to"])) : (N(), w("div", yl, I(L(i)(e.unresolvedEntry)), 1))
|
|
3496
|
+
])])) : (N(), w("div", bl, I(L(i)(e.emptyEntry)), 1)), e.pictures.length ? (N(), w("div", xl, [T("ul", Sl, [(N(!0), w(b, null, F(c.value, (t) => (N(), w("li", {
|
|
3497
3497
|
key: t.id,
|
|
3498
|
-
class:
|
|
3498
|
+
class: k(["mwnf-picture-gallery__thumb", {
|
|
3499
3499
|
"mwnf-picture-gallery__thumb--active": t.id === e.selectedId,
|
|
3500
3500
|
"mwnf-picture-gallery__thumb--related": t.backRelated?.length
|
|
3501
3501
|
}])
|
|
3502
|
-
}, [
|
|
3502
|
+
}, [T("button", {
|
|
3503
3503
|
type: "button",
|
|
3504
|
-
onClick: (e) =>
|
|
3505
|
-
}, [
|
|
3504
|
+
onClick: (e) => l(t)
|
|
3505
|
+
}, [T("img", {
|
|
3506
3506
|
src: t.image,
|
|
3507
3507
|
alt: t.imageAlt ?? "",
|
|
3508
3508
|
loading: "lazy"
|
|
3509
|
-
}, null, 8, wl)], 8, Cl),
|
|
3510
|
-
t.imageCaption ? (
|
|
3511
|
-
|
|
3509
|
+
}, null, 8, wl)], 8, Cl), T("div", Tl, [
|
|
3510
|
+
t.imageCaption ? (N(), w("span", El, I(t.imageCaption) + ", ", 1)) : C("", !0),
|
|
3511
|
+
T("span", {
|
|
3512
3512
|
class: "mwnf-picture-gallery__thumb-name",
|
|
3513
3513
|
innerHTML: t.name
|
|
3514
3514
|
}, null, 8, Dl),
|
|
3515
|
-
t.detail ? (
|
|
3516
|
-
])], 2))), 128))]),
|
|
3517
|
-
"onUpdate:modelValue":
|
|
3515
|
+
t.detail ? (N(), w("span", Ol, ", " + I(t.detail), 1)) : C("", !0)
|
|
3516
|
+
])], 2))), 128))]), o.value ? (N(), w("label", kl, [z(T("input", {
|
|
3517
|
+
"onUpdate:modelValue": n[0] ||= (e) => s.value = e,
|
|
3518
3518
|
type: "checkbox"
|
|
3519
|
-
}, null, 512), [[
|
|
3519
|
+
}, null, 512), [[re, s.value]]), T("span", null, I(s.value ? L(i)(e.hideRelatedEntry) : L(i)(e.addRelatedEntry)), 1)])) : C("", !0)])) : C("", !0)]));
|
|
3520
3520
|
}
|
|
3521
3521
|
}, jl = {
|
|
3522
3522
|
key: 0,
|
|
@@ -3552,45 +3552,45 @@ var No = {
|
|
|
3552
3552
|
},
|
|
3553
3553
|
emits: ["select"],
|
|
3554
3554
|
setup(e, { emit: t }) {
|
|
3555
|
-
let n = e, r = t, { t: i } =
|
|
3556
|
-
function
|
|
3555
|
+
let n = e, r = t, { t: i } = p(), a = x(() => n.contextualDescription ? s(n.contextualDescription, { breaks: !0 }) : ""), o = x(() => n.picture?.related ?? []), c = x(() => n.picture?.backRelated?.[0] ?? null);
|
|
3556
|
+
function l(e) {
|
|
3557
3557
|
r("select", e.id);
|
|
3558
3558
|
}
|
|
3559
|
-
return (t, n) => e.picture ? (
|
|
3560
|
-
a.value ? (
|
|
3559
|
+
return (t, n) => e.picture ? (N(), w("div", jl, [
|
|
3560
|
+
a.value ? (N(), w("div", {
|
|
3561
3561
|
key: 0,
|
|
3562
3562
|
class: "mwnf-picture-narrative__text mwnf-sheet__block",
|
|
3563
3563
|
innerHTML: a.value
|
|
3564
|
-
}, null, 8, Ml)) :
|
|
3565
|
-
o.value.length ? (
|
|
3564
|
+
}, null, 8, Ml)) : C("", !0),
|
|
3565
|
+
o.value.length ? (N(), w("div", Nl, [T("div", Pl, I(L(i)(e.relatedHeadingEntry)), 1), T("div", Fl, [T("div", Il, [T("img", {
|
|
3566
3566
|
src: e.picture.image,
|
|
3567
3567
|
alt: e.picture.imageAlt ?? ""
|
|
3568
|
-
}, null, 8, Ll),
|
|
3568
|
+
}, null, 8, Ll), T("div", Rl, [T("span", { innerHTML: e.picture.name }, null, 8, zl), e.picture.detail ? (N(), w("span", Bl, ", " + I(e.picture.detail), 1)) : C("", !0)])]), (N(!0), w(b, null, F(o.value, (e) => (N(), w("div", {
|
|
3569
3569
|
key: e.picture.id,
|
|
3570
3570
|
class: "mwnf-picture-narrative__image"
|
|
3571
3571
|
}, [
|
|
3572
|
-
|
|
3572
|
+
T("button", {
|
|
3573
3573
|
type: "button",
|
|
3574
|
-
onClick: (t) =>
|
|
3575
|
-
}, [
|
|
3574
|
+
onClick: (t) => l(e.picture)
|
|
3575
|
+
}, [T("img", {
|
|
3576
3576
|
src: e.picture.image,
|
|
3577
3577
|
alt: e.picture.imageAlt ?? ""
|
|
3578
3578
|
}, null, 8, Hl)], 8, Vl),
|
|
3579
|
-
|
|
3580
|
-
e.text ? (
|
|
3581
|
-
]))), 128))])])) :
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3579
|
+
T("div", Ul, [T("span", { innerHTML: e.picture.name }, null, 8, Wl), e.picture.detail ? (N(), w("span", Gl, ", " + I(e.picture.detail), 1)) : C("", !0)]),
|
|
3580
|
+
e.text ? (N(), w("div", Kl, I(e.text), 1)) : C("", !0)
|
|
3581
|
+
]))), 128))])])) : C("", !0),
|
|
3582
|
+
c.value ? (N(), w("div", ql, [
|
|
3583
|
+
T("div", Jl, I(L(i)(e.relatedHeadingEntry)), 1),
|
|
3584
|
+
T("p", Yl, I(c.value.reciprocalText || L(i)(e.reciprocalFallbackEntry)), 1),
|
|
3585
|
+
T("div", Xl, [T("button", {
|
|
3586
3586
|
type: "button",
|
|
3587
|
-
onClick: n[0] ||= (e) => c
|
|
3588
|
-
}, [
|
|
3589
|
-
src:
|
|
3590
|
-
alt:
|
|
3591
|
-
}, null, 8, Zl)]),
|
|
3592
|
-
])) :
|
|
3593
|
-
])) :
|
|
3587
|
+
onClick: n[0] ||= (e) => l(c.value.picture)
|
|
3588
|
+
}, [T("img", {
|
|
3589
|
+
src: c.value.picture.image,
|
|
3590
|
+
alt: c.value.picture.imageAlt ?? ""
|
|
3591
|
+
}, null, 8, Zl)]), T("div", Ql, [T("span", { innerHTML: c.value.picture.name }, null, 8, $l), c.value.picture.detail ? (N(), w("span", eu, ", " + I(c.value.picture.detail), 1)) : C("", !0)])])
|
|
3592
|
+
])) : C("", !0)
|
|
3593
|
+
])) : C("", !0);
|
|
3594
3594
|
}
|
|
3595
3595
|
};
|
|
3596
|
-
export { Ws as ExhibitionAbout, Ca as ExhibitionCollectionResults, Ha as ExhibitionCollectionSearch, Vs as ExhibitionHome, kc as ExhibitionItemDetail, Za as ExhibitionPartnerObjects, Lr as ExhibitionPartners, Gc as ExhibitionRelatedContent, Cr as ExhibitionSearchHowTo, oi as ExhibitionSearchResults, Co as ExhibitionShell,
|
|
3596
|
+
export { Ws as ExhibitionAbout, Ca as ExhibitionCollectionResults, Ha as ExhibitionCollectionSearch, Vs as ExhibitionHome, kc as ExhibitionItemDetail, Za as ExhibitionPartnerObjects, Lr as ExhibitionPartners, Gc as ExhibitionRelatedContent, Cr as ExhibitionSearchHowTo, oi as ExhibitionSearchResults, Co as ExhibitionShell, It as ExhibitionTheme, Dc as ExhibitionThemeGallery, cc as ExhibitionThemes, sl as ExhibitionTimeline, Vi as ExhibitionTimelineGallery, Pi as ExhibitionTimelineResults, Ko as FeaturedPartners, Gt as GalleryAbout, $n as GalleryCollectionResults, hr as GalleryCollectionSearch, Kt as GalleryCredits, bs as GalleryHome, Ss as GalleryItemDetail, xr as GalleryPartnerObjects, hn as GalleryPartners, Yt as GallerySearchHowTo, Bn as GallerySearchResults, _o as GalleryShell, Rs as GalleryTimeline, Wn as GalleryTimelineGallery, Vn as GalleryTimelineResults, Pt as ItemDetailView, Q as LegacyPages, Ut as PartnerDetail, Al as PictureGallery, tu as PictureNarrative, So as PopupLogo, ds as SiblingGalleries, zt as exhibitionAboutSpec, Mo as exhibitionConfig, Ye as exhibitionPartnerDetail, Rt as exhibitionThemeSpec, ko as galleryConfig, Ke as galleryPartnerDetail, Eo as projectChips, po as standardRoutes, Lt as themeNodeRoute };
|