@museumwnf/viewer-layout 2.16.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/views.js CHANGED
@@ -1,16 +1,13 @@
1
- import { a as e, i as t, n, o as r, t as i } from "./TimelineLookup-D-p1aQ_Z.js";
2
- import { a, g as o, i as s, l as ee, n as te, o as c, s as l, v as u } from "./TimelineEventList-D5Hot788.js";
3
- import { a as d, i as f, n as p, o as m, r as ne, t as h } from "./TimelineResultsView-DJo_yYEK.js";
4
- import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, guardReactiveProps as T, mergeProps as re, normalizeClass as E, normalizeProps as D, openBlock as O, ref as k, renderList as A, renderSlot as j, toDisplayString as M, unref as N, useSlots as ie, watch as ae, withCtx as P } from "vue";
5
- import { I18nText as F, NotFoundView as oe, byId as se, entityRef as ce, glossaryEntries as le, glossaryTermsForText as ue, loadEntities as I, mdInline as L, mdStrip as R, mwnfLinks as z, partnerView as B, renderBlock as de, renderInline as V, renderPlain as fe, useCollectionTree as pe, useDataPackage as me, useFeaturedRecord as he, useGlossaryPopup as ge, useI18n as _e, useProjects as ve, useRecordLanguage as ye, useSiteConfig as H } from "@museumwnf/viewer-core";
1
+ import { c as e, i as t, n, o as r, r as i, s as a, t as o } from "./OnDisplayIn-ZfRUtPd1.js";
2
+ import { a as s, g as ee, i as c, n as l, o as u, s as d, v as f } from "./TimelineEventList-D5Hot788.js";
3
+ import { a as p, i as m, n as h, o as te, r as g, t as _ } from "./TimelineResultsView-DJo_yYEK.js";
4
+ import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as ne, createTextVNode as w, createVNode as T, guardReactiveProps as E, mergeProps as D, normalizeClass as O, normalizeProps as k, openBlock as A, ref as j, renderList as M, renderSlot as N, toDisplayString as P, unref as F, useSlots as re, watch as ie, withCtx as I } from "vue";
5
+ import { I18nText as L, NotFoundView as ae, byId as oe, entityRef as se, glossaryEntries as ce, glossaryTermsForText as le, loadEntities as R, mdInline as z, mdStrip as B, mwnfLinks as V, partnerView as ue, renderBlock as de, renderInline as H, renderPlain as fe, useCollectionTree as pe, useDataPackage as me, useFeaturedRecord as he, useGlossaryPopup as ge, useI18n as _e, useProjects as ve, useRecordLanguage as ye, useSiteConfig as be } from "@museumwnf/viewer-core";
6
6
  //#region src/views/HomeView.vue
