@museumwnf/viewer-layout 3.5.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { t as e } from "./chrome-DPuPeWzV.js";
1
+ import { t as e } from "./chrome-i1DOEyLS.js";
2
2
  import { r as t } from "./GlossaryPopover-DcptyNWI.js";
3
3
  import { n } from "./TimelineEventList-gsoc-SBx.js";
4
4
  import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-BfJoPonn.js";
5
- import { t as c } from "./RecordView-C9rP8TyQ.js";
5
+ import { t as c } from "./RecordView-DovgfTMz.js";
6
6
  import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as ee, createTextVNode as h, createVNode as g, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as te, openBlock as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, useSlots as ne, withCtx as T } from "vue";
7
7
  import { NotFoundView as re, byId as E, loadEntities as ie, mdInline as D, mdStrip as ae, mwnfLinks as O, partnerView as oe, useDataPackage as se, useI18n as ce, useProjects as le, useSiteConfig as ue } from "@museumwnf/viewer-core";
8
8
  //#region src/dxa/ItemDetailView.vue
@@ -0,0 +1,263 @@
1
+ import { a as e, c as t, d as n, i as r, n as ee, o as te, r as ne, s as re, t as ie } from "./GlossaryPopover-DcptyNWI.js";
2
+ import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, guardReactiveProps as p, normalizeClass as ae, normalizeProps as m, openBlock as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, useSlots as b, withCtx as x } from "vue";
3
+ import { NotFoundView as oe, byId as se, citation as ce, entityRef as le, languageLabels as ue, pictureCredits as de, renderBlock as S, renderInline as C, renderPlain as w, sheetRows as T, sourceUrl as fe, useDataPackage as pe, useGlossaryPopup as me, useI18n as he, useProjects as ge, useRecordSheet as _e, useRelatedRecords as ve } from "@museumwnf/viewer-core";
4
+ import { useRoute as ye } from "vue-router";
5
+ //#region src/views/RecordView.vue
6
+ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class: "mwnf-record__main" }, Se = {
7
+ key: 1,
8
+ class: "mwnf-record__status"
9
+ }, D = {
10
+ key: 0,
11
+ class: "mwnf-record__aside"
12
+ }, O = {
13
+ key: 2,
14
+ class: "mwnf-record__status"
15
+ }, k = {
16
+ __name: "RecordView",
17
+ props: {
18
+ spec: {
19
+ type: Object,
20
+ required: !0
21
+ },
22
+ id: {
23
+ type: String,
24
+ required: !0
25
+ },
26
+ entity: {
27
+ type: String,
28
+ default: ""
29
+ }
30
+ },
31
+ setup(k) {
32
+ let A = k, { t: j, locale: Ce } = he(), M = pe(), we = ge(), Te = b(), Ee = ye(), N = A.spec.entity ?? A.entity, P = a(() => A.spec), De = le(N), Oe = se(N), F = a(() => Oe.value.get(A.id) ?? null), ke = a(() => De.value !== null), { language: I, languages: Ae, dir: L, select: R, text: z, ready: B, terms: je, glossary: V, attribution: H } = _e(F, {
33
+ entity: N,
34
+ translations: A.spec.translations ?? [],
35
+ attribution: A.spec.attribution ?? []
36
+ }), U = a(() => ue(Ae.value)), { active: W, onClick: G, close: Me } = me(je), Ne = a(() => W.value ? S(W.value.definition, { breaks: !0 }) : ""), K = (e, t) => M.tr(e, t, I.value, "en"), Pe = (e) => M.translations(e, I.value), q = a(() => ({
37
+ record: F.value,
38
+ text: z.value,
39
+ language: I.value,
40
+ languages: U.value,
41
+ select: R,
42
+ dir: L.value,
43
+ glossary: V.value,
44
+ ready: B.value,
45
+ attribution: H.value,
46
+ t: j,
47
+ tr: K,
48
+ translations: Pe
49
+ }));
50
+ function J(e) {
51
+ return ((typeof e == "function" ? e(q.value) : e) ?? []).map((e) => ({
52
+ ...e,
53
+ label: e.label ? j(e.label) : ""
54
+ }));
55
+ }
56
+ let Fe = a(() => F.value ? T(J(P.value.fields), q.value) : []), Ie = a(() => F.value ? T(J(P.value.sections).map((e) => ({
57
+ render: "block",
58
+ ...e
59
+ })), q.value) : []), Y = a(() => P.value.shortDescription === !1 ? "" : P.value.shortDescription ?? "short_description"), Le = a(() => {
60
+ let e = Y.value ? z.value[Y.value] : "";
61
+ return e ? { html: S(String(e), {
62
+ breaks: !0,
63
+ glossary: V.value
64
+ }) } : null;
65
+ }), Re = a(() => {
66
+ if (!F.value) return "";
67
+ if (P.value.title) return P.value.title(q.value);
68
+ let e = z.value.name ?? F.value.internal_name ?? F.value.id;
69
+ return C(String(e), { glossary: V.value });
70
+ }), X = a(() => {
71
+ if (!F.value) return [];
72
+ if (P.value.media) return P.value.media(F.value, q.value);
73
+ let e = w(String(z.value.name ?? F.value.internal_name ?? ""));
74
+ return (F.value.images ?? []).map((t) => ({
75
+ url: t.url,
76
+ alt: t.captions?.[I.value] ?? e,
77
+ caption: t.captions?.[I.value] ?? "",
78
+ ...de(t, I.value)
79
+ }));
80
+ }), ze = [
81
+ {
82
+ field: "author",
83
+ label: "sheet.field.preparedBy"
84
+ },
85
+ {
86
+ field: "copy_editor",
87
+ label: "sheet.field.copyeditedBy"
88
+ },
89
+ {
90
+ field: "translator",
91
+ label: "sheet.field.translationBy"
92
+ },
93
+ {
94
+ field: "translation_copy_editor",
95
+ label: "sheet.field.translationCopyeditedBy"
96
+ }
97
+ ], Be = a(() => (P.value.credits ?? ze).map(({ field: e, label: t }) => ({
98
+ label: j(t),
99
+ value: z.value[e] ?? H.value[e] ?? ""
100
+ })).filter((e) => e.value)), Ve = a(() => String(F.value?.[P.value.workingNumber ?? "mwnf_reference"] ?? "")), He = a(() => {
101
+ let e = P.value.citation;
102
+ if (!F.value || e === !1) return "";
103
+ let t = typeof e?.project == "function" ? null : e?.project ?? F.value.project_id, n = typeof e?.project == "function" ? e.project(F.value, q.value) : we.label(t), r = e?.permalink === !1 ? void 0 : typeof e?.permalink == "string" ? e.permalink : fe(Ee) ?? void 0;
104
+ return ce({
105
+ author: z.value.author ?? H.value.author,
106
+ name: z.value.name ?? F.value.internal_name ?? "",
107
+ project: n,
108
+ permalink: r,
109
+ inWord: j("record.citation.in")
110
+ });
111
+ }), Z = ve(F, {
112
+ entity: N,
113
+ language: I
114
+ }), Q = a(() => P.value.related === !1 ? null : P.value.related ?? {}), $ = a(() => {
115
+ if (!Q.value) return [];
116
+ let e = Q.value.record ?? Ue;
117
+ return Z.value.inPackage.map((t) => e(t, q.value));
118
+ });
119
+ function Ue({ record: e, justification: t }) {
120
+ let n = K(N, e.id).name ?? e.internal_name ?? e.id;
121
+ return {
122
+ id: e.id,
123
+ image: e.images?.[0]?.url ?? "",
124
+ imageAlt: w(String(n)),
125
+ name: C(String(n)),
126
+ meta: t ? [t] : [],
127
+ badge: e.type ?? "",
128
+ to: {
129
+ name: P.value.route ?? (A.entity ? `${A.entity}-detail` : "item"),
130
+ params: { id: e.id }
131
+ }
132
+ };
133
+ }
134
+ let We = /* @__PURE__ */ new Set([
135
+ "header",
136
+ "before-sheet",
137
+ "after-sheet",
138
+ "aside",
139
+ "source",
140
+ "related",
141
+ "after",
142
+ "default"
143
+ ]), Ge = a(() => Object.keys(Te).filter((e) => !We.has(e)));
144
+ return (a, b) => ke.value && !F.value ? (h(), o(y(oe), { key: 0 })) : F.value ? (h(), c("article", {
145
+ key: 1,
146
+ class: ae(["mwnf-record", { "mwnf-record--spaced": P.value.spaced }]),
147
+ onClick: b[0] ||= (...e) => y(G) && y(G)(...e)
148
+ }, [
149
+ _(a.$slots, "header", m(p(q.value)), () => [
150
+ P.value.back ? (h(), o(n, {
151
+ key: 0,
152
+ class: "mwnf-record__back",
153
+ to: P.value.back.to,
154
+ href: P.value.back.href
155
+ }, {
156
+ default: x(() => [d("← " + v(y(j)(P.value.back.label)), 1)]),
157
+ _: 1
158
+ }, 8, ["to", "href"])) : s("", !0),
159
+ f(t, {
160
+ languages: U.value,
161
+ language: y(I),
162
+ onSelect: y(R)
163
+ }, null, 8, [
164
+ "languages",
165
+ "language",
166
+ "onSelect"
167
+ ]),
168
+ l("h1", {
169
+ class: "mwnf-record__title",
170
+ dir: y(L) || void 0,
171
+ innerHTML: Re.value
172
+ }, null, 8, be)
173
+ ]),
174
+ l("div", xe, [l("div", E, [
175
+ X.value.length ? (h(), o(ee, {
176
+ key: 0,
177
+ images: X.value,
178
+ variant: P.value.mediaVariant ?? ""
179
+ }, null, 8, ["images", "variant"])) : s("", !0),
180
+ y(B) ? s("", !0) : (h(), c("p", Se, v(y(j)("core.status.loading")), 1)),
181
+ _(a.$slots, "before-sheet", m(p(q.value))),
182
+ f(re, {
183
+ rows: Fe.value,
184
+ layout: P.value.layout ?? "table",
185
+ dir: y(L),
186
+ "short-description": Le.value,
187
+ "short-description-after": P.value.shortDescriptionAfter ?? "description"
188
+ }, u({ _: 2 }, [g(Ge.value, (e) => ({
189
+ name: e,
190
+ fn: x((t) => [_(a.$slots, e, m(p({
191
+ ...t,
192
+ ...q.value
193
+ })))])
194
+ }))]), 1032, [
195
+ "rows",
196
+ "layout",
197
+ "dir",
198
+ "short-description",
199
+ "short-description-after"
200
+ ]),
201
+ (h(!0), c(i, null, g(Ie.value, (e) => (h(), o(te, {
202
+ key: e.key,
203
+ heading: e.label,
204
+ html: e.html,
205
+ dir: y(L)
206
+ }, null, 8, [
207
+ "heading",
208
+ "html",
209
+ "dir"
210
+ ]))), 128)),
211
+ _(a.$slots, "after-sheet", m(p(q.value))),
212
+ f(e, {
213
+ credits: Be.value,
214
+ "working-number": Ve.value,
215
+ "working-number-label": y(j)("sheet.field.workingNumber"),
216
+ citation: He.value,
217
+ "citation-heading": P.value.citation?.heading ? y(j)(P.value.citation.heading) : ""
218
+ }, null, 8, [
219
+ "credits",
220
+ "working-number",
221
+ "working-number-label",
222
+ "citation",
223
+ "citation-heading"
224
+ ]),
225
+ _(a.$slots, "source", m(p(q.value)), () => [f(r)]),
226
+ _(a.$slots, "related", m(p({
227
+ ...q.value,
228
+ records: $.value,
229
+ outside: y(Z).outside
230
+ })), () => [Q.value ? (h(), o(ne, {
231
+ key: 0,
232
+ heading: y(j)(Q.value.heading ?? "record.related.items"),
233
+ records: $.value,
234
+ variant: Q.value.variant ?? "list",
235
+ "action-label": Q.value.actionLabel ? y(j)(Q.value.actionLabel) : ""
236
+ }, null, 8, [
237
+ "heading",
238
+ "records",
239
+ "variant",
240
+ "action-label"
241
+ ])) : s("", !0)])
242
+ ]), a.$slots.aside ? (h(), c("aside", D, [_(a.$slots, "aside", m(p({
243
+ ...q.value,
244
+ records: $.value,
245
+ outside: y(Z).outside
246
+ })))])) : s("", !0)]),
247
+ _(a.$slots, "after", m(p(q.value))),
248
+ f(ie, {
249
+ term: y(W),
250
+ html: Ne.value,
251
+ dir: y(L),
252
+ onClose: y(Me)
253
+ }, null, 8, [
254
+ "term",
255
+ "html",
256
+ "dir",
257
+ "onClose"
258
+ ])
259
+ ], 2)) : (h(), c("p", O, v(y(j)("core.status.loading")), 1));
260
+ }
261
+ };
262
+ //#endregion
263
+ export { k as t };
@@ -1,4 +1,4 @@
1
- import { a as e, r as t } from "./chrome-DPuPeWzV.js";
1
+ import { a as e, r as t } from "./chrome-i1DOEyLS.js";
2
2
  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
