@museumwnf/viewer-layout 3.62.0 → 3.63.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,25 +1,22 @@
1
1
  import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, normalizeClass as l, openBlock as u, ref as d, renderList as f, renderSlot as p, resolveDynamicComponent as m, toDisplayString as h, unref as g, useSlots as _, vModelText as v, withCtx as y, withDirectives as b, withModifiers as x } from "vue";
2
2
  import { renderBlock as S, useI18n as C } from "@museumwnf/viewer-core/i18n";
3
3
  // src/sections/AppHeader.vue
4
- var w = {
5
- key: 0,
6
- class: "mwnf-header"
7
- }, T = { class: "mwnf-header__inner" }, E = {
4
+ var w = { class: "mwnf-header__inner" }, T = {
8
5
  key: 0,
9
6
  class: "mwnf-header__brand"
10
- }, D = ["src", "alt"], O = {
7
+ }, E = ["src", "alt"], D = {
11
8
  key: 1,
12
9
  class: "mwnf-header__logos"
13
- }, k = {
10
+ }, O = {
14
11
  key: 0,
15
12
  class: "mwnf-header__logos-title"
16
- }, A = { class: "mwnf-header__logo-list" }, j = ["src", "alt"], M = {
13
+ }, k = { class: "mwnf-header__logo-list" }, A = ["src", "alt"], j = {
17
14
  key: 0,
18
15
  class: "mwnf-header__eyebrow"
19
- }, N = {
16
+ }, M = {
20
17
  key: 1,
21
18
  class: "mwnf-header__title"
22
- }, P = {
19
+ }, N = {
23
20
  key: 2,
24
21
  class: "mwnf-header__subtitle"
25
22
  }, ee = {
@@ -32,14 +29,18 @@ var w = {
32
29
  "href",
33
30
  "target",
34
31
  "rel"
35
- ], re = ["placeholder", "aria-label"], ie = ["aria-label"], ae = ["aria-label"], oe = [
32
+ ], re = ["aria-expanded", "aria-label"], ie = {
33
+ viewBox: "0 0 24 24",
34
+ "aria-hidden": "true",
35
+ focusable: "false"
36
+ }, ae = ["d"], oe = ["placeholder", "aria-label"], se = ["aria-label"], ce = ["aria-label"], le = [
36
37
  "aria-pressed",
37
38
  "lang",
38
39
  "onClick"
39
- ], se = {
40
- key: 3,
40
+ ], ue = {
41
+ key: 4,
41
42
  class: "mwnf-header__languages"
42
- }, ce = { class: "mwnf-header__language-label" }, le = ["value"], F = ["value"], I = {
43
+ }, de = { class: "mwnf-header__language-label" }, P = ["value"], F = ["value"], I = {
43
44
  __name: "AppHeader",
44
45
  props: {
45
46
  title: {
@@ -112,8 +113,12 @@ var w = {
112
113
  function U() {
113
114
  I("search", H.value), H.value = "";
114
115
  }
115
- return (t, c) => V() ? (u(), i("header", w, [p(t.$slots, "default", {}, () => [a("div", T, [
116
- g(L).brand || o.brand || o.brandLogo?.src || o.logos.length ? (u(), i("div", E, [g(L).brand || o.brand || o.brandLogo?.src ? (u(), n(m(o.home ? "a" : "span"), {
116
+ let W = d(!1);
117
+ return (t, c) => V() ? (u(), i("header", {
118
+ key: 0,
119
+ class: l(["mwnf-header", { "mwnf-header--search-open": W.value }])
120
+ }, [p(t.$slots, "default", {}, () => [a("div", w, [
121
+ g(L).brand || o.brand || o.brandLogo?.src || o.logos.length ? (u(), i("div", T, [g(L).brand || o.brand || o.brandLogo?.src ? (u(), n(m(o.home ? "a" : "span"), {
117
122
  key: 0,
118
123
  class: "mwnf-header__home",
119
124
  href: o.home || void 0
@@ -123,9 +128,9 @@ var w = {
123
128
  class: "mwnf-header__brand-logo",
124
129
  src: o.brandLogo.src,
125
130
  alt: o.brandLogo.alt ?? ""
126
- }, null, 8, D)) : (u(), i(e, { key: 1 }, [s(h(o.brand), 1)], 64))])]),
131
+ }, null, 8, E)) : (u(), i(e, { key: 1 }, [s(h(o.brand), 1)], 64))])]),
127
132
  _: 3
128
- }, 8, ["href"])) : r("", !0), o.logos.length ? (u(), i("div", O, [o.logosTitle ? (u(), i("p", k, h(o.logosTitle), 1)) : r("", !0), a("ul", A, [(u(!0), i(e, null, f(o.logos, (e) => (u(), i("li", { key: e.image }, [(u(), n(m(e.href ? "a" : "span"), {
133
+ }, 8, ["href"])) : r("", !0), o.logos.length ? (u(), i("div", D, [o.logosTitle ? (u(), i("p", O, h(o.logosTitle), 1)) : r("", !0), a("ul", k, [(u(!0), i(e, null, f(o.logos, (e) => (u(), i("li", { key: e.image }, [(u(), n(m(e.href ? "a" : "span"), {
129
134
  class: "mwnf-header__logo",
130
135
  href: e.href || void 0,
131
136
  title: e.alt,
@@ -135,7 +140,7 @@ var w = {
135
140
  default: y(() => [a("img", {
136
141
  src: e.image,
137
142
  alt: e.alt ?? ""
138
- }, null, 8, j)]),
143
+ }, null, 8, A)]),
139
144
  _: 2
140
145
  }, 1032, [
141
146
  "href",
@@ -149,9 +154,9 @@ var w = {
149
154
  href: o.titleHref || void 0
150
155
  }, {
151
156
  default: y(() => [
152
- o.eyebrow ? (u(), i("p", M, h(o.eyebrow), 1)) : r("", !0),
153
- o.title ? (u(), i("p", N, h(o.title), 1)) : r("", !0),
154
- o.subtitle ? (u(), i("p", P, h(o.subtitle), 1)) : r("", !0)
157
+ o.eyebrow ? (u(), i("p", j, h(o.eyebrow), 1)) : r("", !0),
158
+ o.title ? (u(), i("p", M, h(o.title), 1)) : r("", !0),
159
+ o.subtitle ? (u(), i("p", N, h(o.subtitle), 1)) : r("", !0)
155
160
  ]),
156
161
  _: 1
157
162
  }, 8, ["href"])) : r("", !0),
@@ -162,24 +167,52 @@ var w = {
162
167
  target: e.external ? "_blank" : void 0,
163
168
  rel: e.external ? "noopener" : void 0
164
169
  }, h(e.label), 9, ne)]))), 128))])) : r("", !0),
165
- o.search ? (u(), i("form", {
170
+ o.search ? (u(), i("button", {
166
171
  key: 1,
172
+ type: "button",
173
+ class: "mwnf-header__search-toggle",
174
+ "aria-expanded": W.value ? "true" : "false",
175
+ "aria-label": o.search.submitLabel ?? "",
176
+ onClick: c[0] ||= (e) => W.value = !W.value
177
+ }, [(u(), i("svg", ie, [
178
+ c[3] ||= a("circle", {
179
+ cx: "10",
180
+ cy: "10",
181
+ r: "7",
182
+ fill: "none",
183
+ stroke: "currentColor",
184
+ "stroke-width": "2.5"
185
+ }, null, -1),
186
+ c[4] ||= a("path", {
187
+ d: "M15 15l6.5 6.5",
188
+ stroke: "currentColor",
189
+ "stroke-width": "3",
190
+ "stroke-linecap": "round"
191
+ }, null, -1),
192
+ a("path", {
193
+ d: W.value ? "M6.5 10h7" : "M6.5 10h7M10 6.5v7",
194
+ stroke: "currentColor",
195
+ "stroke-width": "2"
196
+ }, null, 8, ae)
197
+ ]))], 8, re)) : r("", !0),
198
+ o.search ? (u(), i("form", {
199
+ key: 2,
167
200
  class: "mwnf-header__search",
168
201
  role: "search",
169
202
  onSubmit: x(U, ["prevent"])
170
203
  }, [b(a("input", {
171
- "onUpdate:modelValue": c[0] ||= (e) => H.value = e,
204
+ "onUpdate:modelValue": c[1] ||= (e) => H.value = e,
172
205
  class: "mwnf-header__search-input",
173
206
  type: "search",
174
207
  placeholder: o.search.placeholder ?? "",
175
208
  "aria-label": o.search.placeholder ?? o.search.submitLabel ?? ""
176
- }, null, 8, re), [[v, H.value]]), a("button", {
209
+ }, null, 8, oe), [[v, H.value]]), a("button", {
177
210
  class: "mwnf-header__search-submit",
178
211
  type: "submit",
179
212
  "aria-label": o.search.submitLabel ?? ""
180
- }, h(o.search.submitText ?? "⌕"), 9, ie)], 32)) : r("", !0),
213
+ }, h(o.search.submitText ?? "⌕"), 9, se)], 32)) : r("", !0),
181
214
  B.value && o.languageStyle === "buttons" ? (u(), i("div", {
182
- key: 2,
215
+ key: 3,
183
216
  class: "mwnf-header__languages",
184
217
  role: "group",
185
218
  "aria-label": g(R)("layout.language.label")
@@ -190,16 +223,16 @@ var w = {
190
223
  "aria-pressed": e.code === o.language ? "true" : "false",
191
224
  lang: e.code,
192
225
  onClick: (t) => I("update:language", e.code)
193
- }, h(e.label), 11, oe))), 128))], 8, ae)) : B.value ? (u(), i("label", se, [a("span", ce, h(g(R)("layout.language.label")), 1), a("select", {
226
+ }, h(e.label), 11, le))), 128))], 8, ce)) : B.value ? (u(), i("label", ue, [a("span", de, h(g(R)("layout.language.label")), 1), a("select", {
194
227
  class: "mwnf-header__language-select",
195
228
  value: o.language,
196
- onChange: c[1] ||= (e) => I("update:language", e.target.value)
229
+ onChange: c[2] ||= (e) => I("update:language", e.target.value)
197
230
  }, [(u(!0), i(e, null, f(z.value, (e) => (u(), i("option", {
198
231
  key: e.code,
199
232
  value: e.code
200
- }, h(e.label), 9, F))), 128))], 40, le)])) : r("", !0)
233
+ }, h(e.label), 9, F))), 128))], 40, P)])) : r("", !0)
201
234
  ])) : r("", !0)
