@museumwnf/viewer-layout 2.15.0 → 2.15.2

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