@museumwnf/viewer-layout 3.62.0 → 3.63.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/dist/dxa.js CHANGED
@@ -1,21 +1,25 @@
1
- import { s as e } from "./OnDisplayIn-CPANKcOd.js";
2
- import { a as t, i as n, n as r, o as i, s as a } from "./TimelineEventList-1feZA5t7.js";
3
- import { c as o, d as s } from "./PartnerMap-U-Hi2FBi.js";
4
- import { t as c } from "./RecordView-BE4mbj6G.js";
5
- import { A as l, C as u, D as d, E as f, M as p, O as m, S as h, T as ee, _ as te, a as g, b as _, c as ne, d as re, f as v, g as y, h as ie, i as ae, j as oe, k as se, l as b, m as ce, n as le, o as ue, p as de, r as fe, s as pe, t as me, u as he, v as ge, w as _e, x as ve, y as ye } from "./data-DzrH9ikw.js";
6
- import { A as be, C as xe, D as Se, E as Ce, F as we, I as Te, L as Ee, M as De, N as Oe, O as ke, P as Ae, R as je, S as Me, T as x, _ as Ne, a as Pe, b as Fe, c as Ie, d as Le, f as S, g as Re, h as ze, i as Be, j as Ve, k as He, l as Ue, m as We, n as Ge, o as C, p as Ke, r as qe, s as Je, t as Ye, u as Xe, v as w, w as T, x as Ze, y as Qe } from "./data-kqAkoQvf.js";
7
- import { a as $e, i as et, n as tt, r as nt, s as E, t as D } from "./TimelineResultsView-CkH3NDqL.js";
8
- import { t as rt } from "./SiteShell-qvsZO4Iz.js";
9
- import { i as it, n as at, r as O, t as ot } from "./chrome-Bv_mLlHM.js";
10
- import { i as st } from "./PageShell-CPtgzcxv.js";
11
- import { t as ct } from "./ItemDetailView-BcOSmHfr.js";
12
- import { a as k, i as lt, n as ut, r as dt } from "./Theme-4RmyRY0x.js";
13
- import { n as ft, r as pt, t as mt } from "./themeSpecs-CsDpl4rR.js";
14
- import { Fragment as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createSlots as ht, createTextVNode as I, createVNode as L, normalizeClass as R, normalizeStyle as gt, onBeforeUnmount as _t, onMounted as vt, openBlock as z, ref as B, renderList as V, renderSlot as yt, resolveDynamicComponent as bt, toDisplayString as H, unref as U, vModelText as xt, vShow as St, withCtx as W, withDirectives as Ct, withModifiers as wt } from "vue";
15
- import { I18nText as G, NotFoundView as Tt, languageLabels as Et, loadEntities as K, mdInline as Dt, mwnfLinks as q, offeredLanguages as Ot, renderInline as kt, sectionMeta as At, siblingSiteUrl as jt, sourceUrl as Mt, useDataPackage as Nt, useFacets as Pt, useI18n as J, useKeywordIndex as Ft, useProjects as It, useSection as Lt, useSiteConfig as Y, yearBuckets as X } from "@museumwnf/viewer-core";
16
- import { RouterLink as Z, useRoute as Rt, useRouter as zt } from "vue-router";
1
+ import { s as e } from "./OnDisplayIn-BH3Bqope.js";
2
+ import { c as t, d as n, t as r } from "./PartnerMap-DdyMLtgH.js";
3
+ import { a as i, i as a, n as o, o as s } from "./TimelineEventList-CIkKxyQu.js";
4
+ import { t as c } from "./RecordView-Bgd5mm_e.js";
5
+ import { A as l, C as u, D as d, E as f, M as p, O as m, S as h, T as g, _, a as v, b as y, c as ee, d as te, f as b, g as x, h as ne, i as re, j as ie, k as ae, l as oe, m as se, n as ce, o as le, p as ue, r as de, s as fe, t as pe, u as me, v as he, w as ge, x as _e, y as ve } from "./data-DzrH9ikw.js";
6
+ import { A as S, C as ye, D as be, E as xe, M as Se, N as Ce, O as we, S as Te, T as Ee, _ as De, a as Oe, b as ke, c as C, d as Ae, f as je, g as Me, h as Ne, i as Pe, j as w, k as Fe, l as Ie, m as Le, n as Re, o as ze, p as Be, r as Ve, s as He, t as Ue, u as We, v as T, w as Ge, x as Ke, y as qe } from "./data-CsMfGCkv.js";
7
+ import { n as Je, r as E, t as Ye } from "./TimelineResultsView-BF3VoCs_.js";
8
+ import { t as Xe } from "./SiteShell-UsZ_cpe9.js";
9
+ import { i as Ze, n as Qe, r as $e, t as et } from "./chrome-Bv_mLlHM.js";
10
+ import { i as tt } from "./PageShell-CIGVv7sK.js";
11
+ import { n as nt, t as rt } from "./LegacyItemSheet-Bmg8etGz.js";
12
+ import { n as it, r as D } from "./Theme-Daezwp0p.js";
13
+ import { n as at, r as ot, t as st } from "./themeSpecs-DIdmAEc3.js";
14
+ import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as ct, createTextVNode as P, createVNode as F, normalizeClass as I, normalizeStyle as lt, onBeforeUnmount as ut, onMounted as dt, openBlock as L, reactive as ft, ref as R, renderList as z, renderSlot as pt, resolveDynamicComponent as mt, toDisplayString as B, unref as V, vModelCheckbox as ht, vModelSelect as gt, vModelText as _t, vShow as vt, watch as yt, watchEffect as bt, withCtx as H, withDirectives as U, withModifiers as xt } from "vue";
15
+ import { I18nText as W, NotFoundView as St, languageLabels as Ct, loadEntities as wt, mwnfLinks as G, offeredLanguages as Tt, renderBlock as Et, renderInline as K, renderPlain as Dt, sectionMeta as Ot, useDataPackage as kt, useFacets as At, useI18n as q, useKeywordIndex as jt, useSection as Mt, useSiteConfig as Nt, withEraWords as Pt, yearBuckets as J, yearBucketsFromRange as Ft } from "@museumwnf/viewer-core";
16
+ import { RouterLink as Y, useRoute as X, useRouter as It } from "vue-router";
17
+ import { romanFor as Lt } from "@museumwnf/viewer-core/dxa";
17
18
  // src/dxa/PartnerDetail.vue
