@museumwnf/viewer-layout 3.27.0 → 3.29.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,4 +1,4 @@
1
- import { d as e } from "./PartnerMap-CyuhYm1j.js";
1
+ import { d as e } from "./PartnerMap-BIKd-AGP.js";
2
2
  import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, openBlock as s, renderList as c, renderSlot as l, toDisplayString as u, useSlots as d, withCtx as f } from "vue";
3
3
  //#region src/content/FeaturedRecord.vue
4
4
  var p = {
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./chrome-DNsZQXrL.js";
2
- import { r as t } from "./PartnerMap-CyuhYm1j.js";
3
- import { n } from "./TimelineEventList-B-XUnWiG.js";
4
- import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-DUSMgEIx.js";
5
- import { t as c } from "./RecordView-D5q5LNvv.js";
2
+ import { r as t } from "./PartnerMap-BIKd-AGP.js";
3
+ import { n } from "./TimelineEventList-CTJJOWGh.js";
4
+ import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-DPRwCoYO.js";
5
+ import { t as c } from "./RecordView-kkpYLtL_.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
@@ -1,4 +1,4 @@
1
- import { d as e, o as t } from "./PartnerMap-CyuhYm1j.js";
1
+ import { d as e, o as t } from "./PartnerMap-BIKd-AGP.js";
2
2
  import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, mergeProps as u, normalizeClass as d, openBlock as f, ref as p, renderList as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, vModelSelect as y, vModelText as b, watch as x, withCtx as S, withDirectives as C, withKeys as w } from "vue";
3
3
  import { useI18n as T } from "@museumwnf/viewer-core/i18n";
4
4
  import { md as E, mdInline as D, searchGlossary as ee } from "@museumwnf/viewer-core";
@@ -206,6 +206,10 @@ var D = [
206
206
  language: {
207
207
  type: String,
208
208
  default: ""
209
+ },
210
+ from: {
211
+ type: Number,
212
+ default: 2
209
213
  }
210
214
  },
211
215
  emits: ["select"],
@@ -214,7 +218,7 @@ var D = [
214
218
  code: e,
215
219
  label: e.toUpperCase()
216
220
  } : e));
