@museumwnf/viewer-layout 2.12.0 → 2.13.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/LICENSE.md +44 -44
- package/README.md +433 -433
- package/dist/views.js +552 -552
- package/package.json +51 -51
- package/src/tokens.reference.css +684 -684
package/dist/views.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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, r as p, s as m, t as h, u as g, v as _ } from "./TimelineEventList-59g_1ksf.js";
|
|
2
|
-
import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as w, createTextVNode as T, createVNode as E, guardReactiveProps as D, isRef as O, mergeProps as k, normalizeClass as
|
|
3
|
-
import { I18nText as
|
|
4
|
-
import { useRoute as
|
|
2
|
+
import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as w, createTextVNode as T, createVNode as E, guardReactiveProps as D, isRef as O, mergeProps as k, normalizeClass as ee, normalizeProps as A, openBlock as j, reactive as M, ref as N, renderList as P, renderSlot as F, resolveDynamicComponent as I, toDisplayString as L, unref as R, useSlots as te, vModelCheckbox as z, vModelRadio as B, vModelSelect as V, vModelText as H, watch as ne, withCtx as U, withDirectives as W } from "vue";
|
|
3
|
+
import { I18nText as re, NotFoundView as G, byId as ie, centuryPresets as K, citation as ae, dateRange as q, entityRef as oe, eventDateLabel as se, glossaryEntries as J, glossaryTermsForText as ce, groupByCountry as Y, languageLabels as X, md as Z, mdInline as Q, partnerHierarchy as le, projectName as ue, renderBlock as de, renderInline as $, renderPlain as fe, sheetRows as pe, sortChronological as me, sourceUrl as he, useCollectionTree as ge, useDataPackage as _e, useFacets as ve, useFeaturedRecord as ye, useGlossaryPopup as be, useI18n as xe, useListQuery as Se, useLocale as Ce, usePagination as we, useProjects as Te, useRecordLanguage as Ee, useRecordSheet as De, useRelatedRecords as Oe, useSearchLanguage as ke, useSiteConfig as Ae, useTimelineEvents as je, yearBuckets as Me } from "@museumwnf/viewer-core";
|
|
4
|
+
import { useRoute as Ne, useRouter as Pe } from "vue-router";
|
|
5
5
|
//#region src/views/HomeView.vue
|
|
6
|
-
var
|
|
6
|
+
var Fe = { class: "mwnf-home" }, Ie = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "mwnf-home__welcome"
|
|
9
|
-
},
|
|
9
|
+
}, Le = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "mwnf-home__title"
|
|
12
|
-
},
|
|
12
|
+
}, Re = {
|
|
13
13
|
__name: "HomeView",
|
|
14
14
|
props: {
|
|
15
15
|
title: {
|
|
@@ -30,7 +30,7 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
setup(t) {
|
|
33
|
-
let n = t, { t: r, locale: i } = xe(), o =
|
|
33
|
+
let n = t, { t: r, locale: i } = xe(), o = Ae(), s = y(() => ({
|
|
34
34
|
...o.home ?? {},
|
|
35
35
|
...c(n)
|
|
36
36
|
}));
|
|
@@ -76,53 +76,53 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
});
|
|
79
|
-
return (t, n) => (
|
|
80
|
-
s.value.title || s.value.intro ? (
|
|
79
|
+
return (t, n) => (j(), S("section", Fe, [
|
|
80
|
+
s.value.title || s.value.intro ? (j(), S("header", Ie, [s.value.title ? (j(), S("h1", Le, L(R(r)(s.value.title)), 1)) : x("", !0), s.value.intro ? (j(), b(R(re), {
|
|
81
81
|
key: 1,
|
|
82
82
|
tag: "div",
|
|
83
83
|
class: "mwnf-home__intro",
|
|
84
84
|
keypath: s.value.intro
|
|
85
85
|
}, null, 8, ["keypath"])) : x("", !0)])) : x("", !0),
|
|
86
|
-
|
|
86
|
+
F(t.$slots, "before"),
|
|
87
87
|
E(e, { cards: l.value }, null, 8, ["cards"]),
|
|
88
|
-
|
|
89
|
-
g.value ? (
|
|
90
|
-
|
|
88
|
+
F(t.$slots, "default"),
|
|
89
|
+
g.value ? (j(), b(a, A(k({ key: 1 }, g.value)), null, 16)) : x("", !0),
|
|
90
|
+
F(t.$slots, "after")
|
|
91
91
|
]));
|
|
92
92
|
}
|
|
93
|
-
},
|
|
93
|
+
}, ze = { class: "mwnf-catalogue" }, Be = {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "mwnf-catalogue__title"
|
|
96
|
-
},
|
|
96
|
+
}, Ve = {
|
|
97
97
|
key: 0,
|
|
98
98
|
class: "mwnf-facet"
|
|
99
|
-
},
|
|
99
|
+
}, He = {
|
|
100
100
|
key: 0,
|
|
101
101
|
class: "mwnf-facet__label"
|
|
102
|
-
},
|
|
102
|
+
}, Ue = [
|
|
103
103
|
"value",
|
|
104
104
|
"placeholder",
|
|
105
105
|
"onInput"
|
|
106
|
-
],
|
|
106
|
+
], We = {
|
|
107
107
|
key: 1,
|
|
108
108
|
class: "mwnf-facet"
|
|
109
|
-
},
|
|
109
|
+
}, Ge = {
|
|
110
110
|
key: 0,
|
|
111
111
|
class: "mwnf-facet__label"
|
|
112
|
-
},
|
|
112
|
+
}, Ke = [
|
|
113
113
|
"value",
|
|
114
114
|
"placeholder",
|
|
115
115
|
"onInput"
|
|
116
|
-
],
|
|
116
|
+
], qe = {
|
|
117
117
|
key: 2,
|
|
118
118
|
class: "mwnf-facet mwnf-facet--checkbox"
|
|
119
|
-
},
|
|
119
|
+
}, Je = ["checked", "onChange"], Ye = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "mwnf-facet__label"
|
|
122
|
-
},
|
|
122
|
+
}, Xe = { class: "mwnf-catalogue__body" }, Ze = { class: "mwnf-catalogue__results" }, Qe = {
|
|
123
123
|
key: 0,
|
|
124
124
|
class: "mwnf-catalogue__aside"
|
|
125
|
-
},
|
|
125
|
+
}, $e = {
|
|
126
126
|
__name: "CatalogueResultsView",
|
|
127
127
|
props: {
|
|
128
128
|
spec: {
|
|
@@ -135,33 +135,33 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
setup(e) {
|
|
138
|
-
let t = e, { t: n, locale: a } = xe(), s = _e(), c = t.spec.entity ?? t.entity, u = y(() => t.spec), d =
|
|
138
|
+
let t = e, { t: n, locale: a } = xe(), s = _e(), c = t.spec.entity ?? t.entity, u = y(() => t.spec), d = oe(c);
|
|
139
139
|
c && s.loadTranslations(c, "en");
|
|
140
140
|
let p = y(() => u.value.keys ?? [...Object.keys(u.value.facets ?? {}), ...m()]);
|
|
141
141
|
function m() {
|
|
142
142
|
let e = u.value.dates;
|
|
143
143
|
return e ? [e.begin ?? "begin", e.end ?? "end"] : [];
|
|
144
144
|
}
|
|
145
|
-
let { filters: h, page: _, active: O, apply: k, reset:
|
|
145
|
+
let { filters: h, page: _, active: O, apply: k, reset: ee, goToPage: M } = Se({ keys: p.value }), N = {
|
|
146
146
|
t: n,
|
|
147
147
|
locale: a,
|
|
148
148
|
tr: (e, t) => s.tr(e, t, a.value, "en"),
|
|
149
149
|
renderInline: $,
|
|
150
150
|
renderPlain: fe
|
|
151
151
|
};
|
|
152
|
-
function
|
|
152
|
+
function te(e, t) {
|
|
153
153
|
if (typeof t.values == "function") return [t.values(e)].flat();
|
|
154
154
|
let n = e?.[t.field];
|
|
155
155
|
return Array.isArray(n) ? n : [n];
|
|
156
156
|
}
|
|
157
|
-
let
|
|
157
|
+
let z = y(() => {
|
|
158
158
|
let e = u.value, t = d.value ?? [];
|
|
159
|
-
e.scope && (t = t.filter((t) => e.scope(t, h,
|
|
159
|
+
e.scope && (t = t.filter((t) => e.scope(t, h, N)));
|
|
160
160
|
for (let [n, r] of Object.entries(e.facets ?? {})) {
|
|
161
161
|
let e = h[n];
|
|
162
|
-
e && (t = t.filter((t) =>
|
|
162
|
+
e && (t = t.filter((t) => te(t, r).map(String).includes(String(e))));
|
|
163
163
|
}
|
|
164
|
-
e.match && (t = t.filter((t) => e.match(t, h,
|
|
164
|
+
e.match && (t = t.filter((t) => e.match(t, h, N))), e.narrow && (t = e.narrow(t, h, N)), e.dates && (t = q(t, {
|
|
165
165
|
begin: h[e.dates.begin ?? "begin"],
|
|
166
166
|
end: h[e.dates.end ?? "end"],
|
|
167
167
|
mode: e.dates.mode ?? "overlap",
|
|
@@ -169,12 +169,12 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
169
169
|
}));
|
|
170
170
|
let n = e.sort ?? "chronological";
|
|
171
171
|
return typeof n == "function" ? n(t) : n === "chronological" ? me(t) : n && typeof n == "object" ? me(t, n) : t;
|
|
172
|
-
}),
|
|
172
|
+
}), B = y(() => u.value.facetScope === "matching" ? z.value : d.value ?? []), V = ve(B, () => u.value.facets ?? {}), H = we(z, {
|
|
173
173
|
page: _,
|
|
174
174
|
size: () => u.value.pageSize ?? 20
|
|
175
|
-
}),
|
|
176
|
-
function
|
|
177
|
-
let t =
|
|
175
|
+
}), ne = y(() => u.value.recordRoute ?? (t.entity ? `${t.entity}-detail` : "item"));
|
|
176
|
+
function W(e) {
|
|
177
|
+
let t = N.tr(c, e.id).name ?? e.internal_name ?? e.id;
|
|
178
178
|
return {
|
|
179
179
|
id: e.id,
|
|
180
180
|
image: e.images?.[0]?.url ?? "",
|
|
@@ -183,80 +183,80 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
183
183
|
meta: [],
|
|
184
184
|
badge: e.type ?? "",
|
|
185
185
|
to: {
|
|
186
|
-
name:
|
|
186
|
+
name: ne.value,
|
|
187
187
|
params: { id: e.id }
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
let
|
|
191
|
+
let re = y(() => H.value.rows.map((e) => (u.value.record ?? W)(e, N))), G = y(() => ({
|
|
192
192
|
filters: h,
|
|
193
193
|
active: O.value,
|
|
194
194
|
apply: k,
|
|
195
|
-
reset:
|
|
196
|
-
goToPage:
|
|
197
|
-
matching:
|
|
198
|
-
pageInfo:
|
|
199
|
-
options:
|
|
200
|
-
})),
|
|
195
|
+
reset: ee,
|
|
196
|
+
goToPage: M,
|
|
197
|
+
matching: z.value,
|
|
198
|
+
pageInfo: H.value,
|
|
199
|
+
options: V.value
|
|
200
|
+
})), ie = y(() => {
|
|
201
201
|
let e = u.value;
|
|
202
202
|
return e.summary ? e.summary({
|
|
203
|
-
...
|
|
203
|
+
...G.value,
|
|
204
204
|
t: n,
|
|
205
205
|
total: (d.value ?? []).length
|
|
206
206
|
}) : [{
|
|
207
207
|
label: n(e.summaryLabel ?? "catalogue.results.itemsFound"),
|
|
208
|
-
count:
|
|
208
|
+
count: H.value.total
|
|
209
209
|
}];
|
|
210
|
-
}),
|
|
211
|
-
function
|
|
212
|
-
|
|
210
|
+
}), K = y(() => u.value.filterMode ?? "apply"), ae = y(() => u.value.controls ?? []), se = y(() => ae.value.length > 0 || !!u.value.panel);
|
|
211
|
+
function J(e, t) {
|
|
212
|
+
K.value === "immediate" ? k({ [e]: t }) : h[e] = t;
|
|
213
213
|
}
|
|
214
|
-
let
|
|
214
|
+
let ce = y(() => n(u.value.empty ?? "catalogue.results.noResultsFilter")), Y = y(() => u.value.variant === "grid"), X = y(() => ({
|
|
215
215
|
window: 5,
|
|
216
216
|
jump: !1,
|
|
217
217
|
ends: !0,
|
|
218
218
|
...u.value.pagination ?? {}
|
|
219
219
|
}));
|
|
220
|
-
return (e, t) => (
|
|
221
|
-
|
|
222
|
-
u.value.title ? (
|
|
223
|
-
|
|
220
|
+
return (e, t) => (j(), S("section", ze, [
|
|
221
|
+
F(e.$slots, "before", A(D(G.value))),
|
|
222
|
+
u.value.title ? (j(), S("h1", Be, L(R(n)(u.value.title)), 1)) : x("", !0),
|
|
223
|
+
se.value || e.$slots.filters ? (j(), b(r, {
|
|
224
224
|
key: 1,
|
|
225
225
|
class: "mwnf-catalogue__filters",
|
|
226
|
-
mode:
|
|
227
|
-
title: u.value.filterTitle ?
|
|
228
|
-
"reset-label": u.value.resetLabel ?
|
|
229
|
-
onApply: t[2] ||= (e) =>
|
|
230
|
-
onReset: t[3] ||= (e) =>
|
|
226
|
+
mode: K.value,
|
|
227
|
+
title: u.value.filterTitle ? R(n)(u.value.filterTitle) : "",
|
|
228
|
+
"reset-label": u.value.resetLabel ? R(n)(u.value.resetLabel) : "",
|
|
229
|
+
onApply: t[2] ||= (e) => R(k)(),
|
|
230
|
+
onReset: t[3] ||= (e) => R(ee)()
|
|
231
231
|
}, {
|
|
232
|
-
default:
|
|
232
|
+
default: U(() => [(j(!0), S(v, null, P(ae.value, (e) => (j(), S(v, { key: e.key }, [e.type === "year" ? (j(), S("label", Ve, [e.label ? (j(), S("span", He, L(R(n)(e.label)), 1)) : x("", !0), C("input", {
|
|
233
233
|
type: "number",
|
|
234
234
|
class: "mwnf-facet__select",
|
|
235
|
-
value:
|
|
236
|
-
placeholder: e.placeholder ?
|
|
237
|
-
onInput: (t) =>
|
|
238
|
-
onChange: t[0] ||= (e) =>
|
|
239
|
-
}, null, 40,
|
|
235
|
+
value: R(h)[e.key],
|
|
236
|
+
placeholder: e.placeholder ? R(n)(e.placeholder) : "",
|
|
237
|
+
onInput: (t) => R(h)[e.key] = t.target.value,
|
|
238
|
+
onChange: t[0] ||= (e) => K.value === "immediate" ? R(k)() : null
|
|
239
|
+
}, null, 40, Ue)])) : e.type === "query" ? (j(), S("label", We, [e.label ? (j(), S("span", Ge, L(R(n)(e.label)), 1)) : x("", !0), C("input", {
|
|
240
240
|
type: "text",
|
|
241
241
|
class: "mwnf-facet__select",
|
|
242
|
-
value:
|
|
243
|
-
placeholder: e.placeholder ?
|
|
244
|
-
onInput: (t) =>
|
|
245
|
-
onChange: t[1] ||= (e) =>
|
|
246
|
-
}, null, 40,
|
|
242
|
+
value: R(h)[e.key],
|
|
243
|
+
placeholder: e.placeholder ? R(n)(e.placeholder) : "",
|
|
244
|
+
onInput: (t) => R(h)[e.key] = t.target.value,
|
|
245
|
+
onChange: t[1] ||= (e) => K.value === "immediate" ? R(k)() : null
|
|
246
|
+
}, null, 40, Ke)])) : e.type === "checkbox" ? (j(), S("label", qe, [C("input", {
|
|
247
247
|
type: "checkbox",
|
|
248
248
|
class: "mwnf-facet__checkbox",
|
|
249
|
-
checked:
|
|
250
|
-
onChange: (t) =>
|
|
251
|
-
}, null, 40,
|
|
249
|
+
checked: R(h)[e.key] === "1",
|
|
250
|
+
onChange: (t) => J(e.key, t.target.checked ? "1" : "")
|
|
251
|
+
}, null, 40, Je), e.label ? (j(), S("span", Ye, L(R(n)(e.label)), 1)) : x("", !0)])) : (j(), b(i, {
|
|
252
252
|
key: 3,
|
|
253
|
-
"model-value":
|
|
254
|
-
label: e.label ?
|
|
255
|
-
options:
|
|
256
|
-
placeholder: e.placeholder ?
|
|
257
|
-
"any-label": e.anyLabel ?
|
|
253
|
+
"model-value": R(h)[e.key],
|
|
254
|
+
label: e.label ? R(n)(e.label) : "",
|
|
255
|
+
options: R(V)[e.key] ?? [],
|
|
256
|
+
placeholder: e.placeholder ? R(n)(e.placeholder) : "",
|
|
257
|
+
"any-label": e.anyLabel ? R(n)(e.anyLabel) : "",
|
|
258
258
|
"hide-empty": !!e.hideEmpty,
|
|
259
|
-
"onUpdate:modelValue": (t) =>
|
|
259
|
+
"onUpdate:modelValue": (t) => J(e.key, t)
|
|
260
260
|
}, null, 8, [
|
|
261
261
|
"model-value",
|
|
262
262
|
"label",
|
|
@@ -265,50 +265,50 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
265
265
|
"any-label",
|
|
266
266
|
"hide-empty",
|
|
267
267
|
"onUpdate:modelValue"
|
|
268
|
-
]))], 64))), 128)),
|
|
268
|
+
]))], 64))), 128)), F(e.$slots, "filters", A(D(G.value)))]),
|
|
269
269
|
_: 3
|
|
270
270
|
}, 8, [
|
|
271
271
|
"mode",
|
|
272
272
|
"title",
|
|
273
273
|
"reset-label"
|
|
274
274
|
])) : x("", !0),
|
|
275
|
-
E(g, { parts:
|
|
275
|
+
E(g, { parts: ie.value }, w({ _: 2 }, [e.$slots.actions ? {
|
|
276
276
|
name: "actions",
|
|
277
|
-
fn:
|
|
277
|
+
fn: U(() => [F(e.$slots, "actions", A(D(G.value)))]),
|
|
278
278
|
key: "0"
|
|
279
279
|
} : void 0]), 1032, ["parts"]),
|
|
280
|
-
C("div",
|
|
281
|
-
records:
|
|
282
|
-
"action-label": u.value.actionLabel ?
|
|
280
|
+
C("div", Xe, [C("div", Ze, [(j(), b(I(Y.value ? l : o), {
|
|
281
|
+
records: re.value,
|
|
282
|
+
"action-label": u.value.actionLabel ? R(n)(u.value.actionLabel) : ""
|
|
283
283
|
}, {
|
|
284
|
-
empty:
|
|
284
|
+
empty: U(() => [F(e.$slots, "empty", A(D(G.value)), () => [T(L(ce.value), 1)])]),
|
|
285
285
|
_: 3
|
|
286
286
|
}, 8, ["records", "action-label"])), E(f, {
|
|
287
|
-
"page-info":
|
|
288
|
-
window:
|
|
289
|
-
jump:
|
|
290
|
-
ends:
|
|
291
|
-
onNavigate:
|
|
287
|
+
"page-info": R(H),
|
|
288
|
+
window: X.value.window,
|
|
289
|
+
jump: X.value.jump,
|
|
290
|
+
ends: X.value.ends,
|
|
291
|
+
onNavigate: R(M)
|
|
292
292
|
}, null, 8, [
|
|
293
293
|
"page-info",
|
|
294
294
|
"window",
|
|
295
295
|
"jump",
|
|
296
296
|
"ends",
|
|
297
297
|
"onNavigate"
|
|
298
|
-
])]), e.$slots.aside ? (
|
|
299
|
-
|
|
298
|
+
])]), e.$slots.aside ? (j(), S("aside", Qe, [F(e.$slots, "aside", A(D(G.value)))])) : x("", !0)]),
|
|
299
|
+
F(e.$slots, "after", A(D(G.value)))
|
|
300
300
|
]));
|
|
301
301
|
}
|
|
302
|
-
},
|
|
302
|
+
}, et = ["dir", "innerHTML"], tt = { class: "mwnf-record__body" }, nt = { class: "mwnf-record__main" }, rt = {
|
|
303
303
|
key: 1,
|
|
304
304
|
class: "mwnf-record__status"
|
|
305
|
-
},
|
|
305
|
+
}, it = {
|
|
306
306
|
key: 0,
|
|
307
307
|
class: "mwnf-record__aside"
|
|
308
|
-
},
|
|
308
|
+
}, at = {
|
|
309
309
|
key: 2,
|
|
310
310
|
class: "mwnf-record__status"
|
|
311
|
-
},
|
|
311
|
+
}, ot = {
|
|
312
312
|
__name: "RecordView",
|
|
313
313
|
props: {
|
|
314
314
|
spec: {
|
|
@@ -325,55 +325,55 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
325
325
|
}
|
|
326
326
|
},
|
|
327
327
|
setup(e) {
|
|
328
|
-
let r = e, { t: i, locale: a } = xe(), o = _e(), l =
|
|
329
|
-
entity:
|
|
328
|
+
let r = e, { t: i, locale: a } = xe(), o = _e(), l = Te(), f = te(), h = Ne(), g = r.spec.entity ?? r.entity, O = y(() => r.spec), k = oe(g), ee = ie(g), M = y(() => ee.value.get(r.id) ?? null), N = y(() => k.value !== null), { language: I, languages: z, dir: B, select: V, text: H, ready: ne, terms: W, glossary: re, attribution: K } = De(M, {
|
|
329
|
+
entity: g,
|
|
330
330
|
translations: r.spec.translations ?? [],
|
|
331
331
|
attribution: r.spec.attribution ?? []
|
|
332
|
-
}), q = y(() =>
|
|
333
|
-
record:
|
|
332
|
+
}), q = y(() => X(z.value)), { active: se, onClick: J, close: ce } = be(W), Y = y(() => se.value ? de(se.value.definition, { breaks: !0 }) : ""), Z = (e, t) => o.tr(e, t, I.value, "en"), Q = y(() => ({
|
|
333
|
+
record: M.value,
|
|
334
334
|
text: H.value,
|
|
335
|
-
language:
|
|
335
|
+
language: I.value,
|
|
336
336
|
languages: q.value,
|
|
337
|
-
select:
|
|
338
|
-
dir:
|
|
339
|
-
glossary:
|
|
340
|
-
ready:
|
|
341
|
-
attribution:
|
|
337
|
+
select: V,
|
|
338
|
+
dir: B.value,
|
|
339
|
+
glossary: re.value,
|
|
340
|
+
ready: ne.value,
|
|
341
|
+
attribution: K.value,
|
|
342
342
|
t: i,
|
|
343
|
-
tr:
|
|
343
|
+
tr: Z
|
|
344
344
|
}));
|
|
345
|
-
function
|
|
345
|
+
function le(e) {
|
|
346
346
|
return ((typeof e == "function" ? e(Q.value) : e) ?? []).map((e) => ({
|
|
347
347
|
...e,
|
|
348
348
|
label: e.label ? i(e.label) : ""
|
|
349
349
|
}));
|
|
350
350
|
}
|
|
351
|
-
let
|
|
351
|
+
let me = y(() => M.value ? pe(le(O.value.fields), Q.value) : []), ge = y(() => M.value ? pe(le(O.value.sections).map((e) => ({
|
|
352
352
|
render: "block",
|
|
353
353
|
...e
|
|
354
|
-
})), Q.value) : []),
|
|
355
|
-
let e =
|
|
354
|
+
})), Q.value) : []), ve = y(() => O.value.shortDescription === !1 ? "" : O.value.shortDescription ?? "short_description"), ye = y(() => {
|
|
355
|
+
let e = ve.value ? H.value[ve.value] : "";
|
|
356
356
|
return e ? { html: de(String(e), {
|
|
357
357
|
breaks: !0,
|
|
358
|
-
glossary:
|
|
358
|
+
glossary: re.value
|
|
359
359
|
}) } : null;
|
|
360
|
-
}), ye = y(() => {
|
|
361
|
-
if (!A.value) return "";
|
|
362
|
-
if (g.value.title) return g.value.title(Q.value);
|
|
363
|
-
let e = H.value.name ?? A.value.internal_name ?? A.value.id;
|
|
364
|
-
return $(String(e), { glossary: G.value });
|
|
365
360
|
}), Se = y(() => {
|
|
366
|
-
if (!
|
|
367
|
-
if (
|
|
368
|
-
let e =
|
|
369
|
-
return (
|
|
361
|
+
if (!M.value) return "";
|
|
362
|
+
if (O.value.title) return O.value.title(Q.value);
|
|
363
|
+
let e = H.value.name ?? M.value.internal_name ?? M.value.id;
|
|
364
|
+
return $(String(e), { glossary: re.value });
|
|
365
|
+
}), Ce = y(() => {
|
|
366
|
+
if (!M.value) return [];
|
|
367
|
+
if (O.value.media) return O.value.media(M.value, Q.value);
|
|
368
|
+
let e = fe(String(H.value.name ?? M.value.internal_name ?? ""));
|
|
369
|
+
return (M.value.images ?? []).map((t) => ({
|
|
370
370
|
url: t.url,
|
|
371
|
-
alt: t.captions?.[
|
|
372
|
-
caption: t.captions?.[
|
|
371
|
+
alt: t.captions?.[I.value] ?? e,
|
|
372
|
+
caption: t.captions?.[I.value] ?? t.captions?.en ?? "",
|
|
373
373
|
photographer: t.photographer ?? "",
|
|
374
374
|
copyright: t.copyright ?? ""
|
|
375
375
|
}));
|
|
376
|
-
}),
|
|
376
|
+
}), we = [
|
|
377
377
|
{
|
|
378
378
|
field: "author",
|
|
379
379
|
label: "sheet.field.preparedBy"
|
|
@@ -390,30 +390,30 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
390
390
|
field: "translation_copy_editor",
|
|
391
391
|
label: "sheet.field.translationCopyeditedBy"
|
|
392
392
|
}
|
|
393
|
-
],
|
|
393
|
+
], Ee = y(() => (O.value.credits ?? we).map(({ field: e, label: t }) => ({
|
|
394
394
|
label: i(t),
|
|
395
|
-
value: H.value[e] ??
|
|
396
|
-
})).filter((e) => e.value)),
|
|
397
|
-
let e =
|
|
398
|
-
if (!
|
|
399
|
-
let t = typeof e?.project == "function" ? e.project(
|
|
400
|
-
return
|
|
401
|
-
author: H.value.author ??
|
|
402
|
-
name: H.value.name ??
|
|
403
|
-
project:
|
|
404
|
-
permalink:
|
|
395
|
+
value: H.value[e] ?? K.value[e] ?? ""
|
|
396
|
+
})).filter((e) => e.value)), ke = y(() => String(M.value?.[O.value.workingNumber ?? "mwnf_reference"] ?? "")), Ae = y(() => {
|
|
397
|
+
let e = O.value.citation;
|
|
398
|
+
if (!M.value || e === !1) return "";
|
|
399
|
+
let t = typeof e?.project == "function" ? null : e?.project ?? M.value.project_id, n = typeof e?.project == "function" ? e.project(M.value, Q.value) : l.label(t) ?? ue(e?.project ?? M.value.project_key, i), r = e?.permalink === !1 ? void 0 : typeof e?.permalink == "string" ? e.permalink : he(h) ?? void 0;
|
|
400
|
+
return ae({
|
|
401
|
+
author: H.value.author ?? K.value.author,
|
|
402
|
+
name: H.value.name ?? M.value.internal_name ?? "",
|
|
403
|
+
project: n,
|
|
404
|
+
permalink: r,
|
|
405
405
|
inWord: i("record.citation.in")
|
|
406
406
|
});
|
|
407
|
-
}),
|
|
408
|
-
entity:
|
|
409
|
-
language:
|
|
410
|
-
}),
|
|
411
|
-
if (!
|
|
412
|
-
let e =
|
|
413
|
-
return
|
|
407
|
+
}), je = Oe(M, {
|
|
408
|
+
entity: g,
|
|
409
|
+
language: I
|
|
410
|
+
}), Me = y(() => O.value.related === !1 ? null : O.value.related ?? {}), Pe = y(() => {
|
|
411
|
+
if (!Me.value) return [];
|
|
412
|
+
let e = Me.value.record ?? Fe;
|
|
413
|
+
return je.value.inPackage.map((t) => e(t, Q.value));
|
|
414
414
|
});
|
|
415
|
-
function
|
|
416
|
-
let n =
|
|
415
|
+
function Fe({ record: e, justification: t }) {
|
|
416
|
+
let n = Z(g, e.id).name ?? e.internal_name ?? e.id;
|
|
417
417
|
return {
|
|
418
418
|
id: e.id,
|
|
419
419
|
image: e.images?.[0]?.url ?? "",
|
|
@@ -422,12 +422,12 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
422
422
|
meta: t ? [t] : [],
|
|
423
423
|
badge: e.type ?? "",
|
|
424
424
|
to: {
|
|
425
|
-
name:
|
|
425
|
+
name: O.value.route ?? (r.entity ? `${r.entity}-detail` : "item"),
|
|
426
426
|
params: { id: e.id }
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
|
-
let
|
|
430
|
+
let Ie = /* @__PURE__ */ new Set([
|
|
431
431
|
"header",
|
|
432
432
|
"before-sheet",
|
|
433
433
|
"after-sheet",
|
|
@@ -436,26 +436,26 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
436
436
|
"related",
|
|
437
437
|
"after",
|
|
438
438
|
"default"
|
|
439
|
-
]),
|
|
440
|
-
return (e, r) => N.value && !
|
|
439
|
+
]), Le = y(() => Object.keys(f).filter((e) => !Ie.has(e)));
|
|
440
|
+
return (e, r) => N.value && !M.value ? (j(), b(R(G), { key: 0 })) : M.value ? (j(), S("article", {
|
|
441
441
|
key: 1,
|
|
442
442
|
class: "mwnf-record",
|
|
443
|
-
onClick: r[0] ||= (...e) =>
|
|
443
|
+
onClick: r[0] ||= (...e) => R(J) && R(J)(...e)
|
|
444
444
|
}, [
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
F(e.$slots, "header", A(D(Q.value)), () => [
|
|
446
|
+
O.value.back ? (j(), b(_, {
|
|
447
447
|
key: 0,
|
|
448
448
|
class: "mwnf-record__back",
|
|
449
|
-
to:
|
|
450
|
-
href:
|
|
449
|
+
to: O.value.back.to,
|
|
450
|
+
href: O.value.back.href
|
|
451
451
|
}, {
|
|
452
|
-
default:
|
|
452
|
+
default: U(() => [T("← " + L(R(i)(O.value.back.label)), 1)]),
|
|
453
453
|
_: 1
|
|
454
454
|
}, 8, ["to", "href"])) : x("", !0),
|
|
455
455
|
E(c, {
|
|
456
456
|
languages: q.value,
|
|
457
|
-
language:
|
|
458
|
-
onSelect:
|
|
457
|
+
language: R(I),
|
|
458
|
+
onSelect: R(V)
|
|
459
459
|
}, null, 8, [
|
|
460
460
|
"languages",
|
|
461
461
|
"language",
|
|
@@ -463,27 +463,27 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
463
463
|
]),
|
|
464
464
|
C("h1", {
|
|
465
465
|
class: "mwnf-record__title",
|
|
466
|
-
dir:
|
|
467
|
-
innerHTML:
|
|
468
|
-
}, null, 8,
|
|
466
|
+
dir: R(B) || void 0,
|
|
467
|
+
innerHTML: Se.value
|
|
468
|
+
}, null, 8, et)
|
|
469
469
|
]),
|
|
470
|
-
C("div",
|
|
471
|
-
|
|
470
|
+
C("div", tt, [C("div", nt, [
|
|
471
|
+
Ce.value.length ? (j(), b(p, {
|
|
472
472
|
key: 0,
|
|
473
|
-
images:
|
|
474
|
-
variant:
|
|
473
|
+
images: Ce.value,
|
|
474
|
+
variant: O.value.mediaVariant ?? ""
|
|
475
475
|
}, null, 8, ["images", "variant"])) : x("", !0),
|
|
476
|
-
|
|
477
|
-
|
|
476
|
+
R(ne) ? x("", !0) : (j(), S("p", rt, L(R(i)("core.status.loading")), 1)),
|
|
477
|
+
F(e.$slots, "before-sheet", A(D(Q.value))),
|
|
478
478
|
E(n, {
|
|
479
|
-
rows:
|
|
480
|
-
layout:
|
|
481
|
-
dir:
|
|
482
|
-
"short-description":
|
|
483
|
-
"short-description-after":
|
|
484
|
-
}, w({ _: 2 }, [
|
|
479
|
+
rows: me.value,
|
|
480
|
+
layout: O.value.layout ?? "table",
|
|
481
|
+
dir: R(B),
|
|
482
|
+
"short-description": ye.value,
|
|
483
|
+
"short-description-after": O.value.shortDescriptionAfter ?? "description"
|
|
484
|
+
}, w({ _: 2 }, [P(Le.value, (t) => ({
|
|
485
485
|
name: t,
|
|
486
|
-
fn:
|
|
486
|
+
fn: U((n) => [F(e.$slots, t, A(D({
|
|
487
487
|
...n,
|
|
488
488
|
...Q.value
|
|
489
489
|
})))])
|
|
@@ -494,23 +494,23 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
494
494
|
"short-description",
|
|
495
495
|
"short-description-after"
|
|
496
496
|
]),
|
|
497
|
-
(
|
|
497
|
+
(j(!0), S(v, null, P(ge.value, (e) => (j(), b(m, {
|
|
498
498
|
key: e.key,
|
|
499
499
|
heading: e.label,
|
|
500
500
|
html: e.html,
|
|
501
|
-
dir:
|
|
501
|
+
dir: R(B)
|
|
502
502
|
}, null, 8, [
|
|
503
503
|
"heading",
|
|
504
504
|
"html",
|
|
505
505
|
"dir"
|
|
506
506
|
]))), 128)),
|
|
507
|
-
|
|
507
|
+
F(e.$slots, "after-sheet", A(D(Q.value))),
|
|
508
508
|
E(d, {
|
|
509
|
-
credits:
|
|
510
|
-
"working-number":
|
|
511
|
-
"working-number-label":
|
|
512
|
-
citation:
|
|
513
|
-
"citation-heading":
|
|
509
|
+
credits: Ee.value,
|
|
510
|
+
"working-number": ke.value,
|
|
511
|
+
"working-number-label": R(i)("sheet.field.workingNumber"),
|
|
512
|
+
citation: Ae.value,
|
|
513
|
+
"citation-heading": O.value.citation?.heading ? R(i)(O.value.citation.heading) : ""
|
|
514
514
|
}, null, 8, [
|
|
515
515
|
"credits",
|
|
516
516
|
"working-number",
|
|
@@ -518,75 +518,75 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
518
518
|
"citation",
|
|
519
519
|
"citation-heading"
|
|
520
520
|
]),
|
|
521
|
-
|
|
522
|
-
|
|
521
|
+
F(e.$slots, "source", A(D(Q.value)), () => [E(t)]),
|
|
522
|
+
F(e.$slots, "related", A(D({
|
|
523
523
|
...Q.value,
|
|
524
|
-
records:
|
|
525
|
-
outside:
|
|
526
|
-
})), () => [
|
|
524
|
+
records: Pe.value,
|
|
525
|
+
outside: R(je).outside
|
|
526
|
+
})), () => [Me.value ? (j(), b(s, {
|
|
527
527
|
key: 0,
|
|
528
|
-
heading:
|
|
529
|
-
records:
|
|
530
|
-
variant:
|
|
531
|
-
"action-label":
|
|
528
|
+
heading: R(i)(Me.value.heading ?? "record.related.items"),
|
|
529
|
+
records: Pe.value,
|
|
530
|
+
variant: Me.value.variant ?? "list",
|
|
531
|
+
"action-label": Me.value.actionLabel ? R(i)(Me.value.actionLabel) : ""
|
|
532
532
|
}, null, 8, [
|
|
533
533
|
"heading",
|
|
534
534
|
"records",
|
|
535
535
|
"variant",
|
|
536
536
|
"action-label"
|
|
537
537
|
])) : x("", !0)])
|
|
538
|
-
]), e.$slots.aside ? (
|
|
539
|
-
|
|
538
|
+
]), e.$slots.aside ? (j(), S("aside", it, [F(e.$slots, "aside", A(D(Q.value)))])) : x("", !0)]),
|
|
539
|
+
F(e.$slots, "after", A(D(Q.value))),
|
|
540
540
|
E(u, {
|
|
541
|
-
term:
|
|
542
|
-
html:
|
|
543
|
-
dir:
|
|
544
|
-
onClose:
|
|
541
|
+
term: R(se),
|
|
542
|
+
html: Y.value,
|
|
543
|
+
dir: R(B),
|
|
544
|
+
onClose: R(ce)
|
|
545
545
|
}, null, 8, [
|
|
546
546
|
"term",
|
|
547
547
|
"html",
|
|
548
548
|
"dir",
|
|
549
549
|
"onClose"
|
|
550
550
|
])
|
|
551
|
-
])) : (
|
|
551
|
+
])) : (j(), S("p", at, L(R(i)("core.status.loading")), 1));
|
|
552
552
|
}
|
|
553
|
-
},
|
|
553
|
+
}, st = ["dir"], ct = {
|
|
554
554
|
key: 0,
|
|
555
555
|
class: "mwnf-essay__breadcrumb"
|
|
556
|
-
},
|
|
556
|
+
}, lt = { class: "mwnf-essay__breadcrumb-label" }, ut = {
|
|
557
557
|
key: 1,
|
|
558
558
|
class: "mwnf-essay__breadcrumb-link"
|
|
559
|
-
},
|
|
559
|
+
}, dt = ["aria-label"], ft = { class: "mwnf-essay__title" }, pt = {
|
|
560
560
|
key: 0,
|
|
561
561
|
class: "mwnf-essay__number"
|
|
562
|
-
},
|
|
562
|
+
}, mt = ["innerHTML"], ht = { class: "mwnf-essay__body" }, gt = { class: "mwnf-essay__main" }, _t = {
|
|
563
563
|
key: 0,
|
|
564
564
|
class: "mwnf-essay__status"
|
|
565
|
-
},
|
|
565
|
+
}, vt = ["innerHTML"], yt = ["innerHTML"], bt = {
|
|
566
566
|
key: 4,
|
|
567
567
|
class: "mwnf-essay__nav"
|
|
568
|
-
},
|
|
568
|
+
}, xt = {
|
|
569
569
|
key: 1,
|
|
570
570
|
class: "mwnf-essay__nav-spacer"
|
|
571
|
-
},
|
|
571
|
+
}, St = {
|
|
572
572
|
key: 0,
|
|
573
573
|
class: "mwnf-essay__side"
|
|
574
|
-
},
|
|
574
|
+
}, Ct = {
|
|
575
575
|
key: 0,
|
|
576
576
|
class: "mwnf-essay__panel"
|
|
577
|
-
},
|
|
577
|
+
}, wt = {
|
|
578
578
|
key: 0,
|
|
579
579
|
class: "mwnf-essay__variants"
|
|
580
|
-
},
|
|
580
|
+
}, Tt = ["aria-pressed", "onClick"], Et = ["src", "alt"], Dt = ["innerHTML"], Ot = {
|
|
581
581
|
key: 0,
|
|
582
582
|
class: "mwnf-essay__panel-label"
|
|
583
|
-
},
|
|
583
|
+
}, kt = ["innerHTML"], At = ["innerHTML"], jt = {
|
|
584
584
|
key: 0,
|
|
585
585
|
class: "mwnf-essay__thumbs"
|
|
586
|
-
},
|
|
586
|
+
}, Mt = ["onClick"], Nt = ["src"], Pt = {
|
|
587
587
|
key: 2,
|
|
588
588
|
class: "mwnf-essay__status"
|
|
589
|
-
},
|
|
589
|
+
}, Ft = {
|
|
590
590
|
__name: "EssayView",
|
|
591
591
|
props: {
|
|
592
592
|
spec: {
|
|
@@ -599,7 +599,7 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
599
599
|
}
|
|
600
600
|
},
|
|
601
601
|
setup(e) {
|
|
602
|
-
let n = e, { t: r } = xe(), i = _e(), a =
|
|
602
|
+
let n = e, { t: r } = xe(), i = _e(), a = te();
|
|
603
603
|
function o(e) {
|
|
604
604
|
return !!e && typeof e.walk == "function" && typeof e.children == "function";
|
|
605
605
|
}
|
|
@@ -616,50 +616,50 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
616
616
|
childType: d?.childType,
|
|
617
617
|
entity: f,
|
|
618
618
|
order: d?.order
|
|
619
|
-
}), h =
|
|
619
|
+
}), h = oe(f), g = y(() => h.value !== null), w = y(() => n.spec), O = y(() => m.byId.value.get(n.id) ?? null), k = y(() => m.parents(n.id).at(-1) ?? null), M = y(() => {
|
|
620
620
|
if (k.value) return m.children(k.value.id);
|
|
621
621
|
let e = m.root.value;
|
|
622
622
|
return e ? m.children(e.id) : m.walk().filter((e) => m.parents(e.id).length === 0);
|
|
623
|
-
}),
|
|
624
|
-
|
|
625
|
-
if (
|
|
626
|
-
|
|
623
|
+
}), I = y(() => M.value.findIndex((e) => e.id === n.id)), z = y(() => w.value.navigation || !1), B = y(() => z.value === "siblings" ? I.value > 0 ? M.value[I.value - 1] : null : z.value === "tree" ? m.previous(n.id) : null), V = y(() => z.value === "siblings" ? I.value !== -1 && I.value < M.value.length - 1 ? M.value[I.value + 1] : null : z.value === "tree" ? m.next(n.id) : null), { language: H, dir: W } = Ee(O, { entity: f }), re = y(() => O.value ? i.tr(f, O.value.id, H.value, "en") : {}), K = N(!1);
|
|
624
|
+
ne(() => [O.value?.id, H.value], async () => {
|
|
625
|
+
if (K.value = !1, !O.value) {
|
|
626
|
+
K.value = !0;
|
|
627
627
|
return;
|
|
628
628
|
}
|
|
629
|
-
let e =
|
|
630
|
-
await Promise.all([f, c].flatMap((t) => e.map((e) => i.loadTranslations(t, e)))),
|
|
629
|
+
let e = H.value === "en" ? ["en"] : [H.value, "en"];
|
|
630
|
+
await Promise.all([f, c].flatMap((t) => e.map((e) => i.loadTranslations(t, e)))), K.value = !0;
|
|
631
631
|
}, { immediate: !0 });
|
|
632
|
-
function
|
|
632
|
+
function ae(e) {
|
|
633
633
|
if (!e) return "";
|
|
634
|
-
let t = w.value.placeholder, n = (e) => !!e && !!t && t.test(e), r = i.tr(f, e.id,
|
|
634
|
+
let t = w.value.placeholder, n = (e) => !!e && !!t && t.test(e), r = i.tr(f, e.id, H.value, "en");
|
|
635
635
|
if (r.title && !n(r.title)) return r.title;
|
|
636
636
|
let a = i.tr(f, e.id, "en").title;
|
|
637
637
|
return a && !n(a) ? a : e.internal_name ?? e.id;
|
|
638
638
|
}
|
|
639
|
-
let
|
|
639
|
+
let q = y(() => ({
|
|
640
640
|
node: O.value,
|
|
641
|
-
text:
|
|
642
|
-
language:
|
|
641
|
+
text: re.value,
|
|
642
|
+
language: H.value,
|
|
643
643
|
tree: m,
|
|
644
644
|
select: Ie,
|
|
645
645
|
t: r,
|
|
646
|
-
tr: (e, t) => i.tr(e, t,
|
|
646
|
+
tr: (e, t) => i.tr(e, t, H.value, "en")
|
|
647
647
|
}));
|
|
648
|
-
function
|
|
648
|
+
function se(e, t) {
|
|
649
649
|
return t.split(".").reduce((e, t) => e?.[t], e);
|
|
650
650
|
}
|
|
651
|
-
function
|
|
652
|
-
return e === !1 || e == null ? "" : typeof e == "function" ? e(t) ?? "" :
|
|
651
|
+
function Y(e, t) {
|
|
652
|
+
return e === !1 || e == null ? "" : typeof e == "function" ? e(t) ?? "" : se(t.text, e) ?? "";
|
|
653
653
|
}
|
|
654
|
-
let
|
|
654
|
+
let X = y(() => Y(w.value.quote ?? "quote", q.value)), Z = y(() => Y(w.value.body ?? "description", q.value)), Q = y(() => {
|
|
655
655
|
if (!w.value.glossary || !O.value) return [];
|
|
656
|
-
let e = [
|
|
657
|
-
return
|
|
658
|
-
}), le = y(() =>
|
|
656
|
+
let e = [X.value, Z.value].filter(Boolean);
|
|
657
|
+
return ce(e.join("\n\n"), H.value);
|
|
658
|
+
}), le = y(() => J(Q.value)), { active: ue, onClick: pe, close: me } = be(Q), he = y(() => ue.value ? de(ue.value.definition, { breaks: !0 }) : ""), ve = y(() => O.value ? w.value.heading ? w.value.heading(q.value) : $(String(ae(O.value)), { glossary: le.value }) : ""), ye = y(() => X.value ? $(String(X.value), { glossary: le.value }) : ""), Se = y(() => Z.value ? de(String(Z.value), {
|
|
659
659
|
breaks: !0,
|
|
660
660
|
glossary: le.value
|
|
661
661
|
}) : ""), Ce = y(() => O.value ? w.value.about?.(O.value) ?? !1 : !1), we = y(() => !!Ce.value);
|
|
662
|
-
function
|
|
662
|
+
function Te(e) {
|
|
663
663
|
let t = Ce.value;
|
|
664
664
|
return t && typeof t == "object" ? !!t[e] : !!w.value.aboutKeeps?.includes(e);
|
|
665
665
|
}
|
|
@@ -686,17 +686,17 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
686
686
|
let ke = y(() => {
|
|
687
687
|
let e = w.value.numbering;
|
|
688
688
|
if (!e || !O.value) return "";
|
|
689
|
-
let t = (
|
|
689
|
+
let t = (M.value.length ? M.value : [O.value]).findIndex((e) => e.id === n.id), r = t >= 0 ? t + 1 : 1;
|
|
690
690
|
return e === "roman" ? Oe(r) : String(r);
|
|
691
691
|
});
|
|
692
692
|
function Ae(e) {
|
|
693
693
|
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) : [] : [];
|
|
694
694
|
}
|
|
695
|
-
let je =
|
|
695
|
+
let je = ie(c), Me = y(() => {
|
|
696
696
|
let e = w.value.items?.of ?? Ae;
|
|
697
|
-
return O.value ? e(O.value,
|
|
698
|
-
}), Ne = y(() => Me.value.map((e) => je.value.get(e)).filter(Boolean)), Pe =
|
|
699
|
-
|
|
697
|
+
return O.value ? e(O.value, q.value) : [];
|
|
698
|
+
}), Ne = y(() => Me.value.map((e) => je.value.get(e)).filter(Boolean)), Pe = N(null);
|
|
699
|
+
ne(Ne, (e) => {
|
|
700
700
|
e.some((e) => e.id === Pe.value) || (Pe.value = e[0]?.id ?? null);
|
|
701
701
|
}, { immediate: !0 });
|
|
702
702
|
let Fe = y(() => Ne.value.find((e) => e.id === Pe.value) ?? Ne.value[0] ?? null);
|
|
@@ -705,21 +705,21 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
705
705
|
}
|
|
706
706
|
function Le(e) {
|
|
707
707
|
let t = w.value.items?.route;
|
|
708
|
-
return !t || !e ? null : typeof t == "function" ? t(e,
|
|
708
|
+
return !t || !e ? null : typeof t == "function" ? t(e, q.value) : {
|
|
709
709
|
name: t,
|
|
710
710
|
params: { id: e.id }
|
|
711
711
|
};
|
|
712
712
|
}
|
|
713
713
|
function Re(e) {
|
|
714
714
|
let t = w.value.route;
|
|
715
|
-
return !t || !e ? null : typeof t == "function" ? t(e,
|
|
715
|
+
return !t || !e ? null : typeof t == "function" ? t(e, q.value) : {
|
|
716
716
|
name: t,
|
|
717
717
|
params: { id: e.id }
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
720
|
function ze(e) {
|
|
721
721
|
if (!e) return null;
|
|
722
|
-
let t = i.tr(c, e.id,
|
|
722
|
+
let t = i.tr(c, e.id, H.value, "en").name ?? e.internal_name ?? e.id;
|
|
723
723
|
return {
|
|
724
724
|
name: $(String(t)),
|
|
725
725
|
image: e.images?.[0]?.url ?? "",
|
|
@@ -729,7 +729,7 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
729
729
|
let Be = y(() => {
|
|
730
730
|
let e = Fe.value;
|
|
731
731
|
if (!e) return null;
|
|
732
|
-
let t = ze(e), n = w.value.items?.caption?.(e, O.value,
|
|
732
|
+
let t = ze(e), n = w.value.items?.caption?.(e, O.value, q.value);
|
|
733
733
|
return {
|
|
734
734
|
...t,
|
|
735
735
|
...n
|
|
@@ -746,13 +746,13 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
746
746
|
justification: "",
|
|
747
747
|
fields: null
|
|
748
748
|
}
|
|
749
|
-
}] : [], r = w.value.panel?.variants?.(e,
|
|
749
|
+
}] : [], r = w.value.panel?.variants?.(e, q.value) ?? [];
|
|
750
750
|
return [...n, ...r.map((e, t) => ({
|
|
751
751
|
id: e.id ?? `variant-${t}`,
|
|
752
752
|
...e
|
|
753
753
|
}))];
|
|
754
|
-
}), Ue =
|
|
755
|
-
|
|
754
|
+
}), Ue = N(null);
|
|
755
|
+
ne(He, (e) => {
|
|
756
756
|
e.some((e) => e.id === Ue.value) || (Ue.value = e[0]?.id ?? null);
|
|
757
757
|
}, { immediate: !0 });
|
|
758
758
|
let We = y(() => He.value.find((e) => e.id === Ue.value) ?? He.value[0] ?? null);
|
|
@@ -767,7 +767,7 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
767
767
|
}] : [];
|
|
768
768
|
}), qe = y(() => {
|
|
769
769
|
let e = Fe.value;
|
|
770
|
-
return !e || !w.value.panel?.fields ? [] : w.value.panel.fields(e, O.value,
|
|
770
|
+
return !e || !w.value.panel?.fields ? [] : w.value.panel.fields(e, O.value, q.value) ?? [];
|
|
771
771
|
}), Je = y(() => {
|
|
772
772
|
let e = We.value?.caption?.fields;
|
|
773
773
|
return e == null ? qe.value : e.map((e) => ({
|
|
@@ -778,7 +778,7 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
778
778
|
let e = We.value?.caption?.justification;
|
|
779
779
|
return e ? $(String(e)) : "";
|
|
780
780
|
}), Xe = y(() => Ne.value.map((e) => {
|
|
781
|
-
let t = ze(e), n = w.value.items?.meta?.(e,
|
|
781
|
+
let t = ze(e), n = w.value.items?.meta?.(e, q.value) ?? [], r = w.value.items?.badge?.(e, q.value) ?? "";
|
|
782
782
|
return {
|
|
783
783
|
id: e.id,
|
|
784
784
|
image: t.image,
|
|
@@ -790,161 +790,161 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
790
790
|
};
|
|
791
791
|
})), Ze = y(() => w.value.breadcrumb && O.value ? m.parents(n.id) : []), Qe = y(() => {
|
|
792
792
|
let e = w.value.tabs;
|
|
793
|
-
return e ? e === "children" ? O.value ? m.children(O.value.id) : [] :
|
|
793
|
+
return e ? e === "children" ? O.value ? m.children(O.value.id) : [] : M.value : [];
|
|
794
794
|
}), $e = y(() => w.value.previous ?? "exhibition.theme.previous"), et = y(() => w.value.next ?? "exhibition.theme.next"), tt = y(() => w.value.backTo ?? "record.action.backToResults"), nt = y(() => w.value.inThisTheme ?? "exhibition.theme.inThisTheme"), rt = y(() => w.value.seeAll ?? "exhibition.theme.seeAllInTheme"), it = y(() => ({
|
|
795
|
-
...
|
|
795
|
+
...q.value,
|
|
796
796
|
items: Ne.value,
|
|
797
797
|
selected: Fe.value,
|
|
798
798
|
selectedVariant: We.value,
|
|
799
799
|
selectVariant: Ge,
|
|
800
800
|
breadcrumb: Ze.value,
|
|
801
|
-
previous:
|
|
802
|
-
next:
|
|
803
|
-
})), at = y(() => we.value && !
|
|
804
|
-
return (n, i) => g.value && !O.value ? (
|
|
801
|
+
previous: B.value,
|
|
802
|
+
next: V.value
|
|
803
|
+
})), at = y(() => we.value && !Te("panel") ? !1 : Ve.value || Ne.value.length > 0 || !!a.aside), ot = y(() => (!we.value || Te("navigation")) && !!z.value && !!(B.value || V.value));
|
|
804
|
+
return (n, i) => g.value && !O.value ? (j(), b(R(G), { key: 0 })) : O.value ? (j(), S("article", {
|
|
805
805
|
key: 1,
|
|
806
|
-
class:
|
|
807
|
-
dir:
|
|
808
|
-
onClick: i[0] ||= (...e) =>
|
|
806
|
+
class: ee(["mwnf-essay", { "mwnf-essay--about": we.value }]),
|
|
807
|
+
dir: R(W) || void 0,
|
|
808
|
+
onClick: i[0] ||= (...e) => R(pe) && R(pe)(...e)
|
|
809
809
|
}, [
|
|
810
|
-
|
|
811
|
-
Ze.value.length ? (
|
|
810
|
+
F(n.$slots, "header", A(D(it.value)), () => [
|
|
811
|
+
Ze.value.length ? (j(), S("p", ct, [C("span", lt, L(R(r)(tt.value)), 1), (j(!0), S(v, null, P(Ze.value, (e) => (j(), S(v, { key: e.id }, [Re(e) ? (j(), b(_, {
|
|
812
812
|
key: 0,
|
|
813
813
|
to: Re(e),
|
|
814
814
|
class: "mwnf-essay__breadcrumb-link"
|
|
815
815
|
}, {
|
|
816
|
-
default:
|
|
816
|
+
default: U(() => [T(L(ae(e)), 1)]),
|
|
817
817
|
_: 2
|
|
818
|
-
}, 1032, ["to"])) : (
|
|
819
|
-
Qe.value.length > 1 ? (
|
|
818
|
+
}, 1032, ["to"])) : (j(), S("span", ut, L(ae(e)), 1))], 64))), 128))])) : x("", !0),
|
|
819
|
+
Qe.value.length > 1 ? (j(), S("div", {
|
|
820
820
|
key: 1,
|
|
821
821
|
class: "mwnf-essay__tabs",
|
|
822
822
|
role: "tablist",
|
|
823
|
-
"aria-label":
|
|
824
|
-
}, [(
|
|
823
|
+
"aria-label": R(r)(nt.value)
|
|
824
|
+
}, [(j(!0), S(v, null, P(Qe.value, (t) => (j(), b(_, {
|
|
825
825
|
key: t.id,
|
|
826
826
|
to: Re(t),
|
|
827
|
-
class:
|
|
827
|
+
class: ee(["mwnf-essay__tab", { "mwnf-essay__tab--active": t.id === e.id }])
|
|
828
828
|
}, {
|
|
829
|
-
default:
|
|
829
|
+
default: U(() => [T(L(ae(t)), 1)]),
|
|
830
830
|
_: 2
|
|
831
|
-
}, 1032, ["to", "class"]))), 128))], 8,
|
|
832
|
-
C("h1",
|
|
831
|
+
}, 1032, ["to", "class"]))), 128))], 8, dt)) : x("", !0),
|
|
832
|
+
C("h1", ft, [ke.value ? (j(), S("span", pt, L(ke.value), 1)) : x("", !0), C("span", { innerHTML: ve.value }, null, 8, mt)])
|
|
833
833
|
]),
|
|
834
|
-
C("div",
|
|
835
|
-
|
|
836
|
-
ye.value ? (
|
|
834
|
+
C("div", ht, [C("div", gt, [
|
|
835
|
+
K.value ? x("", !0) : (j(), S("p", _t, L(R(r)("core.status.loading")), 1)),
|
|
836
|
+
ye.value ? (j(), S("p", {
|
|
837
837
|
key: 1,
|
|
838
838
|
class: "mwnf-essay__quote",
|
|
839
839
|
innerHTML: ye.value
|
|
840
|
-
}, null, 8,
|
|
841
|
-
|
|
842
|
-
Se.value ? (
|
|
840
|
+
}, null, 8, vt)) : x("", !0),
|
|
841
|
+
F(n.$slots, "before-body", A(D(it.value))),
|
|
842
|
+
Se.value ? (j(), S("div", {
|
|
843
843
|
key: 2,
|
|
844
844
|
class: "mwnf-essay__prose mwnf-sheet__block",
|
|
845
845
|
innerHTML: Se.value
|
|
846
|
-
}, null, 8,
|
|
847
|
-
|
|
848
|
-
we.value ? x("", !0) :
|
|
849
|
-
|
|
846
|
+
}, null, 8, yt)) : x("", !0),
|
|
847
|
+
F(n.$slots, "after-body", A(D(it.value))),
|
|
848
|
+
we.value ? x("", !0) : F(n.$slots, "justifications", A(D(it.value)), void 0, void 0, 3),
|
|
849
|
+
ot.value ? (j(), S("div", bt, [F(n.$slots, "navigation", A(D(it.value)), () => [B.value ? (j(), b(_, {
|
|
850
850
|
key: 0,
|
|
851
|
-
to: Re(
|
|
851
|
+
to: Re(B.value),
|
|
852
852
|
class: "mwnf-essay__nav-link mwnf-essay__nav-link--previous"
|
|
853
853
|
}, {
|
|
854
|
-
default:
|
|
854
|
+
default: U(() => [T("← " + L(R(r)($e.value)), 1)]),
|
|
855
855
|
_: 1
|
|
856
|
-
}, 8, ["to"])) : (
|
|
856
|
+
}, 8, ["to"])) : (j(), S("span", xt)), V.value ? (j(), b(_, {
|
|
857
857
|
key: 2,
|
|
858
|
-
to: Re(
|
|
858
|
+
to: Re(V.value),
|
|
859
859
|
class: "mwnf-essay__nav-link mwnf-essay__nav-link--next"
|
|
860
860
|
}, {
|
|
861
|
-
default:
|
|
861
|
+
default: U(() => [T(L(R(r)(et.value)) + " →", 1)]),
|
|
862
862
|
_: 1
|
|
863
863
|
}, 8, ["to"])) : x("", !0)])])) : x("", !0)
|
|
864
|
-
]), at.value ? (
|
|
865
|
-
|
|
864
|
+
]), at.value ? (j(), S("div", St, [
|
|
865
|
+
F(n.$slots, "panel", A(D(it.value)), () => [Ve.value && Be.value ? (j(), S("div", Ct, [
|
|
866
866
|
E(p, { images: Ke.value }, null, 8, ["images"]),
|
|
867
|
-
He.value.length > 1 ? (
|
|
867
|
+
He.value.length > 1 ? (j(), S("ul", wt, [(j(!0), S(v, null, P(He.value, (e) => (j(), S("li", { key: e.id }, [C("button", {
|
|
868
868
|
type: "button",
|
|
869
|
-
class:
|
|
869
|
+
class: ee(["mwnf-essay__variant", { "mwnf-essay__variant--active": e.id === We.value?.id }]),
|
|
870
870
|
"aria-pressed": e.id === We.value?.id ? "true" : "false",
|
|
871
871
|
onClick: (t) => Ge(e.id)
|
|
872
|
-
}, [e.image ? (
|
|
872
|
+
}, [e.image ? (j(), S("img", {
|
|
873
873
|
key: 0,
|
|
874
874
|
src: e.image,
|
|
875
875
|
alt: e.alt ?? "",
|
|
876
876
|
loading: "lazy"
|
|
877
|
-
}, null, 8,
|
|
877
|
+
}, null, 8, Et)) : x("", !0)], 10, Tt)]))), 128))])) : x("", !0),
|
|
878
878
|
C("h3", {
|
|
879
879
|
class: "mwnf-essay__panel-name",
|
|
880
880
|
innerHTML: We.value?.caption?.title || Be.value.name
|
|
881
|
-
}, null, 8,
|
|
882
|
-
(
|
|
881
|
+
}, null, 8, Dt),
|
|
882
|
+
(j(!0), S(v, null, P(Je.value, (e, t) => (j(), S("p", {
|
|
883
883
|
key: t,
|
|
884
884
|
class: "mwnf-essay__panel-field"
|
|
885
|
-
}, [e.label ? (
|
|
886
|
-
Ye.value ? (
|
|
885
|
+
}, [e.label ? (j(), S("span", Ot, L(e.label), 1)) : x("", !0), C("span", { innerHTML: e.value }, null, 8, kt)]))), 128)),
|
|
886
|
+
Ye.value ? (j(), S("p", {
|
|
887
887
|
key: 1,
|
|
888
888
|
class: "mwnf-essay__panel-justification mwnf-sheet__block",
|
|
889
889
|
innerHTML: Ye.value
|
|
890
|
-
}, null, 8,
|
|
891
|
-
Le(Fe.value) ? (
|
|
890
|
+
}, null, 8, At)) : x("", !0),
|
|
891
|
+
Le(Fe.value) ? (j(), b(_, {
|
|
892
892
|
key: 2,
|
|
893
893
|
to: Le(Fe.value),
|
|
894
894
|
class: "mwnf-essay__panel-link"
|
|
895
895
|
}, {
|
|
896
|
-
default:
|
|
896
|
+
default: U(() => [T(L(R(r)(rt.value)) + " →", 1)]),
|
|
897
897
|
_: 1
|
|
898
898
|
}, 8, ["to"])) : x("", !0)
|
|
899
899
|
])) : x("", !0)]),
|
|
900
|
-
|
|
900
|
+
F(n.$slots, "thumbnails", A(D(it.value)), () => [Ve.value && Ne.value.length > 1 ? (j(), S("ul", jt, [(j(!0), S(v, null, P(Ne.value, (e) => (j(), S("li", { key: e.id }, [C("button", {
|
|
901
901
|
type: "button",
|
|
902
|
-
class:
|
|
902
|
+
class: ee(["mwnf-essay__thumb", { "mwnf-essay__thumb--active": e.id === Fe.value?.id }]),
|
|
903
903
|
onClick: (t) => Ie(e.id)
|
|
904
|
-
}, [e.images?.[0]?.url ? (
|
|
904
|
+
}, [e.images?.[0]?.url ? (j(), S("img", {
|
|
905
905
|
key: 0,
|
|
906
906
|
src: e.images[0].url,
|
|
907
907
|
alt: "",
|
|
908
908
|
loading: "lazy"
|
|
909
|
-
}, null, 8,
|
|
909
|
+
}, null, 8, Nt)) : x("", !0)], 10, Mt)]))), 128))])) : !Ve.value && Xe.value.length ? (j(), b(l, {
|
|
910
910
|
key: 1,
|
|
911
911
|
records: Xe.value
|
|
912
912
|
}, null, 8, ["records"])) : x("", !0)]),
|
|
913
|
-
|
|
913
|
+
F(n.$slots, "aside", A(D(it.value)))
|
|
914
914
|
])) : x("", !0)]),
|
|
915
|
-
|
|
915
|
+
F(n.$slots, "after", A(D(it.value)), () => [E(t)]),
|
|
916
916
|
E(u, {
|
|
917
|
-
term:
|
|
917
|
+
term: R(ue),
|
|
918
918
|
html: he.value,
|
|
919
|
-
dir:
|
|
920
|
-
onClose:
|
|
919
|
+
dir: R(W),
|
|
920
|
+
onClose: R(me)
|
|
921
921
|
}, null, 8, [
|
|
922
922
|
"term",
|
|
923
923
|
"html",
|
|
924
924
|
"dir",
|
|
925
925
|
"onClose"
|
|
926
926
|
])
|
|
927
|
-
], 10,
|
|
927
|
+
], 10, st)) : (j(), S("p", Pt, L(R(r)("core.status.loading")), 1));
|
|
928
928
|
}
|
|
929
|
-
},
|
|
929
|
+
}, It = { class: "mwnf-link-list" }, Lt = {
|
|
930
930
|
key: 0,
|
|
931
931
|
class: "mwnf-link-list__back"
|
|
932
|
-
},
|
|
932
|
+
}, Rt = {
|
|
933
933
|
key: 1,
|
|
934
934
|
class: "mwnf-link-list__title"
|
|
935
|
-
},
|
|
935
|
+
}, zt = {
|
|
936
936
|
key: 2,
|
|
937
937
|
class: "mwnf-link-list__groups"
|
|
938
|
-
},
|
|
938
|
+
}, Bt = {
|
|
939
939
|
key: 0,
|
|
940
940
|
class: "mwnf-link-list__heading"
|
|
941
|
-
},
|
|
941
|
+
}, Vt = {
|
|
942
942
|
key: 1,
|
|
943
943
|
class: "mwnf-link-list__links"
|
|
944
|
-
},
|
|
944
|
+
}, Ht = ["innerHTML"], Ut = ["innerHTML"], Wt = {
|
|
945
945
|
key: 3,
|
|
946
946
|
class: "mwnf-link-list__empty"
|
|
947
|
-
},
|
|
947
|
+
}, Gt = {
|
|
948
948
|
__name: "LinkListView",
|
|
949
949
|
props: { spec: {
|
|
950
950
|
type: Object,
|
|
@@ -952,20 +952,20 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
952
952
|
} },
|
|
953
953
|
setup(e) {
|
|
954
954
|
let t = e, { t: n } = xe(), r = y(() => ((typeof t.spec.groups == "function" ? t.spec.groups({}) : t.spec.groups ?? []) ?? []).filter((e) => e.links?.length > 0)), i = y(() => t.spec.title ? n(t.spec.title) : ""), a = y(() => t.spec.back?.label ? n(t.spec.back.label) : ""), o = y(() => n(t.spec.empty ?? "catalogue.results.noResults"));
|
|
955
|
-
return (e, s) => (
|
|
956
|
-
t.spec.back && a.value ? (
|
|
955
|
+
return (e, s) => (j(), S("div", It, [
|
|
956
|
+
t.spec.back && a.value ? (j(), S("div", Lt, [E(_, {
|
|
957
957
|
to: t.spec.back.to,
|
|
958
958
|
href: t.spec.back.href
|
|
959
959
|
}, {
|
|
960
|
-
default:
|
|
960
|
+
default: U(() => [T(" ← " + L(a.value), 1)]),
|
|
961
961
|
_: 1
|
|
962
962
|
}, 8, ["to", "href"])])) : x("", !0),
|
|
963
|
-
i.value ? (
|
|
964
|
-
|
|
965
|
-
r.value.length ? (
|
|
963
|
+
i.value ? (j(), S("h1", Rt, L(i.value), 1)) : x("", !0),
|
|
964
|
+
F(e.$slots, "before"),
|
|
965
|
+
r.value.length ? (j(), S("div", zt, [(j(!0), S(v, null, P(r.value, (t, r) => (j(), S("section", {
|
|
966
966
|
key: r,
|
|
967
967
|
class: "mwnf-link-list__group"
|
|
968
|
-
}, [
|
|
968
|
+
}, [F(e.$slots, "group", { group: t }, () => [t.heading ? (j(), S("h2", Bt, L(R(n)(t.heading)), 1)) : x("", !0), t.links?.length ? (j(), S("ul", Vt, [(j(!0), S(v, null, P(t.links, (e, t) => (j(), S("li", {
|
|
969
969
|
key: t,
|
|
970
970
|
class: "mwnf-link-list__item"
|
|
971
971
|
}, [E(_, {
|
|
@@ -973,57 +973,57 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
973
973
|
to: e.to,
|
|
974
974
|
href: e.href
|
|
975
975
|
}, {
|
|
976
|
-
default:
|
|
976
|
+
default: U(() => [C("span", { innerHTML: R(Q)(e.label) }, null, 8, Ht)]),
|
|
977
977
|
_: 2
|
|
978
|
-
}, 1032, ["to", "href"]), e.note ? (
|
|
978
|
+
}, 1032, ["to", "href"]), e.note ? (j(), S("div", {
|
|
979
979
|
key: 0,
|
|
980
980
|
class: "mwnf-link-list__note",
|
|
981
|
-
innerHTML:
|
|
982
|
-
}, null, 8,
|
|
983
|
-
|
|
981
|
+
innerHTML: R(Q)(e.note)
|
|
982
|
+
}, null, 8, Ut)) : x("", !0)]))), 128))])) : x("", !0)])]))), 128))])) : (j(), S("div", Wt, L(o.value), 1)),
|
|
983
|
+
F(e.$slots, "after")
|
|
984
984
|
]));
|
|
985
985
|
}
|
|
986
|
-
},
|
|
986
|
+
}, Kt = { class: "mwnf-partner-list" }, qt = {
|
|
987
987
|
key: 0,
|
|
988
988
|
class: "mwnf-partner-list__title"
|
|
989
|
-
},
|
|
989
|
+
}, Jt = {
|
|
990
990
|
key: 1,
|
|
991
991
|
class: "mwnf-partner-list__count"
|
|
992
|
-
},
|
|
992
|
+
}, Yt = {
|
|
993
993
|
key: 2,
|
|
994
994
|
class: "mwnf-partner-list__toggle"
|
|
995
|
-
},
|
|
995
|
+
}, Xt = {
|
|
996
996
|
key: 3,
|
|
997
997
|
class: "mwnf-partner-list__groups"
|
|
998
|
-
},
|
|
998
|
+
}, Zt = {
|
|
999
999
|
key: 0,
|
|
1000
1000
|
class: "mwnf-partner-list__group-title"
|
|
1001
|
-
},
|
|
1001
|
+
}, Qt = { class: "mwnf-partner-list__tier" }, $t = { class: "mwnf-partner-list__row" }, en = ["src", "alt"], tn = ["innerHTML"], nn = { key: 0 }, rn = {
|
|
1002
1002
|
key: 1,
|
|
1003
1003
|
class: "mwnf-partner-list__meta"
|
|
1004
|
-
},
|
|
1004
|
+
}, an = {
|
|
1005
1005
|
key: 0,
|
|
1006
1006
|
class: "mwnf-partner-list__children"
|
|
1007
|
-
},
|
|
1007
|
+
}, on = ["src", "alt"], sn = ["innerHTML"], cn = { key: 0 }, ln = {
|
|
1008
1008
|
key: 1,
|
|
1009
1009
|
class: "mwnf-partner-list__meta"
|
|
1010
|
-
},
|
|
1010
|
+
}, un = {
|
|
1011
1011
|
key: 0,
|
|
1012
1012
|
class: "mwnf-partner-list__tier mwnf-partner-list__tier--associated"
|
|
1013
|
-
},
|
|
1013
|
+
}, dn = { class: "mwnf-partner-list__tier-label" }, fn = ["src", "alt"], pn = ["innerHTML"], mn = { key: 0 }, hn = {
|
|
1014
1014
|
key: 1,
|
|
1015
1015
|
class: "mwnf-partner-list__meta"
|
|
1016
|
-
},
|
|
1016
|
+
}, gn = {
|
|
1017
1017
|
key: 4,
|
|
1018
1018
|
class: "mwnf-partner-list__empty"
|
|
1019
|
-
},
|
|
1019
|
+
}, _n = {
|
|
1020
1020
|
__name: "PartnerListView",
|
|
1021
1021
|
props: { spec: {
|
|
1022
1022
|
type: Object,
|
|
1023
1023
|
required: !0
|
|
1024
1024
|
} },
|
|
1025
1025
|
setup(e) {
|
|
1026
|
-
let t = e, { t: n, locale: r } = xe(), i = _e(), a = y(() => t.spec), o = y(() => a.value.entity ?? "partners"), s =
|
|
1026
|
+
let t = e, { t: n, locale: r } = xe(), i = _e(), a = y(() => t.spec), o = y(() => a.value.entity ?? "partners"), s = oe(o.value);
|
|
1027
1027
|
o.value && i.loadTranslations(o.value, "en");
|
|
1028
1028
|
let c = {
|
|
1029
1029
|
t: n,
|
|
@@ -1069,7 +1069,7 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1069
1069
|
let e = a.value, t = e.group?.tier ?? !1, n = (e.group?.order ?? "country") === "name", r = n ? p.value.map((e) => ({
|
|
1070
1070
|
...e,
|
|
1071
1071
|
country_id: "\0"
|
|
1072
|
-
})) : p.value, i =
|
|
1072
|
+
})) : p.value, i = Y(r, {
|
|
1073
1073
|
label: n ? () => "" : (t) => e.label ? e.label(t, c) : t,
|
|
1074
1074
|
tier: t,
|
|
1075
1075
|
order: d.value
|
|
@@ -1103,115 +1103,115 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1103
1103
|
associated: i
|
|
1104
1104
|
};
|
|
1105
1105
|
});
|
|
1106
|
-
}),
|
|
1106
|
+
}), ee = y(() => O.value.some((e) => e.main.length > 0 || e.associated.length > 0)), M = y(() => n(a.value.associatedLabel ?? "partner.list.associated")), N = y(() => n(a.value.objectsLabel ?? "partner.item.objectsInSite")), R = y(() => n(a.value.foundLabel ?? "partner.list.partnersFound")), te = y(() => n(a.value.sortAscendingLabel ?? "partner.list.sortAscending")), z = y(() => n(a.value.sortDescendingLabel ?? "partner.list.sortDescending")), B = y(() => n(a.value.empty ?? "catalogue.results.noResults")), V = y(() => a.value.title ? n(a.value.title) : ""), H = y(() => O.value.reduce((e, t) => e + t.main.length + t.associated.length, 0)), ne = y(() => a.value.variant ?? "accordion"), W = y(() => ({
|
|
1107
1107
|
t: n,
|
|
1108
1108
|
locale: r,
|
|
1109
1109
|
groups: O.value,
|
|
1110
1110
|
orderDir: d.value,
|
|
1111
1111
|
toggleOrder: f
|
|
1112
1112
|
}));
|
|
1113
|
-
return (e, t) => (
|
|
1114
|
-
|
|
1115
|
-
a.value.count ? (
|
|
1116
|
-
|
|
1117
|
-
a.value.orderToggle ? (
|
|
1113
|
+
return (e, t) => (j(), S("section", Kt, [
|
|
1114
|
+
V.value ? (j(), S("h1", qt, L(V.value), 1)) : x("", !0),
|
|
1115
|
+
a.value.count ? (j(), S("div", Jt, L(R.value) + ": " + L(H.value), 1)) : x("", !0),
|
|
1116
|
+
F(e.$slots, "before", A(D(W.value))),
|
|
1117
|
+
a.value.orderToggle ? (j(), S("div", Yt, [C("button", {
|
|
1118
1118
|
type: "button",
|
|
1119
1119
|
class: "mwnf-partner-list__toggle-button",
|
|
1120
1120
|
onClick: f
|
|
1121
|
-
},
|
|
1122
|
-
|
|
1121
|
+
}, L(d.value === "asc" ? z.value : te.value), 1)])) : x("", !0),
|
|
1122
|
+
ee.value ? (j(), S("div", Xt, [(j(!0), S(v, null, P(O.value, (t) => (j(), b(I(ne.value === "accordion" ? "details" : "section"), k({
|
|
1123
1123
|
key: t.country ?? "",
|
|
1124
1124
|
class: "mwnf-partner-list__group"
|
|
1125
|
-
}, { ref_for: !0 },
|
|
1126
|
-
default:
|
|
1127
|
-
(
|
|
1128
|
-
default:
|
|
1125
|
+
}, { ref_for: !0 }, ne.value === "accordion" ? { open: !0 } : {}), {
|
|
1126
|
+
default: U(() => [
|
|
1127
|
+
(j(), b(I(ne.value === "accordion" ? "summary" : "div"), { class: "mwnf-partner-list__group-heading" }, {
|
|
1128
|
+
default: U(() => [F(e.$slots, "group-heading", k({ group: t }, { ref_for: !0 }, W.value), () => [t.label ? (j(), S("h2", Zt, L(t.label), 1)) : x("", !0)])]),
|
|
1129
1129
|
_: 2
|
|
1130
1130
|
}, 1024)),
|
|
1131
|
-
C("div",
|
|
1131
|
+
C("div", Qt, [(j(!0), S(v, null, P(t.main, (n) => (j(), S("div", {
|
|
1132
1132
|
key: n.partner.id,
|
|
1133
1133
|
class: "mwnf-partner-list__row-block"
|
|
1134
|
-
}, [C("div",
|
|
1134
|
+
}, [C("div", $t, [F(e.$slots, "row", k({
|
|
1135
1135
|
group: t,
|
|
1136
1136
|
partner: n.partner,
|
|
1137
1137
|
row: n.row
|
|
1138
|
-
}, { ref_for: !0 },
|
|
1139
|
-
n.row.logo ? (
|
|
1138
|
+
}, { ref_for: !0 }, W.value), () => [
|
|
1139
|
+
n.row.logo ? (j(), S("img", {
|
|
1140
1140
|
key: 0,
|
|
1141
1141
|
class: "mwnf-partner-list__logo",
|
|
1142
1142
|
src: n.row.logo,
|
|
1143
1143
|
alt: T(n.row.name),
|
|
1144
1144
|
loading: "lazy"
|
|
1145
|
-
}, null, 8,
|
|
1146
|
-
(
|
|
1145
|
+
}, null, 8, en)) : x("", !0),
|
|
1146
|
+
(j(), b(I(n.row.route ? _ : "span"), {
|
|
1147
1147
|
class: "mwnf-partner-list__name",
|
|
1148
1148
|
to: n.row.route
|
|
1149
1149
|
}, {
|
|
1150
|
-
default:
|
|
1150
|
+
default: U(() => [C("span", { innerHTML: n.row.name }, null, 8, tn), n.row.city ? (j(), S("span", nn, ", " + L(n.row.city), 1)) : x("", !0)]),
|
|
1151
1151
|
_: 2
|
|
1152
1152
|
}, 1032, ["to"])),
|
|
1153
|
-
n.row.count ? (
|
|
1154
|
-
])]), n.children?.length ? (
|
|
1153
|
+
n.row.count ? (j(), S("span", rn, L(n.row.count) + " " + L(N.value), 1)) : x("", !0)
|
|
1154
|
+
])]), n.children?.length ? (j(), S("div", an, [(j(!0), S(v, null, P(n.children, (n) => (j(), S("div", {
|
|
1155
1155
|
key: n.partner.id,
|
|
1156
1156
|
class: "mwnf-partner-list__row mwnf-partner-list__row--child"
|
|
1157
|
-
}, [
|
|
1157
|
+
}, [F(e.$slots, "row", k({
|
|
1158
1158
|
group: t,
|
|
1159
1159
|
partner: n.partner,
|
|
1160
1160
|
row: n.row
|
|
1161
|
-
}, { ref_for: !0 },
|
|
1162
|
-
n.row.logo ? (
|
|
1161
|
+
}, { ref_for: !0 }, W.value), () => [
|
|
1162
|
+
n.row.logo ? (j(), S("img", {
|
|
1163
1163
|
key: 0,
|
|
1164
1164
|
class: "mwnf-partner-list__logo",
|
|
1165
1165
|
src: n.row.logo,
|
|
1166
1166
|
alt: T(n.row.name),
|
|
1167
1167
|
loading: "lazy"
|
|
1168
|
-
}, null, 8,
|
|
1169
|
-
(
|
|
1168
|
+
}, null, 8, on)) : x("", !0),
|
|
1169
|
+
(j(), b(I(n.row.route ? _ : "span"), {
|
|
1170
1170
|
class: "mwnf-partner-list__name",
|
|
1171
1171
|
to: n.row.route
|
|
1172
1172
|
}, {
|
|
1173
|
-
default:
|
|
1173
|
+
default: U(() => [C("span", { innerHTML: n.row.name }, null, 8, sn), n.row.city ? (j(), S("span", cn, ", " + L(n.row.city), 1)) : x("", !0)]),
|
|
1174
1174
|
_: 2
|
|
1175
1175
|
}, 1032, ["to"])),
|
|
1176
|
-
n.row.count ? (
|
|
1176
|
+
n.row.count ? (j(), S("span", ln, L(n.row.count) + " " + L(N.value), 1)) : x("", !0)
|
|
1177
1177
|
])]))), 128))])) : x("", !0)]))), 128))]),
|
|
1178
|
-
t.associated.length ? (
|
|
1178
|
+
t.associated.length ? (j(), S("div", un, [C("p", dn, L(M.value), 1), (j(!0), S(v, null, P(t.associated, (n) => (j(), S("div", {
|
|
1179
1179
|
key: n.partner.id,
|
|
1180
1180
|
class: "mwnf-partner-list__row"
|
|
1181
|
-
}, [
|
|
1181
|
+
}, [F(e.$slots, "row", k({
|
|
1182
1182
|
group: t,
|
|
1183
1183
|
partner: n.partner,
|
|
1184
1184
|
row: n.row
|
|
1185
|
-
}, { ref_for: !0 },
|
|
1186
|
-
n.row.logo ? (
|
|
1185
|
+
}, { ref_for: !0 }, W.value), () => [
|
|
1186
|
+
n.row.logo ? (j(), S("img", {
|
|
1187
1187
|
key: 0,
|
|
1188
1188
|
class: "mwnf-partner-list__logo",
|
|
1189
1189
|
src: n.row.logo,
|
|
1190
1190
|
alt: T(n.row.name),
|
|
1191
1191
|
loading: "lazy"
|
|
1192
|
-
}, null, 8,
|
|
1193
|
-
(
|
|
1192
|
+
}, null, 8, fn)) : x("", !0),
|
|
1193
|
+
(j(), b(I(n.row.route ? _ : "span"), {
|
|
1194
1194
|
class: "mwnf-partner-list__name",
|
|
1195
1195
|
to: n.row.route
|
|
1196
1196
|
}, {
|
|
1197
|
-
default:
|
|
1197
|
+
default: U(() => [C("span", { innerHTML: n.row.name }, null, 8, pn), n.row.city ? (j(), S("span", mn, ", " + L(n.row.city), 1)) : x("", !0)]),
|
|
1198
1198
|
_: 2
|
|
1199
1199
|
}, 1032, ["to"])),
|
|
1200
|
-
n.row.count ? (
|
|
1200
|
+
n.row.count ? (j(), S("span", hn, L(n.row.count) + " " + L(N.value), 1)) : x("", !0)
|
|
1201
1201
|
])]))), 128))])) : x("", !0)
|
|
1202
1202
|
]),
|
|
1203
1203
|
_: 2
|
|
1204
|
-
}, 1040))), 128))])) : (
|
|
1205
|
-
|
|
1204
|
+
}, 1040))), 128))])) : (j(), S("p", gn, L(B.value), 1)),
|
|
1205
|
+
F(e.$slots, "after", A(D(W.value)))
|
|
1206
1206
|
]));
|
|
1207
1207
|
}
|
|
1208
|
-
},
|
|
1208
|
+
}, vn = { class: "mwnf-text-page" }, yn = {
|
|
1209
1209
|
key: 0,
|
|
1210
1210
|
class: "mwnf-text-page__back"
|
|
1211
|
-
},
|
|
1211
|
+
}, bn = {
|
|
1212
1212
|
key: 1,
|
|
1213
1213
|
class: "mwnf-text-page__heading"
|
|
1214
|
-
},
|
|
1214
|
+
}, xn = { class: "mwnf-prose" }, Sn = ["innerHTML"], Cn = {
|
|
1215
1215
|
__name: "TextPageView",
|
|
1216
1216
|
props: { spec: {
|
|
1217
1217
|
type: Object,
|
|
@@ -1222,49 +1222,49 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1222
1222
|
t: n,
|
|
1223
1223
|
tr: (e, t) => r.tr(e, t, i.value, "en"),
|
|
1224
1224
|
language: i.value
|
|
1225
|
-
})), l = y(() => o.value ? null : typeof t.spec.body == "function" ?
|
|
1226
|
-
return (e, n) => (
|
|
1227
|
-
u.value && (t.spec.back === !0 || t.spec.back?.to || t.spec.back?.href) ? (
|
|
1225
|
+
})), l = y(() => o.value ? null : typeof t.spec.body == "function" ? Z(t.spec.body(c.value)) : null), u = y(() => t.spec.back === !1 ? null : t.spec.back === !0 ? n("core.action.back") : t.spec.back?.label ? n(t.spec.back.label) : null);
|
|
1226
|
+
return (e, n) => (j(), S("div", vn, [
|
|
1227
|
+
u.value && (t.spec.back === !0 || t.spec.back?.to || t.spec.back?.href) ? (j(), S("div", yn, [E(_, {
|
|
1228
1228
|
to: t.spec.back === !0 ? {} : t.spec.back?.to,
|
|
1229
1229
|
href: t.spec.back === !0 ? "#" : t.spec.back?.href
|
|
1230
1230
|
}, {
|
|
1231
|
-
default:
|
|
1231
|
+
default: U(() => [T(" ← " + L(u.value), 1)]),
|
|
1232
1232
|
_: 1
|
|
1233
1233
|
}, 8, ["to", "href"])])) : x("", !0),
|
|
1234
|
-
a.value ? (
|
|
1235
|
-
C("div",
|
|
1234
|
+
a.value ? (j(), S("h1", bn, L(a.value), 1)) : x("", !0),
|
|
1235
|
+
C("div", xn, [o.value ? (j(), b(R(re), {
|
|
1236
1236
|
key: 0,
|
|
1237
1237
|
keypath: s.value
|
|
1238
|
-
}, null, 8, ["keypath"])) : l.value ? (
|
|
1238
|
+
}, null, 8, ["keypath"])) : l.value ? (j(), S("div", {
|
|
1239
1239
|
key: 1,
|
|
1240
1240
|
innerHTML: l.value
|
|
1241
|
-
}, null, 8,
|
|
1241
|
+
}, null, 8, Sn)) : x("", !0)])
|
|
1242
1242
|
]));
|
|
1243
1243
|
}
|
|
1244
|
-
},
|
|
1244
|
+
}, wn = { class: "mwnf-search-form__row-label" }, Tn = ["onUpdate:modelValue"], En = ["value"], Dn = ["onUpdate:modelValue"], On = ["value"], kn = ["onUpdate:modelValue", "placeholder"], An = {
|
|
1245
1245
|
key: 0,
|
|
1246
1246
|
class: "mwnf-search-form__dates"
|
|
1247
|
-
},
|
|
1247
|
+
}, jn = {
|
|
1248
1248
|
key: 1,
|
|
1249
1249
|
class: "mwnf-facet"
|
|
1250
|
-
},
|
|
1250
|
+
}, Mn = { class: "mwnf-facet__label" }, Nn = { value: "" }, Pn = ["value"], Fn = {
|
|
1251
1251
|
key: 0,
|
|
1252
1252
|
class: "mwnf-search-form__dates"
|
|
1253
|
-
},
|
|
1253
|
+
}, In = { class: "mwnf-search-form__radio-choice" }, Ln = ["value"], Rn = ["onUpdate:modelValue", "disabled"], zn = ["onUpdate:modelValue"], Bn = { class: "mwnf-facet__label" }, Vn = {
|
|
1254
1254
|
key: 0,
|
|
1255
1255
|
class: "mwnf-search-form__how-to"
|
|
1256
|
-
},
|
|
1256
|
+
}, Hn = {
|
|
1257
1257
|
__name: "SearchFormView",
|
|
1258
1258
|
props: { spec: {
|
|
1259
1259
|
type: Object,
|
|
1260
1260
|
required: !0
|
|
1261
1261
|
} },
|
|
1262
1262
|
setup(e) {
|
|
1263
|
-
let t = e, { t: n } = xe(), a =
|
|
1263
|
+
let t = e, { t: n } = xe(), a = Pe(), o = y(() => t.spec), s = y(() => o.value.mode), c = y(() => o.value.entity ? oe(o.value.entity).value ?? [] : []), l = y(() => o.value.dates === "buckets"), u = y(() => {
|
|
1264
1264
|
let e = o.value.dates;
|
|
1265
1265
|
if (!e || e === "buckets") return null;
|
|
1266
1266
|
let t = e.presets;
|
|
1267
|
-
return typeof t == "function" ? t() : t ??
|
|
1267
|
+
return typeof t == "function" ? t() : t ?? K();
|
|
1268
1268
|
});
|
|
1269
1269
|
function d(e) {
|
|
1270
1270
|
return (e ?? []).map((e) => ({
|
|
@@ -1272,35 +1272,35 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1272
1272
|
label: String(e)
|
|
1273
1273
|
}));
|
|
1274
1274
|
}
|
|
1275
|
-
let f = y(() => l.value ?
|
|
1275
|
+
let f = y(() => l.value ? Me(c.value, n) : []), p = y(() => l.value ? f.value : d(u.value?.from)), m = y(() => l.value ? f.value : d(u.value?.to)), h = y(() => !!o.value.dates), g = N(""), w = N(""), k = o.value.language ? ke(o.value.language) : null, I = y(() => k?.languages.value ?? []), te = k?.language ?? N(""), ne = y(() => Object.fromEntries((o.value.facets ?? []).filter((e) => !e.options && e.type !== "year").map((e) => [e.key, { field: e.field ?? e.key }]))), re = ve(c, ne), G = y(() => {
|
|
1276
1276
|
let e = {};
|
|
1277
|
-
for (let t of o.value.facets ?? []) e[t.key] = t.options ??
|
|
1277
|
+
for (let t of o.value.facets ?? []) e[t.key] = t.options ?? re.value[t.key] ?? [];
|
|
1278
1278
|
return e;
|
|
1279
|
-
}),
|
|
1279
|
+
}), ie = [{
|
|
1280
1280
|
key: "AND",
|
|
1281
1281
|
label: "catalogue.search.and"
|
|
1282
1282
|
}, {
|
|
1283
1283
|
key: "OR",
|
|
1284
1284
|
label: "catalogue.search.or"
|
|
1285
|
-
}],
|
|
1285
|
+
}], ae = [
|
|
1286
1286
|
"catalogue.search.keywordOne",
|
|
1287
1287
|
"catalogue.search.keywordTwo",
|
|
1288
1288
|
"catalogue.search.keywordThree"
|
|
1289
|
-
],
|
|
1289
|
+
], q = y(() => o.value.operators ?? ie), se = N(Array.from({ length: o.value.rows ?? 3 }, () => ({
|
|
1290
1290
|
keyword: "",
|
|
1291
1291
|
field: o.value.fields?.[0]?.key ?? "",
|
|
1292
|
-
cond: (o.value.operators ??
|
|
1292
|
+
cond: (o.value.operators ?? ie)[0].key
|
|
1293
1293
|
})));
|
|
1294
|
-
function
|
|
1295
|
-
return
|
|
1294
|
+
function J(e) {
|
|
1295
|
+
return ae[e] ? n(ae[e]) : "";
|
|
1296
1296
|
}
|
|
1297
|
-
let
|
|
1298
|
-
function
|
|
1297
|
+
let ce = N(o.value.facets?.[0]?.key ?? ""), Y = M(Object.fromEntries((o.value.facets ?? []).map((e) => [e.key, ""]))), X = M(Object.fromEntries((o.value.extras ?? []).map((e) => [e.key, !1])));
|
|
1298
|
+
function Z() {
|
|
1299
1299
|
let e = {};
|
|
1300
|
-
for (let t of o.value.extras ?? [])
|
|
1300
|
+
for (let t of o.value.extras ?? []) X[t.key] && (e[t.key] = "1");
|
|
1301
1301
|
return e;
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function Q(e) {
|
|
1304
1304
|
return a.push({
|
|
1305
1305
|
name: o.value.target,
|
|
1306
1306
|
query: e
|
|
@@ -1308,7 +1308,7 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
function le() {
|
|
1310
1310
|
let e = {};
|
|
1311
|
-
if (s.value === "rows")
|
|
1311
|
+
if (s.value === "rows") se.value.forEach((t, n) => {
|
|
1312
1312
|
if (t.keyword) {
|
|
1313
1313
|
if (n === 0) e.q = t.keyword, t.field && (e.field = t.field);
|
|
1314
1314
|
else {
|
|
@@ -1316,30 +1316,30 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1316
1316
|
e[`q${r}`] = t.keyword, t.field && (e[`field${r}`] = t.field), e[`op${r}`] = t.cond;
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
|
-
}), g.value && (e.from = String(g.value)), w.value && (e.to = String(w.value)),
|
|
1319
|
+
}), g.value && (e.from = String(g.value)), w.value && (e.to = String(w.value)), te.value && (e.lang = te.value);
|
|
1320
1320
|
else if (s.value === "radio") {
|
|
1321
|
-
let t =
|
|
1321
|
+
let t = ce.value, n = t ? Y[t] : "";
|
|
1322
1322
|
n && (e[t] = String(n));
|
|
1323
1323
|
}
|
|
1324
|
-
return Object.assign(e,
|
|
1324
|
+
return Object.assign(e, Z()), Q(e);
|
|
1325
1325
|
}
|
|
1326
1326
|
function ue(e, t) {
|
|
1327
|
-
if (t !== "" && t != null) return
|
|
1327
|
+
if (t !== "" && t != null) return Q({
|
|
1328
1328
|
[e]: String(t),
|
|
1329
|
-
...
|
|
1329
|
+
...Z()
|
|
1330
1330
|
});
|
|
1331
1331
|
}
|
|
1332
1332
|
function de() {
|
|
1333
|
-
return
|
|
1333
|
+
return Q(Z());
|
|
1334
1334
|
}
|
|
1335
1335
|
let $ = y(() => s.value === "facets" ? "immediate" : "apply"), fe = y(() => s.value === "radio" ? "core.action.browse" : "core.action.search"), pe = y(() => n(o.value.submitLabel ?? fe.value)), me = y(() => n(o.value.showAllLabel ?? "core.action.reset")), he = y(() => ({
|
|
1336
1336
|
mode: s.value,
|
|
1337
1337
|
submit: le,
|
|
1338
1338
|
showAll: de
|
|
1339
1339
|
}));
|
|
1340
|
-
return (e, t) => (
|
|
1341
|
-
|
|
1342
|
-
|
|
1340
|
+
return (e, t) => (j(), S("section", { class: ee(["mwnf-search-form", `mwnf-search-form--${s.value}`]) }, [
|
|
1341
|
+
F(e.$slots, "intro", A(D(he.value))),
|
|
1342
|
+
F(e.$slots, "before", A(D(he.value))),
|
|
1343
1343
|
E(r, {
|
|
1344
1344
|
class: "mwnf-search-form__panel",
|
|
1345
1345
|
mode: $.value,
|
|
@@ -1348,39 +1348,39 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1348
1348
|
onApply: le,
|
|
1349
1349
|
onReset: de
|
|
1350
1350
|
}, {
|
|
1351
|
-
default:
|
|
1352
|
-
s.value === "rows" ? (
|
|
1353
|
-
(
|
|
1351
|
+
default: U(() => [
|
|
1352
|
+
s.value === "rows" ? (j(), S(v, { key: 0 }, [
|
|
1353
|
+
(j(!0), S(v, null, P(se.value, (e, t) => (j(), S("div", {
|
|
1354
1354
|
key: t,
|
|
1355
1355
|
class: "mwnf-search-form__row"
|
|
1356
1356
|
}, [
|
|
1357
|
-
C("span",
|
|
1358
|
-
t > 0 ?
|
|
1357
|
+
C("span", wn, L(J(t)), 1),
|
|
1358
|
+
t > 0 ? W((j(), S("select", {
|
|
1359
1359
|
key: 0,
|
|
1360
1360
|
"onUpdate:modelValue": (t) => e.cond = t,
|
|
1361
1361
|
class: "mwnf-facet__select mwnf-search-form__operator"
|
|
1362
|
-
}, [(
|
|
1362
|
+
}, [(j(!0), S(v, null, P(q.value, (e) => (j(), S("option", {
|
|
1363
1363
|
key: e.key,
|
|
1364
1364
|
value: e.key
|
|
1365
|
-
}, R(
|
|
1366
|
-
|
|
1365
|
+
}, L(R(n)(e.label)), 9, En))), 128))], 8, Tn)), [[V, e.cond]]) : x("", !0),
|
|
1366
|
+
W(C("select", {
|
|
1367
1367
|
"onUpdate:modelValue": (t) => e.field = t,
|
|
1368
1368
|
class: "mwnf-facet__select mwnf-search-form__field"
|
|
1369
|
-
}, [(
|
|
1369
|
+
}, [(j(!0), S(v, null, P(o.value.fields ?? [], (e) => (j(), S("option", {
|
|
1370
1370
|
key: e.key,
|
|
1371
1371
|
value: e.key
|
|
1372
|
-
}, R(
|
|
1373
|
-
|
|
1372
|
+
}, L(R(n)(e.label)), 9, On))), 128))], 8, Dn), [[V, e.field]]),
|
|
1373
|
+
W(C("input", {
|
|
1374
1374
|
"onUpdate:modelValue": (t) => e.keyword = t,
|
|
1375
1375
|
type: "text",
|
|
1376
1376
|
class: "mwnf-search-form__keyword",
|
|
1377
|
-
placeholder:
|
|
1378
|
-
}, null, 8,
|
|
1377
|
+
placeholder: R(n)("catalogue.search.keywordPlaceholder")
|
|
1378
|
+
}, null, 8, kn), [[H, e.keyword]])
|
|
1379
1379
|
]))), 128)),
|
|
1380
|
-
h.value ? (
|
|
1380
|
+
h.value ? (j(), S("div", An, [E(i, {
|
|
1381
1381
|
modelValue: g.value,
|
|
1382
1382
|
"onUpdate:modelValue": t[0] ||= (e) => g.value = e,
|
|
1383
|
-
label:
|
|
1383
|
+
label: R(n)("catalogue.facet.dateFrom"),
|
|
1384
1384
|
options: p.value,
|
|
1385
1385
|
"any-label": "—"
|
|
1386
1386
|
}, null, 8, [
|
|
@@ -1390,7 +1390,7 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1390
1390
|
]), E(i, {
|
|
1391
1391
|
modelValue: w.value,
|
|
1392
1392
|
"onUpdate:modelValue": t[1] ||= (e) => w.value = e,
|
|
1393
|
-
label:
|
|
1393
|
+
label: R(n)("catalogue.facet.dateTo"),
|
|
1394
1394
|
options: m.value,
|
|
1395
1395
|
"any-label": "—"
|
|
1396
1396
|
}, null, 8, [
|
|
@@ -1398,27 +1398,27 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1398
1398
|
"label",
|
|
1399
1399
|
"options"
|
|
1400
1400
|
])])) : x("", !0),
|
|
1401
|
-
o.value.language ? (
|
|
1402
|
-
"onUpdate:modelValue": t[2] ||= (e) => O(
|
|
1401
|
+
o.value.language ? (j(), S("label", jn, [C("span", Mn, L(R(n)("catalogue.search.language")), 1), W(C("select", {
|
|
1402
|
+
"onUpdate:modelValue": t[2] ||= (e) => O(te) ? te.value = e : null,
|
|
1403
1403
|
class: "mwnf-facet__select mwnf-search-form__language"
|
|
1404
|
-
}, [C("option",
|
|
1404
|
+
}, [C("option", Nn, L(R(n)("catalogue.search.anyLanguage")), 1), (j(!0), S(v, null, P(I.value, (e) => (j(), S("option", {
|
|
1405
1405
|
key: e,
|
|
1406
1406
|
value: e
|
|
1407
|
-
},
|
|
1408
|
-
], 64)) : s.value === "facets" ? (
|
|
1407
|
+
}, L(e.toUpperCase()), 9, Pn))), 128))], 512), [[V, R(te)]])])) : x("", !0)
|
|
1408
|
+
], 64)) : s.value === "facets" ? (j(), S(v, { key: 1 }, [(j(!0), S(v, null, P(o.value.facets ?? [], (e) => (j(), b(i, {
|
|
1409
1409
|
key: e.key,
|
|
1410
|
-
label: e.label ?
|
|
1411
|
-
options:
|
|
1412
|
-
"model-value":
|
|
1410
|
+
label: e.label ? R(n)(e.label) : "",
|
|
1411
|
+
options: G.value[e.key] ?? [],
|
|
1412
|
+
"model-value": Y[e.key],
|
|
1413
1413
|
"onUpdate:modelValue": (t) => ue(e.key, t)
|
|
1414
1414
|
}, null, 8, [
|
|
1415
1415
|
"label",
|
|
1416
1416
|
"options",
|
|
1417
1417
|
"model-value",
|
|
1418
1418
|
"onUpdate:modelValue"
|
|
1419
|
-
]))), 128)), h.value ? (
|
|
1419
|
+
]))), 128)), h.value ? (j(), S("div", Fn, [E(i, {
|
|
1420
1420
|
"model-value": g.value,
|
|
1421
|
-
label:
|
|
1421
|
+
label: R(n)("catalogue.facet.startDate"),
|
|
1422
1422
|
options: p.value,
|
|
1423
1423
|
"onUpdate:modelValue": t[3] ||= (e) => {
|
|
1424
1424
|
g.value = e, ue("from", e);
|
|
@@ -1429,7 +1429,7 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1429
1429
|
"options"
|
|
1430
1430
|
]), E(i, {
|
|
1431
1431
|
"model-value": w.value,
|
|
1432
|
-
label:
|
|
1432
|
+
label: R(n)("catalogue.facet.endDate"),
|
|
1433
1433
|
options: m.value,
|
|
1434
1434
|
"onUpdate:modelValue": t[4] ||= (e) => {
|
|
1435
1435
|
w.value = e, ue("to", e);
|
|
@@ -1438,41 +1438,41 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1438
1438
|
"model-value",
|
|
1439
1439
|
"label",
|
|
1440
1440
|
"options"
|
|
1441
|
-
])])) : x("", !0)], 64)) : s.value === "radio" ? (
|
|
1441
|
+
])])) : x("", !0)], 64)) : s.value === "radio" ? (j(!0), S(v, { key: 2 }, P(o.value.facets ?? [], (e) => (j(), S("div", {
|
|
1442
1442
|
key: e.key,
|
|
1443
1443
|
class: "mwnf-search-form__radio-row"
|
|
1444
|
-
}, [C("label",
|
|
1445
|
-
"onUpdate:modelValue": t[5] ||= (e) =>
|
|
1444
|
+
}, [C("label", In, [W(C("input", {
|
|
1445
|
+
"onUpdate:modelValue": t[5] ||= (e) => ce.value = e,
|
|
1446
1446
|
type: "radio",
|
|
1447
1447
|
name: "mwnf-search-form-filter",
|
|
1448
1448
|
value: e.key
|
|
1449
|
-
}, null, 8,
|
|
1449
|
+
}, null, 8, Ln), [[B, ce.value]]), T(" " + L(e.label ? R(n)(e.label) : ""), 1)]), e.type === "year" ? W((j(), S("input", {
|
|
1450
1450
|
key: 1,
|
|
1451
|
-
"onUpdate:modelValue": (t) =>
|
|
1451
|
+
"onUpdate:modelValue": (t) => Y[e.key] = t,
|
|
1452
1452
|
type: "number",
|
|
1453
1453
|
class: "mwnf-search-form__year",
|
|
1454
|
-
disabled:
|
|
1455
|
-
}, null, 8,
|
|
1454
|
+
disabled: ce.value !== e.key
|
|
1455
|
+
}, null, 8, Rn)), [[H, Y[e.key]]]) : (j(), b(i, {
|
|
1456
1456
|
key: 0,
|
|
1457
|
-
modelValue:
|
|
1458
|
-
"onUpdate:modelValue": (t) =>
|
|
1459
|
-
options:
|
|
1460
|
-
disabled:
|
|
1457
|
+
modelValue: Y[e.key],
|
|
1458
|
+
"onUpdate:modelValue": (t) => Y[e.key] = t,
|
|
1459
|
+
options: G.value[e.key] ?? [],
|
|
1460
|
+
disabled: ce.value !== e.key
|
|
1461
1461
|
}, null, 8, [
|
|
1462
1462
|
"modelValue",
|
|
1463
1463
|
"onUpdate:modelValue",
|
|
1464
1464
|
"options",
|
|
1465
1465
|
"disabled"
|
|
1466
1466
|
]))]))), 128)) : x("", !0),
|
|
1467
|
-
(
|
|
1467
|
+
(j(!0), S(v, null, P(o.value.extras ?? [], (e) => (j(), S("label", {
|
|
1468
1468
|
key: e.key,
|
|
1469
1469
|
class: "mwnf-facet mwnf-facet--checkbox"
|
|
1470
|
-
}, [
|
|
1471
|
-
"onUpdate:modelValue": (t) =>
|
|
1470
|
+
}, [W(C("input", {
|
|
1471
|
+
"onUpdate:modelValue": (t) => X[e.key] = t,
|
|
1472
1472
|
type: "checkbox",
|
|
1473
1473
|
class: "mwnf-facet__checkbox"
|
|
1474
|
-
}, null, 8,
|
|
1475
|
-
|
|
1474
|
+
}, null, 8, zn), [[z, X[e.key]]]), C("span", Bn, L(R(n)(e.label)), 1)]))), 128)),
|
|
1475
|
+
F(e.$slots, "extras", A(D(he.value)))
|
|
1476
1476
|
]),
|
|
1477
1477
|
_: 3
|
|
1478
1478
|
}, 8, [
|
|
@@ -1480,34 +1480,34 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1480
1480
|
"apply-label",
|
|
1481
1481
|
"reset-label"
|
|
1482
1482
|
]),
|
|
1483
|
-
o.value.howTo ? (
|
|
1484
|
-
default:
|
|
1483
|
+
o.value.howTo ? (j(), S("p", Vn, [E(_, { to: { name: o.value.howTo } }, {
|
|
1484
|
+
default: U(() => [T(L(R(n)("catalogue.search.howTo")), 1)]),
|
|
1485
1485
|
_: 1
|
|
1486
1486
|
}, 8, ["to"])])) : x("", !0),
|
|
1487
|
-
|
|
1487
|
+
F(e.$slots, "actions", A(D(he.value)))
|
|
1488
1488
|
], 2));
|
|
1489
1489
|
}
|
|
1490
|
-
},
|
|
1490
|
+
}, Un = { class: "mwnf-timeline" }, Wn = {
|
|
1491
1491
|
key: 0,
|
|
1492
1492
|
class: "mwnf-timeline__title"
|
|
1493
|
-
},
|
|
1493
|
+
}, Gn = {
|
|
1494
1494
|
key: 3,
|
|
1495
1495
|
class: "mwnf-facet"
|
|
1496
|
-
},
|
|
1496
|
+
}, Kn = { class: "mwnf-facet__label" }, qn = [
|
|
1497
1497
|
"value",
|
|
1498
1498
|
"placeholder",
|
|
1499
1499
|
"onInput"
|
|
1500
|
-
],
|
|
1500
|
+
], Jn = {
|
|
1501
1501
|
key: 1,
|
|
1502
1502
|
class: "mwnf-timeline__error"
|
|
1503
|
-
},
|
|
1503
|
+
}, Yn = {
|
|
1504
1504
|
__name: "TimelineResultsView",
|
|
1505
1505
|
props: { spec: {
|
|
1506
1506
|
type: Object,
|
|
1507
1507
|
required: !0
|
|
1508
1508
|
} },
|
|
1509
1509
|
setup(e) {
|
|
1510
|
-
let t = e, { t: n } = xe(), a =
|
|
1510
|
+
let t = e, { t: n } = xe(), a = Pe(), o = y(() => t.spec), s = y(() => !!o.value.entrance), c = je({
|
|
1511
1511
|
scope: t.spec.scope ?? "country",
|
|
1512
1512
|
countryLabel: t.spec.countryLabel,
|
|
1513
1513
|
countryIdForCode: t.spec.countryIdForCode,
|
|
@@ -1518,18 +1518,18 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1518
1518
|
t: n,
|
|
1519
1519
|
tr: t.spec.tr,
|
|
1520
1520
|
years: {
|
|
1521
|
-
min:
|
|
1522
|
-
max:
|
|
1521
|
+
min: B.value[0],
|
|
1522
|
+
max: B.value[1]
|
|
1523
1523
|
}
|
|
1524
|
-
})), m =
|
|
1525
|
-
function
|
|
1524
|
+
})), m = M(Object.fromEntries(u.value.map((e) => [e, ""]))), w = N(""), O = s.value ? null : Se({ keys: u.value }), k = s.value ? m : O.filters;
|
|
1525
|
+
function ee(e) {
|
|
1526
1526
|
if (d("collection") && e !== "" && e != null) return e === "pc" ? null : e;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function I() {
|
|
1529
1529
|
for (let e of u.value) m[e] = "";
|
|
1530
1530
|
w.value = "";
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function te() {
|
|
1533
1533
|
w.value = "";
|
|
1534
1534
|
let e = !!k.begin && !!k.end;
|
|
1535
1535
|
if (e && Number(k.begin) >= Number(k.end)) {
|
|
@@ -1547,64 +1547,64 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1547
1547
|
query: t
|
|
1548
1548
|
});
|
|
1549
1549
|
}
|
|
1550
|
-
let
|
|
1550
|
+
let z = y(() => {
|
|
1551
1551
|
if (s.value) return [];
|
|
1552
1552
|
let e = k;
|
|
1553
1553
|
return c.findEvents({
|
|
1554
1554
|
country: e.country || void 0,
|
|
1555
|
-
collection:
|
|
1555
|
+
collection: ee(e.collection),
|
|
1556
1556
|
begin: e.begin,
|
|
1557
1557
|
end: e.end
|
|
1558
1558
|
});
|
|
1559
|
-
}),
|
|
1559
|
+
}), B = y(() => {
|
|
1560
1560
|
let e = c.findEvents({
|
|
1561
1561
|
country: void 0,
|
|
1562
1562
|
collection: void 0
|
|
1563
1563
|
}).map((e) => e.year_from).filter((e) => Number.isFinite(e) && e !== 0);
|
|
1564
1564
|
return e.length ? [Math.min(...e), Math.max(...e)] : [null, null];
|
|
1565
|
-
}),
|
|
1565
|
+
}), V = we(z, {
|
|
1566
1566
|
page: () => O ? O.page.value : 1,
|
|
1567
1567
|
size: () => o.value.pageSize ?? 15
|
|
1568
1568
|
});
|
|
1569
|
-
function
|
|
1569
|
+
function H(e) {
|
|
1570
1570
|
let t = o.value.countryLabel && e.country_id ? o.value.countryLabel(e.country_id) : "";
|
|
1571
1571
|
return {
|
|
1572
1572
|
id: e.id,
|
|
1573
|
-
date:
|
|
1573
|
+
date: se(e, e.text, n),
|
|
1574
1574
|
caption: t ? $(String(t)) : "",
|
|
1575
1575
|
description: e.text?.description ? de(String(e.text.description), { breaks: !0 }) : ""
|
|
1576
1576
|
};
|
|
1577
1577
|
}
|
|
1578
|
-
let
|
|
1578
|
+
let ne = y(() => V.value.rows.map((e) => (o.value.event ?? H)(e, p.value))), W = y(() => (c.countries.value ?? []).map((e) => ({
|
|
1579
1579
|
value: e.value,
|
|
1580
1580
|
label: e.value === "all" ? n("timeline.form.allCountries") : e.label
|
|
1581
|
-
}))),
|
|
1581
|
+
}))), re = y(() => o.value.collections?.(p.value) ?? []), G = y(() => {
|
|
1582
1582
|
let e = {};
|
|
1583
1583
|
for (let t of l.value) (t.key === "begin" || t.key === "end") && t.options && (typeof t.options == "function" ? e[t.key] = t.options(p.value) : e[t.key] = t.options);
|
|
1584
1584
|
return e;
|
|
1585
|
-
}),
|
|
1585
|
+
}), ie = y(() => ({
|
|
1586
1586
|
filters: k,
|
|
1587
1587
|
active: u.value.some((e) => k[e]),
|
|
1588
|
-
apply: s.value ?
|
|
1589
|
-
reset: s.value ?
|
|
1588
|
+
apply: s.value ? te : (e) => O.apply(e),
|
|
1589
|
+
reset: s.value ? I : O.reset,
|
|
1590
1590
|
goToPage: s.value ? () => {} : O.goToPage,
|
|
1591
|
-
events:
|
|
1592
|
-
pageInfo:
|
|
1593
|
-
countries:
|
|
1594
|
-
collections:
|
|
1591
|
+
events: z.value,
|
|
1592
|
+
pageInfo: V.value,
|
|
1593
|
+
countries: W.value,
|
|
1594
|
+
collections: re.value,
|
|
1595
1595
|
t: n,
|
|
1596
1596
|
tr: o.value.tr
|
|
1597
|
-
})),
|
|
1597
|
+
})), K = y(() => {
|
|
1598
1598
|
let e = o.value.gallery;
|
|
1599
|
-
return !e || s.value ? null : !e.items || e.items(
|
|
1600
|
-
}),
|
|
1601
|
-
let e =
|
|
1599
|
+
return !e || s.value ? null : !e.items || e.items(ie.value);
|
|
1600
|
+
}), ae = y(() => {
|
|
1601
|
+
let e = K.value;
|
|
1602
1602
|
return e == null ? !1 : Array.isArray(e) ? e.length > 0 : !!e;
|
|
1603
|
-
}),
|
|
1604
|
-
let e =
|
|
1603
|
+
}), q = y(() => {
|
|
1604
|
+
let e = K.value;
|
|
1605
1605
|
return Array.isArray(e) ? e.length : typeof e == "number" ? e : null;
|
|
1606
|
-
}),
|
|
1607
|
-
if (!
|
|
1606
|
+
}), oe = y(() => {
|
|
1607
|
+
if (!ae.value) return null;
|
|
1608
1608
|
let e = {};
|
|
1609
1609
|
for (let t of u.value) k[t] && (e[t] = k[t]);
|
|
1610
1610
|
return {
|
|
@@ -1612,44 +1612,44 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1612
1612
|
name: o.value.gallery.route,
|
|
1613
1613
|
query: e
|
|
1614
1614
|
},
|
|
1615
|
-
count:
|
|
1615
|
+
count: q.value,
|
|
1616
1616
|
label: n(o.value.gallery.label ?? "timeline.nav.seeGallery")
|
|
1617
1617
|
};
|
|
1618
|
-
}),
|
|
1619
|
-
...
|
|
1620
|
-
gallery:
|
|
1621
|
-
})),
|
|
1618
|
+
}), J = y(() => ({
|
|
1619
|
+
...ie.value,
|
|
1620
|
+
gallery: oe.value
|
|
1621
|
+
})), ce = y(() => o.value.summary ? o.value.summary(J.value) : [{
|
|
1622
1622
|
label: n(o.value.summaryLabel ?? "timeline.results.eventsFound"),
|
|
1623
|
-
count:
|
|
1624
|
-
}]),
|
|
1623
|
+
count: V.value.total
|
|
1624
|
+
}]), Y = y(() => n(o.value.empty ?? "timeline.results.noResults")), X = y(() => ({
|
|
1625
1625
|
window: 5,
|
|
1626
1626
|
jump: !1,
|
|
1627
1627
|
ends: !0,
|
|
1628
1628
|
...o.value.pagination ?? {}
|
|
1629
1629
|
}));
|
|
1630
|
-
function
|
|
1630
|
+
function Z(e, t) {
|
|
1631
1631
|
return e.label ? n(e.label) : t ? n(t) : "";
|
|
1632
1632
|
}
|
|
1633
|
-
return (e, t) => (
|
|
1634
|
-
|
|
1635
|
-
o.value.title ? (
|
|
1633
|
+
return (e, t) => (j(), S("section", Un, [
|
|
1634
|
+
F(e.$slots, "before", A(D(J.value))),
|
|
1635
|
+
o.value.title ? (j(), S("h1", Wn, L(R(n)(o.value.title)), 1)) : x("", !0),
|
|
1636
1636
|
E(r, {
|
|
1637
1637
|
class: "mwnf-timeline__filters",
|
|
1638
|
-
title: o.value.filterTitle ?
|
|
1639
|
-
"apply-label": s.value ?
|
|
1640
|
-
"reset-label": o.value.resetLabel ?
|
|
1641
|
-
onApply: t[2] ||= (e) => s.value ?
|
|
1642
|
-
onReset: t[3] ||= (e) => s.value ?
|
|
1638
|
+
title: o.value.filterTitle ? R(n)(o.value.filterTitle) : "",
|
|
1639
|
+
"apply-label": s.value ? R(n)(o.value.submitLabel ?? "core.action.search") : o.value.applyLabel ? R(n)(o.value.applyLabel) : "",
|
|
1640
|
+
"reset-label": o.value.resetLabel ? R(n)(o.value.resetLabel) : "",
|
|
1641
|
+
onApply: t[2] ||= (e) => s.value ? te() : R(O).apply(),
|
|
1642
|
+
onReset: t[3] ||= (e) => s.value ? I() : R(O).reset()
|
|
1643
1643
|
}, {
|
|
1644
|
-
default:
|
|
1644
|
+
default: U(() => [(j(!0), S(v, null, P(l.value, (e) => (j(), S(v, { key: e.key }, [e.key === "country" ? (j(), b(i, {
|
|
1645
1645
|
key: 0,
|
|
1646
|
-
"model-value":
|
|
1647
|
-
label:
|
|
1648
|
-
options:
|
|
1649
|
-
placeholder: e.placeholder ?
|
|
1650
|
-
"any-label": e.anyLabel ?
|
|
1646
|
+
"model-value": R(k).country,
|
|
1647
|
+
label: Z(e, "catalogue.facet.country"),
|
|
1648
|
+
options: W.value,
|
|
1649
|
+
placeholder: e.placeholder ? R(n)(e.placeholder) : R(n)("timeline.form.selectCountry"),
|
|
1650
|
+
"any-label": e.anyLabel ? R(n)(e.anyLabel) : "",
|
|
1651
1651
|
"hide-empty": !!e.hideEmpty,
|
|
1652
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
1652
|
+
"onUpdate:modelValue": t[0] ||= (e) => R(k).country = e
|
|
1653
1653
|
}, null, 8, [
|
|
1654
1654
|
"model-value",
|
|
1655
1655
|
"label",
|
|
@@ -1657,15 +1657,15 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1657
1657
|
"placeholder",
|
|
1658
1658
|
"any-label",
|
|
1659
1659
|
"hide-empty"
|
|
1660
|
-
])) : e.key === "collection" ? (
|
|
1660
|
+
])) : e.key === "collection" ? (j(), b(i, {
|
|
1661
1661
|
key: 1,
|
|
1662
|
-
"model-value":
|
|
1663
|
-
label:
|
|
1664
|
-
options:
|
|
1665
|
-
placeholder: e.placeholder ?
|
|
1666
|
-
"any-label": e.anyLabel ?
|
|
1662
|
+
"model-value": R(k).collection,
|
|
1663
|
+
label: Z(e),
|
|
1664
|
+
options: re.value,
|
|
1665
|
+
placeholder: e.placeholder ? R(n)(e.placeholder) : "",
|
|
1666
|
+
"any-label": e.anyLabel ? R(n)(e.anyLabel) : "",
|
|
1667
1667
|
"hide-empty": !!e.hideEmpty,
|
|
1668
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
1668
|
+
"onUpdate:modelValue": t[1] ||= (e) => R(k).collection = e
|
|
1669
1669
|
}, null, 8, [
|
|
1670
1670
|
"model-value",
|
|
1671
1671
|
"label",
|
|
@@ -1673,15 +1673,15 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1673
1673
|
"placeholder",
|
|
1674
1674
|
"any-label",
|
|
1675
1675
|
"hide-empty"
|
|
1676
|
-
])) : (e.key === "begin" || e.key === "end") &&
|
|
1676
|
+
])) : (e.key === "begin" || e.key === "end") && G.value[e.key] ? (j(), b(i, {
|
|
1677
1677
|
key: 2,
|
|
1678
|
-
"model-value":
|
|
1679
|
-
label:
|
|
1680
|
-
options:
|
|
1681
|
-
placeholder: e.placeholder ?
|
|
1682
|
-
"any-label": e.anyLabel ?
|
|
1678
|
+
"model-value": R(k)[e.key],
|
|
1679
|
+
label: Z(e, e.key === "begin" ? "timeline.form.startDate" : "timeline.form.endDate"),
|
|
1680
|
+
options: G.value[e.key],
|
|
1681
|
+
placeholder: e.placeholder ? R(n)(e.placeholder) : R(n)(e.key === "begin" ? "timeline.form.fromYearHint" : "timeline.form.toYearHint"),
|
|
1682
|
+
"any-label": e.anyLabel ? R(n)(e.anyLabel) : "",
|
|
1683
1683
|
"hide-empty": !!e.hideEmpty,
|
|
1684
|
-
"onUpdate:modelValue": (t) =>
|
|
1684
|
+
"onUpdate:modelValue": (t) => R(k)[e.key] = t
|
|
1685
1685
|
}, null, 8, [
|
|
1686
1686
|
"model-value",
|
|
1687
1687
|
"label",
|
|
@@ -1690,40 +1690,40 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1690
1690
|
"any-label",
|
|
1691
1691
|
"hide-empty",
|
|
1692
1692
|
"onUpdate:modelValue"
|
|
1693
|
-
])) : (
|
|
1693
|
+
])) : (j(), S("label", Gn, [C("span", Kn, L(Z(e, e.key === "begin" ? "timeline.form.startDate" : "timeline.form.endDate")), 1), C("input", {
|
|
1694
1694
|
type: "number",
|
|
1695
1695
|
class: "mwnf-facet__select",
|
|
1696
|
-
value:
|
|
1697
|
-
placeholder: e.placeholder ?
|
|
1698
|
-
onInput: (t) =>
|
|
1699
|
-
}, null, 40,
|
|
1696
|
+
value: R(k)[e.key],
|
|
1697
|
+
placeholder: e.placeholder ? R(n)(e.placeholder) : R(n)(e.key === "begin" ? "timeline.form.fromYearHint" : "timeline.form.toYearHint"),
|
|
1698
|
+
onInput: (t) => R(k)[e.key] = t.target.value
|
|
1699
|
+
}, null, 40, qn)]))], 64))), 128))]),
|
|
1700
1700
|
_: 1
|
|
1701
1701
|
}, 8, [
|
|
1702
1702
|
"title",
|
|
1703
1703
|
"apply-label",
|
|
1704
1704
|
"reset-label"
|
|
1705
1705
|
]),
|
|
1706
|
-
s.value && w.value ? (
|
|
1707
|
-
s.value ? x("", !0) : (
|
|
1708
|
-
|
|
1709
|
-
|
|
1706
|
+
s.value && w.value ? (j(), S("p", Jn, L(w.value), 1)) : x("", !0),
|
|
1707
|
+
s.value ? x("", !0) : (j(), S(v, { key: 2 }, [
|
|
1708
|
+
F(e.$slots, "summary", A(D(J.value)), () => [E(g, { parts: ce.value }, null, 8, ["parts"])]),
|
|
1709
|
+
oe.value ? (j(), b(_, {
|
|
1710
1710
|
key: 0,
|
|
1711
1711
|
class: "mwnf-timeline__gallery",
|
|
1712
|
-
to:
|
|
1712
|
+
to: oe.value.to
|
|
1713
1713
|
}, {
|
|
1714
|
-
default:
|
|
1714
|
+
default: U(() => [F(e.$slots, "cross-link", A(D(J.value)), () => [T(L(oe.value.label), 1), oe.value.count == null ? x("", !0) : (j(), S(v, { key: 0 }, [T(" (" + L(oe.value.count) + ")", 1)], 64))])]),
|
|
1715
1715
|
_: 3
|
|
1716
1716
|
}, 8, ["to"])) : x("", !0),
|
|
1717
|
-
|
|
1718
|
-
empty:
|
|
1717
|
+
F(e.$slots, "event", A(D(J.value)), () => [E(h, { events: ne.value }, {
|
|
1718
|
+
empty: U(() => [F(e.$slots, "empty", A(D(J.value)), () => [T(L(Y.value), 1)])]),
|
|
1719
1719
|
_: 3
|
|
1720
1720
|
}, 8, ["events"])]),
|
|
1721
1721
|
E(f, {
|
|
1722
|
-
"page-info":
|
|
1723
|
-
window:
|
|
1724
|
-
jump:
|
|
1725
|
-
ends:
|
|
1726
|
-
onNavigate:
|
|
1722
|
+
"page-info": R(V),
|
|
1723
|
+
window: X.value.window,
|
|
1724
|
+
jump: X.value.jump,
|
|
1725
|
+
ends: X.value.ends,
|
|
1726
|
+
onNavigate: R(O).goToPage
|
|
1727
1727
|
}, null, 8, [
|
|
1728
1728
|
"page-info",
|
|
1729
1729
|
"window",
|
|
@@ -1732,9 +1732,9 @@ var Pe = { class: "mwnf-home" }, Fe = {
|
|
|
1732
1732
|
"onNavigate"
|
|
1733
1733
|
])
|
|
1734
1734
|
], 64)),
|
|
1735
|
-
|
|
1735
|
+
F(e.$slots, "after", A(D(J.value)))
|
|
1736
1736
|
]));
|
|
1737
1737
|
}
|
|
1738
1738
|
};
|
|
1739
1739
|
//#endregion
|
|
1740
|
-
export {
|
|
1740
|
+
export { $e as CatalogueResultsView, Ft as EssayView, Re as HomeView, Gt as LinkListView, _n as PartnerListView, ot as RecordView, Hn as SearchFormView, Cn as TextPageView, Yn as TimelineResultsView };
|