@museumwnf/viewer-layout 3.91.0 → 3.93.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,15 +1,16 @@
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, guardReactiveProps as l, mergeModels as u, nextTick as d, normalizeClass as f, normalizeProps as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, reactive as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, unref as C, useId as w, useModel as T, useSlots as E, vModelSelect as D, vModelText as O, vShow as k, watch as A, withCtx as j, withDirectives as M, withModifiers as N } from "vue";
2
- import { useRoute as P } from "vue-router";
3
- import { byId as F, collate as I, entityRef as ee, loadEntities as L, md as R, pictureCredits as z, picturesInLanguage as te, removeEndingPoint as B, renderBlock as ne, renderInline as V, renderPlain as H, useDataPackage as re, useI18n as U, useSection as ie, useSiteConfig as W } from "@museumwnf/viewer-core";
4
- import { t as ae } from "./SiteShell-D0u1FGMu.js";
5
- import { r as oe } from "./chrome-Bv_mLlHM.js";
6
- import { c as se, d as G, n as ce, t as le } from "./PartnerMap-DdyMLtgH.js";
7
- import { n as ue, t as de } from "./RecordView-DAvWufWV.js";
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, guardReactiveProps as l, mergeModels as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeProps as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, reactive as y, ref as b, renderList as x, renderSlot as S, resolveComponent as C, resolveDynamicComponent as w, toDisplayString as T, unref as E, useId as D, useModel as O, useSlots as k, vModelCheckbox as A, vModelSelect as j, vModelText as M, vShow as N, watch as P, withCtx as F, withDirectives as I, withModifiers as L } from "vue";
2
+ import { useRoute as ee, useRouter as te } from "vue-router";
3
+ import { byId as R, collate as z, entityRef as ne, loadEntities as B, md as V, pictureCredits as re, picturesInLanguage as ie, removeEndingPoint as H, renderBlock as U, renderInline as W, renderPlain as G, useDataPackage as ae, useI18n as K, useSection as oe, useSiteConfig as se } from "@museumwnf/viewer-core";
4
+ import { t as ce } from "./SiteShell-D0u1FGMu.js";
5
+ import { r as q } from "./chrome-Bv_mLlHM.js";
6
+ import { c as le, d as J, n as ue, t as Y } from "./PartnerMap-DdyMLtgH.js";
7
+ import { n as X, t as Z } from "./RecordView-DAvWufWV.js";
8
+ import { S as de, _ as fe, b as pe, c as me, f as he, g as ge, h as _e, i as ve, m as ye, n as be, p as Q, r as xe, t as Se, v as Ce, x as we, y as Te } from "./globalDatabase-DwTGcqXU.js";
8
9
  // src/standalone/Banner.vue
