@museumwnf/viewer-layout 2.15.2 → 2.16.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 +108 -28
- package/dist/BackLink-LfSIuXnL.js +45 -0
- package/dist/TimelineEventList-D5Hot788.js +1362 -0
- package/dist/{TimelineLookup-DRc43FkL.js → TimelineLookup-D-p1aQ_Z.js} +1 -1
- package/dist/TimelineResultsView-DJo_yYEK.js +1203 -0
- package/dist/{content-DUXrQ-l8.js → content-DncTPD5P.js} +46 -21
- package/dist/content.js +5 -5
- package/dist/dxa.js +418 -570
- package/dist/index.js +5 -5
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +287 -271
- package/package.json +3 -3
- package/src/tokens.reference.css +26 -0
- package/dist/BackLink-BJ16COHd.js +0 -106
- package/dist/TimelineEventList-BmfLBaTT.js +0 -967
- package/dist/TimelineResultsView-D78PPWk-.js +0 -1220
package/dist/dxa.js
CHANGED
|
@@ -1,40 +1,144 @@
|
|
|
1
|
-
import { d as e,
|
|
2
|
-
import {
|
|
3
|
-
import { a as s, i as c, n as l, o as u, r as d, t as f } from "./TimelineResultsView-
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { I18nText as
|
|
6
|
-
import { RouterLink as
|
|
7
|
-
import { FACET_CATEGORIES as
|
|
8
|
-
//#region src/dxa/
|
|
9
|
-
var
|
|
1
|
+
import { d as e, h as t, m as n, n as r, p as i, v as a } from "./TimelineEventList-D5Hot788.js";
|
|
2
|
+
import { t as o } from "./BackLink-LfSIuXnL.js";
|
|
3
|
+
import { a as s, i as c, n as l, o as u, r as d, t as f } from "./TimelineResultsView-DJo_yYEK.js";
|
|
4
|
+
import { Fragment as ee, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, vModelText as te, withCtx as T, withDirectives as ne, withModifiers as re } from "vue";
|
|
5
|
+
import { I18nText as E, NotFoundView as ie, partnerView as D, sectionMeta as O, useFacets as k, useI18n as A, useKeywordIndex as ae, yearBuckets as j } from "@museumwnf/viewer-core";
|
|
6
|
+
import { RouterLink as M, useRoute as N, useRouter as oe } from "vue-router";
|
|
7
|
+
import { FACET_CATEGORIES as P, FACET_CATEGORIES as F, FACET_LABEL_KEYS as se, FACET_LABEL_KEYS as ce, PAGE_SIZE as I, PAGE_SIZE as le, useExhibitionCollection as ue, useExhibitionData as de, useExhibitionPartner as fe, useExhibitionTimeline as pe, useFacetLabels as me, useFacetLabels as he, useGalleryCollection as ge, useGalleryData as _e, useGalleryPartner as ve, useGalleryTimeline as ye } from "@museumwnf/viewer-core/dxa";
|
|
8
|
+
//#region src/dxa/PartnerDetail.vue
|
|
9
|
+
var be = { class: "mwnf-dxa-profile-languages" }, L = {
|
|
10
|
+
__name: "PartnerDetail",
|
|
11
|
+
props: {
|
|
12
|
+
id: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
family: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: !0
|
|
19
|
+
},
|
|
20
|
+
variant: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "partner"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(t) {
|
|
26
|
+
let n = t, { t: i } = A(), c = p(() => n.family.labels?.[n.variant] ?? n.family.labels?.partner ?? {});
|
|
27
|
+
return (n, l) => t.family.visible(t.id) ? (b(), m(s, {
|
|
28
|
+
key: 0,
|
|
29
|
+
spec: t.family.spec,
|
|
30
|
+
id: t.id,
|
|
31
|
+
class: "mwnf-dxa-partner-profile"
|
|
32
|
+
}, {
|
|
33
|
+
header: T(({ languages: t, language: n, select: r }) => [_("div", be, [y(e, {
|
|
34
|
+
languages: t,
|
|
35
|
+
language: n,
|
|
36
|
+
onSelect: r
|
|
37
|
+
}, null, 8, [
|
|
38
|
+
"languages",
|
|
39
|
+
"language",
|
|
40
|
+
"onSelect"
|
|
41
|
+
])]), y(o)]),
|
|
42
|
+
"before-sheet": T(({ record: e, text: n, dir: o }) => [y(r, {
|
|
43
|
+
variant: "full",
|
|
44
|
+
partner: t.family.view(e, n),
|
|
45
|
+
heading: 1,
|
|
46
|
+
"homepage-label": c.value.homepage ?? "partner.nav.homepage",
|
|
47
|
+
dir: o
|
|
48
|
+
}, {
|
|
49
|
+
actions: T(({ partner: e }) => [e.objectsRoute ? (b(), m(a, {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "mwnf-button",
|
|
52
|
+
to: e.objectsRoute
|
|
53
|
+
}, {
|
|
54
|
+
default: T(() => [v(C(w(i)(c.value.objects ?? "partner.action.viewObjects")), 1)]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["to"])) : h("", !0)]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, [
|
|
59
|
+
"partner",
|
|
60
|
+
"homepage-label",
|
|
61
|
+
"dir"
|
|
62
|
+
])]),
|
|
63
|
+
_: 1
|
|
64
|
+
}, 8, ["spec", "id"])) : (b(), m(w(ie), { key: 1 }));
|
|
65
|
+
}
|
|
66
|
+
}, R = _e(), z = ge(R), xe = ye(R, z), Se = ve(R, z), { defaultLang: B, tr: V, md: Ce, mdInline: we, loadEnglish: Te, labelOf: H, items: Ee, partners: De, countries: Oe, timelines: ke, partnerById: Ae, itemRoute: je, partnerRoute: U, partnerObjectsRoute: W } = R, { FACETS: Me, haystack: Ne, tile: Pe, collectionResults: G, countryIdForCode: K } = z, { timelineResults: Fe, timelineGallery: Ie } = xe, { partnerList: Le, partnerSheet: Re, partnerObjects: ze } = Se, Be = {
|
|
67
|
+
countryLabel: (e) => H("countries", e),
|
|
68
|
+
md: Ce,
|
|
69
|
+
mdInline: we,
|
|
70
|
+
route: U,
|
|
71
|
+
objectsRoute: W
|
|
72
|
+
}, q = {
|
|
73
|
+
spec: {
|
|
74
|
+
...Re,
|
|
75
|
+
media: () => []
|
|
76
|
+
},
|
|
77
|
+
visible: () => !0,
|
|
78
|
+
view: (e, t) => D(e, {
|
|
79
|
+
...V("partners", e.id, B),
|
|
80
|
+
...t
|
|
81
|
+
}, Be),
|
|
82
|
+
labels: { partner: {
|
|
83
|
+
objects: "partner.action.viewObjects",
|
|
84
|
+
homepage: "partner.nav.homepage"
|
|
85
|
+
} }
|
|
86
|
+
}, J = de(), Y = ue(J), Ve = pe(J, Y), He = fe(J), { defaultLang: Ue, tr: We, md: Ge, mdInline: Ke, labelOf: qe, loadEnglish: Je, items: Ye, itemById: Xe, countries: Ze, timelines: Qe, visiblePartnerById: $e, isHiddenPartner: et, itemRoute: tt, partnerRoute: nt, partnerObjectsRoute: rt } = J, { FACETS: it, haystack: at, tile: ot, collectionResults: st, countryIdForCode: X } = Y, { hasTimeline: ct, timelineSpec: lt, timelineGallerySpec: ut } = Ve, { partnerListSpec: dt, partnerSheetSpec: ft } = He, pt = {
|
|
87
|
+
countryLabel: (e) => qe("countries", e),
|
|
88
|
+
md: Ge,
|
|
89
|
+
mdInline: Ke,
|
|
90
|
+
route: nt,
|
|
91
|
+
objectsRoute: rt,
|
|
92
|
+
hidden: et
|
|
93
|
+
}, Z = {
|
|
94
|
+
spec: {
|
|
95
|
+
...ft,
|
|
96
|
+
media: () => []
|
|
97
|
+
},
|
|
98
|
+
visible: (e) => !!$e(e),
|
|
99
|
+
view: (e, t) => D(e, {
|
|
100
|
+
...We("partners", e.id, Ue),
|
|
101
|
+
...t
|
|
102
|
+
}, pt),
|
|
103
|
+
labels: {
|
|
104
|
+
partner: {
|
|
105
|
+
objects: "partner.action.viewObjects",
|
|
106
|
+
homepage: "partner.nav.homepage"
|
|
107
|
+
},
|
|
108
|
+
institution: {
|
|
109
|
+
objects: "exhibition.action.viewItems",
|
|
110
|
+
homepage: "exhibition.action.institutionHomepage"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}, mt = {
|
|
10
114
|
__name: "About",
|
|
11
115
|
setup(e) {
|
|
12
116
|
let t = {
|
|
13
117
|
body: "gallery.about.body",
|
|
14
118
|
back: !0
|
|
15
119
|
};
|
|
16
|
-
return (e, n) => (
|
|
120
|
+
return (e, n) => (b(), m(d, {
|
|
17
121
|
spec: t,
|
|
18
122
|
class: "mwnf-dxa-editorial"
|
|
19
123
|
}));
|
|
20
124
|
}
|
|
21
|
-
},
|
|
125
|
+
}, ht = {
|
|
22
126
|
__name: "Credits",
|
|
23
127
|
props: { bodyKey: {
|
|
24
128
|
type: String,
|
|
25
129
|
required: !0
|
|
26
130
|
} },
|
|
27
131
|
setup(e) {
|
|
28
|
-
let t = e, n =
|
|
132
|
+
let t = e, n = p(() => ({
|
|
29
133
|
body: t.bodyKey,
|
|
30
134
|
back: !0
|
|
31
135
|
}));
|
|
32
|
-
return (e, t) => (
|
|
136
|
+
return (e, t) => (b(), m(d, {
|
|
33
137
|
spec: n.value,
|
|
34
138
|
class: "mwnf-dxa-editorial"
|
|
35
139
|
}, null, 8, ["spec"]));
|
|
36
140
|
}
|
|
37
|
-
},
|
|
141
|
+
}, gt = {
|
|
38
142
|
__name: "SearchHowTo",
|
|
39
143
|
setup(e) {
|
|
40
144
|
let t = {
|
|
@@ -44,214 +148,56 @@ var ye = {
|
|
|
44
148
|
to: { name: "collection" }
|
|
45
149
|
}
|
|
46
150
|
};
|
|
47
|
-
return (e, n) => (
|
|
151
|
+
return (e, n) => (b(), m(d, {
|
|
48
152
|
spec: t,
|
|
49
153
|
class: "mwnf-dxa-editorial"
|
|
50
154
|
}));
|
|
51
155
|
}
|
|
52
|
-
},
|
|
53
|
-
key: 0,
|
|
54
|
-
class: "mwnf-dxa-partner-meta"
|
|
55
|
-
}, Je = {
|
|
56
|
-
key: 1,
|
|
57
|
-
class: "mwnf-dxa-partner-meta mwnf-dxa-partner-meta--empty"
|
|
58
|
-
}, Ye = { class: "mwnf-dxa-partner-links" }, Xe = {
|
|
59
|
-
key: 0,
|
|
60
|
-
class: "mwnf-dxa-partner-logo"
|
|
61
|
-
}, Ze = ["src", "alt"], G = {
|
|
156
|
+
}, _t = { class: "mwnf-dxa-partners" }, vt = {
|
|
62
157
|
__name: "Partners",
|
|
63
158
|
setup(e) {
|
|
64
|
-
|
|
65
|
-
|
|
159
|
+
let t = {
|
|
160
|
+
...Le,
|
|
161
|
+
objectsRoute: W,
|
|
162
|
+
actions: !0,
|
|
163
|
+
emptyLabel: "gallery.partner.noObjectsInGallery"
|
|
164
|
+
};
|
|
165
|
+
return (e, n) => (b(), g("div", _t, [y(c, { spec: t }, {
|
|
166
|
+
before: T(() => [y(o), y(w(E), {
|
|
66
167
|
id: "mwnf-dxa-partners-intro",
|
|
67
168
|
class: "mwnf-prose",
|
|
68
169
|
dir: "auto",
|
|
69
170
|
keypath: "gallery.partners.intro"
|
|
70
171
|
})]),
|
|
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
|
-
_: 2
|
|
75
|
-
}, 1032, ["to"])]),
|
|
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
|
-
default: O(() => [y(T(e.$t("gallery.action.readMore")), 1)]),
|
|
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(I), { to: E(H)(n) }, {
|
|
81
|
-
default: O(() => [y(T(e.$t("gallery.action.viewObjects")), 1)]),
|
|
82
|
-
_: 1
|
|
83
|
-
}, 8, ["to"])], 64)) : g("", !0)])
|
|
84
|
-
]), r.logo ? (S(), _("div", Xe, [v("img", {
|
|
85
|
-
src: r.logo,
|
|
86
|
-
alt: E(V)("partners", n.id),
|
|
87
|
-
loading: "lazy"
|
|
88
|
-
}, null, 8, Ze)])) : g("", !0)]),
|
|
89
|
-
_: 1
|
|
90
|
-
}, 8, ["spec"])]));
|
|
91
|
-
}
|
|
92
|
-
}, Qe = { class: "mwnf-dxa-profile-languages" }, $e = {
|
|
93
|
-
key: 0,
|
|
94
|
-
class: "mwnf-loader"
|
|
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
|
-
key: 0,
|
|
97
|
-
class: "mwnf-dxa-profile-objects-link"
|
|
98
|
-
}, st = {
|
|
99
|
-
key: 0,
|
|
100
|
-
class: "mwnf-dxa-profile-photo-wrapper"
|
|
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
|
-
key: 0,
|
|
103
|
-
class: "mwnf-dxa-contact-title"
|
|
104
|
-
}, yt = { key: 1 }, bt = { key: 2 }, xt = { key: 3 }, St = { key: 4 }, Ct = ["href"], wt = {
|
|
105
|
-
key: 3,
|
|
106
|
-
class: "mwnf-dxa-additional-urls"
|
|
107
|
-
}, Tt = ["href"], Et = {
|
|
108
|
-
key: 2,
|
|
109
|
-
class: "mwnf-dxa-partner-logos"
|
|
110
|
-
}, Dt = ["src", "alt"], K = {
|
|
111
|
-
__name: "PartnerProfile",
|
|
112
|
-
props: { id: {
|
|
113
|
-
type: String,
|
|
114
|
-
required: !0
|
|
115
|
-
} },
|
|
116
|
-
setup(e) {
|
|
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
|
-
function d(e) {
|
|
119
|
-
let t = e.website;
|
|
120
|
-
return t ? /^https?:\/\//i.test(t) ? t : `https://${t}` : null;
|
|
121
|
-
}
|
|
122
|
-
return (e, f) => (S(), h(s, {
|
|
123
|
-
spec: E(Ve),
|
|
124
|
-
id: t.id,
|
|
125
|
-
class: "mwnf-dxa-partner-profile"
|
|
126
|
-
}, {
|
|
127
|
-
header: O(({ record: e, text: t, languages: i, language: a, select: s, ready: l }) => [
|
|
128
|
-
v("div", Qe, [b(n, {
|
|
129
|
-
languages: i,
|
|
130
|
-
language: a,
|
|
131
|
-
onSelect: s
|
|
132
|
-
}, null, 8, [
|
|
133
|
-
"languages",
|
|
134
|
-
"language",
|
|
135
|
-
"onSelect"
|
|
136
|
-
])]),
|
|
137
|
-
b(o),
|
|
138
|
-
l ? (S(), _(p, { key: 1 }, [
|
|
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
|
-
v("button", {
|
|
143
|
-
class: x({ "mwnf-dxa-profile-tab--active": c.value === "description" }),
|
|
144
|
-
onClick: f[0] ||= (e) => c.value = "description"
|
|
145
|
-
}, T(E(r)("partner.info.about")), 3),
|
|
146
|
-
u(e, t) ? (S(), _(p, { key: 0 }, [f[3] ||= v("span", { class: "mwnf-dxa-profile-divider" }, "|", -1), v("button", {
|
|
147
|
-
class: x({ "mwnf-dxa-profile-tab--active": c.value === "contact" }),
|
|
148
|
-
onClick: f[1] ||= (e) => c.value = "contact"
|
|
149
|
-
}, T(E(r)("partner.info.contact")), 3)], 64)) : g("", !0),
|
|
150
|
-
e.logos?.length ? (S(), _(p, { key: 1 }, [f[4] ||= v("span", { class: "mwnf-dxa-profile-divider" }, "|", -1), v("button", {
|
|
151
|
-
class: x({ "mwnf-dxa-profile-tab--active": c.value === "logo" }),
|
|
152
|
-
onClick: f[2] ||= (e) => c.value = "logo"
|
|
153
|
-
}, T(E(r)("partner.info.logo")), 3)], 64)) : g("", !0),
|
|
154
|
-
d(t) ? (S(), _(p, { key: 2 }, [f[5] ||= v("span", { class: "mwnf-dxa-profile-divider" }, "|", -1), v("a", {
|
|
155
|
-
href: d(t),
|
|
156
|
-
target: "_blank",
|
|
157
|
-
rel: "noopener"
|
|
158
|
-
}, "↗ " + T(E(r)("partner.nav.homepage")), 9, at)], 64)) : g("", !0)
|
|
159
|
-
]), e.item_count ? (S(), _("div", ot, [b(E(I), {
|
|
160
|
-
class: "mwnf-button",
|
|
161
|
-
to: E(H)(e)
|
|
162
|
-
}, {
|
|
163
|
-
default: O(() => [y(T(E(r)("gallery.partner.viewObjects")), 1)]),
|
|
164
|
-
_: 1
|
|
165
|
-
}, 8, ["to"])])) : g("", !0)])
|
|
166
|
-
], 64)) : (S(), _("div", $e, T(E(r)("core.status.loading")), 1))
|
|
167
|
-
]),
|
|
168
|
-
"before-sheet": O(({ record: t, text: n, language: r, ready: a }) => [a ? (S(), _("div", st, [t.images?.length ? (S(), h(i, {
|
|
169
|
-
key: 0,
|
|
170
|
-
class: "mwnf-dxa-profile-photo",
|
|
171
|
-
images: t.images.map((e) => ({
|
|
172
|
-
url: e.url,
|
|
173
|
-
alt: E(V)("partners", t.id),
|
|
174
|
-
caption: e.captions?.[r] ?? e.captions?.en ?? "",
|
|
175
|
-
photographer: e.photographer ?? "",
|
|
176
|
-
copyright: e.copyright ?? ""
|
|
177
|
-
}))
|
|
178
|
-
}, null, 8, ["images"])) : g("", !0), v("div", ct, [c.value === "description" ? (S(), _("div", {
|
|
179
|
-
key: 0,
|
|
180
|
-
class: "mwnf-prose",
|
|
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
|
-
v("div", {
|
|
185
|
-
class: "mwnf-prose",
|
|
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
|
-
href: d(n),
|
|
192
|
-
target: "_blank",
|
|
193
|
-
rel: "noopener"
|
|
194
|
-
}, T(n.website), 9, _t)])) : g("", !0),
|
|
195
|
-
(S(!0), _(p, null, w(l(t), (t) => (S(), _("div", {
|
|
196
|
-
class: "mwnf-dxa-contact-person",
|
|
197
|
-
key: t.name ?? t.email
|
|
198
|
-
}, [
|
|
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
|
-
]))), 128)),
|
|
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
|
-
href: e.url,
|
|
207
|
-
target: "_blank",
|
|
208
|
-
rel: "noopener"
|
|
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
|
-
key: e.url,
|
|
212
|
-
src: e.url,
|
|
213
|
-
alt: E(V)("partners", t.id)
|
|
214
|
-
}, null, 8, Dt))), 128))])) : g("", !0)])])) : g("", !0)]),
|
|
215
|
-
"after-sheet": O(({ record: e }) => [b(a, {
|
|
216
|
-
latitude: e.latitude,
|
|
217
|
-
longitude: e.longitude,
|
|
218
|
-
zoom: e.map_zoom,
|
|
219
|
-
label: E(V)("partners", e.id)
|
|
220
|
-
}, null, 8, [
|
|
221
|
-
"latitude",
|
|
222
|
-
"longitude",
|
|
223
|
-
"zoom",
|
|
224
|
-
"label"
|
|
225
|
-
])]),
|
|
226
172
|
_: 1
|
|
227
|
-
}
|
|
173
|
+
})]));
|
|
228
174
|
}
|
|
229
|
-
},
|
|
175
|
+
}, yt = ["onSubmit"], bt = ["placeholder"], xt = {
|
|
230
176
|
type: "submit",
|
|
231
177
|
class: "mwnf-dxa-refine-search-submit"
|
|
232
|
-
},
|
|
178
|
+
}, St = { class: "mwnf-dxa-how-to" }, Ct = { class: "mwnf-dxa-no-results" }, wt = {
|
|
233
179
|
__name: "SearchResults",
|
|
234
180
|
setup(e) {
|
|
235
|
-
let t =
|
|
181
|
+
let t = ae("items", {
|
|
236
182
|
grammar: "boolean",
|
|
237
|
-
haystack:
|
|
238
|
-
}), n =
|
|
239
|
-
|
|
183
|
+
haystack: Ne
|
|
184
|
+
}), n = x(!1);
|
|
185
|
+
Te().then(() => {
|
|
240
186
|
n.value = !0;
|
|
241
187
|
});
|
|
242
188
|
function r(e) {
|
|
243
189
|
return !e || e === "all-objects";
|
|
244
190
|
}
|
|
245
|
-
let i =
|
|
191
|
+
let i = x(""), a = p(() => ({
|
|
246
192
|
entity: "items",
|
|
247
193
|
keys: ["q"],
|
|
248
194
|
sort: !1,
|
|
249
195
|
narrow: (e, i) => n.value ? r(i.q) ? e : t.search(i.q) : [],
|
|
250
|
-
pageSize:
|
|
196
|
+
pageSize: le,
|
|
251
197
|
variant: "grid",
|
|
252
198
|
recordRoute: "item",
|
|
253
199
|
actionLabel: "gallery.action.seeDatabaseEntry",
|
|
254
|
-
record: (e, { t }) =>
|
|
200
|
+
record: (e, { t }) => Pe(e, t),
|
|
255
201
|
pagination: { jump: !0 },
|
|
256
202
|
summary: ({ filters: e, pageInfo: t, t: n, total: i }) => [{
|
|
257
203
|
label: n("gallery.section.database"),
|
|
@@ -261,118 +207,118 @@ var ye = {
|
|
|
261
207
|
value: `${n("catalogue.results.outOf")} ${i} ${n("catalogue.results.objects")}`
|
|
262
208
|
}]
|
|
263
209
|
}));
|
|
264
|
-
return (e, t) => (
|
|
210
|
+
return (e, t) => (b(), m(u, {
|
|
265
211
|
spec: a.value,
|
|
266
212
|
class: "mwnf-dxa-search-results"
|
|
267
213
|
}, {
|
|
268
|
-
before:
|
|
269
|
-
filters:
|
|
214
|
+
before: T(() => [y(o)]),
|
|
215
|
+
filters: T(({ apply: n }) => [_("form", {
|
|
270
216
|
class: "mwnf-dxa-refine-search",
|
|
271
|
-
onSubmit:
|
|
272
|
-
}, [
|
|
217
|
+
onSubmit: re((e) => n({ q: i.value || "all-objects" }), ["prevent"])
|
|
218
|
+
}, [ne(_("input", {
|
|
273
219
|
"onUpdate:modelValue": t[0] ||= (e) => i.value = e,
|
|
274
220
|
type: "text",
|
|
275
221
|
class: "mwnf-dxa-refine-search-input",
|
|
276
222
|
placeholder: e.$t("catalogue.search.keywordPlaceholder")
|
|
277
|
-
}, null, 8,
|
|
278
|
-
default:
|
|
223
|
+
}, null, 8, bt), [[te, i.value]]), _("button", xt, C(e.$t("catalogue.search.submit")), 1)], 40, yt), _("p", St, [y(w(M), { to: { name: "search-how-to" } }, {
|
|
224
|
+
default: T(() => [v(C(e.$t("catalogue.search.howTo")) + " ›", 1)]),
|
|
279
225
|
_: 1
|
|
280
226
|
})])]),
|
|
281
|
-
empty:
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
default:
|
|
227
|
+
empty: T(() => [_("p", Ct, [
|
|
228
|
+
v(C(e.$t("catalogue.results.noResultsSearch")) + " ", 1),
|
|
229
|
+
y(w(M), { to: { name: "search-how-to" } }, {
|
|
230
|
+
default: T(() => [v(C(e.$t("catalogue.search.howTo")), 1)]),
|
|
285
231
|
_: 1
|
|
286
232
|
}),
|
|
287
|
-
t[1] ||=
|
|
288
|
-
|
|
289
|
-
default:
|
|
233
|
+
t[1] ||= _("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
|
|
234
|
+
y(w(M), { to: { name: "collection" } }, {
|
|
235
|
+
default: T(() => [v(C(e.$t("gallery.section.collection")), 1)]),
|
|
290
236
|
_: 1
|
|
291
237
|
})
|
|
292
238
|
])]),
|
|
293
239
|
_: 1
|
|
294
240
|
}, 8, ["spec"]));
|
|
295
241
|
}
|
|
296
|
-
},
|
|
242
|
+
}, Tt = {
|
|
297
243
|
__name: "TimelineResults",
|
|
298
244
|
setup(e) {
|
|
299
|
-
return (e, t) => (
|
|
300
|
-
spec:
|
|
245
|
+
return (e, t) => (b(), m(f, {
|
|
246
|
+
spec: w(Fe),
|
|
301
247
|
class: "mwnf-dxa-timeline-results"
|
|
302
248
|
}, {
|
|
303
|
-
before:
|
|
249
|
+
before: T(() => [y(o)]),
|
|
304
250
|
_: 1
|
|
305
251
|
}, 8, ["spec"]));
|
|
306
252
|
}
|
|
307
|
-
},
|
|
253
|
+
}, Et = { class: "mwnf-dxa-back-to-events" }, Dt = {
|
|
308
254
|
__name: "TimelineGallery",
|
|
309
255
|
setup(e) {
|
|
310
|
-
return (e,
|
|
311
|
-
spec:
|
|
256
|
+
return (e, n) => (b(), m(u, {
|
|
257
|
+
spec: w(Ie),
|
|
312
258
|
class: "mwnf-dxa-timeline-gallery"
|
|
313
259
|
}, {
|
|
314
|
-
before:
|
|
315
|
-
actions:
|
|
260
|
+
before: T(() => [y(o)]),
|
|
261
|
+
actions: T(({ filters: n, pageInfo: r, goToPage: i }) => [_("p", Et, [y(w(M), { to: {
|
|
316
262
|
name: "timeline-results",
|
|
317
263
|
query: {
|
|
318
|
-
country:
|
|
319
|
-
begin:
|
|
320
|
-
end:
|
|
264
|
+
country: n.country,
|
|
265
|
+
begin: n.begin,
|
|
266
|
+
end: n.end
|
|
321
267
|
}
|
|
322
268
|
} }, {
|
|
323
|
-
default:
|
|
269
|
+
default: T(() => [v(" ➤ " + C(e.$t("timeline.nav.backToEvents")), 1)]),
|
|
324
270
|
_: 1
|
|
325
|
-
}, 8, ["to"])]),
|
|
271
|
+
}, 8, ["to"])]), y(t, {
|
|
326
272
|
class: "mwnf-dxa-pages",
|
|
327
|
-
"page-info":
|
|
273
|
+
"page-info": r,
|
|
328
274
|
jump: "",
|
|
329
275
|
onNavigate: i
|
|
330
276
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
331
277
|
_: 1
|
|
332
278
|
}, 8, ["spec"]));
|
|
333
279
|
}
|
|
334
|
-
},
|
|
280
|
+
}, Ot = { class: "mwnf-dxa-date-wrapper" }, kt = {
|
|
335
281
|
key: 0,
|
|
336
282
|
class: "mwnf-dxa-timeline-link-box"
|
|
337
|
-
},
|
|
283
|
+
}, At = { class: "mwnf-dxa-options-label" }, jt = {
|
|
338
284
|
__name: "CollectionResults",
|
|
339
|
-
setup(
|
|
340
|
-
let
|
|
285
|
+
setup(e) {
|
|
286
|
+
let r = oe(), { t: a } = A(), s = he(), c = G.keys, l = (e) => c.filter((t) => e[t]).length <= 1;
|
|
341
287
|
function d() {
|
|
342
|
-
|
|
288
|
+
r.push({ name: "collection" });
|
|
343
289
|
}
|
|
344
|
-
let f =
|
|
290
|
+
let f = p(() => new Set((ke.value ?? []).map((e) => e.country_id)));
|
|
345
291
|
function x(e) {
|
|
346
|
-
let t =
|
|
292
|
+
let t = K(e.country);
|
|
347
293
|
return !!(t && f.value.has(t));
|
|
348
294
|
}
|
|
349
|
-
return (
|
|
350
|
-
spec:
|
|
295
|
+
return (e, r) => (b(), m(u, {
|
|
296
|
+
spec: w(G),
|
|
351
297
|
class: "mwnf-dxa-collection-results"
|
|
352
298
|
}, {
|
|
353
|
-
before:
|
|
354
|
-
actions:
|
|
299
|
+
before: T(() => [y(o)]),
|
|
300
|
+
actions: T(({ pageInfo: e, goToPage: n }) => [y(t, {
|
|
355
301
|
class: "mwnf-dxa-pages",
|
|
356
302
|
"page-info": e,
|
|
357
303
|
jump: "",
|
|
358
|
-
onNavigate:
|
|
304
|
+
onNavigate: n
|
|
359
305
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
360
|
-
empty:
|
|
306
|
+
empty: T(() => [v(C(e.$t("catalogue.results.noResults")) + " ", 1), _("button", {
|
|
361
307
|
class: "mwnf-dxa-linkish",
|
|
362
|
-
onClick:
|
|
363
|
-
},
|
|
364
|
-
aside:
|
|
308
|
+
onClick: r[0] ||= (e) => d()
|
|
309
|
+
}, C(e.$t("catalogue.results.resetFilters")), 1)]),
|
|
310
|
+
aside: T(({ filters: t, apply: o, matching: c, options: u }) => [y(i, {
|
|
365
311
|
mode: "immediate",
|
|
366
|
-
title: l(
|
|
367
|
-
"reset-label":
|
|
312
|
+
title: l(t) ? e.$t("catalogue.facet.filterBy") : e.$t("catalogue.facet.filterFurtherBy"),
|
|
313
|
+
"reset-label": e.$t("catalogue.results.resetFilters"),
|
|
368
314
|
disabled: c.length === 0,
|
|
369
|
-
onReset:
|
|
315
|
+
onReset: r[1] ||= (e) => d()
|
|
370
316
|
}, {
|
|
371
|
-
default:
|
|
372
|
-
|
|
373
|
-
"model-value":
|
|
317
|
+
default: T(() => [
|
|
318
|
+
y(n, {
|
|
319
|
+
"model-value": t.country,
|
|
374
320
|
options: u.country,
|
|
375
|
-
placeholder:
|
|
321
|
+
placeholder: e.$t("catalogue.facet.selectCountry"),
|
|
376
322
|
"onUpdate:modelValue": (e) => o({ country: e })
|
|
377
323
|
}, null, 8, [
|
|
378
324
|
"model-value",
|
|
@@ -380,11 +326,11 @@ var ye = {
|
|
|
380
326
|
"placeholder",
|
|
381
327
|
"onUpdate:modelValue"
|
|
382
328
|
]),
|
|
383
|
-
(
|
|
329
|
+
(b(!0), g(ee, null, S(w(F), (e) => (b(), m(n, {
|
|
384
330
|
key: e,
|
|
385
|
-
"model-value":
|
|
331
|
+
"model-value": t[e],
|
|
386
332
|
options: u[e],
|
|
387
|
-
placeholder:
|
|
333
|
+
placeholder: w(s)[e],
|
|
388
334
|
"hide-empty": "",
|
|
389
335
|
"onUpdate:modelValue": (t) => o({ [e]: t })
|
|
390
336
|
}, null, 8, [
|
|
@@ -393,20 +339,20 @@ var ye = {
|
|
|
393
339
|
"placeholder",
|
|
394
340
|
"onUpdate:modelValue"
|
|
395
341
|
]))), 128)),
|
|
396
|
-
|
|
397
|
-
"model-value":
|
|
398
|
-
options:
|
|
399
|
-
placeholder:
|
|
342
|
+
_("div", Ot, [y(n, {
|
|
343
|
+
"model-value": t.from,
|
|
344
|
+
options: w(j)(c, w(a)),
|
|
345
|
+
placeholder: e.$t("catalogue.facet.startDate"),
|
|
400
346
|
"onUpdate:modelValue": (e) => o({ from: e })
|
|
401
347
|
}, null, 8, [
|
|
402
348
|
"model-value",
|
|
403
349
|
"options",
|
|
404
350
|
"placeholder",
|
|
405
351
|
"onUpdate:modelValue"
|
|
406
|
-
]),
|
|
407
|
-
"model-value":
|
|
408
|
-
options:
|
|
409
|
-
placeholder:
|
|
352
|
+
]), y(n, {
|
|
353
|
+
"model-value": t.to,
|
|
354
|
+
options: w(j)(c, w(a)),
|
|
355
|
+
placeholder: e.$t("catalogue.facet.endDate"),
|
|
410
356
|
"onUpdate:modelValue": (e) => o({ to: e })
|
|
411
357
|
}, null, 8, [
|
|
412
358
|
"model-value",
|
|
@@ -420,24 +366,24 @@ var ye = {
|
|
|
420
366
|
"title",
|
|
421
367
|
"reset-label",
|
|
422
368
|
"disabled"
|
|
423
|
-
]), x(
|
|
369
|
+
]), x(t) ? (b(), g("div", kt, [_("div", At, C(e.$t("catalogue.results.timelineForSearch")), 1), _("p", null, [r[2] ||= v(" ➤ ", -1), y(w(M), { to: {
|
|
424
370
|
name: "timeline-results",
|
|
425
371
|
query: {
|
|
426
|
-
country:
|
|
427
|
-
begin:
|
|
428
|
-
end:
|
|
372
|
+
country: t.country,
|
|
373
|
+
begin: t.from,
|
|
374
|
+
end: t.to
|
|
429
375
|
}
|
|
430
376
|
} }, {
|
|
431
|
-
default:
|
|
377
|
+
default: T(() => [v(C(e.$t("gallery.section.timeline")) + " | " + C(w(H)("countries", w(K)(t.country))), 1)]),
|
|
432
378
|
_: 2
|
|
433
|
-
}, 1032, ["to"])])])) :
|
|
379
|
+
}, 1032, ["to"])])])) : h("", !0)]),
|
|
434
380
|
_: 1
|
|
435
381
|
}, 8, ["spec"]));
|
|
436
382
|
}
|
|
437
|
-
},
|
|
383
|
+
}, Mt = { class: "mwnf-dxa-collection-search" }, Nt = { class: "mwnf-dxa-dropdown-label" }, Pt = {
|
|
438
384
|
__name: "CollectionSearch",
|
|
439
385
|
setup(e) {
|
|
440
|
-
let t =
|
|
386
|
+
let t = k(Ee, Me), n = p(() => F.filter((e) => (t.value[e] ?? []).length > 0)), r = p(() => ({
|
|
441
387
|
mode: "facets",
|
|
442
388
|
target: "collection-results",
|
|
443
389
|
dates: "buckets",
|
|
@@ -447,49 +393,54 @@ var ye = {
|
|
|
447
393
|
options: t.value.country
|
|
448
394
|
}, ...n.value.map((e) => ({
|
|
449
395
|
key: e,
|
|
450
|
-
label:
|
|
396
|
+
label: ce[e],
|
|
451
397
|
options: t.value[e]
|
|
452
398
|
}))]
|
|
453
399
|
}));
|
|
454
|
-
return (e, t) => (
|
|
455
|
-
before:
|
|
400
|
+
return (e, t) => (b(), g("div", Mt, [y(l, { spec: r.value }, {
|
|
401
|
+
before: T(() => [_("div", Nt, C(e.$t("catalogue.facet.filterBy")), 1)]),
|
|
456
402
|
_: 1
|
|
457
|
-
}, 8, ["spec"]),
|
|
403
|
+
}, 8, ["spec"]), y(w(E), {
|
|
458
404
|
id: "mwnf-dxa-collection-search-description",
|
|
459
405
|
class: "mwnf-dxa-description mwnf-prose",
|
|
460
406
|
dir: "auto",
|
|
461
407
|
keypath: "gallery.collection.intro"
|
|
462
408
|
})]));
|
|
463
409
|
}
|
|
464
|
-
},
|
|
410
|
+
}, Ft = {
|
|
465
411
|
key: 0,
|
|
466
412
|
class: "mwnf-dxa-partner-objects"
|
|
467
|
-
},
|
|
413
|
+
}, It = { class: "mwnf-dxa-profile-link-container" }, Lt = {
|
|
468
414
|
__name: "PartnerObjects",
|
|
469
415
|
setup(e) {
|
|
470
|
-
let
|
|
471
|
-
...
|
|
472
|
-
scope: (e) => e.partner_id ===
|
|
473
|
-
})),
|
|
474
|
-
return (e,
|
|
475
|
-
before:
|
|
476
|
-
|
|
416
|
+
let n = N(), i = p(() => Ae.value.get(n.params.id) ?? null), a = p(() => ({
|
|
417
|
+
...ze,
|
|
418
|
+
scope: (e) => e.partner_id === n.params.id
|
|
419
|
+
})), s = p(() => i.value ? q.view(i.value, V("partners", i.value.id, B)) : null);
|
|
420
|
+
return (e, n) => i.value ? (b(), g("div", Ft, [y(u, { spec: a.value }, {
|
|
421
|
+
before: T(() => [y(o), y(r, {
|
|
422
|
+
class: "mwnf-dxa-partner-objects-header",
|
|
423
|
+
variant: "summary",
|
|
424
|
+
heading: 1,
|
|
425
|
+
partner: s.value
|
|
426
|
+
}, null, 8, ["partner"])]),
|
|
427
|
+
actions: T(({ pageInfo: e, goToPage: n }) => [y(t, {
|
|
477
428
|
class: "mwnf-dxa-pages",
|
|
478
429
|
"page-info": e,
|
|
479
430
|
jump: "",
|
|
480
|
-
onNavigate:
|
|
431
|
+
onNavigate: n
|
|
481
432
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
482
|
-
after:
|
|
433
|
+
after: T(() => [_("div", It, [y(w(M), {
|
|
483
434
|
class: "mwnf-dxa-profile-link",
|
|
484
|
-
to:
|
|
435
|
+
to: w(U)(i.value)
|
|
485
436
|
}, {
|
|
486
|
-
default:
|
|
437
|
+
default: T(() => [v("➤ " + C(e.$t("gallery.action.partnerProfile")), 1)]),
|
|
487
438
|
_: 1
|
|
488
439
|
}, 8, ["to"])])]),
|
|
489
440
|
_: 1
|
|
490
|
-
}, 8, ["spec"])])) :
|
|
441
|
+
}, 8, ["spec"])])) : h("", !0);
|
|
491
442
|
}
|
|
492
|
-
},
|
|
443
|
+
}, Rt = {
|
|
493
444
|
__name: "SearchHowTo",
|
|
494
445
|
setup(e) {
|
|
495
446
|
let t = {
|
|
@@ -499,202 +450,50 @@ var ye = {
|
|
|
499
450
|
to: { name: "collection" }
|
|
500
451
|
}
|
|
501
452
|
};
|
|
502
|
-
return (e, n) => (
|
|
453
|
+
return (e, n) => (b(), m(d, {
|
|
503
454
|
spec: t,
|
|
504
455
|
class: "mwnf-dxa-editorial"
|
|
505
456
|
}));
|
|
506
457
|
}
|
|
507
|
-
},
|
|
508
|
-
key: 0,
|
|
509
|
-
class: "mwnf-dxa-partner-meta"
|
|
510
|
-
}, On = {
|
|
511
|
-
key: 1,
|
|
512
|
-
class: "mwnf-dxa-partner-meta mwnf-dxa-partner-meta--empty"
|
|
513
|
-
}, kn = { class: "mwnf-dxa-partner-links" }, An = {
|
|
514
|
-
key: 0,
|
|
515
|
-
class: "mwnf-dxa-partner-logo"
|
|
516
|
-
}, jn = ["src", "alt"], Mn = {
|
|
458
|
+
}, zt = { class: "mwnf-dxa-partners" }, Bt = { class: "mwnf-dxa-partners-options" }, Vt = {
|
|
517
459
|
__name: "Partners",
|
|
518
460
|
setup(e) {
|
|
519
|
-
|
|
520
|
-
|
|
461
|
+
let t = {
|
|
462
|
+
...dt,
|
|
463
|
+
objectsRoute: rt,
|
|
464
|
+
actions: !0,
|
|
465
|
+
emptyLabel: "exhibition.partner.noObjectsInExhibition"
|
|
466
|
+
};
|
|
467
|
+
return (e, n) => (b(), g("div", zt, [y(c, { spec: t }, {
|
|
468
|
+
before: T(() => [_("div", Bt, [y(o)]), y(w(E), {
|
|
521
469
|
id: "mwnf-dxa-partners-intro",
|
|
522
470
|
class: "mwnf-prose",
|
|
523
471
|
dir: "auto",
|
|
524
472
|
keypath: "exhibition.partners.intro"
|
|
525
473
|
})]),
|
|
526
|
-
row: O(({ partner: n, row: r }) => [v("div", Cn, [
|
|
527
|
-
v("div", wn, [b(E(I), { to: r.route }, {
|
|
528
|
-
default: O(() => [v("span", { innerHTML: r.name }, null, 8, Tn), r.city ? (S(), _("span", En, ", " + T(r.city), 1)) : g("", !0)]),
|
|
529
|
-
_: 2
|
|
530
|
-
}, 1032, ["to"])]),
|
|
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(I), { to: r.route }, {
|
|
533
|
-
default: O(() => [y(T(e.$t("exhibition.action.readMore")), 1)]),
|
|
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(I), { to: E(dn)(n) }, {
|
|
536
|
-
default: O(() => [y(T(e.$t("exhibition.action.viewObjects")), 1)]),
|
|
537
|
-
_: 1
|
|
538
|
-
}, 8, ["to"])], 64)) : g("", !0)])
|
|
539
|
-
]), r.logo ? (S(), _("div", An, [v("img", {
|
|
540
|
-
src: r.logo,
|
|
541
|
-
alt: r.name,
|
|
542
|
-
loading: "lazy"
|
|
543
|
-
}, null, 8, jn)])) : g("", !0)]),
|
|
544
|
-
_: 1
|
|
545
|
-
}, 8, ["spec"])]));
|
|
546
|
-
}
|
|
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 = {
|
|
551
|
-
key: 0,
|
|
552
|
-
class: "mwnf-dxa-profile-objects-link"
|
|
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 = {
|
|
554
|
-
key: 0,
|
|
555
|
-
class: "mwnf-dxa-contact-title"
|
|
556
|
-
}, Xn = { key: 1 }, Zn = { key: 2 }, Qn = { key: 3 }, $n = { key: 4 }, er = ["href"], tr = {
|
|
557
|
-
key: 3,
|
|
558
|
-
class: "mwnf-dxa-additional-urls"
|
|
559
|
-
}, nr = ["href"], rr = {
|
|
560
|
-
key: 2,
|
|
561
|
-
class: "mwnf-dxa-partner-logos"
|
|
562
|
-
}, ir = ["src", "alt"], Z = {
|
|
563
|
-
__name: "PartnerProfile",
|
|
564
|
-
props: { variant: {
|
|
565
|
-
type: String,
|
|
566
|
-
default: "partner"
|
|
567
|
-
} },
|
|
568
|
-
setup(e) {
|
|
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");
|
|
570
|
-
function D(e, t) {
|
|
571
|
-
return !!(e.address || e.phone || e.email || e.website || t.contact_person_1 || t.contact_person_2);
|
|
572
|
-
}
|
|
573
|
-
function k(e) {
|
|
574
|
-
let t = e.website;
|
|
575
|
-
return t ? /^https?:\/\//i.test(t) ? t : `https://${t}` : null;
|
|
576
|
-
}
|
|
577
|
-
function A(e) {
|
|
578
|
-
return [e.contact_person_1, e.contact_person_2].filter(Boolean);
|
|
579
|
-
}
|
|
580
|
-
function j(e, t) {
|
|
581
|
-
return [t.city, Y("countries", e.country_id)].filter(Boolean).join(", ");
|
|
582
|
-
}
|
|
583
|
-
return (e, t) => E(cn)(d.value) ? (S(), h(s, {
|
|
584
|
-
key: 0,
|
|
585
|
-
spec: E(bn),
|
|
586
|
-
id: d.value,
|
|
587
|
-
class: "mwnf-dxa-partner-profile"
|
|
588
|
-
}, {
|
|
589
|
-
header: O(({ record: r, text: i, languages: a, language: s, select: u }) => [
|
|
590
|
-
v("div", Nn, [b(n, {
|
|
591
|
-
languages: a,
|
|
592
|
-
language: s,
|
|
593
|
-
onSelect: u
|
|
594
|
-
}, null, 8, [
|
|
595
|
-
"languages",
|
|
596
|
-
"language",
|
|
597
|
-
"onSelect"
|
|
598
|
-
])]),
|
|
599
|
-
b(o),
|
|
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, [
|
|
603
|
-
v("button", {
|
|
604
|
-
class: x({ "mwnf-dxa-profile-tab--active": f.value === "description" }),
|
|
605
|
-
onClick: t[0] ||= (e) => f.value = "description"
|
|
606
|
-
}, T(e.$t("partner.info.about")), 3),
|
|
607
|
-
D(i, r) ? (S(), _(p, { key: 0 }, [t[3] ||= v("span", { class: "mwnf-dxa-profile-divider" }, "|", -1), v("button", {
|
|
608
|
-
class: x({ "mwnf-dxa-profile-tab--active": f.value === "contact" }),
|
|
609
|
-
onClick: t[1] ||= (e) => f.value = "contact"
|
|
610
|
-
}, T(e.$t("partner.info.contact")), 3)], 64)) : g("", !0),
|
|
611
|
-
r.logos?.length ? (S(), _(p, { key: 1 }, [t[4] ||= v("span", { class: "mwnf-dxa-profile-divider" }, "|", -1), v("button", {
|
|
612
|
-
class: x({ "mwnf-dxa-profile-tab--active": f.value === "logo" }),
|
|
613
|
-
onClick: t[2] ||= (e) => f.value = "logo"
|
|
614
|
-
}, T(e.$t("partner.info.logo")), 3)], 64)) : g("", !0),
|
|
615
|
-
k(i) ? (S(), _(p, { key: 2 }, [t[5] ||= v("span", { class: "mwnf-dxa-profile-divider" }, "|", -1), v("a", {
|
|
616
|
-
href: k(i),
|
|
617
|
-
target: "_blank",
|
|
618
|
-
rel: "noopener"
|
|
619
|
-
}, T(c.value), 9, Rn)], 64)) : g("", !0)
|
|
620
|
-
]), r.item_count ? (S(), _("div", zn, [b(E(I), {
|
|
621
|
-
class: "mwnf-button",
|
|
622
|
-
to: E(dn)(r)
|
|
623
|
-
}, {
|
|
624
|
-
default: O(() => [y(T(l.value), 1)]),
|
|
625
|
-
_: 1
|
|
626
|
-
}, 8, ["to"])])) : g("", !0)])
|
|
627
|
-
]),
|
|
628
|
-
"before-sheet": O(({ record: t, text: n }) => [f.value === "description" ? (S(), _("div", {
|
|
629
|
-
key: 0,
|
|
630
|
-
class: "mwnf-prose",
|
|
631
|
-
innerHTML: E(tn)(n.description)
|
|
632
|
-
}, null, 8, Bn)) : f.value === "contact" ? (S(), _("div", Vn, [
|
|
633
|
-
v("p", Hn, T(e.$t("partner.info.addresses")), 1),
|
|
634
|
-
v("div", {
|
|
635
|
-
class: "mwnf-prose",
|
|
636
|
-
innerHTML: E(tn)(n.address)
|
|
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", {
|
|
641
|
-
href: k(n),
|
|
642
|
-
target: "_blank",
|
|
643
|
-
rel: "noopener"
|
|
644
|
-
}, T(n.website), 9, Jn)])) : g("", !0),
|
|
645
|
-
(S(!0), _(p, null, w(A(t), (t) => (S(), _("div", {
|
|
646
|
-
class: "mwnf-dxa-contact-person",
|
|
647
|
-
key: t.name ?? t.email
|
|
648
|
-
}, [
|
|
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)
|
|
654
|
-
]))), 128)),
|
|
655
|
-
t.additional_urls?.length ? (S(), _("div", tr, [(S(!0), _(p, null, w(t.additional_urls, (e) => (S(), _("p", { key: e.url }, [v("a", {
|
|
656
|
-
href: e.url,
|
|
657
|
-
target: "_blank",
|
|
658
|
-
rel: "noopener"
|
|
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", {
|
|
661
|
-
key: e.url,
|
|
662
|
-
src: e.url,
|
|
663
|
-
alt: E(Y)("partners", t.id)
|
|
664
|
-
}, null, 8, ir))), 128))])) : g("", !0), b(a, {
|
|
665
|
-
latitude: t.latitude,
|
|
666
|
-
longitude: t.longitude,
|
|
667
|
-
zoom: t.map_zoom,
|
|
668
|
-
label: E(Y)("partners", t.id)
|
|
669
|
-
}, null, 8, [
|
|
670
|
-
"latitude",
|
|
671
|
-
"longitude",
|
|
672
|
-
"zoom",
|
|
673
|
-
"label"
|
|
674
|
-
])]),
|
|
675
474
|
_: 1
|
|
676
|
-
}
|
|
475
|
+
})]));
|
|
677
476
|
}
|
|
678
|
-
},
|
|
477
|
+
}, Ht = ["onSubmit"], Ut = ["placeholder"], Wt = {
|
|
679
478
|
type: "submit",
|
|
680
479
|
class: "mwnf-dxa-refine-search-submit"
|
|
681
|
-
},
|
|
480
|
+
}, Gt = { class: "mwnf-dxa-how-to" }, Kt = { class: "mwnf-dxa-no-results" }, qt = {
|
|
682
481
|
__name: "SearchResults",
|
|
683
482
|
setup(e) {
|
|
684
|
-
let t =
|
|
483
|
+
let t = ae("items", {
|
|
685
484
|
grammar: "boolean",
|
|
686
|
-
haystack:
|
|
687
|
-
}), n =
|
|
688
|
-
|
|
485
|
+
haystack: at
|
|
486
|
+
}), n = x(!1);
|
|
487
|
+
Je().then(() => {
|
|
689
488
|
n.value = !0;
|
|
690
489
|
});
|
|
691
490
|
function r(e) {
|
|
692
491
|
return !e || e === "all-objects";
|
|
693
492
|
}
|
|
694
|
-
let i =
|
|
493
|
+
let i = x(""), a = p(() => ({
|
|
695
494
|
entity: "items",
|
|
696
495
|
keys: ["q"],
|
|
697
|
-
scope: (e) =>
|
|
496
|
+
scope: (e) => Xe.value.has(e.id),
|
|
698
497
|
sort: !1,
|
|
699
498
|
narrow: (e, i) => {
|
|
700
499
|
if (!n.value) return [];
|
|
@@ -702,117 +501,117 @@ var ye = {
|
|
|
702
501
|
let a = new Set(e.map((e) => e.id));
|
|
703
502
|
return t.search(i.q).filter((e) => a.has(e.id));
|
|
704
503
|
},
|
|
705
|
-
pageSize:
|
|
504
|
+
pageSize: I,
|
|
706
505
|
variant: "grid",
|
|
707
506
|
recordRoute: "item",
|
|
708
507
|
actionLabel: "exhibition.action.seeDatabaseEntry",
|
|
709
|
-
record: (e, { t }) =>
|
|
508
|
+
record: (e, { t }) => ot(e, t),
|
|
710
509
|
pagination: { jump: !0 },
|
|
711
510
|
summary: ({ filters: e, pageInfo: t, t: n }) => [{
|
|
712
511
|
label: n("exhibition.section.database"),
|
|
713
512
|
value: r(e.q) ? n("catalogue.results.allObjects") : `“${e.q}”`
|
|
714
513
|
}, {
|
|
715
514
|
count: t.total,
|
|
716
|
-
value: `${n("catalogue.results.outOf")} ${
|
|
515
|
+
value: `${n("catalogue.results.outOf")} ${Xe.value.size} ${n("catalogue.results.objects")}`
|
|
717
516
|
}]
|
|
718
517
|
}));
|
|
719
|
-
return (e, t) => (
|
|
518
|
+
return (e, t) => (b(), m(u, {
|
|
720
519
|
spec: a.value,
|
|
721
520
|
class: "mwnf-dxa-search-results"
|
|
722
521
|
}, {
|
|
723
|
-
before:
|
|
724
|
-
filters:
|
|
522
|
+
before: T(() => [y(o)]),
|
|
523
|
+
filters: T(({ apply: n }) => [_("form", {
|
|
725
524
|
class: "mwnf-dxa-refine-search",
|
|
726
|
-
onSubmit:
|
|
727
|
-
}, [
|
|
525
|
+
onSubmit: re((e) => n({ q: i.value || "all-objects" }), ["prevent"])
|
|
526
|
+
}, [ne(_("input", {
|
|
728
527
|
"onUpdate:modelValue": t[0] ||= (e) => i.value = e,
|
|
729
528
|
type: "text",
|
|
730
529
|
class: "mwnf-dxa-refine-search-input",
|
|
731
530
|
placeholder: e.$t("catalogue.search.keywordPlaceholder")
|
|
732
|
-
}, null, 8,
|
|
733
|
-
default:
|
|
531
|
+
}, null, 8, Ut), [[te, i.value]]), _("button", Wt, C(e.$t("catalogue.search.submit")), 1)], 40, Ht), _("p", Gt, [y(w(M), { to: { name: "search-how-to" } }, {
|
|
532
|
+
default: T(() => [v(C(e.$t("catalogue.search.howTo")) + " ›", 1)]),
|
|
734
533
|
_: 1
|
|
735
534
|
})])]),
|
|
736
|
-
empty:
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
default:
|
|
535
|
+
empty: T(() => [_("p", Kt, [
|
|
536
|
+
v(C(e.$t("catalogue.results.noResultsSearch")) + " ", 1),
|
|
537
|
+
y(w(M), { to: { name: "search-how-to" } }, {
|
|
538
|
+
default: T(() => [v(C(e.$t("catalogue.search.howTo")), 1)]),
|
|
740
539
|
_: 1
|
|
741
540
|
}),
|
|
742
|
-
t[1] ||=
|
|
743
|
-
|
|
744
|
-
default:
|
|
541
|
+
t[1] ||= _("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
|
|
542
|
+
y(w(M), { to: { name: "collection" } }, {
|
|
543
|
+
default: T(() => [v(C(e.$t("exhibition.section.collection")), 1)]),
|
|
745
544
|
_: 1
|
|
746
545
|
})
|
|
747
546
|
])]),
|
|
748
547
|
_: 1
|
|
749
548
|
}, 8, ["spec"]));
|
|
750
549
|
}
|
|
751
|
-
},
|
|
550
|
+
}, Jt = {
|
|
752
551
|
__name: "TimelineResults",
|
|
753
552
|
setup(e) {
|
|
754
|
-
return (e, t) => (
|
|
755
|
-
spec:
|
|
553
|
+
return (e, t) => (b(), m(f, {
|
|
554
|
+
spec: w(lt),
|
|
756
555
|
class: "mwnf-dxa-timeline-results"
|
|
757
556
|
}, {
|
|
758
|
-
before:
|
|
557
|
+
before: T(() => [y(o)]),
|
|
759
558
|
_: 1
|
|
760
559
|
}, 8, ["spec"]));
|
|
761
560
|
}
|
|
762
|
-
},
|
|
561
|
+
}, Q = {
|
|
763
562
|
__name: "TimelineGallery",
|
|
764
563
|
setup(e) {
|
|
765
|
-
return (e, t) => (
|
|
766
|
-
spec:
|
|
564
|
+
return (e, t) => (b(), m(u, {
|
|
565
|
+
spec: w(ut),
|
|
767
566
|
class: "mwnf-dxa-timeline-gallery"
|
|
768
567
|
}, {
|
|
769
|
-
before:
|
|
568
|
+
before: T(() => [y(o)]),
|
|
770
569
|
_: 1
|
|
771
570
|
}, 8, ["spec"]));
|
|
772
571
|
}
|
|
773
|
-
},
|
|
572
|
+
}, Yt = { class: "mwnf-dxa-date-wrapper" }, Xt = {
|
|
774
573
|
key: 0,
|
|
775
574
|
class: "mwnf-dxa-timeline-link-box"
|
|
776
|
-
},
|
|
575
|
+
}, Zt = { class: "mwnf-dxa-options-label" }, Qt = {
|
|
777
576
|
__name: "CollectionResults",
|
|
778
|
-
setup(
|
|
779
|
-
let
|
|
577
|
+
setup(e) {
|
|
578
|
+
let r = oe(), { t: a } = A(), s = me(), c = st.keys, l = (e) => c.filter((t) => e[t]).length <= 1;
|
|
780
579
|
function d() {
|
|
781
|
-
|
|
580
|
+
r.push({ name: "collection" });
|
|
782
581
|
}
|
|
783
|
-
let f =
|
|
582
|
+
let f = p(() => new Set((Qe.value ?? []).map((e) => e.country_id)));
|
|
784
583
|
function x(e) {
|
|
785
|
-
if (!
|
|
584
|
+
if (!ct.value) return !1;
|
|
786
585
|
let t = X(e.country);
|
|
787
586
|
return !!(t && f.value.has(t));
|
|
788
587
|
}
|
|
789
|
-
return (
|
|
790
|
-
spec:
|
|
588
|
+
return (e, r) => (b(), m(u, {
|
|
589
|
+
spec: w(st),
|
|
791
590
|
class: "mwnf-dxa-collection-results"
|
|
792
591
|
}, {
|
|
793
|
-
before:
|
|
794
|
-
actions:
|
|
592
|
+
before: T(() => [y(o)]),
|
|
593
|
+
actions: T(({ pageInfo: e, goToPage: n }) => [y(t, {
|
|
795
594
|
class: "mwnf-dxa-pages",
|
|
796
595
|
"page-info": e,
|
|
797
596
|
jump: "",
|
|
798
|
-
onNavigate:
|
|
597
|
+
onNavigate: n
|
|
799
598
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
800
|
-
empty:
|
|
599
|
+
empty: T(() => [v(C(e.$t("catalogue.results.noResults")) + " ", 1), _("button", {
|
|
801
600
|
class: "mwnf-dxa-linkish",
|
|
802
|
-
onClick:
|
|
803
|
-
},
|
|
804
|
-
aside:
|
|
601
|
+
onClick: r[0] ||= (e) => d()
|
|
602
|
+
}, C(e.$t("catalogue.results.resetFilters")), 1)]),
|
|
603
|
+
aside: T(({ filters: t, apply: o, matching: c, options: u }) => [y(i, {
|
|
805
604
|
mode: "immediate",
|
|
806
|
-
title: l(
|
|
807
|
-
"reset-label":
|
|
605
|
+
title: l(t) ? e.$t("catalogue.facet.filterBy") : e.$t("catalogue.facet.filterFurtherBy"),
|
|
606
|
+
"reset-label": e.$t("catalogue.results.resetFilters"),
|
|
808
607
|
disabled: c.length === 0,
|
|
809
|
-
onReset:
|
|
608
|
+
onReset: r[1] ||= (e) => d()
|
|
810
609
|
}, {
|
|
811
|
-
default:
|
|
812
|
-
|
|
813
|
-
"model-value":
|
|
610
|
+
default: T(() => [
|
|
611
|
+
y(n, {
|
|
612
|
+
"model-value": t.country,
|
|
814
613
|
options: u.country,
|
|
815
|
-
placeholder:
|
|
614
|
+
placeholder: e.$t("catalogue.facet.selectCountry"),
|
|
816
615
|
"onUpdate:modelValue": (e) => o({ country: e })
|
|
817
616
|
}, null, 8, [
|
|
818
617
|
"model-value",
|
|
@@ -820,11 +619,11 @@ var ye = {
|
|
|
820
619
|
"placeholder",
|
|
821
620
|
"onUpdate:modelValue"
|
|
822
621
|
]),
|
|
823
|
-
(
|
|
622
|
+
(b(!0), g(ee, null, S(w(P), (e) => (b(), m(n, {
|
|
824
623
|
key: e,
|
|
825
|
-
"model-value":
|
|
624
|
+
"model-value": t[e],
|
|
826
625
|
options: u[e],
|
|
827
|
-
placeholder:
|
|
626
|
+
placeholder: w(s)[e],
|
|
828
627
|
"hide-empty": "",
|
|
829
628
|
"onUpdate:modelValue": (t) => o({ [e]: t })
|
|
830
629
|
}, null, 8, [
|
|
@@ -833,20 +632,20 @@ var ye = {
|
|
|
833
632
|
"placeholder",
|
|
834
633
|
"onUpdate:modelValue"
|
|
835
634
|
]))), 128)),
|
|
836
|
-
|
|
837
|
-
"model-value":
|
|
838
|
-
options:
|
|
839
|
-
placeholder:
|
|
635
|
+
_("div", Yt, [y(n, {
|
|
636
|
+
"model-value": t.from,
|
|
637
|
+
options: w(j)(c, w(a)),
|
|
638
|
+
placeholder: e.$t("catalogue.facet.startDate"),
|
|
840
639
|
"onUpdate:modelValue": (e) => o({ from: e })
|
|
841
640
|
}, null, 8, [
|
|
842
641
|
"model-value",
|
|
843
642
|
"options",
|
|
844
643
|
"placeholder",
|
|
845
644
|
"onUpdate:modelValue"
|
|
846
|
-
]),
|
|
847
|
-
"model-value":
|
|
848
|
-
options:
|
|
849
|
-
placeholder:
|
|
645
|
+
]), y(n, {
|
|
646
|
+
"model-value": t.to,
|
|
647
|
+
options: w(j)(c, w(a)),
|
|
648
|
+
placeholder: e.$t("catalogue.facet.endDate"),
|
|
850
649
|
"onUpdate:modelValue": (e) => o({ to: e })
|
|
851
650
|
}, null, 8, [
|
|
852
651
|
"model-value",
|
|
@@ -860,24 +659,24 @@ var ye = {
|
|
|
860
659
|
"title",
|
|
861
660
|
"reset-label",
|
|
862
661
|
"disabled"
|
|
863
|
-
]), x(
|
|
662
|
+
]), x(t) ? (b(), g("div", Xt, [_("div", Zt, C(e.$t("catalogue.results.timelineForSearch")), 1), _("p", null, [r[2] ||= v(" ➤ ", -1), y(w(M), { to: {
|
|
864
663
|
name: "timeline-results",
|
|
865
664
|
query: {
|
|
866
|
-
country:
|
|
867
|
-
begin:
|
|
868
|
-
end:
|
|
665
|
+
country: w(X)(t.country),
|
|
666
|
+
begin: t.from,
|
|
667
|
+
end: t.to
|
|
869
668
|
}
|
|
870
669
|
} }, {
|
|
871
|
-
default:
|
|
670
|
+
default: T(() => [v(C(e.$t("exhibition.section.timeline")) + " | " + C(w(qe)("countries", w(X)(t.country))), 1)]),
|
|
872
671
|
_: 2
|
|
873
|
-
}, 1032, ["to"])])])) :
|
|
672
|
+
}, 1032, ["to"])])])) : h("", !0)]),
|
|
874
673
|
_: 1
|
|
875
674
|
}, 8, ["spec"]));
|
|
876
675
|
}
|
|
877
|
-
},
|
|
676
|
+
}, $t = { class: "mwnf-dxa-collection-search" }, en = {
|
|
878
677
|
__name: "CollectionSearch",
|
|
879
678
|
setup(e) {
|
|
880
|
-
let t =
|
|
679
|
+
let t = k(Ye, it), n = p(() => P.filter((e) => (t.value[e] ?? []).length > 0)), r = p(() => ({
|
|
881
680
|
mode: "facets",
|
|
882
681
|
target: "collection-results",
|
|
883
682
|
dates: "buckets",
|
|
@@ -888,12 +687,12 @@ var ye = {
|
|
|
888
687
|
options: t.value.country
|
|
889
688
|
}, ...n.value.map((e) => ({
|
|
890
689
|
key: e,
|
|
891
|
-
label:
|
|
690
|
+
label: se[e],
|
|
892
691
|
options: t.value[e]
|
|
893
692
|
}))]
|
|
894
693
|
}));
|
|
895
|
-
return (e, t) => (
|
|
896
|
-
intro:
|
|
694
|
+
return (e, t) => (b(), g("div", $t, [y(l, { spec: r.value }, {
|
|
695
|
+
intro: T(() => [y(w(E), {
|
|
897
696
|
id: "mwnf-dxa-collection-search-description",
|
|
898
697
|
class: "mwnf-dxa-description mwnf-prose",
|
|
899
698
|
dir: "auto",
|
|
@@ -902,7 +701,7 @@ var ye = {
|
|
|
902
701
|
_: 1
|
|
903
702
|
}, 8, ["spec"])]));
|
|
904
703
|
}
|
|
905
|
-
},
|
|
704
|
+
}, tn = { class: "mwnf-dxa-profile-link-container" }, $ = {
|
|
906
705
|
__name: "PartnerObjects",
|
|
907
706
|
props: {
|
|
908
707
|
variant: {
|
|
@@ -915,48 +714,53 @@ var ye = {
|
|
|
915
714
|
}
|
|
916
715
|
},
|
|
917
716
|
setup(e) {
|
|
918
|
-
let
|
|
717
|
+
let n = e, i = p(() => n.variant === "institution"), a = N(), s = p(() => $e(a.params.id)), c = p(() => s.value ? Z.view(s.value, We("partners", s.value.id, Ue)) : null), l = p(() => ({
|
|
919
718
|
entity: "items",
|
|
920
|
-
scope: (e) => e.partner_id ===
|
|
719
|
+
scope: (e) => e.partner_id === s.value?.id,
|
|
921
720
|
sort: { undated: "first" },
|
|
922
|
-
pageSize:
|
|
721
|
+
pageSize: I,
|
|
923
722
|
variant: "grid",
|
|
924
723
|
recordRoute: "item",
|
|
925
724
|
actionLabel: "exhibition.action.seeDatabaseEntry",
|
|
926
|
-
empty:
|
|
927
|
-
record: (e, { t }) =>
|
|
928
|
-
summary: ({ pageInfo: e, t
|
|
725
|
+
empty: i.value ? n.texts.emptyInstitution : n.texts.emptyPartner,
|
|
726
|
+
record: (e, { t }) => ot(e, t),
|
|
727
|
+
summary: ({ pageInfo: e, t }) => [{
|
|
929
728
|
count: e.total,
|
|
930
|
-
value:
|
|
729
|
+
value: t(i.value ? n.texts.institutionSummary : "partner.item.objectsInSite")
|
|
931
730
|
}]
|
|
932
731
|
}));
|
|
933
|
-
return (e,
|
|
732
|
+
return (e, a) => s.value ? (b(), m(u, {
|
|
934
733
|
key: 0,
|
|
935
|
-
spec:
|
|
734
|
+
spec: l.value,
|
|
936
735
|
class: "mwnf-dxa-partner-objects"
|
|
937
736
|
}, {
|
|
938
|
-
before:
|
|
939
|
-
|
|
737
|
+
before: T(() => [y(o), y(r, {
|
|
738
|
+
class: "mwnf-dxa-partner-objects-header",
|
|
739
|
+
variant: "summary",
|
|
740
|
+
heading: 1,
|
|
741
|
+
partner: c.value
|
|
742
|
+
}, null, 8, ["partner"])]),
|
|
743
|
+
actions: T(({ pageInfo: e, goToPage: n }) => [y(t, {
|
|
940
744
|
class: "mwnf-dxa-pages",
|
|
941
745
|
"page-info": e,
|
|
942
746
|
jump: "",
|
|
943
|
-
onNavigate:
|
|
747
|
+
onNavigate: n
|
|
944
748
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
945
|
-
after:
|
|
749
|
+
after: T(() => [_("div", tn, [y(w(M), {
|
|
946
750
|
class: "mwnf-dxa-profile-link",
|
|
947
|
-
to:
|
|
751
|
+
to: w(nt)(s.value)
|
|
948
752
|
}, {
|
|
949
|
-
default:
|
|
753
|
+
default: T(() => [v(" ➤ " + C(i.value ? e.$t(n.texts.institutionProfileLabel) : e.$t(n.texts.partnerProfileLabel)), 1)]),
|
|
950
754
|
_: 1
|
|
951
755
|
}, 8, ["to"])])]),
|
|
952
756
|
_: 1
|
|
953
|
-
}, 8, ["spec"])) :
|
|
757
|
+
}, 8, ["spec"])) : h("", !0);
|
|
954
758
|
}
|
|
955
759
|
};
|
|
956
760
|
//#endregion
|
|
957
761
|
//#region src/dxa/routes.js
|
|
958
|
-
function
|
|
959
|
-
let t =
|
|
762
|
+
function nn(e) {
|
|
763
|
+
let t = O([
|
|
960
764
|
"gallery",
|
|
961
765
|
"items",
|
|
962
766
|
"partners",
|
|
@@ -966,75 +770,78 @@ function Sr(e) {
|
|
|
966
770
|
{
|
|
967
771
|
path: "/search",
|
|
968
772
|
name: "search-results",
|
|
969
|
-
component:
|
|
773
|
+
component: wt,
|
|
970
774
|
meta: t("database")
|
|
971
775
|
},
|
|
972
776
|
{
|
|
973
777
|
path: "/how-to-search",
|
|
974
778
|
name: "search-how-to",
|
|
975
|
-
component:
|
|
779
|
+
component: gt,
|
|
976
780
|
meta: t("database")
|
|
977
781
|
},
|
|
978
782
|
{
|
|
979
783
|
path: "/partners",
|
|
980
784
|
name: "partners",
|
|
981
|
-
component:
|
|
785
|
+
component: vt,
|
|
982
786
|
meta: t("partners")
|
|
983
787
|
},
|
|
984
788
|
{
|
|
985
789
|
path: "/partner/:id",
|
|
986
790
|
name: "partner",
|
|
987
|
-
component:
|
|
988
|
-
props: (e) => ({
|
|
791
|
+
component: L,
|
|
792
|
+
props: (e) => ({
|
|
793
|
+
id: String(e.params.id),
|
|
794
|
+
family: q
|
|
795
|
+
}),
|
|
989
796
|
meta: t("partners", "languages")
|
|
990
797
|
},
|
|
991
798
|
{
|
|
992
799
|
path: "/partner/:id/objects",
|
|
993
800
|
name: "partner-objects",
|
|
994
|
-
component:
|
|
801
|
+
component: Lt,
|
|
995
802
|
meta: t("partners")
|
|
996
803
|
},
|
|
997
804
|
{
|
|
998
805
|
path: "/timeline-results",
|
|
999
806
|
name: "timeline-results",
|
|
1000
|
-
component:
|
|
807
|
+
component: Tt,
|
|
1001
808
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1002
809
|
},
|
|
1003
810
|
{
|
|
1004
811
|
path: "/timeline/gallery",
|
|
1005
812
|
name: "timeline-gallery",
|
|
1006
|
-
component:
|
|
813
|
+
component: Dt,
|
|
1007
814
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1008
815
|
},
|
|
1009
816
|
{
|
|
1010
817
|
path: "/about",
|
|
1011
818
|
name: "about",
|
|
1012
|
-
component:
|
|
819
|
+
component: mt,
|
|
1013
820
|
meta: t("about")
|
|
1014
821
|
},
|
|
1015
822
|
{
|
|
1016
823
|
path: "/credits",
|
|
1017
824
|
name: "credits",
|
|
1018
|
-
component:
|
|
825
|
+
component: ht,
|
|
1019
826
|
props: { bodyKey: n },
|
|
1020
827
|
meta: t("credits")
|
|
1021
828
|
},
|
|
1022
829
|
{
|
|
1023
830
|
path: "/collection",
|
|
1024
831
|
name: "collection",
|
|
1025
|
-
component:
|
|
832
|
+
component: Pt,
|
|
1026
833
|
meta: t("collection", "tags")
|
|
1027
834
|
},
|
|
1028
835
|
{
|
|
1029
836
|
path: "/collection-results",
|
|
1030
837
|
name: "collection-results",
|
|
1031
|
-
component:
|
|
838
|
+
component: jt,
|
|
1032
839
|
meta: t("collection", "tags", "timelines")
|
|
1033
840
|
}
|
|
1034
841
|
];
|
|
1035
842
|
}
|
|
1036
|
-
function
|
|
1037
|
-
let t =
|
|
843
|
+
function rn(e) {
|
|
844
|
+
let t = O([
|
|
1038
845
|
"exhibition",
|
|
1039
846
|
"items",
|
|
1040
847
|
"partners",
|
|
@@ -1044,25 +851,29 @@ function Cr(e) {
|
|
|
1044
851
|
{
|
|
1045
852
|
path: "/search",
|
|
1046
853
|
name: "search-results",
|
|
1047
|
-
component:
|
|
854
|
+
component: qt,
|
|
1048
855
|
meta: t("database")
|
|
1049
856
|
},
|
|
1050
857
|
{
|
|
1051
858
|
path: "/how-to-search",
|
|
1052
859
|
name: "search-how-to",
|
|
1053
|
-
component:
|
|
860
|
+
component: Rt,
|
|
1054
861
|
meta: t("database")
|
|
1055
862
|
},
|
|
1056
863
|
{
|
|
1057
864
|
path: "/partners",
|
|
1058
865
|
name: "partners",
|
|
1059
|
-
component:
|
|
866
|
+
component: Vt,
|
|
1060
867
|
meta: t("partners")
|
|
1061
868
|
},
|
|
1062
869
|
{
|
|
1063
870
|
path: "/partner/:id",
|
|
1064
871
|
name: "partner",
|
|
1065
|
-
component:
|
|
872
|
+
component: L,
|
|
873
|
+
props: (e) => ({
|
|
874
|
+
id: String(e.params.id),
|
|
875
|
+
family: Z
|
|
876
|
+
}),
|
|
1066
877
|
meta: t("partners", "languages")
|
|
1067
878
|
},
|
|
1068
879
|
{
|
|
@@ -1075,8 +886,12 @@ function Cr(e) {
|
|
|
1075
886
|
{
|
|
1076
887
|
path: "/institution/:id",
|
|
1077
888
|
name: "institution",
|
|
1078
|
-
component:
|
|
1079
|
-
props:
|
|
889
|
+
component: L,
|
|
890
|
+
props: (e) => ({
|
|
891
|
+
id: String(e.params.id),
|
|
892
|
+
family: Z,
|
|
893
|
+
variant: "institution"
|
|
894
|
+
}),
|
|
1080
895
|
meta: t("partners", "languages")
|
|
1081
896
|
},
|
|
1082
897
|
{
|
|
@@ -1092,33 +907,66 @@ function Cr(e) {
|
|
|
1092
907
|
{
|
|
1093
908
|
path: "/timeline-results",
|
|
1094
909
|
name: "timeline-results",
|
|
1095
|
-
component:
|
|
910
|
+
component: Jt,
|
|
1096
911
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1097
912
|
},
|
|
1098
913
|
{
|
|
1099
914
|
path: "/timeline/gallery",
|
|
1100
915
|
name: "timeline-gallery",
|
|
1101
|
-
component:
|
|
916
|
+
component: Q,
|
|
1102
917
|
meta: t("timeline", "timelines", "timeline_events")
|
|
1103
918
|
},
|
|
1104
919
|
{
|
|
1105
920
|
path: "/collection",
|
|
1106
921
|
name: "collection",
|
|
1107
|
-
component:
|
|
922
|
+
component: en,
|
|
1108
923
|
meta: t("collection", "tags")
|
|
1109
924
|
},
|
|
1110
925
|
{
|
|
1111
926
|
path: "/collection-results",
|
|
1112
927
|
name: "collection-results",
|
|
1113
|
-
component:
|
|
928
|
+
component: Qt,
|
|
1114
929
|
meta: t("collection", "tags", "timelines")
|
|
1115
930
|
}
|
|
1116
931
|
];
|
|
1117
932
|
}
|
|
1118
|
-
function
|
|
1119
|
-
if (e === "gallery") return
|
|
1120
|
-
if (e === "exhibition") return
|
|
933
|
+
function an(e, t = {}) {
|
|
934
|
+
if (e === "gallery") return nn(t);
|
|
935
|
+
if (e === "exhibition") return rn(t);
|
|
1121
936
|
throw Error(`standardRoutes: unknown family "${e}" (expected "gallery" or "exhibition")`);
|
|
1122
937
|
}
|
|
1123
938
|
//#endregion
|
|
1124
|
-
|
|
939
|
+
//#region src/dxa/gallery/PartnerProfile.vue
|
|
940
|
+
var on = {
|
|
941
|
+
__name: "PartnerProfile",
|
|
942
|
+
props: { id: {
|
|
943
|
+
type: String,
|
|
944
|
+
required: !0
|
|
945
|
+
} },
|
|
946
|
+
setup(e) {
|
|
947
|
+
return (t, n) => (b(), m(L, {
|
|
948
|
+
id: e.id,
|
|
949
|
+
family: w(q)
|
|
950
|
+
}, null, 8, ["id", "family"]));
|
|
951
|
+
}
|
|
952
|
+
}, sn = {
|
|
953
|
+
__name: "PartnerProfile",
|
|
954
|
+
props: { variant: {
|
|
955
|
+
type: String,
|
|
956
|
+
default: "partner"
|
|
957
|
+
} },
|
|
958
|
+
setup(e) {
|
|
959
|
+
let t = e, n = N(), r = p(() => String(n.params.id));
|
|
960
|
+
return (e, n) => (b(), m(L, {
|
|
961
|
+
id: r.value,
|
|
962
|
+
family: w(Z),
|
|
963
|
+
variant: t.variant
|
|
964
|
+
}, null, 8, [
|
|
965
|
+
"id",
|
|
966
|
+
"family",
|
|
967
|
+
"variant"
|
|
968
|
+
]));
|
|
969
|
+
}
|
|
970
|
+
};
|
|
971
|
+
//#endregion
|
|
972
|
+
export { Qt as ExhibitionCollectionResults, en as ExhibitionCollectionSearch, $ as ExhibitionPartnerObjects, sn as ExhibitionPartnerProfile, Vt as ExhibitionPartners, Rt as ExhibitionSearchHowTo, qt as ExhibitionSearchResults, Q as ExhibitionTimelineGallery, Jt as ExhibitionTimelineResults, mt as GalleryAbout, jt as GalleryCollectionResults, Pt as GalleryCollectionSearch, ht as GalleryCredits, Lt as GalleryPartnerObjects, on as GalleryPartnerProfile, vt as GalleryPartners, gt as GallerySearchHowTo, wt as GallerySearchResults, Dt as GalleryTimelineGallery, Tt as GalleryTimelineResults, L as PartnerDetail, Z as exhibitionPartnerDetail, q as galleryPartnerDetail, an as standardRoutes };
|