@museumwnf/viewer-layout 2.14.0 → 2.15.1

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