9
- var fe = {
10
+ var Ee = {
10
11
  key: 0,
11
12
  class: "mwnf-standalone-banner__title"
12
- }, pe = {
13
+ }, De = {
13
14
  __name: "Banner",
14
15
  props: {
15
16
  image: {
@@ -22,116 +23,107 @@ var fe = {
22
23
  }
23
24
  },
24
25
  setup(e) {
25
- return (t, n) => (_(), i("div", {
26
+ return (t, n) => (v(), i("div", {
26
27
  class: "mwnf-standalone-banner",
27
- style: m(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
28
- }, [e.title ? (_(), i("h1", fe, [a("span", null, S(e.title), 1)])) : r("", !0)], 4));
28
+ style: h(e.image ? { backgroundImage: `url(${JSON.stringify(e.image)})` } : void 0)
29
+ }, [e.title ? (v(), i("h1", Ee, [a("span", null, T(e.title), 1)])) : r("", !0)], 4));
29
30
  }
30
31
  };
31
32
  // src/standalone/chrome.js
32
- function K() {
33
- let e = W();
34
- return (t) => oe(e.chrome, t);
33
+ function Oe() {
34
+ let e = se();
35
+ return (t) => q(e.chrome, t);
35
36
  }
36
- function me(e, t) {
37
+ function ke(e, t) {
37
38
  return !e || typeof e == "string" ? e ?? "" : e[t] ?? e.en ?? Object.values(e)[0] ?? "";
38
39
  }
39
- function q(e = /* @__PURE__ */ new Date()) {
40
+ function Ae(e = /* @__PURE__ */ new Date()) {
40
41
  let t = new Date(e.getFullYear(), 0, 1);
41
42
  return Math.round((new Date(e.getFullYear(), e.getMonth(), e.getDate()) - t) / 864e5);
42
43
  }
43
- function J(e, t = /* @__PURE__ */ new Date()) {
44
- return e?.length ? e[q(t) % e.length] : null;
44
+ function je(e, t = /* @__PURE__ */ new Date()) {
45
+ return e?.length ? e[Ae(t) % e.length] : null;
45
46
  }
46
- function he(e, t = /* @__PURE__ */ new Date()) {
47
- return J([...e?.values?.() ?? e ?? []].filter((e) => e?.images?.[0]?.url).sort((e, t) => e.id < t.id ? -1 : +(e.id > t.id)), t)?.images[0].url ?? "";
47
+ function Me(e, t = /* @__PURE__ */ new Date()) {
48
+ return Ne(e, t)?.images[0].url ?? "";
48
49
  }
49
- function ge(e) {
50
- let [t, ...n] = String(e ?? "").split("*")[0].trim().split(";");
51
- return !t || n.length < 5 ? "" : [
52
- "mwnf3",
53
- `${t}s`,
54
- ...n.slice(0, n.length - 1)
55
- ].join(":");
50
+ function Ne(e, t = /* @__PURE__ */ new Date()) {
51
+ return je([...e?.values?.() ?? e ?? []].filter((e) => e?.images?.[0]?.url).sort((e, t) => e.id < t.id ? -1 : +(e.id > t.id)), t);
56
52
  }
57
- var _e = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
58
- function Y(e) {
59
- return (e ?? []).every((e) => _e.test(String(e ?? "").trim()));
60
- }
61
- function ve(e, { byId: t, byLegacyKey: n = null, date: r = /* @__PURE__ */ new Date() } = {}) {
53
+ function Pe(e, { byId: t, date: n = /* @__PURE__ */ new Date() } = {}) {
62
54
  if (!e?.length) return null;
63
- let i = q(r) % e.length;
64
- for (let r = 0; r < e.length; r++) {
65
- let a = String(e[(i + r) % e.length] ?? "").trim(), o = _e.test(a) ? t?.get(a) : n?.get(ge(a));
66
- if (o) return o;
55
+ let r = Ae(n) % e.length;
56
+ for (let n = 0; n < e.length; n++) {
57
+ let i = t?.get(String(e[(r + n) % e.length] ?? "").trim());
58
+ if (i) return i;
67
59
  }
68
60
  return null;
69
61
  }
70
62
  // src/standalone/Sponsors.vue
71
- var ye = { class: "mwnf-standalone-sponsors" }, be = {
63
+ var Fe = { class: "mwnf-standalone-sponsors" }, Ie = {
72
64
  key: 0,
73
65
  class: "mwnf-standalone-sponsors__text"
74
- }, xe = ["innerHTML"], Se = { key: 1 }, Ce = ["innerHTML"], we = {
66
+ }, Le = ["innerHTML"], Re = { key: 1 }, ze = ["innerHTML"], Be = {
75
67
  key: 1,
76
68
  class: "mwnf-standalone-sponsors__title"
77
- }, Te = {
69
+ }, Ve = {
78
70
  key: 2,
79
71
  class: "mwnf-standalone-sponsors__logos"
80
- }, Ee = {
72
+ }, He = {
81
73
  key: 0,
82
74
  class: "mwnf-standalone-sponsors__note"
83
- }, De = ["src", "alt"], Oe = ["innerHTML"], ke = ["href"], Ae = ["src", "alt"], je = ["src", "alt"], Me = {
75
+ }, Ue = ["src", "alt"], We = ["innerHTML"], Ge = ["href"], Ke = ["src", "alt"], qe = ["src", "alt"], Je = {
84
76
  key: 3,
85
77
  class: "mwnf-standalone-sponsors__links"
86
- }, Ne = {
78
+ }, Ye = {
87
79
  __name: "Sponsors",
88
80
  props: { columns: {
89
81
  type: Array,
90
82
  default: () => []
91
83
  } },
92
84
  setup(n) {
93
- let o = n, { t: l } = U(), u = K(), d = t(() => o.columns.map((e, t) => ({
85
+ let o = n, { t: l } = K(), u = Oe(), d = t(() => o.columns.map((e, t) => ({
94
86
  key: t,
95
87
  width: e.width ?? null,
96
- lead: e.lead ? V(l(e.lead)) : "",
97
- text: e.text ? V(l(e.text)) : "",
88
+ lead: e.lead ? W(l(e.lead)) : "",
89
+ text: e.text ? W(l(e.text)) : "",
98
90
  break: !!e.break,
99
91
  title: e.title ? l(e.title) : "",
100
92
  logos: (e.logos ?? []).map((e) => ({
101
93
  src: u(e.src) ?? "",
102
94
  alt: e.alt ? l(e.alt) : "",
103
95
  href: e.href ?? "",
104
- note: e.note ? ne(l(e.note)) : ""
96
+ note: e.note ? U(l(e.note)) : ""
105
97
  })),
106
98
  links: (e.links ?? []).map((e) => ({
107
99
  ...e,
108
100
  label: l(e.label)
109
101
  }))
110
102
  })));
111
- return (t, n) => (_(), i("div", ye, [(_(!0), i(e, null, b(d.value, (t) => (_(), i("div", {
103
+ return (t, n) => (v(), i("div", Fe, [(v(!0), i(e, null, x(d.value, (t) => (v(), i("div", {
112
104
  key: t.key,
113
105
  class: "mwnf-standalone-sponsors__column",
114
- style: m(t.width ? { flexGrow: t.width } : void 0)
106
+ style: h(t.width ? { flexGrow: t.width } : void 0)
115
107
  }, [
116
- t.lead || t.text ? (_(), i("p", be, [
117
- t.lead ? (_(), i("i", {
108
+ t.lead || t.text ? (v(), i("p", Ie, [
109
+ t.lead ? (v(), i("i", {
118
110
  key: 0,
119
111
  innerHTML: t.lead
120
- }, null, 8, xe)) : r("", !0),
121
- t.lead && t.break ? (_(), i("br", Se)) : t.lead && t.text ? (_(), i(e, { key: 2 }, [s(S(" "))], 64)) : r("", !0),
122
- t.text ? (_(), i("span", {
112
+ }, null, 8, Le)) : r("", !0),
113
+ t.lead && t.break ? (v(), i("br", Re)) : t.lead && t.text ? (v(), i(e, { key: 2 }, [s(T(" "))], 64)) : r("", !0),
114
+ t.text ? (v(), i("span", {
123
115
  key: 3,
124
116
  innerHTML: t.text
125
- }, null, 8, Ce)) : r("", !0)
117
+ }, null, 8, ze)) : r("", !0)
126
118
  ])) : r("", !0),
127
- t.title ? (_(), i("p", we, S(t.title), 1)) : r("", !0),
128
- t.logos.length ? (_(), i("ul", Te, [(_(!0), i(e, null, b(t.logos, (e) => (_(), i("li", { key: e.src }, [e.note ? (_(), i("details", Ee, [a("summary", null, [a("img", {
119
+ t.title ? (v(), i("p", Be, T(t.title), 1)) : r("", !0),
120
+ t.logos.length ? (v(), i("ul", Ve, [(v(!0), i(e, null, x(t.logos, (e) => (v(), i("li", { key: e.src }, [e.note ? (v(), i("details", He, [a("summary", null, [a("img", {
129
121
  src: e.src,
130
122
  alt: e.alt
131
- }, null, 8, De)]), a("div", {
123
+ }, null, 8, Ue)]), a("div", {
132
124
  class: "mwnf-standalone-sponsors__note-body",
133
125
  innerHTML: e.note
134
- }, null, 8, Oe)])) : e.href ? (_(), i("a", {
126
+ }, null, 8, We)])) : e.href ? (v(), i("a", {
135
127
  key: 1,
136
128
  href: e.href,
137
129
  target: "_blank",
@@ -139,17 +131,17 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
139
131
  }, [a("img", {
140
132
  src: e.src,
141
133
  alt: e.alt
142
- }, null, 8, Ae)], 8, ke)) : (_(), i("img", {
134
+ }, null, 8, Ke)], 8, Ge)) : (v(), i("img", {
143
135
  key: 2,
144
136
  src: e.src,
145
137
  alt: e.alt
146
- }, null, 8, je))]))), 128))])) : r("", !0),
147
- t.links.length ? (_(), i("ul", Me, [(_(!0), i(e, null, b(t.links, (e) => (_(), i("li", { key: e.label }, [c(G, {
138
+ }, null, 8, qe))]))), 128))])) : r("", !0),
139
+ t.links.length ? (v(), i("ul", Je, [(v(!0), i(e, null, x(t.links, (e) => (v(), i("li", { key: e.label }, [c(J, {
148
140
  to: e.to,
149
141
  href: e.href,
150
142
  external: !!e.external
151
143
  }, {
152
- default: j(() => [s(S(e.label), 1)]),
144
+ default: F(() => [s(T(e.label), 1)]),
153
145
  _: 2
154
146
  }, 1032, [
155
147
  "to",
@@ -158,16 +150,16 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
158
150
  ])]))), 128))])) : r("", !0)
159
151
  ], 4))), 128))]));
160
152
  }
161
- }, Pe = {
153
+ }, Xe = {
162
154
  key: 0,
163
155
  class: "mwnf-standalone mwnf-standalone--bare"
164
- }, Fe = { class: "mwnf-banner mwnf-standalone-home-banner" }, Ie = ["src"], Le = { class: "mwnf-standalone-home-banner__text" }, Re = {
156
+ }, Ze = { class: "mwnf-banner mwnf-standalone-home-banner" }, Qe = ["src"], $e = { class: "mwnf-standalone-home-banner__text" }, et = {
165
157
  key: 0,
166
158
  class: "mwnf-standalone-home-banner__title"
167
- }, ze = {
159
+ }, tt = {
168
160
  key: 1,
169
161
  class: "mwnf-standalone-home-banner__line"
170
- }, Be = ["src"], Ve = {
162
+ }, nt = ["src"], rt = {
171
163
  __name: "Shell",
172
164
  props: {
173
165
  language: {
@@ -181,31 +173,31 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
181
173
  },
182
174
  emits: ["update:language"],
183
175
  setup(e, { emit: s }) {
184
- let l = e, u = s, { t: d, locale: p } = U(), m = P(), h = t(() => !!m.meta?.bare), g = W(), v = ie(), y = t(() => g.standalone ?? {}), b = t(() => g.navigation ?? {}), w = t(() => v.value === "home"), T = t(() => y.value.areas?.[v.value] ?? null), E = (e) => oe(g.chrome, me(e, p.value)), D = t(() => {
185
- let e = y.value.logo ?? {}, t = E(T.value?.logo ?? e.src);
176
+ let l = e, u = s, { t: d, locale: f } = K(), m = ee(), h = t(() => !!m.meta?.bare), g = se(), _ = oe(), y = t(() => g.standalone ?? {}), b = t(() => g.navigation ?? {}), x = t(() => _.value === "home"), C = t(() => y.value.areas?.[_.value] ?? null), w = (e) => q(g.chrome, ke(e, f.value)), D = t(() => {
177
+ let e = y.value.logo ?? {}, t = w(C.value?.logo ?? e.src);
186
178
  return t ? {
187
179
  logo: t,
188
180
  alt: e.alt ?? ""
189
181
  } : null;
190
- }), O = t(() => E(y.value.logo?.print)), k = t(() => (y.value.headerLinks ?? []).filter((e) => !e.on || e.on === "all" || e.on === (w.value ? "home" : "inner"))), A = t(() => {
182
+ }), O = t(() => w(y.value.logo?.print)), k = t(() => (y.value.headerLinks ?? []).filter((e) => !e.on || e.on === "all" || e.on === (x.value ? "home" : "inner"))), A = t(() => {
191
183
  let e = {
192
184
  ...y.value.banner ?? {},
193
- ...T.value?.banner ?? {}
185
+ ...C.value?.banner ?? {}
194
186
  };
195
- return E(w.value ? e.home : e.inner) ?? "";
196
- }), M = t(() => {
197
- let e = m.meta?.bannerTitle ?? b.value.sectionTitles?.[v.value];
187
+ return w(x.value ? e.home : e.inner) ?? "";
188
+ }), j = t(() => {
189
+ let e = m.meta?.bannerTitle ?? b.value.sectionTitles?.[_.value];
198
190
  return e ? d(e) : "";
199
- }), N = t(() => !w.value && !!(A.value || M.value)), F = t(() => {
191
+ }), M = t(() => !x.value && !!(A.value || j.value)), N = t(() => {
200
192
  let { homeTitle: e, homeText: t } = y.value.banner ?? {};
201
- return w.value && (e || t) ? {
193
+ return x.value && (e || t) ? {
202
194
  title: e ? d(e) : "",
203
195
  text: t ? d(t) : ""
204
196
  } : null;
205
- }), I = t(() => {
197
+ }), P = t(() => {
206
198
  let e = y.value.sponsors;
207
- return e?.columns?.length && (e.on === "all" || w.value) ? e : null;
208
- }), ee = t(() => ({
199
+ return e?.columns?.length && (e.on === "all" || x.value) ? e : null;
200
+ }), I = t(() => ({
209
201
  navigation: {
210
202
  ...b.value,
211
203
  headerLinks: k.value,
@@ -214,68 +206,68 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
214
206
  },
215
207
  banner: null,
216
208
  ...D.value ? { brand: D.value } : {}
217
- })), L = (/* @__PURE__ */ new Date()).getFullYear(), R = t(() => y.value.copyright ? `${d(y.value.copyright)} ${L}` : ""), z = t(() => [
209
+ })), L = (/* @__PURE__ */ new Date()).getFullYear(), te = t(() => y.value.copyright ? `${d(y.value.copyright)} ${L}` : ""), R = t(() => [
218
210
  "mwnf-standalone",
219
- w.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
220
- T.value?.class ?? ""
211
+ x.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
212
+ C.value?.class ?? ""
221
213
  ]);
222
- return (e, t) => h.value ? (_(), i("div", Pe, [x(e.$slots, "default")])) : (_(), n(ae, {
214
+ return (e, t) => h.value ? (v(), i("div", Xe, [S(e.$slots, "default")])) : (v(), n(ce, {
223
215
  key: 1,
224
- class: f(z.value),
225
- config: ee.value,
216
+ class: p(R.value),
217
+ config: I.value,
226
218
  languages: y.value.languages === !1 ? [] : l.languages,
227
219
  language: l.language,
228
220
  "language-placement": "header",
229
221
  "language-style": "select",
230
222
  "header-home": y.value.logo?.href ?? "",
231
- "header-title": w.value ? "" : y.value.heading ? C(d)(y.value.heading) : "",
232
- "header-subtitle": w.value ? "" : y.value.subheading ? C(d)(y.value.subheading) : "",
223
+ "header-title": x.value ? "" : y.value.heading ? E(d)(y.value.heading) : "",
224
+ "header-subtitle": x.value ? "" : y.value.subheading ? E(d)(y.value.subheading) : "",
233
225
  "header-title-href": "#/",
234
- "banner-image": w.value && !F.value ? A.value : "",
235
- "footer-text": R.value || void 0,
226
+ "banner-image": x.value && !N.value ? A.value : "",
227
+ "footer-text": te.value || void 0,
236
228
  "onUpdate:language": t[0] ||= (e) => u("update:language", e)
237
229
  }, o({
238
- default: j(() => [x(e.$slots, "default")]),
230
+ default: F(() => [S(e.$slots, "default")]),
239
231
  _: 2
240
232
  }, [
241
- N.value ? {
233
+ M.value ? {
242
234
  name: "banner",
243
- fn: j(() => [c(pe, {
235
+ fn: F(() => [c(De, {
244
236
  image: A.value,
245
- title: M.value
237
+ title: j.value
246
238
  }, null, 8, ["image", "title"])]),
247
239
  key: "0"
248
- } : F.value ? {
240
+ } : N.value ? {
249
241
  name: "banner",
250
- fn: j(() => [a("section", Fe, [A.value ? (_(), i("img", {
242
+ fn: F(() => [a("section", Ze, [A.value ? (v(), i("img", {
251
243
  key: 0,
252
244
  class: "mwnf-banner__image",
253
245
  src: A.value,
254
246
  alt: ""
255
- }, null, 8, Ie)) : r("", !0), a("div", Le, [F.value.title ? (_(), i("h2", Re, [a("i", null, S(F.value.title), 1)])) : r("", !0), F.value.text ? (_(), i("p", ze, [a("span", null, S(F.value.text), 1)])) : r("", !0)])])]),
247
+ }, null, 8, Qe)) : r("", !0), a("div", $e, [N.value.title ? (v(), i("h2", et, [a("i", null, T(N.value.title), 1)])) : r("", !0), N.value.text ? (v(), i("p", tt, [a("span", null, T(N.value.text), 1)])) : r("", !0)])])]),
256
248
  key: "1"
257
249
  } : void 0,
258
250
  O.value ? {
259
251
  name: "notice",
260
- fn: j(() => [a("img", {
252
+ fn: F(() => [a("img", {
261
253
  class: "mwnf-standalone__print-logo",
262
254
  src: O.value,
263
255
  alt: ""
264
- }, null, 8, Be)]),
256
+ }, null, 8, nt)]),
265
257
  key: "2"
266
258
  } : void 0,
267
259
  e.$slots.sponsors ? {
268
260
  name: "sponsors",
269
- fn: j(() => [x(e.$slots, "sponsors")]),
261
+ fn: F(() => [S(e.$slots, "sponsors")]),
270
262
  key: "3"
271
- } : I.value ? {
263
+ } : P.value ? {
272
264
  name: "sponsors",
273
- fn: j(() => [c(Ne, { columns: I.value.columns }, null, 8, ["columns"])]),
265
+ fn: F(() => [c(Ye, { columns: P.value.columns }, null, 8, ["columns"])]),
274
266
  key: "4"
275
267
  } : void 0,
276
268
  e.$slots.footer ? {
277
269
  name: "footer",
278
- fn: j(() => [x(e.$slots, "footer")]),
270
+ fn: F(() => [S(e.$slots, "footer")]),
279
271
  key: "5"
280
272
  } : void 0
281
273
  ]), 1032, [
@@ -290,19 +282,19 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
290
282
  "footer-text"
291
283
  ]));
292
284
  }
293
- }, He = {
285
+ }, it = {
294
286
  key: 0,
295
287
  class: "mwnf-standalone-highlight"
296
- }, Ue = ["src", "alt"], We = {
288
+ }, at = ["src", "alt"], ot = {
297
289
  key: 1,
298
290
  class: "mwnf-standalone-highlight__heading"
299
- }, Ge = { class: "mwnf-standalone-highlight__lines" }, Ke = ["innerHTML"], qe = {
291
+ }, st = { class: "mwnf-standalone-highlight__lines" }, ct = ["innerHTML"], lt = {
300
292
  key: 2,
301
293
  class: "mwnf-standalone-highlight__place"
302
- }, Je = {
294
+ }, ut = {
303
295
  key: 3,
304
296
  class: "mwnf-standalone-highlight__action"
305
- }, Ye = {
297
+ }, dt = {
306
298
  __name: "TodayHighlight",
307
299
  props: {
308
300
  record: {
@@ -343,51 +335,51 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
343
335
  }
344
336
  },
345
337
  setup(o) {
346
- let l = o, { t: u } = U(), d = (e) => B(Array.isArray(e) ? e.join("; ") : e), f = t(() => {
338
+ let l = o, { t: u } = K(), d = (e) => H(Array.isArray(e) ? e.join("; ") : e), f = t(() => {
347
339
  let e = l.text ?? {}, t = [], n = d(e.name ?? l.record?.internal_name ?? "");
348
- n && t.push(V(n));
340
+ n && t.push(W(n));
349
341
  let r = d(e.alternate_name);
350
- r && t.push(`${l.alsoKnownAs ? `${u(l.alsoKnownAs)} ` : ""}${V(r)}`);
342
+ r && t.push(`${l.alsoKnownAs ? `${u(l.alsoKnownAs)} ` : ""}${W(r)}`);
351
343
  let i = [d(e.dates), d(e.dynasty)].filter(Boolean).join(", ");
352
- i && t.push(V(i));
344
+ i && t.push(W(i));
353
345
  for (let n of ["materials", "holder"]) {
354
346
  let r = d(e[n]);
355
- r && t.push(V(r));
347
+ r && t.push(W(r));
356
348
  }
357
349
  return t;
358
- }), p = t(() => l.place ?? [d(l.text?.location), l.country].filter(Boolean).join(", ")), m = t(() => l.picture || (l.record?.images?.[0]?.url ?? "")), h = t(() => H(String(l.text?.name ?? l.record?.internal_name ?? "")));
359
- return (t, l) => o.record ? (_(), i("div", He, [
360
- m.value ? (_(), n(G, {
350
+ }), p = t(() => l.place ?? [d(l.text?.location), l.country].filter(Boolean).join(", ")), m = t(() => l.picture || (l.record?.images?.[0]?.url ?? "")), h = t(() => G(String(l.text?.name ?? l.record?.internal_name ?? "")));
351
+ return (t, l) => o.record ? (v(), i("div", it, [
352
+ m.value ? (v(), n(J, {
361
353
  key: 0,
362
354
  class: "mwnf-standalone-highlight__media",
363
355
  to: o.to
364
356
  }, {
365
- default: j(() => [a("img", {
357
+ default: F(() => [a("img", {
366
358
  class: "mwnf-standalone-highlight__image",
367
359
  src: m.value,
368
360
  alt: h.value
369
- }, null, 8, Ue)]),
361
+ }, null, 8, at)]),
370
362
  _: 1
371
363
  }, 8, ["to"])) : r("", !0),
372
- o.heading ? (_(), i("p", We, [a("strong", null, S(C(u)(o.heading)), 1)])) : r("", !0),
373
- a("p", Ge, [(_(!0), i(e, null, b(f.value, (t, n) => (_(), i(e, { key: n }, [a("span", { innerHTML: t }, null, 8, Ke), l[0] ||= a("br", null, null, -1)], 64))), 128))]),
374
- p.value ? (_(), i("p", qe, S(C(H)(p.value)), 1)) : r("", !0),
375
- o.action ? (_(), i("p", Je, [c(G, { to: o.to }, {
376
- default: j(() => [s(S(C(u)(o.action)), 1)]),
364
+ o.heading ? (v(), i("p", ot, [a("strong", null, T(E(u)(o.heading)), 1)])) : r("", !0),
365
+ a("p", st, [(v(!0), i(e, null, x(f.value, (t, n) => (v(), i(e, { key: n }, [a("span", { innerHTML: t }, null, 8, ct), l[0] ||= a("br", null, null, -1)], 64))), 128))]),
366
+ p.value ? (v(), i("p", lt, T(E(G)(p.value)), 1)) : r("", !0),
367
+ o.action ? (v(), i("p", ut, [c(J, { to: o.to }, {
368
+ default: F(() => [s(T(E(u)(o.action)), 1)]),
377
369
  _: 1
378
370
  }, 8, ["to"])])) : r("", !0)
379
371
  ])) : r("", !0);
380
372
  }
381
- }, Xe = {
373
+ }, ft = {
382
374
  key: 0,
383
375
  class: "mwnf-standalone-tiles"
384
- }, Ze = {
376
+ }, pt = {
385
377
  key: 0,
386
378
  class: "mwnf-standalone-tiles__caption"
387
- }, Qe = { class: "mwnf-standalone-tiles__caption-text" }, $e = { class: "mwnf-standalone-tiles__grid" }, et = ["src", "alt"], tt = {
379
+ }, mt = { class: "mwnf-standalone-tiles__caption-text" }, ht = { class: "mwnf-standalone-tiles__grid" }, gt = ["src", "alt"], _t = {
388
380
  key: 0,
389
381
  class: "mwnf-standalone-tiles__label"
390
- }, nt = {
382
+ }, vt = {
391
383
  __name: "TileGrid",
392
384
  props: {
393
385
  caption: {
@@ -400,73 +392,70 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
400
392
  }
401
393
  },
402
394
  setup(n) {
403
- let o = n, { t: s } = U(), l = K(), u = t(() => o.items.map((e) => ({
395
+ let o = n, { t: s } = K(), l = Oe(), u = t(() => o.items.map((e) => ({
404
396
  ...e,
405
397
  image: l(e.image) ?? "",
406
- label: e.text ? H(e.text) : e.label ? s(e.label) : ""
398
+ label: e.text ? G(e.text) : e.label ? s(e.label) : ""
407
399
  })));
408
- return (t, o) => u.value.length ? (_(), i("section", Xe, [n.caption ? (_(), i("p", Ze, [a("span", Qe, S(C(s)(n.caption)), 1)])) : r("", !0), a("ul", $e, [(_(!0), i(e, null, b(u.value, (e) => (_(), i("li", {
400
+ return (t, o) => u.value.length ? (v(), i("section", ft, [n.caption ? (v(), i("p", pt, [a("span", mt, T(E(s)(n.caption)), 1)])) : r("", !0), a("ul", ht, [(v(!0), i(e, null, x(u.value, (e) => (v(), i("li", {
409
401
  key: e.image,
410
402
  class: "mwnf-standalone-tiles__tile"
411
- }, [c(G, {
403
+ }, [c(J, {
412
404
  to: e.to,
413
405
  href: e.href,
414
406
  class: "mwnf-standalone-tiles__link"
415
407
  }, {
416
- default: j(() => [a("img", {
408
+ default: F(() => [a("img", {
417
409
  class: "mwnf-standalone-tiles__image",
418
410
  src: e.image,
419
411
  alt: e.label
420
- }, null, 8, et), e.label ? (_(), i("span", tt, S(e.label), 1)) : r("", !0)]),
412
+ }, null, 8, gt), e.label ? (v(), i("span", _t, T(e.label), 1)) : r("", !0)]),
421
413
  _: 2
422
414
  }, 1032, ["to", "href"])]))), 128))])])) : r("", !0);
423
415
  }
424
- }, rt = { class: "mwnf-standalone-home" }, it = {
416
+ }, yt = { class: "mwnf-standalone-home" }, bt = {
425
417
  key: 0,
426
418
  class: "mwnf-standalone-home__links"
427
- }, at = { key: 1 }, ot = {
419
+ }, xt = { key: 1 }, St = {
428
420
  __name: "Home",
429
421
  props: { home: {
430
422
  type: Object,
431
423
  default: null
432
424
  } },
433
425
  setup(a) {
434
- let o = a, { t: l, locale: u } = U(), d = W(), p = t(() => o.home ?? d.standalone?.home ?? {}), m = t(() => (p.value.links ?? []).map((e) => ({
426
+ let o = a, { t: l, locale: u } = K(), d = se(), f = t(() => o.home ?? d.standalone?.home ?? {}), m = t(() => (f.value.links ?? []).map((e) => ({
435
427
  ...e,
436
428
  label: l(e.label),
437
429
  prefix: e.prefix ? l(e.prefix) : "",
438
430
  title: e.title ? l(e.title) : void 0
439
- }))), h = t(() => p.value.highlight ?? null), g = re();
440
- h.value?.list?.length && (L(["items", "countries"]), A(u, (e) => {
431
+ }))), h = t(() => f.value.highlight ?? null), g = ae(), _ = h.value?.list === "random";
432
+ (_ || h.value?.list?.length) && (B(["items", "countries"]), P(u, (e) => {
441
433
  g.loadTranslations("items", e), g.loadTranslations("countries", e);
442
434
  }, { immediate: !0 }));
443
- let v = F("items"), y = Y(h.value?.list) ? null : F("items", "backward_compatibility"), C = t(() => ve(h.value?.list ?? [], {
444
- byId: v.value,
445
- byLegacyKey: y?.value ?? null
446
- })), w = t(() => C.value ? g.tr("items", C.value.id, u.value, "en") : {}), T = t(() => {
447
- let e = C.value?.country_id;
435
+ let y = R("items"), b = t(() => _ ? Ne(y.value) : Pe(h.value?.list ?? [], { byId: y.value }) ?? Ne(y.value)), C = t(() => b.value ? g.tr("items", b.value.id, u.value, "en") : {}), w = t(() => {
436
+ let e = b.value?.country_id;
448
437
  return e ? g.tr("countries", e, u.value, "en").name ?? "" : "";
449
- }), E = t(() => C.value && h.value?.place ? h.value.place(C.value, w.value, T.value) : null), D = t(() => C.value ? {
438
+ }), E = t(() => b.value && h.value?.place ? h.value.place(b.value, C.value, w.value) : null), D = t(() => b.value ? {
450
439
  name: h.value.route ?? "item",
451
- params: { id: C.value.id }
452
- } : null), O = K(), k = t(() => {
440
+ params: { id: b.value.id }
441
+ } : null), O = Oe(), k = t(() => {
453
442
  let e = h.value?.pictures ?? [];
454
- return e === "inventory" ? he(v.value) : e.length ? O(J(e)) ?? "" : "";
455
- }), M = t(() => {
456
- let e = p.value.tiles?.items;
443
+ return e === "inventory" ? Me(y.value) : e.length ? O(je(e)) ?? "" : "";
444
+ }), A = t(() => {
445
+ let e = f.value.tiles?.items;
457
446
  return (typeof e == "function" ? e() : e) ?? [];
458
447
  });
459
- return (t, a) => (_(), i("div", rt, [
460
- m.value.length ? (_(), i("ul", it, [(_(!0), i(e, null, b(m.value, (t) => (_(), i("li", {
448
+ return (t, a) => (v(), i("div", yt, [
449
+ m.value.length ? (v(), i("ul", bt, [(v(!0), i(e, null, x(m.value, (t) => (v(), i("li", {
461
450
  key: t.label,
462
- class: f({ "mwnf-standalone-home__link--gap": t.gap })
463
- }, [c(G, {
451
+ class: p({ "mwnf-standalone-home__link--gap": t.gap })
452
+ }, [c(J, {
464
453
  to: t.to,
465
454
  href: t.href,
466
455
  external: !!t.external,
467
456
  title: t.title
468
457
  }, {
469
- default: j(() => [t.prefix ? (_(), i(e, { key: 0 }, [s(S(`${t.prefix} `), 1)], 64)) : r("", !0), t.italic ? (_(), i("i", at, S(t.label), 1)) : (_(), i(e, { key: 2 }, [s(S(t.label), 1)], 64))]),
458
+ default: F(() => [t.prefix ? (v(), i(e, { key: 0 }, [s(T(`${t.prefix} `), 1)], 64)) : r("", !0), t.italic ? (v(), i("i", xt, T(t.label), 1)) : (v(), i(e, { key: 2 }, [s(T(t.label), 1)], 64))]),
470
459
  _: 2
471
460
  }, 1032, [
472
461
  "to",
@@ -474,11 +463,11 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
474
463
  "external",
475
464
  "title"
476
465
  ])], 2))), 128))])) : r("", !0),
477
- h.value ? (_(), n(Ye, {
466
+ h.value ? (v(), n(dt, {
478
467
  key: 1,
479
- record: C.value,
480
- text: w.value,
481
- country: T.value,
468
+ record: b.value,
469
+ text: C.value,
470
+ country: w.value,
482
471
  place: E.value,
483
472
  to: D.value,
484
473
  picture: k.value,
@@ -496,16 +485,16 @@ var ye = { class: "mwnf-standalone-sponsors" }, be = {
496
485
  "also-known-as",
497
486
  "action"
498
487
  ])) : r("", !0),
499
- p.value.tiles ? (_(), n(nt, {
488
+ f.value.tiles ? (v(), n(vt, {
500
489
  key: 2,
501
- caption: p.value.tiles.caption ?? "",
502
- items: M.value
490
+ caption: f.value.tiles.caption ?? "",
491
+ items: A.value
503
492
  }, null, 8, ["caption", "items"])) : r("", !0),
504
- x(t.$slots, "default")
493
+ S(t.$slots, "default")
505
494
  ]));
506
495
  }
507
- }, st = "html { height: 100%; margin-bottom: 1px; }\nbody, p, div, td { font: Normal 11px/14px verdana, arial, helvetica; }\nbody { padding: 0px; border: 0px; border-spacing: 0px; margin: 0px auto; }\ndiv { padding: 0px; border: 0px; border-spacing: 0px; margin: 0px; }\np { font: Normal 11px/14px Verdana, Arial, Helvetica; padding: 3px; padding-left: 8px; padding-bottom: 30px; line-height: 1.4em; margin: 0px 0px 10px 0px; }\na, a:link, a:hover, a:visited, a:active { text-decoration: none; }\nh3 { font: Normal 11px/14px Verdana, Arial, Helvetica; padding-left: 8px; padding-right: 8px; font-weight: bold; margin: 0px; }\n.item_description { font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 25px; padding-bottom: 25px; width: 990px; }", ct = ".mwnf-sheet__label, .mwnf-sheet-section__heading, .mwnf-credits__heading", lt = ".mwnf-sheet__value, .mwnf-sheet-section__body, .mwnf-credits__citation, .mwnf-credits__list > dt, .mwnf-credits__number, .mwnf-sheet__short .mwnf-sheet__block", ut = "button, img, svg, picture, video, audio, iframe, script, style, [role=\"tooltip\"], [aria-hidden=\"true\"]";
508
- function X(e) {
496
+ }, Ct = "html { height: 100%; margin-bottom: 1px; }\nbody, p, div, td { font: Normal 11px/14px verdana, arial, helvetica; }\nbody { padding: 0px; border: 0px; border-spacing: 0px; margin: 0px auto; }\ndiv { padding: 0px; border: 0px; border-spacing: 0px; margin: 0px; }\np { font: Normal 11px/14px Verdana, Arial, Helvetica; padding: 3px; padding-left: 8px; padding-bottom: 30px; line-height: 1.4em; margin: 0px 0px 10px 0px; }\na, a:link, a:hover, a:visited, a:active { text-decoration: none; }\nh3 { font: Normal 11px/14px Verdana, Arial, Helvetica; padding-left: 8px; padding-right: 8px; font-weight: bold; margin: 0px; }\n.item_description { font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 25px; padding-bottom: 25px; width: 990px; }", wt = ".mwnf-sheet__label, .mwnf-sheet-section__heading, .mwnf-credits__heading", Tt = ".mwnf-sheet__value, .mwnf-sheet-section__body, .mwnf-credits__citation, .mwnf-credits__list > dt, .mwnf-credits__number, .mwnf-sheet__short .mwnf-sheet__block", Et = "button, img, svg, picture, video, audio, iframe, script, style, [role=\"tooltip\"], [aria-hidden=\"true\"]";
497
+ function $(e) {
509
498
  return String(e ?? "").replace(/[&<>"]/g, (e) => ({
510
499
  "&": "&amp;",
511
500
  "<": "&lt;",
@@ -513,7 +502,7 @@ function X(e) {
513
502
  "\"": "&quot;"
514
503
  })[e]);
515
504
  }
516
- var dt = /* @__PURE__ */ new Set([
505
+ var Dt = /* @__PURE__ */ new Set([
517
506
  "I",
518
507
  "EM",
519
508
  "B",
@@ -521,7 +510,7 @@ var dt = /* @__PURE__ */ new Set([
521
510
  "U",
522
511
  "SUP",
523
512
  "SUB"
524
- ]), ft = /* @__PURE__ */ new Set([
513
+ ]), Ot = /* @__PURE__ */ new Set([
525
514
  "P",
526
515
  "DIV",
527
516
  "LI",
@@ -529,20 +518,20 @@ var dt = /* @__PURE__ */ new Set([
529
518
  "OL",
530
519
  "SECTION"
531
520
  ]);
532
- function Z(e) {
521
+ function kt(e) {
533
522
  let t = [[]], n = () => t[t.length - 1], r = () => {
534
523
  n().length && t.push([]);
535
524
  }, i = (e) => {
536
525
  if (e.nodeType === Node.TEXT_NODE) {
537
- n().push(X(e.textContent));
526
+ n().push($(e.textContent));
538
527
  return;
539
528
  }
540
- if (e.nodeType !== Node.ELEMENT_NODE || e.matches(ut)) return;
529
+ if (e.nodeType !== Node.ELEMENT_NODE || e.matches(Et)) return;
541
530
  if (e.tagName === "BR") {
542
531
  n().push("<br/>");
543
532
  return;
544
533
  }
545
- let t = ft.has(e.tagName), a = dt.has(e.tagName) ? e.tagName.toLowerCase() : "";
534
+ let t = Ot.has(e.tagName), a = Dt.has(e.tagName) ? e.tagName.toLowerCase() : "";
546
535
  t && r(), a && n().push(`<${a}>`);
547
536
  for (let t of e.childNodes) i(t);
548
537
  a && n().push(`</${a}>`), t && r();
@@ -550,28 +539,28 @@ function Z(e) {
550
539
  for (let t of e.childNodes) i(t);
551
540
  return t.map((e) => e.join("").replace(/\s+/g, " ").trim()).filter(Boolean).join("<br/>\n<br/>");
552
541
  }
553
- function pt(e, { title: t = "", dir: n = "" } = {}) {
542
+ function At(e, { title: t = "", dir: n = "" } = {}) {
554
543
  let r = (t) => {
555
544
  for (let n = t; n && n !== e.parentElement; n = n.parentElement) if (n.hidden || getComputedStyle(n).display === "none") return !1;
556
545
  return !0;
557
546
  }, i = [];
558
- for (let t of e.querySelectorAll(`${ct}, ${lt}`)) {
547
+ for (let t of e.querySelectorAll(`${wt}, ${Tt}`)) {
559
548
  if (t.closest(".mwnf-standalone-item__left, .mwnf-standalone-related") || !r(t)) continue;
560
549
  if (t.matches(".mwnf-credits__list > dt")) {
561
550
  let e = t.nextElementSibling;
562
- i.push(`<p>${X(t.textContent.trim())} ${e ? Z(e) : ""}</p>`);
551
+ i.push(`<p>${$(t.textContent.trim())} ${e ? kt(e) : ""}</p>`);
563
552
  continue;
564
553
  }
565
- let e = Z(t);
566
- e && i.push(t.matches(ct) ? `<h3>${e}</h3>` : `<p>${e}</p>`);
554
+ let e = kt(t);
555
+ e && i.push(t.matches(wt) ? `<h3>${e}</h3>` : `<p>${e}</p>`);
567
556
  }
568
557
  let a = n === "rtl" ? " style=\"direction: rtl;\"" : "";
569
558
  return `<html>
570
- <title>${X(t)}</title>
559
+ <title>${$(t)}</title>
571
560
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
572
561
  <head>
573
562
  <style>
574
- ${st}
563
+ ${Ct}
575
564
  </style>
576
565
  </head>
577
566
  <body>
@@ -585,28 +574,28 @@ ${i.join("\n")}
585
574
  </body>
586
575
  </html>`;
587
576
  }
588
- function mt(e, t) {
577
+ function jt(e, t) {
589
578
  let n = URL.createObjectURL(new Blob(["", e], { type: "application/msword" })), r = document.createElement("a");
590
579
  r.href = n, r.download = t, document.body.appendChild(r), r.click(), r.remove(), setTimeout(() => URL.revokeObjectURL(n), 0);
591
580
  }
592
- function ht({ title: e = "", heading: t = "", heads: n = {}, rows: r = [], empty: i = "", dir: a = "" } = {}) {
581
+ function Mt({ title: e = "", heading: t = "", heads: n = {}, rows: r = [], empty: i = "", dir: a = "" } = {}) {
593
582
  let o = a === "rtl" ? "direction: rtl; text-align: right;" : "text-align: left;", s = (e) => {
594
583
  let t = document.createElement("div");
595
- return t.innerHTML = e ?? "", Z(t);
596
- }, c = !!n.theme, l = c ? `<td style="padding:5px;" width="28%"><b>${X(n.date)}</b></td>
597
- <td style="padding:5px;" width="35%"><b>${X(n.country)}</b></td>
598
- <td style="padding:5px;" width="37%"><b>${X(n.theme)}</b></td>` : `<td style="padding:5px;" width="28%"><b>${X(n.date)}</b></td>
599
- <td style="padding:5px;" width="36%"><b>${X(n.countryDescription)}</b></td>
584
+ return t.innerHTML = e ?? "", kt(t);
585
+ }, c = !!n.theme, l = c ? `<td style="padding:5px;" width="28%"><b>${$(n.date)}</b></td>
586
+ <td style="padding:5px;" width="35%"><b>${$(n.country)}</b></td>
587
+ <td style="padding:5px;" width="37%"><b>${$(n.theme)}</b></td>` : `<td style="padding:5px;" width="28%"><b>${$(n.date)}</b></td>
588
+ <td style="padding:5px;" width="36%"><b>${$(n.countryDescription)}</b></td>
600
589
  <td width="37%"><b></b></td>`, u = c ? (e) => `<tr>
601
- <td style="padding:5px;">${X(e.date)}</td>
602
- <td style="padding:5px;">${X(e.country)}</td>
603
- <td style="padding:5px;">${X(e.theme)}</td>
590
+ <td style="padding:5px;">${$(e.date)}</td>
591
+ <td style="padding:5px;">${$(e.country)}</td>
592
+ <td style="padding:5px;">${$(e.theme)}</td>
604
593
  </tr>
605
594
  <tr>
606
595
  <td style="padding:5px; width:558px; vertical-align:top;" colspan="3">${s(e.html)}</td>
607
596
  </tr>` : (e) => `<tr>
608
- <td style="padding:5px; vertical-align:top;">&nbsp;${X(e.date)}</td>
609
- <td style="padding:5px;">${X(e.country)}</td>
597
+ <td style="padding:5px; vertical-align:top;">&nbsp;${$(e.date)}</td>
598
+ <td style="padding:5px;">${$(e.country)}</td>
610
599
  <td>&nbsp;</td>
611
600
  </tr>
612
601
  <tr>
@@ -620,20 +609,20 @@ ${l}
620
609
  ${r.map(u).join("\n")}
621
610
  </table>
622
611
  </td></tr>
623
- <tr><td>&nbsp;</td></tr>` : `<tr><td style="padding-top:100px;padding-left:350px;">${X(i)}</td></tr>`;
612
+ <tr><td>&nbsp;</td></tr>` : `<tr><td style="padding-top:100px;padding-left:350px;">${$(i)}</td></tr>`;
624
613
  return `<html>
625
- <title>${X(e)}</title>
614
+ <title>${$(e)}</title>
626
615
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
627
616
  <head>
628
617
  <style>
629
- ${st}
618
+ ${Ct}
630
619
  </style>
631
620
  </head>
632
621
  <body>
633
622
  <div class="content">
634
623
  <div class="item_description">
635
624
  <table style="${o}" border="0" width="750px">
636
- <tr><td class="txt" align="left" width="750px"><div style="width: 750px;">&nbsp;&nbsp;${X(t).replace(/^([^|/]*)/, "<b>$1</b>")}</div></td></tr>
625
+ <tr><td class="txt" align="left" width="750px"><div style="width: 750px;">&nbsp;&nbsp;${$(t).replace(/^([^|/]*)/, "<b>$1</b>")}</div></td></tr>
637
626
  <tr><td>&nbsp;</td></tr>
638
627
  ${d}
639
628
  </table>
@@ -643,13 +632,13 @@ ${d}
643
632
  </html>`;
644
633
  }
645
634
  // src/standalone/RelatedContent.vue
646
- var gt = { class: "mwnf-standalone-related" }, _t = { class: "mwnf-standalone-related__heading" }, vt = { class: "mwnf-standalone-related__group-heading" }, yt = { class: "mwnf-standalone-related__thumbs" }, bt = ["src", "alt"], xt = ["innerHTML"], St = {
635
+ var Nt = { class: "mwnf-standalone-related" }, Pt = { class: "mwnf-standalone-related__heading" }, Ft = { class: "mwnf-standalone-related__group-heading" }, It = { class: "mwnf-standalone-related__thumbs" }, Lt = ["src", "alt"], Rt = ["innerHTML"], zt = {
647
636
  key: 0,
648
637
  class: "mwnf-standalone-related__see-also"
649
- }, Ct = { class: "mwnf-standalone-related__see-also-heading" }, wt = ["href"], Tt = ["href"], Et = {
638
+ }, Bt = { class: "mwnf-standalone-related__see-also-heading" }, Vt = ["href"], Ht = ["href"], Ut = {
650
639
  key: 1,
651
640
  class: "mwnf-standalone-related__download"
652
- }, Dt = { class: "mwnf-standalone-related__download-heading" }, Ot = {
641
+ }, Wt = { class: "mwnf-standalone-related__download-heading" }, Gt = {
653
642
  __name: "RelatedContent",
654
643
  props: {
655
644
  heading: {
@@ -678,7 +667,7 @@ var gt = { class: "mwnf-standalone-related" }, _t = { class: "mwnf-standalone-re
678
667
  }
679
668
  },
680
669
  setup(n) {
681
- let o = n, { t: l } = U(), u = t(() => o.groups.map((e) => ({
670
+ let o = n, { t: l } = K(), u = t(() => o.groups.map((e) => ({
682
671
  heading: l(e.heading),
683
672
  rows: o.records.filter((t) => !e.type || t.badge === e.type)
684
673
  })).filter((e) => e.rows.length));
@@ -687,80 +676,80 @@ var gt = { class: "mwnf-standalone-related" }, _t = { class: "mwnf-standalone-re
687
676
  }
688
677
  function f(e) {
689
678
  let t = e.currentTarget.closest(".mwnf-standalone-item");
690
- t && mt(pt(t.querySelector(".mwnf-record__main") ?? t, {
679
+ t && jt(At(t.querySelector(".mwnf-record__main") ?? t, {
691
680
  title: o.download?.title ? l(o.download.title) : "",
692
681
  dir: getComputedStyle(t).direction
693
682
  }), o.wordFile);
694
683
  }
695
- return (t, o) => (_(), i("aside", gt, [
696
- a("p", _t, [a("strong", null, S(C(l)(n.heading)), 1)]),
697
- (_(!0), i(e, null, b(u.value, (t) => (_(), i("div", {
684
+ return (t, o) => (v(), i("aside", Nt, [
685
+ a("p", Pt, [a("strong", null, T(E(l)(n.heading)), 1)]),
686
+ (v(!0), i(e, null, x(u.value, (t) => (v(), i("div", {
698
687
  key: t.heading,
699
688
  class: "mwnf-standalone-related__group"
700
- }, [a("p", vt, S(t.heading), 1), a("ul", yt, [(_(!0), i(e, null, b(t.rows, (e) => (_(), i("li", { key: e.id }, [c(G, {
689
+ }, [a("p", Ft, T(t.heading), 1), a("ul", It, [(v(!0), i(e, null, x(t.rows, (e) => (v(), i("li", { key: e.id }, [c(J, {
701
690
  to: e.to,
702
691
  title: e.imageAlt
703
692
  }, {
704
- default: j(() => [e.image ? (_(), i("img", {
693
+ default: F(() => [e.image ? (v(), i("img", {
705
694
  key: 0,
706
695
  src: e.image,
707
696
  alt: e.imageAlt
708
- }, null, 8, bt)) : (_(), i("span", {
697
+ }, null, 8, Lt)) : (v(), i("span", {
709
698
  key: 1,
710
699
  innerHTML: e.name
711
- }, null, 8, xt))]),
700
+ }, null, 8, Rt))]),
712
701
  _: 2
713
702
  }, 1032, ["to", "title"])]))), 128))])]))), 128)),
714
- x(t.$slots, "default"),
715
- n.seeAlso ? (_(), i("div", St, [
716
- a("p", Ct, [a("strong", null, [o[0] ||= a("br", null, null, -1), s(S(C(l)(n.seeAlso.heading)), 1)])]),
717
- (_(!0), i(e, null, b(n.seeAlso.links ?? [], (e) => (_(), i("a", {
703
+ S(t.$slots, "default"),
704
+ n.seeAlso ? (v(), i("div", zt, [
705
+ a("p", Bt, [a("strong", null, [o[0] ||= a("br", null, null, -1), s(T(E(l)(n.seeAlso.heading)), 1)])]),
706
+ (v(!0), i(e, null, x(n.seeAlso.links ?? [], (e) => (v(), i("a", {
718
707
  key: e.href,
719
708
  class: "mwnf-standalone-related__see-also-link",
720
709
  href: e.href,
721
710
  target: "_blank",
722
711
  rel: "noopener"
723
- }, S(C(l)(e.label)), 9, wt))), 128)),
724
- (_(!0), i(e, null, b(n.seeAlso.groups ?? [], (t) => (_(), i("div", {
712
+ }, T(E(l)(e.label)), 9, Vt))), 128)),
713
+ (v(!0), i(e, null, x(n.seeAlso.groups ?? [], (t) => (v(), i("div", {
725
714
  key: t.heading,
726
715
  class: "mwnf-standalone-related__see-also-group"
727
- }, [a("p", null, S(C(l)(t.heading)), 1), (_(!0), i(e, null, b(t.links, (e) => (_(), i("p", { key: e.href }, [a("a", { href: e.href }, S(e.text), 9, Tt)]))), 128))]))), 128))
716
+ }, [a("p", null, T(E(l)(t.heading)), 1), (v(!0), i(e, null, x(t.links, (e) => (v(), i("p", { key: e.href }, [a("a", { href: e.href }, T(e.text), 9, Ht)]))), 128))]))), 128))
728
717
  ])) : r("", !0),
729
- n.download ? (_(), i("div", Et, [
730
- a("p", Dt, S(C(l)(n.download.heading)), 1),
718
+ n.download ? (v(), i("div", Ut, [
719
+ a("p", Wt, T(E(l)(n.download.heading)), 1),
731
720
  a("button", {
732
721
  type: "button",
733
722
  class: "mwnf-standalone-related__print",
734
723
  onClick: d
735
- }, S(C(l)(n.download.print)), 1),
736
- n.download.word ? (_(), i("button", {
724
+ }, T(E(l)(n.download.print)), 1),
725
+ n.download.word ? (v(), i("button", {
737
726
  key: 0,
738
727
  type: "button",
739
728
  class: "mwnf-standalone-related__print mwnf-standalone-related__word",
740
729
  onClick: f
741
- }, S(C(l)(n.download.word)), 1)) : r("", !0)
730
+ }, T(E(l)(n.download.word)), 1)) : r("", !0)
742
731
  ])) : r("", !0)
743
732
  ]));
744
733
  }
745
- }, Q = Object.freeze({
734
+ }, Kt = Object.freeze({
746
735
  heading: "standalone.related.seeAlso",
747
736
  travelBook: "standalone.related.travelBook",
748
737
  exhibitionTrail: "standalone.related.exhibitionTrail"
749
- }), kt = (e, t) => e?.[t] ?? e?.en ?? Object.values(e ?? {})[0] ?? "";
750
- function At(e, t) {
751
- let n = B(kt(e?.titles, t) ?? ""), r = B(kt(e?.subtitles, t) ?? "");
738
+ }), qt = (e, t) => e?.[t] ?? e?.en ?? Object.values(e ?? {})[0] ?? "";
739
+ function Jt(e, t) {
740
+ let n = H(qt(e?.titles, t) ?? ""), r = H(qt(e?.subtitles, t) ?? "");
752
741
  return r ? `${n} - ${r}` : n;
753
742
  }
754
- var jt = (e, t) => `${String(e).replace(/\/+$/, "")}/${encodeURIComponent(t)}`, Mt = (e, t) => `${e}${String(e).includes("?") ? "&" : "?"}lang=${encodeURIComponent(t)}`;
755
- function Nt(e, t, n = Q) {
743
+ var Yt = (e, t) => `${String(e).replace(/\/+$/, "")}/${encodeURIComponent(t)}`, Xt = (e, t) => `${e}${String(e).includes("?") ? "&" : "?"}lang=${encodeURIComponent(t)}`;
744
+ function Zt(e, t, n = Kt) {
756
745
  let r = [], i = e?.travel_book;
757
746
  i?.url && r.push({
758
747
  label: n.travelBook,
759
- href: jt(i.url, t)
748
+ href: Yt(i.url, t)
760
749
  });
761
750
  let a = (Array.isArray(e?.exhibition_trails) ? e.exhibition_trails : []).filter((e) => e?.url).map((e) => ({
762
- text: At(e, t),
763
- href: Mt(e.url, t)
751
+ text: Jt(e, t),
752
+ href: Xt(e.url, t)
764
753
  })), o = a.length ? [{
765
754
  heading: n.exhibitionTrail,
766
755
  links: a
@@ -772,10 +761,10 @@ function Nt(e, t, n = Q) {
772
761
  };
773
762
  }
774
763
  // src/standalone/ItemSheet.vue
775
- var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-item__left" }, It = {
764
+ var Qt = { class: "mwnf-standalone-item__top" }, $t = { class: "mwnf-standalone-item__left" }, en = {
776
765
  key: 0,
777
766
  class: "mwnf-standalone-item__back"
778
- }, Lt = {
767
+ }, tn = {
779
768
  __name: "ItemSheet",
780
769
  props: {
781
770
  spec: {
@@ -796,31 +785,31 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
796
785
  }
797
786
  },
798
787
  setup(u) {
799
- let d = u, { t: f, locale: m } = U(), h = E();
788
+ let d = u, { t: f, locale: p } = K(), h = k();
800
789
  function g(e) {
801
790
  if (d.related.seeAlso === !1) return null;
802
791
  let t = {
803
- ...Q,
792
+ ...Kt,
804
793
  ...typeof d.related.seeAlso == "object" ? d.related.seeAlso : {}
805
794
  };
806
- return Nt(e, m.value, t);
795
+ return Zt(e, p.value, t);
807
796
  }
808
- let v = t(() => ({
797
+ let _ = t(() => ({
809
798
  ...d.spec,
810
799
  media: () => []
811
800
  }));
812
801
  function y(e) {
813
- return ue(C(e), d.spec.pictureLimit, e);
802
+ return X(b(e), d.spec.pictureLimit, e);
814
803
  }
815
- function C({ record: e, text: t, language: n }) {
804
+ function b({ record: e, text: t, language: n }) {
816
805
  if (d.spec.media) return d.spec.media(e, {
817
806
  record: e,
818
807
  text: t,
819
808
  language: n
820
809
  });
821
- let r = H(String(t?.name ?? e?.internal_name ?? ""));
822
- return te(e?.images, n).map((e) => {
823
- let { photographer: t, copyright: i } = z(e, n), a = [t ? `${f("record.media.photograph")}: ${t}` : "", i ? `© ${i}` : ""].filter(Boolean).join(", ");
810
+ let r = G(String(t?.name ?? e?.internal_name ?? ""));
811
+ return ie(e?.images, n).map((e) => {
812
+ let { photographer: t, copyright: i } = re(e, n), a = [t ? `${f("record.media.photograph")}: ${t}` : "", i ? `© ${i}` : ""].filter(Boolean).join(", ");
824
813
  return {
825
814
  url: e.url,
826
815
  alt: a || e.captions?.[n] || r,
@@ -828,28 +817,28 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
828
817
  };
829
818
  });
830
819
  }
831
- let w = t(() => d.back.map((e) => ({
820
+ let C = t(() => d.back.map((e) => ({
832
821
  ...e,
833
822
  label: f(e.label)
834
- }))), T = /* @__PURE__ */ new Set([
823
+ }))), w = /* @__PURE__ */ new Set([
835
824
  "header",
836
825
  "before-sheet",
837
826
  "related",
838
827
  "sidebar",
839
828
  "aside",
840
829
  "source"
841
- ]), D = t(() => Object.keys(h).filter((e) => !T.has(e)));
842
- function O() {
830
+ ]), E = t(() => Object.keys(h).filter((e) => !w.has(e)));
831
+ function D() {
843
832
  window.history.back();
844
833
  }
845
- let k = (e) => [...e].sort((e, t) => t.code.localeCompare(e.code));
846
- return (t, d) => (_(), n(de, {
847
- spec: v.value,
834
+ let O = (e) => [...e].sort((e, t) => t.code.localeCompare(e.code));
835
+ return (t, d) => (v(), n(Z, {
836
+ spec: _.value,
848
837
  id: u.id,
849
838
  class: "mwnf-standalone-item"
850
839
  }, o({
851
- header: j(({ languages: e, language: t, select: n }) => [a("div", Pt, [c(se, {
852
- languages: k(e),
840
+ header: F(({ languages: e, language: t, select: n }) => [a("div", Qt, [c(le, {
841
+ languages: O(e),
853
842
  language: t,
854
843
  from: 1,
855
844
  onSelect: n
@@ -858,24 +847,24 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
858
847
  "language",
859
848
  "onSelect"
860
849
  ])])]),
861
- "before-sheet": j((o) => [a("div", Ft, [w.value.length ? (_(), i("p", It, [(_(!0), i(e, null, b(w.value, (t) => (_(), i(e, { key: t.label }, [t.history ? (_(), i("button", {
850
+ "before-sheet": F((o) => [a("div", $t, [C.value.length ? (v(), i("p", en, [(v(!0), i(e, null, x(C.value, (t) => (v(), i(e, { key: t.label }, [t.history ? (v(), i("button", {
862
851
  key: 0,
863
852
  type: "button",
864
853
  class: "mwnf-standalone-item__back-link",
865
- onClick: O
866
- }, S(t.label), 1)) : (_(), n(G, {
854
+ onClick: D
855
+ }, T(t.label), 1)) : (v(), n(J, {
867
856
  key: 1,
868
857
  class: "mwnf-standalone-item__back-link",
869
858
  to: t.to,
870
859
  href: t.href
871
860
  }, {
872
- default: j(() => [s(S(t.label), 1)]),
861
+ default: F(() => [s(T(t.label), 1)]),
873
862
  _: 2
874
- }, 1032, ["to", "href"]))], 64))), 128))])) : r("", !0), c(ce, {
863
+ }, 1032, ["to", "href"]))], 64))), 128))])) : r("", !0), c(ue, {
875
864
  images: y(o),
876
865
  "thumbs-from": 1
877
- }, null, 8, ["images"])]), x(t.$slots, "before-sheet", p(l(o)))]),
878
- related: j((e) => [c(Ot, {
866
+ }, null, 8, ["images"])]), S(t.$slots, "before-sheet", m(l(o)))]),
867
+ related: F((e) => [c(Gt, {
879
868
  heading: u.related.heading ?? "record.related.title",
880
869
  records: e.records,
881
870
  groups: u.related.groups ?? [],
@@ -883,7 +872,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
883
872
  download: u.related.download ?? null,
884
873
  "word-file": u.related.download?.wordFile?.(e.record, e.language) ?? "sheet.doc"
885
874
  }, {
886
- default: j(() => [x(t.$slots, "sidebar", p(l(e)))]),
875
+ default: F(() => [S(t.$slots, "sidebar", m(l(e)))]),
887
876
  _: 2
888
877
  }, 1032, [
889
878
  "heading",
@@ -893,44 +882,44 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
893
882
  "download",
894
883
  "word-file"
895
884
  ])]),
896
- source: j((e) => [x(t.$slots, "source", p(l(e)))]),
885
+ source: F((e) => [S(t.$slots, "source", m(l(e)))]),
897
886
  _: 2
898
- }, [b(D.value, (e) => ({
887
+ }, [x(E.value, (e) => ({
899
888
  name: e,
900
- fn: j((n) => [x(t.$slots, e, p(l(n)))])
889
+ fn: F((n) => [S(t.$slots, e, m(l(n)))])
901
890
  }))]), 1032, ["spec", "id"]));
902
891
  }
903
- }, Rt = {
892
+ }, nn = {
904
893
  key: 0,
905
894
  class: "mwnf-standalone-item__top"
906
- }, zt = {
895
+ }, rn = {
907
896
  key: 1,
908
897
  hidden: ""
909
- }, Bt = {
898
+ }, an = {
910
899
  key: 0,
911
900
  class: "mwnf-standalone-item__back mwnf-standalone-partner__back"
912
- }, Vt = { class: "mwnf-standalone-partner__heading" }, Ht = ["dir", "innerHTML"], Ut = {
901
+ }, on = { class: "mwnf-standalone-partner__heading" }, sn = ["dir", "innerHTML"], cn = {
913
902
  key: 0,
914
903
  class: "mwnf-standalone-partner__location"
915
- }, Wt = { class: "mwnf-standalone-partner__bar" }, Gt = { class: "mwnf-standalone-partner__bar-start" }, Kt = ["aria-label", "onKeydown"], qt = [
904
+ }, ln = { class: "mwnf-standalone-partner__bar" }, un = { class: "mwnf-standalone-partner__bar-start" }, dn = ["aria-label", "onKeydown"], fn = [
916
905
  "id",
917
906
  "aria-selected",
918
907
  "aria-controls",
919
908
  "tabindex",
920
909
  "onClick"
921
- ], Jt = {
910
+ ], pn = {
922
911
  key: 0,
923
912
  class: "mwnf-standalone-partner__divider",
924
913
  "aria-hidden": "true"
925
- }, Yt = { key: 0 }, Xt = ["href"], Zt = { class: "mwnf-standalone-partner__bar-end" }, Qt = { class: "mwnf-standalone-partner__body" }, $t = { class: "mwnf-standalone-partner__pictures" }, en = { class: "mwnf-standalone-partner__panels" }, tn = [
914
+ }, mn = { key: 0 }, hn = ["href"], gn = { class: "mwnf-standalone-partner__bar-end" }, _n = { class: "mwnf-standalone-partner__body" }, vn = { class: "mwnf-standalone-partner__pictures" }, yn = { class: "mwnf-standalone-partner__panels" }, bn = [
926
915
  "id",
927
916
  "aria-labelledby",
928
917
  "dir",
929
918
  "innerHTML"
930
- ], nn = ["id", "aria-labelledby"], rn = ["innerHTML"], an = ["href"], on = { key: 0 }, sn = ["href"], cn = ["href"], ln = ["id", "aria-labelledby"], un = ["src"], dn = {
919
+ ], xn = ["id", "aria-labelledby"], Sn = ["innerHTML"], Cn = ["href"], wn = { key: 0 }, Tn = ["href"], En = ["href"], Dn = ["id", "aria-labelledby"], On = ["src"], kn = {
931
920
  key: 0,
932
921
  class: "mwnf-standalone-partner__map"
933
- }, fn = { class: "mwnf-standalone-partner__map-heading" }, pn = {
922
+ }, An = { class: "mwnf-standalone-partner__map-heading" }, jn = {
934
923
  __name: "PartnerPage",
935
924
  props: {
936
925
  id: {
@@ -975,7 +964,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
975
964
  }
976
965
  },
977
966
  setup(o) {
978
- let l = o, { t: u, locale: p } = U(), m = w(), h = {
967
+ let l = o, { t: u, locale: d } = K(), m = D(), h = {
979
968
  entity: "partners",
980
969
  fields: [],
981
970
  shortDescription: !1,
@@ -991,43 +980,43 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
991
980
  phone: "partner.info.phone",
992
981
  fax: "partner.info.fax",
993
982
  map: "partner.map.map"
994
- }, v = (e) => u(l.labels[e] ?? g[e]);
995
- function x(e) {
983
+ }, _ = (e) => u(l.labels[e] ?? g[e]);
984
+ function y(e) {
996
985
  return (typeof l.back == "function" ? l.back(e) ?? [] : l.back).map((e) => ({
997
986
  ...e,
998
987
  label: u(e.label)
999
988
  }));
1000
989
  }
1001
- function T() {
990
+ function S() {
1002
991
  window.history.back();
1003
992
  }
1004
- function E(e, t, n) {
993
+ function C(e, t, n) {
1005
994
  let r = [];
1006
995
  return l.about(t, n) && r.push("about"), e.hasContact && r.push("contact"), e.logos.length && r.push("logo"), r;
1007
996
  }
1008
- let D = y("about");
1009
- A(() => l.id, () => {
1010
- D.value = "about";
997
+ let w = b("about");
998
+ P(() => l.id, () => {
999
+ w.value = "about";
1011
1000
  });
1012
1001
  function O(e, t) {
1013
- let n = t.indexOf(D.value), r = {
1002
+ let n = t.indexOf(w.value), r = {
1014
1003
  ArrowRight: (n + 1) % t.length,
1015
1004
  ArrowLeft: (n - 1 + t.length) % t.length,
1016
1005
  Home: 0,
1017
1006
  End: t.length - 1
1018
1007
  }[e.key];
1019
- r !== void 0 && t.length && (e.preventDefault(), D.value = t[r], d(() => document.getElementById(`${m}-tab-${t[r]}`)?.focus()));
1008
+ r !== void 0 && t.length && (e.preventDefault(), w.value = t[r], f(() => document.getElementById(`${m}-tab-${t[r]}`)?.focus()));
1020
1009
  }
1021
- let N = (e) => e.pictures.map((e) => ({
1010
+ let k = (e) => e.pictures.map((e) => ({
1022
1011
  url: e.url,
1023
1012
  alt: e.alt
1024
- })), P = (e) => [...e.contact.website ? [e.contact.website] : [], ...l.links ? e.contact.links : []], F = (e) => !!(e.contact.address || e.contact.phone || e.contact.fax || e.contact.email || e.contact.website), I = t(() => String(p.value || "en"));
1025
- return (t, d) => (_(), n(de, {
1013
+ })), A = (e) => [...e.contact.website ? [e.contact.website] : [], ...l.links ? e.contact.links : []], j = (e) => !!(e.contact.address || e.contact.phone || e.contact.fax || e.contact.email || e.contact.website), M = t(() => String(d.value || "en"));
1014
+ return (t, d) => (v(), n(Z, {
1026
1015
  spec: h,
1027
1016
  id: o.id,
1028
1017
  class: "mwnf-standalone-partner"
1029
1018
  }, {
1030
- header: j(({ record: e, languages: t, language: n, select: r }) => [o.bands(e) ? (_(), i("div", Rt, [c(se, {
1019
+ header: F(({ record: e, languages: t, language: n, select: r }) => [o.bands(e) ? (v(), i("div", nn, [c(le, {
1031
1020
  languages: t.filter((t) => l.languages(e, t.code)),
1032
1021
  language: n,
1033
1022
  from: 1,
@@ -1036,116 +1025,116 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1036
1025
  "languages",
1037
1026
  "language",
1038
1027
  "onSelect"
1039
- ])])) : (_(), i("div", zt))]),
1040
- "before-sheet": j(({ record: t, text: c, dir: p }) => [(_(!0), i(e, null, b([l.view(t, c)], (l) => (_(), i(e, { key: t.id }, [
1041
- x(t).length ? (_(), i("p", Bt, [(_(!0), i(e, null, b(x(t), (t) => (_(), i(e, { key: t.label }, [t.history ? (_(), i("button", {
1028
+ ])])) : (v(), i("div", rn))]),
1029
+ "before-sheet": F(({ record: t, text: c, dir: f }) => [(v(!0), i(e, null, x([l.view(t, c)], (l) => (v(), i(e, { key: t.id }, [
1030
+ y(t).length ? (v(), i("p", an, [(v(!0), i(e, null, x(y(t), (t) => (v(), i(e, { key: t.label }, [t.history ? (v(), i("button", {
1042
1031
  key: 0,
1043
1032
  type: "button",
1044
1033
  class: "mwnf-standalone-item__back-link",
1045
- onClick: T
1046
- }, S(t.label), 1)) : (_(), n(G, {
1034
+ onClick: S
1035
+ }, T(t.label), 1)) : (v(), n(J, {
1047
1036
  key: 1,
1048
1037
  class: "mwnf-standalone-item__back-link",
1049
1038
  to: t.to,
1050
1039
  href: t.href
1051
1040
  }, {
1052
- default: j(() => [s(S(t.label), 1)]),
1041
+ default: F(() => [s(T(t.label), 1)]),
1053
1042
  _: 2
1054
1043
  }, 1032, ["to", "href"]))], 64))), 128))])) : r("", !0),
1055
- a("div", Vt, [a("h3", {
1044
+ a("div", on, [a("h3", {
1056
1045
  class: "mwnf-standalone-partner__name",
1057
- dir: p || void 0,
1046
+ dir: f || void 0,
1058
1047
  innerHTML: l.name
1059
- }, null, 8, Ht), l.location ? (_(), i("h4", Ut, [a("i", null, S(l.location), 1)])) : r("", !0)]),
1060
- a("div", Wt, [a("div", Gt, [a("ul", {
1048
+ }, null, 8, sn), l.location ? (v(), i("h4", cn, [a("i", null, T(l.location), 1)])) : r("", !0)]),
1049
+ a("div", ln, [a("div", un, [a("ul", {
1061
1050
  role: "tablist",
1062
1051
  class: "mwnf-standalone-partner__tabs",
1063
1052
  "aria-label": l.plainName,
1064
- onKeydown: (e) => O(e, E(l, t, c))
1065
- }, [(_(!0), i(e, null, b(E(l, t, c), (e, n) => (_(), i("li", {
1053
+ onKeydown: (e) => O(e, C(l, t, c))
1054
+ }, [(v(!0), i(e, null, x(C(l, t, c), (e, n) => (v(), i("li", {
1066
1055
  key: e,
1067
1056
  role: "presentation"
1068
1057
  }, [a("button", {
1069
- id: `${C(m)}-tab-${e}`,
1058
+ id: `${E(m)}-tab-${e}`,
1070
1059
  type: "button",
1071
1060
  role: "tab",
1072
- class: f(["mwnf-standalone-partner__tab", { "mwnf-standalone-partner__tab--active": D.value === e }]),
1073
- "aria-selected": D.value === e ? "true" : "false",
1074
- "aria-controls": `${C(m)}-panel-${e}`,
1075
- tabindex: D.value === e ? 0 : -1,
1076
- onClick: (t) => D.value = e
1077
- }, "\xA0" + S(v(e)), 11, qt), n < E(l, t, c).length - 1 || l.contact.website ? (_(), i("span", Jt, "\xA0|")) : r("", !0)]))), 128)), l.contact.website ? (_(), i("li", Yt, [a("a", {
1061
+ class: p(["mwnf-standalone-partner__tab", { "mwnf-standalone-partner__tab--active": w.value === e }]),
1062
+ "aria-selected": w.value === e ? "true" : "false",
1063
+ "aria-controls": `${E(m)}-panel-${e}`,
1064
+ tabindex: w.value === e ? 0 : -1,
1065
+ onClick: (t) => w.value = e
1066
+ }, "\xA0" + T(_(e)), 11, fn), n < C(l, t, c).length - 1 || l.contact.website ? (v(), i("span", pn, "\xA0|")) : r("", !0)]))), 128)), l.contact.website ? (v(), i("li", mn, [a("a", {
1078
1067
  class: "mwnf-standalone-partner__homepage",
1079
1068
  href: l.contact.website.url,
1080
1069
  target: "_blank",
1081
1070
  rel: "noopener"
1082
- }, "\xA0" + S(v("homepage")), 9, Xt)])) : r("", !0)], 40, Kt)]), a("div", Zt, [o.items(t) ? (_(), n(G, {
1071
+ }, "\xA0" + T(_("homepage")), 9, hn)])) : r("", !0)], 40, dn)]), a("div", gn, [o.items(t) ? (v(), n(J, {
1083
1072
  key: 0,
1084
1073
  class: "mwnf-standalone-partner__items",
1085
1074
  to: o.items(t).to
1086
1075
  }, {
1087
- default: j(() => [s(S(C(u)(o.items(t).label)), 1)]),
1076
+ default: F(() => [s(T(E(u)(o.items(t).label)), 1)]),
1088
1077
  _: 2
1089
1078
  }, 1032, ["to"])) : r("", !0)])]),
1090
- a("div", Qt, [a("div", $t, [l.pictures.length ? (_(), n(ce, {
1079
+ a("div", _n, [a("div", vn, [l.pictures.length ? (v(), n(ue, {
1091
1080
  key: 0,
1092
- images: N(l)
1093
- }, null, 8, ["images"])) : r("", !0)]), a("div", en, [
1094
- M(a("div", {
1095
- id: `${C(m)}-panel-about`,
1081
+ images: k(l)
1082
+ }, null, 8, ["images"])) : r("", !0)]), a("div", yn, [
1083
+ I(a("div", {
1084
+ id: `${E(m)}-panel-about`,
1096
1085
  class: "mwnf-standalone-partner__panel mwnf-standalone-partner__about",
1097
1086
  role: "tabpanel",
1098
- "aria-labelledby": `${C(m)}-tab-about`,
1099
- dir: p || void 0,
1087
+ "aria-labelledby": `${E(m)}-tab-about`,
1088
+ dir: f || void 0,
1100
1089
  innerHTML: l.description
1101
- }, null, 8, tn), [[k, D.value === "about"]]),
1102
- l.hasContact ? M((_(), i("div", {
1090
+ }, null, 8, bn), [[N, w.value === "about"]]),
1091
+ l.hasContact ? I((v(), i("div", {
1103
1092
  key: 0,
1104
- id: `${C(m)}-panel-contact`,
1093
+ id: `${E(m)}-panel-contact`,
1105
1094
  class: "mwnf-standalone-partner__panel mwnf-standalone-partner__contact",
1106
1095
  role: "tabpanel",
1107
- "aria-labelledby": `${C(m)}-tab-contact`
1108
- }, [F(l) ? (_(), i(e, { key: 0 }, [a("p", null, [
1109
- a("b", null, S(v("addresses")), 1),
1096
+ "aria-labelledby": `${E(m)}-tab-contact`
1097
+ }, [j(l) ? (v(), i(e, { key: 0 }, [a("p", null, [
1098
+ a("b", null, T(_("addresses")), 1),
1110
1099
  d[4] ||= a("br", null, null, -1),
1111
- l.contact.address ? (_(), i(e, { key: 0 }, [a("span", {
1100
+ l.contact.address ? (v(), i(e, { key: 0 }, [a("span", {
1112
1101
  class: "mwnf-standalone-partner__address",
1113
1102
  innerHTML: l.contact.address
1114
- }, null, 8, rn), d[0] ||= a("br", null, null, -1)], 64)) : r("", !0),
1115
- l.contact.phone ? (_(), i(e, { key: 1 }, [s(S(v("phone")) + " " + S(l.contact.phone), 1), d[1] ||= a("br", null, null, -1)], 64)) : r("", !0),
1116
- l.contact.fax ? (_(), i(e, { key: 2 }, [s(S(v("fax")) + " " + S(l.contact.fax), 1), d[2] ||= a("br", null, null, -1)], 64)) : r("", !0),
1117
- l.contact.email ? (_(), i(e, { key: 3 }, [a("a", { href: `mailto:${l.contact.email}` }, S(l.contact.email), 9, an), d[3] ||= a("br", null, null, -1)], 64)) : r("", !0)
1118
- ]), P(l).length ? (_(), i("p", on, [(_(!0), i(e, null, b(P(l), (t, n) => (_(), i(e, { key: t.url }, [n ? (_(), i(e, { key: 0 }, [s("\xA0|\xA0")], 64)) : r("", !0), a("a", {
1103
+ }, null, 8, Sn), d[0] ||= a("br", null, null, -1)], 64)) : r("", !0),
1104
+ l.contact.phone ? (v(), i(e, { key: 1 }, [s(T(_("phone")) + " " + T(l.contact.phone), 1), d[1] ||= a("br", null, null, -1)], 64)) : r("", !0),
1105
+ l.contact.fax ? (v(), i(e, { key: 2 }, [s(T(_("fax")) + " " + T(l.contact.fax), 1), d[2] ||= a("br", null, null, -1)], 64)) : r("", !0),
1106
+ l.contact.email ? (v(), i(e, { key: 3 }, [a("a", { href: `mailto:${l.contact.email}` }, T(l.contact.email), 9, Cn), d[3] ||= a("br", null, null, -1)], 64)) : r("", !0)
1107
+ ]), A(l).length ? (v(), i("p", wn, [(v(!0), i(e, null, x(A(l), (t, n) => (v(), i(e, { key: t.url }, [n ? (v(), i(e, { key: 0 }, [s("\xA0|\xA0")], 64)) : r("", !0), a("a", {
1119
1108
  href: t.url,
1120
1109
  target: "_blank",
1121
1110
  rel: "noopener"
1122
- }, S(t.label), 9, sn)], 64))), 128))])) : r("", !0)], 64)) : r("", !0), (_(!0), i(e, null, b(l.persons, (t, n) => (_(), i("p", { key: n }, [
1123
- t.title ? (_(), i(e, { key: 0 }, [a("strong", null, S(t.title), 1), d[5] ||= a("br", null, null, -1)], 64)) : r("", !0),
1124
- t.name ? (_(), i(e, { key: 1 }, [s(S(t.name), 1), d[6] ||= a("br", null, null, -1)], 64)) : r("", !0),
1125
- t.phone ? (_(), i(e, { key: 2 }, [s(S(v("phone")) + " " + S(t.phone), 1), d[7] ||= a("br", null, null, -1)], 64)) : r("", !0),
1126
- t.fax ? (_(), i(e, { key: 3 }, [s(S(v("fax")) + " " + S(t.fax), 1), d[8] ||= a("br", null, null, -1)], 64)) : r("", !0),
1127
- t.email ? (_(), i(e, { key: 4 }, [a("a", { href: `mailto:${t.email}` }, S(t.email), 9, cn), d[9] ||= a("br", null, null, -1)], 64)) : r("", !0)
1128
- ]))), 128))], 8, nn)), [[k, D.value === "contact"]]) : r("", !0),
1129
- l.logos.length ? M((_(), i("div", {
1111
+ }, T(t.label), 9, Tn)], 64))), 128))])) : r("", !0)], 64)) : r("", !0), (v(!0), i(e, null, x(l.persons, (t, n) => (v(), i("p", { key: n }, [
1112
+ t.title ? (v(), i(e, { key: 0 }, [a("strong", null, T(t.title), 1), d[5] ||= a("br", null, null, -1)], 64)) : r("", !0),
1113
+ t.name ? (v(), i(e, { key: 1 }, [s(T(t.name), 1), d[6] ||= a("br", null, null, -1)], 64)) : r("", !0),
1114
+ t.phone ? (v(), i(e, { key: 2 }, [s(T(_("phone")) + " " + T(t.phone), 1), d[7] ||= a("br", null, null, -1)], 64)) : r("", !0),
1115
+ t.fax ? (v(), i(e, { key: 3 }, [s(T(_("fax")) + " " + T(t.fax), 1), d[8] ||= a("br", null, null, -1)], 64)) : r("", !0),
1116
+ t.email ? (v(), i(e, { key: 4 }, [a("a", { href: `mailto:${t.email}` }, T(t.email), 9, En), d[9] ||= a("br", null, null, -1)], 64)) : r("", !0)
1117
+ ]))), 128))], 8, xn)), [[N, w.value === "contact"]]) : r("", !0),
1118
+ l.logos.length ? I((v(), i("div", {
1130
1119
  key: 1,
1131
- id: `${C(m)}-panel-logo`,
1120
+ id: `${E(m)}-panel-logo`,
1132
1121
  class: "mwnf-standalone-partner__panel mwnf-standalone-partner__logos",
1133
1122
  role: "tabpanel",
1134
- "aria-labelledby": `${C(m)}-tab-logo`
1135
- }, [(_(!0), i(e, null, b(l.logos, (e) => (_(), i("img", {
1123
+ "aria-labelledby": `${E(m)}-tab-logo`
1124
+ }, [(v(!0), i(e, null, x(l.logos, (e) => (v(), i("img", {
1136
1125
  key: e.url,
1137
1126
  src: e.url,
1138
1127
  alt: ""
1139
- }, null, 8, un))), 128))], 8, ln)), [[k, D.value === "logo"]]) : r("", !0)
1128
+ }, null, 8, On))), 128))], 8, Dn)), [[N, w.value === "logo"]]) : r("", !0)
1140
1129
  ])])
1141
1130
  ], 64))), 128))]),
1142
- after: j(({ record: e, text: t }) => [o.map(e) && l.view(e, t)?.map ? (_(), i("section", dn, [a("h3", fn, S(v("map")), 1), c(le, {
1131
+ after: F(({ record: e, text: t }) => [o.map(e) && l.view(e, t)?.map ? (v(), i("section", kn, [a("h3", An, T(_("map")), 1), c(Y, {
1143
1132
  provider: "google",
1144
1133
  latitude: l.view(e, t).map.latitude,
1145
1134
  longitude: l.view(e, t).map.longitude,
1146
1135
  zoom: l.view(e, t).map.zoom,
1147
1136
  label: l.view(e, t).map.label,
1148
- language: I.value
1137
+ language: M.value
1149
1138
  }, null, 8, [
1150
1139
  "latitude",
1151
1140
  "longitude",
@@ -1156,13 +1145,13 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1156
1145
  _: 1
1157
1146
  }, 8, ["id"]));
1158
1147
  }
1159
- }, mn = ["innerHTML"], hn = {
1148
+ }, Mn = ["innerHTML"], Nn = {
1160
1149
  key: 0,
1161
1150
  class: "mwnf-standalone-page__link"
1162
- }, gn = {
1151
+ }, Pn = {
1163
1152
  key: 1,
1164
1153
  class: "mwnf-standalone-page__print"
1165
- }, _n = {
1154
+ }, Fn = {
1166
1155
  __name: "TextPage",
1167
1156
  props: {
1168
1157
  body: {
@@ -1187,36 +1176,36 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1187
1176
  }
1188
1177
  },
1189
1178
  setup(e) {
1190
- let n = e, { t: o } = U(), s = t(() => ne(o(n.body)));
1179
+ let n = e, { t: o } = K(), s = t(() => U(o(n.body)));
1191
1180
  function l() {
1192
1181
  window.print();
1193
1182
  }
1194
- return (t, n) => (_(), i("article", { class: f(["mwnf-standalone-page", {
1183
+ return (t, n) => (v(), i("article", { class: p(["mwnf-standalone-page", {
1195
1184
  "mwnf-standalone-page--drop-cap": e.dropCap,
1196
1185
  "mwnf-standalone-page--narrow": e.narrow
1197
1186
  }]) }, [
1198
1187
  a("div", {
1199
1188
  class: "mwnf-standalone-page__body",
1200
1189
  innerHTML: s.value
1201
- }, null, 8, mn),
1202
- e.link ? (_(), i("p", hn, [c(G, {
1190
+ }, null, 8, Mn),
1191
+ e.link ? (v(), i("p", Nn, [c(J, {
1203
1192
  to: e.link.to,
1204
1193
  href: e.link.href
1205
1194
  }, {
1206
- default: j(() => [a("strong", null, S(e.link.text ?? C(o)(e.link.label)), 1)]),
1195
+ default: F(() => [a("strong", null, T(e.link.text ?? E(o)(e.link.label)), 1)]),
1207
1196
  _: 1
1208
1197
  }, 8, ["to", "href"])])) : r("", !0),
1209
- e.print ? (_(), i("p", gn, [a("button", {
1198
+ e.print ? (v(), i("p", Pn, [a("button", {
1210
1199
  type: "button",
1211
1200
  class: "mwnf-standalone-page__print-button",
1212
1201
  onClick: l
1213
- }, S(C(o)(e.print)), 1)])) : r("", !0)
1202
+ }, T(E(o)(e.print)), 1)])) : r("", !0)
1214
1203
  ], 2));
1215
1204
  }
1216
- }, vn = {
1205
+ }, In = {
1217
1206
  key: 0,
1218
1207
  class: "mwnf-standalone-subnav"
1219
- }, yn = { class: "mwnf-standalone-subnav__tabs" }, bn = {
1208
+ }, Ln = { class: "mwnf-standalone-subnav__tabs" }, Rn = {
1220
1209
  __name: "SubNav",
1221
1210
  props: {
1222
1211
  tabs: {
@@ -1229,40 +1218,40 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1229
1218
  }
1230
1219
  },
1231
1220
  setup(o) {
1232
- let l = o, { t: u } = U(), d = t(() => l.tabs.map((e) => ({
1221
+ let l = o, { t: u } = K(), d = t(() => l.tabs.map((e) => ({
1233
1222
  ...e,
1234
1223
  label: u(e.label)
1235
1224
  })));
1236
- return (t, l) => d.value.length || o.aside ? (_(), i("nav", vn, [a("ul", yn, [(_(!0), i(e, null, b(d.value, (e) => (_(), i("li", { key: e.label }, [c(G, {
1225
+ return (t, l) => d.value.length || o.aside ? (v(), i("nav", In, [a("ul", Ln, [(v(!0), i(e, null, x(d.value, (e) => (v(), i("li", { key: e.label }, [c(J, {
1237
1226
  to: e.to,
1238
1227
  href: e.href,
1239
- class: f(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
1228
+ class: p(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
1240
1229
  "aria-current": e.active ? "page" : void 0
1241
1230
  }, {
1242
- default: j(() => [s(S(e.label), 1)]),
1231
+ default: F(() => [s(T(e.label), 1)]),
1243
1232
  _: 2
1244
1233
  }, 1032, [
1245
1234
  "to",
1246
1235
  "href",
1247
1236
  "class",
1248
1237
  "aria-current"
1249
- ])]))), 128))]), o.aside ? (_(), n(G, {
1238
+ ])]))), 128))]), o.aside ? (v(), n(J, {
1250
1239
  key: 0,
1251
1240
  to: o.aside.to,
1252
1241
  href: o.aside.href,
1253
1242
  class: "mwnf-standalone-subnav__aside"
1254
1243
  }, {
1255
- default: j(() => [s(S(C(u)(o.aside.label)), 1)]),
1244
+ default: F(() => [s(T(E(u)(o.aside.label)), 1)]),
1256
1245
  _: 1
1257
1246
  }, 8, ["to", "href"])) : r("", !0)])) : r("", !0);
1258
1247
  }
1259
- }, xn = { class: "mwnf-standalone-results" }, Sn = {
1248
+ }, zn = { class: "mwnf-standalone-results" }, Bn = {
1260
1249
  key: 0,
1261
1250
  class: "mwnf-standalone-results__empty"
1262
- }, Cn = { class: "mwnf-standalone-results__tile" }, wn = ["src"], Tn = { class: "mwnf-standalone-results__panel" }, En = ["src"], Dn = { class: "mwnf-standalone-results__name" }, On = ["innerHTML"], kn = ["innerHTML"], An = {
1251
+ }, Vn = { class: "mwnf-standalone-results__tile" }, Hn = ["src"], Un = { class: "mwnf-standalone-results__panel" }, Wn = ["src"], Gn = { class: "mwnf-standalone-results__name" }, Kn = ["innerHTML"], qn = ["innerHTML"], Jn = {
1263
1252
  key: 0,
1264
1253
  class: "mwnf-standalone-results__holder"
1265
- }, jn = ["innerHTML"], Mn = ["innerHTML"], Nn = {
1254
+ }, Yn = ["innerHTML"], Xn = ["innerHTML"], Zn = {
1266
1255
  __name: "ResultsGrid",
1267
1256
  props: {
1268
1257
  rows: {
@@ -1283,64 +1272,64 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1283
1272
  }
1284
1273
  },
1285
1274
  setup(t) {
1286
- return (n, o) => (_(), i("div", xn, [t.rows.length ? r("", !0) : (_(), i("p", Sn, S(t.empty), 1)), (_(!0), i(e, null, b(t.rows, (n) => (_(), i("div", {
1275
+ return (n, o) => (v(), i("div", zn, [t.rows.length ? r("", !0) : (v(), i("p", Bn, T(t.empty), 1)), (v(!0), i(e, null, x(t.rows, (n) => (v(), i("div", {
1287
1276
  key: n.id,
1288
1277
  class: "mwnf-standalone-results__cell"
1289
- }, [a("div", Cn, [c(G, {
1278
+ }, [a("div", Vn, [c(J, {
1290
1279
  class: "mwnf-standalone-results__frame",
1291
1280
  to: n.to,
1292
1281
  href: n.href
1293
1282
  }, {
1294
- default: j(() => [a("img", {
1283
+ default: F(() => [a("img", {
1295
1284
  src: n.image || t.noImage,
1296
1285
  alt: ""
1297
- }, null, 8, wn)]),
1286
+ }, null, 8, Hn)]),
1298
1287
  _: 2
1299
- }, 1032, ["to", "href"]), a("div", Tn, [
1300
- c(G, {
1288
+ }, 1032, ["to", "href"]), a("div", Un, [
1289
+ c(J, {
1301
1290
  class: "mwnf-standalone-results__panel-frame",
1302
1291
  to: n.to,
1303
1292
  href: n.href
1304
1293
  }, {
1305
- default: j(() => [a("img", {
1294
+ default: F(() => [a("img", {
1306
1295
  src: n.image || t.noImage,
1307
1296
  alt: ""
1308
- }, null, 8, En)]),
1297
+ }, null, 8, Wn)]),
1309
1298
  _: 2
1310
1299
  }, 1032, ["to", "href"]),
1311
- a("p", Dn, [a("strong", null, [c(G, {
1300
+ a("p", Gn, [a("strong", null, [c(J, {
1312
1301
  to: n.to,
1313
1302
  href: n.href
1314
1303
  }, {
1315
- default: j(() => [a("span", { innerHTML: n.name }, null, 8, On)]),
1304
+ default: F(() => [a("span", { innerHTML: n.name }, null, 8, Kn)]),
1316
1305
  _: 2
1317
1306
  }, 1032, ["to", "href"])])]),
1318
- (_(!0), i(e, null, b(n.lines ?? [], (e, t) => (_(), i("p", {
1307
+ (v(!0), i(e, null, x(n.lines ?? [], (e, t) => (v(), i("p", {
1319
1308
  key: t,
1320
1309
  innerHTML: e
1321
- }, null, 8, kn))), 128)),
1322
- n.holder ? (_(), i("p", An, [a("strong", { innerHTML: n.holder }, null, 8, jn)])) : r("", !0),
1323
- n.location ? (_(), i("p", {
1310
+ }, null, 8, qn))), 128)),
1311
+ n.holder ? (v(), i("p", Jn, [a("strong", { innerHTML: n.holder }, null, 8, Yn)])) : r("", !0),
1312
+ n.location ? (v(), i("p", {
1324
1313
  key: 1,
1325
1314
  innerHTML: n.location
1326
- }, null, 8, Mn)) : r("", !0),
1327
- a("p", null, [c(G, {
1315
+ }, null, 8, Xn)) : r("", !0),
1316
+ a("p", null, [c(J, {
1328
1317
  class: "mwnf-standalone-results__see",
1329
1318
  to: n.to,
1330
1319
  href: n.href
1331
1320
  }, {
1332
- default: j(() => [s(S(t.seeLabel), 1)]),
1321
+ default: F(() => [s(T(t.seeLabel), 1)]),
1333
1322
  _: 1
1334
1323
  }, 8, ["to", "href"])])
1335
1324
  ])])]))), 128))]));
1336
1325
  }
1337
- }, Pn = { class: "mwnf-standalone-list" }, Fn = { class: "mwnf-standalone-list__aside" }, In = {
1326
+ }, Qn = { class: "mwnf-standalone-list" }, $n = { class: "mwnf-standalone-list__aside" }, er = {
1338
1327
  key: 0,
1339
1328
  class: "mwnf-standalone-list__preview"
1340
- }, Ln = { class: "mwnf-standalone-list__preview-picture" }, Rn = ["src"], zn = { class: "mwnf-standalone-list__preview-name" }, Bn = ["innerHTML"], Vn = ["innerHTML"], Hn = { key: 0 }, Un = ["innerHTML"], Wn = ["innerHTML"], Gn = { class: "mwnf-standalone-list__records" }, Kn = {
1329
+ }, tr = { class: "mwnf-standalone-list__preview-picture" }, nr = ["src"], rr = { class: "mwnf-standalone-list__preview-name" }, ir = ["innerHTML"], ar = ["innerHTML"], or = { key: 0 }, sr = ["innerHTML"], cr = ["innerHTML"], lr = { class: "mwnf-standalone-list__records" }, ur = {
1341
1330
  key: 0,
1342
1331
  class: "mwnf-standalone-list__empty"
1343
- }, qn = { class: "mwnf-standalone-list__frame" }, Jn = ["src"], Yn = { class: "mwnf-standalone-list__content" }, Xn = ["innerHTML"], Zn = ["innerHTML"], Qn = { key: 0 }, $n = ["innerHTML"], er = {
1332
+ }, dr = { class: "mwnf-standalone-list__frame" }, fr = ["src"], pr = { class: "mwnf-standalone-list__content" }, mr = ["innerHTML"], hr = ["innerHTML"], gr = { key: 0 }, _r = ["innerHTML"], vr = {
1344
1333
  __name: "ResultsList",
1345
1334
  props: {
1346
1335
  rows: {
@@ -1357,73 +1346,73 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1357
1346
  }
1358
1347
  },
1359
1348
  setup(n) {
1360
- let o = n, l = y(null), u = t(() => l.value ?? o.rows[0] ?? null);
1361
- return (t, o) => (_(), i("div", Pn, [a("div", Fn, [u.value ? (_(), i("div", In, [
1362
- a("div", Ln, [u.value.image || n.noImage ? (_(), i("img", {
1349
+ let o = n, l = b(null), u = t(() => l.value ?? o.rows[0] ?? null);
1350
+ return (t, o) => (v(), i("div", Qn, [a("div", $n, [u.value ? (v(), i("div", er, [
1351
+ a("div", tr, [u.value.image || n.noImage ? (v(), i("img", {
1363
1352
  key: 0,
1364
1353
  src: u.value.image || n.noImage,
1365
1354
  alt: ""
1366
- }, null, 8, Rn)) : r("", !0)]),
1367
- a("p", zn, [a("strong", { innerHTML: u.value.name }, null, 8, Bn)]),
1368
- (_(!0), i(e, null, b(u.value.preview?.lines ?? [], (e, t) => (_(), i("p", {
1355
+ }, null, 8, nr)) : r("", !0)]),
1356
+ a("p", rr, [a("strong", { innerHTML: u.value.name }, null, 8, ir)]),
1357
+ (v(!0), i(e, null, x(u.value.preview?.lines ?? [], (e, t) => (v(), i("p", {
1369
1358
  key: t,
1370
1359
  innerHTML: e
1371
- }, null, 8, Vn))), 128)),
1372
- u.value.preview?.holder ? (_(), i("p", Hn, [a("strong", { innerHTML: u.value.preview.holder }, null, 8, Un)])) : r("", !0),
1373
- u.value.preview?.location ? (_(), i("p", {
1360
+ }, null, 8, ar))), 128)),
1361
+ u.value.preview?.holder ? (v(), i("p", or, [a("strong", { innerHTML: u.value.preview.holder }, null, 8, sr)])) : r("", !0),
1362
+ u.value.preview?.location ? (v(), i("p", {
1374
1363
  key: 1,
1375
1364
  innerHTML: u.value.preview.location
1376
- }, null, 8, Wn)) : r("", !0)
1377
- ])) : r("", !0)]), a("div", Gn, [n.rows.length ? r("", !0) : (_(), i("p", Kn, S(n.empty), 1)), (_(!0), i(e, null, b(n.rows, (e) => (_(), i("div", {
1365
+ }, null, 8, cr)) : r("", !0)
1366
+ ])) : r("", !0)]), a("div", lr, [n.rows.length ? r("", !0) : (v(), i("p", ur, T(n.empty), 1)), (v(!0), i(e, null, x(n.rows, (e) => (v(), i("div", {
1378
1367
  key: e.id,
1379
1368
  class: "mwnf-standalone-list__cell"
1380
- }, [a("div", qn, [c(G, {
1369
+ }, [a("div", dr, [c(J, {
1381
1370
  to: e.to,
1382
1371
  href: e.href,
1383
1372
  onMouseenter: (t) => l.value = e,
1384
1373
  onMouseleave: o[0] ||= (e) => l.value = null
1385
1374
  }, {
1386
- default: j(() => [e.image || n.noImage ? (_(), i("img", {
1375
+ default: F(() => [e.image || n.noImage ? (v(), i("img", {
1387
1376
  key: 0,
1388
1377
  src: e.image || n.noImage,
1389
1378
  alt: ""
1390
- }, null, 8, Jn)) : r("", !0)]),
1379
+ }, null, 8, fr)) : r("", !0)]),
1391
1380
  _: 2
1392
1381
  }, 1032, [
1393
1382
  "to",
1394
1383
  "href",
1395
1384
  "onMouseenter"
1396
- ])]), a("div", Yn, [a("p", null, [c(G, {
1385
+ ])]), a("div", pr, [a("p", null, [c(J, {
1397
1386
  to: e.to,
1398
1387
  href: e.href,
1399
1388
  onMouseenter: (t) => l.value = e,
1400
1389
  onMouseleave: o[1] ||= (e) => l.value = null
1401
1390
  }, {
1402
- default: j(() => [
1391
+ default: F(() => [
1403
1392
  a("span", {
1404
1393
  class: "mwnf-standalone-list__name",
1405
1394
  innerHTML: `${e.name},`
1406
- }, null, 8, Xn),
1395
+ }, null, 8, mr),
1407
1396
  o[2] ||= s(),
1408
- a("span", { innerHTML: e.place }, null, 8, Zn)
1397
+ a("span", { innerHTML: e.place }, null, 8, hr)
1409
1398
  ]),
1410
1399
  _: 2
1411
1400
  }, 1032, [
1412
1401
  "to",
1413
1402
  "href",
1414
1403
  "onMouseenter"
1415
- ])]), e.dates ? (_(), i("div", Qn, [a("i", { innerHTML: e.dates }, null, 8, $n)])) : r("", !0)])]))), 128))])]));
1404
+ ])]), e.dates ? (v(), i("div", gr, [a("i", { innerHTML: e.dates }, null, 8, _r)])) : r("", !0)])]))), 128))])]));
1416
1405
  }
1417
- }, tr = { class: "mwnf-standalone-refine__row" }, nr = {
1406
+ }, yr = { class: "mwnf-standalone-refine__row" }, br = {
1418
1407
  class: "mwnf-standalone-refine__label",
1419
1408
  for: "mwnf-standalone-refine-keyword"
1420
- }, rr = {
1409
+ }, xr = {
1421
1410
  class: "mwnf-standalone-refine__label",
1422
1411
  for: "mwnf-standalone-refine-field"
1423
- }, ir = ["value"], ar = {
1412
+ }, Sr = ["value"], Cr = {
1424
1413
  type: "submit",
1425
1414
  class: "mwnf-standalone-refine__button"
1426
- }, or = {
1415
+ }, wr = {
1427
1416
  __name: "Refine",
1428
1417
  props: {
1429
1418
  label: {
@@ -1453,7 +1442,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1453
1442
  },
1454
1443
  emits: ["search"],
1455
1444
  setup(t, { emit: n }) {
1456
- let r = t, o = n, l = y(""), u = y(r.fields[0]?.value ?? "");
1445
+ let r = t, o = n, l = b(""), u = b(r.fields[0]?.value ?? "");
1457
1446
  function d() {
1458
1447
  let e = l.value.trim();
1459
1448
  e && o("search", {
@@ -1461,39 +1450,39 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1461
1450
  field: u.value
1462
1451
  });
1463
1452
  }
1464
- return (n, r) => (_(), i("form", {
1453
+ return (n, r) => (v(), i("form", {
1465
1454
  class: "mwnf-standalone-refine",
1466
- onSubmit: N(d, ["prevent"])
1467
- }, [a("div", tr, [
1468
- a("label", nr, S(t.label), 1),
1469
- M(a("input", {
1455
+ onSubmit: L(d, ["prevent"])
1456
+ }, [a("div", yr, [
1457
+ a("label", br, T(t.label), 1),
1458
+ I(a("input", {
1470
1459
  id: "mwnf-standalone-refine-keyword",
1471
1460
  "onUpdate:modelValue": r[0] ||= (e) => l.value = e,
1472
1461
  type: "text",
1473
1462
  size: "40"
1474
- }, null, 512), [[O, l.value]]),
1475
- a("label", rr, S(t.inLabel), 1),
1476
- M(a("select", {
1463
+ }, null, 512), [[M, l.value]]),
1464
+ a("label", xr, T(t.inLabel), 1),
1465
+ I(a("select", {
1477
1466
  id: "mwnf-standalone-refine-field",
1478
1467
  "onUpdate:modelValue": r[1] ||= (e) => u.value = e
1479
- }, [(_(!0), i(e, null, b(t.fields, (e) => (_(), i("option", {
1468
+ }, [(v(!0), i(e, null, x(t.fields, (e) => (v(), i("option", {
1480
1469
  key: e.value,
1481
1470
  value: e.value
1482
- }, S(e.label), 9, ir))), 128))], 512), [[D, u.value]]),
1483
- a("button", ar, S(t.searchLabel), 1),
1484
- c(G, {
1471
+ }, T(e.label), 9, Sr))), 128))], 512), [[j, u.value]]),
1472
+ a("button", Cr, T(t.searchLabel), 1),
1473
+ c(J, {
1485
1474
  class: "mwnf-standalone-refine__button mwnf-standalone-refine__button--new",
1486
1475
  to: t.newSearch
1487
1476
  }, {
1488
- default: j(() => [s(S(t.newSearchLabel), 1)]),
1477
+ default: F(() => [s(T(t.newSearchLabel), 1)]),
1489
1478
  _: 1
1490
1479
  }, 8, ["to"])
1491
1480
  ])], 32));
1492
1481
  }
1493
- }, sr = { class: "mwnf-standalone-item__back mwnf-standalone-pl__back" }, cr = { class: "mwnf-standalone-pl__heads" }, lr = { class: "mwnf-standalone-pl__head" }, ur = { key: 0 }, dr = ["onClick"], fr = { class: "mwnf-standalone-pl__row" }, pr = { class: "mwnf-standalone-pl__main" }, mr = { class: "mwnf-standalone-pl__associated" }, hr = {
1482
+ }, Tr = { class: "mwnf-standalone-item__back mwnf-standalone-pl__back" }, Er = { class: "mwnf-standalone-pl__heads" }, Dr = { class: "mwnf-standalone-pl__head" }, Or = { key: 0 }, kr = ["onClick"], Ar = { class: "mwnf-standalone-pl__row" }, jr = { class: "mwnf-standalone-pl__main" }, Mr = { class: "mwnf-standalone-pl__associated" }, Nr = {
1494
1483
  key: 0,
1495
1484
  class: "mwnf-standalone-pl__none"
1496
- }, gr = {
1485
+ }, Pr = {
1497
1486
  __name: "PartnerList",
1498
1487
  props: {
1499
1488
  type: {
@@ -1522,56 +1511,56 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1522
1511
  }
1523
1512
  },
1524
1513
  setup(o) {
1525
- let l = o, u = t(() => l.type === "museum"), d = y(null), p = y(/* @__PURE__ */ new Set());
1526
- A([u, () => l.groups.length], () => {
1527
- d.value = u.value ? null : 0, p.value = u.value ? /* @__PURE__ */ new Set() : new Set(l.groups.map((e, t) => t));
1514
+ let l = o, u = t(() => l.type === "museum"), d = b(null), f = b(/* @__PURE__ */ new Set());
1515
+ P([u, () => l.groups.length], () => {
1516
+ d.value = u.value ? null : 0, f.value = u.value ? /* @__PURE__ */ new Set() : new Set(l.groups.map((e, t) => t));
1528
1517
  }, { immediate: !0 });
1529
1518
  function m(e) {
1530
1519
  let t = d.value === e;
1531
- d.value = t ? null : e, p.value = t ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([e]);
1520
+ d.value = t ? null : e, f.value = t ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([e]);
1532
1521
  }
1533
- return (t, l) => (_(), i("div", { class: f(["mwnf-standalone-pl", u.value ? "mwnf-standalone-pl--museums" : "mwnf-standalone-pl--institutions"]) }, [
1534
- a("p", sr, [(_(!0), i(e, null, b(o.back, (r) => (_(), i(e, { key: r.label }, [r.history ? (_(), i("button", {
1522
+ return (t, l) => (v(), i("div", { class: p(["mwnf-standalone-pl", u.value ? "mwnf-standalone-pl--museums" : "mwnf-standalone-pl--institutions"]) }, [
1523
+ a("p", Tr, [(v(!0), i(e, null, x(o.back, (r) => (v(), i(e, { key: r.label }, [r.history ? (v(), i("button", {
1535
1524
  key: 0,
1536
1525
  type: "button",
1537
1526
  class: "mwnf-standalone-item__back-link",
1538
1527
  onClick: l[0] ||= (e) => t.$router.back()
1539
- }, S(r.label), 1)) : (_(), n(G, {
1528
+ }, T(r.label), 1)) : (v(), n(J, {
1540
1529
  key: 1,
1541
1530
  class: "mwnf-standalone-item__back-link",
1542
1531
  to: r.to,
1543
1532
  href: r.href
1544
1533
  }, {
1545
- default: j(() => [s(S(r.label), 1)]),
1534
+ default: F(() => [s(T(r.label), 1)]),
1546
1535
  _: 2
1547
- }, 1032, ["to", "href"]))], 64))), 128)), x(t.$slots, "back")]),
1548
- a("div", cr, [(_(!0), i(e, null, b(o.heads, (e) => (_(), i("h3", { key: e }, S(e), 1))), 128))]),
1549
- (_(!0), i(e, null, b(o.groups, (t, n) => (_(), i("div", {
1536
+ }, 1032, ["to", "href"]))], 64))), 128)), S(t.$slots, "back")]),
1537
+ a("div", Er, [(v(!0), i(e, null, x(o.heads, (e) => (v(), i("h3", { key: e }, T(e), 1))), 128))]),
1538
+ (v(!0), i(e, null, x(o.groups, (t, n) => (v(), i("div", {
1550
1539
  key: t.label,
1551
1540
  class: "mwnf-standalone-pl__group"
1552
- }, [a("div", lr, [u.value ? (_(), i("h3", ur, S(t.label), 1)) : r("", !0), a("h3", null, [a("a", {
1541
+ }, [a("div", Dr, [u.value ? (v(), i("h3", Or, T(t.label), 1)) : r("", !0), a("h3", null, [a("a", {
1553
1542
  href: "#",
1554
- class: f(["mwnf-standalone-pl__toggle", { "mwnf-standalone-pl__toggle--active": d.value === n }]),
1555
- onClick: N((e) => m(n), ["prevent"])
1556
- }, S(u.value ? o.seeAssociated : t.label), 11, dr)])]), M(a("div", fr, [a("div", pr, [(_(!0), i(e, null, b(t.main, (e) => (_(), i("p", { key: e.id }, [c(G, {
1543
+ class: p(["mwnf-standalone-pl__toggle", { "mwnf-standalone-pl__toggle--active": d.value === n }]),
1544
+ onClick: L((e) => m(n), ["prevent"])
1545
+ }, T(u.value ? o.seeAssociated : t.label), 11, kr)])]), I(a("div", Ar, [a("div", jr, [(v(!0), i(e, null, x(t.main, (e) => (v(), i("p", { key: e.id }, [c(J, {
1557
1546
  to: e.to,
1558
1547
  href: e.href
1559
1548
  }, {
1560
- default: j(() => [s(S(e.label), 1)]),
1549
+ default: F(() => [s(T(e.label), 1)]),
1561
1550
  _: 2
1562
- }, 1032, ["to", "href"])]))), 128))]), M(a("div", mr, [(_(!0), i(e, null, b(t.associated, (e) => (_(), i("p", { key: e.id }, [c(G, {
1551
+ }, 1032, ["to", "href"])]))), 128))]), I(a("div", Mr, [(v(!0), i(e, null, x(t.associated, (e) => (v(), i("p", { key: e.id }, [c(J, {
1563
1552
  to: e.to,
1564
1553
  href: e.href
1565
1554
  }, {
1566
- default: j(() => [s(S(e.label), 1)]),
1555
+ default: F(() => [s(T(e.label), 1)]),
1567
1556
  _: 2
1568
- }, 1032, ["to", "href"])]))), 128)), u.value && !t.associated.length ? (_(), i("p", hr, S(o.noAssociated), 1)) : r("", !0)], 512), [[k, !u.value || p.value.has(n)]])], 512), [[k, u.value || p.value.has(n)]])]))), 128))
1557
+ }, 1032, ["to", "href"])]))), 128)), u.value && !t.associated.length ? (v(), i("p", Nr, T(o.noAssociated), 1)) : r("", !0)], 512), [[N, !u.value || f.value.has(n)]])], 512), [[N, u.value || f.value.has(n)]])]))), 128))
1569
1558
  ], 2));
1570
1559
  }
1571
- }, _r = { class: "mwnf-standalone-item__back mwnf-standalone-sp__back" }, vr = {
1560
+ }, Fr = { class: "mwnf-standalone-item__back mwnf-standalone-sp__back" }, Ir = {
1572
1561
  key: 0,
1573
1562
  class: "mwnf-standalone-sp__heading"
1574
- }, yr = ["innerHTML"], br = { class: "mwnf-standalone-sp__text" }, xr = { key: 0 }, Sr = { key: 1 }, Cr = { key: 2 }, wr = ["href"], Tr = ["innerHTML"], Er = { class: "mwnf-standalone-sp__logo" }, Dr = { key: 0 }, Or = ["src", "alt"], kr = {
1563
+ }, Lr = ["innerHTML"], Rr = { class: "mwnf-standalone-sp__text" }, zr = { key: 0 }, Br = { key: 1 }, Vr = { key: 2 }, Hr = ["href"], Ur = ["innerHTML"], Wr = { class: "mwnf-standalone-sp__logo" }, Gr = { key: 0 }, Kr = ["src", "alt"], qr = {
1575
1564
  __name: "SponsorList",
1576
1565
  props: {
1577
1566
  heading: {
@@ -1590,68 +1579,68 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1590
1579
  setup(o) {
1591
1580
  let c = o, l = t(() => c.rows.some((e) => e.label !== void 0)), u = t(() => c.rows.map((e) => ({
1592
1581
  ...e,
1593
- labelHtml: e.label ? R(e.label) : "",
1594
- remarksHtml: e.remarks ? R(e.remarks) : ""
1582
+ labelHtml: e.label ? V(e.label) : "",
1583
+ remarksHtml: e.remarks ? V(e.remarks) : ""
1595
1584
  })));
1596
- return (t, c) => (_(), i("div", { class: f(["mwnf-standalone-sp", { "mwnf-standalone-sp--labels": l.value }]) }, [
1597
- a("p", _r, [(_(!0), i(e, null, b(o.back, (r) => (_(), i(e, { key: r.label }, [r.history ? (_(), i("button", {
1585
+ return (t, c) => (v(), i("div", { class: p(["mwnf-standalone-sp", { "mwnf-standalone-sp--labels": l.value }]) }, [
1586
+ a("p", Fr, [(v(!0), i(e, null, x(o.back, (r) => (v(), i(e, { key: r.label }, [r.history ? (v(), i("button", {
1598
1587
  key: 0,
1599
1588
  type: "button",
1600
1589
  class: "mwnf-standalone-item__back-link",
1601
1590
  onClick: c[0] ||= (e) => t.$router.back()
1602
- }, S(r.label), 1)) : (_(), n(G, {
1591
+ }, T(r.label), 1)) : (v(), n(J, {
1603
1592
  key: 1,
1604
1593
  class: "mwnf-standalone-item__back-link",
1605
1594
  to: r.to,
1606
1595
  href: r.href
1607
1596
  }, {
1608
- default: j(() => [s(S(r.label), 1)]),
1597
+ default: F(() => [s(T(r.label), 1)]),
1609
1598
  _: 2
1610
1599
  }, 1032, ["to", "href"]))], 64))), 128))]),
1611
- o.heading ? (_(), i("h3", vr, S(o.heading), 1)) : r("", !0),
1612
- (_(!0), i(e, null, b(u.value, (e, t) => (_(), i("div", {
1600
+ o.heading ? (v(), i("h3", Ir, T(o.heading), 1)) : r("", !0),
1601
+ (v(!0), i(e, null, x(u.value, (e, t) => (v(), i("div", {
1613
1602
  key: t,
1614
1603
  class: "mwnf-standalone-sp__row"
1615
1604
  }, [
1616
- l.value ? (_(), i("div", {
1605
+ l.value ? (v(), i("div", {
1617
1606
  key: 0,
1618
1607
  class: "mwnf-standalone-sp__label",
1619
1608
  innerHTML: e.labelHtml
1620
- }, null, 8, yr)) : r("", !0),
1621
- a("div", br, [
1622
- e.region ? (_(), i("p", xr, S(e.region), 1)) : r("", !0),
1623
- e.name ? (_(), i("p", Sr, S(e.name), 1)) : r("", !0),
1624
- e.web ? (_(), i("p", Cr, [a("a", {
1609
+ }, null, 8, Lr)) : r("", !0),
1610
+ a("div", Rr, [
1611
+ e.region ? (v(), i("p", zr, T(e.region), 1)) : r("", !0),
1612
+ e.name ? (v(), i("p", Br, T(e.name), 1)) : r("", !0),
1613
+ e.web ? (v(), i("p", Vr, [a("a", {
1625
1614
  href: `http://${e.web}`,
1626
1615
  target: "_blank",
1627
1616
  rel: "noopener"
1628
- }, S(e.web), 9, wr)])) : r("", !0),
1629
- e.remarksHtml ? (_(), i("div", {
1617
+ }, T(e.web), 9, Hr)])) : r("", !0),
1618
+ e.remarksHtml ? (v(), i("div", {
1630
1619
  key: 3,
1631
1620
  class: "mwnf-standalone-sp__remarks",
1632
1621
  innerHTML: e.remarksHtml
1633
- }, null, 8, Tr)) : r("", !0)
1622
+ }, null, 8, Ur)) : r("", !0)
1634
1623
  ]),
1635
- a("div", Er, [e.logo ? (_(), i("p", Dr, [a("img", {
1624
+ a("div", Wr, [e.logo ? (v(), i("p", Gr, [a("img", {
1636
1625
  src: e.logo,
1637
1626
  alt: e.name
1638
- }, null, 8, Or)])) : r("", !0)])
1627
+ }, null, 8, Kr)])) : r("", !0)])
1639
1628
  ]))), 128))
1640
1629
  ], 2));
1641
1630
  }
1642
- }, Ar = { class: "mwnf-standalone-pe" }, jr = { class: "mwnf-standalone-pe__box" }, Mr = { class: "mwnf-standalone-pe__name" }, Nr = { class: "mwnf-standalone-pe__links" }, Pr = {
1631
+ }, Jr = { class: "mwnf-standalone-pe" }, Yr = { class: "mwnf-standalone-pe__box" }, Xr = { class: "mwnf-standalone-pe__name" }, Zr = { class: "mwnf-standalone-pe__links" }, Qr = {
1643
1632
  key: 0,
1644
1633
  class: "mwnf-standalone-pe__about"
1645
- }, Fr = ["aria-expanded", "onClick"], Ir = {
1634
+ }, $r = ["aria-expanded", "onClick"], ei = {
1646
1635
  key: 1,
1647
1636
  class: "mwnf-standalone-pe__popup",
1648
1637
  role: "dialog"
1649
- }, Lr = ["aria-label"], Rr = {
1638
+ }, ti = ["aria-label"], ni = {
1650
1639
  viewBox: "0 0 24 24",
1651
1640
  width: "21",
1652
1641
  height: "21",
1653
1642
  "aria-hidden": "true"
1654
- }, zr = ["id"], Br = ["mask"], Vr = ["innerHTML"], Hr = {
1643
+ }, ri = ["id"], ii = ["mask"], ai = ["innerHTML"], oi = {
1655
1644
  __name: "PartnersEntrance",
1656
1645
  props: {
1657
1646
  projects: {
@@ -1670,38 +1659,38 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1670
1659
  setup(n) {
1671
1660
  let o = n, l = t(() => o.projects.map((e) => ({
1672
1661
  ...e,
1673
- aboutHtml: e.about ? R(e.about) : ""
1674
- }))), u = y(-1);
1662
+ aboutHtml: e.about ? V(e.about) : ""
1663
+ }))), u = b(-1);
1675
1664
  function d() {
1676
1665
  u.value = -1;
1677
1666
  }
1678
1667
  function f(e) {
1679
1668
  e.key === "Escape" && d();
1680
1669
  }
1681
- return A(u, (e) => {
1670
+ return P(u, (e) => {
1682
1671
  typeof document < "u" && (e >= 0 ? document.addEventListener("keydown", f) : document.removeEventListener("keydown", f));
1683
- }), h(() => {
1672
+ }), g(() => {
1684
1673
  typeof document < "u" && document.removeEventListener("keydown", f);
1685
- }), (t, o) => (_(), i("div", Ar, [u.value >= 0 ? (_(), i("div", {
1674
+ }), (t, o) => (v(), i("div", Jr, [u.value >= 0 ? (v(), i("div", {
1686
1675
  key: 0,
1687
1676
  class: "mwnf-standalone-pe__shade",
1688
1677
  onClick: d
1689
- })) : r("", !0), (_(!0), i(e, null, b(l.value, (t, l) => (_(), i("div", {
1678
+ })) : r("", !0), (v(!0), i(e, null, x(l.value, (t, l) => (v(), i("div", {
1690
1679
  key: l,
1691
1680
  class: "mwnf-standalone-pe__row"
1692
- }, [a("div", jr, [a("h3", Mr, S(t.name), 1)]), a("div", Nr, [
1681
+ }, [a("div", Yr, [a("h3", Xr, T(t.name), 1)]), a("div", Zr, [
1693
1682
  o[1] ||= a("p", { "aria-hidden": "true" }, "\xA0", -1),
1694
- t.aboutHtml ? (_(), i("p", Pr, [a("button", {
1683
+ t.aboutHtml ? (v(), i("p", Qr, [a("button", {
1695
1684
  type: "button",
1696
1685
  "aria-expanded": u.value === l,
1697
1686
  onClick: (e) => u.value = l
1698
- }, S(n.aboutLabel), 9, Fr)])) : r("", !0),
1699
- u.value === l ? (_(), i("div", Ir, [a("button", {
1687
+ }, T(n.aboutLabel), 9, $r)])) : r("", !0),
1688
+ u.value === l ? (v(), i("div", ei, [a("button", {
1700
1689
  type: "button",
1701
1690
  class: "mwnf-standalone-pe__close",
1702
1691
  "aria-label": n.closeLabel || void 0,
1703
1692
  onClick: d
1704
- }, [(_(), i("svg", Rr, [a("mask", { id: `mwnf-standalone-pe-x${l}` }, [...o[0] ||= [a("rect", {
1693
+ }, [(v(), i("svg", ni, [a("mask", { id: `mwnf-standalone-pe-x${l}` }, [...o[0] ||= [a("rect", {
1705
1694
  width: "24",
1706
1695
  height: "24",
1707
1696
  fill: "#fff"
@@ -1710,35 +1699,35 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1710
1699
  stroke: "#000",
1711
1700
  "stroke-width": "3",
1712
1701
  "stroke-linecap": "round"
1713
- }, null, -1)]], 8, zr), a("circle", {
1702
+ }, null, -1)]], 8, ri), a("circle", {
1714
1703
  cx: "12",
1715
1704
  cy: "12",
1716
1705
  r: "12",
1717
1706
  fill: "currentColor",
1718
1707
  mask: `url(#mwnf-standalone-pe-x${l})`
1719
- }, null, 8, Br)]))], 8, Lr), a("div", {
1708
+ }, null, 8, ii)]))], 8, ti), a("div", {
1720
1709
  class: "mwnf-standalone-pe__text",
1721
1710
  innerHTML: t.aboutHtml
1722
- }, null, 8, Vr)])) : r("", !0),
1723
- (_(!0), i(e, null, b(t.links, (e) => (_(), i("p", { key: e.label }, [c(G, {
1711
+ }, null, 8, ai)])) : r("", !0),
1712
+ (v(!0), i(e, null, x(t.links, (e) => (v(), i("p", { key: e.label }, [c(J, {
1724
1713
  to: e.to,
1725
1714
  href: e.href
1726
1715
  }, {
1727
- default: j(() => [s(S(e.label), 1)]),
1716
+ default: F(() => [s(T(e.label), 1)]),
1728
1717
  _: 2
1729
1718
  }, 1032, ["to", "href"])]))), 128))
1730
1719
  ])]))), 128))]));
1731
1720
  }
1732
- }, Ur = { class: "mwnf-standalone-db__criteria" }, Wr = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--keywords" }, Gr = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--category" }, Kr = {
1721
+ }, si = { class: "mwnf-standalone-db__criteria" }, ci = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--keywords" }, li = { class: "mwnf-standalone-db__head mwnf-standalone-db__head--category" }, ui = {
1733
1722
  key: 0,
1734
1723
  class: "mwnf-standalone-db__aside"
1735
- }, qr = ["onUpdate:modelValue", "aria-label"], Jr = { value: "AND" }, Yr = { value: "OR" }, Xr = ["onUpdate:modelValue", "aria-label"], Zr = ["onUpdate:modelValue"], Qr = ["value"], $r = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--date" }, ei = { class: "mwnf-standalone-db__dates" }, ti = ["aria-label"], ni = { value: "" }, ri = ["value"], ii = ["aria-label"], ai = { value: "" }, oi = ["value"], si = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--language" }, ci = { class: "mwnf-standalone-db__language" }, li = ["aria-label"], ui = ["value"], di = {
1724
+ }, di = ["onUpdate:modelValue", "aria-label"], fi = { value: "AND" }, pi = { value: "OR" }, mi = ["onUpdate:modelValue", "aria-label"], hi = ["onUpdate:modelValue"], gi = ["value"], _i = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--date" }, vi = { class: "mwnf-standalone-db__dates" }, yi = ["aria-label"], bi = { value: "" }, xi = ["value"], Si = ["aria-label"], Ci = { value: "" }, wi = ["value"], Ti = { class: "mwnf-standalone-db__label mwnf-standalone-db__label--language" }, Ei = { class: "mwnf-standalone-db__language" }, Di = ["aria-label"], Oi = ["value"], ki = {
1736
1725
  key: 1,
1737
1726
  class: "mwnf-standalone-db__options"
1738
- }, fi = { class: "mwnf-standalone-db__go" }, pi = { type: "submit" }, mi = {
1727
+ }, Ai = { class: "mwnf-standalone-db__go" }, ji = { type: "submit" }, Mi = {
1739
1728
  key: 2,
1740
1729
  class: "mwnf-standalone-db__listing"
1741
- }, hi = ["href", "title"], gi = {
1730
+ }, Ni = ["href", "title"], Pi = {
1742
1731
  __name: "DatabaseForm",
1743
1732
  props: /*@__PURE__*/ u({
1744
1733
  labels: {
@@ -1774,7 +1763,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1774
1763
  }),
1775
1764
  emits: /*@__PURE__*/ u(["search"], ["update:language"]),
1776
1765
  setup(n, { emit: o }) {
1777
- let s = n, c = T(n, "language"), l = o, u = E(), d = v([
1766
+ let s = n, c = O(n, "language"), l = o, u = k(), d = y([
1778
1767
  {
1779
1768
  keyword: "",
1780
1769
  field: s.fields[0]?.value ?? "",
@@ -1790,80 +1779,419 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1790
1779
  field: s.fields[0]?.value ?? "",
1791
1780
  cond: "AND"
1792
1781
  }
1793
- ]), p = v({
1782
+ ]), f = y({
1794
1783
  from: "",
1795
1784
  to: ""
1796
1785
  }), m = t(() => !!u.options), h = (e) => typeof e == "object" ? e : {
1797
1786
  value: e,
1798
1787
  label: String(e)
1799
- }, g = t(() => s.fromYears.map(h)), y = t(() => s.toYears.map(h));
1800
- function C() {
1788
+ }, g = t(() => s.fromYears.map(h)), _ = t(() => s.toYears.map(h));
1789
+ function b() {
1801
1790
  l("search", {
1802
1791
  rows: d.map((e) => ({
1803
1792
  ...e,
1804
1793
  keyword: e.keyword.trim()
1805
1794
  })),
1806
- from: p.from,
1807
- to: p.to
1795
+ from: f.from,
1796
+ to: f.to
1808
1797
  });
1809
1798
  }
1810
- return (t, o) => (_(), i("form", {
1811
- class: f(["mwnf-standalone-db", { "mwnf-standalone-db--options": m.value }]),
1812
- onSubmit: N(C, ["prevent"])
1799
+ return (t, o) => (v(), i("form", {
1800
+ class: p(["mwnf-standalone-db", { "mwnf-standalone-db--options": m.value }]),
1801
+ onSubmit: L(b, ["prevent"])
1813
1802
  }, [
1814
- a("h3", Ur, S(n.labels.criteria), 1),
1815
- a("p", Wr, S(n.labels.keywords), 1),
1816
- a("p", Gr, S(n.labels.category), 1),
1817
- t.$slots.aside ? (_(), i("p", Kr, [x(t.$slots, "aside")])) : r("", !0),
1818
- (_(!0), i(e, null, b(d, (t, o) => (_(), i(e, { key: o }, [
1819
- o ? M((_(), i("select", {
1803
+ a("h3", si, T(n.labels.criteria), 1),
1804
+ a("p", ci, T(n.labels.keywords), 1),
1805
+ a("p", li, T(n.labels.category), 1),
1806
+ t.$slots.aside ? (v(), i("p", ui, [S(t.$slots, "aside")])) : r("", !0),
1807
+ (v(!0), i(e, null, x(d, (t, o) => (v(), i(e, { key: o }, [
1808
+ o ? I((v(), i("select", {
1820
1809
  key: 0,
1821
1810
  "onUpdate:modelValue": (e) => t.cond = e,
1822
- class: f(["mwnf-standalone-db__cond", `mwnf-standalone-db__row-${o + 1}`]),
1811
+ class: p(["mwnf-standalone-db__cond", `mwnf-standalone-db__row-${o + 1}`]),
1823
1812
  "aria-label": `${n.labels.and} / ${n.labels.or}`
1824
- }, [a("option", Jr, S(n.labels.and), 1), a("option", Yr, S(n.labels.or), 1)], 10, qr)), [[D, t.cond]]) : r("", !0),
1825
- M(a("input", {
1813
+ }, [a("option", fi, T(n.labels.and), 1), a("option", pi, T(n.labels.or), 1)], 10, di)), [[j, t.cond]]) : r("", !0),
1814
+ I(a("input", {
1826
1815
  "onUpdate:modelValue": (e) => t.keyword = e,
1827
1816
  type: "text",
1828
- class: f(["mwnf-standalone-db__keyword", `mwnf-standalone-db__row-${o + 1}`]),
1817
+ class: p(["mwnf-standalone-db__keyword", `mwnf-standalone-db__row-${o + 1}`]),
1829
1818
  "aria-label": n.labels.keywords
1830
- }, null, 10, Xr), [[O, t.keyword]]),
1831
- a("label", { class: f(["mwnf-standalone-db__field", `mwnf-standalone-db__row-${o + 1}`]) }, [a("span", null, S(n.labels.in), 1), M(a("select", { "onUpdate:modelValue": (e) => t.field = e }, [(_(!0), i(e, null, b(n.fields, (e) => (_(), i("option", {
1819
+ }, null, 10, mi), [[M, t.keyword]]),
1820
+ a("label", { class: p(["mwnf-standalone-db__field", `mwnf-standalone-db__row-${o + 1}`]) }, [a("span", null, T(n.labels.in), 1), I(a("select", { "onUpdate:modelValue": (e) => t.field = e }, [(v(!0), i(e, null, x(n.fields, (e) => (v(), i("option", {
1832
1821
  key: e.value,
1833
1822
  value: e.value
1834
- }, S(e.label), 9, Qr))), 128))], 8, Zr), [[D, t.field]])], 2)
1823
+ }, T(e.label), 9, gi))), 128))], 8, hi), [[j, t.field]])], 2)
1835
1824
  ], 64))), 128)),
1836
- a("span", $r, S(n.labels.date), 1),
1837
- a("p", ei, [M(a("select", {
1838
- "onUpdate:modelValue": o[0] ||= (e) => p.from = e,
1825
+ a("span", _i, T(n.labels.date), 1),
1826
+ a("p", vi, [I(a("select", {
1827
+ "onUpdate:modelValue": o[0] ||= (e) => f.from = e,
1839
1828
  "aria-label": `${n.labels.date} ${n.labels.from}`
1840
- }, [a("option", ni, S(n.labels.from), 1), (_(!0), i(e, null, b(g.value, (e) => (_(), i("option", {
1829
+ }, [a("option", bi, T(n.labels.from), 1), (v(!0), i(e, null, x(g.value, (e) => (v(), i("option", {
1841
1830
  key: e.value,
1842
1831
  value: e.value
1843
- }, S(e.label), 9, ri))), 128))], 8, ti), [[D, p.from]]), M(a("select", {
1844
- "onUpdate:modelValue": o[1] ||= (e) => p.to = e,
1832
+ }, T(e.label), 9, xi))), 128))], 8, yi), [[j, f.from]]), I(a("select", {
1833
+ "onUpdate:modelValue": o[1] ||= (e) => f.to = e,
1845
1834
  "aria-label": `${n.labels.date} ${n.labels.to}`
1846
- }, [a("option", ai, S(n.labels.to), 1), (_(!0), i(e, null, b(y.value, (e) => (_(), i("option", {
1835
+ }, [a("option", Ci, T(n.labels.to), 1), (v(!0), i(e, null, x(_.value, (e) => (v(), i("option", {
1847
1836
  key: e.value,
1848
1837
  value: e.value
1849
- }, S(e.label), 9, oi))), 128))], 8, ii), [[D, p.to]])]),
1850
- a("span", si, S(n.labels.language), 1),
1851
- a("p", ci, [M(a("select", {
1838
+ }, T(e.label), 9, wi))), 128))], 8, Si), [[j, f.to]])]),
1839
+ a("span", Ti, T(n.labels.language), 1),
1840
+ a("p", Ei, [I(a("select", {
1852
1841
  "onUpdate:modelValue": o[2] ||= (e) => c.value = e,
1853
1842
  "aria-label": n.labels.language
1854
- }, [o[3] ||= a("option", { value: "" }, null, -1), (_(!0), i(e, null, b(n.languages, (e) => (_(), i("option", {
1843
+ }, [o[3] ||= a("option", { value: "" }, null, -1), (v(!0), i(e, null, x(n.languages, (e) => (v(), i("option", {
1855
1844
  key: e.code,
1856
1845
  value: e.code
1857
- }, S(e.name), 9, ui))), 128))], 8, li), [[D, c.value]])]),
1858
- m.value ? (_(), i("p", di, [x(t.$slots, "options")])) : r("", !0),
1859
- a("p", fi, [a("button", pi, S(n.labels.go), 1)]),
1860
- n.listingHref ? (_(), i("p", mi, [a("a", {
1846
+ }, T(e.name), 9, Oi))), 128))], 8, Di), [[j, c.value]])]),
1847
+ m.value ? (v(), i("p", ki, [S(t.$slots, "options")])) : r("", !0),
1848
+ a("p", Ai, [a("button", ji, T(n.labels.go), 1)]),
1849
+ n.listingHref ? (v(), i("p", Mi, [a("a", {
1861
1850
  href: n.listingHref,
1862
1851
  title: n.labels.listingTooltip
1863
- }, S(n.labels.listing), 9, hi)])) : r("", !0)
1852
+ }, T(n.labels.listing), 9, Ni)])) : r("", !0)
1864
1853
  ], 34));
1865
1854
  }
1866
- }, _i = { class: "mwnf-standalone-tle__country" }, vi = ["aria-label"], yi = { value: "none" }, bi = { value: "" }, xi = ["value"], Si = { class: "mwnf-standalone-tle__date" }, Ci = ["aria-label"], wi = { value: "none" }, Ti = ["value"], Ei = { class: "mwnf-standalone-tle__date" }, Di = ["aria-label"], Oi = { value: "none" }, ki = ["value"], Ai = { class: "mwnf-standalone-tle__go" }, ji = { type: "submit" }, Mi = {
1855
+ }, Fi = { class: "mwnf-gdb" }, Ii = { class: "mwnf-gdb__rows" }, Li = ["onUpdate:modelValue", "aria-label"], Ri = { value: "AND" }, zi = { value: "OR" }, Bi = [
1856
+ "onUpdate:modelValue",
1857
+ "aria-label",
1858
+ "placeholder"
1859
+ ], Vi = ["onUpdate:modelValue", "aria-label"], Hi = ["value"], Ui = { class: "mwnf-gdb__filters" }, Wi = { class: "mwnf-gdb__since" }, Gi = { class: "mwnf-gdb__until" }, Ki = { class: "mwnf-gdb__language" }, qi = { value: "" }, Ji = ["value"], Yi = { class: "mwnf-gdb__country" }, Xi = { value: "" }, Zi = ["value"], Qi = { class: "mwnf-gdb__dynasty" }, $i = { value: "" }, ea = ["value"], ta = { class: "mwnf-gdb__partner" }, na = {
1860
+ key: 0,
1861
+ class: "mwnf-gdb__suggestions"
1862
+ }, ra = ["onClick"], ia = {
1863
+ key: 1,
1864
+ class: "mwnf-gdb__chosen"
1865
+ }, aa = ["aria-label"], oa = { class: "mwnf-gdb__tags" }, sa = ["value"], ca = ["aria-label"], la = {
1866
+ key: 0,
1867
+ class: "mwnf-gdb__suggestions"
1868
+ }, ua = ["onClick"], da = ["aria-label", "onClick"], fa = {
1869
+ key: 0,
1870
+ class: "mwnf-gdb__scope"
1871
+ }, pa = ["value", "disabled"], ma = ["innerHTML"], ha = { class: "mwnf-gdb__all" }, ga = { class: "mwnf-gdb__actions" }, _a = { type: "submit" }, va = {
1872
+ key: 0,
1873
+ class: "mwnf-gdb__error",
1874
+ role: "alert"
1875
+ }, ya = {
1876
+ class: "mwnf-gdb__count",
1877
+ "aria-live": "polite"
1878
+ }, ba = { class: "mwnf-gdb__results" }, xa = ["lang"], Sa = {
1879
+ key: 0,
1880
+ class: "mwnf-gdb__dates"
1881
+ }, Ca = {
1882
+ key: 1,
1883
+ class: "mwnf-gdb__partner-name"
1884
+ }, wa = {
1885
+ key: 2,
1886
+ class: "mwnf-gdb__country-name"
1887
+ }, Ta = {
1888
+ key: 3,
1889
+ class: "mwnf-gdb__links"
1890
+ }, Ea = ["href"], Da = {
1891
+ key: 0,
1892
+ class: "mwnf-gdb__more"
1893
+ }, Oa = {
1894
+ __name: "GlobalDatabaseSearch",
1895
+ props: {
1896
+ scope: {
1897
+ type: Object,
1898
+ default: () => ({})
1899
+ },
1900
+ api: {
1901
+ type: String,
1902
+ default: xe
1903
+ },
1904
+ dataUrl: {
1905
+ type: String,
1906
+ default: ve
1907
+ },
1908
+ pageSize: {
1909
+ type: Number,
1910
+ default: 20
1911
+ }
1912
+ },
1913
+ setup(o) {
1914
+ let c = o, { t: l, locale: u } = K(), f = ee(), p = te(), m = b(null), h = b(/* @__PURE__ */ new Map()), _ = b({
1915
+ countries: [],
1916
+ partners: [],
1917
+ dynasties: []
1918
+ }), S = b("idle"), D = b([]), O = b(0), k = /* @__PURE__ */ new Map(), N = null, R = t(() => m.value?.languages ?? []), z = t(() => Object.fromEntries((m.value?.language_details ?? []).filter((e) => e.locale).map((e) => [e.code, e.locale]))), ne = t(() => Object.fromEntries((m.value?.language_details ?? []).map((e) => [e.code, e.name]))), B = t(() => (c.scope.options ?? []).filter((e) => e?.key && e.label && e.filter)), V = t(() => ye(f.query, {
1919
+ languages: R.value,
1920
+ options: B.value.map((e) => e.key)
1921
+ })), re = Object.keys(Se), ie = [
1922
+ "catalogue.search.keywordOne",
1923
+ "catalogue.search.keywordTwo",
1924
+ "catalogue.search.keywordThree"
1925
+ ], H = {
1926
+ keyword: "catalogue.field.keywords",
1927
+ material: "catalogue.facet.material",
1928
+ type: "catalogue.facet.type",
1929
+ artist: "catalogue.facet.artist",
1930
+ dynasty: "catalogue.facet.periodDynasty",
1931
+ subject: "catalogue.facet.subject",
1932
+ theme: "catalogue.facet.theme"
1933
+ }, U = y({
1934
+ rows: [],
1935
+ since: "",
1936
+ until: "",
1937
+ searchlang: "",
1938
+ country: "",
1939
+ partner: "",
1940
+ dynasty: "",
1941
+ tags: [],
1942
+ all: !1,
1943
+ options: []
1944
+ }), W = b(/* @__PURE__ */ new Map());
1945
+ function G(e) {
1946
+ Object.assign(U, {
1947
+ ...e,
1948
+ rows: e.rows.map((e) => ({ ...e })),
1949
+ tags: [...e.tags],
1950
+ options: [...e.options]
1951
+ });
1952
+ }
1953
+ P(V, G, { immediate: !0 });
1954
+ let ae = (e) => (t, n) => Q(t, e).localeCompare(Q(n, e), e), oe = t(() => [..._.value.countries].sort(ae(u.value))), se = t(() => [..._.value.dynasties].sort(ae(u.value))), ce = t(() => _.value.partners.map((e) => ({
1955
+ id: e.id,
1956
+ label: Q(e, u.value),
1957
+ count: e.count
1958
+ }))), q = b(""), le = t(() => pe(ce.value, q.value)), J = t(() => ce.value.find((e) => e.id === U.partner)?.label ?? "");
1959
+ function ue(e) {
1960
+ U.partner = e.id, q.value = "";
1961
+ }
1962
+ let Y = b(me[0]), X = b(""), Z = b([]);
1963
+ async function ve() {
1964
+ Z.value = [];
1965
+ for (let e of [.../* @__PURE__ */ new Set([u.value, "en"])]) {
1966
+ let t = we(e, Y.value);
1967
+ if (t) try {
1968
+ Z.value = (await fe(c.dataUrl, t)).tags ?? [];
1969
+ return;
1970
+ } catch {}
1971
+ }
1972
+ }
1973
+ P([Y, u], ve);
1974
+ let xe = t(() => pe(Z.value.filter((e) => !U.tags.includes(e.id)), X.value));
1975
+ function Ee(e) {
1976
+ U.tags.length >= 10 || (U.tags.push(e.id), W.value.set(e.id, e.label), X.value = "");
1977
+ }
1978
+ function De(e) {
1979
+ U.tags = U.tags.filter((t) => t !== e);
1980
+ }
1981
+ let Oe = (e) => W.value.get(e) ?? e;
1982
+ async function ke() {
1983
+ try {
1984
+ let [e, t, n] = await Promise.all([
1985
+ "manifest.json",
1986
+ "sites.json",
1987
+ "filters/entities.json"
1988
+ ].map((e) => fe(c.dataUrl, e)));
1989
+ m.value = e, h.value = Te(t), _.value = {
1990
+ countries: n.countries ?? [],
1991
+ partners: n.partners ?? [],
1992
+ dynasties: n.dynasties ?? []
1993
+ }, ve();
1994
+ } catch {
1995
+ S.value = "error";
1996
+ }
1997
+ }
1998
+ ke();
1999
+ async function Ae(e) {
2000
+ N?.abort(), N = new AbortController(), S.value = "loading";
2001
+ try {
2002
+ let t = await Ce(c.api, V.value, {
2003
+ offset: e,
2004
+ limit: c.pageSize,
2005
+ scope: {
2006
+ ...c.scope,
2007
+ options: B.value
2008
+ },
2009
+ languages: R.value,
2010
+ locales: z.value,
2011
+ signal: N.signal,
2012
+ cache: k
2013
+ });
2014
+ D.value = e ? [...D.value, ...t.hits] : t.hits, O.value = t.total, S.value = "done";
2015
+ } catch (e) {
2016
+ e?.name !== "AbortError" && (S.value = "error");
2017
+ }
2018
+ }
2019
+ P([V, m], () => {
2020
+ D.value = [], O.value = 0, m.value && he(V.value) ? Ae(0) : m.value && (S.value = "idle");
2021
+ }, { immediate: !0 }), g(() => N?.abort());
2022
+ function je() {
2023
+ let e = {
2024
+ ...U,
2025
+ rows: U.rows.map((e) => ({
2026
+ ...e,
2027
+ q: e.q.trim()
2028
+ }))
2029
+ };
2030
+ p.push({
2031
+ path: f.path,
2032
+ query: de(e)
2033
+ });
2034
+ }
2035
+ function Me() {
2036
+ p.push({
2037
+ path: f.path,
2038
+ query: {}
2039
+ });
2040
+ }
2041
+ let Ne = t(() => D.value.map((e) => ({
2042
+ id: e.id,
2043
+ texts: ge(e, u.value),
2044
+ links: _e(e, h.value, c.scope.site)
2045
+ }))), Pe = t(() => S.value === "done" && D.value.length < O.value);
2046
+ return (t, c) => {
2047
+ let f = C("RouterLink");
2048
+ return v(), i("section", Fi, [a("form", {
2049
+ class: "mwnf-gdb__form",
2050
+ onSubmit: L(je, ["prevent"])
2051
+ }, [
2052
+ a("fieldset", Ii, [(v(!0), i(e, null, x(U.rows.slice(0, E(3)), (t, n) => (v(), i("div", {
2053
+ key: n,
2054
+ class: "mwnf-gdb__row"
2055
+ }, [
2056
+ n ? I((v(), i("select", {
2057
+ key: 0,
2058
+ "onUpdate:modelValue": (e) => t.op = e,
2059
+ class: "mwnf-gdb__op",
2060
+ "aria-label": `${E(l)("catalogue.search.and")} / ${E(l)("catalogue.search.or")}`
2061
+ }, [a("option", Ri, T(E(l)("catalogue.search.and")), 1), a("option", zi, T(E(l)("catalogue.search.or")), 1)], 8, Li)), [[j, t.op]]) : r("", !0),
2062
+ I(a("input", {
2063
+ "onUpdate:modelValue": (e) => t.q = e,
2064
+ type: "search",
2065
+ class: "mwnf-gdb__q",
2066
+ maxlength: "200",
2067
+ "aria-label": E(l)(ie[n]),
2068
+ placeholder: E(l)("catalogue.search.keywordPlaceholder")
2069
+ }, null, 8, Bi), [[M, t.q]]),
2070
+ I(a("select", {
2071
+ "onUpdate:modelValue": (e) => t.field = e,
2072
+ class: "mwnf-gdb__field",
2073
+ "aria-label": E(l)("catalogue.facet.category")
2074
+ }, [(v(!0), i(e, null, x(E(re), (e) => (v(), i("option", {
2075
+ key: e,
2076
+ value: e
2077
+ }, T(E(l)(E(be)[e])), 9, Hi))), 128))], 8, Vi), [[j, t.field]])
2078
+ ]))), 128))]),
2079
+ a("fieldset", Ui, [
2080
+ a("legend", null, T(E(l)("catalogue.filter.heading")), 1),
2081
+ a("label", Wi, [a("span", null, T(E(l)("catalogue.facet.fromYear")), 1), I(a("input", {
2082
+ "onUpdate:modelValue": c[0] ||= (e) => U.since = e,
2083
+ type: "number",
2084
+ step: "1",
2085
+ inputmode: "numeric"
2086
+ }, null, 512), [[M, U.since]])]),
2087
+ a("label", Gi, [a("span", null, T(E(l)("catalogue.facet.toYear")), 1), I(a("input", {
2088
+ "onUpdate:modelValue": c[1] ||= (e) => U.until = e,
2089
+ type: "number",
2090
+ step: "1",
2091
+ inputmode: "numeric"
2092
+ }, null, 512), [[M, U.until]])]),
2093
+ a("label", Ki, [a("span", null, T(E(l)("catalogue.search.language")), 1), I(a("select", { "onUpdate:modelValue": c[2] ||= (e) => U.searchlang = e }, [a("option", qi, T(E(l)("catalogue.search.anyLanguage")), 1), (v(!0), i(e, null, x(R.value, (e) => (v(), i("option", {
2094
+ key: e,
2095
+ value: e
2096
+ }, T(ne.value[e] ?? e), 9, Ji))), 128))], 512), [[j, U.searchlang]])]),
2097
+ a("label", Yi, [a("span", null, T(E(l)("catalogue.facet.country")), 1), I(a("select", { "onUpdate:modelValue": c[3] ||= (e) => U.country = e }, [a("option", Xi, T(E(l)("catalogue.facet.any")), 1), (v(!0), i(e, null, x(oe.value, (e) => (v(), i("option", {
2098
+ key: e.id,
2099
+ value: e.id
2100
+ }, T(E(Q)(e, E(u))), 9, Zi))), 128))], 512), [[j, U.country]])]),
2101
+ a("label", Qi, [a("span", null, T(E(l)("catalogue.facet.periodDynasty")), 1), I(a("select", { "onUpdate:modelValue": c[4] ||= (e) => U.dynasty = e }, [a("option", $i, T(E(l)("catalogue.facet.any")), 1), (v(!0), i(e, null, x(se.value, (e) => (v(), i("option", {
2102
+ key: e.id,
2103
+ value: e.id
2104
+ }, T(E(Q)(e, E(u))), 9, ea))), 128))], 512), [[j, U.dynasty]])]),
2105
+ a("div", ta, [
2106
+ a("label", null, [a("span", null, T(E(l)("catalogue.facet.holdingInstitution")), 1), I(a("input", {
2107
+ "onUpdate:modelValue": c[5] ||= (e) => q.value = e,
2108
+ type: "search",
2109
+ autocomplete: "off"
2110
+ }, null, 512), [[M, q.value]])]),
2111
+ le.value.length ? (v(), i("ul", na, [(v(!0), i(e, null, x(le.value, (e) => (v(), i("li", { key: e.id }, [a("button", {
2112
+ type: "button",
2113
+ onClick: (t) => ue(e)
2114
+ }, T(e.label) + " (" + T(e.count) + ")", 9, ra)]))), 128))])) : r("", !0),
2115
+ U.partner ? (v(), i("p", ia, [a("span", null, T(J.value || U.partner), 1), a("button", {
2116
+ type: "button",
2117
+ "aria-label": E(l)("core.action.reset"),
2118
+ onClick: c[6] ||= (e) => U.partner = ""
2119
+ }, "×", 8, aa)])) : r("", !0)
2120
+ ]),
2121
+ a("div", oa, [
2122
+ a("label", null, [a("span", null, T(E(l)("catalogue.facet.category")), 1), I(a("select", { "onUpdate:modelValue": c[7] ||= (e) => Y.value = e }, [(v(!0), i(e, null, x(E(me), (e) => (v(), i("option", {
2123
+ key: e,
2124
+ value: e
2125
+ }, T(E(l)(H[e])), 9, sa))), 128))], 512), [[j, Y.value]])]),
2126
+ I(a("input", {
2127
+ "onUpdate:modelValue": c[8] ||= (e) => X.value = e,
2128
+ type: "search",
2129
+ autocomplete: "off",
2130
+ "aria-label": E(l)(H[Y.value])
2131
+ }, null, 8, ca), [[M, X.value]]),
2132
+ xe.value.length ? (v(), i("ul", la, [(v(!0), i(e, null, x(xe.value, (e) => (v(), i("li", { key: e.id }, [a("button", {
2133
+ type: "button",
2134
+ onClick: (t) => Ee(e)
2135
+ }, T(e.label) + " (" + T(e.count) + ")", 9, ua)]))), 128))])) : r("", !0),
2136
+ (v(!0), i(e, null, x(U.tags, (e) => (v(), i("p", {
2137
+ key: e,
2138
+ class: "mwnf-gdb__chosen"
2139
+ }, [a("span", null, T(Oe(e)), 1), a("button", {
2140
+ type: "button",
2141
+ "aria-label": E(l)("core.action.reset"),
2142
+ onClick: (t) => De(e)
2143
+ }, "×", 8, da)]))), 128))
2144
+ ])
2145
+ ]),
2146
+ o.scope.site ? (v(), i("fieldset", fa, [(v(!0), i(e, null, x(B.value, (e) => (v(), i("label", {
2147
+ key: e.key,
2148
+ class: "mwnf-gdb__option"
2149
+ }, [I(a("input", {
2150
+ "onUpdate:modelValue": c[9] ||= (e) => U.options = e,
2151
+ type: "checkbox",
2152
+ value: e.key,
2153
+ disabled: U.all
2154
+ }, null, 8, pa), [[A, U.options]]), a("span", { innerHTML: E(l)(e.label) }, null, 8, ma)]))), 128)), a("label", ha, [I(a("input", {
2155
+ "onUpdate:modelValue": c[10] ||= (e) => U.all = e,
2156
+ type: "checkbox"
2157
+ }, null, 512), [[A, U.all]]), a("span", null, T(E(l)("catalogue.search.overallDatabase")), 1)])])) : r("", !0),
2158
+ a("p", ga, [a("button", _a, T(E(l)("catalogue.pagination.go")), 1), a("button", {
2159
+ type: "button",
2160
+ onClick: Me
2161
+ }, T(E(l)("catalogue.search.newSearch")), 1)])
2162
+ ], 32), S.value === "error" ? (v(), i("p", va, T(E(l)("catalogue.search.unavailable")), 1)) : S.value === "idle" ? r("", !0) : (v(), i(e, { key: 1 }, [
2163
+ a("p", ya, [S.value === "done" && O.value === 0 ? (v(), i(e, { key: 0 }, [s(T(E(l)("catalogue.results.noResultsSearch")), 1)], 64)) : O.value ? (v(), i(e, { key: 1 }, [s(T(E(l)("catalogue.results.itemsFound")) + ": " + T(O.value), 1)], 64)) : r("", !0)]),
2164
+ a("ol", ba, [(v(!0), i(e, null, x(Ne.value, (t) => (v(), i("li", {
2165
+ key: t.id,
2166
+ class: "mwnf-gdb__result",
2167
+ lang: t.texts.language
2168
+ }, [
2169
+ (v(), n(w(t.links[0]?.route ? "RouterLink" : t.links[0] ? "a" : "span"), d({ class: "mwnf-gdb__name" }, { ref_for: !0 }, t.links[0]?.route ? { to: t.links[0].route } : t.links[0] ? { href: t.links[0].href } : {}), {
2170
+ default: F(() => [s(T(t.texts.name), 1)]),
2171
+ _: 2
2172
+ }, 1040)),
2173
+ t.texts.dates ? (v(), i("span", Sa, T(t.texts.dates), 1)) : r("", !0),
2174
+ t.texts.partner ? (v(), i("span", Ca, T(t.texts.partner), 1)) : r("", !0),
2175
+ t.texts.country ? (v(), i("span", wa, T(t.texts.country), 1)) : r("", !0),
2176
+ t.links.length > 1 ? (v(), i("span", Ta, [s(T(E(l)("catalogue.results.openIn")) + " ", 1), (v(!0), i(e, null, x(t.links.slice(1), (t) => (v(), i(e, { key: t.site }, [t.route ? (v(), n(f, {
2177
+ key: 0,
2178
+ to: t.route
2179
+ }, {
2180
+ default: F(() => [s(T(t.name), 1)]),
2181
+ _: 2
2182
+ }, 1032, ["to"])) : (v(), i("a", {
2183
+ key: 1,
2184
+ href: t.href
2185
+ }, T(t.name), 9, Ea))], 64))), 128))])) : r("", !0)
2186
+ ], 8, xa))), 128))]),
2187
+ Pe.value ? (v(), i("p", Da, [a("button", {
2188
+ type: "button",
2189
+ onClick: c[11] ||= (e) => Ae(D.value.length)
2190
+ }, T(E(l)("catalogue.results.more")), 1)])) : r("", !0)
2191
+ ], 64))]);
2192
+ };
2193
+ }
2194
+ }, ka = { class: "mwnf-standalone-tle__country" }, Aa = ["aria-label"], ja = { value: "none" }, Ma = { value: "" }, Na = ["value"], Pa = { class: "mwnf-standalone-tle__date" }, Fa = ["aria-label"], Ia = { value: "none" }, La = ["value"], Ra = { class: "mwnf-standalone-tle__date" }, za = ["aria-label"], Ba = { value: "none" }, Va = ["value"], Ha = { class: "mwnf-standalone-tle__go" }, Ua = { type: "submit" }, Wa = {
1867
2195
  __name: "TimelineEntrance",
1868
2196
  props: {
1869
2197
  labels: {
@@ -1893,7 +2221,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1893
2221
  },
1894
2222
  emits: ["search"],
1895
2223
  setup(n, { emit: r }) {
1896
- let o = n, s = r, c = o.texts ? U().t : (e) => e, l = (e) => c(`${o.texts}.${e}`), u = t(() => o.labels ?? {
2224
+ let o = n, s = r, c = o.texts ? K().t : (e) => e, l = (e) => c(`${o.texts}.${e}`), u = t(() => o.labels ?? {
1897
2225
  selectCountry: l("tl.selectCountry"),
1898
2226
  allCountries: l("tl.allCountries"),
1899
2227
  startDate: l("tl.startDate"),
@@ -1905,7 +2233,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1905
2233
  startDate: l("tl.alertStartDate"),
1906
2234
  endDate: l("tl.alertEndDate"),
1907
2235
  period: l("tl.alertPeriod")
1908
- } : {})), f = v({
2236
+ } : {})), f = y({
1909
2237
  country: "none",
1910
2238
  start: "none",
1911
2239
  end: "none"
@@ -1917,46 +2245,46 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1917
2245
  let e = p();
1918
2246
  e ? window.alert(e) : s("search", { ...f });
1919
2247
  }
1920
- return (t, r) => (_(), i("form", {
2248
+ return (t, r) => (v(), i("form", {
1921
2249
  class: "mwnf-standalone-tle",
1922
- onSubmit: N(m, ["prevent"])
2250
+ onSubmit: L(m, ["prevent"])
1923
2251
  }, [
1924
- a("p", _i, [M(a("select", {
2252
+ a("p", ka, [I(a("select", {
1925
2253
  "onUpdate:modelValue": r[0] ||= (e) => f.country = e,
1926
2254
  "aria-label": u.value.selectCountry
1927
2255
  }, [
1928
- a("option", yi, S(u.value.selectCountry), 1),
1929
- a("option", bi, S(u.value.allCountries), 1),
1930
- (_(!0), i(e, null, b(n.countries, (e) => (_(), i("option", {
2256
+ a("option", ja, T(u.value.selectCountry), 1),
2257
+ a("option", Ma, T(u.value.allCountries), 1),
2258
+ (v(!0), i(e, null, x(n.countries, (e) => (v(), i("option", {
1931
2259
  key: e.value,
1932
2260
  value: e.value
1933
- }, S(e.label), 9, xi))), 128))
1934
- ], 8, vi), [[D, f.country]])]),
1935
- a("p", Si, [M(a("select", {
2261
+ }, T(e.label), 9, Na))), 128))
2262
+ ], 8, Aa), [[j, f.country]])]),
2263
+ a("p", Pa, [I(a("select", {
1936
2264
  "onUpdate:modelValue": r[1] ||= (e) => f.start = e,
1937
2265
  "aria-label": u.value.startDate
1938
- }, [a("option", wi, S(u.value.startDate), 1), (_(!0), i(e, null, b(n.starts, (e) => (_(), i("option", {
2266
+ }, [a("option", Ia, T(u.value.startDate), 1), (v(!0), i(e, null, x(n.starts, (e) => (v(), i("option", {
1939
2267
  key: e.value,
1940
2268
  value: e.value
1941
- }, S(e.label), 9, Ti))), 128))], 8, Ci), [[D, f.start]])]),
1942
- a("p", Ei, [M(a("select", {
2269
+ }, T(e.label), 9, La))), 128))], 8, Fa), [[j, f.start]])]),
2270
+ a("p", Ra, [I(a("select", {
1943
2271
  "onUpdate:modelValue": r[2] ||= (e) => f.end = e,
1944
2272
  "aria-label": u.value.endDate
1945
- }, [a("option", Oi, S(u.value.endDate), 1), (_(!0), i(e, null, b(n.ends, (e) => (_(), i("option", {
2273
+ }, [a("option", Ba, T(u.value.endDate), 1), (v(!0), i(e, null, x(n.ends, (e) => (v(), i("option", {
1946
2274
  key: e.value,
1947
2275
  value: e.value
1948
- }, S(e.label), 9, ki))), 128))], 8, Di), [[D, f.end]])]),
1949
- a("p", Ai, [a("button", ji, S(u.value.go), 1)])
2276
+ }, T(e.label), 9, Va))), 128))], 8, za), [[j, f.end]])]),
2277
+ a("p", Ha, [a("button", Ua, T(u.value.go), 1)])
1950
2278
  ], 32));
1951
2279
  }
1952
- }, Ni = {
2280
+ }, Ga = {
1953
2281
  key: 0,
1954
2282
  class: "mwnf-standalone-pages"
1955
- }, Pi = { class: "mwnf-standalone-pages__previous" }, Fi = ["aria-current", "onClick"], Ii = { class: "mwnf-standalone-pages__next" }, Li = {
2283
+ }, Ka = { class: "mwnf-standalone-pages__previous" }, qa = ["aria-current", "onClick"], Ja = { class: "mwnf-standalone-pages__next" }, Ya = {
1956
2284
  key: 1,
1957
2285
  class: "mwnf-standalone-pages",
1958
2286
  "aria-hidden": "true"
1959
- }, Ri = {
2287
+ }, Xa = {
1960
2288
  __name: "Pagination",
1961
2289
  props: {
1962
2290
  pageInfo: {
@@ -1983,47 +2311,47 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
1983
2311
  for (let r = t; r <= Math.min(u.value, t + e - 1); r++) n.push(r);
1984
2312
  return n;
1985
2313
  });
1986
- function p(e) {
2314
+ function f(e) {
1987
2315
  e >= 1 && e <= u.value && e !== l.value && c("navigate", e);
1988
2316
  }
1989
- return (t, r) => u.value > 1 ? (_(), i("nav", Ni, [
1990
- a("span", Pi, [l.value > 1 ? (_(), i("a", {
2317
+ return (t, r) => u.value > 1 ? (v(), i("nav", Ga, [
2318
+ a("span", Ka, [l.value > 1 ? (v(), i("a", {
1991
2319
  key: 0,
1992
2320
  href: "#",
1993
- onClick: r[0] ||= N((e) => p(l.value - 1), ["prevent"])
1994
- }, S(n.previousLabel), 1)) : (_(), i(e, { key: 1 }, [s(S(n.previousLabel), 1)], 64))]),
1995
- (_(!0), i(e, null, b(d.value, (e) => (_(), i("a", {
2321
+ onClick: r[0] ||= L((e) => f(l.value - 1), ["prevent"])
2322
+ }, T(n.previousLabel), 1)) : (v(), i(e, { key: 1 }, [s(T(n.previousLabel), 1)], 64))]),
2323
+ (v(!0), i(e, null, x(d.value, (e) => (v(), i("a", {
1996
2324
  key: e,
1997
2325
  href: "#",
1998
- class: f(["mwnf-standalone-pages__number", { "mwnf-standalone-pages__number--active": e === l.value }]),
2326
+ class: p(["mwnf-standalone-pages__number", { "mwnf-standalone-pages__number--active": e === l.value }]),
1999
2327
  "aria-current": e === l.value ? "page" : void 0,
2000
- onClick: N((t) => p(e), ["prevent"])
2001
- }, S(e), 11, Fi))), 128)),
2002
- a("span", Ii, [l.value < u.value ? (_(), i("a", {
2328
+ onClick: L((t) => f(e), ["prevent"])
2329
+ }, T(e), 11, qa))), 128)),
2330
+ a("span", Ja, [l.value < u.value ? (v(), i("a", {
2003
2331
  key: 0,
2004
2332
  href: "#",
2005
- onClick: r[1] ||= N((e) => p(l.value + 1), ["prevent"])
2006
- }, S(n.nextLabel), 1)) : (_(), i(e, { key: 1 }, [s(S(n.nextLabel), 1)], 64))])
2007
- ])) : (_(), i("div", Li));
2333
+ onClick: r[1] ||= L((e) => f(l.value + 1), ["prevent"])
2334
+ }, T(n.nextLabel), 1)) : (v(), i(e, { key: 1 }, [s(T(n.nextLabel), 1)], 64))])
2335
+ ])) : (v(), i("div", Ya));
2008
2336
  }
2009
- }, zi = { class: "mwnf-standalone-tlr" }, Bi = { class: "mwnf-standalone-tlr__band" }, Vi = { class: "mwnf-standalone-tlr__band-inner" }, Hi = { class: "mwnf-standalone-tlr__summary" }, Ui = { class: "mwnf-standalone-tlr__selects" }, Wi = ["for"], Gi = [
2337
+ }, Za = { class: "mwnf-standalone-tlr" }, Qa = { class: "mwnf-standalone-tlr__band" }, $a = { class: "mwnf-standalone-tlr__band-inner" }, eo = { class: "mwnf-standalone-tlr__summary" }, to = { class: "mwnf-standalone-tlr__selects" }, no = ["for"], ro = [
2010
2338
  "id",
2011
2339
  "value",
2012
2340
  "disabled",
2013
2341
  "onChange"
2014
- ], Ki = ["value"], qi = { class: "mwnf-standalone-item__back mwnf-standalone-tlr__back" }, Ji = {
2342
+ ], io = ["value"], ao = { class: "mwnf-standalone-item__back mwnf-standalone-tlr__back" }, oo = {
2015
2343
  key: 0,
2016
2344
  class: "mwnf-standalone-tlr__heads"
2017
- }, Yi = { class: "mwnf-standalone-tlr__body" }, Xi = { class: "mwnf-standalone-tlr__list" }, Zi = { class: "mwnf-standalone-tlr__date" }, Qi = { class: "mwnf-standalone-tlr__content" }, $i = ["innerHTML"], ea = {
2345
+ }, so = { class: "mwnf-standalone-tlr__body" }, co = { class: "mwnf-standalone-tlr__list" }, lo = { class: "mwnf-standalone-tlr__date" }, uo = { class: "mwnf-standalone-tlr__content" }, fo = ["innerHTML"], po = {
2018
2346
  key: 0,
2019
2347
  class: "mwnf-standalone-tlr__empty"
2020
- }, ta = { class: "mwnf-standalone-tlr__related" }, na = {
2348
+ }, mo = { class: "mwnf-standalone-tlr__related" }, ho = {
2021
2349
  key: 0,
2022
2350
  class: "mwnf-standalone-tlr__panel"
2023
- }, ra = { key: 0 }, ia = {
2351
+ }, go = { key: 0 }, _o = {
2024
2352
  key: 1,
2025
2353
  class: "mwnf-standalone-tlr__panel"
2026
- }, aa = { class: "mwnf-standalone-tlr__download" }, oa = {
2354
+ }, vo = { class: "mwnf-standalone-tlr__download" }, yo = {
2027
2355
  __name: "TimelineResults",
2028
2356
  props: {
2029
2357
  heading: {
@@ -2087,7 +2415,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2087
2415
  }
2088
2416
  function m(e) {
2089
2417
  let t = e.currentTarget.closest(".mwnf-standalone-tlr");
2090
- mt(ht({
2418
+ jt(Mt({
2091
2419
  title: u.download?.title ?? "",
2092
2420
  heading: u.download?.line ?? "",
2093
2421
  heads: u.heads,
@@ -2096,8 +2424,8 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2096
2424
  dir: t ? getComputedStyle(t).direction : ""
2097
2425
  }), u.download?.file ?? "timeline.doc");
2098
2426
  }
2099
- return (t, l) => (_(), i("div", zi, [
2100
- a("section", Bi, [a("div", Vi, [a("p", Hi, [a("b", null, S(o.heading), 1), s(" | " + S(o.summary), 1)]), a("div", Ui, [(_(!0), i(e, null, b(o.selects, (t) => (_(), i("p", { key: t.key }, [a("label", { for: `mwnf-tlr-${t.key}` }, S(t.label), 9, Wi), a("select", {
2427
+ return (t, l) => (v(), i("div", Za, [
2428
+ a("section", Qa, [a("div", $a, [a("p", eo, [a("b", null, T(o.heading), 1), s(" | " + T(o.summary), 1)]), a("div", to, [(v(!0), i(e, null, x(o.selects, (t) => (v(), i("p", { key: t.key }, [a("label", { for: `mwnf-tlr-${t.key}` }, T(t.label), 9, no), a("select", {
2101
2429
  id: `mwnf-tlr-${t.key}`,
2102
2430
  value: t.value,
2103
2431
  disabled: t.disabled || void 0,
@@ -2105,32 +2433,32 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2105
2433
  key: t.key,
2106
2434
  value: e.target.value
2107
2435
  })
2108
- }, [(_(!0), i(e, null, b(t.options, (e) => (_(), i("option", {
2436
+ }, [(v(!0), i(e, null, x(t.options, (e) => (v(), i("option", {
2109
2437
  key: e.value,
2110
2438
  value: e.value
2111
- }, S(e.label), 9, Ki))), 128))], 40, Gi)]))), 128))])])]),
2112
- a("p", qi, [(_(!0), i(e, null, b(o.back, (r) => (_(), i(e, { key: r.label }, [r.history ? (_(), i("button", {
2439
+ }, T(e.label), 9, io))), 128))], 40, ro)]))), 128))])])]),
2440
+ a("p", ao, [(v(!0), i(e, null, x(o.back, (r) => (v(), i(e, { key: r.label }, [r.history ? (v(), i("button", {
2113
2441
  key: 0,
2114
2442
  type: "button",
2115
2443
  class: "mwnf-standalone-item__back-link",
2116
2444
  onClick: l[0] ||= (e) => t.$router.back()
2117
- }, S(r.label), 1)) : (_(), n(G, {
2445
+ }, T(r.label), 1)) : (v(), n(J, {
2118
2446
  key: 1,
2119
2447
  class: "mwnf-standalone-item__back-link",
2120
2448
  to: r.to,
2121
2449
  href: r.href
2122
2450
  }, {
2123
- default: j(() => [s(S(r.label), 1)]),
2451
+ default: F(() => [s(T(r.label), 1)]),
2124
2452
  _: 2
2125
2453
  }, 1032, ["to", "href"]))], 64))), 128))]),
2126
- f.value ? (_(), i("div", Ji, [a("h3", null, S(o.heads.date), 1), a("h3", null, S(o.heads.countryDescription), 1)])) : r("", !0),
2127
- a("div", Yi, [a("div", Xi, [
2128
- (_(!0), i(e, null, b(o.rows, (e) => (_(), i("div", {
2454
+ f.value ? (v(), i("div", oo, [a("h3", null, T(o.heads.date), 1), a("h3", null, T(o.heads.countryDescription), 1)])) : r("", !0),
2455
+ a("div", so, [a("div", co, [
2456
+ (v(!0), i(e, null, x(o.rows, (e) => (v(), i("div", {
2129
2457
  key: e.id,
2130
2458
  class: "mwnf-standalone-tlr__row"
2131
- }, [a("div", Zi, [a("p", null, [a("span", null, S(e.date), 1)]), x(t.$slots, "media", { row: e })]), a("div", Qi, [a("p", null, [a("span", null, S(e.country), 1)]), a("div", { innerHTML: e.html }, null, 8, $i)])]))), 128)),
2132
- f.value ? r("", !0) : (_(), i("p", ea, S(o.empty), 1)),
2133
- o.pageInfo ? (_(), n(Ri, {
2459
+ }, [a("div", lo, [a("p", null, [a("span", null, T(e.date), 1)]), S(t.$slots, "media", { row: e })]), a("div", uo, [a("p", null, [a("span", null, T(e.country), 1)]), a("div", { innerHTML: e.html }, null, 8, fo)])]))), 128)),
2460
+ f.value ? r("", !0) : (v(), i("p", po, T(o.empty), 1)),
2461
+ o.pageInfo ? (v(), n(Xa, {
2134
2462
  key: 1,
2135
2463
  "page-info": o.pageInfo,
2136
2464
  "previous-label": o.previousLabel,
@@ -2141,16 +2469,16 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2141
2469
  "previous-label",
2142
2470
  "next-label"
2143
2471
  ])) : r("", !0)
2144
- ]), a("aside", ta, [o.related ? (_(), i("div", na, [
2145
- a("p", null, [a("strong", null, S(o.related.heading), 1)]),
2146
- (_(!0), i(e, null, b(o.related.links ?? [], (e) => (_(), i("p", { key: e.label }, [c(G, {
2472
+ ]), a("aside", mo, [o.related ? (v(), i("div", ho, [
2473
+ a("p", null, [a("strong", null, T(o.related.heading), 1)]),
2474
+ (v(!0), i(e, null, x(o.related.links ?? [], (e) => (v(), i("p", { key: e.label }, [c(J, {
2147
2475
  class: "mwnf-standalone-tlr__link",
2148
2476
  to: e.to,
2149
2477
  href: e.href,
2150
2478
  title: e.title,
2151
2479
  target: e.target
2152
2480
  }, {
2153
- default: j(() => [s(S(e.label), 1)]),
2481
+ default: F(() => [s(T(e.label), 1)]),
2154
2482
  _: 2
2155
2483
  }, 1032, [
2156
2484
  "to",
@@ -2158,30 +2486,30 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2158
2486
  "title",
2159
2487
  "target"
2160
2488
  ])]))), 128)),
2161
- o.related.gallery ? (_(), i("p", ra, [c(G, {
2489
+ o.related.gallery ? (v(), i("p", go, [c(J, {
2162
2490
  class: "mwnf-standalone-tlr__link",
2163
2491
  to: o.related.gallery.to,
2164
2492
  title: o.related.gallery.title
2165
2493
  }, {
2166
- default: j(() => [s(S(o.related.gallery.label), 1)]),
2494
+ default: F(() => [s(T(o.related.gallery.label), 1)]),
2167
2495
  _: 1
2168
2496
  }, 8, ["to", "title"])])) : r("", !0)
2169
- ])) : r("", !0), o.download ? (_(), i("div", ia, [
2170
- a("p", aa, S(o.download.heading), 1),
2497
+ ])) : r("", !0), o.download ? (v(), i("div", _o, [
2498
+ a("p", vo, T(o.download.heading), 1),
2171
2499
  a("p", null, [a("a", {
2172
2500
  href: "#",
2173
2501
  class: "mwnf-standalone-tlr__link",
2174
- onClick: N(p, ["prevent"])
2175
- }, S(o.download.pdf), 1)]),
2502
+ onClick: L(p, ["prevent"])
2503
+ }, T(o.download.pdf), 1)]),
2176
2504
  a("p", null, [a("a", {
2177
2505
  href: "#",
2178
2506
  class: "mwnf-standalone-tlr__link",
2179
- onClick: N(m, ["prevent"])
2180
- }, S(o.download.word), 1)])
2507
+ onClick: L(m, ["prevent"])
2508
+ }, T(o.download.word), 1)])
2181
2509
  ])) : r("", !0)])])
2182
2510
  ]));
2183
2511
  }
2184
- }, sa = ["dir"], ca = { class: "mwnf-standalone-window__box" }, la = { class: "mwnf-standalone-window__header" }, ua = { class: "mwnf-standalone-window__heading" }, da = ["aria-label"], fa = { class: "mwnf-standalone-window__article" }, $ = {
2512
+ }, bo = ["dir"], xo = { class: "mwnf-standalone-window__box" }, So = { class: "mwnf-standalone-window__header" }, Co = { class: "mwnf-standalone-window__heading" }, wo = ["aria-label"], To = { class: "mwnf-standalone-window__article" }, Eo = {
2185
2513
  __name: "Window",
2186
2514
  props: {
2187
2515
  heading: {
@@ -2201,27 +2529,27 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2201
2529
  function t() {
2202
2530
  window.opener ? (window.opener.focus(), window.close()) : window.history.back();
2203
2531
  }
2204
- return (n, r) => (_(), i("div", {
2532
+ return (n, r) => (v(), i("div", {
2205
2533
  class: "mwnf-standalone-window",
2206
2534
  dir: e.dir || void 0
2207
- }, [a("div", ca, [
2208
- a("header", la, [a("h1", ua, S(e.heading), 1), a("button", {
2535
+ }, [a("div", xo, [
2536
+ a("header", So, [a("h1", Co, T(e.heading), 1), a("button", {
2209
2537
  type: "button",
2210
2538
  class: "mwnf-standalone-window__close",
2211
2539
  "aria-label": e.closeLabel || void 0,
2212
2540
  onClick: t
2213
- }, "×", 8, da)]),
2214
- x(n.$slots, "before"),
2215
- a("article", fa, [x(n.$slots, "default")])
2216
- ])], 8, sa));
2541
+ }, "×", 8, wo)]),
2542
+ S(n.$slots, "before"),
2543
+ a("article", To, [S(n.$slots, "default")])
2544
+ ])], 8, bo));
2217
2545
  }
2218
- }, pa = {
2546
+ }, Do = {
2219
2547
  class: "mwnf-standalone-hcr__scale",
2220
2548
  "aria-hidden": "true"
2221
- }, ma = { class: "mwnf-standalone-hcr__years" }, ha = { class: "mwnf-standalone-hcr__body" }, ga = { class: "mwnf-standalone-hcr__left" }, _a = { class: "mwnf-standalone-hcr__title" }, va = ["value", "aria-label"], ya = ["value"], ba = { class: "mwnf-standalone-hcr__title" }, xa = ["value", "aria-label"], Sa = ["value"], Ca = {
2549
+ }, Oo = { class: "mwnf-standalone-hcr__years" }, ko = { class: "mwnf-standalone-hcr__body" }, Ao = { class: "mwnf-standalone-hcr__left" }, jo = { class: "mwnf-standalone-hcr__title" }, Mo = ["value", "aria-label"], No = ["value"], Po = { class: "mwnf-standalone-hcr__title" }, Fo = ["value", "aria-label"], Io = ["value"], Lo = {
2222
2550
  key: 0,
2223
2551
  class: "mwnf-standalone-hcr__image"
2224
- }, wa = ["src", "alt"], Ta = { key: 1 }, Ea = ["innerHTML"], Da = { key: 2 }, Oa = { class: "mwnf-standalone-hcr__main" }, ka = ["innerHTML"], Aa = {
2552
+ }, Ro = ["src", "alt"], zo = { key: 1 }, Bo = ["innerHTML"], Vo = { key: 2 }, Ho = { class: "mwnf-standalone-hcr__main" }, Uo = ["innerHTML"], Wo = {
2225
2553
  __name: "HistoricalCrossRef",
2226
2554
  props: {
2227
2555
  labels: {
@@ -2275,7 +2603,7 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2275
2603
  },
2276
2604
  emits: ["change"],
2277
2605
  setup(o, { emit: c }) {
2278
- let l = o, u = c, d = l.texts ? U().t : (e) => e, p = t(() => l.labels ?? {
2606
+ let l = o, u = c, d = l.texts ? K().t : (e) => e, f = t(() => l.labels ?? {
2279
2607
  heading: d(`${l.texts}.tl.title`),
2280
2608
  close: d("record.glossary.close"),
2281
2609
  country: d(`${l.texts}.hcr.country`),
@@ -2290,56 +2618,56 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2290
2618
  };
2291
2619
  });
2292
2620
  });
2293
- return (t, c) => (_(), n($, {
2621
+ return (t, c) => (v(), n(Eo, {
2294
2622
  class: "mwnf-standalone-hcr",
2295
- heading: p.value.heading,
2296
- "close-label": p.value.close,
2623
+ heading: f.value.heading,
2624
+ "close-label": f.value.close,
2297
2625
  dir: o.dir
2298
2626
  }, {
2299
- before: j(() => [a("section", pa, [a("div", ma, [(_(!0), i(e, null, b(m.value, (e) => (_(), i("span", {
2627
+ before: F(() => [a("section", Do, [a("div", Oo, [(v(!0), i(e, null, x(m.value, (e) => (v(), i("span", {
2300
2628
  key: e.value,
2301
- class: f({ "mwnf-standalone-hcr__year--active": e.active })
2302
- }, S(e.value), 3))), 128))]), c[2] ||= a("div", { class: "mwnf-standalone-hcr__lines" }, null, -1)])]),
2303
- default: j(() => [a("div", ha, [a("div", ga, [
2304
- a("p", _a, S(p.value.country), 1),
2629
+ class: p({ "mwnf-standalone-hcr__year--active": e.active })
2630
+ }, T(e.value), 3))), 128))]), c[2] ||= a("div", { class: "mwnf-standalone-hcr__lines" }, null, -1)])]),
2631
+ default: F(() => [a("div", ko, [a("div", Ao, [
2632
+ a("p", jo, T(f.value.country), 1),
2305
2633
  a("select", {
2306
2634
  value: o.country,
2307
- "aria-label": p.value.country,
2635
+ "aria-label": f.value.country,
2308
2636
  onChange: c[0] ||= (e) => u("change", {
2309
2637
  key: "country",
2310
2638
  value: e.target.value
2311
2639
  })
2312
- }, [(_(!0), i(e, null, b(o.countries, (e) => (_(), i("option", {
2640
+ }, [(v(!0), i(e, null, x(o.countries, (e) => (v(), i("option", {
2313
2641
  key: e.value,
2314
2642
  value: e.value
2315
- }, S(e.label), 9, ya))), 128))], 40, va),
2316
- a("p", ba, S(p.value.range), 1),
2643
+ }, T(e.label), 9, No))), 128))], 40, Mo),
2644
+ a("p", Po, T(f.value.range), 1),
2317
2645
  a("select", {
2318
2646
  value: String(o.range),
2319
- "aria-label": p.value.range,
2647
+ "aria-label": f.value.range,
2320
2648
  onChange: c[1] ||= (e) => u("change", {
2321
2649
  key: "start",
2322
2650
  value: e.target.value
2323
2651
  })
2324
- }, [(_(!0), i(e, null, b(o.ranges, (e) => (_(), i("option", {
2652
+ }, [(v(!0), i(e, null, x(o.ranges, (e) => (v(), i("option", {
2325
2653
  key: e.value,
2326
2654
  value: String(e.value)
2327
- }, S(e.label), 9, Sa))), 128))], 40, xa),
2328
- o.item ? (_(), i(e, { key: 0 }, [
2329
- o.item.image ? (_(), i("div", Ca, [a("img", {
2655
+ }, T(e.label), 9, Io))), 128))], 40, Fo),
2656
+ o.item ? (v(), i(e, { key: 0 }, [
2657
+ o.item.image ? (v(), i("div", Lo, [a("img", {
2330
2658
  src: o.item.image,
2331
2659
  alt: o.item.name
2332
- }, null, 8, wa)])) : r("", !0),
2333
- o.item.name ? (_(), i("p", Ta, [a("strong", { innerHTML: o.item.name }, null, 8, Ea)])) : r("", !0),
2334
- o.item.lines?.length ? (_(), i("p", Da, [(_(!0), i(e, null, b(o.item.lines, (t, n) => (_(), i(e, { key: n }, [s(S(t), 1), c[3] ||= a("br", null, null, -1)], 64))), 128))])) : r("", !0)
2660
+ }, null, 8, Ro)])) : r("", !0),
2661
+ o.item.name ? (v(), i("p", zo, [a("strong", { innerHTML: o.item.name }, null, 8, Bo)])) : r("", !0),
2662
+ o.item.lines?.length ? (v(), i("p", Vo, [(v(!0), i(e, null, x(o.item.lines, (t, n) => (v(), i(e, { key: n }, [s(T(t), 1), c[3] ||= a("br", null, null, -1)], 64))), 128))])) : r("", !0)
2335
2663
  ], 64)) : r("", !0)
2336
- ]), a("div", Oa, [a("h3", null, S(o.heading), 1), (_(!0), i(e, null, b(o.events, (e) => (_(), i("div", {
2664
+ ]), a("div", Ho, [a("h3", null, T(o.heading), 1), (v(!0), i(e, null, x(o.events, (e) => (v(), i("div", {
2337
2665
  key: e.id,
2338
2666
  class: "mwnf-standalone-hcr__event"
2339
- }, [a("p", null, [a("b", null, S(e.date), 1)]), a("div", {
2667
+ }, [a("p", null, [a("b", null, T(e.date), 1)]), a("div", {
2340
2668
  class: "mwnf-standalone-hcr__text",
2341
2669
  innerHTML: e.html
2342
- }, null, 8, ka)]))), 128))])])]),
2670
+ }, null, 8, Uo)]))), 128))])])]),
2343
2671
  _: 1
2344
2672
  }, 8, [
2345
2673
  "heading",
@@ -2347,10 +2675,10 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2347
2675
  "dir"
2348
2676
  ]));
2349
2677
  }
2350
- }, ja = ["disabled", "aria-label"], Ma = { class: "mwnf-standalone-slider__track" }, Na = ["src", "alt"], Pa = {
2678
+ }, Go = ["disabled", "aria-label"], Ko = { class: "mwnf-standalone-slider__track" }, qo = ["src", "alt"], Jo = {
2351
2679
  key: 0,
2352
2680
  class: "mwnf-standalone-slider__label"
2353
- }, Fa = ["disabled", "aria-label"], Ia = {
2681
+ }, Yo = ["disabled", "aria-label"], Xo = {
2354
2682
  __name: "Slider",
2355
2683
  props: {
2356
2684
  slides: {
@@ -2371,53 +2699,53 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2371
2699
  }
2372
2700
  },
2373
2701
  setup(n) {
2374
- let o = n, { t: s } = U(), l = K(), u = y(0), d = t(() => Math.max(0, o.slides.length - o.visible)), f = t(() => o.slides.slice(u.value, u.value + o.visible).map((e) => ({
2702
+ let o = n, { t: s } = K(), l = Oe(), u = b(0), d = t(() => Math.max(0, o.slides.length - o.visible)), f = t(() => o.slides.slice(u.value, u.value + o.visible).map((e) => ({
2375
2703
  ...e,
2376
2704
  image: l(e.image) ?? "",
2377
2705
  label: e.label ? s(e.label) : ""
2378
2706
  })));
2379
- return (t, o) => n.slides.length ? (_(), i("div", {
2707
+ return (t, o) => n.slides.length ? (v(), i("div", {
2380
2708
  key: 0,
2381
2709
  class: "mwnf-standalone-slider",
2382
- style: m({ "--mwnf-standalone-slider-count": n.visible })
2710
+ style: h({ "--mwnf-standalone-slider-count": n.visible })
2383
2711
  }, [
2384
2712
  a("button", {
2385
2713
  type: "button",
2386
2714
  class: "mwnf-standalone-slider__button",
2387
2715
  disabled: u.value === 0,
2388
- "aria-label": C(s)(n.previousLabel),
2716
+ "aria-label": E(s)(n.previousLabel),
2389
2717
  onClick: o[0] ||= (e) => u.value = Math.max(0, u.value - 1)
2390
- }, "‹", 8, ja),
2391
- a("ul", Ma, [(_(!0), i(e, null, b(f.value, (e) => (_(), i("li", {
2718
+ }, "‹", 8, Go),
2719
+ a("ul", Ko, [(v(!0), i(e, null, x(f.value, (e) => (v(), i("li", {
2392
2720
  key: e.image,
2393
2721
  class: "mwnf-standalone-slider__slide"
2394
- }, [c(G, {
2722
+ }, [c(J, {
2395
2723
  to: e.to,
2396
2724
  href: e.href
2397
2725
  }, {
2398
- default: j(() => [a("img", {
2726
+ default: F(() => [a("img", {
2399
2727
  src: e.image,
2400
2728
  alt: e.label
2401
- }, null, 8, Na), e.label ? (_(), i("span", Pa, S(e.label), 1)) : r("", !0)]),
2729
+ }, null, 8, qo), e.label ? (v(), i("span", Jo, T(e.label), 1)) : r("", !0)]),
2402
2730
  _: 2
2403
2731
  }, 1032, ["to", "href"])]))), 128))]),
2404
2732
  a("button", {
2405
2733
  type: "button",
2406
2734
  class: "mwnf-standalone-slider__button",
2407
2735
  disabled: u.value >= d.value,
2408
- "aria-label": C(s)(n.nextLabel),
2736
+ "aria-label": E(s)(n.nextLabel),
2409
2737
  onClick: o[1] ||= (e) => u.value = Math.min(d.value, u.value + 1)
2410
- }, "›", 8, Fa)
2738
+ }, "›", 8, Yo)
2411
2739
  ], 4)) : r("", !0);
2412
2740
  }
2413
- }, La = { class: "mwnf-standalone-glossary" }, Ra = { class: "mwnf-standalone-glossary__intro" }, za = { class: "mwnf-standalone-glossary__body" }, Ba = { class: "mwnf-standalone-glossary__field" }, Va = ["aria-expanded", "aria-label"], Ha = {
2741
+ }, Zo = { class: "mwnf-standalone-glossary" }, Qo = { class: "mwnf-standalone-glossary__intro" }, $o = { class: "mwnf-standalone-glossary__body" }, es = { class: "mwnf-standalone-glossary__field" }, ts = ["aria-expanded", "aria-label"], ns = {
2414
2742
  key: 0,
2415
2743
  class: "mwnf-standalone-glossary__suggestions",
2416
2744
  role: "listbox"
2417
- }, Ua = ["aria-selected", "onMousedown"], Wa = {
2745
+ }, rs = ["aria-selected", "onMousedown"], is = {
2418
2746
  class: "mwnf-standalone-glossary__result",
2419
2747
  "aria-live": "polite"
2420
- }, Ga = { class: "mwnf-standalone-glossary__label" }, Ka = ["innerHTML"], qa = { class: "mwnf-standalone-glossary__label mwnf-standalone-glossary__label--spellings" }, Ja = { class: "mwnf-standalone-glossary__note" }, Ya = { class: "mwnf-standalone-glossary__spellings" }, Xa = {
2748
+ }, as = { class: "mwnf-standalone-glossary__label" }, os = ["innerHTML"], ss = { class: "mwnf-standalone-glossary__label mwnf-standalone-glossary__label--spellings" }, cs = { class: "mwnf-standalone-glossary__note" }, ls = { class: "mwnf-standalone-glossary__spellings" }, us = {
2421
2749
  __name: "GlossarySpelling",
2422
2750
  props: {
2423
2751
  language: {
@@ -2438,69 +2766,69 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2438
2766
  }
2439
2767
  },
2440
2768
  setup(o) {
2441
- let s = o, c = re(), l = ee(s.entity), u = t(() => c.availableLanguages(s.entity).slice().sort());
2442
- g(async () => {
2443
- await L([s.entity]), await Promise.all(u.value.map((e) => c.loadTranslations(s.entity, e)));
2769
+ let s = o, c = ae(), l = ne(s.entity), u = t(() => c.availableLanguages(s.entity).slice().sort());
2770
+ _(async () => {
2771
+ await B([s.entity]), await Promise.all(u.value.map((e) => c.loadTranslations(s.entity, e)));
2444
2772
  });
2445
- let d = y(""), p = y(null), m = y(-1), h = (e, t) => c.translations(s.entity, t)[e.id] ?? {}, v = t(() => {
2446
- let e = I(d.value.trim());
2447
- if (!e || p.value) return [];
2773
+ let d = b(""), f = b(null), m = b(-1), h = (e, t) => c.translations(s.entity, t)[e.id] ?? {}, g = t(() => {
2774
+ let e = z(d.value.trim());
2775
+ if (!e || f.value) return [];
2448
2776
  let t = /* @__PURE__ */ new Map();
2449
2777
  for (let n of l.value ?? []) for (let r of h(n, s.language).spellings ?? []) {
2450
2778
  let i = String(r).trim();
2451
- i && I(i).startsWith(e) && t.set(i, n);
2779
+ i && z(i).startsWith(e) && t.set(i, n);
2452
2780
  }
2453
2781
  return [...t].map(([e, t]) => ({
2454
2782
  spelling: e,
2455
2783
  term: t
2456
- })).sort((e, t) => I(e.spelling) < I(t.spelling) ? -1 : +(I(e.spelling) > I(t.spelling)));
2457
- }), x = t(() => p.value ? R(h(p.value, s.language).definition ?? "") : ""), C = t(() => {
2458
- if (!p.value) return [];
2784
+ })).sort((e, t) => z(e.spelling) < z(t.spelling) ? -1 : +(z(e.spelling) > z(t.spelling)));
2785
+ }), y = t(() => f.value ? V(h(f.value, s.language).definition ?? "") : ""), S = t(() => {
2786
+ if (!f.value) return [];
2459
2787
  let e = /* @__PURE__ */ new Set(), t = [];
2460
- for (let n of u.value) for (let r of h(p.value, n).spellings ?? []) {
2461
- let n = I(String(r).trim());
2788
+ for (let n of u.value) for (let r of h(f.value, n).spellings ?? []) {
2789
+ let n = z(String(r).trim());
2462
2790
  n && !e.has(n) && (e.add(n), t.push(String(r).trim()));
2463
2791
  }
2464
2792
  return t;
2465
2793
  });
2466
- function w(e) {
2467
- p.value = e.term, d.value = e.spelling, m.value = -1;
2794
+ function C(e) {
2795
+ f.value = e.term, d.value = e.spelling, m.value = -1;
2468
2796
  }
2469
- function T() {
2470
- p.value = null, m.value = -1;
2797
+ function w() {
2798
+ f.value = null, m.value = -1;
2471
2799
  }
2472
2800
  function E(e) {
2473
- let t = v.value;
2474
- t.length && (e.key === "ArrowDown" ? (e.preventDefault(), m.value = (m.value + 1) % t.length) : e.key === "ArrowUp" ? (e.preventDefault(), m.value = (m.value - 1 + t.length) % t.length) : e.key === "Enter" && m.value >= 0 && (e.preventDefault(), w(t[m.value])));
2801
+ let t = g.value;
2802
+ t.length && (e.key === "ArrowDown" ? (e.preventDefault(), m.value = (m.value + 1) % t.length) : e.key === "ArrowUp" ? (e.preventDefault(), m.value = (m.value - 1 + t.length) % t.length) : e.key === "Enter" && m.value >= 0 && (e.preventDefault(), C(t[m.value])));
2475
2803
  }
2476
- return (t, s) => (_(), n($, {
2804
+ return (t, s) => (v(), n(Eo, {
2477
2805
  heading: o.labels.heading,
2478
2806
  "close-label": o.labels.close,
2479
2807
  dir: o.dir
2480
2808
  }, {
2481
- default: j(() => [a("div", La, [a("h2", Ra, S(o.labels.intro), 1), a("div", za, [a("div", Ba, [M(a("input", {
2809
+ default: F(() => [a("div", Zo, [a("h2", Qo, T(o.labels.intro), 1), a("div", $o, [a("div", es, [I(a("input", {
2482
2810
  "onUpdate:modelValue": s[0] ||= (e) => d.value = e,
2483
2811
  type: "text",
2484
2812
  class: "mwnf-standalone-glossary__input",
2485
2813
  role: "combobox",
2486
2814
  "aria-autocomplete": "list",
2487
- "aria-expanded": v.value.length > 0,
2815
+ "aria-expanded": g.value.length > 0,
2488
2816
  "aria-label": o.labels.heading,
2489
- onInput: T,
2817
+ onInput: w,
2490
2818
  onKeydown: E
2491
- }, null, 40, Va), [[O, d.value]]), v.value.length ? (_(), i("ul", Ha, [(_(!0), i(e, null, b(v.value, (e, t) => (_(), i("li", {
2819
+ }, null, 40, ts), [[M, d.value]]), g.value.length ? (v(), i("ul", ns, [(v(!0), i(e, null, x(g.value, (e, t) => (v(), i("li", {
2492
2820
  key: e.spelling,
2493
2821
  role: "option",
2494
2822
  "aria-selected": t === m.value,
2495
- class: f(["mwnf-standalone-glossary__suggestion", { "mwnf-standalone-glossary__suggestion--active": t === m.value }]),
2496
- onMousedown: N((t) => w(e), ["prevent"])
2497
- }, S(e.spelling), 43, Ua))), 128))])) : r("", !0)]), a("div", Wa, [p.value ? (_(), i(e, { key: 0 }, [x.value ? (_(), i(e, { key: 0 }, [a("h3", Ga, S(o.labels.definition), 1), a("div", {
2823
+ class: p(["mwnf-standalone-glossary__suggestion", { "mwnf-standalone-glossary__suggestion--active": t === m.value }]),
2824
+ onMousedown: L((t) => C(e), ["prevent"])
2825
+ }, T(e.spelling), 43, rs))), 128))])) : r("", !0)]), a("div", is, [f.value ? (v(), i(e, { key: 0 }, [y.value ? (v(), i(e, { key: 0 }, [a("h3", as, T(o.labels.definition), 1), a("div", {
2498
2826
  class: "mwnf-standalone-glossary__definition",
2499
- innerHTML: x.value
2500
- }, null, 8, Ka)], 64)) : r("", !0), C.value.length ? (_(), i(e, { key: 1 }, [
2501
- a("h3", qa, S(o.labels.spellings), 1),
2502
- a("p", Ja, S(o.labels.spellingsNote), 1),
2503
- a("ul", Ya, [(_(!0), i(e, null, b(C.value, (e) => (_(), i("li", { key: e }, S(e), 1))), 128))])
2827
+ innerHTML: y.value
2828
+ }, null, 8, os)], 64)) : r("", !0), S.value.length ? (v(), i(e, { key: 1 }, [
2829
+ a("h3", ss, T(o.labels.spellings), 1),
2830
+ a("p", cs, T(o.labels.spellingsNote), 1),
2831
+ a("ul", ls, [(v(!0), i(e, null, x(S.value, (e) => (v(), i("li", { key: e }, T(e), 1))), 128))])
2504
2832
  ], 64)) : r("", !0)], 64)) : r("", !0)])])])]),
2505
2833
  _: 1
2506
2834
  }, 8, [
@@ -2510,4 +2838,4 @@ var Pt = { class: "mwnf-standalone-item__top" }, Ft = { class: "mwnf-standalone-
2510
2838
  ]));
2511
2839
  }
2512
2840
  };
2513
- export { Ot as RelatedContent, Q as SEE_ALSO_LABELS, pe as StandaloneBanner, gi as StandaloneDatabaseForm, Xa as StandaloneGlossarySpelling, Aa as StandaloneHistoricalCrossRef, ot as StandaloneHome, Lt as StandaloneItemSheet, Ri as StandalonePagination, gr as StandalonePartnerList, pn as StandalonePartnerPage, Hr as StandalonePartnersEntrance, or as StandaloneRefine, Nn as StandaloneResultsGrid, er as StandaloneResultsList, Ve as StandaloneShell, Ia as StandaloneSlider, kr as StandaloneSponsorList, Ne as StandaloneSponsors, bn as StandaloneSubNav, _n as StandaloneTextPage, nt as StandaloneTileGrid, Mi as StandaloneTimelineEntrance, oa as StandaloneTimelineResults, $ as StandaloneWindow, Ye as TodayHighlight, me as byLanguage, q as dayOfYear, ve as highlightRecord, he as inventoryPictureForDay, ge as legacyHomeItemKey, Y as namesRecordsById, J as pickForDay, Nt as seeAlsoOf, At as trailTitle };
2841
+ export { Gt as RelatedContent, Kt as SEE_ALSO_LABELS, De as StandaloneBanner, Pi as StandaloneDatabaseForm, Oa as StandaloneGlobalDatabaseSearch, us as StandaloneGlossarySpelling, Wo as StandaloneHistoricalCrossRef, St as StandaloneHome, tn as StandaloneItemSheet, Xa as StandalonePagination, Pr as StandalonePartnerList, jn as StandalonePartnerPage, oi as StandalonePartnersEntrance, wr as StandaloneRefine, Zn as StandaloneResultsGrid, vr as StandaloneResultsList, rt as StandaloneShell, Xo as StandaloneSlider, qr as StandaloneSponsorList, Ye as StandaloneSponsors, Rn as StandaloneSubNav, Fn as StandaloneTextPage, vt as StandaloneTileGrid, Wa as StandaloneTimelineEntrance, yo as StandaloneTimelineResults, Eo as StandaloneWindow, dt as TodayHighlight, ke as byLanguage, Ae as dayOfYear, Pe as highlightRecord, Me as inventoryPictureForDay, je as pickForDay, Ne as recordWithPictureForDay, Zt as seeAlsoOf, Jt as trailTitle };