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