@museumwnf/viewer-layout 3.7.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 };
@@ -4,7 +4,7 @@ import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a
4
4
  import { useI18n as p } from "@museumwnf/viewer-core/i18n";
5
5
  import { md as m, mdInline as h } from "@museumwnf/viewer-core";
6
6
  //#region src/content/SpecialFeatures.vue
7
- var g = ["innerHTML"], _ = ["innerHTML"], v = {
7
+ var g = ["innerHTML"], _ = ["innerHTML"], v = ["innerHTML"], y = {
8
8
  __name: "SpecialFeatures",
9
9
  props: {
10
10
  features: {
@@ -27,33 +27,34 @@ var g = ["innerHTML"], _ = ["innerHTML"], v = {
27
27
  dir: {
28
28
  type: String,
29
29
  default: ""
30
+ },
31
+ pictureLimit: {
32
+ type: Number,
33
+ default: 0
30
34
  }
31
35
  },
32
- setup(v) {
33
- let y = v, { t: b } = p(), x = r(() => [...y.features].sort((e, t) => (e.display_order ?? Infinity) - (t.display_order ?? Infinity)).map((e) => {
34
- let t = y.tr(e) ?? {};
36
+ setup(y) {
37
+ let b = y, { t: x } = p(), S = r(() => [...b.features].sort((e, t) => (e.display_order ?? Infinity) - (t.display_order ?? Infinity)).map((e) => {
38
+ let t = b.tr(e) ?? {};
35
39
  return {
36
40
  id: e.id,
37
41
  name: h(t.name ?? e.internal_name ?? e.id),
38
- meta: [
39
- t.location,
40
- t.dates,
41
- (e.artist_names ?? []).join(", ")
42
- ].filter(Boolean),
43
- description: m(t.description, { glossary: y.glossary }),
44
- images: (e.images ?? []).map((e) => ({
42
+ meta: [t.location, t.dates].filter(Boolean),
43
+ artist: h(t.artist ?? ""),
44
+ description: m(t.description, { glossary: b.glossary }),
45
+ images: (e.images ?? []).slice(0, b.pictureLimit > 0 ? b.pictureLimit : void 0).map((e) => ({
45
46
  url: e.url,
46
- alt: e.captions?.[y.language] ?? ""
47
+ alt: e.captions?.[b.language] ?? ""
47
48
  }))
48
49
  };
49
50
  }));
50
- return (r, p) => x.value.length ? (c(), i(t, {
51
+ return (r, p) => S.value.length ? (c(), i(t, {
51
52
  key: 0,
52
- heading: v.heading ? d(b)(v.heading) : "",
53
- dir: v.dir,
53
+ heading: y.heading ? d(x)(y.heading) : "",
54
+ dir: y.dir,
54
55
  class: "mwnf-special-features"
55
56
  }, {
56
- default: f(() => [(c(!0), o(n, null, l(x.value, (t) => (c(), o("div", {
57
+ default: f(() => [(c(!0), o(n, null, l(S.value, (t) => (c(), o("div", {
57
58
  key: t.id,
58
59
  class: "mwnf-special-features__item"
59
60
  }, [
@@ -65,13 +66,18 @@ var g = ["innerHTML"], _ = ["innerHTML"], v = {
65
66
  key: t,
66
67
  class: "mwnf-special-features__meta"
67
68
  }, u(e), 1))), 128)),
68
- t.description ? (c(), o("div", {
69
+ t.artist ? (c(), o("p", {
69
70
  key: 0,
71
+ class: "mwnf-special-features__meta",
72
+ innerHTML: t.artist
73
+ }, null, 8, _)) : a("", !0),
74
+ t.description ? (c(), o("div", {
75
+ key: 1,
70
76
  class: "mwnf-special-features__description mwnf-sheet__block",
71
77
  innerHTML: t.description
72
- }, null, 8, _)) : a("", !0),
78
+ }, null, 8, v)) : a("", !0),
73
79
  t.images.length ? (c(), i(e, {
74
- key: 1,
80
+ key: 2,
75
81
  images: t.images,
76
82
  variant: "row"
77
83
  }, null, 8, ["images"])) : a("", !0)
@@ -81,4 +87,4 @@ var g = ["innerHTML"], _ = ["innerHTML"], v = {
81
87
  }
82
88
  };
83
89
  //#endregion
84
- export { v as t };
90
+ export { y as t };
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-CtwBcSjU.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-CtwBcSjU.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 };