@museumwnf/viewer-layout 2.15.0 → 2.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dxa.js +172 -164
- package/package.json +2 -2
package/dist/dxa.js
CHANGED
|
@@ -2,11 +2,11 @@ import { d as e, f as t, l as n, p as r, r as i } from "./TimelineEventList-BmfL
|
|
|
2
2
|
import { n as a, t as o } from "./BackLink-BJ16COHd.js";
|
|
3
3
|
import { a as s, i as c, n as l, o as u, r as d, t as f } from "./TimelineResultsView-D78PPWk-.js";
|
|
4
4
|
import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, createVNode as b, normalizeClass as x, openBlock as S, ref as C, renderList as w, toDisplayString as T, unref as E, vModelText as D, withCtx as O, withDirectives as k, withModifiers as A } from "vue";
|
|
5
|
-
import { I18nText as j, NotFoundView as ee, sectionMeta as M, useFacets as
|
|
6
|
-
import { RouterLink as
|
|
7
|
-
import { FACET_CATEGORIES as
|
|
5
|
+
import { I18nText as j, NotFoundView as ee, sectionMeta as M, useFacets as te, useI18n as N, useKeywordIndex as P, yearBuckets as F } from "@museumwnf/viewer-core";
|
|
6
|
+
import { RouterLink as I, useRoute as L, useRouter as ne } from "vue-router";
|
|
7
|
+
import { FACET_CATEGORIES as re, FACET_CATEGORIES as ie, FACET_LABEL_KEYS as ae, FACET_LABEL_KEYS as oe, PAGE_SIZE as se, PAGE_SIZE as ce, useExhibitionCollection as le, useExhibitionData as ue, useExhibitionPartner as de, useExhibitionTimeline as fe, useFacetLabels as pe, useFacetLabels as me, useGalleryCollection as he, useGalleryData as ge, useGalleryPartner as _e, useGalleryTimeline as ve } from "@museumwnf/viewer-core/dxa";
|
|
8
8
|
//#region src/dxa/gallery/About.vue
|
|
9
|
-
var
|
|
9
|
+
var ye = {
|
|
10
10
|
__name: "About",
|
|
11
11
|
setup(e) {
|
|
12
12
|
let t = {
|
|
@@ -18,7 +18,7 @@ var _e = {
|
|
|
18
18
|
class: "mwnf-dxa-editorial"
|
|
19
19
|
}));
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, be = {
|
|
22
22
|
__name: "Credits",
|
|
23
23
|
props: { bodyKey: {
|
|
24
24
|
type: String,
|
|
@@ -34,7 +34,7 @@ var _e = {
|
|
|
34
34
|
class: "mwnf-dxa-editorial"
|
|
35
35
|
}, null, 8, ["spec"]));
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, xe = {
|
|
38
38
|
__name: "SearchHowTo",
|
|
39
39
|
setup(e) {
|
|
40
40
|
let t = {
|
|
@@ -49,83 +49,83 @@ var _e = {
|
|
|
49
49
|
class: "mwnf-dxa-editorial"
|
|
50
50
|
}));
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, R = ge(), z = he(R), Se = ve(R, z), Ce = _e(R, z), { defaultLang: we, tr: Te, md: B, mdInline: Ee, loadEnglish: De, labelOf: V, items: Oe, partners: ke, countries: Ae, timelines: je, partnerById: Me, itemRoute: Ne, partnerRoute: Pe, partnerObjectsRoute: H } = R, { FACETS: Fe, haystack: Ie, tile: Le, collectionResults: U, countryIdForCode: W } = z, { timelineResults: Re, timelineGallery: ze } = Se, { partnerList: Be, partnerSheet: Ve, partnerObjects: He } = Ce, Ue = { class: "mwnf-dxa-partners" }, We = { class: "mwnf-dxa-partner-text" }, Ge = { class: "mwnf-dxa-partner-name" }, Ke = { key: 0 }, qe = {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "mwnf-dxa-partner-meta"
|
|
55
|
-
},
|
|
55
|
+
}, Je = {
|
|
56
56
|
key: 1,
|
|
57
57
|
class: "mwnf-dxa-partner-meta mwnf-dxa-partner-meta--empty"
|
|
58
|
-
},
|
|
58
|
+
}, Ye = { class: "mwnf-dxa-partner-links" }, Xe = {
|
|
59
59
|
key: 0,
|
|
60
60
|
class: "mwnf-dxa-partner-logo"
|
|
61
|
-
},
|
|
61
|
+
}, Ze = ["src", "alt"], G = {
|
|
62
62
|
__name: "Partners",
|
|
63
63
|
setup(e) {
|
|
64
|
-
return (e, t) => (S(), _("div",
|
|
64
|
+
return (e, t) => (S(), _("div", Ue, [b(c, { spec: E(Be) }, {
|
|
65
65
|
before: O(() => [b(o), b(E(j), {
|
|
66
66
|
id: "mwnf-dxa-partners-intro",
|
|
67
67
|
class: "mwnf-prose",
|
|
68
68
|
dir: "auto",
|
|
69
69
|
keypath: "gallery.partners.intro"
|
|
70
70
|
})]),
|
|
71
|
-
row: O(({ partner: n, row: r }) => [v("div",
|
|
72
|
-
v("div",
|
|
73
|
-
default: O(() => [y(T(E(
|
|
71
|
+
row: O(({ partner: n, row: r }) => [v("div", We, [
|
|
72
|
+
v("div", Ge, [b(E(I), { to: r.route }, {
|
|
73
|
+
default: O(() => [y(T(E(V)("partners", n.id)), 1), r.city ? (S(), _("span", Ke, ", " + T(r.city), 1)) : g("", !0)]),
|
|
74
74
|
_: 2
|
|
75
75
|
}, 1032, ["to"])]),
|
|
76
|
-
n.item_count ? (S(), _("div",
|
|
77
|
-
v("div",
|
|
76
|
+
n.item_count ? (S(), _("div", qe, T(n.item_count) + " " + T(e.$t("partner.item.objectsInSite")), 1)) : (S(), _("div", Je, T(e.$t("gallery.partner.noObjectsInGallery")), 1)),
|
|
77
|
+
v("div", Ye, [b(E(I), { to: r.route }, {
|
|
78
78
|
default: O(() => [y(T(e.$t("gallery.action.readMore")), 1)]),
|
|
79
79
|
_: 1
|
|
80
|
-
}, 8, ["to"]), n.item_count ? (S(), _(p, { key: 0 }, [t[0] ||= v("span", { class: "mwnf-dxa-partner-link-divider" }, "|", -1), b(E(
|
|
80
|
+
}, 8, ["to"]), n.item_count ? (S(), _(p, { key: 0 }, [t[0] ||= v("span", { class: "mwnf-dxa-partner-link-divider" }, "|", -1), b(E(I), { to: E(H)(n) }, {
|
|
81
81
|
default: O(() => [y(T(e.$t("gallery.action.viewObjects")), 1)]),
|
|
82
82
|
_: 1
|
|
83
83
|
}, 8, ["to"])], 64)) : g("", !0)])
|
|
84
|
-
]), r.logo ? (S(), _("div",
|
|
84
|
+
]), r.logo ? (S(), _("div", Xe, [v("img", {
|
|
85
85
|
src: r.logo,
|
|
86
|
-
alt: E(
|
|
86
|
+
alt: E(V)("partners", n.id),
|
|
87
87
|
loading: "lazy"
|
|
88
|
-
}, null, 8,
|
|
88
|
+
}, null, 8, Ze)])) : g("", !0)]),
|
|
89
89
|
_: 1
|
|
90
90
|
}, 8, ["spec"])]));
|
|
91
91
|
}
|
|
92
|
-
},
|
|
92
|
+
}, Qe = { class: "mwnf-dxa-profile-languages" }, $e = {
|
|
93
93
|
key: 0,
|
|
94
94
|
class: "mwnf-loader"
|
|
95
|
-
},
|
|
95
|
+
}, et = { class: "mwnf-dxa-partner-name" }, tt = { class: "mwnf-dxa-partner-location" }, nt = { key: 0 }, rt = { class: "mwnf-dxa-profile-links-container" }, it = { class: "mwnf-dxa-profile-links" }, at = ["href"], ot = {
|
|
96
96
|
key: 0,
|
|
97
97
|
class: "mwnf-dxa-profile-objects-link"
|
|
98
|
-
},
|
|
98
|
+
}, st = {
|
|
99
99
|
key: 0,
|
|
100
100
|
class: "mwnf-dxa-profile-photo-wrapper"
|
|
101
|
-
},
|
|
101
|
+
}, ct = { class: "mwnf-dxa-profile-info" }, lt = ["innerHTML"], ut = { key: 1 }, dt = { class: "mwnf-dxa-contact-header" }, ft = ["innerHTML"], pt = { key: 0 }, mt = { key: 1 }, ht = ["href"], gt = { key: 2 }, _t = ["href"], vt = {
|
|
102
102
|
key: 0,
|
|
103
103
|
class: "mwnf-dxa-contact-title"
|
|
104
|
-
},
|
|
104
|
+
}, yt = { key: 1 }, bt = { key: 2 }, xt = { key: 3 }, St = { key: 4 }, Ct = ["href"], wt = {
|
|
105
105
|
key: 3,
|
|
106
106
|
class: "mwnf-dxa-additional-urls"
|
|
107
|
-
},
|
|
107
|
+
}, Tt = ["href"], Et = {
|
|
108
108
|
key: 2,
|
|
109
109
|
class: "mwnf-dxa-partner-logos"
|
|
110
|
-
},
|
|
110
|
+
}, Dt = ["src", "alt"], K = {
|
|
111
111
|
__name: "PartnerProfile",
|
|
112
112
|
props: { id: {
|
|
113
113
|
type: String,
|
|
114
114
|
required: !0
|
|
115
115
|
} },
|
|
116
116
|
setup(e) {
|
|
117
|
-
let t = e, { t: r } =
|
|
117
|
+
let t = e, { t: r } = N(), c = C("description"), l = (e) => [e?.contact_person_1, e?.contact_person_2].filter(Boolean), u = (e, t) => !!(t.address || t.phone || t.email || t.website || l(e).length);
|
|
118
118
|
function d(e) {
|
|
119
119
|
let t = e.website;
|
|
120
120
|
return t ? /^https?:\/\//i.test(t) ? t : `https://${t}` : null;
|
|
121
121
|
}
|
|
122
122
|
return (e, f) => (S(), h(s, {
|
|
123
|
-
spec: E(
|
|
123
|
+
spec: E(Ve),
|
|
124
124
|
id: t.id,
|
|
125
125
|
class: "mwnf-dxa-partner-profile"
|
|
126
126
|
}, {
|
|
127
127
|
header: O(({ record: e, text: t, languages: i, language: a, select: s, ready: l }) => [
|
|
128
|
-
v("div",
|
|
128
|
+
v("div", Qe, [b(n, {
|
|
129
129
|
languages: i,
|
|
130
130
|
language: a,
|
|
131
131
|
onSelect: s
|
|
@@ -136,9 +136,9 @@ var _e = {
|
|
|
136
136
|
])]),
|
|
137
137
|
b(o),
|
|
138
138
|
l ? (S(), _(p, { key: 1 }, [
|
|
139
|
-
v("p",
|
|
140
|
-
v("p",
|
|
141
|
-
v("div",
|
|
139
|
+
v("p", et, T(E(V)("partners", e.id)), 1),
|
|
140
|
+
v("p", tt, [t.city ? (S(), _("span", nt, T(t.city) + ", ", 1)) : g("", !0), y(T(E(V)("countries", e.country_id)), 1)]),
|
|
141
|
+
v("div", rt, [v("div", it, [
|
|
142
142
|
v("button", {
|
|
143
143
|
class: x({ "mwnf-dxa-profile-tab--active": c.value === "description" }),
|
|
144
144
|
onClick: f[0] ||= (e) => c.value = "description"
|
|
@@ -155,68 +155,68 @@ var _e = {
|
|
|
155
155
|
href: d(t),
|
|
156
156
|
target: "_blank",
|
|
157
157
|
rel: "noopener"
|
|
158
|
-
}, "↗ " + T(E(r)("partner.nav.homepage")), 9,
|
|
159
|
-
]), e.item_count ? (S(), _("div",
|
|
158
|
+
}, "↗ " + T(E(r)("partner.nav.homepage")), 9, at)], 64)) : g("", !0)
|
|
159
|
+
]), e.item_count ? (S(), _("div", ot, [b(E(I), {
|
|
160
160
|
class: "mwnf-button",
|
|
161
|
-
to: E(
|
|
161
|
+
to: E(H)(e)
|
|
162
162
|
}, {
|
|
163
163
|
default: O(() => [y(T(E(r)("gallery.partner.viewObjects")), 1)]),
|
|
164
164
|
_: 1
|
|
165
165
|
}, 8, ["to"])])) : g("", !0)])
|
|
166
|
-
], 64)) : (S(), _("div",
|
|
166
|
+
], 64)) : (S(), _("div", $e, T(E(r)("core.status.loading")), 1))
|
|
167
167
|
]),
|
|
168
|
-
"before-sheet": O(({ record: t, text: n, language: r, ready: a }) => [a ? (S(), _("div",
|
|
168
|
+
"before-sheet": O(({ record: t, text: n, language: r, ready: a }) => [a ? (S(), _("div", st, [t.images?.length ? (S(), h(i, {
|
|
169
169
|
key: 0,
|
|
170
170
|
class: "mwnf-dxa-profile-photo",
|
|
171
171
|
images: t.images.map((e) => ({
|
|
172
172
|
url: e.url,
|
|
173
|
-
alt: E(
|
|
173
|
+
alt: E(V)("partners", t.id),
|
|
174
174
|
caption: e.captions?.[r] ?? e.captions?.en ?? "",
|
|
175
175
|
photographer: e.photographer ?? "",
|
|
176
176
|
copyright: e.copyright ?? ""
|
|
177
177
|
}))
|
|
178
|
-
}, null, 8, ["images"])) : g("", !0), v("div",
|
|
178
|
+
}, null, 8, ["images"])) : g("", !0), v("div", ct, [c.value === "description" ? (S(), _("div", {
|
|
179
179
|
key: 0,
|
|
180
180
|
class: "mwnf-prose",
|
|
181
|
-
innerHTML: E(
|
|
182
|
-
}, null, 8,
|
|
183
|
-
v("p",
|
|
181
|
+
innerHTML: E(B)(n.description)
|
|
182
|
+
}, null, 8, lt)) : c.value === "contact" ? (S(), _("div", ut, [
|
|
183
|
+
v("p", dt, T(e.$t("partner.info.addresses")), 1),
|
|
184
184
|
v("div", {
|
|
185
185
|
class: "mwnf-prose",
|
|
186
|
-
innerHTML: E(
|
|
187
|
-
}, null, 8,
|
|
188
|
-
n.phone ? (S(), _("p",
|
|
189
|
-
n.email ? (S(), _("p",
|
|
190
|
-
d(n) ? (S(), _("p",
|
|
186
|
+
innerHTML: E(B)(n.address)
|
|
187
|
+
}, null, 8, ft),
|
|
188
|
+
n.phone ? (S(), _("p", pt, T(e.$t("partner.info.phone")) + " " + T(n.phone), 1)) : g("", !0),
|
|
189
|
+
n.email ? (S(), _("p", mt, [v("a", { href: `mailto:${n.email}` }, T(n.email), 9, ht)])) : g("", !0),
|
|
190
|
+
d(n) ? (S(), _("p", gt, [v("a", {
|
|
191
191
|
href: d(n),
|
|
192
192
|
target: "_blank",
|
|
193
193
|
rel: "noopener"
|
|
194
|
-
}, T(n.website), 9,
|
|
194
|
+
}, T(n.website), 9, _t)])) : g("", !0),
|
|
195
195
|
(S(!0), _(p, null, w(l(t), (t) => (S(), _("div", {
|
|
196
196
|
class: "mwnf-dxa-contact-person",
|
|
197
197
|
key: t.name ?? t.email
|
|
198
198
|
}, [
|
|
199
|
-
t.title ? (S(), _("p",
|
|
200
|
-
t.name ? (S(), _("p",
|
|
201
|
-
t.phone ? (S(), _("p",
|
|
202
|
-
t.fax ? (S(), _("p",
|
|
203
|
-
t.email ? (S(), _("p",
|
|
199
|
+
t.title ? (S(), _("p", vt, T(t.title), 1)) : g("", !0),
|
|
200
|
+
t.name ? (S(), _("p", yt, T(t.name), 1)) : g("", !0),
|
|
201
|
+
t.phone ? (S(), _("p", bt, T(e.$t("partner.info.phone")) + " " + T(t.phone), 1)) : g("", !0),
|
|
202
|
+
t.fax ? (S(), _("p", xt, T(e.$t("partner.info.fax")) + " " + T(t.fax), 1)) : g("", !0),
|
|
203
|
+
t.email ? (S(), _("p", St, [v("a", { href: `mailto:${t.email}` }, T(t.email), 9, Ct)])) : g("", !0)
|
|
204
204
|
]))), 128)),
|
|
205
|
-
t.additional_urls?.length ? (S(), _("div",
|
|
205
|
+
t.additional_urls?.length ? (S(), _("div", wt, [(S(!0), _(p, null, w(t.additional_urls, (e) => (S(), _("p", { key: e.url }, [v("a", {
|
|
206
206
|
href: e.url,
|
|
207
207
|
target: "_blank",
|
|
208
208
|
rel: "noopener"
|
|
209
|
-
}, T(e.url), 9,
|
|
210
|
-
])) : c.value === "logo" ? (S(), _("div",
|
|
209
|
+
}, T(e.url), 9, Tt)]))), 128))])) : g("", !0)
|
|
210
|
+
])) : c.value === "logo" ? (S(), _("div", Et, [(S(!0), _(p, null, w(t.logos, (e) => (S(), _("img", {
|
|
211
211
|
key: e.url,
|
|
212
212
|
src: e.url,
|
|
213
|
-
alt: E(
|
|
214
|
-
}, null, 8,
|
|
213
|
+
alt: E(V)("partners", t.id)
|
|
214
|
+
}, null, 8, Dt))), 128))])) : g("", !0)])])) : g("", !0)]),
|
|
215
215
|
"after-sheet": O(({ record: e }) => [b(a, {
|
|
216
216
|
latitude: e.latitude,
|
|
217
217
|
longitude: e.longitude,
|
|
218
218
|
zoom: e.map_zoom,
|
|
219
|
-
label: E(
|
|
219
|
+
label: E(V)("partners", e.id)
|
|
220
220
|
}, null, 8, [
|
|
221
221
|
"latitude",
|
|
222
222
|
"longitude",
|
|
@@ -226,17 +226,17 @@ var _e = {
|
|
|
226
226
|
_: 1
|
|
227
227
|
}, 8, ["spec", "id"]));
|
|
228
228
|
}
|
|
229
|
-
},
|
|
229
|
+
}, Ot = ["onSubmit"], kt = ["placeholder"], At = {
|
|
230
230
|
type: "submit",
|
|
231
231
|
class: "mwnf-dxa-refine-search-submit"
|
|
232
|
-
},
|
|
232
|
+
}, jt = { class: "mwnf-dxa-how-to" }, Mt = { class: "mwnf-dxa-no-results" }, q = {
|
|
233
233
|
__name: "SearchResults",
|
|
234
234
|
setup(e) {
|
|
235
|
-
let t =
|
|
235
|
+
let t = P("items", {
|
|
236
236
|
grammar: "boolean",
|
|
237
|
-
haystack:
|
|
237
|
+
haystack: Ie
|
|
238
238
|
}), n = C(!1);
|
|
239
|
-
|
|
239
|
+
De().then(() => {
|
|
240
240
|
n.value = !0;
|
|
241
241
|
});
|
|
242
242
|
function r(e) {
|
|
@@ -247,11 +247,11 @@ var _e = {
|
|
|
247
247
|
keys: ["q"],
|
|
248
248
|
sort: !1,
|
|
249
249
|
narrow: (e, i) => n.value ? r(i.q) ? e : t.search(i.q) : [],
|
|
250
|
-
pageSize:
|
|
250
|
+
pageSize: ce,
|
|
251
251
|
variant: "grid",
|
|
252
252
|
recordRoute: "item",
|
|
253
253
|
actionLabel: "gallery.action.seeDatabaseEntry",
|
|
254
|
-
record: (e, { t }) =>
|
|
254
|
+
record: (e, { t }) => Le(e, t),
|
|
255
255
|
pagination: { jump: !0 },
|
|
256
256
|
summary: ({ filters: e, pageInfo: t, t: n, total: i }) => [{
|
|
257
257
|
label: n("gallery.section.database"),
|
|
@@ -274,18 +274,18 @@ var _e = {
|
|
|
274
274
|
type: "text",
|
|
275
275
|
class: "mwnf-dxa-refine-search-input",
|
|
276
276
|
placeholder: e.$t("catalogue.search.keywordPlaceholder")
|
|
277
|
-
}, null, 8,
|
|
277
|
+
}, null, 8, kt), [[D, i.value]]), v("button", At, T(e.$t("catalogue.search.submit")), 1)], 40, Ot), v("p", jt, [b(E(I), { to: { name: "search-how-to" } }, {
|
|
278
278
|
default: O(() => [y(T(e.$t("catalogue.search.howTo")) + " ›", 1)]),
|
|
279
279
|
_: 1
|
|
280
280
|
})])]),
|
|
281
|
-
empty: O(() => [v("p",
|
|
281
|
+
empty: O(() => [v("p", Mt, [
|
|
282
282
|
y(T(e.$t("catalogue.results.noResultsSearch")) + " ", 1),
|
|
283
|
-
b(E(
|
|
283
|
+
b(E(I), { to: { name: "search-how-to" } }, {
|
|
284
284
|
default: O(() => [y(T(e.$t("catalogue.search.howTo")), 1)]),
|
|
285
285
|
_: 1
|
|
286
286
|
}),
|
|
287
287
|
t[1] ||= v("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
|
|
288
|
-
b(E(
|
|
288
|
+
b(E(I), { to: { name: "collection" } }, {
|
|
289
289
|
default: O(() => [y(T(e.$t("gallery.section.collection")), 1)]),
|
|
290
290
|
_: 1
|
|
291
291
|
})
|
|
@@ -297,7 +297,7 @@ var _e = {
|
|
|
297
297
|
__name: "TimelineResults",
|
|
298
298
|
setup(e) {
|
|
299
299
|
return (e, t) => (S(), h(f, {
|
|
300
|
-
spec: E(
|
|
300
|
+
spec: E(Re),
|
|
301
301
|
class: "mwnf-dxa-timeline-results"
|
|
302
302
|
}, {
|
|
303
303
|
before: O(() => [b(o)]),
|
|
@@ -308,11 +308,11 @@ var _e = {
|
|
|
308
308
|
__name: "TimelineGallery",
|
|
309
309
|
setup(e) {
|
|
310
310
|
return (e, t) => (S(), h(u, {
|
|
311
|
-
spec: E(
|
|
311
|
+
spec: E(ze),
|
|
312
312
|
class: "mwnf-dxa-timeline-gallery"
|
|
313
313
|
}, {
|
|
314
314
|
before: O(() => [b(o)]),
|
|
315
|
-
actions: O(({ filters: t, pageInfo: n, goToPage: i }) => [v("p", Pt, [b(E(
|
|
315
|
+
actions: O(({ filters: t, pageInfo: n, goToPage: i }) => [v("p", Pt, [b(E(I), { to: {
|
|
316
316
|
name: "timeline-results",
|
|
317
317
|
query: {
|
|
318
318
|
country: t.country,
|
|
@@ -337,17 +337,17 @@ var _e = {
|
|
|
337
337
|
}, Rt = { class: "mwnf-dxa-options-label" }, zt = {
|
|
338
338
|
__name: "CollectionResults",
|
|
339
339
|
setup(n) {
|
|
340
|
-
let i =
|
|
340
|
+
let i = ne(), { t: a } = N(), s = me(), c = U.keys, l = (e) => c.filter((t) => e[t]).length <= 1;
|
|
341
341
|
function d() {
|
|
342
342
|
i.push({ name: "collection" });
|
|
343
343
|
}
|
|
344
|
-
let f = m(() => new Set((
|
|
344
|
+
let f = m(() => new Set((je.value ?? []).map((e) => e.country_id)));
|
|
345
345
|
function x(e) {
|
|
346
|
-
let t =
|
|
346
|
+
let t = W(e.country);
|
|
347
347
|
return !!(t && f.value.has(t));
|
|
348
348
|
}
|
|
349
349
|
return (n, i) => (S(), h(u, {
|
|
350
|
-
spec: E(
|
|
350
|
+
spec: E(U),
|
|
351
351
|
class: "mwnf-dxa-collection-results"
|
|
352
352
|
}, {
|
|
353
353
|
before: O(() => [b(o)]),
|
|
@@ -380,7 +380,7 @@ var _e = {
|
|
|
380
380
|
"placeholder",
|
|
381
381
|
"onUpdate:modelValue"
|
|
382
382
|
]),
|
|
383
|
-
(S(!0), _(p, null, w(E(
|
|
383
|
+
(S(!0), _(p, null, w(E(ie), (e) => (S(), h(t, {
|
|
384
384
|
key: e,
|
|
385
385
|
"model-value": r[e],
|
|
386
386
|
options: u[e],
|
|
@@ -395,7 +395,7 @@ var _e = {
|
|
|
395
395
|
]))), 128)),
|
|
396
396
|
v("div", It, [b(t, {
|
|
397
397
|
"model-value": r.from,
|
|
398
|
-
options: E(
|
|
398
|
+
options: E(F)(c, E(a)),
|
|
399
399
|
placeholder: n.$t("catalogue.facet.startDate"),
|
|
400
400
|
"onUpdate:modelValue": (e) => o({ from: e })
|
|
401
401
|
}, null, 8, [
|
|
@@ -405,7 +405,7 @@ var _e = {
|
|
|
405
405
|
"onUpdate:modelValue"
|
|
406
406
|
]), b(t, {
|
|
407
407
|
"model-value": r.to,
|
|
408
|
-
options: E(
|
|
408
|
+
options: E(F)(c, E(a)),
|
|
409
409
|
placeholder: n.$t("catalogue.facet.endDate"),
|
|
410
410
|
"onUpdate:modelValue": (e) => o({ to: e })
|
|
411
411
|
}, null, 8, [
|
|
@@ -420,7 +420,7 @@ var _e = {
|
|
|
420
420
|
"title",
|
|
421
421
|
"reset-label",
|
|
422
422
|
"disabled"
|
|
423
|
-
]), x(r) ? (S(), _("div", Lt, [v("div", Rt, T(n.$t("catalogue.results.timelineForSearch")), 1), v("p", null, [i[2] ||= y(" ➤ ", -1), b(E(
|
|
423
|
+
]), x(r) ? (S(), _("div", Lt, [v("div", Rt, T(n.$t("catalogue.results.timelineForSearch")), 1), v("p", null, [i[2] ||= y(" ➤ ", -1), b(E(I), { to: {
|
|
424
424
|
name: "timeline-results",
|
|
425
425
|
query: {
|
|
426
426
|
country: r.country,
|
|
@@ -428,7 +428,7 @@ var _e = {
|
|
|
428
428
|
end: r.to
|
|
429
429
|
}
|
|
430
430
|
} }, {
|
|
431
|
-
default: O(() => [y(T(n.$t("gallery.section.timeline")) + " | " + T(E(
|
|
431
|
+
default: O(() => [y(T(n.$t("gallery.section.timeline")) + " | " + T(E(V)("countries", E(W)(r.country))), 1)]),
|
|
432
432
|
_: 2
|
|
433
433
|
}, 1032, ["to"])])])) : g("", !0)]),
|
|
434
434
|
_: 1
|
|
@@ -437,7 +437,7 @@ var _e = {
|
|
|
437
437
|
}, Bt = { class: "mwnf-dxa-collection-search" }, Vt = { class: "mwnf-dxa-dropdown-label" }, Ht = {
|
|
438
438
|
__name: "CollectionSearch",
|
|
439
439
|
setup(e) {
|
|
440
|
-
let t =
|
|
440
|
+
let t = te(Oe, Fe), n = m(() => ie.filter((e) => (t.value[e] ?? []).length > 0)), r = m(() => ({
|
|
441
441
|
mode: "facets",
|
|
442
442
|
target: "collection-results",
|
|
443
443
|
dates: "buckets",
|
|
@@ -447,7 +447,7 @@ var _e = {
|
|
|
447
447
|
options: t.value.country
|
|
448
448
|
}, ...n.value.map((e) => ({
|
|
449
449
|
key: e,
|
|
450
|
-
label:
|
|
450
|
+
label: oe[e],
|
|
451
451
|
options: t.value[e]
|
|
452
452
|
}))]
|
|
453
453
|
}));
|
|
@@ -467,21 +467,21 @@ var _e = {
|
|
|
467
467
|
}, Wt = { class: "mwnf-dxa-partner-objects-header" }, Gt = { class: "mwnf-dxa-partner-name" }, Kt = { class: "mwnf-dxa-partner-location" }, qt = { class: "mwnf-dxa-profile-link-container" }, Jt = {
|
|
468
468
|
__name: "PartnerObjects",
|
|
469
469
|
setup(e) {
|
|
470
|
-
let t =
|
|
471
|
-
...
|
|
470
|
+
let t = L(), n = m(() => Me.value.get(t.params.id) ?? null), i = m(() => ({
|
|
471
|
+
...He,
|
|
472
472
|
scope: (e) => e.partner_id === t.params.id
|
|
473
|
-
})), a = m(() => n.value ?
|
|
473
|
+
})), a = m(() => n.value ? Te("partners", n.value.id, we).city ?? "" : "");
|
|
474
474
|
return (e, t) => n.value ? (S(), _("div", Ut, [b(u, { spec: i.value }, {
|
|
475
|
-
before: O(() => [b(o), v("div", Wt, [v("p", Gt, T(E(
|
|
475
|
+
before: O(() => [b(o), v("div", Wt, [v("p", Gt, T(E(V)("partners", n.value.id)), 1), v("p", Kt, T([a.value, E(V)("countries", n.value.country_id)].filter(Boolean).join(", ")), 1)])]),
|
|
476
476
|
actions: O(({ pageInfo: e, goToPage: t }) => [b(r, {
|
|
477
477
|
class: "mwnf-dxa-pages",
|
|
478
478
|
"page-info": e,
|
|
479
479
|
jump: "",
|
|
480
480
|
onNavigate: t
|
|
481
481
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
482
|
-
after: O(() => [v("div", qt, [b(E(
|
|
482
|
+
after: O(() => [v("div", qt, [b(E(I), {
|
|
483
483
|
class: "mwnf-dxa-profile-link",
|
|
484
|
-
to: E(
|
|
484
|
+
to: E(Pe)(n.value)
|
|
485
485
|
}, {
|
|
486
486
|
default: O(() => [y("➤ " + T(e.$t("gallery.action.partnerProfile")), 1)]),
|
|
487
487
|
_: 1
|
|
@@ -504,7 +504,7 @@ var _e = {
|
|
|
504
504
|
class: "mwnf-dxa-editorial"
|
|
505
505
|
}));
|
|
506
506
|
}
|
|
507
|
-
}, J =
|
|
507
|
+
}, J = ue(), Xt = le(J), Zt = fe(J, Xt), Qt = de(J), { defaultLang: $t, tr: en, md: tn, labelOf: Y, loadEnglish: nn, items: rn, itemById: an, countries: on, timelines: sn, visiblePartnerById: cn, itemRoute: ln, partnerRoute: un, partnerObjectsRoute: dn } = J, { FACETS: fn, haystack: pn, tile: mn, collectionResults: hn, countryIdForCode: X } = Xt, { hasTimeline: gn, timelineSpec: _n, timelineGallerySpec: vn } = Zt, { partnerListSpec: yn, partnerSheetSpec: bn } = Qt, xn = { class: "mwnf-dxa-partners" }, Sn = { class: "mwnf-dxa-partners-options" }, Cn = { class: "mwnf-dxa-partner-text" }, wn = { class: "mwnf-dxa-partner-name" }, Tn = ["innerHTML"], En = { key: 0 }, Dn = {
|
|
508
508
|
key: 0,
|
|
509
509
|
class: "mwnf-dxa-partner-meta"
|
|
510
510
|
}, On = {
|
|
@@ -524,15 +524,15 @@ var _e = {
|
|
|
524
524
|
keypath: "exhibition.partners.intro"
|
|
525
525
|
})]),
|
|
526
526
|
row: O(({ partner: n, row: r }) => [v("div", Cn, [
|
|
527
|
-
v("div", wn, [b(E(
|
|
527
|
+
v("div", wn, [b(E(I), { to: r.route }, {
|
|
528
528
|
default: O(() => [v("span", { innerHTML: r.name }, null, 8, Tn), r.city ? (S(), _("span", En, ", " + T(r.city), 1)) : g("", !0)]),
|
|
529
529
|
_: 2
|
|
530
530
|
}, 1032, ["to"])]),
|
|
531
531
|
n.item_count ? (S(), _("div", Dn, T(n.item_count) + " " + T(e.$t("partner.item.objectsInSite")), 1)) : (S(), _("div", On, T(e.$t("exhibition.partner.noObjectsInExhibition")), 1)),
|
|
532
|
-
v("div", kn, [b(E(
|
|
532
|
+
v("div", kn, [b(E(I), { to: r.route }, {
|
|
533
533
|
default: O(() => [y(T(e.$t("exhibition.action.readMore")), 1)]),
|
|
534
534
|
_: 1
|
|
535
|
-
}, 8, ["to"]), n.item_count ? (S(), _(p, { key: 0 }, [t[0] ||= v("span", { class: "mwnf-dxa-partner-link-divider" }, "|", -1), b(E(
|
|
535
|
+
}, 8, ["to"]), n.item_count ? (S(), _(p, { key: 0 }, [t[0] ||= v("span", { class: "mwnf-dxa-partner-link-divider" }, "|", -1), b(E(I), { to: E(dn)(n) }, {
|
|
536
536
|
default: O(() => [y(T(e.$t("exhibition.action.viewObjects")), 1)]),
|
|
537
537
|
_: 1
|
|
538
538
|
}, 8, ["to"])], 64)) : g("", !0)])
|
|
@@ -544,26 +544,29 @@ var _e = {
|
|
|
544
544
|
_: 1
|
|
545
545
|
}, 8, ["spec"])]));
|
|
546
546
|
}
|
|
547
|
-
}, Nn = { class: "mwnf-dxa-profile-languages" }, Pn = { class: "mwnf-dxa-
|
|
547
|
+
}, Nn = { class: "mwnf-dxa-profile-languages" }, Pn = { class: "mwnf-dxa-partner-name" }, Fn = {
|
|
548
|
+
key: 0,
|
|
549
|
+
class: "mwnf-dxa-partner-location"
|
|
550
|
+
}, In = { class: "mwnf-dxa-profile-links-container" }, Ln = { class: "mwnf-dxa-profile-links" }, Rn = ["href"], zn = {
|
|
548
551
|
key: 0,
|
|
549
552
|
class: "mwnf-dxa-profile-objects-link"
|
|
550
|
-
},
|
|
553
|
+
}, Bn = ["innerHTML"], Vn = { key: 1 }, Hn = { class: "mwnf-dxa-contact-header" }, Un = ["innerHTML"], Wn = { key: 0 }, Gn = { key: 1 }, Kn = ["href"], qn = { key: 2 }, Jn = ["href"], Yn = {
|
|
551
554
|
key: 0,
|
|
552
555
|
class: "mwnf-dxa-contact-title"
|
|
553
|
-
},
|
|
556
|
+
}, Xn = { key: 1 }, Zn = { key: 2 }, Qn = { key: 3 }, $n = { key: 4 }, er = ["href"], tr = {
|
|
554
557
|
key: 3,
|
|
555
558
|
class: "mwnf-dxa-additional-urls"
|
|
556
|
-
},
|
|
559
|
+
}, nr = ["href"], rr = {
|
|
557
560
|
key: 2,
|
|
558
561
|
class: "mwnf-dxa-partner-logos"
|
|
559
|
-
},
|
|
562
|
+
}, ir = ["src", "alt"], Z = {
|
|
560
563
|
__name: "PartnerProfile",
|
|
561
564
|
props: { variant: {
|
|
562
565
|
type: String,
|
|
563
566
|
default: "partner"
|
|
564
567
|
} },
|
|
565
568
|
setup(e) {
|
|
566
|
-
let t = e, { t: r } =
|
|
569
|
+
let t = e, { t: r } = N(), i = m(() => t.variant === "institution"), c = m(() => i.value ? r("exhibition.action.institutionHomepage") : r("partner.nav.homepage")), l = m(() => i.value ? r("exhibition.action.viewItems") : r("exhibition.action.viewObjects")), u = L(), d = m(() => String(u.params.id)), f = C("description");
|
|
567
570
|
function D(e, t) {
|
|
568
571
|
return !!(e.address || e.phone || e.email || e.website || t.contact_person_1 || t.contact_person_2);
|
|
569
572
|
}
|
|
@@ -574,6 +577,9 @@ var _e = {
|
|
|
574
577
|
function A(e) {
|
|
575
578
|
return [e.contact_person_1, e.contact_person_2].filter(Boolean);
|
|
576
579
|
}
|
|
580
|
+
function j(e, t) {
|
|
581
|
+
return [t.city, Y("countries", e.country_id)].filter(Boolean).join(", ");
|
|
582
|
+
}
|
|
577
583
|
return (e, t) => E(cn)(d.value) ? (S(), h(s, {
|
|
578
584
|
key: 0,
|
|
579
585
|
spec: E(bn),
|
|
@@ -591,7 +597,9 @@ var _e = {
|
|
|
591
597
|
"onSelect"
|
|
592
598
|
])]),
|
|
593
599
|
b(o),
|
|
594
|
-
v("
|
|
600
|
+
v("p", Pn, T(E(Y)("partners", r.id)), 1),
|
|
601
|
+
j(r, i) ? (S(), _("p", Fn, T(j(r, i)), 1)) : g("", !0),
|
|
602
|
+
v("div", In, [v("div", Ln, [
|
|
595
603
|
v("button", {
|
|
596
604
|
class: x({ "mwnf-dxa-profile-tab--active": f.value === "description" }),
|
|
597
605
|
onClick: t[0] ||= (e) => f.value = "description"
|
|
@@ -608,8 +616,8 @@ var _e = {
|
|
|
608
616
|
href: k(i),
|
|
609
617
|
target: "_blank",
|
|
610
618
|
rel: "noopener"
|
|
611
|
-
}, T(c.value), 9,
|
|
612
|
-
]), r.item_count ? (S(), _("div",
|
|
619
|
+
}, T(c.value), 9, Rn)], 64)) : g("", !0)
|
|
620
|
+
]), r.item_count ? (S(), _("div", zn, [b(E(I), {
|
|
613
621
|
class: "mwnf-button",
|
|
614
622
|
to: E(dn)(r)
|
|
615
623
|
}, {
|
|
@@ -621,39 +629,39 @@ var _e = {
|
|
|
621
629
|
key: 0,
|
|
622
630
|
class: "mwnf-prose",
|
|
623
631
|
innerHTML: E(tn)(n.description)
|
|
624
|
-
}, null, 8,
|
|
625
|
-
v("p",
|
|
632
|
+
}, null, 8, Bn)) : f.value === "contact" ? (S(), _("div", Vn, [
|
|
633
|
+
v("p", Hn, T(e.$t("partner.info.addresses")), 1),
|
|
626
634
|
v("div", {
|
|
627
635
|
class: "mwnf-prose",
|
|
628
636
|
innerHTML: E(tn)(n.address)
|
|
629
|
-
}, null, 8,
|
|
630
|
-
n.phone ? (S(), _("p",
|
|
631
|
-
n.email ? (S(), _("p",
|
|
632
|
-
k(n) ? (S(), _("p",
|
|
637
|
+
}, null, 8, Un),
|
|
638
|
+
n.phone ? (S(), _("p", Wn, T(e.$t("partner.info.phone")) + " " + T(n.phone), 1)) : g("", !0),
|
|
639
|
+
n.email ? (S(), _("p", Gn, [v("a", { href: `mailto:${n.email}` }, T(n.email), 9, Kn)])) : g("", !0),
|
|
640
|
+
k(n) ? (S(), _("p", qn, [v("a", {
|
|
633
641
|
href: k(n),
|
|
634
642
|
target: "_blank",
|
|
635
643
|
rel: "noopener"
|
|
636
|
-
}, T(n.website), 9,
|
|
644
|
+
}, T(n.website), 9, Jn)])) : g("", !0),
|
|
637
645
|
(S(!0), _(p, null, w(A(t), (t) => (S(), _("div", {
|
|
638
646
|
class: "mwnf-dxa-contact-person",
|
|
639
647
|
key: t.name ?? t.email
|
|
640
648
|
}, [
|
|
641
|
-
t.title ? (S(), _("p",
|
|
642
|
-
t.name ? (S(), _("p",
|
|
643
|
-
t.phone ? (S(), _("p",
|
|
644
|
-
t.fax ? (S(), _("p",
|
|
645
|
-
t.email ? (S(), _("p",
|
|
649
|
+
t.title ? (S(), _("p", Yn, T(t.title), 1)) : g("", !0),
|
|
650
|
+
t.name ? (S(), _("p", Xn, T(t.name), 1)) : g("", !0),
|
|
651
|
+
t.phone ? (S(), _("p", Zn, T(e.$t("partner.info.phone")) + " " + T(t.phone), 1)) : g("", !0),
|
|
652
|
+
t.fax ? (S(), _("p", Qn, T(e.$t("partner.info.fax")) + " " + T(t.fax), 1)) : g("", !0),
|
|
653
|
+
t.email ? (S(), _("p", $n, [v("a", { href: `mailto:${t.email}` }, T(t.email), 9, er)])) : g("", !0)
|
|
646
654
|
]))), 128)),
|
|
647
|
-
t.additional_urls?.length ? (S(), _("div",
|
|
655
|
+
t.additional_urls?.length ? (S(), _("div", tr, [(S(!0), _(p, null, w(t.additional_urls, (e) => (S(), _("p", { key: e.url }, [v("a", {
|
|
648
656
|
href: e.url,
|
|
649
657
|
target: "_blank",
|
|
650
658
|
rel: "noopener"
|
|
651
|
-
}, T(e.url), 9,
|
|
652
|
-
])) : f.value === "logo" ? (S(), _("div",
|
|
659
|
+
}, T(e.url), 9, nr)]))), 128))])) : g("", !0)
|
|
660
|
+
])) : f.value === "logo" ? (S(), _("div", rr, [(S(!0), _(p, null, w(t.logos, (e) => (S(), _("img", {
|
|
653
661
|
key: e.url,
|
|
654
662
|
src: e.url,
|
|
655
663
|
alt: E(Y)("partners", t.id)
|
|
656
|
-
}, null, 8,
|
|
664
|
+
}, null, 8, ir))), 128))])) : g("", !0), b(a, {
|
|
657
665
|
latitude: t.latitude,
|
|
658
666
|
longitude: t.longitude,
|
|
659
667
|
zoom: t.map_zoom,
|
|
@@ -667,13 +675,13 @@ var _e = {
|
|
|
667
675
|
_: 1
|
|
668
676
|
}, 8, ["spec", "id"])) : (S(), h(E(ee), { key: 1 }));
|
|
669
677
|
}
|
|
670
|
-
},
|
|
678
|
+
}, ar = ["onSubmit"], or = ["placeholder"], sr = {
|
|
671
679
|
type: "submit",
|
|
672
680
|
class: "mwnf-dxa-refine-search-submit"
|
|
673
|
-
},
|
|
681
|
+
}, cr = { class: "mwnf-dxa-how-to" }, lr = { class: "mwnf-dxa-no-results" }, ur = {
|
|
674
682
|
__name: "SearchResults",
|
|
675
683
|
setup(e) {
|
|
676
|
-
let t =
|
|
684
|
+
let t = P("items", {
|
|
677
685
|
grammar: "boolean",
|
|
678
686
|
haystack: pn
|
|
679
687
|
}), n = C(!1);
|
|
@@ -694,7 +702,7 @@ var _e = {
|
|
|
694
702
|
let a = new Set(e.map((e) => e.id));
|
|
695
703
|
return t.search(i.q).filter((e) => a.has(e.id));
|
|
696
704
|
},
|
|
697
|
-
pageSize:
|
|
705
|
+
pageSize: se,
|
|
698
706
|
variant: "grid",
|
|
699
707
|
recordRoute: "item",
|
|
700
708
|
actionLabel: "exhibition.action.seeDatabaseEntry",
|
|
@@ -721,18 +729,18 @@ var _e = {
|
|
|
721
729
|
type: "text",
|
|
722
730
|
class: "mwnf-dxa-refine-search-input",
|
|
723
731
|
placeholder: e.$t("catalogue.search.keywordPlaceholder")
|
|
724
|
-
}, null, 8,
|
|
732
|
+
}, null, 8, or), [[D, i.value]]), v("button", sr, T(e.$t("catalogue.search.submit")), 1)], 40, ar), v("p", cr, [b(E(I), { to: { name: "search-how-to" } }, {
|
|
725
733
|
default: O(() => [y(T(e.$t("catalogue.search.howTo")) + " ›", 1)]),
|
|
726
734
|
_: 1
|
|
727
735
|
})])]),
|
|
728
|
-
empty: O(() => [v("p",
|
|
736
|
+
empty: O(() => [v("p", lr, [
|
|
729
737
|
y(T(e.$t("catalogue.results.noResultsSearch")) + " ", 1),
|
|
730
|
-
b(E(
|
|
738
|
+
b(E(I), { to: { name: "search-how-to" } }, {
|
|
731
739
|
default: O(() => [y(T(e.$t("catalogue.search.howTo")), 1)]),
|
|
732
740
|
_: 1
|
|
733
741
|
}),
|
|
734
742
|
t[1] ||= v("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
|
|
735
|
-
b(E(
|
|
743
|
+
b(E(I), { to: { name: "collection" } }, {
|
|
736
744
|
default: O(() => [y(T(e.$t("exhibition.section.collection")), 1)]),
|
|
737
745
|
_: 1
|
|
738
746
|
})
|
|
@@ -740,7 +748,7 @@ var _e = {
|
|
|
740
748
|
_: 1
|
|
741
749
|
}, 8, ["spec"]));
|
|
742
750
|
}
|
|
743
|
-
},
|
|
751
|
+
}, dr = {
|
|
744
752
|
__name: "TimelineResults",
|
|
745
753
|
setup(e) {
|
|
746
754
|
return (e, t) => (S(), h(f, {
|
|
@@ -751,7 +759,7 @@ var _e = {
|
|
|
751
759
|
_: 1
|
|
752
760
|
}, 8, ["spec"]));
|
|
753
761
|
}
|
|
754
|
-
},
|
|
762
|
+
}, fr = {
|
|
755
763
|
__name: "TimelineGallery",
|
|
756
764
|
setup(e) {
|
|
757
765
|
return (e, t) => (S(), h(u, {
|
|
@@ -762,13 +770,13 @@ var _e = {
|
|
|
762
770
|
_: 1
|
|
763
771
|
}, 8, ["spec"]));
|
|
764
772
|
}
|
|
765
|
-
},
|
|
773
|
+
}, pr = { class: "mwnf-dxa-date-wrapper" }, mr = {
|
|
766
774
|
key: 0,
|
|
767
775
|
class: "mwnf-dxa-timeline-link-box"
|
|
768
|
-
},
|
|
776
|
+
}, hr = { class: "mwnf-dxa-options-label" }, Q = {
|
|
769
777
|
__name: "CollectionResults",
|
|
770
778
|
setup(n) {
|
|
771
|
-
let i =
|
|
779
|
+
let i = ne(), { t: a } = N(), s = pe(), c = hn.keys, l = (e) => c.filter((t) => e[t]).length <= 1;
|
|
772
780
|
function d() {
|
|
773
781
|
i.push({ name: "collection" });
|
|
774
782
|
}
|
|
@@ -812,7 +820,7 @@ var _e = {
|
|
|
812
820
|
"placeholder",
|
|
813
821
|
"onUpdate:modelValue"
|
|
814
822
|
]),
|
|
815
|
-
(S(!0), _(p, null, w(E(
|
|
823
|
+
(S(!0), _(p, null, w(E(re), (e) => (S(), h(t, {
|
|
816
824
|
key: e,
|
|
817
825
|
"model-value": r[e],
|
|
818
826
|
options: u[e],
|
|
@@ -825,9 +833,9 @@ var _e = {
|
|
|
825
833
|
"placeholder",
|
|
826
834
|
"onUpdate:modelValue"
|
|
827
835
|
]))), 128)),
|
|
828
|
-
v("div",
|
|
836
|
+
v("div", pr, [b(t, {
|
|
829
837
|
"model-value": r.from,
|
|
830
|
-
options: E(
|
|
838
|
+
options: E(F)(c, E(a)),
|
|
831
839
|
placeholder: n.$t("catalogue.facet.startDate"),
|
|
832
840
|
"onUpdate:modelValue": (e) => o({ from: e })
|
|
833
841
|
}, null, 8, [
|
|
@@ -837,7 +845,7 @@ var _e = {
|
|
|
837
845
|
"onUpdate:modelValue"
|
|
838
846
|
]), b(t, {
|
|
839
847
|
"model-value": r.to,
|
|
840
|
-
options: E(
|
|
848
|
+
options: E(F)(c, E(a)),
|
|
841
849
|
placeholder: n.$t("catalogue.facet.endDate"),
|
|
842
850
|
"onUpdate:modelValue": (e) => o({ to: e })
|
|
843
851
|
}, null, 8, [
|
|
@@ -852,7 +860,7 @@ var _e = {
|
|
|
852
860
|
"title",
|
|
853
861
|
"reset-label",
|
|
854
862
|
"disabled"
|
|
855
|
-
]), x(r) ? (S(), _("div",
|
|
863
|
+
]), x(r) ? (S(), _("div", mr, [v("div", hr, T(n.$t("catalogue.results.timelineForSearch")), 1), v("p", null, [i[2] ||= y(" ➤ ", -1), b(E(I), { to: {
|
|
856
864
|
name: "timeline-results",
|
|
857
865
|
query: {
|
|
858
866
|
country: E(X)(r.country),
|
|
@@ -866,10 +874,10 @@ var _e = {
|
|
|
866
874
|
_: 1
|
|
867
875
|
}, 8, ["spec"]));
|
|
868
876
|
}
|
|
869
|
-
},
|
|
877
|
+
}, gr = { class: "mwnf-dxa-collection-search" }, _r = {
|
|
870
878
|
__name: "CollectionSearch",
|
|
871
879
|
setup(e) {
|
|
872
|
-
let t =
|
|
880
|
+
let t = te(rn, fn), n = m(() => re.filter((e) => (t.value[e] ?? []).length > 0)), r = m(() => ({
|
|
873
881
|
mode: "facets",
|
|
874
882
|
target: "collection-results",
|
|
875
883
|
dates: "buckets",
|
|
@@ -880,11 +888,11 @@ var _e = {
|
|
|
880
888
|
options: t.value.country
|
|
881
889
|
}, ...n.value.map((e) => ({
|
|
882
890
|
key: e,
|
|
883
|
-
label:
|
|
891
|
+
label: ae[e],
|
|
884
892
|
options: t.value[e]
|
|
885
893
|
}))]
|
|
886
894
|
}));
|
|
887
|
-
return (e, t) => (S(), _("div",
|
|
895
|
+
return (e, t) => (S(), _("div", gr, [b(l, { spec: r.value }, {
|
|
888
896
|
intro: O(() => [b(E(j), {
|
|
889
897
|
id: "mwnf-dxa-collection-search-description",
|
|
890
898
|
class: "mwnf-dxa-description mwnf-prose",
|
|
@@ -894,7 +902,7 @@ var _e = {
|
|
|
894
902
|
_: 1
|
|
895
903
|
}, 8, ["spec"])]));
|
|
896
904
|
}
|
|
897
|
-
},
|
|
905
|
+
}, vr = { class: "mwnf-dxa-partner-objects-header" }, yr = { class: "mwnf-dxa-partner-name" }, br = { class: "mwnf-dxa-partner-location" }, xr = { class: "mwnf-dxa-profile-link-container" }, $ = {
|
|
898
906
|
__name: "PartnerObjects",
|
|
899
907
|
props: {
|
|
900
908
|
variant: {
|
|
@@ -907,11 +915,11 @@ var _e = {
|
|
|
907
915
|
}
|
|
908
916
|
},
|
|
909
917
|
setup(e) {
|
|
910
|
-
let t = e, n = m(() => t.variant === "institution"), i =
|
|
918
|
+
let t = e, n = m(() => t.variant === "institution"), i = L(), a = m(() => cn(i.params.id)), s = m(() => a.value ? en("partners", a.value.id, $t).city ?? "" : ""), c = m(() => ({
|
|
911
919
|
entity: "items",
|
|
912
920
|
scope: (e) => e.partner_id === a.value?.id,
|
|
913
921
|
sort: { undated: "first" },
|
|
914
|
-
pageSize:
|
|
922
|
+
pageSize: se,
|
|
915
923
|
variant: "grid",
|
|
916
924
|
recordRoute: "item",
|
|
917
925
|
actionLabel: "exhibition.action.seeDatabaseEntry",
|
|
@@ -927,14 +935,14 @@ var _e = {
|
|
|
927
935
|
spec: c.value,
|
|
928
936
|
class: "mwnf-dxa-partner-objects"
|
|
929
937
|
}, {
|
|
930
|
-
before: O(() => [b(o), v("div",
|
|
938
|
+
before: O(() => [b(o), v("div", vr, [v("p", yr, T(E(Y)("partners", a.value.id)), 1), v("p", br, T([s.value, E(Y)("countries", a.value.country_id)].filter(Boolean).join(", ")), 1)])]),
|
|
931
939
|
actions: O(({ pageInfo: e, goToPage: t }) => [b(r, {
|
|
932
940
|
class: "mwnf-dxa-pages",
|
|
933
941
|
"page-info": e,
|
|
934
942
|
jump: "",
|
|
935
943
|
onNavigate: t
|
|
936
944
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
937
|
-
after: O(() => [v("div",
|
|
945
|
+
after: O(() => [v("div", xr, [b(E(I), {
|
|
938
946
|
class: "mwnf-dxa-profile-link",
|
|
939
947
|
to: E(un)(a.value)
|
|
940
948
|
}, {
|
|
@@ -947,7 +955,7 @@ var _e = {
|
|
|
947
955
|
};
|
|
948
956
|
//#endregion
|
|
949
957
|
//#region src/dxa/routes.js
|
|
950
|
-
function
|
|
958
|
+
function Sr(e) {
|
|
951
959
|
let t = M([
|
|
952
960
|
"gallery",
|
|
953
961
|
"items",
|
|
@@ -958,25 +966,25 @@ function br(e) {
|
|
|
958
966
|
{
|
|
959
967
|
path: "/search",
|
|
960
968
|
name: "search-results",
|
|
961
|
-
component:
|
|
969
|
+
component: q,
|
|
962
970
|
meta: t("database")
|
|
963
971
|
},
|
|
964
972
|
{
|
|
965
973
|
path: "/how-to-search",
|
|
966
974
|
name: "search-how-to",
|
|
967
|
-
component:
|
|
975
|
+
component: xe,
|
|
968
976
|
meta: t("database")
|
|
969
977
|
},
|
|
970
978
|
{
|
|
971
979
|
path: "/partners",
|
|
972
980
|
name: "partners",
|
|
973
|
-
component:
|
|
981
|
+
component: G,
|
|
974
982
|
meta: t("partners")
|
|
975
983
|
},
|
|
976
984
|
{
|
|
977
985
|
path: "/partner/:id",
|
|
978
986
|
name: "partner",
|
|
979
|
-
component:
|
|
987
|
+
component: K,
|
|
980
988
|
props: (e) => ({ id: e.params.id }),
|
|
981
989
|
meta: t("partners", "languages")
|
|
982
990
|
},
|
|
@@ -1001,13 +1009,13 @@ function br(e) {
|
|
|
1001
1009
|
{
|
|
1002
1010
|
path: "/about",
|
|
1003
1011
|
name: "about",
|
|
1004
|
-
component:
|
|
1012
|
+
component: ye,
|
|
1005
1013
|
meta: t("about")
|
|
1006
1014
|
},
|
|
1007
1015
|
{
|
|
1008
1016
|
path: "/credits",
|
|
1009
1017
|
name: "credits",
|
|
1010
|
-
component:
|
|
1018
|
+
component: be,
|
|
1011
1019
|
props: { bodyKey: n },
|
|
1012
1020
|
meta: t("credits")
|
|
1013
1021
|
},
|
|
@@ -1025,7 +1033,7 @@ function br(e) {
|
|
|
1025
1033
|
}
|
|
1026
1034
|
];
|
|
1027
1035
|
}
|
|
1028
|
-
function
|
|
1036
|
+
function Cr(e) {
|
|
1029
1037
|
let t = M([
|
|
1030
1038
|
"exhibition",
|
|
1031
1039
|
"items",
|
|
@@ -1036,7 +1044,7 @@ function xr(e) {
|
|
|
1036
1044
|
{
|
|
1037
1045
|
path: "/search",
|
|
1038
1046
|
name: "search-results",
|
|
1039
|
-
component:
|
|
1047
|
+
component: ur,
|
|
1040
1048
|
meta: t("database")
|
|
1041
1049
|
},
|
|
1042
1050
|
{
|
|
@@ -1084,33 +1092,33 @@ function xr(e) {
|
|
|
1084
1092
|
{
|
|
1085
1093
|
path: "/timeline-results",
|
|
1086
1094
|
name: "timeline-results",
|
|
1087
|
-
component:
|
|
1095
|
+
component: dr,
|
|
1088
1096
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1089
1097
|
},
|
|
1090
1098
|
{
|
|
1091
1099
|
path: "/timeline/gallery",
|
|
1092
1100
|
name: "timeline-gallery",
|
|
1093
|
-
component:
|
|
1101
|
+
component: fr,
|
|
1094
1102
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1095
1103
|
},
|
|
1096
1104
|
{
|
|
1097
1105
|
path: "/collection",
|
|
1098
1106
|
name: "collection",
|
|
1099
|
-
component:
|
|
1107
|
+
component: _r,
|
|
1100
1108
|
meta: t("collection", "tags")
|
|
1101
1109
|
},
|
|
1102
1110
|
{
|
|
1103
1111
|
path: "/collection-results",
|
|
1104
1112
|
name: "collection-results",
|
|
1105
|
-
component:
|
|
1113
|
+
component: Q,
|
|
1106
1114
|
meta: t("collection", "tags", "timelines")
|
|
1107
1115
|
}
|
|
1108
1116
|
];
|
|
1109
1117
|
}
|
|
1110
|
-
function
|
|
1111
|
-
if (e === "gallery") return
|
|
1112
|
-
if (e === "exhibition") return
|
|
1118
|
+
function wr(e, t = {}) {
|
|
1119
|
+
if (e === "gallery") return Sr(t);
|
|
1120
|
+
if (e === "exhibition") return Cr(t);
|
|
1113
1121
|
throw Error(`standardRoutes: unknown family "${e}" (expected "gallery" or "exhibition")`);
|
|
1114
1122
|
}
|
|
1115
1123
|
//#endregion
|
|
1116
|
-
export {
|
|
1124
|
+
export { Q as ExhibitionCollectionResults, _r as ExhibitionCollectionSearch, $ as ExhibitionPartnerObjects, Z as ExhibitionPartnerProfile, Mn as ExhibitionPartners, Yt as ExhibitionSearchHowTo, ur as ExhibitionSearchResults, fr as ExhibitionTimelineGallery, dr as ExhibitionTimelineResults, ye as GalleryAbout, zt as GalleryCollectionResults, Ht as GalleryCollectionSearch, be as GalleryCredits, Jt as GalleryPartnerObjects, K as GalleryPartnerProfile, G as GalleryPartners, xe as GallerySearchHowTo, q as GallerySearchResults, Ft as GalleryTimelineGallery, Nt as GalleryTimelineResults, wr as standardRoutes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.2",
|
|
4
4
|
"description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test": "vitest run"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@museumwnf/viewer-core": "^1.16.0",
|
|
38
|
+
"@museumwnf/viewer-core": "^1.16.0 || ^2.0.0",
|
|
39
39
|
"vue": "^3.5.0",
|
|
40
40
|
"vue-router": "^4.5.0 || ^5.0.0"
|
|
41
41
|
},
|