@museumwnf/viewer-layout 3.8.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.
- package/dist/{ItemDetailView-CzSe_jZn.js → ItemDetailView-CzIquvf7.js} +9 -4
- package/dist/{OnDisplayIn-BfJoPonn.js → OnDisplayIn-2ctLMfvw.js} +1 -3
- package/dist/RecordView-BvKoAB2j.js +275 -0
- package/dist/{SiteShell-CXMfLqzq.js → SiteShell-DmKiH3jM.js} +1 -1
- package/dist/{Theme-tF4wOaNa.js → Theme-pxrmYfo-.js} +2 -2
- package/dist/{chrome-i1DOEyLS.js → chrome-Co3f_Shw.js} +2 -1
- package/dist/components.js +1 -1
- package/dist/{content-C6oMa4eE.js → content-Cu_44di8.js} +6 -2
- package/dist/content.js +2 -2
- package/dist/{data-CCcDVsTG.js → data-Dz9REf19.js} +1 -1
- package/dist/{data-CGFEbGab.js → data-d30zAska.js} +1 -1
- package/dist/dxa.js +75 -73
- package/dist/index.js +3 -3
- package/dist/standalone.js +233 -230
- package/dist/{themeSpecs-C2Y2abxd.js → themeSpecs-CXVCN8UV.js} +1 -1
- package/dist/views.js +1 -1
- package/package.json +3 -3
- package/dist/RecordView-DovgfTMz.js +0 -263
package/dist/dxa.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as e, i as t, n, r } from "./Theme-
|
|
2
|
-
import { c as i, i as a, n as o, r as s, t as c } from "./chrome-
|
|
1
|
+
import { a as e, i as t, n, r } from "./Theme-pxrmYfo-.js";
|
|
2
|
+
import { c as i, i as a, n as o, r as s, t as c } from "./chrome-Co3f_Shw.js";
|
|
3
3
|
import { c as l, d as u } from "./GlossaryPopover-DcptyNWI.js";
|
|
4
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-
|
|
5
|
+
import { s as g } from "./OnDisplayIn-2ctLMfvw.js";
|
|
6
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-
|
|
8
|
-
import { t as ne } from "./SiteShell-
|
|
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
|
|
10
|
-
import { A as
|
|
11
|
-
import { t as dt } from "./ItemDetailView-
|
|
12
|
-
import { n as ft, r as pt, t as mt } from "./themeSpecs-
|
|
7
|
+
import { t as te } from "./RecordView-BvKoAB2j.js";
|
|
8
|
+
import { t as ne } from "./SiteShell-DmKiH3jM.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 T, w as ke, x as Ae, y as je } from "./data-Dz9REf19.js";
|
|
10
|
+
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-d30zAska.js";
|
|
11
|
+
import { t as dt } from "./ItemDetailView-CzIquvf7.js";
|
|
12
|
+
import { n as ft, r as pt, t as mt } from "./themeSpecs-CXVCN8UV.js";
|
|
13
13
|
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
14
|
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
15
|
import { RouterLink as Q, useRoute as Pt, useRouter as Ft } from "vue-router";
|
|
@@ -119,7 +119,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
119
119
|
setup(e) {
|
|
120
120
|
let t = {
|
|
121
121
|
...ue,
|
|
122
|
-
objectsRoute:
|
|
122
|
+
objectsRoute: ke,
|
|
123
123
|
actions: !0,
|
|
124
124
|
emptyLabel: "gallery.partner.noObjectsInGallery"
|
|
125
125
|
};
|
|
@@ -374,7 +374,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
374
374
|
}, on = { class: "mwnf-dxa-profile-link-container" }, sn = {
|
|
375
375
|
__name: "PartnerObjects",
|
|
376
376
|
setup(e) {
|
|
377
|
-
let t = Pt(), n = M(() =>
|
|
377
|
+
let t = Pt(), n = M(() => je.value.get(t.params.id) ?? null), r = M(() => ({
|
|
378
378
|
...ie,
|
|
379
379
|
scope: (e) => e.partner_id === t.params.id
|
|
380
380
|
})), i = M(() => n.value ? S.view(n.value, se("partners", n.value.id, me)) : null);
|
|
@@ -420,8 +420,8 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
420
420
|
__name: "Partners",
|
|
421
421
|
setup(e) {
|
|
422
422
|
let t = {
|
|
423
|
-
...
|
|
424
|
-
objectsRoute:
|
|
423
|
+
...Fe,
|
|
424
|
+
objectsRoute: Pe,
|
|
425
425
|
actions: !0,
|
|
426
426
|
emptyLabel: "exhibition.partner.noObjectsInExhibition"
|
|
427
427
|
};
|
|
@@ -443,9 +443,9 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
443
443
|
setup(e) {
|
|
444
444
|
let t = Mt("items", {
|
|
445
445
|
grammar: "boolean",
|
|
446
|
-
haystack:
|
|
446
|
+
haystack: Ge
|
|
447
447
|
}), n = B(!1);
|
|
448
|
-
|
|
448
|
+
We().then(() => {
|
|
449
449
|
n.value = !0;
|
|
450
450
|
});
|
|
451
451
|
function r(e) {
|
|
@@ -454,7 +454,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
454
454
|
let i = B(""), a = M(() => ({
|
|
455
455
|
entity: "items",
|
|
456
456
|
keys: ["q"],
|
|
457
|
-
scope: (e) =>
|
|
457
|
+
scope: (e) => k.value.has(e.id),
|
|
458
458
|
sort: !1,
|
|
459
459
|
narrow: (e, i) => {
|
|
460
460
|
if (!n.value) return [];
|
|
@@ -462,18 +462,18 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
462
462
|
let a = new Set(e.map((e) => e.id));
|
|
463
463
|
return t.search(i.q).filter((e) => a.has(e.id));
|
|
464
464
|
},
|
|
465
|
-
pageSize:
|
|
465
|
+
pageSize: Qe,
|
|
466
466
|
variant: "grid",
|
|
467
467
|
recordRoute: "item",
|
|
468
468
|
actionLabel: "catalogue.results.seeDatabaseEntry",
|
|
469
|
-
record: (e, { t }) =>
|
|
469
|
+
record: (e, { t }) => $e(e, t),
|
|
470
470
|
pagination: { jump: !0 },
|
|
471
471
|
summary: ({ filters: e, pageInfo: t, t: n }) => [{
|
|
472
472
|
label: n("core.section.database"),
|
|
473
473
|
value: r(e.q) ? n("catalogue.results.allObjects") : `“${e.q}”`
|
|
474
474
|
}, {
|
|
475
475
|
count: t.total,
|
|
476
|
-
value: `${n("catalogue.results.outOf")} ${
|
|
476
|
+
value: `${n("catalogue.results.outOf")} ${k.value.size} ${n("catalogue.results.objects")}`
|
|
477
477
|
}]
|
|
478
478
|
}));
|
|
479
479
|
return (e, t) => (z(), N(b, {
|
|
@@ -512,7 +512,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
512
512
|
__name: "TimelineResults",
|
|
513
513
|
setup(e) {
|
|
514
514
|
return (e, t) => (z(), N(x, {
|
|
515
|
-
spec: U(
|
|
515
|
+
spec: U(Be),
|
|
516
516
|
class: "mwnf-dxa-timeline-results"
|
|
517
517
|
}, {
|
|
518
518
|
before: W(() => [R(g)]),
|
|
@@ -523,7 +523,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
523
523
|
__name: "TimelineGallery",
|
|
524
524
|
setup(e) {
|
|
525
525
|
return (e, t) => (z(), N(b, {
|
|
526
|
-
spec: U(
|
|
526
|
+
spec: U(ze),
|
|
527
527
|
class: "mwnf-dxa-timeline-gallery"
|
|
528
528
|
}, {
|
|
529
529
|
before: W(() => [R(g)]),
|
|
@@ -536,18 +536,18 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
536
536
|
}, Sn = { class: "mwnf-dxa-options-label" }, Cn = {
|
|
537
537
|
__name: "CollectionResults",
|
|
538
538
|
setup(e) {
|
|
539
|
-
let t = Ft(), { t: n } = Y(), r =
|
|
539
|
+
let t = Ft(), { t: n } = Y(), r = Le(), i = ot.keys, a = (e) => i.filter((t) => e[t]).length <= 1;
|
|
540
540
|
function o() {
|
|
541
541
|
t.push({ name: "collection" });
|
|
542
542
|
}
|
|
543
|
-
let s = M(() => new Set((
|
|
543
|
+
let s = M(() => new Set((He.value ?? []).map((e) => e.country_id)));
|
|
544
544
|
function c(e) {
|
|
545
|
-
if (!
|
|
546
|
-
let t =
|
|
545
|
+
if (!Xe.value) return !1;
|
|
546
|
+
let t = tt(e.country);
|
|
547
547
|
return !!(t && s.value.has(t));
|
|
548
548
|
}
|
|
549
549
|
return (e, t) => (z(), N(b, {
|
|
550
|
-
spec: U(
|
|
550
|
+
spec: U(ot),
|
|
551
551
|
class: "mwnf-dxa-collection-results"
|
|
552
552
|
}, {
|
|
553
553
|
before: W(() => [R(g)]),
|
|
@@ -580,7 +580,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
580
580
|
"placeholder",
|
|
581
581
|
"onUpdate:modelValue"
|
|
582
582
|
]),
|
|
583
|
-
(z(!0), F(j, null, V(U(
|
|
583
|
+
(z(!0), F(j, null, V(U(rt), (e) => (z(), N(m, {
|
|
584
584
|
key: e,
|
|
585
585
|
"model-value": i[e],
|
|
586
586
|
options: u[e],
|
|
@@ -623,12 +623,12 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
623
623
|
]), 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
624
|
name: "timeline-results",
|
|
625
625
|
query: {
|
|
626
|
-
country: U(
|
|
626
|
+
country: U(tt)(i.country),
|
|
627
627
|
begin: i.from,
|
|
628
628
|
end: i.to
|
|
629
629
|
}
|
|
630
630
|
} }, {
|
|
631
|
-
default: W(() => [L(H(e.$t("core.section.timeline")) + " | " + H(U(
|
|
631
|
+
default: W(() => [L(H(e.$t("core.section.timeline")) + " | " + H(U(lt)("countries", U(tt)(i.country))), 1)]),
|
|
632
632
|
_: 2
|
|
633
633
|
}, 1032, ["to"])])])) : P("", !0)]),
|
|
634
634
|
_: 1
|
|
@@ -637,7 +637,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
637
637
|
}, wn = { class: "mwnf-dxa-collection-search" }, Tn = {
|
|
638
638
|
__name: "CollectionSearch",
|
|
639
639
|
setup(e) {
|
|
640
|
-
let t = jt(
|
|
640
|
+
let t = jt(qe, st), n = M(() => rt.filter((e) => (t.value[e] ?? []).length > 0)), r = M(() => ({
|
|
641
641
|
mode: "facets",
|
|
642
642
|
target: "collection-results",
|
|
643
643
|
dates: "buckets",
|
|
@@ -648,7 +648,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
648
648
|
options: t.value.country
|
|
649
649
|
}, ...n.value.map((e) => ({
|
|
650
650
|
key: e,
|
|
651
|
-
label:
|
|
651
|
+
label: at[e],
|
|
652
652
|
options: t.value[e]
|
|
653
653
|
}))]
|
|
654
654
|
}));
|
|
@@ -675,16 +675,16 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
675
675
|
}
|
|
676
676
|
},
|
|
677
677
|
setup(e) {
|
|
678
|
-
let t = e, n = M(() => t.variant === "institution"), r = Pt(), i = M(() =>
|
|
678
|
+
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
679
|
entity: "items",
|
|
680
680
|
scope: (e) => e.partner_id === i.value?.id,
|
|
681
681
|
sort: { undated: "first" },
|
|
682
|
-
pageSize:
|
|
682
|
+
pageSize: Qe,
|
|
683
683
|
variant: "grid",
|
|
684
684
|
recordRoute: "item",
|
|
685
685
|
actionLabel: "catalogue.results.seeDatabaseEntry",
|
|
686
686
|
empty: n.value ? t.texts.emptyInstitution : t.texts.emptyPartner,
|
|
687
|
-
record: (e, { t }) =>
|
|
687
|
+
record: (e, { t }) => $e(e, t),
|
|
688
688
|
summary: ({ pageInfo: e, t: r }) => [{
|
|
689
689
|
count: e.total,
|
|
690
690
|
value: r(n.value ? t.texts.institutionSummary : "partner.item.objectsInSite")
|
|
@@ -709,7 +709,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
709
709
|
}, null, 8, ["page-info", "onNavigate"])]),
|
|
710
710
|
after: W(() => [I("div", En, [R(U(Q), {
|
|
711
711
|
class: "mwnf-dxa-profile-link",
|
|
712
|
-
to: U(
|
|
712
|
+
to: U(Ve)(i.value)
|
|
713
713
|
}, {
|
|
714
714
|
default: W(() => [L(" ➤ " + H(n.value ? e.$t(t.texts.institutionProfileLabel) : e.$t(t.texts.partnerProfileLabel)), 1)]),
|
|
715
715
|
_: 1
|
|
@@ -717,7 +717,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
|
|
|
717
717
|
_: 1
|
|
718
718
|
}, 8, ["spec"])) : P("", !0);
|
|
719
719
|
}
|
|
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-
|
|
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-pxrmYfo-.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
721
|
emptyPartner: "exhibition.partnerObjects.emptyPartner",
|
|
722
722
|
emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
|
|
723
723
|
institutionSummary: "exhibition.partner.monumentsInExhibition",
|
|
@@ -922,7 +922,7 @@ function Vn(e) {
|
|
|
922
922
|
component: $,
|
|
923
923
|
props: (e) => ({
|
|
924
924
|
id: String(e.params.id),
|
|
925
|
-
family:
|
|
925
|
+
family: E
|
|
926
926
|
}),
|
|
927
927
|
meta: t("partners", "languages")
|
|
928
928
|
},
|
|
@@ -939,7 +939,7 @@ function Vn(e) {
|
|
|
939
939
|
component: $,
|
|
940
940
|
props: (e) => ({
|
|
941
941
|
id: String(e.params.id),
|
|
942
|
-
family:
|
|
942
|
+
family: E,
|
|
943
943
|
variant: "institution"
|
|
944
944
|
}),
|
|
945
945
|
meta: t("partners", "languages")
|
|
@@ -1037,8 +1037,8 @@ var Kn = {
|
|
|
1037
1037
|
return e?.[a.value] ?? e?.en ?? "";
|
|
1038
1038
|
}
|
|
1039
1039
|
let m = M(() => {
|
|
1040
|
-
let e =
|
|
1041
|
-
return p(e?.name) || p(
|
|
1040
|
+
let e = T.projects?.[T.gallery?.project_id ?? w.value?.project_id];
|
|
1041
|
+
return p(e?.name) || p(T.site?.names) || p(w.value?.names);
|
|
1042
1042
|
});
|
|
1043
1043
|
function h(e, t) {
|
|
1044
1044
|
if (!(e in l.value)) return t();
|
|
@@ -1151,17 +1151,18 @@ var Kn = {
|
|
|
1151
1151
|
},
|
|
1152
1152
|
emits: ["update:language"],
|
|
1153
1153
|
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 ?
|
|
1155
|
-
let e = h.value ? "" :
|
|
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 ? 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(() => {
|
|
1155
|
+
let e = h.value ? "" : Ke(c.value);
|
|
1156
1156
|
if (e) return e;
|
|
1157
|
-
let t = h.value ?
|
|
1157
|
+
let t = h.value ? D.value?.homepage_item_id : D.value?.banner_item_id, n = k.value.get(t);
|
|
1158
1158
|
if (!n) return "";
|
|
1159
|
-
let r =
|
|
1159
|
+
let r = Ie("items", n.id, Ye);
|
|
1160
1160
|
return {
|
|
1161
|
-
name:
|
|
1162
|
-
|
|
1161
|
+
name: lt("items", n.id),
|
|
1162
|
+
holder: r.holder ?? "",
|
|
1163
1163
|
location: r.location ?? "",
|
|
1164
|
-
|
|
1164
|
+
province: h.value ? "" : r.province ?? "",
|
|
1165
|
+
country: lt("countries", n.country_id)
|
|
1165
1166
|
};
|
|
1166
1167
|
}), _ = M(() => [{
|
|
1167
1168
|
label: i("core.nav.about"),
|
|
@@ -1181,8 +1182,8 @@ var Kn = {
|
|
|
1181
1182
|
...e,
|
|
1182
1183
|
image: s(l.chrome, e.image),
|
|
1183
1184
|
alt: e.alt ? i(e.alt) : ""
|
|
1184
|
-
})).filter((e) => e.image) : (
|
|
1185
|
-
image: e.legacy_path ?
|
|
1185
|
+
})).filter((e) => e.image) : (D.value?.logos ?? []).map((e) => ({
|
|
1186
|
+
image: e.legacy_path ? O(e.legacy_path, "full") : null,
|
|
1186
1187
|
alt: v(e),
|
|
1187
1188
|
href: e.url || void 0,
|
|
1188
1189
|
category_id: e.category_id,
|
|
@@ -1197,8 +1198,8 @@ var Kn = {
|
|
|
1197
1198
|
let n = e.slice(t.replace(/\/+$/, "").length + 1).split("/").slice(1).join("/");
|
|
1198
1199
|
return o(l.chrome, n);
|
|
1199
1200
|
}
|
|
1200
|
-
let x = M(() => a(
|
|
1201
|
-
let e =
|
|
1201
|
+
let x = M(() => a(Ne(D.value?.popup_logos?.[c.value] ?? D.value?.popup_logos?.en ?? ""), b)), te = M(() => {
|
|
1202
|
+
let e = D.value?.popup_logo_show;
|
|
1202
1203
|
return e == null ? !1 : typeof e == "boolean" ? e : e[c.value] ?? e.en ?? !1;
|
|
1203
1204
|
});
|
|
1204
1205
|
return (e, t) => (z(), N(ne, {
|
|
@@ -1212,18 +1213,18 @@ var Kn = {
|
|
|
1212
1213
|
"banner-image": g.value,
|
|
1213
1214
|
"banner-caption": ee.value,
|
|
1214
1215
|
"banner-caption-label": U(i)("layout.banner.detailFrom"),
|
|
1215
|
-
"banner-title": p.value ? U(
|
|
1216
|
-
"banner-subtitle": p.value ? U(
|
|
1217
|
-
"banner-headline": p.value ? U(
|
|
1216
|
+
"banner-title": p.value ? U(Ze)(U(c)) : "",
|
|
1217
|
+
"banner-subtitle": p.value ? U(nt)(U(c)) : "",
|
|
1218
|
+
"banner-headline": p.value ? U(it)(U(c)) : "",
|
|
1218
1219
|
"banner-enter": p.value ? {
|
|
1219
1220
|
label: U(i)("exhibition.action.enter"),
|
|
1220
1221
|
href: "#/about"
|
|
1221
1222
|
} : null,
|
|
1222
1223
|
"banner-strapline": p.value ? U(i)("exhibition.identity.strapline") : "",
|
|
1223
1224
|
"hyperlinks-variant": "tiles",
|
|
1224
|
-
"hyperlinks-title": U(
|
|
1225
|
+
"hyperlinks-title": U(Ze)(U(c)),
|
|
1225
1226
|
"hyperlinks-title-href": "#/",
|
|
1226
|
-
"hyperlinks-subtitle": U(
|
|
1227
|
+
"hyperlinks-subtitle": U(nt)(U(c)),
|
|
1227
1228
|
hyperlinks: _.value,
|
|
1228
1229
|
"footer-text": `${U(i)("core.footer.copyright")} 2004–${U(m)}`,
|
|
1229
1230
|
logos: y.value,
|
|
@@ -1406,7 +1407,7 @@ function er({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1406
1407
|
path: "/partner/:country/:id/:language",
|
|
1407
1408
|
async resolve({ country: e, id: t }) {
|
|
1408
1409
|
await q(["partners"]);
|
|
1409
|
-
let n =
|
|
1410
|
+
let n = Ae(e, t);
|
|
1410
1411
|
return n ? {
|
|
1411
1412
|
name: "partner",
|
|
1412
1413
|
params: { id: n.id }
|
|
@@ -1417,7 +1418,7 @@ function er({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1417
1418
|
path: "/partner-objects/:country/:id/:page",
|
|
1418
1419
|
async resolve({ country: e, id: t, page: n }) {
|
|
1419
1420
|
await q(["partners"]);
|
|
1420
|
-
let r =
|
|
1421
|
+
let r = Ae(e, t);
|
|
1421
1422
|
return r ? {
|
|
1422
1423
|
name: "partner-objects",
|
|
1423
1424
|
params: { id: r.id },
|
|
@@ -1441,7 +1442,7 @@ function tr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1441
1442
|
"exhibition",
|
|
1442
1443
|
"partners",
|
|
1443
1444
|
"countries"
|
|
1444
|
-
]), Wn(
|
|
1445
|
+
]), Wn(Ue.value, Je.value, e, t));
|
|
1445
1446
|
return {
|
|
1446
1447
|
datasetPackage: e,
|
|
1447
1448
|
siteName: u.site?.names?.en ?? t,
|
|
@@ -1478,7 +1479,7 @@ function tr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1478
1479
|
section: "timeline",
|
|
1479
1480
|
label: "core.nav.timeline",
|
|
1480
1481
|
to: { name: "timeline" },
|
|
1481
|
-
when: () =>
|
|
1482
|
+
when: () => Xe.value
|
|
1482
1483
|
},
|
|
1483
1484
|
{
|
|
1484
1485
|
section: "related",
|
|
@@ -1593,7 +1594,7 @@ function tr({ datasetPackage: e, siteName: t, origin: n, projectColors: r = {},
|
|
|
1593
1594
|
path: "/database-item/:uid(.*)/:language",
|
|
1594
1595
|
async resolve({ uid: e }) {
|
|
1595
1596
|
await q(["items"]);
|
|
1596
|
-
let t = Gn(
|
|
1597
|
+
let t = Gn(qe.value, e);
|
|
1597
1598
|
return t ? {
|
|
1598
1599
|
name: "item",
|
|
1599
1600
|
params: { id: t.id }
|
|
@@ -1695,7 +1696,8 @@ var nr = {
|
|
|
1695
1696
|
setup(e) {
|
|
1696
1697
|
let t = e;
|
|
1697
1698
|
function n(e) {
|
|
1698
|
-
|
|
1699
|
+
let t = String(e ?? "").replace(/<[^>]*>/g, " ");
|
|
1700
|
+
return (typeof DOMParser > "u" ? t : new DOMParser().parseFromString(t, "text/html").documentElement.textContent ?? "").replace(/\s+/g, " ").trim();
|
|
1699
1701
|
}
|
|
1700
1702
|
function r(e, t) {
|
|
1701
1703
|
if (!e || e.length <= t) return e;
|
|
@@ -1839,7 +1841,7 @@ var nr = {
|
|
|
1839
1841
|
}, Fr = /* @__PURE__ */ e({ default: () => Ur }), Ir = { class: "mwnf-dxa-home" }, Lr = {
|
|
1840
1842
|
key: 0,
|
|
1841
1843
|
class: "mwnf-dxa-home-logos"
|
|
1842
|
-
}, Rr = { class: "mwnf-dxa-home-logos__label" }, zr = { class: "mwnf-dxa-home-logos__list" }, Br = ["src", "alt"], Vr =
|
|
1844
|
+
}, Rr = { class: "mwnf-dxa-home-logos__label" }, zr = { class: "mwnf-dxa-home-logos__list" }, Br = ["src", "alt"], Vr = 3, Hr = 4, Ur = {
|
|
1843
1845
|
__name: "Home",
|
|
1844
1846
|
setup(e) {
|
|
1845
1847
|
let { t, locale: n } = Y(), r = X(), i = M(() => r.links ?? {}), a = M(() => xe(Vr)), s = B([]);
|
|
@@ -1965,7 +1967,7 @@ var nr = {
|
|
|
1965
1967
|
}, ni = /* @__PURE__ */ e({ default: () => ai }), ri = { class: "mwnf-dxa-themes" }, ii = { class: "mwnf-dxa-themes__container" }, ai = {
|
|
1966
1968
|
__name: "Themes",
|
|
1967
1969
|
setup(e) {
|
|
1968
|
-
let { listedThemes: t, romanFor: n, themeText: r } =
|
|
1970
|
+
let { listedThemes: t, romanFor: n, themeText: r } = Me, { t: i, locale: a } = Y(), o = M(() => t.value.map((e) => ({
|
|
1969
1971
|
title: r(e, a.value).title ?? e.internal_name ?? "",
|
|
1970
1972
|
number: n(e.display_order),
|
|
1971
1973
|
children: [{
|
|
@@ -1987,7 +1989,7 @@ var nr = {
|
|
|
1987
1989
|
}, li = {
|
|
1988
1990
|
__name: "ThemeGallery",
|
|
1989
1991
|
setup(e) {
|
|
1990
|
-
let { pictureById: t, pictureParent: n, romanFor: r, themeByRouteId: i, themeText: a, themeTree: o } =
|
|
1992
|
+
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(() => {
|
|
1991
1993
|
let e = /* @__PURE__ */ new Set();
|
|
1992
1994
|
if (!u.value) return e;
|
|
1993
1995
|
for (let r of o.itemsUnder(u.value.id)) {
|
|
@@ -2001,7 +2003,7 @@ var nr = {
|
|
|
2001
2003
|
sort: { undated: "first" },
|
|
2002
2004
|
variant: "grid",
|
|
2003
2005
|
recordRoute: "item",
|
|
2004
|
-
record: (e, t) =>
|
|
2006
|
+
record: (e, t) => $e(e, t.t),
|
|
2005
2007
|
actionLabel: "catalogue.results.seeDatabaseEntry",
|
|
2006
2008
|
empty: "exhibition.theme.noRecords",
|
|
2007
2009
|
summary: () => [{
|
|
@@ -2029,7 +2031,7 @@ var nr = {
|
|
|
2029
2031
|
return (t, n) => (z(), N(dt, {
|
|
2030
2032
|
spec: U(ut),
|
|
2031
2033
|
id: e.id,
|
|
2032
|
-
"data-getter": (e) => U(
|
|
2034
|
+
"data-getter": (e) => U(k).get(e),
|
|
2033
2035
|
class: "mwnf-dxa-item"
|
|
2034
2036
|
}, {
|
|
2035
2037
|
header: W(({ languages: e, language: t, select: n }) => [I("div", di, [R(l, {
|
|
@@ -2066,19 +2068,19 @@ var nr = {
|
|
|
2066
2068
|
return e?.[i.value] ?? e?.en ?? "";
|
|
2067
2069
|
}
|
|
2068
2070
|
function o(e) {
|
|
2069
|
-
return e.document_path ?
|
|
2071
|
+
return e.document_path ? O(e.document_path, "hi_res") : e.url ?? null;
|
|
2070
2072
|
}
|
|
2071
2073
|
function s(e) {
|
|
2072
|
-
return a(e.titles) ?
|
|
2074
|
+
return a(e.titles) ? A(a(e.titles)) : a(e.texts) ? A(a(e.texts)) : o(e) || r("exhibition.relatedCategory.unknown");
|
|
2073
2075
|
}
|
|
2074
2076
|
function c(e) {
|
|
2075
2077
|
if (!a(e.titles)) return "";
|
|
2076
2078
|
let t = [];
|
|
2077
|
-
return (e.entity_location || e.entity_country) && t.push([e.entity_location, e.entity_country ?
|
|
2079
|
+
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(" — ");
|
|
2078
2080
|
}
|
|
2079
2081
|
function l() {
|
|
2080
2082
|
let e = /* @__PURE__ */ new Map();
|
|
2081
|
-
for (let t of
|
|
2083
|
+
for (let t of et.value ?? []) {
|
|
2082
2084
|
let n = e.get(t.category_id);
|
|
2083
2085
|
n ? n.push(t) : e.set(t.category_id, [t]);
|
|
2084
2086
|
}
|
|
@@ -2108,7 +2110,7 @@ var nr = {
|
|
|
2108
2110
|
__name: "Timeline",
|
|
2109
2111
|
setup(e) {
|
|
2110
2112
|
let t = M(() => ({
|
|
2111
|
-
...
|
|
2113
|
+
...Be.value,
|
|
2112
2114
|
entrance: !0
|
|
2113
2115
|
}));
|
|
2114
2116
|
return (e, n) => (z(), N(x, { spec: t.value }, {
|
|
@@ -2122,4 +2124,4 @@ var nr = {
|
|
|
2122
2124
|
}
|
|
2123
2125
|
};
|
|
2124
2126
|
//#endregion
|
|
2125
|
-
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,
|
|
2127
|
+
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,7 @@
|
|
|
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-
|
|
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-Co3f_Shw.js";
|
|
2
2
|
import { t as p } from "./FeaturedRecord-DJfyvfqt.js";
|
|
3
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
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-
|
|
6
|
-
import { t as z } from "./content-
|
|
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
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 };
|