@museumwnf/viewer-layout 3.41.0 → 3.43.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/dist/standalone.js +704 -304
- package/dist/viewer-layout.css +1 -1
- package/package.json +1 -1
- package/src/tokens.reference.css +25 -1
package/dist/standalone.js
CHANGED
|
@@ -3,13 +3,13 @@ import { c as t, d as n, n as r, t as i } from "./PartnerMap-BIKd-AGP.js";
|
|
|
3
3
|
import { n as a, t as o } from "./RecordView-kkpYLtL_.js";
|
|
4
4
|
import { t as s } from "./SiteShell-DPdTxtJ5.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, onMounted as C, openBlock as w, reactive as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, unref as A, useId as j, useModel as M, useSlots as N, vModelSelect as P, vModelText as F, vShow as I, watch as L, withCtx as R, withDirectives as z, withModifiers as B } from "vue";
|
|
6
|
-
import { byId as V, collate as H, entityRef as ee, loadEntities as
|
|
7
|
-
import { useRoute as
|
|
6
|
+
import { byId as V, collate as H, entityRef as ee, loadEntities as te, md as U, pictureCredits as ne, picturesInLanguage as re, removeEndingPoint as ie, renderBlock as W, renderInline as G, renderPlain as K, useDataPackage as ae, useI18n as q, useSection as oe, useSiteConfig as J } from "@museumwnf/viewer-core";
|
|
7
|
+
import { useRoute as se } from "vue-router";
|
|
8
8
|
//#region src/standalone/Banner.vue
|
|
9
|
-
var
|
|
9
|
+
var ce = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "mwnf-standalone-banner__title"
|
|
12
|
-
},
|
|
12
|
+
}, le = {
|
|
13
13
|
__name: "Banner",
|
|
14
14
|
props: {
|
|
15
15
|
image: {
|
|
@@ -25,26 +25,26 @@ var oe = {
|
|
|
25
25
|
return (t, n) => (w(), f("div", {
|
|
26
26
|
class: "mwnf-standalone-banner",
|
|
27
27
|
style: S(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
|
|
28
|
-
}, [e.title ? (w(), f("h1",
|
|
28
|
+
}, [e.title ? (w(), f("h1", ce, [p("span", null, k(e.title), 1)])) : d("", !0)], 4));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/standalone/chrome.js
|
|
33
|
-
function
|
|
34
|
-
let t =
|
|
33
|
+
function Y() {
|
|
34
|
+
let t = J();
|
|
35
35
|
return (n) => e(t.chrome, n);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function ue(e, t) {
|
|
38
38
|
return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function de(e = /* @__PURE__ */ new Date()) {
|
|
41
41
|
let t = new Date(e.getFullYear(), 0, 1);
|
|
42
42
|
return Math.round((new Date(e.getFullYear(), e.getMonth(), e.getDate()) - t) / 864e5);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return e?.length ? e[
|
|
44
|
+
function X(e, t = /* @__PURE__ */ new Date()) {
|
|
45
|
+
return e?.length ? e[de(t) % e.length] : null;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function fe(e) {
|
|
48
48
|
let [t, ...n] = String(e ?? "").split("*")[0].trim().split(";");
|
|
49
49
|
return !t || n.length < 5 ? "" : [
|
|
50
50
|
"mwnf3",
|
|
@@ -54,70 +54,70 @@ function ue(e) {
|
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region src/standalone/Sponsors.vue
|
|
57
|
-
var
|
|
57
|
+
var pe = { class: "mwnf-standalone-sponsors" }, me = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "mwnf-standalone-sponsors__text"
|
|
60
|
-
},
|
|
60
|
+
}, he = ["innerHTML"], ge = { key: 1 }, _e = ["innerHTML"], ve = {
|
|
61
61
|
key: 1,
|
|
62
62
|
class: "mwnf-standalone-sponsors__title"
|
|
63
|
-
},
|
|
63
|
+
}, ye = {
|
|
64
64
|
key: 2,
|
|
65
65
|
class: "mwnf-standalone-sponsors__logos"
|
|
66
|
-
},
|
|
66
|
+
}, be = {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "mwnf-standalone-sponsors__note"
|
|
69
|
-
},
|
|
69
|
+
}, xe = ["src", "alt"], Se = ["innerHTML"], Ce = ["href"], we = ["src", "alt"], Te = ["src", "alt"], Ee = {
|
|
70
70
|
key: 3,
|
|
71
71
|
class: "mwnf-standalone-sponsors__links"
|
|
72
|
-
},
|
|
72
|
+
}, De = {
|
|
73
73
|
__name: "Sponsors",
|
|
74
74
|
props: { columns: {
|
|
75
75
|
type: Array,
|
|
76
76
|
default: () => []
|
|
77
77
|
} },
|
|
78
78
|
setup(e) {
|
|
79
|
-
let t = e, { t: r } =
|
|
79
|
+
let t = e, { t: r } = q(), i = Y(), a = l(() => t.columns.map((e, t) => ({
|
|
80
80
|
key: t,
|
|
81
81
|
width: e.width ?? null,
|
|
82
|
-
lead: e.lead ?
|
|
83
|
-
text: e.text ?
|
|
82
|
+
lead: e.lead ? G(r(e.lead)) : "",
|
|
83
|
+
text: e.text ? G(r(e.text)) : "",
|
|
84
84
|
break: !!e.break,
|
|
85
85
|
title: e.title ? r(e.title) : "",
|
|
86
86
|
logos: (e.logos ?? []).map((e) => ({
|
|
87
87
|
src: i(e.src) ?? "",
|
|
88
88
|
alt: e.alt ? r(e.alt) : "",
|
|
89
89
|
href: e.href ?? "",
|
|
90
|
-
note: e.note ?
|
|
90
|
+
note: e.note ? W(r(e.note)) : ""
|
|
91
91
|
})),
|
|
92
92
|
links: (e.links ?? []).map((e) => ({
|
|
93
93
|
...e,
|
|
94
94
|
label: r(e.label)
|
|
95
95
|
}))
|
|
96
96
|
})));
|
|
97
|
-
return (e, t) => (w(), f("div",
|
|
97
|
+
return (e, t) => (w(), f("div", pe, [(w(!0), f(c, null, D(a.value, (e) => (w(), f("div", {
|
|
98
98
|
key: e.key,
|
|
99
99
|
class: "mwnf-standalone-sponsors__column",
|
|
100
100
|
style: S(e.width ? { flexGrow: e.width } : void 0)
|
|
101
101
|
}, [
|
|
102
|
-
e.lead || e.text ? (w(), f("p",
|
|
102
|
+
e.lead || e.text ? (w(), f("p", me, [
|
|
103
103
|
e.lead ? (w(), f("i", {
|
|
104
104
|
key: 0,
|
|
105
105
|
innerHTML: e.lead
|
|
106
|
-
}, null, 8,
|
|
107
|
-
e.lead && e.break ? (w(), f("br",
|
|
106
|
+
}, null, 8, he)) : d("", !0),
|
|
107
|
+
e.lead && e.break ? (w(), f("br", ge)) : e.lead && e.text ? (w(), f(c, { key: 2 }, [h(k(" "))], 64)) : d("", !0),
|
|
108
108
|
e.text ? (w(), f("span", {
|
|
109
109
|
key: 3,
|
|
110
110
|
innerHTML: e.text
|
|
111
|
-
}, null, 8,
|
|
111
|
+
}, null, 8, _e)) : d("", !0)
|
|
112
112
|
])) : d("", !0),
|
|
113
|
-
e.title ? (w(), f("p",
|
|
114
|
-
e.logos.length ? (w(), f("ul",
|
|
113
|
+
e.title ? (w(), f("p", ve, k(e.title), 1)) : d("", !0),
|
|
114
|
+
e.logos.length ? (w(), f("ul", ye, [(w(!0), f(c, null, D(e.logos, (e) => (w(), f("li", { key: e.src }, [e.note ? (w(), f("details", be, [p("summary", null, [p("img", {
|
|
115
115
|
src: e.src,
|
|
116
116
|
alt: e.alt
|
|
117
|
-
}, null, 8,
|
|
117
|
+
}, null, 8, xe)]), p("div", {
|
|
118
118
|
class: "mwnf-standalone-sponsors__note-body",
|
|
119
119
|
innerHTML: e.note
|
|
120
|
-
}, null, 8,
|
|
120
|
+
}, null, 8, Se)])) : e.href ? (w(), f("a", {
|
|
121
121
|
key: 1,
|
|
122
122
|
href: e.href,
|
|
123
123
|
target: "_blank",
|
|
@@ -125,12 +125,12 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
125
125
|
}, [p("img", {
|
|
126
126
|
src: e.src,
|
|
127
127
|
alt: e.alt
|
|
128
|
-
}, null, 8,
|
|
128
|
+
}, null, 8, we)], 8, Ce)) : (w(), f("img", {
|
|
129
129
|
key: 2,
|
|
130
130
|
src: e.src,
|
|
131
131
|
alt: e.alt
|
|
132
|
-
}, null, 8,
|
|
133
|
-
e.links.length ? (w(), f("ul",
|
|
132
|
+
}, null, 8, Te))]))), 128))])) : d("", !0),
|
|
133
|
+
e.links.length ? (w(), f("ul", Ee, [(w(!0), f(c, null, D(e.links, (e) => (w(), f("li", { key: e.label }, [g(n, {
|
|
134
134
|
to: e.to,
|
|
135
135
|
href: e.href,
|
|
136
136
|
external: !!e.external
|
|
@@ -144,16 +144,16 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
144
144
|
])]))), 128))])) : d("", !0)
|
|
145
145
|
], 4))), 128))]));
|
|
146
146
|
}
|
|
147
|
-
},
|
|
147
|
+
}, Oe = {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: "mwnf-standalone mwnf-standalone--bare"
|
|
150
|
-
},
|
|
150
|
+
}, ke = { class: "mwnf-banner mwnf-standalone-home-banner" }, Ae = ["src"], je = { class: "mwnf-standalone-home-banner__text" }, Me = {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "mwnf-standalone-home-banner__title"
|
|
153
|
-
},
|
|
153
|
+
}, Ne = {
|
|
154
154
|
key: 1,
|
|
155
155
|
class: "mwnf-standalone-home-banner__line"
|
|
156
|
-
},
|
|
156
|
+
}, Pe = ["src"], Fe = {
|
|
157
157
|
__name: "Shell",
|
|
158
158
|
props: {
|
|
159
159
|
language: {
|
|
@@ -167,7 +167,7 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
167
167
|
},
|
|
168
168
|
emits: ["update:language"],
|
|
169
169
|
setup(t, { emit: n }) {
|
|
170
|
-
let r = t, i = n, { t: a, locale: o } =
|
|
170
|
+
let r = t, i = n, { t: a, locale: o } = q(), c = se(), h = l(() => !!c.meta?.bare), _ = J(), v = oe(), y = l(() => _.standalone ?? {}), x = l(() => _.navigation ?? {}), S = l(() => v.value === "home"), C = l(() => y.value.areas?.[v.value] ?? null), T = (t) => e(_.chrome, ue(t, o.value)), E = l(() => {
|
|
171
171
|
let e = y.value.logo ?? {}, t = T(C.value?.logo ?? e.src);
|
|
172
172
|
return t ? {
|
|
173
173
|
logo: t,
|
|
@@ -205,7 +205,7 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
205
205
|
S.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
|
|
206
206
|
C.value?.class ?? ""
|
|
207
207
|
]);
|
|
208
|
-
return (e, t) => h.value ? (w(), f("div",
|
|
208
|
+
return (e, t) => h.value ? (w(), f("div", Oe, [O(e.$slots, "default")])) : (w(), u(s, {
|
|
209
209
|
key: 1,
|
|
210
210
|
class: b(V.value),
|
|
211
211
|
config: L.value,
|
|
@@ -226,19 +226,19 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
226
226
|
}, [
|
|
227
227
|
P.value ? {
|
|
228
228
|
name: "banner",
|
|
229
|
-
fn: R(() => [g(
|
|
229
|
+
fn: R(() => [g(le, {
|
|
230
230
|
image: M.value,
|
|
231
231
|
title: N.value
|
|
232
232
|
}, null, 8, ["image", "title"])]),
|
|
233
233
|
key: "0"
|
|
234
234
|
} : F.value ? {
|
|
235
235
|
name: "banner",
|
|
236
|
-
fn: R(() => [p("section",
|
|
236
|
+
fn: R(() => [p("section", ke, [M.value ? (w(), f("img", {
|
|
237
237
|
key: 0,
|
|
238
238
|
class: "mwnf-banner__image",
|
|
239
239
|
src: M.value,
|
|
240
240
|
alt: ""
|
|
241
|
-
}, null, 8,
|
|
241
|
+
}, null, 8, Ae)) : d("", !0), p("div", je, [F.value.title ? (w(), f("h2", Me, [p("i", null, k(F.value.title), 1)])) : d("", !0), F.value.text ? (w(), f("p", Ne, [p("span", null, k(F.value.text), 1)])) : d("", !0)])])]),
|
|
242
242
|
key: "1"
|
|
243
243
|
} : void 0,
|
|
244
244
|
D.value ? {
|
|
@@ -247,7 +247,7 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
247
247
|
class: "mwnf-standalone__print-logo",
|
|
248
248
|
src: D.value,
|
|
249
249
|
alt: ""
|
|
250
|
-
}, null, 8,
|
|
250
|
+
}, null, 8, Pe)]),
|
|
251
251
|
key: "2"
|
|
252
252
|
} : void 0,
|
|
253
253
|
e.$slots.sponsors ? {
|
|
@@ -256,7 +256,7 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
256
256
|
key: "3"
|
|
257
257
|
} : I.value ? {
|
|
258
258
|
name: "sponsors",
|
|
259
|
-
fn: R(() => [g(
|
|
259
|
+
fn: R(() => [g(De, { columns: I.value.columns }, null, 8, ["columns"])]),
|
|
260
260
|
key: "4"
|
|
261
261
|
} : void 0,
|
|
262
262
|
e.$slots.footer ? {
|
|
@@ -276,19 +276,19 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
276
276
|
"footer-text"
|
|
277
277
|
]));
|
|
278
278
|
}
|
|
279
|
-
},
|
|
279
|
+
}, Ie = {
|
|
280
280
|
key: 0,
|
|
281
281
|
class: "mwnf-standalone-highlight"
|
|
282
|
-
},
|
|
282
|
+
}, Le = ["src", "alt"], Re = {
|
|
283
283
|
key: 1,
|
|
284
284
|
class: "mwnf-standalone-highlight__heading"
|
|
285
|
-
},
|
|
285
|
+
}, ze = { class: "mwnf-standalone-highlight__lines" }, Be = ["innerHTML"], Ve = {
|
|
286
286
|
key: 2,
|
|
287
287
|
class: "mwnf-standalone-highlight__place"
|
|
288
|
-
},
|
|
288
|
+
}, He = {
|
|
289
289
|
key: 3,
|
|
290
290
|
class: "mwnf-standalone-highlight__action"
|
|
291
|
-
},
|
|
291
|
+
}, Ue = {
|
|
292
292
|
__name: "TodayHighlight",
|
|
293
293
|
props: {
|
|
294
294
|
record: {
|
|
@@ -329,20 +329,20 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
331
|
setup(e) {
|
|
332
|
-
let t = e, { t: r } =
|
|
332
|
+
let t = e, { t: r } = q(), i = (e) => ie(Array.isArray(e) ? e.join("; ") : e), a = l(() => {
|
|
333
333
|
let e = t.text ?? {}, n = [], a = i(e.name ?? t.record?.internal_name ?? "");
|
|
334
|
-
a && n.push(
|
|
334
|
+
a && n.push(G(a));
|
|
335
335
|
let o = i(e.alternate_name);
|
|
336
|
-
o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${
|
|
336
|
+
o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${G(o)}`);
|
|
337
337
|
let s = [i(e.dates), i(e.dynasty)].filter(Boolean).join(", ");
|
|
338
|
-
s && n.push(
|
|
338
|
+
s && n.push(G(s));
|
|
339
339
|
for (let t of ["materials", "holder"]) {
|
|
340
340
|
let r = i(e[t]);
|
|
341
|
-
r && n.push(
|
|
341
|
+
r && n.push(G(r));
|
|
342
342
|
}
|
|
343
343
|
return n;
|
|
344
|
-
}), o = l(() => t.place ?? [i(t.text?.location), t.country].filter(Boolean).join(", ")), s = l(() => t.picture || (t.record?.images?.[0]?.url ?? "")), m = l(() =>
|
|
345
|
-
return (t, i) => e.record ? (w(), f("div",
|
|
344
|
+
}), 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
|
+
return (t, i) => e.record ? (w(), f("div", Ie, [
|
|
346
346
|
s.value ? (w(), u(n, {
|
|
347
347
|
key: 0,
|
|
348
348
|
class: "mwnf-standalone-highlight__media",
|
|
@@ -352,28 +352,28 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
352
352
|
class: "mwnf-standalone-highlight__image",
|
|
353
353
|
src: s.value,
|
|
354
354
|
alt: m.value
|
|
355
|
-
}, null, 8,
|
|
355
|
+
}, null, 8, Le)]),
|
|
356
356
|
_: 1
|
|
357
357
|
}, 8, ["to"])) : d("", !0),
|
|
358
|
-
e.heading ? (w(), f("p",
|
|
359
|
-
p("p",
|
|
360
|
-
o.value ? (w(), f("p",
|
|
361
|
-
e.action ? (w(), f("p",
|
|
358
|
+
e.heading ? (w(), f("p", Re, [p("strong", null, k(A(r)(e.heading)), 1)])) : d("", !0),
|
|
359
|
+
p("p", ze, [(w(!0), f(c, null, D(a.value, (e, t) => (w(), f(c, { key: t }, [p("span", { innerHTML: e }, null, 8, Be), i[0] ||= p("br", null, null, -1)], 64))), 128))]),
|
|
360
|
+
o.value ? (w(), f("p", Ve, k(A(K)(o.value)), 1)) : d("", !0),
|
|
361
|
+
e.action ? (w(), f("p", He, [g(n, { to: e.to }, {
|
|
362
362
|
default: R(() => [h(k(A(r)(e.action)), 1)]),
|
|
363
363
|
_: 1
|
|
364
364
|
}, 8, ["to"])])) : d("", !0)
|
|
365
365
|
])) : d("", !0);
|
|
366
366
|
}
|
|
367
|
-
},
|
|
367
|
+
}, We = {
|
|
368
368
|
key: 0,
|
|
369
369
|
class: "mwnf-standalone-tiles"
|
|
370
|
-
},
|
|
370
|
+
}, Ge = {
|
|
371
371
|
key: 0,
|
|
372
372
|
class: "mwnf-standalone-tiles__caption"
|
|
373
|
-
},
|
|
373
|
+
}, Ke = { class: "mwnf-standalone-tiles__caption-text" }, qe = { class: "mwnf-standalone-tiles__grid" }, Je = ["src", "alt"], Ye = {
|
|
374
374
|
key: 0,
|
|
375
375
|
class: "mwnf-standalone-tiles__label"
|
|
376
|
-
},
|
|
376
|
+
}, Xe = {
|
|
377
377
|
__name: "TileGrid",
|
|
378
378
|
props: {
|
|
379
379
|
caption: {
|
|
@@ -386,12 +386,12 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
386
386
|
}
|
|
387
387
|
},
|
|
388
388
|
setup(e) {
|
|
389
|
-
let t = e, { t: r } =
|
|
389
|
+
let t = e, { t: r } = q(), i = Y(), a = l(() => t.items.map((e) => ({
|
|
390
390
|
...e,
|
|
391
391
|
image: i(e.image) ?? "",
|
|
392
|
-
label: e.text ?
|
|
392
|
+
label: e.text ? K(e.text) : e.label ? r(e.label) : ""
|
|
393
393
|
})));
|
|
394
|
-
return (t, i) => a.value.length ? (w(), f("section",
|
|
394
|
+
return (t, i) => a.value.length ? (w(), f("section", We, [e.caption ? (w(), f("p", Ge, [p("span", Ke, k(A(r)(e.caption)), 1)])) : d("", !0), p("ul", qe, [(w(!0), f(c, null, D(a.value, (e) => (w(), f("li", {
|
|
395
395
|
key: e.image,
|
|
396
396
|
class: "mwnf-standalone-tiles__tile"
|
|
397
397
|
}, [g(n, {
|
|
@@ -403,33 +403,33 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
403
403
|
class: "mwnf-standalone-tiles__image",
|
|
404
404
|
src: e.image,
|
|
405
405
|
alt: e.label
|
|
406
|
-
}, null, 8,
|
|
406
|
+
}, null, 8, Je), e.label ? (w(), f("span", Ye, k(e.label), 1)) : d("", !0)]),
|
|
407
407
|
_: 2
|
|
408
408
|
}, 1032, ["to", "href"])]))), 128))])])) : d("", !0);
|
|
409
409
|
}
|
|
410
|
-
},
|
|
410
|
+
}, Ze = { class: "mwnf-standalone-home" }, Qe = {
|
|
411
411
|
key: 0,
|
|
412
412
|
class: "mwnf-standalone-home__links"
|
|
413
|
-
},
|
|
413
|
+
}, $e = { key: 1 }, et = {
|
|
414
414
|
__name: "Home",
|
|
415
415
|
props: { home: {
|
|
416
416
|
type: Object,
|
|
417
417
|
default: null
|
|
418
418
|
} },
|
|
419
419
|
setup(e) {
|
|
420
|
-
let t = e, { t: r, locale: i } =
|
|
420
|
+
let t = e, { t: r, locale: i } = q(), a = J(), o = l(() => t.home ?? a.standalone?.home ?? {}), s = l(() => (o.value.links ?? []).map((e) => ({
|
|
421
421
|
...e,
|
|
422
422
|
label: r(e.label),
|
|
423
423
|
prefix: e.prefix ? r(e.prefix) : "",
|
|
424
424
|
title: e.title ? r(e.title) : void 0
|
|
425
|
-
}))), p = l(() => o.value.highlight ?? null), m =
|
|
426
|
-
p.value?.list?.length && (
|
|
425
|
+
}))), p = l(() => o.value.highlight ?? null), m = ae();
|
|
426
|
+
p.value?.list?.length && (te(["items", "countries"]), L(i, (e) => {
|
|
427
427
|
m.loadTranslations("items", e), m.loadTranslations("countries", e);
|
|
428
428
|
}, { immediate: !0 }));
|
|
429
429
|
let _ = V("items", "backward_compatibility"), v = l(() => {
|
|
430
|
-
let e = p.value?.list ?? [], t = e.indexOf(
|
|
430
|
+
let e = p.value?.list ?? [], t = e.indexOf(X(e));
|
|
431
431
|
for (let n = 0; t >= 0 && n < e.length; n++) {
|
|
432
|
-
let r = _.value.get(
|
|
432
|
+
let r = _.value.get(fe(e[(t + n) % e.length]));
|
|
433
433
|
if (r) return r;
|
|
434
434
|
}
|
|
435
435
|
return null;
|
|
@@ -439,15 +439,15 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
439
439
|
}), S = l(() => v.value && p.value?.place ? p.value.place(v.value, y.value, x.value) : null), C = l(() => v.value ? {
|
|
440
440
|
name: p.value.route ?? "item",
|
|
441
441
|
params: { id: v.value.id }
|
|
442
|
-
} : null), T =
|
|
442
|
+
} : null), T = Y(), E = l(() => {
|
|
443
443
|
let e = p.value?.pictures ?? [];
|
|
444
|
-
return e.length ? T(
|
|
444
|
+
return e.length ? T(X(e)) ?? "" : "";
|
|
445
445
|
}), A = l(() => {
|
|
446
446
|
let e = o.value.tiles?.items;
|
|
447
447
|
return (typeof e == "function" ? e() : e) ?? [];
|
|
448
448
|
});
|
|
449
|
-
return (e, t) => (w(), f("div",
|
|
450
|
-
s.value.length ? (w(), f("ul",
|
|
449
|
+
return (e, t) => (w(), f("div", Ze, [
|
|
450
|
+
s.value.length ? (w(), f("ul", Qe, [(w(!0), f(c, null, D(s.value, (e) => (w(), f("li", {
|
|
451
451
|
key: e.label,
|
|
452
452
|
class: b({ "mwnf-standalone-home__link--gap": e.gap })
|
|
453
453
|
}, [g(n, {
|
|
@@ -456,7 +456,7 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
456
456
|
external: !!e.external,
|
|
457
457
|
title: e.title
|
|
458
458
|
}, {
|
|
459
|
-
default: R(() => [e.prefix ? (w(), f(c, { key: 0 }, [h(k(`${e.prefix} `), 1)], 64)) : d("", !0), e.italic ? (w(), f("i",
|
|
459
|
+
default: R(() => [e.prefix ? (w(), f(c, { key: 0 }, [h(k(`${e.prefix} `), 1)], 64)) : d("", !0), e.italic ? (w(), f("i", $e, k(e.label), 1)) : (w(), f(c, { key: 2 }, [h(k(e.label), 1)], 64))]),
|
|
460
460
|
_: 2
|
|
461
461
|
}, 1032, [
|
|
462
462
|
"to",
|
|
@@ -464,7 +464,7 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
464
464
|
"external",
|
|
465
465
|
"title"
|
|
466
466
|
])], 2))), 128))])) : d("", !0),
|
|
467
|
-
p.value ? (w(), u(
|
|
467
|
+
p.value ? (w(), u(Ue, {
|
|
468
468
|
key: 1,
|
|
469
469
|
record: v.value,
|
|
470
470
|
text: y.value,
|
|
@@ -486,7 +486,7 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
486
486
|
"also-known-as",
|
|
487
487
|
"action"
|
|
488
488
|
])) : d("", !0),
|
|
489
|
-
o.value.tiles ? (w(), u(
|
|
489
|
+
o.value.tiles ? (w(), u(Xe, {
|
|
490
490
|
key: 2,
|
|
491
491
|
caption: o.value.tiles.caption ?? "",
|
|
492
492
|
items: A.value
|
|
@@ -494,8 +494,8 @@ var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
|
494
494
|
O(e.$slots, "default")
|
|
495
495
|
]));
|
|
496
496
|
}
|
|
497
|
-
},
|
|
498
|
-
function
|
|
497
|
+
}, tt = "html { height: 100%; margin-bottom: 1px; }\nbody, p, div, td { font: Normal 11px/14px verdana, arial, helvetica; }\nbody { padding: 0px; border: 0px; border-spacing: 0px; margin: 0px auto; }\ndiv { padding: 0px; border: 0px; border-spacing: 0px; margin: 0px; }\np { font: Normal 11px/14px Verdana, Arial, Helvetica; padding: 3px; padding-left: 8px; padding-bottom: 30px; line-height: 1.4em; margin: 0px 0px 10px 0px; }\na, a:link, a:hover, a:visited, a:active { text-decoration: none; }\nh3 { font: Normal 11px/14px Verdana, Arial, Helvetica; padding-left: 8px; padding-right: 8px; font-weight: bold; margin: 0px; }\n.item_description { font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 25px; padding-bottom: 25px; width: 990px; }", nt = ".mwnf-sheet__label, .mwnf-sheet-section__heading, .mwnf-credits__heading", rt = ".mwnf-sheet__value, .mwnf-sheet-section__body, .mwnf-credits__citation, .mwnf-credits__list > dt, .mwnf-credits__number, .mwnf-sheet__short .mwnf-sheet__block", it = "button, img, svg, picture, video, audio, iframe, script, style, [role=\"tooltip\"], [aria-hidden=\"true\"]";
|
|
498
|
+
function Z(e) {
|
|
499
499
|
return String(e ?? "").replace(/[&<>"]/g, (e) => ({
|
|
500
500
|
"&": "&",
|
|
501
501
|
"<": "<",
|
|
@@ -503,7 +503,7 @@ function $(e) {
|
|
|
503
503
|
"\"": """
|
|
504
504
|
})[e]);
|
|
505
505
|
}
|
|
506
|
-
var
|
|
506
|
+
var at = /* @__PURE__ */ new Set([
|
|
507
507
|
"I",
|
|
508
508
|
"EM",
|
|
509
509
|
"B",
|
|
@@ -511,7 +511,7 @@ var rt = /* @__PURE__ */ new Set([
|
|
|
511
511
|
"U",
|
|
512
512
|
"SUP",
|
|
513
513
|
"SUB"
|
|
514
|
-
]),
|
|
514
|
+
]), ot = /* @__PURE__ */ new Set([
|
|
515
515
|
"P",
|
|
516
516
|
"DIV",
|
|
517
517
|
"LI",
|
|
@@ -519,20 +519,20 @@ var rt = /* @__PURE__ */ new Set([
|
|
|
519
519
|
"OL",
|
|
520
520
|
"SECTION"
|
|
521
521
|
]);
|
|
522
|
-
function
|
|
522
|
+
function Q(e) {
|
|
523
523
|
let t = [[]], n = () => t[t.length - 1], r = () => {
|
|
524
524
|
n().length && t.push([]);
|
|
525
525
|
}, i = (e) => {
|
|
526
526
|
if (e.nodeType === Node.TEXT_NODE) {
|
|
527
|
-
n().push(
|
|
527
|
+
n().push(Z(e.textContent));
|
|
528
528
|
return;
|
|
529
529
|
}
|
|
530
|
-
if (e.nodeType !== Node.ELEMENT_NODE || e.matches(
|
|
530
|
+
if (e.nodeType !== Node.ELEMENT_NODE || e.matches(it)) return;
|
|
531
531
|
if (e.tagName === "BR") {
|
|
532
532
|
n().push("<br/>");
|
|
533
533
|
return;
|
|
534
534
|
}
|
|
535
|
-
let t =
|
|
535
|
+
let t = ot.has(e.tagName), a = at.has(e.tagName) ? e.tagName.toLowerCase() : "";
|
|
536
536
|
t && r(), a && n().push(`<${a}>`);
|
|
537
537
|
for (let t of e.childNodes) i(t);
|
|
538
538
|
a && n().push(`</${a}>`), t && r();
|
|
@@ -540,28 +540,28 @@ function at(e) {
|
|
|
540
540
|
for (let t of e.childNodes) i(t);
|
|
541
541
|
return t.map((e) => e.join("").replace(/\s+/g, " ").trim()).filter(Boolean).join("<br/>\n<br/>");
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function st(e, { title: t = "", dir: n = "" } = {}) {
|
|
544
544
|
let r = (t) => {
|
|
545
545
|
for (let n = t; n && n !== e.parentElement; n = n.parentElement) if (n.hidden || getComputedStyle(n).display === "none") return !1;
|
|
546
546
|
return !0;
|
|
547
547
|
}, i = [];
|
|
548
|
-
for (let t of e.querySelectorAll(`${
|
|
548
|
+
for (let t of e.querySelectorAll(`${nt}, ${rt}`)) {
|
|
549
549
|
if (t.closest(".mwnf-standalone-item__left, .mwnf-standalone-related") || !r(t)) continue;
|
|
550
550
|
if (t.matches(".mwnf-credits__list > dt")) {
|
|
551
551
|
let e = t.nextElementSibling;
|
|
552
|
-
i.push(`<p>${
|
|
552
|
+
i.push(`<p>${Z(t.textContent.trim())} ${e ? Q(e) : ""}</p>`);
|
|
553
553
|
continue;
|
|
554
554
|
}
|
|
555
|
-
let e =
|
|
556
|
-
e && i.push(t.matches(
|
|
555
|
+
let e = Q(t);
|
|
556
|
+
e && i.push(t.matches(nt) ? `<h3>${e}</h3>` : `<p>${e}</p>`);
|
|
557
557
|
}
|
|
558
558
|
let a = n === "rtl" ? " style=\"direction: rtl;\"" : "";
|
|
559
559
|
return `<html>
|
|
560
|
-
<title>${
|
|
560
|
+
<title>${Z(t)}</title>
|
|
561
561
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
562
562
|
<head>
|
|
563
563
|
<style>
|
|
564
|
-
${
|
|
564
|
+
${tt}
|
|
565
565
|
</style>
|
|
566
566
|
</head>
|
|
567
567
|
<body>
|
|
@@ -575,16 +575,60 @@ ${i.join("\n")}
|
|
|
575
575
|
</body>
|
|
576
576
|
</html>`;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function ct(e, t) {
|
|
579
579
|
let n = URL.createObjectURL(new Blob(["", e], { type: "application/msword" })), r = document.createElement("a");
|
|
580
580
|
r.href = n, r.download = t, document.body.appendChild(r), r.click(), r.remove(), setTimeout(() => URL.revokeObjectURL(n), 0);
|
|
581
581
|
}
|
|
582
|
+
function lt({ title: e = "", heading: t = "", heads: n = {}, rows: r = [], empty: i = "", dir: a = "" } = {}) {
|
|
583
|
+
let o = a === "rtl" ? "direction: rtl; text-align: right;" : "text-align: left;", s = (e) => {
|
|
584
|
+
let t = document.createElement("div");
|
|
585
|
+
return t.innerHTML = e ?? "", Q(t);
|
|
586
|
+
}, c = r.length ? `<tr><td style="padding:10px;">
|
|
587
|
+
<table border='1' cellspacing='1' cellpadding='1' width="100%">
|
|
588
|
+
<tr>
|
|
589
|
+
<td style="padding:5px;" width="28%"><b>${Z(n.date)}</b></td>
|
|
590
|
+
<td style="padding:5px;" width="36%"><b>${Z(n.countryDescription)}</b></td>
|
|
591
|
+
<td width="37%"><b></b></td>
|
|
592
|
+
</tr>
|
|
593
|
+
${r.map((e) => `<tr>
|
|
594
|
+
<td style="padding:5px; vertical-align:top;"> ${Z(e.date)}</td>
|
|
595
|
+
<td style="padding:5px;">${Z(e.country)}</td>
|
|
596
|
+
<td> </td>
|
|
597
|
+
</tr>
|
|
598
|
+
<tr>
|
|
599
|
+
<td style="padding:5px;"> </td>
|
|
600
|
+
<td style="padding:5px;" colspan="2"><span>${s(e.html)}</span></td>
|
|
601
|
+
</tr>`).join("\n")}
|
|
602
|
+
</table>
|
|
603
|
+
</td></tr>
|
|
604
|
+
<tr><td> </td></tr>` : `<tr><td style="padding-top:100px;padding-left:350px;">${Z(i)}</td></tr>`;
|
|
605
|
+
return `<html>
|
|
606
|
+
<title>${Z(e)}</title>
|
|
607
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
608
|
+
<head>
|
|
609
|
+
<style>
|
|
610
|
+
${tt}
|
|
611
|
+
</style>
|
|
612
|
+
</head>
|
|
613
|
+
<body>
|
|
614
|
+
<div class="content">
|
|
615
|
+
<div class="item_description">
|
|
616
|
+
<table style="${o}" border="0" width="750px">
|
|
617
|
+
<tr><td class="txt" align="left" width="750px"><div style="width: 750px;"> ${Z(t).replace(/^([^|]*)/, "<b>$1</b>")}</div></td></tr>
|
|
618
|
+
<tr><td> </td></tr>
|
|
619
|
+
${c}
|
|
620
|
+
</table>
|
|
621
|
+
</div>
|
|
622
|
+
</div>
|
|
623
|
+
</body>
|
|
624
|
+
</html>`;
|
|
625
|
+
}
|
|
582
626
|
//#endregion
|
|
583
627
|
//#region src/standalone/RelatedContent.vue
|
|
584
|
-
var
|
|
628
|
+
var ut = { class: "mwnf-standalone-related" }, dt = { class: "mwnf-standalone-related__heading" }, ft = { class: "mwnf-standalone-related__group-heading" }, pt = { class: "mwnf-standalone-related__thumbs" }, mt = ["src", "alt"], ht = ["innerHTML"], gt = {
|
|
585
629
|
key: 0,
|
|
586
630
|
class: "mwnf-standalone-related__download"
|
|
587
|
-
},
|
|
631
|
+
}, _t = { class: "mwnf-standalone-related__download-heading" }, vt = {
|
|
588
632
|
__name: "RelatedContent",
|
|
589
633
|
props: {
|
|
590
634
|
heading: {
|
|
@@ -609,7 +653,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
609
653
|
}
|
|
610
654
|
},
|
|
611
655
|
setup(e) {
|
|
612
|
-
let t = e, { t: r } =
|
|
656
|
+
let t = e, { t: r } = q(), i = l(() => t.groups.map((e) => ({
|
|
613
657
|
heading: r(e.heading),
|
|
614
658
|
rows: t.records.filter((t) => !e.type || t.badge === e.type)
|
|
615
659
|
})).filter((e) => e.rows.length));
|
|
@@ -618,17 +662,17 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
618
662
|
}
|
|
619
663
|
function o(e) {
|
|
620
664
|
let n = e.currentTarget.closest(".mwnf-standalone-item");
|
|
621
|
-
n && st(
|
|
665
|
+
n && ct(st(n.querySelector(".mwnf-record__main") ?? n, {
|
|
622
666
|
title: t.download?.title ? r(t.download.title) : "",
|
|
623
667
|
dir: getComputedStyle(n).direction
|
|
624
668
|
}), t.wordFile);
|
|
625
669
|
}
|
|
626
|
-
return (t, s) => (w(), f("aside",
|
|
627
|
-
p("p",
|
|
670
|
+
return (t, s) => (w(), f("aside", ut, [
|
|
671
|
+
p("p", dt, [p("strong", null, k(A(r)(e.heading)), 1)]),
|
|
628
672
|
(w(!0), f(c, null, D(i.value, (e) => (w(), f("div", {
|
|
629
673
|
key: e.heading,
|
|
630
674
|
class: "mwnf-standalone-related__group"
|
|
631
|
-
}, [p("p",
|
|
675
|
+
}, [p("p", ft, k(e.heading), 1), p("ul", pt, [(w(!0), f(c, null, D(e.rows, (e) => (w(), f("li", { key: e.id }, [g(n, {
|
|
632
676
|
to: e.to,
|
|
633
677
|
title: e.imageAlt
|
|
634
678
|
}, {
|
|
@@ -636,15 +680,15 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
636
680
|
key: 0,
|
|
637
681
|
src: e.image,
|
|
638
682
|
alt: e.imageAlt
|
|
639
|
-
}, null, 8,
|
|
683
|
+
}, null, 8, mt)) : (w(), f("span", {
|
|
640
684
|
key: 1,
|
|
641
685
|
innerHTML: e.name
|
|
642
|
-
}, null, 8,
|
|
686
|
+
}, null, 8, ht))]),
|
|
643
687
|
_: 2
|
|
644
688
|
}, 1032, ["to", "title"])]))), 128))])]))), 128)),
|
|
645
689
|
O(t.$slots, "default"),
|
|
646
|
-
e.download ? (w(), f("div",
|
|
647
|
-
p("p",
|
|
690
|
+
e.download ? (w(), f("div", gt, [
|
|
691
|
+
p("p", _t, k(A(r)(e.download.heading)), 1),
|
|
648
692
|
p("button", {
|
|
649
693
|
type: "button",
|
|
650
694
|
class: "mwnf-standalone-related__print",
|
|
@@ -659,10 +703,10 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
659
703
|
])) : d("", !0)
|
|
660
704
|
]));
|
|
661
705
|
}
|
|
662
|
-
},
|
|
706
|
+
}, yt = { class: "mwnf-standalone-item__top" }, bt = { class: "mwnf-standalone-item__left" }, xt = {
|
|
663
707
|
key: 0,
|
|
664
708
|
class: "mwnf-standalone-item__back"
|
|
665
|
-
},
|
|
709
|
+
}, St = {
|
|
666
710
|
__name: "ItemSheet",
|
|
667
711
|
props: {
|
|
668
712
|
spec: {
|
|
@@ -683,7 +727,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
683
727
|
}
|
|
684
728
|
},
|
|
685
729
|
setup(e) {
|
|
686
|
-
let i = e, { t: s } =
|
|
730
|
+
let i = e, { t: s } = q(), v = N(), y = l(() => ({
|
|
687
731
|
...i.spec,
|
|
688
732
|
media: () => []
|
|
689
733
|
}));
|
|
@@ -696,9 +740,9 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
696
740
|
text: t,
|
|
697
741
|
language: n
|
|
698
742
|
});
|
|
699
|
-
let r =
|
|
700
|
-
return
|
|
701
|
-
let { photographer: t, copyright: i } =
|
|
743
|
+
let r = K(String(t?.name ?? e?.internal_name ?? ""));
|
|
744
|
+
return re(e?.images, n).map((e) => {
|
|
745
|
+
let { photographer: t, copyright: i } = ne(e, n), a = [t ? `${s("record.media.photograph")}: ${t}` : "", i ? `© ${i}` : ""].filter(Boolean).join(", ");
|
|
702
746
|
return {
|
|
703
747
|
url: e.url,
|
|
704
748
|
alt: a || e.captions?.[n] || r,
|
|
@@ -725,7 +769,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
725
769
|
id: e.id,
|
|
726
770
|
class: "mwnf-standalone-item"
|
|
727
771
|
}, m({
|
|
728
|
-
header: R(({ languages: e, language: n, select: r }) => [p("div",
|
|
772
|
+
header: R(({ languages: e, language: n, select: r }) => [p("div", yt, [g(t, {
|
|
729
773
|
languages: e,
|
|
730
774
|
language: n,
|
|
731
775
|
from: 1,
|
|
@@ -735,7 +779,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
735
779
|
"language",
|
|
736
780
|
"onSelect"
|
|
737
781
|
])])]),
|
|
738
|
-
"before-sheet": R((e) => [p("div",
|
|
782
|
+
"before-sheet": R((e) => [p("div", bt, [C.value.length ? (w(), f("p", xt, [(w(!0), f(c, null, D(C.value, (e) => (w(), f(c, { key: e.label }, [e.history ? (w(), f("button", {
|
|
739
783
|
key: 0,
|
|
740
784
|
type: "button",
|
|
741
785
|
class: "mwnf-standalone-item__back-link",
|
|
@@ -752,7 +796,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
752
796
|
images: b(e),
|
|
753
797
|
"thumbs-from": 1
|
|
754
798
|
}, null, 8, ["images"])]), O(i.$slots, "before-sheet", x(_(e)))]),
|
|
755
|
-
related: R((t) => [g(
|
|
799
|
+
related: R((t) => [g(vt, {
|
|
756
800
|
heading: e.related.heading ?? "record.related.title",
|
|
757
801
|
records: t.records,
|
|
758
802
|
groups: e.related.groups ?? [],
|
|
@@ -775,37 +819,37 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
775
819
|
fn: R((t) => [O(i.$slots, e, x(_(t)))])
|
|
776
820
|
}))]), 1032, ["spec", "id"]));
|
|
777
821
|
}
|
|
778
|
-
},
|
|
822
|
+
}, Ct = {
|
|
779
823
|
key: 0,
|
|
780
824
|
class: "mwnf-standalone-item__top"
|
|
781
|
-
},
|
|
825
|
+
}, wt = {
|
|
782
826
|
key: 1,
|
|
783
827
|
hidden: ""
|
|
784
|
-
},
|
|
828
|
+
}, Tt = {
|
|
785
829
|
key: 0,
|
|
786
830
|
class: "mwnf-standalone-item__back mwnf-standalone-partner__back"
|
|
787
|
-
},
|
|
831
|
+
}, Et = { class: "mwnf-standalone-partner__heading" }, Dt = ["dir", "innerHTML"], Ot = {
|
|
788
832
|
key: 0,
|
|
789
833
|
class: "mwnf-standalone-partner__location"
|
|
790
|
-
},
|
|
834
|
+
}, kt = { class: "mwnf-standalone-partner__bar" }, At = { class: "mwnf-standalone-partner__bar-start" }, jt = ["aria-label", "onKeydown"], Mt = [
|
|
791
835
|
"id",
|
|
792
836
|
"aria-selected",
|
|
793
837
|
"aria-controls",
|
|
794
838
|
"tabindex",
|
|
795
839
|
"onClick"
|
|
796
|
-
],
|
|
840
|
+
], Nt = {
|
|
797
841
|
key: 0,
|
|
798
842
|
class: "mwnf-standalone-partner__divider",
|
|
799
843
|
"aria-hidden": "true"
|
|
800
|
-
},
|
|
844
|
+
}, Pt = { key: 0 }, Ft = ["href"], It = { class: "mwnf-standalone-partner__bar-end" }, Lt = { class: "mwnf-standalone-partner__body" }, Rt = { class: "mwnf-standalone-partner__pictures" }, zt = { class: "mwnf-standalone-partner__panels" }, Bt = [
|
|
801
845
|
"id",
|
|
802
846
|
"aria-labelledby",
|
|
803
847
|
"dir",
|
|
804
848
|
"innerHTML"
|
|
805
|
-
],
|
|
849
|
+
], Vt = ["id", "aria-labelledby"], Ht = ["innerHTML"], Ut = ["href"], Wt = { key: 0 }, Gt = ["href"], Kt = ["href"], qt = ["id", "aria-labelledby"], Jt = ["src"], Yt = {
|
|
806
850
|
key: 0,
|
|
807
851
|
class: "mwnf-standalone-partner__map"
|
|
808
|
-
},
|
|
852
|
+
}, Xt = { class: "mwnf-standalone-partner__map-heading" }, Zt = {
|
|
809
853
|
__name: "PartnerPage",
|
|
810
854
|
props: {
|
|
811
855
|
id: {
|
|
@@ -850,7 +894,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
850
894
|
}
|
|
851
895
|
},
|
|
852
896
|
setup(e) {
|
|
853
|
-
let a = e, { t: s, locale: m } =
|
|
897
|
+
let a = e, { t: s, locale: m } = q(), _ = j(), v = {
|
|
854
898
|
entity: "partners",
|
|
855
899
|
fields: [],
|
|
856
900
|
shortDescription: !1,
|
|
@@ -902,7 +946,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
902
946
|
id: e.id,
|
|
903
947
|
class: "mwnf-standalone-partner"
|
|
904
948
|
}, {
|
|
905
|
-
header: R(({ record: n, languages: r, language: i, select: o }) => [e.bands(n) ? (w(), f("div",
|
|
949
|
+
header: R(({ record: n, languages: r, language: i, select: o }) => [e.bands(n) ? (w(), f("div", Ct, [g(t, {
|
|
906
950
|
languages: r.filter((e) => a.languages(n, e.code)),
|
|
907
951
|
language: i,
|
|
908
952
|
from: 1,
|
|
@@ -911,9 +955,9 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
911
955
|
"languages",
|
|
912
956
|
"language",
|
|
913
957
|
"onSelect"
|
|
914
|
-
])])) : (w(), f("div",
|
|
958
|
+
])])) : (w(), f("div", wt))]),
|
|
915
959
|
"before-sheet": R(({ record: t, text: i, dir: o }) => [(w(!0), f(c, null, D([a.view(t, i)], (a) => (w(), f(c, { key: t.id }, [
|
|
916
|
-
C(t).length ? (w(), f("p",
|
|
960
|
+
C(t).length ? (w(), f("p", Tt, [(w(!0), f(c, null, D(C(t), (e) => (w(), f(c, { key: e.label }, [e.history ? (w(), f("button", {
|
|
917
961
|
key: 0,
|
|
918
962
|
type: "button",
|
|
919
963
|
class: "mwnf-standalone-item__back-link",
|
|
@@ -927,12 +971,12 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
927
971
|
default: R(() => [h(k(e.label), 1)]),
|
|
928
972
|
_: 2
|
|
929
973
|
}, 1032, ["to", "href"]))], 64))), 128))])) : d("", !0),
|
|
930
|
-
p("div",
|
|
974
|
+
p("div", Et, [p("h3", {
|
|
931
975
|
class: "mwnf-standalone-partner__name",
|
|
932
976
|
dir: o || void 0,
|
|
933
977
|
innerHTML: a.name
|
|
934
|
-
}, null, 8,
|
|
935
|
-
p("div",
|
|
978
|
+
}, null, 8, Dt), a.location ? (w(), f("h4", Ot, [p("i", null, k(a.location), 1)])) : d("", !0)]),
|
|
979
|
+
p("div", kt, [p("div", At, [p("ul", {
|
|
936
980
|
role: "tablist",
|
|
937
981
|
class: "mwnf-standalone-partner__tabs",
|
|
938
982
|
"aria-label": a.plainName,
|
|
@@ -949,12 +993,12 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
949
993
|
"aria-controls": `${A(_)}-panel-${e}`,
|
|
950
994
|
tabindex: M.value === e ? 0 : -1,
|
|
951
995
|
onClick: (t) => M.value = e
|
|
952
|
-
}, "\xA0" + k(S(e)), 11,
|
|
996
|
+
}, "\xA0" + k(S(e)), 11, Mt), n < O(a, t, i).length - 1 || a.contact.website ? (w(), f("span", Nt, "\xA0|")) : d("", !0)]))), 128)), a.contact.website ? (w(), f("li", Pt, [p("a", {
|
|
953
997
|
class: "mwnf-standalone-partner__homepage",
|
|
954
998
|
href: a.contact.website.url,
|
|
955
999
|
target: "_blank",
|
|
956
1000
|
rel: "noopener"
|
|
957
|
-
}, "\xA0" + k(S("homepage")), 9,
|
|
1001
|
+
}, "\xA0" + k(S("homepage")), 9, Ft)])) : d("", !0)], 40, jt)]), p("div", It, [e.items(t) ? (w(), u(n, {
|
|
958
1002
|
key: 0,
|
|
959
1003
|
class: "mwnf-standalone-partner__items",
|
|
960
1004
|
to: e.items(t).to
|
|
@@ -962,10 +1006,10 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
962
1006
|
default: R(() => [h(k(A(s)(e.items(t).label)), 1)]),
|
|
963
1007
|
_: 2
|
|
964
1008
|
}, 1032, ["to"])) : d("", !0)])]),
|
|
965
|
-
p("div",
|
|
1009
|
+
p("div", Lt, [p("div", Rt, [a.pictures.length ? (w(), u(r, {
|
|
966
1010
|
key: 0,
|
|
967
1011
|
images: P(a)
|
|
968
|
-
}, null, 8, ["images"])) : d("", !0)]), p("div",
|
|
1012
|
+
}, null, 8, ["images"])) : d("", !0)]), p("div", zt, [
|
|
969
1013
|
z(p("div", {
|
|
970
1014
|
id: `${A(_)}-panel-about`,
|
|
971
1015
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__about",
|
|
@@ -973,7 +1017,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
973
1017
|
"aria-labelledby": `${A(_)}-tab-about`,
|
|
974
1018
|
dir: o || void 0,
|
|
975
1019
|
innerHTML: a.description
|
|
976
|
-
}, null, 8,
|
|
1020
|
+
}, null, 8, Bt), [[I, M.value === "about"]]),
|
|
977
1021
|
a.hasContact ? z((w(), f("div", {
|
|
978
1022
|
key: 0,
|
|
979
1023
|
id: `${A(_)}-panel-contact`,
|
|
@@ -986,21 +1030,21 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
986
1030
|
a.contact.address ? (w(), f(c, { key: 0 }, [p("span", {
|
|
987
1031
|
class: "mwnf-standalone-partner__address",
|
|
988
1032
|
innerHTML: a.contact.address
|
|
989
|
-
}, null, 8,
|
|
1033
|
+
}, null, 8, Ht), m[0] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
990
1034
|
a.contact.phone ? (w(), f(c, { key: 1 }, [h(k(S("phone")) + " " + k(a.contact.phone), 1), m[1] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
991
1035
|
a.contact.fax ? (w(), f(c, { key: 2 }, [h(k(S("fax")) + " " + k(a.contact.fax), 1), m[2] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
992
|
-
a.contact.email ? (w(), f(c, { key: 3 }, [p("a", { href: `mailto:${a.contact.email}` }, k(a.contact.email), 9,
|
|
993
|
-
]), F(a).length ? (w(), f("p",
|
|
1036
|
+
a.contact.email ? (w(), f(c, { key: 3 }, [p("a", { href: `mailto:${a.contact.email}` }, k(a.contact.email), 9, Ut), m[3] ||= p("br", null, null, -1)], 64)) : d("", !0)
|
|
1037
|
+
]), F(a).length ? (w(), f("p", Wt, [(w(!0), f(c, null, D(F(a), (e, t) => (w(), f(c, { key: e.url }, [t ? (w(), f(c, { key: 0 }, [h("\xA0|\xA0")], 64)) : d("", !0), p("a", {
|
|
994
1038
|
href: e.url,
|
|
995
1039
|
target: "_blank",
|
|
996
1040
|
rel: "noopener"
|
|
997
|
-
}, k(e.label), 9,
|
|
1041
|
+
}, k(e.label), 9, Gt)], 64))), 128))])) : d("", !0)], 64)) : d("", !0), (w(!0), f(c, null, D(a.persons, (e, t) => (w(), f("p", { key: t }, [
|
|
998
1042
|
e.title ? (w(), f(c, { key: 0 }, [p("strong", null, k(e.title), 1), m[5] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
999
1043
|
e.name ? (w(), f(c, { key: 1 }, [h(k(e.name), 1), m[6] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1000
1044
|
e.phone ? (w(), f(c, { key: 2 }, [h(k(S("phone")) + " " + k(e.phone), 1), m[7] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1001
1045
|
e.fax ? (w(), f(c, { key: 3 }, [h(k(S("fax")) + " " + k(e.fax), 1), m[8] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1002
|
-
e.email ? (w(), f(c, { key: 4 }, [p("a", { href: `mailto:${e.email}` }, k(e.email), 9,
|
|
1003
|
-
]))), 128))], 8,
|
|
1046
|
+
e.email ? (w(), f(c, { key: 4 }, [p("a", { href: `mailto:${e.email}` }, k(e.email), 9, Kt), m[9] ||= p("br", null, null, -1)], 64)) : d("", !0)
|
|
1047
|
+
]))), 128))], 8, Vt)), [[I, M.value === "contact"]]) : d("", !0),
|
|
1004
1048
|
a.logos.length ? z((w(), f("div", {
|
|
1005
1049
|
key: 1,
|
|
1006
1050
|
id: `${A(_)}-panel-logo`,
|
|
@@ -1011,10 +1055,10 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1011
1055
|
key: e.url,
|
|
1012
1056
|
src: e.url,
|
|
1013
1057
|
alt: ""
|
|
1014
|
-
}, null, 8,
|
|
1058
|
+
}, null, 8, Jt))), 128))], 8, qt)), [[I, M.value === "logo"]]) : d("", !0)
|
|
1015
1059
|
])])
|
|
1016
1060
|
], 64))), 128))]),
|
|
1017
|
-
after: R(({ record: t, text: n }) => [e.map(t) && a.view(t, n)?.map ? (w(), f("section",
|
|
1061
|
+
after: R(({ record: t, text: n }) => [e.map(t) && a.view(t, n)?.map ? (w(), f("section", Yt, [p("h3", Xt, k(S("map")), 1), g(i, {
|
|
1018
1062
|
provider: "google",
|
|
1019
1063
|
latitude: a.view(t, n).map.latitude,
|
|
1020
1064
|
longitude: a.view(t, n).map.longitude,
|
|
@@ -1031,13 +1075,13 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1031
1075
|
_: 1
|
|
1032
1076
|
}, 8, ["id"]));
|
|
1033
1077
|
}
|
|
1034
|
-
},
|
|
1078
|
+
}, Qt = ["innerHTML"], $t = {
|
|
1035
1079
|
key: 0,
|
|
1036
1080
|
class: "mwnf-standalone-page__link"
|
|
1037
|
-
},
|
|
1081
|
+
}, en = {
|
|
1038
1082
|
key: 1,
|
|
1039
1083
|
class: "mwnf-standalone-page__print"
|
|
1040
|
-
},
|
|
1084
|
+
}, tn = {
|
|
1041
1085
|
__name: "TextPage",
|
|
1042
1086
|
props: {
|
|
1043
1087
|
body: {
|
|
@@ -1058,7 +1102,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1058
1102
|
}
|
|
1059
1103
|
},
|
|
1060
1104
|
setup(e) {
|
|
1061
|
-
let t = e, { t: r } =
|
|
1105
|
+
let t = e, { t: r } = q(), i = l(() => W(r(t.body)));
|
|
1062
1106
|
function a() {
|
|
1063
1107
|
window.print();
|
|
1064
1108
|
}
|
|
@@ -1066,25 +1110,25 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1066
1110
|
p("div", {
|
|
1067
1111
|
class: "mwnf-standalone-page__body",
|
|
1068
1112
|
innerHTML: i.value
|
|
1069
|
-
}, null, 8,
|
|
1070
|
-
e.link ? (w(), f("p",
|
|
1113
|
+
}, null, 8, Qt),
|
|
1114
|
+
e.link ? (w(), f("p", $t, [g(n, {
|
|
1071
1115
|
to: e.link.to,
|
|
1072
1116
|
href: e.link.href
|
|
1073
1117
|
}, {
|
|
1074
1118
|
default: R(() => [p("strong", null, k(e.link.text ?? A(r)(e.link.label)), 1)]),
|
|
1075
1119
|
_: 1
|
|
1076
1120
|
}, 8, ["to", "href"])])) : d("", !0),
|
|
1077
|
-
e.print ? (w(), f("p",
|
|
1121
|
+
e.print ? (w(), f("p", en, [p("button", {
|
|
1078
1122
|
type: "button",
|
|
1079
1123
|
class: "mwnf-standalone-page__print-button",
|
|
1080
1124
|
onClick: a
|
|
1081
1125
|
}, k(A(r)(e.print)), 1)])) : d("", !0)
|
|
1082
1126
|
], 2));
|
|
1083
1127
|
}
|
|
1084
|
-
},
|
|
1128
|
+
}, nn = {
|
|
1085
1129
|
key: 0,
|
|
1086
1130
|
class: "mwnf-standalone-subnav"
|
|
1087
|
-
},
|
|
1131
|
+
}, rn = { class: "mwnf-standalone-subnav__tabs" }, an = {
|
|
1088
1132
|
__name: "SubNav",
|
|
1089
1133
|
props: {
|
|
1090
1134
|
tabs: {
|
|
@@ -1097,11 +1141,11 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1097
1141
|
}
|
|
1098
1142
|
},
|
|
1099
1143
|
setup(e) {
|
|
1100
|
-
let t = e, { t: r } =
|
|
1144
|
+
let t = e, { t: r } = q(), i = l(() => t.tabs.map((e) => ({
|
|
1101
1145
|
...e,
|
|
1102
1146
|
label: r(e.label)
|
|
1103
1147
|
})));
|
|
1104
|
-
return (t, a) => i.value.length || e.aside ? (w(), f("nav",
|
|
1148
|
+
return (t, a) => i.value.length || e.aside ? (w(), f("nav", nn, [p("ul", rn, [(w(!0), f(c, null, D(i.value, (e) => (w(), f("li", { key: e.label }, [g(n, {
|
|
1105
1149
|
to: e.to,
|
|
1106
1150
|
href: e.href,
|
|
1107
1151
|
class: b(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
|
|
@@ -1124,13 +1168,13 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1124
1168
|
_: 1
|
|
1125
1169
|
}, 8, ["to", "href"])) : d("", !0)])) : d("", !0);
|
|
1126
1170
|
}
|
|
1127
|
-
},
|
|
1171
|
+
}, on = { class: "mwnf-standalone-results" }, sn = {
|
|
1128
1172
|
key: 0,
|
|
1129
1173
|
class: "mwnf-standalone-results__empty"
|
|
1130
|
-
},
|
|
1174
|
+
}, cn = { class: "mwnf-standalone-results__tile" }, ln = ["src"], un = { class: "mwnf-standalone-results__panel" }, dn = ["src"], fn = { class: "mwnf-standalone-results__name" }, pn = ["innerHTML"], mn = ["innerHTML"], hn = {
|
|
1131
1175
|
key: 0,
|
|
1132
1176
|
class: "mwnf-standalone-results__holder"
|
|
1133
|
-
},
|
|
1177
|
+
}, gn = ["innerHTML"], _n = ["innerHTML"], vn = {
|
|
1134
1178
|
__name: "ResultsGrid",
|
|
1135
1179
|
props: {
|
|
1136
1180
|
rows: {
|
|
@@ -1151,10 +1195,10 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1151
1195
|
}
|
|
1152
1196
|
},
|
|
1153
1197
|
setup(e) {
|
|
1154
|
-
return (t, r) => (w(), f("div",
|
|
1198
|
+
return (t, r) => (w(), f("div", on, [e.rows.length ? d("", !0) : (w(), f("p", sn, k(e.empty), 1)), (w(!0), f(c, null, D(e.rows, (t) => (w(), f("div", {
|
|
1155
1199
|
key: t.id,
|
|
1156
1200
|
class: "mwnf-standalone-results__cell"
|
|
1157
|
-
}, [p("div",
|
|
1201
|
+
}, [p("div", cn, [g(n, {
|
|
1158
1202
|
class: "mwnf-standalone-results__frame",
|
|
1159
1203
|
to: t.to,
|
|
1160
1204
|
href: t.href
|
|
@@ -1162,9 +1206,9 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1162
1206
|
default: R(() => [p("img", {
|
|
1163
1207
|
src: t.image || e.noImage,
|
|
1164
1208
|
alt: ""
|
|
1165
|
-
}, null, 8,
|
|
1209
|
+
}, null, 8, ln)]),
|
|
1166
1210
|
_: 2
|
|
1167
|
-
}, 1032, ["to", "href"]), p("div",
|
|
1211
|
+
}, 1032, ["to", "href"]), p("div", un, [
|
|
1168
1212
|
g(n, {
|
|
1169
1213
|
class: "mwnf-standalone-results__panel-frame",
|
|
1170
1214
|
to: t.to,
|
|
@@ -1173,25 +1217,25 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1173
1217
|
default: R(() => [p("img", {
|
|
1174
1218
|
src: t.image || e.noImage,
|
|
1175
1219
|
alt: ""
|
|
1176
|
-
}, null, 8,
|
|
1220
|
+
}, null, 8, dn)]),
|
|
1177
1221
|
_: 2
|
|
1178
1222
|
}, 1032, ["to", "href"]),
|
|
1179
|
-
p("p",
|
|
1223
|
+
p("p", fn, [p("strong", null, [g(n, {
|
|
1180
1224
|
to: t.to,
|
|
1181
1225
|
href: t.href
|
|
1182
1226
|
}, {
|
|
1183
|
-
default: R(() => [p("span", { innerHTML: t.name }, null, 8,
|
|
1227
|
+
default: R(() => [p("span", { innerHTML: t.name }, null, 8, pn)]),
|
|
1184
1228
|
_: 2
|
|
1185
1229
|
}, 1032, ["to", "href"])])]),
|
|
1186
1230
|
(w(!0), f(c, null, D(t.lines ?? [], (e, t) => (w(), f("p", {
|
|
1187
1231
|
key: t,
|
|
1188
1232
|
innerHTML: e
|
|
1189
|
-
}, null, 8,
|
|
1190
|
-
t.holder ? (w(), f("p",
|
|
1233
|
+
}, null, 8, mn))), 128)),
|
|
1234
|
+
t.holder ? (w(), f("p", hn, [p("strong", { innerHTML: t.holder }, null, 8, gn)])) : d("", !0),
|
|
1191
1235
|
t.location ? (w(), f("p", {
|
|
1192
1236
|
key: 1,
|
|
1193
1237
|
innerHTML: t.location
|
|
1194
|
-
}, null, 8,
|
|
1238
|
+
}, null, 8, _n)) : d("", !0),
|
|
1195
1239
|
p("p", null, [g(n, {
|
|
1196
1240
|
class: "mwnf-standalone-results__see",
|
|
1197
1241
|
to: t.to,
|
|
@@ -1202,13 +1246,13 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1202
1246
|
}, 8, ["to", "href"])])
|
|
1203
1247
|
])])]))), 128))]));
|
|
1204
1248
|
}
|
|
1205
|
-
},
|
|
1249
|
+
}, yn = { class: "mwnf-standalone-list" }, bn = { class: "mwnf-standalone-list__aside" }, xn = {
|
|
1206
1250
|
key: 0,
|
|
1207
1251
|
class: "mwnf-standalone-list__preview"
|
|
1208
|
-
},
|
|
1252
|
+
}, Sn = { class: "mwnf-standalone-list__preview-picture" }, Cn = ["src"], wn = { class: "mwnf-standalone-list__preview-name" }, Tn = ["innerHTML"], En = ["innerHTML"], Dn = { key: 0 }, On = ["innerHTML"], kn = ["innerHTML"], An = { class: "mwnf-standalone-list__records" }, jn = {
|
|
1209
1253
|
key: 0,
|
|
1210
1254
|
class: "mwnf-standalone-list__empty"
|
|
1211
|
-
},
|
|
1255
|
+
}, Mn = { class: "mwnf-standalone-list__frame" }, Nn = ["src"], Pn = { class: "mwnf-standalone-list__content" }, Fn = ["innerHTML"], In = ["innerHTML"], Ln = { key: 0 }, Rn = ["innerHTML"], zn = {
|
|
1212
1256
|
__name: "ResultsList",
|
|
1213
1257
|
props: {
|
|
1214
1258
|
rows: {
|
|
@@ -1226,26 +1270,26 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1226
1270
|
},
|
|
1227
1271
|
setup(e) {
|
|
1228
1272
|
let t = e, r = E(null), i = l(() => r.value ?? t.rows[0] ?? null);
|
|
1229
|
-
return (t, a) => (w(), f("div",
|
|
1230
|
-
p("div",
|
|
1273
|
+
return (t, a) => (w(), f("div", yn, [p("div", bn, [i.value ? (w(), f("div", xn, [
|
|
1274
|
+
p("div", Sn, [i.value.image || e.noImage ? (w(), f("img", {
|
|
1231
1275
|
key: 0,
|
|
1232
1276
|
src: i.value.image || e.noImage,
|
|
1233
1277
|
alt: ""
|
|
1234
|
-
}, null, 8,
|
|
1235
|
-
p("p",
|
|
1278
|
+
}, null, 8, Cn)) : d("", !0)]),
|
|
1279
|
+
p("p", wn, [p("strong", { innerHTML: i.value.name }, null, 8, Tn)]),
|
|
1236
1280
|
(w(!0), f(c, null, D(i.value.preview?.lines ?? [], (e, t) => (w(), f("p", {
|
|
1237
1281
|
key: t,
|
|
1238
1282
|
innerHTML: e
|
|
1239
|
-
}, null, 8,
|
|
1240
|
-
i.value.preview?.holder ? (w(), f("p",
|
|
1283
|
+
}, null, 8, En))), 128)),
|
|
1284
|
+
i.value.preview?.holder ? (w(), f("p", Dn, [p("strong", { innerHTML: i.value.preview.holder }, null, 8, On)])) : d("", !0),
|
|
1241
1285
|
i.value.preview?.location ? (w(), f("p", {
|
|
1242
1286
|
key: 1,
|
|
1243
1287
|
innerHTML: i.value.preview.location
|
|
1244
|
-
}, null, 8,
|
|
1245
|
-
])) : d("", !0)]), p("div",
|
|
1288
|
+
}, null, 8, kn)) : d("", !0)
|
|
1289
|
+
])) : d("", !0)]), p("div", An, [e.rows.length ? d("", !0) : (w(), f("p", jn, k(e.empty), 1)), (w(!0), f(c, null, D(e.rows, (t) => (w(), f("div", {
|
|
1246
1290
|
key: t.id,
|
|
1247
1291
|
class: "mwnf-standalone-list__cell"
|
|
1248
|
-
}, [p("div",
|
|
1292
|
+
}, [p("div", Mn, [g(n, {
|
|
1249
1293
|
to: t.to,
|
|
1250
1294
|
href: t.href,
|
|
1251
1295
|
onMouseenter: (e) => r.value = t,
|
|
@@ -1255,13 +1299,13 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1255
1299
|
key: 0,
|
|
1256
1300
|
src: t.image || e.noImage,
|
|
1257
1301
|
alt: ""
|
|
1258
|
-
}, null, 8,
|
|
1302
|
+
}, null, 8, Nn)) : d("", !0)]),
|
|
1259
1303
|
_: 2
|
|
1260
1304
|
}, 1032, [
|
|
1261
1305
|
"to",
|
|
1262
1306
|
"href",
|
|
1263
1307
|
"onMouseenter"
|
|
1264
|
-
])]), p("div",
|
|
1308
|
+
])]), p("div", Pn, [p("p", null, [g(n, {
|
|
1265
1309
|
to: t.to,
|
|
1266
1310
|
href: t.href,
|
|
1267
1311
|
onMouseenter: (e) => r.value = t,
|
|
@@ -1271,27 +1315,27 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1271
1315
|
p("span", {
|
|
1272
1316
|
class: "mwnf-standalone-list__name",
|
|
1273
1317
|
innerHTML: `${t.name},`
|
|
1274
|
-
}, null, 8,
|
|
1318
|
+
}, null, 8, Fn),
|
|
1275
1319
|
a[2] ||= h(),
|
|
1276
|
-
p("span", { innerHTML: t.place }, null, 8,
|
|
1320
|
+
p("span", { innerHTML: t.place }, null, 8, In)
|
|
1277
1321
|
]),
|
|
1278
1322
|
_: 2
|
|
1279
1323
|
}, 1032, [
|
|
1280
1324
|
"to",
|
|
1281
1325
|
"href",
|
|
1282
1326
|
"onMouseenter"
|
|
1283
|
-
])]), t.dates ? (w(), f("div",
|
|
1327
|
+
])]), t.dates ? (w(), f("div", Ln, [p("i", { innerHTML: t.dates }, null, 8, Rn)])) : d("", !0)])]))), 128))])]));
|
|
1284
1328
|
}
|
|
1285
|
-
},
|
|
1329
|
+
}, Bn = { class: "mwnf-standalone-refine__row" }, Vn = {
|
|
1286
1330
|
class: "mwnf-standalone-refine__label",
|
|
1287
1331
|
for: "mwnf-standalone-refine-keyword"
|
|
1288
|
-
},
|
|
1332
|
+
}, Hn = {
|
|
1289
1333
|
class: "mwnf-standalone-refine__label",
|
|
1290
1334
|
for: "mwnf-standalone-refine-field"
|
|
1291
|
-
},
|
|
1335
|
+
}, Un = ["value"], Wn = {
|
|
1292
1336
|
type: "submit",
|
|
1293
1337
|
class: "mwnf-standalone-refine__button"
|
|
1294
|
-
},
|
|
1338
|
+
}, Gn = {
|
|
1295
1339
|
__name: "Refine",
|
|
1296
1340
|
props: {
|
|
1297
1341
|
label: {
|
|
@@ -1332,23 +1376,23 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1332
1376
|
return (t, r) => (w(), f("form", {
|
|
1333
1377
|
class: "mwnf-standalone-refine",
|
|
1334
1378
|
onSubmit: B(s, ["prevent"])
|
|
1335
|
-
}, [p("div",
|
|
1336
|
-
p("label",
|
|
1379
|
+
}, [p("div", Bn, [
|
|
1380
|
+
p("label", Vn, k(e.label), 1),
|
|
1337
1381
|
z(p("input", {
|
|
1338
1382
|
id: "mwnf-standalone-refine-keyword",
|
|
1339
1383
|
"onUpdate:modelValue": r[0] ||= (e) => a.value = e,
|
|
1340
1384
|
type: "text",
|
|
1341
1385
|
size: "40"
|
|
1342
1386
|
}, null, 512), [[F, a.value]]),
|
|
1343
|
-
p("label",
|
|
1387
|
+
p("label", Hn, k(e.inLabel), 1),
|
|
1344
1388
|
z(p("select", {
|
|
1345
1389
|
id: "mwnf-standalone-refine-field",
|
|
1346
1390
|
"onUpdate:modelValue": r[1] ||= (e) => o.value = e
|
|
1347
1391
|
}, [(w(!0), f(c, null, D(e.fields, (e) => (w(), f("option", {
|
|
1348
1392
|
key: e.value,
|
|
1349
1393
|
value: e.value
|
|
1350
|
-
}, k(e.label), 9,
|
|
1351
|
-
p("button",
|
|
1394
|
+
}, k(e.label), 9, Un))), 128))], 512), [[P, o.value]]),
|
|
1395
|
+
p("button", Wn, k(e.searchLabel), 1),
|
|
1352
1396
|
g(n, {
|
|
1353
1397
|
class: "mwnf-standalone-refine__button mwnf-standalone-refine__button--new",
|
|
1354
1398
|
to: e.newSearch
|
|
@@ -1358,10 +1402,10 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1358
1402
|
}, 8, ["to"])
|
|
1359
1403
|
])], 32));
|
|
1360
1404
|
}
|
|
1361
|
-
},
|
|
1405
|
+
}, Kn = { class: "mwnf-standalone-item__back mwnf-standalone-pl__back" }, qn = { class: "mwnf-standalone-pl__heads" }, Jn = { class: "mwnf-standalone-pl__head" }, Yn = { key: 0 }, Xn = ["onClick"], Zn = { class: "mwnf-standalone-pl__row" }, Qn = { class: "mwnf-standalone-pl__main" }, $n = { class: "mwnf-standalone-pl__associated" }, er = {
|
|
1362
1406
|
key: 0,
|
|
1363
1407
|
class: "mwnf-standalone-pl__none"
|
|
1364
|
-
},
|
|
1408
|
+
}, tr = {
|
|
1365
1409
|
__name: "PartnerList",
|
|
1366
1410
|
props: {
|
|
1367
1411
|
type: {
|
|
@@ -1399,7 +1443,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1399
1443
|
i.value = t ? null : e, a.value = t ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([e]);
|
|
1400
1444
|
}
|
|
1401
1445
|
return (t, s) => (w(), f("div", { class: b(["mwnf-standalone-pl", r.value ? "mwnf-standalone-pl--museums" : "mwnf-standalone-pl--institutions"]) }, [
|
|
1402
|
-
p("p",
|
|
1446
|
+
p("p", Kn, [(w(!0), f(c, null, D(e.back, (e) => (w(), f(c, { key: e.label }, [e.history ? (w(), f("button", {
|
|
1403
1447
|
key: 0,
|
|
1404
1448
|
type: "button",
|
|
1405
1449
|
class: "mwnf-standalone-item__back-link",
|
|
@@ -1413,33 +1457,33 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1413
1457
|
default: R(() => [h(k(e.label), 1)]),
|
|
1414
1458
|
_: 2
|
|
1415
1459
|
}, 1032, ["to", "href"]))], 64))), 128)), O(t.$slots, "back")]),
|
|
1416
|
-
p("div",
|
|
1460
|
+
p("div", qn, [(w(!0), f(c, null, D(e.heads, (e) => (w(), f("h3", { key: e }, k(e), 1))), 128))]),
|
|
1417
1461
|
(w(!0), f(c, null, D(e.groups, (t, s) => (w(), f("div", {
|
|
1418
1462
|
key: t.label,
|
|
1419
1463
|
class: "mwnf-standalone-pl__group"
|
|
1420
|
-
}, [p("div",
|
|
1464
|
+
}, [p("div", Jn, [r.value ? (w(), f("h3", Yn, k(t.label), 1)) : d("", !0), p("h3", null, [p("a", {
|
|
1421
1465
|
href: "#",
|
|
1422
1466
|
class: b(["mwnf-standalone-pl__toggle", { "mwnf-standalone-pl__toggle--active": i.value === s }]),
|
|
1423
1467
|
onClick: B((e) => o(s), ["prevent"])
|
|
1424
|
-
}, k(r.value ? e.seeAssociated : t.label), 11,
|
|
1468
|
+
}, k(r.value ? e.seeAssociated : t.label), 11, Xn)])]), z(p("div", Zn, [p("div", Qn, [(w(!0), f(c, null, D(t.main, (e) => (w(), f("p", { key: e.id }, [g(n, {
|
|
1425
1469
|
to: e.to,
|
|
1426
1470
|
href: e.href
|
|
1427
1471
|
}, {
|
|
1428
1472
|
default: R(() => [h(k(e.label), 1)]),
|
|
1429
1473
|
_: 2
|
|
1430
|
-
}, 1032, ["to", "href"])]))), 128))]), z(p("div",
|
|
1474
|
+
}, 1032, ["to", "href"])]))), 128))]), z(p("div", $n, [(w(!0), f(c, null, D(t.associated, (e) => (w(), f("p", { key: e.id }, [g(n, {
|
|
1431
1475
|
to: e.to,
|
|
1432
1476
|
href: e.href
|
|
1433
1477
|
}, {
|
|
1434
1478
|
default: R(() => [h(k(e.label), 1)]),
|
|
1435
1479
|
_: 2
|
|
1436
|
-
}, 1032, ["to", "href"])]))), 128)), r.value && !t.associated.length ? (w(), f("p",
|
|
1480
|
+
}, 1032, ["to", "href"])]))), 128)), r.value && !t.associated.length ? (w(), f("p", er, k(e.noAssociated), 1)) : d("", !0)], 512), [[I, !r.value || a.value.has(s)]])], 512), [[I, r.value || a.value.has(s)]])]))), 128))
|
|
1437
1481
|
], 2));
|
|
1438
1482
|
}
|
|
1439
|
-
},
|
|
1483
|
+
}, nr = { class: "mwnf-standalone-item__back mwnf-standalone-sp__back" }, rr = {
|
|
1440
1484
|
key: 0,
|
|
1441
1485
|
class: "mwnf-standalone-sp__heading"
|
|
1442
|
-
},
|
|
1486
|
+
}, ir = ["innerHTML"], ar = { class: "mwnf-standalone-sp__text" }, or = { key: 0 }, sr = { key: 1 }, cr = { key: 2 }, lr = ["href"], ur = ["innerHTML"], dr = { class: "mwnf-standalone-sp__logo" }, fr = { key: 0 }, pr = ["src", "alt"], mr = {
|
|
1443
1487
|
__name: "SponsorList",
|
|
1444
1488
|
props: {
|
|
1445
1489
|
heading: {
|
|
@@ -1458,11 +1502,11 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1458
1502
|
setup(e) {
|
|
1459
1503
|
let t = e, r = l(() => t.rows.some((e) => e.label !== void 0)), i = l(() => t.rows.map((e) => ({
|
|
1460
1504
|
...e,
|
|
1461
|
-
labelHtml: e.label ?
|
|
1462
|
-
remarksHtml: e.remarks ?
|
|
1505
|
+
labelHtml: e.label ? U(e.label) : "",
|
|
1506
|
+
remarksHtml: e.remarks ? U(e.remarks) : ""
|
|
1463
1507
|
})));
|
|
1464
1508
|
return (t, a) => (w(), f("div", { class: b(["mwnf-standalone-sp", { "mwnf-standalone-sp--labels": r.value }]) }, [
|
|
1465
|
-
p("p",
|
|
1509
|
+
p("p", nr, [(w(!0), f(c, null, D(e.back, (e) => (w(), f(c, { key: e.label }, [e.history ? (w(), f("button", {
|
|
1466
1510
|
key: 0,
|
|
1467
1511
|
type: "button",
|
|
1468
1512
|
class: "mwnf-standalone-item__back-link",
|
|
@@ -1476,7 +1520,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1476
1520
|
default: R(() => [h(k(e.label), 1)]),
|
|
1477
1521
|
_: 2
|
|
1478
1522
|
}, 1032, ["to", "href"]))], 64))), 128))]),
|
|
1479
|
-
e.heading ? (w(), f("h3",
|
|
1523
|
+
e.heading ? (w(), f("h3", rr, k(e.heading), 1)) : d("", !0),
|
|
1480
1524
|
(w(!0), f(c, null, D(i.value, (e, t) => (w(), f("div", {
|
|
1481
1525
|
key: t,
|
|
1482
1526
|
class: "mwnf-standalone-sp__row"
|
|
@@ -1485,38 +1529,38 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1485
1529
|
key: 0,
|
|
1486
1530
|
class: "mwnf-standalone-sp__label",
|
|
1487
1531
|
innerHTML: e.labelHtml
|
|
1488
|
-
}, null, 8,
|
|
1489
|
-
p("div",
|
|
1490
|
-
e.region ? (w(), f("p",
|
|
1491
|
-
e.name ? (w(), f("p",
|
|
1492
|
-
e.web ? (w(), f("p",
|
|
1532
|
+
}, null, 8, ir)) : d("", !0),
|
|
1533
|
+
p("div", ar, [
|
|
1534
|
+
e.region ? (w(), f("p", or, k(e.region), 1)) : d("", !0),
|
|
1535
|
+
e.name ? (w(), f("p", sr, k(e.name), 1)) : d("", !0),
|
|
1536
|
+
e.web ? (w(), f("p", cr, [p("a", {
|
|
1493
1537
|
href: `http://${e.web}`,
|
|
1494
1538
|
target: "_blank",
|
|
1495
1539
|
rel: "noopener"
|
|
1496
|
-
}, k(e.web), 9,
|
|
1540
|
+
}, k(e.web), 9, lr)])) : d("", !0),
|
|
1497
1541
|
e.remarksHtml ? (w(), f("div", {
|
|
1498
1542
|
key: 3,
|
|
1499
1543
|
class: "mwnf-standalone-sp__remarks",
|
|
1500
1544
|
innerHTML: e.remarksHtml
|
|
1501
|
-
}, null, 8,
|
|
1545
|
+
}, null, 8, ur)) : d("", !0)
|
|
1502
1546
|
]),
|
|
1503
|
-
p("div",
|
|
1547
|
+
p("div", dr, [e.logo ? (w(), f("p", fr, [p("img", {
|
|
1504
1548
|
src: e.logo,
|
|
1505
1549
|
alt: e.name
|
|
1506
|
-
}, null, 8,
|
|
1550
|
+
}, null, 8, pr)])) : d("", !0)])
|
|
1507
1551
|
]))), 128))
|
|
1508
1552
|
], 2));
|
|
1509
1553
|
}
|
|
1510
|
-
},
|
|
1554
|
+
}, hr = { class: "mwnf-standalone-db__criteria" }, gr = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--keywords" }, _r = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--category" }, vr = {
|
|
1511
1555
|
key: 0,
|
|
1512
1556
|
class: "mwnf-standalone-db__aside"
|
|
1513
|
-
},
|
|
1557
|
+
}, yr = ["onUpdate:modelValue", "aria-label"], br = { value: "AND" }, xr = { value: "OR" }, Sr = ["onUpdate:modelValue", "aria-label"], Cr = ["onUpdate:modelValue"], wr = ["value"], Tr = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--date" }, Er = { class: "mwnf-standalone-db__dates" }, Dr = ["aria-label"], Or = { value: "" }, kr = ["value"], Ar = ["aria-label"], jr = { value: "" }, Mr = ["value"], Nr = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--language" }, Pr = { class: "mwnf-standalone-db__language" }, Fr = ["aria-label"], Ir = ["value"], Lr = {
|
|
1514
1558
|
key: 1,
|
|
1515
1559
|
class: "mwnf-standalone-db__options"
|
|
1516
|
-
},
|
|
1560
|
+
}, Rr = { class: "mwnf-standalone-db__go" }, zr = { type: "submit" }, Br = {
|
|
1517
1561
|
key: 2,
|
|
1518
1562
|
class: "mwnf-standalone-db__listing"
|
|
1519
|
-
},
|
|
1563
|
+
}, Vr = ["href", "title"], Hr = {
|
|
1520
1564
|
__name: "DatabaseForm",
|
|
1521
1565
|
props: /*@__PURE__*/ v({
|
|
1522
1566
|
labels: {
|
|
@@ -1586,62 +1630,136 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1586
1630
|
class: b(["mwnf-standalone-db", { "mwnf-standalone-db--options": u.value }]),
|
|
1587
1631
|
onSubmit: B(m, ["prevent"])
|
|
1588
1632
|
}, [
|
|
1589
|
-
p("h3",
|
|
1590
|
-
p("p",
|
|
1591
|
-
p("p",
|
|
1592
|
-
t.$slots.aside ? (w(), f("p",
|
|
1633
|
+
p("h3", hr, k(e.labels.criteria), 1),
|
|
1634
|
+
p("p", gr, k(e.labels.keywords), 1),
|
|
1635
|
+
p("p", _r, k(e.labels.category), 1),
|
|
1636
|
+
t.$slots.aside ? (w(), f("p", vr, [O(t.$slots, "aside")])) : d("", !0),
|
|
1593
1637
|
(w(!0), f(c, null, D(o, (t, n) => (w(), f(c, { key: n }, [
|
|
1594
1638
|
n ? z((w(), f("select", {
|
|
1595
1639
|
key: 0,
|
|
1596
1640
|
"onUpdate:modelValue": (e) => t.cond = e,
|
|
1597
1641
|
class: b(["mwnf-standalone-db__cond", `mwnf-standalone-db__row-${n + 1}`]),
|
|
1598
1642
|
"aria-label": `${e.labels.and} / ${e.labels.or}`
|
|
1599
|
-
}, [p("option",
|
|
1643
|
+
}, [p("option", br, k(e.labels.and), 1), p("option", xr, k(e.labels.or), 1)], 10, yr)), [[P, t.cond]]) : d("", !0),
|
|
1600
1644
|
z(p("input", {
|
|
1601
1645
|
"onUpdate:modelValue": (e) => t.keyword = e,
|
|
1602
1646
|
type: "text",
|
|
1603
1647
|
class: b(["mwnf-standalone-db__keyword", `mwnf-standalone-db__row-${n + 1}`]),
|
|
1604
1648
|
"aria-label": e.labels.keywords
|
|
1605
|
-
}, null, 10,
|
|
1649
|
+
}, null, 10, Sr), [[F, t.keyword]]),
|
|
1606
1650
|
p("label", { class: b(["mwnf-standalone-db__field", `mwnf-standalone-db__row-${n + 1}`]) }, [p("span", null, k(e.labels.in), 1), z(p("select", { "onUpdate:modelValue": (e) => t.field = e }, [(w(!0), f(c, null, D(e.fields, (e) => (w(), f("option", {
|
|
1607
1651
|
key: e.value,
|
|
1608
1652
|
value: e.value
|
|
1609
|
-
}, k(e.label), 9,
|
|
1653
|
+
}, k(e.label), 9, wr))), 128))], 8, Cr), [[P, t.field]])], 2)
|
|
1610
1654
|
], 64))), 128)),
|
|
1611
|
-
p("span",
|
|
1612
|
-
p("p",
|
|
1655
|
+
p("span", Tr, k(e.labels.date), 1),
|
|
1656
|
+
p("p", Er, [z(p("select", {
|
|
1613
1657
|
"onUpdate:modelValue": n[0] ||= (e) => s.from = e,
|
|
1614
1658
|
"aria-label": `${e.labels.date} ${e.labels.from}`
|
|
1615
|
-
}, [p("option",
|
|
1659
|
+
}, [p("option", Or, k(e.labels.from), 1), (w(!0), f(c, null, D(e.fromYears, (e) => (w(), f("option", {
|
|
1616
1660
|
key: e,
|
|
1617
1661
|
value: e
|
|
1618
|
-
}, k(e), 9,
|
|
1662
|
+
}, k(e), 9, kr))), 128))], 8, Dr), [[P, s.from]]), z(p("select", {
|
|
1619
1663
|
"onUpdate:modelValue": n[1] ||= (e) => s.to = e,
|
|
1620
1664
|
"aria-label": `${e.labels.date} ${e.labels.to}`
|
|
1621
|
-
}, [p("option",
|
|
1665
|
+
}, [p("option", jr, k(e.labels.to), 1), (w(!0), f(c, null, D(e.toYears, (e) => (w(), f("option", {
|
|
1622
1666
|
key: e,
|
|
1623
1667
|
value: e
|
|
1624
|
-
}, k(e), 9,
|
|
1625
|
-
p("span",
|
|
1626
|
-
p("p",
|
|
1668
|
+
}, k(e), 9, Mr))), 128))], 8, Ar), [[P, s.to]])]),
|
|
1669
|
+
p("span", Nr, k(e.labels.language), 1),
|
|
1670
|
+
p("p", Pr, [z(p("select", {
|
|
1627
1671
|
"onUpdate:modelValue": n[2] ||= (e) => r.value = e,
|
|
1628
1672
|
"aria-label": e.labels.language
|
|
1629
1673
|
}, [n[3] ||= p("option", { value: "" }, null, -1), (w(!0), f(c, null, D(e.languages, (e) => (w(), f("option", {
|
|
1630
1674
|
key: e.code,
|
|
1631
1675
|
value: e.code
|
|
1632
|
-
}, k(e.name), 9,
|
|
1633
|
-
u.value ? (w(), f("p",
|
|
1634
|
-
p("p",
|
|
1635
|
-
e.listingHref ? (w(), f("p",
|
|
1676
|
+
}, k(e.name), 9, Ir))), 128))], 8, Fr), [[P, r.value]])]),
|
|
1677
|
+
u.value ? (w(), f("p", Lr, [O(t.$slots, "options")])) : d("", !0),
|
|
1678
|
+
p("p", Rr, [p("button", zr, k(e.labels.go), 1)]),
|
|
1679
|
+
e.listingHref ? (w(), f("p", Br, [p("a", {
|
|
1636
1680
|
href: e.listingHref,
|
|
1637
1681
|
title: e.labels.listingTooltip
|
|
1638
|
-
}, k(e.labels.listing), 9,
|
|
1682
|
+
}, k(e.labels.listing), 9, Vr)])) : d("", !0)
|
|
1639
1683
|
], 34));
|
|
1640
1684
|
}
|
|
1641
|
-
},
|
|
1685
|
+
}, Ur = { class: "mwnf-standalone-tle__country" }, Wr = ["aria-label"], Gr = { value: "none" }, Kr = { value: "" }, qr = ["value"], Jr = { class: "mwnf-standalone-tle__date" }, Yr = ["aria-label"], Xr = { value: "none" }, Zr = ["value"], Qr = { class: "mwnf-standalone-tle__date" }, $r = ["aria-label"], ei = { value: "none" }, ti = ["value"], ni = { class: "mwnf-standalone-tle__go" }, ri = { type: "submit" }, ii = {
|
|
1686
|
+
__name: "TimelineEntrance",
|
|
1687
|
+
props: {
|
|
1688
|
+
labels: {
|
|
1689
|
+
type: Object,
|
|
1690
|
+
required: !0
|
|
1691
|
+
},
|
|
1692
|
+
alerts: {
|
|
1693
|
+
type: Object,
|
|
1694
|
+
default: () => ({})
|
|
1695
|
+
},
|
|
1696
|
+
countries: {
|
|
1697
|
+
type: Array,
|
|
1698
|
+
default: () => []
|
|
1699
|
+
},
|
|
1700
|
+
starts: {
|
|
1701
|
+
type: Array,
|
|
1702
|
+
default: () => []
|
|
1703
|
+
},
|
|
1704
|
+
ends: {
|
|
1705
|
+
type: Array,
|
|
1706
|
+
default: () => []
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
emits: ["search"],
|
|
1710
|
+
setup(e, { emit: t }) {
|
|
1711
|
+
let n = e, r = t, i = T({
|
|
1712
|
+
country: "none",
|
|
1713
|
+
start: "none",
|
|
1714
|
+
end: "none"
|
|
1715
|
+
});
|
|
1716
|
+
function a() {
|
|
1717
|
+
return i.country === "none" ? n.alerts.country : i.country === "" ? i.start === "none" && i.end === "none" ? n.alerts.countryOrDates : i.start === "none" ? n.alerts.startDate : i.end === "none" ? n.alerts.endDate : Number(i.start) > Number(i.end) ? n.alerts.period : "" : "";
|
|
1718
|
+
}
|
|
1719
|
+
function o() {
|
|
1720
|
+
let e = a();
|
|
1721
|
+
if (e) {
|
|
1722
|
+
window.alert(e);
|
|
1723
|
+
return;
|
|
1724
|
+
}
|
|
1725
|
+
r("search", { ...i });
|
|
1726
|
+
}
|
|
1727
|
+
return (t, n) => (w(), f("form", {
|
|
1728
|
+
class: "mwnf-standalone-tle",
|
|
1729
|
+
onSubmit: B(o, ["prevent"])
|
|
1730
|
+
}, [
|
|
1731
|
+
p("p", Ur, [z(p("select", {
|
|
1732
|
+
"onUpdate:modelValue": n[0] ||= (e) => i.country = e,
|
|
1733
|
+
"aria-label": e.labels.selectCountry
|
|
1734
|
+
}, [
|
|
1735
|
+
p("option", Gr, k(e.labels.selectCountry), 1),
|
|
1736
|
+
p("option", Kr, k(e.labels.allCountries), 1),
|
|
1737
|
+
(w(!0), f(c, null, D(e.countries, (e) => (w(), f("option", {
|
|
1738
|
+
key: e.value,
|
|
1739
|
+
value: e.value
|
|
1740
|
+
}, k(e.label), 9, qr))), 128))
|
|
1741
|
+
], 8, Wr), [[P, i.country]])]),
|
|
1742
|
+
p("p", Jr, [z(p("select", {
|
|
1743
|
+
"onUpdate:modelValue": n[1] ||= (e) => i.start = e,
|
|
1744
|
+
"aria-label": e.labels.startDate
|
|
1745
|
+
}, [p("option", Xr, k(e.labels.startDate), 1), (w(!0), f(c, null, D(e.starts, (e) => (w(), f("option", {
|
|
1746
|
+
key: e.value,
|
|
1747
|
+
value: e.value
|
|
1748
|
+
}, k(e.label), 9, Zr))), 128))], 8, Yr), [[P, i.start]])]),
|
|
1749
|
+
p("p", Qr, [z(p("select", {
|
|
1750
|
+
"onUpdate:modelValue": n[2] ||= (e) => i.end = e,
|
|
1751
|
+
"aria-label": e.labels.endDate
|
|
1752
|
+
}, [p("option", ei, k(e.labels.endDate), 1), (w(!0), f(c, null, D(e.ends, (e) => (w(), f("option", {
|
|
1753
|
+
key: e.value,
|
|
1754
|
+
value: e.value
|
|
1755
|
+
}, k(e.label), 9, ti))), 128))], 8, $r), [[P, i.end]])]),
|
|
1756
|
+
p("p", ni, [p("button", ri, k(e.labels.go), 1)])
|
|
1757
|
+
], 32));
|
|
1758
|
+
}
|
|
1759
|
+
}, ai = {
|
|
1642
1760
|
key: 0,
|
|
1643
1761
|
class: "mwnf-standalone-pages"
|
|
1644
|
-
},
|
|
1762
|
+
}, oi = { class: "mwnf-standalone-pages__previous" }, si = ["aria-current", "onClick"], ci = { class: "mwnf-standalone-pages__next" }, li = {
|
|
1645
1763
|
__name: "Pagination",
|
|
1646
1764
|
props: {
|
|
1647
1765
|
pageInfo: {
|
|
@@ -1671,8 +1789,8 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1671
1789
|
function s(e) {
|
|
1672
1790
|
e >= 1 && e <= a.value && e !== i.value && r("navigate", e);
|
|
1673
1791
|
}
|
|
1674
|
-
return (t, n) => a.value > 1 ? (w(), f("nav",
|
|
1675
|
-
p("span",
|
|
1792
|
+
return (t, n) => a.value > 1 ? (w(), f("nav", ai, [
|
|
1793
|
+
p("span", oi, [i.value > 1 ? (w(), f("a", {
|
|
1676
1794
|
key: 0,
|
|
1677
1795
|
href: "#",
|
|
1678
1796
|
onClick: n[0] ||= B((e) => s(i.value - 1), ["prevent"])
|
|
@@ -1683,18 +1801,330 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1683
1801
|
class: b(["mwnf-standalone-pages__number", { "mwnf-standalone-pages__number--active": e === i.value }]),
|
|
1684
1802
|
"aria-current": e === i.value ? "page" : void 0,
|
|
1685
1803
|
onClick: B((t) => s(e), ["prevent"])
|
|
1686
|
-
}, k(e), 11,
|
|
1687
|
-
p("span",
|
|
1804
|
+
}, k(e), 11, si))), 128)),
|
|
1805
|
+
p("span", ci, [i.value < a.value ? (w(), f("a", {
|
|
1688
1806
|
key: 0,
|
|
1689
1807
|
href: "#",
|
|
1690
1808
|
onClick: n[1] ||= B((e) => s(i.value + 1), ["prevent"])
|
|
1691
1809
|
}, k(e.nextLabel), 1)) : (w(), f(c, { key: 1 }, [h(k(e.nextLabel), 1)], 64))])
|
|
1692
1810
|
])) : d("", !0);
|
|
1693
1811
|
}
|
|
1694
|
-
},
|
|
1812
|
+
}, ui = { class: "mwnf-standalone-tlr" }, di = { class: "mwnf-standalone-tlr__band" }, fi = { class: "mwnf-standalone-tlr__band-inner" }, pi = { class: "mwnf-standalone-tlr__summary" }, mi = { class: "mwnf-standalone-tlr__selects" }, hi = ["for"], gi = [
|
|
1813
|
+
"id",
|
|
1814
|
+
"value",
|
|
1815
|
+
"onChange"
|
|
1816
|
+
], _i = ["value"], vi = { class: "mwnf-standalone-item__back mwnf-standalone-tlr__back" }, yi = {
|
|
1817
|
+
key: 0,
|
|
1818
|
+
class: "mwnf-standalone-tlr__heads"
|
|
1819
|
+
}, bi = { class: "mwnf-standalone-tlr__body" }, xi = { class: "mwnf-standalone-tlr__list" }, Si = { class: "mwnf-standalone-tlr__date" }, Ci = { class: "mwnf-standalone-tlr__content" }, wi = ["innerHTML"], Ti = {
|
|
1820
|
+
key: 0,
|
|
1821
|
+
class: "mwnf-standalone-tlr__empty"
|
|
1822
|
+
}, Ei = { class: "mwnf-standalone-tlr__related" }, Di = {
|
|
1823
|
+
key: 0,
|
|
1824
|
+
class: "mwnf-standalone-tlr__panel"
|
|
1825
|
+
}, Oi = { key: 0 }, ki = {
|
|
1826
|
+
key: 1,
|
|
1827
|
+
class: "mwnf-standalone-tlr__panel"
|
|
1828
|
+
}, Ai = { class: "mwnf-standalone-tlr__download" }, ji = {
|
|
1829
|
+
__name: "TimelineResults",
|
|
1830
|
+
props: {
|
|
1831
|
+
heading: {
|
|
1832
|
+
type: String,
|
|
1833
|
+
default: ""
|
|
1834
|
+
},
|
|
1835
|
+
summary: {
|
|
1836
|
+
type: String,
|
|
1837
|
+
default: ""
|
|
1838
|
+
},
|
|
1839
|
+
selects: {
|
|
1840
|
+
type: Array,
|
|
1841
|
+
default: () => []
|
|
1842
|
+
},
|
|
1843
|
+
back: {
|
|
1844
|
+
type: Array,
|
|
1845
|
+
default: () => []
|
|
1846
|
+
},
|
|
1847
|
+
heads: {
|
|
1848
|
+
type: Object,
|
|
1849
|
+
default: () => ({})
|
|
1850
|
+
},
|
|
1851
|
+
rows: {
|
|
1852
|
+
type: Array,
|
|
1853
|
+
default: () => []
|
|
1854
|
+
},
|
|
1855
|
+
all: {
|
|
1856
|
+
type: Array,
|
|
1857
|
+
default: null
|
|
1858
|
+
},
|
|
1859
|
+
empty: {
|
|
1860
|
+
type: String,
|
|
1861
|
+
default: ""
|
|
1862
|
+
},
|
|
1863
|
+
pageInfo: {
|
|
1864
|
+
type: Object,
|
|
1865
|
+
default: null
|
|
1866
|
+
},
|
|
1867
|
+
previousLabel: {
|
|
1868
|
+
type: String,
|
|
1869
|
+
default: ""
|
|
1870
|
+
},
|
|
1871
|
+
nextLabel: {
|
|
1872
|
+
type: String,
|
|
1873
|
+
default: ""
|
|
1874
|
+
},
|
|
1875
|
+
related: {
|
|
1876
|
+
type: Object,
|
|
1877
|
+
default: null
|
|
1878
|
+
},
|
|
1879
|
+
download: {
|
|
1880
|
+
type: Object,
|
|
1881
|
+
default: null
|
|
1882
|
+
}
|
|
1883
|
+
},
|
|
1884
|
+
emits: ["change", "navigate"],
|
|
1885
|
+
setup(e, { emit: t }) {
|
|
1886
|
+
let r = e, i = t, a = l(() => r.rows.length > 0);
|
|
1887
|
+
function o() {
|
|
1888
|
+
window.print();
|
|
1889
|
+
}
|
|
1890
|
+
function s(e) {
|
|
1891
|
+
let t = e.currentTarget.closest(".mwnf-standalone-tlr");
|
|
1892
|
+
ct(lt({
|
|
1893
|
+
title: r.download?.title ?? "",
|
|
1894
|
+
heading: r.download?.line ?? "",
|
|
1895
|
+
heads: r.heads,
|
|
1896
|
+
rows: r.all ?? r.rows,
|
|
1897
|
+
empty: r.empty,
|
|
1898
|
+
dir: t ? getComputedStyle(t).direction : ""
|
|
1899
|
+
}), r.download?.file ?? "timeline.doc");
|
|
1900
|
+
}
|
|
1901
|
+
return (t, r) => (w(), f("div", ui, [
|
|
1902
|
+
p("section", di, [p("div", fi, [p("p", pi, [p("b", null, k(e.heading), 1), h(" | " + k(e.summary), 1)]), p("div", mi, [(w(!0), f(c, null, D(e.selects, (e) => (w(), f("p", { key: e.key }, [p("label", { for: `mwnf-tlr-${e.key}` }, k(e.label), 9, hi), p("select", {
|
|
1903
|
+
id: `mwnf-tlr-${e.key}`,
|
|
1904
|
+
value: e.value,
|
|
1905
|
+
onChange: (t) => i("change", {
|
|
1906
|
+
key: e.key,
|
|
1907
|
+
value: t.target.value
|
|
1908
|
+
})
|
|
1909
|
+
}, [(w(!0), f(c, null, D(e.options, (e) => (w(), f("option", {
|
|
1910
|
+
key: e.value,
|
|
1911
|
+
value: e.value
|
|
1912
|
+
}, k(e.label), 9, _i))), 128))], 40, gi)]))), 128))])])]),
|
|
1913
|
+
p("p", vi, [(w(!0), f(c, null, D(e.back, (e) => (w(), f(c, { key: e.label }, [e.history ? (w(), f("button", {
|
|
1914
|
+
key: 0,
|
|
1915
|
+
type: "button",
|
|
1916
|
+
class: "mwnf-standalone-item__back-link",
|
|
1917
|
+
onClick: r[0] ||= (e) => t.$router.back()
|
|
1918
|
+
}, k(e.label), 1)) : (w(), u(n, {
|
|
1919
|
+
key: 1,
|
|
1920
|
+
class: "mwnf-standalone-item__back-link",
|
|
1921
|
+
to: e.to,
|
|
1922
|
+
href: e.href
|
|
1923
|
+
}, {
|
|
1924
|
+
default: R(() => [h(k(e.label), 1)]),
|
|
1925
|
+
_: 2
|
|
1926
|
+
}, 1032, ["to", "href"]))], 64))), 128))]),
|
|
1927
|
+
a.value ? (w(), f("div", yi, [p("h3", null, k(e.heads.date), 1), p("h3", null, k(e.heads.countryDescription), 1)])) : d("", !0),
|
|
1928
|
+
p("div", bi, [p("div", xi, [
|
|
1929
|
+
(w(!0), f(c, null, D(e.rows, (e) => (w(), f("div", {
|
|
1930
|
+
key: e.id,
|
|
1931
|
+
class: "mwnf-standalone-tlr__row"
|
|
1932
|
+
}, [p("div", Si, [p("p", null, [p("span", null, k(e.date), 1)])]), p("div", Ci, [p("p", null, [p("span", null, k(e.country), 1)]), p("div", { innerHTML: e.html }, null, 8, wi)])]))), 128)),
|
|
1933
|
+
a.value ? d("", !0) : (w(), f("p", Ti, k(e.empty), 1)),
|
|
1934
|
+
e.pageInfo ? (w(), u(li, {
|
|
1935
|
+
key: 1,
|
|
1936
|
+
"page-info": e.pageInfo,
|
|
1937
|
+
"previous-label": e.previousLabel,
|
|
1938
|
+
"next-label": e.nextLabel,
|
|
1939
|
+
onNavigate: r[1] ||= (e) => i("navigate", e)
|
|
1940
|
+
}, null, 8, [
|
|
1941
|
+
"page-info",
|
|
1942
|
+
"previous-label",
|
|
1943
|
+
"next-label"
|
|
1944
|
+
])) : d("", !0)
|
|
1945
|
+
]), p("aside", Ei, [e.related ? (w(), f("div", Di, [p("p", null, [p("strong", null, k(e.related.heading), 1)]), e.related.gallery ? (w(), f("p", Oi, [g(n, {
|
|
1946
|
+
class: "mwnf-standalone-tlr__link",
|
|
1947
|
+
to: e.related.gallery.to,
|
|
1948
|
+
title: e.related.gallery.title
|
|
1949
|
+
}, {
|
|
1950
|
+
default: R(() => [h(k(e.related.gallery.label), 1)]),
|
|
1951
|
+
_: 1
|
|
1952
|
+
}, 8, ["to", "title"])])) : d("", !0)])) : d("", !0), e.download ? (w(), f("div", ki, [
|
|
1953
|
+
p("p", Ai, k(e.download.heading), 1),
|
|
1954
|
+
p("p", null, [p("a", {
|
|
1955
|
+
href: "#",
|
|
1956
|
+
class: "mwnf-standalone-tlr__link",
|
|
1957
|
+
onClick: B(o, ["prevent"])
|
|
1958
|
+
}, k(e.download.pdf), 1)]),
|
|
1959
|
+
p("p", null, [p("a", {
|
|
1960
|
+
href: "#",
|
|
1961
|
+
class: "mwnf-standalone-tlr__link",
|
|
1962
|
+
onClick: B(s, ["prevent"])
|
|
1963
|
+
}, k(e.download.word), 1)])
|
|
1964
|
+
])) : d("", !0)])])
|
|
1965
|
+
]));
|
|
1966
|
+
}
|
|
1967
|
+
}, Mi = ["dir"], Ni = { class: "mwnf-standalone-window__box" }, Pi = { class: "mwnf-standalone-window__header" }, Fi = { class: "mwnf-standalone-window__heading" }, Ii = ["aria-label"], Li = { class: "mwnf-standalone-window__article" }, $ = {
|
|
1968
|
+
__name: "Window",
|
|
1969
|
+
props: {
|
|
1970
|
+
heading: {
|
|
1971
|
+
type: String,
|
|
1972
|
+
default: ""
|
|
1973
|
+
},
|
|
1974
|
+
closeLabel: {
|
|
1975
|
+
type: String,
|
|
1976
|
+
default: ""
|
|
1977
|
+
},
|
|
1978
|
+
dir: {
|
|
1979
|
+
type: String,
|
|
1980
|
+
default: ""
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
setup(e) {
|
|
1984
|
+
function t() {
|
|
1985
|
+
window.opener ? (window.opener.focus(), window.close()) : window.history.back();
|
|
1986
|
+
}
|
|
1987
|
+
return (n, r) => (w(), f("div", {
|
|
1988
|
+
class: "mwnf-standalone-window",
|
|
1989
|
+
dir: e.dir || void 0
|
|
1990
|
+
}, [p("div", Ni, [
|
|
1991
|
+
p("header", Pi, [p("h1", Fi, k(e.heading), 1), p("button", {
|
|
1992
|
+
type: "button",
|
|
1993
|
+
class: "mwnf-standalone-window__close",
|
|
1994
|
+
"aria-label": e.closeLabel || void 0,
|
|
1995
|
+
onClick: t
|
|
1996
|
+
}, "×", 8, Ii)]),
|
|
1997
|
+
O(n.$slots, "before"),
|
|
1998
|
+
p("article", Li, [O(n.$slots, "default")])
|
|
1999
|
+
])], 8, Mi));
|
|
2000
|
+
}
|
|
2001
|
+
}, Ri = {
|
|
2002
|
+
class: "mwnf-standalone-hcr__scale",
|
|
2003
|
+
"aria-hidden": "true"
|
|
2004
|
+
}, zi = { class: "mwnf-standalone-hcr__years" }, Bi = { class: "mwnf-standalone-hcr__body" }, Vi = { class: "mwnf-standalone-hcr__left" }, Hi = { class: "mwnf-standalone-hcr__title" }, Ui = ["value", "aria-label"], Wi = ["value"], Gi = { class: "mwnf-standalone-hcr__title" }, Ki = ["value", "aria-label"], qi = ["value"], Ji = {
|
|
2005
|
+
key: 0,
|
|
2006
|
+
class: "mwnf-standalone-hcr__image"
|
|
2007
|
+
}, Yi = ["src", "alt"], Xi = { key: 1 }, Zi = ["innerHTML"], Qi = { key: 2 }, $i = { class: "mwnf-standalone-hcr__main" }, ea = ["innerHTML"], ta = {
|
|
2008
|
+
__name: "HistoricalCrossRef",
|
|
2009
|
+
props: {
|
|
2010
|
+
labels: {
|
|
2011
|
+
type: Object,
|
|
2012
|
+
required: !0
|
|
2013
|
+
},
|
|
2014
|
+
start: {
|
|
2015
|
+
type: Number,
|
|
2016
|
+
required: !0
|
|
2017
|
+
},
|
|
2018
|
+
end: {
|
|
2019
|
+
type: Number,
|
|
2020
|
+
required: !0
|
|
2021
|
+
},
|
|
2022
|
+
countries: {
|
|
2023
|
+
type: Array,
|
|
2024
|
+
default: () => []
|
|
2025
|
+
},
|
|
2026
|
+
country: {
|
|
2027
|
+
type: String,
|
|
2028
|
+
default: ""
|
|
2029
|
+
},
|
|
2030
|
+
ranges: {
|
|
2031
|
+
type: Array,
|
|
2032
|
+
default: () => []
|
|
2033
|
+
},
|
|
2034
|
+
range: {
|
|
2035
|
+
type: [String, Number],
|
|
2036
|
+
default: ""
|
|
2037
|
+
},
|
|
2038
|
+
item: {
|
|
2039
|
+
type: Object,
|
|
2040
|
+
default: null
|
|
2041
|
+
},
|
|
2042
|
+
heading: {
|
|
2043
|
+
type: String,
|
|
2044
|
+
default: ""
|
|
2045
|
+
},
|
|
2046
|
+
events: {
|
|
2047
|
+
type: Array,
|
|
2048
|
+
default: () => []
|
|
2049
|
+
},
|
|
2050
|
+
dir: {
|
|
2051
|
+
type: String,
|
|
2052
|
+
default: ""
|
|
2053
|
+
}
|
|
2054
|
+
},
|
|
2055
|
+
emits: ["change"],
|
|
2056
|
+
setup(e, { emit: t }) {
|
|
2057
|
+
let n = e, r = t, i = l(() => {
|
|
2058
|
+
let e = (Math.floor(n.start / 50) - 2) * 50;
|
|
2059
|
+
return e + 700 > 2050 && (e = 1350), Array.from({ length: 14 }, (t, r) => {
|
|
2060
|
+
let i = e + 50 * r;
|
|
2061
|
+
return {
|
|
2062
|
+
value: i,
|
|
2063
|
+
active: i >= n.start && i < n.end
|
|
2064
|
+
};
|
|
2065
|
+
});
|
|
2066
|
+
});
|
|
2067
|
+
return (t, n) => (w(), u($, {
|
|
2068
|
+
class: "mwnf-standalone-hcr",
|
|
2069
|
+
heading: e.labels.heading,
|
|
2070
|
+
"close-label": e.labels.close,
|
|
2071
|
+
dir: e.dir
|
|
2072
|
+
}, {
|
|
2073
|
+
before: R(() => [p("section", Ri, [p("div", zi, [(w(!0), f(c, null, D(i.value, (e) => (w(), f("span", {
|
|
2074
|
+
key: e.value,
|
|
2075
|
+
class: b({ "mwnf-standalone-hcr__year--active": e.active })
|
|
2076
|
+
}, k(e.value), 3))), 128))]), n[2] ||= p("div", { class: "mwnf-standalone-hcr__lines" }, null, -1)])]),
|
|
2077
|
+
default: R(() => [p("div", Bi, [p("div", Vi, [
|
|
2078
|
+
p("p", Hi, k(e.labels.country), 1),
|
|
2079
|
+
p("select", {
|
|
2080
|
+
value: e.country,
|
|
2081
|
+
"aria-label": e.labels.country,
|
|
2082
|
+
onChange: n[0] ||= (e) => r("change", {
|
|
2083
|
+
key: "country",
|
|
2084
|
+
value: e.target.value
|
|
2085
|
+
})
|
|
2086
|
+
}, [(w(!0), f(c, null, D(e.countries, (e) => (w(), f("option", {
|
|
2087
|
+
key: e.value,
|
|
2088
|
+
value: e.value
|
|
2089
|
+
}, k(e.label), 9, Wi))), 128))], 40, Ui),
|
|
2090
|
+
p("p", Gi, k(e.labels.range), 1),
|
|
2091
|
+
p("select", {
|
|
2092
|
+
value: String(e.range),
|
|
2093
|
+
"aria-label": e.labels.range,
|
|
2094
|
+
onChange: n[1] ||= (e) => r("change", {
|
|
2095
|
+
key: "start",
|
|
2096
|
+
value: e.target.value
|
|
2097
|
+
})
|
|
2098
|
+
}, [(w(!0), f(c, null, D(e.ranges, (e) => (w(), f("option", {
|
|
2099
|
+
key: e.value,
|
|
2100
|
+
value: String(e.value)
|
|
2101
|
+
}, k(e.label), 9, qi))), 128))], 40, Ki),
|
|
2102
|
+
e.item ? (w(), f(c, { key: 0 }, [
|
|
2103
|
+
e.item.image ? (w(), f("div", Ji, [p("img", {
|
|
2104
|
+
src: e.item.image,
|
|
2105
|
+
alt: e.item.name
|
|
2106
|
+
}, null, 8, Yi)])) : d("", !0),
|
|
2107
|
+
e.item.name ? (w(), f("p", Xi, [p("strong", { innerHTML: e.item.name }, null, 8, Zi)])) : d("", !0),
|
|
2108
|
+
e.item.lines?.length ? (w(), f("p", Qi, [(w(!0), f(c, null, D(e.item.lines, (e, t) => (w(), f(c, { key: t }, [h(k(e), 1), n[3] ||= p("br", null, null, -1)], 64))), 128))])) : d("", !0)
|
|
2109
|
+
], 64)) : d("", !0)
|
|
2110
|
+
]), p("div", $i, [p("h3", null, k(e.heading), 1), (w(!0), f(c, null, D(e.events, (e) => (w(), f("div", {
|
|
2111
|
+
key: e.id,
|
|
2112
|
+
class: "mwnf-standalone-hcr__event"
|
|
2113
|
+
}, [p("p", null, [p("b", null, k(e.date), 1)]), p("div", {
|
|
2114
|
+
class: "mwnf-standalone-hcr__text",
|
|
2115
|
+
innerHTML: e.html
|
|
2116
|
+
}, null, 8, ea)]))), 128))])])]),
|
|
2117
|
+
_: 1
|
|
2118
|
+
}, 8, [
|
|
2119
|
+
"heading",
|
|
2120
|
+
"close-label",
|
|
2121
|
+
"dir"
|
|
2122
|
+
]));
|
|
2123
|
+
}
|
|
2124
|
+
}, na = ["disabled", "aria-label"], ra = { class: "mwnf-standalone-slider__track" }, ia = ["src", "alt"], aa = {
|
|
1695
2125
|
key: 0,
|
|
1696
2126
|
class: "mwnf-standalone-slider__label"
|
|
1697
|
-
},
|
|
2127
|
+
}, oa = ["disabled", "aria-label"], sa = {
|
|
1698
2128
|
__name: "Slider",
|
|
1699
2129
|
props: {
|
|
1700
2130
|
slides: {
|
|
@@ -1715,7 +2145,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1715
2145
|
}
|
|
1716
2146
|
},
|
|
1717
2147
|
setup(e) {
|
|
1718
|
-
let t = e, { t: r } =
|
|
2148
|
+
let t = e, { t: r } = q(), i = Y(), a = E(0), o = l(() => Math.max(0, t.slides.length - t.visible)), s = l(() => t.slides.slice(a.value, a.value + t.visible).map((e) => ({
|
|
1719
2149
|
...e,
|
|
1720
2150
|
image: i(e.image) ?? "",
|
|
1721
2151
|
label: e.label ? r(e.label) : ""
|
|
@@ -1731,8 +2161,8 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1731
2161
|
disabled: a.value === 0,
|
|
1732
2162
|
"aria-label": A(r)(e.previousLabel),
|
|
1733
2163
|
onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
|
|
1734
|
-
}, "‹", 8,
|
|
1735
|
-
p("ul",
|
|
2164
|
+
}, "‹", 8, na),
|
|
2165
|
+
p("ul", ra, [(w(!0), f(c, null, D(s.value, (e) => (w(), f("li", {
|
|
1736
2166
|
key: e.image,
|
|
1737
2167
|
class: "mwnf-standalone-slider__slide"
|
|
1738
2168
|
}, [g(n, {
|
|
@@ -1742,7 +2172,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1742
2172
|
default: R(() => [p("img", {
|
|
1743
2173
|
src: e.image,
|
|
1744
2174
|
alt: e.label
|
|
1745
|
-
}, null, 8,
|
|
2175
|
+
}, null, 8, ia), e.label ? (w(), f("span", aa, k(e.label), 1)) : d("", !0)]),
|
|
1746
2176
|
_: 2
|
|
1747
2177
|
}, 1032, ["to", "href"])]))), 128))]),
|
|
1748
2178
|
p("button", {
|
|
@@ -1751,47 +2181,17 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1751
2181
|
disabled: a.value >= o.value,
|
|
1752
2182
|
"aria-label": A(r)(e.nextLabel),
|
|
1753
2183
|
onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
|
|
1754
|
-
}, "›", 8,
|
|
2184
|
+
}, "›", 8, oa)
|
|
1755
2185
|
], 4)) : d("", !0);
|
|
1756
2186
|
}
|
|
1757
|
-
},
|
|
1758
|
-
__name: "Window",
|
|
1759
|
-
props: {
|
|
1760
|
-
heading: {
|
|
1761
|
-
type: String,
|
|
1762
|
-
default: ""
|
|
1763
|
-
},
|
|
1764
|
-
closeLabel: {
|
|
1765
|
-
type: String,
|
|
1766
|
-
default: ""
|
|
1767
|
-
},
|
|
1768
|
-
dir: {
|
|
1769
|
-
type: String,
|
|
1770
|
-
default: ""
|
|
1771
|
-
}
|
|
1772
|
-
},
|
|
1773
|
-
setup(e) {
|
|
1774
|
-
function t() {
|
|
1775
|
-
window.opener ? (window.opener.focus(), window.close()) : window.history.back();
|
|
1776
|
-
}
|
|
1777
|
-
return (n, r) => (w(), f("div", {
|
|
1778
|
-
class: "mwnf-standalone-window",
|
|
1779
|
-
dir: e.dir || void 0
|
|
1780
|
-
}, [p("div", $r, [p("header", ei, [p("h1", ti, k(e.heading), 1), p("button", {
|
|
1781
|
-
type: "button",
|
|
1782
|
-
class: "mwnf-standalone-window__close",
|
|
1783
|
-
"aria-label": e.closeLabel || void 0,
|
|
1784
|
-
onClick: t
|
|
1785
|
-
}, "×", 8, ni)]), p("article", ri, [O(n.$slots, "default")])])], 8, Qr));
|
|
1786
|
-
}
|
|
1787
|
-
}, ai = { class: "mwnf-standalone-glossary" }, oi = { class: "mwnf-standalone-glossary__intro" }, si = { class: "mwnf-standalone-glossary__body" }, ci = { class: "mwnf-standalone-glossary__field" }, li = ["aria-expanded", "aria-label"], ui = {
|
|
2187
|
+
}, ca = { class: "mwnf-standalone-glossary" }, la = { class: "mwnf-standalone-glossary__intro" }, ua = { class: "mwnf-standalone-glossary__body" }, da = { class: "mwnf-standalone-glossary__field" }, fa = ["aria-expanded", "aria-label"], pa = {
|
|
1788
2188
|
key: 0,
|
|
1789
2189
|
class: "mwnf-standalone-glossary__suggestions",
|
|
1790
2190
|
role: "listbox"
|
|
1791
|
-
},
|
|
2191
|
+
}, ma = ["aria-selected", "onMousedown"], ha = {
|
|
1792
2192
|
class: "mwnf-standalone-glossary__result",
|
|
1793
2193
|
"aria-live": "polite"
|
|
1794
|
-
},
|
|
2194
|
+
}, ga = { class: "mwnf-standalone-glossary__label" }, _a = ["innerHTML"], va = { class: "mwnf-standalone-glossary__label mwnf-standalone-glossary__label--spellings" }, ya = { class: "mwnf-standalone-glossary__note" }, ba = { class: "mwnf-standalone-glossary__spellings" }, xa = {
|
|
1795
2195
|
__name: "GlossarySpelling",
|
|
1796
2196
|
props: {
|
|
1797
2197
|
language: {
|
|
@@ -1812,9 +2212,9 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1812
2212
|
}
|
|
1813
2213
|
},
|
|
1814
2214
|
setup(e) {
|
|
1815
|
-
let t = e, n =
|
|
2215
|
+
let t = e, n = ae(), r = ee(t.entity), i = l(() => n.availableLanguages(t.entity).slice().sort());
|
|
1816
2216
|
C(async () => {
|
|
1817
|
-
await
|
|
2217
|
+
await te([t.entity]), await Promise.all(i.value.map((e) => n.loadTranslations(t.entity, e)));
|
|
1818
2218
|
});
|
|
1819
2219
|
let a = E(""), o = E(null), s = E(-1), m = (e, r) => n.translations(t.entity, r)[e.id] ?? {}, h = l(() => {
|
|
1820
2220
|
let e = H(a.value.trim());
|
|
@@ -1828,7 +2228,7 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1828
2228
|
spelling: e,
|
|
1829
2229
|
term: t
|
|
1830
2230
|
})).sort((e, t) => H(e.spelling) < H(t.spelling) ? -1 : +(H(e.spelling) > H(t.spelling)));
|
|
1831
|
-
}), g = l(() => o.value ?
|
|
2231
|
+
}), g = l(() => o.value ? U(m(o.value, t.language).definition ?? "") : ""), _ = l(() => {
|
|
1832
2232
|
if (!o.value) return [];
|
|
1833
2233
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
1834
2234
|
for (let n of i.value) for (let r of m(o.value, n).spellings ?? []) {
|
|
@@ -1847,12 +2247,12 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1847
2247
|
let t = h.value;
|
|
1848
2248
|
t.length && (e.key === "ArrowDown" ? (e.preventDefault(), s.value = (s.value + 1) % t.length) : e.key === "ArrowUp" ? (e.preventDefault(), s.value = (s.value - 1 + t.length) % t.length) : e.key === "Enter" && s.value >= 0 && (e.preventDefault(), v(t[s.value])));
|
|
1849
2249
|
}
|
|
1850
|
-
return (t, n) => (w(), u(
|
|
2250
|
+
return (t, n) => (w(), u($, {
|
|
1851
2251
|
heading: e.labels.heading,
|
|
1852
2252
|
"close-label": e.labels.close,
|
|
1853
2253
|
dir: e.dir
|
|
1854
2254
|
}, {
|
|
1855
|
-
default: R(() => [p("div",
|
|
2255
|
+
default: R(() => [p("div", ca, [p("h2", la, k(e.labels.intro), 1), p("div", ua, [p("div", da, [z(p("input", {
|
|
1856
2256
|
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
1857
2257
|
type: "text",
|
|
1858
2258
|
class: "mwnf-standalone-glossary__input",
|
|
@@ -1862,19 +2262,19 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1862
2262
|
"aria-label": e.labels.heading,
|
|
1863
2263
|
onInput: y,
|
|
1864
2264
|
onKeydown: x
|
|
1865
|
-
}, null, 40,
|
|
2265
|
+
}, null, 40, fa), [[F, a.value]]), h.value.length ? (w(), f("ul", pa, [(w(!0), f(c, null, D(h.value, (e, t) => (w(), f("li", {
|
|
1866
2266
|
key: e.spelling,
|
|
1867
2267
|
role: "option",
|
|
1868
2268
|
"aria-selected": t === s.value,
|
|
1869
2269
|
class: b(["mwnf-standalone-glossary__suggestion", { "mwnf-standalone-glossary__suggestion--active": t === s.value }]),
|
|
1870
2270
|
onMousedown: B((t) => v(e), ["prevent"])
|
|
1871
|
-
}, k(e.spelling), 43,
|
|
2271
|
+
}, k(e.spelling), 43, ma))), 128))])) : d("", !0)]), p("div", ha, [o.value ? (w(), f(c, { key: 0 }, [g.value ? (w(), f(c, { key: 0 }, [p("h3", ga, k(e.labels.definition), 1), p("div", {
|
|
1872
2272
|
class: "mwnf-standalone-glossary__definition",
|
|
1873
2273
|
innerHTML: g.value
|
|
1874
|
-
}, null, 8,
|
|
1875
|
-
p("h3",
|
|
1876
|
-
p("p",
|
|
1877
|
-
p("ul",
|
|
2274
|
+
}, null, 8, _a)], 64)) : d("", !0), _.value.length ? (w(), f(c, { key: 1 }, [
|
|
2275
|
+
p("h3", va, k(e.labels.spellings), 1),
|
|
2276
|
+
p("p", ya, k(e.labels.spellingsNote), 1),
|
|
2277
|
+
p("ul", ba, [(w(!0), f(c, null, D(_.value, (e) => (w(), f("li", { key: e }, k(e), 1))), 128))])
|
|
1878
2278
|
], 64)) : d("", !0)], 64)) : d("", !0)])])])]),
|
|
1879
2279
|
_: 1
|
|
1880
2280
|
}, 8, [
|
|
@@ -1885,4 +2285,4 @@ var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-re
|
|
|
1885
2285
|
}
|
|
1886
2286
|
};
|
|
1887
2287
|
//#endregion
|
|
1888
|
-
export {
|
|
2288
|
+
export { vt as RelatedContent, le as StandaloneBanner, Hr as StandaloneDatabaseForm, xa as StandaloneGlossarySpelling, ta as StandaloneHistoricalCrossRef, et as StandaloneHome, St as StandaloneItemSheet, li as StandalonePagination, tr as StandalonePartnerList, Zt as StandalonePartnerPage, Gn as StandaloneRefine, vn as StandaloneResultsGrid, zn as StandaloneResultsList, Fe as StandaloneShell, sa as StandaloneSlider, mr as StandaloneSponsorList, De as StandaloneSponsors, an as StandaloneSubNav, tn as StandaloneTextPage, Xe as StandaloneTileGrid, ii as StandaloneTimelineEntrance, ji as StandaloneTimelineResults, $ as StandaloneWindow, Ue as TodayHighlight, ue as byLanguage, de as dayOfYear, fe as legacyHomeItemKey, X as pickForDay };
|