3
  import { mwnfLinks as u, useI18n as d, useSection as f, useSiteConfig as p, useSiteRights as m } from "@museumwnf/viewer-core";
4
4
  import { useRouter as h } from "vue-router";
@@ -62,11 +62,13 @@ var g = /*@__PURE__*/ Object.assign({ inheritAttrs: !1 }, {
62
62
  }
63
63
  function F(e, { active: t = !1 } = {}) {
64
64
  let n = {
65
- label: v(e.label),
65
+ label: e.text ?? v(e.label),
66
66
  href: N(e),
67
67
  external: !!e.external
68
68
  };
69
- return t && (n.active = e.section === x.value), n;
69
+ t && (n.active = e.section === x.value);
70
+ let r = typeof e.children == "function" ? e.children() : e.children;
71
+ return Array.isArray(r) && r.length && (n.children = r.filter(P).map((e) => F(e))), n;
70
72
  }
71
73
  let I = n(() => Array.isArray(w.value.links) ? w.value.links.filter(P).map((e) => F(e, { active: !0 })) : null), L = n(() => Array.isArray(w.value.headerLinks) ? w.value.headerLinks.map((e) => F(e)) : null), R = n(() => (Array.isArray(w.value.footerLinks) ? w.value.footerLinks : O).map((e) => F(e))), z = n(() => {
72
74
  let e = w.value.search;
@@ -1,7 +1,7 @@
1
1
  import { d as e, i as t } from "./GlossaryPopover-DcptyNWI.js";
2
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-CJlLA-Mf.js";
4
- import { n as s, r as c, t as l } from "./themeSpecs-B885l456.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";
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";
@@ -362,15 +362,23 @@ var w = {
362
362
  }, ke = [
363
363
  "href",
364
364
  "aria-current",
365
+ "aria-haspopup",
365
366
  "target",
366
367
  "rel"
367
368
  ], Ae = {
369
+ key: 0,
370
+ class: "mwnf-nav__sublinks"
371
+ }, je = [
372
+ "href",
373
+ "target",
374
+ "rel"
375
+ ], Me = {
368
376
  key: 1,
369
377
  class: "mwnf-nav__language"
370
- }, je = { class: "mwnf-nav__language-label" }, Me = ["value"], Ne = ["value"], Pe = {
378
+ }, Ne = { class: "mwnf-nav__language-label" }, Pe = ["value"], Fe = ["value"], Ie = {
371
379
  key: 0,
372
380
  class: "mwnf-nav__notice"
373
- }, Fe = {
381
+ }, Le = {
374
382
  key: 0,
375
383
  class: "mwnf-nav__notice-title"
376
384
  }, U = {
@@ -419,29 +427,39 @@ var w = {
419
427
  "aria-expanded": w.value ? "true" : "false",
420
428
  "aria-controls": "mwnf-nav-links",
421
429
  onClick: o[0] ||= (e) => w.value = !w.value
422
- }, [o[3] ||= a("span", {
430
+ }, [o[4] ||= a("span", {
423
431
  class: "mwnf-nav__toggle-icon",
424
432
  "aria-hidden": "true"
425
433
  }, "☰", -1), s(" " + h(g(y)("layout.nav.menu")), 1)], 8, De)) : r("", !0),
426
- p(t.$slots, "default", {}, () => [n.links.length ? (u(), i("ul", Oe, [(u(!0), i(e, null, f(n.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
427
- class: l(["mwnf-nav__link", { "mwnf-nav__link--active": e.active }]),
434
+ p(t.$slots, "default", {}, () => [n.links.length ? (u(), i("ul", Oe, [(u(!0), i(e, null, f(n.links, (t) => (u(), i("li", {
435
+ key: t.href ?? t.label,
436
+ class: l({ "mwnf-nav__item--parent": t.children?.length })
437
+ }, [a("a", {
438
+ class: l(["mwnf-nav__link", { "mwnf-nav__link--active": t.active }]),
439
+ href: t.href,
440
+ "aria-current": t.active ? "page" : void 0,
441
+ "aria-haspopup": t.children?.length ? "true" : void 0,
442
+ target: t.external ? "_blank" : void 0,
443
+ rel: t.external ? "noopener" : void 0,
444
+ onClick: o[1] ||= (e) => w.value = !1
445
+ }, h(t.label), 11, ke), t.children?.length ? (u(), i("ul", Ae, [(u(!0), i(e, null, f(t.children, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
446
+ class: "mwnf-nav__sublink",
428
447
  href: e.href,
429
- "aria-current": e.active ? "page" : void 0,
430
448
  target: e.external ? "_blank" : void 0,
431
449
  rel: e.external ? "noopener" : void 0,
432
- onClick: o[1] ||= (e) => w.value = !1
433
- }, h(e.label), 11, ke)]))), 128))])) : r("", !0)]),
434
- x.value ? (u(), i("label", Ae, [a("span", je, h(g(y)("layout.language.label")), 1), a("select", {
450
+ onClick: o[2] ||= (e) => w.value = !1
451
+ }, h(e.label), 9, je)]))), 128))])) : r("", !0)], 2))), 128))])) : r("", !0)]),
452
+ x.value ? (u(), i("label", Me, [a("span", Ne, h(g(y)("layout.language.label")), 1), a("select", {
435
453
  class: "mwnf-nav__language-select",
436
454
  value: n.language,
437
- onChange: o[2] ||= (e) => m("update:language", e.target.value)
455
+ onChange: o[3] ||= (e) => m("update:language", e.target.value)
438
456
  }, [(u(!0), i(e, null, f(b.value, (e) => (u(), i("option", {
439
457
  key: e.code,
440
458
  value: e.code
441
- }, h(e.label), 9, Ne))), 128))], 40, Me)])) : r("", !0)
442
- ]), n.notice && (n.notice.text || n.notice.title) ? (u(), i("p", Pe, [n.notice.title ? (u(), i("strong", Fe, h(n.notice.title), 1)) : r("", !0), s(" " + h(n.notice.text), 1)])) : r("", !0)], 10, Te)) : r("", !0);
459
+ }, h(e.label), 9, Fe))), 128))], 40, Pe)])) : r("", !0)
460
+ ]), n.notice && (n.notice.text || n.notice.title) ? (u(), i("p", Ie, [n.notice.title ? (u(), i("strong", Le, h(n.notice.title), 1)) : r("", !0), s(" " + h(n.notice.text), 1)])) : r("", !0)], 10, Te)) : r("", !0);
443
461
  }
