@museumwnf/viewer-layout 3.75.0 → 3.76.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.
@@ -9,7 +9,7 @@ var B = [
9
9
  "tags",
10
10
  "countries",
11
11
  "languages"
12
- ], V = 12, H = Object.freeze([
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 U(e) {
41
- return e < 900 ? 3 : e < 1125 ? 4 : e < 1350 ? 5 : Infinity;
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 W = [
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
- ], G = Object.freeze([
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 ne(e, t) {
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 re(e, t = H) {
69
+ function ie(e, t = V) {
70
70
  return t.find((t) => t.slug === e) ?? null;
71
71
  }
72
- function ie(e, t = 6) {
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 ae(e, t) {
82
+ function oe(e, t) {
83
83
  return t ? t.length <= e ? t : `${t.substring(0, t.lastIndexOf(" ", e))}...` : t ?? "";
84
84
  }
85
- var oe = (e, t) => (e.display_order ?? Infinity) - (t.display_order ?? Infinity);
86
- function K(e, t, n = null) {
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(oe);
92
+ return r.sort(se);
93
93
  }
94
- function q(e, t) {
95
- let n = new Set(K(e, t).map((e) => e.language).filter(Boolean));
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 se(e, t, n = null) {
99
- let r = q(e, t);
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 ce(e) {
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 le(e = {}, t = null) {
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 ue(e) {
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, ""), de = (e) => String(e ?? "").replace(/[^0-9xX]/g, "").toLowerCase();
141
- function fe(e) {
142
- return W.some((t) => Y(e?.[t]));
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 pe(e, t, { editionById: n, textsOf: r }) {
145
- if (!fe(t)) return [];
146
- let i = X(t.title).trim(), a = X(t.author).trim(), o = de(t.isbn);
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 = K(e, n), c = r(e), l = s.map((e) => e.texts ?? {});
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) => de(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));
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 me = O("publications"), he = O("editions"), ge = O("tags"), _e = O("countries"), ve = O("languages");
154
- function ye(e) {
155
- return e?.publications?.categories ?? H;
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 t = F(), r = L(), { locale: i } = I(), a = D("editions"), o = D("publications");
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
- i.value,
162
- ...e()
163
- ])], (e) => Promise.all(e.flatMap((e) => [t.loadTranslations("publications", e), t.loadTranslations("countries", e)])), { immediate: !0 });
164
- let s = n(() => me.value ?? []), c = n(() => ye(r)), l = (e, n) => t.translations("publications", n)[e?.id] ?? {};
165
- function u(e) {
166
- return e ? t.translations("countries", i.value)[e]?.name ?? t.translations("countries", "en")[e]?.name ?? "" : "";
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 d(e) {
169
- let n = t.manifest.projects?.[e]?.name;
170
- return n?.[i.value] ?? n?.en ?? "";
173
+ function p(e) {
174
+ let t = r.manifest.projects?.[e]?.name;
175
+ return t?.[a.value] ?? t?.en ?? "";
171
176
  }
172
- function f(e, t = e) {
173
- let n = (ve.value ?? []).find((t) => t.code === e);
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 p(e, t = null) {
177
- let n = a.value, r = se(e, n, t), i = K(e, n, r), o = l(e, r), s = i[0]?.texts ?? {}, c = i.length ? i[0].cover : e.cover;
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: ie(q(e, n)),
190
- country: u(e.country_id),
191
- project: d(e.project_id),
192
- title: s.title || o.title || "",
193
- subtitle: s.subtitle || o.subtitle || "",
194
- author: s.author || o.author_credit || "",
195
- formats: ce(i).join(", ")
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 m(e, n) {
199
- let r = (e) => t.translations("countries", "en")[e.country_id]?.name ?? "";
200
- return s.value.filter((t) => n(t, e)).map((e, t) => ({
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: r(e)
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: t,
208
- config: r,
209
- publications: s,
210
- editions: he,
211
- tags: ge,
212
- countries: _e,
213
- languages: ve,
214
- editionById: a,
215
- publicationById: o,
216
- categories: c,
217
- text: l,
218
- tile: p,
219
- inCategory: m,
220
- countryName: u,
221
- projectName: d,
222
- languageName: f
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, be = Object.freeze({
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
- }), xe = { class: "mwnf-books" }, Se = { class: "mwnf-books-header" }, Ce = { class: "mwnf-books-header__main" }, we = { class: "mwnf-books-header__logo" }, Te = ["href"], Ee = ["src"], De = { class: "mwnf-books-header__links" }, Oe = { class: "mwnf-books-header__nav" }, ke = ["href"], Ae = ["href"], je = ["aria-expanded", "aria-label"], Me = ["aria-label"], Ne = { class: "mwnf-books-search" }, Pe = ["aria-expanded", "aria-label"], Fe = {
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
- }, Ie = {
310
+ }, Le = {
306
311
  key: 1,
307
312
  "aria-hidden": "true"
308
- }, Le = {
313
+ }, Re = {
309
314
  key: 0,
310
315
  class: "mwnf-books-search__panel"
311
- }, Re = { class: "mwnf-books-search__explanation" }, ze = ["placeholder", "aria-label"], Be = ["placeholder", "aria-label"], Ve = ["placeholder", "aria-label"], He = ["onUpdate:modelValue", "aria-label"], Ue = { value: "" }, We = ["value"], Ge = { class: "mwnf-books-search__buttons" }, Ke = {
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
- }, qe = { class: "mwnf-books-main" }, Je = { class: "mwnf-books-footer" }, Ye = { class: "mwnf-books-footer__top" }, Xe = { class: "mwnf-books-footer__column mwnf-books-footer__brand" }, Ze = ["src"], Qe = { class: "mwnf-books-footer__heading" }, $e = ["href"], et = { class: "mwnf-books-footer__bottom" }, tt = ["href"], nt = {
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(() => ye(d)), k = n(() => d.publications?.footer ?? be), j = n(() => d.publications?.portal ?? A.portal), M = m(!1), N = m(!0), P = p(Object.fromEntries(W.map((e) => [e, ""])));
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 W) P[t] = typeof e[t] == "string" ? e[t] : "";
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 ?? []), V = n(() => ({
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(G.map((e) => ({
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
- })), H = [
357
+ })), V = [
353
358
  "language",
354
359
  "country",
355
360
  "subject",
356
361
  "type",
357
362
  "publisher"
358
363
  ];
359
- function U() {
360
- for (let e of W) P[e] = "";
364
+ function H() {
365
+ for (let e of U) P[e] = "";
361
366
  }
362
- function ne() {
363
- let e = Object.fromEntries(W.filter((e) => String(P[e]).trim() !== "").map((e) => [e, String(P[e]).trim()]));
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", xe, [
372
- o("header", Se, [
373
- o("div", Ce, [o("div", we, [o("a", { href: j.value }, [O("legacy/logo-blue.png") ? (f(), a("img", {
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, Ee)) : i("", !0)], 8, Te)]), o("div", De, [c(r, {
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", Oe, [
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, ke),
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, Ae),
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, je)
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, Me),
425
- o("div", Ne, [o("button", {
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", Fe, "⌃⌃")) : (f(), a("span", Ie, "⌄ ⚲ ⌄"))], 8, Pe), N.value ? (f(), a("div", Le, [o("p", Re, v(y(u)("publications.search.explanation")), 1), o("form", {
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(ne, ["prevent"])
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, ze), [[x, P.title]]),
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, Be), [[x, P.author]]),
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, Ve), [[x, P.isbn]]),
456
- (f(), a(t, null, h(H, (e) => T(o("select", {
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", Ue, v(y(u)(`publications.search.${e}`)), 1), (f(!0), a(t, null, h(V.value[e], (e) => (f(), a("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, We))), 128))], 8, He), [[b, P[e]]])), 64)),
465
- o("div", Ge, [o("button", {
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: U
469
- }, v(y(u)("publications.search.reset")), 1), o("button", Ke, v(y(u)("publications.search.submit")), 1)])
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", qe, [g(e.$slots, "default")]),
473
- o("footer", Je, [o("div", Ye, [o("div", Xe, [O("legacy/logo-white.png") ? (f(), a("img", {
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, Ze)) : 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", {
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", Qe, v(y(u)(e.heading)), 1), (f(!0), a(t, null, h(e.links, (e) => (f(), a("a", {
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, $e))), 128))]))), 128))]), o("div", et, [(f(!0), a(t, null, h(k.value.bottom, (e) => (f(), a("a", {
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, tt))), 128))])])
493
+ }, v(y(u)(e.label)), 9, nt))), 128))])])
489
494
  ]);
