@museumwnf/viewer-layout 3.61.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.
Files changed (32) hide show
  1. package/dist/FeaturedRecord-Fe19w6_G.js +213 -0
  2. package/dist/LegacyItemSheet-Bmg8etGz.js +532 -0
  3. package/dist/{OnDisplayIn-DW4iC5BB.js → OnDisplayIn-BH3Bqope.js} +16 -9
  4. package/dist/{PageShell-CPtgzcxv.js → PageShell-CIGVv7sK.js} +144 -111
  5. package/dist/{PartnerMap-U-Hi2FBi.js → PartnerMap-DdyMLtgH.js} +5 -1
  6. package/dist/RecordView-Bgd5mm_e.js +384 -0
  7. package/dist/{SiteShell-qvsZO4Iz.js → SiteShell-UsZ_cpe9.js} +3 -2
  8. package/dist/Theme-Daezwp0p.js +391 -0
  9. package/dist/{TimelineEventList-1feZA5t7.js → TimelineEventList-CIkKxyQu.js} +122 -238
  10. package/dist/TimelineResultsView-BF3VoCs_.js +686 -0
  11. package/dist/components.js +1 -1
  12. package/dist/{content-BNS5U0Xv.js → content-hV5uyd-b.js} +2 -2
  13. package/dist/content.js +6 -6
  14. package/dist/data-CsMfGCkv.js +77 -0
  15. package/dist/data-DzrH9ikw.js +45 -0
  16. package/dist/dxa.js +2046 -1008
  17. package/dist/index.js +7 -7
  18. package/dist/standalone.js +3 -3
  19. package/dist/{themeSpecs-CsDpl4rR.js → themeSpecs-DIdmAEc3.js} +1 -1
  20. package/dist/viewer-layout.css +1 -1
  21. package/dist/views.js +755 -37
  22. package/package.json +1 -1
  23. package/src/dxa/testing.js +176 -120
  24. package/src/styles/dxa-exhibition.css +2289 -32
  25. package/src/styles/dxa-gallery.css +17 -2
  26. package/dist/FeaturedRecord-DaGLHyhD.js +0 -87
  27. package/dist/ItemDetailView-D7m2C1Mg.js +0 -310
  28. package/dist/RecordView-BE4mbj6G.js +0 -363
  29. package/dist/Theme-4RmyRY0x.js +0 -318
  30. package/dist/TimelineResultsView-CkH3NDqL.js +0 -1401
  31. package/dist/data-EKYeMQcC.js +0 -45
  32. package/dist/data-kqAkoQvf.js +0 -37
package/dist/dxa.js CHANGED
@@ -1,21 +1,25 @@
1
- import { s as e } from "./OnDisplayIn-DW4iC5BB.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, N as m, O as h, P as ee, S as g, T as te, _, a as v, b as ne, c as re, d as ie, f as ae, g as y, h as oe, i as se, j as ce, k as le, l as ue, m as de, n as fe, o as pe, p as b, r as me, s as he, t as ge, u as x, v as _e, w as ve, x as ye, y as be } from "./data-EKYeMQcC.js";
6
- import { A as xe, C as Se, D as Ce, E as we, F as Te, I as Ee, L as De, M as Oe, N as ke, O as Ae, P as je, R as Me, S as Ne, T as S, _ as Pe, a as Fe, b as Ie, c as Le, d as Re, f as C, g as ze, h as Be, i as Ve, j as He, k as Ue, l as We, m as Ge, n as Ke, o as w, p as qe, r as Je, s as Ye, t as Xe, u as Ze, v as T, w as E, x as Qe, y as $e } from "./data-kqAkoQvf.js";
7
- import { a as et, i as tt, n as nt, r as rt, s as D, t as O } from "./TimelineResultsView-CkH3NDqL.js";
8
- import { t as it } from "./SiteShell-qvsZO4Iz.js";
9
- import { i as at, n as ot, r as k, t as st } from "./chrome-Bv_mLlHM.js";
10
- import { i as ct } from "./PageShell-CPtgzcxv.js";
11
- import { t as lt } from "./ItemDetailView-D7m2C1Mg.js";
12
- import { a as A, i as ut, n as dt, r as ft } from "./Theme-4RmyRY0x.js";
13
- import { n as pt, r as mt, t as ht } from "./themeSpecs-CsDpl4rR.js";
14
- import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as gt, createTextVNode as L, createVNode as R, normalizeClass as z, normalizeStyle as _t, onBeforeUnmount as vt, onMounted as yt, openBlock as B, ref as V, renderList as H, renderSlot as bt, resolveDynamicComponent as xt, toDisplayString as U, unref as W, vModelText as St, vShow as Ct, withCtx as G, withDirectives as wt, withModifiers as Tt } from "vue";
15
- import { I18nText as K, NotFoundView as Et, languageLabels as Dt, loadEntities as q, mdInline as Ot, mwnfLinks as J, offeredLanguages as kt, renderInline as At, sectionMeta as jt, siblingSiteUrl as Mt, sourceUrl as Nt, useDataPackage as Pt, useFacets as Ft, useI18n as Y, useKeywordIndex as It, useProjects as Lt, useSection as Rt, useSiteConfig as X, yearBuckets as Z } from "@museumwnf/viewer-core";
16
- import { RouterLink as Q, useRoute as zt, useRouter as Bt } 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 Vt = { class: "mwnf-dxa-profile-languages" }, Ht = {
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,48 +35,74 @@ var Vt = { class: "mwnf-dxa-profile-languages" }, Ht = {
31
35
  default: "partner"
32
36
  }
33
37
  },
