@museumwnf/viewer-layout 3.59.0 → 3.60.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.
Files changed (29) hide show
  1. package/dist/{FeaturedRecord-CTqnQFox.js → FeaturedRecord-DLYyyRey.js} +2 -3
  2. package/dist/{GlossaryPopover-B7E6BsjS.js → GlossaryPopover-DbQKXhx9.js} +1 -2
  3. package/dist/ItemDetailView-D5T3QXYJ.js +303 -0
  4. package/dist/{OnDisplayIn-DZHRKjL0.js → OnDisplayIn-CCM5Ahxy.js} +10 -5
  5. package/dist/{PageShell-CcaLOuXI.js → PageShell-CPtgzcxv.js} +1 -2
  6. package/dist/{PartnerMap-BIKd-AGP.js → PartnerMap-BuQo_FLl.js} +1 -2
  7. package/dist/{RecordView-DEKHp1A3.js → RecordView-n7bbQUg2.js} +14 -17
  8. package/dist/{SiteShell-CYQxXosD.js → SiteShell-qvsZO4Iz.js} +3 -4
  9. package/dist/{Theme-Co1bf81Z.js → Theme-0bsA_Abx.js} +29 -30
  10. package/dist/{TimelineEventList-CTJJOWGh.js → TimelineEventList-e1fNm28F.js} +3 -4
  11. package/dist/{TimelineResultsView-D15BMWZM.js → TimelineResultsView-Cl_LcM--.js} +264 -255
  12. package/dist/{chrome-DNsZQXrL.js → chrome-Bv_mLlHM.js} +1 -2
  13. package/dist/components.js +1 -2
  14. package/dist/{content-PQeMx8U5.js → content-BzSJircQ.js} +3 -4
  15. package/dist/content.js +6 -6
  16. package/dist/{data-CXRsGwLQ.js → data-EKYeMQcC.js} +16 -11
  17. package/dist/{data-BINc9QjV.js → data-kqAkoQvf.js} +2 -3
  18. package/dist/dxa.js +898 -673
  19. package/dist/index.js +8 -8
  20. package/dist/minisite.js +14 -26
  21. package/dist/standalone.js +209 -217
  22. package/dist/{themeSpecs-DP9xWiVJ.js → themeSpecs-CsDpl4rR.js} +2 -3
  23. package/dist/viewer-layout.css +1 -1
  24. package/dist/views.js +5 -6
  25. package/package.json +10 -10
  26. package/src/dxa/testing.js +71 -42
  27. package/src/styles/dxa-gallery.css +19 -1
  28. package/src/tokens.reference.css +11 -1
  29. package/dist/ItemDetailView-Bbn-uNaR.js +0 -304
@@ -1,6 +1,6 @@
1
- import { d as e } from "./PartnerMap-BIKd-AGP.js";
1
+ import { d as e } from "./PartnerMap-BuQo_FLl.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
- //#region src/content/FeaturedRecord.vue
3
+ // src/content/FeaturedRecord.vue
4
4
  var p = {
5
5
  key: 0,
6
6
  class: "mwnf-featured"
@@ -84,5 +84,4 @@ var p = {
84
84
  }, 8, ["to", "href"])])])) : r("", !0);
85
85
  }
86
86
  };
87
- //#endregion
88
87
  export { x as t };
@@ -1,6 +1,6 @@
1
1
  import { createCommentVNode as e, createElementBlock as t, createElementVNode as n, onBeforeUnmount as r, openBlock as i, ref as a, toDisplayString as o, unref as s, watch as c } from "vue";
2
2
  import { useI18n as l } from "@museumwnf/viewer-core/i18n";
3
- //#region src/content/GlossaryPopover.vue
3
+ // src/content/GlossaryPopover.vue
4
4
  var u = ["aria-label", "dir"], d = { class: "mwnf-popover__title" }, f = ["aria-label"], p = { class: "mwnf-popover__body" }, m = { class: "mwnf-popover__term" }, h = ["innerHTML"], g = {
5
5
  key: 1,
6
6
  class: "mwnf-popover__definition"
@@ -51,5 +51,4 @@ var u = ["aria-label", "dir"], d = { class: "mwnf-popover__title" }, f = ["aria-
51
51
  }, null, 8, h)) : _.term.definition ? (i(), t("p", g, o(_.term.definition), 1)) : e("", !0)])], 8, u)) : e("", !0);
