@museumwnf/viewer-layout 3.75.1 → 3.76.1
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/publications.js +267 -262
- package/dist/viewer-layout.css +1 -1
- package/package.json +1 -1
package/dist/publications.js
CHANGED
|
@@ -9,7 +9,7 @@ var B = [
|
|
|
9
9
|
"tags",
|
|
10
10
|
"countries",
|
|
11
11
|
"languages"
|
|
12
|
-
],
|
|
12
|
+
], ne = 12, V = Object.freeze([
|
|
13
13
|
{
|
|
14
14
|
slug: "new",
|
|
15
15
|
label: "publications.category.new",
|
|
@@ -37,10 +37,10 @@ var B = [
|
|
|
37
37
|
label: "publications.category.other"
|
|
38
38
|
}
|
|
39
39
|
]);
|
|
40
|
-
function
|
|
41
|
-
return e
|
|
40
|
+
function H(e) {
|
|
41
|
+
return e <= 474 ? 1 : e <= 699 ? 2 : e <= 899 ? 3 : e <= 1124 ? 4 : e <= 1349 ? 5 : 6;
|
|
42
42
|
}
|
|
43
|
-
var
|
|
43
|
+
var U = [
|
|
44
44
|
"title",
|
|
45
45
|
"author",
|
|
46
46
|
"isbn",
|
|
@@ -49,7 +49,7 @@ var W = [
|
|
|
49
49
|
"subject",
|
|
50
50
|
"type",
|
|
51
51
|
"publisher"
|
|
52
|
-
],
|
|
52
|
+
], W = Object.freeze([
|
|
53
53
|
{
|
|
54
54
|
value: "print",
|
|
55
55
|
label: "publications.format.print"
|
|
@@ -63,13 +63,13 @@ var W = [
|
|
|
63
63
|
label: "publications.format.ebook"
|
|
64
64
|
}
|
|
65
65
|
]);
|
|
66
|
-
function
|
|
66
|
+
function re(e, t) {
|
|
67
67
|
return !e || !t ? !1 : typeof t.match == "function" ? !!t.match(e) : t.match !== null && e.category === t.category;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ie(e, t = V) {
|
|
70
70
|
return t.find((t) => t.slug === e) ?? null;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ae(e, t = 6) {
|
|
73
73
|
let n = Array.isArray(e) ? e : [];
|
|
74
74
|
return n.length > t ? {
|
|
75
75
|
shown: n.slice(0, t),
|
|
@@ -79,27 +79,31 @@ function ie(e, t = 6) {
|
|
|
79
79
|
more: !1
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function oe(e, t) {
|
|
83
83
|
return t ? t.length <= e ? t : `${t.substring(0, t.lastIndexOf(" ", e))}...` : t ?? "";
|
|
84
84
|
}
|
|
85
|
-
var
|
|
86
|
-
function
|
|
85
|
+
var se = (e, t) => (e.display_order ?? Infinity) - (t.display_order ?? Infinity);
|
|
86
|
+
function G(e, t, n = null) {
|
|
87
87
|
let r = [];
|
|
88
88
|
for (let i of e?.edition_ids ?? []) {
|
|
89
89
|
let e = t.get(i);
|
|
90
90
|
e && (!n || e.language === n) && r.push(e);
|
|
91
91
|
}
|
|
92
|
-
return r.sort(
|
|
92
|
+
return r.sort(se);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
let
|
|
94
|
+
function ce(e, t, n = null) {
|
|
95
|
+
let r = (e) => Number(e.publish_year) || 0;
|
|
96
|
+
return G(e, t, n).sort((e, t) => r(t) - r(e) || se(e, t));
|
|
97
|
+
}
|
|
98
|
+
function K(e, t) {
|
|
99
|
+
let n = new Set(G(e, t).map((e) => e.language).filter(Boolean));
|
|
96
100
|
return (n.size ? [...n] : [...e?.languages ?? []]).sort();
|
|
97
101
|
}
|
|
98
|
-
function
|
|
99
|
-
let r =
|
|
102
|
+
function q(e, t, n = null) {
|
|
103
|
+
let r = K(e, t);
|
|
100
104
|
return n && r.includes(n) ? n : e?.language && r.includes(e.language) ? e.language : r[0] ?? e?.language ?? "en";
|
|
101
105
|
}
|
|
102
|
-
function
|
|
106
|
+
function le(e) {
|
|
103
107
|
let t = [];
|
|
104
108
|
for (let n of e ?? []) {
|
|
105
109
|
let e = String(n?.binding ?? "").trim();
|
|
@@ -107,7 +111,7 @@ function ce(e) {
|
|
|
107
111
|
}
|
|
108
112
|
return t;
|
|
109
113
|
}
|
|
110
|
-
function
|
|
114
|
+
function ue(e = {}, t = null) {
|
|
111
115
|
let n = t?.texts ?? {}, r = (e, t) => e ?? t ?? null;
|
|
112
116
|
return {
|
|
113
117
|
title: r(n.title, e.title),
|
|
@@ -133,48 +137,49 @@ function J(e) {
|
|
|
133
137
|
function Y(e) {
|
|
134
138
|
return e != null && String(e).trim() !== "";
|
|
135
139
|
}
|
|
136
|
-
function
|
|
140
|
+
function de(e) {
|
|
137
141
|
let t = String(e?.internal_name ?? "").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
|
|
138
142
|
return t.length === 0 ? "" : `publications.theme.${t.map((e, t) => t === 0 ? e : e[0].toUpperCase() + e.slice(1)).join("")}`;
|
|
139
143
|
}
|
|
140
|
-
var X = (e) => String(e ?? "").toLocaleLowerCase().normalize("NFD").replace(/[̀-ͯ]/g, ""),
|
|
141
|
-
function
|
|
142
|
-
return
|
|
144
|
+
var X = (e) => String(e ?? "").toLocaleLowerCase().normalize("NFD").replace(/[̀-ͯ]/g, ""), fe = (e) => String(e ?? "").replace(/[^0-9xX]/g, "").toLowerCase();
|
|
145
|
+
function pe(e) {
|
|
146
|
+
return U.some((t) => Y(e?.[t]));
|
|
143
147
|
}
|
|
144
|
-
function
|
|
145
|
-
if (!
|
|
146
|
-
let i = X(t.title).trim(), a = X(t.author).trim(), o =
|
|
148
|
+
function me(e, t, { editionById: n, textsOf: r }) {
|
|
149
|
+
if (!pe(t)) return [];
|
|
150
|
+
let i = X(t.title).trim(), a = X(t.author).trim(), o = fe(t.isbn);
|
|
147
151
|
return (e ?? []).filter((e) => {
|
|
148
|
-
let s =
|
|
149
|
-
return !(i && ![...c, ...l].some((e) => X(e.title).includes(i) || X(e.subtitle).includes(i)) || a && ![...c.map((e) => e.author_credit), ...l.map((e) => e.author)].some((e) => X(e).includes(a)) || o && !s.some((e) =>
|
|
152
|
+
let s = G(e, n), c = r(e), l = s.map((e) => e.texts ?? {});
|
|
153
|
+
return !(i && ![...c, ...l].some((e) => X(e.title).includes(i) || X(e.subtitle).includes(i)) || a && ![...c.map((e) => e.author_credit), ...l.map((e) => e.author)].some((e) => X(e).includes(a)) || o && !s.some((e) => fe(e.isbn).includes(o)) || Y(t.language) && !s.some((e) => e.language === t.language) || Y(t.type) && !s.some((e) => e.format === t.type) || Y(t.publisher) && !s.some((e) => e.publisher === t.publisher) || Y(t.country) && e.country_id !== t.country || Y(t.subject) && !(e.tag_ids ?? []).includes(t.subject));
|
|
150
154
|
});
|
|
151
155
|
}
|
|
152
156
|
// src/publications/data.js
|
|
153
|
-
var
|
|
154
|
-
function
|
|
155
|
-
return e?.publications?.categories ??
|
|
157
|
+
var he = O("publications"), ge = O("editions"), _e = O("tags"), ve = O("countries"), ye = O("languages");
|
|
158
|
+
function be(e) {
|
|
159
|
+
return e?.publications?.categories ?? V;
|
|
156
160
|
}
|
|
157
|
-
function Z({ languagesToLoad: e = () => [] } = {}) {
|
|
158
|
-
let
|
|
161
|
+
function Z({ languagesToLoad: e = () => [], tiles: t = !1 } = {}) {
|
|
162
|
+
let r = F(), i = L(), { locale: a } = I(), o = D("editions"), s = D("publications"), c = n(() => he.value ?? []), l = () => t ? c.value.map((e) => q(e, o.value)) : [];
|
|
159
163
|
C(() => [.../* @__PURE__ */ new Set([
|
|
160
164
|
"en",
|
|
161
|
-
|
|
162
|
-
...e()
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
a.value,
|
|
166
|
+
...e(),
|
|
167
|
+
...l()
|
|
168
|
+
])].filter(Boolean), (e) => Promise.all(e.flatMap((e) => [r.loadTranslations("publications", e), r.loadTranslations("countries", e)])), { immediate: !0 });
|
|
169
|
+
let u = n(() => be(i)), d = (e, t) => r.translations("publications", t)[e?.id] ?? {};
|
|
170
|
+
function f(e) {
|
|
171
|
+
return e ? r.translations("countries", a.value)[e]?.name ?? r.translations("countries", "en")[e]?.name ?? "" : "";
|
|
167
172
|
}
|
|
168
|
-
function
|
|
169
|
-
let
|
|
170
|
-
return
|
|
173
|
+
function p(e) {
|
|
174
|
+
let t = r.manifest.projects?.[e]?.name;
|
|
175
|
+
return t?.[a.value] ?? t?.en ?? "";
|
|
171
176
|
}
|
|
172
|
-
function
|
|
173
|
-
let n = (
|
|
177
|
+
function m(e, t = e) {
|
|
178
|
+
let n = (ye.value ?? []).find((t) => t.code === e);
|
|
174
179
|
return n?.names?.[t] ?? n?.names?.[e] ?? String(e ?? "").toUpperCase();
|
|
175
180
|
}
|
|
176
|
-
function
|
|
177
|
-
let n =
|
|
181
|
+
function h(e, t = null) {
|
|
182
|
+
let n = o.value, r = q(e, n, t), i = G(e, n, r), a = d(e, r), s = i[0]?.texts ?? {}, c = i.length ? i[0].cover : e.cover;
|
|
178
183
|
return {
|
|
179
184
|
id: e.id,
|
|
180
185
|
language: r,
|
|
@@ -186,44 +191,44 @@ function Z({ languagesToLoad: e = () => [] } = {}) {
|
|
|
186
191
|
}
|
|
187
192
|
},
|
|
188
193
|
cover: c?.url ?? null,
|
|
189
|
-
languages:
|
|
190
|
-
country:
|
|
191
|
-
project:
|
|
192
|
-
title: s.title ||
|
|
193
|
-
subtitle: s.subtitle ||
|
|
194
|
-
author: s.author ||
|
|
195
|
-
formats:
|
|
194
|
+
languages: ae(K(e, n)),
|
|
195
|
+
country: f(e.country_id),
|
|
196
|
+
project: p(e.project_id),
|
|
197
|
+
title: s.title || a.title || "",
|
|
198
|
+
subtitle: s.subtitle || a.subtitle || "",
|
|
199
|
+
author: s.author || a.author_credit || "",
|
|
200
|
+
formats: le(i).join(", ")
|
|
196
201
|
};
|
|
197
202
|
}
|
|
198
|
-
function
|
|
199
|
-
let
|
|
200
|
-
return
|
|
203
|
+
function g(e, t) {
|
|
204
|
+
let n = (e) => r.translations("countries", "en")[e.country_id]?.name ?? "";
|
|
205
|
+
return c.value.filter((n) => t(n, e)).map((e, t) => ({
|
|
201
206
|
publication: e,
|
|
202
207
|
order: t,
|
|
203
|
-
key:
|
|
208
|
+
key: n(e)
|
|
204
209
|
})).sort((e, t) => e.key.localeCompare(t.key) || e.order - t.order).map((e) => e.publication);
|
|
205
210
|
}
|
|
206
211
|
return {
|
|
207
|
-
pkg:
|
|
208
|
-
config:
|
|
209
|
-
publications:
|
|
210
|
-
editions:
|
|
211
|
-
tags:
|
|
212
|
-
countries:
|
|
213
|
-
languages:
|
|
214
|
-
editionById:
|
|
215
|
-
publicationById:
|
|
216
|
-
categories:
|
|
217
|
-
text:
|
|
218
|
-
tile:
|
|
219
|
-
inCategory:
|
|
220
|
-
countryName:
|
|
221
|
-
projectName:
|
|
222
|
-
languageName:
|
|
212
|
+
pkg: r,
|
|
213
|
+
config: i,
|
|
214
|
+
publications: c,
|
|
215
|
+
editions: ge,
|
|
216
|
+
tags: _e,
|
|
217
|
+
countries: ve,
|
|
218
|
+
languages: ye,
|
|
219
|
+
editionById: o,
|
|
220
|
+
publicationById: s,
|
|
221
|
+
categories: u,
|
|
222
|
+
text: d,
|
|
223
|
+
tile: h,
|
|
224
|
+
inCategory: g,
|
|
225
|
+
countryName: f,
|
|
226
|
+
projectName: p,
|
|
227
|
+
languageName: m
|
|
223
228
|
};
|
|
224
229
|
}
|
|
225
230
|
// src/publications/footer.js
|
|
226
|
-
var Q = A.portal,
|
|
231
|
+
var Q = A.portal, xe = Object.freeze({
|
|
227
232
|
columns: [
|
|
228
233
|
{
|
|
229
234
|
heading: "publications.footer.more",
|
|
@@ -299,19 +304,19 @@ var Q = A.portal, be = Object.freeze({
|
|
|
299
304
|
href: A.cookies
|
|
300
305
|
}
|
|
301
306
|
]
|
|
302
|
-
}),
|
|
307
|
+
}), Se = { class: "mwnf-books" }, Ce = { class: "mwnf-books-header" }, we = { class: "mwnf-books-header__main" }, Te = { class: "mwnf-books-header__logo" }, Ee = ["href"], De = ["src"], Oe = { class: "mwnf-books-header__links" }, ke = { class: "mwnf-books-header__nav" }, Ae = ["href"], je = ["href"], Me = ["aria-expanded", "aria-label"], Ne = ["aria-label"], Pe = { class: "mwnf-books-search" }, Fe = ["aria-expanded", "aria-label"], Ie = {
|
|
303
308
|
key: 0,
|
|
304
309
|
"aria-hidden": "true"
|
|
305
|
-
},
|
|
310
|
+
}, Le = {
|
|
306
311
|
key: 1,
|
|
307
312
|
"aria-hidden": "true"
|
|
308
|
-
},
|
|
313
|
+
}, Re = {
|
|
309
314
|
key: 0,
|
|
310
315
|
class: "mwnf-books-search__panel"
|
|
311
|
-
},
|
|
316
|
+
}, ze = { class: "mwnf-books-search__explanation" }, Be = ["placeholder", "aria-label"], Ve = ["placeholder", "aria-label"], He = ["placeholder", "aria-label"], Ue = ["onUpdate:modelValue", "aria-label"], We = { value: "" }, Ge = ["value"], Ke = { class: "mwnf-books-search__buttons" }, qe = {
|
|
312
317
|
type: "submit",
|
|
313
318
|
class: "mwnf-books-search__button"
|
|
314
|
-
},
|
|
319
|
+
}, Je = { class: "mwnf-books-main" }, Ye = { class: "mwnf-books-footer" }, Xe = { class: "mwnf-books-footer__top" }, Ze = { class: "mwnf-books-footer__column mwnf-books-footer__brand" }, Qe = ["src"], $e = { class: "mwnf-books-footer__heading" }, et = ["href"], tt = { class: "mwnf-books-footer__bottom" }, nt = ["href"], rt = {
|
|
315
320
|
__name: "Shell",
|
|
316
321
|
props: {
|
|
317
322
|
languages: {
|
|
@@ -324,11 +329,11 @@ var Q = A.portal, be = Object.freeze({
|
|
|
324
329
|
}
|
|
325
330
|
},
|
|
326
331
|
setup(r) {
|
|
327
|
-
let { t: u } = I(), d = L(), S = R(), ee = z(), D = Z(), O = (t) => e(d.chrome, t), te = n(() =>
|
|
332
|
+
let { t: u } = I(), d = L(), S = R(), ee = z(), D = Z(), O = (t) => e(d.chrome, t), te = n(() => be(d)), k = n(() => d.publications?.footer ?? xe), j = n(() => d.publications?.portal ?? A.portal), M = m(!1), N = m(!0), P = p(Object.fromEntries(U.map((e) => [e, ""])));
|
|
328
333
|
C(() => S.query, (e) => {
|
|
329
|
-
if (S.name === "results") for (let t of
|
|
334
|
+
if (S.name === "results") for (let t of U) P[t] = typeof e[t] == "string" ? e[t] : "";
|
|
330
335
|
}, { immediate: !0 });
|
|
331
|
-
let F = (e) => e.sort((e, t) => e.label.localeCompare(t.label)), B = n(() => D.editions.value ?? []),
|
|
336
|
+
let F = (e) => e.sort((e, t) => e.label.localeCompare(t.label)), B = n(() => D.editions.value ?? []), ne = n(() => ({
|
|
332
337
|
language: F([...new Set(B.value.map((e) => e.language).filter(Boolean))].map((e) => ({
|
|
333
338
|
value: e,
|
|
334
339
|
label: D.languageName(e, "en")
|
|
@@ -341,7 +346,7 @@ var Q = A.portal, be = Object.freeze({
|
|
|
341
346
|
value: e.id,
|
|
342
347
|
label: e.description ?? e.internal_name
|
|
343
348
|
}))),
|
|
344
|
-
type: F(
|
|
349
|
+
type: F(W.map((e) => ({
|
|
345
350
|
value: e.value,
|
|
346
351
|
label: u(e.label)
|
|
347
352
|
}))),
|
|
@@ -349,18 +354,18 @@ var Q = A.portal, be = Object.freeze({
|
|
|
349
354
|
value: e,
|
|
350
355
|
label: e
|
|
351
356
|
})))
|
|
352
|
-
})),
|
|
357
|
+
})), V = [
|
|
353
358
|
"language",
|
|
354
359
|
"country",
|
|
355
360
|
"subject",
|
|
356
361
|
"type",
|
|
357
362
|
"publisher"
|
|
358
363
|
];
|
|
359
|
-
function
|
|
360
|
-
for (let e of
|
|
364
|
+
function H() {
|
|
365
|
+
for (let e of U) P[e] = "";
|
|
361
366
|
}
|
|
362
|
-
function
|
|
363
|
-
let e = Object.fromEntries(
|
|
367
|
+
function re() {
|
|
368
|
+
let e = Object.fromEntries(U.filter((e) => String(P[e]).trim() !== "").map((e) => [e, String(P[e]).trim()]));
|
|
364
369
|
ee.push({
|
|
365
370
|
name: "results",
|
|
366
371
|
query: e
|
|
@@ -368,29 +373,29 @@ var Q = A.portal, be = Object.freeze({
|
|
|
368
373
|
}
|
|
369
374
|
return (e, n) => {
|
|
370
375
|
let r = _("RouterLink");
|
|
371
|
-
return f(), a("div",
|
|
372
|
-
o("header",
|
|
373
|
-
o("div",
|
|
376
|
+
return f(), a("div", Se, [
|
|
377
|
+
o("header", Ce, [
|
|
378
|
+
o("div", we, [o("div", Te, [o("a", { href: j.value }, [O("legacy/logo-blue.png") ? (f(), a("img", {
|
|
374
379
|
key: 0,
|
|
375
380
|
src: O("legacy/logo-blue.png"),
|
|
376
381
|
alt: ""
|
|
377
|
-
}, null, 8,
|
|
382
|
+
}, null, 8, De)) : i("", !0)], 8, Ee)]), o("div", Oe, [c(r, {
|
|
378
383
|
class: "mwnf-books-header__slogan",
|
|
379
384
|
to: { name: "home" }
|
|
380
385
|
}, {
|
|
381
386
|
default: w(() => [s(v(y(u)("publications.header.title")), 1)]),
|
|
382
387
|
_: 1
|
|
383
|
-
}), o("nav",
|
|
388
|
+
}), o("nav", ke, [
|
|
384
389
|
o("a", {
|
|
385
390
|
class: "mwnf-books-header__item",
|
|
386
391
|
href: y(A).about,
|
|
387
392
|
target: "_blank"
|
|
388
|
-
}, v(y(u)("publications.header.about")), 9,
|
|
393
|
+
}, v(y(u)("publications.header.about")), 9, Ae),
|
|
389
394
|
o("a", {
|
|
390
395
|
class: "mwnf-books-header__item",
|
|
391
396
|
href: y(A).contact,
|
|
392
397
|
target: "_blank"
|
|
393
|
-
}, v(y(u)("publications.header.contact")), 9,
|
|
398
|
+
}, v(y(u)("publications.header.contact")), 9, je),
|
|
394
399
|
c(r, {
|
|
395
400
|
class: "mwnf-books-header__item",
|
|
396
401
|
to: { name: "home" }
|
|
@@ -404,7 +409,7 @@ var Q = A.portal, be = Object.freeze({
|
|
|
404
409
|
"aria-expanded": M.value,
|
|
405
410
|
"aria-label": y(u)("layout.nav.menu"),
|
|
406
411
|
onClick: n[0] ||= (e) => M.value = !M.value
|
|
407
|
-
}, "☰", 8,
|
|
412
|
+
}, "☰", 8, Me)
|
|
408
413
|
])])]),
|
|
409
414
|
o("nav", {
|
|
410
415
|
class: l(["mwnf-books-menu", { "mwnf-books-menu--open": M.value }]),
|
|
@@ -421,16 +426,16 @@ var Q = A.portal, be = Object.freeze({
|
|
|
421
426
|
}, {
|
|
422
427
|
default: w(() => [s(v(y(u)(e.menu ?? e.label)), 1)]),
|
|
423
428
|
_: 2
|
|
424
|
-
}, 1032, ["to"])]))), 128))], 10,
|
|
425
|
-
o("div",
|
|
429
|
+
}, 1032, ["to"])]))), 128))], 10, Ne),
|
|
430
|
+
o("div", Pe, [o("button", {
|
|
426
431
|
type: "button",
|
|
427
432
|
class: "mwnf-books-search__toggle",
|
|
428
433
|
"aria-expanded": N.value,
|
|
429
434
|
"aria-label": y(u)("core.action.search"),
|
|
430
435
|
onClick: n[2] ||= (e) => N.value = !N.value
|
|
431
|
-
}, [N.value ? (f(), a("span",
|
|
436
|
+
}, [N.value ? (f(), a("span", Ie, "⌃⌃")) : (f(), a("span", Le, "⌄ ⚲ ⌄"))], 8, Fe), N.value ? (f(), a("div", Re, [o("p", ze, v(y(u)("publications.search.explanation")), 1), o("form", {
|
|
432
437
|
class: "mwnf-books-search__form",
|
|
433
|
-
onSubmit: E(
|
|
438
|
+
onSubmit: E(re, ["prevent"])
|
|
434
439
|
}, [
|
|
435
440
|
T(o("input", {
|
|
436
441
|
"onUpdate:modelValue": n[3] ||= (e) => P.title = e,
|
|
@@ -438,85 +443,85 @@ var Q = A.portal, be = Object.freeze({
|
|
|
438
443
|
type: "search",
|
|
439
444
|
placeholder: y(u)("publications.search.title"),
|
|
440
445
|
"aria-label": y(u)("publications.search.title")
|
|
441
|
-
}, null, 8,
|
|
446
|
+
}, null, 8, Be), [[x, P.title]]),
|
|
442
447
|
T(o("input", {
|
|
443
448
|
"onUpdate:modelValue": n[4] ||= (e) => P.author = e,
|
|
444
449
|
class: "mwnf-books-search__input",
|
|
445
450
|
type: "search",
|
|
446
451
|
placeholder: y(u)("publications.search.author"),
|
|
447
452
|
"aria-label": y(u)("publications.search.author")
|
|
448
|
-
}, null, 8,
|
|
453
|
+
}, null, 8, Ve), [[x, P.author]]),
|
|
449
454
|
T(o("input", {
|
|
450
455
|
"onUpdate:modelValue": n[5] ||= (e) => P.isbn = e,
|
|
451
456
|
class: "mwnf-books-search__input",
|
|
452
457
|
type: "search",
|
|
453
458
|
placeholder: y(u)("publications.search.isbn"),
|
|
454
459
|
"aria-label": y(u)("publications.search.isbn")
|
|
455
|
-
}, null, 8,
|
|
456
|
-
(f(), a(t, null, h(
|
|
460
|
+
}, null, 8, He), [[x, P.isbn]]),
|
|
461
|
+
(f(), a(t, null, h(V, (e) => T(o("select", {
|
|
457
462
|
key: e,
|
|
458
463
|
"onUpdate:modelValue": (t) => P[e] = t,
|
|
459
464
|
class: "mwnf-books-search__input",
|
|
460
465
|
"aria-label": y(u)(`publications.search.${e}`)
|
|
461
|
-
}, [o("option",
|
|
466
|
+
}, [o("option", We, v(y(u)(`publications.search.${e}`)), 1), (f(!0), a(t, null, h(ne.value[e], (e) => (f(), a("option", {
|
|
462
467
|
key: e.value,
|
|
463
468
|
value: e.value
|
|
464
|
-
}, v(e.label), 9,
|
|
465
|
-
o("div",
|
|
469
|
+
}, v(e.label), 9, Ge))), 128))], 8, Ue), [[b, P[e]]])), 64)),
|
|
470
|
+
o("div", Ke, [o("button", {
|
|
466
471
|
type: "button",
|
|
467
472
|
class: "mwnf-books-search__button mwnf-books-search__button--reset",
|
|
468
|
-
onClick:
|
|
469
|
-
}, v(y(u)("publications.search.reset")), 1), o("button",
|
|
473
|
+
onClick: H
|
|
474
|
+
}, v(y(u)("publications.search.reset")), 1), o("button", qe, v(y(u)("publications.search.submit")), 1)])
|
|
470
475
|
], 32)])) : i("", !0)])
|
|
471
476
|
]),
|
|
472
|
-
o("main",
|
|
473
|
-
o("footer",
|
|
477
|
+
o("main", Je, [g(e.$slots, "default")]),
|
|
478
|
+
o("footer", Ye, [o("div", Xe, [o("div", Ze, [O("legacy/logo-white.png") ? (f(), a("img", {
|
|
474
479
|
key: 0,
|
|
475
480
|
src: O("legacy/logo-white.png"),
|
|
476
481
|
alt: ""
|
|
477
|
-
}, null, 8,
|
|
482
|
+
}, null, 8, Qe)) : i("", !0), o("p", null, v(y(u)("publications.footer.slogan")), 1)]), (f(!0), a(t, null, h(k.value.columns, (e) => (f(), a("div", {
|
|
478
483
|
key: e.heading,
|
|
479
484
|
class: "mwnf-books-footer__column"
|
|
480
|
-
}, [o("p",
|
|
485
|
+
}, [o("p", $e, v(y(u)(e.heading)), 1), (f(!0), a(t, null, h(e.links, (e) => (f(), a("a", {
|
|
481
486
|
key: e.label,
|
|
482
487
|
class: "mwnf-books-footer__link",
|
|
483
488
|
href: e.href
|
|
484
|
-
}, v(y(u)(e.label)), 9,
|
|
489
|
+
}, v(y(u)(e.label)), 9, et))), 128))]))), 128))]), o("div", tt, [(f(!0), a(t, null, h(k.value.bottom, (e) => (f(), a("a", {
|
|
485
490
|
key: e.label,
|
|
486
491
|
class: "mwnf-books-footer__bottom-link",
|
|
487
492
|
href: e.href
|
|
488
|
-
}, v(y(u)(e.label)), 9,
|
|
493
|
+
}, v(y(u)(e.label)), 9, nt))), 128))])])
|
|
489
494
|
]);
|
|
490
495
|
};
|
|
491
496
|
}
|
|
492
|
-
},
|
|
497
|
+
}, it = {
|
|
493
498
|
class: "mwnf-books-tile__tooltip",
|
|
494
499
|
role: "tooltip"
|
|
495
|
-
},
|
|
500
|
+
}, at = { class: "mwnf-books-tile__media" }, ot = {
|
|
496
501
|
key: 0,
|
|
497
502
|
class: "mwnf-books-tile__cover"
|
|
498
|
-
},
|
|
503
|
+
}, st = ["src"], ct = {
|
|
499
504
|
key: 1,
|
|
500
505
|
class: "mwnf-books-tile__cover mwnf-books-tile__cover--none"
|
|
501
|
-
},
|
|
506
|
+
}, lt = { class: "mwnf-books-tile__languages" }, ut = {
|
|
502
507
|
key: 0,
|
|
503
508
|
class: "mwnf-books-tile__language"
|
|
504
|
-
},
|
|
509
|
+
}, dt = { class: "mwnf-books-tile__info" }, ft = {
|
|
505
510
|
key: 0,
|
|
506
511
|
class: "mwnf-books-tile__country"
|
|
507
|
-
},
|
|
512
|
+
}, pt = {
|
|
508
513
|
key: 1,
|
|
509
514
|
class: "mwnf-books-tile__project"
|
|
510
|
-
},
|
|
515
|
+
}, mt = { class: "mwnf-books-tile__title" }, ht = {
|
|
511
516
|
key: 2,
|
|
512
517
|
class: "mwnf-books-tile__subtitle"
|
|
513
|
-
},
|
|
518
|
+
}, gt = {
|
|
514
519
|
key: 3,
|
|
515
520
|
class: "mwnf-books-tile__author"
|
|
516
|
-
},
|
|
521
|
+
}, _t = {
|
|
517
522
|
key: 4,
|
|
518
523
|
class: "mwnf-books-tile__formats"
|
|
519
|
-
},
|
|
524
|
+
}, vt = {
|
|
520
525
|
__name: "Tile",
|
|
521
526
|
props: {
|
|
522
527
|
tile: {
|
|
@@ -529,7 +534,7 @@ var Q = A.portal, be = Object.freeze({
|
|
|
529
534
|
}
|
|
530
535
|
},
|
|
531
536
|
setup(e) {
|
|
532
|
-
let r = e, { t: s } = I(), u = n(() => r.variant === "home" ?
|
|
537
|
+
let r = e, { t: s } = I(), u = n(() => r.variant === "home" ? oe(55, r.tile.subtitle) : r.tile.subtitle);
|
|
533
538
|
return (n, r) => {
|
|
534
539
|
let d = _("RouterLink");
|
|
535
540
|
return f(), a("div", { class: l(["mwnf-books-tile", `mwnf-books-tile--${e.variant}`]) }, [c(d, {
|
|
@@ -537,46 +542,46 @@ var Q = A.portal, be = Object.freeze({
|
|
|
537
542
|
to: e.tile.to
|
|
538
543
|
}, {
|
|
539
544
|
default: w(() => [
|
|
540
|
-
o("span",
|
|
541
|
-
o("span",
|
|
545
|
+
o("span", it, v(y(s)("publications.card.hover")), 1),
|
|
546
|
+
o("span", at, [e.tile.cover ? (f(), a("span", ot, [o("img", {
|
|
542
547
|
src: e.tile.cover,
|
|
543
548
|
alt: "",
|
|
544
549
|
loading: "lazy"
|
|
545
|
-
}, null, 8,
|
|
550
|
+
}, null, 8, st)])) : (f(), a("span", ct, v(y(s)("publications.card.imageComingSoon")), 1)), o("span", lt, [(f(!0), a(t, null, h(e.tile.languages.shown, (e) => (f(), a("span", {
|
|
546
551
|
key: e,
|
|
547
552
|
class: "mwnf-books-tile__language"
|
|
548
|
-
}, v(e.toUpperCase()), 1))), 128)), e.tile.languages.more ? (f(), a("span",
|
|
549
|
-
o("span",
|
|
550
|
-
e.tile.country ? (f(), a("span",
|
|
551
|
-
e.tile.project ? (f(), a("span",
|
|
552
|
-
o("span",
|
|
553
|
-
u.value ? (f(), a("span",
|
|
554
|
-
e.variant === "category" && e.tile.author ? (f(), a("span",
|
|
555
|
-
e.tile.formats ? (f(), a("span",
|
|
553
|
+
}, v(e.toUpperCase()), 1))), 128)), e.tile.languages.more ? (f(), a("span", ut, "+")) : i("", !0)])]),
|
|
554
|
+
o("span", dt, [
|
|
555
|
+
e.tile.country ? (f(), a("span", ft, v(e.tile.country), 1)) : i("", !0),
|
|
556
|
+
e.tile.project ? (f(), a("span", pt, v(e.tile.project), 1)) : i("", !0),
|
|
557
|
+
o("span", mt, v(e.tile.title), 1),
|
|
558
|
+
u.value ? (f(), a("span", ht, v(u.value), 1)) : i("", !0),
|
|
559
|
+
e.variant === "category" && e.tile.author ? (f(), a("span", gt, v(y(s)("publications.edition.authors")) + ": " + v(e.tile.author), 1)) : i("", !0),
|
|
560
|
+
e.tile.formats ? (f(), a("span", _t, v(e.tile.formats), 1)) : i("", !0)
|
|
556
561
|
])
|
|
557
562
|
]),
|
|
558
563
|
_: 1
|
|
559
564
|
}, 8, ["to"])], 2);
|
|
560
565
|
};
|
|
561
566
|
}
|
|
562
|
-
},
|
|
567
|
+
}, yt = { class: "mwnf-books-home" }, bt = { class: "mwnf-books-home__label" }, xt = { class: "mwnf-books-home__tiles" }, St = {
|
|
563
568
|
__name: "Home",
|
|
564
569
|
setup(e) {
|
|
565
|
-
let { t: i } = I(), l = Z(), p = m(typeof window < "u" ? window.innerWidth : 1400), g = () => {
|
|
570
|
+
let { t: i } = I(), l = Z({ tiles: !0 }), p = m(typeof window < "u" ? window.innerWidth : 1400), g = () => {
|
|
566
571
|
p.value = window.innerWidth;
|
|
567
572
|
};
|
|
568
573
|
d(() => window.addEventListener("resize", g)), u(() => window.removeEventListener("resize", g));
|
|
569
574
|
let b = n(() => l.categories.value.map((e) => ({
|
|
570
575
|
entry: e,
|
|
571
|
-
tiles: l.inCategory(e,
|
|
576
|
+
tiles: l.inCategory(e, re).slice(0, Math.min(12, H(p.value))).map((e) => l.tile(e))
|
|
572
577
|
})).filter((e) => e.tiles.length));
|
|
573
578
|
return (e, n) => {
|
|
574
579
|
let l = _("RouterLink");
|
|
575
|
-
return f(), a("div",
|
|
580
|
+
return f(), a("div", yt, [(f(!0), a(t, null, h(b.value, (e) => (f(), a("section", {
|
|
576
581
|
key: e.entry.slug,
|
|
577
582
|
class: "mwnf-books-home__band"
|
|
578
583
|
}, [
|
|
579
|
-
o("h2",
|
|
584
|
+
o("h2", bt, [s(v(y(i)(e.entry.label)) + " ", 1), c(l, {
|
|
580
585
|
class: "mwnf-books-home__see-all",
|
|
581
586
|
to: {
|
|
582
587
|
name: "category",
|
|
@@ -586,7 +591,7 @@ var Q = A.portal, be = Object.freeze({
|
|
|
586
591
|
default: w(() => [s(v(y(i)("publications.home.seeAll")) + " ›", 1)]),
|
|
587
592
|
_: 1
|
|
588
593
|
}, 8, ["to"])]),
|
|
589
|
-
o("div",
|
|
594
|
+
o("div", xt, [(f(!0), a(t, null, h(e.tiles, (e) => (f(), r(vt, {
|
|
590
595
|
key: e.id,
|
|
591
596
|
tile: e,
|
|
592
597
|
variant: "home"
|
|
@@ -604,14 +609,14 @@ var Q = A.portal, be = Object.freeze({
|
|
|
604
609
|
]))), 128))]);
|
|
605
610
|
};
|
|
606
611
|
}
|
|
607
|
-
},
|
|
612
|
+
}, Ct = {
|
|
608
613
|
key: 0,
|
|
609
614
|
class: "mwnf-books-pages"
|
|
610
|
-
},
|
|
615
|
+
}, wt = ["disabled"], Tt = ["disabled"], Et = { class: "mwnf-books-pages__numbers" }, Dt = [
|
|
611
616
|
"disabled",
|
|
612
617
|
"aria-current",
|
|
613
618
|
"onClick"
|
|
614
|
-
],
|
|
619
|
+
], Ot = ["disabled"], kt = ["disabled"], $ = {
|
|
615
620
|
__name: "Pagination",
|
|
616
621
|
props: { pageInfo: {
|
|
617
622
|
type: Object,
|
|
@@ -623,65 +628,65 @@ var Q = A.portal, be = Object.freeze({
|
|
|
623
628
|
function g(e) {
|
|
624
629
|
m(e) || c("navigate", e);
|
|
625
630
|
}
|
|
626
|
-
return (e, n) => d.value > 1 ? (f(), a("nav",
|
|
631
|
+
return (e, n) => d.value > 1 ? (f(), a("nav", Ct, [
|
|
627
632
|
o("button", {
|
|
628
633
|
type: "button",
|
|
629
634
|
class: "mwnf-books-pages__button",
|
|
630
635
|
disabled: m(1),
|
|
631
636
|
onClick: n[0] ||= (e) => g(1)
|
|
632
|
-
}, "<< " + v(y(l)("publications.pagination.first")), 9,
|
|
637
|
+
}, "<< " + v(y(l)("publications.pagination.first")), 9, wt),
|
|
633
638
|
o("button", {
|
|
634
639
|
type: "button",
|
|
635
640
|
class: "mwnf-books-pages__button",
|
|
636
641
|
disabled: m(u.value - 1),
|
|
637
642
|
onClick: n[1] ||= (e) => g(u.value - 1)
|
|
638
|
-
}, "< " + v(y(l)("publications.pagination.previous")), 9,
|
|
639
|
-
o("span",
|
|
643
|
+
}, "< " + v(y(l)("publications.pagination.previous")), 9, Tt),
|
|
644
|
+
o("span", Et, [(f(!0), a(t, null, h(p.value, (e) => (f(), a("button", {
|
|
640
645
|
key: e,
|
|
641
646
|
type: "button",
|
|
642
647
|
class: "mwnf-books-pages__button",
|
|
643
648
|
disabled: m(e),
|
|
644
649
|
"aria-current": e === u.value ? "page" : void 0,
|
|
645
650
|
onClick: (t) => g(e)
|
|
646
|
-
}, v(e), 9,
|
|
651
|
+
}, v(e), 9, Dt))), 128))]),
|
|
647
652
|
o("button", {
|
|
648
653
|
type: "button",
|
|
649
654
|
class: "mwnf-books-pages__button",
|
|
650
655
|
disabled: m(u.value + 1),
|
|
651
656
|
onClick: n[2] ||= (e) => g(u.value + 1)
|
|
652
|
-
}, v(y(l)("publications.pagination.next")) + " >", 9,
|
|
657
|
+
}, v(y(l)("publications.pagination.next")) + " >", 9, Ot),
|
|
653
658
|
o("button", {
|
|
654
659
|
type: "button",
|
|
655
660
|
class: "mwnf-books-pages__button",
|
|
656
661
|
disabled: m(d.value),
|
|
657
662
|
onClick: n[3] ||= (e) => g(d.value)
|
|
658
|
-
}, v(y(l)("publications.pagination.last")) + " >>", 9,
|
|
663
|
+
}, v(y(l)("publications.pagination.last")) + " >>", 9, kt)
|
|
659
664
|
])) : i("", !0);
|
|
660
665
|
}
|
|
661
|
-
},
|
|
666
|
+
}, At = { class: "mwnf-books-list mwnf-books-category" }, jt = { class: "mwnf-books-list__title" }, Mt = { class: "mwnf-books-list__tiles" }, Nt = {
|
|
662
667
|
key: 1,
|
|
663
668
|
class: "mwnf-books-list__empty"
|
|
664
|
-
},
|
|
669
|
+
}, Pt = {
|
|
665
670
|
__name: "Category",
|
|
666
671
|
props: { category: {
|
|
667
672
|
type: String,
|
|
668
673
|
required: !0
|
|
669
674
|
} },
|
|
670
675
|
setup(e) {
|
|
671
|
-
let i = e, { t: s } = I(), l = R(), u = z(), d = Z(), p = n(() =>
|
|
676
|
+
let i = e, { t: s } = I(), l = R(), u = z(), d = Z({ tiles: !0 }), p = n(() => ie(i.category, d.categories.value)), m = n(() => M(p.value ? d.inCategory(p.value, re) : [], l.query.page ?? 1, 12)), g = n(() => m.value.rows.map((e) => d.tile(e)));
|
|
672
677
|
function _(e) {
|
|
673
678
|
u.push({ query: {
|
|
674
679
|
...l.query,
|
|
675
680
|
page: String(e)
|
|
676
681
|
} });
|
|
677
682
|
}
|
|
678
|
-
return (e, n) => (f(), a("div",
|
|
679
|
-
o("h1",
|
|
683
|
+
return (e, n) => (f(), a("div", At, [p.value ? (f(), a(t, { key: 0 }, [
|
|
684
|
+
o("h1", jt, v(y(s)(p.value.label)), 1),
|
|
680
685
|
c($, {
|
|
681
686
|
"page-info": m.value,
|
|
682
687
|
onNavigate: _
|
|
683
688
|
}, null, 8, ["page-info"]),
|
|
684
|
-
o("div",
|
|
689
|
+
o("div", Mt, [(f(!0), a(t, null, h(g.value, (e) => (f(), r(vt, {
|
|
685
690
|
key: e.id,
|
|
686
691
|
tile: e,
|
|
687
692
|
variant: "category"
|
|
@@ -690,25 +695,25 @@ var Q = A.portal, be = Object.freeze({
|
|
|
690
695
|
"page-info": m.value,
|
|
691
696
|
onNavigate: _
|
|
692
697
|
}, null, 8, ["page-info"])
|
|
693
|
-
], 64)) : (f(), a("p",
|
|
698
|
+
], 64)) : (f(), a("p", Nt, v(y(s)("core.notFound.page")), 1))]));
|
|
694
699
|
}
|
|
695
|
-
},
|
|
700
|
+
}, Ft = { class: "mwnf-books-list mwnf-books-results" }, It = { class: "mwnf-books-list__title" }, Lt = { key: 0 }, Rt = {
|
|
696
701
|
key: 0,
|
|
697
702
|
class: "mwnf-books-list__tiles"
|
|
698
|
-
},
|
|
703
|
+
}, zt = {
|
|
699
704
|
key: 1,
|
|
700
705
|
class: "mwnf-books-list__empty"
|
|
701
|
-
},
|
|
706
|
+
}, Bt = {
|
|
702
707
|
key: 2,
|
|
703
708
|
class: "mwnf-books-list__empty"
|
|
704
|
-
},
|
|
709
|
+
}, Vt = {
|
|
705
710
|
__name: "Results",
|
|
706
711
|
setup(e) {
|
|
707
|
-
let { t: s } = I(), l = R(), u = z(), d = n(() => Object.fromEntries(
|
|
712
|
+
let { t: s } = I(), l = R(), u = z(), d = n(() => Object.fromEntries(U.map((e) => [e, typeof l.query[e] == "string" ? l.query[e] : ""]))), { availableLanguages: p } = F(), m = Z({ languagesToLoad: () => p("publications") }), g = n(() => pe(d.value)), _ = (e) => (e.languages ?? []).map((t) => m.text(e, t)), b = n(() => me(m.publications.value, d.value, {
|
|
708
713
|
editionById: m.editionById.value,
|
|
709
714
|
textsOf: _
|
|
710
715
|
})), x = n(() => M(b.value, l.query.page ?? 1, 12)), S = n(() => x.value.rows.map((e) => m.tile(e, d.value.language || null))), C = n(() => {
|
|
711
|
-
let e = d.value, t = (m.tags.value ?? []).find((t) => t.id === e.subject), n =
|
|
716
|
+
let e = d.value, t = (m.tags.value ?? []).find((t) => t.id === e.subject), n = W.find((t) => t.value === e.type);
|
|
712
717
|
return [
|
|
713
718
|
e.title,
|
|
714
719
|
e.author,
|
|
@@ -726,91 +731,91 @@ var Q = A.portal, be = Object.freeze({
|
|
|
726
731
|
page: String(e)
|
|
727
732
|
} });
|
|
728
733
|
}
|
|
729
|
-
return (e, n) => (f(), a("div",
|
|
730
|
-
o("h1",
|
|
734
|
+
return (e, n) => (f(), a("div", Ft, [
|
|
735
|
+
o("h1", It, [o("span", null, v(y(s)("publications.results.title")), 1), C.value ? (f(), a("span", Lt, v(` ${y(s)("publications.results.for")} "${C.value}"`), 1)) : i("", !0)]),
|
|
731
736
|
c($, {
|
|
732
737
|
"page-info": x.value,
|
|
733
738
|
onNavigate: w
|
|
734
739
|
}, null, 8, ["page-info"]),
|
|
735
|
-
S.value.length ? (f(), a("div",
|
|
740
|
+
S.value.length ? (f(), a("div", Rt, [(f(!0), a(t, null, h(S.value, (e) => (f(), r(vt, {
|
|
736
741
|
key: e.id,
|
|
737
742
|
tile: e,
|
|
738
743
|
variant: "results"
|
|
739
|
-
}, null, 8, ["tile"]))), 128))])) : g.value ? (f(), a("p",
|
|
744
|
+
}, null, 8, ["tile"]))), 128))])) : g.value ? (f(), a("p", zt, v(y(s)("publications.results.none")), 1)) : (f(), a("p", Bt, v(y(s)("publications.results.reset")), 1)),
|
|
740
745
|
c($, {
|
|
741
746
|
"page-info": x.value,
|
|
742
747
|
onNavigate: w
|
|
743
748
|
}, null, 8, ["page-info"])
|
|
744
749
|
]));
|
|
745
750
|
}
|
|
746
|
-
},
|
|
751
|
+
}, Ht = { class: "mwnf-books-publication" }, Ut = {
|
|
747
752
|
key: 0,
|
|
748
753
|
class: "mwnf-books-list__empty"
|
|
749
|
-
},
|
|
754
|
+
}, Wt = { class: "mwnf-books-publication__header" }, Gt = {
|
|
750
755
|
key: 0,
|
|
751
756
|
class: "mwnf-books-publication__category"
|
|
752
|
-
},
|
|
757
|
+
}, Kt = { class: "mwnf-books-publication__language" }, qt = { class: "mwnf-books-publication__versions" }, Jt = ["aria-pressed", "onClick"], Yt = ["dir", "lang"], Xt = { class: "mwnf-books-edition__cover-column" }, Zt = {
|
|
753
758
|
key: 0,
|
|
754
759
|
class: "mwnf-books-edition__cover"
|
|
755
|
-
},
|
|
760
|
+
}, Qt = ["src"], $t = {
|
|
756
761
|
key: 1,
|
|
757
762
|
class: "mwnf-books-edition__cover mwnf-books-edition__cover--none"
|
|
758
|
-
},
|
|
763
|
+
}, en = { class: "mwnf-books-edition__cover-info" }, tn = { key: 0 }, nn = {
|
|
759
764
|
key: 1,
|
|
760
765
|
class: "mwnf-books-edition__format"
|
|
761
|
-
},
|
|
766
|
+
}, rn = { key: 0 }, an = {
|
|
762
767
|
key: 2,
|
|
763
768
|
class: "mwnf-books-edition__pdf"
|
|
764
|
-
},
|
|
769
|
+
}, on = ["href"], sn = {
|
|
765
770
|
key: 3,
|
|
766
771
|
class: "mwnf-books-edition__pdf"
|
|
767
|
-
},
|
|
772
|
+
}, cn = ["href"], ln = { class: "mwnf-books-edition__information" }, un = { class: "mwnf-books-edition__group" }, dn = {
|
|
768
773
|
key: 0,
|
|
769
774
|
class: "mwnf-books-edition__country"
|
|
770
|
-
},
|
|
775
|
+
}, fn = {
|
|
771
776
|
key: 1,
|
|
772
777
|
class: "mwnf-books-edition__project"
|
|
773
|
-
},
|
|
778
|
+
}, pn = { class: "mwnf-books-edition__group" }, mn = {
|
|
774
779
|
key: 0,
|
|
775
780
|
class: "mwnf-books-edition__title"
|
|
776
|
-
},
|
|
781
|
+
}, hn = {
|
|
777
782
|
key: 1,
|
|
778
783
|
class: "mwnf-books-edition__subtitle"
|
|
779
|
-
},
|
|
784
|
+
}, gn = { class: "mwnf-books-edition__group" }, _n = { key: 0 }, vn = { key: 1 }, yn = { key: 2 }, bn = { key: 3 }, xn = { key: 4 }, Sn = {
|
|
780
785
|
key: 5,
|
|
781
786
|
class: "mwnf-books-edition__plans"
|
|
782
|
-
},
|
|
787
|
+
}, Cn = { class: "mwnf-books-edition__group" }, wn = {
|
|
783
788
|
key: 0,
|
|
784
789
|
class: "mwnf-books-edition__publisher"
|
|
785
|
-
},
|
|
790
|
+
}, Tn = {
|
|
786
791
|
key: 1,
|
|
787
792
|
class: "mwnf-books-edition__isbn"
|
|
788
|
-
},
|
|
793
|
+
}, En = {
|
|
789
794
|
key: 0,
|
|
790
795
|
class: "mwnf-books-edition__about"
|
|
791
|
-
},
|
|
796
|
+
}, Dn = { class: "mwnf-books-edition__about-header" }, On = ["innerHTML"], kn = {
|
|
792
797
|
key: 1,
|
|
793
798
|
class: "mwnf-books-edition__more-about"
|
|
794
|
-
},
|
|
799
|
+
}, An = ["aria-expanded"], jn = ["innerHTML"], Mn = ["innerHTML"], Nn = ["dir", "lang"], Pn = { class: "mwnf-books-editions__information" }, Fn = {
|
|
795
800
|
key: 0,
|
|
796
801
|
class: "mwnf-books-editions__subtitle"
|
|
797
|
-
},
|
|
802
|
+
}, In = [
|
|
798
803
|
"aria-pressed",
|
|
799
804
|
"onClick",
|
|
800
805
|
"onKeydown"
|
|
801
|
-
],
|
|
806
|
+
], Ln = {
|
|
802
807
|
key: 0,
|
|
803
808
|
class: "mwnf-books-editions__image"
|
|
804
|
-
},
|
|
809
|
+
}, Rn = ["src"], zn = { class: "mwnf-books-editions__group" }, Bn = { key: 0 }, Vn = {
|
|
805
810
|
key: 1,
|
|
806
811
|
class: "mwnf-books-editions__format"
|
|
807
|
-
},
|
|
812
|
+
}, Hn = { key: 2 }, Un = { key: 3 }, Wn = { key: 4 }, Gn = { key: 5 }, Kn = { class: "mwnf-books-editions__group" }, qn = {
|
|
808
813
|
key: 0,
|
|
809
814
|
class: "mwnf-books-edition__pdf"
|
|
810
|
-
},
|
|
815
|
+
}, Jn = ["href"], Yn = {
|
|
811
816
|
key: 1,
|
|
812
817
|
class: "mwnf-books-edition__pdf"
|
|
813
|
-
},
|
|
818
|
+
}, Xn = ["href"], Zn = {
|
|
814
819
|
__name: "Publication",
|
|
815
820
|
props: {
|
|
816
821
|
id: {
|
|
@@ -823,15 +828,15 @@ var Q = A.portal, be = Object.freeze({
|
|
|
823
828
|
}
|
|
824
829
|
},
|
|
825
830
|
setup(e) {
|
|
826
|
-
let r = e, { t: c, tIn: u } = I(), d = z(), p = D("editions"), g = n(() => D("publications").value.get(r.id) ?? null), _ = Z({ languagesToLoad: () => g.value ?
|
|
831
|
+
let r = e, { t: c, tIn: u } = I(), d = z(), p = D("editions"), g = n(() => D("publications").value.get(r.id) ?? null), _ = Z({ languagesToLoad: () => g.value ? K(g.value, p.value) : [] }), b = n(() => g.value ? K(g.value, _.editionById.value) : []), x = n(() => g.value ? q(g.value, _.editionById.value, r.language || null) : "en"), w = n(() => te(x.value) ? "rtl" : "ltr"), O = (e) => u(x.value, e), k = n(() => g.value ? ce(g.value, _.editionById.value, x.value) : []), A = m(0);
|
|
827
832
|
C([() => r.id, x], () => {
|
|
828
833
|
A.value = 0;
|
|
829
834
|
});
|
|
830
|
-
let j = n(() => k.value[A.value] ?? k.value[0] ?? null), M = n(() => g.value ? _.text(g.value, x.value) : {}), P = n(() => k.value.map((e) =>
|
|
835
|
+
let j = n(() => k.value[A.value] ?? k.value[0] ?? null), M = n(() => g.value ? _.text(g.value, x.value) : {}), P = n(() => k.value.map((e) => ue(M.value, e))), F = n(() => P.value[A.value] ?? ue(M.value, null)), L = n(() => J(j.value)), R = n(() => j.value?.cover?.url ?? (k.value.length ? null : g.value?.cover?.url ?? null)), B = n(() => {
|
|
831
836
|
let e = _.categories.value.find((e) => e.category && e.category === g.value?.category);
|
|
832
837
|
return e ? c(e.label) : "";
|
|
833
|
-
}),
|
|
834
|
-
function
|
|
838
|
+
}), ne = n(() => [j.value?.publish_year, O("publications.edition.languageVersion")].filter(Y).join(", ")), V = m(!1), H = (e) => Y(e) ? N(String(e), { breaks: !0 }) : "";
|
|
839
|
+
function U(e) {
|
|
835
840
|
e !== x.value && d.replace({
|
|
836
841
|
name: "publication",
|
|
837
842
|
params: {
|
|
@@ -840,83 +845,83 @@ var Q = A.portal, be = Object.freeze({
|
|
|
840
845
|
}
|
|
841
846
|
});
|
|
842
847
|
}
|
|
843
|
-
function
|
|
844
|
-
if (A.value = e,
|
|
848
|
+
function W(e) {
|
|
849
|
+
if (A.value = e, V.value = !1, typeof window < "u" && typeof window.scrollTo == "function") try {
|
|
845
850
|
window.scrollTo({
|
|
846
851
|
top: 0,
|
|
847
852
|
behavior: "smooth"
|
|
848
853
|
});
|
|
849
854
|
} catch {}
|
|
850
855
|
}
|
|
851
|
-
return (e, n) => (f(), a("div",
|
|
852
|
-
o("div",
|
|
853
|
-
o("div",
|
|
856
|
+
return (e, n) => (f(), a("div", Ht, [g.value ? (f(), a(t, { key: 1 }, [
|
|
857
|
+
o("div", Wt, [B.value ? (f(), a("span", Gt, v(B.value) + ", ", 1)) : i("", !0), o("span", Kt, v(O("publications.edition.languageVersion")), 1)]),
|
|
858
|
+
o("div", qt, [s(v(O("publications.publication.languages")) + ": ", 1), (f(!0), a(t, null, h(b.value, (e) => (f(), a("button", {
|
|
854
859
|
key: e,
|
|
855
860
|
type: "button",
|
|
856
861
|
class: l(["mwnf-books-publication__version", { "mwnf-books-publication__version--current": e === x.value }]),
|
|
857
862
|
"aria-pressed": e === x.value,
|
|
858
|
-
onClick: (t) =>
|
|
859
|
-
}, v(y(_).languageName(e)), 11,
|
|
863
|
+
onClick: (t) => U(e)
|
|
864
|
+
}, v(y(_).languageName(e)), 11, Jt))), 128))]),
|
|
860
865
|
o("div", {
|
|
861
866
|
class: "mwnf-books-edition",
|
|
862
867
|
dir: w.value,
|
|
863
868
|
lang: x.value
|
|
864
|
-
}, [o("div",
|
|
869
|
+
}, [o("div", Xt, [R.value ? (f(), a("div", Zt, [o("img", {
|
|
865
870
|
src: R.value,
|
|
866
871
|
alt: ""
|
|
867
|
-
}, null, 8,
|
|
868
|
-
|
|
869
|
-
y(Y)(j.value?.binding) ? (f(), a("div",
|
|
870
|
-
L.value.sample ? (f(), a("div",
|
|
872
|
+
}, null, 8, Qt)])) : (f(), a("div", $t, v(y(c)("publications.card.imageComingSoon")), 1)), o("div", en, [
|
|
873
|
+
ne.value ? (f(), a("div", tn, v(ne.value), 1)) : i("", !0),
|
|
874
|
+
y(Y)(j.value?.binding) ? (f(), a("div", nn, [s(v(j.value.binding), 1), y(Y)(j.value.dimensions) ? (f(), a("span", rn, " (" + v(j.value.dimensions) + ")", 1)) : i("", !0)])) : i("", !0),
|
|
875
|
+
L.value.sample ? (f(), a("div", an, [o("a", {
|
|
871
876
|
href: L.value.sample,
|
|
872
877
|
target: "_blank",
|
|
873
878
|
rel: "noopener"
|
|
874
|
-
}, v(O("publications.edition.lookInside")), 9,
|
|
875
|
-
L.value.credits ? (f(), a("div",
|
|
879
|
+
}, v(O("publications.edition.lookInside")), 9, on)])) : i("", !0),
|
|
880
|
+
L.value.credits ? (f(), a("div", sn, [o("a", {
|
|
876
881
|
href: L.value.credits,
|
|
877
882
|
target: "_blank",
|
|
878
883
|
rel: "noopener"
|
|
879
|
-
}, v(O("publications.edition.credits")), 9,
|
|
880
|
-
])]), o("div",
|
|
881
|
-
o("div",
|
|
882
|
-
o("div",
|
|
883
|
-
o("div",
|
|
884
|
-
y(Y)(F.value.authors) ? (f(), a("div",
|
|
885
|
-
y(Y)(F.value.photographers) ? (f(), a("div",
|
|
886
|
-
y(Y)(F.value.editors) ? (f(), a("div",
|
|
887
|
-
y(Y)(F.value.pages) ? (f(), a("div",
|
|
888
|
-
y(Y)(F.value.images) ? (f(), a("div",
|
|
889
|
-
y(Y)(F.value.plans) ? (f(), a("div",
|
|
884
|
+
}, v(O("publications.edition.credits")), 9, cn)])) : i("", !0)
|
|
885
|
+
])]), o("div", ln, [
|
|
886
|
+
o("div", un, [y(_).countryName(g.value.country_id) ? (f(), a("div", dn, v(y(_).countryName(g.value.country_id)), 1)) : i("", !0), y(_).projectName(g.value.project_id) ? (f(), a("div", fn, v(y(_).projectName(g.value.project_id)), 1)) : i("", !0)]),
|
|
887
|
+
o("div", pn, [y(Y)(F.value.title) ? (f(), a("div", mn, v(String(F.value.title).toUpperCase()), 1)) : i("", !0), y(Y)(F.value.subtitle) ? (f(), a("div", hn, v(F.value.subtitle), 1)) : i("", !0)]),
|
|
888
|
+
o("div", gn, [
|
|
889
|
+
y(Y)(F.value.authors) ? (f(), a("div", _n, v(O("publications.edition.authors")) + ": " + v(F.value.authors), 1)) : i("", !0),
|
|
890
|
+
y(Y)(F.value.photographers) ? (f(), a("div", vn, v(O("publications.edition.photographers")) + ": " + v(F.value.photographers), 1)) : i("", !0),
|
|
891
|
+
y(Y)(F.value.editors) ? (f(), a("div", yn, v(O("publications.edition.editors")) + ": " + v(F.value.editors), 1)) : i("", !0),
|
|
892
|
+
y(Y)(F.value.pages) ? (f(), a("div", bn, v(O("publications.edition.pages")) + ": " + v(F.value.pages), 1)) : i("", !0),
|
|
893
|
+
y(Y)(F.value.images) ? (f(), a("div", xn, v(O("publications.edition.images")) + ": " + v(F.value.images), 1)) : i("", !0),
|
|
894
|
+
y(Y)(F.value.plans) ? (f(), a("div", Sn, v(O("publications.edition.plans")) + ": " + v(F.value.plans), 1)) : i("", !0)
|
|
890
895
|
]),
|
|
891
|
-
o("div",
|
|
892
|
-
y(Y)(F.value.about) ? (f(), a("div",
|
|
896
|
+
o("div", Cn, [y(Y)(j.value?.publisher) ? (f(), a("div", wn, v(O("publications.edition.publishers")) + ": " + v(j.value.publisher), 1)) : i("", !0), y(Y)(j.value?.isbn) ? (f(), a("div", Tn, v(O("publications.edition.isbn")) + ": " + v(j.value.isbn), 1)) : i("", !0)]),
|
|
897
|
+
y(Y)(F.value.about) ? (f(), a("div", En, [o("div", Dn, v(O("publications.edition.about")), 1), o("div", {
|
|
893
898
|
class: "mwnf-books-edition__prose",
|
|
894
|
-
innerHTML:
|
|
895
|
-
}, null, 8,
|
|
896
|
-
y(Y)(F.value.moreAbout) ? (f(), a("div",
|
|
899
|
+
innerHTML: H(F.value.about)
|
|
900
|
+
}, null, 8, On)])) : i("", !0),
|
|
901
|
+
y(Y)(F.value.moreAbout) ? (f(), a("div", kn, [o("button", {
|
|
897
902
|
type: "button",
|
|
898
903
|
class: "mwnf-books-edition__more-about-header",
|
|
899
|
-
"aria-expanded":
|
|
900
|
-
onClick: n[0] ||= (e) =>
|
|
901
|
-
}, v(O("publications.edition.moreAbout")), 9,
|
|
904
|
+
"aria-expanded": V.value,
|
|
905
|
+
onClick: n[0] ||= (e) => V.value = !V.value
|
|
906
|
+
}, v(O("publications.edition.moreAbout")), 9, An), T(o("div", {
|
|
902
907
|
class: "mwnf-books-edition__prose",
|
|
903
|
-
innerHTML:
|
|
904
|
-
}, null, 8,
|
|
908
|
+
innerHTML: H(F.value.moreAbout)
|
|
909
|
+
}, null, 8, jn), [[S, V.value]])])) : i("", !0),
|
|
905
910
|
y(Y)(F.value.note) ? (f(), a("div", {
|
|
906
911
|
key: 2,
|
|
907
912
|
class: "mwnf-books-edition__note mwnf-books-edition__prose",
|
|
908
|
-
innerHTML:
|
|
909
|
-
}, null, 8,
|
|
910
|
-
])], 8,
|
|
913
|
+
innerHTML: H(F.value.note)
|
|
914
|
+
}, null, 8, Mn)) : i("", !0)
|
|
915
|
+
])], 8, Yt),
|
|
911
916
|
k.value.length > 1 ? (f(), a("div", {
|
|
912
917
|
key: 0,
|
|
913
918
|
class: "mwnf-books-editions",
|
|
914
919
|
dir: w.value,
|
|
915
920
|
lang: x.value
|
|
916
|
-
}, [o("div",
|
|
921
|
+
}, [o("div", Pn, [
|
|
917
922
|
s(v(O("publications.edition.editionsOf")) + " ", 1),
|
|
918
923
|
o("span", null, v(F.value.title) + ". ", 1),
|
|
919
|
-
y(Y)(F.value.subtitle) ? (f(), a("span",
|
|
924
|
+
y(Y)(F.value.subtitle) ? (f(), a("span", Fn, v(F.value.subtitle) + ", ", 1)) : i("", !0),
|
|
920
925
|
s(v(O("publications.edition.languageVersion")), 1)
|
|
921
926
|
]), o("div", { class: l(["mwnf-books-editions__list", { "mwnf-books-editions__list--scroll": k.value.length > 4 }]) }, [(f(!0), a(t, null, h(k.value, (e, t) => (f(), a("div", {
|
|
922
927
|
key: e.id,
|
|
@@ -924,63 +929,63 @@ var Q = A.portal, be = Object.freeze({
|
|
|
924
929
|
role: "button",
|
|
925
930
|
tabindex: "0",
|
|
926
931
|
"aria-pressed": t === A.value,
|
|
927
|
-
onClick: (e) =>
|
|
928
|
-
onKeydown: ee(E((e) =>
|
|
932
|
+
onClick: (e) => W(t),
|
|
933
|
+
onKeydown: ee(E((e) => W(t), ["prevent"]), ["enter"])
|
|
929
934
|
}, [
|
|
930
|
-
e.cover ? (f(), a("div",
|
|
935
|
+
e.cover ? (f(), a("div", Ln, [o("img", {
|
|
931
936
|
src: e.cover.url,
|
|
932
937
|
alt: "",
|
|
933
938
|
loading: "lazy"
|
|
934
|
-
}, null, 8,
|
|
935
|
-
o("div",
|
|
936
|
-
y(Y)(e.publisher) ? (f(), a("div",
|
|
937
|
-
y(Y)(e.binding) ? (f(), a("div",
|
|
938
|
-
y(Y)(e.dimensions) ? (f(), a("div",
|
|
939
|
-
y(Y)(e.isbn) ? (f(), a("div",
|
|
940
|
-
y(Y)(e.publish_year) ? (f(), a("div",
|
|
941
|
-
y(Y)(e.edition) ? (f(), a("div",
|
|
939
|
+
}, null, 8, Rn)])) : i("", !0),
|
|
940
|
+
o("div", zn, [
|
|
941
|
+
y(Y)(e.publisher) ? (f(), a("div", Bn, v(O("publications.edition.publishers")) + ": " + v(e.publisher), 1)) : i("", !0),
|
|
942
|
+
y(Y)(e.binding) ? (f(), a("div", Vn, v(e.binding), 1)) : i("", !0),
|
|
943
|
+
y(Y)(e.dimensions) ? (f(), a("div", Hn, v(e.dimensions), 1)) : i("", !0),
|
|
944
|
+
y(Y)(e.isbn) ? (f(), a("div", Un, v(e.isbn), 1)) : i("", !0),
|
|
945
|
+
y(Y)(e.publish_year) ? (f(), a("div", Wn, v(e.publish_year), 1)) : i("", !0),
|
|
946
|
+
y(Y)(e.edition) ? (f(), a("div", Gn, v(O("publications.edition.edition")) + ": " + v(e.edition), 1)) : i("", !0)
|
|
942
947
|
]),
|
|
943
|
-
o("div",
|
|
948
|
+
o("div", Kn, [y(J)(e).sample ? (f(), a("div", qn, [o("a", {
|
|
944
949
|
href: y(J)(e).sample,
|
|
945
950
|
target: "_blank",
|
|
946
951
|
rel: "noopener",
|
|
947
952
|
onClick: n[1] ||= E(() => {}, ["stop"])
|
|
948
|
-
}, v(O("publications.edition.lookInside")), 9,
|
|
953
|
+
}, v(O("publications.edition.lookInside")), 9, Jn)])) : i("", !0), y(J)(e).credits ? (f(), a("div", Yn, [o("a", {
|
|
949
954
|
href: y(J)(e).credits,
|
|
950
955
|
target: "_blank",
|
|
951
956
|
rel: "noopener",
|
|
952
957
|
onClick: n[2] ||= E(() => {}, ["stop"])
|
|
953
|
-
}, v(O("publications.edition.credits")), 9,
|
|
954
|
-
], 42,
|
|
955
|
-
], 64)) : (f(), a("p",
|
|
958
|
+
}, v(O("publications.edition.credits")), 9, Xn)])) : i("", !0)])
|
|
959
|
+
], 42, In))), 128))], 2)], 8, Nn)) : i("", !0)
|
|
960
|
+
], 64)) : (f(), a("p", Ut, v(y(c)("core.detail.notFound")), 1))]));
|
|
956
961
|
}
|
|
957
962
|
};
|
|
958
963
|
// src/publications/routes.js
|
|
959
|
-
function
|
|
964
|
+
function Qn(e = P()) {
|
|
960
965
|
return [
|
|
961
966
|
{
|
|
962
967
|
path: "/",
|
|
963
968
|
name: "home",
|
|
964
|
-
component:
|
|
969
|
+
component: St,
|
|
965
970
|
meta: e("home", ...B)
|
|
966
971
|
},
|
|
967
972
|
{
|
|
968
973
|
path: "/category/:category",
|
|
969
974
|
name: "category",
|
|
970
|
-
component:
|
|
975
|
+
component: Pt,
|
|
971
976
|
props: (e) => ({ category: String(e.params.category) }),
|
|
972
977
|
meta: e("category", ...B)
|
|
973
978
|
},
|
|
974
979
|
{
|
|
975
980
|
path: "/results",
|
|
976
981
|
name: "results",
|
|
977
|
-
component:
|
|
982
|
+
component: Vt,
|
|
978
983
|
meta: e("results", ...B)
|
|
979
984
|
},
|
|
980
985
|
{
|
|
981
986
|
path: "/publication/:id/:language?",
|
|
982
987
|
name: "publication",
|
|
983
|
-
component:
|
|
988
|
+
component: Zn,
|
|
984
989
|
props: (e) => ({
|
|
985
990
|
id: String(e.params.id),
|
|
986
991
|
language: String(e.params.language ?? "")
|
|
@@ -989,7 +994,7 @@ function Zn(e = P()) {
|
|
|
989
994
|
}
|
|
990
995
|
];
|
|
991
996
|
}
|
|
992
|
-
function
|
|
997
|
+
function $n({ datasetPackage: e, origin: t, siteName: n, chrome: r = {}, publications: i = {} }) {
|
|
993
998
|
let { manifest: a } = F(), o = j({
|
|
994
999
|
declared: ["en"],
|
|
995
1000
|
entity: "publications"
|
|
@@ -1002,11 +1007,11 @@ function Qn({ datasetPackage: e, origin: t, siteName: n, chrome: r = {}, publica
|
|
|
1002
1007
|
languages: o,
|
|
1003
1008
|
chrome: r,
|
|
1004
1009
|
publications: i,
|
|
1005
|
-
shell:
|
|
1010
|
+
shell: rt,
|
|
1006
1011
|
navigation: { languages: k(o) },
|
|
1007
|
-
views: { home:
|
|
1008
|
-
extraViews:
|
|
1012
|
+
views: { home: St },
|
|
1013
|
+
extraViews: Qn(P()),
|
|
1009
1014
|
legacyRoutes: []
|
|
1010
1015
|
};
|
|
1011
1016
|
}
|
|
1012
|
-
export {
|
|
1017
|
+
export { W as FORMATS, ne as PAGE_SIZE, xe as PUBLICATIONS_FOOTER, V as PUBLICATION_CATEGORIES, B as PUBLICATION_ENTITIES, Zn as PublicationPage, vt as PublicationTile, Pt as PublicationsCategory, St as PublicationsHome, $ as PublicationsPagination, Vt as PublicationsResults, rt as PublicationsShell, U as SEARCH_KEYS, K as availableLanguages, be as categoriesOf, ie as categoryBySlug, q as displayLanguage, J as documentsOf, ue as editionText, ce as editionsByYear, G as editionsOf, le as formatsOf, pe as hasSearch, H as homeLimit, re as inCategory, ae as limitLanguages, Y as present, $n as publicationsConfig, Qn as publicationsRoutes, me as searchPublications, de as themeKey, oe as truncate, Z as usePublications };
|