@museumwnf/viewer-layout 3.10.0 → 3.11.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,7 +1,7 @@
1
- import { r as e } from "./chrome-Co3f_Shw.js";
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-BvKoAB2j.js";
4
- import { t as o } from "./SiteShell-DmKiH3jM.js";
1
+ import { r as e } from "./chrome-DNsZQXrL.js";
2
+ import { s as t, t as n, u as r } from "./MediaGallery-CHhf9xUZ.js";
3
+ import { n as i, t as a } from "./RecordView-C23v0iYh.js";
4
+ import { t as o } from "./SiteShell-DPdTxtJ5.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
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
@@ -75,22 +75,22 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
75
75
  default: () => []
76
76
  } },
77
77
  setup(e) {
78
- let t = e, { t: r } = R(), i = H(), a = c(() => t.columns.map((e, t) => ({
78
+ let t = e, { t: n } = R(), i = H(), a = c(() => t.columns.map((e, t) => ({
79
79
  key: t,
80
80
  width: e.width ?? null,
81
- lead: e.lead ? F(r(e.lead)) : "",
82
- text: e.text ? F(r(e.text)) : "",
81
+ lead: e.lead ? F(n(e.lead)) : "",
82
+ text: e.text ? F(n(e.text)) : "",
83
83
  break: !!e.break,
84
- title: e.title ? r(e.title) : "",
84
+ title: e.title ? n(e.title) : "",
85
85
  logos: (e.logos ?? []).map((e) => ({
86
86
  src: i(e.src) ?? "",
87
- alt: e.alt ? r(e.alt) : "",
87
+ alt: e.alt ? n(e.alt) : "",
88
88
  href: e.href ?? "",
89
- note: e.note ? P(r(e.note)) : ""
89
+ note: e.note ? P(n(e.note)) : ""
90
90
  })),
91
91
  links: (e.links ?? []).map((e) => ({
92
92
  ...e,
93
- label: r(e.label)
93
+ label: n(e.label)
94
94
  }))
95
95
  })));
96
96
  return (e, t) => (b(), d("div", te, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("div", {
@@ -129,7 +129,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
129
129
  src: e.src,
130
130
  alt: e.alt
131
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, {
132
+ e.links.length ? (b(), d("ul", fe, [(b(!0), d(s, null, S(e.links, (e) => (b(), d("li", { key: e.label }, [h(r, {
133
133
  to: e.to,
134
134
  href: e.href,
135
135
  external: !!e.external
@@ -320,21 +320,21 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
320
320
  }
321
321
  },
322
322
  setup(e) {
323
- let t = e, { t: r } = R(), i = (e) => N(Array.isArray(e) ? e.join("; ") : e), a = c(() => {
324
- let e = t.text ?? {}, n = [], a = i(e.name ?? t.record?.internal_name ?? "");
325
- a && n.push(F(a));
323
+ let t = e, { t: n } = R(), i = (e) => N(Array.isArray(e) ? e.join("; ") : e), a = c(() => {
324
+ let e = t.text ?? {}, r = [], a = i(e.name ?? t.record?.internal_name ?? "");
325
+ a && r.push(F(a));
326
326
  let o = i(e.alternate_name);
327
- o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${F(o)}`);
327
+ o && r.push(`${t.alsoKnownAs ? `${n(t.alsoKnownAs)} ` : ""}${F(o)}`);
328
328
  let s = [i(e.dates), i(e.dynasty)].filter(Boolean).join(", ");
329
- s && n.push(F(s));
329
+ s && r.push(F(s));
330
330
  for (let t of ["materials", "holder"]) {
331
- let r = i(e[t]);
332
- r && n.push(F(r));
331
+ let n = i(e[t]);
332
+ n && r.push(F(n));
333
333
  }
334
- return n;
334
+ return r;
335
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
336
  return (t, i) => e.record ? (b(), d("div", be, [
337
- p.value ? (b(), l(n, {
337
+ p.value ? (b(), l(r, {
338
338
  key: 0,
339
339
  class: "mwnf-standalone-highlight__media",
340
340
  to: e.to
@@ -346,11 +346,11 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
346
346
  }, null, 8, xe)]),
347
347
  _: 1
348
348
  }, 8, ["to"])) : u("", !0),
349
- e.heading ? (b(), d("p", Se, [f("strong", null, w(T(r)(e.heading)), 1)])) : u("", !0),
349
+ e.heading ? (b(), d("p", Se, [f("strong", null, w(T(n)(e.heading)), 1)])) : u("", !0),
350
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
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
- default: O(() => [m(w(T(r)(e.action)), 1)]),
352
+ e.action ? (b(), d("p", Ee, [h(r, { to: e.to }, {
353
+ default: O(() => [m(w(T(n)(e.action)), 1)]),
354
354
  _: 1
355
355
  }, 8, ["to"])])) : u("", !0)
356
356
  ])) : u("", !0);
@@ -377,15 +377,15 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
377
377
  }
378
378
  },
379
379
  setup(e) {
380
- let t = e, { t: r } = R(), i = H(), a = c(() => t.items.map((e) => ({
380
+ let t = e, { t: n } = R(), i = H(), a = c(() => t.items.map((e) => ({
381
381
  ...e,
382
382
  image: i(e.image) ?? "",
383
- label: e.text ? I(e.text) : e.label ? r(e.label) : ""
383
+ label: e.text ? I(e.text) : e.label ? n(e.label) : ""
384
384
  })));
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", {
385
+ return (t, i) => a.value.length ? (b(), d("section", De, [e.caption ? (b(), d("p", Oe, w(T(n)(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
- }, [h(n, {
388
+ }, [h(r, {
389
389
  to: e.to,
390
390
  href: e.href,
391
391
  class: "mwnf-standalone-tiles__link"
@@ -408,11 +408,11 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
408
408
  default: null
409
409
  } },
410
410
  setup(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) => ({
411
+ let t = e, { t: n, locale: i } = R(), a = z(), o = c(() => t.home ?? a.standalone?.home ?? {}), f = c(() => (o.value.links ?? []).map((e) => ({
412
412
  ...e,
413
- label: r(e.label),
414
- prefix: e.prefix ? r(e.prefix) : "",
415
- title: e.title ? r(e.title) : void 0
413
+ label: n(e.label),
414
+ prefix: e.prefix ? n(e.prefix) : "",
415
+ title: e.title ? n(e.title) : void 0
416
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);
@@ -441,7 +441,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
441
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
- }, [h(n, {
444
+ }, [h(r, {
445
445
  to: e.to,
446
446
  href: e.href,
447
447
  external: !!e.external,
@@ -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 } = R(), i = c(() => t.groups.map((e) => ({
511
- heading: r(e.heading),
510
+ let t = e, { t: n } = R(), i = c(() => t.groups.map((e) => ({
511
+ heading: n(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
517
  return (t, o) => (b(), d("aside", Ie, [
518
- f("p", Le, [f("strong", null, w(T(r)(e.heading)), 1)]),
518
+ f("p", Le, [f("strong", null, w(T(n)(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", 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, {
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(r, {
523
523
  to: e.to,
524
524
  title: e.imageAlt
525
525
  }, {
@@ -534,11 +534,11 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
534
534
  _: 2
535
535
  }, 1032, ["to", "title"])]))), 128))])]))), 128)),
536
536
  C(t.$slots, "default"),
537
- e.download ? (b(), d("div", He, [f("p", Ue, w(T(r)(e.download.heading)), 1), f("button", {
537
+ e.download ? (b(), d("div", He, [f("p", Ue, w(T(n)(e.download.heading)), 1), f("button", {
538
538
  type: "button",
539
539
  class: "mwnf-standalone-related__print",
540
540
  onClick: a
541
- }, w(T(r)(e.download.print)), 1)])) : u("", !0)
541
+ }, w(T(n)(e.download.print)), 1)])) : u("", !0)
542
542
  ]));
543
543
  }
544
544
  }, We = { class: "mwnf-standalone-item__top" }, Ge = { class: "mwnf-standalone-item__left" }, Ke = {
@@ -618,7 +618,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
618
618
  type: "button",
619
619
  class: "mwnf-standalone-item__back-link",
620
620
  onClick: P
621
- }, w(e.label), 1)) : (b(), l(n, {
621
+ }, w(e.label), 1)) : (b(), l(r, {
622
622
  key: 1,
623
623
  class: "mwnf-standalone-item__back-link",
624
624
  to: e.to,
@@ -626,7 +626,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
626
626
  }, {
627
627
  default: O(() => [m(w(e.label), 1)]),
628
628
  _: 2
629
- }, 1032, ["to", "href"]))], 64))), 128))])) : u("", !0), h(r, { images: T(e) }, null, 8, ["images"])]), C(i.$slots, "before-sheet", v(g(e)))]),
629
+ }, 1032, ["to", "href"]))], 64))), 128))])) : u("", !0), h(n, { images: T(e) }, null, 8, ["images"])]), C(i.$slots, "before-sheet", v(g(e)))]),
630
630
  related: O((t) => [h(Q, {
631
631
  heading: e.related.heading ?? "record.related.title",
632
632
  records: t.records,
@@ -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 } = R(), i = c(() => P(r(t.body)));
677
+ let t = e, { t: n } = R(), i = c(() => P(n(t.body)));
678
678
  function a() {
679
679
  window.print();
680
680
  }
@@ -683,18 +683,18 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
683
683
  class: "mwnf-standalone-page__body",
684
684
  innerHTML: i.value
685
685
  }, null, 8, Je),
686
- e.link ? (b(), d("p", $, [h(n, {
686
+ e.link ? (b(), d("p", $, [h(r, {
687
687
  to: e.link.to,
688
688
  href: e.link.href
689
689
  }, {
690
- default: O(() => [f("strong", null, w(e.link.text ?? T(r)(e.link.label)), 1)]),
690
+ default: O(() => [f("strong", null, w(e.link.text ?? T(n)(e.link.label)), 1)]),
691
691
  _: 1
692
692
  }, 8, ["to", "href"])])) : u("", !0),
693
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
- }, w(T(r)(e.print)), 1)])) : u("", !0)
697
+ }, w(T(n)(e.print)), 1)])) : u("", !0)
698
698
  ], 2));
699
699
  }
700
700
  }, Ze = {
@@ -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 } = R(), i = c(() => t.tabs.map((e) => ({
716
+ let t = e, { t: n } = R(), i = c(() => t.tabs.map((e) => ({
717
717
  ...e,
718
- label: r(e.label)
718
+ label: n(e.label)
719
719
  })));
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, {
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(r, {
721
721
  to: e.to,
722
722
  href: e.href,
723
723
  class: _(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
@@ -730,13 +730,13 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
730
730
  "href",
731
731
  "class",
732
732
  "aria-current"
733
- ])]))), 128))]), e.aside ? (b(), l(n, {
733
+ ])]))), 128))]), e.aside ? (b(), l(r, {
734
734
  key: 0,
735
735
  to: e.aside.to,
736
736
  href: e.aside.href,
737
737
  class: "mwnf-standalone-subnav__aside"
738
738
  }, {
739
- default: O(() => [m(w(T(r)(e.aside.label)), 1)]),
739
+ default: O(() => [m(w(T(n)(e.aside.label)), 1)]),
740
740
  _: 1
741
741
  }, 8, ["to", "href"])) : u("", !0)])) : u("", !0);
742
742
  }
@@ -764,10 +764,10 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
764
764
  }
765
765
  },
766
766
  setup(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) => ({
767
+ let t = e, { t: n } = 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
- label: e.label ? r(e.label) : ""
770
+ label: e.label ? n(e.label) : ""
771
771
  })));
772
772
  return (t, i) => e.slides.length ? (b(), d("div", {
773
773
  key: 0,
@@ -778,13 +778,13 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
778
778
  type: "button",
779
779
  class: "mwnf-standalone-slider__button",
780
780
  disabled: a.value === 0,
781
- "aria-label": T(r)(e.previousLabel),
781
+ "aria-label": T(n)(e.previousLabel),
782
782
  onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
783
783
  }, "‹", 8, et),
784
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
- }, [h(n, {
787
+ }, [h(r, {
788
788
  to: e.to,
789
789
  href: e.href
790
790
  }, {
@@ -798,7 +798,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
798
798
  type: "button",
799
799
  class: "mwnf-standalone-slider__button",
800
800
  disabled: a.value >= o.value,
801
- "aria-label": T(r)(e.nextLabel),
801
+ "aria-label": T(n)(e.nextLabel),
802
802
  onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
803
803
  }, "›", 8, it)
804
804
  ], 4)) : u("", !0);
@@ -1,4 +1,4 @@
1
- import { A as e } from "./data-d30zAska.js";
1
+ import { A as e } from "./data-BINc9QjV.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) {