52
52
  }
53
53
  };
54
- //#endregion
55
54
  export { _ as t };
@@ -0,0 +1,303 @@
1
+ import { i as e, n as t, o as n, r, t as i } from "./OnDisplayIn-CCM5Ahxy.js";
2
+ import { n as a } from "./TimelineEventList-e1fNm28F.js";
3
+ import { r as o } from "./PartnerMap-BuQo_FLl.js";
4
+ import { t as s } from "./RecordView-n7bbQUg2.js";
5
+ import { t as c } from "./chrome-Bv_mLlHM.js";
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
+ 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
+ // src/dxa/ItemDetailView.vue
9
+ var k = {
10
+ key: 0,
11
+ class: "mwnf-sheet-source"
12
+ }, A = {
13
+ key: 0,
14
+ class: "mwnf-sheet-source__line"
15
+ }, j = {
16
+ key: 1,
17
+ class: "mwnf-sheet-source__collection"
18
+ }, M = ["href"], N = {
19
+ key: 1,
20
+ class: "mwnf-sheet-notice"
21
+ }, P = {
22
+ key: "museum",
23
+ class: "mwnf-sheet-museum"
24
+ }, F = ["innerHTML"], I = {
25
+ key: 0,
26
+ class: "mwnf-sheet-related"
27
+ }, L = {
28
+ key: 0,
29
+ class: "mwnf-sheet-related__heading mwnf-sheet-related__heading--caps"
30
+ }, R = {
31
+ key: 1,
32
+ class: "mwnf-sheet-related__description"
33
+ }, z = {
34
+ key: 0,
35
+ class: "mwnf-sheet-related__references"
36
+ }, B = {
37
+ key: 2,
38
+ class: "mwnf-sheet-related__unresolved"
39
+ }, V = {
40
+ key: 3,
41
+ class: "mwnf-sheet-related__line"
42
+ }, H = ["href"], U = { key: 7 }, de = { class: "mwnf-sheet-related__heading" }, fe = { key: 8 }, pe = { class: "mwnf-sheet-related__heading" }, me = { class: "mwnf-sheet-related__line" }, W = ["href"], he = { key: 9 }, ge = { class: "mwnf-sheet-related__heading" }, _e = { class: "mwnf-sheet-related__line" }, ve = ["href"], ye = { key: 10 }, be = { class: "mwnf-sheet-related__heading" }, xe = "sheet.field.", G = {
43
+ __name: "ItemDetailView",
44
+ props: {
45
+ spec: {
46
+ type: Object,
47
+ required: !0
48
+ },
49
+ id: {
50
+ type: String,
51
+ required: !0
52
+ },
53
+ entity: {
54
+ type: String,
55
+ default: ""
56
+ },
57
+ dataGetter: {
58
+ type: Function,
59
+ default: null
60
+ }
61
+ },
62
+ setup(G) {
63
+ let K = G, Se = ne(), Ce = /* @__PURE__ */ new Set([
64
+ "before-sheet",
65
+ "museum",
66
+ "related",
67
+ "aside"
68
+ ]), we = u(() => Object.keys(Se).filter((e) => !Ce.has(e))), Te = u(() => !K.dataGetter || K.dataGetter(K.id) != null), { t: q } = ce();
69
+ function Ee(e) {
70
+ if (typeof e != "string" || !e.startsWith(xe)) return e;
71
+ let t = `sheet.dxa.${e.slice(12)}`;
72
+ return q(t) === t ? e : t;
73
+ }
74
+ let J = u(() => Array.isArray(K.spec.fields) ? {
75
+ ...K.spec,
76
+ fields: K.spec.fields.map((e) => ({
77
+ ...e,
78
+ label: Ee(e.label)
79
+ }))
80
+ } : K.spec), Y = le(), X = (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), De = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "gallery").sort(X), Oe = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "exhibition").sort(X), Z = (e) => Y.links(e.project_id)?.artisticIntroductionUrl ?? null, Q = (e) => Y.links(e.project_id)?.relatedDatabaseUrl ?? null;
81
+ function ke(e, t) {
82
+ if (!e) return null;
83
+ let n = J.value.sourceDatabase === !1 ? null : J.value.sourceDatabase ?? null, r = null;
84
+ if (n) {
85
+ let i = n.chipClass ? n.chipClass(e, t) : null, a = Y.label(e.project_id);
86
+ (i || a) && (r = {
87
+ chipClass: i,
88
+ name: a,
89
+ label: q(n.label ?? "record.sheet.sourceDatabase")
90
+ });
91
+ }
92
+ let i = n && n.addToCollection !== !1 ? q(n.addToCollection?.label ?? "record.action.addToCollection") : null, a = J.value.notice === !1 ? null : J.value.notice ?? null, o = a && a.show(e, t) ? q(a.label) : null;
93
+ return {
94
+ source: r,
95
+ addToCollectionLabel: i,
96
+ notice: o
97
+ };
98
+ }
99
+ let $ = se(), Ae = E("partners"), je = E("countries");
100
+ ie(["partners", "countries"]), $.loadTranslations("countries", "en");
101
+ function Me(e, t) {
102
+ let n = $.tr("countries", e, t, "en");
103
+ return ae(n.name ?? je.value?.get(e)?.internal_name ?? "");
104
+ }
105
+ function Ne(e) {
106
+ let t = e.text?.holder ? D(String(e.text.holder)) : "", n = J.value.museum === !1 ? null : J.value.museum ?? null, r = n ? Ae.value?.get(e.record?.partner_id) : null;
107
+ return {
108
+ holder: t,
109
+ view: r ? oe(r, $.tr("partners", r.id, e.language, "en"), {
110
+ countryLabel: (t) => Me(t, e.language),
111
+ route: (t) => n.route ? n.route(t.id, e) : null
112
+ }) : null
113
+ };
114
+ }
115
+ function Pe(e, t) {
116
+ if (!e) return null;
117
+ let n = J.value.related ?? {}, r = t.records ?? [], i = t.outside ?? [], a = K.dataGetter ? r.filter((e) => K.dataGetter(e.id) != null) : r, o = K.dataGetter ? r.filter((e) => K.dataGetter(e.id) == null).map((t) => (e.related_items ?? []).find((e) => e.id === t.id)).filter(Boolean) : [], s = [...i, ...o].map((e) => ({
118
+ ...e,
119
+ name: e.project_id ? Y.label(e.project_id) : null,
120
+ chipClass: n.outsideChip ? n.outsideChip(e, t) : null
121
+ })), c = (e) => ({
122
+ id: e.id,
123
+ label: D(e.name ?? ""),
124
+ href: e.legacy_host || "",
125
+ external: !!e.legacy_host
126
+ }), l = n.onDisplayIn && n.onDisplayIn !== !1 ? {
127
+ pendingLabel: n.onDisplayIn.linkPendingLabel ?? "",
128
+ groups: [{
129
+ heading: "record.related.exhibitions",
130
+ links: Oe(e).map(c)
131
+ }, {
132
+ heading: "record.related.galleries",
133
+ links: De(e).map(c)
134
+ }].filter((e) => e.links.length)
135
+ } : null, u = n.databaseLabel && Q(e) ? {
136
+ url: Q(e),
137
+ label: q(n.databaseLabel),
138
+ name: Y.label(e.project_id)
139
+ } : null, d = n.overallDatabase && n.overallDatabase !== !1 ? {
140
+ label: q(n.overallDatabase.label),
141
+ linkLabel: q(n.overallDatabase.linkLabel)
142
+ } : null;
143
+ return {
144
+ title: n.title ? q(n.title) : "",
145
+ description: n.description ? q(n.description) : "",
146
+ heading: q(n.heading ?? "record.related.items"),
147
+ variant: n.variant ?? "grid",
148
+ actionLabel: n.actionLabel ? q(n.actionLabel) : "",
149
+ inPackage: a,
150
+ references: s,
151
+ notInPackageLabel: n.notInPackageLabel ? q(n.notInPackageLabel) : "",
152
+ artisticIntroduction: n.artisticIntroductionLabel && Z(e) ? {
153
+ url: Z(e),
154
+ label: q(n.artisticIntroductionLabel)
155
+ } : null,
156
+ timeline: n.timeline ? n.timeline(e, t) : null,
157
+ glossary: n.glossary !== !1,
158
+ dynasties: n.dynasties ? n.dynasties(e, t.language, t) : null,
159
+ media: n.media === !1 ? [] : e.media ?? [],
160
+ onDisplayIn: l,
161
+ database: u,
162
+ overallDatabase: d,
163
+ download: n.download === !1 ? null : {
164
+ label: q("record.action.download"),
165
+ pdfLabel: q("record.action.downloadPdf")
166
+ }
167
+ };
168
+ }
169
+ let Fe = ue(), Ie = u(() => {
170
+ let e = c(Fe.chrome, "world.png");
171
+ return e ? { "--mwnf-dxa-glossary-image": `url("${e}")` } : null;
172
+ });
173
+ function Le() {
174
+ window.print();
175
+ }
176
+ return (c, u) => Te.value ? (b(), d(s, {
177
+ key: 0,
178
+ spec: J.value,
179
+ id: G.id,
180
+ entity: G.entity,
181
+ style: te(Ie.value)
182
+ }, ee({
183
+ "before-sheet": T((e) => [S(c.$slots, "before-sheet", y(_(e)), () => [(b(!0), p(l, null, x([ke(e.record, e)], (t) => (b(), p(l, { key: "before-sheet" }, [t?.source || t?.addToCollectionLabel ? (b(), p("div", k, [t.source ? (b(), p("p", A, [t.source.chipClass ? (b(), p("span", {
184
+ key: 0,
185
+ class: v(["mwnf-chip", t.source.chipClass]),
186
+ "aria-hidden": "true"
187
+ }, null, 2)) : f("", !0), t.source.name ? (b(), p(l, { key: 1 }, [h(C(t.source.label) + ": " + C(t.source.name), 1)], 64)) : f("", !0)])) : f("", !0), t.addToCollectionLabel ? (b(), p("p", j, [m("a", {
188
+ href: w(O).myCollection,
189
+ target: "_blank",
190
+ rel: "noopener"
191
+ }, "↗ " + C(t.addToCollectionLabel), 9, M)])) : f("", !0)])) : f("", !0), t?.notice ? (b(), p("div", N, [h(C(t.notice) + " ", 1), m("strong", null, [m("em", null, C(e.languages.map((e) => e.label).join(", ")), 1)])])) : f("", !0)], 64))), 128))])]),
192
+ museum: T((e) => [S(c.$slots, "museum", y(_(e)), () => [(b(!0), p(l, null, x([Ne(e)], (t) => (b(), p("div", P, [t.holder ? (b(), p("p", {
193
+ key: 0,
194
+ class: "mwnf-sheet-museum__holder",
195
+ innerHTML: t.holder
196
+ }, null, 8, F)) : f("", !0), t.view ? (b(), d(a, {
197
+ key: 1,
198
+ variant: "summary",
199
+ partner: t.view,
200
+ label: "partner.info.about",
201
+ dir: e.dir
202
+ }, null, 8, ["partner", "dir"])) : f("", !0)]))), 128))])]),
203
+ related: T(() => []),
204
+ aside: T((a) => [S(c.$slots, "related", y(_(a)), () => [(b(!0), p(l, null, x([Pe(a.record, a)], (s) => (b(), p(l, { key: a.record?.id ?? "related" }, [s ? (b(), p("div", I, [
205
+ s.title ? (b(), p("p", L, C(s.title), 1)) : f("", !0),
206
+ s.description ? (b(), p("p", R, C(s.description), 1)) : f("", !0),
207
+ s.inPackage.length || s.references.length ? (b(), d(o, {
208
+ key: 2,
209
+ heading: s.heading,
210
+ records: s.inPackage,
211
+ variant: s.variant,
212
+ "action-label": s.actionLabel
213
+ }, {
214
+ default: T(() => [s.references.length ? (b(), p("ul", z, [(b(!0), p(l, null, x(s.references, (e) => (b(), p("li", { key: e.id }, [
215
+ e.chipClass ? (b(), p("span", {
216
+ key: 0,
217
+ class: v(["mwnf-chip", e.chipClass]),
218
+ "aria-hidden": "true"
219
+ }, null, 2)) : f("", !0),
220
+ e.name ? (b(), p(l, { key: 1 }, [h(C(e.name), 1)], 64)) : f("", !0),
221
+ s.notInPackageLabel ? (b(), p("span", B, C(s.notInPackageLabel), 1)) : f("", !0)
222
+ ]))), 128))])) : f("", !0)]),
223
+ _: 2
224
+ }, 1032, [
225
+ "heading",
226
+ "records",
227
+ "variant",
228
+ "action-label"
229
+ ])) : f("", !0),
230
+ s.artisticIntroduction ? (b(), p("p", V, [m("a", {
231
+ href: s.artisticIntroduction.url,
232
+ target: "_blank",
233
+ rel: "noopener"
234
+ }, "↗ " + C(s.artisticIntroduction.label), 9, H)])) : f("", !0),
235
+ s.timeline ? (b(), d(r, {
236
+ key: a.record.id,
237
+ info: s.timeline
238
+ }, null, 8, ["info"])) : f("", !0),
239
+ s.glossary ? (b(), d(n, {
240
+ key: 5,
241
+ language: a.language,
242
+ dir: a.dir
243
+ }, null, 8, ["language", "dir"])) : f("", !0),
244
+ s.dynasties?.records?.length ? (b(), d(e, {
245
+ key: 6,
246
+ heading: w(q)("record.dynasty.list"),
247
+ dynasties: s.dynasties.records,
248
+ tr: s.dynasties.tr,
249
+ dir: a.dir
250
+ }, null, 8, [
251
+ "heading",
252
+ "dynasties",
253
+ "tr",
254
+ "dir"
255
+ ])) : f("", !0),
256
+ g(t, {
257
+ media: s.media,
258
+ language: a.language,
259
+ descriptions: !1,
260
+ dir: a.dir
261
+ }, null, 8, [
262
+ "media",
263
+ "language",
264
+ "dir"
265
+ ]),
266
+ s.onDisplayIn?.groups.length ? (b(), p("div", U, [m("p", de, C(w(q)("record.related.onDisplayIn")), 1), g(i, {
267
+ heading: "",
268
+ groups: s.onDisplayIn.groups,
269
+ "pending-label": s.onDisplayIn.pendingLabel,
270
+ dir: a.dir
271
+ }, null, 8, [
272
+ "groups",
273
+ "pending-label",
274
+ "dir"
275
+ ])])) : f("", !0),
276
+ s.database ? (b(), p("div", fe, [m("p", pe, C(s.database.label), 1), m("p", me, [m("a", {
277
+ href: s.database.url,
278
+ target: "_blank",
279
+ rel: "noopener"
280
+ }, "↗ " + C(s.database.name), 9, W)])])) : f("", !0),
281
+ s.overallDatabase ? (b(), p("div", he, [m("p", ge, C(s.overallDatabase.label), 1), m("p", _e, [m("a", {
282
+ href: w(O).overallDatabase,
283
+ target: "_blank",
284
+ rel: "noopener"
285
+ }, "↗ " + C(s.overallDatabase.linkLabel), 9, ve)])])) : f("", !0),
286
+ s.download ? (b(), p("div", ye, [m("p", be, C(s.download.label), 1), m("p", {
287
+ class: "mwnf-sheet-related__line mwnf-sheet-related__line--action",
288
+ onClick: Le
289
+ }, "➤ " + C(s.download.pdfLabel), 1)])) : f("", !0)
290
+ ])) : f("", !0)], 64))), 128))])]),
291
+ _: 2
292
+ }, [x(we.value, (e) => ({
293
+ name: e,
294
+ fn: T((t) => [S(c.$slots, e, y(_(t)))])
295
+ }))]), 1032, [
296
+ "spec",
297
+ "id",
298
+ "entity",
299
+ "style"
300
+ ])) : (b(), d(w(re), { key: 1 }));
301
+ }
302
+ };
303
+ export { G as t };
@@ -1,9 +1,9 @@
1
- import { d as e, o as t } from "./PartnerMap-BIKd-AGP.js";
1
+ import { d as e, o as t } from "./PartnerMap-BuQo_FLl.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, renderInline as O, searchGlossary as ee } from "@museumwnf/viewer-core";
5
5
  import { useRouter as k } from "vue-router";
