@museumwnf/viewer-layout 3.9.0 → 3.10.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.
@@ -1,14 +1,14 @@
1
- import { r as e } from "./chrome-i1DOEyLS.js";
1
+ import { r as e } from "./chrome-Co3f_Shw.js";
2
2
  import { c as t, d as n, n as r } from "./GlossaryPopover-DcptyNWI.js";
3
- import { n as i, t as a } from "./RecordView-CdKx9tFy.js";
4
- import { t as o } from "./SiteShell-CXMfLqzq.js";
3
+ import { n as i, t as a } from "./RecordView-BvKoAB2j.js";
4
+ import { t as o } from "./SiteShell-DmKiH3jM.js";
5
5
  import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useSlots as E, watch as D, withCtx as O } from "vue";
6
- import { byId as k, loadEntities as A, pictureCredits as j, removeEndingPoint as M, renderBlock as N, renderInline as P, renderPlain as F, useDataPackage as I, useI18n as L, useSection as ee, useSiteConfig as R } from "@museumwnf/viewer-core";
6
+ import { byId as k, loadEntities as A, pictureCredits as j, picturesInLanguage as M, removeEndingPoint as N, renderBlock as P, renderInline as F, renderPlain as I, useDataPackage as L, useI18n as R, useSection as ee, useSiteConfig as z } from "@museumwnf/viewer-core";
7
7
  //#region src/standalone/Banner.vue