202
- ])])])) : r("", !0);
235
+ ])])], 2)) : r("", !0);
203
236
  }
204
237
  }, L = ["src", "alt"], R = {
205
238
  key: 1,
@@ -214,25 +247,25 @@ var w = {
214
247
  }, U = {
215
248
  key: 2,
216
249
  class: "mwnf-banner__caption"
217
- }, W = { class: "mwnf-banner__caption-name" }, ue = {
250
+ }, W = { class: "mwnf-banner__caption-name" }, fe = {
218
251
  key: 0,
219
252
  class: "mwnf-banner__caption-rest"
220
- }, de = { class: "mwnf-banner__body" }, fe = {
253
+ }, pe = { class: "mwnf-banner__body" }, me = {
221
254
  key: 0,
222
255
  class: "mwnf-banner__eyebrow"
223
- }, pe = ["href", "aria-label"], me = {
256
+ }, he = ["href", "aria-label"], ge = {
224
257
  key: 2,
225
258
  class: "mwnf-banner__subtitle"
226
- }, he = ["innerHTML"], ge = ["href", "aria-label"], _e = {
259
+ }, _e = ["innerHTML"], ve = ["href", "aria-label"], ye = {
227
260
  key: 5,
228
261
  class: "mwnf-banner__strapline"
229
- }, ve = {
262
+ }, be = {
230
263
  key: 6,
231
264
  class: "mwnf-banner__text"
232
- }, ye = {
265
+ }, xe = {
233
266
  key: 7,
234
267
  class: "mwnf-banner__caption"
235
- }, be = { class: "mwnf-banner__caption-name" }, xe = {
268
+ }, Se = { class: "mwnf-banner__caption-name" }, Ce = {
236
269
  key: 0,
237
270
  class: "mwnf-banner__caption-rest"
238
271
  }, G = {
@@ -319,8 +352,8 @@ var w = {
319
352
  src: o.image,
320
353
  alt: x.value,
321
354
  onError: c[0] ||= (e) => C.value = !0
322
- }, null, 40, V)) : (u(), i("div", H)), b.value && o.variant !== "section" ? (u(), i("p", U, [a("span", W, h(b.value.name), 1), b.value.rest ? (u(), i("span", ue, h(b.value.rest), 1)) : r("", !0)])) : r("", !0)]), a("div", de, [
323
- o.eyebrow ? (u(), i("p", fe, h(o.eyebrow), 1)) : r("", !0),
355
+ }, null, 40, V)) : (u(), i("div", H)), b.value && o.variant !== "section" ? (u(), i("p", U, [a("span", W, h(b.value.name), 1), b.value.rest ? (u(), i("span", fe, h(b.value.rest), 1)) : r("", !0)])) : r("", !0)]), a("div", pe, [
356
+ o.eyebrow ? (u(), i("p", me, h(o.eyebrow), 1)) : r("", !0),
324
357
  o.title ? (u(), n(m(o.titleHref ? "a" : "p"), {
325
358
  key: 1,
326
359
  class: "mwnf-banner__title",
@@ -331,24 +364,24 @@ var w = {
331
364
  class: "mwnf-banner__enter",
332
365
  href: o.enter.href,
333
366
  "aria-label": o.enter.ariaLabel
334
- }, h(o.enter.label), 9, pe)) : r("", !0)]),
367
+ }, h(o.enter.label), 9, he)) : r("", !0)]),
335
368
  _: 1
