@museumwnf/viewer-layout 3.90.0 → 3.92.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.
@@ -6,6 +6,10 @@ import { c as L, d as R, r as oe } from "./PartnerMap-DdyMLtgH.js";
6
6
  import { n as se } from "./TimelineEventList-CIkKxyQu.js";
7
7
  import { t as ce } from "./RecordView-DAvWufWV.js";
8
8
  import { t as le } from "./chrome-Bv_mLlHM.js";
9
+ // src/dxa/placeHref.js
10
+ function ue(e) {
11
+ return e?.item_url || e?.url || e?.legacy_host || "";
12
+ }
9
13
  // src/dxa/RelatedObjects.vue
10
14
  var z = {
11
15
  key: 0,
@@ -20,7 +24,7 @@ var z = {
20
24
  }, W = ["innerHTML"], G = {
21
25
  class: "mwnf-related-objects__tooltip",
22
26
  "aria-hidden": "true"
23
- }, ue = ["innerHTML"], de = { key: 0 }, fe = {
27
+ }, de = ["innerHTML"], fe = { key: 0 }, pe = {
24
28
  __name: "RelatedObjects",
25
29
  props: {
26
30
  heading: {
@@ -56,42 +60,42 @@ var z = {
56
60
  "to",
57
61
  "href",
58
62
  "external"
59
- ]), a("div", G, [a("div", null, [a("span", { innerHTML: t.name }, null, 8, ue), t.country ? (p(), i(e, { key: 0 }, [s(", " + g(t.country), 1)], 64)) : r("", !0)]), t.justification ? (p(), i("div", de, g(t.justification), 1)) : r("", !0)])]))), 128))])])) : r("", !0);
63
+ ]), a("div", G, [a("div", null, [a("span", { innerHTML: t.name }, null, 8, de), t.country ? (p(), i(e, { key: 0 }, [s(", " + g(t.country), 1)], 64)) : r("", !0)]), t.justification ? (p(), i("div", fe, g(t.justification), 1)) : r("", !0)])]))), 128))])])) : r("", !0);
60
64
  }
61
- }, pe = {
65
+ }, me = {
62
66
  key: 0,
63
67
  class: "mwnf-sheet-source"
64
- }, me = {
68
+ }, he = {
65
69
  key: 0,
66
70
  class: "mwnf-sheet-source__line"
67
- }, he = {
71
+ }, ge = {
68
72
  key: 1,
69
73
  class: "mwnf-sheet-source__collection"
70
- }, ge = ["href"], _e = {
74
+ }, _e = ["href"], ve = {
71
75
  key: 1,
72
76
  class: "mwnf-sheet-notice"
73
- }, ve = {
77
+ }, ye = {
74
78
  key: "museum",
75
79
  class: "mwnf-sheet-museum"
76
- }, ye = ["innerHTML"], be = {
80
+ }, be = ["innerHTML"], xe = {
77
81
  key: 0,
78
82
  class: "mwnf-sheet-related"
79
- }, xe = {
83
+ }, Se = {
80
84
  key: 0,
81
85
  class: "mwnf-sheet-related__heading mwnf-sheet-related__heading--caps"
82
- }, Se = {
86
+ }, Ce = {
83
87
  key: 1,
84
88
  class: "mwnf-sheet-related__description"
85
- }, Ce = {
89
+ }, we = {
86
90
  key: 0,
87
91
  class: "mwnf-sheet-related__references"
88
- }, we = {
92
+ }, Te = {
89
93
  key: 2,
90
94
  class: "mwnf-sheet-related__unresolved"
91
- }, Te = {
95
+ }, Ee = {
92
96
  key: 5,
93
97
  class: "mwnf-sheet-related__line"
94
- }, Ee = ["href"], De = { class: "mwnf-sheet-related__heading" }, Oe = ["href"], ke = { key: 11 }, Ae = { class: "mwnf-sheet-related__heading" }, je = { key: 12 }, Me = { class: "mwnf-sheet-related__heading" }, Ne = { class: "mwnf-sheet-related__line" }, Pe = ["href"], Fe = { key: 13 }, Ie = { class: "mwnf-sheet-related__heading" }, Le = { class: "mwnf-sheet-related__line" }, Re = ["href"], ze = { key: 14 }, Be = { class: "mwnf-sheet-related__heading" }, Ve = "sheet.field.", K = {
98
+ }, De = ["href"], Oe = { class: "mwnf-sheet-related__heading" }, ke = ["href"], Ae = { key: 11 }, je = { class: "mwnf-sheet-related__heading" }, Me = { key: 12 }, Ne = { class: "mwnf-sheet-related__heading" }, Pe = { class: "mwnf-sheet-related__line" }, Fe = ["href"], Ie = { key: 13 }, Le = { class: "mwnf-sheet-related__heading" }, Re = { class: "mwnf-sheet-related__line" }, ze = ["href"], Be = { key: 14 }, Ve = { class: "mwnf-sheet-related__heading" }, He = "sheet.field.", K = {
95
99
  __name: "ItemDetailView",
96
100
  props: {
97
101
  spec: {
@@ -119,7 +123,7 @@ var z = {
119
123
  "aside"
120
124
  ]), te = t(() => Object.keys(O).filter((e) => !k.has(e))), ne = t(() => !x.dataGetter || x.dataGetter(x.id) != null), { t: I } = ie();
121
125
  function L(e) {
122
- if (typeof e != "string" || !e.startsWith(Ve)) return e;
126
+ if (typeof e != "string" || !e.startsWith(He)) return e;
123
127
  let t = `sheet.dxa.${e.slice(12)}`;
124
128
  return I(t) === t ? e : t;
125
129
  }
@@ -141,14 +145,14 @@ var z = {
141
145
  }), z = A(), B = (e, t) => e.names?.[t] || e.names?.en || e.name || "", V = (e, t, n) => (e.gallery_references ?? []).filter((e) => e.kind === t).map((e) => ({
142
146
  ...e,
143
147
  name: B(e, n)
144
- })).sort((e, t) => e.name.localeCompare(t.name)), H = (e, t) => V(e, "gallery", t), U = (e, t) => V(e, "exhibition", t), W = (e) => z.links(e.project_id)?.artisticIntroductionUrl ?? null, G = (e) => z.links(e.project_id)?.relatedDatabaseUrl ?? null, ue = {
148
+ })).sort((e, t) => e.name.localeCompare(t.name)), H = (e, t) => V(e, "gallery", t), U = (e, t) => V(e, "exhibition", t), W = (e) => z.links(e.project_id)?.artisticIntroductionUrl ?? null, G = (e) => z.links(e.project_id)?.relatedDatabaseUrl ?? null, de = {
145
149
  "islamicart.museumwnf.org": "core.project.islamicArt",
146
150
  "baroqueart.museumwnf.org": "core.project.baroqueArt",
147
151
  "sharinghistory.museumwnf.org": "core.project.sharingHistory"
148
152
  };
