@museumwnf/viewer-layout 3.2.2 → 3.4.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 +167 -12
- package/dist/ItemDetailView-I__hm63H.js +298 -0
- package/dist/SiteShell-4vV2jIzf.js +192 -0
- package/dist/{Theme-Dd8G1RA3.js → Theme-B5J0XRe1.js} +3 -3
- package/dist/{TimelineResultsView-5Cy-OkZY.js → TimelineResultsView-ChkBn27W.js} +489 -485
- package/dist/chrome-DPuPeWzV.js +1141 -0
- package/dist/components.js +1 -1
- package/dist/data-CJlLA-Mf.js +38 -0
- package/dist/data-DTbAYdr2.js +40 -0
- package/dist/dxa.js +619 -502
- package/dist/index.js +6 -6
- package/dist/{themeSpecs-C_uGarTs.js → themeSpecs-B885l456.js} +3 -2
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +1 -1
- package/package.json +8 -2
- package/src/dxa/testing.js +857 -0
- package/src/styles/dxa-exhibition.css +389 -0
- package/src/styles/dxa-gallery.css +589 -0
- package/src/tokens.reference.css +25 -7
- package/dist/ItemDetailView-C-X-LgJU.js +0 -284
- package/dist/PageShell-CbJ9lQoQ.js +0 -961
- package/dist/SiteShell-C3OgZO8p.js +0 -154
- package/dist/data-BfyYB8ff.js +0 -33
- package/dist/data-G8uXeEfE.js +0 -35
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, s as ee, t as p, u as te, y as m } from "./TimelineEventList-COjkXEzS.js";
|
|
2
|
-
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, guardReactiveProps as w, isRef as T, mergeProps as E, normalizeClass as D, normalizeProps as O, openBlock as k, reactive as
|
|
3
|
-
import { I18nText as re, NotFoundView as ie, byId as W, centuryPresets as
|
|
4
|
-
import { useRoute as
|
|
2
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, guardReactiveProps as w, isRef as T, mergeProps as E, normalizeClass as D, normalizeProps as O, openBlock as k, reactive as A, ref as j, renderList as M, renderSlot as N, resolveDynamicComponent as P, toDisplayString as F, unref as I, useSlots as ne, vModelCheckbox as L, vModelRadio as R, vModelSelect as z, vModelText as B, watch as V, withCtx as H, withDirectives as U } from "vue";
|
|
3
|
+
import { I18nText as re, NotFoundView as ie, byId as W, centuryPresets as G, citation as ae, dateRange as oe, entityRef as se, eventDateLabel as K, glossaryEntries as q, glossaryTermsForText as J, groupByCountry as Y, languageLabels as ce, md as X, mdInline as Z, partnerHierarchy as le, partnerView as Q, renderBlock as ue, renderInline as de, renderPlain as fe, sheetRows as pe, sortChronological as me, sourceUrl as he, useCollectionTree as ge, useDataPackage as _e, useFacets as ve, useGlossaryPopup as ye, useI18n as be, useListQuery as xe, useLocale as Se, usePagination as Ce, useProjects as we, useRecordLanguage as Te, useRecordSheet as Ee, useRelatedRecords as De, useSearchLanguage as Oe, useTimelineEvents as ke, yearBuckets as Ae } from "@museumwnf/viewer-core";
|
|
4
|
+
import { useRoute as je, useRouter as Me } from "vue-router";
|
|
5
5
|
//#region src/views/CatalogueResultsView.vue
|
|
6
|
-
var
|
|
6
|
+
var Ne = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "mwnf-catalogue__title"
|
|
9
|
-
},
|
|
9
|
+
}, $ = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "mwnf-facet"
|
|
12
|
-
},
|
|
12
|
+
}, Pe = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "mwnf-facet__label"
|
|
15
|
-
},
|
|
15
|
+
}, Fe = [
|
|
16
16
|
"value",
|
|
17
17
|
"placeholder",
|
|
18
18
|
"onInput"
|
|
19
|
-
],
|
|
19
|
+
], Ie = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "mwnf-facet"
|
|
22
|
-
},
|
|
22
|
+
}, Le = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "mwnf-facet__label"
|
|
25
|
-
},
|
|
25
|
+
}, Re = [
|
|
26
26
|
"value",
|
|
27
27
|
"placeholder",
|
|
28
28
|
"onInput"
|
|
29
|
-
],
|
|
29
|
+
], ze = {
|
|
30
30
|
key: 2,
|
|
31
31
|
class: "mwnf-facet mwnf-facet--checkbox"
|
|
32
|
-
},
|
|
32
|
+
}, Be = ["checked", "onChange"], Ve = {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "mwnf-facet__label"
|
|
35
|
-
},
|
|
35
|
+
}, He = { class: "mwnf-catalogue__body" }, Ue = { class: "mwnf-catalogue__results" }, We = {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "mwnf-catalogue__aside"
|
|
38
|
-
},
|
|
38
|
+
}, Ge = {
|
|
39
39
|
__name: "CatalogueResultsView",
|
|
40
40
|
props: {
|
|
41
41
|
spec: {
|
|
@@ -48,126 +48,126 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
setup(t) {
|
|
51
|
-
let n = t, { t: r, locale: s } =
|
|
51
|
+
let n = t, { t: r, locale: s } = be(), c = _e(), u = n.spec.entity ?? n.entity, d = g(() => n.spec), ee = se(u);
|
|
52
52
|
u && c.loadTranslations(u, "en");
|
|
53
53
|
let p = g(() => d.value.keys ?? [...Object.keys(d.value.facets ?? {}), ...te()]);
|
|
54
54
|
function te() {
|
|
55
55
|
let e = d.value.dates;
|
|
56
56
|
return e ? [e.begin ?? "begin", e.end ?? "end"] : [];
|
|
57
57
|
}
|
|
58
|
-
let { filters: m, page: T, active: E, apply:
|
|
58
|
+
let { filters: m, page: T, active: E, apply: A, reset: j, goToPage: ne } = xe({ keys: p.value }), L = {
|
|
59
59
|
t: r,
|
|
60
60
|
locale: s,
|
|
61
61
|
tr: (e, t) => c.tr(e, t, s.value, "en"),
|
|
62
|
-
renderInline:
|
|
63
|
-
renderPlain:
|
|
62
|
+
renderInline: de,
|
|
63
|
+
renderPlain: fe
|
|
64
64
|
};
|
|
65
|
-
function
|
|
65
|
+
function R(e, t) {
|
|
66
66
|
if (typeof t.values == "function") return [t.values(e)].flat();
|
|
67
67
|
let n = e?.[t.field];
|
|
68
68
|
return Array.isArray(n) ? n : [n];
|
|
69
69
|
}
|
|
70
|
-
let
|
|
70
|
+
let z = g(() => {
|
|
71
71
|
let e = d.value, t = ee.value ?? [];
|
|
72
|
-
e.scope && (t = t.filter((t) => e.scope(t, m,
|
|
72
|
+
e.scope && (t = t.filter((t) => e.scope(t, m, L)));
|
|
73
73
|
for (let [n, r] of Object.entries(e.facets ?? {})) {
|
|
74
74
|
let e = m[n];
|
|
75
|
-
e && (t = t.filter((t) =>
|
|
75
|
+
e && (t = t.filter((t) => R(t, r).map(String).includes(String(e))));
|
|
76
76
|
}
|
|
77
|
-
e.match && (t = t.filter((t) => e.match(t, m,
|
|
77
|
+
e.match && (t = t.filter((t) => e.match(t, m, L))), e.narrow && (t = e.narrow(t, m, L)), e.dates && (t = oe(t, {
|
|
78
78
|
begin: m[e.dates.begin ?? "begin"],
|
|
79
79
|
end: m[e.dates.end ?? "end"],
|
|
80
80
|
mode: e.dates.mode ?? "overlap",
|
|
81
81
|
fields: e.dates.fields
|
|
82
82
|
}));
|
|
83
83
|
let n = e.sort ?? "chronological";
|
|
84
|
-
return typeof n == "function" ? n(t) : n === "chronological" ?
|
|
85
|
-
}),
|
|
84
|
+
return typeof n == "function" ? n(t) : n === "chronological" ? me(t) : n && typeof n == "object" ? me(t, n) : t;
|
|
85
|
+
}), B = g(() => d.value.facetScope === "matching" ? z.value : ee.value ?? []), V = ve(B, () => d.value.facets ?? {}), U = Ce(z, {
|
|
86
86
|
page: T,
|
|
87
87
|
size: () => d.value.pageSize ?? 20
|
|
88
|
-
}),
|
|
89
|
-
function
|
|
90
|
-
let t =
|
|
88
|
+
}), re = g(() => d.value.recordRoute ?? (n.entity ? `${n.entity}-detail` : "item"));
|
|
89
|
+
function ie(e) {
|
|
90
|
+
let t = L.tr(u, e.id).name ?? e.internal_name ?? e.id;
|
|
91
91
|
return {
|
|
92
92
|
id: e.id,
|
|
93
93
|
image: e.images?.[0]?.url ?? "",
|
|
94
|
-
imageAlt:
|
|
95
|
-
name:
|
|
94
|
+
imageAlt: fe(String(t)),
|
|
95
|
+
name: de(String(t)),
|
|
96
96
|
meta: [],
|
|
97
97
|
badge: e.type ?? "",
|
|
98
98
|
to: {
|
|
99
|
-
name:
|
|
99
|
+
name: re.value,
|
|
100
100
|
params: { id: e.id }
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
let
|
|
104
|
+
let W = g(() => U.value.rows.map((e) => (d.value.record ?? ie)(e, L))), G = g(() => ({
|
|
105
105
|
filters: m,
|
|
106
106
|
active: E.value,
|
|
107
|
-
apply:
|
|
108
|
-
reset:
|
|
109
|
-
goToPage:
|
|
110
|
-
matching:
|
|
111
|
-
pageInfo:
|
|
112
|
-
options:
|
|
107
|
+
apply: A,
|
|
108
|
+
reset: j,
|
|
109
|
+
goToPage: ne,
|
|
110
|
+
matching: z.value,
|
|
111
|
+
pageInfo: U.value,
|
|
112
|
+
options: V.value
|
|
113
113
|
})), ae = g(() => {
|
|
114
114
|
let e = d.value;
|
|
115
115
|
return e.summary ? e.summary({
|
|
116
|
-
...
|
|
116
|
+
...G.value,
|
|
117
117
|
t: r,
|
|
118
118
|
total: (ee.value ?? []).length
|
|
119
119
|
}) : [{
|
|
120
120
|
label: r(e.summaryLabel ?? "catalogue.results.itemsFound"),
|
|
121
|
-
count:
|
|
121
|
+
count: U.value.total
|
|
122
122
|
}];
|
|
123
|
-
}),
|
|
123
|
+
}), K = g(() => d.value.filterMode ?? "apply"), q = g(() => d.value.controls ?? []), J = g(() => q.value.length > 0 || !!d.value.panel);
|
|
124
124
|
function Y(e, t) {
|
|
125
|
-
|
|
125
|
+
K.value === "immediate" ? A({ [e]: t }) : m[e] = t;
|
|
126
126
|
}
|
|
127
|
-
let
|
|
127
|
+
let ce = g(() => r(d.value.empty ?? "catalogue.results.noResultsFilter")), X = g(() => d.value.variant === "grid"), Z = g(() => ({
|
|
128
128
|
window: 5,
|
|
129
129
|
jump: !1,
|
|
130
130
|
ends: !0,
|
|
131
131
|
...d.value.pagination ?? {}
|
|
132
132
|
}));
|
|
133
|
-
return (t, n) => (k(), y("section",
|
|
134
|
-
|
|
135
|
-
d.value.title ? (k(), y("h1", Ne,
|
|
133
|
+
return (t, n) => (k(), y("section", { class: D(["mwnf-catalogue", { "mwnf-catalogue--boxed": d.value.boxed }]) }, [
|
|
134
|
+
N(t.$slots, "before", O(w(G.value))),
|
|
135
|
+
d.value.title ? (k(), y("h1", Ne, F(I(r)(d.value.title)), 1)) : v("", !0),
|
|
136
136
|
J.value || t.$slots.filters ? (k(), _(f, {
|
|
137
137
|
key: 1,
|
|
138
138
|
class: "mwnf-catalogue__filters",
|
|
139
|
-
mode:
|
|
140
|
-
title: d.value.filterTitle ?
|
|
141
|
-
"reset-label": d.value.resetLabel ?
|
|
142
|
-
onApply: n[2] ||= (e) =>
|
|
143
|
-
onReset: n[3] ||= (e) =>
|
|
139
|
+
mode: K.value,
|
|
140
|
+
title: d.value.filterTitle ? I(r)(d.value.filterTitle) : "",
|
|
141
|
+
"reset-label": d.value.resetLabel ? I(r)(d.value.resetLabel) : "",
|
|
142
|
+
onApply: n[2] ||= (e) => I(A)(),
|
|
143
|
+
onReset: n[3] ||= (e) => I(j)()
|
|
144
144
|
}, {
|
|
145
|
-
default: H(() => [(k(!0), y(h, null,
|
|
145
|
+
default: H(() => [(k(!0), y(h, null, M(q.value, (e) => (k(), y(h, { key: e.key }, [e.type === "year" ? (k(), y("label", $, [e.label ? (k(), y("span", Pe, F(I(r)(e.label)), 1)) : v("", !0), b("input", {
|
|
146
146
|
type: "number",
|
|
147
147
|
class: "mwnf-facet__select",
|
|
148
|
-
value:
|
|
149
|
-
placeholder: e.placeholder ?
|
|
150
|
-
onInput: (t) =>
|
|
151
|
-
onChange: n[0] ||= (e) =>
|
|
152
|
-
}, null, 40,
|
|
148
|
+
value: I(m)[e.key],
|
|
149
|
+
placeholder: e.placeholder ? I(r)(e.placeholder) : "",
|
|
150
|
+
onInput: (t) => I(m)[e.key] = t.target.value,
|
|
151
|
+
onChange: n[0] ||= (e) => K.value === "immediate" ? I(A)() : null
|
|
152
|
+
}, null, 40, Fe)])) : e.type === "query" ? (k(), y("label", Ie, [e.label ? (k(), y("span", Le, F(I(r)(e.label)), 1)) : v("", !0), b("input", {
|
|
153
153
|
type: "text",
|
|
154
154
|
class: "mwnf-facet__select",
|
|
155
|
-
value:
|
|
156
|
-
placeholder: e.placeholder ?
|
|
157
|
-
onInput: (t) =>
|
|
158
|
-
onChange: n[1] ||= (e) =>
|
|
159
|
-
}, null, 40,
|
|
155
|
+
value: I(m)[e.key],
|
|
156
|
+
placeholder: e.placeholder ? I(r)(e.placeholder) : "",
|
|
157
|
+
onInput: (t) => I(m)[e.key] = t.target.value,
|
|
158
|
+
onChange: n[1] ||= (e) => K.value === "immediate" ? I(A)() : null
|
|
159
|
+
}, null, 40, Re)])) : e.type === "checkbox" ? (k(), y("label", ze, [b("input", {
|
|
160
160
|
type: "checkbox",
|
|
161
161
|
class: "mwnf-facet__checkbox",
|
|
162
|
-
checked:
|
|
162
|
+
checked: I(m)[e.key] === "1",
|
|
163
163
|
onChange: (t) => Y(e.key, t.target.checked ? "1" : "")
|
|
164
|
-
}, null, 40,
|
|
164
|
+
}, null, 40, Be), e.label ? (k(), y("span", Ve, F(I(r)(e.label)), 1)) : v("", !0)])) : (k(), _(l, {
|
|
165
165
|
key: 3,
|
|
166
|
-
"model-value":
|
|
167
|
-
label: e.label ?
|
|
168
|
-
options:
|
|
169
|
-
placeholder: e.placeholder ?
|
|
170
|
-
"any-label": e.anyLabel ?
|
|
166
|
+
"model-value": I(m)[e.key],
|
|
167
|
+
label: e.label ? I(r)(e.label) : "",
|
|
168
|
+
options: I(V)[e.key] ?? [],
|
|
169
|
+
placeholder: e.placeholder ? I(r)(e.placeholder) : "",
|
|
170
|
+
"any-label": e.anyLabel ? I(r)(e.anyLabel) : "",
|
|
171
171
|
"hide-empty": !!e.hideEmpty,
|
|
172
172
|
"onUpdate:modelValue": (t) => Y(e.key, t)
|
|
173
173
|
}, null, 8, [
|
|
@@ -178,7 +178,7 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
178
178
|
"any-label",
|
|
179
179
|
"hide-empty",
|
|
180
180
|
"onUpdate:modelValue"
|
|
181
|
-
]))], 64))), 128)),
|
|
181
|
+
]))], 64))), 128)), N(t.$slots, "filters", O(w(G.value)))]),
|
|
182
182
|
_: 3
|
|
183
183
|
}, 8, [
|
|
184
184
|
"mode",
|
|
@@ -187,41 +187,41 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
187
187
|
])) : v("", !0),
|
|
188
188
|
C(i, { parts: ae.value }, x({ _: 2 }, [t.$slots.actions ? {
|
|
189
189
|
name: "actions",
|
|
190
|
-
fn: H(() => [
|
|
190
|
+
fn: H(() => [N(t.$slots, "actions", O(w(G.value)))]),
|
|
191
191
|
key: "0"
|
|
192
192
|
} : void 0]), 1032, ["parts"]),
|
|
193
|
-
b("div",
|
|
194
|
-
records:
|
|
195
|
-
"action-label": d.value.actionLabel ?
|
|
193
|
+
b("div", He, [b("div", Ue, [(k(), _(P(X.value ? a : e), {
|
|
194
|
+
records: W.value,
|
|
195
|
+
"action-label": d.value.actionLabel ? I(r)(d.value.actionLabel) : ""
|
|
196
196
|
}, {
|
|
197
|
-
empty: H(() => [
|
|
197
|
+
empty: H(() => [N(t.$slots, "empty", O(w(G.value)), () => [S(F(ce.value), 1)])]),
|
|
198
198
|
_: 3
|
|
199
199
|
}, 8, ["records", "action-label"])), C(o, {
|
|
200
|
-
"page-info":
|
|
201
|
-
window:
|
|
202
|
-
jump:
|
|
203
|
-
ends:
|
|
204
|
-
onNavigate:
|
|
200
|
+
"page-info": I(U),
|
|
201
|
+
window: Z.value.window,
|
|
202
|
+
jump: Z.value.jump,
|
|
203
|
+
ends: Z.value.ends,
|
|
204
|
+
onNavigate: I(ne)
|
|
205
205
|
}, null, 8, [
|
|
206
206
|
"page-info",
|
|
207
207
|
"window",
|
|
208
208
|
"jump",
|
|
209
209
|
"ends",
|
|
210
210
|
"onNavigate"
|
|
211
|
-
])]), t.$slots.aside ? (k(), y("aside",
|
|
212
|
-
|
|
213
|
-
]));
|
|
211
|
+
])]), t.$slots.aside ? (k(), y("aside", We, [N(t.$slots, "aside", O(w(G.value)))])) : v("", !0)]),
|
|
212
|
+
N(t.$slots, "after", O(w(G.value)))
|
|
213
|
+
], 2));
|
|
214
214
|
}
|
|
215
|
-
},
|
|
215
|
+
}, Ke = ["dir", "innerHTML"], qe = { class: "mwnf-record__body" }, Je = { class: "mwnf-record__main" }, Ye = {
|
|
216
216
|
key: 1,
|
|
217
217
|
class: "mwnf-record__status"
|
|
218
|
-
},
|
|
218
|
+
}, Xe = {
|
|
219
219
|
key: 0,
|
|
220
220
|
class: "mwnf-record__aside"
|
|
221
|
-
},
|
|
221
|
+
}, Ze = {
|
|
222
222
|
key: 2,
|
|
223
223
|
class: "mwnf-record__status"
|
|
224
|
-
},
|
|
224
|
+
}, Qe = {
|
|
225
225
|
__name: "RecordView",
|
|
226
226
|
props: {
|
|
227
227
|
spec: {
|
|
@@ -238,55 +238,55 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
240
|
setup(e) {
|
|
241
|
-
let i = e, { t: a, locale: o } =
|
|
241
|
+
let i = e, { t: a, locale: o } = be(), l = _e(), u = we(), f = ne(), p = je(), T = i.spec.entity ?? i.entity, E = g(() => i.spec), A = se(T), j = W(T), P = g(() => j.value.get(i.id) ?? null), L = g(() => A.value !== null), { language: R, languages: z, dir: B, select: V, text: U, ready: re, terms: G, glossary: oe, attribution: K } = Ee(P, {
|
|
242
242
|
entity: T,
|
|
243
243
|
translations: i.spec.translations ?? [],
|
|
244
244
|
attribution: i.spec.attribution ?? []
|
|
245
|
-
}), q = g(() => ce(
|
|
246
|
-
record:
|
|
247
|
-
text:
|
|
248
|
-
language:
|
|
245
|
+
}), q = g(() => ce(z.value)), { active: J, onClick: Y, close: X } = ye(G), Z = g(() => J.value ? ue(J.value.definition, { breaks: !0 }) : ""), le = (e, t) => l.tr(e, t, R.value, "en"), Q = g(() => ({
|
|
246
|
+
record: P.value,
|
|
247
|
+
text: U.value,
|
|
248
|
+
language: R.value,
|
|
249
249
|
languages: q.value,
|
|
250
|
-
select:
|
|
251
|
-
dir:
|
|
252
|
-
glossary:
|
|
253
|
-
ready:
|
|
250
|
+
select: V,
|
|
251
|
+
dir: B.value,
|
|
252
|
+
glossary: oe.value,
|
|
253
|
+
ready: re.value,
|
|
254
254
|
attribution: K.value,
|
|
255
255
|
t: a,
|
|
256
|
-
tr:
|
|
256
|
+
tr: le
|
|
257
257
|
}));
|
|
258
|
-
function
|
|
258
|
+
function me(e) {
|
|
259
259
|
return ((typeof e == "function" ? e(Q.value) : e) ?? []).map((e) => ({
|
|
260
260
|
...e,
|
|
261
261
|
label: e.label ? a(e.label) : ""
|
|
262
262
|
}));
|
|
263
263
|
}
|
|
264
|
-
let
|
|
264
|
+
let ge = g(() => P.value ? pe(me(E.value.fields), Q.value) : []), ve = g(() => P.value ? pe(me(E.value.sections).map((e) => ({
|
|
265
265
|
render: "block",
|
|
266
266
|
...e
|
|
267
|
-
})), Q.value) : []),
|
|
268
|
-
let e =
|
|
267
|
+
})), Q.value) : []), xe = g(() => E.value.shortDescription === !1 ? "" : E.value.shortDescription ?? "short_description"), Se = g(() => {
|
|
268
|
+
let e = xe.value ? U.value[xe.value] : "";
|
|
269
269
|
return e ? { html: ue(String(e), {
|
|
270
270
|
breaks: !0,
|
|
271
|
-
glossary:
|
|
271
|
+
glossary: oe.value
|
|
272
272
|
}) } : null;
|
|
273
|
-
}),
|
|
274
|
-
if (!
|
|
273
|
+
}), Ce = g(() => {
|
|
274
|
+
if (!P.value) return "";
|
|
275
275
|
if (E.value.title) return E.value.title(Q.value);
|
|
276
|
-
let e =
|
|
277
|
-
return
|
|
278
|
-
}),
|
|
279
|
-
if (!
|
|
280
|
-
if (E.value.media) return E.value.media(
|
|
281
|
-
let e =
|
|
282
|
-
return (
|
|
276
|
+
let e = U.value.name ?? P.value.internal_name ?? P.value.id;
|
|
277
|
+
return de(String(e), { glossary: oe.value });
|
|
278
|
+
}), Te = g(() => {
|
|
279
|
+
if (!P.value) return [];
|
|
280
|
+
if (E.value.media) return E.value.media(P.value, Q.value);
|
|
281
|
+
let e = fe(String(U.value.name ?? P.value.internal_name ?? ""));
|
|
282
|
+
return (P.value.images ?? []).map((t) => ({
|
|
283
283
|
url: t.url,
|
|
284
|
-
alt: t.captions?.[
|
|
285
|
-
caption: t.captions?.[
|
|
284
|
+
alt: t.captions?.[R.value] ?? e,
|
|
285
|
+
caption: t.captions?.[R.value] ?? t.captions?.en ?? "",
|
|
286
286
|
photographer: t.photographer ?? "",
|
|
287
287
|
copyright: t.copyright ?? ""
|
|
288
288
|
}));
|
|
289
|
-
}),
|
|
289
|
+
}), Oe = [
|
|
290
290
|
{
|
|
291
291
|
field: "author",
|
|
292
292
|
label: "sheet.field.preparedBy"
|
|
@@ -303,35 +303,35 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
303
303
|
field: "translation_copy_editor",
|
|
304
304
|
label: "sheet.field.translationCopyeditedBy"
|
|
305
305
|
}
|
|
306
|
-
],
|
|
306
|
+
], ke = g(() => (E.value.credits ?? Oe).map(({ field: e, label: t }) => ({
|
|
307
307
|
label: a(t),
|
|
308
|
-
value:
|
|
309
|
-
})).filter((e) => e.value)),
|
|
308
|
+
value: U.value[e] ?? K.value[e] ?? ""
|
|
309
|
+
})).filter((e) => e.value)), Ae = g(() => String(P.value?.[E.value.workingNumber ?? "mwnf_reference"] ?? "")), Me = g(() => {
|
|
310
310
|
let e = E.value.citation;
|
|
311
|
-
if (!
|
|
312
|
-
let t = typeof e?.project == "function" ? null : e?.project ??
|
|
313
|
-
return
|
|
314
|
-
author:
|
|
315
|
-
name:
|
|
311
|
+
if (!P.value || e === !1) return "";
|
|
312
|
+
let t = typeof e?.project == "function" ? null : e?.project ?? P.value.project_id, n = typeof e?.project == "function" ? e.project(P.value, Q.value) : u.label(t), r = e?.permalink === !1 ? void 0 : typeof e?.permalink == "string" ? e.permalink : he(p) ?? void 0;
|
|
313
|
+
return ae({
|
|
314
|
+
author: U.value.author ?? K.value.author,
|
|
315
|
+
name: U.value.name ?? P.value.internal_name ?? "",
|
|
316
316
|
project: n,
|
|
317
317
|
permalink: r,
|
|
318
318
|
inWord: a("record.citation.in")
|
|
319
319
|
});
|
|
320
|
-
}),
|
|
320
|
+
}), Ne = De(P, {
|
|
321
321
|
entity: T,
|
|
322
|
-
language:
|
|
323
|
-
}),
|
|
324
|
-
if (
|
|
325
|
-
let e =
|
|
326
|
-
return
|
|
322
|
+
language: R
|
|
323
|
+
}), $ = g(() => E.value.related === !1 ? null : E.value.related ?? {}), Pe = g(() => {
|
|
324
|
+
if (!$.value) return [];
|
|
325
|
+
let e = $.value.record ?? Fe;
|
|
326
|
+
return Ne.value.inPackage.map((t) => e(t, Q.value));
|
|
327
327
|
});
|
|
328
|
-
function
|
|
329
|
-
let n =
|
|
328
|
+
function Fe({ record: e, justification: t }) {
|
|
329
|
+
let n = le(T, e.id).name ?? e.internal_name ?? e.id;
|
|
330
330
|
return {
|
|
331
331
|
id: e.id,
|
|
332
332
|
image: e.images?.[0]?.url ?? "",
|
|
333
|
-
imageAlt:
|
|
334
|
-
name:
|
|
333
|
+
imageAlt: fe(String(n)),
|
|
334
|
+
name: de(String(n)),
|
|
335
335
|
meta: t ? [t] : [],
|
|
336
336
|
badge: e.type ?? "",
|
|
337
337
|
to: {
|
|
@@ -340,7 +340,7 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
let
|
|
343
|
+
let Ie = /* @__PURE__ */ new Set([
|
|
344
344
|
"header",
|
|
345
345
|
"before-sheet",
|
|
346
346
|
"after-sheet",
|
|
@@ -349,26 +349,26 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
349
349
|
"related",
|
|
350
350
|
"after",
|
|
351
351
|
"default"
|
|
352
|
-
]),
|
|
353
|
-
return (e, i) =>
|
|
352
|
+
]), Le = g(() => Object.keys(f).filter((e) => !Ie.has(e)));
|
|
353
|
+
return (e, i) => L.value && !P.value ? (k(), _(I(ie), { key: 0 })) : P.value ? (k(), y("article", {
|
|
354
354
|
key: 1,
|
|
355
|
-
class: "mwnf-record",
|
|
356
|
-
onClick: i[0] ||= (...e) =>
|
|
355
|
+
class: D(["mwnf-record", { "mwnf-record--spaced": E.value.spaced }]),
|
|
356
|
+
onClick: i[0] ||= (...e) => I(Y) && I(Y)(...e)
|
|
357
357
|
}, [
|
|
358
|
-
|
|
358
|
+
N(e.$slots, "header", O(w(Q.value)), () => [
|
|
359
359
|
E.value.back ? (k(), _(m, {
|
|
360
360
|
key: 0,
|
|
361
361
|
class: "mwnf-record__back",
|
|
362
362
|
to: E.value.back.to,
|
|
363
363
|
href: E.value.back.href
|
|
364
364
|
}, {
|
|
365
|
-
default: H(() => [S("← " +
|
|
365
|
+
default: H(() => [S("← " + F(I(a)(E.value.back.label)), 1)]),
|
|
366
366
|
_: 1
|
|
367
367
|
}, 8, ["to", "href"])) : v("", !0),
|
|
368
368
|
C(r, {
|
|
369
369
|
languages: q.value,
|
|
370
|
-
language:
|
|
371
|
-
onSelect:
|
|
370
|
+
language: I(R),
|
|
371
|
+
onSelect: I(V)
|
|
372
372
|
}, null, 8, [
|
|
373
373
|
"languages",
|
|
374
374
|
"language",
|
|
@@ -376,27 +376,27 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
376
376
|
]),
|
|
377
377
|
b("h1", {
|
|
378
378
|
class: "mwnf-record__title",
|
|
379
|
-
dir:
|
|
380
|
-
innerHTML:
|
|
381
|
-
}, null, 8,
|
|
379
|
+
dir: I(B) || void 0,
|
|
380
|
+
innerHTML: Ce.value
|
|
381
|
+
}, null, 8, Ke)
|
|
382
382
|
]),
|
|
383
|
-
b("div",
|
|
384
|
-
|
|
383
|
+
b("div", qe, [b("div", Je, [
|
|
384
|
+
Te.value.length ? (k(), _(t, {
|
|
385
385
|
key: 0,
|
|
386
|
-
images:
|
|
386
|
+
images: Te.value,
|
|
387
387
|
variant: E.value.mediaVariant ?? ""
|
|
388
388
|
}, null, 8, ["images", "variant"])) : v("", !0),
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
I(re) ? v("", !0) : (k(), y("p", Ye, F(I(a)("core.status.loading")), 1)),
|
|
390
|
+
N(e.$slots, "before-sheet", O(w(Q.value))),
|
|
391
391
|
C(te, {
|
|
392
|
-
rows:
|
|
392
|
+
rows: ge.value,
|
|
393
393
|
layout: E.value.layout ?? "table",
|
|
394
|
-
dir:
|
|
395
|
-
"short-description":
|
|
394
|
+
dir: I(B),
|
|
395
|
+
"short-description": Se.value,
|
|
396
396
|
"short-description-after": E.value.shortDescriptionAfter ?? "description"
|
|
397
|
-
}, x({ _: 2 }, [
|
|
397
|
+
}, x({ _: 2 }, [M(Le.value, (t) => ({
|
|
398
398
|
name: t,
|
|
399
|
-
fn: H((n) => [
|
|
399
|
+
fn: H((n) => [N(e.$slots, t, O(w({
|
|
400
400
|
...n,
|
|
401
401
|
...Q.value
|
|
402
402
|
})))])
|
|
@@ -407,23 +407,23 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
407
407
|
"short-description",
|
|
408
408
|
"short-description-after"
|
|
409
409
|
]),
|
|
410
|
-
(k(!0), y(h, null,
|
|
410
|
+
(k(!0), y(h, null, M(ve.value, (e) => (k(), _(c, {
|
|
411
411
|
key: e.key,
|
|
412
412
|
heading: e.label,
|
|
413
413
|
html: e.html,
|
|
414
|
-
dir:
|
|
414
|
+
dir: I(B)
|
|
415
415
|
}, null, 8, [
|
|
416
416
|
"heading",
|
|
417
417
|
"html",
|
|
418
418
|
"dir"
|
|
419
419
|
]))), 128)),
|
|
420
|
-
|
|
420
|
+
N(e.$slots, "after-sheet", O(w(Q.value))),
|
|
421
421
|
C(n, {
|
|
422
|
-
credits:
|
|
423
|
-
"working-number":
|
|
424
|
-
"working-number-label":
|
|
425
|
-
citation:
|
|
426
|
-
"citation-heading": E.value.citation?.heading ?
|
|
422
|
+
credits: ke.value,
|
|
423
|
+
"working-number": Ae.value,
|
|
424
|
+
"working-number-label": I(a)("sheet.field.workingNumber"),
|
|
425
|
+
citation: Me.value,
|
|
426
|
+
"citation-heading": E.value.citation?.heading ? I(a)(E.value.citation.heading) : ""
|
|
427
427
|
}, null, 8, [
|
|
428
428
|
"credits",
|
|
429
429
|
"working-number",
|
|
@@ -431,75 +431,79 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
431
431
|
"citation",
|
|
432
432
|
"citation-heading"
|
|
433
433
|
]),
|
|
434
|
-
|
|
435
|
-
|
|
434
|
+
N(e.$slots, "source", O(w(Q.value)), () => [C(ee)]),
|
|
435
|
+
N(e.$slots, "related", O(w({
|
|
436
436
|
...Q.value,
|
|
437
|
-
records:
|
|
438
|
-
outside:
|
|
439
|
-
})), () => [
|
|
437
|
+
records: Pe.value,
|
|
438
|
+
outside: I(Ne).outside
|
|
439
|
+
})), () => [$.value ? (k(), _(d, {
|
|
440
440
|
key: 0,
|
|
441
|
-
heading:
|
|
442
|
-
records:
|
|
443
|
-
variant:
|
|
444
|
-
"action-label":
|
|
441
|
+
heading: I(a)($.value.heading ?? "record.related.items"),
|
|
442
|
+
records: Pe.value,
|
|
443
|
+
variant: $.value.variant ?? "list",
|
|
444
|
+
"action-label": $.value.actionLabel ? I(a)($.value.actionLabel) : ""
|
|
445
445
|
}, null, 8, [
|
|
446
446
|
"heading",
|
|
447
447
|
"records",
|
|
448
448
|
"variant",
|
|
449
449
|
"action-label"
|
|
450
450
|
])) : v("", !0)])
|
|
451
|
-
]), e.$slots.aside ? (k(), y("aside",
|
|
452
|
-
|
|
451
|
+
]), e.$slots.aside ? (k(), y("aside", Xe, [N(e.$slots, "aside", O(w({
|
|
452
|
+
...Q.value,
|
|
453
|
+
records: Pe.value,
|
|
454
|
+
outside: I(Ne).outside
|
|
455
|
+
})))])) : v("", !0)]),
|
|
456
|
+
N(e.$slots, "after", O(w(Q.value))),
|
|
453
457
|
C(s, {
|
|
454
|
-
term:
|
|
455
|
-
html:
|
|
456
|
-
dir:
|
|
457
|
-
onClose:
|
|
458
|
+
term: I(J),
|
|
459
|
+
html: Z.value,
|
|
460
|
+
dir: I(B),
|
|
461
|
+
onClose: I(X)
|
|
458
462
|
}, null, 8, [
|
|
459
463
|
"term",
|
|
460
464
|
"html",
|
|
461
465
|
"dir",
|
|
462
466
|
"onClose"
|
|
463
467
|
])
|
|
464
|
-
])) : (k(), y("p",
|
|
468
|
+
], 2)) : (k(), y("p", Ze, F(I(a)("core.status.loading")), 1));
|
|
465
469
|
}
|
|
466
|
-
},
|
|
470
|
+
}, $e = ["dir"], et = {
|
|
467
471
|
key: 0,
|
|
468
472
|
class: "mwnf-essay__breadcrumb"
|
|
469
|
-
},
|
|
473
|
+
}, tt = { class: "mwnf-essay__breadcrumb-label" }, nt = {
|
|
470
474
|
key: 1,
|
|
471
475
|
class: "mwnf-essay__breadcrumb-link"
|
|
472
|
-
},
|
|
476
|
+
}, rt = ["aria-label"], it = { class: "mwnf-essay__title" }, at = {
|
|
473
477
|
key: 0,
|
|
474
478
|
class: "mwnf-essay__number"
|
|
475
|
-
},
|
|
479
|
+
}, ot = ["innerHTML"], st = { class: "mwnf-essay__body" }, ct = { class: "mwnf-essay__main" }, lt = {
|
|
476
480
|
key: 0,
|
|
477
481
|
class: "mwnf-essay__status"
|
|
478
|
-
},
|
|
482
|
+
}, ut = ["innerHTML"], dt = ["innerHTML"], ft = {
|
|
479
483
|
key: 4,
|
|
480
484
|
class: "mwnf-essay__nav"
|
|
481
|
-
},
|
|
485
|
+
}, pt = {
|
|
482
486
|
key: 1,
|
|
483
487
|
class: "mwnf-essay__nav-spacer"
|
|
484
|
-
},
|
|
488
|
+
}, mt = {
|
|
485
489
|
key: 0,
|
|
486
490
|
class: "mwnf-essay__side"
|
|
487
|
-
},
|
|
491
|
+
}, ht = {
|
|
488
492
|
key: 0,
|
|
489
493
|
class: "mwnf-essay__panel"
|
|
490
|
-
},
|
|
494
|
+
}, gt = {
|
|
491
495
|
key: 0,
|
|
492
496
|
class: "mwnf-essay__variants"
|
|
493
|
-
},
|
|
497
|
+
}, _t = ["aria-pressed", "onClick"], vt = ["src", "alt"], yt = ["innerHTML"], bt = {
|
|
494
498
|
key: 0,
|
|
495
499
|
class: "mwnf-essay__panel-label"
|
|
496
|
-
},
|
|
500
|
+
}, xt = ["innerHTML"], St = ["innerHTML"], Ct = {
|
|
497
501
|
key: 0,
|
|
498
502
|
class: "mwnf-essay__thumbs"
|
|
499
|
-
},
|
|
503
|
+
}, wt = ["onClick"], Tt = ["src"], Et = {
|
|
500
504
|
key: 2,
|
|
501
505
|
class: "mwnf-essay__status"
|
|
502
|
-
},
|
|
506
|
+
}, Dt = {
|
|
503
507
|
__name: "EssayView",
|
|
504
508
|
props: {
|
|
505
509
|
spec: {
|
|
@@ -512,71 +516,71 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
512
516
|
}
|
|
513
517
|
},
|
|
514
518
|
setup(e) {
|
|
515
|
-
let n = e, { t: r } =
|
|
519
|
+
let n = e, { t: r } = be(), i = _e(), o = ne();
|
|
516
520
|
function c(e) {
|
|
517
521
|
return !!e && typeof e.walk == "function" && typeof e.children == "function";
|
|
518
522
|
}
|
|
519
523
|
function l(e) {
|
|
520
524
|
return typeof e == "string" ? e : "themes";
|
|
521
525
|
}
|
|
522
|
-
let u = n.spec.entity ?? "items", d = n.spec.tree, f = d?.entity ?? (d?.themes ? l(d.themes) : n.spec.entity ?? "collections"), p = c(d) ? d : d?.themes ?
|
|
526
|
+
let u = n.spec.entity ?? "items", d = n.spec.tree, f = d?.entity ?? (d?.themes ? l(d.themes) : n.spec.entity ?? "collections"), p = c(d) ? d : d?.themes ? ge({
|
|
523
527
|
source: "themes",
|
|
524
528
|
entity: f,
|
|
525
529
|
childType: d.childType
|
|
526
|
-
}) :
|
|
530
|
+
}) : ge({
|
|
527
531
|
purpose: d?.purpose,
|
|
528
532
|
rootId: d?.rootId,
|
|
529
533
|
childType: d?.childType,
|
|
530
534
|
entity: f,
|
|
531
535
|
order: d?.order
|
|
532
|
-
}), te =
|
|
533
|
-
if (
|
|
536
|
+
}), te = se(f), x = g(() => te.value !== null), T = g(() => n.spec), E = g(() => p.byId.value.get(n.id) ?? null), A = g(() => p.parents(n.id).at(-1) ?? null), P = g(() => {
|
|
537
|
+
if (A.value) return p.children(A.value.id);
|
|
534
538
|
let e = p.root.value;
|
|
535
539
|
return e ? p.children(e.id) : p.walk().filter((e) => p.parents(e.id).length === 0);
|
|
536
|
-
}), L = g(() =>
|
|
540
|
+
}), L = g(() => P.value.findIndex((e) => e.id === n.id)), R = g(() => T.value.navigation || !1), z = g(() => R.value === "siblings" ? L.value > 0 ? P.value[L.value - 1] : null : R.value === "tree" ? p.previous(n.id) : null), B = g(() => R.value === "siblings" ? L.value !== -1 && L.value < P.value.length - 1 ? P.value[L.value + 1] : null : R.value === "tree" ? p.next(n.id) : null), { language: U, dir: re } = Te(E, { entity: f }), G = g(() => E.value ? i.tr(f, E.value.id, U.value, "en") : {}), ae = j(!1);
|
|
537
541
|
V(() => [E.value?.id, U.value], async () => {
|
|
538
|
-
if (
|
|
539
|
-
|
|
542
|
+
if (ae.value = !1, !E.value) {
|
|
543
|
+
ae.value = !0;
|
|
540
544
|
return;
|
|
541
545
|
}
|
|
542
546
|
let e = U.value === "en" ? ["en"] : [U.value, "en"];
|
|
543
|
-
await Promise.all([f, u].flatMap((t) => e.map((e) => i.loadTranslations(t, e)))),
|
|
547
|
+
await Promise.all([f, u].flatMap((t) => e.map((e) => i.loadTranslations(t, e)))), ae.value = !0;
|
|
544
548
|
}, { immediate: !0 });
|
|
545
|
-
function
|
|
549
|
+
function oe(e) {
|
|
546
550
|
if (!e) return "";
|
|
547
551
|
let t = T.value.placeholder, n = (e) => !!e && !!t && t.test(e), r = i.tr(f, e.id, U.value, "en");
|
|
548
552
|
if (r.title && !n(r.title)) return r.title;
|
|
549
553
|
let a = i.tr(f, e.id, "en").title;
|
|
550
554
|
return a && !n(a) ? a : e.internal_name ?? e.id;
|
|
551
555
|
}
|
|
552
|
-
let
|
|
556
|
+
let K = g(() => ({
|
|
553
557
|
node: E.value,
|
|
554
|
-
text:
|
|
558
|
+
text: G.value,
|
|
555
559
|
language: U.value,
|
|
556
560
|
tree: p,
|
|
557
561
|
select: Ie,
|
|
558
562
|
t: r,
|
|
559
563
|
tr: (e, t) => i.tr(e, t, U.value, "en")
|
|
560
564
|
}));
|
|
561
|
-
function
|
|
565
|
+
function Y(e, t) {
|
|
562
566
|
return t.split(".").reduce((e, t) => e?.[t], e);
|
|
563
567
|
}
|
|
564
568
|
function ce(e, t) {
|
|
565
|
-
return e === !1 || e == null ? "" : typeof e == "function" ? e(t) ?? "" :
|
|
569
|
+
return e === !1 || e == null ? "" : typeof e == "function" ? e(t) ?? "" : Y(t.text, e) ?? "";
|
|
566
570
|
}
|
|
567
|
-
let X = g(() => ce(T.value.quote ?? "quote",
|
|
571
|
+
let X = g(() => ce(T.value.quote ?? "quote", K.value)), Z = g(() => ce(T.value.body ?? "description", K.value)), le = g(() => {
|
|
568
572
|
if (!T.value.glossary || !E.value) return [];
|
|
569
573
|
let e = [X.value, Z.value].filter(Boolean);
|
|
570
|
-
return
|
|
571
|
-
}),
|
|
574
|
+
return J(e.join("\n\n"), U.value);
|
|
575
|
+
}), Q = g(() => q(le.value)), { active: pe, onClick: me, close: he } = ye(le), ve = g(() => pe.value ? ue(pe.value.definition, { breaks: !0 }) : ""), xe = g(() => E.value ? T.value.heading ? T.value.heading(K.value) : de(String(oe(E.value)), { glossary: Q.value }) : ""), Se = g(() => X.value ? de(String(X.value), { glossary: Q.value }) : ""), Ce = g(() => Z.value ? ue(String(Z.value), {
|
|
572
576
|
breaks: !0,
|
|
573
|
-
glossary:
|
|
574
|
-
}) : ""),
|
|
575
|
-
function
|
|
576
|
-
let t =
|
|
577
|
+
glossary: Q.value
|
|
578
|
+
}) : ""), we = g(() => E.value ? T.value.about?.(E.value) ?? !1 : !1), Ee = g(() => !!we.value);
|
|
579
|
+
function De(e) {
|
|
580
|
+
let t = we.value;
|
|
577
581
|
return t && typeof t == "object" ? !!t[e] : !!T.value.aboutKeeps?.includes(e);
|
|
578
582
|
}
|
|
579
|
-
let
|
|
583
|
+
let Oe = [
|
|
580
584
|
[1e3, "M"],
|
|
581
585
|
[900, "CM"],
|
|
582
586
|
[500, "D"],
|
|
@@ -591,41 +595,41 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
591
595
|
[4, "IV"],
|
|
592
596
|
[1, "I"]
|
|
593
597
|
];
|
|
594
|
-
function
|
|
598
|
+
function ke(e) {
|
|
595
599
|
let t = e, n = "";
|
|
596
|
-
for (let [e, r] of
|
|
600
|
+
for (let [e, r] of Oe) for (; t >= e;) n += r, t -= e;
|
|
597
601
|
return n;
|
|
598
602
|
}
|
|
599
|
-
let
|
|
603
|
+
let Ae = g(() => {
|
|
600
604
|
let e = T.value.numbering;
|
|
601
605
|
if (!e || !E.value) return "";
|
|
602
|
-
let t = (
|
|
603
|
-
return e === "roman" ?
|
|
606
|
+
let t = (P.value.length ? P.value : [E.value]).findIndex((e) => e.id === n.id), r = t >= 0 ? t + 1 : 1;
|
|
607
|
+
return e === "roman" ? ke(r) : String(r);
|
|
604
608
|
});
|
|
605
|
-
function
|
|
609
|
+
function je(e) {
|
|
606
610
|
return e ? Array.isArray(e.items) ? e.items.map((e) => e && typeof e == "object" ? e.id : e).filter((e) => e != null) : Array.isArray(e.item_ids) ? e.item_ids.filter((e) => e != null) : Array.isArray(e.pictures) ? e.pictures.map((e) => e?.picture_item_id).filter((e) => e != null) : [] : [];
|
|
607
611
|
}
|
|
608
|
-
let
|
|
609
|
-
let e = T.value.items?.of ??
|
|
610
|
-
return E.value ? e(E.value,
|
|
611
|
-
}),
|
|
612
|
-
V(
|
|
612
|
+
let Me = W(u), Ne = g(() => {
|
|
613
|
+
let e = T.value.items?.of ?? je;
|
|
614
|
+
return E.value ? e(E.value, K.value) : [];
|
|
615
|
+
}), $ = g(() => Ne.value.map((e) => Me.value.get(e)).filter(Boolean)), Pe = j(null);
|
|
616
|
+
V($, (e) => {
|
|
613
617
|
e.some((e) => e.id === Pe.value) || (Pe.value = e[0]?.id ?? null);
|
|
614
618
|
}, { immediate: !0 });
|
|
615
|
-
let Fe = g(() =>
|
|
619
|
+
let Fe = g(() => $.value.find((e) => e.id === Pe.value) ?? $.value[0] ?? null);
|
|
616
620
|
function Ie(e) {
|
|
617
621
|
Pe.value = e;
|
|
618
622
|
}
|
|
619
623
|
function Le(e) {
|
|
620
624
|
let t = T.value.items?.route;
|
|
621
|
-
return !t || !e ? null : typeof t == "function" ? t(e,
|
|
625
|
+
return !t || !e ? null : typeof t == "function" ? t(e, K.value) : {
|
|
622
626
|
name: t,
|
|
623
627
|
params: { id: e.id }
|
|
624
628
|
};
|
|
625
629
|
}
|
|
626
630
|
function Re(e) {
|
|
627
631
|
let t = T.value.route;
|
|
628
|
-
return !t || !e ? null : typeof t == "function" ? t(e,
|
|
632
|
+
return !t || !e ? null : typeof t == "function" ? t(e, K.value) : {
|
|
629
633
|
name: t,
|
|
630
634
|
params: { id: e.id }
|
|
631
635
|
};
|
|
@@ -634,15 +638,15 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
634
638
|
if (!e) return null;
|
|
635
639
|
let t = i.tr(u, e.id, U.value, "en").name ?? e.internal_name ?? e.id;
|
|
636
640
|
return {
|
|
637
|
-
name:
|
|
641
|
+
name: de(String(t)),
|
|
638
642
|
image: e.images?.[0]?.url ?? "",
|
|
639
|
-
imageAlt:
|
|
643
|
+
imageAlt: fe(String(t))
|
|
640
644
|
};
|
|
641
645
|
}
|
|
642
646
|
let Be = g(() => {
|
|
643
647
|
let e = Fe.value;
|
|
644
648
|
if (!e) return null;
|
|
645
|
-
let t = ze(e), n = T.value.items?.caption?.(e, E.value,
|
|
649
|
+
let t = ze(e), n = T.value.items?.caption?.(e, E.value, K.value);
|
|
646
650
|
return {
|
|
647
651
|
...t,
|
|
648
652
|
...n
|
|
@@ -659,12 +663,12 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
659
663
|
justification: "",
|
|
660
664
|
fields: null
|
|
661
665
|
}
|
|
662
|
-
}] : [], r = T.value.panel?.variants?.(e,
|
|
666
|
+
}] : [], r = T.value.panel?.variants?.(e, K.value) ?? [];
|
|
663
667
|
return [...n, ...r.map((e, t) => ({
|
|
664
668
|
id: e.id ?? `variant-${t}`,
|
|
665
669
|
...e
|
|
666
670
|
}))];
|
|
667
|
-
}), Ue =
|
|
671
|
+
}), Ue = j(null);
|
|
668
672
|
V(He, (e) => {
|
|
669
673
|
e.some((e) => e.id === Ue.value) || (Ue.value = e[0]?.id ?? null);
|
|
670
674
|
}, { immediate: !0 });
|
|
@@ -680,7 +684,7 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
680
684
|
}] : [];
|
|
681
685
|
}), qe = g(() => {
|
|
682
686
|
let e = Fe.value;
|
|
683
|
-
return !e || !T.value.panel?.fields ? [] : T.value.panel.fields(e, E.value,
|
|
687
|
+
return !e || !T.value.panel?.fields ? [] : T.value.panel.fields(e, E.value, K.value) ?? [];
|
|
684
688
|
}), Je = g(() => {
|
|
685
689
|
let e = We.value?.caption?.fields;
|
|
686
690
|
return e == null ? qe.value : e.map((e) => ({
|
|
@@ -689,9 +693,9 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
689
693
|
}));
|
|
690
694
|
}), Ye = g(() => {
|
|
691
695
|
let e = We.value?.caption?.justification;
|
|
692
|
-
return e ?
|
|
693
|
-
}), Xe = g(() =>
|
|
694
|
-
let t = ze(e), n = T.value.items?.meta?.(e,
|
|
696
|
+
return e ? de(String(e)) : "";
|
|
697
|
+
}), Xe = g(() => $.value.map((e) => {
|
|
698
|
+
let t = ze(e), n = T.value.items?.meta?.(e, K.value) ?? [], r = T.value.items?.badge?.(e, K.value) ?? "";
|
|
695
699
|
return {
|
|
696
700
|
id: e.id,
|
|
697
701
|
image: t.image,
|
|
@@ -703,81 +707,81 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
703
707
|
};
|
|
704
708
|
})), Ze = g(() => T.value.breadcrumb && E.value ? p.parents(n.id) : []), Qe = g(() => {
|
|
705
709
|
let e = T.value.tabs;
|
|
706
|
-
return e ? e === "children" ? E.value ? p.children(E.value.id) : [] :
|
|
707
|
-
}),
|
|
708
|
-
...
|
|
709
|
-
items:
|
|
710
|
+
return e ? e === "children" ? E.value ? p.children(E.value.id) : [] : P.value : [];
|
|
711
|
+
}), Dt = g(() => T.value.previous ?? "core.pagination.previous"), Ot = g(() => T.value.next ?? "core.pagination.next"), kt = g(() => T.value.backTo ?? "record.action.backToResults"), At = g(() => T.value.inThisTheme ?? "core.nav.inThisSection"), jt = g(() => T.value.seeAll ?? "catalogue.results.seeDatabaseEntry"), Mt = g(() => ({
|
|
712
|
+
...K.value,
|
|
713
|
+
items: $.value,
|
|
710
714
|
selected: Fe.value,
|
|
711
715
|
selectedVariant: We.value,
|
|
712
716
|
selectVariant: Ge,
|
|
713
717
|
breadcrumb: Ze.value,
|
|
714
718
|
previous: z.value,
|
|
715
719
|
next: B.value
|
|
716
|
-
})), Nt = g(() =>
|
|
717
|
-
return (n, i) => x.value && !E.value ? (k(), _(
|
|
720
|
+
})), Nt = g(() => Ee.value && !De("panel") ? !1 : Ve.value || $.value.length > 0 || !!o.aside), Pt = g(() => (!Ee.value || De("navigation")) && !!R.value && !!(z.value || B.value));
|
|
721
|
+
return (n, i) => x.value && !E.value ? (k(), _(I(ie), { key: 0 })) : E.value ? (k(), y("article", {
|
|
718
722
|
key: 1,
|
|
719
|
-
class: D(["mwnf-essay", { "mwnf-essay--about":
|
|
720
|
-
dir:
|
|
721
|
-
onClick: i[0] ||= (...e) =>
|
|
723
|
+
class: D(["mwnf-essay", { "mwnf-essay--about": Ee.value }]),
|
|
724
|
+
dir: I(re) || void 0,
|
|
725
|
+
onClick: i[0] ||= (...e) => I(me) && I(me)(...e)
|
|
722
726
|
}, [
|
|
723
|
-
|
|
724
|
-
Ze.value.length ? (k(), y("p",
|
|
727
|
+
N(n.$slots, "header", O(w(Mt.value)), () => [
|
|
728
|
+
Ze.value.length ? (k(), y("p", et, [b("span", tt, F(I(r)(kt.value)), 1), (k(!0), y(h, null, M(Ze.value, (e) => (k(), y(h, { key: e.id }, [Re(e) ? (k(), _(m, {
|
|
725
729
|
key: 0,
|
|
726
730
|
to: Re(e),
|
|
727
731
|
class: "mwnf-essay__breadcrumb-link"
|
|
728
732
|
}, {
|
|
729
|
-
default: H(() => [S(
|
|
733
|
+
default: H(() => [S(F(oe(e)), 1)]),
|
|
730
734
|
_: 2
|
|
731
|
-
}, 1032, ["to"])) : (k(), y("span",
|
|
735
|
+
}, 1032, ["to"])) : (k(), y("span", nt, F(oe(e)), 1))], 64))), 128))])) : v("", !0),
|
|
732
736
|
Qe.value.length > 1 ? (k(), y("div", {
|
|
733
737
|
key: 1,
|
|
734
738
|
class: "mwnf-essay__tabs",
|
|
735
739
|
role: "tablist",
|
|
736
|
-
"aria-label":
|
|
737
|
-
}, [(k(!0), y(h, null,
|
|
740
|
+
"aria-label": I(r)(At.value)
|
|
741
|
+
}, [(k(!0), y(h, null, M(Qe.value, (t) => (k(), _(m, {
|
|
738
742
|
key: t.id,
|
|
739
743
|
to: Re(t),
|
|
740
744
|
class: D(["mwnf-essay__tab", { "mwnf-essay__tab--active": t.id === e.id }])
|
|
741
745
|
}, {
|
|
742
|
-
default: H(() => [S(
|
|
746
|
+
default: H(() => [S(F(oe(t)), 1)]),
|
|
743
747
|
_: 2
|
|
744
|
-
}, 1032, ["to", "class"]))), 128))], 8,
|
|
745
|
-
b("h1",
|
|
748
|
+
}, 1032, ["to", "class"]))), 128))], 8, rt)) : v("", !0),
|
|
749
|
+
b("h1", it, [Ae.value ? (k(), y("span", at, F(Ae.value), 1)) : v("", !0), b("span", { innerHTML: xe.value }, null, 8, ot)])
|
|
746
750
|
]),
|
|
747
|
-
b("div",
|
|
748
|
-
|
|
749
|
-
|
|
751
|
+
b("div", st, [b("div", ct, [
|
|
752
|
+
ae.value ? v("", !0) : (k(), y("p", lt, F(I(r)("core.status.loading")), 1)),
|
|
753
|
+
Se.value ? (k(), y("p", {
|
|
750
754
|
key: 1,
|
|
751
755
|
class: "mwnf-essay__quote",
|
|
752
|
-
innerHTML:
|
|
753
|
-
}, null, 8,
|
|
754
|
-
|
|
755
|
-
|
|
756
|
+
innerHTML: Se.value
|
|
757
|
+
}, null, 8, ut)) : v("", !0),
|
|
758
|
+
N(n.$slots, "before-body", O(w(Mt.value))),
|
|
759
|
+
Ce.value ? (k(), y("div", {
|
|
756
760
|
key: 2,
|
|
757
761
|
class: "mwnf-essay__prose mwnf-sheet__block",
|
|
758
|
-
innerHTML:
|
|
759
|
-
}, null, 8,
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
Pt.value ? (k(), y("div",
|
|
762
|
+
innerHTML: Ce.value
|
|
763
|
+
}, null, 8, dt)) : v("", !0),
|
|
764
|
+
N(n.$slots, "after-body", O(w(Mt.value))),
|
|
765
|
+
Ee.value ? v("", !0) : N(n.$slots, "justifications", O(w(Mt.value)), void 0, void 0, 3),
|
|
766
|
+
Pt.value ? (k(), y("div", ft, [N(n.$slots, "navigation", O(w(Mt.value)), () => [z.value ? (k(), _(m, {
|
|
763
767
|
key: 0,
|
|
764
768
|
to: Re(z.value),
|
|
765
769
|
class: "mwnf-essay__nav-link mwnf-essay__nav-link--previous"
|
|
766
770
|
}, {
|
|
767
|
-
default: H(() => [S("← " +
|
|
771
|
+
default: H(() => [S("← " + F(I(r)(Dt.value)), 1)]),
|
|
768
772
|
_: 1
|
|
769
|
-
}, 8, ["to"])) : (k(), y("span",
|
|
773
|
+
}, 8, ["to"])) : (k(), y("span", pt)), B.value ? (k(), _(m, {
|
|
770
774
|
key: 2,
|
|
771
775
|
to: Re(B.value),
|
|
772
776
|
class: "mwnf-essay__nav-link mwnf-essay__nav-link--next"
|
|
773
777
|
}, {
|
|
774
|
-
default: H(() => [S(
|
|
778
|
+
default: H(() => [S(F(I(r)(Ot.value)) + " →", 1)]),
|
|
775
779
|
_: 1
|
|
776
780
|
}, 8, ["to"])) : v("", !0)])])) : v("", !0)
|
|
777
|
-
]), Nt.value ? (k(), y("div",
|
|
778
|
-
|
|
781
|
+
]), Nt.value ? (k(), y("div", mt, [
|
|
782
|
+
N(n.$slots, "panel", O(w(Mt.value)), () => [Ve.value && Be.value ? (k(), y("div", ht, [
|
|
779
783
|
C(t, { images: Ke.value }, null, 8, ["images"]),
|
|
780
|
-
He.value.length > 1 ? (k(), y("ul",
|
|
784
|
+
He.value.length > 1 ? (k(), y("ul", gt, [(k(!0), y(h, null, M(He.value, (e) => (k(), y("li", { key: e.id }, [b("button", {
|
|
781
785
|
type: "button",
|
|
782
786
|
class: D(["mwnf-essay__variant", { "mwnf-essay__variant--active": e.id === We.value?.id }]),
|
|
783
787
|
"aria-pressed": e.id === We.value?.id ? "true" : "false",
|
|
@@ -787,30 +791,30 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
787
791
|
src: e.image,
|
|
788
792
|
alt: e.alt ?? "",
|
|
789
793
|
loading: "lazy"
|
|
790
|
-
}, null, 8,
|
|
794
|
+
}, null, 8, vt)) : v("", !0)], 10, _t)]))), 128))])) : v("", !0),
|
|
791
795
|
b("h3", {
|
|
792
796
|
class: "mwnf-essay__panel-name",
|
|
793
797
|
innerHTML: We.value?.caption?.title || Be.value.name
|
|
794
|
-
}, null, 8,
|
|
795
|
-
(k(!0), y(h, null,
|
|
798
|
+
}, null, 8, yt),
|
|
799
|
+
(k(!0), y(h, null, M(Je.value, (e, t) => (k(), y("p", {
|
|
796
800
|
key: t,
|
|
797
801
|
class: "mwnf-essay__panel-field"
|
|
798
|
-
}, [e.label ? (k(), y("span",
|
|
802
|
+
}, [e.label ? (k(), y("span", bt, F(e.label), 1)) : v("", !0), b("span", { innerHTML: e.value }, null, 8, xt)]))), 128)),
|
|
799
803
|
Ye.value ? (k(), y("p", {
|
|
800
804
|
key: 1,
|
|
801
805
|
class: "mwnf-essay__panel-justification mwnf-sheet__block",
|
|
802
806
|
innerHTML: Ye.value
|
|
803
|
-
}, null, 8,
|
|
807
|
+
}, null, 8, St)) : v("", !0),
|
|
804
808
|
Le(Fe.value) ? (k(), _(m, {
|
|
805
809
|
key: 2,
|
|
806
810
|
to: Le(Fe.value),
|
|
807
811
|
class: "mwnf-essay__panel-link"
|
|
808
812
|
}, {
|
|
809
|
-
default: H(() => [S(
|
|
813
|
+
default: H(() => [S(F(I(r)(jt.value)) + " →", 1)]),
|
|
810
814
|
_: 1
|
|
811
815
|
}, 8, ["to"])) : v("", !0)
|
|
812
816
|
])) : v("", !0)]),
|
|
813
|
-
|
|
817
|
+
N(n.$slots, "thumbnails", O(w(Mt.value)), () => [Ve.value && $.value.length > 1 ? (k(), y("ul", Ct, [(k(!0), y(h, null, M($.value, (e) => (k(), y("li", { key: e.id }, [b("button", {
|
|
814
818
|
type: "button",
|
|
815
819
|
class: D(["mwnf-essay__thumb", { "mwnf-essay__thumb--active": e.id === Fe.value?.id }]),
|
|
816
820
|
onClick: (t) => Ie(e.id)
|
|
@@ -819,66 +823,66 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
819
823
|
src: e.images[0].url,
|
|
820
824
|
alt: "",
|
|
821
825
|
loading: "lazy"
|
|
822
|
-
}, null, 8,
|
|
826
|
+
}, null, 8, Tt)) : v("", !0)], 10, wt)]))), 128))])) : !Ve.value && Xe.value.length ? (k(), _(a, {
|
|
823
827
|
key: 1,
|
|
824
828
|
records: Xe.value
|
|
825
829
|
}, null, 8, ["records"])) : v("", !0)]),
|
|
826
|
-
|
|
830
|
+
N(n.$slots, "aside", O(w(Mt.value)))
|
|
827
831
|
])) : v("", !0)]),
|
|
828
|
-
|
|
832
|
+
N(n.$slots, "after", O(w(Mt.value)), () => [C(ee)]),
|
|
829
833
|
C(s, {
|
|
830
|
-
term:
|
|
831
|
-
html:
|
|
832
|
-
dir:
|
|
833
|
-
onClose:
|
|
834
|
+
term: I(pe),
|
|
835
|
+
html: ve.value,
|
|
836
|
+
dir: I(re),
|
|
837
|
+
onClose: I(he)
|
|
834
838
|
}, null, 8, [
|
|
835
839
|
"term",
|
|
836
840
|
"html",
|
|
837
841
|
"dir",
|
|
838
842
|
"onClose"
|
|
839
843
|
])
|
|
840
|
-
], 10,
|
|
844
|
+
], 10, $e)) : (k(), y("p", Et, F(I(r)("core.status.loading")), 1));
|
|
841
845
|
}
|
|
842
|
-
},
|
|
846
|
+
}, Ot = { class: "mwnf-link-list" }, kt = {
|
|
843
847
|
key: 0,
|
|
844
848
|
class: "mwnf-link-list__back"
|
|
845
|
-
},
|
|
849
|
+
}, At = {
|
|
846
850
|
key: 1,
|
|
847
851
|
class: "mwnf-link-list__title"
|
|
848
|
-
},
|
|
852
|
+
}, jt = {
|
|
849
853
|
key: 2,
|
|
850
854
|
class: "mwnf-link-list__groups"
|
|
851
|
-
},
|
|
855
|
+
}, Mt = {
|
|
852
856
|
key: 0,
|
|
853
857
|
class: "mwnf-link-list__heading"
|
|
854
|
-
},
|
|
858
|
+
}, Nt = {
|
|
855
859
|
key: 1,
|
|
856
860
|
class: "mwnf-link-list__links"
|
|
857
|
-
},
|
|
861
|
+
}, Pt = ["innerHTML"], Ft = ["innerHTML"], It = {
|
|
858
862
|
key: 3,
|
|
859
863
|
class: "mwnf-link-list__empty"
|
|
860
|
-
},
|
|
864
|
+
}, Lt = {
|
|
861
865
|
__name: "LinkListView",
|
|
862
866
|
props: { spec: {
|
|
863
867
|
type: Object,
|
|
864
868
|
required: !0
|
|
865
869
|
} },
|
|
866
870
|
setup(e) {
|
|
867
|
-
let t = e, { t: n } =
|
|
868
|
-
return (e, s) => (k(), y("div",
|
|
869
|
-
t.spec.back && a.value ? (k(), y("div",
|
|
871
|
+
let t = e, { t: n } = be(), r = g(() => ((typeof t.spec.groups == "function" ? t.spec.groups({}) : t.spec.groups ?? []) ?? []).filter((e) => e.links?.length > 0)), i = g(() => t.spec.title ? n(t.spec.title) : ""), a = g(() => t.spec.back?.label ? n(t.spec.back.label) : ""), o = g(() => n(t.spec.empty ?? "catalogue.results.noResults"));
|
|
872
|
+
return (e, s) => (k(), y("div", Ot, [
|
|
873
|
+
t.spec.back && a.value ? (k(), y("div", kt, [C(m, {
|
|
870
874
|
to: t.spec.back.to,
|
|
871
875
|
href: t.spec.back.href
|
|
872
876
|
}, {
|
|
873
|
-
default: H(() => [S(" ← " +
|
|
877
|
+
default: H(() => [S(" ← " + F(a.value), 1)]),
|
|
874
878
|
_: 1
|
|
875
879
|
}, 8, ["to", "href"])])) : v("", !0),
|
|
876
|
-
i.value ? (k(), y("h1",
|
|
877
|
-
|
|
878
|
-
r.value.length ? (k(), y("div",
|
|
880
|
+
i.value ? (k(), y("h1", At, F(i.value), 1)) : v("", !0),
|
|
881
|
+
N(e.$slots, "before"),
|
|
882
|
+
r.value.length ? (k(), y("div", jt, [(k(!0), y(h, null, M(r.value, (t, r) => (k(), y("section", {
|
|
879
883
|
key: r,
|
|
880
884
|
class: "mwnf-link-list__group"
|
|
881
|
-
}, [
|
|
885
|
+
}, [N(e.$slots, "group", { group: t }, () => [t.heading ? (k(), y("h2", Mt, F(I(n)(t.heading)), 1)) : v("", !0), t.links?.length ? (k(), y("ul", Nt, [(k(!0), y(h, null, M(t.links, (e, t) => (k(), y("li", {
|
|
882
886
|
key: t,
|
|
883
887
|
class: "mwnf-link-list__item"
|
|
884
888
|
}, [C(m, {
|
|
@@ -886,56 +890,56 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
886
890
|
to: e.to,
|
|
887
891
|
href: e.href
|
|
888
892
|
}, {
|
|
889
|
-
default: H(() => [b("span", { innerHTML:
|
|
893
|
+
default: H(() => [b("span", { innerHTML: I(Z)(e.label) }, null, 8, Pt)]),
|
|
890
894
|
_: 2
|
|
891
895
|
}, 1032, ["to", "href"]), e.note ? (k(), y("div", {
|
|
892
896
|
key: 0,
|
|
893
897
|
class: "mwnf-link-list__note",
|
|
894
|
-
innerHTML:
|
|
895
|
-
}, null, 8,
|
|
896
|
-
|
|
898
|
+
innerHTML: I(Z)(e.note)
|
|
899
|
+
}, null, 8, Ft)) : v("", !0)]))), 128))])) : v("", !0)])]))), 128))])) : (k(), y("div", It, F(o.value), 1)),
|
|
900
|
+
N(e.$slots, "after")
|
|
897
901
|
]));
|
|
898
902
|
}
|
|
899
|
-
},
|
|
903
|
+
}, Rt = { class: "mwnf-partner-list" }, zt = {
|
|
900
904
|
key: 0,
|
|
901
905
|
class: "mwnf-partner-list__title"
|
|
902
|
-
},
|
|
906
|
+
}, Bt = {
|
|
903
907
|
key: 1,
|
|
904
908
|
class: "mwnf-partner-list__count"
|
|
905
|
-
},
|
|
909
|
+
}, Vt = {
|
|
906
910
|
key: 2,
|
|
907
911
|
class: "mwnf-partner-list__toggle"
|
|
908
|
-
},
|
|
912
|
+
}, Ht = {
|
|
909
913
|
key: 3,
|
|
910
914
|
class: "mwnf-partner-list__groups"
|
|
911
|
-
},
|
|
915
|
+
}, Ut = {
|
|
912
916
|
key: 0,
|
|
913
917
|
class: "mwnf-partner-list__group-title"
|
|
914
|
-
},
|
|
918
|
+
}, Wt = { class: "mwnf-partner-list__tier" }, Gt = { class: "mwnf-partner-list__row" }, Kt = {
|
|
915
919
|
key: 0,
|
|
916
920
|
class: "mwnf-partner-list__children"
|
|
917
|
-
},
|
|
921
|
+
}, qt = {
|
|
918
922
|
key: 0,
|
|
919
923
|
class: "mwnf-partner-list__tier mwnf-partner-list__tier--associated"
|
|
920
|
-
},
|
|
924
|
+
}, Jt = { class: "mwnf-partner-list__tier-label" }, Yt = {
|
|
921
925
|
key: 4,
|
|
922
926
|
class: "mwnf-partner-list__empty"
|
|
923
|
-
},
|
|
927
|
+
}, Xt = {
|
|
924
928
|
__name: "PartnerListView",
|
|
925
929
|
props: { spec: {
|
|
926
930
|
type: Object,
|
|
927
931
|
required: !0
|
|
928
932
|
} },
|
|
929
933
|
setup(e) {
|
|
930
|
-
let t = e, { t: n, locale: r } =
|
|
934
|
+
let t = e, { t: n, locale: r } = be(), i = _e(), a = g(() => t.spec), o = g(() => a.value.entity ?? "partners"), s = se(o.value);
|
|
931
935
|
o.value && i.loadTranslations(o.value, "en");
|
|
932
936
|
let c = {
|
|
933
937
|
t: n,
|
|
934
938
|
locale: r,
|
|
935
939
|
tr: (e) => i.tr(o.value, e, r.value, "en"),
|
|
936
|
-
renderInline:
|
|
937
|
-
renderPlain:
|
|
938
|
-
}, { filters: l, apply: d } =
|
|
940
|
+
renderInline: de,
|
|
941
|
+
renderPlain: fe
|
|
942
|
+
}, { filters: l, apply: d } = xe({
|
|
939
943
|
keys: ["order"],
|
|
940
944
|
page: !1
|
|
941
945
|
}), f = g(() => l.order === "desc" ? "desc" : "asc");
|
|
@@ -955,7 +959,7 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
955
959
|
}
|
|
956
960
|
function x(e) {
|
|
957
961
|
let t = a.value.objectsRoute;
|
|
958
|
-
return
|
|
962
|
+
return Q(e, c.tr(e.id), {
|
|
959
963
|
route: m,
|
|
960
964
|
objectsRoute: t ? (e) => t(e, c) : null
|
|
961
965
|
});
|
|
@@ -963,7 +967,7 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
963
967
|
function S(e, t) {
|
|
964
968
|
let n = t.name ?? "";
|
|
965
969
|
return {
|
|
966
|
-
...
|
|
970
|
+
...Q(e, {}, {}),
|
|
967
971
|
name: n,
|
|
968
972
|
plainName: D(n),
|
|
969
973
|
city: t.city ?? "",
|
|
@@ -1002,21 +1006,21 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1002
1006
|
function D(e) {
|
|
1003
1007
|
return String(e ?? "").replace(/<[^>]*>/g, "");
|
|
1004
1008
|
}
|
|
1005
|
-
let
|
|
1009
|
+
let A = g(() => a.value.nested ? le(p.value) : null), j = g(() => {
|
|
1006
1010
|
let e = a.value, t = e.group?.tier ?? !1, n = (e.group?.order ?? "country") === "name", r = n ? p.value.map((e) => ({
|
|
1007
1011
|
...e,
|
|
1008
1012
|
country_id: "\0"
|
|
1009
|
-
})) : p.value, i =
|
|
1013
|
+
})) : p.value, i = Y(r, {
|
|
1010
1014
|
label: n ? () => "" : (t) => e.label ? e.label(t, c) : t,
|
|
1011
1015
|
tier: t,
|
|
1012
1016
|
order: f.value
|
|
1013
1017
|
}), o = (e, t) => D(e.row.name).localeCompare(D(t.row.name));
|
|
1014
1018
|
return i.map((t) => {
|
|
1015
1019
|
let r = t.main.map(T).sort(o), i = t.associated.map(T).sort(o);
|
|
1016
|
-
if (n && f.value === "desc" && (r.reverse(), i.reverse()), e.nested &&
|
|
1020
|
+
if (n && f.value === "desc" && (r.reverse(), i.reverse()), e.nested && A.value) {
|
|
1017
1021
|
let e = new Set(i.map((e) => e.partner.id));
|
|
1018
1022
|
r = r.map((t) => {
|
|
1019
|
-
let n =
|
|
1023
|
+
let n = A.value.children(t.partner.id).filter((t) => e.has(t.id));
|
|
1020
1024
|
for (let t of n) e.delete(t.id);
|
|
1021
1025
|
return {
|
|
1022
1026
|
...t,
|
|
@@ -1031,39 +1035,39 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1031
1035
|
associated: i
|
|
1032
1036
|
};
|
|
1033
1037
|
});
|
|
1034
|
-
}),
|
|
1038
|
+
}), I = g(() => j.value.some((e) => e.main.length > 0 || e.associated.length > 0)), ne = g(() => n(a.value.associatedLabel ?? "partner.list.associated")), L = g(() => ({
|
|
1035
1039
|
objectsLabel: a.value.objectsLabel ?? "partner.item.objectsInSite",
|
|
1036
1040
|
emptyLabel: a.value.emptyLabel ?? "",
|
|
1037
1041
|
show: { actions: !!a.value.actions }
|
|
1038
|
-
})), R = g(() => n(a.value.foundLabel ?? "partner.list.partnersFound")), z = g(() => n(a.value.sortAscendingLabel ?? "partner.list.sortAscending")), B = g(() => n(a.value.sortDescendingLabel ?? "partner.list.sortDescending")), V = g(() => n(a.value.empty ?? "catalogue.results.noResults")), U = g(() => a.value.title ? n(a.value.title) : ""), re = g(() =>
|
|
1042
|
+
})), R = g(() => n(a.value.foundLabel ?? "partner.list.partnersFound")), z = g(() => n(a.value.sortAscendingLabel ?? "partner.list.sortAscending")), B = g(() => n(a.value.sortDescendingLabel ?? "partner.list.sortDescending")), V = g(() => n(a.value.empty ?? "catalogue.results.noResults")), U = g(() => a.value.title ? n(a.value.title) : ""), re = g(() => j.value.reduce((e, t) => e + t.main.length + t.associated.length, 0)), ie = g(() => a.value.variant ?? "accordion"), W = g(() => ({
|
|
1039
1043
|
t: n,
|
|
1040
1044
|
locale: r,
|
|
1041
|
-
groups:
|
|
1045
|
+
groups: j.value,
|
|
1042
1046
|
orderDir: f.value,
|
|
1043
1047
|
toggleOrder: ee
|
|
1044
1048
|
}));
|
|
1045
|
-
return (e, t) => (k(), y("section",
|
|
1046
|
-
U.value ? (k(), y("h1",
|
|
1047
|
-
a.value.count ? (k(), y("div",
|
|
1048
|
-
|
|
1049
|
-
a.value.orderToggle ? (k(), y("div",
|
|
1049
|
+
return (e, t) => (k(), y("section", Rt, [
|
|
1050
|
+
U.value ? (k(), y("h1", zt, F(U.value), 1)) : v("", !0),
|
|
1051
|
+
a.value.count ? (k(), y("div", Bt, F(R.value) + ": " + F(re.value), 1)) : v("", !0),
|
|
1052
|
+
N(e.$slots, "before", O(w(W.value))),
|
|
1053
|
+
a.value.orderToggle ? (k(), y("div", Vt, [b("button", {
|
|
1050
1054
|
type: "button",
|
|
1051
1055
|
class: "mwnf-partner-list__toggle-button",
|
|
1052
1056
|
onClick: ee
|
|
1053
|
-
},
|
|
1054
|
-
|
|
1057
|
+
}, F(f.value === "asc" ? B.value : z.value), 1)])) : v("", !0),
|
|
1058
|
+
I.value ? (k(), y("div", Ht, [(k(!0), y(h, null, M(j.value, (t) => (k(), _(P(ie.value === "accordion" ? "details" : "section"), E({
|
|
1055
1059
|
key: t.country ?? "",
|
|
1056
1060
|
class: "mwnf-partner-list__group"
|
|
1057
1061
|
}, { ref_for: !0 }, ie.value === "accordion" ? { open: !0 } : {}), {
|
|
1058
1062
|
default: H(() => [
|
|
1059
|
-
(k(), _(
|
|
1060
|
-
default: H(() => [
|
|
1063
|
+
(k(), _(P(ie.value === "accordion" ? "summary" : "div"), { class: "mwnf-partner-list__group-heading" }, {
|
|
1064
|
+
default: H(() => [N(e.$slots, "group-heading", E({ group: t }, { ref_for: !0 }, W.value), () => [t.label ? (k(), y("h2", Ut, F(t.label), 1)) : v("", !0)])]),
|
|
1061
1065
|
_: 2
|
|
1062
1066
|
}, 1024)),
|
|
1063
|
-
b("div",
|
|
1067
|
+
b("div", Wt, [(k(!0), y(h, null, M(t.main, (n) => (k(), y("div", {
|
|
1064
1068
|
key: n.partner.id,
|
|
1065
1069
|
class: "mwnf-partner-list__row-block"
|
|
1066
|
-
}, [b("div",
|
|
1070
|
+
}, [b("div", Gt, [N(e.$slots, "row", E({
|
|
1067
1071
|
group: t,
|
|
1068
1072
|
partner: n.partner,
|
|
1069
1073
|
row: n.row,
|
|
@@ -1071,10 +1075,10 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1071
1075
|
}, { ref_for: !0 }, W.value), () => [C(u, E({
|
|
1072
1076
|
variant: "line",
|
|
1073
1077
|
partner: n.view
|
|
1074
|
-
}, { ref_for: !0 }, L.value), null, 16, ["partner"])])]), n.children?.length ? (k(), y("div",
|
|
1078
|
+
}, { ref_for: !0 }, L.value), null, 16, ["partner"])])]), n.children?.length ? (k(), y("div", Kt, [(k(!0), y(h, null, M(n.children, (n) => (k(), y("div", {
|
|
1075
1079
|
key: n.partner.id,
|
|
1076
1080
|
class: "mwnf-partner-list__row mwnf-partner-list__row--child"
|
|
1077
|
-
}, [
|
|
1081
|
+
}, [N(e.$slots, "row", E({
|
|
1078
1082
|
group: t,
|
|
1079
1083
|
partner: n.partner,
|
|
1080
1084
|
row: n.row,
|
|
@@ -1083,10 +1087,10 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1083
1087
|
variant: "line",
|
|
1084
1088
|
partner: n.view
|
|
1085
1089
|
}, { ref_for: !0 }, L.value), null, 16, ["partner"])])]))), 128))])) : v("", !0)]))), 128))]),
|
|
1086
|
-
t.associated.length ? (k(), y("div",
|
|
1090
|
+
t.associated.length ? (k(), y("div", qt, [b("p", Jt, F(ne.value), 1), (k(!0), y(h, null, M(t.associated, (n) => (k(), y("div", {
|
|
1087
1091
|
key: n.partner.id,
|
|
1088
1092
|
class: "mwnf-partner-list__row"
|
|
1089
|
-
}, [
|
|
1093
|
+
}, [N(e.$slots, "row", E({
|
|
1090
1094
|
group: t,
|
|
1091
1095
|
partner: n.partner,
|
|
1092
1096
|
row: n.row,
|
|
@@ -1097,70 +1101,70 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1097
1101
|
}, { ref_for: !0 }, L.value), null, 16, ["partner"])])]))), 128))])) : v("", !0)
|
|
1098
1102
|
]),
|
|
1099
1103
|
_: 2
|
|
1100
|
-
}, 1040))), 128))])) : (k(), y("p",
|
|
1101
|
-
|
|
1104
|
+
}, 1040))), 128))])) : (k(), y("p", Yt, F(V.value), 1)),
|
|
1105
|
+
N(e.$slots, "after", O(w(W.value)))
|
|
1102
1106
|
]));
|
|
1103
1107
|
}
|
|
1104
|
-
},
|
|
1108
|
+
}, Zt = { class: "mwnf-text-page" }, Qt = {
|
|
1105
1109
|
key: 0,
|
|
1106
1110
|
class: "mwnf-text-page__back"
|
|
1107
|
-
},
|
|
1111
|
+
}, $t = {
|
|
1108
1112
|
key: 1,
|
|
1109
1113
|
class: "mwnf-text-page__heading"
|
|
1110
|
-
},
|
|
1114
|
+
}, en = { class: "mwnf-prose" }, tn = ["innerHTML"], nn = {
|
|
1111
1115
|
__name: "TextPageView",
|
|
1112
1116
|
props: { spec: {
|
|
1113
1117
|
type: Object,
|
|
1114
1118
|
required: !0
|
|
1115
1119
|
} },
|
|
1116
1120
|
setup(e) {
|
|
1117
|
-
let t = e, { t: n } =
|
|
1121
|
+
let t = e, { t: n } = be(), r = _e(), i = Se(), a = g(() => t.spec.heading ? n(t.spec.heading) : ""), o = g(() => typeof t.spec.body == "string"), s = g(() => o.value ? t.spec.body : null), c = g(() => ({
|
|
1118
1122
|
t: n,
|
|
1119
1123
|
tr: (e, t) => r.tr(e, t, i.value, "en"),
|
|
1120
1124
|
language: i.value
|
|
1121
1125
|
})), l = g(() => o.value ? null : typeof t.spec.body == "function" ? X(t.spec.body(c.value)) : null), u = g(() => t.spec.back === !1 ? null : t.spec.back === !0 ? n("core.action.back") : t.spec.back?.label ? n(t.spec.back.label) : null);
|
|
1122
|
-
return (e, n) => (k(), y("div",
|
|
1123
|
-
u.value && (t.spec.back === !0 || t.spec.back?.to || t.spec.back?.href) ? (k(), y("div",
|
|
1126
|
+
return (e, n) => (k(), y("div", Zt, [
|
|
1127
|
+
u.value && (t.spec.back === !0 || t.spec.back?.to || t.spec.back?.href) ? (k(), y("div", Qt, [C(m, {
|
|
1124
1128
|
to: t.spec.back === !0 ? {} : t.spec.back?.to,
|
|
1125
1129
|
href: t.spec.back === !0 ? "#" : t.spec.back?.href
|
|
1126
1130
|
}, {
|
|
1127
|
-
default: H(() => [S(" ← " +
|
|
1131
|
+
default: H(() => [S(" ← " + F(u.value), 1)]),
|
|
1128
1132
|
_: 1
|
|
1129
1133
|
}, 8, ["to", "href"])])) : v("", !0),
|
|
1130
|
-
a.value ? (k(), y("h1",
|
|
1131
|
-
b("div",
|
|
1134
|
+
a.value ? (k(), y("h1", $t, F(a.value), 1)) : v("", !0),
|
|
1135
|
+
b("div", en, [o.value ? (k(), _(I(re), {
|
|
1132
1136
|
key: 0,
|
|
1133
1137
|
keypath: s.value
|
|
1134
1138
|
}, null, 8, ["keypath"])) : l.value ? (k(), y("div", {
|
|
1135
1139
|
key: 1,
|
|
1136
1140
|
innerHTML: l.value
|
|
1137
|
-
}, null, 8,
|
|
1141
|
+
}, null, 8, tn)) : v("", !0)])
|
|
1138
1142
|
]));
|
|
1139
1143
|
}
|
|
1140
|
-
},
|
|
1144
|
+
}, rn = { class: "mwnf-search-form__row-label" }, an = ["onUpdate:modelValue"], on = ["value"], sn = ["onUpdate:modelValue"], cn = ["value"], ln = ["onUpdate:modelValue", "placeholder"], un = {
|
|
1141
1145
|
key: 0,
|
|
1142
1146
|
class: "mwnf-search-form__dates"
|
|
1143
|
-
},
|
|
1147
|
+
}, dn = {
|
|
1144
1148
|
key: 1,
|
|
1145
1149
|
class: "mwnf-facet"
|
|
1146
|
-
},
|
|
1150
|
+
}, fn = { class: "mwnf-facet__label" }, pn = { value: "" }, mn = ["value"], hn = {
|
|
1147
1151
|
key: 0,
|
|
1148
1152
|
class: "mwnf-search-form__dates"
|
|
1149
|
-
},
|
|
1153
|
+
}, gn = { class: "mwnf-search-form__radio-choice" }, _n = ["value"], vn = ["onUpdate:modelValue", "disabled"], yn = ["onUpdate:modelValue"], bn = { class: "mwnf-facet__label" }, xn = {
|
|
1150
1154
|
key: 0,
|
|
1151
1155
|
class: "mwnf-search-form__how-to"
|
|
1152
|
-
},
|
|
1156
|
+
}, Sn = {
|
|
1153
1157
|
__name: "SearchFormView",
|
|
1154
1158
|
props: { spec: {
|
|
1155
1159
|
type: Object,
|
|
1156
1160
|
required: !0
|
|
1157
1161
|
} },
|
|
1158
1162
|
setup(e) {
|
|
1159
|
-
let t = e, { t: n } =
|
|
1163
|
+
let t = e, { t: n } = be(), r = Me(), i = g(() => t.spec), a = g(() => i.value.mode), o = g(() => i.value.entity ? se(i.value.entity).value ?? [] : []), s = g(() => i.value.dates === "buckets"), c = g(() => {
|
|
1160
1164
|
let e = i.value.dates;
|
|
1161
1165
|
if (!e || e === "buckets") return null;
|
|
1162
1166
|
let t = e.presets;
|
|
1163
|
-
return typeof t == "function" ? t() : t ??
|
|
1167
|
+
return typeof t == "function" ? t() : t ?? G();
|
|
1164
1168
|
});
|
|
1165
1169
|
function u(e) {
|
|
1166
1170
|
return (e ?? []).map((e) => ({
|
|
@@ -1168,43 +1172,43 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1168
1172
|
label: String(e)
|
|
1169
1173
|
}));
|
|
1170
1174
|
}
|
|
1171
|
-
let d = g(() => s.value ?
|
|
1175
|
+
let d = g(() => s.value ? Ae(o.value, n) : []), ee = g(() => s.value ? d.value : u(c.value?.from)), p = g(() => s.value ? d.value : u(c.value?.to)), te = g(() => !!i.value.dates), x = j(""), E = j(""), P = i.value.language ? Oe(i.value.language) : null, ne = g(() => P?.languages.value ?? []), V = P?.language ?? j(""), re = g(() => Object.fromEntries((i.value.facets ?? []).filter((e) => !e.options && e.type !== "year").map((e) => [e.key, { field: e.field ?? e.key }]))), ie = ve(o, re), W = g(() => {
|
|
1172
1176
|
let e = {};
|
|
1173
1177
|
for (let t of i.value.facets ?? []) e[t.key] = t.options ?? ie.value[t.key] ?? [];
|
|
1174
1178
|
return e;
|
|
1175
|
-
}),
|
|
1179
|
+
}), ae = [{
|
|
1176
1180
|
key: "AND",
|
|
1177
1181
|
label: "catalogue.search.and"
|
|
1178
1182
|
}, {
|
|
1179
1183
|
key: "OR",
|
|
1180
1184
|
label: "catalogue.search.or"
|
|
1181
|
-
}],
|
|
1185
|
+
}], oe = [
|
|
1182
1186
|
"catalogue.search.keywordOne",
|
|
1183
1187
|
"catalogue.search.keywordTwo",
|
|
1184
1188
|
"catalogue.search.keywordThree"
|
|
1185
|
-
],
|
|
1189
|
+
], K = g(() => i.value.operators ?? ae), q = j(Array.from({ length: i.value.rows ?? 3 }, () => ({
|
|
1186
1190
|
keyword: "",
|
|
1187
1191
|
field: i.value.fields?.[0]?.key ?? "",
|
|
1188
|
-
cond: (i.value.operators ??
|
|
1192
|
+
cond: (i.value.operators ?? ae)[0].key
|
|
1189
1193
|
})));
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1194
|
+
function J(e) {
|
|
1195
|
+
return oe[e] ? n(oe[e]) : "";
|
|
1192
1196
|
}
|
|
1193
|
-
let
|
|
1197
|
+
let Y = j(i.value.facets?.[0]?.key ?? ""), ce = A(Object.fromEntries((i.value.facets ?? []).map((e) => [e.key, ""]))), X = A(Object.fromEntries((i.value.extras ?? []).map((e) => [e.key, !1])));
|
|
1194
1198
|
function Z() {
|
|
1195
1199
|
let e = {};
|
|
1196
1200
|
for (let t of i.value.extras ?? []) X[t.key] && (e[t.key] = "1");
|
|
1197
1201
|
return e;
|
|
1198
1202
|
}
|
|
1199
|
-
function
|
|
1203
|
+
function le(e) {
|
|
1200
1204
|
return r.push({
|
|
1201
1205
|
name: i.value.target,
|
|
1202
1206
|
query: e
|
|
1203
1207
|
});
|
|
1204
1208
|
}
|
|
1205
|
-
function
|
|
1209
|
+
function Q() {
|
|
1206
1210
|
let e = {};
|
|
1207
|
-
if (a.value === "rows")
|
|
1211
|
+
if (a.value === "rows") q.value.forEach((t, n) => {
|
|
1208
1212
|
if (t.keyword) {
|
|
1209
1213
|
if (n === 0) e.q = t.keyword, t.field && (e.field = t.field);
|
|
1210
1214
|
else {
|
|
@@ -1214,69 +1218,69 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1214
1218
|
}
|
|
1215
1219
|
}), x.value && (e.from = String(x.value)), E.value && (e.to = String(E.value)), V.value && (e.lang = V.value);
|
|
1216
1220
|
else if (a.value === "radio") {
|
|
1217
|
-
let t =
|
|
1221
|
+
let t = Y.value, n = t ? ce[t] : "";
|
|
1218
1222
|
n && (e[t] = String(n));
|
|
1219
1223
|
}
|
|
1220
|
-
return Object.assign(e, Z()),
|
|
1224
|
+
return Object.assign(e, Z()), le(e);
|
|
1221
1225
|
}
|
|
1222
1226
|
function ue(e, t) {
|
|
1223
|
-
if (t !== "" && t != null) return
|
|
1227
|
+
if (t !== "" && t != null) return le({
|
|
1224
1228
|
[e]: String(t),
|
|
1225
1229
|
...Z()
|
|
1226
1230
|
});
|
|
1227
1231
|
}
|
|
1228
|
-
function
|
|
1229
|
-
return
|
|
1232
|
+
function de() {
|
|
1233
|
+
return le(Z());
|
|
1230
1234
|
}
|
|
1231
|
-
let
|
|
1235
|
+
let fe = g(() => a.value === "facets" ? "immediate" : "apply"), pe = g(() => a.value === "radio" ? "core.action.browse" : "core.action.search"), me = g(() => n(i.value.submitLabel ?? pe.value)), he = g(() => n(i.value.showAllLabel ?? "core.action.reset")), ge = g(() => ({
|
|
1232
1236
|
mode: a.value,
|
|
1233
|
-
submit:
|
|
1234
|
-
showAll:
|
|
1237
|
+
submit: Q,
|
|
1238
|
+
showAll: de
|
|
1235
1239
|
}));
|
|
1236
1240
|
return (e, t) => (k(), y("section", { class: D(["mwnf-search-form", `mwnf-search-form--${a.value}`]) }, [
|
|
1237
|
-
|
|
1238
|
-
|
|
1241
|
+
N(e.$slots, "intro", O(w(ge.value))),
|
|
1242
|
+
N(e.$slots, "before", O(w(ge.value))),
|
|
1239
1243
|
C(f, {
|
|
1240
1244
|
class: "mwnf-search-form__panel",
|
|
1241
|
-
mode:
|
|
1242
|
-
"apply-label":
|
|
1243
|
-
"reset-label":
|
|
1244
|
-
onApply:
|
|
1245
|
-
onReset:
|
|
1245
|
+
mode: fe.value,
|
|
1246
|
+
"apply-label": me.value,
|
|
1247
|
+
"reset-label": he.value,
|
|
1248
|
+
onApply: Q,
|
|
1249
|
+
onReset: de
|
|
1246
1250
|
}, {
|
|
1247
1251
|
default: H(() => [
|
|
1248
1252
|
a.value === "rows" ? (k(), y(h, { key: 0 }, [
|
|
1249
|
-
(k(!0), y(h, null,
|
|
1253
|
+
(k(!0), y(h, null, M(q.value, (e, t) => (k(), y("div", {
|
|
1250
1254
|
key: t,
|
|
1251
1255
|
class: "mwnf-search-form__row"
|
|
1252
1256
|
}, [
|
|
1253
|
-
b("span",
|
|
1257
|
+
b("span", rn, F(J(t)), 1),
|
|
1254
1258
|
t > 0 ? U((k(), y("select", {
|
|
1255
1259
|
key: 0,
|
|
1256
1260
|
"onUpdate:modelValue": (t) => e.cond = t,
|
|
1257
1261
|
class: "mwnf-facet__select mwnf-search-form__operator"
|
|
1258
|
-
}, [(k(!0), y(h, null,
|
|
1262
|
+
}, [(k(!0), y(h, null, M(K.value, (e) => (k(), y("option", {
|
|
1259
1263
|
key: e.key,
|
|
1260
1264
|
value: e.key
|
|
1261
|
-
},
|
|
1265
|
+
}, F(I(n)(e.label)), 9, on))), 128))], 8, an)), [[z, e.cond]]) : v("", !0),
|
|
1262
1266
|
U(b("select", {
|
|
1263
1267
|
"onUpdate:modelValue": (t) => e.field = t,
|
|
1264
1268
|
class: "mwnf-facet__select mwnf-search-form__field"
|
|
1265
|
-
}, [(k(!0), y(h, null,
|
|
1269
|
+
}, [(k(!0), y(h, null, M(i.value.fields ?? [], (e) => (k(), y("option", {
|
|
1266
1270
|
key: e.key,
|
|
1267
1271
|
value: e.key
|
|
1268
|
-
},
|
|
1272
|
+
}, F(I(n)(e.label)), 9, cn))), 128))], 8, sn), [[z, e.field]]),
|
|
1269
1273
|
U(b("input", {
|
|
1270
1274
|
"onUpdate:modelValue": (t) => e.keyword = t,
|
|
1271
1275
|
type: "text",
|
|
1272
1276
|
class: "mwnf-search-form__keyword",
|
|
1273
|
-
placeholder:
|
|
1274
|
-
}, null, 8,
|
|
1277
|
+
placeholder: I(n)("catalogue.search.keywordPlaceholder")
|
|
1278
|
+
}, null, 8, ln), [[B, e.keyword]])
|
|
1275
1279
|
]))), 128)),
|
|
1276
|
-
te.value ? (k(), y("div",
|
|
1280
|
+
te.value ? (k(), y("div", un, [C(l, {
|
|
1277
1281
|
modelValue: x.value,
|
|
1278
1282
|
"onUpdate:modelValue": t[0] ||= (e) => x.value = e,
|
|
1279
|
-
label:
|
|
1283
|
+
label: I(n)("catalogue.facet.dateFrom"),
|
|
1280
1284
|
options: ee.value,
|
|
1281
1285
|
"any-label": "—"
|
|
1282
1286
|
}, null, 8, [
|
|
@@ -1286,7 +1290,7 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1286
1290
|
]), C(l, {
|
|
1287
1291
|
modelValue: E.value,
|
|
1288
1292
|
"onUpdate:modelValue": t[1] ||= (e) => E.value = e,
|
|
1289
|
-
label:
|
|
1293
|
+
label: I(n)("catalogue.facet.dateTo"),
|
|
1290
1294
|
options: p.value,
|
|
1291
1295
|
"any-label": "—"
|
|
1292
1296
|
}, null, 8, [
|
|
@@ -1294,16 +1298,16 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1294
1298
|
"label",
|
|
1295
1299
|
"options"
|
|
1296
1300
|
])])) : v("", !0),
|
|
1297
|
-
i.value.language ? (k(), y("label",
|
|
1301
|
+
i.value.language ? (k(), y("label", dn, [b("span", fn, F(I(n)("catalogue.search.language")), 1), U(b("select", {
|
|
1298
1302
|
"onUpdate:modelValue": t[2] ||= (e) => T(V) ? V.value = e : null,
|
|
1299
1303
|
class: "mwnf-facet__select mwnf-search-form__language"
|
|
1300
|
-
}, [b("option",
|
|
1304
|
+
}, [b("option", pn, F(I(n)("catalogue.search.anyLanguage")), 1), (k(!0), y(h, null, M(ne.value, (e) => (k(), y("option", {
|
|
1301
1305
|
key: e,
|
|
1302
1306
|
value: e
|
|
1303
|
-
},
|
|
1304
|
-
], 64)) : a.value === "facets" ? (k(), y(h, { key: 1 }, [(k(!0), y(h, null,
|
|
1307
|
+
}, F(e.toUpperCase()), 9, mn))), 128))], 512), [[z, I(V)]])])) : v("", !0)
|
|
1308
|
+
], 64)) : a.value === "facets" ? (k(), y(h, { key: 1 }, [(k(!0), y(h, null, M(i.value.facets ?? [], (e) => (k(), _(l, {
|
|
1305
1309
|
key: e.key,
|
|
1306
|
-
label: e.label ?
|
|
1310
|
+
label: e.label ? I(n)(e.label) : "",
|
|
1307
1311
|
options: W.value[e.key] ?? [],
|
|
1308
1312
|
"model-value": ce[e.key],
|
|
1309
1313
|
"onUpdate:modelValue": (t) => ue(e.key, t)
|
|
@@ -1312,9 +1316,9 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1312
1316
|
"options",
|
|
1313
1317
|
"model-value",
|
|
1314
1318
|
"onUpdate:modelValue"
|
|
1315
|
-
]))), 128)), te.value ? (k(), y("div",
|
|
1319
|
+
]))), 128)), te.value ? (k(), y("div", hn, [C(l, {
|
|
1316
1320
|
"model-value": x.value,
|
|
1317
|
-
label:
|
|
1321
|
+
label: I(n)("catalogue.facet.startDate"),
|
|
1318
1322
|
options: ee.value,
|
|
1319
1323
|
"onUpdate:modelValue": t[3] ||= (e) => {
|
|
1320
1324
|
x.value = e, ue("from", e);
|
|
@@ -1325,7 +1329,7 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1325
1329
|
"options"
|
|
1326
1330
|
]), C(l, {
|
|
1327
1331
|
"model-value": E.value,
|
|
1328
|
-
label:
|
|
1332
|
+
label: I(n)("catalogue.facet.endDate"),
|
|
1329
1333
|
options: p.value,
|
|
1330
1334
|
"onUpdate:modelValue": t[4] ||= (e) => {
|
|
1331
1335
|
E.value = e, ue("to", e);
|
|
@@ -1334,41 +1338,41 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1334
1338
|
"model-value",
|
|
1335
1339
|
"label",
|
|
1336
1340
|
"options"
|
|
1337
|
-
])])) : v("", !0)], 64)) : a.value === "radio" ? (k(!0), y(h, { key: 2 },
|
|
1341
|
+
])])) : v("", !0)], 64)) : a.value === "radio" ? (k(!0), y(h, { key: 2 }, M(i.value.facets ?? [], (e) => (k(), y("div", {
|
|
1338
1342
|
key: e.key,
|
|
1339
1343
|
class: "mwnf-search-form__radio-row"
|
|
1340
|
-
}, [b("label",
|
|
1341
|
-
"onUpdate:modelValue": t[5] ||= (e) =>
|
|
1344
|
+
}, [b("label", gn, [U(b("input", {
|
|
1345
|
+
"onUpdate:modelValue": t[5] ||= (e) => Y.value = e,
|
|
1342
1346
|
type: "radio",
|
|
1343
1347
|
name: "mwnf-search-form-filter",
|
|
1344
1348
|
value: e.key
|
|
1345
|
-
}, null, 8,
|
|
1349
|
+
}, null, 8, _n), [[R, Y.value]]), S(" " + F(e.label ? I(n)(e.label) : ""), 1)]), e.type === "year" ? U((k(), y("input", {
|
|
1346
1350
|
key: 1,
|
|
1347
1351
|
"onUpdate:modelValue": (t) => ce[e.key] = t,
|
|
1348
1352
|
type: "number",
|
|
1349
1353
|
class: "mwnf-search-form__year",
|
|
1350
|
-
disabled:
|
|
1351
|
-
}, null, 8,
|
|
1354
|
+
disabled: Y.value !== e.key
|
|
1355
|
+
}, null, 8, vn)), [[B, ce[e.key]]]) : (k(), _(l, {
|
|
1352
1356
|
key: 0,
|
|
1353
1357
|
modelValue: ce[e.key],
|
|
1354
1358
|
"onUpdate:modelValue": (t) => ce[e.key] = t,
|
|
1355
1359
|
options: W.value[e.key] ?? [],
|
|
1356
|
-
disabled:
|
|
1360
|
+
disabled: Y.value !== e.key
|
|
1357
1361
|
}, null, 8, [
|
|
1358
1362
|
"modelValue",
|
|
1359
1363
|
"onUpdate:modelValue",
|
|
1360
1364
|
"options",
|
|
1361
1365
|
"disabled"
|
|
1362
1366
|
]))]))), 128)) : v("", !0),
|
|
1363
|
-
(k(!0), y(h, null,
|
|
1367
|
+
(k(!0), y(h, null, M(i.value.extras ?? [], (e) => (k(), y("label", {
|
|
1364
1368
|
key: e.key,
|
|
1365
1369
|
class: "mwnf-facet mwnf-facet--checkbox"
|
|
1366
1370
|
}, [U(b("input", {
|
|
1367
1371
|
"onUpdate:modelValue": (t) => X[e.key] = t,
|
|
1368
1372
|
type: "checkbox",
|
|
1369
1373
|
class: "mwnf-facet__checkbox"
|
|
1370
|
-
}, null, 8,
|
|
1371
|
-
|
|
1374
|
+
}, null, 8, yn), [[L, X[e.key]]]), b("span", bn, F(I(n)(e.label)), 1)]))), 128)),
|
|
1375
|
+
N(e.$slots, "extras", O(w(ge.value)))
|
|
1372
1376
|
]),
|
|
1373
1377
|
_: 3
|
|
1374
1378
|
}, 8, [
|
|
@@ -1376,34 +1380,34 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1376
1380
|
"apply-label",
|
|
1377
1381
|
"reset-label"
|
|
1378
1382
|
]),
|
|
1379
|
-
i.value.howTo ? (k(), y("p",
|
|
1380
|
-
default: H(() => [S(
|
|
1383
|
+
i.value.howTo ? (k(), y("p", xn, [C(m, { to: { name: i.value.howTo } }, {
|
|
1384
|
+
default: H(() => [S(F(I(n)("catalogue.search.howTo")), 1)]),
|
|
1381
1385
|
_: 1
|
|
1382
1386
|
}, 8, ["to"])])) : v("", !0),
|
|
1383
|
-
|
|
1387
|
+
N(e.$slots, "actions", O(w(ge.value)))
|
|
1384
1388
|
], 2));
|
|
1385
1389
|
}
|
|
1386
|
-
},
|
|
1390
|
+
}, Cn = { class: "mwnf-timeline" }, wn = {
|
|
1387
1391
|
key: 0,
|
|
1388
1392
|
class: "mwnf-timeline__title"
|
|
1389
|
-
},
|
|
1393
|
+
}, Tn = {
|
|
1390
1394
|
key: 3,
|
|
1391
1395
|
class: "mwnf-facet"
|
|
1392
|
-
},
|
|
1396
|
+
}, En = { class: "mwnf-facet__label" }, Dn = [
|
|
1393
1397
|
"value",
|
|
1394
1398
|
"placeholder",
|
|
1395
1399
|
"onInput"
|
|
1396
|
-
],
|
|
1400
|
+
], On = {
|
|
1397
1401
|
key: 1,
|
|
1398
1402
|
class: "mwnf-timeline__error"
|
|
1399
|
-
},
|
|
1403
|
+
}, kn = {
|
|
1400
1404
|
__name: "TimelineResultsView",
|
|
1401
1405
|
props: { spec: {
|
|
1402
1406
|
type: Object,
|
|
1403
1407
|
required: !0
|
|
1404
1408
|
} },
|
|
1405
1409
|
setup(e) {
|
|
1406
|
-
let t = e, { t: n } =
|
|
1410
|
+
let t = e, { t: n } = be(), r = Me(), a = g(() => t.spec), s = g(() => !!a.value.entrance), c = ke({
|
|
1407
1411
|
scope: t.spec.scope ?? "country",
|
|
1408
1412
|
countryLabel: t.spec.countryLabel,
|
|
1409
1413
|
countryIdForCode: t.spec.countryIdForCode,
|
|
@@ -1417,11 +1421,11 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1417
1421
|
min: z.value[0],
|
|
1418
1422
|
max: z.value[1]
|
|
1419
1423
|
}
|
|
1420
|
-
})), x =
|
|
1421
|
-
function
|
|
1424
|
+
})), x = A(Object.fromEntries(d.value.map((e) => [e, ""]))), T = j(""), E = s.value ? null : xe({ keys: d.value }), D = s.value ? x : E.filters;
|
|
1425
|
+
function P(e) {
|
|
1422
1426
|
if (ee("collection") && e !== "" && e != null) return e === "pc" ? null : e;
|
|
1423
1427
|
}
|
|
1424
|
-
function
|
|
1428
|
+
function ne() {
|
|
1425
1429
|
for (let e of d.value) x[e] = "";
|
|
1426
1430
|
T.value = "";
|
|
1427
1431
|
}
|
|
@@ -1448,7 +1452,7 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1448
1452
|
let e = D;
|
|
1449
1453
|
return c.findEvents({
|
|
1450
1454
|
country: e.country || void 0,
|
|
1451
|
-
collection:
|
|
1455
|
+
collection: P(e.collection),
|
|
1452
1456
|
begin: e.begin,
|
|
1453
1457
|
end: e.end
|
|
1454
1458
|
});
|
|
@@ -1458,7 +1462,7 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1458
1462
|
collection: void 0
|
|
1459
1463
|
}).map((e) => e.year_from).filter((e) => Number.isFinite(e) && e !== 0);
|
|
1460
1464
|
return e.length ? [Math.min(...e), Math.max(...e)] : [null, null];
|
|
1461
|
-
}), B =
|
|
1465
|
+
}), B = Ce(R, {
|
|
1462
1466
|
page: () => E ? E.page.value : 1,
|
|
1463
1467
|
size: () => a.value.pageSize ?? 15
|
|
1464
1468
|
});
|
|
@@ -1466,8 +1470,8 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1466
1470
|
let t = a.value.countryLabel && e.country_id ? a.value.countryLabel(e.country_id) : "";
|
|
1467
1471
|
return {
|
|
1468
1472
|
id: e.id,
|
|
1469
|
-
date:
|
|
1470
|
-
caption: t ?
|
|
1473
|
+
date: K(e, e.text, n),
|
|
1474
|
+
caption: t ? de(String(t)) : "",
|
|
1471
1475
|
description: e.text?.description ? ue(String(e.text.description), { breaks: !0 }) : ""
|
|
1472
1476
|
};
|
|
1473
1477
|
}
|
|
@@ -1478,11 +1482,11 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1478
1482
|
let e = {};
|
|
1479
1483
|
for (let t of u.value) (t.key === "begin" || t.key === "end") && t.options && (typeof t.options == "function" ? e[t.key] = t.options(te.value) : e[t.key] = t.options);
|
|
1480
1484
|
return e;
|
|
1481
|
-
}),
|
|
1485
|
+
}), G = g(() => ({
|
|
1482
1486
|
filters: D,
|
|
1483
1487
|
active: d.value.some((e) => D[e]),
|
|
1484
1488
|
apply: s.value ? L : (e) => E.apply(e),
|
|
1485
|
-
reset: s.value ?
|
|
1489
|
+
reset: s.value ? ne : E.reset,
|
|
1486
1490
|
goToPage: s.value ? () => {} : E.goToPage,
|
|
1487
1491
|
events: R.value,
|
|
1488
1492
|
pageInfo: B.value,
|
|
@@ -1490,17 +1494,17 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1490
1494
|
collections: ie.value,
|
|
1491
1495
|
t: n,
|
|
1492
1496
|
tr: a.value.tr
|
|
1493
|
-
})),
|
|
1497
|
+
})), ae = g(() => {
|
|
1494
1498
|
let e = a.value.gallery;
|
|
1495
|
-
return !e || s.value ? null : !e.items || e.items(
|
|
1496
|
-
}), K = g(() => {
|
|
1497
|
-
let e = G.value;
|
|
1498
|
-
return e == null ? !1 : Array.isArray(e) ? e.length > 0 : !!e;
|
|
1499
|
+
return !e || s.value ? null : !e.items || e.items(G.value);
|
|
1499
1500
|
}), oe = g(() => {
|
|
1500
|
-
let e =
|
|
1501
|
+
let e = ae.value;
|
|
1502
|
+
return e == null ? !1 : Array.isArray(e) ? e.length > 0 : !!e;
|
|
1503
|
+
}), se = g(() => {
|
|
1504
|
+
let e = ae.value;
|
|
1501
1505
|
return Array.isArray(e) ? e.length : typeof e == "number" ? e : null;
|
|
1502
|
-
}),
|
|
1503
|
-
if (!
|
|
1506
|
+
}), q = g(() => {
|
|
1507
|
+
if (!oe.value) return null;
|
|
1504
1508
|
let e = {};
|
|
1505
1509
|
for (let t of d.value) D[t] && (e[t] = D[t]);
|
|
1506
1510
|
return {
|
|
@@ -1508,13 +1512,13 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1508
1512
|
name: a.value.gallery.route,
|
|
1509
1513
|
query: e
|
|
1510
1514
|
},
|
|
1511
|
-
count:
|
|
1515
|
+
count: se.value,
|
|
1512
1516
|
label: n(a.value.gallery.label ?? "timeline.nav.seeGallery")
|
|
1513
1517
|
};
|
|
1514
|
-
}),
|
|
1515
|
-
...
|
|
1516
|
-
gallery:
|
|
1517
|
-
})),
|
|
1518
|
+
}), J = g(() => ({
|
|
1519
|
+
...G.value,
|
|
1520
|
+
gallery: q.value
|
|
1521
|
+
})), Y = g(() => a.value.summary ? a.value.summary(J.value) : [{
|
|
1518
1522
|
label: n(a.value.summaryLabel ?? "timeline.results.eventsFound"),
|
|
1519
1523
|
count: B.value.total
|
|
1520
1524
|
}]), ce = g(() => n(a.value.empty ?? "timeline.results.noResults")), X = g(() => ({
|
|
@@ -1526,26 +1530,26 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1526
1530
|
function Z(e, t) {
|
|
1527
1531
|
return e.label ? n(e.label) : t ? n(t) : "";
|
|
1528
1532
|
}
|
|
1529
|
-
return (e, t) => (k(), y("section",
|
|
1530
|
-
|
|
1531
|
-
a.value.title ? (k(), y("h1",
|
|
1533
|
+
return (e, t) => (k(), y("section", Cn, [
|
|
1534
|
+
N(e.$slots, "before", O(w(J.value))),
|
|
1535
|
+
a.value.title ? (k(), y("h1", wn, F(I(n)(a.value.title)), 1)) : v("", !0),
|
|
1532
1536
|
C(f, {
|
|
1533
1537
|
class: "mwnf-timeline__filters",
|
|
1534
|
-
title: a.value.filterTitle ?
|
|
1535
|
-
"apply-label": s.value ?
|
|
1536
|
-
"reset-label": a.value.resetLabel ?
|
|
1537
|
-
onApply: t[2] ||= (e) => s.value ? L() :
|
|
1538
|
-
onReset: t[3] ||= (e) => s.value ?
|
|
1538
|
+
title: a.value.filterTitle ? I(n)(a.value.filterTitle) : "",
|
|
1539
|
+
"apply-label": s.value ? I(n)(a.value.submitLabel ?? "core.action.search") : a.value.applyLabel ? I(n)(a.value.applyLabel) : "",
|
|
1540
|
+
"reset-label": a.value.resetLabel ? I(n)(a.value.resetLabel) : "",
|
|
1541
|
+
onApply: t[2] ||= (e) => s.value ? L() : I(E).apply(),
|
|
1542
|
+
onReset: t[3] ||= (e) => s.value ? ne() : I(E).reset()
|
|
1539
1543
|
}, {
|
|
1540
|
-
default: H(() => [(k(!0), y(h, null,
|
|
1544
|
+
default: H(() => [(k(!0), y(h, null, M(u.value, (e) => (k(), y(h, { key: e.key }, [e.key === "country" ? (k(), _(l, {
|
|
1541
1545
|
key: 0,
|
|
1542
|
-
"model-value":
|
|
1546
|
+
"model-value": I(D).country,
|
|
1543
1547
|
label: Z(e, "catalogue.facet.country"),
|
|
1544
1548
|
options: re.value,
|
|
1545
|
-
placeholder: e.placeholder ?
|
|
1546
|
-
"any-label": e.anyLabel ?
|
|
1549
|
+
placeholder: e.placeholder ? I(n)(e.placeholder) : I(n)("catalogue.facet.selectCountry"),
|
|
1550
|
+
"any-label": e.anyLabel ? I(n)(e.anyLabel) : "",
|
|
1547
1551
|
"hide-empty": !!e.hideEmpty,
|
|
1548
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
1552
|
+
"onUpdate:modelValue": t[0] ||= (e) => I(D).country = e
|
|
1549
1553
|
}, null, 8, [
|
|
1550
1554
|
"model-value",
|
|
1551
1555
|
"label",
|
|
@@ -1555,13 +1559,13 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1555
1559
|
"hide-empty"
|
|
1556
1560
|
])) : e.key === "collection" ? (k(), _(l, {
|
|
1557
1561
|
key: 1,
|
|
1558
|
-
"model-value":
|
|
1562
|
+
"model-value": I(D).collection,
|
|
1559
1563
|
label: Z(e),
|
|
1560
1564
|
options: ie.value,
|
|
1561
|
-
placeholder: e.placeholder ?
|
|
1562
|
-
"any-label": e.anyLabel ?
|
|
1565
|
+
placeholder: e.placeholder ? I(n)(e.placeholder) : "",
|
|
1566
|
+
"any-label": e.anyLabel ? I(n)(e.anyLabel) : "",
|
|
1563
1567
|
"hide-empty": !!e.hideEmpty,
|
|
1564
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
1568
|
+
"onUpdate:modelValue": t[1] ||= (e) => I(D).collection = e
|
|
1565
1569
|
}, null, 8, [
|
|
1566
1570
|
"model-value",
|
|
1567
1571
|
"label",
|
|
@@ -1571,13 +1575,13 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1571
1575
|
"hide-empty"
|
|
1572
1576
|
])) : (e.key === "begin" || e.key === "end") && W.value[e.key] ? (k(), _(l, {
|
|
1573
1577
|
key: 2,
|
|
1574
|
-
"model-value":
|
|
1578
|
+
"model-value": I(D)[e.key],
|
|
1575
1579
|
label: Z(e, e.key === "begin" ? "catalogue.facet.startDate" : "catalogue.facet.endDate"),
|
|
1576
1580
|
options: W.value[e.key],
|
|
1577
|
-
placeholder: e.placeholder ?
|
|
1578
|
-
"any-label": e.anyLabel ?
|
|
1581
|
+
placeholder: e.placeholder ? I(n)(e.placeholder) : I(n)(e.key === "begin" ? "timeline.form.fromYearHint" : "timeline.form.toYearHint"),
|
|
1582
|
+
"any-label": e.anyLabel ? I(n)(e.anyLabel) : "",
|
|
1579
1583
|
"hide-empty": !!e.hideEmpty,
|
|
1580
|
-
"onUpdate:modelValue": (t) =>
|
|
1584
|
+
"onUpdate:modelValue": (t) => I(D)[e.key] = t
|
|
1581
1585
|
}, null, 8, [
|
|
1582
1586
|
"model-value",
|
|
1583
1587
|
"label",
|
|
@@ -1586,40 +1590,40 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1586
1590
|
"any-label",
|
|
1587
1591
|
"hide-empty",
|
|
1588
1592
|
"onUpdate:modelValue"
|
|
1589
|
-
])) : (k(), y("label",
|
|
1593
|
+
])) : (k(), y("label", Tn, [b("span", En, F(Z(e, e.key === "begin" ? "catalogue.facet.startDate" : "catalogue.facet.endDate")), 1), b("input", {
|
|
1590
1594
|
type: "number",
|
|
1591
1595
|
class: "mwnf-facet__select",
|
|
1592
|
-
value:
|
|
1593
|
-
placeholder: e.placeholder ?
|
|
1594
|
-
onInput: (t) =>
|
|
1595
|
-
}, null, 40,
|
|
1596
|
+
value: I(D)[e.key],
|
|
1597
|
+
placeholder: e.placeholder ? I(n)(e.placeholder) : I(n)(e.key === "begin" ? "timeline.form.fromYearHint" : "timeline.form.toYearHint"),
|
|
1598
|
+
onInput: (t) => I(D)[e.key] = t.target.value
|
|
1599
|
+
}, null, 40, Dn)]))], 64))), 128))]),
|
|
1596
1600
|
_: 1
|
|
1597
1601
|
}, 8, [
|
|
1598
1602
|
"title",
|
|
1599
1603
|
"apply-label",
|
|
1600
1604
|
"reset-label"
|
|
1601
1605
|
]),
|
|
1602
|
-
s.value && T.value ? (k(), y("p",
|
|
1606
|
+
s.value && T.value ? (k(), y("p", On, F(T.value), 1)) : v("", !0),
|
|
1603
1607
|
s.value ? v("", !0) : (k(), y(h, { key: 2 }, [
|
|
1604
|
-
|
|
1605
|
-
|
|
1608
|
+
N(e.$slots, "summary", O(w(J.value)), () => [C(i, { parts: Y.value }, null, 8, ["parts"])]),
|
|
1609
|
+
q.value ? (k(), _(m, {
|
|
1606
1610
|
key: 0,
|
|
1607
1611
|
class: "mwnf-timeline__gallery",
|
|
1608
|
-
to:
|
|
1612
|
+
to: q.value.to
|
|
1609
1613
|
}, {
|
|
1610
|
-
default: H(() => [
|
|
1614
|
+
default: H(() => [N(e.$slots, "cross-link", O(w(J.value)), () => [S(F(q.value.label), 1), q.value.count == null ? v("", !0) : (k(), y(h, { key: 0 }, [S(" (" + F(q.value.count) + ")", 1)], 64))])]),
|
|
1611
1615
|
_: 3
|
|
1612
1616
|
}, 8, ["to"])) : v("", !0),
|
|
1613
|
-
|
|
1614
|
-
empty: H(() => [
|
|
1617
|
+
N(e.$slots, "event", O(w(J.value)), () => [C(p, { events: U.value }, {
|
|
1618
|
+
empty: H(() => [N(e.$slots, "empty", O(w(J.value)), () => [S(F(ce.value), 1)])]),
|
|
1615
1619
|
_: 3
|
|
1616
1620
|
}, 8, ["events"])]),
|
|
1617
1621
|
C(o, {
|
|
1618
|
-
"page-info":
|
|
1622
|
+
"page-info": I(B),
|
|
1619
1623
|
window: X.value.window,
|
|
1620
1624
|
jump: X.value.jump,
|
|
1621
1625
|
ends: X.value.ends,
|
|
1622
|
-
onNavigate:
|
|
1626
|
+
onNavigate: I(E).goToPage
|
|
1623
1627
|
}, null, 8, [
|
|
1624
1628
|
"page-info",
|
|
1625
1629
|
"window",
|
|
@@ -1628,9 +1632,9 @@ var Me = { class: "mwnf-catalogue" }, Ne = {
|
|
|
1628
1632
|
"onNavigate"
|
|
1629
1633
|
])
|
|
1630
1634
|
], 64)),
|
|
1631
|
-
|
|
1635
|
+
N(e.$slots, "after", O(w(J.value)))
|
|
1632
1636
|
]));
|
|
1633
1637
|
}
|
|
1634
1638
|
};
|
|
1635
1639
|
//#endregion
|
|
1636
|
-
export {
|
|
1640
|
+
export { Lt as a, Ge as c, Xt as i, Sn as n, Dt as o, nn as r, Qe as s, kn as t };
|