@museumwnf/viewer-layout 3.62.0 → 3.63.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/dist/FeaturedRecord-Fe19w6_G.js +213 -0
- package/dist/LegacyItemSheet-Bmg8etGz.js +532 -0
- package/dist/{OnDisplayIn-CPANKcOd.js → OnDisplayIn-BH3Bqope.js} +1 -1
- package/dist/{PageShell-CPtgzcxv.js → PageShell-CIGVv7sK.js} +144 -111
- package/dist/{PartnerMap-U-Hi2FBi.js → PartnerMap-DdyMLtgH.js} +5 -1
- package/dist/RecordView-Bgd5mm_e.js +384 -0
- package/dist/{SiteShell-qvsZO4Iz.js → SiteShell-UsZ_cpe9.js} +3 -2
- package/dist/Theme-Daezwp0p.js +391 -0
- package/dist/{TimelineEventList-1feZA5t7.js → TimelineEventList-CIkKxyQu.js} +122 -238
- package/dist/TimelineResultsView-BF3VoCs_.js +686 -0
- package/dist/components.js +1 -1
- package/dist/{content-BNS5U0Xv.js → content-hV5uyd-b.js} +2 -2
- package/dist/content.js +6 -6
- package/dist/data-CsMfGCkv.js +77 -0
- package/dist/dxa.js +1982 -1042
- package/dist/index.js +7 -7
- package/dist/standalone.js +3 -3
- package/dist/{themeSpecs-CsDpl4rR.js → themeSpecs-DIdmAEc3.js} +1 -1
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +755 -37
- package/package.json +1 -1
- package/src/dxa/testing.js +147 -114
- package/src/styles/dxa-exhibition.css +2289 -32
- package/dist/FeaturedRecord-DaGLHyhD.js +0 -87
- package/dist/ItemDetailView-BcOSmHfr.js +0 -313
- package/dist/RecordView-BE4mbj6G.js +0 -363
- package/dist/Theme-4RmyRY0x.js +0 -318
- package/dist/TimelineResultsView-CkH3NDqL.js +0 -1401
- package/dist/data-kqAkoQvf.js +0 -37
package/dist/views.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { n as e, t } from "./FeaturedRecord-Fe19w6_G.js";
|
|
2
|
+
import { n, r, t as i } from "./TimelineResultsView-BF3VoCs_.js";
|
|
3
|
+
import { t as a } from "./RecordView-Bgd5mm_e.js";
|
|
4
|
+
import { t as o } from "./GlossaryPopover-DbQKXhx9.js";
|
|
5
|
+
import { d as s, i as ee, l as te, n as c } from "./PartnerMap-DdyMLtgH.js";
|
|
6
|
+
import { a as l, i as u } from "./TimelineEventList-CIkKxyQu.js";
|
|
7
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, guardReactiveProps as y, isRef as b, mergeProps as x, normalizeClass as S, normalizeProps as C, openBlock as w, reactive as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, unref as A, useSlots as ne, vModelCheckbox as re, vModelRadio as ie, vModelSelect as j, vModelText as M, watch as ae, withCtx as N, withDirectives as P } from "vue";
|
|
8
|
+
import { I18nText as F, NotFoundView as oe, byId as I, centuryPresets as L, entityRef as se, glossaryEntries as R, glossaryTermsForText as ce, md as z, mdInline as B, renderBlock as le, renderInline as V, renderPlain as ue, useCollectionTree as de, useDataPackage as fe, useFacets as pe, useFeaturedRecord as H, useGlossaryPopup as me, useI18n as he, useLocale as ge, useRecordLanguage as U, useSearchLanguage as _e, useSiteConfig as W, yearBuckets as ve } from "@museumwnf/viewer-core";
|
|
9
|
+
import { useRouter as G } from "vue-router";
|
|
7
10
|
// src/views/HomeView.vue
|
|
8
|
-
var
|
|
11
|
+
var ye = { class: "mwnf-home" }, K = {
|
|
9
12
|
key: 0,
|
|
10
13
|
class: "mwnf-home__title"
|
|
11
|
-
},
|
|
14
|
+
}, q = {
|
|
12
15
|
__name: "HomeView",
|
|
13
16
|
props: {
|
|
14
17
|
title: {
|
|
@@ -33,11 +36,11 @@ var O = { class: "mwnf-home" }, k = {
|
|
|
33
36
|
}
|
|
34
37
|
},
|
|
35
38
|
setup(n) {
|
|
36
|
-
let r = n, { t: i, locale: a } =
|
|
39
|
+
let r = n, { t: i, locale: a } = he(), o = W(), s = f(() => ({
|
|
37
40
|
...o.home ?? {},
|
|
38
|
-
...
|
|
41
|
+
...ee(r)
|
|
39
42
|
}));
|
|
40
|
-
function
|
|
43
|
+
function ee(e) {
|
|
41
44
|
let t = {};
|
|
42
45
|
for (let n of [
|
|
43
46
|
"title",
|
|
@@ -48,31 +51,31 @@ var O = { class: "mwnf-home" }, k = {
|
|
|
48
51
|
]) e[n] != null && e[n] !== "" && (t[n] = e[n]);
|
|
49
52
|
return t;
|
|
50
53
|
}
|
|
51
|
-
let
|
|
54
|
+
let te = f(() => (s.value.cards ?? []).map((e) => ({
|
|
52
55
|
...e,
|
|
53
56
|
title: e.title ? i(e.title) : "",
|
|
54
57
|
description: e.description ? i(e.description) : "",
|
|
55
58
|
action: e.action ? i(e.action) : ""
|
|
56
|
-
}))),
|
|
57
|
-
|
|
58
|
-
let
|
|
59
|
-
seed:
|
|
60
|
-
images:
|
|
61
|
-
filter:
|
|
62
|
-
}) :
|
|
63
|
-
function
|
|
59
|
+
}))), c = f(() => s.value.featured ?? null), l = c.value?.entity ?? "", u = fe();
|
|
60
|
+
l && u.loadTranslations(l, "en");
|
|
61
|
+
let d = l ? H(l, {
|
|
62
|
+
seed: c.value?.seed,
|
|
63
|
+
images: c.value?.images ?? "images",
|
|
64
|
+
filter: c.value?.filter
|
|
65
|
+
}) : f(() => null), g = f(() => d.value ? u.tr(l, d.value.id, a.value, "en") : {});
|
|
66
|
+
function _(e, t, n) {
|
|
64
67
|
return typeof e == "function" ? e(t, n) : typeof e != "string" || !e ? "" : n[e] ?? t[e] ?? "";
|
|
65
68
|
}
|
|
66
|
-
let
|
|
67
|
-
let e =
|
|
69
|
+
let y = f(() => {
|
|
70
|
+
let e = d.value, t = c.value;
|
|
68
71
|
if (!e || !t) return null;
|
|
69
|
-
let n =
|
|
72
|
+
let n = g.value.name ?? e.internal_name ?? e.id, r = typeof t.meta == "function" ? t.meta(e, g.value) : (t.meta ?? []).map((t) => _(t, e, g.value)), a = t.images ?? "images";
|
|
70
73
|
return {
|
|
71
74
|
heading: t.heading ? i(t.heading) : "",
|
|
72
75
|
image: e[a]?.[0]?.url ?? "",
|
|
73
|
-
imageAlt:
|
|
74
|
-
eyebrow: String(
|
|
75
|
-
name:
|
|
76
|
+
imageAlt: ue(String(n)),
|
|
77
|
+
eyebrow: String(_(t.eyebrow, e, g.value) ?? ""),
|
|
78
|
+
name: V(String(n)),
|
|
76
79
|
meta: r.filter(Boolean).map(String),
|
|
77
80
|
action: t.action ? i(t.action) : "",
|
|
78
81
|
to: typeof t.to == "function" ? t.to(e) : {
|
|
@@ -81,22 +84,737 @@ var O = { class: "mwnf-home" }, k = {
|
|
|
81
84
|
}
|
|
82
85
|
};
|
|
83
86
|
});
|
|
84
|
-
return (n, r) => (
|
|
85
|
-
s.value.title || s.value.intro ? (
|
|
87
|
+
return (n, r) => (w(), h("section", ye, [
|
|
88
|
+
s.value.title || s.value.intro ? (w(), h("header", {
|
|
86
89
|
key: 0,
|
|
87
|
-
class:
|
|
88
|
-
}, [s.value.title ? (
|
|
90
|
+
class: S(["mwnf-home__welcome", { "mwnf-panel": s.value.panels }])
|
|
91
|
+
}, [s.value.title ? (w(), h("h1", K, k(A(i)(s.value.title)), 1)) : m("", !0), s.value.intro ? (w(), p(A(F), {
|
|
89
92
|
key: 1,
|
|
90
93
|
tag: "div",
|
|
91
94
|
class: "mwnf-home__intro",
|
|
92
95
|
keypath: s.value.intro
|
|
93
|
-
}, null, 8, ["keypath"])) :
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
}, null, 8, ["keypath"])) : m("", !0)], 2)) : m("", !0),
|
|
97
|
+
O(n.$slots, "before"),
|
|
98
|
+
v(e, { cards: te.value }, null, 8, ["cards"]),
|
|
99
|
+
O(n.$slots, "default"),
|
|
100
|
+
y.value ? (w(), p(t, x({ key: 1 }, y.value, { class: { "mwnf-panel": s.value.panels } }), null, 16, ["class"])) : m("", !0),
|
|
101
|
+
O(n.$slots, "after")
|
|
99
102
|
]));
|
|
100
103
|
}
|
|
104
|
+
}, be = ["dir"], xe = {
|
|
105
|
+
key: 0,
|
|
106
|
+
class: "mwnf-essay__breadcrumb"
|
|
107
|
+
}, Se = { class: "mwnf-essay__breadcrumb-label" }, Ce = {
|
|
108
|
+
key: 1,
|
|
109
|
+
class: "mwnf-essay__breadcrumb-link"
|
|
110
|
+
}, we = ["aria-label"], Te = { class: "mwnf-essay__title" }, Ee = {
|
|
111
|
+
key: 0,
|
|
112
|
+
class: "mwnf-essay__number"
|
|
113
|
+
}, De = ["innerHTML"], Oe = { class: "mwnf-essay__body" }, ke = { class: "mwnf-essay__main" }, Ae = {
|
|
114
|
+
key: 0,
|
|
115
|
+
class: "mwnf-essay__status"
|
|
116
|
+
}, je = ["innerHTML"], Me = ["innerHTML"], Ne = {
|
|
117
|
+
key: 4,
|
|
118
|
+
class: "mwnf-essay__nav"
|
|
119
|
+
}, Pe = {
|
|
120
|
+
key: 1,
|
|
121
|
+
class: "mwnf-essay__nav-spacer"
|
|
122
|
+
}, Fe = {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: "mwnf-essay__side"
|
|
125
|
+
}, Ie = {
|
|
126
|
+
key: 0,
|
|
127
|
+
class: "mwnf-essay__panel"
|
|
128
|
+
}, Le = {
|
|
129
|
+
key: 0,
|
|
130
|
+
class: "mwnf-essay__variants"
|
|
131
|
+
}, Re = ["aria-pressed", "onClick"], ze = ["src", "alt"], Be = ["innerHTML"], Ve = {
|
|
132
|
+
key: 0,
|
|
133
|
+
class: "mwnf-essay__panel-label"
|
|
134
|
+
}, He = ["innerHTML"], Ue = ["innerHTML"], We = {
|
|
135
|
+
key: 0,
|
|
136
|
+
class: "mwnf-essay__thumbs"
|
|
137
|
+
}, Ge = ["onClick"], Ke = ["src"], qe = {
|
|
138
|
+
key: 2,
|
|
139
|
+
class: "mwnf-essay__status"
|
|
140
|
+
}, Je = {
|
|
141
|
+
__name: "EssayView",
|
|
142
|
+
props: {
|
|
143
|
+
spec: {
|
|
144
|
+
type: Object,
|
|
145
|
+
required: !0
|
|
146
|
+
},
|
|
147
|
+
id: {
|
|
148
|
+
type: String,
|
|
149
|
+
required: !0
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
setup(e) {
|
|
153
|
+
let t = e, { t: n } = he(), r = fe(), i = ne();
|
|
154
|
+
function a(e) {
|
|
155
|
+
return !!e && typeof e.walk == "function" && typeof e.children == "function";
|
|
156
|
+
}
|
|
157
|
+
function l(e) {
|
|
158
|
+
return typeof e == "string" ? e : "themes";
|
|
159
|
+
}
|
|
160
|
+
let u = t.spec.entity ?? "items", b = t.spec.tree, x = b?.entity ?? (b?.themes ? l(b.themes) : t.spec.entity ?? "collections"), T = a(b) ? b : b?.themes ? de({
|
|
161
|
+
source: "themes",
|
|
162
|
+
entity: x,
|
|
163
|
+
childType: b.childType
|
|
164
|
+
}) : de({
|
|
165
|
+
purpose: b?.purpose,
|
|
166
|
+
rootId: b?.rootId,
|
|
167
|
+
childType: b?.childType,
|
|
168
|
+
entity: x,
|
|
169
|
+
order: b?.order
|
|
170
|
+
}), re = se(x), ie = f(() => re.value !== null), j = f(() => t.spec), M = f(() => T.byId.value.get(t.id) ?? null), P = f(() => T.parents(t.id).at(-1) ?? null), F = f(() => {
|
|
171
|
+
if (P.value) return T.children(P.value.id);
|
|
172
|
+
let e = T.root.value;
|
|
173
|
+
return e ? T.children(e.id) : T.walk().filter((e) => T.parents(e.id).length === 0);
|
|
174
|
+
}), L = f(() => F.value.findIndex((e) => e.id === t.id)), z = f(() => j.value.navigation || !1), B = f(() => z.value === "siblings" ? L.value > 0 ? F.value[L.value - 1] : null : z.value === "tree" ? T.previous(t.id) : null), pe = f(() => z.value === "siblings" ? L.value !== -1 && L.value < F.value.length - 1 ? F.value[L.value + 1] : null : z.value === "tree" ? T.next(t.id) : null), { language: H, dir: ge } = U(M, { entity: x }), _e = f(() => M.value ? r.tr(x, M.value.id, H.value, "en") : {}), W = E(!1);
|
|
175
|
+
ae(() => [M.value?.id, H.value], async () => {
|
|
176
|
+
if (W.value = !1, !M.value) {
|
|
177
|
+
W.value = !0;
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
let e = H.value === "en" ? ["en"] : [H.value, "en"];
|
|
181
|
+
await Promise.all([x, u].flatMap((t) => e.map((e) => r.loadTranslations(t, e)))), W.value = !0;
|
|
182
|
+
}, { immediate: !0 });
|
|
183
|
+
function ve(e) {
|
|
184
|
+
if (!e) return "";
|
|
185
|
+
let t = j.value.placeholder, n = (e) => !!e && !!t && t.test(e), i = r.tr(x, e.id, H.value, "en");
|
|
186
|
+
if (i.title && !n(i.title)) return i.title;
|
|
187
|
+
let a = r.tr(x, e.id, "en").title;
|
|
188
|
+
return a && !n(a) ? a : e.internal_name ?? e.id;
|
|
189
|
+
}
|
|
190
|
+
let G = f(() => ({
|
|
191
|
+
node: M.value,
|
|
192
|
+
text: _e.value,
|
|
193
|
+
language: H.value,
|
|
194
|
+
tree: T,
|
|
195
|
+
select: mt,
|
|
196
|
+
t: n,
|
|
197
|
+
tr: (e, t) => r.tr(e, t, H.value, "en")
|
|
198
|
+
}));
|
|
199
|
+
function ye(e, t) {
|
|
200
|
+
return t.split(".").reduce((e, t) => e?.[t], e);
|
|
201
|
+
}
|
|
202
|
+
function K(e, t) {
|
|
203
|
+
return e === !1 || e == null ? "" : typeof e == "function" ? e(t) ?? "" : ye(t.text, e) ?? "";
|
|
204
|
+
}
|
|
205
|
+
let q = f(() => K(j.value.quote ?? "quote", G.value)), Je = f(() => K(j.value.body ?? "description", G.value)), Ye = f(() => {
|
|
206
|
+
if (!j.value.glossary || !M.value) return [];
|
|
207
|
+
let e = [q.value, Je.value].filter(Boolean);
|
|
208
|
+
return ce(e.join("\n\n"), H.value);
|
|
209
|
+
}), Xe = f(() => R(Ye.value)), { active: Ze, onClick: Qe, close: $e } = me(Ye), et = f(() => Ze.value ? le(Ze.value.definition, { breaks: !0 }) : ""), tt = f(() => M.value ? j.value.heading ? j.value.heading(G.value) : V(String(ve(M.value)), { glossary: Xe.value }) : ""), nt = f(() => q.value ? V(String(q.value), { glossary: Xe.value }) : ""), rt = f(() => Je.value ? le(String(Je.value), {
|
|
210
|
+
breaks: !0,
|
|
211
|
+
glossary: Xe.value
|
|
212
|
+
}) : ""), it = f(() => M.value ? j.value.about?.(M.value) ?? !1 : !1), at = f(() => !!it.value);
|
|
213
|
+
function ot(e) {
|
|
214
|
+
let t = it.value;
|
|
215
|
+
return t && typeof t == "object" ? !!t[e] : !!j.value.aboutKeeps?.includes(e);
|
|
216
|
+
}
|
|
217
|
+
let st = [
|
|
218
|
+
[1e3, "M"],
|
|
219
|
+
[900, "CM"],
|
|
220
|
+
[500, "D"],
|
|
221
|
+
[400, "CD"],
|
|
222
|
+
[100, "C"],
|
|
223
|
+
[90, "XC"],
|
|
224
|
+
[50, "L"],
|
|
225
|
+
[40, "XL"],
|
|
226
|
+
[10, "X"],
|
|
227
|
+
[9, "IX"],
|
|
228
|
+
[5, "V"],
|
|
229
|
+
[4, "IV"],
|
|
230
|
+
[1, "I"]
|
|
231
|
+
];
|
|
232
|
+
function ct(e) {
|
|
233
|
+
let t = e, n = "";
|
|
234
|
+
for (let [e, r] of st) for (; t >= e;) n += r, t -= e;
|
|
235
|
+
return n;
|
|
236
|
+
}
|
|
237
|
+
let lt = f(() => {
|
|
238
|
+
let e = j.value.numbering;
|
|
239
|
+
if (!e || !M.value) return "";
|
|
240
|
+
let n = (F.value.length ? F.value : [M.value]).findIndex((e) => e.id === t.id), r = n >= 0 ? n + 1 : 1;
|
|
241
|
+
return e === "roman" ? ct(r) : String(r);
|
|
242
|
+
});
|
|
243
|
+
function ut(e) {
|
|
244
|
+
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) : [] : [];
|
|
245
|
+
}
|
|
246
|
+
let dt = I(u), ft = f(() => {
|
|
247
|
+
let e = j.value.items?.of ?? ut;
|
|
248
|
+
return M.value ? e(M.value, G.value) : [];
|
|
249
|
+
}), J = f(() => ft.value.map((e) => dt.value.get(e)).filter(Boolean)), pt = E(null);
|
|
250
|
+
ae(J, (e) => {
|
|
251
|
+
e.some((e) => e.id === pt.value) || (pt.value = e[0]?.id ?? null);
|
|
252
|
+
}, { immediate: !0 });
|
|
253
|
+
let Y = f(() => J.value.find((e) => e.id === pt.value) ?? J.value[0] ?? null);
|
|
254
|
+
function mt(e) {
|
|
255
|
+
pt.value = e;
|
|
256
|
+
}
|
|
257
|
+
function ht(e) {
|
|
258
|
+
let t = j.value.items?.route;
|
|
259
|
+
return !t || !e ? null : typeof t == "function" ? t(e, G.value) : {
|
|
260
|
+
name: t,
|
|
261
|
+
params: { id: e.id }
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
function X(e) {
|
|
265
|
+
let t = j.value.route;
|
|
266
|
+
return !t || !e ? null : typeof t == "function" ? t(e, G.value) : {
|
|
267
|
+
name: t,
|
|
268
|
+
params: { id: e.id }
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
function gt(e) {
|
|
272
|
+
if (!e) return null;
|
|
273
|
+
let t = r.tr(u, e.id, H.value, "en").name ?? e.internal_name ?? e.id;
|
|
274
|
+
return {
|
|
275
|
+
name: V(String(t)),
|
|
276
|
+
image: e.images?.[0]?.url ?? "",
|
|
277
|
+
imageAlt: ue(String(t))
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
let _t = f(() => {
|
|
281
|
+
let e = Y.value;
|
|
282
|
+
if (!e) return null;
|
|
283
|
+
let t = gt(e), n = j.value.items?.caption?.(e, M.value, G.value);
|
|
284
|
+
return {
|
|
285
|
+
...t,
|
|
286
|
+
...n
|
|
287
|
+
};
|
|
288
|
+
}), vt = f(() => !!j.value.panel), Z = f(() => {
|
|
289
|
+
let e = Y.value;
|
|
290
|
+
if (!e) return [];
|
|
291
|
+
let t = _t.value, n = e.images?.[0]?.url ? [{
|
|
292
|
+
id: "__primary",
|
|
293
|
+
image: e.images[0].url,
|
|
294
|
+
alt: t?.imageAlt ?? "",
|
|
295
|
+
caption: {
|
|
296
|
+
title: t?.name ?? "",
|
|
297
|
+
justification: "",
|
|
298
|
+
fields: null
|
|
299
|
+
}
|
|
300
|
+
}] : [], r = j.value.panel?.variants?.(e, G.value) ?? [];
|
|
301
|
+
return [...n, ...r.map((e, t) => ({
|
|
302
|
+
id: e.id ?? `variant-${t}`,
|
|
303
|
+
...e
|
|
304
|
+
}))];
|
|
305
|
+
}), yt = E(null);
|
|
306
|
+
ae(Z, (e) => {
|
|
307
|
+
e.some((e) => e.id === yt.value) || (yt.value = e[0]?.id ?? null);
|
|
308
|
+
}, { immediate: !0 });
|
|
309
|
+
let Q = f(() => Z.value.find((e) => e.id === yt.value) ?? Z.value[0] ?? null);
|
|
310
|
+
function bt(e) {
|
|
311
|
+
yt.value = e;
|
|
312
|
+
}
|
|
313
|
+
let xt = f(() => {
|
|
314
|
+
let e = Q.value;
|
|
315
|
+
return e?.image ? [{
|
|
316
|
+
url: e.image,
|
|
317
|
+
alt: e.alt ?? ""
|
|
318
|
+
}] : [];
|
|
319
|
+
}), St = f(() => {
|
|
320
|
+
let e = Y.value;
|
|
321
|
+
return !e || !j.value.panel?.fields ? [] : j.value.panel.fields(e, M.value, G.value) ?? [];
|
|
322
|
+
}), Ct = f(() => {
|
|
323
|
+
let e = Q.value?.caption?.fields;
|
|
324
|
+
return e == null ? St.value : e.map((e) => ({
|
|
325
|
+
label: e.label ? n(e.label) : "",
|
|
326
|
+
value: e.value
|
|
327
|
+
}));
|
|
328
|
+
}), wt = f(() => {
|
|
329
|
+
let e = Q.value?.caption?.justification;
|
|
330
|
+
return e ? V(String(e)) : "";
|
|
331
|
+
}), Tt = f(() => J.value.map((e) => {
|
|
332
|
+
let t = gt(e), n = j.value.items?.meta?.(e, G.value) ?? [], r = j.value.items?.badge?.(e, G.value) ?? "";
|
|
333
|
+
return {
|
|
334
|
+
id: e.id,
|
|
335
|
+
image: t.image,
|
|
336
|
+
imageAlt: t.imageAlt,
|
|
337
|
+
name: t.name,
|
|
338
|
+
meta: n,
|
|
339
|
+
badge: r,
|
|
340
|
+
to: ht(e)
|
|
341
|
+
};
|
|
342
|
+
})), Et = f(() => j.value.breadcrumb && M.value ? T.parents(t.id) : []), Dt = f(() => {
|
|
343
|
+
let e = j.value.tabs;
|
|
344
|
+
return e ? e === "children" ? M.value ? T.children(M.value.id) : [] : F.value : [];
|
|
345
|
+
}), Ot = f(() => j.value.previous ?? "core.pagination.previous"), kt = f(() => j.value.next ?? "core.pagination.next"), At = f(() => j.value.backTo ?? "record.action.backToResults"), jt = f(() => j.value.inThisTheme ?? "core.nav.inThisSection"), Mt = f(() => j.value.seeAll ?? "catalogue.results.seeDatabaseEntry"), $ = f(() => ({
|
|
346
|
+
...G.value,
|
|
347
|
+
items: J.value,
|
|
348
|
+
selected: Y.value,
|
|
349
|
+
selectedVariant: Q.value,
|
|
350
|
+
selectVariant: bt,
|
|
351
|
+
breadcrumb: Et.value,
|
|
352
|
+
previous: B.value,
|
|
353
|
+
next: pe.value
|
|
354
|
+
})), Nt = f(() => at.value && !ot("panel") ? !1 : vt.value || J.value.length > 0 || !!i.aside), Pt = f(() => (!at.value || ot("navigation")) && !!z.value && !!(B.value || pe.value));
|
|
355
|
+
return (t, r) => ie.value && !M.value ? (w(), p(A(oe), { key: 0 })) : M.value ? (w(), h("article", {
|
|
356
|
+
key: 1,
|
|
357
|
+
class: S(["mwnf-essay", { "mwnf-essay--about": at.value }]),
|
|
358
|
+
dir: A(ge) || void 0,
|
|
359
|
+
onClick: r[0] ||= (...e) => A(Qe) && A(Qe)(...e)
|
|
360
|
+
}, [
|
|
361
|
+
O(t.$slots, "header", C(y($.value)), () => [
|
|
362
|
+
Et.value.length ? (w(), h("p", xe, [g("span", Se, k(A(n)(At.value)), 1), (w(!0), h(d, null, D(Et.value, (e) => (w(), h(d, { key: e.id }, [X(e) ? (w(), p(s, {
|
|
363
|
+
key: 0,
|
|
364
|
+
to: X(e),
|
|
365
|
+
class: "mwnf-essay__breadcrumb-link"
|
|
366
|
+
}, {
|
|
367
|
+
default: N(() => [_(k(ve(e)), 1)]),
|
|
368
|
+
_: 2
|
|
369
|
+
}, 1032, ["to"])) : (w(), h("span", Ce, k(ve(e)), 1))], 64))), 128))])) : m("", !0),
|
|
370
|
+
Dt.value.length > 1 ? (w(), h("div", {
|
|
371
|
+
key: 1,
|
|
372
|
+
class: "mwnf-essay__tabs",
|
|
373
|
+
role: "tablist",
|
|
374
|
+
"aria-label": A(n)(jt.value)
|
|
375
|
+
}, [(w(!0), h(d, null, D(Dt.value, (t) => (w(), p(s, {
|
|
376
|
+
key: t.id,
|
|
377
|
+
to: X(t),
|
|
378
|
+
class: S(["mwnf-essay__tab", { "mwnf-essay__tab--active": t.id === e.id }])
|
|
379
|
+
}, {
|
|
380
|
+
default: N(() => [_(k(ve(t)), 1)]),
|
|
381
|
+
_: 2
|
|
382
|
+
}, 1032, ["to", "class"]))), 128))], 8, we)) : m("", !0),
|
|
383
|
+
g("h1", Te, [lt.value ? (w(), h("span", Ee, k(lt.value), 1)) : m("", !0), g("span", { innerHTML: tt.value }, null, 8, De)])
|
|
384
|
+
]),
|
|
385
|
+
g("div", Oe, [g("div", ke, [
|
|
386
|
+
W.value ? m("", !0) : (w(), h("p", Ae, k(A(n)("core.status.loading")), 1)),
|
|
387
|
+
nt.value ? (w(), h("p", {
|
|
388
|
+
key: 1,
|
|
389
|
+
class: "mwnf-essay__quote",
|
|
390
|
+
innerHTML: nt.value
|
|
391
|
+
}, null, 8, je)) : m("", !0),
|
|
392
|
+
O(t.$slots, "before-body", C(y($.value))),
|
|
393
|
+
rt.value ? (w(), h("div", {
|
|
394
|
+
key: 2,
|
|
395
|
+
class: "mwnf-essay__prose mwnf-sheet__block",
|
|
396
|
+
innerHTML: rt.value
|
|
397
|
+
}, null, 8, Me)) : m("", !0),
|
|
398
|
+
O(t.$slots, "after-body", C(y($.value))),
|
|
399
|
+
at.value ? m("", !0) : O(t.$slots, "justifications", C(y($.value)), void 0, void 0, 3),
|
|
400
|
+
Pt.value ? (w(), h("div", Ne, [O(t.$slots, "navigation", C(y($.value)), () => [B.value ? (w(), p(s, {
|
|
401
|
+
key: 0,
|
|
402
|
+
to: X(B.value),
|
|
403
|
+
class: "mwnf-essay__nav-link mwnf-essay__nav-link--previous"
|
|
404
|
+
}, {
|
|
405
|
+
default: N(() => [_("← " + k(A(n)(Ot.value)), 1)]),
|
|
406
|
+
_: 1
|
|
407
|
+
}, 8, ["to"])) : (w(), h("span", Pe)), pe.value ? (w(), p(s, {
|
|
408
|
+
key: 2,
|
|
409
|
+
to: X(pe.value),
|
|
410
|
+
class: "mwnf-essay__nav-link mwnf-essay__nav-link--next"
|
|
411
|
+
}, {
|
|
412
|
+
default: N(() => [_(k(A(n)(kt.value)) + " →", 1)]),
|
|
413
|
+
_: 1
|
|
414
|
+
}, 8, ["to"])) : m("", !0)])])) : m("", !0)
|
|
415
|
+
]), Nt.value ? (w(), h("div", Fe, [
|
|
416
|
+
O(t.$slots, "panel", C(y($.value)), () => [vt.value && _t.value ? (w(), h("div", Ie, [
|
|
417
|
+
v(c, { images: xt.value }, null, 8, ["images"]),
|
|
418
|
+
Z.value.length > 1 ? (w(), h("ul", Le, [(w(!0), h(d, null, D(Z.value, (e) => (w(), h("li", { key: e.id }, [g("button", {
|
|
419
|
+
type: "button",
|
|
420
|
+
class: S(["mwnf-essay__variant", { "mwnf-essay__variant--active": e.id === Q.value?.id }]),
|
|
421
|
+
"aria-pressed": e.id === Q.value?.id ? "true" : "false",
|
|
422
|
+
onClick: (t) => bt(e.id)
|
|
423
|
+
}, [e.image ? (w(), h("img", {
|
|
424
|
+
key: 0,
|
|
425
|
+
src: e.image,
|
|
426
|
+
alt: e.alt ?? "",
|
|
427
|
+
loading: "lazy"
|
|
428
|
+
}, null, 8, ze)) : m("", !0)], 10, Re)]))), 128))])) : m("", !0),
|
|
429
|
+
g("h3", {
|
|
430
|
+
class: "mwnf-essay__panel-name",
|
|
431
|
+
innerHTML: Q.value?.caption?.title || _t.value.name
|
|
432
|
+
}, null, 8, Be),
|
|
433
|
+
(w(!0), h(d, null, D(Ct.value, (e, t) => (w(), h("p", {
|
|
434
|
+
key: t,
|
|
435
|
+
class: "mwnf-essay__panel-field"
|
|
436
|
+
}, [e.label ? (w(), h("span", Ve, k(e.label), 1)) : m("", !0), g("span", { innerHTML: e.value }, null, 8, He)]))), 128)),
|
|
437
|
+
wt.value ? (w(), h("p", {
|
|
438
|
+
key: 1,
|
|
439
|
+
class: "mwnf-essay__panel-justification mwnf-sheet__block",
|
|
440
|
+
innerHTML: wt.value
|
|
441
|
+
}, null, 8, Ue)) : m("", !0),
|
|
442
|
+
ht(Y.value) ? (w(), p(s, {
|
|
443
|
+
key: 2,
|
|
444
|
+
to: ht(Y.value),
|
|
445
|
+
class: "mwnf-essay__panel-link"
|
|
446
|
+
}, {
|
|
447
|
+
default: N(() => [_(k(A(n)(Mt.value)) + " →", 1)]),
|
|
448
|
+
_: 1
|
|
449
|
+
}, 8, ["to"])) : m("", !0)
|
|
450
|
+
])) : m("", !0)]),
|
|
451
|
+
O(t.$slots, "thumbnails", C(y($.value)), () => [vt.value && J.value.length > 1 ? (w(), h("ul", We, [(w(!0), h(d, null, D(J.value, (e) => (w(), h("li", { key: e.id }, [g("button", {
|
|
452
|
+
type: "button",
|
|
453
|
+
class: S(["mwnf-essay__thumb", { "mwnf-essay__thumb--active": e.id === Y.value?.id }]),
|
|
454
|
+
onClick: (t) => mt(e.id)
|
|
455
|
+
}, [e.images?.[0]?.url ? (w(), h("img", {
|
|
456
|
+
key: 0,
|
|
457
|
+
src: e.images[0].url,
|
|
458
|
+
alt: "",
|
|
459
|
+
loading: "lazy"
|
|
460
|
+
}, null, 8, Ke)) : m("", !0)], 10, Ge)]))), 128))])) : !vt.value && Tt.value.length ? (w(), p(te, {
|
|
461
|
+
key: 1,
|
|
462
|
+
records: Tt.value
|
|
463
|
+
}, null, 8, ["records"])) : m("", !0)]),
|
|
464
|
+
O(t.$slots, "aside", C(y($.value)))
|
|
465
|
+
])) : m("", !0)]),
|
|
466
|
+
O(t.$slots, "after", C(y($.value)), () => [v(ee)]),
|
|
467
|
+
v(o, {
|
|
468
|
+
term: A(Ze),
|
|
469
|
+
html: et.value,
|
|
470
|
+
dir: A(ge),
|
|
471
|
+
onClose: A($e)
|
|
472
|
+
}, null, 8, [
|
|
473
|
+
"term",
|
|
474
|
+
"html",
|
|
475
|
+
"dir",
|
|
476
|
+
"onClose"
|
|
477
|
+
])
|
|
478
|
+
], 10, be)) : (w(), h("p", qe, k(A(n)("core.status.loading")), 1));
|
|
479
|
+
}
|
|
480
|
+
}, Ye = { class: "mwnf-link-list" }, Xe = {
|
|
481
|
+
key: 0,
|
|
482
|
+
class: "mwnf-link-list__back"
|
|
483
|
+
}, Ze = {
|
|
484
|
+
key: 1,
|
|
485
|
+
class: "mwnf-link-list__title"
|
|
486
|
+
}, Qe = {
|
|
487
|
+
key: 2,
|
|
488
|
+
class: "mwnf-link-list__groups"
|
|
489
|
+
}, $e = {
|
|
490
|
+
key: 0,
|
|
491
|
+
class: "mwnf-link-list__heading"
|
|
492
|
+
}, et = {
|
|
493
|
+
key: 1,
|
|
494
|
+
class: "mwnf-link-list__links"
|
|
495
|
+
}, tt = ["innerHTML"], nt = ["innerHTML"], rt = {
|
|
496
|
+
key: 3,
|
|
497
|
+
class: "mwnf-link-list__empty"
|
|
498
|
+
}, it = {
|
|
499
|
+
__name: "LinkListView",
|
|
500
|
+
props: { spec: {
|
|
501
|
+
type: Object,
|
|
502
|
+
required: !0
|
|
503
|
+
} },
|
|
504
|
+
setup(e) {
|
|
505
|
+
let t = e, { t: n } = he(), r = f(() => ((typeof t.spec.groups == "function" ? t.spec.groups({}) : t.spec.groups ?? []) ?? []).filter((e) => e.links?.length > 0)), i = f(() => t.spec.title ? n(t.spec.title) : ""), a = f(() => t.spec.back?.label ? n(t.spec.back.label) : ""), o = f(() => n(t.spec.empty ?? "catalogue.results.noResults"));
|
|
506
|
+
return (e, ee) => (w(), h("div", Ye, [
|
|
507
|
+
t.spec.back && a.value ? (w(), h("div", Xe, [v(s, {
|
|
508
|
+
to: t.spec.back.to,
|
|
509
|
+
href: t.spec.back.href
|
|
510
|
+
}, {
|
|
511
|
+
default: N(() => [_(" ← " + k(a.value), 1)]),
|
|
512
|
+
_: 1
|
|
513
|
+
}, 8, ["to", "href"])])) : m("", !0),
|
|
514
|
+
i.value ? (w(), h("h1", Ze, k(i.value), 1)) : m("", !0),
|
|
515
|
+
O(e.$slots, "before"),
|
|
516
|
+
r.value.length ? (w(), h("div", Qe, [(w(!0), h(d, null, D(r.value, (t, r) => (w(), h("section", {
|
|
517
|
+
key: r,
|
|
518
|
+
class: "mwnf-link-list__group"
|
|
519
|
+
}, [O(e.$slots, "group", { group: t }, () => [t.heading ? (w(), h("h2", $e, k(A(n)(t.heading)), 1)) : m("", !0), t.links?.length ? (w(), h("ul", et, [(w(!0), h(d, null, D(t.links, (e, t) => (w(), h("li", {
|
|
520
|
+
key: t,
|
|
521
|
+
class: "mwnf-link-list__item"
|
|
522
|
+
}, [v(s, {
|
|
523
|
+
class: "mwnf-link-list__link",
|
|
524
|
+
to: e.to,
|
|
525
|
+
href: e.href
|
|
526
|
+
}, {
|
|
527
|
+
default: N(() => [g("span", { innerHTML: A(B)(e.label) }, null, 8, tt)]),
|
|
528
|
+
_: 2
|
|
529
|
+
}, 1032, ["to", "href"]), e.note ? (w(), h("div", {
|
|
530
|
+
key: 0,
|
|
531
|
+
class: "mwnf-link-list__note",
|
|
532
|
+
innerHTML: A(B)(e.note)
|
|
533
|
+
}, null, 8, nt)) : m("", !0)]))), 128))])) : m("", !0)])]))), 128))])) : (w(), h("div", rt, k(o.value), 1)),
|
|
534
|
+
O(e.$slots, "after")
|
|
535
|
+
]));
|
|
536
|
+
}
|
|
537
|
+
}, at = { class: "mwnf-text-page" }, ot = {
|
|
538
|
+
key: 0,
|
|
539
|
+
class: "mwnf-text-page__back"
|
|
540
|
+
}, st = {
|
|
541
|
+
key: 1,
|
|
542
|
+
class: "mwnf-text-page__heading"
|
|
543
|
+
}, ct = { class: "mwnf-prose" }, lt = ["innerHTML"], ut = {
|
|
544
|
+
__name: "TextPageView",
|
|
545
|
+
props: { spec: {
|
|
546
|
+
type: Object,
|
|
547
|
+
required: !0
|
|
548
|
+
} },
|
|
549
|
+
setup(e) {
|
|
550
|
+
let t = e, { t: n } = he(), r = fe(), i = ge(), a = f(() => t.spec.heading ? n(t.spec.heading) : ""), o = f(() => typeof t.spec.body == "string"), ee = f(() => o.value ? t.spec.body : null), te = f(() => ({
|
|
551
|
+
t: n,
|
|
552
|
+
tr: (e, t) => r.tr(e, t, i.value, "en"),
|
|
553
|
+
language: i.value
|
|
554
|
+
})), c = f(() => o.value ? null : typeof t.spec.body == "function" ? z(t.spec.body(te.value)) : null), l = f(() => t.spec.back === !1 ? null : t.spec.back === !0 ? n("core.action.back") : t.spec.back?.label ? n(t.spec.back.label) : null);
|
|
555
|
+
return (e, n) => (w(), h("div", at, [
|
|
556
|
+
l.value && (t.spec.back === !0 || t.spec.back?.to || t.spec.back?.href) ? (w(), h("div", ot, [v(s, {
|
|
557
|
+
to: t.spec.back === !0 ? {} : t.spec.back?.to,
|
|
558
|
+
href: t.spec.back === !0 ? "#" : t.spec.back?.href
|
|
559
|
+
}, {
|
|
560
|
+
default: N(() => [_(" ← " + k(l.value), 1)]),
|
|
561
|
+
_: 1
|
|
562
|
+
}, 8, ["to", "href"])])) : m("", !0),
|
|
563
|
+
a.value ? (w(), h("h1", st, k(a.value), 1)) : m("", !0),
|
|
564
|
+
g("div", ct, [o.value ? (w(), p(A(F), {
|
|
565
|
+
key: 0,
|
|
566
|
+
keypath: ee.value
|
|
567
|
+
}, null, 8, ["keypath"])) : c.value ? (w(), h("div", {
|
|
568
|
+
key: 1,
|
|
569
|
+
innerHTML: c.value
|
|
570
|
+
}, null, 8, lt)) : m("", !0)])
|
|
571
|
+
]));
|
|
572
|
+
}
|
|
573
|
+
}, dt = { class: "mwnf-search-form__row-label" }, ft = ["onUpdate:modelValue"], J = ["value"], pt = ["onUpdate:modelValue"], Y = ["value"], mt = ["onUpdate:modelValue", "placeholder"], ht = {
|
|
574
|
+
key: 0,
|
|
575
|
+
class: "mwnf-search-form__dates"
|
|
576
|
+
}, X = {
|
|
577
|
+
key: 1,
|
|
578
|
+
class: "mwnf-facet"
|
|
579
|
+
}, gt = { class: "mwnf-facet__label" }, _t = { value: "" }, vt = ["value"], Z = {
|
|
580
|
+
key: 0,
|
|
581
|
+
class: "mwnf-search-form__dates"
|
|
582
|
+
}, yt = { class: "mwnf-search-form__radio-choice" }, Q = ["value"], bt = ["onUpdate:modelValue", "disabled"], xt = ["onUpdate:modelValue"], St = { class: "mwnf-facet__label" }, Ct = {
|
|
583
|
+
key: 0,
|
|
584
|
+
class: "mwnf-search-form__how-to"
|
|
585
|
+
}, wt = {
|
|
586
|
+
__name: "SearchFormView",
|
|
587
|
+
props: { spec: {
|
|
588
|
+
type: Object,
|
|
589
|
+
required: !0
|
|
590
|
+
} },
|
|
591
|
+
setup(e) {
|
|
592
|
+
let t = e, { t: n } = he(), r = G(), i = f(() => t.spec), a = f(() => i.value.mode), o = f(() => i.value.entity ? se(i.value.entity).value ?? [] : []), ee = f(() => i.value.dates === "buckets"), te = f(() => {
|
|
593
|
+
let e = i.value.dates;
|
|
594
|
+
if (!e || e === "buckets") return null;
|
|
595
|
+
let t = e.presets;
|
|
596
|
+
return typeof t == "function" ? t() : t ?? L();
|
|
597
|
+
});
|
|
598
|
+
function c(e) {
|
|
599
|
+
return (e ?? []).map((e) => ({
|
|
600
|
+
value: e,
|
|
601
|
+
label: String(e)
|
|
602
|
+
}));
|
|
603
|
+
}
|
|
604
|
+
let x = (e) => n(i.value.eraWords?.[e] ?? e), ne = f(() => ee.value ? ve(o.value, x) : []), ae = f(() => ee.value ? ne.value : c(te.value?.from)), F = f(() => ee.value ? ne.value : c(te.value?.to)), oe = f(() => !!i.value.dates), I = E(""), R = E(""), ce = i.value.language ? _e(i.value.language) : null, z = f(() => ce?.languages.value ?? []), B = ce?.language ?? E(""), le = f(() => Object.fromEntries((i.value.facets ?? []).filter((e) => !e.options && e.type !== "year").map((e) => [e.key, { field: e.field ?? e.key }]))), V = pe(o, le), ue = f(() => {
|
|
605
|
+
let e = {};
|
|
606
|
+
for (let t of i.value.facets ?? []) e[t.key] = t.options ?? V.value[t.key] ?? [];
|
|
607
|
+
return e;
|
|
608
|
+
}), de = [{
|
|
609
|
+
key: "AND",
|
|
610
|
+
label: "catalogue.search.and"
|
|
611
|
+
}, {
|
|
612
|
+
key: "OR",
|
|
613
|
+
label: "catalogue.search.or"
|
|
614
|
+
}], fe = [
|
|
615
|
+
"catalogue.search.keywordOne",
|
|
616
|
+
"catalogue.search.keywordTwo",
|
|
617
|
+
"catalogue.search.keywordThree"
|
|
618
|
+
], H = f(() => i.value.operators ?? de), me = E(Array.from({ length: i.value.rows ?? 3 }, () => ({
|
|
619
|
+
keyword: "",
|
|
620
|
+
field: i.value.fields?.[0]?.key ?? "",
|
|
621
|
+
cond: (i.value.operators ?? de)[0].key
|
|
622
|
+
})));
|
|
623
|
+
function ge(e) {
|
|
624
|
+
return fe[e] ? n(fe[e]) : "";
|
|
625
|
+
}
|
|
626
|
+
let U = E(i.value.facets?.[0]?.key ?? ""), W = T(Object.fromEntries((i.value.facets ?? []).map((e) => [e.key, ""]))), ye = T(Object.fromEntries((i.value.extras ?? []).map((e) => [e.key, !1])));
|
|
627
|
+
function K() {
|
|
628
|
+
let e = {};
|
|
629
|
+
for (let t of i.value.extras ?? []) ye[t.key] && (e[t.key] = "1");
|
|
630
|
+
return e;
|
|
631
|
+
}
|
|
632
|
+
function q(e) {
|
|
633
|
+
return r.push({
|
|
634
|
+
name: i.value.target,
|
|
635
|
+
query: e
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
function be() {
|
|
639
|
+
let e = {};
|
|
640
|
+
if (a.value === "rows") me.value.forEach((t, n) => {
|
|
641
|
+
if (t.keyword) {
|
|
642
|
+
if (n === 0) e.q = t.keyword, t.field && (e.field = t.field);
|
|
643
|
+
else {
|
|
644
|
+
let r = n + 1;
|
|
645
|
+
e[`q${r}`] = t.keyword, t.field && (e[`field${r}`] = t.field), e[`op${r}`] = t.cond;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}), I.value && (e.from = String(I.value)), R.value && (e.to = String(R.value)), B.value && (e.searchlanguage = B.value);
|
|
649
|
+
else if (a.value === "radio") {
|
|
650
|
+
let t = U.value, n = t ? W[t] : "";
|
|
651
|
+
n && (e[t] = String(n));
|
|
652
|
+
}
|
|
653
|
+
return Object.assign(e, K()), q(e);
|
|
654
|
+
}
|
|
655
|
+
function xe(e, t) {
|
|
656
|
+
if (t !== "" && t != null) return q({
|
|
657
|
+
[e]: String(t),
|
|
658
|
+
...K()
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
function Se() {
|
|
662
|
+
return q(K());
|
|
663
|
+
}
|
|
664
|
+
let Ce = f(() => a.value === "facets" ? "immediate" : "apply"), we = f(() => a.value === "radio" ? "core.action.browse" : "core.action.search"), Te = f(() => n(i.value.submitLabel ?? we.value)), Ee = f(() => n(i.value.showAllLabel ?? "core.action.reset")), De = f(() => ({
|
|
665
|
+
mode: a.value,
|
|
666
|
+
submit: be,
|
|
667
|
+
showAll: Se
|
|
668
|
+
}));
|
|
669
|
+
return (e, t) => (w(), h("section", { class: S(["mwnf-search-form", `mwnf-search-form--${a.value}`]) }, [
|
|
670
|
+
O(e.$slots, "intro", C(y(De.value))),
|
|
671
|
+
O(e.$slots, "before", C(y(De.value))),
|
|
672
|
+
v(u, {
|
|
673
|
+
class: "mwnf-search-form__panel",
|
|
674
|
+
mode: Ce.value,
|
|
675
|
+
"apply-label": Te.value,
|
|
676
|
+
"reset-label": Ee.value,
|
|
677
|
+
onApply: be,
|
|
678
|
+
onReset: Se
|
|
679
|
+
}, {
|
|
680
|
+
default: N(() => [
|
|
681
|
+
a.value === "rows" ? (w(), h(d, { key: 0 }, [
|
|
682
|
+
(w(!0), h(d, null, D(me.value, (e, t) => (w(), h("div", {
|
|
683
|
+
key: t,
|
|
684
|
+
class: "mwnf-search-form__row"
|
|
685
|
+
}, [
|
|
686
|
+
g("span", dt, k(ge(t)), 1),
|
|
687
|
+
t > 0 ? P((w(), h("select", {
|
|
688
|
+
key: 0,
|
|
689
|
+
"onUpdate:modelValue": (t) => e.cond = t,
|
|
690
|
+
class: "mwnf-facet__select mwnf-search-form__operator"
|
|
691
|
+
}, [(w(!0), h(d, null, D(H.value, (e) => (w(), h("option", {
|
|
692
|
+
key: e.key,
|
|
693
|
+
value: e.key
|
|
694
|
+
}, k(A(n)(e.label)), 9, J))), 128))], 8, ft)), [[j, e.cond]]) : m("", !0),
|
|
695
|
+
P(g("select", {
|
|
696
|
+
"onUpdate:modelValue": (t) => e.field = t,
|
|
697
|
+
class: "mwnf-facet__select mwnf-search-form__field"
|
|
698
|
+
}, [(w(!0), h(d, null, D(i.value.fields ?? [], (e) => (w(), h("option", {
|
|
699
|
+
key: e.key,
|
|
700
|
+
value: e.key
|
|
701
|
+
}, k(A(n)(e.label)), 9, Y))), 128))], 8, pt), [[j, e.field]]),
|
|
702
|
+
P(g("input", {
|
|
703
|
+
"onUpdate:modelValue": (t) => e.keyword = t,
|
|
704
|
+
type: "text",
|
|
705
|
+
class: "mwnf-search-form__keyword",
|
|
706
|
+
placeholder: A(n)("catalogue.search.keywordPlaceholder")
|
|
707
|
+
}, null, 8, mt), [[M, e.keyword]])
|
|
708
|
+
]))), 128)),
|
|
709
|
+
oe.value ? (w(), h("div", ht, [v(l, {
|
|
710
|
+
modelValue: I.value,
|
|
711
|
+
"onUpdate:modelValue": t[0] ||= (e) => I.value = e,
|
|
712
|
+
label: A(n)("catalogue.facet.dateFrom"),
|
|
713
|
+
options: ae.value,
|
|
714
|
+
"any-label": "—"
|
|
715
|
+
}, null, 8, [
|
|
716
|
+
"modelValue",
|
|
717
|
+
"label",
|
|
718
|
+
"options"
|
|
719
|
+
]), v(l, {
|
|
720
|
+
modelValue: R.value,
|
|
721
|
+
"onUpdate:modelValue": t[1] ||= (e) => R.value = e,
|
|
722
|
+
label: A(n)("catalogue.facet.dateTo"),
|
|
723
|
+
options: F.value,
|
|
724
|
+
"any-label": "—"
|
|
725
|
+
}, null, 8, [
|
|
726
|
+
"modelValue",
|
|
727
|
+
"label",
|
|
728
|
+
"options"
|
|
729
|
+
])])) : m("", !0),
|
|
730
|
+
i.value.language ? (w(), h("label", X, [g("span", gt, k(A(n)("catalogue.search.language")), 1), P(g("select", {
|
|
731
|
+
"onUpdate:modelValue": t[2] ||= (e) => b(B) ? B.value = e : null,
|
|
732
|
+
class: "mwnf-facet__select mwnf-search-form__language"
|
|
733
|
+
}, [g("option", _t, k(A(n)("catalogue.search.anyLanguage")), 1), (w(!0), h(d, null, D(z.value, (e) => (w(), h("option", {
|
|
734
|
+
key: e,
|
|
735
|
+
value: e
|
|
736
|
+
}, k(e.toUpperCase()), 9, vt))), 128))], 512), [[j, A(B)]])])) : m("", !0)
|
|
737
|
+
], 64)) : a.value === "facets" ? (w(), h(d, { key: 1 }, [(w(!0), h(d, null, D(i.value.facets ?? [], (e) => (w(), p(l, {
|
|
738
|
+
key: e.key,
|
|
739
|
+
label: e.label ? A(n)(e.label) : "",
|
|
740
|
+
options: ue.value[e.key] ?? [],
|
|
741
|
+
"model-value": W[e.key],
|
|
742
|
+
"onUpdate:modelValue": (t) => xe(e.key, t)
|
|
743
|
+
}, null, 8, [
|
|
744
|
+
"label",
|
|
745
|
+
"options",
|
|
746
|
+
"model-value",
|
|
747
|
+
"onUpdate:modelValue"
|
|
748
|
+
]))), 128)), oe.value ? (w(), h("div", Z, [v(l, {
|
|
749
|
+
"model-value": I.value,
|
|
750
|
+
label: A(n)("catalogue.facet.startDate"),
|
|
751
|
+
options: ae.value,
|
|
752
|
+
"onUpdate:modelValue": t[3] ||= (e) => {
|
|
753
|
+
I.value = e, xe("from", e);
|
|
754
|
+
}
|
|
755
|
+
}, null, 8, [
|
|
756
|
+
"model-value",
|
|
757
|
+
"label",
|
|
758
|
+
"options"
|
|
759
|
+
]), v(l, {
|
|
760
|
+
"model-value": R.value,
|
|
761
|
+
label: A(n)("catalogue.facet.endDate"),
|
|
762
|
+
options: F.value,
|
|
763
|
+
"onUpdate:modelValue": t[4] ||= (e) => {
|
|
764
|
+
R.value = e, xe("to", e);
|
|
765
|
+
}
|
|
766
|
+
}, null, 8, [
|
|
767
|
+
"model-value",
|
|
768
|
+
"label",
|
|
769
|
+
"options"
|
|
770
|
+
])])) : m("", !0)], 64)) : a.value === "radio" ? (w(!0), h(d, { key: 2 }, D(i.value.facets ?? [], (e) => (w(), h("div", {
|
|
771
|
+
key: e.key,
|
|
772
|
+
class: "mwnf-search-form__radio-row"
|
|
773
|
+
}, [g("label", yt, [P(g("input", {
|
|
774
|
+
"onUpdate:modelValue": t[5] ||= (e) => U.value = e,
|
|
775
|
+
type: "radio",
|
|
776
|
+
name: "mwnf-search-form-filter",
|
|
777
|
+
value: e.key
|
|
778
|
+
}, null, 8, Q), [[ie, U.value]]), _(" " + k(e.label ? A(n)(e.label) : ""), 1)]), e.type === "year" ? P((w(), h("input", {
|
|
779
|
+
key: 1,
|
|
780
|
+
"onUpdate:modelValue": (t) => W[e.key] = t,
|
|
781
|
+
type: "number",
|
|
782
|
+
class: "mwnf-search-form__year",
|
|
783
|
+
disabled: U.value !== e.key
|
|
784
|
+
}, null, 8, bt)), [[M, W[e.key]]]) : (w(), p(l, {
|
|
785
|
+
key: 0,
|
|
786
|
+
modelValue: W[e.key],
|
|
787
|
+
"onUpdate:modelValue": (t) => W[e.key] = t,
|
|
788
|
+
options: ue.value[e.key] ?? [],
|
|
789
|
+
disabled: U.value !== e.key
|
|
790
|
+
}, null, 8, [
|
|
791
|
+
"modelValue",
|
|
792
|
+
"onUpdate:modelValue",
|
|
793
|
+
"options",
|
|
794
|
+
"disabled"
|
|
795
|
+
]))]))), 128)) : m("", !0),
|
|
796
|
+
(w(!0), h(d, null, D(i.value.extras ?? [], (e) => (w(), h("label", {
|
|
797
|
+
key: e.key,
|
|
798
|
+
class: "mwnf-facet mwnf-facet--checkbox"
|
|
799
|
+
}, [P(g("input", {
|
|
800
|
+
"onUpdate:modelValue": (t) => ye[e.key] = t,
|
|
801
|
+
type: "checkbox",
|
|
802
|
+
class: "mwnf-facet__checkbox"
|
|
803
|
+
}, null, 8, xt), [[re, ye[e.key]]]), g("span", St, k(A(n)(e.label)), 1)]))), 128)),
|
|
804
|
+
O(e.$slots, "extras", C(y(De.value)))
|
|
805
|
+
]),
|
|
806
|
+
_: 3
|
|
807
|
+
}, 8, [
|
|
808
|
+
"mode",
|
|
809
|
+
"apply-label",
|
|
810
|
+
"reset-label"
|
|
811
|
+
]),
|
|
812
|
+
i.value.howTo ? (w(), h("p", Ct, [v(s, { to: { name: i.value.howTo } }, {
|
|
813
|
+
default: N(() => [_(k(A(n)("catalogue.search.howTo")), 1)]),
|
|
814
|
+
_: 1
|
|
815
|
+
}, 8, ["to"])])) : m("", !0),
|
|
816
|
+
O(e.$slots, "actions", C(y(De.value)))
|
|
817
|
+
], 2));
|
|
818
|
+
}
|
|
101
819
|
};
|
|
102
|
-
export {
|
|
820
|
+
export { r as CatalogueResultsView, Je as EssayView, q as HomeView, it as LinkListView, n as PartnerListView, a as RecordView, wt as SearchFormView, ut as TextPageView, i as TimelineResultsView };
|