@museumwnf/viewer-layout 3.39.0 → 3.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/standalone.js +599 -397
- package/dist/viewer-layout.css +1 -1
- package/package.json +1 -1
- package/src/tokens.reference.css +13 -0
package/dist/standalone.js
CHANGED
|
@@ -2,14 +2,14 @@ import { r as e } from "./chrome-DNsZQXrL.js";
|
|
|
2
2
|
import { c as t, d as n, n as r, t as i } from "./PartnerMap-BIKd-AGP.js";
|
|
3
3
|
import { n as a, t as o } from "./RecordView-kkpYLtL_.js";
|
|
4
4
|
import { t as s } from "./SiteShell-DPdTxtJ5.js";
|
|
5
|
-
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createTextVNode as h, createVNode as g, guardReactiveProps as _,
|
|
6
|
-
import { byId as
|
|
5
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createTextVNode as h, createVNode as g, guardReactiveProps as _, mergeModels as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onMounted as C, openBlock as w, reactive as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, unref as A, useId as j, useModel as M, useSlots as N, vModelSelect as P, vModelText as F, vShow as I, watch as L, withCtx as R, withDirectives as z, withModifiers as B } from "vue";
|
|
6
|
+
import { byId as V, collate as H, entityRef as ee, loadEntities as U, md as W, pictureCredits as te, picturesInLanguage as ne, removeEndingPoint as re, renderBlock as G, renderInline as K, renderPlain as q, useDataPackage as J, useI18n as Y, useSection as ie, useSiteConfig as X } from "@museumwnf/viewer-core";
|
|
7
7
|
import { useRoute as ae } from "vue-router";
|
|
8
8
|
//#region src/standalone/Banner.vue
|
|
9
9
|
var oe = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "mwnf-standalone-banner__title"
|
|
12
|
-
},
|
|
12
|
+
}, se = {
|
|
13
13
|
__name: "Banner",
|
|
14
14
|
props: {
|
|
15
15
|
image: {
|
|
@@ -22,29 +22,29 @@ var oe = {
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
setup(e) {
|
|
25
|
-
return (t, n) => (
|
|
25
|
+
return (t, n) => (w(), f("div", {
|
|
26
26
|
class: "mwnf-standalone-banner",
|
|
27
|
-
style:
|
|
28
|
-
}, [e.title ? (
|
|
27
|
+
style: S(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
|
|
28
|
+
}, [e.title ? (w(), f("h1", oe, [p("span", null, k(e.title), 1)])) : d("", !0)], 4));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/standalone/chrome.js
|
|
33
|
-
function
|
|
34
|
-
let t =
|
|
33
|
+
function Z() {
|
|
34
|
+
let t = X();
|
|
35
35
|
return (n) => e(t.chrome, n);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function ce(e, t) {
|
|
38
38
|
return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function le(e = /* @__PURE__ */ new Date()) {
|
|
41
41
|
let t = new Date(e.getFullYear(), 0, 1);
|
|
42
42
|
return Math.round((new Date(e.getFullYear(), e.getMonth(), e.getDate()) - t) / 864e5);
|
|
43
43
|
}
|
|
44
44
|
function Q(e, t = /* @__PURE__ */ new Date()) {
|
|
45
|
-
return e?.length ? e[
|
|
45
|
+
return e?.length ? e[le(t) % e.length] : null;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function ue(e) {
|
|
48
48
|
let [t, ...n] = String(e ?? "").split("*")[0].trim().split(";");
|
|
49
49
|
return !t || n.length < 5 ? "" : [
|
|
50
50
|
"mwnf3",
|
|
@@ -54,70 +54,70 @@ function se(e) {
|
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region src/standalone/Sponsors.vue
|
|
57
|
-
var
|
|
57
|
+
var de = { class: "mwnf-standalone-sponsors" }, fe = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "mwnf-standalone-sponsors__text"
|
|
60
|
-
},
|
|
60
|
+
}, pe = ["innerHTML"], me = { key: 1 }, he = ["innerHTML"], ge = {
|
|
61
61
|
key: 1,
|
|
62
62
|
class: "mwnf-standalone-sponsors__title"
|
|
63
|
-
},
|
|
63
|
+
}, _e = {
|
|
64
64
|
key: 2,
|
|
65
65
|
class: "mwnf-standalone-sponsors__logos"
|
|
66
|
-
},
|
|
66
|
+
}, ve = {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "mwnf-standalone-sponsors__note"
|
|
69
|
-
},
|
|
69
|
+
}, ye = ["src", "alt"], be = ["innerHTML"], xe = ["href"], Se = ["src", "alt"], Ce = ["src", "alt"], we = {
|
|
70
70
|
key: 3,
|
|
71
71
|
class: "mwnf-standalone-sponsors__links"
|
|
72
|
-
},
|
|
72
|
+
}, Te = {
|
|
73
73
|
__name: "Sponsors",
|
|
74
74
|
props: { columns: {
|
|
75
75
|
type: Array,
|
|
76
76
|
default: () => []
|
|
77
77
|
} },
|
|
78
78
|
setup(e) {
|
|
79
|
-
let t = e, { t: r } =
|
|
79
|
+
let t = e, { t: r } = Y(), i = Z(), a = l(() => t.columns.map((e, t) => ({
|
|
80
80
|
key: t,
|
|
81
81
|
width: e.width ?? null,
|
|
82
|
-
lead: e.lead ?
|
|
83
|
-
text: e.text ?
|
|
82
|
+
lead: e.lead ? K(r(e.lead)) : "",
|
|
83
|
+
text: e.text ? K(r(e.text)) : "",
|
|
84
84
|
break: !!e.break,
|
|
85
85
|
title: e.title ? r(e.title) : "",
|
|
86
86
|
logos: (e.logos ?? []).map((e) => ({
|
|
87
87
|
src: i(e.src) ?? "",
|
|
88
88
|
alt: e.alt ? r(e.alt) : "",
|
|
89
89
|
href: e.href ?? "",
|
|
90
|
-
note: e.note ?
|
|
90
|
+
note: e.note ? G(r(e.note)) : ""
|
|
91
91
|
})),
|
|
92
92
|
links: (e.links ?? []).map((e) => ({
|
|
93
93
|
...e,
|
|
94
94
|
label: r(e.label)
|
|
95
95
|
}))
|
|
96
96
|
})));
|
|
97
|
-
return (e, t) => (
|
|
97
|
+
return (e, t) => (w(), f("div", de, [(w(!0), f(c, null, D(a.value, (e) => (w(), f("div", {
|
|
98
98
|
key: e.key,
|
|
99
99
|
class: "mwnf-standalone-sponsors__column",
|
|
100
|
-
style:
|
|
100
|
+
style: S(e.width ? { flexGrow: e.width } : void 0)
|
|
101
101
|
}, [
|
|
102
|
-
e.lead || e.text ? (
|
|
103
|
-
e.lead ? (
|
|
102
|
+
e.lead || e.text ? (w(), f("p", fe, [
|
|
103
|
+
e.lead ? (w(), f("i", {
|
|
104
104
|
key: 0,
|
|
105
105
|
innerHTML: e.lead
|
|
106
|
-
}, null, 8,
|
|
107
|
-
e.lead && e.break ? (
|
|
108
|
-
e.text ? (
|
|
106
|
+
}, null, 8, pe)) : d("", !0),
|
|
107
|
+
e.lead && e.break ? (w(), f("br", me)) : e.lead && e.text ? (w(), f(c, { key: 2 }, [h(k(" "))], 64)) : d("", !0),
|
|
108
|
+
e.text ? (w(), f("span", {
|
|
109
109
|
key: 3,
|
|
110
110
|
innerHTML: e.text
|
|
111
|
-
}, null, 8,
|
|
111
|
+
}, null, 8, he)) : d("", !0)
|
|
112
112
|
])) : d("", !0),
|
|
113
|
-
e.title ? (
|
|
114
|
-
e.logos.length ? (
|
|
113
|
+
e.title ? (w(), f("p", ge, k(e.title), 1)) : d("", !0),
|
|
114
|
+
e.logos.length ? (w(), f("ul", _e, [(w(!0), f(c, null, D(e.logos, (e) => (w(), f("li", { key: e.src }, [e.note ? (w(), f("details", ve, [p("summary", null, [p("img", {
|
|
115
115
|
src: e.src,
|
|
116
116
|
alt: e.alt
|
|
117
|
-
}, null, 8,
|
|
117
|
+
}, null, 8, ye)]), p("div", {
|
|
118
118
|
class: "mwnf-standalone-sponsors__note-body",
|
|
119
119
|
innerHTML: e.note
|
|
120
|
-
}, null, 8,
|
|
120
|
+
}, null, 8, be)])) : e.href ? (w(), f("a", {
|
|
121
121
|
key: 1,
|
|
122
122
|
href: e.href,
|
|
123
123
|
target: "_blank",
|
|
@@ -125,17 +125,17 @@ var ce = { class: "mwnf-standalone-sponsors" }, le = {
|
|
|
125
125
|
}, [p("img", {
|
|
126
126
|
src: e.src,
|
|
127
127
|
alt: e.alt
|
|
128
|
-
}, null, 8,
|
|
128
|
+
}, null, 8, Se)], 8, xe)) : (w(), f("img", {
|
|
129
129
|
key: 2,
|
|
130
130
|
src: e.src,
|
|
131
131
|
alt: e.alt
|
|
132
|
-
}, null, 8,
|
|
133
|
-
e.links.length ? (
|
|
132
|
+
}, null, 8, Ce))]))), 128))])) : d("", !0),
|
|
133
|
+
e.links.length ? (w(), f("ul", we, [(w(!0), f(c, null, D(e.links, (e) => (w(), f("li", { key: e.label }, [g(n, {
|
|
134
134
|
to: e.to,
|
|
135
135
|
href: e.href,
|
|
136
136
|
external: !!e.external
|
|
137
137
|
}, {
|
|
138
|
-
default:
|
|
138
|
+
default: R(() => [h(k(e.label), 1)]),
|
|
139
139
|
_: 2
|
|
140
140
|
}, 1032, [
|
|
141
141
|
"to",
|
|
@@ -144,16 +144,16 @@ var ce = { class: "mwnf-standalone-sponsors" }, le = {
|
|
|
144
144
|
])]))), 128))])) : d("", !0)
|
|
145
145
|
], 4))), 128))]));
|
|
146
146
|
}
|
|
147
|
-
},
|
|
147
|
+
}, Ee = {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: "mwnf-standalone mwnf-standalone--bare"
|
|
150
|
-
},
|
|
150
|
+
}, De = { class: "mwnf-banner mwnf-standalone-home-banner" }, Oe = ["src"], ke = { class: "mwnf-standalone-home-banner__text" }, Ae = {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "mwnf-standalone-home-banner__title"
|
|
153
|
-
},
|
|
153
|
+
}, je = {
|
|
154
154
|
key: 1,
|
|
155
155
|
class: "mwnf-standalone-home-banner__line"
|
|
156
|
-
},
|
|
156
|
+
}, Me = ["src"], Ne = {
|
|
157
157
|
__name: "Shell",
|
|
158
158
|
props: {
|
|
159
159
|
language: {
|
|
@@ -167,101 +167,101 @@ var ce = { class: "mwnf-standalone-sponsors" }, le = {
|
|
|
167
167
|
},
|
|
168
168
|
emits: ["update:language"],
|
|
169
169
|
setup(t, { emit: n }) {
|
|
170
|
-
let r = t, i = n, { t: a, locale: o } =
|
|
171
|
-
let e =
|
|
170
|
+
let r = t, i = n, { t: a, locale: o } = Y(), c = ae(), h = l(() => !!c.meta?.bare), _ = X(), v = ie(), y = l(() => _.standalone ?? {}), x = l(() => _.navigation ?? {}), S = l(() => v.value === "home"), C = l(() => y.value.areas?.[v.value] ?? null), T = (t) => e(_.chrome, ce(t, o.value)), E = l(() => {
|
|
171
|
+
let e = y.value.logo ?? {}, t = T(C.value?.logo ?? e.src);
|
|
172
172
|
return t ? {
|
|
173
173
|
logo: t,
|
|
174
174
|
alt: e.alt ?? ""
|
|
175
175
|
} : null;
|
|
176
|
-
}),
|
|
176
|
+
}), D = l(() => T(y.value.logo?.print)), j = l(() => (y.value.headerLinks ?? []).filter((e) => !e.on || e.on === "all" || e.on === (S.value ? "home" : "inner"))), M = l(() => {
|
|
177
177
|
let e = {
|
|
178
|
-
...
|
|
179
|
-
...
|
|
178
|
+
...y.value.banner ?? {},
|
|
179
|
+
...C.value?.banner ?? {}
|
|
180
180
|
};
|
|
181
181
|
return T(S.value ? e.home : e.inner) ?? "";
|
|
182
182
|
}), N = l(() => {
|
|
183
183
|
let e = x.value.sectionTitles?.[v.value];
|
|
184
184
|
return e ? a(e) : "";
|
|
185
|
-
}), P = l(() => !S.value && !!(M.value || N.value)),
|
|
186
|
-
let { homeTitle: e, homeText: t } =
|
|
185
|
+
}), P = l(() => !S.value && !!(M.value || N.value)), F = l(() => {
|
|
186
|
+
let { homeTitle: e, homeText: t } = y.value.banner ?? {};
|
|
187
187
|
return S.value && (e || t) ? {
|
|
188
188
|
title: e ? a(e) : "",
|
|
189
189
|
text: t ? a(t) : ""
|
|
190
190
|
} : null;
|
|
191
|
-
}),
|
|
192
|
-
let e =
|
|
191
|
+
}), I = l(() => {
|
|
192
|
+
let e = y.value.sponsors;
|
|
193
193
|
return e?.columns?.length && (e.on === "all" || S.value) ? e : null;
|
|
194
|
-
}),
|
|
194
|
+
}), L = l(() => ({
|
|
195
195
|
navigation: {
|
|
196
196
|
...x.value,
|
|
197
197
|
headerLinks: j.value,
|
|
198
198
|
sectionTitles: {},
|
|
199
|
-
...
|
|
199
|
+
...y.value.languages === !1 ? { languages: [] } : {}
|
|
200
200
|
},
|
|
201
201
|
banner: null,
|
|
202
|
-
...
|
|
203
|
-
})), z = (/* @__PURE__ */ new Date()).getFullYear(), B = l(() =>
|
|
202
|
+
...E.value ? { brand: E.value } : {}
|
|
203
|
+
})), z = (/* @__PURE__ */ new Date()).getFullYear(), B = l(() => y.value.copyright ? `${a(y.value.copyright)} ${z}` : ""), V = l(() => [
|
|
204
204
|
"mwnf-standalone",
|
|
205
205
|
S.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
|
|
206
|
-
|
|
206
|
+
C.value?.class ?? ""
|
|
207
207
|
]);
|
|
208
|
-
return (e, t) => h.value ? (
|
|
208
|
+
return (e, t) => h.value ? (w(), f("div", Ee, [O(e.$slots, "default")])) : (w(), u(s, {
|
|
209
209
|
key: 1,
|
|
210
|
-
class:
|
|
211
|
-
config:
|
|
212
|
-
languages:
|
|
210
|
+
class: b(V.value),
|
|
211
|
+
config: L.value,
|
|
212
|
+
languages: y.value.languages === !1 ? [] : r.languages,
|
|
213
213
|
language: r.language,
|
|
214
214
|
"language-placement": "header",
|
|
215
215
|
"language-style": "select",
|
|
216
|
-
"header-home":
|
|
217
|
-
"header-title": S.value ? "" :
|
|
218
|
-
"header-subtitle": S.value ? "" :
|
|
216
|
+
"header-home": y.value.logo?.href ?? "",
|
|
217
|
+
"header-title": S.value ? "" : y.value.heading ? A(a)(y.value.heading) : "",
|
|
218
|
+
"header-subtitle": S.value ? "" : y.value.subheading ? A(a)(y.value.subheading) : "",
|
|
219
219
|
"header-title-href": "#/",
|
|
220
|
-
"banner-image": S.value && !
|
|
220
|
+
"banner-image": S.value && !F.value ? M.value : "",
|
|
221
221
|
"footer-text": B.value || void 0,
|
|
222
222
|
"onUpdate:language": t[0] ||= (e) => i("update:language", e)
|
|
223
223
|
}, m({
|
|
224
|
-
default:
|
|
224
|
+
default: R(() => [O(e.$slots, "default")]),
|
|
225
225
|
_: 2
|
|
226
226
|
}, [
|
|
227
227
|
P.value ? {
|
|
228
228
|
name: "banner",
|
|
229
|
-
fn:
|
|
229
|
+
fn: R(() => [g(se, {
|
|
230
230
|
image: M.value,
|
|
231
231
|
title: N.value
|
|
232
232
|
}, null, 8, ["image", "title"])]),
|
|
233
233
|
key: "0"
|
|
234
|
-
} :
|
|
234
|
+
} : F.value ? {
|
|
235
235
|
name: "banner",
|
|
236
|
-
fn:
|
|
236
|
+
fn: R(() => [p("section", De, [M.value ? (w(), f("img", {
|
|
237
237
|
key: 0,
|
|
238
238
|
class: "mwnf-banner__image",
|
|
239
239
|
src: M.value,
|
|
240
240
|
alt: ""
|
|
241
|
-
}, null, 8,
|
|
241
|
+
}, null, 8, Oe)) : d("", !0), p("div", ke, [F.value.title ? (w(), f("h2", Ae, [p("i", null, k(F.value.title), 1)])) : d("", !0), F.value.text ? (w(), f("p", je, [p("span", null, k(F.value.text), 1)])) : d("", !0)])])]),
|
|
242
242
|
key: "1"
|
|
243
243
|
} : void 0,
|
|
244
|
-
|
|
244
|
+
D.value ? {
|
|
245
245
|
name: "notice",
|
|
246
|
-
fn:
|
|
246
|
+
fn: R(() => [p("img", {
|
|
247
247
|
class: "mwnf-standalone__print-logo",
|
|
248
|
-
src:
|
|
248
|
+
src: D.value,
|
|
249
249
|
alt: ""
|
|
250
|
-
}, null, 8,
|
|
250
|
+
}, null, 8, Me)]),
|
|
251
251
|
key: "2"
|
|
252
252
|
} : void 0,
|
|
253
253
|
e.$slots.sponsors ? {
|
|
254
254
|
name: "sponsors",
|
|
255
|
-
fn:
|
|
255
|
+
fn: R(() => [O(e.$slots, "sponsors")]),
|
|
256
256
|
key: "3"
|
|
257
|
-
} :
|
|
257
|
+
} : I.value ? {
|
|
258
258
|
name: "sponsors",
|
|
259
|
-
fn:
|
|
259
|
+
fn: R(() => [g(Te, { columns: I.value.columns }, null, 8, ["columns"])]),
|
|
260
260
|
key: "4"
|
|
261
261
|
} : void 0,
|
|
262
262
|
e.$slots.footer ? {
|
|
263
263
|
name: "footer",
|
|
264
|
-
fn:
|
|
264
|
+
fn: R(() => [O(e.$slots, "footer")]),
|
|
265
265
|
key: "5"
|
|
266
266
|
} : void 0
|
|
267
267
|
]), 1032, [
|
|
@@ -276,19 +276,19 @@ var ce = { class: "mwnf-standalone-sponsors" }, le = {
|
|
|
276
276
|
"footer-text"
|
|
277
277
|
]));
|
|
278
278
|
}
|
|
279
|
-
},
|
|
279
|
+
}, Pe = {
|
|
280
280
|
key: 0,
|
|
281
281
|
class: "mwnf-standalone-highlight"
|
|
282
|
-
},
|
|
282
|
+
}, Fe = ["src", "alt"], Ie = {
|
|
283
283
|
key: 1,
|
|
284
284
|
class: "mwnf-standalone-highlight__heading"
|
|
285
|
-
},
|
|
285
|
+
}, Le = { class: "mwnf-standalone-highlight__lines" }, Re = ["innerHTML"], ze = {
|
|
286
286
|
key: 2,
|
|
287
287
|
class: "mwnf-standalone-highlight__place"
|
|
288
|
-
},
|
|
288
|
+
}, Be = {
|
|
289
289
|
key: 3,
|
|
290
290
|
class: "mwnf-standalone-highlight__action"
|
|
291
|
-
},
|
|
291
|
+
}, Ve = {
|
|
292
292
|
__name: "TodayHighlight",
|
|
293
293
|
props: {
|
|
294
294
|
record: {
|
|
@@ -329,51 +329,51 @@ var ce = { class: "mwnf-standalone-sponsors" }, le = {
|
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
331
|
setup(e) {
|
|
332
|
-
let t = e, { t: r } =
|
|
332
|
+
let t = e, { t: r } = Y(), i = (e) => re(Array.isArray(e) ? e.join("; ") : e), a = l(() => {
|
|
333
333
|
let e = t.text ?? {}, n = [], a = i(e.name ?? t.record?.internal_name ?? "");
|
|
334
|
-
a && n.push(
|
|
334
|
+
a && n.push(K(a));
|
|
335
335
|
let o = i(e.alternate_name);
|
|
336
|
-
o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${
|
|
336
|
+
o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${K(o)}`);
|
|
337
337
|
let s = [i(e.dates), i(e.dynasty)].filter(Boolean).join(", ");
|
|
338
|
-
s && n.push(
|
|
338
|
+
s && n.push(K(s));
|
|
339
339
|
for (let t of ["materials", "holder"]) {
|
|
340
340
|
let r = i(e[t]);
|
|
341
|
-
r && n.push(
|
|
341
|
+
r && n.push(K(r));
|
|
342
342
|
}
|
|
343
343
|
return n;
|
|
344
|
-
}), o = l(() => t.place ?? [i(t.text?.location), t.country].filter(Boolean).join(", ")), s = l(() => t.picture || (t.record?.images?.[0]?.url ?? "")), m = l(() =>
|
|
345
|
-
return (t, i) => e.record ? (
|
|
346
|
-
s.value ? (
|
|
344
|
+
}), o = l(() => t.place ?? [i(t.text?.location), t.country].filter(Boolean).join(", ")), s = l(() => t.picture || (t.record?.images?.[0]?.url ?? "")), m = l(() => q(String(t.text?.name ?? t.record?.internal_name ?? "")));
|
|
345
|
+
return (t, i) => e.record ? (w(), f("div", Pe, [
|
|
346
|
+
s.value ? (w(), u(n, {
|
|
347
347
|
key: 0,
|
|
348
348
|
class: "mwnf-standalone-highlight__media",
|
|
349
349
|
to: e.to
|
|
350
350
|
}, {
|
|
351
|
-
default:
|
|
351
|
+
default: R(() => [p("img", {
|
|
352
352
|
class: "mwnf-standalone-highlight__image",
|
|
353
353
|
src: s.value,
|
|
354
354
|
alt: m.value
|
|
355
|
-
}, null, 8,
|
|
355
|
+
}, null, 8, Fe)]),
|
|
356
356
|
_: 1
|
|
357
357
|
}, 8, ["to"])) : d("", !0),
|
|
358
|
-
e.heading ? (
|
|
359
|
-
p("p",
|
|
360
|
-
o.value ? (
|
|
361
|
-
e.action ? (
|
|
362
|
-
default:
|
|
358
|
+
e.heading ? (w(), f("p", Ie, [p("strong", null, k(A(r)(e.heading)), 1)])) : d("", !0),
|
|
359
|
+
p("p", Le, [(w(!0), f(c, null, D(a.value, (e, t) => (w(), f(c, { key: t }, [p("span", { innerHTML: e }, null, 8, Re), i[0] ||= p("br", null, null, -1)], 64))), 128))]),
|
|
360
|
+
o.value ? (w(), f("p", ze, k(A(q)(o.value)), 1)) : d("", !0),
|
|
361
|
+
e.action ? (w(), f("p", Be, [g(n, { to: e.to }, {
|
|
362
|
+
default: R(() => [h(k(A(r)(e.action)), 1)]),
|
|
363
363
|
_: 1
|
|
364
364
|
}, 8, ["to"])])) : d("", !0)
|
|
365
365
|
])) : d("", !0);
|
|
366
366
|
}
|
|
367
|
-
},
|
|
367
|
+
}, He = {
|
|
368
368
|
key: 0,
|
|
369
369
|
class: "mwnf-standalone-tiles"
|
|
370
|
-
},
|
|
370
|
+
}, Ue = {
|
|
371
371
|
key: 0,
|
|
372
372
|
class: "mwnf-standalone-tiles__caption"
|
|
373
|
-
},
|
|
373
|
+
}, We = { class: "mwnf-standalone-tiles__caption-text" }, Ge = { class: "mwnf-standalone-tiles__grid" }, Ke = ["src", "alt"], qe = {
|
|
374
374
|
key: 0,
|
|
375
375
|
class: "mwnf-standalone-tiles__label"
|
|
376
|
-
},
|
|
376
|
+
}, Je = {
|
|
377
377
|
__name: "TileGrid",
|
|
378
378
|
props: {
|
|
379
379
|
caption: {
|
|
@@ -386,12 +386,12 @@ var ce = { class: "mwnf-standalone-sponsors" }, le = {
|
|
|
386
386
|
}
|
|
387
387
|
},
|
|
388
388
|
setup(e) {
|
|
389
|
-
let t = e, { t: r } =
|
|
389
|
+
let t = e, { t: r } = Y(), i = Z(), a = l(() => t.items.map((e) => ({
|
|
390
390
|
...e,
|
|
391
391
|
image: i(e.image) ?? "",
|
|
392
|
-
label: e.text ?
|
|
392
|
+
label: e.text ? q(e.text) : e.label ? r(e.label) : ""
|
|
393
393
|
})));
|
|
394
|
-
return (t, i) => a.value.length ? (
|
|
394
|
+
return (t, i) => a.value.length ? (w(), f("section", He, [e.caption ? (w(), f("p", Ue, [p("span", We, k(A(r)(e.caption)), 1)])) : d("", !0), p("ul", Ge, [(w(!0), f(c, null, D(a.value, (e) => (w(), f("li", {
|
|
395
395
|
key: e.image,
|
|
396
396
|
class: "mwnf-standalone-tiles__tile"
|
|
397
397
|
}, [g(n, {
|
|
@@ -399,64 +399,64 @@ var ce = { class: "mwnf-standalone-sponsors" }, le = {
|
|
|
399
399
|
href: e.href,
|
|
400
400
|
class: "mwnf-standalone-tiles__link"
|
|
401
401
|
}, {
|
|
402
|
-
default:
|
|
402
|
+
default: R(() => [p("img", {
|
|
403
403
|
class: "mwnf-standalone-tiles__image",
|
|
404
404
|
src: e.image,
|
|
405
405
|
alt: e.label
|
|
406
|
-
}, null, 8,
|
|
406
|
+
}, null, 8, Ke), e.label ? (w(), f("span", qe, k(e.label), 1)) : d("", !0)]),
|
|
407
407
|
_: 2
|
|
408
408
|
}, 1032, ["to", "href"])]))), 128))])])) : d("", !0);
|
|
409
409
|
}
|
|
410
|
-
},
|
|
410
|
+
}, Ye = { class: "mwnf-standalone-home" }, Xe = {
|
|
411
411
|
key: 0,
|
|
412
412
|
class: "mwnf-standalone-home__links"
|
|
413
|
-
},
|
|
413
|
+
}, Ze = { key: 1 }, Qe = {
|
|
414
414
|
__name: "Home",
|
|
415
415
|
props: { home: {
|
|
416
416
|
type: Object,
|
|
417
417
|
default: null
|
|
418
418
|
} },
|
|
419
419
|
setup(e) {
|
|
420
|
-
let t = e, { t: r, locale: i } =
|
|
420
|
+
let t = e, { t: r, locale: i } = Y(), a = X(), o = l(() => t.home ?? a.standalone?.home ?? {}), s = l(() => (o.value.links ?? []).map((e) => ({
|
|
421
421
|
...e,
|
|
422
422
|
label: r(e.label),
|
|
423
423
|
prefix: e.prefix ? r(e.prefix) : "",
|
|
424
424
|
title: e.title ? r(e.title) : void 0
|
|
425
|
-
}))), p = l(() => o.value.highlight ?? null), m =
|
|
426
|
-
p.value?.list?.length && (
|
|
425
|
+
}))), p = l(() => o.value.highlight ?? null), m = J();
|
|
426
|
+
p.value?.list?.length && (U(["items", "countries"]), L(i, (e) => {
|
|
427
427
|
m.loadTranslations("items", e), m.loadTranslations("countries", e);
|
|
428
428
|
}, { immediate: !0 }));
|
|
429
|
-
let _ =
|
|
429
|
+
let _ = V("items", "backward_compatibility"), v = l(() => {
|
|
430
430
|
let e = p.value?.list ?? [], t = e.indexOf(Q(e));
|
|
431
431
|
for (let n = 0; t >= 0 && n < e.length; n++) {
|
|
432
|
-
let r = _.value.get(
|
|
432
|
+
let r = _.value.get(ue(e[(t + n) % e.length]));
|
|
433
433
|
if (r) return r;
|
|
434
434
|
}
|
|
435
435
|
return null;
|
|
436
|
-
}),
|
|
436
|
+
}), y = l(() => v.value ? m.tr("items", v.value.id, i.value, "en") : {}), x = l(() => {
|
|
437
437
|
let e = v.value?.country_id;
|
|
438
438
|
return e ? m.tr("countries", e, i.value, "en").name ?? "" : "";
|
|
439
|
-
}), S = l(() => v.value && p.value?.place ? p.value.place(v.value,
|
|
439
|
+
}), S = l(() => v.value && p.value?.place ? p.value.place(v.value, y.value, x.value) : null), C = l(() => v.value ? {
|
|
440
440
|
name: p.value.route ?? "item",
|
|
441
441
|
params: { id: v.value.id }
|
|
442
|
-
} : null),
|
|
442
|
+
} : null), T = Z(), E = l(() => {
|
|
443
443
|
let e = p.value?.pictures ?? [];
|
|
444
|
-
return e.length ?
|
|
444
|
+
return e.length ? T(Q(e)) ?? "" : "";
|
|
445
445
|
}), A = l(() => {
|
|
446
446
|
let e = o.value.tiles?.items;
|
|
447
447
|
return (typeof e == "function" ? e() : e) ?? [];
|
|
448
448
|
});
|
|
449
|
-
return (e, t) => (
|
|
450
|
-
s.value.length ? (
|
|
449
|
+
return (e, t) => (w(), f("div", Ye, [
|
|
450
|
+
s.value.length ? (w(), f("ul", Xe, [(w(!0), f(c, null, D(s.value, (e) => (w(), f("li", {
|
|
451
451
|
key: e.label,
|
|
452
|
-
class:
|
|
452
|
+
class: b({ "mwnf-standalone-home__link--gap": e.gap })
|
|
453
453
|
}, [g(n, {
|
|
454
454
|
to: e.to,
|
|
455
455
|
href: e.href,
|
|
456
456
|
external: !!e.external,
|
|
457
457
|
title: e.title
|
|
458
458
|
}, {
|
|
459
|
-
default:
|
|
459
|
+
default: R(() => [e.prefix ? (w(), f(c, { key: 0 }, [h(k(`${e.prefix} `), 1)], 64)) : d("", !0), e.italic ? (w(), f("i", Ze, k(e.label), 1)) : (w(), f(c, { key: 2 }, [h(k(e.label), 1)], 64))]),
|
|
460
460
|
_: 2
|
|
461
461
|
}, 1032, [
|
|
462
462
|
"to",
|
|
@@ -464,14 +464,14 @@ var ce = { class: "mwnf-standalone-sponsors" }, le = {
|
|
|
464
464
|
"external",
|
|
465
465
|
"title"
|
|
466
466
|
])], 2))), 128))])) : d("", !0),
|
|
467
|
-
p.value ? (
|
|
467
|
+
p.value ? (w(), u(Ve, {
|
|
468
468
|
key: 1,
|
|
469
469
|
record: v.value,
|
|
470
|
-
text:
|
|
470
|
+
text: y.value,
|
|
471
471
|
country: x.value,
|
|
472
472
|
place: S.value,
|
|
473
|
-
to:
|
|
474
|
-
picture:
|
|
473
|
+
to: C.value,
|
|
474
|
+
picture: E.value,
|
|
475
475
|
heading: p.value.heading ?? "",
|
|
476
476
|
"also-known-as": p.value.alsoKnownAs ?? "",
|
|
477
477
|
action: p.value.action ?? ""
|
|
@@ -486,15 +486,15 @@ var ce = { class: "mwnf-standalone-sponsors" }, le = {
|
|
|
486
486
|
"also-known-as",
|
|
487
487
|
"action"
|
|
488
488
|
])) : d("", !0),
|
|
489
|
-
o.value.tiles ? (
|
|
489
|
+
o.value.tiles ? (w(), u(Je, {
|
|
490
490
|
key: 2,
|
|
491
491
|
caption: o.value.tiles.caption ?? "",
|
|
492
492
|
items: A.value
|
|
493
493
|
}, null, 8, ["caption", "items"])) : d("", !0),
|
|
494
|
-
|
|
494
|
+
O(e.$slots, "default")
|
|
495
495
|
]));
|
|
496
496
|
}
|
|
497
|
-
},
|
|
497
|
+
}, $e = "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; }", et = ".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", nt = "button, img, svg, picture, video, audio, iframe, script, style, [role=\"tooltip\"], [aria-hidden=\"true\"]";
|
|
498
498
|
function $(e) {
|
|
499
499
|
return String(e ?? "").replace(/[&<>"]/g, (e) => ({
|
|
500
500
|
"&": "&",
|
|
@@ -503,7 +503,7 @@ function $(e) {
|
|
|
503
503
|
"\"": """
|
|
504
504
|
})[e]);
|
|
505
505
|
}
|
|
506
|
-
var
|
|
506
|
+
var rt = /* @__PURE__ */ new Set([
|
|
507
507
|
"I",
|
|
508
508
|
"EM",
|
|
509
509
|
"B",
|
|
@@ -511,7 +511,7 @@ var et = /* @__PURE__ */ new Set([
|
|
|
511
511
|
"U",
|
|
512
512
|
"SUP",
|
|
513
513
|
"SUB"
|
|
514
|
-
]),
|
|
514
|
+
]), it = /* @__PURE__ */ new Set([
|
|
515
515
|
"P",
|
|
516
516
|
"DIV",
|
|
517
517
|
"LI",
|
|
@@ -519,7 +519,7 @@ var et = /* @__PURE__ */ new Set([
|
|
|
519
519
|
"OL",
|
|
520
520
|
"SECTION"
|
|
521
521
|
]);
|
|
522
|
-
function
|
|
522
|
+
function at(e) {
|
|
523
523
|
let t = [[]], n = () => t[t.length - 1], r = () => {
|
|
524
524
|
n().length && t.push([]);
|
|
525
525
|
}, i = (e) => {
|
|
@@ -527,12 +527,12 @@ function nt(e) {
|
|
|
527
527
|
n().push($(e.textContent));
|
|
528
528
|
return;
|
|
529
529
|
}
|
|
530
|
-
if (e.nodeType !== Node.ELEMENT_NODE || e.matches(
|
|
530
|
+
if (e.nodeType !== Node.ELEMENT_NODE || e.matches(nt)) return;
|
|
531
531
|
if (e.tagName === "BR") {
|
|
532
532
|
n().push("<br/>");
|
|
533
533
|
return;
|
|
534
534
|
}
|
|
535
|
-
let t =
|
|
535
|
+
let t = it.has(e.tagName), a = rt.has(e.tagName) ? e.tagName.toLowerCase() : "";
|
|
536
536
|
t && r(), a && n().push(`<${a}>`);
|
|
537
537
|
for (let t of e.childNodes) i(t);
|
|
538
538
|
a && n().push(`</${a}>`), t && r();
|
|
@@ -540,20 +540,20 @@ function nt(e) {
|
|
|
540
540
|
for (let t of e.childNodes) i(t);
|
|
541
541
|
return t.map((e) => e.join("").replace(/\s+/g, " ").trim()).filter(Boolean).join("<br/>\n<br/>");
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function ot(e, { title: t = "", dir: n = "" } = {}) {
|
|
544
544
|
let r = (t) => {
|
|
545
545
|
for (let n = t; n && n !== e.parentElement; n = n.parentElement) if (n.hidden || getComputedStyle(n).display === "none") return !1;
|
|
546
546
|
return !0;
|
|
547
547
|
}, i = [];
|
|
548
|
-
for (let t of e.querySelectorAll(`${
|
|
548
|
+
for (let t of e.querySelectorAll(`${et}, ${tt}`)) {
|
|
549
549
|
if (t.closest(".mwnf-standalone-item__left, .mwnf-standalone-related") || !r(t)) continue;
|
|
550
550
|
if (t.matches(".mwnf-credits__list > dt")) {
|
|
551
551
|
let e = t.nextElementSibling;
|
|
552
|
-
i.push(`<p>${$(t.textContent.trim())} ${e ?
|
|
552
|
+
i.push(`<p>${$(t.textContent.trim())} ${e ? at(e) : ""}</p>`);
|
|
553
553
|
continue;
|
|
554
554
|
}
|
|
555
|
-
let e =
|
|
556
|
-
e && i.push(t.matches(
|
|
555
|
+
let e = at(t);
|
|
556
|
+
e && i.push(t.matches(et) ? `<h3>${e}</h3>` : `<p>${e}</p>`);
|
|
557
557
|
}
|
|
558
558
|
let a = n === "rtl" ? " style=\"direction: rtl;\"" : "";
|
|
559
559
|
return `<html>
|
|
@@ -561,7 +561,7 @@ function rt(e, { title: t = "", dir: n = "" } = {}) {
|
|
|
561
561
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
562
562
|
<head>
|
|
563
563
|
<style>
|
|
564
|
-
${
|
|
564
|
+
${$e}
|
|
565
565
|
</style>
|
|
566
566
|
</head>
|
|
567
567
|
<body>
|
|
@@ -575,16 +575,16 @@ ${i.join("\n")}
|
|
|
575
575
|
</body>
|
|
576
576
|
</html>`;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function st(e, t) {
|
|
579
579
|
let n = URL.createObjectURL(new Blob(["", e], { type: "application/msword" })), r = document.createElement("a");
|
|
580
580
|
r.href = n, r.download = t, document.body.appendChild(r), r.click(), r.remove(), setTimeout(() => URL.revokeObjectURL(n), 0);
|
|
581
581
|
}
|
|
582
582
|
//#endregion
|
|
583
583
|
//#region src/standalone/RelatedContent.vue
|
|
584
|
-
var
|
|
584
|
+
var ct = { class: "mwnf-standalone-related" }, lt = { class: "mwnf-standalone-related__heading" }, ut = { class: "mwnf-standalone-related__group-heading" }, dt = { class: "mwnf-standalone-related__thumbs" }, ft = ["src", "alt"], pt = ["innerHTML"], mt = {
|
|
585
585
|
key: 0,
|
|
586
586
|
class: "mwnf-standalone-related__download"
|
|
587
|
-
},
|
|
587
|
+
}, ht = { class: "mwnf-standalone-related__download-heading" }, gt = {
|
|
588
588
|
__name: "RelatedContent",
|
|
589
589
|
props: {
|
|
590
590
|
heading: {
|
|
@@ -609,7 +609,7 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
609
609
|
}
|
|
610
610
|
},
|
|
611
611
|
setup(e) {
|
|
612
|
-
let t = e, { t: r } =
|
|
612
|
+
let t = e, { t: r } = Y(), i = l(() => t.groups.map((e) => ({
|
|
613
613
|
heading: r(e.heading),
|
|
614
614
|
rows: t.records.filter((t) => !e.type || t.badge === e.type)
|
|
615
615
|
})).filter((e) => e.rows.length));
|
|
@@ -618,51 +618,51 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
618
618
|
}
|
|
619
619
|
function o(e) {
|
|
620
620
|
let n = e.currentTarget.closest(".mwnf-standalone-item");
|
|
621
|
-
n &&
|
|
621
|
+
n && st(ot(n.querySelector(".mwnf-record__main") ?? n, {
|
|
622
622
|
title: t.download?.title ? r(t.download.title) : "",
|
|
623
623
|
dir: getComputedStyle(n).direction
|
|
624
624
|
}), t.wordFile);
|
|
625
625
|
}
|
|
626
|
-
return (t, s) => (
|
|
627
|
-
p("p",
|
|
628
|
-
(
|
|
626
|
+
return (t, s) => (w(), f("aside", ct, [
|
|
627
|
+
p("p", lt, [p("strong", null, k(A(r)(e.heading)), 1)]),
|
|
628
|
+
(w(!0), f(c, null, D(i.value, (e) => (w(), f("div", {
|
|
629
629
|
key: e.heading,
|
|
630
630
|
class: "mwnf-standalone-related__group"
|
|
631
|
-
}, [p("p",
|
|
631
|
+
}, [p("p", ut, k(e.heading), 1), p("ul", dt, [(w(!0), f(c, null, D(e.rows, (e) => (w(), f("li", { key: e.id }, [g(n, {
|
|
632
632
|
to: e.to,
|
|
633
633
|
title: e.imageAlt
|
|
634
634
|
}, {
|
|
635
|
-
default:
|
|
635
|
+
default: R(() => [e.image ? (w(), f("img", {
|
|
636
636
|
key: 0,
|
|
637
637
|
src: e.image,
|
|
638
638
|
alt: e.imageAlt
|
|
639
|
-
}, null, 8,
|
|
639
|
+
}, null, 8, ft)) : (w(), f("span", {
|
|
640
640
|
key: 1,
|
|
641
641
|
innerHTML: e.name
|
|
642
|
-
}, null, 8,
|
|
642
|
+
}, null, 8, pt))]),
|
|
643
643
|
_: 2
|
|
644
644
|
}, 1032, ["to", "title"])]))), 128))])]))), 128)),
|
|
645
|
-
|
|
646
|
-
e.download ? (
|
|
647
|
-
p("p",
|
|
645
|
+
O(t.$slots, "default"),
|
|
646
|
+
e.download ? (w(), f("div", mt, [
|
|
647
|
+
p("p", ht, k(A(r)(e.download.heading)), 1),
|
|
648
648
|
p("button", {
|
|
649
649
|
type: "button",
|
|
650
650
|
class: "mwnf-standalone-related__print",
|
|
651
651
|
onClick: a
|
|
652
|
-
},
|
|
653
|
-
e.download.word ? (
|
|
652
|
+
}, k(A(r)(e.download.print)), 1),
|
|
653
|
+
e.download.word ? (w(), f("button", {
|
|
654
654
|
key: 0,
|
|
655
655
|
type: "button",
|
|
656
656
|
class: "mwnf-standalone-related__print mwnf-standalone-related__word",
|
|
657
657
|
onClick: o
|
|
658
|
-
},
|
|
658
|
+
}, k(A(r)(e.download.word)), 1)) : d("", !0)
|
|
659
659
|
])) : d("", !0)
|
|
660
660
|
]));
|
|
661
661
|
}
|
|
662
|
-
},
|
|
662
|
+
}, _t = { class: "mwnf-standalone-item__top" }, vt = { class: "mwnf-standalone-item__left" }, yt = {
|
|
663
663
|
key: 0,
|
|
664
664
|
class: "mwnf-standalone-item__back"
|
|
665
|
-
},
|
|
665
|
+
}, bt = {
|
|
666
666
|
__name: "ItemSheet",
|
|
667
667
|
props: {
|
|
668
668
|
spec: {
|
|
@@ -683,11 +683,11 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
683
683
|
}
|
|
684
684
|
},
|
|
685
685
|
setup(e) {
|
|
686
|
-
let i = e, { t: s } =
|
|
686
|
+
let i = e, { t: s } = Y(), v = N(), y = l(() => ({
|
|
687
687
|
...i.spec,
|
|
688
688
|
media: () => []
|
|
689
689
|
}));
|
|
690
|
-
function
|
|
690
|
+
function b(e) {
|
|
691
691
|
return a(S(e), i.spec.pictureLimit, e);
|
|
692
692
|
}
|
|
693
693
|
function S({ record: e, text: t, language: n }) {
|
|
@@ -696,7 +696,7 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
696
696
|
text: t,
|
|
697
697
|
language: n
|
|
698
698
|
});
|
|
699
|
-
let r =
|
|
699
|
+
let r = q(String(t?.name ?? e?.internal_name ?? ""));
|
|
700
700
|
return ne(e?.images, n).map((e) => {
|
|
701
701
|
let { photographer: t, copyright: i } = te(e, n), a = [t ? `${s("record.media.photograph")}: ${t}` : "", i ? `© ${i}` : ""].filter(Boolean).join(", ");
|
|
702
702
|
return {
|
|
@@ -706,26 +706,26 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
706
706
|
};
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
|
-
let
|
|
709
|
+
let C = l(() => i.back.map((e) => ({
|
|
710
710
|
...e,
|
|
711
711
|
label: s(e.label)
|
|
712
|
-
}))),
|
|
712
|
+
}))), T = /* @__PURE__ */ new Set([
|
|
713
713
|
"header",
|
|
714
714
|
"before-sheet",
|
|
715
715
|
"related",
|
|
716
716
|
"sidebar",
|
|
717
717
|
"aside",
|
|
718
718
|
"source"
|
|
719
|
-
]),
|
|
720
|
-
function
|
|
719
|
+
]), E = l(() => Object.keys(v).filter((e) => !T.has(e)));
|
|
720
|
+
function A() {
|
|
721
721
|
window.history.back();
|
|
722
722
|
}
|
|
723
|
-
return (i, a) => (
|
|
723
|
+
return (i, a) => (w(), u(o, {
|
|
724
724
|
spec: y.value,
|
|
725
725
|
id: e.id,
|
|
726
726
|
class: "mwnf-standalone-item"
|
|
727
727
|
}, m({
|
|
728
|
-
header:
|
|
728
|
+
header: R(({ languages: e, language: n, select: r }) => [p("div", _t, [g(t, {
|
|
729
729
|
languages: e,
|
|
730
730
|
language: n,
|
|
731
731
|
from: 1,
|
|
@@ -735,31 +735,31 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
735
735
|
"language",
|
|
736
736
|
"onSelect"
|
|
737
737
|
])])]),
|
|
738
|
-
"before-sheet":
|
|
738
|
+
"before-sheet": R((e) => [p("div", vt, [C.value.length ? (w(), f("p", yt, [(w(!0), f(c, null, D(C.value, (e) => (w(), f(c, { key: e.label }, [e.history ? (w(), f("button", {
|
|
739
739
|
key: 0,
|
|
740
740
|
type: "button",
|
|
741
741
|
class: "mwnf-standalone-item__back-link",
|
|
742
|
-
onClick:
|
|
743
|
-
},
|
|
742
|
+
onClick: A
|
|
743
|
+
}, k(e.label), 1)) : (w(), u(n, {
|
|
744
744
|
key: 1,
|
|
745
745
|
class: "mwnf-standalone-item__back-link",
|
|
746
746
|
to: e.to,
|
|
747
747
|
href: e.href
|
|
748
748
|
}, {
|
|
749
|
-
default:
|
|
749
|
+
default: R(() => [h(k(e.label), 1)]),
|
|
750
750
|
_: 2
|
|
751
751
|
}, 1032, ["to", "href"]))], 64))), 128))])) : d("", !0), g(r, {
|
|
752
|
-
images:
|
|
752
|
+
images: b(e),
|
|
753
753
|
"thumbs-from": 1
|
|
754
|
-
}, null, 8, ["images"])]),
|
|
755
|
-
related:
|
|
754
|
+
}, null, 8, ["images"])]), O(i.$slots, "before-sheet", x(_(e)))]),
|
|
755
|
+
related: R((t) => [g(gt, {
|
|
756
756
|
heading: e.related.heading ?? "record.related.title",
|
|
757
757
|
records: t.records,
|
|
758
758
|
groups: e.related.groups ?? [],
|
|
759
759
|
download: e.related.download ?? null,
|
|
760
760
|
"word-file": e.related.download?.wordFile?.(t.record, t.language) ?? "sheet.doc"
|
|
761
761
|
}, {
|
|
762
|
-
default:
|
|
762
|
+
default: R(() => [O(i.$slots, "sidebar", x(_(t)))]),
|
|
763
763
|
_: 2
|
|
764
764
|
}, 1032, [
|
|
765
765
|
"heading",
|
|
@@ -768,44 +768,44 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
768
768
|
"download",
|
|
769
769
|
"word-file"
|
|
770
770
|
])]),
|
|
771
|
-
source:
|
|
771
|
+
source: R((e) => [O(i.$slots, "source", x(_(e)))]),
|
|
772
772
|
_: 2
|
|
773
|
-
}, [
|
|
773
|
+
}, [D(E.value, (e) => ({
|
|
774
774
|
name: e,
|
|
775
|
-
fn:
|
|
775
|
+
fn: R((t) => [O(i.$slots, e, x(_(t)))])
|
|
776
776
|
}))]), 1032, ["spec", "id"]));
|
|
777
777
|
}
|
|
778
|
-
},
|
|
778
|
+
}, xt = {
|
|
779
779
|
key: 0,
|
|
780
780
|
class: "mwnf-standalone-item__top"
|
|
781
|
-
},
|
|
781
|
+
}, St = {
|
|
782
782
|
key: 1,
|
|
783
783
|
hidden: ""
|
|
784
|
-
},
|
|
784
|
+
}, Ct = {
|
|
785
785
|
key: 0,
|
|
786
786
|
class: "mwnf-standalone-item__back mwnf-standalone-partner__back"
|
|
787
|
-
},
|
|
787
|
+
}, wt = { class: "mwnf-standalone-partner__heading" }, Tt = ["dir", "innerHTML"], Et = {
|
|
788
788
|
key: 0,
|
|
789
789
|
class: "mwnf-standalone-partner__location"
|
|
790
|
-
},
|
|
790
|
+
}, Dt = { class: "mwnf-standalone-partner__bar" }, Ot = { class: "mwnf-standalone-partner__bar-start" }, kt = ["aria-label", "onKeydown"], At = [
|
|
791
791
|
"id",
|
|
792
792
|
"aria-selected",
|
|
793
793
|
"aria-controls",
|
|
794
794
|
"tabindex",
|
|
795
795
|
"onClick"
|
|
796
|
-
],
|
|
796
|
+
], jt = {
|
|
797
797
|
key: 0,
|
|
798
798
|
class: "mwnf-standalone-partner__divider",
|
|
799
799
|
"aria-hidden": "true"
|
|
800
|
-
},
|
|
800
|
+
}, Mt = { key: 0 }, Nt = ["href"], Pt = { class: "mwnf-standalone-partner__bar-end" }, Ft = { class: "mwnf-standalone-partner__body" }, It = { class: "mwnf-standalone-partner__pictures" }, Lt = { class: "mwnf-standalone-partner__panels" }, Rt = [
|
|
801
801
|
"id",
|
|
802
802
|
"aria-labelledby",
|
|
803
803
|
"dir",
|
|
804
804
|
"innerHTML"
|
|
805
|
-
],
|
|
805
|
+
], zt = ["id", "aria-labelledby"], Bt = ["innerHTML"], Vt = ["href"], Ht = { key: 0 }, Ut = ["href"], Wt = ["href"], Gt = ["id", "aria-labelledby"], Kt = ["src"], qt = {
|
|
806
806
|
key: 0,
|
|
807
807
|
class: "mwnf-standalone-partner__map"
|
|
808
|
-
},
|
|
808
|
+
}, Jt = { class: "mwnf-standalone-partner__map-heading" }, Yt = {
|
|
809
809
|
__name: "PartnerPage",
|
|
810
810
|
props: {
|
|
811
811
|
id: {
|
|
@@ -850,7 +850,7 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
850
850
|
}
|
|
851
851
|
},
|
|
852
852
|
setup(e) {
|
|
853
|
-
let a = e, { t: s, locale: m } =
|
|
853
|
+
let a = e, { t: s, locale: m } = Y(), _ = j(), v = {
|
|
854
854
|
entity: "partners",
|
|
855
855
|
fields: [],
|
|
856
856
|
shortDescription: !1,
|
|
@@ -867,42 +867,42 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
867
867
|
fax: "partner.info.fax",
|
|
868
868
|
map: "partner.map.map"
|
|
869
869
|
}, S = (e) => s(a.labels[e] ?? x[e]);
|
|
870
|
-
function
|
|
870
|
+
function C(e) {
|
|
871
871
|
return (typeof a.back == "function" ? a.back(e) ?? [] : a.back).map((e) => ({
|
|
872
872
|
...e,
|
|
873
873
|
label: s(e.label)
|
|
874
874
|
}));
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function T() {
|
|
877
877
|
window.history.back();
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function O(e, t, n) {
|
|
880
880
|
let r = [];
|
|
881
881
|
return a.about(t, n) && r.push("about"), e.hasContact && r.push("contact"), e.logos.length && r.push("logo"), r;
|
|
882
882
|
}
|
|
883
|
-
let M =
|
|
884
|
-
|
|
883
|
+
let M = E("about");
|
|
884
|
+
L(() => a.id, () => {
|
|
885
885
|
M.value = "about";
|
|
886
886
|
});
|
|
887
|
-
function
|
|
887
|
+
function N(e, t) {
|
|
888
888
|
let n = t.indexOf(M.value), r = {
|
|
889
889
|
ArrowRight: (n + 1) % t.length,
|
|
890
890
|
ArrowLeft: (n - 1 + t.length) % t.length,
|
|
891
891
|
Home: 0,
|
|
892
892
|
End: t.length - 1
|
|
893
893
|
}[e.key];
|
|
894
|
-
r === void 0 || !t.length || (e.preventDefault(), M.value = t[r],
|
|
894
|
+
r === void 0 || !t.length || (e.preventDefault(), M.value = t[r], y(() => document.getElementById(`${_}-tab-${t[r]}`)?.focus()));
|
|
895
895
|
}
|
|
896
|
-
let
|
|
896
|
+
let P = (e) => e.pictures.map((e) => ({
|
|
897
897
|
url: e.url,
|
|
898
898
|
alt: e.alt
|
|
899
|
-
})),
|
|
900
|
-
return (l, m) => (
|
|
901
|
-
spec:
|
|
899
|
+
})), F = (e) => [...e.contact.website ? [e.contact.website] : [], ...a.links ? e.contact.links : []], B = (e) => !!(e.contact.address || e.contact.phone || e.contact.fax || e.contact.email || e.contact.website), V = l(() => String(m.value || "en"));
|
|
900
|
+
return (l, m) => (w(), u(o, {
|
|
901
|
+
spec: v,
|
|
902
902
|
id: e.id,
|
|
903
903
|
class: "mwnf-standalone-partner"
|
|
904
904
|
}, {
|
|
905
|
-
header:
|
|
905
|
+
header: R(({ record: n, languages: r, language: i, select: o }) => [e.bands(n) ? (w(), f("div", xt, [g(t, {
|
|
906
906
|
languages: r.filter((e) => a.languages(n, e.code)),
|
|
907
907
|
language: i,
|
|
908
908
|
from: 1,
|
|
@@ -911,110 +911,110 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
911
911
|
"languages",
|
|
912
912
|
"language",
|
|
913
913
|
"onSelect"
|
|
914
|
-
])])) : (
|
|
915
|
-
"before-sheet":
|
|
916
|
-
|
|
914
|
+
])])) : (w(), f("div", St))]),
|
|
915
|
+
"before-sheet": R(({ record: t, text: i, dir: o }) => [(w(!0), f(c, null, D([a.view(t, i)], (a) => (w(), f(c, { key: t.id }, [
|
|
916
|
+
C(t).length ? (w(), f("p", Ct, [(w(!0), f(c, null, D(C(t), (e) => (w(), f(c, { key: e.label }, [e.history ? (w(), f("button", {
|
|
917
917
|
key: 0,
|
|
918
918
|
type: "button",
|
|
919
919
|
class: "mwnf-standalone-item__back-link",
|
|
920
|
-
onClick:
|
|
921
|
-
},
|
|
920
|
+
onClick: T
|
|
921
|
+
}, k(e.label), 1)) : (w(), u(n, {
|
|
922
922
|
key: 1,
|
|
923
923
|
class: "mwnf-standalone-item__back-link",
|
|
924
924
|
to: e.to,
|
|
925
925
|
href: e.href
|
|
926
926
|
}, {
|
|
927
|
-
default:
|
|
927
|
+
default: R(() => [h(k(e.label), 1)]),
|
|
928
928
|
_: 2
|
|
929
929
|
}, 1032, ["to", "href"]))], 64))), 128))])) : d("", !0),
|
|
930
|
-
p("div",
|
|
930
|
+
p("div", wt, [p("h3", {
|
|
931
931
|
class: "mwnf-standalone-partner__name",
|
|
932
932
|
dir: o || void 0,
|
|
933
933
|
innerHTML: a.name
|
|
934
|
-
}, null, 8,
|
|
935
|
-
p("div",
|
|
934
|
+
}, null, 8, Tt), a.location ? (w(), f("h4", Et, [p("i", null, k(a.location), 1)])) : d("", !0)]),
|
|
935
|
+
p("div", Dt, [p("div", Ot, [p("ul", {
|
|
936
936
|
role: "tablist",
|
|
937
937
|
class: "mwnf-standalone-partner__tabs",
|
|
938
938
|
"aria-label": a.plainName,
|
|
939
|
-
onKeydown: (e) =>
|
|
940
|
-
}, [(
|
|
939
|
+
onKeydown: (e) => N(e, O(a, t, i))
|
|
940
|
+
}, [(w(!0), f(c, null, D(O(a, t, i), (e, n) => (w(), f("li", {
|
|
941
941
|
key: e,
|
|
942
942
|
role: "presentation"
|
|
943
943
|
}, [p("button", {
|
|
944
|
-
id: `${
|
|
944
|
+
id: `${A(_)}-tab-${e}`,
|
|
945
945
|
type: "button",
|
|
946
946
|
role: "tab",
|
|
947
|
-
class:
|
|
947
|
+
class: b(["mwnf-standalone-partner__tab", { "mwnf-standalone-partner__tab--active": M.value === e }]),
|
|
948
948
|
"aria-selected": M.value === e ? "true" : "false",
|
|
949
|
-
"aria-controls": `${
|
|
949
|
+
"aria-controls": `${A(_)}-panel-${e}`,
|
|
950
950
|
tabindex: M.value === e ? 0 : -1,
|
|
951
951
|
onClick: (t) => M.value = e
|
|
952
|
-
}, "\xA0" +
|
|
952
|
+
}, "\xA0" + k(S(e)), 11, At), n < O(a, t, i).length - 1 || a.contact.website ? (w(), f("span", jt, "\xA0|")) : d("", !0)]))), 128)), a.contact.website ? (w(), f("li", Mt, [p("a", {
|
|
953
953
|
class: "mwnf-standalone-partner__homepage",
|
|
954
954
|
href: a.contact.website.url,
|
|
955
955
|
target: "_blank",
|
|
956
956
|
rel: "noopener"
|
|
957
|
-
}, "\xA0" +
|
|
957
|
+
}, "\xA0" + k(S("homepage")), 9, Nt)])) : d("", !0)], 40, kt)]), p("div", Pt, [e.items(t) ? (w(), u(n, {
|
|
958
958
|
key: 0,
|
|
959
959
|
class: "mwnf-standalone-partner__items",
|
|
960
960
|
to: e.items(t).to
|
|
961
961
|
}, {
|
|
962
|
-
default:
|
|
962
|
+
default: R(() => [h(k(A(s)(e.items(t).label)), 1)]),
|
|
963
963
|
_: 2
|
|
964
964
|
}, 1032, ["to"])) : d("", !0)])]),
|
|
965
|
-
p("div",
|
|
965
|
+
p("div", Ft, [p("div", It, [a.pictures.length ? (w(), u(r, {
|
|
966
966
|
key: 0,
|
|
967
|
-
images:
|
|
968
|
-
}, null, 8, ["images"])) : d("", !0)]), p("div",
|
|
969
|
-
|
|
970
|
-
id: `${
|
|
967
|
+
images: P(a)
|
|
968
|
+
}, null, 8, ["images"])) : d("", !0)]), p("div", Lt, [
|
|
969
|
+
z(p("div", {
|
|
970
|
+
id: `${A(_)}-panel-about`,
|
|
971
971
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__about",
|
|
972
972
|
role: "tabpanel",
|
|
973
|
-
"aria-labelledby": `${
|
|
973
|
+
"aria-labelledby": `${A(_)}-tab-about`,
|
|
974
974
|
dir: o || void 0,
|
|
975
975
|
innerHTML: a.description
|
|
976
|
-
}, null, 8,
|
|
977
|
-
a.hasContact ?
|
|
976
|
+
}, null, 8, Rt), [[I, M.value === "about"]]),
|
|
977
|
+
a.hasContact ? z((w(), f("div", {
|
|
978
978
|
key: 0,
|
|
979
|
-
id: `${
|
|
979
|
+
id: `${A(_)}-panel-contact`,
|
|
980
980
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__contact",
|
|
981
981
|
role: "tabpanel",
|
|
982
|
-
"aria-labelledby": `${
|
|
983
|
-
}, [B(a) ? (
|
|
984
|
-
p("b", null,
|
|
982
|
+
"aria-labelledby": `${A(_)}-tab-contact`
|
|
983
|
+
}, [B(a) ? (w(), f(c, { key: 0 }, [p("p", null, [
|
|
984
|
+
p("b", null, k(S("addresses")), 1),
|
|
985
985
|
m[4] ||= p("br", null, null, -1),
|
|
986
|
-
a.contact.address ? (
|
|
986
|
+
a.contact.address ? (w(), f(c, { key: 0 }, [p("span", {
|
|
987
987
|
class: "mwnf-standalone-partner__address",
|
|
988
988
|
innerHTML: a.contact.address
|
|
989
|
-
}, null, 8,
|
|
990
|
-
a.contact.phone ? (
|
|
991
|
-
a.contact.fax ? (
|
|
992
|
-
a.contact.email ? (
|
|
993
|
-
]),
|
|
989
|
+
}, null, 8, Bt), m[0] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
990
|
+
a.contact.phone ? (w(), f(c, { key: 1 }, [h(k(S("phone")) + " " + k(a.contact.phone), 1), m[1] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
991
|
+
a.contact.fax ? (w(), f(c, { key: 2 }, [h(k(S("fax")) + " " + k(a.contact.fax), 1), m[2] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
992
|
+
a.contact.email ? (w(), f(c, { key: 3 }, [p("a", { href: `mailto:${a.contact.email}` }, k(a.contact.email), 9, Vt), m[3] ||= p("br", null, null, -1)], 64)) : d("", !0)
|
|
993
|
+
]), F(a).length ? (w(), f("p", Ht, [(w(!0), f(c, null, D(F(a), (e, t) => (w(), f(c, { key: e.url }, [t ? (w(), f(c, { key: 0 }, [h("\xA0|\xA0")], 64)) : d("", !0), p("a", {
|
|
994
994
|
href: e.url,
|
|
995
995
|
target: "_blank",
|
|
996
996
|
rel: "noopener"
|
|
997
|
-
},
|
|
998
|
-
e.title ? (
|
|
999
|
-
e.name ? (
|
|
1000
|
-
e.phone ? (
|
|
1001
|
-
e.fax ? (
|
|
1002
|
-
e.email ? (
|
|
1003
|
-
]))), 128))], 8,
|
|
1004
|
-
a.logos.length ?
|
|
997
|
+
}, k(e.label), 9, Ut)], 64))), 128))])) : d("", !0)], 64)) : d("", !0), (w(!0), f(c, null, D(a.persons, (e, t) => (w(), f("p", { key: t }, [
|
|
998
|
+
e.title ? (w(), f(c, { key: 0 }, [p("strong", null, k(e.title), 1), m[5] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
999
|
+
e.name ? (w(), f(c, { key: 1 }, [h(k(e.name), 1), m[6] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1000
|
+
e.phone ? (w(), f(c, { key: 2 }, [h(k(S("phone")) + " " + k(e.phone), 1), m[7] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1001
|
+
e.fax ? (w(), f(c, { key: 3 }, [h(k(S("fax")) + " " + k(e.fax), 1), m[8] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
1002
|
+
e.email ? (w(), f(c, { key: 4 }, [p("a", { href: `mailto:${e.email}` }, k(e.email), 9, Wt), m[9] ||= p("br", null, null, -1)], 64)) : d("", !0)
|
|
1003
|
+
]))), 128))], 8, zt)), [[I, M.value === "contact"]]) : d("", !0),
|
|
1004
|
+
a.logos.length ? z((w(), f("div", {
|
|
1005
1005
|
key: 1,
|
|
1006
|
-
id: `${
|
|
1006
|
+
id: `${A(_)}-panel-logo`,
|
|
1007
1007
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__logos",
|
|
1008
1008
|
role: "tabpanel",
|
|
1009
|
-
"aria-labelledby": `${
|
|
1010
|
-
}, [(
|
|
1009
|
+
"aria-labelledby": `${A(_)}-tab-logo`
|
|
1010
|
+
}, [(w(!0), f(c, null, D(a.logos, (e) => (w(), f("img", {
|
|
1011
1011
|
key: e.url,
|
|
1012
1012
|
src: e.url,
|
|
1013
1013
|
alt: ""
|
|
1014
|
-
}, null, 8,
|
|
1014
|
+
}, null, 8, Kt))), 128))], 8, Gt)), [[I, M.value === "logo"]]) : d("", !0)
|
|
1015
1015
|
])])
|
|
1016
1016
|
], 64))), 128))]),
|
|
1017
|
-
after:
|
|
1017
|
+
after: R(({ record: t, text: n }) => [e.map(t) && a.view(t, n)?.map ? (w(), f("section", qt, [p("h3", Jt, k(S("map")), 1), g(i, {
|
|
1018
1018
|
provider: "google",
|
|
1019
1019
|
latitude: a.view(t, n).map.latitude,
|
|
1020
1020
|
longitude: a.view(t, n).map.longitude,
|
|
@@ -1031,13 +1031,13 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1031
1031
|
_: 1
|
|
1032
1032
|
}, 8, ["id"]));
|
|
1033
1033
|
}
|
|
1034
|
-
},
|
|
1034
|
+
}, Xt = ["innerHTML"], Zt = {
|
|
1035
1035
|
key: 0,
|
|
1036
1036
|
class: "mwnf-standalone-page__link"
|
|
1037
|
-
},
|
|
1037
|
+
}, Qt = {
|
|
1038
1038
|
key: 1,
|
|
1039
1039
|
class: "mwnf-standalone-page__print"
|
|
1040
|
-
},
|
|
1040
|
+
}, $t = {
|
|
1041
1041
|
__name: "TextPage",
|
|
1042
1042
|
props: {
|
|
1043
1043
|
body: {
|
|
@@ -1058,33 +1058,33 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1058
1058
|
}
|
|
1059
1059
|
},
|
|
1060
1060
|
setup(e) {
|
|
1061
|
-
let t = e, { t: r } =
|
|
1061
|
+
let t = e, { t: r } = Y(), i = l(() => G(r(t.body)));
|
|
1062
1062
|
function a() {
|
|
1063
1063
|
window.print();
|
|
1064
1064
|
}
|
|
1065
|
-
return (t, o) => (
|
|
1065
|
+
return (t, o) => (w(), f("article", { class: b(["mwnf-standalone-page", { "mwnf-standalone-page--drop-cap": e.dropCap }]) }, [
|
|
1066
1066
|
p("div", {
|
|
1067
1067
|
class: "mwnf-standalone-page__body",
|
|
1068
1068
|
innerHTML: i.value
|
|
1069
|
-
}, null, 8,
|
|
1070
|
-
e.link ? (
|
|
1069
|
+
}, null, 8, Xt),
|
|
1070
|
+
e.link ? (w(), f("p", Zt, [g(n, {
|
|
1071
1071
|
to: e.link.to,
|
|
1072
1072
|
href: e.link.href
|
|
1073
1073
|
}, {
|
|
1074
|
-
default:
|
|
1074
|
+
default: R(() => [p("strong", null, k(e.link.text ?? A(r)(e.link.label)), 1)]),
|
|
1075
1075
|
_: 1
|
|
1076
1076
|
}, 8, ["to", "href"])])) : d("", !0),
|
|
1077
|
-
e.print ? (
|
|
1077
|
+
e.print ? (w(), f("p", Qt, [p("button", {
|
|
1078
1078
|
type: "button",
|
|
1079
1079
|
class: "mwnf-standalone-page__print-button",
|
|
1080
1080
|
onClick: a
|
|
1081
|
-
},
|
|
1081
|
+
}, k(A(r)(e.print)), 1)])) : d("", !0)
|
|
1082
1082
|
], 2));
|
|
1083
1083
|
}
|
|
1084
|
-
},
|
|
1084
|
+
}, en = {
|
|
1085
1085
|
key: 0,
|
|
1086
1086
|
class: "mwnf-standalone-subnav"
|
|
1087
|
-
},
|
|
1087
|
+
}, tn = { class: "mwnf-standalone-subnav__tabs" }, nn = {
|
|
1088
1088
|
__name: "SubNav",
|
|
1089
1089
|
props: {
|
|
1090
1090
|
tabs: {
|
|
@@ -1097,40 +1097,40 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1097
1097
|
}
|
|
1098
1098
|
},
|
|
1099
1099
|
setup(e) {
|
|
1100
|
-
let t = e, { t: r } =
|
|
1100
|
+
let t = e, { t: r } = Y(), i = l(() => t.tabs.map((e) => ({
|
|
1101
1101
|
...e,
|
|
1102
1102
|
label: r(e.label)
|
|
1103
1103
|
})));
|
|
1104
|
-
return (t, a) => i.value.length || e.aside ? (
|
|
1104
|
+
return (t, a) => i.value.length || e.aside ? (w(), f("nav", en, [p("ul", tn, [(w(!0), f(c, null, D(i.value, (e) => (w(), f("li", { key: e.label }, [g(n, {
|
|
1105
1105
|
to: e.to,
|
|
1106
1106
|
href: e.href,
|
|
1107
|
-
class:
|
|
1107
|
+
class: b(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
|
|
1108
1108
|
"aria-current": e.active ? "page" : void 0
|
|
1109
1109
|
}, {
|
|
1110
|
-
default:
|
|
1110
|
+
default: R(() => [h(k(e.label), 1)]),
|
|
1111
1111
|
_: 2
|
|
1112
1112
|
}, 1032, [
|
|
1113
1113
|
"to",
|
|
1114
1114
|
"href",
|
|
1115
1115
|
"class",
|
|
1116
1116
|
"aria-current"
|
|
1117
|
-
])]))), 128))]), e.aside ? (
|
|
1117
|
+
])]))), 128))]), e.aside ? (w(), u(n, {
|
|
1118
1118
|
key: 0,
|
|
1119
1119
|
to: e.aside.to,
|
|
1120
1120
|
href: e.aside.href,
|
|
1121
1121
|
class: "mwnf-standalone-subnav__aside"
|
|
1122
1122
|
}, {
|
|
1123
|
-
default:
|
|
1123
|
+
default: R(() => [h(k(A(r)(e.aside.label)), 1)]),
|
|
1124
1124
|
_: 1
|
|
1125
1125
|
}, 8, ["to", "href"])) : d("", !0)])) : d("", !0);
|
|
1126
1126
|
}
|
|
1127
|
-
},
|
|
1127
|
+
}, rn = { class: "mwnf-standalone-results" }, an = {
|
|
1128
1128
|
key: 0,
|
|
1129
1129
|
class: "mwnf-standalone-results__empty"
|
|
1130
|
-
},
|
|
1130
|
+
}, on = { class: "mwnf-standalone-results__tile" }, sn = ["src"], cn = { class: "mwnf-standalone-results__panel" }, ln = ["src"], un = { class: "mwnf-standalone-results__name" }, dn = ["innerHTML"], fn = ["innerHTML"], pn = {
|
|
1131
1131
|
key: 0,
|
|
1132
1132
|
class: "mwnf-standalone-results__holder"
|
|
1133
|
-
},
|
|
1133
|
+
}, mn = ["innerHTML"], hn = ["innerHTML"], gn = {
|
|
1134
1134
|
__name: "ResultsGrid",
|
|
1135
1135
|
props: {
|
|
1136
1136
|
rows: {
|
|
@@ -1151,64 +1151,64 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1151
1151
|
}
|
|
1152
1152
|
},
|
|
1153
1153
|
setup(e) {
|
|
1154
|
-
return (t, r) => (
|
|
1154
|
+
return (t, r) => (w(), f("div", rn, [e.rows.length ? d("", !0) : (w(), f("p", an, k(e.empty), 1)), (w(!0), f(c, null, D(e.rows, (t) => (w(), f("div", {
|
|
1155
1155
|
key: t.id,
|
|
1156
1156
|
class: "mwnf-standalone-results__cell"
|
|
1157
|
-
}, [p("div",
|
|
1157
|
+
}, [p("div", on, [g(n, {
|
|
1158
1158
|
class: "mwnf-standalone-results__frame",
|
|
1159
1159
|
to: t.to,
|
|
1160
1160
|
href: t.href
|
|
1161
1161
|
}, {
|
|
1162
|
-
default:
|
|
1162
|
+
default: R(() => [p("img", {
|
|
1163
1163
|
src: t.image || e.noImage,
|
|
1164
1164
|
alt: ""
|
|
1165
|
-
}, null, 8,
|
|
1165
|
+
}, null, 8, sn)]),
|
|
1166
1166
|
_: 2
|
|
1167
|
-
}, 1032, ["to", "href"]), p("div",
|
|
1167
|
+
}, 1032, ["to", "href"]), p("div", cn, [
|
|
1168
1168
|
g(n, {
|
|
1169
1169
|
class: "mwnf-standalone-results__panel-frame",
|
|
1170
1170
|
to: t.to,
|
|
1171
1171
|
href: t.href
|
|
1172
1172
|
}, {
|
|
1173
|
-
default:
|
|
1173
|
+
default: R(() => [p("img", {
|
|
1174
1174
|
src: t.image || e.noImage,
|
|
1175
1175
|
alt: ""
|
|
1176
|
-
}, null, 8,
|
|
1176
|
+
}, null, 8, ln)]),
|
|
1177
1177
|
_: 2
|
|
1178
1178
|
}, 1032, ["to", "href"]),
|
|
1179
|
-
p("p",
|
|
1179
|
+
p("p", un, [p("strong", null, [g(n, {
|
|
1180
1180
|
to: t.to,
|
|
1181
1181
|
href: t.href
|
|
1182
1182
|
}, {
|
|
1183
|
-
default:
|
|
1183
|
+
default: R(() => [p("span", { innerHTML: t.name }, null, 8, dn)]),
|
|
1184
1184
|
_: 2
|
|
1185
1185
|
}, 1032, ["to", "href"])])]),
|
|
1186
|
-
(
|
|
1186
|
+
(w(!0), f(c, null, D(t.lines ?? [], (e, t) => (w(), f("p", {
|
|
1187
1187
|
key: t,
|
|
1188
1188
|
innerHTML: e
|
|
1189
|
-
}, null, 8,
|
|
1190
|
-
t.holder ? (
|
|
1191
|
-
t.location ? (
|
|
1189
|
+
}, null, 8, fn))), 128)),
|
|
1190
|
+
t.holder ? (w(), f("p", pn, [p("strong", { innerHTML: t.holder }, null, 8, mn)])) : d("", !0),
|
|
1191
|
+
t.location ? (w(), f("p", {
|
|
1192
1192
|
key: 1,
|
|
1193
1193
|
innerHTML: t.location
|
|
1194
|
-
}, null, 8,
|
|
1194
|
+
}, null, 8, hn)) : d("", !0),
|
|
1195
1195
|
p("p", null, [g(n, {
|
|
1196
1196
|
class: "mwnf-standalone-results__see",
|
|
1197
1197
|
to: t.to,
|
|
1198
1198
|
href: t.href
|
|
1199
1199
|
}, {
|
|
1200
|
-
default:
|
|
1200
|
+
default: R(() => [h(k(e.seeLabel), 1)]),
|
|
1201
1201
|
_: 1
|
|
1202
1202
|
}, 8, ["to", "href"])])
|
|
1203
1203
|
])])]))), 128))]));
|
|
1204
1204
|
}
|
|
1205
|
-
},
|
|
1205
|
+
}, _n = { class: "mwnf-standalone-list" }, vn = { class: "mwnf-standalone-list__aside" }, yn = {
|
|
1206
1206
|
key: 0,
|
|
1207
1207
|
class: "mwnf-standalone-list__preview"
|
|
1208
|
-
},
|
|
1208
|
+
}, bn = { class: "mwnf-standalone-list__preview-picture" }, xn = ["src"], Sn = { class: "mwnf-standalone-list__preview-name" }, Cn = ["innerHTML"], wn = ["innerHTML"], Tn = { key: 0 }, En = ["innerHTML"], Dn = ["innerHTML"], On = { class: "mwnf-standalone-list__records" }, kn = {
|
|
1209
1209
|
key: 0,
|
|
1210
1210
|
class: "mwnf-standalone-list__empty"
|
|
1211
|
-
},
|
|
1211
|
+
}, An = { class: "mwnf-standalone-list__frame" }, jn = ["src"], Mn = { class: "mwnf-standalone-list__content" }, Nn = ["innerHTML"], Pn = ["innerHTML"], Fn = { key: 0 }, In = ["innerHTML"], Ln = {
|
|
1212
1212
|
__name: "ResultsList",
|
|
1213
1213
|
props: {
|
|
1214
1214
|
rows: {
|
|
@@ -1225,73 +1225,73 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1225
1225
|
}
|
|
1226
1226
|
},
|
|
1227
1227
|
setup(e) {
|
|
1228
|
-
let t = e, r =
|
|
1229
|
-
return (t, a) => (
|
|
1230
|
-
p("div",
|
|
1228
|
+
let t = e, r = E(null), i = l(() => r.value ?? t.rows[0] ?? null);
|
|
1229
|
+
return (t, a) => (w(), f("div", _n, [p("div", vn, [i.value ? (w(), f("div", yn, [
|
|
1230
|
+
p("div", bn, [i.value.image || e.noImage ? (w(), f("img", {
|
|
1231
1231
|
key: 0,
|
|
1232
1232
|
src: i.value.image || e.noImage,
|
|
1233
1233
|
alt: ""
|
|
1234
|
-
}, null, 8,
|
|
1235
|
-
p("p",
|
|
1236
|
-
(
|
|
1234
|
+
}, null, 8, xn)) : d("", !0)]),
|
|
1235
|
+
p("p", Sn, [p("strong", { innerHTML: i.value.name }, null, 8, Cn)]),
|
|
1236
|
+
(w(!0), f(c, null, D(i.value.preview?.lines ?? [], (e, t) => (w(), f("p", {
|
|
1237
1237
|
key: t,
|
|
1238
1238
|
innerHTML: e
|
|
1239
|
-
}, null, 8,
|
|
1240
|
-
i.value.preview?.holder ? (
|
|
1241
|
-
i.value.preview?.location ? (
|
|
1239
|
+
}, null, 8, wn))), 128)),
|
|
1240
|
+
i.value.preview?.holder ? (w(), f("p", Tn, [p("strong", { innerHTML: i.value.preview.holder }, null, 8, En)])) : d("", !0),
|
|
1241
|
+
i.value.preview?.location ? (w(), f("p", {
|
|
1242
1242
|
key: 1,
|
|
1243
1243
|
innerHTML: i.value.preview.location
|
|
1244
|
-
}, null, 8,
|
|
1245
|
-
])) : d("", !0)]), p("div",
|
|
1244
|
+
}, null, 8, Dn)) : d("", !0)
|
|
1245
|
+
])) : d("", !0)]), p("div", On, [e.rows.length ? d("", !0) : (w(), f("p", kn, k(e.empty), 1)), (w(!0), f(c, null, D(e.rows, (t) => (w(), f("div", {
|
|
1246
1246
|
key: t.id,
|
|
1247
1247
|
class: "mwnf-standalone-list__cell"
|
|
1248
|
-
}, [p("div",
|
|
1248
|
+
}, [p("div", An, [g(n, {
|
|
1249
1249
|
to: t.to,
|
|
1250
1250
|
href: t.href,
|
|
1251
1251
|
onMouseenter: (e) => r.value = t,
|
|
1252
1252
|
onMouseleave: a[0] ||= (e) => r.value = null
|
|
1253
1253
|
}, {
|
|
1254
|
-
default:
|
|
1254
|
+
default: R(() => [t.image || e.noImage ? (w(), f("img", {
|
|
1255
1255
|
key: 0,
|
|
1256
1256
|
src: t.image || e.noImage,
|
|
1257
1257
|
alt: ""
|
|
1258
|
-
}, null, 8,
|
|
1258
|
+
}, null, 8, jn)) : d("", !0)]),
|
|
1259
1259
|
_: 2
|
|
1260
1260
|
}, 1032, [
|
|
1261
1261
|
"to",
|
|
1262
1262
|
"href",
|
|
1263
1263
|
"onMouseenter"
|
|
1264
|
-
])]), p("div",
|
|
1264
|
+
])]), p("div", Mn, [p("p", null, [g(n, {
|
|
1265
1265
|
to: t.to,
|
|
1266
1266
|
href: t.href,
|
|
1267
1267
|
onMouseenter: (e) => r.value = t,
|
|
1268
1268
|
onMouseleave: a[1] ||= (e) => r.value = null
|
|
1269
1269
|
}, {
|
|
1270
|
-
default:
|
|
1270
|
+
default: R(() => [
|
|
1271
1271
|
p("span", {
|
|
1272
1272
|
class: "mwnf-standalone-list__name",
|
|
1273
1273
|
innerHTML: `${t.name},`
|
|
1274
|
-
}, null, 8,
|
|
1274
|
+
}, null, 8, Nn),
|
|
1275
1275
|
a[2] ||= h(),
|
|
1276
|
-
p("span", { innerHTML: t.place }, null, 8,
|
|
1276
|
+
p("span", { innerHTML: t.place }, null, 8, Pn)
|
|
1277
1277
|
]),
|
|
1278
1278
|
_: 2
|
|
1279
1279
|
}, 1032, [
|
|
1280
1280
|
"to",
|
|
1281
1281
|
"href",
|
|
1282
1282
|
"onMouseenter"
|
|
1283
|
-
])]), t.dates ? (
|
|
1283
|
+
])]), t.dates ? (w(), f("div", Fn, [p("i", { innerHTML: t.dates }, null, 8, In)])) : d("", !0)])]))), 128))])]));
|
|
1284
1284
|
}
|
|
1285
|
-
},
|
|
1285
|
+
}, Rn = { class: "mwnf-standalone-refine__row" }, zn = {
|
|
1286
1286
|
class: "mwnf-standalone-refine__label",
|
|
1287
1287
|
for: "mwnf-standalone-refine-keyword"
|
|
1288
|
-
},
|
|
1288
|
+
}, Bn = {
|
|
1289
1289
|
class: "mwnf-standalone-refine__label",
|
|
1290
1290
|
for: "mwnf-standalone-refine-field"
|
|
1291
|
-
},
|
|
1291
|
+
}, Vn = ["value"], Hn = {
|
|
1292
1292
|
type: "submit",
|
|
1293
1293
|
class: "mwnf-standalone-refine__button"
|
|
1294
|
-
},
|
|
1294
|
+
}, Un = {
|
|
1295
1295
|
__name: "Refine",
|
|
1296
1296
|
props: {
|
|
1297
1297
|
label: {
|
|
@@ -1321,7 +1321,7 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1321
1321
|
},
|
|
1322
1322
|
emits: ["search"],
|
|
1323
1323
|
setup(e, { emit: t }) {
|
|
1324
|
-
let r = e, i = t, a =
|
|
1324
|
+
let r = e, i = t, a = E(""), o = E(r.fields[0]?.value ?? "");
|
|
1325
1325
|
function s() {
|
|
1326
1326
|
let e = a.value.trim();
|
|
1327
1327
|
e && i("search", {
|
|
@@ -1329,39 +1329,39 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1329
1329
|
field: o.value
|
|
1330
1330
|
});
|
|
1331
1331
|
}
|
|
1332
|
-
return (t, r) => (
|
|
1332
|
+
return (t, r) => (w(), f("form", {
|
|
1333
1333
|
class: "mwnf-standalone-refine",
|
|
1334
|
-
onSubmit:
|
|
1335
|
-
}, [p("div",
|
|
1336
|
-
p("label",
|
|
1337
|
-
|
|
1334
|
+
onSubmit: B(s, ["prevent"])
|
|
1335
|
+
}, [p("div", Rn, [
|
|
1336
|
+
p("label", zn, k(e.label), 1),
|
|
1337
|
+
z(p("input", {
|
|
1338
1338
|
id: "mwnf-standalone-refine-keyword",
|
|
1339
1339
|
"onUpdate:modelValue": r[0] ||= (e) => a.value = e,
|
|
1340
1340
|
type: "text",
|
|
1341
1341
|
size: "40"
|
|
1342
|
-
}, null, 512), [[
|
|
1343
|
-
p("label",
|
|
1344
|
-
|
|
1342
|
+
}, null, 512), [[F, a.value]]),
|
|
1343
|
+
p("label", Bn, k(e.inLabel), 1),
|
|
1344
|
+
z(p("select", {
|
|
1345
1345
|
id: "mwnf-standalone-refine-field",
|
|
1346
1346
|
"onUpdate:modelValue": r[1] ||= (e) => o.value = e
|
|
1347
|
-
}, [(
|
|
1347
|
+
}, [(w(!0), f(c, null, D(e.fields, (e) => (w(), f("option", {
|
|
1348
1348
|
key: e.value,
|
|
1349
1349
|
value: e.value
|
|
1350
|
-
},
|
|
1351
|
-
p("button",
|
|
1350
|
+
}, k(e.label), 9, Vn))), 128))], 512), [[P, o.value]]),
|
|
1351
|
+
p("button", Hn, k(e.searchLabel), 1),
|
|
1352
1352
|
g(n, {
|
|
1353
1353
|
class: "mwnf-standalone-refine__button mwnf-standalone-refine__button--new",
|
|
1354
1354
|
to: e.newSearch
|
|
1355
1355
|
}, {
|
|
1356
|
-
default:
|
|
1356
|
+
default: R(() => [h(k(e.newSearchLabel), 1)]),
|
|
1357
1357
|
_: 1
|
|
1358
1358
|
}, 8, ["to"])
|
|
1359
1359
|
])], 32));
|
|
1360
1360
|
}
|
|
1361
|
-
},
|
|
1361
|
+
}, Wn = { class: "mwnf-standalone-item__back mwnf-standalone-pl__back" }, Gn = { class: "mwnf-standalone-pl__heads" }, Kn = { class: "mwnf-standalone-pl__head" }, qn = { key: 0 }, Jn = ["onClick"], Yn = { class: "mwnf-standalone-pl__row" }, Xn = { class: "mwnf-standalone-pl__main" }, Zn = { class: "mwnf-standalone-pl__associated" }, Qn = {
|
|
1362
1362
|
key: 0,
|
|
1363
1363
|
class: "mwnf-standalone-pl__none"
|
|
1364
|
-
},
|
|
1364
|
+
}, $n = {
|
|
1365
1365
|
__name: "PartnerList",
|
|
1366
1366
|
props: {
|
|
1367
1367
|
type: {
|
|
@@ -1390,56 +1390,258 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1390
1390
|
}
|
|
1391
1391
|
},
|
|
1392
1392
|
setup(e) {
|
|
1393
|
-
let t = e, r = l(() => t.type === "museum"), i =
|
|
1394
|
-
|
|
1393
|
+
let t = e, r = l(() => t.type === "museum"), i = E(null), a = E(/* @__PURE__ */ new Set());
|
|
1394
|
+
L([r, () => t.groups.length], () => {
|
|
1395
1395
|
i.value = r.value ? null : 0, a.value = r.value ? /* @__PURE__ */ new Set() : new Set(t.groups.map((e, t) => t));
|
|
1396
1396
|
}, { immediate: !0 });
|
|
1397
1397
|
function o(e) {
|
|
1398
1398
|
let t = i.value === e;
|
|
1399
1399
|
i.value = t ? null : e, a.value = t ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([e]);
|
|
1400
1400
|
}
|
|
1401
|
-
return (t, s) => (
|
|
1402
|
-
p("p",
|
|
1401
|
+
return (t, s) => (w(), f("div", { class: b(["mwnf-standalone-pl", r.value ? "mwnf-standalone-pl--museums" : "mwnf-standalone-pl--institutions"]) }, [
|
|
1402
|
+
p("p", Wn, [(w(!0), f(c, null, D(e.back, (e) => (w(), f(c, { key: e.label }, [e.history ? (w(), f("button", {
|
|
1403
1403
|
key: 0,
|
|
1404
1404
|
type: "button",
|
|
1405
1405
|
class: "mwnf-standalone-item__back-link",
|
|
1406
1406
|
onClick: s[0] ||= (e) => t.$router.back()
|
|
1407
|
-
},
|
|
1407
|
+
}, k(e.label), 1)) : (w(), u(n, {
|
|
1408
1408
|
key: 1,
|
|
1409
1409
|
class: "mwnf-standalone-item__back-link",
|
|
1410
1410
|
to: e.to,
|
|
1411
1411
|
href: e.href
|
|
1412
1412
|
}, {
|
|
1413
|
-
default:
|
|
1413
|
+
default: R(() => [h(k(e.label), 1)]),
|
|
1414
1414
|
_: 2
|
|
1415
|
-
}, 1032, ["to", "href"]))], 64))), 128)),
|
|
1416
|
-
p("div",
|
|
1417
|
-
(
|
|
1415
|
+
}, 1032, ["to", "href"]))], 64))), 128)), O(t.$slots, "back")]),
|
|
1416
|
+
p("div", Gn, [(w(!0), f(c, null, D(e.heads, (e) => (w(), f("h3", { key: e }, k(e), 1))), 128))]),
|
|
1417
|
+
(w(!0), f(c, null, D(e.groups, (t, s) => (w(), f("div", {
|
|
1418
1418
|
key: t.label,
|
|
1419
1419
|
class: "mwnf-standalone-pl__group"
|
|
1420
|
-
}, [p("div",
|
|
1420
|
+
}, [p("div", Kn, [r.value ? (w(), f("h3", qn, k(t.label), 1)) : d("", !0), p("h3", null, [p("a", {
|
|
1421
1421
|
href: "#",
|
|
1422
|
-
class:
|
|
1423
|
-
onClick:
|
|
1424
|
-
},
|
|
1422
|
+
class: b(["mwnf-standalone-pl__toggle", { "mwnf-standalone-pl__toggle--active": i.value === s }]),
|
|
1423
|
+
onClick: B((e) => o(s), ["prevent"])
|
|
1424
|
+
}, k(r.value ? e.seeAssociated : t.label), 11, Jn)])]), z(p("div", Yn, [p("div", Xn, [(w(!0), f(c, null, D(t.main, (e) => (w(), f("p", { key: e.id }, [g(n, {
|
|
1425
1425
|
to: e.to,
|
|
1426
1426
|
href: e.href
|
|
1427
1427
|
}, {
|
|
1428
|
-
default:
|
|
1428
|
+
default: R(() => [h(k(e.label), 1)]),
|
|
1429
1429
|
_: 2
|
|
1430
|
-
}, 1032, ["to", "href"])]))), 128))]),
|
|
1430
|
+
}, 1032, ["to", "href"])]))), 128))]), z(p("div", Zn, [(w(!0), f(c, null, D(t.associated, (e) => (w(), f("p", { key: e.id }, [g(n, {
|
|
1431
1431
|
to: e.to,
|
|
1432
1432
|
href: e.href
|
|
1433
1433
|
}, {
|
|
1434
|
-
default:
|
|
1434
|
+
default: R(() => [h(k(e.label), 1)]),
|
|
1435
1435
|
_: 2
|
|
1436
|
-
}, 1032, ["to", "href"])]))), 128)), r.value && !t.associated.length ? (
|
|
1436
|
+
}, 1032, ["to", "href"])]))), 128)), r.value && !t.associated.length ? (w(), f("p", Qn, k(e.noAssociated), 1)) : d("", !0)], 512), [[I, !r.value || a.value.has(s)]])], 512), [[I, r.value || a.value.has(s)]])]))), 128))
|
|
1437
1437
|
], 2));
|
|
1438
1438
|
}
|
|
1439
|
-
},
|
|
1439
|
+
}, er = { class: "mwnf-standalone-item__back mwnf-standalone-sp__back" }, tr = {
|
|
1440
|
+
key: 0,
|
|
1441
|
+
class: "mwnf-standalone-sp__heading"
|
|
1442
|
+
}, nr = ["innerHTML"], rr = { class: "mwnf-standalone-sp__text" }, ir = { key: 0 }, ar = { key: 1 }, or = { key: 2 }, sr = ["href"], cr = ["innerHTML"], lr = { class: "mwnf-standalone-sp__logo" }, ur = { key: 0 }, dr = ["src", "alt"], fr = {
|
|
1443
|
+
__name: "SponsorList",
|
|
1444
|
+
props: {
|
|
1445
|
+
heading: {
|
|
1446
|
+
type: String,
|
|
1447
|
+
default: ""
|
|
1448
|
+
},
|
|
1449
|
+
rows: {
|
|
1450
|
+
type: Array,
|
|
1451
|
+
default: () => []
|
|
1452
|
+
},
|
|
1453
|
+
back: {
|
|
1454
|
+
type: Array,
|
|
1455
|
+
default: () => []
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
setup(e) {
|
|
1459
|
+
let t = e, r = l(() => t.rows.some((e) => e.label !== void 0)), i = l(() => t.rows.map((e) => ({
|
|
1460
|
+
...e,
|
|
1461
|
+
labelHtml: e.label ? W(e.label) : "",
|
|
1462
|
+
remarksHtml: e.remarks ? W(e.remarks) : ""
|
|
1463
|
+
})));
|
|
1464
|
+
return (t, a) => (w(), f("div", { class: b(["mwnf-standalone-sp", { "mwnf-standalone-sp--labels": r.value }]) }, [
|
|
1465
|
+
p("p", er, [(w(!0), f(c, null, D(e.back, (e) => (w(), f(c, { key: e.label }, [e.history ? (w(), f("button", {
|
|
1466
|
+
key: 0,
|
|
1467
|
+
type: "button",
|
|
1468
|
+
class: "mwnf-standalone-item__back-link",
|
|
1469
|
+
onClick: a[0] ||= (e) => t.$router.back()
|
|
1470
|
+
}, k(e.label), 1)) : (w(), u(n, {
|
|
1471
|
+
key: 1,
|
|
1472
|
+
class: "mwnf-standalone-item__back-link",
|
|
1473
|
+
to: e.to,
|
|
1474
|
+
href: e.href
|
|
1475
|
+
}, {
|
|
1476
|
+
default: R(() => [h(k(e.label), 1)]),
|
|
1477
|
+
_: 2
|
|
1478
|
+
}, 1032, ["to", "href"]))], 64))), 128))]),
|
|
1479
|
+
e.heading ? (w(), f("h3", tr, k(e.heading), 1)) : d("", !0),
|
|
1480
|
+
(w(!0), f(c, null, D(i.value, (e, t) => (w(), f("div", {
|
|
1481
|
+
key: t,
|
|
1482
|
+
class: "mwnf-standalone-sp__row"
|
|
1483
|
+
}, [
|
|
1484
|
+
r.value ? (w(), f("div", {
|
|
1485
|
+
key: 0,
|
|
1486
|
+
class: "mwnf-standalone-sp__label",
|
|
1487
|
+
innerHTML: e.labelHtml
|
|
1488
|
+
}, null, 8, nr)) : d("", !0),
|
|
1489
|
+
p("div", rr, [
|
|
1490
|
+
e.region ? (w(), f("p", ir, k(e.region), 1)) : d("", !0),
|
|
1491
|
+
e.name ? (w(), f("p", ar, k(e.name), 1)) : d("", !0),
|
|
1492
|
+
e.web ? (w(), f("p", or, [p("a", {
|
|
1493
|
+
href: `http://${e.web}`,
|
|
1494
|
+
target: "_blank",
|
|
1495
|
+
rel: "noopener"
|
|
1496
|
+
}, k(e.web), 9, sr)])) : d("", !0),
|
|
1497
|
+
e.remarksHtml ? (w(), f("div", {
|
|
1498
|
+
key: 3,
|
|
1499
|
+
class: "mwnf-standalone-sp__remarks",
|
|
1500
|
+
innerHTML: e.remarksHtml
|
|
1501
|
+
}, null, 8, cr)) : d("", !0)
|
|
1502
|
+
]),
|
|
1503
|
+
p("div", lr, [e.logo ? (w(), f("p", ur, [p("img", {
|
|
1504
|
+
src: e.logo,
|
|
1505
|
+
alt: e.name
|
|
1506
|
+
}, null, 8, dr)])) : d("", !0)])
|
|
1507
|
+
]))), 128))
|
|
1508
|
+
], 2));
|
|
1509
|
+
}
|
|
1510
|
+
}, pr = { class: "mwnf-standalone-db__criteria" }, mr = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--keywords" }, hr = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--category" }, gr = {
|
|
1511
|
+
key: 0,
|
|
1512
|
+
class: "mwnf-standalone-db__aside"
|
|
1513
|
+
}, _r = ["onUpdate:modelValue", "aria-label"], vr = { value: "AND" }, yr = { value: "OR" }, br = ["onUpdate:modelValue", "aria-label"], xr = ["onUpdate:modelValue"], Sr = ["value"], Cr = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--date" }, wr = { class: "mwnf-standalone-db__dates" }, Tr = ["aria-label"], Er = { value: "" }, Dr = ["value"], Or = ["aria-label"], kr = { value: "" }, Ar = ["value"], jr = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--language" }, Mr = { class: "mwnf-standalone-db__language" }, Nr = ["aria-label"], Pr = ["value"], Fr = {
|
|
1514
|
+
key: 1,
|
|
1515
|
+
class: "mwnf-standalone-db__options"
|
|
1516
|
+
}, Ir = { class: "mwnf-standalone-db__go" }, Lr = { type: "submit" }, Rr = {
|
|
1517
|
+
key: 2,
|
|
1518
|
+
class: "mwnf-standalone-db__listing"
|
|
1519
|
+
}, zr = ["href", "title"], Br = {
|
|
1520
|
+
__name: "DatabaseForm",
|
|
1521
|
+
props: /*@__PURE__*/ v({
|
|
1522
|
+
labels: {
|
|
1523
|
+
type: Object,
|
|
1524
|
+
required: !0
|
|
1525
|
+
},
|
|
1526
|
+
fields: {
|
|
1527
|
+
type: Array,
|
|
1528
|
+
default: () => []
|
|
1529
|
+
},
|
|
1530
|
+
fromYears: {
|
|
1531
|
+
type: Array,
|
|
1532
|
+
default: () => []
|
|
1533
|
+
},
|
|
1534
|
+
toYears: {
|
|
1535
|
+
type: Array,
|
|
1536
|
+
default: () => []
|
|
1537
|
+
},
|
|
1538
|
+
languages: {
|
|
1539
|
+
type: Array,
|
|
1540
|
+
default: () => []
|
|
1541
|
+
},
|
|
1542
|
+
listingHref: {
|
|
1543
|
+
type: String,
|
|
1544
|
+
default: ""
|
|
1545
|
+
}
|
|
1546
|
+
}, {
|
|
1547
|
+
language: {
|
|
1548
|
+
type: String,
|
|
1549
|
+
default: ""
|
|
1550
|
+
},
|
|
1551
|
+
languageModifiers: {}
|
|
1552
|
+
}),
|
|
1553
|
+
emits: /*@__PURE__*/ v(["search"], ["update:language"]),
|
|
1554
|
+
setup(e, { emit: t }) {
|
|
1555
|
+
let n = e, r = M(e, "language"), i = t, a = N(), o = T([
|
|
1556
|
+
{
|
|
1557
|
+
keyword: "",
|
|
1558
|
+
field: n.fields[0]?.value ?? "",
|
|
1559
|
+
cond: "AND"
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
keyword: "",
|
|
1563
|
+
field: n.fields[0]?.value ?? "",
|
|
1564
|
+
cond: "AND"
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
keyword: "",
|
|
1568
|
+
field: n.fields[0]?.value ?? "",
|
|
1569
|
+
cond: "AND"
|
|
1570
|
+
}
|
|
1571
|
+
]), s = T({
|
|
1572
|
+
from: "",
|
|
1573
|
+
to: ""
|
|
1574
|
+
}), u = l(() => !!a.options);
|
|
1575
|
+
function m() {
|
|
1576
|
+
i("search", {
|
|
1577
|
+
rows: o.map((e) => ({
|
|
1578
|
+
...e,
|
|
1579
|
+
keyword: e.keyword.trim()
|
|
1580
|
+
})),
|
|
1581
|
+
from: s.from,
|
|
1582
|
+
to: s.to
|
|
1583
|
+
});
|
|
1584
|
+
}
|
|
1585
|
+
return (t, n) => (w(), f("form", {
|
|
1586
|
+
class: b(["mwnf-standalone-db", { "mwnf-standalone-db--options": u.value }]),
|
|
1587
|
+
onSubmit: B(m, ["prevent"])
|
|
1588
|
+
}, [
|
|
1589
|
+
p("h3", pr, k(e.labels.criteria), 1),
|
|
1590
|
+
p("p", mr, k(e.labels.keywords), 1),
|
|
1591
|
+
p("p", hr, k(e.labels.category), 1),
|
|
1592
|
+
t.$slots.aside ? (w(), f("p", gr, [O(t.$slots, "aside")])) : d("", !0),
|
|
1593
|
+
(w(!0), f(c, null, D(o, (t, n) => (w(), f(c, { key: n }, [
|
|
1594
|
+
n ? z((w(), f("select", {
|
|
1595
|
+
key: 0,
|
|
1596
|
+
"onUpdate:modelValue": (e) => t.cond = e,
|
|
1597
|
+
class: b(["mwnf-standalone-db__cond", `mwnf-standalone-db__row-${n + 1}`]),
|
|
1598
|
+
"aria-label": `${e.labels.and} / ${e.labels.or}`
|
|
1599
|
+
}, [p("option", vr, k(e.labels.and), 1), p("option", yr, k(e.labels.or), 1)], 10, _r)), [[P, t.cond]]) : d("", !0),
|
|
1600
|
+
z(p("input", {
|
|
1601
|
+
"onUpdate:modelValue": (e) => t.keyword = e,
|
|
1602
|
+
type: "text",
|
|
1603
|
+
class: b(["mwnf-standalone-db__keyword", `mwnf-standalone-db__row-${n + 1}`]),
|
|
1604
|
+
"aria-label": e.labels.keywords
|
|
1605
|
+
}, null, 10, br), [[F, t.keyword]]),
|
|
1606
|
+
p("label", { class: b(["mwnf-standalone-db__field", `mwnf-standalone-db__row-${n + 1}`]) }, [p("span", null, k(e.labels.in), 1), z(p("select", { "onUpdate:modelValue": (e) => t.field = e }, [(w(!0), f(c, null, D(e.fields, (e) => (w(), f("option", {
|
|
1607
|
+
key: e.value,
|
|
1608
|
+
value: e.value
|
|
1609
|
+
}, k(e.label), 9, Sr))), 128))], 8, xr), [[P, t.field]])], 2)
|
|
1610
|
+
], 64))), 128)),
|
|
1611
|
+
p("span", Cr, k(e.labels.date), 1),
|
|
1612
|
+
p("p", wr, [z(p("select", {
|
|
1613
|
+
"onUpdate:modelValue": n[0] ||= (e) => s.from = e,
|
|
1614
|
+
"aria-label": `${e.labels.date} ${e.labels.from}`
|
|
1615
|
+
}, [p("option", Er, k(e.labels.from), 1), (w(!0), f(c, null, D(e.fromYears, (e) => (w(), f("option", {
|
|
1616
|
+
key: e,
|
|
1617
|
+
value: e
|
|
1618
|
+
}, k(e), 9, Dr))), 128))], 8, Tr), [[P, s.from]]), z(p("select", {
|
|
1619
|
+
"onUpdate:modelValue": n[1] ||= (e) => s.to = e,
|
|
1620
|
+
"aria-label": `${e.labels.date} ${e.labels.to}`
|
|
1621
|
+
}, [p("option", kr, k(e.labels.to), 1), (w(!0), f(c, null, D(e.toYears, (e) => (w(), f("option", {
|
|
1622
|
+
key: e,
|
|
1623
|
+
value: e
|
|
1624
|
+
}, k(e), 9, Ar))), 128))], 8, Or), [[P, s.to]])]),
|
|
1625
|
+
p("span", jr, k(e.labels.language), 1),
|
|
1626
|
+
p("p", Mr, [z(p("select", {
|
|
1627
|
+
"onUpdate:modelValue": n[2] ||= (e) => r.value = e,
|
|
1628
|
+
"aria-label": e.labels.language
|
|
1629
|
+
}, [n[3] ||= p("option", { value: "" }, null, -1), (w(!0), f(c, null, D(e.languages, (e) => (w(), f("option", {
|
|
1630
|
+
key: e.code,
|
|
1631
|
+
value: e.code
|
|
1632
|
+
}, k(e.name), 9, Pr))), 128))], 8, Nr), [[P, r.value]])]),
|
|
1633
|
+
u.value ? (w(), f("p", Fr, [O(t.$slots, "options")])) : d("", !0),
|
|
1634
|
+
p("p", Ir, [p("button", Lr, k(e.labels.go), 1)]),
|
|
1635
|
+
e.listingHref ? (w(), f("p", Rr, [p("a", {
|
|
1636
|
+
href: e.listingHref,
|
|
1637
|
+
title: e.labels.listingTooltip
|
|
1638
|
+
}, k(e.labels.listing), 9, zr)])) : d("", !0)
|
|
1639
|
+
], 34));
|
|
1640
|
+
}
|
|
1641
|
+
}, Vr = {
|
|
1440
1642
|
key: 0,
|
|
1441
1643
|
class: "mwnf-standalone-pages"
|
|
1442
|
-
},
|
|
1644
|
+
}, Hr = { class: "mwnf-standalone-pages__previous" }, Ur = ["aria-current", "onClick"], Wr = { class: "mwnf-standalone-pages__next" }, Gr = {
|
|
1443
1645
|
__name: "Pagination",
|
|
1444
1646
|
props: {
|
|
1445
1647
|
pageInfo: {
|
|
@@ -1469,30 +1671,30 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1469
1671
|
function s(e) {
|
|
1470
1672
|
e >= 1 && e <= a.value && e !== i.value && r("navigate", e);
|
|
1471
1673
|
}
|
|
1472
|
-
return (t, n) => a.value > 1 ? (
|
|
1473
|
-
p("span",
|
|
1674
|
+
return (t, n) => a.value > 1 ? (w(), f("nav", Vr, [
|
|
1675
|
+
p("span", Hr, [i.value > 1 ? (w(), f("a", {
|
|
1474
1676
|
key: 0,
|
|
1475
1677
|
href: "#",
|
|
1476
|
-
onClick: n[0] ||=
|
|
1477
|
-
},
|
|
1478
|
-
(
|
|
1678
|
+
onClick: n[0] ||= B((e) => s(i.value - 1), ["prevent"])
|
|
1679
|
+
}, k(e.previousLabel), 1)) : (w(), f(c, { key: 1 }, [h(k(e.previousLabel), 1)], 64))]),
|
|
1680
|
+
(w(!0), f(c, null, D(o.value, (e) => (w(), f("a", {
|
|
1479
1681
|
key: e,
|
|
1480
1682
|
href: "#",
|
|
1481
|
-
class:
|
|
1683
|
+
class: b(["mwnf-standalone-pages__number", { "mwnf-standalone-pages__number--active": e === i.value }]),
|
|
1482
1684
|
"aria-current": e === i.value ? "page" : void 0,
|
|
1483
|
-
onClick:
|
|
1484
|
-
},
|
|
1485
|
-
p("span",
|
|
1685
|
+
onClick: B((t) => s(e), ["prevent"])
|
|
1686
|
+
}, k(e), 11, Ur))), 128)),
|
|
1687
|
+
p("span", Wr, [i.value < a.value ? (w(), f("a", {
|
|
1486
1688
|
key: 0,
|
|
1487
1689
|
href: "#",
|
|
1488
|
-
onClick: n[1] ||=
|
|
1489
|
-
},
|
|
1690
|
+
onClick: n[1] ||= B((e) => s(i.value + 1), ["prevent"])
|
|
1691
|
+
}, k(e.nextLabel), 1)) : (w(), f(c, { key: 1 }, [h(k(e.nextLabel), 1)], 64))])
|
|
1490
1692
|
])) : d("", !0);
|
|
1491
1693
|
}
|
|
1492
|
-
},
|
|
1694
|
+
}, Kr = ["disabled", "aria-label"], qr = { class: "mwnf-standalone-slider__track" }, Jr = ["src", "alt"], Yr = {
|
|
1493
1695
|
key: 0,
|
|
1494
1696
|
class: "mwnf-standalone-slider__label"
|
|
1495
|
-
},
|
|
1697
|
+
}, Xr = ["disabled", "aria-label"], Zr = {
|
|
1496
1698
|
__name: "Slider",
|
|
1497
1699
|
props: {
|
|
1498
1700
|
slides: {
|
|
@@ -1513,46 +1715,46 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1513
1715
|
}
|
|
1514
1716
|
},
|
|
1515
1717
|
setup(e) {
|
|
1516
|
-
let t = e, { t: r } =
|
|
1718
|
+
let t = e, { t: r } = Y(), i = Z(), a = E(0), o = l(() => Math.max(0, t.slides.length - t.visible)), s = l(() => t.slides.slice(a.value, a.value + t.visible).map((e) => ({
|
|
1517
1719
|
...e,
|
|
1518
1720
|
image: i(e.image) ?? "",
|
|
1519
1721
|
label: e.label ? r(e.label) : ""
|
|
1520
1722
|
})));
|
|
1521
|
-
return (t, i) => e.slides.length ? (
|
|
1723
|
+
return (t, i) => e.slides.length ? (w(), f("div", {
|
|
1522
1724
|
key: 0,
|
|
1523
1725
|
class: "mwnf-standalone-slider",
|
|
1524
|
-
style:
|
|
1726
|
+
style: S({ "--mwnf-standalone-slider-count": e.visible })
|
|
1525
1727
|
}, [
|
|
1526
1728
|
p("button", {
|
|
1527
1729
|
type: "button",
|
|
1528
1730
|
class: "mwnf-standalone-slider__button",
|
|
1529
1731
|
disabled: a.value === 0,
|
|
1530
|
-
"aria-label":
|
|
1732
|
+
"aria-label": A(r)(e.previousLabel),
|
|
1531
1733
|
onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
|
|
1532
|
-
}, "‹", 8,
|
|
1533
|
-
p("ul",
|
|
1734
|
+
}, "‹", 8, Kr),
|
|
1735
|
+
p("ul", qr, [(w(!0), f(c, null, D(s.value, (e) => (w(), f("li", {
|
|
1534
1736
|
key: e.image,
|
|
1535
1737
|
class: "mwnf-standalone-slider__slide"
|
|
1536
1738
|
}, [g(n, {
|
|
1537
1739
|
to: e.to,
|
|
1538
1740
|
href: e.href
|
|
1539
1741
|
}, {
|
|
1540
|
-
default:
|
|
1742
|
+
default: R(() => [p("img", {
|
|
1541
1743
|
src: e.image,
|
|
1542
1744
|
alt: e.label
|
|
1543
|
-
}, null, 8,
|
|
1745
|
+
}, null, 8, Jr), e.label ? (w(), f("span", Yr, k(e.label), 1)) : d("", !0)]),
|
|
1544
1746
|
_: 2
|
|
1545
1747
|
}, 1032, ["to", "href"])]))), 128))]),
|
|
1546
1748
|
p("button", {
|
|
1547
1749
|
type: "button",
|
|
1548
1750
|
class: "mwnf-standalone-slider__button",
|
|
1549
1751
|
disabled: a.value >= o.value,
|
|
1550
|
-
"aria-label":
|
|
1752
|
+
"aria-label": A(r)(e.nextLabel),
|
|
1551
1753
|
onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
|
|
1552
|
-
}, "›", 8,
|
|
1754
|
+
}, "›", 8, Xr)
|
|
1553
1755
|
], 4)) : d("", !0);
|
|
1554
1756
|
}
|
|
1555
|
-
},
|
|
1757
|
+
}, Qr = ["dir"], $r = { class: "mwnf-standalone-window__box" }, ei = { class: "mwnf-standalone-window__header" }, ti = { class: "mwnf-standalone-window__heading" }, ni = ["aria-label"], ri = { class: "mwnf-standalone-window__article" }, ii = {
|
|
1556
1758
|
__name: "Window",
|
|
1557
1759
|
props: {
|
|
1558
1760
|
heading: {
|
|
@@ -1572,24 +1774,24 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1572
1774
|
function t() {
|
|
1573
1775
|
window.opener ? (window.opener.focus(), window.close()) : window.history.back();
|
|
1574
1776
|
}
|
|
1575
|
-
return (n, r) => (
|
|
1777
|
+
return (n, r) => (w(), f("div", {
|
|
1576
1778
|
class: "mwnf-standalone-window",
|
|
1577
1779
|
dir: e.dir || void 0
|
|
1578
|
-
}, [p("div",
|
|
1780
|
+
}, [p("div", $r, [p("header", ei, [p("h1", ti, k(e.heading), 1), p("button", {
|
|
1579
1781
|
type: "button",
|
|
1580
1782
|
class: "mwnf-standalone-window__close",
|
|
1581
1783
|
"aria-label": e.closeLabel || void 0,
|
|
1582
1784
|
onClick: t
|
|
1583
|
-
}, "×", 8,
|
|
1785
|
+
}, "×", 8, ni)]), p("article", ri, [O(n.$slots, "default")])])], 8, Qr));
|
|
1584
1786
|
}
|
|
1585
|
-
},
|
|
1787
|
+
}, ai = { class: "mwnf-standalone-glossary" }, oi = { class: "mwnf-standalone-glossary__intro" }, si = { class: "mwnf-standalone-glossary__body" }, ci = { class: "mwnf-standalone-glossary__field" }, li = ["aria-expanded", "aria-label"], ui = {
|
|
1586
1788
|
key: 0,
|
|
1587
1789
|
class: "mwnf-standalone-glossary__suggestions",
|
|
1588
1790
|
role: "listbox"
|
|
1589
|
-
},
|
|
1791
|
+
}, di = ["aria-selected", "onMousedown"], fi = {
|
|
1590
1792
|
class: "mwnf-standalone-glossary__result",
|
|
1591
1793
|
"aria-live": "polite"
|
|
1592
|
-
},
|
|
1794
|
+
}, pi = { class: "mwnf-standalone-glossary__label" }, mi = ["innerHTML"], hi = { class: "mwnf-standalone-glossary__label mwnf-standalone-glossary__label--spellings" }, gi = { class: "mwnf-standalone-glossary__note" }, _i = { class: "mwnf-standalone-glossary__spellings" }, vi = {
|
|
1593
1795
|
__name: "GlossarySpelling",
|
|
1594
1796
|
props: {
|
|
1595
1797
|
language: {
|
|
@@ -1610,27 +1812,27 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1610
1812
|
}
|
|
1611
1813
|
},
|
|
1612
1814
|
setup(e) {
|
|
1613
|
-
let t = e, n =
|
|
1614
|
-
|
|
1615
|
-
await
|
|
1815
|
+
let t = e, n = J(), r = ee(t.entity), i = l(() => n.availableLanguages(t.entity).slice().sort());
|
|
1816
|
+
C(async () => {
|
|
1817
|
+
await U([t.entity]), await Promise.all(i.value.map((e) => n.loadTranslations(t.entity, e)));
|
|
1616
1818
|
});
|
|
1617
|
-
let a =
|
|
1618
|
-
let e =
|
|
1819
|
+
let a = E(""), o = E(null), s = E(-1), m = (e, r) => n.translations(t.entity, r)[e.id] ?? {}, h = l(() => {
|
|
1820
|
+
let e = H(a.value.trim());
|
|
1619
1821
|
if (!e || o.value) return [];
|
|
1620
1822
|
let n = /* @__PURE__ */ new Map();
|
|
1621
1823
|
for (let i of r.value ?? []) for (let r of m(i, t.language).spellings ?? []) {
|
|
1622
1824
|
let t = String(r).trim();
|
|
1623
|
-
t &&
|
|
1825
|
+
t && H(t).startsWith(e) && n.set(t, i);
|
|
1624
1826
|
}
|
|
1625
1827
|
return [...n].map(([e, t]) => ({
|
|
1626
1828
|
spelling: e,
|
|
1627
1829
|
term: t
|
|
1628
|
-
})).sort((e, t) =>
|
|
1629
|
-
}), g = l(() => o.value ?
|
|
1830
|
+
})).sort((e, t) => H(e.spelling) < H(t.spelling) ? -1 : +(H(e.spelling) > H(t.spelling)));
|
|
1831
|
+
}), g = l(() => o.value ? W(m(o.value, t.language).definition ?? "") : ""), _ = l(() => {
|
|
1630
1832
|
if (!o.value) return [];
|
|
1631
1833
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
1632
1834
|
for (let n of i.value) for (let r of m(o.value, n).spellings ?? []) {
|
|
1633
|
-
let n =
|
|
1835
|
+
let n = H(String(r).trim());
|
|
1634
1836
|
n && !e.has(n) && (e.add(n), t.push(String(r).trim()));
|
|
1635
1837
|
}
|
|
1636
1838
|
return t;
|
|
@@ -1638,19 +1840,19 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1638
1840
|
function v(e) {
|
|
1639
1841
|
o.value = e.term, a.value = e.spelling, s.value = -1;
|
|
1640
1842
|
}
|
|
1641
|
-
function
|
|
1843
|
+
function y() {
|
|
1642
1844
|
o.value = null, s.value = -1;
|
|
1643
1845
|
}
|
|
1644
1846
|
function x(e) {
|
|
1645
1847
|
let t = h.value;
|
|
1646
1848
|
t.length && (e.key === "ArrowDown" ? (e.preventDefault(), s.value = (s.value + 1) % t.length) : e.key === "ArrowUp" ? (e.preventDefault(), s.value = (s.value - 1 + t.length) % t.length) : e.key === "Enter" && s.value >= 0 && (e.preventDefault(), v(t[s.value])));
|
|
1647
1849
|
}
|
|
1648
|
-
return (t, n) => (
|
|
1850
|
+
return (t, n) => (w(), u(ii, {
|
|
1649
1851
|
heading: e.labels.heading,
|
|
1650
1852
|
"close-label": e.labels.close,
|
|
1651
1853
|
dir: e.dir
|
|
1652
1854
|
}, {
|
|
1653
|
-
default:
|
|
1855
|
+
default: R(() => [p("div", ai, [p("h2", oi, k(e.labels.intro), 1), p("div", si, [p("div", ci, [z(p("input", {
|
|
1654
1856
|
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
1655
1857
|
type: "text",
|
|
1656
1858
|
class: "mwnf-standalone-glossary__input",
|
|
@@ -1658,21 +1860,21 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1658
1860
|
"aria-autocomplete": "list",
|
|
1659
1861
|
"aria-expanded": h.value.length > 0,
|
|
1660
1862
|
"aria-label": e.labels.heading,
|
|
1661
|
-
onInput:
|
|
1863
|
+
onInput: y,
|
|
1662
1864
|
onKeydown: x
|
|
1663
|
-
}, null, 40,
|
|
1865
|
+
}, null, 40, li), [[F, a.value]]), h.value.length ? (w(), f("ul", ui, [(w(!0), f(c, null, D(h.value, (e, t) => (w(), f("li", {
|
|
1664
1866
|
key: e.spelling,
|
|
1665
1867
|
role: "option",
|
|
1666
1868
|
"aria-selected": t === s.value,
|
|
1667
|
-
class:
|
|
1668
|
-
onMousedown:
|
|
1669
|
-
},
|
|
1869
|
+
class: b(["mwnf-standalone-glossary__suggestion", { "mwnf-standalone-glossary__suggestion--active": t === s.value }]),
|
|
1870
|
+
onMousedown: B((t) => v(e), ["prevent"])
|
|
1871
|
+
}, k(e.spelling), 43, di))), 128))])) : d("", !0)]), p("div", fi, [o.value ? (w(), f(c, { key: 0 }, [g.value ? (w(), f(c, { key: 0 }, [p("h3", pi, k(e.labels.definition), 1), p("div", {
|
|
1670
1872
|
class: "mwnf-standalone-glossary__definition",
|
|
1671
1873
|
innerHTML: g.value
|
|
1672
|
-
}, null, 8,
|
|
1673
|
-
p("h3",
|
|
1674
|
-
p("p",
|
|
1675
|
-
p("ul",
|
|
1874
|
+
}, null, 8, mi)], 64)) : d("", !0), _.value.length ? (w(), f(c, { key: 1 }, [
|
|
1875
|
+
p("h3", hi, k(e.labels.spellings), 1),
|
|
1876
|
+
p("p", gi, k(e.labels.spellingsNote), 1),
|
|
1877
|
+
p("ul", _i, [(w(!0), f(c, null, D(_.value, (e) => (w(), f("li", { key: e }, k(e), 1))), 128))])
|
|
1676
1878
|
], 64)) : d("", !0)], 64)) : d("", !0)])])])]),
|
|
1677
1879
|
_: 1
|
|
1678
1880
|
}, 8, [
|
|
@@ -1683,4 +1885,4 @@ var at = { class: "mwnf-standalone-related" }, ot = { class: "mwnf-standalone-re
|
|
|
1683
1885
|
}
|
|
1684
1886
|
};
|
|
1685
1887
|
//#endregion
|
|
1686
|
-
export {
|
|
1888
|
+
export { gt as RelatedContent, se as StandaloneBanner, Br as StandaloneDatabaseForm, vi as StandaloneGlossarySpelling, Qe as StandaloneHome, bt as StandaloneItemSheet, Gr as StandalonePagination, $n as StandalonePartnerList, Yt as StandalonePartnerPage, Un as StandaloneRefine, gn as StandaloneResultsGrid, Ln as StandaloneResultsList, Ne as StandaloneShell, Zr as StandaloneSlider, fr as StandaloneSponsorList, Te as StandaloneSponsors, nn as StandaloneSubNav, $t as StandaloneTextPage, Je as StandaloneTileGrid, ii as StandaloneWindow, Ve as TodayHighlight, ce as byLanguage, le as dayOfYear, ue as legacyHomeItemKey, Q as pickForDay };
|