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