@museumwnf/viewer-layout 3.9.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.
@@ -0,0 +1,34 @@
1
+ //#region src/chrome.js
2
+ var e = /^.*?theme\/assets\//, t = /* @__PURE__ */ new WeakMap();
3
+ function n(e) {
4
+ let n = t.get(e);
5
+ if (!n) {
6
+ n = /* @__PURE__ */ new Map();
7
+ for (let [t, i] of Object.entries(e)) typeof i == "string" && i && n.set(r(t), i);
8
+ t.set(e, n);
9
+ }
10
+ return n;
11
+ }
12
+ function r(t) {
13
+ return String(t).replaceAll("\\", "/").replace(e, "").replace(/^(\.\/|\/)+/, "");
14
+ }
15
+ function i(e, t) {
16
+ return !e || typeof e != "object" || !t ? null : n(e).get(r(t)) ?? null;
17
+ }
18
+ function a(e, t) {
19
+ return t ? i(e, `chrome/${String(t).replace(/^\/+/, "")}`) : null;
20
+ }
21
+ function o(e, t) {
22
+ return !t || typeof t != "string" ? null : /^(?:[a-z][a-z0-9+.-]*:|\/\/|\/)/i.test(t) ? t : i(e, t);
23
+ }
24
+ function s(e, t) {
25
+ if (!e || typeof DOMParser > "u") return e;
26
+ let n = new DOMParser().parseFromString(`<body>${e}</body>`, "text/html"), r = !1;
27
+ for (let e of n.body.querySelectorAll("img[src]")) {
28
+ let n = t(e.getAttribute("src"));
29
+ n && (e.setAttribute("src", n), r = !0);
30
+ }
31
+ return r ? n.body.innerHTML : e;
32
+ }
33
+ //#endregion
34
+ export { s as i, a as n, o as r, i as t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./SiteShell-CXMfLqzq.js";
1
+ import { t as e } from "./SiteShell-DPdTxtJ5.js";
2
2
  export { e as SiteShell };
@@ -1,5 +1,5 @@
1
- import "./FeaturedRecord-DJfyvfqt.js";
2
- import { n as e, o as t } from "./GlossaryPopover-DcptyNWI.js";
1
+ import "./FeaturedRecord-DGZ1dpyc.js";
2
+ import { a as e, t } from "./MediaGallery-CHhf9xUZ.js";
3
3
  import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
4
4
  import { useI18n as p } from "@museumwnf/viewer-core/i18n";
5
5
  import { md as m, mdInline as h } from "@museumwnf/viewer-core";
@@ -48,37 +48,37 @@ var g = ["innerHTML"], _ = ["innerHTML"], v = ["innerHTML"], y = {
48
48
  }))
49
49
  };
50
50
  }));
