@museumwnf/viewer-layout 3.9.0 → 3.11.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.
@@ -0,0 +1,276 @@
1
+ import { a as e, i as t, n, o as r, r as ee, s as te, t as ne, u as re } from "./MediaGallery-CHhf9xUZ.js";
2
+ import { t as ie } from "./GlossaryPopover-B7E6BsjS.js";
3
+ import { Fragment as ae, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as oe, createTextVNode as se, createVNode as l, guardReactiveProps as u, normalizeClass as ce, normalizeProps as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useSlots as _, withCtx as v } from "vue";
4
+ import { NotFoundView as le, byId as ue, citation as de, creditLine as fe, entityRef as pe, languageLabels as me, pictureCredits as he, picturesInLanguage as ge, renderBlock as y, renderInline as b, renderPlain as x, sheetRows as S, sourceUrl as _e, useDataPackage as ve, useGlossaryPopup as ye, useI18n as be, useProjects as xe, useRecordSheet as Se, useRelatedRecords as Ce } from "@museumwnf/viewer-core";
5
+ import { useRoute as we } from "vue-router";
6
+ //#region src/views/pictureLimit.js
7
+ function C(e, t, n) {
8
+ let r = typeof t == "function" ? t(n) : t;
9
+ return Number.isInteger(r) && r > 0 ? e.slice(0, r) : e;
10
+ }
11
+ //#endregion
12
+ //#region src/views/RecordView.vue
13
+ var Te = ["dir", "innerHTML"], Ee = { class: "mwnf-record__body" }, De = { class: "mwnf-record__main" }, w = {
14
+ key: 1,
15
+ class: "mwnf-record__status"
16
+ }, T = {
17
+ key: 0,
18
+ class: "mwnf-record__aside"
19
+ }, E = {
20
+ key: 2,
21
+ class: "mwnf-record__status"
22
+ }, D = {
23
+ __name: "RecordView",
24
+ props: {
25
+ spec: {
26
+ type: Object,
27
+ required: !0
28
+ },
29
+ id: {
30
+ type: String,
31
+ required: !0
32
+ },
33
+ entity: {
34
+ type: String,
35
+ default: ""
36
+ }
37
+ },
38
+ setup(D) {
39
+ let O = D, { t: k, locale: Oe } = be(), A = ve(), ke = xe(), Ae = _(), je = we(), j = O.spec.entity ?? O.entity, M = i(() => O.spec), Me = pe(j), Ne = ue(j), N = i(() => Ne.value.get(O.id) ?? null), Pe = i(() => Me.value !== null), { language: P, languages: Fe, dir: F, select: I, text: L, ready: R, terms: Ie, glossary: z, attribution: B } = Se(N, {
40
+ entity: j,
41
+ translations: O.spec.translations ?? [],
42
+ attribution: O.spec.attribution ?? []
43
+ }), V = i(() => me(Fe.value)), { active: H, onClick: U, close: Le } = ye(Ie), Re = i(() => H.value ? y(H.value.definition, { breaks: !0 }) : ""), W = (e, t) => A.tr(e, t, P.value, "en"), ze = (e) => A.translations(e, P.value), G = i(() => ({
44
+ record: N.value,
45
+ text: L.value,
46
+ language: P.value,
47
+ languages: V.value,
48
+ select: I,
49
+ dir: F.value,
50
+ glossary: z.value,
51
+ ready: R.value,
52
+ attribution: B.value,
53
+ t: k,
54
+ tr: W,
55
+ translations: ze
56
+ }));
57
+ function K(e) {
58
+ return ((typeof e == "function" ? e(G.value) : e) ?? []).map((e) => ({
59
+ ...e,
60
+ label: e.label ? k(e.label) : ""
61
+ }));
62
+ }
63
+ let Be = i(() => N.value ? S(K(M.value.fields), G.value) : []), Ve = i(() => N.value ? S(K(M.value.sections).map((e) => ({
64
+ render: "block",
65
+ ...e
66
+ })), G.value) : []), q = i(() => M.value.shortDescription === !1 ? "" : M.value.shortDescription ?? "short_description"), He = i(() => {
67
+ let e = q.value ? L.value[q.value] : "";
68
+ return e ? { html: y(String(e), {
69
+ breaks: !0,
70
+ glossary: z.value
71
+ }) } : null;
72
+ }), Ue = i(() => {
73
+ if (!N.value) return "";
74
+ if (M.value.title) return M.value.title(G.value);
75
+ let e = L.value.name ?? N.value.internal_name ?? N.value.id;
76
+ return b(String(e), { glossary: z.value });
77
+ }), J = i(() => N.value ? C(We(), M.value.pictureLimit, G.value) : []);
78
+ function We() {
79
+ if (M.value.media) return M.value.media(N.value, G.value);
80
+ let e = x(String(L.value.name ?? N.value.internal_name ?? ""));
81
+ return ge(N.value.images, P.value).map((t) => ({
82
+ url: t.url,
83
+ alt: t.captions?.[P.value] ?? e,
84
+ caption: t.captions?.[P.value] ?? "",
85
+ ...he(t, P.value)
86
+ }));
87
+ }
88
+ let Ge = [
89
+ {
90
+ field: "author",
91
+ label: "sheet.field.preparedBy"
92
+ },
93
+ {
94
+ field: "copy_editor",
95
+ label: "sheet.field.copyeditedBy"
96
+ },
97
+ {
98
+ field: "translator",
99
+ label: "sheet.field.translationBy"
100
+ },
101
+ {
102
+ field: "translation_copy_editor",
103
+ label: "sheet.field.translationCopyeditedBy"
104
+ }
105
+ ];
106
+ function Y(e) {
107
+ let t = M.value.creditNames ? L.value.credit_names?.[e] : null;
108
+ return t?.length ? fe(t) : L.value[e] ?? B.value[e] ?? "";
109
+ }
110
+ let Ke = i(() => (M.value.credits ?? Ge).map(({ field: e, label: t }) => ({
111
+ label: k(t),
112
+ value: Y(e)
113
+ })).filter((e) => e.value)), qe = i(() => String(N.value?.[M.value.workingNumber ?? "mwnf_reference"] ?? "")), X = i(() => {
114
+ let e = M.value.citation;
115
+ if (!N.value || e === !1) return "";
116
+ let t = typeof e?.project == "function" ? null : e?.project ?? N.value.project_id, n = typeof e?.project == "function" ? e.project(N.value, G.value) : ke.label(t), r = e?.permalink === !1 ? void 0 : typeof e?.permalink == "string" ? e.permalink : _e(je) ?? void 0;
117
+ return de({
118
+ author: Y("author") || void 0,
119
+ name: L.value.name ?? N.value.internal_name ?? "",
120
+ project: n,
121
+ permalink: r,
122
+ inWord: k("record.citation.in")
123
+ });
124
+ }), Z = Ce(N, {
125
+ entity: j,
126
+ language: P
127
+ }), Q = i(() => M.value.related === !1 ? null : M.value.related ?? {}), $ = i(() => {
128
+ if (!Q.value) return [];
129
+ let e = Q.value.record ?? Je;
130
+ return Z.value.inPackage.map((t) => e(t, G.value));
131
+ });
132
+ function Je({ record: e, justification: t }) {
133
+ let n = W(j, e.id).name ?? e.internal_name ?? e.id;
134
+ return {
135
+ id: e.id,
136
+ image: e.images?.[0]?.url ?? "",
137
+ imageAlt: x(String(n)),
138
+ name: b(String(n)),
139
+ meta: t ? [t] : [],
140
+ badge: e.type ?? "",
141
+ to: {
142
+ name: M.value.route ?? (O.entity ? `${O.entity}-detail` : "item"),
143
+ params: { id: e.id }
144
+ }
145
+ };
146
+ }
147
+ let Ye = /* @__PURE__ */ new Set([
148
+ "header",
149
+ "before-sheet",
150
+ "after-sheet",
151
+ "aside",
152
+ "source",
153
+ "related",
154
+ "after",
155
+ "default"
156
+ ]), Xe = i(() => Object.keys(Ae).filter((e) => !Ye.has(e)));
157
+ return (i, _) => Pe.value && !N.value ? (f(), a(g(le), { key: 0 })) : N.value ? (f(), s("article", {
158
+ key: 1,
159
+ class: ce(["mwnf-record", { "mwnf-record--spaced": M.value.spaced }]),
160
+ onClick: _[0] ||= (...e) => g(U) && g(U)(...e)
161
+ }, [
162
+ m(i.$slots, "header", d(u(G.value)), () => [
163
+ M.value.back ? (f(), a(re, {
164
+ key: 0,
165
+ class: "mwnf-record__back",
166
+ to: M.value.back.to,
167
+ href: M.value.back.href
168
+ }, {
169
+ default: v(() => [se("← " + h(g(k)(M.value.back.label)), 1)]),
170
+ _: 1
171
+ }, 8, ["to", "href"])) : o("", !0),
172
+ l(te, {
173
+ languages: V.value,
174
+ language: g(P),
175
+ onSelect: g(I)
176
+ }, null, 8, [
177
+ "languages",
178
+ "language",
179
+ "onSelect"
180
+ ]),
181
+ c("h1", {
182
+ class: "mwnf-record__title",
183
+ dir: g(F) || void 0,
184
+ innerHTML: Ue.value
185
+ }, null, 8, Te)
186
+ ]),
187
+ c("div", Ee, [c("div", De, [
188
+ J.value.length ? (f(), a(ne, {
189
+ key: 0,
190
+ images: J.value,
191
+ variant: M.value.mediaVariant ?? ""
192
+ }, null, 8, ["images", "variant"])) : o("", !0),
193
+ g(R) ? o("", !0) : (f(), s("p", w, h(g(k)("core.status.loading")), 1)),
194
+ m(i.$slots, "before-sheet", d(u(G.value))),
195
+ l(r, {
196
+ rows: Be.value,
197
+ layout: M.value.layout ?? "table",
198
+ dir: g(F),
199
+ "short-description": He.value,
200
+ "short-description-after": M.value.shortDescriptionAfter ?? "description"
201
+ }, oe({ _: 2 }, [p(Xe.value, (e) => ({
202
+ name: e,
203
+ fn: v((t) => [m(i.$slots, e, d(u({
204
+ ...t,
205
+ ...G.value
206
+ })))])
207
+ }))]), 1032, [
208
+ "rows",
209
+ "layout",
210
+ "dir",
211
+ "short-description",
212
+ "short-description-after"
213
+ ]),
214
+ (f(!0), s(ae, null, p(Ve.value, (t) => (f(), a(e, {
215
+ key: t.key,
216
+ heading: t.label,
217
+ html: t.html,
218
+ dir: g(F)
219
+ }, null, 8, [
220
+ "heading",
221
+ "html",
222
+ "dir"
223
+ ]))), 128)),
224
+ m(i.$slots, "after-sheet", d(u(G.value))),
225
+ l(t, {
226
+ credits: Ke.value,
227
+ "working-number": qe.value,
228
+ "working-number-label": g(k)("sheet.field.workingNumber"),
229
+ citation: X.value,
230
+ "citation-heading": M.value.citation?.heading ? g(k)(M.value.citation.heading) : ""
231
+ }, null, 8, [
232
+ "credits",
233
+ "working-number",
234
+ "working-number-label",
235
+ "citation",
236
+ "citation-heading"
237
+ ]),
238
+ m(i.$slots, "source", d(u(G.value)), () => [l(ee)]),
239
+ m(i.$slots, "related", d(u({
240
+ ...G.value,
241
+ records: $.value,
242
+ outside: g(Z).outside
243
+ })), () => [Q.value ? (f(), a(n, {
244
+ key: 0,
245
+ heading: g(k)(Q.value.heading ?? "record.related.items"),
246
+ records: $.value,
247
+ variant: Q.value.variant ?? "list",
248
+ "action-label": Q.value.actionLabel ? g(k)(Q.value.actionLabel) : ""
249
+ }, null, 8, [
250
+ "heading",
251
+ "records",
252
+ "variant",
253
+ "action-label"
254
+ ])) : o("", !0)])
255
+ ]), i.$slots.aside ? (f(), s("aside", T, [m(i.$slots, "aside", d(u({
256
+ ...G.value,
257
+ records: $.value,
258
+ outside: g(Z).outside
259
+ })))])) : o("", !0)]),
260
+ m(i.$slots, "after", d(u(G.value))),
261
+ l(ie, {
262
+ term: g(H),
263
+ html: Re.value,
264
+ dir: g(F),
265
+ onClose: g(Le)
266
+ }, null, 8, [
267
+ "term",
268
+ "html",
269
+ "dir",
270
+ "onClose"
271
+ ])
272
+ ], 2)) : (f(), s("p", E, h(g(k)("core.status.loading")), 1));
273
+ }
274
+ };
275
+ //#endregion
276
+ export { C as n, D as t };
@@ -1,4 +1,5 @@
1
- import { a as e, r as t } from "./chrome-i1DOEyLS.js";
1
+ import { t as e } from "./PageShell-BT9SnXav.js";
2
+ import { r as t } from "./chrome-DNsZQXrL.js";
2
3
  import { computed as n, createBlock as r, createSlots as i, mergeProps as a, openBlock as o, renderSlot as s, useAttrs as c, withCtx as l } from "vue";