217
- return (t, a) => l.value.length > 1 ? (f(), i("div", {
221
+ return (t, a) => l.value.length && l.value.length >= n.from ? (f(), i("div", {
218
222
  key: 0,
219
223
  class: "mwnf-languages",
220
224
  role: "group",
@@ -0,0 +1,344 @@
1
+ import { a as e, c as t, d as n, i as r, n as i, o as ee, r as te, s as ne } from "./PartnerMap-BIKd-AGP.js";
2
+ import { t as re } from "./GlossaryPopover-B7E6BsjS.js";
3
+ import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as ie, createTextVNode as ae, createVNode as d, guardReactiveProps as f, normalizeClass as oe, normalizeProps as p, openBlock as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, useSlots as se, watch as b, withCtx as x } from "vue";
4
+ import { useI18n as S } from "@museumwnf/viewer-core/i18n";
5
+ import { NotFoundView as ce, byId as le, citation as ue, creditLine as de, entityRef as fe, languageLabels as pe, loadEntities as me, pictureCredits as he, picturesInLanguage as ge, renderBlock as C, renderInline as w, renderPlain as T, sheetRows as E, sourceUrl as _e, useDataPackage as ve, useGlossaryPopup as ye, useI18n as be, useProjects as xe, useRecordSheet as Se, useRelatedRecords as Ce } from "@museumwnf/viewer-core";
6
+ import { useRoute as we } from "vue-router";
7
+ //#region src/content/ShortDescription.vue
8
+ var D = ["dir"], Te = ["aria-expanded"], O = ["innerHTML"], Ee = {
9
+ __name: "ShortDescription",
10
+ props: {
11
+ html: {
12
+ type: String,
13
+ required: !0
14
+ },
15
+ dir: {
16
+ type: String,
17
+ default: void 0
18
+ }
19
+ },
20
+ setup(e) {
21
+ let t = e, { t: n } = S(), r = h(!1);
22
+ return b(() => t.html, () => {
23
+ r.value = !1;
24
+ }), (t, i) => (m(), l("div", {
25
+ class: "mwnf-sheet__short",
26
+ dir: e.dir
27
+ }, [u("button", {
28
+ type: "button",
29
+ class: "mwnf-sheet__toggle",
30
+ "aria-expanded": r.value ? "true" : "false",
31
+ onClick: i[0] ||= (e) => r.value = !r.value
32
+ }, v(r.value ? y(n)("record.action.hideShortDescription") : y(n)("record.action.viewShortDescription")), 9, Te), r.value ? (m(), l("div", {
33
+ key: 0,
34
+ class: "mwnf-sheet__block",
35
+ innerHTML: e.html
36
+ }, null, 8, O)) : c("", !0)], 8, D));
37
+ }
38
+ };
39
+ //#endregion
40
+ //#region src/views/pictureLimit.js
41
+ function k(e, t, n) {
42
+ let r = typeof t == "function" ? t(n) : t;
43
+ return Number.isInteger(r) && r > 0 ? e.slice(0, r) : e;
44
+ }
45
+ //#endregion
46
+ //#region src/views/RecordView.vue
47
+ var De = ["dir", "innerHTML"], Oe = { class: "mwnf-record__body" }, ke = { class: "mwnf-record__main" }, Ae = {
48
+ key: 1,
49
+ class: "mwnf-record__status"
50
+ }, je = {
51
+ key: 0,
52
+ class: "mwnf-record__aside"
53
+ }, Me = {
54
+ key: 2,
55
+ class: "mwnf-record__status"
56
+ }, A = {
57
+ __name: "RecordView",
58
+ props: {
59
+ spec: {
60
+ type: Object,
61
+ required: !0
62
+ },
63
+ id: {
64
+ type: String,
65
+ required: !0
66
+ },
67
+ entity: {
68
+ type: String,
69
+ default: ""
70
+ }
71
+ },
72
+ setup(h) {
73
+ let b = h, { t: S, tIn: D, locale: Te } = be(), O = ve(), A = xe(), Ne = se(), Pe = we(), j = b.spec.entity ?? b.entity, M = o(() => b.spec), Fe = fe(j), Ie = le(j), N = o(() => Ie.value.get(b.id) ?? null), Le = o(() => Fe.value !== null), P = b.spec.creditPeople ? b.spec.creditPeople.entity ?? "authors" : null;
74
+ P && me([P]).catch(() => {});
75
+ let F = P ? le(P) : null, { language: I, languages: Re, dir: L, select: R, text: z, ready: B, terms: ze, glossary: V, attribution: H } = Se(N, {
76
+ entity: j,
77
+ translations: [...b.spec.translations ?? [], ...P ? [P] : []],
78
+ attribution: b.spec.attribution ?? []
79
+ }), U = o(() => pe(Re.value)), { active: W, onClick: G, close: Be } = ye(ze), Ve = o(() => W.value ? C(W.value.definition, { breaks: !0 }) : ""), He = (e, t) => O.tr(e, t, I.value, "en"), Ue = (e) => O.translations(e, I.value), K = o(() => ({
80
+ record: N.value,
81
+ text: z.value,
82
+ language: I.value,
83
+ languages: U.value,
84
+ select: R,
85
+ dir: L.value,
86
+ glossary: V.value,
87
+ ready: B.value,
88
+ attribution: H.value,
89
+ t: S,
90
+ tIn: (e) => D ? D(I.value, e) : S(e),
91
+ tr: He,
92
+ translations: Ue
93
+ })), q = (e) => M.value.labelsInRecordLanguage && D ? D(I.value, e) : S(e);
94
+ function We(e) {
95
+ return ((typeof e == "function" ? e(K.value) : e) ?? []).map((e) => ({
96
+ ...e,
97
+ label: e.label ? q(e.label) : ""
98
+ }));
99
+ }
100
+ let Ge = o(() => N.value ? E(We(M.value.fields), K.value) : []), Ke = o(() => N.value ? E(We(M.value.sections).map((e) => ({
101
+ render: "block",
102
+ ...e
103
+ })), K.value) : []), J = o(() => M.value.shortDescriptionAfter ?? "description"), qe = o(() => !Ge.value.some((e) => e.key === J.value) && Ke.value.some((e) => e.key === J.value)), Je = o(() => M.value.shortDescription === !1 ? "" : M.value.shortDescription ?? "short_description"), Y = o(() => {
104
+ let e = Je.value ? z.value[Je.value] : "";
105
+ return e ? { html: C(String(e), {
106
+ breaks: !0,
107
+ glossary: V.value
108
+ }) } : null;
109
+ }), Ye = o(() => {
110
+ if (!N.value) return "";
111
+ if (M.value.title) return M.value.title(K.value);
112
+ let e = z.value.name ?? N.value.internal_name ?? N.value.id;
113
+ return w(String(e), { glossary: V.value });
114
+ }), Xe = o(() => N.value ? k(Ze(), M.value.pictureLimit, K.value) : []);
115
+ function Ze() {
116
+ if (M.value.media) return M.value.media(N.value, K.value);
117
+ let e = T(String(z.value.name ?? N.value.internal_name ?? ""));
118
+ return ge(N.value.images, I.value).map((t) => ({
119
+ url: t.url,
120
+ alt: t.captions?.[I.value] ?? e,
121
+ caption: t.captions?.[I.value] ?? "",
122
+ ...he(t, I.value)
123
+ }));
124
+ }
125
+ let Qe = [
126
+ {
127
+ field: "author",
128
+ label: "sheet.field.preparedBy"
129
+ },
130
+ {
131
+ field: "copy_editor",
132
+ label: "sheet.field.copyeditedBy"
133
+ },
134
+ {
135
+ field: "translator",
136
+ label: "sheet.field.translationBy"
137
+ },
138
+ {
139
+ field: "translation_copy_editor",
140
+ label: "sheet.field.translationCopyeditedBy"
141
+ }
142
+ ];
143
+ function $e(e) {
144
+ let t = M.value.creditNames ? z.value.credit_names?.[e] : null;
145
+ return t?.length ? de(t) : z.value[e] ?? H.value[e] ?? "";
146
+ }
147
+ function et(e) {
148
+ let t = F ? z.value.credit_ids?.[e] : null;
149
+ if (!t?.length) return null;
150
+ let n = Ue(P), r = t.map((e) => {
151
+ let t = F.value.get(e);
152
+ if (!t) return null;
153
+ let r = t.name ?? "";
154
+ return {
155
+ name: I.value === "ar" && t.originalname ? t.originalname : r,
156
+ heading: [t.firstname, t.lastname].filter(Boolean).join(" ") || r,
157
+ biography: n?.[e]?.curriculum ?? ""
158
+ };
159
+ });
160
+ return r.every(Boolean) ? r : null;
161
+ }
162
+ let tt = o(() => (M.value.credits ?? Qe).map(({ field: e, label: t }) => ({
163
+ label: q(t),
164
+ value: $e(e),
165
+ people: et(e)
166
+ })).filter((e) => e.value)), nt = o(() => String(N.value?.[M.value.workingNumber ?? "mwnf_reference"] ?? ""));
167
+ function X(e) {
168
+ if (e?.permalink !== !1) return typeof e?.permalink == "string" ? e.permalink : _e(Pe) ?? void 0;
169
+ }
170
+ let rt = o(() => {
171
+ let e = M.value.citation;
172
+ return !N.value || typeof e?.format != "function" ? "" : e.format(K.value, {
173
+ permalink: X(e),
174
+ year: (/* @__PURE__ */ new Date()).getFullYear()
175
+ });
176
+ }), it = o(() => {
177
+ let e = M.value.citation;
178
+ if (!N.value || e === !1 || typeof e?.format == "function") return "";
179
+ let t = typeof e?.project == "function" ? null : e?.project ?? N.value.project_id, n = typeof e?.project == "function" ? e.project(N.value, K.value) : A.label(t);
180
+ return ue({
181
+ author: $e("author") || void 0,
182
+ name: z.value.name ?? N.value.internal_name ?? "",
183
+ project: n,
184
+ permalink: X(e),
185
+ inWord: S("record.citation.in")
186
+ });
187
+ }), Z = Ce(N, {
188
+ entity: j,
189
+ language: I
190
+ }), Q = o(() => M.value.related === !1 ? null : M.value.related ?? {}), $ = o(() => {
191
+ if (!Q.value) return [];
192
+ let e = Q.value.record ?? at;
193
+ return Z.value.inPackage.map((t) => e(t, K.value));
194
+ });
195
+ function at({ record: e, justification: t }) {
196
+ let n = He(j, e.id).name ?? e.internal_name ?? e.id;
197
+ return {
198
+ id: e.id,
199
+ image: e.images?.[0]?.url ?? "",
200
+ imageAlt: T(String(n)),
201
+ name: w(String(n)),
202
+ meta: t ? [t] : [],
203
+ badge: e.type ?? "",
204
+ to: {
205
+ name: M.value.route ?? (b.entity ? `${b.entity}-detail` : "item"),
206
+ params: { id: e.id }
207
+ }
208
+ };
209
+ }
210
+ let ot = /* @__PURE__ */ new Set([
211
+ "header",
212
+ "before-sheet",
213
+ "after-sheet",
214
+ "aside",
215
+ "source",
216
+ "related",
217
+ "after",
218
+ "default"
219
+ ]), st = o(() => Object.keys(Ne).filter((e) => !ot.has(e)));
220
+ return (o, h) => Le.value && !N.value ? (m(), s(y(ce), { key: 0 })) : N.value ? (m(), l("article", {
221
+ key: 1,
222
+ class: oe(["mwnf-record", { "mwnf-record--spaced": M.value.spaced }]),
223
+ onClick: h[0] ||= (...e) => y(G) && y(G)(...e)
224
+ }, [
225
+ _(o.$slots, "header", p(f(K.value)), () => [
226
+ M.value.back ? (m(), s(n, {
227
+ key: 0,
228
+ class: "mwnf-record__back",
229
+ to: M.value.back.to,
230
+ href: M.value.back.href
231
+ }, {
232
+ default: x(() => [ae("← " + v(y(S)(M.value.back.label)), 1)]),
233
+ _: 1
234
+ }, 8, ["to", "href"])) : c("", !0),
235
+ d(t, {
236
+ languages: U.value,
237
+ language: y(I),
238
+ onSelect: y(R)
239
+ }, null, 8, [
240
+ "languages",
241
+ "language",
242
+ "onSelect"
243
+ ]),
244
+ u("h1", {
245
+ class: "mwnf-record__title",
246
+ dir: y(L) || void 0,
247
+ innerHTML: Ye.value
248
+ }, null, 8, De)
249
+ ]),
250
+ u("div", Oe, [u("div", ke, [
251
+ Xe.value.length ? (m(), s(i, {
252
+ key: 0,
253
+ images: Xe.value,
254
+ variant: M.value.mediaVariant ?? ""
255
+ }, null, 8, ["images", "variant"])) : c("", !0),
256
+ y(B) ? c("", !0) : (m(), l("p", Ae, v(y(S)("core.status.loading")), 1)),
257
+ _(o.$slots, "before-sheet", p(f(K.value))),
258
+ d(ne, {
259
+ rows: Ge.value,
260
+ layout: M.value.layout ?? "table",
261
+ dir: y(L),
262
+ "short-description": Y.value,
263
+ "short-description-after": J.value
264
+ }, ie({ _: 2 }, [g(st.value, (e) => ({
265
+ name: e,
266
+ fn: x((t) => [_(o.$slots, e, p(f({
267
+ ...t,
268
+ ...K.value
269
+ })))])
270
+ }))]), 1032, [
271
+ "rows",
272
+ "layout",
273
+ "dir",
274
+ "short-description",
275
+ "short-description-after"
276
+ ]),
277
+ (m(!0), l(a, null, g(Ke.value, (e) => (m(), l(a, { key: e.key }, [d(ee, {
278
+ heading: e.label,
279
+ html: e.html,
280
+ dir: y(L)
281
+ }, null, 8, [
282
+ "heading",
283
+ "html",
284
+ "dir"
285
+ ]), Y.value && qe.value && e.key === J.value ? (m(), s(Ee, {
286
+ key: 0,
287
+ html: Y.value.html,
288
+ dir: y(L)
289
+ }, null, 8, ["html", "dir"])) : c("", !0)], 64))), 128)),
290
+ _(o.$slots, "after-sheet", p(f(K.value))),
291
+ d(e, {
292
+ credits: tt.value,
293
+ "working-number": nt.value,
294
+ "working-number-label": q(M.value.workingNumberLabel ?? "sheet.field.workingNumber"),
295
+ citation: it.value,
296
+ "citation-html": rt.value,
297
+ "citation-heading": M.value.citation?.heading ? q(M.value.citation.heading) : ""
298
+ }, null, 8, [
299
+ "credits",
300
+ "working-number",
301
+ "working-number-label",
302
+ "citation",
303
+ "citation-html",
304
+ "citation-heading"
305
+ ]),
306
+ _(o.$slots, "source", p(f(K.value)), () => [d(r)]),
307
+ _(o.$slots, "related", p(f({
308
+ ...K.value,
309
+ records: $.value,
310
+ outside: y(Z).outside
311
+ })), () => [Q.value ? (m(), s(te, {
312
+ key: 0,
313
+ heading: y(S)(Q.value.heading ?? "record.related.items"),
314
+ records: $.value,
315
+ variant: Q.value.variant ?? "list",
316
+ "action-label": Q.value.actionLabel ? y(S)(Q.value.actionLabel) : ""
317
+ }, null, 8, [
318
+ "heading",
319
+ "records",
320
+ "variant",
321
+ "action-label"
322
+ ])) : c("", !0)])
323
+ ]), o.$slots.aside ? (m(), l("aside", je, [_(o.$slots, "aside", p(f({
324
+ ...K.value,
325
+ records: $.value,
326
+ outside: y(Z).outside
327
+ })))])) : c("", !0)]),
328
+ _(o.$slots, "after", p(f(K.value))),
329
+ d(re, {
330
+ term: y(W),
331
+ html: Ve.value,
332
+ dir: y(L),
333
+ onClose: y(Be)
334
+ }, null, 8, [
335
+ "term",
336
+ "html",
337
+ "dir",
338
+ "onClose"
339
+ ])
340
+ ], 2)) : (m(), l("p", Me, v(y(S)("core.status.loading")), 1));
341
+ }
342
+ };
343
+ //#endregion
344
+ export { k as n, A as t };
@@ -1,5 +1,5 @@
1
- import { d as e, i as t } from "./PartnerMap-CyuhYm1j.js";
2
- import { o as n } from "./TimelineResultsView-CMLvGzPD.js";
1
+ import { d as e, i as t } from "./PartnerMap-BIKd-AGP.js";
2
+ import { o as n } from "./TimelineResultsView-D15BMWZM.js";
3
3
  import { A as r, F as i, h as a, m as o } from "./data-BINc9QjV.js";
4
4
  import { n as s, r as c, t as l } from "./themeSpecs-DP9xWiVJ.js";
5
5
  import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, normalizeClass as v, onMounted as ee, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, vModelCheckbox as w, watch as T, withCtx as E, withDirectives as D } from "vue";
@@ -1,4 +1,4 @@
1
- import { d as e, n as t, t as n } from "./PartnerMap-CyuhYm1j.js";
1
+ import { d as e, n as t, t as n } from "./PartnerMap-BIKd-AGP.js";
2
2
  import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, mergeProps as d, nextTick as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, renderSlot as _, resolveDynamicComponent as v, toDisplayString as y, unref as b, useId as x, useSlots as S, vModelText as C, vShow as ee, watch as w, withCtx as T, withDirectives as E, withKeys as D, withModifiers as O } from "vue";
3
3
  import { useI18n as k } from "@museumwnf/viewer-core/i18n";
4
4
  import { mdInline as A } from "@museumwnf/viewer-core";
@@ -1,5 +1,5 @@
1
- import { d as e, i as t, l as n, n as r, u as i } from "./PartnerMap-CyuhYm1j.js";
2
- import { a, i as o, n as s, o as c, r as l, t as u } from "./TimelineEventList-B-XUnWiG.js";
1
+ import { d as e, i as t, l as n, n as r, u as i } from "./PartnerMap-BIKd-AGP.js";
2
+ import { a, i as o, n as s, o as c, r as l, t as u } from "./TimelineEventList-CTJJOWGh.js";
3
3
  import { t as d } from "./GlossaryPopover-B7E6BsjS.js";
4
4
  import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as v, createTextVNode as y, createVNode as b, guardReactiveProps as x, isRef as S, mergeProps as C, normalizeClass as ee, normalizeProps as w, openBlock as T, reactive as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as te, toDisplayString as A, unref as j, useSlots as M, vModelCheckbox as N, vModelRadio as P, vModelSelect as F, vModelText as ne, watch as I, withCtx as L, withDirectives as R } from "vue";
5
5
  import { I18nText as z, NotFoundView as B, byId as V, centuryPresets as H, dateRange as re, entityRef as ie, eventDateLabel as U, glossaryEntries as ae, glossaryTermsForText as W, groupByCountry as G, md as K, mdInline as oe, partnerHierarchy as q, partnerView as J, renderBlock as se, renderInline as Y, renderPlain as X, sortChronological as Z, useCollectionTree as ce, useDataPackage as Q, useFacets as le, useGlossaryPopup as ue, useI18n as de, useListQuery as fe, useLocale as pe, usePagination as me, useRecordLanguage as he, useSearchLanguage as ge, useTimelineEvents as _e, yearBuckets as ve } from "@museumwnf/viewer-core";
@@ -1,5 +1,5 @@
1
- import "./FeaturedRecord-BINuFBnk.js";
2
- import { n as e, o as t } from "./PartnerMap-CyuhYm1j.js";
1
+ import "./FeaturedRecord-CTqnQFox.js";
2
+ import { n as e, o as t } from "./PartnerMap-BIKd-AGP.js";
3
3
  import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
4
4
  import { useI18n as p } from "@museumwnf/viewer-core/i18n";
5
5
  import { md as m, mdInline as h } from "@museumwnf/viewer-core";
package/dist/content.js CHANGED
@@ -1,7 +1,7 @@
1
- import { t as e } from "./FeaturedRecord-BINuFBnk.js";
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 "./PartnerMap-CyuhYm1j.js";
3
- import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./TimelineEventList-B-XUnWiG.js";
1
+ import { t as e } from "./FeaturedRecord-CTqnQFox.js";
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 "./PartnerMap-BIKd-AGP.js";
3
+ import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./TimelineEventList-CTJJOWGh.js";
4
4
  import { t as v } from "./GlossaryPopover-B7E6BsjS.js";
5
- import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-DUSMgEIx.js";
6
- import { t as E } from "./content-C4ChQ_Bx.js";
5
+ import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-DPRwCoYO.js";
6
+ import { t as E } from "./content-PQeMx8U5.js";
7
7
  export { w as BackLink, b as DynastyList, y as DynastyPopout, d as FacetSelect, e as FeaturedRecord, f as FilterPanel, v as GlossaryPopover, S as GlossaryTool, a as MediaGallery, T as OnDisplayIn, m as Pagination, l as PartnerMap, p as PartnerPanel, t as RecordCredits, i as RecordGrid, n as RecordLanguages, u as RecordList, c as RecordSheet, x as RelatedMedia, s as RelatedRecords, h as ResultsSummary, g as SectionCards, o as SheetSection, r as SourceCredit, E as SpecialFeatures, _ as TimelineEventList, C as TimelineLookup };
package/dist/dxa.js CHANGED
@@ -1,15 +1,15 @@
1
- import { a as e, i as t, n, r } from "./Theme-DnSqegTx.js";
1
+ import { a as e, i as t, n, r } from "./Theme-Co1bf81Z.js";
2
2
  import { i } from "./PageShell-BT9SnXav.js";
3
3
  import { i as a, n as o, r as s, t as c } from "./chrome-DNsZQXrL.js";
4
- import { c as l, d as u } from "./PartnerMap-CyuhYm1j.js";
5
- import { a as d, i as f, n as p, o as m, s as h } from "./TimelineEventList-B-XUnWiG.js";
6
- import { s as g } from "./OnDisplayIn-DUSMgEIx.js";
7
- import { a as _, i as v, n as y, r as b, s as x, t as S } from "./TimelineResultsView-CMLvGzPD.js";
8
- import { t as ee } from "./RecordView-D5q5LNvv.js";
4
+ import { c as l, d as u } from "./PartnerMap-BIKd-AGP.js";
5
+ import { a as d, i as f, n as p, o as m, s as h } from "./TimelineEventList-CTJJOWGh.js";
6
+ import { s as g } from "./OnDisplayIn-DPRwCoYO.js";
7
+ import { a as _, i as v, n as y, r as b, s as x, t as S } from "./TimelineResultsView-D15BMWZM.js";
8
+ import { t as ee } from "./RecordView-kkpYLtL_.js";
9
9
  import { t as te } from "./SiteShell-DPdTxtJ5.js";
10
10
  import { A as ne, C as re, D as ie, E as ae, M as oe, N as se, O as ce, S as le, T as ue, _ as de, a as fe, b as C, c as pe, d as me, f as he, g as w, h as ge, i as _e, j as ve, k as ye, l as be, m as xe, n as Se, o as Ce, p as we, r as Te, s as Ee, t as De, u as T, v as Oe, w as ke, x as Ae, y as je } from "./data-CXRsGwLQ.js";
11
11
  import { A as Me, C as Ne, D as Pe, E as Fe, F as Ie, I as Le, L as Re, M as ze, N as Be, O as Ve, P as He, R as Ue, S as We, T as E, _ as Ge, a as Ke, b as qe, c as Je, d as Ye, f as D, g as Xe, h as Ze, i as Qe, j as $e, k as et, l as tt, m as nt, n as rt, o as O, p as it, r as at, s as ot, t as st, u as ct, v as k, w as A, x as lt, y as ut } from "./data-BINc9QjV.js";
12
- import { t as dt } from "./ItemDetailView-6zT3r0AE.js";
12
+ import { t as dt } from "./ItemDetailView-DWNJy_PQ.js";
13
13
  import { n as j, r as ft, t as pt } from "./themeSpecs-DP9xWiVJ.js";
14
14
  import { Fragment as M, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createSlots as mt, createTextVNode as R, createVNode as z, normalizeClass as ht, normalizeStyle as gt, onBeforeUnmount as _t, onMounted as vt, openBlock as B, ref as V, renderList as H, renderSlot as yt, resolveDynamicComponent as bt, toDisplayString as U, unref as W, vModelText as xt, vShow as St, withCtx as G, withDirectives as K, withModifiers as Ct } from "vue";
15
15
  import { I18nText as q, NotFoundView as wt, languageLabels as Tt, loadEntities as J, mwnfLinks as Y, offeredLanguages as Et, renderInline as Dt, sectionMeta as Ot, useDataPackage as kt, useFacets as At, useI18n as X, useKeywordIndex as jt, useSection as Mt, useSiteConfig as Nt, yearBuckets as Z } from "@museumwnf/viewer-core";
@@ -718,7 +718,7 @@ var It = { class: "mwnf-dxa-profile-languages" }, $ = {
718
718
  _: 1
719
719
  }, 8, ["spec"])) : F("", !0);
