@museumwnf/viewer-layout 3.18.1 → 3.19.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.
@@ -2,13 +2,13 @@ import { r as e } from "./chrome-DNsZQXrL.js";
2
2
  import { s as t, t as n, u as r } from "./MediaGallery-DeXLadYl.js";
3
3
  import { n as i, t as a } from "./RecordView-GckO9PmG.js";
4
4
  import { t as o } from "./SiteShell-DPdTxtJ5.js";
5
- import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useSlots as E, watch as D, withCtx as O } from "vue";
6
- import { byId as k, loadEntities as A, pictureCredits as j, picturesInLanguage as M, removeEndingPoint as N, renderBlock as P, renderInline as F, renderPlain as I, useDataPackage as L, useI18n as R, useSection as ee, useSiteConfig as z } from "@museumwnf/viewer-core";
5
+ import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useSlots as E, watch as D, withCtx as O, withModifiers as k } from "vue";
6
+ import { byId as A, loadEntities as j, pictureCredits as M, picturesInLanguage as N, removeEndingPoint as P, renderBlock as F, renderInline as I, renderPlain as L, useDataPackage as R, useI18n as z, useSection as ee, useSiteConfig as B } from "@museumwnf/viewer-core";
7
7
  //#region src/standalone/Banner.vue
8
- var B = {
8
+ var V = {
9
9
  key: 0,
10
10
  class: "mwnf-standalone-banner__title"
11
- }, V = {
11
+ }, H = {
12
12
  __name: "Banner",
13
13
  props: {
14
14
  image: {
@@ -24,26 +24,26 @@ var B = {
24
24
  return (t, n) => (b(), d("div", {
25
25
  class: "mwnf-standalone-banner",
26
26
  style: y(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
27
- }, [e.title ? (b(), d("h1", B, [f("span", null, w(e.title), 1)])) : u("", !0)], 4));
27
+ }, [e.title ? (b(), d("h1", V, [f("span", null, w(e.title), 1)])) : u("", !0)], 4));
28
28
  }
29
29
  };
30
30
  //#endregion
31
31
  //#region src/standalone/chrome.js
32
- function H() {
33
- let t = z();
32
+ function U() {
33
+ let t = B();
34
34
  return (n) => e(t.chrome, n);
35
35
  }
36
- function U(e, t) {
36
+ function W(e, t) {
37
37
  return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
38
38
  }
39
- function W(e = /* @__PURE__ */ new Date()) {
39
+ function G(e = /* @__PURE__ */ new Date()) {
40
40
  let t = new Date(e.getFullYear(), 0, 1);
41
41
  return Math.round((new Date(e.getFullYear(), e.getMonth(), e.getDate()) - t) / 864e5);
42
42
  }
43
- function G(e, t = /* @__PURE__ */ new Date()) {
44
- return e?.length ? e[W(t) % e.length] : null;
43
+ function K(e, t = /* @__PURE__ */ new Date()) {
44
+ return e?.length ? e[G(t) % e.length] : null;
45
45
  }
46
- function K(e) {
46
+ function q(e) {
47
47
  let [t, ...n] = String(e ?? "").split("*")[0].trim().split(";");
48
48
  return !t || n.length < 5 ? "" : [
49
49
  "mwnf3",
@@ -56,16 +56,16 @@ function K(e) {
56
56
  var te = { class: "mwnf-standalone-sponsors" }, ne = {
57
57
  key: 0,
58
58
  class: "mwnf-standalone-sponsors__text"
59
- }, re = ["innerHTML"], ie = { key: 1 }, ae = ["innerHTML"], q = {
59
+ }, re = ["innerHTML"], ie = { key: 1 }, ae = ["innerHTML"], J = {
60
60
  key: 1,
61
61
  class: "mwnf-standalone-sponsors__title"
62
- }, J = {
62
+ }, oe = {
63
63
  key: 2,
64
64
  class: "mwnf-standalone-sponsors__logos"
65
- }, oe = {
65
+ }, se = {
66
66
  key: 0,
67
67
  class: "mwnf-standalone-sponsors__note"
68
- }, se = ["src", "alt"], ce = ["innerHTML"], le = ["href"], ue = ["src", "alt"], de = ["src", "alt"], fe = {
68
+ }, ce = ["src", "alt"], le = ["innerHTML"], ue = ["href"], de = ["src", "alt"], fe = ["src", "alt"], pe = {
69
69
  key: 3,
70
70
  class: "mwnf-standalone-sponsors__links"
71
71
  }, Y = {
@@ -75,18 +75,18 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
75
75
  default: () => []
76
76
  } },
77
77
  setup(e) {
78
- let t = e, { t: n } = R(), i = H(), a = c(() => t.columns.map((e, t) => ({
78
+ let t = e, { t: n } = z(), i = U(), a = c(() => t.columns.map((e, t) => ({
79
79
  key: t,
80
80
  width: e.width ?? null,
81
- lead: e.lead ? F(n(e.lead)) : "",
82
- text: e.text ? F(n(e.text)) : "",
81
+ lead: e.lead ? I(n(e.lead)) : "",
82
+ text: e.text ? I(n(e.text)) : "",
83
83
  break: !!e.break,
84
84
  title: e.title ? n(e.title) : "",
85
85
  logos: (e.logos ?? []).map((e) => ({
86
86
  src: i(e.src) ?? "",
87
87
  alt: e.alt ? n(e.alt) : "",
88
88
  href: e.href ?? "",
89
- note: e.note ? P(n(e.note)) : ""
89
+ note: e.note ? F(n(e.note)) : ""
90
90
  })),
91
91
  links: (e.links ?? []).map((e) => ({
92
92
  ...e,
@@ -109,14 +109,14 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
109
109
  innerHTML: e.text
110
110
  }, null, 8, ae)) : u("", !0)
111
111
  ])) : u("", !0),
112
- e.title ? (b(), d("p", q, w(e.title), 1)) : u("", !0),
113
- e.logos.length ? (b(), d("ul", J, [(b(!0), d(s, null, S(e.logos, (e) => (b(), d("li", { key: e.src }, [e.note ? (b(), d("details", oe, [f("summary", null, [f("img", {
112
+ e.title ? (b(), d("p", J, w(e.title), 1)) : u("", !0),
113
+ e.logos.length ? (b(), d("ul", oe, [(b(!0), d(s, null, S(e.logos, (e) => (b(), d("li", { key: e.src }, [e.note ? (b(), d("details", se, [f("summary", null, [f("img", {
114
114
  src: e.src,
115
115
  alt: e.alt
116
- }, null, 8, se)]), f("div", {
116
+ }, null, 8, ce)]), f("div", {
117
117
  class: "mwnf-standalone-sponsors__note-body",
118
118
  innerHTML: e.note
119
- }, null, 8, ce)])) : e.href ? (b(), d("a", {
119
+ }, null, 8, le)])) : e.href ? (b(), d("a", {
120
120
  key: 1,
121
121
  href: e.href,
122
122
  target: "_blank",
@@ -124,12 +124,12 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
124
124
  }, [f("img", {
125
125
  src: e.src,
126
126
  alt: e.alt
127
- }, null, 8, ue)], 8, le)) : (b(), d("img", {
127
+ }, null, 8, de)], 8, ue)) : (b(), d("img", {
128
128
  key: 2,
129
129
  src: e.src,
130
130
  alt: e.alt
131
- }, null, 8, de))]))), 128))])) : u("", !0),
132
- e.links.length ? (b(), d("ul", fe, [(b(!0), d(s, null, S(e.links, (e) => (b(), d("li", { key: e.label }, [h(r, {
131
+ }, null, 8, fe))]))), 128))])) : u("", !0),
132
+ e.links.length ? (b(), d("ul", pe, [(b(!0), d(s, null, S(e.links, (e) => (b(), d("li", { key: e.label }, [h(r, {
133
133
  to: e.to,
134
134
  href: e.href,
135
135
  external: !!e.external
@@ -143,13 +143,13 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
143
143
  ])]))), 128))])) : u("", !0)
144
144
  ], 4))), 128))]));
145
145
  }
146
- }, pe = { class: "mwnf-banner mwnf-standalone-home-banner" }, me = ["src"], he = { class: "mwnf-standalone-home-banner__text" }, ge = {
146
+ }, me = { class: "mwnf-banner mwnf-standalone-home-banner" }, he = ["src"], ge = { class: "mwnf-standalone-home-banner__text" }, _e = {
147
147
  key: 0,
148
148
  class: "mwnf-standalone-home-banner__title"
149
- }, _e = {
149
+ }, ve = {
150
150
  key: 1,
151
151
  class: "mwnf-standalone-home-banner__line"
152
- }, ve = ["src"], ye = {
152
+ }, ye = ["src"], be = {
153
153
  __name: "Shell",
154
154
  props: {
155
155
  language: {
@@ -163,7 +163,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
163
163
  },
164
164
  emits: ["update:language"],
165
165
  setup(t, { emit: n }) {
166
- let r = t, i = n, { t: a, locale: s } = R(), m = z(), g = ee(), v = c(() => m.standalone ?? {}), y = c(() => m.navigation ?? {}), x = c(() => g.value === "home"), S = c(() => v.value.areas?.[g.value] ?? null), E = (t) => e(m.chrome, U(t, s.value)), D = c(() => {
166
+ let r = t, i = n, { t: a, locale: s } = z(), m = B(), g = ee(), v = c(() => m.standalone ?? {}), y = c(() => m.navigation ?? {}), x = c(() => g.value === "home"), S = c(() => v.value.areas?.[g.value] ?? null), E = (t) => e(m.chrome, W(t, s.value)), D = c(() => {
167
167
  let e = v.value.logo ?? {}, t = E(S.value?.logo ?? e.src);
168
168
  return t ? {
169
169
  logo: t,
@@ -196,13 +196,13 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
196
196
  },
197
197
  banner: null,
198
198
  ...D.value ? { brand: D.value } : {}
199
- })), L = (/* @__PURE__ */ new Date()).getFullYear(), B = c(() => v.value.copyright ? `${a(v.value.copyright)} ${L}` : ""), H = c(() => [
199
+ })), L = (/* @__PURE__ */ new Date()).getFullYear(), R = c(() => v.value.copyright ? `${a(v.value.copyright)} ${L}` : ""), V = c(() => [
200
200
  "mwnf-standalone",
201
201
  x.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
202
202
  S.value?.class ?? ""
203
203
  ]);
204
204
  return (e, t) => (b(), l(o, {
205
- class: _(H.value),
205
+ class: _(V.value),
206
206
  config: I.value,
207
207
  languages: v.value.languages === !1 ? [] : r.languages,
208
208
  language: r.language,
@@ -213,7 +213,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
213
213
  "header-subtitle": x.value ? "" : v.value.subheading ? T(a)(v.value.subheading) : "",
214
214
  "header-title-href": "#/",
215
215
  "banner-image": x.value && !P.value ? j.value : "",
216
- "footer-text": B.value || void 0,
216
+ "footer-text": R.value || void 0,
217
217
  "onUpdate:language": t[0] ||= (e) => i("update:language", e)
218
218
  }, p({
219
219
  default: O(() => [C(e.$slots, "default")]),
@@ -221,19 +221,19 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
221
221
  }, [
222
222
  N.value ? {
223
223
  name: "banner",
224
- fn: O(() => [h(V, {
224
+ fn: O(() => [h(H, {
225
225
  image: j.value,
226
226
  title: M.value
227
227
  }, null, 8, ["image", "title"])]),
228
228
  key: "0"
229
229
  } : P.value ? {
230
230
  name: "banner",
231
- fn: O(() => [f("section", pe, [j.value ? (b(), d("img", {
231
+ fn: O(() => [f("section", me, [j.value ? (b(), d("img", {
232
232
  key: 0,
233
233
  class: "mwnf-banner__image",
234
234
  src: j.value,
235
235
  alt: ""
236
- }, null, 8, me)) : u("", !0), f("div", he, [P.value.title ? (b(), d("h2", ge, [f("i", null, w(P.value.title), 1)])) : u("", !0), P.value.text ? (b(), d("p", _e, [f("span", null, w(P.value.text), 1)])) : u("", !0)])])]),
236
+ }, null, 8, he)) : u("", !0), f("div", ge, [P.value.title ? (b(), d("h2", _e, [f("i", null, w(P.value.title), 1)])) : u("", !0), P.value.text ? (b(), d("p", ve, [f("span", null, w(P.value.text), 1)])) : u("", !0)])])]),
237
237
  key: "1"
238
238
  } : void 0,
239
239
  k.value ? {
@@ -242,7 +242,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
242
242
  class: "mwnf-standalone__print-logo",
243
243
  src: k.value,
244
244
  alt: ""
245
- }, null, 8, ve)]),
245
+ }, null, 8, ye)]),
246
246
  key: "2"
247
247
  } : void 0,
248
248
  e.$slots.sponsors ? {
@@ -271,16 +271,16 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
271
271
  "footer-text"
272
272
  ]));
273
273
  }
274
- }, be = {
274
+ }, xe = {
275
275
  key: 0,
276
276
  class: "mwnf-standalone-highlight"
277
- }, xe = ["src", "alt"], Se = {
277
+ }, Se = ["src", "alt"], Ce = {
278
278
  key: 1,
279
279
  class: "mwnf-standalone-highlight__heading"
280
- }, Ce = { class: "mwnf-standalone-highlight__lines" }, we = ["innerHTML"], Te = {
280
+ }, we = { class: "mwnf-standalone-highlight__lines" }, Te = ["innerHTML"], Ee = {
281
281
  key: 2,
282
282
  class: "mwnf-standalone-highlight__place"
283
- }, Ee = {
283
+ }, De = {
284
284
  key: 3,
285
285
  class: "mwnf-standalone-highlight__action"
286
286
  }, X = {
@@ -320,20 +320,20 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
320
320
  }
321
321
  },
322
322
  setup(e) {
323
- let t = e, { t: n } = R(), i = (e) => N(Array.isArray(e) ? e.join("; ") : e), a = c(() => {
323
+ let t = e, { t: n } = z(), i = (e) => P(Array.isArray(e) ? e.join("; ") : e), a = c(() => {
324
324
  let e = t.text ?? {}, r = [], a = i(e.name ?? t.record?.internal_name ?? "");
325
- a && r.push(F(a));
325
+ a && r.push(I(a));
326
326
  let o = i(e.alternate_name);
327
- o && r.push(`${t.alsoKnownAs ? `${n(t.alsoKnownAs)} ` : ""}${F(o)}`);
327
+ o && r.push(`${t.alsoKnownAs ? `${n(t.alsoKnownAs)} ` : ""}${I(o)}`);
328
328
  let s = [i(e.dates), i(e.dynasty)].filter(Boolean).join(", ");
329
- s && r.push(F(s));
329
+ s && r.push(I(s));
330
330
  for (let t of ["materials", "holder"]) {
331
331
  let n = i(e[t]);
332
- n && r.push(F(n));
332
+ n && r.push(I(n));
333
333
  }
334
334
  return r;
335
- }), o = c(() => [i(t.text?.location), t.country].filter(Boolean).join(", ")), p = c(() => t.picture || (t.record?.images?.[0]?.url ?? "")), g = c(() => I(String(t.text?.name ?? t.record?.internal_name ?? "")));
336
- return (t, i) => e.record ? (b(), d("div", be, [
335
+ }), o = c(() => [i(t.text?.location), t.country].filter(Boolean).join(", ")), p = c(() => t.picture || (t.record?.images?.[0]?.url ?? "")), g = c(() => L(String(t.text?.name ?? t.record?.internal_name ?? "")));
336
+ return (t, i) => e.record ? (b(), d("div", xe, [
337
337
  p.value ? (b(), l(r, {
338
338
  key: 0,
339
339
  class: "mwnf-standalone-highlight__media",
@@ -343,25 +343,25 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
343
343
  class: "mwnf-standalone-highlight__image",
344
344
  src: p.value,
345
345
  alt: g.value
346
- }, null, 8, xe)]),
346
+ }, null, 8, Se)]),
347
347
  _: 1
348
348
  }, 8, ["to"])) : u("", !0),
349
- e.heading ? (b(), d("p", Se, [f("strong", null, w(T(n)(e.heading)), 1)])) : u("", !0),
350
- f("p", Ce, [(b(!0), d(s, null, S(a.value, (e, t) => (b(), d(s, { key: t }, [f("span", { innerHTML: e }, null, 8, we), i[0] ||= f("br", null, null, -1)], 64))), 128))]),
351
- o.value ? (b(), d("p", Te, w(T(I)(o.value)), 1)) : u("", !0),
352
- e.action ? (b(), d("p", Ee, [h(r, { to: e.to }, {
349
+ e.heading ? (b(), d("p", Ce, [f("strong", null, w(T(n)(e.heading)), 1)])) : u("", !0),
350
+ f("p", we, [(b(!0), d(s, null, S(a.value, (e, t) => (b(), d(s, { key: t }, [f("span", { innerHTML: e }, null, 8, Te), i[0] ||= f("br", null, null, -1)], 64))), 128))]),
351
+ o.value ? (b(), d("p", Ee, w(T(L)(o.value)), 1)) : u("", !0),
352
+ e.action ? (b(), d("p", De, [h(r, { to: e.to }, {
353
353
  default: O(() => [m(w(T(n)(e.action)), 1)]),
354
354
  _: 1
355
355
  }, 8, ["to"])])) : u("", !0)
356
356
  ])) : u("", !0);
357
357
  }
358
- }, De = {
358
+ }, Oe = {
359
359
  key: 0,
360
360
  class: "mwnf-standalone-tiles"
361
- }, Oe = {
361
+ }, ke = {
362
362
  key: 0,
363
363
  class: "mwnf-standalone-tiles__caption"
364
- }, ke = { class: "mwnf-standalone-tiles__grid" }, Ae = ["src", "alt"], je = {
364
+ }, Ae = { class: "mwnf-standalone-tiles__grid" }, je = ["src", "alt"], Me = {
365
365
  key: 0,
366
366
  class: "mwnf-standalone-tiles__label"
367
367
  }, Z = {
@@ -377,12 +377,12 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
377
377
  }
378
378
  },
379
379
  setup(e) {
380
- let t = e, { t: n } = R(), i = H(), a = c(() => t.items.map((e) => ({
380
+ let t = e, { t: n } = z(), i = U(), a = c(() => t.items.map((e) => ({
381
381
  ...e,
382
382
  image: i(e.image) ?? "",
383
- label: e.text ? I(e.text) : e.label ? n(e.label) : ""
383
+ label: e.text ? L(e.text) : e.label ? n(e.label) : ""
384
384
  })));
385
- return (t, i) => a.value.length ? (b(), d("section", De, [e.caption ? (b(), d("p", Oe, w(T(n)(e.caption)), 1)) : u("", !0), f("ul", ke, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("li", {
385
+ return (t, i) => a.value.length ? (b(), d("section", Oe, [e.caption ? (b(), d("p", ke, w(T(n)(e.caption)), 1)) : u("", !0), f("ul", Ae, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("li", {
386
386
  key: e.image,
387
387
  class: "mwnf-standalone-tiles__tile"
388
388
  }, [h(r, {
@@ -394,33 +394,33 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
394
394
  class: "mwnf-standalone-tiles__image",
395
395
  src: e.image,
396
396
  alt: e.label
397
- }, null, 8, Ae), e.label ? (b(), d("span", je, w(e.label), 1)) : u("", !0)]),
397
+ }, null, 8, je), e.label ? (b(), d("span", Me, w(e.label), 1)) : u("", !0)]),
398
398
  _: 2
399
399
  }, 1032, ["to", "href"])]))), 128))])])) : u("", !0);
400
400
  }
401
- }, Me = { class: "mwnf-standalone-home" }, Ne = {
401
+ }, Ne = { class: "mwnf-standalone-home" }, Pe = {
402
402
  key: 0,
403
403
  class: "mwnf-standalone-home__links"
404
- }, Pe = { key: 1 }, Fe = {
404
+ }, Fe = { key: 1 }, Ie = {
405
405
  __name: "Home",
406
406
  props: { home: {
407
407
  type: Object,
408
408
  default: null
409
409
  } },
410
410
  setup(e) {
411
- let t = e, { t: n, locale: i } = R(), a = z(), o = c(() => t.home ?? a.standalone?.home ?? {}), f = c(() => (o.value.links ?? []).map((e) => ({
411
+ let t = e, { t: n, locale: i } = z(), a = B(), o = c(() => t.home ?? a.standalone?.home ?? {}), f = c(() => (o.value.links ?? []).map((e) => ({
412
412
  ...e,
413
413
  label: n(e.label),
414
414
  prefix: e.prefix ? n(e.prefix) : "",
415
415
  title: e.title ? n(e.title) : void 0
416
- }))), p = c(() => o.value.highlight ?? null), g = L();
417
- p.value?.list?.length && (A(["items", "countries"]), D(i, (e) => {
416
+ }))), p = c(() => o.value.highlight ?? null), g = R();
417
+ p.value?.list?.length && (j(["items", "countries"]), D(i, (e) => {
418
418
  g.loadTranslations("items", e), g.loadTranslations("countries", e);
419
419
  }, { immediate: !0 }));
420
- let v = k("items", "backward_compatibility"), y = c(() => {
421
- let e = p.value?.list ?? [], t = e.indexOf(G(e));
420
+ let v = A("items", "backward_compatibility"), y = c(() => {
421
+ let e = p.value?.list ?? [], t = e.indexOf(K(e));
422
422
  for (let n = 0; t >= 0 && n < e.length; n++) {
423
- let r = v.value.get(K(e[(t + n) % e.length]));
423
+ let r = v.value.get(q(e[(t + n) % e.length]));
424
424
  if (r) return r;
425
425
  }
426
426
  return null;
@@ -430,15 +430,15 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
430
430
  }), E = c(() => y.value ? {
431
431
  name: p.value.route ?? "item",
432
432
  params: { id: y.value.id }
433
- } : null), j = H(), M = c(() => {
433
+ } : null), k = U(), M = c(() => {
434
434
  let e = p.value?.pictures ?? [];
435
- return e.length ? j(G(e)) ?? "" : "";
435
+ return e.length ? k(K(e)) ?? "" : "";
436
436
  }), N = c(() => {
437
437
  let e = o.value.tiles?.items;
438
438
  return (typeof e == "function" ? e() : e) ?? [];
439
439
  });
440
- return (e, t) => (b(), d("div", Me, [
441
- f.value.length ? (b(), d("ul", Ne, [(b(!0), d(s, null, S(f.value, (e) => (b(), d("li", {
440
+ return (e, t) => (b(), d("div", Ne, [
441
+ f.value.length ? (b(), d("ul", Pe, [(b(!0), d(s, null, S(f.value, (e) => (b(), d("li", {
442
442
  key: e.label,
443
443
  class: _({ "mwnf-standalone-home__link--gap": e.gap })
444
444
  }, [h(r, {
@@ -447,7 +447,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
447
447
  external: !!e.external,
448
448
  title: e.title
449
449
  }, {
450
- default: O(() => [e.prefix ? (b(), d(s, { key: 0 }, [m(w(`${e.prefix} `), 1)], 64)) : u("", !0), e.italic ? (b(), d("i", Pe, w(e.label), 1)) : (b(), d(s, { key: 2 }, [m(w(e.label), 1)], 64))]),
450
+ default: O(() => [e.prefix ? (b(), d(s, { key: 0 }, [m(w(`${e.prefix} `), 1)], 64)) : u("", !0), e.italic ? (b(), d("i", Fe, w(e.label), 1)) : (b(), d(s, { key: 2 }, [m(w(e.label), 1)], 64))]),
451
451
  _: 2
452
452
  }, 1032, [
453
453
  "to",
@@ -483,10 +483,10 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
483
483
  C(e.$slots, "default")
484
484
  ]));
485
485
  }
486
- }, Ie = { class: "mwnf-standalone-related" }, Le = { class: "mwnf-standalone-related__heading" }, Re = { class: "mwnf-standalone-related__group-heading" }, ze = { class: "mwnf-standalone-related__thumbs" }, Be = ["src", "alt"], Ve = ["innerHTML"], He = {
486
+ }, Le = { class: "mwnf-standalone-related" }, Re = { class: "mwnf-standalone-related__heading" }, ze = { class: "mwnf-standalone-related__group-heading" }, Be = { class: "mwnf-standalone-related__thumbs" }, Ve = ["src", "alt"], He = ["innerHTML"], Ue = {
487
487
  key: 0,
488
488
  class: "mwnf-standalone-related__download"
489
- }, Ue = { class: "mwnf-standalone-related__download-heading" }, Q = {
489
+ }, We = { class: "mwnf-standalone-related__download-heading" }, Q = {
490
490
  __name: "RelatedContent",
491
491
  props: {
492
492
  heading: {
@@ -507,19 +507,19 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
507
507
  }
508
508
  },
509
509
  setup(e) {
510
- let t = e, { t: n } = R(), i = c(() => t.groups.map((e) => ({
510
+ let t = e, { t: n } = z(), i = c(() => t.groups.map((e) => ({
511
511
  heading: n(e.heading),
512
512
  rows: t.records.filter((t) => !e.type || t.badge === e.type)
513
513
  })).filter((e) => e.rows.length));
514
514
  function a() {
515
515
  window.print();
516
516
  }
517
- return (t, o) => (b(), d("aside", Ie, [
518
- f("p", Le, [f("strong", null, w(T(n)(e.heading)), 1)]),
517
+ return (t, o) => (b(), d("aside", Le, [
518
+ f("p", Re, [f("strong", null, w(T(n)(e.heading)), 1)]),
519
519
  (b(!0), d(s, null, S(i.value, (e) => (b(), d("div", {
520
520
  key: e.heading,
521
521
  class: "mwnf-standalone-related__group"
522
- }, [f("p", Re, w(e.heading), 1), f("ul", ze, [(b(!0), d(s, null, S(e.rows, (e) => (b(), d("li", { key: e.id }, [h(r, {
522
+ }, [f("p", ze, w(e.heading), 1), f("ul", Be, [(b(!0), d(s, null, S(e.rows, (e) => (b(), d("li", { key: e.id }, [h(r, {
523
523
  to: e.to,
524
524
  title: e.imageAlt
525
525
  }, {
@@ -527,24 +527,24 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
527
527
  key: 0,
528
528
  src: e.image,
529
529
  alt: e.imageAlt
530
- }, null, 8, Be)) : (b(), d("span", {
530
+ }, null, 8, Ve)) : (b(), d("span", {
531
531
  key: 1,
532
532
  innerHTML: e.name
533
- }, null, 8, Ve))]),
533
+ }, null, 8, He))]),
534
534
  _: 2
535
535
  }, 1032, ["to", "title"])]))), 128))])]))), 128)),
536
536
  C(t.$slots, "default"),
537
- e.download ? (b(), d("div", He, [f("p", Ue, w(T(n)(e.download.heading)), 1), f("button", {
537
+ e.download ? (b(), d("div", Ue, [f("p", We, w(T(n)(e.download.heading)), 1), f("button", {
538
538
  type: "button",
539
539
  class: "mwnf-standalone-related__print",
540
540
  onClick: a
541
541
  }, w(T(n)(e.download.print)), 1)])) : u("", !0)
542
542
  ]));
543
543
  }
544
- }, We = { class: "mwnf-standalone-item__top" }, Ge = { class: "mwnf-standalone-item__left" }, Ke = {
544
+ }, Ge = { class: "mwnf-standalone-item__top" }, Ke = { class: "mwnf-standalone-item__left" }, qe = {
545
545
  key: 0,
546
546
  class: "mwnf-standalone-item__back"
547
- }, qe = {
547
+ }, Je = {
548
548
  __name: "ItemSheet",
549
549
  props: {
550
550
  spec: {
@@ -565,7 +565,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
565
565
  }
566
566
  },
567
567
  setup(e) {
568
- let o = e, { t: _ } = R(), y = E(), x = c(() => ({
568
+ let o = e, { t: _ } = z(), y = E(), x = c(() => ({
569
569
  ...o.spec,
570
570
  media: () => []
571
571
  }));
@@ -578,12 +578,12 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
578
578
  text: t,
579
579
  language: n
580
580
  });
581
- let r = I(String(t?.name ?? e?.internal_name ?? ""));
582
- return M(e?.images, n).map((e) => ({
581
+ let r = L(String(t?.name ?? e?.internal_name ?? ""));
582
+ return N(e?.images, n).map((e) => ({
583
583
  url: e.url,
584
584
  alt: e.captions?.[n] ?? r,
585
585
  caption: e.captions?.[n] ?? "",
586
- ...j(e, n)
586
+ ...M(e, n)
587
587
  }));
588
588
  }
589
589
  let k = c(() => o.back.map((e) => ({
@@ -596,7 +596,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
596
596
  "sidebar",
597
597
  "aside",
598
598
  "source"
599
- ]), N = c(() => Object.keys(y).filter((e) => !A.has(e)));
599
+ ]), j = c(() => Object.keys(y).filter((e) => !A.has(e)));
600
600
  function P() {
601
601
  window.history.back();
602
602
  }
@@ -605,7 +605,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
605
605
  id: e.id,
606
606
  class: "mwnf-standalone-item"
607
607
  }, p({
608
- header: O(({ languages: e, language: n, select: r }) => [f("div", We, [h(t, {
608
+ header: O(({ languages: e, language: n, select: r }) => [f("div", Ge, [h(t, {
609
609
  languages: e,
610
610
  language: n,
611
611
  onSelect: r
@@ -614,7 +614,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
614
614
  "language",
615
615
  "onSelect"
616
616
  ])])]),
617
- "before-sheet": O((e) => [f("div", Ge, [k.value.length ? (b(), d("p", Ke, [(b(!0), d(s, null, S(k.value, (e) => (b(), d(s, { key: e.label }, [e.history ? (b(), d("button", {
617
+ "before-sheet": O((e) => [f("div", Ke, [k.value.length ? (b(), d("p", qe, [(b(!0), d(s, null, S(k.value, (e) => (b(), d(s, { key: e.label }, [e.history ? (b(), d("button", {
618
618
  key: 0,
619
619
  type: "button",
620
620
  class: "mwnf-standalone-item__back-link",
@@ -644,18 +644,18 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
644
644
  ])]),
645
645
  source: O((e) => [C(i.$slots, "source", v(g(e)))]),
646
646
  _: 2
647
- }, [S(N.value, (e) => ({
647
+ }, [S(j.value, (e) => ({
648
648
  name: e,
649
649
  fn: O((t) => [C(i.$slots, e, v(g(t)))])
650
650
  }))]), 1032, ["spec", "id"]));
651
651
  }
652
- }, Je = ["innerHTML"], $ = {
652
+ }, Ye = ["innerHTML"], Xe = {
653
653
  key: 0,
654
654
  class: "mwnf-standalone-page__link"
655
- }, Ye = {
655
+ }, Ze = {
656
656
  key: 1,
657
657
  class: "mwnf-standalone-page__print"
658
- }, Xe = {
658
+ }, Qe = {
659
659
  __name: "TextPage",
660
660
  props: {
661
661
  body: {
@@ -676,7 +676,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
676
676
  }
677
677
  },
678
678
  setup(e) {
679
- let t = e, { t: n } = R(), i = c(() => P(n(t.body)));
679
+ let t = e, { t: n } = z(), i = c(() => F(n(t.body)));
680
680
  function a() {
681
681
  window.print();
682
682
  }
@@ -684,25 +684,25 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
684
684
  f("div", {
685
685
  class: "mwnf-standalone-page__body",
686
686
  innerHTML: i.value
687
- }, null, 8, Je),
688
- e.link ? (b(), d("p", $, [h(r, {
687
+ }, null, 8, Ye),
688
+ e.link ? (b(), d("p", Xe, [h(r, {
689
689
  to: e.link.to,
690
690
  href: e.link.href
691
691
  }, {
692
692
  default: O(() => [f("strong", null, w(e.link.text ?? T(n)(e.link.label)), 1)]),
693
693
  _: 1
694
694
  }, 8, ["to", "href"])])) : u("", !0),
695
- e.print ? (b(), d("p", Ye, [f("button", {
695
+ e.print ? (b(), d("p", Ze, [f("button", {
696
696
  type: "button",
697
697
  class: "mwnf-standalone-page__print-button",
698
698
  onClick: a
699
699
  }, w(T(n)(e.print)), 1)])) : u("", !0)
700
700
  ], 2));
701
701
  }
702
- }, Ze = {
702
+ }, $e = {
703
703
  key: 0,
704
704
  class: "mwnf-standalone-subnav"
705
- }, Qe = { class: "mwnf-standalone-subnav__tabs" }, $e = {
705
+ }, et = { class: "mwnf-standalone-subnav__tabs" }, tt = {
706
706
  __name: "SubNav",
707
707
  props: {
708
708
  tabs: {
@@ -715,11 +715,11 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
715
715
  }
716
716
  },
717
717
  setup(e) {
718
- let t = e, { t: n } = R(), i = c(() => t.tabs.map((e) => ({
718
+ let t = e, { t: n } = z(), i = c(() => t.tabs.map((e) => ({
719
719
  ...e,
720
720
  label: n(e.label)
721
721
  })));
722
- return (t, a) => i.value.length || e.aside ? (b(), d("nav", Ze, [f("ul", Qe, [(b(!0), d(s, null, S(i.value, (e) => (b(), d("li", { key: e.label }, [h(r, {
722
+ return (t, a) => i.value.length || e.aside ? (b(), d("nav", $e, [f("ul", et, [(b(!0), d(s, null, S(i.value, (e) => (b(), d("li", { key: e.label }, [h(r, {
723
723
  to: e.to,
724
724
  href: e.href,
725
725
  class: _(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
@@ -742,10 +742,141 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
742
742
  _: 1
743
743
  }, 8, ["to", "href"])) : u("", !0)])) : u("", !0);
744
744
  }
745
- }, et = ["disabled", "aria-label"], tt = { class: "mwnf-standalone-slider__track" }, nt = ["src", "alt"], rt = {
745
+ }, nt = { class: "mwnf-standalone-results" }, rt = {
746
+ key: 0,
747
+ class: "mwnf-standalone-results__empty"
748
+ }, it = { class: "mwnf-standalone-results__tile" }, at = ["src"], ot = { class: "mwnf-standalone-results__panel" }, st = ["src"], ct = { class: "mwnf-standalone-results__name" }, lt = ["innerHTML"], ut = ["innerHTML"], dt = {
749
+ key: 0,
750
+ class: "mwnf-standalone-results__holder"
751
+ }, ft = ["innerHTML"], $ = ["innerHTML"], pt = {
752
+ __name: "ResultsGrid",
753
+ props: {
754
+ rows: {
755
+ type: Array,
756
+ default: () => []
757
+ },
758
+ seeLabel: {
759
+ type: String,
760
+ required: !0
761
+ },
762
+ empty: {
763
+ type: String,
764
+ default: ""
765
+ },
766
+ noImage: {
767
+ type: String,
768
+ default: ""
769
+ }
770
+ },
771
+ setup(e) {
772
+ return (t, n) => (b(), d("div", nt, [e.rows.length ? u("", !0) : (b(), d("p", rt, w(e.empty), 1)), (b(!0), d(s, null, S(e.rows, (t) => (b(), d("div", {
773
+ key: t.id,
774
+ class: "mwnf-standalone-results__cell"
775
+ }, [f("div", it, [h(r, {
776
+ class: "mwnf-standalone-results__frame",
777
+ to: t.to,
778
+ href: t.href
779
+ }, {
780
+ default: O(() => [f("img", {
781
+ src: t.image || e.noImage,
782
+ alt: ""
783
+ }, null, 8, at)]),
784
+ _: 2
785
+ }, 1032, ["to", "href"]), f("div", ot, [
786
+ h(r, {
787
+ class: "mwnf-standalone-results__panel-frame",
788
+ to: t.to,
789
+ href: t.href
790
+ }, {
791
+ default: O(() => [f("img", {
792
+ src: t.image || e.noImage,
793
+ alt: ""
794
+ }, null, 8, st)]),
795
+ _: 2
796
+ }, 1032, ["to", "href"]),
797
+ f("p", ct, [f("strong", null, [h(r, {
798
+ to: t.to,
799
+ href: t.href
800
+ }, {
801
+ default: O(() => [f("span", { innerHTML: t.name }, null, 8, lt)]),
802
+ _: 2
803
+ }, 1032, ["to", "href"])])]),
804
+ (b(!0), d(s, null, S(t.lines ?? [], (e, t) => (b(), d("p", {
805
+ key: t,
806
+ innerHTML: e
807
+ }, null, 8, ut))), 128)),
808
+ t.holder ? (b(), d("p", dt, [f("strong", { innerHTML: t.holder }, null, 8, ft)])) : u("", !0),
809
+ t.location ? (b(), d("p", {
810
+ key: 1,
811
+ innerHTML: t.location
812
+ }, null, 8, $)) : u("", !0),
813
+ f("p", null, [h(r, {
814
+ class: "mwnf-standalone-results__see",
815
+ to: t.to,
816
+ href: t.href
817
+ }, {
818
+ default: O(() => [m(w(e.seeLabel), 1)]),
819
+ _: 1
820
+ }, 8, ["to", "href"])])
821
+ ])])]))), 128))]));
822
+ }
823
+ }, mt = {
824
+ key: 0,
825
+ class: "mwnf-standalone-pages"
826
+ }, ht = { class: "mwnf-standalone-pages__previous" }, gt = ["aria-current", "onClick"], _t = { class: "mwnf-standalone-pages__next" }, vt = {
827
+ __name: "Pagination",
828
+ props: {
829
+ pageInfo: {
830
+ type: Object,
831
+ required: !0
832
+ },
833
+ previousLabel: {
834
+ type: String,
835
+ required: !0
836
+ },
837
+ nextLabel: {
838
+ type: String,
839
+ required: !0
840
+ },
841
+ block: {
842
+ type: Number,
843
+ default: 20
844
+ }
845
+ },
846
+ emits: ["navigate"],
847
+ setup(e, { emit: t }) {
848
+ let n = e, r = t, i = c(() => n.pageInfo?.currentPage ?? 1), a = c(() => n.pageInfo?.lastPage ?? 1), o = c(() => {
849
+ let e = Math.max(1, n.block), t = Math.floor((i.value - 1) / e) * e + 1, r = [];
850
+ for (let n = t; n <= Math.min(a.value, t + e - 1); n++) r.push(n);
851
+ return r;
852
+ });
853
+ function l(e) {
854
+ e >= 1 && e <= a.value && e !== i.value && r("navigate", e);
855
+ }
856
+ return (t, n) => a.value > 1 ? (b(), d("nav", mt, [
857
+ f("span", ht, [i.value > 1 ? (b(), d("a", {
858
+ key: 0,
859
+ href: "#",
860
+ onClick: n[0] ||= k((e) => l(i.value - 1), ["prevent"])
861
+ }, w(e.previousLabel), 1)) : (b(), d(s, { key: 1 }, [m(w(e.previousLabel), 1)], 64))]),
862
+ (b(!0), d(s, null, S(o.value, (e) => (b(), d("a", {
863
+ key: e,
864
+ href: "#",
865
+ class: _(["mwnf-standalone-pages__number", { "mwnf-standalone-pages__number--active": e === i.value }]),
866
+ "aria-current": e === i.value ? "page" : void 0,
867
+ onClick: k((t) => l(e), ["prevent"])
868
+ }, w(e), 11, gt))), 128)),
869
+ f("span", _t, [i.value < a.value ? (b(), d("a", {
870
+ key: 0,
871
+ href: "#",
872
+ onClick: n[1] ||= k((e) => l(i.value + 1), ["prevent"])
873
+ }, w(e.nextLabel), 1)) : (b(), d(s, { key: 1 }, [m(w(e.nextLabel), 1)], 64))])
874
+ ])) : u("", !0);
875
+ }
876
+ }, yt = ["disabled", "aria-label"], bt = { class: "mwnf-standalone-slider__track" }, xt = ["src", "alt"], St = {
746
877
  key: 0,
747
878
  class: "mwnf-standalone-slider__label"
748
- }, it = ["disabled", "aria-label"], at = {
879
+ }, Ct = ["disabled", "aria-label"], wt = {
749
880
  __name: "Slider",
750
881
  props: {
751
882
  slides: {
@@ -766,7 +897,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
766
897
  }
767
898
  },
768
899
  setup(e) {
769
- let t = e, { t: n } = R(), i = H(), a = x(0), o = c(() => Math.max(0, t.slides.length - t.visible)), l = c(() => t.slides.slice(a.value, a.value + t.visible).map((e) => ({
900
+ let t = e, { t: n } = z(), i = U(), a = x(0), o = c(() => Math.max(0, t.slides.length - t.visible)), l = c(() => t.slides.slice(a.value, a.value + t.visible).map((e) => ({
770
901
  ...e,
771
902
  image: i(e.image) ?? "",
772
903
  label: e.label ? n(e.label) : ""
@@ -782,8 +913,8 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
782
913
  disabled: a.value === 0,
783
914
  "aria-label": T(n)(e.previousLabel),
784
915
  onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
785
- }, "‹", 8, et),
786
- f("ul", tt, [(b(!0), d(s, null, S(l.value, (e) => (b(), d("li", {
916
+ }, "‹", 8, yt),
917
+ f("ul", bt, [(b(!0), d(s, null, S(l.value, (e) => (b(), d("li", {
787
918
  key: e.image,
788
919
  class: "mwnf-standalone-slider__slide"
789
920
  }, [h(r, {
@@ -793,7 +924,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
793
924
  default: O(() => [f("img", {
794
925
  src: e.image,
795
926
  alt: e.label
796
- }, null, 8, nt), e.label ? (b(), d("span", rt, w(e.label), 1)) : u("", !0)]),
927
+ }, null, 8, xt), e.label ? (b(), d("span", St, w(e.label), 1)) : u("", !0)]),
797
928
  _: 2
798
929
  }, 1032, ["to", "href"])]))), 128))]),
799
930
  f("button", {
@@ -802,9 +933,9 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
802
933
  disabled: a.value >= o.value,
803
934
  "aria-label": T(n)(e.nextLabel),
804
935
  onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
805
- }, "›", 8, it)
936
+ }, "›", 8, Ct)
806
937
  ], 4)) : u("", !0);
807
938
  }
808
939
  };
809
940
  //#endregion
810
- export { Q as RelatedContent, V as StandaloneBanner, Fe as StandaloneHome, qe as StandaloneItemSheet, ye as StandaloneShell, at as StandaloneSlider, Y as StandaloneSponsors, $e as StandaloneSubNav, Xe as StandaloneTextPage, Z as StandaloneTileGrid, X as TodayHighlight, U as byLanguage, W as dayOfYear, K as legacyHomeItemKey, G as pickForDay };
941
+ export { Q as RelatedContent, H as StandaloneBanner, Ie as StandaloneHome, Je as StandaloneItemSheet, vt as StandalonePagination, pt as StandaloneResultsGrid, be as StandaloneShell, wt as StandaloneSlider, Y as StandaloneSponsors, tt as StandaloneSubNav, Qe as StandaloneTextPage, Z as StandaloneTileGrid, X as TodayHighlight, W as byLanguage, G as dayOfYear, q as legacyHomeItemKey, K as pickForDay };