490
495
  };
491
496
  }
492
- }, rt = {
497
+ }, it = {
493
498
  class: "mwnf-books-tile__tooltip",
494
499
  role: "tooltip"
495
- }, it = { class: "mwnf-books-tile__media" }, at = {
500
+ }, at = { class: "mwnf-books-tile__media" }, ot = {
496
501
  key: 0,
497
502
  class: "mwnf-books-tile__cover"
498
- }, ot = ["src"], st = {
503
+ }, st = ["src"], ct = {
499
504
  key: 1,
500
505
  class: "mwnf-books-tile__cover mwnf-books-tile__cover--none"
501
- }, ct = { class: "mwnf-books-tile__languages" }, lt = {
506
+ }, lt = { class: "mwnf-books-tile__languages" }, ut = {
502
507
  key: 0,
503
508
  class: "mwnf-books-tile__language"
504
- }, ut = { class: "mwnf-books-tile__info" }, dt = {
509
+ }, dt = { class: "mwnf-books-tile__info" }, ft = {
505
510
  key: 0,
506
511
  class: "mwnf-books-tile__country"
507
- }, ft = {
512
+ }, pt = {
508
513
  key: 1,
509
514
  class: "mwnf-books-tile__project"
510
- }, pt = { class: "mwnf-books-tile__title" }, mt = {
515
+ }, mt = { class: "mwnf-books-tile__title" }, ht = {
511
516
  key: 2,
512
517
  class: "mwnf-books-tile__subtitle"
513
- }, ht = {
518
+ }, gt = {
514
519
  key: 3,
515
520
  class: "mwnf-books-tile__author"
516
- }, gt = {
521
+ }, _t = {
517
522
  key: 4,
518
523
  class: "mwnf-books-tile__formats"
519
- }, _t = {
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" ? ae(55, r.tile.subtitle) : r.tile.subtitle);
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", rt, v(y(s)("publications.card.hover")), 1),
541
- o("span", it, [e.tile.cover ? (f(), a("span", at, [o("img", {
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, ot)])) : (f(), a("span", st, v(y(s)("publications.card.imageComingSoon")), 1)), o("span", ct, [(f(!0), a(t, null, h(e.tile.languages.shown, (e) => (f(), a("span", {
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", lt, "+")) : i("", !0)])]),
549
- o("span", ut, [
550
- e.tile.country ? (f(), a("span", dt, v(e.tile.country), 1)) : i("", !0),
551
- e.tile.project ? (f(), a("span", ft, v(e.tile.project), 1)) : i("", !0),
552
- o("span", pt, v(e.tile.title), 1),
553
- u.value ? (f(), a("span", mt, v(u.value), 1)) : i("", !0),
554
- e.variant === "category" && e.tile.author ? (f(), a("span", ht, v(y(s)("publications.edition.authors")) + ": " + v(e.tile.author), 1)) : i("", !0),
555
- e.tile.formats ? (f(), a("span", gt, v(e.tile.formats), 1)) : i("", !0)
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
- }, vt = { class: "mwnf-books-home" }, yt = { class: "mwnf-books-home__label" }, bt = { class: "mwnf-books-home__tiles" }, xt = {
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, ne).slice(0, Math.min(12, U(p.value))).map((e) => l.tile(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", vt, [(f(!0), a(t, null, h(b.value, (e) => (f(), a("section", {
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", yt, [s(v(y(i)(e.entry.label)) + " ", 1), c(l, {
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", bt, [(f(!0), a(t, null, h(e.tiles, (e) => (f(), r(_t, {
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
- }, St = {
612
+ }, Ct = {
608
613
  key: 0,
609
614
  class: "mwnf-books-pages"
610
- }, Ct = ["disabled"], wt = ["disabled"], Tt = { class: "mwnf-books-pages__numbers" }, Et = [
615
+ }, wt = ["disabled"], Tt = ["disabled"], Et = { class: "mwnf-books-pages__numbers" }, Dt = [
611
616
  "disabled",
612
617
  "aria-current",
613
618
  "onClick"
614
- ], Dt = ["disabled"], Ot = ["disabled"], $ = {
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", St, [
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, Ct),
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, wt),
639
- o("span", Tt, [(f(!0), a(t, null, h(p.value, (e) => (f(), a("button", {
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, Et))), 128))]),
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, Dt),
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, Ot)
663
+ }, v(y(l)("publications.pagination.last")) + " >>", 9, kt)
659
664
  ])) : i("", !0);
660
665
  }
661
- }, kt = { class: "mwnf-books-list mwnf-books-category" }, At = { class: "mwnf-books-list__title" }, jt = { class: "mwnf-books-list__tiles" }, Mt = {
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
- }, Nt = {
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(() => re(i.category, d.categories.value)), m = n(() => M(p.value ? d.inCategory(p.value, ne) : [], l.query.page ?? 1, 12)), g = n(() => m.value.rows.map((e) => d.tile(e)));
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", kt, [p.value ? (f(), a(t, { key: 0 }, [
679
- o("h1", At, v(y(s)(p.value.label)), 1),
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", jt, [(f(!0), a(t, null, h(g.value, (e) => (f(), r(_t, {
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", Mt, v(y(s)("core.notFound.page")), 1))]));
698
+ ], 64)) : (f(), a("p", Nt, v(y(s)("core.notFound.page")), 1))]));
694
699
  }