3
4
  import { mwnfLinks as u, useI18n as d, useSection as f, useSiteConfig as p, useSiteRights as m } from "@museumwnf/viewer-core";
4
5
  import { useRouter as h } from "vue-router";
@@ -1,7 +1,7 @@
1
- import { d as e, i as t } from "./GlossaryPopover-DcptyNWI.js";
2
- import { o as n } from "./TimelineResultsView-C2-TnM71.js";
3
- import { A as r, F as i, h as a, m as o } from "./data-CGFEbGab.js";
4
- import { n as s, r as c, t as l } from "./themeSpecs-C2Y2abxd.js";
1
+ import { r as e, u as t } from "./MediaGallery-CHhf9xUZ.js";
2
+ import { o as n } from "./TimelineResultsView-xA0Wu7zv.js";
3
+ import { A as r, F as i, h as a, m as o } from "./data-BINc9QjV.js";
4
+ import { n as s, r as c, t as l } from "./themeSpecs-DP9xWiVJ.js";
5
5
  import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, normalizeClass as v, onMounted as ee, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, vModelCheckbox as w, watch as T, withCtx as E, withDirectives as D } from "vue";
6
6
  import { renderBlock as O, useI18n as k } from "@museumwnf/viewer-core";
7
7
  import { RouterLink as A, useRoute as te, useRouter as ne } from "vue-router";
