@museumwnf/viewer-layout 3.66.1 → 3.67.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@museumwnf/viewer-layout",
3
- "version": "3.66.1",
3
+ "version": "3.67.0",
4
4
  "description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -272,7 +272,7 @@ export function describeGallerySmoke({ config, sharedTexts, ownTexts, manifest,
272
272
  app.unmount()
273
273
  }, 20000)
274
274
 
275
- collectionTest(mountSite, picks.collection, { gallery: true })
275
+ collectionTest(mountSite, picks.collection, { pager: '.mwnf-dxa-gallery-pages' })
276
276
 
277
277
  it("renders the collection entrance as legacy's", async () => {
278
278
  const { app, host } = await mountSite('#/collection')
@@ -811,6 +811,8 @@ export function describeExhibitionSmoke({
811
811
  await vi.waitFor(() => expect(host.querySelector('.mwnf-dxa-theme-page__content')).not.toBeNull(), WAIT)
812
812
  // The numeral is in the section banner's "Theme I ▪ …", as legacy's SubBanner.
813
813
  await vi.waitFor(() => expect(host.querySelector('.mwnf-banner').textContent).toMatch(/ [IVX]+ ▪ /), WAIT)
814
+ // And in the theme's bar, as legacy's deployed client draws it: "IV ▪ Islam in China".
815
+ expect(host.querySelector('.mwnf-dxa-theme-page__theme-title').textContent.trim()).toMatch(/^[IVXLC]+ ▪ \S/)
814
816
  expect(host.querySelector('.mwnf-dxa-theme-page__selected, .mwnf-dxa-theme-page__empty')).not.toBeNull()
815
817
  expect(host.querySelector('.mwnf-dxa-theme-page__tour')).not.toBeNull()
816
818
  if (themePick?.pictureTitle) {
@@ -906,10 +908,16 @@ export function describeExhibitionSmoke({
906
908
 
907
909
  // Legacy's AboutPage is its ThemeComponent on the About theme.
908
910
  it("renders about as legacy's theme page", async () => {
911
+ const [exhibition] = await loadEntities(['exhibition'])
909
912
  const { app, host } = await mountSite('#/about')
910
913
  await vi.waitFor(() => expect(host.querySelector('.mwnf-dxa-about .mwnf-dxa-theme-page__content')).not.toBeNull(), WAIT)
911
914
  expect(host.querySelector('.mwnf-dxa-theme-page__selected, .mwnf-dxa-theme-page__empty')).not.toBeNull()
912
915
  expect(host.textContent).toContain(config.siteName)
916
+ // The exhibition's own audio and video, legacy's "Related Audio/Videos" (theme 0).
917
+ const ownMedia = (exhibition?.media ?? []).filter((entry) => !entry.language || entry.language === 'en')
918
+ if (ownMedia.length) {
919
+ expect(host.querySelectorAll('.mwnf-dxa-theme-page__media-entry')).toHaveLength(ownMedia.length)
920
+ }
913
921
  app.unmount()
914
922
  }, 30000)
915
923
 
@@ -1018,6 +1018,29 @@ a { color: inherit; }
1018
1018
  padding-top: 30px;
1019
1019
  background-color: var(--secondary-color);
1020
1020
  }
1021
+ /* Legacy's "Related Audio/Videos" (ThemeComponent
1022
+ .theme-component-related-av-container): on the contrast colour, 8px in,
1023
+ 20px under what precedes it; the heading bold, 10px over the entries, each
1024
+ 5px over the next, its link in the contrast text colour. */
1025
+ .mwnf-dxa-theme-page__media {
1026
+ margin-top: 20px;
1027
+ padding: 8px;
1028
+ background-color: var(--contrast-color);
1029
+ color: var(--contrast-text-color);
1030
+ }
1031
+ .mwnf-dxa-theme-page__media-heading {
1032
+ margin-bottom: 10px;
1033
+ font-weight: 700;
1034
+ }
1035
+ .mwnf-dxa-theme-page__media-entry {
1036
+ margin-bottom: 5px;
1037
+ }
1038
+ .mwnf-dxa-theme-page__media-entry a {
1039
+ color: var(--contrast-text-color);
1040
+ }
1041
+ .mwnf-dxa-theme-page__media-entry p {
1042
+ margin: 0;
1043
+ }
1021
1044
  .mwnf-dxa-theme-page__links-label {
1022
1045
  padding-top: 10px;
1023
1046
  font-weight: 700;
@@ -299,7 +299,22 @@ a { color: inherit; }
299
299
  min-height: 80px;
300
300
  padding-inline: 14px 12px;
301
301
  }
302
+ /* Legacy centres the title on the page, whatever the widths of the mark and
303
+ the tools beside it, in its 30.4px regular weight (dxa-client Header). */
304
+ .mwnf-header__inner {
305
+ position: relative;
306
+ }
307
+ .mwnf-header__lockup {
308
+ position: absolute;
309
+ top: 50%;
310
+ left: 50%;
311
+ max-width: 45%;
312
+ transform: translate(-50%, -50%);
313
+ flex: none;
314
+ }
302
315
  .mwnf-header__title {
316
+ font-size: 30.4px;
317
+ font-weight: 400;
303
318
  text-transform: uppercase;
304
319
  }
305
320
  .mwnf-header__search-input {
@@ -313,9 +328,12 @@ a { color: inherit; }
313
328
  .mwnf-nav__bar {
314
329
  display: block;
315
330
  }
331
+ /* One equal column per entry across the whole bar: a gallery's six, the
332
+ hub's four (legacy's menu items share the bar's width). */
316
333
  .mwnf-nav__links {
317
334
  display: grid;
318
- grid-template-columns: repeat(6, 1fr);
335
+ grid-auto-flow: column;
336
+ grid-auto-columns: 1fr;
319
337
  width: 100%;
320
338
  }
321
339
  .mwnf-nav__links li {
@@ -337,18 +355,83 @@ a { color: inherit; }
337
355
  .mwnf-nav__notice {
338
356
  line-height: normal;
339
357
  }
358
+ /* Legacy marks no entry as the current one: its tab keeps its shade. */
340
359
  .mwnf-nav__link--active {
341
- background: rgba(0, 0, 0, 0.18);
360
+ background: none;
342
361
  text-decoration: none;
343
362
  }
344
363
  .mwnf-nav__notice-title {
345
364
  font-weight: 700;
346
365
  }
347
366
 
367
+ /* A gallery's pages (dxa-client PagesComponent.vue, dxa/LegacyPages.vue):
368
+ centred 16px underlined words, the current page bold and the unavailable
369
+ ones grey; 30px below, and 30px above the upper one. */
370
+ .mwnf-dxa-gallery-pages {
371
+ display: flex;
372
+ justify-content: center;
373
+ align-items: center;
374
+ margin-bottom: 30px;
375
+ font-size: 16px;
376
+ }
377
+ .mwnf-dxa-gallery-pages--top {
378
+ margin-top: 30px;
379
+ margin-bottom: 0;
380
+ }
381
+ /* The upper pages have the summary's line to themselves, centred on the
382
+ page as legacy's. */
383
+ .mwnf-summary:has(.mwnf-dxa-gallery-pages--top) {
384
+ flex-wrap: wrap;
385
+ }
386
+ .mwnf-summary__actions:has(.mwnf-dxa-gallery-pages--top) {
387
+ flex: 1 0 100%;
388
+ justify-content: center;
389
+ }
390
+ .mwnf-dxa-gallery-pages__numbers {
391
+ display: flex;
392
+ justify-content: center;
393
+ align-items: center;
394
+ }
395
+ .mwnf-dxa-gallery-pages__button {
396
+ margin: 0 5px;
397
+ padding: 5px;
398
+ border: none;
399
+ background: none;
400
+ color: #000000;
401
+ font: inherit;
402
+ text-decoration: underline;
403
+ cursor: pointer;
404
+ }
405
+ .mwnf-dxa-gallery-pages__button.is-disabled {
406
+ color: #707070;
407
+ cursor: default;
408
+ }
409
+ .mwnf-dxa-gallery-pages__numbers .is-disabled {
410
+ font-weight: 700;
411
+ text-decoration: none;
412
+ }
413
+
348
414
  /* The banner is edge to edge inside the column. */
349
415
  .mwnf-banner {
350
416
  padding-inline: 0;
351
417
  }
418
+ /* The caption stays at the band's end when the page has no title, as on the
419
+ hub's galleries list. */
420
+ .mwnf-banner--section .mwnf-banner__caption {
421
+ margin-inline-start: auto;
422
+ line-height: normal;
423
+ }
424
+ /* Legacy's band is 50px at least, its 10px above and below the title's own
425
+ (dxa-client SubBanner): with no title, the caption is centred in 50px. */
426
+ .mwnf-banner--section .mwnf-banner__body {
427
+ min-height: 50px;
428
+ padding-block: 0;
429
+ }
430
+ .mwnf-banner--section .mwnf-banner__title {
431
+ padding-block: 10px;
432
+ font-weight: 400;
433
+ line-height: normal;
434
+ }
352
435
  .mwnf-banner--strip .mwnf-banner__title {
353
436
  font-weight: 700;
354
437
  }
@@ -363,12 +446,12 @@ a { color: inherit; }
363
446
  }
364
447
 
365
448
  @media only screen and (max-width: 974px) {
366
- .mwnf-nav__links { grid-template-columns: repeat(3, 1fr); }
449
+ .mwnf-nav__links { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
367
450
  }
368
451
 
369
452
  @media only screen and (max-width: 599px) {
370
453
  .mwnf-header__inner { min-height: 65px; }
371
- .mwnf-header__lockup { flex-basis: 100%; order: 3; }
454
+ .mwnf-header__lockup { position: static; max-width: none; transform: none; flex-basis: 100%; order: 3; }
372
455
  .mwnf-nav__links { display: none; }
373
456
  .mwnf-nav--open .mwnf-nav__links { display: grid; grid-template-columns: 1fr; }
374
457
  .mwnf-nav__toggle { width: 100%; justify-content: center; font-size: 20px; }
@@ -1,391 +0,0 @@
1
- import { t as e } from "./GlossaryPopover-DbQKXhx9.js";
2
- import { O as t, d as n, j as r, u as i, v as a } from "./data-CtYatYQi.js";
3
- import { n as o } from "./themeSpecs-DePD36Wi.js";
4
- import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, nextTick as ee, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as te, onMounted as ne, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, vModelCheckbox as re, watch as S, withCtx as C, withDirectives as ie } from "vue";
5
- import { glossaryEntries as ae, glossaryTermsForText as oe, renderBlock as w, renderInline as T, useGlossaryPopup as se, useI18n as ce } from "@museumwnf/viewer-core";
6
- import { RouterLink as E, useRoute as le, useRouter as ue } from "vue-router";
7
- // \0rolldown/runtime.js
8
- var D = Object.defineProperty, O = (e, t) => {
9
- let n = {};
10
- for (var r in e) D(n, r, {
11
- get: e[r],
12
- enumerable: !0
13
- });
14
- return t || D(n, Symbol.toStringTag, { value: "Module" }), n;
15
- }, de = ["src", "alt"], fe = ["src"], pe = {
16
- __name: "HoverZoom",
17
- props: {
18
- src: {
19
- type: String,
20
- required: !0
21
- },
22
- alt: {
23
- type: String,
24
- default: ""
25
- }
26
- },
27
- setup(e) {
28
- let t = v(null), n = v(null), r = v(null), i = v(!1);
29
- function a(e) {
30
- let i = t.value?.getBoundingClientRect();
31
- if (!i || !n.value || !r.value) return;
32
- let a = (e.clientX - i.left) / n.value.offsetWidth, o = (e.clientY - i.top) / n.value.offsetHeight;
33
- r.value.style.left = `${-a * (r.value.offsetWidth - n.value.offsetWidth)}px`, r.value.style.top = `${-o * (r.value.offsetHeight - n.value.offsetHeight)}px`;
34
- }
35
- return (o, s) => (_(), d("div", {
36
- ref_key: "box",
37
- ref: t,
38
- class: "mwnf-hover-zoom",
39
- onMouseenter: s[0] ||= (e) => i.value = !0,
40
- onMouseleave: s[1] ||= (e) => i.value = !1,
41
- onMousemove: a
42
- }, [f("img", {
43
- ref_key: "normal",
44
- ref: n,
45
- class: "mwnf-hover-zoom__normal",
46
- style: g({ opacity: +!i.value }),
47
- src: e.src,
48
- alt: e.alt
49
- }, null, 12, de), f("img", {
50
- ref_key: "zoom",
51
- ref: r,
52
- class: "mwnf-hover-zoom__zoom",
53
- style: g({ opacity: +!!i.value }),
54
- src: e.src,
55
- alt: "",
56
- "aria-hidden": "true"
57
- }, null, 12, fe)], 544));
58
- }
59
- }, me = /* @__PURE__ */ O({ default: () => k }), he = { class: "mwnf-dxa-theme-page__band" }, ge = { class: "mwnf-dxa-theme-page__thumbs-frame" }, _e = {
60
- key: 0,
61
- class: "mwnf-dxa-theme-page__arrows"
62
- }, ve = ["aria-label"], ye = ["aria-label"], be = [
63
- "src",
64
- "alt",
65
- "onClick"
66
- ], xe = ["innerHTML"], Se = ["innerHTML"], Ce = {
67
- key: 0,
68
- class: "mwnf-dxa-theme-page__controls"
69
- }, we = { class: "mwnf-dxa-theme-page__control" }, Te = { class: "mwnf-dxa-theme-page__switch" }, Ee = { class: "mwnf-dxa-theme-page__body" }, De = {
70
- key: 0,
71
- class: "mwnf-dxa-theme-page__selected"
72
- }, Oe = { class: "mwnf-dxa-theme-page__lightbox-frame" }, ke = ["src", "alt"], Ae = {
73
- key: 2,
74
- class: "mwnf-dxa-theme-page__details"
75
- }, je = { class: "mwnf-dxa-theme-page__detail mwnf-dxa-theme-page__detail--title" }, Me = ["innerHTML"], Ne = ["innerHTML"], Pe = {
76
- key: 0,
77
- class: "mwnf-dxa-theme-page__detail"
78
- }, Fe = ["innerHTML"], Ie = ["innerHTML"], Le = ["innerHTML"], Re = ["innerHTML"], ze = ["innerHTML"], Be = {
79
- key: 5,
80
- class: "mwnf-dxa-theme-page__detail"
81
- }, Ve = {
82
- key: 1,
83
- class: "mwnf-dxa-theme-page__empty"
84
- }, He = { class: "mwnf-dxa-theme-page__theme-title" }, Ue = { class: "mwnf-dxa-theme-page__title" }, We = ["innerHTML"], Ge = ["innerHTML"], Ke = ["innerHTML"], qe = {
85
- key: 3,
86
- class: "mwnf-dxa-theme-page__related"
87
- }, Je = { class: "mwnf-dxa-theme-page__related-heading" }, Ye = ["innerHTML"], Xe = { class: "mwnf-dxa-theme-page__related-images" }, Ze = { class: "mwnf-dxa-theme-page__related-image mwnf-dxa-theme-page__related-image--main" }, Qe = ["src", "alt"], $e = [
88
- "src",
89
- "alt",
90
- "onClick"
91
- ], et = {
92
- key: 4,
93
- class: "mwnf-dxa-theme-page__related"
94
- }, tt = { class: "mwnf-dxa-theme-page__related-heading" }, nt = { class: "mwnf-dxa-theme-page__justification mwnf-dxa-theme-page__reciprocal" }, rt = ["innerHTML"], it = { key: 1 }, at = { class: "mwnf-dxa-theme-page__related-image" }, ot = ["src", "alt"], st = { class: "mwnf-dxa-theme-page__tour" }, ct = {
95
- key: 5,
96
- class: "mwnf-dxa-theme-page__links"
97
- }, lt = { class: "mwnf-dxa-theme-page__links-inner" }, ut = { class: "mwnf-dxa-theme-page__links-label" }, dt = {
98
- key: 1,
99
- class: "mwnf-loader"
100
- }, k = {
101
- __name: "Theme",
102
- props: { aboutMode: {
103
- type: Boolean,
104
- default: !1
105
- } },
106
- setup(g) {
107
- let D = g, { aboutTheme: O, listedThemes: de, pictureById: fe, pictureParent: me, themeByRouteId: k, themeText: A, useThemePictures: ft } = t, { t: j, locale: M } = ce(), N = le(), pt = ue(), P = c(() => D.aboutMode ? O.value : k(N.params.id)), F = c(() => {
108
- let e = N.params.subtheme;
109
- if (D.aboutMode || !e || e === "overview") return null;
110
- let t = Number(e);
111
- return Number.isInteger(t) && t >= 1 ? t : null;
112
- }), I = c(() => F.value === null ? null : (P.value?.sub_themes ?? [])[F.value - 1] ?? null), L = c(() => I.value ?? P.value), R = ft(L), z = (e) => (e.backRelated ?? []).length > 0, mt = c(() => R.value.some(z)), B = v(!1), V = c(() => B.value ? R.value : R.value.filter((e) => !z(e))), ht = [
113
- [774, 4],
114
- [899, 5],
115
- [1024, 6],
116
- [1199, 7],
117
- [1299, 8]
118
- ], gt = v(typeof window > "u" ? 1366 : window.innerWidth), _t = () => {
119
- gt.value = window.innerWidth;
120
- };
121
- ne(() => window.addEventListener("resize", _t)), te(() => window.removeEventListener("resize", _t));
122
- let vt = c(() => ht.find(([e]) => gt.value <= e)?.[1] ?? 9), yt = c(() => !B.value && V.value.length > vt.value), H = v(null);
123
- function bt(e) {
124
- let t = (H.value?.querySelector("img")?.clientWidth ?? 125) + 50;
125
- H.value?.scrollTo({
126
- left: (H.value.scrollLeft ?? 0) + e * t,
127
- behavior: "smooth"
128
- });
129
- }
130
- let xt = v(!1);
131
- function St(e) {
132
- xt.value = e.clientX > window.innerWidth / 2;
133
- }
134
- let U = v(null), W = v(null);
135
- function Ct() {
136
- let e = Number(N.params.image);
137
- return (R.value.find((t) => t.displayOrder === e) ?? V.value[0] ?? R.value[0])?.id ?? null;
138
- }
139
- function wt() {
140
- U.value = Ct(), W.value = null;
141
- }
142
- ne(wt), S([
143
- () => N.params.id,
144
- () => N.params.subtheme,
145
- () => D.aboutMode
146
- ], () => {
147
- B.value = !1, wt();
148
- }), S(R, (e) => {
149
- e.some((e) => e.id === U.value) || wt();
150
- });
151
- let G = c(() => R.value.find((e) => e.id === U.value) ?? null), K = c(() => W.value === null ? null : G.value?.related?.[W.value] ?? null), q = c(() => K.value?.picture ?? G.value);
152
- function Tt(e) {
153
- U.value = e.id, W.value = null, D.aboutMode || pt.replace({
154
- name: "theme",
155
- params: {
156
- id: N.params.id,
157
- subtheme: N.params.subtheme ?? "overview",
158
- image: String(e.displayOrder)
159
- }
160
- });
161
- }
162
- let Et = v(!1), J = c(() => {
163
- let e = q.value;
164
- if (!e) return null;
165
- let t = fe.value.get(e.id), n = t ? me(t) : null, i = n ? r("items", n.id, M.value) : {}, o = Array.isArray(i.materials) ? i.materials.join(", ") : i.materials ?? "";
166
- return {
167
- caption: K.value ? "" : e.imageCaption ?? "",
168
- name: e.name ?? "",
169
- alsoKnownAs: i.alternate_name ? T(i.alternate_name) : "",
170
- artist: i.artist ? T(i.artist) : "",
171
- materials: o ? T(o) : "",
172
- date: i.dates ? T(i.dates) : "",
173
- dynasty: i.dynasty ? T(i.dynasty) : "",
174
- place: [
175
- i.holder || (n ? a("partners", n.partner_id) : ""),
176
- i.location,
177
- i.province,
178
- n ? a("countries", n.country_id) : ""
179
- ].filter(Boolean).join(", "),
180
- to: e.to ?? null
181
- };
182
- }), Y = c(() => L.value ? A(L.value, M.value) : {}), Dt = c(() => D.aboutMode ? n(M.value) : A(P.value, M.value).title ?? P.value?.internal_name ?? ""), Ot = c(() => D.aboutMode ? i(M.value) : I.value ? A(I.value, M.value).title ?? I.value.internal_name ?? "" : j("exhibition.theme.overview")), X = c(() => !L.value?.id || !G.value?.id || K.value ? "" : r("themes", `${L.value.id}/${G.value.id}`, M.value).contextual_description ?? ""), kt = c(() => oe([
183
- Y.value.quote,
184
- Y.value.presentation,
185
- X.value
186
- ].filter(Boolean).join("\n\n"), M.value)), At = c(() => ae(kt.value)), { active: jt, onClick: Mt, close: Nt } = se(kt), Pt = c(() => jt.value ? w(jt.value.definition, { breaks: !0 }) : ""), Ft = c(() => Y.value.quote ? T(String(Y.value.quote), { glossary: At.value }) : ""), It = c(() => Y.value.presentation ? w(String(Y.value.presentation), {
187
- breaks: !0,
188
- glossary: At.value
189
- }) : ""), Lt = c(() => X.value ? w(String(X.value), {
190
- breaks: !0,
191
- glossary: At.value
192
- }) : ""), Rt = c(() => F.value === null || !G.value ? [] : G.value.related ?? []), Z = c(() => G.value && !K.value ? (G.value.backRelated ?? [])[0] ?? null : null);
193
- function zt() {
194
- let e = R.value.find((e) => e.id === Z.value?.picture?.id);
195
- e && Tt(e);
196
- }
197
- let Q = c(() => {
198
- let e = O.value ? [O.value] : [];
199
- for (let t of de.value) e.push(t, ...t.sub_themes ?? []);
200
- return e;
201
- }), $ = c(() => Q.value.findIndex((e) => e.id === L.value?.id)), Bt = c(() => $.value > 0 ? o(Q.value[$.value - 1]) : null), Vt = c(() => $.value >= 0 && $.value < Q.value.length - 1 ? o(Q.value[$.value + 1]) : null), Ht = c(() => D.aboutMode ? [] : (P.value?.sub_themes ?? []).map((e, t) => ({
202
- index: t + 1,
203
- title: A(e, M.value).title ?? e.internal_name ?? "",
204
- to: o(e)
205
- }))), Ut = c(() => P.value ? o(P.value) : null);
206
- return S(B, () => ee(() => H.value?.scrollTo({ left: 0 }))), (t, n) => L.value ? (_(), d("div", {
207
- key: 0,
208
- class: h(["mwnf-dxa-theme-page", { "mwnf-dxa-theme-page--about": g.aboutMode }])
209
- }, [
210
- f("div", he, [f("div", ge, [yt.value ? (_(), d("div", _e, [f("button", {
211
- type: "button",
212
- class: "mwnf-dxa-theme-page__arrow",
213
- "aria-label": x(j)("core.pagination.previous"),
214
- onClick: n[0] ||= (e) => bt(-1)
215
- }, "‹", 8, ve), f("button", {
216
- type: "button",
217
- class: "mwnf-dxa-theme-page__arrow",
218
- "aria-label": x(j)("core.pagination.next"),
219
- onClick: n[1] ||= (e) => bt(1)
220
- }, "›", 8, ye)])) : u("", !0), x(R).length ? (_(), d("div", {
221
- key: 1,
222
- ref_key: "strip",
223
- ref: H,
224
- class: h(["mwnf-dxa-theme-page__thumbs", { "mwnf-dxa-theme-page__thumbs--scroll": yt.value }])
225
- }, [(_(!0), d(s, null, y(V.value, (e) => (_(), d("div", {
226
- key: e.id,
227
- class: h(["mwnf-dxa-theme-page__thumb", {
228
- "mwnf-dxa-theme-page__thumb--selected": e.id === U.value,
229
- "mwnf-dxa-theme-page__thumb--related": z(e)
230
- }])
231
- }, [f("img", {
232
- src: e.image,
233
- alt: e.imageAlt,
234
- onClick: (t) => Tt(e),
235
- onMouseover: St
236
- }, null, 40, be), f("div", { class: h(["mwnf-dxa-theme-page__tip", { "mwnf-dxa-theme-page__tip--left": xt.value }]) }, [f("div", null, [
237
- e.imageCaption ? (_(), d(s, { key: 0 }, [f("span", { innerHTML: x(T)(e.imageCaption) }, null, 8, xe), n[8] ||= p(", ", -1)], 64)) : u("", !0),
238
- f("i", { innerHTML: e.name }, null, 8, Se),
239
- e.detail ? (_(), d(s, { key: 1 }, [p(", " + b(e.detail), 1)], 64)) : u("", !0)
240
- ])], 2)], 2))), 128))], 2)) : u("", !0)]), mt.value ? (_(), d("div", Ce, [f("div", we, [f("label", Te, [ie(f("input", {
241
- "onUpdate:modelValue": n[2] ||= (e) => B.value = e,
242
- type: "checkbox"
243
- }, null, 512), [[re, B.value]]), n[9] ||= f("span", { class: "mwnf-dxa-theme-page__slider" }, null, -1)]), f("span", { onClick: n[3] ||= (e) => B.value = !B.value }, b(B.value ? x(j)("exhibition.theme.hideRelatedWorks") : x(j)("exhibition.theme.addRelatedWorks")), 1)])])) : u("", !0)]),
244
- f("div", Ee, [x(R).length ? (_(), d("div", De, [
245
- q.value ? (_(), d("div", {
246
- key: 0,
247
- class: "mwnf-dxa-theme-page__picture",
248
- onClick: n[4] ||= (e) => Et.value = !0
249
- }, [m(pe, {
250
- src: q.value.image,
251
- alt: q.value.imageAlt
252
- }, null, 8, ["src", "alt"])])) : u("", !0),
253
- Et.value && q.value ? (_(), d("div", {
254
- key: 1,
255
- class: "mwnf-dxa-theme-page__lightbox",
256
- onClick: n[5] ||= (e) => Et.value = !1
257
- }, [f("div", Oe, [f("img", {
258
- src: q.value.image,
259
- alt: q.value.imageAlt
260
- }, null, 8, ke)])])) : u("", !0),
261
- J.value ? (_(), d("div", Ae, [
262
- f("div", je, [J.value.caption ? (_(), d(s, { key: 0 }, [f("span", { innerHTML: x(T)(J.value.caption) }, null, 8, Me), n[10] ||= p(", ", -1)], 64)) : u("", !0), f("span", { innerHTML: J.value.name }, null, 8, Ne)]),
263
- J.value.alsoKnownAs ? (_(), d("div", Pe, [p(b(x(j)("sheet.field.alsoKnownAs")) + ": ", 1), f("span", { innerHTML: J.value.alsoKnownAs }, null, 8, Fe)])) : u("", !0),
264
- J.value.artist ? (_(), d("div", {
265
- key: 1,
266
- class: "mwnf-dxa-theme-page__detail",
267
- innerHTML: J.value.artist
268
- }, null, 8, Ie)) : u("", !0),
269
- J.value.materials ? (_(), d("div", {
270
- key: 2,
271
- class: "mwnf-dxa-theme-page__detail",
272
- innerHTML: J.value.materials
273
- }, null, 8, Le)) : u("", !0),
274
- J.value.date ? (_(), d("div", {
275
- key: 3,
276
- class: "mwnf-dxa-theme-page__detail",
277
- innerHTML: J.value.date
278
- }, null, 8, Re)) : u("", !0),
279
- J.value.dynasty ? (_(), d("div", {
280
- key: 4,
281
- class: "mwnf-dxa-theme-page__detail",
282
- innerHTML: J.value.dynasty
283
- }, null, 8, ze)) : u("", !0),
284
- J.value.place ? (_(), d("div", Be, b(J.value.place), 1)) : u("", !0),
285
- J.value.to ? (_(), l(x(E), {
286
- key: 6,
287
- to: J.value.to,
288
- class: "mwnf-dxa-theme-page__detail mwnf-dxa-theme-page__entry"
289
- }, {
290
- default: C(() => [p(b(x(j)("exhibition.theme.seeItemEntry")), 1)]),
291
- _: 1
292
- }, 8, ["to"])) : u("", !0)
293
- ])) : u("", !0)
294
- ])) : (_(), d("div", Ve, b(x(j)("exhibition.theme.additionalContent")), 1)), f("div", {
295
- class: "mwnf-dxa-theme-page__content",
296
- onClick: n[7] ||= (...e) => x(Mt) && x(Mt)(...e)
297
- }, [
298
- f("div", He, b(Dt.value), 1),
299
- f("div", Ue, b(Ot.value), 1),
300
- Ft.value ? (_(), d(s, { key: 0 }, [n[11] ||= f("br", null, null, -1), f("div", {
301
- class: "mwnf-dxa-theme-page__quote",
302
- innerHTML: Ft.value
303
- }, null, 8, We)], 64)) : u("", !0),
304
- It.value ? (_(), d(s, { key: 1 }, [n[12] ||= f("br", null, null, -1), f("div", {
305
- class: "mwnf-dxa-theme-page__presentation",
306
- innerHTML: It.value
307
- }, null, 8, Ge)], 64)) : u("", !0),
308
- n[13] ||= f("br", null, null, -1),
309
- Lt.value ? (_(), d("div", {
310
- key: 2,
311
- class: "mwnf-dxa-theme-page__justification",
312
- innerHTML: Lt.value
313
- }, null, 8, Ke)) : u("", !0),
314
- Rt.value.length ? (_(), d("div", qe, [
315
- f("div", Je, b(x(j)("exhibition.related.items")), 1),
316
- K.value?.text ? (_(), d("div", {
317
- key: 0,
318
- class: "mwnf-dxa-theme-page__justification",
319
- innerHTML: x(T)(K.value.text)
320
- }, null, 8, Ye)) : u("", !0),
321
- f("div", Xe, [f("div", Ze, [f("img", {
322
- src: G.value.image,
323
- alt: G.value.imageAlt,
324
- onClick: n[6] ||= (e) => W.value = null
325
- }, null, 8, Qe)]), (_(!0), d(s, null, y(Rt.value, (e, t) => (_(), d("div", {
326
- key: e.picture.id,
327
- class: h(["mwnf-dxa-theme-page__related-image", { "mwnf-dxa-theme-page__thumb--selected": t === W.value }])
328
- }, [f("img", {
329
- src: e.picture.image,
330
- alt: e.picture.imageAlt,
331
- onClick: (e) => W.value = t
332
- }, null, 8, $e)], 2))), 128))])
333
- ])) : u("", !0),
334
- Z.value ? (_(), d("div", et, [
335
- f("div", tt, b(x(j)("exhibition.related.items")), 1),
336
- f("div", nt, [Z.value.reciprocalText ? (_(), d("span", {
337
- key: 0,
338
- innerHTML: x(T)(Z.value.reciprocalText)
339
- }, null, 8, rt)) : (_(), d("span", it, b(x(j)("exhibition.related.reciprocal")), 1))]),
340
- f("div", at, [f("img", {
341
- src: Z.value.picture.image,
342
- alt: Z.value.picture.imageAlt,
343
- onClick: zt
344
- }, null, 8, ot)])
345
- ])) : u("", !0),
346
- f("div", st, [Bt.value ? (_(), l(x(E), {
347
- key: 0,
348
- to: Bt.value,
349
- class: "mwnf-dxa-theme-page__tour-link mwnf-dxa-theme-page__tour-link--previous"
350
- }, {
351
- default: C(() => [p("← " + b(x(j)("core.pagination.previous")), 1)]),
352
- _: 1
353
- }, 8, ["to"])) : u("", !0), Vt.value ? (_(), l(x(E), {
354
- key: 1,
355
- to: Vt.value,
356
- class: "mwnf-dxa-theme-page__tour-link mwnf-dxa-theme-page__tour-link--next"
357
- }, {
358
- default: C(() => [p(b(x(j)("core.pagination.next")) + " →", 1)]),
359
- _: 1
360
- }, 8, ["to"])) : u("", !0)]),
361
- Ht.value.length ? (_(), d("div", ct, [f("div", lt, [
362
- f("div", ut, b(x(j)("exhibition.theme.inThisTheme")), 1),
363
- f("div", null, [m(x(E), {
364
- to: Ut.value,
365
- class: h({ "mwnf-dxa-theme-page__link--current": F.value === null })
366
- }, {
367
- default: C(() => [p(b(x(j)("exhibition.theme.overview")), 1)]),
368
- _: 1
369
- }, 8, ["to", "class"])]),
370
- (_(!0), d(s, null, y(Ht.value, (e) => (_(), d("div", { key: e.index }, [m(x(E), {
371
- to: e.to,
372
- class: h({ "mwnf-dxa-theme-page__link--current": F.value === e.index })
373
- }, {
374
- default: C(() => [p(b(e.index) + ". " + b(e.title), 1)]),
375
- _: 2
376
- }, 1032, ["to", "class"])]))), 128))
377
- ])])) : u("", !0)
378
- ])]),
379
- m(e, {
380
- term: x(jt),
381
- html: Pt.value,
382
- onClose: x(Nt)
383
- }, null, 8, [
384
- "term",
385
- "html",
386
- "onClose"
387
- ])
388
- ], 2)) : (_(), d("div", dt, b(x(j)("exhibition.theme.notInExhibition")), 1));
389
- }
390
- };
391
- export { k as n, O as r, me as t };