336
369
  }, 8, ["href"])) : r("", !0),
337
- o.subtitle ? (u(), i("p", me, h(o.subtitle), 1)) : r("", !0),
370
+ o.subtitle ? (u(), i("p", ge, h(o.subtitle), 1)) : r("", !0),
338
371
  v.value ? (u(), i("div", {
339
372
  key: 3,
340
373
  class: "mwnf-banner__headline",
341
374
  innerHTML: v.value
342
- }, null, 8, he)) : r("", !0),
375
+ }, null, 8, _e)) : r("", !0),
343
376
  o.variant !== "strip" && o.enter ? (u(), i("a", {
344
377
  key: 4,
345
378
  class: "mwnf-banner__enter",
346
379
  href: o.enter.href,
347
380
  "aria-label": o.enter.ariaLabel
348
- }, h(o.enter.label), 9, ge)) : r("", !0),
349
- o.strapline ? (u(), i("p", _e, h(o.strapline), 1)) : r("", !0),
350
- o.text ? (u(), i("p", ve, h(o.text), 1)) : r("", !0),
351
- b.value && o.variant === "section" ? (u(), i("p", ye, [a("span", be, h(b.value.name), 1), b.value.rest ? (u(), i("span", xe, h(b.value.rest), 1)) : r("", !0)])) : r("", !0)
381
+ }, h(o.enter.label), 9, ve)) : r("", !0),
382
+ o.strapline ? (u(), i("p", ye, h(o.strapline), 1)) : r("", !0),
383
+ o.text ? (u(), i("p", be, h(o.text), 1)) : r("", !0),
384
+ b.value && o.variant === "section" ? (u(), i("p", xe, [a("span", Se, h(b.value.name), 1), b.value.rest ? (u(), i("span", Ce, h(b.value.rest), 1)) : r("", !0)])) : r("", !0)
352
385
  ])])) : (u(), i(e, { key: 0 }, [o.image ? (u(), i("img", {
353
386
  key: 0,
354
387
  class: "mwnf-banner__image",
@@ -356,34 +389,34 @@ var w = {
356
389
  alt: o.imageAlt
357
390
  }, null, 8, L)) : r("", !0), o.text ? (u(), i("p", R, h(o.text), 1)) : r("", !0)], 64))])], 2)) : r("", !0);