@@ -67,8 +67,8 @@ var j = Object.defineProperty, M = (e, t) => {
67
67
  }
68
68
  },
69
69
  emits: ["update:selectedId"],
70
- setup(t, { emit: n }) {
71
- let r = t, i = n, { t: a } = k(), o = d(() => r.pictures.find((e) => e.id === r.selectedId) ?? null), s = d(() => r.pictures.some((e) => e.backRelated?.length)), c = b(!1);
70
+ setup(e, { emit: n }) {
71
+ let r = e, i = n, { t: a } = k(), o = d(() => r.pictures.find((e) => e.id === r.selectedId) ?? null), s = d(() => r.pictures.some((e) => e.backRelated?.length)), c = b(!1);
72
72
  T(() => r.pictures, () => {
73
73
  c.value = !1;
74
74
  });
@@ -86,38 +86,38 @@ var j = Object.defineProperty, M = (e, t) => {
86
86
  class: "mwnf-picture-gallery__detail"
87
87
  }, [e.label ? (y(), m("span", B, S(e.label), 1)) : p("", !0), h("span", { innerHTML: e.value }, null, 8, V)]))), 128)),
88
88
  o.value.detail ? (y(), m("div", H, S(o.value.detail), 1)) : p("", !0),
89
- o.value.to ? (y(), f(e, {
89
+ o.value.to ? (y(), f(t, {
90
90
  key: 1,
91
91
  class: "mwnf-picture-gallery__link",
92
92
  to: o.value.to
93
93
  }, {
94
- default: E(() => [g(S(C(a)(t.seeItemEntry)) + " →", 1)]),
94
+ default: E(() => [g(S(C(a)(e.seeItemEntry)) + " →", 1)]),
95
95
  _: 1
96
- }, 8, ["to"])) : (y(), m("div", U, S(C(a)(t.unresolvedEntry)), 1))
97
- ])])) : (y(), m("div", W, S(C(a)(t.emptyEntry)), 1)), t.pictures.length ? (y(), m("div", G, [h("ul", K, [(y(!0), m(u, null, x(l.value, (e) => (y(), m("li", {
98
- key: e.id,
96
+ }, 8, ["to"])) : (y(), m("div", U, S(C(a)(e.unresolvedEntry)), 1))
97
+ ])])) : (y(), m("div", W, S(C(a)(e.emptyEntry)), 1)), e.pictures.length ? (y(), m("div", G, [h("ul", K, [(y(!0), m(u, null, x(l.value, (t) => (y(), m("li", {
98
+ key: t.id,
99
99
  class: v(["mwnf-picture-gallery__thumb", {
100
- "mwnf-picture-gallery__thumb--active": e.id === t.selectedId,
101
- "mwnf-picture-gallery__thumb--related": e.backRelated?.length
100
+ "mwnf-picture-gallery__thumb--active": t.id === e.selectedId,
101
+ "mwnf-picture-gallery__thumb--related": t.backRelated?.length
102
102
  }])
103
103
  }, [h("button", {
104
104
  type: "button",
105
- onClick: (t) => _(e)
105
+ onClick: (e) => _(t)
106
106
  }, [h("img", {
107
- src: e.image,
108
- alt: e.imageAlt ?? "",
107
+ src: t.image,
108
+ alt: t.imageAlt ?? "",
109
109
  loading: "lazy"
110
110
  }, null, 8, J)], 8, q), h("div", Y, [
111
- e.imageCaption ? (y(), m("span", X, S(e.imageCaption) + ", ", 1)) : p("", !0),
111
+ t.imageCaption ? (y(), m("span", X, S(t.imageCaption) + ", ", 1)) : p("", !0),
112
112
  h("span", {
113
113
  class: "mwnf-picture-gallery__thumb-name",
114
- innerHTML: e.name
114
+ innerHTML: t.name
115
115
  }, null, 8, Z),
116
- e.detail ? (y(), m("span", Q, ", " + S(e.detail), 1)) : p("", !0)
116
+ t.detail ? (y(), m("span", Q, ", " + S(t.detail), 1)) : p("", !0)
117
117
  ])], 2))), 128))]), s.value ? (y(), m("label", ie, [D(h("input", {
118
118
  "onUpdate:modelValue": r[0] ||= (e) => c.value = e,
119
119
  type: "checkbox"
120
- }, null, 512), [[w, c.value]]), h("span", null, S(c.value ? C(a)(t.hideRelatedEntry) : C(a)(t.addRelatedEntry)), 1)])) : p("", !0)])) : p("", !0)]));
120
+ }, null, 512), [[w, c.value]]), h("span", null, S(c.value ? C(a)(e.hideRelatedEntry) : C(a)(e.addRelatedEntry)), 1)])) : p("", !0)])) : p("", !0)]));
121
121
  }
