@museumwnf/viewer-layout 3.8.0 → 3.9.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
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
- 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-DovgfTMz.js";
4
+ import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-2ctLMfvw.js";
5
+ import { t as c } from "./RecordView-CdKx9tFy.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
@@ -255,9 +255,14 @@ var k = {
255
255
  ])) : f("", !0),
256
256
  g(i, {
257
257
  media: e.media,
258
+ language: n.language,
258
259
  descriptions: !1,
259
260
  dir: n.dir
260
- }, null, 8, ["media", "dir"]),
261
+ }, null, 8, [
262
+ "media",
263
+ "language",
264
+ "dir"
265
+ ]),
261
266
  e.onDisplayIn?.groups.length ? (b(), p("div", U, [m("p", de, C(w(K)("record.related.onDisplayIn")), 1), g(s, {
262
267
  heading: "",
263
268
  groups: e.onDisplayIn.groups,
@@ -329,9 +329,7 @@ var k = ["href"], A = {
329
329
  setup(e) {
330
330
  let c = e, { t: l } = T(), u = r(() => {
331
331
  let e = c.media.filter((e) => e?.url);
332
- if (!c.language) return e;
333
- let t = e.filter((e) => e.language === c.language);
334
- return t.length ? t : e;
332
+ return c.language ? e.filter((e) => !e.language || e.language === c.language) : e;
335
333
  });
336
334
  return (r, c) => u.value.length ? (f(), i(t, {
337
335
  key: 0,
@@ -2,8 +2,14 @@ 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 a
2
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
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
4
  import { useRoute as ye } from "vue-router";
5
+ //#region src/views/pictureLimit.js
6
+ function E(e, t, n) {
7
+ let r = typeof t == "function" ? t(n) : t;
8
+ return Number.isInteger(r) && r > 0 ? e.slice(0, r) : e;
9
+ }
10
+ //#endregion
5
11
  //#region src/views/RecordView.vue
6
- var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class: "mwnf-record__main" }, Se = {
12
+ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, Se = { class: "mwnf-record__main" }, Ce = {
7
13
  key: 1,
8
14
  class: "mwnf-record__status"
9
15
  }, D = {
@@ -29,11 +35,11 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
29
35
  }
30
36
  },
31
37
  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, {
38
+ let A = k, { t: j, locale: we } = he(), M = pe(), Te = ge(), Ee = b(), De = ye(), N = A.spec.entity ?? A.entity, P = a(() => A.spec), Oe = le(N), ke = se(N), F = a(() => ke.value.get(A.id) ?? null), Ae = a(() => Oe.value !== null), { language: I, languages: je, dir: L, select: R, text: z, ready: B, terms: Me, glossary: V, attribution: H } = _e(F, {
33
39
  entity: N,
34
40
  translations: A.spec.translations ?? [],
35
41
  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(() => ({
42
+ }), U = a(() => ue(je.value)), { active: W, onClick: G, close: Ne } = me(Me), Pe = a(() => W.value ? S(W.value.definition, { breaks: !0 }) : ""), K = (e, t) => M.tr(e, t, I.value, "en"), Fe = (e) => M.translations(e, I.value), q = a(() => ({
37
43
  record: F.value,
38
44
  text: z.value,
39
45
  language: I.value,
@@ -45,7 +51,7 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
45
51
  attribution: H.value,
46
52
  t: j,
47
53
  tr: K,
48
- translations: Pe
54
+ translations: Fe
49
55
  }));
50
56
  function J(e) {
51
57
  return ((typeof e == "function" ? e(q.value) : e) ?? []).map((e) => ({
@@ -53,22 +59,22 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
53
59
  label: e.label ? j(e.label) : ""
54
60
  }));
55
61
  }
56
- let Fe = a(() => F.value ? T(J(P.value.fields), q.value) : []), Ie = a(() => F.value ? T(J(P.value.sections).map((e) => ({
62
+ let Ie = a(() => F.value ? T(J(P.value.fields), q.value) : []), Le = a(() => F.value ? T(J(P.value.sections).map((e) => ({
57
63
  render: "block",
58
64
  ...e
59
- })), q.value) : []), Y = a(() => P.value.shortDescription === !1 ? "" : P.value.shortDescription ?? "short_description"), Le = a(() => {
65
+ })), q.value) : []), Y = a(() => P.value.shortDescription === !1 ? "" : P.value.shortDescription ?? "short_description"), Re = a(() => {
60
66
  let e = Y.value ? z.value[Y.value] : "";
61
67
  return e ? { html: S(String(e), {
62
68
  breaks: !0,
63
69
  glossary: V.value
64
70
  }) } : null;
65
- }), Re = a(() => {
71
+ }), ze = a(() => {
66
72
  if (!F.value) return "";
67
73
  if (P.value.title) return P.value.title(q.value);
68
74
  let e = z.value.name ?? F.value.internal_name ?? F.value.id;
69
75
  return C(String(e), { glossary: V.value });
70
- }), X = a(() => {
71
- if (!F.value) return [];
76
+ }), X = a(() => F.value ? E(Be(), P.value.pictureLimit, q.value) : []);
77
+ function Be() {
72
78
  if (P.value.media) return P.value.media(F.value, q.value);
73
79
  let e = w(String(z.value.name ?? F.value.internal_name ?? ""));
74
80
  return (F.value.images ?? []).map((t) => ({
@@ -77,7 +83,8 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
77
83
  caption: t.captions?.[I.value] ?? "",
78
84
  ...de(t, I.value)
79
85
  }));
80
- }), ze = [
86
+ }
87
+ let Ve = [
81
88
  {
82
89
  field: "author",
83
90
  label: "sheet.field.preparedBy"
@@ -94,13 +101,13 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
94
101
  field: "translation_copy_editor",
95
102
  label: "sheet.field.translationCopyeditedBy"
96
103
  }
97
- ], Be = a(() => (P.value.credits ?? ze).map(({ field: e, label: t }) => ({
104
+ ], He = a(() => (P.value.credits ?? Ve).map(({ field: e, label: t }) => ({
98
105
  label: j(t),
99
106
  value: z.value[e] ?? H.value[e] ?? ""
100
- })).filter((e) => e.value)), Ve = a(() => String(F.value?.[P.value.workingNumber ?? "mwnf_reference"] ?? "")), He = a(() => {
107
+ })).filter((e) => e.value)), Ue = a(() => String(F.value?.[P.value.workingNumber ?? "mwnf_reference"] ?? "")), We = a(() => {
101
108
  let e = P.value.citation;
102
109
  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;
110
+ let t = typeof e?.project == "function" ? null : e?.project ?? F.value.project_id, n = typeof e?.project == "function" ? e.project(F.value, q.value) : Te.label(t), r = e?.permalink === !1 ? void 0 : typeof e?.permalink == "string" ? e.permalink : fe(De) ?? void 0;
104
111
  return ce({
105
112
  author: z.value.author ?? H.value.author,
106
113
  name: z.value.name ?? F.value.internal_name ?? "",
@@ -113,10 +120,10 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
113
120
  language: I
114
121
  }), Q = a(() => P.value.related === !1 ? null : P.value.related ?? {}), $ = a(() => {
115
122
  if (!Q.value) return [];
116
- let e = Q.value.record ?? Ue;
123
+ let e = Q.value.record ?? Ge;
117
124
  return Z.value.inPackage.map((t) => e(t, q.value));
118
125
  });
119
- function Ue({ record: e, justification: t }) {
126
+ function Ge({ record: e, justification: t }) {
120
127
  let n = K(N, e.id).name ?? e.internal_name ?? e.id;
121
128
  return {
122
129
  id: e.id,
@@ -131,7 +138,7 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
131
138
  }
132
139
  };
133
140
  }
134
- let We = /* @__PURE__ */ new Set([
141
+ let Ke = /* @__PURE__ */ new Set([
135
142
  "header",
136
143
  "before-sheet",
137
144
  "after-sheet",
@@ -140,8 +147,8 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
140
147
  "related",
141
148
  "after",
142
149
  "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", {
150
+ ]), qe = a(() => Object.keys(Ee).filter((e) => !Ke.has(e)));
151
+ return (a, b) => Ae.value && !F.value ? (h(), o(y(oe), { key: 0 })) : F.value ? (h(), c("article", {
145
152
  key: 1,
146
153
  class: ae(["mwnf-record", { "mwnf-record--spaced": P.value.spaced }]),
147
154
  onClick: b[0] ||= (...e) => y(G) && y(G)(...e)
@@ -168,24 +175,24 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
168
175
  l("h1", {
169
176
  class: "mwnf-record__title",
170
177
  dir: y(L) || void 0,
171
- innerHTML: Re.value
178
+ innerHTML: ze.value
172
179
  }, null, 8, be)
173
180
  ]),
174
- l("div", xe, [l("div", E, [
181
+ l("div", xe, [l("div", Se, [
175
182
  X.value.length ? (h(), o(ee, {
176
183
  key: 0,
177
184
  images: X.value,
178
185
  variant: P.value.mediaVariant ?? ""
179
186
  }, null, 8, ["images", "variant"])) : s("", !0),
180
- y(B) ? s("", !0) : (h(), c("p", Se, v(y(j)("core.status.loading")), 1)),
187
+ y(B) ? s("", !0) : (h(), c("p", Ce, v(y(j)("core.status.loading")), 1)),
181
188
  _(a.$slots, "before-sheet", m(p(q.value))),
182
189
  f(re, {
183
- rows: Fe.value,
190
+ rows: Ie.value,
184
191
  layout: P.value.layout ?? "table",
185
192
  dir: y(L),
186
- "short-description": Le.value,
193
+ "short-description": Re.value,
187
194
  "short-description-after": P.value.shortDescriptionAfter ?? "description"
188
- }, u({ _: 2 }, [g(Ge.value, (e) => ({
195
+ }, u({ _: 2 }, [g(qe.value, (e) => ({
189
196
  name: e,
190
197
  fn: x((t) => [_(a.$slots, e, m(p({
191
198
  ...t,
@@ -198,7 +205,7 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
198
205
  "short-description",
199
206
  "short-description-after"
200
207
  ]),
201
- (h(!0), c(i, null, g(Ie.value, (e) => (h(), o(te, {
208
+ (h(!0), c(i, null, g(Le.value, (e) => (h(), o(te, {
202
209
  key: e.key,
203
210
  heading: e.label,
204
211
  html: e.html,
@@ -210,10 +217,10 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
210
217
  ]))), 128)),
211
218
  _(a.$slots, "after-sheet", m(p(q.value))),
212
219
  f(e, {
213
- credits: Be.value,
214
- "working-number": Ve.value,
220
+ credits: He.value,
221
+ "working-number": Ue.value,
215
222
  "working-number-label": y(j)("sheet.field.workingNumber"),
216
- citation: He.value,
223
+ citation: We.value,
217
224
  "citation-heading": P.value.citation?.heading ? y(j)(P.value.citation.heading) : ""
218
225
  }, null, 8, [
219
226
  "credits",
@@ -247,9 +254,9 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
247
254
  _(a.$slots, "after", m(p(q.value))),
248
255
  f(ie, {
249
256
  term: y(W),
250
- html: Ne.value,
257
+ html: Pe.value,
251
258
  dir: y(L),
252
- onClose: y(Me)
259
+ onClose: y(Ne)
253
260
  }, null, 8, [
254
261
  "term",
255
262
  "html",
@@ -260,4 +267,4 @@ var be = ["dir", "innerHTML"], xe = { class: "mwnf-record__body" }, E = { class:
260
267
  }
261
268
  };
262
269
  //#endregion
263
- export { k as t };
270
+ export { E as n, k as t };
@@ -27,6 +27,10 @@ var g = ["innerHTML"], _ = ["innerHTML"], v = ["innerHTML"], y = {
27
27
  dir: {
28
28
  type: String,
29
29
  default: ""
30
+ },
31
+ pictureLimit: {
32
+ type: Number,
33
+ default: 0
30
34
  }
31
35
  },
32
36
  setup(y) {
@@ -36,9 +40,9 @@ var g = ["innerHTML"], _ = ["innerHTML"], v = ["innerHTML"], y = {
36
40
  id: e.id,
37
41
  name: h(t.name ?? e.internal_name ?? e.id),
38
42
  meta: [t.location, t.dates].filter(Boolean),
39
- artist: h(t.artist || (e.artist_names ?? []).join(", ")),
43
+ artist: h(t.artist ?? ""),
40
44
  description: m(t.description, { glossary: b.glossary }),
41
- images: (e.images ?? []).map((e) => ({
45
+ images: (e.images ?? []).slice(0, b.pictureLimit > 0 ? b.pictureLimit : void 0).map((e) => ({
42
46
  url: e.url,
43
47
  alt: e.captions?.[b.language] ?? ""
44
48
  }))
package/dist/content.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./FeaturedRecord-DJfyvfqt.js";
2
2
  import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./GlossaryPopover-DcptyNWI.js";
3
3
  import { a as d, c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./TimelineEventList-gsoc-SBx.js";
4
- import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-BfJoPonn.js";
5
- import { t as E } from "./content-C6oMa4eE.js";
4
+ import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-2ctLMfvw.js";
5
+ import { t as E } from "./content-Cu_44di8.js";
6
6
  export { w as BackLink, b as DynastyList, y as DynastyPopout, h as FacetSelect, e as FeaturedRecord, d as FilterPanel, l as GlossaryPopover, S as GlossaryTool, a as MediaGallery, T as OnDisplayIn, _ as Pagination, g as PartnerMap, m as PartnerPanel, t as RecordCredits, i as RecordGrid, n as RecordLanguages, u as RecordList, c as RecordSheet, x as RelatedMedia, s as RelatedRecords, p as ResultsSummary, f as SectionCards, o as SheetSection, r as SourceCredit, E as SpecialFeatures, v as TimelineEventList, C as TimelineLookup };
package/dist/dxa.js CHANGED
@@ -2,13 +2,13 @@ import { a as e, i as t, n, r } from "./Theme-tF4wOaNa.js";
2
2
  import { c as i, i as a, n as o, r as s, t as c } from "./chrome-i1DOEyLS.js";
3
3
  import { c as l, d as u } from "./GlossaryPopover-DcptyNWI.js";
4
4
  import { a as d, c as f, n as p, o as m, s as h } from "./TimelineEventList-gsoc-SBx.js";
5
- import { s as g } from "./OnDisplayIn-BfJoPonn.js";
5
+ import { s as g } from "./OnDisplayIn-2ctLMfvw.js";
6
6
  import { a as ee, i as _, n as v, r as y, s as b, t as x } from "./TimelineResultsView-C2-TnM71.js";
7
- import { t as te } from "./RecordView-DovgfTMz.js";
7
+ import { t as te } from "./RecordView-CdKx9tFy.js";
8
8
  import { t as ne } from "./SiteShell-CXMfLqzq.js";
9
9
  import { A as re, C as ie, D as ae, E as oe, M as se, N as ce, O as le, S as ue, T as de, _ as fe, a as pe, b as S, c as me, d as he, f as ge, g as C, h as _e, i as ve, j as ye, k as be, l as xe, m as Se, n as Ce, o as we, p as Te, r as Ee, s as De, t as Oe, u as w, v as ke, w as Ae, x as je, y as Me } from "./data-CCcDVsTG.js";
10
10
  import { A as Ne, C as Pe, D as Fe, E as Ie, F as Le, I as Re, L as ze, M as Be, N as Ve, O as He, P as Ue, R as We, S as Ge, T, _ as Ke, a as qe, b as Je, c as Ye, d as Xe, f as E, g as Ze, h as Qe, i as $e, j as et, k as tt, l as nt, m as rt, n as it, o as D, p as at, r as ot, s as st, t as ct, u as lt, v as O, w as k, x as A, y as ut } from "./data-CGFEbGab.js";
11
- import { t as dt } from "./ItemDetailView-CzSe_jZn.js";
11
+ import { t as dt } from "./ItemDetailView-Dko_grJr.js";
12
12
  import { n as ft, r as pt, t as mt } from "./themeSpecs-C2Y2abxd.js";
13
13
  import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as ht, createTextVNode as L, createVNode as R, normalizeClass as gt, normalizeStyle as _t, onBeforeUnmount as vt, onMounted as yt, openBlock as z, ref as B, renderList as V, renderSlot as bt, resolveDynamicComponent as xt, toDisplayString as H, unref as U, vModelText as St, vShow as Ct, withCtx as W, withDirectives as G, withModifiers as wt } from "vue";
14
14
  import { I18nText as K, NotFoundView as Tt, languageLabels as Et, loadEntities as q, mwnfLinks as J, offeredLanguages as Dt, renderInline as Ot, sectionMeta as kt, useDataPackage as At, useFacets as jt, useI18n as Y, useKeywordIndex as Mt, useSection as Nt, useSiteConfig as X, yearBuckets as Z } from "@museumwnf/viewer-core";
@@ -1695,7 +1695,8 @@ var nr = {
1695
1695
  setup(e) {
1696
1696
  let t = e;
1697
1697
  function n(e) {
1698
- return String(e ?? "").replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
1698
+ let t = String(e ?? "").replace(/<[^>]*>/g, " ");
1699
+ return (typeof DOMParser > "u" ? t : new DOMParser().parseFromString(t, "text/html").documentElement.textContent ?? "").replace(/\s+/g, " ").trim();
1699
1700
  }
1700
1701
  function r(e, t) {
1701
1702
  if (!e || e.length <= t) return e;
@@ -1839,7 +1840,7 @@ var nr = {
1839
1840
  }, Fr = /* @__PURE__ */ e({ default: () => Ur }), Ir = { class: "mwnf-dxa-home" }, Lr = {
1840
1841
  key: 0,
1841
1842
  class: "mwnf-dxa-home-logos"
1842
- }, Rr = { class: "mwnf-dxa-home-logos__label" }, zr = { class: "mwnf-dxa-home-logos__list" }, Br = ["src", "alt"], Vr = 8, Hr = 4, Ur = {
1843
+ }, Rr = { class: "mwnf-dxa-home-logos__label" }, zr = { class: "mwnf-dxa-home-logos__list" }, Br = ["src", "alt"], Vr = 3, Hr = 4, Ur = {
1843
1844
  __name: "Home",
1844
1845
  setup(e) {
1845
1846
  let { t, locale: n } = Y(), r = X(), i = M(() => r.links ?? {}), a = M(() => xe(Vr)), s = B([]);
package/dist/index.js CHANGED
@@ -2,6 +2,6 @@ import { a as e, c as t, d as n, f as r, l as i, m as a, n as o, o as s, p as c,
2
2
  import { t as p } from "./FeaturedRecord-DJfyvfqt.js";
3
3
  import { a as m, c as h, i as g, l as _, n as v, o as y, r as b, s as x, t as S, u as C } from "./GlossaryPopover-DcptyNWI.js";
4
4
  import { a as w, c as T, i as E, n as D, o as O, r as k, s as A, t as j } from "./TimelineEventList-gsoc-SBx.js";
5
- import { a as M, i as N, n as P, o as F, r as I, s as L, t as R } from "./OnDisplayIn-BfJoPonn.js";
6
- import { t as z } from "./content-C6oMa4eE.js";
5
+ import { a as M, i as N, n as P, o as F, r as I, s as L, t as R } from "./OnDisplayIn-2ctLMfvw.js";
6
+ import { t as z } from "./content-Cu_44di8.js";
7
7
  export { c as AppBanner, n as AppContent, s as AppFooter, a as AppHeader, f as AppHyperlinks, r as AppNavigation, i as AppSponsors, L as BackLink, N as DynastyList, M as DynastyPopout, O as FacetSelect, p as FeaturedRecord, w as FilterPanel, S as GlossaryPopover, F as GlossaryTool, v as MediaGallery, R as OnDisplayIn, e as PageShell, A as Pagination, k as PartnerMap, D as PartnerPanel, m as RecordCredits, _ as RecordGrid, h as RecordLanguages, C as RecordList, x as RecordSheet, P as RelatedMedia, b as RelatedRecords, E as ResultsSummary, T as SectionCards, y as SheetSection, u as SocialLinks, g as SourceCredit, z as SpecialFeatures, j as TimelineEventList, I as TimelineLookup, d as chromeAsset, o as chromePicture, l as chromeSource, t as mwnfSocialLinks };
@@ -1,14 +1,14 @@
1
1
  import { r as e } from "./chrome-i1DOEyLS.js";
2
2
  import { c as t, d as n, n as r } from "./GlossaryPopover-DcptyNWI.js";
3
- import { t as i } from "./RecordView-DovgfTMz.js";
4
- import { t as a } from "./SiteShell-CXMfLqzq.js";
5
- import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as f, createTextVNode as p, createVNode as m, guardReactiveProps as h, normalizeClass as g, normalizeProps as _, normalizeStyle as v, openBlock as y, ref as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, useSlots as T, watch as E, withCtx as D } from "vue";
6
- import { byId as O, loadEntities as k, pictureCredits as A, removeEndingPoint as j, renderBlock as M, renderInline as N, renderPlain as P, useDataPackage as F, useI18n as I, useSection as ee, useSiteConfig as L } from "@museumwnf/viewer-core";
3
+ import { n as i, t as a } from "./RecordView-CdKx9tFy.js";
4
+ import { t as o } from "./SiteShell-CXMfLqzq.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, removeEndingPoint as M, renderBlock as N, renderInline as P, renderPlain as F, useDataPackage as I, useI18n as L, useSection as ee, useSiteConfig as R } from "@museumwnf/viewer-core";
7
7
  //#region src/standalone/Banner.vue
8
- var R = {
8
+ var z = {
9
9
  key: 0,
10
10
  class: "mwnf-standalone-banner__title"
11
- }, z = {
11
+ }, B = {
12
12
  __name: "Banner",
13
13
  props: {
14
14
  image: {
@@ -21,29 +21,29 @@ var R = {
21
21
  }
22
22
  },
23
23
  setup(e) {
24
- return (t, n) => (y(), u("div", {
24
+ return (t, n) => (b(), d("div", {
25
25
  class: "mwnf-standalone-banner",
26
- style: v(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
27
- }, [e.title ? (y(), u("h1", R, [d("span", null, C(e.title), 1)])) : l("", !0)], 4));
26
+ style: y(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
27
+ }, [e.title ? (b(), d("h1", z, [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 B() {
33
- let t = L();
32
+ function V() {
33
+ let t = R();
34
34
  return (n) => e(t.chrome, n);
35
35
  }
36
- function V(e, t) {
36
+ function H(e, t) {
37
37
  return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
38
38
  }
39
- function H(e = /* @__PURE__ */ new Date()) {
39
+ function U(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 U(e, t = /* @__PURE__ */ new Date()) {
44
- return e?.length ? e[H(t) % e.length] : null;
43
+ function W(e, t = /* @__PURE__ */ new Date()) {
44
+ return e?.length ? e[U(t) % e.length] : null;
45
45
  }
46
- function W(e) {
46
+ function G(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 W(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"], G = {
59
+ }, re = ["innerHTML"], ie = { key: 1 }, ae = ["innerHTML"], K = {
60
60
  key: 1,
61
61
  class: "mwnf-standalone-sponsors__title"
62
- }, K = {
62
+ }, q = {
63
63
  key: 2,
64
64
  class: "mwnf-standalone-sponsors__logos"
65
- }, q = {
65
+ }, J = {
66
66
  key: 0,
67
67
  class: "mwnf-standalone-sponsors__note"
68
- }, J = ["src", "alt"], oe = ["innerHTML"], se = ["href"], ce = ["src", "alt"], le = ["src", "alt"], ue = {
68
+ }, oe = ["src", "alt"], se = ["innerHTML"], ce = ["href"], le = ["src", "alt"], ue = ["src", "alt"], de = {
69
69
  key: 3,
70
70
  class: "mwnf-standalone-sponsors__links"
71
71
  }, Y = {
@@ -75,81 +75,81 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
75
75
  default: () => []
76
76
  } },
77
77
  setup(e) {
78
- let t = e, { t: r } = I(), i = B(), a = s(() => t.columns.map((e, t) => ({
78
+ let t = e, { t: r } = L(), i = V(), a = c(() => t.columns.map((e, t) => ({
79
79
  key: t,
80
80
  width: e.width ?? null,
81
- lead: e.lead ? N(r(e.lead)) : "",
82
- text: e.text ? N(r(e.text)) : "",
81
+ lead: e.lead ? P(r(e.lead)) : "",
82
+ text: e.text ? P(r(e.text)) : "",
83
83
  break: !!e.break,
84
84
  title: e.title ? r(e.title) : "",
85
85
  logos: (e.logos ?? []).map((e) => ({
86
86
  src: i(e.src) ?? "",
87
87
  alt: e.alt ? r(e.alt) : "",
88
88
  href: e.href ?? "",
89
- note: e.note ? M(r(e.note)) : ""
89
+ note: e.note ? N(r(e.note)) : ""
90
90
  })),
91
91
  links: (e.links ?? []).map((e) => ({
92
92
  ...e,
93
93
  label: r(e.label)
94
94
  }))
95
95
  })));
96
- return (e, t) => (y(), u("div", te, [(y(!0), u(o, null, x(a.value, (e) => (y(), u("div", {
96
+ return (e, t) => (b(), d("div", te, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("div", {
97
97
  key: e.key,
98
98
  class: "mwnf-standalone-sponsors__column",
99
- style: v(e.width ? { flexGrow: e.width } : void 0)
99
+ style: y(e.width ? { flexGrow: e.width } : void 0)
100
100
  }, [
101
- e.lead || e.text ? (y(), u("p", ne, [
102
- e.lead ? (y(), u("i", {
101
+ e.lead || e.text ? (b(), d("p", ne, [
102
+ e.lead ? (b(), d("i", {
103
103
  key: 0,
104
104
  innerHTML: e.lead
105
- }, null, 8, re)) : l("", !0),
106
- e.lead && e.break ? (y(), u("br", ie)) : e.lead && e.text ? (y(), u(o, { key: 2 }, [p(C(" "))], 64)) : l("", !0),
107
- e.text ? (y(), u("span", {
105
+ }, null, 8, re)) : u("", !0),
106
+ e.lead && e.break ? (b(), d("br", ie)) : e.lead && e.text ? (b(), d(s, { key: 2 }, [m(w(" "))], 64)) : u("", !0),
107
+ e.text ? (b(), d("span", {
108
108
  key: 3,
109
109
  innerHTML: e.text
110
- }, null, 8, ae)) : l("", !0)
111
- ])) : l("", !0),
112
- e.title ? (y(), u("p", G, C(e.title), 1)) : l("", !0),
113
- e.logos.length ? (y(), u("ul", K, [(y(!0), u(o, null, x(e.logos, (e) => (y(), u("li", { key: e.src }, [e.note ? (y(), u("details", q, [d("summary", null, [d("img", {
110
+ }, null, 8, ae)) : u("", !0)
111
+ ])) : u("", !0),
112
+ e.title ? (b(), d("p", K, w(e.title), 1)) : u("", !0),
113
+ e.logos.length ? (b(), d("ul", q, [(b(!0), d(s, null, S(e.logos, (e) => (b(), d("li", { key: e.src }, [e.note ? (b(), d("details", J, [f("summary", null, [f("img", {
114
114
  src: e.src,
115
115
  alt: e.alt
116
- }, null, 8, J)]), d("div", {
116
+ }, null, 8, oe)]), f("div", {
117
117
  class: "mwnf-standalone-sponsors__note-body",
118
118
  innerHTML: e.note
119
- }, null, 8, oe)])) : e.href ? (y(), u("a", {
119
+ }, null, 8, se)])) : e.href ? (b(), d("a", {
120
120
  key: 1,
121
121
  href: e.href,
122
122
  target: "_blank",
123
123
  rel: "noopener"
124
- }, [d("img", {
124
+ }, [f("img", {
125
125
  src: e.src,
126
126
  alt: e.alt
127
- }, null, 8, ce)], 8, se)) : (y(), u("img", {
127
+ }, null, 8, le)], 8, ce)) : (b(), d("img", {
128
128
  key: 2,
129
129
  src: e.src,
130
130
  alt: e.alt
131
- }, null, 8, le))]))), 128))])) : l("", !0),
132
- e.links.length ? (y(), u("ul", ue, [(y(!0), u(o, null, x(e.links, (e) => (y(), u("li", { key: e.label }, [m(n, {
131
+ }, null, 8, ue))]))), 128))])) : u("", !0),
132
+ e.links.length ? (b(), d("ul", de, [(b(!0), d(s, null, S(e.links, (e) => (b(), d("li", { key: e.label }, [h(n, {
133
133
  to: e.to,
134
134
  href: e.href,
135
135
  external: !!e.external
136
136
  }, {
137
- default: D(() => [p(C(e.label), 1)]),
137
+ default: O(() => [m(w(e.label), 1)]),
138
138
  _: 2
139
139
  }, 1032, [
140
140
  "to",
141
141
  "href",
142
142
  "external"
143
- ])]))), 128))])) : l("", !0)
143
+ ])]))), 128))])) : u("", !0)
144
144
  ], 4))), 128))]));
145
145
  }
146
- }, de = { class: "mwnf-banner mwnf-standalone-home-banner" }, fe = ["src"], pe = { class: "mwnf-standalone-home-banner__text" }, me = {
146
+ }, fe = { class: "mwnf-banner mwnf-standalone-home-banner" }, pe = ["src"], me = { class: "mwnf-standalone-home-banner__text" }, he = {
147
147
  key: 0,
148
148
  class: "mwnf-standalone-home-banner__title"
149
- }, he = {
149
+ }, ge = {
150
150
  key: 1,
151
151
  class: "mwnf-standalone-home-banner__line"
152
- }, ge = ["src"], _e = {
152
+ }, _e = ["src"], ve = {
153
153
  __name: "Shell",
154
154
  props: {
155
155
  language: {
@@ -163,100 +163,100 @@ 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: o, locale: p } = I(), h = L(), _ = ee(), v = s(() => h.standalone ?? {}), b = s(() => h.navigation ?? {}), x = s(() => _.value === "home"), T = s(() => v.value.areas?.[_.value] ?? null), E = (t) => e(h.chrome, V(t, p.value)), O = s(() => {
167
- let e = v.value.logo ?? {}, t = E(T.value?.logo ?? e.src);
166
+ let r = t, i = n, { t: a, locale: s } = L(), m = R(), 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, H(t, s.value)), D = c(() => {
167
+ let e = v.value.logo ?? {}, t = E(S.value?.logo ?? e.src);
168
168
  return t ? {
169
169
  logo: t,
170
170
  alt: e.alt ?? ""
171
171
  } : null;
172
- }), k = s(() => E(v.value.logo?.print)), A = s(() => (v.value.headerLinks ?? []).filter((e) => !e.on || e.on === "all" || e.on === (x.value ? "home" : "inner"))), j = s(() => {
172
+ }), k = c(() => E(v.value.logo?.print)), A = c(() => (v.value.headerLinks ?? []).filter((e) => !e.on || e.on === "all" || e.on === (x.value ? "home" : "inner"))), j = c(() => {
173
173
  let e = {
174
174
  ...v.value.banner ?? {},
175
- ...T.value?.banner ?? {}
175
+ ...S.value?.banner ?? {}
176
176
  };
177
177
  return E(x.value ? e.home : e.inner) ?? "";
178
- }), M = s(() => {
179
- let e = b.value.sectionTitles?.[_.value];
180
- return e ? o(e) : "";
181
- }), N = s(() => !x.value && !!(j.value || M.value)), P = s(() => {
178
+ }), M = c(() => {
179
+ let e = y.value.sectionTitles?.[g.value];
180
+ return e ? a(e) : "";
181
+ }), N = c(() => !x.value && !!(j.value || M.value)), P = c(() => {
182
182
  let { homeTitle: e, homeText: t } = v.value.banner ?? {};
183
183
  return x.value && (e || t) ? {
184
- title: e ? o(e) : "",
185
- text: t ? o(t) : ""
184
+ title: e ? a(e) : "",
185
+ text: t ? a(t) : ""
186
186
  } : null;
187
- }), F = s(() => {
187
+ }), F = c(() => {
188
188
  let e = v.value.sponsors;
189
189
  return e?.columns?.length && (e.on === "all" || x.value) ? e : null;
190
- }), R = s(() => ({
190
+ }), I = c(() => ({
191
191
  navigation: {
192
- ...b.value,
192
+ ...y.value,
193
193
  headerLinks: A.value,
194
194
  sectionTitles: {},
195
195
  ...v.value.languages === !1 ? { languages: [] } : {}
196
196
  },
197
197
  banner: null,
198
- ...O.value ? { brand: O.value } : {}
199
- })), B = (/* @__PURE__ */ new Date()).getFullYear(), H = s(() => v.value.copyright ? `${o(v.value.copyright)} ${B}` : ""), U = s(() => [
198
+ ...D.value ? { brand: D.value } : {}
199
+ })), z = (/* @__PURE__ */ new Date()).getFullYear(), V = c(() => v.value.copyright ? `${a(v.value.copyright)} ${z}` : ""), U = c(() => [
200
200
  "mwnf-standalone",
201
201
  x.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
202
- T.value?.class ?? ""
202
+ S.value?.class ?? ""
203
203
  ]);
204
- return (e, t) => (y(), c(a, {
205
- class: g(U.value),
206
- config: R.value,
204
+ return (e, t) => (b(), l(o, {
205
+ class: _(U.value),
206
+ config: I.value,
207
207
  languages: v.value.languages === !1 ? [] : r.languages,
208
208
  language: r.language,
209
209
  "language-placement": "header",
210
210
  "language-style": "select",
211
211
  "header-home": v.value.logo?.href ?? "",
212
- "header-title": x.value ? "" : v.value.heading ? w(o)(v.value.heading) : "",
213
- "header-subtitle": x.value ? "" : v.value.subheading ? w(o)(v.value.subheading) : "",
212
+ "header-title": x.value ? "" : v.value.heading ? T(a)(v.value.heading) : "",
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": H.value || void 0,
216
+ "footer-text": V.value || void 0,
217
217
  "onUpdate:language": t[0] ||= (e) => i("update:language", e)
218
- }, f({
219
- default: D(() => [S(e.$slots, "default")]),
218
+ }, p({
219
+ default: O(() => [C(e.$slots, "default")]),
220
220
  _: 2
221
221
  }, [
222
222
  N.value ? {
223
223
  name: "banner",
224
- fn: D(() => [m(z, {
224
+ fn: O(() => [h(B, {
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: D(() => [d("section", de, [j.value ? (y(), u("img", {
231
+ fn: O(() => [f("section", fe, [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, fe)) : l("", !0), d("div", pe, [P.value.title ? (y(), u("h2", me, [d("i", null, C(P.value.title), 1)])) : l("", !0), P.value.text ? (y(), u("p", he, [d("span", null, C(P.value.text), 1)])) : l("", !0)])])]),
236
+ }, null, 8, pe)) : u("", !0), f("div", me, [P.value.title ? (b(), d("h2", he, [f("i", null, w(P.value.title), 1)])) : u("", !0), P.value.text ? (b(), d("p", ge, [f("span", null, w(P.value.text), 1)])) : u("", !0)])])]),
237
237
  key: "1"
238
238
  } : void 0,
239
239
  k.value ? {
240
240
  name: "notice",
241
- fn: D(() => [d("img", {
241
+ fn: O(() => [f("img", {
242
242
  class: "mwnf-standalone__print-logo",
243
243
  src: k.value,
244
244
  alt: ""
245
- }, null, 8, ge)]),
245
+ }, null, 8, _e)]),
246
246
  key: "2"
247
247
  } : void 0,
248
248
  e.$slots.sponsors ? {
249
249
  name: "sponsors",
250
- fn: D(() => [S(e.$slots, "sponsors")]),
250
+ fn: O(() => [C(e.$slots, "sponsors")]),
251
251
  key: "3"
252
252
  } : F.value ? {
253
253
  name: "sponsors",
254
- fn: D(() => [m(Y, { columns: F.value.columns }, null, 8, ["columns"])]),
254
+ fn: O(() => [h(Y, { columns: F.value.columns }, null, 8, ["columns"])]),
255
255
  key: "4"
256
256
  } : void 0,
257
257
  e.$slots.footer ? {
258
258
  name: "footer",
259
- fn: D(() => [S(e.$slots, "footer")]),
259
+ fn: O(() => [C(e.$slots, "footer")]),
260
260
  key: "5"
261
261
  } : void 0
262
262
  ]), 1032, [
@@ -271,16 +271,16 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
271
271
  "footer-text"
272
272
  ]));
273
273
  }
274
- }, ve = {
274
+ }, ye = {
275
275
  key: 0,
276
276
  class: "mwnf-standalone-highlight"
277
- }, ye = ["src", "alt"], be = {
277
+ }, be = ["src", "alt"], xe = {
278
278
  key: 1,
279
279
  class: "mwnf-standalone-highlight__heading"
280
- }, xe = { class: "mwnf-standalone-highlight__lines" }, Se = ["innerHTML"], Ce = {
280
+ }, Se = { class: "mwnf-standalone-highlight__lines" }, Ce = ["innerHTML"], we = {
281
281
  key: 2,
282
282
  class: "mwnf-standalone-highlight__place"
283
- }, we = {
283
+ }, Te = {
284
284
  key: 3,
285
285
  class: "mwnf-standalone-highlight__action"
286
286
  }, X = {
@@ -320,48 +320,48 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
320
320
  }
321
321
  },
322
322
  setup(e) {
323
- let t = e, { t: r } = I(), i = (e) => j(Array.isArray(e) ? e.join("; ") : e), a = s(() => {
323
+ let t = e, { t: r } = L(), i = (e) => M(Array.isArray(e) ? e.join("; ") : e), a = c(() => {
324
324
  let e = t.text ?? {}, n = [], a = i(e.name ?? t.record?.internal_name ?? "");
325
- a && n.push(N(a));
325
+ a && n.push(P(a));
326
326
  let o = i(e.alternate_name);
327
- o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${N(o)}`);
327
+ o && n.push(`${t.alsoKnownAs ? `${r(t.alsoKnownAs)} ` : ""}${P(o)}`);
328
328
  let s = [i(e.dates), i(e.dynasty)].filter(Boolean).join(", ");
329
- s && n.push(N(s));
329
+ s && n.push(P(s));
330
330
  for (let t of ["materials", "holder"]) {
331
331
  let r = i(e[t]);
332
- r && n.push(N(r));
332
+ r && n.push(P(r));
333
333
  }
334
334
  return n;
335
- }), f = s(() => [i(t.text?.location), t.country].filter(Boolean).join(", ")), h = s(() => t.picture || (t.record?.images?.[0]?.url ?? "")), g = s(() => P(String(t.text?.name ?? t.record?.internal_name ?? "")));
336
- return (t, i) => e.record ? (y(), u("div", ve, [
337
- h.value ? (y(), c(n, {
335
+ }), o = c(() => [i(t.text?.location), t.country].filter(Boolean).join(", ")), p = c(() => t.picture || (t.record?.images?.[0]?.url ?? "")), g = c(() => F(String(t.text?.name ?? t.record?.internal_name ?? "")));
336
+ return (t, i) => e.record ? (b(), d("div", ye, [
337
+ p.value ? (b(), l(n, {
338
338
  key: 0,
339
339
  class: "mwnf-standalone-highlight__media",
340
340
  to: e.to
341
341
  }, {
342
- default: D(() => [d("img", {
342
+ default: O(() => [f("img", {
343
343
  class: "mwnf-standalone-highlight__image",
344
- src: h.value,
344
+ src: p.value,
345
345
  alt: g.value
346
- }, null, 8, ye)]),
346
+ }, null, 8, be)]),
347
347
  _: 1
348
- }, 8, ["to"])) : l("", !0),
349
- e.heading ? (y(), u("p", be, [d("strong", null, C(w(r)(e.heading)), 1)])) : l("", !0),
350
- d("p", xe, [(y(!0), u(o, null, x(a.value, (e, t) => (y(), u(o, { key: t }, [d("span", { innerHTML: e }, null, 8, Se), i[0] ||= d("br", null, null, -1)], 64))), 128))]),
351
- f.value ? (y(), u("p", Ce, C(w(P)(f.value)), 1)) : l("", !0),
352
- e.action ? (y(), u("p", we, [m(n, { to: e.to }, {
353
- default: D(() => [p(C(w(r)(e.action)), 1)]),
348
+ }, 8, ["to"])) : u("", !0),
349
+ e.heading ? (b(), d("p", xe, [f("strong", null, w(T(r)(e.heading)), 1)])) : u("", !0),
350
+ f("p", Se, [(b(!0), d(s, null, S(a.value, (e, t) => (b(), d(s, { key: t }, [f("span", { innerHTML: e }, null, 8, Ce), i[0] ||= f("br", null, null, -1)], 64))), 128))]),
351
+ o.value ? (b(), d("p", we, w(T(F)(o.value)), 1)) : u("", !0),
352
+ e.action ? (b(), d("p", Te, [h(n, { to: e.to }, {
353
+ default: O(() => [m(w(T(r)(e.action)), 1)]),
354
354
  _: 1
355
- }, 8, ["to"])])) : l("", !0)
356
- ])) : l("", !0);
355
+ }, 8, ["to"])])) : u("", !0)
356
+ ])) : u("", !0);
357
357
  }
358
- }, Te = {
358
+ }, Ee = {
359
359
  key: 0,
360
360
  class: "mwnf-standalone-tiles"
361
- }, Ee = {
361
+ }, De = {
362
362
  key: 0,
363
363
  class: "mwnf-standalone-tiles__caption"
364
- }, De = { class: "mwnf-standalone-tiles__grid" }, Oe = ["src", "alt"], ke = {
364
+ }, Oe = { class: "mwnf-standalone-tiles__grid" }, ke = ["src", "alt"], Ae = {
365
365
  key: 0,
366
366
  class: "mwnf-standalone-tiles__label"
367
367
  }, Z = {
@@ -377,94 +377,94 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
377
377
  }
378
378
  },
379
379
  setup(e) {
380
- let t = e, { t: r } = I(), i = B(), a = s(() => t.items.map((e) => ({
380
+ let t = e, { t: r } = L(), i = V(), a = c(() => t.items.map((e) => ({
381
381
  ...e,
382
382
  image: i(e.image) ?? "",
383
- label: e.text ? P(e.text) : e.label ? r(e.label) : ""
383
+ label: e.text ? F(e.text) : e.label ? r(e.label) : ""
384
384
  })));
385
- return (t, i) => a.value.length ? (y(), u("section", Te, [e.caption ? (y(), u("p", Ee, C(w(r)(e.caption)), 1)) : l("", !0), d("ul", De, [(y(!0), u(o, null, x(a.value, (e) => (y(), u("li", {
385
+ return (t, i) => a.value.length ? (b(), d("section", Ee, [e.caption ? (b(), d("p", De, w(T(r)(e.caption)), 1)) : u("", !0), f("ul", Oe, [(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
- }, [m(n, {
388
+ }, [h(n, {
389
389
  to: e.to,
390
390
  href: e.href,
391
391
  class: "mwnf-standalone-tiles__link"
392
392
  }, {
393
- default: D(() => [d("img", {
393
+ default: O(() => [f("img", {
394
394
  class: "mwnf-standalone-tiles__image",
395
395
  src: e.image,
396
396
  alt: e.label
397
- }, null, 8, Oe), e.label ? (y(), u("span", ke, C(e.label), 1)) : l("", !0)]),
397
+ }, null, 8, ke), e.label ? (b(), d("span", Ae, w(e.label), 1)) : u("", !0)]),
398
398
  _: 2
399
- }, 1032, ["to", "href"])]))), 128))])])) : l("", !0);
399
+ }, 1032, ["to", "href"])]))), 128))])])) : u("", !0);
400
400
  }
401
- }, Ae = { class: "mwnf-standalone-home" }, je = {
401
+ }, je = { class: "mwnf-standalone-home" }, Me = {
402
402
  key: 0,
403
403
  class: "mwnf-standalone-home__links"
404
- }, Me = { key: 1 }, Ne = {
404
+ }, Ne = { key: 1 }, Pe = {
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: r, locale: i } = I(), a = L(), d = s(() => t.home ?? a.standalone?.home ?? {}), f = s(() => (d.value.links ?? []).map((e) => ({
411
+ let t = e, { t: r, locale: i } = L(), a = R(), o = c(() => t.home ?? a.standalone?.home ?? {}), f = c(() => (o.value.links ?? []).map((e) => ({
412
412
  ...e,
413
413
  label: r(e.label),
414
414
  prefix: e.prefix ? r(e.prefix) : "",
415
415
  title: e.title ? r(e.title) : void 0
416
- }))), h = s(() => d.value.highlight ?? null), _ = F();
417
- h.value?.list?.length && (k(["items", "countries"]), E(i, (e) => {
418
- _.loadTranslations("items", e), _.loadTranslations("countries", e);
416
+ }))), p = c(() => o.value.highlight ?? null), g = I();
417
+ p.value?.list?.length && (A(["items", "countries"]), D(i, (e) => {
418
+ g.loadTranslations("items", e), g.loadTranslations("countries", e);
419
419
  }, { immediate: !0 }));
420
- let v = O("items", "backward_compatibility"), b = s(() => {
421
- let e = h.value?.list ?? [], t = e.indexOf(U(e));
420
+ let v = k("items", "backward_compatibility"), y = c(() => {
421
+ let e = p.value?.list ?? [], t = e.indexOf(W(e));
422
422
  for (let n = 0; t >= 0 && n < e.length; n++) {
423
- let r = v.value.get(W(e[(t + n) % e.length]));
423
+ let r = v.value.get(G(e[(t + n) % e.length]));
424
424
  if (r) return r;
425
425
  }
426
426
  return null;
427
- }), w = s(() => b.value ? _.tr("items", b.value.id, i.value, "en") : {}), T = s(() => {
428
- let e = b.value?.country_id;
429
- return e ? _.tr("countries", e, i.value, "en").name ?? "" : "";
430
- }), A = s(() => b.value ? {
431
- name: h.value.route ?? "item",
432
- params: { id: b.value.id }
433
- } : null), j = B(), M = s(() => {
434
- let e = h.value?.pictures ?? [];
435
- return e.length ? j(U(e)) ?? "" : "";
436
- }), N = s(() => {
437
- let e = d.value.tiles?.items;
427
+ }), x = c(() => y.value ? g.tr("items", y.value.id, i.value, "en") : {}), T = c(() => {
428
+ let e = y.value?.country_id;
429
+ return e ? g.tr("countries", e, i.value, "en").name ?? "" : "";
430
+ }), E = c(() => y.value ? {
431
+ name: p.value.route ?? "item",
432
+ params: { id: y.value.id }
433
+ } : null), j = V(), M = c(() => {
434
+ let e = p.value?.pictures ?? [];
435
+ return e.length ? j(W(e)) ?? "" : "";
436
+ }), N = c(() => {
437
+ let e = o.value.tiles?.items;
438
438
  return (typeof e == "function" ? e() : e) ?? [];
439
439
  });
440
- return (e, t) => (y(), u("div", Ae, [
441
- f.value.length ? (y(), u("ul", je, [(y(!0), u(o, null, x(f.value, (e) => (y(), u("li", {
440
+ return (e, t) => (b(), d("div", je, [
441
+ f.value.length ? (b(), d("ul", Me, [(b(!0), d(s, null, S(f.value, (e) => (b(), d("li", {
442
442
  key: e.label,
443
- class: g({ "mwnf-standalone-home__link--gap": e.gap })
444
- }, [m(n, {
443
+ class: _({ "mwnf-standalone-home__link--gap": e.gap })
444
+ }, [h(n, {
445
445
  to: e.to,
446
446
  href: e.href,
447
447
  external: !!e.external,
448
448
  title: e.title
449
449
  }, {
450
- default: D(() => [e.prefix ? (y(), u(o, { key: 0 }, [p(C(`${e.prefix} `), 1)], 64)) : l("", !0), e.italic ? (y(), u("i", Me, C(e.label), 1)) : (y(), u(o, { key: 2 }, [p(C(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", Ne, w(e.label), 1)) : (b(), d(s, { key: 2 }, [m(w(e.label), 1)], 64))]),
451
451
  _: 2
452
452
  }, 1032, [
453
453
  "to",
454
454
  "href",
455
455
  "external",
456
456
  "title"
457
- ])], 2))), 128))])) : l("", !0),
458
- h.value ? (y(), c(X, {
457
+ ])], 2))), 128))])) : u("", !0),
458
+ p.value ? (b(), l(X, {
459
459
  key: 1,
460
- record: b.value,
461
- text: w.value,
460
+ record: y.value,
461
+ text: x.value,
462
462
  country: T.value,
463
- to: A.value,
463
+ to: E.value,
464
464
  picture: M.value,
465
- heading: h.value.heading ?? "",
466
- "also-known-as": h.value.alsoKnownAs ?? "",
467
- action: h.value.action ?? ""
465
+ heading: p.value.heading ?? "",
466
+ "also-known-as": p.value.alsoKnownAs ?? "",
467
+ action: p.value.action ?? ""
468
468
  }, null, 8, [
469
469
  "record",
470
470
  "text",
@@ -474,19 +474,19 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
474
474
  "heading",
475
475
  "also-known-as",
476
476
  "action"
477
- ])) : l("", !0),
478
- d.value.tiles ? (y(), c(Z, {
477
+ ])) : u("", !0),
478
+ o.value.tiles ? (b(), l(Z, {
479
479
  key: 2,
480
- caption: d.value.tiles.caption ?? "",
480
+ caption: o.value.tiles.caption ?? "",
481
481
  items: N.value
482
- }, null, 8, ["caption", "items"])) : l("", !0),
483
- S(e.$slots, "default")
482
+ }, null, 8, ["caption", "items"])) : u("", !0),
483
+ C(e.$slots, "default")
484
484
  ]));
485
485
  }
486
- }, Pe = { class: "mwnf-standalone-related" }, Fe = { class: "mwnf-standalone-related__heading" }, Ie = { class: "mwnf-standalone-related__group-heading" }, Le = { class: "mwnf-standalone-related__thumbs" }, Re = ["src", "alt"], ze = ["innerHTML"], Be = {
486
+ }, Fe = { class: "mwnf-standalone-related" }, Ie = { class: "mwnf-standalone-related__heading" }, Le = { class: "mwnf-standalone-related__group-heading" }, Re = { class: "mwnf-standalone-related__thumbs" }, ze = ["src", "alt"], Be = ["innerHTML"], Ve = {
487
487
  key: 0,
488
488
  class: "mwnf-standalone-related__download"
489
- }, Ve = { class: "mwnf-standalone-related__download-heading" }, Q = {
489
+ }, He = { class: "mwnf-standalone-related__download-heading" }, Q = {
490
490
  __name: "RelatedContent",
491
491
  props: {
492
492
  heading: {
@@ -507,44 +507,44 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
507
507
  }
508
508
  },
509
509
  setup(e) {
510
- let t = e, { t: r } = I(), i = s(() => t.groups.map((e) => ({
510
+ let t = e, { t: r } = L(), i = c(() => t.groups.map((e) => ({
511
511
  heading: r(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, s) => (y(), u("aside", Pe, [
518
- d("p", Fe, [d("strong", null, C(w(r)(e.heading)), 1)]),
519
- (y(!0), u(o, null, x(i.value, (e) => (y(), u("div", {
517
+ return (t, o) => (b(), d("aside", Fe, [
518
+ f("p", Ie, [f("strong", null, w(T(r)(e.heading)), 1)]),
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
- }, [d("p", Ie, C(e.heading), 1), d("ul", Le, [(y(!0), u(o, null, x(e.rows, (e) => (y(), u("li", { key: e.id }, [m(n, {
522
+ }, [f("p", Le, w(e.heading), 1), f("ul", Re, [(b(!0), d(s, null, S(e.rows, (e) => (b(), d("li", { key: e.id }, [h(n, {
523
523
  to: e.to,
524
524
  title: e.imageAlt
525
525
  }, {
526
- default: D(() => [e.image ? (y(), u("img", {
526
+ default: O(() => [e.image ? (b(), d("img", {
527
527
  key: 0,
528
528
  src: e.image,
529
529
  alt: e.imageAlt
530
- }, null, 8, Re)) : (y(), u("span", {
530
+ }, null, 8, ze)) : (b(), d("span", {
531
531
  key: 1,
532
532
  innerHTML: e.name
533
- }, null, 8, ze))]),
533
+ }, null, 8, Be))]),
534
534
  _: 2
535
535
  }, 1032, ["to", "title"])]))), 128))])]))), 128)),
536
- S(t.$slots, "default"),
537
- e.download ? (y(), u("div", Be, [d("p", Ve, C(w(r)(e.download.heading)), 1), d("button", {
536
+ C(t.$slots, "default"),
537
+ e.download ? (b(), d("div", Ve, [f("p", He, w(T(r)(e.download.heading)), 1), f("button", {
538
538
  type: "button",
539
539
  class: "mwnf-standalone-related__print",
540
540
  onClick: a
541
- }, C(w(r)(e.download.print)), 1)])) : l("", !0)
541
+ }, w(T(r)(e.download.print)), 1)])) : u("", !0)
542
542
  ]));
543
543
  }
544
- }, He = { class: "mwnf-standalone-item__top" }, Ue = { class: "mwnf-standalone-item__left" }, We = {
544
+ }, Ue = { class: "mwnf-standalone-item__top" }, We = { class: "mwnf-standalone-item__left" }, Ge = {
545
545
  key: 0,
546
546
  class: "mwnf-standalone-item__back"
547
- }, Ge = {
547
+ }, Ke = {
548
548
  __name: "ItemSheet",
549
549
  props: {
550
550
  spec: {
@@ -565,43 +565,46 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
565
565
  }
566
566
  },
567
567
  setup(e) {
568
- let a = e, { t: g } = I(), v = T(), b = s(() => ({
569
- ...a.spec,
568
+ let o = e, { t: _ } = L(), y = E(), x = c(() => ({
569
+ ...o.spec,
570
570
  media: () => []
571
571
  }));
572
- function w({ record: e, text: t, language: n }) {
573
- if (a.spec.media) return a.spec.media(e, {
572
+ function T(e) {
573
+ return i(D(e), o.spec.pictureLimit, e);
574
+ }
575
+ function D({ record: e, text: t, language: n }) {
576
+ if (o.spec.media) return o.spec.media(e, {
574
577
  record: e,
575
578
  text: t,
576
579
  language: n
577
580
  });
578
- let r = P(String(t?.name ?? e?.internal_name ?? ""));
581
+ let r = F(String(t?.name ?? e?.internal_name ?? ""));
579
582
  return (e?.images ?? []).map((e) => ({
580
583
  url: e.url,
581
584
  alt: e.captions?.[n] ?? r,
582
585
  caption: e.captions?.[n] ?? "",
583
- ...A(e, n)
586
+ ...j(e, n)
584
587
  }));
585
588
  }
586
- let E = s(() => a.back.map((e) => ({
589
+ let k = c(() => o.back.map((e) => ({
587
590
  ...e,
588
- label: g(e.label)
589
- }))), O = /* @__PURE__ */ new Set([
591
+ label: _(e.label)
592
+ }))), A = /* @__PURE__ */ new Set([
590
593
  "header",
591
594
  "before-sheet",
592
595
  "related",
593
596
  "sidebar",
594
597
  "aside"
595
- ]), k = s(() => Object.keys(v).filter((e) => !O.has(e)));
596
- function j() {
598
+ ]), M = c(() => Object.keys(y).filter((e) => !A.has(e)));
599
+ function N() {
597
600
  window.history.back();
598
601
  }
599
- return (a, s) => (y(), c(i, {
600
- spec: b.value,
602
+ return (i, o) => (b(), l(a, {
603
+ spec: x.value,
601
604
  id: e.id,
602
605
  class: "mwnf-standalone-item"
603
- }, f({
604
- header: D(({ languages: e, language: n, select: r }) => [d("div", He, [m(t, {
606
+ }, p({
607
+ header: O(({ languages: e, language: n, select: r }) => [f("div", Ue, [h(t, {
605
608
  languages: e,
606
609
  language: n,
607
610
  onSelect: r
@@ -610,27 +613,27 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
610
613
  "language",
611
614
  "onSelect"
612
615
  ])])]),
613
- "before-sheet": D((e) => [d("div", Ue, [E.value.length ? (y(), u("p", We, [(y(!0), u(o, null, x(E.value, (e) => (y(), u(o, { key: e.label }, [e.history ? (y(), u("button", {
616
+ "before-sheet": O((e) => [f("div", We, [k.value.length ? (b(), d("p", Ge, [(b(!0), d(s, null, S(k.value, (e) => (b(), d(s, { key: e.label }, [e.history ? (b(), d("button", {
614
617
  key: 0,
615
618
  type: "button",
616
619
  class: "mwnf-standalone-item__back-link",
617
- onClick: j
618
- }, C(e.label), 1)) : (y(), c(n, {
620
+ onClick: N
621
+ }, w(e.label), 1)) : (b(), l(n, {
619
622
  key: 1,
620
623
  class: "mwnf-standalone-item__back-link",
621
624
  to: e.to,
622
625
  href: e.href
623
626
  }, {
624
- default: D(() => [p(C(e.label), 1)]),
627
+ default: O(() => [m(w(e.label), 1)]),
625
628
  _: 2
626
- }, 1032, ["to", "href"]))], 64))), 128))])) : l("", !0), m(r, { images: w(e) }, null, 8, ["images"])]), S(a.$slots, "before-sheet", _(h(e)))]),
627
- related: D((t) => [m(Q, {
629
+ }, 1032, ["to", "href"]))], 64))), 128))])) : u("", !0), h(r, { images: T(e) }, null, 8, ["images"])]), C(i.$slots, "before-sheet", v(g(e)))]),
630
+ related: O((t) => [h(Q, {
628
631
  heading: e.related.heading ?? "record.related.title",
629
632
  records: t.records,
630
633
  groups: e.related.groups ?? [],
631
634
  download: e.related.download ?? null
632
635
  }, {
633
- default: D(() => [S(a.$slots, "sidebar", _(h(t)))]),
636
+ default: O(() => [C(i.$slots, "sidebar", v(g(t)))]),
634
637
  _: 2
635
638
  }, 1032, [
636
639
  "heading",
@@ -639,18 +642,18 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
639
642
  "download"
640
643
  ])]),
641
644
  _: 2
642
- }, [x(k.value, (e) => ({
645
+ }, [S(M.value, (e) => ({
643
646
  name: e,
644
- fn: D((t) => [S(a.$slots, e, _(h(t)))])
647
+ fn: O((t) => [C(i.$slots, e, v(g(t)))])
645
648
  }))]), 1032, ["spec", "id"]));
646
649
  }
647
- }, Ke = ["innerHTML"], qe = {
650
+ }, qe = ["innerHTML"], Je = {
648
651
  key: 0,
649
652
  class: "mwnf-standalone-page__link"
650
- }, Je = {
653
+ }, $ = {
651
654
  key: 1,
652
655
  class: "mwnf-standalone-page__print"
653
- }, $ = {
656
+ }, Ye = {
654
657
  __name: "TextPage",
655
658
  props: {
656
659
  body: {
@@ -671,33 +674,33 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
671
674
  }
672
675
  },
673
676
  setup(e) {
674
- let t = e, { t: r } = I(), i = s(() => M(r(t.body)));
677
+ let t = e, { t: r } = L(), i = c(() => N(r(t.body)));
675
678
  function a() {
676
679
  window.print();
677
680
  }
678
- return (t, o) => (y(), u("article", { class: g(["mwnf-standalone-page", { "mwnf-standalone-page--drop-cap": e.dropCap }]) }, [
679
- d("div", {
681
+ return (t, o) => (b(), d("article", { class: _(["mwnf-standalone-page", { "mwnf-standalone-page--drop-cap": e.dropCap }]) }, [
682
+ f("div", {
680
683
  class: "mwnf-standalone-page__body",
681
684
  innerHTML: i.value
682
- }, null, 8, Ke),
683
- e.link ? (y(), u("p", qe, [m(n, {
685
+ }, null, 8, qe),
686
+ e.link ? (b(), d("p", Je, [h(n, {
684
687
  to: e.link.to,
685
688
  href: e.link.href
686
689
  }, {
687
- default: D(() => [d("strong", null, C(e.link.text ?? w(r)(e.link.label)), 1)]),
690
+ default: O(() => [f("strong", null, w(e.link.text ?? T(r)(e.link.label)), 1)]),
688
691
  _: 1
689
- }, 8, ["to", "href"])])) : l("", !0),
690
- e.print ? (y(), u("p", Je, [d("button", {
692
+ }, 8, ["to", "href"])])) : u("", !0),
693
+ e.print ? (b(), d("p", $, [f("button", {
691
694
  type: "button",
692
695
  class: "mwnf-standalone-page__print-button",
693
696
  onClick: a
694
- }, C(w(r)(e.print)), 1)])) : l("", !0)
697
+ }, w(T(r)(e.print)), 1)])) : u("", !0)
695
698
  ], 2));
696
699
  }
697
- }, Ye = {
700
+ }, Xe = {
698
701
  key: 0,
699
702
  class: "mwnf-standalone-subnav"
700
- }, Xe = { class: "mwnf-standalone-subnav__tabs" }, Ze = {
703
+ }, Ze = { class: "mwnf-standalone-subnav__tabs" }, Qe = {
701
704
  __name: "SubNav",
702
705
  props: {
703
706
  tabs: {
@@ -710,37 +713,37 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
710
713
  }
711
714
  },
712
715
  setup(e) {
713
- let t = e, { t: r } = I(), i = s(() => t.tabs.map((e) => ({
716
+ let t = e, { t: r } = L(), i = c(() => t.tabs.map((e) => ({
714
717
  ...e,
715
718
  label: r(e.label)
716
719
  })));
717
- return (t, a) => i.value.length || e.aside ? (y(), u("nav", Ye, [d("ul", Xe, [(y(!0), u(o, null, x(i.value, (e) => (y(), u("li", { key: e.label }, [m(n, {
720
+ return (t, a) => i.value.length || e.aside ? (b(), d("nav", Xe, [f("ul", Ze, [(b(!0), d(s, null, S(i.value, (e) => (b(), d("li", { key: e.label }, [h(n, {
718
721
  to: e.to,
719
722
  href: e.href,
720
- class: g(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
723
+ class: _(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
721
724
  "aria-current": e.active ? "page" : void 0
722
725
  }, {
723
- default: D(() => [p(C(e.label), 1)]),
726
+ default: O(() => [m(w(e.label), 1)]),
724
727
  _: 2
725
728
  }, 1032, [
726
729
  "to",
727
730
  "href",
728
731
  "class",
729
732
  "aria-current"
730
- ])]))), 128))]), e.aside ? (y(), c(n, {
733
+ ])]))), 128))]), e.aside ? (b(), l(n, {
731
734
  key: 0,
732
735
  to: e.aside.to,
733
736
  href: e.aside.href,
734
737
  class: "mwnf-standalone-subnav__aside"
735
738
  }, {
736
- default: D(() => [p(C(w(r)(e.aside.label)), 1)]),
739
+ default: O(() => [m(w(T(r)(e.aside.label)), 1)]),
737
740
  _: 1
738
- }, 8, ["to", "href"])) : l("", !0)])) : l("", !0);
741
+ }, 8, ["to", "href"])) : u("", !0)])) : u("", !0);
739
742
  }
740
- }, Qe = ["disabled", "aria-label"], $e = { class: "mwnf-standalone-slider__track" }, et = ["src", "alt"], tt = {
743
+ }, $e = ["disabled", "aria-label"], et = { class: "mwnf-standalone-slider__track" }, tt = ["src", "alt"], nt = {
741
744
  key: 0,
742
745
  class: "mwnf-standalone-slider__label"
743
- }, nt = ["disabled", "aria-label"], rt = {
746
+ }, rt = ["disabled", "aria-label"], it = {
744
747
  __name: "Slider",
745
748
  props: {
746
749
  slides: {
@@ -761,45 +764,45 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
761
764
  }
762
765
  },
763
766
  setup(e) {
764
- let t = e, { t: r } = I(), i = B(), a = b(0), c = s(() => Math.max(0, t.slides.length - t.visible)), f = s(() => t.slides.slice(a.value, a.value + t.visible).map((e) => ({
767
+ let t = e, { t: r } = L(), i = V(), 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) => ({
765
768
  ...e,
766
769
  image: i(e.image) ?? "",
767
770
  label: e.label ? r(e.label) : ""
768
771
  })));
769
- return (t, i) => e.slides.length ? (y(), u("div", {
772
+ return (t, i) => e.slides.length ? (b(), d("div", {
770
773
  key: 0,
771
774
  class: "mwnf-standalone-slider",
772
- style: v({ "--mwnf-standalone-slider-count": e.visible })
775
+ style: y({ "--mwnf-standalone-slider-count": e.visible })
773
776
  }, [
774
- d("button", {
777
+ f("button", {
775
778
  type: "button",
776
779
  class: "mwnf-standalone-slider__button",
777
780
  disabled: a.value === 0,
778
- "aria-label": w(r)(e.previousLabel),
781
+ "aria-label": T(r)(e.previousLabel),
779
782
  onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
780
- }, "‹", 8, Qe),
781
- d("ul", $e, [(y(!0), u(o, null, x(f.value, (e) => (y(), u("li", {
783
+ }, "‹", 8, $e),
784
+ f("ul", et, [(b(!0), d(s, null, S(l.value, (e) => (b(), d("li", {
782
785
  key: e.image,
783
786
  class: "mwnf-standalone-slider__slide"
784
- }, [m(n, {
787
+ }, [h(n, {
785
788
  to: e.to,
786
789
  href: e.href
787
790
  }, {
788
- default: D(() => [d("img", {
791
+ default: O(() => [f("img", {
789
792
  src: e.image,
790
793
  alt: e.label
791
- }, null, 8, et), e.label ? (y(), u("span", tt, C(e.label), 1)) : l("", !0)]),
794
+ }, null, 8, tt), e.label ? (b(), d("span", nt, w(e.label), 1)) : u("", !0)]),
792
795
  _: 2
793
796
  }, 1032, ["to", "href"])]))), 128))]),
794
- d("button", {
797
+ f("button", {
795
798
  type: "button",
796
799
  class: "mwnf-standalone-slider__button",
797
- disabled: a.value >= c.value,
798
- "aria-label": w(r)(e.nextLabel),
799
- onClick: i[1] ||= (e) => a.value = Math.min(c.value, a.value + 1)
800
- }, "›", 8, nt)
801
- ], 4)) : l("", !0);
800
+ disabled: a.value >= o.value,
801
+ "aria-label": T(r)(e.nextLabel),
802
+ onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
803
+ }, "›", 8, rt)
804
+ ], 4)) : u("", !0);
802
805
  }
803
806
  };
804
807
  //#endregion
805
- export { Q as RelatedContent, z as StandaloneBanner, Ne as StandaloneHome, Ge as StandaloneItemSheet, _e as StandaloneShell, rt as StandaloneSlider, Y as StandaloneSponsors, Ze as StandaloneSubNav, $ as StandaloneTextPage, Z as StandaloneTileGrid, X as TodayHighlight, V as byLanguage, H as dayOfYear, W as legacyHomeItemKey, U as pickForDay };
808
+ export { Q as RelatedContent, B as StandaloneBanner, Pe as StandaloneHome, Ke as StandaloneItemSheet, ve as StandaloneShell, it as StandaloneSlider, Y as StandaloneSponsors, Qe as StandaloneSubNav, Ye as StandaloneTextPage, Z as StandaloneTileGrid, X as TodayHighlight, H as byLanguage, U as dayOfYear, G as legacyHomeItemKey, W as pickForDay };
package/dist/views.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./FeaturedRecord-DJfyvfqt.js";
2
2
  import { c as t } from "./TimelineEventList-gsoc-SBx.js";
3
3
  import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./TimelineResultsView-C2-TnM71.js";
4
- import { t as l } from "./RecordView-DovgfTMz.js";
4
+ import { t as l } from "./RecordView-CdKx9tFy.js";
5
5
  import { computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createVNode as m, mergeProps as h, normalizeClass as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b } from "vue";
6
6
  import { I18nText as x, renderInline as S, renderPlain as C, useDataPackage as w, useFeaturedRecord as T, useI18n as E, useSiteConfig as D } from "@museumwnf/viewer-core";
7
7
  //#region src/views/HomeView.vue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@museumwnf/viewer-layout",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",