@museumwnf/viewer-layout 3.69.0 → 3.70.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.
@@ -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 C, withCtx as w, withDirectives as ie } from "vue";
5
- import { glossaryEntries as ae, glossaryTermsForText as oe, renderBlock as T, renderInline as E, useGlossaryPopup as se, useI18n as ce } from "@museumwnf/viewer-core";
6
- import { RouterLink as D, useRoute as le, useRouter as ue } from "vue-router";
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 O = Object.defineProperty, k = (e, t) => {
8
+ var D = Object.defineProperty, O = (e, t) => {
9
9
  let n = {};
10
- for (var r in e) O(n, r, {
10
+ for (var r in e) D(n, r, {
11
11
  get: e[r],
12
12
  enumerable: !0
13
13
  });
14
- return t || O(n, Symbol.toStringTag, { value: "Module" }), n;
15
- }, de = ["src", "alt"], fe = ["src"], pe = {
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, de), p("img", {
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, fe)], 544));
57
+ }, null, 12, pe)], 544));
58
58
  }
59
- }, me = /* @__PURE__ */ k({ default: () => gt }), he = { class: "mwnf-dxa-theme-page__band" }, ge = { class: "mwnf-dxa-theme-page__thumbs-frame" }, _e = {
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
- }, ve = ["aria-label"], ye = ["aria-label"], be = [
62
+ }, ye = ["aria-label"], be = ["aria-label"], xe = [
63
63
  "src",
64
64
  "alt",
65
65
  "onClick"
66
- ], xe = ["innerHTML"], Se = ["innerHTML"], Ce = {
66
+ ], Se = ["innerHTML"], Ce = ["innerHTML"], we = {
67
67
  key: 0,
68
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 = {
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
- }, Oe = { class: "mwnf-dxa-theme-page__lightbox-frame" }, ke = ["src", "alt"], Ae = {
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
- }, je = { class: "mwnf-dxa-theme-page__detail mwnf-dxa-theme-page__detail--title" }, Me = ["innerHTML"], Ne = ["innerHTML"], Pe = {
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
- }, Fe = ["innerHTML"], Ie = ["innerHTML"], Le = ["innerHTML"], Re = ["innerHTML"], ze = ["innerHTML"], Be = {
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
- }, Ve = {
81
+ }, He = {
82
82
  key: 1,
83
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 = {
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
- }, 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 = [
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
- ], et = {
91
+ ], tt = {
92
92
  key: 4,
93
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 = {
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
- }, lt = { class: "mwnf-dxa-theme-page__links-inner" }, ut = { class: "mwnf-dxa-theme-page__links-label" }, dt = {
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
- }, ft = { class: "mwnf-dxa-theme-page__media-heading" }, pt = ["href"], mt = ["innerHTML"], ht = {
100
+ }, pt = { class: "mwnf-dxa-theme-page__media-heading" }, mt = ["href"], ht = ["innerHTML"], gt = {
101
101
  key: 1,
102
102
  class: "mwnf-loader"
103
- }, gt = {
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 O = _, { aboutTheme: k, listedThemes: de, pictureById: fe, pictureParent: me, romanFor: gt, themeByRouteId: _t, themeText: A, useThemePictures: vt } = t, { t: j, locale: M } = ce(), N = le(), yt = ue(), P = l(() => O.aboutMode ? k.value : _t(N.params.id)), F = l(() => {
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 (O.aboutMode || !e || e === "overview") return null;
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), C([
145
+ ne(G), ie([
146
146
  () => N.params.id,
147
147
  () => N.params.subtheme,
148
- () => O.aboutMode
148
+ () => D.aboutMode
149
149
  ], () => {
150
150
  B.value = !1, G();
151
- }), C(R, (e) => {
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, O.aboutMode || yt.replace({
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 = fe.value.get(e.id), n = t ? me(t) : null, r = n ? i("items", n.id, M.value) : {}, a = Array.isArray(r.materials) ? r.materials.join(", ") : r.materials ?? "";
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 ? E(r.alternate_name) : "",
173
- artist: r.artist ? E(r.artist) : "",
174
- materials: a ? E(a) : "",
175
- date: r.dates ? E(r.dates) : "",
176
- dynasty: r.dynasty ? E(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 (O.aboutMode) return r(M.value);
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 ? `${gt(P.value.display_order)} ▪ ${e}` : e;
189
- }), Nt = l(() => O.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(() => oe([
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: It.value
196
- }) : ""), Ut = l(() => Pt.value ? T(String(Pt.value), {
191
+ glossary: I.value ? [] : Lt.value
192
+ }) : ""), Wt = l(() => Pt.value ? w(String(Pt.value), {
197
193
  breaks: !0,
198
- glossary: It.value
199
- }) : ""), Wt = l(() => F.value === null || !K.value ? [] : K.value.related ?? []), Z = l(() => K.value && !q.value ? (K.value.backRelated ?? [])[0] ?? null : null);
200
- function Gt() {
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 = k.value ? [k.value] : [];
206
- for (let t of de.value) e.push(t, ...t.sub_themes ?? []);
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)), Kt = l(() => $.value > 0 ? s(Q.value[$.value - 1]) : null), qt = l(() => $.value >= 0 && $.value < Q.value.length - 1 ? s(Q.value[$.value + 1]) : null), Jt = l(() => O.aboutMode ? [] : (P.value?.sub_themes ?? []).map((e, t) => ({
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
- }))), Yt = l(() => P.value ? s(P.value) : null), Xt = l(() => ((O.aboutMode ? n.value?.media : L.value?.media) ?? []).filter((e) => !e.language || e.language === M.value)), Zt = l(() => Xt.value.filter((e) => e.type === "audio")), Qt = l(() => Xt.value.filter((e) => e.type === "video")), $t = l(() => Zt.value.length && Qt.value.length ? j("exhibition.sheet.relatedAudioVideos") : Zt.value.length ? j("exhibition.sheet.relatedAudio") : j("exhibition.sheet.relatedVideos"));
213
- return C(B, () => ee(() => H.value?.scrollTo({ left: 0 }))), (t, n) => L.value ? (v(), f("div", {
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", he, [p("div", ge, [Tt.value ? (v(), f("div", _e, [p("button", {
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, ve), p("button", {
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, ye)])) : d("", !0), S(R).length ? (v(), f("div", {
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, be), p("div", { class: g(["mwnf-dxa-theme-page__tip", { "mwnf-dxa-theme-page__tip--left": Dt.value }]) }, [p("div", null, [
244
- e.imageCaption ? (v(), f(c, { key: 0 }, [p("span", { innerHTML: S(E)(e.imageCaption) }, null, 8, xe), n[8] ||= m(", ", -1)], 64)) : d("", !0),
245
- p("i", { innerHTML: e.name }, null, 8, Se),
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", Ce, [p("div", we, [p("label", Te, [ie(p("input", {
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", Ee, [S(R).length ? (v(), f("div", De, [
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(pe, {
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", Oe, [p("img", {
260
+ }, [p("div", ke, [p("img", {
265
261
  src: J.value.image,
266
262
  alt: J.value.imageAlt
267
- }, null, 8, ke)])])) : d("", !0),
268
- Y.value ? (v(), f("div", Ae, [
269
- p("div", je, [Y.value.caption ? (v(), f(c, { key: 0 }, [p("span", { innerHTML: S(E)(Y.value.caption) }, null, 8, Me), n[10] ||= m(", ", -1)], 64)) : d("", !0), p("span", { innerHTML: Y.value.name }, null, 8, Ne)]),
270
- Y.value.alsoKnownAs ? (v(), f("div", Pe, [m(x(S(j)("sheet.field.alsoKnownAs")) + ": ", 1), p("span", { innerHTML: Y.value.alsoKnownAs }, null, 8, Fe)])) : d("", !0),
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, Ie)) : d("", !0),
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, Le)) : d("", !0),
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, Re)) : d("", !0),
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, ze)) : d("", !0),
291
- Y.value.place ? (v(), f("div", Be, x(Y.value.place), 1)) : d("", !0),
292
- Y.value.to ? (v(), u(S(D), {
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: w(() => [m(x(S(j)("exhibition.theme.seeItemEntry")), 1)]),
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", Ve, x(S(j)("exhibition.theme.additionalContent")), 1)), p("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(Rt) && S(Rt)(...e)
299
+ onClick: n[7] ||= (...e) => S(zt) && S(zt)(...e)
304
300
  }, [
305
- p("div", He, x(Mt.value), 1),
306
- p("div", Ue, x(Nt.value), 1),
307
- Vt.value ? (v(), f(c, { key: 0 }, [n[11] ||= p("br", null, null, -1), p("div", {
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
- Ut.value ? (v(), f("div", {
312
+ Wt.value ? (v(), f("div", {
317
313
  key: 2,
318
314
  class: "mwnf-dxa-theme-page__justification",
319
- innerHTML: Ut.value
320
- }, null, 8, Ke)) : d("", !0),
321
- Wt.value.length ? (v(), f("div", qe, [
322
- p("div", Je, x(S(j)("exhibition.related.items")), 1),
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(E)(q.value.text)
327
- }, null, 8, Ye)) : d("", !0),
328
- p("div", Xe, [p("div", Ze, [p("img", {
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, Qe)]), (v(!0), f(c, null, b(Wt.value, (e, t) => (v(), f("div", {
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, $e)], 2))), 128))])
335
+ }, null, 8, et)], 2))), 128))])
340
336
  ])) : d("", !0),
341
- Z.value ? (v(), f("div", et, [
342
- p("div", tt, x(S(j)("exhibition.related.items")), 1),
343
- p("div", nt, [Z.value.reciprocalText ? (v(), f("span", {
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(E)(Z.value.reciprocalText)
346
- }, null, 8, rt)) : (v(), f("span", it, x(S(j)("exhibition.related.reciprocal")), 1))]),
347
- p("div", at, [p("img", {
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: Gt
351
- }, null, 8, ot)])
346
+ onClick: Kt
347
+ }, null, 8, st)])
352
348
  ])) : d("", !0),
353
- p("div", st, [Kt.value ? (v(), u(S(D), {
349
+ p("div", ct, [qt.value ? (v(), u(S(E), {
354
350
  key: 0,
355
- to: Kt.value,
351
+ to: qt.value,
356
352
  class: "mwnf-dxa-theme-page__tour-link mwnf-dxa-theme-page__tour-link--previous"
357
353
  }, {
358
- default: w(() => [m("← " + x(S(j)("core.pagination.previous")), 1)]),
354
+ default: C(() => [m("← " + x(S(j)("core.pagination.previous")), 1)]),
359
355
  _: 1
360
- }, 8, ["to"])) : d("", !0), qt.value ? (v(), u(S(D), {
356
+ }, 8, ["to"])) : d("", !0), Jt.value ? (v(), u(S(E), {
361
357
  key: 1,
362
- to: qt.value,
358
+ to: Jt.value,
363
359
  class: "mwnf-dxa-theme-page__tour-link mwnf-dxa-theme-page__tour-link--next"
364
360
  }, {
365
- default: w(() => [m(x(S(j)("core.pagination.next")) + " →", 1)]),
361
+ default: C(() => [m(x(S(j)("core.pagination.next")) + " →", 1)]),
366
362
  _: 1
367
363
  }, 8, ["to"])) : d("", !0)]),
368
- Jt.value.length ? (v(), f("div", ct, [p("div", lt, [
369
- p("div", ut, x(S(j)("exhibition.theme.inThisTheme")), 1),
370
- p("div", null, [h(S(D), {
371
- to: Yt.value,
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: w(() => [m(x(S(j)("exhibition.theme.overview")), 1)]),
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(Jt.value, (e) => (v(), f("div", { key: e.index }, [h(S(D), {
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: w(() => [m(x(e.index) + ". " + x(e.title), 1)]),
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
- Xt.value.length ? (v(), f("div", dt, [p("div", ft, x($t.value), 1), (v(!0), f(c, null, b([...Zt.value, ...Qt.value], (e) => (v(), f("div", {
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, pt), e.description ? (v(), f("p", {
391
+ }, "↗", -1), m(" " + x(e.title), 1)], 8, mt), e.description ? (v(), f("p", {
396
392
  key: 0,
397
- innerHTML: S(E)(e.description)
398
- }, null, 8, mt)) : d("", !0)]))), 128))])) : d("", !0)
393
+ innerHTML: S(T)(e.description)
394
+ }, null, 8, ht)) : d("", !0)]))), 128))])) : d("", !0)
399
395
  ])]),
400
396
  h(e, {
401
- term: S(Lt),
402
- html: Bt.value,
403
- onClose: S(zt)
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", ht, x(S(j)("exhibition.theme.notInExhibition")), 1));
405
+ ], 2)) : (v(), f("div", gt, x(S(j)("exhibition.theme.notInExhibition")), 1));
410
406
  }
411
407
  };
412
- export { gt as n, k as r, me as t };
408
+ export { k as n, O as r, he as t };
package/dist/dxa.js CHANGED
@@ -9,7 +9,7 @@ import { t as Xe } from "./SiteShell-UsZ_cpe9.js";
9
9
  import { i as Ze, n as Qe, r as $e, t as et } from "./chrome-Bv_mLlHM.js";
10
10
  import { i as tt } from "./PageShell-CIGVv7sK.js";
11
11
  import { n as nt, t as rt } from "./LegacyItemSheet-B4Ob4upz.js";
12
- import { n as it, r as D } from "./Theme-DmcJnG3h.js";
12
+ import { n as it, r as D } from "./Theme-DvCv48p7.js";
13
13
  import { n as at, r as ot, t as st } from "./themeSpecs-CKgLOhlP.js";
14
14
  import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as ct, createTextVNode as P, createVNode as F, normalizeClass as I, normalizeStyle as lt, onBeforeUnmount as ut, onMounted as dt, openBlock as L, reactive as ft, ref as R, renderList as z, renderSlot as pt, resolveDynamicComponent as mt, toDisplayString as B, unref as V, vModelCheckbox as ht, vModelSelect as gt, vModelText as _t, vShow as vt, watch as yt, watchEffect as bt, withCtx as H, withDirectives as U, withModifiers as xt } from "vue";
15
15
  import { I18nText as W, NotFoundView as St, languageLabels as Ct, loadEntities as wt, mwnfLinks as G, offeredLanguages as Tt, renderBlock as Et, renderInline as K, renderPlain as Dt, sectionMeta as Ot, useDataPackage as kt, useFacets as At, useI18n as q, useKeywordIndex as jt, useSection as Mt, useSiteConfig as Nt, withEraWords as Pt, yearBuckets as J, yearBucketsFromRange as Ft } from "@museumwnf/viewer-core";
@@ -203,19 +203,11 @@ var Zt = {
203
203
  }, Qt = "mwnf3:institutions:";
204
204
  function Z(e) {
205
205
  let t = e?.own_project;
206
- if (String(e?.backward_compatibility ?? "").startsWith(Qt)) {
207
- let t = Zt[e.level] ?? null;
208
- return t ? {
209
- name: "",
210
- status: t,
211
- tone: "institution"
212
- } : null;
213
- }
214
206
  if (!t?.name) return null;
215
- let n = String(t.backward_compatibility ?? "").split(":").pop().toUpperCase();
207
+ let n = String(t.backward_compatibility ?? "").split(":").pop().toUpperCase(), r = String(e?.backward_compatibility ?? "").startsWith(Qt) ? e.level : t.level;
216
208
  return {
217
209
  name: t.name,
218
- status: t.exhibition ? Zt.partner : Zt[t.level] ?? null,
210
+ status: t.exhibition ? Zt.partner : Zt[r] ?? null,
219
211
  tone: t.exhibition ? "exh" : Jt[n] ?? ""
220
212
  };
221
213
  }
@@ -806,7 +798,7 @@ var $t = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, en = { class:
806
798
  key: 0,
807
799
  class: "mwnf-dxa-gallery-partners__city"
808
800
  }, jr = {
809
- key: 1,
801
+ key: 0,
810
802
  class: "mwnf-dxa-partner-badge__status"
811
803
  }, Mr = { class: "mwnf-dxa-gallery-partners__links" }, Nr = { class: "mwnf-dxa-gallery-partners__logo" }, Pr = ["src", "alt"], Fr = {
812
804
  __name: "Partners",
@@ -839,7 +831,7 @@ var $t = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, en = { class:
839
831
  V(Z)(e) ? (L(), M("div", {
840
832
  key: 0,
841
833
  class: I(["mwnf-dxa-partner-badge", V(Z)(e).tone && `mwnf-dxa-partner-badge--${V(Z)(e).tone}`])
842
- }, [V(Z)(e).name ? (L(), M(O, { key: 0 }, [P(B(V(Z)(e).name + " "), 1)], 64)) : j("", !0), V(Z)(e).status ? (L(), M("span", jr, B(r(V(Z)(e).status)), 1)) : j("", !0)], 2)) : j("", !0),
834
+ }, [P(B(V(Z)(e).name + " "), 1), V(Z)(e).status ? (L(), M("span", jr, B(r(V(Z)(e).status)), 1)) : j("", !0)], 2)) : j("", !0),
843
835
  N("div", Mr, [F(n, { to: t.route }, {
844
836
  default: H(() => [P(B(r("partner.action.readMore")), 1)]),
845
837
  _: 2
@@ -1635,7 +1627,7 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
1635
1627
  _: 1
1636
1628
  }, 8, ["spec"])])) : j("", !0);