444
- }, Ie = {
462
+ }, Re = {
445
463
  key: 0,
446
464
  id: "mwnf-content",
447
465
  class: "mwnf-content"
@@ -452,22 +470,22 @@ var w = {
452
470
  function n() {
453
471
  return !!t.default;
454
472
  }
455
- return (e, t) => n() ? (u(), i("main", Ie, [p(e.$slots, "default")])) : r("", !0);
473
+ return (e, t) => n() ? (u(), i("main", Re, [p(e.$slots, "default")])) : r("", !0);
456
474
  }
457
- }, Le = ["aria-label"], Re = {
475
+ }, ze = ["aria-label"], Be = {
458
476
  key: 0,
459
477
  class: "mwnf-hyperlinks__title"
460
- }, ze = {
478
+ }, Ve = {
461
479
  key: 1,
462
480
  class: "mwnf-hyperlinks__subtitle"
463
- }, Be = {
481
+ }, He = {
464
482
  key: 1,
465
483
  class: "mwnf-hyperlinks__title"
466
- }, Ve = { class: "mwnf-hyperlinks__list" }, He = [
484
+ }, Ue = { class: "mwnf-hyperlinks__list" }, We = [
467
485
  "href",
468
486
  "target",
469
487
  "rel"
470
- ], Ue = { class: "mwnf-hyperlinks__label" }, We = {
488
+ ], Ge = { class: "mwnf-hyperlinks__label" }, Ke = {
471
489
  key: 0,
472
490
  class: "mwnf-hyperlinks__description"
473
491
  }, G = {
@@ -508,28 +526,28 @@ var w = {
508
526
  class: "mwnf-hyperlinks__lockup",
509
527
  href: t.titleHref || void 0
510
528
  }, {
511
- default: y(() => [t.title ? (u(), i("p", Re, h(t.title), 1)) : r("", !0), t.subtitle ? (u(), i("p", ze, h(t.subtitle), 1)) : r("", !0)]),
529
+ default: y(() => [t.title ? (u(), i("p", Be, h(t.title), 1)) : r("", !0), t.subtitle ? (u(), i("p", Ve, h(t.subtitle), 1)) : r("", !0)]),
512
530
  _: 1
513
- }, 8, ["href"])) : r("", !0)], 64)) : t.title ? (u(), i("p", Be, h(t.title), 1)) : r("", !0), p(o.$slots, "default", {}, () => [a("ul", Ve, [(u(!0), i(e, null, f(t.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
531
+ }, 8, ["href"])) : r("", !0)], 64)) : t.title ? (u(), i("p", He, h(t.title), 1)) : r("", !0), p(o.$slots, "default", {}, () => [a("ul", Ue, [(u(!0), i(e, null, f(t.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
514
532
  class: "mwnf-hyperlinks__link",
515
533
  href: e.href,
516
534
  target: e.external ? "_blank" : void 0,
517
535
  rel: e.external ? "noopener" : void 0
518
- }, [a("span", Ue, h(e.label), 1), e.description ? (u(), i("span", We, h(e.description), 1)) : r("", !0)], 8, He)]))), 128))])])], 10, Le)) : r("", !0);
536
+ }, [a("span", Ge, h(e.label), 1), e.description ? (u(), i("span", Ke, h(e.description), 1)) : r("", !0)], 8, We)]))), 128))])])], 10, ze)) : r("", !0);
519
537
  }