149
- function de(e) {
153
+ function fe(e) {
150
154
  try {
151
- let t = ue[new URL(G(e)).host];
155
+ let t = de[new URL(G(e)).host];
152
156
  if (t) return I(t);
153
157
  } catch {}
154
158
  return z.label(e.project_id);
@@ -193,7 +197,7 @@ var z = {
193
197
  ...e,
194
198
  name: e.project_id ? z.label(e.project_id) : null,
195
199
  chipClass: n.outsideChip ? n.outsideChip(e, t) : null
196
- })), c = (t) => (n.onDisplayIn?.href ? n.onDisplayIn.href(t, e) : t.legacy_host) || "", l = (e) => ({
200
+ })), c = (t) => (n.onDisplayIn?.href ? n.onDisplayIn.href(t, e) : ue(t)) || "", l = (e) => ({
197
201
  id: e.id,
198
202
  label: T(e.name ?? ""),
199
203
  href: c(e),
@@ -213,7 +217,7 @@ var z = {
213
217
  } : null, d = n.databaseLabel && G(e) ? {
214
218
  url: G(e),
215
219
  label: I(n.databaseLabel),
216
- name: de(e)
220
+ name: fe(e)
217
221
  } : null, f = n.overallDatabase && n.overallDatabase !== !1 ? {
218
222
  label: I(n.overallDatabase.label),
219
223
  linkLabel: I(n.overallDatabase.linkLabel)
@@ -259,11 +263,11 @@ var z = {
259
263
  }
260
264
  };
261
265
  }
262
- let $ = j(), He = t(() => {
266
+ let $ = j(), Ue = t(() => {
263
267
  let e = le($.chrome, "world.png");
264
268
  return e ? { "--mwnf-dxa-glossary-image": `url("${e}")` } : null;
265
269
  });
266
- function Ue() {
270
+ function We() {
267
271
  window.print();
268
272
  }
269
273
  return (t, v) => ne.value ? (p(), n(ce, {
@@ -271,32 +275,32 @@ var z = {
271
275
  spec: R.value,
272
276
  id: b.id,
273
277
  entity: b.entity,
274
- style: f(He.value)
278
+ style: f(Ue.value)
275
279
  }, o({
276
- "before-sheet": y((n) => [h(t.$slots, "before-sheet", d(l(n)), () => [(p(!0), i(e, null, m([K(n.record, n)], (t) => (p(), i(e, { key: "before-sheet" }, [t?.source || t?.addToCollectionLabel ? (p(), i("div", pe, [t.source ? (p(), i("p", me, [t.source.chipClass ? (p(), i("span", {
280
+ "before-sheet": y((n) => [h(t.$slots, "before-sheet", d(l(n)), () => [(p(!0), i(e, null, m([K(n.record, n)], (t) => (p(), i(e, { key: "before-sheet" }, [t?.source || t?.addToCollectionLabel ? (p(), i("div", me, [t.source ? (p(), i("p", he, [t.source.chipClass ? (p(), i("span", {
277
281
  key: 0,
278
282
  class: u(["mwnf-chip", t.source.chipClass]),
279
283
  "aria-hidden": "true"
280
- }, null, 2)) : r("", !0), t.source.name ? (p(), i(e, { key: 1 }, [s(g(t.source.label) + ": " + g(t.source.name), 1)], 64)) : r("", !0)])) : r("", !0), t.addToCollectionLabel ? (p(), i("p", he, [a("a", {
284
+ }, null, 2)) : r("", !0), t.source.name ? (p(), i(e, { key: 1 }, [s(g(t.source.label) + ": " + g(t.source.name), 1)], 64)) : r("", !0)])) : r("", !0), t.addToCollectionLabel ? (p(), i("p", ge, [a("a", {
281
285
  href: _(E).myCollection,
282
286
  target: "_blank",
283
287
  rel: "noopener"
284
- }, "↗ " + g(t.addToCollectionLabel), 9, ge)])) : r("", !0)])) : r("", !0), t?.notice ? (p(), i("div", _e, [s(g(t.notice) + " ", 1), a("strong", null, [a("em", null, g(n.languages.map((e) => e.label).join(", ")), 1)])])) : r("", !0)], 64))), 128))])]),
285
- museum: y((a) => [h(t.$slots, "museum", d(l(a)), () => [(p(!0), i(e, null, m([Z(a)], (e) => (p(), i("div", ve, [e.holder ? (p(), i("p", {
288
+ }, "↗ " + g(t.addToCollectionLabel), 9, _e)])) : r("", !0)])) : r("", !0), t?.notice ? (p(), i("div", ve, [s(g(t.notice) + " ", 1), a("strong", null, [a("em", null, g(n.languages.map((e) => e.label).join(", ")), 1)])])) : r("", !0)], 64))), 128))])]),
289
+ museum: y((a) => [h(t.$slots, "museum", d(l(a)), () => [(p(!0), i(e, null, m([Z(a)], (e) => (p(), i("div", ye, [e.holder ? (p(), i("p", {
286
290
  key: 0,
287
291
  class: "mwnf-sheet-museum__holder",
288
292
  innerHTML: e.holder
289
- }, null, 8, ye)) : r("", !0), e.view ? (p(), n(se, {
293
+ }, null, 8, be)) : r("", !0), e.view ? (p(), n(se, {
290
294
  key: 1,
291
295
  variant: "summary",
292
296
  partner: e.view,
293
297
  label: "partner.info.about",
294
298
  dir: a.dir
295
299
  }, null, 8, ["partner", "dir"])) : r("", !0)]))), 128))])]),
296
- aside: y((o) => [h(t.$slots, "related", d(l(o)), () => [(p(!0), i(e, null, m([Q(o.record, o)], (t) => (p(), i(e, { key: o.record?.id ?? "related" }, [t ? (p(), i("div", be, [
297
- t.title ? (p(), i("p", xe, g(t.title), 1)) : r("", !0),
298
- t.description ? (p(), i("p", Se, g(t.description), 1)) : r("", !0),
299
- t.tiles ? (p(), n(fe, {
300
+ aside: y((o) => [h(t.$slots, "related", d(l(o)), () => [(p(!0), i(e, null, m([Q(o.record, o)], (t) => (p(), i(e, { key: o.record?.id ?? "related" }, [t ? (p(), i("div", xe, [
301
+ t.title ? (p(), i("p", Se, g(t.title), 1)) : r("", !0),
302
+ t.description ? (p(), i("p", Ce, g(t.description), 1)) : r("", !0),
303
+ t.tiles ? (p(), n(pe, {
300
304
  key: 2,
301
305
  heading: t.heading,
302
306
  tiles: t.tiles
@@ -307,14 +311,14 @@ var z = {
307
311
  variant: t.variant,
308
312
  "action-label": t.actionLabel
309
313
  }, {
310
- default: y(() => [t.references.length ? (p(), i("ul", Ce, [(p(!0), i(e, null, m(t.references, (n) => (p(), i("li", { key: n.id }, [
314
+ default: y(() => [t.references.length ? (p(), i("ul", we, [(p(!0), i(e, null, m(t.references, (n) => (p(), i("li", { key: n.id }, [
311
315
  n.chipClass ? (p(), i("span", {
312
316
  key: 0,
313
317
  class: u(["mwnf-chip", n.chipClass]),
314
318
  "aria-hidden": "true"
315
319
  }, null, 2)) : r("", !0),
316
320
  n.name ? (p(), i(e, { key: 1 }, [s(g(n.name), 1)], 64)) : r("", !0),
317
- t.notInPackageLabel ? (p(), i("span", we, g(t.notInPackageLabel), 1)) : r("", !0)
321
+ t.notInPackageLabel ? (p(), i("span", Te, g(t.notInPackageLabel), 1)) : r("", !0)
318
322
  ]))), 128))])) : r("", !0)]),
319
323
  _: 2
320
324
  }, 1032, [
@@ -323,17 +327,17 @@ var z = {
323
327
  "variant",
324
328
  "action-label"
325
329
  ])) : r("", !0),
326
- t.monumentTiles.length ? (p(), n(fe, {
330
+ t.monumentTiles.length ? (p(), n(pe, {
327
331
  key: 4,
328
332
  heading: t.monumentsHeading,
329
333
  tiles: t.monumentTiles,
330
334
  class: "mwnf-related-objects--monuments"
331
335
  }, null, 8, ["heading", "tiles"])) : r("", !0),
332
- t.artisticIntroduction ? (p(), i("p", Te, [a("a", {
336
+ t.artisticIntroduction ? (p(), i("p", Ee, [a("a", {
333
337
  href: t.artisticIntroduction.url,
334
338
  target: "_blank",
335
339
  rel: "noopener"
336
- }, "↗ " + g(t.artisticIntroduction.label), 9, Ee)])) : r("", !0),
340
+ }, "↗ " + g(t.artisticIntroduction.label), 9, De)])) : r("", !0),
337
341
  t.timeline ? (p(), n(F, {
338
342
  key: o.record.id,
339
343
  info: t.timeline
@@ -363,14 +367,14 @@ var z = {
363
367
  t.mediaGroups ? (p(!0), i(e, { key: 9 }, m(t.mediaGroups, (t) => (p(), i("div", {
364
368
  key: t.type,
365
369
  class: u(["mwnf-sheet-related__media", `mwnf-sheet-related__media--${t.type}`])
366
- }, [a("p", De, g(t.heading), 1), (p(!0), i(e, null, m(t.entries, (e) => (p(), i("p", {
370
+ }, [a("p", Oe, g(t.heading), 1), (p(!0), i(e, null, m(t.entries, (e) => (p(), i("p", {
367
371
  key: e.url,
368
372
  class: "mwnf-sheet-related__line"
369
373
  }, [a("a", {
370
374
  href: e.url,
371
375
  target: "_blank",
372
376
  rel: "noopener"
373
- }, "↗ " + g(e.title || e.url), 9, Oe)]))), 128))], 2))), 128)) : (p(), n(N, {
377
+ }, "↗ " + g(e.title || e.url), 9, ke)]))), 128))], 2))), 128)) : (p(), n(N, {
374
378
  key: 10,
375
379
  media: t.media,
376
380
  language: o.language,
@@ -381,7 +385,7 @@ var z = {
381
385
  "language",
382
386
  "dir"
383
387
  ])),
384
- t.onDisplayIn?.groups.length ? (p(), i("div", ke, [a("p", Ae, g(_(I)("record.related.onDisplayIn")), 1), c(ae, {
388
+ t.onDisplayIn?.groups.length ? (p(), i("div", Ae, [a("p", je, g(_(I)("record.related.onDisplayIn")), 1), c(ae, {
385
389
  heading: "",
386
390
  groups: t.onDisplayIn.groups,
387
391
  "pending-label": t.onDisplayIn.pendingLabel,
@@ -391,19 +395,19 @@ var z = {
391
395
  "pending-label",
392
396
  "dir"
393
397
  ])])) : r("", !0),
394
- t.database ? (p(), i("div", je, [a("p", Me, g(t.database.label), 1), a("p", Ne, [a("a", {
398
+ t.database ? (p(), i("div", Me, [a("p", Ne, g(t.database.label), 1), a("p", Pe, [a("a", {
395
399
  href: t.database.url,
396
400
  target: "_blank",
397
401
  rel: "noopener"
398
- }, "↗ " + g(t.database.name), 9, Pe)])])) : r("", !0),
399
- t.overallDatabase ? (p(), i("div", Fe, [a("p", Ie, g(t.overallDatabase.label), 1), a("p", Le, [a("a", {
402
+ }, "↗ " + g(t.database.name), 9, Fe)])])) : r("", !0),
403
+ t.overallDatabase ? (p(), i("div", Ie, [a("p", Le, g(t.overallDatabase.label), 1), a("p", Re, [a("a", {
400
404
  href: _(E).overallDatabase,
401
405
  target: "_blank",
402
406
  rel: "noopener"
403
- }, "↗ " + g(t.overallDatabase.linkLabel), 9, Re)])])) : r("", !0),
404
- t.download ? (p(), i("div", ze, [a("p", Be, g(t.download.label), 1), a("p", {
407
+ }, "↗ " + g(t.overallDatabase.linkLabel), 9, ze)])])) : r("", !0),
408
+ t.download ? (p(), i("div", Be, [a("p", Ve, g(t.download.label), 1), a("p", {
405
409
  class: "mwnf-sheet-related__line mwnf-sheet-related__line--action",
406
- onClick: Ue
410
+ onClick: We
407
411
  }, "➤ " + g(t.download.pdfLabel), 1)])) : r("", !0)
408
412
  ])) : r("", !0)], 64))), 128))])]),
409
413
  _: 2
@@ -438,7 +442,7 @@ function $(e) {
438
442
  "the"
439
443
  ].includes(e)).join(" ");
440
444
  }
441
- function He(e, t, n = null) {
445
+ function Ue(e, t, n = null) {
442
446
  let r = e?.exhibition_references ?? [], i = [], a = r.filter((e) => e.list === "virtual" || e.list === "sharing_history");
443
447
  a.length && i.push({
444
448
  caption: a[0].project ? J(a[0].project.name) : "",
@@ -465,28 +469,28 @@ function He(e, t, n = null) {
465
469
  }
466
470
  return i;
467
471
  }
468
- function Ue(e, t) {
472
+ function We(e, t) {
469
473
  return e?.item_url ? e.item_url : e?.site ? k(e.site, `/item/${t.id}`) : e?.legacy_host;
470
474
  }
471
475
  // src/dxa/relatedKind.js
472
- function We(e, t) {
476
+ function Ge(e, t) {
473
477
  return (e?.type ?? t?.get(e?.id)?.type) === "monument" ? "monument" : "object";
474
478
  }
475
479
  // src/dxa/homeLinks.js
476
- function Ge(e, { homeSite: t, siteKey: n } = {}) {
480
+ function Ke(e, { homeSite: t, siteKey: n } = {}) {
477
481
  return e && "source_url" in e ? e.source_url ?? null : t && t !== n ? k(t, `/item/${e.id}`) : null;
478
482
  }
479
- function Ke(e, t) {
483
+ function qe(e, t) {
480
484
  return "url" in e ? e.url ?? "" : t ? k(t, `/item/${e.id}`) : "";
481
485
  }
482
486
  // src/dxa/LegacyItemSheet.vue
483
- var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe = ["href"], Ze = ["innerHTML"], Qe = ["innerHTML"], $e = ["dir"], et = { class: "mwnf-dxa-gallery-item__label" }, tt = {
487
+ var Je = { class: "mwnf-dxa-item__languages" }, Ye = ["dir"], Xe = ["href"], Ze = ["href"], Qe = ["innerHTML"], $e = ["innerHTML"], et = ["dir"], tt = { class: "mwnf-dxa-gallery-item__label" }, nt = {
484
488
  key: "citation",
485
489
  class: "mwnf-dxa-gallery-item__citation"
486
- }, nt = { class: "mwnf-dxa-gallery-item__project" }, rt = { class: "mwnf-dxa-gallery-item__address" }, it = { class: "mwnf-dxa-gallery-item__credit-label" }, at = {
490
+ }, rt = { class: "mwnf-dxa-gallery-item__project" }, it = { class: "mwnf-dxa-gallery-item__address" }, at = { class: "mwnf-dxa-gallery-item__credit-label" }, ot = {
487
491
  key: 1,
488
492
  class: "mwnf-dxa-gallery-item__number"
489
- }, ot = { class: "mwnf-dxa-gallery-item__number-label" }, st = ["href"], ct = {
493
+ }, st = { class: "mwnf-dxa-gallery-item__number-label" }, ct = ["href"], lt = {
490
494
  __name: "LegacyItemSheet",
491
495
  props: {
492
496
  id: {
@@ -509,7 +513,7 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
509
513
  setup(o) {
510
514
  let l = o, { t: d } = ie(), f = x(), h = A(), v = re(), S = j(), C = ne(), w = (e, t) => e?.[t] ?? e?.en ?? Object.values(e ?? {})[0] ?? "";
511
515
  function D({ record: e, inPackage: t, references: n, ctx: r }) {
512
- let i = r.language, a = new Map((e.related_items ?? []).map((e) => [e.id, e])), o = (e) => ee(w(a.get(e)?.justifications, i)), s = (e) => We(a.get(e) ?? { id: e }, C.itemById.value), c = (e) => (e ?? "").replace(/\.$/, ""), l = t.map((e) => ({
516
+ let i = r.language, a = new Map((e.related_items ?? []).map((e) => [e.id, e])), o = (e) => ee(w(a.get(e)?.justifications, i)), s = (e) => Ge(a.get(e) ?? { id: e }, C.itemById.value), c = (e) => (e ?? "").replace(/\.$/, ""), l = t.map((e) => ({
513
517
  id: e.id,
514
518
  kind: s(e.id),
515
519
  image: e.image,
@@ -526,7 +530,7 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
526
530
  name: c(T(w(e.names, i))),
527
531
  country: C.countryLabel(e.country_id),
528
532
  justification: o(e.id),
529
- href: Ke(e, t)
533
+ href: qe(e, t)
530
534
  };
531
535
  }), d = (e.related_items ?? []).map((e) => e.id);
532
536
  return [...l, ...u].sort((e, t) => d.indexOf(e.id) - d.indexOf(t.id));
@@ -558,13 +562,13 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
558
562
  ...l.itemDetail.related?.onDisplayIn,
559
563
  exhibitionsHeading: l.words.exhibitions,
560
564
  galleriesHeading: "core.project.galleries",
561
- href: Ue,
562
- exhibitions: (e, t) => He(e, t.language, v.manifest?.site?.key)
565
+ href: We,
566
+ exhibitions: (e, t) => Ue(e, t.language, v.manifest?.site?.key)
563
567
  }
564
568
  }
565
569
  }));
566
570
  function k(e) {
567
- return Ge(e, {
571
+ return Ke(e, {
568
572
  homeSite: h.links(e?.project_id)?.homeSite,
569
573
  siteKey: v.manifest?.site?.key
570
574
  }) ?? te(f);
@@ -602,7 +606,7 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
602
606
  "data-getter": o.dataGetter,
603
607
  class: "mwnf-dxa-item mwnf-dxa-gallery-item"
604
608
  }, {
605
- header: y(({ languages: e, language: t, select: n }) => [a("div", qe, [c(L, {
609
+ header: y(({ languages: e, language: t, select: n }) => [a("div", Je, [c(L, {
606
610
  languages: e,
607
611
  language: t,
608
612
  from: 1,
@@ -623,14 +627,14 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
623
627
  }, [l[0] ||= a("span", {
624
628
  class: "mwnf-dxa-gallery-item__icon",
625
629
  "aria-hidden": "true"
626
- }, "↗", -1), a("bdi", null, [s(g(_(d)("record.source.label")) + " ", 1), a("span", null, "(" + g(M(k(e))) + ")", 1)])], 8, Ye)]), a("p", null, [a("a", {
630
+ }, "↗", -1), a("bdi", null, [s(g(_(d)("record.source.label")) + " ", 1), a("span", null, "(" + g(M(k(e))) + ")", 1)])], 8, Xe)]), a("p", null, [a("a", {
627
631
  href: _(E).myCollection,
628
632
  target: "_blank",
629
633
  rel: "noopener"
630
634
  }, [l[1] ||= a("span", {
631
635
  class: "mwnf-dxa-gallery-item__icon",
632
636
  "aria-hidden": "true"
633
- }, "↗", -1), s(g(_(d)("record.action.addToCollection")), 1)], 8, Xe)])], 8, Je)) : r("", !0)]),
637
+ }, "↗", -1), s(g(_(d)("record.action.addToCollection")), 1)], 8, Ze)])], 8, Ye)) : r("", !0)]),
634
638
  museum: y((t) => [(p(!0), i(e, null, m([F(t)], (t) => (p(), i(e, { key: "museum" }, [t.to && t.holder ? (p(), n(_(b), {
635
639
  key: 0,
636
640
  to: t.to,
@@ -639,34 +643,34 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
639
643
  default: y(() => [l[2] ||= a("span", {
640
644
  class: "mwnf-dxa-gallery-item__icon",
641
645
  "aria-hidden": "true"
642
- }, "↗", -1), a("span", { innerHTML: t.holder }, null, 8, Ze)]),
646
+ }, "↗", -1), a("span", { innerHTML: t.holder }, null, 8, Qe)]),
643
647
  _: 2
644
648
  }, 1032, ["to"])) : t.holder ? (p(), i("span", {
645
649
  key: 1,
646
650
  innerHTML: t.holder
647
- }, null, 8, Qe)) : r("", !0)], 64))), 128))]),
651
+ }, null, 8, $e)) : r("", !0)], 64))), 128))]),
648
652
  credits: y(({ record: t, credits: n, workingNumber: c, citation: l, dir: f }) => [t ? (p(), i("div", {
649
653
  key: 0,
650
654
  class: "mwnf-dxa-gallery-item__credits",
651
655
  dir: f || void 0
652
656
  }, [
653
- l ? (p(), i(e, { key: 0 }, [a("p", et, g(_(d)("record.citation.ofThisPage")), 1), (p(!0), i(e, null, m([P(l, t)], (e) => (p(), i("p", tt, [
657
+ l ? (p(), i(e, { key: 0 }, [a("p", tt, g(_(d)("record.citation.ofThisPage")), 1), (p(!0), i(e, null, m([P(l, t)], (e) => (p(), i("p", nt, [
654
658
  s(g(e.before), 1),
655
- a("span", nt, g(e.project), 1),
659
+ a("span", rt, g(e.project), 1),
656
660
  s(g(e.after) + " ", 1),
657
- a("span", rt, g(k(t)), 1)
661
+ a("span", it, g(k(t)), 1)
658
662
  ]))), 128))], 64)) : r("", !0),
659
663
  (p(!0), i(e, null, m(n, (e) => (p(), i("p", {
660
664
  key: e.label,
661
665
  class: "mwnf-dxa-gallery-item__credit"
662
- }, [a("span", it, g(e.label), 1), a("span", null, g(e.value), 1)]))), 128)),
663
- c ? (p(), i("p", at, [a("span", ot, g(_(d)(o.words.workingNumber)), 1), s(g(" ") + g(c), 1)])) : r("", !0),
666
+ }, [a("span", at, g(e.label), 1), a("span", null, g(e.value), 1)]))), 128)),
667
+ c ? (p(), i("p", ot, [a("span", st, g(_(d)(o.words.workingNumber)), 1), s(g(" ") + g(c), 1)])) : r("", !0),
664
668
  a("div", { class: u(["mwnf-dxa-gallery-item__source", N(t)]) }, [a("p", null, g(_(d)("record.source.label")), 1), a("p", null, [a("a", {
665
669
  href: k(t),
666
670
  target: "_blank",
667
671
  rel: "noopener"
668
- }, g(k(t)), 9, st)])], 2)
669
- ], 8, $e)) : r("", !0)]),
672
+ }, g(k(t)), 9, ct)])], 2)
673
+ ], 8, et)) : r("", !0)]),
670
674
  _: 1
671
675
  }, 8, [
672
676
  "spec",
@@ -675,4 +679,4 @@ var qe = { class: "mwnf-dxa-item__languages" }, Je = ["dir"], Ye = ["href"], Xe
675
679
  ]));
676
680
  }
677
681
  };
678
- export { K as n, ct as t };
682
+ export { K as n, lt as t };
@@ -2,8 +2,8 @@ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r
2
2
  import { RouterLink as v, useRoute as ie, useRouter as ae } from "vue-router";
3
3
  import { glossaryEntries as oe, glossaryTermsForText as se, renderBlock as y, renderInline as b, useGlossaryPopup as ce, useI18n as le } from "@museumwnf/viewer-core";
4
4
  import { t as ue } from "./GlossaryPopover-DbQKXhx9.js";
5
- import { M as de, c as fe, d as pe, k as me, u as he, v as ge } from "./data-CD0QmDAc.js";
6
- import { n as x } from "./themeSpecs-C0tSNkSd.js";
5
+ import { M as de, c as fe, d as pe, k as me, u as he, v as ge } from "./data-4nhfXqql.js";
6
+ import { n as x } from "./themeSpecs--Lu6L5XO.js";
7
7
  // \0rolldown/runtime.js
8
8
  var S = Object.defineProperty, C = (e, t) => {
9
9
  let n = Object.setPrototypeOf({}, null);
@@ -21,7 +21,7 @@ function U(e, t) {
21
21
  return 0;
22
22
  }
23
23
  function W(e, t) {
24
- return H(b("countries", e.country_id), b("countries", t.country_id)) || H(b("partners", e.partner_id), b("partners", t.partner_id)) || U(e.backward_compatibility, t.backward_compatibility);
24
+ return H(b("countries", e.country_id), b("countries", t.country_id)) || H(b("partners", e.partner_id), b("partners", t.partner_id)) || (Number.isInteger(e.sort_key) && Number.isInteger(t.sort_key) ? e.sort_key - t.sort_key : U(e.backward_compatibility, t.backward_compatibility));
25
25
  }
26
26
  var G = {
27
27
  pageSize: 20,
package/dist/dxa.js CHANGED
@@ -5,16 +5,16 @@ import { c as ue, d as V, t as de } from "./PartnerMap-DdyMLtgH.js";
5
5
  import { a as H, i as fe, n as pe } from "./TimelineEventList-CIkKxyQu.js";
6
6
  import { t as me } from "./RecordView-DAvWufWV.js";
7
7
  import { A as he, C as ge, D as _e, E as ve, M as ye, N as be, O as xe, P as Se, S as Ce, T as we, _ as Te, a as Ee, b as De, c as Oe, d as ke, f as Ae, g as je, h as Me, i as Ne, j as Pe, k as Fe, l as Ie, m as Le, n as Re, o as ze, p as Be, r as Ve, s as He, t as Ue, u as We, v as Ge, w as Ke, x as qe, y as Je } from "./data-gT947pBe.js";
8
- import { A as Ye, C as Xe, D as Ze, E as Qe, M as U, N as $e, O as et, P as tt, S as nt, T as rt, _ as it, a as at, b as ot, c as W, d as st, f as ct, g as lt, h as ut, i as dt, j as G, k as ft, l as pt, m as K, n as mt, o as ht, p as gt, r as _t, s as vt, t as yt, u as bt, v as q, w as xt, x as St, y as Ct } from "./data-CD0QmDAc.js";
8
+ import { A as Ye, C as Xe, D as Ze, E as Qe, M as U, N as $e, O as et, P as tt, S as nt, T as rt, _ as it, a as at, b as ot, c as W, d as st, f as ct, g as lt, h as ut, i as dt, j as G, k as ft, l as pt, m as K, n as mt, o as ht, p as gt, r as _t, s as vt, t as yt, u as bt, v as q, w as xt, x as St, y as Ct } from "./data-4nhfXqql.js";
9
9
  import { n as wt, r as J, t as Tt } from "./TimelineResultsView-Bn4rC_Se.js";
10
10
  import { RouterLink as Y, useRoute as X, useRouter as Et } from "vue-router";
11
11
  import { romanFor as Dt } from "@museumwnf/viewer-core/dxa";
12
12
  import { t as Ot } from "./SiteShell-D0u1FGMu.js";
13
13
  import { i as kt, n as At, r as jt, t as Mt } from "./chrome-Bv_mLlHM.js";
14
14
  import { i as Nt } from "./PageShell-BAtk_qcb.js";
15
- import { n as Pt, t as Ft } from "./LegacyItemSheet-BPI7vIv2.js";
16
- import { n as It, r as Z } from "./Theme-BUfsZDdm.js";
17
- import { n as Lt, r as Rt, t as zt } from "./themeSpecs-C0tSNkSd.js";
15
+ import { n as Pt, t as Ft } from "./LegacyItemSheet-pELiIt0_.js";
16
+ import { n as It, r as Z } from "./Theme-BwJmBagO.js";
17
+ import { n as Lt, r as Rt, t as zt } from "./themeSpecs--Lu6L5XO.js";
18
18
  // src/dxa/PartnerDetail.vue
19
19
  var Bt = { class: "mwnf-dxa-profile-languages" }, Vt = { class: "mwnf-dxa-profile-map-label" }, Ht = {
20
20
  key: 1,
@@ -215,7 +215,7 @@ function nn(e) {
215
215
  return {
216
216
  name: t.name,
217
217
  status: t.exhibition ? en.partner : en[r] ?? null,
218
- tone: t.exhibition ? "exh" : Xt[n] ?? ""
218
+ tone: "tone" in t ? t.tone ?? "" : t.exhibition ? "exh" : Xt[n] ?? ""
219
219
  };
220
220
  }
221
221
  // src/dxa/gallery/Partners.vue
@@ -1635,7 +1635,7 @@ var $i = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, ea =
1635
1635
  _: 1
1636
1636
  }, 8, ["spec"])])) : C("", !0);
1637
1637
  }
1638
- }, eo = () => Promise.resolve().then(() => _s), to = () => Promise.resolve().then(() => Es), no = () => Promise.resolve().then(() => Os), ro = () => Promise.resolve().then(() => Ws), io = () => Promise.resolve().then(() => qs), ao = () => Promise.resolve().then(() => Xs), oo = () => import("./Theme-BUfsZDdm.js").then((e) => e.t), so = () => Promise.resolve().then(() => mc), co = () => Promise.resolve().then(() => Nc), lo = () => Promise.resolve().then(() => Fc), uo = () => Promise.resolve().then(() => Zc), fo = {
1638
+ }, eo = () => Promise.resolve().then(() => _s), to = () => Promise.resolve().then(() => Es), no = () => Promise.resolve().then(() => Os), ro = () => Promise.resolve().then(() => Ws), io = () => Promise.resolve().then(() => qs), ao = () => Promise.resolve().then(() => Xs), oo = () => import("./Theme-BwJmBagO.js").then((e) => e.t), so = () => Promise.resolve().then(() => mc), co = () => Promise.resolve().then(() => Nc), lo = () => Promise.resolve().then(() => Fc), uo = () => Promise.resolve().then(() => Zc), fo = {
1639
1639
  emptyPartner: "exhibition.partnerObjects.emptyPartner",
1640
1640
  emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
1641
1641
  institutionSummary: "exhibition.partner.monumentsInExhibition",
@@ -3306,7 +3306,7 @@ var Ro = {
3306
3306
  ], r = {
3307
3307
  further_reading: 1,
3308
3308
  catalogue: 1
3309
- }, i = (e) => e.category_id ?? (e.category ? r[e.category] ?? 4 : void 0), { t: a, locale: o } = p(), l = (e) => e?.[o.value] ?? e?.en ?? "";
3309
+ }, i = (e) => e.category_id ?? (e.category ? r[e.category] ?? 4 : void 0), { t: a, locale: o } = p(), l = (e) => e?.[o.value] ?? e?.en ?? e?.und ?? "";
3310
3310
  function u(e) {
3311
3311
  let t = e.document_path ? _t(e.document_path, "hi_res") : "";
3312
3312
  return {