720
720
  }
721
- }, On = () => Promise.resolve().then(() => Fr), kn = () => Promise.resolve().then(() => Wr), An = () => Promise.resolve().then(() => qr), jn = () => Promise.resolve().then(() => Xr), Mn = () => Promise.resolve().then(() => $r), Nn = () => Promise.resolve().then(() => ni), Pn = () => import("./Theme-DnSqegTx.js").then((e) => e.t), Fn = () => Promise.resolve().then(() => oi), In = () => Promise.resolve().then(() => ui), Ln = () => Promise.resolve().then(() => pi), Rn = () => Promise.resolve().then(() => hi), zn = {
721
+ }, On = () => Promise.resolve().then(() => Fr), kn = () => Promise.resolve().then(() => Wr), An = () => Promise.resolve().then(() => qr), jn = () => Promise.resolve().then(() => Xr), Mn = () => Promise.resolve().then(() => $r), Nn = () => Promise.resolve().then(() => ni), Pn = () => import("./Theme-Co1bf81Z.js").then((e) => e.t), Fn = () => Promise.resolve().then(() => oi), In = () => Promise.resolve().then(() => ui), Ln = () => Promise.resolve().then(() => pi), Rn = () => Promise.resolve().then(() => hi), zn = {
722
722
  emptyPartner: "exhibition.partnerObjects.emptyPartner",
723
723
  emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
724
724
  institutionSummary: "exhibition.partner.monumentsInExhibition",
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./PageShell-BT9SnXav.js";
2
2
  import { n as u, r as d, t as f } from "./chrome-DNsZQXrL.js";
3
- import { t as p } from "./FeaturedRecord-BINuFBnk.js";
4
- 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 "./PartnerMap-CyuhYm1j.js";
5
- import { a as w, i as T, n as E, o as D, r as O, s as k, t as A } from "./TimelineEventList-B-XUnWiG.js";
3
+ import { t as p } from "./FeaturedRecord-CTqnQFox.js";
4
+ 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 "./PartnerMap-BIKd-AGP.js";
5
+ import { a as w, i as T, n as E, o as D, r as O, s as k, t as A } from "./TimelineEventList-CTJJOWGh.js";
6
6
  import { t as j } from "./GlossaryPopover-B7E6BsjS.js";
7
- import { a as M, i as N, n as P, o as F, r as I, s as L, t as R } from "./OnDisplayIn-DUSMgEIx.js";
8
- import { t as z } from "./content-C4ChQ_Bx.js";
7
+ import { a as M, i as N, n as P, o as F, r as I, s as L, t as R } from "./OnDisplayIn-DPRwCoYO.js";
8
+ import { t as z } from "./content-PQeMx8U5.js";
9
9
  export { r as AppBanner, s as AppContent, i as AppFooter, l as AppHeader, a as AppHyperlinks, t as AppNavigation, e as AppSponsors, L as BackLink, N as DynastyList, M as DynastyPopout, w as FacetSelect, p as FeaturedRecord, T as FilterPanel, j as GlossaryPopover, F as GlossaryTool, v as MediaGallery, R as OnDisplayIn, c as PageShell, D as Pagination, S as PartnerMap, E as PartnerPanel, m as RecordCredits, _ as RecordGrid, h as RecordLanguages, C as RecordList, x as RecordSheet, P as RelatedMedia, b as RelatedRecords, O as ResultsSummary, k as SectionCards, y as SheetSection, o as SocialLinks, g as SourceCredit, z as SpecialFeatures, A as TimelineEventList, I as TimelineLookup, f as chromeAsset, u as chromePicture, d as chromeSource, n as mwnfSocialLinks };
@@ -1,6 +1,6 @@
1
1
  import { r as e } from "./chrome-DNsZQXrL.js";
2
- import { c as t, d as n, n as r, t as i } from "./PartnerMap-CyuhYm1j.js";
3
- import { n as a, t as o } from "./RecordView-D5q5LNvv.js";
2
+ import { c as t, d as n, n as r, t as i } from "./PartnerMap-BIKd-AGP.js";
3
+ import { n as a, t as o } from "./RecordView-kkpYLtL_.js";
4
4
  import { t as s } from "./SiteShell-DPdTxtJ5.js";
5
5
  import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createTextVNode as h, createVNode as g, guardReactiveProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useId as k, useSlots as A, vModelText as j, vShow as M, watch as N, withCtx as P, withDirectives as F, withModifiers as I } from "vue";