8
- var z = {
8
+ var B = {
9
9
  key: 0,
10
10
  class: "mwnf-standalone-banner__title"
11
- }, B = {
11
+ }, V = {
12
12
  __name: "Banner",
13
13
  props: {
14
14
  image: {
@@ -24,26 +24,26 @@ var z = {
24
24
  return (t, n) => (b(), d("div", {
25
25
  class: "mwnf-standalone-banner",
26
26
  style: y(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
27
- }, [e.title ? (b(), d("h1", z, [f("span", null, w(e.title), 1)])) : u("", !0)], 4));
27
+ }, [e.title ? (b(), d("h1", B, [f("span", null, w(e.title), 1)])) : u("", !0)], 4));
28
28
  }
29
29
  };
30
30
  //#endregion
31
31
  //#region src/standalone/chrome.js
32
- function V() {
33
- let t = R();
32
+ function H() {
33
+ let t = z();
34
34
  return (n) => e(t.chrome, n);
35
35
  }
36
- function H(e, t) {
36
+ function U(e, t) {
37
37
  return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
38
38
  }
39
- function U(e = /* @__PURE__ */ new Date()) {
39
+ function W(e = /* @__PURE__ */ new Date()) {
40
40
  let t = new Date(e.getFullYear(), 0, 1);
41
41
  return Math.round((new Date(e.getFullYear(), e.getMonth(), e.getDate()) - t) / 864e5);
42
42
  }
43
- function W(e, t = /* @__PURE__ */ new Date()) {
44
- return e?.length ? e[U(t) % e.length] : null;
43
+ function G(e, t = /* @__PURE__ */ new Date()) {
44
+ return e?.length ? e[W(t) % e.length] : null;
45
45
  }
46
- function G(e) {
46
+ function K(e) {
47
47
  let [t, ...n] = String(e ?? "").split("*")[0].trim().split(";");
48
48
  return !t || n.length < 5 ? "" : [
49
49
  "mwnf3",
@@ -56,16 +56,16 @@ function G(e) {
56
56
  var te = { class: "mwnf-standalone-sponsors" }, ne = {
57
57
  key: 0,
58
58
  class: "mwnf-standalone-sponsors__text"
59
- }, re = ["innerHTML"], ie = { key: 1 }, ae = ["innerHTML"], K = {
59
+ }, re = ["innerHTML"], ie = { key: 1 }, ae = ["innerHTML"], q = {
60
60
  key: 1,
61
61
  class: "mwnf-standalone-sponsors__title"
62
- }, q = {
62
+ }, J = {
63
63
  key: 2,
64
64
  class: "mwnf-standalone-sponsors__logos"
65
- }, J = {
65
+ }, oe = {
66
66
  key: 0,
67
67
  class: "mwnf-standalone-sponsors__note"
68
- }, oe = ["src", "alt"], se = ["innerHTML"], ce = ["href"], le = ["src", "alt"], ue = ["src", "alt"], de = {
68
+ }, se = ["src", "alt"], ce = ["innerHTML"], le = ["href"], ue = ["src", "alt"], de = ["src", "alt"], fe = {
69
69
  key: 3,
70
70
  class: "mwnf-standalone-sponsors__links"
71
71
  }, Y = {
@@ -75,18 +75,18 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
75
75
  default: () => []
76
76
  } },
77
77
  setup(e) {
78
- let t = e, { t: r } = L(), i = V(), a = c(() => t.columns.map((e, t) => ({
78
+ let t = e, { t: r } = R(), i = H(), a = c(() => t.columns.map((e, t) => ({
79
79
  key: t,
80
80
  width: e.width ?? null,
81
- lead: e.lead ? P(r(e.lead)) : "",
82
- text: e.text ? P(r(e.text)) : "",
81
+ lead: e.lead ? F(r(e.lead)) : "",
82
+ text: e.text ? F(r(e.text)) : "",
83
83
  break: !!e.break,
84
84
  title: e.title ? r(e.title) : "",
85
85
  logos: (e.logos ?? []).map((e) => ({
86
86
  src: i(e.src) ?? "",
87
87
  alt: e.alt ? r(e.alt) : "",
88
88
  href: e.href ?? "",
89
- note: e.note ? N(r(e.note)) : ""
89
+ note: e.note ? P(r(e.note)) : ""
90
90
  })),
91
91
  links: (e.links ?? []).map((e) => ({
92
92
  ...e,
@@ -109,14 +109,14 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
109
109
  innerHTML: e.text
110
110
  }, null, 8, ae)) : u("", !0)
111
111
  ])) : u("", !0),
112
- e.title ? (b(), d("p", K, w(e.title), 1)) : u("", !0),
113
- e.logos.length ? (b(), d("ul", q, [(b(!0), d(s, null, S(e.logos, (e) => (b(), d("li", { key: e.src }, [e.note ? (b(), d("details", J, [f("summary", null, [f("img", {
112
+ e.title ? (b(), d("p", q, w(e.title), 1)) : u("", !0),
113
+ e.logos.length ? (b(), d("ul", J, [(b(!0), d(s, null, S(e.logos, (e) => (b(), d("li", { key: e.src }, [e.note ? (b(), d("details", oe, [f("summary", null, [f("img", {
114
114
  src: e.src,
115
115
  alt: e.alt
116
- }, null, 8, oe)]), f("div", {
116
+ }, null, 8, se)]), f("div", {
117
117
  class: "mwnf-standalone-sponsors__note-body",
118
118
  innerHTML: e.note
119
- }, null, 8, se)])) : e.href ? (b(), d("a", {
119
+ }, null, 8, ce)])) : e.href ? (b(), d("a", {
120
120
  key: 1,
121
121
  href: e.href,
122
122
  target: "_blank",
@@ -124,12 +124,12 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
124
124
  }, [f("img", {
125
125
  src: e.src,
126
126
  alt: e.alt
127
- }, null, 8, le)], 8, ce)) : (b(), d("img", {
127
+ }, null, 8, ue)], 8, le)) : (b(), d("img", {
128
128
  key: 2,
129
129
  src: e.src,
130
130
  alt: e.alt
131
- }, null, 8, ue))]))), 128))])) : u("", !0),
132
- e.links.length ? (b(), d("ul", de, [(b(!0), d(s, null, S(e.links, (e) => (b(), d("li", { key: e.label }, [h(n, {
131
+ }, null, 8, de))]))), 128))])) : u("", !0),
132
+ e.links.length ? (b(), d("ul", fe, [(b(!0), d(s, null, S(e.links, (e) => (b(), d("li", { key: e.label }, [h(n, {
133
133
  to: e.to,
134
134
  href: e.href,
135
135
  external: !!e.external
@@ -143,13 +143,13 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
143
143
  ])]))), 128))])) : u("", !0)
144
144
  ], 4))), 128))]));
145
145
  }
146
- }, fe = { class: "mwnf-banner mwnf-standalone-home-banner" }, pe = ["src"], me = { class: "mwnf-standalone-home-banner__text" }, he = {
146
+ }, pe = { class: "mwnf-banner mwnf-standalone-home-banner" }, me = ["src"], he = { class: "mwnf-standalone-home-banner__text" }, ge = {
147
147
  key: 0,
148
148
  class: "mwnf-standalone-home-banner__title"
149
- }, ge = {
149
+ }, _e = {
150
150
  key: 1,
151
151
  class: "mwnf-standalone-home-banner__line"
152
- }, _e = ["src"], ve = {
152
+ }, ve = ["src"], ye = {
153
153
  __name: "Shell",
154
154
  props: {
155
155
  language: {
@@ -163,7 +163,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
163
163
  },
164
164
  emits: ["update:language"],
165
165
  setup(t, { emit: n }) {
166
- let r = t, i = n, { t: a, locale: s } = L(), m = R(), g = ee(), v = c(() => m.standalone ?? {}), y = c(() => m.navigation ?? {}), x = c(() => g.value === "home"), S = c(() => v.value.areas?.[g.value] ?? null), E = (t) => e(m.chrome, H(t, s.value)), D = c(() => {
166
+ let r = t, i = n, { t: a, locale: s } = R(), m = z(), g = ee(), v = c(() => m.standalone ?? {}), y = c(() => m.navigation ?? {}), x = c(() => g.value === "home"), S = c(() => v.value.areas?.[g.value] ?? null), E = (t) => e(m.chrome, U(t, s.value)), D = c(() => {
167
167
  let e = v.value.logo ?? {}, t = E(S.value?.logo ?? e.src);
168
168
  return t ? {
169
169
  logo: t,
@@ -196,13 +196,13 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
196
196
  },
197
197
  banner: null,
198
198
  ...D.value ? { brand: D.value } : {}
199
- })), z = (/* @__PURE__ */ new Date()).getFullYear(), V = c(() => v.value.copyright ? `${a(v.value.copyright)} ${z}` : ""), U = c(() => [
199
+ })), L = (/* @__PURE__ */ new Date()).getFullYear(), B = c(() => v.value.copyright ? `${a(v.value.copyright)} ${L}` : ""), H = c(() => [
200
200
  "mwnf-standalone",
201
201
  x.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
202
202
  S.value?.class ?? ""
203
203
  ]);
204
204
  return (e, t) => (b(), l(o, {
205
- class: _(U.value),
205
+ class: _(H.value),
206
206
  config: I.value,
207
207
  languages: v.value.languages === !1 ? [] : r.languages,
208
208
  language: r.language,
@@ -213,7 +213,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
213
213
  "header-subtitle": x.value ? "" : v.value.subheading ? T(a)(v.value.subheading) : "",
214
214
  "header-title-href": "#/",
215
215
  "banner-image": x.value && !P.value ? j.value : "",
216
- "footer-text": V.value || void 0,
216
+ "footer-text": B.value || void 0,
217
217
  "onUpdate:language": t[0] ||= (e) => i("update:language", e)
218
218
  }, p({
219
219
  default: O(() => [C(e.$slots, "default")]),
@@ -221,19 +221,19 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
221
221
  }, [
222
222
  N.value ? {
223
223
  name: "banner",
224
- fn: O(() => [h(B, {
224
+ fn: O(() => [h(V, {
225
225
  image: j.value,
226
226
  title: M.value
227
227
  }, null, 8, ["image", "title"])]),
228
228
  key: "0"
229
229
  } : P.value ? {
230
230
  name: "banner",
231
- fn: O(() => [f("section", fe, [j.value ? (b(), d("img", {
231
+ fn: O(() => [f("section", pe, [j.value ? (b(), d("img", {
232
232
  key: 0,
233
233
  class: "mwnf-banner__image",
234
234
  src: j.value,
235
235
  alt: ""
236
- }, null, 8, pe)) : u("", !0), f("div", me, [P.value.title ? (b(), d("h2", he, [f("i", null, w(P.value.title), 1)])) : u("", !0), P.value.text ? (b(), d("p", ge, [f("span", null, w(P.value.text), 1)])) : u("", !0)])])]),
236
+ }, null, 8, me)) : u("", !0), f("div", he, [P.value.title ? (b(), d("h2", ge, [f("i", null, w(P.value.title), 1)])) : u("", !0), P.value.text ? (b(), d("p", _e, [f("span", null, w(P.value.text), 1)])) : u("", !0)])])]),
237
237
  key: "1"
238
238
  } : void 0,
239
239
  k.value ? {
@@ -242,7 +242,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
242
242
  class: "mwnf-standalone__print-logo",
243
243
  src: k.value,
244
244
  alt: ""
245
- }, null, 8, _e)]),
245
+ }, null, 8, ve)]),
246
246
  key: "2"
247
247
  } : void 0,
248
248
  e.$slots.sponsors ? {
@@ -271,16 +271,16 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
271
271
  "footer-text"
272
272
  ]));
273
273
  }
274
- }, ye = {
274
+ }, be = {
275
275
  key: 0,
276
276
  class: "mwnf-standalone-highlight"
277
- }, be = ["src", "alt"], xe = {
277
+ }, xe = ["src", "alt"], Se = {
278
278
  key: 1,
279
279
  class: "mwnf-standalone-highlight__heading"
280
- }, Se = { class: "mwnf-standalone-highlight__lines" }, Ce = ["innerHTML"], we = {
280
+ }, Ce = { class: "mwnf-standalone-highlight__lines" }, we = ["innerHTML"], Te = {
281
281
  key: 2,
282
282
  class: "mwnf-standalone-highlight__place"
283
- }, Te = {
283
+ }, Ee = {
284
284
  key: 3,
285
285
  class: "mwnf-standalone-highlight__action"
286
286
  }, X = {
@@ -320,20 +320,20 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
320
320
  }
321
321
  },
322
322
  setup(e) {
323
- let t = e, { t: r } = L(), i = (e) => M(Array.isArray(e) ? e.join("; ") : e), a = c(() => {
323
+ let t = e, { t: r } = R(), i = (e) => N(Array.isArray(e) ? e.join("; ") : e), a = c(() => {
324
324
  let e = t.text ?? {}, n = [], a = i(e.name ?? t.record?.internal_name ?? "");
325
- a && n.push(P(a));
325
+ a && n.push(F(a));
326
326
  let o = i(e.alternate_name);
327
- o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${P(o)}`);
327
+ o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${F(o)}`);
328
328
  let s = [i(e.dates), i(e.dynasty)].filter(Boolean).join(", ");
329
- s && n.push(P(s));
329
+ s && n.push(F(s));
330
330
  for (let t of ["materials", "holder"]) {
331
331
  let r = i(e[t]);
332
- r && n.push(P(r));
332
+ r && n.push(F(r));
333
333
  }
334
334
  return n;
335
- }), o = c(() => [i(t.text?.location), t.country].filter(Boolean).join(", ")), p = c(() => t.picture || (t.record?.images?.[0]?.url ?? "")), g = c(() => F(String(t.text?.name ?? t.record?.internal_name ?? "")));
336
- return (t, i) => e.record ? (b(), d("div", ye, [
335
+ }), o = c(() => [i(t.text?.location), t.country].filter(Boolean).join(", ")), p = c(() => t.picture || (t.record?.images?.[0]?.url ?? "")), g = c(() => I(String(t.text?.name ?? t.record?.internal_name ?? "")));
336
+ return (t, i) => e.record ? (b(), d("div", be, [
337
337
  p.value ? (b(), l(n, {
338
338
  key: 0,
339
339
  class: "mwnf-standalone-highlight__media",
@@ -343,25 +343,25 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
343
343
  class: "mwnf-standalone-highlight__image",
344
344
  src: p.value,
345
345
  alt: g.value
346
- }, null, 8, be)]),
346
+ }, null, 8, xe)]),
347
347
  _: 1
348
348
  }, 8, ["to"])) : u("", !0),
349
- e.heading ? (b(), d("p", xe, [f("strong", null, w(T(r)(e.heading)), 1)])) : u("", !0),
350
- f("p", Se, [(b(!0), d(s, null, S(a.value, (e, t) => (b(), d(s, { key: t }, [f("span", { innerHTML: e }, null, 8, Ce), i[0] ||= f("br", null, null, -1)], 64))), 128))]),
351
- o.value ? (b(), d("p", we, w(T(F)(o.value)), 1)) : u("", !0),
352
- e.action ? (b(), d("p", Te, [h(n, { to: e.to }, {
349
+ e.heading ? (b(), d("p", Se, [f("strong", null, w(T(r)(e.heading)), 1)])) : u("", !0),
350
+ f("p", Ce, [(b(!0), d(s, null, S(a.value, (e, t) => (b(), d(s, { key: t }, [f("span", { innerHTML: e }, null, 8, we), i[0] ||= f("br", null, null, -1)], 64))), 128))]),
351
+ o.value ? (b(), d("p", Te, w(T(I)(o.value)), 1)) : u("", !0),
352
+ e.action ? (b(), d("p", Ee, [h(n, { to: e.to }, {
353
353
  default: O(() => [m(w(T(r)(e.action)), 1)]),
354
354
  _: 1
355
355
  }, 8, ["to"])])) : u("", !0)
356
356
  ])) : u("", !0);
357
357
  }
358
- }, Ee = {
358
+ }, De = {
359
359
  key: 0,
360
360
  class: "mwnf-standalone-tiles"
361
- }, De = {
361
+ }, Oe = {
362
362
  key: 0,
363
363
  class: "mwnf-standalone-tiles__caption"
364
- }, Oe = { class: "mwnf-standalone-tiles__grid" }, ke = ["src", "alt"], Ae = {
364
+ }, ke = { class: "mwnf-standalone-tiles__grid" }, Ae = ["src", "alt"], je = {
365
365
  key: 0,
366
366
  class: "mwnf-standalone-tiles__label"
367
367
  }, Z = {
@@ -377,12 +377,12 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
377
377
  }
378
378
  },
379
379
  setup(e) {
380
- let t = e, { t: r } = L(), i = V(), a = c(() => t.items.map((e) => ({
380
+ let t = e, { t: r } = R(), i = H(), a = c(() => t.items.map((e) => ({
381
381
  ...e,
382
382
  image: i(e.image) ?? "",
383
- label: e.text ? F(e.text) : e.label ? r(e.label) : ""
383
+ label: e.text ? I(e.text) : e.label ? r(e.label) : ""
384
384
  })));
385
- return (t, i) => a.value.length ? (b(), d("section", Ee, [e.caption ? (b(), d("p", De, w(T(r)(e.caption)), 1)) : u("", !0), f("ul", Oe, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("li", {
385
+ return (t, i) => a.value.length ? (b(), d("section", De, [e.caption ? (b(), d("p", Oe, w(T(r)(e.caption)), 1)) : u("", !0), f("ul", ke, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("li", {
386
386
  key: e.image,
387
387
  class: "mwnf-standalone-tiles__tile"
388
388
  }, [h(n, {
@@ -394,33 +394,33 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
394
394
  class: "mwnf-standalone-tiles__image",
395
395
  src: e.image,
396
396
  alt: e.label
397
- }, null, 8, ke), e.label ? (b(), d("span", Ae, w(e.label), 1)) : u("", !0)]),
397
+ }, null, 8, Ae), e.label ? (b(), d("span", je, w(e.label), 1)) : u("", !0)]),
398
398
  _: 2
399
399
  }, 1032, ["to", "href"])]))), 128))])])) : u("", !0);
400
400
  }
401
- }, je = { class: "mwnf-standalone-home" }, Me = {
401
+ }, Me = { class: "mwnf-standalone-home" }, Ne = {
402
402
  key: 0,
403
403
  class: "mwnf-standalone-home__links"
404
- }, Ne = { key: 1 }, Pe = {
404
+ }, Pe = { key: 1 }, Fe = {
405
405
  __name: "Home",
406
406
  props: { home: {
407
407
  type: Object,
408
408
  default: null
409
409
  } },
410
410
  setup(e) {
411
- let t = e, { t: r, locale: i } = L(), a = R(), o = c(() => t.home ?? a.standalone?.home ?? {}), f = c(() => (o.value.links ?? []).map((e) => ({
411
+ let t = e, { t: r, locale: i } = R(), a = z(), o = c(() => t.home ?? a.standalone?.home ?? {}), f = c(() => (o.value.links ?? []).map((e) => ({
412
412
  ...e,
413
413
  label: r(e.label),
414
414
  prefix: e.prefix ? r(e.prefix) : "",
415
415
  title: e.title ? r(e.title) : void 0
416
- }))), p = c(() => o.value.highlight ?? null), g = I();
416
+ }))), p = c(() => o.value.highlight ?? null), g = L();
417
417
  p.value?.list?.length && (A(["items", "countries"]), D(i, (e) => {
418
418
  g.loadTranslations("items", e), g.loadTranslations("countries", e);
419
419
  }, { immediate: !0 }));
420
420
  let v = k("items", "backward_compatibility"), y = c(() => {
421
- let e = p.value?.list ?? [], t = e.indexOf(W(e));
421
+ let e = p.value?.list ?? [], t = e.indexOf(G(e));
422
422
  for (let n = 0; t >= 0 && n < e.length; n++) {
423
- let r = v.value.get(G(e[(t + n) % e.length]));
423
+ let r = v.value.get(K(e[(t + n) % e.length]));
424
424
  if (r) return r;
425
425
  }
426
426
  return null;
@@ -430,15 +430,15 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
430
430
  }), E = c(() => y.value ? {
431
431
  name: p.value.route ?? "item",
432
432
  params: { id: y.value.id }
433
- } : null), j = V(), M = c(() => {
433
+ } : null), j = H(), M = c(() => {
434
434
  let e = p.value?.pictures ?? [];
435
- return e.length ? j(W(e)) ?? "" : "";
435
+ return e.length ? j(G(e)) ?? "" : "";
436
436
  }), N = c(() => {
437
437
  let e = o.value.tiles?.items;
438
438
  return (typeof e == "function" ? e() : e) ?? [];
439
439
  });
440
- return (e, t) => (b(), d("div", je, [
441
- f.value.length ? (b(), d("ul", Me, [(b(!0), d(s, null, S(f.value, (e) => (b(), d("li", {
440
+ return (e, t) => (b(), d("div", Me, [
441
+ f.value.length ? (b(), d("ul", Ne, [(b(!0), d(s, null, S(f.value, (e) => (b(), d("li", {
442
442
  key: e.label,
443
443
  class: _({ "mwnf-standalone-home__link--gap": e.gap })
444
444
  }, [h(n, {
@@ -447,7 +447,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
447
447
  external: !!e.external,
448
448
  title: e.title
449
449
  }, {
450
- default: O(() => [e.prefix ? (b(), d(s, { key: 0 }, [m(w(`${e.prefix} `), 1)], 64)) : u("", !0), e.italic ? (b(), d("i", Ne, w(e.label), 1)) : (b(), d(s, { key: 2 }, [m(w(e.label), 1)], 64))]),
450
+ default: O(() => [e.prefix ? (b(), d(s, { key: 0 }, [m(w(`${e.prefix} `), 1)], 64)) : u("", !0), e.italic ? (b(), d("i", Pe, w(e.label), 1)) : (b(), d(s, { key: 2 }, [m(w(e.label), 1)], 64))]),
451
451
  _: 2
452
452
  }, 1032, [
453
453
  "to",
@@ -483,10 +483,10 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
483
483
  C(e.$slots, "default")
484
484
  ]));
485
485
  }
486
- }, Fe = { class: "mwnf-standalone-related" }, Ie = { class: "mwnf-standalone-related__heading" }, Le = { class: "mwnf-standalone-related__group-heading" }, Re = { class: "mwnf-standalone-related__thumbs" }, ze = ["src", "alt"], Be = ["innerHTML"], Ve = {
486
+ }, Ie = { class: "mwnf-standalone-related" }, Le = { class: "mwnf-standalone-related__heading" }, Re = { class: "mwnf-standalone-related__group-heading" }, ze = { class: "mwnf-standalone-related__thumbs" }, Be = ["src", "alt"], Ve = ["innerHTML"], He = {
487
487
  key: 0,
488
488
  class: "mwnf-standalone-related__download"
489
- }, He = { class: "mwnf-standalone-related__download-heading" }, Q = {
489
+ }, Ue = { class: "mwnf-standalone-related__download-heading" }, Q = {
490
490
  __name: "RelatedContent",
491
491
  props: {
492
492
  heading: {
@@ -507,19 +507,19 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
507
507
  }
508
508
  },
509
509
  setup(e) {
510
- let t = e, { t: r } = L(), i = c(() => t.groups.map((e) => ({
510
+ let t = e, { t: r } = R(), i = c(() => t.groups.map((e) => ({
511
511
  heading: r(e.heading),
512
512
  rows: t.records.filter((t) => !e.type || t.badge === e.type)
513
513
  })).filter((e) => e.rows.length));
514
514
  function a() {
515
515
  window.print();
516
516
  }
517
- return (t, o) => (b(), d("aside", Fe, [
518
- f("p", Ie, [f("strong", null, w(T(r)(e.heading)), 1)]),
517
+ return (t, o) => (b(), d("aside", Ie, [
518
+ f("p", Le, [f("strong", null, w(T(r)(e.heading)), 1)]),
519
519
  (b(!0), d(s, null, S(i.value, (e) => (b(), d("div", {
520
520
  key: e.heading,
521
521
  class: "mwnf-standalone-related__group"
522
- }, [f("p", Le, w(e.heading), 1), f("ul", Re, [(b(!0), d(s, null, S(e.rows, (e) => (b(), d("li", { key: e.id }, [h(n, {
522
+ }, [f("p", Re, w(e.heading), 1), f("ul", ze, [(b(!0), d(s, null, S(e.rows, (e) => (b(), d("li", { key: e.id }, [h(n, {
523
523
  to: e.to,
524
524
  title: e.imageAlt
525
525
  }, {
@@ -527,24 +527,24 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
527
527
  key: 0,
528
528
  src: e.image,
529
529
  alt: e.imageAlt
530
- }, null, 8, ze)) : (b(), d("span", {
530
+ }, null, 8, Be)) : (b(), d("span", {
531
531
  key: 1,
532
532
  innerHTML: e.name
533
- }, null, 8, Be))]),
533
+ }, null, 8, Ve))]),
534
534
  _: 2
535
535
  }, 1032, ["to", "title"])]))), 128))])]))), 128)),
536
536
  C(t.$slots, "default"),
537
- e.download ? (b(), d("div", Ve, [f("p", He, w(T(r)(e.download.heading)), 1), f("button", {
537
+ e.download ? (b(), d("div", He, [f("p", Ue, w(T(r)(e.download.heading)), 1), f("button", {
538
538
  type: "button",
539
539
  class: "mwnf-standalone-related__print",
540
540
  onClick: a
541
541
  }, w(T(r)(e.download.print)), 1)])) : u("", !0)
542
542
  ]));
543
543
  }
544
- }, Ue = { class: "mwnf-standalone-item__top" }, We = { class: "mwnf-standalone-item__left" }, Ge = {
544
+ }, We = { class: "mwnf-standalone-item__top" }, Ge = { class: "mwnf-standalone-item__left" }, Ke = {
545
545
  key: 0,
546
546
  class: "mwnf-standalone-item__back"
547
- }, Ke = {
547
+ }, qe = {
548
548
  __name: "ItemSheet",
549
549
  props: {
550
550
  spec: {
@@ -565,7 +565,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
565
565
  }
566
566
  },
567
567
  setup(e) {
568
- let o = e, { t: _ } = L(), y = E(), x = c(() => ({
568
+ let o = e, { t: _ } = R(), y = E(), x = c(() => ({
569
569
  ...o.spec,
570
570
  media: () => []
571
571
  }));
@@ -578,8 +578,8 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
578
578
  text: t,
579
579
  language: n
580
580
  });
581
- let r = F(String(t?.name ?? e?.internal_name ?? ""));
582
- return (e?.images ?? []).map((e) => ({
581
+ let r = I(String(t?.name ?? e?.internal_name ?? ""));
582
+ return M(e?.images, n).map((e) => ({
583
583
  url: e.url,
584
584
  alt: e.captions?.[n] ?? r,
585
585
  caption: e.captions?.[n] ?? "",
@@ -595,8 +595,8 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
595
595
  "related",
596
596
  "sidebar",
597
597
  "aside"
598
- ]), M = c(() => Object.keys(y).filter((e) => !A.has(e)));
599
- function N() {
598
+ ]), N = c(() => Object.keys(y).filter((e) => !A.has(e)));
599
+ function P() {
600
600
  window.history.back();
601
601
  }
602
602
  return (i, o) => (b(), l(a, {
@@ -604,7 +604,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
604
604
  id: e.id,
605
605
  class: "mwnf-standalone-item"
606
606
  }, p({
607
- header: O(({ languages: e, language: n, select: r }) => [f("div", Ue, [h(t, {
607
+ header: O(({ languages: e, language: n, select: r }) => [f("div", We, [h(t, {
608
608
  languages: e,
609
609
  language: n,
610
610
  onSelect: r
@@ -613,11 +613,11 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
613
613
  "language",
614
614
  "onSelect"
615
615
  ])])]),
616
- "before-sheet": O((e) => [f("div", We, [k.value.length ? (b(), d("p", Ge, [(b(!0), d(s, null, S(k.value, (e) => (b(), d(s, { key: e.label }, [e.history ? (b(), d("button", {
616
+ "before-sheet": O((e) => [f("div", Ge, [k.value.length ? (b(), d("p", Ke, [(b(!0), d(s, null, S(k.value, (e) => (b(), d(s, { key: e.label }, [e.history ? (b(), d("button", {
617
617
  key: 0,
618
618
  type: "button",
619
619
  class: "mwnf-standalone-item__back-link",
620
- onClick: N
620
+ onClick: P
621
621
  }, w(e.label), 1)) : (b(), l(n, {
622
622
  key: 1,
623
623
  class: "mwnf-standalone-item__back-link",
@@ -642,18 +642,18 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
642
642
  "download"
643
643
  ])]),
644
644
  _: 2
645
- }, [S(M.value, (e) => ({
645
+ }, [S(N.value, (e) => ({
646
646
  name: e,
647
647
  fn: O((t) => [C(i.$slots, e, v(g(t)))])
648
648
  }))]), 1032, ["spec", "id"]));
649
649
  }
650
- }, qe = ["innerHTML"], Je = {
650
+ }, Je = ["innerHTML"], $ = {
651
651
  key: 0,
652
652
  class: "mwnf-standalone-page__link"
653
- }, $ = {
653
+ }, Ye = {
654
654
  key: 1,
655
655
  class: "mwnf-standalone-page__print"
656
- }, Ye = {
656
+ }, Xe = {
657
657
  __name: "TextPage",
658
658
  props: {
659
659
  body: {
@@ -674,7 +674,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
674
674
  }
675
675
  },
676
676
  setup(e) {
677
- let t = e, { t: r } = L(), i = c(() => N(r(t.body)));
677
+ let t = e, { t: r } = R(), i = c(() => P(r(t.body)));
678
678
  function a() {
679
679
  window.print();
680
680
  }
@@ -682,25 +682,25 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
682
682
  f("div", {
683
683
  class: "mwnf-standalone-page__body",
684
684
  innerHTML: i.value
685
- }, null, 8, qe),
686
- e.link ? (b(), d("p", Je, [h(n, {
685
+ }, null, 8, Je),
686
+ e.link ? (b(), d("p", $, [h(n, {
687
687
  to: e.link.to,
688
688
  href: e.link.href
689
689
  }, {
690
690
  default: O(() => [f("strong", null, w(e.link.text ?? T(r)(e.link.label)), 1)]),
691
691
  _: 1
692
692
  }, 8, ["to", "href"])])) : u("", !0),
693
- e.print ? (b(), d("p", $, [f("button", {
693
+ e.print ? (b(), d("p", Ye, [f("button", {
694
694
  type: "button",
695
695
  class: "mwnf-standalone-page__print-button",
696
696
  onClick: a
697
697
  }, w(T(r)(e.print)), 1)])) : u("", !0)
698
698
  ], 2));
699
699
  }
700
- }, Xe = {
700
+ }, Ze = {
701
701
  key: 0,
702
702
  class: "mwnf-standalone-subnav"
703
- }, Ze = { class: "mwnf-standalone-subnav__tabs" }, Qe = {
703
+ }, Qe = { class: "mwnf-standalone-subnav__tabs" }, $e = {
704
704
  __name: "SubNav",
705
705
  props: {
706
706
  tabs: {
@@ -713,11 +713,11 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
713
713
  }
714
714
  },
715
715
  setup(e) {
716
- let t = e, { t: r } = L(), i = c(() => t.tabs.map((e) => ({
716
+ let t = e, { t: r } = R(), i = c(() => t.tabs.map((e) => ({
717
717
  ...e,
718
718
  label: r(e.label)
719
719
  })));
720
- return (t, a) => i.value.length || e.aside ? (b(), d("nav", Xe, [f("ul", Ze, [(b(!0), d(s, null, S(i.value, (e) => (b(), d("li", { key: e.label }, [h(n, {
720
+ return (t, a) => i.value.length || e.aside ? (b(), d("nav", Ze, [f("ul", Qe, [(b(!0), d(s, null, S(i.value, (e) => (b(), d("li", { key: e.label }, [h(n, {
721
721
  to: e.to,
722
722
  href: e.href,
723
723
  class: _(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
@@ -740,10 +740,10 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
740
740
  _: 1
741
741
  }, 8, ["to", "href"])) : u("", !0)])) : u("", !0);
742
742
  }
743
- }, $e = ["disabled", "aria-label"], et = { class: "mwnf-standalone-slider__track" }, tt = ["src", "alt"], nt = {
743
+ }, et = ["disabled", "aria-label"], tt = { class: "mwnf-standalone-slider__track" }, nt = ["src", "alt"], rt = {
744
744
  key: 0,
745
745
  class: "mwnf-standalone-slider__label"
746
- }, rt = ["disabled", "aria-label"], it = {
746
+ }, it = ["disabled", "aria-label"], at = {
747
747
  __name: "Slider",
748
748
  props: {
749
749
  slides: {
@@ -764,7 +764,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
764
764
  }
765
765
  },
766
766
  setup(e) {
767
- let t = e, { t: r } = L(), i = V(), a = x(0), o = c(() => Math.max(0, t.slides.length - t.visible)), l = c(() => t.slides.slice(a.value, a.value + t.visible).map((e) => ({
767
+ let t = e, { t: r } = R(), i = H(), a = x(0), o = c(() => Math.max(0, t.slides.length - t.visible)), l = c(() => t.slides.slice(a.value, a.value + t.visible).map((e) => ({
768
768
  ...e,
769
769
  image: i(e.image) ?? "",
770
770
  label: e.label ? r(e.label) : ""
@@ -780,8 +780,8 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
780
780
  disabled: a.value === 0,
781
781
  "aria-label": T(r)(e.previousLabel),
782
782
  onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
783
- }, "‹", 8, $e),
784
- f("ul", et, [(b(!0), d(s, null, S(l.value, (e) => (b(), d("li", {
783
+ }, "‹", 8, et),
784
+ f("ul", tt, [(b(!0), d(s, null, S(l.value, (e) => (b(), d("li", {
785
785
  key: e.image,
786
786
  class: "mwnf-standalone-slider__slide"
787
787
  }, [h(n, {
@@ -791,7 +791,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
791
791
  default: O(() => [f("img", {
792
792
  src: e.image,
793
793
  alt: e.label
794
- }, null, 8, tt), e.label ? (b(), d("span", nt, w(e.label), 1)) : u("", !0)]),
794
+ }, null, 8, nt), e.label ? (b(), d("span", rt, w(e.label), 1)) : u("", !0)]),
795
795
  _: 2
796
796
  }, 1032, ["to", "href"])]))), 128))]),
797
797
  f("button", {
@@ -800,9 +800,9 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
800
800
  disabled: a.value >= o.value,
801
801
  "aria-label": T(r)(e.nextLabel),
802
802
  onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
803
- }, "›", 8, rt)
803
+ }, "›", 8, it)
804
804
  ], 4)) : u("", !0);
805
805
  }
806
806
  };
807
807
  //#endregion
808
- export { Q as RelatedContent, B as StandaloneBanner, Pe as StandaloneHome, Ke as StandaloneItemSheet, ve as StandaloneShell, it as StandaloneSlider, Y as StandaloneSponsors, Qe as StandaloneSubNav, Ye as StandaloneTextPage, Z as StandaloneTileGrid, X as TodayHighlight, H as byLanguage, U as dayOfYear, G as legacyHomeItemKey, W as pickForDay };
808
+ export { Q as RelatedContent, V as StandaloneBanner, Fe as StandaloneHome, qe as StandaloneItemSheet, ye as StandaloneShell, at as StandaloneSlider, Y as StandaloneSponsors, $e as StandaloneSubNav, Xe as StandaloneTextPage, Z as StandaloneTileGrid, X as TodayHighlight, U as byLanguage, W as dayOfYear, K as legacyHomeItemKey, G as pickForDay };
@@ -1,4 +1,4 @@
1
- import { A as e } from "./data-CGFEbGab.js";
1
+ import { A as e } from "./data-d30zAska.js";
2
2
  //#region src/dxa/exhibition/themeSpecs.js
3
3
  var { aboutTheme: t, owningTheme: n, subIndexOf: r, themeRouteId: i, themeTree: a } = e;
4
4
  function o(e) {
package/dist/views.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./FeaturedRecord-DJfyvfqt.js";
2
2
  import { c as t } from "./TimelineEventList-gsoc-SBx.js";
3
3
  import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./TimelineResultsView-C2-TnM71.js";
4
- import { t as l } from "./RecordView-CdKx9tFy.js";
4
+ import { t as l } from "./RecordView-BvKoAB2j.js";
5
5
  import { computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createVNode as m, mergeProps as h, normalizeClass as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b } from "vue";
6
6
  import { I18nText as x, renderInline as S, renderPlain as C, useDataPackage as w, useFeaturedRecord as T, useI18n as E, useSiteConfig as D } from "@museumwnf/viewer-core";
7
7
  //#region src/views/HomeView.vue