@museumwnf/viewer-layout 3.74.0 → 3.74.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.
@@ -108,16 +108,19 @@ function ce(e) {
108
108
  return t;
109
109
  }
110
110
  function le(e = {}, t = null) {
111
- let n = t?.texts ?? {}, r = (e, t) => e != null && e !== "" ? e : t ?? null;
111
+ let n = t?.texts ?? {}, r = (e, t) => e ?? t ?? null;
112
112
  return {
113
113
  title: r(n.title, e.title),
114
114
  subtitle: r(n.subtitle, e.subtitle),
115
- about: r(n.description1, e.description),
116
- moreAbout: r(n.description2, e.introduction),
115
+ about: r(n.description2, e.description),
116
+ moreAbout: r(n.description1, e.introduction),
117
117
  note: r(n.remarks1, null),
118
118
  authors: r(n.author, e.author_credit),
119
119
  photographers: r(n.photographer, e.photography_credit),
120
- editors: r(n.local_coordinator, e.coordination_credit)
120
+ editors: r(n.local_coordinator, e.coordination_credit),
121
+ pages: r(n.count_pages, t?.page_count),
122
+ images: r(n.count_images, t?.image_count),
123
+ plans: r(n.count_plans, t?.plan_count)
121
124
  };
122
125
  }