6
6
  import { byId as L, collate as R, entityRef as z, loadEntities as B, md as V, pictureCredits as ee, picturesInLanguage as te, removeEndingPoint as ne, renderBlock as H, renderInline as U, renderPlain as W, useDataPackage as G, useI18n as K, useSection as re, useSiteConfig as q } from "@museumwnf/viewer-core";
@@ -697,12 +697,14 @@ var rt = { class: "mwnf-standalone-related" }, it = { class: "mwnf-standalone-re
697
697
  language: n
698
698
  });
699
699
  let r = W(String(t?.name ?? e?.internal_name ?? ""));
700
- return te(e?.images, n).map((e) => ({
701
- url: e.url,
702
- alt: e.captions?.[n] ?? r,
703
- caption: e.captions?.[n] ?? "",
704
- ...ee(e, n)
705
- }));
700
+ return te(e?.images, n).map((e) => {
701
+ let { photographer: t, copyright: i } = ee(e, n), a = [t ? `${s("record.media.photograph")}: ${t}` : "", i ? `© ${i}` : ""].filter(Boolean).join(", ");
702
+ return {
703
+ url: e.url,
704
+ alt: a || e.captions?.[n] || r,
705
+ caption: e.captions?.[n] ?? ""
706
+ };
707
+ });
706
708
  }
707
709
  let w = l(() => i.back.map((e) => ({
708
710
  ...e,
@@ -726,6 +728,7 @@ var rt = { class: "mwnf-standalone-related" }, it = { class: "mwnf-standalone-re
726
728
  header: P(({ languages: e, language: n, select: r }) => [p("div", ft, [g(t, {
727
729
  languages: e,
728
730
  language: n,
731
+ from: 1,
729
732
  onSelect: r
730
733
  }, null, 8, [
731
734
  "languages",