18
- var Bt = { class: "mwnf-dxa-profile-languages" }, Vt = {
19
+ var Rt = { class: "mwnf-dxa-profile-languages" }, zt = { class: "mwnf-dxa-profile-map-label" }, Bt = {
20
+ key: 1,
21
+ class: "mwnf-dxa-profile-no-map"
22
+ }, Vt = {
19
23
  __name: "PartnerDetail",
20
24
  props: {
21
25
  id: {
@@ -31,46 +35,72 @@ var Bt = { class: "mwnf-dxa-profile-languages" }, Vt = {
31
35
  default: "partner"
32
36
  }
33
37
  },
34
- setup(t) {
35
- let n = t, { t: i } = J(), a = j(() => n.family.labels?.[n.variant] ?? n.family.labels?.partner ?? {});
36
- return (n, l) => t.family.visible(t.id) ? (z(), M(c, {
38
+ setup(i) {
39
+ let a = i, { t: s } = q(), l = k(() => a.family.labels?.[a.variant] ?? a.family.labels?.partner ?? {});
40
+ return (a, u) => i.family.visible(i.id) ? (L(), A(c, {
37
41
  key: 0,
38
- spec: t.family.spec,
39
- id: t.id,
40
- class: "mwnf-dxa-partner-profile"
42
+ spec: i.family.spec,
43
+ id: i.id,
44
+ class: I(["mwnf-dxa-partner-profile", i.family.className])
41
45
  }, {
42
- header: W(({ languages: t, language: n, select: r }) => [F("div", Bt, [L(o, {
43
- languages: t,
44
- language: n,
45
- onSelect: r
46
+ header: H(({ languages: n, language: r, select: a }) => [N("div", Rt, [F(t, {
47
+ languages: n,
48
+ language: r,
49
+ from: i.family.legacyMap ? 1 : 2,
50
+ onSelect: a
46
51
  }, null, 8, [
47
52
  "languages",
48
53
  "language",
54
+ "from",
49
55
  "onSelect"
50
- ])]), L(e)]),
51
- "before-sheet": W(({ record: e, text: n, dir: o }) => [L(r, {
56
+ ])]), F(e)]),
57
+ "before-sheet": H(({ record: e, text: t, dir: a }) => [F(o, {
52
58
  variant: "full",
53
- partner: t.family.view(e, n),
59
+ partner: i.family.view(e, t),
54
60
  heading: 1,
55
- "homepage-label": a.value.homepage ?? "partner.nav.homepage",
56
- dir: o
57
- }, {
58
- actions: W(({ partner: e }) => [e.objectsRoute ? (z(), M(s, {
61
+ "homepage-label": l.value.homepage ?? "partner.nav.homepage",
62
+ media: i.family.media ?? {},
63
+ show: i.family.legacyMap ? { map: !1 } : {},
64
+ dir: a
65
+ }, ct({
66
+ actions: H(({ partner: e }) => [e.objectsRoute ? (L(), A(n, {
59
67
  key: 0,
60
68
  class: "mwnf-button",
61
69
  to: e.objectsRoute
62
70
  }, {
63
- default: W(() => [I(H(U(i)(a.value.objects ?? "partner.action.viewObjects")), 1)]),
71
+ default: H(() => [P(B(V(s)(l.value.objects ?? "partner.action.viewObjects")), 1)]),
64
72
  _: 1
65
- }, 8, ["to"])) : N("", !0)]),
66
- _: 1
67
- }, 8, [
73
+ }, 8, ["to"])) : j("", !0)]),
74
+ _: 2
75
+ }, [i.family.legacyMap ? {
76
+ name: "after",
77
+ fn: H(({ partner: e }) => [e.map ? (L(), M(O, { key: 0 }, [N("p", zt, B(V(s)(i.family.legacyMap.label)), 1), F(r, {
78
+ class: "mwnf-dxa-profile-map",
79
+ provider: "google",
80
+ latitude: e.map.latitude,
81
+ longitude: e.map.longitude,
82
+ zoom: e.map.zoom,
83
+ label: e.map.label
84
+ }, null, 8, [
85
+ "latitude",
86
+ "longitude",
87
+ "zoom",
88
+ "label"
89
+ ])], 64)) : (L(), M("p", Bt))]),
90
+ key: "0"
91
+ } : void 0]), 1032, [
68
92
  "partner",
69
93
  "homepage-label",
94
+ "media",
95
+ "show",
70
96
  "dir"
71
97
  ])]),
72
98
  _: 1
73
- }, 8, ["spec", "id"])) : (z(), M(U(Tt), { key: 1 }));
99
+ }, 8, [
100
+ "spec",
101
+ "id",
102
+ "class"
103
+ ])) : (L(), A(V(St), { key: 1 }));
74
104
  }
75
105
  }, Ht = {
76
106
  __name: "TextPage",
@@ -94,7 +124,7 @@ var Bt = { class: "mwnf-dxa-profile-languages" }, Vt = {
94
124
  }
95
125
  },
96
126
  setup(t) {
97
- return (n, r) => (z(), P("div", { class: R(["mwnf-dxa-gallery-text", `mwnf-dxa-gallery-text--${t.kind}`]) }, [L(e, { to: t.back }, null, 8, ["to"]), L(U(G), {
127
+ return (n, r) => (L(), M("div", { class: I(["mwnf-dxa-gallery-text", `mwnf-dxa-gallery-text--${t.kind}`]) }, [F(e, { to: t.back }, null, 8, ["to"]), F(V(W), {
98
128
  class: "mwnf-dxa-gallery-text__body",
99
129
  dir: "auto",
100
130
  keypath: t.body,
@@ -104,7 +134,7 @@ var Bt = { class: "mwnf-dxa-profile-languages" }, Vt = {
104
134
  }, Ut = {
105
135
  __name: "About",
106
136
  setup(e) {
107
- return (e, t) => (z(), M(Ht, {
137
+ return (e, t) => (L(), A(Ht, {
108
138
  kind: "about",
109
139
  body: "gallery.about.body"
110
140
  }));
@@ -116,21 +146,35 @@ var Bt = { class: "mwnf-dxa-profile-languages" }, Vt = {
116
146
  required: !0
117
147
  } },
118
148
  setup(e) {
119
- return (t, n) => (z(), M(Ht, {
149
+ return (t, n) => (L(), A(Ht, {
120
150
  kind: "credits",
121
151
  body: e.bodyKey
122
152
  }, null, 8, ["body"]));
123
153
  }
124
- }, Gt = {
154
+ }, Gt = { class: "mwnf-dxa-exhibition-credits" }, Kt = {
155
+ __name: "Credits",
156
+ props: { bodyKey: {
157
+ type: String,
158
+ required: !0
159
+ } },
160
+ setup(t) {
161
+ return (n, r) => (L(), M("div", Gt, [F(e), F(V(W), {
162
+ class: "mwnf-dxa-exhibition-credits__body",
163
+ dir: "auto",
164
+ keypath: t.bodyKey,
165
+ "blank-lines": ""
166
+ }, null, 8, ["keypath"])]));
167
+ }
168
+ }, qt = {
125
169
  __name: "SearchHowTo",
126
170
  setup(e) {
127
- return (e, t) => (z(), M(Ht, {
171
+ return (e, t) => (L(), A(Ht, {
128
172
  kind: "how-to",
129
173
  body: "catalogue.search.howToEssay",
130
174
  back: { name: "collection" }
131
175
  }));
132
176
  }
133
- }, Kt = {
177
+ }, Jt = {
134
178
  DGA: "dga",
135
179
  ISL: "isl",
136
180
  EPM: "isl",
@@ -138,144 +182,156 @@ var Bt = { class: "mwnf-dxa-profile-languages" }, Vt = {
138
182
  BAR: "dba",
139
183
  GALLERIES: "galleries",
140
184
  DCA: "dca"
185
+ }, Yt = {
186
+ partner: "gallery.partners.statusPartner",
187
+ affiliate: "gallery.partners.statusAffiliate"
141
188
  };
142
- function Q(e) {
143
- let t = e?.own_project;
144
- if (!t?.name) return null;
145
- let n = String(t.backward_compatibility ?? "").split(":").pop().toUpperCase(), r = t.exhibition ? "exh" : Kt[n] ?? "", i = t.level === "partner" || !!t.exhibition;
189
+ function Z(e, t = Yt) {
190
+ let n = e?.own_project;
191
+ if (!n?.name) return null;
192
+ let r = String(n.backward_compatibility ?? "").split(":").pop().toUpperCase(), i = n.exhibition ? "exh" : Jt[r] ?? "", a = n.level === "partner" || !!n.exhibition;
146
193
  return {
147
- name: t.name,
148
- status: i ? "gallery.partners.statusPartner" : "gallery.partners.statusAffiliate",
149
- tone: r
194
+ name: n.name,
195
+ status: a ? t.partner : t.affiliate,
196
+ tone: i
150
197
  };
151
198
  }
152
199
  // src/dxa/gallery/Partners.vue
153
- var qt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Jt = { class: "mwnf-dxa-gallery-partners__options" }, Yt = { class: "mwnf-dxa-gallery-partners__order" }, Xt = ["onClick"], Zt = { class: "mwnf-dxa-gallery-partners__country" }, Qt = { class: "mwnf-dxa-gallery-partners__partner" }, $t = { class: "mwnf-dxa-gallery-partners__text" }, en = ["innerHTML"], tn = {
200
+ var Xt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Zt = { class: "mwnf-dxa-gallery-partners__options" }, Qt = { class: "mwnf-dxa-gallery-partners__order" }, $t = ["onClick"], en = { class: "mwnf-dxa-gallery-partners__country" }, tn = { class: "mwnf-dxa-gallery-partners__partner" }, nn = { class: "mwnf-dxa-gallery-partners__text" }, rn = ["innerHTML"], an = {
154
201
  key: 0,
155
202
  class: "mwnf-dxa-gallery-partners__city"
156
- }, nn = { class: "mwnf-dxa-partner-badge__status" }, rn = { class: "mwnf-dxa-gallery-partners__links" }, an = { class: "mwnf-dxa-gallery-partners__logo" }, on = ["src", "alt"], sn = {
203
+ }, on = { class: "mwnf-dxa-partner-badge__status" }, sn = { class: "mwnf-dxa-gallery-partners__links" }, cn = { class: "mwnf-dxa-gallery-partners__logo" }, ln = ["src", "alt"], un = {
157
204
  __name: "Partners",
158
205
  setup(t) {
159
- let n = {
206
+ let r = {
160
207
  ...h,
161
- objectsRoute: _e,
208
+ objectsRoute: ge,
162
209
  orderToggle: !1,
163
210
  tiebreak: (e) => e.own_project?.name ?? ""
164
211
  };
165
- return (t, r) => (z(), P("div", qt, [L(et, { spec: n }, {
166
- before: W(({ t, orderDir: n, toggleOrder: r }) => [F("div", Jt, [L(e), F("div", Yt, [F("button", {
212
+ return (t, i) => (L(), M("div", Xt, [F(Je, { spec: r }, {
213
+ before: H(({ t, orderDir: n, toggleOrder: r }) => [N("div", Zt, [F(e), N("div", Qt, [N("button", {
167
214
  type: "button",
168
215
  onClick: r
169
- }, H(t(n === "asc" ? "partner.list.sortDescending" : "partner.list.sortAscending")), 9, Xt)])]), L(U(G), {
216
+ }, B(t(n === "asc" ? "partner.list.sortDescending" : "partner.list.sortAscending")), 9, $t)])]), F(V(W), {
170
217
  id: "mwnf-dxa-partners-intro",
171
218
  class: "mwnf-dxa-gallery-partners__intro",
172
219
  dir: "auto",
173
220
  keypath: "gallery.partners.intro"
174
221
  })]),
175
- "group-heading": W(({ group: e }) => [F("div", Zt, H(e.label), 1)]),
176
- row: W(({ partner: e, view: t, t: n }) => [F("div", Qt, [F("div", $t, [
177
- L(s, {
222
+ "group-heading": H(({ group: e }) => [N("div", en, B(e.label), 1)]),
223
+ row: H(({ partner: e, view: t, t: r }) => [N("div", tn, [N("div", nn, [
224
+ F(n, {
178
225
  class: "mwnf-dxa-gallery-partners__name",
179
226
  to: t.route
180
227
  }, {
181
- default: W(() => [F("span", { innerHTML: t.name }, null, 8, en), t.city ? (z(), P("span", tn, ", " + H(t.city), 1)) : N("", !0)]),
228
+ default: H(() => [N("span", { innerHTML: t.name }, null, 8, rn), t.city ? (L(), M("span", an, ", " + B(t.city), 1)) : j("", !0)]),
182
229
  _: 2
183
230
  }, 1032, ["to"]),
184
- U(Q)(e) ? (z(), P("div", {
231
+ V(Z)(e) ? (L(), M("div", {
185
232
  key: 0,
186
- class: R(["mwnf-dxa-partner-badge", U(Q)(e).tone && `mwnf-dxa-partner-badge--${U(Q)(e).tone}`])
187
- }, [I(H(U(Q)(e).name) + " ", 1), F("span", nn, H(n(U(Q)(e).status)), 1)], 2)) : N("", !0),
188
- F("div", rn, [L(s, { to: t.route }, {
189
- default: W(() => [I(H(n("partner.action.readMore")), 1)]),
233
+ class: I(["mwnf-dxa-partner-badge", V(Z)(e).tone && `mwnf-dxa-partner-badge--${V(Z)(e).tone}`])
234
+ }, [P(B(V(Z)(e).name) + " ", 1), N("span", on, B(r(V(Z)(e).status)), 1)], 2)) : j("", !0),
235
+ N("div", sn, [F(n, { to: t.route }, {
236
+ default: H(() => [P(B(r("partner.action.readMore")), 1)]),
190
237
  _: 2
191
- }, 1032, ["to"]), e.item_count > 0 && t.objectsRoute ? (z(), P(A, { key: 0 }, [r[0] ||= F("span", {
238
+ }, 1032, ["to"]), e.item_count > 0 && t.objectsRoute ? (L(), M(O, { key: 0 }, [i[0] ||= N("span", {
192
239
  class: "mwnf-dxa-gallery-partners__divider",
193
240
  "aria-hidden": "true"
194
- }, "|", -1), L(s, { to: t.objectsRoute }, {
195
- default: W(() => [I(H(n("partner.action.viewObjects")), 1)]),
241
+ }, "|", -1), F(n, { to: t.objectsRoute }, {
242
+ default: H(() => [P(B(r("partner.action.viewObjects")), 1)]),
196
243
  _: 2
197
- }, 1032, ["to"])], 64)) : N("", !0)])
198
- ]), F("div", an, [t.logos?.[0] ? (z(), P("img", {
244
+ }, 1032, ["to"])], 64)) : j("", !0)])
245
+ ]), N("div", cn, [t.logos?.[0] ? (L(), M("img", {
199
246
  key: 0,
200
247
  src: t.logos[0].url,
201
248
  alt: t.plainName,
202
249
  loading: "lazy"
203
- }, null, 8, on)) : N("", !0)])])]),
250
+ }, null, 8, ln)) : j("", !0)])])]),
204
251
  _: 1
205
252
  })]));
206
253
  }
207
- }, cn = { class: "mwnf-dxa-grid" }, ln = ["onMouseenter"], un = { class: "mwnf-dxa-grid__frame" }, dn = ["src", "alt"], fn = ["src", "alt"], pn = { class: "mwnf-dxa-grid__text" }, mn = ["innerHTML"], hn = { class: "mwnf-dxa-grid__date" }, gn = { class: "mwnf-dxa-grid__partner" }, _n = { class: "mwnf-dxa-grid__place" }, vn = { class: "mwnf-dxa-grid__project" }, yn = {
254
+ }, dn = ["onMouseenter"], fn = { class: "mwnf-dxa-grid__frame" }, pn = ["src", "alt"], mn = ["src", "alt"], hn = { class: "mwnf-dxa-grid__text" }, gn = ["innerHTML"], _n = { class: "mwnf-dxa-grid__date" }, vn = { class: "mwnf-dxa-grid__partner" }, yn = { class: "mwnf-dxa-grid__place" }, bn = {
255
+ key: 0,
256
+ class: "mwnf-dxa-grid__project"
257
+ }, Q = {
208
258
  __name: "ObjectGrid",
209
- props: { rows: {
210
- type: Array,
211
- default: () => []
212
- } },
259
+ props: {
260
+ rows: {
261
+ type: Array,
262
+ default: () => []
263
+ },
264
+ family: {
265
+ type: String,
266
+ default: "gallery"
267
+ }
268
+ },
213
269
  setup(e) {
214
- let { t } = J(), n = B(-1);
215
- return (r, i) => (z(), P("div", cn, [(z(!0), P(A, null, V(e.rows, (e, r) => (z(), P("div", {
216
- key: e.id,
270
+ let { t } = q(), r = R(-1);
271
+ return (i, a) => (L(), M("div", { class: I(["mwnf-dxa-grid", { "mwnf-dxa-grid--exhibition": e.family === "exhibition" }]) }, [(L(!0), M(O, null, z(e.rows, (i, o) => (L(), M("div", {
272
+ key: i.id,
217
273
  class: "mwnf-dxa-grid__entry",
218
- onMouseenter: (e) => n.value = r,
219
- onMouseleave: i[0] ||= (e) => n.value = -1
220
- }, [F("div", un, [F("img", {
274
+ onMouseenter: (e) => r.value = o,
275
+ onMouseleave: a[0] ||= (e) => r.value = -1
276
+ }, [N("div", fn, [N("img", {
221
277
  class: "mwnf-dxa-grid__image",
222
- src: e.image,
223
- alt: e.imageAlt,
278
+ src: i.image,
279
+ alt: i.imageAlt,
224
280
  loading: "lazy"
225
- }, null, 8, dn)]), F("div", { class: R(["mwnf-dxa-grid__card", { "mwnf-dxa-grid__card--open": n.value === r }]) }, [L(s, {
281
+ }, null, 8, pn)]), N("div", { class: I(["mwnf-dxa-grid__card", { "mwnf-dxa-grid__card--open": r.value === o }]) }, [F(n, {
226
282
  class: "mwnf-dxa-grid__card-image",
227
- to: e.to,
283
+ to: i.to,
228
284
  tabindex: "-1"
229
285
  }, {
230
- default: W(() => [F("img", {
231
- src: e.image,
232
- alt: e.imageAlt,
286
+ default: H(() => [N("img", {
287
+ src: i.image,
288
+ alt: i.imageAlt,
233
289
  loading: "lazy"
234
- }, null, 8, fn)]),
290
+ }, null, 8, mn)]),
235
291
  _: 2
236
- }, 1032, ["to"]), F("div", pn, [
237
- F("p", {
292
+ }, 1032, ["to"]), N("div", hn, [
293
+ N("p", {
238
294
  class: "mwnf-dxa-grid__name",
239
- innerHTML: e.name
240
- }, null, 8, mn),
241
- F("p", hn, H(e.date), 1),
242
- F("p", gn, H(e.partner), 1),
243
- F("p", _n, H(e.place), 1),
244
- F("p", vn, [I(H(U(t)("gallery.results.for")) + " ", 1), F("span", null, H(e.project), 1)]),
245
- L(s, {
295
+ innerHTML: i.name
296
+ }, null, 8, gn),
297
+ N("p", _n, B(i.date), 1),
298
+ N("p", vn, B(i.partner), 1),
299
+ N("p", yn, B(i.place), 1),
300
+ e.family !== "exhibition" || i.project ? (L(), M("p", bn, [P(B(V(t)("gallery.results.for")) + " ", 1), N("span", null, B(i.project), 1)])) : j("", !0),
301
+ F(n, {
246
302
  class: "mwnf-dxa-grid__link",
247
- to: e.to
303
+ to: i.to
248
304
  }, {
249
- default: W(() => [I(H(U(t)("catalogue.results.seeDatabaseEntry")) + " >", 1)]),
305
+ default: H(() => [P(B(V(t)("catalogue.results.seeDatabaseEntry")) + " >", 1)]),
250
306
  _: 1
251
307
  }, 8, ["to"])
252
- ])], 2)], 40, ln))), 128))]));
308
+ ])], 2)], 40, dn))), 128))], 2));
253
309
  }
254
- }, bn = ["onSubmit"], xn = ["placeholder"], Sn = {
310
+ }, xn = ["onSubmit"], Sn = ["placeholder"], Cn = {
255
311
  type: "submit",
256
312
  class: "mwnf-dxa-refine-search-submit"
257
- }, Cn = { class: "mwnf-dxa-how-to" }, wn = {
313
+ }, wn = { class: "mwnf-dxa-how-to" }, Tn = {
258
314
  key: 1,
259
315
  class: "mwnf-dxa-no-results"
260
- }, Tn = {
316
+ }, En = {
261
317
  __name: "SearchResults",
262
318
  setup(t) {
263
- let n = Ft("items", {
319
+ let n = jt("items", {
264
320
  grammar: "boolean",
265
- haystack: he
266
- }), r = B(!1);
267
- te().then(() => {
321
+ haystack: me
322
+ }), r = R(!1);
323
+ _().then(() => {
268
324
  r.value = !0;
269
325
  });
270
326
  function i(e) {
271
327
  return !e || e === "all-objects";
272
328
  }
273
- let a = B(""), o = j(() => ({
329
+ let a = R(""), o = k(() => ({
274
330
  entity: "items",
275
331
  keys: ["q"],
276
332
  sort: !1,
277
333
  narrow: (e, t) => r.value ? i(t.q) ? e : n.search(t.q) : [],
278
- pageSize: y.pageSize,
334
+ pageSize: x.pageSize,
279
335
  variant: "grid",
280
336
  recordRoute: "item",
281
337
  actionLabel: "catalogue.results.seeDatabaseEntry",
@@ -289,67 +345,67 @@ var qt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Jt = { class:
289
345
  value: `${n("catalogue.results.outOf")} ${r} ${n("catalogue.results.objects")}`
290
346
  }]
291
347
  }));
292
- return (t, n) => (z(), M(E, {
348
+ return (t, n) => (L(), A(E, {
293
349
  spec: o.value,
294
350
  class: "mwnf-dxa-search-results"
295
351
  }, {
296
- before: W(() => [L(e)]),
297
- filters: W(({ apply: e }) => [F("form", {
352
+ before: H(() => [F(e)]),
353
+ filters: H(({ apply: e }) => [N("form", {
298
354
  class: "mwnf-dxa-refine-search",
299
- onSubmit: wt((t) => e({ q: a.value || "all-objects" }), ["prevent"])
300
- }, [Ct(F("input", {
355
+ onSubmit: xt((t) => e({ q: a.value || "all-objects" }), ["prevent"])
356
+ }, [U(N("input", {
301
357
  "onUpdate:modelValue": n[0] ||= (e) => a.value = e,
302
358
  type: "text",
303
359
  class: "mwnf-dxa-refine-search-input",
304
360
  placeholder: t.$t("catalogue.search.keywordPlaceholder")
305
- }, null, 8, xn), [[xt, a.value]]), F("button", Sn, H(t.$t("catalogue.search.submit")), 1)], 40, bn), F("p", Cn, [L(U(Z), { to: { name: "search-how-to" } }, {
306
- default: W(() => [I(H(t.$t("catalogue.search.howTo")) + " ›", 1)]),
361
+ }, null, 8, Sn), [[_t, a.value]]), N("button", Cn, B(t.$t("catalogue.search.submit")), 1)], 40, xn), N("p", wn, [F(V(Y), { to: { name: "search-how-to" } }, {
362
+ default: H(() => [P(B(t.$t("catalogue.search.howTo")) + " ›", 1)]),
307
363
  _: 1
308
364
  })])]),
309
- records: W(({ rows: e }) => [e.length ? (z(), M(yn, {
365
+ records: H(({ rows: e }) => [e.length ? (L(), A(Q, {
310
366
  key: 0,
311
367
  rows: e
312
- }, null, 8, ["rows"])) : (z(), P("p", wn, [
313
- I(H(t.$t("catalogue.results.noResultsSearch")) + " ", 1),
314
- L(U(Z), { to: { name: "search-how-to" } }, {
315
- default: W(() => [I(H(t.$t("catalogue.search.howTo")), 1)]),
368
+ }, null, 8, ["rows"])) : (L(), M("p", Tn, [
369
+ P(B(t.$t("catalogue.results.noResultsSearch")) + " ", 1),
370
+ F(V(Y), { to: { name: "search-how-to" } }, {
371
+ default: H(() => [P(B(t.$t("catalogue.search.howTo")), 1)]),
316
372
  _: 1
317
373
  }),
318
- n[1] ||= F("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
319
- L(U(Z), { to: { name: "collection" } }, {
320
- default: W(() => [I(H(t.$t("core.section.collection")), 1)]),
374
+ n[1] ||= N("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
375
+ F(V(Y), { to: { name: "collection" } }, {
376
+ default: H(() => [P(B(t.$t("core.section.collection")), 1)]),
321
377
  _: 1
322
378
  })
323
379
  ]))]),
324
380
  _: 1
325
381
  }, 8, ["spec"]));
326
382
  }
327
- }, En = {
383
+ }, Dn = {
328
384
  __name: "TimelineResults",
329
385
  setup(t) {
330
- return (t, n) => (z(), M(D, {
331
- spec: U(l),
386
+ return (t, n) => (L(), A(Ye, {
387
+ spec: V(l),
332
388
  class: "mwnf-dxa-timeline-results"
333
389
  }, {
334
- before: W(() => [L(e)]),
390
+ before: H(() => [F(e)]),
335
391
  _: 1
336
392
  }, 8, ["spec"]));
337
393
  }
338
- }, Dn = { class: "mwnf-dxa-back-to-events" }, On = {
394
+ }, On = { class: "mwnf-dxa-back-to-events" }, kn = {
339
395
  key: 1,
340
396
  class: "mwnf-record-grid__empty"
341
- }, kn = {
397
+ }, An = {
342
398
  __name: "TimelineGallery",
343
399
  setup(t) {
344
- return (t, n) => (z(), M(E, {
400
+ return (t, n) => (L(), A(E, {
345
401
  spec: {
346
- ...U(se),
347
- ...U(y)
402
+ ...V(ae),
403
+ ...V(x)
348
404
  },
349
405
  class: "mwnf-dxa-timeline-gallery"
350
406
  }, {
351
- before: W(() => [L(e)]),
352
- actions: W(({ filters: e, pageInfo: n, goToPage: r }) => [F("p", Dn, [L(U(Z), { to: {
407
+ before: H(() => [F(e)]),
408
+ actions: H(({ filters: e, pageInfo: n, goToPage: r }) => [N("p", On, [F(V(Y), { to: {
353
409
  name: "timeline-results",
354
410
  query: {
355
411
  country: e.country,
@@ -357,125 +413,125 @@ var qt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Jt = { class:
357
413
  end: e.end
358
414
  }
359
415
  } }, {
360
- default: W(() => [I(" ➤ " + H(t.$t("timeline.nav.backToEvents")), 1)]),
416
+ default: H(() => [P(" ➤ " + B(t.$t("timeline.nav.backToEvents")), 1)]),
361
417
  _: 1
362
- }, 8, ["to"])]), L(i, {
418
+ }, 8, ["to"])]), F(s, {
363
419
  class: "mwnf-dxa-pages",
364
420
  "page-info": n,
365
421
  jump: "",
366
422
  onNavigate: r
367
423
  }, null, 8, ["page-info", "onNavigate"])]),
368
- records: W(({ rows: e, empty: t }) => [e.length ? (z(), M(yn, {
424
+ records: H(({ rows: e, empty: t }) => [e.length ? (L(), A(Q, {
369
425
  key: 0,
370
426
  rows: e
371
- }, null, 8, ["rows"])) : (z(), P("p", On, H(t), 1))]),
427
+ }, null, 8, ["rows"])) : (L(), M("p", kn, B(t), 1))]),
372
428
  _: 1
373
429
  }, 8, ["spec"]));
374
430
  }
375
- }, An = { class: "mwnf-dxa-gallery-results" }, jn = { class: "mwnf-dxa-gallery-results__info" }, Mn = { class: "mwnf-dxa-gallery-results__choices" }, Nn = {
431
+ }, jn = { class: "mwnf-dxa-gallery-results" }, Mn = { class: "mwnf-dxa-gallery-results__info" }, Nn = { class: "mwnf-dxa-gallery-results__choices" }, Pn = {
376
432
  key: 1,
377
433
  class: "mwnf-dxa-gallery-results__end"
378
- }, Pn = { class: "mwnf-dxa-date-wrapper" }, Fn = {
434
+ }, Fn = { class: "mwnf-dxa-date-wrapper" }, In = {
379
435
  key: 0,
380
436
  class: "mwnf-dxa-timeline-link-box"
381
- }, In = { class: "mwnf-dxa-options-label" }, Ln = { class: "mwnf-dxa-gallery-results__timeline" }, Rn = {
437
+ }, Ln = { class: "mwnf-dxa-options-label" }, Rn = { class: "mwnf-dxa-gallery-results__timeline" }, zn = {
382
438
  __name: "CollectionResults",
383
- setup(r) {
384
- let { t: a } = J(), o = {
439
+ setup(t) {
440
+ let { t: n } = q(), r = {
385
441
  type: "gallery.collection.type",
386
442
  dynasty: "gallery.collection.periodDynasty",
387
443
  subject: "gallery.collection.subject",
388
444
  material: "gallery.collection.material"
389
- }, s = (e) => a(le[e] ?? e), c = j(() => X(ce.value ?? [], s)), l = j(() => (ce.value ?? []).length), u = g.keys, d = (e) => u.every((t) => !e[t]);
390
- function f(e, t, n) {
391
- let r = (n) => (t[n] ?? []).find((t) => String(t.value) === String(e[n]))?.label ?? e[n], i = (e) => c.value.find((t) => String(t.value) === String(e))?.label ?? e, o = [];
392
- e.country && o.push(r("country"));
393
- for (let t of fe) e[t] && o.push(r(t));
394
- return e.from && o.push(`${a("gallery.collection.start")} ${i(e.from)}`), e.to && o.push(`${a("gallery.collection.end")} ${i(e.to)}`), o.length ? o.join(" & ") : n.length ? a("gallery.collection.allObjects") : a("gallery.collection.none");
445
+ }, o = (e) => n(ce[e] ?? e), c = k(() => J(se.value ?? [], o)), l = k(() => (se.value ?? []).length), u = v.keys, d = (e) => u.every((t) => !e[t]);
446
+ function f(e, t, r) {
447
+ let i = (n) => (t[n] ?? []).find((t) => String(t.value) === String(e[n]))?.label ?? e[n], a = (e) => c.value.find((t) => String(t.value) === String(e))?.label ?? e, o = [];
448
+ e.country && o.push(i("country"));
449
+ for (let t of de) e[t] && o.push(i(t));
450
+ return e.from && o.push(`${n("gallery.collection.start")} ${a(e.from)}`), e.to && o.push(`${n("gallery.collection.end")} ${a(e.to)}`), o.length ? o.join(" & ") : r.length ? n("gallery.collection.allObjects") : n("gallery.collection.none");
395
451
  }
396
- let p = j(() => new Set((oe.value ?? []).map((e) => e.country_id)));
452
+ let p = k(() => new Set((ie.value ?? []).map((e) => e.country_id)));
397
453
  function m(e) {
398
- let t = ue(e.country);
454
+ let t = le(e.country);
399
455
  return !!(t && p.value.has(t));
400
456
  }
401
- return (r, c) => (z(), P("div", An, [L(E, {
457
+ return (t, c) => (L(), M("div", jn, [F(E, {
402
458
  spec: {
403
- ...U(g),
404
- ...U(y),
459
+ ...V(v),
460
+ ...V(x),
405
461
  summary: () => []
406
462
  },
407
463
  class: "mwnf-dxa-collection-results"
408
464
  }, {
409
- before: W(({ filters: t, options: n, matching: r, pageInfo: i }) => [L(e), F("div", jn, [F("p", null, [I(H(U(a)("gallery.collection.heading")) + " | ", 1), F("span", Mn, H(f(t, n, r)), 1)]), F("p", null, H(i.total) + " " + H(U(a)("gallery.collection.resultsOutOf")) + " " + H(l.value) + " " + H(U(a)("gallery.collection.objects")), 1)])]),
410
- actions: W(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (z(), M(i, {
465
+ before: H(({ filters: t, options: r, matching: i, pageInfo: a }) => [F(e), N("div", Mn, [N("p", null, [P(B(V(n)("gallery.collection.heading")) + " | ", 1), N("span", Nn, B(f(t, r, i)), 1)]), N("p", null, B(a.total) + " " + B(V(n)("gallery.collection.resultsOutOf")) + " " + B(l.value) + " " + B(V(n)("gallery.collection.objects")), 1)])]),
466
+ actions: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(s, {
411
467
  key: 0,
412
468
  class: "mwnf-dxa-pages",
413
469
  "page-info": e,
414
470
  jump: "",
415
471
  onNavigate: t
416
- }, null, 8, ["page-info", "onNavigate"])) : N("", !0)]),
417
- records: W(({ rows: e }) => [e.length ? (z(), M(yn, {
472
+ }, null, 8, ["page-info", "onNavigate"])) : j("", !0)]),
473
+ records: H(({ rows: e }) => [e.length ? (L(), A(Q, {
418
474
  key: 0,
419
475
  rows: e
420
- }, null, 8, ["rows"])) : (z(), M(U(G), {
476
+ }, null, 8, ["rows"])) : (L(), A(V(W), {
421
477
  key: 1,
422
478
  class: "mwnf-dxa-gallery-results__none",
423
479
  keypath: "gallery.collection.noResults"
424
480
  }))]),
425
- pagination: W(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (z(), M(i, {
481
+ pagination: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(s, {
426
482
  key: 0,
427
483
  class: "mwnf-dxa-pages",
428
484
  "page-info": e,
429
485
  jump: "",
430
486
  onNavigate: t
431
- }, null, 8, ["page-info", "onNavigate"])) : (z(), P("div", Nn))]),
432
- aside: W(({ filters: e, apply: r, reset: i, matching: l, options: u }) => [L(n, {
487
+ }, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", Pn))]),
488
+ aside: H(({ filters: e, apply: t, reset: s, matching: l, options: u }) => [F(a, {
433
489
  mode: "immediate",
434
- title: d(e) ? U(a)("gallery.collection.filterBy") : U(a)("gallery.collection.filterFurtherBy"),
435
- "reset-label": U(a)("gallery.collection.resetFilters"),
490
+ title: d(e) ? V(n)("gallery.collection.filterBy") : V(n)("gallery.collection.filterFurtherBy"),
491
+ "reset-label": V(n)("gallery.collection.resetFilters"),
436
492
  disabled: l.length === 0,
437
- onReset: (e) => i()
493
+ onReset: (e) => s()
438
494
  }, {
439
- default: W(() => [
440
- L(t, {
495
+ default: H(() => [
496
+ F(i, {
441
497
  "model-value": e.country,
442
498
  options: u.country,
443
- placeholder: U(a)("gallery.collection.selectCountry"),
444
- "onUpdate:modelValue": (e) => r({ country: e })
499
+ placeholder: V(n)("gallery.collection.selectCountry"),
500
+ "onUpdate:modelValue": (e) => t({ country: e })
445
501
  }, null, 8, [
446
502
  "model-value",
447
503
  "options",
448
504
  "placeholder",
449
505
  "onUpdate:modelValue"
450
506
  ]),
451
- (z(!0), P(A, null, V(U(fe), (n) => (z(), M(t, {
452
- key: n,
453
- "model-value": e[n],
454
- options: u[n],
455
- placeholder: U(a)(o[n]),
507
+ (L(!0), M(O, null, z(V(de), (a) => (L(), A(i, {
508
+ key: a,
509
+ "model-value": e[a],
510
+ options: u[a],
511
+ placeholder: V(n)(r[a]),
456
512
  "hide-empty": "",
457
- "onUpdate:modelValue": (e) => r({ [n]: e })
513
+ "onUpdate:modelValue": (e) => t({ [a]: e })
458
514
  }, null, 8, [
459
515
  "model-value",
460
516
  "options",
461
517
  "placeholder",
462
518
  "onUpdate:modelValue"
463
519
  ]))), 128)),
464
- F("div", Pn, [L(t, {
520
+ N("div", Fn, [F(i, {
465
521
  "model-value": e.from,
466
- options: U(X)(l, s),
467
- placeholder: U(a)("gallery.collection.startDate"),
468
- "onUpdate:modelValue": (e) => r({ from: e })
522
+ options: V(J)(l, o),
523
+ placeholder: V(n)("gallery.collection.startDate"),
524
+ "onUpdate:modelValue": (e) => t({ from: e })
469
525
  }, null, 8, [
470
526
  "model-value",
471
527
  "options",
472
528
  "placeholder",
473
529
  "onUpdate:modelValue"
474
- ]), L(t, {
530
+ ]), F(i, {
475
531
  "model-value": e.to,
476
- options: U(X)(l, s),
477
- placeholder: U(a)("gallery.collection.endDate"),
478
- "onUpdate:modelValue": (e) => r({ to: e })
532
+ options: V(J)(l, o),
533
+ placeholder: V(n)("gallery.collection.endDate"),
534
+ "onUpdate:modelValue": (e) => t({ to: e })
479
535
  }, null, 8, [
480
536
  "model-value",
481
537
  "options",
@@ -489,10 +545,10 @@ var qt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Jt = { class:
489
545
  "reset-label",
490
546
  "disabled",
491
547
  "onReset"
492
- ]), m(e) ? (z(), P("div", Fn, [F("div", In, H(U(a)("gallery.collection.timelineForSearch")), 1), F("p", Ln, [c[0] ||= F("span", {
548
+ ]), m(e) ? (L(), M("div", In, [N("div", Ln, B(V(n)("gallery.collection.timelineForSearch")), 1), N("p", Rn, [c[0] ||= N("span", {
493
549
  class: "mwnf-dxa-gallery-results__share",
494
550
  "aria-hidden": "true"
495
- }, "➦", -1), L(U(Z), { to: {
551
+ }, "➦", -1), F(V(Y), { to: {
496
552
  name: "timeline-results",
497
553
  query: {
498
554
  country: e.country,
@@ -500,384 +556,989 @@ var qt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Jt = { class:
500
556
  end: e.to
501
557
  }
502
558
  } }, {
503
- default: W(() => [I(H(U(a)("gallery.collection.timeline")) + " | " + H(U(ie)("countries", U(ue)(e.country))), 1)]),
559
+ default: H(() => [P(B(V(n)("gallery.collection.timeline")) + " | " + B(V(ne)("countries", V(le)(e.country))), 1)]),
504
560
  _: 2
505
- }, 1032, ["to"])])])) : N("", !0)]),
561
+ }, 1032, ["to"])])])) : j("", !0)]),
506
562
  _: 1
507
563
  }, 8, ["spec"])]));
508
564
  }
509
- }, zn = { class: "mwnf-dxa-gallery-collection" }, Bn = { class: "mwnf-dxa-gallery-collection__dropdowns" }, Vn = { class: "mwnf-dxa-gallery-collection__label" }, Hn = { class: "mwnf-dxa-gallery-collection__selects" }, Un = ["aria-label", "onChange"], Wn = {
565
+ }, Bn = { class: "mwnf-dxa-gallery-collection" }, Vn = { class: "mwnf-dxa-gallery-collection__dropdowns" }, Hn = { class: "mwnf-dxa-gallery-collection__label" }, Un = { class: "mwnf-dxa-gallery-collection__selects" }, Wn = ["aria-label", "onChange"], Gn = {
510
566
  selected: "",
511
567
  disabled: "",
512
568
  value: ""
513
- }, Gn = ["value"], Kn = { class: "mwnf-dxa-gallery-collection__dates" }, qn = ["aria-label"], Jn = {
569
+ }, Kn = ["value"], qn = { class: "mwnf-dxa-gallery-collection__dates" }, Jn = ["aria-label"], Yn = {
514
570
  selected: "",
515
571
  disabled: "",
516
572
  value: ""
517
- }, Yn = ["value"], Xn = ["aria-label"], Zn = {
573
+ }, Xn = ["value"], Zn = ["aria-label"], Qn = {
518
574
  selected: "",
519
575
  disabled: "",
520
576
  value: ""
521
- }, Qn = ["value"], $n = {
577
+ }, $n = ["value"], er = {
522
578
  __name: "CollectionSearch",
523
579
  setup(e) {
524
- let t = zt(), { t: n } = J(), r = Pt(ce, me), i = {
580
+ let t = It(), { t: n } = q(), r = At(se, pe), i = {
525
581
  country: "gallery.collection.selectCountry",
526
582
  type: "gallery.collection.type",
527
583
  dynasty: "gallery.collection.periodDynasty",
528
584
  subject: "gallery.collection.subject",
529
585
  material: "gallery.collection.material"
530
- }, a = j(() => ["country", ...fe].filter((e) => e === "country" || (r.value[e] ?? []).length > 0).map((e) => ({
586
+ }, a = k(() => ["country", ...de].filter((e) => e === "country" || (r.value[e] ?? []).length > 0).map((e) => ({
531
587
  key: e,
532
588
  name: i[e],
533
589
  options: r.value[e] ?? []
534
- }))), o = (e) => n(le[e] ?? e), s = j(() => X(ce.value ?? [], o));
590
+ }))), o = (e) => n(ce[e] ?? e), s = k(() => J(se.value ?? [], o));
535
591
  function c(e, n) {
536
592
  n !== "" && n != null && t.push({
537
593
  name: "collection-results",
538
594
  query: { [e]: String(n) }
539
595
  });
540
596
  }
541
- return (e, t) => (z(), P("div", zn, [F("div", Bn, [F("div", Vn, H(U(n)("gallery.collection.filterBy")), 1), F("div", Hn, [(z(!0), P(A, null, V(a.value, (e) => (z(), P("select", {
597
+ return (e, t) => (L(), M("div", Bn, [N("div", Vn, [N("div", Hn, B(V(n)("gallery.collection.filterBy")), 1), N("div", Un, [(L(!0), M(O, null, z(a.value, (e) => (L(), M("select", {
542
598
  key: e.key,
543
599
  class: "mwnf-dxa-gallery-collection__select",
544
- "aria-label": U(n)(e.name),
600
+ "aria-label": V(n)(e.name),
545
601
  onChange: (t) => c(e.key, t.target.value)
546
- }, [F("option", Wn, H(U(n)(e.name)), 1), (z(!0), P(A, null, V(e.options, (e) => (z(), P("option", {
602
+ }, [N("option", Gn, B(V(n)(e.name)), 1), (L(!0), M(O, null, z(e.options, (e) => (L(), M("option", {
547
603
  key: e.value,
548
604
  value: String(e.value)
549
- }, H(e.label), 9, Gn))), 128))], 40, Un))), 128)), F("div", Kn, [F("select", {
605
+ }, B(e.label), 9, Kn))), 128))], 40, Wn))), 128)), N("div", qn, [N("select", {
550
606
  class: "mwnf-dxa-gallery-collection__select",
551
- "aria-label": U(n)("gallery.collection.startDate"),
607
+ "aria-label": V(n)("gallery.collection.startDate"),
552
608
  onChange: t[0] ||= (e) => c("from", e.target.value)
553
- }, [F("option", Jn, H(U(n)("gallery.collection.startDate")), 1), (z(!0), P(A, null, V(s.value, (e) => (z(), P("option", {
609
+ }, [N("option", Yn, B(V(n)("gallery.collection.startDate")), 1), (L(!0), M(O, null, z(s.value, (e) => (L(), M("option", {
554
610
  key: e.value,
555
611
  value: String(e.value)
556
- }, H(e.label), 9, Yn))), 128))], 40, qn), F("select", {
612
+ }, B(e.label), 9, Xn))), 128))], 40, Jn), N("select", {
557
613
  class: "mwnf-dxa-gallery-collection__select",
558
- "aria-label": U(n)("gallery.collection.endDate"),
614
+ "aria-label": V(n)("gallery.collection.endDate"),
559
615
  onChange: t[1] ||= (e) => c("to", e.target.value)
560
- }, [F("option", Zn, H(U(n)("gallery.collection.endDate")), 1), (z(!0), P(A, null, V(s.value, (e) => (z(), P("option", {
616
+ }, [N("option", Qn, B(V(n)("gallery.collection.endDate")), 1), (L(!0), M(O, null, z(s.value, (e) => (L(), M("option", {
561
617
  key: e.value,
562
618
  value: String(e.value)
563
- }, H(e.label), 9, Qn))), 128))], 40, Xn)])])]), L(U(G), {
619
+ }, B(e.label), 9, $n))), 128))], 40, Zn)])])]), F(V(W), {
564
620
  class: "mwnf-dxa-gallery-collection__description mwnf-prose",
565
621
  dir: "auto",
566
622
  keypath: "gallery.collection.intro"
567
623
  })]));
568
624
  }
569
- }, er = {
625
+ }, tr = {
570
626
  key: 0,
571
627
  class: "mwnf-dxa-partner-objects mwnf-dxa-gallery-objects"
572
- }, tr = { class: "mwnf-dxa-gallery-objects__header" }, nr = ["innerHTML"], rr = {
628
+ }, nr = { class: "mwnf-dxa-gallery-objects__header" }, rr = ["innerHTML"], ir = {
573
629
  key: 0,
574
630
  class: "mwnf-dxa-gallery-objects__place"
575
- }, ir = {
631
+ }, ar = {
576
632
  key: 1,
577
633
  class: "mwnf-dxa-gallery-objects__end"
578
- }, ar = {
634
+ }, or = {
579
635
  __name: "PartnerObjects",
580
636
  setup(t) {
581
- let n = Rt(), r = j(() => ye.value.get(n.params.id) ?? null), a = j(() => ({
637
+ let n = X(), r = k(() => ve.value.get(n.params.id) ?? null), i = k(() => ({
582
638
  ...u,
583
- ...y,
639
+ ...x,
584
640
  scope: (e) => e.partner_id === n.params.id
585
- })), o = j(() => r.value ? _.view(r.value, p("partners", r.value.id, pe)) : null), s = j(() => [o.value?.city, o.value?.country].filter(Boolean).join(", "));
586
- return (t, n) => r.value ? (z(), P("div", er, [L(E, { spec: a.value }, {
587
- before: W(() => [L(e), F("div", tr, [F("p", {
641
+ })), a = k(() => r.value ? y.view(r.value, p("partners", r.value.id, fe)) : null), o = k(() => [a.value?.city, a.value?.country].filter(Boolean).join(", "));
642
+ return (t, n) => r.value ? (L(), M("div", tr, [F(E, { spec: i.value }, {
643
+ before: H(() => [F(e), N("div", nr, [N("p", {
588
644
  class: "mwnf-dxa-gallery-objects__name",
589
- innerHTML: o.value.name
590
- }, null, 8, nr), s.value ? (z(), P("p", rr, H(s.value), 1)) : N("", !0)])]),
591
- actions: W(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (z(), M(i, {
645
+ innerHTML: a.value.name
646
+ }, null, 8, rr), o.value ? (L(), M("p", ir, B(o.value), 1)) : j("", !0)])]),
647
+ actions: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(s, {
592
648
  key: 0,
593
649
  class: "mwnf-dxa-pages",
594
650
  "page-info": e,
595
651
  jump: "",
596
652
  onNavigate: t
597
- }, null, 8, ["page-info", "onNavigate"])) : N("", !0)]),
598
- records: W(({ rows: e }) => [L(yn, { rows: e }, null, 8, ["rows"])]),
599
- pagination: W(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (z(), M(i, {
653
+ }, null, 8, ["page-info", "onNavigate"])) : j("", !0)]),
654
+ records: H(({ rows: e }) => [F(Q, { rows: e }, null, 8, ["rows"])]),
655
+ pagination: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(s, {
600
656
  key: 0,
601
657
  class: "mwnf-dxa-pages",
602
658
  "page-info": e,
603
659
  jump: "",
604
660
  onNavigate: t
605
- }, null, 8, ["page-info", "onNavigate"])) : (z(), P("div", ir))]),
606
- aside: W(() => [L(U(Z), {
661
+ }, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", ar))]),
662
+ aside: H(() => [F(V(Y), {
607
663
  class: "mwnf-dxa-gallery-objects__profile",
608
- to: U(ee)(r.value)
664
+ to: V(g)(r.value)
609
665
  }, {
610
- default: W(() => [n[0] ||= F("span", {
666
+ default: H(() => [n[0] ||= N("span", {
611
667
  class: "mwnf-dxa-gallery-objects__profile-arrow",
612
668
  "aria-hidden": "true"
613
- }, "➦", -1), I(H(t.$t("partner.action.partnerProfile")), 1)]),
669
+ }, "➦", -1), P(B(t.$t("partner.action.partnerProfile")), 1)]),
614
670
  _: 1
615
671
  }, 8, ["to"])]),
616
672
  _: 1
617
- }, 8, ["spec"])])) : N("", !0);
673
+ }, 8, ["spec"])])) : j("", !0);
618
674
  }
619
- }, or = {
675
+ }, sr = { class: "mwnf-dxa-exhibition-how-to" }, cr = {
620
676
  __name: "SearchHowTo",
621
- setup(e) {
622
- let t = {
623
- body: "catalogue.search.howToEssay",
624
- back: {
625
- label: "core.action.back",
626
- to: { name: "collection" }
627
- }
628
- };
629
- return (e, n) => (z(), M(nt, {
630
- spec: t,
631
- class: "mwnf-dxa-editorial"
632
- }));
677
+ setup(t) {
678
+ return (t, n) => (L(), M("div", sr, [F(e), F(V(W), {
679
+ class: "mwnf-dxa-exhibition-how-to__text",
680
+ dir: "auto",
681
+ keypath: "catalogue.search.howToEssay"
682
+ })]));
633
683
  }
634
- }, sr = { class: "mwnf-dxa-partners" }, cr = { class: "mwnf-dxa-partners-options" }, lr = {
684
+ }, lr = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners mwnf-dxa-exhibition-partners" }, ur = { class: "mwnf-dxa-gallery-partners__options" }, dr = { class: "mwnf-dxa-gallery-partners__order" }, fr = ["onClick"], pr = { class: "mwnf-dxa-gallery-partners__country" }, mr = { class: "mwnf-dxa-gallery-partners__partner" }, hr = { class: "mwnf-dxa-gallery-partners__text" }, gr = ["innerHTML"], _r = {
685
+ key: 0,
686
+ class: "mwnf-dxa-gallery-partners__city"
687
+ }, vr = { class: "mwnf-dxa-partner-badge__status" }, yr = { class: "mwnf-dxa-gallery-partners__links" }, br = { class: "mwnf-dxa-gallery-partners__logo" }, xr = ["src", "alt"], Sr = {
635
688
  __name: "Partners",
636
689
  setup(t) {
637
- let n = {
638
- ...Ce,
639
- objectsRoute: Se,
640
- actions: !0,
641
- emptyLabel: "exhibition.partner.noObjectsInExhibition"
690
+ let r = {
691
+ ...Ge,
692
+ objectsRoute: Ee,
693
+ orderToggle: !1,
694
+ tiebreak: (e) => e.own_project?.name ?? ""
695
+ }, i = {
696
+ partner: "exhibition.partners.statusPartner",
697
+ affiliate: "exhibition.partners.statusAffiliate"
642
698
  };
643
- return (t, r) => (z(), P("div", sr, [L(et, { spec: n }, {
644
- before: W(() => [F("div", cr, [L(e)]), L(U(G), {
699
+ function a(e) {
700
+ return e.type === "institution" ? {
701
+ name: "",
702
+ status: e.level === "partner" ? "exhibition.partners.institutionPartner" : "exhibition.partners.institutionAffiliate",
703
+ tone: "institution"
704
+ } : Z(e, i);
705
+ }
706
+ return (t, i) => (L(), M("div", lr, [F(Je, { spec: r }, {
707
+ before: H(({ t, orderDir: n, toggleOrder: r }) => [N("div", ur, [F(e), N("div", dr, [N("button", {
708
+ type: "button",
709
+ onClick: r
710
+ }, B(t(n === "asc" ? "partner.list.sortDescending" : "partner.list.sortAscending")), 9, fr)])]), F(V(W), {
645
711
  id: "mwnf-dxa-partners-intro",
646
- class: "mwnf-prose",
712
+ class: "mwnf-dxa-gallery-partners__intro",
647
713
  dir: "auto",
648
714
  keypath: "exhibition.partners.intro"
649
715
  })]),
716
+ "group-heading": H(({ group: e }) => [N("div", pr, B(e.label), 1)]),
717
+ row: H(({ partner: e, view: t, t: r }) => [N("div", mr, [N("div", hr, [
718
+ F(n, {
719
+ class: "mwnf-dxa-gallery-partners__name",
720
+ to: t.route
721
+ }, {
722
+ default: H(() => [N("span", { innerHTML: t.name }, null, 8, gr), t.city ? (L(), M("span", _r, ", " + B(t.city), 1)) : j("", !0)]),
723
+ _: 2
724
+ }, 1032, ["to"]),
725
+ a(e) ? (L(), M("div", {
726
+ key: 0,
727
+ class: I(["mwnf-dxa-partner-badge", a(e).tone && `mwnf-dxa-partner-badge--${a(e).tone}`])
728
+ }, [a(e).name ? (L(), M(O, { key: 0 }, [P(B(a(e).name + " "), 1)], 64)) : j("", !0), N("span", vr, B(r(a(e).status)), 1)], 2)) : j("", !0),
729
+ N("div", yr, [F(n, { to: t.route }, {
730
+ default: H(() => [P(B(r("partner.action.readMore")), 1)]),
731
+ _: 2
732
+ }, 1032, ["to"]), e.item_count > 0 && t.objectsRoute ? (L(), M(O, { key: 0 }, [i[0] ||= N("span", {
733
+ class: "mwnf-dxa-gallery-partners__divider",
734
+ "aria-hidden": "true"
735
+ }, "|", -1), F(n, { to: t.objectsRoute }, {
736
+ default: H(() => [P(B(r("exhibition.partners.viewItems")), 1)]),
737
+ _: 2
738
+ }, 1032, ["to"])], 64)) : j("", !0)])
739
+ ]), N("div", br, [t.logos?.[0] ? (L(), M("img", {
740
+ key: 0,
741
+ src: t.logos[0].url,
742
+ alt: t.plainName,
743
+ loading: "lazy"
744
+ }, null, 8, xr)) : j("", !0)])])]),
650
745
  _: 1
651
746
  })]));
652
747
  }
653
- }, ur = ["onSubmit"], dr = ["placeholder"], fr = {
748
+ }, Cr = {
749
+ key: 0,
750
+ class: "mwnf-dxa-exhibition-pages"
751
+ }, wr = ["disabled"], Tr = { key: 0 }, Er = ["disabled"], Dr = { key: 0 }, Or = { class: "mwnf-dxa-exhibition-pages__numbers" }, kr = [
752
+ "disabled",
753
+ "aria-current",
754
+ "onClick"
755
+ ], Ar = ["disabled"], jr = { key: 0 }, Mr = ["disabled"], Nr = { key: 0 }, $ = {
756
+ __name: "Pages",
757
+ props: { pageInfo: {
758
+ type: Object,
759
+ required: !0
760
+ } },
761
+ emits: ["navigate"],
762
+ setup(e, { emit: t }) {
763
+ let n = e, r = t, { t: i } = q(), a = (e) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(`(max-width: ${e}px)`).matches, o = a(499), [s, c, l] = a(599) ? [
764
+ 3,
765
+ 2,
766
+ 5
767
+ ] : a(724) ? [
768
+ 5,
769
+ 4,
770
+ 9
771
+ ] : a(849) ? [
772
+ 6,
773
+ 5,
774
+ 11
775
+ ] : [
776
+ 8,
777
+ 7,
778
+ 15
779
+ ], u = k(() => n.pageInfo?.currentPage ?? 1), d = k(() => n.pageInfo?.lastPage ?? 1), f = k(() => {
780
+ let e = 1, t = d.value;
781
+ if (d.value > l) {
782
+ let n = u.value;
783
+ n > s && (e = n - c), n + c < d.value ? t = e <= c && n <= c ? l : n + c : (e = d.value - (l - 1), t = d.value);
784
+ }
785
+ let n = [];
786
+ for (let r = e; r <= t; r++) n.push(r);
787
+ return n;
788
+ }), p = (e) => e < 1 || e > d.value || e === u.value;
789
+ function m(e) {
790
+ p(e) || r("navigate", e);
791
+ }
792
+ return (e, t) => d.value > 1 ? (L(), M("div", Cr, [
793
+ N("button", {
794
+ type: "button",
795
+ class: I(["mwnf-dxa-exhibition-pages__button", { "is-disabled": p(1) }]),
796
+ disabled: p(1),
797
+ onClick: t[0] ||= (e) => m(1)
798
+ }, [t[4] ||= P(" <<", -1), V(o) ? j("", !0) : (L(), M("span", Tr, B(" " + V(i)("exhibition.pages.first")), 1))], 10, wr),
799
+ N("button", {
800
+ type: "button",
801
+ class: I(["mwnf-dxa-exhibition-pages__button", { "is-disabled": p(u.value - 1) }]),
802
+ disabled: p(u.value - 1),
803
+ onClick: t[1] ||= (e) => m(u.value - 1)
804
+ }, [t[5] ||= P(" <", -1), V(o) ? j("", !0) : (L(), M("span", Dr, B(" " + V(i)("exhibition.pages.previous")), 1))], 10, Er),
805
+ N("div", Or, [(L(!0), M(O, null, z(f.value, (e) => (L(), M("button", {
806
+ key: e,
807
+ type: "button",
808
+ class: I(["mwnf-dxa-exhibition-pages__button", { "is-disabled": p(e) }]),
809
+ disabled: p(e),
810
+ "aria-current": e === u.value ? "page" : void 0,
811
+ onClick: (t) => m(e)
812
+ }, B(e), 11, kr))), 128))]),
813
+ N("button", {
814
+ type: "button",
815
+ class: I(["mwnf-dxa-exhibition-pages__button", { "is-disabled": p(u.value + 1) }]),
816
+ disabled: p(u.value + 1),
817
+ onClick: t[2] ||= (e) => m(u.value + 1)
818
+ }, [V(o) ? j("", !0) : (L(), M("span", jr, B(V(i)("exhibition.pages.next") + " "), 1)), t[6] ||= P("> ", -1)], 10, Ar),
819
+ N("button", {
820
+ type: "button",
821
+ class: I(["mwnf-dxa-exhibition-pages__button", { "is-disabled": p(d.value) }]),
822
+ disabled: p(d.value),
823
+ onClick: t[3] ||= (e) => m(d.value)
824
+ }, [V(o) ? j("", !0) : (L(), M("span", Nr, B(V(i)("exhibition.pages.last") + " "), 1)), t[7] ||= P(">> ", -1)], 10, Mr)
825
+ ])) : j("", !0);
826
+ }
827
+ }, Pr = { class: "mwnf-dxa-exhibition-search" }, Fr = { class: "mwnf-dxa-exhibition-search__header" }, Ir = { class: "mwnf-dxa-exhibition-search__info" }, Lr = { key: 0 }, Rr = { key: 1 }, zr = { class: "mwnf-dxa-exhibition-search__box" }, Br = ["placeholder", "aria-label"], Vr = { class: "mwnf-dxa-exhibition-search__buttons" }, Hr = {
654
828
  type: "submit",
655
- class: "mwnf-dxa-refine-search-submit"
656
- }, pr = { class: "mwnf-dxa-how-to" }, mr = { class: "mwnf-dxa-no-results" }, hr = {
829
+ class: "mwnf-dxa-exhibition-search__button"
830
+ }, Ur = { class: "mwnf-dxa-exhibition-search__tips" }, Wr = {
831
+ key: 0,
832
+ class: "mwnf-dxa-exhibition-search__results"
833
+ }, Gr = {
834
+ key: 0,
835
+ class: "mwnf-dxa-exhibition-search__main"
836
+ }, Kr = { class: "mwnf-dxa-exhibition-search__main-photo" }, qr = ["src", "alt"], Jr = { class: "mwnf-dxa-exhibition-search__main-text" }, Yr = ["innerHTML"], Xr = { class: "mwnf-dxa-exhibition-search__main-holder" }, Zr = { class: "mwnf-dxa-exhibition-search__list" }, Qr = [
837
+ "src",
838
+ "alt",
839
+ "onMouseover"
840
+ ], $r = { class: "mwnf-dxa-exhibition-search__result-text" }, ei = ["innerHTML", "onMouseover"], ti = {
841
+ key: 1,
842
+ class: "mwnf-dxa-exhibition-search__end"
843
+ }, ni = {
657
844
  __name: "SearchResults",
658
845
  setup(t) {
659
- let n = Ft("items", {
846
+ let { t: n } = q(), r = X(), i = It(), a = jt("items", {
660
847
  grammar: "boolean",
661
- haystack: Ne
662
- }), r = B(!1);
663
- Me().then(() => {
664
- r.value = !0;
848
+ haystack: Be
849
+ }), o = R(!1);
850
+ Ke().then(() => {
851
+ o.value = !0;
665
852
  });
666
- function i(e) {
667
- return !e || e === "all-objects";
668
- }
669
- let a = B(""), o = j(() => ({
853
+ let s = (e) => !e || e === "all-items" || e === "all-objects", c = (e) => e && e.length > 80 ? `${e.slice(0, 80)}...` : e ?? "", l = k(() => ({
670
854
  entity: "items",
671
855
  keys: ["q"],
672
- scope: (e) => w.value.has(e.id),
673
- sort: !1,
856
+ scope: (e) => Le.value.has(e.id),
674
857
  narrow: (e, t) => {
675
- if (!r.value) return [];
676
- if (i(t.q)) return e;
677
- let a = new Set(e.map((e) => e.id));
678
- return n.search(t.q).filter((e) => a.has(e.id));
858
+ if (!o.value) return [];
859
+ if (s(t.q)) return e;
860
+ let n = new Set(e.map((e) => e.id));
861
+ return a.search(t.q).filter((e) => n.has(e.id));
679
862
  },
680
- pageSize: Be,
681
- variant: "grid",
682
- recordRoute: "item",
683
- actionLabel: "catalogue.results.seeDatabaseEntry",
684
- record: (e, { t }) => Ve(e, t),
685
- pagination: { jump: !0 },
686
- summary: ({ filters: e, pageInfo: t, t: n }) => [{
687
- label: n("core.section.database"),
688
- value: i(e.q) ? n("catalogue.results.allObjects") : `“${e.q}”`
689
- }, {
690
- count: t.total,
691
- value: `${n("catalogue.results.outOf")} ${w.value.size} ${n("catalogue.results.objects")}`
692
- }]
693
- }));
694
- return (t, n) => (z(), M(E, {
695
- spec: o.value,
696
- class: "mwnf-dxa-search-results"
863
+ ...qe,
864
+ sort: s(r.query.q) ? qe.sort : !1,
865
+ summary: () => [],
866
+ record: (e) => {
867
+ let t = w("items", e.id, He);
868
+ return {
869
+ id: e.id,
870
+ image: e.images?.[0]?.url ?? "",
871
+ imageAlt: T("items", e.id),
872
+ name: K(t.name ?? e.internal_name ?? ""),
873
+ date: c(t.dates),
874
+ partner: T("partners", e.partner_id),
875
+ place: [t.location, T("countries", e.country_id)].filter(Boolean).join(", "),
876
+ start: e.start_date ?? 0,
877
+ to: Me(e)
878
+ };
879
+ }
880
+ })), u = (e) => [...e].sort((e, t) => e.start - t.start), d = R("");
881
+ yt(() => r.query.q, (e) => {
882
+ d.value = s(e) ? "" : String(e ?? "");
883
+ }, { immediate: !0 });
884
+ function f() {
885
+ i.push({
886
+ name: "search-results",
887
+ query: { q: d.value || "all-items" }
888
+ });
889
+ }
890
+ function p() {
891
+ i.push({
892
+ name: "search-results",
893
+ query: { q: "all-items" }
894
+ });
895
+ }
896
+ let m = R(null), h = typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(max-width: 974px)") : null, g = R(!!h?.matches);
897
+ h?.addEventListener("change", (e) => {
898
+ g.value = e.matches;
899
+ });
900
+ function _(e) {
901
+ return e.find((e) => e.id === m.value) ?? e[0];
902
+ }
903
+ return yt(() => r.fullPath, () => {
904
+ m.value = null;
905
+ }), (t, r) => (L(), M("div", Pr, [F(E, {
906
+ spec: l.value,
907
+ class: "mwnf-dxa-exhibition-search__view"
697
908
  }, {
698
- before: W(() => [L(e)]),
699
- filters: W(({ apply: e }) => [F("form", {
700
- class: "mwnf-dxa-refine-search",
701
- onSubmit: wt((t) => e({ q: a.value || "all-objects" }), ["prevent"])
702
- }, [Ct(F("input", {
703
- "onUpdate:modelValue": n[0] ||= (e) => a.value = e,
704
- type: "text",
705
- class: "mwnf-dxa-refine-search-input",
706
- placeholder: t.$t("catalogue.search.keywordPlaceholder")
707
- }, null, 8, dr), [[xt, a.value]]), F("button", fr, H(t.$t("catalogue.search.submit")), 1)], 40, ur), F("p", pr, [L(U(Z), { to: { name: "search-how-to" } }, {
708
- default: W(() => [I(H(t.$t("catalogue.search.howTo")) + " ›", 1)]),
709
- _: 1
710
- })])]),
711
- empty: W(() => [F("p", mr, [
712
- I(H(t.$t("catalogue.results.noResultsSearch")) + " ", 1),
713
- L(U(Z), { to: { name: "search-how-to" } }, {
714
- default: W(() => [I(H(t.$t("catalogue.search.howTo")), 1)]),
715
- _: 1
716
- }),
717
- n[1] ||= F("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
718
- L(U(Z), { to: { name: "collection" } }, {
719
- default: W(() => [I(H(t.$t("core.section.collection")), 1)]),
909
+ before: H(({ pageInfo: t, goToPage: i }) => [
910
+ F(e),
911
+ N("div", Fr, [N("div", Ir, [t.total ? (L(), M("p", Lr, B(V(n)("exhibition.search.heading")) + " | " + B(t.total) + " " + B(V(n)("exhibition.search.recordsOutOf")) + " " + B(V(Le).size) + " " + B(V(n)("exhibition.collection.items")), 1)) : (L(), M("p", Rr, [P(B(V(n)("exhibition.search.heading")) + " | ", 1), N("span", null, B(V(n)("exhibition.search.none")), 1)]))]), N("div", zr, [N("form", { onSubmit: r[2] ||= xt((e) => f(), ["prevent"]) }, [U(N("input", {
912
+ "onUpdate:modelValue": r[0] ||= (e) => d.value = e,
913
+ class: "mwnf-dxa-exhibition-search__input",
914
+ type: "search",
915
+ placeholder: V(n)("exhibition.search.placeholder"),
916
+ "aria-label": V(n)("exhibition.search.placeholder")
917
+ }, null, 8, Br), [[_t, d.value]]), N("div", Vr, [N("button", Hr, B(V(n)("exhibition.search.submit")), 1), N("button", {
918
+ type: "button",
919
+ class: "mwnf-dxa-exhibition-search__button",
920
+ onClick: r[1] ||= (e) => p()
921
+ }, B(V(n)("exhibition.search.reset")), 1)])], 32), N("div", Ur, [F(V(Y), { to: { name: "search-how-to" } }, {
922
+ default: H(() => [P(B(V(n)("exhibition.search.tips")), 1)]),
720
923
  _: 1
721
- })
722
- ])]),
924
+ })])])]),
925
+ F($, {
926
+ class: "mwnf-dxa-exhibition-pages--top",
927
+ "page-info": t,
928
+ onNavigate: i
929
+ }, null, 8, ["page-info", "onNavigate"])
930
+ ]),
931
+ records: H(({ rows: e }) => [e.length ? (L(), M("div", Wr, [g.value ? j("", !0) : (L(), M("div", Gr, [N("div", Kr, [N("img", {
932
+ src: _(u(e)).image,
933
+ alt: _(u(e)).imageAlt
934
+ }, null, 8, qr)]), N("div", Jr, [
935
+ N("p", null, [N("strong", { innerHTML: _(u(e)).name }, null, 8, Yr)]),
936
+ N("p", null, B(_(u(e)).date), 1),
937
+ N("p", Xr, [N("strong", null, B(_(u(e)).partner), 1)]),
938
+ N("p", null, B(_(u(e)).place), 1)
939
+ ])])), N("div", Zr, [(L(!0), M(O, null, z(u(e), (e) => (L(), M("div", {
940
+ key: e.id,
941
+ class: "mwnf-dxa-exhibition-search__result"
942
+ }, [F(V(Y), {
943
+ to: e.to,
944
+ class: "mwnf-dxa-exhibition-search__result-image"
945
+ }, {
946
+ default: H(() => [N("img", {
947
+ src: e.image,
948
+ alt: e.imageAlt,
949
+ loading: "lazy",
950
+ onMouseover: (t) => m.value = e.id
951
+ }, null, 40, Qr)]),
952
+ _: 2
953
+ }, 1032, ["to"]), N("div", $r, [F(V(Y), { to: e.to }, {
954
+ default: H(() => [N("strong", {
955
+ innerHTML: e.name,
956
+ onMouseover: (t) => m.value = e.id
957
+ }, null, 40, ei), N("span", null, ", " + B(e.place), 1)]),
958
+ _: 2
959
+ }, 1032, ["to"]), N("p", null, [N("em", null, B(e.date), 1)])])]))), 128))])])) : (L(), A(V(W), {
960
+ key: 1,
961
+ class: "mwnf-dxa-exhibition-search__none",
962
+ keypath: "exhibition.search.noResults"
963
+ }))]),
964
+ pagination: H(() => [...r[3] ||= []]),
965
+ after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A($, {
966
+ key: 0,
967
+ "page-info": e,
968
+ onNavigate: t
969
+ }, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", ti))]),
723
970
  _: 1
724
- }, 8, ["spec"]));
971
+ }, 8, ["spec"])]));
725
972
  }
726
- }, gr = {
973
+ }, ri = { class: "mwnf-dxa-exhibition-timeline-results" }, ii = { class: "mwnf-dxa-exhibition-timeline-results__band" }, ai = { class: "mwnf-dxa-exhibition-timeline-results__current" }, oi = { key: 0 }, si = { class: "mwnf-dxa-exhibition-timeline-results__fields" }, ci = ["aria-label"], li = {
974
+ disabled: "",
975
+ value: ""
976
+ }, ui = ["value"], di = ["aria-label"], fi = {
977
+ disabled: "",
978
+ value: ""
979
+ }, pi = ["value"], mi = ["aria-label"], hi = {
980
+ disabled: "",
981
+ value: ""
982
+ }, gi = ["value"], _i = ["onClick"], vi = ["onClick"], yi = { class: "mwnf-dxa-exhibition-timeline-results__body" }, bi = {
983
+ key: 0,
984
+ class: "mwnf-dxa-exhibition-timeline-results__list"
985
+ }, xi = { class: "mwnf-dxa-exhibition-timeline-results__labels" }, Si = { class: "mwnf-dxa-exhibition-timeline-results__year" }, Ci = { class: "mwnf-dxa-exhibition-timeline-results__text" }, wi = ["innerHTML"], Ti = ["innerHTML"], Ei = {
986
+ key: 1,
987
+ class: "mwnf-dxa-exhibition-timeline-results__none"
988
+ }, Di = {
989
+ key: 2,
990
+ class: "mwnf-dxa-exhibition-timeline-results__related"
991
+ }, Oi = { class: "mwnf-dxa-exhibition-timeline-results__related-header" }, ki = {
992
+ key: 1,
993
+ class: "mwnf-dxa-exhibition-timeline-results__end"
994
+ }, Ai = {
727
995
  __name: "TimelineResults",
728
996
  setup(t) {
729
- return (t, n) => (z(), M(D, {
730
- spec: U(Oe),
997
+ let n = {
998
+ "catalogue.era.ad": "exhibition.era.ad",
999
+ "catalogue.era.bc": "exhibition.era.bc"
1000
+ }, r = ({ years: e, t }) => Ft(e.min, e.max, Pt(t, n)), i = k(() => ({
1001
+ ...S.value,
1002
+ pageSize: 20,
1003
+ controls: S.value.controls.map((e) => e.options ? {
1004
+ ...e,
1005
+ options: r
1006
+ } : e)
1007
+ })), a = k(() => S.value.scope === "country"), o = X(), s = ft({
1008
+ country: "",
1009
+ begin: "",
1010
+ end: ""
1011
+ });
1012
+ yt(() => o.query, (e) => {
1013
+ s.country = String(e.country ?? ""), s.begin = String(e.begin ?? ""), s.end = String(e.end ?? "");
1014
+ }, { immediate: !0 });
1015
+ let c = (e, t) => (e ?? []).find((e) => String(e.value) === String(t))?.label ?? t;
1016
+ function l(e, t) {
1017
+ let n = e?.year_from;
1018
+ return Number.isFinite(n) ? `${n} ${t(n < 0 ? "exhibition.era.bc" : "exhibition.era.ad")}` : "";
1019
+ }
1020
+ return (t, n) => (L(), M("div", ri, [F(Ye, {
1021
+ spec: i.value,
731
1022
  class: "mwnf-dxa-timeline-results"
732
1023
  }, {
733
- before: W(() => [L(e)]),
1024
+ form: H((e) => [N("div", ii, [N("p", ai, [
1025
+ P(B(e.t("exhibition.timeline.heading")) + " | " + B(c(e.options.begin, e.filters.begin)) + " " + B(e.t("exhibition.timeline.to")) + " " + B(c(e.options.end, e.filters.end)) + " | ", 1),
1026
+ a.value && e.filters.country ? (L(), M("span", oi, B(c(e.countries, e.filters.country)) + " | ", 1)) : j("", !0),
1027
+ N("span", null, B(e.pageInfo?.total ?? 0) + " " + B(e.t("exhibition.timeline.results")), 1)
1028
+ ]), N("div", si, [
1029
+ N("span", null, B(e.t("exhibition.collection.startDate")), 1),
1030
+ U(N("select", {
1031
+ "onUpdate:modelValue": n[0] ||= (e) => s.begin = e,
1032
+ "aria-label": e.t("exhibition.collection.startDate")
1033
+ }, [N("option", li, B(e.t("exhibition.collection.startDate")), 1), (L(!0), M(O, null, z(e.options.begin ?? [], (e) => (L(), M("option", {
1034
+ key: e.value,
1035
+ value: String(e.value)
1036
+ }, B(e.label), 9, ui))), 128))], 8, ci), [[gt, s.begin]]),
1037
+ N("span", null, B(e.t("exhibition.collection.endDate")), 1),
1038
+ U(N("select", {
1039
+ "onUpdate:modelValue": n[1] ||= (e) => s.end = e,
1040
+ "aria-label": e.t("exhibition.collection.endDate")
1041
+ }, [N("option", fi, B(e.t("exhibition.collection.endDate")), 1), (L(!0), M(O, null, z(e.options.end ?? [], (e) => (L(), M("option", {
1042
+ key: e.value,
1043
+ value: String(e.value)
1044
+ }, B(e.label), 9, pi))), 128))], 8, di), [[gt, s.end]]),
1045
+ a.value ? (L(), M(O, { key: 0 }, [N("span", null, B(e.t("exhibition.timeline.country")), 1), U(N("select", {
1046
+ "onUpdate:modelValue": n[2] ||= (e) => s.country = e,
1047
+ "aria-label": e.t("exhibition.timeline.selectCountry")
1048
+ }, [N("option", hi, B(e.t("exhibition.timeline.selectCountry")), 1), (L(!0), M(O, null, z(e.countries, (e) => (L(), M("option", {
1049
+ key: e.value,
1050
+ value: e.value
1051
+ }, B(e.label), 9, gi))), 128))], 8, mi), [[gt, s.country]])], 64)) : j("", !0),
1052
+ N("button", {
1053
+ type: "button",
1054
+ onClick: (t) => e.apply({ ...s })
1055
+ }, B(e.t("core.action.go")), 9, _i),
1056
+ N("button", {
1057
+ type: "button",
1058
+ onClick: (t) => e.reset()
1059
+ }, B(e.t("exhibition.search.reset")), 9, vi)
1060
+ ])])]),
1061
+ summary: H(({ pageInfo: t, goToPage: n }) => [F(e), F($, {
1062
+ class: "mwnf-dxa-exhibition-timeline-results__pages",
1063
+ "page-info": t,
1064
+ onNavigate: n
1065
+ }, null, 8, ["page-info", "onNavigate"])]),
1066
+ gallery: H(() => [...n[3] ||= []]),
1067
+ event: H(({ pageInfo: e, rows: t, gallery: r, t: i }) => [N("div", yi, [t.length ? (L(), M("div", bi, [N("div", xi, [N("div", null, B(i("exhibition.timeline.date")), 1), N("div", null, B(i(a.value && s.country ? "exhibition.timeline.countryDescription" : "exhibition.timeline.description")), 1)]), (L(!0), M(O, null, z(t, (t, n) => (L(), M("div", {
1068
+ key: t.id,
1069
+ class: "mwnf-dxa-exhibition-timeline-results__event"
1070
+ }, [N("div", Si, [N("span", null, B(l(e.rows[n], i)), 1)]), N("div", Ci, [a.value && s.country && t.caption ? (L(), M("div", {
1071
+ key: 0,
1072
+ class: "mwnf-dxa-exhibition-timeline-results__country",
1073
+ innerHTML: t.caption
1074
+ }, null, 8, wi)) : j("", !0), N("div", {
1075
+ class: "mwnf-dxa-exhibition-timeline-results__description",
1076
+ innerHTML: t.description
1077
+ }, null, 8, Ti)])]))), 128))])) : (L(), M("div", Ei, B(i("exhibition.timeline.noResults")), 1)), t.length && r ? (L(), M("div", Di, [N("p", Oi, B(i("exhibition.timeline.relatedContent")), 1), N("p", null, [
1078
+ n[4] ||= N("span", { "aria-hidden": "true" }, "➦", -1),
1079
+ n[5] ||= P(),
1080
+ F(V(Y), { to: r.to }, {
1081
+ default: H(() => [P(B(i("exhibition.timeline.seeGallery")), 1)]),
1082
+ _: 2
1083
+ }, 1032, ["to"])
1084
+ ])])) : j("", !0)])]),
1085
+ pagination: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A($, {
1086
+ key: 0,
1087
+ "page-info": e,
1088
+ onNavigate: t
1089
+ }, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", ki))]),
734
1090
  _: 1
735
- }, 8, ["spec"]));
1091
+ }, 8, ["spec"])]));
736
1092
  }
737
- }, _r = {
1093
+ }, ji = { class: "mwnf-dxa-exhibition-partner-objects mwnf-dxa-exhibition-timeline-gallery" }, Mi = { class: "mwnf-dxa-exhibition-partner-objects__header" }, Ni = { class: "mwnf-dxa-exhibition-partner-objects__content" }, Pi = { class: "mwnf-dxa-exhibition-partner-objects__grid" }, Fi = { class: "mwnf-dxa-exhibition-partner-objects__profile" }, Ii = {
1094
+ key: 1,
1095
+ class: "mwnf-dxa-exhibition-partner-objects__end"
1096
+ }, Li = {
738
1097
  __name: "TimelineGallery",
739
1098
  setup(t) {
740
- return (t, n) => (z(), M(E, {
741
- spec: U(De),
742
- class: "mwnf-dxa-timeline-gallery"
1099
+ let { t: n } = q(), r = {
1100
+ "catalogue.era.ad": "exhibition.era.ad",
1101
+ "catalogue.era.bc": "exhibition.era.bc"
1102
+ }, i = k(() => ({
1103
+ ...Fe,
1104
+ ...qe,
1105
+ summary: () => [],
1106
+ record: ke
1107
+ }));
1108
+ function a(e) {
1109
+ let t = Number(e);
1110
+ if (e === "" || e == null || !Number.isFinite(t)) return "";
1111
+ let i = Ft(t, t, Pt(n, r));
1112
+ return i.find((e) => Number(e.value) === t)?.label ?? i[0]?.label ?? String(e);
1113
+ }
1114
+ let o = k(() => S.value.scope === "country");
1115
+ return (t, r) => (L(), M("div", ji, [F(E, {
1116
+ spec: i.value,
1117
+ class: "mwnf-dxa-partner-objects"
743
1118
  }, {
744
- before: W(() => [L(e)]),
1119
+ before: H(({ filters: t, pageInfo: r, goToPage: i }) => [
1120
+ F(e),
1121
+ N("div", Mi, [N("p", null, [
1122
+ P(B(V(n)("exhibition.timeline.heading")) + " | " + B(a(t.begin)) + " " + B(V(n)("exhibition.timeline.to")) + " " + B(a(t.end)) + " | ", 1),
1123
+ o.value && t.country ? (L(), M(O, { key: 0 }, [P(B(V(ze)(t.country)) + " | ", 1)], 64)) : j("", !0),
1124
+ P(B(V(n)("exhibition.timeline.gallery")), 1)
1125
+ ])]),
1126
+ F($, {
1127
+ class: "mwnf-dxa-exhibition-pages--top",
1128
+ "page-info": r,
1129
+ onNavigate: i
1130
+ }, null, 8, ["page-info", "onNavigate"])
1131
+ ]),
1132
+ records: H(({ rows: e, filters: t }) => [N("div", Ni, [N("div", Pi, [e.length ? (L(), A(Q, {
1133
+ key: 0,
1134
+ rows: e,
1135
+ family: "exhibition"
1136
+ }, null, 8, ["rows"])) : j("", !0)]), N("div", Fi, [F(V(Y), { to: {
1137
+ name: "timeline-results",
1138
+ query: {
1139
+ ...t.country ? { country: t.country } : {},
1140
+ begin: t.begin,
1141
+ end: t.end
1142
+ }
1143
+ } }, {
1144
+ default: H(() => [r[0] ||= N("span", { "aria-hidden": "true" }, "➦", -1), P(" " + B(V(n)("exhibition.timeline.seeTimeline")), 1)]),
1145
+ _: 1
1146
+ }, 8, ["to"])])])]),
1147
+ pagination: H(() => [...r[1] ||= []]),
1148
+ after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A($, {
1149
+ key: 0,
1150
+ "page-info": e,
1151
+ onNavigate: t
1152
+ }, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", Ii))]),
745
1153
  _: 1
746
- }, 8, ["spec"]));
1154
+ }, 8, ["spec"])]));
747
1155
  }
748
- }, vr = { class: "mwnf-dxa-date-wrapper" }, yr = {
749
- key: 0,
750
- class: "mwnf-dxa-timeline-link-box"
751
- }, br = { class: "mwnf-dxa-options-label" }, xr = {
1156
+ }, { aboutTheme: Ri, listedThemes: zi, pictureById: Bi, pictureParent: Vi, romanFor: Hi, themeText: Ui, themeTree: Wi } = we;
1157
+ function Gi(e) {
1158
+ return String(e?.backward_compatibility ?? "").split(":").pop();
1159
+ }
1160
+ function Ki(e) {
1161
+ let t = (t) => Ui(t, e.value).title ?? t?.internal_name ?? "", n = k(() => [...Ri.value ? [{
1162
+ value: Gi(Ri.value),
1163
+ label: t(Ri.value),
1164
+ node: Ri.value
1165
+ }] : [], ...zi.value.map((e) => ({
1166
+ value: Gi(e),
1167
+ label: `${Hi(e.display_order)}. ${t(e)}`,
1168
+ node: e
1169
+ }))]), r = (e) => n.value.find((t) => t.value === String(e))?.node ?? null;
1170
+ function i(e) {
1171
+ return (r(e)?.sub_themes ?? []).map((e, n) => ({
1172
+ value: Gi(e),
1173
+ label: `${n + 1}. ${t(e)}`,
1174
+ node: e
1175
+ }));
1176
+ }
1177
+ function a(e) {
1178
+ let t = /* @__PURE__ */ new Set();
1179
+ if (!e) return t;
1180
+ for (let n of Wi.itemsUnder(e.id)) {
1181
+ let e = Vi(Bi.value.get(n));
1182
+ e && t.add(e.id);
1183
+ }
1184
+ return t;
1185
+ }
1186
+ function o(e, t) {
1187
+ let n = r(e);
1188
+ return n ? a((t ? i(e).find((e) => e.value === String(t))?.node : null) ?? n) : null;
1189
+ }
1190
+ return {
1191
+ themeOptions: n,
1192
+ subThemeOptions: i,
1193
+ scopeFor: o,
1194
+ title: t
1195
+ };
1196
+ }
1197
+ // src/dxa/exhibition/CollectionResults.vue
1198
+ var qi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Ji = { class: "mwnf-dxa-gallery-results__info" }, Yi = { class: "mwnf-dxa-gallery-results__choices" }, Xi = {
1199
+ key: 1,
1200
+ class: "mwnf-dxa-gallery-results__end"
1201
+ }, Zi = ["aria-label", "aria-expanded"], Qi = ["viewBox"], $i = ["d"], ea = { class: "mwnf-dxa-exhibition-results__refine" }, ta = ["aria-label"], na = ["viewBox"], ra = ["d"], ia = {
1202
+ key: 1,
1203
+ class: "mwnf-dxa-exhibition-results__themes"
1204
+ }, aa = { class: "mwnf-dxa-options-label" }, oa = { class: "mwnf-dxa-exhibition-results__theme-selects" }, sa = [
1205
+ "aria-label",
1206
+ "value",
1207
+ "disabled",
1208
+ "onChange"
1209
+ ], ca = {
1210
+ disabled: "",
1211
+ value: ""
1212
+ }, la = { value: "all" }, ua = ["value"], da = [
1213
+ "aria-label",
1214
+ "value",
1215
+ "disabled",
1216
+ "onChange"
1217
+ ], fa = {
1218
+ disabled: "",
1219
+ value: ""
1220
+ }, pa = ["value"], ma = [
1221
+ "aria-label",
1222
+ "disabled",
1223
+ "onChange"
1224
+ ], ha = {
1225
+ disabled: "",
1226
+ value: ""
1227
+ }, ga = { value: "all" }, _a = ["value"], va = { class: "mwnf-dxa-date-wrapper" }, ya = {
752
1228
  __name: "CollectionResults",
753
- setup(r) {
754
- let a = zt(), { t: o } = J(), s = Te(), c = Je.keys, l = (e) => c.filter((t) => e[t]).length <= 1;
755
- function u() {
756
- a.push({ name: "collection" });
1229
+ setup(t) {
1230
+ let { t: n, locale: r } = q(), { themeOptions: o, subThemeOptions: s, scopeFor: c } = Ki(r), l = {
1231
+ viewBox: "0 0 512 512",
1232
+ path: "M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"
1233
+ }, u = {
1234
+ viewBox: "0 0 384 512",
1235
+ path: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"
1236
+ }, d = typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(max-width: 499px)") : null, f = R(!!d?.matches), p = (e) => {
1237
+ f.value = e.matches;
1238
+ };
1239
+ d?.addEventListener("change", p), ut(() => d?.removeEventListener("change", p));
1240
+ let m = R(!1), h = X();
1241
+ yt(() => h.fullPath, () => {
1242
+ m.value = !1;
1243
+ });
1244
+ let g = {
1245
+ type: "exhibition.collection.typeOfObject",
1246
+ material: "exhibition.collection.material"
1247
+ }, _ = ["type", "material"], v = {
1248
+ "catalogue.era.ad": "exhibition.era.ad",
1249
+ "catalogue.era.bc": "exhibition.era.bc"
1250
+ }, y = (e) => n(v[e] ?? e), ee = k(() => J(De.value ?? [], y)), te = k(() => Le.value.size), b = {
1251
+ ...Pe,
1252
+ ...qe,
1253
+ keys: [
1254
+ ...Pe.keys,
1255
+ "theme",
1256
+ "subtheme"
1257
+ ],
1258
+ match: (e, t) => {
1259
+ let n = c(t.theme, t.subtheme);
1260
+ return !n || n.has(e.id);
1261
+ },
1262
+ summary: () => [],
1263
+ record: ke
1264
+ }, x = (e) => b.keys.every((t) => !e[t]);
1265
+ function ne(e) {
1266
+ let t = o.value.find((t) => t.value === String(e.theme))?.label ?? e.theme, n = e.subtheme ? s(e.theme).find((t) => t.value === String(e.subtheme))?.label : "";
1267
+ return n ? `${t} ▪ ${n}` : t;
757
1268
  }
758
- let d = j(() => new Set((Ae.value ?? []).map((e) => e.country_id)));
759
- function f(e) {
760
- if (!Re.value) return !1;
761
- let t = Ue(e.country);
762
- return !!(t && d.value.has(t));
1269
+ function re(e, t, r) {
1270
+ let i = (n) => (t[n] ?? []).find((t) => String(t.value) === String(e[n]))?.label ?? e[n], a = (e) => ee.value.find((t) => String(t.value) === String(e))?.label ?? e, o = [];
1271
+ e.theme && o.push(ne(e)), e.country && o.push(i("country"));
1272
+ for (let t of _) e[t] && o.push(i(t));
1273
+ return e.from && o.push(`${n("exhibition.collection.start")} ${a(e.from)}`), e.to && o.push(`${n("exhibition.collection.end")} ${a(e.to)}`), o.length ? o.join(" & ") : r.length ? n("exhibition.collection.allItems") : n("exhibition.collection.none");
1274
+ }
1275
+ function ie(e, t, n) {
1276
+ if (n === "all") return t();
1277
+ e({
1278
+ ...Object.fromEntries(b.keys.map((e) => [e, ""])),
1279
+ theme: n
1280
+ });
1281
+ }
1282
+ function ae(e, t, n) {
1283
+ e({
1284
+ ...Object.fromEntries(b.keys.map((e) => [e, ""])),
1285
+ theme: t.theme,
1286
+ subtheme: n
1287
+ });
763
1288
  }
764
- return (r, a) => (z(), M(E, {
765
- spec: U(Je),
1289
+ return (t, r) => (L(), M("div", qi, [F(E, {
1290
+ spec: b,
766
1291
  class: "mwnf-dxa-collection-results"
767
1292
  }, {
768
- before: W(() => [L(e)]),
769
- actions: W(({ pageInfo: e, goToPage: t }) => [L(i, {
770
- class: "mwnf-dxa-pages",
1293
+ before: H(({ filters: r, options: i, matching: a, pageInfo: o }) => [
1294
+ F(e),
1295
+ N("div", Ji, [N("p", null, [P(B(V(n)("exhibition.collection.heading")) + " | ", 1), N("span", Yi, B(re(r, i, a)), 1)]), N("p", null, B(o.total) + " " + B(V(n)("exhibition.collection.resultsOutOf")) + " " + B(te.value) + " " + B(V(n)("exhibition.collection.items")), 1)]),
1296
+ F($, {
1297
+ class: "mwnf-dxa-exhibition-pages--top",
1298
+ "page-info": o,
1299
+ onNavigate: t.goToPage
1300
+ }, null, 8, ["page-info", "onNavigate"])
1301
+ ]),
1302
+ records: H(({ rows: e }) => [e.length ? (L(), A(Q, {
1303
+ key: 0,
1304
+ rows: e,
1305
+ family: "exhibition"
1306
+ }, null, 8, ["rows"])) : (L(), A(V(W), {
1307
+ key: 1,
1308
+ class: "mwnf-dxa-gallery-results__none",
1309
+ keypath: "exhibition.collection.noResults"
1310
+ }))]),
1311
+ pagination: H(() => [...r[2] ||= []]),
1312
+ after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A($, {
1313
+ key: 0,
771
1314
  "page-info": e,
772
- jump: "",
773
1315
  onNavigate: t
774
- }, null, 8, ["page-info", "onNavigate"])]),
775
- empty: W(() => [I(H(r.$t("catalogue.results.noResults")) + " ", 1), F("button", {
776
- class: "mwnf-dxa-linkish",
777
- onClick: a[0] ||= (e) => u()
778
- }, H(r.$t("catalogue.results.resetFilters")), 1)]),
779
- aside: W(({ filters: e, apply: i, matching: c, options: d }) => [L(n, {
780
- mode: "immediate",
781
- title: l(e) ? r.$t("catalogue.facet.filterBy") : r.$t("catalogue.facet.filterFurtherBy"),
782
- "reset-label": r.$t("catalogue.results.resetFilters"),
783
- disabled: c.length === 0,
784
- onReset: a[1] ||= (e) => u()
785
- }, {
786
- default: W(() => [
787
- L(t, {
788
- "model-value": e.country,
789
- options: d.country,
790
- placeholder: r.$t("catalogue.facet.selectCountry"),
791
- "onUpdate:modelValue": (e) => i({ country: e })
792
- }, null, 8, [
793
- "model-value",
794
- "options",
795
- "placeholder",
796
- "onUpdate:modelValue"
1316
+ }, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", Xi))]),
1317
+ aside: H(({ filters: e, apply: t, reset: c, matching: d, options: p }) => [f.value ? (L(), M("button", {
1318
+ key: 0,
1319
+ type: "button",
1320
+ class: "mwnf-dxa-exhibition-results__open",
1321
+ "aria-label": V(n)("exhibition.collection.filterBy"),
1322
+ "aria-expanded": m.value,
1323
+ onClick: r[0] ||= (e) => m.value = !0
1324
+ }, [(L(), M("svg", {
1325
+ viewBox: l.viewBox,
1326
+ "aria-hidden": "true",
1327
+ focusable: "false"
1328
+ }, [N("path", { d: l.path }, null, 8, $i)], 8, Qi))], 8, Zi)) : j("", !0), U(N("div", ea, [
1329
+ f.value && m.value ? (L(), M("button", {
1330
+ key: 0,
1331
+ type: "button",
1332
+ class: "mwnf-dxa-exhibition-results__close",
1333
+ "aria-label": V(n)("core.action.close"),
1334
+ onClick: r[1] ||= (e) => m.value = !1
1335
+ }, [(L(), M("svg", {
1336
+ viewBox: u.viewBox,
1337
+ "aria-hidden": "true",
1338
+ focusable: "false"
1339
+ }, [N("path", { d: u.path }, null, 8, ra)], 8, na))], 8, ta)) : j("", !0),
1340
+ x(e) ? j("", !0) : (L(), M("div", ia, [N("div", aa, B(V(n)("exhibition.collection.filterByTheme")), 1), N("div", oa, [N("select", {
1341
+ class: "mwnf-facet__select",
1342
+ "aria-label": V(n)("exhibition.collection.selectTheme"),
1343
+ value: e.theme || "",
1344
+ disabled: !d.length,
1345
+ onChange: (e) => ie(t, c, e.target.value)
1346
+ }, [
1347
+ N("option", ca, B(V(n)("exhibition.collection.selectTheme")), 1),
1348
+ N("option", la, B(V(n)("exhibition.collection.allThemes")), 1),
1349
+ (L(!0), M(O, null, z(V(o), (e) => (L(), M("option", {
1350
+ key: e.value,
1351
+ value: e.value
1352
+ }, B(e.label), 9, ua))), 128))
1353
+ ], 40, sa), e.theme && V(s)(e.theme).length ? (L(), M("select", {
1354
+ key: 0,
1355
+ class: "mwnf-facet__select",
1356
+ "aria-label": V(n)("exhibition.themeGallery.select"),
1357
+ value: e.subtheme || "",
1358
+ disabled: !d.length,
1359
+ onChange: (n) => ae(t, e, n.target.value)
1360
+ }, [N("option", fa, B(V(n)("exhibition.themeGallery.select")), 1), (L(!0), M(O, null, z(V(s)(e.theme), (e) => (L(), M("option", {
1361
+ key: e.value,
1362
+ value: e.value
1363
+ }, B(e.label), 9, pa))), 128))], 40, da)) : j("", !0)])])),
1364
+ F(a, {
1365
+ mode: "immediate",
1366
+ title: x(e) ? V(n)("exhibition.collection.filterBy") : V(n)("exhibition.collection.filterFurtherBy"),
1367
+ "reset-label": V(n)("exhibition.collection.resetFilters"),
1368
+ disabled: d.length === 0,
1369
+ onReset: (e) => c()
1370
+ }, {
1371
+ default: H(() => [
1372
+ x(e) ? (L(), M("select", {
1373
+ key: 0,
1374
+ class: "mwnf-facet__select",
1375
+ "aria-label": V(n)("exhibition.collection.selectTheme"),
1376
+ value: "",
1377
+ disabled: !d.length,
1378
+ onChange: (e) => ie(t, c, e.target.value)
1379
+ }, [
1380
+ N("option", ha, B(V(n)("exhibition.collection.selectTheme")), 1),
1381
+ N("option", ga, B(V(n)("exhibition.collection.allThemes")), 1),
1382
+ (L(!0), M(O, null, z(V(o), (e) => (L(), M("option", {
1383
+ key: e.value,
1384
+ value: e.value
1385
+ }, B(e.label), 9, _a))), 128))
1386
+ ], 40, ma)) : j("", !0),
1387
+ F(i, {
1388
+ "model-value": e.country,
1389
+ options: p.country,
1390
+ placeholder: V(n)("exhibition.collection.selectCountry"),
1391
+ "onUpdate:modelValue": (e) => t({ country: e })
1392
+ }, null, 8, [
1393
+ "model-value",
1394
+ "options",
1395
+ "placeholder",
1396
+ "onUpdate:modelValue"
1397
+ ]),
1398
+ (L(), M(O, null, z(_, (r) => F(i, {
1399
+ key: r,
1400
+ "model-value": e[r],
1401
+ options: p[r],
1402
+ placeholder: V(n)(g[r]),
1403
+ "hide-empty": "",
1404
+ "onUpdate:modelValue": (e) => t({ [r]: e })
1405
+ }, null, 8, [
1406
+ "model-value",
1407
+ "options",
1408
+ "placeholder",
1409
+ "onUpdate:modelValue"
1410
+ ])), 64)),
1411
+ N("div", va, [F(i, {
1412
+ "model-value": e.from,
1413
+ options: V(J)(d, y),
1414
+ placeholder: V(n)("exhibition.collection.startDate"),
1415
+ "onUpdate:modelValue": (e) => t({ from: e })
1416
+ }, null, 8, [
1417
+ "model-value",
1418
+ "options",
1419
+ "placeholder",
1420
+ "onUpdate:modelValue"
1421
+ ]), F(i, {
1422
+ "model-value": e.to,
1423
+ options: V(J)(d, y),
1424
+ placeholder: V(n)("exhibition.collection.endDate"),
1425
+ "onUpdate:modelValue": (e) => t({ to: e })
1426
+ }, null, 8, [
1427
+ "model-value",
1428
+ "options",
1429
+ "placeholder",
1430
+ "onUpdate:modelValue"
1431
+ ])])
797
1432
  ]),
798
- (z(!0), P(A, null, V(U(Ge), (n) => (z(), M(t, {
799
- key: n,
800
- "model-value": e[n],
801
- options: d[n],
802
- placeholder: U(s)[n],
803
- "hide-empty": "",
804
- "onUpdate:modelValue": (e) => i({ [n]: e })
805
- }, null, 8, [
806
- "model-value",
807
- "options",
808
- "placeholder",
809
- "onUpdate:modelValue"
810
- ]))), 128)),
811
- F("div", vr, [L(t, {
812
- "model-value": e.from,
813
- options: U(X)(c, U(o)),
814
- placeholder: r.$t("catalogue.facet.startDate"),
815
- "onUpdate:modelValue": (e) => i({ from: e })
816
- }, null, 8, [
817
- "model-value",
818
- "options",
819
- "placeholder",
820
- "onUpdate:modelValue"
821
- ]), L(t, {
822
- "model-value": e.to,
823
- options: U(X)(c, U(o)),
824
- placeholder: r.$t("catalogue.facet.endDate"),
825
- "onUpdate:modelValue": (e) => i({ to: e })
826
- }, null, 8, [
827
- "model-value",
828
- "options",
829
- "placeholder",
830
- "onUpdate:modelValue"
831
- ])])
832
- ]),
833
- _: 2
834
- }, 1032, [
835
- "title",
836
- "reset-label",
837
- "disabled"
838
- ]), f(e) ? (z(), P("div", yr, [F("div", br, H(r.$t("catalogue.results.timelineForSearch")), 1), F("p", null, [a[2] ||= I(" ➤ ", -1), L(U(Z), { to: {
839
- name: "timeline-results",
840
- query: {
841
- country: U(Ue)(e.country),
842
- begin: e.from,
843
- end: e.to
844
- }
845
- } }, {
846
- default: W(() => [I(H(r.$t("core.section.timeline")) + " | " + H(U(Ze)("countries", U(Ue)(e.country))), 1)]),
847
- _: 2
848
- }, 1032, ["to"])])])) : N("", !0)]),
1433
+ _: 2
1434
+ }, 1032, [
1435
+ "title",
1436
+ "reset-label",
1437
+ "disabled",
1438
+ "onReset"
1439
+ ])
1440
+ ], 512), [[vt, !f.value || m.value]])]),
849
1441
  _: 1
850
- }, 8, ["spec"]));
1442
+ })]));
851
1443
  }
852
- }, Sr = { class: "mwnf-dxa-collection-search" }, Cr = {
1444
+ }, ba = { class: "mwnf-dxa-exhibition-collection" }, xa = { class: "mwnf-dxa-exhibition-collection__dropdowns" }, Sa = { class: "mwnf-dxa-exhibition-collection__label" }, Ca = { class: "mwnf-dxa-exhibition-collection__selects" }, wa = ["aria-label"], Ta = {
1445
+ selected: "",
1446
+ disabled: "",
1447
+ value: ""
1448
+ }, Ea = { value: "all" }, Da = ["value"], Oa = ["aria-label", "onChange"], ka = {
1449
+ selected: "",
1450
+ disabled: "",
1451
+ value: ""
1452
+ }, Aa = ["value"], ja = { class: "mwnf-dxa-exhibition-collection__dates" }, Ma = ["aria-label"], Na = {
1453
+ selected: "",
1454
+ disabled: "",
1455
+ value: ""
1456
+ }, Pa = ["value"], Fa = ["aria-label"], Ia = {
1457
+ selected: "",
1458
+ disabled: "",
1459
+ value: ""
1460
+ }, La = ["value"], Ra = {
853
1461
  __name: "CollectionSearch",
854
1462
  setup(e) {
855
- let t = Pt(Fe, Ye), n = j(() => Ge.filter((e) => (t.value[e] ?? []).length > 0)), r = j(() => ({
856
- mode: "facets",
857
- target: "collection-results",
858
- dates: "buckets",
859
- howTo: "search-how-to",
860
- facets: [{
1463
+ let t = It(), { t: n, locale: r } = q(), { themeOptions: i } = Ki(r), a = At(De, Ue), o = k(() => [
1464
+ {
861
1465
  key: "country",
862
- label: "catalogue.facet.selectCountry",
863
- options: t.value.country
864
- }, ...n.value.map((e) => ({
865
- key: e,
866
- label: qe[e],
867
- options: t.value[e]
868
- }))]
869
- }));
870
- return (e, t) => (z(), P("div", Sr, [L(tt, { spec: r.value }, {
871
- intro: W(() => [L(U(G), {
872
- id: "mwnf-dxa-collection-search-description",
873
- class: "mwnf-dxa-description mwnf-prose",
874
- dir: "auto",
875
- keypath: "exhibition.collection.intro"
876
- })]),
877
- _: 1
878
- }, 8, ["spec"])]));
1466
+ name: "exhibition.collection.selectCountry",
1467
+ options: a.value.country ?? []
1468
+ },
1469
+ {
1470
+ key: "type",
1471
+ name: "exhibition.collection.type",
1472
+ options: a.value.type ?? []
1473
+ },
1474
+ {
1475
+ key: "material",
1476
+ name: "exhibition.collection.material",
1477
+ options: a.value.material ?? []
1478
+ }
1479
+ ]), s = {
1480
+ "catalogue.era.ad": "exhibition.era.ad",
1481
+ "catalogue.era.bc": "exhibition.era.bc"
1482
+ }, c = (e) => n(s[e] ?? e), l = k(() => J(De.value ?? [], c));
1483
+ function u(e, n) {
1484
+ n !== "" && n != null && (n === "all" ? t.push({ name: "collection-results" }) : t.push({
1485
+ name: "collection-results",
1486
+ query: { [e]: String(n) }
1487
+ }));
1488
+ }
1489
+ return (e, t) => (L(), M("div", ba, [N("div", xa, [N("div", Sa, B(V(n)("exhibition.collection.filterBy")), 1), N("div", Ca, [
1490
+ N("select", {
1491
+ class: "mwnf-dxa-exhibition-collection__select",
1492
+ "aria-label": V(n)("exhibition.collection.selectTheme"),
1493
+ onChange: t[0] ||= (e) => u("theme", e.target.value)
1494
+ }, [
1495
+ N("option", Ta, B(V(n)("exhibition.collection.selectTheme")), 1),
1496
+ N("option", Ea, B(V(n)("exhibition.collection.allThemes")), 1),
1497
+ (L(!0), M(O, null, z(V(i), (e) => (L(), M("option", {
1498
+ key: e.value,
1499
+ value: e.value
1500
+ }, B(e.label), 9, Da))), 128))
1501
+ ], 40, wa),
1502
+ (L(!0), M(O, null, z(o.value, (e) => (L(), M("select", {
1503
+ key: e.key,
1504
+ class: "mwnf-dxa-exhibition-collection__select",
1505
+ "aria-label": V(n)(e.name),
1506
+ onChange: (t) => u(e.key, t.target.value)
1507
+ }, [N("option", ka, B(V(n)(e.name)), 1), (L(!0), M(O, null, z(e.options, (e) => (L(), M("option", {
1508
+ key: e.value,
1509
+ value: String(e.value)
1510
+ }, B(e.label), 9, Aa))), 128))], 40, Oa))), 128)),
1511
+ N("div", ja, [N("select", {
1512
+ class: "mwnf-dxa-exhibition-collection__select",
1513
+ "aria-label": V(n)("exhibition.collection.startDate"),
1514
+ onChange: t[1] ||= (e) => u("from", e.target.value)
1515
+ }, [N("option", Na, B(V(n)("exhibition.collection.startDate")), 1), (L(!0), M(O, null, z(l.value, (e) => (L(), M("option", {
1516
+ key: e.value,
1517
+ value: String(e.value)
1518
+ }, B(e.label), 9, Pa))), 128))], 40, Ma), N("select", {
1519
+ class: "mwnf-dxa-exhibition-collection__select",
1520
+ "aria-label": V(n)("exhibition.collection.endDate"),
1521
+ onChange: t[2] ||= (e) => u("to", e.target.value)
1522
+ }, [N("option", Ia, B(V(n)("exhibition.collection.endDate")), 1), (L(!0), M(O, null, z(l.value, (e) => (L(), M("option", {
1523
+ key: e.value,
1524
+ value: String(e.value)
1525
+ }, B(e.label), 9, La))), 128))], 40, Fa)])
1526
+ ])]), F(V(W), {
1527
+ class: "mwnf-dxa-exhibition-collection__description mwnf-prose",
1528
+ dir: "auto",
1529
+ keypath: "exhibition.collection.intro"
1530
+ })]));
879
1531
  }
880
- }, wr = { class: "mwnf-dxa-profile-link-container" }, Tr = {
1532
+ }, za = {
1533
+ key: 0,
1534
+ class: "mwnf-dxa-exhibition-partner-objects"
1535
+ }, Ba = {
1536
+ key: 0,
1537
+ class: "mwnf-dxa-exhibition-partner-objects__header"
1538
+ }, Va = { class: "mwnf-dxa-exhibition-partner-objects__name" }, Ha = { class: "mwnf-dxa-exhibition-partner-objects__place" }, Ua = { class: "mwnf-dxa-exhibition-partner-objects__content" }, Wa = { class: "mwnf-dxa-exhibition-partner-objects__grid" }, Ga = { class: "mwnf-dxa-exhibition-partner-objects__profile" }, Ka = {
1539
+ key: 1,
1540
+ class: "mwnf-dxa-exhibition-partner-objects__end"
1541
+ }, qa = {
881
1542
  __name: "PartnerObjects",
882
1543
  props: {
883
1544
  variant: {
@@ -890,57 +1551,64 @@ var qt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Jt = { class:
890
1551
  }
891
1552
  },
892
1553
  setup(t) {
893
- let n = t, a = j(() => n.variant === "institution"), o = Rt(), s = j(() => Ee(o.params.id)), c = j(() => s.value ? x.view(s.value, we("partners", s.value.id, Le)) : null), l = j(() => ({
1554
+ let n = t, r = k(() => n.variant === "institution"), i = X(), a = k(() => Se(i.params.id)), o = k(() => ({
894
1555
  entity: "items",
895
- scope: (e) => e.partner_id === s.value?.id,
896
- sort: { undated: "first" },
897
- pageSize: Be,
898
- variant: "grid",
899
- recordRoute: "item",
900
- actionLabel: "catalogue.results.seeDatabaseEntry",
901
- empty: a.value ? n.texts.emptyInstitution : n.texts.emptyPartner,
902
- record: (e, { t }) => Ve(e, t),
903
- summary: ({ pageInfo: e, t }) => [{
904
- count: e.total,
905
- value: t(a.value ? n.texts.institutionSummary : "partner.item.objectsInSite")
906
- }]
1556
+ scope: (e) => e.partner_id === a.value?.id,
1557
+ ...qe,
1558
+ summary: () => [],
1559
+ record: ke
907
1560
  }));
908
- return (t, o) => s.value ? (z(), M(E, {
909
- key: 0,
910
- spec: l.value,
1561
+ function s(e) {
1562
+ let t = e[0];
1563
+ if (!t) return null;
1564
+ let n = w("items", t.id, He);
1565
+ return {
1566
+ name: T("partners", a.value?.id),
1567
+ place: [n.location, T("countries", t.country_id)].filter(Boolean).join(", ")
1568
+ };
1569
+ }
1570
+ return (n, i) => a.value ? (L(), M("div", za, [F(E, {
1571
+ spec: o.value,
911
1572
  class: "mwnf-dxa-partner-objects"
912
1573
  }, {
913
- before: W(() => [L(e), L(r, {
914
- class: "mwnf-dxa-partner-objects-header",
915
- variant: "summary",
916
- heading: 1,
917
- partner: c.value
918
- }, null, 8, ["partner"])]),
919
- actions: W(({ pageInfo: e, goToPage: t }) => [L(i, {
920
- class: "mwnf-dxa-pages",
1574
+ before: H(({ matching: t, pageInfo: n, goToPage: r }) => [
1575
+ F(e),
1576
+ s(t) ? (L(), M("div", Ba, [N("p", Va, B(s(t).name), 1), N("p", Ha, B(s(t).place), 1)])) : j("", !0),
1577
+ F($, {
1578
+ class: "mwnf-dxa-exhibition-pages--top",
1579
+ "page-info": n,
1580
+ onNavigate: r
1581
+ }, null, 8, ["page-info", "onNavigate"])
1582
+ ]),
1583
+ records: H(({ rows: e }) => [N("div", Ua, [N("div", Wa, [e.length ? (L(), A(Q, {
1584
+ key: 0,
1585
+ rows: e,
1586
+ family: "exhibition"
1587
+ }, null, 8, ["rows"])) : (L(), A(V(W), {
1588
+ key: 1,
1589
+ keypath: r.value ? t.texts.emptyInstitution : t.texts.emptyPartner
1590
+ }, null, 8, ["keypath"]))]), N("div", Ga, [F(V(Y), { to: V(xe)(a.value) }, {
1591
+ default: H(() => [i[0] ||= N("span", { "aria-hidden": "true" }, "➦", -1), P(" " + B(n.$t(r.value ? t.texts.institutionProfileLabel : t.texts.partnerProfileLabel)), 1)]),
1592
+ _: 1
1593
+ }, 8, ["to"])])])]),
1594
+ pagination: H(() => [...i[1] ||= []]),
1595
+ after: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A($, {
1596
+ key: 0,
921
1597
  "page-info": e,
922
- jump: "",
923
1598
  onNavigate: t
924
- }, null, 8, ["page-info", "onNavigate"])]),
925
- after: W(() => [F("div", wr, [L(U(Z), {
926
- class: "mwnf-dxa-profile-link",
927
- to: U(ke)(s.value)
928
- }, {
929
- default: W(() => [I(" ➤ " + H(a.value ? t.$t(n.texts.institutionProfileLabel) : t.$t(n.texts.partnerProfileLabel)), 1)]),
930
- _: 1
931
- }, 8, ["to"])])]),
1599
+ }, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", Ka))]),
932
1600
  _: 1
933
- }, 8, ["spec"])) : N("", !0);
1601
+ }, 8, ["spec"])])) : j("", !0);
934
1602
  }
935
- }, Er = () => Promise.resolve().then(() => Ni), Dr = () => Promise.resolve().then(() => Ji), Or = () => Promise.resolve().then(() => da), kr = () => Promise.resolve().then(() => Da), Ar = () => Promise.resolve().then(() => Aa), jr = () => Promise.resolve().then(() => Na), Mr = () => import("./Theme-4RmyRY0x.js").then((e) => e.t), Nr = () => Promise.resolve().then(() => La), Pr = () => Promise.resolve().then(() => Va), Fr = () => Promise.resolve().then(() => Wa), Ir = () => Promise.resolve().then(() => Ka), Lr = {
1603
+ }, Ja = () => Promise.resolve().then(() => rs), Ya = () => Promise.resolve().then(() => fs), Xa = () => Promise.resolve().then(() => ms), Za = () => Promise.resolve().then(() => As), Qa = () => Promise.resolve().then(() => Ns), $a = () => Promise.resolve().then(() => Is), eo = () => import("./Theme-Daezwp0p.js").then((e) => e.t), to = () => Promise.resolve().then(() => ec), no = () => Promise.resolve().then(() => yc), ro = () => Promise.resolve().then(() => xc), io = () => Promise.resolve().then(() => Lc), ao = {
936
1604
  emptyPartner: "exhibition.partnerObjects.emptyPartner",
937
1605
  emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
938
1606
  institutionSummary: "exhibition.partner.monumentsInExhibition",
939
1607
  partnerProfileLabel: "partner.action.partnerProfile",
940
1608
  institutionProfileLabel: "exhibition.partnerObjects.institutionProfile"
941
1609
  };
942
- function Rr(e) {
943
- let t = At([
1610
+ function oo(e) {
1611
+ let t = Ot([
944
1612
  "gallery",
945
1613
  "items",
946
1614
  "partners",
@@ -951,39 +1619,39 @@ function Rr(e) {
951
1619
  {
952
1620
  path: "/",
953
1621
  name: "home",
954
- component: Er,
1622
+ component: Ja,
955
1623
  meta: t("home")
956
1624
  },
957
1625
  {
958
1626
  path: "/item/:id",
959
1627
  name: "item",
960
- component: Dr,
1628
+ component: Ya,
961
1629
  props: (e) => ({ id: String(e.params.id) }),
962
1630
  meta: t("database", "languages", "dynasties", "glossary", "timelines", "timeline_events")
963
1631
  },
964
1632
  {
965
1633
  path: "/timeline",
966
1634
  name: "timeline",
967
- component: Or,
1635
+ component: Xa,
968
1636
  meta: t("timeline", "timelines", "timeline_events")
969
1637
  }
970
1638
  ] : [],
971
1639
  {
972
1640
  path: "/search",
973
1641
  name: "search-results",
974
- component: Tn,
1642
+ component: En,
975
1643
  meta: t("database")
976
1644
  },
977
1645
  {
978
1646
  path: "/how-to-search",
979
1647
  name: "search-how-to",
980
- component: Gt,
1648
+ component: qt,
981
1649
  meta: t("database")
982
1650
  },
983
1651
  {
984
1652
  path: "/partners",
985
1653
  name: "partners",
986
- component: sn,
1654
+ component: un,
987
1655
  meta: t("partners")
988
1656
  },
989
1657
  {
@@ -992,26 +1660,26 @@ function Rr(e) {
992
1660
  component: Vt,
993
1661
  props: (e) => ({
994
1662
  id: String(e.params.id),
995
- family: _
1663
+ family: y
996
1664
  }),
997
1665
  meta: t("partners", "languages")
998
1666
  },
999
1667
  {
1000
1668
  path: "/partner/:id/objects",
1001
1669
  name: "partner-objects",
1002
- component: ar,
1670
+ component: or,
1003
1671
  meta: t("partners")
1004
1672
  },
1005
1673
  {
1006
1674
  path: "/timeline-results",
1007
1675
  name: "timeline-results",
1008
- component: En,
1676
+ component: Dn,
1009
1677
  meta: t("timeline", "timelines", "timeline_events")
1010
1678
  },
1011
1679
  {
1012
1680
  path: "/timeline/gallery",
1013
1681
  name: "timeline-gallery",
1014
- component: kn,
1682
+ component: An,
1015
1683
  meta: t("timeline", "timelines", "timeline_events")
1016
1684
  },
1017
1685
  {
@@ -1030,25 +1698,25 @@ function Rr(e) {
1030
1698
  {
1031
1699
  path: "/collection",
1032
1700
  name: "collection",
1033
- component: $n,
1701
+ component: er,
1034
1702
  meta: t("collection", "tags")
1035
1703
  },
1036
1704
  {
1037
1705
  path: "/collection-results",
1038
1706
  name: "collection-results",
1039
- component: Rn,
1707
+ component: zn,
1040
1708
  meta: t("collection", "tags", "timelines")
1041
1709
  }
1042
1710
  ];
1043
1711
  }
1044
- function zr(e) {
1045
- let t = At([
1712
+ function so(e) {
1713
+ let t = Ot([
1046
1714
  "exhibition",
1047
1715
  "items",
1048
1716
  "partners",
1049
1717
  "countries"
1050
1718
  ]), n = {
1051
- ...Lr,
1719
+ ...ao,
1052
1720
  ...e.partnerObjects
1053
1721
  };
1054
1722
  return [
@@ -1056,79 +1724,76 @@ function zr(e) {
1056
1724
  {
1057
1725
  path: "/",
1058
1726
  name: "home",
1059
- component: kr,
1727
+ component: Za,
1060
1728
  meta: t("home")
1061
1729
  },
1062
1730
  {
1063
1731
  path: "/about",
1064
1732
  name: "about",
1065
- component: Ar,
1733
+ component: Qa,
1066
1734
  meta: t("about", "themes")
1067
1735
  },
1068
1736
  {
1069
1737
  path: "/themes",
1070
1738
  name: "themes",
1071
- component: jr,
1739
+ component: $a,
1072
1740
  meta: t("themes", "themes")
1073
1741
  },
1074
1742
  {
1075
1743
  path: "/theme/:id/:subtheme?/:image?",
1076
1744
  name: "theme",
1077
- component: Mr,
1745
+ component: eo,
1078
1746
  meta: t("themes", "themes", "glossary", "dynasties")
1079
1747
  },
1080
1748
  {
1081
- path: "/theme-gallery/:id",
1749
+ path: "/theme-gallery/:id/:subtheme?",
1082
1750
  name: "theme-gallery",
1083
- component: Nr,
1751
+ component: to,
1084
1752
  meta: t("themes", "themes")
1085
1753
  },
1086
1754
  {
1087
1755
  path: "/item/:id",
1088
1756
  name: "item",
1089
- component: Pr,
1757
+ component: no,
1090
1758
  props: (e) => ({ id: String(e.params.id) }),
1091
1759
  meta: t("database", "languages", "dynasties", "glossary", "timelines", "timeline_events")
1092
1760
  },
1093
1761
  {
1094
1762
  path: "/related",
1095
1763
  name: "related",
1096
- component: Fr,
1764
+ component: ro,
1097
1765
  meta: t("related", "related_content")
1098
1766
  },
1099
1767
  {
1100
1768
  path: "/timeline",
1101
1769
  name: "timeline",
1102
- component: Ir,
1770
+ component: io,
1103
1771
  meta: t("timeline", "timelines", "timeline_events")
1104
1772
  },
1105
1773
  ...e.creditsBody ? [{
1106
1774
  path: "/credits",
1107
1775
  name: "credits",
1108
- component: nt,
1109
- props: { spec: {
1110
- body: e.creditsBody,
1111
- back: !0
1112
- } },
1776
+ component: Kt,
1777
+ props: { bodyKey: e.creditsBody },
1113
1778
  meta: t("credits")
1114
1779
  }] : []
1115
1780
  ] : [],
1116
1781
  {
1117
1782
  path: "/search",
1118
1783
  name: "search-results",
1119
- component: hr,
1784
+ component: ni,
1120
1785
  meta: t("database")
1121
1786
  },
1122
1787
  {
1123
1788
  path: "/how-to-search",
1124
1789
  name: "search-how-to",
1125
- component: or,
1790
+ component: cr,
1126
1791
  meta: t("database")
1127
1792
  },
1128
1793
  {
1129
1794
  path: "/partners",
1130
1795
  name: "partners",
1131
- component: lr,
1796
+ component: Sr,
1132
1797
  meta: t("partners")
1133
1798
  },
1134
1799
  {
@@ -1137,14 +1802,14 @@ function zr(e) {
1137
1802
  component: Vt,
1138
1803
  props: (e) => ({
1139
1804
  id: String(e.params.id),
1140
- family: x
1805
+ family: ye
1141
1806
  }),
1142
1807
  meta: t("partners", "languages")
1143
1808
  },
1144
1809
  {
1145
1810
  path: "/partner/:id/objects",
1146
1811
  name: "partner-objects",
1147
- component: Tr,
1812
+ component: qa,
1148
1813
  props: { texts: n },
1149
1814
  meta: t("partners")
1150
1815
  },
@@ -1154,7 +1819,7 @@ function zr(e) {
1154
1819
  component: Vt,
1155
1820
  props: (e) => ({
1156
1821
  id: String(e.params.id),
1157
- family: x,
1822
+ family: ye,
1158
1823
  variant: "institution"
1159
1824
  }),
1160
1825
  meta: t("partners", "languages")
@@ -1162,7 +1827,7 @@ function zr(e) {
1162
1827
  {
1163
1828
  path: "/institution/:id/monuments",
1164
1829
  name: "institution-monuments",
1165
- component: Tr,
1830
+ component: qa,
1166
1831
  props: {
1167
1832
  variant: "institution",
1168
1833
  texts: n
@@ -1172,36 +1837,36 @@ function zr(e) {
1172
1837
  {
1173
1838
  path: "/timeline-results",
1174
1839
  name: "timeline-results",
1175
- component: gr,
1840
+ component: Ai,
1176
1841
  meta: t("timeline", "timelines", "timeline_events")
1177
1842
  },
1178
1843
  {
1179
1844
  path: "/timeline/gallery",
1180
1845
  name: "timeline-gallery",
1181
- component: _r,
1846
+ component: Li,
1182
1847
  meta: t("timeline", "timelines", "timeline_events")
1183
1848
  },
1184
1849
  {
1185
1850
  path: "/collection",
1186
1851
  name: "collection",
1187
- component: Cr,
1188
- meta: t("collection", "tags")
1852
+ component: Ra,
1853
+ meta: t("collection", "tags", "themes")
1189
1854
  },
1190
1855
  {
1191
1856
  path: "/collection-results",
1192
1857
  name: "collection-results",
1193
- component: xr,
1194
- meta: t("collection", "tags", "timelines")
1858
+ component: ya,
1859
+ meta: t("collection", "tags", "timelines", "themes")
1195
1860
  }
1196
1861
  ];
1197
1862
  }
1198
- function Br(e, t = {}) {
1199
- if (e === "gallery") return Rr(t);
1200
- if (e === "exhibition") return zr(t);
1863
+ function co(e, t = {}) {
1864
+ if (e === "gallery") return oo(t);
1865
+ if (e === "exhibition") return so(t);
1201
1866
  throw Error(`standardRoutes: unknown family "${e}" (expected "gallery" or "exhibition")`);
1202
1867
  }
1203
1868
  // node_modules/@museumwnf/viewer-core/src/legacy/index.js
1204
- function Vr(e, t = []) {
1869
+ function lo(e, t = []) {
1205
1870
  let n = String(e?.backward_compatibility ?? "").split(":");
1206
1871
  if (n[0] === "mwnf3_sharing_history") {
1207
1872
  let t = n[2] ?? e?.id ?? "";
@@ -1220,18 +1885,18 @@ function Vr(e, t = []) {
1220
1885
  countryCode: r?.code ?? ""
1221
1886
  };
1222
1887
  }
1223
- function Hr(e, t, n, r) {
1888
+ function uo(e, t, n, r) {
1224
1889
  return (e ?? []).find((e) => {
1225
- let i = Vr(e, t);
1890
+ let i = lo(e, t);
1226
1891
  return i.legacyId === r && i.countryCode === n;
1227
1892
  }) ?? null;
1228
1893
  }
1229
- function Ur(e, t) {
1894
+ function fo(e, t) {
1230
1895
  let n = String(t ?? "").split("/").join(":").toLowerCase();
1231
1896
  return (e ?? []).find((e) => e?.backward_compatibility?.toLowerCase() === n) ?? null;
1232
1897
  }
1233
1898
  // src/dxa/gallery/Shell.vue
1234
- var Wr = {
1899
+ var po = {
1235
1900
  __name: "Shell",
1236
1901
  props: {
1237
1902
  language: {
@@ -1245,56 +1910,56 @@ var Wr = {
1245
1910
  },
1246
1911
  emits: ["update:language"],
1247
1912
  setup(e, { emit: t }) {
1248
- let n = e, r = t, { t: i, locale: a } = J(), o = Y(), s = j(() => o.links ?? {}), c = j(() => o.galleryShell ?? {}), l = Lt(), u = j(() => l.value === "home"), d = (/* @__PURE__ */ new Date()).getFullYear();
1913
+ let n = e, r = t, { t: i, locale: a } = q(), o = Nt(), s = k(() => o.links ?? {}), c = k(() => o.galleryShell ?? {}), l = Mt(), u = k(() => l.value === "home"), d = (/* @__PURE__ */ new Date()).getFullYear();
1249
1914
  function f(e) {
1250
1915
  return e?.[a.value] ?? e?.en ?? "";
1251
1916
  }
1252
- let m = j(() => {
1253
- let e = ge.projects?.[ge.gallery?.project_id ?? b.value?.project_id];
1254
- return f(e?.name) || f(ge.site?.names) || f(b.value?.names);
1917
+ let m = k(() => {
1918
+ let e = he.projects?.[he.gallery?.project_id ?? oe.value?.project_id];
1919
+ return f(e?.name) || f(he.site?.names) || f(oe.value?.names);
1255
1920
  });
1256
1921
  function h(e, t) {
1257
1922
  if (!(e in c.value)) return t();
1258
1923
  let n = c.value[e];
1259
1924
  return n ? i(n) : "";
1260
1925
  }
1261
- let ee = j(() => u.value ? "" : h("headerEyebrow", () => i("core.project.galleries"))), te = j(() => u.value ? "" : h("headerTitle", () => m.value)), g = j(() => c.value.bannerImage ? O(o.chrome, c.value.bannerImage) : ae(b.value?.banner_image_path, "hi_res")), _ = j(() => {
1926
+ let g = k(() => u.value ? "" : h("headerEyebrow", () => i("core.project.galleries"))), _ = k(() => u.value ? "" : h("headerTitle", () => m.value)), v = k(() => c.value.bannerImage ? $e(o.chrome, c.value.bannerImage) : re(oe.value?.banner_image_path, "hi_res")), y = k(() => {
1262
1927
  if (c.value.bannerCaption) return c.value.bannerCaption;
1263
- let e = re.value.get(b.value?.banner_item_id);
1928
+ let e = te.value.get(oe.value?.banner_item_id);
1264
1929
  if (!e) return "";
1265
- let t = p("items", e.id, pe);
1930
+ let t = p("items", e.id, fe);
1266
1931
  return {
1267
- name: ie("items", e.id),
1268
- partner: ie("partners", e.partner_id),
1932
+ name: ne("items", e.id),
1933
+ partner: ne("partners", e.partner_id),
1269
1934
  location: t.location ?? "",
1270
- country: ie("countries", e.country_id)
1935
+ country: ne("countries", e.country_id)
1271
1936
  };
1272
- }), ne = j(() => u.value ? h("bannerEyebrow", () => i("gallery.banner.discoverGalleries")) : ""), v = j(() => u.value ? h("bannerTitle", () => m.value) : void 0), y = j(() => c.value.notice === !1 ? null : {
1937
+ }), ee = k(() => u.value ? h("bannerEyebrow", () => i("gallery.banner.discoverGalleries")) : ""), b = k(() => u.value ? h("bannerTitle", () => m.value) : void 0), x = k(() => c.value.notice === !1 ? null : {
1273
1938
  title: i("gallery.notice.tip"),
1274
1939
  text: i("gallery.notice.databaseReplaced")
1275
- }), oe = j(() => !!O(o.chrome, o.brand?.logo));
1276
- return (e, t) => (z(), M(rt, {
1277
- class: R(["mwnf-dxa-gallery-shell", { "mwnf-dxa-gallery-shell--home": u.value }]),
1940
+ }), ie = k(() => !!$e(o.chrome, o.brand?.logo));
1941
+ return (e, t) => (L(), A(Xe, {
1942
+ class: I(["mwnf-dxa-gallery-shell", { "mwnf-dxa-gallery-shell--home": u.value }]),
1278
1943
  languages: n.languages,
1279
1944
  language: n.language,
1280
1945
  "language-placement": "none",
1281
1946
  "header-home": s.value.portal,
1282
- "header-eyebrow": ee.value,
1283
- "header-title": te.value,
1947
+ "header-eyebrow": g.value,
1948
+ "header-title": _.value,
1284
1949
  "header-title-href": "#/",
1285
- "banner-image": g.value,
1286
- "banner-caption": _.value,
1287
- "banner-eyebrow": ne.value,
1288
- "banner-title": v.value,
1289
- notice: y.value,
1290
- "footer-text": `${U(i)("core.footer.copyright")} 2004–${U(d)}`,
1950
+ "banner-image": v.value,
1951
+ "banner-caption": y.value,
1952
+ "banner-eyebrow": ee.value,
1953
+ "banner-title": b.value,
1954
+ notice: x.value,
1955
+ "footer-text": `${V(i)("core.footer.copyright")} 2004–${V(d)}`,
1291
1956
  "onUpdate:language": t[0] ||= (e) => r("update:language", e)
1292
- }, ht({
1293
- default: W(() => [yt(e.$slots, "default")]),
1957
+ }, ct({
1958
+ default: H(() => [pt(e.$slots, "default")]),
1294
1959
  _: 2
1295
- }, [oe.value ? void 0 : {
1960
+ }, [ie.value ? void 0 : {
1296
1961
  name: "brand",
1297
- fn: W(() => [t[1] ||= F("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
1962
+ fn: H(() => [t[1] ||= N("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
1298
1963
  key: "0"
1299
1964
  }]), 1032, [
1300
1965
  "class",
@@ -1311,10 +1976,10 @@ var Wr = {
1311
1976
  "footer-text"
1312
1977
  ]));
1313
1978
  }
1314
- }, Gr = {
1979
+ }, mo = {
1315
1980
  key: 0,
1316
1981
  class: "mwnf-popup-logo"
1317
- }, Kr = ["aria-label"], qr = ["innerHTML"], Jr = ["innerHTML"], Yr = {
1982
+ }, ho = ["aria-label"], go = ["innerHTML"], _o = ["innerHTML"], vo = {
1318
1983
  __name: "PopupLogo",
1319
1984
  props: {
1320
1985
  content: {
@@ -1335,22 +2000,22 @@ var Wr = {
1335
2000
  }
1336
2001
  },
1337
2002
  setup(e) {
1338
- let t = e, n = B(!1), r = j(() => t.rawHtml ? t.content : kt(t.content)), i = j(() => t.enabled && !!t.content && !n.value);
1339
- return (t, a) => i.value ? (z(), P("div", Gr, [F("button", {
2003
+ let t = e, n = R(!1), r = k(() => t.rawHtml ? t.content : K(t.content)), i = k(() => t.enabled && !!t.content && !n.value);
2004
+ return (t, a) => i.value ? (L(), M("div", mo, [N("button", {
1340
2005
  class: "mwnf-popup-logo__close",
1341
2006
  "aria-label": t.$t(e.closeLabel),
1342
2007
  onClick: a[0] ||= (e) => n.value = !0
1343
- }, "✕", 8, Kr), e.rawHtml ? (z(), P("div", {
2008
+ }, "✕", 8, ho), e.rawHtml ? (L(), M("div", {
1344
2009
  key: 0,
1345
2010
  class: "mwnf-popup-logo__content",
1346
2011
  innerHTML: r.value
1347
- }, null, 8, qr)) : (z(), P("div", {
2012
+ }, null, 8, go)) : (L(), M("div", {
1348
2013
  key: 1,
1349
2014
  class: "mwnf-popup-logo__content",
1350
2015
  innerHTML: r.value
1351
- }, null, 8, Jr))])) : N("", !0);
2016
+ }, null, 8, _o))])) : j("", !0);
1352
2017
  }
1353
- }, Xr = {
2018
+ }, yo = {
1354
2019
  __name: "Shell",
1355
2020
  props: {
1356
2021
  language: {
@@ -1364,20 +2029,24 @@ var Wr = {
1364
2029
  },
1365
2030
  emits: ["update:language"],
1366
2031
  setup(e, { emit: t }) {
1367
- let n = e, r = t, { t: i, locale: a } = J(), o = Y(), s = j(() => o.links ?? {}), c = j(() => !!O(o.chrome, o.brand?.logo)), l = Lt(), u = j(() => l.value === "home"), d = (/* @__PURE__ */ new Date()).getFullYear(), f = j(() => u.value ? S.value?.homepage_image_path : null), p = j(() => f.value ? C(f.value, "hi_res") : C(S.value?.banner_image_path, "hi_res")), m = j(() => {
1368
- let e = f.value ? "" : Pe(a.value);
1369
- if (e) return e;
1370
- let t = f.value ? S.value?.homepage_item_id : S.value?.banner_item_id, n = w.value.get(t);
1371
- if (!n) return "";
1372
- let r = we("items", n.id, Le);
2032
+ let n = e, r = t, { t: i, locale: a } = q(), o = Nt(), s = k(() => o.links ?? {}), c = k(() => !!$e(o.chrome, o.brand?.logo)), l = Mt(), u = k(() => l.value === "home"), d = (/* @__PURE__ */ new Date()).getFullYear(), f = k(() => u.value ? C.value?.homepage_image_path : null);
2033
+ bt(() => {
2034
+ if (typeof document > "u") return;
2035
+ let e = C.value?.homepage_image_path, t = e ? Ve(e, "hi_res") : "";
2036
+ t ? document.documentElement.style.setProperty("--mwnf-dxa-exhibition-backdrop", `url("${t.replace(/"/g, "%22")}")`) : document.documentElement.style.removeProperty("--mwnf-dxa-exhibition-backdrop");
2037
+ });
2038
+ let p = k(() => f.value ? Ve(f.value, "hi_res") : Ve(C.value?.banner_image_path, "hi_res")), m = k(() => {
2039
+ let e = f.value ? C.value?.homepage_item_id : C.value?.banner_item_id, t = Le.value.get(e);
2040
+ if (!t) return f.value ? "" : Re(a.value);
2041
+ let n = w("items", t.id, He);
1373
2042
  return {
1374
- name: Ze("items", n.id),
1375
- holder: r.holder ?? "",
1376
- location: r.location ?? "",
1377
- province: f.value ? "" : r.province ?? "",
1378
- country: Ze("countries", n.country_id)
2043
+ name: T("items", t.id),
2044
+ holder: n.holder ?? "",
2045
+ location: n.location ?? "",
2046
+ province: "",
2047
+ country: T("countries", t.country_id)
1379
2048
  };
1380
- }), h = j(() => [{
2049
+ }), h = k(() => [{
1381
2050
  label: i("core.nav.about"),
1382
2051
  description: i("exhibition.nav.introduction"),
1383
2052
  href: "#/about"
@@ -1386,18 +2055,18 @@ var Wr = {
1386
2055
  description: i("exhibition.nav.contentAtAGlance"),
1387
2056
  href: "#/themes"
1388
2057
  }]);
1389
- function ee(e) {
2058
+ function g(e) {
1390
2059
  return e.labels?.[a.value] ?? e.labels?.en ?? e.alt_text ?? "";
1391
2060
  }
1392
- let te = j(() => {
2061
+ let _ = k(() => {
1393
2062
  let e = o.sponsorLogos;
1394
2063
  return Array.isArray(e) ? e.map((e) => ({
1395
2064
  ...e,
1396
- image: O(o.chrome, e.image),
2065
+ image: $e(o.chrome, e.image),
1397
2066
  alt: e.alt ? i(e.alt) : ""
1398
- })).filter((e) => e.image) : (S.value?.logos ?? []).map((e) => ({
1399
- image: e.legacy_path ? C(e.legacy_path, "full") : null,
1400
- alt: ee(e),
2067
+ })).filter((e) => e.image) : (C.value?.logos ?? []).map((e) => ({
2068
+ image: e.legacy_path ? Ve(e.legacy_path, "full") : null,
2069
+ alt: g(e),
1401
2070
  href: e.url || void 0,
1402
2071
  category_id: e.category_id,
1403
2072
  category: e.category,
@@ -1405,54 +2074,54 @@ var Wr = {
1405
2074
  display_order: e.display_order
1406
2075
  })).filter((e) => e.image);
1407
2076
  });
1408
- function g(e) {
2077
+ function v(e) {
1409
2078
  let t = o.media?.legacyHost;
1410
2079
  if (!t || !e.startsWith(`${t.replace(/\/+$/, "")}/`)) return null;
1411
2080
  let n = e.slice(t.replace(/\/+$/, "").length + 1).split("/").slice(1).join("/");
1412
- return at(o.chrome, n);
2081
+ return Qe(o.chrome, n);
1413
2082
  }
1414
- let _ = j(() => it(xe(S.value?.popup_logos?.[a.value] ?? S.value?.popup_logos?.en ?? ""), g)), ne = j(() => {
1415
- let e = S.value?.popup_logo_show;
2083
+ let y = k(() => Ze(Te(C.value?.popup_logos?.[a.value] ?? C.value?.popup_logos?.en ?? ""), v)), ee = k(() => {
2084
+ let e = C.value?.popup_logo_show;
1416
2085
  return e == null ? !1 : typeof e == "boolean" ? e : e[a.value] ?? e.en ?? !1;
1417
2086
  });
1418
- return (e, t) => (z(), M(rt, {
2087
+ return (e, t) => (L(), A(Xe, {
1419
2088
  languages: n.languages,
1420
2089
  language: n.language,
1421
2090
  "language-placement": "header",
1422
2091
  "language-style": "select",
1423
2092
  "header-home": s.value.portal,
1424
- "header-title": U(i)("exhibition.identity.tagline"),
2093
+ "header-title": V(i)("exhibition.identity.tagline"),
1425
2094
  "header-title-href": "#/about",
1426
2095
  "banner-image": p.value,
1427
2096
  "banner-caption": m.value,
1428
- "banner-caption-label": U(i)("layout.banner.detailFrom"),
1429
- "banner-title": u.value ? U(ze)(U(a)) : "",
1430
- "banner-subtitle": u.value ? U(We)(U(a)) : "",
1431
- "banner-headline": u.value ? U(Ke)(U(a)) : "",
2097
+ "banner-caption-label": V(i)("layout.banner.detailFrom"),
2098
+ "banner-title": u.value ? V(Ae)(V(a)) : "",
2099
+ "banner-subtitle": u.value ? V(We)(V(a)) : "",
2100
+ "banner-headline": u.value ? V(Ie)(V(a)) : "",
1432
2101
  "banner-enter": u.value ? {
1433
- label: U(i)("exhibition.action.enter"),
2102
+ label: V(i)("exhibition.action.enter"),
1434
2103
  href: "#/about"
1435
2104
  } : null,
1436
- "banner-strapline": u.value ? U(i)("exhibition.identity.strapline") : "",
2105
+ "banner-strapline": u.value ? V(i)("exhibition.identity.strapline") : "",
1437
2106
  "hyperlinks-variant": "tiles",
1438
- "hyperlinks-title": U(ze)(U(a)),
2107
+ "hyperlinks-title": V(Ae)(V(a)),
1439
2108
  "hyperlinks-title-href": "#/",
1440
- "hyperlinks-subtitle": U(We)(U(a)),
2109
+ "hyperlinks-subtitle": V(We)(V(a)),
1441
2110
  hyperlinks: h.value,
1442
- "footer-text": `${U(i)("core.footer.copyright")} 2004–${U(d)}`,
1443
- logos: te.value,
2111
+ "footer-text": `${V(i)("core.footer.copyright")} 2004–${V(d)}`,
2112
+ logos: _.value,
1444
2113
  "onUpdate:language": t[0] ||= (e) => r("update:language", e)
1445
- }, ht({
1446
- notice: W(() => [L(Yr, {
1447
- content: _.value,
1448
- enabled: ne.value,
2114
+ }, ct({
2115
+ notice: H(() => [F(vo, {
2116
+ content: y.value,
2117
+ enabled: ee.value,
1449
2118
  "raw-html": ""
1450
2119
  }, null, 8, ["content", "enabled"])]),
1451
- default: W(() => [yt(e.$slots, "default")]),
2120
+ default: H(() => [pt(e.$slots, "default")]),
1452
2121
  _: 2
1453
2122
  }, [c.value ? void 0 : {
1454
2123
  name: "brand",
1455
- fn: W(() => [t[1] ||= F("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
2124
+ fn: H(() => [t[1] ||= N("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
1456
2125
  key: "0"
1457
2126
  }]), 1032, [
1458
2127
  "languages",
@@ -1476,23 +2145,27 @@ var Wr = {
1476
2145
  }
1477
2146
  };
1478
2147
  // src/dxa/config.js
1479
- function Zr({ country: e, start: t, end: n, page: r }) {
2148
+ function bo(e, t) {
2149
+ let n = `exhibition.sponsors.section${Number(t)}`, r = e(n);
2150
+ return r && r !== n ? r : null;
2151
+ }
2152
+ function xo({ country: e, start: t, end: n, page: r }) {
1480
2153
  let i = { country: e };
1481
2154
  return t !== "any" && (i.begin = t), n !== "any" && (i.end = n), Number(r) > 1 && (i.page = r), {
1482
2155
  name: "timeline-gallery",
1483
2156
  query: i
1484
2157
  };
1485
2158
  }
1486
- function Qr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects: i = [], creditsBody: a, chrome: o = {}, homeLogos: s = [] }) {
1487
- let { manifest: c } = Nt(), l = Ot();
2159
+ function So({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects: i = [], creditsBody: a, chrome: o = {}, homeLogos: s = [] }) {
2160
+ let { manifest: c } = kt(), l = Tt();
1488
2161
  return {
1489
2162
  datasetPackage: e,
1490
2163
  siteName: c.site?.names?.en ?? t,
1491
2164
  features: { entities: [] },
1492
2165
  languages: l,
1493
- shell: Wr,
2166
+ shell: po,
1494
2167
  navigation: {
1495
- languages: Et(l),
2168
+ languages: Ct(l),
1496
2169
  links: [
1497
2170
  {
1498
2171
  section: "about",
@@ -1521,7 +2194,7 @@ function Qr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1521
2194
  },
1522
2195
  {
1523
2196
  label: "core.nav.myCollection",
1524
- href: q.myCollection,
2197
+ href: G.myCollection,
1525
2198
  external: !0
1526
2199
  }
1527
2200
  ],
@@ -1530,33 +2203,33 @@ function Qr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1530
2203
  to: { name: "home" }
1531
2204
  }, {
1532
2205
  label: "gallery.nav.allGalleries",
1533
- href: `${q.galleries}/list/1`,
2206
+ href: `${G.galleries}/list/1`,
1534
2207
  external: !0
1535
2208
  }],
1536
2209
  footerLinks: [
1537
2210
  {
1538
2211
  label: "core.footer.aboutMwnf",
1539
- href: q.about,
2212
+ href: G.about,
1540
2213
  external: !0
1541
2214
  },
1542
2215
  {
1543
2216
  label: "core.footer.contact",
1544
- href: q.contact,
2217
+ href: G.contact,
1545
2218
  external: !0
1546
2219
  },
1547
2220
  {
1548
2221
  label: "core.footer.legalNotice",
1549
- href: q.legalNotice,
2222
+ href: G.legalNotice,
1550
2223
  external: !0
1551
2224
  },
1552
2225
  {
1553
2226
  label: "core.footer.credits",
1554
- href: q.credits,
2227
+ href: G.credits,
1555
2228
  external: !0
1556
2229
  },
1557
2230
  {
1558
2231
  label: "core.footer.cookies",
1559
- href: q.cookies,
2232
+ href: G.cookies,
1560
2233
  external: !0
1561
2234
  }
1562
2235
  ],
@@ -1577,7 +2250,7 @@ function Qr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1577
2250
  empty: "all-objects"
1578
2251
  },
1579
2252
  placement: ({ section: e }) => e === "home" ? "after-banner" : "before-banner",
1580
- socialLinks: st
2253
+ socialLinks: tt
1581
2254
  },
1582
2255
  banner: {
1583
2256
  variant: ({ section: e }) => e === "home" ? "strip" : "section",
@@ -1595,11 +2268,11 @@ function Qr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1595
2268
  },
1596
2269
  homeLogos: s,
1597
2270
  media: { legacyHost: "https://images.museumwnf.org" },
1598
- links: { ...q },
2271
+ links: { ...G },
1599
2272
  projectColors: r,
1600
2273
  noticeProjects: i,
1601
2274
  site: { origin: n },
1602
- extraViews: Br("gallery", {
2275
+ extraViews: co("gallery", {
1603
2276
  creditsBody: a,
1604
2277
  pages: !0
1605
2278
  }),
@@ -1607,8 +2280,8 @@ function Qr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1607
2280
  {
1608
2281
  path: "/database-item/:uid(.*)/:language",
1609
2282
  async resolve({ uid: e }) {
1610
- await K(["items"]);
1611
- let t = de(e);
2283
+ await wt(["items"]);
2284
+ let t = ue(e);
1612
2285
  return t ? {
1613
2286
  name: "item",
1614
2287
  params: { id: t.id }
@@ -1618,8 +2291,8 @@ function Qr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1618
2291
  {
1619
2292
  path: "/partner/:country/:id/:language",
1620
2293
  async resolve({ country: e, id: t }) {
1621
- await K(["partners"]);
1622
- let n = ve(e, t);
2294
+ await wt(["partners"]);
2295
+ let n = _e(e, t);
1623
2296
  return n ? {
1624
2297
  name: "partner",
1625
2298
  params: { id: n.id }
@@ -1629,8 +2302,8 @@ function Qr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1629
2302
  {
1630
2303
  path: "/partner-objects/:country/:id/:page",
1631
2304
  async resolve({ country: e, id: t, page: n }) {
1632
- await K(["partners"]);
1633
- let r = ve(e, t);
2305
+ await wt(["partners"]);
2306
+ let r = _e(e, t);
1634
2307
  return r ? {
1635
2308
  name: "partner-objects",
1636
2309
  params: { id: r.id },
@@ -1640,7 +2313,7 @@ function Qr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1640
2313
  },
1641
2314
  {
1642
2315
  path: "/timeline-gallery/:country/:start/:end/:page",
1643
- resolve: Zr
2316
+ resolve: xo
1644
2317
  },
1645
2318
  {
1646
2319
  path: "/error",
@@ -1649,18 +2322,18 @@ function Qr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1649
2322
  ]
1650
2323
  };
1651
2324
  }
1652
- function $r({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects: i = [], creditsBody: a, partnerObjects: o, chrome: s = {}, sponsorLogos: c }) {
1653
- let { manifest: l } = Nt(), u = Ot(), d = async (e, t) => (await K([
2325
+ function Co({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects: i = [], creditsBody: a, partnerObjects: o, chrome: s = {}, sponsorLogos: c }) {
2326
+ let { manifest: l } = kt(), u = Tt(), d = async (e, t) => (await wt([
1654
2327
  "exhibition",
1655
2328
  "partners",
1656
2329
  "countries"
1657
- ]), Hr(je.value, Ie.value, e, t));
2330
+ ]), uo(Ce.value, Oe.value, e, t));
1658
2331
  return {
1659
2332
  datasetPackage: e,
1660
2333
  siteName: l.site?.names?.en ?? t,
1661
2334
  features: { entities: [] },
1662
2335
  languages: u,
1663
- shell: Xr,
2336
+ shell: yo,
1664
2337
  navigation: {
1665
2338
  languages: u.map((e) => ({
1666
2339
  code: e,
@@ -1691,7 +2364,7 @@ function $r({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1691
2364
  section: "timeline",
1692
2365
  label: "core.nav.timeline",
1693
2366
  to: { name: "timeline" },
1694
- when: () => Re.value
2367
+ when: () => je.value
1695
2368
  },
1696
2369
  {
1697
2370
  section: "related",
@@ -1705,7 +2378,7 @@ function $r({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1705
2378
  },
1706
2379
  {
1707
2380
  label: "core.nav.myCollection",
1708
- href: q.myCollection,
2381
+ href: G.myCollection,
1709
2382
  external: !0
1710
2383
  }
1711
2384
  ],
@@ -1714,33 +2387,33 @@ function $r({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1714
2387
  to: { name: "home" }
1715
2388
  }, {
1716
2389
  label: "core.footer.aboutMwnf",
1717
- href: q.about,
2390
+ href: G.about,
1718
2391
  external: !0
1719
2392
  }],
1720
2393
  footerLinks: [
1721
2394
  {
1722
2395
  label: "core.footer.aboutMwnf",
1723
- href: q.about,
2396
+ href: G.about,
1724
2397
  external: !0
1725
2398
  },
1726
2399
  {
1727
2400
  label: "core.footer.contact",
1728
- href: q.contact,
2401
+ href: G.contact,
1729
2402
  external: !0
1730
2403
  },
1731
2404
  {
1732
2405
  label: "core.footer.legalNotice",
1733
- href: q.legalNotice,
2406
+ href: G.legalNotice,
1734
2407
  external: !0
1735
2408
  },
1736
2409
  {
1737
2410
  label: "core.footer.credits",
1738
- href: q.credits,
2411
+ href: G.credits,
1739
2412
  external: !0
1740
2413
  },
1741
2414
  {
1742
2415
  label: "core.footer.cookies",
1743
- href: q.cookies,
2416
+ href: G.cookies,
1744
2417
  external: !0
1745
2418
  }
1746
2419
  ],
@@ -1759,12 +2432,21 @@ function $r({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1759
2432
  key: "q",
1760
2433
  placeholder: "catalogue.search.placeholder",
1761
2434
  submitLabel: "catalogue.search.submit",
1762
- empty: "all-objects"
2435
+ empty: "all-items"
1763
2436
  },
1764
2437
  placement: "before-banner",
1765
- socialLinks: st
2438
+ socialLinks: tt
2439
+ },
2440
+ banner: {
2441
+ variant: ({ section: e }) => e === "home" ? "split" : "section",
2442
+ title: ({ route: e, t }) => {
2443
+ if (e?.name !== "theme" && e?.name !== "theme-gallery") return "";
2444
+ let n = Number(e.params.id);
2445
+ if (!Number.isInteger(n) || n < 1) return "";
2446
+ let r = `${t("exhibition.theme.romanLabel")} ${Lt(n + 1)}`, i = e.params.subtheme;
2447
+ return i && i !== "overview" ? `${r} ▪ ${t("exhibition.theme.subthemeLabel")} ${i}` : e.name === "theme-gallery" ? `${r} ▪ ${t("exhibition.theme.galleryLabel")}` : `${r} ▪ ${t("exhibition.theme.overview")}`;
2448
+ }
1766
2449
  },
1767
- banner: { variant: ({ section: e }) => e === "home" ? "split" : "section" },
1768
2450
  chrome: s,
1769
2451
  brand: {
1770
2452
  logo: "logo_black.png",
@@ -1782,7 +2464,7 @@ function $r({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1782
2464
  r ? r.push(t) : n.set(e, [t]);
1783
2465
  }
1784
2466
  return [...n.entries()].sort((e, t) => e[0] - t[0]).map(([e, n]) => ({
1785
- title: Number(e) === 1 ? t("exhibition.sponsors.patronage") : Number(e) === 2 ? t("exhibition.sponsors.support") : n[0].category ?? "",
2467
+ title: Number(e) === 1 ? t("exhibition.sponsors.patronage") : Number(e) === 2 ? t("exhibition.sponsors.support") : bo(t, e) ?? n[0].category ?? "",
1786
2468
  sponsors: [...n].sort((e, t) => (e.display_order ?? 0) - (t.display_order ?? 0)).map((e) => ({
1787
2469
  name: e.alt,
1788
2470
  href: e.href,
@@ -1792,11 +2474,11 @@ function $r({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1792
2474
  }
1793
2475
  },
1794
2476
  media: { legacyHost: "https://images.museumwnf.org" },
1795
- links: { ...q },
2477
+ links: { ...G },
1796
2478
  projectColors: r,
1797
2479
  noticeProjects: i,
1798
2480
  site: { origin: n },
1799
- extraViews: Br("exhibition", {
2481
+ extraViews: co("exhibition", {
1800
2482
  creditsBody: a,
1801
2483
  partnerObjects: o,
1802
2484
  pages: !0
@@ -1805,8 +2487,8 @@ function $r({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1805
2487
  {
1806
2488
  path: "/database-item/:uid(.*)/:language",
1807
2489
  async resolve({ uid: e }) {
1808
- await K(["items"]);
1809
- let t = Ur(Fe.value, e);
2490
+ await wt(["items"]);
2491
+ let t = fo(De.value, e);
1810
2492
  return t ? {
1811
2493
  name: "item",
1812
2494
  params: { id: t.id }
@@ -1857,7 +2539,7 @@ function $r({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1857
2539
  },
1858
2540
  {
1859
2541
  path: "/timeline-gallery/:country/:start/:end/:page",
1860
- resolve: Zr
2542
+ resolve: xo
1861
2543
  },
1862
2544
  {
1863
2545
  path: "/error",
@@ -1867,16 +2549,16 @@ function $r({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1867
2549
  };
1868
2550
  }
1869
2551
  // src/dxa/FeaturedPartners.vue
1870
- var ei = {
2552
+ var wo = {
1871
2553
  key: 0,
1872
2554
  class: "mwnf-featured-partners"
1873
- }, ti = { class: "mwnf-featured-partners__heading" }, ni = { class: "mwnf-featured-partners__carousel" }, ri = {
2555
+ }, To = { class: "mwnf-featured-partners__heading" }, Eo = { class: "mwnf-featured-partners__carousel" }, Do = {
1874
2556
  key: 0,
1875
2557
  class: "mwnf-featured-partners__image"
1876
- }, ii = ["src", "alt"], ai = { class: "mwnf-featured-partners__body" }, oi = { class: "mwnf-featured-partners__name" }, si = { class: "mwnf-featured-partners__location" }, ci = { key: 0 }, li = { class: "mwnf-featured-partners__description" }, ui = {
2558
+ }, Oo = ["src", "alt"], ko = { class: "mwnf-featured-partners__body" }, Ao = { class: "mwnf-featured-partners__name" }, jo = { class: "mwnf-featured-partners__location" }, Mo = { key: 0 }, No = { class: "mwnf-featured-partners__description" }, Po = {
1877
2559
  key: 0,
1878
2560
  class: "mwnf-featured-partners__controls"
1879
- }, di = ["aria-label", "onClick"], fi = 8e3, pi = {
2561
+ }, Fo = ["aria-label", "onClick"], Io = 8e3, Lo = {
1880
2562
  __name: "FeaturedPartners",
1881
2563
  props: {
1882
2564
  records: {
@@ -1906,90 +2588,90 @@ var ei = {
1906
2588
  },
1907
2589
  setup(e) {
1908
2590
  let t = e;
1909
- function n(e) {
2591
+ function r(e) {
1910
2592
  let t = String(e ?? "").replace(/<[^>]*>/g, " ");
1911
2593
  return (typeof DOMParser > "u" ? t : new DOMParser().parseFromString(t, "text/html").documentElement.textContent ?? "").replace(/\s+/g, " ").trim();
1912
2594
  }
1913
- function r(e, t) {
2595
+ function i(e, t) {
1914
2596
  if (!e || e.length <= t) return e;
1915
2597
  let n = e.lastIndexOf(" ", t);
1916
2598
  return `${e.slice(0, n > 0 ? n : t)}...`;
1917
2599
  }
1918
- let i = j(() => t.partners.length ? t.partners.map((e) => ({
2600
+ let a = k(() => t.partners.length ? t.partners.map((e) => ({
1919
2601
  id: e.id,
1920
2602
  name: e.plainName,
1921
2603
  logo: e.pictures?.[0]?.url ?? e.logos?.[0]?.url ?? null,
1922
2604
  city: e.city,
1923
2605
  country: e.country,
1924
- description: r(n(e.description), t.descriptionLength),
2606
+ description: i(r(e.description), t.descriptionLength),
1925
2607
  route: e.route,
1926
2608
  objectsRoute: e.objectsRoute ?? null
1927
- })) : t.records), a = B(0), o = null;
2609
+ })) : t.records), o = R(0), s = null;
1928
2610
  function c(e) {
1929
- a.value = e, l();
2611
+ o.value = e, l();
1930
2612
  }
1931
2613
  function l() {
1932
- o && clearInterval(o), i.value.length > 0 && (o = setInterval(() => {
1933
- a.value = (a.value + 1) % i.value.length;
1934
- }, fi));
2614
+ s && clearInterval(s), a.value.length > 0 && (s = setInterval(() => {
2615
+ o.value = (o.value + 1) % a.value.length;
2616
+ }, Io));
1935
2617
  }
1936
- return vt(l), _t(() => o && clearInterval(o)), (t, n) => i.value.length ? (z(), P("section", ei, [
1937
- F("h2", ti, H(t.$t(e.headingEntry)), 1),
1938
- F("div", ni, [(z(!0), P(A, null, V(i.value, (n, r) => Ct((z(), P("div", {
1939
- key: n.id,
2618
+ return dt(l), ut(() => s && clearInterval(s)), (t, r) => a.value.length ? (L(), M("section", wo, [
2619
+ N("h2", To, B(t.$t(e.headingEntry)), 1),
2620
+ N("div", Eo, [(L(!0), M(O, null, z(a.value, (r, i) => U((L(), M("div", {
2621
+ key: r.id,
1940
2622
  class: "mwnf-featured-partners__card"
1941
- }, [n.logo ? (z(), P("span", ri, [F("img", {
1942
- src: n.logo,
1943
- alt: n.name,
2623
+ }, [r.logo ? (L(), M("span", Do, [N("img", {
2624
+ src: r.logo,
2625
+ alt: r.name,
1944
2626
  class: "mwnf-featured-partners__logo"
1945
- }, null, 8, ii)])) : N("", !0), F("span", ai, [
1946
- F("span", oi, H(n.name), 1),
1947
- F("span", si, [n.city ? (z(), P("span", ci, H(n.city) + ", ", 1)) : N("", !0), I(H(n.country), 1)]),
1948
- F("span", li, H(n.description), 1),
1949
- n.route ? (z(), M(s, {
2627
+ }, null, 8, Oo)])) : j("", !0), N("span", ko, [
2628
+ N("span", Ao, B(r.name), 1),
2629
+ N("span", jo, [r.city ? (L(), M("span", Mo, B(r.city) + ", ", 1)) : j("", !0), P(B(r.country), 1)]),
2630
+ N("span", No, B(r.description), 1),
2631
+ r.route ? (L(), A(n, {
1950
2632
  key: 0,
1951
- to: n.route,
2633
+ to: r.route,
1952
2634
  class: "mwnf-featured-partners__more"
1953
2635
  }, {
1954
- default: W(() => [I(H(t.$t(e.readMoreEntry)) + " >>", 1)]),
2636
+ default: H(() => [P(B(t.$t(e.readMoreEntry)) + " >>", 1)]),
1955
2637
  _: 1
1956
- }, 8, ["to"])) : N("", !0),
1957
- n.objectsRoute ? (z(), M(s, {
2638
+ }, 8, ["to"])) : j("", !0),
2639
+ r.objectsRoute ? (L(), A(n, {
1958
2640
  key: 1,
1959
- to: n.objectsRoute,
2641
+ to: r.objectsRoute,
1960
2642
  class: "mwnf-featured-partners__more"
1961
2643
  }, {
1962
- default: W(() => [I(H(t.$t(e.viewObjectsEntry)) + " >>", 1)]),
2644
+ default: H(() => [P(B(t.$t(e.viewObjectsEntry)) + " >>", 1)]),
1963
2645
  _: 1
1964
- }, 8, ["to"])) : N("", !0)
1965
- ])])), [[St, r === a.value]])), 128))]),
1966
- i.value.length > 1 ? (z(), P("div", ui, [(z(!0), P(A, null, V(i.value, (e, n) => (z(), P("button", {
2646
+ }, 8, ["to"])) : j("", !0)
2647
+ ])])), [[vt, i === o.value]])), 128))]),
2648
+ a.value.length > 1 ? (L(), M("div", Po, [(L(!0), M(O, null, z(a.value, (e, n) => (L(), M("button", {
1967
2649
  key: e.id,
1968
- class: R(["mwnf-featured-partners__bullet", { "mwnf-featured-partners__bullet--active": n === a.value }]),
2650
+ class: I(["mwnf-featured-partners__bullet", { "mwnf-featured-partners__bullet--active": n === o.value }]),
1969
2651
  "aria-label": `${t.$t("core.action.show")} ${e.name}`,
1970
2652
  onClick: (e) => c(n)
1971
- }, null, 10, di))), 128))])) : N("", !0)
1972
- ])) : N("", !0);
2653
+ }, null, 10, Fo))), 128))])) : j("", !0)
2654
+ ])) : j("", !0);
1973
2655
  }
1974
- }, mi = { class: "mwnf-sibling-galleries" }, hi = {
2656
+ }, Ro = { class: "mwnf-sibling-galleries" }, zo = {
1975
2657
  key: 0,
1976
2658
  class: "mwnf-sibling-galleries__galleries"
1977
- }, gi = { class: "mwnf-sibling-galleries__header" }, _i = { class: "mwnf-sibling-galleries__heading" }, vi = ["href"], yi = { class: "mwnf-sibling-galleries__grid" }, bi = {
2659
+ }, Bo = { class: "mwnf-sibling-galleries__header" }, Vo = { class: "mwnf-sibling-galleries__heading" }, Ho = ["href"], Uo = { class: "mwnf-sibling-galleries__grid" }, Wo = {
1978
2660
  key: 0,
1979
2661
  class: "mwnf-sibling-galleries__image"
1980
- }, xi = ["src", "alt"], Si = {
2662
+ }, Go = ["src", "alt"], Ko = {
1981
2663
  key: 1,
1982
2664
  class: "mwnf-sibling-galleries__image mwnf-sibling-galleries__image--empty"
1983
- }, Ci = { class: "mwnf-sibling-galleries__name" }, wi = {
2665
+ }, qo = { class: "mwnf-sibling-galleries__name" }, Jo = {
1984
2666
  key: 1,
1985
2667
  class: "mwnf-sibling-galleries__museums"
1986
- }, Ti = { class: "mwnf-sibling-galleries__heading" }, Ei = { class: "mwnf-sibling-galleries__museums-grid" }, Di = ["href"], Oi = {
2668
+ }, Yo = { class: "mwnf-sibling-galleries__heading" }, Xo = { class: "mwnf-sibling-galleries__museums-grid" }, Zo = ["href"], Qo = {
1987
2669
  key: 0,
1988
2670
  class: "mwnf-sibling-galleries__museum-image mwnf-sibling-galleries__museum-image--picture"
1989
- }, ki = ["src"], Ai = {
2671
+ }, $o = ["src"], es = {
1990
2672
  key: 1,
1991
2673
  class: "mwnf-sibling-galleries__museum-image"
1992
- }, ji = { class: "mwnf-sibling-galleries__museum-name" }, Mi = {
2674
+ }, ts = { class: "mwnf-sibling-galleries__museum-name" }, ns = {
1993
2675
  __name: "SiblingGalleries",
1994
2676
  props: {
1995
2677
  galleries: {
@@ -2018,100 +2700,100 @@ var ei = {
2018
2700
  }
2019
2701
  },
2020
2702
  setup(e) {
2021
- return (t, n) => (z(), P("section", mi, [e.galleries.length ? (z(), P("div", hi, [F("div", gi, [F("p", _i, H(t.$t(e.galleriesHeadingEntry)), 1), e.seeMoreGalleriesHref ? (z(), P("a", {
2703
+ return (t, r) => (L(), M("section", Ro, [e.galleries.length ? (L(), M("div", zo, [N("div", Bo, [N("p", Vo, B(t.$t(e.galleriesHeadingEntry)), 1), e.seeMoreGalleriesHref ? (L(), M("a", {
2022
2704
  key: 0,
2023
2705
  href: e.seeMoreGalleriesHref,
2024
2706
  target: "_blank",
2025
2707
  rel: "noopener",
2026
2708
  class: "mwnf-sibling-galleries__see-more"
2027
- }, H(t.$t(e.seeMoreGalleriesEntry)) + " » ", 9, vi)) : N("", !0)]), F("div", yi, [(z(!0), P(A, null, V(e.galleries, (e) => (z(), M(s, {
2709
+ }, B(t.$t(e.seeMoreGalleriesEntry)) + " » ", 9, Ho)) : j("", !0)]), N("div", Uo, [(L(!0), M(O, null, z(e.galleries, (e) => (L(), A(n, {
2028
2710
  key: e.id,
2029
2711
  to: e.route,
2030
- class: R(["mwnf-sibling-galleries__gallery", { "mwnf-sibling-galleries__gallery--no-link": !e.route }])
2712
+ class: I(["mwnf-sibling-galleries__gallery", { "mwnf-sibling-galleries__gallery--no-link": !e.route }])
2031
2713
  }, {
2032
- default: W(() => [e.image ? (z(), P("span", bi, [F("img", {
2714
+ default: H(() => [e.image ? (L(), M("span", Wo, [N("img", {
2033
2715
  src: e.image,
2034
2716
  alt: e.name
2035
- }, null, 8, xi)])) : (z(), P("span", Si)), F("p", Ci, H(e.name), 1)]),
2717
+ }, null, 8, Go)])) : (L(), M("span", Ko)), N("p", qo, B(e.name), 1)]),
2036
2718
  _: 2
2037
- }, 1032, ["to", "class"]))), 128))])])) : N("", !0), e.museums.length ? (z(), P("div", wi, [F("div", Ti, H(t.$t(e.museumsHeadingEntry)), 1), F("div", Ei, [(z(!0), P(A, null, V(e.museums, (e) => (z(), P("a", {
2719
+ }, 1032, ["to", "class"]))), 128))])])) : j("", !0), e.museums.length ? (L(), M("div", Jo, [N("div", Yo, B(t.$t(e.museumsHeadingEntry)), 1), N("div", Xo, [(L(!0), M(O, null, z(e.museums, (e) => (L(), M("a", {
2038
2720
  key: e.name,
2039
2721
  href: e.href || e.to,
2040
2722
  target: "_blank",
2041
2723
  rel: "noopener",
2042
2724
  class: "mwnf-sibling-galleries__museum",
2043
- style: gt({
2725
+ style: lt({
2044
2726
  "--mwnf-museum-bg": e.accent || "var(--mwnf-color-border)",
2045
2727
  "--mwnf-museum-text": e.textColor || "inherit"
2046
2728
  })
2047
- }, [e.image ? (z(), P("div", Oi, [F("img", {
2729
+ }, [e.image ? (L(), M("div", Qo, [N("img", {
2048
2730
  src: e.image,
2049
2731
  alt: ""
2050
- }, null, 8, ki)])) : (z(), P("div", Ai, H(e.name.split(" ").map((e) => e[0]).join("")), 1)), F("p", ji, H(e.name), 1)], 12, Di))), 128))])])) : N("", !0)]));
2732
+ }, null, 8, $o)])) : (L(), M("div", es, B(e.name.split(" ").map((e) => e[0]).join("")), 1)), N("p", ts, B(e.name), 1)], 12, Zo))), 128))])])) : j("", !0)]));
2051
2733
  }
2052
- }, Ni = /* @__PURE__ */ k({ default: () => Vi }), Pi = { class: "mwnf-dxa-home" }, Fi = {
2734
+ }, rs = /* @__PURE__ */ D({ default: () => ds }), is = { class: "mwnf-dxa-home" }, as = {
2053
2735
  key: 0,
2054
2736
  class: "mwnf-dxa-home-logos"
2055
- }, Ii = { class: "mwnf-dxa-home-logos__label" }, Li = { class: "mwnf-dxa-home-logos__list" }, Ri = ["src", "alt"], zi = 3, Bi = 4, Vi = {
2737
+ }, os = { class: "mwnf-dxa-home-logos__label" }, ss = { class: "mwnf-dxa-home-logos__list" }, cs = ["src", "alt"], ls = 3, us = 4, ds = {
2056
2738
  __name: "Home",
2057
2739
  setup(e) {
2058
- let { t, locale: n } = J(), r = Y(), i = j(() => r.links ?? {}), a = j(() => ne(zi)), o = B([]);
2059
- vt(() => {
2060
- o.value = f(Bi);
2740
+ let { t, locale: n } = q(), r = Nt(), i = k(() => r.links ?? {}), a = k(() => ee(ls)), o = R([]);
2741
+ dt(() => {
2742
+ o.value = f(us);
2061
2743
  });
2062
- let s = j(() => o.value.map((e) => ({
2744
+ let s = k(() => o.value.map((e) => ({
2063
2745
  id: e.id,
2064
2746
  name: e.names?.[n.value] ?? e.names?.en ?? e.slug,
2065
- image: e.image_path ? ae(e.image_path, "zoom") : null,
2747
+ image: e.image_path ? re(e.image_path, "zoom") : null,
2066
2748
  route: d(e)
2067
- }))), c = j(() => [
2749
+ }))), c = k(() => [
2068
2750
  {
2069
2751
  name: t("core.project.islamicArt"),
2070
2752
  href: `${i.value.islamicArt}/`,
2071
- image: ot(r.chrome, "dia.jpg"),
2753
+ image: et(r.chrome, "dia.jpg"),
2072
2754
  accent: "var(--mwnf-project-ISLandEPM, #ffcc00)",
2073
2755
  textColor: "var(--mwnf-project-ISLandEPM-text, #000000)"
2074
2756
  },
2075
2757
  {
2076
2758
  name: t("core.project.baroqueArt"),
2077
2759
  href: `${i.value.baroqueArt}/`,
2078
- image: ot(r.chrome, "dba.jpg"),
2760
+ image: et(r.chrome, "dba.jpg"),
2079
2761
  accent: "var(--mwnf-project-DBA, #001d66)",
2080
2762
  textColor: "var(--mwnf-project-DBA-text, #ffffff)"
2081
2763
  },
2082
2764
  {
2083
2765
  name: t("core.project.sharingHistory"),
2084
2766
  href: `${i.value.sharingHistory}/`,
2085
- image: ot(r.chrome, "sh.jpg"),
2767
+ image: et(r.chrome, "sh.jpg"),
2086
2768
  accent: "var(--mwnf-project-AWE, #900000)",
2087
2769
  textColor: "var(--mwnf-project-AWE-text, #ffffff)"
2088
2770
  }
2089
- ]), l = j(() => (r.homeLogos ?? []).map((e) => ({
2090
- image: at(r.chrome, e.image) ?? ae(e.image, "gallery_logo"),
2771
+ ]), l = k(() => (r.homeLogos ?? []).map((e) => ({
2772
+ image: Qe(r.chrome, e.image) ?? re(e.image, "gallery_logo"),
2091
2773
  href: e.href ?? "",
2092
2774
  alt: e.alt ? t(e.alt) : ""
2093
- })).filter((e) => e.image)), u = j(() => `${i.value.galleries}/list`);
2094
- return (e, n) => (z(), P("div", Pi, [
2095
- L(pi, { partners: a.value }, null, 8, ["partners"]),
2096
- l.value.length ? (z(), P("section", Fi, [F("p", Ii, H(U(t)("gallery.home.logosLabel")), 1), F("ul", Li, [(z(!0), P(A, null, V(l.value, (e) => (z(), P("li", { key: e.image }, [(z(), M(bt(e.href ? "a" : "span"), {
2775
+ })).filter((e) => e.image)), u = k(() => `${i.value.galleries}/list`);
2776
+ return (e, n) => (L(), M("div", is, [
2777
+ F(Lo, { partners: a.value }, null, 8, ["partners"]),
2778
+ l.value.length ? (L(), M("section", as, [N("p", os, B(V(t)("gallery.home.logosLabel")), 1), N("ul", ss, [(L(!0), M(O, null, z(l.value, (e) => (L(), M("li", { key: e.image }, [(L(), A(mt(e.href ? "a" : "span"), {
2097
2779
  class: "mwnf-dxa-home-logos__logo",
2098
2780
  href: e.href || void 0,
2099
2781
  title: e.alt || void 0,
2100
2782
  target: e.href ? "_blank" : void 0,
2101
2783
  rel: e.href ? "noopener" : void 0
2102
2784
  }, {
2103
- default: W(() => [F("img", {
2785
+ default: H(() => [N("img", {
2104
2786
  src: e.image,
2105
2787
  alt: e.alt
2106
- }, null, 8, Ri)]),
2788
+ }, null, 8, cs)]),
2107
2789
  _: 2
2108
2790
  }, 1032, [
2109
2791
  "href",
2110
2792
  "title",
2111
2793
  "target",
2112
2794
  "rel"
2113
- ]))]))), 128))])])) : N("", !0),
2114
- L(Mi, {
2795
+ ]))]))), 128))])])) : j("", !0),
2796
+ F(ns, {
2115
2797
  galleries: s.value,
2116
2798
  museums: c.value,
2117
2799
  "galleries-heading-entry": "gallery.action.visitGalleries",
@@ -2125,209 +2807,49 @@ var ei = {
2125
2807
  ])
2126
2808
  ]));
2127
2809
  }
2128
- }, Hi = "mwnf-on-display__theme", $ = (e) => kt(e ?? ""), Ui = (e) => e?.titles?.en ?? Object.values(e?.titles ?? {})[0] ?? "", Wi = (e) => `<span class="${Hi}">${e}</span>`;
2129
- function Gi(e, t) {
2130
- return {
2131
- id: `${e.site}${e.path}`,
2132
- label: t,
2133
- href: jt(e.site, e.path),
2134
- external: !0
2135
- };
2136
- }
2137
- function Ki(e) {
2138
- return e.toLowerCase().split(" ").filter((e) => ![
2139
- "a",
2140
- "an",
2141
- "the"
2142
- ].includes(e)).join(" ");
2143
- }
2144
- function qi(e, t) {
2145
- let n = e?.exhibition_references ?? [], r = [], i = n.filter((e) => e.list === "virtual" || e.list === "sharing_history");
2146
- i.length && r.push({
2147
- caption: i[0].project ? $(i[0].project.name) : "",
2148
- links: i.map((e) => Gi(e, [
2149
- $(Ui(e.exhibition)),
2150
- Wi($(Ui(e.theme))),
2151
- ...e.subtheme ? [Wi($(Ui(e.subtheme)))] : []
2152
- ].join(" | ")))
2153
- });
2154
- let a = n.filter((e) => e.list === "exhibition"), o = a.filter((e) => e.exhibition?.titles?.[t]), s = o.length ? {
2155
- refs: o,
2156
- lang: t
2157
- } : {
2158
- refs: a.filter((e) => e.exhibition?.titles?.en),
2159
- lang: "en"
2160
- }, c = (e) => e?.titles?.[s.lang] ?? e?.titles?.en ?? "", l = [...s.refs].sort((e, t) => Ki(c(e.exhibition)).localeCompare(Ki(c(t.exhibition)), "en", { sensitivity: "base" }) || (e.legacy_order?.[0] ?? 0) - (t.legacy_order?.[0] ?? 0));
2161
- for (let e of l) {
2162
- let t = $(c(e.exhibition)), n = Gi(e, `${$(c(e.theme))} | ${Wi($(c(e.subtheme)))}`), i = r[r.length - 1];
2163
- i?.exhibition === e.exhibition.id ? i.links.push(n) : r.push({
2164
- exhibition: e.exhibition.id,
2165
- caption: t,
2166
- links: [n]
2167
- });
2168
- }
2169
- return r;
2170
- }
2171
- // src/dxa/gallery/ItemDetail.vue
2172
- var Ji = /* @__PURE__ */ k({ default: () => ua }), Yi = { class: "mwnf-dxa-item__languages" }, Xi = ["dir"], Zi = ["href"], Qi = ["href"], $i = ["innerHTML"], ea = ["innerHTML"], ta = ["dir"], na = { class: "mwnf-dxa-gallery-item__label" }, ra = {
2173
- key: "citation",
2174
- class: "mwnf-dxa-gallery-item__citation"
2175
- }, ia = { class: "mwnf-dxa-gallery-item__project" }, aa = { class: "mwnf-dxa-gallery-item__address" }, oa = { class: "mwnf-dxa-gallery-item__credit-label" }, sa = {
2176
- key: 1,
2177
- class: "mwnf-dxa-gallery-item__number"
2178
- }, ca = { class: "mwnf-dxa-gallery-item__number-label" }, la = ["href"], ua = {
2810
+ }, fs = /* @__PURE__ */ D({ default: () => ps }), ps = {
2179
2811
  __name: "ItemDetail",
2180
2812
  props: { id: {
2181
2813
  type: String,
2182
2814
  required: !0
2183
2815
  } },
2184
- setup(t) {
2185
- let { t: n } = J(), r = Rt(), i = It(), a = Nt(), s = Y(), c = {
2186
- ...v,
2187
- sourceDatabase: !1,
2188
- sourceCredit: !1,
2189
- shortDescriptionLabels: {
2190
- view: "gallery.sheet.viewShortDescription",
2191
- hide: "gallery.sheet.hideShortDescription"
2192
- },
2193
- related: {
2194
- ...v.related,
2195
- glossaryLabels: { tool: "gallery.related.glossary" },
2196
- dynastiesHeading: "gallery.related.dynasties",
2197
- onDisplayIn: {
2198
- ...v.related?.onDisplayIn,
2199
- exhibitionsHeading: "gallery.related.exhibitions",
2200
- galleriesHeading: "core.project.galleries",
2201
- href: (e, t) => e.site ? jt(e.site, `/item/${t.id}`) : e.legacy_host,
2202
- exhibitions: (e, t) => qi(e, t.language)
2203
- }
2204
- }
2816
+ setup(e) {
2817
+ let t = {
2818
+ viewShortDescription: "gallery.sheet.viewShortDescription",
2819
+ hideShortDescription: "gallery.sheet.hideShortDescription",
2820
+ glossary: "gallery.related.glossary",
2821
+ dynasties: "gallery.related.dynasties",
2822
+ exhibitions: "gallery.related.exhibitions",
2823
+ workingNumber: "gallery.sheet.workingNumber"
2205
2824
  };
2206
- function l(e) {
2207
- let t = i.links(e?.project_id)?.homeSite;
2208
- return (t && t !== a.manifest?.site?.key ? jt(t, `/item/${e.id}`) : null) ?? Mt(r);
2209
- }
2210
- function u(e) {
2211
- try {
2212
- let { host: t, pathname: n } = new URL(e), r = n.split("/").find(Boolean);
2213
- return r ? `${t}/${r}` : t;
2214
- } catch {
2215
- return e;
2216
- }
2217
- }
2218
- let d = (e) => s.projectColors?.[e?.project_id] ?? "";
2219
- function f(e, t) {
2220
- let n = i.label(t?.project_id) ?? "", r = n ? e.indexOf(` ${n},`) : -1;
2221
- return r < 0 ? {
2222
- before: e,
2223
- project: "",
2224
- after: ""
2225
- } : {
2226
- before: e.slice(0, r + 1),
2227
- project: n,
2228
- after: e.slice(r + 1 + n.length)
2229
- };
2230
- }
2231
- function p(e) {
2232
- return {
2233
- to: v.museum?.route?.(e.record?.partner_id) ?? null,
2234
- holder: e.text?.holder ? Dt(String(e.text.holder)) : ""
2235
- };
2236
- }
2237
- return (r, i) => (z(), M(ct, {
2238
- spec: c,
2239
- id: t.id,
2240
- class: "mwnf-dxa-item mwnf-dxa-gallery-item"
2241
- }, {
2242
- header: W(({ languages: t, language: n, select: r }) => [F("div", Yi, [L(o, {
2243
- languages: t,
2244
- language: n,
2245
- onSelect: r
2246
- }, null, 8, [
2247
- "languages",
2248
- "language",
2249
- "onSelect"
2250
- ])]), L(e)]),
2251
- "after-media": W(({ record: e, dir: t }) => [e ? (z(), P("div", {
2252
- key: 0,
2253
- class: "mwnf-dxa-gallery-item__links",
2254
- dir: t || void 0
2255
- }, [F("p", null, [F("a", {
2256
- href: l(e),
2257
- target: "_blank",
2258
- rel: "noopener"
2259
- }, [i[0] ||= F("span", {
2260
- class: "mwnf-dxa-gallery-item__icon",
2261
- "aria-hidden": "true"
2262
- }, "↗", -1), F("bdi", null, [I(H(U(n)("record.source.label")) + " ", 1), F("span", null, "(" + H(u(l(e))) + ")", 1)])], 8, Zi)]), F("p", null, [F("a", {
2263
- href: U(q).myCollection,
2264
- target: "_blank",
2265
- rel: "noopener"
2266
- }, [i[1] ||= F("span", {
2267
- class: "mwnf-dxa-gallery-item__icon",
2268
- "aria-hidden": "true"
2269
- }, "↗", -1), I(H(U(n)("record.action.addToCollection")), 1)], 8, Qi)])], 8, Xi)) : N("", !0)]),
2270
- museum: W((e) => [(z(!0), P(A, null, V([p(e)], (e) => (z(), P(A, { key: "museum" }, [e.to && e.holder ? (z(), M(U(Z), {
2271
- key: 0,
2272
- to: e.to,
2273
- class: "mwnf-dxa-gallery-item__museum"
2274
- }, {
2275
- default: W(() => [i[2] ||= F("span", {
2276
- class: "mwnf-dxa-gallery-item__icon",
2277
- "aria-hidden": "true"
2278
- }, "↗", -1), F("span", { innerHTML: e.holder }, null, 8, $i)]),
2279
- _: 2
2280
- }, 1032, ["to"])) : e.holder ? (z(), P("span", {
2281
- key: 1,
2282
- innerHTML: e.holder
2283
- }, null, 8, ea)) : N("", !0)], 64))), 128))]),
2284
- credits: W(({ record: e, credits: t, workingNumber: r, citation: i, dir: a }) => [e ? (z(), P("div", {
2285
- key: 0,
2286
- class: "mwnf-dxa-gallery-item__credits",
2287
- dir: a || void 0
2288
- }, [
2289
- i ? (z(), P(A, { key: 0 }, [F("p", na, H(U(n)("record.citation.ofThisPage")), 1), (z(!0), P(A, null, V([f(i, e)], (t) => (z(), P("p", ra, [
2290
- I(H(t.before), 1),
2291
- F("span", ia, H(t.project), 1),
2292
- I(H(t.after) + " ", 1),
2293
- F("span", aa, H(l(e)), 1)
2294
- ]))), 128))], 64)) : N("", !0),
2295
- (z(!0), P(A, null, V(t, (e) => (z(), P("p", {
2296
- key: e.label,
2297
- class: "mwnf-dxa-gallery-item__credit"
2298
- }, [F("span", oa, H(e.label), 1), F("span", null, H(e.value), 1)]))), 128)),
2299
- r ? (z(), P("p", sa, [F("span", ca, H(U(n)("gallery.sheet.workingNumber")), 1), I(H(" ") + H(r), 1)])) : N("", !0),
2300
- F("div", { class: R(["mwnf-dxa-gallery-item__source", d(e)]) }, [F("p", null, H(U(n)("record.source.label")), 1), F("p", null, [F("a", {
2301
- href: l(e),
2302
- target: "_blank",
2303
- rel: "noopener"
2304
- }, H(l(e)), 9, la)])], 2)
2305
- ], 8, ta)) : N("", !0)]),
2306
- _: 1
2307
- }, 8, ["id"]));
2825
+ return (n, r) => (L(), A(rt, {
2826
+ id: e.id,
2827
+ "item-detail": V(b),
2828
+ words: t
2829
+ }, null, 8, ["id", "item-detail"]));
2308
2830
  }
2309
- }, da = /* @__PURE__ */ k({ default: () => Ea }), fa = { class: "mwnf-dxa-timeline" }, pa = { class: "mwnf-dxa-timeline__entrance" }, ma = [
2831
+ }, ms = /* @__PURE__ */ D({ default: () => ks }), hs = { class: "mwnf-dxa-timeline" }, gs = { class: "mwnf-dxa-timeline__entrance" }, _s = [
2310
2832
  "value",
2311
2833
  "aria-label",
2312
2834
  "onChange"
2313
- ], ha = {
2835
+ ], vs = {
2314
2836
  disabled: "",
2315
2837
  value: ""
2316
- }, ga = ["value"], _a = { class: "mwnf-dxa-timeline__dates" }, va = [
2838
+ }, ys = ["value"], bs = { class: "mwnf-dxa-timeline__dates" }, xs = [
2317
2839
  "value",
2318
2840
  "aria-label",
2319
2841
  "onChange"
2320
- ], ya = {
2842
+ ], Ss = {
2321
2843
  disabled: "",
2322
2844
  value: ""
2323
- }, ba = ["value"], xa = [
2845
+ }, Cs = ["value"], ws = [
2324
2846
  "value",
2325
2847
  "aria-label",
2326
2848
  "onChange"
2327
- ], Sa = {
2849
+ ], Ts = {
2328
2850
  disabled: "",
2329
2851
  value: ""
2330
- }, Ca = ["value"], wa = { class: "mwnf-dxa-timeline__go" }, Ta = ["onClick"], Ea = {
2852
+ }, Es = ["value"], Ds = { class: "mwnf-dxa-timeline__go" }, Os = ["onClick"], ks = {
2331
2853
  __name: "Timeline",
2332
2854
  setup(e) {
2333
2855
  let t = {
@@ -2350,214 +2872,632 @@ var Ji = /* @__PURE__ */ k({ default: () => ua }), Yi = { class: "mwnf-dxa-item_
2350
2872
  end: e.end || a.at(-1)?.value
2351
2873
  });
2352
2874
  }
2353
- return (e, r) => (z(), P("div", fa, [L(D, {
2875
+ return (e, r) => (L(), M("div", hs, [F(Ye, {
2354
2876
  spec: t,
2355
2877
  class: "mwnf-dxa-timeline__form"
2356
2878
  }, {
2357
- form: W((e) => [F("div", pa, [
2358
- F("select", {
2879
+ form: H((e) => [N("div", gs, [
2880
+ N("select", {
2359
2881
  class: "mwnf-dxa-timeline__country",
2360
2882
  value: e.filters.country,
2361
2883
  "aria-label": e.t("gallery.timeline.selectCountry"),
2362
2884
  onChange: (t) => e.filters.country = t.target.value
2363
- }, [F("option", ha, H(e.t("gallery.timeline.selectCountry")), 1), (z(!0), P(A, null, V(e.countries, (e) => (z(), P("option", {
2885
+ }, [N("option", vs, B(e.t("gallery.timeline.selectCountry")), 1), (L(!0), M(O, null, z(e.countries, (e) => (L(), M("option", {
2364
2886
  key: e.value,
2365
2887
  value: e.value
2366
- }, H(e.label), 9, ga))), 128))], 40, ma),
2367
- F("div", _a, [F("select", {
2888
+ }, B(e.label), 9, ys))), 128))], 40, _s),
2889
+ N("div", bs, [N("select", {
2368
2890
  value: e.filters.begin,
2369
2891
  "aria-label": e.t("gallery.timeline.startDate"),
2370
2892
  onChange: (t) => e.filters.begin = t.target.value
2371
- }, [F("option", ya, H(e.t("gallery.timeline.startDate")), 1), (z(!0), P(A, null, V(e.options.begin ?? [], (e) => (z(), P("option", {
2893
+ }, [N("option", Ss, B(e.t("gallery.timeline.startDate")), 1), (L(!0), M(O, null, z(e.options.begin ?? [], (e) => (L(), M("option", {
2372
2894
  key: e.value,
2373
2895
  value: e.value
2374
- }, H(e.label), 9, ba))), 128))], 40, va), F("select", {
2896
+ }, B(e.label), 9, Cs))), 128))], 40, xs), N("select", {
2375
2897
  value: e.filters.end,
2376
2898
  "aria-label": e.t("gallery.timeline.endDate"),
2377
2899
  onChange: (t) => e.filters.end = t.target.value
2378
- }, [F("option", Sa, H(e.t("gallery.timeline.endDate")), 1), (z(!0), P(A, null, V(e.options.end ?? [], (e) => (z(), P("option", {
2900
+ }, [N("option", Ts, B(e.t("gallery.timeline.endDate")), 1), (L(!0), M(O, null, z(e.options.end ?? [], (e) => (L(), M("option", {
2379
2901
  key: e.value,
2380
2902
  value: e.value
2381
- }, H(e.label), 9, Ca))), 128))], 40, xa)]),
2382
- F("div", wa, [F("button", {
2903
+ }, B(e.label), 9, Es))), 128))], 40, ws)]),
2904
+ N("div", Ds, [N("button", {
2383
2905
  type: "button",
2384
2906
  onClick: (t) => n(e)
2385
- }, H(e.t("core.action.go")), 9, Ta)])
2907
+ }, B(e.t("core.action.go")), 9, Os)])
2386
2908
  ])]),
2387
2909
  _: 1
2388
- }), L(U(G), {
2910
+ }), F(V(W), {
2389
2911
  class: "mwnf-dxa-timeline__intro",
2390
2912
  dir: "auto",
2391
2913
  keypath: "gallery.timeline.intro"
2392
2914
  })]));
2393
2915
  }
2394
- }, Da = /* @__PURE__ */ k({ default: () => ka }), Oa = { class: "mwnf-dxa-home" }, ka = {
2916
+ }, As = /* @__PURE__ */ D({ default: () => Ms }), js = { class: "mwnf-dxa-home" }, Ms = {
2395
2917
  __name: "Home",
2396
2918
  setup(e) {
2397
- return (e, t) => (z(), P("div", Oa));
2919
+ return (e, t) => (L(), M("div", js));
2398
2920
  }
2399
- }, Aa = /* @__PURE__ */ k({ default: () => Ma }), ja = { class: "mwnf-dxa-about" }, Ma = {
2921
+ }, Ns = /* @__PURE__ */ D({ default: () => Fs }), Ps = { class: "mwnf-dxa-about" }, Fs = {
2400
2922
  __name: "About",
2401
2923
  setup(e) {
2402
- return (e, t) => (z(), P("div", ja, [L(ut, { "about-mode": "" })]));
2924
+ return (e, t) => (L(), M("div", Ps, [F(it, { "about-mode": "" })]));
2403
2925
  }
2404
- }, Na = /* @__PURE__ */ k({ default: () => Ia }), Pa = { class: "mwnf-dxa-themes" }, Fa = { class: "mwnf-dxa-themes__container" }, Ia = {
2926
+ }, Is = /* @__PURE__ */ D({ default: () => $s }), Ls = { class: "mwnf-dxa-themes-page" }, Rs = { class: "mwnf-dxa-themes-page__container" }, zs = ["onClick"], Bs = ["innerHTML"], Vs = {
2927
+ key: 0,
2928
+ class: "mwnf-dxa-themes-page__strips"
2929
+ }, Hs = ["src"], Us = {
2930
+ key: 1,
2931
+ class: "mwnf-dxa-themes-page__open"
2932
+ }, Ws = { class: "mwnf-dxa-themes-page__image" }, Gs = ["src", "alt"], Ks = {
2933
+ key: 1,
2934
+ class: "mwnf-dxa-themes-page__caption"
2935
+ }, qs = ["innerHTML"], Js = { class: "mwnf-dxa-themes-page__info" }, Ys = { class: "mwnf-dxa-themes-page__description" }, Xs = { class: "mwnf-dxa-themes-page__subthemes" }, Zs = { class: "mwnf-dxa-themes-page__subthemes-label" }, Qs = { class: "mwnf-dxa-themes-page__gallery" }, $s = {
2405
2936
  __name: "Themes",
2406
2937
  setup(e) {
2407
- let { listedThemes: t, romanFor: n, themeText: r } = be, { t: i, locale: o } = J(), s = j(() => t.value.map((e) => ({
2408
- title: r(e, o.value).title ?? e.internal_name ?? "",
2409
- number: n(e.display_order),
2410
- children: [{
2411
- title: i("exhibition.theme.overview"),
2412
- to: ft(e)
2413
- }, ...(e.sub_themes ?? []).map((e) => ({
2414
- title: r(e, o.value).title ?? e.internal_name ?? "",
2415
- to: ft(e)
2416
- }))]
2417
- })));
2418
- return (e, t) => (z(), P("div", Pa, [F("div", Fa, [L(a, {
2419
- cards: s.value,
2420
- variant: "accordion"
2421
- }, null, 8, ["cards"])])]));
2938
+ let { listedThemes: t, pictureById: n, pictureParent: r, romanFor: i, themeText: a } = we, { t: o, locale: s } = q(), c = R(!1), l = R(null);
2939
+ function u(e) {
2940
+ c.value || (l.value = l.value === e ? null : e);
2941
+ }
2942
+ function d() {
2943
+ c.value = !c.value, l.value = null;
2944
+ }
2945
+ function f(e) {
2946
+ return !e || e.length <= 250 ? e ?? "" : `${e.substring(0, e.lastIndexOf(" ", 250))}...`;
2947
+ }
2948
+ function p(e) {
2949
+ let t = e ? r(e) : null;
2950
+ if (!t) return "";
2951
+ let n = w("items", t.id, s.value);
2952
+ return [
2953
+ T("items", t.id),
2954
+ n.holder,
2955
+ n.location,
2956
+ T("countries", t.country_id)
2957
+ ].filter(Boolean).join(", ");
2958
+ }
2959
+ let m = k(() => t.value.map((e, t) => {
2960
+ let r = e.cover_picture_item_id ? n.value.get(e.cover_picture_item_id) : null, o = a(e, s.value);
2961
+ return {
2962
+ index: t,
2963
+ id: e.id,
2964
+ title: o.title ?? e.internal_name ?? "",
2965
+ numeral: i(e.display_order),
2966
+ cover: r?.image_url ?? "",
2967
+ caption: p(r),
2968
+ excerpt: f(Dt(String(o.presentation ?? ""))),
2969
+ to: at(e),
2970
+ gallery: {
2971
+ name: "theme-gallery",
2972
+ params: { id: String(e.display_order - 1) }
2973
+ },
2974
+ subThemes: (e.sub_themes ?? []).map((e, t) => ({
2975
+ label: `${t + 1}. ${a(e, s.value).title ?? e.internal_name ?? ""}`,
2976
+ to: at(e)
2977
+ }))
2978
+ };
2979
+ }));
2980
+ return (e, t) => (L(), M("div", Ls, [N("div", Rs, [N("div", {
2981
+ class: "mwnf-dxa-themes-page__show-all",
2982
+ onClick: d
2983
+ }, [N("span", null, B(c.value ? V(o)("exhibition.themes.collapseAll") : V(o)("exhibition.themes.expandAll")), 1)]), (L(!0), M(O, null, z(m.value, (e) => (L(), M("div", {
2984
+ key: e.id,
2985
+ class: "mwnf-dxa-themes-page__theme"
2986
+ }, [N("div", {
2987
+ class: I(["mwnf-dxa-themes-page__title", { "mwnf-dxa-themes-page__title--fixed": c.value }]),
2988
+ onClick: (t) => u(e.index)
2989
+ }, [N("span", null, [
2990
+ P(B(V(o)("exhibition.theme.romanLabel")) + " " + B(e.numeral) + " ▪ ", 1),
2991
+ N("span", { innerHTML: V(K)(e.title) }, null, 8, Bs),
2992
+ c.value ? j("", !0) : (L(), M(O, { key: 0 }, [P(B(l.value === e.index ? "▴" : "▾"), 1)], 64))
2993
+ ])], 10, zs), l.value !== e.index && !c.value ? (L(), M("div", Vs, [(L(), M(O, null, z(4, (t) => N("img", {
2994
+ key: t,
2995
+ src: e.cover,
2996
+ alt: ""
2997
+ }, null, 8, Hs)), 64))])) : (L(), M("div", Us, [N("div", Ws, [e.cover ? (L(), M("img", {
2998
+ key: 0,
2999
+ src: e.cover,
3000
+ alt: V(Dt)(e.title)
3001
+ }, null, 8, Gs)) : j("", !0), e.caption ? (L(), M("div", Ks, [N("span", { innerHTML: V(K)(e.caption) }, null, 8, qs)])) : j("", !0)]), N("div", Js, [
3002
+ N("div", Ys, [
3003
+ N("span", null, B(e.excerpt), 1),
3004
+ t[0] ||= P(" " + B(" "), -1),
3005
+ F(V(Y), {
3006
+ to: e.to,
3007
+ class: "mwnf-dxa-themes-page__link mwnf-dxa-themes-page__see-more"
3008
+ }, {
3009
+ default: H(() => [P(B(V(o)("exhibition.themes.seeMore")), 1)]),
3010
+ _: 1
3011
+ }, 8, ["to"])
3012
+ ]),
3013
+ N("div", Xs, [N("div", Zs, B(V(o)("exhibition.theme.inThisTheme")), 1), (L(!0), M(O, null, z(e.subThemes, (e) => (L(), M("div", { key: e.label }, [F(V(Y), {
3014
+ to: e.to,
3015
+ class: "mwnf-dxa-themes-page__link"
3016
+ }, {
3017
+ default: H(() => [P(B(e.label), 1)]),
3018
+ _: 2
3019
+ }, 1032, ["to"])]))), 128))]),
3020
+ N("div", Qs, [F(V(Y), { to: e.gallery }, {
3021
+ default: H(() => [P(B(V(o)("exhibition.themes.seeGallery")) + " " + B(e.numeral), 1)]),
3022
+ _: 2
3023
+ }, 1032, ["to"])])
3024
+ ])]))]))), 128))])]));
2422
3025
  }
2423
- }, La = /* @__PURE__ */ k({ default: () => Ba }), Ra = { class: "mwnf-dxa-theme-gallery__empty" }, za = {
3026
+ }, ec = /* @__PURE__ */ D({ default: () => vc }), tc = {
3027
+ key: 0,
3028
+ class: "mwnf-dxa-theme-gallery-page"
3029
+ }, nc = { class: "mwnf-dxa-theme-gallery-page__header" }, rc = ["innerHTML"], ic = {
3030
+ key: 0,
3031
+ class: "mwnf-dxa-theme-gallery-page__bold"
3032
+ }, ac = ["innerHTML"], oc = { class: "mwnf-dxa-theme-gallery-page__wrapper" }, sc = { class: "mwnf-dxa-theme-gallery-page__content" }, cc = { class: "mwnf-dxa-theme-gallery-page__objects" }, lc = { class: "mwnf-dxa-theme-gallery-page__filter" }, uc = { class: "mwnf-dxa-theme-gallery-page__label" }, dc = ["disabled", "value"], fc = {
3033
+ value: "",
3034
+ disabled: ""
3035
+ }, pc = ["value"], mc = {
3036
+ key: 0,
3037
+ class: "mwnf-dxa-theme-gallery-page__reset"
3038
+ }, hc = {
3039
+ key: 0,
3040
+ class: "mwnf-dxa-theme-gallery-page__top"
3041
+ }, gc = ["aria-label"], _c = {
2424
3042
  key: 1,
2425
3043
  class: "mwnf-loader"
2426
- }, Ba = {
3044
+ }, vc = {
2427
3045
  __name: "ThemeGallery",
2428
3046
  setup(t) {
2429
- let { pictureById: n, pictureParent: r, romanFor: i, themeByRouteId: a, themeText: o, themeTree: s } = be, c = Rt(), { t: l, locale: u } = J(), d = j(() => a(c.params.id)), f = j(() => {
2430
- let e = /* @__PURE__ */ new Set();
2431
- if (!d.value) return e;
2432
- for (let t of s.itemsUnder(d.value.id)) {
2433
- let i = r(n.value.get(t));
2434
- i && e.add(i.id);
3047
+ let { pictureParent: n, romanFor: r, themeByRouteId: i, themeText: a, themePictures: o } = we, s = X(), c = It(), { t: l, locale: u } = q(), d = k(() => i(s.params.id)), f = k(() => d.value?.sub_themes ?? []), p = k(() => {
3048
+ let e = Number(s.params.subtheme);
3049
+ return Number.isInteger(e) && e >= 1 && e <= f.value.length ? e : null;
3050
+ }), m = (e) => a(e, u.value).title ?? e?.internal_name ?? "";
3051
+ function h(e) {
3052
+ c.push({
3053
+ name: "theme-gallery",
3054
+ params: {
3055
+ id: s.params.id,
3056
+ subtheme: e ? String(e) : ""
3057
+ }
3058
+ });
3059
+ }
3060
+ function g(e) {
3061
+ return e && e.length > 80 ? `${e.slice(0, 80)}...` : e ?? "";
3062
+ }
3063
+ let _ = k(() => {
3064
+ let e = p.value ? [f.value[p.value - 1]] : f.value, t = [], r = /* @__PURE__ */ new Set();
3065
+ for (let i of e) for (let e of o(i)) {
3066
+ let a = n(e);
3067
+ if (!a || !e.image_url || r.has(e.image_url)) continue;
3068
+ r.add(e.image_url);
3069
+ let o = w("items", a.id, u.value), s = w("themes", `${i.id}/${e.picture_item_id}`, u.value).image_caption ?? "", c = K(T("items", a.id));
3070
+ t.push({
3071
+ id: e.picture_item_id,
3072
+ image: e.image_url,
3073
+ imageAlt: T("items", a.id),
3074
+ name: s ? `${K(s)}, ${c}` : c,
3075
+ date: g(o.dates),
3076
+ partner: o.holder || T("partners", a.partner_id),
3077
+ place: [o.location, T("countries", a.country_id)].filter(Boolean).join(", "),
3078
+ project: "",
3079
+ to: {
3080
+ name: "item",
3081
+ params: { id: a.id }
3082
+ },
3083
+ start: a.start_date ?? 0
3084
+ });
2435
3085
  }
2436
- return e;
2437
- }), p = j(() => o(d.value, u.value).title ?? d.value?.internal_name ?? ""), m = j(() => ({
2438
- entity: "items",
2439
- scope: (e) => f.value.has(e.id),
2440
- sort: { undated: "first" },
2441
- variant: "grid",
2442
- recordRoute: "item",
2443
- record: (e, t) => Ve(e, t.t),
2444
- actionLabel: "catalogue.results.seeDatabaseEntry",
2445
- empty: "exhibition.theme.noRecords",
2446
- summary: () => [{
2447
- label: l("exhibition.theme.galleryLabel"),
2448
- value: `${l("exhibition.theme.romanLabel")} ${i(d.value?.display_order ?? 1)} | ${p.value}`
2449
- }]
2450
- }));
2451
- return (t, n) => d.value ? (z(), M(E, {
2452
- key: 0,
2453
- spec: m.value,
2454
- class: "mwnf-dxa-theme-gallery"
2455
- }, {
2456
- before: W(() => [L(e)]),
2457
- empty: W(() => [F("p", Ra, H(U(l)("exhibition.theme.noRecords")), 1)]),
2458
- _: 1
2459
- }, 8, ["spec"])) : (z(), P("div", za, H(U(l)("exhibition.theme.notInExhibition")), 1));
3086
+ return t.sort((e, t) => (e.start ?? 0) - (t.start ?? 0));
3087
+ }), v = R(!1), y = () => {
3088
+ v.value = document.body.scrollHeight > window.innerHeight;
3089
+ };
3090
+ dt(() => {
3091
+ y(), window.addEventListener("scroll", y), window.addEventListener("resize", y);
3092
+ }), ut(() => {
3093
+ window.removeEventListener("scroll", y), window.removeEventListener("resize", y);
3094
+ });
3095
+ let ee = () => window.scrollTo({
3096
+ top: 0,
3097
+ behavior: "smooth"
3098
+ });
3099
+ return (t, n) => d.value ? (L(), M("div", tc, [
3100
+ F(e),
3101
+ N("div", nc, [N("span", null, [
3102
+ P(B(V(l)("exhibition.theme.romanLabel")) + " " + B(V(r)(d.value.display_order)) + " | ", 1),
3103
+ N("span", {
3104
+ class: "mwnf-dxa-theme-gallery-page__bold",
3105
+ innerHTML: V(K)(m(d.value))
3106
+ }, null, 8, rc),
3107
+ p.value ? (L(), M("span", ic, [n[2] ||= P(" ▪ ", -1), N("span", { innerHTML: V(K)(m(f.value[p.value - 1])) }, null, 8, ac)])) : j("", !0),
3108
+ P(" | " + B(V(l)("exhibition.theme.galleryLabel")), 1)
3109
+ ])]),
3110
+ N("div", oc, [N("div", sc, [N("div", cc, [F(Q, {
3111
+ rows: _.value,
3112
+ family: "exhibition"
3113
+ }, null, 8, ["rows"])]), N("div", lc, [
3114
+ N("div", uc, B(V(l)("exhibition.themeGallery.filterBy")), 1),
3115
+ N("select", {
3116
+ class: "mwnf-dxa-theme-gallery-page__select",
3117
+ disabled: !_.value.length,
3118
+ value: p.value ? String(p.value) : "",
3119
+ onChange: n[0] ||= (e) => h(e.target.value)
3120
+ }, [N("option", fc, B(V(l)("exhibition.themeGallery.select")), 1), (L(!0), M(O, null, z(f.value, (e, t) => (L(), M("option", {
3121
+ key: e.id,
3122
+ value: String(t + 1)
3123
+ }, B(t + 1) + ". " + B(m(e)), 9, pc))), 128))], 40, dc),
3124
+ p.value ? (L(), M("div", mc, [N("button", {
3125
+ type: "button",
3126
+ onClick: n[1] ||= (e) => h("")
3127
+ }, B(V(l)("exhibition.theme.seeAllInTheme")), 1)])) : j("", !0)
3128
+ ])])]),
3129
+ v.value ? (L(), M("div", hc, [N("button", {
3130
+ type: "button",
3131
+ "aria-label": V(l)("exhibition.themeGallery.top"),
3132
+ onClick: ee
3133
+ }, "⌃", 8, gc)])) : j("", !0)
3134
+ ])) : (L(), M("div", _c, B(V(l)("exhibition.theme.notInExhibition")), 1));
2460
3135
  }
2461
- }, Va = /* @__PURE__ */ k({ default: () => Ua }), Ha = { class: "mwnf-dxa-item__languages" }, Ua = {
3136
+ }, yc = /* @__PURE__ */ D({ default: () => bc }), bc = {
2462
3137
  __name: "ItemDetail",
2463
3138
  props: { id: {
2464
3139
  type: String,
2465
3140
  required: !0
2466
3141
  } },
2467
- setup(t) {
2468
- return (n, r) => (z(), M(ct, {
2469
- spec: U(Qe),
2470
- id: t.id,
2471
- "data-getter": (e) => U(w).get(e),
2472
- class: "mwnf-dxa-item"
2473
- }, {
2474
- header: W(({ languages: t, language: n, select: r }) => [F("div", Ha, [L(o, {
2475
- languages: t,
2476
- language: n,
2477
- onSelect: r
2478
- }, null, 8, [
2479
- "languages",
2480
- "language",
2481
- "onSelect"
2482
- ])]), L(e)]),
2483
- _: 1
2484
- }, 8, [
2485
- "spec",
2486
- "id",
2487
- "data-getter"
2488
- ]));
2489
- }
2490
- }, Wa = /* @__PURE__ */ k({ default: () => Ga }), Ga = {
2491
- __name: "RelatedContent",
2492
3142
  setup(e) {
2493
3143
  let t = {
3144
+ viewShortDescription: "exhibition.sheet.viewShortDescription",
3145
+ hideShortDescription: "exhibition.sheet.hideShortDescription",
3146
+ glossary: "exhibition.sheet.glossary",
3147
+ dynasties: "exhibition.sheet.dynasties",
3148
+ exhibitions: "exhibition.sheet.exhibitions",
3149
+ workingNumber: "exhibition.sheet.workingNumber"
3150
+ }, n = (e) => Le.value.get(e);
3151
+ return (r, i) => (L(), A(rt, {
3152
+ id: e.id,
3153
+ "item-detail": V(Ne),
3154
+ "data-getter": n,
3155
+ words: t,
3156
+ class: "mwnf-dxa-exhibition-item"
3157
+ }, null, 8, ["id", "item-detail"]));
3158
+ }
3159
+ }, xc = /* @__PURE__ */ D({ default: () => Ic }), Sc = { class: "mwnf-dxa-related-page" }, Cc = { class: "mwnf-dxa-related-page__container" }, wc = { key: 0 }, Tc = { class: "mwnf-dxa-related-page__heading" }, Ec = ["innerHTML"], Dc = ["innerHTML"], Oc = { key: 2 }, kc = { key: 3 }, Ac = ["href", "innerHTML"], jc = ["innerHTML"], Mc = { key: 4 }, Nc = ["href"], Pc = ["innerHTML"], Fc = ["innerHTML"], Ic = {
3160
+ __name: "RelatedContent",
3161
+ setup(t) {
3162
+ let n = {
2494
3163
  1: "exhibition.relatedCategory.furtherReading",
2495
3164
  2: "exhibition.relatedCategory.mwnfContent",
2496
3165
  3: "exhibition.relatedCategory.partnerContent",
2497
3166
  4: "exhibition.relatedCategory.otherContent"
2498
- }, n = [
3167
+ }, r = [
2499
3168
  1,
2500
3169
  2,
2501
3170
  3,
2502
3171
  4
2503
- ], { t: r, locale: i } = J();
2504
- function a(e) {
2505
- return e?.[i.value] ?? e?.en ?? "";
2506
- }
2507
- function o(e) {
2508
- return e.document_path ? C(e.document_path, "hi_res") : e.url ?? null;
2509
- }
3172
+ ], { t: i, locale: a } = q(), o = (e) => e?.[a.value] ?? e?.en ?? "";
2510
3173
  function s(e) {
2511
- return a(e.titles) ? T(a(e.titles)) : a(e.texts) ? T(a(e.texts)) : o(e) || r("exhibition.relatedCategory.unknown");
2512
- }
2513
- function c(e) {
2514
- if (!a(e.titles)) return "";
2515
- let t = [];
2516
- return (e.entity_location || e.entity_country) && t.push([e.entity_location, e.entity_country ? Xe(e.entity_country) : ""].filter(Boolean).join(", ")), (e.authors || e.type_resource) && t.push([e.authors, e.type_resource].filter(Boolean).join(", ")), a(e.descriptions) && t.push(T(a(e.descriptions))), e.further_reading && t.push(T(e.further_reading)), t.join(" — ");
3174
+ let t = e.document_path ? Ve(e.document_path, "hi_res") : "";
3175
+ return {
3176
+ reading: Et(o(e.texts) || e.further_reading || ""),
3177
+ partner: e.partner_name ? K(e.partner_name) : "",
3178
+ place: [e.entity_location, e.entity_country ? ze(e.entity_country) : ""].filter(Boolean).join(", "),
3179
+ title: o(e.titles) ? K(o(e.titles)) : "",
3180
+ href: t || e.url || "",
3181
+ byline: [e.authors, e.type_resource].filter(Boolean).map((e) => K(e)).join(", "),
3182
+ description: o(e.descriptions) ? K(o(e.descriptions)) : ""
3183
+ };
2517
3184
  }
2518
- function l() {
3185
+ let c = k(() => {
2519
3186
  let e = /* @__PURE__ */ new Map();
2520
- for (let t of He.value ?? []) {
3187
+ for (let t of be.value ?? []) {
2521
3188
  let n = e.get(t.category_id);
2522
3189
  n ? n.push(t) : e.set(t.category_id, [t]);
2523
3190
  }
2524
- return [...n.filter((t) => e.has(t)), ...[...e.keys()].filter((e) => !n.includes(e)).sort()].map((n) => ({
2525
- heading: t[n] ?? "exhibition.relatedCategory.unknown",
2526
- links: [...e.get(n)].sort((e, t) => (e.display_order ?? 0) - (t.display_order ?? 0)).map((e) => ({
2527
- label: s(e),
2528
- href: o(e) ?? void 0,
2529
- note: c(e) || void 0
2530
- }))
3191
+ return [...r.filter((t) => e.has(t)), ...[...e.keys()].filter((e) => !r.includes(e)).sort()].map((t) => ({
3192
+ id: t,
3193
+ heading: n[t] ?? "exhibition.relatedCategory.unknown",
3194
+ entries: [...e.get(t)].sort((e, t) => (e.display_order ?? 0) - (t.display_order ?? 0)).map(s)
2531
3195
  }));
2532
- }
2533
- let u = {
2534
- groups: l,
2535
- empty: "exhibition.related.notAvailable",
2536
- back: {
2537
- label: "core.action.back",
2538
- to: { name: "home" }
2539
- }
2540
- };
2541
- return (e, t) => (z(), M($e, {
2542
- spec: u,
2543
- class: "mwnf-dxa-related"
2544
- }));
3196
+ });
3197
+ return (t, n) => (L(), M("div", Sc, [F(e), N("div", Cc, [c.value.length ? j("", !0) : (L(), M("p", wc, B(V(i)("exhibition.related.notAvailable")), 1)), (L(!0), M(O, null, z(c.value, (e) => (L(), M("div", {
3198
+ key: e.id,
3199
+ class: "mwnf-dxa-related-page__category"
3200
+ }, [N("div", Tc, B(V(i)(e.heading)), 1), (L(!0), M(O, null, z(e.entries, (e, t) => (L(), M("div", {
3201
+ key: t,
3202
+ class: "mwnf-dxa-related-page__entry"
3203
+ }, [
3204
+ e.reading ? (L(), M("div", {
3205
+ key: 0,
3206
+ innerHTML: e.reading
3207
+ }, null, 8, Ec)) : j("", !0),
3208
+ e.partner ? (L(), M("div", {
3209
+ key: 1,
3210
+ innerHTML: e.partner
3211
+ }, null, 8, Dc)) : j("", !0),
3212
+ e.place ? (L(), M("div", Oc, B(e.place), 1)) : j("", !0),
3213
+ e.title ? (L(), M("div", kc, [e.href ? (L(), M("a", {
3214
+ key: 0,
3215
+ href: e.href,
3216
+ target: "_blank",
3217
+ rel: "noopener",
3218
+ innerHTML: e.title
3219
+ }, null, 8, Ac)) : (L(), M("span", {
3220
+ key: 1,
3221
+ innerHTML: e.title
3222
+ }, null, 8, jc))])) : e.href ? (L(), M("div", Mc, [N("a", {
3223
+ href: e.href,
3224
+ target: "_blank",
3225
+ rel: "noopener"
3226
+ }, B(e.href), 9, Nc)])) : j("", !0),
3227
+ e.byline ? (L(), M("div", {
3228
+ key: 5,
3229
+ innerHTML: e.byline
3230
+ }, null, 8, Pc)) : j("", !0),
3231
+ e.description ? (L(), M("div", {
3232
+ key: 6,
3233
+ innerHTML: e.description
3234
+ }, null, 8, Fc)) : j("", !0)
3235
+ ]))), 128))]))), 128))])]));
2545
3236
  }
2546
- }, Ka = /* @__PURE__ */ k({ default: () => qa }), qa = {
3237
+ }, Lc = /* @__PURE__ */ D({ default: () => Qc }), Rc = { class: "mwnf-dxa-timeline mwnf-dxa-exhibition-timeline" }, zc = { class: "mwnf-dxa-timeline__entrance" }, Bc = [
3238
+ "value",
3239
+ "aria-label",
3240
+ "onChange"
3241
+ ], Vc = {
3242
+ disabled: "",
3243
+ value: ""
3244
+ }, Hc = ["value"], Uc = { class: "mwnf-dxa-timeline__dates" }, Wc = [
3245
+ "value",
3246
+ "aria-label",
3247
+ "onChange"
3248
+ ], Gc = {
3249
+ disabled: "",
3250
+ value: ""
3251
+ }, Kc = ["value"], qc = [
3252
+ "value",
3253
+ "aria-label",
3254
+ "onChange"
3255
+ ], Jc = {
3256
+ disabled: "",
3257
+ value: ""
3258
+ }, Yc = ["value"], Xc = { class: "mwnf-dxa-timeline__go" }, Zc = ["onClick"], Qc = {
2547
3259
  __name: "Timeline",
2548
3260
  setup(e) {
2549
- let t = j(() => ({
2550
- ...Oe.value,
2551
- entrance: !0
2552
- }));
2553
- return (e, n) => (z(), M(D, { spec: t.value }, {
2554
- after: W(() => [L(U(G), {
2555
- class: "mwnf-prose mwnf-dxa-timeline__intro",
2556
- dir: "auto",
2557
- keypath: "exhibition.timeline.intro"
2558
- })]),
3261
+ let t = {
3262
+ "catalogue.era.ad": "exhibition.era.ad",
3263
+ "catalogue.era.bc": "exhibition.era.bc"
3264
+ }, n = ({ years: e, t: n }) => Ft(e.min, e.max, Pt(n, t)), r = k(() => ({
3265
+ ...S.value,
3266
+ entrance: !0,
3267
+ controls: S.value.controls.map((e) => e.options ? {
3268
+ ...e,
3269
+ options: n
3270
+ } : e)
3271
+ })), i = k(() => S.value.scope === "country");
3272
+ function a({ filters: e, options: t, go: n }) {
3273
+ let r = t.begin ?? [], a = t.end ?? [];
3274
+ n({
3275
+ ...i.value && e.country ? { country: e.country } : {},
3276
+ begin: e.begin || r[0]?.value,
3277
+ end: e.end || a.at(-1)?.value
3278
+ });
3279
+ }
3280
+ return (e, t) => (L(), M("div", Rc, [F(Ye, {
3281
+ spec: r.value,
3282
+ class: "mwnf-dxa-timeline__form"
3283
+ }, {
3284
+ form: H((e) => [N("div", zc, [
3285
+ i.value && e.countries?.length ? (L(), M("select", {
3286
+ key: 0,
3287
+ class: "mwnf-dxa-timeline__country",
3288
+ value: e.filters.country,
3289
+ "aria-label": e.t("exhibition.timeline.selectCountry"),
3290
+ onChange: (t) => e.filters.country = t.target.value
3291
+ }, [N("option", Vc, B(e.t("exhibition.timeline.selectCountry")), 1), (L(!0), M(O, null, z(e.countries, (e) => (L(), M("option", {
3292
+ key: e.value,
3293
+ value: e.value
3294
+ }, B(e.label), 9, Hc))), 128))], 40, Bc)) : j("", !0),
3295
+ N("div", Uc, [N("select", {
3296
+ value: e.filters.begin,
3297
+ "aria-label": e.t("exhibition.collection.startDate"),
3298
+ onChange: (t) => e.filters.begin = t.target.value
3299
+ }, [N("option", Gc, B(e.t("exhibition.collection.startDate")), 1), (L(!0), M(O, null, z(e.options.begin ?? [], (e) => (L(), M("option", {
3300
+ key: e.value,
3301
+ value: e.value
3302
+ }, B(e.label), 9, Kc))), 128))], 40, Wc), N("select", {
3303
+ value: e.filters.end,
3304
+ "aria-label": e.t("exhibition.collection.endDate"),
3305
+ onChange: (t) => e.filters.end = t.target.value
3306
+ }, [N("option", Jc, B(e.t("exhibition.collection.endDate")), 1), (L(!0), M(O, null, z(e.options.end ?? [], (e) => (L(), M("option", {
3307
+ key: e.value,
3308
+ value: e.value
3309
+ }, B(e.label), 9, Yc))), 128))], 40, qc)]),
3310
+ N("div", Xc, [N("button", {
3311
+ type: "button",
3312
+ onClick: (t) => a(e)
3313
+ }, B(e.t("core.action.go")), 9, Zc)])
3314
+ ])]),
2559
3315
  _: 1
2560
- }, 8, ["spec"]));
3316
+ }, 8, ["spec"]), F(V(W), {
3317
+ class: "mwnf-dxa-timeline__intro",
3318
+ dir: "auto",
3319
+ keypath: "exhibition.timeline.intro"
3320
+ })]));
3321
+ }
3322
+ }, $c = { class: "mwnf-picture-gallery" }, el = {
3323
+ key: 0,
3324
+ class: "mwnf-picture-gallery__selected"
3325
+ }, tl = { class: "mwnf-picture-gallery__image" }, nl = ["src", "alt"], rl = { class: "mwnf-picture-gallery__details" }, il = { class: "mwnf-picture-gallery__detail mwnf-picture-gallery__detail--title" }, al = { key: 0 }, ol = ["innerHTML"], sl = {
3326
+ key: 0,
3327
+ class: "mwnf-picture-gallery__label"
3328
+ }, cl = ["innerHTML"], ll = {
3329
+ key: 0,
3330
+ class: "mwnf-picture-gallery__detail"
3331
+ }, ul = {
3332
+ key: 2,
3333
+ class: "mwnf-picture-gallery__unresolved"
3334
+ }, dl = {
3335
+ key: 1,
3336
+ class: "mwnf-picture-gallery__empty"
3337
+ }, fl = {
3338
+ key: 2,
3339
+ class: "mwnf-picture-gallery__strip"
3340
+ }, pl = { class: "mwnf-picture-gallery__thumbs" }, ml = ["onClick"], hl = ["src", "alt"], gl = { class: "mwnf-picture-gallery__thumb-text" }, _l = { key: 0 }, vl = ["innerHTML"], yl = { key: 1 }, bl = {
3341
+ key: 0,
3342
+ class: "mwnf-picture-gallery__toggle"
3343
+ }, xl = {
3344
+ __name: "PictureGallery",
3345
+ props: {
3346
+ pictures: {
3347
+ type: Array,
3348
+ default: () => []
3349
+ },
3350
+ selectedId: {
3351
+ type: [String, Number],
3352
+ default: null
3353
+ },
3354
+ seeItemEntry: {
3355
+ type: String,
3356
+ default: "exhibition.theme.seeItemEntry"
3357
+ },
3358
+ unresolvedEntry: {
3359
+ type: String,
3360
+ default: "exhibition.theme.recordNotInSite"
3361
+ },
3362
+ emptyEntry: {
3363
+ type: String,
3364
+ default: "exhibition.theme.additionalContent"
3365
+ },
3366
+ addRelatedEntry: {
3367
+ type: String,
3368
+ default: "exhibition.theme.addRelatedWorks"
3369
+ },
3370
+ hideRelatedEntry: {
3371
+ type: String,
3372
+ default: "exhibition.theme.hideRelatedWorks"
3373
+ }
3374
+ },
3375
+ emits: ["update:selectedId"],
3376
+ setup(e, { emit: t }) {
3377
+ let r = e, i = t, { t: a } = q(), o = k(() => r.pictures.find((e) => e.id === r.selectedId) ?? null), s = k(() => r.pictures.some((e) => e.backRelated?.length)), c = R(!1);
3378
+ yt(() => r.pictures, () => {
3379
+ c.value = !1;
3380
+ });
3381
+ let l = k(() => c.value ? r.pictures : r.pictures.filter((e) => !e.backRelated?.length));
3382
+ function u(e) {
3383
+ i("update:selectedId", e.id);
3384
+ }
3385
+ return (t, r) => (L(), M("div", $c, [o.value ? (L(), M("div", el, [N("div", tl, [N("img", {
3386
+ src: o.value.image,
3387
+ alt: o.value.imageAlt ?? ""
3388
+ }, null, 8, nl)]), N("div", rl, [
3389
+ N("div", il, [o.value.imageCaption ? (L(), M("span", al, B(o.value.imageCaption) + ", ", 1)) : j("", !0), N("span", { innerHTML: o.value.name }, null, 8, ol)]),
3390
+ (L(!0), M(O, null, z(o.value.fields ?? [], (e, t) => (L(), M("div", {
3391
+ key: t,
3392
+ class: "mwnf-picture-gallery__detail"
3393
+ }, [e.label ? (L(), M("span", sl, B(e.label), 1)) : j("", !0), N("span", { innerHTML: e.value }, null, 8, cl)]))), 128)),
3394
+ o.value.detail ? (L(), M("div", ll, B(o.value.detail), 1)) : j("", !0),
3395
+ o.value.to ? (L(), A(n, {
3396
+ key: 1,
3397
+ class: "mwnf-picture-gallery__link",
3398
+ to: o.value.to
3399
+ }, {
3400
+ default: H(() => [P(B(V(a)(e.seeItemEntry)) + " →", 1)]),
3401
+ _: 1
3402
+ }, 8, ["to"])) : (L(), M("div", ul, B(V(a)(e.unresolvedEntry)), 1))
3403
+ ])])) : (L(), M("div", dl, B(V(a)(e.emptyEntry)), 1)), e.pictures.length ? (L(), M("div", fl, [N("ul", pl, [(L(!0), M(O, null, z(l.value, (t) => (L(), M("li", {
3404
+ key: t.id,
3405
+ class: I(["mwnf-picture-gallery__thumb", {
3406
+ "mwnf-picture-gallery__thumb--active": t.id === e.selectedId,
3407
+ "mwnf-picture-gallery__thumb--related": t.backRelated?.length
3408
+ }])
3409
+ }, [N("button", {
3410
+ type: "button",
3411
+ onClick: (e) => u(t)
3412
+ }, [N("img", {
3413
+ src: t.image,
3414
+ alt: t.imageAlt ?? "",
3415
+ loading: "lazy"
3416
+ }, null, 8, hl)], 8, ml), N("div", gl, [
3417
+ t.imageCaption ? (L(), M("span", _l, B(t.imageCaption) + ", ", 1)) : j("", !0),
3418
+ N("span", {
3419
+ class: "mwnf-picture-gallery__thumb-name",
3420
+ innerHTML: t.name
3421
+ }, null, 8, vl),
3422
+ t.detail ? (L(), M("span", yl, ", " + B(t.detail), 1)) : j("", !0)
3423
+ ])], 2))), 128))]), s.value ? (L(), M("label", bl, [U(N("input", {
3424
+ "onUpdate:modelValue": r[0] ||= (e) => c.value = e,
3425
+ type: "checkbox"
3426
+ }, null, 512), [[ht, c.value]]), N("span", null, B(c.value ? V(a)(e.hideRelatedEntry) : V(a)(e.addRelatedEntry)), 1)])) : j("", !0)])) : j("", !0)]));
3427
+ }
3428
+ }, Sl = {
3429
+ key: 0,
3430
+ class: "mwnf-picture-narrative"
3431
+ }, Cl = ["innerHTML"], wl = {
3432
+ key: 1,
3433
+ class: "mwnf-picture-narrative__related"
3434
+ }, Tl = { class: "mwnf-picture-narrative__heading" }, El = { class: "mwnf-picture-narrative__images" }, Dl = { class: "mwnf-picture-narrative__image mwnf-picture-narrative__image--main" }, Ol = ["src", "alt"], kl = { class: "mwnf-picture-narrative__thumb-text" }, Al = ["innerHTML"], jl = { key: 0 }, Ml = ["onClick"], Nl = ["src", "alt"], Pl = { class: "mwnf-picture-narrative__thumb-text" }, Fl = ["innerHTML"], Il = { key: 0 }, Ll = {
3435
+ key: 0,
3436
+ class: "mwnf-picture-narrative__relation"
3437
+ }, Rl = {
3438
+ key: 2,
3439
+ class: "mwnf-picture-narrative__related"
3440
+ }, zl = { class: "mwnf-picture-narrative__heading" }, Bl = { class: "mwnf-picture-narrative__text mwnf-picture-narrative__text--reciprocal" }, Vl = { class: "mwnf-picture-narrative__image" }, Hl = ["src", "alt"], Ul = { class: "mwnf-picture-narrative__thumb-text" }, Wl = ["innerHTML"], Gl = { key: 0 }, Kl = {
3441
+ __name: "PictureNarrative",
3442
+ props: {
3443
+ picture: {
3444
+ type: Object,
3445
+ default: null
3446
+ },
3447
+ contextualDescription: {
3448
+ type: String,
3449
+ default: ""
3450
+ },
3451
+ relatedHeadingEntry: {
3452
+ type: String,
3453
+ default: "exhibition.related.items"
3454
+ },
3455
+ reciprocalFallbackEntry: {
3456
+ type: String,
3457
+ default: "exhibition.related.reciprocal"
3458
+ }
3459
+ },
3460
+ emits: ["select"],
3461
+ setup(e, { emit: t }) {
3462
+ let n = e, r = t, { t: i } = q(), a = k(() => n.contextualDescription ? Et(n.contextualDescription, { breaks: !0 }) : ""), o = k(() => n.picture?.related ?? []), s = k(() => n.picture?.backRelated?.[0] ?? null);
3463
+ function c(e) {
3464
+ r("select", e.id);
3465
+ }
3466
+ return (t, n) => e.picture ? (L(), M("div", Sl, [
3467
+ a.value ? (L(), M("div", {
3468
+ key: 0,
3469
+ class: "mwnf-picture-narrative__text mwnf-sheet__block",
3470
+ innerHTML: a.value
3471
+ }, null, 8, Cl)) : j("", !0),
3472
+ o.value.length ? (L(), M("div", wl, [N("div", Tl, B(V(i)(e.relatedHeadingEntry)), 1), N("div", El, [N("div", Dl, [N("img", {
3473
+ src: e.picture.image,
3474
+ alt: e.picture.imageAlt ?? ""
3475
+ }, null, 8, Ol), N("div", kl, [N("span", { innerHTML: e.picture.name }, null, 8, Al), e.picture.detail ? (L(), M("span", jl, ", " + B(e.picture.detail), 1)) : j("", !0)])]), (L(!0), M(O, null, z(o.value, (e) => (L(), M("div", {
3476
+ key: e.picture.id,
3477
+ class: "mwnf-picture-narrative__image"
3478
+ }, [
3479
+ N("button", {
3480
+ type: "button",
3481
+ onClick: (t) => c(e.picture)
3482
+ }, [N("img", {
3483
+ src: e.picture.image,
3484
+ alt: e.picture.imageAlt ?? ""
3485
+ }, null, 8, Nl)], 8, Ml),
3486
+ N("div", Pl, [N("span", { innerHTML: e.picture.name }, null, 8, Fl), e.picture.detail ? (L(), M("span", Il, ", " + B(e.picture.detail), 1)) : j("", !0)]),
3487
+ e.text ? (L(), M("div", Ll, B(e.text), 1)) : j("", !0)
3488
+ ]))), 128))])])) : j("", !0),
3489
+ s.value ? (L(), M("div", Rl, [
3490
+ N("div", zl, B(V(i)(e.relatedHeadingEntry)), 1),
3491
+ N("p", Bl, B(s.value.reciprocalText || V(i)(e.reciprocalFallbackEntry)), 1),
3492
+ N("div", Vl, [N("button", {
3493
+ type: "button",
3494
+ onClick: n[0] ||= (e) => c(s.value.picture)
3495
+ }, [N("img", {
3496
+ src: s.value.picture.image,
3497
+ alt: s.value.picture.imageAlt ?? ""
3498
+ }, null, 8, Hl)]), N("div", Ul, [N("span", { innerHTML: s.value.picture.name }, null, 8, Wl), s.value.picture.detail ? (L(), M("span", Gl, ", " + B(s.value.picture.detail), 1)) : j("", !0)])])
3499
+ ])) : j("", !0)
3500
+ ])) : j("", !0);
2561
3501
  }
2562
3502
  };
2563
- export { Ma as ExhibitionAbout, xr as ExhibitionCollectionResults, Cr as ExhibitionCollectionSearch, ka as ExhibitionHome, Ua as ExhibitionItemDetail, Tr as ExhibitionPartnerObjects, lr as ExhibitionPartners, Ga as ExhibitionRelatedContent, or as ExhibitionSearchHowTo, hr as ExhibitionSearchResults, Xr as ExhibitionShell, ut as ExhibitionTheme, Ba as ExhibitionThemeGallery, Ia as ExhibitionThemes, qa as ExhibitionTimeline, _r as ExhibitionTimelineGallery, gr as ExhibitionTimelineResults, pi as FeaturedPartners, Ut as GalleryAbout, Rn as GalleryCollectionResults, $n as GalleryCollectionSearch, Wt as GalleryCredits, Vi as GalleryHome, ua as GalleryItemDetail, ar as GalleryPartnerObjects, sn as GalleryPartners, Gt as GallerySearchHowTo, Tn as GallerySearchResults, Wr as GalleryShell, Ea as GalleryTimeline, kn as GalleryTimelineGallery, En as GalleryTimelineResults, ct as ItemDetailView, Vt as PartnerDetail, lt as PictureGallery, dt as PictureNarrative, Yr as PopupLogo, Mi as SiblingGalleries, mt as exhibitionAboutSpec, $r as exhibitionConfig, x as exhibitionPartnerDetail, pt as exhibitionThemeSpec, Qr as galleryConfig, _ as galleryPartnerDetail, Br as standardRoutes, ft as themeNodeRoute };
3503
+ export { Fs as ExhibitionAbout, ya as ExhibitionCollectionResults, Ra as ExhibitionCollectionSearch, Ms as ExhibitionHome, bc as ExhibitionItemDetail, qa as ExhibitionPartnerObjects, Sr as ExhibitionPartners, Ic as ExhibitionRelatedContent, cr as ExhibitionSearchHowTo, ni as ExhibitionSearchResults, yo as ExhibitionShell, it as ExhibitionTheme, vc as ExhibitionThemeGallery, $s as ExhibitionThemes, Qc as ExhibitionTimeline, Li as ExhibitionTimelineGallery, Ai as ExhibitionTimelineResults, Lo as FeaturedPartners, Ut as GalleryAbout, zn as GalleryCollectionResults, er as GalleryCollectionSearch, Wt as GalleryCredits, ds as GalleryHome, ps as GalleryItemDetail, or as GalleryPartnerObjects, un as GalleryPartners, qt as GallerySearchHowTo, En as GallerySearchResults, po as GalleryShell, ks as GalleryTimeline, An as GalleryTimelineGallery, Dn as GalleryTimelineResults, nt as ItemDetailView, Vt as PartnerDetail, xl as PictureGallery, Kl as PictureNarrative, vo as PopupLogo, ns as SiblingGalleries, st as exhibitionAboutSpec, Co as exhibitionConfig, ye as exhibitionPartnerDetail, ot as exhibitionThemeSpec, So as galleryConfig, y as galleryPartnerDetail, co as standardRoutes, at as themeNodeRoute };