@museumwnf/viewer-layout 3.76.0 → 3.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -53
- package/dist/{Theme-DvCv48p7.js → Theme-BCn6_VkI.js} +13 -13
- package/dist/data-D9H1tB75.js +98 -0
- package/dist/dxa.js +598 -594
- package/dist/{themeSpecs-CKgLOhlP.js → themeSpecs-BJ82RvA1.js} +1 -1
- package/dist/viewer-layout.css +1 -1
- package/package.json +1 -3
- package/dist/data-BI5v-QYD.js +0 -81
- package/dist/publications.js +0 -1017
- package/dist/travels.js +0 -742
package/dist/travels.js
DELETED
|
@@ -1,742 +0,0 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, normalizeClass as c, openBlock as l, ref as u, renderList as d, renderSlot as f, resolveComponent as p, toDisplayString as m, unref as h, watch as g, withCtx as _, withModifiers as v } from "vue";
|
|
2
|
-
import { byId as y, entityRef as b, languageLabels as x, mwnfLinks as S, offeredLanguages as C, renderBlock as w, sectionMeta as T, useDataPackage as E, useI18n as D, useSiteConfig as O } from "@museumwnf/viewer-core";
|
|
3
|
-
import { useRoute as k, useRouter as A } from "vue-router";
|
|
4
|
-
// src/travels/rules.js
|
|
5
|
-
var j = [
|
|
6
|
-
"collections",
|
|
7
|
-
"items",
|
|
8
|
-
"countries",
|
|
9
|
-
"languages"
|
|
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([
|
|
18
|
-
"desc",
|
|
19
|
-
"its",
|
|
20
|
-
"cur"
|
|
21
|
-
]), ne = Object.freeze(["des", "vl"]);
|
|
22
|
-
function R(e) {
|
|
23
|
-
return String(e?.backward_compatibility ?? "").split(":").slice(2);
|
|
24
|
-
}
|
|
25
|
-
function z(e) {
|
|
26
|
-
return R(e)[0] ?? "";
|
|
27
|
-
}
|
|
28
|
-
function B(e) {
|
|
29
|
-
let t = R(e);
|
|
30
|
-
return t[t.length - 1] ?? "";
|
|
31
|
-
}
|
|
32
|
-
function V(e, t = F) {
|
|
33
|
-
return !t.includes(z(e));
|
|
34
|
-
}
|
|
35
|
-
function H(e, t, n = null) {
|
|
36
|
-
return (e ?? []).filter((e) => e.parent_id === t && (!n || e.type === n));
|
|
37
|
-
}
|
|
38
|
-
function U(e) {
|
|
39
|
-
return (e ?? []).filter((e) => e.type === M);
|
|
40
|
-
}
|
|
41
|
-
function W(e, t) {
|
|
42
|
-
return H(e, t?.id, N).flatMap((t) => H(e, t.id, P));
|
|
43
|
-
}
|
|
44
|
-
function G(e, t, n) {
|
|
45
|
-
for (let r of W(e, t)) for (let e of r.items ?? []) {
|
|
46
|
-
let t = n.get(e.id)?.project_id;
|
|
47
|
-
if (t) return t;
|
|
48
|
-
}
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
function K(e) {
|
|
52
|
-
return [...new Set((e ?? []).map((e) => String(e ?? "").trim()).filter(Boolean))].sort((e, t) => e.localeCompare(t));
|
|
53
|
-
}
|
|
54
|
-
function q(e, t) {
|
|
55
|
-
let n = (e ?? []).findIndex((e) => e.id === t);
|
|
56
|
-
return n < 0 ? {
|
|
57
|
-
previous: null,
|
|
58
|
-
next: null
|
|
59
|
-
} : {
|
|
60
|
-
previous: e[n - 1] ?? null,
|
|
61
|
-
next: e[n + 1] ?? null
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
function J(e, t, n, r = (e) => e?.captions?.en ?? e?.alt_text ?? "") {
|
|
65
|
-
let i = [], a = (e, t) => (e.display_order ?? 0) - (t.display_order ?? 0), o = (e) => {
|
|
66
|
-
for (let t of [...e ?? []].sort(a)) i.push({
|
|
67
|
-
url: t.url,
|
|
68
|
-
caption: r(t) ?? ""
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
for (let r of H(e, t?.id, P)) {
|
|
72
|
-
o(r.images);
|
|
73
|
-
for (let e of r.items ?? []) o(n.get(e.id)?.images);
|
|
74
|
-
}
|
|
75
|
-
return o(t?.images), i.filter((e) => e.url);
|
|
76
|
-
}
|
|
77
|
-
function re(e, t, n) {
|
|
78
|
-
return J(e, t, n)[0]?.url ?? null;
|
|
79
|
-
}
|
|
80
|
-
function ie(e, t) {
|
|
81
|
-
let n = e?.publications?.[0];
|
|
82
|
-
return n?.url ? t ? `${n.url}/${encodeURIComponent(t)}` : n.url : null;
|
|
83
|
-
}
|
|
84
|
-
function Y(e) {
|
|
85
|
-
return String(e ?? "").split(/\s*\n\s*/).map((e) => e.trim()).filter(Boolean);
|
|
86
|
-
}
|
|
87
|
-
// src/travels/data.js
|
|
88
|
-
var ae = b("collections"), oe = b("languages"), se = ["collections", "countries"];
|
|
89
|
-
function X({ languagesToLoad: e = () => [] } = {}) {
|
|
90
|
-
let n = E(), r = O(), { locale: i } = D(), a = y("collections"), o = y("items");
|
|
91
|
-
g(() => [.../* @__PURE__ */ new Set([
|
|
92
|
-
"en",
|
|
93
|
-
i.value,
|
|
94
|
-
...e()
|
|
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 ?? {};
|
|
97
|
-
function p(e) {
|
|
98
|
-
return e ? n.translations("countries", i.value)[e]?.name ?? n.translations("countries", "en")[e]?.name ?? "" : "";
|
|
99
|
-
}
|
|
100
|
-
function m(e) {
|
|
101
|
-
let t = n.manifest.projects?.[e]?.name;
|
|
102
|
-
return t?.[i.value] ?? t?.en ?? "";
|
|
103
|
-
}
|
|
104
|
-
function h(e) {
|
|
105
|
-
let t = (oe.value ?? []).find((t) => t.code === e);
|
|
106
|
-
return t?.names?.[e] ?? t?.names?.en ?? String(e ?? "").toUpperCase();
|
|
107
|
-
}
|
|
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);
|
|
109
|
-
return {
|
|
110
|
-
pkg: n,
|
|
111
|
-
config: r,
|
|
112
|
-
locale: i,
|
|
113
|
-
collections: s,
|
|
114
|
-
collectionById: a,
|
|
115
|
-
itemById: o,
|
|
116
|
-
trails: l,
|
|
117
|
-
listed: u,
|
|
118
|
-
projects: t(() => {
|
|
119
|
-
let e = /* @__PURE__ */ new Map();
|
|
120
|
-
for (let t of u.value) {
|
|
121
|
-
let n = z(t);
|
|
122
|
-
n && !e.has(n) && e.set(n, {
|
|
123
|
-
code: n,
|
|
124
|
-
id: b(t)
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
return [...e.values()];
|
|
128
|
-
}),
|
|
129
|
-
text: d,
|
|
130
|
-
extra: f,
|
|
131
|
-
countryName: p,
|
|
132
|
-
projectName: m,
|
|
133
|
-
languageName: h,
|
|
134
|
-
itineraries: _,
|
|
135
|
-
locations: v,
|
|
136
|
-
trailProject: b,
|
|
137
|
-
textLanguages: (e, t) => t.filter((t) => !!n.translations("collections", t)[e?.id])
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
// src/travels/Shell.vue
|
|
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 = {
|
|
142
|
-
__name: "Shell",
|
|
143
|
-
props: {
|
|
144
|
-
languages: {
|
|
145
|
-
type: Array,
|
|
146
|
-
default: () => []
|
|
147
|
-
},
|
|
148
|
-
language: {
|
|
149
|
-
type: String,
|
|
150
|
-
required: !0
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
emits: ["update:language"],
|
|
154
|
-
setup(n, { emit: c }) {
|
|
155
|
-
let u = n, g = c, { t: v } = D(), y = O(), b = X(), x = t(() => y.travels?.portal ?? S.portal), C = t(() => {
|
|
156
|
-
if (y.travels?.books) return y.travels.books;
|
|
157
|
-
let e = b.trails.value.find((e) => e.publications?.[0]?.url)?.publications[0].url;
|
|
158
|
-
return e ? e.slice(0, e.indexOf("#")) || e : "https://books.museumwnf.org";
|
|
159
|
-
}), w = t(() => [...new Set(b.listed.value.filter((e) => ee(e)).map((e) => e.country_id).filter(Boolean))].map((e) => ({
|
|
160
|
-
id: e,
|
|
161
|
-
name: b.countryName(e)
|
|
162
|
-
})).sort((e, t) => e.name.localeCompare(t.name))), T = (/* @__PURE__ */ new Date()).getFullYear(), E = [
|
|
163
|
-
{
|
|
164
|
-
label: "core.footer.aboutMwnf",
|
|
165
|
-
href: S.about
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
label: "core.footer.contact",
|
|
169
|
-
href: S.contact
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
label: "core.footer.legalNotice",
|
|
173
|
-
href: S.legalNotice
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
label: "core.footer.credits",
|
|
177
|
-
href: S.credits
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
label: "core.footer.cookies",
|
|
181
|
-
href: S.cookies
|
|
182
|
-
}
|
|
183
|
-
], k = t(() => u.languages.length > 1);
|
|
184
|
-
return (t, c) => {
|
|
185
|
-
let u = p("RouterLink");
|
|
186
|
-
return l(), i("div", ce, [
|
|
187
|
-
a("header", le, [s(u, {
|
|
188
|
-
class: "mwnf-travels-header__title",
|
|
189
|
-
to: { name: "home" },
|
|
190
|
-
title: h(v)("travels.header.homeTip")
|
|
191
|
-
}, {
|
|
192
|
-
default: _(() => [o(m(h(v)("travels.header.title")), 1)]),
|
|
193
|
-
_: 1
|
|
194
|
-
}, 8, ["title"]), a("nav", {
|
|
195
|
-
class: "mwnf-travels-menu",
|
|
196
|
-
"aria-label": h(v)("layout.nav.label")
|
|
197
|
-
}, [a("ul", de, [
|
|
198
|
-
a("li", fe, [s(u, { to: { name: "home" } }, {
|
|
199
|
-
default: _(() => [o(m(h(v)("travels.nav.exhibitionTrails")), 1)]),
|
|
200
|
-
_: 1
|
|
201
|
-
}), a("ul", pe, [(l(!0), i(e, null, d(h(b).projects.value, (e) => (l(), i("li", { key: e.code }, [s(u, { to: {
|
|
202
|
-
name: "trails",
|
|
203
|
-
query: { project: e.code }
|
|
204
|
-
} }, {
|
|
205
|
-
default: _(() => [o(m(h(b).projectName(e.id) || e.code), 1)]),
|
|
206
|
-
_: 2
|
|
207
|
-
}, 1032, ["to"])]))), 128)), (l(!0), i(e, null, d(w.value, (e) => (l(), i("li", { key: e.id }, [s(u, { to: {
|
|
208
|
-
name: "trails",
|
|
209
|
-
query: { country: e.id }
|
|
210
|
-
} }, {
|
|
211
|
-
default: _(() => [o(m(e.name), 1)]),
|
|
212
|
-
_: 2
|
|
213
|
-
}, 1032, ["to"])]))), 128))])]),
|
|
214
|
-
a("li", me, [a("a", { href: C.value }, m(h(v)("travels.header.books")), 9, he)]),
|
|
215
|
-
a("li", ge, [a("a", {
|
|
216
|
-
href: x.value,
|
|
217
|
-
title: h(v)("travels.header.portalTip")
|
|
218
|
-
}, m(h(v)("travels.header.portal")), 9, _e)])
|
|
219
|
-
]), k.value ? (l(), i("select", {
|
|
220
|
-
key: 0,
|
|
221
|
-
class: "mwnf-travels-menu__language",
|
|
222
|
-
value: n.language,
|
|
223
|
-
"aria-label": h(v)("layout.language.label"),
|
|
224
|
-
onChange: c[0] ||= (e) => g("update:language", e.target.value)
|
|
225
|
-
}, [(l(!0), i(e, null, d(n.languages, (e) => (l(), i("option", {
|
|
226
|
-
key: e.code,
|
|
227
|
-
value: e.code
|
|
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)])
|
|
231
|
-
]);
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
}, we = { class: "mwnf-travels-crumbs" }, Te = { key: 2 }, Z = {
|
|
235
|
-
__name: "Crumbs",
|
|
236
|
-
props: { crumbs: {
|
|
237
|
-
type: Array,
|
|
238
|
-
required: !0
|
|
239
|
-
} },
|
|
240
|
-
setup(t) {
|
|
241
|
-
return (a, s) => {
|
|
242
|
-
let c = p("RouterLink");
|
|
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, {
|
|
244
|
-
key: 1,
|
|
245
|
-
class: "mwnf-travels-crumbs__link",
|
|
246
|
-
to: a.to
|
|
247
|
-
}, {
|
|
248
|
-
default: _(() => [o(m(a.text), 1)]),
|
|
249
|
-
_: 2
|
|
250
|
-
}, 1032, ["to"])) : (l(), i("span", Te, m(a.text), 1))], 64))), 128))]);
|
|
251
|
-
};
|
|
252
|
-
}
|
|
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 = {
|
|
254
|
-
__name: "Home",
|
|
255
|
-
setup(n) {
|
|
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) => ({
|
|
257
|
-
id: e,
|
|
258
|
-
name: c.countryName(e)
|
|
259
|
-
})).sort((e, t) => e.name.localeCompare(t.name)));
|
|
260
|
-
function f(e, t) {
|
|
261
|
-
t && o.push({
|
|
262
|
-
name: "trails",
|
|
263
|
-
query: { [e]: t }
|
|
264
|
-
});
|
|
265
|
-
}
|
|
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: [{
|
|
268
|
-
text: h(r)("travels.nav.home"),
|
|
269
|
-
to: { name: "home" }
|
|
270
|
-
}, { text: h(r)("travels.nav.exhibitionTrails") }] }, null, 8, ["crumbs"])]),
|
|
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", {
|
|
273
|
-
key: e.id,
|
|
274
|
-
value: e.id
|
|
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", {
|
|
276
|
-
key: e.code,
|
|
277
|
-
value: e.code
|
|
278
|
-
}, m(h(c).projectName(e.id) || e.code), 9, Le))), 128))], 32)])])
|
|
279
|
-
]));
|
|
280
|
-
}
|
|
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 = {
|
|
282
|
-
key: 0,
|
|
283
|
-
class: "mwnf-travels-trails__title"
|
|
284
|
-
}, Ye = { key: 0 }, Xe = { key: 1 }, Ze = { key: 2 }, Qe = { key: 3 }, $e = { key: 4 }, et = {
|
|
285
|
-
key: 5,
|
|
286
|
-
class: "mwnf-travels-trails__visit"
|
|
287
|
-
}, tt = {
|
|
288
|
-
__name: "Trails",
|
|
289
|
-
setup(n) {
|
|
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) => {
|
|
291
|
-
let t = v.text(e), n = e.publications?.[0];
|
|
292
|
-
return {
|
|
293
|
-
id: e.id,
|
|
294
|
-
cover: e.images?.[0]?.url ?? null,
|
|
295
|
-
title: t.title ?? "",
|
|
296
|
-
subtitle: t.extra?.subtitle ?? "",
|
|
297
|
-
country: v.countryName(e.country_id),
|
|
298
|
-
region: t.extra?.region_territory ?? "",
|
|
299
|
-
available: Object.keys(n?.titles ?? {}).map((e) => v.languageName(e)).sort((e, t) => e.localeCompare(t)),
|
|
300
|
-
locations: K(W(v.collections.value, e).map((e) => v.text(e).title)),
|
|
301
|
-
visits: v.textLanguages(e, g()).map((e) => ({
|
|
302
|
-
code: e,
|
|
303
|
-
label: v.languageName(e)
|
|
304
|
-
})).sort((e, t) => e.label.localeCompare(t.label))
|
|
305
|
-
};
|
|
306
|
-
}));
|
|
307
|
-
return (t, n) => {
|
|
308
|
-
let u = p("RouterLink");
|
|
309
|
-
return l(), i("div", Re, [a("div", ze, [
|
|
310
|
-
a("h1", Be, m(S.value), 1),
|
|
311
|
-
s(Z, { crumbs: [
|
|
312
|
-
{
|
|
313
|
-
text: h(c)("travels.nav.home"),
|
|
314
|
-
to: { name: "home" }
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
text: h(c)("travels.nav.exhibitionTrails"),
|
|
318
|
-
to: { name: "home" }
|
|
319
|
-
},
|
|
320
|
-
{ text: S.value }
|
|
321
|
-
] }, null, 8, ["crumbs"]),
|
|
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))])
|
|
323
|
-
]), (l(!0), i(e, null, d(C.value, (t) => (l(), i("div", {
|
|
324
|
-
key: t.id,
|
|
325
|
-
class: "mwnf-travels-trails__row"
|
|
326
|
-
}, [a("div", Ge, [t.cover ? (l(), i("img", {
|
|
327
|
-
key: 0,
|
|
328
|
-
src: t.cover,
|
|
329
|
-
alt: "",
|
|
330
|
-
loading: "lazy"
|
|
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, [
|
|
339
|
-
a("b", null, m(h(c)("travels.trail.virtualVisit")) + ":", 1),
|
|
340
|
-
n[1] ||= o("\xA0 ", -1),
|
|
341
|
-
(l(!0), i(e, null, d(t.visits, (r) => (l(), i(e, { key: r.code }, [s(u, { to: {
|
|
342
|
-
name: "trail",
|
|
343
|
-
params: { id: t.id },
|
|
344
|
-
query: { lang: r.code }
|
|
345
|
-
} }, {
|
|
346
|
-
default: _(() => [o(m(r.label) + "\xA0>>", 1)]),
|
|
347
|
-
_: 2
|
|
348
|
-
}, 1032, ["to"]), n[0] ||= o("\xA0\xA0 ", -1)], 64))), 128))
|
|
349
|
-
])) : r("", !0)
|
|
350
|
-
])]))), 128))]);
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
}, nt = { class: "mwnf-travels-detail-band" }, rt = { class: "mwnf-travels-detail-band__texts" }, it = {
|
|
354
|
-
key: 0,
|
|
355
|
-
class: "mwnf-travels-detail-band__line"
|
|
356
|
-
}, at = {
|
|
357
|
-
key: 1,
|
|
358
|
-
class: "mwnf-travels-detail-band__line"
|
|
359
|
-
}, ot = {
|
|
360
|
-
key: 2,
|
|
361
|
-
class: "mwnf-travels-detail-band__line"
|
|
362
|
-
}, st = {
|
|
363
|
-
key: 3,
|
|
364
|
-
class: "mwnf-travels-detail-band__line mwnf-travels-detail-band__itinerary"
|
|
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" }, $ = {
|
|
366
|
-
__name: "TrailHeader",
|
|
367
|
-
props: {
|
|
368
|
-
trail: {
|
|
369
|
-
type: Object,
|
|
370
|
-
required: !0
|
|
371
|
-
},
|
|
372
|
-
text: {
|
|
373
|
-
type: Object,
|
|
374
|
-
default: () => ({})
|
|
375
|
-
},
|
|
376
|
-
itinerary: {
|
|
377
|
-
type: Object,
|
|
378
|
-
default: null
|
|
379
|
-
},
|
|
380
|
-
tabs: {
|
|
381
|
-
type: Array,
|
|
382
|
-
default: () => []
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
setup(n) {
|
|
386
|
-
let u = n, { t: f, locale: g } = D(), v = t(() => ie(u.trail, g.value)), y = t(() => u.trail.images?.[0]?.url ?? null);
|
|
387
|
-
return (t, u) => {
|
|
388
|
-
let g = p("RouterLink");
|
|
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, [
|
|
393
|
-
a("b", null, m(h(f)("travels.trail.region")) + ":", 1),
|
|
394
|
-
u[0] ||= o("\xA0", -1),
|
|
395
|
-
a("strong", null, m(n.text.extra.region_territory), 1)
|
|
396
|
-
])) : r("", !0),
|
|
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", {
|
|
399
|
-
key: 0,
|
|
400
|
-
href: v.value,
|
|
401
|
-
target: "_blank",
|
|
402
|
-
rel: "noopener"
|
|
403
|
-
}, [a("img", {
|
|
404
|
-
src: y.value,
|
|
405
|
-
alt: ""
|
|
406
|
-
}, null, 8, ut)], 8, lt)) : (l(), i("img", {
|
|
407
|
-
key: 1,
|
|
408
|
-
src: y.value,
|
|
409
|
-
alt: ""
|
|
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", {
|
|
411
|
-
key: e.key,
|
|
412
|
-
class: c(["mwnf-travels-see-also__tab", { "mwnf-travels-see-also__tab--active": e.active }])
|
|
413
|
-
}, [s(g, {
|
|
414
|
-
to: e.to,
|
|
415
|
-
title: e.tip || void 0,
|
|
416
|
-
"aria-current": e.active ? "page" : void 0
|
|
417
|
-
}, {
|
|
418
|
-
default: _(() => [o(m(e.label), 1)]),
|
|
419
|
-
_: 2
|
|
420
|
-
}, 1032, [
|
|
421
|
-
"to",
|
|
422
|
-
"title",
|
|
423
|
-
"aria-current"
|
|
424
|
-
])], 2))), 128))])])], 64);
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
}, gt = { class: "mwnf-travels-trail" }, _t = {
|
|
428
|
-
key: 0,
|
|
429
|
-
class: "mwnf-travels__empty"
|
|
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 = {
|
|
431
|
-
key: 1,
|
|
432
|
-
class: "mwnf-travels-content__prose"
|
|
433
|
-
}, Et = { class: "mwnf-travels-itinerary-row__picture" }, Dt = [
|
|
434
|
-
"src",
|
|
435
|
-
"alt",
|
|
436
|
-
"title"
|
|
437
|
-
], Ot = { class: "mwnf-travels-itinerary-row__text" }, kt = {
|
|
438
|
-
__name: "Trail",
|
|
439
|
-
props: {
|
|
440
|
-
id: {
|
|
441
|
-
type: String,
|
|
442
|
-
required: !0
|
|
443
|
-
},
|
|
444
|
-
tab: {
|
|
445
|
-
type: String,
|
|
446
|
-
default: "its"
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
setup(n) {
|
|
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(() => [
|
|
451
|
-
{
|
|
452
|
-
key: "desc",
|
|
453
|
-
label: u("travels.trail.about")
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
key: "its",
|
|
457
|
-
label: u("travels.trail.itineraries"),
|
|
458
|
-
tip: u("travels.trail.itinerariesTip")
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
key: "cur",
|
|
462
|
-
label: u("travels.trail.curators")
|
|
463
|
-
}
|
|
464
|
-
].map((e) => ({
|
|
465
|
-
...e,
|
|
466
|
-
active: e.key === b.value,
|
|
467
|
-
to: {
|
|
468
|
-
name: "trail",
|
|
469
|
-
params: { id: c.id },
|
|
470
|
-
query: { tab: e.key }
|
|
471
|
-
}
|
|
472
|
-
}))), S = t(() => [
|
|
473
|
-
{
|
|
474
|
-
text: u("travels.nav.home"),
|
|
475
|
-
to: { name: "home" }
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
text: u("travels.nav.exhibitionTrails"),
|
|
479
|
-
to: { name: "home" }
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
text: f.countryName(g.value?.country_id),
|
|
483
|
-
to: {
|
|
484
|
-
name: "trails",
|
|
485
|
-
query: { country: g.value?.country_id }
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
{ text: y.value.title ?? "" }
|
|
489
|
-
]), C = t(() => f.itineraries(g.value).map((e) => ({
|
|
490
|
-
id: e.id,
|
|
491
|
-
number: B(e),
|
|
492
|
-
title: f.text(e).title ?? "",
|
|
493
|
-
picture: re(f.collections.value, e, f.itemById.value),
|
|
494
|
-
locations: f.locations(e).map((e) => f.text(e).title).filter(Boolean)
|
|
495
|
-
}))), T = (e) => e ? w(String(e), { breaks: !0 }) : "";
|
|
496
|
-
function E() {
|
|
497
|
-
typeof window < "u" && window.history.back();
|
|
498
|
-
}
|
|
499
|
-
return (t, n) => {
|
|
500
|
-
let c = p("RouterLink");
|
|
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($, {
|
|
502
|
-
trail: g.value,
|
|
503
|
-
text: y.value,
|
|
504
|
-
tabs: x.value
|
|
505
|
-
}, null, 8, [
|
|
506
|
-
"trail",
|
|
507
|
-
"text",
|
|
508
|
-
"tabs"
|
|
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", {
|
|
510
|
-
href: "#",
|
|
511
|
-
class: "mwnf-travels-content__back",
|
|
512
|
-
onClick: v(E, ["prevent"])
|
|
513
|
-
}, [a("b", null, "<< " + m(h(u)("travels.action.back")), 1)])]), b.value === "desc" ? (l(), i("div", {
|
|
514
|
-
key: 0,
|
|
515
|
-
class: "mwnf-travels-content__prose",
|
|
516
|
-
innerHTML: T(y.value.description)
|
|
517
|
-
}, null, 8, wt)) : b.value === "cur" ? (l(), i("div", Tt, [
|
|
518
|
-
a("strong", null, m(h(u)("travels.trail.curatedBy")), 1),
|
|
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)),
|
|
520
|
-
h(Y)(y.value.extra?.photo_by).length ? (l(), i(e, { key: 0 }, [
|
|
521
|
-
n[0] ||= a("br", null, null, -1),
|
|
522
|
-
a("strong", null, m(h(u)("travels.trail.photographers")), 1),
|
|
523
|
-
(l(!0), i(e, null, d(h(Y)(y.value.extra?.photo_by), (e, t) => (l(), i("div", { key: `p${t}` }, m(e), 1))), 128))
|
|
524
|
-
], 64)) : r("", !0)
|
|
525
|
-
])) : (l(!0), i(e, { key: 2 }, d(C.value, (t) => (l(), i("div", {
|
|
526
|
-
key: t.id,
|
|
527
|
-
class: "mwnf-travels-itinerary-row"
|
|
528
|
-
}, [a("div", Et, [t.picture ? (l(), i("img", {
|
|
529
|
-
key: 0,
|
|
530
|
-
src: t.picture,
|
|
531
|
-
alt: t.title,
|
|
532
|
-
title: h(u)("travels.picture.enlarge"),
|
|
533
|
-
loading: "lazy"
|
|
534
|
-
}, null, 8, Dt)) : r("", !0)]), a("div", Ot, [
|
|
535
|
-
a("b", null, m(h(u)("travels.itinerary.label")) + "\xA0" + m(t.number) + " :", 1),
|
|
536
|
-
a("strong", null, [s(c, { to: {
|
|
537
|
-
name: "itinerary",
|
|
538
|
-
params: { id: t.id },
|
|
539
|
-
query: { tab: "des" }
|
|
540
|
-
} }, {
|
|
541
|
-
default: _(() => [o(m(t.title) + "\xA0>>", 1)]),
|
|
542
|
-
_: 2
|
|
543
|
-
}, 1032, ["to"])]),
|
|
544
|
-
n[3] ||= a("br", null, null, -1),
|
|
545
|
-
t.locations.length ? (l(), i(e, { key: 0 }, [
|
|
546
|
-
a("b", null, m(h(u)("travels.trail.mainLocations")) + ":", 1),
|
|
547
|
-
n[1] ||= o(),
|
|
548
|
-
a("strong", null, m(t.locations.join(", ")), 1),
|
|
549
|
-
n[2] ||= a("br", null, null, -1)
|
|
550
|
-
], 64)) : r("", !0),
|
|
551
|
-
a("strong", null, [s(c, { to: {
|
|
552
|
-
name: "itinerary",
|
|
553
|
-
params: { id: t.id },
|
|
554
|
-
query: { tab: "vl" }
|
|
555
|
-
} }, {
|
|
556
|
-
default: _(() => [o(m(h(u)("travels.itinerary.gallery")) + "\xA0>>", 1)]),
|
|
557
|
-
_: 1
|
|
558
|
-
}, 8, ["to"])])
|
|
559
|
-
])]))), 128))])], 64)) : (l(), i("p", _t, m(h(u)("core.detail.notFound")), 1))]);
|
|
560
|
-
};
|
|
561
|
-
}
|
|
562
|
-
}, At = { class: "mwnf-travels-itinerary" }, jt = {
|
|
563
|
-
key: 0,
|
|
564
|
-
class: "mwnf-travels__empty"
|
|
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 = {
|
|
566
|
-
key: 1,
|
|
567
|
-
class: "mwnf-travels-gallery__caption"
|
|
568
|
-
}, Ht = { class: "mwnf-travels-gallery__thumbs" }, Ut = [
|
|
569
|
-
"aria-label",
|
|
570
|
-
"onMouseover",
|
|
571
|
-
"onFocus",
|
|
572
|
-
"onClick"
|
|
573
|
-
], Wt = ["src"], Gt = ["innerHTML"], Kt = {
|
|
574
|
-
__name: "Itinerary",
|
|
575
|
-
props: {
|
|
576
|
-
id: {
|
|
577
|
-
type: String,
|
|
578
|
-
required: !0
|
|
579
|
-
},
|
|
580
|
-
tab: {
|
|
581
|
-
type: String,
|
|
582
|
-
default: "des"
|
|
583
|
-
}
|
|
584
|
-
},
|
|
585
|
-
setup(n) {
|
|
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),
|
|
588
|
-
title: T.value.title ?? ""
|
|
589
|
-
})), k = t(() => [{
|
|
590
|
-
key: "des",
|
|
591
|
-
label: v("travels.itinerary.about")
|
|
592
|
-
}, {
|
|
593
|
-
key: "vl",
|
|
594
|
-
label: v("travels.itinerary.gallery"),
|
|
595
|
-
tip: v("travels.itinerary.galleryTip")
|
|
596
|
-
}].map((e) => ({
|
|
597
|
-
...e,
|
|
598
|
-
active: e.key === E.value,
|
|
599
|
-
to: {
|
|
600
|
-
name: "itinerary",
|
|
601
|
-
params: { id: f.id },
|
|
602
|
-
query: { tab: e.key }
|
|
603
|
-
}
|
|
604
|
-
}))), A = t(() => [
|
|
605
|
-
{
|
|
606
|
-
text: v("travels.nav.home"),
|
|
607
|
-
to: { name: "home" }
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
text: v("travels.nav.exhibitionTrails"),
|
|
611
|
-
to: { name: "home" }
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
text: b.countryName(S.value?.country_id),
|
|
615
|
-
to: {
|
|
616
|
-
name: "trails",
|
|
617
|
-
query: { country: S.value?.country_id }
|
|
618
|
-
}
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
text: C.value.title ?? "",
|
|
622
|
-
to: {
|
|
623
|
-
name: "trail",
|
|
624
|
-
params: { id: S.value?.id ?? "" },
|
|
625
|
-
query: { tab: "its" }
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
{ text: `${v("travels.itinerary.label")} ${O.value.number}` }
|
|
629
|
-
]), j = t(() => q(b.itineraries(S.value), f.id)), M = (e) => e ? {
|
|
630
|
-
name: "itinerary",
|
|
631
|
-
params: { id: e.id },
|
|
632
|
-
query: { tab: E.value }
|
|
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);
|
|
634
|
-
g(() => f.id, () => {
|
|
635
|
-
F.value = 0;
|
|
636
|
-
});
|
|
637
|
-
let I = t(() => P.value[F.value] ?? P.value[0] ?? null), L = (e) => e ? w(String(e), { breaks: !0 }) : "";
|
|
638
|
-
return (t, n) => {
|
|
639
|
-
let u = p("RouterLink");
|
|
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($, {
|
|
641
|
-
trail: S.value,
|
|
642
|
-
text: C.value,
|
|
643
|
-
itinerary: O.value,
|
|
644
|
-
tabs: k.value
|
|
645
|
-
}, null, 8, [
|
|
646
|
-
"trail",
|
|
647
|
-
"text",
|
|
648
|
-
"itinerary",
|
|
649
|
-
"tabs"
|
|
650
|
-
])]), a("div", Nt, [a("div", Pt, [
|
|
651
|
-
j.value.previous ? (l(), i("b", Ft, [s(u, { to: M(j.value.previous) }, {
|
|
652
|
-
default: _(() => [o("<<\xA0" + m(h(v)("travels.itinerary.previous")), 1)]),
|
|
653
|
-
_: 1
|
|
654
|
-
}, 8, ["to"])])) : r("", !0),
|
|
655
|
-
j.value.previous && j.value.next ? (l(), i(e, { key: 1 }, [o("\xA0|\xA0")], 64)) : r("", !0),
|
|
656
|
-
j.value.next ? (l(), i("b", It, [s(u, { to: M(j.value.next) }, {
|
|
657
|
-
default: _(() => [o(m(h(v)("travels.itinerary.next")) + "\xA0>>", 1)]),
|
|
658
|
-
_: 1
|
|
659
|
-
}, 8, ["to"])])) : r("", !0)
|
|
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", {
|
|
661
|
-
key: 0,
|
|
662
|
-
href: I.value.url,
|
|
663
|
-
target: "_blank",
|
|
664
|
-
rel: "noopener",
|
|
665
|
-
title: h(v)("travels.picture.enlarge")
|
|
666
|
-
}, [a("img", {
|
|
667
|
-
src: I.value.url,
|
|
668
|
-
alt: I.value.caption,
|
|
669
|
-
class: "mwnf-travels-gallery__picture"
|
|
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", {
|
|
671
|
-
key: `${e.url}-${t}`,
|
|
672
|
-
type: "button",
|
|
673
|
-
class: c(["mwnf-travels-gallery__thumb", { "mwnf-travels-gallery__thumb--current": t === F.value }]),
|
|
674
|
-
"aria-label": e.caption || h(v)("travels.picture.enlarge"),
|
|
675
|
-
onMouseover: (e) => F.value = t,
|
|
676
|
-
onFocus: (e) => F.value = t,
|
|
677
|
-
onClick: (e) => F.value = t
|
|
678
|
-
}, [a("img", {
|
|
679
|
-
src: e.url,
|
|
680
|
-
alt: "",
|
|
681
|
-
loading: "lazy"
|
|
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", {
|
|
683
|
-
class: "mwnf-travels-content__prose",
|
|
684
|
-
innerHTML: L(T.value.description)
|
|
685
|
-
}, null, 8, Gt)], 64))])], 64))]);
|
|
686
|
-
};
|
|
687
|
-
}
|
|
688
|
-
}, qt = (e) => typeof e.query.tab == "string" ? e.query.tab : void 0;
|
|
689
|
-
function Jt(e = T()) {
|
|
690
|
-
return [
|
|
691
|
-
{
|
|
692
|
-
path: "/",
|
|
693
|
-
name: "home",
|
|
694
|
-
component: Q,
|
|
695
|
-
meta: e("home", ...j)
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
path: "/trails",
|
|
699
|
-
name: "trails",
|
|
700
|
-
component: tt,
|
|
701
|
-
meta: e("trails", ...j)
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
path: "/trail/:id",
|
|
705
|
-
name: "trail",
|
|
706
|
-
component: kt,
|
|
707
|
-
props: (e) => ({
|
|
708
|
-
id: String(e.params.id),
|
|
709
|
-
tab: qt(e)
|
|
710
|
-
}),
|
|
711
|
-
meta: e("trail", ...j)
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
path: "/itinerary/:id",
|
|
715
|
-
name: "itinerary",
|
|
716
|
-
component: Kt,
|
|
717
|
-
props: (e) => ({
|
|
718
|
-
id: String(e.params.id),
|
|
719
|
-
tab: qt(e)
|
|
720
|
-
}),
|
|
721
|
-
meta: e("itinerary", ...j)
|
|
722
|
-
}
|
|
723
|
-
];
|
|
724
|
-
}
|
|
725
|
-
function Yt({ datasetPackage: e, origin: t, siteName: n, chrome: r = {}, travels: i = {} }) {
|
|
726
|
-
let { manifest: a } = E(), o = C({ entity: "collections" });
|
|
727
|
-
return {
|
|
728
|
-
datasetPackage: e,
|
|
729
|
-
siteName: a.site?.names?.en ?? n ?? e,
|
|
730
|
-
site: { origin: t },
|
|
731
|
-
features: { entities: [] },
|
|
732
|
-
languages: o,
|
|
733
|
-
chrome: r,
|
|
734
|
-
travels: i,
|
|
735
|
-
shell: Ce,
|
|
736
|
-
navigation: { languages: x(o) },
|
|
737
|
-
views: { home: Q },
|
|
738
|
-
extraViews: Jt(T()),
|
|
739
|
-
legacyRoutes: []
|
|
740
|
-
};
|
|
741
|
-
}
|
|
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 };
|