6
- //#region src/content/BackLink.vue
6
+ // src/content/BackLink.vue
7
7
  var A = ["href"], te = {
8
8
  class: "mwnf-back-bar__arrow",
9
9
  "aria-hidden": "true"
@@ -62,13 +62,19 @@ var A = ["href"], te = {
62
62
  href: t.href,
63
63
  class: "mwnf-back-link__button"
64
64
  }, {
65
- default: S(() => [c(" ↩ " + _(n.$t(t.label)), 1)]),
65
+ default: S(() => [r[1] ||= s("span", {
66
+ class: "mwnf-back-link__arrow",
67
+ "aria-hidden": "true"
68
+ }, "↩", -1), c(_(n.$t(t.label)), 1)]),
66
69
  _: 1
67
70
  }, 8, ["to", "href"])) : (f(), o("button", {
68
71
  key: 1,
69
72
  class: "mwnf-back-link__button",
70
73
  onClick: d
71
- }, " ↩ " + _(n.$t(t.label)), 1))]));
74
+ }, [r[2] ||= s("span", {
75
+ class: "mwnf-back-link__arrow",
76
+ "aria-hidden": "true"
77
+ }, "↩", -1), c(_(n.$t(t.label)), 1)]))]));
72
78
  }
73
79
  }, M = ["dir"], N = { class: "mwnf-glossary-tool__toggle" }, P = { class: "mwnf-glossary-tool__panel" }, F = { class: "mwnf-glossary-tool__heading" }, I = { class: "mwnf-glossary-tool__instructions" }, L = ["aria-expanded", "aria-label"], R = {
74
80
  key: 0,
@@ -402,5 +408,4 @@ var A = ["href"], te = {
402
408
  }, 16, ["dir"])) : a("", !0);
