@museumwnf/viewer-layout 3.91.0 → 3.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist/globalDatabase-DwTGcqXU.js +262 -0
- package/dist/index.js +2 -1
- package/dist/minisite.js +339 -347
- package/dist/standalone.js +992 -664
- package/dist/viewer-layout.css +1 -1
- package/package.json +1 -1
package/dist/standalone.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
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,
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import { byId as
|
|
4
|
-
import { t as
|
|
5
|
-
import { r as
|
|
6
|
-
import { c as
|
|
7
|
-
import { n as
|
|
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, mergeProps as d, nextTick as f, normalizeClass as p, normalizeProps as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, reactive as y, ref as b, renderList as x, renderSlot as S, resolveComponent as C, resolveDynamicComponent as w, toDisplayString as T, unref as E, useId as D, useModel as O, useSlots as k, vModelCheckbox as A, vModelSelect as j, vModelText as M, vShow as N, watch as P, withCtx as F, withDirectives as I, withModifiers as L } from "vue";
|
|
2
|
+
import { useRoute as ee, useRouter as te } from "vue-router";
|
|
3
|
+
import { byId as R, collate as z, entityRef as ne, loadEntities as B, md as V, pictureCredits as re, picturesInLanguage as ie, removeEndingPoint as H, renderBlock as U, renderInline as W, renderPlain as G, useDataPackage as ae, useI18n as K, useSection as oe, useSiteConfig as se } from "@museumwnf/viewer-core";
|
|
4
|
+
import { t as ce } from "./SiteShell-D0u1FGMu.js";
|
|
5
|
+
import { r as q } from "./chrome-Bv_mLlHM.js";
|
|
6
|
+
import { c as le, d as J, n as ue, t as Y } from "./PartnerMap-DdyMLtgH.js";
|
|
7
|
+
import { n as X, t as Z } from "./RecordView-DAvWufWV.js";
|
|
8
|
+
import { S as de, _ as fe, b as pe, c as me, f as he, g as ge, h as _e, i as ve, m as ye, n as be, p as Q, r as xe, t as Se, v as Ce, x as we, y as Te } from "./globalDatabase-DwTGcqXU.js";
|
|
8
9
|
// src/standalone/Banner.vue
|
|
9
|
-
var
|
|
10
|
+
var Ee = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "mwnf-standalone-banner__title"
|
|
12
|
-
},
|
|
13
|
+
}, De = {
|
|
13
14
|
__name: "Banner",
|
|
14
15
|
props: {
|
|
15
16
|
image: {
|
|
@@ -22,116 +23,107 @@ var fe = {
|
|
|
22
23
|
}
|
|
23
24
|
},
|
|
24
25
|
setup(e) {
|
|
25
|
-
return (t, n) => (
|
|
26
|
+
return (t, n) => (v(), i("div", {
|
|
26
27
|
class: "mwnf-standalone-banner",
|
|
27
|
-
style:
|
|
28
|
-
}, [e.title ? (
|
|
28
|
+
style: h(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
|
|
29
|
+
}, [e.title ? (v(), i("h1", Ee, [a("span", null, T(e.title), 1)])) : r("", !0)], 4));
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
32
|
// src/standalone/chrome.js
|
|
32
|
-
function
|
|
33
|
-
let e =
|
|
34
|
-
return (t) =>
|
|
33
|
+
function Oe() {
|
|
34
|
+
let e = se();
|
|
35
|
+
return (t) => q(e.chrome, t);
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function ke(e, t) {
|
|
37
38
|
return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function Ae(e = /* @__PURE__ */ new Date()) {
|
|
40
41
|
let t = new Date(e.getFullYear(), 0, 1);
|
|
41
42
|
return Math.round((new Date(e.getFullYear(), e.getMonth(), e.getDate()) - t) / 864e5);
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
return e?.length ? e[
|
|
44
|
+
function je(e, t = /* @__PURE__ */ new Date()) {
|
|
45
|
+
return e?.length ? e[Ae(t) % e.length] : null;
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
47
|
+
function Me(e, t = /* @__PURE__ */ new Date()) {
|
|
48
|
+
return Ne(e, t)?.images[0].url ?? "";
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
return !t || n.length < 5 ? "" : [
|
|
52
|
-
"mwnf3",
|
|
53
|
-
`${t}s`,
|
|
54
|
-
...n.slice(0, n.length - 1)
|
|
55
|
-
].join(":");
|
|
50
|
+
function Ne(e, t = /* @__PURE__ */ new Date()) {
|
|
51
|
+
return je([...e?.values?.() ?? e ?? []].filter((e) => e?.images?.[0]?.url).sort((e, t) => e.id < t.id ? -1 : +(e.id > t.id)), t);
|
|
56
52
|
}
|
|
57
|
-
|
|
58
|
-
function Y(e) {
|
|
59
|
-
return (e ?? []).every((e) => _e.test(String(e ?? "").trim()));
|
|
60
|
-
}
|
|
61
|
-
function ve(e, { byId: t, byLegacyKey: n = null, date: r = /* @__PURE__ */ new Date() } = {}) {
|
|
53
|
+
function Pe(e, { byId: t, date: n = /* @__PURE__ */ new Date() } = {}) {
|
|
62
54
|
if (!e?.length) return null;
|
|
63
|
-
let
|
|
64
|
-
for (let
|
|
65
|
-
let
|
|
66
|
-
if (
|
|
55
|
+
let r = Ae(n) % e.length;
|
|
56
|
+
for (let n = 0; n < e.length; n++) {
|
|
57
|
+
let i = t?.get(String(e[(r + n) % e.length] ?? "").trim());
|
|
58
|
+
if (i) return i;
|
|
67
59
|
}
|
|
68
60
|
return null;
|
|
69
61
|
}
|
|
70
62
|
// src/standalone/Sponsors.vue
|
|
71
|
-
var
|
|
63
|
+
var Fe = { class: "mwnf-standalone-sponsors" }, Ie = {
|
|
72
64
|
key: 0,
|
|
73
65
|
class: "mwnf-standalone-sponsors__text"
|
|
74
|
-
},
|
|
66
|
+
}, Le = ["innerHTML"], Re = { key: 1 }, ze = ["innerHTML"], Be = {
|
|
75
67
|
key: 1,
|
|
76
68
|
class: "mwnf-standalone-sponsors__title"
|
|
77
|
-
},
|
|
69
|
+
}, Ve = {
|
|
78
70
|
key: 2,
|
|
79
71
|
class: "mwnf-standalone-sponsors__logos"
|
|
80
|
-
},
|
|
72
|
+
}, He = {
|
|
81
73
|
key: 0,
|
|
82
74
|
class: "mwnf-standalone-sponsors__note"
|
|
83
|
-
},
|
|
75
|
+
}, Ue = ["src", "alt"], We = ["innerHTML"], Ge = ["href"], Ke = ["src", "alt"], qe = ["src", "alt"], Je = {
|
|
84
76
|
key: 3,
|
|
85
77
|
class: "mwnf-standalone-sponsors__links"
|
|
86
|
-
},
|
|
78
|
+
}, Ye = {
|
|
87
79
|
__name: "Sponsors",
|
|
88
80
|
props: { columns: {
|
|
89
81
|
type: Array,
|
|
90
82
|
default: () => []
|
|
91
83
|
} },
|
|
92
84
|
setup(n) {
|
|
93
|
-
let o = n, { t: l } =
|
|
85
|
+
let o = n, { t: l } = K(), u = Oe(), d = t(() => o.columns.map((e, t) => ({
|
|
94
86
|
key: t,
|
|
95
87
|
width: e.width ?? null,
|
|
96
|
-
lead: e.lead ?
|
|
97
|
-
text: e.text ?
|
|
88
|
+
lead: e.lead ? W(l(e.lead)) : "",
|
|
89
|
+
text: e.text ? W(l(e.text)) : "",
|
|
98
90
|
break: !!e.break,
|
|
99
91
|
title: e.title ? l(e.title) : "",
|
|
100
92
|
logos: (e.logos ?? []).map((e) => ({
|
|
101
93
|
src: u(e.src) ?? "",
|
|
102
94
|
alt: e.alt ? l(e.alt) : "",
|
|
103
95
|
href: e.href ?? "",
|
|
104
|
-
note: e.note ?
|
|
96
|
+
note: e.note ? U(l(e.note)) : ""
|
|
105
97
|
})),
|
|
106
98
|
links: (e.links ?? []).map((e) => ({
|
|
107
99
|
...e,
|
|
108
100
|
label: l(e.label)
|
|
109
101
|
}))
|
|
110
102
|
})));
|
|
111
|
-
return (t, n) => (
|
|
103
|
+
return (t, n) => (v(), i("div", Fe, [(v(!0), i(e, null, x(d.value, (t) => (v(), i("div", {
|
|
112
104
|
key: t.key,
|
|
113
105
|
class: "mwnf-standalone-sponsors__column",
|
|
114
|
-
style:
|
|
106
|
+
style: h(t.width ? { flexGrow: t.width } : void 0)
|
|
115
107
|
}, [
|
|
116
|
-
t.lead || t.text ? (
|
|
117
|
-
t.lead ? (
|
|
108
|
+
t.lead || t.text ? (v(), i("p", Ie, [
|
|
109
|
+
t.lead ? (v(), i("i", {
|
|
118
110
|
key: 0,
|
|
119
111
|
innerHTML: t.lead
|
|
120
|
-
}, null, 8,
|
|
121
|
-
t.lead && t.break ? (
|
|
122
|
-
t.text ? (
|
|
112
|
+
}, null, 8, Le)) : r("", !0),
|
|
113
|
+
t.lead && t.break ? (v(), i("br", Re)) : t.lead && t.text ? (v(), i(e, { key: 2 }, [s(T(" "))], 64)) : r("", !0),
|
|
114
|
+
t.text ? (v(), i("span", {
|
|
123
115
|
key: 3,
|
|
124
116
|
innerHTML: t.text
|
|
125
|
-
}, null, 8,
|
|
117
|
+
}, null, 8, ze)) : r("", !0)
|
|
126
118
|
])) : r("", !0),
|
|
127
|
-
t.title ? (
|
|
128
|
-
t.logos.length ? (
|
|
119
|
+
t.title ? (v(), i("p", Be, T(t.title), 1)) : r("", !0),
|
|
120
|
+
t.logos.length ? (v(), i("ul", Ve, [(v(!0), i(e, null, x(t.logos, (e) => (v(), i("li", { key: e.src }, [e.note ? (v(), i("details", He, [a("summary", null, [a("img", {
|
|
129
121
|
src: e.src,
|
|
130
122
|
alt: e.alt
|
|
131
|
-
}, null, 8,
|
|
123
|
+
}, null, 8, Ue)]), a("div", {
|
|
132
124
|
class: "mwnf-standalone-sponsors__note-body",
|
|
133
125
|
innerHTML: e.note
|
|
134
|
-
}, null, 8,
|
|
126
|
+
}, null, 8, We)])) : e.href ? (v(), i("a", {
|
|
135
127
|
key: 1,
|
|
136
128
|
href: e.href,
|
|
137
129
|
target: "_blank",
|
|
@@ -139,17 +131,17 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
|
|
|
139
131
|
}, [a("img", {
|
|
140
132
|
src: e.src,
|
|
141
133
|
alt: e.alt
|
|
142
|
-
}, null, 8,
|
|
134
|
+
}, null, 8, Ke)], 8, Ge)) : (v(), i("img", {
|
|
143
135
|
key: 2,
|
|
144
136
|
src: e.src,
|
|
145
137
|
alt: e.alt
|
|
146
|
-
}, null, 8,
|
|
147
|
-
t.links.length ? (
|
|
138
|
+
}, null, 8, qe))]))), 128))])) : r("", !0),
|
|
139
|
+
t.links.length ? (v(), i("ul", Je, [(v(!0), i(e, null, x(t.links, (e) => (v(), i("li", { key: e.label }, [c(J, {
|
|
148
140
|
to: e.to,
|
|
149
141
|
href: e.href,
|
|
150
142
|
external: !!e.external
|
|
151
143
|
}, {
|
|
152
|
-
default:
|
|
144
|
+
default: F(() => [s(T(e.label), 1)]),
|
|
153
145
|
_: 2
|
|
154
146
|
}, 1032, [
|
|
155
147
|
"to",
|
|
@@ -158,16 +150,16 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
|
|
|
158
150
|
])]))), 128))])) : r("", !0)
|
|
159
151
|
], 4))), 128))]));
|
|
160
152
|
}
|
|
161
|
-
},
|
|
153
|
+
}, Xe = {
|
|
162
154
|
key: 0,
|
|
163
155
|
class: "mwnf-standalone mwnf-standalone--bare"
|
|
164
|
-
},
|
|
156
|
+
}, Ze = { class: "mwnf-banner mwnf-standalone-home-banner" }, Qe = ["src"], $e = { class: "mwnf-standalone-home-banner__text" }, et = {
|
|
165
157
|
key: 0,
|
|
166
158
|
class: "mwnf-standalone-home-banner__title"
|
|
167
|
-
},
|
|
159
|
+
}, tt = {
|
|
168
160
|
key: 1,
|
|
169
161
|
class: "mwnf-standalone-home-banner__line"
|
|
170
|
-
},
|
|
162
|
+
}, nt = ["src"], rt = {
|
|
171
163
|
__name: "Shell",
|
|
172
164
|
props: {
|
|
173
165
|
language: {
|
|
@@ -181,31 +173,31 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
|
|
|
181
173
|
},
|
|
182
174
|
emits: ["update:language"],
|
|
183
175
|
setup(e, { emit: s }) {
|
|
184
|
-
let l = e, u = s, { t: d, locale:
|
|
185
|
-
let e = y.value.logo ?? {}, t =
|
|
176
|
+
let l = e, u = s, { t: d, locale: f } = K(), m = ee(), h = t(() => !!m.meta?.bare), g = se(), _ = oe(), y = t(() => g.standalone ?? {}), b = t(() => g.navigation ?? {}), x = t(() => _.value === "home"), C = t(() => y.value.areas?.[_.value] ?? null), w = (e) => q(g.chrome, ke(e, f.value)), D = t(() => {
|
|
177
|
+
let e = y.value.logo ?? {}, t = w(C.value?.logo ?? e.src);
|
|
186
178
|
return t ? {
|
|
187
179
|
logo: t,
|
|
188
180
|
alt: e.alt ?? ""
|
|
189
181
|
} : null;
|
|
190
|
-
}), O = t(() =>
|
|
182
|
+
}), O = t(() => w(y.value.logo?.print)), k = t(() => (y.value.headerLinks ?? []).filter((e) => !e.on || e.on === "all" || e.on === (x.value ? "home" : "inner"))), A = t(() => {
|
|
191
183
|
let e = {
|
|
192
184
|
...y.value.banner ?? {},
|
|
193
|
-
...
|
|
185
|
+
...C.value?.banner ?? {}
|
|
194
186
|
};
|
|
195
|
-
return
|
|
196
|
-
}),
|
|
197
|
-
let e = m.meta?.bannerTitle ?? b.value.sectionTitles?.[
|
|
187
|
+
return w(x.value ? e.home : e.inner) ?? "";
|
|
188
|
+
}), j = t(() => {
|
|
189
|
+
let e = m.meta?.bannerTitle ?? b.value.sectionTitles?.[_.value];
|
|
198
190
|
return e ? d(e) : "";
|
|
199
|
-
}),
|
|
191
|
+
}), M = t(() => !x.value && !!(A.value || j.value)), N = t(() => {
|
|
200
192
|
let { homeTitle: e, homeText: t } = y.value.banner ?? {};
|
|
201
|
-
return
|
|
193
|
+
return x.value && (e || t) ? {
|
|
202
194
|
title: e ? d(e) : "",
|
|
203
195
|
text: t ? d(t) : ""
|
|
204
196
|
} : null;
|
|
205
|
-
}),
|
|
197
|
+
}), P = t(() => {
|
|
206
198
|
let e = y.value.sponsors;
|
|
207
|
-
return e?.columns?.length && (e.on === "all" ||
|
|
208
|
-
}),
|
|
199
|
+
return e?.columns?.length && (e.on === "all" || x.value) ? e : null;
|
|
200
|
+
}), I = t(() => ({
|
|
209
201
|
navigation: {
|
|
210
202
|
...b.value,
|
|
211
203
|
headerLinks: k.value,
|
|
@@ -214,68 +206,68 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
|
|
|
214
206
|
},
|
|
215
207
|
banner: null,
|
|
216
208
|
...D.value ? { brand: D.value } : {}
|
|
217
|
-
})), L = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
209
|
+
})), L = (/* @__PURE__ */ new Date()).getFullYear(), te = t(() => y.value.copyright ? `${d(y.value.copyright)} ${L}` : ""), R = t(() => [
|
|
218
210
|
"mwnf-standalone",
|
|
219
|
-
|
|
220
|
-
|
|
211
|
+
x.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
|
|
212
|
+
C.value?.class ?? ""
|
|
221
213
|
]);
|
|
222
|
-
return (e, t) => h.value ? (
|
|
214
|
+
return (e, t) => h.value ? (v(), i("div", Xe, [S(e.$slots, "default")])) : (v(), n(ce, {
|
|
223
215
|
key: 1,
|
|
224
|
-
class:
|
|
225
|
-
config:
|
|
216
|
+
class: p(R.value),
|
|
217
|
+
config: I.value,
|
|
226
218
|
languages: y.value.languages === !1 ? [] : l.languages,
|
|
227
219
|
language: l.language,
|
|
228
220
|
"language-placement": "header",
|
|
229
221
|
"language-style": "select",
|
|
230
222
|
"header-home": y.value.logo?.href ?? "",
|
|
231
|
-
"header-title":
|
|
232
|
-
"header-subtitle":
|
|
223
|
+
"header-title": x.value ? "" : y.value.heading ? E(d)(y.value.heading) : "",
|
|
224
|
+
"header-subtitle": x.value ? "" : y.value.subheading ? E(d)(y.value.subheading) : "",
|
|
233
225
|
"header-title-href": "#/",
|
|
234
|
-
"banner-image":
|
|
235
|
-
"footer-text":
|
|
226
|
+
"banner-image": x.value && !N.value ? A.value : "",
|
|
227
|
+
"footer-text": te.value || void 0,
|
|
236
228
|
"onUpdate:language": t[0] ||= (e) => u("update:language", e)
|
|
237
229
|
}, o({
|
|
238
|
-
default:
|
|
230
|
+
default: F(() => [S(e.$slots, "default")]),
|
|
239
231
|
_: 2
|
|
240
232
|
}, [
|
|
241
|
-
|
|
233
|
+
M.value ? {
|
|
242
234
|
name: "banner",
|
|
243
|
-
fn:
|
|
235
|
+
fn: F(() => [c(De, {
|
|
244
236
|
image: A.value,
|
|
245
|
-
title:
|
|
237
|
+
title: j.value
|
|
246
238
|
}, null, 8, ["image", "title"])]),
|
|
247
239
|
key: "0"
|
|
248
|
-
} :
|
|
240
|
+
} : N.value ? {
|
|
249
241
|
name: "banner",
|
|
250
|
-
fn:
|
|
242
|
+
fn: F(() => [a("section", Ze, [A.value ? (v(), i("img", {
|
|
251
243
|
key: 0,
|
|
252
244
|
class: "mwnf-banner__image",
|
|
253
245
|
src: A.value,
|
|
254
246
|
alt: ""
|
|
255
|
-
}, null, 8,
|
|
247
|
+
}, null, 8, Qe)) : r("", !0), a("div", $e, [N.value.title ? (v(), i("h2", et, [a("i", null, T(N.value.title), 1)])) : r("", !0), N.value.text ? (v(), i("p", tt, [a("span", null, T(N.value.text), 1)])) : r("", !0)])])]),
|
|
256
248
|
key: "1"
|
|
257
249
|
} : void 0,
|
|
258
250
|
O.value ? {
|
|
259
251
|
name: "notice",
|
|
260
|
-
fn:
|
|
252
|
+
fn: F(() => [a("img", {
|
|
261
253
|
class: "mwnf-standalone__print-logo",
|
|
262
254
|
src: O.value,
|
|
263
255
|
alt: ""
|
|
264
|
-
}, null, 8,
|
|
256
|
+
}, null, 8, nt)]),
|
|
265
257
|
key: "2"
|
|
266
258
|
} : void 0,
|
|
267
259
|
e.$slots.sponsors ? {
|
|
268
260
|
name: "sponsors",
|
|
269
|
-
fn:
|
|
261
|
+
fn: F(() => [S(e.$slots, "sponsors")]),
|
|
270
262
|
key: "3"
|
|
271
|
-
} :
|
|
263
|
+
} : P.value ? {
|
|
272
264
|
name: "sponsors",
|
|
273
|
-
fn:
|
|
265
|
+
fn: F(() => [c(Ye, { columns: P.value.columns }, null, 8, ["columns"])]),
|
|
274
266
|
key: "4"
|
|
275
267
|
} : void 0,
|
|
276
268
|
e.$slots.footer ? {
|
|
277
269
|
name: "footer",
|
|
278
|
-
fn:
|
|
270
|
+
fn: F(() => [S(e.$slots, "footer")]),
|
|
279
271
|
key: "5"
|
|
280
272
|
} : void 0
|
|
281
273
|
]), 1032, [
|
|
@@ -290,19 +282,19 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
|
|
|
290
282
|
"footer-text"
|
|
291
283
|
]));
|
|
292
284
|
}
|
|
293
|
-
},
|
|
285
|
+
}, it = {
|
|
294
286
|
key: 0,
|
|
295
287
|
class: "mwnf-standalone-highlight"
|
|
296
|
-
},
|
|
288
|
+
}, at = ["src", "alt"], ot = {
|
|
297
289
|
key: 1,
|
|
298
290
|
class: "mwnf-standalone-highlight__heading"
|
|
299
|
-
},
|
|
291
|
+
}, st = { class: "mwnf-standalone-highlight__lines" }, ct = ["innerHTML"], lt = {
|
|
300
292
|
key: 2,
|
|
301
293
|
class: "mwnf-standalone-highlight__place"
|
|
302
|
-
},
|
|
294
|
+
}, ut = {
|
|
303
295
|
key: 3,
|
|
304
296
|
class: "mwnf-standalone-highlight__action"
|
|
305
|
-
},
|
|
297
|
+
}, dt = {
|
|
306
298
|
__name: "TodayHighlight",
|
|
307
299
|
props: {
|
|
308
300
|
record: {
|
|
@@ -343,51 +335,51 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
|
|
|
343
335
|
}
|
|
344
336
|
},
|
|
345
337
|
setup(o) {
|
|
346
|
-
let l = o, { t: u } =
|
|
338
|
+
let l = o, { t: u } = K(), d = (e) => H(Array.isArray(e) ? e.join("; ") : e), f = t(() => {
|
|
347
339
|
let e = l.text ?? {}, t = [], n = d(e.name ?? l.record?.internal_name ?? "");
|
|
348
|
-
n && t.push(
|
|
340
|
+
n && t.push(W(n));
|
|
349
341
|
let r = d(e.alternate_name);
|
|
350
|
-
r && t.push(`${l.alsoKnownAs ? `${u(l.alsoKnownAs)} ` : ""}${
|
|
342
|
+
r && t.push(`${l.alsoKnownAs ? `${u(l.alsoKnownAs)} ` : ""}${W(r)}`);
|
|
351
343
|
let i = [d(e.dates), d(e.dynasty)].filter(Boolean).join(", ");
|
|
352
|
-
i && t.push(
|
|
344
|
+
i && t.push(W(i));
|
|
353
345
|
for (let n of ["materials", "holder"]) {
|
|
354
346
|
let r = d(e[n]);
|
|
355
|
-
r && t.push(
|
|
347
|
+
r && t.push(W(r));
|
|
356
348
|
}
|
|
357
349
|
return t;
|
|
358
|
-
}), p = t(() => l.place ?? [d(l.text?.location), l.country].filter(Boolean).join(", ")), m = t(() => l.picture || (l.record?.images?.[0]?.url ?? "")), h = t(() =>
|
|
359
|
-
return (t, l) => o.record ? (
|
|
360
|
-
m.value ? (
|
|
350
|
+
}), p = t(() => l.place ?? [d(l.text?.location), l.country].filter(Boolean).join(", ")), m = t(() => l.picture || (l.record?.images?.[0]?.url ?? "")), h = t(() => G(String(l.text?.name ?? l.record?.internal_name ?? "")));
|
|
351
|
+
return (t, l) => o.record ? (v(), i("div", it, [
|
|
352
|
+
m.value ? (v(), n(J, {
|
|
361
353
|
key: 0,
|
|
362
354
|
class: "mwnf-standalone-highlight__media",
|
|
363
355
|
to: o.to
|
|
364
356
|
}, {
|
|
365
|
-
default:
|
|
357
|
+
default: F(() => [a("img", {
|
|
366
358
|
class: "mwnf-standalone-highlight__image",
|
|
367
359
|
src: m.value,
|
|
368
360
|
alt: h.value
|
|
369
|
-
}, null, 8,
|
|
361
|
+
}, null, 8, at)]),
|
|
370
362
|
_: 1
|
|
371
363
|
}, 8, ["to"])) : r("", !0),
|
|
372
|
-
o.heading ? (
|
|
373
|
-
a("p",
|
|
374
|
-
p.value ? (
|
|
375
|
-
o.action ? (
|
|
376
|
-
default:
|
|
364
|
+
o.heading ? (v(), i("p", ot, [a("strong", null, T(E(u)(o.heading)), 1)])) : r("", !0),
|
|
365
|
+
a("p", st, [(v(!0), i(e, null, x(f.value, (t, n) => (v(), i(e, { key: n }, [a("span", { innerHTML: t }, null, 8, ct), l[0] ||= a("br", null, null, -1)], 64))), 128))]),
|
|
366
|
+
p.value ? (v(), i("p", lt, T(E(G)(p.value)), 1)) : r("", !0),
|
|
367
|
+
o.action ? (v(), i("p", ut, [c(J, { to: o.to }, {
|
|
368
|
+
default: F(() => [s(T(E(u)(o.action)), 1)]),
|
|
377
369
|
_: 1
|
|
378
370
|
}, 8, ["to"])])) : r("", !0)
|
|
379
371
|
])) : r("", !0);
|
|
380
372
|
}
|
|
381
|
-
},
|
|
373
|
+
}, ft = {
|
|
382
374
|
key: 0,
|
|
383
375
|
class: "mwnf-standalone-tiles"
|
|
384
|
-
},
|
|
376
|
+
}, pt = {
|
|
385
377
|
key: 0,
|
|
386
378
|
class: "mwnf-standalone-tiles__caption"
|
|
387
|
-
},
|
|
379
|
+
}, mt = { class: "mwnf-standalone-tiles__caption-text" }, ht = { class: "mwnf-standalone-tiles__grid" }, gt = ["src", "alt"], _t = {
|
|
388
380
|
key: 0,
|
|
389
381
|
class: "mwnf-standalone-tiles__label"
|
|
390
|
-
},
|
|
382
|
+
}, vt = {
|
|
391
383
|
__name: "TileGrid",
|
|
392
384
|
props: {
|
|
393
385
|
caption: {
|
|
@@ -400,73 +392,70 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
|
|
|
400
392
|
}
|
|
401
393
|
},
|
|
402
394
|
setup(n) {
|
|
403
|
-
let o = n, { t: s } =
|
|
395
|
+
let o = n, { t: s } = K(), l = Oe(), u = t(() => o.items.map((e) => ({
|
|
404
396
|
...e,
|
|
405
397
|
image: l(e.image) ?? "",
|
|
406
|
-
label: e.text ?
|
|
398
|
+
label: e.text ? G(e.text) : e.label ? s(e.label) : ""
|
|
407
399
|
})));
|
|
408
|
-
return (t, o) => u.value.length ? (
|
|
400
|
+
return (t, o) => u.value.length ? (v(), i("section", ft, [n.caption ? (v(), i("p", pt, [a("span", mt, T(E(s)(n.caption)), 1)])) : r("", !0), a("ul", ht, [(v(!0), i(e, null, x(u.value, (e) => (v(), i("li", {
|
|
409
401
|
key: e.image,
|
|
410
402
|
class: "mwnf-standalone-tiles__tile"
|
|
411
|
-
}, [c(
|
|
403
|
+
}, [c(J, {
|
|
412
404
|
to: e.to,
|
|
413
405
|
href: e.href,
|
|
414
406
|
class: "mwnf-standalone-tiles__link"
|
|
415
407
|
}, {
|
|
416
|
-
default:
|
|
408
|
+
default: F(() => [a("img", {
|
|
417
409
|
class: "mwnf-standalone-tiles__image",
|
|
418
410
|
src: e.image,
|
|
419
411
|
alt: e.label
|
|
420
|
-
}, null, 8,
|
|
412
|
+
}, null, 8, gt), e.label ? (v(), i("span", _t, T(e.label), 1)) : r("", !0)]),
|
|
421
413
|
_: 2
|
|
422
414
|
}, 1032, ["to", "href"])]))), 128))])])) : r("", !0);
|
|
423
415
|
}
|
|
424
|
-
},
|
|
416
|
+
}, yt = { class: "mwnf-standalone-home" }, bt = {
|
|
425
417
|
key: 0,
|
|
426
418
|
class: "mwnf-standalone-home__links"
|
|
427
|
-
},
|
|
419
|
+
}, xt = { key: 1 }, St = {
|
|
428
420
|
__name: "Home",
|
|
429
421
|
props: { home: {
|
|
430
422
|
type: Object,
|
|
431
423
|
default: null
|
|
432
424
|
} },
|
|
433
425
|
setup(a) {
|
|
434
|
-
let o = a, { t: l, locale: u } =
|
|
426
|
+
let o = a, { t: l, locale: u } = K(), d = se(), f = t(() => o.home ?? d.standalone?.home ?? {}), m = t(() => (f.value.links ?? []).map((e) => ({
|
|
435
427
|
...e,
|
|
436
428
|
label: l(e.label),
|
|
437
429
|
prefix: e.prefix ? l(e.prefix) : "",
|
|
438
430
|
title: e.title ? l(e.title) : void 0
|
|
439
|
-
}))), h = t(() =>
|
|
440
|
-
h.value?.list?.length && (
|
|
431
|
+
}))), h = t(() => f.value.highlight ?? null), g = ae(), _ = h.value?.list === "random";
|
|
432
|
+
(_ || h.value?.list?.length) && (B(["items", "countries"]), P(u, (e) => {
|
|
441
433
|
g.loadTranslations("items", e), g.loadTranslations("countries", e);
|
|
442
434
|
}, { immediate: !0 }));
|
|
443
|
-
let
|
|
444
|
-
|
|
445
|
-
byLegacyKey: y?.value ?? null
|
|
446
|
-
})), w = t(() => C.value ? g.tr("items", C.value.id, u.value, "en") : {}), T = t(() => {
|
|
447
|
-
let e = C.value?.country_id;
|
|
435
|
+
let y = R("items"), b = t(() => _ ? Ne(y.value) : Pe(h.value?.list ?? [], { byId: y.value }) ?? Ne(y.value)), C = t(() => b.value ? g.tr("items", b.value.id, u.value, "en") : {}), w = t(() => {
|
|
436
|
+
let e = b.value?.country_id;
|
|
448
437
|
return e ? g.tr("countries", e, u.value, "en").name ?? "" : "";
|
|
449
|
-
}), E = t(() =>
|
|
438
|
+
}), E = t(() => b.value && h.value?.place ? h.value.place(b.value, C.value, w.value) : null), D = t(() => b.value ? {
|
|
450
439
|
name: h.value.route ?? "item",
|
|
451
|
-
params: { id:
|
|
452
|
-
} : null), O =
|
|
440
|
+
params: { id: b.value.id }
|
|
441
|
+
} : null), O = Oe(), k = t(() => {
|
|
453
442
|
let e = h.value?.pictures ?? [];
|
|
454
|
-
return e === "inventory" ?
|
|
455
|
-
}),
|
|
456
|
-
let e =
|
|
443
|
+
return e === "inventory" ? Me(y.value) : e.length ? O(je(e)) ?? "" : "";
|
|
444
|
+
}), A = t(() => {
|
|
445
|
+
let e = f.value.tiles?.items;
|
|
457
446
|
return (typeof e == "function" ? e() : e) ?? [];
|
|
458
447
|
});
|
|
459
|
-
return (t, a) => (
|
|
460
|
-
m.value.length ? (
|
|
448
|
+
return (t, a) => (v(), i("div", yt, [
|
|
449
|
+
m.value.length ? (v(), i("ul", bt, [(v(!0), i(e, null, x(m.value, (t) => (v(), i("li", {
|
|
461
450
|
key: t.label,
|
|
462
|
-
class:
|
|
463
|
-
}, [c(
|
|
451
|
+
class: p({ "mwnf-standalone-home__link--gap": t.gap })
|
|
452
|
+
}, [c(J, {
|
|
464
453
|
to: t.to,
|
|
465
454
|
href: t.href,
|
|
466
455
|
external: !!t.external,
|
|
467
456
|
title: t.title
|
|
468
457
|
}, {
|
|
469
|
-
default:
|
|
458
|
+
default: F(() => [t.prefix ? (v(), i(e, { key: 0 }, [s(T(`${t.prefix} `), 1)], 64)) : r("", !0), t.italic ? (v(), i("i", xt, T(t.label), 1)) : (v(), i(e, { key: 2 }, [s(T(t.label), 1)], 64))]),
|
|
470
459
|
_: 2
|
|
471
460
|
}, 1032, [
|
|
472
461
|
"to",
|
|
@@ -474,11 +463,11 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
|
|
|
474
463
|
"external",
|
|
475
464
|
"title"
|
|
476
465
|
])], 2))), 128))])) : r("", !0),
|
|
477
|
-
h.value ? (
|
|
466
|
+
h.value ? (v(), n(dt, {
|
|
478
467
|
key: 1,
|
|
479
|
-
record:
|
|
480
|
-
text:
|
|
481
|
-
country:
|
|
468
|
+
record: b.value,
|
|
469
|
+
text: C.value,
|
|
470
|
+
country: w.value,
|
|
482
471
|
place: E.value,
|
|
483
472
|
to: D.value,
|
|
484
473
|
picture: k.value,
|
|
@@ -496,16 +485,16 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
|
|
|
496
485
|
"also-known-as",
|
|
497
486
|
"action"
|
|
498
487
|
])) : r("", !0),
|
|
499
|
-
|
|
488
|
+
f.value.tiles ? (v(), n(vt, {
|
|
500
489
|
key: 2,
|
|
501
|
-
caption:
|
|
502
|
-
items:
|
|
490
|
+
caption: f.value.tiles.caption ?? "",
|
|
491
|
+
items: A.value
|
|
503
492
|
}, null, 8, ["caption", "items"])) : r("", !0),
|
|
504
|
-
|
|
493
|
+
S(t.$slots, "default")
|
|
505
494
|
]));
|
|
506
495
|
}
|
|
507
|
-
},
|
|
508
|
-
function
|
|
496
|
+
}, Ct = "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; }", wt = ".mwnf-sheet__label, .mwnf-sheet-section__heading, .mwnf-credits__heading", Tt = ".mwnf-sheet__value, .mwnf-sheet-section__body, .mwnf-credits__citation, .mwnf-credits__list > dt, .mwnf-credits__number, .mwnf-sheet__short .mwnf-sheet__block", Et = "button, img, svg, picture, video, audio, iframe, script, style, [role=\"tooltip\"], [aria-hidden=\"true\"]";
|
|
497
|
+
function $(e) {
|
|
509
498
|
return String(e ?? "").replace(/[&<>"]/g, (e) => ({
|
|
510
499
|
"&": "&",
|
|
511
500
|
"<": "<",
|
|
@@ -513,7 +502,7 @@ function X(e) {
|
|
|
513
502
|
"\"": """
|
|
514
503
|
})[e]);
|
|
515
504
|
}
|
|
516
|
-
var
|
|
505
|
+
var Dt = /* @__PURE__ */ new Set([
|
|
517
506
|
"I",
|
|
518
507
|
"EM",
|
|
519
508
|
"B",
|
|
@@ -521,7 +510,7 @@ var dt = /* @__PURE__ */ new Set([
|
|
|
521
510
|
"U",
|
|
522
511
|
"SUP",
|
|
523
512
|
"SUB"
|
|
524
|
-
]),
|
|
513
|
+
]), Ot = /* @__PURE__ */ new Set([
|
|
525
514
|
"P",
|
|
526
515
|
"DIV",
|
|
527
516
|
"LI",
|
|
@@ -529,20 +518,20 @@ var dt = /* @__PURE__ */ new Set([
|
|
|
529
518
|
"OL",
|
|
530
519
|
"SECTION"
|
|
531
520
|
]);
|
|
532
|
-
function
|
|
521
|
+
function kt(e) {
|
|
533
522
|
let t = [[]], n = () => t[t.length - 1], r = () => {
|
|
534
523
|
n().length && t.push([]);
|
|
535
524
|
}, i = (e) => {
|
|
536
525
|
if (e.nodeType === Node.TEXT_NODE) {
|
|
537
|
-
n().push(
|
|
526
|
+
n().push($(e.textContent));
|
|
538
527
|
return;
|
|
539
528
|
}
|
|
540
|
-
if (e.nodeType !== Node.ELEMENT_NODE || e.matches(
|
|
529
|
+
if (e.nodeType !== Node.ELEMENT_NODE || e.matches(Et)) return;
|
|
541
530
|
if (e.tagName === "BR") {
|
|
542
531
|
n().push("<br/>");
|
|
543
532
|
return;
|
|
544
533
|
}
|
|
545
|
-
let t =
|
|
534
|
+
let t = Ot.has(e.tagName), a = Dt.has(e.tagName) ? e.tagName.toLowerCase() : "";
|
|
546
535
|
t && r(), a && n().push(`<${a}>`);
|
|
547
536
|
for (let t of e.childNodes) i(t);
|
|
548
537
|
a && n().push(`</${a}>`), t && r();
|
|
@@ -550,28 +539,28 @@ function Z(e) {
|
|
|
550
539
|
for (let t of e.childNodes) i(t);
|
|
551
540
|
return t.map((e) => e.join("").replace(/\s+/g, " ").trim()).filter(Boolean).join("<br/>\n<br/>");
|
|
552
541
|
}
|
|
553
|
-
function
|
|
542
|
+
function At(e, { title: t = "", dir: n = "" } = {}) {
|
|
554
543
|
let r = (t) => {
|
|
555
544
|
for (let n = t; n && n !== e.parentElement; n = n.parentElement) if (n.hidden || getComputedStyle(n).display === "none") return !1;
|
|
556
545
|
return !0;
|
|
557
546
|
}, i = [];
|
|
558
|
-
for (let t of e.querySelectorAll(`${
|
|
547
|
+
for (let t of e.querySelectorAll(`${wt}, ${Tt}`)) {
|
|
559
548
|
if (t.closest(".mwnf-standalone-item__left, .mwnf-standalone-related") || !r(t)) continue;
|
|
560
549
|
if (t.matches(".mwnf-credits__list > dt")) {
|
|
561
550
|
let e = t.nextElementSibling;
|
|
562
|
-
i.push(`<p>${
|
|
551
|
+
i.push(`<p>${$(t.textContent.trim())} ${e ? kt(e) : ""}</p>`);
|
|
563
552
|
continue;
|
|
564
553
|
}
|
|
565
|
-
let e =
|
|
566
|
-
e && i.push(t.matches(
|
|
554
|
+
let e = kt(t);
|
|
555
|
+
e && i.push(t.matches(wt) ? `<h3>${e}</h3>` : `<p>${e}</p>`);
|
|
567
556
|
}
|
|
568
557
|
let a = n === "rtl" ? " style=\"direction: rtl;\"" : "";
|
|
569
558
|
return `<html>
|
|
570
|
-
<title>${
|
|
559
|
+
<title>${$(t)}</title>
|
|
571
560
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
572
561
|
<head>
|
|
573
562
|
<style>
|
|
574
|
-
${
|
|
563
|
+
${Ct}
|
|
575
564
|
</style>
|
|
576
565
|
</head>
|
|
577
566
|
<body>
|
|
@@ -585,28 +574,28 @@ ${i.join("\n")}
|
|
|
585
574
|
</body>
|
|
586
575
|
</html>`;
|
|
587
576
|
}
|
|
588
|
-
function
|
|
577
|
+
function jt(e, t) {
|
|
589
578
|
let n = URL.createObjectURL(new Blob(["", e], { type: "application/msword" })), r = document.createElement("a");
|
|
590
579
|
r.href = n, r.download = t, document.body.appendChild(r), r.click(), r.remove(), setTimeout(() => URL.revokeObjectURL(n), 0);
|
|
591
580
|
}
|
|
592
|
-
function
|
|
581
|
+
function Mt({ title: e = "", heading: t = "", heads: n = {}, rows: r = [], empty: i = "", dir: a = "" } = {}) {
|
|
593
582
|
let o = a === "rtl" ? "direction: rtl; text-align: right;" : "text-align: left;", s = (e) => {
|
|
594
583
|
let t = document.createElement("div");
|
|
595
|
-
return t.innerHTML = e ?? "",
|
|
596
|
-
}, c = !!n.theme, l = c ? `<td style="padding:5px;" width="28%"><b>${
|
|
597
|
-
<td style="padding:5px;" width="35%"><b>${
|
|
598
|
-
<td style="padding:5px;" width="37%"><b>${
|
|
599
|
-
<td style="padding:5px;" width="36%"><b>${
|
|
584
|
+
return t.innerHTML = e ?? "", kt(t);
|
|
585
|
+
}, c = !!n.theme, l = c ? `<td style="padding:5px;" width="28%"><b>${$(n.date)}</b></td>
|
|
586
|
+
<td style="padding:5px;" width="35%"><b>${$(n.country)}</b></td>
|
|
587
|
+
<td style="padding:5px;" width="37%"><b>${$(n.theme)}</b></td>` : `<td style="padding:5px;" width="28%"><b>${$(n.date)}</b></td>
|
|
588
|
+
<td style="padding:5px;" width="36%"><b>${$(n.countryDescription)}</b></td>
|
|
600
589
|
<td width="37%"><b></b></td>`, u = c ? (e) => `<tr>
|
|
601
|
-
<td style="padding:5px;">${
|
|
602
|
-
<td style="padding:5px;">${
|
|
603
|
-
<td style="padding:5px;">${
|
|
590
|
+
<td style="padding:5px;">${$(e.date)}</td>
|
|
591
|
+
<td style="padding:5px;">${$(e.country)}</td>
|
|
592
|
+
<td style="padding:5px;">${$(e.theme)}</td>
|
|
604
593
|
</tr>
|
|
605
594
|
<tr>
|
|
606
595
|
<td style="padding:5px; width:558px; vertical-align:top;" colspan="3">${s(e.html)}</td>
|
|
607
596
|
</tr>` : (e) => `<tr>
|
|
608
|
-
<td style="padding:5px; vertical-align:top;"> ${
|
|
609
|
-
<td style="padding:5px;">${
|
|
597
|
+
<td style="padding:5px; vertical-align:top;"> ${$(e.date)}</td>
|
|
598
|
+
<td style="padding:5px;">${$(e.country)}</td>
|
|
610
599
|
<td> </td>
|
|
611
600
|
</tr>
|
|
612
601
|
<tr>
|
|
@@ -620,20 +609,20 @@ ${l}
|
|
|
620
609
|
${r.map(u).join("\n")}
|
|
621
610
|
</table>
|
|
622
611
|
</td></tr>
|
|
623
|
-
<tr><td> </td></tr>` : `<tr><td style="padding-top:100px;padding-left:350px;">${
|
|
612
|
+
<tr><td> </td></tr>` : `<tr><td style="padding-top:100px;padding-left:350px;">${$(i)}</td></tr>`;
|
|
624
613
|
return `<html>
|
|
625
|
-
<title>${
|
|
614
|
+
<title>${$(e)}</title>
|
|
626
615
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
627
616
|
<head>
|
|
628
617
|
<style>
|
|
629
|
-
${
|
|
618
|
+
${Ct}
|
|
630
619
|
</style>
|
|
631
620
|
</head>
|
|
632
621
|
<body>
|
|
633
622
|
<div class="content">
|
|
634
623
|
<div class="item_description">
|
|
635
624
|
<table style="${o}" border="0" width="750px">
|
|
636
|
-
<tr><td class="txt" align="left" width="750px"><div style="width: 750px;"> ${
|
|
625
|
+
<tr><td class="txt" align="left" width="750px"><div style="width: 750px;"> ${$(t).replace(/^([^|/]*)/, "<b>$1</b>")}</div></td></tr>
|
|
637
626
|
<tr><td> </td></tr>
|
|
638
627
|
${d}
|
|
639
628
|
</table>
|
|
@@ -643,13 +632,13 @@ ${d}
|
|
|
643
632
|
</html>`;
|
|
644
633
|
}
|
|
645
634
|
// src/standalone/RelatedContent.vue
|
|
646
|
-
var
|
|
635
|
+
var Nt = { class: "mwnf-standalone-related" }, Pt = { class: "mwnf-standalone-related__heading" }, Ft = { class: "mwnf-standalone-related__group-heading" }, It = { class: "mwnf-standalone-related__thumbs" }, Lt = ["src", "alt"], Rt = ["innerHTML"], zt = {
|
|
647
636
|
key: 0,
|
|
648
637
|
class: "mwnf-standalone-related__see-also"
|
|
649
|
-
},
|
|
638
|
+
}, Bt = { class: "mwnf-standalone-related__see-also-heading" }, Vt = ["href"], Ht = ["href"], Ut = {
|
|
650
639
|
key: 1,
|
|
651
640
|
class: "mwnf-standalone-related__download"
|
|
652
|
-
},
|
|
641
|
+
}, Wt = { class: "mwnf-standalone-related__download-heading" }, Gt = {
|
|
653
642
|
__name: "RelatedContent",
|
|
654
643
|
props: {
|
|
655
644
|
heading: {
|
|
@@ -678,7 +667,7 @@ var gt = { class: "mwnf-standalone-related" }, _t = { class: "mwnf-standalone-re
|
|
|
678
667
|
}
|
|
679
668
|
},
|
|
680
669
|
setup(n) {
|
|
681
|
-
let o = n, { t: l } =
|
|
670
|
+
let o = n, { t: l } = K(), u = t(() => o.groups.map((e) => ({
|
|
682
671
|
heading: l(e.heading),
|
|
683
672
|
rows: o.records.filter((t) => !e.type || t.badge === e.type)
|
|
684
673
|
})).filter((e) => e.rows.length));
|
|
@@ -687,80 +676,80 @@ var gt = { class: "mwnf-standalone-related" }, _t = { class: "mwnf-standalone-re
|
|
|
687
676
|
}
|
|
688
677
|
function f(e) {
|
|
689
678
|
let t = e.currentTarget.closest(".mwnf-standalone-item");
|
|
690
|
-
t &&
|
|
679
|
+
t && jt(At(t.querySelector(".mwnf-record__main") ?? t, {
|
|
691
680
|
title: o.download?.title ? l(o.download.title) : "",
|
|
692
681
|
dir: getComputedStyle(t).direction
|
|
693
682
|
}), o.wordFile);
|
|
694
683
|
}
|
|
695
|
-
return (t, o) => (
|
|
696
|
-
a("p",
|
|
697
|
-
(
|
|
684
|
+
return (t, o) => (v(), i("aside", Nt, [
|
|
685
|
+
a("p", Pt, [a("strong", null, T(E(l)(n.heading)), 1)]),
|
|
686
|
+
(v(!0), i(e, null, x(u.value, (t) => (v(), i("div", {
|
|
698
687
|
key: t.heading,
|
|
699
688
|
class: "mwnf-standalone-related__group"
|
|
700
|
-
}, [a("p",
|
|
689
|
+
}, [a("p", Ft, T(t.heading), 1), a("ul", It, [(v(!0), i(e, null, x(t.rows, (e) => (v(), i("li", { key: e.id }, [c(J, {
|
|
701
690
|
to: e.to,
|
|
702
691
|
title: e.imageAlt
|
|
703
692
|
}, {
|
|
704
|
-
default:
|
|
693
|
+
default: F(() => [e.image ? (v(), i("img", {
|
|
705
694
|
key: 0,
|
|
706
695
|
src: e.image,
|
|
707
696
|
alt: e.imageAlt
|
|
708
|
-
}, null, 8,
|
|
697
|
+
}, null, 8, Lt)) : (v(), i("span", {
|
|
709
698
|
key: 1,
|
|
710
699
|
innerHTML: e.name
|
|
711
|
-
}, null, 8,
|
|
700
|
+
}, null, 8, Rt))]),
|
|
712
701
|
_: 2
|
|
713
702
|
}, 1032, ["to", "title"])]))), 128))])]))), 128)),
|
|
714
|
-
|
|
715
|
-
n.seeAlso ? (
|
|
716
|
-
a("p",
|
|
717
|
-
(
|
|
703
|
+
S(t.$slots, "default"),
|
|
704
|
+
n.seeAlso ? (v(), i("div", zt, [
|
|
705
|
+
a("p", Bt, [a("strong", null, [o[0] ||= a("br", null, null, -1), s(T(E(l)(n.seeAlso.heading)), 1)])]),
|
|
706
|
+
(v(!0), i(e, null, x(n.seeAlso.links ?? [], (e) => (v(), i("a", {
|
|
718
707
|
key: e.href,
|
|
719
708
|
class: "mwnf-standalone-related__see-also-link",
|
|
720
709
|
href: e.href,
|
|
721
710
|
target: "_blank",
|
|
722
711
|
rel: "noopener"
|
|
723
|
-
},
|
|
724
|
-
(
|
|
712
|
+
}, T(E(l)(e.label)), 9, Vt))), 128)),
|
|
713
|
+
(v(!0), i(e, null, x(n.seeAlso.groups ?? [], (t) => (v(), i("div", {
|
|
725
714
|
key: t.heading,
|
|
726
715
|
class: "mwnf-standalone-related__see-also-group"
|
|
727
|
-
}, [a("p", null,
|
|
716
|
+
}, [a("p", null, T(E(l)(t.heading)), 1), (v(!0), i(e, null, x(t.links, (e) => (v(), i("p", { key: e.href }, [a("a", { href: e.href }, T(e.text), 9, Ht)]))), 128))]))), 128))
|
|
728
717
|
])) : r("", !0),
|
|
729
|
-
n.download ? (
|
|
730
|
-
a("p",
|
|
718
|
+
n.download ? (v(), i("div", Ut, [
|
|
719
|
+
a("p", Wt, T(E(l)(n.download.heading)), 1),
|
|
731
720
|
a("button", {
|
|
732
721
|
type: "button",
|
|
733
722
|
class: "mwnf-standalone-related__print",
|
|
734
723
|
onClick: d
|
|
735
|
-
},
|
|
736
|
-
n.download.word ? (
|
|
724
|
+
}, T(E(l)(n.download.print)), 1),
|
|
725
|
+
n.download.word ? (v(), i("button", {
|
|
737
726
|
key: 0,
|
|
738
727
|
type: "button",
|
|
739
728
|
class: "mwnf-standalone-related__print mwnf-standalone-related__word",
|
|
740
729
|
onClick: f
|
|
741
|
-
},
|
|
730
|
+
}, T(E(l)(n.download.word)), 1)) : r("", !0)
|
|
742
731
|
])) : r("", !0)
|
|
743
732
|
]));
|
|
744
733
|
}
|
|
745
|
-
},
|
|
734
|
+
}, Kt = Object.freeze({
|
|
746
735
|
heading: "standalone.related.seeAlso",
|
|
747
736
|
travelBook: "standalone.related.travelBook",
|
|
748
737
|
exhibitionTrail: "standalone.related.exhibitionTrail"
|
|
749
|
-
}),
|
|
750
|
-
function
|
|
751
|
-
let n =
|
|
738
|
+
}), qt = (e, t) => e?.[t] ?? e?.en ?? Object.values(e ?? {})[0] ?? "";
|
|
739
|
+
function Jt(e, t) {
|
|
740
|
+
let n = H(qt(e?.titles, t) ?? ""), r = H(qt(e?.subtitles, t) ?? "");
|
|
752
741
|
return r ? `${n} - ${r}` : n;
|
|
753
742
|
}
|
|
754
|
-
var
|
|
755
|
-
function
|
|
743
|
+
var Yt = (e, t) => `${String(e).replace(/\/+$/, "")}/${encodeURIComponent(t)}`, Xt = (e, t) => `${e}${String(e).includes("?") ? "&" : "?"}lang=${encodeURIComponent(t)}`;
|
|
744
|
+
function Zt(e, t, n = Kt) {
|
|
756
745
|
let r = [], i = e?.travel_book;
|
|
757
746
|
i?.url && r.push({
|
|
758
747
|
label: n.travelBook,
|
|
759
|
-
href:
|
|
748
|
+
href: Yt(i.url, t)
|
|
760
749
|
});
|
|
761
750
|
let a = (Array.isArray(e?.exhibition_trails) ? e.exhibition_trails : []).filter((e) => e?.url).map((e) => ({
|
|
762
|
-
text:
|
|
763
|
-
href:
|
|
751
|
+
text: Jt(e, t),
|
|
752
|
+
href: Xt(e.url, t)
|
|
764
753
|
})), o = a.length ? [{
|
|
765
754
|
heading: n.exhibitionTrail,
|
|
766
755
|
links: a
|
|
@@ -772,10 +761,10 @@ function Nt(e, t, n = Q) {
|
|
|
772
761
|
};
|
|
773
762
|
}
|
|
774
763
|
// src/standalone/ItemSheet.vue
|
|
775
|
-
var
|
|
764
|
+
var Qt = { class: "mwnf-standalone-item__top" }, $t = { class: "mwnf-standalone-item__left" }, en = {
|
|
776
765
|
key: 0,
|
|
777
766
|
class: "mwnf-standalone-item__back"
|
|
778
|
-
},
|
|
767
|
+
}, tn = {
|
|
779
768
|
__name: "ItemSheet",
|
|
780
769
|
props: {
|
|
781
770
|
spec: {
|
|
@@ -796,31 +785,31 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
796
785
|
}
|
|
797
786
|
},
|
|
798
787
|
setup(u) {
|
|
799
|
-
let d = u, { t: f, locale:
|
|
788
|
+
let d = u, { t: f, locale: p } = K(), h = k();
|
|
800
789
|
function g(e) {
|
|
801
790
|
if (d.related.seeAlso === !1) return null;
|
|
802
791
|
let t = {
|
|
803
|
-
...
|
|
792
|
+
...Kt,
|
|
804
793
|
...typeof d.related.seeAlso == "object" ? d.related.seeAlso : {}
|
|
805
794
|
};
|
|
806
|
-
return
|
|
795
|
+
return Zt(e, p.value, t);
|
|
807
796
|
}
|
|
808
|
-
let
|
|
797
|
+
let _ = t(() => ({
|
|
809
798
|
...d.spec,
|
|
810
799
|
media: () => []
|
|
811
800
|
}));
|
|
812
801
|
function y(e) {
|
|
813
|
-
return
|
|
802
|
+
return X(b(e), d.spec.pictureLimit, e);
|
|
814
803
|
}
|
|
815
|
-
function
|
|
804
|
+
function b({ record: e, text: t, language: n }) {
|
|
816
805
|
if (d.spec.media) return d.spec.media(e, {
|
|
817
806
|
record: e,
|
|
818
807
|
text: t,
|
|
819
808
|
language: n
|
|
820
809
|
});
|
|
821
|
-
let r =
|
|
822
|
-
return
|
|
823
|
-
let { photographer: t, copyright: i } =
|
|
810
|
+
let r = G(String(t?.name ?? e?.internal_name ?? ""));
|
|
811
|
+
return ie(e?.images, n).map((e) => {
|
|
812
|
+
let { photographer: t, copyright: i } = re(e, n), a = [t ? `${f("record.media.photograph")}: ${t}` : "", i ? `© ${i}` : ""].filter(Boolean).join(", ");
|
|
824
813
|
return {
|
|
825
814
|
url: e.url,
|
|
826
815
|
alt: a || e.captions?.[n] || r,
|
|
@@ -828,28 +817,28 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
828
817
|
};
|
|
829
818
|
});
|
|
830
819
|
}
|
|
831
|
-
let
|
|
820
|
+
let C = t(() => d.back.map((e) => ({
|
|
832
821
|
...e,
|
|
833
822
|
label: f(e.label)
|
|
834
|
-
}))),
|
|
823
|
+
}))), w = /* @__PURE__ */ new Set([
|
|
835
824
|
"header",
|
|
836
825
|
"before-sheet",
|
|
837
826
|
"related",
|
|
838
827
|
"sidebar",
|
|
839
828
|
"aside",
|
|
840
829
|
"source"
|
|
841
|
-
]),
|
|
842
|
-
function
|
|
830
|
+
]), E = t(() => Object.keys(h).filter((e) => !w.has(e)));
|
|
831
|
+
function D() {
|
|
843
832
|
window.history.back();
|
|
844
833
|
}
|
|
845
|
-
let
|
|
846
|
-
return (t, d) => (
|
|
847
|
-
spec:
|
|
834
|
+
let O = (e) => [...e].sort((e, t) => t.code.localeCompare(e.code));
|
|
835
|
+
return (t, d) => (v(), n(Z, {
|
|
836
|
+
spec: _.value,
|
|
848
837
|
id: u.id,
|
|
849
838
|
class: "mwnf-standalone-item"
|
|
850
839
|
}, o({
|
|
851
|
-
header:
|
|
852
|
-
languages:
|
|
840
|
+
header: F(({ languages: e, language: t, select: n }) => [a("div", Qt, [c(le, {
|
|
841
|
+
languages: O(e),
|
|
853
842
|
language: t,
|
|
854
843
|
from: 1,
|
|
855
844
|
onSelect: n
|
|
@@ -858,24 +847,24 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
858
847
|
"language",
|
|
859
848
|
"onSelect"
|
|
860
849
|
])])]),
|
|
861
|
-
"before-sheet":
|
|
850
|
+
"before-sheet": F((o) => [a("div", $t, [C.value.length ? (v(), i("p", en, [(v(!0), i(e, null, x(C.value, (t) => (v(), i(e, { key: t.label }, [t.history ? (v(), i("button", {
|
|
862
851
|
key: 0,
|
|
863
852
|
type: "button",
|
|
864
853
|
class: "mwnf-standalone-item__back-link",
|
|
865
|
-
onClick:
|
|
866
|
-
},
|
|
854
|
+
onClick: D
|
|
855
|
+
}, T(t.label), 1)) : (v(), n(J, {
|
|
867
856
|
key: 1,
|
|
868
857
|
class: "mwnf-standalone-item__back-link",
|
|
869
858
|
to: t.to,
|
|
870
859
|
href: t.href
|
|
871
860
|
}, {
|
|
872
|
-
default:
|
|
861
|
+
default: F(() => [s(T(t.label), 1)]),
|
|
873
862
|
_: 2
|
|
874
|
-
}, 1032, ["to", "href"]))], 64))), 128))])) : r("", !0), c(
|
|
863
|
+
}, 1032, ["to", "href"]))], 64))), 128))])) : r("", !0), c(ue, {
|
|
875
864
|
images: y(o),
|
|
876
865
|
"thumbs-from": 1
|
|
877
|
-
}, null, 8, ["images"])]),
|
|
878
|
-
related:
|
|
866
|
+
}, null, 8, ["images"])]), S(t.$slots, "before-sheet", m(l(o)))]),
|
|
867
|
+
related: F((e) => [c(Gt, {
|
|
879
868
|
heading: u.related.heading ?? "record.related.title",
|
|
880
869
|
records: e.records,
|
|
881
870
|
groups: u.related.groups ?? [],
|
|
@@ -883,7 +872,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
883
872
|
download: u.related.download ?? null,
|
|
884
873
|
"word-file": u.related.download?.wordFile?.(e.record, e.language) ?? "sheet.doc"
|
|
885
874
|
}, {
|
|
886
|
-
default:
|
|
875
|
+
default: F(() => [S(t.$slots, "sidebar", m(l(e)))]),
|
|
887
876
|
_: 2
|
|
888
877
|
}, 1032, [
|
|
889
878
|
"heading",
|
|
@@ -893,44 +882,44 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
893
882
|
"download",
|
|
894
883
|
"word-file"
|
|
895
884
|
])]),
|
|
896
|
-
source:
|
|
885
|
+
source: F((e) => [S(t.$slots, "source", m(l(e)))]),
|
|
897
886
|
_: 2
|
|
898
|
-
}, [
|
|
887
|
+
}, [x(E.value, (e) => ({
|
|
899
888
|
name: e,
|
|
900
|
-
fn:
|
|
889
|
+
fn: F((n) => [S(t.$slots, e, m(l(n)))])
|
|
901
890
|
}))]), 1032, ["spec", "id"]));
|
|
902
891
|
}
|
|
903
|
-
},
|
|
892
|
+
}, nn = {
|
|
904
893
|
key: 0,
|
|
905
894
|
class: "mwnf-standalone-item__top"
|
|
906
|
-
},
|
|
895
|
+
}, rn = {
|
|
907
896
|
key: 1,
|
|
908
897
|
hidden: ""
|
|
909
|
-
},
|
|
898
|
+
}, an = {
|
|
910
899
|
key: 0,
|
|
911
900
|
class: "mwnf-standalone-item__back mwnf-standalone-partner__back"
|
|
912
|
-
},
|
|
901
|
+
}, on = { class: "mwnf-standalone-partner__heading" }, sn = ["dir", "innerHTML"], cn = {
|
|
913
902
|
key: 0,
|
|
914
903
|
class: "mwnf-standalone-partner__location"
|
|
915
|
-
},
|
|
904
|
+
}, ln = { class: "mwnf-standalone-partner__bar" }, un = { class: "mwnf-standalone-partner__bar-start" }, dn = ["aria-label", "onKeydown"], fn = [
|
|
916
905
|
"id",
|
|
917
906
|
"aria-selected",
|
|
918
907
|
"aria-controls",
|
|
919
908
|
"tabindex",
|
|
920
909
|
"onClick"
|
|
921
|
-
],
|
|
910
|
+
], pn = {
|
|
922
911
|
key: 0,
|
|
923
912
|
class: "mwnf-standalone-partner__divider",
|
|
924
913
|
"aria-hidden": "true"
|
|
925
|
-
},
|
|
914
|
+
}, mn = { key: 0 }, hn = ["href"], gn = { class: "mwnf-standalone-partner__bar-end" }, _n = { class: "mwnf-standalone-partner__body" }, vn = { class: "mwnf-standalone-partner__pictures" }, yn = { class: "mwnf-standalone-partner__panels" }, bn = [
|
|
926
915
|
"id",
|
|
927
916
|
"aria-labelledby",
|
|
928
917
|
"dir",
|
|
929
918
|
"innerHTML"
|
|
930
|
-
],
|
|
919
|
+
], xn = ["id", "aria-labelledby"], Sn = ["innerHTML"], Cn = ["href"], wn = { key: 0 }, Tn = ["href"], En = ["href"], Dn = ["id", "aria-labelledby"], On = ["src"], kn = {
|
|
931
920
|
key: 0,
|
|
932
921
|
class: "mwnf-standalone-partner__map"
|
|
933
|
-
},
|
|
922
|
+
}, An = { class: "mwnf-standalone-partner__map-heading" }, jn = {
|
|
934
923
|
__name: "PartnerPage",
|
|
935
924
|
props: {
|
|
936
925
|
id: {
|
|
@@ -975,7 +964,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
975
964
|
}
|
|
976
965
|
},
|
|
977
966
|
setup(o) {
|
|
978
|
-
let l = o, { t: u, locale:
|
|
967
|
+
let l = o, { t: u, locale: d } = K(), m = D(), h = {
|
|
979
968
|
entity: "partners",
|
|
980
969
|
fields: [],
|
|
981
970
|
shortDescription: !1,
|
|
@@ -991,43 +980,43 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
991
980
|
phone: "partner.info.phone",
|
|
992
981
|
fax: "partner.info.fax",
|
|
993
982
|
map: "partner.map.map"
|
|
994
|
-
},
|
|
995
|
-
function
|
|
983
|
+
}, _ = (e) => u(l.labels[e] ?? g[e]);
|
|
984
|
+
function y(e) {
|
|
996
985
|
return (typeof l.back == "function" ? l.back(e) ?? [] : l.back).map((e) => ({
|
|
997
986
|
...e,
|
|
998
987
|
label: u(e.label)
|
|
999
988
|
}));
|
|
1000
989
|
}
|
|
1001
|
-
function
|
|
990
|
+
function S() {
|
|
1002
991
|
window.history.back();
|
|
1003
992
|
}
|
|
1004
|
-
function
|
|
993
|
+
function C(e, t, n) {
|
|
1005
994
|
let r = [];
|
|
1006
995
|
return l.about(t, n) && r.push("about"), e.hasContact && r.push("contact"), e.logos.length && r.push("logo"), r;
|
|
1007
996
|
}
|
|
1008
|
-
let
|
|
1009
|
-
|
|
1010
|
-
|
|
997
|
+
let w = b("about");
|
|
998
|
+
P(() => l.id, () => {
|
|
999
|
+
w.value = "about";
|
|
1011
1000
|
});
|
|
1012
1001
|
function O(e, t) {
|
|
1013
|
-
let n = t.indexOf(
|
|
1002
|
+
let n = t.indexOf(w.value), r = {
|
|
1014
1003
|
ArrowRight: (n + 1) % t.length,
|
|
1015
1004
|
ArrowLeft: (n - 1 + t.length) % t.length,
|
|
1016
1005
|
Home: 0,
|
|
1017
1006
|
End: t.length - 1
|
|
1018
1007
|
}[e.key];
|
|
1019
|
-
r !== void 0 && t.length && (e.preventDefault(),
|
|
1008
|
+
r !== void 0 && t.length && (e.preventDefault(), w.value = t[r], f(() => document.getElementById(`${m}-tab-${t[r]}`)?.focus()));
|
|
1020
1009
|
}
|
|
1021
|
-
let
|
|
1010
|
+
let k = (e) => e.pictures.map((e) => ({
|
|
1022
1011
|
url: e.url,
|
|
1023
1012
|
alt: e.alt
|
|
1024
|
-
})),
|
|
1025
|
-
return (t, d) => (
|
|
1013
|
+
})), A = (e) => [...e.contact.website ? [e.contact.website] : [], ...l.links ? e.contact.links : []], j = (e) => !!(e.contact.address || e.contact.phone || e.contact.fax || e.contact.email || e.contact.website), M = t(() => String(d.value || "en"));
|
|
1014
|
+
return (t, d) => (v(), n(Z, {
|
|
1026
1015
|
spec: h,
|
|
1027
1016
|
id: o.id,
|
|
1028
1017
|
class: "mwnf-standalone-partner"
|
|
1029
1018
|
}, {
|
|
1030
|
-
header:
|
|
1019
|
+
header: F(({ record: e, languages: t, language: n, select: r }) => [o.bands(e) ? (v(), i("div", nn, [c(le, {
|
|
1031
1020
|
languages: t.filter((t) => l.languages(e, t.code)),
|
|
1032
1021
|
language: n,
|
|
1033
1022
|
from: 1,
|
|
@@ -1036,116 +1025,116 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1036
1025
|
"languages",
|
|
1037
1026
|
"language",
|
|
1038
1027
|
"onSelect"
|
|
1039
|
-
])])) : (
|
|
1040
|
-
"before-sheet":
|
|
1041
|
-
|
|
1028
|
+
])])) : (v(), i("div", rn))]),
|
|
1029
|
+
"before-sheet": F(({ record: t, text: c, dir: f }) => [(v(!0), i(e, null, x([l.view(t, c)], (l) => (v(), i(e, { key: t.id }, [
|
|
1030
|
+
y(t).length ? (v(), i("p", an, [(v(!0), i(e, null, x(y(t), (t) => (v(), i(e, { key: t.label }, [t.history ? (v(), i("button", {
|
|
1042
1031
|
key: 0,
|
|
1043
1032
|
type: "button",
|
|
1044
1033
|
class: "mwnf-standalone-item__back-link",
|
|
1045
|
-
onClick:
|
|
1046
|
-
},
|
|
1034
|
+
onClick: S
|
|
1035
|
+
}, T(t.label), 1)) : (v(), n(J, {
|
|
1047
1036
|
key: 1,
|
|
1048
1037
|
class: "mwnf-standalone-item__back-link",
|
|
1049
1038
|
to: t.to,
|
|
1050
1039
|
href: t.href
|
|
1051
1040
|
}, {
|
|
1052
|
-
default:
|
|
1041
|
+
default: F(() => [s(T(t.label), 1)]),
|
|
1053
1042
|
_: 2
|
|
1054
1043
|
}, 1032, ["to", "href"]))], 64))), 128))])) : r("", !0),
|
|
1055
|
-
a("div",
|
|
1044
|
+
a("div", on, [a("h3", {
|
|
1056
1045
|
class: "mwnf-standalone-partner__name",
|
|
1057
|
-
dir:
|
|
1046
|
+
dir: f || void 0,
|
|
1058
1047
|
innerHTML: l.name
|
|
1059
|
-
}, null, 8,
|
|
1060
|
-
a("div",
|
|
1048
|
+
}, null, 8, sn), l.location ? (v(), i("h4", cn, [a("i", null, T(l.location), 1)])) : r("", !0)]),
|
|
1049
|
+
a("div", ln, [a("div", un, [a("ul", {
|
|
1061
1050
|
role: "tablist",
|
|
1062
1051
|
class: "mwnf-standalone-partner__tabs",
|
|
1063
1052
|
"aria-label": l.plainName,
|
|
1064
|
-
onKeydown: (e) => O(e,
|
|
1065
|
-
}, [(
|
|
1053
|
+
onKeydown: (e) => O(e, C(l, t, c))
|
|
1054
|
+
}, [(v(!0), i(e, null, x(C(l, t, c), (e, n) => (v(), i("li", {
|
|
1066
1055
|
key: e,
|
|
1067
1056
|
role: "presentation"
|
|
1068
1057
|
}, [a("button", {
|
|
1069
|
-
id: `${
|
|
1058
|
+
id: `${E(m)}-tab-${e}`,
|
|
1070
1059
|
type: "button",
|
|
1071
1060
|
role: "tab",
|
|
1072
|
-
class:
|
|
1073
|
-
"aria-selected":
|
|
1074
|
-
"aria-controls": `${
|
|
1075
|
-
tabindex:
|
|
1076
|
-
onClick: (t) =>
|
|
1077
|
-
}, "\xA0" +
|
|
1061
|
+
class: p(["mwnf-standalone-partner__tab", { "mwnf-standalone-partner__tab--active": w.value === e }]),
|
|
1062
|
+
"aria-selected": w.value === e ? "true" : "false",
|
|
1063
|
+
"aria-controls": `${E(m)}-panel-${e}`,
|
|
1064
|
+
tabindex: w.value === e ? 0 : -1,
|
|
1065
|
+
onClick: (t) => w.value = e
|
|
1066
|
+
}, "\xA0" + T(_(e)), 11, fn), n < C(l, t, c).length - 1 || l.contact.website ? (v(), i("span", pn, "\xA0|")) : r("", !0)]))), 128)), l.contact.website ? (v(), i("li", mn, [a("a", {
|
|
1078
1067
|
class: "mwnf-standalone-partner__homepage",
|
|
1079
1068
|
href: l.contact.website.url,
|
|
1080
1069
|
target: "_blank",
|
|
1081
1070
|
rel: "noopener"
|
|
1082
|
-
}, "\xA0" +
|
|
1071
|
+
}, "\xA0" + T(_("homepage")), 9, hn)])) : r("", !0)], 40, dn)]), a("div", gn, [o.items(t) ? (v(), n(J, {
|
|
1083
1072
|
key: 0,
|
|
1084
1073
|
class: "mwnf-standalone-partner__items",
|
|
1085
1074
|
to: o.items(t).to
|
|
1086
1075
|
}, {
|
|
1087
|
-
default:
|
|
1076
|
+
default: F(() => [s(T(E(u)(o.items(t).label)), 1)]),
|
|
1088
1077
|
_: 2
|
|
1089
1078
|
}, 1032, ["to"])) : r("", !0)])]),
|
|
1090
|
-
a("div",
|
|
1079
|
+
a("div", _n, [a("div", vn, [l.pictures.length ? (v(), n(ue, {
|
|
1091
1080
|
key: 0,
|
|
1092
|
-
images:
|
|
1093
|
-
}, null, 8, ["images"])) : r("", !0)]), a("div",
|
|
1094
|
-
|
|
1095
|
-
id: `${
|
|
1081
|
+
images: k(l)
|
|
1082
|
+
}, null, 8, ["images"])) : r("", !0)]), a("div", yn, [
|
|
1083
|
+
I(a("div", {
|
|
1084
|
+
id: `${E(m)}-panel-about`,
|
|
1096
1085
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__about",
|
|
1097
1086
|
role: "tabpanel",
|
|
1098
|
-
"aria-labelledby": `${
|
|
1099
|
-
dir:
|
|
1087
|
+
"aria-labelledby": `${E(m)}-tab-about`,
|
|
1088
|
+
dir: f || void 0,
|
|
1100
1089
|
innerHTML: l.description
|
|
1101
|
-
}, null, 8,
|
|
1102
|
-
l.hasContact ?
|
|
1090
|
+
}, null, 8, bn), [[N, w.value === "about"]]),
|
|
1091
|
+
l.hasContact ? I((v(), i("div", {
|
|
1103
1092
|
key: 0,
|
|
1104
|
-
id: `${
|
|
1093
|
+
id: `${E(m)}-panel-contact`,
|
|
1105
1094
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__contact",
|
|
1106
1095
|
role: "tabpanel",
|
|
1107
|
-
"aria-labelledby": `${
|
|
1108
|
-
}, [
|
|
1109
|
-
a("b", null,
|
|
1096
|
+
"aria-labelledby": `${E(m)}-tab-contact`
|
|
1097
|
+
}, [j(l) ? (v(), i(e, { key: 0 }, [a("p", null, [
|
|
1098
|
+
a("b", null, T(_("addresses")), 1),
|
|
1110
1099
|
d[4] ||= a("br", null, null, -1),
|
|
1111
|
-
l.contact.address ? (
|
|
1100
|
+
l.contact.address ? (v(), i(e, { key: 0 }, [a("span", {
|
|
1112
1101
|
class: "mwnf-standalone-partner__address",
|
|
1113
1102
|
innerHTML: l.contact.address
|
|
1114
|
-
}, null, 8,
|
|
1115
|
-
l.contact.phone ? (
|
|
1116
|
-
l.contact.fax ? (
|
|
1117
|
-
l.contact.email ? (
|
|
1118
|
-
]),
|
|
1103
|
+
}, null, 8, Sn), d[0] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1104
|
+
l.contact.phone ? (v(), i(e, { key: 1 }, [s(T(_("phone")) + " " + T(l.contact.phone), 1), d[1] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1105
|
+
l.contact.fax ? (v(), i(e, { key: 2 }, [s(T(_("fax")) + " " + T(l.contact.fax), 1), d[2] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1106
|
+
l.contact.email ? (v(), i(e, { key: 3 }, [a("a", { href: `mailto:${l.contact.email}` }, T(l.contact.email), 9, Cn), d[3] ||= a("br", null, null, -1)], 64)) : r("", !0)
|
|
1107
|
+
]), A(l).length ? (v(), i("p", wn, [(v(!0), i(e, null, x(A(l), (t, n) => (v(), i(e, { key: t.url }, [n ? (v(), i(e, { key: 0 }, [s("\xA0|\xA0")], 64)) : r("", !0), a("a", {
|
|
1119
1108
|
href: t.url,
|
|
1120
1109
|
target: "_blank",
|
|
1121
1110
|
rel: "noopener"
|
|
1122
|
-
},
|
|
1123
|
-
t.title ? (
|
|
1124
|
-
t.name ? (
|
|
1125
|
-
t.phone ? (
|
|
1126
|
-
t.fax ? (
|
|
1127
|
-
t.email ? (
|
|
1128
|
-
]))), 128))], 8,
|
|
1129
|
-
l.logos.length ?
|
|
1111
|
+
}, T(t.label), 9, Tn)], 64))), 128))])) : r("", !0)], 64)) : r("", !0), (v(!0), i(e, null, x(l.persons, (t, n) => (v(), i("p", { key: n }, [
|
|
1112
|
+
t.title ? (v(), i(e, { key: 0 }, [a("strong", null, T(t.title), 1), d[5] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1113
|
+
t.name ? (v(), i(e, { key: 1 }, [s(T(t.name), 1), d[6] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1114
|
+
t.phone ? (v(), i(e, { key: 2 }, [s(T(_("phone")) + " " + T(t.phone), 1), d[7] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1115
|
+
t.fax ? (v(), i(e, { key: 3 }, [s(T(_("fax")) + " " + T(t.fax), 1), d[8] ||= a("br", null, null, -1)], 64)) : r("", !0),
|
|
1116
|
+
t.email ? (v(), i(e, { key: 4 }, [a("a", { href: `mailto:${t.email}` }, T(t.email), 9, En), d[9] ||= a("br", null, null, -1)], 64)) : r("", !0)
|
|
1117
|
+
]))), 128))], 8, xn)), [[N, w.value === "contact"]]) : r("", !0),
|
|
1118
|
+
l.logos.length ? I((v(), i("div", {
|
|
1130
1119
|
key: 1,
|
|
1131
|
-
id: `${
|
|
1120
|
+
id: `${E(m)}-panel-logo`,
|
|
1132
1121
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__logos",
|
|
1133
1122
|
role: "tabpanel",
|
|
1134
|
-
"aria-labelledby": `${
|
|
1135
|
-
}, [(
|
|
1123
|
+
"aria-labelledby": `${E(m)}-tab-logo`
|
|
1124
|
+
}, [(v(!0), i(e, null, x(l.logos, (e) => (v(), i("img", {
|
|
1136
1125
|
key: e.url,
|
|
1137
1126
|
src: e.url,
|
|
1138
1127
|
alt: ""
|
|
1139
|
-
}, null, 8,
|
|
1128
|
+
}, null, 8, On))), 128))], 8, Dn)), [[N, w.value === "logo"]]) : r("", !0)
|
|
1140
1129
|
])])
|
|
1141
1130
|
], 64))), 128))]),
|
|
1142
|
-
after:
|
|
1131
|
+
after: F(({ record: e, text: t }) => [o.map(e) && l.view(e, t)?.map ? (v(), i("section", kn, [a("h3", An, T(_("map")), 1), c(Y, {
|
|
1143
1132
|
provider: "google",
|
|
1144
1133
|
latitude: l.view(e, t).map.latitude,
|
|
1145
1134
|
longitude: l.view(e, t).map.longitude,
|
|
1146
1135
|
zoom: l.view(e, t).map.zoom,
|
|
1147
1136
|
label: l.view(e, t).map.label,
|
|
1148
|
-
language:
|
|
1137
|
+
language: M.value
|
|
1149
1138
|
}, null, 8, [
|
|
1150
1139
|
"latitude",
|
|
1151
1140
|
"longitude",
|
|
@@ -1156,13 +1145,13 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1156
1145
|
_: 1
|
|
1157
1146
|
}, 8, ["id"]));
|
|
1158
1147
|
}
|
|
1159
|
-
},
|
|
1148
|
+
}, Mn = ["innerHTML"], Nn = {
|
|
1160
1149
|
key: 0,
|
|
1161
1150
|
class: "mwnf-standalone-page__link"
|
|
1162
|
-
},
|
|
1151
|
+
}, Pn = {
|
|
1163
1152
|
key: 1,
|
|
1164
1153
|
class: "mwnf-standalone-page__print"
|
|
1165
|
-
},
|
|
1154
|
+
}, Fn = {
|
|
1166
1155
|
__name: "TextPage",
|
|
1167
1156
|
props: {
|
|
1168
1157
|
body: {
|
|
@@ -1187,36 +1176,36 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1187
1176
|
}
|
|
1188
1177
|
},
|
|
1189
1178
|
setup(e) {
|
|
1190
|
-
let n = e, { t: o } =
|
|
1179
|
+
let n = e, { t: o } = K(), s = t(() => U(o(n.body)));
|
|
1191
1180
|
function l() {
|
|
1192
1181
|
window.print();
|
|
1193
1182
|
}
|
|
1194
|
-
return (t, n) => (
|
|
1183
|
+
return (t, n) => (v(), i("article", { class: p(["mwnf-standalone-page", {
|
|
1195
1184
|
"mwnf-standalone-page--drop-cap": e.dropCap,
|
|
1196
1185
|
"mwnf-standalone-page--narrow": e.narrow
|
|
1197
1186
|
}]) }, [
|
|
1198
1187
|
a("div", {
|
|
1199
1188
|
class: "mwnf-standalone-page__body",
|
|
1200
1189
|
innerHTML: s.value
|
|
1201
|
-
}, null, 8,
|
|
1202
|
-
e.link ? (
|
|
1190
|
+
}, null, 8, Mn),
|
|
1191
|
+
e.link ? (v(), i("p", Nn, [c(J, {
|
|
1203
1192
|
to: e.link.to,
|
|
1204
1193
|
href: e.link.href
|
|
1205
1194
|
}, {
|
|
1206
|
-
default:
|
|
1195
|
+
default: F(() => [a("strong", null, T(e.link.text ?? E(o)(e.link.label)), 1)]),
|
|
1207
1196
|
_: 1
|
|
1208
1197
|
}, 8, ["to", "href"])])) : r("", !0),
|
|
1209
|
-
e.print ? (
|
|
1198
|
+
e.print ? (v(), i("p", Pn, [a("button", {
|
|
1210
1199
|
type: "button",
|
|
1211
1200
|
class: "mwnf-standalone-page__print-button",
|
|
1212
1201
|
onClick: l
|
|
1213
|
-
},
|
|
1202
|
+
}, T(E(o)(e.print)), 1)])) : r("", !0)
|
|
1214
1203
|
], 2));
|
|
1215
1204
|
}
|
|
1216
|
-
},
|
|
1205
|
+
}, In = {
|
|
1217
1206
|
key: 0,
|
|
1218
1207
|
class: "mwnf-standalone-subnav"
|
|
1219
|
-
},
|
|
1208
|
+
}, Ln = { class: "mwnf-standalone-subnav__tabs" }, Rn = {
|
|
1220
1209
|
__name: "SubNav",
|
|
1221
1210
|
props: {
|
|
1222
1211
|
tabs: {
|
|
@@ -1229,40 +1218,40 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1229
1218
|
}
|
|
1230
1219
|
},
|
|
1231
1220
|
setup(o) {
|
|
1232
|
-
let l = o, { t: u } =
|
|
1221
|
+
let l = o, { t: u } = K(), d = t(() => l.tabs.map((e) => ({
|
|
1233
1222
|
...e,
|
|
1234
1223
|
label: u(e.label)
|
|
1235
1224
|
})));
|
|
1236
|
-
return (t, l) => d.value.length || o.aside ? (
|
|
1225
|
+
return (t, l) => d.value.length || o.aside ? (v(), i("nav", In, [a("ul", Ln, [(v(!0), i(e, null, x(d.value, (e) => (v(), i("li", { key: e.label }, [c(J, {
|
|
1237
1226
|
to: e.to,
|
|
1238
1227
|
href: e.href,
|
|
1239
|
-
class:
|
|
1228
|
+
class: p(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
|
|
1240
1229
|
"aria-current": e.active ? "page" : void 0
|
|
1241
1230
|
}, {
|
|
1242
|
-
default:
|
|
1231
|
+
default: F(() => [s(T(e.label), 1)]),
|
|
1243
1232
|
_: 2
|
|
1244
1233
|
}, 1032, [
|
|
1245
1234
|
"to",
|
|
1246
1235
|
"href",
|
|
1247
1236
|
"class",
|
|
1248
1237
|
"aria-current"
|
|
1249
|
-
])]))), 128))]), o.aside ? (
|
|
1238
|
+
])]))), 128))]), o.aside ? (v(), n(J, {
|
|
1250
1239
|
key: 0,
|
|
1251
1240
|
to: o.aside.to,
|
|
1252
1241
|
href: o.aside.href,
|
|
1253
1242
|
class: "mwnf-standalone-subnav__aside"
|
|
1254
1243
|
}, {
|
|
1255
|
-
default:
|
|
1244
|
+
default: F(() => [s(T(E(u)(o.aside.label)), 1)]),
|
|
1256
1245
|
_: 1
|
|
1257
1246
|
}, 8, ["to", "href"])) : r("", !0)])) : r("", !0);
|
|
1258
1247
|
}
|
|
1259
|
-
},
|
|
1248
|
+
}, zn = { class: "mwnf-standalone-results" }, Bn = {
|
|
1260
1249
|
key: 0,
|
|
1261
1250
|
class: "mwnf-standalone-results__empty"
|
|
1262
|
-
},
|
|
1251
|
+
}, Vn = { class: "mwnf-standalone-results__tile" }, Hn = ["src"], Un = { class: "mwnf-standalone-results__panel" }, Wn = ["src"], Gn = { class: "mwnf-standalone-results__name" }, Kn = ["innerHTML"], qn = ["innerHTML"], Jn = {
|
|
1263
1252
|
key: 0,
|
|
1264
1253
|
class: "mwnf-standalone-results__holder"
|
|
1265
|
-
},
|
|
1254
|
+
}, Yn = ["innerHTML"], Xn = ["innerHTML"], Zn = {
|
|
1266
1255
|
__name: "ResultsGrid",
|
|
1267
1256
|
props: {
|
|
1268
1257
|
rows: {
|
|
@@ -1283,64 +1272,64 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1283
1272
|
}
|
|
1284
1273
|
},
|
|
1285
1274
|
setup(t) {
|
|
1286
|
-
return (n, o) => (
|
|
1275
|
+
return (n, o) => (v(), i("div", zn, [t.rows.length ? r("", !0) : (v(), i("p", Bn, T(t.empty), 1)), (v(!0), i(e, null, x(t.rows, (n) => (v(), i("div", {
|
|
1287
1276
|
key: n.id,
|
|
1288
1277
|
class: "mwnf-standalone-results__cell"
|
|
1289
|
-
}, [a("div",
|
|
1278
|
+
}, [a("div", Vn, [c(J, {
|
|
1290
1279
|
class: "mwnf-standalone-results__frame",
|
|
1291
1280
|
to: n.to,
|
|
1292
1281
|
href: n.href
|
|
1293
1282
|
}, {
|
|
1294
|
-
default:
|
|
1283
|
+
default: F(() => [a("img", {
|
|
1295
1284
|
src: n.image || t.noImage,
|
|
1296
1285
|
alt: ""
|
|
1297
|
-
}, null, 8,
|
|
1286
|
+
}, null, 8, Hn)]),
|
|
1298
1287
|
_: 2
|
|
1299
|
-
}, 1032, ["to", "href"]), a("div",
|
|
1300
|
-
c(
|
|
1288
|
+
}, 1032, ["to", "href"]), a("div", Un, [
|
|
1289
|
+
c(J, {
|
|
1301
1290
|
class: "mwnf-standalone-results__panel-frame",
|
|
1302
1291
|
to: n.to,
|
|
1303
1292
|
href: n.href
|
|
1304
1293
|
}, {
|
|
1305
|
-
default:
|
|
1294
|
+
default: F(() => [a("img", {
|
|
1306
1295
|
src: n.image || t.noImage,
|
|
1307
1296
|
alt: ""
|
|
1308
|
-
}, null, 8,
|
|
1297
|
+
}, null, 8, Wn)]),
|
|
1309
1298
|
_: 2
|
|
1310
1299
|
}, 1032, ["to", "href"]),
|
|
1311
|
-
a("p",
|
|
1300
|
+
a("p", Gn, [a("strong", null, [c(J, {
|
|
1312
1301
|
to: n.to,
|
|
1313
1302
|
href: n.href
|
|
1314
1303
|
}, {
|
|
1315
|
-
default:
|
|
1304
|
+
default: F(() => [a("span", { innerHTML: n.name }, null, 8, Kn)]),
|
|
1316
1305
|
_: 2
|
|
1317
1306
|
}, 1032, ["to", "href"])])]),
|
|
1318
|
-
(
|
|
1307
|
+
(v(!0), i(e, null, x(n.lines ?? [], (e, t) => (v(), i("p", {
|
|
1319
1308
|
key: t,
|
|
1320
1309
|
innerHTML: e
|
|
1321
|
-
}, null, 8,
|
|
1322
|
-
n.holder ? (
|
|
1323
|
-
n.location ? (
|
|
1310
|
+
}, null, 8, qn))), 128)),
|
|
1311
|
+
n.holder ? (v(), i("p", Jn, [a("strong", { innerHTML: n.holder }, null, 8, Yn)])) : r("", !0),
|
|
1312
|
+
n.location ? (v(), i("p", {
|
|
1324
1313
|
key: 1,
|
|
1325
1314
|
innerHTML: n.location
|
|
1326
|
-
}, null, 8,
|
|
1327
|
-
a("p", null, [c(
|
|
1315
|
+
}, null, 8, Xn)) : r("", !0),
|
|
1316
|
+
a("p", null, [c(J, {
|
|
1328
1317
|
class: "mwnf-standalone-results__see",
|
|
1329
1318
|
to: n.to,
|
|
1330
1319
|
href: n.href
|
|
1331
1320
|
}, {
|
|
1332
|
-
default:
|
|
1321
|
+
default: F(() => [s(T(t.seeLabel), 1)]),
|
|
1333
1322
|
_: 1
|
|
1334
1323
|
}, 8, ["to", "href"])])
|
|
1335
1324
|
])])]))), 128))]));
|
|
1336
1325
|
}
|
|
1337
|
-
},
|
|
1326
|
+
}, Qn = { class: "mwnf-standalone-list" }, $n = { class: "mwnf-standalone-list__aside" }, er = {
|
|
1338
1327
|
key: 0,
|
|
1339
1328
|
class: "mwnf-standalone-list__preview"
|
|
1340
|
-
},
|
|
1329
|
+
}, tr = { class: "mwnf-standalone-list__preview-picture" }, nr = ["src"], rr = { class: "mwnf-standalone-list__preview-name" }, ir = ["innerHTML"], ar = ["innerHTML"], or = { key: 0 }, sr = ["innerHTML"], cr = ["innerHTML"], lr = { class: "mwnf-standalone-list__records" }, ur = {
|
|
1341
1330
|
key: 0,
|
|
1342
1331
|
class: "mwnf-standalone-list__empty"
|
|
1343
|
-
},
|
|
1332
|
+
}, dr = { class: "mwnf-standalone-list__frame" }, fr = ["src"], pr = { class: "mwnf-standalone-list__content" }, mr = ["innerHTML"], hr = ["innerHTML"], gr = { key: 0 }, _r = ["innerHTML"], vr = {
|
|
1344
1333
|
__name: "ResultsList",
|
|
1345
1334
|
props: {
|
|
1346
1335
|
rows: {
|
|
@@ -1357,73 +1346,73 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1357
1346
|
}
|
|
1358
1347
|
},
|
|
1359
1348
|
setup(n) {
|
|
1360
|
-
let o = n, l =
|
|
1361
|
-
return (t, o) => (
|
|
1362
|
-
a("div",
|
|
1349
|
+
let o = n, l = b(null), u = t(() => l.value ?? o.rows[0] ?? null);
|
|
1350
|
+
return (t, o) => (v(), i("div", Qn, [a("div", $n, [u.value ? (v(), i("div", er, [
|
|
1351
|
+
a("div", tr, [u.value.image || n.noImage ? (v(), i("img", {
|
|
1363
1352
|
key: 0,
|
|
1364
1353
|
src: u.value.image || n.noImage,
|
|
1365
1354
|
alt: ""
|
|
1366
|
-
}, null, 8,
|
|
1367
|
-
a("p",
|
|
1368
|
-
(
|
|
1355
|
+
}, null, 8, nr)) : r("", !0)]),
|
|
1356
|
+
a("p", rr, [a("strong", { innerHTML: u.value.name }, null, 8, ir)]),
|
|
1357
|
+
(v(!0), i(e, null, x(u.value.preview?.lines ?? [], (e, t) => (v(), i("p", {
|
|
1369
1358
|
key: t,
|
|
1370
1359
|
innerHTML: e
|
|
1371
|
-
}, null, 8,
|
|
1372
|
-
u.value.preview?.holder ? (
|
|
1373
|
-
u.value.preview?.location ? (
|
|
1360
|
+
}, null, 8, ar))), 128)),
|
|
1361
|
+
u.value.preview?.holder ? (v(), i("p", or, [a("strong", { innerHTML: u.value.preview.holder }, null, 8, sr)])) : r("", !0),
|
|
1362
|
+
u.value.preview?.location ? (v(), i("p", {
|
|
1374
1363
|
key: 1,
|
|
1375
1364
|
innerHTML: u.value.preview.location
|
|
1376
|
-
}, null, 8,
|
|
1377
|
-
])) : r("", !0)]), a("div",
|
|
1365
|
+
}, null, 8, cr)) : r("", !0)
|
|
1366
|
+
])) : r("", !0)]), a("div", lr, [n.rows.length ? r("", !0) : (v(), i("p", ur, T(n.empty), 1)), (v(!0), i(e, null, x(n.rows, (e) => (v(), i("div", {
|
|
1378
1367
|
key: e.id,
|
|
1379
1368
|
class: "mwnf-standalone-list__cell"
|
|
1380
|
-
}, [a("div",
|
|
1369
|
+
}, [a("div", dr, [c(J, {
|
|
1381
1370
|
to: e.to,
|
|
1382
1371
|
href: e.href,
|
|
1383
1372
|
onMouseenter: (t) => l.value = e,
|
|
1384
1373
|
onMouseleave: o[0] ||= (e) => l.value = null
|
|
1385
1374
|
}, {
|
|
1386
|
-
default:
|
|
1375
|
+
default: F(() => [e.image || n.noImage ? (v(), i("img", {
|
|
1387
1376
|
key: 0,
|
|
1388
1377
|
src: e.image || n.noImage,
|
|
1389
1378
|
alt: ""
|
|
1390
|
-
}, null, 8,
|
|
1379
|
+
}, null, 8, fr)) : r("", !0)]),
|
|
1391
1380
|
_: 2
|
|
1392
1381
|
}, 1032, [
|
|
1393
1382
|
"to",
|
|
1394
1383
|
"href",
|
|
1395
1384
|
"onMouseenter"
|
|
1396
|
-
])]), a("div",
|
|
1385
|
+
])]), a("div", pr, [a("p", null, [c(J, {
|
|
1397
1386
|
to: e.to,
|
|
1398
1387
|
href: e.href,
|
|
1399
1388
|
onMouseenter: (t) => l.value = e,
|
|
1400
1389
|
onMouseleave: o[1] ||= (e) => l.value = null
|
|
1401
1390
|
}, {
|
|
1402
|
-
default:
|
|
1391
|
+
default: F(() => [
|
|
1403
1392
|
a("span", {
|
|
1404
1393
|
class: "mwnf-standalone-list__name",
|
|
1405
1394
|
innerHTML: `${e.name},`
|
|
1406
|
-
}, null, 8,
|
|
1395
|
+
}, null, 8, mr),
|
|
1407
1396
|
o[2] ||= s(),
|
|
1408
|
-
a("span", { innerHTML: e.place }, null, 8,
|
|
1397
|
+
a("span", { innerHTML: e.place }, null, 8, hr)
|
|
1409
1398
|
]),
|
|
1410
1399
|
_: 2
|
|
1411
1400
|
}, 1032, [
|
|
1412
1401
|
"to",
|
|
1413
1402
|
"href",
|
|
1414
1403
|
"onMouseenter"
|
|
1415
|
-
])]), e.dates ? (
|
|
1404
|
+
])]), e.dates ? (v(), i("div", gr, [a("i", { innerHTML: e.dates }, null, 8, _r)])) : r("", !0)])]))), 128))])]));
|
|
1416
1405
|
}
|
|
1417
|
-
},
|
|
1406
|
+
}, yr = { class: "mwnf-standalone-refine__row" }, br = {
|
|
1418
1407
|
class: "mwnf-standalone-refine__label",
|
|
1419
1408
|
for: "mwnf-standalone-refine-keyword"
|
|
1420
|
-
},
|
|
1409
|
+
}, xr = {
|
|
1421
1410
|
class: "mwnf-standalone-refine__label",
|
|
1422
1411
|
for: "mwnf-standalone-refine-field"
|
|
1423
|
-
},
|
|
1412
|
+
}, Sr = ["value"], Cr = {
|
|
1424
1413
|
type: "submit",
|
|
1425
1414
|
class: "mwnf-standalone-refine__button"
|
|
1426
|
-
},
|
|
1415
|
+
}, wr = {
|
|
1427
1416
|
__name: "Refine",
|
|
1428
1417
|
props: {
|
|
1429
1418
|
label: {
|
|
@@ -1453,7 +1442,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1453
1442
|
},
|
|
1454
1443
|
emits: ["search"],
|
|
1455
1444
|
setup(t, { emit: n }) {
|
|
1456
|
-
let r = t, o = n, l =
|
|
1445
|
+
let r = t, o = n, l = b(""), u = b(r.fields[0]?.value ?? "");
|
|
1457
1446
|
function d() {
|
|
1458
1447
|
let e = l.value.trim();
|
|
1459
1448
|
e && o("search", {
|
|
@@ -1461,39 +1450,39 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1461
1450
|
field: u.value
|
|
1462
1451
|
});
|
|
1463
1452
|
}
|
|
1464
|
-
return (n, r) => (
|
|
1453
|
+
return (n, r) => (v(), i("form", {
|
|
1465
1454
|
class: "mwnf-standalone-refine",
|
|
1466
|
-
onSubmit:
|
|
1467
|
-
}, [a("div",
|
|
1468
|
-
a("label",
|
|
1469
|
-
|
|
1455
|
+
onSubmit: L(d, ["prevent"])
|
|
1456
|
+
}, [a("div", yr, [
|
|
1457
|
+
a("label", br, T(t.label), 1),
|
|
1458
|
+
I(a("input", {
|
|
1470
1459
|
id: "mwnf-standalone-refine-keyword",
|
|
1471
1460
|
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
1472
1461
|
type: "text",
|
|
1473
1462
|
size: "40"
|
|
1474
|
-
}, null, 512), [[
|
|
1475
|
-
a("label",
|
|
1476
|
-
|
|
1463
|
+
}, null, 512), [[M, l.value]]),
|
|
1464
|
+
a("label", xr, T(t.inLabel), 1),
|
|
1465
|
+
I(a("select", {
|
|
1477
1466
|
id: "mwnf-standalone-refine-field",
|
|
1478
1467
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e
|
|
1479
|
-
}, [(
|
|
1468
|
+
}, [(v(!0), i(e, null, x(t.fields, (e) => (v(), i("option", {
|
|
1480
1469
|
key: e.value,
|
|
1481
1470
|
value: e.value
|
|
1482
|
-
},
|
|
1483
|
-
a("button",
|
|
1484
|
-
c(
|
|
1471
|
+
}, T(e.label), 9, Sr))), 128))], 512), [[j, u.value]]),
|
|
1472
|
+
a("button", Cr, T(t.searchLabel), 1),
|
|
1473
|
+
c(J, {
|
|
1485
1474
|
class: "mwnf-standalone-refine__button mwnf-standalone-refine__button--new",
|
|
1486
1475
|
to: t.newSearch
|
|
1487
1476
|
}, {
|
|
1488
|
-
default:
|
|
1477
|
+
default: F(() => [s(T(t.newSearchLabel), 1)]),
|
|
1489
1478
|
_: 1
|
|
1490
1479
|
}, 8, ["to"])
|
|
1491
1480
|
])], 32));
|
|
1492
1481
|
}
|
|
1493
|
-
},
|
|
1482
|
+
}, Tr = { class: "mwnf-standalone-item__back mwnf-standalone-pl__back" }, Er = { class: "mwnf-standalone-pl__heads" }, Dr = { class: "mwnf-standalone-pl__head" }, Or = { key: 0 }, kr = ["onClick"], Ar = { class: "mwnf-standalone-pl__row" }, jr = { class: "mwnf-standalone-pl__main" }, Mr = { class: "mwnf-standalone-pl__associated" }, Nr = {
|
|
1494
1483
|
key: 0,
|
|
1495
1484
|
class: "mwnf-standalone-pl__none"
|
|
1496
|
-
},
|
|
1485
|
+
}, Pr = {
|
|
1497
1486
|
__name: "PartnerList",
|
|
1498
1487
|
props: {
|
|
1499
1488
|
type: {
|
|
@@ -1522,56 +1511,56 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1522
1511
|
}
|
|
1523
1512
|
},
|
|
1524
1513
|
setup(o) {
|
|
1525
|
-
let l = o, u = t(() => l.type === "museum"), d =
|
|
1526
|
-
|
|
1527
|
-
d.value = u.value ? null : 0,
|
|
1514
|
+
let l = o, u = t(() => l.type === "museum"), d = b(null), f = b(/* @__PURE__ */ new Set());
|
|
1515
|
+
P([u, () => l.groups.length], () => {
|
|
1516
|
+
d.value = u.value ? null : 0, f.value = u.value ? /* @__PURE__ */ new Set() : new Set(l.groups.map((e, t) => t));
|
|
1528
1517
|
}, { immediate: !0 });
|
|
1529
1518
|
function m(e) {
|
|
1530
1519
|
let t = d.value === e;
|
|
1531
|
-
d.value = t ? null : e,
|
|
1520
|
+
d.value = t ? null : e, f.value = t ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([e]);
|
|
1532
1521
|
}
|
|
1533
|
-
return (t, l) => (
|
|
1534
|
-
a("p",
|
|
1522
|
+
return (t, l) => (v(), i("div", { class: p(["mwnf-standalone-pl", u.value ? "mwnf-standalone-pl--museums" : "mwnf-standalone-pl--institutions"]) }, [
|
|
1523
|
+
a("p", Tr, [(v(!0), i(e, null, x(o.back, (r) => (v(), i(e, { key: r.label }, [r.history ? (v(), i("button", {
|
|
1535
1524
|
key: 0,
|
|
1536
1525
|
type: "button",
|
|
1537
1526
|
class: "mwnf-standalone-item__back-link",
|
|
1538
1527
|
onClick: l[0] ||= (e) => t.$router.back()
|
|
1539
|
-
},
|
|
1528
|
+
}, T(r.label), 1)) : (v(), n(J, {
|
|
1540
1529
|
key: 1,
|
|
1541
1530
|
class: "mwnf-standalone-item__back-link",
|
|
1542
1531
|
to: r.to,
|
|
1543
1532
|
href: r.href
|
|
1544
1533
|
}, {
|
|
1545
|
-
default:
|
|
1534
|
+
default: F(() => [s(T(r.label), 1)]),
|
|
1546
1535
|
_: 2
|
|
1547
|
-
}, 1032, ["to", "href"]))], 64))), 128)),
|
|
1548
|
-
a("div",
|
|
1549
|
-
(
|
|
1536
|
+
}, 1032, ["to", "href"]))], 64))), 128)), S(t.$slots, "back")]),
|
|
1537
|
+
a("div", Er, [(v(!0), i(e, null, x(o.heads, (e) => (v(), i("h3", { key: e }, T(e), 1))), 128))]),
|
|
1538
|
+
(v(!0), i(e, null, x(o.groups, (t, n) => (v(), i("div", {
|
|
1550
1539
|
key: t.label,
|
|
1551
1540
|
class: "mwnf-standalone-pl__group"
|
|
1552
|
-
}, [a("div",
|
|
1541
|
+
}, [a("div", Dr, [u.value ? (v(), i("h3", Or, T(t.label), 1)) : r("", !0), a("h3", null, [a("a", {
|
|
1553
1542
|
href: "#",
|
|
1554
|
-
class:
|
|
1555
|
-
onClick:
|
|
1556
|
-
},
|
|
1543
|
+
class: p(["mwnf-standalone-pl__toggle", { "mwnf-standalone-pl__toggle--active": d.value === n }]),
|
|
1544
|
+
onClick: L((e) => m(n), ["prevent"])
|
|
1545
|
+
}, T(u.value ? o.seeAssociated : t.label), 11, kr)])]), I(a("div", Ar, [a("div", jr, [(v(!0), i(e, null, x(t.main, (e) => (v(), i("p", { key: e.id }, [c(J, {
|
|
1557
1546
|
to: e.to,
|
|
1558
1547
|
href: e.href
|
|
1559
1548
|
}, {
|
|
1560
|
-
default:
|
|
1549
|
+
default: F(() => [s(T(e.label), 1)]),
|
|
1561
1550
|
_: 2
|
|
1562
|
-
}, 1032, ["to", "href"])]))), 128))]),
|
|
1551
|
+
}, 1032, ["to", "href"])]))), 128))]), I(a("div", Mr, [(v(!0), i(e, null, x(t.associated, (e) => (v(), i("p", { key: e.id }, [c(J, {
|
|
1563
1552
|
to: e.to,
|
|
1564
1553
|
href: e.href
|
|
1565
1554
|
}, {
|
|
1566
|
-
default:
|
|
1555
|
+
default: F(() => [s(T(e.label), 1)]),
|
|
1567
1556
|
_: 2
|
|
1568
|
-
}, 1032, ["to", "href"])]))), 128)), u.value && !t.associated.length ? (
|
|
1557
|
+
}, 1032, ["to", "href"])]))), 128)), u.value && !t.associated.length ? (v(), i("p", Nr, T(o.noAssociated), 1)) : r("", !0)], 512), [[N, !u.value || f.value.has(n)]])], 512), [[N, u.value || f.value.has(n)]])]))), 128))
|
|
1569
1558
|
], 2));
|
|
1570
1559
|
}
|
|
1571
|
-
},
|
|
1560
|
+
}, Fr = { class: "mwnf-standalone-item__back mwnf-standalone-sp__back" }, Ir = {
|
|
1572
1561
|
key: 0,
|
|
1573
1562
|
class: "mwnf-standalone-sp__heading"
|
|
1574
|
-
},
|
|
1563
|
+
}, Lr = ["innerHTML"], Rr = { class: "mwnf-standalone-sp__text" }, zr = { key: 0 }, Br = { key: 1 }, Vr = { key: 2 }, Hr = ["href"], Ur = ["innerHTML"], Wr = { class: "mwnf-standalone-sp__logo" }, Gr = { key: 0 }, Kr = ["src", "alt"], qr = {
|
|
1575
1564
|
__name: "SponsorList",
|
|
1576
1565
|
props: {
|
|
1577
1566
|
heading: {
|
|
@@ -1590,68 +1579,68 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1590
1579
|
setup(o) {
|
|
1591
1580
|
let c = o, l = t(() => c.rows.some((e) => e.label !== void 0)), u = t(() => c.rows.map((e) => ({
|
|
1592
1581
|
...e,
|
|
1593
|
-
labelHtml: e.label ?
|
|
1594
|
-
remarksHtml: e.remarks ?
|
|
1582
|
+
labelHtml: e.label ? V(e.label) : "",
|
|
1583
|
+
remarksHtml: e.remarks ? V(e.remarks) : ""
|
|
1595
1584
|
})));
|
|
1596
|
-
return (t, c) => (
|
|
1597
|
-
a("p",
|
|
1585
|
+
return (t, c) => (v(), i("div", { class: p(["mwnf-standalone-sp", { "mwnf-standalone-sp--labels": l.value }]) }, [
|
|
1586
|
+
a("p", Fr, [(v(!0), i(e, null, x(o.back, (r) => (v(), i(e, { key: r.label }, [r.history ? (v(), i("button", {
|
|
1598
1587
|
key: 0,
|
|
1599
1588
|
type: "button",
|
|
1600
1589
|
class: "mwnf-standalone-item__back-link",
|
|
1601
1590
|
onClick: c[0] ||= (e) => t.$router.back()
|
|
1602
|
-
},
|
|
1591
|
+
}, T(r.label), 1)) : (v(), n(J, {
|
|
1603
1592
|
key: 1,
|
|
1604
1593
|
class: "mwnf-standalone-item__back-link",
|
|
1605
1594
|
to: r.to,
|
|
1606
1595
|
href: r.href
|
|
1607
1596
|
}, {
|
|
1608
|
-
default:
|
|
1597
|
+
default: F(() => [s(T(r.label), 1)]),
|
|
1609
1598
|
_: 2
|
|
1610
1599
|
}, 1032, ["to", "href"]))], 64))), 128))]),
|
|
1611
|
-
o.heading ? (
|
|
1612
|
-
(
|
|
1600
|
+
o.heading ? (v(), i("h3", Ir, T(o.heading), 1)) : r("", !0),
|
|
1601
|
+
(v(!0), i(e, null, x(u.value, (e, t) => (v(), i("div", {
|
|
1613
1602
|
key: t,
|
|
1614
1603
|
class: "mwnf-standalone-sp__row"
|
|
1615
1604
|
}, [
|
|
1616
|
-
l.value ? (
|
|
1605
|
+
l.value ? (v(), i("div", {
|
|
1617
1606
|
key: 0,
|
|
1618
1607
|
class: "mwnf-standalone-sp__label",
|
|
1619
1608
|
innerHTML: e.labelHtml
|
|
1620
|
-
}, null, 8,
|
|
1621
|
-
a("div",
|
|
1622
|
-
e.region ? (
|
|
1623
|
-
e.name ? (
|
|
1624
|
-
e.web ? (
|
|
1609
|
+
}, null, 8, Lr)) : r("", !0),
|
|
1610
|
+
a("div", Rr, [
|
|
1611
|
+
e.region ? (v(), i("p", zr, T(e.region), 1)) : r("", !0),
|
|
1612
|
+
e.name ? (v(), i("p", Br, T(e.name), 1)) : r("", !0),
|
|
1613
|
+
e.web ? (v(), i("p", Vr, [a("a", {
|
|
1625
1614
|
href: `http://${e.web}`,
|
|
1626
1615
|
target: "_blank",
|
|
1627
1616
|
rel: "noopener"
|
|
1628
|
-
},
|
|
1629
|
-
e.remarksHtml ? (
|
|
1617
|
+
}, T(e.web), 9, Hr)])) : r("", !0),
|
|
1618
|
+
e.remarksHtml ? (v(), i("div", {
|
|
1630
1619
|
key: 3,
|
|
1631
1620
|
class: "mwnf-standalone-sp__remarks",
|
|
1632
1621
|
innerHTML: e.remarksHtml
|
|
1633
|
-
}, null, 8,
|
|
1622
|
+
}, null, 8, Ur)) : r("", !0)
|
|
1634
1623
|
]),
|
|
1635
|
-
a("div",
|
|
1624
|
+
a("div", Wr, [e.logo ? (v(), i("p", Gr, [a("img", {
|
|
1636
1625
|
src: e.logo,
|
|
1637
1626
|
alt: e.name
|
|
1638
|
-
}, null, 8,
|
|
1627
|
+
}, null, 8, Kr)])) : r("", !0)])
|
|
1639
1628
|
]))), 128))
|
|
1640
1629
|
], 2));
|
|
1641
1630
|
}
|
|
1642
|
-
},
|
|
1631
|
+
}, Jr = { class: "mwnf-standalone-pe" }, Yr = { class: "mwnf-standalone-pe__box" }, Xr = { class: "mwnf-standalone-pe__name" }, Zr = { class: "mwnf-standalone-pe__links" }, Qr = {
|
|
1643
1632
|
key: 0,
|
|
1644
1633
|
class: "mwnf-standalone-pe__about"
|
|
1645
|
-
},
|
|
1634
|
+
}, $r = ["aria-expanded", "onClick"], ei = {
|
|
1646
1635
|
key: 1,
|
|
1647
1636
|
class: "mwnf-standalone-pe__popup",
|
|
1648
1637
|
role: "dialog"
|
|
1649
|
-
},
|
|
1638
|
+
}, ti = ["aria-label"], ni = {
|
|
1650
1639
|
viewBox: "0 0 24 24",
|
|
1651
1640
|
width: "21",
|
|
1652
1641
|
height: "21",
|
|
1653
1642
|
"aria-hidden": "true"
|
|
1654
|
-
},
|
|
1643
|
+
}, ri = ["id"], ii = ["mask"], ai = ["innerHTML"], oi = {
|
|
1655
1644
|
__name: "PartnersEntrance",
|
|
1656
1645
|
props: {
|
|
1657
1646
|
projects: {
|
|
@@ -1670,38 +1659,38 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1670
1659
|
setup(n) {
|
|
1671
1660
|
let o = n, l = t(() => o.projects.map((e) => ({
|
|
1672
1661
|
...e,
|
|
1673
|
-
aboutHtml: e.about ?
|
|
1674
|
-
}))), u =
|
|
1662
|
+
aboutHtml: e.about ? V(e.about) : ""
|
|
1663
|
+
}))), u = b(-1);
|
|
1675
1664
|
function d() {
|
|
1676
1665
|
u.value = -1;
|
|
1677
1666
|
}
|
|
1678
1667
|
function f(e) {
|
|
1679
1668
|
e.key === "Escape" && d();
|
|
1680
1669
|
}
|
|
1681
|
-
return
|
|
1670
|
+
return P(u, (e) => {
|
|
1682
1671
|
typeof document < "u" && (e >= 0 ? document.addEventListener("keydown", f) : document.removeEventListener("keydown", f));
|
|
1683
|
-
}),
|
|
1672
|
+
}), g(() => {
|
|
1684
1673
|
typeof document < "u" && document.removeEventListener("keydown", f);
|
|
1685
|
-
}), (t, o) => (
|
|
1674
|
+
}), (t, o) => (v(), i("div", Jr, [u.value >= 0 ? (v(), i("div", {
|
|
1686
1675
|
key: 0,
|
|
1687
1676
|
class: "mwnf-standalone-pe__shade",
|
|
1688
1677
|
onClick: d
|
|
1689
|
-
})) : r("", !0), (
|
|
1678
|
+
})) : r("", !0), (v(!0), i(e, null, x(l.value, (t, l) => (v(), i("div", {
|
|
1690
1679
|
key: l,
|
|
1691
1680
|
class: "mwnf-standalone-pe__row"
|
|
1692
|
-
}, [a("div",
|
|
1681
|
+
}, [a("div", Yr, [a("h3", Xr, T(t.name), 1)]), a("div", Zr, [
|
|
1693
1682
|
o[1] ||= a("p", { "aria-hidden": "true" }, "\xA0", -1),
|
|
1694
|
-
t.aboutHtml ? (
|
|
1683
|
+
t.aboutHtml ? (v(), i("p", Qr, [a("button", {
|
|
1695
1684
|
type: "button",
|
|
1696
1685
|
"aria-expanded": u.value === l,
|
|
1697
1686
|
onClick: (e) => u.value = l
|
|
1698
|
-
},
|
|
1699
|
-
u.value === l ? (
|
|
1687
|
+
}, T(n.aboutLabel), 9, $r)])) : r("", !0),
|
|
1688
|
+
u.value === l ? (v(), i("div", ei, [a("button", {
|
|
1700
1689
|
type: "button",
|
|
1701
1690
|
class: "mwnf-standalone-pe__close",
|
|
1702
1691
|
"aria-label": n.closeLabel || void 0,
|
|
1703
1692
|
onClick: d
|
|
1704
|
-
}, [(
|
|
1693
|
+
}, [(v(), i("svg", ni, [a("mask", { id: `mwnf-standalone-pe-x${l}` }, [...o[0] ||= [a("rect", {
|
|
1705
1694
|
width: "24",
|
|
1706
1695
|
height: "24",
|
|
1707
1696
|
fill: "#fff"
|
|
@@ -1710,35 +1699,35 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1710
1699
|
stroke: "#000",
|
|
1711
1700
|
"stroke-width": "3",
|
|
1712
1701
|
"stroke-linecap": "round"
|
|
1713
|
-
}, null, -1)]], 8,
|
|
1702
|
+
}, null, -1)]], 8, ri), a("circle", {
|
|
1714
1703
|
cx: "12",
|
|
1715
1704
|
cy: "12",
|
|
1716
1705
|
r: "12",
|
|
1717
1706
|
fill: "currentColor",
|
|
1718
1707
|
mask: `url(#mwnf-standalone-pe-x${l})`
|
|
1719
|
-
}, null, 8,
|
|
1708
|
+
}, null, 8, ii)]))], 8, ti), a("div", {
|
|
1720
1709
|
class: "mwnf-standalone-pe__text",
|
|
1721
1710
|
innerHTML: t.aboutHtml
|
|
1722
|
-
}, null, 8,
|
|
1723
|
-
(
|
|
1711
|
+
}, null, 8, ai)])) : r("", !0),
|
|
1712
|
+
(v(!0), i(e, null, x(t.links, (e) => (v(), i("p", { key: e.label }, [c(J, {
|
|
1724
1713
|
to: e.to,
|
|
1725
1714
|
href: e.href
|
|
1726
1715
|
}, {
|
|
1727
|
-
default:
|
|
1716
|
+
default: F(() => [s(T(e.label), 1)]),
|
|
1728
1717
|
_: 2
|
|
1729
1718
|
}, 1032, ["to", "href"])]))), 128))
|
|
1730
1719
|
])]))), 128))]));
|
|
1731
1720
|
}
|
|
1732
|
-
},
|
|
1721
|
+
}, si = { class: "mwnf-standalone-db__criteria" }, ci = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--keywords" }, li = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--category" }, ui = {
|
|
1733
1722
|
key: 0,
|
|
1734
1723
|
class: "mwnf-standalone-db__aside"
|
|
1735
|
-
},
|
|
1724
|
+
}, di = ["onUpdate:modelValue", "aria-label"], fi = { value: "AND" }, pi = { value: "OR" }, mi = ["onUpdate:modelValue", "aria-label"], hi = ["onUpdate:modelValue"], gi = ["value"], _i = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--date" }, vi = { class: "mwnf-standalone-db__dates" }, yi = ["aria-label"], bi = { value: "" }, xi = ["value"], Si = ["aria-label"], Ci = { value: "" }, wi = ["value"], Ti = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--language" }, Ei = { class: "mwnf-standalone-db__language" }, Di = ["aria-label"], Oi = ["value"], ki = {
|
|
1736
1725
|
key: 1,
|
|
1737
1726
|
class: "mwnf-standalone-db__options"
|
|
1738
|
-
},
|
|
1727
|
+
}, Ai = { class: "mwnf-standalone-db__go" }, ji = { type: "submit" }, Mi = {
|
|
1739
1728
|
key: 2,
|
|
1740
1729
|
class: "mwnf-standalone-db__listing"
|
|
1741
|
-
},
|
|
1730
|
+
}, Ni = ["href", "title"], Pi = {
|
|
1742
1731
|
__name: "DatabaseForm",
|
|
1743
1732
|
props: /*@__PURE__*/ u({
|
|
1744
1733
|
labels: {
|
|
@@ -1774,7 +1763,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1774
1763
|
}),
|
|
1775
1764
|
emits: /*@__PURE__*/ u(["search"], ["update:language"]),
|
|
1776
1765
|
setup(n, { emit: o }) {
|
|
1777
|
-
let s = n, c =
|
|
1766
|
+
let s = n, c = O(n, "language"), l = o, u = k(), d = y([
|
|
1778
1767
|
{
|
|
1779
1768
|
keyword: "",
|
|
1780
1769
|
field: s.fields[0]?.value ?? "",
|
|
@@ -1790,80 +1779,419 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1790
1779
|
field: s.fields[0]?.value ?? "",
|
|
1791
1780
|
cond: "AND"
|
|
1792
1781
|
}
|
|
1793
|
-
]),
|
|
1782
|
+
]), f = y({
|
|
1794
1783
|
from: "",
|
|
1795
1784
|
to: ""
|
|
1796
1785
|
}), m = t(() => !!u.options), h = (e) => typeof e == "object" ? e : {
|
|
1797
1786
|
value: e,
|
|
1798
1787
|
label: String(e)
|
|
1799
|
-
}, g = t(() => s.fromYears.map(h)),
|
|
1800
|
-
function
|
|
1788
|
+
}, g = t(() => s.fromYears.map(h)), _ = t(() => s.toYears.map(h));
|
|
1789
|
+
function b() {
|
|
1801
1790
|
l("search", {
|
|
1802
1791
|
rows: d.map((e) => ({
|
|
1803
1792
|
...e,
|
|
1804
1793
|
keyword: e.keyword.trim()
|
|
1805
1794
|
})),
|
|
1806
|
-
from:
|
|
1807
|
-
to:
|
|
1795
|
+
from: f.from,
|
|
1796
|
+
to: f.to
|
|
1808
1797
|
});
|
|
1809
1798
|
}
|
|
1810
|
-
return (t, o) => (
|
|
1811
|
-
class:
|
|
1812
|
-
onSubmit:
|
|
1799
|
+
return (t, o) => (v(), i("form", {
|
|
1800
|
+
class: p(["mwnf-standalone-db", { "mwnf-standalone-db--options": m.value }]),
|
|
1801
|
+
onSubmit: L(b, ["prevent"])
|
|
1813
1802
|
}, [
|
|
1814
|
-
a("h3",
|
|
1815
|
-
a("p",
|
|
1816
|
-
a("p",
|
|
1817
|
-
t.$slots.aside ? (
|
|
1818
|
-
(
|
|
1819
|
-
o ?
|
|
1803
|
+
a("h3", si, T(n.labels.criteria), 1),
|
|
1804
|
+
a("p", ci, T(n.labels.keywords), 1),
|
|
1805
|
+
a("p", li, T(n.labels.category), 1),
|
|
1806
|
+
t.$slots.aside ? (v(), i("p", ui, [S(t.$slots, "aside")])) : r("", !0),
|
|
1807
|
+
(v(!0), i(e, null, x(d, (t, o) => (v(), i(e, { key: o }, [
|
|
1808
|
+
o ? I((v(), i("select", {
|
|
1820
1809
|
key: 0,
|
|
1821
1810
|
"onUpdate:modelValue": (e) => t.cond = e,
|
|
1822
|
-
class:
|
|
1811
|
+
class: p(["mwnf-standalone-db__cond", `mwnf-standalone-db__row-${o + 1}`]),
|
|
1823
1812
|
"aria-label": `${n.labels.and} / ${n.labels.or}`
|
|
1824
|
-
}, [a("option",
|
|
1825
|
-
|
|
1813
|
+
}, [a("option", fi, T(n.labels.and), 1), a("option", pi, T(n.labels.or), 1)], 10, di)), [[j, t.cond]]) : r("", !0),
|
|
1814
|
+
I(a("input", {
|
|
1826
1815
|
"onUpdate:modelValue": (e) => t.keyword = e,
|
|
1827
1816
|
type: "text",
|
|
1828
|
-
class:
|
|
1817
|
+
class: p(["mwnf-standalone-db__keyword", `mwnf-standalone-db__row-${o + 1}`]),
|
|
1829
1818
|
"aria-label": n.labels.keywords
|
|
1830
|
-
}, null, 10,
|
|
1831
|
-
a("label", { class:
|
|
1819
|
+
}, null, 10, mi), [[M, t.keyword]]),
|
|
1820
|
+
a("label", { class: p(["mwnf-standalone-db__field", `mwnf-standalone-db__row-${o + 1}`]) }, [a("span", null, T(n.labels.in), 1), I(a("select", { "onUpdate:modelValue": (e) => t.field = e }, [(v(!0), i(e, null, x(n.fields, (e) => (v(), i("option", {
|
|
1832
1821
|
key: e.value,
|
|
1833
1822
|
value: e.value
|
|
1834
|
-
},
|
|
1823
|
+
}, T(e.label), 9, gi))), 128))], 8, hi), [[j, t.field]])], 2)
|
|
1835
1824
|
], 64))), 128)),
|
|
1836
|
-
a("span",
|
|
1837
|
-
a("p",
|
|
1838
|
-
"onUpdate:modelValue": o[0] ||= (e) =>
|
|
1825
|
+
a("span", _i, T(n.labels.date), 1),
|
|
1826
|
+
a("p", vi, [I(a("select", {
|
|
1827
|
+
"onUpdate:modelValue": o[0] ||= (e) => f.from = e,
|
|
1839
1828
|
"aria-label": `${n.labels.date} ${n.labels.from}`
|
|
1840
|
-
}, [a("option",
|
|
1829
|
+
}, [a("option", bi, T(n.labels.from), 1), (v(!0), i(e, null, x(g.value, (e) => (v(), i("option", {
|
|
1841
1830
|
key: e.value,
|
|
1842
1831
|
value: e.value
|
|
1843
|
-
},
|
|
1844
|
-
"onUpdate:modelValue": o[1] ||= (e) =>
|
|
1832
|
+
}, T(e.label), 9, xi))), 128))], 8, yi), [[j, f.from]]), I(a("select", {
|
|
1833
|
+
"onUpdate:modelValue": o[1] ||= (e) => f.to = e,
|
|
1845
1834
|
"aria-label": `${n.labels.date} ${n.labels.to}`
|
|
1846
|
-
}, [a("option",
|
|
1835
|
+
}, [a("option", Ci, T(n.labels.to), 1), (v(!0), i(e, null, x(_.value, (e) => (v(), i("option", {
|
|
1847
1836
|
key: e.value,
|
|
1848
1837
|
value: e.value
|
|
1849
|
-
},
|
|
1850
|
-
a("span",
|
|
1851
|
-
a("p",
|
|
1838
|
+
}, T(e.label), 9, wi))), 128))], 8, Si), [[j, f.to]])]),
|
|
1839
|
+
a("span", Ti, T(n.labels.language), 1),
|
|
1840
|
+
a("p", Ei, [I(a("select", {
|
|
1852
1841
|
"onUpdate:modelValue": o[2] ||= (e) => c.value = e,
|
|
1853
1842
|
"aria-label": n.labels.language
|
|
1854
|
-
}, [o[3] ||= a("option", { value: "" }, null, -1), (
|
|
1843
|
+
}, [o[3] ||= a("option", { value: "" }, null, -1), (v(!0), i(e, null, x(n.languages, (e) => (v(), i("option", {
|
|
1855
1844
|
key: e.code,
|
|
1856
1845
|
value: e.code
|
|
1857
|
-
},
|
|
1858
|
-
m.value ? (
|
|
1859
|
-
a("p",
|
|
1860
|
-
n.listingHref ? (
|
|
1846
|
+
}, T(e.name), 9, Oi))), 128))], 8, Di), [[j, c.value]])]),
|
|
1847
|
+
m.value ? (v(), i("p", ki, [S(t.$slots, "options")])) : r("", !0),
|
|
1848
|
+
a("p", Ai, [a("button", ji, T(n.labels.go), 1)]),
|
|
1849
|
+
n.listingHref ? (v(), i("p", Mi, [a("a", {
|
|
1861
1850
|
href: n.listingHref,
|
|
1862
1851
|
title: n.labels.listingTooltip
|
|
1863
|
-
},
|
|
1852
|
+
}, T(n.labels.listing), 9, Ni)])) : r("", !0)
|
|
1864
1853
|
], 34));
|
|
1865
1854
|
}
|
|
1866
|
-
},
|
|
1855
|
+
}, Fi = { class: "mwnf-gdb" }, Ii = { class: "mwnf-gdb__rows" }, Li = ["onUpdate:modelValue", "aria-label"], Ri = { value: "AND" }, zi = { value: "OR" }, Bi = [
|
|
1856
|
+
"onUpdate:modelValue",
|
|
1857
|
+
"aria-label",
|
|
1858
|
+
"placeholder"
|
|
1859
|
+
], Vi = ["onUpdate:modelValue", "aria-label"], Hi = ["value"], Ui = { class: "mwnf-gdb__filters" }, Wi = { class: "mwnf-gdb__since" }, Gi = { class: "mwnf-gdb__until" }, Ki = { class: "mwnf-gdb__language" }, qi = { value: "" }, Ji = ["value"], Yi = { class: "mwnf-gdb__country" }, Xi = { value: "" }, Zi = ["value"], Qi = { class: "mwnf-gdb__dynasty" }, $i = { value: "" }, ea = ["value"], ta = { class: "mwnf-gdb__partner" }, na = {
|
|
1860
|
+
key: 0,
|
|
1861
|
+
class: "mwnf-gdb__suggestions"
|
|
1862
|
+
}, ra = ["onClick"], ia = {
|
|
1863
|
+
key: 1,
|
|
1864
|
+
class: "mwnf-gdb__chosen"
|
|
1865
|
+
}, aa = ["aria-label"], oa = { class: "mwnf-gdb__tags" }, sa = ["value"], ca = ["aria-label"], la = {
|
|
1866
|
+
key: 0,
|
|
1867
|
+
class: "mwnf-gdb__suggestions"
|
|
1868
|
+
}, ua = ["onClick"], da = ["aria-label", "onClick"], fa = {
|
|
1869
|
+
key: 0,
|
|
1870
|
+
class: "mwnf-gdb__scope"
|
|
1871
|
+
}, pa = ["value", "disabled"], ma = ["innerHTML"], ha = { class: "mwnf-gdb__all" }, ga = { class: "mwnf-gdb__actions" }, _a = { type: "submit" }, va = {
|
|
1872
|
+
key: 0,
|
|
1873
|
+
class: "mwnf-gdb__error",
|
|
1874
|
+
role: "alert"
|
|
1875
|
+
}, ya = {
|
|
1876
|
+
class: "mwnf-gdb__count",
|
|
1877
|
+
"aria-live": "polite"
|
|
1878
|
+
}, ba = { class: "mwnf-gdb__results" }, xa = ["lang"], Sa = {
|
|
1879
|
+
key: 0,
|
|
1880
|
+
class: "mwnf-gdb__dates"
|
|
1881
|
+
}, Ca = {
|
|
1882
|
+
key: 1,
|
|
1883
|
+
class: "mwnf-gdb__partner-name"
|
|
1884
|
+
}, wa = {
|
|
1885
|
+
key: 2,
|
|
1886
|
+
class: "mwnf-gdb__country-name"
|
|
1887
|
+
}, Ta = {
|
|
1888
|
+
key: 3,
|
|
1889
|
+
class: "mwnf-gdb__links"
|
|
1890
|
+
}, Ea = ["href"], Da = {
|
|
1891
|
+
key: 0,
|
|
1892
|
+
class: "mwnf-gdb__more"
|
|
1893
|
+
}, Oa = {
|
|
1894
|
+
__name: "GlobalDatabaseSearch",
|
|
1895
|
+
props: {
|
|
1896
|
+
scope: {
|
|
1897
|
+
type: Object,
|
|
1898
|
+
default: () => ({})
|
|
1899
|
+
},
|
|
1900
|
+
api: {
|
|
1901
|
+
type: String,
|
|
1902
|
+
default: xe
|
|
1903
|
+
},
|
|
1904
|
+
dataUrl: {
|
|
1905
|
+
type: String,
|
|
1906
|
+
default: ve
|
|
1907
|
+
},
|
|
1908
|
+
pageSize: {
|
|
1909
|
+
type: Number,
|
|
1910
|
+
default: 20
|
|
1911
|
+
}
|
|
1912
|
+
},
|
|
1913
|
+
setup(o) {
|
|
1914
|
+
let c = o, { t: l, locale: u } = K(), f = ee(), p = te(), m = b(null), h = b(/* @__PURE__ */ new Map()), _ = b({
|
|
1915
|
+
countries: [],
|
|
1916
|
+
partners: [],
|
|
1917
|
+
dynasties: []
|
|
1918
|
+
}), S = b("idle"), D = b([]), O = b(0), k = /* @__PURE__ */ new Map(), N = null, R = t(() => m.value?.languages ?? []), z = t(() => Object.fromEntries((m.value?.language_details ?? []).filter((e) => e.locale).map((e) => [e.code, e.locale]))), ne = t(() => Object.fromEntries((m.value?.language_details ?? []).map((e) => [e.code, e.name]))), B = t(() => (c.scope.options ?? []).filter((e) => e?.key && e.label && e.filter)), V = t(() => ye(f.query, {
|
|
1919
|
+
languages: R.value,
|
|
1920
|
+
options: B.value.map((e) => e.key)
|
|
1921
|
+
})), re = Object.keys(Se), ie = [
|
|
1922
|
+
"catalogue.search.keywordOne",
|
|
1923
|
+
"catalogue.search.keywordTwo",
|
|
1924
|
+
"catalogue.search.keywordThree"
|
|
1925
|
+
], H = {
|
|
1926
|
+
keyword: "catalogue.field.keywords",
|
|
1927
|
+
material: "catalogue.facet.material",
|
|
1928
|
+
type: "catalogue.facet.type",
|
|
1929
|
+
artist: "catalogue.facet.artist",
|
|
1930
|
+
dynasty: "catalogue.facet.periodDynasty",
|
|
1931
|
+
subject: "catalogue.facet.subject",
|
|
1932
|
+
theme: "catalogue.facet.theme"
|
|
1933
|
+
}, U = y({
|
|
1934
|
+
rows: [],
|
|
1935
|
+
since: "",
|
|
1936
|
+
until: "",
|
|
1937
|
+
searchlang: "",
|
|
1938
|
+
country: "",
|
|
1939
|
+
partner: "",
|
|
1940
|
+
dynasty: "",
|
|
1941
|
+
tags: [],
|
|
1942
|
+
all: !1,
|
|
1943
|
+
options: []
|
|
1944
|
+
}), W = b(/* @__PURE__ */ new Map());
|
|
1945
|
+
function G(e) {
|
|
1946
|
+
Object.assign(U, {
|
|
1947
|
+
...e,
|
|
1948
|
+
rows: e.rows.map((e) => ({ ...e })),
|
|
1949
|
+
tags: [...e.tags],
|
|
1950
|
+
options: [...e.options]
|
|
1951
|
+
});
|
|
1952
|
+
}
|
|
1953
|
+
P(V, G, { immediate: !0 });
|
|
1954
|
+
let ae = (e) => (t, n) => Q(t, e).localeCompare(Q(n, e), e), oe = t(() => [..._.value.countries].sort(ae(u.value))), se = t(() => [..._.value.dynasties].sort(ae(u.value))), ce = t(() => _.value.partners.map((e) => ({
|
|
1955
|
+
id: e.id,
|
|
1956
|
+
label: Q(e, u.value),
|
|
1957
|
+
count: e.count
|
|
1958
|
+
}))), q = b(""), le = t(() => pe(ce.value, q.value)), J = t(() => ce.value.find((e) => e.id === U.partner)?.label ?? "");
|
|
1959
|
+
function ue(e) {
|
|
1960
|
+
U.partner = e.id, q.value = "";
|
|
1961
|
+
}
|
|
1962
|
+
let Y = b(me[0]), X = b(""), Z = b([]);
|
|
1963
|
+
async function ve() {
|
|
1964
|
+
Z.value = [];
|
|
1965
|
+
for (let e of [.../* @__PURE__ */ new Set([u.value, "en"])]) {
|
|
1966
|
+
let t = we(e, Y.value);
|
|
1967
|
+
if (t) try {
|
|
1968
|
+
Z.value = (await fe(c.dataUrl, t)).tags ?? [];
|
|
1969
|
+
return;
|
|
1970
|
+
} catch {}
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
P([Y, u], ve);
|
|
1974
|
+
let xe = t(() => pe(Z.value.filter((e) => !U.tags.includes(e.id)), X.value));
|
|
1975
|
+
function Ee(e) {
|
|
1976
|
+
U.tags.length >= 10 || (U.tags.push(e.id), W.value.set(e.id, e.label), X.value = "");
|
|
1977
|
+
}
|
|
1978
|
+
function De(e) {
|
|
1979
|
+
U.tags = U.tags.filter((t) => t !== e);
|
|
1980
|
+
}
|
|
1981
|
+
let Oe = (e) => W.value.get(e) ?? e;
|
|
1982
|
+
async function ke() {
|
|
1983
|
+
try {
|
|
1984
|
+
let [e, t, n] = await Promise.all([
|
|
1985
|
+
"manifest.json",
|
|
1986
|
+
"sites.json",
|
|
1987
|
+
"filters/entities.json"
|
|
1988
|
+
].map((e) => fe(c.dataUrl, e)));
|
|
1989
|
+
m.value = e, h.value = Te(t), _.value = {
|
|
1990
|
+
countries: n.countries ?? [],
|
|
1991
|
+
partners: n.partners ?? [],
|
|
1992
|
+
dynasties: n.dynasties ?? []
|
|
1993
|
+
}, ve();
|
|
1994
|
+
} catch {
|
|
1995
|
+
S.value = "error";
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
ke();
|
|
1999
|
+
async function Ae(e) {
|
|
2000
|
+
N?.abort(), N = new AbortController(), S.value = "loading";
|
|
2001
|
+
try {
|
|
2002
|
+
let t = await Ce(c.api, V.value, {
|
|
2003
|
+
offset: e,
|
|
2004
|
+
limit: c.pageSize,
|
|
2005
|
+
scope: {
|
|
2006
|
+
...c.scope,
|
|
2007
|
+
options: B.value
|
|
2008
|
+
},
|
|
2009
|
+
languages: R.value,
|
|
2010
|
+
locales: z.value,
|
|
2011
|
+
signal: N.signal,
|
|
2012
|
+
cache: k
|
|
2013
|
+
});
|
|
2014
|
+
D.value = e ? [...D.value, ...t.hits] : t.hits, O.value = t.total, S.value = "done";
|
|
2015
|
+
} catch (e) {
|
|
2016
|
+
e?.name !== "AbortError" && (S.value = "error");
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
P([V, m], () => {
|
|
2020
|
+
D.value = [], O.value = 0, m.value && he(V.value) ? Ae(0) : m.value && (S.value = "idle");
|
|
2021
|
+
}, { immediate: !0 }), g(() => N?.abort());
|
|
2022
|
+
function je() {
|
|
2023
|
+
let e = {
|
|
2024
|
+
...U,
|
|
2025
|
+
rows: U.rows.map((e) => ({
|
|
2026
|
+
...e,
|
|
2027
|
+
q: e.q.trim()
|
|
2028
|
+
}))
|
|
2029
|
+
};
|
|
2030
|
+
p.push({
|
|
2031
|
+
path: f.path,
|
|
2032
|
+
query: de(e)
|
|
2033
|
+
});
|
|
2034
|
+
}
|
|
2035
|
+
function Me() {
|
|
2036
|
+
p.push({
|
|
2037
|
+
path: f.path,
|
|
2038
|
+
query: {}
|
|
2039
|
+
});
|
|
2040
|
+
}
|
|
2041
|
+
let Ne = t(() => D.value.map((e) => ({
|
|
2042
|
+
id: e.id,
|
|
2043
|
+
texts: ge(e, u.value),
|
|
2044
|
+
links: _e(e, h.value, c.scope.site)
|
|
2045
|
+
}))), Pe = t(() => S.value === "done" && D.value.length < O.value);
|
|
2046
|
+
return (t, c) => {
|
|
2047
|
+
let f = C("RouterLink");
|
|
2048
|
+
return v(), i("section", Fi, [a("form", {
|
|
2049
|
+
class: "mwnf-gdb__form",
|
|
2050
|
+
onSubmit: L(je, ["prevent"])
|
|
2051
|
+
}, [
|
|
2052
|
+
a("fieldset", Ii, [(v(!0), i(e, null, x(U.rows.slice(0, E(3)), (t, n) => (v(), i("div", {
|
|
2053
|
+
key: n,
|
|
2054
|
+
class: "mwnf-gdb__row"
|
|
2055
|
+
}, [
|
|
2056
|
+
n ? I((v(), i("select", {
|
|
2057
|
+
key: 0,
|
|
2058
|
+
"onUpdate:modelValue": (e) => t.op = e,
|
|
2059
|
+
class: "mwnf-gdb__op",
|
|
2060
|
+
"aria-label": `${E(l)("catalogue.search.and")} / ${E(l)("catalogue.search.or")}`
|
|
2061
|
+
}, [a("option", Ri, T(E(l)("catalogue.search.and")), 1), a("option", zi, T(E(l)("catalogue.search.or")), 1)], 8, Li)), [[j, t.op]]) : r("", !0),
|
|
2062
|
+
I(a("input", {
|
|
2063
|
+
"onUpdate:modelValue": (e) => t.q = e,
|
|
2064
|
+
type: "search",
|
|
2065
|
+
class: "mwnf-gdb__q",
|
|
2066
|
+
maxlength: "200",
|
|
2067
|
+
"aria-label": E(l)(ie[n]),
|
|
2068
|
+
placeholder: E(l)("catalogue.search.keywordPlaceholder")
|
|
2069
|
+
}, null, 8, Bi), [[M, t.q]]),
|
|
2070
|
+
I(a("select", {
|
|
2071
|
+
"onUpdate:modelValue": (e) => t.field = e,
|
|
2072
|
+
class: "mwnf-gdb__field",
|
|
2073
|
+
"aria-label": E(l)("catalogue.facet.category")
|
|
2074
|
+
}, [(v(!0), i(e, null, x(E(re), (e) => (v(), i("option", {
|
|
2075
|
+
key: e,
|
|
2076
|
+
value: e
|
|
2077
|
+
}, T(E(l)(E(be)[e])), 9, Hi))), 128))], 8, Vi), [[j, t.field]])
|
|
2078
|
+
]))), 128))]),
|
|
2079
|
+
a("fieldset", Ui, [
|
|
2080
|
+
a("legend", null, T(E(l)("catalogue.filter.heading")), 1),
|
|
2081
|
+
a("label", Wi, [a("span", null, T(E(l)("catalogue.facet.fromYear")), 1), I(a("input", {
|
|
2082
|
+
"onUpdate:modelValue": c[0] ||= (e) => U.since = e,
|
|
2083
|
+
type: "number",
|
|
2084
|
+
step: "1",
|
|
2085
|
+
inputmode: "numeric"
|
|
2086
|
+
}, null, 512), [[M, U.since]])]),
|
|
2087
|
+
a("label", Gi, [a("span", null, T(E(l)("catalogue.facet.toYear")), 1), I(a("input", {
|
|
2088
|
+
"onUpdate:modelValue": c[1] ||= (e) => U.until = e,
|
|
2089
|
+
type: "number",
|
|
2090
|
+
step: "1",
|
|
2091
|
+
inputmode: "numeric"
|
|
2092
|
+
}, null, 512), [[M, U.until]])]),
|
|
2093
|
+
a("label", Ki, [a("span", null, T(E(l)("catalogue.search.language")), 1), I(a("select", { "onUpdate:modelValue": c[2] ||= (e) => U.searchlang = e }, [a("option", qi, T(E(l)("catalogue.search.anyLanguage")), 1), (v(!0), i(e, null, x(R.value, (e) => (v(), i("option", {
|
|
2094
|
+
key: e,
|
|
2095
|
+
value: e
|
|
2096
|
+
}, T(ne.value[e] ?? e), 9, Ji))), 128))], 512), [[j, U.searchlang]])]),
|
|
2097
|
+
a("label", Yi, [a("span", null, T(E(l)("catalogue.facet.country")), 1), I(a("select", { "onUpdate:modelValue": c[3] ||= (e) => U.country = e }, [a("option", Xi, T(E(l)("catalogue.facet.any")), 1), (v(!0), i(e, null, x(oe.value, (e) => (v(), i("option", {
|
|
2098
|
+
key: e.id,
|
|
2099
|
+
value: e.id
|
|
2100
|
+
}, T(E(Q)(e, E(u))), 9, Zi))), 128))], 512), [[j, U.country]])]),
|
|
2101
|
+
a("label", Qi, [a("span", null, T(E(l)("catalogue.facet.periodDynasty")), 1), I(a("select", { "onUpdate:modelValue": c[4] ||= (e) => U.dynasty = e }, [a("option", $i, T(E(l)("catalogue.facet.any")), 1), (v(!0), i(e, null, x(se.value, (e) => (v(), i("option", {
|
|
2102
|
+
key: e.id,
|
|
2103
|
+
value: e.id
|
|
2104
|
+
}, T(E(Q)(e, E(u))), 9, ea))), 128))], 512), [[j, U.dynasty]])]),
|
|
2105
|
+
a("div", ta, [
|
|
2106
|
+
a("label", null, [a("span", null, T(E(l)("catalogue.facet.holdingInstitution")), 1), I(a("input", {
|
|
2107
|
+
"onUpdate:modelValue": c[5] ||= (e) => q.value = e,
|
|
2108
|
+
type: "search",
|
|
2109
|
+
autocomplete: "off"
|
|
2110
|
+
}, null, 512), [[M, q.value]])]),
|
|
2111
|
+
le.value.length ? (v(), i("ul", na, [(v(!0), i(e, null, x(le.value, (e) => (v(), i("li", { key: e.id }, [a("button", {
|
|
2112
|
+
type: "button",
|
|
2113
|
+
onClick: (t) => ue(e)
|
|
2114
|
+
}, T(e.label) + " (" + T(e.count) + ")", 9, ra)]))), 128))])) : r("", !0),
|
|
2115
|
+
U.partner ? (v(), i("p", ia, [a("span", null, T(J.value || U.partner), 1), a("button", {
|
|
2116
|
+
type: "button",
|
|
2117
|
+
"aria-label": E(l)("core.action.reset"),
|
|
2118
|
+
onClick: c[6] ||= (e) => U.partner = ""
|
|
2119
|
+
}, "×", 8, aa)])) : r("", !0)
|
|
2120
|
+
]),
|
|
2121
|
+
a("div", oa, [
|
|
2122
|
+
a("label", null, [a("span", null, T(E(l)("catalogue.facet.category")), 1), I(a("select", { "onUpdate:modelValue": c[7] ||= (e) => Y.value = e }, [(v(!0), i(e, null, x(E(me), (e) => (v(), i("option", {
|
|
2123
|
+
key: e,
|
|
2124
|
+
value: e
|
|
2125
|
+
}, T(E(l)(H[e])), 9, sa))), 128))], 512), [[j, Y.value]])]),
|
|
2126
|
+
I(a("input", {
|
|
2127
|
+
"onUpdate:modelValue": c[8] ||= (e) => X.value = e,
|
|
2128
|
+
type: "search",
|
|
2129
|
+
autocomplete: "off",
|
|
2130
|
+
"aria-label": E(l)(H[Y.value])
|
|
2131
|
+
}, null, 8, ca), [[M, X.value]]),
|
|
2132
|
+
xe.value.length ? (v(), i("ul", la, [(v(!0), i(e, null, x(xe.value, (e) => (v(), i("li", { key: e.id }, [a("button", {
|
|
2133
|
+
type: "button",
|
|
2134
|
+
onClick: (t) => Ee(e)
|
|
2135
|
+
}, T(e.label) + " (" + T(e.count) + ")", 9, ua)]))), 128))])) : r("", !0),
|
|
2136
|
+
(v(!0), i(e, null, x(U.tags, (e) => (v(), i("p", {
|
|
2137
|
+
key: e,
|
|
2138
|
+
class: "mwnf-gdb__chosen"
|
|
2139
|
+
}, [a("span", null, T(Oe(e)), 1), a("button", {
|
|
2140
|
+
type: "button",
|
|
2141
|
+
"aria-label": E(l)("core.action.reset"),
|
|
2142
|
+
onClick: (t) => De(e)
|
|
2143
|
+
}, "×", 8, da)]))), 128))
|
|
2144
|
+
])
|
|
2145
|
+
]),
|
|
2146
|
+
o.scope.site ? (v(), i("fieldset", fa, [(v(!0), i(e, null, x(B.value, (e) => (v(), i("label", {
|
|
2147
|
+
key: e.key,
|
|
2148
|
+
class: "mwnf-gdb__option"
|
|
2149
|
+
}, [I(a("input", {
|
|
2150
|
+
"onUpdate:modelValue": c[9] ||= (e) => U.options = e,
|
|
2151
|
+
type: "checkbox",
|
|
2152
|
+
value: e.key,
|
|
2153
|
+
disabled: U.all
|
|
2154
|
+
}, null, 8, pa), [[A, U.options]]), a("span", { innerHTML: E(l)(e.label) }, null, 8, ma)]))), 128)), a("label", ha, [I(a("input", {
|
|
2155
|
+
"onUpdate:modelValue": c[10] ||= (e) => U.all = e,
|
|
2156
|
+
type: "checkbox"
|
|
2157
|
+
}, null, 512), [[A, U.all]]), a("span", null, T(E(l)("catalogue.search.overallDatabase")), 1)])])) : r("", !0),
|
|
2158
|
+
a("p", ga, [a("button", _a, T(E(l)("catalogue.pagination.go")), 1), a("button", {
|
|
2159
|
+
type: "button",
|
|
2160
|
+
onClick: Me
|
|
2161
|
+
}, T(E(l)("catalogue.search.newSearch")), 1)])
|
|
2162
|
+
], 32), S.value === "error" ? (v(), i("p", va, T(E(l)("catalogue.search.unavailable")), 1)) : S.value === "idle" ? r("", !0) : (v(), i(e, { key: 1 }, [
|
|
2163
|
+
a("p", ya, [S.value === "done" && O.value === 0 ? (v(), i(e, { key: 0 }, [s(T(E(l)("catalogue.results.noResultsSearch")), 1)], 64)) : O.value ? (v(), i(e, { key: 1 }, [s(T(E(l)("catalogue.results.itemsFound")) + ": " + T(O.value), 1)], 64)) : r("", !0)]),
|
|
2164
|
+
a("ol", ba, [(v(!0), i(e, null, x(Ne.value, (t) => (v(), i("li", {
|
|
2165
|
+
key: t.id,
|
|
2166
|
+
class: "mwnf-gdb__result",
|
|
2167
|
+
lang: t.texts.language
|
|
2168
|
+
}, [
|
|
2169
|
+
(v(), n(w(t.links[0]?.route ? "RouterLink" : t.links[0] ? "a" : "span"), d({ class: "mwnf-gdb__name" }, { ref_for: !0 }, t.links[0]?.route ? { to: t.links[0].route } : t.links[0] ? { href: t.links[0].href } : {}), {
|
|
2170
|
+
default: F(() => [s(T(t.texts.name), 1)]),
|
|
2171
|
+
_: 2
|
|
2172
|
+
}, 1040)),
|
|
2173
|
+
t.texts.dates ? (v(), i("span", Sa, T(t.texts.dates), 1)) : r("", !0),
|
|
2174
|
+
t.texts.partner ? (v(), i("span", Ca, T(t.texts.partner), 1)) : r("", !0),
|
|
2175
|
+
t.texts.country ? (v(), i("span", wa, T(t.texts.country), 1)) : r("", !0),
|
|
2176
|
+
t.links.length > 1 ? (v(), i("span", Ta, [s(T(E(l)("catalogue.results.openIn")) + " ", 1), (v(!0), i(e, null, x(t.links.slice(1), (t) => (v(), i(e, { key: t.site }, [t.route ? (v(), n(f, {
|
|
2177
|
+
key: 0,
|
|
2178
|
+
to: t.route
|
|
2179
|
+
}, {
|
|
2180
|
+
default: F(() => [s(T(t.name), 1)]),
|
|
2181
|
+
_: 2
|
|
2182
|
+
}, 1032, ["to"])) : (v(), i("a", {
|
|
2183
|
+
key: 1,
|
|
2184
|
+
href: t.href
|
|
2185
|
+
}, T(t.name), 9, Ea))], 64))), 128))])) : r("", !0)
|
|
2186
|
+
], 8, xa))), 128))]),
|
|
2187
|
+
Pe.value ? (v(), i("p", Da, [a("button", {
|
|
2188
|
+
type: "button",
|
|
2189
|
+
onClick: c[11] ||= (e) => Ae(D.value.length)
|
|
2190
|
+
}, T(E(l)("catalogue.results.more")), 1)])) : r("", !0)
|
|
2191
|
+
], 64))]);
|
|
2192
|
+
};
|
|
2193
|
+
}
|
|
2194
|
+
}, ka = { class: "mwnf-standalone-tle__country" }, Aa = ["aria-label"], ja = { value: "none" }, Ma = { value: "" }, Na = ["value"], Pa = { class: "mwnf-standalone-tle__date" }, Fa = ["aria-label"], Ia = { value: "none" }, La = ["value"], Ra = { class: "mwnf-standalone-tle__date" }, za = ["aria-label"], Ba = { value: "none" }, Va = ["value"], Ha = { class: "mwnf-standalone-tle__go" }, Ua = { type: "submit" }, Wa = {
|
|
1867
2195
|
__name: "TimelineEntrance",
|
|
1868
2196
|
props: {
|
|
1869
2197
|
labels: {
|
|
@@ -1893,7 +2221,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1893
2221
|
},
|
|
1894
2222
|
emits: ["search"],
|
|
1895
2223
|
setup(n, { emit: r }) {
|
|
1896
|
-
let o = n, s = r, c = o.texts ?
|
|
2224
|
+
let o = n, s = r, c = o.texts ? K().t : (e) => e, l = (e) => c(`${o.texts}.${e}`), u = t(() => o.labels ?? {
|
|
1897
2225
|
selectCountry: l("tl.selectCountry"),
|
|
1898
2226
|
allCountries: l("tl.allCountries"),
|
|
1899
2227
|
startDate: l("tl.startDate"),
|
|
@@ -1905,7 +2233,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1905
2233
|
startDate: l("tl.alertStartDate"),
|
|
1906
2234
|
endDate: l("tl.alertEndDate"),
|
|
1907
2235
|
period: l("tl.alertPeriod")
|
|
1908
|
-
} : {})), f =
|
|
2236
|
+
} : {})), f = y({
|
|
1909
2237
|
country: "none",
|
|
1910
2238
|
start: "none",
|
|
1911
2239
|
end: "none"
|
|
@@ -1917,46 +2245,46 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1917
2245
|
let e = p();
|
|
1918
2246
|
e ? window.alert(e) : s("search", { ...f });
|
|
1919
2247
|
}
|
|
1920
|
-
return (t, r) => (
|
|
2248
|
+
return (t, r) => (v(), i("form", {
|
|
1921
2249
|
class: "mwnf-standalone-tle",
|
|
1922
|
-
onSubmit:
|
|
2250
|
+
onSubmit: L(m, ["prevent"])
|
|
1923
2251
|
}, [
|
|
1924
|
-
a("p",
|
|
2252
|
+
a("p", ka, [I(a("select", {
|
|
1925
2253
|
"onUpdate:modelValue": r[0] ||= (e) => f.country = e,
|
|
1926
2254
|
"aria-label": u.value.selectCountry
|
|
1927
2255
|
}, [
|
|
1928
|
-
a("option",
|
|
1929
|
-
a("option",
|
|
1930
|
-
(
|
|
2256
|
+
a("option", ja, T(u.value.selectCountry), 1),
|
|
2257
|
+
a("option", Ma, T(u.value.allCountries), 1),
|
|
2258
|
+
(v(!0), i(e, null, x(n.countries, (e) => (v(), i("option", {
|
|
1931
2259
|
key: e.value,
|
|
1932
2260
|
value: e.value
|
|
1933
|
-
},
|
|
1934
|
-
], 8,
|
|
1935
|
-
a("p",
|
|
2261
|
+
}, T(e.label), 9, Na))), 128))
|
|
2262
|
+
], 8, Aa), [[j, f.country]])]),
|
|
2263
|
+
a("p", Pa, [I(a("select", {
|
|
1936
2264
|
"onUpdate:modelValue": r[1] ||= (e) => f.start = e,
|
|
1937
2265
|
"aria-label": u.value.startDate
|
|
1938
|
-
}, [a("option",
|
|
2266
|
+
}, [a("option", Ia, T(u.value.startDate), 1), (v(!0), i(e, null, x(n.starts, (e) => (v(), i("option", {
|
|
1939
2267
|
key: e.value,
|
|
1940
2268
|
value: e.value
|
|
1941
|
-
},
|
|
1942
|
-
a("p",
|
|
2269
|
+
}, T(e.label), 9, La))), 128))], 8, Fa), [[j, f.start]])]),
|
|
2270
|
+
a("p", Ra, [I(a("select", {
|
|
1943
2271
|
"onUpdate:modelValue": r[2] ||= (e) => f.end = e,
|
|
1944
2272
|
"aria-label": u.value.endDate
|
|
1945
|
-
}, [a("option",
|
|
2273
|
+
}, [a("option", Ba, T(u.value.endDate), 1), (v(!0), i(e, null, x(n.ends, (e) => (v(), i("option", {
|
|
1946
2274
|
key: e.value,
|
|
1947
2275
|
value: e.value
|
|
1948
|
-
},
|
|
1949
|
-
a("p",
|
|
2276
|
+
}, T(e.label), 9, Va))), 128))], 8, za), [[j, f.end]])]),
|
|
2277
|
+
a("p", Ha, [a("button", Ua, T(u.value.go), 1)])
|
|
1950
2278
|
], 32));
|
|
1951
2279
|
}
|
|
1952
|
-
},
|
|
2280
|
+
}, Ga = {
|
|
1953
2281
|
key: 0,
|
|
1954
2282
|
class: "mwnf-standalone-pages"
|
|
1955
|
-
},
|
|
2283
|
+
}, Ka = { class: "mwnf-standalone-pages__previous" }, qa = ["aria-current", "onClick"], Ja = { class: "mwnf-standalone-pages__next" }, Ya = {
|
|
1956
2284
|
key: 1,
|
|
1957
2285
|
class: "mwnf-standalone-pages",
|
|
1958
2286
|
"aria-hidden": "true"
|
|
1959
|
-
},
|
|
2287
|
+
}, Xa = {
|
|
1960
2288
|
__name: "Pagination",
|
|
1961
2289
|
props: {
|
|
1962
2290
|
pageInfo: {
|
|
@@ -1983,47 +2311,47 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
1983
2311
|
for (let r = t; r <= Math.min(u.value, t + e - 1); r++) n.push(r);
|
|
1984
2312
|
return n;
|
|
1985
2313
|
});
|
|
1986
|
-
function
|
|
2314
|
+
function f(e) {
|
|
1987
2315
|
e >= 1 && e <= u.value && e !== l.value && c("navigate", e);
|
|
1988
2316
|
}
|
|
1989
|
-
return (t, r) => u.value > 1 ? (
|
|
1990
|
-
a("span",
|
|
2317
|
+
return (t, r) => u.value > 1 ? (v(), i("nav", Ga, [
|
|
2318
|
+
a("span", Ka, [l.value > 1 ? (v(), i("a", {
|
|
1991
2319
|
key: 0,
|
|
1992
2320
|
href: "#",
|
|
1993
|
-
onClick: r[0] ||=
|
|
1994
|
-
},
|
|
1995
|
-
(
|
|
2321
|
+
onClick: r[0] ||= L((e) => f(l.value - 1), ["prevent"])
|
|
2322
|
+
}, T(n.previousLabel), 1)) : (v(), i(e, { key: 1 }, [s(T(n.previousLabel), 1)], 64))]),
|
|
2323
|
+
(v(!0), i(e, null, x(d.value, (e) => (v(), i("a", {
|
|
1996
2324
|
key: e,
|
|
1997
2325
|
href: "#",
|
|
1998
|
-
class:
|
|
2326
|
+
class: p(["mwnf-standalone-pages__number", { "mwnf-standalone-pages__number--active": e === l.value }]),
|
|
1999
2327
|
"aria-current": e === l.value ? "page" : void 0,
|
|
2000
|
-
onClick:
|
|
2001
|
-
},
|
|
2002
|
-
a("span",
|
|
2328
|
+
onClick: L((t) => f(e), ["prevent"])
|
|
2329
|
+
}, T(e), 11, qa))), 128)),
|
|
2330
|
+
a("span", Ja, [l.value < u.value ? (v(), i("a", {
|
|
2003
2331
|
key: 0,
|
|
2004
2332
|
href: "#",
|
|
2005
|
-
onClick: r[1] ||=
|
|
2006
|
-
},
|
|
2007
|
-
])) : (
|
|
2333
|
+
onClick: r[1] ||= L((e) => f(l.value + 1), ["prevent"])
|
|
2334
|
+
}, T(n.nextLabel), 1)) : (v(), i(e, { key: 1 }, [s(T(n.nextLabel), 1)], 64))])
|
|
2335
|
+
])) : (v(), i("div", Ya));
|
|
2008
2336
|
}
|
|
2009
|
-
},
|
|
2337
|
+
}, Za = { class: "mwnf-standalone-tlr" }, Qa = { class: "mwnf-standalone-tlr__band" }, $a = { class: "mwnf-standalone-tlr__band-inner" }, eo = { class: "mwnf-standalone-tlr__summary" }, to = { class: "mwnf-standalone-tlr__selects" }, no = ["for"], ro = [
|
|
2010
2338
|
"id",
|
|
2011
2339
|
"value",
|
|
2012
2340
|
"disabled",
|
|
2013
2341
|
"onChange"
|
|
2014
|
-
],
|
|
2342
|
+
], io = ["value"], ao = { class: "mwnf-standalone-item__back mwnf-standalone-tlr__back" }, oo = {
|
|
2015
2343
|
key: 0,
|
|
2016
2344
|
class: "mwnf-standalone-tlr__heads"
|
|
2017
|
-
},
|
|
2345
|
+
}, so = { class: "mwnf-standalone-tlr__body" }, co = { class: "mwnf-standalone-tlr__list" }, lo = { class: "mwnf-standalone-tlr__date" }, uo = { class: "mwnf-standalone-tlr__content" }, fo = ["innerHTML"], po = {
|
|
2018
2346
|
key: 0,
|
|
2019
2347
|
class: "mwnf-standalone-tlr__empty"
|
|
2020
|
-
},
|
|
2348
|
+
}, mo = { class: "mwnf-standalone-tlr__related" }, ho = {
|
|
2021
2349
|
key: 0,
|
|
2022
2350
|
class: "mwnf-standalone-tlr__panel"
|
|
2023
|
-
},
|
|
2351
|
+
}, go = { key: 0 }, _o = {
|
|
2024
2352
|
key: 1,
|
|
2025
2353
|
class: "mwnf-standalone-tlr__panel"
|
|
2026
|
-
},
|
|
2354
|
+
}, vo = { class: "mwnf-standalone-tlr__download" }, yo = {
|
|
2027
2355
|
__name: "TimelineResults",
|
|
2028
2356
|
props: {
|
|
2029
2357
|
heading: {
|
|
@@ -2087,7 +2415,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2087
2415
|
}
|
|
2088
2416
|
function m(e) {
|
|
2089
2417
|
let t = e.currentTarget.closest(".mwnf-standalone-tlr");
|
|
2090
|
-
|
|
2418
|
+
jt(Mt({
|
|
2091
2419
|
title: u.download?.title ?? "",
|
|
2092
2420
|
heading: u.download?.line ?? "",
|
|
2093
2421
|
heads: u.heads,
|
|
@@ -2096,8 +2424,8 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2096
2424
|
dir: t ? getComputedStyle(t).direction : ""
|
|
2097
2425
|
}), u.download?.file ?? "timeline.doc");
|
|
2098
2426
|
}
|
|
2099
|
-
return (t, l) => (
|
|
2100
|
-
a("section",
|
|
2427
|
+
return (t, l) => (v(), i("div", Za, [
|
|
2428
|
+
a("section", Qa, [a("div", $a, [a("p", eo, [a("b", null, T(o.heading), 1), s(" | " + T(o.summary), 1)]), a("div", to, [(v(!0), i(e, null, x(o.selects, (t) => (v(), i("p", { key: t.key }, [a("label", { for: `mwnf-tlr-${t.key}` }, T(t.label), 9, no), a("select", {
|
|
2101
2429
|
id: `mwnf-tlr-${t.key}`,
|
|
2102
2430
|
value: t.value,
|
|
2103
2431
|
disabled: t.disabled || void 0,
|
|
@@ -2105,32 +2433,32 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2105
2433
|
key: t.key,
|
|
2106
2434
|
value: e.target.value
|
|
2107
2435
|
})
|
|
2108
|
-
}, [(
|
|
2436
|
+
}, [(v(!0), i(e, null, x(t.options, (e) => (v(), i("option", {
|
|
2109
2437
|
key: e.value,
|
|
2110
2438
|
value: e.value
|
|
2111
|
-
},
|
|
2112
|
-
a("p",
|
|
2439
|
+
}, T(e.label), 9, io))), 128))], 40, ro)]))), 128))])])]),
|
|
2440
|
+
a("p", ao, [(v(!0), i(e, null, x(o.back, (r) => (v(), i(e, { key: r.label }, [r.history ? (v(), i("button", {
|
|
2113
2441
|
key: 0,
|
|
2114
2442
|
type: "button",
|
|
2115
2443
|
class: "mwnf-standalone-item__back-link",
|
|
2116
2444
|
onClick: l[0] ||= (e) => t.$router.back()
|
|
2117
|
-
},
|
|
2445
|
+
}, T(r.label), 1)) : (v(), n(J, {
|
|
2118
2446
|
key: 1,
|
|
2119
2447
|
class: "mwnf-standalone-item__back-link",
|
|
2120
2448
|
to: r.to,
|
|
2121
2449
|
href: r.href
|
|
2122
2450
|
}, {
|
|
2123
|
-
default:
|
|
2451
|
+
default: F(() => [s(T(r.label), 1)]),
|
|
2124
2452
|
_: 2
|
|
2125
2453
|
}, 1032, ["to", "href"]))], 64))), 128))]),
|
|
2126
|
-
f.value ? (
|
|
2127
|
-
a("div",
|
|
2128
|
-
(
|
|
2454
|
+
f.value ? (v(), i("div", oo, [a("h3", null, T(o.heads.date), 1), a("h3", null, T(o.heads.countryDescription), 1)])) : r("", !0),
|
|
2455
|
+
a("div", so, [a("div", co, [
|
|
2456
|
+
(v(!0), i(e, null, x(o.rows, (e) => (v(), i("div", {
|
|
2129
2457
|
key: e.id,
|
|
2130
2458
|
class: "mwnf-standalone-tlr__row"
|
|
2131
|
-
}, [a("div",
|
|
2132
|
-
f.value ? r("", !0) : (
|
|
2133
|
-
o.pageInfo ? (
|
|
2459
|
+
}, [a("div", lo, [a("p", null, [a("span", null, T(e.date), 1)]), S(t.$slots, "media", { row: e })]), a("div", uo, [a("p", null, [a("span", null, T(e.country), 1)]), a("div", { innerHTML: e.html }, null, 8, fo)])]))), 128)),
|
|
2460
|
+
f.value ? r("", !0) : (v(), i("p", po, T(o.empty), 1)),
|
|
2461
|
+
o.pageInfo ? (v(), n(Xa, {
|
|
2134
2462
|
key: 1,
|
|
2135
2463
|
"page-info": o.pageInfo,
|
|
2136
2464
|
"previous-label": o.previousLabel,
|
|
@@ -2141,16 +2469,16 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2141
2469
|
"previous-label",
|
|
2142
2470
|
"next-label"
|
|
2143
2471
|
])) : r("", !0)
|
|
2144
|
-
]), a("aside",
|
|
2145
|
-
a("p", null, [a("strong", null,
|
|
2146
|
-
(
|
|
2472
|
+
]), a("aside", mo, [o.related ? (v(), i("div", ho, [
|
|
2473
|
+
a("p", null, [a("strong", null, T(o.related.heading), 1)]),
|
|
2474
|
+
(v(!0), i(e, null, x(o.related.links ?? [], (e) => (v(), i("p", { key: e.label }, [c(J, {
|
|
2147
2475
|
class: "mwnf-standalone-tlr__link",
|
|
2148
2476
|
to: e.to,
|
|
2149
2477
|
href: e.href,
|
|
2150
2478
|
title: e.title,
|
|
2151
2479
|
target: e.target
|
|
2152
2480
|
}, {
|
|
2153
|
-
default:
|
|
2481
|
+
default: F(() => [s(T(e.label), 1)]),
|
|
2154
2482
|
_: 2
|
|
2155
2483
|
}, 1032, [
|
|
2156
2484
|
"to",
|
|
@@ -2158,30 +2486,30 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2158
2486
|
"title",
|
|
2159
2487
|
"target"
|
|
2160
2488
|
])]))), 128)),
|
|
2161
|
-
o.related.gallery ? (
|
|
2489
|
+
o.related.gallery ? (v(), i("p", go, [c(J, {
|
|
2162
2490
|
class: "mwnf-standalone-tlr__link",
|
|
2163
2491
|
to: o.related.gallery.to,
|
|
2164
2492
|
title: o.related.gallery.title
|
|
2165
2493
|
}, {
|
|
2166
|
-
default:
|
|
2494
|
+
default: F(() => [s(T(o.related.gallery.label), 1)]),
|
|
2167
2495
|
_: 1
|
|
2168
2496
|
}, 8, ["to", "title"])])) : r("", !0)
|
|
2169
|
-
])) : r("", !0), o.download ? (
|
|
2170
|
-
a("p",
|
|
2497
|
+
])) : r("", !0), o.download ? (v(), i("div", _o, [
|
|
2498
|
+
a("p", vo, T(o.download.heading), 1),
|
|
2171
2499
|
a("p", null, [a("a", {
|
|
2172
2500
|
href: "#",
|
|
2173
2501
|
class: "mwnf-standalone-tlr__link",
|
|
2174
|
-
onClick:
|
|
2175
|
-
},
|
|
2502
|
+
onClick: L(p, ["prevent"])
|
|
2503
|
+
}, T(o.download.pdf), 1)]),
|
|
2176
2504
|
a("p", null, [a("a", {
|
|
2177
2505
|
href: "#",
|
|
2178
2506
|
class: "mwnf-standalone-tlr__link",
|
|
2179
|
-
onClick:
|
|
2180
|
-
},
|
|
2507
|
+
onClick: L(m, ["prevent"])
|
|
2508
|
+
}, T(o.download.word), 1)])
|
|
2181
2509
|
])) : r("", !0)])])
|
|
2182
2510
|
]));
|
|
2183
2511
|
}
|
|
2184
|
-
},
|
|
2512
|
+
}, bo = ["dir"], xo = { class: "mwnf-standalone-window__box" }, So = { class: "mwnf-standalone-window__header" }, Co = { class: "mwnf-standalone-window__heading" }, wo = ["aria-label"], To = { class: "mwnf-standalone-window__article" }, Eo = {
|
|
2185
2513
|
__name: "Window",
|
|
2186
2514
|
props: {
|
|
2187
2515
|
heading: {
|
|
@@ -2201,27 +2529,27 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2201
2529
|
function t() {
|
|
2202
2530
|
window.opener ? (window.opener.focus(), window.close()) : window.history.back();
|
|
2203
2531
|
}
|
|
2204
|
-
return (n, r) => (
|
|
2532
|
+
return (n, r) => (v(), i("div", {
|
|
2205
2533
|
class: "mwnf-standalone-window",
|
|
2206
2534
|
dir: e.dir || void 0
|
|
2207
|
-
}, [a("div",
|
|
2208
|
-
a("header",
|
|
2535
|
+
}, [a("div", xo, [
|
|
2536
|
+
a("header", So, [a("h1", Co, T(e.heading), 1), a("button", {
|
|
2209
2537
|
type: "button",
|
|
2210
2538
|
class: "mwnf-standalone-window__close",
|
|
2211
2539
|
"aria-label": e.closeLabel || void 0,
|
|
2212
2540
|
onClick: t
|
|
2213
|
-
}, "×", 8,
|
|
2214
|
-
|
|
2215
|
-
a("article",
|
|
2216
|
-
])], 8,
|
|
2541
|
+
}, "×", 8, wo)]),
|
|
2542
|
+
S(n.$slots, "before"),
|
|
2543
|
+
a("article", To, [S(n.$slots, "default")])
|
|
2544
|
+
])], 8, bo));
|
|
2217
2545
|
}
|
|
2218
|
-
},
|
|
2546
|
+
}, Do = {
|
|
2219
2547
|
class: "mwnf-standalone-hcr__scale",
|
|
2220
2548
|
"aria-hidden": "true"
|
|
2221
|
-
},
|
|
2549
|
+
}, Oo = { class: "mwnf-standalone-hcr__years" }, ko = { class: "mwnf-standalone-hcr__body" }, Ao = { class: "mwnf-standalone-hcr__left" }, jo = { class: "mwnf-standalone-hcr__title" }, Mo = ["value", "aria-label"], No = ["value"], Po = { class: "mwnf-standalone-hcr__title" }, Fo = ["value", "aria-label"], Io = ["value"], Lo = {
|
|
2222
2550
|
key: 0,
|
|
2223
2551
|
class: "mwnf-standalone-hcr__image"
|
|
2224
|
-
},
|
|
2552
|
+
}, Ro = ["src", "alt"], zo = { key: 1 }, Bo = ["innerHTML"], Vo = { key: 2 }, Ho = { class: "mwnf-standalone-hcr__main" }, Uo = ["innerHTML"], Wo = {
|
|
2225
2553
|
__name: "HistoricalCrossRef",
|
|
2226
2554
|
props: {
|
|
2227
2555
|
labels: {
|
|
@@ -2275,7 +2603,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2275
2603
|
},
|
|
2276
2604
|
emits: ["change"],
|
|
2277
2605
|
setup(o, { emit: c }) {
|
|
2278
|
-
let l = o, u = c, d = l.texts ?
|
|
2606
|
+
let l = o, u = c, d = l.texts ? K().t : (e) => e, f = t(() => l.labels ?? {
|
|
2279
2607
|
heading: d(`${l.texts}.tl.title`),
|
|
2280
2608
|
close: d("record.glossary.close"),
|
|
2281
2609
|
country: d(`${l.texts}.hcr.country`),
|
|
@@ -2290,56 +2618,56 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2290
2618
|
};
|
|
2291
2619
|
});
|
|
2292
2620
|
});
|
|
2293
|
-
return (t, c) => (
|
|
2621
|
+
return (t, c) => (v(), n(Eo, {
|
|
2294
2622
|
class: "mwnf-standalone-hcr",
|
|
2295
|
-
heading:
|
|
2296
|
-
"close-label":
|
|
2623
|
+
heading: f.value.heading,
|
|
2624
|
+
"close-label": f.value.close,
|
|
2297
2625
|
dir: o.dir
|
|
2298
2626
|
}, {
|
|
2299
|
-
before:
|
|
2627
|
+
before: F(() => [a("section", Do, [a("div", Oo, [(v(!0), i(e, null, x(m.value, (e) => (v(), i("span", {
|
|
2300
2628
|
key: e.value,
|
|
2301
|
-
class:
|
|
2302
|
-
},
|
|
2303
|
-
default:
|
|
2304
|
-
a("p",
|
|
2629
|
+
class: p({ "mwnf-standalone-hcr__year--active": e.active })
|
|
2630
|
+
}, T(e.value), 3))), 128))]), c[2] ||= a("div", { class: "mwnf-standalone-hcr__lines" }, null, -1)])]),
|
|
2631
|
+
default: F(() => [a("div", ko, [a("div", Ao, [
|
|
2632
|
+
a("p", jo, T(f.value.country), 1),
|
|
2305
2633
|
a("select", {
|
|
2306
2634
|
value: o.country,
|
|
2307
|
-
"aria-label":
|
|
2635
|
+
"aria-label": f.value.country,
|
|
2308
2636
|
onChange: c[0] ||= (e) => u("change", {
|
|
2309
2637
|
key: "country",
|
|
2310
2638
|
value: e.target.value
|
|
2311
2639
|
})
|
|
2312
|
-
}, [(
|
|
2640
|
+
}, [(v(!0), i(e, null, x(o.countries, (e) => (v(), i("option", {
|
|
2313
2641
|
key: e.value,
|
|
2314
2642
|
value: e.value
|
|
2315
|
-
},
|
|
2316
|
-
a("p",
|
|
2643
|
+
}, T(e.label), 9, No))), 128))], 40, Mo),
|
|
2644
|
+
a("p", Po, T(f.value.range), 1),
|
|
2317
2645
|
a("select", {
|
|
2318
2646
|
value: String(o.range),
|
|
2319
|
-
"aria-label":
|
|
2647
|
+
"aria-label": f.value.range,
|
|
2320
2648
|
onChange: c[1] ||= (e) => u("change", {
|
|
2321
2649
|
key: "start",
|
|
2322
2650
|
value: e.target.value
|
|
2323
2651
|
})
|
|
2324
|
-
}, [(
|
|
2652
|
+
}, [(v(!0), i(e, null, x(o.ranges, (e) => (v(), i("option", {
|
|
2325
2653
|
key: e.value,
|
|
2326
2654
|
value: String(e.value)
|
|
2327
|
-
},
|
|
2328
|
-
o.item ? (
|
|
2329
|
-
o.item.image ? (
|
|
2655
|
+
}, T(e.label), 9, Io))), 128))], 40, Fo),
|
|
2656
|
+
o.item ? (v(), i(e, { key: 0 }, [
|
|
2657
|
+
o.item.image ? (v(), i("div", Lo, [a("img", {
|
|
2330
2658
|
src: o.item.image,
|
|
2331
2659
|
alt: o.item.name
|
|
2332
|
-
}, null, 8,
|
|
2333
|
-
o.item.name ? (
|
|
2334
|
-
o.item.lines?.length ? (
|
|
2660
|
+
}, null, 8, Ro)])) : r("", !0),
|
|
2661
|
+
o.item.name ? (v(), i("p", zo, [a("strong", { innerHTML: o.item.name }, null, 8, Bo)])) : r("", !0),
|
|
2662
|
+
o.item.lines?.length ? (v(), i("p", Vo, [(v(!0), i(e, null, x(o.item.lines, (t, n) => (v(), i(e, { key: n }, [s(T(t), 1), c[3] ||= a("br", null, null, -1)], 64))), 128))])) : r("", !0)
|
|
2335
2663
|
], 64)) : r("", !0)
|
|
2336
|
-
]), a("div",
|
|
2664
|
+
]), a("div", Ho, [a("h3", null, T(o.heading), 1), (v(!0), i(e, null, x(o.events, (e) => (v(), i("div", {
|
|
2337
2665
|
key: e.id,
|
|
2338
2666
|
class: "mwnf-standalone-hcr__event"
|
|
2339
|
-
}, [a("p", null, [a("b", null,
|
|
2667
|
+
}, [a("p", null, [a("b", null, T(e.date), 1)]), a("div", {
|
|
2340
2668
|
class: "mwnf-standalone-hcr__text",
|
|
2341
2669
|
innerHTML: e.html
|
|
2342
|
-
}, null, 8,
|
|
2670
|
+
}, null, 8, Uo)]))), 128))])])]),
|
|
2343
2671
|
_: 1
|
|
2344
2672
|
}, 8, [
|
|
2345
2673
|
"heading",
|
|
@@ -2347,10 +2675,10 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2347
2675
|
"dir"
|
|
2348
2676
|
]));
|
|
2349
2677
|
}
|
|
2350
|
-
},
|
|
2678
|
+
}, Go = ["disabled", "aria-label"], Ko = { class: "mwnf-standalone-slider__track" }, qo = ["src", "alt"], Jo = {
|
|
2351
2679
|
key: 0,
|
|
2352
2680
|
class: "mwnf-standalone-slider__label"
|
|
2353
|
-
},
|
|
2681
|
+
}, Yo = ["disabled", "aria-label"], Xo = {
|
|
2354
2682
|
__name: "Slider",
|
|
2355
2683
|
props: {
|
|
2356
2684
|
slides: {
|
|
@@ -2371,53 +2699,53 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2371
2699
|
}
|
|
2372
2700
|
},
|
|
2373
2701
|
setup(n) {
|
|
2374
|
-
let o = n, { t: s } =
|
|
2702
|
+
let o = n, { t: s } = K(), l = Oe(), u = b(0), d = t(() => Math.max(0, o.slides.length - o.visible)), f = t(() => o.slides.slice(u.value, u.value + o.visible).map((e) => ({
|
|
2375
2703
|
...e,
|
|
2376
2704
|
image: l(e.image) ?? "",
|
|
2377
2705
|
label: e.label ? s(e.label) : ""
|
|
2378
2706
|
})));
|
|
2379
|
-
return (t, o) => n.slides.length ? (
|
|
2707
|
+
return (t, o) => n.slides.length ? (v(), i("div", {
|
|
2380
2708
|
key: 0,
|
|
2381
2709
|
class: "mwnf-standalone-slider",
|
|
2382
|
-
style:
|
|
2710
|
+
style: h({ "--mwnf-standalone-slider-count": n.visible })
|
|
2383
2711
|
}, [
|
|
2384
2712
|
a("button", {
|
|
2385
2713
|
type: "button",
|
|
2386
2714
|
class: "mwnf-standalone-slider__button",
|
|
2387
2715
|
disabled: u.value === 0,
|
|
2388
|
-
"aria-label":
|
|
2716
|
+
"aria-label": E(s)(n.previousLabel),
|
|
2389
2717
|
onClick: o[0] ||= (e) => u.value = Math.max(0, u.value - 1)
|
|
2390
|
-
}, "‹", 8,
|
|
2391
|
-
a("ul",
|
|
2718
|
+
}, "‹", 8, Go),
|
|
2719
|
+
a("ul", Ko, [(v(!0), i(e, null, x(f.value, (e) => (v(), i("li", {
|
|
2392
2720
|
key: e.image,
|
|
2393
2721
|
class: "mwnf-standalone-slider__slide"
|
|
2394
|
-
}, [c(
|
|
2722
|
+
}, [c(J, {
|
|
2395
2723
|
to: e.to,
|
|
2396
2724
|
href: e.href
|
|
2397
2725
|
}, {
|
|
2398
|
-
default:
|
|
2726
|
+
default: F(() => [a("img", {
|
|
2399
2727
|
src: e.image,
|
|
2400
2728
|
alt: e.label
|
|
2401
|
-
}, null, 8,
|
|
2729
|
+
}, null, 8, qo), e.label ? (v(), i("span", Jo, T(e.label), 1)) : r("", !0)]),
|
|
2402
2730
|
_: 2
|
|
2403
2731
|
}, 1032, ["to", "href"])]))), 128))]),
|
|
2404
2732
|
a("button", {
|
|
2405
2733
|
type: "button",
|
|
2406
2734
|
class: "mwnf-standalone-slider__button",
|
|
2407
2735
|
disabled: u.value >= d.value,
|
|
2408
|
-
"aria-label":
|
|
2736
|
+
"aria-label": E(s)(n.nextLabel),
|
|
2409
2737
|
onClick: o[1] ||= (e) => u.value = Math.min(d.value, u.value + 1)
|
|
2410
|
-
}, "›", 8,
|
|
2738
|
+
}, "›", 8, Yo)
|
|
2411
2739
|
], 4)) : r("", !0);
|
|
2412
2740
|
}
|
|
2413
|
-
},
|
|
2741
|
+
}, Zo = { class: "mwnf-standalone-glossary" }, Qo = { class: "mwnf-standalone-glossary__intro" }, $o = { class: "mwnf-standalone-glossary__body" }, es = { class: "mwnf-standalone-glossary__field" }, ts = ["aria-expanded", "aria-label"], ns = {
|
|
2414
2742
|
key: 0,
|
|
2415
2743
|
class: "mwnf-standalone-glossary__suggestions",
|
|
2416
2744
|
role: "listbox"
|
|
2417
|
-
},
|
|
2745
|
+
}, rs = ["aria-selected", "onMousedown"], is = {
|
|
2418
2746
|
class: "mwnf-standalone-glossary__result",
|
|
2419
2747
|
"aria-live": "polite"
|
|
2420
|
-
},
|
|
2748
|
+
}, as = { class: "mwnf-standalone-glossary__label" }, os = ["innerHTML"], ss = { class: "mwnf-standalone-glossary__label mwnf-standalone-glossary__label--spellings" }, cs = { class: "mwnf-standalone-glossary__note" }, ls = { class: "mwnf-standalone-glossary__spellings" }, us = {
|
|
2421
2749
|
__name: "GlossarySpelling",
|
|
2422
2750
|
props: {
|
|
2423
2751
|
language: {
|
|
@@ -2438,69 +2766,69 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2438
2766
|
}
|
|
2439
2767
|
},
|
|
2440
2768
|
setup(o) {
|
|
2441
|
-
let s = o, c =
|
|
2442
|
-
|
|
2443
|
-
await
|
|
2769
|
+
let s = o, c = ae(), l = ne(s.entity), u = t(() => c.availableLanguages(s.entity).slice().sort());
|
|
2770
|
+
_(async () => {
|
|
2771
|
+
await B([s.entity]), await Promise.all(u.value.map((e) => c.loadTranslations(s.entity, e)));
|
|
2444
2772
|
});
|
|
2445
|
-
let d =
|
|
2446
|
-
let e =
|
|
2447
|
-
if (!e ||
|
|
2773
|
+
let d = b(""), f = b(null), m = b(-1), h = (e, t) => c.translations(s.entity, t)[e.id] ?? {}, g = t(() => {
|
|
2774
|
+
let e = z(d.value.trim());
|
|
2775
|
+
if (!e || f.value) return [];
|
|
2448
2776
|
let t = /* @__PURE__ */ new Map();
|
|
2449
2777
|
for (let n of l.value ?? []) for (let r of h(n, s.language).spellings ?? []) {
|
|
2450
2778
|
let i = String(r).trim();
|
|
2451
|
-
i &&
|
|
2779
|
+
i && z(i).startsWith(e) && t.set(i, n);
|
|
2452
2780
|
}
|
|
2453
2781
|
return [...t].map(([e, t]) => ({
|
|
2454
2782
|
spelling: e,
|
|
2455
2783
|
term: t
|
|
2456
|
-
})).sort((e, t) =>
|
|
2457
|
-
}),
|
|
2458
|
-
if (!
|
|
2784
|
+
})).sort((e, t) => z(e.spelling) < z(t.spelling) ? -1 : +(z(e.spelling) > z(t.spelling)));
|
|
2785
|
+
}), y = t(() => f.value ? V(h(f.value, s.language).definition ?? "") : ""), S = t(() => {
|
|
2786
|
+
if (!f.value) return [];
|
|
2459
2787
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2460
|
-
for (let n of u.value) for (let r of h(
|
|
2461
|
-
let n =
|
|
2788
|
+
for (let n of u.value) for (let r of h(f.value, n).spellings ?? []) {
|
|
2789
|
+
let n = z(String(r).trim());
|
|
2462
2790
|
n && !e.has(n) && (e.add(n), t.push(String(r).trim()));
|
|
2463
2791
|
}
|
|
2464
2792
|
return t;
|
|
2465
2793
|
});
|
|
2466
|
-
function
|
|
2467
|
-
|
|
2794
|
+
function C(e) {
|
|
2795
|
+
f.value = e.term, d.value = e.spelling, m.value = -1;
|
|
2468
2796
|
}
|
|
2469
|
-
function
|
|
2470
|
-
|
|
2797
|
+
function w() {
|
|
2798
|
+
f.value = null, m.value = -1;
|
|
2471
2799
|
}
|
|
2472
2800
|
function E(e) {
|
|
2473
|
-
let t =
|
|
2474
|
-
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(),
|
|
2801
|
+
let t = g.value;
|
|
2802
|
+
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(), C(t[m.value])));
|
|
2475
2803
|
}
|
|
2476
|
-
return (t, s) => (
|
|
2804
|
+
return (t, s) => (v(), n(Eo, {
|
|
2477
2805
|
heading: o.labels.heading,
|
|
2478
2806
|
"close-label": o.labels.close,
|
|
2479
2807
|
dir: o.dir
|
|
2480
2808
|
}, {
|
|
2481
|
-
default:
|
|
2809
|
+
default: F(() => [a("div", Zo, [a("h2", Qo, T(o.labels.intro), 1), a("div", $o, [a("div", es, [I(a("input", {
|
|
2482
2810
|
"onUpdate:modelValue": s[0] ||= (e) => d.value = e,
|
|
2483
2811
|
type: "text",
|
|
2484
2812
|
class: "mwnf-standalone-glossary__input",
|
|
2485
2813
|
role: "combobox",
|
|
2486
2814
|
"aria-autocomplete": "list",
|
|
2487
|
-
"aria-expanded":
|
|
2815
|
+
"aria-expanded": g.value.length > 0,
|
|
2488
2816
|
"aria-label": o.labels.heading,
|
|
2489
|
-
onInput:
|
|
2817
|
+
onInput: w,
|
|
2490
2818
|
onKeydown: E
|
|
2491
|
-
}, null, 40,
|
|
2819
|
+
}, null, 40, ts), [[M, d.value]]), g.value.length ? (v(), i("ul", ns, [(v(!0), i(e, null, x(g.value, (e, t) => (v(), i("li", {
|
|
2492
2820
|
key: e.spelling,
|
|
2493
2821
|
role: "option",
|
|
2494
2822
|
"aria-selected": t === m.value,
|
|
2495
|
-
class:
|
|
2496
|
-
onMousedown:
|
|
2497
|
-
},
|
|
2823
|
+
class: p(["mwnf-standalone-glossary__suggestion", { "mwnf-standalone-glossary__suggestion--active": t === m.value }]),
|
|
2824
|
+
onMousedown: L((t) => C(e), ["prevent"])
|
|
2825
|
+
}, T(e.spelling), 43, rs))), 128))])) : r("", !0)]), a("div", is, [f.value ? (v(), i(e, { key: 0 }, [y.value ? (v(), i(e, { key: 0 }, [a("h3", as, T(o.labels.definition), 1), a("div", {
|
|
2498
2826
|
class: "mwnf-standalone-glossary__definition",
|
|
2499
|
-
innerHTML:
|
|
2500
|
-
}, null, 8,
|
|
2501
|
-
a("h3",
|
|
2502
|
-
a("p",
|
|
2503
|
-
a("ul",
|
|
2827
|
+
innerHTML: y.value
|
|
2828
|
+
}, null, 8, os)], 64)) : r("", !0), S.value.length ? (v(), i(e, { key: 1 }, [
|
|
2829
|
+
a("h3", ss, T(o.labels.spellings), 1),
|
|
2830
|
+
a("p", cs, T(o.labels.spellingsNote), 1),
|
|
2831
|
+
a("ul", ls, [(v(!0), i(e, null, x(S.value, (e) => (v(), i("li", { key: e }, T(e), 1))), 128))])
|
|
2504
2832
|
], 64)) : r("", !0)], 64)) : r("", !0)])])])]),
|
|
2505
2833
|
_: 1
|
|
2506
2834
|
}, 8, [
|
|
@@ -2510,4 +2838,4 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
|
|
|
2510
2838
|
]));
|
|
2511
2839
|
}
|
|
2512
2840
|
};
|
|
2513
|
-
export {
|
|
2841
|
+
export { Gt as RelatedContent, Kt as SEE_ALSO_LABELS, De as StandaloneBanner, Pi as StandaloneDatabaseForm, Oa as StandaloneGlobalDatabaseSearch, us as StandaloneGlossarySpelling, Wo as StandaloneHistoricalCrossRef, St as StandaloneHome, tn as StandaloneItemSheet, Xa as StandalonePagination, Pr as StandalonePartnerList, jn as StandalonePartnerPage, oi as StandalonePartnersEntrance, wr as StandaloneRefine, Zn as StandaloneResultsGrid, vr as StandaloneResultsList, rt as StandaloneShell, Xo as StandaloneSlider, qr as StandaloneSponsorList, Ye as StandaloneSponsors, Rn as StandaloneSubNav, Fn as StandaloneTextPage, vt as StandaloneTileGrid, Wa as StandaloneTimelineEntrance, yo as StandaloneTimelineResults, Eo as StandaloneWindow, dt as TodayHighlight, ke as byLanguage, Ae as dayOfYear, Pe as highlightRecord, Me as inventoryPictureForDay, je as pickForDay, Ne as recordWithPictureForDay, Zt as seeAlsoOf, Jt as trailTitle };
|