34
- setup(t) {
35
- let n = t, { t: i } = Y(), a = M(() => n.family.labels?.[n.variant] ?? n.family.labels?.partner ?? {});
36
- return (n, l) => t.family.visible(t.id) ? (B(), N(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: G(({ languages: t, language: n, select: r }) => [I("div", Vt, [R(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
- ])]), R(e)]),
51
- "before-sheet": G(({ record: e, text: n, dir: o }) => [R(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: G(({ partner: e }) => [e.objectsRoute ? (B(), N(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: G(() => [L(U(W(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"])) : P("", !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"])) : (B(), N(W(Et), { key: 1 }));
99
+ }, 8, [
100
+ "spec",
101
+ "id",
102
+ "class"
103
+ ])) : (L(), A(V(St), { key: 1 }));
74
104
  }
75
- }, Ut = {
105
+ }, Ht = {
76
106
  __name: "TextPage",
77
107
  props: {
78
108
  body: {
@@ -94,43 +124,57 @@ var Vt = { class: "mwnf-dxa-profile-languages" }, Ht = {
94
124
  }
95
125
  },
96
126
  setup(t) {
97
- return (n, r) => (B(), F("div", { class: z(["mwnf-dxa-gallery-text", `mwnf-dxa-gallery-text--${t.kind}`]) }, [R(e, { to: t.back }, null, 8, ["to"]), R(W(K), {
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,
101
131
  "blank-lines": ""
102
132
  }, null, 8, ["keypath"])], 2));
103
133
  }
104
- }, Wt = {
134
+ }, Ut = {
105
135
  __name: "About",
106
136
  setup(e) {
107
- return (e, t) => (B(), N(Ut, {
137
+ return (e, t) => (L(), A(Ht, {
108
138
  kind: "about",
109
139
  body: "gallery.about.body"
110
140
  }));
111
141
  }
112
- }, Gt = {
142
+ }, Wt = {
113
143
  __name: "Credits",
114
144
  props: { bodyKey: {
115
145
  type: String,
116
146
  required: !0
117
147
  } },
118
148
  setup(e) {
119
- return (t, n) => (B(), N(Ut, {
149
+ return (t, n) => (L(), A(Ht, {
120
150
  kind: "credits",
121
151
  body: e.bodyKey
122
152
  }, null, 8, ["body"]));
123
153
  }
124
- }, Kt = {
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) => (B(), N(Ut, {
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
- }, qt = {
177
+ }, Jt = {
134
178
  DGA: "dga",
135
179
  ISL: "isl",
136
180
  EPM: "isl",
@@ -138,118 +182,130 @@ var Vt = { class: "mwnf-dxa-profile-languages" }, Ht = {
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 $(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" : qt[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 Jt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Yt = { class: "mwnf-dxa-gallery-partners__options" }, Xt = { class: "mwnf-dxa-gallery-partners__order" }, Zt = ["onClick"], Qt = { class: "mwnf-dxa-gallery-partners__country" }, $t = { class: "mwnf-dxa-gallery-partners__partner" }, en = { class: "mwnf-dxa-gallery-partners__text" }, tn = ["innerHTML"], nn = {
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
- }, rn = { class: "mwnf-dxa-partner-badge__status" }, an = { class: "mwnf-dxa-gallery-partners__links" }, on = { class: "mwnf-dxa-gallery-partners__logo" }, sn = ["src", "alt"], cn = {
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 = {
160
- ...u,
161
- objectsRoute: te,
206
+ let r = {
207
+ ...h,
208
+ objectsRoute: ge,
162
209
  orderToggle: !1,
163
210
  tiebreak: (e) => e.own_project?.name ?? ""
164
211
  };
165
- return (t, r) => (B(), F("div", Jt, [R(tt, { spec: n }, {
166
- before: G(({ t, orderDir: n, toggleOrder: r }) => [I("div", Yt, [R(e), I("div", Xt, [I("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
- }, U(t(n === "asc" ? "partner.list.sortDescending" : "partner.list.sortAscending")), 9, Zt)])]), R(W(K), {
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": G(({ group: e }) => [I("div", Qt, U(e.label), 1)]),
176
- row: G(({ partner: e, view: t, t: n }) => [I("div", $t, [I("div", en, [
177
- R(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: G(() => [I("span", { innerHTML: t.name }, null, 8, tn), t.city ? (B(), F("span", nn, ", " + U(t.city), 1)) : P("", !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
- W($)(e) ? (B(), F("div", {
231
+ V(Z)(e) ? (L(), M("div", {
185
232
  key: 0,
186
- class: z(["mwnf-dxa-partner-badge", W($)(e).tone && `mwnf-dxa-partner-badge--${W($)(e).tone}`])
187
- }, [L(U(W($)(e).name) + " ", 1), I("span", rn, U(n(W($)(e).status)), 1)], 2)) : P("", !0),
188
- I("div", an, [R(s, { to: t.route }, {
189
- default: G(() => [L(U(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 ? (B(), F(j, { key: 0 }, [r[0] ||= I("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), R(s, { to: t.objectsRoute }, {
195
- default: G(() => [L(U(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)) : P("", !0)])
198
- ]), I("div", on, [t.logos?.[0] ? (B(), F("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, sn)) : P("", !0)])])]),
250
+ }, null, 8, ln)) : j("", !0)])])]),
204
251
  _: 1
205
252
  })]));
206
253
  }
207
- }, ln = { class: "mwnf-dxa-grid" }, un = ["onMouseenter"], dn = { class: "mwnf-dxa-grid__frame" }, fn = ["src", "alt"], pn = ["src", "alt"], mn = { class: "mwnf-dxa-grid__text" }, hn = ["innerHTML"], gn = { class: "mwnf-dxa-grid__date" }, _n = { class: "mwnf-dxa-grid__partner" }, vn = { class: "mwnf-dxa-grid__place" }, yn = { class: "mwnf-dxa-grid__project" }, bn = {
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 } = Y(), n = V(-1);
215
- return (r, i) => (B(), F("div", ln, [(B(!0), F(j, null, H(e.rows, (e, r) => (B(), F("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
- }, [I("div", dn, [I("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, fn)]), I("div", { class: z(["mwnf-dxa-grid__card", { "mwnf-dxa-grid__card--open": n.value === r }]) }, [R(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: G(() => [I("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, pn)]),
290
+ }, null, 8, mn)]),
235
291
  _: 2
236
- }, 1032, ["to"]), I("div", mn, [
237
- I("p", {
292
+ }, 1032, ["to"]), N("div", hn, [
293
+ N("p", {
238
294
  class: "mwnf-dxa-grid__name",
239
- innerHTML: e.name
240
- }, null, 8, hn),
241
- I("p", gn, U(e.date), 1),
242
- I("p", _n, U(e.partner), 1),
243
- I("p", vn, U(e.place), 1),
244
- I("p", yn, [L(U(W(t)("gallery.results.for")) + " ", 1), I("span", null, U(e.project), 1)]),
245
- R(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: G(() => [L(U(W(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, un))), 128))]));
308
+ ])], 2)], 40, dn))), 128))], 2));
253
309
  }
254
310
  }, xn = ["onSubmit"], Sn = ["placeholder"], Cn = {
255
311
  type: "submit",
@@ -260,26 +316,26 @@ var Jt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Yt = { class:
260
316
  }, En = {
261
317
  __name: "SearchResults",
262
318
  setup(t) {
263
- let n = It("items", {
319
+ let n = jt("items", {
264
320
  grammar: "boolean",
265
- haystack: ie
266
- }), r = V(!1);
267
- _e().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 = V(""), o = M(() => ({
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: _.pageSize,
334
+ pageSize: x.pageSize,
279
335
  variant: "grid",
280
336
  recordRoute: "item",
281
337
  actionLabel: "catalogue.results.seeDatabaseEntry",
282
- record: (e, { t }) => le(e, t),
338
+ record: (e, { t }) => m(e, t),
283
339
  pagination: { jump: !0 },
284
340
  summary: ({ filters: e, pageInfo: t, t: n, total: r }) => [{
285
341
  label: n("core.section.database"),
@@ -289,35 +345,35 @@ var Jt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Yt = { class:
289
345
  value: `${n("catalogue.results.outOf")} ${r} ${n("catalogue.results.objects")}`
290
346
  }]
291
347
  }));
292
- return (t, n) => (B(), N(D, {
348
+ return (t, n) => (L(), A(E, {
293
349
  spec: o.value,
294
350
  class: "mwnf-dxa-search-results"
295
351
  }, {
296
- before: G(() => [R(e)]),
297
- filters: G(({ apply: e }) => [I("form", {
352
+ before: H(() => [F(e)]),
353
+ filters: H(({ apply: e }) => [N("form", {
298
354
  class: "mwnf-dxa-refine-search",
299
- onSubmit: Tt((t) => e({ q: a.value || "all-objects" }), ["prevent"])
300
- }, [wt(I("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, Sn), [[St, a.value]]), I("button", Cn, U(t.$t("catalogue.search.submit")), 1)], 40, xn), I("p", wn, [R(W(Q), { to: { name: "search-how-to" } }, {
306
- default: G(() => [L(U(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: G(({ rows: e }) => [e.length ? (B(), N(bn, {
365
+ records: H(({ rows: e }) => [e.length ? (L(), A(Q, {
310
366
  key: 0,
311
367
  rows: e
312
- }, null, 8, ["rows"])) : (B(), F("p", Tn, [
313
- L(U(t.$t("catalogue.results.noResultsSearch")) + " ", 1),
314
- R(W(Q), { to: { name: "search-how-to" } }, {
315
- default: G(() => [L(U(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] ||= I("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
319
- R(W(Q), { to: { name: "collection" } }, {
320
- default: G(() => [L(U(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
  ]))]),
@@ -327,11 +383,11 @@ var Jt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Yt = { class:
327
383
  }, Dn = {
328
384
  __name: "TimelineResults",
329
385
  setup(t) {
330
- return (t, n) => (B(), N(O, {
331
- spec: W(ce),
386
+ return (t, n) => (L(), A(Ye, {
387
+ spec: V(l),
332
388
  class: "mwnf-dxa-timeline-results"
333
389
  }, {
334
- before: G(() => [R(e)]),
390
+ before: H(() => [F(e)]),
335
391
  _: 1
336
392
  }, 8, ["spec"]));
337
393
  }
@@ -341,15 +397,15 @@ var Jt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Yt = { class:
341
397
  }, An = {
342
398
  __name: "TimelineGallery",
343
399
  setup(t) {
344
- return (t, n) => (B(), N(D, {
400
+ return (t, n) => (L(), A(E, {
345
401
  spec: {
346
- ...W(l),
347
- ...W(_)
402
+ ...V(ae),
403
+ ...V(x)
348
404
  },
349
405
  class: "mwnf-dxa-timeline-gallery"
350
406
  }, {
351
- before: G(() => [R(e)]),
352
- actions: G(({ filters: e, pageInfo: n, goToPage: r }) => [I("p", On, [R(W(Q), { 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,107 +413,125 @@ var Jt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Yt = { class:
357
413
  end: e.end
358
414
  }
359
415
  } }, {
360
- default: G(() => [L(" ➤ " + U(t.$t("timeline.nav.backToEvents")), 1)]),
416
+ default: H(() => [P(" ➤ " + B(t.$t("timeline.nav.backToEvents")), 1)]),
361
417
  _: 1
362
- }, 8, ["to"])]), R(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: G(({ rows: e, empty: t }) => [e.length ? (B(), N(bn, {
424
+ records: H(({ rows: e, empty: t }) => [e.length ? (L(), A(Q, {
369
425
  key: 0,
370
426
  rows: e
371
- }, null, 8, ["rows"])) : (B(), F("p", kn, U(t), 1))]),
427
+ }, null, 8, ["rows"])) : (L(), M("p", kn, B(t), 1))]),
372
428
  _: 1
373
429
  }, 8, ["spec"]));
374
430
  }
375
- }, jn = {
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
- class: "mwnf-record-grid__empty"
378
- }, Mn = { class: "mwnf-dxa-date-wrapper" }, Nn = {
433
+ class: "mwnf-dxa-gallery-results__end"
434
+ }, Fn = { class: "mwnf-dxa-date-wrapper" }, In = {
379
435
  key: 0,
380
436
  class: "mwnf-dxa-timeline-link-box"
381
- }, Pn = { class: "mwnf-dxa-options-label" }, Fn = {
437
+ }, Ln = { class: "mwnf-dxa-options-label" }, Rn = { class: "mwnf-dxa-gallery-results__timeline" }, zn = {
382
438
  __name: "CollectionResults",
383
- setup(r) {
384
- let a = Bt(), { t: o } = Y(), s = ee(), c = pe.keys, l = (e) => c.filter((t) => e[t]).length <= 1;
385
- function u() {
386
- a.push({ name: "collection" });
439
+ setup(t) {
440
+ let { t: n } = q(), r = {
441
+ type: "gallery.collection.type",
442
+ dynasty: "gallery.collection.periodDynasty",
443
+ subject: "gallery.collection.subject",
444
+ material: "gallery.collection.material"
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");
387
451
  }
388
- let d = M(() => new Set((p.value ?? []).map((e) => e.country_id)));
389
- function f(e) {
390
- let t = he(e.country);
391
- return !!(t && d.value.has(t));
452
+ let p = k(() => new Set((ie.value ?? []).map((e) => e.country_id)));
453
+ function m(e) {
454
+ let t = le(e.country);
455
+ return !!(t && p.value.has(t));
392
456
  }
393
- return (r, a) => (B(), N(D, {
457
+ return (t, c) => (L(), M("div", jn, [F(E, {
394
458
  spec: {
395
- ...W(pe),
396
- ...W(_)
459
+ ...V(v),
460
+ ...V(x),
461
+ summary: () => []
397
462
  },
398
463
  class: "mwnf-dxa-collection-results"
399
464
  }, {
400
- before: G(() => [R(e)]),
401
- actions: G(({ pageInfo: e, goToPage: t }) => [R(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, {
467
+ key: 0,
402
468
  class: "mwnf-dxa-pages",
403
469
  "page-info": e,
404
470
  jump: "",
405
471
  onNavigate: t
406
- }, null, 8, ["page-info", "onNavigate"])]),
407
- records: G(({ rows: e }) => [e.length ? (B(), N(bn, {
472
+ }, null, 8, ["page-info", "onNavigate"])) : j("", !0)]),
473
+ records: H(({ rows: e }) => [e.length ? (L(), A(Q, {
408
474
  key: 0,
409
475
  rows: e
410
- }, null, 8, ["rows"])) : (B(), F("p", jn, [L(U(r.$t("catalogue.results.noResults")) + " ", 1), I("button", {
411
- class: "mwnf-dxa-linkish",
412
- onClick: a[0] ||= (e) => u()
413
- }, U(r.$t("catalogue.results.resetFilters")), 1)]))]),
414
- aside: G(({ filters: e, apply: i, matching: c, options: d }) => [R(n, {
476
+ }, null, 8, ["rows"])) : (L(), A(V(W), {
477
+ key: 1,
478
+ class: "mwnf-dxa-gallery-results__none",
479
+ keypath: "gallery.collection.noResults"
480
+ }))]),
481
+ pagination: H(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (L(), A(s, {
482
+ key: 0,
483
+ class: "mwnf-dxa-pages",
484
+ "page-info": e,
485
+ jump: "",
486
+ onNavigate: t
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, {
415
489
  mode: "immediate",
416
- title: l(e) ? r.$t("catalogue.facet.filterBy") : r.$t("catalogue.facet.filterFurtherBy"),
417
- "reset-label": r.$t("catalogue.results.resetFilters"),
418
- disabled: c.length === 0,
419
- onReset: a[1] ||= (e) => u()
490
+ title: d(e) ? V(n)("gallery.collection.filterBy") : V(n)("gallery.collection.filterFurtherBy"),
491
+ "reset-label": V(n)("gallery.collection.resetFilters"),
492
+ disabled: l.length === 0,
493
+ onReset: (e) => s()
420
494
  }, {
421
- default: G(() => [
422
- R(t, {
495
+ default: H(() => [
496
+ F(i, {
423
497
  "model-value": e.country,
424
- options: d.country,
425
- placeholder: r.$t("catalogue.facet.selectCountry"),
426
- "onUpdate:modelValue": (e) => i({ country: e })
498
+ options: u.country,
499
+ placeholder: V(n)("gallery.collection.selectCountry"),
500
+ "onUpdate:modelValue": (e) => t({ country: e })
427
501
  }, null, 8, [
428
502
  "model-value",
429
503
  "options",
430
504
  "placeholder",
431
505
  "onUpdate:modelValue"
432
506
  ]),
433
- (B(!0), F(j, null, H(W(fe), (n) => (B(), N(t, {
434
- key: n,
435
- "model-value": e[n],
436
- options: d[n],
437
- placeholder: W(s)[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]),
438
512
  "hide-empty": "",
439
- "onUpdate:modelValue": (e) => i({ [n]: e })
513
+ "onUpdate:modelValue": (e) => t({ [a]: e })
440
514
  }, null, 8, [
441
515
  "model-value",
442
516
  "options",
443
517
  "placeholder",
444
518
  "onUpdate:modelValue"
445
519
  ]))), 128)),
446
- I("div", Mn, [R(t, {
520
+ N("div", Fn, [F(i, {
447
521
  "model-value": e.from,
448
- options: W(Z)(c, W(o)),
449
- placeholder: r.$t("catalogue.facet.startDate"),
450
- "onUpdate:modelValue": (e) => i({ from: e })
522
+ options: V(J)(l, o),
523
+ placeholder: V(n)("gallery.collection.startDate"),
524
+ "onUpdate:modelValue": (e) => t({ from: e })
451
525
  }, null, 8, [
452
526
  "model-value",
453
527
  "options",
454
528
  "placeholder",
455
529
  "onUpdate:modelValue"
456
- ]), R(t, {
530
+ ]), F(i, {
457
531
  "model-value": e.to,
458
- options: W(Z)(c, W(o)),
459
- placeholder: r.$t("catalogue.facet.endDate"),
460
- "onUpdate:modelValue": (e) => i({ to: e })
532
+ options: V(J)(l, o),
533
+ placeholder: V(n)("gallery.collection.endDate"),
534
+ "onUpdate:modelValue": (e) => t({ to: e })
461
535
  }, null, 8, [
462
536
  "model-value",
463
537
  "options",
@@ -469,8 +543,12 @@ var Jt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Yt = { class:
469
543
  }, 1032, [
470
544
  "title",
471
545
  "reset-label",
472
- "disabled"
473
- ]), f(e) ? (B(), F("div", Nn, [I("div", Pn, U(r.$t("catalogue.results.timelineForSearch")), 1), I("p", null, [a[2] ||= L(" ➤ ", -1), R(W(Q), { to: {
546
+ "disabled",
547
+ "onReset"
548
+ ]), m(e) ? (L(), M("div", In, [N("div", Ln, B(V(n)("gallery.collection.timelineForSearch")), 1), N("p", Rn, [c[0] ||= N("span", {
549
+ class: "mwnf-dxa-gallery-results__share",
550
+ "aria-hidden": "true"
551
+ }, "➦", -1), F(V(Y), { to: {
474
552
  name: "timeline-results",
475
553
  query: {
476
554
  country: e.country,
@@ -478,353 +556,989 @@ var Jt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Yt = { class:
478
556
  end: e.to
479
557
  }
480
558
  } }, {
481
- default: G(() => [L(U(r.$t("core.section.timeline")) + " | " + U(W(y)("countries", W(he)(e.country))), 1)]),
559
+ default: H(() => [P(B(V(n)("gallery.collection.timeline")) + " | " + B(V(ne)("countries", V(le)(e.country))), 1)]),
482
560
  _: 2
483
- }, 1032, ["to"])])])) : P("", !0)]),
561
+ }, 1032, ["to"])])])) : j("", !0)]),
484
562
  _: 1
485
- }, 8, ["spec"]));
563
+ }, 8, ["spec"])]));
486
564
  }
487
- }, In = { class: "mwnf-dxa-collection-search" }, Ln = { class: "mwnf-dxa-dropdown-label" }, Rn = {
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 = {
566
+ selected: "",
567
+ disabled: "",
568
+ value: ""
569
+ }, Kn = ["value"], qn = { class: "mwnf-dxa-gallery-collection__dates" }, Jn = ["aria-label"], Yn = {
570
+ selected: "",
571
+ disabled: "",
572
+ value: ""
573
+ }, Xn = ["value"], Zn = ["aria-label"], Qn = {
574
+ selected: "",
575
+ disabled: "",
576
+ value: ""
577
+ }, $n = ["value"], er = {
488
578
  __name: "CollectionSearch",
489
579
  setup(e) {
490
- let t = Ft(oe, ge), n = M(() => fe.filter((e) => (t.value[e] ?? []).length > 0)), r = M(() => ({
491
- mode: "facets",
492
- target: "collection-results",
493
- entity: "items",
494
- dates: "buckets",
495
- eraWords: se,
496
- facets: [{
497
- key: "country",
498
- label: "catalogue.facet.selectCountry",
499
- options: t.value.country
500
- }, ...n.value.map((e) => ({
501
- key: e,
502
- label: me[e],
503
- options: t.value[e]
504
- }))]
505
- }));
506
- return (e, t) => (B(), F("div", In, [R(nt, { spec: r.value }, {
507
- before: G(() => [I("div", Ln, U(e.$t("catalogue.facet.filterBy")), 1)]),
508
- _: 1
509
- }, 8, ["spec"]), R(W(K), {
510
- id: "mwnf-dxa-collection-search-description",
511
- class: "mwnf-dxa-description mwnf-prose",
580
+ let t = It(), { t: n } = q(), r = At(se, pe), i = {
581
+ country: "gallery.collection.selectCountry",
582
+ type: "gallery.collection.type",
583
+ dynasty: "gallery.collection.periodDynasty",
584
+ subject: "gallery.collection.subject",
585
+ material: "gallery.collection.material"
586
+ }, a = k(() => ["country", ...de].filter((e) => e === "country" || (r.value[e] ?? []).length > 0).map((e) => ({
587
+ key: e,
588
+ name: i[e],
589
+ options: r.value[e] ?? []
590
+ }))), o = (e) => n(ce[e] ?? e), s = k(() => J(se.value ?? [], o));
591
+ function c(e, n) {
592
+ n !== "" && n != null && t.push({
593
+ name: "collection-results",
594
+ query: { [e]: String(n) }
595
+ });
596
+ }
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", {
598
+ key: e.key,
599
+ class: "mwnf-dxa-gallery-collection__select",
600
+ "aria-label": V(n)(e.name),
601
+ onChange: (t) => c(e.key, t.target.value)
602
+ }, [N("option", Gn, B(V(n)(e.name)), 1), (L(!0), M(O, null, z(e.options, (e) => (L(), M("option", {
603
+ key: e.value,
604
+ value: String(e.value)
605
+ }, B(e.label), 9, Kn))), 128))], 40, Wn))), 128)), N("div", qn, [N("select", {
606
+ class: "mwnf-dxa-gallery-collection__select",
607
+ "aria-label": V(n)("gallery.collection.startDate"),
608
+ onChange: t[0] ||= (e) => c("from", e.target.value)
609
+ }, [N("option", Yn, B(V(n)("gallery.collection.startDate")), 1), (L(!0), M(O, null, z(s.value, (e) => (L(), M("option", {
610
+ key: e.value,
611
+ value: String(e.value)
612
+ }, B(e.label), 9, Xn))), 128))], 40, Jn), N("select", {
613
+ class: "mwnf-dxa-gallery-collection__select",
614
+ "aria-label": V(n)("gallery.collection.endDate"),
615
+ onChange: t[1] ||= (e) => c("to", e.target.value)
616
+ }, [N("option", Qn, B(V(n)("gallery.collection.endDate")), 1), (L(!0), M(O, null, z(s.value, (e) => (L(), M("option", {
617
+ key: e.value,
618
+ value: String(e.value)
619
+ }, B(e.label), 9, $n))), 128))], 40, Zn)])])]), F(V(W), {
620
+ class: "mwnf-dxa-gallery-collection__description mwnf-prose",
512
621
  dir: "auto",
513
622
  keypath: "gallery.collection.intro"
514
623
  })]));
515
624
  }
516
- }, zn = {
625
+ }, tr = {
517
626
  key: 0,
518
627
  class: "mwnf-dxa-partner-objects mwnf-dxa-gallery-objects"
519
- }, Bn = { class: "mwnf-dxa-gallery-objects__header" }, Vn = ["innerHTML"], Hn = {
628
+ }, nr = { class: "mwnf-dxa-gallery-objects__header" }, rr = ["innerHTML"], ir = {
520
629
  key: 0,
521
630
  class: "mwnf-dxa-gallery-objects__place"
522
- }, Un = {
631
+ }, ar = {
523
632
  key: 1,
524
633
  class: "mwnf-dxa-gallery-objects__end"
525
- }, Wn = {
634
+ }, or = {
526
635
  __name: "PartnerObjects",
527
636
  setup(t) {
528
- let n = zt(), r = M(() => ne.value.get(n.params.id) ?? null), a = M(() => ({
529
- ...ve,
530
- ..._,
637
+ let n = X(), r = k(() => ve.value.get(n.params.id) ?? null), i = k(() => ({
638
+ ...u,
639
+ ...x,
531
640
  scope: (e) => e.partner_id === n.params.id
532
- })), o = M(() => r.value ? ye.view(r.value, m("partners", r.value.id, re)) : null), s = M(() => [o.value?.city, o.value?.country].filter(Boolean).join(", "));
533
- return (t, n) => r.value ? (B(), F("div", zn, [R(D, { spec: a.value }, {
534
- before: G(() => [R(e), I("div", Bn, [I("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", {
535
644
  class: "mwnf-dxa-gallery-objects__name",
536
- innerHTML: o.value.name
537
- }, null, 8, Vn), s.value ? (B(), F("p", Hn, U(s.value), 1)) : P("", !0)])]),
538
- actions: G(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (B(), N(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, {
539
648
  key: 0,
540
649
  class: "mwnf-dxa-pages",
541
650
  "page-info": e,
542
651
  jump: "",
543
652
  onNavigate: t
544
- }, null, 8, ["page-info", "onNavigate"])) : P("", !0)]),
545
- records: G(({ rows: e }) => [R(bn, { rows: e }, null, 8, ["rows"])]),
546
- pagination: G(({ pageInfo: e, goToPage: t }) => [e.lastPage > 1 ? (B(), N(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, {
547
656
  key: 0,
548
657
  class: "mwnf-dxa-pages",
549
658
  "page-info": e,
550
659
  jump: "",
551
660
  onNavigate: t
552
- }, null, 8, ["page-info", "onNavigate"])) : (B(), F("div", Un))]),
553
- aside: G(() => [R(W(Q), {
661
+ }, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", ar))]),
662
+ aside: H(() => [F(V(Y), {
554
663
  class: "mwnf-dxa-gallery-objects__profile",
555
- to: W(f)(r.value)
664
+ to: V(g)(r.value)
556
665
  }, {
557
- default: G(() => [n[0] ||= I("span", {
666
+ default: H(() => [n[0] ||= N("span", {
558
667
  class: "mwnf-dxa-gallery-objects__profile-arrow",
559
668
  "aria-hidden": "true"
560
- }, "➦", -1), L(U(t.$t("partner.action.partnerProfile")), 1)]),
669
+ }, "➦", -1), P(B(t.$t("partner.action.partnerProfile")), 1)]),
561
670
  _: 1
562
671
  }, 8, ["to"])]),
563
672
  _: 1
564
- }, 8, ["spec"])])) : P("", !0);
673
+ }, 8, ["spec"])])) : j("", !0);
565
674
  }
566
- }, Gn = {
675
+ }, sr = { class: "mwnf-dxa-exhibition-how-to" }, cr = {
567
676
  __name: "SearchHowTo",
568
- setup(e) {
569
- let t = {
570
- body: "catalogue.search.howToEssay",
571
- back: {
572
- label: "core.action.back",
573
- to: { name: "collection" }
574
- }
575
- };
576
- return (e, n) => (B(), N(rt, {
577
- spec: t,
578
- class: "mwnf-dxa-editorial"
579
- }));
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
+ })]));
580
683
  }
581
- }, Kn = { class: "mwnf-dxa-partners" }, qn = { class: "mwnf-dxa-partners-options" }, Jn = {
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 = {
582
688
  __name: "Partners",
583
689
  setup(t) {
584
- let n = {
585
- ...we,
586
- objectsRoute: Ce,
587
- actions: !0,
588
- 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"
589
698
  };
590
- return (t, r) => (B(), F("div", Kn, [R(tt, { spec: n }, {
591
- before: G(() => [I("div", qn, [R(e)]), R(W(K), {
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), {
592
711
  id: "mwnf-dxa-partners-intro",
593
- class: "mwnf-prose",
712
+ class: "mwnf-dxa-gallery-partners__intro",
594
713
  dir: "auto",
595
714
  keypath: "exhibition.partners.intro"
596
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)])])]),
597
745
  _: 1
598
746
  })]));
599
747
  }
600
- }, Yn = ["onSubmit"], Xn = ["placeholder"], Zn = {
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 = {
601
828
  type: "submit",
602
- class: "mwnf-dxa-refine-search-submit"
603
- }, Qn = { class: "mwnf-dxa-how-to" }, $n = { class: "mwnf-dxa-no-results" }, er = {
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 = {
604
844
  __name: "SearchResults",
605
845
  setup(t) {
606
- let n = It("items", {
846
+ let { t: n } = q(), r = X(), i = It(), a = jt("items", {
607
847
  grammar: "boolean",
608
- haystack: Pe
609
- }), r = V(!1);
610
- Ne().then(() => {
611
- r.value = !0;
848
+ haystack: Be
849
+ }), o = R(!1);
850
+ Ke().then(() => {
851
+ o.value = !0;
612
852
  });
613
- function i(e) {
614
- return !e || e === "all-objects";
615
- }
616
- let a = V(""), o = M(() => ({
853
+ let s = (e) => !e || e === "all-items" || e === "all-objects", c = (e) => e && e.length > 80 ? `${e.slice(0, 80)}...` : e ?? "", l = k(() => ({
617
854
  entity: "items",
618
855
  keys: ["q"],
619
- scope: (e) => T.value.has(e.id),
620
- sort: !1,
856
+ scope: (e) => Le.value.has(e.id),
621
857
  narrow: (e, t) => {
622
- if (!r.value) return [];
623
- if (i(t.q)) return e;
624
- let a = new Set(e.map((e) => e.id));
625
- 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));
626
862
  },
627
- pageSize: Ve,
628
- variant: "grid",
629
- recordRoute: "item",
630
- actionLabel: "catalogue.results.seeDatabaseEntry",
631
- record: (e, { t }) => He(e, t),
632
- pagination: { jump: !0 },
633
- summary: ({ filters: e, pageInfo: t, t: n }) => [{
634
- label: n("core.section.database"),
635
- value: i(e.q) ? n("catalogue.results.allObjects") : `“${e.q}”`
636
- }, {
637
- count: t.total,
638
- value: `${n("catalogue.results.outOf")} ${T.value.size} ${n("catalogue.results.objects")}`
639
- }]
640
- }));
641
- return (t, n) => (B(), N(D, {
642
- spec: o.value,
643
- 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"
644
908
  }, {
645
- before: G(() => [R(e)]),
646
- filters: G(({ apply: e }) => [I("form", {
647
- class: "mwnf-dxa-refine-search",
648
- onSubmit: Tt((t) => e({ q: a.value || "all-objects" }), ["prevent"])
649
- }, [wt(I("input", {
650
- "onUpdate:modelValue": n[0] ||= (e) => a.value = e,
651
- type: "text",
652
- class: "mwnf-dxa-refine-search-input",
653
- placeholder: t.$t("catalogue.search.keywordPlaceholder")
654
- }, null, 8, Xn), [[St, a.value]]), I("button", Zn, U(t.$t("catalogue.search.submit")), 1)], 40, Yn), I("p", Qn, [R(W(Q), { to: { name: "search-how-to" } }, {
655
- default: G(() => [L(U(t.$t("catalogue.search.howTo")) + " ›", 1)]),
656
- _: 1
657
- })])]),
658
- empty: G(() => [I("p", $n, [
659
- L(U(t.$t("catalogue.results.noResultsSearch")) + " ", 1),
660
- R(W(Q), { to: { name: "search-how-to" } }, {
661
- default: G(() => [L(U(t.$t("catalogue.search.howTo")), 1)]),
662
- _: 1
663
- }),
664
- n[1] ||= I("span", { class: "mwnf-dxa-no-results-divider" }, "|", -1),
665
- R(W(Q), { to: { name: "collection" } }, {
666
- default: G(() => [L(U(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)]),
667
923
  _: 1
668
- })
669
- ])]),
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))]),
670
970
  _: 1
671
- }, 8, ["spec"]));
971
+ }, 8, ["spec"])]));
672
972
  }
673
- }, tr = {
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 = {
674
995
  __name: "TimelineResults",
675
996
  setup(t) {
676
- return (t, n) => (B(), N(O, {
677
- spec: W(ke),
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,
678
1022
  class: "mwnf-dxa-timeline-results"
679
1023
  }, {
680
- before: G(() => [R(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))]),
681
1090
  _: 1
682
- }, 8, ["spec"]));
1091
+ }, 8, ["spec"])]));
683
1092
  }
684
- }, nr = {
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 = {
685
1097
  __name: "TimelineGallery",
686
1098
  setup(t) {
687
- return (t, n) => (B(), N(D, {
688
- spec: W(Oe),
689
- 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"
690
1118
  }, {
691
- before: G(() => [R(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))]),
692
1153
  _: 1
693
- }, 8, ["spec"]));
1154
+ }, 8, ["spec"])]));
694
1155
  }
695
- }, rr = { class: "mwnf-dxa-date-wrapper" }, ir = {
696
- key: 0,
697
- class: "mwnf-dxa-timeline-link-box"
698
- }, ar = { class: "mwnf-dxa-options-label" }, or = {
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 = {
699
1228
  __name: "CollectionResults",
700
- setup(r) {
701
- let a = Bt(), { t: o } = Y(), s = Ee(), c = Ye.keys, l = (e) => c.filter((t) => e[t]).length <= 1;
702
- function u() {
703
- 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;
704
1268
  }
705
- let d = M(() => new Set((je.value ?? []).map((e) => e.country_id)));
706
- function f(e) {
707
- if (!ze.value) return !1;
708
- let t = We(e.country);
709
- 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");
710
1274
  }
711
- return (r, a) => (B(), N(D, {
712
- spec: W(Ye),
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
+ });
1288
+ }
1289
+ return (t, r) => (L(), M("div", qi, [F(E, {
1290
+ spec: b,
713
1291
  class: "mwnf-dxa-collection-results"
714
1292
  }, {
715
- before: G(() => [R(e)]),
716
- actions: G(({ pageInfo: e, goToPage: t }) => [R(i, {
717
- 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,
718
1314
  "page-info": e,
719
- jump: "",
720
1315
  onNavigate: t
721
- }, null, 8, ["page-info", "onNavigate"])]),
722
- empty: G(() => [L(U(r.$t("catalogue.results.noResults")) + " ", 1), I("button", {
723
- class: "mwnf-dxa-linkish",
724
- onClick: a[0] ||= (e) => u()
725
- }, U(r.$t("catalogue.results.resetFilters")), 1)]),
726
- aside: G(({ filters: e, apply: i, matching: c, options: d }) => [R(n, {
727
- mode: "immediate",
728
- title: l(e) ? r.$t("catalogue.facet.filterBy") : r.$t("catalogue.facet.filterFurtherBy"),
729
- "reset-label": r.$t("catalogue.results.resetFilters"),
730
- disabled: c.length === 0,
731
- onReset: a[1] ||= (e) => u()
732
- }, {
733
- default: G(() => [
734
- R(t, {
735
- "model-value": e.country,
736
- options: d.country,
737
- placeholder: r.$t("catalogue.facet.selectCountry"),
738
- "onUpdate:modelValue": (e) => i({ country: e })
739
- }, null, 8, [
740
- "model-value",
741
- "options",
742
- "placeholder",
743
- "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
+ ])])
744
1432
  ]),
745
- (B(!0), F(j, null, H(W(Ke), (n) => (B(), N(t, {
746
- key: n,
747
- "model-value": e[n],
748
- options: d[n],
749
- placeholder: W(s)[n],
750
- "hide-empty": "",
751
- "onUpdate:modelValue": (e) => i({ [n]: e })
752
- }, null, 8, [
753
- "model-value",
754
- "options",
755
- "placeholder",
756
- "onUpdate:modelValue"
757
- ]))), 128)),
758
- I("div", rr, [R(t, {
759
- "model-value": e.from,
760
- options: W(Z)(c, W(o)),
761
- placeholder: r.$t("catalogue.facet.startDate"),
762
- "onUpdate:modelValue": (e) => i({ from: e })
763
- }, null, 8, [
764
- "model-value",
765
- "options",
766
- "placeholder",
767
- "onUpdate:modelValue"
768
- ]), R(t, {
769
- "model-value": e.to,
770
- options: W(Z)(c, W(o)),
771
- placeholder: r.$t("catalogue.facet.endDate"),
772
- "onUpdate:modelValue": (e) => i({ to: e })
773
- }, null, 8, [
774
- "model-value",
775
- "options",
776
- "placeholder",
777
- "onUpdate:modelValue"
778
- ])])
779
- ]),
780
- _: 2
781
- }, 1032, [
782
- "title",
783
- "reset-label",
784
- "disabled"
785
- ]), f(e) ? (B(), F("div", ir, [I("div", ar, U(r.$t("catalogue.results.timelineForSearch")), 1), I("p", null, [a[2] ||= L(" ➤ ", -1), R(W(Q), { to: {
786
- name: "timeline-results",
787
- query: {
788
- country: W(We)(e.country),
789
- begin: e.from,
790
- end: e.to
791
- }
792
- } }, {
793
- default: G(() => [L(U(r.$t("core.section.timeline")) + " | " + U(W(Qe)("countries", W(We)(e.country))), 1)]),
794
- _: 2
795
- }, 1032, ["to"])])])) : P("", !0)]),
1433
+ _: 2
1434
+ }, 1032, [
1435
+ "title",
1436
+ "reset-label",
1437
+ "disabled",
1438
+ "onReset"
1439
+ ])
1440
+ ], 512), [[vt, !f.value || m.value]])]),
796
1441
  _: 1
797
- }, 8, ["spec"]));
1442
+ })]));
798
1443
  }
799
- }, 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 = {
800
1461
  __name: "CollectionSearch",
801
1462
  setup(e) {
802
- let t = Ft(Ie, Xe), n = M(() => Ke.filter((e) => (t.value[e] ?? []).length > 0)), r = M(() => ({
803
- mode: "facets",
804
- target: "collection-results",
805
- dates: "buckets",
806
- howTo: "search-how-to",
807
- facets: [{
1463
+ let t = It(), { t: n, locale: r } = q(), { themeOptions: i } = Ki(r), a = At(De, Ue), o = k(() => [
1464
+ {
808
1465
  key: "country",
809
- label: "catalogue.facet.selectCountry",
810
- options: t.value.country
811
- }, ...n.value.map((e) => ({
812
- key: e,
813
- label: Je[e],
814
- options: t.value[e]
815
- }))]
816
- }));
817
- return (e, t) => (B(), F("div", sr, [R(nt, { spec: r.value }, {
818
- intro: G(() => [R(W(K), {
819
- id: "mwnf-dxa-collection-search-description",
820
- class: "mwnf-dxa-description mwnf-prose",
821
- dir: "auto",
822
- keypath: "exhibition.collection.intro"
823
- })]),
824
- _: 1
825
- }, 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
+ })]));
826
1531
  }
827
- }, lr = { class: "mwnf-dxa-profile-link-container" }, ur = {
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 = {
828
1542
  __name: "PartnerObjects",
829
1543
  props: {
830
1544
  variant: {
@@ -837,57 +1551,64 @@ var Jt = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, Yt = { class:
837
1551
  }
838
1552
  },
839
1553
  setup(t) {
840
- let n = t, a = M(() => n.variant === "institution"), o = zt(), s = M(() => De(o.params.id)), c = M(() => s.value ? S.view(s.value, Te("partners", s.value.id, Re)) : null), l = M(() => ({
1554
+ let n = t, r = k(() => n.variant === "institution"), i = X(), a = k(() => Se(i.params.id)), o = k(() => ({
841
1555
  entity: "items",
842
- scope: (e) => e.partner_id === s.value?.id,
843
- sort: { undated: "first" },
844
- pageSize: Ve,
845
- variant: "grid",
846
- recordRoute: "item",
847
- actionLabel: "catalogue.results.seeDatabaseEntry",
848
- empty: a.value ? n.texts.emptyInstitution : n.texts.emptyPartner,
849
- record: (e, { t }) => He(e, t),
850
- summary: ({ pageInfo: e, t }) => [{
851
- count: e.total,
852
- value: t(a.value ? n.texts.institutionSummary : "partner.item.objectsInSite")
853
- }]
1556
+ scope: (e) => e.partner_id === a.value?.id,
1557
+ ...qe,
1558
+ summary: () => [],
1559
+ record: ke
854
1560
  }));
855
- return (t, o) => s.value ? (B(), N(D, {
856
- key: 0,
857
- 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,
858
1572
  class: "mwnf-dxa-partner-objects"
859
1573
  }, {
860
- before: G(() => [R(e), R(r, {
861
- class: "mwnf-dxa-partner-objects-header",
862
- variant: "summary",
863
- heading: 1,
864
- partner: c.value
865
- }, null, 8, ["partner"])]),
866
- actions: G(({ pageInfo: e, goToPage: t }) => [R(i, {
867
- 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,
868
1597
  "page-info": e,
869
- jump: "",
870
1598
  onNavigate: t
871
- }, null, 8, ["page-info", "onNavigate"])]),
872
- after: G(() => [I("div", lr, [R(W(Q), {
873
- class: "mwnf-dxa-profile-link",
874
- to: W(Ae)(s.value)
875
- }, {
876
- default: G(() => [L(" ➤ " + U(a.value ? t.$t(n.texts.institutionProfileLabel) : t.$t(n.texts.partnerProfileLabel)), 1)]),
877
- _: 1
878
- }, 8, ["to"])])]),
1599
+ }, null, 8, ["page-info", "onNavigate"])) : (L(), M("div", Ka))]),
879
1600
  _: 1
880
- }, 8, ["spec"])) : P("", !0);
1601
+ }, 8, ["spec"])])) : j("", !0);
881
1602
  }
882
- }, dr = () => Promise.resolve().then(() => vi), fr = () => Promise.resolve().then(() => Di), pr = () => Promise.resolve().then(() => Wi), mr = () => Promise.resolve().then(() => oa), hr = () => Promise.resolve().then(() => la), gr = () => Promise.resolve().then(() => fa), _r = () => import("./Theme-4RmyRY0x.js").then((e) => e.t), vr = () => Promise.resolve().then(() => ga), yr = () => Promise.resolve().then(() => ba), br = () => Promise.resolve().then(() => Ca), xr = () => Promise.resolve().then(() => Ta), Sr = {
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 = {
883
1604
  emptyPartner: "exhibition.partnerObjects.emptyPartner",
884
1605
  emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
885
1606
  institutionSummary: "exhibition.partner.monumentsInExhibition",
886
1607
  partnerProfileLabel: "partner.action.partnerProfile",
887
1608
  institutionProfileLabel: "exhibition.partnerObjects.institutionProfile"
888
1609
  };
889
- function Cr(e) {
890
- let t = jt([
1610
+ function oo(e) {
1611
+ let t = Ot([
891
1612
  "gallery",
892
1613
  "items",
893
1614
  "partners",
@@ -898,20 +1619,20 @@ function Cr(e) {
898
1619
  {
899
1620
  path: "/",
900
1621
  name: "home",
901
- component: dr,
1622
+ component: Ja,
902
1623
  meta: t("home")
903
1624
  },
904
1625
  {
905
1626
  path: "/item/:id",
906
1627
  name: "item",
907
- component: fr,
1628
+ component: Ya,
908
1629
  props: (e) => ({ id: String(e.params.id) }),
909
1630
  meta: t("database", "languages", "dynasties", "glossary", "timelines", "timeline_events")
910
1631
  },
911
1632
  {
912
1633
  path: "/timeline",
913
1634
  name: "timeline",
914
- component: pr,
1635
+ component: Xa,
915
1636
  meta: t("timeline", "timelines", "timeline_events")
916
1637
  }
917
1638
  ] : [],
@@ -924,29 +1645,29 @@ function Cr(e) {
924
1645
  {
925
1646
  path: "/how-to-search",
926
1647
  name: "search-how-to",
927
- component: Kt,
1648
+ component: qt,
928
1649
  meta: t("database")
929
1650
  },
930
1651
  {
931
1652
  path: "/partners",
932
1653
  name: "partners",
933
- component: cn,
1654
+ component: un,
934
1655
  meta: t("partners")
935
1656
  },
936
1657
  {
937
1658
  path: "/partner/:id",
938
1659
  name: "partner",
939
- component: Ht,
1660
+ component: Vt,
940
1661
  props: (e) => ({
941
1662
  id: String(e.params.id),
942
- family: ye
1663
+ family: y
943
1664
  }),
944
1665
  meta: t("partners", "languages")
945
1666
  },
946
1667
  {
947
1668
  path: "/partner/:id/objects",
948
1669
  name: "partner-objects",
949
- component: Wn,
1670
+ component: or,
950
1671
  meta: t("partners")
951
1672
  },
952
1673
  {
@@ -964,38 +1685,38 @@ function Cr(e) {
964
1685
  {
965
1686
  path: "/about",
966
1687
  name: "about",
967
- component: Wt,
1688
+ component: Ut,
968
1689
  meta: t("about")
969
1690
  },
970
1691
  {
971
1692
  path: "/credits",
972
1693
  name: "credits",
973
- component: Gt,
1694
+ component: Wt,
974
1695
  props: { bodyKey: n },
975
1696
  meta: t("credits")
976
1697
  },
977
1698
  {
978
1699
  path: "/collection",
979
1700
  name: "collection",
980
- component: Rn,
1701
+ component: er,
981
1702
  meta: t("collection", "tags")
982
1703
  },
983
1704
  {
984
1705
  path: "/collection-results",
985
1706
  name: "collection-results",
986
- component: Fn,
1707
+ component: zn,
987
1708
  meta: t("collection", "tags", "timelines")
988
1709
  }
989
1710
  ];
990
1711
  }
991
- function wr(e) {
992
- let t = jt([
1712
+ function so(e) {
1713
+ let t = Ot([
993
1714
  "exhibition",
994
1715
  "items",
995
1716
  "partners",
996
1717
  "countries"
997
1718
  ]), n = {
998
- ...Sr,
1719
+ ...ao,
999
1720
  ...e.partnerObjects
1000
1721
  };
1001
1722
  return [
@@ -1003,105 +1724,102 @@ function wr(e) {
1003
1724
  {
1004
1725
  path: "/",
1005
1726
  name: "home",
1006
- component: mr,
1727
+ component: Za,
1007
1728
  meta: t("home")
1008
1729
  },
1009
1730
  {
1010
1731
  path: "/about",
1011
1732
  name: "about",
1012
- component: hr,
1733
+ component: Qa,
1013
1734
  meta: t("about", "themes")
1014
1735
  },
1015
1736
  {
1016
1737
  path: "/themes",
1017
1738
  name: "themes",
1018
- component: gr,
1739
+ component: $a,
1019
1740
  meta: t("themes", "themes")
1020
1741
  },
1021
1742
  {
1022
1743
  path: "/theme/:id/:subtheme?/:image?",
1023
1744
  name: "theme",
1024
- component: _r,
1745
+ component: eo,
1025
1746
  meta: t("themes", "themes", "glossary", "dynasties")
1026
1747
  },
1027
1748
  {
1028
- path: "/theme-gallery/:id",
1749
+ path: "/theme-gallery/:id/:subtheme?",
1029
1750
  name: "theme-gallery",
1030
- component: vr,
1751
+ component: to,
1031
1752
  meta: t("themes", "themes")
1032
1753
  },
1033
1754
  {
1034
1755
  path: "/item/:id",
1035
1756
  name: "item",
1036
- component: yr,
1757
+ component: no,
1037
1758
  props: (e) => ({ id: String(e.params.id) }),
1038
1759
  meta: t("database", "languages", "dynasties", "glossary", "timelines", "timeline_events")
1039
1760
  },
1040
1761
  {
1041
1762
  path: "/related",
1042
1763
  name: "related",
1043
- component: br,
1764
+ component: ro,
1044
1765
  meta: t("related", "related_content")
1045
1766
  },
1046
1767
  {
1047
1768
  path: "/timeline",
1048
1769
  name: "timeline",
1049
- component: xr,
1770
+ component: io,
1050
1771
  meta: t("timeline", "timelines", "timeline_events")
1051
1772
  },
1052
1773
  ...e.creditsBody ? [{
1053
1774
  path: "/credits",
1054
1775
  name: "credits",
1055
- component: rt,
1056
- props: { spec: {
1057
- body: e.creditsBody,
1058
- back: !0
1059
- } },
1776
+ component: Kt,
1777
+ props: { bodyKey: e.creditsBody },
1060
1778
  meta: t("credits")
1061
1779
  }] : []
1062
1780
  ] : [],
1063
1781
  {
1064
1782
  path: "/search",
1065
1783
  name: "search-results",
1066
- component: er,
1784
+ component: ni,
1067
1785
  meta: t("database")
1068
1786
  },
1069
1787
  {
1070
1788
  path: "/how-to-search",
1071
1789
  name: "search-how-to",
1072
- component: Gn,
1790
+ component: cr,
1073
1791
  meta: t("database")
1074
1792
  },
1075
1793
  {
1076
1794
  path: "/partners",
1077
1795
  name: "partners",
1078
- component: Jn,
1796
+ component: Sr,
1079
1797
  meta: t("partners")
1080
1798
  },
1081
1799
  {
1082
1800
  path: "/partner/:id",
1083
1801
  name: "partner",
1084
- component: Ht,
1802
+ component: Vt,
1085
1803
  props: (e) => ({
1086
1804
  id: String(e.params.id),
1087
- family: S
1805
+ family: ye
1088
1806
  }),
1089
1807
  meta: t("partners", "languages")
1090
1808
  },
1091
1809
  {
1092
1810
  path: "/partner/:id/objects",
1093
1811
  name: "partner-objects",
1094
- component: ur,
1812
+ component: qa,
1095
1813
  props: { texts: n },
1096
1814
  meta: t("partners")
1097
1815
  },
1098
1816
  {
1099
1817
  path: "/institution/:id",
1100
1818
  name: "institution",
1101
- component: Ht,
1819
+ component: Vt,
1102
1820
  props: (e) => ({
1103
1821
  id: String(e.params.id),
1104
- family: S,
1822
+ family: ye,
1105
1823
  variant: "institution"
1106
1824
  }),
1107
1825
  meta: t("partners", "languages")
@@ -1109,7 +1827,7 @@ function wr(e) {
1109
1827
  {
1110
1828
  path: "/institution/:id/monuments",
1111
1829
  name: "institution-monuments",
1112
- component: ur,
1830
+ component: qa,
1113
1831
  props: {
1114
1832
  variant: "institution",
1115
1833
  texts: n
@@ -1119,36 +1837,36 @@ function wr(e) {
1119
1837
  {
1120
1838
  path: "/timeline-results",
1121
1839
  name: "timeline-results",
1122
- component: tr,
1840
+ component: Ai,
1123
1841
  meta: t("timeline", "timelines", "timeline_events")
1124
1842
  },
1125
1843
  {
1126
1844
  path: "/timeline/gallery",
1127
1845
  name: "timeline-gallery",
1128
- component: nr,
1846
+ component: Li,
1129
1847
  meta: t("timeline", "timelines", "timeline_events")
1130
1848
  },
1131
1849
  {
1132
1850
  path: "/collection",
1133
1851
  name: "collection",
1134
- component: cr,
1135
- meta: t("collection", "tags")
1852
+ component: Ra,
1853
+ meta: t("collection", "tags", "themes")
1136
1854
  },
1137
1855
  {
1138
1856
  path: "/collection-results",
1139
1857
  name: "collection-results",
1140
- component: or,
1141
- meta: t("collection", "tags", "timelines")
1858
+ component: ya,
1859
+ meta: t("collection", "tags", "timelines", "themes")
1142
1860
  }
1143
1861
  ];
1144
1862
  }
1145
- function Tr(e, t = {}) {
1146
- if (e === "gallery") return Cr(t);
1147
- if (e === "exhibition") return wr(t);
1863
+ function co(e, t = {}) {
1864
+ if (e === "gallery") return oo(t);
1865
+ if (e === "exhibition") return so(t);
1148
1866
  throw Error(`standardRoutes: unknown family "${e}" (expected "gallery" or "exhibition")`);
1149
1867
  }
1150
1868
  // node_modules/@museumwnf/viewer-core/src/legacy/index.js
1151
- function Er(e, t = []) {
1869
+ function lo(e, t = []) {
1152
1870
  let n = String(e?.backward_compatibility ?? "").split(":");
1153
1871
  if (n[0] === "mwnf3_sharing_history") {
1154
1872
  let t = n[2] ?? e?.id ?? "";
@@ -1167,18 +1885,18 @@ function Er(e, t = []) {
1167
1885
  countryCode: r?.code ?? ""
1168
1886
  };
1169
1887
  }
1170
- function Dr(e, t, n, r) {
1888
+ function uo(e, t, n, r) {
1171
1889
  return (e ?? []).find((e) => {
1172
- let i = Er(e, t);
1890
+ let i = lo(e, t);
1173
1891
  return i.legacyId === r && i.countryCode === n;
1174
1892
  }) ?? null;
1175
1893
  }
1176
- function Or(e, t) {
1894
+ function fo(e, t) {
1177
1895
  let n = String(t ?? "").split("/").join(":").toLowerCase();
1178
1896
  return (e ?? []).find((e) => e?.backward_compatibility?.toLowerCase() === n) ?? null;
1179
1897
  }
1180
1898
  // src/dxa/gallery/Shell.vue
1181
- var kr = {
1899
+ var po = {
1182
1900
  __name: "Shell",
1183
1901
  props: {
1184
1902
  language: {
@@ -1192,56 +1910,56 @@ var kr = {
1192
1910
  },
1193
1911
  emits: ["update:language"],
1194
1912
  setup(e, { emit: t }) {
1195
- let n = e, r = t, { t: i, locale: a } = Y(), o = X(), s = M(() => o.links ?? {}), c = M(() => o.galleryShell ?? {}), l = Rt(), u = M(() => 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();
1196
1914
  function f(e) {
1197
1915
  return e?.[a.value] ?? e?.en ?? "";
1198
1916
  }
1199
- let p = M(() => {
1200
- let e = be.projects?.[be.gallery?.project_id ?? x.value?.project_id];
1201
- return f(e?.name) || f(be.site?.names) || f(x.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);
1202
1920
  });
1203
1921
  function h(e, t) {
1204
1922
  if (!(e in c.value)) return t();
1205
1923
  let n = c.value[e];
1206
1924
  return n ? i(n) : "";
1207
1925
  }
1208
- let ee = M(() => u.value ? "" : h("headerEyebrow", () => i("core.project.galleries"))), g = M(() => u.value ? "" : h("headerTitle", () => p.value)), te = M(() => c.value.bannerImage ? k(o.chrome, c.value.bannerImage) : v(x.value?.banner_image_path, "hi_res")), _ = M(() => {
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(() => {
1209
1927
  if (c.value.bannerCaption) return c.value.bannerCaption;
1210
- let e = ae.value.get(x.value?.banner_item_id);
1928
+ let e = te.value.get(oe.value?.banner_item_id);
1211
1929
  if (!e) return "";
1212
- let t = m("items", e.id, re);
1930
+ let t = p("items", e.id, fe);
1213
1931
  return {
1214
- name: y("items", e.id),
1215
- partner: y("partners", e.partner_id),
1932
+ name: ne("items", e.id),
1933
+ partner: ne("partners", e.partner_id),
1216
1934
  location: t.location ?? "",
1217
- country: y("countries", e.country_id)
1935
+ country: ne("countries", e.country_id)
1218
1936
  };
1219
- }), ne = M(() => u.value ? h("bannerEyebrow", () => i("gallery.banner.discoverGalleries")) : ""), ie = M(() => u.value ? h("bannerTitle", () => p.value) : void 0), oe = M(() => 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 : {
1220
1938
  title: i("gallery.notice.tip"),
1221
1939
  text: i("gallery.notice.databaseReplaced")
1222
- }), se = M(() => !!k(o.chrome, o.brand?.logo));
1223
- return (e, t) => (B(), N(it, {
1224
- class: z(["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 }]),
1225
1943
  languages: n.languages,
1226
1944
  language: n.language,
1227
1945
  "language-placement": "none",
1228
1946
  "header-home": s.value.portal,
1229
- "header-eyebrow": ee.value,
1230
- "header-title": g.value,
1947
+ "header-eyebrow": g.value,
1948
+ "header-title": _.value,
1231
1949
  "header-title-href": "#/",
1232
- "banner-image": te.value,
1233
- "banner-caption": _.value,
1234
- "banner-eyebrow": ne.value,
1235
- "banner-title": ie.value,
1236
- notice: oe.value,
1237
- "footer-text": `${W(i)("core.footer.copyright")} 2004–${W(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)}`,
1238
1956
  "onUpdate:language": t[0] ||= (e) => r("update:language", e)
1239
- }, gt({
1240
- default: G(() => [bt(e.$slots, "default")]),
1957
+ }, ct({
1958
+ default: H(() => [pt(e.$slots, "default")]),
1241
1959
  _: 2
1242
- }, [se.value ? void 0 : {
1960
+ }, [ie.value ? void 0 : {
1243
1961
  name: "brand",
1244
- fn: G(() => [t[1] ||= I("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
1962
+ fn: H(() => [t[1] ||= N("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
1245
1963
  key: "0"
1246
1964
  }]), 1032, [
1247
1965
  "class",
@@ -1258,10 +1976,10 @@ var kr = {
1258
1976
  "footer-text"
1259
1977
  ]));
1260
1978
  }
1261
- }, Ar = {
1979
+ }, mo = {
1262
1980
  key: 0,
1263
1981
  class: "mwnf-popup-logo"
1264
- }, jr = ["aria-label"], Mr = ["innerHTML"], Nr = ["innerHTML"], Pr = {
1982
+ }, ho = ["aria-label"], go = ["innerHTML"], _o = ["innerHTML"], vo = {
1265
1983
  __name: "PopupLogo",
1266
1984
  props: {
1267
1985
  content: {
@@ -1282,22 +2000,22 @@ var kr = {
1282
2000
  }
1283
2001
  },
1284
2002
  setup(e) {
1285
- let t = e, n = V(!1), r = M(() => t.rawHtml ? t.content : At(t.content)), i = M(() => t.enabled && !!t.content && !n.value);
1286
- return (t, a) => i.value ? (B(), F("div", Ar, [I("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", {
1287
2005
  class: "mwnf-popup-logo__close",
1288
2006
  "aria-label": t.$t(e.closeLabel),
1289
2007
  onClick: a[0] ||= (e) => n.value = !0
1290
- }, "✕", 8, jr), e.rawHtml ? (B(), F("div", {
2008
+ }, "✕", 8, ho), e.rawHtml ? (L(), M("div", {
1291
2009
  key: 0,
1292
2010
  class: "mwnf-popup-logo__content",
1293
2011
  innerHTML: r.value
1294
- }, null, 8, Mr)) : (B(), F("div", {
2012
+ }, null, 8, go)) : (L(), M("div", {
1295
2013
  key: 1,
1296
2014
  class: "mwnf-popup-logo__content",
1297
2015
  innerHTML: r.value
1298
- }, null, 8, Nr))])) : P("", !0);
2016
+ }, null, 8, _o))])) : j("", !0);
1299
2017
  }
1300
- }, Fr = {
2018
+ }, yo = {
1301
2019
  __name: "Shell",
1302
2020
  props: {
1303
2021
  language: {
@@ -1311,20 +2029,24 @@ var kr = {
1311
2029
  },
1312
2030
  emits: ["update:language"],
1313
2031
  setup(e, { emit: t }) {
1314
- let n = e, r = t, { t: i, locale: a } = Y(), o = X(), s = M(() => o.links ?? {}), c = M(() => !!k(o.chrome, o.brand?.logo)), l = Rt(), u = M(() => l.value === "home"), d = (/* @__PURE__ */ new Date()).getFullYear(), f = M(() => u.value ? C.value?.homepage_image_path : null), p = M(() => f.value ? w(f.value, "hi_res") : w(C.value?.banner_image_path, "hi_res")), m = M(() => {
1315
- let e = f.value ? "" : Fe(a.value);
1316
- if (e) return e;
1317
- let t = f.value ? C.value?.homepage_item_id : C.value?.banner_item_id, n = T.value.get(t);
1318
- if (!n) return "";
1319
- let r = Te("items", n.id, Re);
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);
1320
2042
  return {
1321
- name: Qe("items", n.id),
1322
- holder: r.holder ?? "",
1323
- location: r.location ?? "",
1324
- province: f.value ? "" : r.province ?? "",
1325
- country: Qe("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)
1326
2048
  };
1327
- }), h = M(() => [{
2049
+ }), h = k(() => [{
1328
2050
  label: i("core.nav.about"),
1329
2051
  description: i("exhibition.nav.introduction"),
1330
2052
  href: "#/about"
@@ -1333,18 +2055,18 @@ var kr = {
1333
2055
  description: i("exhibition.nav.contentAtAGlance"),
1334
2056
  href: "#/themes"
1335
2057
  }]);
1336
- function ee(e) {
2058
+ function g(e) {
1337
2059
  return e.labels?.[a.value] ?? e.labels?.en ?? e.alt_text ?? "";
1338
2060
  }
1339
- let g = M(() => {
2061
+ let _ = k(() => {
1340
2062
  let e = o.sponsorLogos;
1341
2063
  return Array.isArray(e) ? e.map((e) => ({
1342
2064
  ...e,
1343
- image: k(o.chrome, e.image),
2065
+ image: $e(o.chrome, e.image),
1344
2066
  alt: e.alt ? i(e.alt) : ""
1345
2067
  })).filter((e) => e.image) : (C.value?.logos ?? []).map((e) => ({
1346
- image: e.legacy_path ? w(e.legacy_path, "full") : null,
1347
- alt: ee(e),
2068
+ image: e.legacy_path ? Ve(e.legacy_path, "full") : null,
2069
+ alt: g(e),
1348
2070
  href: e.url || void 0,
1349
2071
  category_id: e.category_id,
1350
2072
  category: e.category,
@@ -1352,54 +2074,54 @@ var kr = {
1352
2074
  display_order: e.display_order
1353
2075
  })).filter((e) => e.image);
1354
2076
  });
1355
- function te(e) {
2077
+ function v(e) {
1356
2078
  let t = o.media?.legacyHost;
1357
2079
  if (!t || !e.startsWith(`${t.replace(/\/+$/, "")}/`)) return null;
1358
2080
  let n = e.slice(t.replace(/\/+$/, "").length + 1).split("/").slice(1).join("/");
1359
- return ot(o.chrome, n);
2081
+ return Qe(o.chrome, n);
1360
2082
  }
1361
- let _ = M(() => at(Se(C.value?.popup_logos?.[a.value] ?? C.value?.popup_logos?.en ?? ""), te)), v = M(() => {
2083
+ let y = k(() => Ze(Te(C.value?.popup_logos?.[a.value] ?? C.value?.popup_logos?.en ?? ""), v)), ee = k(() => {
1362
2084
  let e = C.value?.popup_logo_show;
1363
2085
  return e == null ? !1 : typeof e == "boolean" ? e : e[a.value] ?? e.en ?? !1;
1364
2086
  });
1365
- return (e, t) => (B(), N(it, {
2087
+ return (e, t) => (L(), A(Xe, {
1366
2088
  languages: n.languages,
1367
2089
  language: n.language,
1368
2090
  "language-placement": "header",
1369
2091
  "language-style": "select",
1370
2092
  "header-home": s.value.portal,
1371
- "header-title": W(i)("exhibition.identity.tagline"),
2093
+ "header-title": V(i)("exhibition.identity.tagline"),
1372
2094
  "header-title-href": "#/about",
1373
2095
  "banner-image": p.value,
1374
2096
  "banner-caption": m.value,
1375
- "banner-caption-label": W(i)("layout.banner.detailFrom"),
1376
- "banner-title": u.value ? W(Be)(W(a)) : "",
1377
- "banner-subtitle": u.value ? W(Ge)(W(a)) : "",
1378
- "banner-headline": u.value ? W(qe)(W(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)) : "",
1379
2101
  "banner-enter": u.value ? {
1380
- label: W(i)("exhibition.action.enter"),
2102
+ label: V(i)("exhibition.action.enter"),
1381
2103
  href: "#/about"
1382
2104
  } : null,
1383
- "banner-strapline": u.value ? W(i)("exhibition.identity.strapline") : "",
2105
+ "banner-strapline": u.value ? V(i)("exhibition.identity.strapline") : "",
1384
2106
  "hyperlinks-variant": "tiles",
1385
- "hyperlinks-title": W(Be)(W(a)),
2107
+ "hyperlinks-title": V(Ae)(V(a)),
1386
2108
  "hyperlinks-title-href": "#/",
1387
- "hyperlinks-subtitle": W(Ge)(W(a)),
2109
+ "hyperlinks-subtitle": V(We)(V(a)),
1388
2110
  hyperlinks: h.value,
1389
- "footer-text": `${W(i)("core.footer.copyright")} 2004–${W(d)}`,
1390
- logos: g.value,
2111
+ "footer-text": `${V(i)("core.footer.copyright")} 2004–${V(d)}`,
2112
+ logos: _.value,
1391
2113
  "onUpdate:language": t[0] ||= (e) => r("update:language", e)
1392
- }, gt({
1393
- notice: G(() => [R(Pr, {
1394
- content: _.value,
1395
- enabled: v.value,
2114
+ }, ct({
2115
+ notice: H(() => [F(vo, {
2116
+ content: y.value,
2117
+ enabled: ee.value,
1396
2118
  "raw-html": ""
1397
2119
  }, null, 8, ["content", "enabled"])]),
1398
- default: G(() => [bt(e.$slots, "default")]),
2120
+ default: H(() => [pt(e.$slots, "default")]),
1399
2121
  _: 2
1400
2122
  }, [c.value ? void 0 : {
1401
2123
  name: "brand",
1402
- fn: G(() => [t[1] ||= I("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
2124
+ fn: H(() => [t[1] ||= N("span", { class: "mwnf-dxa-logo-mark" }, "MWNF", -1)]),
1403
2125
  key: "0"
1404
2126
  }]), 1032, [
1405
2127
  "languages",
@@ -1423,23 +2145,27 @@ var kr = {
1423
2145
  }
1424
2146
  };
1425
2147
  // src/dxa/config.js
1426
- function Ir({ 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 }) {
1427
2153
  let i = { country: e };
1428
2154
  return t !== "any" && (i.begin = t), n !== "any" && (i.end = n), Number(r) > 1 && (i.page = r), {
1429
2155
  name: "timeline-gallery",
1430
2156
  query: i
1431
2157
  };
1432
2158
  }
1433
- function Lr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects: i = [], creditsBody: a, chrome: o = {}, homeLogos: s = [] }) {
1434
- let { manifest: c } = Pt(), l = kt();
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();
1435
2161
  return {
1436
2162
  datasetPackage: e,
1437
2163
  siteName: c.site?.names?.en ?? t,
1438
2164
  features: { entities: [] },
1439
2165
  languages: l,
1440
- shell: kr,
2166
+ shell: po,
1441
2167
  navigation: {
1442
- languages: Dt(l),
2168
+ languages: Ct(l),
1443
2169
  links: [
1444
2170
  {
1445
2171
  section: "about",
@@ -1468,7 +2194,7 @@ function Lr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1468
2194
  },
1469
2195
  {
1470
2196
  label: "core.nav.myCollection",
1471
- href: J.myCollection,
2197
+ href: G.myCollection,
1472
2198
  external: !0
1473
2199
  }
1474
2200
  ],
@@ -1477,33 +2203,33 @@ function Lr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1477
2203
  to: { name: "home" }
1478
2204
  }, {
1479
2205
  label: "gallery.nav.allGalleries",
1480
- href: `${J.galleries}/list/1`,
2206
+ href: `${G.galleries}/list/1`,
1481
2207
  external: !0
1482
2208
  }],
1483
2209
  footerLinks: [
1484
2210
  {
1485
2211
  label: "core.footer.aboutMwnf",
1486
- href: J.about,
2212
+ href: G.about,
1487
2213
  external: !0
1488
2214
  },
1489
2215
  {
1490
2216
  label: "core.footer.contact",
1491
- href: J.contact,
2217
+ href: G.contact,
1492
2218
  external: !0
1493
2219
  },
1494
2220
  {
1495
2221
  label: "core.footer.legalNotice",
1496
- href: J.legalNotice,
2222
+ href: G.legalNotice,
1497
2223
  external: !0
1498
2224
  },
1499
2225
  {
1500
2226
  label: "core.footer.credits",
1501
- href: J.credits,
2227
+ href: G.credits,
1502
2228
  external: !0
1503
2229
  },
1504
2230
  {
1505
2231
  label: "core.footer.cookies",
1506
- href: J.cookies,
2232
+ href: G.cookies,
1507
2233
  external: !0
1508
2234
  }
1509
2235
  ],
@@ -1524,7 +2250,7 @@ function Lr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1524
2250
  empty: "all-objects"
1525
2251
  },
1526
2252
  placement: ({ section: e }) => e === "home" ? "after-banner" : "before-banner",
1527
- socialLinks: ct
2253
+ socialLinks: tt
1528
2254
  },
1529
2255
  banner: {
1530
2256
  variant: ({ section: e }) => e === "home" ? "strip" : "section",
@@ -1542,11 +2268,11 @@ function Lr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1542
2268
  },
1543
2269
  homeLogos: s,
1544
2270
  media: { legacyHost: "https://images.museumwnf.org" },
1545
- links: { ...J },
2271
+ links: { ...G },
1546
2272
  projectColors: r,
1547
2273
  noticeProjects: i,
1548
2274
  site: { origin: n },
1549
- extraViews: Tr("gallery", {
2275
+ extraViews: co("gallery", {
1550
2276
  creditsBody: a,
1551
2277
  pages: !0
1552
2278
  }),
@@ -1554,8 +2280,8 @@ function Lr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1554
2280
  {
1555
2281
  path: "/database-item/:uid(.*)/:language",
1556
2282
  async resolve({ uid: e }) {
1557
- await q(["items"]);
1558
- let t = de(e);
2283
+ await wt(["items"]);
2284
+ let t = ue(e);
1559
2285
  return t ? {
1560
2286
  name: "item",
1561
2287
  params: { id: t.id }
@@ -1565,8 +2291,8 @@ function Lr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1565
2291
  {
1566
2292
  path: "/partner/:country/:id/:language",
1567
2293
  async resolve({ country: e, id: t }) {
1568
- await q(["partners"]);
1569
- let n = g(e, t);
2294
+ await wt(["partners"]);
2295
+ let n = _e(e, t);
1570
2296
  return n ? {
1571
2297
  name: "partner",
1572
2298
  params: { id: n.id }
@@ -1576,8 +2302,8 @@ function Lr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1576
2302
  {
1577
2303
  path: "/partner-objects/:country/:id/:page",
1578
2304
  async resolve({ country: e, id: t, page: n }) {
1579
- await q(["partners"]);
1580
- let r = g(e, t);
2305
+ await wt(["partners"]);
2306
+ let r = _e(e, t);
1581
2307
  return r ? {
1582
2308
  name: "partner-objects",
1583
2309
  params: { id: r.id },
@@ -1587,7 +2313,7 @@ function Lr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1587
2313
  },
1588
2314
  {
1589
2315
  path: "/timeline-gallery/:country/:start/:end/:page",
1590
- resolve: Ir
2316
+ resolve: xo
1591
2317
  },
1592
2318
  {
1593
2319
  path: "/error",
@@ -1596,18 +2322,18 @@ function Lr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1596
2322
  ]
1597
2323
  };
1598
2324
  }
1599
- function Rr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {}, noticeProjects: i = [], creditsBody: a, partnerObjects: o, chrome: s = {}, sponsorLogos: c }) {
1600
- let { manifest: l } = Pt(), u = kt(), d = async (e, t) => (await q([
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([
1601
2327
  "exhibition",
1602
2328
  "partners",
1603
2329
  "countries"
1604
- ]), Dr(Me.value, Le.value, e, t));
2330
+ ]), uo(Ce.value, Oe.value, e, t));
1605
2331
  return {
1606
2332
  datasetPackage: e,
1607
2333
  siteName: l.site?.names?.en ?? t,
1608
2334
  features: { entities: [] },
1609
2335
  languages: u,
1610
- shell: Fr,
2336
+ shell: yo,
1611
2337
  navigation: {
1612
2338
  languages: u.map((e) => ({
1613
2339
  code: e,
@@ -1638,7 +2364,7 @@ function Rr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1638
2364
  section: "timeline",
1639
2365
  label: "core.nav.timeline",
1640
2366
  to: { name: "timeline" },
1641
- when: () => ze.value
2367
+ when: () => je.value
1642
2368
  },
1643
2369
  {
1644
2370
  section: "related",
@@ -1652,7 +2378,7 @@ function Rr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1652
2378
  },
1653
2379
  {
1654
2380
  label: "core.nav.myCollection",
1655
- href: J.myCollection,
2381
+ href: G.myCollection,
1656
2382
  external: !0
1657
2383
  }
1658
2384
  ],
@@ -1661,33 +2387,33 @@ function Rr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1661
2387
  to: { name: "home" }
1662
2388
  }, {
1663
2389
  label: "core.footer.aboutMwnf",
1664
- href: J.about,
2390
+ href: G.about,
1665
2391
  external: !0
1666
2392
  }],
1667
2393
  footerLinks: [
1668
2394
  {
1669
2395
  label: "core.footer.aboutMwnf",
1670
- href: J.about,
2396
+ href: G.about,
1671
2397
  external: !0
1672
2398
  },
1673
2399
  {
1674
2400
  label: "core.footer.contact",
1675
- href: J.contact,
2401
+ href: G.contact,
1676
2402
  external: !0
1677
2403
  },
1678
2404
  {
1679
2405
  label: "core.footer.legalNotice",
1680
- href: J.legalNotice,
2406
+ href: G.legalNotice,
1681
2407
  external: !0
1682
2408
  },
1683
2409
  {
1684
2410
  label: "core.footer.credits",
1685
- href: J.credits,
2411
+ href: G.credits,
1686
2412
  external: !0
1687
2413
  },
1688
2414
  {
1689
2415
  label: "core.footer.cookies",
1690
- href: J.cookies,
2416
+ href: G.cookies,
1691
2417
  external: !0
1692
2418
  }
1693
2419
  ],
@@ -1706,12 +2432,21 @@ function Rr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1706
2432
  key: "q",
1707
2433
  placeholder: "catalogue.search.placeholder",
1708
2434
  submitLabel: "catalogue.search.submit",
1709
- empty: "all-objects"
2435
+ empty: "all-items"
1710
2436
  },
1711
2437
  placement: "before-banner",
1712
- socialLinks: ct
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
+ }
1713
2449
  },
1714
- banner: { variant: ({ section: e }) => e === "home" ? "split" : "section" },
1715
2450
  chrome: s,
1716
2451
  brand: {
1717
2452
  logo: "logo_black.png",
@@ -1729,7 +2464,7 @@ function Rr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1729
2464
  r ? r.push(t) : n.set(e, [t]);
1730
2465
  }
1731
2466
  return [...n.entries()].sort((e, t) => e[0] - t[0]).map(([e, n]) => ({
1732
- 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 ?? "",
1733
2468
  sponsors: [...n].sort((e, t) => (e.display_order ?? 0) - (t.display_order ?? 0)).map((e) => ({
1734
2469
  name: e.alt,
1735
2470
  href: e.href,
@@ -1739,11 +2474,11 @@ function Rr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1739
2474
  }
1740
2475
  },
1741
2476
  media: { legacyHost: "https://images.museumwnf.org" },
1742
- links: { ...J },
2477
+ links: { ...G },
1743
2478
  projectColors: r,
1744
2479
  noticeProjects: i,
1745
2480
  site: { origin: n },
1746
- extraViews: Tr("exhibition", {
2481
+ extraViews: co("exhibition", {
1747
2482
  creditsBody: a,
1748
2483
  partnerObjects: o,
1749
2484
  pages: !0
@@ -1752,8 +2487,8 @@ function Rr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1752
2487
  {
1753
2488
  path: "/database-item/:uid(.*)/:language",
1754
2489
  async resolve({ uid: e }) {
1755
- await q(["items"]);
1756
- let t = Or(Ie.value, e);
2490
+ await wt(["items"]);
2491
+ let t = fo(De.value, e);
1757
2492
  return t ? {
1758
2493
  name: "item",
1759
2494
  params: { id: t.id }
@@ -1804,7 +2539,7 @@ function Rr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1804
2539
  },
1805
2540
  {
1806
2541
  path: "/timeline-gallery/:country/:start/:end/:page",
1807
- resolve: Ir
2542
+ resolve: xo
1808
2543
  },
1809
2544
  {
1810
2545
  path: "/error",
@@ -1814,16 +2549,16 @@ function Rr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1814
2549
  };
1815
2550
  }
1816
2551
  // src/dxa/FeaturedPartners.vue
1817
- var zr = {
2552
+ var wo = {
1818
2553
  key: 0,
1819
2554
  class: "mwnf-featured-partners"
1820
- }, Br = { class: "mwnf-featured-partners__heading" }, Vr = { class: "mwnf-featured-partners__carousel" }, Hr = {
2555
+ }, To = { class: "mwnf-featured-partners__heading" }, Eo = { class: "mwnf-featured-partners__carousel" }, Do = {
1821
2556
  key: 0,
1822
2557
  class: "mwnf-featured-partners__image"
1823
- }, Ur = ["src", "alt"], Wr = { class: "mwnf-featured-partners__body" }, Gr = { class: "mwnf-featured-partners__name" }, Kr = { class: "mwnf-featured-partners__location" }, qr = { key: 0 }, Jr = { class: "mwnf-featured-partners__description" }, Yr = {
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 = {
1824
2559
  key: 0,
1825
2560
  class: "mwnf-featured-partners__controls"
1826
- }, Xr = ["aria-label", "onClick"], Zr = 8e3, Qr = {
2561
+ }, Fo = ["aria-label", "onClick"], Io = 8e3, Lo = {
1827
2562
  __name: "FeaturedPartners",
1828
2563
  props: {
1829
2564
  records: {
@@ -1853,90 +2588,90 @@ var zr = {
1853
2588
  },
1854
2589
  setup(e) {
1855
2590
  let t = e;
1856
- function n(e) {
2591
+ function r(e) {
1857
2592
  let t = String(e ?? "").replace(/<[^>]*>/g, " ");
1858
2593
  return (typeof DOMParser > "u" ? t : new DOMParser().parseFromString(t, "text/html").documentElement.textContent ?? "").replace(/\s+/g, " ").trim();
1859
2594
  }
1860
- function r(e, t) {
2595
+ function i(e, t) {
1861
2596
  if (!e || e.length <= t) return e;
1862
2597
  let n = e.lastIndexOf(" ", t);
1863
2598
  return `${e.slice(0, n > 0 ? n : t)}...`;
1864
2599
  }
1865
- let i = M(() => t.partners.length ? t.partners.map((e) => ({
2600
+ let a = k(() => t.partners.length ? t.partners.map((e) => ({
1866
2601
  id: e.id,
1867
2602
  name: e.plainName,
1868
2603
  logo: e.pictures?.[0]?.url ?? e.logos?.[0]?.url ?? null,
1869
2604
  city: e.city,
1870
2605
  country: e.country,
1871
- description: r(n(e.description), t.descriptionLength),
2606
+ description: i(r(e.description), t.descriptionLength),
1872
2607
  route: e.route,
1873
2608
  objectsRoute: e.objectsRoute ?? null
1874
- })) : t.records), a = V(0), o = null;
2609
+ })) : t.records), o = R(0), s = null;
1875
2610
  function c(e) {
1876
- a.value = e, l();
2611
+ o.value = e, l();
1877
2612
  }
1878
2613
  function l() {
1879
- o && clearInterval(o), i.value.length > 0 && (o = setInterval(() => {
1880
- a.value = (a.value + 1) % i.value.length;
1881
- }, Zr));
2614
+ s && clearInterval(s), a.value.length > 0 && (s = setInterval(() => {
2615
+ o.value = (o.value + 1) % a.value.length;
2616
+ }, Io));
1882
2617
  }
1883
- return yt(l), vt(() => o && clearInterval(o)), (t, n) => i.value.length ? (B(), F("section", zr, [
1884
- I("h2", Br, U(t.$t(e.headingEntry)), 1),
1885
- I("div", Vr, [(B(!0), F(j, null, H(i.value, (n, r) => wt((B(), F("div", {
1886
- 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,
1887
2622
  class: "mwnf-featured-partners__card"
1888
- }, [n.logo ? (B(), F("span", Hr, [I("img", {
1889
- src: n.logo,
1890
- alt: n.name,
2623
+ }, [r.logo ? (L(), M("span", Do, [N("img", {
2624
+ src: r.logo,
2625
+ alt: r.name,
1891
2626
  class: "mwnf-featured-partners__logo"
1892
- }, null, 8, Ur)])) : P("", !0), I("span", Wr, [
1893
- I("span", Gr, U(n.name), 1),
1894
- I("span", Kr, [n.city ? (B(), F("span", qr, U(n.city) + ", ", 1)) : P("", !0), L(U(n.country), 1)]),
1895
- I("span", Jr, U(n.description), 1),
1896
- n.route ? (B(), N(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, {
1897
2632
  key: 0,
1898
- to: n.route,
2633
+ to: r.route,
1899
2634
  class: "mwnf-featured-partners__more"
1900
2635
  }, {
1901
- default: G(() => [L(U(t.$t(e.readMoreEntry)) + " >>", 1)]),
2636
+ default: H(() => [P(B(t.$t(e.readMoreEntry)) + " >>", 1)]),
1902
2637
  _: 1
1903
- }, 8, ["to"])) : P("", !0),
1904
- n.objectsRoute ? (B(), N(s, {
2638
+ }, 8, ["to"])) : j("", !0),
2639
+ r.objectsRoute ? (L(), A(n, {
1905
2640
  key: 1,
1906
- to: n.objectsRoute,
2641
+ to: r.objectsRoute,
1907
2642
  class: "mwnf-featured-partners__more"
1908
2643
  }, {
1909
- default: G(() => [L(U(t.$t(e.viewObjectsEntry)) + " >>", 1)]),
2644
+ default: H(() => [P(B(t.$t(e.viewObjectsEntry)) + " >>", 1)]),
1910
2645
  _: 1
1911
- }, 8, ["to"])) : P("", !0)
1912
- ])])), [[Ct, r === a.value]])), 128))]),
1913
- i.value.length > 1 ? (B(), F("div", Yr, [(B(!0), F(j, null, H(i.value, (e, n) => (B(), F("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", {
1914
2649
  key: e.id,
1915
- class: z(["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 }]),
1916
2651
  "aria-label": `${t.$t("core.action.show")} ${e.name}`,
1917
2652
  onClick: (e) => c(n)
1918
- }, null, 10, Xr))), 128))])) : P("", !0)
1919
- ])) : P("", !0);
2653
+ }, null, 10, Fo))), 128))])) : j("", !0)
2654
+ ])) : j("", !0);
1920
2655
  }
1921
- }, $r = { class: "mwnf-sibling-galleries" }, ei = {
2656
+ }, Ro = { class: "mwnf-sibling-galleries" }, zo = {
1922
2657
  key: 0,
1923
2658
  class: "mwnf-sibling-galleries__galleries"
1924
- }, ti = { class: "mwnf-sibling-galleries__header" }, ni = { class: "mwnf-sibling-galleries__heading" }, ri = ["href"], ii = { class: "mwnf-sibling-galleries__grid" }, ai = {
2659
+ }, Bo = { class: "mwnf-sibling-galleries__header" }, Vo = { class: "mwnf-sibling-galleries__heading" }, Ho = ["href"], Uo = { class: "mwnf-sibling-galleries__grid" }, Wo = {
1925
2660
  key: 0,
1926
2661
  class: "mwnf-sibling-galleries__image"
1927
- }, oi = ["src", "alt"], si = {
2662
+ }, Go = ["src", "alt"], Ko = {
1928
2663
  key: 1,
1929
2664
  class: "mwnf-sibling-galleries__image mwnf-sibling-galleries__image--empty"
1930
- }, ci = { class: "mwnf-sibling-galleries__name" }, li = {
2665
+ }, qo = { class: "mwnf-sibling-galleries__name" }, Jo = {
1931
2666
  key: 1,
1932
2667
  class: "mwnf-sibling-galleries__museums"
1933
- }, ui = { class: "mwnf-sibling-galleries__heading" }, di = { class: "mwnf-sibling-galleries__museums-grid" }, fi = ["href"], pi = {
2668
+ }, Yo = { class: "mwnf-sibling-galleries__heading" }, Xo = { class: "mwnf-sibling-galleries__museums-grid" }, Zo = ["href"], Qo = {
1934
2669
  key: 0,
1935
2670
  class: "mwnf-sibling-galleries__museum-image mwnf-sibling-galleries__museum-image--picture"
1936
- }, mi = ["src"], hi = {
2671
+ }, $o = ["src"], es = {
1937
2672
  key: 1,
1938
2673
  class: "mwnf-sibling-galleries__museum-image"
1939
- }, gi = { class: "mwnf-sibling-galleries__museum-name" }, _i = {
2674
+ }, ts = { class: "mwnf-sibling-galleries__museum-name" }, ns = {
1940
2675
  __name: "SiblingGalleries",
1941
2676
  props: {
1942
2677
  galleries: {
@@ -1965,100 +2700,100 @@ var zr = {
1965
2700
  }
1966
2701
  },
1967
2702
  setup(e) {
1968
- return (t, n) => (B(), F("section", $r, [e.galleries.length ? (B(), F("div", ei, [I("div", ti, [I("p", ni, U(t.$t(e.galleriesHeadingEntry)), 1), e.seeMoreGalleriesHref ? (B(), F("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", {
1969
2704
  key: 0,
1970
2705
  href: e.seeMoreGalleriesHref,
1971
2706
  target: "_blank",
1972
2707
  rel: "noopener",
1973
2708
  class: "mwnf-sibling-galleries__see-more"
1974
- }, U(t.$t(e.seeMoreGalleriesEntry)) + " » ", 9, ri)) : P("", !0)]), I("div", ii, [(B(!0), F(j, null, H(e.galleries, (e) => (B(), N(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, {
1975
2710
  key: e.id,
1976
2711
  to: e.route,
1977
- class: z(["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 }])
1978
2713
  }, {
1979
- default: G(() => [e.image ? (B(), F("span", ai, [I("img", {
2714
+ default: H(() => [e.image ? (L(), M("span", Wo, [N("img", {
1980
2715
  src: e.image,
1981
2716
  alt: e.name
1982
- }, null, 8, oi)])) : (B(), F("span", si)), I("p", ci, U(e.name), 1)]),
2717
+ }, null, 8, Go)])) : (L(), M("span", Ko)), N("p", qo, B(e.name), 1)]),
1983
2718
  _: 2
1984
- }, 1032, ["to", "class"]))), 128))])])) : P("", !0), e.museums.length ? (B(), F("div", li, [I("div", ui, U(t.$t(e.museumsHeadingEntry)), 1), I("div", di, [(B(!0), F(j, null, H(e.museums, (e) => (B(), F("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", {
1985
2720
  key: e.name,
1986
2721
  href: e.href || e.to,
1987
2722
  target: "_blank",
1988
2723
  rel: "noopener",
1989
2724
  class: "mwnf-sibling-galleries__museum",
1990
- style: _t({
2725
+ style: lt({
1991
2726
  "--mwnf-museum-bg": e.accent || "var(--mwnf-color-border)",
1992
2727
  "--mwnf-museum-text": e.textColor || "inherit"
1993
2728
  })
1994
- }, [e.image ? (B(), F("div", pi, [I("img", {
2729
+ }, [e.image ? (L(), M("div", Qo, [N("img", {
1995
2730
  src: e.image,
1996
2731
  alt: ""
1997
- }, null, 8, mi)])) : (B(), F("div", hi, U(e.name.split(" ").map((e) => e[0]).join("")), 1)), I("p", gi, U(e.name), 1)], 12, fi))), 128))])])) : P("", !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)]));
1998
2733
  }
1999
- }, vi = /* @__PURE__ */ A({ default: () => Ei }), yi = { class: "mwnf-dxa-home" }, bi = {
2734
+ }, rs = /* @__PURE__ */ D({ default: () => ds }), is = { class: "mwnf-dxa-home" }, as = {
2000
2735
  key: 0,
2001
2736
  class: "mwnf-dxa-home-logos"
2002
- }, xi = { class: "mwnf-dxa-home-logos__label" }, Si = { class: "mwnf-dxa-home-logos__list" }, Ci = ["src", "alt"], wi = 3, Ti = 4, Ei = {
2737
+ }, os = { class: "mwnf-dxa-home-logos__label" }, ss = { class: "mwnf-dxa-home-logos__list" }, cs = ["src", "alt"], ls = 3, us = 4, ds = {
2003
2738
  __name: "Home",
2004
2739
  setup(e) {
2005
- let { t, locale: n } = Y(), r = X(), i = M(() => r.links ?? {}), a = M(() => ue(wi)), o = V([]);
2006
- yt(() => {
2007
- o.value = d(Ti);
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);
2008
2743
  });
2009
- let s = M(() => o.value.map((e) => ({
2744
+ let s = k(() => o.value.map((e) => ({
2010
2745
  id: e.id,
2011
2746
  name: e.names?.[n.value] ?? e.names?.en ?? e.slug,
2012
- image: e.image_path ? v(e.image_path, "zoom") : null,
2013
- route: h(e)
2014
- }))), c = M(() => [
2747
+ image: e.image_path ? re(e.image_path, "zoom") : null,
2748
+ route: d(e)
2749
+ }))), c = k(() => [
2015
2750
  {
2016
2751
  name: t("core.project.islamicArt"),
2017
2752
  href: `${i.value.islamicArt}/`,
2018
- image: st(r.chrome, "dia.jpg"),
2753
+ image: et(r.chrome, "dia.jpg"),
2019
2754
  accent: "var(--mwnf-project-ISLandEPM, #ffcc00)",
2020
2755
  textColor: "var(--mwnf-project-ISLandEPM-text, #000000)"
2021
2756
  },
2022
2757
  {
2023
2758
  name: t("core.project.baroqueArt"),
2024
2759
  href: `${i.value.baroqueArt}/`,
2025
- image: st(r.chrome, "dba.jpg"),
2760
+ image: et(r.chrome, "dba.jpg"),
2026
2761
  accent: "var(--mwnf-project-DBA, #001d66)",
2027
2762
  textColor: "var(--mwnf-project-DBA-text, #ffffff)"
2028
2763
  },
2029
2764
  {
2030
2765
  name: t("core.project.sharingHistory"),
2031
2766
  href: `${i.value.sharingHistory}/`,
2032
- image: st(r.chrome, "sh.jpg"),
2767
+ image: et(r.chrome, "sh.jpg"),
2033
2768
  accent: "var(--mwnf-project-AWE, #900000)",
2034
2769
  textColor: "var(--mwnf-project-AWE-text, #ffffff)"
2035
2770
  }
2036
- ]), l = M(() => (r.homeLogos ?? []).map((e) => ({
2037
- image: ot(r.chrome, e.image) ?? v(e.image, "gallery_logo"),
2771
+ ]), l = k(() => (r.homeLogos ?? []).map((e) => ({
2772
+ image: Qe(r.chrome, e.image) ?? re(e.image, "gallery_logo"),
2038
2773
  href: e.href ?? "",
2039
2774
  alt: e.alt ? t(e.alt) : ""
2040
- })).filter((e) => e.image)), u = M(() => `${i.value.galleries}/list`);
2041
- return (e, n) => (B(), F("div", yi, [
2042
- R(Qr, { partners: a.value }, null, 8, ["partners"]),
2043
- l.value.length ? (B(), F("section", bi, [I("p", xi, U(W(t)("gallery.home.logosLabel")), 1), I("ul", Si, [(B(!0), F(j, null, H(l.value, (e) => (B(), F("li", { key: e.image }, [(B(), N(xt(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"), {
2044
2779
  class: "mwnf-dxa-home-logos__logo",
2045
2780
  href: e.href || void 0,
2046
2781
  title: e.alt || void 0,
2047
2782
  target: e.href ? "_blank" : void 0,
2048
2783
  rel: e.href ? "noopener" : void 0
2049
2784
  }, {
2050
- default: G(() => [I("img", {
2785
+ default: H(() => [N("img", {
2051
2786
  src: e.image,
2052
2787
  alt: e.alt
2053
- }, null, 8, Ci)]),
2788
+ }, null, 8, cs)]),
2054
2789
  _: 2
2055
2790
  }, 1032, [
2056
2791
  "href",
2057
2792
  "title",
2058
2793
  "target",
2059
2794
  "rel"
2060
- ]))]))), 128))])])) : P("", !0),
2061
- R(_i, {
2795
+ ]))]))), 128))])])) : j("", !0),
2796
+ F(ns, {
2062
2797
  galleries: s.value,
2063
2798
  museums: c.value,
2064
2799
  "galleries-heading-entry": "gallery.action.visitGalleries",
@@ -2072,168 +2807,53 @@ var zr = {
2072
2807
  ])
2073
2808
  ]));
2074
2809
  }
2075
- }, Di = /* @__PURE__ */ A({ default: () => Ui }), Oi = { class: "mwnf-dxa-item__languages" }, ki = ["dir"], Ai = ["href"], ji = ["href"], Mi = ["innerHTML"], Ni = ["innerHTML"], Pi = ["dir"], Fi = { class: "mwnf-dxa-gallery-item__label" }, Ii = {
2076
- key: "citation",
2077
- class: "mwnf-dxa-gallery-item__citation"
2078
- }, Li = { class: "mwnf-dxa-gallery-item__project" }, Ri = { class: "mwnf-dxa-gallery-item__address" }, zi = { class: "mwnf-dxa-gallery-item__credit-label" }, Bi = {
2079
- key: 1,
2080
- class: "mwnf-dxa-gallery-item__number"
2081
- }, Vi = { class: "mwnf-dxa-gallery-item__number-label" }, Hi = ["href"], Ui = {
2810
+ }, fs = /* @__PURE__ */ D({ default: () => ps }), ps = {
2082
2811
  __name: "ItemDetail",
2083
2812
  props: { id: {
2084
2813
  type: String,
2085
2814
  required: !0
2086
2815
  } },
2087
- setup(t) {
2088
- let { t: n } = Y(), r = zt(), i = Lt(), a = Pt(), s = X(), c = {
2089
- ...b,
2090
- sourceDatabase: !1,
2091
- sourceCredit: !1,
2092
- shortDescriptionLabels: {
2093
- view: "gallery.sheet.viewShortDescription",
2094
- hide: "gallery.sheet.hideShortDescription"
2095
- },
2096
- related: {
2097
- ...b.related,
2098
- glossaryLabels: { tool: "gallery.related.glossary" },
2099
- dynastiesHeading: "gallery.related.dynasties",
2100
- onDisplayIn: {
2101
- ...b.related?.onDisplayIn,
2102
- exhibitionsHeading: "gallery.related.exhibitions",
2103
- galleriesHeading: "core.project.galleries",
2104
- href: (e, t) => e.site ? Mt(e.site, `/item/${t.id}`) : e.legacy_host
2105
- }
2106
- }
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"
2107
2824
  };
2108
- function l(e) {
2109
- let t = i.links(e?.project_id)?.homeSite;
2110
- return (t && t !== a.manifest?.site?.key ? Mt(t, `/item/${e.id}`) : null) ?? Nt(r);
2111
- }
2112
- function u(e) {
2113
- try {
2114
- let { host: t, pathname: n } = new URL(e), r = n.split("/").find(Boolean);
2115
- return r ? `${t}/${r}` : t;
2116
- } catch {
2117
- return e;
2118
- }
2119
- }
2120
- let d = (e) => s.projectColors?.[e?.project_id] ?? "";
2121
- function f(e, t) {
2122
- let n = i.label(t?.project_id) ?? "", r = n ? e.indexOf(` ${n},`) : -1;
2123
- return r < 0 ? {
2124
- before: e,
2125
- project: "",
2126
- after: ""
2127
- } : {
2128
- before: e.slice(0, r + 1),
2129
- project: n,
2130
- after: e.slice(r + 1 + n.length)
2131
- };
2132
- }
2133
- function p(e) {
2134
- return {
2135
- to: b.museum?.route?.(e.record?.partner_id) ?? null,
2136
- holder: e.text?.holder ? Ot(String(e.text.holder)) : ""
2137
- };
2138
- }
2139
- return (r, i) => (B(), N(lt, {
2140
- spec: c,
2141
- id: t.id,
2142
- class: "mwnf-dxa-item mwnf-dxa-gallery-item"
2143
- }, {
2144
- header: G(({ languages: t, language: n, select: r }) => [I("div", Oi, [R(o, {
2145
- languages: t,
2146
- language: n,
2147
- onSelect: r
2148
- }, null, 8, [
2149
- "languages",
2150
- "language",
2151
- "onSelect"
2152
- ])]), R(e)]),
2153
- "after-media": G(({ record: e, dir: t }) => [e ? (B(), F("div", {
2154
- key: 0,
2155
- class: "mwnf-dxa-gallery-item__links",
2156
- dir: t || void 0
2157
- }, [I("p", null, [I("a", {
2158
- href: l(e),
2159
- target: "_blank",
2160
- rel: "noopener"
2161
- }, [i[0] ||= I("span", {
2162
- class: "mwnf-dxa-gallery-item__icon",
2163
- "aria-hidden": "true"
2164
- }, "↗", -1), I("bdi", null, [L(U(W(n)("record.source.label")) + " ", 1), I("span", null, "(" + U(u(l(e))) + ")", 1)])], 8, Ai)]), I("p", null, [I("a", {
2165
- href: W(J).myCollection,
2166
- target: "_blank",
2167
- rel: "noopener"
2168
- }, [i[1] ||= I("span", {
2169
- class: "mwnf-dxa-gallery-item__icon",
2170
- "aria-hidden": "true"
2171
- }, "↗", -1), L(U(W(n)("record.action.addToCollection")), 1)], 8, ji)])], 8, ki)) : P("", !0)]),
2172
- museum: G((e) => [(B(!0), F(j, null, H([p(e)], (e) => (B(), F(j, { key: "museum" }, [e.to && e.holder ? (B(), N(W(Q), {
2173
- key: 0,
2174
- to: e.to,
2175
- class: "mwnf-dxa-gallery-item__museum"
2176
- }, {
2177
- default: G(() => [i[2] ||= I("span", {
2178
- class: "mwnf-dxa-gallery-item__icon",
2179
- "aria-hidden": "true"
2180
- }, "↗", -1), I("span", { innerHTML: e.holder }, null, 8, Mi)]),
2181
- _: 2
2182
- }, 1032, ["to"])) : e.holder ? (B(), F("span", {
2183
- key: 1,
2184
- innerHTML: e.holder
2185
- }, null, 8, Ni)) : P("", !0)], 64))), 128))]),
2186
- credits: G(({ record: e, credits: t, workingNumber: r, citation: i, dir: a }) => [e ? (B(), F("div", {
2187
- key: 0,
2188
- class: "mwnf-dxa-gallery-item__credits",
2189
- dir: a || void 0
2190
- }, [
2191
- i ? (B(), F(j, { key: 0 }, [I("p", Fi, U(W(n)("record.citation.ofThisPage")), 1), (B(!0), F(j, null, H([f(i, e)], (t) => (B(), F("p", Ii, [
2192
- L(U(t.before), 1),
2193
- I("span", Li, U(t.project), 1),
2194
- L(U(t.after) + " ", 1),
2195
- I("span", Ri, U(l(e)), 1)
2196
- ]))), 128))], 64)) : P("", !0),
2197
- (B(!0), F(j, null, H(t, (e) => (B(), F("p", {
2198
- key: e.label,
2199
- class: "mwnf-dxa-gallery-item__credit"
2200
- }, [I("span", zi, U(e.label), 1), I("span", null, U(e.value), 1)]))), 128)),
2201
- r ? (B(), F("p", Bi, [I("span", Vi, U(W(n)("gallery.sheet.workingNumber")), 1), L(U(" ") + U(r), 1)])) : P("", !0),
2202
- I("div", { class: z(["mwnf-dxa-gallery-item__source", d(e)]) }, [I("p", null, U(W(n)("record.source.label")), 1), I("p", null, [I("a", {
2203
- href: l(e),
2204
- target: "_blank",
2205
- rel: "noopener"
2206
- }, U(l(e)), 9, Hi)])], 2)
2207
- ], 8, Pi)) : P("", !0)]),
2208
- _: 1
2209
- }, 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"]));
2210
2830
  }
2211
- }, Wi = /* @__PURE__ */ A({ default: () => aa }), Gi = { class: "mwnf-dxa-timeline" }, Ki = { class: "mwnf-dxa-timeline__entrance" }, qi = [
2831
+ }, ms = /* @__PURE__ */ D({ default: () => ks }), hs = { class: "mwnf-dxa-timeline" }, gs = { class: "mwnf-dxa-timeline__entrance" }, _s = [
2212
2832
  "value",
2213
2833
  "aria-label",
2214
2834
  "onChange"
2215
- ], Ji = {
2835
+ ], vs = {
2216
2836
  disabled: "",
2217
2837
  value: ""
2218
- }, Yi = ["value"], Xi = { class: "mwnf-dxa-timeline__dates" }, Zi = [
2838
+ }, ys = ["value"], bs = { class: "mwnf-dxa-timeline__dates" }, xs = [
2219
2839
  "value",
2220
2840
  "aria-label",
2221
2841
  "onChange"
2222
- ], Qi = {
2842
+ ], Ss = {
2223
2843
  disabled: "",
2224
2844
  value: ""
2225
- }, $i = ["value"], ea = [
2845
+ }, Cs = ["value"], ws = [
2226
2846
  "value",
2227
2847
  "aria-label",
2228
2848
  "onChange"
2229
- ], ta = {
2849
+ ], Ts = {
2230
2850
  disabled: "",
2231
2851
  value: ""
2232
- }, na = ["value"], ra = { class: "mwnf-dxa-timeline__go" }, ia = ["onClick"], aa = {
2852
+ }, Es = ["value"], Ds = { class: "mwnf-dxa-timeline__go" }, Os = ["onClick"], ks = {
2233
2853
  __name: "Timeline",
2234
2854
  setup(e) {
2235
2855
  let t = {
2236
- ...ce,
2856
+ ...l,
2237
2857
  entrance: !0
2238
2858
  };
2239
2859
  function n({ filters: e, options: t, go: n, t: r }) {
@@ -2252,214 +2872,632 @@ var zr = {
2252
2872
  end: e.end || a.at(-1)?.value
2253
2873
  });
2254
2874
  }
2255
- return (e, r) => (B(), F("div", Gi, [R(O, {
2875
+ return (e, r) => (L(), M("div", hs, [F(Ye, {
2256
2876
  spec: t,
2257
2877
  class: "mwnf-dxa-timeline__form"
2258
2878
  }, {
2259
- form: G((e) => [I("div", Ki, [
2260
- I("select", {
2879
+ form: H((e) => [N("div", gs, [
2880
+ N("select", {
2261
2881
  class: "mwnf-dxa-timeline__country",
2262
2882
  value: e.filters.country,
2263
2883
  "aria-label": e.t("gallery.timeline.selectCountry"),
2264
2884
  onChange: (t) => e.filters.country = t.target.value
2265
- }, [I("option", Ji, U(e.t("gallery.timeline.selectCountry")), 1), (B(!0), F(j, null, H(e.countries, (e) => (B(), F("option", {
2885
+ }, [N("option", vs, B(e.t("gallery.timeline.selectCountry")), 1), (L(!0), M(O, null, z(e.countries, (e) => (L(), M("option", {
2266
2886
  key: e.value,
2267
2887
  value: e.value
2268
- }, U(e.label), 9, Yi))), 128))], 40, qi),
2269
- I("div", Xi, [I("select", {
2888
+ }, B(e.label), 9, ys))), 128))], 40, _s),
2889
+ N("div", bs, [N("select", {
2270
2890
  value: e.filters.begin,
2271
2891
  "aria-label": e.t("gallery.timeline.startDate"),
2272
2892
  onChange: (t) => e.filters.begin = t.target.value
2273
- }, [I("option", Qi, U(e.t("gallery.timeline.startDate")), 1), (B(!0), F(j, null, H(e.options.begin ?? [], (e) => (B(), F("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", {
2274
2894
  key: e.value,
2275
2895
  value: e.value
2276
- }, U(e.label), 9, $i))), 128))], 40, Zi), I("select", {
2896
+ }, B(e.label), 9, Cs))), 128))], 40, xs), N("select", {
2277
2897
  value: e.filters.end,
2278
2898
  "aria-label": e.t("gallery.timeline.endDate"),
2279
2899
  onChange: (t) => e.filters.end = t.target.value
2280
- }, [I("option", ta, U(e.t("gallery.timeline.endDate")), 1), (B(!0), F(j, null, H(e.options.end ?? [], (e) => (B(), F("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", {
2281
2901
  key: e.value,
2282
2902
  value: e.value
2283
- }, U(e.label), 9, na))), 128))], 40, ea)]),
2284
- I("div", ra, [I("button", {
2903
+ }, B(e.label), 9, Es))), 128))], 40, ws)]),
2904
+ N("div", Ds, [N("button", {
2285
2905
  type: "button",
2286
2906
  onClick: (t) => n(e)
2287
- }, U(e.t("core.action.go")), 9, ia)])
2907
+ }, B(e.t("core.action.go")), 9, Os)])
2288
2908
  ])]),
2289
2909
  _: 1
2290
- }), R(W(K), {
2910
+ }), F(V(W), {
2291
2911
  class: "mwnf-dxa-timeline__intro",
2292
2912
  dir: "auto",
2293
2913
  keypath: "gallery.timeline.intro"
2294
2914
  })]));
2295
2915
  }
2296
- }, oa = /* @__PURE__ */ A({ default: () => ca }), sa = { class: "mwnf-dxa-home" }, ca = {
2916
+ }, As = /* @__PURE__ */ D({ default: () => Ms }), js = { class: "mwnf-dxa-home" }, Ms = {
2297
2917
  __name: "Home",
2298
2918
  setup(e) {
2299
- return (e, t) => (B(), F("div", sa));
2919
+ return (e, t) => (L(), M("div", js));
2300
2920
  }
2301
- }, la = /* @__PURE__ */ A({ default: () => da }), ua = { class: "mwnf-dxa-about" }, da = {
2921
+ }, Ns = /* @__PURE__ */ D({ default: () => Fs }), Ps = { class: "mwnf-dxa-about" }, Fs = {
2302
2922
  __name: "About",
2303
2923
  setup(e) {
2304
- return (e, t) => (B(), F("div", ua, [R(dt, { "about-mode": "" })]));
2924
+ return (e, t) => (L(), M("div", Ps, [F(it, { "about-mode": "" })]));
2305
2925
  }
2306
- }, fa = /* @__PURE__ */ A({ default: () => ha }), pa = { class: "mwnf-dxa-themes" }, ma = { class: "mwnf-dxa-themes__container" }, ha = {
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 = {
2307
2936
  __name: "Themes",
2308
2937
  setup(e) {
2309
- let { listedThemes: t, romanFor: n, themeText: r } = xe, { t: i, locale: o } = Y(), s = M(() => t.value.map((e) => ({
2310
- title: r(e, o.value).title ?? e.internal_name ?? "",
2311
- number: n(e.display_order),
2312
- children: [{
2313
- title: i("exhibition.theme.overview"),
2314
- to: pt(e)
2315
- }, ...(e.sub_themes ?? []).map((e) => ({
2316
- title: r(e, o.value).title ?? e.internal_name ?? "",
2317
- to: pt(e)
2318
- }))]
2319
- })));
2320
- return (e, t) => (B(), F("div", pa, [I("div", ma, [R(a, {
2321
- cards: s.value,
2322
- variant: "accordion"
2323
- }, 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))])]));
2324
3025
  }
2325
- }, ga = /* @__PURE__ */ A({ default: () => ya }), _a = { class: "mwnf-dxa-theme-gallery__empty" }, va = {
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 = {
2326
3042
  key: 1,
2327
3043
  class: "mwnf-loader"
2328
- }, ya = {
3044
+ }, vc = {
2329
3045
  __name: "ThemeGallery",
2330
3046
  setup(t) {
2331
- let { pictureById: n, pictureParent: r, romanFor: i, themeByRouteId: a, themeText: o, themeTree: s } = xe, c = zt(), { t: l, locale: u } = Y(), d = M(() => a(c.params.id)), f = M(() => {
2332
- let e = /* @__PURE__ */ new Set();
2333
- if (!d.value) return e;
2334
- for (let t of s.itemsUnder(d.value.id)) {
2335
- let i = r(n.value.get(t));
2336
- 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
+ });
2337
3085
  }
2338
- return e;
2339
- }), p = M(() => o(d.value, u.value).title ?? d.value?.internal_name ?? ""), m = M(() => ({
2340
- entity: "items",
2341
- scope: (e) => f.value.has(e.id),
2342
- sort: { undated: "first" },
2343
- variant: "grid",
2344
- recordRoute: "item",
2345
- record: (e, t) => He(e, t.t),
2346
- actionLabel: "catalogue.results.seeDatabaseEntry",
2347
- empty: "exhibition.theme.noRecords",
2348
- summary: () => [{
2349
- label: l("exhibition.theme.galleryLabel"),
2350
- value: `${l("exhibition.theme.romanLabel")} ${i(d.value?.display_order ?? 1)} | ${p.value}`
2351
- }]
2352
- }));
2353
- return (t, n) => d.value ? (B(), N(D, {
2354
- key: 0,
2355
- spec: m.value,
2356
- class: "mwnf-dxa-theme-gallery"
2357
- }, {
2358
- before: G(() => [R(e)]),
2359
- empty: G(() => [I("p", _a, U(W(l)("exhibition.theme.noRecords")), 1)]),
2360
- _: 1
2361
- }, 8, ["spec"])) : (B(), F("div", va, U(W(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));
2362
3135
  }
2363
- }, ba = /* @__PURE__ */ A({ default: () => Sa }), xa = { class: "mwnf-dxa-item__languages" }, Sa = {
3136
+ }, yc = /* @__PURE__ */ D({ default: () => bc }), bc = {
2364
3137
  __name: "ItemDetail",
2365
3138
  props: { id: {
2366
3139
  type: String,
2367
3140
  required: !0
2368
3141
  } },
2369
- setup(t) {
2370
- return (n, r) => (B(), N(lt, {
2371
- spec: W($e),
2372
- id: t.id,
2373
- "data-getter": (e) => W(T).get(e),
2374
- class: "mwnf-dxa-item"
2375
- }, {
2376
- header: G(({ languages: t, language: n, select: r }) => [I("div", xa, [R(o, {
2377
- languages: t,
2378
- language: n,
2379
- onSelect: r
2380
- }, null, 8, [
2381
- "languages",
2382
- "language",
2383
- "onSelect"
2384
- ])]), R(e)]),
2385
- _: 1
2386
- }, 8, [
2387
- "spec",
2388
- "id",
2389
- "data-getter"
2390
- ]));
2391
- }
2392
- }, Ca = /* @__PURE__ */ A({ default: () => wa }), wa = {
2393
- __name: "RelatedContent",
2394
3142
  setup(e) {
2395
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 = {
2396
3163
  1: "exhibition.relatedCategory.furtherReading",
2397
3164
  2: "exhibition.relatedCategory.mwnfContent",
2398
3165
  3: "exhibition.relatedCategory.partnerContent",
2399
3166
  4: "exhibition.relatedCategory.otherContent"
2400
- }, n = [
3167
+ }, r = [
2401
3168
  1,
2402
3169
  2,
2403
3170
  3,
2404
3171
  4
2405
- ], { t: r, locale: i } = Y();
2406
- function a(e) {
2407
- return e?.[i.value] ?? e?.en ?? "";
2408
- }
2409
- function o(e) {
2410
- return e.document_path ? w(e.document_path, "hi_res") : e.url ?? null;
2411
- }
3172
+ ], { t: i, locale: a } = q(), o = (e) => e?.[a.value] ?? e?.en ?? "";
2412
3173
  function s(e) {
2413
- return a(e.titles) ? E(a(e.titles)) : a(e.texts) ? E(a(e.texts)) : o(e) || r("exhibition.relatedCategory.unknown");
2414
- }
2415
- function c(e) {
2416
- if (!a(e.titles)) return "";
2417
- let t = [];
2418
- return (e.entity_location || e.entity_country) && t.push([e.entity_location, e.entity_country ? Ze(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(E(a(e.descriptions))), e.further_reading && t.push(E(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
+ };
2419
3184
  }
2420
- function l() {
3185
+ let c = k(() => {
2421
3186
  let e = /* @__PURE__ */ new Map();
2422
- for (let t of Ue.value ?? []) {
3187
+ for (let t of be.value ?? []) {
2423
3188
  let n = e.get(t.category_id);
2424
3189
  n ? n.push(t) : e.set(t.category_id, [t]);
2425
3190
  }
2426
- return [...n.filter((t) => e.has(t)), ...[...e.keys()].filter((e) => !n.includes(e)).sort()].map((n) => ({
2427
- heading: t[n] ?? "exhibition.relatedCategory.unknown",
2428
- links: [...e.get(n)].sort((e, t) => (e.display_order ?? 0) - (t.display_order ?? 0)).map((e) => ({
2429
- label: s(e),
2430
- href: o(e) ?? void 0,
2431
- note: c(e) || void 0
2432
- }))
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)
2433
3195
  }));
2434
- }
2435
- let u = {
2436
- groups: l,
2437
- empty: "exhibition.related.notAvailable",
2438
- back: {
2439
- label: "core.action.back",
2440
- to: { name: "home" }
2441
- }
2442
- };
2443
- return (e, t) => (B(), N(et, {
2444
- spec: u,
2445
- class: "mwnf-dxa-related"
2446
- }));
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))])]));
2447
3236
  }
2448
- }, Ta = /* @__PURE__ */ A({ default: () => Ea }), Ea = {
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 = {
2449
3259
  __name: "Timeline",
2450
3260
  setup(e) {
2451
- let t = M(() => ({
2452
- ...ke.value,
2453
- entrance: !0
2454
- }));
2455
- return (e, n) => (B(), N(O, { spec: t.value }, {
2456
- after: G(() => [R(W(K), {
2457
- class: "mwnf-prose mwnf-dxa-timeline__intro",
2458
- dir: "auto",
2459
- keypath: "exhibition.timeline.intro"
2460
- })]),
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
+ ])]),
2461
3315
  _: 1
2462
- }, 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);
2463
3501
  }
2464
3502
  };
2465
- export { da as ExhibitionAbout, or as ExhibitionCollectionResults, cr as ExhibitionCollectionSearch, ca as ExhibitionHome, Sa as ExhibitionItemDetail, ur as ExhibitionPartnerObjects, Jn as ExhibitionPartners, wa as ExhibitionRelatedContent, Gn as ExhibitionSearchHowTo, er as ExhibitionSearchResults, Fr as ExhibitionShell, dt as ExhibitionTheme, ya as ExhibitionThemeGallery, ha as ExhibitionThemes, Ea as ExhibitionTimeline, nr as ExhibitionTimelineGallery, tr as ExhibitionTimelineResults, Qr as FeaturedPartners, Wt as GalleryAbout, Fn as GalleryCollectionResults, Rn as GalleryCollectionSearch, Gt as GalleryCredits, Ei as GalleryHome, Ui as GalleryItemDetail, Wn as GalleryPartnerObjects, cn as GalleryPartners, Kt as GallerySearchHowTo, En as GallerySearchResults, kr as GalleryShell, aa as GalleryTimeline, An as GalleryTimelineGallery, Dn as GalleryTimelineResults, lt as ItemDetailView, Ht as PartnerDetail, ut as PictureGallery, ft as PictureNarrative, Pr as PopupLogo, _i as SiblingGalleries, ht as exhibitionAboutSpec, Rr as exhibitionConfig, S as exhibitionPartnerDetail, mt as exhibitionThemeSpec, Lr as galleryConfig, ye as galleryPartnerDetail, Tr as standardRoutes, pt 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 };