@museumwnf/viewer-layout 3.84.0 → 3.85.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.
- package/dist/{LegacyItemSheet-YTByn-Aa.js → LegacyItemSheet-Bk-3fiQP.js} +75 -66
- package/dist/OnDisplayIn-Ct8xxMwQ.js +422 -0
- package/dist/content.js +1 -1
- package/dist/{data-CxiuR3R_.js → data-gT947pBe.js} +2 -2
- package/dist/dxa.js +602 -587
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/OnDisplayIn-BH3Bqope.js +0 -418
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
import { d as e, o as t } from "./PartnerMap-DdyMLtgH.js";
|
|
2
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, renderList as p, renderSlot as m, resolveDynamicComponent as h, toDisplayString as g, unref as _, vModelSelect as v, vModelText as y, watch as b, withCtx as x, withDirectives as S, withKeys as C } from "vue";
|
|
3
|
+
import { useI18n as w } from "@museumwnf/viewer-core/i18n";
|
|
4
|
+
import { md as T, mdInline as E, renderInline as D, searchGlossary as O } from "@museumwnf/viewer-core";
|
|
5
|
+
import { useRouter as k } from "vue-router";
|
|
6
|
+
// src/content/BackLink.vue
|
|
7
|
+
var A = ["href"], j = {
|
|
8
|
+
class: "mwnf-back-bar__arrow",
|
|
9
|
+
"aria-hidden": "true"
|
|
10
|
+
}, ee = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "mwnf-back-link"
|
|
13
|
+
}, te = {
|
|
14
|
+
__name: "BackLink",
|
|
15
|
+
props: {
|
|
16
|
+
label: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "core.action.back"
|
|
19
|
+
},
|
|
20
|
+
to: {
|
|
21
|
+
type: [String, Object],
|
|
22
|
+
default: null
|
|
23
|
+
},
|
|
24
|
+
href: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
variant: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "button",
|
|
31
|
+
validator: (e) => ["button", "bar"].includes(e)
|
|
32
|
+
},
|
|
33
|
+
arrow: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "←"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
setup(t) {
|
|
39
|
+
let n = k(), a = t, l = r(() => !!(a.to || a.href));
|
|
40
|
+
function u() {
|
|
41
|
+
return window.history.state?.back != null || !l.value && window.history.length > 1;
|
|
42
|
+
}
|
|
43
|
+
function f() {
|
|
44
|
+
u() && n.back();
|
|
45
|
+
}
|
|
46
|
+
let p = r(() => a.to && n ? n.resolve(a.to).href : a.href || (typeof a.to == "string" ? a.to : "") || "#");
|
|
47
|
+
function h(e) {
|
|
48
|
+
e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (u() ? (e.preventDefault(), n.back()) : a.to && n ? (e.preventDefault(), n.push(a.to)) : l.value || e.preventDefault());
|
|
49
|
+
}
|
|
50
|
+
return (n, r) => t.variant === "bar" ? (d(), o("a", {
|
|
51
|
+
key: 0,
|
|
52
|
+
href: p.value,
|
|
53
|
+
class: "mwnf-back-bar mwnf-back-bar--link",
|
|
54
|
+
onClick: h
|
|
55
|
+
}, [
|
|
56
|
+
s("span", j, g(t.arrow), 1),
|
|
57
|
+
r[0] ||= c(),
|
|
58
|
+
m(n.$slots, "default", {}, () => [c(g(n.$t(t.label)), 1)])
|
|
59
|
+
], 8, A)) : (d(), o("div", ee, [l.value && !u() ? (d(), i(e, {
|
|
60
|
+
key: 0,
|
|
61
|
+
to: t.to,
|
|
62
|
+
href: t.href,
|
|
63
|
+
class: "mwnf-back-link__button"
|
|
64
|
+
}, {
|
|
65
|
+
default: x(() => [r[1] ||= s("span", {
|
|
66
|
+
class: "mwnf-back-link__arrow",
|
|
67
|
+
"aria-hidden": "true"
|
|
68
|
+
}, "↩", -1), c(g(n.$t(t.label)), 1)]),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 8, ["to", "href"])) : (d(), o("button", {
|
|
71
|
+
key: 1,
|
|
72
|
+
class: "mwnf-back-link__button",
|
|
73
|
+
onClick: f
|
|
74
|
+
}, [r[2] ||= s("span", {
|
|
75
|
+
class: "mwnf-back-link__arrow",
|
|
76
|
+
"aria-hidden": "true"
|
|
77
|
+
}, "↩", -1), c(g(n.$t(t.label)), 1)]))]));
|
|
78
|
+
}
|
|
79
|
+
}, ne = ["dir"], M = { class: "mwnf-glossary-tool__toggle" }, N = { class: "mwnf-glossary-tool__panel" }, P = { class: "mwnf-glossary-tool__heading" }, F = { class: "mwnf-glossary-tool__instructions" }, I = ["aria-expanded", "aria-label"], L = {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: "mwnf-glossary-tool__hits",
|
|
82
|
+
role: "listbox"
|
|
83
|
+
}, R = [
|
|
84
|
+
"aria-selected",
|
|
85
|
+
"onClick",
|
|
86
|
+
"onKeydown"
|
|
87
|
+
], z = {
|
|
88
|
+
key: 1,
|
|
89
|
+
class: "mwnf-glossary-tool__no-results"
|
|
90
|
+
}, B = {
|
|
91
|
+
key: 2,
|
|
92
|
+
class: "mwnf-glossary-tool__definition"
|
|
93
|
+
}, V = { class: "mwnf-glossary-tool__definition-label" }, H = ["innerHTML"], U = {
|
|
94
|
+
__name: "GlossaryTool",
|
|
95
|
+
props: {
|
|
96
|
+
language: {
|
|
97
|
+
type: String,
|
|
98
|
+
default: ""
|
|
99
|
+
},
|
|
100
|
+
entity: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: "glossary"
|
|
103
|
+
},
|
|
104
|
+
labels: {
|
|
105
|
+
type: Object,
|
|
106
|
+
default: () => ({})
|
|
107
|
+
},
|
|
108
|
+
dir: {
|
|
109
|
+
type: String,
|
|
110
|
+
default: ""
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
setup(e) {
|
|
114
|
+
let t = e, i = {
|
|
115
|
+
tool: "record.glossary.tool",
|
|
116
|
+
heading: "record.glossary.heading",
|
|
117
|
+
instructions: "record.glossary.instructions",
|
|
118
|
+
definition: "record.glossary.definition",
|
|
119
|
+
close: "record.glossary.close",
|
|
120
|
+
...t.labels
|
|
121
|
+
}, { t: c } = w(), l = f(""), m = f(null), h = f(-1), v = r(() => l.value.trim() ? O(l.value, t.language, { entity: t.entity }) : []), b = r(() => v.value.length > 0 && !m.value), x = r(() => m.value ? T(m.value.definition) : ""), E = r(() => i.noResults ? c(i.noResults) : ""), D = r(() => !!E.value && l.value.trim() && !m.value && v.value.length === 0);
|
|
122
|
+
function k() {
|
|
123
|
+
m.value = null, h.value = -1;
|
|
124
|
+
}
|
|
125
|
+
function A(e) {
|
|
126
|
+
m.value = e, l.value = e.spelling, h.value = -1;
|
|
127
|
+
}
|
|
128
|
+
function j(e) {
|
|
129
|
+
b.value && (e.key === "ArrowDown" ? (e.preventDefault(), h.value = (h.value + 1) % v.value.length) : e.key === "ArrowUp" ? (e.preventDefault(), h.value = (h.value - 1 + v.value.length) % v.value.length) : e.key === "Enter" && h.value >= 0 ? (e.preventDefault(), A(v.value[h.value])) : e.key === "Escape" && (h.value = -1));
|
|
130
|
+
}
|
|
131
|
+
return (t, r) => (d(), o("details", {
|
|
132
|
+
class: "mwnf-glossary-tool",
|
|
133
|
+
dir: e.dir || void 0
|
|
134
|
+
}, [s("summary", M, g(_(c)(i.tool)), 1), s("div", N, [
|
|
135
|
+
s("p", P, g(_(c)(i.heading)), 1),
|
|
136
|
+
s("p", F, g(_(c)(i.instructions)), 1),
|
|
137
|
+
S(s("input", {
|
|
138
|
+
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
139
|
+
type: "text",
|
|
140
|
+
class: "mwnf-glossary-tool__input",
|
|
141
|
+
role: "combobox",
|
|
142
|
+
"aria-autocomplete": "list",
|
|
143
|
+
"aria-expanded": b.value,
|
|
144
|
+
"aria-label": _(c)(i.heading),
|
|
145
|
+
onInput: k,
|
|
146
|
+
onKeydown: j
|
|
147
|
+
}, null, 40, I), [[y, l.value]]),
|
|
148
|
+
b.value ? (d(), o("ul", L, [(d(!0), o(n, null, p(v.value, (e, t) => (d(), o("li", {
|
|
149
|
+
key: e.id,
|
|
150
|
+
role: "option",
|
|
151
|
+
"aria-selected": t === h.value,
|
|
152
|
+
tabindex: "0",
|
|
153
|
+
class: u(["mwnf-glossary-tool__hit", { "mwnf-glossary-tool__hit--active": t === h.value }]),
|
|
154
|
+
onClick: (t) => A(e),
|
|
155
|
+
onKeydown: C((t) => A(e), ["enter"])
|
|
156
|
+
}, g(e.spelling), 43, R))), 128))])) : D.value ? (d(), o("p", z, g(E.value), 1)) : a("", !0),
|
|
157
|
+
m.value ? (d(), o("div", B, [s("p", V, g(_(c)(i.definition)), 1), s("div", {
|
|
158
|
+
class: "mwnf-sheet__block",
|
|
159
|
+
innerHTML: x.value
|
|
160
|
+
}, null, 8, H)])) : a("", !0)
|
|
161
|
+
])], 8, ne));
|
|
162
|
+
}
|
|
163
|
+
}, W = ["dir"], G = ["innerHTML"], K = { class: "mwnf-dynasty__body" }, q = { class: "mwnf-dynasty__eyebrow" }, J = {
|
|
164
|
+
key: 0,
|
|
165
|
+
class: "mwnf-dynasty__field"
|
|
166
|
+
}, Y = { class: "mwnf-dynasty__label" }, X = {
|
|
167
|
+
key: 1,
|
|
168
|
+
class: "mwnf-dynasty__field"
|
|
169
|
+
}, Z = { class: "mwnf-dynasty__label" }, re = {
|
|
170
|
+
key: 2,
|
|
171
|
+
class: "mwnf-dynasty__dates"
|
|
172
|
+
}, ie = {
|
|
173
|
+
key: 3,
|
|
174
|
+
class: "mwnf-dynasty__history"
|
|
175
|
+
}, ae = { class: "mwnf-dynasty__label" }, oe = ["innerHTML"], Q = {
|
|
176
|
+
__name: "DynastyPopout",
|
|
177
|
+
props: {
|
|
178
|
+
dynasty: {
|
|
179
|
+
type: Object,
|
|
180
|
+
required: !0
|
|
181
|
+
},
|
|
182
|
+
text: {
|
|
183
|
+
type: Object,
|
|
184
|
+
default: () => ({})
|
|
185
|
+
},
|
|
186
|
+
dir: {
|
|
187
|
+
type: String,
|
|
188
|
+
default: ""
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
setup(e) {
|
|
192
|
+
let t = e, { t: n } = w(), i = r(() => {
|
|
193
|
+
let { from_ad: e, to_ad: n, from_ah: r, to_ah: i } = t.dynasty ?? {};
|
|
194
|
+
return e == null && n == null ? "" : `${r != null || i != null ? `AH ${r ?? "?"}–${i ?? "?"} / ` : ""}AD ${e ?? "?"}–${n ?? "?"}`;
|
|
195
|
+
});
|
|
196
|
+
return (t, r) => (d(), o("details", {
|
|
197
|
+
class: "mwnf-dynasty",
|
|
198
|
+
dir: e.dir || void 0
|
|
199
|
+
}, [s("summary", {
|
|
200
|
+
class: "mwnf-dynasty__summary",
|
|
201
|
+
innerHTML: _(E)(e.text.name || e.dynasty.id)
|
|
202
|
+
}, null, 8, G), s("div", K, [
|
|
203
|
+
s("p", q, g(_(n)("record.dynasty.heading")), 1),
|
|
204
|
+
e.text.also_known_as ? (d(), o("p", J, [s("span", Y, g(_(n)("sheet.field.alsoKnownAs")) + ":", 1), c(" " + g(e.text.also_known_as), 1)])) : a("", !0),
|
|
205
|
+
e.text.area ? (d(), o("p", X, [s("span", Z, g(_(n)("sheet.field.area")) + ":", 1), c(" " + g(e.text.area), 1)])) : a("", !0),
|
|
206
|
+
i.value ? (d(), o("p", re, g(i.value), 1)) : a("", !0),
|
|
207
|
+
e.text.history ? (d(), o("div", ie, [s("p", ae, g(_(n)("sheet.field.history")), 1), s("div", {
|
|
208
|
+
class: "mwnf-sheet__block",
|
|
209
|
+
innerHTML: _(T)(e.text.history)
|
|
210
|
+
}, null, 8, oe)])) : a("", !0)
|
|
211
|
+
])], 8, W));
|
|
212
|
+
}
|
|
213
|
+
}, se = ["dir"], ce = {
|
|
214
|
+
key: 0,
|
|
215
|
+
class: "mwnf-dynasty-list__heading"
|
|
216
|
+
}, le = {
|
|
217
|
+
__name: "DynastyList",
|
|
218
|
+
props: {
|
|
219
|
+
heading: {
|
|
220
|
+
type: String,
|
|
221
|
+
default: ""
|
|
222
|
+
},
|
|
223
|
+
dynasties: {
|
|
224
|
+
type: Array,
|
|
225
|
+
default: () => []
|
|
226
|
+
},
|
|
227
|
+
tr: {
|
|
228
|
+
type: Function,
|
|
229
|
+
default: null
|
|
230
|
+
},
|
|
231
|
+
dir: {
|
|
232
|
+
type: String,
|
|
233
|
+
default: ""
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
setup(e) {
|
|
237
|
+
return (t, r) => e.dynasties.length ? (d(), o("section", {
|
|
238
|
+
key: 0,
|
|
239
|
+
class: "mwnf-dynasty-list",
|
|
240
|
+
dir: e.dir || void 0
|
|
241
|
+
}, [e.heading ? (d(), o("h2", ce, g(e.heading), 1)) : a("", !0), (d(!0), o(n, null, p(e.dynasties, (t) => (d(), i(Q, {
|
|
242
|
+
key: t.id,
|
|
243
|
+
dynasty: t,
|
|
244
|
+
text: e.tr ? e.tr(t) : t,
|
|
245
|
+
dir: e.dir
|
|
246
|
+
}, null, 8, [
|
|
247
|
+
"dynasty",
|
|
248
|
+
"text",
|
|
249
|
+
"dir"
|
|
250
|
+
]))), 128))], 8, se)) : a("", !0);
|
|
251
|
+
}
|
|
252
|
+
}, ue = { class: "mwnf-sheet-timeline" }, de = {
|
|
253
|
+
key: 0,
|
|
254
|
+
class: "mwnf-sheet-timeline__popout",
|
|
255
|
+
dir: "ltr"
|
|
256
|
+
}, fe = ["aria-label"], pe = { class: "mwnf-sheet-timeline__title" }, me = { class: "mwnf-sheet-timeline__option" }, he = ["value"], ge = { class: "mwnf-sheet-timeline__scroll" }, _e = { class: "mwnf-sheet-timeline__subheader" }, ve = {
|
|
257
|
+
key: 0,
|
|
258
|
+
class: "mwnf-sheet-timeline__empty"
|
|
259
|
+
}, ye = { class: "mwnf-sheet-timeline__date" }, be = ["innerHTML"], $ = {
|
|
260
|
+
__name: "TimelineLookup",
|
|
261
|
+
props: { info: {
|
|
262
|
+
type: Object,
|
|
263
|
+
required: !0
|
|
264
|
+
} },
|
|
265
|
+
setup(t) {
|
|
266
|
+
let l = t, { t: u } = w(), m = f(!1), h = f(l.info.defaultCountry ? l.info.defaultCountry() : "all");
|
|
267
|
+
b(() => l.info, (e) => {
|
|
268
|
+
h.value = e.defaultCountry ? e.defaultCountry() : "all";
|
|
269
|
+
});
|
|
270
|
+
let y = r(() => l.info.range ?? [null, null]), C = r(() => l.info.events(h.value)), E = r(() => l.info.countries.find((e) => e.value === h.value)?.label ?? ""), D = k(), O = r(() => {
|
|
271
|
+
let e = l.info.searchTo ? l.info.searchTo(h.value, y.value) : null;
|
|
272
|
+
return !e || typeof e == "object" && e.name && D && !D.hasRoute(e.name) ? null : e;
|
|
273
|
+
}), A = (e) => l.info.era ? l.info.era(e) : String(e ?? "");
|
|
274
|
+
return (r, l) => (d(), o("div", ue, [s("p", {
|
|
275
|
+
class: "mwnf-sheet-timeline__trigger",
|
|
276
|
+
onClick: l[0] ||= (e) => m.value = !m.value
|
|
277
|
+
}, "➤ " + g(_(u)(t.info.trigger ?? "record.related.timelineForItem")), 1), m.value ? (d(), o("div", de, [
|
|
278
|
+
s("button", {
|
|
279
|
+
type: "button",
|
|
280
|
+
class: "mwnf-sheet-timeline__close",
|
|
281
|
+
"aria-label": _(u)("core.action.close"),
|
|
282
|
+
onClick: l[1] ||= (e) => m.value = !1
|
|
283
|
+
}, "✕", 8, fe),
|
|
284
|
+
s("p", pe, g(_(u)(t.info.heading)), 1),
|
|
285
|
+
s("div", me, [S(s("select", {
|
|
286
|
+
"onUpdate:modelValue": l[2] ||= (e) => h.value = e,
|
|
287
|
+
class: "mwnf-sheet-timeline__select"
|
|
288
|
+
}, [(d(!0), o(n, null, p(t.info.countries, (e) => (d(), o("option", {
|
|
289
|
+
key: e.value,
|
|
290
|
+
value: e.value
|
|
291
|
+
}, g(e.label), 9, he))), 128))], 512), [[v, h.value]]), O.value ? (d(), i(e, {
|
|
292
|
+
key: 0,
|
|
293
|
+
class: "mwnf-sheet-timeline__link",
|
|
294
|
+
to: O.value
|
|
295
|
+
}, {
|
|
296
|
+
default: x(() => [c("➤ " + g(_(u)("timeline.action.beginFullSearch")), 1)]),
|
|
297
|
+
_: 1
|
|
298
|
+
}, 8, ["to"])) : a("", !0)]),
|
|
299
|
+
s("div", ge, [
|
|
300
|
+
s("p", _e, g(E.value) + ", " + g(A(y.value[0])) + " – " + g(A(y.value[1])), 1),
|
|
301
|
+
C.value.length ? a("", !0) : (d(), o("p", ve, g(_(u)("timeline.results.noEvents")), 1)),
|
|
302
|
+
(d(!0), o(n, null, p(C.value, (e, t) => (d(), o("div", {
|
|
303
|
+
key: e.id ?? t,
|
|
304
|
+
class: "mwnf-sheet-timeline__event"
|
|
305
|
+
}, [s("div", ye, g(A(e.year_from)), 1), s("div", {
|
|
306
|
+
class: "mwnf-sheet-timeline__description",
|
|
307
|
+
innerHTML: _(T)(e.text.description)
|
|
308
|
+
}, null, 8, be)]))), 128))
|
|
309
|
+
])
|
|
310
|
+
])) : a("", !0)]));
|
|
311
|
+
}
|
|
312
|
+
}, xe = ["href"], Se = {
|
|
313
|
+
key: 0,
|
|
314
|
+
class: "mwnf-related-media__description"
|
|
315
|
+
}, Ce = {
|
|
316
|
+
__name: "RelatedMedia",
|
|
317
|
+
props: {
|
|
318
|
+
media: {
|
|
319
|
+
type: Array,
|
|
320
|
+
default: () => []
|
|
321
|
+
},
|
|
322
|
+
language: {
|
|
323
|
+
type: String,
|
|
324
|
+
default: ""
|
|
325
|
+
},
|
|
326
|
+
descriptions: {
|
|
327
|
+
type: Boolean,
|
|
328
|
+
default: !0
|
|
329
|
+
},
|
|
330
|
+
heading: {
|
|
331
|
+
type: String,
|
|
332
|
+
default: "record.related.audioVideo"
|
|
333
|
+
},
|
|
334
|
+
dir: {
|
|
335
|
+
type: String,
|
|
336
|
+
default: ""
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
setup(e) {
|
|
340
|
+
let c = e, { t: l } = w(), u = r(() => {
|
|
341
|
+
let e = c.media.filter((e) => e?.url);
|
|
342
|
+
return c.language ? e.filter((e) => !e.language || e.language === c.language) : e;
|
|
343
|
+
});
|
|
344
|
+
return (r, c) => u.value.length ? (d(), i(t, {
|
|
345
|
+
key: 0,
|
|
346
|
+
heading: e.heading ? _(l)(e.heading) : "",
|
|
347
|
+
dir: e.dir,
|
|
348
|
+
class: "mwnf-related-media"
|
|
349
|
+
}, {
|
|
350
|
+
default: x(() => [(d(!0), o(n, null, p(u.value, (t) => (d(), o("div", {
|
|
351
|
+
key: t.url,
|
|
352
|
+
class: "mwnf-related-media__entry"
|
|
353
|
+
}, [s("a", {
|
|
354
|
+
href: t.url,
|
|
355
|
+
target: "_blank",
|
|
356
|
+
rel: "noopener",
|
|
357
|
+
class: "mwnf-related-media__link"
|
|
358
|
+
}, "↗ " + g(t.title || t.url), 9, xe), e.descriptions && t.description ? (d(), o("p", Se, g(t.description), 1)) : a("", !0)]))), 128))]),
|
|
359
|
+
_: 1
|
|
360
|
+
}, 8, ["heading", "dir"])) : a("", !0);
|
|
361
|
+
}
|
|
362
|
+
}, we = ["innerHTML"], Te = ["innerHTML"], Ee = { class: "mwnf-on-display__list" }, De = ["innerHTML"], Oe = ["innerHTML"], ke = { class: "mwnf-on-display__pending" }, Ae = {
|
|
363
|
+
__name: "OnDisplayIn",
|
|
364
|
+
props: {
|
|
365
|
+
groups: {
|
|
366
|
+
type: Array,
|
|
367
|
+
default: () => []
|
|
368
|
+
},
|
|
369
|
+
heading: {
|
|
370
|
+
type: String,
|
|
371
|
+
default: "record.related.onDisplayIn"
|
|
372
|
+
},
|
|
373
|
+
pendingLabel: {
|
|
374
|
+
type: String,
|
|
375
|
+
default: ""
|
|
376
|
+
},
|
|
377
|
+
dir: {
|
|
378
|
+
type: String,
|
|
379
|
+
default: ""
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
setup(u) {
|
|
383
|
+
let f = u, { t: m } = w(), v = (e) => (e.sections ?? [{ links: e.links ?? [] }]).filter((e) => e.links?.length), y = r(() => f.groups.map((e) => ({
|
|
384
|
+
...e,
|
|
385
|
+
parts: v(e)
|
|
386
|
+
})).filter((e) => e.parts.length));
|
|
387
|
+
return (r, f) => y.value.length ? (d(), i(h(u.heading ? t : "div"), l({ key: 0 }, u.heading ? { heading: _(m)(u.heading) } : {}, {
|
|
388
|
+
dir: u.dir || void 0,
|
|
389
|
+
class: "mwnf-on-display"
|
|
390
|
+
}), {
|
|
391
|
+
default: x(() => [(d(!0), o(n, null, p(y.value, (t, r) => (d(), o("div", {
|
|
392
|
+
key: t.heading ?? r,
|
|
393
|
+
class: "mwnf-on-display__group"
|
|
394
|
+
}, [t.heading ? (d(), o("p", {
|
|
395
|
+
key: 0,
|
|
396
|
+
class: "mwnf-on-display__subheading",
|
|
397
|
+
innerHTML: _(D)(_(m)(t.heading))
|
|
398
|
+
}, null, 8, we)) : a("", !0), (d(!0), o(n, null, p(t.parts, (t, r) => (d(), o(n, { key: r }, [t.caption ? (d(), o("p", {
|
|
399
|
+
key: 0,
|
|
400
|
+
class: "mwnf-on-display__caption",
|
|
401
|
+
innerHTML: t.caption
|
|
402
|
+
}, null, 8, Te)) : a("", !0), s("ul", Ee, [(d(!0), o(n, null, p(t.links, (t, r) => (d(), o("li", {
|
|
403
|
+
key: t.id ?? r,
|
|
404
|
+
class: "mwnf-on-display__item"
|
|
405
|
+
}, [t.to || t.href ? (d(), i(e, {
|
|
406
|
+
key: 0,
|
|
407
|
+
to: t.to,
|
|
408
|
+
href: t.href,
|
|
409
|
+
external: !!t.external
|
|
410
|
+
}, {
|
|
411
|
+
default: x(() => [t.external ? (d(), o(n, { key: 0 }, [c("↗ ")], 64)) : a("", !0), s("span", { innerHTML: t.label }, null, 8, De)]),
|
|
412
|
+
_: 2
|
|
413
|
+
}, 1032, [
|
|
414
|
+
"to",
|
|
415
|
+
"href",
|
|
416
|
+
"external"
|
|
417
|
+
])) : (d(), o(n, { key: 1 }, [s("span", { innerHTML: t.label }, null, 8, Oe), u.pendingLabel ? (d(), o(n, { key: 0 }, [f[0] ||= c(g(" "), -1), s("span", ke, g(_(m)(u.pendingLabel)), 1)], 64)) : a("", !0)], 64))]))), 128))])], 64))), 128))]))), 128))]),
|
|
418
|
+
_: 1
|
|
419
|
+
}, 16, ["dir"])) : a("", !0);
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
export { Q as a, le as i, Ce as n, U as o, $ as r, te as s, Ae as t };
|
package/dist/content.js
CHANGED
|
@@ -2,6 +2,6 @@ import { n as e, t } from "./FeaturedRecord-Fe19w6_G.js";
|
|
|
2
2
|
import { a as n, c as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./PartnerMap-DdyMLtgH.js";
|
|
3
3
|
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "./TimelineEventList-CIkKxyQu.js";
|
|
4
4
|
import { t as v } from "./GlossaryPopover-DbQKXhx9.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-
|
|
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-Ct8xxMwQ.js";
|
|
6
6
|
import { t as E } from "./content-B1458eb-.js";
|
|
7
7
|
export { w as BackLink, b as DynastyList, y as DynastyPopout, f as FacetSelect, t as FeaturedRecord, p as FilterPanel, v as GlossaryPopover, S as GlossaryTool, o as MediaGallery, T as OnDisplayIn, h as Pagination, u as PartnerMap, m as PartnerPanel, n as RecordCredits, a as RecordGrid, r as RecordLanguages, d as RecordList, l as RecordSheet, x as RelatedMedia, c as RelatedRecords, g as ResultsSummary, e as SectionCards, s as SheetSection, i as SourceCredit, E as SpecialFeatures, _ as TimelineEventList, C as TimelineLookup };
|
|
@@ -3,7 +3,7 @@ import { n } from "./chrome-Bv_mLlHM.js";
|
|
|
3
3
|
import { t as r } from "./legacyFacets-CQw2NYL4.js";
|
|
4
4
|
import { FACET_CATEGORIES as i, GALLERY_ERA_WORDS as a, useGalleryCollection as o, useGalleryData as s, useGalleryItemDetail as c, useGalleryPartner as l, useGalleryTimeline as u } from "@museumwnf/viewer-core/dxa";
|
|
5
5
|
// src/dxa/gallery/data.js
|
|
6
|
-
var d = s(), f = o(d), p = u(d, f), m = l(d, f), { itemDetail: h } = c(d, p), { manifest: g, defaultLang: _, tr: v, md: y, mdInline: b, loadEnglish: x, labelOf: S, gallery: C, items: w, itemById: T, partners: E, countries: ee, timelines: D, partnerById: O, itemRoute: te, partnerRoute: k, partnerObjectsRoute: A, itemFromUidPath: j, partnerFromKey: M,
|
|
6
|
+
var d = s(), f = o(d), p = u(d, f), m = l(d, f), { itemDetail: h } = c(d, p), { manifest: g, defaultLang: _, tr: v, md: y, mdInline: b, loadEnglish: x, labelOf: S, gallery: C, items: w, itemById: T, partners: E, countries: ee, timelines: D, partnerById: O, itemRoute: te, partnerRoute: k, partnerObjectsRoute: A, itemFromUidPath: j, partnerFromKey: M, loadLegacyPaths: N, pickSiblings: P, siblingUrl: ne } = d, F = (e) => e?.en ?? "";
|
|
7
7
|
function I(e) {
|
|
8
8
|
return e(g.projects?.[g.gallery?.project_id ?? C.value?.project_id]?.name) || e(g.site?.names) || e(C.value?.names);
|
|
9
9
|
}
|
|
@@ -56,4 +56,4 @@ var $ = {
|
|
|
56
56
|
},
|
|
57
57
|
legacyMap: { label: "gallery.partner.mapLabel" }
|
|
58
58
|
};
|
|
59
|
-
export {
|
|
59
|
+
export { z as A, M as C, k as D, A as E, K as M, D as N, P as O, v as P, $ as S, X as T, S as _, U as a, N as b, F as c, I as d, R as f, w as g, j as h, L as i, q as j, ne as k, Q as l, h as m, a as n, V as o, T as p, G as r, _ as s, H as t, C as u, W as v, J as w, O as x, x as y };
|