@museumwnf/viewer-layout 3.19.0 → 3.21.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.
@@ -1,5 +1,5 @@
1
- import { c as e, l as t, r as n, t as r, u as i } from "./MediaGallery-DeXLadYl.js";
2
- import { a, i as o, n as s, o as c, s as l, t as u } from "./TimelineEventList-QLk6KLMq.js";
1
+ import { d as e, i as t, l as n, n as r, u as i } from "./PartnerMap-BozCpzY8.js";
2
+ import { a, i as o, n as s, o as c, r as l, t as u } from "./TimelineEventList-B_lhlQOG.js";
3
3
  import { t as d } from "./GlossaryPopover-B7E6BsjS.js";
4
4
  import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as v, createTextVNode as y, createVNode as b, guardReactiveProps as x, isRef as S, mergeProps as C, normalizeClass as ee, normalizeProps as w, openBlock as T, reactive as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as te, toDisplayString as A, unref as j, useSlots as M, vModelCheckbox as N, vModelRadio as P, vModelSelect as F, vModelText as ne, watch as I, withCtx as L, withDirectives as R } from "vue";
5
5
  import { I18nText as z, NotFoundView as B, byId as V, centuryPresets as H, dateRange as re, entityRef as ie, eventDateLabel as U, glossaryEntries as ae, glossaryTermsForText as W, groupByCountry as G, md as K, mdInline as oe, partnerHierarchy as q, partnerView as J, renderBlock as se, renderInline as Y, renderPlain as X, sortChronological as Z, useCollectionTree as ce, useDataPackage as Q, useFacets as le, useGlossaryPopup as ue, useI18n as de, useListQuery as fe, useLocale as pe, usePagination as me, useRecordLanguage as he, useSearchLanguage as ge, useTimelineEvents as _e, yearBuckets as ve } from "@museumwnf/viewer-core";
@@ -49,8 +49,8 @@ var be = {
49
49
  default: ""
50
50
  }
51
51
  },
