@museumwnf/viewer-layout 3.18.1 → 3.20.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,4 +1,4 @@
1
- import { u as e } from "./MediaGallery-DeXLadYl.js";
1
+ import { d as e } from "./PartnerMap-BozCpzY8.js";
2
2
  import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, openBlock as s, renderList as c, renderSlot as l, toDisplayString as u, useSlots as d, withCtx as f } from "vue";
3
3
  //#region src/content/FeaturedRecord.vue
4
4
  var p = {
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./chrome-DNsZQXrL.js";
2
- import { n as t } from "./MediaGallery-DeXLadYl.js";
3
- import { n } from "./TimelineEventList-QLk6KLMq.js";
4
- import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-zdKWIPTZ.js";
5
- import { t as c } from "./RecordView-GckO9PmG.js";
2
+ import { r as t } from "./PartnerMap-BozCpzY8.js";
3
+ import { n } from "./TimelineEventList-B_lhlQOG.js";
4
+ import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-DdqVmd4F.js";
5
+ import { t as c } from "./RecordView-Bi53L29_.js";
6
6
  import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as ee, createTextVNode as h, createVNode as g, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as te, openBlock as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, useSlots as ne, withCtx as T } from "vue";
7
7
  import { NotFoundView as re, byId as E, loadEntities as ie, mdInline as D, mdStrip as ae, mwnfLinks as O, partnerView as oe, useDataPackage as se, useI18n as ce, useProjects as le, useSiteConfig as ue } from "@museumwnf/viewer-core";
8
8
  //#region src/dxa/ItemDetailView.vue
@@ -1,4 +1,4 @@
1
- import { a as e, u as t } from "./MediaGallery-DeXLadYl.js";
1
+ import { d as e, o as t } from "./PartnerMap-BozCpzY8.js";
2
2
  import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, mergeProps as u, normalizeClass as d, openBlock as f, ref as p, renderList as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, vModelSelect as y, vModelText as b, watch as x, withCtx as S, withDirectives as C, withKeys as w } from "vue";
3
3
  import { useI18n as T } from "@museumwnf/viewer-core/i18n";
4
4
  import { md as E, mdInline as D, searchGlossary as ee } from "@museumwnf/viewer-core";
@@ -35,8 +35,8 @@ var k = ["href"], A = {
35
35
  default: "←"
36
36
  }
37
37
  },
