@museumwnf/viewer-layout 2.12.0 → 2.13.0

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