1637
1629
  }
1638
- }, Xa = () => Promise.resolve().then(() => as), Za = () => Promise.resolve().then(() => ms), Qa = () => Promise.resolve().then(() => gs), $a = () => Promise.resolve().then(() => Ms), eo = () => Promise.resolve().then(() => Fs), to = () => Promise.resolve().then(() => Rs), no = () => import("./Theme-DmcJnG3h.js").then((e) => e.t), ro = () => Promise.resolve().then(() => nc), io = () => Promise.resolve().then(() => xc), ao = () => Promise.resolve().then(() => Cc), oo = () => Promise.resolve().then(() => zc), so = {
1630
+ }, Xa = () => Promise.resolve().then(() => as), Za = () => Promise.resolve().then(() => ms), Qa = () => Promise.resolve().then(() => gs), $a = () => Promise.resolve().then(() => Ms), eo = () => Promise.resolve().then(() => Fs), to = () => Promise.resolve().then(() => Rs), no = () => import("./Theme-DvCv48p7.js").then((e) => e.t), ro = () => Promise.resolve().then(() => nc), io = () => Promise.resolve().then(() => xc), ao = () => Promise.resolve().then(() => Cc), oo = () => Promise.resolve().then(() => zc), so = {
1639
1631
  emptyPartner: "exhibition.partnerObjects.emptyPartner",
1640
1632
  emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
1641
1633
  institutionSummary: "exhibition.partner.monumentsInExhibition",
@@ -2112,7 +2104,7 @@ var ho = {
2112
2104
  let n = e.slice(t.replace(/\/+$/, "").length + 1).split("/").slice(1).join("/");
2113
2105
  return Qe(o.chrome, n);
2114
2106
  }
2115
- let y = k(() => Ze(Te(C.value?.popup_logos?.[a.value] ?? C.value?.popup_logos?.en ?? ""), v)), ee = k(() => {
2107
+ let y = k(() => Ze(Te(C.value?.popup_logos?.[a.value] ?? C.value?.popup_logos?.en ?? "", { glossary: [] }), v)), ee = k(() => {
2116
2108
  let e = C.value?.popup_logo_show;
2117
2109
  return e == null ? !1 : typeof e == "boolean" ? e : e[a.value] ?? e.en ?? !1;
2118
2110
  });