520
- }, Ge = ["aria-label"], Ke = {
538
+ }, qe = ["aria-label"], Je = {
521
539
  key: 0,
522
540
  class: "mwnf-sponsors__title"
523
- }, qe = {
541
+ }, Ye = {
524
542
  key: 0,
525
543
  class: "mwnf-sponsors__list"
526
- }, Je = ["src", "alt"], Ye = {
544
+ }, Xe = ["src", "alt"], Ze = {
527
545
  key: 1,
528
546
  class: "mwnf-sponsors__groups"
529
- }, Xe = {
547
+ }, Qe = {
530
548
  key: 0,
531
549
  class: "mwnf-sponsors__group-title"
532
- }, Ze = { class: "mwnf-sponsors__list" }, Qe = ["src", "alt"], K = {
550
+ }, $e = { class: "mwnf-sponsors__list" }, et = ["src", "alt"], K = {
533
551
  __name: "AppSponsors",
534
552
  props: {
535
553
  title: {
@@ -554,7 +572,7 @@ var w = {
554
572
  key: 0,
555
573
  class: "mwnf-sponsors",
556
574
  "aria-label": o.title || g(d)("layout.sponsors.label")
557
- }, [o.title ? (u(), i("p", Ke, h(o.title), 1)) : r("", !0), p(t.$slots, "default", {}, () => [o.sponsors.length ? (u(), i("ul", qe, [(u(!0), i(e, null, f(o.sponsors, (t) => (u(), i("li", { key: t.name }, [(u(), n(m(t.href ? "a" : "span"), {
575
+ }, [o.title ? (u(), i("p", Je, h(o.title), 1)) : r("", !0), p(t.$slots, "default", {}, () => [o.sponsors.length ? (u(), i("ul", Ye, [(u(!0), i(e, null, f(o.sponsors, (t) => (u(), i("li", { key: t.name }, [(u(), n(m(t.href ? "a" : "span"), {
558
576
  class: "mwnf-sponsors__item",
559
577
  href: t.href,
560
578
  target: t.href ? "_blank" : void 0,
@@ -565,16 +583,16 @@ var w = {
565
583
  class: "mwnf-sponsors__logo",
566
584
  src: t.logo,
567
585
  alt: t.name
568
- }, null, 8, Je)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
586
+ }, null, 8, Xe)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
569
587
  _: 2
570
588
  }, 1032, [
571
589
  "href",
572
590
  "target",
573
591
  "rel"
574
- ]))]))), 128))])) : r("", !0), v.value.length ? (u(), i("div", Ye, [(u(!0), i(e, null, f(v.value, (t) => (u(), i("div", {
592
+ ]))]))), 128))])) : r("", !0), v.value.length ? (u(), i("div", Ze, [(u(!0), i(e, null, f(v.value, (t) => (u(), i("div", {
575
593
  key: t.title,
576
594
  class: "mwnf-sponsors__group"
577
- }, [t.title ? (u(), i("p", Xe, h(t.title), 1)) : r("", !0), a("ul", Ze, [(u(!0), i(e, null, f(t.sponsors, (t) => (u(), i("li", { key: t.name }, [(u(), n(m(t.href ? "a" : "span"), {
595
+ }, [t.title ? (u(), i("p", Qe, h(t.title), 1)) : r("", !0), a("ul", $e, [(u(!0), i(e, null, f(t.sponsors, (t) => (u(), i("li", { key: t.name }, [(u(), n(m(t.href ? "a" : "span"), {
578
596
  class: "mwnf-sponsors__item",
579
597
  href: t.href,
580
598
  target: t.href ? "_blank" : void 0,
@@ -586,14 +604,14 @@ var w = {
586
604
  class: "mwnf-sponsors__logo",
587
605
  src: t.logo,
588
606
  alt: t.name
589
- }, null, 8, Qe)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
607
+ }, null, 8, et)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
590
608
  _: 2
591
609
  }, 1032, [
592
610
  "href",
593
611
  "target",
594
612
  "rel",
595
613
  "title"
596
- ]))]))), 128))])]))), 128))])) : r("", !0)])], 8, Ge)) : r("", !0);
614
+ ]))]))), 128))])]))), 128))])) : r("", !0)])], 8, qe)) : r("", !0);
597
615
  }