358
391
  }
359
- }, Se = ["aria-label"], Ce = { class: "mwnf-nav__bar" }, we = ["aria-expanded"], Te = {
392
+ }, we = ["aria-label"], Te = { class: "mwnf-nav__bar" }, Ee = ["aria-expanded"], De = {
360
393
  key: 0,
361
394
  id: "mwnf-nav-links",
362
395
  class: "mwnf-nav__links"
363
- }, Ee = [
396
+ }, Oe = [
364
397
  "href",
365
398
  "aria-current",
366
399
  "aria-haspopup",
367
400
  "target",
368
401
  "rel"
369
- ], De = [
402
+ ], ke = [
370
403
  "aria-label",
371
404
  "aria-expanded",
372
405
  "onClick"
373
- ], Oe = {
406
+ ], Ae = {
374
407
  key: 1,
375
408
  class: "mwnf-nav__sublinks"
376
- }, ke = [
409
+ }, je = [
377
410
  "href",
378
411
  "target",
379
412
  "rel"
380
- ], Ae = {
413
+ ], Me = {
381
414
  key: 1,
382
415
  class: "mwnf-nav__language"
383
- }, je = { class: "mwnf-nav__language-label" }, Me = ["value"], Ne = ["value"], Pe = {
416
+ }, Ne = { class: "mwnf-nav__language-label" }, Pe = ["value"], Fe = ["value"], Ie = {
384
417
  key: 1,
385
418
  class: "mwnf-nav__notice"
386
- }, Fe = {
419
+ }, Le = {
387
420
  key: 0,
388
421
  class: "mwnf-nav__notice-title"
389
422
  }, K = {
@@ -429,7 +462,7 @@ var w = {
429
462
  class: l(["mwnf-nav", { "mwnf-nav--open": w.value }]),
430
463
  "aria-label": g(y)("layout.nav.label")
431
464
  }, [
432
- a("div", Ce, [
465
+ a("div", Te, [
433
466
  n.links.length ? (u(), i("button", {
434
467
  key: 0,
435
468
  type: "button",
@@ -440,8 +473,8 @@ var w = {
440
473
  }, [o[5] ||= a("span", {
441
474
  class: "mwnf-nav__toggle-icon",
442
475
  "aria-hidden": "true"
443
- }, "☰", -1), s(" " + h(g(y)("layout.nav.menu")), 1)], 8, we)) : r("", !0),
444
- p(t.$slots, "default", {}, () => [n.links.length ? (u(), i("ul", Te, [(u(!0), i(e, null, f(n.links, (t) => (u(), i("li", {
476
+ }, "☰", -1), s(" " + h(g(y)("layout.nav.menu")), 1)], 8, Ee)) : r("", !0),
477
+ p(t.$slots, "default", {}, () => [n.links.length ? (u(), i("ul", De, [(u(!0), i(e, null, f(n.links, (t) => (u(), i("li", {
445
478
  key: t.href ?? t.label,
446
479
  class: l({
447
480
  "mwnf-nav__item--parent": t.children?.length,
@@ -456,7 +489,7 @@ var w = {
456
489
  target: t.external ? "_blank" : void 0,
457
490
  rel: t.external ? "noopener" : void 0,
458
491
  onClick: o[1] ||= (e) => w.value = !1
459
- }, h(t.label), 11, Ee),
492
+ }, h(t.label), 11, Oe),
460
493
  t.children?.length ? (u(), i("button", {
461
494
  key: 0,
462
495
  type: "button",
@@ -464,23 +497,23 @@ var w = {
464
497
  "aria-label": t.label,
465
498
  "aria-expanded": T.value.has(t.href ?? t.label) ? "true" : "false",
466
499
  onClick: (e) => E(t.href ?? t.label)
467
- }, null, 8, De)) : r("", !0),
468
- t.children?.length ? (u(), i("ul", Oe, [(u(!0), i(e, null, f(t.children, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
500
+ }, null, 8, ke)) : r("", !0),
501
+ 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", {
469
502
  class: "mwnf-nav__sublink",
470
503
  href: e.href,
471
504
  target: e.external ? "_blank" : void 0,
472
505
  rel: e.external ? "noopener" : void 0,
473
506
  onClick: o[2] ||= (e) => w.value = !1
474
- }, h(e.label), 9, ke)]))), 128))])) : r("", !0)
507
+ }, h(e.label), 9, je)]))), 128))])) : r("", !0)
475
508
  ], 2))), 128))])) : r("", !0)]),
