@museumwnf/viewer-layout 3.26.1 → 3.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/standalone.js +258 -149
- package/package.json +1 -1
package/dist/standalone.js
CHANGED
|
@@ -44,7 +44,7 @@ function Z(e = /* @__PURE__ */ new Date()) {
|
|
|
44
44
|
function Q(e, t = /* @__PURE__ */ new Date()) {
|
|
45
45
|
return e?.length ? e[Z(t) % e.length] : null;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function oe(e) {
|
|
48
48
|
let [t, ...n] = String(e ?? "").split("*")[0].trim().split(";");
|
|
49
49
|
return !t || n.length < 5 ? "" : [
|
|
50
50
|
"mwnf3",
|
|
@@ -54,22 +54,22 @@ function $(e) {
|
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region src/standalone/Sponsors.vue
|
|
57
|
-
var
|
|
57
|
+
var se = { class: "mwnf-standalone-sponsors" }, ce = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "mwnf-standalone-sponsors__text"
|
|
60
|
-
},
|
|
60
|
+
}, le = ["innerHTML"], ue = { key: 1 }, de = ["innerHTML"], fe = {
|
|
61
61
|
key: 1,
|
|
62
62
|
class: "mwnf-standalone-sponsors__title"
|
|
63
|
-
},
|
|
63
|
+
}, pe = {
|
|
64
64
|
key: 2,
|
|
65
65
|
class: "mwnf-standalone-sponsors__logos"
|
|
66
|
-
},
|
|
66
|
+
}, me = {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "mwnf-standalone-sponsors__note"
|
|
69
|
-
},
|
|
69
|
+
}, he = ["src", "alt"], ge = ["innerHTML"], _e = ["href"], ve = ["src", "alt"], ye = ["src", "alt"], be = {
|
|
70
70
|
key: 3,
|
|
71
71
|
class: "mwnf-standalone-sponsors__links"
|
|
72
|
-
},
|
|
72
|
+
}, xe = {
|
|
73
73
|
__name: "Sponsors",
|
|
74
74
|
props: { columns: {
|
|
75
75
|
type: Array,
|
|
@@ -94,30 +94,30 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
94
94
|
label: r(e.label)
|
|
95
95
|
}))
|
|
96
96
|
})));
|
|
97
|
-
return (e, t) => (C(), f("div",
|
|
97
|
+
return (e, t) => (C(), f("div", se, [(C(!0), f(c, null, T(a.value, (e) => (C(), f("div", {
|
|
98
98
|
key: e.key,
|
|
99
99
|
class: "mwnf-standalone-sponsors__column",
|
|
100
100
|
style: x(e.width ? { flexGrow: e.width } : void 0)
|
|
101
101
|
}, [
|
|
102
|
-
e.lead || e.text ? (C(), f("p",
|
|
102
|
+
e.lead || e.text ? (C(), f("p", ce, [
|
|
103
103
|
e.lead ? (C(), f("i", {
|
|
104
104
|
key: 0,
|
|
105
105
|
innerHTML: e.lead
|
|
106
|
-
}, null, 8,
|
|
107
|
-
e.lead && e.break ? (C(), f("br",
|
|
106
|
+
}, null, 8, le)) : d("", !0),
|
|
107
|
+
e.lead && e.break ? (C(), f("br", ue)) : e.lead && e.text ? (C(), f(c, { key: 2 }, [h(D(" "))], 64)) : d("", !0),
|
|
108
108
|
e.text ? (C(), f("span", {
|
|
109
109
|
key: 3,
|
|
110
110
|
innerHTML: e.text
|
|
111
|
-
}, null, 8,
|
|
111
|
+
}, null, 8, de)) : d("", !0)
|
|
112
112
|
])) : d("", !0),
|
|
113
|
-
e.title ? (C(), f("p",
|
|
114
|
-
e.logos.length ? (C(), f("ul",
|
|
113
|
+
e.title ? (C(), f("p", fe, D(e.title), 1)) : d("", !0),
|
|
114
|
+
e.logos.length ? (C(), f("ul", pe, [(C(!0), f(c, null, T(e.logos, (e) => (C(), f("li", { key: e.src }, [e.note ? (C(), f("details", me, [p("summary", null, [p("img", {
|
|
115
115
|
src: e.src,
|
|
116
116
|
alt: e.alt
|
|
117
|
-
}, null, 8,
|
|
117
|
+
}, null, 8, he)]), p("div", {
|
|
118
118
|
class: "mwnf-standalone-sponsors__note-body",
|
|
119
119
|
innerHTML: e.note
|
|
120
|
-
}, null, 8,
|
|
120
|
+
}, null, 8, ge)])) : e.href ? (C(), f("a", {
|
|
121
121
|
key: 1,
|
|
122
122
|
href: e.href,
|
|
123
123
|
target: "_blank",
|
|
@@ -125,12 +125,12 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
125
125
|
}, [p("img", {
|
|
126
126
|
src: e.src,
|
|
127
127
|
alt: e.alt
|
|
128
|
-
}, null, 8,
|
|
128
|
+
}, null, 8, ve)], 8, _e)) : (C(), f("img", {
|
|
129
129
|
key: 2,
|
|
130
130
|
src: e.src,
|
|
131
131
|
alt: e.alt
|
|
132
|
-
}, null, 8,
|
|
133
|
-
e.links.length ? (C(), f("ul",
|
|
132
|
+
}, null, 8, ye))]))), 128))])) : d("", !0),
|
|
133
|
+
e.links.length ? (C(), f("ul", be, [(C(!0), f(c, null, T(e.links, (e) => (C(), f("li", { key: e.label }, [g(n, {
|
|
134
134
|
to: e.to,
|
|
135
135
|
href: e.href,
|
|
136
136
|
external: !!e.external
|
|
@@ -144,16 +144,16 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
144
144
|
])]))), 128))])) : d("", !0)
|
|
145
145
|
], 4))), 128))]));
|
|
146
146
|
}
|
|
147
|
-
},
|
|
147
|
+
}, Se = {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: "mwnf-standalone mwnf-standalone--bare"
|
|
150
|
-
},
|
|
150
|
+
}, Ce = { class: "mwnf-banner mwnf-standalone-home-banner" }, we = ["src"], Te = { class: "mwnf-standalone-home-banner__text" }, Ee = {
|
|
151
151
|
key: 0,
|
|
152
152
|
class: "mwnf-standalone-home-banner__title"
|
|
153
|
-
},
|
|
153
|
+
}, De = {
|
|
154
154
|
key: 1,
|
|
155
155
|
class: "mwnf-standalone-home-banner__line"
|
|
156
|
-
},
|
|
156
|
+
}, Oe = ["src"], ke = {
|
|
157
157
|
__name: "Shell",
|
|
158
158
|
props: {
|
|
159
159
|
language: {
|
|
@@ -205,7 +205,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
205
205
|
S.value ? "mwnf-standalone--home" : "mwnf-standalone--inner",
|
|
206
206
|
w.value?.class ?? ""
|
|
207
207
|
]);
|
|
208
|
-
return (e, t) => h.value ? (C(), f("div",
|
|
208
|
+
return (e, t) => h.value ? (C(), f("div", Se, [E(e.$slots, "default")])) : (C(), u(s, {
|
|
209
209
|
key: 1,
|
|
210
210
|
class: y(V.value),
|
|
211
211
|
config: R.value,
|
|
@@ -233,12 +233,12 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
233
233
|
key: "0"
|
|
234
234
|
} : I.value ? {
|
|
235
235
|
name: "banner",
|
|
236
|
-
fn: P(() => [p("section",
|
|
236
|
+
fn: P(() => [p("section", Ce, [M.value ? (C(), f("img", {
|
|
237
237
|
key: 0,
|
|
238
238
|
class: "mwnf-banner__image",
|
|
239
239
|
src: M.value,
|
|
240
240
|
alt: ""
|
|
241
|
-
}, null, 8,
|
|
241
|
+
}, null, 8, we)) : d("", !0), p("div", Te, [I.value.title ? (C(), f("h2", Ee, [p("i", null, D(I.value.title), 1)])) : d("", !0), I.value.text ? (C(), f("p", De, [p("span", null, D(I.value.text), 1)])) : d("", !0)])])]),
|
|
242
242
|
key: "1"
|
|
243
243
|
} : void 0,
|
|
244
244
|
A.value ? {
|
|
@@ -247,7 +247,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
247
247
|
class: "mwnf-standalone__print-logo",
|
|
248
248
|
src: A.value,
|
|
249
249
|
alt: ""
|
|
250
|
-
}, null, 8,
|
|
250
|
+
}, null, 8, Oe)]),
|
|
251
251
|
key: "2"
|
|
252
252
|
} : void 0,
|
|
253
253
|
e.$slots.sponsors ? {
|
|
@@ -256,7 +256,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
256
256
|
key: "3"
|
|
257
257
|
} : L.value ? {
|
|
258
258
|
name: "sponsors",
|
|
259
|
-
fn: P(() => [g(
|
|
259
|
+
fn: P(() => [g(xe, { columns: L.value.columns }, null, 8, ["columns"])]),
|
|
260
260
|
key: "4"
|
|
261
261
|
} : void 0,
|
|
262
262
|
e.$slots.footer ? {
|
|
@@ -276,19 +276,19 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
276
276
|
"footer-text"
|
|
277
277
|
]));
|
|
278
278
|
}
|
|
279
|
-
},
|
|
279
|
+
}, Ae = {
|
|
280
280
|
key: 0,
|
|
281
281
|
class: "mwnf-standalone-highlight"
|
|
282
|
-
},
|
|
282
|
+
}, je = ["src", "alt"], Me = {
|
|
283
283
|
key: 1,
|
|
284
284
|
class: "mwnf-standalone-highlight__heading"
|
|
285
|
-
},
|
|
285
|
+
}, Ne = { class: "mwnf-standalone-highlight__lines" }, Pe = ["innerHTML"], Fe = {
|
|
286
286
|
key: 2,
|
|
287
287
|
class: "mwnf-standalone-highlight__place"
|
|
288
|
-
},
|
|
288
|
+
}, Ie = {
|
|
289
289
|
key: 3,
|
|
290
290
|
class: "mwnf-standalone-highlight__action"
|
|
291
|
-
},
|
|
291
|
+
}, Le = {
|
|
292
292
|
__name: "TodayHighlight",
|
|
293
293
|
props: {
|
|
294
294
|
record: {
|
|
@@ -342,7 +342,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
342
342
|
}
|
|
343
343
|
return n;
|
|
344
344
|
}), o = l(() => t.place ?? [i(t.text?.location), t.country].filter(Boolean).join(", ")), s = l(() => t.picture || (t.record?.images?.[0]?.url ?? "")), m = l(() => W(String(t.text?.name ?? t.record?.internal_name ?? "")));
|
|
345
|
-
return (t, i) => e.record ? (C(), f("div",
|
|
345
|
+
return (t, i) => e.record ? (C(), f("div", Ae, [
|
|
346
346
|
s.value ? (C(), u(n, {
|
|
347
347
|
key: 0,
|
|
348
348
|
class: "mwnf-standalone-highlight__media",
|
|
@@ -352,28 +352,28 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
352
352
|
class: "mwnf-standalone-highlight__image",
|
|
353
353
|
src: s.value,
|
|
354
354
|
alt: m.value
|
|
355
|
-
}, null, 8,
|
|
355
|
+
}, null, 8, je)]),
|
|
356
356
|
_: 1
|
|
357
357
|
}, 8, ["to"])) : d("", !0),
|
|
358
|
-
e.heading ? (C(), f("p",
|
|
359
|
-
p("p",
|
|
360
|
-
o.value ? (C(), f("p",
|
|
361
|
-
e.action ? (C(), f("p",
|
|
358
|
+
e.heading ? (C(), f("p", Me, [p("strong", null, D(O(r)(e.heading)), 1)])) : d("", !0),
|
|
359
|
+
p("p", Ne, [(C(!0), f(c, null, T(a.value, (e, t) => (C(), f(c, { key: t }, [p("span", { innerHTML: e }, null, 8, Pe), i[0] ||= p("br", null, null, -1)], 64))), 128))]),
|
|
360
|
+
o.value ? (C(), f("p", Fe, D(O(W)(o.value)), 1)) : d("", !0),
|
|
361
|
+
e.action ? (C(), f("p", Ie, [g(n, { to: e.to }, {
|
|
362
362
|
default: P(() => [h(D(O(r)(e.action)), 1)]),
|
|
363
363
|
_: 1
|
|
364
364
|
}, 8, ["to"])])) : d("", !0)
|
|
365
365
|
])) : d("", !0);
|
|
366
366
|
}
|
|
367
|
-
},
|
|
367
|
+
}, Re = {
|
|
368
368
|
key: 0,
|
|
369
369
|
class: "mwnf-standalone-tiles"
|
|
370
|
-
},
|
|
370
|
+
}, ze = {
|
|
371
371
|
key: 0,
|
|
372
372
|
class: "mwnf-standalone-tiles__caption"
|
|
373
|
-
},
|
|
373
|
+
}, Be = { class: "mwnf-standalone-tiles__grid" }, Ve = ["src", "alt"], He = {
|
|
374
374
|
key: 0,
|
|
375
375
|
class: "mwnf-standalone-tiles__label"
|
|
376
|
-
},
|
|
376
|
+
}, Ue = {
|
|
377
377
|
__name: "TileGrid",
|
|
378
378
|
props: {
|
|
379
379
|
caption: {
|
|
@@ -391,7 +391,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
391
391
|
image: i(e.image) ?? "",
|
|
392
392
|
label: e.text ? W(e.text) : e.label ? r(e.label) : ""
|
|
393
393
|
})));
|
|
394
|
-
return (t, i) => a.value.length ? (C(), f("section",
|
|
394
|
+
return (t, i) => a.value.length ? (C(), f("section", Re, [e.caption ? (C(), f("p", ze, D(O(r)(e.caption)), 1)) : d("", !0), p("ul", Be, [(C(!0), f(c, null, T(a.value, (e) => (C(), f("li", {
|
|
395
395
|
key: e.image,
|
|
396
396
|
class: "mwnf-standalone-tiles__tile"
|
|
397
397
|
}, [g(n, {
|
|
@@ -403,14 +403,14 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
403
403
|
class: "mwnf-standalone-tiles__image",
|
|
404
404
|
src: e.image,
|
|
405
405
|
alt: e.label
|
|
406
|
-
}, null, 8,
|
|
406
|
+
}, null, 8, Ve), e.label ? (C(), f("span", He, D(e.label), 1)) : d("", !0)]),
|
|
407
407
|
_: 2
|
|
408
408
|
}, 1032, ["to", "href"])]))), 128))])])) : d("", !0);
|
|
409
409
|
}
|
|
410
|
-
},
|
|
410
|
+
}, We = { class: "mwnf-standalone-home" }, Ge = {
|
|
411
411
|
key: 0,
|
|
412
412
|
class: "mwnf-standalone-home__links"
|
|
413
|
-
},
|
|
413
|
+
}, Ke = { key: 1 }, qe = {
|
|
414
414
|
__name: "Home",
|
|
415
415
|
props: { home: {
|
|
416
416
|
type: Object,
|
|
@@ -429,7 +429,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
429
429
|
let _ = L("items", "backward_compatibility"), v = l(() => {
|
|
430
430
|
let e = p.value?.list ?? [], t = e.indexOf(Q(e));
|
|
431
431
|
for (let n = 0; t >= 0 && n < e.length; n++) {
|
|
432
|
-
let r = _.value.get(
|
|
432
|
+
let r = _.value.get(oe(e[(t + n) % e.length]));
|
|
433
433
|
if (r) return r;
|
|
434
434
|
}
|
|
435
435
|
return null;
|
|
@@ -446,8 +446,8 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
446
446
|
let e = o.value.tiles?.items;
|
|
447
447
|
return (typeof e == "function" ? e() : e) ?? [];
|
|
448
448
|
});
|
|
449
|
-
return (e, t) => (C(), f("div",
|
|
450
|
-
s.value.length ? (C(), f("ul",
|
|
449
|
+
return (e, t) => (C(), f("div", We, [
|
|
450
|
+
s.value.length ? (C(), f("ul", Ge, [(C(!0), f(c, null, T(s.value, (e) => (C(), f("li", {
|
|
451
451
|
key: e.label,
|
|
452
452
|
class: y({ "mwnf-standalone-home__link--gap": e.gap })
|
|
453
453
|
}, [g(n, {
|
|
@@ -456,7 +456,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
456
456
|
external: !!e.external,
|
|
457
457
|
title: e.title
|
|
458
458
|
}, {
|
|
459
|
-
default: P(() => [e.prefix ? (C(), f(c, { key: 0 }, [h(D(`${e.prefix} `), 1)], 64)) : d("", !0), e.italic ? (C(), f("i",
|
|
459
|
+
default: P(() => [e.prefix ? (C(), f(c, { key: 0 }, [h(D(`${e.prefix} `), 1)], 64)) : d("", !0), e.italic ? (C(), f("i", Ke, D(e.label), 1)) : (C(), f(c, { key: 2 }, [h(D(e.label), 1)], 64))]),
|
|
460
460
|
_: 2
|
|
461
461
|
}, 1032, [
|
|
462
462
|
"to",
|
|
@@ -464,7 +464,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
464
464
|
"external",
|
|
465
465
|
"title"
|
|
466
466
|
])], 2))), 128))])) : d("", !0),
|
|
467
|
-
p.value ? (C(), u(
|
|
467
|
+
p.value ? (C(), u(Le, {
|
|
468
468
|
key: 1,
|
|
469
469
|
record: v.value,
|
|
470
470
|
text: b.value,
|
|
@@ -486,7 +486,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
486
486
|
"also-known-as",
|
|
487
487
|
"action"
|
|
488
488
|
])) : d("", !0),
|
|
489
|
-
o.value.tiles ? (C(), u(
|
|
489
|
+
o.value.tiles ? (C(), u(Ue, {
|
|
490
490
|
key: 2,
|
|
491
491
|
caption: o.value.tiles.caption ?? "",
|
|
492
492
|
items: A.value
|
|
@@ -494,10 +494,97 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
494
494
|
E(e.$slots, "default")
|
|
495
495
|
]));
|
|
496
496
|
}
|
|
497
|
-
},
|
|
497
|
+
}, Je = "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; }", Ye = ".mwnf-sheet__label, .mwnf-sheet-section__heading, .mwnf-credits__heading", Xe = ".mwnf-sheet__value, .mwnf-sheet-section__body, .mwnf-credits__citation, .mwnf-credits__list > dt, .mwnf-credits__number, .mwnf-sheet__short .mwnf-sheet__block", Ze = "button, img, svg, picture, video, audio, iframe, script, style, [role=\"tooltip\"], [aria-hidden=\"true\"]";
|
|
498
|
+
function $(e) {
|
|
499
|
+
return String(e ?? "").replace(/[&<>"]/g, (e) => ({
|
|
500
|
+
"&": "&",
|
|
501
|
+
"<": "<",
|
|
502
|
+
">": ">",
|
|
503
|
+
"\"": """
|
|
504
|
+
})[e]);
|
|
505
|
+
}
|
|
506
|
+
var Qe = /* @__PURE__ */ new Set([
|
|
507
|
+
"I",
|
|
508
|
+
"EM",
|
|
509
|
+
"B",
|
|
510
|
+
"STRONG",
|
|
511
|
+
"U",
|
|
512
|
+
"SUP",
|
|
513
|
+
"SUB"
|
|
514
|
+
]), $e = /* @__PURE__ */ new Set([
|
|
515
|
+
"P",
|
|
516
|
+
"DIV",
|
|
517
|
+
"LI",
|
|
518
|
+
"UL",
|
|
519
|
+
"OL",
|
|
520
|
+
"SECTION"
|
|
521
|
+
]);
|
|
522
|
+
function et(e) {
|
|
523
|
+
let t = [[]], n = () => t[t.length - 1], r = () => {
|
|
524
|
+
n().length && t.push([]);
|
|
525
|
+
}, i = (e) => {
|
|
526
|
+
if (e.nodeType === Node.TEXT_NODE) {
|
|
527
|
+
n().push($(e.textContent));
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
if (e.nodeType !== Node.ELEMENT_NODE || e.matches(Ze)) return;
|
|
531
|
+
if (e.tagName === "BR") {
|
|
532
|
+
n().push("<br/>");
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
let t = $e.has(e.tagName), a = Qe.has(e.tagName) ? e.tagName.toLowerCase() : "";
|
|
536
|
+
t && r(), a && n().push(`<${a}>`);
|
|
537
|
+
for (let t of e.childNodes) i(t);
|
|
538
|
+
a && n().push(`</${a}>`), t && r();
|
|
539
|
+
};
|
|
540
|
+
for (let t of e.childNodes) i(t);
|
|
541
|
+
return t.map((e) => e.join("").replace(/\s+/g, " ").trim()).filter(Boolean).join("<br/>\n<br/>");
|
|
542
|
+
}
|
|
543
|
+
function tt(e, { title: t = "", dir: n = "" } = {}) {
|
|
544
|
+
let r = (t) => {
|
|
545
|
+
for (let n = t; n && n !== e.parentElement; n = n.parentElement) if (n.hidden || getComputedStyle(n).display === "none") return !1;
|
|
546
|
+
return !0;
|
|
547
|
+
}, i = [];
|
|
548
|
+
for (let t of e.querySelectorAll(`${Ye}, ${Xe}`)) {
|
|
549
|
+
if (t.closest(".mwnf-standalone-item__left, .mwnf-standalone-related") || !r(t)) continue;
|
|
550
|
+
if (t.matches(".mwnf-credits__list > dt")) {
|
|
551
|
+
let e = t.nextElementSibling;
|
|
552
|
+
i.push(`<p>${$(t.textContent.trim())} ${e ? et(e) : ""}</p>`);
|
|
553
|
+
continue;
|
|
554
|
+
}
|
|
555
|
+
let e = et(t);
|
|
556
|
+
e && i.push(t.matches(Ye) ? `<h3>${e}</h3>` : `<p>${e}</p>`);
|
|
557
|
+
}
|
|
558
|
+
let a = n === "rtl" ? " style=\"direction: rtl;\"" : "";
|
|
559
|
+
return `<html>
|
|
560
|
+
<title>${$(t)}</title>
|
|
561
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
562
|
+
<head>
|
|
563
|
+
<style>
|
|
564
|
+
${Je}
|
|
565
|
+
</style>
|
|
566
|
+
</head>
|
|
567
|
+
<body>
|
|
568
|
+
<div class="content">
|
|
569
|
+
<div class="item_description">
|
|
570
|
+
<table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"${a}>
|
|
571
|
+
${i.join("\n")}
|
|
572
|
+
</td></tr></table>
|
|
573
|
+
</div>
|
|
574
|
+
</div>
|
|
575
|
+
</body>
|
|
576
|
+
</html>`;
|
|
577
|
+
}
|
|
578
|
+
function nt(e, t) {
|
|
579
|
+
let n = URL.createObjectURL(new Blob(["", e], { type: "application/msword" })), r = document.createElement("a");
|
|
580
|
+
r.href = n, r.download = t, document.body.appendChild(r), r.click(), r.remove(), setTimeout(() => URL.revokeObjectURL(n), 0);
|
|
581
|
+
}
|
|
582
|
+
//#endregion
|
|
583
|
+
//#region src/standalone/RelatedContent.vue
|
|
584
|
+
var rt = { class: "mwnf-standalone-related" }, it = { class: "mwnf-standalone-related__heading" }, at = { class: "mwnf-standalone-related__group-heading" }, ot = { class: "mwnf-standalone-related__thumbs" }, st = ["src", "alt"], ct = ["innerHTML"], lt = {
|
|
498
585
|
key: 0,
|
|
499
586
|
class: "mwnf-standalone-related__download"
|
|
500
|
-
},
|
|
587
|
+
}, ut = { class: "mwnf-standalone-related__download-heading" }, dt = {
|
|
501
588
|
__name: "RelatedContent",
|
|
502
589
|
props: {
|
|
503
590
|
heading: {
|
|
@@ -515,6 +602,10 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
515
602
|
download: {
|
|
516
603
|
type: Object,
|
|
517
604
|
default: null
|
|
605
|
+
},
|
|
606
|
+
wordFile: {
|
|
607
|
+
type: String,
|
|
608
|
+
default: "sheet.doc"
|
|
518
609
|
}
|
|
519
610
|
},
|
|
520
611
|
setup(e) {
|
|
@@ -525,12 +616,19 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
525
616
|
function a() {
|
|
526
617
|
window.print();
|
|
527
618
|
}
|
|
528
|
-
|
|
529
|
-
|
|
619
|
+
function o(e) {
|
|
620
|
+
let n = e.currentTarget.closest(".mwnf-standalone-item");
|
|
621
|
+
n && nt(tt(n.querySelector(".mwnf-record__main") ?? n, {
|
|
622
|
+
title: t.download?.title ? r(t.download.title) : "",
|
|
623
|
+
dir: getComputedStyle(n).direction
|
|
624
|
+
}), t.wordFile);
|
|
625
|
+
}
|
|
626
|
+
return (t, s) => (C(), f("aside", rt, [
|
|
627
|
+
p("p", it, [p("strong", null, D(O(r)(e.heading)), 1)]),
|
|
530
628
|
(C(!0), f(c, null, T(i.value, (e) => (C(), f("div", {
|
|
531
629
|
key: e.heading,
|
|
532
630
|
class: "mwnf-standalone-related__group"
|
|
533
|
-
}, [p("p",
|
|
631
|
+
}, [p("p", at, D(e.heading), 1), p("ul", ot, [(C(!0), f(c, null, T(e.rows, (e) => (C(), f("li", { key: e.id }, [g(n, {
|
|
534
632
|
to: e.to,
|
|
535
633
|
title: e.imageAlt
|
|
536
634
|
}, {
|
|
@@ -538,24 +636,33 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
538
636
|
key: 0,
|
|
539
637
|
src: e.image,
|
|
540
638
|
alt: e.imageAlt
|
|
541
|
-
}, null, 8,
|
|
639
|
+
}, null, 8, st)) : (C(), f("span", {
|
|
542
640
|
key: 1,
|
|
543
641
|
innerHTML: e.name
|
|
544
|
-
}, null, 8,
|
|
642
|
+
}, null, 8, ct))]),
|
|
545
643
|
_: 2
|
|
546
644
|
}, 1032, ["to", "title"])]))), 128))])]))), 128)),
|
|
547
645
|
E(t.$slots, "default"),
|
|
548
|
-
e.download ? (C(), f("div",
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
646
|
+
e.download ? (C(), f("div", lt, [
|
|
647
|
+
p("p", ut, D(O(r)(e.download.heading)), 1),
|
|
648
|
+
p("button", {
|
|
649
|
+
type: "button",
|
|
650
|
+
class: "mwnf-standalone-related__print",
|
|
651
|
+
onClick: a
|
|
652
|
+
}, D(O(r)(e.download.print)), 1),
|
|
653
|
+
e.download.word ? (C(), f("button", {
|
|
654
|
+
key: 0,
|
|
655
|
+
type: "button",
|
|
656
|
+
class: "mwnf-standalone-related__print mwnf-standalone-related__word",
|
|
657
|
+
onClick: o
|
|
658
|
+
}, D(O(r)(e.download.word)), 1)) : d("", !0)
|
|
659
|
+
])) : d("", !0)
|
|
553
660
|
]));
|
|
554
661
|
}
|
|
555
|
-
},
|
|
662
|
+
}, ft = { class: "mwnf-standalone-item__top" }, pt = { class: "mwnf-standalone-item__left" }, mt = {
|
|
556
663
|
key: 0,
|
|
557
664
|
class: "mwnf-standalone-item__back"
|
|
558
|
-
},
|
|
665
|
+
}, ht = {
|
|
559
666
|
__name: "ItemSheet",
|
|
560
667
|
props: {
|
|
561
668
|
spec: {
|
|
@@ -616,7 +723,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
616
723
|
id: e.id,
|
|
617
724
|
class: "mwnf-standalone-item"
|
|
618
725
|
}, m({
|
|
619
|
-
header: P(({ languages: e, language: n, select: r }) => [p("div",
|
|
726
|
+
header: P(({ languages: e, language: n, select: r }) => [p("div", ft, [g(t, {
|
|
620
727
|
languages: e,
|
|
621
728
|
language: n,
|
|
622
729
|
onSelect: r
|
|
@@ -625,7 +732,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
625
732
|
"language",
|
|
626
733
|
"onSelect"
|
|
627
734
|
])])]),
|
|
628
|
-
"before-sheet": P((e) => [p("div",
|
|
735
|
+
"before-sheet": P((e) => [p("div", pt, [w.value.length ? (C(), f("p", mt, [(C(!0), f(c, null, T(w.value, (e) => (C(), f(c, { key: e.label }, [e.history ? (C(), f("button", {
|
|
629
736
|
key: 0,
|
|
630
737
|
type: "button",
|
|
631
738
|
class: "mwnf-standalone-item__back-link",
|
|
@@ -642,11 +749,12 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
642
749
|
images: x(e),
|
|
643
750
|
"thumbs-from": 1
|
|
644
751
|
}, null, 8, ["images"])]), E(i.$slots, "before-sheet", b(_(e)))]),
|
|
645
|
-
related: P((t) => [g(
|
|
752
|
+
related: P((t) => [g(dt, {
|
|
646
753
|
heading: e.related.heading ?? "record.related.title",
|
|
647
754
|
records: t.records,
|
|
648
755
|
groups: e.related.groups ?? [],
|
|
649
|
-
download: e.related.download ?? null
|
|
756
|
+
download: e.related.download ?? null,
|
|
757
|
+
"word-file": e.related.download?.wordFile?.(t.record, t.language) ?? "sheet.doc"
|
|
650
758
|
}, {
|
|
651
759
|
default: P(() => [E(i.$slots, "sidebar", b(_(t)))]),
|
|
652
760
|
_: 2
|
|
@@ -654,7 +762,8 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
654
762
|
"heading",
|
|
655
763
|
"records",
|
|
656
764
|
"groups",
|
|
657
|
-
"download"
|
|
765
|
+
"download",
|
|
766
|
+
"word-file"
|
|
658
767
|
])]),
|
|
659
768
|
source: P((e) => [E(i.$slots, "source", b(_(e)))]),
|
|
660
769
|
_: 2
|
|
@@ -663,37 +772,37 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
663
772
|
fn: P((t) => [E(i.$slots, e, b(_(t)))])
|
|
664
773
|
}))]), 1032, ["spec", "id"]));
|
|
665
774
|
}
|
|
666
|
-
},
|
|
775
|
+
}, gt = {
|
|
667
776
|
key: 0,
|
|
668
777
|
class: "mwnf-standalone-item__top"
|
|
669
|
-
},
|
|
778
|
+
}, _t = {
|
|
670
779
|
key: 1,
|
|
671
780
|
hidden: ""
|
|
672
|
-
},
|
|
781
|
+
}, vt = {
|
|
673
782
|
key: 0,
|
|
674
783
|
class: "mwnf-standalone-item__back mwnf-standalone-partner__back"
|
|
675
|
-
},
|
|
784
|
+
}, yt = { class: "mwnf-standalone-partner__heading" }, bt = ["dir", "innerHTML"], xt = {
|
|
676
785
|
key: 0,
|
|
677
786
|
class: "mwnf-standalone-partner__location"
|
|
678
|
-
},
|
|
787
|
+
}, St = { class: "mwnf-standalone-partner__bar" }, Ct = { class: "mwnf-standalone-partner__bar-start" }, wt = ["aria-label", "onKeydown"], Tt = [
|
|
679
788
|
"id",
|
|
680
789
|
"aria-selected",
|
|
681
790
|
"aria-controls",
|
|
682
791
|
"tabindex",
|
|
683
792
|
"onClick"
|
|
684
|
-
],
|
|
793
|
+
], Et = {
|
|
685
794
|
key: 0,
|
|
686
795
|
class: "mwnf-standalone-partner__divider",
|
|
687
796
|
"aria-hidden": "true"
|
|
688
|
-
},
|
|
797
|
+
}, Dt = { key: 0 }, Ot = ["href"], kt = { class: "mwnf-standalone-partner__bar-end" }, At = { class: "mwnf-standalone-partner__body" }, jt = { class: "mwnf-standalone-partner__pictures" }, Mt = { class: "mwnf-standalone-partner__panels" }, Nt = [
|
|
689
798
|
"id",
|
|
690
799
|
"aria-labelledby",
|
|
691
800
|
"dir",
|
|
692
801
|
"innerHTML"
|
|
693
|
-
],
|
|
802
|
+
], Pt = ["id", "aria-labelledby"], Ft = ["innerHTML"], It = ["href"], Lt = { key: 0 }, Rt = ["href"], zt = ["href"], Bt = ["id", "aria-labelledby"], Vt = ["src"], Ht = {
|
|
694
803
|
key: 0,
|
|
695
804
|
class: "mwnf-standalone-partner__map"
|
|
696
|
-
},
|
|
805
|
+
}, Ut = { class: "mwnf-standalone-partner__map-heading" }, Wt = {
|
|
697
806
|
__name: "PartnerPage",
|
|
698
807
|
props: {
|
|
699
808
|
id: {
|
|
@@ -786,7 +895,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
786
895
|
id: e.id,
|
|
787
896
|
class: "mwnf-standalone-partner"
|
|
788
897
|
}, {
|
|
789
|
-
header: P(({ record: n, languages: r, language: i, select: a }) => [e.bands(n) ? (C(), f("div",
|
|
898
|
+
header: P(({ record: n, languages: r, language: i, select: a }) => [e.bands(n) ? (C(), f("div", gt, [g(t, {
|
|
790
899
|
languages: r,
|
|
791
900
|
language: i,
|
|
792
901
|
onSelect: a
|
|
@@ -794,9 +903,9 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
794
903
|
"languages",
|
|
795
904
|
"language",
|
|
796
905
|
"onSelect"
|
|
797
|
-
])])) : (C(), f("div",
|
|
906
|
+
])])) : (C(), f("div", _t))]),
|
|
798
907
|
"before-sheet": P(({ record: t, text: i, dir: o }) => [(C(!0), f(c, null, T([a.view(t, i)], (a) => (C(), f(c, { key: t.id }, [
|
|
799
|
-
E(t).length ? (C(), f("p",
|
|
908
|
+
E(t).length ? (C(), f("p", vt, [(C(!0), f(c, null, T(E(t), (e) => (C(), f(c, { key: e.label }, [e.history ? (C(), f("button", {
|
|
800
909
|
key: 0,
|
|
801
910
|
type: "button",
|
|
802
911
|
class: "mwnf-standalone-item__back-link",
|
|
@@ -810,12 +919,12 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
810
919
|
default: P(() => [h(D(e.label), 1)]),
|
|
811
920
|
_: 2
|
|
812
921
|
}, 1032, ["to", "href"]))], 64))), 128))])) : d("", !0),
|
|
813
|
-
p("div",
|
|
922
|
+
p("div", yt, [p("h3", {
|
|
814
923
|
class: "mwnf-standalone-partner__name",
|
|
815
924
|
dir: o || void 0,
|
|
816
925
|
innerHTML: a.name
|
|
817
|
-
}, null, 8,
|
|
818
|
-
p("div",
|
|
926
|
+
}, null, 8, bt), a.location ? (C(), f("h4", xt, [p("i", null, D(a.location), 1)])) : d("", !0)]),
|
|
927
|
+
p("div", St, [p("div", Ct, [p("ul", {
|
|
819
928
|
role: "tablist",
|
|
820
929
|
class: "mwnf-standalone-partner__tabs",
|
|
821
930
|
"aria-label": a.plainName,
|
|
@@ -832,12 +941,12 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
832
941
|
"aria-controls": `${O(_)}-panel-${e}`,
|
|
833
942
|
tabindex: I.value === e ? 0 : -1,
|
|
834
943
|
onClick: (t) => I.value = e
|
|
835
|
-
}, "\xA0" + D(S(e)), 11,
|
|
944
|
+
}, "\xA0" + D(S(e)), 11, Tt), n < j(a, t, i).length - 1 || a.contact.website ? (C(), f("span", Et, "\xA0|")) : d("", !0)]))), 128)), a.contact.website ? (C(), f("li", Dt, [p("a", {
|
|
836
945
|
class: "mwnf-standalone-partner__homepage",
|
|
837
946
|
href: a.contact.website.url,
|
|
838
947
|
target: "_blank",
|
|
839
948
|
rel: "noopener"
|
|
840
|
-
}, "\xA0" + D(S("homepage")), 9,
|
|
949
|
+
}, "\xA0" + D(S("homepage")), 9, Ot)])) : d("", !0)], 40, wt)]), p("div", kt, [e.items(t) ? (C(), u(n, {
|
|
841
950
|
key: 0,
|
|
842
951
|
class: "mwnf-standalone-partner__items",
|
|
843
952
|
to: e.items(t).to
|
|
@@ -845,10 +954,10 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
845
954
|
default: P(() => [h(D(O(s)(e.items(t).label)), 1)]),
|
|
846
955
|
_: 2
|
|
847
956
|
}, 1032, ["to"])) : d("", !0)])]),
|
|
848
|
-
p("div",
|
|
957
|
+
p("div", At, [p("div", jt, [a.pictures.length ? (C(), u(r, {
|
|
849
958
|
key: 0,
|
|
850
959
|
images: R(a)
|
|
851
|
-
}, null, 8, ["images"])) : d("", !0)]), p("div",
|
|
960
|
+
}, null, 8, ["images"])) : d("", !0)]), p("div", Mt, [
|
|
852
961
|
F(p("div", {
|
|
853
962
|
id: `${O(_)}-panel-about`,
|
|
854
963
|
class: "mwnf-standalone-partner__panel mwnf-standalone-partner__about",
|
|
@@ -856,7 +965,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
856
965
|
"aria-labelledby": `${O(_)}-tab-about`,
|
|
857
966
|
dir: o || void 0,
|
|
858
967
|
innerHTML: a.description
|
|
859
|
-
}, null, 8,
|
|
968
|
+
}, null, 8, Nt), [[M, I.value === "about"]]),
|
|
860
969
|
a.hasContact ? F((C(), f("div", {
|
|
861
970
|
key: 0,
|
|
862
971
|
id: `${O(_)}-panel-contact`,
|
|
@@ -869,21 +978,21 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
869
978
|
a.contact.address ? (C(), f(c, { key: 0 }, [p("span", {
|
|
870
979
|
class: "mwnf-standalone-partner__address",
|
|
871
980
|
innerHTML: a.contact.address
|
|
872
|
-
}, null, 8,
|
|
981
|
+
}, null, 8, Ft), m[0] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
873
982
|
a.contact.phone ? (C(), f(c, { key: 1 }, [h(D(S("phone")) + " " + D(a.contact.phone), 1), m[1] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
874
983
|
a.contact.fax ? (C(), f(c, { key: 2 }, [h(D(S("fax")) + " " + D(a.contact.fax), 1), m[2] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
875
|
-
a.contact.email ? (C(), f(c, { key: 3 }, [p("a", { href: `mailto:${a.contact.email}` }, D(a.contact.email), 9,
|
|
876
|
-
]), z(a).length ? (C(), f("p",
|
|
984
|
+
a.contact.email ? (C(), f(c, { key: 3 }, [p("a", { href: `mailto:${a.contact.email}` }, D(a.contact.email), 9, It), m[3] ||= p("br", null, null, -1)], 64)) : d("", !0)
|
|
985
|
+
]), z(a).length ? (C(), f("p", Lt, [(C(!0), f(c, null, T(z(a), (e, t) => (C(), f(c, { key: e.url }, [t ? (C(), f(c, { key: 0 }, [h("\xA0|\xA0")], 64)) : d("", !0), p("a", {
|
|
877
986
|
href: e.url,
|
|
878
987
|
target: "_blank",
|
|
879
988
|
rel: "noopener"
|
|
880
|
-
}, D(e.label), 9,
|
|
989
|
+
}, D(e.label), 9, Rt)], 64))), 128))])) : d("", !0)], 64)) : d("", !0), (C(!0), f(c, null, T(a.persons, (e, t) => (C(), f("p", { key: t }, [
|
|
881
990
|
e.title ? (C(), f(c, { key: 0 }, [p("strong", null, D(e.title), 1), m[5] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
882
991
|
e.name ? (C(), f(c, { key: 1 }, [h(D(e.name), 1), m[6] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
883
992
|
e.phone ? (C(), f(c, { key: 2 }, [h(D(S("phone")) + " " + D(e.phone), 1), m[7] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
884
993
|
e.fax ? (C(), f(c, { key: 3 }, [h(D(S("fax")) + " " + D(e.fax), 1), m[8] ||= p("br", null, null, -1)], 64)) : d("", !0),
|
|
885
|
-
e.email ? (C(), f(c, { key: 4 }, [p("a", { href: `mailto:${e.email}` }, D(e.email), 9,
|
|
886
|
-
]))), 128))], 8,
|
|
994
|
+
e.email ? (C(), f(c, { key: 4 }, [p("a", { href: `mailto:${e.email}` }, D(e.email), 9, zt), m[9] ||= p("br", null, null, -1)], 64)) : d("", !0)
|
|
995
|
+
]))), 128))], 8, Pt)), [[M, I.value === "contact"]]) : d("", !0),
|
|
887
996
|
a.logos.length ? F((C(), f("div", {
|
|
888
997
|
key: 1,
|
|
889
998
|
id: `${O(_)}-panel-logo`,
|
|
@@ -894,10 +1003,10 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
894
1003
|
key: e.url,
|
|
895
1004
|
src: e.url,
|
|
896
1005
|
alt: ""
|
|
897
|
-
}, null, 8,
|
|
1006
|
+
}, null, 8, Vt))), 128))], 8, Bt)), [[M, I.value === "logo"]]) : d("", !0)
|
|
898
1007
|
])])
|
|
899
1008
|
], 64))), 128))]),
|
|
900
|
-
after: P(({ record: t, text: n }) => [e.map(t) && a.view(t, n)?.map ? (C(), f("section",
|
|
1009
|
+
after: P(({ record: t, text: n }) => [e.map(t) && a.view(t, n)?.map ? (C(), f("section", Ht, [p("h3", Ut, D(S("map")), 1), g(i, {
|
|
901
1010
|
provider: "google",
|
|
902
1011
|
latitude: a.view(t, n).map.latitude,
|
|
903
1012
|
longitude: a.view(t, n).map.longitude,
|
|
@@ -914,13 +1023,13 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
914
1023
|
_: 1
|
|
915
1024
|
}, 8, ["id"]));
|
|
916
1025
|
}
|
|
917
|
-
},
|
|
1026
|
+
}, Gt = ["innerHTML"], Kt = {
|
|
918
1027
|
key: 0,
|
|
919
1028
|
class: "mwnf-standalone-page__link"
|
|
920
|
-
},
|
|
1029
|
+
}, qt = {
|
|
921
1030
|
key: 1,
|
|
922
1031
|
class: "mwnf-standalone-page__print"
|
|
923
|
-
},
|
|
1032
|
+
}, Jt = {
|
|
924
1033
|
__name: "TextPage",
|
|
925
1034
|
props: {
|
|
926
1035
|
body: {
|
|
@@ -949,25 +1058,25 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
949
1058
|
p("div", {
|
|
950
1059
|
class: "mwnf-standalone-page__body",
|
|
951
1060
|
innerHTML: i.value
|
|
952
|
-
}, null, 8,
|
|
953
|
-
e.link ? (C(), f("p",
|
|
1061
|
+
}, null, 8, Gt),
|
|
1062
|
+
e.link ? (C(), f("p", Kt, [g(n, {
|
|
954
1063
|
to: e.link.to,
|
|
955
1064
|
href: e.link.href
|
|
956
1065
|
}, {
|
|
957
1066
|
default: P(() => [p("strong", null, D(e.link.text ?? O(r)(e.link.label)), 1)]),
|
|
958
1067
|
_: 1
|
|
959
1068
|
}, 8, ["to", "href"])])) : d("", !0),
|
|
960
|
-
e.print ? (C(), f("p",
|
|
1069
|
+
e.print ? (C(), f("p", qt, [p("button", {
|
|
961
1070
|
type: "button",
|
|
962
1071
|
class: "mwnf-standalone-page__print-button",
|
|
963
1072
|
onClick: a
|
|
964
1073
|
}, D(O(r)(e.print)), 1)])) : d("", !0)
|
|
965
1074
|
], 2));
|
|
966
1075
|
}
|
|
967
|
-
},
|
|
1076
|
+
}, Yt = {
|
|
968
1077
|
key: 0,
|
|
969
1078
|
class: "mwnf-standalone-subnav"
|
|
970
|
-
},
|
|
1079
|
+
}, Xt = { class: "mwnf-standalone-subnav__tabs" }, Zt = {
|
|
971
1080
|
__name: "SubNav",
|
|
972
1081
|
props: {
|
|
973
1082
|
tabs: {
|
|
@@ -984,7 +1093,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
984
1093
|
...e,
|
|
985
1094
|
label: r(e.label)
|
|
986
1095
|
})));
|
|
987
|
-
return (t, a) => i.value.length || e.aside ? (C(), f("nav",
|
|
1096
|
+
return (t, a) => i.value.length || e.aside ? (C(), f("nav", Yt, [p("ul", Xt, [(C(!0), f(c, null, T(i.value, (e) => (C(), f("li", { key: e.label }, [g(n, {
|
|
988
1097
|
to: e.to,
|
|
989
1098
|
href: e.href,
|
|
990
1099
|
class: y(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
|
|
@@ -1007,13 +1116,13 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1007
1116
|
_: 1
|
|
1008
1117
|
}, 8, ["to", "href"])) : d("", !0)])) : d("", !0);
|
|
1009
1118
|
}
|
|
1010
|
-
},
|
|
1119
|
+
}, Qt = { class: "mwnf-standalone-results" }, $t = {
|
|
1011
1120
|
key: 0,
|
|
1012
1121
|
class: "mwnf-standalone-results__empty"
|
|
1013
|
-
},
|
|
1122
|
+
}, en = { class: "mwnf-standalone-results__tile" }, tn = ["src"], nn = { class: "mwnf-standalone-results__panel" }, rn = ["src"], an = { class: "mwnf-standalone-results__name" }, on = ["innerHTML"], sn = ["innerHTML"], cn = {
|
|
1014
1123
|
key: 0,
|
|
1015
1124
|
class: "mwnf-standalone-results__holder"
|
|
1016
|
-
},
|
|
1125
|
+
}, ln = ["innerHTML"], un = ["innerHTML"], dn = {
|
|
1017
1126
|
__name: "ResultsGrid",
|
|
1018
1127
|
props: {
|
|
1019
1128
|
rows: {
|
|
@@ -1034,10 +1143,10 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1034
1143
|
}
|
|
1035
1144
|
},
|
|
1036
1145
|
setup(e) {
|
|
1037
|
-
return (t, r) => (C(), f("div",
|
|
1146
|
+
return (t, r) => (C(), f("div", Qt, [e.rows.length ? d("", !0) : (C(), f("p", $t, D(e.empty), 1)), (C(!0), f(c, null, T(e.rows, (t) => (C(), f("div", {
|
|
1038
1147
|
key: t.id,
|
|
1039
1148
|
class: "mwnf-standalone-results__cell"
|
|
1040
|
-
}, [p("div",
|
|
1149
|
+
}, [p("div", en, [g(n, {
|
|
1041
1150
|
class: "mwnf-standalone-results__frame",
|
|
1042
1151
|
to: t.to,
|
|
1043
1152
|
href: t.href
|
|
@@ -1045,9 +1154,9 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1045
1154
|
default: P(() => [p("img", {
|
|
1046
1155
|
src: t.image || e.noImage,
|
|
1047
1156
|
alt: ""
|
|
1048
|
-
}, null, 8,
|
|
1157
|
+
}, null, 8, tn)]),
|
|
1049
1158
|
_: 2
|
|
1050
|
-
}, 1032, ["to", "href"]), p("div",
|
|
1159
|
+
}, 1032, ["to", "href"]), p("div", nn, [
|
|
1051
1160
|
g(n, {
|
|
1052
1161
|
class: "mwnf-standalone-results__panel-frame",
|
|
1053
1162
|
to: t.to,
|
|
@@ -1056,25 +1165,25 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1056
1165
|
default: P(() => [p("img", {
|
|
1057
1166
|
src: t.image || e.noImage,
|
|
1058
1167
|
alt: ""
|
|
1059
|
-
}, null, 8,
|
|
1168
|
+
}, null, 8, rn)]),
|
|
1060
1169
|
_: 2
|
|
1061
1170
|
}, 1032, ["to", "href"]),
|
|
1062
|
-
p("p",
|
|
1171
|
+
p("p", an, [p("strong", null, [g(n, {
|
|
1063
1172
|
to: t.to,
|
|
1064
1173
|
href: t.href
|
|
1065
1174
|
}, {
|
|
1066
|
-
default: P(() => [p("span", { innerHTML: t.name }, null, 8,
|
|
1175
|
+
default: P(() => [p("span", { innerHTML: t.name }, null, 8, on)]),
|
|
1067
1176
|
_: 2
|
|
1068
1177
|
}, 1032, ["to", "href"])])]),
|
|
1069
1178
|
(C(!0), f(c, null, T(t.lines ?? [], (e, t) => (C(), f("p", {
|
|
1070
1179
|
key: t,
|
|
1071
1180
|
innerHTML: e
|
|
1072
|
-
}, null, 8,
|
|
1073
|
-
t.holder ? (C(), f("p",
|
|
1181
|
+
}, null, 8, sn))), 128)),
|
|
1182
|
+
t.holder ? (C(), f("p", cn, [p("strong", { innerHTML: t.holder }, null, 8, ln)])) : d("", !0),
|
|
1074
1183
|
t.location ? (C(), f("p", {
|
|
1075
1184
|
key: 1,
|
|
1076
1185
|
innerHTML: t.location
|
|
1077
|
-
}, null, 8,
|
|
1186
|
+
}, null, 8, un)) : d("", !0),
|
|
1078
1187
|
p("p", null, [g(n, {
|
|
1079
1188
|
class: "mwnf-standalone-results__see",
|
|
1080
1189
|
to: t.to,
|
|
@@ -1085,10 +1194,10 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1085
1194
|
}, 8, ["to", "href"])])
|
|
1086
1195
|
])])]))), 128))]));
|
|
1087
1196
|
}
|
|
1088
|
-
},
|
|
1197
|
+
}, fn = {
|
|
1089
1198
|
key: 0,
|
|
1090
1199
|
class: "mwnf-standalone-pages"
|
|
1091
|
-
},
|
|
1200
|
+
}, pn = { class: "mwnf-standalone-pages__previous" }, mn = ["aria-current", "onClick"], hn = { class: "mwnf-standalone-pages__next" }, gn = {
|
|
1092
1201
|
__name: "Pagination",
|
|
1093
1202
|
props: {
|
|
1094
1203
|
pageInfo: {
|
|
@@ -1118,8 +1227,8 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1118
1227
|
function s(e) {
|
|
1119
1228
|
e >= 1 && e <= a.value && e !== i.value && r("navigate", e);
|
|
1120
1229
|
}
|
|
1121
|
-
return (t, n) => a.value > 1 ? (C(), f("nav",
|
|
1122
|
-
p("span",
|
|
1230
|
+
return (t, n) => a.value > 1 ? (C(), f("nav", fn, [
|
|
1231
|
+
p("span", pn, [i.value > 1 ? (C(), f("a", {
|
|
1123
1232
|
key: 0,
|
|
1124
1233
|
href: "#",
|
|
1125
1234
|
onClick: n[0] ||= I((e) => s(i.value - 1), ["prevent"])
|
|
@@ -1130,18 +1239,18 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1130
1239
|
class: y(["mwnf-standalone-pages__number", { "mwnf-standalone-pages__number--active": e === i.value }]),
|
|
1131
1240
|
"aria-current": e === i.value ? "page" : void 0,
|
|
1132
1241
|
onClick: I((t) => s(e), ["prevent"])
|
|
1133
|
-
}, D(e), 11,
|
|
1134
|
-
p("span",
|
|
1242
|
+
}, D(e), 11, mn))), 128)),
|
|
1243
|
+
p("span", hn, [i.value < a.value ? (C(), f("a", {
|
|
1135
1244
|
key: 0,
|
|
1136
1245
|
href: "#",
|
|
1137
1246
|
onClick: n[1] ||= I((e) => s(i.value + 1), ["prevent"])
|
|
1138
1247
|
}, D(e.nextLabel), 1)) : (C(), f(c, { key: 1 }, [h(D(e.nextLabel), 1)], 64))])
|
|
1139
1248
|
])) : d("", !0);
|
|
1140
1249
|
}
|
|
1141
|
-
},
|
|
1250
|
+
}, _n = ["disabled", "aria-label"], vn = { class: "mwnf-standalone-slider__track" }, yn = ["src", "alt"], bn = {
|
|
1142
1251
|
key: 0,
|
|
1143
1252
|
class: "mwnf-standalone-slider__label"
|
|
1144
|
-
},
|
|
1253
|
+
}, xn = ["disabled", "aria-label"], Sn = {
|
|
1145
1254
|
__name: "Slider",
|
|
1146
1255
|
props: {
|
|
1147
1256
|
slides: {
|
|
@@ -1178,8 +1287,8 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1178
1287
|
disabled: a.value === 0,
|
|
1179
1288
|
"aria-label": O(r)(e.previousLabel),
|
|
1180
1289
|
onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
|
|
1181
|
-
}, "‹", 8,
|
|
1182
|
-
p("ul",
|
|
1290
|
+
}, "‹", 8, _n),
|
|
1291
|
+
p("ul", vn, [(C(!0), f(c, null, T(s.value, (e) => (C(), f("li", {
|
|
1183
1292
|
key: e.image,
|
|
1184
1293
|
class: "mwnf-standalone-slider__slide"
|
|
1185
1294
|
}, [g(n, {
|
|
@@ -1189,7 +1298,7 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1189
1298
|
default: P(() => [p("img", {
|
|
1190
1299
|
src: e.image,
|
|
1191
1300
|
alt: e.label
|
|
1192
|
-
}, null, 8,
|
|
1301
|
+
}, null, 8, yn), e.label ? (C(), f("span", bn, D(e.label), 1)) : d("", !0)]),
|
|
1193
1302
|
_: 2
|
|
1194
1303
|
}, 1032, ["to", "href"])]))), 128))]),
|
|
1195
1304
|
p("button", {
|
|
@@ -1198,10 +1307,10 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1198
1307
|
disabled: a.value >= o.value,
|
|
1199
1308
|
"aria-label": O(r)(e.nextLabel),
|
|
1200
1309
|
onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
|
|
1201
|
-
}, "›", 8,
|
|
1310
|
+
}, "›", 8, xn)
|
|
1202
1311
|
], 4)) : d("", !0);
|
|
1203
1312
|
}
|
|
1204
|
-
},
|
|
1313
|
+
}, Cn = ["dir"], wn = { class: "mwnf-standalone-window__box" }, Tn = { class: "mwnf-standalone-window__header" }, En = { class: "mwnf-standalone-window__heading" }, Dn = ["aria-label"], On = { class: "mwnf-standalone-window__article" }, kn = {
|
|
1205
1314
|
__name: "Window",
|
|
1206
1315
|
props: {
|
|
1207
1316
|
heading: {
|
|
@@ -1224,21 +1333,21 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1224
1333
|
return (n, r) => (C(), f("div", {
|
|
1225
1334
|
class: "mwnf-standalone-window",
|
|
1226
1335
|
dir: e.dir || void 0
|
|
1227
|
-
}, [p("div",
|
|
1336
|
+
}, [p("div", wn, [p("header", Tn, [p("h1", En, D(e.heading), 1), p("button", {
|
|
1228
1337
|
type: "button",
|
|
1229
1338
|
class: "mwnf-standalone-window__close",
|
|
1230
1339
|
"aria-label": e.closeLabel || void 0,
|
|
1231
1340
|
onClick: t
|
|
1232
|
-
}, "×", 8,
|
|
1341
|
+
}, "×", 8, Dn)]), p("article", On, [E(n.$slots, "default")])])], 8, Cn));
|
|
1233
1342
|
}
|
|
1234
|
-
},
|
|
1343
|
+
}, An = { class: "mwnf-standalone-glossary" }, jn = { class: "mwnf-standalone-glossary__intro" }, Mn = { class: "mwnf-standalone-glossary__body" }, Nn = { class: "mwnf-standalone-glossary__field" }, Pn = ["aria-expanded", "aria-label"], Fn = {
|
|
1235
1344
|
key: 0,
|
|
1236
1345
|
class: "mwnf-standalone-glossary__suggestions",
|
|
1237
1346
|
role: "listbox"
|
|
1238
|
-
},
|
|
1347
|
+
}, In = ["aria-selected", "onMousedown"], Ln = {
|
|
1239
1348
|
class: "mwnf-standalone-glossary__result",
|
|
1240
1349
|
"aria-live": "polite"
|
|
1241
|
-
},
|
|
1350
|
+
}, Rn = { class: "mwnf-standalone-glossary__label" }, zn = ["innerHTML"], Bn = { class: "mwnf-standalone-glossary__label mwnf-standalone-glossary__label--spellings" }, Vn = { class: "mwnf-standalone-glossary__note" }, Hn = { class: "mwnf-standalone-glossary__spellings" }, Un = {
|
|
1242
1351
|
__name: "GlossarySpelling",
|
|
1243
1352
|
props: {
|
|
1244
1353
|
language: {
|
|
@@ -1294,12 +1403,12 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1294
1403
|
let t = h.value;
|
|
1295
1404
|
t.length && (e.key === "ArrowDown" ? (e.preventDefault(), s.value = (s.value + 1) % t.length) : e.key === "ArrowUp" ? (e.preventDefault(), s.value = (s.value - 1 + t.length) % t.length) : e.key === "Enter" && s.value >= 0 && (e.preventDefault(), v(t[s.value])));
|
|
1296
1405
|
}
|
|
1297
|
-
return (t, n) => (C(), u(
|
|
1406
|
+
return (t, n) => (C(), u(kn, {
|
|
1298
1407
|
heading: e.labels.heading,
|
|
1299
1408
|
"close-label": e.labels.close,
|
|
1300
1409
|
dir: e.dir
|
|
1301
1410
|
}, {
|
|
1302
|
-
default: P(() => [p("div",
|
|
1411
|
+
default: P(() => [p("div", An, [p("h2", jn, D(e.labels.intro), 1), p("div", Mn, [p("div", Nn, [F(p("input", {
|
|
1303
1412
|
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
1304
1413
|
type: "text",
|
|
1305
1414
|
class: "mwnf-standalone-glossary__input",
|
|
@@ -1309,19 +1418,19 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1309
1418
|
"aria-label": e.labels.heading,
|
|
1310
1419
|
onInput: b,
|
|
1311
1420
|
onKeydown: x
|
|
1312
|
-
}, null, 40,
|
|
1421
|
+
}, null, 40, Pn), [[j, a.value]]), h.value.length ? (C(), f("ul", Fn, [(C(!0), f(c, null, T(h.value, (e, t) => (C(), f("li", {
|
|
1313
1422
|
key: e.spelling,
|
|
1314
1423
|
role: "option",
|
|
1315
1424
|
"aria-selected": t === s.value,
|
|
1316
1425
|
class: y(["mwnf-standalone-glossary__suggestion", { "mwnf-standalone-glossary__suggestion--active": t === s.value }]),
|
|
1317
1426
|
onMousedown: I((t) => v(e), ["prevent"])
|
|
1318
|
-
}, D(e.spelling), 43,
|
|
1427
|
+
}, D(e.spelling), 43, In))), 128))])) : d("", !0)]), p("div", Ln, [o.value ? (C(), f(c, { key: 0 }, [g.value ? (C(), f(c, { key: 0 }, [p("h3", Rn, D(e.labels.definition), 1), p("div", {
|
|
1319
1428
|
class: "mwnf-standalone-glossary__definition",
|
|
1320
1429
|
innerHTML: g.value
|
|
1321
|
-
}, null, 8,
|
|
1322
|
-
p("h3",
|
|
1323
|
-
p("p",
|
|
1324
|
-
p("ul",
|
|
1430
|
+
}, null, 8, zn)], 64)) : d("", !0), _.value.length ? (C(), f(c, { key: 1 }, [
|
|
1431
|
+
p("h3", Bn, D(e.labels.spellings), 1),
|
|
1432
|
+
p("p", Vn, D(e.labels.spellingsNote), 1),
|
|
1433
|
+
p("ul", Hn, [(C(!0), f(c, null, T(_.value, (e) => (C(), f("li", { key: e }, D(e), 1))), 128))])
|
|
1325
1434
|
], 64)) : d("", !0)], 64)) : d("", !0)])])])]),
|
|
1326
1435
|
_: 1
|
|
1327
1436
|
}, 8, [
|
|
@@ -1332,4 +1441,4 @@ var oe = { class: "mwnf-standalone-sponsors" }, se = {
|
|
|
1332
1441
|
}
|
|
1333
1442
|
};
|
|
1334
1443
|
//#endregion
|
|
1335
|
-
export {
|
|
1444
|
+
export { dt as RelatedContent, J as StandaloneBanner, Un as StandaloneGlossarySpelling, qe as StandaloneHome, ht as StandaloneItemSheet, gn as StandalonePagination, Wt as StandalonePartnerPage, dn as StandaloneResultsGrid, ke as StandaloneShell, Sn as StandaloneSlider, xe as StandaloneSponsors, Zt as StandaloneSubNav, Jt as StandaloneTextPage, Ue as StandaloneTileGrid, kn as StandaloneWindow, Le as TodayHighlight, X as byLanguage, Z as dayOfYear, oe as legacyHomeItemKey, Q as pickForDay };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.27.0",
|
|
4
4
|
"description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|