@museumwnf/viewer-layout 3.58.0 → 3.60.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 +5 -3
- package/dist/{FeaturedRecord-CTqnQFox.js → FeaturedRecord-DLYyyRey.js} +2 -3
- package/dist/{GlossaryPopover-B7E6BsjS.js → GlossaryPopover-DbQKXhx9.js} +1 -2
- package/dist/ItemDetailView-D5T3QXYJ.js +303 -0
- package/dist/{OnDisplayIn-DZHRKjL0.js → OnDisplayIn-CCM5Ahxy.js} +10 -5
- package/dist/{PageShell-CcaLOuXI.js → PageShell-CPtgzcxv.js} +1 -2
- package/dist/{PartnerMap-BIKd-AGP.js → PartnerMap-BuQo_FLl.js} +1 -2
- package/dist/{RecordView-DEKHp1A3.js → RecordView-n7bbQUg2.js} +14 -17
- package/dist/{SiteShell-CYQxXosD.js → SiteShell-qvsZO4Iz.js} +3 -4
- package/dist/{Theme-Co1bf81Z.js → Theme-0bsA_Abx.js} +29 -30
- package/dist/{TimelineEventList-CTJJOWGh.js → TimelineEventList-e1fNm28F.js} +3 -4
- package/dist/{TimelineResultsView-D15BMWZM.js → TimelineResultsView-Cl_LcM--.js} +264 -255
- package/dist/{chrome-DNsZQXrL.js → chrome-Bv_mLlHM.js} +1 -2
- package/dist/components.js +1 -2
- package/dist/{content-PQeMx8U5.js → content-BzSJircQ.js} +3 -4
- package/dist/content.js +6 -6
- package/dist/{data-CXRsGwLQ.js → data-EKYeMQcC.js} +16 -11
- package/dist/{data-BINc9QjV.js → data-kqAkoQvf.js} +2 -3
- package/dist/dxa.js +898 -673
- package/dist/index.js +8 -8
- package/dist/minisite.js +347 -341
- package/dist/standalone.js +209 -217
- package/dist/{themeSpecs-DP9xWiVJ.js → themeSpecs-CsDpl4rR.js} +2 -3
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +5 -6
- package/package.json +10 -10
- package/src/dxa/testing.js +71 -42
- package/src/styles/dxa-gallery.css +19 -1
- package/src/tokens.reference.css +11 -1
- package/dist/ItemDetailView-Bbn-uNaR.js +0 -304
package/dist/standalone.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as s } from "./
|
|
1
|
+
import { t as e } from "./SiteShell-qvsZO4Iz.js";
|
|
2
|
+
import { r as t } from "./chrome-Bv_mLlHM.js";
|
|
3
|
+
import { c as n, d as r, n as i, t as a } from "./PartnerMap-BuQo_FLl.js";
|
|
4
|
+
import { n as o, t as s } from "./RecordView-n7bbQUg2.js";
|
|
5
5
|
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createTextVNode as h, createVNode as g, guardReactiveProps as _, mergeModels as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onMounted as w, openBlock as T, reactive as E, ref as D, renderList as O, renderSlot as k, toDisplayString as A, unref as j, useId as M, useModel as N, useSlots as P, vModelSelect as F, vModelText as I, vShow as L, watch as R, withCtx as z, withDirectives as B, withModifiers as V } from "vue";
|
|
6
6
|
import { byId as ee, collate as H, entityRef as te, loadEntities as U, md as W, pictureCredits as ne, picturesInLanguage as re, removeEndingPoint as ie, renderBlock as ae, renderInline as G, renderPlain as K, useDataPackage as oe, useI18n as q, useSection as se, useSiteConfig as J } from "@museumwnf/viewer-core";
|
|
7
7
|
import { useRoute as ce } from "vue-router";
|
|
8
|
-
|
|
8
|
+
// src/standalone/Banner.vue
|
|
9
9
|
var le = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "mwnf-standalone-banner__title"
|
|
@@ -28,11 +28,10 @@ var le = {
|
|
|
28
28
|
}, [e.title ? (T(), f("h1", le, [p("span", null, A(e.title), 1)])) : d("", !0)], 4));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
//#region src/standalone/chrome.js
|
|
31
|
+
// src/standalone/chrome.js
|
|
33
32
|
function Y() {
|
|
34
|
-
let
|
|
35
|
-
return (n) => e
|
|
33
|
+
let e = J();
|
|
34
|
+
return (n) => t(e.chrome, n);
|
|
36
35
|
}
|
|
37
36
|
function de(e, t) {
|
|
38
37
|
return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
|
|
@@ -52,8 +51,7 @@ function pe(e) {
|
|
|
52
51
|
...n.slice(0, n.length - 1)
|
|
53
52
|
].join(":");
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
//#region src/standalone/Sponsors.vue
|
|
54
|
+
// src/standalone/Sponsors.vue
|
|
57
55
|
var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
58
56
|
key: 0,
|
|
59
57
|
class: "mwnf-standalone-sponsors__text"
|
|
@@ -76,22 +74,22 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
76
74
|
default: () => []
|
|
77
75
|
} },
|
|
78
76
|
setup(e) {
|
|
79
|
-
let t = e, { t:
|
|
77
|
+
let t = e, { t: n } = q(), i = Y(), a = l(() => t.columns.map((e, t) => ({
|
|
80
78
|
key: t,
|
|
81
79
|
width: e.width ?? null,
|
|
82
|
-
lead: e.lead ? G(
|
|
83
|
-
text: e.text ? G(
|
|
80
|
+
lead: e.lead ? G(n(e.lead)) : "",
|
|
81
|
+
text: e.text ? G(n(e.text)) : "",
|
|
84
82
|
break: !!e.break,
|
|
85
|
-
title: e.title ?
|
|
83
|
+
title: e.title ? n(e.title) : "",
|
|
86
84
|
logos: (e.logos ?? []).map((e) => ({
|
|
87
85
|
src: i(e.src) ?? "",
|
|
88
|
-
alt: e.alt ?
|
|
86
|
+
alt: e.alt ? n(e.alt) : "",
|
|
89
87
|
href: e.href ?? "",
|
|
90
|
-
note: e.note ? ae(
|
|
88
|
+
note: e.note ? ae(n(e.note)) : ""
|
|
91
89
|
})),
|
|
92
90
|
links: (e.links ?? []).map((e) => ({
|
|
93
91
|
...e,
|
|
94
|
-
label:
|
|
92
|
+
label: n(e.label)
|
|
95
93
|
}))
|
|
96
94
|
})));
|
|
97
95
|
return (e, t) => (T(), f("div", me, [(T(!0), f(c, null, O(a.value, (e) => (T(), f("div", {
|
|
@@ -130,7 +128,7 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
130
128
|
src: e.src,
|
|
131
129
|
alt: e.alt
|
|
132
130
|
}, null, 8, Ee))]))), 128))])) : d("", !0),
|
|
133
|
-
e.links.length ? (T(), f("ul", De, [(T(!0), f(c, null, O(e.links, (e) => (T(), f("li", { key: e.label }, [g(
|
|
131
|
+
e.links.length ? (T(), f("ul", De, [(T(!0), f(c, null, O(e.links, (e) => (T(), f("li", { key: e.label }, [g(r, {
|
|
134
132
|
to: e.to,
|
|
135
133
|
href: e.href,
|
|
136
134
|
external: !!e.external
|
|
@@ -166,8 +164,8 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
166
164
|
}
|
|
167
165
|
},
|
|
168
166
|
emits: ["update:language"],
|
|
169
|
-
setup(
|
|
170
|
-
let
|
|
167
|
+
setup(n, { emit: r }) {
|
|
168
|
+
let i = n, a = r, { t: o, locale: s } = q(), c = ce(), h = l(() => !!c.meta?.bare), _ = J(), v = se(), y = l(() => _.standalone ?? {}), x = l(() => _.navigation ?? {}), S = l(() => v.value === "home"), C = l(() => y.value.areas?.[v.value] ?? null), w = (e) => t(_.chrome, de(e, s.value)), E = l(() => {
|
|
171
169
|
let e = y.value.logo ?? {}, t = w(C.value?.logo ?? e.src);
|
|
172
170
|
return t ? {
|
|
173
171
|
logo: t,
|
|
@@ -181,12 +179,12 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
181
179
|
return w(S.value ? e.home : e.inner) ?? "";
|
|
182
180
|
}), N = l(() => {
|
|
183
181
|
let e = c.meta?.bannerTitle ?? x.value.sectionTitles?.[v.value];
|
|
184
|
-
return e ?
|
|
182
|
+
return e ? o(e) : "";
|
|
185
183
|
}), P = l(() => !S.value && !!(M.value || N.value)), F = l(() => {
|
|
186
184
|
let { homeTitle: e, homeText: t } = y.value.banner ?? {};
|
|
187
185
|
return S.value && (e || t) ? {
|
|
188
|
-
title: e ?
|
|
189
|
-
text: t ?
|
|
186
|
+
title: e ? o(e) : "",
|
|
187
|
+
text: t ? o(t) : ""
|
|
190
188
|
} : null;
|
|
191
189
|
}), I = l(() => {
|
|
192
190
|
let e = y.value.sponsors;
|
|
@@ -200,28 +198,28 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
200
198
|
},
|
|
201
199
|
banner: null,
|
|
202
200
|
...E.value ? { brand: E.value } : {}
|
|
203
|
-
})), R = (/* @__PURE__ */ new Date()).getFullYear(), B = l(() => y.value.copyright ? `${
|
|
201
|
+
})), R = (/* @__PURE__ */ new Date()).getFullYear(), B = l(() => y.value.copyright ? `${o(y.value.copyright)} ${R}` : ""), V = l(() => [
|
|
204
202
|
"mwnf-standalone",
|
|
205
203
|
S.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
|
|
206
204
|
C.value?.class ?? ""
|
|
207
205
|
]);
|
|
208
|
-
return (
|
|
206
|
+
return (t, n) => h.value ? (T(), f("div", ke, [k(t.$slots, "default")])) : (T(), u(e, {
|
|
209
207
|
key: 1,
|
|
210
208
|
class: b(V.value),
|
|
211
209
|
config: L.value,
|
|
212
|
-
languages: y.value.languages === !1 ? [] :
|
|
213
|
-
language:
|
|
210
|
+
languages: y.value.languages === !1 ? [] : i.languages,
|
|
211
|
+
language: i.language,
|
|
214
212
|
"language-placement": "header",
|
|
215
213
|
"language-style": "select",
|
|
216
214
|
"header-home": y.value.logo?.href ?? "",
|
|
217
|
-
"header-title": S.value ? "" : y.value.heading ? j(
|
|
218
|
-
"header-subtitle": S.value ? "" : y.value.subheading ? j(
|
|
215
|
+
"header-title": S.value ? "" : y.value.heading ? j(o)(y.value.heading) : "",
|
|
216
|
+
"header-subtitle": S.value ? "" : y.value.subheading ? j(o)(y.value.subheading) : "",
|
|
219
217
|
"header-title-href": "#/",
|
|
220
218
|
"banner-image": S.value && !F.value ? M.value : "",
|
|
221
219
|
"footer-text": B.value || void 0,
|
|
222
|
-
"onUpdate:language":
|
|
220
|
+
"onUpdate:language": n[0] ||= (e) => a("update:language", e)
|
|
223
221
|
}, m({
|
|
224
|
-
default: z(() => [k(
|
|
222
|
+
default: z(() => [k(t.$slots, "default")]),
|
|
225
223
|
_: 2
|
|
226
224
|
}, [
|
|
227
225
|
P.value ? {
|
|
@@ -250,18 +248,18 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
250
248
|
}, null, 8, Fe)]),
|
|
251
249
|
key: "2"
|
|
252
250
|
} : void 0,
|
|
253
|
-
|
|
251
|
+
t.$slots.sponsors ? {
|
|
254
252
|
name: "sponsors",
|
|
255
|
-
fn: z(() => [k(
|
|
253
|
+
fn: z(() => [k(t.$slots, "sponsors")]),
|
|
256
254
|
key: "3"
|
|
257
255
|
} : I.value ? {
|
|
258
256
|
name: "sponsors",
|
|
259
257
|
fn: z(() => [g(Oe, { columns: I.value.columns }, null, 8, ["columns"])]),
|
|
260
258
|
key: "4"
|
|
261
259
|
} : void 0,
|
|
262
|
-
|
|
260
|
+
t.$slots.footer ? {
|
|
263
261
|
name: "footer",
|
|
264
|
-
fn: z(() => [k(
|
|
262
|
+
fn: z(() => [k(t.$slots, "footer")]),
|
|
265
263
|
key: "5"
|
|
266
264
|
} : void 0
|
|
267
265
|
]), 1032, [
|
|
@@ -329,21 +327,21 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
329
327
|
}
|
|
330
328
|
},
|
|
331
329
|
setup(e) {
|
|
332
|
-
let t = e, { t:
|
|
333
|
-
let e = t.text ?? {},
|
|
334
|
-
a &&
|
|
330
|
+
let t = e, { t: n } = q(), i = (e) => ie(Array.isArray(e) ? e.join("; ") : e), a = l(() => {
|
|
331
|
+
let e = t.text ?? {}, r = [], a = i(e.name ?? t.record?.internal_name ?? "");
|
|
332
|
+
a && r.push(G(a));
|
|
335
333
|
let o = i(e.alternate_name);
|
|
336
|
-
o &&
|
|
334
|
+
o && r.push(`${t.alsoKnownAs ? `${n(t.alsoKnownAs)} ` : ""}${G(o)}`);
|
|
337
335
|
let s = [i(e.dates), i(e.dynasty)].filter(Boolean).join(", ");
|
|
338
|
-
s &&
|
|
336
|
+
s && r.push(G(s));
|
|
339
337
|
for (let t of ["materials", "holder"]) {
|
|
340
|
-
let
|
|
341
|
-
|
|
338
|
+
let n = i(e[t]);
|
|
339
|
+
n && r.push(G(n));
|
|
342
340
|
}
|
|
343
|
-
return
|
|
341
|
+
return r;
|
|
344
342
|
}), o = l(() => t.place ?? [i(t.text?.location), t.country].filter(Boolean).join(", ")), s = l(() => t.picture || (t.record?.images?.[0]?.url ?? "")), m = l(() => K(String(t.text?.name ?? t.record?.internal_name ?? "")));
|
|
345
343
|
return (t, i) => e.record ? (T(), f("div", Le, [
|
|
346
|
-
s.value ? (T(), u(
|
|
344
|
+
s.value ? (T(), u(r, {
|
|
347
345
|
key: 0,
|
|
348
346
|
class: "mwnf-standalone-highlight__media",
|
|
349
347
|
to: e.to
|
|
@@ -355,11 +353,11 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
355
353
|
}, null, 8, Re)]),
|
|
356
354
|
_: 1
|
|
357
355
|
}, 8, ["to"])) : d("", !0),
|
|
358
|
-
e.heading ? (T(), f("p", ze, [p("strong", null, A(j(
|
|
356
|
+
e.heading ? (T(), f("p", ze, [p("strong", null, A(j(n)(e.heading)), 1)])) : d("", !0),
|
|
359
357
|
p("p", Be, [(T(!0), f(c, null, O(a.value, (e, t) => (T(), f(c, { key: t }, [p("span", { innerHTML: e }, null, 8, Ve), i[0] ||= p("br", null, null, -1)], 64))), 128))]),
|
|
360
358
|
o.value ? (T(), f("p", He, A(j(K)(o.value)), 1)) : d("", !0),
|
|
361
|
-
e.action ? (T(), f("p", Ue, [g(
|
|
362
|
-
default: z(() => [h(A(j(
|
|
359
|
+
e.action ? (T(), f("p", Ue, [g(r, { to: e.to }, {
|
|
360
|
+
default: z(() => [h(A(j(n)(e.action)), 1)]),
|
|
363
361
|
_: 1
|
|
364
362
|
}, 8, ["to"])])) : d("", !0)
|
|
365
363
|
])) : d("", !0);
|
|
@@ -386,15 +384,15 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
386
384
|
}
|
|
387
385
|
},
|
|
388
386
|
setup(e) {
|
|
389
|
-
let t = e, { t:
|
|
387
|
+
let t = e, { t: n } = q(), i = Y(), a = l(() => t.items.map((e) => ({
|
|
390
388
|
...e,
|
|
391
389
|
image: i(e.image) ?? "",
|
|
392
|
-
label: e.text ? K(e.text) : e.label ?
|
|
390
|
+
label: e.text ? K(e.text) : e.label ? n(e.label) : ""
|
|
393
391
|
})));
|
|
394
|
-
return (t, i) => a.value.length ? (T(), f("section", Ge, [e.caption ? (T(), f("p", Ke, [p("span", qe, A(j(
|
|
392
|
+
return (t, i) => a.value.length ? (T(), f("section", Ge, [e.caption ? (T(), f("p", Ke, [p("span", qe, A(j(n)(e.caption)), 1)])) : d("", !0), p("ul", Je, [(T(!0), f(c, null, O(a.value, (e) => (T(), f("li", {
|
|
395
393
|
key: e.image,
|
|
396
394
|
class: "mwnf-standalone-tiles__tile"
|
|
397
|
-
}, [g(
|
|
395
|
+
}, [g(r, {
|
|
398
396
|
to: e.to,
|
|
399
397
|
href: e.href,
|
|
400
398
|
class: "mwnf-standalone-tiles__link"
|
|
@@ -417,11 +415,11 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
417
415
|
default: null
|
|
418
416
|
} },
|
|
419
417
|
setup(e) {
|
|
420
|
-
let t = e, { t:
|
|
418
|
+
let t = e, { t: n, locale: i } = q(), a = J(), o = l(() => t.home ?? a.standalone?.home ?? {}), s = l(() => (o.value.links ?? []).map((e) => ({
|
|
421
419
|
...e,
|
|
422
|
-
label:
|
|
423
|
-
prefix: e.prefix ?
|
|
424
|
-
title: e.title ?
|
|
420
|
+
label: n(e.label),
|
|
421
|
+
prefix: e.prefix ? n(e.prefix) : "",
|
|
422
|
+
title: e.title ? n(e.title) : void 0
|
|
425
423
|
}))), p = l(() => o.value.highlight ?? null), m = oe();
|
|
426
424
|
p.value?.list?.length && (U(["items", "countries"]), R(i, (e) => {
|
|
427
425
|
m.loadTranslations("items", e), m.loadTranslations("countries", e);
|
|
@@ -450,7 +448,7 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
450
448
|
s.value.length ? (T(), f("ul", $e, [(T(!0), f(c, null, O(s.value, (e) => (T(), f("li", {
|
|
451
449
|
key: e.label,
|
|
452
450
|
class: b({ "mwnf-standalone-home__link--gap": e.gap })
|
|
453
|
-
}, [g(
|
|
451
|
+
}, [g(r, {
|
|
454
452
|
to: e.to,
|
|
455
453
|
href: e.href,
|
|
456
454
|
external: !!e.external,
|
|
@@ -632,8 +630,7 @@ ${d}
|
|
|
632
630
|
</body>
|
|
633
631
|
</html>`;
|
|
634
632
|
}
|
|
635
|
-
|
|
636
|
-
//#region src/standalone/RelatedContent.vue
|
|
633
|
+
// src/standalone/RelatedContent.vue
|
|
637
634
|
var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-related__heading" }, pt = { class: "mwnf-standalone-related__group-heading" }, mt = { class: "mwnf-standalone-related__thumbs" }, ht = ["src", "alt"], gt = ["innerHTML"], _t = {
|
|
638
635
|
key: 0,
|
|
639
636
|
class: "mwnf-standalone-related__download"
|
|
@@ -662,26 +659,26 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
662
659
|
}
|
|
663
660
|
},
|
|
664
661
|
setup(e) {
|
|
665
|
-
let t = e, { t:
|
|
666
|
-
heading:
|
|
662
|
+
let t = e, { t: n } = q(), i = l(() => t.groups.map((e) => ({
|
|
663
|
+
heading: n(e.heading),
|
|
667
664
|
rows: t.records.filter((t) => !e.type || t.badge === e.type)
|
|
668
665
|
})).filter((e) => e.rows.length));
|
|
669
666
|
function a() {
|
|
670
667
|
window.print();
|
|
671
668
|
}
|
|
672
669
|
function o(e) {
|
|
673
|
-
let
|
|
674
|
-
|
|
675
|
-
title: t.download?.title ?
|
|
676
|
-
dir: getComputedStyle(
|
|
670
|
+
let r = e.currentTarget.closest(".mwnf-standalone-item");
|
|
671
|
+
r && lt(ct(r.querySelector(".mwnf-record__main") ?? r, {
|
|
672
|
+
title: t.download?.title ? n(t.download.title) : "",
|
|
673
|
+
dir: getComputedStyle(r).direction
|
|
677
674
|
}), t.wordFile);
|
|
678
675
|
}
|
|
679
676
|
return (t, s) => (T(), f("aside", dt, [
|
|
680
|
-
p("p", ft, [p("strong", null, A(j(
|
|
677
|
+
p("p", ft, [p("strong", null, A(j(n)(e.heading)), 1)]),
|
|
681
678
|
(T(!0), f(c, null, O(i.value, (e) => (T(), f("div", {
|
|
682
679
|
key: e.heading,
|
|
683
680
|
class: "mwnf-standalone-related__group"
|
|
684
|
-
}, [p("p", pt, A(e.heading), 1), p("ul", mt, [(T(!0), f(c, null, O(e.rows, (e) => (T(), f("li", { key: e.id }, [g(
|
|
681
|
+
}, [p("p", pt, A(e.heading), 1), p("ul", mt, [(T(!0), f(c, null, O(e.rows, (e) => (T(), f("li", { key: e.id }, [g(r, {
|
|
685
682
|
to: e.to,
|
|
686
683
|
title: e.imageAlt
|
|
687
684
|
}, {
|
|
@@ -697,18 +694,18 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
697
694
|
}, 1032, ["to", "title"])]))), 128))])]))), 128)),
|
|
698
695
|
k(t.$slots, "default"),
|
|
699
696
|
e.download ? (T(), f("div", _t, [
|
|
700
|
-
p("p", vt, A(j(
|
|
697
|
+
p("p", vt, A(j(n)(e.download.heading)), 1),
|
|
701
698
|
p("button", {
|
|
702
699
|
type: "button",
|
|
703
700
|
class: "mwnf-standalone-related__print",
|
|
704
701
|
onClick: a
|
|
705
|
-
}, A(j(
|
|
702
|
+
}, A(j(n)(e.download.print)), 1),
|
|
706
703
|
e.download.word ? (T(), f("button", {
|
|
707
704
|
key: 0,
|
|
708
705
|
type: "button",
|
|
709
706
|
class: "mwnf-standalone-related__print mwnf-standalone-related__word",
|
|
710
707
|
onClick: o
|
|
711
|
-
}, A(j(
|
|
708
|
+
}, A(j(n)(e.download.word)), 1)) : d("", !0)
|
|
712
709
|
])) : d("", !0)
|
|
713
710
|
]));
|
|
714
711
|
}
|
|
@@ -736,32 +733,32 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
736
733
|
}
|
|
737
734
|
},
|
|
738
735
|
setup(e) {
|
|
739
|
-
let
|
|
740
|
-
...
|
|
736
|
+
let t = e, { t: a } = q(), v = P(), y = l(() => ({
|
|
737
|
+
...t.spec,
|
|
741
738
|
media: () => []
|
|
742
739
|
}));
|
|
743
740
|
function b(e) {
|
|
744
|
-
return
|
|
741
|
+
return o(S(e), t.spec.pictureLimit, e);
|
|
745
742
|
}
|
|
746
|
-
function S({ record: e, text:
|
|
747
|
-
if (
|
|
743
|
+
function S({ record: e, text: n, language: r }) {
|
|
744
|
+
if (t.spec.media) return t.spec.media(e, {
|
|
748
745
|
record: e,
|
|
749
|
-
text:
|
|
750
|
-
language:
|
|
746
|
+
text: n,
|
|
747
|
+
language: r
|
|
751
748
|
});
|
|
752
|
-
let
|
|
753
|
-
return re(e?.images,
|
|
754
|
-
let { photographer: t, copyright:
|
|
749
|
+
let i = K(String(n?.name ?? e?.internal_name ?? ""));
|
|
750
|
+
return re(e?.images, r).map((e) => {
|
|
751
|
+
let { photographer: t, copyright: n } = ne(e, r), o = [t ? `${a("record.media.photograph")}: ${t}` : "", n ? `© ${n}` : ""].filter(Boolean).join(", ");
|
|
755
752
|
return {
|
|
756
753
|
url: e.url,
|
|
757
|
-
alt:
|
|
758
|
-
caption: e.captions?.[
|
|
754
|
+
alt: o || e.captions?.[r] || i,
|
|
755
|
+
caption: e.captions?.[r] ?? ""
|
|
759
756
|
};
|
|
760
757
|
});
|
|
761
758
|
}
|
|
762
|
-
let C = l(() =>
|
|
759
|
+
let C = l(() => t.back.map((e) => ({
|
|
763
760
|
...e,
|
|
764
|
-
label:
|
|
761
|
+
label: a(e.label)
|
|
765
762
|
}))), w = /* @__PURE__ */ new Set([
|
|
766
763
|
"header",
|
|
767
764
|
"before-sheet",
|
|
@@ -774,14 +771,14 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
774
771
|
window.history.back();
|
|
775
772
|
}
|
|
776
773
|
let j = (e) => [...e].sort((e, t) => t.code.localeCompare(e.code));
|
|
777
|
-
return (
|
|
774
|
+
return (t, a) => (T(), u(s, {
|
|
778
775
|
spec: y.value,
|
|
779
776
|
id: e.id,
|
|
780
777
|
class: "mwnf-standalone-item"
|
|
781
778
|
}, m({
|
|
782
|
-
header: z(({ languages: e, language:
|
|
779
|
+
header: z(({ languages: e, language: t, select: r }) => [p("div", bt, [g(n, {
|
|
783
780
|
languages: j(e),
|
|
784
|
-
language:
|
|
781
|
+
language: t,
|
|
785
782
|
from: 1,
|
|
786
783
|
onSelect: r
|
|
787
784
|
}, null, 8, [
|
|
@@ -794,7 +791,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
794
791
|
type: "button",
|
|
795
792
|
class: "mwnf-standalone-item__back-link",
|
|
796
793
|
onClick: D
|
|
797
|
-
}, A(e.label), 1)) : (T(), u(
|
|
794
|
+
}, A(e.label), 1)) : (T(), u(r, {
|
|
798
795
|
key: 1,
|
|
799
796
|
class: "mwnf-standalone-item__back-link",
|
|
800
797
|
to: e.to,
|
|
@@ -802,18 +799,18 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
802
799
|
}, {
|
|
803
800
|
default: z(() => [h(A(e.label), 1)]),
|
|
804
801
|
_: 2
|
|
805
|
-
}, 1032, ["to", "href"]))], 64))), 128))])) : d("", !0), g(
|
|
802
|
+
}, 1032, ["to", "href"]))], 64))), 128))])) : d("", !0), g(i, {
|
|
806
803
|
images: b(e),
|
|
807
804
|
"thumbs-from": 1
|
|
808
|
-
}, null, 8, ["images"])]), k(
|
|
809
|
-
related: z((
|
|
805
|
+
}, null, 8, ["images"])]), k(t.$slots, "before-sheet", x(_(e)))]),
|
|
806
|
+
related: z((n) => [g(yt, {
|
|
810
807
|
heading: e.related.heading ?? "record.related.title",
|
|
811
|
-
records:
|
|
808
|
+
records: n.records,
|
|
812
809
|
groups: e.related.groups ?? [],
|
|
813
810
|
download: e.related.download ?? null,
|
|
814
|
-
"word-file": e.related.download?.wordFile?.(
|
|
811
|
+
"word-file": e.related.download?.wordFile?.(n.record, n.language) ?? "sheet.doc"
|
|
815
812
|
}, {
|
|
816
|
-
default: z(() => [k(
|
|
813
|
+
default: z(() => [k(t.$slots, "sidebar", x(_(n)))]),
|
|
817
814
|
_: 2
|
|
818
815
|
}, 1032, [
|
|
819
816
|
"heading",
|
|
@@ -822,11 +819,11 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
822
819
|
"download",
|
|
823
820
|
"word-file"
|
|
824
821
|
])]),
|
|
825
|
-
source: z((e) => [k(
|
|
822
|
+
source: z((e) => [k(t.$slots, "source", x(_(e)))]),
|
|
826
823
|
_: 2
|
|
827
824
|
}, [O(E.value, (e) => ({
|
|
828
825
|
name: e,
|
|
829
|
-
fn: z((
|
|
826
|
+
fn: z((n) => [k(t.$slots, e, x(_(n)))])
|
|
830
827
|
}))]), 1032, ["spec", "id"]));
|
|
831
828
|
}
|
|
832
829
|
}, wt = {
|
|
@@ -904,7 +901,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
904
901
|
}
|
|
905
902
|
},
|
|
906
903
|
setup(e) {
|
|
907
|
-
let
|
|
904
|
+
let t = e, { t: o, locale: m } = q(), _ = M(), v = {
|
|
908
905
|
entity: "partners",
|
|
909
906
|
fields: [],
|
|
910
907
|
shortDescription: !1,
|
|
@@ -920,22 +917,22 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
920
917
|
phone: "partner.info.phone",
|
|
921
918
|
fax: "partner.info.fax",
|
|
922
919
|
map: "partner.map.map"
|
|
923
|
-
}, S = (e) =>
|
|
920
|
+
}, S = (e) => o(t.labels[e] ?? x[e]);
|
|
924
921
|
function C(e) {
|
|
925
|
-
return (typeof
|
|
922
|
+
return (typeof t.back == "function" ? t.back(e) ?? [] : t.back).map((e) => ({
|
|
926
923
|
...e,
|
|
927
|
-
label:
|
|
924
|
+
label: o(e.label)
|
|
928
925
|
}));
|
|
929
926
|
}
|
|
930
927
|
function w() {
|
|
931
928
|
window.history.back();
|
|
932
929
|
}
|
|
933
|
-
function E(e,
|
|
934
|
-
let
|
|
935
|
-
return
|
|
930
|
+
function E(e, n, r) {
|
|
931
|
+
let i = [];
|
|
932
|
+
return t.about(n, r) && i.push("about"), e.hasContact && i.push("contact"), e.logos.length && i.push("logo"), i;
|
|
936
933
|
}
|
|
937
934
|
let k = D("about");
|
|
938
|
-
R(() =>
|
|
935
|
+
R(() => t.id, () => {
|
|
939
936
|
k.value = "about";
|
|
940
937
|
});
|
|
941
938
|
function N(e, t) {
|
|
@@ -945,20 +942,20 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
945
942
|
Home: 0,
|
|
946
943
|
End: t.length - 1
|
|
947
944
|
}[e.key];
|
|
948
|
-
r
|
|
945
|
+
r !== void 0 && t.length && (e.preventDefault(), k.value = t[r], y(() => document.getElementById(`${_}-tab-${t[r]}`)?.focus()));
|
|
949
946
|
}
|
|
950
947
|
let P = (e) => e.pictures.map((e) => ({
|
|
951
948
|
url: e.url,
|
|
952
949
|
alt: e.alt
|
|
953
|
-
})), F = (e) => [...e.contact.website ? [e.contact.website] : [], ...
|
|
954
|
-
return (l, m) => (T(), u(
|
|
950
|
+
})), F = (e) => [...e.contact.website ? [e.contact.website] : [], ...t.links ? e.contact.links : []], I = (e) => !!(e.contact.address || e.contact.phone || e.contact.fax || e.contact.email || e.contact.website), V = l(() => String(m.value || "en"));
|
|
951
|
+
return (l, m) => (T(), u(s, {
|
|
955
952
|
spec: v,
|
|
956
953
|
id: e.id,
|
|
957
954
|
class: "mwnf-standalone-partner"
|
|
958
955
|
}, {
|
|
959
|
-
header: z(({ record:
|
|
960
|
-
languages:
|
|
961
|
-
language:
|
|
956
|
+
header: z(({ record: r, languages: i, language: a, select: o }) => [e.bands(r) ? (T(), f("div", wt, [g(n, {
|
|
957
|
+
languages: i.filter((e) => t.languages(r, e.code)),
|
|
958
|
+
language: a,
|
|
962
959
|
from: 1,
|
|
963
960
|
onSelect: o
|
|
964
961
|
}, null, 8, [
|
|
@@ -966,13 +963,13 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
966
963
|
"language",
|
|
967
964
|
"onSelect"
|
|
968
965
|
])])) : (T(), f("div", Tt))]),
|
|
969
|
-
"before-sheet": z(({ record:
|
|
970
|
-
C(
|
|
966
|
+
"before-sheet": z(({ record: n, text: a, dir: s }) => [(T(!0), f(c, null, O([t.view(n, a)], (t) => (T(), f(c, { key: n.id }, [
|
|
967
|
+
C(n).length ? (T(), f("p", Et, [(T(!0), f(c, null, O(C(n), (e) => (T(), f(c, { key: e.label }, [e.history ? (T(), f("button", {
|
|
971
968
|
key: 0,
|
|
972
969
|
type: "button",
|
|
973
970
|
class: "mwnf-standalone-item__back-link",
|
|
974
971
|
onClick: w
|
|
975
|
-
}, A(e.label), 1)) : (T(), u(
|
|
972
|
+
}, A(e.label), 1)) : (T(), u(r, {
|
|
976
973
|
key: 1,
|
|
977
974
|
class: "mwnf-standalone-item__back-link",
|
|
978
975
|
to: e.to,
|
|
@@ -983,15 +980,15 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
983
980
|
}, 1032, ["to", "href"]))], 64))), 128))])) : d("", !0),
|
|
984
981
|
p("div", Dt, [p("h3", {
|
|
985
982
|
class: "mwnf-standalone-partner__name",
|
|
986
|
-
dir:
|
|
987
|
-
innerHTML:
|
|
988
|
-
}, null, 8, Ot),
|
|
983
|
+
dir: s || void 0,
|
|
984
|
+
innerHTML: t.name
|
|
985
|
+
}, null, 8, Ot), t.location ? (T(), f("h4", kt, [p("i", null, A(t.location), 1)])) : d("", !0)]),
|
|
989
986
|
p("div", At, [p("div", jt, [p("ul", {
|
|
990
987
|
role: "tablist",
|
|
991
988
|
class: "mwnf-standalone-partner__tabs",
|
|
992
|
-
"aria-label":
|
|
993
|
-
onKeydown: (e) => N(e, E(
|
|
994
|
-
}, [(T(!0), f(c, null, O(E(
|
|
989
|
+
"aria-label": t.plainName,
|
|
990
|
+
onKeydown: (e) => N(e, E(t, n, a))
|
|
991
|
+
}, [(T(!0), f(c, null, O(E(t, n, a), (e, r) => (T(), f("li", {
|
|
995
992
|
key: e,
|
|
996
993
|
role: "presentation"
|
|
997
994
|
}, [p("button", {
|
|
@@ -1003,77 +1000,77 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1003
1000
|
"aria-controls": `${j(_)}-panel-${e}`,
|
|
1004
1001
|
tabindex: k.value === e ? 0 : -1,
|
|
1005
1002
|
onClick: (t) => k.value = e
|
|
1006
|
-
}, "\xA0" + A(S(e)), 11, Nt),
|
|
1003
|
+
}, "\xA0" + A(S(e)), 11, Nt), r < E(t, n, a).length - 1 || t.contact.website ? (T(), f("span", Pt, "\xA0|")) : d("", !0)]))), 128)), t.contact.website ? (T(), f("li", Ft, [p("a", {
|
|
1007
1004
|
class: "mwnf-standalone-partner__homepage",
|
|
1008
|
-
href:
|
|
1005
|
+
href: t.contact.website.url,
|
|
1009
1006
|
target: "_blank",
|
|
1010
1007
|
rel: "noopener"
|
|
1011
|
-
}, "\xA0" + A(S("homepage")), 9, It)])) : d("", !0)], 40, Mt)]), p("div", Lt, [e.items(
|
|
1008
|
+
}, "\xA0" + A(S("homepage")), 9, It)])) : d("", !0)], 40, Mt)]), p("div", Lt, [e.items(n) ? (T(), u(r, {
|
|
1012
1009
|
key: 0,
|
|
1013
1010
|
class: "mwnf-standalone-partner__items",
|
|
1014
|
-
to: e.items(
|
|
1011
|
+
to: e.items(n).to
|
|
1015
1012
|
}, {
|
|
1016
|
-
default: z(() => [h(A(j(
|
|
1013
|
+
default: z(() => [h(A(j(o)(e.items(n).label)), 1)]),
|
|
1017
1014
|
_: 2
|
|
1018
1015
|
}, 1032, ["to"])) : d("", !0)])]),
|
|
1019
|
-
p("div", Rt, [p("div", zt, [
|
|
1016
|
+
p("div", Rt, [p("div", zt, [t.pictures.length ? (T(), u(i, {
|
|
1020
1017
|
key: 0,
|
|
1021
|
-
images: P(
|
|
1018
|
+
images: P(t)
|
|
1022
1019
|
}, null, 8, ["images"])) : d("", !0)]), p("div", Bt, [
|
|
1023
1020
|
B(p("div", {
|
|
1024
1021
|
id: `${j(_)}-panel-about`,
|
|
1025
1022
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__about",
|
|
1026
1023
|
role: "tabpanel",
|
|
1027
1024
|
"aria-labelledby": `${j(_)}-tab-about`,
|
|
1028
|
-
dir:
|
|
1029
|
-
innerHTML:
|
|
1025
|
+
dir: s || void 0,
|
|
1026
|
+
innerHTML: t.description
|
|
1030
1027
|
}, null, 8, Vt), [[L, k.value === "about"]]),
|
|
1031
|
-
|
|
1028
|
+
t.hasContact ? B((T(), f("div", {
|
|
1032
1029
|
key: 0,
|
|
1033
1030
|
id: `${j(_)}-panel-contact`,
|
|
1034
1031
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__contact",
|
|
1035
1032
|
role: "tabpanel",
|
|
1036
1033
|
"aria-labelledby": `${j(_)}-tab-contact`
|
|
1037
|
-
}, [I(
|
|
1034
|
+
}, [I(t) ? (T(), f(c, { key: 0 }, [p("p", null, [
|
|
1038
1035
|
p("b", null, A(S("addresses")), 1),
|
|
1039
1036
|
m[4] ||= p("br", null, null, -1),
|
|
1040
|
-
|
|
1037
|
+
t.contact.address ? (T(), f(c, { key: 0 }, [p("span", {
|
|
1041
1038
|
class: "mwnf-standalone-partner__address",
|
|
1042
|
-
innerHTML:
|
|
1039
|
+
innerHTML: t.contact.address
|
|
1043
1040
|
}, null, 8, Ut), m[0] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
]), F(
|
|
1041
|
+
t.contact.phone ? (T(), f(c, { key: 1 }, [h(A(S("phone")) + " " + A(t.contact.phone), 1), m[1] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1042
|
+
t.contact.fax ? (T(), f(c, { key: 2 }, [h(A(S("fax")) + " " + A(t.contact.fax), 1), m[2] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1043
|
+
t.contact.email ? (T(), f(c, { key: 3 }, [p("a", { href: `mailto:${t.contact.email}` }, A(t.contact.email), 9, Wt), m[3] ||= p("br", null, null, -1)], 64)) : d("", !0)
|
|
1044
|
+
]), F(t).length ? (T(), f("p", Gt, [(T(!0), f(c, null, O(F(t), (e, t) => (T(), f(c, { key: e.url }, [t ? (T(), f(c, { key: 0 }, [h("\xA0|\xA0")], 64)) : d("", !0), p("a", {
|
|
1048
1045
|
href: e.url,
|
|
1049
1046
|
target: "_blank",
|
|
1050
1047
|
rel: "noopener"
|
|
1051
|
-
}, A(e.label), 9, Kt)], 64))), 128))])) : d("", !0)], 64)) : d("", !0), (T(!0), f(c, null, O(
|
|
1048
|
+
}, A(e.label), 9, Kt)], 64))), 128))])) : d("", !0)], 64)) : d("", !0), (T(!0), f(c, null, O(t.persons, (e, t) => (T(), f("p", { key: t }, [
|
|
1052
1049
|
e.title ? (T(), f(c, { key: 0 }, [p("strong", null, A(e.title), 1), m[5] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1053
1050
|
e.name ? (T(), f(c, { key: 1 }, [h(A(e.name), 1), m[6] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1054
1051
|
e.phone ? (T(), f(c, { key: 2 }, [h(A(S("phone")) + " " + A(e.phone), 1), m[7] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1055
1052
|
e.fax ? (T(), f(c, { key: 3 }, [h(A(S("fax")) + " " + A(e.fax), 1), m[8] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1056
1053
|
e.email ? (T(), f(c, { key: 4 }, [p("a", { href: `mailto:${e.email}` }, A(e.email), 9, qt), m[9] ||= p("br", null, null, -1)], 64)) : d("", !0)
|
|
1057
1054
|
]))), 128))], 8, Ht)), [[L, k.value === "contact"]]) : d("", !0),
|
|
1058
|
-
|
|
1055
|
+
t.logos.length ? B((T(), f("div", {
|
|
1059
1056
|
key: 1,
|
|
1060
1057
|
id: `${j(_)}-panel-logo`,
|
|
1061
1058
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__logos",
|
|
1062
1059
|
role: "tabpanel",
|
|
1063
1060
|
"aria-labelledby": `${j(_)}-tab-logo`
|
|
1064
|
-
}, [(T(!0), f(c, null, O(
|
|
1061
|
+
}, [(T(!0), f(c, null, O(t.logos, (e) => (T(), f("img", {
|
|
1065
1062
|
key: e.url,
|
|
1066
1063
|
src: e.url,
|
|
1067
1064
|
alt: ""
|
|
1068
1065
|
}, null, 8, Yt))), 128))], 8, Jt)), [[L, k.value === "logo"]]) : d("", !0)
|
|
1069
1066
|
])])
|
|
1070
1067
|
], 64))), 128))]),
|
|
1071
|
-
after: z(({ record:
|
|
1068
|
+
after: z(({ record: n, text: r }) => [e.map(n) && t.view(n, r)?.map ? (T(), f("section", Xt, [p("h3", Zt, A(S("map")), 1), g(a, {
|
|
1072
1069
|
provider: "google",
|
|
1073
|
-
latitude:
|
|
1074
|
-
longitude:
|
|
1075
|
-
zoom:
|
|
1076
|
-
label:
|
|
1070
|
+
latitude: t.view(n, r).map.latitude,
|
|
1071
|
+
longitude: t.view(n, r).map.longitude,
|
|
1072
|
+
zoom: t.view(n, r).map.zoom,
|
|
1073
|
+
label: t.view(n, r).map.label,
|
|
1077
1074
|
language: V.value
|
|
1078
1075
|
}, null, 8, [
|
|
1079
1076
|
"latitude",
|
|
@@ -1116,7 +1113,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1116
1113
|
}
|
|
1117
1114
|
},
|
|
1118
1115
|
setup(e) {
|
|
1119
|
-
let t = e, { t:
|
|
1116
|
+
let t = e, { t: n } = q(), i = l(() => ae(n(t.body)));
|
|
1120
1117
|
function a() {
|
|
1121
1118
|
window.print();
|
|
1122
1119
|
}
|
|
@@ -1128,18 +1125,18 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1128
1125
|
class: "mwnf-standalone-page__body",
|
|
1129
1126
|
innerHTML: i.value
|
|
1130
1127
|
}, null, 8, $t),
|
|
1131
|
-
e.link ? (T(), f("p", en, [g(
|
|
1128
|
+
e.link ? (T(), f("p", en, [g(r, {
|
|
1132
1129
|
to: e.link.to,
|
|
1133
1130
|
href: e.link.href
|
|
1134
1131
|
}, {
|
|
1135
|
-
default: z(() => [p("strong", null, A(e.link.text ?? j(
|
|
1132
|
+
default: z(() => [p("strong", null, A(e.link.text ?? j(n)(e.link.label)), 1)]),
|
|
1136
1133
|
_: 1
|
|
1137
1134
|
}, 8, ["to", "href"])])) : d("", !0),
|
|
1138
1135
|
e.print ? (T(), f("p", tn, [p("button", {
|
|
1139
1136
|
type: "button",
|
|
1140
1137
|
class: "mwnf-standalone-page__print-button",
|
|
1141
1138
|
onClick: a
|
|
1142
|
-
}, A(j(
|
|
1139
|
+
}, A(j(n)(e.print)), 1)])) : d("", !0)
|
|
1143
1140
|
], 2));
|
|
1144
1141
|
}
|
|
1145
1142
|
}, rn = {
|
|
@@ -1158,11 +1155,11 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1158
1155
|
}
|
|
1159
1156
|
},
|
|
1160
1157
|
setup(e) {
|
|
1161
|
-
let t = e, { t:
|
|
1158
|
+
let t = e, { t: n } = q(), i = l(() => t.tabs.map((e) => ({
|
|
1162
1159
|
...e,
|
|
1163
|
-
label:
|
|
1160
|
+
label: n(e.label)
|
|
1164
1161
|
})));
|
|
1165
|
-
return (t, a) => i.value.length || e.aside ? (T(), f("nav", rn, [p("ul", an, [(T(!0), f(c, null, O(i.value, (e) => (T(), f("li", { key: e.label }, [g(
|
|
1162
|
+
return (t, a) => i.value.length || e.aside ? (T(), f("nav", rn, [p("ul", an, [(T(!0), f(c, null, O(i.value, (e) => (T(), f("li", { key: e.label }, [g(r, {
|
|
1166
1163
|
to: e.to,
|
|
1167
1164
|
href: e.href,
|
|
1168
1165
|
class: b(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
|
|
@@ -1175,13 +1172,13 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1175
1172
|
"href",
|
|
1176
1173
|
"class",
|
|
1177
1174
|
"aria-current"
|
|
1178
|
-
])]))), 128))]), e.aside ? (T(), u(
|
|
1175
|
+
])]))), 128))]), e.aside ? (T(), u(r, {
|
|
1179
1176
|
key: 0,
|
|
1180
1177
|
to: e.aside.to,
|
|
1181
1178
|
href: e.aside.href,
|
|
1182
1179
|
class: "mwnf-standalone-subnav__aside"
|
|
1183
1180
|
}, {
|
|
1184
|
-
default: z(() => [h(A(j(
|
|
1181
|
+
default: z(() => [h(A(j(n)(e.aside.label)), 1)]),
|
|
1185
1182
|
_: 1
|
|
1186
1183
|
}, 8, ["to", "href"])) : d("", !0)])) : d("", !0);
|
|
1187
1184
|
}
|
|
@@ -1212,10 +1209,10 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1212
1209
|
}
|
|
1213
1210
|
},
|
|
1214
1211
|
setup(e) {
|
|
1215
|
-
return (t,
|
|
1212
|
+
return (t, n) => (T(), f("div", sn, [e.rows.length ? d("", !0) : (T(), f("p", cn, A(e.empty), 1)), (T(!0), f(c, null, O(e.rows, (t) => (T(), f("div", {
|
|
1216
1213
|
key: t.id,
|
|
1217
1214
|
class: "mwnf-standalone-results__cell"
|
|
1218
|
-
}, [p("div", ln, [g(
|
|
1215
|
+
}, [p("div", ln, [g(r, {
|
|
1219
1216
|
class: "mwnf-standalone-results__frame",
|
|
1220
1217
|
to: t.to,
|
|
1221
1218
|
href: t.href
|
|
@@ -1226,7 +1223,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1226
1223
|
}, null, 8, un)]),
|
|
1227
1224
|
_: 2
|
|
1228
1225
|
}, 1032, ["to", "href"]), p("div", dn, [
|
|
1229
|
-
g(
|
|
1226
|
+
g(r, {
|
|
1230
1227
|
class: "mwnf-standalone-results__panel-frame",
|
|
1231
1228
|
to: t.to,
|
|
1232
1229
|
href: t.href
|
|
@@ -1237,7 +1234,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1237
1234
|
}, null, 8, fn)]),
|
|
1238
1235
|
_: 2
|
|
1239
1236
|
}, 1032, ["to", "href"]),
|
|
1240
|
-
p("p", pn, [p("strong", null, [g(
|
|
1237
|
+
p("p", pn, [p("strong", null, [g(r, {
|
|
1241
1238
|
to: t.to,
|
|
1242
1239
|
href: t.href
|
|
1243
1240
|
}, {
|
|
@@ -1253,7 +1250,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1253
1250
|
key: 1,
|
|
1254
1251
|
innerHTML: t.location
|
|
1255
1252
|
}, null, 8, vn)) : d("", !0),
|
|
1256
|
-
p("p", null, [g(
|
|
1253
|
+
p("p", null, [g(r, {
|
|
1257
1254
|
class: "mwnf-standalone-results__see",
|
|
1258
1255
|
to: t.to,
|
|
1259
1256
|
href: t.href
|
|
@@ -1286,7 +1283,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1286
1283
|
}
|
|
1287
1284
|
},
|
|
1288
1285
|
setup(e) {
|
|
1289
|
-
let t = e,
|
|
1286
|
+
let t = e, n = D(null), i = l(() => n.value ?? t.rows[0] ?? null);
|
|
1290
1287
|
return (t, a) => (T(), f("div", bn, [p("div", xn, [i.value ? (T(), f("div", Sn, [
|
|
1291
1288
|
p("div", Cn, [i.value.image || e.noImage ? (T(), f("img", {
|
|
1292
1289
|
key: 0,
|
|
@@ -1306,11 +1303,11 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1306
1303
|
])) : d("", !0)]), p("div", jn, [e.rows.length ? d("", !0) : (T(), f("p", Mn, A(e.empty), 1)), (T(!0), f(c, null, O(e.rows, (t) => (T(), f("div", {
|
|
1307
1304
|
key: t.id,
|
|
1308
1305
|
class: "mwnf-standalone-list__cell"
|
|
1309
|
-
}, [p("div", Nn, [g(
|
|
1306
|
+
}, [p("div", Nn, [g(r, {
|
|
1310
1307
|
to: t.to,
|
|
1311
1308
|
href: t.href,
|
|
1312
|
-
onMouseenter: (e) =>
|
|
1313
|
-
onMouseleave: a[0] ||= (e) =>
|
|
1309
|
+
onMouseenter: (e) => n.value = t,
|
|
1310
|
+
onMouseleave: a[0] ||= (e) => n.value = null
|
|
1314
1311
|
}, {
|
|
1315
1312
|
default: z(() => [t.image || e.noImage ? (T(), f("img", {
|
|
1316
1313
|
key: 0,
|
|
@@ -1322,11 +1319,11 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1322
1319
|
"to",
|
|
1323
1320
|
"href",
|
|
1324
1321
|
"onMouseenter"
|
|
1325
|
-
])]), p("div", Fn, [p("p", null, [g(
|
|
1322
|
+
])]), p("div", Fn, [p("p", null, [g(r, {
|
|
1326
1323
|
to: t.to,
|
|
1327
1324
|
href: t.href,
|
|
1328
|
-
onMouseenter: (e) =>
|
|
1329
|
-
onMouseleave: a[1] ||= (e) =>
|
|
1325
|
+
onMouseenter: (e) => n.value = t,
|
|
1326
|
+
onMouseleave: a[1] ||= (e) => n.value = null
|
|
1330
1327
|
}, {
|
|
1331
1328
|
default: z(() => [
|
|
1332
1329
|
p("span", {
|
|
@@ -1382,7 +1379,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1382
1379
|
},
|
|
1383
1380
|
emits: ["search"],
|
|
1384
1381
|
setup(e, { emit: t }) {
|
|
1385
|
-
let
|
|
1382
|
+
let n = e, i = t, a = D(""), o = D(n.fields[0]?.value ?? "");
|
|
1386
1383
|
function s() {
|
|
1387
1384
|
let e = a.value.trim();
|
|
1388
1385
|
e && i("search", {
|
|
@@ -1390,27 +1387,27 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1390
1387
|
field: o.value
|
|
1391
1388
|
});
|
|
1392
1389
|
}
|
|
1393
|
-
return (t,
|
|
1390
|
+
return (t, n) => (T(), f("form", {
|
|
1394
1391
|
class: "mwnf-standalone-refine",
|
|
1395
1392
|
onSubmit: V(s, ["prevent"])
|
|
1396
1393
|
}, [p("div", Vn, [
|
|
1397
1394
|
p("label", Hn, A(e.label), 1),
|
|
1398
1395
|
B(p("input", {
|
|
1399
1396
|
id: "mwnf-standalone-refine-keyword",
|
|
1400
|
-
"onUpdate:modelValue":
|
|
1397
|
+
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
1401
1398
|
type: "text",
|
|
1402
1399
|
size: "40"
|
|
1403
1400
|
}, null, 512), [[I, a.value]]),
|
|
1404
1401
|
p("label", Un, A(e.inLabel), 1),
|
|
1405
1402
|
B(p("select", {
|
|
1406
1403
|
id: "mwnf-standalone-refine-field",
|
|
1407
|
-
"onUpdate:modelValue":
|
|
1404
|
+
"onUpdate:modelValue": n[1] ||= (e) => o.value = e
|
|
1408
1405
|
}, [(T(!0), f(c, null, O(e.fields, (e) => (T(), f("option", {
|
|
1409
1406
|
key: e.value,
|
|
1410
1407
|
value: e.value
|
|
1411
1408
|
}, A(e.label), 9, Wn))), 128))], 512), [[F, o.value]]),
|
|
1412
1409
|
p("button", Gn, A(e.searchLabel), 1),
|
|
1413
|
-
g(
|
|
1410
|
+
g(r, {
|
|
1414
1411
|
class: "mwnf-standalone-refine__button mwnf-standalone-refine__button--new",
|
|
1415
1412
|
to: e.newSearch
|
|
1416
1413
|
}, {
|
|
@@ -1451,21 +1448,21 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1451
1448
|
}
|
|
1452
1449
|
},
|
|
1453
1450
|
setup(e) {
|
|
1454
|
-
let t = e,
|
|
1455
|
-
R([
|
|
1456
|
-
i.value =
|
|
1451
|
+
let t = e, n = l(() => t.type === "museum"), i = D(null), a = D(/* @__PURE__ */ new Set());
|
|
1452
|
+
R([n, () => t.groups.length], () => {
|
|
1453
|
+
i.value = n.value ? null : 0, a.value = n.value ? /* @__PURE__ */ new Set() : new Set(t.groups.map((e, t) => t));
|
|
1457
1454
|
}, { immediate: !0 });
|
|
1458
1455
|
function o(e) {
|
|
1459
1456
|
let t = i.value === e;
|
|
1460
1457
|
i.value = t ? null : e, a.value = t ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([e]);
|
|
1461
1458
|
}
|
|
1462
|
-
return (t, s) => (T(), f("div", { class: b(["mwnf-standalone-pl",
|
|
1459
|
+
return (t, s) => (T(), f("div", { class: b(["mwnf-standalone-pl", n.value ? "mwnf-standalone-pl--museums" : "mwnf-standalone-pl--institutions"]) }, [
|
|
1463
1460
|
p("p", qn, [(T(!0), f(c, null, O(e.back, (e) => (T(), f(c, { key: e.label }, [e.history ? (T(), f("button", {
|
|
1464
1461
|
key: 0,
|
|
1465
1462
|
type: "button",
|
|
1466
1463
|
class: "mwnf-standalone-item__back-link",
|
|
1467
1464
|
onClick: s[0] ||= (e) => t.$router.back()
|
|
1468
|
-
}, A(e.label), 1)) : (T(), u(
|
|
1465
|
+
}, A(e.label), 1)) : (T(), u(r, {
|
|
1469
1466
|
key: 1,
|
|
1470
1467
|
class: "mwnf-standalone-item__back-link",
|
|
1471
1468
|
to: e.to,
|
|
@@ -1478,23 +1475,23 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1478
1475
|
(T(!0), f(c, null, O(e.groups, (t, s) => (T(), f("div", {
|
|
1479
1476
|
key: t.label,
|
|
1480
1477
|
class: "mwnf-standalone-pl__group"
|
|
1481
|
-
}, [p("div", Yn, [
|
|
1478
|
+
}, [p("div", Yn, [n.value ? (T(), f("h3", Xn, A(t.label), 1)) : d("", !0), p("h3", null, [p("a", {
|
|
1482
1479
|
href: "#",
|
|
1483
1480
|
class: b(["mwnf-standalone-pl__toggle", { "mwnf-standalone-pl__toggle--active": i.value === s }]),
|
|
1484
1481
|
onClick: V((e) => o(s), ["prevent"])
|
|
1485
|
-
}, A(
|
|
1482
|
+
}, A(n.value ? e.seeAssociated : t.label), 11, Zn)])]), B(p("div", Qn, [p("div", $n, [(T(!0), f(c, null, O(t.main, (e) => (T(), f("p", { key: e.id }, [g(r, {
|
|
1486
1483
|
to: e.to,
|
|
1487
1484
|
href: e.href
|
|
1488
1485
|
}, {
|
|
1489
1486
|
default: z(() => [h(A(e.label), 1)]),
|
|
1490
1487
|
_: 2
|
|
1491
|
-
}, 1032, ["to", "href"])]))), 128))]), B(p("div", er, [(T(!0), f(c, null, O(t.associated, (e) => (T(), f("p", { key: e.id }, [g(
|
|
1488
|
+
}, 1032, ["to", "href"])]))), 128))]), B(p("div", er, [(T(!0), f(c, null, O(t.associated, (e) => (T(), f("p", { key: e.id }, [g(r, {
|
|
1492
1489
|
to: e.to,
|
|
1493
1490
|
href: e.href
|
|
1494
1491
|
}, {
|
|
1495
1492
|
default: z(() => [h(A(e.label), 1)]),
|
|
1496
1493
|
_: 2
|
|
1497
|
-
}, 1032, ["to", "href"])]))), 128)),
|
|
1494
|
+
}, 1032, ["to", "href"])]))), 128)), n.value && !t.associated.length ? (T(), f("p", tr, A(e.noAssociated), 1)) : d("", !0)], 512), [[L, !n.value || a.value.has(s)]])], 512), [[L, n.value || a.value.has(s)]])]))), 128))
|
|
1498
1495
|
], 2));
|
|
1499
1496
|
}
|
|
1500
1497
|
}, rr = { class: "mwnf-standalone-item__back mwnf-standalone-sp__back" }, ir = {
|
|
@@ -1517,18 +1514,18 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1517
1514
|
}
|
|
1518
1515
|
},
|
|
1519
1516
|
setup(e) {
|
|
1520
|
-
let t = e,
|
|
1517
|
+
let t = e, n = l(() => t.rows.some((e) => e.label !== void 0)), i = l(() => t.rows.map((e) => ({
|
|
1521
1518
|
...e,
|
|
1522
1519
|
labelHtml: e.label ? W(e.label) : "",
|
|
1523
1520
|
remarksHtml: e.remarks ? W(e.remarks) : ""
|
|
1524
1521
|
})));
|
|
1525
|
-
return (t, a) => (T(), f("div", { class: b(["mwnf-standalone-sp", { "mwnf-standalone-sp--labels":
|
|
1522
|
+
return (t, a) => (T(), f("div", { class: b(["mwnf-standalone-sp", { "mwnf-standalone-sp--labels": n.value }]) }, [
|
|
1526
1523
|
p("p", rr, [(T(!0), f(c, null, O(e.back, (e) => (T(), f(c, { key: e.label }, [e.history ? (T(), f("button", {
|
|
1527
1524
|
key: 0,
|
|
1528
1525
|
type: "button",
|
|
1529
1526
|
class: "mwnf-standalone-item__back-link",
|
|
1530
1527
|
onClick: a[0] ||= (e) => t.$router.back()
|
|
1531
|
-
}, A(e.label), 1)) : (T(), u(
|
|
1528
|
+
}, A(e.label), 1)) : (T(), u(r, {
|
|
1532
1529
|
key: 1,
|
|
1533
1530
|
class: "mwnf-standalone-item__back-link",
|
|
1534
1531
|
to: e.to,
|
|
@@ -1542,7 +1539,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1542
1539
|
key: t,
|
|
1543
1540
|
class: "mwnf-standalone-sp__row"
|
|
1544
1541
|
}, [
|
|
1545
|
-
|
|
1542
|
+
n.value ? (T(), f("div", {
|
|
1546
1543
|
key: 0,
|
|
1547
1544
|
class: "mwnf-standalone-sp__label",
|
|
1548
1545
|
innerHTML: e.labelHtml
|
|
@@ -1597,7 +1594,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1597
1594
|
}
|
|
1598
1595
|
},
|
|
1599
1596
|
setup(e) {
|
|
1600
|
-
let t = e,
|
|
1597
|
+
let t = e, n = l(() => t.projects.map((e) => ({
|
|
1601
1598
|
...e,
|
|
1602
1599
|
aboutHtml: e.about ? W(e.about) : ""
|
|
1603
1600
|
}))), i = D(-1);
|
|
@@ -1608,29 +1605,29 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1608
1605
|
e.key === "Escape" && a();
|
|
1609
1606
|
}
|
|
1610
1607
|
return R(i, (e) => {
|
|
1611
|
-
typeof document
|
|
1608
|
+
typeof document < "u" && (e >= 0 ? document.addEventListener("keydown", o) : document.removeEventListener("keydown", o));
|
|
1612
1609
|
}), C(() => {
|
|
1613
1610
|
typeof document < "u" && document.removeEventListener("keydown", o);
|
|
1614
1611
|
}), (t, o) => (T(), f("div", gr, [i.value >= 0 ? (T(), f("div", {
|
|
1615
1612
|
key: 0,
|
|
1616
1613
|
class: "mwnf-standalone-pe__shade",
|
|
1617
1614
|
onClick: a
|
|
1618
|
-
})) : d("", !0), (T(!0), f(c, null, O(
|
|
1619
|
-
key:
|
|
1615
|
+
})) : d("", !0), (T(!0), f(c, null, O(n.value, (t, n) => (T(), f("div", {
|
|
1616
|
+
key: n,
|
|
1620
1617
|
class: "mwnf-standalone-pe__row"
|
|
1621
1618
|
}, [p("div", _r, [p("h3", vr, A(t.name), 1)]), p("div", yr, [
|
|
1622
1619
|
o[1] ||= p("p", { "aria-hidden": "true" }, "\xA0", -1),
|
|
1623
1620
|
t.aboutHtml ? (T(), f("p", br, [p("button", {
|
|
1624
1621
|
type: "button",
|
|
1625
|
-
"aria-expanded": i.value ===
|
|
1626
|
-
onClick: (e) => i.value =
|
|
1622
|
+
"aria-expanded": i.value === n,
|
|
1623
|
+
onClick: (e) => i.value = n
|
|
1627
1624
|
}, A(e.aboutLabel), 9, xr)])) : d("", !0),
|
|
1628
|
-
i.value ===
|
|
1625
|
+
i.value === n ? (T(), f("div", Sr, [p("button", {
|
|
1629
1626
|
type: "button",
|
|
1630
1627
|
class: "mwnf-standalone-pe__close",
|
|
1631
1628
|
"aria-label": e.closeLabel || void 0,
|
|
1632
1629
|
onClick: a
|
|
1633
|
-
}, [(T(), f("svg", wr, [p("mask", { id: `mwnf-standalone-pe-x${
|
|
1630
|
+
}, [(T(), f("svg", wr, [p("mask", { id: `mwnf-standalone-pe-x${n}` }, [...o[0] ||= [p("rect", {
|
|
1634
1631
|
width: "24",
|
|
1635
1632
|
height: "24",
|
|
1636
1633
|
fill: "#fff"
|
|
@@ -1644,12 +1641,12 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1644
1641
|
cy: "12",
|
|
1645
1642
|
r: "12",
|
|
1646
1643
|
fill: "currentColor",
|
|
1647
|
-
mask: `url(#mwnf-standalone-pe-x${
|
|
1644
|
+
mask: `url(#mwnf-standalone-pe-x${n})`
|
|
1648
1645
|
}, null, 8, Er)]))], 8, Cr), p("div", {
|
|
1649
1646
|
class: "mwnf-standalone-pe__text",
|
|
1650
1647
|
innerHTML: t.aboutHtml
|
|
1651
1648
|
}, null, 8, Dr)])) : d("", !0),
|
|
1652
|
-
(T(!0), f(c, null, O(t.links, (e) => (T(), f("p", { key: e.label }, [g(
|
|
1649
|
+
(T(!0), f(c, null, O(t.links, (e) => (T(), f("p", { key: e.label }, [g(r, {
|
|
1653
1650
|
to: e.to,
|
|
1654
1651
|
href: e.href
|
|
1655
1652
|
}, {
|
|
@@ -1828,11 +1825,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1828
1825
|
}
|
|
1829
1826
|
function o() {
|
|
1830
1827
|
let e = a();
|
|
1831
|
-
|
|
1832
|
-
window.alert(e);
|
|
1833
|
-
return;
|
|
1834
|
-
}
|
|
1835
|
-
r("search", { ...i });
|
|
1828
|
+
e ? window.alert(e) : r("search", { ...i });
|
|
1836
1829
|
}
|
|
1837
1830
|
return (t, n) => (T(), f("form", {
|
|
1838
1831
|
class: "mwnf-standalone-tle",
|
|
@@ -1998,22 +1991,22 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
1998
1991
|
},
|
|
1999
1992
|
emits: ["change", "navigate"],
|
|
2000
1993
|
setup(e, { emit: t }) {
|
|
2001
|
-
let
|
|
1994
|
+
let n = e, i = t, a = l(() => n.rows.length > 0);
|
|
2002
1995
|
function o() {
|
|
2003
1996
|
window.print();
|
|
2004
1997
|
}
|
|
2005
1998
|
function s(e) {
|
|
2006
1999
|
let t = e.currentTarget.closest(".mwnf-standalone-tlr");
|
|
2007
2000
|
lt(ut({
|
|
2008
|
-
title:
|
|
2009
|
-
heading:
|
|
2010
|
-
heads:
|
|
2011
|
-
rows:
|
|
2012
|
-
empty:
|
|
2001
|
+
title: n.download?.title ?? "",
|
|
2002
|
+
heading: n.download?.line ?? "",
|
|
2003
|
+
heads: n.heads,
|
|
2004
|
+
rows: n.all ?? n.rows,
|
|
2005
|
+
empty: n.empty,
|
|
2013
2006
|
dir: t ? getComputedStyle(t).direction : ""
|
|
2014
|
-
}),
|
|
2007
|
+
}), n.download?.file ?? "timeline.doc");
|
|
2015
2008
|
}
|
|
2016
|
-
return (t,
|
|
2009
|
+
return (t, n) => (T(), f("div", Ti, [
|
|
2017
2010
|
p("section", Ei, [p("div", Di, [p("p", Oi, [p("b", null, A(e.heading), 1), h(" | " + A(e.summary), 1)]), p("div", ki, [(T(!0), f(c, null, O(e.selects, (e) => (T(), f("p", { key: e.key }, [p("label", { for: `mwnf-tlr-${e.key}` }, A(e.label), 9, Ai), p("select", {
|
|
2018
2011
|
id: `mwnf-tlr-${e.key}`,
|
|
2019
2012
|
value: e.value,
|
|
@@ -2030,8 +2023,8 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
2030
2023
|
key: 0,
|
|
2031
2024
|
type: "button",
|
|
2032
2025
|
class: "mwnf-standalone-item__back-link",
|
|
2033
|
-
onClick:
|
|
2034
|
-
}, A(e.label), 1)) : (T(), u(
|
|
2026
|
+
onClick: n[0] ||= (e) => t.$router.back()
|
|
2027
|
+
}, A(e.label), 1)) : (T(), u(r, {
|
|
2035
2028
|
key: 1,
|
|
2036
2029
|
class: "mwnf-standalone-item__back-link",
|
|
2037
2030
|
to: e.to,
|
|
@@ -2052,7 +2045,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
2052
2045
|
"page-info": e.pageInfo,
|
|
2053
2046
|
"previous-label": e.previousLabel,
|
|
2054
2047
|
"next-label": e.nextLabel,
|
|
2055
|
-
onNavigate:
|
|
2048
|
+
onNavigate: n[1] ||= (e) => i("navigate", e)
|
|
2056
2049
|
}, null, 8, [
|
|
2057
2050
|
"page-info",
|
|
2058
2051
|
"previous-label",
|
|
@@ -2060,7 +2053,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
2060
2053
|
])) : d("", !0)
|
|
2061
2054
|
]), p("aside", Vi, [e.related ? (T(), f("div", Hi, [
|
|
2062
2055
|
p("p", null, [p("strong", null, A(e.related.heading), 1)]),
|
|
2063
|
-
(T(!0), f(c, null, O(e.related.links ?? [], (e) => (T(), f("p", { key: e.label }, [g(
|
|
2056
|
+
(T(!0), f(c, null, O(e.related.links ?? [], (e) => (T(), f("p", { key: e.label }, [g(r, {
|
|
2064
2057
|
class: "mwnf-standalone-tlr__link",
|
|
2065
2058
|
to: e.to,
|
|
2066
2059
|
href: e.href,
|
|
@@ -2075,7 +2068,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
2075
2068
|
"title",
|
|
2076
2069
|
"target"
|
|
2077
2070
|
])]))), 128)),
|
|
2078
|
-
e.related.gallery ? (T(), f("p", Ui, [g(
|
|
2071
|
+
e.related.gallery ? (T(), f("p", Ui, [g(r, {
|
|
2079
2072
|
class: "mwnf-standalone-tlr__link",
|
|
2080
2073
|
to: e.related.gallery.to,
|
|
2081
2074
|
title: e.related.gallery.title
|
|
@@ -2279,10 +2272,10 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
2279
2272
|
}
|
|
2280
2273
|
},
|
|
2281
2274
|
setup(e) {
|
|
2282
|
-
let t = e, { t:
|
|
2275
|
+
let t = e, { t: n } = q(), i = Y(), a = D(0), o = l(() => Math.max(0, t.slides.length - t.visible)), s = l(() => t.slides.slice(a.value, a.value + t.visible).map((e) => ({
|
|
2283
2276
|
...e,
|
|
2284
2277
|
image: i(e.image) ?? "",
|
|
2285
|
-
label: e.label ?
|
|
2278
|
+
label: e.label ? n(e.label) : ""
|
|
2286
2279
|
})));
|
|
2287
2280
|
return (t, i) => e.slides.length ? (T(), f("div", {
|
|
2288
2281
|
key: 0,
|
|
@@ -2293,13 +2286,13 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
2293
2286
|
type: "button",
|
|
2294
2287
|
class: "mwnf-standalone-slider__button",
|
|
2295
2288
|
disabled: a.value === 0,
|
|
2296
|
-
"aria-label": j(
|
|
2289
|
+
"aria-label": j(n)(e.previousLabel),
|
|
2297
2290
|
onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
|
|
2298
2291
|
}, "‹", 8, _a),
|
|
2299
2292
|
p("ul", va, [(T(!0), f(c, null, O(s.value, (e) => (T(), f("li", {
|
|
2300
2293
|
key: e.image,
|
|
2301
2294
|
class: "mwnf-standalone-slider__slide"
|
|
2302
|
-
}, [g(
|
|
2295
|
+
}, [g(r, {
|
|
2303
2296
|
to: e.to,
|
|
2304
2297
|
href: e.href
|
|
2305
2298
|
}, {
|
|
@@ -2313,7 +2306,7 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
2313
2306
|
type: "button",
|
|
2314
2307
|
class: "mwnf-standalone-slider__button",
|
|
2315
2308
|
disabled: a.value >= o.value,
|
|
2316
|
-
"aria-label": j(
|
|
2309
|
+
"aria-label": j(n)(e.nextLabel),
|
|
2317
2310
|
onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
|
|
2318
2311
|
}, "›", 8, xa)
|
|
2319
2312
|
], 4)) : d("", !0);
|
|
@@ -2418,5 +2411,4 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
2418
2411
|
]));
|
|
2419
2412
|
}
|
|
2420
2413
|
};
|
|
2421
|
-
//#endregion
|
|
2422
2414
|
export { yt as RelatedContent, ue as StandaloneBanner, ni as StandaloneDatabaseForm, Ia as StandaloneGlossarySpelling, ga as StandaloneHistoricalCrossRef, tt as StandaloneHome, Ct as StandaloneItemSheet, wi as StandalonePagination, nr as StandalonePartnerList, Qt as StandalonePartnerPage, Or as StandalonePartnersEntrance, Kn as StandaloneRefine, yn as StandaloneResultsGrid, Bn as StandaloneResultsList, Ie as StandaloneShell, Sa as StandaloneSlider, hr as StandaloneSponsorList, Oe as StandaloneSponsors, on as StandaloneSubNav, nn as StandaloneTextPage, Ze as StandaloneTileGrid, vi as StandaloneTimelineEntrance, Ki as StandaloneTimelineResults, $ as StandaloneWindow, We as TodayHighlight, de as byLanguage, fe as dayOfYear, pe as legacyHomeItemKey, X as pickForDay };
|