476
- x.value ? (u(), i("label", Ae, [a("span", je, h(g(y)("layout.language.label")), 1), a("select", {
509
+ x.value ? (u(), i("label", Me, [a("span", Ne, h(g(y)("layout.language.label")), 1), a("select", {
477
510
  class: "mwnf-nav__language-select",
478
511
  value: n.language,
479
512
  onChange: o[3] ||= (e) => m("update:language", e.target.value)
480
513
  }, [(u(!0), i(e, null, f(b.value, (e) => (u(), i("option", {
481
514
  key: e.code,
482
515
  value: e.code
483
- }, h(e.label), 9, Ne))), 128))], 40, Me)])) : r("", !0)
516
+ }, h(e.label), 9, Fe))), 128))], 40, Pe)])) : r("", !0)
484
517
  ]),
485
518
  w.value ? (u(), i("div", {
486
519
  key: 0,
@@ -488,10 +521,10 @@ var w = {
488
521
  "aria-hidden": "true",
489
522
  onClick: o[4] ||= (e) => w.value = !1
490
523
  })) : r("", !0),
491
- 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)
492
- ], 10, Se)) : r("", !0);
524
+ 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)
525
+ ], 10, we)) : r("", !0);
493
526
  }
494
- }, Ie = {
527
+ }, Re = {
495
528
  key: 0,
496
529
  id: "mwnf-content",
497
530
  class: "mwnf-content"
@@ -502,22 +535,22 @@ var w = {
502
535
  function n() {
503
536
  return !!t.default;
504
537
  }
505
- return (e, t) => n() ? (u(), i("main", Ie, [p(e.$slots, "default")])) : r("", !0);
538
+ return (e, t) => n() ? (u(), i("main", Re, [p(e.$slots, "default")])) : r("", !0);
506
539
  }
507
- }, Le = ["aria-label"], Re = {
540
+ }, ze = ["aria-label"], Be = {
508
541
  key: 0,
509
542
  class: "mwnf-hyperlinks__title"
510
- }, ze = {
543
+ }, Ve = {
511
544
  key: 1,
512
545
  class: "mwnf-hyperlinks__subtitle"
513
- }, Be = {
546
+ }, He = {
514
547
  key: 1,
515
548
  class: "mwnf-hyperlinks__title"
516
- }, Ve = { class: "mwnf-hyperlinks__list" }, He = [
549
+ }, Ue = { class: "mwnf-hyperlinks__list" }, We = [
517
550
  "href",
518
551
  "target",
519
552
  "rel"
520
- ], Ue = { class: "mwnf-hyperlinks__label" }, We = {
553
+ ], Ge = { class: "mwnf-hyperlinks__label" }, Ke = {
521
554
  key: 0,
522
555
  class: "mwnf-hyperlinks__description"
523
556
  }, J = {
@@ -558,28 +591,28 @@ var w = {
558
591
  class: "mwnf-hyperlinks__lockup",
559
592
  href: t.titleHref || void 0
560
593
  }, {
561
- 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)]),
594
+ 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)]),
562
595
  _: 1
