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