@museumwnf/viewer-layout 3.80.1 → 3.81.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/LegacyItemSheet-BTVBU3dr.js +665 -0
- package/dist/RecordView-DAvWufWV.js +384 -0
- package/dist/{SiteShell-CzKgoOBm.js → SiteShell-D0u1FGMu.js} +47 -47
- package/dist/Theme-BUfsZDdm.js +408 -0
- package/dist/components.js +1 -1
- package/dist/{content-hV5uyd-b.js → content-B1458eb-.js} +6 -6
- package/dist/content.js +1 -1
- package/dist/{data-D9H1tB75.js → data-CD0QmDAc.js} +13 -13
- package/dist/{data-DlmKSxgh.js → data-CxiuR3R_.js} +16 -17
- package/dist/dxa.js +1075 -1075
- package/dist/index.js +1 -1
- package/dist/minisite.js +1159 -1159
- package/dist/standalone.js +967 -967
- package/dist/{themeSpecs-BJ82RvA1.js → themeSpecs-C0tSNkSd.js} +1 -1
- package/dist/views.js +298 -298
- package/package.json +9 -4
- package/dist/LegacyItemSheet-CNooycyz.js +0 -662
- package/dist/RecordView-CBC7tBCX.js +0 -384
- package/dist/Theme-BCn6_VkI.js +0 -408
package/dist/standalone.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, guardReactiveProps as l, mergeModels as u, nextTick as d, normalizeClass as f, normalizeProps as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, reactive as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, unref as C, useId as w, useModel as T, useSlots as E, vModelSelect as D, vModelText as O, vShow as k, watch as A, withCtx as j, withDirectives as M, withModifiers as N } from "vue";
|
|
2
|
+
import { useRoute as P } from "vue-router";
|
|
3
|
+
import { byId as F, collate as I, entityRef as ee, loadEntities as L, md as R, pictureCredits as te, picturesInLanguage as ne, removeEndingPoint as z, renderBlock as re, renderInline as B, renderPlain as V, useDataPackage as H, useI18n as U, useSection as ie, useSiteConfig as W } from "@museumwnf/viewer-core";
|
|
4
|
+
import { t as ae } from "./SiteShell-D0u1FGMu.js";
|
|
5
|
+
import { r as G } from "./chrome-Bv_mLlHM.js";
|
|
6
|
+
import { c as K, d as q, n as oe, t as se } from "./PartnerMap-DdyMLtgH.js";
|
|
7
|
+
import { n as ce, t as le } from "./RecordView-DAvWufWV.js";
|
|
8
8
|
// src/standalone/Banner.vue
|
|
9
|
-
var
|
|
9
|
+
var ue = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "mwnf-standalone-banner__title"
|
|
12
|
-
},
|
|
12
|
+
}, de = {
|
|
13
13
|
__name: "Banner",
|
|
14
14
|
props: {
|
|
15
15
|
image: {
|
|
@@ -22,28 +22,28 @@ var le = {
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
setup(e) {
|
|
25
|
-
return (t, n) => (
|
|
25
|
+
return (t, n) => (_(), i("div", {
|
|
26
26
|
class: "mwnf-standalone-banner",
|
|
27
|
-
style:
|
|
28
|
-
}, [e.title ? (
|
|
27
|
+
style: m(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
|
|
28
|
+
}, [e.title ? (_(), i("h1", ue, [a("span", null, S(e.title), 1)])) : r("", !0)], 4));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
// src/standalone/chrome.js
|
|
32
|
-
function
|
|
33
|
-
let e =
|
|
34
|
-
return (
|
|
32
|
+
function J() {
|
|
33
|
+
let e = W();
|
|
34
|
+
return (t) => G(e.chrome, t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function fe(e, t) {
|
|
37
37
|
return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function pe(e = /* @__PURE__ */ new Date()) {
|
|
40
40
|
let t = new Date(e.getFullYear(), 0, 1);
|
|
41
41
|
return Math.round((new Date(e.getFullYear(), e.getMonth(), e.getDate()) - t) / 864e5);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
return e?.length ? e[
|
|
43
|
+
function Y(e, t = /* @__PURE__ */ new Date()) {
|
|
44
|
+
return e?.length ? e[pe(t) % e.length] : null;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function me(e) {
|
|
47
47
|
let [t, ...n] = String(e ?? "").split("*")[0].trim().split(";");
|
|
48
48
|
return !t || n.length < 5 ? "" : [
|
|
49
49
|
"mwnf3",
|
|
@@ -52,106 +52,106 @@ function pe(e) {
|
|
|
52
52
|
].join(":");
|
|
53
53
|
}
|
|
54
54
|
// src/standalone/Sponsors.vue
|
|
55
|
-
var
|
|
55
|
+
var he = { class: "mwnf-standalone-sponsors" }, ge = {
|
|
56
56
|
key: 0,
|
|
57
57
|
class: "mwnf-standalone-sponsors__text"
|
|
58
|
-
},
|
|
58
|
+
}, _e = ["innerHTML"], ve = { key: 1 }, ye = ["innerHTML"], be = {
|
|
59
59
|
key: 1,
|
|
60
60
|
class: "mwnf-standalone-sponsors__title"
|
|
61
|
-
},
|
|
61
|
+
}, xe = {
|
|
62
62
|
key: 2,
|
|
63
63
|
class: "mwnf-standalone-sponsors__logos"
|
|
64
|
-
},
|
|
64
|
+
}, Se = {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "mwnf-standalone-sponsors__note"
|
|
67
|
-
},
|
|
67
|
+
}, Ce = ["src", "alt"], we = ["innerHTML"], Te = ["href"], Ee = ["src", "alt"], De = ["src", "alt"], Oe = {
|
|
68
68
|
key: 3,
|
|
69
69
|
class: "mwnf-standalone-sponsors__links"
|
|
70
|
-
},
|
|
70
|
+
}, ke = {
|
|
71
71
|
__name: "Sponsors",
|
|
72
72
|
props: { columns: {
|
|
73
73
|
type: Array,
|
|
74
74
|
default: () => []
|
|
75
75
|
} },
|
|
76
|
-
setup(
|
|
77
|
-
let
|
|
76
|
+
setup(n) {
|
|
77
|
+
let o = n, { t: l } = U(), u = J(), d = t(() => o.columns.map((e, t) => ({
|
|
78
78
|
key: t,
|
|
79
79
|
width: e.width ?? null,
|
|
80
|
-
lead: e.lead ?
|
|
81
|
-
text: e.text ?
|
|
80
|
+
lead: e.lead ? B(l(e.lead)) : "",
|
|
81
|
+
text: e.text ? B(l(e.text)) : "",
|
|
82
82
|
break: !!e.break,
|
|
83
|
-
title: e.title ?
|
|
83
|
+
title: e.title ? l(e.title) : "",
|
|
84
84
|
logos: (e.logos ?? []).map((e) => ({
|
|
85
|
-
src:
|
|
86
|
-
alt: e.alt ?
|
|
85
|
+
src: u(e.src) ?? "",
|
|
86
|
+
alt: e.alt ? l(e.alt) : "",
|
|
87
87
|
href: e.href ?? "",
|
|
88
|
-
note: e.note ?
|
|
88
|
+
note: e.note ? re(l(e.note)) : ""
|
|
89
89
|
})),
|
|
90
90
|
links: (e.links ?? []).map((e) => ({
|
|
91
91
|
...e,
|
|
92
|
-
label:
|
|
92
|
+
label: l(e.label)
|
|
93
93
|
}))
|
|
94
94
|
})));
|
|
95
|
-
return (
|
|
96
|
-
key:
|
|
95
|
+
return (t, n) => (_(), i("div", he, [(_(!0), i(e, null, b(d.value, (t) => (_(), i("div", {
|
|
96
|
+
key: t.key,
|
|
97
97
|
class: "mwnf-standalone-sponsors__column",
|
|
98
|
-
style:
|
|
98
|
+
style: m(t.width ? { flexGrow: t.width } : void 0)
|
|
99
99
|
}, [
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
t.lead || t.text ? (_(), i("p", ge, [
|
|
101
|
+
t.lead ? (_(), i("i", {
|
|
102
102
|
key: 0,
|
|
103
|
-
innerHTML:
|
|
104
|
-
}, null, 8,
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
innerHTML: t.lead
|
|
104
|
+
}, null, 8, _e)) : r("", !0),
|
|
105
|
+
t.lead && t.break ? (_(), i("br", ve)) : t.lead && t.text ? (_(), i(e, { key: 2 }, [s(S(" "))], 64)) : r("", !0),
|
|
106
|
+
t.text ? (_(), i("span", {
|
|
107
107
|
key: 3,
|
|
108
|
-
innerHTML:
|
|
109
|
-
}, null, 8,
|
|
110
|
-
])) :
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
innerHTML: t.text
|
|
109
|
+
}, null, 8, ye)) : r("", !0)
|
|
110
|
+
])) : r("", !0),
|
|
111
|
+
t.title ? (_(), i("p", be, S(t.title), 1)) : r("", !0),
|
|
112
|
+
t.logos.length ? (_(), i("ul", xe, [(_(!0), i(e, null, b(t.logos, (e) => (_(), i("li", { key: e.src }, [e.note ? (_(), i("details", Se, [a("summary", null, [a("img", {
|
|
113
113
|
src: e.src,
|
|
114
114
|
alt: e.alt
|
|
115
|
-
}, null, 8,
|
|
115
|
+
}, null, 8, Ce)]), a("div", {
|
|
116
116
|
class: "mwnf-standalone-sponsors__note-body",
|
|
117
117
|
innerHTML: e.note
|
|
118
|
-
}, null, 8,
|
|
118
|
+
}, null, 8, we)])) : e.href ? (_(), i("a", {
|
|
119
119
|
key: 1,
|
|
120
120
|
href: e.href,
|
|
121
121
|
target: "_blank",
|
|
122
122
|
rel: "noopener"
|
|
123
|
-
}, [
|
|
123
|
+
}, [a("img", {
|
|
124
124
|
src: e.src,
|
|
125
125
|
alt: e.alt
|
|
126
|
-
}, null, 8,
|
|
126
|
+
}, null, 8, Ee)], 8, Te)) : (_(), i("img", {
|
|
127
127
|
key: 2,
|
|
128
128
|
src: e.src,
|
|
129
129
|
alt: e.alt
|
|
130
|
-
}, null, 8,
|
|
131
|
-
|
|
130
|
+
}, null, 8, De))]))), 128))])) : r("", !0),
|
|
131
|
+
t.links.length ? (_(), i("ul", Oe, [(_(!0), i(e, null, b(t.links, (e) => (_(), i("li", { key: e.label }, [c(q, {
|
|
132
132
|
to: e.to,
|
|
133
133
|
href: e.href,
|
|
134
134
|
external: !!e.external
|
|
135
135
|
}, {
|
|
136
|
-
default:
|
|
136
|
+
default: j(() => [s(S(e.label), 1)]),
|
|
137
137
|
_: 2
|
|
138
138
|
}, 1032, [
|
|
139
139
|
"to",
|
|
140
140
|
"href",
|
|
141
141
|
"external"
|
|
142
|
-
])]))), 128))])) :
|
|
142
|
+
])]))), 128))])) : r("", !0)
|
|
143
143
|
], 4))), 128))]));
|
|
144
144
|
}
|
|
145
|
-
},
|
|
145
|
+
}, Ae = {
|
|
146
146
|
key: 0,
|
|
147
147
|
class: "mwnf-standalone mwnf-standalone--bare"
|
|
148
|
-
},
|
|
148
|
+
}, je = { class: "mwnf-banner mwnf-standalone-home-banner" }, Me = ["src"], Ne = { class: "mwnf-standalone-home-banner__text" }, Pe = {
|
|
149
149
|
key: 0,
|
|
150
150
|
class: "mwnf-standalone-home-banner__title"
|
|
151
|
-
},
|
|
151
|
+
}, Fe = {
|
|
152
152
|
key: 1,
|
|
153
153
|
class: "mwnf-standalone-home-banner__line"
|
|
154
|
-
},
|
|
154
|
+
}, Ie = ["src"], Le = {
|
|
155
155
|
__name: "Shell",
|
|
156
156
|
props: {
|
|
157
157
|
language: {
|
|
@@ -164,102 +164,102 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
emits: ["update:language"],
|
|
167
|
-
setup(
|
|
168
|
-
let
|
|
169
|
-
let e = y.value.logo ?? {}, t =
|
|
167
|
+
setup(e, { emit: s }) {
|
|
168
|
+
let l = e, u = s, { t: d, locale: p } = U(), m = P(), h = t(() => !!m.meta?.bare), g = W(), v = ie(), y = t(() => g.standalone ?? {}), b = t(() => g.navigation ?? {}), w = t(() => v.value === "home"), T = t(() => y.value.areas?.[v.value] ?? null), E = (e) => G(g.chrome, fe(e, p.value)), D = t(() => {
|
|
169
|
+
let e = y.value.logo ?? {}, t = E(T.value?.logo ?? e.src);
|
|
170
170
|
return t ? {
|
|
171
171
|
logo: t,
|
|
172
172
|
alt: e.alt ?? ""
|
|
173
173
|
} : null;
|
|
174
|
-
}),
|
|
174
|
+
}), O = t(() => E(y.value.logo?.print)), k = t(() => (y.value.headerLinks ?? []).filter((e) => !e.on || e.on === "all" || e.on === (w.value ? "home" : "inner"))), A = t(() => {
|
|
175
175
|
let e = {
|
|
176
176
|
...y.value.banner ?? {},
|
|
177
|
-
...
|
|
177
|
+
...T.value?.banner ?? {}
|
|
178
178
|
};
|
|
179
|
-
return w
|
|
180
|
-
}),
|
|
181
|
-
let e =
|
|
182
|
-
return e ?
|
|
183
|
-
}),
|
|
179
|
+
return E(w.value ? e.home : e.inner) ?? "";
|
|
180
|
+
}), M = t(() => {
|
|
181
|
+
let e = m.meta?.bannerTitle ?? b.value.sectionTitles?.[v.value];
|
|
182
|
+
return e ? d(e) : "";
|
|
183
|
+
}), N = t(() => !w.value && !!(A.value || M.value)), F = t(() => {
|
|
184
184
|
let { homeTitle: e, homeText: t } = y.value.banner ?? {};
|
|
185
|
-
return
|
|
186
|
-
title: e ?
|
|
187
|
-
text: t ?
|
|
185
|
+
return w.value && (e || t) ? {
|
|
186
|
+
title: e ? d(e) : "",
|
|
187
|
+
text: t ? d(t) : ""
|
|
188
188
|
} : null;
|
|
189
|
-
}), I =
|
|
189
|
+
}), I = t(() => {
|
|
190
190
|
let e = y.value.sponsors;
|
|
191
|
-
return e?.columns?.length && (e.on === "all" ||
|
|
192
|
-
}),
|
|
191
|
+
return e?.columns?.length && (e.on === "all" || w.value) ? e : null;
|
|
192
|
+
}), ee = t(() => ({
|
|
193
193
|
navigation: {
|
|
194
|
-
...
|
|
195
|
-
headerLinks:
|
|
194
|
+
...b.value,
|
|
195
|
+
headerLinks: k.value,
|
|
196
196
|
sectionTitles: {},
|
|
197
197
|
...y.value.languages === !1 ? { languages: [] } : {}
|
|
198
198
|
},
|
|
199
199
|
banner: null,
|
|
200
|
-
...
|
|
201
|
-
})),
|
|
200
|
+
...D.value ? { brand: D.value } : {}
|
|
201
|
+
})), L = (/* @__PURE__ */ new Date()).getFullYear(), R = t(() => y.value.copyright ? `${d(y.value.copyright)} ${L}` : ""), te = t(() => [
|
|
202
202
|
"mwnf-standalone",
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
w.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
|
|
204
|
+
T.value?.class ?? ""
|
|
205
205
|
]);
|
|
206
|
-
return (
|
|
206
|
+
return (e, t) => h.value ? (_(), i("div", Ae, [x(e.$slots, "default")])) : (_(), n(ae, {
|
|
207
207
|
key: 1,
|
|
208
|
-
class:
|
|
209
|
-
config:
|
|
210
|
-
languages: y.value.languages === !1 ? [] :
|
|
211
|
-
language:
|
|
208
|
+
class: f(te.value),
|
|
209
|
+
config: ee.value,
|
|
210
|
+
languages: y.value.languages === !1 ? [] : l.languages,
|
|
211
|
+
language: l.language,
|
|
212
212
|
"language-placement": "header",
|
|
213
213
|
"language-style": "select",
|
|
214
214
|
"header-home": y.value.logo?.href ?? "",
|
|
215
|
-
"header-title":
|
|
216
|
-
"header-subtitle":
|
|
215
|
+
"header-title": w.value ? "" : y.value.heading ? C(d)(y.value.heading) : "",
|
|
216
|
+
"header-subtitle": w.value ? "" : y.value.subheading ? C(d)(y.value.subheading) : "",
|
|
217
217
|
"header-title-href": "#/",
|
|
218
|
-
"banner-image":
|
|
219
|
-
"footer-text":
|
|
220
|
-
"onUpdate:language":
|
|
221
|
-
},
|
|
222
|
-
default:
|
|
218
|
+
"banner-image": w.value && !F.value ? A.value : "",
|
|
219
|
+
"footer-text": R.value || void 0,
|
|
220
|
+
"onUpdate:language": t[0] ||= (e) => u("update:language", e)
|
|
221
|
+
}, o({
|
|
222
|
+
default: j(() => [x(e.$slots, "default")]),
|
|
223
223
|
_: 2
|
|
224
224
|
}, [
|
|
225
|
-
|
|
225
|
+
N.value ? {
|
|
226
226
|
name: "banner",
|
|
227
|
-
fn:
|
|
228
|
-
image:
|
|
229
|
-
title:
|
|
227
|
+
fn: j(() => [c(de, {
|
|
228
|
+
image: A.value,
|
|
229
|
+
title: M.value
|
|
230
230
|
}, null, 8, ["image", "title"])]),
|
|
231
231
|
key: "0"
|
|
232
232
|
} : F.value ? {
|
|
233
233
|
name: "banner",
|
|
234
|
-
fn:
|
|
234
|
+
fn: j(() => [a("section", je, [A.value ? (_(), i("img", {
|
|
235
235
|
key: 0,
|
|
236
236
|
class: "mwnf-banner__image",
|
|
237
|
-
src:
|
|
237
|
+
src: A.value,
|
|
238
238
|
alt: ""
|
|
239
|
-
}, null, 8,
|
|
239
|
+
}, null, 8, Me)) : r("", !0), a("div", Ne, [F.value.title ? (_(), i("h2", Pe, [a("i", null, S(F.value.title), 1)])) : r("", !0), F.value.text ? (_(), i("p", Fe, [a("span", null, S(F.value.text), 1)])) : r("", !0)])])]),
|
|
240
240
|
key: "1"
|
|
241
241
|
} : void 0,
|
|
242
|
-
|
|
242
|
+
O.value ? {
|
|
243
243
|
name: "notice",
|
|
244
|
-
fn:
|
|
244
|
+
fn: j(() => [a("img", {
|
|
245
245
|
class: "mwnf-standalone__print-logo",
|
|
246
|
-
src:
|
|
246
|
+
src: O.value,
|
|
247
247
|
alt: ""
|
|
248
|
-
}, null, 8,
|
|
248
|
+
}, null, 8, Ie)]),
|
|
249
249
|
key: "2"
|
|
250
250
|
} : void 0,
|
|
251
|
-
|
|
251
|
+
e.$slots.sponsors ? {
|
|
252
252
|
name: "sponsors",
|
|
253
|
-
fn:
|
|
253
|
+
fn: j(() => [x(e.$slots, "sponsors")]),
|
|
254
254
|
key: "3"
|
|
255
255
|
} : I.value ? {
|
|
256
256
|
name: "sponsors",
|
|
257
|
-
fn:
|
|
257
|
+
fn: j(() => [c(ke, { columns: I.value.columns }, null, 8, ["columns"])]),
|
|
258
258
|
key: "4"
|
|
259
259
|
} : void 0,
|
|
260
|
-
|
|
260
|
+
e.$slots.footer ? {
|
|
261
261
|
name: "footer",
|
|
262
|
-
fn:
|
|
262
|
+
fn: j(() => [x(e.$slots, "footer")]),
|
|
263
263
|
key: "5"
|
|
264
264
|
} : void 0
|
|
265
265
|
]), 1032, [
|
|
@@ -274,19 +274,19 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
274
274
|
"footer-text"
|
|
275
275
|
]));
|
|
276
276
|
}
|
|
277
|
-
},
|
|
277
|
+
}, Re = {
|
|
278
278
|
key: 0,
|
|
279
279
|
class: "mwnf-standalone-highlight"
|
|
280
|
-
},
|
|
280
|
+
}, ze = ["src", "alt"], Be = {
|
|
281
281
|
key: 1,
|
|
282
282
|
class: "mwnf-standalone-highlight__heading"
|
|
283
|
-
},
|
|
283
|
+
}, Ve = { class: "mwnf-standalone-highlight__lines" }, He = ["innerHTML"], Ue = {
|
|
284
284
|
key: 2,
|
|
285
285
|
class: "mwnf-standalone-highlight__place"
|
|
286
|
-
},
|
|
286
|
+
}, We = {
|
|
287
287
|
key: 3,
|
|
288
288
|
class: "mwnf-standalone-highlight__action"
|
|
289
|
-
},
|
|
289
|
+
}, Ge = {
|
|
290
290
|
__name: "TodayHighlight",
|
|
291
291
|
props: {
|
|
292
292
|
record: {
|
|
@@ -326,52 +326,52 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
326
326
|
default: ""
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
|
-
setup(
|
|
330
|
-
let
|
|
331
|
-
let e =
|
|
332
|
-
|
|
333
|
-
let
|
|
334
|
-
|
|
335
|
-
let
|
|
336
|
-
|
|
337
|
-
for (let
|
|
338
|
-
let
|
|
339
|
-
|
|
329
|
+
setup(o) {
|
|
330
|
+
let l = o, { t: u } = U(), d = (e) => z(Array.isArray(e) ? e.join("; ") : e), f = t(() => {
|
|
331
|
+
let e = l.text ?? {}, t = [], n = d(e.name ?? l.record?.internal_name ?? "");
|
|
332
|
+
n && t.push(B(n));
|
|
333
|
+
let r = d(e.alternate_name);
|
|
334
|
+
r && t.push(`${l.alsoKnownAs ? `${u(l.alsoKnownAs)} ` : ""}${B(r)}`);
|
|
335
|
+
let i = [d(e.dates), d(e.dynasty)].filter(Boolean).join(", ");
|
|
336
|
+
i && t.push(B(i));
|
|
337
|
+
for (let n of ["materials", "holder"]) {
|
|
338
|
+
let r = d(e[n]);
|
|
339
|
+
r && t.push(B(r));
|
|
340
340
|
}
|
|
341
|
-
return
|
|
342
|
-
}),
|
|
343
|
-
return (t,
|
|
344
|
-
|
|
341
|
+
return t;
|
|
342
|
+
}), p = t(() => l.place ?? [d(l.text?.location), l.country].filter(Boolean).join(", ")), m = t(() => l.picture || (l.record?.images?.[0]?.url ?? "")), h = t(() => V(String(l.text?.name ?? l.record?.internal_name ?? "")));
|
|
343
|
+
return (t, l) => o.record ? (_(), i("div", Re, [
|
|
344
|
+
m.value ? (_(), n(q, {
|
|
345
345
|
key: 0,
|
|
346
346
|
class: "mwnf-standalone-highlight__media",
|
|
347
|
-
to:
|
|
347
|
+
to: o.to
|
|
348
348
|
}, {
|
|
349
|
-
default:
|
|
349
|
+
default: j(() => [a("img", {
|
|
350
350
|
class: "mwnf-standalone-highlight__image",
|
|
351
|
-
src:
|
|
352
|
-
alt:
|
|
353
|
-
}, null, 8,
|
|
351
|
+
src: m.value,
|
|
352
|
+
alt: h.value
|
|
353
|
+
}, null, 8, ze)]),
|
|
354
354
|
_: 1
|
|
355
|
-
}, 8, ["to"])) :
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
default:
|
|
355
|
+
}, 8, ["to"])) : r("", !0),
|
|
356
|
+
o.heading ? (_(), i("p", Be, [a("strong", null, S(C(u)(o.heading)), 1)])) : r("", !0),
|
|
357
|
+
a("p", Ve, [(_(!0), i(e, null, b(f.value, (t, n) => (_(), i(e, { key: n }, [a("span", { innerHTML: t }, null, 8, He), l[0] ||= a("br", null, null, -1)], 64))), 128))]),
|
|
358
|
+
p.value ? (_(), i("p", Ue, S(C(V)(p.value)), 1)) : r("", !0),
|
|
359
|
+
o.action ? (_(), i("p", We, [c(q, { to: o.to }, {
|
|
360
|
+
default: j(() => [s(S(C(u)(o.action)), 1)]),
|
|
361
361
|
_: 1
|
|
362
|
-
}, 8, ["to"])])) :
|
|
363
|
-
])) :
|
|
362
|
+
}, 8, ["to"])])) : r("", !0)
|
|
363
|
+
])) : r("", !0);
|
|
364
364
|
}
|
|
365
|
-
},
|
|
365
|
+
}, Ke = {
|
|
366
366
|
key: 0,
|
|
367
367
|
class: "mwnf-standalone-tiles"
|
|
368
|
-
},
|
|
368
|
+
}, qe = {
|
|
369
369
|
key: 0,
|
|
370
370
|
class: "mwnf-standalone-tiles__caption"
|
|
371
|
-
},
|
|
371
|
+
}, Je = { class: "mwnf-standalone-tiles__caption-text" }, Ye = { class: "mwnf-standalone-tiles__grid" }, Xe = ["src", "alt"], Ze = {
|
|
372
372
|
key: 0,
|
|
373
373
|
class: "mwnf-standalone-tiles__label"
|
|
374
|
-
},
|
|
374
|
+
}, Qe = {
|
|
375
375
|
__name: "TileGrid",
|
|
376
376
|
props: {
|
|
377
377
|
caption: {
|
|
@@ -383,96 +383,96 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
383
383
|
default: () => []
|
|
384
384
|
}
|
|
385
385
|
},
|
|
386
|
-
setup(
|
|
387
|
-
let
|
|
386
|
+
setup(n) {
|
|
387
|
+
let o = n, { t: s } = U(), l = J(), u = t(() => o.items.map((e) => ({
|
|
388
388
|
...e,
|
|
389
|
-
image:
|
|
390
|
-
label: e.text ?
|
|
389
|
+
image: l(e.image) ?? "",
|
|
390
|
+
label: e.text ? V(e.text) : e.label ? s(e.label) : ""
|
|
391
391
|
})));
|
|
392
|
-
return (t,
|
|
392
|
+
return (t, o) => u.value.length ? (_(), i("section", Ke, [n.caption ? (_(), i("p", qe, [a("span", Je, S(C(s)(n.caption)), 1)])) : r("", !0), a("ul", Ye, [(_(!0), i(e, null, b(u.value, (e) => (_(), i("li", {
|
|
393
393
|
key: e.image,
|
|
394
394
|
class: "mwnf-standalone-tiles__tile"
|
|
395
|
-
}, [
|
|
395
|
+
}, [c(q, {
|
|
396
396
|
to: e.to,
|
|
397
397
|
href: e.href,
|
|
398
398
|
class: "mwnf-standalone-tiles__link"
|
|
399
399
|
}, {
|
|
400
|
-
default:
|
|
400
|
+
default: j(() => [a("img", {
|
|
401
401
|
class: "mwnf-standalone-tiles__image",
|
|
402
402
|
src: e.image,
|
|
403
403
|
alt: e.label
|
|
404
|
-
}, null, 8,
|
|
404
|
+
}, null, 8, Xe), e.label ? (_(), i("span", Ze, S(e.label), 1)) : r("", !0)]),
|
|
405
405
|
_: 2
|
|
406
|
-
}, 1032, ["to", "href"])]))), 128))])])) :
|
|
406
|
+
}, 1032, ["to", "href"])]))), 128))])])) : r("", !0);
|
|
407
407
|
}
|
|
408
|
-
},
|
|
408
|
+
}, $e = { class: "mwnf-standalone-home" }, et = {
|
|
409
409
|
key: 0,
|
|
410
410
|
class: "mwnf-standalone-home__links"
|
|
411
|
-
},
|
|
411
|
+
}, tt = { key: 1 }, nt = {
|
|
412
412
|
__name: "Home",
|
|
413
413
|
props: { home: {
|
|
414
414
|
type: Object,
|
|
415
415
|
default: null
|
|
416
416
|
} },
|
|
417
|
-
setup(
|
|
418
|
-
let
|
|
417
|
+
setup(a) {
|
|
418
|
+
let o = a, { t: l, locale: u } = U(), d = W(), p = t(() => o.home ?? d.standalone?.home ?? {}), m = t(() => (p.value.links ?? []).map((e) => ({
|
|
419
419
|
...e,
|
|
420
|
-
label:
|
|
421
|
-
prefix: e.prefix ?
|
|
422
|
-
title: e.title ?
|
|
423
|
-
}))),
|
|
424
|
-
|
|
425
|
-
|
|
420
|
+
label: l(e.label),
|
|
421
|
+
prefix: e.prefix ? l(e.prefix) : "",
|
|
422
|
+
title: e.title ? l(e.title) : void 0
|
|
423
|
+
}))), h = t(() => p.value.highlight ?? null), g = H();
|
|
424
|
+
h.value?.list?.length && (L(["items", "countries"]), A(u, (e) => {
|
|
425
|
+
g.loadTranslations("items", e), g.loadTranslations("countries", e);
|
|
426
426
|
}, { immediate: !0 }));
|
|
427
|
-
let
|
|
428
|
-
let e =
|
|
427
|
+
let v = F("items", "backward_compatibility"), y = t(() => {
|
|
428
|
+
let e = h.value?.list ?? [], t = e.indexOf(Y(e));
|
|
429
429
|
for (let n = 0; t >= 0 && n < e.length; n++) {
|
|
430
|
-
let r =
|
|
430
|
+
let r = v.value.get(me(e[(t + n) % e.length]));
|
|
431
431
|
if (r) return r;
|
|
432
432
|
}
|
|
433
433
|
return null;
|
|
434
|
-
}),
|
|
435
|
-
let e =
|
|
436
|
-
return e ?
|
|
437
|
-
}),
|
|
438
|
-
name:
|
|
439
|
-
params: { id:
|
|
440
|
-
} : null),
|
|
441
|
-
let e =
|
|
442
|
-
return e.length ?
|
|
443
|
-
}),
|
|
444
|
-
let e =
|
|
434
|
+
}), C = t(() => y.value ? g.tr("items", y.value.id, u.value, "en") : {}), w = t(() => {
|
|
435
|
+
let e = y.value?.country_id;
|
|
436
|
+
return e ? g.tr("countries", e, u.value, "en").name ?? "" : "";
|
|
437
|
+
}), T = t(() => y.value && h.value?.place ? h.value.place(y.value, C.value, w.value) : null), E = t(() => y.value ? {
|
|
438
|
+
name: h.value.route ?? "item",
|
|
439
|
+
params: { id: y.value.id }
|
|
440
|
+
} : null), D = J(), O = t(() => {
|
|
441
|
+
let e = h.value?.pictures ?? [];
|
|
442
|
+
return e.length ? D(Y(e)) ?? "" : "";
|
|
443
|
+
}), k = t(() => {
|
|
444
|
+
let e = p.value.tiles?.items;
|
|
445
445
|
return (typeof e == "function" ? e() : e) ?? [];
|
|
446
446
|
});
|
|
447
|
-
return (
|
|
448
|
-
|
|
449
|
-
key:
|
|
450
|
-
class:
|
|
451
|
-
}, [
|
|
452
|
-
to:
|
|
453
|
-
href:
|
|
454
|
-
external: !!
|
|
455
|
-
title:
|
|
447
|
+
return (t, a) => (_(), i("div", $e, [
|
|
448
|
+
m.value.length ? (_(), i("ul", et, [(_(!0), i(e, null, b(m.value, (t) => (_(), i("li", {
|
|
449
|
+
key: t.label,
|
|
450
|
+
class: f({ "mwnf-standalone-home__link--gap": t.gap })
|
|
451
|
+
}, [c(q, {
|
|
452
|
+
to: t.to,
|
|
453
|
+
href: t.href,
|
|
454
|
+
external: !!t.external,
|
|
455
|
+
title: t.title
|
|
456
456
|
}, {
|
|
457
|
-
default:
|
|
457
|
+
default: j(() => [t.prefix ? (_(), i(e, { key: 0 }, [s(S(`${t.prefix} `), 1)], 64)) : r("", !0), t.italic ? (_(), i("i", tt, S(t.label), 1)) : (_(), i(e, { key: 2 }, [s(S(t.label), 1)], 64))]),
|
|
458
458
|
_: 2
|
|
459
459
|
}, 1032, [
|
|
460
460
|
"to",
|
|
461
461
|
"href",
|
|
462
462
|
"external",
|
|
463
463
|
"title"
|
|
464
|
-
])], 2))), 128))])) :
|
|
465
|
-
|
|
464
|
+
])], 2))), 128))])) : r("", !0),
|
|
465
|
+
h.value ? (_(), n(Ge, {
|
|
466
466
|
key: 1,
|
|
467
|
-
record:
|
|
468
|
-
text:
|
|
469
|
-
country:
|
|
470
|
-
place:
|
|
471
|
-
to:
|
|
472
|
-
picture:
|
|
473
|
-
heading:
|
|
474
|
-
"also-known-as":
|
|
475
|
-
action:
|
|
467
|
+
record: y.value,
|
|
468
|
+
text: C.value,
|
|
469
|
+
country: w.value,
|
|
470
|
+
place: T.value,
|
|
471
|
+
to: E.value,
|
|
472
|
+
picture: O.value,
|
|
473
|
+
heading: h.value.heading ?? "",
|
|
474
|
+
"also-known-as": h.value.alsoKnownAs ?? "",
|
|
475
|
+
action: h.value.action ?? ""
|
|
476
476
|
}, null, 8, [
|
|
477
477
|
"record",
|
|
478
478
|
"text",
|
|
@@ -483,17 +483,17 @@ var me = { class: "mwnf-standalone-sponsors" }, he = {
|
|
|
483
483
|
"heading",
|
|
484
484
|
"also-known-as",
|
|
485
485
|
"action"
|
|
486
|
-
])) :
|
|
487
|
-
|
|
486
|
+
])) : r("", !0),
|
|
487
|
+
p.value.tiles ? (_(), n(Qe, {
|
|
488
488
|
key: 2,
|
|
489
|
-
caption:
|
|
490
|
-
items:
|
|
491
|
-
}, null, 8, ["caption", "items"])) :
|
|
492
|
-
|
|
489
|
+
caption: p.value.tiles.caption ?? "",
|
|
490
|
+
items: k.value
|
|
491
|
+
}, null, 8, ["caption", "items"])) : r("", !0),
|
|
492
|
+
x(t.$slots, "default")
|
|
493
493
|
]));
|
|
494
494
|
}
|
|
495
|
-
},
|
|
496
|
-
function
|
|
495
|
+
}, rt = "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; }", it = ".mwnf-sheet__label, .mwnf-sheet-section__heading, .mwnf-credits__heading", at = ".mwnf-sheet__value, .mwnf-sheet-section__body, .mwnf-credits__citation, .mwnf-credits__list > dt, .mwnf-credits__number, .mwnf-sheet__short .mwnf-sheet__block", ot = "button, img, svg, picture, video, audio, iframe, script, style, [role=\"tooltip\"], [aria-hidden=\"true\"]";
|
|
496
|
+
function X(e) {
|
|
497
497
|
return String(e ?? "").replace(/[&<>"]/g, (e) => ({
|
|
498
498
|
"&": "&",
|
|
499
499
|
"<": "<",
|
|
@@ -501,7 +501,7 @@ function Z(e) {
|
|
|
501
501
|
"\"": """
|
|
502
502
|
})[e]);
|
|
503
503
|
}
|
|
504
|
-
var
|
|
504
|
+
var st = /* @__PURE__ */ new Set([
|
|
505
505
|
"I",
|
|
506
506
|
"EM",
|
|
507
507
|
"B",
|
|
@@ -509,7 +509,7 @@ var ot = /* @__PURE__ */ new Set([
|
|
|
509
509
|
"U",
|
|
510
510
|
"SUP",
|
|
511
511
|
"SUB"
|
|
512
|
-
]),
|
|
512
|
+
]), ct = /* @__PURE__ */ new Set([
|
|
513
513
|
"P",
|
|
514
514
|
"DIV",
|
|
515
515
|
"LI",
|
|
@@ -517,20 +517,20 @@ var ot = /* @__PURE__ */ new Set([
|
|
|
517
517
|
"OL",
|
|
518
518
|
"SECTION"
|
|
519
519
|
]);
|
|
520
|
-
function
|
|
520
|
+
function Z(e) {
|
|
521
521
|
let t = [[]], n = () => t[t.length - 1], r = () => {
|
|
522
522
|
n().length && t.push([]);
|
|
523
523
|
}, i = (e) => {
|
|
524
524
|
if (e.nodeType === Node.TEXT_NODE) {
|
|
525
|
-
n().push(
|
|
525
|
+
n().push(X(e.textContent));
|
|
526
526
|
return;
|
|
527
527
|
}
|
|
528
|
-
if (e.nodeType !== Node.ELEMENT_NODE || e.matches(
|
|
528
|
+
if (e.nodeType !== Node.ELEMENT_NODE || e.matches(ot)) return;
|
|
529
529
|
if (e.tagName === "BR") {
|
|
530
530
|
n().push("<br/>");
|
|
531
531
|
return;
|
|
532
532
|
}
|
|
533
|
-
let t =
|
|
533
|
+
let t = ct.has(e.tagName), a = st.has(e.tagName) ? e.tagName.toLowerCase() : "";
|
|
534
534
|
t && r(), a && n().push(`<${a}>`);
|
|
535
535
|
for (let t of e.childNodes) i(t);
|
|
536
536
|
a && n().push(`</${a}>`), t && r();
|
|
@@ -538,28 +538,28 @@ function Q(e) {
|
|
|
538
538
|
for (let t of e.childNodes) i(t);
|
|
539
539
|
return t.map((e) => e.join("").replace(/\s+/g, " ").trim()).filter(Boolean).join("<br/>\n<br/>");
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function lt(e, { title: t = "", dir: n = "" } = {}) {
|
|
542
542
|
let r = (t) => {
|
|
543
543
|
for (let n = t; n && n !== e.parentElement; n = n.parentElement) if (n.hidden || getComputedStyle(n).display === "none") return !1;
|
|
544
544
|
return !0;
|
|
545
545
|
}, i = [];
|
|
546
|
-
for (let t of e.querySelectorAll(`${
|
|
546
|
+
for (let t of e.querySelectorAll(`${it}, ${at}`)) {
|
|
547
547
|
if (t.closest(".mwnf-standalone-item__left, .mwnf-standalone-related") || !r(t)) continue;
|
|
548
548
|
if (t.matches(".mwnf-credits__list > dt")) {
|
|
549
549
|
let e = t.nextElementSibling;
|
|
550
|
-
i.push(`<p>${
|
|
550
|
+
i.push(`<p>${X(t.textContent.trim())} ${e ? Z(e) : ""}</p>`);
|
|
551
551
|
continue;
|
|
552
552
|
}
|
|
553
|
-
let e =
|
|
554
|
-
e && i.push(t.matches(
|
|
553
|
+
let e = Z(t);
|
|
554
|
+
e && i.push(t.matches(it) ? `<h3>${e}</h3>` : `<p>${e}</p>`);
|
|
555
555
|
}
|
|
556
556
|
let a = n === "rtl" ? " style=\"direction: rtl;\"" : "";
|
|
557
557
|
return `<html>
|
|
558
|
-
<title>${
|
|
558
|
+
<title>${X(t)}</title>
|
|
559
559
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
560
560
|
<head>
|
|
561
561
|
<style>
|
|
562
|
-
${
|
|
562
|
+
${rt}
|
|
563
563
|
</style>
|
|
564
564
|
</head>
|
|
565
565
|
<body>
|
|
@@ -573,28 +573,28 @@ ${i.join("\n")}
|
|
|
573
573
|
</body>
|
|
574
574
|
</html>`;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function ut(e, t) {
|
|
577
577
|
let n = URL.createObjectURL(new Blob(["", e], { type: "application/msword" })), r = document.createElement("a");
|
|
578
578
|
r.href = n, r.download = t, document.body.appendChild(r), r.click(), r.remove(), setTimeout(() => URL.revokeObjectURL(n), 0);
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function dt({ title: e = "", heading: t = "", heads: n = {}, rows: r = [], empty: i = "", dir: a = "" } = {}) {
|
|
581
581
|
let o = a === "rtl" ? "direction: rtl; text-align: right;" : "text-align: left;", s = (e) => {
|
|
582
582
|
let t = document.createElement("div");
|
|
583
|
-
return t.innerHTML = e ?? "",
|
|
584
|
-
}, c = !!n.theme, l = c ? `<td style="padding:5px;" width="28%"><b>${
|
|
585
|
-
<td style="padding:5px;" width="35%"><b>${
|
|
586
|
-
<td style="padding:5px;" width="37%"><b>${
|
|
587
|
-
<td style="padding:5px;" width="36%"><b>${
|
|
583
|
+
return t.innerHTML = e ?? "", Z(t);
|
|
584
|
+
}, c = !!n.theme, l = c ? `<td style="padding:5px;" width="28%"><b>${X(n.date)}</b></td>
|
|
585
|
+
<td style="padding:5px;" width="35%"><b>${X(n.country)}</b></td>
|
|
586
|
+
<td style="padding:5px;" width="37%"><b>${X(n.theme)}</b></td>` : `<td style="padding:5px;" width="28%"><b>${X(n.date)}</b></td>
|
|
587
|
+
<td style="padding:5px;" width="36%"><b>${X(n.countryDescription)}</b></td>
|
|
588
588
|
<td width="37%"><b></b></td>`, u = c ? (e) => `<tr>
|
|
589
|
-
<td style="padding:5px;">${
|
|
590
|
-
<td style="padding:5px;">${
|
|
591
|
-
<td style="padding:5px;">${
|
|
589
|
+
<td style="padding:5px;">${X(e.date)}</td>
|
|
590
|
+
<td style="padding:5px;">${X(e.country)}</td>
|
|
591
|
+
<td style="padding:5px;">${X(e.theme)}</td>
|
|
592
592
|
</tr>
|
|
593
593
|
<tr>
|
|
594
594
|
<td style="padding:5px; width:558px; vertical-align:top;" colspan="3">${s(e.html)}</td>
|
|
595
595
|
</tr>` : (e) => `<tr>
|
|
596
|
-
<td style="padding:5px; vertical-align:top;"> ${
|
|
597
|
-
<td style="padding:5px;">${
|
|
596
|
+
<td style="padding:5px; vertical-align:top;"> ${X(e.date)}</td>
|
|
597
|
+
<td style="padding:5px;">${X(e.country)}</td>
|
|
598
598
|
<td> </td>
|
|
599
599
|
</tr>
|
|
600
600
|
<tr>
|
|
@@ -608,20 +608,20 @@ ${l}
|
|
|
608
608
|
${r.map(u).join("\n")}
|
|
609
609
|
</table>
|
|
610
610
|
</td></tr>
|
|
611
|
-
<tr><td> </td></tr>` : `<tr><td style="padding-top:100px;padding-left:350px;">${
|
|
611
|
+
<tr><td> </td></tr>` : `<tr><td style="padding-top:100px;padding-left:350px;">${X(i)}</td></tr>`;
|
|
612
612
|
return `<html>
|
|
613
|
-
<title>${
|
|
613
|
+
<title>${X(e)}</title>
|
|
614
614
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
615
615
|
<head>
|
|
616
616
|
<style>
|
|
617
|
-
${
|
|
617
|
+
${rt}
|
|
618
618
|
</style>
|
|
619
619
|
</head>
|
|
620
620
|
<body>
|
|
621
621
|
<div class="content">
|
|
622
622
|
<div class="item_description">
|
|
623
623
|
<table style="${o}" border="0" width="750px">
|
|
624
|
-
<tr><td class="txt" align="left" width="750px"><div style="width: 750px;"> ${
|
|
624
|
+
<tr><td class="txt" align="left" width="750px"><div style="width: 750px;"> ${X(t).replace(/^([^|/]*)/, "<b>$1</b>")}</div></td></tr>
|
|
625
625
|
<tr><td> </td></tr>
|
|
626
626
|
${d}
|
|
627
627
|
</table>
|
|
@@ -631,13 +631,13 @@ ${d}
|
|
|
631
631
|
</html>`;
|
|
632
632
|
}
|
|
633
633
|
// src/standalone/RelatedContent.vue
|
|
634
|
-
var
|
|
634
|
+
var ft = { class: "mwnf-standalone-related" }, pt = { class: "mwnf-standalone-related__heading" }, mt = { class: "mwnf-standalone-related__group-heading" }, ht = { class: "mwnf-standalone-related__thumbs" }, gt = ["src", "alt"], _t = ["innerHTML"], vt = {
|
|
635
635
|
key: 0,
|
|
636
636
|
class: "mwnf-standalone-related__see-also"
|
|
637
|
-
},
|
|
637
|
+
}, yt = { class: "mwnf-standalone-related__see-also-heading" }, bt = ["href"], xt = ["href"], St = {
|
|
638
638
|
key: 1,
|
|
639
639
|
class: "mwnf-standalone-related__download"
|
|
640
|
-
},
|
|
640
|
+
}, Ct = { class: "mwnf-standalone-related__download-heading" }, wt = {
|
|
641
641
|
__name: "RelatedContent",
|
|
642
642
|
props: {
|
|
643
643
|
heading: {
|
|
@@ -665,90 +665,90 @@ var dt = { class: "mwnf-standalone-related" }, ft = { class: "mwnf-standalone-re
|
|
|
665
665
|
default: "sheet.doc"
|
|
666
666
|
}
|
|
667
667
|
},
|
|
668
|
-
setup(
|
|
669
|
-
let
|
|
670
|
-
heading:
|
|
671
|
-
rows:
|
|
668
|
+
setup(n) {
|
|
669
|
+
let o = n, { t: l } = U(), u = t(() => o.groups.map((e) => ({
|
|
670
|
+
heading: l(e.heading),
|
|
671
|
+
rows: o.records.filter((t) => !e.type || t.badge === e.type)
|
|
672
672
|
})).filter((e) => e.rows.length));
|
|
673
|
-
function
|
|
673
|
+
function d() {
|
|
674
674
|
window.print();
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
let
|
|
678
|
-
|
|
679
|
-
title:
|
|
680
|
-
dir: getComputedStyle(
|
|
681
|
-
}),
|
|
676
|
+
function f(e) {
|
|
677
|
+
let t = e.currentTarget.closest(".mwnf-standalone-item");
|
|
678
|
+
t && ut(lt(t.querySelector(".mwnf-record__main") ?? t, {
|
|
679
|
+
title: o.download?.title ? l(o.download.title) : "",
|
|
680
|
+
dir: getComputedStyle(t).direction
|
|
681
|
+
}), o.wordFile);
|
|
682
682
|
}
|
|
683
|
-
return (t,
|
|
684
|
-
|
|
685
|
-
(
|
|
686
|
-
key:
|
|
683
|
+
return (t, o) => (_(), i("aside", ft, [
|
|
684
|
+
a("p", pt, [a("strong", null, S(C(l)(n.heading)), 1)]),
|
|
685
|
+
(_(!0), i(e, null, b(u.value, (t) => (_(), i("div", {
|
|
686
|
+
key: t.heading,
|
|
687
687
|
class: "mwnf-standalone-related__group"
|
|
688
|
-
}, [
|
|
688
|
+
}, [a("p", mt, S(t.heading), 1), a("ul", ht, [(_(!0), i(e, null, b(t.rows, (e) => (_(), i("li", { key: e.id }, [c(q, {
|
|
689
689
|
to: e.to,
|
|
690
690
|
title: e.imageAlt
|
|
691
691
|
}, {
|
|
692
|
-
default:
|
|
692
|
+
default: j(() => [e.image ? (_(), i("img", {
|
|
693
693
|
key: 0,
|
|
694
694
|
src: e.image,
|
|
695
695
|
alt: e.imageAlt
|
|
696
|
-
}, null, 8,
|
|
696
|
+
}, null, 8, gt)) : (_(), i("span", {
|
|
697
697
|
key: 1,
|
|
698
698
|
innerHTML: e.name
|
|
699
|
-
}, null, 8,
|
|
699
|
+
}, null, 8, _t))]),
|
|
700
700
|
_: 2
|
|
701
701
|
}, 1032, ["to", "title"])]))), 128))])]))), 128)),
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
(
|
|
702
|
+
x(t.$slots, "default"),
|
|
703
|
+
n.seeAlso ? (_(), i("div", vt, [
|
|
704
|
+
a("p", yt, [a("strong", null, [o[0] ||= a("br", null, null, -1), s(S(C(l)(n.seeAlso.heading)), 1)])]),
|
|
705
|
+
(_(!0), i(e, null, b(n.seeAlso.links ?? [], (e) => (_(), i("a", {
|
|
706
706
|
key: e.href,
|
|
707
707
|
class: "mwnf-standalone-related__see-also-link",
|
|
708
708
|
href: e.href,
|
|
709
709
|
target: "_blank",
|
|
710
710
|
rel: "noopener"
|
|
711
|
-
},
|
|
712
|
-
(
|
|
713
|
-
key:
|
|
711
|
+
}, S(C(l)(e.label)), 9, bt))), 128)),
|
|
712
|
+
(_(!0), i(e, null, b(n.seeAlso.groups ?? [], (t) => (_(), i("div", {
|
|
713
|
+
key: t.heading,
|
|
714
714
|
class: "mwnf-standalone-related__see-also-group"
|
|
715
|
-
}, [
|
|
716
|
-
])) :
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
715
|
+
}, [a("p", null, S(C(l)(t.heading)), 1), (_(!0), i(e, null, b(t.links, (e) => (_(), i("p", { key: e.href }, [a("a", { href: e.href }, S(e.text), 9, xt)]))), 128))]))), 128))
|
|
716
|
+
])) : r("", !0),
|
|
717
|
+
n.download ? (_(), i("div", St, [
|
|
718
|
+
a("p", Ct, S(C(l)(n.download.heading)), 1),
|
|
719
|
+
a("button", {
|
|
720
720
|
type: "button",
|
|
721
721
|
class: "mwnf-standalone-related__print",
|
|
722
|
-
onClick:
|
|
723
|
-
},
|
|
724
|
-
|
|
722
|
+
onClick: d
|
|
723
|
+
}, S(C(l)(n.download.print)), 1),
|
|
724
|
+
n.download.word ? (_(), i("button", {
|
|
725
725
|
key: 0,
|
|
726
726
|
type: "button",
|
|
727
727
|
class: "mwnf-standalone-related__print mwnf-standalone-related__word",
|
|
728
|
-
onClick:
|
|
729
|
-
},
|
|
730
|
-
])) :
|
|
728
|
+
onClick: f
|
|
729
|
+
}, S(C(l)(n.download.word)), 1)) : r("", !0)
|
|
730
|
+
])) : r("", !0)
|
|
731
731
|
]));
|
|
732
732
|
}
|
|
733
|
-
},
|
|
733
|
+
}, Q = Object.freeze({
|
|
734
734
|
heading: "standalone.related.seeAlso",
|
|
735
735
|
travelBook: "standalone.related.travelBook",
|
|
736
736
|
exhibitionTrail: "standalone.related.exhibitionTrail"
|
|
737
|
-
}),
|
|
738
|
-
function
|
|
739
|
-
let n =
|
|
737
|
+
}), Tt = (e, t) => e?.[t] ?? e?.en ?? Object.values(e ?? {})[0] ?? "";
|
|
738
|
+
function Et(e, t) {
|
|
739
|
+
let n = z(Tt(e?.titles, t) ?? ""), r = z(Tt(e?.subtitles, t) ?? "");
|
|
740
740
|
return r ? `${n} - ${r}` : n;
|
|
741
741
|
}
|
|
742
|
-
var
|
|
743
|
-
function
|
|
742
|
+
var Dt = (e, t) => `${String(e).replace(/\/+$/, "")}/${encodeURIComponent(t)}`, Ot = (e, t) => `${e}${String(e).includes("?") ? "&" : "?"}lang=${encodeURIComponent(t)}`;
|
|
743
|
+
function kt(e, t, n = Q) {
|
|
744
744
|
let r = [], i = e?.travel_book;
|
|
745
745
|
i?.url && r.push({
|
|
746
746
|
label: n.travelBook,
|
|
747
|
-
href:
|
|
747
|
+
href: Dt(i.url, t)
|
|
748
748
|
});
|
|
749
749
|
let a = (Array.isArray(e?.exhibition_trails) ? e.exhibition_trails : []).filter((e) => e?.url).map((e) => ({
|
|
750
|
-
text:
|
|
751
|
-
href:
|
|
750
|
+
text: Et(e, t),
|
|
751
|
+
href: Ot(e.url, t)
|
|
752
752
|
})), o = a.length ? [{
|
|
753
753
|
heading: n.exhibitionTrail,
|
|
754
754
|
links: a
|
|
@@ -760,10 +760,10 @@ function Ot(e, t, n = $) {
|
|
|
760
760
|
};
|
|
761
761
|
}
|
|
762
762
|
// src/standalone/ItemSheet.vue
|
|
763
|
-
var
|
|
763
|
+
var At = { class: "mwnf-standalone-item__top" }, jt = { class: "mwnf-standalone-item__left" }, Mt = {
|
|
764
764
|
key: 0,
|
|
765
765
|
class: "mwnf-standalone-item__back"
|
|
766
|
-
},
|
|
766
|
+
}, Nt = {
|
|
767
767
|
__name: "ItemSheet",
|
|
768
768
|
props: {
|
|
769
769
|
spec: {
|
|
@@ -783,95 +783,95 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
783
783
|
default: () => ({})
|
|
784
784
|
}
|
|
785
785
|
},
|
|
786
|
-
setup(
|
|
787
|
-
let
|
|
788
|
-
function
|
|
789
|
-
if (
|
|
790
|
-
let
|
|
791
|
-
|
|
792
|
-
...typeof
|
|
786
|
+
setup(u) {
|
|
787
|
+
let d = u, { t: f, locale: m } = U(), h = E();
|
|
788
|
+
function g(e) {
|
|
789
|
+
if (d.related.seeAlso === !1) return null;
|
|
790
|
+
let t = {
|
|
791
|
+
...Q,
|
|
792
|
+
...typeof d.related.seeAlso == "object" ? d.related.seeAlso : {}
|
|
793
793
|
};
|
|
794
|
-
return
|
|
794
|
+
return kt(e, m.value, t);
|
|
795
795
|
}
|
|
796
|
-
let
|
|
797
|
-
...
|
|
796
|
+
let v = t(() => ({
|
|
797
|
+
...d.spec,
|
|
798
798
|
media: () => []
|
|
799
799
|
}));
|
|
800
|
-
function
|
|
801
|
-
return
|
|
800
|
+
function y(e) {
|
|
801
|
+
return ce(C(e), d.spec.pictureLimit, e);
|
|
802
802
|
}
|
|
803
|
-
function
|
|
804
|
-
if (
|
|
803
|
+
function C({ record: e, text: t, language: n }) {
|
|
804
|
+
if (d.spec.media) return d.spec.media(e, {
|
|
805
805
|
record: e,
|
|
806
|
-
text:
|
|
807
|
-
language:
|
|
806
|
+
text: t,
|
|
807
|
+
language: n
|
|
808
808
|
});
|
|
809
|
-
let
|
|
810
|
-
return
|
|
811
|
-
let { photographer: t, copyright:
|
|
809
|
+
let r = V(String(t?.name ?? e?.internal_name ?? ""));
|
|
810
|
+
return ne(e?.images, n).map((e) => {
|
|
811
|
+
let { photographer: t, copyright: i } = te(e, n), a = [t ? `${f("record.media.photograph")}: ${t}` : "", i ? `© ${i}` : ""].filter(Boolean).join(", ");
|
|
812
812
|
return {
|
|
813
813
|
url: e.url,
|
|
814
|
-
alt:
|
|
815
|
-
caption: e.captions?.[
|
|
814
|
+
alt: a || e.captions?.[n] || r,
|
|
815
|
+
caption: e.captions?.[n] ?? ""
|
|
816
816
|
};
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
|
-
let
|
|
819
|
+
let w = t(() => d.back.map((e) => ({
|
|
820
820
|
...e,
|
|
821
|
-
label:
|
|
822
|
-
}))),
|
|
821
|
+
label: f(e.label)
|
|
822
|
+
}))), T = /* @__PURE__ */ new Set([
|
|
823
823
|
"header",
|
|
824
824
|
"before-sheet",
|
|
825
825
|
"related",
|
|
826
826
|
"sidebar",
|
|
827
827
|
"aside",
|
|
828
828
|
"source"
|
|
829
|
-
]),
|
|
830
|
-
function
|
|
829
|
+
]), D = t(() => Object.keys(h).filter((e) => !T.has(e)));
|
|
830
|
+
function O() {
|
|
831
831
|
window.history.back();
|
|
832
832
|
}
|
|
833
|
-
let
|
|
834
|
-
return (t,
|
|
835
|
-
spec:
|
|
836
|
-
id:
|
|
833
|
+
let k = (e) => [...e].sort((e, t) => t.code.localeCompare(e.code));
|
|
834
|
+
return (t, d) => (_(), n(le, {
|
|
835
|
+
spec: v.value,
|
|
836
|
+
id: u.id,
|
|
837
837
|
class: "mwnf-standalone-item"
|
|
838
|
-
},
|
|
839
|
-
header:
|
|
840
|
-
languages:
|
|
838
|
+
}, o({
|
|
839
|
+
header: j(({ languages: e, language: t, select: n }) => [a("div", At, [c(K, {
|
|
840
|
+
languages: k(e),
|
|
841
841
|
language: t,
|
|
842
842
|
from: 1,
|
|
843
|
-
onSelect:
|
|
843
|
+
onSelect: n
|
|
844
844
|
}, null, 8, [
|
|
845
845
|
"languages",
|
|
846
846
|
"language",
|
|
847
847
|
"onSelect"
|
|
848
848
|
])])]),
|
|
849
|
-
"before-sheet":
|
|
849
|
+
"before-sheet": j((o) => [a("div", jt, [w.value.length ? (_(), i("p", Mt, [(_(!0), i(e, null, b(w.value, (t) => (_(), i(e, { key: t.label }, [t.history ? (_(), i("button", {
|
|
850
850
|
key: 0,
|
|
851
851
|
type: "button",
|
|
852
852
|
class: "mwnf-standalone-item__back-link",
|
|
853
|
-
onClick:
|
|
854
|
-
},
|
|
853
|
+
onClick: O
|
|
854
|
+
}, S(t.label), 1)) : (_(), n(q, {
|
|
855
855
|
key: 1,
|
|
856
856
|
class: "mwnf-standalone-item__back-link",
|
|
857
|
-
to:
|
|
858
|
-
href:
|
|
857
|
+
to: t.to,
|
|
858
|
+
href: t.href
|
|
859
859
|
}, {
|
|
860
|
-
default:
|
|
860
|
+
default: j(() => [s(S(t.label), 1)]),
|
|
861
861
|
_: 2
|
|
862
|
-
}, 1032, ["to", "href"]))], 64))), 128))])) :
|
|
863
|
-
images:
|
|
862
|
+
}, 1032, ["to", "href"]))], 64))), 128))])) : r("", !0), c(oe, {
|
|
863
|
+
images: y(o),
|
|
864
864
|
"thumbs-from": 1
|
|
865
|
-
}, null, 8, ["images"])]),
|
|
866
|
-
related:
|
|
867
|
-
heading:
|
|
868
|
-
records:
|
|
869
|
-
groups:
|
|
870
|
-
"see-also":
|
|
871
|
-
download:
|
|
872
|
-
"word-file":
|
|
865
|
+
}, null, 8, ["images"])]), x(t.$slots, "before-sheet", p(l(o)))]),
|
|
866
|
+
related: j((e) => [c(wt, {
|
|
867
|
+
heading: u.related.heading ?? "record.related.title",
|
|
868
|
+
records: e.records,
|
|
869
|
+
groups: u.related.groups ?? [],
|
|
870
|
+
"see-also": g(e.record),
|
|
871
|
+
download: u.related.download ?? null,
|
|
872
|
+
"word-file": u.related.download?.wordFile?.(e.record, e.language) ?? "sheet.doc"
|
|
873
873
|
}, {
|
|
874
|
-
default:
|
|
874
|
+
default: j(() => [x(t.$slots, "sidebar", p(l(e)))]),
|
|
875
875
|
_: 2
|
|
876
876
|
}, 1032, [
|
|
877
877
|
"heading",
|
|
@@ -881,44 +881,44 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
881
881
|
"download",
|
|
882
882
|
"word-file"
|
|
883
883
|
])]),
|
|
884
|
-
source:
|
|
884
|
+
source: j((e) => [x(t.$slots, "source", p(l(e)))]),
|
|
885
885
|
_: 2
|
|
886
|
-
}, [
|
|
886
|
+
}, [b(D.value, (e) => ({
|
|
887
887
|
name: e,
|
|
888
|
-
fn:
|
|
888
|
+
fn: j((n) => [x(t.$slots, e, p(l(n)))])
|
|
889
889
|
}))]), 1032, ["spec", "id"]));
|
|
890
890
|
}
|
|
891
|
-
},
|
|
891
|
+
}, Pt = {
|
|
892
892
|
key: 0,
|
|
893
893
|
class: "mwnf-standalone-item__top"
|
|
894
|
-
},
|
|
894
|
+
}, Ft = {
|
|
895
895
|
key: 1,
|
|
896
896
|
hidden: ""
|
|
897
|
-
},
|
|
897
|
+
}, It = {
|
|
898
898
|
key: 0,
|
|
899
899
|
class: "mwnf-standalone-item__back mwnf-standalone-partner__back"
|
|
900
|
-
},
|
|
900
|
+
}, Lt = { class: "mwnf-standalone-partner__heading" }, Rt = ["dir", "innerHTML"], zt = {
|
|
901
901
|
key: 0,
|
|
902
902
|
class: "mwnf-standalone-partner__location"
|
|
903
|
-
},
|
|
903
|
+
}, Bt = { class: "mwnf-standalone-partner__bar" }, Vt = { class: "mwnf-standalone-partner__bar-start" }, Ht = ["aria-label", "onKeydown"], Ut = [
|
|
904
904
|
"id",
|
|
905
905
|
"aria-selected",
|
|
906
906
|
"aria-controls",
|
|
907
907
|
"tabindex",
|
|
908
908
|
"onClick"
|
|
909
|
-
],
|
|
909
|
+
], Wt = {
|
|
910
910
|
key: 0,
|
|
911
911
|
class: "mwnf-standalone-partner__divider",
|
|
912
912
|
"aria-hidden": "true"
|
|
913
|
-
},
|
|
913
|
+
}, Gt = { key: 0 }, Kt = ["href"], qt = { class: "mwnf-standalone-partner__bar-end" }, Jt = { class: "mwnf-standalone-partner__body" }, Yt = { class: "mwnf-standalone-partner__pictures" }, Xt = { class: "mwnf-standalone-partner__panels" }, Zt = [
|
|
914
914
|
"id",
|
|
915
915
|
"aria-labelledby",
|
|
916
916
|
"dir",
|
|
917
917
|
"innerHTML"
|
|
918
|
-
],
|
|
918
|
+
], Qt = ["id", "aria-labelledby"], $t = ["innerHTML"], en = ["href"], tn = { key: 0 }, nn = ["href"], rn = ["href"], an = ["id", "aria-labelledby"], on = ["src"], sn = {
|
|
919
919
|
key: 0,
|
|
920
920
|
class: "mwnf-standalone-partner__map"
|
|
921
|
-
},
|
|
921
|
+
}, cn = { class: "mwnf-standalone-partner__map-heading" }, ln = {
|
|
922
922
|
__name: "PartnerPage",
|
|
923
923
|
props: {
|
|
924
924
|
id: {
|
|
@@ -962,15 +962,15 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
962
962
|
default: !1
|
|
963
963
|
}
|
|
964
964
|
},
|
|
965
|
-
setup(
|
|
966
|
-
let
|
|
965
|
+
setup(o) {
|
|
966
|
+
let l = o, { t: u, locale: p } = U(), m = w(), h = {
|
|
967
967
|
entity: "partners",
|
|
968
968
|
fields: [],
|
|
969
969
|
shortDescription: !1,
|
|
970
970
|
media: () => [],
|
|
971
971
|
citation: !1,
|
|
972
972
|
related: !1
|
|
973
|
-
},
|
|
973
|
+
}, g = {
|
|
974
974
|
about: "partner.info.about",
|
|
975
975
|
contact: "partner.info.contact",
|
|
976
976
|
logo: "partner.info.logo",
|
|
@@ -979,178 +979,178 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
979
979
|
phone: "partner.info.phone",
|
|
980
980
|
fax: "partner.info.fax",
|
|
981
981
|
map: "partner.map.map"
|
|
982
|
-
},
|
|
983
|
-
function
|
|
984
|
-
return (typeof
|
|
982
|
+
}, v = (e) => u(l.labels[e] ?? g[e]);
|
|
983
|
+
function x(e) {
|
|
984
|
+
return (typeof l.back == "function" ? l.back(e) ?? [] : l.back).map((e) => ({
|
|
985
985
|
...e,
|
|
986
|
-
label:
|
|
986
|
+
label: u(e.label)
|
|
987
987
|
}));
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function T() {
|
|
990
990
|
window.history.back();
|
|
991
991
|
}
|
|
992
|
-
function E(e,
|
|
993
|
-
let
|
|
994
|
-
return
|
|
992
|
+
function E(e, t, n) {
|
|
993
|
+
let r = [];
|
|
994
|
+
return l.about(t, n) && r.push("about"), e.hasContact && r.push("contact"), e.logos.length && r.push("logo"), r;
|
|
995
995
|
}
|
|
996
|
-
let
|
|
997
|
-
|
|
998
|
-
|
|
996
|
+
let D = y("about");
|
|
997
|
+
A(() => l.id, () => {
|
|
998
|
+
D.value = "about";
|
|
999
999
|
});
|
|
1000
|
-
function
|
|
1001
|
-
let n = t.indexOf(
|
|
1000
|
+
function O(e, t) {
|
|
1001
|
+
let n = t.indexOf(D.value), r = {
|
|
1002
1002
|
ArrowRight: (n + 1) % t.length,
|
|
1003
1003
|
ArrowLeft: (n - 1 + t.length) % t.length,
|
|
1004
1004
|
Home: 0,
|
|
1005
1005
|
End: t.length - 1
|
|
1006
1006
|
}[e.key];
|
|
1007
|
-
r !== void 0 && t.length && (e.preventDefault(),
|
|
1007
|
+
r !== void 0 && t.length && (e.preventDefault(), D.value = t[r], d(() => document.getElementById(`${m}-tab-${t[r]}`)?.focus()));
|
|
1008
1008
|
}
|
|
1009
|
-
let
|
|
1009
|
+
let N = (e) => e.pictures.map((e) => ({
|
|
1010
1010
|
url: e.url,
|
|
1011
1011
|
alt: e.alt
|
|
1012
|
-
})),
|
|
1013
|
-
return (
|
|
1014
|
-
spec:
|
|
1015
|
-
id:
|
|
1012
|
+
})), P = (e) => [...e.contact.website ? [e.contact.website] : [], ...l.links ? e.contact.links : []], F = (e) => !!(e.contact.address || e.contact.phone || e.contact.fax || e.contact.email || e.contact.website), I = t(() => String(p.value || "en"));
|
|
1013
|
+
return (t, d) => (_(), n(le, {
|
|
1014
|
+
spec: h,
|
|
1015
|
+
id: o.id,
|
|
1016
1016
|
class: "mwnf-standalone-partner"
|
|
1017
1017
|
}, {
|
|
1018
|
-
header:
|
|
1019
|
-
languages:
|
|
1020
|
-
language:
|
|
1018
|
+
header: j(({ record: e, languages: t, language: n, select: r }) => [o.bands(e) ? (_(), i("div", Pt, [c(K, {
|
|
1019
|
+
languages: t.filter((t) => l.languages(e, t.code)),
|
|
1020
|
+
language: n,
|
|
1021
1021
|
from: 1,
|
|
1022
|
-
onSelect:
|
|
1022
|
+
onSelect: r
|
|
1023
1023
|
}, null, 8, [
|
|
1024
1024
|
"languages",
|
|
1025
1025
|
"language",
|
|
1026
1026
|
"onSelect"
|
|
1027
|
-
])])) : (
|
|
1028
|
-
"before-sheet":
|
|
1029
|
-
|
|
1027
|
+
])])) : (_(), i("div", Ft))]),
|
|
1028
|
+
"before-sheet": j(({ record: t, text: c, dir: p }) => [(_(!0), i(e, null, b([l.view(t, c)], (l) => (_(), i(e, { key: t.id }, [
|
|
1029
|
+
x(t).length ? (_(), i("p", It, [(_(!0), i(e, null, b(x(t), (t) => (_(), i(e, { key: t.label }, [t.history ? (_(), i("button", {
|
|
1030
1030
|
key: 0,
|
|
1031
1031
|
type: "button",
|
|
1032
1032
|
class: "mwnf-standalone-item__back-link",
|
|
1033
|
-
onClick:
|
|
1034
|
-
},
|
|
1033
|
+
onClick: T
|
|
1034
|
+
}, S(t.label), 1)) : (_(), n(q, {
|
|
1035
1035
|
key: 1,
|
|
1036
1036
|
class: "mwnf-standalone-item__back-link",
|
|
1037
|
-
to:
|
|
1038
|
-
href:
|
|
1037
|
+
to: t.to,
|
|
1038
|
+
href: t.href
|
|
1039
1039
|
}, {
|
|
1040
|
-
default:
|
|
1040
|
+
default: j(() => [s(S(t.label), 1)]),
|
|
1041
1041
|
_: 2
|
|
1042
|
-
}, 1032, ["to", "href"]))], 64))), 128))])) :
|
|
1043
|
-
|
|
1042
|
+
}, 1032, ["to", "href"]))], 64))), 128))])) : r("", !0),
|
|
1043
|
+
a("div", Lt, [a("h3", {
|
|
1044
1044
|
class: "mwnf-standalone-partner__name",
|
|
1045
|
-
dir:
|
|
1046
|
-
innerHTML:
|
|
1047
|
-
}, null, 8,
|
|
1048
|
-
|
|
1045
|
+
dir: p || void 0,
|
|
1046
|
+
innerHTML: l.name
|
|
1047
|
+
}, null, 8, Rt), l.location ? (_(), i("h4", zt, [a("i", null, S(l.location), 1)])) : r("", !0)]),
|
|
1048
|
+
a("div", Bt, [a("div", Vt, [a("ul", {
|
|
1049
1049
|
role: "tablist",
|
|
1050
1050
|
class: "mwnf-standalone-partner__tabs",
|
|
1051
|
-
"aria-label":
|
|
1052
|
-
onKeydown: (e) =>
|
|
1053
|
-
}, [(
|
|
1051
|
+
"aria-label": l.plainName,
|
|
1052
|
+
onKeydown: (e) => O(e, E(l, t, c))
|
|
1053
|
+
}, [(_(!0), i(e, null, b(E(l, t, c), (e, n) => (_(), i("li", {
|
|
1054
1054
|
key: e,
|
|
1055
1055
|
role: "presentation"
|
|
1056
|
-
}, [
|
|
1057
|
-
id: `${
|
|
1056
|
+
}, [a("button", {
|
|
1057
|
+
id: `${C(m)}-tab-${e}`,
|
|
1058
1058
|
type: "button",
|
|
1059
1059
|
role: "tab",
|
|
1060
|
-
class:
|
|
1061
|
-
"aria-selected":
|
|
1062
|
-
"aria-controls": `${
|
|
1063
|
-
tabindex:
|
|
1064
|
-
onClick: (t) =>
|
|
1065
|
-
}, "\xA0" +
|
|
1060
|
+
class: f(["mwnf-standalone-partner__tab", { "mwnf-standalone-partner__tab--active": D.value === e }]),
|
|
1061
|
+
"aria-selected": D.value === e ? "true" : "false",
|
|
1062
|
+
"aria-controls": `${C(m)}-panel-${e}`,
|
|
1063
|
+
tabindex: D.value === e ? 0 : -1,
|
|
1064
|
+
onClick: (t) => D.value = e
|
|
1065
|
+
}, "\xA0" + S(v(e)), 11, Ut), n < E(l, t, c).length - 1 || l.contact.website ? (_(), i("span", Wt, "\xA0|")) : r("", !0)]))), 128)), l.contact.website ? (_(), i("li", Gt, [a("a", {
|
|
1066
1066
|
class: "mwnf-standalone-partner__homepage",
|
|
1067
|
-
href:
|
|
1067
|
+
href: l.contact.website.url,
|
|
1068
1068
|
target: "_blank",
|
|
1069
1069
|
rel: "noopener"
|
|
1070
|
-
}, "\xA0" +
|
|
1070
|
+
}, "\xA0" + S(v("homepage")), 9, Kt)])) : r("", !0)], 40, Ht)]), a("div", qt, [o.items(t) ? (_(), n(q, {
|
|
1071
1071
|
key: 0,
|
|
1072
1072
|
class: "mwnf-standalone-partner__items",
|
|
1073
|
-
to:
|
|
1073
|
+
to: o.items(t).to
|
|
1074
1074
|
}, {
|
|
1075
|
-
default:
|
|
1075
|
+
default: j(() => [s(S(C(u)(o.items(t).label)), 1)]),
|
|
1076
1076
|
_: 2
|
|
1077
|
-
}, 1032, ["to"])) :
|
|
1078
|
-
|
|
1077
|
+
}, 1032, ["to"])) : r("", !0)])]),
|
|
1078
|
+
a("div", Jt, [a("div", Yt, [l.pictures.length ? (_(), n(oe, {
|
|
1079
1079
|
key: 0,
|
|
1080
|
-
images:
|
|
1081
|
-
}, null, 8, ["images"])) :
|
|
1082
|
-
|
|
1083
|
-
id: `${
|
|
1080
|
+
images: N(l)
|
|
1081
|
+
}, null, 8, ["images"])) : r("", !0)]), a("div", Xt, [
|
|
1082
|
+
M(a("div", {
|
|
1083
|
+
id: `${C(m)}-panel-about`,
|
|
1084
1084
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__about",
|
|
1085
1085
|
role: "tabpanel",
|
|
1086
|
-
"aria-labelledby": `${
|
|
1087
|
-
dir:
|
|
1088
|
-
innerHTML:
|
|
1089
|
-
}, null, 8,
|
|
1090
|
-
|
|
1086
|
+
"aria-labelledby": `${C(m)}-tab-about`,
|
|
1087
|
+
dir: p || void 0,
|
|
1088
|
+
innerHTML: l.description
|
|
1089
|
+
}, null, 8, Zt), [[k, D.value === "about"]]),
|
|
1090
|
+
l.hasContact ? M((_(), i("div", {
|
|
1091
1091
|
key: 0,
|
|
1092
|
-
id: `${
|
|
1092
|
+
id: `${C(m)}-panel-contact`,
|
|
1093
1093
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__contact",
|
|
1094
1094
|
role: "tabpanel",
|
|
1095
|
-
"aria-labelledby": `${
|
|
1096
|
-
}, [
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1095
|
+
"aria-labelledby": `${C(m)}-tab-contact`
|
|
1096
|
+
}, [F(l) ? (_(), i(e, { key: 0 }, [a("p", null, [
|
|
1097
|
+
a("b", null, S(v("addresses")), 1),
|
|
1098
|
+
d[4] ||= a("br", null, null, -1),
|
|
1099
|
+
l.contact.address ? (_(), i(e, { key: 0 }, [a("span", {
|
|
1100
1100
|
class: "mwnf-standalone-partner__address",
|
|
1101
|
-
innerHTML:
|
|
1102
|
-
}, null, 8,
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
]),
|
|
1107
|
-
href:
|
|
1101
|
+
innerHTML: l.contact.address
|
|
1102
|
+
}, null, 8, $t), d[0] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1103
|
+
l.contact.phone ? (_(), i(e, { key: 1 }, [s(S(v("phone")) + " " + S(l.contact.phone), 1), d[1] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1104
|
+
l.contact.fax ? (_(), i(e, { key: 2 }, [s(S(v("fax")) + " " + S(l.contact.fax), 1), d[2] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1105
|
+
l.contact.email ? (_(), i(e, { key: 3 }, [a("a", { href: `mailto:${l.contact.email}` }, S(l.contact.email), 9, en), d[3] ||= a("br", null, null, -1)], 64)) : r("", !0)
|
|
1106
|
+
]), P(l).length ? (_(), i("p", tn, [(_(!0), i(e, null, b(P(l), (t, n) => (_(), i(e, { key: t.url }, [n ? (_(), i(e, { key: 0 }, [s("\xA0|\xA0")], 64)) : r("", !0), a("a", {
|
|
1107
|
+
href: t.url,
|
|
1108
1108
|
target: "_blank",
|
|
1109
1109
|
rel: "noopener"
|
|
1110
|
-
},
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
]))), 128))], 8,
|
|
1117
|
-
|
|
1110
|
+
}, S(t.label), 9, nn)], 64))), 128))])) : r("", !0)], 64)) : r("", !0), (_(!0), i(e, null, b(l.persons, (t, n) => (_(), i("p", { key: n }, [
|
|
1111
|
+
t.title ? (_(), i(e, { key: 0 }, [a("strong", null, S(t.title), 1), d[5] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1112
|
+
t.name ? (_(), i(e, { key: 1 }, [s(S(t.name), 1), d[6] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1113
|
+
t.phone ? (_(), i(e, { key: 2 }, [s(S(v("phone")) + " " + S(t.phone), 1), d[7] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1114
|
+
t.fax ? (_(), i(e, { key: 3 }, [s(S(v("fax")) + " " + S(t.fax), 1), d[8] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1115
|
+
t.email ? (_(), i(e, { key: 4 }, [a("a", { href: `mailto:${t.email}` }, S(t.email), 9, rn), d[9] ||= a("br", null, null, -1)], 64)) : r("", !0)
|
|
1116
|
+
]))), 128))], 8, Qt)), [[k, D.value === "contact"]]) : r("", !0),
|
|
1117
|
+
l.logos.length ? M((_(), i("div", {
|
|
1118
1118
|
key: 1,
|
|
1119
|
-
id: `${
|
|
1119
|
+
id: `${C(m)}-panel-logo`,
|
|
1120
1120
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__logos",
|
|
1121
1121
|
role: "tabpanel",
|
|
1122
|
-
"aria-labelledby": `${
|
|
1123
|
-
}, [(
|
|
1122
|
+
"aria-labelledby": `${C(m)}-tab-logo`
|
|
1123
|
+
}, [(_(!0), i(e, null, b(l.logos, (e) => (_(), i("img", {
|
|
1124
1124
|
key: e.url,
|
|
1125
1125
|
src: e.url,
|
|
1126
1126
|
alt: ""
|
|
1127
|
-
}, null, 8,
|
|
1127
|
+
}, null, 8, on))), 128))], 8, an)), [[k, D.value === "logo"]]) : r("", !0)
|
|
1128
1128
|
])])
|
|
1129
1129
|
], 64))), 128))]),
|
|
1130
|
-
after:
|
|
1130
|
+
after: j(({ record: e, text: t }) => [o.map(e) && l.view(e, t)?.map ? (_(), i("section", sn, [a("h3", cn, S(v("map")), 1), c(se, {
|
|
1131
1131
|
provider: "google",
|
|
1132
|
-
latitude:
|
|
1133
|
-
longitude:
|
|
1134
|
-
zoom:
|
|
1135
|
-
label:
|
|
1136
|
-
language:
|
|
1132
|
+
latitude: l.view(e, t).map.latitude,
|
|
1133
|
+
longitude: l.view(e, t).map.longitude,
|
|
1134
|
+
zoom: l.view(e, t).map.zoom,
|
|
1135
|
+
label: l.view(e, t).map.label,
|
|
1136
|
+
language: I.value
|
|
1137
1137
|
}, null, 8, [
|
|
1138
1138
|
"latitude",
|
|
1139
1139
|
"longitude",
|
|
1140
1140
|
"zoom",
|
|
1141
1141
|
"label",
|
|
1142
1142
|
"language"
|
|
1143
|
-
])])) :
|
|
1143
|
+
])])) : r("", !0)]),
|
|
1144
1144
|
_: 1
|
|
1145
1145
|
}, 8, ["id"]));
|
|
1146
1146
|
}
|
|
1147
|
-
},
|
|
1147
|
+
}, un = ["innerHTML"], dn = {
|
|
1148
1148
|
key: 0,
|
|
1149
1149
|
class: "mwnf-standalone-page__link"
|
|
1150
|
-
},
|
|
1150
|
+
}, fn = {
|
|
1151
1151
|
key: 1,
|
|
1152
1152
|
class: "mwnf-standalone-page__print"
|
|
1153
|
-
},
|
|
1153
|
+
}, pn = {
|
|
1154
1154
|
__name: "TextPage",
|
|
1155
1155
|
props: {
|
|
1156
1156
|
body: {
|
|
@@ -1175,36 +1175,36 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
1175
1175
|
}
|
|
1176
1176
|
},
|
|
1177
1177
|
setup(e) {
|
|
1178
|
-
let
|
|
1179
|
-
function
|
|
1178
|
+
let n = e, { t: o } = U(), s = t(() => re(o(n.body)));
|
|
1179
|
+
function l() {
|
|
1180
1180
|
window.print();
|
|
1181
1181
|
}
|
|
1182
|
-
return (t,
|
|
1182
|
+
return (t, n) => (_(), i("article", { class: f(["mwnf-standalone-page", {
|
|
1183
1183
|
"mwnf-standalone-page--drop-cap": e.dropCap,
|
|
1184
1184
|
"mwnf-standalone-page--narrow": e.narrow
|
|
1185
1185
|
}]) }, [
|
|
1186
|
-
|
|
1186
|
+
a("div", {
|
|
1187
1187
|
class: "mwnf-standalone-page__body",
|
|
1188
|
-
innerHTML:
|
|
1189
|
-
}, null, 8,
|
|
1190
|
-
e.link ? (
|
|
1188
|
+
innerHTML: s.value
|
|
1189
|
+
}, null, 8, un),
|
|
1190
|
+
e.link ? (_(), i("p", dn, [c(q, {
|
|
1191
1191
|
to: e.link.to,
|
|
1192
1192
|
href: e.link.href
|
|
1193
1193
|
}, {
|
|
1194
|
-
default:
|
|
1194
|
+
default: j(() => [a("strong", null, S(e.link.text ?? C(o)(e.link.label)), 1)]),
|
|
1195
1195
|
_: 1
|
|
1196
|
-
}, 8, ["to", "href"])])) :
|
|
1197
|
-
e.print ? (
|
|
1196
|
+
}, 8, ["to", "href"])])) : r("", !0),
|
|
1197
|
+
e.print ? (_(), i("p", fn, [a("button", {
|
|
1198
1198
|
type: "button",
|
|
1199
1199
|
class: "mwnf-standalone-page__print-button",
|
|
1200
|
-
onClick:
|
|
1201
|
-
},
|
|
1200
|
+
onClick: l
|
|
1201
|
+
}, S(C(o)(e.print)), 1)])) : r("", !0)
|
|
1202
1202
|
], 2));
|
|
1203
1203
|
}
|
|
1204
|
-
},
|
|
1204
|
+
}, mn = {
|
|
1205
1205
|
key: 0,
|
|
1206
1206
|
class: "mwnf-standalone-subnav"
|
|
1207
|
-
},
|
|
1207
|
+
}, hn = { class: "mwnf-standalone-subnav__tabs" }, gn = {
|
|
1208
1208
|
__name: "SubNav",
|
|
1209
1209
|
props: {
|
|
1210
1210
|
tabs: {
|
|
@@ -1216,41 +1216,41 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
1216
1216
|
default: null
|
|
1217
1217
|
}
|
|
1218
1218
|
},
|
|
1219
|
-
setup(
|
|
1220
|
-
let
|
|
1219
|
+
setup(o) {
|
|
1220
|
+
let l = o, { t: u } = U(), d = t(() => l.tabs.map((e) => ({
|
|
1221
1221
|
...e,
|
|
1222
|
-
label:
|
|
1222
|
+
label: u(e.label)
|
|
1223
1223
|
})));
|
|
1224
|
-
return (t,
|
|
1224
|
+
return (t, l) => d.value.length || o.aside ? (_(), i("nav", mn, [a("ul", hn, [(_(!0), i(e, null, b(d.value, (e) => (_(), i("li", { key: e.label }, [c(q, {
|
|
1225
1225
|
to: e.to,
|
|
1226
1226
|
href: e.href,
|
|
1227
|
-
class:
|
|
1227
|
+
class: f(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
|
|
1228
1228
|
"aria-current": e.active ? "page" : void 0
|
|
1229
1229
|
}, {
|
|
1230
|
-
default:
|
|
1230
|
+
default: j(() => [s(S(e.label), 1)]),
|
|
1231
1231
|
_: 2
|
|
1232
1232
|
}, 1032, [
|
|
1233
1233
|
"to",
|
|
1234
1234
|
"href",
|
|
1235
1235
|
"class",
|
|
1236
1236
|
"aria-current"
|
|
1237
|
-
])]))), 128))]),
|
|
1237
|
+
])]))), 128))]), o.aside ? (_(), n(q, {
|
|
1238
1238
|
key: 0,
|
|
1239
|
-
to:
|
|
1240
|
-
href:
|
|
1239
|
+
to: o.aside.to,
|
|
1240
|
+
href: o.aside.href,
|
|
1241
1241
|
class: "mwnf-standalone-subnav__aside"
|
|
1242
1242
|
}, {
|
|
1243
|
-
default:
|
|
1243
|
+
default: j(() => [s(S(C(u)(o.aside.label)), 1)]),
|
|
1244
1244
|
_: 1
|
|
1245
|
-
}, 8, ["to", "href"])) :
|
|
1245
|
+
}, 8, ["to", "href"])) : r("", !0)])) : r("", !0);
|
|
1246
1246
|
}
|
|
1247
|
-
},
|
|
1247
|
+
}, _n = { class: "mwnf-standalone-results" }, vn = {
|
|
1248
1248
|
key: 0,
|
|
1249
1249
|
class: "mwnf-standalone-results__empty"
|
|
1250
|
-
},
|
|
1250
|
+
}, yn = { class: "mwnf-standalone-results__tile" }, bn = ["src"], xn = { class: "mwnf-standalone-results__panel" }, Sn = ["src"], Cn = { class: "mwnf-standalone-results__name" }, wn = ["innerHTML"], Tn = ["innerHTML"], En = {
|
|
1251
1251
|
key: 0,
|
|
1252
1252
|
class: "mwnf-standalone-results__holder"
|
|
1253
|
-
},
|
|
1253
|
+
}, Dn = ["innerHTML"], On = ["innerHTML"], kn = {
|
|
1254
1254
|
__name: "ResultsGrid",
|
|
1255
1255
|
props: {
|
|
1256
1256
|
rows: {
|
|
@@ -1270,65 +1270,65 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
1270
1270
|
default: ""
|
|
1271
1271
|
}
|
|
1272
1272
|
},
|
|
1273
|
-
setup(
|
|
1274
|
-
return (
|
|
1275
|
-
key:
|
|
1273
|
+
setup(t) {
|
|
1274
|
+
return (n, o) => (_(), i("div", _n, [t.rows.length ? r("", !0) : (_(), i("p", vn, S(t.empty), 1)), (_(!0), i(e, null, b(t.rows, (n) => (_(), i("div", {
|
|
1275
|
+
key: n.id,
|
|
1276
1276
|
class: "mwnf-standalone-results__cell"
|
|
1277
|
-
}, [
|
|
1277
|
+
}, [a("div", yn, [c(q, {
|
|
1278
1278
|
class: "mwnf-standalone-results__frame",
|
|
1279
|
-
to:
|
|
1280
|
-
href:
|
|
1279
|
+
to: n.to,
|
|
1280
|
+
href: n.href
|
|
1281
1281
|
}, {
|
|
1282
|
-
default:
|
|
1283
|
-
src:
|
|
1282
|
+
default: j(() => [a("img", {
|
|
1283
|
+
src: n.image || t.noImage,
|
|
1284
1284
|
alt: ""
|
|
1285
|
-
}, null, 8,
|
|
1285
|
+
}, null, 8, bn)]),
|
|
1286
1286
|
_: 2
|
|
1287
|
-
}, 1032, ["to", "href"]),
|
|
1288
|
-
|
|
1287
|
+
}, 1032, ["to", "href"]), a("div", xn, [
|
|
1288
|
+
c(q, {
|
|
1289
1289
|
class: "mwnf-standalone-results__panel-frame",
|
|
1290
|
-
to:
|
|
1291
|
-
href:
|
|
1290
|
+
to: n.to,
|
|
1291
|
+
href: n.href
|
|
1292
1292
|
}, {
|
|
1293
|
-
default:
|
|
1294
|
-
src:
|
|
1293
|
+
default: j(() => [a("img", {
|
|
1294
|
+
src: n.image || t.noImage,
|
|
1295
1295
|
alt: ""
|
|
1296
|
-
}, null, 8,
|
|
1296
|
+
}, null, 8, Sn)]),
|
|
1297
1297
|
_: 2
|
|
1298
1298
|
}, 1032, ["to", "href"]),
|
|
1299
|
-
|
|
1300
|
-
to:
|
|
1301
|
-
href:
|
|
1299
|
+
a("p", Cn, [a("strong", null, [c(q, {
|
|
1300
|
+
to: n.to,
|
|
1301
|
+
href: n.href
|
|
1302
1302
|
}, {
|
|
1303
|
-
default:
|
|
1303
|
+
default: j(() => [a("span", { innerHTML: n.name }, null, 8, wn)]),
|
|
1304
1304
|
_: 2
|
|
1305
1305
|
}, 1032, ["to", "href"])])]),
|
|
1306
|
-
(
|
|
1306
|
+
(_(!0), i(e, null, b(n.lines ?? [], (e, t) => (_(), i("p", {
|
|
1307
1307
|
key: t,
|
|
1308
1308
|
innerHTML: e
|
|
1309
|
-
}, null, 8,
|
|
1310
|
-
|
|
1311
|
-
|
|
1309
|
+
}, null, 8, Tn))), 128)),
|
|
1310
|
+
n.holder ? (_(), i("p", En, [a("strong", { innerHTML: n.holder }, null, 8, Dn)])) : r("", !0),
|
|
1311
|
+
n.location ? (_(), i("p", {
|
|
1312
1312
|
key: 1,
|
|
1313
|
-
innerHTML:
|
|
1314
|
-
}, null, 8,
|
|
1315
|
-
|
|
1313
|
+
innerHTML: n.location
|
|
1314
|
+
}, null, 8, On)) : r("", !0),
|
|
1315
|
+
a("p", null, [c(q, {
|
|
1316
1316
|
class: "mwnf-standalone-results__see",
|
|
1317
|
-
to:
|
|
1318
|
-
href:
|
|
1317
|
+
to: n.to,
|
|
1318
|
+
href: n.href
|
|
1319
1319
|
}, {
|
|
1320
|
-
default:
|
|
1320
|
+
default: j(() => [s(S(t.seeLabel), 1)]),
|
|
1321
1321
|
_: 1
|
|
1322
1322
|
}, 8, ["to", "href"])])
|
|
1323
1323
|
])])]))), 128))]));
|
|
1324
1324
|
}
|
|
1325
|
-
},
|
|
1325
|
+
}, An = { class: "mwnf-standalone-list" }, jn = { class: "mwnf-standalone-list__aside" }, Mn = {
|
|
1326
1326
|
key: 0,
|
|
1327
1327
|
class: "mwnf-standalone-list__preview"
|
|
1328
|
-
},
|
|
1328
|
+
}, Nn = { class: "mwnf-standalone-list__preview-picture" }, Pn = ["src"], Fn = { class: "mwnf-standalone-list__preview-name" }, In = ["innerHTML"], Ln = ["innerHTML"], Rn = { key: 0 }, zn = ["innerHTML"], Bn = ["innerHTML"], Vn = { class: "mwnf-standalone-list__records" }, Hn = {
|
|
1329
1329
|
key: 0,
|
|
1330
1330
|
class: "mwnf-standalone-list__empty"
|
|
1331
|
-
},
|
|
1331
|
+
}, Un = { class: "mwnf-standalone-list__frame" }, Wn = ["src"], Gn = { class: "mwnf-standalone-list__content" }, Kn = ["innerHTML"], qn = ["innerHTML"], Jn = { key: 0 }, Yn = ["innerHTML"], Xn = {
|
|
1332
1332
|
__name: "ResultsList",
|
|
1333
1333
|
props: {
|
|
1334
1334
|
rows: {
|
|
@@ -1344,74 +1344,74 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
1344
1344
|
default: ""
|
|
1345
1345
|
}
|
|
1346
1346
|
},
|
|
1347
|
-
setup(
|
|
1348
|
-
let
|
|
1349
|
-
return (t,
|
|
1350
|
-
|
|
1347
|
+
setup(n) {
|
|
1348
|
+
let o = n, l = y(null), u = t(() => l.value ?? o.rows[0] ?? null);
|
|
1349
|
+
return (t, o) => (_(), i("div", An, [a("div", jn, [u.value ? (_(), i("div", Mn, [
|
|
1350
|
+
a("div", Nn, [u.value.image || n.noImage ? (_(), i("img", {
|
|
1351
1351
|
key: 0,
|
|
1352
|
-
src:
|
|
1352
|
+
src: u.value.image || n.noImage,
|
|
1353
1353
|
alt: ""
|
|
1354
|
-
}, null, 8,
|
|
1355
|
-
|
|
1356
|
-
(
|
|
1354
|
+
}, null, 8, Pn)) : r("", !0)]),
|
|
1355
|
+
a("p", Fn, [a("strong", { innerHTML: u.value.name }, null, 8, In)]),
|
|
1356
|
+
(_(!0), i(e, null, b(u.value.preview?.lines ?? [], (e, t) => (_(), i("p", {
|
|
1357
1357
|
key: t,
|
|
1358
1358
|
innerHTML: e
|
|
1359
|
-
}, null, 8,
|
|
1360
|
-
|
|
1361
|
-
|
|
1359
|
+
}, null, 8, Ln))), 128)),
|
|
1360
|
+
u.value.preview?.holder ? (_(), i("p", Rn, [a("strong", { innerHTML: u.value.preview.holder }, null, 8, zn)])) : r("", !0),
|
|
1361
|
+
u.value.preview?.location ? (_(), i("p", {
|
|
1362
1362
|
key: 1,
|
|
1363
|
-
innerHTML:
|
|
1364
|
-
}, null, 8,
|
|
1365
|
-
])) :
|
|
1366
|
-
key:
|
|
1363
|
+
innerHTML: u.value.preview.location
|
|
1364
|
+
}, null, 8, Bn)) : r("", !0)
|
|
1365
|
+
])) : r("", !0)]), a("div", Vn, [n.rows.length ? r("", !0) : (_(), i("p", Hn, S(n.empty), 1)), (_(!0), i(e, null, b(n.rows, (e) => (_(), i("div", {
|
|
1366
|
+
key: e.id,
|
|
1367
1367
|
class: "mwnf-standalone-list__cell"
|
|
1368
|
-
}, [
|
|
1369
|
-
to:
|
|
1370
|
-
href:
|
|
1371
|
-
onMouseenter: (
|
|
1372
|
-
onMouseleave:
|
|
1368
|
+
}, [a("div", Un, [c(q, {
|
|
1369
|
+
to: e.to,
|
|
1370
|
+
href: e.href,
|
|
1371
|
+
onMouseenter: (t) => l.value = e,
|
|
1372
|
+
onMouseleave: o[0] ||= (e) => l.value = null
|
|
1373
1373
|
}, {
|
|
1374
|
-
default:
|
|
1374
|
+
default: j(() => [e.image || n.noImage ? (_(), i("img", {
|
|
1375
1375
|
key: 0,
|
|
1376
|
-
src:
|
|
1376
|
+
src: e.image || n.noImage,
|
|
1377
1377
|
alt: ""
|
|
1378
|
-
}, null, 8,
|
|
1378
|
+
}, null, 8, Wn)) : r("", !0)]),
|
|
1379
1379
|
_: 2
|
|
1380
1380
|
}, 1032, [
|
|
1381
1381
|
"to",
|
|
1382
1382
|
"href",
|
|
1383
1383
|
"onMouseenter"
|
|
1384
|
-
])]),
|
|
1385
|
-
to:
|
|
1386
|
-
href:
|
|
1387
|
-
onMouseenter: (
|
|
1388
|
-
onMouseleave:
|
|
1384
|
+
])]), a("div", Gn, [a("p", null, [c(q, {
|
|
1385
|
+
to: e.to,
|
|
1386
|
+
href: e.href,
|
|
1387
|
+
onMouseenter: (t) => l.value = e,
|
|
1388
|
+
onMouseleave: o[1] ||= (e) => l.value = null
|
|
1389
1389
|
}, {
|
|
1390
|
-
default:
|
|
1391
|
-
|
|
1390
|
+
default: j(() => [
|
|
1391
|
+
a("span", {
|
|
1392
1392
|
class: "mwnf-standalone-list__name",
|
|
1393
|
-
innerHTML: `${
|
|
1394
|
-
}, null, 8,
|
|
1395
|
-
|
|
1396
|
-
|
|
1393
|
+
innerHTML: `${e.name},`
|
|
1394
|
+
}, null, 8, Kn),
|
|
1395
|
+
o[2] ||= s(),
|
|
1396
|
+
a("span", { innerHTML: e.place }, null, 8, qn)
|
|
1397
1397
|
]),
|
|
1398
1398
|
_: 2
|
|
1399
1399
|
}, 1032, [
|
|
1400
1400
|
"to",
|
|
1401
1401
|
"href",
|
|
1402
1402
|
"onMouseenter"
|
|
1403
|
-
])]),
|
|
1403
|
+
])]), e.dates ? (_(), i("div", Jn, [a("i", { innerHTML: e.dates }, null, 8, Yn)])) : r("", !0)])]))), 128))])]));
|
|
1404
1404
|
}
|
|
1405
|
-
},
|
|
1405
|
+
}, Zn = { class: "mwnf-standalone-refine__row" }, Qn = {
|
|
1406
1406
|
class: "mwnf-standalone-refine__label",
|
|
1407
1407
|
for: "mwnf-standalone-refine-keyword"
|
|
1408
|
-
},
|
|
1408
|
+
}, $n = {
|
|
1409
1409
|
class: "mwnf-standalone-refine__label",
|
|
1410
1410
|
for: "mwnf-standalone-refine-field"
|
|
1411
|
-
},
|
|
1411
|
+
}, er = ["value"], tr = {
|
|
1412
1412
|
type: "submit",
|
|
1413
1413
|
class: "mwnf-standalone-refine__button"
|
|
1414
|
-
},
|
|
1414
|
+
}, nr = {
|
|
1415
1415
|
__name: "Refine",
|
|
1416
1416
|
props: {
|
|
1417
1417
|
label: {
|
|
@@ -1440,48 +1440,48 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
1440
1440
|
}
|
|
1441
1441
|
},
|
|
1442
1442
|
emits: ["search"],
|
|
1443
|
-
setup(
|
|
1444
|
-
let
|
|
1445
|
-
function
|
|
1446
|
-
let e =
|
|
1447
|
-
e &&
|
|
1443
|
+
setup(t, { emit: n }) {
|
|
1444
|
+
let r = t, o = n, l = y(""), u = y(r.fields[0]?.value ?? "");
|
|
1445
|
+
function d() {
|
|
1446
|
+
let e = l.value.trim();
|
|
1447
|
+
e && o("search", {
|
|
1448
1448
|
keyword: e,
|
|
1449
|
-
field:
|
|
1449
|
+
field: u.value
|
|
1450
1450
|
});
|
|
1451
1451
|
}
|
|
1452
|
-
return (
|
|
1452
|
+
return (n, r) => (_(), i("form", {
|
|
1453
1453
|
class: "mwnf-standalone-refine",
|
|
1454
|
-
onSubmit:
|
|
1455
|
-
}, [
|
|
1456
|
-
|
|
1457
|
-
|
|
1454
|
+
onSubmit: N(d, ["prevent"])
|
|
1455
|
+
}, [a("div", Zn, [
|
|
1456
|
+
a("label", Qn, S(t.label), 1),
|
|
1457
|
+
M(a("input", {
|
|
1458
1458
|
id: "mwnf-standalone-refine-keyword",
|
|
1459
|
-
"onUpdate:modelValue":
|
|
1459
|
+
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
1460
1460
|
type: "text",
|
|
1461
1461
|
size: "40"
|
|
1462
|
-
}, null, 512), [[
|
|
1463
|
-
|
|
1464
|
-
|
|
1462
|
+
}, null, 512), [[O, l.value]]),
|
|
1463
|
+
a("label", $n, S(t.inLabel), 1),
|
|
1464
|
+
M(a("select", {
|
|
1465
1465
|
id: "mwnf-standalone-refine-field",
|
|
1466
|
-
"onUpdate:modelValue":
|
|
1467
|
-
}, [(
|
|
1466
|
+
"onUpdate:modelValue": r[1] ||= (e) => u.value = e
|
|
1467
|
+
}, [(_(!0), i(e, null, b(t.fields, (e) => (_(), i("option", {
|
|
1468
1468
|
key: e.value,
|
|
1469
1469
|
value: e.value
|
|
1470
|
-
},
|
|
1471
|
-
|
|
1472
|
-
|
|
1470
|
+
}, S(e.label), 9, er))), 128))], 512), [[D, u.value]]),
|
|
1471
|
+
a("button", tr, S(t.searchLabel), 1),
|
|
1472
|
+
c(q, {
|
|
1473
1473
|
class: "mwnf-standalone-refine__button mwnf-standalone-refine__button--new",
|
|
1474
|
-
to:
|
|
1474
|
+
to: t.newSearch
|
|
1475
1475
|
}, {
|
|
1476
|
-
default:
|
|
1476
|
+
default: j(() => [s(S(t.newSearchLabel), 1)]),
|
|
1477
1477
|
_: 1
|
|
1478
1478
|
}, 8, ["to"])
|
|
1479
1479
|
])], 32));
|
|
1480
1480
|
}
|
|
1481
|
-
},
|
|
1481
|
+
}, rr = { class: "mwnf-standalone-item__back mwnf-standalone-pl__back" }, ir = { class: "mwnf-standalone-pl__heads" }, ar = { class: "mwnf-standalone-pl__head" }, or = { key: 0 }, sr = ["onClick"], cr = { class: "mwnf-standalone-pl__row" }, lr = { class: "mwnf-standalone-pl__main" }, ur = { class: "mwnf-standalone-pl__associated" }, dr = {
|
|
1482
1482
|
key: 0,
|
|
1483
1483
|
class: "mwnf-standalone-pl__none"
|
|
1484
|
-
},
|
|
1484
|
+
}, fr = {
|
|
1485
1485
|
__name: "PartnerList",
|
|
1486
1486
|
props: {
|
|
1487
1487
|
type: {
|
|
@@ -1509,57 +1509,57 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
1509
1509
|
default: ""
|
|
1510
1510
|
}
|
|
1511
1511
|
},
|
|
1512
|
-
setup(
|
|
1513
|
-
let
|
|
1514
|
-
|
|
1515
|
-
|
|
1512
|
+
setup(o) {
|
|
1513
|
+
let l = o, u = t(() => l.type === "museum"), d = y(null), p = y(/* @__PURE__ */ new Set());
|
|
1514
|
+
A([u, () => l.groups.length], () => {
|
|
1515
|
+
d.value = u.value ? null : 0, p.value = u.value ? /* @__PURE__ */ new Set() : new Set(l.groups.map((e, t) => t));
|
|
1516
1516
|
}, { immediate: !0 });
|
|
1517
|
-
function
|
|
1518
|
-
let t =
|
|
1519
|
-
|
|
1517
|
+
function m(e) {
|
|
1518
|
+
let t = d.value === e;
|
|
1519
|
+
d.value = t ? null : e, p.value = t ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([e]);
|
|
1520
1520
|
}
|
|
1521
|
-
return (t,
|
|
1522
|
-
|
|
1521
|
+
return (t, l) => (_(), i("div", { class: f(["mwnf-standalone-pl", u.value ? "mwnf-standalone-pl--museums" : "mwnf-standalone-pl--institutions"]) }, [
|
|
1522
|
+
a("p", rr, [(_(!0), i(e, null, b(o.back, (r) => (_(), i(e, { key: r.label }, [r.history ? (_(), i("button", {
|
|
1523
1523
|
key: 0,
|
|
1524
1524
|
type: "button",
|
|
1525
1525
|
class: "mwnf-standalone-item__back-link",
|
|
1526
|
-
onClick:
|
|
1527
|
-
},
|
|
1526
|
+
onClick: l[0] ||= (e) => t.$router.back()
|
|
1527
|
+
}, S(r.label), 1)) : (_(), n(q, {
|
|
1528
1528
|
key: 1,
|
|
1529
1529
|
class: "mwnf-standalone-item__back-link",
|
|
1530
|
-
to:
|
|
1531
|
-
href:
|
|
1530
|
+
to: r.to,
|
|
1531
|
+
href: r.href
|
|
1532
1532
|
}, {
|
|
1533
|
-
default:
|
|
1533
|
+
default: j(() => [s(S(r.label), 1)]),
|
|
1534
1534
|
_: 2
|
|
1535
|
-
}, 1032, ["to", "href"]))], 64))), 128)),
|
|
1536
|
-
|
|
1537
|
-
(
|
|
1535
|
+
}, 1032, ["to", "href"]))], 64))), 128)), x(t.$slots, "back")]),
|
|
1536
|
+
a("div", ir, [(_(!0), i(e, null, b(o.heads, (e) => (_(), i("h3", { key: e }, S(e), 1))), 128))]),
|
|
1537
|
+
(_(!0), i(e, null, b(o.groups, (t, n) => (_(), i("div", {
|
|
1538
1538
|
key: t.label,
|
|
1539
1539
|
class: "mwnf-standalone-pl__group"
|
|
1540
|
-
}, [
|
|
1540
|
+
}, [a("div", ar, [u.value ? (_(), i("h3", or, S(t.label), 1)) : r("", !0), a("h3", null, [a("a", {
|
|
1541
1541
|
href: "#",
|
|
1542
|
-
class:
|
|
1543
|
-
onClick:
|
|
1544
|
-
},
|
|
1542
|
+
class: f(["mwnf-standalone-pl__toggle", { "mwnf-standalone-pl__toggle--active": d.value === n }]),
|
|
1543
|
+
onClick: N((e) => m(n), ["prevent"])
|
|
1544
|
+
}, S(u.value ? o.seeAssociated : t.label), 11, sr)])]), M(a("div", cr, [a("div", lr, [(_(!0), i(e, null, b(t.main, (e) => (_(), i("p", { key: e.id }, [c(q, {
|
|
1545
1545
|
to: e.to,
|
|
1546
1546
|
href: e.href
|
|
1547
1547
|
}, {
|
|
1548
|
-
default:
|
|
1548
|
+
default: j(() => [s(S(e.label), 1)]),
|
|
1549
1549
|
_: 2
|
|
1550
|
-
}, 1032, ["to", "href"])]))), 128))]),
|
|
1550
|
+
}, 1032, ["to", "href"])]))), 128))]), M(a("div", ur, [(_(!0), i(e, null, b(t.associated, (e) => (_(), i("p", { key: e.id }, [c(q, {
|
|
1551
1551
|
to: e.to,
|
|
1552
1552
|
href: e.href
|
|
1553
1553
|
}, {
|
|
1554
|
-
default:
|
|
1554
|
+
default: j(() => [s(S(e.label), 1)]),
|
|
1555
1555
|
_: 2
|
|
1556
|
-
}, 1032, ["to", "href"])]))), 128)),
|
|
1556
|
+
}, 1032, ["to", "href"])]))), 128)), u.value && !t.associated.length ? (_(), i("p", dr, S(o.noAssociated), 1)) : r("", !0)], 512), [[k, !u.value || p.value.has(n)]])], 512), [[k, u.value || p.value.has(n)]])]))), 128))
|
|
1557
1557
|
], 2));
|
|
1558
1558
|
}
|
|
1559
|
-
},
|
|
1559
|
+
}, pr = { class: "mwnf-standalone-item__back mwnf-standalone-sp__back" }, mr = {
|
|
1560
1560
|
key: 0,
|
|
1561
1561
|
class: "mwnf-standalone-sp__heading"
|
|
1562
|
-
},
|
|
1562
|
+
}, hr = ["innerHTML"], gr = { class: "mwnf-standalone-sp__text" }, _r = { key: 0 }, vr = { key: 1 }, yr = { key: 2 }, br = ["href"], xr = ["innerHTML"], Sr = { class: "mwnf-standalone-sp__logo" }, Cr = { key: 0 }, wr = ["src", "alt"], Tr = {
|
|
1563
1563
|
__name: "SponsorList",
|
|
1564
1564
|
props: {
|
|
1565
1565
|
heading: {
|
|
@@ -1575,71 +1575,71 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
1575
1575
|
default: () => []
|
|
1576
1576
|
}
|
|
1577
1577
|
},
|
|
1578
|
-
setup(
|
|
1579
|
-
let
|
|
1578
|
+
setup(o) {
|
|
1579
|
+
let c = o, l = t(() => c.rows.some((e) => e.label !== void 0)), u = t(() => c.rows.map((e) => ({
|
|
1580
1580
|
...e,
|
|
1581
|
-
labelHtml: e.label ?
|
|
1582
|
-
remarksHtml: e.remarks ?
|
|
1581
|
+
labelHtml: e.label ? R(e.label) : "",
|
|
1582
|
+
remarksHtml: e.remarks ? R(e.remarks) : ""
|
|
1583
1583
|
})));
|
|
1584
|
-
return (t,
|
|
1585
|
-
|
|
1584
|
+
return (t, c) => (_(), i("div", { class: f(["mwnf-standalone-sp", { "mwnf-standalone-sp--labels": l.value }]) }, [
|
|
1585
|
+
a("p", pr, [(_(!0), i(e, null, b(o.back, (r) => (_(), i(e, { key: r.label }, [r.history ? (_(), i("button", {
|
|
1586
1586
|
key: 0,
|
|
1587
1587
|
type: "button",
|
|
1588
1588
|
class: "mwnf-standalone-item__back-link",
|
|
1589
|
-
onClick:
|
|
1590
|
-
},
|
|
1589
|
+
onClick: c[0] ||= (e) => t.$router.back()
|
|
1590
|
+
}, S(r.label), 1)) : (_(), n(q, {
|
|
1591
1591
|
key: 1,
|
|
1592
1592
|
class: "mwnf-standalone-item__back-link",
|
|
1593
|
-
to:
|
|
1594
|
-
href:
|
|
1593
|
+
to: r.to,
|
|
1594
|
+
href: r.href
|
|
1595
1595
|
}, {
|
|
1596
|
-
default:
|
|
1596
|
+
default: j(() => [s(S(r.label), 1)]),
|
|
1597
1597
|
_: 2
|
|
1598
1598
|
}, 1032, ["to", "href"]))], 64))), 128))]),
|
|
1599
|
-
|
|
1600
|
-
(
|
|
1599
|
+
o.heading ? (_(), i("h3", mr, S(o.heading), 1)) : r("", !0),
|
|
1600
|
+
(_(!0), i(e, null, b(u.value, (e, t) => (_(), i("div", {
|
|
1601
1601
|
key: t,
|
|
1602
1602
|
class: "mwnf-standalone-sp__row"
|
|
1603
1603
|
}, [
|
|
1604
|
-
|
|
1604
|
+
l.value ? (_(), i("div", {
|
|
1605
1605
|
key: 0,
|
|
1606
1606
|
class: "mwnf-standalone-sp__label",
|
|
1607
1607
|
innerHTML: e.labelHtml
|
|
1608
|
-
}, null, 8,
|
|
1609
|
-
|
|
1610
|
-
e.region ? (
|
|
1611
|
-
e.name ? (
|
|
1612
|
-
e.web ? (
|
|
1608
|
+
}, null, 8, hr)) : r("", !0),
|
|
1609
|
+
a("div", gr, [
|
|
1610
|
+
e.region ? (_(), i("p", _r, S(e.region), 1)) : r("", !0),
|
|
1611
|
+
e.name ? (_(), i("p", vr, S(e.name), 1)) : r("", !0),
|
|
1612
|
+
e.web ? (_(), i("p", yr, [a("a", {
|
|
1613
1613
|
href: `http://${e.web}`,
|
|
1614
1614
|
target: "_blank",
|
|
1615
1615
|
rel: "noopener"
|
|
1616
|
-
},
|
|
1617
|
-
e.remarksHtml ? (
|
|
1616
|
+
}, S(e.web), 9, br)])) : r("", !0),
|
|
1617
|
+
e.remarksHtml ? (_(), i("div", {
|
|
1618
1618
|
key: 3,
|
|
1619
1619
|
class: "mwnf-standalone-sp__remarks",
|
|
1620
1620
|
innerHTML: e.remarksHtml
|
|
1621
|
-
}, null, 8,
|
|
1621
|
+
}, null, 8, xr)) : r("", !0)
|
|
1622
1622
|
]),
|
|
1623
|
-
|
|
1623
|
+
a("div", Sr, [e.logo ? (_(), i("p", Cr, [a("img", {
|
|
1624
1624
|
src: e.logo,
|
|
1625
1625
|
alt: e.name
|
|
1626
|
-
}, null, 8,
|
|
1626
|
+
}, null, 8, wr)])) : r("", !0)])
|
|
1627
1627
|
]))), 128))
|
|
1628
1628
|
], 2));
|
|
1629
1629
|
}
|
|
1630
|
-
},
|
|
1630
|
+
}, Er = { class: "mwnf-standalone-pe" }, Dr = { class: "mwnf-standalone-pe__box" }, Or = { class: "mwnf-standalone-pe__name" }, kr = { class: "mwnf-standalone-pe__links" }, Ar = {
|
|
1631
1631
|
key: 0,
|
|
1632
1632
|
class: "mwnf-standalone-pe__about"
|
|
1633
|
-
},
|
|
1633
|
+
}, jr = ["aria-expanded", "onClick"], Mr = {
|
|
1634
1634
|
key: 1,
|
|
1635
1635
|
class: "mwnf-standalone-pe__popup",
|
|
1636
1636
|
role: "dialog"
|
|
1637
|
-
},
|
|
1637
|
+
}, Nr = ["aria-label"], Pr = {
|
|
1638
1638
|
viewBox: "0 0 24 24",
|
|
1639
1639
|
width: "21",
|
|
1640
1640
|
height: "21",
|
|
1641
1641
|
"aria-hidden": "true"
|
|
1642
|
-
},
|
|
1642
|
+
}, Fr = ["id"], Ir = ["mask"], Lr = ["innerHTML"], Rr = {
|
|
1643
1643
|
__name: "PartnersEntrance",
|
|
1644
1644
|
props: {
|
|
1645
1645
|
projects: {
|
|
@@ -1655,80 +1655,80 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
1655
1655
|
default: ""
|
|
1656
1656
|
}
|
|
1657
1657
|
},
|
|
1658
|
-
setup(
|
|
1659
|
-
let
|
|
1658
|
+
setup(n) {
|
|
1659
|
+
let o = n, l = t(() => o.projects.map((e) => ({
|
|
1660
1660
|
...e,
|
|
1661
|
-
aboutHtml: e.about ?
|
|
1662
|
-
}))),
|
|
1663
|
-
function
|
|
1664
|
-
|
|
1661
|
+
aboutHtml: e.about ? R(e.about) : ""
|
|
1662
|
+
}))), u = y(-1);
|
|
1663
|
+
function d() {
|
|
1664
|
+
u.value = -1;
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1667
|
-
e.key === "Escape" &&
|
|
1666
|
+
function f(e) {
|
|
1667
|
+
e.key === "Escape" && d();
|
|
1668
1668
|
}
|
|
1669
|
-
return
|
|
1670
|
-
typeof document < "u" && (e >= 0 ? document.addEventListener("keydown",
|
|
1671
|
-
}),
|
|
1672
|
-
typeof document < "u" && document.removeEventListener("keydown",
|
|
1673
|
-
}), (t, o) => (
|
|
1669
|
+
return A(u, (e) => {
|
|
1670
|
+
typeof document < "u" && (e >= 0 ? document.addEventListener("keydown", f) : document.removeEventListener("keydown", f));
|
|
1671
|
+
}), h(() => {
|
|
1672
|
+
typeof document < "u" && document.removeEventListener("keydown", f);
|
|
1673
|
+
}), (t, o) => (_(), i("div", Er, [u.value >= 0 ? (_(), i("div", {
|
|
1674
1674
|
key: 0,
|
|
1675
1675
|
class: "mwnf-standalone-pe__shade",
|
|
1676
|
-
onClick:
|
|
1677
|
-
})) :
|
|
1678
|
-
key:
|
|
1676
|
+
onClick: d
|
|
1677
|
+
})) : r("", !0), (_(!0), i(e, null, b(l.value, (t, l) => (_(), i("div", {
|
|
1678
|
+
key: l,
|
|
1679
1679
|
class: "mwnf-standalone-pe__row"
|
|
1680
|
-
}, [
|
|
1681
|
-
o[1] ||=
|
|
1682
|
-
t.aboutHtml ? (
|
|
1680
|
+
}, [a("div", Dr, [a("h3", Or, S(t.name), 1)]), a("div", kr, [
|
|
1681
|
+
o[1] ||= a("p", { "aria-hidden": "true" }, "\xA0", -1),
|
|
1682
|
+
t.aboutHtml ? (_(), i("p", Ar, [a("button", {
|
|
1683
1683
|
type: "button",
|
|
1684
|
-
"aria-expanded":
|
|
1685
|
-
onClick: (e) =>
|
|
1686
|
-
},
|
|
1687
|
-
|
|
1684
|
+
"aria-expanded": u.value === l,
|
|
1685
|
+
onClick: (e) => u.value = l
|
|
1686
|
+
}, S(n.aboutLabel), 9, jr)])) : r("", !0),
|
|
1687
|
+
u.value === l ? (_(), i("div", Mr, [a("button", {
|
|
1688
1688
|
type: "button",
|
|
1689
1689
|
class: "mwnf-standalone-pe__close",
|
|
1690
|
-
"aria-label":
|
|
1691
|
-
onClick:
|
|
1692
|
-
}, [(
|
|
1690
|
+
"aria-label": n.closeLabel || void 0,
|
|
1691
|
+
onClick: d
|
|
1692
|
+
}, [(_(), i("svg", Pr, [a("mask", { id: `mwnf-standalone-pe-x${l}` }, [...o[0] ||= [a("rect", {
|
|
1693
1693
|
width: "24",
|
|
1694
1694
|
height: "24",
|
|
1695
1695
|
fill: "#fff"
|
|
1696
|
-
}, null, -1),
|
|
1696
|
+
}, null, -1), a("path", {
|
|
1697
1697
|
d: "M8 8l8 8M16 8l-8 8",
|
|
1698
1698
|
stroke: "#000",
|
|
1699
1699
|
"stroke-width": "3",
|
|
1700
1700
|
"stroke-linecap": "round"
|
|
1701
|
-
}, null, -1)]], 8,
|
|
1701
|
+
}, null, -1)]], 8, Fr), a("circle", {
|
|
1702
1702
|
cx: "12",
|
|
1703
1703
|
cy: "12",
|
|
1704
1704
|
r: "12",
|
|
1705
1705
|
fill: "currentColor",
|
|
1706
|
-
mask: `url(#mwnf-standalone-pe-x${
|
|
1707
|
-
}, null, 8,
|
|
1706
|
+
mask: `url(#mwnf-standalone-pe-x${l})`
|
|
1707
|
+
}, null, 8, Ir)]))], 8, Nr), a("div", {
|
|
1708
1708
|
class: "mwnf-standalone-pe__text",
|
|
1709
1709
|
innerHTML: t.aboutHtml
|
|
1710
|
-
}, null, 8,
|
|
1711
|
-
(
|
|
1710
|
+
}, null, 8, Lr)])) : r("", !0),
|
|
1711
|
+
(_(!0), i(e, null, b(t.links, (e) => (_(), i("p", { key: e.label }, [c(q, {
|
|
1712
1712
|
to: e.to,
|
|
1713
1713
|
href: e.href
|
|
1714
1714
|
}, {
|
|
1715
|
-
default:
|
|
1715
|
+
default: j(() => [s(S(e.label), 1)]),
|
|
1716
1716
|
_: 2
|
|
1717
1717
|
}, 1032, ["to", "href"])]))), 128))
|
|
1718
1718
|
])]))), 128))]));
|
|
1719
1719
|
}
|
|
1720
|
-
},
|
|
1720
|
+
}, zr = { class: "mwnf-standalone-db__criteria" }, Br = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--keywords" }, Vr = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--category" }, Hr = {
|
|
1721
1721
|
key: 0,
|
|
1722
1722
|
class: "mwnf-standalone-db__aside"
|
|
1723
|
-
},
|
|
1723
|
+
}, Ur = ["onUpdate:modelValue", "aria-label"], Wr = { value: "AND" }, Gr = { value: "OR" }, Kr = ["onUpdate:modelValue", "aria-label"], qr = ["onUpdate:modelValue"], Jr = ["value"], Yr = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--date" }, Xr = { class: "mwnf-standalone-db__dates" }, Zr = ["aria-label"], Qr = { value: "" }, $r = ["value"], ei = ["aria-label"], ti = { value: "" }, ni = ["value"], ri = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--language" }, ii = { class: "mwnf-standalone-db__language" }, ai = ["aria-label"], oi = ["value"], si = {
|
|
1724
1724
|
key: 1,
|
|
1725
1725
|
class: "mwnf-standalone-db__options"
|
|
1726
|
-
},
|
|
1726
|
+
}, ci = { class: "mwnf-standalone-db__go" }, li = { type: "submit" }, ui = {
|
|
1727
1727
|
key: 2,
|
|
1728
1728
|
class: "mwnf-standalone-db__listing"
|
|
1729
|
-
},
|
|
1729
|
+
}, di = ["href", "title"], fi = {
|
|
1730
1730
|
__name: "DatabaseForm",
|
|
1731
|
-
props: /*@__PURE__*/
|
|
1731
|
+
props: /*@__PURE__*/ u({
|
|
1732
1732
|
labels: {
|
|
1733
1733
|
type: Object,
|
|
1734
1734
|
required: !0
|
|
@@ -1760,98 +1760,98 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
1760
1760
|
},
|
|
1761
1761
|
languageModifiers: {}
|
|
1762
1762
|
}),
|
|
1763
|
-
emits: /*@__PURE__*/
|
|
1764
|
-
setup(
|
|
1765
|
-
let
|
|
1763
|
+
emits: /*@__PURE__*/ u(["search"], ["update:language"]),
|
|
1764
|
+
setup(n, { emit: o }) {
|
|
1765
|
+
let s = n, c = T(n, "language"), l = o, u = E(), d = v([
|
|
1766
1766
|
{
|
|
1767
1767
|
keyword: "",
|
|
1768
|
-
field:
|
|
1768
|
+
field: s.fields[0]?.value ?? "",
|
|
1769
1769
|
cond: "AND"
|
|
1770
1770
|
},
|
|
1771
1771
|
{
|
|
1772
1772
|
keyword: "",
|
|
1773
|
-
field:
|
|
1773
|
+
field: s.fields[0]?.value ?? "",
|
|
1774
1774
|
cond: "AND"
|
|
1775
1775
|
},
|
|
1776
1776
|
{
|
|
1777
1777
|
keyword: "",
|
|
1778
|
-
field:
|
|
1778
|
+
field: s.fields[0]?.value ?? "",
|
|
1779
1779
|
cond: "AND"
|
|
1780
1780
|
}
|
|
1781
|
-
]),
|
|
1781
|
+
]), p = v({
|
|
1782
1782
|
from: "",
|
|
1783
1783
|
to: ""
|
|
1784
|
-
}),
|
|
1784
|
+
}), m = t(() => !!u.options), h = (e) => typeof e == "object" ? e : {
|
|
1785
1785
|
value: e,
|
|
1786
1786
|
label: String(e)
|
|
1787
|
-
},
|
|
1788
|
-
function
|
|
1789
|
-
|
|
1790
|
-
rows:
|
|
1787
|
+
}, g = t(() => s.fromYears.map(h)), y = t(() => s.toYears.map(h));
|
|
1788
|
+
function C() {
|
|
1789
|
+
l("search", {
|
|
1790
|
+
rows: d.map((e) => ({
|
|
1791
1791
|
...e,
|
|
1792
1792
|
keyword: e.keyword.trim()
|
|
1793
1793
|
})),
|
|
1794
|
-
from:
|
|
1795
|
-
to:
|
|
1794
|
+
from: p.from,
|
|
1795
|
+
to: p.to
|
|
1796
1796
|
});
|
|
1797
1797
|
}
|
|
1798
|
-
return (t,
|
|
1799
|
-
class:
|
|
1800
|
-
onSubmit:
|
|
1798
|
+
return (t, o) => (_(), i("form", {
|
|
1799
|
+
class: f(["mwnf-standalone-db", { "mwnf-standalone-db--options": m.value }]),
|
|
1800
|
+
onSubmit: N(C, ["prevent"])
|
|
1801
1801
|
}, [
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
t.$slots.aside ? (
|
|
1806
|
-
(
|
|
1807
|
-
|
|
1802
|
+
a("h3", zr, S(n.labels.criteria), 1),
|
|
1803
|
+
a("p", Br, S(n.labels.keywords), 1),
|
|
1804
|
+
a("p", Vr, S(n.labels.category), 1),
|
|
1805
|
+
t.$slots.aside ? (_(), i("p", Hr, [x(t.$slots, "aside")])) : r("", !0),
|
|
1806
|
+
(_(!0), i(e, null, b(d, (t, o) => (_(), i(e, { key: o }, [
|
|
1807
|
+
o ? M((_(), i("select", {
|
|
1808
1808
|
key: 0,
|
|
1809
1809
|
"onUpdate:modelValue": (e) => t.cond = e,
|
|
1810
|
-
class:
|
|
1811
|
-
"aria-label": `${
|
|
1812
|
-
}, [
|
|
1813
|
-
|
|
1810
|
+
class: f(["mwnf-standalone-db__cond", `mwnf-standalone-db__row-${o + 1}`]),
|
|
1811
|
+
"aria-label": `${n.labels.and} / ${n.labels.or}`
|
|
1812
|
+
}, [a("option", Wr, S(n.labels.and), 1), a("option", Gr, S(n.labels.or), 1)], 10, Ur)), [[D, t.cond]]) : r("", !0),
|
|
1813
|
+
M(a("input", {
|
|
1814
1814
|
"onUpdate:modelValue": (e) => t.keyword = e,
|
|
1815
1815
|
type: "text",
|
|
1816
|
-
class:
|
|
1817
|
-
"aria-label":
|
|
1818
|
-
}, null, 10,
|
|
1819
|
-
|
|
1816
|
+
class: f(["mwnf-standalone-db__keyword", `mwnf-standalone-db__row-${o + 1}`]),
|
|
1817
|
+
"aria-label": n.labels.keywords
|
|
1818
|
+
}, null, 10, Kr), [[O, t.keyword]]),
|
|
1819
|
+
a("label", { class: f(["mwnf-standalone-db__field", `mwnf-standalone-db__row-${o + 1}`]) }, [a("span", null, S(n.labels.in), 1), M(a("select", { "onUpdate:modelValue": (e) => t.field = e }, [(_(!0), i(e, null, b(n.fields, (e) => (_(), i("option", {
|
|
1820
1820
|
key: e.value,
|
|
1821
1821
|
value: e.value
|
|
1822
|
-
},
|
|
1822
|
+
}, S(e.label), 9, Jr))), 128))], 8, qr), [[D, t.field]])], 2)
|
|
1823
1823
|
], 64))), 128)),
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
"onUpdate:modelValue":
|
|
1827
|
-
"aria-label": `${
|
|
1828
|
-
}, [
|
|
1824
|
+
a("span", Yr, S(n.labels.date), 1),
|
|
1825
|
+
a("p", Xr, [M(a("select", {
|
|
1826
|
+
"onUpdate:modelValue": o[0] ||= (e) => p.from = e,
|
|
1827
|
+
"aria-label": `${n.labels.date} ${n.labels.from}`
|
|
1828
|
+
}, [a("option", Qr, S(n.labels.from), 1), (_(!0), i(e, null, b(g.value, (e) => (_(), i("option", {
|
|
1829
1829
|
key: e.value,
|
|
1830
1830
|
value: e.value
|
|
1831
|
-
},
|
|
1832
|
-
"onUpdate:modelValue":
|
|
1833
|
-
"aria-label": `${
|
|
1834
|
-
}, [
|
|
1831
|
+
}, S(e.label), 9, $r))), 128))], 8, Zr), [[D, p.from]]), M(a("select", {
|
|
1832
|
+
"onUpdate:modelValue": o[1] ||= (e) => p.to = e,
|
|
1833
|
+
"aria-label": `${n.labels.date} ${n.labels.to}`
|
|
1834
|
+
}, [a("option", ti, S(n.labels.to), 1), (_(!0), i(e, null, b(y.value, (e) => (_(), i("option", {
|
|
1835
1835
|
key: e.value,
|
|
1836
1836
|
value: e.value
|
|
1837
|
-
},
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
"onUpdate:modelValue":
|
|
1841
|
-
"aria-label":
|
|
1842
|
-
}, [
|
|
1837
|
+
}, S(e.label), 9, ni))), 128))], 8, ei), [[D, p.to]])]),
|
|
1838
|
+
a("span", ri, S(n.labels.language), 1),
|
|
1839
|
+
a("p", ii, [M(a("select", {
|
|
1840
|
+
"onUpdate:modelValue": o[2] ||= (e) => c.value = e,
|
|
1841
|
+
"aria-label": n.labels.language
|
|
1842
|
+
}, [o[3] ||= a("option", { value: "" }, null, -1), (_(!0), i(e, null, b(n.languages, (e) => (_(), i("option", {
|
|
1843
1843
|
key: e.code,
|
|
1844
1844
|
value: e.code
|
|
1845
|
-
},
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
href:
|
|
1850
|
-
title:
|
|
1851
|
-
},
|
|
1845
|
+
}, S(e.name), 9, oi))), 128))], 8, ai), [[D, c.value]])]),
|
|
1846
|
+
m.value ? (_(), i("p", si, [x(t.$slots, "options")])) : r("", !0),
|
|
1847
|
+
a("p", ci, [a("button", li, S(n.labels.go), 1)]),
|
|
1848
|
+
n.listingHref ? (_(), i("p", ui, [a("a", {
|
|
1849
|
+
href: n.listingHref,
|
|
1850
|
+
title: n.labels.listingTooltip
|
|
1851
|
+
}, S(n.labels.listing), 9, di)])) : r("", !0)
|
|
1852
1852
|
], 34));
|
|
1853
1853
|
}
|
|
1854
|
-
},
|
|
1854
|
+
}, pi = { class: "mwnf-standalone-tle__country" }, mi = ["aria-label"], hi = { value: "none" }, gi = { value: "" }, _i = ["value"], vi = { class: "mwnf-standalone-tle__date" }, yi = ["aria-label"], bi = { value: "none" }, xi = ["value"], Si = { class: "mwnf-standalone-tle__date" }, Ci = ["aria-label"], wi = { value: "none" }, Ti = ["value"], Ei = { class: "mwnf-standalone-tle__go" }, Di = { type: "submit" }, Oi = {
|
|
1855
1855
|
__name: "TimelineEntrance",
|
|
1856
1856
|
props: {
|
|
1857
1857
|
labels: {
|
|
@@ -1880,71 +1880,71 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
1880
1880
|
}
|
|
1881
1881
|
},
|
|
1882
1882
|
emits: ["search"],
|
|
1883
|
-
setup(
|
|
1884
|
-
let
|
|
1885
|
-
selectCountry:
|
|
1886
|
-
allCountries:
|
|
1887
|
-
startDate:
|
|
1888
|
-
endDate:
|
|
1889
|
-
go:
|
|
1890
|
-
}),
|
|
1891
|
-
country:
|
|
1892
|
-
countryOrDates:
|
|
1893
|
-
startDate:
|
|
1894
|
-
endDate:
|
|
1895
|
-
period:
|
|
1896
|
-
} : {})),
|
|
1883
|
+
setup(n, { emit: r }) {
|
|
1884
|
+
let o = n, s = r, c = o.texts ? U().t : (e) => e, l = (e) => c(`${o.texts}.${e}`), u = t(() => o.labels ?? {
|
|
1885
|
+
selectCountry: l("tl.selectCountry"),
|
|
1886
|
+
allCountries: l("tl.allCountries"),
|
|
1887
|
+
startDate: l("tl.startDate"),
|
|
1888
|
+
endDate: l("tl.endDate"),
|
|
1889
|
+
go: l("db.go")
|
|
1890
|
+
}), d = t(() => o.alerts ?? (o.texts ? {
|
|
1891
|
+
country: l("tl.alertCountry"),
|
|
1892
|
+
countryOrDates: l("tl.alertCountryOrDates"),
|
|
1893
|
+
startDate: l("tl.alertStartDate"),
|
|
1894
|
+
endDate: l("tl.alertEndDate"),
|
|
1895
|
+
period: l("tl.alertPeriod")
|
|
1896
|
+
} : {})), f = v({
|
|
1897
1897
|
country: "none",
|
|
1898
1898
|
start: "none",
|
|
1899
1899
|
end: "none"
|
|
1900
1900
|
});
|
|
1901
|
-
function
|
|
1902
|
-
return
|
|
1901
|
+
function p() {
|
|
1902
|
+
return f.country === "none" ? d.value.country : f.country === "" ? f.start === "none" && f.end === "none" ? d.value.countryOrDates : f.start === "none" ? d.value.startDate : f.end === "none" ? d.value.endDate : Number(f.start) > Number(f.end) ? d.value.period : "" : "";
|
|
1903
1903
|
}
|
|
1904
1904
|
function m() {
|
|
1905
|
-
let e =
|
|
1906
|
-
e ? window.alert(e) :
|
|
1905
|
+
let e = p();
|
|
1906
|
+
e ? window.alert(e) : s("search", { ...f });
|
|
1907
1907
|
}
|
|
1908
|
-
return (t,
|
|
1908
|
+
return (t, r) => (_(), i("form", {
|
|
1909
1909
|
class: "mwnf-standalone-tle",
|
|
1910
|
-
onSubmit:
|
|
1910
|
+
onSubmit: N(m, ["prevent"])
|
|
1911
1911
|
}, [
|
|
1912
|
-
|
|
1913
|
-
"onUpdate:modelValue":
|
|
1914
|
-
"aria-label":
|
|
1912
|
+
a("p", pi, [M(a("select", {
|
|
1913
|
+
"onUpdate:modelValue": r[0] ||= (e) => f.country = e,
|
|
1914
|
+
"aria-label": u.value.selectCountry
|
|
1915
1915
|
}, [
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
(
|
|
1916
|
+
a("option", hi, S(u.value.selectCountry), 1),
|
|
1917
|
+
a("option", gi, S(u.value.allCountries), 1),
|
|
1918
|
+
(_(!0), i(e, null, b(n.countries, (e) => (_(), i("option", {
|
|
1919
1919
|
key: e.value,
|
|
1920
1920
|
value: e.value
|
|
1921
|
-
},
|
|
1922
|
-
], 8,
|
|
1923
|
-
|
|
1924
|
-
"onUpdate:modelValue":
|
|
1925
|
-
"aria-label":
|
|
1926
|
-
}, [
|
|
1921
|
+
}, S(e.label), 9, _i))), 128))
|
|
1922
|
+
], 8, mi), [[D, f.country]])]),
|
|
1923
|
+
a("p", vi, [M(a("select", {
|
|
1924
|
+
"onUpdate:modelValue": r[1] ||= (e) => f.start = e,
|
|
1925
|
+
"aria-label": u.value.startDate
|
|
1926
|
+
}, [a("option", bi, S(u.value.startDate), 1), (_(!0), i(e, null, b(n.starts, (e) => (_(), i("option", {
|
|
1927
1927
|
key: e.value,
|
|
1928
1928
|
value: e.value
|
|
1929
|
-
},
|
|
1930
|
-
|
|
1931
|
-
"onUpdate:modelValue":
|
|
1932
|
-
"aria-label":
|
|
1933
|
-
}, [
|
|
1929
|
+
}, S(e.label), 9, xi))), 128))], 8, yi), [[D, f.start]])]),
|
|
1930
|
+
a("p", Si, [M(a("select", {
|
|
1931
|
+
"onUpdate:modelValue": r[2] ||= (e) => f.end = e,
|
|
1932
|
+
"aria-label": u.value.endDate
|
|
1933
|
+
}, [a("option", wi, S(u.value.endDate), 1), (_(!0), i(e, null, b(n.ends, (e) => (_(), i("option", {
|
|
1934
1934
|
key: e.value,
|
|
1935
1935
|
value: e.value
|
|
1936
|
-
},
|
|
1937
|
-
|
|
1936
|
+
}, S(e.label), 9, Ti))), 128))], 8, Ci), [[D, f.end]])]),
|
|
1937
|
+
a("p", Ei, [a("button", Di, S(u.value.go), 1)])
|
|
1938
1938
|
], 32));
|
|
1939
1939
|
}
|
|
1940
|
-
},
|
|
1940
|
+
}, ki = {
|
|
1941
1941
|
key: 0,
|
|
1942
1942
|
class: "mwnf-standalone-pages"
|
|
1943
|
-
},
|
|
1943
|
+
}, Ai = { class: "mwnf-standalone-pages__previous" }, ji = ["aria-current", "onClick"], Mi = { class: "mwnf-standalone-pages__next" }, Ni = {
|
|
1944
1944
|
key: 1,
|
|
1945
1945
|
class: "mwnf-standalone-pages",
|
|
1946
1946
|
"aria-hidden": "true"
|
|
1947
|
-
},
|
|
1947
|
+
}, Pi = {
|
|
1948
1948
|
__name: "Pagination",
|
|
1949
1949
|
props: {
|
|
1950
1950
|
pageInfo: {
|
|
@@ -1965,53 +1965,53 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
1965
1965
|
}
|
|
1966
1966
|
},
|
|
1967
1967
|
emits: ["navigate"],
|
|
1968
|
-
setup(
|
|
1969
|
-
let
|
|
1970
|
-
let e = Math.max(1,
|
|
1971
|
-
for (let
|
|
1972
|
-
return
|
|
1968
|
+
setup(n, { emit: r }) {
|
|
1969
|
+
let o = n, c = r, l = t(() => o.pageInfo?.currentPage ?? 1), u = t(() => o.pageInfo?.lastPage ?? 1), d = t(() => {
|
|
1970
|
+
let e = Math.max(1, o.block), t = Math.floor((l.value - 1) / e) * e + 1, n = [];
|
|
1971
|
+
for (let r = t; r <= Math.min(u.value, t + e - 1); r++) n.push(r);
|
|
1972
|
+
return n;
|
|
1973
1973
|
});
|
|
1974
|
-
function
|
|
1975
|
-
e >= 1 && e <=
|
|
1974
|
+
function p(e) {
|
|
1975
|
+
e >= 1 && e <= u.value && e !== l.value && c("navigate", e);
|
|
1976
1976
|
}
|
|
1977
|
-
return (t,
|
|
1978
|
-
|
|
1977
|
+
return (t, r) => u.value > 1 ? (_(), i("nav", ki, [
|
|
1978
|
+
a("span", Ai, [l.value > 1 ? (_(), i("a", {
|
|
1979
1979
|
key: 0,
|
|
1980
1980
|
href: "#",
|
|
1981
|
-
onClick:
|
|
1982
|
-
},
|
|
1983
|
-
(
|
|
1981
|
+
onClick: r[0] ||= N((e) => p(l.value - 1), ["prevent"])
|
|
1982
|
+
}, S(n.previousLabel), 1)) : (_(), i(e, { key: 1 }, [s(S(n.previousLabel), 1)], 64))]),
|
|
1983
|
+
(_(!0), i(e, null, b(d.value, (e) => (_(), i("a", {
|
|
1984
1984
|
key: e,
|
|
1985
1985
|
href: "#",
|
|
1986
|
-
class:
|
|
1987
|
-
"aria-current": e ===
|
|
1988
|
-
onClick:
|
|
1989
|
-
},
|
|
1990
|
-
|
|
1986
|
+
class: f(["mwnf-standalone-pages__number", { "mwnf-standalone-pages__number--active": e === l.value }]),
|
|
1987
|
+
"aria-current": e === l.value ? "page" : void 0,
|
|
1988
|
+
onClick: N((t) => p(e), ["prevent"])
|
|
1989
|
+
}, S(e), 11, ji))), 128)),
|
|
1990
|
+
a("span", Mi, [l.value < u.value ? (_(), i("a", {
|
|
1991
1991
|
key: 0,
|
|
1992
1992
|
href: "#",
|
|
1993
|
-
onClick:
|
|
1994
|
-
},
|
|
1995
|
-
])) : (
|
|
1993
|
+
onClick: r[1] ||= N((e) => p(l.value + 1), ["prevent"])
|
|
1994
|
+
}, S(n.nextLabel), 1)) : (_(), i(e, { key: 1 }, [s(S(n.nextLabel), 1)], 64))])
|
|
1995
|
+
])) : (_(), i("div", Ni));
|
|
1996
1996
|
}
|
|
1997
|
-
},
|
|
1997
|
+
}, Fi = { class: "mwnf-standalone-tlr" }, Ii = { class: "mwnf-standalone-tlr__band" }, Li = { class: "mwnf-standalone-tlr__band-inner" }, Ri = { class: "mwnf-standalone-tlr__summary" }, zi = { class: "mwnf-standalone-tlr__selects" }, Bi = ["for"], Vi = [
|
|
1998
1998
|
"id",
|
|
1999
1999
|
"value",
|
|
2000
2000
|
"disabled",
|
|
2001
2001
|
"onChange"
|
|
2002
|
-
],
|
|
2002
|
+
], Hi = ["value"], Ui = { class: "mwnf-standalone-item__back mwnf-standalone-tlr__back" }, Wi = {
|
|
2003
2003
|
key: 0,
|
|
2004
2004
|
class: "mwnf-standalone-tlr__heads"
|
|
2005
|
-
},
|
|
2005
|
+
}, Gi = { class: "mwnf-standalone-tlr__body" }, Ki = { class: "mwnf-standalone-tlr__list" }, qi = { class: "mwnf-standalone-tlr__date" }, Ji = { class: "mwnf-standalone-tlr__content" }, Yi = ["innerHTML"], Xi = {
|
|
2006
2006
|
key: 0,
|
|
2007
2007
|
class: "mwnf-standalone-tlr__empty"
|
|
2008
|
-
},
|
|
2008
|
+
}, Zi = { class: "mwnf-standalone-tlr__related" }, Qi = {
|
|
2009
2009
|
key: 0,
|
|
2010
2010
|
class: "mwnf-standalone-tlr__panel"
|
|
2011
|
-
},
|
|
2011
|
+
}, $i = { key: 0 }, ea = {
|
|
2012
2012
|
key: 1,
|
|
2013
2013
|
class: "mwnf-standalone-tlr__panel"
|
|
2014
|
-
},
|
|
2014
|
+
}, ta = { class: "mwnf-standalone-tlr__download" }, na = {
|
|
2015
2015
|
__name: "TimelineResults",
|
|
2016
2016
|
props: {
|
|
2017
2017
|
heading: {
|
|
@@ -2068,77 +2068,77 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
2068
2068
|
}
|
|
2069
2069
|
},
|
|
2070
2070
|
emits: ["change", "navigate"],
|
|
2071
|
-
setup(
|
|
2072
|
-
let
|
|
2073
|
-
function
|
|
2071
|
+
setup(o, { emit: l }) {
|
|
2072
|
+
let u = o, d = l, f = t(() => u.rows.length > 0);
|
|
2073
|
+
function p() {
|
|
2074
2074
|
window.print();
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function m(e) {
|
|
2077
2077
|
let t = e.currentTarget.closest(".mwnf-standalone-tlr");
|
|
2078
|
-
|
|
2079
|
-
title:
|
|
2080
|
-
heading:
|
|
2081
|
-
heads:
|
|
2082
|
-
rows:
|
|
2083
|
-
empty:
|
|
2078
|
+
ut(dt({
|
|
2079
|
+
title: u.download?.title ?? "",
|
|
2080
|
+
heading: u.download?.line ?? "",
|
|
2081
|
+
heads: u.heads,
|
|
2082
|
+
rows: u.all ?? u.rows,
|
|
2083
|
+
empty: u.empty,
|
|
2084
2084
|
dir: t ? getComputedStyle(t).direction : ""
|
|
2085
|
-
}),
|
|
2085
|
+
}), u.download?.file ?? "timeline.doc");
|
|
2086
2086
|
}
|
|
2087
|
-
return (t,
|
|
2088
|
-
|
|
2089
|
-
id: `mwnf-tlr-${
|
|
2090
|
-
value:
|
|
2091
|
-
disabled:
|
|
2092
|
-
onChange: (
|
|
2093
|
-
key:
|
|
2094
|
-
value:
|
|
2087
|
+
return (t, l) => (_(), i("div", Fi, [
|
|
2088
|
+
a("section", Ii, [a("div", Li, [a("p", Ri, [a("b", null, S(o.heading), 1), s(" | " + S(o.summary), 1)]), a("div", zi, [(_(!0), i(e, null, b(o.selects, (t) => (_(), i("p", { key: t.key }, [a("label", { for: `mwnf-tlr-${t.key}` }, S(t.label), 9, Bi), a("select", {
|
|
2089
|
+
id: `mwnf-tlr-${t.key}`,
|
|
2090
|
+
value: t.value,
|
|
2091
|
+
disabled: t.disabled || void 0,
|
|
2092
|
+
onChange: (e) => d("change", {
|
|
2093
|
+
key: t.key,
|
|
2094
|
+
value: e.target.value
|
|
2095
2095
|
})
|
|
2096
|
-
}, [(
|
|
2096
|
+
}, [(_(!0), i(e, null, b(t.options, (e) => (_(), i("option", {
|
|
2097
2097
|
key: e.value,
|
|
2098
2098
|
value: e.value
|
|
2099
|
-
},
|
|
2100
|
-
|
|
2099
|
+
}, S(e.label), 9, Hi))), 128))], 40, Vi)]))), 128))])])]),
|
|
2100
|
+
a("p", Ui, [(_(!0), i(e, null, b(o.back, (r) => (_(), i(e, { key: r.label }, [r.history ? (_(), i("button", {
|
|
2101
2101
|
key: 0,
|
|
2102
2102
|
type: "button",
|
|
2103
2103
|
class: "mwnf-standalone-item__back-link",
|
|
2104
|
-
onClick:
|
|
2105
|
-
},
|
|
2104
|
+
onClick: l[0] ||= (e) => t.$router.back()
|
|
2105
|
+
}, S(r.label), 1)) : (_(), n(q, {
|
|
2106
2106
|
key: 1,
|
|
2107
2107
|
class: "mwnf-standalone-item__back-link",
|
|
2108
|
-
to:
|
|
2109
|
-
href:
|
|
2108
|
+
to: r.to,
|
|
2109
|
+
href: r.href
|
|
2110
2110
|
}, {
|
|
2111
|
-
default:
|
|
2111
|
+
default: j(() => [s(S(r.label), 1)]),
|
|
2112
2112
|
_: 2
|
|
2113
2113
|
}, 1032, ["to", "href"]))], 64))), 128))]),
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
(
|
|
2114
|
+
f.value ? (_(), i("div", Wi, [a("h3", null, S(o.heads.date), 1), a("h3", null, S(o.heads.countryDescription), 1)])) : r("", !0),
|
|
2115
|
+
a("div", Gi, [a("div", Ki, [
|
|
2116
|
+
(_(!0), i(e, null, b(o.rows, (e) => (_(), i("div", {
|
|
2117
2117
|
key: e.id,
|
|
2118
2118
|
class: "mwnf-standalone-tlr__row"
|
|
2119
|
-
}, [
|
|
2120
|
-
|
|
2121
|
-
|
|
2119
|
+
}, [a("div", qi, [a("p", null, [a("span", null, S(e.date), 1)]), x(t.$slots, "media", { row: e })]), a("div", Ji, [a("p", null, [a("span", null, S(e.country), 1)]), a("div", { innerHTML: e.html }, null, 8, Yi)])]))), 128)),
|
|
2120
|
+
f.value ? r("", !0) : (_(), i("p", Xi, S(o.empty), 1)),
|
|
2121
|
+
o.pageInfo ? (_(), n(Pi, {
|
|
2122
2122
|
key: 1,
|
|
2123
|
-
"page-info":
|
|
2124
|
-
"previous-label":
|
|
2125
|
-
"next-label":
|
|
2126
|
-
onNavigate:
|
|
2123
|
+
"page-info": o.pageInfo,
|
|
2124
|
+
"previous-label": o.previousLabel,
|
|
2125
|
+
"next-label": o.nextLabel,
|
|
2126
|
+
onNavigate: l[1] ||= (e) => d("navigate", e)
|
|
2127
2127
|
}, null, 8, [
|
|
2128
2128
|
"page-info",
|
|
2129
2129
|
"previous-label",
|
|
2130
2130
|
"next-label"
|
|
2131
|
-
])) :
|
|
2132
|
-
]),
|
|
2133
|
-
|
|
2134
|
-
(
|
|
2131
|
+
])) : r("", !0)
|
|
2132
|
+
]), a("aside", Zi, [o.related ? (_(), i("div", Qi, [
|
|
2133
|
+
a("p", null, [a("strong", null, S(o.related.heading), 1)]),
|
|
2134
|
+
(_(!0), i(e, null, b(o.related.links ?? [], (e) => (_(), i("p", { key: e.label }, [c(q, {
|
|
2135
2135
|
class: "mwnf-standalone-tlr__link",
|
|
2136
2136
|
to: e.to,
|
|
2137
2137
|
href: e.href,
|
|
2138
2138
|
title: e.title,
|
|
2139
2139
|
target: e.target
|
|
2140
2140
|
}, {
|
|
2141
|
-
default:
|
|
2141
|
+
default: j(() => [s(S(e.label), 1)]),
|
|
2142
2142
|
_: 2
|
|
2143
2143
|
}, 1032, [
|
|
2144
2144
|
"to",
|
|
@@ -2146,30 +2146,30 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
2146
2146
|
"title",
|
|
2147
2147
|
"target"
|
|
2148
2148
|
])]))), 128)),
|
|
2149
|
-
|
|
2149
|
+
o.related.gallery ? (_(), i("p", $i, [c(q, {
|
|
2150
2150
|
class: "mwnf-standalone-tlr__link",
|
|
2151
|
-
to:
|
|
2152
|
-
title:
|
|
2151
|
+
to: o.related.gallery.to,
|
|
2152
|
+
title: o.related.gallery.title
|
|
2153
2153
|
}, {
|
|
2154
|
-
default:
|
|
2154
|
+
default: j(() => [s(S(o.related.gallery.label), 1)]),
|
|
2155
2155
|
_: 1
|
|
2156
|
-
}, 8, ["to", "title"])])) :
|
|
2157
|
-
])) :
|
|
2158
|
-
|
|
2159
|
-
|
|
2156
|
+
}, 8, ["to", "title"])])) : r("", !0)
|
|
2157
|
+
])) : r("", !0), o.download ? (_(), i("div", ea, [
|
|
2158
|
+
a("p", ta, S(o.download.heading), 1),
|
|
2159
|
+
a("p", null, [a("a", {
|
|
2160
2160
|
href: "#",
|
|
2161
2161
|
class: "mwnf-standalone-tlr__link",
|
|
2162
|
-
onClick:
|
|
2163
|
-
},
|
|
2164
|
-
|
|
2162
|
+
onClick: N(p, ["prevent"])
|
|
2163
|
+
}, S(o.download.pdf), 1)]),
|
|
2164
|
+
a("p", null, [a("a", {
|
|
2165
2165
|
href: "#",
|
|
2166
2166
|
class: "mwnf-standalone-tlr__link",
|
|
2167
|
-
onClick:
|
|
2168
|
-
},
|
|
2169
|
-
])) :
|
|
2167
|
+
onClick: N(m, ["prevent"])
|
|
2168
|
+
}, S(o.download.word), 1)])
|
|
2169
|
+
])) : r("", !0)])])
|
|
2170
2170
|
]));
|
|
2171
2171
|
}
|
|
2172
|
-
},
|
|
2172
|
+
}, ra = ["dir"], ia = { class: "mwnf-standalone-window__box" }, aa = { class: "mwnf-standalone-window__header" }, oa = { class: "mwnf-standalone-window__heading" }, sa = ["aria-label"], ca = { class: "mwnf-standalone-window__article" }, $ = {
|
|
2173
2173
|
__name: "Window",
|
|
2174
2174
|
props: {
|
|
2175
2175
|
heading: {
|
|
@@ -2189,19 +2189,19 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
2189
2189
|
function t() {
|
|
2190
2190
|
window.opener ? (window.opener.focus(), window.close()) : window.history.back();
|
|
2191
2191
|
}
|
|
2192
|
-
return (n, r) => (
|
|
2192
|
+
return (n, r) => (_(), i("div", {
|
|
2193
2193
|
class: "mwnf-standalone-window",
|
|
2194
2194
|
dir: e.dir || void 0
|
|
2195
|
-
}, [
|
|
2196
|
-
|
|
2195
|
+
}, [a("div", ia, [
|
|
2196
|
+
a("header", aa, [a("h1", oa, S(e.heading), 1), a("button", {
|
|
2197
2197
|
type: "button",
|
|
2198
2198
|
class: "mwnf-standalone-window__close",
|
|
2199
2199
|
"aria-label": e.closeLabel || void 0,
|
|
2200
2200
|
onClick: t
|
|
2201
|
-
}, "×", 8,
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
])], 8,
|
|
2201
|
+
}, "×", 8, sa)]),
|
|
2202
|
+
x(n.$slots, "before"),
|
|
2203
|
+
a("article", ca, [x(n.$slots, "default")])
|
|
2204
|
+
])], 8, ra));
|
|
2205
2205
|
}
|
|
2206
2206
|
}, la = {
|
|
2207
2207
|
class: "mwnf-standalone-hcr__scale",
|
|
@@ -2262,69 +2262,69 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
2262
2262
|
}
|
|
2263
2263
|
},
|
|
2264
2264
|
emits: ["change"],
|
|
2265
|
-
setup(
|
|
2266
|
-
let
|
|
2267
|
-
heading:
|
|
2268
|
-
close:
|
|
2269
|
-
country:
|
|
2270
|
-
range:
|
|
2271
|
-
}),
|
|
2272
|
-
let e = (Math.floor(
|
|
2273
|
-
return e + 700 > 2050 && (e = 1350), Array.from({ length: 14 }, (t,
|
|
2274
|
-
let
|
|
2265
|
+
setup(o, { emit: c }) {
|
|
2266
|
+
let l = o, u = c, d = l.texts ? U().t : (e) => e, p = t(() => l.labels ?? {
|
|
2267
|
+
heading: d(`${l.texts}.tl.title`),
|
|
2268
|
+
close: d("record.glossary.close"),
|
|
2269
|
+
country: d(`${l.texts}.hcr.country`),
|
|
2270
|
+
range: d(`${l.texts}.hcr.range`)
|
|
2271
|
+
}), m = t(() => {
|
|
2272
|
+
let e = (Math.floor(l.start / 50) - 2) * 50;
|
|
2273
|
+
return e + 700 > 2050 && (e = 1350), Array.from({ length: 14 }, (t, n) => {
|
|
2274
|
+
let r = e + 50 * n;
|
|
2275
2275
|
return {
|
|
2276
|
-
value:
|
|
2277
|
-
active:
|
|
2276
|
+
value: r,
|
|
2277
|
+
active: r >= l.start && r < l.end
|
|
2278
2278
|
};
|
|
2279
2279
|
});
|
|
2280
2280
|
});
|
|
2281
|
-
return (t,
|
|
2281
|
+
return (t, c) => (_(), n($, {
|
|
2282
2282
|
class: "mwnf-standalone-hcr",
|
|
2283
|
-
heading:
|
|
2284
|
-
"close-label":
|
|
2285
|
-
dir:
|
|
2283
|
+
heading: p.value.heading,
|
|
2284
|
+
"close-label": p.value.close,
|
|
2285
|
+
dir: o.dir
|
|
2286
2286
|
}, {
|
|
2287
|
-
before:
|
|
2287
|
+
before: j(() => [a("section", la, [a("div", ua, [(_(!0), i(e, null, b(m.value, (e) => (_(), i("span", {
|
|
2288
2288
|
key: e.value,
|
|
2289
|
-
class:
|
|
2290
|
-
},
|
|
2291
|
-
default:
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
value:
|
|
2295
|
-
"aria-label":
|
|
2296
|
-
onChange:
|
|
2289
|
+
class: f({ "mwnf-standalone-hcr__year--active": e.active })
|
|
2290
|
+
}, S(e.value), 3))), 128))]), c[2] ||= a("div", { class: "mwnf-standalone-hcr__lines" }, null, -1)])]),
|
|
2291
|
+
default: j(() => [a("div", da, [a("div", fa, [
|
|
2292
|
+
a("p", pa, S(p.value.country), 1),
|
|
2293
|
+
a("select", {
|
|
2294
|
+
value: o.country,
|
|
2295
|
+
"aria-label": p.value.country,
|
|
2296
|
+
onChange: c[0] ||= (e) => u("change", {
|
|
2297
2297
|
key: "country",
|
|
2298
2298
|
value: e.target.value
|
|
2299
2299
|
})
|
|
2300
|
-
}, [(
|
|
2300
|
+
}, [(_(!0), i(e, null, b(o.countries, (e) => (_(), i("option", {
|
|
2301
2301
|
key: e.value,
|
|
2302
2302
|
value: e.value
|
|
2303
|
-
},
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
value: String(
|
|
2307
|
-
"aria-label":
|
|
2308
|
-
onChange:
|
|
2303
|
+
}, S(e.label), 9, ha))), 128))], 40, ma),
|
|
2304
|
+
a("p", ga, S(p.value.range), 1),
|
|
2305
|
+
a("select", {
|
|
2306
|
+
value: String(o.range),
|
|
2307
|
+
"aria-label": p.value.range,
|
|
2308
|
+
onChange: c[1] ||= (e) => u("change", {
|
|
2309
2309
|
key: "start",
|
|
2310
2310
|
value: e.target.value
|
|
2311
2311
|
})
|
|
2312
|
-
}, [(
|
|
2312
|
+
}, [(_(!0), i(e, null, b(o.ranges, (e) => (_(), i("option", {
|
|
2313
2313
|
key: e.value,
|
|
2314
2314
|
value: String(e.value)
|
|
2315
|
-
},
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
src:
|
|
2319
|
-
alt:
|
|
2320
|
-
}, null, 8, ba)])) :
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
], 64)) :
|
|
2324
|
-
]),
|
|
2315
|
+
}, S(e.label), 9, va))), 128))], 40, _a),
|
|
2316
|
+
o.item ? (_(), i(e, { key: 0 }, [
|
|
2317
|
+
o.item.image ? (_(), i("div", ya, [a("img", {
|
|
2318
|
+
src: o.item.image,
|
|
2319
|
+
alt: o.item.name
|
|
2320
|
+
}, null, 8, ba)])) : r("", !0),
|
|
2321
|
+
o.item.name ? (_(), i("p", xa, [a("strong", { innerHTML: o.item.name }, null, 8, Sa)])) : r("", !0),
|
|
2322
|
+
o.item.lines?.length ? (_(), i("p", Ca, [(_(!0), i(e, null, b(o.item.lines, (t, n) => (_(), i(e, { key: n }, [s(S(t), 1), c[3] ||= a("br", null, null, -1)], 64))), 128))])) : r("", !0)
|
|
2323
|
+
], 64)) : r("", !0)
|
|
2324
|
+
]), a("div", wa, [a("h3", null, S(o.heading), 1), (_(!0), i(e, null, b(o.events, (e) => (_(), i("div", {
|
|
2325
2325
|
key: e.id,
|
|
2326
2326
|
class: "mwnf-standalone-hcr__event"
|
|
2327
|
-
}, [
|
|
2327
|
+
}, [a("p", null, [a("b", null, S(e.date), 1)]), a("div", {
|
|
2328
2328
|
class: "mwnf-standalone-hcr__text",
|
|
2329
2329
|
innerHTML: e.html
|
|
2330
2330
|
}, null, 8, Ta)]))), 128))])])]),
|
|
@@ -2358,45 +2358,45 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
2358
2358
|
default: "core.pagination.next"
|
|
2359
2359
|
}
|
|
2360
2360
|
},
|
|
2361
|
-
setup(
|
|
2362
|
-
let
|
|
2361
|
+
setup(n) {
|
|
2362
|
+
let o = n, { t: s } = U(), l = J(), u = y(0), d = t(() => Math.max(0, o.slides.length - o.visible)), f = t(() => o.slides.slice(u.value, u.value + o.visible).map((e) => ({
|
|
2363
2363
|
...e,
|
|
2364
|
-
image:
|
|
2365
|
-
label: e.label ?
|
|
2364
|
+
image: l(e.image) ?? "",
|
|
2365
|
+
label: e.label ? s(e.label) : ""
|
|
2366
2366
|
})));
|
|
2367
|
-
return (t,
|
|
2367
|
+
return (t, o) => n.slides.length ? (_(), i("div", {
|
|
2368
2368
|
key: 0,
|
|
2369
2369
|
class: "mwnf-standalone-slider",
|
|
2370
|
-
style:
|
|
2370
|
+
style: m({ "--mwnf-standalone-slider-count": n.visible })
|
|
2371
2371
|
}, [
|
|
2372
|
-
|
|
2372
|
+
a("button", {
|
|
2373
2373
|
type: "button",
|
|
2374
2374
|
class: "mwnf-standalone-slider__button",
|
|
2375
|
-
disabled:
|
|
2376
|
-
"aria-label":
|
|
2377
|
-
onClick:
|
|
2375
|
+
disabled: u.value === 0,
|
|
2376
|
+
"aria-label": C(s)(n.previousLabel),
|
|
2377
|
+
onClick: o[0] ||= (e) => u.value = Math.max(0, u.value - 1)
|
|
2378
2378
|
}, "‹", 8, Da),
|
|
2379
|
-
|
|
2379
|
+
a("ul", Oa, [(_(!0), i(e, null, b(f.value, (e) => (_(), i("li", {
|
|
2380
2380
|
key: e.image,
|
|
2381
2381
|
class: "mwnf-standalone-slider__slide"
|
|
2382
|
-
}, [
|
|
2382
|
+
}, [c(q, {
|
|
2383
2383
|
to: e.to,
|
|
2384
2384
|
href: e.href
|
|
2385
2385
|
}, {
|
|
2386
|
-
default:
|
|
2386
|
+
default: j(() => [a("img", {
|
|
2387
2387
|
src: e.image,
|
|
2388
2388
|
alt: e.label
|
|
2389
|
-
}, null, 8, ka), e.label ? (
|
|
2389
|
+
}, null, 8, ka), e.label ? (_(), i("span", Aa, S(e.label), 1)) : r("", !0)]),
|
|
2390
2390
|
_: 2
|
|
2391
2391
|
}, 1032, ["to", "href"])]))), 128))]),
|
|
2392
|
-
|
|
2392
|
+
a("button", {
|
|
2393
2393
|
type: "button",
|
|
2394
2394
|
class: "mwnf-standalone-slider__button",
|
|
2395
|
-
disabled:
|
|
2396
|
-
"aria-label":
|
|
2397
|
-
onClick:
|
|
2395
|
+
disabled: u.value >= d.value,
|
|
2396
|
+
"aria-label": C(s)(n.nextLabel),
|
|
2397
|
+
onClick: o[1] ||= (e) => u.value = Math.min(d.value, u.value + 1)
|
|
2398
2398
|
}, "›", 8, ja)
|
|
2399
|
-
], 4)) :
|
|
2399
|
+
], 4)) : r("", !0);
|
|
2400
2400
|
}
|
|
2401
2401
|
}, Na = { class: "mwnf-standalone-glossary" }, Pa = { class: "mwnf-standalone-glossary__intro" }, Fa = { class: "mwnf-standalone-glossary__body" }, Ia = { class: "mwnf-standalone-glossary__field" }, La = ["aria-expanded", "aria-label"], Ra = {
|
|
2402
2402
|
key: 0,
|
|
@@ -2425,71 +2425,71 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
2425
2425
|
default: ""
|
|
2426
2426
|
}
|
|
2427
2427
|
},
|
|
2428
|
-
setup(
|
|
2429
|
-
let
|
|
2430
|
-
|
|
2431
|
-
await
|
|
2428
|
+
setup(o) {
|
|
2429
|
+
let s = o, c = H(), l = ee(s.entity), u = t(() => c.availableLanguages(s.entity).slice().sort());
|
|
2430
|
+
g(async () => {
|
|
2431
|
+
await L([s.entity]), await Promise.all(u.value.map((e) => c.loadTranslations(s.entity, e)));
|
|
2432
2432
|
});
|
|
2433
|
-
let
|
|
2434
|
-
let e =
|
|
2435
|
-
if (!e ||
|
|
2436
|
-
let
|
|
2437
|
-
for (let
|
|
2438
|
-
let
|
|
2439
|
-
|
|
2433
|
+
let d = y(""), p = y(null), m = y(-1), h = (e, t) => c.translations(s.entity, t)[e.id] ?? {}, v = t(() => {
|
|
2434
|
+
let e = I(d.value.trim());
|
|
2435
|
+
if (!e || p.value) return [];
|
|
2436
|
+
let t = /* @__PURE__ */ new Map();
|
|
2437
|
+
for (let n of l.value ?? []) for (let r of h(n, s.language).spellings ?? []) {
|
|
2438
|
+
let i = String(r).trim();
|
|
2439
|
+
i && I(i).startsWith(e) && t.set(i, n);
|
|
2440
2440
|
}
|
|
2441
|
-
return [...
|
|
2441
|
+
return [...t].map(([e, t]) => ({
|
|
2442
2442
|
spelling: e,
|
|
2443
2443
|
term: t
|
|
2444
|
-
})).sort((e, t) =>
|
|
2445
|
-
}),
|
|
2446
|
-
if (!
|
|
2444
|
+
})).sort((e, t) => I(e.spelling) < I(t.spelling) ? -1 : +(I(e.spelling) > I(t.spelling)));
|
|
2445
|
+
}), x = t(() => p.value ? R(h(p.value, s.language).definition ?? "") : ""), C = t(() => {
|
|
2446
|
+
if (!p.value) return [];
|
|
2447
2447
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2448
|
-
for (let n of
|
|
2449
|
-
let n =
|
|
2448
|
+
for (let n of u.value) for (let r of h(p.value, n).spellings ?? []) {
|
|
2449
|
+
let n = I(String(r).trim());
|
|
2450
2450
|
n && !e.has(n) && (e.add(n), t.push(String(r).trim()));
|
|
2451
2451
|
}
|
|
2452
2452
|
return t;
|
|
2453
2453
|
});
|
|
2454
|
-
function
|
|
2455
|
-
|
|
2454
|
+
function w(e) {
|
|
2455
|
+
p.value = e.term, d.value = e.spelling, m.value = -1;
|
|
2456
2456
|
}
|
|
2457
|
-
function
|
|
2458
|
-
|
|
2457
|
+
function T() {
|
|
2458
|
+
p.value = null, m.value = -1;
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2461
|
-
let t =
|
|
2462
|
-
t.length && (e.key === "ArrowDown" ? (e.preventDefault(),
|
|
2460
|
+
function E(e) {
|
|
2461
|
+
let t = v.value;
|
|
2462
|
+
t.length && (e.key === "ArrowDown" ? (e.preventDefault(), m.value = (m.value + 1) % t.length) : e.key === "ArrowUp" ? (e.preventDefault(), m.value = (m.value - 1 + t.length) % t.length) : e.key === "Enter" && m.value >= 0 && (e.preventDefault(), w(t[m.value])));
|
|
2463
2463
|
}
|
|
2464
|
-
return (t,
|
|
2465
|
-
heading:
|
|
2466
|
-
"close-label":
|
|
2467
|
-
dir:
|
|
2464
|
+
return (t, s) => (_(), n($, {
|
|
2465
|
+
heading: o.labels.heading,
|
|
2466
|
+
"close-label": o.labels.close,
|
|
2467
|
+
dir: o.dir
|
|
2468
2468
|
}, {
|
|
2469
|
-
default:
|
|
2470
|
-
"onUpdate:modelValue":
|
|
2469
|
+
default: j(() => [a("div", Na, [a("h2", Pa, S(o.labels.intro), 1), a("div", Fa, [a("div", Ia, [M(a("input", {
|
|
2470
|
+
"onUpdate:modelValue": s[0] ||= (e) => d.value = e,
|
|
2471
2471
|
type: "text",
|
|
2472
2472
|
class: "mwnf-standalone-glossary__input",
|
|
2473
2473
|
role: "combobox",
|
|
2474
2474
|
"aria-autocomplete": "list",
|
|
2475
|
-
"aria-expanded":
|
|
2476
|
-
"aria-label":
|
|
2477
|
-
onInput:
|
|
2478
|
-
onKeydown:
|
|
2479
|
-
}, null, 40, La), [[
|
|
2475
|
+
"aria-expanded": v.value.length > 0,
|
|
2476
|
+
"aria-label": o.labels.heading,
|
|
2477
|
+
onInput: T,
|
|
2478
|
+
onKeydown: E
|
|
2479
|
+
}, null, 40, La), [[O, d.value]]), v.value.length ? (_(), i("ul", Ra, [(_(!0), i(e, null, b(v.value, (e, t) => (_(), i("li", {
|
|
2480
2480
|
key: e.spelling,
|
|
2481
2481
|
role: "option",
|
|
2482
|
-
"aria-selected": t ===
|
|
2483
|
-
class:
|
|
2484
|
-
onMousedown:
|
|
2485
|
-
},
|
|
2482
|
+
"aria-selected": t === m.value,
|
|
2483
|
+
class: f(["mwnf-standalone-glossary__suggestion", { "mwnf-standalone-glossary__suggestion--active": t === m.value }]),
|
|
2484
|
+
onMousedown: N((t) => w(e), ["prevent"])
|
|
2485
|
+
}, S(e.spelling), 43, za))), 128))])) : r("", !0)]), a("div", Ba, [p.value ? (_(), i(e, { key: 0 }, [x.value ? (_(), i(e, { key: 0 }, [a("h3", Va, S(o.labels.definition), 1), a("div", {
|
|
2486
2486
|
class: "mwnf-standalone-glossary__definition",
|
|
2487
|
-
innerHTML:
|
|
2488
|
-
}, null, 8, Ha)], 64)) :
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
], 64)) :
|
|
2487
|
+
innerHTML: x.value
|
|
2488
|
+
}, null, 8, Ha)], 64)) : r("", !0), C.value.length ? (_(), i(e, { key: 1 }, [
|
|
2489
|
+
a("h3", Ua, S(o.labels.spellings), 1),
|
|
2490
|
+
a("p", Wa, S(o.labels.spellingsNote), 1),
|
|
2491
|
+
a("ul", Ga, [(_(!0), i(e, null, b(C.value, (e) => (_(), i("li", { key: e }, S(e), 1))), 128))])
|
|
2492
|
+
], 64)) : r("", !0)], 64)) : r("", !0)])])])]),
|
|
2493
2493
|
_: 1
|
|
2494
2494
|
}, 8, [
|
|
2495
2495
|
"heading",
|
|
@@ -2498,4 +2498,4 @@ var kt = { class: "mwnf-standalone-item__top" }, At = { class: "mwnf-standalone-
|
|
|
2498
2498
|
]));
|
|
2499
2499
|
}
|
|
2500
2500
|
};
|
|
2501
|
-
export {
|
|
2501
|
+
export { wt as RelatedContent, Q as SEE_ALSO_LABELS, de as StandaloneBanner, fi as StandaloneDatabaseForm, Ka as StandaloneGlossarySpelling, Ea as StandaloneHistoricalCrossRef, nt as StandaloneHome, Nt as StandaloneItemSheet, Pi as StandalonePagination, fr as StandalonePartnerList, ln as StandalonePartnerPage, Rr as StandalonePartnersEntrance, nr as StandaloneRefine, kn as StandaloneResultsGrid, Xn as StandaloneResultsList, Le as StandaloneShell, Ma as StandaloneSlider, Tr as StandaloneSponsorList, ke as StandaloneSponsors, gn as StandaloneSubNav, pn as StandaloneTextPage, Qe as StandaloneTileGrid, Oi as StandaloneTimelineEntrance, na as StandaloneTimelineResults, $ as StandaloneWindow, Ge as TodayHighlight, fe as byLanguage, pe as dayOfYear, me as legacyHomeItemKey, Y as pickForDay, kt as seeAlsoOf, Et as trailTitle };
|