563
- }, 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", {
596
+ }, 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", {
564
597
  class: "mwnf-hyperlinks__link",
565
598
  href: e.href,
566
599
  target: e.external ? "_blank" : void 0,
567
600
  rel: e.external ? "noopener" : void 0
568
- }, [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);
601
+ }, [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);
569
602
  }
570
- }, Ge = ["aria-label"], Ke = {
603
+ }, qe = ["aria-label"], Je = {
571
604
  key: 0,
572
605
  class: "mwnf-sponsors__title"
573
- }, qe = {
606
+ }, Ye = {
574
607
  key: 0,
575
608
  class: "mwnf-sponsors__list"
576
- }, Je = ["src", "alt"], Ye = {
609
+ }, Xe = ["src", "alt"], Ze = {
577
610
  key: 1,
578
611
  class: "mwnf-sponsors__groups"
579
- }, Xe = {
612
+ }, Qe = {
580
613
  key: 0,
581
614
  class: "mwnf-sponsors__group-title"
582
- }, Ze = { class: "mwnf-sponsors__list" }, Qe = ["src", "alt"], Y = {
615
+ }, $e = { class: "mwnf-sponsors__list" }, et = ["src", "alt"], Y = {
583
616
  __name: "AppSponsors",
584
617
  props: {
585
618
  title: {
@@ -604,7 +637,7 @@ var w = {
604
637
  key: 0,
605
638
  class: "mwnf-sponsors",
606
639
  "aria-label": o.title || g(d)("layout.sponsors.label")
607
- }, [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"), {
640
+ }, [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"), {
608
641
  class: "mwnf-sponsors__item",
609
642
  href: t.href,
610
643
  target: t.href ? "_blank" : void 0,
@@ -615,16 +648,16 @@ var w = {
615
648
  class: "mwnf-sponsors__logo",
616
649
  src: t.logo,
617
650
  alt: t.name
618
- }, null, 8, Je)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
651
+ }, null, 8, Xe)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
619
652
  _: 2
620
653
  }, 1032, [
621
654
  "href",
622
655
  "target",
623
656
  "rel"
624
- ]))]))), 128))])) : r("", !0), v.value.length ? (u(), i("div", Ye, [(u(!0), i(e, null, f(v.value, (t) => (u(), i("div", {
657
+ ]))]))), 128))])) : r("", !0), v.value.length ? (u(), i("div", Ze, [(u(!0), i(e, null, f(v.value, (t) => (u(), i("div", {
625
658
  key: t.title,
626
659
  class: "mwnf-sponsors__group"
627
- }, [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"), {
660
+ }, [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"), {
628
661
  class: "mwnf-sponsors__item",
629
662
  href: t.href,
630
663
  target: t.href ? "_blank" : void 0,
@@ -636,14 +669,14 @@ var w = {
636
669
  class: "mwnf-sponsors__logo",
637
670
  src: t.logo,
638
671
  alt: t.name
639
- }, null, 8, Qe)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
672
+ }, null, 8, et)) : (u(), i(e, { key: 1 }, [s(h(t.name), 1)], 64))]),
640
673
  _: 2
641
674
  }, 1032, [
642
675
  "href",
643
676
  "target",
644
677
  "rel",
645
678
  "title"
646
- ]))]))), 128))])]))), 128))])) : r("", !0)])], 8, Ge)) : r("", !0);
679
+ ]))]))), 128))])]))), 128))])) : r("", !0)])], 8, qe)) : r("", !0);
647
680
  }