51
- return (r, p) => S.value.length ? (c(), i(t, {
51
+ return (r, p) => S.value.length ? (c(), i(e, {
52
52
  key: 0,
53
53
  heading: y.heading ? d(x)(y.heading) : "",
54
54
  dir: y.dir,
55
55
  class: "mwnf-special-features"
56
56
  }, {
57
- default: f(() => [(c(!0), o(n, null, l(S.value, (t) => (c(), o("div", {
58
- key: t.id,
57
+ default: f(() => [(c(!0), o(n, null, l(S.value, (e) => (c(), o("div", {
58
+ key: e.id,
59
59
  class: "mwnf-special-features__item"
60
60
  }, [
61
61
  s("h3", {
62
62
  class: "mwnf-special-features__name",
63
- innerHTML: t.name
63
+ innerHTML: e.name
64
64
  }, null, 8, g),
65
- (c(!0), o(n, null, l(t.meta, (e, t) => (c(), o("p", {
65
+ (c(!0), o(n, null, l(e.meta, (e, t) => (c(), o("p", {
66
66
  key: t,
67
67
  class: "mwnf-special-features__meta"
68
68
  }, u(e), 1))), 128)),
69
- t.artist ? (c(), o("p", {
69
+ e.artist ? (c(), o("p", {
70
70
  key: 0,
71
71
  class: "mwnf-special-features__meta",
72
- innerHTML: t.artist
72
+ innerHTML: e.artist
73
73
  }, null, 8, _)) : a("", !0),
74
- t.description ? (c(), o("div", {
74
+ e.description ? (c(), o("div", {
75
75
  key: 1,
76
76
  class: "mwnf-special-features__description mwnf-sheet__block",
77
- innerHTML: t.description
77
+ innerHTML: e.description
78
78
  }, null, 8, v)) : a("", !0),
79
- t.images.length ? (c(), i(e, {
79
+ e.images.length ? (c(), i(t, {
80
80
  key: 2,
81
- images: t.images,
81
+ images: e.images,
82
82
  variant: "row"
83
83
  }, null, 8, ["images"])) : a("", !0)
84
84
  ]))), 128))]),
package/dist/content.js CHANGED
@@ -1,6 +1,7 @@
1
- import { t as e } from "./FeaturedRecord-DJfyvfqt.js";
2
- import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./GlossaryPopover-DcptyNWI.js";
3
- import { a as d, c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./TimelineEventList-gsoc-SBx.js";
4
- import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-2ctLMfvw.js";
5
- import { t as E } from "./content-Cu_44di8.js";
6
- export { w as BackLink, b as DynastyList, y as DynastyPopout, h as FacetSelect, e as FeaturedRecord, d as FilterPanel, l as GlossaryPopover, S as GlossaryTool, a as MediaGallery, T as OnDisplayIn, _ as Pagination, g as PartnerMap, m as PartnerPanel, t as RecordCredits, i as RecordGrid, n as RecordLanguages, u as RecordList, c as RecordSheet, x as RelatedMedia, s as RelatedRecords, p as ResultsSummary, f as SectionCards, o as SheetSection, r as SourceCredit, E as SpecialFeatures, v as TimelineEventList, C as TimelineLookup };
1
+ import { t as e } from "./FeaturedRecord-DGZ1dpyc.js";
2
+ import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l } from "./MediaGallery-CHhf9xUZ.js";
3
+ import { a as u, c as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./TimelineEventList-C5cbF_an.js";
4
+ import { t as v } from "./GlossaryPopover-B7E6BsjS.js";
5
+ import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-BCjxYjO7.js";
6
+ import { t as E } from "./content-DCtsRrwx.js";
7
+ export { w as BackLink, b as DynastyList, y as DynastyPopout, m as FacetSelect, e as FeaturedRecord, u as FilterPanel, v as GlossaryPopover, S as GlossaryTool, l as MediaGallery, T as OnDisplayIn, g as Pagination, h as PartnerMap, p as PartnerPanel, r as RecordCredits, n as RecordGrid, c as RecordLanguages, i as RecordList, o as RecordSheet, x as RelatedMedia, a as RelatedRecords, f as ResultsSummary, d as SectionCards, t as SheetSection, s as SourceCredit, E as SpecialFeatures, _ as TimelineEventList, C as TimelineLookup };
@@ -1,4 +1,4 @@
1
- import { n as e } from "./chrome-i1DOEyLS.js";
1
+ import { n as e } from "./chrome-DNsZQXrL.js";
2
2
  import { partnerView as t, useSiteConfig as n } from "@museumwnf/viewer-core";
3
3
  import { FACET_CATEGORIES as r, FACET_LABEL_KEYS as i, PAGE_SIZE as a, useExhibitionCollection as ee, useExhibitionData as o, useExhibitionItemDetail as s, useExhibitionPartner as c, useExhibitionThemes as l, useExhibitionTimeline as u, useFacetLabels as d } from "@museumwnf/viewer-core/dxa";
4
4
  //#region src/dxa/exhibition/data.js
@@ -1,4 +1,4 @@
1
- import { n as e } from "./chrome-i1DOEyLS.js";
1
+ import { n as e } from "./chrome-DNsZQXrL.js";
2
2
  import { partnerView as t, useSiteConfig as n } from "@museumwnf/viewer-core";
3
3
  import { FACET_CATEGORIES as r, FACET_LABEL_KEYS as i, PAGE_SIZE as a, useFacetLabels as o, useGalleryCollection as s, useGalleryData as c, useGalleryItemDetail as l, useGalleryPartner as u, useGalleryTimeline as d } from "@museumwnf/viewer-core/dxa";
4
4
  //#region src/dxa/gallery/data.js
package/dist/dxa.js CHANGED
@@ -1,15 +1,16 @@
1
- import { a as e, i as t, n, r } from "./Theme-tF4wOaNa.js";
2
- import { c as i, i as a, n as o, r as s, t as c } from "./chrome-i1DOEyLS.js";
3
- import { c as l, d as u } from "./GlossaryPopover-DcptyNWI.js";
4
- import { a as d, c as f, n as p, o as m, s as h } from "./TimelineEventList-gsoc-SBx.js";
5
- import { s as g } from "./OnDisplayIn-2ctLMfvw.js";
6
- import { a as ee, i as _, n as v, r as y, s as b, t as x } from "./TimelineResultsView-C2-TnM71.js";
7
- import { t as te } from "./RecordView-CdKx9tFy.js";
8
- import { t as ne } from "./SiteShell-CXMfLqzq.js";
9
- import { A as re, C as ie, D as ae, E as oe, M as se, N as ce, O as le, S as ue, T as de, _ as fe, a as pe, b as S, c as me, d as he, f as ge, g as C, h as _e, i as ve, j as ye, k as be, l as xe, m as Se, n as Ce, o as we, p as Te, r as Ee, s as De, t as Oe, u as w, v as ke, w as Ae, x as je, y as Me } from "./data-CCcDVsTG.js";
10
- import { A as Ne, C as Pe, D as Fe, E as Ie, F as Le, I as Re, L as ze, M as Be, N as Ve, O as He, P as Ue, R as We, S as Ge, T, _ as Ke, a as qe, b as Je, c as Ye, d as Xe, f as E, g as Ze, h as Qe, i as $e, j as et, k as tt, l as nt, m as rt, n as it, o as D, p as at, r as ot, s as st, t as ct, u as lt, v as O, w as k, x as A, y as ut } from "./data-CGFEbGab.js";
11
- import { t as dt } from "./ItemDetailView-Dko_grJr.js";
12
- import { n as ft, r as pt, t as mt } from "./themeSpecs-C2Y2abxd.js";
1
+ import { a as e, i as t, n, r } from "./Theme-Dn5MBpQG.js";
2
+ import { i } from "./PageShell-BT9SnXav.js";
3
+ import { i as a, n as o, r as s, t as c } from "./chrome-DNsZQXrL.js";
4
+ import { s as l, u } from "./MediaGallery-CHhf9xUZ.js";
5
+ import { a as d, c as f, n as p, o as m, s as h } from "./TimelineEventList-C5cbF_an.js";
6
+ import { s as g } from "./OnDisplayIn-BCjxYjO7.js";
7
+ import { a as ee, i as _, n as v, r as y, s as b, t as x } from "./TimelineResultsView-xA0Wu7zv.js";
8
+ import { t as te } from "./RecordView-C23v0iYh.js";
9
+ import { t as ne } from "./SiteShell-DPdTxtJ5.js";
10
+ import { A as re, C as ie, D as ae, E as oe, M as se, N as ce, O as le, S as ue, T as de, _ as fe, a as pe, b as S, c as me, d as he, f as ge, g as C, h as _e, i as ve, j as ye, k as be, l as xe, m as Se, n as Ce, o as we, p as Te, r as Ee, s as De, t as Oe, u as w, v as T, w as ke, x as Ae, y as je } from "./data-CXRsGwLQ.js";
11
+ import { A as Me, C as Ne, D as Pe, E as Fe, F as Ie, I as Le, L as Re, M as ze, N as Be, O as Ve, P as He, R as Ue, S as We, T as E, _ as Ge, a as Ke, b as qe, c as Je, d as Ye, f as D, g as Xe, h as Ze, i as Qe, j as $e, k as et, l as tt, m as nt, n as rt, o as O, p as it, r as at, s as ot, t as st, u as ct, v as k, w as A, x as lt, y as ut } from "./data-BINc9QjV.js";
12
+ import { t as dt } from "./ItemDetailView-BAoP3CHx.js";
13
+ import { n as ft, r as pt, t as mt } from "./themeSpecs-DP9xWiVJ.js";
13
14
  import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as ht, createTextVNode as L, createVNode as R, normalizeClass as gt, normalizeStyle as _t, onBeforeUnmount as vt, onMounted as yt, openBlock as z, ref as B, renderList as V, renderSlot as bt, resolveDynamicComponent as xt, toDisplayString as H, unref as U, vModelText as St, vShow as Ct, withCtx as W, withDirectives as G, withModifiers as wt } from "vue";
14
15
  import { I18nText as K, NotFoundView as Tt, languageLabels as Et, loadEntities as q, mwnfLinks as J, offeredLanguages as Dt, renderInline as Ot, sectionMeta as kt, useDataPackage as At, useFacets as jt, useI18n as Y, useKeywordIndex as Mt, useSection as Nt, useSiteConfig as X, yearBuckets as Z } from "@museumwnf/viewer-core";
15
16
  import { RouterLink as Q, useRoute as Pt, useRouter as Ft } from "vue-router";
@@ -119,7 +120,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
119
120
  setup(e) {
120
121
  let t = {
121
122
  ...ue,
122
- objectsRoute: Ae,
123
+ objectsRoute: ke,
123
124
  actions: !0,
124
125
  emptyLabel: "gallery.partner.noObjectsInGallery"
125
126
  };
@@ -374,7 +375,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
374
375
  }, on = { class: "mwnf-dxa-profile-link-container" }, sn = {
375
376
  __name: "PartnerObjects",
376
377
  setup(e) {
377
- let t = Pt(), n = M(() => Me.value.get(t.params.id) ?? null), r = M(() => ({
378
+ let t = Pt(), n = M(() => je.value.get(t.params.id) ?? null), r = M(() => ({
378
379
  ...ie,
379
380
  scope: (e) => e.partner_id === t.params.id
380
381
  })), i = M(() => n.value ? S.view(n.value, se("partners", n.value.id, me)) : null);
@@ -420,8 +421,8 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
420
421
  __name: "Partners",
421
422
  setup(e) {
422
423
  let t = {
423
- ...Ie,
424
- objectsRoute: Fe,
424
+ ...Fe,
425
+ objectsRoute: Pe,
425
426
  actions: !0,
426
427
  emptyLabel: "exhibition.partner.noObjectsInExhibition"
427
428
  };
@@ -443,9 +444,9 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
443
444
  setup(e) {
444
445
  let t = Mt("items", {
445
446
  grammar: "boolean",
446
- haystack: Ke
447
+ haystack: Ge
447
448
  }), n = B(!1);
448
- Ge().then(() => {
449
+ We().then(() => {
449
450
  n.value = !0;
450
451
  });
451
452
  function r(e) {
@@ -454,7 +455,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
454
455
  let i = B(""), a = M(() => ({
455
456
  entity: "items",
456
457
  keys: ["q"],
457
- scope: (e) => O.value.has(e.id),
458
+ scope: (e) => k.value.has(e.id),
458
459
  sort: !1,
459
460
  narrow: (e, i) => {
460
461
  if (!n.value) return [];
@@ -462,18 +463,18 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
462
463
  let a = new Set(e.map((e) => e.id));
463
464
  return t.search(i.q).filter((e) => a.has(e.id));
464
465
  },
465
- pageSize: $e,
466
+ pageSize: Qe,
466
467
  variant: "grid",
467
468
  recordRoute: "item",
468
469
  actionLabel: "catalogue.results.seeDatabaseEntry",
469
- record: (e, { t }) => et(e, t),
470
+ record: (e, { t }) => $e(e, t),
470
471
  pagination: { jump: !0 },
471
472
  summary: ({ filters: e, pageInfo: t, t: n }) => [{
472
473
  label: n("core.section.database"),
473
474
  value: r(e.q) ? n("catalogue.results.allObjects") : `“${e.q}”`
474
475
  }, {
475
476
  count: t.total,
476
- value: `${n("catalogue.results.outOf")} ${O.value.size} ${n("catalogue.results.objects")}`
477
+ value: `${n("catalogue.results.outOf")} ${k.value.size} ${n("catalogue.results.objects")}`
477
478
  }]
478
479
  }));
479
480
  return (e, t) => (z(), N(b, {
@@ -512,7 +513,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
512
513
  __name: "TimelineResults",
513
514
  setup(e) {
514
515
  return (e, t) => (z(), N(x, {
515
- spec: U(Ve),
516
+ spec: U(Be),
516
517
  class: "mwnf-dxa-timeline-results"
517
518
  }, {
518
519
  before: W(() => [R(g)]),
@@ -523,7 +524,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
523
524
  __name: "TimelineGallery",
524
525
  setup(e) {
525
526
  return (e, t) => (z(), N(b, {
526
- spec: U(Be),
527
+ spec: U(ze),
527
528
  class: "mwnf-dxa-timeline-gallery"
528
529
  }, {
529
530
  before: W(() => [R(g)]),
@@ -536,18 +537,18 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
536
537
  }, Sn = { class: "mwnf-dxa-options-label" }, Cn = {
537
538
  __name: "CollectionResults",
538
539
  setup(e) {
539
- let t = Ft(), { t: n } = Y(), r = Re(), i = st.keys, a = (e) => i.filter((t) => e[t]).length <= 1;
540
+ let t = Ft(), { t: n } = Y(), r = Le(), i = ot.keys, a = (e) => i.filter((t) => e[t]).length <= 1;
540
541
  function o() {
541
542
  t.push({ name: "collection" });
542
543
  }
543
- let s = M(() => new Set((Ue.value ?? []).map((e) => e.country_id)));
544
+ let s = M(() => new Set((He.value ?? []).map((e) => e.country_id)));
544
545
  function c(e) {
545
- if (!Ze.value) return !1;
546
- let t = nt(e.country);
546
+ if (!Xe.value) return !1;
547
+ let t = tt(e.country);
547
548
  return !!(t && s.value.has(t));
548
549
  }
549
550
  return (e, t) => (z(), N(b, {
550
- spec: U(st),
551
+ spec: U(ot),
551
552
  class: "mwnf-dxa-collection-results"
552
553
  }, {
553
554
  before: W(() => [R(g)]),
@@ -580,7 +581,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
580
581
  "placeholder",
581
582
  "onUpdate:modelValue"
582
583
  ]),
583
- (z(!0), F(j, null, V(U(it), (e) => (z(), N(m, {
584
+ (z(!0), F(j, null, V(U(rt), (e) => (z(), N(m, {
584
585
  key: e,
585
586
  "model-value": i[e],
586
587
  options: u[e],
@@ -623,12 +624,12 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
623
624
  ]), c(i) ? (z(), F("div", xn, [I("div", Sn, H(e.$t("catalogue.results.timelineForSearch")), 1), I("p", null, [t[2] ||= L(" ➤ ", -1), R(U(Q), { to: {
624
625
  name: "timeline-results",
625
626
  query: {
626
- country: U(nt)(i.country),
627
+ country: U(tt)(i.country),
627
628
  begin: i.from,
628
629
  end: i.to
629
630
  }
630
631
  } }, {
631
- default: W(() => [L(H(e.$t("core.section.timeline")) + " | " + H(U(A)("countries", U(nt)(i.country))), 1)]),
632
+ default: W(() => [L(H(e.$t("core.section.timeline")) + " | " + H(U(lt)("countries", U(tt)(i.country))), 1)]),
632
633
  _: 2
633
634
  }, 1032, ["to"])])])) : P("", !0)]),
634
635
  _: 1
@@ -637,7 +638,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
637
638
  }, wn = { class: "mwnf-dxa-collection-search" }, Tn = {
638
639
  __name: "CollectionSearch",
639
640
  setup(e) {
640
- let t = jt(Je, ct), n = M(() => it.filter((e) => (t.value[e] ?? []).length > 0)), r = M(() => ({
641
+ let t = jt(qe, st), n = M(() => rt.filter((e) => (t.value[e] ?? []).length > 0)), r = M(() => ({
641
642
  mode: "facets",
642
643
  target: "collection-results",
643
644
  dates: "buckets",
@@ -648,7 +649,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
648
649
  options: t.value.country
649
650
  }, ...n.value.map((e) => ({
650
651
  key: e,
651
- label: ot[e],
652
+ label: at[e],
652
653
  options: t.value[e]
653
654
  }))]
654
655
  }));
@@ -675,16 +676,16 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
675
676
  }
676
677
  },
677
678
  setup(e) {
678
- let t = e, n = M(() => t.variant === "institution"), r = Pt(), i = M(() => ze(r.params.id)), a = M(() => i.value ? T.view(i.value, Le("partners", i.value.id, Xe)) : null), o = M(() => ({
679
+ let t = e, n = M(() => t.variant === "institution"), r = Pt(), i = M(() => Re(r.params.id)), a = M(() => i.value ? E.view(i.value, Ie("partners", i.value.id, Ye)) : null), o = M(() => ({
679
680
  entity: "items",
680
681
  scope: (e) => e.partner_id === i.value?.id,
681
682
  sort: { undated: "first" },
682
- pageSize: $e,
683
+ pageSize: Qe,
683
684
  variant: "grid",
684
685
  recordRoute: "item",
685
686
  actionLabel: "catalogue.results.seeDatabaseEntry",
686
687
  empty: n.value ? t.texts.emptyInstitution : t.texts.emptyPartner,
687
- record: (e, { t }) => et(e, t),
688
+ record: (e, { t }) => $e(e, t),
688
689
  summary: ({ pageInfo: e, t: r }) => [{
689
690
  count: e.total,
690
691
  value: r(n.value ? t.texts.institutionSummary : "partner.item.objectsInSite")
@@ -709,7 +710,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
709
710
  }, null, 8, ["page-info", "onNavigate"])]),
710
711
  after: W(() => [I("div", En, [R(U(Q), {
711
712
  class: "mwnf-dxa-profile-link",
712
- to: U(He)(i.value)
713
+ to: U(Ve)(i.value)
713
714
  }, {
714
715
  default: W(() => [L(" ➤ " + H(n.value ? e.$t(t.texts.institutionProfileLabel) : e.$t(t.texts.partnerProfileLabel)), 1)]),
715
716
  _: 1
@@ -717,7 +718,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
717
718
  _: 1
718
719
  }, 8, ["spec"])) : P("", !0);
719
720
  }
720
- }, On = () => Promise.resolve().then(() => Fr), kn = () => Promise.resolve().then(() => Wr), An = () => Promise.resolve().then(() => qr), jn = () => Promise.resolve().then(() => Xr), Mn = () => Promise.resolve().then(() => $r), Nn = () => Promise.resolve().then(() => ni), Pn = () => import("./Theme-tF4wOaNa.js").then((e) => e.t), Fn = () => Promise.resolve().then(() => oi), In = () => Promise.resolve().then(() => ui), Ln = () => Promise.resolve().then(() => pi), Rn = () => Promise.resolve().then(() => hi), zn = {
721
+ }, On = () => Promise.resolve().then(() => Fr), kn = () => Promise.resolve().then(() => Wr), An = () => Promise.resolve().then(() => qr), jn = () => Promise.resolve().then(() => Xr), Mn = () => Promise.resolve().then(() => $r), Nn = () => Promise.resolve().then(() => ni), Pn = () => import("./Theme-Dn5MBpQG.js").then((e) => e.t), Fn = () => Promise.resolve().then(() => oi), In = () => Promise.resolve().then(() => ui), Ln = () => Promise.resolve().then(() => pi), Rn = () => Promise.resolve().then(() => hi), zn = {
721
722
  emptyPartner: "exhibition.partnerObjects.emptyPartner",
722
723
  emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
723
724
  institutionSummary: "exhibition.partner.monumentsInExhibition",
@@ -922,7 +923,7 @@ function Vn(e) {
922
923
  component: $,
923
924
  props: (e) => ({
924
925
  id: String(e.params.id),
925
- family: T
926
+ family: E
926
927
  }),
927
928
  meta: t("partners", "languages")
928
929
  },
@@ -939,7 +940,7 @@ function Vn(e) {
939
940
  component: $,
940
941
  props: (e) => ({
941
942
  id: String(e.params.id),
942
- family: T,
943
+ family: E,
943
944
  variant: "institution"
944
945
  }),
945
946
  meta: t("partners", "languages")
@@ -1037,8 +1038,8 @@ var Kn = {
1037
1038
  return e?.[a.value] ?? e?.en ?? "";
1038
1039
  }
1039
1040
  let m = M(() => {
1040
- let e = ke.projects?.[ke.gallery?.project_id ?? w.value?.project_id];
1041
- return p(e?.name) || p(ke.site?.names) || p(w.value?.names);
1041
+ let e = T.projects?.[T.gallery?.project_id ?? w.value?.project_id];
1042
+ return p(e?.name) || p(T.site?.names) || p(w.value?.names);
1042
1043
  });
1043
1044
  function h(e, t) {
1044
1045
  if (!(e in l.value)) return t();
@@ -1151,17 +1152,18 @@ var Kn = {
1151
1152
  },
1152
1153
  emits: ["update:language"],
1153
1154
  setup(e, { emit: t }) {
1154
- let n = e, r = t, { t: i, locale: c } = Y(), l = X(), u = M(() => l.links ?? {}), d = M(() => !!s(l.chrome, l.brand?.logo)), f = Nt(), p = M(() => f.value === "home"), m = (/* @__PURE__ */ new Date()).getFullYear(), h = M(() => p.value ? E.value?.homepage_image_path : null), g = M(() => h.value ? D(h.value, "hi_res") : D(E.value?.banner_image_path, "hi_res")), ee = M(() => {
1155
- let e = h.value ? "" : qe(c.value);
1155
+ let n = e, r = t, { t: i, locale: c } = Y(), l = X(), u = M(() => l.links ?? {}), d = M(() => !!s(l.chrome, l.brand?.logo)), f = Nt(), p = M(() => f.value === "home"), m = (/* @__PURE__ */ new Date()).getFullYear(), h = M(() => p.value ? D.value?.homepage_image_path : null), g = M(() => h.value ? O(h.value, "hi_res") : O(D.value?.banner_image_path, "hi_res")), ee = M(() => {
1156
+ let e = h.value ? "" : Ke(c.value);
1156
1157
  if (e) return e;
1157
- let t = h.value ? E.value?.homepage_item_id : E.value?.banner_item_id, n = O.value.get(t);
1158
+ let t = h.value ? D.value?.homepage_item_id : D.value?.banner_item_id, n = k.value.get(t);
1158
1159
  if (!n) return "";
1159
- let r = Le("items", n.id, Xe);
1160
+ let r = Ie("items", n.id, Ye);
1160
1161
  return {
1161
- name: A("items", n.id),
1162
- partner: A("partners", n.partner_id),
1162
+ name: lt("items", n.id),
1163
+ holder: r.holder ?? "",
1163
1164
  location: r.location ?? "",
1164
- country: A("countries", n.country_id)
1165
+ province: h.value ? "" : r.province ?? "",
1166
+ country: lt("countries", n.country_id)
1165
1167
  };
1166
1168
  }), _ = M(() => [{
1167
1169
  label: i("core.nav.about"),
@@ -1181,8 +1183,8 @@ var Kn = {
1181
1183
  ...e,
1182
1184
  image: s(l.chrome, e.image),
1183
1185
  alt: e.alt ? i(e.alt) : ""
1184
- })).filter((e) => e.image) : (E.value?.logos ?? []).map((e) => ({
1185
- image: e.legacy_path ? D(e.legacy_path, "full") : null,
1186
+ })).filter((e) => e.image) : (D.value?.logos ?? []).map((e) => ({
1187
+ image: e.legacy_path ? O(e.legacy_path, "full") : null,
1186
1188
  alt: v(e),
1187
1189
  href: e.url || void 0,
1188
1190
  category_id: e.category_id,
@@ -1197,8 +1199,8 @@ var Kn = {
1197
1199
  let n = e.slice(t.replace(/\/+$/, "").length + 1).split("/").slice(1).join("/");
1198
1200
  return o(l.chrome, n);
1199
1201
  }
1200
- let x = M(() => a(Pe(E.value?.popup_logos?.[c.value] ?? E.value?.popup_logos?.en ?? ""), b)), te = M(() => {
1201
- let e = E.value?.popup_logo_show;
1202
+ let x = M(() => a(Ne(D.value?.popup_logos?.[c.value] ?? D.value?.popup_logos?.en ?? ""), b)), te = M(() => {
1203
+ let e = D.value?.popup_logo_show;
1202
1204
  return e == null ? !1 : typeof e == "boolean" ? e : e[c.value] ?? e.en ?? !1;
1203
1205
  });
1204
1206
  return (e, t) => (z(), N(ne, {
@@ -1212,18 +1214,18 @@ var Kn = {
1212
1214
  "banner-image": g.value,
1213
1215
  "banner-caption": ee.value,
1214
1216
  "banner-caption-label": U(i)("layout.banner.detailFrom"),
1215
- "banner-title": p.value ? U(Qe)(U(c)) : "",
1216
- "banner-subtitle": p.value ? U(rt)(U(c)) : "",
1217
- "banner-headline": p.value ? U(at)(U(c)) : "",
1217
+ "banner-title": p.value ? U(Ze)(U(c)) : "",
1218
+ "banner-subtitle": p.value ? U(nt)(U(c)) : "",
1219
+ "banner-headline": p.value ? U(it)(U(c)) : "",
1218
1220
  "banner-enter": p.value ? {
1219
1221
  label: U(i)("exhibition.action.enter"),
1220
1222
  href: "#/about"
1221
1223
  } : null,
1222
1224
  "banner-strapline": p.value ? U(i)("exhibition.identity.strapline") : "",
1223
1225
  "hyperlinks-variant": "tiles",
1224
- "hyperlinks-title": U(Qe)(U(c)),
1226
+ "hyperlinks-title": U(Ze)(U(c)),
1225
1227
  "hyperlinks-title-href": "#/",
1226
- "hyperlinks-subtitle": U(rt)(U(c)),
1228
+ "hyperlinks-subtitle": U(nt)(U(c)),
1227
1229
  hyperlinks: _.value,
1228
1230
  "footer-text": `${U(i)("core.footer.copyright")} 2004–${U(m)}`,
1229
1231
  logos: y.value,
@@ -1406,7 +1408,7 @@ function er({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1406
1408
  path: "/partner/:country/:id/:language",
1407
1409
  async resolve({ country: e, id: t }) {
1408
1410
  await q(["partners"]);
1409
- let n = je(e, t);
1411
+ let n = Ae(e, t);
1410
1412
  return n ? {
1411
1413
  name: "partner",
1412
1414
  params: { id: n.id }
@@ -1417,7 +1419,7 @@ function er({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1417
1419
  path: "/partner-objects/:country/:id/:page",
1418
1420
  async resolve({ country: e, id: t, page: n }) {
1419
1421
  await q(["partners"]);
1420
- let r = je(e, t);
1422
+ let r = Ae(e, t);
1421
1423
  return r ? {
1422
1424
  name: "partner-objects",
1423
1425
  params: { id: r.id },
@@ -1441,7 +1443,7 @@ function tr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1441
1443
  "exhibition",
1442
1444
  "partners",
1443
1445
  "countries"
1444
- ]), Wn(We.value, Ye.value, e, t));
1446
+ ]), Wn(Ue.value, Je.value, e, t));
1445
1447
  return {
1446
1448
  datasetPackage: e,
1447
1449
  siteName: u.site?.names?.en ?? t,
@@ -1478,7 +1480,7 @@ function tr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1478
1480
  section: "timeline",
1479
1481
  label: "core.nav.timeline",
1480
1482
  to: { name: "timeline" },
1481
- when: () => Ze.value
1483
+ when: () => Xe.value
1482
1484
  },
1483
1485
  {
1484
1486
  section: "related",
@@ -1593,7 +1595,7 @@ function tr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
1593
1595
  path: "/database-item/:uid(.*)/:language",
1594
1596
  async resolve({ uid: e }) {
1595
1597
  await q(["items"]);
1596
- let t = Gn(Je.value, e);
1598
+ let t = Gn(qe.value, e);
1597
1599
  return t ? {
1598
1600
  name: "item",
1599
1601
  params: { id: t.id }
@@ -1966,7 +1968,7 @@ var nr = {
1966
1968
  }, ni = /* @__PURE__ */ e({ default: () => ai }), ri = { class: "mwnf-dxa-themes" }, ii = { class: "mwnf-dxa-themes__container" }, ai = {
1967
1969
  __name: "Themes",
1968
1970
  setup(e) {
1969
- let { listedThemes: t, romanFor: n, themeText: r } = Ne, { t: i, locale: a } = Y(), o = M(() => t.value.map((e) => ({
1971
+ let { listedThemes: t, romanFor: n, themeText: r } = Me, { t: i, locale: a } = Y(), o = M(() => t.value.map((e) => ({
1970
1972
  title: r(e, a.value).title ?? e.internal_name ?? "",
1971
1973
  number: n(e.display_order),
1972
1974
  children: [{
@@ -1988,7 +1990,7 @@ var nr = {
1988
1990
  }, li = {
1989
1991
  __name: "ThemeGallery",
1990
1992
  setup(e) {
1991
- let { pictureById: t, pictureParent: n, romanFor: r, themeByRouteId: i, themeText: a, themeTree: o } = Ne, s = Pt(), { t: c, locale: l } = Y(), u = M(() => i(s.params.id)), d = M(() => {
1993
+ let { pictureById: t, pictureParent: n, romanFor: r, themeByRouteId: i, themeText: a, themeTree: o } = Me, s = Pt(), { t: c, locale: l } = Y(), u = M(() => i(s.params.id)), d = M(() => {
1992
1994
  let e = /* @__PURE__ */ new Set();
1993
1995
  if (!u.value) return e;
1994
1996
  for (let r of o.itemsUnder(u.value.id)) {
@@ -2002,7 +2004,7 @@ var nr = {
2002
2004
  sort: { undated: "first" },
2003
2005
  variant: "grid",
2004
2006
  recordRoute: "item",
2005
- record: (e, t) => et(e, t.t),
2007
+ record: (e, t) => $e(e, t.t),
2006
2008
  actionLabel: "catalogue.results.seeDatabaseEntry",
2007
2009
  empty: "exhibition.theme.noRecords",
2008
2010
  summary: () => [{
@@ -2030,7 +2032,7 @@ var nr = {
2030
2032
  return (t, n) => (z(), N(dt, {
2031
2033
  spec: U(ut),
2032
2034
  id: e.id,
2033
- "data-getter": (e) => U(O).get(e),
2035
+ "data-getter": (e) => U(k).get(e),
2034
2036
  class: "mwnf-dxa-item"
2035
2037
  }, {
2036
2038
  header: W(({ languages: e, language: t, select: n }) => [I("div", di, [R(l, {
@@ -2067,19 +2069,19 @@ var nr = {
2067
2069
  return e?.[i.value] ?? e?.en ?? "";
2068
2070
  }
2069
2071
  function o(e) {
2070
- return e.document_path ? D(e.document_path, "hi_res") : e.url ?? null;
2072
+ return e.document_path ? O(e.document_path, "hi_res") : e.url ?? null;
2071
2073
  }
2072
2074
  function s(e) {
2073
- return a(e.titles) ? k(a(e.titles)) : a(e.texts) ? k(a(e.texts)) : o(e) || r("exhibition.relatedCategory.unknown");
2075
+ return a(e.titles) ? A(a(e.titles)) : a(e.texts) ? A(a(e.texts)) : o(e) || r("exhibition.relatedCategory.unknown");
2074
2076
  }
2075
2077
  function c(e) {
2076
2078
  if (!a(e.titles)) return "";
2077
2079
  let t = [];
2078
- return (e.entity_location || e.entity_country) && t.push([e.entity_location, e.entity_country ? lt(e.entity_country) : ""].filter(Boolean).join(", ")), (e.authors || e.type_resource) && t.push([e.authors, e.type_resource].filter(Boolean).join(", ")), a(e.descriptions) && t.push(k(a(e.descriptions))), e.further_reading && t.push(k(e.further_reading)), t.join(" — ");
2080
+ return (e.entity_location || e.entity_country) && t.push([e.entity_location, e.entity_country ? ct(e.entity_country) : ""].filter(Boolean).join(", ")), (e.authors || e.type_resource) && t.push([e.authors, e.type_resource].filter(Boolean).join(", ")), a(e.descriptions) && t.push(A(a(e.descriptions))), e.further_reading && t.push(A(e.further_reading)), t.join(" — ");
2079
2081
  }
2080
2082
  function l() {
2081
2083
  let e = /* @__PURE__ */ new Map();
2082
- for (let t of tt.value ?? []) {
2084
+ for (let t of et.value ?? []) {
2083
2085
  let n = e.get(t.category_id);
2084
2086
  n ? n.push(t) : e.set(t.category_id, [t]);
2085
2087
  }
@@ -2109,7 +2111,7 @@ var nr = {
2109
2111
  __name: "Timeline",
2110
2112
  setup(e) {
2111
2113
  let t = M(() => ({
2112
- ...Ve.value,
2114
+ ...Be.value,
2113
2115
  entrance: !0
2114
2116
  }));
2115
2117
  return (e, n) => (z(), N(x, { spec: t.value }, {
@@ -2123,4 +2125,4 @@ var nr = {
2123
2125
  }
2124
2126
  };
2125
2127
  //#endregion
2126
- export { ti as ExhibitionAbout, Cn as ExhibitionCollectionResults, Tn as ExhibitionCollectionSearch, Qr as ExhibitionHome, fi as ExhibitionItemDetail, Dn as ExhibitionPartnerObjects, dn as ExhibitionPartners, mi as ExhibitionRelatedContent, cn as ExhibitionSearchHowTo, _n as ExhibitionSearchResults, Qn as ExhibitionShell, n as ExhibitionTheme, li as ExhibitionThemeGallery, ai as ExhibitionThemes, gi as ExhibitionTimeline, yn as ExhibitionTimelineGallery, vn as ExhibitionTimelineResults, hr as FeaturedPartners, Lt as GalleryAbout, en as GalleryCollectionResults, rn as GalleryCollectionSearch, Rt as GalleryCredits, Ur as GalleryHome, Kr as GalleryItemDetail, sn as GalleryPartnerObjects, Vt as GalleryPartners, zt as GallerySearchHowTo, qt as GallerySearchResults, Kn as GalleryShell, Yr as GalleryTimeline, Xt as GalleryTimelineGallery, Jt as GalleryTimelineResults, dt as ItemDetailView, $ as PartnerDetail, t as PictureGallery, r as PictureNarrative, Zn as PopupLogo, Pr as SiblingGalleries, mt as exhibitionAboutSpec, tr as exhibitionConfig, T as exhibitionPartnerDetail, pt as exhibitionThemeSpec, er as galleryConfig, S as galleryPartnerDetail, Hn as standardRoutes, ft as themeNodeRoute };
2128
+ export { ti as ExhibitionAbout, Cn as ExhibitionCollectionResults, Tn as ExhibitionCollectionSearch, Qr as ExhibitionHome, fi as ExhibitionItemDetail, Dn as ExhibitionPartnerObjects, dn as ExhibitionPartners, mi as ExhibitionRelatedContent, cn as ExhibitionSearchHowTo, _n as ExhibitionSearchResults, Qn as ExhibitionShell, n as ExhibitionTheme, li as ExhibitionThemeGallery, ai as ExhibitionThemes, gi as ExhibitionTimeline, yn as ExhibitionTimelineGallery, vn as ExhibitionTimelineResults, hr as FeaturedPartners, Lt as GalleryAbout, en as GalleryCollectionResults, rn as GalleryCollectionSearch, Rt as GalleryCredits, Ur as GalleryHome, Kr as GalleryItemDetail, sn as GalleryPartnerObjects, Vt as GalleryPartners, zt as GallerySearchHowTo, qt as GallerySearchResults, Kn as GalleryShell, Yr as GalleryTimeline, Xt as GalleryTimelineGallery, Jt as GalleryTimelineResults, dt as ItemDetailView, $ as PartnerDetail, t as PictureGallery, r as PictureNarrative, Zn as PopupLogo, Pr as SiblingGalleries, mt as exhibitionAboutSpec, tr as exhibitionConfig, E as exhibitionPartnerDetail, pt as exhibitionThemeSpec, er as galleryConfig, S as galleryPartnerDetail, Hn as standardRoutes, ft as themeNodeRoute };
package/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
- import { a as e, c as t, d as n, f as r, l as i, m as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./chrome-i1DOEyLS.js";
2
- import { t as p } from "./FeaturedRecord-DJfyvfqt.js";
3
- import { a as m, c as h, i as g, l as _, n as v, o as y, r as b, s as x, t as S, u as C } from "./GlossaryPopover-DcptyNWI.js";
4
- import { a as w, c as T, i as E, n as D, o as O, r as k, s as A, t as j } from "./TimelineEventList-gsoc-SBx.js";
5
- import { a as M, i as N, n as P, o as F, r as I, s as L, t as R } from "./OnDisplayIn-2ctLMfvw.js";
6
- import { t as z } from "./content-Cu_44di8.js";
7
- export { c as AppBanner, n as AppContent, s as AppFooter, a as AppHeader, f as AppHyperlinks, r as AppNavigation, i as AppSponsors, L as BackLink, N as DynastyList, M as DynastyPopout, O as FacetSelect, p as FeaturedRecord, w as FilterPanel, S as GlossaryPopover, F as GlossaryTool, v as MediaGallery, R as OnDisplayIn, e as PageShell, A as Pagination, k as PartnerMap, D as PartnerPanel, m as RecordCredits, _ as RecordGrid, h as RecordLanguages, C as RecordList, x as RecordSheet, P as RelatedMedia, b as RelatedRecords, E as ResultsSummary, T as SectionCards, y as SheetSection, u as SocialLinks, g as SourceCredit, z as SpecialFeatures, j as TimelineEventList, I as TimelineLookup, d as chromeAsset, o as chromePicture, l as chromeSource, t as mwnfSocialLinks };
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./PageShell-BT9SnXav.js";
2
+ import { n as u, r as d, t as f } from "./chrome-DNsZQXrL.js";
3
+ import { t as p } from "./FeaturedRecord-DGZ1dpyc.js";
4
+ import { a as m, c as h, i as g, l as _, n as v, o as y, r as b, s as x, t as S } from "./MediaGallery-CHhf9xUZ.js";
5
+ import { a as C, c as w, i as T, n as E, o as D, r as O, s as k, t as A } from "./TimelineEventList-C5cbF_an.js";
6
+ import { t as j } from "./GlossaryPopover-B7E6BsjS.js";
7
+ import { a as M, i as N, n as P, o as F, r as I, s as L, t as R } from "./OnDisplayIn-BCjxYjO7.js";
8
+ import { t as z } from "./content-DCtsRrwx.js";
9
+ export { r as AppBanner, s as AppContent, i as AppFooter, l as AppHeader, a as AppHyperlinks, t as AppNavigation, e as AppSponsors, L as BackLink, N as DynastyList, M as DynastyPopout, D as FacetSelect, p as FeaturedRecord, C as FilterPanel, j as GlossaryPopover, F as GlossaryTool, S as MediaGallery, R as OnDisplayIn, c as PageShell, k as Pagination, O as PartnerMap, E as PartnerPanel, g as RecordCredits, h as RecordGrid, x as RecordLanguages, _ as RecordList, y as RecordSheet, P as RelatedMedia, v as RelatedRecords, T as ResultsSummary, w as SectionCards, m as SheetSection, o as SocialLinks, b as SourceCredit, z as SpecialFeatures, A as TimelineEventList, I as TimelineLookup, f as chromeAsset, u as chromePicture, d as chromeSource, n as mwnfSocialLinks };