@museumwnf/viewer-layout 3.3.0 → 3.4.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,2 +1,2 @@
1
- import { t as e } from "./SiteShell-C3OgZO8p.js";
1
+ import { t as e } from "./SiteShell-4vV2jIzf.js";
2
2
  export { e as SiteShell };
@@ -0,0 +1,38 @@
1
+ import { n as e } from "./chrome-DPuPeWzV.js";
2
+ import { partnerView as t, useSiteConfig as n } from "@museumwnf/viewer-core";
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
+ //#region src/dxa/exhibition/data.js
5
+ var f = o(), p = ee(f), m = u(f, p), h = c(f), g = l(f), { itemDetail: _ } = s(f, m), { defaultLang: v, tr: y, md: b, mdInline: x, mdStrip: S, labelOf: C, loadEnglish: w, exhibition: T, relatedContent: E, items: D, itemById: O, countries: k, timelines: A, visiblePartners: j, visiblePartnerById: M, isHiddenPartner: N, itemRoute: te, partnerRoute: P, partnerObjectsRoute: F, countryLabelFromCode: I, exhibitionTitle: L, exhibitionSubtitle: R, exhibitionHeadline: z, bannerCaption: B } = f;
6
+ function V(t, r = "hi_res") {
7
+ return e(n().chrome, t) ?? f.chromeImage(t, r);
8
+ }
9
+ var { FACETS: H, haystack: U, tile: W, collectionResults: G, countryIdForCode: K } = p, { hasTimeline: q, timelineSpec: J, timelineGallerySpec: Y } = m, { partnerListSpec: X, partnerSheetSpec: Z } = h, Q = {
10
+ countryLabel: (e) => C("countries", e),
11
+ md: b,
12
+ mdInline: x,
13
+ route: P,
14
+ objectsRoute: F,
15
+ hidden: N
16
+ }, $ = {
17
+ spec: {
18
+ ...Z,
19
+ media: () => []
20
+ },
21
+ visible: (e) => !!M(e),
22
+ view: (e, n) => t(e, {
23
+ ...y("partners", e.id, v),
24
+ ...n
25
+ }, Q),
26
+ labels: {
27
+ partner: {
28
+ objects: "partner.action.viewObjects",
29
+ homepage: "partner.nav.homepage"
30
+ },
31
+ institution: {
32
+ objects: "exhibition.action.viewItems",
33
+ homepage: "exhibition.action.institutionHomepage"
34
+ }
35
+ }
36
+ };
37
+ //#endregion
38
+ export { g as A, b as C, F as D, X as E, y as F, d as I, M as L, Y as M, J as N, P as O, A as P, j as R, w as S, $ as T, U as _, B as a, D as b, k as c, v as d, T as f, q as g, L as h, a as i, W as j, E as k, K as l, R as m, r as n, V as o, z as p, i as r, G as s, H as t, I as u, O as v, S as w, C as x, _ as y };
@@ -0,0 +1,40 @@
1
+ import { n as e } from "./chrome-DPuPeWzV.js";
2
+ import { partnerView as t, useSiteConfig as n } from "@museumwnf/viewer-core";
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
+ //#region src/dxa/gallery/data.js
5
+ var f = c(), p = s(f), m = d(f, p), h = u(f, p), { itemDetail: g } = l(f, m), { manifest: _, defaultLang: v, tr: y, md: b, mdInline: x, loadEnglish: S, labelOf: C, gallery: w, items: T, itemById: E, partners: D, countries: O, timelines: k, partnerById: A, itemRoute: j, partnerRoute: M, partnerObjectsRoute: N, itemFromUidPath: P, partnerFromKey: F, pickSiblings: I, siblingUrl: L } = f;
6
+ function R(t, r = "hi_res") {
7
+ return e(n().chrome, t) ?? f.chromeImage(t, r);
8
+ }
9
+ var { FACETS: z, haystack: B, tile: V, collectionResults: H, countryIdForCode: U } = p, { timelineResults: W, timelineGallery: G } = m, { partnerList: K, partnerSheet: q, partnerObjects: J } = h, Y = {
10
+ countryLabel: (e) => C("countries", e),
11
+ md: b,
12
+ mdInline: x,
13
+ route: M,
14
+ objectsRoute: N
15
+ };
16
+ function X(e) {
17
+ let n = (D.value ?? []).filter((e) => e.featured);
18
+ for (let e = n.length - 1; e > 0; e--) {
19
+ let t = Math.floor(Math.random() * (e + 1));
20
+ [n[e], n[t]] = [n[t], n[e]];
21
+ }
22
+ return n.slice(0, e).map((e) => t(e, y("partners", e.id, v), Y));
23
+ }
24
+ var Z = {
25
+ spec: {
26
+ ...q,
27
+ media: () => []
28
+ },
29
+ visible: () => !0,
30
+ view: (e, n) => t(e, {
31
+ ...y("partners", e.id, v),
32
+ ...n
33
+ }, Y),
34
+ labels: { partner: {
35
+ objects: "partner.action.viewObjects",
36
+ homepage: "partner.nav.homepage"
37
+ } }
38
+ };
39
+ //#endregion
40
+ export { W as A, J as C, L as D, I as E, y as M, o as N, V as O, K as S, M as T, S as _, R as a, Z as b, v as c, B as d, E as f, C as g, T as h, a as i, k as j, G as k, X as l, P as m, r as n, H as o, g as p, i as r, U as s, z as t, w as u, _ as v, N as w, F as x, A as y };