648
681
  }, X = {
649
682
  youtube: {
@@ -670,7 +703,7 @@ var w = {
670
703
  viewBox: "0 0 448 512",
671
704
  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"
672
705
  }
673
- }, $e = Object.freeze([
706
+ }, tt = Object.freeze([
674
707
  {
675
708
  label: "YouTube",
676
709
  href: "https://www.youtube.com/channel/UC5X2a5jDFyIfTEV5prWNF5Q",
@@ -701,14 +734,14 @@ var w = {
701
734
  href: "https://www.linkedin.com/company/museum-with-no-frontiers/",
702
735
  icon: "linkedin"
703
736
  }
704
- ]), et = {
737
+ ]), nt = {
705
738
  key: 0,
706
739
  class: "mwnf-footer__social"
707
- }, tt = [
740
+ }, rt = [
708
741
  "href",
709
742
  "aria-label",
710
743
  "title"
711
- ], nt = ["viewBox"], rt = ["d"], Z = {
744
+ ], it = ["viewBox"], at = ["d"], Z = {
712
745
  __name: "SocialLinks",
713
746
  props: { links: {
714
747
  type: Array,
@@ -716,7 +749,7 @@ var w = {
716
749
  } },
717
750
  setup(n) {
718
751
  let o = n, s = t(() => o.links.filter((e) => X[e.icon]));
719
- 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", {
752
+ 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", {
720
753
  class: "mwnf-footer__social-link",
721
754
  href: e.href,
722
755
  target: "_blank",
@@ -731,28 +764,28 @@ var w = {
731
764
  }, [a("path", {
732
765
  fill: "currentColor",
733
766
  d: g(X)[e.icon].path
734
- }, null, 8, rt)], 8, nt))], 8, tt)]))), 128))])) : r("", !0);
767
+ }, null, 8, at)], 8, it))], 8, rt)]))), 128))])) : r("", !0);
735
768
  }