695
- }, Pt = { class: "mwnf-books-list mwnf-books-results" }, Ft = { class: "mwnf-books-list__title" }, It = { key: 0 }, Lt = {
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
- }, Rt = {
703
+ }, zt = {
699
704
  key: 1,
700
705
  class: "mwnf-books-list__empty"
701
- }, zt = {
706
+ }, Bt = {
702
707
  key: 2,
703
708
  class: "mwnf-books-list__empty"
704
- }, Bt = {
709
+ }, Vt = {
705
710
  __name: "Results",
706
711
  setup(e) {
707
- let { t: s } = I(), l = R(), u = z(), d = n(() => Object.fromEntries(W.map((e) => [e, typeof l.query[e] == "string" ? l.query[e] : ""]))), { availableLanguages: p } = F(), m = Z({ languagesToLoad: () => p("publications") }), g = n(() => fe(d.value)), _ = (e) => (e.languages ?? []).map((t) => m.text(e, t)), b = n(() => pe(m.publications.value, d.value, {
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 = G.find((t) => t.value === e.type);
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", Pt, [
730
- o("h1", Ft, [o("span", null, v(y(s)("publications.results.title")), 1), C.value ? (f(), a("span", It, v(` ${y(s)("publications.results.for")} "${C.value}"`), 1)) : i("", !0)]),
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", Lt, [(f(!0), a(t, null, h(S.value, (e) => (f(), r(_t, {
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", Rt, v(y(s)("publications.results.none")), 1)) : (f(), a("p", zt, v(y(s)("publications.results.reset")), 1)),
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
- }, Vt = { class: "mwnf-books-publication" }, Ht = {
751
+ }, Ht = { class: "mwnf-books-publication" }, Ut = {
747
752
  key: 0,
748
753
  class: "mwnf-books-list__empty"
749
- }, Ut = { class: "mwnf-books-publication__header" }, Wt = {
754
+ }, Wt = { class: "mwnf-books-publication__header" }, Gt = {
750
755
  key: 0,
751
756
  class: "mwnf-books-publication__category"
752
- }, Gt = { class: "mwnf-books-publication__language" }, Kt = { class: "mwnf-books-publication__versions" }, qt = ["aria-pressed", "onClick"], Jt = ["dir", "lang"], Yt = { class: "mwnf-books-edition__cover-column" }, Xt = {
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
- }, Zt = ["src"], Qt = {
760
+ }, Qt = ["src"], $t = {
756
761
  key: 1,
757
762
  class: "mwnf-books-edition__cover mwnf-books-edition__cover--none"
758
- }, $t = { class: "mwnf-books-edition__cover-info" }, en = { key: 0 }, tn = {
763
+ }, en = { class: "mwnf-books-edition__cover-info" }, tn = { key: 0 }, nn = {
759
764
  key: 1,
760
765
  class: "mwnf-books-edition__format"
761
- }, nn = { key: 0 }, rn = {
766
+ }, rn = { key: 0 }, an = {
762
767
  key: 2,
763
768
  class: "mwnf-books-edition__pdf"
764
- }, an = ["href"], on = {
769
+ }, on = ["href"], sn = {
765
770
  key: 3,
766
771
  class: "mwnf-books-edition__pdf"
767
- }, sn = ["href"], cn = { class: "mwnf-books-edition__information" }, ln = { class: "mwnf-books-edition__group" }, un = {
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
- }, dn = {
775
+ }, fn = {
771
776
  key: 1,
772
777
  class: "mwnf-books-edition__project"
773
- }, fn = { class: "mwnf-books-edition__group" }, pn = {
778
+ }, pn = { class: "mwnf-books-edition__group" }, mn = {
774
779
  key: 0,
775
780
  class: "mwnf-books-edition__title"
776
- }, mn = {
781
+ }, hn = {
777
782
  key: 1,
778
783
  class: "mwnf-books-edition__subtitle"
779
- }, hn = { class: "mwnf-books-edition__group" }, gn = { key: 0 }, _n = { key: 1 }, vn = { key: 2 }, yn = { key: 3 }, bn = { key: 4 }, xn = {
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
- }, Sn = { class: "mwnf-books-edition__group" }, Cn = {
787
+ }, Cn = { class: "mwnf-books-edition__group" }, wn = {
783
788
  key: 0,
784
789
  class: "mwnf-books-edition__publisher"
785
- }, wn = {
790
+ }, Tn = {
786
791
  key: 1,
787
792
  class: "mwnf-books-edition__isbn"
788
- }, Tn = {
793
+ }, En = {
789
794
  key: 0,
790
795
  class: "mwnf-books-edition__about"
791
- }, En = { class: "mwnf-books-edition__about-header" }, Dn = ["innerHTML"], On = {
796
+ }, Dn = { class: "mwnf-books-edition__about-header" }, On = ["innerHTML"], kn = {
792
797
  key: 1,
793
798
  class: "mwnf-books-edition__more-about"
794
- }, kn = ["aria-expanded"], An = ["innerHTML"], jn = ["innerHTML"], Mn = ["dir", "lang"], Nn = { class: "mwnf-books-editions__information" }, Pn = {
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
- }, Fn = [
802
+ }, In = [
798
803
  "aria-pressed",
799
804
  "onClick",
800
805
  "onKeydown"
801
- ], In = {
806
+ ], Ln = {
802
807
  key: 0,
803
808
  class: "mwnf-books-editions__image"
804
- }, Ln = ["src"], Rn = { class: "mwnf-books-editions__group" }, zn = { key: 0 }, Bn = {
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
- }, Vn = { key: 2 }, Hn = { key: 3 }, Un = { key: 4 }, Wn = { key: 5 }, Gn = { class: "mwnf-books-editions__group" }, Kn = {
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
- }, qn = ["href"], Jn = {
815
+ }, Jn = ["href"], Yn = {
811
816
  key: 1,
812
817
  class: "mwnf-books-edition__pdf"
813
- }, Yn = ["href"], Xn = {
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 ? q(g.value, p.value) : [] }), b = n(() => g.value ? q(g.value, _.editionById.value) : []), x = n(() => g.value ? se(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 ? K(g.value, _.editionById.value, x.value) : []), A = m(0);
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) => le(M.value, e))), F = n(() => P.value[A.value] ?? le(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(() => {
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
- }), V = n(() => [j.value?.publish_year, O("publications.edition.languageVersion")].filter(Y).join(", ")), H = m(!1), U = (e) => Y(e) ? N(String(e), { breaks: !0 }) : "";
834
- function W(e) {
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 G(e) {
844
- if (A.value = e, H.value = !1, typeof window < "u" && typeof window.scrollTo == "function") try {
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", Vt, [g.value ? (f(), a(t, { key: 1 }, [
852
- o("div", Ut, [B.value ? (f(), a("span", Wt, v(B.value) + ", ", 1)) : i("", !0), o("span", Gt, v(O("publications.edition.languageVersion")), 1)]),
853
- o("div", Kt, [s(v(O("publications.publication.languages")) + ": ", 1), (f(!0), a(t, null, h(b.value, (e) => (f(), a("button", {
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) => W(e)
859
- }, v(y(_).languageName(e)), 11, qt))), 128))]),
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", Yt, [R.value ? (f(), a("div", Xt, [o("img", {
869
+ }, [o("div", Xt, [R.value ? (f(), a("div", Zt, [o("img", {
865
870
  src: R.value,
866
871
  alt: ""
867
- }, null, 8, Zt)])) : (f(), a("div", Qt, v(y(c)("publications.card.imageComingSoon")), 1)), o("div", $t, [
868
- V.value ? (f(), a("div", en, v(V.value), 1)) : i("", !0),
869
- y(Y)(j.value?.binding) ? (f(), a("div", tn, [s(v(j.value.binding), 1), y(Y)(j.value.dimensions) ? (f(), a("span", nn, " (" + v(j.value.dimensions) + ")", 1)) : i("", !0)])) : i("", !0),
870
- L.value.sample ? (f(), a("div", rn, [o("a", {
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, an)])) : i("", !0),
875
- L.value.credits ? (f(), a("div", on, [o("a", {
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, sn)])) : i("", !0)
880
- ])]), o("div", cn, [
881
- o("div", ln, [y(_).countryName(g.value.country_id) ? (f(), a("div", un, v(y(_).countryName(g.value.country_id)), 1)) : i("", !0), y(_).projectName(g.value.project_id) ? (f(), a("div", dn, v(y(_).projectName(g.value.project_id)), 1)) : i("", !0)]),
882
- o("div", fn, [y(Y)(F.value.title) ? (f(), a("div", pn, v(String(F.value.title).toUpperCase()), 1)) : i("", !0), y(Y)(F.value.subtitle) ? (f(), a("div", mn, v(F.value.subtitle), 1)) : i("", !0)]),
883
- o("div", hn, [
884
- y(Y)(F.value.authors) ? (f(), a("div", gn, v(O("publications.edition.authors")) + ": " + v(F.value.authors), 1)) : i("", !0),
885
- y(Y)(F.value.photographers) ? (f(), a("div", _n, v(O("publications.edition.photographers")) + ": " + v(F.value.photographers), 1)) : i("", !0),
886
- y(Y)(F.value.editors) ? (f(), a("div", vn, v(O("publications.edition.editors")) + ": " + v(F.value.editors), 1)) : i("", !0),
887
- y(Y)(F.value.pages) ? (f(), a("div", yn, v(O("publications.edition.pages")) + ": " + v(F.value.pages), 1)) : i("", !0),
888
- y(Y)(F.value.images) ? (f(), a("div", bn, v(O("publications.edition.images")) + ": " + v(F.value.images), 1)) : i("", !0),
889
- y(Y)(F.value.plans) ? (f(), a("div", xn, v(O("publications.edition.plans")) + ": " + v(F.value.plans), 1)) : i("", !0)
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", Sn, [y(Y)(j.value?.publisher) ? (f(), a("div", Cn, v(O("publications.edition.publishers")) + ": " + v(j.value.publisher), 1)) : i("", !0), y(Y)(j.value?.isbn) ? (f(), a("div", wn, v(O("publications.edition.isbn")) + ": " + v(j.value.isbn), 1)) : i("", !0)]),
892
- y(Y)(F.value.about) ? (f(), a("div", Tn, [o("div", En, v(O("publications.edition.about")), 1), o("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: U(F.value.about)
895
- }, null, 8, Dn)])) : i("", !0),
896
- y(Y)(F.value.moreAbout) ? (f(), a("div", On, [o("button", {
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": H.value,
900
- onClick: n[0] ||= (e) => H.value = !H.value
901
- }, v(O("publications.edition.moreAbout")), 9, kn), T(o("div", {
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: U(F.value.moreAbout)
904
- }, null, 8, An), [[S, H.value]])])) : i("", !0),
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: U(F.value.note)
909
- }, null, 8, jn)) : i("", !0)
910
- ])], 8, Jt),
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", Nn, [
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", Pn, v(F.value.subtitle) + ", ", 1)) : i("", !0),
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) => G(t),
928
- onKeydown: ee(E((e) => G(t), ["prevent"]), ["enter"])
932
+ onClick: (e) => W(t),
933
+ onKeydown: ee(E((e) => W(t), ["prevent"]), ["enter"])
929
934
  }, [
930
- e.cover ? (f(), a("div", In, [o("img", {
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, Ln)])) : i("", !0),
935
- o("div", Rn, [
936
- y(Y)(e.publisher) ? (f(), a("div", zn, v(O("publications.edition.publishers")) + ": " + v(e.publisher), 1)) : i("", !0),
937
- y(Y)(e.binding) ? (f(), a("div", Bn, v(e.binding), 1)) : i("", !0),
938
- y(Y)(e.dimensions) ? (f(), a("div", Vn, v(e.dimensions), 1)) : i("", !0),
939
- y(Y)(e.isbn) ? (f(), a("div", Hn, v(e.isbn), 1)) : i("", !0),
940
- y(Y)(e.publish_year) ? (f(), a("div", Un, v(e.publish_year), 1)) : i("", !0),
941
- y(Y)(e.edition) ? (f(), a("div", Wn, v(O("publications.edition.edition")) + ": " + v(e.edition), 1)) : i("", !0)
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", Gn, [y(J)(e).sample ? (f(), a("div", Kn, [o("a", {
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, qn)])) : i("", !0), y(J)(e).credits ? (f(), a("div", Jn, [o("a", {
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, Yn)])) : i("", !0)])
954
- ], 42, Fn))), 128))], 2)], 8, Mn)) : i("", !0)
955
- ], 64)) : (f(), a("p", Ht, v(y(c)("core.detail.notFound")), 1))]));
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 Zn(e = P()) {
964
+ function Qn(e = P()) {
960
965
  return [
961
966
  {
962
967
  path: "/",
963
968
  name: "home",
964
- component: xt,
969
+ component: St,
965
970
  meta: e("home", ...B)
966
971
  },
967
972
  {
968
973
  path: "/category/:category",
969
974
  name: "category",
970
- component: Nt,
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: Bt,
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: Xn,
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 Qn({ datasetPackage: e, origin: t, siteName: n, chrome: r = {}, publications: i = {} }) {
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: nt,
1010
+ shell: rt,
1006
1011
  navigation: { languages: k(o) },
1007
- views: { home: xt },
1008
- extraViews: Zn(P()),
1012
+ views: { home: St },
1013
+ extraViews: Qn(P()),
1009
1014
  legacyRoutes: []
1010
1015
  };
1011
1016
  }
1012
- export { G as FORMATS, V as PAGE_SIZE, be as PUBLICATIONS_FOOTER, H as PUBLICATION_CATEGORIES, B as PUBLICATION_ENTITIES, Xn as PublicationPage, _t as PublicationTile, Nt as PublicationsCategory, xt as PublicationsHome, $ as PublicationsPagination, Bt as PublicationsResults, nt as PublicationsShell, W as SEARCH_KEYS, q as availableLanguages, ye as categoriesOf, re as categoryBySlug, se as displayLanguage, J as documentsOf, le as editionText, K as editionsOf, ce as formatsOf, fe as hasSearch, U as homeLimit, ne as inCategory, ie as limitLanguages, Y as present, Qn as publicationsConfig, Zn as publicationsRoutes, pe as searchPublications, ue as themeKey, ae as truncate, Z as usePublications };
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 };