598
616
  }, q = {
599
617
  youtube: {
@@ -620,7 +638,7 @@ var w = {
620
638
  viewBox: "0 0 448 512",
621
639
  path: "M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"
622
640
  }
623
- }, $e = Object.freeze([
641
+ }, tt = Object.freeze([
624
642
  {
625
643
  label: "YouTube",
626
644
  href: "https://www.youtube.com/channel/UC5X2a5jDFyIfTEV5prWNF5Q",
@@ -651,14 +669,14 @@ var w = {
651
669
  href: "https://www.linkedin.com/company/museum-with-no-frontiers/",
652
670
  icon: "linkedin"
653
671
  }
654
- ]), et = {
672
+ ]), nt = {
655
673
  key: 0,
656
674
  class: "mwnf-footer__social"
657
- }, tt = [
675
+ }, rt = [
658
676
  "href",
659
677
  "aria-label",
660
678
  "title"
661
- ], nt = ["viewBox"], rt = ["d"], J = {
679
+ ], it = ["viewBox"], at = ["d"], J = {
662
680
  __name: "SocialLinks",
663
681
  props: { links: {
664
682
  type: Array,
@@ -666,7 +684,7 @@ var w = {
666
684
  } },
667
685
  setup(n) {
668
686
  let o = n, s = t(() => o.links.filter((e) => q[e.icon]));
669
- return (t, n) => s.value.length ? (u(), i("ul", et, [(u(!0), i(e, null, f(s.value, (e) => (u(), i("li", { key: e.href }, [a("a", {
687
+ return (t, n) => s.value.length ? (u(), i("ul", nt, [(u(!0), i(e, null, f(s.value, (e) => (u(), i("li", { key: e.href }, [a("a", {
670
688
  class: "mwnf-footer__social-link",
671
689
  href: e.href,
672
690
  target: "_blank",
@@ -681,28 +699,28 @@ var w = {
681
699
  }, [a("path", {
682
700
  fill: "currentColor",
683
701
  d: g(q)[e.icon].path
684
- }, null, 8, rt)], 8, nt))], 8, tt)]))), 128))])) : r("", !0);
702
+ }, null, 8, at)], 8, it))], 8, rt)]))), 128))])) : r("", !0);
685
703
  }