736
- }, it = {
769
+ }, Q = {
737
770
  key: 0,
738
771
  class: "mwnf-footer"
739
- }, at = {
772
+ }, ot = {
740
773
  key: 0,
741
774
  class: "mwnf-footer__links"
742
- }, Q = [
775
+ }, st = [
743
776
  "href",
744
777
  "target",
745
778
  "rel"
746
- ], ot = {
779
+ ], ct = {
747
780
  key: 1,
748
781
  class: "mwnf-footer__text"
749
- }, st = {
782
+ }, lt = {
750
783
  key: 2,
751
784
  class: "mwnf-footer__attribution"
752
- }, ct = {
785
+ }, ut = {
753
786
  key: 0,
754
787
  class: "mwnf-footer__attribution-label"
755
- }, lt = ["href"], $ = {
788
+ }, dt = ["href"], $ = {
756
789
  __name: "AppFooter",
757
790
  props: {
758
791
  text: {
@@ -789,30 +822,30 @@ var w = {
789
822
  function m() {
790
823
  return !!(l.default || o.text || o.links.length || o.attributionText || d.value.length);
791
824
  }
792
- return (t, o) => m() ? (u(), i("footer", it, [p(t.$slots, "default", {}, () => [
793
- 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", {
825
+ return (t, o) => m() ? (u(), i("footer", Q, [p(t.$slots, "default", {}, () => [
826
+ n.links.length ? (u(), i("ul", ot, [(u(!0), i(e, null, f(n.links, (e) => (u(), i("li", { key: e.href ?? e.label }, [a("a", {
794
827
  class: "mwnf-footer__link",
795
828
  href: e.href,
796
829
  target: e.external ? "_blank" : void 0,
797
830
  rel: e.external ? "noopener" : void 0
798
- }, h(e.label), 9, Q)]))), 128))])) : r("", !0),
799
- n.text ? (u(), i("p", ot, h(n.text), 1)) : r("", !0),
800
- n.attributionText ? (u(), i("p", st, [
801
- n.attributionLabel ? (u(), i("span", ct, h(n.attributionLabel), 1)) : r("", !0),
831
+ }, h(e.label), 9, st)]))), 128))])) : r("", !0),
832
+ n.text ? (u(), i("p", ct, h(n.text), 1)) : r("", !0),
833
+ n.attributionText ? (u(), i("p", lt, [
834
+ n.attributionLabel ? (u(), i("span", ut, h(n.attributionLabel), 1)) : r("", !0),
802
835
  s(" " + h(n.attributionText) + " ", 1),
803
836
  n.termsHref ? (u(), i("a", {
804
837
  key: 1,
805
838
  class: "mwnf-footer__terms",
806
839
  href: n.termsHref
807
- }, h(n.termsLabel), 9, lt)) : r("", !0)
840
+ }, h(n.termsLabel), 9, dt)) : r("", !0)
808
841
  ])) : r("", !0),
809
842
  c(Z, { links: d.value }, null, 8, ["links"])
810
843
  ])])) : r("", !0);
811
844
  }
812
- }, ut = { class: "mwnf-page" }, dt = {
845
+ }, ft = { class: "mwnf-page" }, pt = {
813
846
  class: "mwnf-skip-link",
814
847
  href: "#mwnf-content"
815
- }, ft = {
848
+ }, mt = {
816
849
  __name: "PageShell",
817
850
  props: {
818
851
  headerTitle: {
@@ -1003,8 +1036,8 @@ var w = {
1003
1036
  emits: ["update:language", "search"],
1004
1037
  setup(r, { emit: s }) {
1005
1038
  let l = r, d = s, { t: m } = C(), _ = t(() => l.navigationPlacement === "before-banner" ? ["navigation", "banner"] : ["banner", "navigation"]);
1006
- return (t, s) => (u(), i("div", ut, [
1007
- a("a", dt, h(g(m)("layout.nav.skipToContent")), 1),
1039
+ return (t, s) => (u(), i("div", ft, [
1040
+ a("a", pt, h(g(m)("layout.nav.skipToContent")), 1),
1008
1041
  c(I, {
1009
1042
  title: r.headerTitle,
1010
1043
  subtitle: r.headerSubtitle,
@@ -1157,4 +1190,4 @@ var w = {
1157
1190
  ]));
1158
1191
  }
1159
1192
  };
1160
- export { Y as a, K as c, $e as i, G as l, $ as n, J as o, Z as r, q as s, ft as t, I as u };
1193
+ export { Y as a, K as c, tt as i, G as l, $ as n, J as o, Z as r, q as s, mt as t, I as u };
@@ -541,6 +541,10 @@ var D = [
541
541
  thumbsFrom: {
542
542
  type: Number,
543
543
  default: 2
544
+ },
545
+ creditCaption: {
546
+ type: Boolean,
547
+ default: !0
544
548
  }
545
549
  },
546
550
  setup(n) {
@@ -600,7 +604,7 @@ var D = [
600
604
  alt: e.alt ?? "",
601
605
  loading: "lazy"
602
606
  }, null, 8, nt)], 10, $)]))), 128))])) : r("", !0),
603
- l.value.caption || h.value ? (f(), i("p", rt, [l.value.caption ? (f(), i("span", it, _(l.value.caption), 1)) : r("", !0), h.value ? (f(), i("span", at, _(h.value), 1)) : r("", !0)])) : r("", !0),
607
+ l.value.caption || n.creditCaption && h.value ? (f(), i("p", rt, [l.value.caption ? (f(), i("span", it, _(l.value.caption), 1)) : r("", !0), n.creditCaption && h.value ? (f(), i("span", at, _(h.value), 1)) : r("", !0)])) : r("", !0),
604
608
  g.value ? (f(), i("div", {
605
609
  key: 2,
606
610
  class: "mwnf-lightbox",