403
409
  }
404
410
  };
405
- //#endregion
406
411
  export { Q as a, ue as i, we as n, W as o, xe as r, j as s, Ae as t };
@@ -1,6 +1,6 @@
1
1
  import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, normalizeClass as l, openBlock as u, ref as d, renderList as f, renderSlot as p, resolveDynamicComponent as m, toDisplayString as h, unref as g, useSlots as _, vModelText as v, withCtx as y, withDirectives as b, withModifiers as x } from "vue";
2
2
  import { renderBlock as S, useI18n as C } from "@museumwnf/viewer-core/i18n";
3
- //#region src/sections/AppHeader.vue
3
+ // src/sections/AppHeader.vue
4
4
  var w = {
5
5
  key: 0,
6
6
  class: "mwnf-header"
@@ -1157,5 +1157,4 @@ var w = {
1157
1157
  ]));
1158
1158
  }
1159
1159
  };
1160
- //#endregion
1161
1160
  export { Y as a, K as c, $e as i, G as l, $ as n, J as o, Z as r, q as s, ft as t, I as u };
@@ -2,7 +2,7 @@ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r
2
2
  import { useI18n as C } from "@museumwnf/viewer-core/i18n";
3
3
  import { renderInline as w, sourceUrl as T } from "@museumwnf/viewer-core";