123
126
  function J(e) {
@@ -881,9 +884,9 @@ var Q = A.portal, be = Object.freeze({
881
884
  y(Y)(F.value.authors) ? (f(), a("div", gn, v(O("publications.edition.authors")) + ": " + v(F.value.authors), 1)) : i("", !0),
882
885
  y(Y)(F.value.photographers) ? (f(), a("div", _n, v(O("publications.edition.photographers")) + ": " + v(F.value.photographers), 1)) : i("", !0),
883
886
  y(Y)(F.value.editors) ? (f(), a("div", vn, v(O("publications.edition.editors")) + ": " + v(F.value.editors), 1)) : i("", !0),
884
- y(Y)(j.value?.page_count) ? (f(), a("div", yn, v(O("publications.edition.pages")) + ": " + v(j.value.page_count), 1)) : i("", !0),
885
- y(Y)(j.value?.image_count) ? (f(), a("div", bn, v(O("publications.edition.images")) + ": " + v(j.value.image_count), 1)) : i("", !0),
886
- y(Y)(j.value?.plan_count) ? (f(), a("div", xn, v(O("publications.edition.plans")) + ": " + v(j.value.plan_count), 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)
887
890
  ]),
888
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)]),
889
892
  y(Y)(F.value.about) ? (f(), a("div", Tn, [o("div", En, v(O("publications.edition.about")), 1), o("div", {
package/dist/travels.js CHANGED
@@ -7,44 +7,51 @@ var j = [
7
7
  "items",
8
8
  "countries",
9
9
  "languages"
10
- ], M = "exhibition trail", N = "itinerary", P = "location", F = Object.freeze(["GPA"]), I = Object.freeze([
10
+ ], M = "exhibition trail", N = "itinerary", P = "location", F = Object.freeze(["GPA"]), I = Object.freeze(["dz"]);
11
+ function L(e) {
12
+ return R(e)[1] ?? "";
13
+ }
14
+ function ee(e, t = I) {
15
+ return !t.includes(L(e));
16
+ }
17
+ var te = Object.freeze([
11
18
  "desc",
12
19
  "its",
13
20
  "cur"
14
- ]), ee = Object.freeze(["des", "vl"]);
15
- function L(e) {
16
- return String(e?.backward_compatibility ?? "").split(":").slice(2);
17
- }
21
+ ]), ne = Object.freeze(["des", "vl"]);
18
22
  function R(e) {
19
- return L(e)[0] ?? "";
23
+ return String(e?.backward_compatibility ?? "").split(":").slice(2);
20
24
  }
21
25
  function z(e) {
22
- let t = L(e);
26
+ return R(e)[0] ?? "";
27
+ }
28
+ function B(e) {
29
+ let t = R(e);
23
30
  return t[t.length - 1] ?? "";
24
31
  }
25
- function B(e, t = F) {
26
- return !t.includes(R(e));
32
+ function V(e, t = F) {
33
+ return !t.includes(z(e));
27
34
  }
28
- function V(e, t, n = null) {
35
+ function H(e, t, n = null) {
29
36
  return (e ?? []).filter((e) => e.parent_id === t && (!n || e.type === n));
30
37
  }
31
- function H(e) {
38
+ function U(e) {
32
39
  return (e ?? []).filter((e) => e.type === M);
33
40
  }
34
- function U(e, t) {
35
- return V(e, t?.id, N).flatMap((t) => V(e, t.id, P));
41
+ function W(e, t) {
42
+ return H(e, t?.id, N).flatMap((t) => H(e, t.id, P));
36
43
  }
37
- function W(e, t, n) {
38
- for (let r of U(e, t)) for (let e of r.items ?? []) {
44
+ function G(e, t, n) {
45
+ for (let r of W(e, t)) for (let e of r.items ?? []) {
39
46
  let t = n.get(e.id)?.project_id;
40
47
  if (t) return t;
41
48
  }
42
49
  return null;
43
50
  }
44
- function G(e) {
51
+ function K(e) {
45
52
  return [...new Set((e ?? []).map((e) => String(e ?? "").trim()).filter(Boolean))].sort((e, t) => e.localeCompare(t));
46
53
  }
47
- function K(e, t) {
54
+ function q(e, t) {
48
55
  let n = (e ?? []).findIndex((e) => e.id === t);
49
56
  return n < 0 ? {
50
57
  previous: null,
@@ -54,23 +61,23 @@ function K(e, t) {
54
61
  next: e[n + 1] ?? null
55
62
  };
56
63
  }
57
- function q(e, t, n, r = (e) => e?.captions?.en ?? e?.alt_text ?? "") {
64
+ function J(e, t, n, r = (e) => e?.captions?.en ?? e?.alt_text ?? "") {
58
65
  let i = [], a = (e, t) => (e.display_order ?? 0) - (t.display_order ?? 0), o = (e) => {
59
66
  for (let t of [...e ?? []].sort(a)) i.push({
60
67
  url: t.url,
61
68
  caption: r(t) ?? ""
62
69
  });
63
70
  };
64
- for (let r of V(e, t?.id, P)) {
71
+ for (let r of H(e, t?.id, P)) {
65
72
  o(r.images);
66
73
  for (let e of r.items ?? []) o(n.get(e.id)?.images);
67
74
  }
68
75
  return o(t?.images), i.filter((e) => e.url);
69
76
  }
70
- function J(e, t, n) {
71
- return q(e, t, n)[0]?.url ?? null;
77
+ function re(e, t, n) {
78
+ return J(e, t, n)[0]?.url ?? null;
72
79
  }
73
- function te(e, t) {
80
+ function ie(e, t) {
74
81
  let n = e?.publications?.[0];
75
82
  return n?.url ? t ? `${n.url}/${encodeURIComponent(t)}` : n.url : null;
76
83
  }
@@ -78,15 +85,15 @@ function Y(e) {
78
85
  return String(e ?? "").split(/\s*\n\s*/).map((e) => e.trim()).filter(Boolean);
79
86
  }
80
87
  // src/travels/data.js
81
- var ne = b("collections"), re = b("languages"), ie = ["collections", "countries"];
88
+ var ae = b("collections"), oe = b("languages"), se = ["collections", "countries"];
82
89
  function X({ languagesToLoad: e = () => [] } = {}) {
83
90
  let n = E(), r = O(), { locale: i } = D(), a = y("collections"), o = y("items");
84
91
  g(() => [.../* @__PURE__ */ new Set([
85
92
  "en",
86
93
  i.value,
87
94
  ...e()
88
- ])], (e) => Promise.all(e.flatMap((e) => ie.map((t) => n.loadTranslations(t, e)))), { immediate: !0 });
89
- let s = t(() => ne.value ?? []), c = t(() => r.travels?.hiddenProjects ?? F), l = t(() => H(s.value)), u = t(() => l.value.filter((e) => B(e, c.value))), d = (e, t = i.value) => n.translations("collections", t)[e?.id] ?? {}, f = (e, t) => d(e, t).extra ?? {};
95
+ ])], (e) => Promise.all(e.flatMap((e) => se.map((t) => n.loadTranslations(t, e)))), { immediate: !0 });
96
+ let s = t(() => ae.value ?? []), c = t(() => r.travels?.hiddenProjects ?? F), l = t(() => U(s.value)), u = t(() => l.value.filter((e) => V(e, c.value))), d = (e, t = i.value) => n.translations("collections", t)[e?.id] ?? {}, f = (e, t) => d(e, t).extra ?? {};
90
97
  function p(e) {
91
98
  return e ? n.translations("countries", i.value)[e]?.name ?? n.translations("countries", "en")[e]?.name ?? "" : "";
92
99
  }
@@ -95,10 +102,10 @@ function X({ languagesToLoad: e = () => [] } = {}) {
95
102
  return t?.[i.value] ?? t?.en ?? "";
96
103
  }
97
104
  function h(e) {
98
- let t = (re.value ?? []).find((t) => t.code === e);
105
+ let t = (oe.value ?? []).find((t) => t.code === e);
99
106
  return t?.names?.[e] ?? t?.names?.en ?? String(e ?? "").toUpperCase();
100
107
  }
101
- let _ = (e) => V(s.value, e?.id, N), v = (e) => V(s.value, e?.id, P), b = (e) => W(s.value, e, o.value);
108
+ let _ = (e) => H(s.value, e?.id, N), v = (e) => H(s.value, e?.id, P), b = (e) => G(s.value, e, o.value);
102
109
  return {
103
110
  pkg: n,
104
111
  config: r,
@@ -111,7 +118,7 @@ function X({ languagesToLoad: e = () => [] } = {}) {
111
118
  projects: t(() => {
112
119
  let e = /* @__PURE__ */ new Map();
113
120
  for (let t of u.value) {
114
- let n = R(t);
121
+ let n = z(t);
115
122
  n && !e.has(n) && e.set(n, {
116
123
  code: n,
117
124
  id: b(t)
@@ -131,7 +138,7 @@ function X({ languagesToLoad: e = () => [] } = {}) {
131
138
  };
132
139
  }
133
140
  // src/travels/Shell.vue
134
- var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se = ["aria-label"], ce = { class: "mwnf-travels-menu__list" }, le = { class: "mwnf-travels-menu__entry" }, ue = { class: "mwnf-travels-menu__children" }, de = { class: "mwnf-travels-menu__entry" }, fe = ["href"], pe = { class: "mwnf-travels-menu__entry" }, me = ["href", "title"], he = ["value", "aria-label"], ge = ["value"], _e = { class: "mwnf-travels-main" }, ve = { class: "mwnf-travels-footer" }, ye = ["href"], be = {
141
+ var ce = { class: "mwnf-travels" }, le = { class: "mwnf-travels-header" }, ue = ["aria-label"], de = { class: "mwnf-travels-menu__list" }, fe = { class: "mwnf-travels-menu__entry" }, pe = { class: "mwnf-travels-menu__children" }, me = { class: "mwnf-travels-menu__entry" }, he = ["href"], ge = { class: "mwnf-travels-menu__entry" }, _e = ["href", "title"], ve = ["value", "aria-label"], ye = ["value"], be = { class: "mwnf-travels-main" }, xe = { class: "mwnf-travels-footer" }, Se = ["href"], Ce = {
135
142
  __name: "Shell",
136
143
  props: {
137
144
  languages: {
@@ -149,7 +156,7 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
149
156
  if (y.travels?.books) return y.travels.books;
150
157
  let e = b.trails.value.find((e) => e.publications?.[0]?.url)?.publications[0].url;
151
158
  return e ? e.slice(0, e.indexOf("#")) || e : "https://books.museumwnf.org";
152
- }), w = t(() => [...new Set(b.listed.value.map((e) => e.country_id).filter(Boolean))].map((e) => ({
159
+ }), w = t(() => [...new Set(b.listed.value.filter((e) => ee(e)).map((e) => e.country_id).filter(Boolean))].map((e) => ({
153
160
  id: e,
154
161
  name: b.countryName(e)
155
162
  })).sort((e, t) => e.name.localeCompare(t.name))), T = (/* @__PURE__ */ new Date()).getFullYear(), E = [
@@ -176,8 +183,8 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
176
183
  ], k = t(() => u.languages.length > 1);
177
184
  return (t, c) => {
178
185
  let u = p("RouterLink");
179
- return l(), i("div", ae, [
180
- a("header", oe, [s(u, {
186
+ return l(), i("div", ce, [
187
+ a("header", le, [s(u, {
181
188
  class: "mwnf-travels-header__title",
182
189
  to: { name: "home" },
183
190
  title: h(v)("travels.header.homeTip")
@@ -187,11 +194,11 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
187
194
  }, 8, ["title"]), a("nav", {
188
195
  class: "mwnf-travels-menu",
189
196
  "aria-label": h(v)("layout.nav.label")
190
- }, [a("ul", ce, [
191
- a("li", le, [s(u, { to: { name: "home" } }, {
197
+ }, [a("ul", de, [
198
+ a("li", fe, [s(u, { to: { name: "home" } }, {
192
199
  default: _(() => [o(m(h(v)("travels.nav.exhibitionTrails")), 1)]),
193
200
  _: 1
194
- }), a("ul", ue, [(l(!0), i(e, null, d(h(b).projects.value, (e) => (l(), i("li", { key: e.code }, [s(u, { to: {
201
+ }), a("ul", pe, [(l(!0), i(e, null, d(h(b).projects.value, (e) => (l(), i("li", { key: e.code }, [s(u, { to: {
195
202
  name: "trails",
196
203
  query: { project: e.code }
197
204
  } }, {
@@ -204,11 +211,11 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
204
211
  default: _(() => [o(m(e.name), 1)]),
205
212
  _: 2
206
213
  }, 1032, ["to"])]))), 128))])]),
207
- a("li", de, [a("a", { href: C.value }, m(h(v)("travels.header.books")), 9, fe)]),
208
- a("li", pe, [a("a", {
214
+ a("li", me, [a("a", { href: C.value }, m(h(v)("travels.header.books")), 9, he)]),
215
+ a("li", ge, [a("a", {
209
216
  href: x.value,
210
217
  title: h(v)("travels.header.portalTip")
211
- }, m(h(v)("travels.header.portal")), 9, me)])
218
+ }, m(h(v)("travels.header.portal")), 9, _e)])
212
219
  ]), k.value ? (l(), i("select", {
213
220
  key: 0,
214
221
  class: "mwnf-travels-menu__language",
@@ -218,13 +225,13 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
218
225
  }, [(l(!0), i(e, null, d(n.languages, (e) => (l(), i("option", {
219
226
  key: e.code,
220
227
  value: e.code
221
- }, m(e.label), 9, ge))), 128))], 40, he)) : r("", !0)], 8, se)]),
222
- a("main", _e, [f(t.$slots, "default")]),
223
- a("footer", ve, [(l(), i(e, null, d(E, (t) => (l(), i(e, { key: t.label }, [a("a", { href: t.href }, m(h(v)(t.label)), 9, ye), c[1] ||= o("\xA0|\xA0 ", -1)], 64))), 64)), o(m(h(v)("core.footer.copyright")) + " 2004–" + m(h(T)), 1)])
228
+ }, m(e.label), 9, ye))), 128))], 40, ve)) : r("", !0)], 8, ue)]),
229
+ a("main", be, [f(t.$slots, "default")]),
230
+ a("footer", xe, [(l(), i(e, null, d(E, (t) => (l(), i(e, { key: t.label }, [a("a", { href: t.href }, m(h(v)(t.label)), 9, Se), c[1] ||= o("\xA0|\xA0 ", -1)], 64))), 64)), o(m(h(v)("core.footer.copyright")) + " 2004–" + m(h(T)), 1)])
224
231
  ]);
225
232
  };
226
233
  }
227
- }, xe = { class: "mwnf-travels-crumbs" }, Se = { key: 2 }, Z = {
234
+ }, we = { class: "mwnf-travels-crumbs" }, Te = { key: 2 }, Z = {
228
235
  __name: "Crumbs",
229
236
  props: { crumbs: {
230
237
  type: Array,
@@ -233,17 +240,17 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
233
240
  setup(t) {
234
241
  return (a, s) => {
235
242
  let c = p("RouterLink");
236
- return l(), i("nav", xe, [(l(!0), i(e, null, d(t.crumbs, (a, s) => (l(), i(e, { key: s }, [s > 0 ? (l(), i(e, { key: 0 }, [o("\xA0>\xA0")], 64)) : r("", !0), a.to && s < t.crumbs.length - 1 ? (l(), n(c, {
243
+ return l(), i("nav", we, [(l(!0), i(e, null, d(t.crumbs, (a, s) => (l(), i(e, { key: s }, [s > 0 ? (l(), i(e, { key: 0 }, [o("\xA0>\xA0")], 64)) : r("", !0), a.to && s < t.crumbs.length - 1 ? (l(), n(c, {
237
244
  key: 1,
238
245
  class: "mwnf-travels-crumbs__link",
239
246
  to: a.to
240
247
  }, {
241
248
  default: _(() => [o(m(a.text), 1)]),
242
249
  _: 2
243
- }, 1032, ["to"])) : (l(), i("span", Se, m(a.text), 1))], 64))), 128))]);
250
+ }, 1032, ["to"])) : (l(), i("span", Te, m(a.text), 1))], 64))), 128))]);
244
251
  };
245
252
  }
246
- }, Ce = { class: "mwnf-travels-home" }, we = { class: "mwnf-travels-home__banner" }, Te = { class: "mwnf-travels-home__heading" }, Ee = { class: "mwnf-travels-home__about" }, De = { class: "mwnf-travels-home__about-heading" }, Oe = { class: "mwnf-travels-home__selects" }, ke = { class: "mwnf-travels-home__select" }, Ae = { value: "" }, je = ["value"], Me = { class: "mwnf-travels-home__select" }, Ne = { value: "" }, Pe = ["value"], Q = {
253
+ }, Ee = { class: "mwnf-travels-home" }, De = { class: "mwnf-travels-home__banner" }, Oe = { class: "mwnf-travels-home__heading" }, ke = { class: "mwnf-travels-home__about" }, Ae = { class: "mwnf-travels-home__about-heading" }, je = { class: "mwnf-travels-home__selects" }, Me = { class: "mwnf-travels-home__select" }, Ne = { value: "" }, Pe = ["value"], Fe = { class: "mwnf-travels-home__select" }, Ie = { value: "" }, Le = ["value"], Q = {
247
254
  __name: "Home",
248
255
  setup(n) {
249
256
  let { t: r } = D(), o = A(), c = X(), u = t(() => [...new Set(c.listed.value.map((e) => e.country_id).filter(Boolean))].map((e) => ({
@@ -256,31 +263,31 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
256
263
  query: { [e]: t }
257
264
  });
258
265
  }
259
- return (t, n) => (l(), i("div", Ce, [
260
- a("div", we, [a("h1", Te, m(h(r)("travels.nav.exhibitionTrails")), 1), s(Z, { crumbs: [{
266
+ return (t, n) => (l(), i("div", Ee, [
267
+ a("div", De, [a("h1", Oe, m(h(r)("travels.nav.exhibitionTrails")), 1), s(Z, { crumbs: [{
261
268
  text: h(r)("travels.nav.home"),
262
269
  to: { name: "home" }
263
270
  }, { text: h(r)("travels.nav.exhibitionTrails") }] }, null, 8, ["crumbs"])]),
264
- a("div", Ee, [a("p", De, m(h(r)("travels.home.about")), 1), a("p", null, m(h(r)("travels.home.intro")), 1)]),
265
- a("div", Oe, [a("label", ke, [a("span", null, m(h(r)("travels.home.country")), 1), a("select", { onChange: n[0] ||= (e) => f("country", e.target.value) }, [a("option", Ae, m(h(r)("travels.home.selectCountry")), 1), (l(!0), i(e, null, d(u.value, (e) => (l(), i("option", {
271
+ a("div", ke, [a("p", Ae, m(h(r)("travels.home.about")), 1), a("p", null, m(h(r)("travels.home.intro")), 1)]),
272
+ a("div", je, [a("label", Me, [a("span", null, m(h(r)("travels.home.country")), 1), a("select", { onChange: n[0] ||= (e) => f("country", e.target.value) }, [a("option", Ne, m(h(r)("travels.home.selectCountry")), 1), (l(!0), i(e, null, d(u.value, (e) => (l(), i("option", {
266
273
  key: e.id,
267
274
  value: e.id
268
- }, m(e.name), 9, je))), 128))], 32)]), a("label", Me, [a("span", null, m(h(r)("travels.home.theme")), 1), a("select", { onChange: n[1] ||= (e) => f("project", e.target.value) }, [a("option", Ne, m(h(r)("travels.home.selectTheme")), 1), (l(!0), i(e, null, d(h(c).projects.value, (e) => (l(), i("option", {
275
+ }, m(e.name), 9, Pe))), 128))], 32)]), a("label", Fe, [a("span", null, m(h(r)("travels.home.theme")), 1), a("select", { onChange: n[1] ||= (e) => f("project", e.target.value) }, [a("option", Ie, m(h(r)("travels.home.selectTheme")), 1), (l(!0), i(e, null, d(h(c).projects.value, (e) => (l(), i("option", {
269
276
  key: e.code,
270
277
  value: e.code
271
- }, m(h(c).projectName(e.id) || e.code), 9, Pe))), 128))], 32)])])
278
+ }, m(h(c).projectName(e.id) || e.code), 9, Le))), 128))], 32)])])
272
279
  ]));
273
280
  }
274
- }, Fe = { class: "mwnf-travels-trails" }, Ie = { class: "mwnf-travels-banner" }, Le = { class: "mwnf-travels-banner__heading" }, Re = { class: "mwnf-travels-banner__about" }, ze = { class: "mwnf-travels-banner__about-heading" }, Be = { key: 0 }, Ve = { key: 1 }, He = { class: "mwnf-travels-trails__cover" }, Ue = ["src"], We = { class: "mwnf-travels-trails__text" }, Ge = {
281
+ }, Re = { class: "mwnf-travels-trails" }, ze = { class: "mwnf-travels-banner" }, Be = { class: "mwnf-travels-banner__heading" }, Ve = { class: "mwnf-travels-banner__about" }, He = { class: "mwnf-travels-banner__about-heading" }, Ue = { key: 0 }, We = { key: 1 }, Ge = { class: "mwnf-travels-trails__cover" }, Ke = ["src"], qe = { class: "mwnf-travels-trails__text" }, Je = {
275
282
  key: 0,
276
283
  class: "mwnf-travels-trails__title"
277
- }, Ke = { key: 0 }, qe = { key: 1 }, Je = { key: 2 }, Ye = { key: 3 }, Xe = { key: 4 }, Ze = {
284
+ }, Ye = { key: 0 }, Xe = { key: 1 }, Ze = { key: 2 }, Qe = { key: 3 }, $e = { key: 4 }, et = {
278
285
  key: 5,
279
286
  class: "mwnf-travels-trails__visit"
280
- }, Qe = {
287
+ }, tt = {
281
288
  __name: "Trails",
282
289
  setup(n) {
283
- let { t: c } = D(), u = k(), f = O(), g = () => f.languages ?? [], v = X({ languagesToLoad: g }), y = t(() => typeof u.query.country == "string" ? u.query.country : ""), b = t(() => typeof u.query.project == "string" ? u.query.project : ""), x = t(() => v.projects.value.find((e) => e.code === b.value) ?? null), S = t(() => y.value ? v.countryName(y.value) : x.value ? v.projectName(x.value.id) || x.value.code : ""), C = t(() => v.listed.value.filter((e) => y.value ? e.country_id === y.value : R(e) === b.value).map((e) => {
290
+ let { t: c } = D(), u = k(), f = O(), g = () => f.languages ?? [], v = X({ languagesToLoad: g }), y = t(() => typeof u.query.country == "string" ? u.query.country : ""), b = t(() => typeof u.query.project == "string" ? u.query.project : ""), x = t(() => v.projects.value.find((e) => e.code === b.value) ?? null), S = t(() => y.value ? v.countryName(y.value) : x.value ? v.projectName(x.value.id) || x.value.code : ""), C = t(() => v.listed.value.filter((e) => y.value ? e.country_id === y.value : z(e) === b.value).map((e) => {
284
291
  let t = v.text(e), n = e.publications?.[0];
285
292
  return {
286
293
  id: e.id,
@@ -290,7 +297,7 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
290
297
  country: v.countryName(e.country_id),
291
298
  region: t.extra?.region_territory ?? "",
292
299
  available: Object.keys(n?.titles ?? {}).map((e) => v.languageName(e)).sort((e, t) => e.localeCompare(t)),
293
- locations: G(U(v.collections.value, e).map((e) => v.text(e).title)),
300
+ locations: K(W(v.collections.value, e).map((e) => v.text(e).title)),
294
301
  visits: v.textLanguages(e, g()).map((e) => ({
295
302
  code: e,
296
303
  label: v.languageName(e)
@@ -299,8 +306,8 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
299
306
  }));
300
307
  return (t, n) => {
301
308
  let u = p("RouterLink");
302
- return l(), i("div", Fe, [a("div", Ie, [
303
- a("h1", Le, m(S.value), 1),
309
+ return l(), i("div", Re, [a("div", ze, [
310
+ a("h1", Be, m(S.value), 1),
304
311
  s(Z, { crumbs: [
305
312
  {
306
313
  text: h(c)("travels.nav.home"),
@@ -312,23 +319,23 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
312
319
  },
313
320
  { text: S.value }
314
321
  ] }, null, 8, ["crumbs"]),
315
- a("div", Re, [a("p", ze, m(h(c)("travels.home.about")), 1), y.value ? (l(), i("p", Be, m(h(c)("travels.list.countryIntro")) + " " + m(S.value) + ".", 1)) : (l(), i("p", Ve, m(h(c)("travels.list.themeIntro")), 1))])
322
+ a("div", Ve, [a("p", He, m(h(c)("travels.home.about")), 1), y.value ? (l(), i("p", Ue, m(h(c)("travels.list.countryIntro")) + " " + m(S.value) + ".", 1)) : (l(), i("p", We, m(h(c)("travels.list.themeIntro")), 1))])
316
323
  ]), (l(!0), i(e, null, d(C.value, (t) => (l(), i("div", {
317
324
  key: t.id,
318
325
  class: "mwnf-travels-trails__row"
319
- }, [a("div", He, [t.cover ? (l(), i("img", {
326
+ }, [a("div", Ge, [t.cover ? (l(), i("img", {
320
327
  key: 0,
321
328
  src: t.cover,
322
329
  alt: "",
323
330
  loading: "lazy"
324
- }, null, 8, Ue)) : r("", !0)]), a("div", We, [
325
- t.title ? (l(), i("h2", Ge, m(t.title), 1)) : r("", !0),
326
- a("p", null, [t.subtitle ? (l(), i("strong", Ke, m(t.subtitle), 1)) : r("", !0)]),
327
- !y.value && t.country ? (l(), i("p", qe, [a("b", null, m(h(c)("travels.trail.country")) + ":", 1), o("\xA0\xA0" + m(t.country), 1)])) : r("", !0),
328
- t.region ? (l(), i("p", Je, [a("b", null, m(h(c)("travels.trail.region")) + ":", 1), o("\xA0" + m(t.region), 1)])) : r("", !0),
329
- t.available.length ? (l(), i("p", Ye, [a("b", null, m(h(c)("travels.trail.availableIn")) + ":", 1), o("\xA0\xA0" + m(t.available.join(", ")), 1)])) : r("", !0),
330
- t.locations.length ? (l(), i("p", Xe, [a("b", null, m(h(c)("travels.trail.mainLocations")) + ":", 1), o("\xA0" + m(t.locations.join(", ")), 1)])) : r("", !0),
331
- t.visits.length ? (l(), i("p", Ze, [
331
+ }, null, 8, Ke)) : r("", !0)]), a("div", qe, [
332
+ t.title ? (l(), i("h2", Je, m(t.title), 1)) : r("", !0),
333
+ a("p", null, [t.subtitle ? (l(), i("strong", Ye, m(t.subtitle), 1)) : r("", !0)]),
334
+ !y.value && t.country ? (l(), i("p", Xe, [a("b", null, m(h(c)("travels.trail.country")) + ":", 1), o("\xA0\xA0" + m(t.country), 1)])) : r("", !0),
335
+ t.region ? (l(), i("p", Ze, [a("b", null, m(h(c)("travels.trail.region")) + ":", 1), o("\xA0" + m(t.region), 1)])) : r("", !0),
336
+ t.available.length ? (l(), i("p", Qe, [a("b", null, m(h(c)("travels.trail.availableIn")) + ":", 1), o("\xA0\xA0" + m(t.available.join(", ")), 1)])) : r("", !0),
337
+ t.locations.length ? (l(), i("p", $e, [a("b", null, m(h(c)("travels.trail.mainLocations")) + ":", 1), o("\xA0" + m(t.locations.join(", ")), 1)])) : r("", !0),
338
+ t.visits.length ? (l(), i("p", et, [
332
339
  a("b", null, m(h(c)("travels.trail.virtualVisit")) + ":", 1),
333
340
  n[1] ||= o("\xA0 ", -1),
334
341
  (l(!0), i(e, null, d(t.visits, (r) => (l(), i(e, { key: r.code }, [s(u, { to: {
@@ -343,19 +350,19 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
343
350
  ])]))), 128))]);
344
351
  };
345
352
  }
346
- }, $e = { class: "mwnf-travels-detail-band" }, et = { class: "mwnf-travels-detail-band__texts" }, tt = {
353
+ }, nt = { class: "mwnf-travels-detail-band" }, rt = { class: "mwnf-travels-detail-band__texts" }, it = {
347
354
  key: 0,
348
355
  class: "mwnf-travels-detail-band__line"
349
- }, nt = {
356
+ }, at = {
350
357
  key: 1,
351
358
  class: "mwnf-travels-detail-band__line"
352
- }, rt = {
359
+ }, ot = {
353
360
  key: 2,
354
361
  class: "mwnf-travels-detail-band__line"
355
- }, it = {
362
+ }, st = {
356
363
  key: 3,
357
364
  class: "mwnf-travels-detail-band__line mwnf-travels-detail-band__itinerary"
358
- }, at = { class: "mwnf-travels-detail-band__book" }, ot = ["href"], st = ["src"], ct = ["src"], lt = { class: "mwnf-travels-detail-band__book-label" }, ut = { class: "mwnf-travels-see-also" }, dt = { class: "mwnf-travels-see-also__heading" }, ft = { class: "mwnf-travels-see-also__tabs" }, $ = {
365
+ }, ct = { class: "mwnf-travels-detail-band__book" }, lt = ["href"], ut = ["src"], dt = ["src"], ft = { class: "mwnf-travels-detail-band__book-label" }, pt = { class: "mwnf-travels-see-also" }, mt = { class: "mwnf-travels-see-also__heading" }, ht = { class: "mwnf-travels-see-also__tabs" }, $ = {
359
366
  __name: "TrailHeader",
360
367
  props: {
361
368
  trail: {
@@ -376,19 +383,19 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
376
383
  }
377
384
  },
378
385
  setup(n) {
379
- let u = n, { t: f, locale: g } = D(), v = t(() => te(u.trail, g.value)), y = t(() => u.trail.images?.[0]?.url ?? null);
386
+ let u = n, { t: f, locale: g } = D(), v = t(() => ie(u.trail, g.value)), y = t(() => u.trail.images?.[0]?.url ?? null);
380
387
  return (t, u) => {
381
388
  let g = p("RouterLink");
382
- return l(), i(e, null, [a("div", $e, [a("div", et, [
383
- n.text.title ? (l(), i("div", tt, [a("strong", null, m(n.text.title), 1)])) : r("", !0),
384
- n.text.extra?.subtitle ? (l(), i("div", nt, [a("strong", null, m(n.text.extra.subtitle), 1)])) : r("", !0),
385
- n.text.extra?.region_territory ? (l(), i("div", rt, [
389
+ return l(), i(e, null, [a("div", nt, [a("div", rt, [
390
+ n.text.title ? (l(), i("div", it, [a("strong", null, m(n.text.title), 1)])) : r("", !0),
391
+ n.text.extra?.subtitle ? (l(), i("div", at, [a("strong", null, m(n.text.extra.subtitle), 1)])) : r("", !0),
392
+ n.text.extra?.region_territory ? (l(), i("div", ot, [
386
393
  a("b", null, m(h(f)("travels.trail.region")) + ":", 1),
387
394
  u[0] ||= o("\xA0", -1),
388
395
  a("strong", null, m(n.text.extra.region_territory), 1)
389
396
  ])) : r("", !0),
390
- n.itinerary ? (l(), i("div", it, m(h(f)("travels.itinerary.label").toUpperCase()) + "\xA0" + m(n.itinerary.number) + ":\xA0" + m(n.itinerary.title), 1)) : r("", !0)
391
- ]), a("div", at, [y.value ? (l(), i(e, { key: 0 }, [v.value ? (l(), i("a", {
397
+ n.itinerary ? (l(), i("div", st, m(h(f)("travels.itinerary.label").toUpperCase()) + "\xA0" + m(n.itinerary.number) + ":\xA0" + m(n.itinerary.title), 1)) : r("", !0)
398
+ ]), a("div", ct, [y.value ? (l(), i(e, { key: 0 }, [v.value ? (l(), i("a", {
392
399
  key: 0,
393
400
  href: v.value,
394
401
  target: "_blank",
@@ -396,11 +403,11 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
396
403
  }, [a("img", {
397
404
  src: y.value,
398
405
  alt: ""
399
- }, null, 8, st)], 8, ot)) : (l(), i("img", {
406
+ }, null, 8, ut)], 8, lt)) : (l(), i("img", {
400
407
  key: 1,
401
408
  src: y.value,
402
409
  alt: ""
403
- }, null, 8, ct))], 64)) : r("", !0), a("span", lt, m(h(f)("travels.trail.travelBook")), 1)])]), a("div", ut, [a("div", dt, m(h(f)("travels.trail.seeAlso")), 1), a("div", ft, [(l(!0), i(e, null, d(n.tabs, (e) => (l(), i("div", {
410
+ }, null, 8, dt))], 64)) : r("", !0), a("span", ft, m(h(f)("travels.trail.travelBook")), 1)])]), a("div", pt, [a("div", mt, m(h(f)("travels.trail.seeAlso")), 1), a("div", ht, [(l(!0), i(e, null, d(n.tabs, (e) => (l(), i("div", {
404
411
  key: e.key,
405
412
  class: c(["mwnf-travels-see-also__tab", { "mwnf-travels-see-also__tab--active": e.active }])
406
413
  }, [s(g, {
@@ -417,17 +424,17 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
417
424
  ])], 2))), 128))])])], 64);
418
425
  };
419
426
  }
420
- }, pt = { class: "mwnf-travels-trail" }, mt = {
427
+ }, gt = { class: "mwnf-travels-trail" }, _t = {
421
428
  key: 0,
422
429
  class: "mwnf-travels__empty"
423
- }, ht = { class: "mwnf-travels-banner" }, gt = { class: "mwnf-travels-content" }, _t = { class: "mwnf-travels-content__head" }, vt = { key: 0 }, yt = { key: 1 }, bt = { key: 2 }, xt = ["innerHTML"], St = {
430
+ }, vt = { class: "mwnf-travels-banner" }, yt = { class: "mwnf-travels-content" }, bt = { class: "mwnf-travels-content__head" }, xt = { key: 0 }, St = { key: 1 }, Ct = { key: 2 }, wt = ["innerHTML"], Tt = {
424
431
  key: 1,
425
432
  class: "mwnf-travels-content__prose"
426
- }, Ct = { class: "mwnf-travels-itinerary-row__picture" }, wt = [
433
+ }, Et = { class: "mwnf-travels-itinerary-row__picture" }, Dt = [
427
434
  "src",
428
435
  "alt",
429
436
  "title"
430
- ], Tt = { class: "mwnf-travels-itinerary-row__text" }, Et = {
437
+ ], Ot = { class: "mwnf-travels-itinerary-row__text" }, kt = {
431
438
  __name: "Trail",
432
439
  props: {
433
440
  id: {
@@ -440,7 +447,7 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
440
447
  }
441
448
  },
442
449
  setup(n) {
443
- let c = n, { t: u } = D(), f = X(), g = t(() => f.collectionById.value.get(c.id) ?? null), y = t(() => f.text(g.value)), b = t(() => I.includes(c.tab) ? c.tab : "its"), x = t(() => [
450
+ let c = n, { t: u } = D(), f = X(), g = t(() => f.collectionById.value.get(c.id) ?? null), y = t(() => f.text(g.value)), b = t(() => te.includes(c.tab) ? c.tab : "its"), x = t(() => [
444
451
  {
445
452
  key: "desc",
446
453
  label: u("travels.trail.about")
@@ -481,9 +488,9 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
481
488
  { text: y.value.title ?? "" }
482
489
  ]), C = t(() => f.itineraries(g.value).map((e) => ({
483
490
  id: e.id,
484
- number: z(e),
491
+ number: B(e),
485
492
  title: f.text(e).title ?? "",
486
- picture: J(f.collections.value, e, f.itemById.value),
493
+ picture: re(f.collections.value, e, f.itemById.value),
487
494
  locations: f.locations(e).map((e) => f.text(e).title).filter(Boolean)
488
495
  }))), T = (e) => e ? w(String(e), { breaks: !0 }) : "";
489
496
  function E() {
@@ -491,7 +498,7 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
491
498
  }
492
499
  return (t, n) => {
493
500
  let c = p("RouterLink");
494
- return l(), i("div", pt, [g.value ? (l(), i(e, { key: 1 }, [a("div", ht, [s(Z, { crumbs: S.value }, null, 8, ["crumbs"]), s($, {
501
+ return l(), i("div", gt, [g.value ? (l(), i(e, { key: 1 }, [a("div", vt, [s(Z, { crumbs: S.value }, null, 8, ["crumbs"]), s($, {
495
502
  trail: g.value,
496
503
  text: y.value,
497
504
  tabs: x.value
@@ -499,7 +506,7 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
499
506
  "trail",
500
507
  "text",
501
508
  "tabs"
502
- ])]), a("div", gt, [a("div", _t, [b.value === "desc" ? (l(), i("h2", vt, m(h(u)("travels.trail.description")), 1)) : b.value === "cur" ? (l(), i("h2", yt, m(h(u)("travels.trail.curators")), 1)) : (l(), i("h2", bt, m(h(u)("travels.trail.itineraries")), 1)), a("a", {
509
+ ])]), a("div", yt, [a("div", bt, [b.value === "desc" ? (l(), i("h2", xt, m(h(u)("travels.trail.description")), 1)) : b.value === "cur" ? (l(), i("h2", St, m(h(u)("travels.trail.curators")), 1)) : (l(), i("h2", Ct, m(h(u)("travels.trail.itineraries")), 1)), a("a", {
503
510
  href: "#",
504
511
  class: "mwnf-travels-content__back",
505
512
  onClick: v(E, ["prevent"])
@@ -507,7 +514,7 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
507
514
  key: 0,
508
515
  class: "mwnf-travels-content__prose",
509
516
  innerHTML: T(y.value.description)
510
- }, null, 8, xt)) : b.value === "cur" ? (l(), i("div", St, [
517
+ }, null, 8, wt)) : b.value === "cur" ? (l(), i("div", Tt, [
511
518
  a("strong", null, m(h(u)("travels.trail.curatedBy")), 1),
512
519
  (l(!0), i(e, null, d(h(Y)(y.value.extra?.curated_by), (e, t) => (l(), i("div", { key: `c${t}` }, m(e), 1))), 128)),
513
520
  h(Y)(y.value.extra?.photo_by).length ? (l(), i(e, { key: 0 }, [
@@ -518,13 +525,13 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
518
525
  ])) : (l(!0), i(e, { key: 2 }, d(C.value, (t) => (l(), i("div", {
519
526
  key: t.id,
520
527
  class: "mwnf-travels-itinerary-row"
521
- }, [a("div", Ct, [t.picture ? (l(), i("img", {
528
+ }, [a("div", Et, [t.picture ? (l(), i("img", {
522
529
  key: 0,
523
530
  src: t.picture,
524
531
  alt: t.title,
525
532
  title: h(u)("travels.picture.enlarge"),
526
533
  loading: "lazy"
527
- }, null, 8, wt)) : r("", !0)]), a("div", Tt, [
534
+ }, null, 8, Dt)) : r("", !0)]), a("div", Ot, [
528
535
  a("b", null, m(h(u)("travels.itinerary.label")) + "\xA0" + m(t.number) + " :", 1),
529
536
  a("strong", null, [s(c, { to: {
530
537
  name: "itinerary",
@@ -549,21 +556,21 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
549
556
  default: _(() => [o(m(h(u)("travels.itinerary.gallery")) + "\xA0>>", 1)]),
550
557
  _: 1
551
558
  }, 8, ["to"])])
552
- ])]))), 128))])], 64)) : (l(), i("p", mt, m(h(u)("core.detail.notFound")), 1))]);
559
+ ])]))), 128))])], 64)) : (l(), i("p", _t, m(h(u)("core.detail.notFound")), 1))]);
553
560
  };
554
561
  }
555
- }, Dt = { class: "mwnf-travels-itinerary" }, Ot = {
562
+ }, At = { class: "mwnf-travels-itinerary" }, jt = {
556
563
  key: 0,
557
564
  class: "mwnf-travels__empty"
558
- }, kt = { class: "mwnf-travels-banner" }, At = { class: "mwnf-travels-content" }, jt = { class: "mwnf-travels-content__neighbours" }, Mt = { key: 0 }, Nt = { key: 2 }, Pt = { class: "mwnf-travels-gallery" }, Ft = { class: "mwnf-travels-gallery__main" }, It = ["href", "title"], Lt = ["src", "alt"], Rt = {
565
+ }, Mt = { class: "mwnf-travels-banner" }, Nt = { class: "mwnf-travels-content" }, Pt = { class: "mwnf-travels-content__neighbours" }, Ft = { key: 0 }, It = { key: 2 }, Lt = { class: "mwnf-travels-gallery" }, Rt = { class: "mwnf-travels-gallery__main" }, zt = ["href", "title"], Bt = ["src", "alt"], Vt = {
559
566
  key: 1,
560
567
  class: "mwnf-travels-gallery__caption"
561
- }, zt = { class: "mwnf-travels-gallery__thumbs" }, Bt = [
568
+ }, Ht = { class: "mwnf-travels-gallery__thumbs" }, Ut = [
562
569
  "aria-label",
563
570
  "onMouseover",
564
571
  "onFocus",
565
572
  "onClick"
566
- ], Vt = ["src"], Ht = ["innerHTML"], Ut = {
573
+ ], Wt = ["src"], Gt = ["innerHTML"], Kt = {
567
574
  __name: "Itinerary",
568
575
  props: {
569
576
  id: {
@@ -576,8 +583,8 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
576
583
  }
577
584
  },
578
585
  setup(n) {
579
- let f = n, { t: v, locale: y } = D(), b = X(), x = t(() => b.collectionById.value.get(f.id) ?? null), S = t(() => x.value ? b.collectionById.value.get(x.value.parent_id) ?? null : null), C = t(() => b.text(S.value)), T = t(() => b.text(x.value)), E = t(() => ee.includes(f.tab) ? f.tab : "des"), O = t(() => ({
580
- number: z(x.value),
586
+ let f = n, { t: v, locale: y } = D(), b = X(), x = t(() => b.collectionById.value.get(f.id) ?? null), S = t(() => x.value ? b.collectionById.value.get(x.value.parent_id) ?? null : null), C = t(() => b.text(S.value)), T = t(() => b.text(x.value)), E = t(() => ne.includes(f.tab) ? f.tab : "des"), O = t(() => ({
587
+ number: B(x.value),
581
588
  title: T.value.title ?? ""
582
589
  })), k = t(() => [{
583
590
  key: "des",
@@ -619,18 +626,18 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
619
626
  }
620
627
  },
621
628
  { text: `${v("travels.itinerary.label")} ${O.value.number}` }
622
- ]), j = t(() => K(b.itineraries(S.value), f.id)), M = (e) => e ? {
629
+ ]), j = t(() => q(b.itineraries(S.value), f.id)), M = (e) => e ? {
623
630
  name: "itinerary",
624
631
  params: { id: e.id },
625
632
  query: { tab: E.value }
626
- } : null, N = (e) => e?.captions?.[y.value] ?? e?.captions?.en ?? e?.alt_text ?? "", P = t(() => q(b.collections.value, x.value, b.itemById.value, N)), F = u(0);
633
+ } : null, N = (e) => e?.captions?.[y.value] ?? e?.captions?.en ?? e?.alt_text ?? "", P = t(() => J(b.collections.value, x.value, b.itemById.value, N)), F = u(0);
627
634
  g(() => f.id, () => {
628
635
  F.value = 0;
629
636
  });
630
637
  let I = t(() => P.value[F.value] ?? P.value[0] ?? null), L = (e) => e ? w(String(e), { breaks: !0 }) : "";
631
638
  return (t, n) => {
632
639
  let u = p("RouterLink");
633
- return l(), i("div", Dt, [!x.value || !S.value ? (l(), i("p", Ot, m(h(v)("core.detail.notFound")), 1)) : (l(), i(e, { key: 1 }, [a("div", kt, [s(Z, { crumbs: A.value }, null, 8, ["crumbs"]), s($, {
640
+ return l(), i("div", At, [!x.value || !S.value ? (l(), i("p", jt, m(h(v)("core.detail.notFound")), 1)) : (l(), i(e, { key: 1 }, [a("div", Mt, [s(Z, { crumbs: A.value }, null, 8, ["crumbs"]), s($, {
634
641
  trail: S.value,
635
642
  text: C.value,
636
643
  itinerary: O.value,
@@ -640,17 +647,17 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
640
647
  "text",
641
648
  "itinerary",
642
649
  "tabs"
643
- ])]), a("div", At, [a("div", jt, [
644
- j.value.previous ? (l(), i("b", Mt, [s(u, { to: M(j.value.previous) }, {
650
+ ])]), a("div", Nt, [a("div", Pt, [
651
+ j.value.previous ? (l(), i("b", Ft, [s(u, { to: M(j.value.previous) }, {
645
652
  default: _(() => [o("<<\xA0" + m(h(v)("travels.itinerary.previous")), 1)]),
646
653
  _: 1
647
654
  }, 8, ["to"])])) : r("", !0),
648
655
  j.value.previous && j.value.next ? (l(), i(e, { key: 1 }, [o("\xA0|\xA0")], 64)) : r("", !0),
649
- j.value.next ? (l(), i("b", Nt, [s(u, { to: M(j.value.next) }, {
656
+ j.value.next ? (l(), i("b", It, [s(u, { to: M(j.value.next) }, {
650
657
  default: _(() => [o(m(h(v)("travels.itinerary.next")) + "\xA0>>", 1)]),
651
658
  _: 1
652
659
  }, 8, ["to"])])) : r("", !0)
653
- ]), E.value === "vl" ? (l(), i(e, { key: 0 }, [a("h2", null, m(h(v)("travels.itinerary.galleryHeading")), 1), a("div", Pt, [a("div", Ft, [I.value ? (l(), i("a", {
660
+ ]), E.value === "vl" ? (l(), i(e, { key: 0 }, [a("h2", null, m(h(v)("travels.itinerary.galleryHeading")), 1), a("div", Lt, [a("div", Rt, [I.value ? (l(), i("a", {
654
661
  key: 0,
655
662
  href: I.value.url,
656
663
  target: "_blank",
@@ -660,7 +667,7 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
660
667
  src: I.value.url,
661
668
  alt: I.value.caption,
662
669
  class: "mwnf-travels-gallery__picture"
663
- }, null, 8, Lt)], 8, It)) : r("", !0), I.value?.caption ? (l(), i("div", Rt, [a("strong", null, m(I.value.caption), 1)])) : r("", !0)]), a("div", zt, [(l(!0), i(e, null, d(P.value, (e, t) => (l(), i("button", {
670
+ }, null, 8, Bt)], 8, zt)) : r("", !0), I.value?.caption ? (l(), i("div", Vt, [a("strong", null, m(I.value.caption), 1)])) : r("", !0)]), a("div", Ht, [(l(!0), i(e, null, d(P.value, (e, t) => (l(), i("button", {
664
671
  key: `${e.url}-${t}`,
665
672
  type: "button",
666
673
  class: c(["mwnf-travels-gallery__thumb", { "mwnf-travels-gallery__thumb--current": t === F.value }]),
@@ -672,14 +679,14 @@ var ae = { class: "mwnf-travels" }, oe = { class: "mwnf-travels-header" }, se =
672
679
  src: e.url,
673
680
  alt: "",
674
681
  loading: "lazy"
675
- }, null, 8, Vt)], 42, Bt))), 128))])])], 64)) : (l(), i(e, { key: 1 }, [a("h2", null, m(h(v)("travels.trail.description")), 1), a("div", {
682
+ }, null, 8, Wt)], 42, Ut))), 128))])])], 64)) : (l(), i(e, { key: 1 }, [a("h2", null, m(h(v)("travels.trail.description")), 1), a("div", {
676
683
  class: "mwnf-travels-content__prose",
677
684
  innerHTML: L(T.value.description)
678
- }, null, 8, Ht)], 64))])], 64))]);
685
+ }, null, 8, Gt)], 64))])], 64))]);
679
686
  };
680
687
  }
681
- }, Wt = (e) => typeof e.query.tab == "string" ? e.query.tab : void 0;
682
- function Gt(e = T()) {
688
+ }, qt = (e) => typeof e.query.tab == "string" ? e.query.tab : void 0;
689
+ function Jt(e = T()) {
683
690
  return [
684
691
  {
685
692
  path: "/",
@@ -690,32 +697,32 @@ function Gt(e = T()) {
690
697
  {
691
698
  path: "/trails",
692
699
  name: "trails",
693
- component: Qe,
700
+ component: tt,
694
701
  meta: e("trails", ...j)
695
702
  },
696
703
  {
697
704
  path: "/trail/:id",
698
705
  name: "trail",
699
- component: Et,
706
+ component: kt,
700
707
  props: (e) => ({
701
708
  id: String(e.params.id),
702
- tab: Wt(e)
709
+ tab: qt(e)
703
710
  }),
704
711
  meta: e("trail", ...j)
705
712
  },
706
713
  {
707
714
  path: "/itinerary/:id",
708
715
  name: "itinerary",
709
- component: Ut,
716
+ component: Kt,
710
717
  props: (e) => ({
711
718
  id: String(e.params.id),
712
- tab: Wt(e)
719
+ tab: qt(e)
713
720
  }),
714
721
  meta: e("itinerary", ...j)
715
722
  }
716
723
  ];
717
724
  }
718
- function Kt({ datasetPackage: e, origin: t, siteName: n, chrome: r = {}, travels: i = {} }) {
725
+ function Yt({ datasetPackage: e, origin: t, siteName: n, chrome: r = {}, travels: i = {} }) {
719
726
  let { manifest: a } = E(), o = C({ entity: "collections" });
720
727
  return {
721
728
  datasetPackage: e,
@@ -725,11 +732,11 @@ function Kt({ datasetPackage: e, origin: t, siteName: n, chrome: r = {}, travels
725
732
  languages: o,
726
733
  chrome: r,
727
734
  travels: i,
728
- shell: be,
735
+ shell: Ce,
729
736
  navigation: { languages: x(o) },
730
737
  views: { home: Q },
731
- extraViews: Gt(T()),
738
+ extraViews: Jt(T()),
732
739
  legacyRoutes: []
733
740
  };
734
741
  }
735
- export { F as HIDDEN_PROJECTS, ee as ITINERARY_TABS, N as ITINERARY_TYPE, P as LOCATION_TYPE, I as TRAIL_TABS, M as TRAIL_TYPE, j as TRAVEL_ENTITIES, Z as TravelsCrumbs, Q as TravelsHome, Ut as TravelsItinerary, be as TravelsShell, Et as TravelsTrail, $ as TravelsTrailHeader, Qe as TravelsTrails, te as bookLink, V as childrenOf, q as galleryOf, B as isListed, z as itineraryNumber, J as itineraryPicture, Y as lines, U as locationsOfTrail, G as mainLocations, K as neighbours, R as projectCode, W as projectOfTrail, H as trailsOf, Kt as travelsConfig, Gt as travelsRoutes, X as useTravels };
742
+ export { F as HIDDEN_PROJECTS, ne as ITINERARY_TABS, N as ITINERARY_TYPE, P as LOCATION_TYPE, I as MENU_HIDDEN_COUNTRIES, te as TRAIL_TABS, M as TRAIL_TYPE, j as TRAVEL_ENTITIES, Z as TravelsCrumbs, Q as TravelsHome, Kt as TravelsItinerary, Ce as TravelsShell, kt as TravelsTrail, $ as TravelsTrailHeader, tt as TravelsTrails, ie as bookLink, H as childrenOf, L as countryCode, J as galleryOf, ee as inMenu, V as isListed, B as itineraryNumber, re as itineraryPicture, Y as lines, W as locationsOfTrail, K as mainLocations, q as neighbours, z as projectCode, G as projectOfTrail, U as trailsOf, Yt as travelsConfig, Jt as travelsRoutes, X as useTravels };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@museumwnf/viewer-layout",
3
- "version": "3.74.0",
3
+ "version": "3.74.1",
4
4
  "description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",