7
- var U = { class: "mwnf-home" }, W = {
8
- key: 0,
9
- class: "mwnf-home__welcome"
10
- }, be = {
7
+ var U = { class: "mwnf-home" }, xe = {
11
8
  key: 0,
12
9
  class: "mwnf-home__title"
13
- }, xe = {
10
+ }, Se = {
14
11
  __name: "HomeView",
15
12
  props: {
16
13
  title: {
@@ -28,10 +25,14 @@ var U = { class: "mwnf-home" }, W = {
28
25
  featured: {
29
26
  type: Object,
30
27
  default: null
28
+ },
29
+ panels: {
30
+ type: Boolean,
31
+ default: null
31
32
  }
32
33
  },
33
34
  setup(t) {
34
- let n = t, { t: i, locale: a } = _e(), o = H(), s = _(() => ({
35
+ let n = t, { t: r, locale: i } = _e(), o = be(), s = y(() => ({
35
36
  ...o.home ?? {},
36
37
  ...ee(n)
37
38
  }));
@@ -41,93 +42,98 @@ var U = { class: "mwnf-home" }, W = {
41
42
  "title",
42
43
  "intro",
43
44
  "cards",
44
- "featured"
45
+ "featured",
46
+ "panels"
45
47
  ]) e[n] != null && e[n] !== "" && (t[n] = e[n]);
46
48
  return t;
47
49
  }
48
- let te = _(() => (s.value.cards ?? []).map((e) => ({
50
+ let c = y(() => (s.value.cards ?? []).map((e) => ({
49
51
  ...e,
50
- title: e.title ? i(e.title) : "",
51
- description: e.description ? i(e.description) : "",
52
- action: e.action ? i(e.action) : ""
53
- }))), c = _(() => s.value.featured ?? null), l = c.value?.entity ?? "", u = me();
54
- l && u.loadTranslations(l, "en");
55
- let d = l ? he(l, {
56
- seed: c.value?.seed,
57
- images: c.value?.images ?? "images"
58
- }) : _(() => null), f = _(() => d.value ? u.tr(l, d.value.id, a.value, "en") : {});
59
- function p(e, t, n) {
52
+ title: e.title ? r(e.title) : "",
53
+ description: e.description ? r(e.description) : "",
54
+ action: e.action ? r(e.action) : ""
55
+ }))), l = y(() => s.value.featured ?? null), u = l.value?.entity ?? "", d = me();
56
+ u && d.loadTranslations(u, "en");
57
+ let f = u ? he(u, {
58
+ seed: l.value?.seed,
59
+ images: l.value?.images ?? "images",
60
+ filter: l.value?.filter
61
+ }) : y(() => null), p = y(() => f.value ? d.tr(u, f.value.id, i.value, "en") : {});
62
+ function m(e, t, n) {
60
63
  return typeof e == "function" ? e(t, n) : typeof e != "string" || !e ? "" : n[e] ?? t[e] ?? "";
61
64
  }
62
- let m = _(() => {
63
- let e = d.value, t = c.value;
65
+ let h = y(() => {
66
+ let e = f.value, t = l.value;
64
67
  if (!e || !t) return null;
65
- let n = f.value.name ?? e.internal_name ?? e.id, r = typeof t.meta == "function" ? t.meta(e, f.value) : (t.meta ?? []).map((t) => p(t, e, f.value)), a = t.images ?? "images";
68
+ let n = p.value.name ?? e.internal_name ?? e.id, i = typeof t.meta == "function" ? t.meta(e, p.value) : (t.meta ?? []).map((t) => m(t, e, p.value)), a = t.images ?? "images";
66
69
  return {
67
- heading: t.heading ? i(t.heading) : "",
70
+ heading: t.heading ? r(t.heading) : "",
68
71
  image: e[a]?.[0]?.url ?? "",
69
72
  imageAlt: fe(String(n)),
70
- eyebrow: String(p(t.eyebrow, e, f.value) ?? ""),
71
- name: V(String(n)),
72
- meta: r.filter(Boolean).map(String),
73
- action: t.action ? i(t.action) : "",
73
+ eyebrow: String(m(t.eyebrow, e, p.value) ?? ""),
74
+ name: H(String(n)),
75
+ meta: i.filter(Boolean).map(String),
76
+ action: t.action ? r(t.action) : "",
74
77
  to: typeof t.to == "function" ? t.to(e) : {
75
78
  name: t.route ?? "item",
76
79
  params: { id: e.id }
77
80
  }
78
81
  };
79
82
  });
80
- return (t, n) => (O(), b("section", U, [
81
- s.value.title || s.value.intro ? (O(), b("header", W, [s.value.title ? (O(), b("h1", be, M(N(i)(s.value.title)), 1)) : y("", !0), s.value.intro ? (O(), v(N(F), {
83
+ return (t, n) => (A(), S("section", U, [
84
+ s.value.title || s.value.intro ? (A(), S("header", {
85
+ key: 0,
86
+ class: O(["mwnf-home__welcome", { "mwnf-panel": s.value.panels }])
87
+ }, [s.value.title ? (A(), S("h1", xe, P(F(r)(s.value.title)), 1)) : x("", !0), s.value.intro ? (A(), b(F(L), {
82
88
  key: 1,
83
89
  tag: "div",
84
90
  class: "mwnf-home__intro",
85
91
  keypath: s.value.intro
86
- }, null, 8, ["keypath"])) : y("", !0)])) : y("", !0),
87
- j(t.$slots, "before"),
88
- w(r, { cards: te.value }, null, 8, ["cards"]),
89
- j(t.$slots, "default"),
90
- m.value ? (O(), v(e, D(re({ key: 1 }, m.value)), null, 16)) : y("", !0),
91
- j(t.$slots, "after")
92
+ }, null, 8, ["keypath"])) : x("", !0)], 2)) : x("", !0),
93
+ N(t.$slots, "before"),
94
+ T(e, { cards: c.value }, null, 8, ["cards"]),
95
+ N(t.$slots, "default"),
96
+ h.value ? (A(), b(a, D({ key: 1 }, h.value, { class: { "mwnf-panel": s.value.panels } }), null, 16, ["class"])) : x("", !0),
97
+ N(t.$slots, "after")
92
98
  ]));
93
99
  }
94
- }, Se = {
100
+ }, Ce = {
95
101
  key: 0,
96
102
  class: "mwnf-sheet-source"
97
- }, Ce = {
103
+ }, we = {
98
104
  key: 0,
99
105
  class: "mwnf-sheet-source__line"
100
- }, we = {
106
+ }, Te = {
101
107
  key: 1,
102
108
  class: "mwnf-sheet-source__uid"
103
- }, Te = {
109
+ }, Ee = {
104
110
  key: 2,
105
111
  class: "mwnf-sheet-source__collection"
106
- }, Ee = ["href"], De = {
112
+ }, De = ["href"], Oe = {
107
113
  key: 1,
108
114
  class: "mwnf-sheet-notice"
109
- }, Oe = {
115
+ }, ke = {
110
116
  key: "museum",
111
117
  class: "mwnf-sheet-museum"
112
- }, ke = ["innerHTML"], Ae = {
118
+ }, Ae = ["innerHTML"], je = {
113
119
  key: 0,
114
120
  class: "mwnf-sheet-related"
115
- }, je = {
121
+ }, Me = {
116
122
  key: 0,
117
123
  class: "mwnf-sheet-related__heading mwnf-sheet-related__heading--caps"
118
- }, Me = {
124
+ }, Ne = {
119
125
  key: 1,
120
126
  class: "mwnf-sheet-related__description"
121
- }, Ne = {
127
+ }, Pe = {
122
128
  key: 0,
123
129
  class: "mwnf-sheet-related__references"
124
- }, G = { key: 2 }, Pe = {
130
+ }, W = { key: 2 }, Fe = {
125
131
  key: 3,
126
132
  class: "mwnf-sheet-related__unresolved"
127
- }, Fe = {
133
+ }, Ie = {
128
134
  key: 2,
129
135
  class: "mwnf-sheet-related__line"
130
- }, Ie = ["href"], Le = ["href"], Re = { key: 7 }, ze = { class: "mwnf-sheet-related__heading" }, Be = { key: 0 }, K = { class: "mwnf-sheet-related__subheading" }, q = ["href"], J = { key: 1 }, Ve = { class: "mwnf-sheet-related__unresolved" }, He = { key: 1 }, Y = { class: "mwnf-sheet-related__subheading" }, Ue = ["href"], We = { key: 1 }, X = { class: "mwnf-sheet-related__unresolved" }, Z = { key: 8 }, Ge = { class: "mwnf-sheet-related__heading" }, Q = { class: "mwnf-sheet-related__line" }, Ke = ["href"], qe = { key: 9 }, Je = { class: "mwnf-sheet-related__heading" }, Ye = { class: "mwnf-sheet-related__line" }, Xe = ["href"], Ze = { key: 10 }, Qe = { class: "mwnf-sheet-related__heading" }, $e = {
136
+ }, Le = ["href"], Re = { key: 6 }, ze = { class: "mwnf-sheet-related__heading" }, Be = { key: 7 }, Ve = { class: "mwnf-sheet-related__heading" }, G = { class: "mwnf-sheet-related__line" }, K = ["href"], q = { key: 8 }, He = { class: "mwnf-sheet-related__heading" }, Ue = { class: "mwnf-sheet-related__line" }, J = ["href"], We = { key: 9 }, Ge = { class: "mwnf-sheet-related__heading" }, Y = {
131
137
  __name: "RecordSheetView",
132
138
  props: {
133
139
  spec: {
@@ -148,23 +154,23 @@ var U = { class: "mwnf-home" }, W = {
148
154
  }
149
155
  },
150
156
  setup(e) {
151
- let r = e, a = ie(), o = /* @__PURE__ */ new Set([
157
+ let a = e, s = re(), ee = /* @__PURE__ */ new Set([
152
158
  "before-sheet",
153
159
  "museum",
154
160
  "related"
155
- ]), s = _(() => Object.keys(a).filter((e) => !o.has(e))), l = _(() => !r.dataGetter || r.dataGetter(r.id) != null), { t: u } = _e(), f = _(() => r.spec), p = ve(), m = (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), ne = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "gallery").sort(m), h = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "exhibition").sort(m), re = (e) => p.links(e.project_id)?.artisticIntroductionUrl ?? null, k = (e) => p.links(e.project_id)?.relatedDatabaseUrl ?? null;
156
- function ae(e, t) {
161
+ ]), c = y(() => Object.keys(s).filter((e) => !ee.has(e))), d = y(() => !a.dataGetter || a.dataGetter(a.id) != null), { t: f } = _e(), m = y(() => a.spec), h = ve(), te = (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), g = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "gallery").sort(te), _ = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "exhibition").sort(te), D = (e) => h.links(e.project_id)?.artisticIntroductionUrl ?? null, j = (e) => h.links(e.project_id)?.relatedDatabaseUrl ?? null;
162
+ function ie(e, t) {
157
163
  if (!e) return null;
158
- let n = f.value.sourceDatabase === !1 ? null : f.value.sourceDatabase ?? null, r = null;
164
+ let n = m.value.sourceDatabase === !1 ? null : m.value.sourceDatabase ?? null, r = null;
159
165
  if (n) {
160
- let i = n.chipClass ? n.chipClass(e, t) : null, a = p.label(e.project_id);
166
+ let i = n.chipClass ? n.chipClass(e, t) : null, a = h.label(e.project_id);
161
167
  (i || a) && (r = {
162
168
  chipClass: i,
163
169
  name: a,
164
- label: u(n.label ?? "record.sheet.sourceDatabase")
170
+ label: f(n.label ?? "record.sheet.sourceDatabase")
165
171
  });
166
172
  }
167
- let i = n && n.addToCollection !== !1 ? u(n.addToCollection?.label ?? "record.action.addToCollection") : null, a = n ? e.backward_compatibility ?? "" : "", o = f.value.notice === !1 ? null : f.value.notice ?? null, s = o && o.show(e, t) ? u(o.label) : null;
173
+ let i = n && n.addToCollection !== !1 ? f(n.addToCollection?.label ?? "record.action.addToCollection") : null, a = n ? e.backward_compatibility ?? "" : "", o = m.value.notice === !1 ? null : m.value.notice ?? null, s = o && o.show(e, t) ? f(o.label) : null;
168
174
  return {
169
175
  source: r,
170
176
  addToCollectionLabel: i,
@@ -172,117 +178,127 @@ var U = { class: "mwnf-home" }, W = {
172
178
  backwardCompatibility: a
173
179
  };
174
180
  }
175
- let F = me(), ce = se("partners"), le = se("countries");
176
- I(["partners", "countries"]), F.loadTranslations("countries", "en");
177
- function ue(e, t) {
178
- let n = F.tr("countries", e, t, "en");
179
- return R(n.name ?? le.value?.get(e)?.internal_name ?? "");
181
+ let L = me(), se = oe("partners"), ce = oe("countries");
182
+ R(["partners", "countries"]), L.loadTranslations("countries", "en");
183
+ function le(e, t) {
184
+ let n = L.tr("countries", e, t, "en");
185
+ return B(n.name ?? ce.value?.get(e)?.internal_name ?? "");
180
186
  }
181
187
  function de(e) {
182
- let t = e.text?.holder ? L(String(e.text.holder)) : "", n = f.value.museum === !1 ? null : f.value.museum ?? null, r = n ? ce.value?.get(e.record?.partner_id) : null;
188
+ let t = e.text?.holder ? z(String(e.text.holder)) : "", n = m.value.museum === !1 ? null : m.value.museum ?? null, r = n ? se.value?.get(e.record?.partner_id) : null;
183
189
  return {
184
190
  holder: t,
185
- view: r ? B(r, F.tr("partners", r.id, e.language, "en"), {
186
- countryLabel: (t) => ue(t, e.language),
191
+ view: r ? ue(r, L.tr("partners", r.id, e.language, "en"), {
192
+ countryLabel: (t) => le(t, e.language),
187
193
  route: (t) => n.route ? n.route(t.id, e) : null
188
194
  }) : null
189
195
  };
190
196
  }
191
- function V(e, t) {
197
+ function H(e, t) {
192
198
  if (!e) return null;
193
- let n = f.value.related ?? {}, i = t.records ?? [], a = t.outside ?? [], o = r.dataGetter ? i.filter((e) => r.dataGetter(e.id) != null) : i, s = r.dataGetter ? i.filter((e) => r.dataGetter(e.id) == null).map((t) => (e.related_items ?? []).find((e) => e.id === t.id)).filter(Boolean) : [], ee = [...a, ...s].map((e) => ({
199
+ let n = m.value.related ?? {}, r = t.records ?? [], i = t.outside ?? [], o = a.dataGetter ? r.filter((e) => a.dataGetter(e.id) != null) : r, s = a.dataGetter ? r.filter((e) => a.dataGetter(e.id) == null).map((t) => (e.related_items ?? []).find((e) => e.id === t.id)).filter(Boolean) : [], ee = [...i, ...s].map((e) => ({
194
200
  ...e,
195
- name: e.project_id ? p.label(e.project_id) : null,
201
+ name: e.project_id ? h.label(e.project_id) : null,
196
202
  chipClass: n.outsideChip ? n.outsideChip(e, t) : null
197
- })), te = n.onDisplayIn && n.onDisplayIn !== !1 ? {
198
- linkPendingLabel: u(n.onDisplayIn.linkPendingLabel),
199
- galleries: ne(e),
200
- exhibitions: h(e)
201
- } : null, c = n.databaseLabel && k(e) ? {
202
- url: k(e),
203
- label: u(n.databaseLabel),
204
- name: p.label(e.project_id)
205
- } : null, l = n.overallDatabase && n.overallDatabase !== !1 ? {
206
- label: u(n.overallDatabase.label),
207
- linkLabel: u(n.overallDatabase.linkLabel)
203
+ })), c = (e) => ({
204
+ id: e.id,
205
+ label: z(e.name ?? ""),
206
+ href: e.legacy_host || "",
207
+ external: !!e.legacy_host
208
+ }), l = n.onDisplayIn && n.onDisplayIn !== !1 ? {
209
+ pendingLabel: n.onDisplayIn.linkPendingLabel ?? "",
210
+ groups: [{
211
+ heading: "record.related.exhibitions",
212
+ links: _(e).map(c)
213
+ }, {
214
+ heading: "record.related.galleries",
215
+ links: g(e).map(c)
216
+ }].filter((e) => e.links.length)
217
+ } : null, u = n.databaseLabel && j(e) ? {
218
+ url: j(e),
219
+ label: f(n.databaseLabel),
220
+ name: h.label(e.project_id)
221
+ } : null, d = n.overallDatabase && n.overallDatabase !== !1 ? {
222
+ label: f(n.overallDatabase.label),
223
+ linkLabel: f(n.overallDatabase.linkLabel)
208
224
  } : null;
209
225
  return {
210
- title: n.title ? u(n.title) : "",
211
- description: n.description ? u(n.description) : "",
212
- heading: u(n.heading ?? "record.related.items"),
226
+ title: n.title ? f(n.title) : "",
227
+ description: n.description ? f(n.description) : "",
228
+ heading: f(n.heading ?? "record.related.items"),
213
229
  variant: n.variant ?? "grid",
214
- actionLabel: n.actionLabel ? u(n.actionLabel) : "",
230
+ actionLabel: n.actionLabel ? f(n.actionLabel) : "",
215
231
  inPackage: o,
216
232
  references: ee,
217
- notInPackageLabel: n.notInPackageLabel ? u(n.notInPackageLabel) : "",
218
- artisticIntroduction: n.artisticIntroductionLabel && re(e) ? {
219
- url: re(e),
220
- label: u(n.artisticIntroductionLabel)
233
+ notInPackageLabel: n.notInPackageLabel ? f(n.notInPackageLabel) : "",
234
+ artisticIntroduction: n.artisticIntroductionLabel && D(e) ? {
235
+ url: D(e),
236
+ label: f(n.artisticIntroductionLabel)
221
237
  } : null,
222
238
  timeline: n.timeline ? n.timeline(e, t) : null,
223
239
  glossary: n.glossary !== !1,
224
240
  dynasties: n.dynasties ? n.dynasties(e, t.language, t) : null,
225
241
  media: n.media === !1 ? [] : e.media ?? [],
226
- onDisplayIn: te,
227
- database: c,
228
- overallDatabase: l,
242
+ onDisplayIn: l,
243
+ database: u,
244
+ overallDatabase: d,
229
245
  download: n.download === !1 ? null : {
230
- label: u("record.action.download"),
231
- pdfLabel: u("record.action.downloadPdf")
246
+ label: f("record.action.download"),
247
+ pdfLabel: f("record.action.downloadPdf")
232
248
  }
233
249
  };
234
250
  }
235
251
  function fe() {
236
252
  window.print();
237
253
  }
238
- return (r, a) => l.value ? (O(), v(d, {
254
+ return (a, s) => d.value ? (A(), b(p, {
239
255
  key: 0,
240
- spec: f.value,
256
+ spec: m.value,
241
257
  id: e.id,
242
258
  entity: e.entity
243
- }, S({
244
- "before-sheet": P((e) => [j(r.$slots, "before-sheet", D(T(e)), () => [(O(!0), b(g, null, A([ae(e.record, e)], (t) => (O(), b(g, { key: "before-sheet" }, [t?.source || t?.backwardCompatibility || t?.addToCollectionLabel ? (O(), b("div", Se, [
245
- t.source ? (O(), b("p", Ce, [t.source.chipClass ? (O(), b("span", {
259
+ }, ne({
260
+ "before-sheet": I((e) => [N(a.$slots, "before-sheet", k(E(e)), () => [(A(!0), S(v, null, M([ie(e.record, e)], (t) => (A(), S(v, { key: "before-sheet" }, [t?.source || t?.backwardCompatibility || t?.addToCollectionLabel ? (A(), S("div", Ce, [
261
+ t.source ? (A(), S("p", we, [t.source.chipClass ? (A(), S("span", {
246
262
  key: 0,
247
- class: E(["mwnf-chip", t.source.chipClass]),
263
+ class: O(["mwnf-chip", t.source.chipClass]),
248
264
  "aria-hidden": "true"
249
- }, null, 2)) : y("", !0), t.source.name ? (O(), b(g, { key: 1 }, [C(M(t.source.label) + ": " + M(t.source.name), 1)], 64)) : y("", !0)])) : y("", !0),
250
- t.backwardCompatibility ? (O(), b("p", we, [x("code", null, M(t.backwardCompatibility), 1)])) : y("", !0),
251
- t.addToCollectionLabel ? (O(), b("p", Te, [x("a", {
252
- href: N(z).myCollection,
265
+ }, null, 2)) : x("", !0), t.source.name ? (A(), S(v, { key: 1 }, [w(P(t.source.label) + ": " + P(t.source.name), 1)], 64)) : x("", !0)])) : x("", !0),
266
+ t.backwardCompatibility ? (A(), S("p", Te, [C("code", null, P(t.backwardCompatibility), 1)])) : x("", !0),
267
+ t.addToCollectionLabel ? (A(), S("p", Ee, [C("a", {
268
+ href: F(V).myCollection,
253
269
  target: "_blank",
254
270
  rel: "noopener"
255
- }, "↗ " + M(t.addToCollectionLabel), 9, Ee)])) : y("", !0)
256
- ])) : y("", !0), t?.notice ? (O(), b("div", De, [C(M(t.notice) + " ", 1), x("strong", null, [x("em", null, M(e.languages.map((e) => e.label).join(", ")), 1)])])) : y("", !0)], 64))), 128))])]),
257
- museum: P((e) => [j(r.$slots, "museum", D(T(e)), () => [(O(!0), b(g, null, A([de(e)], (t) => (O(), b("div", Oe, [t.holder ? (O(), b("p", {
271
+ }, "↗ " + P(t.addToCollectionLabel), 9, De)])) : x("", !0)
272
+ ])) : x("", !0), t?.notice ? (A(), S("div", Oe, [w(P(t.notice) + " ", 1), C("strong", null, [C("em", null, P(e.languages.map((e) => e.label).join(", ")), 1)])])) : x("", !0)], 64))), 128))])]),
273
+ museum: I((e) => [N(a.$slots, "museum", k(E(e)), () => [(A(!0), S(v, null, M([de(e)], (t) => (A(), S("div", ke, [t.holder ? (A(), S("p", {
258
274
  key: 0,
259
275
  class: "mwnf-sheet-museum__holder",
260
276
  innerHTML: t.holder
261
- }, null, 8, ke)) : y("", !0), t.view ? (O(), v(te, {
277
+ }, null, 8, Ae)) : x("", !0), t.view ? (A(), b(l, {
262
278
  key: 1,
263
279
  variant: "summary",
264
280
  partner: t.view,
265
281
  label: "partner.info.about",
266
282
  dir: e.dir
267
- }, null, 8, ["partner", "dir"])) : y("", !0)]))), 128))])]),
268
- related: P((e) => [j(r.$slots, "related", D(T(e)), () => [(O(!0), b(g, null, A([V(e.record, e)], (r) => (O(), b(g, { key: e.record?.id ?? "related" }, [r ? (O(), b("div", Ae, [
269
- r.title ? (O(), b("p", je, M(r.title), 1)) : y("", !0),
270
- r.description ? (O(), b("p", Me, M(r.description), 1)) : y("", !0),
271
- w(c, {
272
- heading: r.heading,
273
- records: r.inPackage,
274
- variant: r.variant,
275
- "action-label": r.actionLabel
283
+ }, null, 8, ["partner", "dir"])) : x("", !0)]))), 128))])]),
284
+ related: I((e) => [N(a.$slots, "related", k(E(e)), () => [(A(!0), S(v, null, M([H(e.record, e)], (a) => (A(), S(v, { key: e.record?.id ?? "related" }, [a ? (A(), S("div", je, [
285
+ a.title ? (A(), S("p", Me, P(a.title), 1)) : x("", !0),
286
+ a.description ? (A(), S("p", Ne, P(a.description), 1)) : x("", !0),
287
+ T(u, {
288
+ heading: a.heading,
289
+ records: a.inPackage,
290
+ variant: a.variant,
291
+ "action-label": a.actionLabel
276
292
  }, {
277
- default: P(() => [r.references.length ? (O(), b("ul", Ne, [(O(!0), b(g, null, A(r.references, (e) => (O(), b("li", { key: e.id }, [
278
- e.chipClass ? (O(), b("span", {
293
+ default: I(() => [a.references.length ? (A(), S("ul", Pe, [(A(!0), S(v, null, M(a.references, (e) => (A(), S("li", { key: e.id }, [
294
+ e.chipClass ? (A(), S("span", {
279
295
  key: 0,
280
- class: E(["mwnf-chip", e.chipClass]),
296
+ class: O(["mwnf-chip", e.chipClass]),
281
297
  "aria-hidden": "true"
282
- }, null, 2)) : y("", !0),
283
- e.name ? (O(), b(g, { key: 1 }, [C(M(e.name), 1)], 64)) : (O(), b("code", G, M(e.backward_compatibility), 1)),
284
- r.notInPackageLabel ? (O(), b("span", Pe, M(r.notInPackageLabel), 1)) : y("", !0)
285
- ]))), 128))])) : y("", !0)]),
298
+ }, null, 2)) : x("", !0),
299
+ e.name ? (A(), S(v, { key: 1 }, [w(P(e.name), 1)], 64)) : (A(), S("code", W, P(e.backward_compatibility), 1)),
300
+ a.notInPackageLabel ? (A(), S("span", Fe, P(a.notInPackageLabel), 1)) : x("", !0)
301
+ ]))), 128))])) : x("", !0)]),
286
302
  _: 2
287
303
  }, 1032, [
288
304
  "heading",
@@ -290,129 +306,109 @@ var U = { class: "mwnf-home" }, W = {
290
306
  "variant",
291
307
  "action-label"
292
308
  ]),
293
- r.artisticIntroduction ? (O(), b("p", Fe, [x("a", {
294
- href: r.artisticIntroduction.url,
309
+ a.artisticIntroduction ? (A(), S("p", Ie, [C("a", {
310
+ href: a.artisticIntroduction.url,
295
311
  target: "_blank",
296
312
  rel: "noopener"
297
- }, "↗ " + M(r.artisticIntroduction.label), 9, Ie)])) : y("", !0),
298
- r.timeline ? (O(), v(i, {
313
+ }, "↗ " + P(a.artisticIntroduction.label), 9, Le)])) : x("", !0),
314
+ a.timeline ? (A(), b(i, {
299
315
  key: e.record.id,
300
- info: r.timeline
301
- }, null, 8, ["info"])) : y("", !0),
302
- r.glossary ? (O(), v(t, {
316
+ info: a.timeline
317
+ }, null, 8, ["info"])) : x("", !0),
318
+ a.glossary ? (A(), b(r, {
303
319
  key: 4,
304
320
  language: e.language,
305
321
  dir: e.dir
306
- }, null, 8, ["language", "dir"])) : y("", !0),
307
- r.dynasties?.records?.length ? (O(), v(n, {
322
+ }, null, 8, ["language", "dir"])) : x("", !0),
323
+ a.dynasties?.records?.length ? (A(), b(t, {
308
324
  key: 5,
309
- heading: N(u)("record.dynasty.list"),
310
- dynasties: r.dynasties.records,
311
- tr: r.dynasties.tr,
325
+ heading: F(f)("record.dynasty.list"),
326
+ dynasties: a.dynasties.records,
327
+ tr: a.dynasties.tr,
312
328
  dir: e.dir
313
329
  }, null, 8, [
314
330
  "heading",
315
331
  "dynasties",
316
332
  "tr",
317
333
  "dir"
318
- ])) : y("", !0),
319
- r.media.length ? (O(), v(ee, {
320
- key: 6,
321
- heading: N(u)("record.related.audioVideo")
322
- }, {
323
- default: P(() => [(O(!0), b(g, null, A(r.media, (e) => (O(), b("p", {
324
- key: e.url,
325
- class: "mwnf-sheet-related__line"
326
- }, [x("a", {
327
- href: e.url,
328
- target: "_blank",
329
- rel: "noopener"
330
- }, "↗ " + M(e.title ?? e.url), 9, Le)]))), 128))]),
331
- _: 2
332
- }, 1032, ["heading"])) : y("", !0),
333
- r.onDisplayIn && (r.onDisplayIn.galleries.length || r.onDisplayIn.exhibitions.length) ? (O(), b("div", Re, [
334
- x("p", ze, M(N(u)("record.related.onDisplayIn")), 1),
335
- r.onDisplayIn.exhibitions.length ? (O(), b("div", Be, [x("p", K, M(N(u)("record.related.exhibitions")), 1), (O(!0), b(g, null, A(r.onDisplayIn.exhibitions, (e) => (O(), b("p", {
336
- key: e.id,
337
- class: "mwnf-sheet-related__line"
338
- }, [e.legacy_host ? (O(), b("a", {
339
- key: 0,
340
- href: e.legacy_host,
341
- target: "_blank",
342
- rel: "noopener"
343
- }, "↗ " + M(e.name), 9, q)) : (O(), b("span", J, [C(M(e.name) + " ", 1), x("span", Ve, M(r.onDisplayIn.linkPendingLabel), 1)]))]))), 128))])) : y("", !0),
344
- r.onDisplayIn.galleries.length ? (O(), b("div", He, [x("p", Y, M(N(u)("record.related.galleries")), 1), (O(!0), b(g, null, A(r.onDisplayIn.galleries, (e) => (O(), b("p", {
345
- key: e.id,
346
- class: "mwnf-sheet-related__line"
347
- }, [e.legacy_host ? (O(), b("a", {
348
- key: 0,
349
- href: e.legacy_host,
350
- target: "_blank",
351
- rel: "noopener"
352
- }, "↗ " + M(e.name), 9, Ue)) : (O(), b("span", We, [C(M(e.name) + " ", 1), x("span", X, M(r.onDisplayIn.linkPendingLabel), 1)]))]))), 128))])) : y("", !0)
353
- ])) : y("", !0),
354
- r.database ? (O(), b("div", Z, [x("p", Ge, M(r.database.label), 1), x("p", Q, [x("a", {
355
- href: r.database.url,
334
+ ])) : x("", !0),
335
+ T(n, {
336
+ media: a.media,
337
+ descriptions: !1,
338
+ dir: e.dir
339
+ }, null, 8, ["media", "dir"]),
340
+ a.onDisplayIn?.groups.length ? (A(), S("div", Re, [C("p", ze, P(F(f)("record.related.onDisplayIn")), 1), T(o, {
341
+ heading: "",
342
+ groups: a.onDisplayIn.groups,
343
+ "pending-label": a.onDisplayIn.pendingLabel,
344
+ dir: e.dir
345
+ }, null, 8, [
346
+ "groups",
347
+ "pending-label",
348
+ "dir"
349
+ ])])) : x("", !0),
350
+ a.database ? (A(), S("div", Be, [C("p", Ve, P(a.database.label), 1), C("p", G, [C("a", {
351
+ href: a.database.url,
356
352
  target: "_blank",
357
353
  rel: "noopener"
358
- }, "↗ " + M(r.database.name), 9, Ke)])])) : y("", !0),
359
- r.overallDatabase ? (O(), b("div", qe, [x("p", Je, M(r.overallDatabase.label), 1), x("p", Ye, [x("a", {
360
- href: N(z).overallDatabase,
354
+ }, "↗ " + P(a.database.name), 9, K)])])) : x("", !0),
355
+ a.overallDatabase ? (A(), S("div", q, [C("p", He, P(a.overallDatabase.label), 1), C("p", Ue, [C("a", {
356
+ href: F(V).overallDatabase,
361
357
  target: "_blank",
362
358
  rel: "noopener"
363
- }, "↗ " + M(r.overallDatabase.linkLabel), 9, Xe)])])) : y("", !0),
364
- r.download ? (O(), b("div", Ze, [x("p", Qe, M(r.download.label), 1), x("p", {
359
+ }, "↗ " + P(a.overallDatabase.linkLabel), 9, J)])])) : x("", !0),
360
+ a.download ? (A(), S("div", We, [C("p", Ge, P(a.download.label), 1), C("p", {
365
361
  class: "mwnf-sheet-related__line mwnf-sheet-related__line--action",
366
362
  onClick: fe
367
- }, "➤ " + M(r.download.pdfLabel), 1)])) : y("", !0)
368
- ])) : y("", !0)], 64))), 128))])]),
363
+ }, "➤ " + P(a.download.pdfLabel), 1)])) : x("", !0)
364
+ ])) : x("", !0)], 64))), 128))])]),
369
365
  _: 2
370
- }, [A(s.value, (e) => ({
366
+ }, [M(c.value, (e) => ({
371
367
  name: e,
372
- fn: P((t) => [j(r.$slots, e, D(T(t)))])
368
+ fn: I((t) => [N(a.$slots, e, k(E(t)))])
373
369
  }))]), 1032, [
374
370
  "spec",
375
371
  "id",
376
372
  "entity"
377
- ])) : (O(), v(N(oe), { key: 1 }));
373
+ ])) : (A(), b(F(ae), { key: 1 }));
378
374
  }
379
- }, et = ["dir"], tt = {
375
+ }, Ke = ["dir"], qe = {
380
376
  key: 0,
381
377
  class: "mwnf-essay__breadcrumb"
382
- }, nt = { class: "mwnf-essay__breadcrumb-label" }, rt = {
378
+ }, Je = { class: "mwnf-essay__breadcrumb-label" }, Ye = {
383
379
  key: 1,
384
380
  class: "mwnf-essay__breadcrumb-link"
385
- }, it = ["aria-label"], at = { class: "mwnf-essay__title" }, ot = {
381
+ }, Xe = ["aria-label"], Ze = { class: "mwnf-essay__title" }, Qe = {
386
382
  key: 0,
387
383
  class: "mwnf-essay__number"
388
- }, st = ["innerHTML"], ct = { class: "mwnf-essay__body" }, lt = { class: "mwnf-essay__main" }, ut = {
384
+ }, $e = ["innerHTML"], et = { class: "mwnf-essay__body" }, tt = { class: "mwnf-essay__main" }, nt = {
389
385
  key: 0,
390
386
  class: "mwnf-essay__status"
391
- }, dt = ["innerHTML"], ft = ["innerHTML"], pt = {
387
+ }, rt = ["innerHTML"], it = ["innerHTML"], at = {
392
388
  key: 4,
393
389
  class: "mwnf-essay__nav"
394
- }, mt = {
390
+ }, ot = {
395
391
  key: 1,
396
392
  class: "mwnf-essay__nav-spacer"
397
- }, ht = {
393
+ }, st = {
398
394
  key: 0,
399
395
  class: "mwnf-essay__side"
400
- }, gt = {
396
+ }, ct = {
401
397
  key: 0,
402
398
  class: "mwnf-essay__panel"
403
- }, _t = {
399
+ }, lt = {
404
400
  key: 0,
405
401
  class: "mwnf-essay__variants"
406
- }, vt = ["aria-pressed", "onClick"], yt = ["src", "alt"], bt = ["innerHTML"], xt = {
402
+ }, ut = ["aria-pressed", "onClick"], dt = ["src", "alt"], ft = ["innerHTML"], pt = {
407
403
  key: 0,
408
404
  class: "mwnf-essay__panel-label"
409
- }, St = ["innerHTML"], Ct = ["innerHTML"], wt = {
405
+ }, mt = ["innerHTML"], ht = ["innerHTML"], gt = {
410
406
  key: 0,
411
407
  class: "mwnf-essay__thumbs"
412
- }, Tt = ["onClick"], Et = ["src"], Dt = {
408
+ }, _t = ["onClick"], vt = ["src"], yt = {
413
409
  key: 2,
414
410
  class: "mwnf-essay__status"
415
- }, Ot = {
411
+ }, X = {
416
412
  __name: "EssayView",
417
413
  props: {
418
414
  spec: {
@@ -425,71 +421,71 @@ var U = { class: "mwnf-home" }, W = {
425
421
  }
426
422
  },
427
423
  setup(e) {
428
- let t = e, { t: n } = _e(), r = me(), i = ie();
429
- function ee(e) {
424
+ let t = e, { t: n } = _e(), r = me(), i = re();
425
+ function a(e) {
430
426
  return !!e && typeof e.walk == "function" && typeof e.children == "function";
431
427
  }
432
- function te(e) {
428
+ function o(e) {
433
429
  return typeof e == "string" ? e : "themes";
434
430
  }
435
- let c = t.spec.entity ?? "items", d = t.spec.tree, f = d?.entity ?? (d?.themes ? te(d.themes) : t.spec.entity ?? "collections"), p = ee(d) ? d : d?.themes ? pe({
431
+ let l = t.spec.entity ?? "items", u = t.spec.tree, p = u?.entity ?? (u?.themes ? o(u.themes) : t.spec.entity ?? "collections"), m = a(u) ? u : u?.themes ? pe({
436
432
  source: "themes",
437
- entity: f,
438
- childType: d.childType
433
+ entity: p,
434
+ childType: u.childType
439
435
  }) : pe({
440
- purpose: d?.purpose,
441
- rootId: d?.rootId,
442
- childType: d?.childType,
443
- entity: f,
444
- order: d?.order
445
- }), m = ce(f), ne = _(() => m.value !== null), h = _(() => t.spec), S = _(() => p.byId.value.get(t.id) ?? null), re = _(() => p.parents(t.id).at(-1) ?? null), F = _(() => {
446
- if (re.value) return p.children(re.value.id);
447
- let e = p.root.value;
448
- return e ? p.children(e.id) : p.walk().filter((e) => p.parents(e.id).length === 0);
449
- }), I = _(() => F.value.findIndex((e) => e.id === t.id)), L = _(() => h.value.navigation || !1), R = _(() => L.value === "siblings" ? I.value > 0 ? F.value[I.value - 1] : null : L.value === "tree" ? p.previous(t.id) : null), z = _(() => L.value === "siblings" ? I.value !== -1 && I.value < F.value.length - 1 ? F.value[I.value + 1] : null : L.value === "tree" ? p.next(t.id) : null), { language: B, dir: he } = ye(S, { entity: f }), ve = _(() => S.value ? r.tr(f, S.value.id, B.value, "en") : {}), H = k(!1);
450
- ae(() => [S.value?.id, B.value], async () => {
451
- if (H.value = !1, !S.value) {
452
- H.value = !0;
436
+ purpose: u?.purpose,
437
+ rootId: u?.rootId,
438
+ childType: u?.childType,
439
+ entity: p,
440
+ order: u?.order
441
+ }), h = se(p), te = y(() => h.value !== null), g = y(() => t.spec), _ = y(() => m.byId.value.get(t.id) ?? null), ne = y(() => m.parents(t.id).at(-1) ?? null), D = y(() => {
442
+ if (ne.value) return m.children(ne.value.id);
443
+ let e = m.root.value;
444
+ return e ? m.children(e.id) : m.walk().filter((e) => m.parents(e.id).length === 0);
445
+ }), L = y(() => D.value.findIndex((e) => e.id === t.id)), R = y(() => g.value.navigation || !1), z = y(() => R.value === "siblings" ? L.value > 0 ? D.value[L.value - 1] : null : R.value === "tree" ? m.previous(t.id) : null), B = y(() => R.value === "siblings" ? L.value !== -1 && L.value < D.value.length - 1 ? D.value[L.value + 1] : null : R.value === "tree" ? m.next(t.id) : null), { language: V, dir: ue } = ye(_, { entity: p }), he = y(() => _.value ? r.tr(p, _.value.id, V.value, "en") : {}), ve = j(!1);
446
+ ie(() => [_.value?.id, V.value], async () => {
447
+ if (ve.value = !1, !_.value) {
448
+ ve.value = !0;
453
449
  return;
454
450
  }
455
- let e = B.value === "en" ? ["en"] : [B.value, "en"];
456
- await Promise.all([f, c].flatMap((t) => e.map((e) => r.loadTranslations(t, e)))), H.value = !0;
451
+ let e = V.value === "en" ? ["en"] : [V.value, "en"];
452
+ await Promise.all([p, l].flatMap((t) => e.map((e) => r.loadTranslations(t, e)))), ve.value = !0;
457
453
  }, { immediate: !0 });
458
- function U(e) {
454
+ function be(e) {
459
455
  if (!e) return "";
460
- let t = h.value.placeholder, n = (e) => !!e && !!t && t.test(e), i = r.tr(f, e.id, B.value, "en");
456
+ let t = g.value.placeholder, n = (e) => !!e && !!t && t.test(e), i = r.tr(p, e.id, V.value, "en");
461
457
  if (i.title && !n(i.title)) return i.title;
462
- let a = r.tr(f, e.id, "en").title;
458
+ let a = r.tr(p, e.id, "en").title;
463
459
  return a && !n(a) ? a : e.internal_name ?? e.id;
464
460
  }
465
- let W = _(() => ({
466
- node: S.value,
467
- text: ve.value,
468
- language: B.value,
469
- tree: p,
470
- select: Ve,
461
+ let U = y(() => ({
462
+ node: _.value,
463
+ text: he.value,
464
+ language: V.value,
465
+ tree: m,
466
+ select: He,
471
467
  t: n,
472
- tr: (e, t) => r.tr(e, t, B.value, "en")
468
+ tr: (e, t) => r.tr(e, t, V.value, "en")
473
469
  }));
474
- function be(e, t) {
470
+ function xe(e, t) {
475
471
  return t.split(".").reduce((e, t) => e?.[t], e);
476
472
  }
477
- function xe(e, t) {
478
- return e === !1 || e == null ? "" : typeof e == "function" ? e(t) ?? "" : be(t.text, e) ?? "";
473
+ function Se(e, t) {
474
+ return e === !1 || e == null ? "" : typeof e == "function" ? e(t) ?? "" : xe(t.text, e) ?? "";
479
475
  }
480
- let Se = _(() => xe(h.value.quote ?? "quote", W.value)), Ce = _(() => xe(h.value.body ?? "description", W.value)), we = _(() => {
481
- if (!h.value.glossary || !S.value) return [];
482
- let e = [Se.value, Ce.value].filter(Boolean);
483
- return ue(e.join("\n\n"), B.value);
484
- }), Te = _(() => le(we.value)), { active: Ee, onClick: De, close: Oe } = ge(we), ke = _(() => Ee.value ? de(Ee.value.definition, { breaks: !0 }) : ""), Ae = _(() => S.value ? h.value.heading ? h.value.heading(W.value) : V(String(U(S.value)), { glossary: Te.value }) : ""), je = _(() => Se.value ? V(String(Se.value), { glossary: Te.value }) : ""), Me = _(() => Ce.value ? de(String(Ce.value), {
476
+ let Ce = y(() => Se(g.value.quote ?? "quote", U.value)), we = y(() => Se(g.value.body ?? "description", U.value)), Te = y(() => {
477
+ if (!g.value.glossary || !_.value) return [];
478
+ let e = [Ce.value, we.value].filter(Boolean);
479
+ return le(e.join("\n\n"), V.value);
480
+ }), Ee = y(() => ce(Te.value)), { active: De, onClick: Oe, close: ke } = ge(Te), Ae = y(() => De.value ? de(De.value.definition, { breaks: !0 }) : ""), je = y(() => _.value ? g.value.heading ? g.value.heading(U.value) : H(String(be(_.value)), { glossary: Ee.value }) : ""), Me = y(() => Ce.value ? H(String(Ce.value), { glossary: Ee.value }) : ""), Ne = y(() => we.value ? de(String(we.value), {
485
481
  breaks: !0,
486
- glossary: Te.value
487
- }) : ""), Ne = _(() => S.value ? h.value.about?.(S.value) ?? !1 : !1), G = _(() => !!Ne.value);
488
- function Pe(e) {
489
- let t = Ne.value;
490
- return t && typeof t == "object" ? !!t[e] : !!h.value.aboutKeeps?.includes(e);
482
+ glossary: Ee.value
483
+ }) : ""), Pe = y(() => _.value ? g.value.about?.(_.value) ?? !1 : !1), W = y(() => !!Pe.value);
484
+ function Fe(e) {
485
+ let t = Pe.value;
486
+ return t && typeof t == "object" ? !!t[e] : !!g.value.aboutKeeps?.includes(e);
491
487
  }
492
- let Fe = [
488
+ let Ie = [
493
489
  [1e3, "M"],
494
490
  [900, "CM"],
495
491
  [500, "D"],
@@ -504,66 +500,66 @@ var U = { class: "mwnf-home" }, W = {
504
500
  [4, "IV"],
505
501
  [1, "I"]
506
502
  ];
507
- function Ie(e) {
503
+ function Le(e) {
508
504
  let t = e, n = "";
509
- for (let [e, r] of Fe) for (; t >= e;) n += r, t -= e;
505
+ for (let [e, r] of Ie) for (; t >= e;) n += r, t -= e;
510
506
  return n;
511
507
  }
512
- let Le = _(() => {
513
- let e = h.value.numbering;
514
- if (!e || !S.value) return "";
515
- let n = (F.value.length ? F.value : [S.value]).findIndex((e) => e.id === t.id), r = n >= 0 ? n + 1 : 1;
516
- return e === "roman" ? Ie(r) : String(r);
508
+ let Re = y(() => {
509
+ let e = g.value.numbering;
510
+ if (!e || !_.value) return "";
511
+ let n = (D.value.length ? D.value : [_.value]).findIndex((e) => e.id === t.id), r = n >= 0 ? n + 1 : 1;
512
+ return e === "roman" ? Le(r) : String(r);
517
513
  });
518
- function Re(e) {
514
+ function ze(e) {
519
515
  return e ? Array.isArray(e.items) ? e.items.map((e) => e && typeof e == "object" ? e.id : e).filter((e) => e != null) : Array.isArray(e.item_ids) ? e.item_ids.filter((e) => e != null) : Array.isArray(e.pictures) ? e.pictures.map((e) => e?.picture_item_id).filter((e) => e != null) : [] : [];
520
516
  }
521
- let ze = se(c), Be = _(() => {
522
- let e = h.value.items?.of ?? Re;
523
- return S.value ? e(S.value, W.value) : [];
524
- }), K = _(() => Be.value.map((e) => ze.value.get(e)).filter(Boolean)), q = k(null);
525
- ae(K, (e) => {
526
- e.some((e) => e.id === q.value) || (q.value = e[0]?.id ?? null);
517
+ let Be = oe(l), Ve = y(() => {
518
+ let e = g.value.items?.of ?? ze;
519
+ return _.value ? e(_.value, U.value) : [];
520
+ }), G = y(() => Ve.value.map((e) => Be.value.get(e)).filter(Boolean)), K = j(null);
521
+ ie(G, (e) => {
522
+ e.some((e) => e.id === K.value) || (K.value = e[0]?.id ?? null);
527
523
  }, { immediate: !0 });
528
- let J = _(() => K.value.find((e) => e.id === q.value) ?? K.value[0] ?? null);
529
- function Ve(e) {
530
- q.value = e;
531
- }
524
+ let q = y(() => G.value.find((e) => e.id === K.value) ?? G.value[0] ?? null);
532
525
  function He(e) {
533
- let t = h.value.items?.route;
534
- return !t || !e ? null : typeof t == "function" ? t(e, W.value) : {
526
+ K.value = e;
527
+ }
528
+ function Ue(e) {
529
+ let t = g.value.items?.route;
530
+ return !t || !e ? null : typeof t == "function" ? t(e, U.value) : {
535
531
  name: t,
536
532
  params: { id: e.id }
537
533
  };
538
534
  }
539
- function Y(e) {
540
- let t = h.value.route;
541
- return !t || !e ? null : typeof t == "function" ? t(e, W.value) : {
535
+ function J(e) {
536
+ let t = g.value.route;
537
+ return !t || !e ? null : typeof t == "function" ? t(e, U.value) : {
542
538
  name: t,
543
539
  params: { id: e.id }
544
540
  };
545
541
  }
546
- function Ue(e) {
542
+ function We(e) {
547
543
  if (!e) return null;
548
- let t = r.tr(c, e.id, B.value, "en").name ?? e.internal_name ?? e.id;
544
+ let t = r.tr(l, e.id, V.value, "en").name ?? e.internal_name ?? e.id;
549
545
  return {
550
- name: V(String(t)),
546
+ name: H(String(t)),
551
547
  image: e.images?.[0]?.url ?? "",
552
548
  imageAlt: fe(String(t))
553
549
  };
554
550
  }
555
- let We = _(() => {
556
- let e = J.value;
551
+ let Ge = y(() => {
552
+ let e = q.value;
557
553
  if (!e) return null;
558
- let t = Ue(e), n = h.value.items?.caption?.(e, S.value, W.value);
554
+ let t = We(e), n = g.value.items?.caption?.(e, _.value, U.value);
559
555
  return {
560
556
  ...t,
561
557
  ...n
562
558
  };
563
- }), X = _(() => !!h.value.panel), Z = _(() => {
564
- let e = J.value;
559
+ }), Y = y(() => !!g.value.panel), X = y(() => {
560
+ let e = q.value;
565
561
  if (!e) return [];
566
- let t = We.value, n = e.images?.[0]?.url ? [{
562
+ let t = Ge.value, n = e.images?.[0]?.url ? [{
567
563
  id: "__primary",
568
564
  image: e.images[0].url,
569
565
  alt: t?.imageAlt ?? "",
@@ -572,39 +568,39 @@ var U = { class: "mwnf-home" }, W = {
572
568
  justification: "",
573
569
  fields: null
574
570
  }
575
- }] : [], r = h.value.panel?.variants?.(e, W.value) ?? [];
571
+ }] : [], r = g.value.panel?.variants?.(e, U.value) ?? [];
576
572
  return [...n, ...r.map((e, t) => ({
577
573
  id: e.id ?? `variant-${t}`,
578
574
  ...e
579
575
  }))];
580
- }), Ge = k(null);
581
- ae(Z, (e) => {
582
- e.some((e) => e.id === Ge.value) || (Ge.value = e[0]?.id ?? null);
576
+ }), Z = j(null);
577
+ ie(X, (e) => {
578
+ e.some((e) => e.id === Z.value) || (Z.value = e[0]?.id ?? null);
583
579
  }, { immediate: !0 });
584
- let Q = _(() => Z.value.find((e) => e.id === Ge.value) ?? Z.value[0] ?? null);
585
- function Ke(e) {
586
- Ge.value = e;
580
+ let Q = y(() => X.value.find((e) => e.id === Z.value) ?? X.value[0] ?? null);
581
+ function bt(e) {
582
+ Z.value = e;
587
583
  }
588
- let qe = _(() => {
584
+ let xt = y(() => {
589
585
  let e = Q.value;
590
586
  return e?.image ? [{
591
587
  url: e.image,
592
588
  alt: e.alt ?? ""
593
589
  }] : [];
594
- }), Je = _(() => {
595
- let e = J.value;
596
- return !e || !h.value.panel?.fields ? [] : h.value.panel.fields(e, S.value, W.value) ?? [];
597
- }), Ye = _(() => {
590
+ }), St = y(() => {
591
+ let e = q.value;
592
+ return !e || !g.value.panel?.fields ? [] : g.value.panel.fields(e, _.value, U.value) ?? [];
593
+ }), Ct = y(() => {
598
594
  let e = Q.value?.caption?.fields;
599
- return e == null ? Je.value : e.map((e) => ({
595
+ return e == null ? St.value : e.map((e) => ({
600
596
  label: e.label ? n(e.label) : "",
601
597
  value: e.value
602
598
  }));
603
- }), Xe = _(() => {
599
+ }), wt = y(() => {
604
600
  let e = Q.value?.caption?.justification;
605
- return e ? V(String(e)) : "";
606
- }), Ze = _(() => K.value.map((e) => {
607
- let t = Ue(e), n = h.value.items?.meta?.(e, W.value) ?? [], r = h.value.items?.badge?.(e, W.value) ?? "";
601
+ return e ? H(String(e)) : "";
602
+ }), Tt = y(() => G.value.map((e) => {
603
+ let t = We(e), n = g.value.items?.meta?.(e, U.value) ?? [], r = g.value.items?.badge?.(e, U.value) ?? "";
608
604
  return {
609
605
  id: e.id,
610
606
  image: t.image,
@@ -612,203 +608,203 @@ var U = { class: "mwnf-home" }, W = {
612
608
  name: t.name,
613
609
  meta: n,
614
610
  badge: r,
615
- to: He(e)
611
+ to: Ue(e)
616
612
  };
617
- })), Qe = _(() => h.value.breadcrumb && S.value ? p.parents(t.id) : []), $e = _(() => {
618
- let e = h.value.tabs;
619
- return e ? e === "children" ? S.value ? p.children(S.value.id) : [] : F.value : [];
620
- }), Ot = _(() => h.value.previous ?? "exhibition.theme.previous"), kt = _(() => h.value.next ?? "exhibition.theme.next"), At = _(() => h.value.backTo ?? "record.action.backToResults"), jt = _(() => h.value.inThisTheme ?? "exhibition.theme.inThisTheme"), Mt = _(() => h.value.seeAll ?? "exhibition.theme.seeAllInTheme"), $ = _(() => ({
621
- ...W.value,
622
- items: K.value,
623
- selected: J.value,
613
+ })), Et = y(() => g.value.breadcrumb && _.value ? m.parents(t.id) : []), Dt = y(() => {
614
+ let e = g.value.tabs;
615
+ return e ? e === "children" ? _.value ? m.children(_.value.id) : [] : D.value : [];
616
+ }), Ot = y(() => g.value.previous ?? "exhibition.theme.previous"), kt = y(() => g.value.next ?? "exhibition.theme.next"), At = y(() => g.value.backTo ?? "record.action.backToResults"), jt = y(() => g.value.inThisTheme ?? "exhibition.theme.inThisTheme"), Mt = y(() => g.value.seeAll ?? "exhibition.theme.seeAllInTheme"), $ = y(() => ({
617
+ ...U.value,
618
+ items: G.value,
619
+ selected: q.value,
624
620
  selectedVariant: Q.value,
625
- selectVariant: Ke,
626
- breadcrumb: Qe.value,
627
- previous: R.value,
628
- next: z.value
629
- })), Nt = _(() => G.value && !Pe("panel") ? !1 : X.value || K.value.length > 0 || !!i.aside), Pt = _(() => (!G.value || Pe("navigation")) && !!L.value && !!(R.value || z.value));
630
- return (t, r) => ne.value && !S.value ? (O(), v(N(oe), { key: 0 })) : S.value ? (O(), b("article", {
621
+ selectVariant: bt,
622
+ breadcrumb: Et.value,
623
+ previous: z.value,
624
+ next: B.value
625
+ })), Nt = y(() => W.value && !Fe("panel") ? !1 : Y.value || G.value.length > 0 || !!i.aside), Pt = y(() => (!W.value || Fe("navigation")) && !!R.value && !!(z.value || B.value));
626
+ return (t, r) => te.value && !_.value ? (A(), b(F(ae), { key: 0 })) : _.value ? (A(), S("article", {
631
627
  key: 1,
632
- class: E(["mwnf-essay", { "mwnf-essay--about": G.value }]),
633
- dir: N(he) || void 0,
634
- onClick: r[0] ||= (...e) => N(De) && N(De)(...e)
628
+ class: O(["mwnf-essay", { "mwnf-essay--about": W.value }]),
629
+ dir: F(ue) || void 0,
630
+ onClick: r[0] ||= (...e) => F(Oe) && F(Oe)(...e)
635
631
  }, [
636
- j(t.$slots, "header", D(T($.value)), () => [
637
- Qe.value.length ? (O(), b("p", tt, [x("span", nt, M(N(n)(At.value)), 1), (O(!0), b(g, null, A(Qe.value, (e) => (O(), b(g, { key: e.id }, [Y(e) ? (O(), v(u, {
632
+ N(t.$slots, "header", k(E($.value)), () => [
633
+ Et.value.length ? (A(), S("p", qe, [C("span", Je, P(F(n)(At.value)), 1), (A(!0), S(v, null, M(Et.value, (e) => (A(), S(v, { key: e.id }, [J(e) ? (A(), b(f, {
638
634
  key: 0,
639
- to: Y(e),
635
+ to: J(e),
640
636
  class: "mwnf-essay__breadcrumb-link"
641
637
  }, {
642
- default: P(() => [C(M(U(e)), 1)]),
638
+ default: I(() => [w(P(be(e)), 1)]),
643
639
  _: 2
644
- }, 1032, ["to"])) : (O(), b("span", rt, M(U(e)), 1))], 64))), 128))])) : y("", !0),
645
- $e.value.length > 1 ? (O(), b("div", {
640
+ }, 1032, ["to"])) : (A(), S("span", Ye, P(be(e)), 1))], 64))), 128))])) : x("", !0),
641
+ Dt.value.length > 1 ? (A(), S("div", {
646
642
  key: 1,
647
643
  class: "mwnf-essay__tabs",
648
644
  role: "tablist",
649
- "aria-label": N(n)(jt.value)
650
- }, [(O(!0), b(g, null, A($e.value, (t) => (O(), v(u, {
645
+ "aria-label": F(n)(jt.value)
646
+ }, [(A(!0), S(v, null, M(Dt.value, (t) => (A(), b(f, {
651
647
  key: t.id,
652
- to: Y(t),
653
- class: E(["mwnf-essay__tab", { "mwnf-essay__tab--active": t.id === e.id }])
648
+ to: J(t),
649
+ class: O(["mwnf-essay__tab", { "mwnf-essay__tab--active": t.id === e.id }])
654
650
  }, {
655
- default: P(() => [C(M(U(t)), 1)]),
651
+ default: I(() => [w(P(be(t)), 1)]),
656
652
  _: 2
657
- }, 1032, ["to", "class"]))), 128))], 8, it)) : y("", !0),
658
- x("h1", at, [Le.value ? (O(), b("span", ot, M(Le.value), 1)) : y("", !0), x("span", { innerHTML: Ae.value }, null, 8, st)])
653
+ }, 1032, ["to", "class"]))), 128))], 8, Xe)) : x("", !0),
654
+ C("h1", Ze, [Re.value ? (A(), S("span", Qe, P(Re.value), 1)) : x("", !0), C("span", { innerHTML: je.value }, null, 8, $e)])
659
655
  ]),
660
- x("div", ct, [x("div", lt, [
661
- H.value ? y("", !0) : (O(), b("p", ut, M(N(n)("core.status.loading")), 1)),
662
- je.value ? (O(), b("p", {
656
+ C("div", et, [C("div", tt, [
657
+ ve.value ? x("", !0) : (A(), S("p", nt, P(F(n)("core.status.loading")), 1)),
658
+ Me.value ? (A(), S("p", {
663
659
  key: 1,
664
660
  class: "mwnf-essay__quote",
665
- innerHTML: je.value
666
- }, null, 8, dt)) : y("", !0),
667
- j(t.$slots, "before-body", D(T($.value))),
668
- Me.value ? (O(), b("div", {
661
+ innerHTML: Me.value
662
+ }, null, 8, rt)) : x("", !0),
663
+ N(t.$slots, "before-body", k(E($.value))),
664
+ Ne.value ? (A(), S("div", {
669
665
  key: 2,
670
666
  class: "mwnf-essay__prose mwnf-sheet__block",
671
- innerHTML: Me.value
672
- }, null, 8, ft)) : y("", !0),
673
- j(t.$slots, "after-body", D(T($.value))),
674
- G.value ? y("", !0) : j(t.$slots, "justifications", D(T($.value)), void 0, void 0, 3),
675
- Pt.value ? (O(), b("div", pt, [j(t.$slots, "navigation", D(T($.value)), () => [R.value ? (O(), v(u, {
667
+ innerHTML: Ne.value
668
+ }, null, 8, it)) : x("", !0),
669
+ N(t.$slots, "after-body", k(E($.value))),
670
+ W.value ? x("", !0) : N(t.$slots, "justifications", k(E($.value)), void 0, void 0, 3),
671
+ Pt.value ? (A(), S("div", at, [N(t.$slots, "navigation", k(E($.value)), () => [z.value ? (A(), b(f, {
676
672
  key: 0,
677
- to: Y(R.value),
673
+ to: J(z.value),
678
674
  class: "mwnf-essay__nav-link mwnf-essay__nav-link--previous"
679
675
  }, {
680
- default: P(() => [C("← " + M(N(n)(Ot.value)), 1)]),
676
+ default: I(() => [w("← " + P(F(n)(Ot.value)), 1)]),
681
677
  _: 1
682
- }, 8, ["to"])) : (O(), b("span", mt)), z.value ? (O(), v(u, {
678
+ }, 8, ["to"])) : (A(), S("span", ot)), B.value ? (A(), b(f, {
683
679
  key: 2,
684
- to: Y(z.value),
680
+ to: J(B.value),
685
681
  class: "mwnf-essay__nav-link mwnf-essay__nav-link--next"
686
682
  }, {
687
- default: P(() => [C(M(N(n)(kt.value)) + " →", 1)]),
683
+ default: I(() => [w(P(F(n)(kt.value)) + " →", 1)]),
688
684
  _: 1
689
- }, 8, ["to"])) : y("", !0)])])) : y("", !0)
690
- ]), Nt.value ? (O(), b("div", ht, [
691
- j(t.$slots, "panel", D(T($.value)), () => [X.value && We.value ? (O(), b("div", gt, [
692
- w(a, { images: qe.value }, null, 8, ["images"]),
693
- Z.value.length > 1 ? (O(), b("ul", _t, [(O(!0), b(g, null, A(Z.value, (e) => (O(), b("li", { key: e.id }, [x("button", {
685
+ }, 8, ["to"])) : x("", !0)])])) : x("", !0)
686
+ ]), Nt.value ? (A(), S("div", st, [
687
+ N(t.$slots, "panel", k(E($.value)), () => [Y.value && Ge.value ? (A(), S("div", ct, [
688
+ T(s, { images: xt.value }, null, 8, ["images"]),
689
+ X.value.length > 1 ? (A(), S("ul", lt, [(A(!0), S(v, null, M(X.value, (e) => (A(), S("li", { key: e.id }, [C("button", {
694
690
  type: "button",
695
- class: E(["mwnf-essay__variant", { "mwnf-essay__variant--active": e.id === Q.value?.id }]),
691
+ class: O(["mwnf-essay__variant", { "mwnf-essay__variant--active": e.id === Q.value?.id }]),
696
692
  "aria-pressed": e.id === Q.value?.id ? "true" : "false",
697
- onClick: (t) => Ke(e.id)
698
- }, [e.image ? (O(), b("img", {
693
+ onClick: (t) => bt(e.id)
694
+ }, [e.image ? (A(), S("img", {
699
695
  key: 0,
700
696
  src: e.image,
701
697
  alt: e.alt ?? "",
702
698
  loading: "lazy"
703
- }, null, 8, yt)) : y("", !0)], 10, vt)]))), 128))])) : y("", !0),
704
- x("h3", {
699
+ }, null, 8, dt)) : x("", !0)], 10, ut)]))), 128))])) : x("", !0),
700
+ C("h3", {
705
701
  class: "mwnf-essay__panel-name",
706
- innerHTML: Q.value?.caption?.title || We.value.name
707
- }, null, 8, bt),
708
- (O(!0), b(g, null, A(Ye.value, (e, t) => (O(), b("p", {
702
+ innerHTML: Q.value?.caption?.title || Ge.value.name
703
+ }, null, 8, ft),
704
+ (A(!0), S(v, null, M(Ct.value, (e, t) => (A(), S("p", {
709
705
  key: t,
710
706
  class: "mwnf-essay__panel-field"
711
- }, [e.label ? (O(), b("span", xt, M(e.label), 1)) : y("", !0), x("span", { innerHTML: e.value }, null, 8, St)]))), 128)),
712
- Xe.value ? (O(), b("p", {
707
+ }, [e.label ? (A(), S("span", pt, P(e.label), 1)) : x("", !0), C("span", { innerHTML: e.value }, null, 8, mt)]))), 128)),
708
+ wt.value ? (A(), S("p", {
713
709
  key: 1,
714
710
  class: "mwnf-essay__panel-justification mwnf-sheet__block",
715
- innerHTML: Xe.value
716
- }, null, 8, Ct)) : y("", !0),
717
- He(J.value) ? (O(), v(u, {
711
+ innerHTML: wt.value
712
+ }, null, 8, ht)) : x("", !0),
713
+ Ue(q.value) ? (A(), b(f, {
718
714
  key: 2,
719
- to: He(J.value),
715
+ to: Ue(q.value),
720
716
  class: "mwnf-essay__panel-link"
721
717
  }, {
722
- default: P(() => [C(M(N(n)(Mt.value)) + " →", 1)]),
718
+ default: I(() => [w(P(F(n)(Mt.value)) + " →", 1)]),
723
719
  _: 1
724
- }, 8, ["to"])) : y("", !0)
725
- ])) : y("", !0)]),
726
- j(t.$slots, "thumbnails", D(T($.value)), () => [X.value && K.value.length > 1 ? (O(), b("ul", wt, [(O(!0), b(g, null, A(K.value, (e) => (O(), b("li", { key: e.id }, [x("button", {
720
+ }, 8, ["to"])) : x("", !0)
721
+ ])) : x("", !0)]),
722
+ N(t.$slots, "thumbnails", k(E($.value)), () => [Y.value && G.value.length > 1 ? (A(), S("ul", gt, [(A(!0), S(v, null, M(G.value, (e) => (A(), S("li", { key: e.id }, [C("button", {
727
723
  type: "button",
728
- class: E(["mwnf-essay__thumb", { "mwnf-essay__thumb--active": e.id === J.value?.id }]),
729
- onClick: (t) => Ve(e.id)
730
- }, [e.images?.[0]?.url ? (O(), b("img", {
724
+ class: O(["mwnf-essay__thumb", { "mwnf-essay__thumb--active": e.id === q.value?.id }]),
725
+ onClick: (t) => He(e.id)
726
+ }, [e.images?.[0]?.url ? (A(), S("img", {
731
727
  key: 0,
732
728
  src: e.images[0].url,
733
729
  alt: "",
734
730
  loading: "lazy"
735
- }, null, 8, Et)) : y("", !0)], 10, Tt)]))), 128))])) : !X.value && Ze.value.length ? (O(), v(o, {
731
+ }, null, 8, vt)) : x("", !0)], 10, _t)]))), 128))])) : !Y.value && Tt.value.length ? (A(), b(ee, {
736
732
  key: 1,
737
- records: Ze.value
738
- }, null, 8, ["records"])) : y("", !0)]),
739
- j(t.$slots, "aside", D(T($.value)))
740
- ])) : y("", !0)]),
741
- j(t.$slots, "after", D(T($.value)), () => [w(l)]),
742
- w(s, {
743
- term: N(Ee),
744
- html: ke.value,
745
- dir: N(he),
746
- onClose: N(Oe)
733
+ records: Tt.value
734
+ }, null, 8, ["records"])) : x("", !0)]),
735
+ N(t.$slots, "aside", k(E($.value)))
736
+ ])) : x("", !0)]),
737
+ N(t.$slots, "after", k(E($.value)), () => [T(d)]),
738
+ T(c, {
739
+ term: F(De),
740
+ html: Ae.value,
741
+ dir: F(ue),
742
+ onClose: F(ke)
747
743
  }, null, 8, [
748
744
  "term",
749
745
  "html",
750
746
  "dir",
751
747
  "onClose"
752
748
  ])
753
- ], 10, et)) : (O(), b("p", Dt, M(N(n)("core.status.loading")), 1));
749
+ ], 10, Ke)) : (A(), S("p", yt, P(F(n)("core.status.loading")), 1));
754
750
  }
755
- }, kt = { class: "mwnf-link-list" }, At = {
751
+ }, Z = { class: "mwnf-link-list" }, Q = {
756
752
  key: 0,
757
753
  class: "mwnf-link-list__back"
758
- }, jt = {
754
+ }, bt = {
759
755
  key: 1,
760
756
  class: "mwnf-link-list__title"
761
- }, Mt = {
757
+ }, xt = {
762
758
  key: 2,
763
759
  class: "mwnf-link-list__groups"
764
- }, $ = {
760
+ }, St = {
765
761
  key: 0,
766
762
  class: "mwnf-link-list__heading"
767
- }, Nt = {
763
+ }, Ct = {
768
764
  key: 1,
769
765
  class: "mwnf-link-list__links"
770
- }, Pt = ["innerHTML"], Ft = ["innerHTML"], It = {
766
+ }, wt = ["innerHTML"], Tt = ["innerHTML"], Et = {
771
767
  key: 3,
772
768
  class: "mwnf-link-list__empty"
773
- }, Lt = {
769
+ }, Dt = {
774
770
  __name: "LinkListView",
775
771
  props: { spec: {
776
772
  type: Object,
777
773
  required: !0
778
774
  } },
779
775
  setup(e) {
780
- let t = e, { t: n } = _e(), r = _(() => ((typeof t.spec.groups == "function" ? t.spec.groups({}) : t.spec.groups ?? []) ?? []).filter((e) => e.links?.length > 0)), i = _(() => t.spec.title ? n(t.spec.title) : ""), a = _(() => t.spec.back?.label ? n(t.spec.back.label) : ""), o = _(() => n(t.spec.empty ?? "catalogue.results.noResults"));
781
- return (e, s) => (O(), b("div", kt, [
782
- t.spec.back && a.value ? (O(), b("div", At, [w(u, {
776
+ let t = e, { t: n } = _e(), r = y(() => ((typeof t.spec.groups == "function" ? t.spec.groups({}) : t.spec.groups ?? []) ?? []).filter((e) => e.links?.length > 0)), i = y(() => t.spec.title ? n(t.spec.title) : ""), a = y(() => t.spec.back?.label ? n(t.spec.back.label) : ""), o = y(() => n(t.spec.empty ?? "catalogue.results.noResults"));
777
+ return (e, s) => (A(), S("div", Z, [
778
+ t.spec.back && a.value ? (A(), S("div", Q, [T(f, {
783
779
  to: t.spec.back.to,
784
780
  href: t.spec.back.href
785
781
  }, {
786
- default: P(() => [C(" ← " + M(a.value), 1)]),
782
+ default: I(() => [w(" ← " + P(a.value), 1)]),
787
783
  _: 1
788
- }, 8, ["to", "href"])])) : y("", !0),
789
- i.value ? (O(), b("h1", jt, M(i.value), 1)) : y("", !0),
790
- j(e.$slots, "before"),
791
- r.value.length ? (O(), b("div", Mt, [(O(!0), b(g, null, A(r.value, (t, r) => (O(), b("section", {
784
+ }, 8, ["to", "href"])])) : x("", !0),
785
+ i.value ? (A(), S("h1", bt, P(i.value), 1)) : x("", !0),
786
+ N(e.$slots, "before"),
787
+ r.value.length ? (A(), S("div", xt, [(A(!0), S(v, null, M(r.value, (t, r) => (A(), S("section", {
792
788
  key: r,
793
789
  class: "mwnf-link-list__group"
794
- }, [j(e.$slots, "group", { group: t }, () => [t.heading ? (O(), b("h2", $, M(N(n)(t.heading)), 1)) : y("", !0), t.links?.length ? (O(), b("ul", Nt, [(O(!0), b(g, null, A(t.links, (e, t) => (O(), b("li", {
790
+ }, [N(e.$slots, "group", { group: t }, () => [t.heading ? (A(), S("h2", St, P(F(n)(t.heading)), 1)) : x("", !0), t.links?.length ? (A(), S("ul", Ct, [(A(!0), S(v, null, M(t.links, (e, t) => (A(), S("li", {
795
791
  key: t,
796
792
  class: "mwnf-link-list__item"
797
- }, [w(u, {
793
+ }, [T(f, {
798
794
  class: "mwnf-link-list__link",
799
795
  to: e.to,
800
796
  href: e.href
801
797
  }, {
802
- default: P(() => [x("span", { innerHTML: N(L)(e.label) }, null, 8, Pt)]),
798
+ default: I(() => [C("span", { innerHTML: F(z)(e.label) }, null, 8, wt)]),
803
799
  _: 2
804
- }, 1032, ["to", "href"]), e.note ? (O(), b("div", {
800
+ }, 1032, ["to", "href"]), e.note ? (A(), S("div", {
805
801
  key: 0,
806
802
  class: "mwnf-link-list__note",
807
- innerHTML: N(L)(e.note)
808
- }, null, 8, Ft)) : y("", !0)]))), 128))])) : y("", !0)])]))), 128))])) : (O(), b("div", It, M(o.value), 1)),
809
- j(e.$slots, "after")
803
+ innerHTML: F(z)(e.note)
804
+ }, null, 8, Tt)) : x("", !0)]))), 128))])) : x("", !0)])]))), 128))])) : (A(), S("div", Et, P(o.value), 1)),
805
+ N(e.$slots, "after")
810
806
  ]));
811
807
  }
812
808
  };
813
809
  //#endregion
814
- export { m as CatalogueResultsView, Ot as EssayView, xe as HomeView, Lt as LinkListView, f as PartnerListView, $e as RecordSheetView, d as RecordView, p as SearchFormView, ne as TextPageView, h as TimelineResultsView };
810
+ export { te as CatalogueResultsView, X as EssayView, Se as HomeView, Dt as LinkListView, m as PartnerListView, Y as RecordSheetView, p as RecordView, h as SearchFormView, g as TextPageView, _ as TimelineResultsView };