@museumwnf/viewer-layout 3.19.0 → 3.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FeaturedRecord-MjTQmZFW.js → FeaturedRecord-CNRUaZBY.js} +1 -1
- package/dist/{ItemDetailView-B5hE3Oof.js → ItemDetailView-5t8skbHY.js} +4 -4
- package/dist/{OnDisplayIn-zdKWIPTZ.js → OnDisplayIn-DdqVmd4F.js} +38 -38
- package/dist/{MediaGallery-DeXLadYl.js → PartnerMap-BozCpzY8.js} +76 -1
- package/dist/{RecordView-GckO9PmG.js → RecordView-Bi53L29_.js} +12 -12
- package/dist/{Theme-CrkjdQ9z.js → Theme-D17n73E8.js} +24 -24
- package/dist/TimelineEventList-B_lhlQOG.js +780 -0
- package/dist/{TimelineResultsView-BaIoSOCB.js → TimelineResultsView-BMg79eiB.js} +181 -181
- package/dist/{content-CzCospyc.js → content-DzEj-kdq.js} +13 -13
- package/dist/content.js +6 -6
- package/dist/dxa.js +314 -314
- package/dist/index.js +6 -6
- package/dist/standalone.js +543 -292
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +4 -4
- package/package.json +1 -1
- package/src/tokens.reference.css +2 -0
- package/dist/TimelineEventList-QLk6KLMq.js +0 -841
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a, i as o, n as s, o as c,
|
|
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(
|
|
53
|
-
let
|
|
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:
|
|
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 ?? (
|
|
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:
|
|
119
|
+
t: r,
|
|
120
120
|
total: (C.value ?? []).length
|
|
121
121
|
}) : [{
|
|
122
|
-
label:
|
|
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(() =>
|
|
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 (
|
|
136
|
-
k(
|
|
137
|
-
S.value.title ? (T(), g("h1", be, A(j(
|
|
138
|
-
se.value ||
|
|
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(
|
|
143
|
-
"reset-label": S.value.resetLabel ? j(
|
|
144
|
-
onApply:
|
|
145
|
-
onReset:
|
|
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(
|
|
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(
|
|
151
|
+
placeholder: e.placeholder ? j(r)(e.placeholder) : "",
|
|
152
152
|
onInput: (t) => j(M)[e.key] = t.target.value,
|
|
153
|
-
onChange:
|
|
154
|
-
}, null, 40, Ce)])) : e.type === "query" ? (T(), g("label", we, [e.label ? (T(), g("span", Te, A(j(
|
|
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(
|
|
158
|
+
placeholder: e.placeholder ? j(r)(e.placeholder) : "",
|
|
159
159
|
onInput: (t) => j(M)[e.key] = t.target.value,
|
|
160
|
-
onChange:
|
|
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(
|
|
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(
|
|
169
|
+
label: e.label ? j(r)(e.label) : "",
|
|
170
170
|
options: j(H)[e.key] ?? [],
|
|
171
|
-
placeholder: e.placeholder ? j(
|
|
172
|
-
"any-label": e.anyLabel ? j(
|
|
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(
|
|
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(
|
|
190
|
+
b(l, { parts: oe.value }, v({ _: 2 }, [e.$slots.actions ? {
|
|
191
191
|
name: "actions",
|
|
192
|
-
fn: L(() => [k(
|
|
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(
|
|
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 ?
|
|
199
|
+
})), () => [(T(), m(te(pe.value ? n : i), {
|
|
200
200
|
records: G.value,
|
|
201
|
-
"action-label": S.value.actionLabel ? j(
|
|
201
|
+
"action-label": S.value.actionLabel ? j(r)(S.value.actionLabel) : ""
|
|
202
202
|
}, {
|
|
203
|
-
empty: L(() => [k(
|
|
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(
|
|
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
|
-
]))])]),
|
|
219
|
-
k(
|
|
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(
|
|
271
|
-
let a =
|
|
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, (
|
|
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(
|
|
482
|
+
to: pt(t),
|
|
483
483
|
class: "mwnf-essay__breadcrumb-link"
|
|
484
484
|
}, {
|
|
485
|
-
default: L(() => [y(A(J(
|
|
485
|
+
default: L(() => [y(A(J(t)), 1)]),
|
|
486
486
|
_: 2
|
|
487
|
-
}, 1032, ["to"])) : (T(), g("span", Le, A(J(
|
|
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, (
|
|
494
|
-
key:
|
|
495
|
-
to: pt(
|
|
496
|
-
class: ee(["mwnf-essay__tab", { "mwnf-essay__tab--active":
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
623
|
-
let
|
|
624
|
-
return (
|
|
625
|
-
|
|
626
|
-
to:
|
|
627
|
-
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(
|
|
634
|
-
|
|
635
|
-
key:
|
|
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(
|
|
638
|
-
key:
|
|
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(
|
|
640
|
+
}, [b(e, {
|
|
641
641
|
class: "mwnf-link-list__link",
|
|
642
|
-
to:
|
|
643
|
-
href:
|
|
642
|
+
to: t.to,
|
|
643
|
+
href: t.href
|
|
644
644
|
}, {
|
|
645
|
-
default: L(() => [_("span", { innerHTML: j(oe)(
|
|
645
|
+
default: L(() => [_("span", { innerHTML: j(oe)(t.label) }, null, 8, ht)]),
|
|
646
646
|
_: 2
|
|
647
|
-
}, 1032, ["to", "href"]),
|
|
647
|
+
}, 1032, ["to", "href"]), t.note ? (T(), g("div", {
|
|
648
648
|
key: 0,
|
|
649
649
|
class: "mwnf-link-list__note",
|
|
650
|
-
innerHTML: j(oe)(
|
|
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(
|
|
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(
|
|
873
|
-
let
|
|
874
|
-
t:
|
|
875
|
-
tr: (e, t) =>
|
|
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
|
|
878
|
-
return (
|
|
879
|
-
d.value && (
|
|
880
|
-
to:
|
|
881
|
-
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(
|
|
915
|
-
let
|
|
916
|
-
let e =
|
|
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,
|
|
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
|
|
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(() =>
|
|
941
|
+
], q = p(() => s.value.operators ?? K), J = D(Array.from({ length: s.value.rows ?? 3 }, () => ({
|
|
942
942
|
keyword: "",
|
|
943
|
-
field:
|
|
944
|
-
cond: (
|
|
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] ?
|
|
947
|
+
return oe[e] ? r(oe[e]) : "";
|
|
948
948
|
}
|
|
949
|
-
let Y = D(
|
|
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
|
|
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
|
|
957
|
-
name:
|
|
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 (
|
|
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 (
|
|
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(() =>
|
|
988
|
-
mode:
|
|
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 (
|
|
993
|
-
k(
|
|
994
|
-
k(
|
|
995
|
-
b(
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
1032
|
+
I.value ? (T(), g("div", Ut, [b(a, {
|
|
1033
1033
|
modelValue: z.value,
|
|
1034
|
-
"onUpdate:modelValue":
|
|
1035
|
-
label: j(
|
|
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(
|
|
1042
|
+
]), b(a, {
|
|
1043
1043
|
modelValue: B.value,
|
|
1044
|
-
"onUpdate:modelValue":
|
|
1045
|
-
label: j(
|
|
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
|
-
|
|
1054
|
-
"onUpdate:modelValue":
|
|
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(
|
|
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)) :
|
|
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(
|
|
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(
|
|
1071
|
+
]))), 128)), I.value ? (T(), g("div", Jt, [b(a, {
|
|
1072
1072
|
"model-value": z.value,
|
|
1073
|
-
label: j(
|
|
1073
|
+
label: j(r)("catalogue.facet.startDate"),
|
|
1074
1074
|
options: te.value,
|
|
1075
|
-
"onUpdate:modelValue":
|
|
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(
|
|
1082
|
+
]), b(a, {
|
|
1083
1083
|
"model-value": B.value,
|
|
1084
|
-
label: j(
|
|
1084
|
+
label: j(r)("catalogue.facet.endDate"),
|
|
1085
1085
|
options: M.value,
|
|
1086
|
-
"onUpdate:modelValue":
|
|
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)) :
|
|
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":
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
1127
|
-
k(
|
|
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
|
-
|
|
1136
|
-
default: L(() => [y(A(j(
|
|
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(
|
|
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(
|
|
1162
|
-
let
|
|
1163
|
-
scope:
|
|
1164
|
-
countryLabel:
|
|
1165
|
-
countryIdForCode:
|
|
1166
|
-
tr:
|
|
1167
|
-
timelinesEntity:
|
|
1168
|
-
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:
|
|
1171
|
-
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 =
|
|
1188
|
+
N.value = r(s.value.errorPeriod ?? "timeline.form.errorPeriod");
|
|
1189
1189
|
return;
|
|
1190
1190
|
}
|
|
1191
1191
|
if (!F.country && !e) {
|
|
1192
|
-
N.value =
|
|
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
|
-
|
|
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,
|
|
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" ?
|
|
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:
|
|
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:
|
|
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:
|
|
1274
|
+
label: r(s.value.summaryLabel ?? "timeline.results.eventsFound"),
|
|
1275
1275
|
count: V.value.total
|
|
1276
|
-
}]), ce = 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 ?
|
|
1283
|
+
return e.label ? r(e.label) : t ? r(t) : "";
|
|
1284
1284
|
}
|
|
1285
|
-
return (
|
|
1286
|
-
k(
|
|
1287
|
-
s.value.title ? (T(), g("h1", rn, A(j(
|
|
1288
|
-
b(
|
|
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(
|
|
1291
|
-
"apply-label": d.value ? j(
|
|
1292
|
-
"reset-label": s.value.resetLabel ? j(
|
|
1293
|
-
onApply:
|
|
1294
|
-
onReset:
|
|
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(
|
|
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(
|
|
1302
|
-
"any-label": e.anyLabel ? j(
|
|
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":
|
|
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(
|
|
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(
|
|
1318
|
-
"any-label": e.anyLabel ? j(
|
|
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":
|
|
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(
|
|
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(
|
|
1334
|
-
"any-label": e.anyLabel ? j(
|
|
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(
|
|
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(
|
|
1361
|
-
J.value ? (T(), m(
|
|
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(
|
|
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(
|
|
1370
|
-
empty: L(() => [k(
|
|
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(
|
|
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(
|
|
1387
|
+
k(t.$slots, "after", w(x(X.value)))
|
|
1388
1388
|
]));
|
|
1389
1389
|
}
|
|
1390
1390
|
};
|