@museumwnf/viewer-layout 3.8.0 → 3.10.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/{ItemDetailView-CzSe_jZn.js → ItemDetailView-CzIquvf7.js} +9 -4
- package/dist/{OnDisplayIn-BfJoPonn.js → OnDisplayIn-2ctLMfvw.js} +1 -3
- package/dist/RecordView-BvKoAB2j.js +275 -0
- package/dist/{SiteShell-CXMfLqzq.js → SiteShell-DmKiH3jM.js} +1 -1
- package/dist/{Theme-tF4wOaNa.js → Theme-pxrmYfo-.js} +2 -2
- package/dist/{chrome-i1DOEyLS.js → chrome-Co3f_Shw.js} +2 -1
- package/dist/components.js +1 -1
- package/dist/{content-C6oMa4eE.js → content-Cu_44di8.js} +6 -2
- package/dist/content.js +2 -2
- package/dist/{data-CCcDVsTG.js → data-Dz9REf19.js} +1 -1
- package/dist/{data-CGFEbGab.js → data-d30zAska.js} +1 -1
- package/dist/dxa.js +75 -73
- package/dist/index.js +3 -3
- package/dist/standalone.js +233 -230
- package/dist/{themeSpecs-C2Y2abxd.js → themeSpecs-CXVCN8UV.js} +1 -1
- package/dist/views.js +1 -1
- package/package.json +3 -3
- package/dist/RecordView-DovgfTMz.js +0 -263
package/dist/standalone.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as e } from "./chrome-
|
|
1
|
+
import { r as e } from "./chrome-Co3f_Shw.js";
|
|
2
2
|
import { c as t, d as n, n as r } from "./GlossaryPopover-DcptyNWI.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { byId as
|
|
3
|
+
import { n as i, t as a } from "./RecordView-BvKoAB2j.js";
|
|
4
|
+
import { t as o } from "./SiteShell-DmKiH3jM.js";
|
|
5
|
+
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useSlots as E, watch as D, withCtx as O } from "vue";
|
|
6
|
+
import { byId as k, loadEntities as A, pictureCredits as j, picturesInLanguage as M, removeEndingPoint as N, renderBlock as P, renderInline as F, renderPlain as I, useDataPackage as L, useI18n as R, useSection as ee, useSiteConfig as z } from "@museumwnf/viewer-core";
|
|
7
7
|
//#region src/standalone/Banner.vue
|
|
8
|
-
var
|
|
8
|
+
var B = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "mwnf-standalone-banner__title"
|
|
11
|
-
},
|
|
11
|
+
}, V = {
|
|
12
12
|
__name: "Banner",
|
|
13
13
|
props: {
|
|
14
14
|
image: {
|
|
@@ -21,29 +21,29 @@ var R = {
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
setup(e) {
|
|
24
|
-
return (t, n) => (
|
|
24
|
+
return (t, n) => (b(), d("div", {
|
|
25
25
|
class: "mwnf-standalone-banner",
|
|
26
|
-
style:
|
|
27
|
-
}, [e.title ? (
|
|
26
|
+
style: y(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
|
|
27
|
+
}, [e.title ? (b(), d("h1", B, [f("span", null, w(e.title), 1)])) : u("", !0)], 4));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/standalone/chrome.js
|
|
32
|
-
function
|
|
33
|
-
let t =
|
|
32
|
+
function H() {
|
|
33
|
+
let t = z();
|
|
34
34
|
return (n) => e(t.chrome, n);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function U(e, t) {
|
|
37
37
|
return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function W(e = /* @__PURE__ */ new Date()) {
|
|
40
40
|
let t = new Date(e.getFullYear(), 0, 1);
|
|
41
41
|
return Math.round((new Date(e.getFullYear(), e.getMonth(), e.getDate()) - t) / 864e5);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
return e?.length ? e[
|
|
43
|
+
function G(e, t = /* @__PURE__ */ new Date()) {
|
|
44
|
+
return e?.length ? e[W(t) % e.length] : null;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function K(e) {
|
|
47
47
|
let [t, ...n] = String(e ?? "").split("*")[0].trim().split(";");
|
|
48
48
|
return !t || n.length < 5 ? "" : [
|
|
49
49
|
"mwnf3",
|
|
@@ -56,16 +56,16 @@ function W(e) {
|
|
|
56
56
|
var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
57
57
|
key: 0,
|
|
58
58
|
class: "mwnf-standalone-sponsors__text"
|
|
59
|
-
}, re = ["innerHTML"], ie = { key: 1 }, ae = ["innerHTML"],
|
|
59
|
+
}, re = ["innerHTML"], ie = { key: 1 }, ae = ["innerHTML"], q = {
|
|
60
60
|
key: 1,
|
|
61
61
|
class: "mwnf-standalone-sponsors__title"
|
|
62
|
-
},
|
|
62
|
+
}, J = {
|
|
63
63
|
key: 2,
|
|
64
64
|
class: "mwnf-standalone-sponsors__logos"
|
|
65
|
-
},
|
|
65
|
+
}, oe = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "mwnf-standalone-sponsors__note"
|
|
68
|
-
},
|
|
68
|
+
}, se = ["src", "alt"], ce = ["innerHTML"], le = ["href"], ue = ["src", "alt"], de = ["src", "alt"], fe = {
|
|
69
69
|
key: 3,
|
|
70
70
|
class: "mwnf-standalone-sponsors__links"
|
|
71
71
|
}, Y = {
|
|
@@ -75,81 +75,81 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
75
75
|
default: () => []
|
|
76
76
|
} },
|
|
77
77
|
setup(e) {
|
|
78
|
-
let t = e, { t: r } =
|
|
78
|
+
let t = e, { t: r } = R(), i = H(), a = c(() => t.columns.map((e, t) => ({
|
|
79
79
|
key: t,
|
|
80
80
|
width: e.width ?? null,
|
|
81
|
-
lead: e.lead ?
|
|
82
|
-
text: e.text ?
|
|
81
|
+
lead: e.lead ? F(r(e.lead)) : "",
|
|
82
|
+
text: e.text ? F(r(e.text)) : "",
|
|
83
83
|
break: !!e.break,
|
|
84
84
|
title: e.title ? r(e.title) : "",
|
|
85
85
|
logos: (e.logos ?? []).map((e) => ({
|
|
86
86
|
src: i(e.src) ?? "",
|
|
87
87
|
alt: e.alt ? r(e.alt) : "",
|
|
88
88
|
href: e.href ?? "",
|
|
89
|
-
note: e.note ?
|
|
89
|
+
note: e.note ? P(r(e.note)) : ""
|
|
90
90
|
})),
|
|
91
91
|
links: (e.links ?? []).map((e) => ({
|
|
92
92
|
...e,
|
|
93
93
|
label: r(e.label)
|
|
94
94
|
}))
|
|
95
95
|
})));
|
|
96
|
-
return (e, t) => (
|
|
96
|
+
return (e, t) => (b(), d("div", te, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("div", {
|
|
97
97
|
key: e.key,
|
|
98
98
|
class: "mwnf-standalone-sponsors__column",
|
|
99
|
-
style:
|
|
99
|
+
style: y(e.width ? { flexGrow: e.width } : void 0)
|
|
100
100
|
}, [
|
|
101
|
-
e.lead || e.text ? (
|
|
102
|
-
e.lead ? (
|
|
101
|
+
e.lead || e.text ? (b(), d("p", ne, [
|
|
102
|
+
e.lead ? (b(), d("i", {
|
|
103
103
|
key: 0,
|
|
104
104
|
innerHTML: e.lead
|
|
105
|
-
}, null, 8, re)) :
|
|
106
|
-
e.lead && e.break ? (
|
|
107
|
-
e.text ? (
|
|
105
|
+
}, null, 8, re)) : u("", !0),
|
|
106
|
+
e.lead && e.break ? (b(), d("br", ie)) : e.lead && e.text ? (b(), d(s, { key: 2 }, [m(w(" "))], 64)) : u("", !0),
|
|
107
|
+
e.text ? (b(), d("span", {
|
|
108
108
|
key: 3,
|
|
109
109
|
innerHTML: e.text
|
|
110
|
-
}, null, 8, ae)) :
|
|
111
|
-
])) :
|
|
112
|
-
e.title ? (
|
|
113
|
-
e.logos.length ? (
|
|
110
|
+
}, null, 8, ae)) : u("", !0)
|
|
111
|
+
])) : u("", !0),
|
|
112
|
+
e.title ? (b(), d("p", q, w(e.title), 1)) : u("", !0),
|
|
113
|
+
e.logos.length ? (b(), d("ul", J, [(b(!0), d(s, null, S(e.logos, (e) => (b(), d("li", { key: e.src }, [e.note ? (b(), d("details", oe, [f("summary", null, [f("img", {
|
|
114
114
|
src: e.src,
|
|
115
115
|
alt: e.alt
|
|
116
|
-
}, null, 8,
|
|
116
|
+
}, null, 8, se)]), f("div", {
|
|
117
117
|
class: "mwnf-standalone-sponsors__note-body",
|
|
118
118
|
innerHTML: e.note
|
|
119
|
-
}, null, 8,
|
|
119
|
+
}, null, 8, ce)])) : e.href ? (b(), d("a", {
|
|
120
120
|
key: 1,
|
|
121
121
|
href: e.href,
|
|
122
122
|
target: "_blank",
|
|
123
123
|
rel: "noopener"
|
|
124
|
-
}, [
|
|
124
|
+
}, [f("img", {
|
|
125
125
|
src: e.src,
|
|
126
126
|
alt: e.alt
|
|
127
|
-
}, null, 8,
|
|
127
|
+
}, null, 8, ue)], 8, le)) : (b(), d("img", {
|
|
128
128
|
key: 2,
|
|
129
129
|
src: e.src,
|
|
130
130
|
alt: e.alt
|
|
131
|
-
}, null, 8,
|
|
132
|
-
e.links.length ? (
|
|
131
|
+
}, null, 8, de))]))), 128))])) : u("", !0),
|
|
132
|
+
e.links.length ? (b(), d("ul", fe, [(b(!0), d(s, null, S(e.links, (e) => (b(), d("li", { key: e.label }, [h(n, {
|
|
133
133
|
to: e.to,
|
|
134
134
|
href: e.href,
|
|
135
135
|
external: !!e.external
|
|
136
136
|
}, {
|
|
137
|
-
default:
|
|
137
|
+
default: O(() => [m(w(e.label), 1)]),
|
|
138
138
|
_: 2
|
|
139
139
|
}, 1032, [
|
|
140
140
|
"to",
|
|
141
141
|
"href",
|
|
142
142
|
"external"
|
|
143
|
-
])]))), 128))])) :
|
|
143
|
+
])]))), 128))])) : u("", !0)
|
|
144
144
|
], 4))), 128))]));
|
|
145
145
|
}
|
|
146
|
-
},
|
|
146
|
+
}, pe = { class: "mwnf-banner mwnf-standalone-home-banner" }, me = ["src"], he = { class: "mwnf-standalone-home-banner__text" }, ge = {
|
|
147
147
|
key: 0,
|
|
148
148
|
class: "mwnf-standalone-home-banner__title"
|
|
149
|
-
},
|
|
149
|
+
}, _e = {
|
|
150
150
|
key: 1,
|
|
151
151
|
class: "mwnf-standalone-home-banner__line"
|
|
152
|
-
},
|
|
152
|
+
}, ve = ["src"], ye = {
|
|
153
153
|
__name: "Shell",
|
|
154
154
|
props: {
|
|
155
155
|
language: {
|
|
@@ -163,100 +163,100 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
163
163
|
},
|
|
164
164
|
emits: ["update:language"],
|
|
165
165
|
setup(t, { emit: n }) {
|
|
166
|
-
let r = t, i = n, { t:
|
|
167
|
-
let e = v.value.logo ?? {}, t = E(
|
|
166
|
+
let r = t, i = n, { t: a, locale: s } = R(), m = z(), g = ee(), v = c(() => m.standalone ?? {}), y = c(() => m.navigation ?? {}), x = c(() => g.value === "home"), S = c(() => v.value.areas?.[g.value] ?? null), E = (t) => e(m.chrome, U(t, s.value)), D = c(() => {
|
|
167
|
+
let e = v.value.logo ?? {}, t = E(S.value?.logo ?? e.src);
|
|
168
168
|
return t ? {
|
|
169
169
|
logo: t,
|
|
170
170
|
alt: e.alt ?? ""
|
|
171
171
|
} : null;
|
|
172
|
-
}), k =
|
|
172
|
+
}), k = c(() => E(v.value.logo?.print)), A = c(() => (v.value.headerLinks ?? []).filter((e) => !e.on || e.on === "all" || e.on === (x.value ? "home" : "inner"))), j = c(() => {
|
|
173
173
|
let e = {
|
|
174
174
|
...v.value.banner ?? {},
|
|
175
|
-
...
|
|
175
|
+
...S.value?.banner ?? {}
|
|
176
176
|
};
|
|
177
177
|
return E(x.value ? e.home : e.inner) ?? "";
|
|
178
|
-
}), M =
|
|
179
|
-
let e =
|
|
180
|
-
return e ?
|
|
181
|
-
}), N =
|
|
178
|
+
}), M = c(() => {
|
|
179
|
+
let e = y.value.sectionTitles?.[g.value];
|
|
180
|
+
return e ? a(e) : "";
|
|
181
|
+
}), N = c(() => !x.value && !!(j.value || M.value)), P = c(() => {
|
|
182
182
|
let { homeTitle: e, homeText: t } = v.value.banner ?? {};
|
|
183
183
|
return x.value && (e || t) ? {
|
|
184
|
-
title: e ?
|
|
185
|
-
text: t ?
|
|
184
|
+
title: e ? a(e) : "",
|
|
185
|
+
text: t ? a(t) : ""
|
|
186
186
|
} : null;
|
|
187
|
-
}), F =
|
|
187
|
+
}), F = c(() => {
|
|
188
188
|
let e = v.value.sponsors;
|
|
189
189
|
return e?.columns?.length && (e.on === "all" || x.value) ? e : null;
|
|
190
|
-
}),
|
|
190
|
+
}), I = c(() => ({
|
|
191
191
|
navigation: {
|
|
192
|
-
...
|
|
192
|
+
...y.value,
|
|
193
193
|
headerLinks: A.value,
|
|
194
194
|
sectionTitles: {},
|
|
195
195
|
...v.value.languages === !1 ? { languages: [] } : {}
|
|
196
196
|
},
|
|
197
197
|
banner: null,
|
|
198
|
-
...
|
|
199
|
-
})),
|
|
198
|
+
...D.value ? { brand: D.value } : {}
|
|
199
|
+
})), L = (/* @__PURE__ */ new Date()).getFullYear(), B = c(() => v.value.copyright ? `${a(v.value.copyright)} ${L}` : ""), H = c(() => [
|
|
200
200
|
"mwnf-standalone",
|
|
201
201
|
x.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
|
|
202
|
-
|
|
202
|
+
S.value?.class ?? ""
|
|
203
203
|
]);
|
|
204
|
-
return (e, t) => (
|
|
205
|
-
class:
|
|
206
|
-
config:
|
|
204
|
+
return (e, t) => (b(), l(o, {
|
|
205
|
+
class: _(H.value),
|
|
206
|
+
config: I.value,
|
|
207
207
|
languages: v.value.languages === !1 ? [] : r.languages,
|
|
208
208
|
language: r.language,
|
|
209
209
|
"language-placement": "header",
|
|
210
210
|
"language-style": "select",
|
|
211
211
|
"header-home": v.value.logo?.href ?? "",
|
|
212
|
-
"header-title": x.value ? "" : v.value.heading ?
|
|
213
|
-
"header-subtitle": x.value ? "" : v.value.subheading ?
|
|
212
|
+
"header-title": x.value ? "" : v.value.heading ? T(a)(v.value.heading) : "",
|
|
213
|
+
"header-subtitle": x.value ? "" : v.value.subheading ? T(a)(v.value.subheading) : "",
|
|
214
214
|
"header-title-href": "#/",
|
|
215
215
|
"banner-image": x.value && !P.value ? j.value : "",
|
|
216
|
-
"footer-text":
|
|
216
|
+
"footer-text": B.value || void 0,
|
|
217
217
|
"onUpdate:language": t[0] ||= (e) => i("update:language", e)
|
|
218
|
-
},
|
|
219
|
-
default:
|
|
218
|
+
}, p({
|
|
219
|
+
default: O(() => [C(e.$slots, "default")]),
|
|
220
220
|
_: 2
|
|
221
221
|
}, [
|
|
222
222
|
N.value ? {
|
|
223
223
|
name: "banner",
|
|
224
|
-
fn:
|
|
224
|
+
fn: O(() => [h(V, {
|
|
225
225
|
image: j.value,
|
|
226
226
|
title: M.value
|
|
227
227
|
}, null, 8, ["image", "title"])]),
|
|
228
228
|
key: "0"
|
|
229
229
|
} : P.value ? {
|
|
230
230
|
name: "banner",
|
|
231
|
-
fn:
|
|
231
|
+
fn: O(() => [f("section", pe, [j.value ? (b(), d("img", {
|
|
232
232
|
key: 0,
|
|
233
233
|
class: "mwnf-banner__image",
|
|
234
234
|
src: j.value,
|
|
235
235
|
alt: ""
|
|
236
|
-
}, null, 8,
|
|
236
|
+
}, null, 8, me)) : u("", !0), f("div", he, [P.value.title ? (b(), d("h2", ge, [f("i", null, w(P.value.title), 1)])) : u("", !0), P.value.text ? (b(), d("p", _e, [f("span", null, w(P.value.text), 1)])) : u("", !0)])])]),
|
|
237
237
|
key: "1"
|
|
238
238
|
} : void 0,
|
|
239
239
|
k.value ? {
|
|
240
240
|
name: "notice",
|
|
241
|
-
fn:
|
|
241
|
+
fn: O(() => [f("img", {
|
|
242
242
|
class: "mwnf-standalone__print-logo",
|
|
243
243
|
src: k.value,
|
|
244
244
|
alt: ""
|
|
245
|
-
}, null, 8,
|
|
245
|
+
}, null, 8, ve)]),
|
|
246
246
|
key: "2"
|
|
247
247
|
} : void 0,
|
|
248
248
|
e.$slots.sponsors ? {
|
|
249
249
|
name: "sponsors",
|
|
250
|
-
fn:
|
|
250
|
+
fn: O(() => [C(e.$slots, "sponsors")]),
|
|
251
251
|
key: "3"
|
|
252
252
|
} : F.value ? {
|
|
253
253
|
name: "sponsors",
|
|
254
|
-
fn:
|
|
254
|
+
fn: O(() => [h(Y, { columns: F.value.columns }, null, 8, ["columns"])]),
|
|
255
255
|
key: "4"
|
|
256
256
|
} : void 0,
|
|
257
257
|
e.$slots.footer ? {
|
|
258
258
|
name: "footer",
|
|
259
|
-
fn:
|
|
259
|
+
fn: O(() => [C(e.$slots, "footer")]),
|
|
260
260
|
key: "5"
|
|
261
261
|
} : void 0
|
|
262
262
|
]), 1032, [
|
|
@@ -271,16 +271,16 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
271
271
|
"footer-text"
|
|
272
272
|
]));
|
|
273
273
|
}
|
|
274
|
-
},
|
|
274
|
+
}, be = {
|
|
275
275
|
key: 0,
|
|
276
276
|
class: "mwnf-standalone-highlight"
|
|
277
|
-
},
|
|
277
|
+
}, xe = ["src", "alt"], Se = {
|
|
278
278
|
key: 1,
|
|
279
279
|
class: "mwnf-standalone-highlight__heading"
|
|
280
|
-
},
|
|
280
|
+
}, Ce = { class: "mwnf-standalone-highlight__lines" }, we = ["innerHTML"], Te = {
|
|
281
281
|
key: 2,
|
|
282
282
|
class: "mwnf-standalone-highlight__place"
|
|
283
|
-
},
|
|
283
|
+
}, Ee = {
|
|
284
284
|
key: 3,
|
|
285
285
|
class: "mwnf-standalone-highlight__action"
|
|
286
286
|
}, X = {
|
|
@@ -320,48 +320,48 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
322
|
setup(e) {
|
|
323
|
-
let t = e, { t: r } =
|
|
323
|
+
let t = e, { t: r } = R(), i = (e) => N(Array.isArray(e) ? e.join("; ") : e), a = c(() => {
|
|
324
324
|
let e = t.text ?? {}, n = [], a = i(e.name ?? t.record?.internal_name ?? "");
|
|
325
|
-
a && n.push(
|
|
325
|
+
a && n.push(F(a));
|
|
326
326
|
let o = i(e.alternate_name);
|
|
327
|
-
o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${
|
|
327
|
+
o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${F(o)}`);
|
|
328
328
|
let s = [i(e.dates), i(e.dynasty)].filter(Boolean).join(", ");
|
|
329
|
-
s && n.push(
|
|
329
|
+
s && n.push(F(s));
|
|
330
330
|
for (let t of ["materials", "holder"]) {
|
|
331
331
|
let r = i(e[t]);
|
|
332
|
-
r && n.push(
|
|
332
|
+
r && n.push(F(r));
|
|
333
333
|
}
|
|
334
334
|
return n;
|
|
335
|
-
}),
|
|
336
|
-
return (t, i) => e.record ? (
|
|
337
|
-
|
|
335
|
+
}), o = c(() => [i(t.text?.location), t.country].filter(Boolean).join(", ")), p = c(() => t.picture || (t.record?.images?.[0]?.url ?? "")), g = c(() => I(String(t.text?.name ?? t.record?.internal_name ?? "")));
|
|
336
|
+
return (t, i) => e.record ? (b(), d("div", be, [
|
|
337
|
+
p.value ? (b(), l(n, {
|
|
338
338
|
key: 0,
|
|
339
339
|
class: "mwnf-standalone-highlight__media",
|
|
340
340
|
to: e.to
|
|
341
341
|
}, {
|
|
342
|
-
default:
|
|
342
|
+
default: O(() => [f("img", {
|
|
343
343
|
class: "mwnf-standalone-highlight__image",
|
|
344
|
-
src:
|
|
344
|
+
src: p.value,
|
|
345
345
|
alt: g.value
|
|
346
|
-
}, null, 8,
|
|
346
|
+
}, null, 8, xe)]),
|
|
347
347
|
_: 1
|
|
348
|
-
}, 8, ["to"])) :
|
|
349
|
-
e.heading ? (
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
e.action ? (
|
|
353
|
-
default:
|
|
348
|
+
}, 8, ["to"])) : u("", !0),
|
|
349
|
+
e.heading ? (b(), d("p", Se, [f("strong", null, w(T(r)(e.heading)), 1)])) : u("", !0),
|
|
350
|
+
f("p", Ce, [(b(!0), d(s, null, S(a.value, (e, t) => (b(), d(s, { key: t }, [f("span", { innerHTML: e }, null, 8, we), i[0] ||= f("br", null, null, -1)], 64))), 128))]),
|
|
351
|
+
o.value ? (b(), d("p", Te, w(T(I)(o.value)), 1)) : u("", !0),
|
|
352
|
+
e.action ? (b(), d("p", Ee, [h(n, { to: e.to }, {
|
|
353
|
+
default: O(() => [m(w(T(r)(e.action)), 1)]),
|
|
354
354
|
_: 1
|
|
355
|
-
}, 8, ["to"])])) :
|
|
356
|
-
])) :
|
|
355
|
+
}, 8, ["to"])])) : u("", !0)
|
|
356
|
+
])) : u("", !0);
|
|
357
357
|
}
|
|
358
|
-
},
|
|
358
|
+
}, De = {
|
|
359
359
|
key: 0,
|
|
360
360
|
class: "mwnf-standalone-tiles"
|
|
361
|
-
},
|
|
361
|
+
}, Oe = {
|
|
362
362
|
key: 0,
|
|
363
363
|
class: "mwnf-standalone-tiles__caption"
|
|
364
|
-
},
|
|
364
|
+
}, ke = { class: "mwnf-standalone-tiles__grid" }, Ae = ["src", "alt"], je = {
|
|
365
365
|
key: 0,
|
|
366
366
|
class: "mwnf-standalone-tiles__label"
|
|
367
367
|
}, Z = {
|
|
@@ -377,94 +377,94 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
379
|
setup(e) {
|
|
380
|
-
let t = e, { t: r } =
|
|
380
|
+
let t = e, { t: r } = R(), i = H(), a = c(() => t.items.map((e) => ({
|
|
381
381
|
...e,
|
|
382
382
|
image: i(e.image) ?? "",
|
|
383
|
-
label: e.text ?
|
|
383
|
+
label: e.text ? I(e.text) : e.label ? r(e.label) : ""
|
|
384
384
|
})));
|
|
385
|
-
return (t, i) => a.value.length ? (
|
|
385
|
+
return (t, i) => a.value.length ? (b(), d("section", De, [e.caption ? (b(), d("p", Oe, w(T(r)(e.caption)), 1)) : u("", !0), f("ul", ke, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("li", {
|
|
386
386
|
key: e.image,
|
|
387
387
|
class: "mwnf-standalone-tiles__tile"
|
|
388
|
-
}, [
|
|
388
|
+
}, [h(n, {
|
|
389
389
|
to: e.to,
|
|
390
390
|
href: e.href,
|
|
391
391
|
class: "mwnf-standalone-tiles__link"
|
|
392
392
|
}, {
|
|
393
|
-
default:
|
|
393
|
+
default: O(() => [f("img", {
|
|
394
394
|
class: "mwnf-standalone-tiles__image",
|
|
395
395
|
src: e.image,
|
|
396
396
|
alt: e.label
|
|
397
|
-
}, null, 8,
|
|
397
|
+
}, null, 8, Ae), e.label ? (b(), d("span", je, w(e.label), 1)) : u("", !0)]),
|
|
398
398
|
_: 2
|
|
399
|
-
}, 1032, ["to", "href"])]))), 128))])])) :
|
|
399
|
+
}, 1032, ["to", "href"])]))), 128))])])) : u("", !0);
|
|
400
400
|
}
|
|
401
|
-
},
|
|
401
|
+
}, Me = { class: "mwnf-standalone-home" }, Ne = {
|
|
402
402
|
key: 0,
|
|
403
403
|
class: "mwnf-standalone-home__links"
|
|
404
|
-
},
|
|
404
|
+
}, Pe = { key: 1 }, Fe = {
|
|
405
405
|
__name: "Home",
|
|
406
406
|
props: { home: {
|
|
407
407
|
type: Object,
|
|
408
408
|
default: null
|
|
409
409
|
} },
|
|
410
410
|
setup(e) {
|
|
411
|
-
let t = e, { t: r, locale: i } =
|
|
411
|
+
let t = e, { t: r, locale: i } = R(), a = z(), o = c(() => t.home ?? a.standalone?.home ?? {}), f = c(() => (o.value.links ?? []).map((e) => ({
|
|
412
412
|
...e,
|
|
413
413
|
label: r(e.label),
|
|
414
414
|
prefix: e.prefix ? r(e.prefix) : "",
|
|
415
415
|
title: e.title ? r(e.title) : void 0
|
|
416
|
-
}))),
|
|
417
|
-
|
|
418
|
-
|
|
416
|
+
}))), p = c(() => o.value.highlight ?? null), g = L();
|
|
417
|
+
p.value?.list?.length && (A(["items", "countries"]), D(i, (e) => {
|
|
418
|
+
g.loadTranslations("items", e), g.loadTranslations("countries", e);
|
|
419
419
|
}, { immediate: !0 }));
|
|
420
|
-
let v =
|
|
421
|
-
let e =
|
|
420
|
+
let v = k("items", "backward_compatibility"), y = c(() => {
|
|
421
|
+
let e = p.value?.list ?? [], t = e.indexOf(G(e));
|
|
422
422
|
for (let n = 0; t >= 0 && n < e.length; n++) {
|
|
423
|
-
let r = v.value.get(
|
|
423
|
+
let r = v.value.get(K(e[(t + n) % e.length]));
|
|
424
424
|
if (r) return r;
|
|
425
425
|
}
|
|
426
426
|
return null;
|
|
427
|
-
}),
|
|
428
|
-
let e =
|
|
429
|
-
return e ?
|
|
430
|
-
}),
|
|
431
|
-
name:
|
|
432
|
-
params: { id:
|
|
433
|
-
} : null), j =
|
|
434
|
-
let e =
|
|
435
|
-
return e.length ? j(
|
|
436
|
-
}), N =
|
|
437
|
-
let e =
|
|
427
|
+
}), x = c(() => y.value ? g.tr("items", y.value.id, i.value, "en") : {}), T = c(() => {
|
|
428
|
+
let e = y.value?.country_id;
|
|
429
|
+
return e ? g.tr("countries", e, i.value, "en").name ?? "" : "";
|
|
430
|
+
}), E = c(() => y.value ? {
|
|
431
|
+
name: p.value.route ?? "item",
|
|
432
|
+
params: { id: y.value.id }
|
|
433
|
+
} : null), j = H(), M = c(() => {
|
|
434
|
+
let e = p.value?.pictures ?? [];
|
|
435
|
+
return e.length ? j(G(e)) ?? "" : "";
|
|
436
|
+
}), N = c(() => {
|
|
437
|
+
let e = o.value.tiles?.items;
|
|
438
438
|
return (typeof e == "function" ? e() : e) ?? [];
|
|
439
439
|
});
|
|
440
|
-
return (e, t) => (
|
|
441
|
-
f.value.length ? (
|
|
440
|
+
return (e, t) => (b(), d("div", Me, [
|
|
441
|
+
f.value.length ? (b(), d("ul", Ne, [(b(!0), d(s, null, S(f.value, (e) => (b(), d("li", {
|
|
442
442
|
key: e.label,
|
|
443
|
-
class:
|
|
444
|
-
}, [
|
|
443
|
+
class: _({ "mwnf-standalone-home__link--gap": e.gap })
|
|
444
|
+
}, [h(n, {
|
|
445
445
|
to: e.to,
|
|
446
446
|
href: e.href,
|
|
447
447
|
external: !!e.external,
|
|
448
448
|
title: e.title
|
|
449
449
|
}, {
|
|
450
|
-
default:
|
|
450
|
+
default: O(() => [e.prefix ? (b(), d(s, { key: 0 }, [m(w(`${e.prefix} `), 1)], 64)) : u("", !0), e.italic ? (b(), d("i", Pe, w(e.label), 1)) : (b(), d(s, { key: 2 }, [m(w(e.label), 1)], 64))]),
|
|
451
451
|
_: 2
|
|
452
452
|
}, 1032, [
|
|
453
453
|
"to",
|
|
454
454
|
"href",
|
|
455
455
|
"external",
|
|
456
456
|
"title"
|
|
457
|
-
])], 2))), 128))])) :
|
|
458
|
-
|
|
457
|
+
])], 2))), 128))])) : u("", !0),
|
|
458
|
+
p.value ? (b(), l(X, {
|
|
459
459
|
key: 1,
|
|
460
|
-
record:
|
|
461
|
-
text:
|
|
460
|
+
record: y.value,
|
|
461
|
+
text: x.value,
|
|
462
462
|
country: T.value,
|
|
463
|
-
to:
|
|
463
|
+
to: E.value,
|
|
464
464
|
picture: M.value,
|
|
465
|
-
heading:
|
|
466
|
-
"also-known-as":
|
|
467
|
-
action:
|
|
465
|
+
heading: p.value.heading ?? "",
|
|
466
|
+
"also-known-as": p.value.alsoKnownAs ?? "",
|
|
467
|
+
action: p.value.action ?? ""
|
|
468
468
|
}, null, 8, [
|
|
469
469
|
"record",
|
|
470
470
|
"text",
|
|
@@ -474,19 +474,19 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
474
474
|
"heading",
|
|
475
475
|
"also-known-as",
|
|
476
476
|
"action"
|
|
477
|
-
])) :
|
|
478
|
-
|
|
477
|
+
])) : u("", !0),
|
|
478
|
+
o.value.tiles ? (b(), l(Z, {
|
|
479
479
|
key: 2,
|
|
480
|
-
caption:
|
|
480
|
+
caption: o.value.tiles.caption ?? "",
|
|
481
481
|
items: N.value
|
|
482
|
-
}, null, 8, ["caption", "items"])) :
|
|
483
|
-
|
|
482
|
+
}, null, 8, ["caption", "items"])) : u("", !0),
|
|
483
|
+
C(e.$slots, "default")
|
|
484
484
|
]));
|
|
485
485
|
}
|
|
486
|
-
},
|
|
486
|
+
}, Ie = { class: "mwnf-standalone-related" }, Le = { class: "mwnf-standalone-related__heading" }, Re = { class: "mwnf-standalone-related__group-heading" }, ze = { class: "mwnf-standalone-related__thumbs" }, Be = ["src", "alt"], Ve = ["innerHTML"], He = {
|
|
487
487
|
key: 0,
|
|
488
488
|
class: "mwnf-standalone-related__download"
|
|
489
|
-
},
|
|
489
|
+
}, Ue = { class: "mwnf-standalone-related__download-heading" }, Q = {
|
|
490
490
|
__name: "RelatedContent",
|
|
491
491
|
props: {
|
|
492
492
|
heading: {
|
|
@@ -507,44 +507,44 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
507
507
|
}
|
|
508
508
|
},
|
|
509
509
|
setup(e) {
|
|
510
|
-
let t = e, { t: r } =
|
|
510
|
+
let t = e, { t: r } = R(), i = c(() => t.groups.map((e) => ({
|
|
511
511
|
heading: r(e.heading),
|
|
512
512
|
rows: t.records.filter((t) => !e.type || t.badge === e.type)
|
|
513
513
|
})).filter((e) => e.rows.length));
|
|
514
514
|
function a() {
|
|
515
515
|
window.print();
|
|
516
516
|
}
|
|
517
|
-
return (t,
|
|
518
|
-
|
|
519
|
-
(
|
|
517
|
+
return (t, o) => (b(), d("aside", Ie, [
|
|
518
|
+
f("p", Le, [f("strong", null, w(T(r)(e.heading)), 1)]),
|
|
519
|
+
(b(!0), d(s, null, S(i.value, (e) => (b(), d("div", {
|
|
520
520
|
key: e.heading,
|
|
521
521
|
class: "mwnf-standalone-related__group"
|
|
522
|
-
}, [
|
|
522
|
+
}, [f("p", Re, w(e.heading), 1), f("ul", ze, [(b(!0), d(s, null, S(e.rows, (e) => (b(), d("li", { key: e.id }, [h(n, {
|
|
523
523
|
to: e.to,
|
|
524
524
|
title: e.imageAlt
|
|
525
525
|
}, {
|
|
526
|
-
default:
|
|
526
|
+
default: O(() => [e.image ? (b(), d("img", {
|
|
527
527
|
key: 0,
|
|
528
528
|
src: e.image,
|
|
529
529
|
alt: e.imageAlt
|
|
530
|
-
}, null, 8,
|
|
530
|
+
}, null, 8, Be)) : (b(), d("span", {
|
|
531
531
|
key: 1,
|
|
532
532
|
innerHTML: e.name
|
|
533
|
-
}, null, 8,
|
|
533
|
+
}, null, 8, Ve))]),
|
|
534
534
|
_: 2
|
|
535
535
|
}, 1032, ["to", "title"])]))), 128))])]))), 128)),
|
|
536
|
-
|
|
537
|
-
e.download ? (
|
|
536
|
+
C(t.$slots, "default"),
|
|
537
|
+
e.download ? (b(), d("div", He, [f("p", Ue, w(T(r)(e.download.heading)), 1), f("button", {
|
|
538
538
|
type: "button",
|
|
539
539
|
class: "mwnf-standalone-related__print",
|
|
540
540
|
onClick: a
|
|
541
|
-
},
|
|
541
|
+
}, w(T(r)(e.download.print)), 1)])) : u("", !0)
|
|
542
542
|
]));
|
|
543
543
|
}
|
|
544
|
-
},
|
|
544
|
+
}, We = { class: "mwnf-standalone-item__top" }, Ge = { class: "mwnf-standalone-item__left" }, Ke = {
|
|
545
545
|
key: 0,
|
|
546
546
|
class: "mwnf-standalone-item__back"
|
|
547
|
-
},
|
|
547
|
+
}, qe = {
|
|
548
548
|
__name: "ItemSheet",
|
|
549
549
|
props: {
|
|
550
550
|
spec: {
|
|
@@ -565,43 +565,46 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
565
565
|
}
|
|
566
566
|
},
|
|
567
567
|
setup(e) {
|
|
568
|
-
let
|
|
569
|
-
...
|
|
568
|
+
let o = e, { t: _ } = R(), y = E(), x = c(() => ({
|
|
569
|
+
...o.spec,
|
|
570
570
|
media: () => []
|
|
571
571
|
}));
|
|
572
|
-
function
|
|
573
|
-
|
|
572
|
+
function T(e) {
|
|
573
|
+
return i(D(e), o.spec.pictureLimit, e);
|
|
574
|
+
}
|
|
575
|
+
function D({ record: e, text: t, language: n }) {
|
|
576
|
+
if (o.spec.media) return o.spec.media(e, {
|
|
574
577
|
record: e,
|
|
575
578
|
text: t,
|
|
576
579
|
language: n
|
|
577
580
|
});
|
|
578
|
-
let r =
|
|
579
|
-
return (e?.images
|
|
581
|
+
let r = I(String(t?.name ?? e?.internal_name ?? ""));
|
|
582
|
+
return M(e?.images, n).map((e) => ({
|
|
580
583
|
url: e.url,
|
|
581
584
|
alt: e.captions?.[n] ?? r,
|
|
582
585
|
caption: e.captions?.[n] ?? "",
|
|
583
|
-
...
|
|
586
|
+
...j(e, n)
|
|
584
587
|
}));
|
|
585
588
|
}
|
|
586
|
-
let
|
|
589
|
+
let k = c(() => o.back.map((e) => ({
|
|
587
590
|
...e,
|
|
588
|
-
label:
|
|
589
|
-
}))),
|
|
591
|
+
label: _(e.label)
|
|
592
|
+
}))), A = /* @__PURE__ */ new Set([
|
|
590
593
|
"header",
|
|
591
594
|
"before-sheet",
|
|
592
595
|
"related",
|
|
593
596
|
"sidebar",
|
|
594
597
|
"aside"
|
|
595
|
-
]),
|
|
596
|
-
function
|
|
598
|
+
]), N = c(() => Object.keys(y).filter((e) => !A.has(e)));
|
|
599
|
+
function P() {
|
|
597
600
|
window.history.back();
|
|
598
601
|
}
|
|
599
|
-
return (
|
|
600
|
-
spec:
|
|
602
|
+
return (i, o) => (b(), l(a, {
|
|
603
|
+
spec: x.value,
|
|
601
604
|
id: e.id,
|
|
602
605
|
class: "mwnf-standalone-item"
|
|
603
|
-
},
|
|
604
|
-
header:
|
|
606
|
+
}, p({
|
|
607
|
+
header: O(({ languages: e, language: n, select: r }) => [f("div", We, [h(t, {
|
|
605
608
|
languages: e,
|
|
606
609
|
language: n,
|
|
607
610
|
onSelect: r
|
|
@@ -610,27 +613,27 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
610
613
|
"language",
|
|
611
614
|
"onSelect"
|
|
612
615
|
])])]),
|
|
613
|
-
"before-sheet":
|
|
616
|
+
"before-sheet": O((e) => [f("div", Ge, [k.value.length ? (b(), d("p", Ke, [(b(!0), d(s, null, S(k.value, (e) => (b(), d(s, { key: e.label }, [e.history ? (b(), d("button", {
|
|
614
617
|
key: 0,
|
|
615
618
|
type: "button",
|
|
616
619
|
class: "mwnf-standalone-item__back-link",
|
|
617
|
-
onClick:
|
|
618
|
-
},
|
|
620
|
+
onClick: P
|
|
621
|
+
}, w(e.label), 1)) : (b(), l(n, {
|
|
619
622
|
key: 1,
|
|
620
623
|
class: "mwnf-standalone-item__back-link",
|
|
621
624
|
to: e.to,
|
|
622
625
|
href: e.href
|
|
623
626
|
}, {
|
|
624
|
-
default:
|
|
627
|
+
default: O(() => [m(w(e.label), 1)]),
|
|
625
628
|
_: 2
|
|
626
|
-
}, 1032, ["to", "href"]))], 64))), 128))])) :
|
|
627
|
-
related:
|
|
629
|
+
}, 1032, ["to", "href"]))], 64))), 128))])) : u("", !0), h(r, { images: T(e) }, null, 8, ["images"])]), C(i.$slots, "before-sheet", v(g(e)))]),
|
|
630
|
+
related: O((t) => [h(Q, {
|
|
628
631
|
heading: e.related.heading ?? "record.related.title",
|
|
629
632
|
records: t.records,
|
|
630
633
|
groups: e.related.groups ?? [],
|
|
631
634
|
download: e.related.download ?? null
|
|
632
635
|
}, {
|
|
633
|
-
default:
|
|
636
|
+
default: O(() => [C(i.$slots, "sidebar", v(g(t)))]),
|
|
634
637
|
_: 2
|
|
635
638
|
}, 1032, [
|
|
636
639
|
"heading",
|
|
@@ -639,18 +642,18 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
639
642
|
"download"
|
|
640
643
|
])]),
|
|
641
644
|
_: 2
|
|
642
|
-
}, [
|
|
645
|
+
}, [S(N.value, (e) => ({
|
|
643
646
|
name: e,
|
|
644
|
-
fn:
|
|
647
|
+
fn: O((t) => [C(i.$slots, e, v(g(t)))])
|
|
645
648
|
}))]), 1032, ["spec", "id"]));
|
|
646
649
|
}
|
|
647
|
-
},
|
|
650
|
+
}, Je = ["innerHTML"], $ = {
|
|
648
651
|
key: 0,
|
|
649
652
|
class: "mwnf-standalone-page__link"
|
|
650
|
-
},
|
|
653
|
+
}, Ye = {
|
|
651
654
|
key: 1,
|
|
652
655
|
class: "mwnf-standalone-page__print"
|
|
653
|
-
},
|
|
656
|
+
}, Xe = {
|
|
654
657
|
__name: "TextPage",
|
|
655
658
|
props: {
|
|
656
659
|
body: {
|
|
@@ -671,33 +674,33 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
671
674
|
}
|
|
672
675
|
},
|
|
673
676
|
setup(e) {
|
|
674
|
-
let t = e, { t: r } =
|
|
677
|
+
let t = e, { t: r } = R(), i = c(() => P(r(t.body)));
|
|
675
678
|
function a() {
|
|
676
679
|
window.print();
|
|
677
680
|
}
|
|
678
|
-
return (t, o) => (
|
|
679
|
-
|
|
681
|
+
return (t, o) => (b(), d("article", { class: _(["mwnf-standalone-page", { "mwnf-standalone-page--drop-cap": e.dropCap }]) }, [
|
|
682
|
+
f("div", {
|
|
680
683
|
class: "mwnf-standalone-page__body",
|
|
681
684
|
innerHTML: i.value
|
|
682
|
-
}, null, 8,
|
|
683
|
-
e.link ? (
|
|
685
|
+
}, null, 8, Je),
|
|
686
|
+
e.link ? (b(), d("p", $, [h(n, {
|
|
684
687
|
to: e.link.to,
|
|
685
688
|
href: e.link.href
|
|
686
689
|
}, {
|
|
687
|
-
default:
|
|
690
|
+
default: O(() => [f("strong", null, w(e.link.text ?? T(r)(e.link.label)), 1)]),
|
|
688
691
|
_: 1
|
|
689
|
-
}, 8, ["to", "href"])])) :
|
|
690
|
-
e.print ? (
|
|
692
|
+
}, 8, ["to", "href"])])) : u("", !0),
|
|
693
|
+
e.print ? (b(), d("p", Ye, [f("button", {
|
|
691
694
|
type: "button",
|
|
692
695
|
class: "mwnf-standalone-page__print-button",
|
|
693
696
|
onClick: a
|
|
694
|
-
},
|
|
697
|
+
}, w(T(r)(e.print)), 1)])) : u("", !0)
|
|
695
698
|
], 2));
|
|
696
699
|
}
|
|
697
|
-
},
|
|
700
|
+
}, Ze = {
|
|
698
701
|
key: 0,
|
|
699
702
|
class: "mwnf-standalone-subnav"
|
|
700
|
-
},
|
|
703
|
+
}, Qe = { class: "mwnf-standalone-subnav__tabs" }, $e = {
|
|
701
704
|
__name: "SubNav",
|
|
702
705
|
props: {
|
|
703
706
|
tabs: {
|
|
@@ -710,37 +713,37 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
710
713
|
}
|
|
711
714
|
},
|
|
712
715
|
setup(e) {
|
|
713
|
-
let t = e, { t: r } =
|
|
716
|
+
let t = e, { t: r } = R(), i = c(() => t.tabs.map((e) => ({
|
|
714
717
|
...e,
|
|
715
718
|
label: r(e.label)
|
|
716
719
|
})));
|
|
717
|
-
return (t, a) => i.value.length || e.aside ? (
|
|
720
|
+
return (t, a) => i.value.length || e.aside ? (b(), d("nav", Ze, [f("ul", Qe, [(b(!0), d(s, null, S(i.value, (e) => (b(), d("li", { key: e.label }, [h(n, {
|
|
718
721
|
to: e.to,
|
|
719
722
|
href: e.href,
|
|
720
|
-
class:
|
|
723
|
+
class: _(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
|
|
721
724
|
"aria-current": e.active ? "page" : void 0
|
|
722
725
|
}, {
|
|
723
|
-
default:
|
|
726
|
+
default: O(() => [m(w(e.label), 1)]),
|
|
724
727
|
_: 2
|
|
725
728
|
}, 1032, [
|
|
726
729
|
"to",
|
|
727
730
|
"href",
|
|
728
731
|
"class",
|
|
729
732
|
"aria-current"
|
|
730
|
-
])]))), 128))]), e.aside ? (
|
|
733
|
+
])]))), 128))]), e.aside ? (b(), l(n, {
|
|
731
734
|
key: 0,
|
|
732
735
|
to: e.aside.to,
|
|
733
736
|
href: e.aside.href,
|
|
734
737
|
class: "mwnf-standalone-subnav__aside"
|
|
735
738
|
}, {
|
|
736
|
-
default:
|
|
739
|
+
default: O(() => [m(w(T(r)(e.aside.label)), 1)]),
|
|
737
740
|
_: 1
|
|
738
|
-
}, 8, ["to", "href"])) :
|
|
741
|
+
}, 8, ["to", "href"])) : u("", !0)])) : u("", !0);
|
|
739
742
|
}
|
|
740
|
-
},
|
|
743
|
+
}, et = ["disabled", "aria-label"], tt = { class: "mwnf-standalone-slider__track" }, nt = ["src", "alt"], rt = {
|
|
741
744
|
key: 0,
|
|
742
745
|
class: "mwnf-standalone-slider__label"
|
|
743
|
-
},
|
|
746
|
+
}, it = ["disabled", "aria-label"], at = {
|
|
744
747
|
__name: "Slider",
|
|
745
748
|
props: {
|
|
746
749
|
slides: {
|
|
@@ -761,45 +764,45 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
761
764
|
}
|
|
762
765
|
},
|
|
763
766
|
setup(e) {
|
|
764
|
-
let t = e, { t: r } =
|
|
767
|
+
let t = e, { t: r } = R(), i = H(), a = x(0), o = c(() => Math.max(0, t.slides.length - t.visible)), l = c(() => t.slides.slice(a.value, a.value + t.visible).map((e) => ({
|
|
765
768
|
...e,
|
|
766
769
|
image: i(e.image) ?? "",
|
|
767
770
|
label: e.label ? r(e.label) : ""
|
|
768
771
|
})));
|
|
769
|
-
return (t, i) => e.slides.length ? (
|
|
772
|
+
return (t, i) => e.slides.length ? (b(), d("div", {
|
|
770
773
|
key: 0,
|
|
771
774
|
class: "mwnf-standalone-slider",
|
|
772
|
-
style:
|
|
775
|
+
style: y({ "--mwnf-standalone-slider-count": e.visible })
|
|
773
776
|
}, [
|
|
774
|
-
|
|
777
|
+
f("button", {
|
|
775
778
|
type: "button",
|
|
776
779
|
class: "mwnf-standalone-slider__button",
|
|
777
780
|
disabled: a.value === 0,
|
|
778
|
-
"aria-label":
|
|
781
|
+
"aria-label": T(r)(e.previousLabel),
|
|
779
782
|
onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
|
|
780
|
-
}, "‹", 8,
|
|
781
|
-
|
|
783
|
+
}, "‹", 8, et),
|
|
784
|
+
f("ul", tt, [(b(!0), d(s, null, S(l.value, (e) => (b(), d("li", {
|
|
782
785
|
key: e.image,
|
|
783
786
|
class: "mwnf-standalone-slider__slide"
|
|
784
|
-
}, [
|
|
787
|
+
}, [h(n, {
|
|
785
788
|
to: e.to,
|
|
786
789
|
href: e.href
|
|
787
790
|
}, {
|
|
788
|
-
default:
|
|
791
|
+
default: O(() => [f("img", {
|
|
789
792
|
src: e.image,
|
|
790
793
|
alt: e.label
|
|
791
|
-
}, null, 8,
|
|
794
|
+
}, null, 8, nt), e.label ? (b(), d("span", rt, w(e.label), 1)) : u("", !0)]),
|
|
792
795
|
_: 2
|
|
793
796
|
}, 1032, ["to", "href"])]))), 128))]),
|
|
794
|
-
|
|
797
|
+
f("button", {
|
|
795
798
|
type: "button",
|
|
796
799
|
class: "mwnf-standalone-slider__button",
|
|
797
|
-
disabled: a.value >=
|
|
798
|
-
"aria-label":
|
|
799
|
-
onClick: i[1] ||= (e) => a.value = Math.min(
|
|
800
|
-
}, "›", 8,
|
|
801
|
-
], 4)) :
|
|
800
|
+
disabled: a.value >= o.value,
|
|
801
|
+
"aria-label": T(r)(e.nextLabel),
|
|
802
|
+
onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
|
|
803
|
+
}, "›", 8, it)
|
|
804
|
+
], 4)) : u("", !0);
|
|
802
805
|
}
|
|
803
806
|
};
|
|
804
807
|
//#endregion
|
|
805
|
-
export { Q as RelatedContent,
|
|
808
|
+
export { Q as RelatedContent, V as StandaloneBanner, Fe as StandaloneHome, qe as StandaloneItemSheet, ye as StandaloneShell, at as StandaloneSlider, Y as StandaloneSponsors, $e as StandaloneSubNav, Xe as StandaloneTextPage, Z as StandaloneTileGrid, X as TodayHighlight, U as byLanguage, W as dayOfYear, K as legacyHomeItemKey, G as pickForDay };
|