686
- }, it = {
704
+ }, ot = {
687
705
  key: 0,
688
706
  class: "mwnf-footer"
689
- }, at = {
707
+ }, st = {
690
708
  key: 0,
691
709
  class: "mwnf-footer__links"
692
- }, Y = [
710
+ }, ct = [
693
711
  "href",
694
712
  "target",
695
713
  "rel"
696
- ], ot = {
714
+ ], lt = {
697
715
  key: 1,
698
716
  class: "mwnf-footer__text"
699
- }, st = {
717
+ }, ut = {
700
718
  key: 2,
701
719
  class: "mwnf-footer__attribution"
702
- }, ct = {
720
+ }, dt = {
703
721
  key: 0,
704
722
  class: "mwnf-footer__attribution-label"
705
- }, lt = ["href"], X = {
723
+ }, ft = ["href"], Y = {
706
724
  __name: "AppFooter",
707
725
  props: {
708
726
  text: {
@@ -739,30 +757,30 @@ var w = {
739
757
  function m() {
740
758
  return !!(l.default || o.text || o.links.length || o.attributionText || d.value.length);
741
759
  }
742
- return (t, o) => m() ? (u(), i("footer", it, [p(t.$slots, "default", {}, () => [
743
- n.links.length ? (u(), i("ul", at, [(u(!0), i(e, null, f(n.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
760
+ return (t, o) => m() ? (u(), i("footer", ot, [p(t.$slots, "default", {}, () => [
761
+ n.links.length ? (u(), i("ul", st, [(u(!0), i(e, null, f(n.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
744
762
  class: "mwnf-footer__link",
745
763
  href: e.href,
746
764
  target: e.external ? "_blank" : void 0,
747
765
  rel: e.external ? "noopener" : void 0
748
- }, h(e.label), 9, Y)]))), 128))])) : r("", !0),
749
- n.text ? (u(), i("p", ot, h(n.text), 1)) : r("", !0),
750
- n.attributionText ? (u(), i("p", st, [
751
- n.attributionLabel ? (u(), i("span", ct, h(n.attributionLabel), 1)) : r("", !0),
766
+ }, h(e.label), 9, ct)]))), 128))])) : r("", !0),
767
+ n.text ? (u(), i("p", lt, h(n.text), 1)) : r("", !0),
768
+ n.attributionText ? (u(), i("p", ut, [
769
+ n.attributionLabel ? (u(), i("span", dt, h(n.attributionLabel), 1)) : r("", !0),
752
770
  s(" " + h(n.attributionText) + " ", 1),
753
771
  n.termsHref ? (u(), i("a", {
754
772
  key: 1,
755
773
  class: "mwnf-footer__terms",
756
774
  href: n.termsHref
757
- }, h(n.termsLabel), 9, lt)) : r("", !0)
775
+ }, h(n.termsLabel), 9, ft)) : r("", !0)
758
776
  ])) : r("", !0),
759
777
  c(J, { links: d.value }, null, 8, ["links"])
760
778
  ])])) : r("", !0);
