@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/views.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { n as e, t } from "./FeaturedRecord-Fe19w6_G.js";
2
- import { n, r, t as i } from "./TimelineResultsView-Bn4rC_Se.js";
3
- import { t as a } from "./RecordView-CBC7tBCX.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";
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 r = n, { t: i, locale: a } = he(), o = W(), s = f(() => ({
40
- ...o.home ?? {},
41
- ...ee(r)
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 te = f(() => (s.value.cards ?? []).map((e) => ({
54
+ let g = r(() => (m.value.cards ?? []).map((e) => ({
55
55
  ...e,
56
- title: e.title ? i(e.title) : "",
57
- description: e.description ? i(e.description) : "",
58
- action: e.action ? i(e.action) : ""
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) {
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 y = f(() => {
70
- let e = d.value, t = c.value;
69
+ let T = r(() => {
70
+ let e = S.value, t = _.value;
71
71
  if (!e || !t) return null;
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";
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 ? i(t.heading) : "",
75
- image: e[a]?.[0]?.url ?? "",
74
+ heading: t.heading ? c(t.heading) : "",
75
+ image: e[i]?.[0]?.url ?? "",
76
76
  imageAlt: ue(String(n)),
77
- eyebrow: String(_(t.eyebrow, e, g.value) ?? ""),
78
- name: V(String(n)),
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 ? i(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) => (w(), h("section", ye, [
88
- s.value.title || s.value.intro ? (w(), h("header", {
87
+ return (n, r) => (h(), o("section", ye, [
88
+ m.value.title || m.value.intro ? (h(), o("header", {
89
89
  key: 0,
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), {
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: s.value.intro
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")
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: n } = he(), r = fe(), i = ne();
154
- function a(e) {
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 l(e) {
157
+ function S(e) {
158
158
  return typeof e == "string" ? e : "themes";
159
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({
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: 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;
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 = 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;
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 ve(e) {
183
+ function W(e) {
184
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;
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 = f(() => ({
191
- node: M.value,
192
- text: _e.value,
193
- language: H.value,
194
- tree: T,
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: n,
197
- tr: (e, t) => r.tr(e, t, H.value, "en")
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 = 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 [];
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 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), {
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 = f(() => M.value ? j.value.about?.(M.value) ?? !1 : !1), at = f(() => !!it.value);
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] : !!j.value.aboutKeeps?.includes(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 = 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;
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 = 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) => {
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 = f(() => J.value.find((e) => e.id === pt.value) ?? J.value[0] ?? null);
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 = j.value.items?.route;
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 = j.value.route;
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 = r.tr(u, e.id, H.value, "en").name ?? e.internal_name ?? e.id;
273
+ let t = f.tr(C, e.id, z.value, "en").name ?? e.internal_name ?? e.id;
274
274
  return {
275
- name: V(String(t)),
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 = f(() => {
280
+ let _t = r(() => {
281
281
  let e = Y.value;
282
282
  if (!e) return null;
283
- let t = gt(e), n = j.value.items?.caption?.(e, M.value, G.value);
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 = f(() => !!j.value.panel), Z = f(() => {
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 = j.value.panel?.variants?.(e, G.value) ?? [];
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 = E(null);
306
- ae(Z, (e) => {
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 = f(() => Z.value.find((e) => e.id === yt.value) ?? Z.value[0] ?? null);
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 = f(() => {
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 = f(() => {
319
+ }), St = r(() => {
320
320
  let e = Y.value;
321
- return !e || !j.value.panel?.fields ? [] : j.value.panel.fields(e, M.value, G.value) ?? [];
322
- }), Ct = f(() => {
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 ? n(e.label) : "",
325
+ label: e.label ? d(e.label) : "",
326
326
  value: e.value
327
327
  }));
328
- }), wt = f(() => {
328
+ }), wt = r(() => {
329
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) ?? "";
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 = 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(() => ({
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: 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", {
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: S(["mwnf-essay", { "mwnf-essay--about": at.value }]),
358
- dir: A(ge) || void 0,
359
- onClick: r[0] ||= (...e) => A(Qe) && A(Qe)(...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
- 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, {
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: N(() => [_(k(ve(e)), 1)]),
367
+ default: E(() => [c(y(W(e)), 1)]),
368
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", {
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": A(n)(jt.value)
375
- }, [(w(!0), h(d, null, D(Dt.value, (t) => (w(), p(s, {
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: S(["mwnf-essay__tab", { "mwnf-essay__tab--active": t.id === e.id }])
378
+ class: p(["mwnf-essay__tab", { "mwnf-essay__tab--active": t.id === e.id }])
379
379
  }, {
380
- default: N(() => [_(k(ve(t)), 1)]),
380
+ default: E(() => [c(y(W(t)), 1)]),
381
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)])
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
- 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", {
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)) : m("", !0),
392
- O(t.$slots, "before-body", C(y($.value))),
393
- rt.value ? (w(), h("div", {
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)) : 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, {
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(B.value),
402
+ to: X(me.value),
403
403
  class: "mwnf-essay__nav-link mwnf-essay__nav-link--previous"
404
404
  }, {
405
- default: N(() => [_("← " + k(A(n)(Ot.value)), 1)]),
405
+ default: E(() => [c("← " + y(b(d)(Ot.value)), 1)]),
406
406
  _: 1
407
- }, 8, ["to"])) : (w(), h("span", Pe)), pe.value ? (w(), p(s, {
407
+ }, 8, ["to"])) : (h(), o("span", Pe)), R.value ? (h(), i(B, {
408
408
  key: 2,
409
- to: X(pe.value),
409
+ to: X(R.value),
410
410
  class: "mwnf-essay__nav-link mwnf-essay__nav-link--next"
411
411
  }, {
412
- default: N(() => [_(k(A(n)(kt.value)) + " →", 1)]),
412
+ default: E(() => [c(y(b(d)(kt.value)) + " →", 1)]),
413
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", {
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: S(["mwnf-essay__variant", { "mwnf-essay__variant--active": e.id === Q.value?.id }]),
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 ? (w(), h("img", {
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)) : m("", !0)], 10, Re)]))), 128))])) : m("", !0),
429
- g("h3", {
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
- (w(!0), h(d, null, D(Ct.value, (e, t) => (w(), h("p", {
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 ? (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", {
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)) : m("", !0),
442
- ht(Y.value) ? (w(), p(s, {
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: N(() => [_(k(A(n)(Mt.value)) + " →", 1)]),
447
+ default: E(() => [c(y(b(d)(Mt.value)) + " →", 1)]),
448
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", {
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: S(["mwnf-essay__thumb", { "mwnf-essay__thumb--active": e.id === Y.value?.id }]),
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 ? (w(), h("img", {
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)) : m("", !0)], 10, Ge)]))), 128))])) : !vt.value && Tt.value.length ? (w(), p(te, {
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"])) : 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),
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: A(ge),
471
- onClose: A($e)
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)) : (w(), h("p", qe, k(A(n)("core.status.loading")), 1));
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: 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, {
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: N(() => [_(" ← " + k(a.value), 1)]),
511
+ default: E(() => [c(" ← " + y(f.value), 1)]),
512
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", {
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
- }, [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", {
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
- }, [v(s, {
522
+ }, [l(B, {
523
523
  class: "mwnf-link-list__link",
524
524
  to: e.to,
525
525
  href: e.href
526
526
  }, {
527
- default: N(() => [g("span", { innerHTML: A(B)(e.label) }, null, 8, tt)]),
527
+ default: E(() => [s("span", { innerHTML: b(k)(e.label) }, null, 8, tt)]),
528
528
  _: 2
529
- }, 1032, ["to", "href"]), e.note ? (w(), h("div", {
529
+ }, 1032, ["to", "href"]), e.note ? (h(), o("div", {
530
530
  key: 0,
531
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")
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 } = 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(() => ({
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) => 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, {
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: N(() => [_(" ← " + k(l.value), 1)]),
560
+ default: E(() => [c(" ← " + y(_.value), 1)]),
561
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), {
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: ee.value
567
- }, null, 8, ["keypath"])) : c.value ? (w(), h("div", {
566
+ keypath: m.value
567
+ }, null, 8, ["keypath"])) : g.value ? (h(), o("div", {
568
568
  key: 1,
569
- innerHTML: c.value
570
- }, null, 8, lt)) : m("", !0)])
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: 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;
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 ?? L();
596
+ return typeof t == "function" ? t() : t ?? ie();
597
597
  });
598
- function c(e) {
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 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(() => {
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 i.value.facets ?? []) e[t.key] = t.options ?? V.value[t.key] ?? [];
606
+ for (let t of T.value.facets ?? []) e[t.key] = t.options ?? L.value[t.key] ?? [];
607
607
  return e;
608
- }), de = [{
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
- }], fe = [
614
+ }], he = [
615
615
  "catalogue.search.keywordOne",
616
616
  "catalogue.search.keywordTwo",
617
617
  "catalogue.search.keywordThree"
618
- ], H = f(() => i.value.operators ?? de), me = E(Array.from({ length: i.value.rows ?? 3 }, () => ({
618
+ ], ge = r(() => T.value.operators ?? z), _e = g(Array.from({ length: T.value.rows ?? 3 }, () => ({
619
619
  keyword: "",
620
- field: i.value.fields?.[0]?.key ?? "",
621
- cond: (i.value.operators ?? de)[0].key
620
+ field: T.value.fields?.[0]?.key ?? "",
621
+ cond: (T.value.operators ?? z)[0].key
622
622
  })));
623
- function ge(e) {
624
- return fe[e] ? n(fe[e]) : "";
623
+ function ve(e) {
624
+ return he[e] ? f(he[e]) : "";
625
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])));
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 i.value.extras ?? []) ye[t.key] && (e[t.key] = "1");
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 r.push({
634
- name: i.value.target,
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 (a.value === "rows") me.value.forEach((t, n) => {
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
- }), 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] : "";
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 = 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,
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) => (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, {
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: N(() => [
681
- a.value === "rows" ? (w(), h(d, { key: 0 }, [
682
- (w(!0), h(d, null, D(me.value, (e, t) => (w(), h("div", {
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
- g("span", dt, k(ge(t)), 1),
687
- t > 0 ? P((w(), h("select", {
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
- }, [(w(!0), h(d, null, D(H.value, (e) => (w(), h("option", {
691
+ }, [(h(!0), o(n, null, _(ge.value, (e) => (h(), o("option", {
692
692
  key: e.key,
693
693
  value: e.key
694
- }, k(A(n)(e.label)), 9, J))), 128))], 8, ft)), [[j, e.cond]]) : m("", !0),
695
- P(g("select", {
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
- }, [(w(!0), h(d, null, D(i.value.fields ?? [], (e) => (w(), h("option", {
698
+ }, [(h(!0), o(n, null, _(T.value.fields ?? [], (e) => (h(), o("option", {
699
699
  key: e.key,
700
700
  value: e.key
701
- }, k(A(n)(e.label)), 9, Y))), 128))], 8, pt), [[j, e.field]]),
702
- P(g("input", {
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: A(n)("catalogue.search.keywordPlaceholder")
707
- }, null, 8, mt), [[M, e.keyword]])
706
+ placeholder: b(f)("catalogue.search.keywordPlaceholder")
707
+ }, null, 8, mt), [[w, e.keyword]])
708
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,
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
- ]), 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,
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
- ])])) : 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,
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
- }, [g("option", _t, k(A(n)("catalogue.search.anyLanguage")), 1), (w(!0), h(d, null, D(z.value, (e) => (w(), h("option", {
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
- }, 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, {
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 ? A(n)(e.label) : "",
740
- options: ue.value[e.key] ?? [],
741
- "model-value": W[e.key],
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)), oe.value ? (w(), h("div", Z, [v(l, {
749
- "model-value": I.value,
750
- label: A(n)("catalogue.facet.startDate"),
751
- options: ae.value,
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
- I.value = e, xe("from", e);
753
+ j.value = e, xe("from", e);
754
754
  }
755
755
  }, null, 8, [
756
756
  "model-value",
757
757
  "label",
758
758
  "options"
759
- ]), v(l, {
760
- "model-value": R.value,
761
- label: A(n)("catalogue.facet.endDate"),
762
- options: F.value,
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
- R.value = e, xe("to", e);
764
+ M.value = e, xe("to", e);
765
765
  }
766
766
  }, null, 8, [
767
767
  "model-value",
768
768
  "label",
769
769
  "options"
770
- ])])) : m("", !0)], 64)) : a.value === "radio" ? (w(!0), h(d, { key: 2 }, D(i.value.facets ?? [], (e) => (w(), h("div", {
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
- }, [g("label", yt, [P(g("input", {
774
- "onUpdate:modelValue": t[5] ||= (e) => U.value = 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), [[ie, U.value]]), _(" " + k(e.label ? A(n)(e.label) : ""), 1)]), e.type === "year" ? P((w(), h("input", {
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) => W[e.key] = t,
780
+ "onUpdate:modelValue": (t) => H[e.key] = t,
781
781
  type: "number",
782
782
  class: "mwnf-search-form__year",
783
- disabled: U.value !== e.key
784
- }, null, 8, bt)), [[M, W[e.key]]]) : (w(), p(l, {
783
+ disabled: V.value !== e.key
784
+ }, null, 8, bt)), [[w, H[e.key]]]) : (h(), i(W, {
785
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
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)) : m("", !0),
796
- (w(!0), h(d, null, D(i.value.extras ?? [], (e) => (w(), h("label", {
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
- }, [P(g("input", {
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), [[re, ye[e.key]]]), g("span", St, k(A(n)(e.label)), 1)]))), 128)),
804
- O(e.$slots, "extras", C(y(De.value)))
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
- i.value.howTo ? (w(), h("p", Ct, [v(s, { to: { name: i.value.howTo } }, {
813
- default: N(() => [_(k(A(n)("catalogue.search.howTo")), 1)]),
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"])])) : m("", !0),
816
- O(e.$slots, "actions", C(y(De.value)))
815
+ }, 8, ["to"])])) : a("", !0),
816
+ v(e.$slots, "actions", m(u(De.value)))
817
817
  ], 2));
818
818
  }
819
819
  };
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 };
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 };