@museumwnf/viewer-layout 3.62.0 → 3.63.1

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/content.js CHANGED
@@ -1,7 +1,7 @@
1
- import { t as e } from "./FeaturedRecord-DaGLHyhD.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 "./PartnerMap-U-Hi2FBi.js";
3
- import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./TimelineEventList-1feZA5t7.js";
1
+ import { n as e, t } from "./FeaturedRecord-Fe19w6_G.js";
2
+ import { a as n, c as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./PartnerMap-DdyMLtgH.js";
3
+ import { a as f, i as p, n as m, o as h, r as g, t as _ } from "./TimelineEventList-CIkKxyQu.js";
4
4
  import { t as v } from "./GlossaryPopover-DbQKXhx9.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-CPANKcOd.js";
6
- import { t as E } from "./content-BNS5U0Xv.js";
7
- export { w as BackLink, b as DynastyList, y as DynastyPopout, d as FacetSelect, e as FeaturedRecord, f as FilterPanel, v as GlossaryPopover, S as GlossaryTool, a as MediaGallery, T as OnDisplayIn, m as Pagination, l as PartnerMap, p as PartnerPanel, t as RecordCredits, i as RecordGrid, n as RecordLanguages, u as RecordList, c as RecordSheet, x as RelatedMedia, s as RelatedRecords, h as ResultsSummary, g as SectionCards, o as SheetSection, r as SourceCredit, E as SpecialFeatures, _ as TimelineEventList, C as TimelineLookup };
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-BH3Bqope.js";
6
+ import { t as E } from "./content-hV5uyd-b.js";
7
+ export { w as BackLink, b as DynastyList, y as DynastyPopout, f as FacetSelect, t as FeaturedRecord, p as FilterPanel, v as GlossaryPopover, S as GlossaryTool, o as MediaGallery, T as OnDisplayIn, h as Pagination, u as PartnerMap, m as PartnerPanel, n as RecordCredits, a as RecordGrid, r as RecordLanguages, d as RecordList, l as RecordSheet, x as RelatedMedia, c as RelatedRecords, g as ResultsSummary, e as SectionCards, s as SheetSection, i as SourceCredit, E as SpecialFeatures, _ as TimelineEventList, C as TimelineLookup };
@@ -0,0 +1,77 @@
1
+ import { n as e } from "./chrome-Bv_mLlHM.js";
2
+ import { partnerView as t, renderInline as n, useSiteConfig as r } from "@museumwnf/viewer-core";
3
+ import { useExhibitionCollection as i, useExhibitionData as a, useExhibitionItemDetail as o, useExhibitionPartner as s, useExhibitionThemes as c, useExhibitionTimeline as l } from "@museumwnf/viewer-core/dxa";
4
+ // src/dxa/exhibition/data.js
5
+ var u = a(), d = i(u), f = l(u, d), p = s(u), m = c(u), { itemDetail: h } = o(u, f), { defaultLang: g, tr: _, md: v, mdInline: y, mdStrip: ee, labelOf: b, loadEnglish: x, exhibition: S, relatedContent: C, items: w, itemById: T, countries: E, timelines: te, visiblePartners: D, visiblePartnerById: O, isHiddenPartner: k, itemRoute: A, partnerRoute: j, partnerObjectsRoute: M, countryLabelFromCode: N, exhibitionTitle: P, exhibitionSubtitle: F, exhibitionHeadline: ne, bannerCaption: I, projectName: L } = u;
6
+ function R(t, n = "hi_res") {
7
+ return e(r().chrome, t) ?? u.chromeImage(t, n);
8
+ }
9
+ var { FACETS: z, haystack: B, tile: re, collectionResults: V, countryIdForCode: ie } = d, H = (e, t) => String(e ?? "").localeCompare(String(t ?? ""), "en", { sensitivity: "base" });
10
+ function U(e, t) {
11
+ let n = String(e ?? "").split(":"), r = String(t ?? "").split(":");
12
+ for (let e = 0; e < Math.max(n.length, r.length); e++) {
13
+ let t = n[e] ?? "", i = r[e] ?? "";
14
+ if (t !== i) return /^\d+$/.test(t) && /^\d+$/.test(i) ? Number(t) - Number(i) : t.localeCompare(i, "en");
15
+ }
16
+ return 0;
17
+ }
18
+ function W(e, t) {
19
+ return H(b("countries", e.country_id), b("countries", t.country_id)) || H(b("partners", e.partner_id), b("partners", t.partner_id)) || U(e.backward_compatibility, t.backward_compatibility);
20
+ }
21
+ var G = {
22
+ pageSize: 20,
23
+ sort: {
24
+ undated: "first",
25
+ tiebreak: (e, t) => W(e, t)
26
+ }
27
+ };
28
+ function K(e) {
29
+ let t = _("items", e.id, g), r = t.dates ?? "";
30
+ return {
31
+ id: e.id,
32
+ image: e.images?.[0]?.url ?? "",
33
+ imageAlt: b("items", e.id),
34
+ name: n(t.name ?? e.internal_name ?? ""),
35
+ date: r.length > 80 ? `${r.slice(0, 80)}...` : r,
36
+ partner: b("partners", e.partner_id),
37
+ place: [t.location, b("countries", e.country_id)].filter(Boolean).join(", "),
38
+ project: L(e, g) ?? "",
39
+ to: A(e)
40
+ };
41
+ }
42
+ var { hasTimeline: q, timelineSpec: J, timelineGallerySpec: Y } = f, { partnerListSpec: X, partnerSheetSpec: Z } = p, Q = {
43
+ countryLabel: (e) => b("countries", e),
44
+ md: v,
45
+ mdInline: y,
46
+ route: j,
47
+ objectsRoute: M,
48
+ hidden: k
49
+ }, $ = {
50
+ spec: {
51
+ ...Z,
52
+ media: () => [],
53
+ sourceCredit: !1
54
+ },
55
+ visible: (e) => !!O(e),
56
+ view: (e, n) => t(e, {
57
+ ..._("partners", e.id, g),
58
+ ...n
59
+ }, Q),
60
+ labels: {
61
+ partner: {
62
+ objects: "exhibition.action.viewItems",
63
+ homepage: "exhibition.partner.homepage"
64
+ },
65
+ institution: {
66
+ objects: "exhibition.action.viewItems",
67
+ homepage: "exhibition.action.institutionHomepage"
68
+ }
69
+ },
70
+ className: "mwnf-dxa-exhibition-profile",
71
+ media: {
72
+ thumbsFrom: 1,
73
+ creditCaption: !1
74
+ },
75
+ legacyMap: { label: "exhibition.partner.mapLabel" }
76
+ };
77
+ export { J as A, $ as C, C as D, j as E, O as M, D as N, m as O, v as S, M as T, w as _, E as a, K as b, S as c, P as d, q as f, A as g, h, V as i, _ as j, Y as k, ne as l, T as m, I as n, N as o, B as p, R as r, g as s, z as t, F as u, b as v, X as w, x, G as y };