@museumwnf/viewer-layout 2.13.0 → 2.15.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/README.md +40 -4
- package/dist/BackLink-BJ16COHd.js +106 -0
- package/dist/{TimelineEventList-59g_1ksf.js → TimelineEventList-BmfLBaTT.js} +156 -363
- package/dist/TimelineLookup-DRc43FkL.js +444 -0
- package/dist/TimelineResultsView-D78PPWk-.js +1220 -0
- package/dist/content-DUXrQ-l8.js +353 -0
- package/dist/content.js +5 -3
- package/dist/dxa.js +1116 -0
- package/dist/index.js +5 -3
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +488 -1430
- package/package.json +4 -3
- package/src/tokens.reference.css +58 -0
- package/dist/content-BvhCFMQ9.js +0 -446
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, getCurrentInstance as c, mergeProps as l, normalizeClass as u, onBeforeUnmount as d, openBlock as f, ref as p, renderList as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, useId as y, useSlots as b, vModelText as x, watch as S, withCtx as C, withDirectives as w, withKeys as T, withModifiers as E } from "vue";
|
|
2
2
|
import { useI18n as D } from "@museumwnf/viewer-core/i18n";
|
|
3
|
-
import {
|
|
4
|
-
import { useRoute as
|
|
3
|
+
import { sourceUrl as ee } from "@museumwnf/viewer-core";
|
|
4
|
+
import { useRoute as O } from "vue-router";
|
|
5
5
|
//#region src/content/SmartLink.vue
|
|
6
|
-
var
|
|
6
|
+
var te = [
|
|
7
7
|
"href",
|
|
8
8
|
"target",
|
|
9
9
|
"rel"
|
|
@@ -36,231 +36,24 @@ var ne = [
|
|
|
36
36
|
href: s.value || void 0,
|
|
37
37
|
target: e.external ? "_blank" : void 0,
|
|
38
38
|
rel: e.external ? "noopener" : void 0
|
|
39
|
-
}, t.$attrs), [h(t.$slots, "default")], 16,
|
|
39
|
+
}, t.$attrs), [h(t.$slots, "default")], 16, te));
|
|
40
40
|
}
|
|
41
|
-
},
|
|
42
|
-
key: 1,
|
|
43
|
-
class: "mwnf-cards__action"
|
|
44
|
-
}, M = {
|
|
45
|
-
key: 0,
|
|
46
|
-
class: "mwnf-cards__image-container"
|
|
47
|
-
}, N = ["src", "alt"], P = { class: "mwnf-cards__content" }, F = {
|
|
48
|
-
key: 0,
|
|
49
|
-
class: "mwnf-cards__number"
|
|
50
|
-
}, I = ["innerHTML"], L = ["innerHTML"], R = {
|
|
51
|
-
key: 0,
|
|
52
|
-
class: "mwnf-cards__image-container"
|
|
53
|
-
}, z = ["src", "alt"], B = {
|
|
54
|
-
key: 1,
|
|
55
|
-
class: "mwnf-cards__number"
|
|
56
|
-
}, V = ["innerHTML"], H = {
|
|
57
|
-
key: 3,
|
|
58
|
-
class: "mwnf-cards__details"
|
|
59
|
-
}, U = { class: "mwnf-cards__summary" }, W = {
|
|
60
|
-
key: 0,
|
|
61
|
-
class: "mwnf-cards__number"
|
|
62
|
-
}, G = ["innerHTML"], K = {
|
|
63
|
-
key: 0,
|
|
64
|
-
class: "mwnf-cards__children"
|
|
65
|
-
}, q = {
|
|
66
|
-
__name: "SectionCards",
|
|
67
|
-
props: {
|
|
68
|
-
cards: {
|
|
69
|
-
type: Array,
|
|
70
|
-
default: () => []
|
|
71
|
-
},
|
|
72
|
-
variant: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: "cards",
|
|
75
|
-
validate: (e) => [
|
|
76
|
-
"cards",
|
|
77
|
-
"rows",
|
|
78
|
-
"covers",
|
|
79
|
-
"accordion"
|
|
80
|
-
].includes(e)
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
setup(t) {
|
|
84
|
-
return (c, l) => t.cards.length ? (f(), i("ul", {
|
|
85
|
-
key: 0,
|
|
86
|
-
class: u(["mwnf-cards", `mwnf-cards--${t.variant}`])
|
|
87
|
-
}, [(f(!0), i(e, null, m(t.cards, (c) => (f(), i("li", {
|
|
88
|
-
key: c.href ?? c.title,
|
|
89
|
-
class: u(["mwnf-cards__card"])
|
|
90
|
-
}, [t.variant === "cards" ? (f(), n(k, {
|
|
91
|
-
key: 0,
|
|
92
|
-
class: "mwnf-cards__link",
|
|
93
|
-
to: c.to,
|
|
94
|
-
href: c.href
|
|
95
|
-
}, {
|
|
96
|
-
default: C(() => [
|
|
97
|
-
a("span", {
|
|
98
|
-
class: "mwnf-cards__title",
|
|
99
|
-
innerHTML: v(O)(c.title)
|
|
100
|
-
}, null, 8, re),
|
|
101
|
-
c.description ? (f(), i("span", {
|
|
102
|
-
key: 0,
|
|
103
|
-
class: "mwnf-cards__text",
|
|
104
|
-
innerHTML: v(O)(c.description)
|
|
105
|
-
}, null, 8, A)) : r("", !0),
|
|
106
|
-
c.action ? (f(), i("span", j, _(c.action) + " →", 1)) : r("", !0)
|
|
107
|
-
]),
|
|
108
|
-
_: 2
|
|
109
|
-
}, 1032, ["to", "href"])) : t.variant === "rows" ? (f(), n(k, {
|
|
110
|
-
key: 1,
|
|
111
|
-
class: "mwnf-cards__link",
|
|
112
|
-
to: c.to,
|
|
113
|
-
href: c.href
|
|
114
|
-
}, {
|
|
115
|
-
default: C(() => [c.image ? (f(), i("div", M, [a("img", {
|
|
116
|
-
class: "mwnf-cards__image",
|
|
117
|
-
src: c.image,
|
|
118
|
-
alt: c.alt || ""
|
|
119
|
-
}, null, 8, N)])) : r("", !0), a("div", P, [
|
|
120
|
-
c.number ? (f(), i("span", F, _(c.number), 1)) : r("", !0),
|
|
121
|
-
a("span", {
|
|
122
|
-
class: "mwnf-cards__title",
|
|
123
|
-
innerHTML: v(O)(c.title)
|
|
124
|
-
}, null, 8, I),
|
|
125
|
-
c.description ? (f(), i("span", {
|
|
126
|
-
key: 1,
|
|
127
|
-
class: "mwnf-cards__text",
|
|
128
|
-
innerHTML: v(O)(c.description)
|
|
129
|
-
}, null, 8, L)) : r("", !0)
|
|
130
|
-
])]),
|
|
131
|
-
_: 2
|
|
132
|
-
}, 1032, ["to", "href"])) : t.variant === "covers" ? (f(), n(k, {
|
|
133
|
-
key: 2,
|
|
134
|
-
class: "mwnf-cards__link",
|
|
135
|
-
to: c.to,
|
|
136
|
-
href: c.href
|
|
137
|
-
}, {
|
|
138
|
-
default: C(() => [
|
|
139
|
-
c.image ? (f(), i("div", R, [a("img", {
|
|
140
|
-
class: "mwnf-cards__image",
|
|
141
|
-
src: c.image,
|
|
142
|
-
alt: c.alt || ""
|
|
143
|
-
}, null, 8, z)])) : r("", !0),
|
|
144
|
-
c.number ? (f(), i("span", B, _(c.number), 1)) : r("", !0),
|
|
145
|
-
a("span", {
|
|
146
|
-
class: "mwnf-cards__title",
|
|
147
|
-
innerHTML: v(O)(c.title)
|
|
148
|
-
}, null, 8, V)
|
|
149
|
-
]),
|
|
150
|
-
_: 2
|
|
151
|
-
}, 1032, ["to", "href"])) : t.variant === "accordion" ? (f(), i("details", H, [a("summary", U, [c.number ? (f(), i("span", W, _(c.number), 1)) : r("", !0), a("span", {
|
|
152
|
-
class: "mwnf-cards__title",
|
|
153
|
-
innerHTML: v(O)(c.title)
|
|
154
|
-
}, null, 8, G)]), c.children?.length ? (f(), i("ul", K, [(f(!0), i(e, null, m(c.children, (e) => (f(), i("li", {
|
|
155
|
-
key: e.href ?? e.title,
|
|
156
|
-
class: "mwnf-cards__child"
|
|
157
|
-
}, [s(k, {
|
|
158
|
-
class: "mwnf-cards__child-link",
|
|
159
|
-
to: e.to,
|
|
160
|
-
href: e.href
|
|
161
|
-
}, {
|
|
162
|
-
default: C(() => [o(_(e.title), 1)]),
|
|
163
|
-
_: 2
|
|
164
|
-
}, 1032, ["to", "href"])]))), 128))])) : r("", !0)])) : r("", !0)]))), 128))], 2)) : r("", !0);
|
|
165
|
-
}
|
|
166
|
-
}, J = {
|
|
167
|
-
key: 0,
|
|
168
|
-
class: "mwnf-featured"
|
|
169
|
-
}, Y = {
|
|
170
|
-
key: 0,
|
|
171
|
-
class: "mwnf-featured__heading"
|
|
172
|
-
}, X = {
|
|
173
|
-
key: 0,
|
|
174
|
-
class: "mwnf-featured__media"
|
|
175
|
-
}, ie = ["src", "alt"], ae = { class: "mwnf-featured__body" }, oe = {
|
|
176
|
-
key: 0,
|
|
177
|
-
class: "mwnf-featured__eyebrow"
|
|
178
|
-
}, se = ["innerHTML"], ce = {
|
|
179
|
-
key: 1,
|
|
180
|
-
class: "mwnf-featured__action"
|
|
181
|
-
}, le = {
|
|
182
|
-
__name: "FeaturedRecord",
|
|
183
|
-
props: {
|
|
184
|
-
image: {
|
|
185
|
-
type: String,
|
|
186
|
-
default: ""
|
|
187
|
-
},
|
|
188
|
-
imageAlt: {
|
|
189
|
-
type: String,
|
|
190
|
-
default: ""
|
|
191
|
-
},
|
|
192
|
-
eyebrow: {
|
|
193
|
-
type: String,
|
|
194
|
-
default: ""
|
|
195
|
-
},
|
|
196
|
-
name: {
|
|
197
|
-
type: String,
|
|
198
|
-
default: ""
|
|
199
|
-
},
|
|
200
|
-
meta: {
|
|
201
|
-
type: Array,
|
|
202
|
-
default: () => []
|
|
203
|
-
},
|
|
204
|
-
action: {
|
|
205
|
-
type: String,
|
|
206
|
-
default: ""
|
|
207
|
-
},
|
|
208
|
-
to: {
|
|
209
|
-
type: [String, Object],
|
|
210
|
-
default: null
|
|
211
|
-
},
|
|
212
|
-
href: {
|
|
213
|
-
type: String,
|
|
214
|
-
default: ""
|
|
215
|
-
},
|
|
216
|
-
heading: {
|
|
217
|
-
type: String,
|
|
218
|
-
default: ""
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
setup(n) {
|
|
222
|
-
let o = n, c = b(), l = t(() => !!(o.name || o.image || c.default));
|
|
223
|
-
return (t, o) => l.value ? (f(), i("section", J, [n.heading ? (f(), i("h2", Y, _(n.heading), 1)) : r("", !0), h(t.$slots, "default", {}, () => [s(k, {
|
|
224
|
-
class: "mwnf-featured__link",
|
|
225
|
-
to: n.to,
|
|
226
|
-
href: n.href
|
|
227
|
-
}, {
|
|
228
|
-
default: C(() => [n.image ? (f(), i("span", X, [a("img", {
|
|
229
|
-
class: "mwnf-featured__image",
|
|
230
|
-
src: n.image,
|
|
231
|
-
alt: n.imageAlt,
|
|
232
|
-
loading: "eager"
|
|
233
|
-
}, null, 8, ie)])) : r("", !0), a("span", ae, [
|
|
234
|
-
n.eyebrow ? (f(), i("span", oe, _(n.eyebrow), 1)) : r("", !0),
|
|
235
|
-
a("span", {
|
|
236
|
-
class: "mwnf-featured__name",
|
|
237
|
-
innerHTML: n.name
|
|
238
|
-
}, null, 8, se),
|
|
239
|
-
(f(!0), i(e, null, m(n.meta, (e, t) => (f(), i("span", {
|
|
240
|
-
key: t,
|
|
241
|
-
class: "mwnf-featured__meta"
|
|
242
|
-
}, _(e), 1))), 128)),
|
|
243
|
-
n.action ? (f(), i("span", ce, _(n.action) + " →", 1)) : r("", !0)
|
|
244
|
-
])]),
|
|
245
|
-
_: 1
|
|
246
|
-
}, 8, ["to", "href"])])])) : r("", !0);
|
|
247
|
-
}
|
|
248
|
-
}, ue = ["aria-busy"], de = {
|
|
41
|
+
}, ne = ["aria-busy"], A = {
|
|
249
42
|
key: 0,
|
|
250
43
|
class: "mwnf-list__status"
|
|
251
|
-
},
|
|
44
|
+
}, j = {
|
|
252
45
|
key: 1,
|
|
253
46
|
class: "mwnf-list__rows"
|
|
254
|
-
},
|
|
47
|
+
}, M = { class: "mwnf-list__thumb" }, N = ["src", "alt"], P = { class: "mwnf-list__body" }, F = ["innerHTML"], I = {
|
|
255
48
|
key: 0,
|
|
256
49
|
class: "mwnf-list__meta"
|
|
257
|
-
},
|
|
50
|
+
}, L = {
|
|
258
51
|
key: 0,
|
|
259
52
|
class: "mwnf-list__badge"
|
|
260
|
-
},
|
|
53
|
+
}, R = {
|
|
261
54
|
key: 2,
|
|
262
55
|
class: "mwnf-list__empty"
|
|
263
|
-
},
|
|
56
|
+
}, z = {
|
|
264
57
|
__name: "RecordList",
|
|
265
58
|
props: {
|
|
266
59
|
records: {
|
|
@@ -281,7 +74,7 @@ var ne = [
|
|
|
281
74
|
return (o, c) => (f(), i("div", {
|
|
282
75
|
class: u(["mwnf-list", { "mwnf-list--loading": t.loading }]),
|
|
283
76
|
"aria-busy": t.loading ? "true" : void 0
|
|
284
|
-
}, [t.loading && t.loadingText ? (f(), i("p",
|
|
77
|
+
}, [t.loading && t.loadingText ? (f(), i("p", A, _(t.loadingText), 1)) : t.records.length ? (f(), i("ul", j, [(f(!0), i(e, null, m(t.records, (t) => (f(), i("li", {
|
|
285
78
|
key: t.id,
|
|
286
79
|
class: "mwnf-list__row"
|
|
287
80
|
}, [s(k, {
|
|
@@ -289,35 +82,35 @@ var ne = [
|
|
|
289
82
|
to: t.to,
|
|
290
83
|
href: t.href
|
|
291
84
|
}, {
|
|
292
|
-
default: C(() => [a("span",
|
|
85
|
+
default: C(() => [a("span", M, [t.image ? (f(), i("img", {
|
|
293
86
|
key: 0,
|
|
294
87
|
src: t.image,
|
|
295
88
|
alt: t.imageAlt ?? "",
|
|
296
89
|
loading: "lazy"
|
|
297
|
-
}, null, 8,
|
|
90
|
+
}, null, 8, N)) : r("", !0)]), a("span", P, [a("span", {
|
|
298
91
|
class: "mwnf-list__name",
|
|
299
92
|
innerHTML: t.name
|
|
300
|
-
}, null, 8,
|
|
93
|
+
}, null, 8, F), t.meta?.length || t.badge ? (f(), i("span", I, [(f(!0), i(e, null, m(t.meta ?? [], (e, t) => (f(), i("span", {
|
|
301
94
|
key: t,
|
|
302
95
|
class: "mwnf-list__meta-item"
|
|
303
|
-
}, _(e), 1))), 128)), t.badge ? (f(), i("span",
|
|
96
|
+
}, _(e), 1))), 128)), t.badge ? (f(), i("span", L, _(t.badge), 1)) : r("", !0)])) : r("", !0)])]),
|
|
304
97
|
_: 2
|
|
305
|
-
}, 1032, ["to", "href"])]))), 128))])) : v(n) ? (f(), i("div",
|
|
98
|
+
}, 1032, ["to", "href"])]))), 128))])) : v(n) ? (f(), i("div", R, [h(o.$slots, "empty")])) : r("", !0)], 10, ne));
|
|
306
99
|
}
|
|
307
|
-
},
|
|
100
|
+
}, B = ["aria-busy"], V = {
|
|
308
101
|
key: 0,
|
|
309
102
|
class: "mwnf-grid__status"
|
|
310
|
-
},
|
|
103
|
+
}, H = {
|
|
311
104
|
key: 1,
|
|
312
105
|
class: "mwnf-grid__tiles"
|
|
313
|
-
},
|
|
106
|
+
}, U = ["onMouseenter", "onFocusin"], W = { class: "mwnf-grid__media" }, G = ["src", "alt"], K = {
|
|
314
107
|
key: 1,
|
|
315
108
|
class: "mwnf-grid__image mwnf-grid__image--empty",
|
|
316
109
|
"aria-hidden": "true"
|
|
317
|
-
},
|
|
110
|
+
}, q = { class: "mwnf-grid__card" }, J = ["src"], Y = { class: "mwnf-grid__card-body" }, X = ["innerHTML"], Z = {
|
|
318
111
|
key: 0,
|
|
319
112
|
class: "mwnf-grid__badge"
|
|
320
|
-
},
|
|
113
|
+
}, re = {
|
|
321
114
|
key: 2,
|
|
322
115
|
class: "mwnf-grid__empty"
|
|
323
116
|
}, Q = {
|
|
@@ -353,20 +146,20 @@ var ne = [
|
|
|
353
146
|
return (n, p) => (f(), i("div", {
|
|
354
147
|
class: u(["mwnf-grid", { "mwnf-grid--loading": t.loading }]),
|
|
355
148
|
"aria-busy": t.loading ? "true" : void 0
|
|
356
|
-
}, [t.loading && t.loadingText ? (f(), i("p",
|
|
149
|
+
}, [t.loading && t.loadingText ? (f(), i("p", V, _(t.loadingText), 1)) : t.records.length ? (f(), i("ul", H, [(f(!0), i(e, null, m(t.records, (n) => (f(), i("li", {
|
|
357
150
|
key: n.id,
|
|
358
151
|
class: u(["mwnf-grid__tile", { "mwnf-grid__tile--hover": l.value === n.id }]),
|
|
359
152
|
onMouseenter: (e) => l.value = n.id,
|
|
360
153
|
onMouseleave: p[0] ||= (e) => l.value = null,
|
|
361
154
|
onFocusin: (e) => l.value = n.id,
|
|
362
155
|
onFocusout: p[1] ||= (e) => l.value = null
|
|
363
|
-
}, [a("span",
|
|
156
|
+
}, [a("span", W, [n.image ? (f(), i("img", {
|
|
364
157
|
key: 0,
|
|
365
158
|
class: "mwnf-grid__image",
|
|
366
159
|
src: n.image,
|
|
367
160
|
alt: n.imageAlt ?? "",
|
|
368
161
|
loading: "lazy"
|
|
369
|
-
}, null, 8,
|
|
162
|
+
}, null, 8, G)) : (f(), i("span", K))]), a("div", q, [s(k, {
|
|
370
163
|
class: "mwnf-grid__card-media",
|
|
371
164
|
to: n.to,
|
|
372
165
|
href: n.href,
|
|
@@ -377,18 +170,18 @@ var ne = [
|
|
|
377
170
|
key: 0,
|
|
378
171
|
src: n.image,
|
|
379
172
|
alt: ""
|
|
380
|
-
}, null, 8,
|
|
173
|
+
}, null, 8, J)) : r("", !0)]),
|
|
381
174
|
_: 2
|
|
382
|
-
}, 1032, ["to", "href"]), a("div",
|
|
175
|
+
}, 1032, ["to", "href"]), a("div", Y, [
|
|
383
176
|
a("p", {
|
|
384
177
|
class: "mwnf-grid__name",
|
|
385
178
|
innerHTML: n.name
|
|
386
|
-
}, null, 8,
|
|
179
|
+
}, null, 8, X),
|
|
387
180
|
(f(!0), i(e, null, m(n.meta ?? [], (e, t) => (f(), i("p", {
|
|
388
181
|
key: t,
|
|
389
182
|
class: "mwnf-grid__meta"
|
|
390
183
|
}, _(d(e)), 1))), 128)),
|
|
391
|
-
n.badge ? (f(), i("p",
|
|
184
|
+
n.badge ? (f(), i("p", Z, _(n.badge), 1)) : r("", !0),
|
|
392
185
|
s(k, {
|
|
393
186
|
class: "mwnf-grid__action",
|
|
394
187
|
to: n.to,
|
|
@@ -397,9 +190,9 @@ var ne = [
|
|
|
397
190
|
default: C(() => [o(_(t.actionLabel || n.name.replace(/<[^>]+>/g, "")) + " › ", 1)]),
|
|
398
191
|
_: 2
|
|
399
192
|
}, 1032, ["to", "href"])
|
|
400
|
-
])])], 42,
|
|
193
|
+
])])], 42, U))), 128))])) : v(c) ? (f(), i("div", re, [h(n.$slots, "empty")])) : r("", !0)], 10, B));
|
|
401
194
|
}
|
|
402
|
-
},
|
|
195
|
+
}, ie = ["aria-label"], ae = ["disabled"], oe = ["disabled"], se = ["aria-current", "onClick"], ce = ["disabled"], le = ["disabled"], ue = { class: "mwnf-pagination__position" }, de = { class: "mwnf-pagination__jump" }, fe = ["max"], pe = {
|
|
403
196
|
__name: "Pagination",
|
|
404
197
|
props: {
|
|
405
198
|
pageInfo: {
|
|
@@ -446,42 +239,42 @@ var ne = [
|
|
|
446
239
|
class: "mwnf-pagination__button",
|
|
447
240
|
disabled: h.value === 1,
|
|
448
241
|
onClick: s[0] ||= (e) => C(1)
|
|
449
|
-
}, " « " + _(v(d)("catalogue.pagination.first")), 9,
|
|
242
|
+
}, " « " + _(v(d)("catalogue.pagination.first")), 9, ae)) : r("", !0),
|
|
450
243
|
a("button", {
|
|
451
244
|
type: "button",
|
|
452
245
|
class: "mwnf-pagination__button",
|
|
453
246
|
disabled: h.value === 1,
|
|
454
247
|
onClick: s[1] ||= (e) => C(h.value - 1)
|
|
455
|
-
}, " ‹ " + _(v(d)("core.pagination.previous")), 9,
|
|
248
|
+
}, " ‹ " + _(v(d)("core.pagination.previous")), 9, oe),
|
|
456
249
|
(f(!0), i(e, null, m(y.value, (e) => (f(), i("button", {
|
|
457
250
|
key: e,
|
|
458
251
|
type: "button",
|
|
459
252
|
class: u(["mwnf-pagination__button mwnf-pagination__number", { "mwnf-pagination__button--active": e === h.value }]),
|
|
460
253
|
"aria-current": e === h.value ? "page" : void 0,
|
|
461
254
|
onClick: (t) => C(e)
|
|
462
|
-
}, _(e), 11,
|
|
255
|
+
}, _(e), 11, se))), 128)),
|
|
463
256
|
a("button", {
|
|
464
257
|
type: "button",
|
|
465
258
|
class: "mwnf-pagination__button",
|
|
466
259
|
disabled: h.value === g.value,
|
|
467
260
|
onClick: s[2] ||= (e) => C(h.value + 1)
|
|
468
|
-
}, _(v(d)("core.pagination.next")) + " › ", 9,
|
|
261
|
+
}, _(v(d)("core.pagination.next")) + " › ", 9, ce),
|
|
469
262
|
n.ends ? (f(), i("button", {
|
|
470
263
|
key: 1,
|
|
471
264
|
type: "button",
|
|
472
265
|
class: "mwnf-pagination__button",
|
|
473
266
|
disabled: h.value === g.value,
|
|
474
267
|
onClick: s[3] ||= (e) => C(g.value)
|
|
475
|
-
}, _(v(d)("catalogue.pagination.last")) + " » ", 9,
|
|
476
|
-
a("span",
|
|
477
|
-
a("label",
|
|
268
|
+
}, _(v(d)("catalogue.pagination.last")) + " » ", 9, le)) : r("", !0),
|
|
269
|
+
a("span", ue, [n.jump ? (f(), i(e, { key: 0 }, [
|
|
270
|
+
a("label", de, [a("span", null, _(v(d)("catalogue.pagination.page")), 1), w(a("input", {
|
|
478
271
|
"onUpdate:modelValue": s[4] ||= (e) => b.value = e,
|
|
479
272
|
class: "mwnf-pagination__jump-field",
|
|
480
273
|
type: "number",
|
|
481
274
|
min: "1",
|
|
482
275
|
max: g.value,
|
|
483
276
|
onKeyup: s[5] ||= T((e) => C(b.value), ["enter"])
|
|
484
|
-
}, null, 40,
|
|
277
|
+
}, null, 40, fe), [[x, b.value]])]),
|
|
485
278
|
a("span", null, "/ " + _(g.value), 1),
|
|
486
279
|
a("button", {
|
|
487
280
|
type: "button",
|
|
@@ -489,23 +282,23 @@ var ne = [
|
|
|
489
282
|
onClick: s[6] ||= (e) => C(b.value)
|
|
490
283
|
}, _(v(d)("catalogue.pagination.go")), 1)
|
|
491
284
|
], 64)) : (f(), i(e, { key: 1 }, [o(_(h.value) + " / " + _(g.value), 1)], 64))])
|
|
492
|
-
], 8,
|
|
285
|
+
], 8, ie)) : r("", !0);
|
|
493
286
|
}
|
|
494
|
-
},
|
|
287
|
+
}, me = ["for"], he = {
|
|
495
288
|
key: 0,
|
|
496
289
|
class: "mwnf-facet__label"
|
|
497
|
-
},
|
|
290
|
+
}, ge = [
|
|
498
291
|
"id",
|
|
499
292
|
"value",
|
|
500
293
|
"disabled"
|
|
501
|
-
],
|
|
294
|
+
], _e = {
|
|
502
295
|
key: 0,
|
|
503
296
|
value: "",
|
|
504
297
|
disabled: ""
|
|
505
|
-
},
|
|
298
|
+
}, ve = {
|
|
506
299
|
key: 1,
|
|
507
300
|
value: ""
|
|
508
|
-
},
|
|
301
|
+
}, ye = ["value"], be = {
|
|
509
302
|
__name: "FacetSelect",
|
|
510
303
|
props: {
|
|
511
304
|
label: {
|
|
@@ -544,29 +337,29 @@ var ne = [
|
|
|
544
337
|
key: 0,
|
|
545
338
|
class: "mwnf-facet",
|
|
546
339
|
for: v(l)
|
|
547
|
-
}, [n.label ? (f(), i("span",
|
|
340
|
+
}, [n.label ? (f(), i("span", he, _(n.label), 1)) : r("", !0), a("select", {
|
|
548
341
|
id: v(l),
|
|
549
342
|
class: "mwnf-facet__select",
|
|
550
343
|
value: String(n.modelValue ?? ""),
|
|
551
344
|
disabled: n.disabled,
|
|
552
345
|
onChange: o[0] ||= (e) => c("update:modelValue", e.target.value)
|
|
553
346
|
}, [
|
|
554
|
-
n.placeholder ? (f(), i("option",
|
|
555
|
-
n.anyLabel ? (f(), i("option",
|
|
347
|
+
n.placeholder ? (f(), i("option", _e, _(n.placeholder), 1)) : r("", !0),
|
|
348
|
+
n.anyLabel ? (f(), i("option", ve, _(n.anyLabel), 1)) : r("", !0),
|
|
556
349
|
(f(!0), i(e, null, m(n.options, (e) => (f(), i("option", {
|
|
557
350
|
key: e.value,
|
|
558
351
|
value: String(e.value)
|
|
559
|
-
}, _(e.label), 9,
|
|
560
|
-
], 40,
|
|
352
|
+
}, _(e.label), 9, ye))), 128))
|
|
353
|
+
], 40, ge)], 8, me)) : r("", !0);
|
|
561
354
|
}
|
|
562
|
-
},
|
|
355
|
+
}, xe = {
|
|
563
356
|
key: 0,
|
|
564
357
|
class: "mwnf-filter__title"
|
|
565
|
-
},
|
|
358
|
+
}, Se = ["disabled"], Ce = { class: "mwnf-filter__actions" }, we = {
|
|
566
359
|
key: 0,
|
|
567
360
|
type: "submit",
|
|
568
361
|
class: "mwnf-filter__button mwnf-filter__button--apply"
|
|
569
|
-
},
|
|
362
|
+
}, Te = {
|
|
570
363
|
__name: "FilterPanel",
|
|
571
364
|
props: {
|
|
572
365
|
title: {
|
|
@@ -597,37 +390,37 @@ var ne = [
|
|
|
597
390
|
class: u(["mwnf-filter", `mwnf-filter--${e.mode}`]),
|
|
598
391
|
onSubmit: s[1] ||= E((e) => n("apply"), ["prevent"])
|
|
599
392
|
}, [
|
|
600
|
-
e.title ? (f(), i("p",
|
|
393
|
+
e.title ? (f(), i("p", xe, _(e.title), 1)) : r("", !0),
|
|
601
394
|
a("fieldset", {
|
|
602
395
|
class: "mwnf-filter__controls",
|
|
603
396
|
disabled: e.disabled
|
|
604
|
-
}, [h(t.$slots, "default")], 8,
|
|
605
|
-
a("div",
|
|
397
|
+
}, [h(t.$slots, "default")], 8, Se),
|
|
398
|
+
a("div", Ce, [e.mode === "apply" ? (f(), i("button", we, _(e.applyLabel || v(o)("core.action.apply")), 1)) : r("", !0), a("button", {
|
|
606
399
|
type: "button",
|
|
607
400
|
class: "mwnf-filter__button mwnf-filter__button--reset",
|
|
608
401
|
onClick: s[0] ||= (e) => n("reset")
|
|
609
402
|
}, _(e.resetLabel || v(o)("core.action.reset")), 1)])
|
|
610
403
|
], 34));
|
|
611
404
|
}
|
|
612
|
-
},
|
|
405
|
+
}, Ee = {
|
|
613
406
|
key: 0,
|
|
614
407
|
class: "mwnf-summary"
|
|
615
|
-
},
|
|
408
|
+
}, De = {
|
|
616
409
|
key: 0,
|
|
617
410
|
class: "mwnf-summary__parts"
|
|
618
|
-
},
|
|
411
|
+
}, Oe = {
|
|
619
412
|
key: 0,
|
|
620
413
|
class: "mwnf-summary__label"
|
|
621
|
-
},
|
|
414
|
+
}, ke = {
|
|
622
415
|
key: 1,
|
|
623
416
|
class: "mwnf-summary__count"
|
|
624
|
-
},
|
|
417
|
+
}, Ae = {
|
|
625
418
|
key: 2,
|
|
626
419
|
class: "mwnf-summary__value"
|
|
627
|
-
},
|
|
420
|
+
}, je = {
|
|
628
421
|
key: 1,
|
|
629
422
|
class: "mwnf-summary__actions"
|
|
630
|
-
},
|
|
423
|
+
}, Me = {
|
|
631
424
|
__name: "ResultsSummary",
|
|
632
425
|
props: { parts: {
|
|
633
426
|
type: Array,
|
|
@@ -635,26 +428,26 @@ var ne = [
|
|
|
635
428
|
} },
|
|
636
429
|
setup(t) {
|
|
637
430
|
let n = !!b().actions;
|
|
638
|
-
return (a, s) => t.parts.length || a.$slots.default || v(n) ? (f(), i("div",
|
|
639
|
-
t.parts.length ? (f(), i("p",
|
|
431
|
+
return (a, s) => t.parts.length || a.$slots.default || v(n) ? (f(), i("div", Ee, [
|
|
432
|
+
t.parts.length ? (f(), i("p", De, [(f(!0), i(e, null, m(t.parts, (e, t) => (f(), i("span", {
|
|
640
433
|
key: t,
|
|
641
434
|
class: "mwnf-summary__part"
|
|
642
435
|
}, [
|
|
643
|
-
e.label ? (f(), i("span",
|
|
436
|
+
e.label ? (f(), i("span", Oe, _(e.label), 1)) : r("", !0),
|
|
644
437
|
s[0] ||= o(_(" "), -1),
|
|
645
|
-
e.count == null ? r("", !0) : (f(), i("span",
|
|
438
|
+
e.count == null ? r("", !0) : (f(), i("span", ke, _(e.count), 1)),
|
|
646
439
|
s[1] ||= o(_(" "), -1),
|
|
647
|
-
e.value ? (f(), i("span",
|
|
440
|
+
e.value ? (f(), i("span", Ae, _(e.value), 1)) : r("", !0)
|
|
648
441
|
]))), 128))])) : r("", !0),
|
|
649
442
|
h(a.$slots, "default"),
|
|
650
|
-
v(n) ? (f(), i("div",
|
|
443
|
+
v(n) ? (f(), i("div", je, [h(a.$slots, "actions")])) : r("", !0)
|
|
651
444
|
])) : r("", !0);
|
|
652
445
|
}
|
|
653
|
-
},
|
|
446
|
+
}, Ne = ["aria-label"], Pe = [
|
|
654
447
|
"aria-pressed",
|
|
655
448
|
"lang",
|
|
656
449
|
"onClick"
|
|
657
|
-
],
|
|
450
|
+
], Fe = {
|
|
658
451
|
__name: "RecordLanguages",
|
|
659
452
|
props: {
|
|
660
453
|
languages: {
|
|
@@ -684,18 +477,18 @@ var ne = [
|
|
|
684
477
|
"aria-pressed": e.code === n.language ? "true" : "false",
|
|
685
478
|
lang: e.code,
|
|
686
479
|
onClick: (t) => s("select", e.code)
|
|
687
|
-
}, _(e.label), 11,
|
|
480
|
+
}, _(e.label), 11, Pe))), 128))], 8, Ne)) : r("", !0);
|
|
688
481
|
}
|
|
689
|
-
},
|
|
482
|
+
}, Ie = ["dir"], Le = { key: 0 }, Re = {
|
|
690
483
|
class: "mwnf-sheet__label",
|
|
691
484
|
scope: "row"
|
|
692
|
-
},
|
|
485
|
+
}, ze = { class: "mwnf-sheet__value" }, Be = ["href"], Ve = ["innerHTML"], He = {
|
|
693
486
|
key: 0,
|
|
694
487
|
class: "mwnf-sheet__row mwnf-sheet__row--short"
|
|
695
|
-
},
|
|
488
|
+
}, Ue = {
|
|
696
489
|
class: "mwnf-sheet__label",
|
|
697
490
|
scope: "row"
|
|
698
|
-
},
|
|
491
|
+
}, We = ["aria-expanded"], Ge = { class: "mwnf-sheet__value" }, Ke = ["innerHTML"], qe = { class: "mwnf-sheet__value" }, Je = ["href"], Ye = ["innerHTML"], Xe = { class: "mwnf-sheet__label mwnf-sheet__label--short" }, Ze = ["aria-expanded"], Qe = { class: "mwnf-sheet__value" }, $e = ["innerHTML"], et = {
|
|
699
492
|
__name: "RecordSheet",
|
|
700
493
|
props: {
|
|
701
494
|
rows: {
|
|
@@ -735,52 +528,52 @@ var ne = [
|
|
|
735
528
|
}, [(f(), n(g(t.layout === "list" ? "dl" : "table"), { class: "mwnf-sheet__rows" }, {
|
|
736
529
|
default: C(() => [t.layout === "list" ? (f(!0), i(e, { key: 1 }, m(t.rows, (n) => (f(), i(e, { key: n.key }, [
|
|
737
530
|
a("dt", { class: u(["mwnf-sheet__label", `mwnf-sheet__label--${n.key}`]) }, _(n.label), 3),
|
|
738
|
-
a("dd",
|
|
531
|
+
a("dd", qe, [l(n) ? h(o.$slots, n.key, { row: n }, () => [n.render === "link" ? (f(), i("a", {
|
|
739
532
|
key: 0,
|
|
740
533
|
href: n.value,
|
|
741
534
|
target: "_blank",
|
|
742
535
|
rel: "noopener"
|
|
743
|
-
}, _(n.value), 9,
|
|
536
|
+
}, _(n.value), 9, Je)) : r("", !0)], void 0, 0) : (f(), i("span", {
|
|
744
537
|
key: 1,
|
|
745
538
|
class: u(`mwnf-sheet__${n.render}`),
|
|
746
539
|
innerHTML: n.html
|
|
747
|
-
}, null, 10,
|
|
748
|
-
t.shortDescription && n.key === t.shortDescriptionAfter ? (f(), i(e, { key: 0 }, [a("dt",
|
|
540
|
+
}, null, 10, Ye))]),
|
|
541
|
+
t.shortDescription && n.key === t.shortDescriptionAfter ? (f(), i(e, { key: 0 }, [a("dt", Xe, [a("button", {
|
|
749
542
|
type: "button",
|
|
750
543
|
class: "mwnf-sheet__toggle",
|
|
751
544
|
"aria-expanded": c.value ? "true" : "false",
|
|
752
545
|
onClick: d[1] ||= (e) => c.value = !c.value
|
|
753
|
-
}, _(c.value ? v(s)("record.action.hideShortDescription") : v(s)("record.action.viewShortDescription")), 9,
|
|
546
|
+
}, _(c.value ? v(s)("record.action.hideShortDescription") : v(s)("record.action.viewShortDescription")), 9, Ze)]), a("dd", Qe, [c.value ? (f(), i("div", {
|
|
754
547
|
key: 0,
|
|
755
548
|
class: "mwnf-sheet__block",
|
|
756
549
|
innerHTML: t.shortDescription.html
|
|
757
|
-
}, null, 8,
|
|
758
|
-
], 64))), 128)) : (f(), i("tbody",
|
|
550
|
+
}, null, 8, $e)) : r("", !0)])], 64)) : r("", !0)
|
|
551
|
+
], 64))), 128)) : (f(), i("tbody", Le, [(f(!0), i(e, null, m(t.rows, (n) => (f(), i(e, { key: n.key }, [a("tr", { class: u(["mwnf-sheet__row", `mwnf-sheet__row--${n.key}`]) }, [a("th", Re, _(n.label), 1), a("td", ze, [l(n) ? h(o.$slots, n.key, { row: n }, () => [n.render === "link" ? (f(), i("a", {
|
|
759
552
|
key: 0,
|
|
760
553
|
href: n.value,
|
|
761
554
|
target: "_blank",
|
|
762
555
|
rel: "noopener"
|
|
763
|
-
}, _(n.value), 9,
|
|
556
|
+
}, _(n.value), 9, Be)) : r("", !0)], void 0, 0) : (f(), i("span", {
|
|
764
557
|
key: 1,
|
|
765
558
|
class: u(`mwnf-sheet__${n.render}`),
|
|
766
559
|
innerHTML: n.html
|
|
767
|
-
}, null, 10,
|
|
560
|
+
}, null, 10, Ve))])], 2), t.shortDescription && n.key === t.shortDescriptionAfter ? (f(), i("tr", He, [a("th", Ue, [a("button", {
|
|
768
561
|
type: "button",
|
|
769
562
|
class: "mwnf-sheet__toggle",
|
|
770
563
|
"aria-expanded": c.value ? "true" : "false",
|
|
771
564
|
onClick: d[0] ||= (e) => c.value = !c.value
|
|
772
|
-
}, _(c.value ? v(s)("record.action.hideShortDescription") : v(s)("record.action.viewShortDescription")), 9,
|
|
565
|
+
}, _(c.value ? v(s)("record.action.hideShortDescription") : v(s)("record.action.viewShortDescription")), 9, We)]), a("td", Ge, [c.value ? (f(), i("div", {
|
|
773
566
|
key: 0,
|
|
774
567
|
class: "mwnf-sheet__block",
|
|
775
568
|
innerHTML: t.shortDescription.html
|
|
776
|
-
}, null, 8,
|
|
569
|
+
}, null, 8, Ke)) : r("", !0)])])) : r("", !0)], 64))), 128))]))]),
|
|
777
570
|
_: 3
|
|
778
|
-
}))], 10,
|
|
571
|
+
}))], 10, Ie));
|
|
779
572
|
}
|
|
780
|
-
},
|
|
573
|
+
}, tt = ["dir"], nt = {
|
|
781
574
|
key: 0,
|
|
782
575
|
class: "mwnf-sheet-section__heading"
|
|
783
|
-
},
|
|
576
|
+
}, rt = ["innerHTML"], it = {
|
|
784
577
|
__name: "SheetSection",
|
|
785
578
|
props: {
|
|
786
579
|
heading: {
|
|
@@ -801,31 +594,31 @@ var ne = [
|
|
|
801
594
|
class: "mwnf-sheet-section",
|
|
802
595
|
dir: e.dir || void 0
|
|
803
596
|
}, [
|
|
804
|
-
e.heading ? (f(), i("h2",
|
|
597
|
+
e.heading ? (f(), i("h2", nt, _(e.heading), 1)) : r("", !0),
|
|
805
598
|
e.html ? (f(), i("div", {
|
|
806
599
|
key: 1,
|
|
807
600
|
class: "mwnf-sheet-section__body mwnf-sheet__block",
|
|
808
601
|
innerHTML: e.html
|
|
809
|
-
}, null, 8,
|
|
602
|
+
}, null, 8, rt)) : r("", !0),
|
|
810
603
|
h(t.$slots, "default")
|
|
811
|
-
], 8,
|
|
604
|
+
], 8, tt));
|
|
812
605
|
}
|
|
813
|
-
},
|
|
606
|
+
}, at = {
|
|
814
607
|
key: 0,
|
|
815
608
|
class: "mwnf-credits"
|
|
816
|
-
},
|
|
609
|
+
}, ot = {
|
|
817
610
|
key: 0,
|
|
818
611
|
class: "mwnf-credits__heading"
|
|
819
|
-
},
|
|
612
|
+
}, st = {
|
|
820
613
|
key: 1,
|
|
821
614
|
class: "mwnf-credits__list"
|
|
822
|
-
},
|
|
615
|
+
}, ct = { class: "mwnf-credits__label" }, lt = { class: "mwnf-credits__value" }, ut = {
|
|
823
616
|
key: 2,
|
|
824
617
|
class: "mwnf-credits__number"
|
|
825
|
-
},
|
|
618
|
+
}, dt = {
|
|
826
619
|
key: 0,
|
|
827
620
|
class: "mwnf-credits__label"
|
|
828
|
-
},
|
|
621
|
+
}, ft = { class: "mwnf-credits__heading" }, pt = { class: "mwnf-credits__citation" }, mt = {
|
|
829
622
|
__name: "RecordCredits",
|
|
830
623
|
props: {
|
|
831
624
|
credits: {
|
|
@@ -855,17 +648,17 @@ var ne = [
|
|
|
855
648
|
},
|
|
856
649
|
setup(n) {
|
|
857
650
|
let o = n, { t: s } = D(), c = t(() => o.credits.length > 0 || o.workingNumber || o.citation);
|
|
858
|
-
return (t, o) => c.value ? (f(), i("section",
|
|
859
|
-
n.credits.length || n.workingNumber ? (f(), i("h2",
|
|
860
|
-
n.credits.length ? (f(), i("dl",
|
|
861
|
-
n.workingNumber ? (f(), i("p",
|
|
862
|
-
n.citation ? (f(), i(e, { key: 3 }, [a("h2",
|
|
651
|
+
return (t, o) => c.value ? (f(), i("section", at, [
|
|
652
|
+
n.credits.length || n.workingNumber ? (f(), i("h2", ot, _(n.heading || v(s)("record.sheet.credits")), 1)) : r("", !0),
|
|
653
|
+
n.credits.length ? (f(), i("dl", st, [(f(!0), i(e, null, m(n.credits, (t) => (f(), i(e, { key: t.label }, [a("dt", ct, _(t.label), 1), a("dd", lt, _(t.value), 1)], 64))), 128))])) : r("", !0),
|
|
654
|
+
n.workingNumber ? (f(), i("p", ut, [n.workingNumberLabel ? (f(), i("span", dt, _(n.workingNumberLabel), 1)) : r("", !0), a("strong", null, _(n.workingNumber), 1)])) : r("", !0),
|
|
655
|
+
n.citation ? (f(), i(e, { key: 3 }, [a("h2", ft, _(n.citationHeading || v(s)("record.citation.heading")), 1), a("p", pt, _(n.citation), 1)], 64)) : r("", !0)
|
|
863
656
|
])) : r("", !0);
|
|
864
657
|
}
|
|
865
|
-
},
|
|
658
|
+
}, ht = {
|
|
866
659
|
key: 0,
|
|
867
660
|
class: "mwnf-source-credit"
|
|
868
|
-
},
|
|
661
|
+
}, gt = { class: "mwnf-source-credit__label" }, _t = ["href"], vt = {
|
|
869
662
|
__name: "SourceCredit",
|
|
870
663
|
props: {
|
|
871
664
|
route: {
|
|
@@ -878,20 +671,20 @@ var ne = [
|
|
|
878
671
|
}
|
|
879
672
|
},
|
|
880
673
|
setup(e) {
|
|
881
|
-
let n = e, { t: s } = D(), c =
|
|
882
|
-
return (t, n) => l.value ? (f(), i("p",
|
|
883
|
-
a("span",
|
|
674
|
+
let n = e, { t: s } = D(), c = O(), l = t(() => ee(n.route ?? c));
|
|
675
|
+
return (t, n) => l.value ? (f(), i("p", ht, [
|
|
676
|
+
a("span", gt, _(v(s)(e.labelEntry)), 1),
|
|
884
677
|
n[0] ||= o(),
|
|
885
|
-
a("a", { href: l.value }, _(l.value), 9,
|
|
678
|
+
a("a", { href: l.value }, _(l.value), 9, _t)
|
|
886
679
|
])) : r("", !0);
|
|
887
680
|
}
|
|
888
|
-
},
|
|
681
|
+
}, yt = {
|
|
889
682
|
key: 0,
|
|
890
683
|
class: "mwnf-related"
|
|
891
|
-
},
|
|
684
|
+
}, bt = {
|
|
892
685
|
key: 0,
|
|
893
686
|
class: "mwnf-related__heading"
|
|
894
|
-
},
|
|
687
|
+
}, xt = {
|
|
895
688
|
__name: "RelatedRecords",
|
|
896
689
|
props: {
|
|
897
690
|
heading: {
|
|
@@ -912,42 +705,42 @@ var ne = [
|
|
|
912
705
|
}
|
|
913
706
|
},
|
|
914
707
|
setup(e) {
|
|
915
|
-
return (t, a) => e.records.length || t.$slots.default ? (f(), i("section",
|
|
916
|
-
e.heading ? (f(), i("h2",
|
|
708
|
+
return (t, a) => e.records.length || t.$slots.default ? (f(), i("section", yt, [
|
|
709
|
+
e.heading ? (f(), i("h2", bt, _(e.heading), 1)) : r("", !0),
|
|
917
710
|
e.variant === "grid" ? (f(), n(Q, {
|
|
918
711
|
key: 1,
|
|
919
712
|
records: e.records,
|
|
920
713
|
"action-label": e.actionLabel
|
|
921
|
-
}, null, 8, ["records", "action-label"])) : (f(), n(
|
|
714
|
+
}, null, 8, ["records", "action-label"])) : (f(), n(z, {
|
|
922
715
|
key: 2,
|
|
923
716
|
records: e.records
|
|
924
717
|
}, null, 8, ["records"])),
|
|
925
718
|
h(t.$slots, "default")
|
|
926
719
|
])) : r("", !0);
|
|
927
720
|
}
|
|
928
|
-
},
|
|
721
|
+
}, St = ["src", "alt"], Ct = {
|
|
929
722
|
key: 0,
|
|
930
723
|
class: "mwnf-media__caption"
|
|
931
|
-
},
|
|
724
|
+
}, wt = { key: 0 }, Tt = {
|
|
932
725
|
key: 1,
|
|
933
726
|
class: "mwnf-media__credit"
|
|
934
|
-
},
|
|
727
|
+
}, Et = {
|
|
935
728
|
key: 2,
|
|
936
729
|
class: "mwnf-media__credit"
|
|
937
|
-
},
|
|
730
|
+
}, Dt = ["src", "alt"], Ot = {
|
|
938
731
|
key: 0,
|
|
939
732
|
class: "mwnf-media__thumbs"
|
|
940
|
-
},
|
|
733
|
+
}, kt = [
|
|
941
734
|
"aria-pressed",
|
|
942
735
|
"title",
|
|
943
736
|
"onClick"
|
|
944
|
-
],
|
|
737
|
+
], At = ["src", "alt"], jt = {
|
|
945
738
|
key: 1,
|
|
946
739
|
class: "mwnf-media__caption"
|
|
947
|
-
},
|
|
740
|
+
}, Mt = { key: 0 }, Nt = {
|
|
948
741
|
key: 1,
|
|
949
742
|
class: "mwnf-media__credit"
|
|
950
|
-
},
|
|
743
|
+
}, Pt = ["aria-label"], Ft = ["aria-label"], It = ["src", "alt"], Lt = ["aria-label"], Rt = {
|
|
951
744
|
__name: "MediaGallery",
|
|
952
745
|
props: {
|
|
953
746
|
images: {
|
|
@@ -995,10 +788,10 @@ var ne = [
|
|
|
995
788
|
src: e.url,
|
|
996
789
|
alt: e.alt ?? "",
|
|
997
790
|
loading: "lazy"
|
|
998
|
-
}, null, 8,
|
|
999
|
-
e.caption ? (f(), i("span",
|
|
1000
|
-
e.photographer ? (f(), i("span",
|
|
1001
|
-
e.copyright ? (f(), i("span",
|
|
791
|
+
}, null, 8, St), e.caption || e.photographer || e.copyright ? (f(), i("figcaption", Ct, [
|
|
792
|
+
e.caption ? (f(), i("span", wt, _(e.caption), 1)) : r("", !0),
|
|
793
|
+
e.photographer ? (f(), i("span", Tt, _(v(s)("record.media.photograph")) + ": " + _(e.photographer), 1)) : r("", !0),
|
|
794
|
+
e.copyright ? (f(), i("span", Et, "© " + _(e.copyright), 1)) : r("", !0)
|
|
1002
795
|
])) : r("", !0)]))), 128)) : (f(), i(e, { key: 1 }, [
|
|
1003
796
|
a("button", {
|
|
1004
797
|
type: "button",
|
|
@@ -1008,8 +801,8 @@ var ne = [
|
|
|
1008
801
|
class: "mwnf-media__image",
|
|
1009
802
|
src: l.value.url,
|
|
1010
803
|
alt: l.value.alt ?? ""
|
|
1011
|
-
}, null, 8,
|
|
1012
|
-
n.images.length > 1 ? (f(), i("ul",
|
|
804
|
+
}, null, 8, Dt)]),
|
|
805
|
+
n.images.length > 1 ? (f(), i("ul", Ot, [(f(!0), i(e, null, m(n.images, (e, t) => (f(), i("li", { key: e.url ?? t }, [a("button", {
|
|
1013
806
|
type: "button",
|
|
1014
807
|
class: u(["mwnf-media__thumb", { "mwnf-media__thumb--active": t === c.value }]),
|
|
1015
808
|
"aria-pressed": t === c.value ? "true" : "false",
|
|
@@ -1019,8 +812,8 @@ var ne = [
|
|
|
1019
812
|
src: e.url,
|
|
1020
813
|
alt: e.alt ?? "",
|
|
1021
814
|
loading: "lazy"
|
|
1022
|
-
}, null, 8,
|
|
1023
|
-
l.value.caption || h.value ? (f(), i("p",
|
|
815
|
+
}, null, 8, At)], 10, kt)]))), 128))])) : r("", !0),
|
|
816
|
+
l.value.caption || h.value ? (f(), i("p", jt, [l.value.caption ? (f(), i("span", Mt, _(l.value.caption), 1)) : r("", !0), h.value ? (f(), i("span", Nt, _(h.value), 1)) : r("", !0)])) : r("", !0),
|
|
1024
817
|
g.value ? (f(), i("div", {
|
|
1025
818
|
key: 2,
|
|
1026
819
|
class: "mwnf-lightbox",
|
|
@@ -1035,33 +828,33 @@ var ne = [
|
|
|
1035
828
|
class: "mwnf-lightbox__close",
|
|
1036
829
|
"aria-label": v(s)("core.action.close"),
|
|
1037
830
|
onClick: w
|
|
1038
|
-
}, "✕", 8,
|
|
831
|
+
}, "✕", 8, Pt),
|
|
1039
832
|
n.images.length > 1 ? (f(), i("button", {
|
|
1040
833
|
key: 0,
|
|
1041
834
|
type: "button",
|
|
1042
835
|
class: "mwnf-lightbox__control mwnf-lightbox__control--previous",
|
|
1043
836
|
"aria-label": v(s)("core.pagination.previous"),
|
|
1044
837
|
onClick: o[0] ||= E((e) => x(c.value - 1), ["stop"])
|
|
1045
|
-
}, "‹", 8,
|
|
838
|
+
}, "‹", 8, Ft)) : r("", !0),
|
|
1046
839
|
a("img", {
|
|
1047
840
|
class: "mwnf-lightbox__image",
|
|
1048
841
|
src: l.value.url,
|
|
1049
842
|
alt: l.value.alt ?? ""
|
|
1050
|
-
}, null, 8,
|
|
843
|
+
}, null, 8, It),
|
|
1051
844
|
n.images.length > 1 ? (f(), i("button", {
|
|
1052
845
|
key: 1,
|
|
1053
846
|
type: "button",
|
|
1054
847
|
class: "mwnf-lightbox__control mwnf-lightbox__control--next",
|
|
1055
848
|
"aria-label": v(s)("core.pagination.next"),
|
|
1056
849
|
onClick: o[1] ||= E((e) => x(c.value + 1), ["stop"])
|
|
1057
|
-
}, "›", 8,
|
|
850
|
+
}, "›", 8, Lt)) : r("", !0)
|
|
1058
851
|
])) : r("", !0)
|
|
1059
852
|
], 64))], 2)) : r("", !0);
|
|
1060
853
|
}
|
|
1061
|
-
},
|
|
854
|
+
}, zt = ["aria-label", "dir"], Bt = { class: "mwnf-popover__title" }, $ = ["aria-label"], Vt = { class: "mwnf-popover__body" }, Ht = { class: "mwnf-popover__term" }, Ut = ["innerHTML"], Wt = {
|
|
1062
855
|
key: 1,
|
|
1063
856
|
class: "mwnf-popover__definition"
|
|
1064
|
-
},
|
|
857
|
+
}, Gt = {
|
|
1065
858
|
__name: "GlossaryPopover",
|
|
1066
859
|
props: {
|
|
1067
860
|
term: {
|
|
@@ -1094,35 +887,35 @@ var ne = [
|
|
|
1094
887
|
role: "dialog",
|
|
1095
888
|
"aria-label": v(s)("record.glossary.heading"),
|
|
1096
889
|
dir: e.dir || void 0
|
|
1097
|
-
}, [a("div",
|
|
890
|
+
}, [a("div", Bt, [a("span", null, _(v(s)("record.glossary.heading")), 1), a("button", {
|
|
1098
891
|
ref_key: "closeButton",
|
|
1099
892
|
ref: c,
|
|
1100
893
|
type: "button",
|
|
1101
894
|
class: "mwnf-popover__close",
|
|
1102
895
|
"aria-label": v(s)("record.glossary.close"),
|
|
1103
896
|
onClick: u
|
|
1104
|
-
}, "✕", 8,
|
|
897
|
+
}, "✕", 8, $)]), a("div", Vt, [a("p", Ht, _(e.term.spelling || e.term.word), 1), e.html ? (f(), i("div", {
|
|
1105
898
|
key: 0,
|
|
1106
899
|
class: "mwnf-popover__definition mwnf-sheet__block",
|
|
1107
900
|
innerHTML: e.html
|
|
1108
|
-
}, null, 8,
|
|
901
|
+
}, null, 8, Ut)) : e.term.definition ? (f(), i("p", Wt, _(e.term.definition), 1)) : r("", !0)])], 8, zt)) : r("", !0);
|
|
1109
902
|
}
|
|
1110
|
-
},
|
|
903
|
+
}, Kt = {
|
|
1111
904
|
key: 0,
|
|
1112
905
|
class: "mwnf-timeline__rows"
|
|
1113
|
-
},
|
|
906
|
+
}, qt = { class: "mwnf-timeline__date" }, Jt = { class: "mwnf-timeline__body" }, Yt = {
|
|
1114
907
|
key: 0,
|
|
1115
908
|
class: "mwnf-timeline__caption"
|
|
1116
|
-
},
|
|
909
|
+
}, Xt = ["innerHTML"], Zt = ["innerHTML"], Qt = {
|
|
1117
910
|
key: 2,
|
|
1118
911
|
class: "mwnf-timeline__media"
|
|
1119
|
-
},
|
|
912
|
+
}, $t = ["src", "alt"], en = ["innerHTML"], tn = {
|
|
1120
913
|
key: 3,
|
|
1121
914
|
class: "mwnf-timeline__actions"
|
|
1122
|
-
},
|
|
915
|
+
}, nn = {
|
|
1123
916
|
key: 1,
|
|
1124
917
|
class: "mwnf-timeline__empty"
|
|
1125
|
-
},
|
|
918
|
+
}, rn = {
|
|
1126
919
|
__name: "TimelineEventList",
|
|
1127
920
|
props: { events: {
|
|
1128
921
|
type: Array,
|
|
@@ -1130,17 +923,17 @@ var ne = [
|
|
|
1130
923
|
} },
|
|
1131
924
|
setup(t) {
|
|
1132
925
|
let s = !!b().empty;
|
|
1133
|
-
return (c, l) => t.events.length ? (f(), i("ul",
|
|
926
|
+
return (c, l) => t.events.length ? (f(), i("ul", Kt, [(f(!0), i(e, null, m(t.events, (t) => (f(), i("li", {
|
|
1134
927
|
key: t.id,
|
|
1135
928
|
class: "mwnf-timeline__row"
|
|
1136
|
-
}, [a("div",
|
|
1137
|
-
t.caption || c.$slots.caption ? (f(), i("div",
|
|
929
|
+
}, [a("div", qt, [h(c.$slots, "date", { event: t }, () => [o(_(t.date), 1)])]), a("div", Jt, [
|
|
930
|
+
t.caption || c.$slots.caption ? (f(), i("div", Yt, [h(c.$slots, "caption", { event: t }, () => [a("span", { innerHTML: t.caption }, null, 8, Xt)])])) : r("", !0),
|
|
1138
931
|
t.description ? (f(), i("div", {
|
|
1139
932
|
key: 1,
|
|
1140
933
|
class: "mwnf-timeline__description mwnf-sheet__block",
|
|
1141
934
|
innerHTML: t.description
|
|
1142
|
-
}, null, 8,
|
|
1143
|
-
t.media?.length || c.$slots.media ? (f(), i("div",
|
|
935
|
+
}, null, 8, Zt)) : r("", !0),
|
|
936
|
+
t.media?.length || c.$slots.media ? (f(), i("div", Qt, [h(c.$slots, "media", { event: t }, () => [(f(!0), i(e, null, m(t.media ?? [], (e, t) => (f(), n(k, {
|
|
1144
937
|
key: t,
|
|
1145
938
|
class: "mwnf-timeline__media-item",
|
|
1146
939
|
to: e.to,
|
|
@@ -1151,14 +944,14 @@ var ne = [
|
|
|
1151
944
|
src: e.image,
|
|
1152
945
|
alt: e.alt ?? "",
|
|
1153
946
|
loading: "lazy"
|
|
1154
|
-
}, null, 8,
|
|
947
|
+
}, null, 8, $t)) : r("", !0), e.caption ? (f(), i("span", {
|
|
1155
948
|
key: 1,
|
|
1156
949
|
class: "mwnf-timeline__media-caption",
|
|
1157
950
|
innerHTML: e.caption
|
|
1158
|
-
}, null, 8,
|
|
951
|
+
}, null, 8, en)) : r("", !0)]),
|
|
1159
952
|
_: 2
|
|
1160
953
|
}, 1032, ["to", "href"]))), 128))])])) : r("", !0),
|
|
1161
|
-
t.actions?.length || c.$slots.actions ? (f(), i("div",
|
|
954
|
+
t.actions?.length || c.$slots.actions ? (f(), i("div", tn, [h(c.$slots, "actions", { event: t }, () => [(f(!0), i(e, null, m(t.actions ?? [], (e, t) => (f(), n(k, {
|
|
1162
955
|
key: t,
|
|
1163
956
|
class: "mwnf-timeline__action",
|
|
1164
957
|
to: e.to,
|
|
@@ -1167,8 +960,8 @@ var ne = [
|
|
|
1167
960
|
default: C(() => [o(_(e.label) + " →", 1)]),
|
|
1168
961
|
_: 2
|
|
1169
962
|
}, 1032, ["to", "href"]))), 128))])])) : r("", !0)
|
|
1170
|
-
])]))), 128))])) : v(s) ? (f(), i("div",
|
|
963
|
+
])]))), 128))])) : v(s) ? (f(), i("div", nn, [h(c.$slots, "empty")])) : r("", !0);
|
|
1171
964
|
}
|
|
1172
965
|
};
|
|
1173
966
|
//#endregion
|
|
1174
|
-
export {
|
|
967
|
+
export { vt as a, et as c, Te as d, be as f, k as g, z as h, xt as i, Fe as l, Q as m, Gt as n, mt as o, pe as p, Rt as r, it as s, rn as t, Me as u };
|