761
779
  }
762
- }, ut = { class: "mwnf-page" }, dt = {
780
+ }, pt = { class: "mwnf-page" }, mt = {
763
781
  class: "mwnf-skip-link",
764
782
  href: "#mwnf-content"
765
- }, ft = {
783
+ }, ht = {
766
784
  __name: "PageShell",
767
785
  props: {
768
786
  headerTitle: {
@@ -953,8 +971,8 @@ var w = {
953
971
  emits: ["update:language", "search"],
954
972
  setup(r, { emit: s }) {
955
973
  let l = r, d = s, { t: m } = C(), _ = t(() => l.navigationPlacement === "before-banner" ? ["navigation", "banner"] : ["banner", "navigation"]);
956
- return (t, s) => (u(), i("div", ut, [
957
- a("a", dt, h(g(m)("layout.nav.skipToContent")), 1),
974
+ return (t, s) => (u(), i("div", pt, [
975
+ a("a", mt, h(g(m)("layout.nav.skipToContent")), 1),
958
976
  c(N, {
959
977
  title: r.headerTitle,
960
978
  subtitle: r.headerSubtitle,
@@ -1083,7 +1101,7 @@ var w = {
1083
1101
  "sponsors",
1084
1102
  "groups"
1085
1103
  ]),
1086
- c(X, {
1104
+ c(Y, {
1087
1105
  text: r.footerText,
1088
1106
  links: r.footerLinks,
1089
1107
  social: r.footerSocial,
@@ -1106,8 +1124,8 @@ var w = {
1106
1124
  ])
1107
1125
  ]));
1108
1126
  }
1109
- }, pt = /^.*?theme\/assets\//, Z = /* @__PURE__ */ new WeakMap();
1110
- function mt(e) {
1127
+ }, X = /^.*?theme\/assets\//, Z = /* @__PURE__ */ new WeakMap();
1128
+ function gt(e) {
1111
1129
  let t = Z.get(e);
1112
1130
  if (!t) {
1113
1131
  t = /* @__PURE__ */ new Map();
@@ -1117,18 +1135,18 @@ function mt(e) {
1117
1135
  return t;
1118
1136
  }
1119
1137
  function Q(e) {
1120
- return String(e).replaceAll("\\", "/").replace(pt, "").replace(/^(\.\/|\/)+/, "");
1138
+ return String(e).replaceAll("\\", "/").replace(X, "").replace(/^(\.\/|\/)+/, "");
1121
1139
  }
1122
1140
  function $(e, t) {
1123
- return !e || typeof e != "object" || !t ? null : mt(e).get(Q(t)) ?? null;
1141
+ return !e || typeof e != "object" || !t ? null : gt(e).get(Q(t)) ?? null;
1124
1142
  }
1125
- function ht(e, t) {
1143
+ function _t(e, t) {
1126
1144
  return t ? $(e, `chrome/${String(t).replace(/^\/+/, "")}`) : null;
1127
1145
  }
1128
- function gt(e, t) {
1146
+ function vt(e, t) {
1129
1147
  return !t || typeof t != "string" ? null : /^(?:[a-z][a-z0-9+.-]*:|\/\/|\/)/i.test(t) ? t : $(e, t);
1130
1148
  }
1131
- function _t(e, t) {
1149
+ function yt(e, t) {
1132
1150
  if (!e || typeof DOMParser > "u") return e;
1133
1151
  let n = new DOMParser().parseFromString(`<body>${e}</body>`, "text/html"), r = !1;
1134
1152
  for (let e of n.body.querySelectorAll("img[src]")) {
@@ -1138,4 +1156,4 @@ function _t(e, t) {
1138
1156
  return r ? n.body.innerHTML : e;
1139
1157
  }
1140
1158
  //#endregion
1141
- export { ft as a, $e as c, W as d, U as f, _t as i, K as l, N as m, ht as n, X as o, H as p, gt as r, J as s, $ as t, G as u };
1159
+ export { ht as a, tt as c, W as d, U as f, yt as i, K as l, N as m, _t as n, Y as o, H as p, vt as r, J as s, $ as t, G as u };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./SiteShell-4vV2jIzf.js";
1
+ import { t as e } from "./SiteShell-CXMfLqzq.js";
2
2
  export { e as SiteShell };