4
4
  import { useRoute as E } from "vue-router";
5
- //#region src/content/SmartLink.vue
5
+ // src/content/SmartLink.vue
6
6
  var D = [
7
7
  "href",
8
8
  "target",
@@ -710,5 +710,4 @@ var D = [
710
710
  ], 2)) : r("", !0);
711
711
  }
712
712
  };
713
- //#endregion
714
713
  export { Ve as a, re as c, O as d, Ge as i, Z as l, ut as n, Ee as o, Je as r, Se as s, ht as t, L as u };
@@ -1,10 +1,10 @@
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";
1
+ import { t as e } from "./GlossaryPopover-DbQKXhx9.js";
2
+ import { a as t, c as n, d as r, i, n as ee, o as te, r as ne, s as re } from "./PartnerMap-BuQo_FLl.js";
3
3
  import { Fragment as ie, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as ae, createTextVNode as oe, createVNode as u, guardReactiveProps as d, mergeProps as se, normalizeClass as ce, normalizeProps as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, useSlots as le, watch as y, withCtx as ue } from "vue";
4
4
  import { useI18n as b } from "@museumwnf/viewer-core/i18n";
5
5
  import { NotFoundView as de, byId as x, citation as fe, creditLine as pe, entityRef as me, languageLabels as he, loadEntities as ge, pictureCredits as _e, picturesInLanguage as ve, renderBlock as S, renderInline as C, renderPlain as ye, sheetRows as be, sourceUrl as xe, useDataPackage as Se, useGlossaryPopup as Ce, useI18n as we, useProjects as Te, useRecordSheet as Ee, useRelatedRecords as De } from "@museumwnf/viewer-core";
