@museumwnf/viewer-layout 3.70.0 → 3.71.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/README.md +40 -27
- package/dist/{Theme-DmcJnG3h.js → Theme-DvCv48p7.js} +119 -123
- package/dist/TimelineResultsView-Bn4rC_Se.js +614 -0
- package/dist/dxa.js +509 -489
- package/dist/minisite.js +837 -735
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +1 -1
- package/package.json +6 -4
- package/src/minisite/testing.js +281 -0
- package/src/styles/dxa-exhibition.css +14 -1
- package/src/styles/dxa-gallery.css +9 -3
- package/dist/TimelineResultsView-BF3VoCs_.js +0 -686
package/README.md
CHANGED
|
@@ -22,6 +22,7 @@ all the packages:
|
|
|
22
22
|
| `@museumwnf/viewer-layout/dxa/testing` | DXA family layer | each family's smoke test, `describeGallerySmoke` / `describeExhibitionSmoke` | the site's config, texts and package, in the site's own Vitest |
|
|
23
23
|
| `@museumwnf/viewer-layout/standalone` | standalone family layer | the chrome, home page, item sheet, text page and blocks of Discover Islamic Art, Discover Baroque Art and Sharing History | the entries above and `@museumwnf/viewer-core` |
|
|
24
24
|
| `@museumwnf/viewer-layout/minisite` | mini-site family layer | legacy's virtual exhibitions, one website each: the frame, the home page, the introduction, the exhibition pages, legacy's three windows, the caption rules, `minisiteRoutes` / `minisiteNavigation` / `minisiteSettings` | the entries above and `@museumwnf/viewer-core` |
|
|
25
|
+
| `@museumwnf/viewer-layout/minisite/testing` | mini-site family layer | the family's smoke test, `describeMinisiteSmoke` | the site's config, settings, texts and chrome, in the site's own Vitest |
|
|
25
26
|
| `@museumwnf/viewer-layout/style.css` | — | one stylesheet for every entry, the family styles included | — |
|
|
26
27
|
| `@museumwnf/viewer-layout/tokens.reference.css` | — | every token the package reads, with its fallback | — |
|
|
27
28
|
|
|
@@ -636,12 +637,18 @@ export default galleryConfig({
|
|
|
636
637
|
datasetPackage: '@museumwnf/carpets-data',
|
|
637
638
|
siteName: 'Carpets', // for a package without manifest.site
|
|
638
639
|
origin: 'https://museumwithnofrontiers.github.io/carpets',
|
|
639
|
-
projectColors: { '<project id>': 'mwnf-chip--DCA' }, //
|
|
640
|
+
projectColors: { '<project id>': 'mwnf-chip--DCA' }, // only a project projectChips() cannot tell
|
|
640
641
|
noticeProjects: ['<project id>'], // sheets with the Explore-partner notice
|
|
641
642
|
creditsBody: 'carpets.credits.body',
|
|
642
643
|
})
|
|
643
644
|
```
|
|
644
645
|
|
|
646
|
+
A record's source chip comes from the project's site
|
|
647
|
+
(`manifest.projects[id].home_site`, `projectChips()`): a product's own colour,
|
|
648
|
+
an exhibition's project in the exhibitions' colour, a project with no site in
|
|
649
|
+
the galleries'. `projectColors` names only what that cannot tell (an
|
|
650
|
+
exhibition's package carries no `home_site`), and wins where it is given.
|
|
651
|
+
|
|
645
652
|
`exhibitionConfig` takes the same values (and `partnerObjects`, overrides of
|
|
646
653
|
the shared `exhibition.partnerObjects.*` entries). The config carries the
|
|
647
654
|
family's shell (`GalleryShell` / `ExhibitionShell`), menu, banner, sponsor
|
|
@@ -783,37 +790,43 @@ Art's and Sharing History's are products of their own, with pages of their own
|
|
|
783
790
|
exhibition's own stays in its repository: its settings (`minisite`), its
|
|
784
791
|
theme (`theme/tokens.css`), its legacy pictures and its texts.
|
|
785
792
|
|
|
793
|
+
A mini-site's `dataset.config.js` is one call to its family's factory —
|
|
794
|
+
`minisiteConfig` (Discover Islamic Art's exhibitions), `artintroConfig` (its
|
|
795
|
+
Artistic Introduction), `baroqueartMinisiteConfig` or
|
|
796
|
+
`sharinghistoryMinisiteConfig` — with what is the site's own:
|
|
797
|
+
|
|
786
798
|
```js
|
|
787
|
-
import {
|
|
788
|
-
import
|
|
789
|
-
ISLAMICART_NO_COUNTRY, MinisiteHome, MinisiteShell, minisiteNavigation, minisiteRoutes, minisiteSettings,
|
|
790
|
-
} from '@museumwnf/viewer-layout/minisite'
|
|
799
|
+
import { minisiteConfig } from '@museumwnf/viewer-layout/minisite'
|
|
800
|
+
import exhibition from './minisite.json'
|
|
791
801
|
|
|
792
|
-
const
|
|
793
|
-
const parent = 'https://museumwithnofrontiers.github.io/islamicart'
|
|
802
|
+
const chrome = import.meta.glob('../theme/assets/**/*.{jpg,jpeg,png,gif,svg}', { eager: true, query: '?url', import: 'default' })
|
|
794
803
|
|
|
795
|
-
export default {
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
menuSecondColumnFrom: 7,
|
|
803
|
-
curators: [{ partner: '<uuid>', logo: 'legacy/JO-10.gif', space: 35 }],
|
|
804
|
-
map: {
|
|
805
|
-
thumbnail: 'legacy/intro_map_thumb.jpg',
|
|
806
|
-
picture: (lang, n) => (n ? `legacy/map${n}_${lang}.jpg` : `legacy/map_${lang}.jpg`),
|
|
807
|
-
count: 1,
|
|
808
|
-
},
|
|
809
|
-
noCountry: ISLAMICART_NO_COUNTRY,
|
|
810
|
-
documentTitle: 'MWNF DISCOVER ISLAMIC ART: Exhibition',
|
|
811
|
-
}),
|
|
812
|
-
views: { home: MinisiteHome },
|
|
813
|
-
extraViews: minisiteRoutes(sectionMeta()),
|
|
814
|
-
}
|
|
804
|
+
export default minisiteConfig({
|
|
805
|
+
datasetPackage: '@museumwnf/islamicart-women-data',
|
|
806
|
+
siteName: 'Women', // for a package without manifest.site
|
|
807
|
+
origin: 'https://museumwithnofrontiers.github.io/islamicart-women',
|
|
808
|
+
exhibition, // minisite.json, written by inventory-app's generators
|
|
809
|
+
chrome,
|
|
810
|
+
})
|
|
815
811
|
```
|
|
816
812
|
|
|
813
|
+
The factory reads `minisite.json` (`menuSecondColumnFrom`, `curators`, `maps`,
|
|
814
|
+
and for the other families `social`, `design`, `banner`, `profiles`, `logos`,
|
|
815
|
+
`partnerLinks`), points the frame's links at the parent product next to the
|
|
816
|
+
site's own address (`parentSite(origin, 'islamicart')`), and gives the
|
|
817
|
+
family's no-country rule (`ISLAMICART_NO_COUNTRY`, `BAROQUEART_NO_COUNTRY`) and
|
|
818
|
+
Word document title unless `minisite.json` sets `noCountry` or
|
|
819
|
+
`documentTitle` itself. The pieces it assembles — `MinisiteShell`,
|
|
820
|
+
`minisiteNavigation`, `minisiteSettings`, `minisiteRoutes`, `MinisiteHome` and
|
|
821
|
+
each family's own — stay exported for a site that needs to assemble them
|
|
822
|
+
differently.
|
|
823
|
+
|
|
824
|
+
The family's smoke test is `describeMinisiteSmoke` from
|
|
825
|
+
`@museumwnf/viewer-layout/minisite/testing`, the site's tests/smoke.test.js
|
|
826
|
+
calling it with its config, `minisite.json`, texts, `SOURCES.json` and text
|
|
827
|
+
namespace; it also checks the chrome against `SOURCES.json`
|
|
828
|
+
(`checkChromeSources`, viewer-core).
|
|
829
|
+
|
|
817
830
|
- **Routes** (`minisiteRoutes`): `home`, `introduction`,
|
|
818
831
|
`exhibition` (`/exhibition/<theme>/<page>`, 1-based as legacy's addresses),
|
|
819
832
|
and legacy's windows `credits`, `map` and `zoom`, marked `meta.bare` and drawn
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as e } from "./GlossaryPopover-DbQKXhx9.js";
|
|
2
2
|
import { O as t, c as n, d as r, j as i, u as a, v as o } from "./data-BI5v-QYD.js";
|
|
3
3
|
import { n as s } from "./themeSpecs-CKgLOhlP.js";
|
|
4
|
-
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, nextTick as ee, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as te, onMounted as ne, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, vModelCheckbox as re, watch as
|
|
5
|
-
import { glossaryEntries as
|
|
6
|
-
import { RouterLink as
|
|
4
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, nextTick as ee, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as te, onMounted as ne, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, vModelCheckbox as re, watch as ie, withCtx as C, withDirectives as ae } from "vue";
|
|
5
|
+
import { glossaryEntries as oe, glossaryTermsForText as se, renderBlock as w, renderInline as T, useGlossaryPopup as ce, useI18n as le } from "@museumwnf/viewer-core";
|
|
6
|
+
import { RouterLink as E, useRoute as ue, useRouter as de } from "vue-router";
|
|
7
7
|
// \0rolldown/runtime.js
|
|
8
|
-
var
|
|
8
|
+
var D = Object.defineProperty, O = (e, t) => {
|
|
9
9
|
let n = {};
|
|
10
|
-
for (var r in e)
|
|
10
|
+
for (var r in e) D(n, r, {
|
|
11
11
|
get: e[r],
|
|
12
12
|
enumerable: !0
|
|
13
13
|
});
|
|
14
|
-
return t ||
|
|
15
|
-
},
|
|
14
|
+
return t || D(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
15
|
+
}, fe = ["src", "alt"], pe = ["src"], me = {
|
|
16
16
|
__name: "HoverZoom",
|
|
17
17
|
props: {
|
|
18
18
|
src: {
|
|
@@ -46,7 +46,7 @@ var O = Object.defineProperty, k = (e, t) => {
|
|
|
46
46
|
style: _({ opacity: +!i.value }),
|
|
47
47
|
src: e.src,
|
|
48
48
|
alt: e.alt
|
|
49
|
-
}, null, 12,
|
|
49
|
+
}, null, 12, fe), p("img", {
|
|
50
50
|
ref_key: "zoom",
|
|
51
51
|
ref: r,
|
|
52
52
|
class: "mwnf-hover-zoom__zoom",
|
|
@@ -54,62 +54,62 @@ var O = Object.defineProperty, k = (e, t) => {
|
|
|
54
54
|
src: e.src,
|
|
55
55
|
alt: "",
|
|
56
56
|
"aria-hidden": "true"
|
|
57
|
-
}, null, 12,
|
|
57
|
+
}, null, 12, pe)], 544));
|
|
58
58
|
}
|
|
59
|
-
},
|
|
59
|
+
}, he = /* @__PURE__ */ O({ default: () => k }), ge = { class: "mwnf-dxa-theme-page__band" }, _e = { class: "mwnf-dxa-theme-page__thumbs-frame" }, ve = {
|
|
60
60
|
key: 0,
|
|
61
61
|
class: "mwnf-dxa-theme-page__arrows"
|
|
62
|
-
},
|
|
62
|
+
}, ye = ["aria-label"], be = ["aria-label"], xe = [
|
|
63
63
|
"src",
|
|
64
64
|
"alt",
|
|
65
65
|
"onClick"
|
|
66
|
-
],
|
|
66
|
+
], Se = ["innerHTML"], Ce = ["innerHTML"], we = {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "mwnf-dxa-theme-page__controls"
|
|
69
|
-
},
|
|
69
|
+
}, Te = { class: "mwnf-dxa-theme-page__control" }, Ee = { class: "mwnf-dxa-theme-page__switch" }, De = { class: "mwnf-dxa-theme-page__body" }, Oe = {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: "mwnf-dxa-theme-page__selected"
|
|
72
|
-
},
|
|
72
|
+
}, ke = { class: "mwnf-dxa-theme-page__lightbox-frame" }, Ae = ["src", "alt"], je = {
|
|
73
73
|
key: 2,
|
|
74
74
|
class: "mwnf-dxa-theme-page__details"
|
|
75
|
-
},
|
|
75
|
+
}, Me = { class: "mwnf-dxa-theme-page__detail mwnf-dxa-theme-page__detail--title" }, Ne = ["innerHTML"], Pe = ["innerHTML"], Fe = {
|
|
76
76
|
key: 0,
|
|
77
77
|
class: "mwnf-dxa-theme-page__detail"
|
|
78
|
-
},
|
|
78
|
+
}, Ie = ["innerHTML"], Le = ["innerHTML"], Re = ["innerHTML"], ze = ["innerHTML"], Be = ["innerHTML"], Ve = {
|
|
79
79
|
key: 5,
|
|
80
80
|
class: "mwnf-dxa-theme-page__detail"
|
|
81
|
-
},
|
|
81
|
+
}, He = {
|
|
82
82
|
key: 1,
|
|
83
83
|
class: "mwnf-dxa-theme-page__empty"
|
|
84
|
-
},
|
|
84
|
+
}, Ue = { class: "mwnf-dxa-theme-page__theme-title" }, We = { class: "mwnf-dxa-theme-page__title" }, Ge = ["innerHTML"], Ke = ["innerHTML"], qe = ["innerHTML"], Je = {
|
|
85
85
|
key: 3,
|
|
86
86
|
class: "mwnf-dxa-theme-page__related"
|
|
87
|
-
},
|
|
87
|
+
}, Ye = { class: "mwnf-dxa-theme-page__related-heading" }, Xe = ["innerHTML"], Ze = { class: "mwnf-dxa-theme-page__related-images" }, Qe = { class: "mwnf-dxa-theme-page__related-image mwnf-dxa-theme-page__related-image--main" }, $e = ["src", "alt"], et = [
|
|
88
88
|
"src",
|
|
89
89
|
"alt",
|
|
90
90
|
"onClick"
|
|
91
|
-
],
|
|
91
|
+
], tt = {
|
|
92
92
|
key: 4,
|
|
93
93
|
class: "mwnf-dxa-theme-page__related"
|
|
94
|
-
},
|
|
94
|
+
}, nt = { class: "mwnf-dxa-theme-page__related-heading" }, rt = { class: "mwnf-dxa-theme-page__justification mwnf-dxa-theme-page__reciprocal" }, it = ["innerHTML"], at = { key: 1 }, ot = { class: "mwnf-dxa-theme-page__related-image" }, st = ["src", "alt"], ct = { class: "mwnf-dxa-theme-page__tour" }, lt = {
|
|
95
95
|
key: 5,
|
|
96
96
|
class: "mwnf-dxa-theme-page__links"
|
|
97
|
-
},
|
|
97
|
+
}, ut = { class: "mwnf-dxa-theme-page__links-inner" }, dt = { class: "mwnf-dxa-theme-page__links-label" }, ft = {
|
|
98
98
|
key: 6,
|
|
99
99
|
class: "mwnf-dxa-theme-page__media"
|
|
100
|
-
},
|
|
100
|
+
}, pt = { class: "mwnf-dxa-theme-page__media-heading" }, mt = ["href"], ht = ["innerHTML"], gt = {
|
|
101
101
|
key: 1,
|
|
102
102
|
class: "mwnf-loader"
|
|
103
|
-
},
|
|
103
|
+
}, k = {
|
|
104
104
|
__name: "Theme",
|
|
105
105
|
props: { aboutMode: {
|
|
106
106
|
type: Boolean,
|
|
107
107
|
default: !1
|
|
108
108
|
} },
|
|
109
109
|
setup(_) {
|
|
110
|
-
let
|
|
110
|
+
let D = _, { aboutTheme: O, listedThemes: fe, pictureById: pe, pictureParent: he, romanFor: k, themeByRouteId: _t, themeText: A, useThemePictures: vt } = t, { t: j, locale: M } = le(), N = ue(), yt = de(), P = l(() => D.aboutMode ? O.value : _t(N.params.id)), F = l(() => {
|
|
111
111
|
let e = N.params.subtheme;
|
|
112
|
-
if (
|
|
112
|
+
if (D.aboutMode || !e || e === "overview") return null;
|
|
113
113
|
let t = Number(e);
|
|
114
114
|
return Number.isInteger(t) && t >= 1 ? t : null;
|
|
115
115
|
}), I = l(() => F.value === null ? null : (P.value?.sub_themes ?? [])[F.value - 1] ?? null), L = l(() => I.value ?? P.value), R = vt(L), z = (e) => (e.backRelated ?? []).length > 0, bt = l(() => R.value.some(z)), B = y(!1), V = l(() => B.value ? R.value : R.value.filter((e) => !z(e))), xt = [
|
|
@@ -142,18 +142,18 @@ var O = Object.defineProperty, k = (e, t) => {
|
|
|
142
142
|
function G() {
|
|
143
143
|
U.value = kt(), W.value = null;
|
|
144
144
|
}
|
|
145
|
-
ne(G),
|
|
145
|
+
ne(G), ie([
|
|
146
146
|
() => N.params.id,
|
|
147
147
|
() => N.params.subtheme,
|
|
148
|
-
() =>
|
|
148
|
+
() => D.aboutMode
|
|
149
149
|
], () => {
|
|
150
150
|
B.value = !1, G();
|
|
151
|
-
}),
|
|
151
|
+
}), ie(R, (e) => {
|
|
152
152
|
e.some((e) => e.id === U.value) || G();
|
|
153
153
|
});
|
|
154
154
|
let K = l(() => R.value.find((e) => e.id === U.value) ?? null), q = l(() => W.value === null ? null : K.value?.related?.[W.value] ?? null), J = l(() => q.value?.picture ?? K.value);
|
|
155
155
|
function At(e) {
|
|
156
|
-
U.value = e.id, W.value = null,
|
|
156
|
+
U.value = e.id, W.value = null, D.aboutMode || yt.replace({
|
|
157
157
|
name: "theme",
|
|
158
158
|
params: {
|
|
159
159
|
id: N.params.id,
|
|
@@ -165,15 +165,15 @@ var O = Object.defineProperty, k = (e, t) => {
|
|
|
165
165
|
let jt = y(!1), Y = l(() => {
|
|
166
166
|
let e = J.value;
|
|
167
167
|
if (!e) return null;
|
|
168
|
-
let t =
|
|
168
|
+
let t = pe.value.get(e.id), n = t ? he(t) : null, r = n ? i("items", n.id, M.value) : {}, a = Array.isArray(r.materials) ? r.materials.join(", ") : r.materials ?? "";
|
|
169
169
|
return {
|
|
170
170
|
caption: q.value ? "" : e.imageCaption ?? "",
|
|
171
171
|
name: e.name ?? "",
|
|
172
|
-
alsoKnownAs: r.alternate_name ?
|
|
173
|
-
artist: r.artist ?
|
|
174
|
-
materials: a ?
|
|
175
|
-
date: r.dates ?
|
|
176
|
-
dynasty: r.dynasty ?
|
|
172
|
+
alsoKnownAs: r.alternate_name ? T(r.alternate_name) : "",
|
|
173
|
+
artist: r.artist ? T(r.artist) : "",
|
|
174
|
+
materials: a ? T(a) : "",
|
|
175
|
+
date: r.dates ? T(r.dates) : "",
|
|
176
|
+
dynasty: r.dynasty ? T(r.dynasty) : "",
|
|
177
177
|
place: [
|
|
178
178
|
r.holder || (n ? o("partners", n.partner_id) : ""),
|
|
179
179
|
r.location,
|
|
@@ -183,48 +183,44 @@ var O = Object.defineProperty, k = (e, t) => {
|
|
|
183
183
|
to: e.to ?? null
|
|
184
184
|
};
|
|
185
185
|
}), X = l(() => L.value ? A(L.value, M.value) : {}), Mt = l(() => {
|
|
186
|
-
if (
|
|
186
|
+
if (D.aboutMode) return r(M.value);
|
|
187
187
|
let e = A(P.value, M.value).title ?? P.value?.internal_name ?? "";
|
|
188
|
-
return P.value ? `${
|
|
189
|
-
}), Nt = l(() =>
|
|
190
|
-
X.value.quote,
|
|
191
|
-
X.value.presentation,
|
|
192
|
-
Pt.value
|
|
193
|
-
].filter(Boolean).join("\n\n"), M.value)), It = l(() => ae(Ft.value)), { active: Lt, onClick: Rt, close: zt } = se(Ft), Bt = l(() => Lt.value ? T(Lt.value.definition, { breaks: !0 }) : ""), Vt = l(() => X.value.quote ? E(String(X.value.quote), { glossary: It.value }) : ""), Ht = l(() => X.value.presentation ? T(String(X.value.presentation), {
|
|
188
|
+
return P.value ? `${k(P.value.display_order)} ▪ ${e}` : e;
|
|
189
|
+
}), Nt = l(() => D.aboutMode ? a(M.value) : I.value ? A(I.value, M.value).title ?? I.value.internal_name ?? "" : j("exhibition.theme.overview")), Pt = l(() => !L.value?.id || !K.value?.id || q.value ? "" : i("themes", `${L.value.id}/${K.value.id}`, M.value).contextual_description ?? ""), Ft = l(() => I.value ? X.value.quote : X.value.presentation), It = l(() => se([Ft.value, Pt.value].filter(Boolean).join("\n\n"), M.value)), Lt = l(() => oe(It.value)), { active: Rt, onClick: zt, close: Bt } = ce(It), Vt = l(() => Rt.value ? w(Rt.value.definition, { breaks: !0 }) : ""), Ht = l(() => X.value.quote ? T(String(X.value.quote), { glossary: I.value ? Lt.value : [] }) : ""), Ut = l(() => X.value.presentation ? w(String(X.value.presentation), {
|
|
194
190
|
breaks: !0,
|
|
195
|
-
glossary:
|
|
196
|
-
}) : ""),
|
|
191
|
+
glossary: I.value ? [] : Lt.value
|
|
192
|
+
}) : ""), Wt = l(() => Pt.value ? w(String(Pt.value), {
|
|
197
193
|
breaks: !0,
|
|
198
|
-
glossary:
|
|
199
|
-
}) : ""),
|
|
200
|
-
function
|
|
194
|
+
glossary: Lt.value
|
|
195
|
+
}) : ""), Gt = l(() => F.value === null || !K.value ? [] : K.value.related ?? []), Z = l(() => K.value && !q.value ? (K.value.backRelated ?? [])[0] ?? null : null);
|
|
196
|
+
function Kt() {
|
|
201
197
|
let e = R.value.find((e) => e.id === Z.value?.picture?.id);
|
|
202
198
|
e && At(e);
|
|
203
199
|
}
|
|
204
200
|
let Q = l(() => {
|
|
205
|
-
let e =
|
|
206
|
-
for (let t of
|
|
201
|
+
let e = O.value ? [O.value] : [];
|
|
202
|
+
for (let t of fe.value) e.push(t, ...t.sub_themes ?? []);
|
|
207
203
|
return e;
|
|
208
|
-
}), $ = l(() => Q.value.findIndex((e) => e.id === L.value?.id)),
|
|
204
|
+
}), $ = l(() => Q.value.findIndex((e) => e.id === L.value?.id)), qt = l(() => $.value > 0 ? s(Q.value[$.value - 1]) : null), Jt = l(() => $.value >= 0 && $.value < Q.value.length - 1 ? s(Q.value[$.value + 1]) : null), Yt = l(() => D.aboutMode ? [] : (P.value?.sub_themes ?? []).map((e, t) => ({
|
|
209
205
|
index: t + 1,
|
|
210
206
|
title: A(e, M.value).title ?? e.internal_name ?? "",
|
|
211
207
|
to: s(e)
|
|
212
|
-
}))),
|
|
213
|
-
return
|
|
208
|
+
}))), Xt = l(() => P.value ? s(P.value) : null), Zt = l(() => ((D.aboutMode ? n.value?.media : L.value?.media) ?? []).filter((e) => !e.language || e.language === M.value)), Qt = l(() => Zt.value.filter((e) => e.type === "audio")), $t = l(() => Zt.value.filter((e) => e.type === "video")), en = l(() => Qt.value.length && $t.value.length ? j("exhibition.sheet.relatedAudioVideos") : Qt.value.length ? j("exhibition.sheet.relatedAudio") : j("exhibition.sheet.relatedVideos"));
|
|
209
|
+
return ie(B, () => ee(() => H.value?.scrollTo({ left: 0 }))), (t, n) => L.value ? (v(), f("div", {
|
|
214
210
|
key: 0,
|
|
215
211
|
class: g(["mwnf-dxa-theme-page", { "mwnf-dxa-theme-page--about": _.aboutMode }])
|
|
216
212
|
}, [
|
|
217
|
-
p("div",
|
|
213
|
+
p("div", ge, [p("div", _e, [Tt.value ? (v(), f("div", ve, [p("button", {
|
|
218
214
|
type: "button",
|
|
219
215
|
class: "mwnf-dxa-theme-page__arrow",
|
|
220
216
|
"aria-label": S(j)("core.pagination.previous"),
|
|
221
217
|
onClick: n[0] ||= (e) => Et(-1)
|
|
222
|
-
}, "‹", 8,
|
|
218
|
+
}, "‹", 8, ye), p("button", {
|
|
223
219
|
type: "button",
|
|
224
220
|
class: "mwnf-dxa-theme-page__arrow",
|
|
225
221
|
"aria-label": S(j)("core.pagination.next"),
|
|
226
222
|
onClick: n[1] ||= (e) => Et(1)
|
|
227
|
-
}, "›", 8,
|
|
223
|
+
}, "›", 8, be)])) : d("", !0), S(R).length ? (v(), f("div", {
|
|
228
224
|
key: 1,
|
|
229
225
|
ref_key: "strip",
|
|
230
226
|
ref: H,
|
|
@@ -240,20 +236,20 @@ var O = Object.defineProperty, k = (e, t) => {
|
|
|
240
236
|
alt: e.imageAlt,
|
|
241
237
|
onClick: (t) => At(e),
|
|
242
238
|
onMouseover: Ot
|
|
243
|
-
}, null, 40,
|
|
244
|
-
e.imageCaption ? (v(), f(c, { key: 0 }, [p("span", { innerHTML: S(
|
|
245
|
-
p("i", { innerHTML: e.name }, null, 8,
|
|
239
|
+
}, null, 40, xe), p("div", { class: g(["mwnf-dxa-theme-page__tip", { "mwnf-dxa-theme-page__tip--left": Dt.value }]) }, [p("div", null, [
|
|
240
|
+
e.imageCaption ? (v(), f(c, { key: 0 }, [p("span", { innerHTML: S(T)(e.imageCaption) }, null, 8, Se), n[8] ||= m(", ", -1)], 64)) : d("", !0),
|
|
241
|
+
p("i", { innerHTML: e.name }, null, 8, Ce),
|
|
246
242
|
e.detail ? (v(), f(c, { key: 1 }, [m(", " + x(e.detail), 1)], 64)) : d("", !0)
|
|
247
|
-
])], 2)], 2))), 128))], 2)) : d("", !0)]), bt.value ? (v(), f("div",
|
|
243
|
+
])], 2)], 2))), 128))], 2)) : d("", !0)]), bt.value ? (v(), f("div", we, [p("div", Te, [p("label", Ee, [ae(p("input", {
|
|
248
244
|
"onUpdate:modelValue": n[2] ||= (e) => B.value = e,
|
|
249
245
|
type: "checkbox"
|
|
250
246
|
}, null, 512), [[re, B.value]]), n[9] ||= p("span", { class: "mwnf-dxa-theme-page__slider" }, null, -1)]), p("span", { onClick: n[3] ||= (e) => B.value = !B.value }, x(B.value ? S(j)("exhibition.theme.hideRelatedWorks") : S(j)("exhibition.theme.addRelatedWorks")), 1)])])) : d("", !0)]),
|
|
251
|
-
p("div",
|
|
247
|
+
p("div", De, [S(R).length ? (v(), f("div", Oe, [
|
|
252
248
|
J.value ? (v(), f("div", {
|
|
253
249
|
key: 0,
|
|
254
250
|
class: "mwnf-dxa-theme-page__picture",
|
|
255
251
|
onClick: n[4] ||= (e) => jt.value = !0
|
|
256
|
-
}, [h(
|
|
252
|
+
}, [h(me, {
|
|
257
253
|
src: J.value.image,
|
|
258
254
|
alt: J.value.imageAlt
|
|
259
255
|
}, null, 8, ["src", "alt"])])) : d("", !0),
|
|
@@ -261,128 +257,128 @@ var O = Object.defineProperty, k = (e, t) => {
|
|
|
261
257
|
key: 1,
|
|
262
258
|
class: "mwnf-dxa-theme-page__lightbox",
|
|
263
259
|
onClick: n[5] ||= (e) => jt.value = !1
|
|
264
|
-
}, [p("div",
|
|
260
|
+
}, [p("div", ke, [p("img", {
|
|
265
261
|
src: J.value.image,
|
|
266
262
|
alt: J.value.imageAlt
|
|
267
|
-
}, null, 8,
|
|
268
|
-
Y.value ? (v(), f("div",
|
|
269
|
-
p("div",
|
|
270
|
-
Y.value.alsoKnownAs ? (v(), f("div",
|
|
263
|
+
}, null, 8, Ae)])])) : d("", !0),
|
|
264
|
+
Y.value ? (v(), f("div", je, [
|
|
265
|
+
p("div", Me, [Y.value.caption ? (v(), f(c, { key: 0 }, [p("span", { innerHTML: S(T)(Y.value.caption) }, null, 8, Ne), n[10] ||= m(", ", -1)], 64)) : d("", !0), p("span", { innerHTML: Y.value.name }, null, 8, Pe)]),
|
|
266
|
+
Y.value.alsoKnownAs ? (v(), f("div", Fe, [m(x(S(j)("sheet.field.alsoKnownAs")) + ": ", 1), p("span", { innerHTML: Y.value.alsoKnownAs }, null, 8, Ie)])) : d("", !0),
|
|
271
267
|
Y.value.artist ? (v(), f("div", {
|
|
272
268
|
key: 1,
|
|
273
269
|
class: "mwnf-dxa-theme-page__detail",
|
|
274
270
|
innerHTML: Y.value.artist
|
|
275
|
-
}, null, 8,
|
|
271
|
+
}, null, 8, Le)) : d("", !0),
|
|
276
272
|
Y.value.materials ? (v(), f("div", {
|
|
277
273
|
key: 2,
|
|
278
274
|
class: "mwnf-dxa-theme-page__detail",
|
|
279
275
|
innerHTML: Y.value.materials
|
|
280
|
-
}, null, 8,
|
|
276
|
+
}, null, 8, Re)) : d("", !0),
|
|
281
277
|
Y.value.date ? (v(), f("div", {
|
|
282
278
|
key: 3,
|
|
283
279
|
class: "mwnf-dxa-theme-page__detail",
|
|
284
280
|
innerHTML: Y.value.date
|
|
285
|
-
}, null, 8,
|
|
281
|
+
}, null, 8, ze)) : d("", !0),
|
|
286
282
|
Y.value.dynasty ? (v(), f("div", {
|
|
287
283
|
key: 4,
|
|
288
284
|
class: "mwnf-dxa-theme-page__detail",
|
|
289
285
|
innerHTML: Y.value.dynasty
|
|
290
|
-
}, null, 8,
|
|
291
|
-
Y.value.place ? (v(), f("div",
|
|
292
|
-
Y.value.to ? (v(), u(S(
|
|
286
|
+
}, null, 8, Be)) : d("", !0),
|
|
287
|
+
Y.value.place ? (v(), f("div", Ve, x(Y.value.place), 1)) : d("", !0),
|
|
288
|
+
Y.value.to ? (v(), u(S(E), {
|
|
293
289
|
key: 6,
|
|
294
290
|
to: Y.value.to,
|
|
295
291
|
class: "mwnf-dxa-theme-page__detail mwnf-dxa-theme-page__entry"
|
|
296
292
|
}, {
|
|
297
|
-
default:
|
|
293
|
+
default: C(() => [m(x(S(j)("exhibition.theme.seeItemEntry")), 1)]),
|
|
298
294
|
_: 1
|
|
299
295
|
}, 8, ["to"])) : d("", !0)
|
|
300
296
|
])) : d("", !0)
|
|
301
|
-
])) : (v(), f("div",
|
|
297
|
+
])) : (v(), f("div", He, x(S(j)("exhibition.theme.additionalContent")), 1)), p("div", {
|
|
302
298
|
class: "mwnf-dxa-theme-page__content",
|
|
303
|
-
onClick: n[7] ||= (...e) => S(
|
|
299
|
+
onClick: n[7] ||= (...e) => S(zt) && S(zt)(...e)
|
|
304
300
|
}, [
|
|
305
|
-
p("div",
|
|
306
|
-
p("div",
|
|
307
|
-
|
|
301
|
+
p("div", Ue, x(Mt.value), 1),
|
|
302
|
+
p("div", We, x(Nt.value), 1),
|
|
303
|
+
Ht.value ? (v(), f(c, { key: 0 }, [n[11] ||= p("br", null, null, -1), p("div", {
|
|
308
304
|
class: "mwnf-dxa-theme-page__quote",
|
|
309
|
-
innerHTML: Vt.value
|
|
310
|
-
}, null, 8, We)], 64)) : d("", !0),
|
|
311
|
-
Ht.value ? (v(), f(c, { key: 1 }, [n[12] ||= p("br", null, null, -1), p("div", {
|
|
312
|
-
class: "mwnf-dxa-theme-page__presentation",
|
|
313
305
|
innerHTML: Ht.value
|
|
314
306
|
}, null, 8, Ge)], 64)) : d("", !0),
|
|
307
|
+
Ut.value ? (v(), f(c, { key: 1 }, [n[12] ||= p("br", null, null, -1), p("div", {
|
|
308
|
+
class: "mwnf-dxa-theme-page__presentation",
|
|
309
|
+
innerHTML: Ut.value
|
|
310
|
+
}, null, 8, Ke)], 64)) : d("", !0),
|
|
315
311
|
n[14] ||= p("br", null, null, -1),
|
|
316
|
-
|
|
312
|
+
Wt.value ? (v(), f("div", {
|
|
317
313
|
key: 2,
|
|
318
314
|
class: "mwnf-dxa-theme-page__justification",
|
|
319
|
-
innerHTML:
|
|
320
|
-
}, null, 8,
|
|
321
|
-
|
|
322
|
-
p("div",
|
|
315
|
+
innerHTML: Wt.value
|
|
316
|
+
}, null, 8, qe)) : d("", !0),
|
|
317
|
+
Gt.value.length ? (v(), f("div", Je, [
|
|
318
|
+
p("div", Ye, x(S(j)("exhibition.related.items")), 1),
|
|
323
319
|
q.value?.text ? (v(), f("div", {
|
|
324
320
|
key: 0,
|
|
325
321
|
class: "mwnf-dxa-theme-page__justification",
|
|
326
|
-
innerHTML: S(
|
|
327
|
-
}, null, 8,
|
|
328
|
-
p("div",
|
|
322
|
+
innerHTML: S(T)(q.value.text)
|
|
323
|
+
}, null, 8, Xe)) : d("", !0),
|
|
324
|
+
p("div", Ze, [p("div", Qe, [p("img", {
|
|
329
325
|
src: K.value.image,
|
|
330
326
|
alt: K.value.imageAlt,
|
|
331
327
|
onClick: n[6] ||= (e) => W.value = null
|
|
332
|
-
}, null, 8,
|
|
328
|
+
}, null, 8, $e)]), (v(!0), f(c, null, b(Gt.value, (e, t) => (v(), f("div", {
|
|
333
329
|
key: e.picture.id,
|
|
334
330
|
class: g(["mwnf-dxa-theme-page__related-image", { "mwnf-dxa-theme-page__thumb--selected": t === W.value }])
|
|
335
331
|
}, [p("img", {
|
|
336
332
|
src: e.picture.image,
|
|
337
333
|
alt: e.picture.imageAlt,
|
|
338
334
|
onClick: (e) => W.value = t
|
|
339
|
-
}, null, 8,
|
|
335
|
+
}, null, 8, et)], 2))), 128))])
|
|
340
336
|
])) : d("", !0),
|
|
341
|
-
Z.value ? (v(), f("div",
|
|
342
|
-
p("div",
|
|
343
|
-
p("div",
|
|
337
|
+
Z.value ? (v(), f("div", tt, [
|
|
338
|
+
p("div", nt, x(S(j)("exhibition.related.items")), 1),
|
|
339
|
+
p("div", rt, [Z.value.reciprocalText ? (v(), f("span", {
|
|
344
340
|
key: 0,
|
|
345
|
-
innerHTML: S(
|
|
346
|
-
}, null, 8,
|
|
347
|
-
p("div",
|
|
341
|
+
innerHTML: S(T)(Z.value.reciprocalText)
|
|
342
|
+
}, null, 8, it)) : (v(), f("span", at, x(S(j)("exhibition.related.reciprocal")), 1))]),
|
|
343
|
+
p("div", ot, [p("img", {
|
|
348
344
|
src: Z.value.picture.image,
|
|
349
345
|
alt: Z.value.picture.imageAlt,
|
|
350
|
-
onClick:
|
|
351
|
-
}, null, 8,
|
|
346
|
+
onClick: Kt
|
|
347
|
+
}, null, 8, st)])
|
|
352
348
|
])) : d("", !0),
|
|
353
|
-
p("div",
|
|
349
|
+
p("div", ct, [qt.value ? (v(), u(S(E), {
|
|
354
350
|
key: 0,
|
|
355
|
-
to:
|
|
351
|
+
to: qt.value,
|
|
356
352
|
class: "mwnf-dxa-theme-page__tour-link mwnf-dxa-theme-page__tour-link--previous"
|
|
357
353
|
}, {
|
|
358
|
-
default:
|
|
354
|
+
default: C(() => [m("← " + x(S(j)("core.pagination.previous")), 1)]),
|
|
359
355
|
_: 1
|
|
360
|
-
}, 8, ["to"])) : d("", !0),
|
|
356
|
+
}, 8, ["to"])) : d("", !0), Jt.value ? (v(), u(S(E), {
|
|
361
357
|
key: 1,
|
|
362
|
-
to:
|
|
358
|
+
to: Jt.value,
|
|
363
359
|
class: "mwnf-dxa-theme-page__tour-link mwnf-dxa-theme-page__tour-link--next"
|
|
364
360
|
}, {
|
|
365
|
-
default:
|
|
361
|
+
default: C(() => [m(x(S(j)("core.pagination.next")) + " →", 1)]),
|
|
366
362
|
_: 1
|
|
367
363
|
}, 8, ["to"])) : d("", !0)]),
|
|
368
|
-
|
|
369
|
-
p("div",
|
|
370
|
-
p("div", null, [h(S(
|
|
371
|
-
to:
|
|
364
|
+
Yt.value.length ? (v(), f("div", lt, [p("div", ut, [
|
|
365
|
+
p("div", dt, x(S(j)("exhibition.theme.inThisTheme")), 1),
|
|
366
|
+
p("div", null, [h(S(E), {
|
|
367
|
+
to: Xt.value,
|
|
372
368
|
class: g({ "mwnf-dxa-theme-page__link--current": F.value === null })
|
|
373
369
|
}, {
|
|
374
|
-
default:
|
|
370
|
+
default: C(() => [m(x(S(j)("exhibition.theme.overview")), 1)]),
|
|
375
371
|
_: 1
|
|
376
372
|
}, 8, ["to", "class"])]),
|
|
377
|
-
(v(!0), f(c, null, b(
|
|
373
|
+
(v(!0), f(c, null, b(Yt.value, (e) => (v(), f("div", { key: e.index }, [h(S(E), {
|
|
378
374
|
to: e.to,
|
|
379
375
|
class: g({ "mwnf-dxa-theme-page__link--current": F.value === e.index })
|
|
380
376
|
}, {
|
|
381
|
-
default:
|
|
377
|
+
default: C(() => [m(x(e.index) + ". " + x(e.title), 1)]),
|
|
382
378
|
_: 2
|
|
383
379
|
}, 1032, ["to", "class"])]))), 128))
|
|
384
380
|
])])) : d("", !0),
|
|
385
|
-
|
|
381
|
+
Zt.value.length ? (v(), f("div", ft, [p("div", pt, x(en.value), 1), (v(!0), f(c, null, b([...Qt.value, ...$t.value], (e) => (v(), f("div", {
|
|
386
382
|
key: e.url,
|
|
387
383
|
class: "mwnf-dxa-theme-page__media-entry"
|
|
388
384
|
}, [p("a", {
|
|
@@ -392,21 +388,21 @@ var O = Object.defineProperty, k = (e, t) => {
|
|
|
392
388
|
}, [n[13] ||= p("span", {
|
|
393
389
|
class: "mwnf-dxa-theme-page__media-icon",
|
|
394
390
|
"aria-hidden": "true"
|
|
395
|
-
}, "↗", -1), m(" " + x(e.title), 1)], 8,
|
|
391
|
+
}, "↗", -1), m(" " + x(e.title), 1)], 8, mt), e.description ? (v(), f("p", {
|
|
396
392
|
key: 0,
|
|
397
|
-
innerHTML: S(
|
|
398
|
-
}, null, 8,
|
|
393
|
+
innerHTML: S(T)(e.description)
|
|
394
|
+
}, null, 8, ht)) : d("", !0)]))), 128))])) : d("", !0)
|
|
399
395
|
])]),
|
|
400
396
|
h(e, {
|
|
401
|
-
term: S(
|
|
402
|
-
html:
|
|
403
|
-
onClose: S(
|
|
397
|
+
term: S(Rt),
|
|
398
|
+
html: Vt.value,
|
|
399
|
+
onClose: S(Bt)
|
|
404
400
|
}, null, 8, [
|
|
405
401
|
"term",
|
|
406
402
|
"html",
|
|
407
403
|
"onClose"
|
|
408
404
|
])
|
|
409
|
-
], 2)) : (v(), f("div",
|
|
405
|
+
], 2)) : (v(), f("div", gt, x(S(j)("exhibition.theme.notInExhibition")), 1));
|
|
410
406
|
}
|
|
411
407
|
};
|
|
412
|
-
export {
|
|
408
|
+
export { k as n, O as r, he as t };
|