38
- setup(e) {
39
- let n = O(), a = e, l = r(() => !!(a.to || a.href));
38
+ setup(t) {
39
+ let n = O(), a = t, l = r(() => !!(a.to || a.href));
40
40
  function u() {
41
41
  return window.history.state?.back != null || !l.value && window.history.length > 1;
42
42
  }
@@ -47,28 +47,28 @@ var k = ["href"], A = {
47
47
  function m(e) {
48
48
  e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (u() ? (e.preventDefault(), n.back()) : a.to && n ? (e.preventDefault(), n.push(a.to)) : l.value || e.preventDefault());
49
49
  }
50
- return (n, r) => e.variant === "bar" ? (f(), o("a", {
50
+ return (n, r) => t.variant === "bar" ? (f(), o("a", {
51
51
  key: 0,
52
52
  href: p.value,
53
53
  class: "mwnf-back-bar mwnf-back-bar--link",
54
54
  onClick: m
55
55
  }, [
56
- s("span", A, _(e.arrow), 1),
56
+ s("span", A, _(t.arrow), 1),
57
57
  r[0] ||= c(),
58
- h(n.$slots, "default", {}, () => [c(_(n.$t(e.label)), 1)])
59
- ], 8, k)) : (f(), o("div", te, [l.value && !u() ? (f(), i(t, {
58
+ h(n.$slots, "default", {}, () => [c(_(n.$t(t.label)), 1)])
59
+ ], 8, k)) : (f(), o("div", te, [l.value && !u() ? (f(), i(e, {
60
60
  key: 0,
61
- to: e.to,
62
- href: e.href,
61
+ to: t.to,
62
+ href: t.href,
63
63
  class: "mwnf-back-link__button"
64
64
  }, {
65
- default: S(() => [c(" ↩ " + _(n.$t(e.label)), 1)]),
65
+ default: S(() => [c(" ↩ " + _(n.$t(t.label)), 1)]),
66
66
  _: 1
67
67
  }, 8, ["to", "href"])) : (f(), o("button", {
68
68
  key: 1,
69
69
  class: "mwnf-back-link__button",
70
70
  onClick: d
71
- }, " ↩ " + _(n.$t(e.label)), 1))]));
71
+ }, " ↩ " + _(n.$t(t.label)), 1))]));
72
72
  }
73
73
  }, j = ["dir"], M = { class: "mwnf-glossary-tool__toggle" }, N = { class: "mwnf-glossary-tool__panel" }, P = { class: "mwnf-glossary-tool__heading" }, F = { class: "mwnf-glossary-tool__instructions" }, I = ["aria-expanded", "aria-label"], L = {
74
74
  key: 0,
@@ -256,8 +256,8 @@ var k = ["href"], A = {
256
256
  type: Object,
257
257
  required: !0
258
258
  } },
259
- setup(e) {
260
- let i = e, { t: u } = T(), d = p(!1), h = p(i.info.defaultCountry ? i.info.defaultCountry() : "all");
259
+ setup(t) {
260
+ let i = t, { t: u } = T(), d = p(!1), h = p(i.info.defaultCountry ? i.info.defaultCountry() : "all");
261
261
  x(() => i.info, (e) => {
262
262
  h.value = e.defaultCountry ? e.defaultCountry() : "all";
263
263
  });
@@ -265,23 +265,23 @@ var k = ["href"], A = {
265
265
  return (r, i) => (f(), o("div", ue, [s("p", {
266
266
  class: "mwnf-sheet-timeline__trigger",
267
267
  onClick: i[0] ||= (e) => d.value = !d.value
268
- }, "➤ " + _(v(u)(e.info.trigger ?? "record.related.timelineForItem")), 1), d.value ? (f(), o("div", de, [
268
+ }, "➤ " + _(v(u)(t.info.trigger ?? "record.related.timelineForItem")), 1), d.value ? (f(), o("div", de, [
269
269
  s("button", {
270
270
  type: "button",
271
271
  class: "mwnf-sheet-timeline__close",
272
272
  "aria-label": v(u)("core.action.close"),
273
273
  onClick: i[1] ||= (e) => d.value = !1
274
274
  }, "✕", 8, fe),
275
- s("p", pe, _(v(u)(e.info.heading)), 1),
275
+ s("p", pe, _(v(u)(t.info.heading)), 1),
276
276
  s("div", me, [C(s("select", {
277
277
  "onUpdate:modelValue": i[2] ||= (e) => h.value = e,
278
278
  class: "mwnf-sheet-timeline__select"
279
- }, [(f(!0), o(n, null, m(e.info.countries, (e) => (f(), o("option", {
279
+ }, [(f(!0), o(n, null, m(t.info.countries, (e) => (f(), o("option", {
280
280
  key: e.value,
281
281
  value: e.value
282
- }, _(e.label), 9, he))), 128))], 512), [[y, h.value]]), l(t, {
282
+ }, _(e.label), 9, he))), 128))], 512), [[y, h.value]]), l(e, {
283
283
  class: "mwnf-sheet-timeline__link",
284
- to: e.info.searchTo(h.value, g.value)
284
+ to: t.info.searchTo(h.value, g.value)
285
285
  }, {
286
286
  default: S(() => [c("➤ " + _(v(u)("timeline.action.beginFullSearch")), 1)]),
287
287
  _: 1
@@ -326,26 +326,26 @@ var k = ["href"], A = {
326
326
  default: ""
327
327
  }
328
328
  },
329
- setup(t) {
330
- let c = t, { t: l } = T(), u = r(() => {
329
+ setup(e) {
330
+ let c = e, { t: l } = T(), u = r(() => {
331
331
  let e = c.media.filter((e) => e?.url);
332
332
  return c.language ? e.filter((e) => !e.language || e.language === c.language) : e;
333
333
  });
334
- return (r, c) => u.value.length ? (f(), i(e, {
334
+ return (r, c) => u.value.length ? (f(), i(t, {
335
335
  key: 0,
336
- heading: t.heading ? v(l)(t.heading) : "",
337
- dir: t.dir,
336
+ heading: e.heading ? v(l)(e.heading) : "",
337
+ dir: e.dir,
338
338
  class: "mwnf-related-media"
339
339
  }, {
340
- default: S(() => [(f(!0), o(n, null, m(u.value, (e) => (f(), o("div", {
341
- key: e.url,
340
+ default: S(() => [(f(!0), o(n, null, m(u.value, (t) => (f(), o("div", {
341
+ key: t.url,
342
342
  class: "mwnf-related-media__entry"
343
343
  }, [s("a", {
344
- href: e.url,
344
+ href: t.url,
345
345
  target: "_blank",
346
346
  rel: "noopener",
347
347
  class: "mwnf-related-media__link"
348
- }, "↗ " + _(e.title || e.url), 9, xe), t.descriptions && e.description ? (f(), o("p", Se, _(e.description), 1)) : a("", !0)]))), 128))]),
348
+ }, "↗ " + _(t.title || t.url), 9, xe), e.descriptions && t.description ? (f(), o("p", Se, _(t.description), 1)) : a("", !0)]))), 128))]),
349
349
  _: 1
350
350
  }, 8, ["heading", "dir"])) : a("", !0);
351
351
  }
@@ -374,29 +374,29 @@ var k = ["href"], A = {
374
374
  },
375
375
  setup(l) {
376
376
  let d = l, { t: p } = T(), h = r(() => d.groups.filter((e) => e.links?.length));
377
- return (r, d) => h.value.length ? (f(), i(g(l.heading ? e : "div"), u({ key: 0 }, l.heading ? { heading: v(p)(l.heading) } : {}, {
377
+ return (r, d) => h.value.length ? (f(), i(g(l.heading ? t : "div"), u({ key: 0 }, l.heading ? { heading: v(p)(l.heading) } : {}, {
378
378
  dir: l.dir || void 0,
379
379
  class: "mwnf-on-display"
380
380
  }), {
381
- default: S(() => [(f(!0), o(n, null, m(h.value, (e, r) => (f(), o("div", {
382
- key: e.heading ?? r,
381
+ default: S(() => [(f(!0), o(n, null, m(h.value, (t, r) => (f(), o("div", {
382
+ key: t.heading ?? r,
383
383
  class: "mwnf-on-display__group"
384
- }, [e.heading ? (f(), o("p", we, _(v(p)(e.heading)), 1)) : a("", !0), s("ul", Te, [(f(!0), o(n, null, m(e.links, (e, r) => (f(), o("li", {
385
- key: e.id ?? r,
384
+ }, [t.heading ? (f(), o("p", we, _(v(p)(t.heading)), 1)) : a("", !0), s("ul", Te, [(f(!0), o(n, null, m(t.links, (t, r) => (f(), o("li", {
385
+ key: t.id ?? r,
386
386
  class: "mwnf-on-display__item"
387
- }, [e.to || e.href ? (f(), i(t, {
387
+ }, [t.to || t.href ? (f(), i(e, {
388
388
  key: 0,
389
- to: e.to,
390
- href: e.href,
391
- external: !!e.external
389
+ to: t.to,
390
+ href: t.href,
391
+ external: !!t.external
392
392
  }, {
393
- default: S(() => [e.external ? (f(), o(n, { key: 0 }, [c("↗ ")], 64)) : a("", !0), s("span", { innerHTML: e.label }, null, 8, Ee)]),
393
+ default: S(() => [t.external ? (f(), o(n, { key: 0 }, [c("↗ ")], 64)) : a("", !0), s("span", { innerHTML: t.label }, null, 8, Ee)]),
394
394
  _: 2
395
395
  }, 1032, [
396
396
  "to",
397
397
  "href",
398
398
  "external"
399
- ])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML: e.label }, null, 8, De), l.pendingLabel ? (f(), o(n, { key: 0 }, [d[0] ||= c(_(" "), -1), s("span", Oe, _(v(p)(l.pendingLabel)), 1)], 64)) : a("", !0)], 64))]))), 128))])]))), 128))]),
399
+ ])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML: t.label }, null, 8, De), l.pendingLabel ? (f(), o(n, { key: 0 }, [d[0] ||= c(_(" "), -1), s("span", Oe, _(v(p)(l.pendingLabel)), 1)], 64)) : a("", !0)], 64))]))), 128))])]))), 128))]),
400
400
  _: 1
401
401
  }, 16, ["dir"])) : a("", !0);
402
402
  }
@@ -597,6 +597,81 @@ var E = [
597
597
  ])) : r("", !0)
598
598
  ], 64))], 2)) : r("", !0);
599
599
  }
600
+ }, at = {
601
+ key: 0,
602
+ class: "mwnf-partner-map__title"
603
+ }, ot = ["src", "title"], st = {
604
+ key: 1,
605
+ class: "mwnf-partner-map__link"
606
+ }, ct = ["href"], lt = {
607
+ __name: "PartnerMap",
608
+ props: {
609
+ latitude: {
610
+ type: Number,
611
+ default: null
612
+ },
613
+ longitude: {
614
+ type: Number,
615
+ default: null
616
+ },
617
+ zoom: {
618
+ type: Number,
619
+ default: 15
620
+ },
621
+ provider: {
622
+ type: String,
623
+ default: "osm"
624
+ },
625
+ language: {
626
+ type: String,
627
+ default: "en"
628
+ },
629
+ mapTitleEntry: {
630
+ type: String,
631
+ default: "partner.map.map"
632
+ },
633
+ mapOfEntry: {
634
+ type: String,
635
+ default: "partner.map.mapOf"
636
+ },
637
+ openMapLinkEntry: {
638
+ type: String,
639
+ default: "partner.map.openInOpenStreetMap"
640
+ },
641
+ label: {
642
+ type: String,
643
+ default: ""
644
+ }
645
+ },
646
+ setup(e) {
647
+ let n = e, { t: o } = C(), s = t(() => Number.isFinite(n.latitude) && Number.isFinite(n.longitude)), c = t(() => {
648
+ let e = 360 / 2 ** Math.max(1, Math.min(19, n.zoom || 15)), [t, r] = [n.latitude, n.longitude];
649
+ return [
650
+ r - e,
651
+ t - e / 2,
652
+ r + e,
653
+ t + e / 2
654
+ ].join("%2C");
655
+ }), l = t(() => n.provider === "google"), d = t(() => l.value ? `https://maps.google.com/maps?q=${n.latitude},${n.longitude}&z=${n.zoom || 15}&t=h&hl=${encodeURIComponent(n.language)}&output=embed` : `https://www.openstreetmap.org/export/embed.html?bbox=${c.value}&layer=mapnik&marker=${n.latitude}%2C${n.longitude}`), p = t(() => n.label ? `${o(n.mapOfEntry)} ${n.label}` : o(n.mapTitleEntry)), m = t(() => `https://www.openstreetmap.org/?mlat=${n.latitude}&mlon=${n.longitude}#map=${n.zoom || 15}/${n.latitude}/${n.longitude}`);
656
+ return (t, n) => s.value ? (f(), i("div", {
657
+ key: 0,
658
+ class: u(["mwnf-partner-map", { "mwnf-partner-map--google": l.value }])
659
+ }, [
660
+ l.value ? r("", !0) : (f(), i("p", at, _(t.$t(e.mapTitleEntry)), 1)),
661
+ a("iframe", {
662
+ src: d.value,
663
+ title: p.value,
664
+ loading: "lazy",
665
+ referrerpolicy: "no-referrer",
666
+ class: "mwnf-partner-map__embed"
667
+ }, null, 8, ot),
668
+ l.value ? r("", !0) : (f(), i("p", st, [a("a", {
669
+ href: m.value,
670
+ target: "_blank",
671
+ rel: "noopener"
672
+ }, "↗ " + _(t.$t(e.openMapLinkEntry)), 9, ct)]))
673
+ ], 2)) : r("", !0);
674
+ }
600
675
  };
601
676
  //#endregion
602
- export { Te as a, X as c, Fe as i, I as l, He as n, xe as o, ze as r, ne as s, it as t, D as u };
677
+ export { Fe as a, ne as c, D as d, ze as i, X as l, it as n, Te as o, He as r, xe as s, lt as t, I as u };
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, n, o as r, r as i, s as ee, t as te, u as ne } from "./MediaGallery-DeXLadYl.js";
1
+ import { a as e, c as t, d as n, i as r, n as i, o as ee, r as te, s as ne } from "./PartnerMap-BozCpzY8.js";
2
2
  import { t as re } from "./GlossaryPopover-B7E6BsjS.js";
3
3
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as ie, createTextVNode as ae, createVNode as d, guardReactiveProps as f, normalizeClass as oe, normalizeProps as p, openBlock as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, useSlots as se, watch as b, withCtx as x } from "vue";
4
4
  import { useI18n as S } from "@museumwnf/viewer-core/i18n";
@@ -194,7 +194,7 @@ var De = ["dir", "innerHTML"], Oe = { class: "mwnf-record__body" }, ke = { class
194
194
  onClick: h[0] ||= (...e) => y(H) && y(H)(...e)
195
195
  }, [
196
196
  _(o.$slots, "header", p(f(W.value)), () => [
197
- j.value.back ? (m(), s(ne, {
197
+ j.value.back ? (m(), s(n, {
198
198
  key: 0,
199
199
  class: "mwnf-record__back",
200
200
  to: j.value.back.to,
@@ -203,7 +203,7 @@ var De = ["dir", "innerHTML"], Oe = { class: "mwnf-record__body" }, ke = { class
203
203
  default: x(() => [ae("← " + v(y(S)(j.value.back.label)), 1)]),
204
204
  _: 1
205
205
  }, 8, ["to", "href"])) : c("", !0),
206
- d(ee, {
206
+ d(t, {
207
207
  languages: B.value,
208
208
  language: y(N),
209
209
  onSelect: y(F)
@@ -219,14 +219,14 @@ var De = ["dir", "innerHTML"], Oe = { class: "mwnf-record__body" }, ke = { class
219
219
  }, null, 8, De)
220
220
  ]),
221
221
  u("div", Oe, [u("div", ke, [
222
- Ge.value.length ? (m(), s(te, {
222
+ Ge.value.length ? (m(), s(i, {
223
223
  key: 0,
224
224
  images: Ge.value,
225
225
  variant: j.value.mediaVariant ?? ""
226
226
  }, null, 8, ["images", "variant"])) : c("", !0),
227
227
  y(L) ? c("", !0) : (m(), l("p", Ae, v(y(S)("core.status.loading")), 1)),
228
228
  _(o.$slots, "before-sheet", p(f(W.value))),
229
- d(r, {
229
+ d(ne, {
230
230
  rows: K.value,
231
231
  layout: j.value.layout ?? "table",
232
232
  dir: y(P),
@@ -245,21 +245,21 @@ var De = ["dir", "innerHTML"], Oe = { class: "mwnf-record__body" }, ke = { class
245
245
  "short-description",
246
246
  "short-description-after"
247
247
  ]),
248
- (m(!0), l(a, null, g(q.value, (t) => (m(), l(a, { key: t.key }, [d(e, {
249
- heading: t.label,
250
- html: t.html,
248
+ (m(!0), l(a, null, g(q.value, (e) => (m(), l(a, { key: e.key }, [d(ee, {
249
+ heading: e.label,
250
+ html: e.html,
251
251
  dir: y(P)
252
252
  }, null, 8, [
253
253
  "heading",
254
254
  "html",
255
255
  "dir"
256
- ]), Y.value && He.value && t.key === J.value ? (m(), s(Ee, {
256
+ ]), Y.value && He.value && e.key === J.value ? (m(), s(Ee, {
257
257
  key: 0,
258
258
  html: Y.value.html,
259
259
  dir: y(P)
260
260
  }, null, 8, ["html", "dir"])) : c("", !0)], 64))), 128)),
261
261
  _(o.$slots, "after-sheet", p(f(W.value))),
262
- d(t, {
262
+ d(e, {
263
263
  credits: Je.value,
264
264
  "working-number": Ye.value,
265
265
  "working-number-label": y(S)(j.value.workingNumberLabel ?? "sheet.field.workingNumber"),
@@ -272,12 +272,12 @@ var De = ["dir", "innerHTML"], Oe = { class: "mwnf-record__body" }, ke = { class
272
272
  "citation",
273
273
  "citation-heading"
274
274
  ]),
275
- _(o.$slots, "source", p(f(W.value)), () => [d(i)]),
275
+ _(o.$slots, "source", p(f(W.value)), () => [d(r)]),
276
276
  _(o.$slots, "related", p(f({
277
277
  ...W.value,
278
278
  records: $.value,
279
279
  outside: y(Z).outside
280
- })), () => [Q.value ? (m(), s(n, {
280
+ })), () => [Q.value ? (m(), s(te, {
281
281
  key: 0,
282
282
  heading: y(S)(Q.value.heading ?? "record.related.items"),
283
283
  records: $.value,
@@ -1,5 +1,5 @@
1
- import { r as e, u as t } from "./MediaGallery-DeXLadYl.js";
2
- import { o as n } from "./TimelineResultsView-COoWXGu4.js";
1
+ import { d as e, i as t } from "./PartnerMap-BozCpzY8.js";
2
+ import { o as n } from "./TimelineResultsView-BMg79eiB.js";
3
3
  import { A as r, F as i, h as a, m as o } from "./data-BINc9QjV.js";
4
4
  import { n as s, r as c, t as l } from "./themeSpecs-DP9xWiVJ.js";
5
5
  import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, normalizeClass as v, onMounted as ee, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, vModelCheckbox as w, watch as T, withCtx as E, withDirectives as D } from "vue";
@@ -67,8 +67,8 @@ var j = Object.defineProperty, M = (e, t) => {
67
67
  }
68
68
  },
69
69
  emits: ["update:selectedId"],
70
- setup(e, { emit: n }) {
71
- let r = e, i = n, { t: a } = k(), o = d(() => r.pictures.find((e) => e.id === r.selectedId) ?? null), s = d(() => r.pictures.some((e) => e.backRelated?.length)), c = b(!1);
70
+ setup(t, { emit: n }) {
71
+ let r = t, i = n, { t: a } = k(), o = d(() => r.pictures.find((e) => e.id === r.selectedId) ?? null), s = d(() => r.pictures.some((e) => e.backRelated?.length)), c = b(!1);
72
72
  T(() => r.pictures, () => {
73
73
  c.value = !1;
74
74
  });
@@ -86,38 +86,38 @@ var j = Object.defineProperty, M = (e, t) => {
86
86
  class: "mwnf-picture-gallery__detail"
87
87
  }, [e.label ? (y(), m("span", B, S(e.label), 1)) : p("", !0), h("span", { innerHTML: e.value }, null, 8, V)]))), 128)),
88
88
  o.value.detail ? (y(), m("div", H, S(o.value.detail), 1)) : p("", !0),
89
- o.value.to ? (y(), f(t, {
89
+ o.value.to ? (y(), f(e, {
90
90
  key: 1,
91
91
  class: "mwnf-picture-gallery__link",
92
92
  to: o.value.to
93
93
  }, {
94
- default: E(() => [g(S(C(a)(e.seeItemEntry)) + " →", 1)]),
94
+ default: E(() => [g(S(C(a)(t.seeItemEntry)) + " →", 1)]),
95
95
  _: 1
96
- }, 8, ["to"])) : (y(), m("div", U, S(C(a)(e.unresolvedEntry)), 1))
97
- ])])) : (y(), m("div", W, S(C(a)(e.emptyEntry)), 1)), e.pictures.length ? (y(), m("div", G, [h("ul", K, [(y(!0), m(u, null, x(l.value, (t) => (y(), m("li", {
98
- key: t.id,
96
+ }, 8, ["to"])) : (y(), m("div", U, S(C(a)(t.unresolvedEntry)), 1))
97
+ ])])) : (y(), m("div", W, S(C(a)(t.emptyEntry)), 1)), t.pictures.length ? (y(), m("div", G, [h("ul", K, [(y(!0), m(u, null, x(l.value, (e) => (y(), m("li", {
98
+ key: e.id,
99
99
  class: v(["mwnf-picture-gallery__thumb", {
100
- "mwnf-picture-gallery__thumb--active": t.id === e.selectedId,
101
- "mwnf-picture-gallery__thumb--related": t.backRelated?.length
100
+ "mwnf-picture-gallery__thumb--active": e.id === t.selectedId,
101
+ "mwnf-picture-gallery__thumb--related": e.backRelated?.length
102
102
  }])
103
103
  }, [h("button", {
104
104
  type: "button",
105
- onClick: (e) => _(t)
105
+ onClick: (t) => _(e)
106
106
  }, [h("img", {
107
- src: t.image,
108
- alt: t.imageAlt ?? "",
107
+ src: e.image,
108
+ alt: e.imageAlt ?? "",
109
109
  loading: "lazy"
110
110
  }, null, 8, J)], 8, q), h("div", Y, [
111
- t.imageCaption ? (y(), m("span", X, S(t.imageCaption) + ", ", 1)) : p("", !0),
111
+ e.imageCaption ? (y(), m("span", X, S(e.imageCaption) + ", ", 1)) : p("", !0),
112
112
  h("span", {
113
113
  class: "mwnf-picture-gallery__thumb-name",
114
- innerHTML: t.name
114
+ innerHTML: e.name
115
115
  }, null, 8, Z),
116
- t.detail ? (y(), m("span", Q, ", " + S(t.detail), 1)) : p("", !0)
116
+ e.detail ? (y(), m("span", Q, ", " + S(e.detail), 1)) : p("", !0)
117
117
  ])], 2))), 128))]), s.value ? (y(), m("label", ie, [D(h("input", {
118
118
  "onUpdate:modelValue": r[0] ||= (e) => c.value = e,
119
119
  type: "checkbox"
120
- }, null, 512), [[w, c.value]]), h("span", null, S(c.value ? C(a)(e.hideRelatedEntry) : C(a)(e.addRelatedEntry)), 1)])) : p("", !0)])) : p("", !0)]));
120
+ }, null, 512), [[w, c.value]]), h("span", null, S(c.value ? C(a)(t.hideRelatedEntry) : C(a)(t.addRelatedEntry)), 1)])) : p("", !0)])) : p("", !0)]));
121
121
  }
122
122
  }, $ = {
123
123
  key: 0,
@@ -211,8 +211,8 @@ var j = Object.defineProperty, M = (e, t) => {
211
211
  type: Boolean,
212
212
  default: !1
213
213
  } },
214
- setup(t) {
215
- let w = t, { aboutTheme: D, owningTheme: O, romanFor: j, themeByRouteId: M, themeText: N, useThemePictures: re } = r, { t: P, locale: F } = k(), I = te(), L = ne(), R = d(() => w.aboutMode ? D.value : M(I.params.id)), z = d(() => {
214
+ setup(e) {
215
+ let w = e, { aboutTheme: D, owningTheme: O, romanFor: j, themeByRouteId: M, themeText: N, useThemePictures: re } = r, { t: P, locale: F } = k(), I = te(), L = ne(), R = d(() => w.aboutMode ? D.value : M(I.params.id)), z = d(() => {
216
216
  let e = I.params.subtheme;
217
217
  if (w.aboutMode || !e || e === "overview") return null;
218
218
  let t = Number(e);
@@ -252,7 +252,7 @@ var j = Object.defineProperty, M = (e, t) => {
252
252
  key: 0,
253
253
  spec: H.value,
254
254
  id: V.value.id,
255
- class: v(["mwnf-dxa-theme", { "mwnf-dxa-theme--about": t.aboutMode }])
255
+ class: v(["mwnf-dxa-theme", { "mwnf-dxa-theme--about": e.aboutMode }])
256
256
  }, {
257
257
  header: E(() => [h("div", je, [Q.value ? (y(), m("span", Me, S(C(P)("exhibition.theme.romanLabel")) + " " + S(Q.value) + " ▪ ", 1)) : p("", !0), g(S(X.value), 1)]), h("div", Ne, S(Z.value), 1)]),
258
258
  panel: E(() => [_(ae, {
@@ -260,7 +260,7 @@ var j = Object.defineProperty, M = (e, t) => {
260
260
  "selected-id": W.value,
261
261
  "onUpdate:selectedId": J
262
262
  }, null, 8, ["pictures", "selected-id"])]),
263
- "after-body": E(() => [t.aboutMode ? p("", !0) : (y(), f(ke, {
263
+ "after-body": E(() => [e.aboutMode ? p("", !0) : (y(), f(ke, {
264
264
  key: 0,
265
265
  picture: q.value,
266
266
  "contextual-description": ie.value,
@@ -300,13 +300,13 @@ var j = Object.defineProperty, M = (e, t) => {
300
300
  _: 2
301
301
  }, 1032, ["to", "class"])]))), 128))
302
302
  ])) : p("", !0)]),
303
- after: E(({ next: n }) => [t.aboutMode && n ? (y(), m("div", ze, [i[0] ||= h("span", null, null, -1), _(C(A), {
303
+ after: E(({ next: n }) => [e.aboutMode && n ? (y(), m("div", ze, [i[0] ||= h("span", null, null, -1), _(C(A), {
304
304
  to: C(s)(n),
305
305
  class: "mwnf-dxa-theme__tour-link"
306
306
  }, {
307
307
  default: E(() => [g(S(C(P)("core.pagination.next")) + " " + S(Ve), 1)]),
308
308
  _: 1
309
- }, 8, ["to"])])) : p("", !0), _(e)]),
309
+ }, 8, ["to"])])) : p("", !0), _(t)]),
310
310
  _: 1
311
311
  }, 8, [
312
312
  "spec",