52
- setup(n) {
53
- let r = n, { t: i, locale: s } = de(), u = Q(), d = r.spec.entity ?? r.entity, S = p(() => r.spec), C = ie(d);
52
+ setup(e) {
53
+ let t = e, { t: r, locale: s } = de(), u = Q(), d = t.spec.entity ?? t.entity, S = p(() => t.spec), C = ie(d);
54
54
  d && u.loadTranslations(d, "en");
55
55
  let E = p(() => S.value.keys ?? [...Object.keys(S.value.facets ?? {}), ...D()]);
56
56
  function D() {
@@ -58,7 +58,7 @@ var be = {
58
58
  return e ? [e.begin ?? "begin", e.end ?? "end"] : [];
59
59
  }
60
60
  let { filters: M, page: N, active: P, apply: F, reset: ne, goToPage: I } = fe({ keys: E.value }), R = {
61
- t: i,
61
+ t: r,
62
62
  locale: s,
63
63
  tr: (e, t) => u.tr(e, t, s.value, "en"),
64
64
  renderInline: Y,
@@ -87,7 +87,7 @@ var be = {
87
87
  }), V = p(() => S.value.facetScope === "matching" ? B.value : C.value ?? []), H = le(V, () => S.value.facets ?? {}), U = me(B, {
88
88
  page: N,
89
89
  size: () => S.value.pageSize ?? 20
90
- }), ae = p(() => S.value.recordRoute ?? (r.entity ? `${r.entity}-detail` : "item"));
90
+ }), ae = p(() => S.value.recordRoute ?? (t.entity ? `${t.entity}-detail` : "item"));
91
91
  function W(e) {
92
92
  let t = R.tr(d, e.id).name ?? e.internal_name ?? e.id;
93
93
  return {
@@ -116,60 +116,60 @@ var be = {
116
116
  let e = S.value;
117
117
  return e.summary ? e.summary({
118
118
  ...K.value,
119
- t: i,
119
+ t: r,
120
120
  total: (C.value ?? []).length
121
121
  }) : [{
122
- label: i(e.summaryLabel ?? "catalogue.results.itemsFound"),
122
+ label: r(e.summaryLabel ?? "catalogue.results.itemsFound"),
123
123
  count: U.value.total
124
124
  }];
125
125
  }), q = p(() => S.value.filterMode ?? "apply"), J = p(() => S.value.controls ?? []), se = p(() => J.value.length > 0 || !!S.value.panel);
126
126
  function ce(e, t) {
127
127
  q.value === "immediate" ? F({ [e]: t }) : M[e] = t;
128
128
  }
129
- let ue = p(() => i(S.value.empty ?? "catalogue.results.noResultsFilter")), pe = p(() => S.value.variant === "grid"), he = p(() => ({
129
+ let ue = p(() => r(S.value.empty ?? "catalogue.results.noResultsFilter")), pe = p(() => S.value.variant === "grid"), he = p(() => ({
130
130
  window: 5,
131
131
  jump: !1,
132
132
  ends: !0,
133
133
  ...S.value.pagination ?? {}
134
134
  }));
135
- return (n, r) => (T(), g("section", { class: ee(["mwnf-catalogue", { "mwnf-catalogue--boxed": S.value.boxed }]) }, [
136
- k(n.$slots, "before", w(x(K.value))),
137
- S.value.title ? (T(), g("h1", be, A(j(i)(S.value.title)), 1)) : h("", !0),
138
- se.value || n.$slots.filters ? (T(), m(a, {
135
+ return (e, t) => (T(), g("section", { class: ee(["mwnf-catalogue", { "mwnf-catalogue--boxed": S.value.boxed }]) }, [
136
+ k(e.$slots, "before", w(x(K.value))),
137
+ S.value.title ? (T(), g("h1", be, A(j(r)(S.value.title)), 1)) : h("", !0),
138
+ se.value || e.$slots.filters ? (T(), m(o, {
139
139
  key: 1,
140
140
  class: "mwnf-catalogue__filters",
141
141
  mode: q.value,
142
- title: S.value.filterTitle ? j(i)(S.value.filterTitle) : "",
143
- "reset-label": S.value.resetLabel ? j(i)(S.value.resetLabel) : "",
144
- onApply: r[2] ||= (e) => j(F)(),
145
- onReset: r[3] ||= (e) => j(ne)()
142
+ title: S.value.filterTitle ? j(r)(S.value.filterTitle) : "",
143
+ "reset-label": S.value.resetLabel ? j(r)(S.value.resetLabel) : "",
144
+ onApply: t[2] ||= (e) => j(F)(),
145
+ onReset: t[3] ||= (e) => j(ne)()
146
146
  }, {
147
- default: L(() => [(T(!0), g(f, null, O(J.value, (e) => (T(), g(f, { key: e.key }, [e.type === "year" ? (T(), g("label", xe, [e.label ? (T(), g("span", Se, A(j(i)(e.label)), 1)) : h("", !0), _("input", {
147
+ default: L(() => [(T(!0), g(f, null, O(J.value, (e) => (T(), g(f, { key: e.key }, [e.type === "year" ? (T(), g("label", xe, [e.label ? (T(), g("span", Se, A(j(r)(e.label)), 1)) : h("", !0), _("input", {
148
148
  type: "number",
149
149
  class: "mwnf-facet__select",
150
150
  value: j(M)[e.key],
151
- placeholder: e.placeholder ? j(i)(e.placeholder) : "",
151
+ placeholder: e.placeholder ? j(r)(e.placeholder) : "",
152
152
  onInput: (t) => j(M)[e.key] = t.target.value,
153
- onChange: r[0] ||= (e) => q.value === "immediate" ? j(F)() : null
154
- }, null, 40, Ce)])) : e.type === "query" ? (T(), g("label", we, [e.label ? (T(), g("span", Te, A(j(i)(e.label)), 1)) : h("", !0), _("input", {
153
+ onChange: t[0] ||= (e) => q.value === "immediate" ? j(F)() : null
154
+ }, null, 40, Ce)])) : e.type === "query" ? (T(), g("label", we, [e.label ? (T(), g("span", Te, A(j(r)(e.label)), 1)) : h("", !0), _("input", {
155
155
  type: "text",
156
156
  class: "mwnf-facet__select",
157
157
  value: j(M)[e.key],
158
- placeholder: e.placeholder ? j(i)(e.placeholder) : "",
158
+ placeholder: e.placeholder ? j(r)(e.placeholder) : "",
159
159
  onInput: (t) => j(M)[e.key] = t.target.value,
160
- onChange: r[1] ||= (e) => q.value === "immediate" ? j(F)() : null
160
+ onChange: t[1] ||= (e) => q.value === "immediate" ? j(F)() : null
161
161
  }, null, 40, Ee)])) : e.type === "checkbox" ? (T(), g("label", De, [_("input", {
162
162
  type: "checkbox",
163
163
  class: "mwnf-facet__checkbox",
164
164
  checked: j(M)[e.key] === "1",
165
165
  onChange: (t) => ce(e.key, t.target.checked ? "1" : "")
166
- }, null, 40, Oe), e.label ? (T(), g("span", ke, A(j(i)(e.label)), 1)) : h("", !0)])) : (T(), m(c, {
166
+ }, null, 40, Oe), e.label ? (T(), g("span", ke, A(j(r)(e.label)), 1)) : h("", !0)])) : (T(), m(a, {
167
167
  key: 3,
168
168
  "model-value": j(M)[e.key],
169
- label: e.label ? j(i)(e.label) : "",
169
+ label: e.label ? j(r)(e.label) : "",
170
170
  options: j(H)[e.key] ?? [],
171
- placeholder: e.placeholder ? j(i)(e.placeholder) : "",
172
- "any-label": e.anyLabel ? j(i)(e.anyLabel) : "",
171
+ placeholder: e.placeholder ? j(r)(e.placeholder) : "",
172
+ "any-label": e.anyLabel ? j(r)(e.anyLabel) : "",
173
173
  "hide-empty": !!e.hideEmpty,
174
174
  "onUpdate:modelValue": (t) => ce(e.key, t)
175
175
  }, null, 8, [
@@ -180,29 +180,29 @@ var be = {
180
180
  "any-label",
181
181
  "hide-empty",
182
182
  "onUpdate:modelValue"
183
- ]))], 64))), 128)), k(n.$slots, "filters", w(x(K.value)))]),
183
+ ]))], 64))), 128)), k(e.$slots, "filters", w(x(K.value)))]),
184
184
  _: 3
185
185
  }, 8, [
186
186
  "mode",
187
187
  "title",
188
188
  "reset-label"
189
189
  ])) : h("", !0),
190
- b(o, { parts: oe.value }, v({ _: 2 }, [n.$slots.actions ? {
190
+ b(l, { parts: oe.value }, v({ _: 2 }, [e.$slots.actions ? {
191
191
  name: "actions",
192
- fn: L(() => [k(n.$slots, "actions", w(x(K.value)))]),
192
+ fn: L(() => [k(e.$slots, "actions", w(x(K.value)))]),
193
193
  key: "0"
194
194
  } : void 0]), 1032, ["parts"]),
195
- _("div", Ae, [_("div", je, [k(n.$slots, "records", w(x({
195
+ _("div", Ae, [_("div", je, [k(e.$slots, "records", w(x({
196
196
  ...K.value,
197
197
  rows: G.value,
198
198
  empty: ue.value
199
- })), () => [(T(), m(te(pe.value ? e : t), {
199
+ })), () => [(T(), m(te(pe.value ? n : i), {
200
200
  records: G.value,
201
- "action-label": S.value.actionLabel ? j(i)(S.value.actionLabel) : ""
201
+ "action-label": S.value.actionLabel ? j(r)(S.value.actionLabel) : ""
202
202
  }, {
203
- empty: L(() => [k(n.$slots, "empty", w(x(K.value)), () => [y(A(ue.value), 1)])]),
203
+ empty: L(() => [k(e.$slots, "empty", w(x(K.value)), () => [y(A(ue.value), 1)])]),
204
204
  _: 3
205
- }, 8, ["records", "action-label"]))]), k(n.$slots, "pagination", w(x(K.value)), () => [n.$slots.pagination ? h("", !0) : (T(), m(l, {
205
+ }, 8, ["records", "action-label"]))]), k(e.$slots, "pagination", w(x(K.value)), () => [e.$slots.pagination ? h("", !0) : (T(), m(c, {
206
206
  key: 0,
207
207
  "page-info": j(U),
208
208
  window: he.value.window,
@@ -215,8 +215,8 @@ var be = {
215
215
  "jump",
216
216
  "ends",
217
217
  "onNavigate"
218
- ]))])]), n.$slots.aside ? (T(), g("aside", Me, [k(n.$slots, "aside", w(x(K.value)))])) : h("", !0)]),
219
- k(n.$slots, "after", w(x(K.value)))
218
+ ]))])]), e.$slots.aside ? (T(), g("aside", Me, [k(e.$slots, "aside", w(x(K.value)))])) : h("", !0)]),
219
+ k(e.$slots, "after", w(x(K.value)))
220
220
  ], 2));
221
221
  }
222
222
  }, Pe = ["dir"], Fe = {
@@ -267,8 +267,8 @@ var be = {
267
267
  required: !0
268
268
  }
269
269
  },
270
- setup(t) {
271
- let a = t, { t: o } = de(), s = Q(), c = M();
270
+ setup(i) {
271
+ let a = i, { t: o } = de(), s = Q(), c = M();
272
272
  function l(e) {
273
273
  return !!e && typeof e.walk == "function" && typeof e.children == "function";
274
274
  }
@@ -477,25 +477,25 @@ var be = {
477
477
  onClick: s[0] ||= (...e) => j(ye) && j(ye)(...e)
478
478
  }, [
479
479
  k(a.$slots, "header", w(x($.value)), () => [
480
- Et.value.length ? (T(), g("p", Fe, [_("span", Ie, A(j(o)(At.value)), 1), (T(!0), g(f, null, O(Et.value, (e) => (T(), g(f, { key: e.id }, [pt(e) ? (T(), m(i, {
480
+ Et.value.length ? (T(), g("p", Fe, [_("span", Ie, A(j(o)(At.value)), 1), (T(!0), g(f, null, O(Et.value, (t) => (T(), g(f, { key: t.id }, [pt(t) ? (T(), m(e, {
481
481
  key: 0,
482
- to: pt(e),
482
+ to: pt(t),
483
483
  class: "mwnf-essay__breadcrumb-link"
484
484
  }, {
485
- default: L(() => [y(A(J(e)), 1)]),
485
+ default: L(() => [y(A(J(t)), 1)]),
486
486
  _: 2
487
- }, 1032, ["to"])) : (T(), g("span", Le, A(J(e)), 1))], 64))), 128))])) : h("", !0),
487
+ }, 1032, ["to"])) : (T(), g("span", Le, A(J(t)), 1))], 64))), 128))])) : h("", !0),
488
488
  Dt.value.length > 1 ? (T(), g("div", {
489
489
  key: 1,
490
490
  class: "mwnf-essay__tabs",
491
491
  role: "tablist",
492
492
  "aria-label": j(o)(jt.value)
493
- }, [(T(!0), g(f, null, O(Dt.value, (e) => (T(), m(i, {
494
- key: e.id,
495
- to: pt(e),
496
- class: ee(["mwnf-essay__tab", { "mwnf-essay__tab--active": e.id === t.id }])
493
+ }, [(T(!0), g(f, null, O(Dt.value, (t) => (T(), m(e, {
494
+ key: t.id,
495
+ to: pt(t),
496
+ class: ee(["mwnf-essay__tab", { "mwnf-essay__tab--active": t.id === i.id }])
497
497
  }, {
498
- default: L(() => [y(A(J(e)), 1)]),
498
+ default: L(() => [y(A(J(t)), 1)]),
499
499
  _: 2
500
500
  }, 1032, ["to", "class"]))), 128))], 8, Re)) : h("", !0),
501
501
  _("h1", ze, [Ae.value ? (T(), g("span", Be, A(Ae.value), 1)) : h("", !0), _("span", { innerHTML: Se.value }, null, 8, Ve)])
@@ -515,14 +515,14 @@ var be = {
515
515
  }, null, 8, Ke)) : h("", !0),
516
516
  k(a.$slots, "after-body", w(x($.value))),
517
517
  Ee.value ? h("", !0) : k(a.$slots, "justifications", w(x($.value)), void 0, void 0, 3),
518
- Pt.value ? (T(), g("div", qe, [k(a.$slots, "navigation", w(x($.value)), () => [re.value ? (T(), m(i, {
518
+ Pt.value ? (T(), g("div", qe, [k(a.$slots, "navigation", w(x($.value)), () => [re.value ? (T(), m(e, {
519
519
  key: 0,
520
520
  to: pt(re.value),
521
521
  class: "mwnf-essay__nav-link mwnf-essay__nav-link--previous"
522
522
  }, {
523
523
  default: L(() => [y("← " + A(j(o)(Ot.value)), 1)]),
524
524
  _: 1
525
- }, 8, ["to"])) : (T(), g("span", Je)), U.value ? (T(), m(i, {
525
+ }, 8, ["to"])) : (T(), g("span", Je)), U.value ? (T(), m(e, {
526
526
  key: 2,
527
527
  to: pt(U.value),
528
528
  class: "mwnf-essay__nav-link mwnf-essay__nav-link--next"
@@ -557,7 +557,7 @@ var be = {
557
557
  class: "mwnf-essay__panel-justification mwnf-sheet__block",
558
558
  innerHTML: wt.value
559
559
  }, null, 8, rt)) : h("", !0),
560
- ft(ut.value) ? (T(), m(i, {
560
+ ft(ut.value) ? (T(), m(e, {
561
561
  key: 2,
562
562
  to: ft(ut.value),
563
563
  class: "mwnf-essay__panel-link"
@@ -575,13 +575,13 @@ var be = {
575
575
  src: e.images[0].url,
576
576
  alt: "",
577
577
  loading: "lazy"
578
- }, null, 8, ot)) : h("", !0)], 10, at)]))), 128))])) : !gt.value && Tt.value.length ? (T(), m(e, {
578
+ }, null, 8, ot)) : h("", !0)], 10, at)]))), 128))])) : !gt.value && Tt.value.length ? (T(), m(n, {
579
579
  key: 1,
580
580
  records: Tt.value
581
581
  }, null, 8, ["records"])) : h("", !0)]),
582
582
  k(a.$slots, "aside", w(x($.value)))
583
583
  ])) : h("", !0)]),
584
- k(a.$slots, "after", w(x($.value)), () => [b(n)]),
584
+ k(a.$slots, "after", w(x($.value)), () => [b(t)]),
585
585
  b(d, {
586
586
  term: j(ve),
587
587
  html: xe.value,
@@ -619,37 +619,37 @@ var be = {
619
619
  type: Object,
620
620
  required: !0
621
621
  } },
622
- setup(e) {
623
- let t = e, { t: n } = de(), r = p(() => ((typeof t.spec.groups == "function" ? t.spec.groups({}) : t.spec.groups ?? []) ?? []).filter((e) => e.links?.length > 0)), a = p(() => t.spec.title ? n(t.spec.title) : ""), o = p(() => t.spec.back?.label ? n(t.spec.back.label) : ""), s = p(() => n(t.spec.empty ?? "catalogue.results.noResults"));
624
- return (e, c) => (T(), g("div", lt, [
625
- t.spec.back && o.value ? (T(), g("div", ut, [b(i, {
626
- to: t.spec.back.to,
627
- href: t.spec.back.href
622
+ setup(t) {
623
+ let n = t, { t: r } = de(), i = p(() => ((typeof n.spec.groups == "function" ? n.spec.groups({}) : n.spec.groups ?? []) ?? []).filter((e) => e.links?.length > 0)), a = p(() => n.spec.title ? r(n.spec.title) : ""), o = p(() => n.spec.back?.label ? r(n.spec.back.label) : ""), s = p(() => r(n.spec.empty ?? "catalogue.results.noResults"));
624
+ return (t, c) => (T(), g("div", lt, [
625
+ n.spec.back && o.value ? (T(), g("div", ut, [b(e, {
626
+ to: n.spec.back.to,
627
+ href: n.spec.back.href
628
628
  }, {
629
629
  default: L(() => [y(" ← " + A(o.value), 1)]),
630
630
  _: 1
631
631
  }, 8, ["to", "href"])])) : h("", !0),
632
632
  a.value ? (T(), g("h1", dt, A(a.value), 1)) : h("", !0),
633
- k(e.$slots, "before"),
634
- r.value.length ? (T(), g("div", ft, [(T(!0), g(f, null, O(r.value, (t, r) => (T(), g("section", {
635
- key: r,
633
+ k(t.$slots, "before"),
634
+ i.value.length ? (T(), g("div", ft, [(T(!0), g(f, null, O(i.value, (n, i) => (T(), g("section", {
635
+ key: i,
636
636
  class: "mwnf-link-list__group"
637
- }, [k(e.$slots, "group", { group: t }, () => [t.heading ? (T(), g("h2", pt, A(j(n)(t.heading)), 1)) : h("", !0), t.links?.length ? (T(), g("ul", mt, [(T(!0), g(f, null, O(t.links, (e, t) => (T(), g("li", {
638
- key: t,
637
+ }, [k(t.$slots, "group", { group: n }, () => [n.heading ? (T(), g("h2", pt, A(j(r)(n.heading)), 1)) : h("", !0), n.links?.length ? (T(), g("ul", mt, [(T(!0), g(f, null, O(n.links, (t, n) => (T(), g("li", {
638
+ key: n,
639
639
  class: "mwnf-link-list__item"
640
- }, [b(i, {
640
+ }, [b(e, {
641
641
  class: "mwnf-link-list__link",
642
- to: e.to,
643
- href: e.href
642
+ to: t.to,
643
+ href: t.href
644
644
  }, {
645
- default: L(() => [_("span", { innerHTML: j(oe)(e.label) }, null, 8, ht)]),
645
+ default: L(() => [_("span", { innerHTML: j(oe)(t.label) }, null, 8, ht)]),
646
646
  _: 2
647
- }, 1032, ["to", "href"]), e.note ? (T(), g("div", {
647
+ }, 1032, ["to", "href"]), t.note ? (T(), g("div", {
648
648
  key: 0,
649
649
  class: "mwnf-link-list__note",
650
- innerHTML: j(oe)(e.note)
650
+ innerHTML: j(oe)(t.note)
651
651
  }, null, 8, gt)) : h("", !0)]))), 128))])) : h("", !0)])]))), 128))])) : (T(), g("div", _t, A(s.value), 1)),
652
- k(e.$slots, "after")
652
+ k(t.$slots, "after")
653
653
  ]));
654
654
  }
655
655
  }, yt = { class: "mwnf-partner-list" }, bt = {
@@ -869,16 +869,16 @@ var be = {
869
869
  type: Object,
870
870
  required: !0
871
871
  } },
872
- setup(e) {
873
- let t = e, { t: n } = de(), r = Q(), a = pe(), o = p(() => t.spec.heading ? n(t.spec.heading) : ""), s = p(() => typeof t.spec.body == "string"), c = p(() => s.value ? t.spec.body : null), l = p(() => ({
874
- t: n,
875
- tr: (e, t) => r.tr(e, t, a.value, "en"),
872
+ setup(t) {
873
+ let n = t, { t: r } = de(), i = Q(), a = pe(), o = p(() => n.spec.heading ? r(n.spec.heading) : ""), s = p(() => typeof n.spec.body == "string"), c = p(() => s.value ? n.spec.body : null), l = p(() => ({
874
+ t: r,
875
+ tr: (e, t) => i.tr(e, t, a.value, "en"),
876
876
  language: a.value
877
- })), u = p(() => s.value ? null : typeof t.spec.body == "function" ? K(t.spec.body(l.value)) : null), d = p(() => t.spec.back === !1 ? null : t.spec.back === !0 ? n("core.action.back") : t.spec.back?.label ? n(t.spec.back.label) : null);
878
- return (e, n) => (T(), g("div", Mt, [
879
- d.value && (t.spec.back === !0 || t.spec.back?.to || t.spec.back?.href) ? (T(), g("div", $, [b(i, {
880
- to: t.spec.back === !0 ? {} : t.spec.back?.to,
881
- href: t.spec.back === !0 ? "#" : t.spec.back?.href
877
+ })), u = p(() => s.value ? null : typeof n.spec.body == "function" ? K(n.spec.body(l.value)) : null), d = p(() => n.spec.back === !1 ? null : n.spec.back === !0 ? r("core.action.back") : n.spec.back?.label ? r(n.spec.back.label) : null);
878
+ return (t, r) => (T(), g("div", Mt, [
879
+ d.value && (n.spec.back === !0 || n.spec.back?.to || n.spec.back?.href) ? (T(), g("div", $, [b(e, {
880
+ to: n.spec.back === !0 ? {} : n.spec.back?.to,
881
+ href: n.spec.back === !0 ? "#" : n.spec.back?.href
882
882
  }, {
883
883
  default: L(() => [y(" ← " + A(d.value), 1)]),
884
884
  _: 1
@@ -911,9 +911,9 @@ var be = {
911
911
  type: Object,
912
912
  required: !0
913
913
  } },
914
- setup(e) {
915
- let t = e, { t: n } = de(), r = ye(), o = p(() => t.spec), s = p(() => o.value.mode), l = p(() => o.value.entity ? ie(o.value.entity).value ?? [] : []), u = p(() => o.value.dates === "buckets"), d = p(() => {
916
- let e = o.value.dates;
914
+ setup(t) {
915
+ let n = t, { t: r } = de(), i = ye(), s = p(() => n.spec), c = p(() => s.value.mode), l = p(() => s.value.entity ? ie(s.value.entity).value ?? [] : []), u = p(() => s.value.dates === "buckets"), d = p(() => {
916
+ let e = s.value.dates;
917
917
  if (!e || e === "buckets") return null;
918
918
  let t = e.presets;
919
919
  return typeof t == "function" ? t() : t ?? H();
@@ -924,9 +924,9 @@ var be = {
924
924
  label: String(e)
925
925
  }));
926
926
  }
927
- let C = p(() => u.value ? ve(l.value, n) : []), te = p(() => u.value ? C.value : v(d.value?.from)), M = p(() => u.value ? C.value : v(d.value?.to)), I = p(() => !!o.value.dates), z = D(""), B = D(""), V = o.value.language ? ge(o.value.language) : null, re = p(() => V?.languages.value ?? []), U = V?.language ?? D(""), ae = p(() => Object.fromEntries((o.value.facets ?? []).filter((e) => !e.options && e.type !== "year").map((e) => [e.key, { field: e.field ?? e.key }]))), W = le(l, ae), G = p(() => {
927
+ let C = p(() => u.value ? ve(l.value, r) : []), te = p(() => u.value ? C.value : v(d.value?.from)), M = p(() => u.value ? C.value : v(d.value?.to)), I = p(() => !!s.value.dates), z = D(""), B = D(""), V = s.value.language ? ge(s.value.language) : null, re = p(() => V?.languages.value ?? []), U = V?.language ?? D(""), ae = p(() => Object.fromEntries((s.value.facets ?? []).filter((e) => !e.options && e.type !== "year").map((e) => [e.key, { field: e.field ?? e.key }]))), W = le(l, ae), G = p(() => {
928
928
  let e = {};
929
- for (let t of o.value.facets ?? []) e[t.key] = t.options ?? W.value[t.key] ?? [];
929
+ for (let t of s.value.facets ?? []) e[t.key] = t.options ?? W.value[t.key] ?? [];
930
930
  return e;
931
931
  }), K = [{
932
932
  key: "AND",
@@ -938,29 +938,29 @@ var be = {
938
938
  "catalogue.search.keywordOne",
939
939
  "catalogue.search.keywordTwo",
940
940
  "catalogue.search.keywordThree"
941
- ], q = p(() => o.value.operators ?? K), J = D(Array.from({ length: o.value.rows ?? 3 }, () => ({
941
+ ], q = p(() => s.value.operators ?? K), J = D(Array.from({ length: s.value.rows ?? 3 }, () => ({
942
942
  keyword: "",
943
- field: o.value.fields?.[0]?.key ?? "",
944
- cond: (o.value.operators ?? K)[0].key
943
+ field: s.value.fields?.[0]?.key ?? "",
944
+ cond: (s.value.operators ?? K)[0].key
945
945
  })));
946
946
  function se(e) {
947
- return oe[e] ? n(oe[e]) : "";
947
+ return oe[e] ? r(oe[e]) : "";
948
948
  }
949
- let Y = D(o.value.facets?.[0]?.key ?? ""), X = E(Object.fromEntries((o.value.facets ?? []).map((e) => [e.key, ""]))), Z = E(Object.fromEntries((o.value.extras ?? []).map((e) => [e.key, !1])));
949
+ let Y = D(s.value.facets?.[0]?.key ?? ""), X = E(Object.fromEntries((s.value.facets ?? []).map((e) => [e.key, ""]))), Z = E(Object.fromEntries((s.value.extras ?? []).map((e) => [e.key, !1])));
950
950
  function ce() {
951
951
  let e = {};
952
- for (let t of o.value.extras ?? []) Z[t.key] && (e[t.key] = "1");
952
+ for (let t of s.value.extras ?? []) Z[t.key] && (e[t.key] = "1");
953
953
  return e;
954
954
  }
955
955
  function Q(e) {
956
- return r.push({
957
- name: o.value.target,
956
+ return i.push({
957
+ name: s.value.target,
958
958
  query: e
959
959
  });
960
960
  }
961
961
  function ue() {
962
962
  let e = {};
963
- if (s.value === "rows") J.value.forEach((t, n) => {
963
+ if (c.value === "rows") J.value.forEach((t, n) => {
964
964
  if (t.keyword) {
965
965
  if (n === 0) e.q = t.keyword, t.field && (e.field = t.field);
966
966
  else {
@@ -969,7 +969,7 @@ var be = {
969
969
  }
970
970
  }
971
971
  }), z.value && (e.from = String(z.value)), B.value && (e.to = String(B.value)), U.value && (e.lang = U.value);
972
- else if (s.value === "radio") {
972
+ else if (c.value === "radio") {
973
973
  let t = Y.value, n = t ? X[t] : "";
974
974
  n && (e[t] = String(n));
975
975
  }
@@ -984,15 +984,15 @@ var be = {
984
984
  function pe() {
985
985
  return Q(ce());
986
986
  }
987
- let me = p(() => s.value === "facets" ? "immediate" : "apply"), he = p(() => s.value === "radio" ? "core.action.browse" : "core.action.search"), _e = p(() => n(o.value.submitLabel ?? he.value)), be = p(() => n(o.value.showAllLabel ?? "core.action.reset")), xe = p(() => ({
988
- mode: s.value,
987
+ let me = p(() => c.value === "facets" ? "immediate" : "apply"), he = p(() => c.value === "radio" ? "core.action.browse" : "core.action.search"), _e = p(() => r(s.value.submitLabel ?? he.value)), be = p(() => r(s.value.showAllLabel ?? "core.action.reset")), xe = p(() => ({
988
+ mode: c.value,
989
989
  submit: ue,
990
990
  showAll: pe
991
991
  }));
992
- return (e, t) => (T(), g("section", { class: ee(["mwnf-search-form", `mwnf-search-form--${s.value}`]) }, [
993
- k(e.$slots, "intro", w(x(xe.value))),
994
- k(e.$slots, "before", w(x(xe.value))),
995
- b(a, {
992
+ return (t, n) => (T(), g("section", { class: ee(["mwnf-search-form", `mwnf-search-form--${c.value}`]) }, [
993
+ k(t.$slots, "intro", w(x(xe.value))),
994
+ k(t.$slots, "before", w(x(xe.value))),
995
+ b(o, {
996
996
  class: "mwnf-search-form__panel",
997
997
  mode: me.value,
998
998
  "apply-label": _e.value,
@@ -1001,7 +1001,7 @@ var be = {
1001
1001
  onReset: pe
1002
1002
  }, {
1003
1003
  default: L(() => [
1004
- s.value === "rows" ? (T(), g(f, { key: 0 }, [
1004
+ c.value === "rows" ? (T(), g(f, { key: 0 }, [
1005
1005
  (T(!0), g(f, null, O(J.value, (e, t) => (T(), g("div", {
1006
1006
  key: t,
1007
1007
  class: "mwnf-search-form__row"
@@ -1014,35 +1014,35 @@ var be = {
1014
1014
  }, [(T(!0), g(f, null, O(q.value, (e) => (T(), g("option", {
1015
1015
  key: e.key,
1016
1016
  value: e.key
1017
- }, A(j(n)(e.label)), 9, zt))), 128))], 8, Rt)), [[F, e.cond]]) : h("", !0),
1017
+ }, A(j(r)(e.label)), 9, zt))), 128))], 8, Rt)), [[F, e.cond]]) : h("", !0),
1018
1018
  R(_("select", {
1019
1019
  "onUpdate:modelValue": (t) => e.field = t,
1020
1020
  class: "mwnf-facet__select mwnf-search-form__field"
1021
- }, [(T(!0), g(f, null, O(o.value.fields ?? [], (e) => (T(), g("option", {
1021
+ }, [(T(!0), g(f, null, O(s.value.fields ?? [], (e) => (T(), g("option", {
1022
1022
  key: e.key,
1023
1023
  value: e.key
1024
- }, A(j(n)(e.label)), 9, Vt))), 128))], 8, Bt), [[F, e.field]]),
1024
+ }, A(j(r)(e.label)), 9, Vt))), 128))], 8, Bt), [[F, e.field]]),
1025
1025
  R(_("input", {
1026
1026
  "onUpdate:modelValue": (t) => e.keyword = t,
1027
1027
  type: "text",
1028
1028
  class: "mwnf-search-form__keyword",
1029
- placeholder: j(n)("catalogue.search.keywordPlaceholder")
1029
+ placeholder: j(r)("catalogue.search.keywordPlaceholder")
1030
1030
  }, null, 8, Ht), [[ne, e.keyword]])
1031
1031
  ]))), 128)),
1032
- I.value ? (T(), g("div", Ut, [b(c, {
1032
+ I.value ? (T(), g("div", Ut, [b(a, {
1033
1033
  modelValue: z.value,
1034
- "onUpdate:modelValue": t[0] ||= (e) => z.value = e,
1035
- label: j(n)("catalogue.facet.dateFrom"),
1034
+ "onUpdate:modelValue": n[0] ||= (e) => z.value = e,
1035
+ label: j(r)("catalogue.facet.dateFrom"),
1036
1036
  options: te.value,
1037
1037
  "any-label": "—"
1038
1038
  }, null, 8, [
1039
1039
  "modelValue",
1040
1040
  "label",
1041
1041
  "options"
1042
- ]), b(c, {
1042
+ ]), b(a, {
1043
1043
  modelValue: B.value,
1044
- "onUpdate:modelValue": t[1] ||= (e) => B.value = e,
1045
- label: j(n)("catalogue.facet.dateTo"),
1044
+ "onUpdate:modelValue": n[1] ||= (e) => B.value = e,
1045
+ label: j(r)("catalogue.facet.dateTo"),
1046
1046
  options: M.value,
1047
1047
  "any-label": "—"
1048
1048
  }, null, 8, [
@@ -1050,16 +1050,16 @@ var be = {
1050
1050
  "label",
1051
1051
  "options"
1052
1052
  ])])) : h("", !0),
1053
- o.value.language ? (T(), g("label", Wt, [_("span", Gt, A(j(n)("catalogue.search.language")), 1), R(_("select", {
1054
- "onUpdate:modelValue": t[2] ||= (e) => S(U) ? U.value = e : null,
1053
+ s.value.language ? (T(), g("label", Wt, [_("span", Gt, A(j(r)("catalogue.search.language")), 1), R(_("select", {
1054
+ "onUpdate:modelValue": n[2] ||= (e) => S(U) ? U.value = e : null,
1055
1055
  class: "mwnf-facet__select mwnf-search-form__language"
1056
- }, [_("option", Kt, A(j(n)("catalogue.search.anyLanguage")), 1), (T(!0), g(f, null, O(re.value, (e) => (T(), g("option", {
1056
+ }, [_("option", Kt, A(j(r)("catalogue.search.anyLanguage")), 1), (T(!0), g(f, null, O(re.value, (e) => (T(), g("option", {
1057
1057
  key: e,
1058
1058
  value: e
1059
1059
  }, A(e.toUpperCase()), 9, qt))), 128))], 512), [[F, j(U)]])])) : h("", !0)
1060
- ], 64)) : s.value === "facets" ? (T(), g(f, { key: 1 }, [(T(!0), g(f, null, O(o.value.facets ?? [], (e) => (T(), m(c, {
1060
+ ], 64)) : c.value === "facets" ? (T(), g(f, { key: 1 }, [(T(!0), g(f, null, O(s.value.facets ?? [], (e) => (T(), m(a, {
1061
1061
  key: e.key,
1062
- label: e.label ? j(n)(e.label) : "",
1062
+ label: e.label ? j(r)(e.label) : "",
1063
1063
  options: G.value[e.key] ?? [],
1064
1064
  "model-value": X[e.key],
1065
1065
  "onUpdate:modelValue": (t) => fe(e.key, t)
@@ -1068,43 +1068,43 @@ var be = {
1068
1068
  "options",
1069
1069
  "model-value",
1070
1070
  "onUpdate:modelValue"
1071
- ]))), 128)), I.value ? (T(), g("div", Jt, [b(c, {
1071
+ ]))), 128)), I.value ? (T(), g("div", Jt, [b(a, {
1072
1072
  "model-value": z.value,
1073
- label: j(n)("catalogue.facet.startDate"),
1073
+ label: j(r)("catalogue.facet.startDate"),
1074
1074
  options: te.value,
1075
- "onUpdate:modelValue": t[3] ||= (e) => {
1075
+ "onUpdate:modelValue": n[3] ||= (e) => {
1076
1076
  z.value = e, fe("from", e);
1077
1077
  }
1078
1078
  }, null, 8, [
1079
1079
  "model-value",
1080
1080
  "label",
1081
1081
  "options"
1082
- ]), b(c, {
1082
+ ]), b(a, {
1083
1083
  "model-value": B.value,
1084
- label: j(n)("catalogue.facet.endDate"),
1084
+ label: j(r)("catalogue.facet.endDate"),
1085
1085
  options: M.value,
1086
- "onUpdate:modelValue": t[4] ||= (e) => {
1086
+ "onUpdate:modelValue": n[4] ||= (e) => {
1087
1087
  B.value = e, fe("to", e);
1088
1088
  }
1089
1089
  }, null, 8, [
1090
1090
  "model-value",
1091
1091
  "label",
1092
1092
  "options"
1093
- ])])) : h("", !0)], 64)) : s.value === "radio" ? (T(!0), g(f, { key: 2 }, O(o.value.facets ?? [], (e) => (T(), g("div", {
1093
+ ])])) : h("", !0)], 64)) : c.value === "radio" ? (T(!0), g(f, { key: 2 }, O(s.value.facets ?? [], (e) => (T(), g("div", {
1094
1094
  key: e.key,
1095
1095
  class: "mwnf-search-form__radio-row"
1096
1096
  }, [_("label", Yt, [R(_("input", {
1097
- "onUpdate:modelValue": t[5] ||= (e) => Y.value = e,
1097
+ "onUpdate:modelValue": n[5] ||= (e) => Y.value = e,
1098
1098
  type: "radio",
1099
1099
  name: "mwnf-search-form-filter",
1100
1100
  value: e.key
1101
- }, null, 8, Xt), [[P, Y.value]]), y(" " + A(e.label ? j(n)(e.label) : ""), 1)]), e.type === "year" ? R((T(), g("input", {
1101
+ }, null, 8, Xt), [[P, Y.value]]), y(" " + A(e.label ? j(r)(e.label) : ""), 1)]), e.type === "year" ? R((T(), g("input", {
1102
1102
  key: 1,
1103
1103
  "onUpdate:modelValue": (t) => X[e.key] = t,
1104
1104
  type: "number",
1105
1105
  class: "mwnf-search-form__year",
1106
1106
  disabled: Y.value !== e.key
1107
- }, null, 8, Zt)), [[ne, X[e.key]]]) : (T(), m(c, {
1107
+ }, null, 8, Zt)), [[ne, X[e.key]]]) : (T(), m(a, {
1108
1108
  key: 0,
1109
1109
  modelValue: X[e.key],
1110
1110
  "onUpdate:modelValue": (t) => X[e.key] = t,
@@ -1116,15 +1116,15 @@ var be = {
1116
1116
  "options",
1117
1117
  "disabled"
1118
1118
  ]))]))), 128)) : h("", !0),
1119
- (T(!0), g(f, null, O(o.value.extras ?? [], (e) => (T(), g("label", {
1119
+ (T(!0), g(f, null, O(s.value.extras ?? [], (e) => (T(), g("label", {
1120
1120
  key: e.key,
1121
1121
  class: "mwnf-facet mwnf-facet--checkbox"
1122
1122
  }, [R(_("input", {
1123
1123
  "onUpdate:modelValue": (t) => Z[e.key] = t,
1124
1124
  type: "checkbox",
1125
1125
  class: "mwnf-facet__checkbox"
1126
- }, null, 8, Qt), [[N, Z[e.key]]]), _("span", $t, A(j(n)(e.label)), 1)]))), 128)),
1127
- k(e.$slots, "extras", w(x(xe.value)))
1126
+ }, null, 8, Qt), [[N, Z[e.key]]]), _("span", $t, A(j(r)(e.label)), 1)]))), 128)),
1127
+ k(t.$slots, "extras", w(x(xe.value)))
1128
1128
  ]),
1129
1129
  _: 3
1130
1130
  }, 8, [
@@ -1132,11 +1132,11 @@ var be = {
1132
1132
  "apply-label",
1133
1133
  "reset-label"
1134
1134
  ]),
1135
- o.value.howTo ? (T(), g("p", en, [b(i, { to: { name: o.value.howTo } }, {
1136
- default: L(() => [y(A(j(n)("catalogue.search.howTo")), 1)]),
1135
+ s.value.howTo ? (T(), g("p", en, [b(e, { to: { name: s.value.howTo } }, {
1136
+ default: L(() => [y(A(j(r)("catalogue.search.howTo")), 1)]),
1137
1137
  _: 1
1138
1138
  }, 8, ["to"])])) : h("", !0),
1139
- k(e.$slots, "actions", w(x(xe.value)))
1139
+ k(t.$slots, "actions", w(x(xe.value)))
1140
1140
  ], 2));
1141
1141
  }
1142
1142
  }, nn = { class: "mwnf-timeline" }, rn = {
@@ -1158,17 +1158,17 @@ var be = {
1158
1158
  type: Object,
1159
1159
  required: !0
1160
1160
  } },
1161
- setup(e) {
1162
- let t = e, { t: n } = de(), r = ye(), s = p(() => t.spec), d = p(() => !!s.value.entrance), v = _e({
1163
- scope: t.spec.scope ?? "country",
1164
- countryLabel: t.spec.countryLabel,
1165
- countryIdForCode: t.spec.countryIdForCode,
1166
- tr: t.spec.tr,
1167
- timelinesEntity: t.spec.timelinesEntity,
1168
- eventsEntity: t.spec.eventsEntity
1161
+ setup(t) {
1162
+ let n = t, { t: r } = de(), i = ye(), s = p(() => n.spec), d = p(() => !!s.value.entrance), v = _e({
1163
+ scope: n.spec.scope ?? "country",
1164
+ countryLabel: n.spec.countryLabel,
1165
+ countryIdForCode: n.spec.countryIdForCode,
1166
+ tr: n.spec.tr,
1167
+ timelinesEntity: n.spec.timelinesEntity,
1168
+ eventsEntity: n.spec.eventsEntity
1169
1169
  }), S = p(() => s.value.controls ?? []), C = p(() => s.value.keys ?? S.value.map((e) => e.key)), ee = (e) => S.value.some((t) => t.key === e), te = p(() => ({
1170
- t: n,
1171
- tr: t.spec.tr,
1170
+ t: r,
1171
+ tr: n.spec.tr,
1172
1172
  years: {
1173
1173
  min: B.value[0],
1174
1174
  max: B.value[1]
@@ -1185,16 +1185,16 @@ var be = {
1185
1185
  N.value = "";
1186
1186
  let e = !!F.begin && !!F.end;
1187
1187
  if (e && Number(F.begin) >= Number(F.end)) {
1188
- N.value = n(s.value.errorPeriod ?? "timeline.form.errorPeriod");
1188
+ N.value = r(s.value.errorPeriod ?? "timeline.form.errorPeriod");
1189
1189
  return;
1190
1190
  }
1191
1191
  if (!F.country && !e) {
1192
- N.value = n(s.value.errorSelect ?? "timeline.form.errorSelect");
1192
+ N.value = r(s.value.errorSelect ?? "timeline.form.errorSelect");
1193
1193
  return;
1194
1194
  }
1195
1195
  let t = {};
1196
1196
  for (let e of C.value) F[e] && (t[e] = F[e]);
1197
- r.push({
1197
+ i.push({
1198
1198
  name: s.value.route,
1199
1199
  query: t
1200
1200
  });
@@ -1222,14 +1222,14 @@ var be = {
1222
1222
  let t = s.value.countryLabel && e.country_id ? s.value.countryLabel(e.country_id) : "";
1223
1223
  return {
1224
1224
  id: e.id,
1225
- date: U(e, e.text, n),
1225
+ date: U(e, e.text, r),
1226
1226
  caption: t ? Y(String(t)) : "",
1227
1227
  description: e.text?.description ? se(String(e.text.description), { breaks: !0 }) : ""
1228
1228
  };
1229
1229
  }
1230
1230
  let re = p(() => V.value.rows.map((e) => (s.value.event ?? H)(e, te.value))), ie = p(() => (v.countries.value ?? []).map((e) => ({
1231
1231
  value: e.value,
1232
- label: e.value === "all" ? n("timeline.form.allCountries") : e.label
1232
+ label: e.value === "all" ? r("timeline.form.allCountries") : e.label
1233
1233
  }))), ae = p(() => s.value.collections?.(te.value) ?? []), W = p(() => {
1234
1234
  let e = {};
1235
1235
  for (let t of S.value) (t.key === "begin" || t.key === "end") && t.options && (typeof t.options == "function" ? e[t.key] = t.options(te.value) : e[t.key] = t.options);
@@ -1244,7 +1244,7 @@ var be = {
1244
1244
  pageInfo: V.value,
1245
1245
  countries: ie.value,
1246
1246
  collections: ae.value,
1247
- t: n,
1247
+ t: r,
1248
1248
  tr: s.value.tr
1249
1249
  })), K = p(() => {
1250
1250
  let e = s.value.gallery;
@@ -1265,43 +1265,43 @@ var be = {
1265
1265
  query: e
1266
1266
  },
1267
1267
  count: q.value,
1268
- label: n(s.value.gallery.label ?? "timeline.nav.seeGallery")
1268
+ label: r(s.value.gallery.label ?? "timeline.nav.seeGallery")
1269
1269
  };
1270
1270
  }), X = p(() => ({
1271
1271
  ...G.value,
1272
1272
  gallery: J.value
1273
1273
  })), Z = p(() => s.value.summary ? s.value.summary(X.value) : [{
1274
- label: n(s.value.summaryLabel ?? "timeline.results.eventsFound"),
1274
+ label: r(s.value.summaryLabel ?? "timeline.results.eventsFound"),
1275
1275
  count: V.value.total
1276
- }]), ce = p(() => n(s.value.empty ?? "timeline.results.noResults")), Q = p(() => ({
1276
+ }]), ce = p(() => r(s.value.empty ?? "timeline.results.noResults")), Q = p(() => ({
1277
1277
  window: 5,
1278
1278
  jump: !1,
1279
1279
  ends: !0,
1280
1280
  ...s.value.pagination ?? {}
1281
1281
  }));
1282
1282
  function le(e, t) {
1283
- return e.label ? n(e.label) : t ? n(t) : "";
1283
+ return e.label ? r(e.label) : t ? r(t) : "";
1284
1284
  }
1285
- return (e, t) => (T(), g("section", nn, [
1286
- k(e.$slots, "before", w(x(X.value))),
1287
- s.value.title ? (T(), g("h1", rn, A(j(n)(s.value.title)), 1)) : h("", !0),
1288
- b(a, {
1285
+ return (t, n) => (T(), g("section", nn, [
1286
+ k(t.$slots, "before", w(x(X.value))),
1287
+ s.value.title ? (T(), g("h1", rn, A(j(r)(s.value.title)), 1)) : h("", !0),
1288
+ b(o, {
1289
1289
  class: "mwnf-timeline__filters",
1290
- title: s.value.filterTitle ? j(n)(s.value.filterTitle) : "",
1291
- "apply-label": d.value ? j(n)(s.value.submitLabel ?? "core.action.search") : s.value.applyLabel ? j(n)(s.value.applyLabel) : "",
1292
- "reset-label": s.value.resetLabel ? j(n)(s.value.resetLabel) : "",
1293
- onApply: t[2] ||= (e) => d.value ? R() : j(P).apply(),
1294
- onReset: t[3] ||= (e) => d.value ? I() : j(P).reset()
1290
+ title: s.value.filterTitle ? j(r)(s.value.filterTitle) : "",
1291
+ "apply-label": d.value ? j(r)(s.value.submitLabel ?? "core.action.search") : s.value.applyLabel ? j(r)(s.value.applyLabel) : "",
1292
+ "reset-label": s.value.resetLabel ? j(r)(s.value.resetLabel) : "",
1293
+ onApply: n[2] ||= (e) => d.value ? R() : j(P).apply(),
1294
+ onReset: n[3] ||= (e) => d.value ? I() : j(P).reset()
1295
1295
  }, {
1296
- default: L(() => [(T(!0), g(f, null, O(S.value, (e) => (T(), g(f, { key: e.key }, [e.key === "country" ? (T(), m(c, {
1296
+ default: L(() => [(T(!0), g(f, null, O(S.value, (e) => (T(), g(f, { key: e.key }, [e.key === "country" ? (T(), m(a, {
1297
1297
  key: 0,
1298
1298
  "model-value": j(F).country,
1299
1299
  label: le(e, "catalogue.facet.country"),
1300
1300
  options: ie.value,
1301
- placeholder: e.placeholder ? j(n)(e.placeholder) : j(n)("catalogue.facet.selectCountry"),
1302
- "any-label": e.anyLabel ? j(n)(e.anyLabel) : "",
1301
+ placeholder: e.placeholder ? j(r)(e.placeholder) : j(r)("catalogue.facet.selectCountry"),
1302
+ "any-label": e.anyLabel ? j(r)(e.anyLabel) : "",
1303
1303
  "hide-empty": !!e.hideEmpty,
1304
- "onUpdate:modelValue": t[0] ||= (e) => j(F).country = e
1304
+ "onUpdate:modelValue": n[0] ||= (e) => j(F).country = e
1305
1305
  }, null, 8, [
1306
1306
  "model-value",
1307
1307
  "label",
@@ -1309,15 +1309,15 @@ var be = {
1309
1309
  "placeholder",
1310
1310
  "any-label",
1311
1311
  "hide-empty"
1312
- ])) : e.key === "collection" ? (T(), m(c, {
1312
+ ])) : e.key === "collection" ? (T(), m(a, {
1313
1313
  key: 1,
1314
1314
  "model-value": j(F).collection,
1315
1315
  label: le(e),
1316
1316
  options: ae.value,
1317
- placeholder: e.placeholder ? j(n)(e.placeholder) : "",
1318
- "any-label": e.anyLabel ? j(n)(e.anyLabel) : "",
1317
+ placeholder: e.placeholder ? j(r)(e.placeholder) : "",
1318
+ "any-label": e.anyLabel ? j(r)(e.anyLabel) : "",
1319
1319
  "hide-empty": !!e.hideEmpty,
1320
- "onUpdate:modelValue": t[1] ||= (e) => j(F).collection = e
1320
+ "onUpdate:modelValue": n[1] ||= (e) => j(F).collection = e
1321
1321
  }, null, 8, [
1322
1322
  "model-value",
1323
1323
  "label",
@@ -1325,13 +1325,13 @@ var be = {
1325
1325
  "placeholder",
1326
1326
  "any-label",
1327
1327
  "hide-empty"
1328
- ])) : (e.key === "begin" || e.key === "end") && W.value[e.key] ? (T(), m(c, {
1328
+ ])) : (e.key === "begin" || e.key === "end") && W.value[e.key] ? (T(), m(a, {
1329
1329
  key: 2,
1330
1330
  "model-value": j(F)[e.key],
1331
1331
  label: le(e, e.key === "begin" ? "catalogue.facet.startDate" : "catalogue.facet.endDate"),
1332
1332
  options: W.value[e.key],
1333
- placeholder: e.placeholder ? j(n)(e.placeholder) : j(n)(e.key === "begin" ? "timeline.form.fromYearHint" : "timeline.form.toYearHint"),
1334
- "any-label": e.anyLabel ? j(n)(e.anyLabel) : "",
1333
+ placeholder: e.placeholder ? j(r)(e.placeholder) : j(r)(e.key === "begin" ? "timeline.form.fromYearHint" : "timeline.form.toYearHint"),
1334
+ "any-label": e.anyLabel ? j(r)(e.anyLabel) : "",
1335
1335
  "hide-empty": !!e.hideEmpty,
1336
1336
  "onUpdate:modelValue": (t) => j(F)[e.key] = t
1337
1337
  }, null, 8, [
@@ -1346,7 +1346,7 @@ var be = {
1346
1346
  type: "number",
1347
1347
  class: "mwnf-facet__select",
1348
1348
  value: j(F)[e.key],
1349
- placeholder: e.placeholder ? j(n)(e.placeholder) : j(n)(e.key === "begin" ? "timeline.form.fromYearHint" : "timeline.form.toYearHint"),
1349
+ placeholder: e.placeholder ? j(r)(e.placeholder) : j(r)(e.key === "begin" ? "timeline.form.fromYearHint" : "timeline.form.toYearHint"),
1350
1350
  onInput: (t) => j(F)[e.key] = t.target.value
1351
1351
  }, null, 40, sn)]))], 64))), 128))]),
1352
1352
  _: 1
@@ -1357,20 +1357,20 @@ var be = {
1357
1357
  ]),
1358
1358
  d.value && N.value ? (T(), g("p", cn, A(N.value), 1)) : h("", !0),
1359
1359
  d.value ? h("", !0) : (T(), g(f, { key: 2 }, [
1360
- k(e.$slots, "summary", w(x(X.value)), () => [b(o, { parts: Z.value }, null, 8, ["parts"])]),
1361
- J.value ? (T(), m(i, {
1360
+ k(t.$slots, "summary", w(x(X.value)), () => [b(l, { parts: Z.value }, null, 8, ["parts"])]),
1361
+ J.value ? (T(), m(e, {
1362
1362
  key: 0,
1363
1363
  class: "mwnf-timeline__gallery",
1364
1364
  to: J.value.to
1365
1365
  }, {
1366
- default: L(() => [k(e.$slots, "cross-link", w(x(X.value)), () => [y(A(J.value.label), 1), J.value.count == null ? h("", !0) : (T(), g(f, { key: 0 }, [y(" (" + A(J.value.count) + ")", 1)], 64))])]),
1366
+ default: L(() => [k(t.$slots, "cross-link", w(x(X.value)), () => [y(A(J.value.label), 1), J.value.count == null ? h("", !0) : (T(), g(f, { key: 0 }, [y(" (" + A(J.value.count) + ")", 1)], 64))])]),
1367
1367
  _: 3
1368
1368
  }, 8, ["to"])) : h("", !0),
1369
- k(e.$slots, "event", w(x(X.value)), () => [b(u, { events: re.value }, {
1370
- empty: L(() => [k(e.$slots, "empty", w(x(X.value)), () => [y(A(ce.value), 1)])]),
1369
+ k(t.$slots, "event", w(x(X.value)), () => [b(u, { events: re.value }, {
1370
+ empty: L(() => [k(t.$slots, "empty", w(x(X.value)), () => [y(A(ce.value), 1)])]),
1371
1371
  _: 3
1372
1372
  }, 8, ["events"])]),
1373
- b(l, {
1373
+ b(c, {
1374
1374
  "page-info": j(V),
1375
1375
  window: Q.value.window,
1376
1376
  jump: Q.value.jump,
@@ -1384,7 +1384,7 @@ var be = {
1384
1384
  "onNavigate"
1385
1385
  ])
1386
1386
  ], 64)),
1387
- k(e.$slots, "after", w(x(X.value)))
1387
+ k(t.$slots, "after", w(x(X.value)))
1388
1388
  ]));
1389
1389
  }
1390
1390
  };