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