122
122
  }, $ = {
123
123
  key: 0,
@@ -211,8 +211,8 @@ var j = Object.defineProperty, M = (e, t) => {
211
211
  type: Boolean,
212
212
  default: !1
213
213
  } },
214
- setup(e) {
215
- let w = e, { aboutTheme: D, owningTheme: O, romanFor: j, themeByRouteId: M, themeText: N, useThemePictures: re } = r, { t: P, locale: F } = k(), I = te(), L = ne(), R = d(() => w.aboutMode ? D.value : M(I.params.id)), z = d(() => {
214
+ setup(t) {
215
+ let w = t, { aboutTheme: D, owningTheme: O, romanFor: j, themeByRouteId: M, themeText: N, useThemePictures: re } = r, { t: P, locale: F } = k(), I = te(), L = ne(), R = d(() => w.aboutMode ? D.value : M(I.params.id)), z = d(() => {
216
216
  let e = I.params.subtheme;
217
217
  if (w.aboutMode || !e || e === "overview") return null;
218
218
  let t = Number(e);
@@ -252,7 +252,7 @@ var j = Object.defineProperty, M = (e, t) => {
252
252
  key: 0,
253
253
  spec: H.value,
254
254
  id: V.value.id,
255
- class: v(["mwnf-dxa-theme", { "mwnf-dxa-theme--about": e.aboutMode }])
255
+ class: v(["mwnf-dxa-theme", { "mwnf-dxa-theme--about": t.aboutMode }])
256
256
  }, {
257
257
  header: E(() => [h("div", je, [Q.value ? (y(), m("span", Me, S(C(P)("exhibition.theme.romanLabel")) + " " + S(Q.value) + " ▪ ", 1)) : p("", !0), g(S(X.value), 1)]), h("div", Ne, S(Z.value), 1)]),
258
258
  panel: E(() => [_(ae, {
@@ -260,7 +260,7 @@ var j = Object.defineProperty, M = (e, t) => {
260
260
  "selected-id": W.value,
261
261
  "onUpdate:selectedId": J
262
262
  }, null, 8, ["pictures", "selected-id"])]),
263
- "after-body": E(() => [e.aboutMode ? p("", !0) : (y(), f(ke, {
263
+ "after-body": E(() => [t.aboutMode ? p("", !0) : (y(), f(ke, {
264
264
  key: 0,
265
265
  picture: q.value,
266
266
  "contextual-description": ie.value,
@@ -300,13 +300,13 @@ var j = Object.defineProperty, M = (e, t) => {
300
300
  _: 2
301
301
  }, 1032, ["to", "class"])]))), 128))
302
302
  ])) : p("", !0)]),
303
- after: E(({ next: n }) => [e.aboutMode && n ? (y(), m("div", ze, [i[0] ||= h("span", null, null, -1), _(C(A), {
303
+ after: E(({ next: n }) => [t.aboutMode && n ? (y(), m("div", ze, [i[0] ||= h("span", null, null, -1), _(C(A), {
304
304
  to: C(s)(n),
305
305
  class: "mwnf-dxa-theme__tour-link"
306
306
  }, {
307
307
  default: E(() => [g(S(C(P)("core.pagination.next")) + " " + S(Ve), 1)]),
308
308
  _: 1
309
- }, 8, ["to"])])) : p("", !0), _(t)]),
309
+ }, 8, ["to"])])) : p("", !0), _(e)]),
310
310
  _: 1
311
311
  }, 8, [
312
312
  "spec",
@@ -1,4 +1,4 @@
1
- import { d as e, n as t } from "./GlossaryPopover-DcptyNWI.js";
1
+ import { t as e, u as t } from "./MediaGallery-CHhf9xUZ.js";
2
2
  import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, mergeProps as u, nextTick as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, useId as b, useSlots as x, vModelText as S, vShow as ee, watch as C, withCtx as w, withDirectives as T, withKeys as E, withModifiers as D } from "vue";
3
3
  import { useI18n as O } from "@museumwnf/viewer-core/i18n";
4
4
  import { mdInline as k } from "@museumwnf/viewer-core";
@@ -45,14 +45,14 @@ var A = ["innerHTML"], j = ["innerHTML"], M = {
45
45
  ].includes(e)
46
46
  }
47
47
  },
48
- setup(t) {
49
- return (r, u) => t.cards.length ? (p(), o("ul", {
48
+ setup(e) {
49
+ return (r, u) => e.cards.length ? (p(), o("ul", {
50
50
  key: 0,
51
- class: f(["mwnf-cards", `mwnf-cards--${t.variant}`])
52
- }, [(p(!0), o(n, null, h(t.cards, (r) => (p(), o("li", {
51
+ class: f(["mwnf-cards", `mwnf-cards--${e.variant}`])
52
+ }, [(p(!0), o(n, null, h(e.cards, (r) => (p(), o("li", {
53
53
  key: r.href ?? r.title,
54
54
  class: f(["mwnf-cards__card"])
55
- }, [t.variant === "cards" ? (p(), i(e, {
55
+ }, [e.variant === "cards" ? (p(), i(t, {
56
56
  key: 0,
57
57
  class: "mwnf-cards__link",
58
58
  to: r.to,
@@ -71,7 +71,7 @@ var A = ["innerHTML"], j = ["innerHTML"], M = {
71
71
  r.action ? (p(), o("span", M, v(r.action) + " →", 1)) : a("", !0)
72
72
  ]),
73
73
  _: 2
74
- }, 1032, ["to", "href"])) : t.variant === "rows" ? (p(), i(e, {
74
+ }, 1032, ["to", "href"])) : e.variant === "rows" ? (p(), i(t, {
75
75
  key: 1,
76
76
  class: "mwnf-cards__link",
77
77
  to: r.to,
@@ -94,7 +94,7 @@ var A = ["innerHTML"], j = ["innerHTML"], M = {
94
94
  }, null, 8, R)) : a("", !0)
95
95
  ])]),
96
96
  _: 2
97
- }, 1032, ["to", "href"])) : t.variant === "covers" ? (p(), i(e, {
97
+ }, 1032, ["to", "href"])) : e.variant === "covers" ? (p(), i(t, {
98
98
  key: 2,
99
99
  class: "mwnf-cards__link",
100
100
  to: r.to,
@@ -113,18 +113,18 @@ var A = ["innerHTML"], j = ["innerHTML"], M = {
113
113
  }, null, 8, H)
114
114
  ]),
115
115
  _: 2
116
- }, 1032, ["to", "href"])) : t.variant === "accordion" ? (p(), o("details", te, [s("summary", ne, [r.number ? (p(), o("span", U, v(r.number), 1)) : a("", !0), s("span", {
116
+ }, 1032, ["to", "href"])) : e.variant === "accordion" ? (p(), o("details", te, [s("summary", ne, [r.number ? (p(), o("span", U, v(r.number), 1)) : a("", !0), s("span", {
117
117
  class: "mwnf-cards__title",
118
118
  innerHTML: y(k)(r.title)
119
- }, null, 8, W)]), r.children?.length ? (p(), o("ul", G, [(p(!0), o(n, null, h(r.children, (t) => (p(), o("li", {
120
- key: t.href ?? t.title,
119
+ }, null, 8, W)]), r.children?.length ? (p(), o("ul", G, [(p(!0), o(n, null, h(r.children, (e) => (p(), o("li", {
120
+ key: e.href ?? e.title,
121
121
  class: "mwnf-cards__child"
122
- }, [l(e, {
122
+ }, [l(t, {
123
123
  class: "mwnf-cards__child-link",
124
- to: t.to,
125
- href: t.href
124
+ to: e.to,
125
+ href: e.href
126
126
  }, {
127
- default: w(() => [c(v(t.title), 1)]),
127
+ default: w(() => [c(v(e.title), 1)]),
128
128
  _: 2
129
129
  }, 1032, ["to", "href"])]))), 128))])) : a("", !0)])) : a("", !0)]))), 128))], 2)) : a("", !0);
130
130
  }
@@ -604,7 +604,7 @@ var A = ["innerHTML"], j = ["innerHTML"], M = {
604
604
  }, null, 8, Ne)) : a("", !0),
605
605
  s("div", Pe, [
606
606
  g(r.$slots, "badge", { partner: x.partner }),
607
- (p(), i(_(x.partner.route ? e : "span"), {
607
+ (p(), i(_(x.partner.route ? t : "span"), {
608
608
  class: "mwnf-partner-panel__name",
609
609
  to: x.partner.route || void 0
610
610
  }, {
@@ -612,13 +612,13 @@ var A = ["innerHTML"], j = ["innerHTML"], M = {
612
612
  _: 1
613
613
  }, 8, ["to"])),
614
614
  g(r.$slots, "meta", { partner: x.partner }, () => [A("count") && x.partner.itemCount ? (p(), o("p", Le, v(x.partner.itemCount) + " " + v(y(E)(x.objectsLabel)), 1)) : A("count") && x.emptyLabel ? (p(), o("p", Re, v(y(E)(x.emptyLabel)), 1)) : a("", !0)]),
615
- r.$slots.actions || A("actions") && x.partner.route ? (p(), o("p", ze, [g(r.$slots, "actions", { partner: x.partner }, () => [l(e, { to: x.partner.route }, {
615
+ r.$slots.actions || A("actions") && x.partner.route ? (p(), o("p", ze, [g(r.$slots, "actions", { partner: x.partner }, () => [l(t, { to: x.partner.route }, {
616
616
  default: w(() => [c(v(y(E)(x.readMoreLabel)), 1)]),
617
617
  _: 1
618
618
  }, 8, ["to"]), x.partner.objectsRoute ? (p(), o(n, { key: 0 }, [d[0] ||= s("span", {
619
619
  class: "mwnf-partner-panel__divider",
620
620
  "aria-hidden": "true"
621
- }, "|", -1), l(e, { to: x.partner.objectsRoute }, {
621
+ }, "|", -1), l(t, { to: x.partner.objectsRoute }, {
622
622
  default: w(() => [c(v(y(E)(x.viewObjectsLabel)), 1)]),
623
623
  _: 1
624
624
  }, 8, ["to"])], 64)) : a("", !0)])])) : a("", !0)
@@ -639,7 +639,7 @@ var A = ["innerHTML"], j = ["innerHTML"], M = {
639
639
  x.heading ? (p(), o(n, { key: 1 }, [
640
640
  g(r.$slots, "badge", { partner: x.partner }),
641
641
  (p(), i(_(M.value), { class: "mwnf-partner-panel__name" }, {
642
- default: w(() => [(p(), i(_(x.partner.route ? e : "span"), { to: x.partner.route || void 0 }, {
642
+ default: w(() => [(p(), i(_(x.partner.route ? t : "span"), { to: x.partner.route || void 0 }, {
643
643
  default: w(() => [s("span", { innerHTML: x.partner.name }, null, 8, He)]),
644
644
  _: 1
645
645
  }, 8, ["to"]))]),
@@ -649,7 +649,7 @@ var A = ["innerHTML"], j = ["innerHTML"], M = {
649
649
  g(r.$slots, "meta", { partner: x.partner })
650
650
  ], 64)) : (p(), o("p", We, [
651
651
  g(r.$slots, "badge", { partner: x.partner }),
652
- (p(), i(_(x.partner.route ? e : "span"), {
652
+ (p(), i(_(x.partner.route ? t : "span"), {
653
653
  class: "mwnf-partner-panel__name",
654
654
  to: x.partner.route || void 0
655
655
  }, {
@@ -705,7 +705,7 @@ var A = ["innerHTML"], j = ["innerHTML"], M = {
705
705
  target: "_blank",
706
706
  rel: "noopener"
707
707
  }, "↗ " + v(y(E)(x.homepageLabel)), 9, tt)) : a("", !0), r.$slots.actions ? (p(), o("div", nt, [g(r.$slots, "actions", { partner: x.partner })])) : a("", !0)])) : a("", !0),
708
- s("div", rt, [A("pictures") && x.partner.pictures?.length ? (p(), i(t, {
708
+ s("div", rt, [A("pictures") && x.partner.pictures?.length ? (p(), i(e, {
709
709
  key: 0,
710
710
  class: "mwnf-partner-panel__pictures",
711
711
  images: x.partner.pictures
@@ -795,43 +795,43 @@ var A = ["innerHTML"], j = ["innerHTML"], M = {
795
795
  type: Array,
796
796
  default: () => []
797
797
  } },
798
- setup(t) {
798
+ setup(e) {
799
799
  let r = !!x().empty;
800
- return (l, u) => t.events.length ? (p(), o("ul", Tt, [(p(!0), o(n, null, h(t.events, (t) => (p(), o("li", {
801
- key: t.id,
800
+ return (l, u) => e.events.length ? (p(), o("ul", Tt, [(p(!0), o(n, null, h(e.events, (e) => (p(), o("li", {
801
+ key: e.id,
802
802
  class: "mwnf-timeline__row"
803
- }, [s("div", Et, [g(l.$slots, "date", { event: t }, () => [c(v(t.date), 1)])]), s("div", $, [
804
- t.caption || l.$slots.caption ? (p(), o("div", Dt, [g(l.$slots, "caption", { event: t }, () => [s("span", { innerHTML: t.caption }, null, 8, Ot)])])) : a("", !0),
805
- t.description ? (p(), o("div", {
803
+ }, [s("div", Et, [g(l.$slots, "date", { event: e }, () => [c(v(e.date), 1)])]), s("div", $, [
804
+ e.caption || l.$slots.caption ? (p(), o("div", Dt, [g(l.$slots, "caption", { event: e }, () => [s("span", { innerHTML: e.caption }, null, 8, Ot)])])) : a("", !0),
805
+ e.description ? (p(), o("div", {
806
806
  key: 1,
807
807
  class: "mwnf-timeline__description mwnf-sheet__block",
808
- innerHTML: t.description
808
+ innerHTML: e.description
809
809
  }, null, 8, kt)) : a("", !0),
810
- t.media?.length || l.$slots.media ? (p(), o("div", At, [g(l.$slots, "media", { event: t }, () => [(p(!0), o(n, null, h(t.media ?? [], (t, n) => (p(), i(e, {
810
+ e.media?.length || l.$slots.media ? (p(), o("div", At, [g(l.$slots, "media", { event: e }, () => [(p(!0), o(n, null, h(e.media ?? [], (e, n) => (p(), i(t, {
811
811
  key: n,
812
812
  class: "mwnf-timeline__media-item",
813
- to: t.to,
814
- href: t.href
813
+ to: e.to,
814
+ href: e.href
815
815
  }, {
816
- default: w(() => [t.image ? (p(), o("img", {
816
+ default: w(() => [e.image ? (p(), o("img", {
817
817
  key: 0,
818
- src: t.image,
819
- alt: t.alt ?? "",
818
+ src: e.image,
819
+ alt: e.alt ?? "",
820
820
  loading: "lazy"
821
- }, null, 8, jt)) : a("", !0), t.caption ? (p(), o("span", {
821
+ }, null, 8, jt)) : a("", !0), e.caption ? (p(), o("span", {
822
822
  key: 1,
823
823
  class: "mwnf-timeline__media-caption",
824
- innerHTML: t.caption
824
+ innerHTML: e.caption
825
825
  }, null, 8, Mt)) : a("", !0)]),
826
826
  _: 2
827
827
  }, 1032, ["to", "href"]))), 128))])])) : a("", !0),
828
- t.actions?.length || l.$slots.actions ? (p(), o("div", Nt, [g(l.$slots, "actions", { event: t }, () => [(p(!0), o(n, null, h(t.actions ?? [], (t, n) => (p(), i(e, {
828
+ e.actions?.length || l.$slots.actions ? (p(), o("div", Nt, [g(l.$slots, "actions", { event: e }, () => [(p(!0), o(n, null, h(e.actions ?? [], (e, n) => (p(), i(t, {
829
829
  key: n,
830
830
  class: "mwnf-timeline__action",
831
- to: t.to,
832
- href: t.href
831
+ to: e.to,
832
+ href: e.href
833
833
  }, {
834
- default: w(() => [c(v(t.label) + " →", 1)]),
834
+ default: w(() => [c(v(e.label) + " →", 1)]),
835
835
  _: 2
836
836
  }, 1032, ["to", "href"]))), 128))])])) : a("", !0)
837
837
  ])]))), 128))])) : y(r) ? (p(), o("div", Pt, [g(l.$slots, "empty")])) : a("", !0);