6
6
  import { useRoute as Oe } from "vue-router";
7
- //#region src/content/ShortDescription.vue
7
+ // src/content/ShortDescription.vue
8
8
  var w = ["dir"], ke = ["aria-expanded"], T = ["innerHTML"], Ae = {
9
9
  __name: "ShortDescription",
10
10
  props: {
@@ -36,14 +36,12 @@ var w = ["dir"], ke = ["aria-expanded"], T = ["innerHTML"], Ae = {
36
36
  }, null, 8, T)) : s("", !0)], 8, w));
37
37
  }
38
38
  };
39
- //#endregion
40
- //#region src/views/pictureLimit.js
39
+ // src/views/pictureLimit.js
41
40
  function E(e, t, n) {
42
41
  let r = typeof t == "function" ? t(n) : t;
43
42
  return Number.isInteger(r) && r > 0 ? e.slice(0, r) : e;
44
43
  }
45
- //#endregion
46
- //#region src/views/RecordView.vue
44
+ // src/views/RecordView.vue
47
45
  var je = ["dir", "innerHTML"], Me = { class: "mwnf-record__body" }, Ne = { class: "mwnf-record__main" }, Pe = {
48
46
  key: 1,
49
47
  class: "mwnf-record__status"
@@ -223,7 +221,7 @@ var je = ["dir", "innerHTML"], Me = { class: "mwnf-record__body" }, Ne = { class
223
221
  onClick: m[0] ||= (...e) => v(V) && v(V)(...e)
224
222
  }, [
225
223
  g(a.$slots, "header", f(d(W.value)), () => [
226
- k.value.back ? (p(), o(n, {
224
+ k.value.back ? (p(), o(r, {
227
225
  key: 0,
228
226
  class: "mwnf-record__back",
229
227
  to: k.value.back.to,
@@ -232,7 +230,7 @@ var je = ["dir", "innerHTML"], Me = { class: "mwnf-record__body" }, Ne = { class
232
230
  default: ue(() => [oe("← " + _(v(b)(k.value.back.label)), 1)]),
233
231
  _: 1
234
232
  }, 8, ["to", "href"])) : s("", !0),
235
- u(t, {
233
+ u(n, {
236
234
  languages: z.value,
237
235
  language: v(M),
238
236
  onSelect: v(P)
@@ -248,14 +246,14 @@ var je = ["dir", "innerHTML"], Me = { class: "mwnf-record__body" }, Ne = { class
248
246
  }, null, 8, je)
249
247
  ]),
250
248
  l("div", Me, [l("div", Ne, [
251
- Xe.value.length ? (p(), o(i, {
249
+ Xe.value.length ? (p(), o(ee, {
252
250
  key: 0,
253
251
  images: Xe.value,
254
252
  variant: k.value.mediaVariant ?? ""
255
253
  }, null, 8, ["images", "variant"])) : s("", !0),
256
254
  v(I) ? s("", !0) : (p(), c("p", Pe, _(v(b)("core.status.loading")), 1)),
257
255
  g(a.$slots, "before-sheet", f(d(W.value))),
258
- u(ne, {
256
+ u(re, {
259
257
  rows: q.value,
260
258
  layout: k.value.layout ?? "table",
261
259
  dir: v(N),
@@ -275,7 +273,7 @@ var je = ["dir", "innerHTML"], Me = { class: "mwnf-record__body" }, Ne = { class
275
273
  "short-description-after"
276
274
  ]),
277
275
  (p(!0), c(ie, null, h(J.value, (e) => (p(), c(ie, { key: e.key }, [
278
- u(ee, {
276
+ u(te, {
279
277
  heading: e.label,
280
278
  html: e.html,
281
279
  dir: v(N)
@@ -292,7 +290,7 @@ var je = ["dir", "innerHTML"], Me = { class: "mwnf-record__body" }, Ne = { class
292
290
  g(a.$slots, `after-${e.key}`, se({ ref_for: !0 }, W.value))
293
291
  ], 64))), 128)),
294
292
  g(a.$slots, "after-sheet", f(d(W.value))),
295
- u(e, {
293
+ u(t, {
296
294
  credits: tt.value,
297
295
  "working-number": nt.value,
298
296
  "working-number-label": G(k.value.workingNumberLabel ?? "sheet.field.workingNumber"),
@@ -307,12 +305,12 @@ var je = ["dir", "innerHTML"], Me = { class: "mwnf-record__body" }, Ne = { class
307
305
  "citation-html",
308
306
  "citation-heading"
309
307
  ]),
310
- g(a.$slots, "source", f(d(W.value)), () => [u(r)]),
308
+ g(a.$slots, "source", f(d(W.value)), () => [u(i)]),
311
309
  g(a.$slots, "related", f(d({
312
310
  ...W.value,
313
311
  records: $.value,
314
312
  outside: v(Z).outside
315
- })), () => [Q.value ? (p(), o(te, {
313
+ })), () => [Q.value ? (p(), o(ne, {
316
314
  key: 0,
317
315
  heading: v(b)(Q.value.heading ?? "record.related.items"),
318
316
  records: $.value,
@@ -330,7 +328,7 @@ var je = ["dir", "innerHTML"], Me = { class: "mwnf-record__body" }, Ne = { class
330
328
  outside: v(Z).outside
331
329
  })))])) : s("", !0)]),
332
330
  g(a.$slots, "after", f(d(W.value))),
333
- u(re, {
331
+ u(e, {
334
332
  term: v(B),
335
333
  html: Ke.value,
336
334
  dir: v(N),
@@ -344,5 +342,4 @@ var je = ["dir", "innerHTML"], Me = { class: "mwnf-record__body" }, Ne = { class
344
342
  ], 2)) : (p(), c("p", Ie, _(v(b)("core.status.loading")), 1));
345
343
  }
346
344
  };
347
- //#endregion
348
345
  export { E as n, D as t };
@@ -1,9 +1,9 @@
1
- import { t as e } from "./PageShell-CcaLOuXI.js";
2
- import { r as t } from "./chrome-DNsZQXrL.js";
1
+ import { t as e } from "./PageShell-CPtgzcxv.js";
2
+ import { r as t } from "./chrome-Bv_mLlHM.js";
3
3
  import { computed as n, createBlock as r, createSlots as i, mergeProps as a, openBlock as o, renderSlot as s, useAttrs as c, withCtx as l } from "vue";
4
4
  import { mwnfLinks as u, useI18n as d, useSection as f, useSiteConfig as p, useSiteRights as m } from "@museumwnf/viewer-core";
5
5
  import { useRouter as h } from "vue-router";
6
- //#region src/components/SiteShell.vue
6
+ // src/components/SiteShell.vue
7
7
  var g = /*@__PURE__*/ Object.assign({ inheritAttrs: !1 }, {
8
8
  __name: "SiteShell",
9
9
  props: {
@@ -191,5 +191,4 @@ var g = /*@__PURE__*/ Object.assign({ inheritAttrs: !1 }, {
191
191
  ]), 1040));
192
192
  }
193
193
  });
194
- //#endregion
195
194
  export { g as t };