@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.
- 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 +549 -292
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +4 -4
- package/package.json +1 -1
- package/src/tokens.reference.css +8 -0
- package/dist/TimelineEventList-QLk6KLMq.js +0 -841
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
import { d as e, n as t, t as n } from "./PartnerMap-BozCpzY8.js";
|
|
2
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, mergeProps as d, nextTick as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, renderSlot as _, resolveDynamicComponent as v, toDisplayString as y, unref as b, useId as x, useSlots as S, vModelText as C, vShow as ee, watch as w, withCtx as T, withDirectives as E, withKeys as D, withModifiers as O } from "vue";
|
|
3
|
+
import { useI18n as k } from "@museumwnf/viewer-core/i18n";
|
|
4
|
+
import { mdInline as A } from "@museumwnf/viewer-core";
|
|
5
|
+
//#region src/content/SectionCards.vue
|
|
6
|
+
var j = ["innerHTML"], M = ["innerHTML"], N = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "mwnf-cards__action"
|
|
9
|
+
}, P = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "mwnf-cards__image-container"
|
|
12
|
+
}, F = ["src", "alt"], I = { class: "mwnf-cards__content" }, L = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "mwnf-cards__number"
|
|
15
|
+
}, R = ["innerHTML"], z = ["innerHTML"], B = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "mwnf-cards__image-container"
|
|
18
|
+
}, V = ["src", "alt"], H = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "mwnf-cards__number"
|
|
21
|
+
}, U = ["innerHTML"], te = {
|
|
22
|
+
key: 3,
|
|
23
|
+
class: "mwnf-cards__details"
|
|
24
|
+
}, W = { class: "mwnf-cards__summary" }, G = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "mwnf-cards__number"
|
|
27
|
+
}, K = ["innerHTML"], q = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "mwnf-cards__children"
|
|
30
|
+
}, J = {
|
|
31
|
+
__name: "SectionCards",
|
|
32
|
+
props: {
|
|
33
|
+
cards: {
|
|
34
|
+
type: Array,
|
|
35
|
+
default: () => []
|
|
36
|
+
},
|
|
37
|
+
variant: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "cards",
|
|
40
|
+
validate: (e) => [
|
|
41
|
+
"cards",
|
|
42
|
+
"rows",
|
|
43
|
+
"covers",
|
|
44
|
+
"accordion"
|
|
45
|
+
].includes(e)
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
setup(t) {
|
|
49
|
+
return (n, i) => t.cards.length ? (m(), s("ul", {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: p(["mwnf-cards", `mwnf-cards--${t.variant}`])
|
|
52
|
+
}, [(m(!0), s(r, null, g(t.cards, (n) => (m(), s("li", {
|
|
53
|
+
key: n.href ?? n.title,
|
|
54
|
+
class: p(["mwnf-cards__card"])
|
|
55
|
+
}, [t.variant === "cards" ? (m(), a(e, {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "mwnf-cards__link",
|
|
58
|
+
to: n.to,
|
|
59
|
+
href: n.href
|
|
60
|
+
}, {
|
|
61
|
+
default: T(() => [
|
|
62
|
+
c("span", {
|
|
63
|
+
class: "mwnf-cards__title",
|
|
64
|
+
innerHTML: b(A)(n.title)
|
|
65
|
+
}, null, 8, j),
|
|
66
|
+
n.description ? (m(), s("span", {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "mwnf-cards__text",
|
|
69
|
+
innerHTML: b(A)(n.description)
|
|
70
|
+
}, null, 8, M)) : o("", !0),
|
|
71
|
+
n.action ? (m(), s("span", N, y(n.action) + " →", 1)) : o("", !0)
|
|
72
|
+
]),
|
|
73
|
+
_: 2
|
|
74
|
+
}, 1032, ["to", "href"])) : t.variant === "rows" ? (m(), a(e, {
|
|
75
|
+
key: 1,
|
|
76
|
+
class: "mwnf-cards__link",
|
|
77
|
+
to: n.to,
|
|
78
|
+
href: n.href
|
|
79
|
+
}, {
|
|
80
|
+
default: T(() => [n.image ? (m(), s("div", P, [c("img", {
|
|
81
|
+
class: "mwnf-cards__image",
|
|
82
|
+
src: n.image,
|
|
83
|
+
alt: n.alt || ""
|
|
84
|
+
}, null, 8, F)])) : o("", !0), c("div", I, [
|
|
85
|
+
n.number ? (m(), s("span", L, y(n.number), 1)) : o("", !0),
|
|
86
|
+
c("span", {
|
|
87
|
+
class: "mwnf-cards__title",
|
|
88
|
+
innerHTML: b(A)(n.title)
|
|
89
|
+
}, null, 8, R),
|
|
90
|
+
n.description ? (m(), s("span", {
|
|
91
|
+
key: 1,
|
|
92
|
+
class: "mwnf-cards__text",
|
|
93
|
+
innerHTML: b(A)(n.description)
|
|
94
|
+
}, null, 8, z)) : o("", !0)
|
|
95
|
+
])]),
|
|
96
|
+
_: 2
|
|
97
|
+
}, 1032, ["to", "href"])) : t.variant === "covers" ? (m(), a(e, {
|
|
98
|
+
key: 2,
|
|
99
|
+
class: "mwnf-cards__link",
|
|
100
|
+
to: n.to,
|
|
101
|
+
href: n.href
|
|
102
|
+
}, {
|
|
103
|
+
default: T(() => [
|
|
104
|
+
n.image ? (m(), s("div", B, [c("img", {
|
|
105
|
+
class: "mwnf-cards__image",
|
|
106
|
+
src: n.image,
|
|
107
|
+
alt: n.alt || ""
|
|
108
|
+
}, null, 8, V)])) : o("", !0),
|
|
109
|
+
n.number ? (m(), s("span", H, y(n.number), 1)) : o("", !0),
|
|
110
|
+
c("span", {
|
|
111
|
+
class: "mwnf-cards__title",
|
|
112
|
+
innerHTML: b(A)(n.title)
|
|
113
|
+
}, null, 8, U)
|
|
114
|
+
]),
|
|
115
|
+
_: 2
|
|
116
|
+
}, 1032, ["to", "href"])) : t.variant === "accordion" ? (m(), s("details", te, [c("summary", W, [n.number ? (m(), s("span", G, y(n.number), 1)) : o("", !0), c("span", {
|
|
117
|
+
class: "mwnf-cards__title",
|
|
118
|
+
innerHTML: b(A)(n.title)
|
|
119
|
+
}, null, 8, K)]), n.children?.length ? (m(), s("ul", q, [(m(!0), s(r, null, g(n.children, (t) => (m(), s("li", {
|
|
120
|
+
key: t.href ?? t.title,
|
|
121
|
+
class: "mwnf-cards__child"
|
|
122
|
+
}, [u(e, {
|
|
123
|
+
class: "mwnf-cards__child-link",
|
|
124
|
+
to: t.to,
|
|
125
|
+
href: t.href
|
|
126
|
+
}, {
|
|
127
|
+
default: T(() => [l(y(t.title), 1)]),
|
|
128
|
+
_: 2
|
|
129
|
+
}, 1032, ["to", "href"])]))), 128))])) : o("", !0)])) : o("", !0)]))), 128))], 2)) : o("", !0);
|
|
130
|
+
}
|
|
131
|
+
}, Y = ["aria-label"], X = ["disabled"], Z = ["disabled"], Q = ["aria-current", "onClick"], ne = ["disabled"], re = ["disabled"], ie = { class: "mwnf-pagination__position" }, ae = { class: "mwnf-pagination__jump" }, oe = ["max"], se = {
|
|
132
|
+
__name: "Pagination",
|
|
133
|
+
props: {
|
|
134
|
+
pageInfo: {
|
|
135
|
+
type: Object,
|
|
136
|
+
required: !0
|
|
137
|
+
},
|
|
138
|
+
window: {
|
|
139
|
+
type: Number,
|
|
140
|
+
default: 5
|
|
141
|
+
},
|
|
142
|
+
jump: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: !1
|
|
145
|
+
},
|
|
146
|
+
ends: {
|
|
147
|
+
type: Boolean,
|
|
148
|
+
default: !0
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
emits: ["navigate"],
|
|
152
|
+
setup(e, { emit: t }) {
|
|
153
|
+
let n = e, a = t, { t: u } = k(), d = i(() => n.pageInfo?.currentPage ?? 1), f = i(() => n.pageInfo?.lastPage ?? 1), _ = i(() => {
|
|
154
|
+
let e = Math.max(1, n.window), t = Math.max(1, d.value - Math.floor(e / 2)), r = Math.min(f.value, t + e - 1);
|
|
155
|
+
t = Math.max(1, r - e + 1);
|
|
156
|
+
let i = [];
|
|
157
|
+
for (let e = t; e <= r; e++) i.push(e);
|
|
158
|
+
return i;
|
|
159
|
+
}), v = h(String(d.value));
|
|
160
|
+
w(d, (e) => {
|
|
161
|
+
v.value = String(e);
|
|
162
|
+
});
|
|
163
|
+
function x(e) {
|
|
164
|
+
let t = Math.min(Math.max(1, Number.parseInt(e, 10) || 1), f.value);
|
|
165
|
+
t !== d.value && a("navigate", t);
|
|
166
|
+
}
|
|
167
|
+
return (t, n) => f.value > 1 ? (m(), s("nav", {
|
|
168
|
+
key: 0,
|
|
169
|
+
class: "mwnf-pagination",
|
|
170
|
+
"aria-label": b(u)("catalogue.pagination.page")
|
|
171
|
+
}, [
|
|
172
|
+
e.ends ? (m(), s("button", {
|
|
173
|
+
key: 0,
|
|
174
|
+
type: "button",
|
|
175
|
+
class: "mwnf-pagination__button",
|
|
176
|
+
disabled: d.value === 1,
|
|
177
|
+
onClick: n[0] ||= (e) => x(1)
|
|
178
|
+
}, " « " + y(b(u)("catalogue.pagination.first")), 9, X)) : o("", !0),
|
|
179
|
+
c("button", {
|
|
180
|
+
type: "button",
|
|
181
|
+
class: "mwnf-pagination__button",
|
|
182
|
+
disabled: d.value === 1,
|
|
183
|
+
onClick: n[1] ||= (e) => x(d.value - 1)
|
|
184
|
+
}, " ‹ " + y(b(u)("core.pagination.previous")), 9, Z),
|
|
185
|
+
(m(!0), s(r, null, g(_.value, (e) => (m(), s("button", {
|
|
186
|
+
key: e,
|
|
187
|
+
type: "button",
|
|
188
|
+
class: p(["mwnf-pagination__button mwnf-pagination__number", { "mwnf-pagination__button--active": e === d.value }]),
|
|
189
|
+
"aria-current": e === d.value ? "page" : void 0,
|
|
190
|
+
onClick: (t) => x(e)
|
|
191
|
+
}, y(e), 11, Q))), 128)),
|
|
192
|
+
c("button", {
|
|
193
|
+
type: "button",
|
|
194
|
+
class: "mwnf-pagination__button",
|
|
195
|
+
disabled: d.value === f.value,
|
|
196
|
+
onClick: n[2] ||= (e) => x(d.value + 1)
|
|
197
|
+
}, y(b(u)("core.pagination.next")) + " › ", 9, ne),
|
|
198
|
+
e.ends ? (m(), s("button", {
|
|
199
|
+
key: 1,
|
|
200
|
+
type: "button",
|
|
201
|
+
class: "mwnf-pagination__button",
|
|
202
|
+
disabled: d.value === f.value,
|
|
203
|
+
onClick: n[3] ||= (e) => x(f.value)
|
|
204
|
+
}, y(b(u)("catalogue.pagination.last")) + " » ", 9, re)) : o("", !0),
|
|
205
|
+
c("span", ie, [e.jump ? (m(), s(r, { key: 0 }, [
|
|
206
|
+
c("label", ae, [c("span", null, y(b(u)("catalogue.pagination.page")), 1), E(c("input", {
|
|
207
|
+
"onUpdate:modelValue": n[4] ||= (e) => v.value = e,
|
|
208
|
+
class: "mwnf-pagination__jump-field",
|
|
209
|
+
type: "number",
|
|
210
|
+
min: "1",
|
|
211
|
+
max: f.value,
|
|
212
|
+
onKeyup: n[5] ||= D((e) => x(v.value), ["enter"])
|
|
213
|
+
}, null, 40, oe), [[C, v.value]])]),
|
|
214
|
+
c("span", null, "/ " + y(f.value), 1),
|
|
215
|
+
c("button", {
|
|
216
|
+
type: "button",
|
|
217
|
+
class: "mwnf-pagination__button",
|
|
218
|
+
onClick: n[6] ||= (e) => x(v.value)
|
|
219
|
+
}, y(b(u)("catalogue.pagination.go")), 1)
|
|
220
|
+
], 64)) : (m(), s(r, { key: 1 }, [l(y(d.value) + " / " + y(f.value), 1)], 64))])
|
|
221
|
+
], 8, Y)) : o("", !0);
|
|
222
|
+
}
|
|
223
|
+
}, ce = ["for"], le = {
|
|
224
|
+
key: 0,
|
|
225
|
+
class: "mwnf-facet__label"
|
|
226
|
+
}, ue = [
|
|
227
|
+
"id",
|
|
228
|
+
"value",
|
|
229
|
+
"disabled"
|
|
230
|
+
], de = {
|
|
231
|
+
key: 0,
|
|
232
|
+
value: "",
|
|
233
|
+
disabled: ""
|
|
234
|
+
}, fe = {
|
|
235
|
+
key: 1,
|
|
236
|
+
value: ""
|
|
237
|
+
}, pe = ["value"], me = {
|
|
238
|
+
__name: "FacetSelect",
|
|
239
|
+
props: {
|
|
240
|
+
label: {
|
|
241
|
+
type: String,
|
|
242
|
+
default: ""
|
|
243
|
+
},
|
|
244
|
+
options: {
|
|
245
|
+
type: Array,
|
|
246
|
+
default: () => []
|
|
247
|
+
},
|
|
248
|
+
modelValue: {
|
|
249
|
+
type: [String, Number],
|
|
250
|
+
default: ""
|
|
251
|
+
},
|
|
252
|
+
placeholder: {
|
|
253
|
+
type: String,
|
|
254
|
+
default: ""
|
|
255
|
+
},
|
|
256
|
+
anyLabel: {
|
|
257
|
+
type: String,
|
|
258
|
+
default: ""
|
|
259
|
+
},
|
|
260
|
+
disabled: {
|
|
261
|
+
type: Boolean,
|
|
262
|
+
default: !1
|
|
263
|
+
},
|
|
264
|
+
hideEmpty: {
|
|
265
|
+
type: Boolean,
|
|
266
|
+
default: !1
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
emits: ["update:modelValue"],
|
|
270
|
+
setup(e, { emit: t }) {
|
|
271
|
+
let n = e, a = t, l = x(), u = i(() => !n.hideEmpty || n.options.length > 0);
|
|
272
|
+
return (t, n) => u.value ? (m(), s("label", {
|
|
273
|
+
key: 0,
|
|
274
|
+
class: "mwnf-facet",
|
|
275
|
+
for: b(l)
|
|
276
|
+
}, [e.label ? (m(), s("span", le, y(e.label), 1)) : o("", !0), c("select", {
|
|
277
|
+
id: b(l),
|
|
278
|
+
class: "mwnf-facet__select",
|
|
279
|
+
value: String(e.modelValue ?? ""),
|
|
280
|
+
disabled: e.disabled,
|
|
281
|
+
onChange: n[0] ||= (e) => a("update:modelValue", e.target.value)
|
|
282
|
+
}, [
|
|
283
|
+
e.placeholder ? (m(), s("option", de, y(e.placeholder), 1)) : o("", !0),
|
|
284
|
+
e.anyLabel ? (m(), s("option", fe, y(e.anyLabel), 1)) : o("", !0),
|
|
285
|
+
(m(!0), s(r, null, g(e.options, (e) => (m(), s("option", {
|
|
286
|
+
key: e.value,
|
|
287
|
+
value: String(e.value)
|
|
288
|
+
}, y(e.label), 9, pe))), 128))
|
|
289
|
+
], 40, ue)], 8, ce)) : o("", !0);
|
|
290
|
+
}
|
|
291
|
+
}, he = {
|
|
292
|
+
key: 0,
|
|
293
|
+
class: "mwnf-filter__title"
|
|
294
|
+
}, ge = ["disabled"], _e = { class: "mwnf-filter__actions" }, ve = {
|
|
295
|
+
key: 0,
|
|
296
|
+
type: "submit",
|
|
297
|
+
class: "mwnf-filter__button mwnf-filter__button--apply"
|
|
298
|
+
}, ye = {
|
|
299
|
+
__name: "FilterPanel",
|
|
300
|
+
props: {
|
|
301
|
+
title: {
|
|
302
|
+
type: String,
|
|
303
|
+
default: ""
|
|
304
|
+
},
|
|
305
|
+
mode: {
|
|
306
|
+
type: String,
|
|
307
|
+
default: "apply"
|
|
308
|
+
},
|
|
309
|
+
applyLabel: {
|
|
310
|
+
type: String,
|
|
311
|
+
default: ""
|
|
312
|
+
},
|
|
313
|
+
resetLabel: {
|
|
314
|
+
type: String,
|
|
315
|
+
default: ""
|
|
316
|
+
},
|
|
317
|
+
disabled: {
|
|
318
|
+
type: Boolean,
|
|
319
|
+
default: !1
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
emits: ["apply", "reset"],
|
|
323
|
+
setup(e, { emit: t }) {
|
|
324
|
+
let n = t, { t: r } = k();
|
|
325
|
+
return (t, i) => (m(), s("form", {
|
|
326
|
+
class: p(["mwnf-filter", `mwnf-filter--${e.mode}`]),
|
|
327
|
+
onSubmit: i[1] ||= O((e) => n("apply"), ["prevent"])
|
|
328
|
+
}, [
|
|
329
|
+
e.title ? (m(), s("p", he, y(e.title), 1)) : o("", !0),
|
|
330
|
+
c("fieldset", {
|
|
331
|
+
class: "mwnf-filter__controls",
|
|
332
|
+
disabled: e.disabled
|
|
333
|
+
}, [_(t.$slots, "default")], 8, ge),
|
|
334
|
+
c("div", _e, [e.mode === "apply" ? (m(), s("button", ve, y(e.applyLabel || b(r)("core.action.apply")), 1)) : o("", !0), c("button", {
|
|
335
|
+
type: "button",
|
|
336
|
+
class: "mwnf-filter__button mwnf-filter__button--reset",
|
|
337
|
+
onClick: i[0] ||= (e) => n("reset")
|
|
338
|
+
}, y(e.resetLabel || b(r)("core.action.reset")), 1)])
|
|
339
|
+
], 34));
|
|
340
|
+
}
|
|
341
|
+
}, be = {
|
|
342
|
+
key: 0,
|
|
343
|
+
class: "mwnf-summary"
|
|
344
|
+
}, xe = {
|
|
345
|
+
key: 0,
|
|
346
|
+
class: "mwnf-summary__parts"
|
|
347
|
+
}, Se = {
|
|
348
|
+
key: 0,
|
|
349
|
+
class: "mwnf-summary__label"
|
|
350
|
+
}, Ce = {
|
|
351
|
+
key: 1,
|
|
352
|
+
class: "mwnf-summary__count"
|
|
353
|
+
}, we = {
|
|
354
|
+
key: 2,
|
|
355
|
+
class: "mwnf-summary__value"
|
|
356
|
+
}, Te = {
|
|
357
|
+
key: 1,
|
|
358
|
+
class: "mwnf-summary__actions"
|
|
359
|
+
}, Ee = {
|
|
360
|
+
__name: "ResultsSummary",
|
|
361
|
+
props: { parts: {
|
|
362
|
+
type: Array,
|
|
363
|
+
default: () => []
|
|
364
|
+
} },
|
|
365
|
+
setup(e) {
|
|
366
|
+
let t = !!S().actions;
|
|
367
|
+
return (n, i) => e.parts.length || n.$slots.default || b(t) ? (m(), s("div", be, [
|
|
368
|
+
e.parts.length ? (m(), s("p", xe, [(m(!0), s(r, null, g(e.parts, (e, t) => (m(), s("span", {
|
|
369
|
+
key: t,
|
|
370
|
+
class: "mwnf-summary__part"
|
|
371
|
+
}, [
|
|
372
|
+
e.label ? (m(), s("span", Se, y(e.label), 1)) : o("", !0),
|
|
373
|
+
i[0] ||= l(y(" "), -1),
|
|
374
|
+
e.count == null ? o("", !0) : (m(), s("span", Ce, y(e.count), 1)),
|
|
375
|
+
i[1] ||= l(y(" "), -1),
|
|
376
|
+
e.value ? (m(), s("span", we, y(e.value), 1)) : o("", !0)
|
|
377
|
+
]))), 128))])) : o("", !0),
|
|
378
|
+
_(n.$slots, "default"),
|
|
379
|
+
b(t) ? (m(), s("div", Te, [_(n.$slots, "actions")])) : o("", !0)
|
|
380
|
+
])) : o("", !0);
|
|
381
|
+
}
|
|
382
|
+
}, De = ["dir"], Oe = ["src", "alt"], ke = { class: "mwnf-partner-panel__text" }, Ae = ["innerHTML"], je = { key: 0 }, Me = {
|
|
383
|
+
key: 0,
|
|
384
|
+
class: "mwnf-partner-panel__count"
|
|
385
|
+
}, Ne = {
|
|
386
|
+
key: 1,
|
|
387
|
+
class: "mwnf-partner-panel__count mwnf-partner-panel__count--empty"
|
|
388
|
+
}, Pe = {
|
|
389
|
+
key: 0,
|
|
390
|
+
class: "mwnf-partner-panel__actions"
|
|
391
|
+
}, Fe = ["dir"], Ie = ["src", "alt"], Le = ["innerHTML"], Re = {
|
|
392
|
+
key: 0,
|
|
393
|
+
class: "mwnf-partner-panel__location"
|
|
394
|
+
}, ze = {
|
|
395
|
+
key: 2,
|
|
396
|
+
class: "mwnf-partner-panel__line"
|
|
397
|
+
}, Be = ["innerHTML"], Ve = { class: "mwnf-partner-panel__location" }, He = ["dir"], Ue = { class: "mwnf-partner-panel__header" }, We = {
|
|
398
|
+
key: 0,
|
|
399
|
+
class: "mwnf-partner-panel__location"
|
|
400
|
+
}, Ge = {
|
|
401
|
+
key: 0,
|
|
402
|
+
class: "mwnf-partner-panel__bar"
|
|
403
|
+
}, Ke = ["aria-label"], qe = {
|
|
404
|
+
key: 0,
|
|
405
|
+
class: "mwnf-partner-panel__divider",
|
|
406
|
+
"aria-hidden": "true"
|
|
407
|
+
}, Je = [
|
|
408
|
+
"id",
|
|
409
|
+
"aria-selected",
|
|
410
|
+
"aria-controls",
|
|
411
|
+
"tabindex",
|
|
412
|
+
"onClick"
|
|
413
|
+
], Ye = ["href"], Xe = ["href"], Ze = {
|
|
414
|
+
key: 2,
|
|
415
|
+
class: "mwnf-partner-panel__actions"
|
|
416
|
+
}, Qe = { class: "mwnf-partner-panel__body" }, $e = { class: "mwnf-partner-panel__panels" }, et = ["innerHTML"], tt = {
|
|
417
|
+
key: 2,
|
|
418
|
+
class: "mwnf-partner-panel__contact"
|
|
419
|
+
}, nt = { class: "mwnf-partner-panel__contact-heading" }, rt = ["innerHTML"], it = { key: 1 }, at = { key: 2 }, ot = { key: 3 }, st = ["href"], ct = {
|
|
420
|
+
key: 4,
|
|
421
|
+
class: "mwnf-partner-panel__links"
|
|
422
|
+
}, lt = {
|
|
423
|
+
key: 0,
|
|
424
|
+
class: "mwnf-partner-panel__divider",
|
|
425
|
+
"aria-hidden": "true"
|
|
426
|
+
}, ut = ["href"], dt = {
|
|
427
|
+
key: 0,
|
|
428
|
+
class: "mwnf-partner-panel__person-title"
|
|
429
|
+
}, ft = { key: 1 }, pt = { key: 2 }, mt = { key: 3 }, ht = { key: 4 }, gt = ["href"], _t = {
|
|
430
|
+
key: 3,
|
|
431
|
+
class: "mwnf-partner-panel__logos"
|
|
432
|
+
}, vt = ["src", "alt"], yt = {
|
|
433
|
+
__name: "PartnerPanel",
|
|
434
|
+
props: {
|
|
435
|
+
partner: {
|
|
436
|
+
type: Object,
|
|
437
|
+
default: null
|
|
438
|
+
},
|
|
439
|
+
variant: {
|
|
440
|
+
type: String,
|
|
441
|
+
default: "full"
|
|
442
|
+
},
|
|
443
|
+
layout: {
|
|
444
|
+
type: String,
|
|
445
|
+
default: "tabs"
|
|
446
|
+
},
|
|
447
|
+
show: {
|
|
448
|
+
type: Object,
|
|
449
|
+
default: () => ({})
|
|
450
|
+
},
|
|
451
|
+
heading: {
|
|
452
|
+
type: Number,
|
|
453
|
+
default: 0
|
|
454
|
+
},
|
|
455
|
+
label: {
|
|
456
|
+
type: String,
|
|
457
|
+
default: ""
|
|
458
|
+
},
|
|
459
|
+
objectsLabel: {
|
|
460
|
+
type: String,
|
|
461
|
+
default: "partner.item.objectsInSite"
|
|
462
|
+
},
|
|
463
|
+
emptyLabel: {
|
|
464
|
+
type: String,
|
|
465
|
+
default: ""
|
|
466
|
+
},
|
|
467
|
+
homepageLabel: {
|
|
468
|
+
type: String,
|
|
469
|
+
default: "partner.nav.homepage"
|
|
470
|
+
},
|
|
471
|
+
readMoreLabel: {
|
|
472
|
+
type: String,
|
|
473
|
+
default: "partner.action.readMore"
|
|
474
|
+
},
|
|
475
|
+
viewObjectsLabel: {
|
|
476
|
+
type: String,
|
|
477
|
+
default: "partner.action.viewObjects"
|
|
478
|
+
},
|
|
479
|
+
dir: {
|
|
480
|
+
type: String,
|
|
481
|
+
default: ""
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
setup(S) {
|
|
485
|
+
let C = S, { t: D } = k(), O = x(), A = {
|
|
486
|
+
line: ["actions"],
|
|
487
|
+
summary: ["logo"],
|
|
488
|
+
full: []
|
|
489
|
+
};
|
|
490
|
+
function j(e) {
|
|
491
|
+
let t = C.show?.[e];
|
|
492
|
+
return t === void 0 ? !(A[C.variant] ?? []).includes(e) : !!t;
|
|
493
|
+
}
|
|
494
|
+
let M = i(() => C.partner), N = i(() => C.heading >= 1 && C.heading <= 6 ? `h${C.heading}` : "p"), P = i(() => C.heading >= 1 && C.heading <= 5 ? `h${C.heading + 1}` : "p"), F = i(() => M.value?.logos?.[0] ?? null), I = i(() => j("homepage") ? M.value?.contact?.website ?? null : null), L = i(() => {
|
|
495
|
+
let e = M.value;
|
|
496
|
+
if (!e) return [];
|
|
497
|
+
let t = [];
|
|
498
|
+
j("description") && t.push({
|
|
499
|
+
key: "about",
|
|
500
|
+
label: D("partner.info.about")
|
|
501
|
+
});
|
|
502
|
+
let n = j("persons") ? e.persons ?? [] : [], r = e.contact ?? {}, i = r.address || r.phone || r.fax || r.email || r.website || r.links?.length || n.length;
|
|
503
|
+
return j("contact") && i && t.push({
|
|
504
|
+
key: "contact",
|
|
505
|
+
label: D("partner.info.contact")
|
|
506
|
+
}), j("logos") && e.logos?.length && t.push({
|
|
507
|
+
key: "logo",
|
|
508
|
+
label: D("partner.info.logo")
|
|
509
|
+
}), t;
|
|
510
|
+
}), R = h("");
|
|
511
|
+
w(() => [M.value?.id, L.value.map((e) => e.key).join()], () => {
|
|
512
|
+
L.value.some((e) => e.key === R.value) || (R.value = L.value[0]?.key ?? "");
|
|
513
|
+
}, { immediate: !0 }), w(() => M.value?.id, () => {
|
|
514
|
+
R.value = L.value[0]?.key ?? "";
|
|
515
|
+
});
|
|
516
|
+
function z(e) {
|
|
517
|
+
return `${O}-tab-${e}`;
|
|
518
|
+
}
|
|
519
|
+
function B(e) {
|
|
520
|
+
return `${O}-panel-${e}`;
|
|
521
|
+
}
|
|
522
|
+
function V(e) {
|
|
523
|
+
let t = L.value.map((e) => e.key), n = t.indexOf(R.value), r = {
|
|
524
|
+
ArrowRight: (n + 1) % t.length,
|
|
525
|
+
ArrowLeft: (n - 1 + t.length) % t.length,
|
|
526
|
+
Home: 0,
|
|
527
|
+
End: t.length - 1
|
|
528
|
+
}[e.key];
|
|
529
|
+
r === void 0 || !t.length || (e.preventDefault(), R.value = t[r], f(() => document.getElementById(z(t[r]))?.focus()));
|
|
530
|
+
}
|
|
531
|
+
let H = i(() => j("persons") ? M.value?.persons ?? [] : []), U = i(() => [...M.value?.contact?.website ? [M.value.contact.website] : [], ...M.value?.contact?.links ?? []]);
|
|
532
|
+
return (i, f) => S.partner && S.variant === "line" ? (m(), s("div", {
|
|
533
|
+
key: 0,
|
|
534
|
+
class: "mwnf-partner-panel mwnf-partner-panel--line",
|
|
535
|
+
dir: S.dir || void 0
|
|
536
|
+
}, [
|
|
537
|
+
j("logo") && F.value ? (m(), s("img", {
|
|
538
|
+
key: 0,
|
|
539
|
+
class: "mwnf-partner-panel__logo",
|
|
540
|
+
src: F.value.url,
|
|
541
|
+
alt: S.partner.plainName,
|
|
542
|
+
loading: "lazy"
|
|
543
|
+
}, null, 8, Oe)) : o("", !0),
|
|
544
|
+
c("div", ke, [
|
|
545
|
+
_(i.$slots, "badge", { partner: S.partner }),
|
|
546
|
+
(m(), a(v(S.partner.route ? e : "span"), {
|
|
547
|
+
class: "mwnf-partner-panel__name",
|
|
548
|
+
to: S.partner.route || void 0
|
|
549
|
+
}, {
|
|
550
|
+
default: T(() => [c("span", { innerHTML: S.partner.name }, null, 8, Ae), j("location") && S.partner.city ? (m(), s("span", je, ", " + y(S.partner.city), 1)) : o("", !0)]),
|
|
551
|
+
_: 1
|
|
552
|
+
}, 8, ["to"])),
|
|
553
|
+
_(i.$slots, "meta", { partner: S.partner }, () => [j("count") && S.partner.itemCount ? (m(), s("p", Me, y(S.partner.itemCount) + " " + y(b(D)(S.objectsLabel)), 1)) : j("count") && S.emptyLabel ? (m(), s("p", Ne, y(b(D)(S.emptyLabel)), 1)) : o("", !0)]),
|
|
554
|
+
i.$slots.actions || j("actions") && S.partner.route ? (m(), s("p", Pe, [_(i.$slots, "actions", { partner: S.partner }, () => [u(e, { to: S.partner.route }, {
|
|
555
|
+
default: T(() => [l(y(b(D)(S.readMoreLabel)), 1)]),
|
|
556
|
+
_: 1
|
|
557
|
+
}, 8, ["to"]), S.partner.objectsRoute ? (m(), s(r, { key: 0 }, [f[0] ||= c("span", {
|
|
558
|
+
class: "mwnf-partner-panel__divider",
|
|
559
|
+
"aria-hidden": "true"
|
|
560
|
+
}, "|", -1), u(e, { to: S.partner.objectsRoute }, {
|
|
561
|
+
default: T(() => [l(y(b(D)(S.viewObjectsLabel)), 1)]),
|
|
562
|
+
_: 1
|
|
563
|
+
}, 8, ["to"])], 64)) : o("", !0)])])) : o("", !0)
|
|
564
|
+
]),
|
|
565
|
+
_(i.$slots, "after", { partner: S.partner })
|
|
566
|
+
], 8, De)) : S.partner && S.variant === "summary" ? (m(), s("div", {
|
|
567
|
+
key: 1,
|
|
568
|
+
class: p(["mwnf-partner-panel mwnf-partner-panel--summary", { "mwnf-partner-panel--heading": S.heading }]),
|
|
569
|
+
dir: S.dir || void 0
|
|
570
|
+
}, [
|
|
571
|
+
j("logo") && F.value ? (m(), s("img", {
|
|
572
|
+
key: 0,
|
|
573
|
+
class: "mwnf-partner-panel__logo",
|
|
574
|
+
src: F.value.url,
|
|
575
|
+
alt: S.partner.plainName,
|
|
576
|
+
loading: "lazy"
|
|
577
|
+
}, null, 8, Ie)) : o("", !0),
|
|
578
|
+
S.heading ? (m(), s(r, { key: 1 }, [
|
|
579
|
+
_(i.$slots, "badge", { partner: S.partner }),
|
|
580
|
+
(m(), a(v(N.value), { class: "mwnf-partner-panel__name" }, {
|
|
581
|
+
default: T(() => [(m(), a(v(S.partner.route ? e : "span"), { to: S.partner.route || void 0 }, {
|
|
582
|
+
default: T(() => [c("span", { innerHTML: S.partner.name }, null, 8, Le)]),
|
|
583
|
+
_: 1
|
|
584
|
+
}, 8, ["to"]))]),
|
|
585
|
+
_: 1
|
|
586
|
+
})),
|
|
587
|
+
j("location") && S.partner.location ? (m(), s("p", Re, y(S.partner.location), 1)) : o("", !0),
|
|
588
|
+
_(i.$slots, "meta", { partner: S.partner })
|
|
589
|
+
], 64)) : (m(), s("p", ze, [
|
|
590
|
+
_(i.$slots, "badge", { partner: S.partner }),
|
|
591
|
+
(m(), a(v(S.partner.route ? e : "span"), {
|
|
592
|
+
class: "mwnf-partner-panel__name",
|
|
593
|
+
to: S.partner.route || void 0
|
|
594
|
+
}, {
|
|
595
|
+
default: T(() => [S.label ? (m(), s(r, { key: 0 }, [l(y(`${b(D)(S.label)} `), 1)], 64)) : o("", !0), c("span", { innerHTML: S.partner.name }, null, 8, Be)]),
|
|
596
|
+
_: 1
|
|
597
|
+
}, 8, ["to"])),
|
|
598
|
+
j("location") && S.partner.location ? (m(), s(r, { key: 0 }, [f[1] ||= l(", ", -1), c("span", Ve, y(S.partner.location), 1)], 64)) : o("", !0),
|
|
599
|
+
_(i.$slots, "meta", { partner: S.partner })
|
|
600
|
+
])),
|
|
601
|
+
_(i.$slots, "actions", { partner: S.partner }),
|
|
602
|
+
_(i.$slots, "after", { partner: S.partner })
|
|
603
|
+
], 10, Fe)) : S.partner ? (m(), s("div", {
|
|
604
|
+
key: 2,
|
|
605
|
+
class: p(["mwnf-partner-panel mwnf-partner-panel--full", `mwnf-partner-panel--${S.layout === "sections" ? "sections" : "tabs"}`]),
|
|
606
|
+
dir: S.dir || void 0
|
|
607
|
+
}, [
|
|
608
|
+
c("div", Ue, [
|
|
609
|
+
_(i.$slots, "badge", { partner: S.partner }),
|
|
610
|
+
(m(), a(v(N.value), {
|
|
611
|
+
class: "mwnf-partner-panel__name",
|
|
612
|
+
innerHTML: S.partner.name
|
|
613
|
+
}, null, 8, ["innerHTML"])),
|
|
614
|
+
j("location") && S.partner.location ? (m(), s("p", We, y(S.partner.location), 1)) : o("", !0),
|
|
615
|
+
_(i.$slots, "meta", { partner: S.partner })
|
|
616
|
+
]),
|
|
617
|
+
S.layout !== "sections" && L.value.length || I.value || i.$slots.actions ? (m(), s("div", Ge, [S.layout !== "sections" && L.value.length ? (m(), s("div", {
|
|
618
|
+
key: 0,
|
|
619
|
+
role: "tablist",
|
|
620
|
+
class: "mwnf-partner-panel__tabs",
|
|
621
|
+
"aria-label": S.partner.plainName,
|
|
622
|
+
onKeydown: V
|
|
623
|
+
}, [(m(!0), s(r, null, g(L.value, (e, t) => (m(), s(r, { key: e.key }, [t ? (m(), s("span", qe, "|")) : o("", !0), c("button", {
|
|
624
|
+
id: z(e.key),
|
|
625
|
+
type: "button",
|
|
626
|
+
role: "tab",
|
|
627
|
+
class: p(["mwnf-partner-panel__tab", { "mwnf-partner-panel__tab--active": R.value === e.key }]),
|
|
628
|
+
"aria-selected": R.value === e.key ? "true" : "false",
|
|
629
|
+
"aria-controls": B(e.key),
|
|
630
|
+
tabindex: R.value === e.key ? 0 : -1,
|
|
631
|
+
onClick: (t) => R.value = e.key
|
|
632
|
+
}, y(e.label), 11, Je)], 64))), 128)), I.value ? (m(), s(r, { key: 0 }, [f[2] ||= c("span", {
|
|
633
|
+
class: "mwnf-partner-panel__divider",
|
|
634
|
+
"aria-hidden": "true"
|
|
635
|
+
}, "|", -1), c("a", {
|
|
636
|
+
class: "mwnf-partner-panel__homepage",
|
|
637
|
+
href: I.value.url,
|
|
638
|
+
target: "_blank",
|
|
639
|
+
rel: "noopener"
|
|
640
|
+
}, "↗ " + y(b(D)(S.homepageLabel)), 9, Ye)], 64)) : o("", !0)], 40, Ke)) : I.value ? (m(), s("a", {
|
|
641
|
+
key: 1,
|
|
642
|
+
class: "mwnf-partner-panel__homepage",
|
|
643
|
+
href: I.value.url,
|
|
644
|
+
target: "_blank",
|
|
645
|
+
rel: "noopener"
|
|
646
|
+
}, "↗ " + y(b(D)(S.homepageLabel)), 9, Xe)) : o("", !0), i.$slots.actions ? (m(), s("div", Ze, [_(i.$slots, "actions", { partner: S.partner })])) : o("", !0)])) : o("", !0),
|
|
647
|
+
c("div", Qe, [j("pictures") && S.partner.pictures?.length ? (m(), a(t, {
|
|
648
|
+
key: 0,
|
|
649
|
+
class: "mwnf-partner-panel__pictures",
|
|
650
|
+
images: S.partner.pictures
|
|
651
|
+
}, null, 8, ["images"])) : o("", !0), c("div", $e, [(m(!0), s(r, null, g(L.value, (e) => E((m(), a(v(S.layout === "sections" ? "section" : "div"), d({
|
|
652
|
+
id: B(e.key),
|
|
653
|
+
key: e.key,
|
|
654
|
+
class: ["mwnf-partner-panel__panel", `mwnf-partner-panel__panel--${e.key}`]
|
|
655
|
+
}, { ref_for: !0 }, S.layout === "sections" ? {} : {
|
|
656
|
+
role: "tabpanel",
|
|
657
|
+
"aria-labelledby": z(e.key),
|
|
658
|
+
tabindex: 0
|
|
659
|
+
}), {
|
|
660
|
+
default: T(() => [S.layout === "sections" ? (m(), a(v(P.value), {
|
|
661
|
+
key: 0,
|
|
662
|
+
class: "mwnf-partner-panel__section-title"
|
|
663
|
+
}, {
|
|
664
|
+
default: T(() => [l(y(e.label), 1)]),
|
|
665
|
+
_: 2
|
|
666
|
+
}, 1024)) : o("", !0), e.key === "about" ? (m(), s("div", {
|
|
667
|
+
key: 1,
|
|
668
|
+
class: "mwnf-prose mwnf-partner-panel__description",
|
|
669
|
+
innerHTML: S.partner.description
|
|
670
|
+
}, null, 8, et)) : e.key === "contact" ? (m(), s("div", tt, [
|
|
671
|
+
S.partner.contact.address ? (m(), s(r, { key: 0 }, [c("p", nt, y(b(D)("partner.info.addresses")), 1), c("div", {
|
|
672
|
+
class: "mwnf-prose mwnf-partner-panel__address",
|
|
673
|
+
innerHTML: S.partner.contact.address
|
|
674
|
+
}, null, 8, rt)], 64)) : o("", !0),
|
|
675
|
+
S.partner.contact.phone ? (m(), s("p", it, y(b(D)("partner.info.phone")) + " " + y(S.partner.contact.phone), 1)) : o("", !0),
|
|
676
|
+
S.partner.contact.fax ? (m(), s("p", at, y(b(D)("partner.info.fax")) + " " + y(S.partner.contact.fax), 1)) : o("", !0),
|
|
677
|
+
S.partner.contact.email ? (m(), s("p", ot, [c("a", { href: `mailto:${S.partner.contact.email}` }, y(S.partner.contact.email), 9, st)])) : o("", !0),
|
|
678
|
+
U.value.length ? (m(), s("p", ct, [(m(!0), s(r, null, g(U.value, (e, t) => (m(), s(r, { key: e.url }, [t ? (m(), s("span", lt, "|")) : o("", !0), c("a", {
|
|
679
|
+
href: e.url,
|
|
680
|
+
target: "_blank",
|
|
681
|
+
rel: "noopener"
|
|
682
|
+
}, y(e.label), 9, ut)], 64))), 128))])) : o("", !0),
|
|
683
|
+
(m(!0), s(r, null, g(H.value, (e, t) => (m(), s("div", {
|
|
684
|
+
key: t,
|
|
685
|
+
class: "mwnf-partner-panel__person"
|
|
686
|
+
}, [
|
|
687
|
+
e.title ? (m(), s("p", dt, y(e.title), 1)) : o("", !0),
|
|
688
|
+
e.name ? (m(), s("p", ft, y(e.name), 1)) : o("", !0),
|
|
689
|
+
e.phone ? (m(), s("p", pt, y(b(D)("partner.info.phone")) + " " + y(e.phone), 1)) : o("", !0),
|
|
690
|
+
e.fax ? (m(), s("p", mt, y(b(D)("partner.info.fax")) + " " + y(e.fax), 1)) : o("", !0),
|
|
691
|
+
e.email ? (m(), s("p", ht, [c("a", { href: `mailto:${e.email}` }, y(e.email), 9, gt)])) : o("", !0)
|
|
692
|
+
]))), 128))
|
|
693
|
+
])) : e.key === "logo" ? (m(), s("div", _t, [(m(!0), s(r, null, g(S.partner.logos, (e) => (m(), s("img", {
|
|
694
|
+
key: e.url,
|
|
695
|
+
src: e.url,
|
|
696
|
+
alt: e.alt
|
|
697
|
+
}, null, 8, vt))), 128))])) : o("", !0)]),
|
|
698
|
+
_: 2
|
|
699
|
+
}, 1040, ["id", "class"])), [[ee, S.layout === "sections" || R.value === e.key]])), 128))])]),
|
|
700
|
+
j("map") && S.partner.map ? (m(), a(n, {
|
|
701
|
+
key: 1,
|
|
702
|
+
class: "mwnf-partner-panel__map",
|
|
703
|
+
latitude: S.partner.map.latitude,
|
|
704
|
+
longitude: S.partner.map.longitude,
|
|
705
|
+
zoom: S.partner.map.zoom,
|
|
706
|
+
label: S.partner.map.label
|
|
707
|
+
}, null, 8, [
|
|
708
|
+
"latitude",
|
|
709
|
+
"longitude",
|
|
710
|
+
"zoom",
|
|
711
|
+
"label"
|
|
712
|
+
])) : o("", !0),
|
|
713
|
+
_(i.$slots, "after", { partner: S.partner })
|
|
714
|
+
], 10, He)) : o("", !0);
|
|
715
|
+
}
|
|
716
|
+
}, $ = {
|
|
717
|
+
key: 0,
|
|
718
|
+
class: "mwnf-timeline__rows"
|
|
719
|
+
}, bt = { class: "mwnf-timeline__date" }, xt = { class: "mwnf-timeline__body" }, St = {
|
|
720
|
+
key: 0,
|
|
721
|
+
class: "mwnf-timeline__caption"
|
|
722
|
+
}, Ct = ["innerHTML"], wt = ["innerHTML"], Tt = {
|
|
723
|
+
key: 2,
|
|
724
|
+
class: "mwnf-timeline__media"
|
|
725
|
+
}, Et = ["src", "alt"], Dt = ["innerHTML"], Ot = {
|
|
726
|
+
key: 3,
|
|
727
|
+
class: "mwnf-timeline__actions"
|
|
728
|
+
}, kt = {
|
|
729
|
+
key: 1,
|
|
730
|
+
class: "mwnf-timeline__empty"
|
|
731
|
+
}, At = {
|
|
732
|
+
__name: "TimelineEventList",
|
|
733
|
+
props: { events: {
|
|
734
|
+
type: Array,
|
|
735
|
+
default: () => []
|
|
736
|
+
} },
|
|
737
|
+
setup(t) {
|
|
738
|
+
let n = !!S().empty;
|
|
739
|
+
return (i, u) => t.events.length ? (m(), s("ul", $, [(m(!0), s(r, null, g(t.events, (t) => (m(), s("li", {
|
|
740
|
+
key: t.id,
|
|
741
|
+
class: "mwnf-timeline__row"
|
|
742
|
+
}, [c("div", bt, [_(i.$slots, "date", { event: t }, () => [l(y(t.date), 1)])]), c("div", xt, [
|
|
743
|
+
t.caption || i.$slots.caption ? (m(), s("div", St, [_(i.$slots, "caption", { event: t }, () => [c("span", { innerHTML: t.caption }, null, 8, Ct)])])) : o("", !0),
|
|
744
|
+
t.description ? (m(), s("div", {
|
|
745
|
+
key: 1,
|
|
746
|
+
class: "mwnf-timeline__description mwnf-sheet__block",
|
|
747
|
+
innerHTML: t.description
|
|
748
|
+
}, null, 8, wt)) : o("", !0),
|
|
749
|
+
t.media?.length || i.$slots.media ? (m(), s("div", Tt, [_(i.$slots, "media", { event: t }, () => [(m(!0), s(r, null, g(t.media ?? [], (t, n) => (m(), a(e, {
|
|
750
|
+
key: n,
|
|
751
|
+
class: "mwnf-timeline__media-item",
|
|
752
|
+
to: t.to,
|
|
753
|
+
href: t.href
|
|
754
|
+
}, {
|
|
755
|
+
default: T(() => [t.image ? (m(), s("img", {
|
|
756
|
+
key: 0,
|
|
757
|
+
src: t.image,
|
|
758
|
+
alt: t.alt ?? "",
|
|
759
|
+
loading: "lazy"
|
|
760
|
+
}, null, 8, Et)) : o("", !0), t.caption ? (m(), s("span", {
|
|
761
|
+
key: 1,
|
|
762
|
+
class: "mwnf-timeline__media-caption",
|
|
763
|
+
innerHTML: t.caption
|
|
764
|
+
}, null, 8, Dt)) : o("", !0)]),
|
|
765
|
+
_: 2
|
|
766
|
+
}, 1032, ["to", "href"]))), 128))])])) : o("", !0),
|
|
767
|
+
t.actions?.length || i.$slots.actions ? (m(), s("div", Ot, [_(i.$slots, "actions", { event: t }, () => [(m(!0), s(r, null, g(t.actions ?? [], (t, n) => (m(), a(e, {
|
|
768
|
+
key: n,
|
|
769
|
+
class: "mwnf-timeline__action",
|
|
770
|
+
to: t.to,
|
|
771
|
+
href: t.href
|
|
772
|
+
}, {
|
|
773
|
+
default: T(() => [l(y(t.label) + " →", 1)]),
|
|
774
|
+
_: 2
|
|
775
|
+
}, 1032, ["to", "href"]))), 128))])])) : o("", !0)
|
|
776
|
+
])]))), 128))])) : b(n) ? (m(), s("div", kt, [_(i.$slots, "empty")])) : o("", !0);
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
//#endregion
|
|
780
|
+
export { me as a, ye as i, yt as n, se as o, Ee as r, J as s, At as t };
|