dbf-mirador 4.3.5 → 4.3.6
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/mirador.es.js +103 -96
- package/dist/mirador.es.js.map +1 -1
- package/dist/mirador.min.js +2 -2
- package/dist/mirador.min.js.map +1 -1
- package/package.json +1 -1
- package/src/plugins/poiPreviewPlugin.tsx +45 -16
package/dist/mirador.es.js
CHANGED
|
@@ -9265,7 +9265,18 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9265
9265
|
}),
|
|
9266
9266
|
mode: "add",
|
|
9267
9267
|
target: "OpenSeadragonViewer"
|
|
9268
|
-
}], Zv = /* @__PURE__ */ D(Us(), 1), Qv = "mapsPoiPreview", $v = "annotationCreation", ey = (e) => (
|
|
9268
|
+
}], Zv = /* @__PURE__ */ D(Us(), 1), Qv = "mapsPoiPreview", $v = "annotationCreation", ey = (e, t, n) => (r, i) => {
|
|
9269
|
+
let a = Object.values(zt(i())).filter((t) => t.windowId === e), o = a.find((e) => e.id === t);
|
|
9270
|
+
a.filter((e) => e.position !== "left").forEach((t) => r(ao(e, t.id))), r(Ya(e, {
|
|
9271
|
+
annotationid: n,
|
|
9272
|
+
content: $v,
|
|
9273
|
+
position: "right",
|
|
9274
|
+
...o?.annotationid ? { returnToPreview: {
|
|
9275
|
+
annotationid: o.annotationid,
|
|
9276
|
+
position: o.position
|
|
9277
|
+
} } : {}
|
|
9278
|
+
}));
|
|
9279
|
+
}, ty = (e) => (e ?? "").split("-")[0].toLowerCase() === "ar" ? "ar" : "en", ny = {
|
|
9269
9280
|
ar: {
|
|
9270
9281
|
Journey: "رحلة",
|
|
9271
9282
|
POI: "نقطة اهتمام",
|
|
@@ -9288,20 +9299,20 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9288
9299
|
preview: "Preview",
|
|
9289
9300
|
showOnMap: "Show on map"
|
|
9290
9301
|
}
|
|
9291
|
-
},
|
|
9302
|
+
}, ry = (e, t, n) => e.body?.find((e) => e.type === "TextualBody" && e.purpose === n && e.language === t)?.value ?? "", iy = (e, t) => t === "en" ? e["dbf:mediaEn"] : e["dbf:mediaAr"], ay = (e, t) => e.filter((e) => e["dbf:kind"] === "POI" && e["dbf:journey"]?.id === t).sort((e, t) => e["dbf:journey"].order - t["dbf:journey"].order), oy = (e) => {
|
|
9292
9303
|
if (!e.target) return null;
|
|
9293
9304
|
let t = new An(e).pointSelector;
|
|
9294
9305
|
return typeof t?.x != "number" || typeof t?.y != "number" ? null : {
|
|
9295
9306
|
x: t.x,
|
|
9296
9307
|
y: t.y
|
|
9297
9308
|
};
|
|
9298
|
-
},
|
|
9309
|
+
}, sy = 4, cy = .2, ly = 32, uy = .25, dy = [
|
|
9299
9310
|
"left",
|
|
9300
9311
|
"right",
|
|
9301
9312
|
"far-right",
|
|
9302
9313
|
"bottom",
|
|
9303
9314
|
"far-bottom"
|
|
9304
|
-
].map((e) => `aside.mirador-companion-window-${e}`).join(", "),
|
|
9315
|
+
].map((e) => `aside.mirador-companion-window-${e}`).join(", "), fy = (e) => Gs.get(e)?.current ?? null, py = (e) => {
|
|
9305
9316
|
let { element: t, viewport: n } = e;
|
|
9306
9317
|
if (!n) return null;
|
|
9307
9318
|
let r = n.getContainerSize(), i = {
|
|
@@ -9312,43 +9323,43 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9312
9323
|
}, a = t?.closest(".mirador-window");
|
|
9313
9324
|
if (!t || !a) return i;
|
|
9314
9325
|
let o = t.getBoundingClientRect(), s = 0, c = 0, l = r.x, u = r.y;
|
|
9315
|
-
return a.querySelectorAll(
|
|
9326
|
+
return a.querySelectorAll(dy).forEach((e) => {
|
|
9316
9327
|
let t = e.getBoundingClientRect(), n = Math.max(t.left, o.left) - o.left, i = Math.min(t.right, o.right) - o.left, a = Math.max(t.top, o.top) - o.top, d = Math.min(t.bottom, o.bottom) - o.top;
|
|
9317
9328
|
i - n <= 0 || d - a <= 0 || (d - a >= r.y * .9 ? n + i > r.x ? l = Math.min(l, n) : s = Math.max(s, i) : i - n >= r.x * .9 && (a + d > r.y ? u = Math.min(u, a) : c = Math.max(c, d)));
|
|
9318
|
-
}), l - s < r.x *
|
|
9329
|
+
}), l - s < r.x * uy || u - c < r.y * uy ? i : {
|
|
9319
9330
|
height: u - c,
|
|
9320
9331
|
width: l - s,
|
|
9321
9332
|
x: s,
|
|
9322
9333
|
y: c
|
|
9323
9334
|
};
|
|
9324
|
-
},
|
|
9325
|
-
let { viewport: r } = e, i =
|
|
9335
|
+
}, my = (e, t, n) => {
|
|
9336
|
+
let { viewport: r } = e, i = py(e);
|
|
9326
9337
|
if (!r || !i) return;
|
|
9327
9338
|
let a = r.getContainerSize();
|
|
9328
9339
|
r.fitBounds(new Zv.default.Rect(t.x - (i.x + i.width / 2) * n, t.y - (i.y + i.height / 2) * n, a.x * n, a.y * n));
|
|
9329
|
-
},
|
|
9330
|
-
let n =
|
|
9331
|
-
!n || !r ||
|
|
9332
|
-
}, gy = (e, t) => {
|
|
9333
|
-
let n = dy(e), r = n?.viewport, i = n ? fy(n) : null;
|
|
9334
|
-
if (!n || !r || !i) return;
|
|
9335
|
-
let a = r.pixelFromPoint(new Zv.default.Point(t.x, t.y)), o = Math.min(cy, i.width / 4, i.height / 4);
|
|
9336
|
-
a.x >= i.x + o && a.x <= i.x + i.width - o && a.y >= i.y + o && a.y <= i.y + i.height - o || py(n, t, my(r, r.getZoom()));
|
|
9340
|
+
}, hy = (e, t) => 1 / (t * e.getContainerSize().x), gy = (e, t) => {
|
|
9341
|
+
let n = fy(e), r = n?.viewport;
|
|
9342
|
+
!n || !r || my(n, t, hy(r, Math.min(r.getMaxZoom(), Math.max(r.getZoom(), r.getHomeZoom() * sy))));
|
|
9337
9343
|
}, _y = (e, t) => {
|
|
9344
|
+
let n = fy(e), r = n?.viewport, i = n ? py(n) : null;
|
|
9345
|
+
if (!n || !r || !i) return;
|
|
9346
|
+
let a = r.pixelFromPoint(new Zv.default.Point(t.x, t.y)), o = Math.min(ly, i.width / 4, i.height / 4);
|
|
9347
|
+
a.x >= i.x + o && a.x <= i.x + i.width - o && a.y >= i.y + o && a.y <= i.y + i.height - o || my(n, t, hy(r, r.getZoom()));
|
|
9348
|
+
}, vy = (e, t) => {
|
|
9338
9349
|
if (t.length === 0) return;
|
|
9339
9350
|
if (t.length === 1) {
|
|
9340
|
-
|
|
9351
|
+
gy(e, t[0]);
|
|
9341
9352
|
return;
|
|
9342
9353
|
}
|
|
9343
|
-
let n =
|
|
9354
|
+
let n = fy(e), r = n?.viewport, i = n ? py(n) : null;
|
|
9344
9355
|
if (!n || !r || !i) return;
|
|
9345
|
-
let a = t.map(({ x: e }) => e), o = t.map(({ y: e }) => e), s = Math.min(...a), c = Math.min(...o), l = Math.max(...a) - s, u = Math.max(...o) - c, d = r.getHomeBounds(), f = Math.max(l *
|
|
9346
|
-
|
|
9356
|
+
let a = t.map(({ x: e }) => e), o = t.map(({ y: e }) => e), s = Math.min(...a), c = Math.min(...o), l = Math.max(...a) - s, u = Math.max(...o) - c, d = r.getHomeBounds(), f = Math.max(l * cy, d.width * .05), p = Math.max(u * cy, d.height * .05), m = Math.max((l + 2 * f) / i.width, (u + 2 * p) / i.height, hy(r, r.getMaxZoom()));
|
|
9357
|
+
my(n, {
|
|
9347
9358
|
x: s + l / 2,
|
|
9348
9359
|
y: c + u / 2
|
|
9349
9360
|
}, m);
|
|
9350
|
-
},
|
|
9351
|
-
let r =
|
|
9361
|
+
}, yy = (e) => e.closest(".mirador-scrollto-scrollable"), by = (e, t, n) => {
|
|
9362
|
+
let r = yy(e);
|
|
9352
9363
|
if (!r) return;
|
|
9353
9364
|
let i = r.scrollTop + e.getBoundingClientRect().top - r.getBoundingClientRect().top;
|
|
9354
9365
|
if (t) {
|
|
@@ -9359,13 +9370,13 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9359
9370
|
behavior: n,
|
|
9360
9371
|
top: i
|
|
9361
9372
|
});
|
|
9362
|
-
},
|
|
9373
|
+
}, xy = (e) => e === "ar" ? "rtl" : "ltr", Sy = {
|
|
9363
9374
|
ar: "العربية",
|
|
9364
9375
|
en: "English"
|
|
9365
|
-
},
|
|
9366
|
-
let o =
|
|
9376
|
+
}, Cy = ({ canEdit: e, contentLocale: t, isEditing: n, onContentLocaleChange: r, onEdit: i, uiLocale: a }) => {
|
|
9377
|
+
let o = ny[a];
|
|
9367
9378
|
return /* @__PURE__ */ nl("div", {
|
|
9368
|
-
dir:
|
|
9379
|
+
dir: xy(a),
|
|
9369
9380
|
style: {
|
|
9370
9381
|
alignItems: "center",
|
|
9371
9382
|
display: "flex",
|
|
@@ -9385,7 +9396,7 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9385
9396
|
lang: e,
|
|
9386
9397
|
sx: { textTransform: "none" },
|
|
9387
9398
|
value: e,
|
|
9388
|
-
children:
|
|
9399
|
+
children: Sy[e]
|
|
9389
9400
|
}, e))
|
|
9390
9401
|
}), e && /* @__PURE__ */ P(dl, {
|
|
9391
9402
|
disabled: n,
|
|
@@ -9397,10 +9408,10 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9397
9408
|
children: o.edit
|
|
9398
9409
|
})]
|
|
9399
9410
|
});
|
|
9400
|
-
},
|
|
9401
|
-
let c =
|
|
9411
|
+
}, wy = ({ editorToolbar: e, id: t, journey: n, locale: r, pois: i, selectAnnotation: a, selectedAnnotationId: o, windowId: s }) => {
|
|
9412
|
+
let c = ny[r], l = ry(n, r, "identifying"), u = el(null), d = el(null), f = i.find((e) => e.id === o), p = f ? oy(f) : null, m = i.map(oy).filter((e) => e !== null), h = m.map(({ x: e, y: t }) => `${e},${t}`).join(";");
|
|
9402
9413
|
Zc(() => {
|
|
9403
|
-
p ?
|
|
9414
|
+
p ? _y(s, p) : vy(s, m);
|
|
9404
9415
|
}, [
|
|
9405
9416
|
n.id,
|
|
9406
9417
|
h,
|
|
@@ -9410,11 +9421,11 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9410
9421
|
d.current && (d.current.style.height = "0px");
|
|
9411
9422
|
return;
|
|
9412
9423
|
}
|
|
9413
|
-
p &&
|
|
9424
|
+
p && _y(s, p);
|
|
9414
9425
|
let e = u.current, t = Array.from(e?.children ?? []).find((e) => e.dataset.poiId === f.id);
|
|
9415
9426
|
if (!e || !t) return;
|
|
9416
|
-
|
|
9417
|
-
let n =
|
|
9427
|
+
by(t, d.current, "smooth");
|
|
9428
|
+
let n = yy(t), r = () => by(t, d.current, "auto"), i = [
|
|
9418
9429
|
"wheel",
|
|
9419
9430
|
"touchstart",
|
|
9420
9431
|
"pointerdown",
|
|
@@ -9425,22 +9436,22 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9425
9436
|
return e.addEventListener("load", r, !0), i.forEach((e) => n?.addEventListener(e, a, { passive: !0 })), a;
|
|
9426
9437
|
}, [f?.id, s]);
|
|
9427
9438
|
let g = (e) => {
|
|
9428
|
-
let t =
|
|
9429
|
-
t &&
|
|
9439
|
+
let t = oy(e);
|
|
9440
|
+
t && gy(s, t), a(s, e.id);
|
|
9430
9441
|
};
|
|
9431
9442
|
return /* @__PURE__ */ nl(Sa, {
|
|
9432
9443
|
id: t,
|
|
9433
9444
|
title: l || c.Journey,
|
|
9434
9445
|
windowId: s,
|
|
9435
9446
|
children: [e, /* @__PURE__ */ nl("div", {
|
|
9436
|
-
dir:
|
|
9447
|
+
dir: xy(r),
|
|
9437
9448
|
lang: r,
|
|
9438
9449
|
ref: u,
|
|
9439
9450
|
style: { padding: 16 },
|
|
9440
9451
|
children: [
|
|
9441
9452
|
i.length === 0 && /* @__PURE__ */ P("p", { children: c.noStops }),
|
|
9442
9453
|
i.map((e, t) => {
|
|
9443
|
-
let n =
|
|
9454
|
+
let n = ry(e, r, "identifying"), a = ry(e, r, "describing"), s = iy(e, r), l = t === i.length - 1, u = e.id === o;
|
|
9444
9455
|
return /* @__PURE__ */ nl("div", {
|
|
9445
9456
|
"aria-current": u || void 0,
|
|
9446
9457
|
"data-poi-id": e.id,
|
|
@@ -9519,10 +9530,10 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9519
9530
|
]
|
|
9520
9531
|
})]
|
|
9521
9532
|
});
|
|
9522
|
-
},
|
|
9523
|
-
let s =
|
|
9533
|
+
}, Ty = ({ annotation: e, editorToolbar: t, id: n, linkedMapManifestId: r, locale: i, openNestedMap: a, windowId: o }) => {
|
|
9534
|
+
let s = ny[i], c = e?.["dbf:kind"], l = e ? ry(e, i, "identifying") : "", u = e ? ry(e, i, "describing") : "", d = e ? iy(e, i) : null, f = e ? oy(e) : null;
|
|
9524
9535
|
return Zc(() => {
|
|
9525
|
-
f &&
|
|
9536
|
+
f && _y(o, f);
|
|
9526
9537
|
}, [
|
|
9527
9538
|
e?.id,
|
|
9528
9539
|
f?.x,
|
|
@@ -9533,7 +9544,7 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9533
9544
|
title: l || c && s[c] || s.preview,
|
|
9534
9545
|
windowId: o,
|
|
9535
9546
|
children: [t, /* @__PURE__ */ nl("div", {
|
|
9536
|
-
dir:
|
|
9547
|
+
dir: xy(i),
|
|
9537
9548
|
lang: i,
|
|
9538
9549
|
style: { padding: 16 },
|
|
9539
9550
|
children: [
|
|
@@ -9554,31 +9565,27 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9554
9565
|
]
|
|
9555
9566
|
})]
|
|
9556
9567
|
});
|
|
9557
|
-
},
|
|
9558
|
-
component: ({
|
|
9559
|
-
let [p, m] = tl(c), h = r ? p : c, g = r && /* @__PURE__ */ P(
|
|
9560
|
-
canEdit:
|
|
9568
|
+
}, Ey = {
|
|
9569
|
+
component: ({ annotation: e, canEdit: t = !1, editInPlaceOfPreview: n, hasAnnotationEditor: r = !1, id: i, isEditing: a = !1, journeyPois: o, linkedMapManifestId: s, locale: c, openNestedMap: l, selectAnnotation: u, selectedAnnotationId: d, windowId: f }) => {
|
|
9570
|
+
let [p, m] = tl(c), h = r ? p : c, g = r && /* @__PURE__ */ P(Cy, {
|
|
9571
|
+
canEdit: t && !!e,
|
|
9561
9572
|
contentLocale: p,
|
|
9562
9573
|
isEditing: a,
|
|
9563
9574
|
onContentLocaleChange: m,
|
|
9564
|
-
onEdit: () =>
|
|
9565
|
-
annotationid: t.id,
|
|
9566
|
-
content: $v,
|
|
9567
|
-
position: "right"
|
|
9568
|
-
}),
|
|
9575
|
+
onEdit: () => e && n?.(f, i, e.id),
|
|
9569
9576
|
uiLocale: c
|
|
9570
9577
|
});
|
|
9571
|
-
return
|
|
9578
|
+
return e && e["dbf:kind"] === "Journey" ? /* @__PURE__ */ P(wy, {
|
|
9572
9579
|
editorToolbar: g,
|
|
9573
9580
|
id: i,
|
|
9574
|
-
journey:
|
|
9581
|
+
journey: e,
|
|
9575
9582
|
locale: h,
|
|
9576
9583
|
pois: o,
|
|
9577
9584
|
selectAnnotation: u,
|
|
9578
9585
|
selectedAnnotationId: d,
|
|
9579
9586
|
windowId: f
|
|
9580
|
-
}) : /* @__PURE__ */ P(
|
|
9581
|
-
annotation:
|
|
9587
|
+
}) : /* @__PURE__ */ P(Ty, {
|
|
9588
|
+
annotation: e,
|
|
9582
9589
|
editorToolbar: g,
|
|
9583
9590
|
id: i,
|
|
9584
9591
|
linkedMapManifestId: s,
|
|
@@ -9589,7 +9596,7 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9589
9596
|
},
|
|
9590
9597
|
companionWindowKey: Qv,
|
|
9591
9598
|
mapStateToProps: (e, { id: t, windowId: n }) => {
|
|
9592
|
-
let r = Oe(e, { companionWindowId: t })?.annotationid, i =
|
|
9599
|
+
let r = Oe(e, { companionWindowId: t })?.annotationid, i = ky(e, n), a = i.find((e) => e.id === r) ?? null, o = Wt(e), s = !!o.annotation?.adapter;
|
|
9593
9600
|
return {
|
|
9594
9601
|
annotation: a,
|
|
9595
9602
|
canEdit: s && o.annotation?.readonly !== !0 && !!a?.maeData,
|
|
@@ -9598,24 +9605,24 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9598
9605
|
content: $v,
|
|
9599
9606
|
windowId: n
|
|
9600
9607
|
}).length > 0,
|
|
9601
|
-
journeyPois: a && a["dbf:kind"] === "Journey" ?
|
|
9608
|
+
journeyPois: a && a["dbf:kind"] === "Journey" ? ay(i, a.id) : [],
|
|
9602
9609
|
linkedMapManifestId: Wv(e, a?.["dbf:linkedMap"]),
|
|
9603
|
-
locale:
|
|
9610
|
+
locale: ty(o.language),
|
|
9604
9611
|
selectedAnnotationId: Gn(e, { windowId: n })
|
|
9605
9612
|
};
|
|
9606
9613
|
},
|
|
9607
9614
|
mapDispatchToProps: {
|
|
9608
|
-
|
|
9615
|
+
editInPlaceOfPreview: ey,
|
|
9609
9616
|
openNestedMap: qv,
|
|
9610
9617
|
selectAnnotation: Rn
|
|
9611
9618
|
}
|
|
9612
|
-
},
|
|
9619
|
+
}, Dy = (e, t) => {
|
|
9613
9620
|
let n = pt(e, { windowId: t })[0]?.id;
|
|
9614
9621
|
return n ? En(e)[n] : void 0;
|
|
9615
|
-
},
|
|
9622
|
+
}, Oy = (e) => (e ? Object.values(e) : []).flatMap((e) => e.json?.items ?? []), ky = (e, t) => Oy(Dy(e, t)), Ay = (e, t) => Object.values(zt(e)).find((e) => e.windowId === t && e.content === Qv)?.id, jy = (e, t) => {
|
|
9616
9623
|
let n = e["dbf:kind"] === "POI" ? e["dbf:journey"]?.id : void 0;
|
|
9617
9624
|
return n && t(n) ? n : e.id;
|
|
9618
|
-
},
|
|
9625
|
+
}, My = ({ addCompanionWindow: e, updateCompanionWindow: t }, n, r, i, a) => {
|
|
9619
9626
|
r ? t(n, r, {
|
|
9620
9627
|
annotationid: i,
|
|
9621
9628
|
position: a
|
|
@@ -9624,19 +9631,19 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9624
9631
|
content: Qv,
|
|
9625
9632
|
position: a
|
|
9626
9633
|
});
|
|
9627
|
-
},
|
|
9634
|
+
}, Ny = () => {
|
|
9628
9635
|
let e = ul();
|
|
9629
9636
|
return hl(e.breakpoints.down("sm")) ? "bottom" : "right";
|
|
9630
|
-
},
|
|
9637
|
+
}, Py = [Ey, {
|
|
9631
9638
|
target: "AnnotationsOverlay",
|
|
9632
9639
|
mode: "wrap",
|
|
9633
9640
|
component: ({ TargetComponent: e, targetProps: t, addCompanionWindow: n, updateCompanionWindow: r, annotationPages: i, existingPreviewCompanionWindowId: a }) => {
|
|
9634
|
-
let { annotations: o = [], searchAnnotations: s = [], selectAnnotation: c } = t, l =
|
|
9641
|
+
let { annotations: o = [], searchAnnotations: s = [], selectAnnotation: c } = t, l = Ny(), u = (e, t) => {
|
|
9635
9642
|
c?.(e, t);
|
|
9636
9643
|
let u = [...o, ...s].flatMap((e) => e.resources ?? []).find((e) => e.id === t);
|
|
9637
9644
|
if (!u?.pointSelector && !u?.svgSelector) return;
|
|
9638
|
-
let d =
|
|
9639
|
-
|
|
9645
|
+
let d = Oy(i), f = d.find((e) => e.id === t), p = f ? jy(f, (e) => d.some((t) => t.id === e)) : t;
|
|
9646
|
+
My({
|
|
9640
9647
|
addCompanionWindow: n,
|
|
9641
9648
|
updateCompanionWindow: r
|
|
9642
9649
|
}, e, a, p, l);
|
|
@@ -9647,51 +9654,51 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9647
9654
|
});
|
|
9648
9655
|
},
|
|
9649
9656
|
mapStateToProps: (e, { windowId: t }) => ({
|
|
9650
|
-
annotationPages:
|
|
9651
|
-
existingPreviewCompanionWindowId:
|
|
9657
|
+
annotationPages: Dy(e, t),
|
|
9658
|
+
existingPreviewCompanionWindowId: Ay(e, t)
|
|
9652
9659
|
}),
|
|
9653
9660
|
mapDispatchToProps: {
|
|
9654
9661
|
addCompanionWindow: Ya,
|
|
9655
9662
|
updateCompanionWindow: ba
|
|
9656
9663
|
}
|
|
9657
|
-
}],
|
|
9658
|
-
let t = new Set(e.map((e) => e.id)), n = e.filter((e) => e["dbf:kind"] === "POI"), r = (e) => n.filter((t) => t["dbf:journey"]?.id === e).sort((e, t) =>
|
|
9664
|
+
}], Fy = (e, t) => e.order === t.order ? e.id.localeCompare(t.id) : e.order === null || e.order === void 0 ? 1 : t.order === null || t.order === void 0 ? -1 : e.order - t.order, Iy = (e) => {
|
|
9665
|
+
let t = new Set(e.map((e) => e.id)), n = e.filter((e) => e["dbf:kind"] === "POI"), r = (e) => n.filter((t) => t["dbf:journey"]?.id === e).sort((e, t) => Fy({
|
|
9659
9666
|
id: e.id,
|
|
9660
9667
|
order: e["dbf:journey"]?.order
|
|
9661
9668
|
}, {
|
|
9662
9669
|
id: t.id,
|
|
9663
9670
|
order: t["dbf:journey"]?.order
|
|
9664
9671
|
}));
|
|
9665
|
-
return e.filter((e) => e["dbf:kind"] === "Journey" || e["dbf:kind"] === "POI" && !(e["dbf:journey"]?.id && t.has(e["dbf:journey"].id))).sort((e, t) =>
|
|
9672
|
+
return e.filter((e) => e["dbf:kind"] === "Journey" || e["dbf:kind"] === "POI" && !(e["dbf:journey"]?.id && t.has(e["dbf:journey"].id))).sort((e, t) => Fy({
|
|
9666
9673
|
id: e.id,
|
|
9667
9674
|
order: e["dbf:order"]
|
|
9668
9675
|
}, {
|
|
9669
9676
|
id: t.id,
|
|
9670
9677
|
order: t["dbf:order"]
|
|
9671
9678
|
})).flatMap((e) => e["dbf:kind"] === "Journey" ? r(e.id) : [e]).flatMap((e) => {
|
|
9672
|
-
let n =
|
|
9679
|
+
let n = oy(e);
|
|
9673
9680
|
return n ? [{
|
|
9674
9681
|
point: n,
|
|
9675
9682
|
poiId: e.id,
|
|
9676
|
-
previewId:
|
|
9683
|
+
previewId: jy(e, (e) => t.has(e))
|
|
9677
9684
|
}] : [];
|
|
9678
9685
|
});
|
|
9679
|
-
},
|
|
9686
|
+
}, Ly = (e, t, n) => {
|
|
9680
9687
|
if (e.length === 0) return null;
|
|
9681
9688
|
let r = e.findIndex((e) => e.poiId === t);
|
|
9682
9689
|
if (r === -1) return e[0];
|
|
9683
9690
|
let i = Math.min(e.length - 1, Math.max(0, r + n));
|
|
9684
9691
|
return i === r ? null : e[i];
|
|
9685
|
-
},
|
|
9692
|
+
}, Ry = 250, zy = 500, By = 50, Vy = Math.PI / 6, Hy = ({ direction: e, speed: t }, n, r) => t < zy || Math.abs(n.x) < By || Math.abs(n.y) > Math.abs(n.x) * Math.tan(Vy) || Math.abs(Math.cos(e)) < Math.cos(Vy) || Math.sign(Math.cos(e)) !== Math.sign(n.x) ? null : (r ? n.x > 0 : n.x < 0) ? 1 : -1, Uy = 1.2, Wy = (e, t) => {
|
|
9686
9693
|
let { viewport: n } = e, r = t.originalEvent ? t.originalEvent.deltaY || t.originalEvent.deltaX : -t.scroll;
|
|
9687
9694
|
if (!n || !r) return;
|
|
9688
|
-
let i = (e.zoomPerScroll ??
|
|
9695
|
+
let i = (e.zoomPerScroll ?? Uy) ** (r < 0 ? 1 : -1);
|
|
9689
9696
|
n.zoomBy(i, t.position ? n.pointFromPixel(t.position, !0) : void 0), n.applyConstraints();
|
|
9690
|
-
},
|
|
9697
|
+
}, Gy = [{
|
|
9691
9698
|
target: "OpenSeadragonViewer",
|
|
9692
9699
|
mode: "add",
|
|
9693
9700
|
component: ({ viewer: e, windowId: t, addCompanionWindow: n, annotationPages: r, existingPreviewCompanionWindowId: i, selectAnnotation: a, selectedAnnotationId: o, updateCompanionWindow: s }) => {
|
|
9694
|
-
let c =
|
|
9701
|
+
let c = Ny(), l = ul().direction === "rtl", u = el({
|
|
9695
9702
|
annotationPages: r,
|
|
9696
9703
|
dispatchAddCompanionWindow: n,
|
|
9697
9704
|
dispatchSelectAnnotation: a,
|
|
@@ -9716,20 +9723,20 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9716
9723
|
x: 0,
|
|
9717
9724
|
y: 0
|
|
9718
9725
|
}, i = !1, a = (e) => {
|
|
9719
|
-
let n = u.current, r = Iy(
|
|
9720
|
-
r && (n.dispatchSelectAnnotation(t, r.poiId),
|
|
9726
|
+
let n = u.current, r = Ly(Iy(Oy(n.annotationPages)), n.selectedAnnotationId, e);
|
|
9727
|
+
r && (n.dispatchSelectAnnotation(t, r.poiId), My({
|
|
9721
9728
|
addCompanionWindow: n.dispatchAddCompanionWindow,
|
|
9722
9729
|
updateCompanionWindow: n.dispatchUpdateCompanionWindow
|
|
9723
|
-
}, t, n.existingPreviewCompanionWindowId, r.previewId, n.previewPosition), requestAnimationFrame(() => requestAnimationFrame(() =>
|
|
9730
|
+
}, t, n.existingPreviewCompanionWindowId, r.previewId, n.previewPosition), requestAnimationFrame(() => requestAnimationFrame(() => gy(t, r.point))));
|
|
9724
9731
|
}, o = [
|
|
9725
9732
|
["canvas-scroll", (t) => {
|
|
9726
9733
|
if (t.originalEvent?.ctrlKey) return;
|
|
9727
9734
|
if (t.preventDefaultAction = !0, t.originalEvent?.shiftKey) {
|
|
9728
|
-
|
|
9735
|
+
Wy(e, t);
|
|
9729
9736
|
return;
|
|
9730
9737
|
}
|
|
9731
9738
|
if (!t.scroll) return;
|
|
9732
|
-
let r = Date.now(), i = r - n >
|
|
9739
|
+
let r = Date.now(), i = r - n > Ry;
|
|
9733
9740
|
n = r, i && a(t.scroll > 0 ? -1 : 1);
|
|
9734
9741
|
}],
|
|
9735
9742
|
["canvas-press", (e) => {
|
|
@@ -9749,7 +9756,7 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9749
9756
|
}],
|
|
9750
9757
|
["canvas-drag-end", (e) => {
|
|
9751
9758
|
if (e.pointerType !== "touch" || i) return;
|
|
9752
|
-
let t =
|
|
9759
|
+
let t = Hy(e, r, u.current.isRtl);
|
|
9753
9760
|
t && (e.preventDefaultAction = !0, a(t));
|
|
9754
9761
|
}]
|
|
9755
9762
|
];
|
|
@@ -9757,8 +9764,8 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9757
9764
|
}, [e, t]), null;
|
|
9758
9765
|
},
|
|
9759
9766
|
mapStateToProps: (e, { windowId: t }) => ({
|
|
9760
|
-
annotationPages:
|
|
9761
|
-
existingPreviewCompanionWindowId:
|
|
9767
|
+
annotationPages: Dy(e, t),
|
|
9768
|
+
existingPreviewCompanionWindowId: Ay(e, t),
|
|
9762
9769
|
selectedAnnotationId: Gn(e, { windowId: t })
|
|
9763
9770
|
}),
|
|
9764
9771
|
mapDispatchToProps: {
|
|
@@ -9766,7 +9773,7 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9766
9773
|
selectAnnotation: Rn,
|
|
9767
9774
|
updateCompanionWindow: ba
|
|
9768
9775
|
}
|
|
9769
|
-
}],
|
|
9776
|
+
}], Ky = {
|
|
9770
9777
|
theme: { components: {
|
|
9771
9778
|
Window: { styleOverrides: {
|
|
9772
9779
|
bottom: ({ theme: e }) => ({
|
|
@@ -9797,8 +9804,8 @@ var Bv = { viewer: zv }, Vv = {
|
|
|
9797
9804
|
panels: { canvas: !1 }
|
|
9798
9805
|
},
|
|
9799
9806
|
workspaceControlPanel: { enabled: !1 }
|
|
9800
|
-
},
|
|
9801
|
-
function
|
|
9807
|
+
}, qy = ["en", "ar"];
|
|
9808
|
+
function Jy({ getLinkedMapManifestId: e = void 0, lang: t = "en", manifestId: n }) {
|
|
9802
9809
|
let r = Qc().replace(/:/g, ""), i = el(null), a = el(null), o = el(e);
|
|
9803
9810
|
o.current = e;
|
|
9804
9811
|
let s = !!e, c = el(t);
|
|
@@ -9808,15 +9815,15 @@ function qy({ getLinkedMapManifestId: e = void 0, lang: t = "en", manifestId: n
|
|
|
9808
9815
|
let t = document.createElement("div");
|
|
9809
9816
|
t.id = `mirador-map-viewer-${r}`, t.style.position = "absolute", t.style.inset = 0, e.appendChild(t);
|
|
9810
9817
|
let l = zv({
|
|
9811
|
-
...
|
|
9818
|
+
...Ky,
|
|
9812
9819
|
id: t.id,
|
|
9813
9820
|
language: c.current,
|
|
9814
9821
|
maps: { getLinkedMapManifestId: s ? (e) => o.current?.(e) : void 0 },
|
|
9815
9822
|
windows: [{ manifestId: n }]
|
|
9816
9823
|
}, [
|
|
9817
|
-
...
|
|
9824
|
+
...Py,
|
|
9818
9825
|
...Xv,
|
|
9819
|
-
...
|
|
9826
|
+
...Gy
|
|
9820
9827
|
]);
|
|
9821
9828
|
return a.current = l, () => {
|
|
9822
9829
|
a.current = null, l.unmount(), t.remove();
|
|
@@ -9839,18 +9846,18 @@ function qy({ getLinkedMapManifestId: e = void 0, lang: t = "en", manifestId: n
|
|
|
9839
9846
|
}
|
|
9840
9847
|
});
|
|
9841
9848
|
}
|
|
9842
|
-
|
|
9849
|
+
Jy.propTypes = {
|
|
9843
9850
|
getLinkedMapManifestId: F.default.func,
|
|
9844
|
-
lang: F.default.oneOf(
|
|
9851
|
+
lang: F.default.oneOf(qy),
|
|
9845
9852
|
manifestId: F.default.string.isRequired
|
|
9846
9853
|
};
|
|
9847
9854
|
//#endregion
|
|
9848
9855
|
//#region src/index.js
|
|
9849
|
-
var
|
|
9856
|
+
var Yy = {
|
|
9850
9857
|
...Bv,
|
|
9851
9858
|
...Vv
|
|
9852
9859
|
};
|
|
9853
9860
|
//#endregion
|
|
9854
|
-
export { xs as AccessTokenSender, N as ActionTypes, Wn as AnnotationFactory, An as AnnotationItem, Mn as AnnotationList, kn as AnnotationPage, On as AnnotationResource, zr as AnnotationSettings, Ys as AnnotationsOverlay, Dp as App, wp as AppProviders, Rs as AttributionPanel, Cc as AudioViewer, os as BackgroundPluginArea, Ea as BookViewIcon, Oa as Branding, Ks as CanvasAnnotationDisplay, Ma as CanvasAnnotations, rt as CanvasGroupings, Ri as CanvasIndexIcon, Eo as CanvasInfo, Ki as CanvasLayers, lr as CanvasWorld, ts as ChangeThemeDialog, Go as CollapsibleSection, Ji as CollectionDialog, es as CollectionInfo, So as CompanionArea, bs as CompanionWindow, vo as CompanionWindowFactory, xa as CompanionWindowRegistry, no as CompanionWindowSection, qi as ConnectedAnnotationSettings, Vs as ConnectedAnnotationsOverlay, Tp as ConnectedAppProviders, Ii as ConnectedAttributionPanel, wc as ConnectedAudioViewer, lo as ConnectedBackgroundPluginArea, Co as ConnectedBranding, Fs as ConnectedCanvasAnnotations, La as ConnectedCanvasInfo, ws as ConnectedCanvasLayers, Wi as ConnectedChangeThemeDialog, Za as ConnectedCollapsibleSection, Es as ConnectedCollectionDialog, Fo as ConnectedCollectionInfo, Ei as ConnectedCompanionArea, Sa as ConnectedCompanionWindow, xr as ConnectedCompanionWindowFactory, ja as ConnectedCustomPanel, vi as ConnectedErrorContent, hi as ConnectedErrorDialog, Qi as ConnectedFullScreenButton, Oc as ConnectedGalleryView, Ec as ConnectedGalleryViewThumbnail, Ko as ConnectedIIIFAuthentication, vc as ConnectedIIIFThumbnail, hs as ConnectedLabelValueMetadata, vr as ConnectedLanguageSettings, Vi as ConnectedLayersPanel, Bo as ConnectedLocalePicker, $r as ConnectedManifestForm, po as ConnectedManifestInfo, Vr as ConnectedManifestListItem, da as ConnectedManifestListItemError, Ka as ConnectedManifestRelatedLinks, Na as ConnectedMinimalWindow, xc as ConnectedMiradorMenuButton, Yr as ConnectedMosaicRenderPreview, Xs as ConnectedOpenSeadragonViewer, Ui as ConnectedPrimaryWindow, Hi as ConnectedSanitizedHtml, Br as ConnectedScrollIndicatedDialogContent, yr as ConnectedSearchHit, Rr as ConnectedSearchPanel, Oi as ConnectedSearchPanelControls, ei as ConnectedSearchPanelNavigation, wi as ConnectedSearchResults, Ac as ConnectedSelectCollection, ca as ConnectedSidebarIndexItem, ci as ConnectedSidebarIndexList, Xr as ConnectedSidebarIndexTableOfContents, ii as ConnectedSidebarIndexThumbnail, Vc as ConnectedTextViewer, xo as ConnectedThumbnailCanvasGrouping, Pr as ConnectedThumbnailNavigation, Uc as ConnectedVideoViewer, jc as ConnectedViewerInfo, Lc as ConnectedViewerNavigation, Ua as ConnectedWindow, co as ConnectedWindowAuthenticationBar, zc as ConnectedWindowCanvasNavigationControls, ra as ConnectedWindowList, Ja as ConnectedWindowListButton, Ai as ConnectedWindowSideBar, jo as ConnectedWindowSideBarAnnotationsPanel, ni as ConnectedWindowSideBarButtons, Cr as ConnectedWindowSideBarCanvasPanel, ys as ConnectedWindowSideBarCollectionPanel, Mi as ConnectedWindowSideBarInfoPanel, zo as ConnectedWindowThumbnailSettings, Bs as ConnectedWindowTopBar, ma as ConnectedWindowTopBarPluginArea, Xo as ConnectedWindowTopBarPluginMenu, Jr as ConnectedWindowTopBarTitle, Ga as ConnectedWindowTopMenu, va as ConnectedWindowTopMenuButton, Po as ConnectedWindowViewSettings, Gc as ConnectedWindowViewer, Lo as ConnectedWorkspace, wa as ConnectedWorkspaceAdd, ho as ConnectedWorkspaceAddButton, ss as ConnectedWorkspaceArea, ns as ConnectedWorkspaceControlPanel, fs as ConnectedWorkspaceControlPanelButtons, Fi as ConnectedWorkspaceElastic, Do as ConnectedWorkspaceElasticWindow, Ms as ConnectedWorkspaceExport, ya as ConnectedWorkspaceImport, Er as ConnectedWorkspaceMenu, Ds as ConnectedWorkspaceMenuButton, Ls as ConnectedWorkspaceMosaic, Ho as ConnectedWorkspaceOptionsButton, io as ConnectedWorkspaceOptionsMenu, Ir as ConnectedWorkspaceSelectionDialog, Rc as ConnectedZoomControls, ks as CustomPanel, ge as EMPTY_ARRAY, C as EMPTY_OBJECT, Si as ErrorContent, Io as ErrorDialog, oa as FullScreenButton, Xa as FullScreenContext, Dc as GalleryView, fo as GalleryViewIcon, Tc as GalleryViewThumbnail, Mo as IIIFAuthentication, mr as IIIFDropTarget, Is as IIIFIFrameCommunication, gc as IIIFThumbnail, qs as ImageFailureMessage, Ha as LabelValueMetadata, ji as LanguageSettings, Or as LayersPanel, as as LocalePicker, Ky as MAP_VIEWER_LANGUAGES, ha as ManifestForm, Da as ManifestInfo, ri as ManifestListItem, sa as ManifestListItemError, us as ManifestRelatedLinks, qy as MapViewer, js as MinimalWindow, Ce as MiradorCanvas, Vo as MiradorIcon, Cn as MiradorManifest, bc as MiradorMenuButton, Rv as MiradorViewer, $i as MosaicLayout, qo as MosaicRenderPreview, si as NestedMenu, Ca as NewBrowserWindow, Gs as OSDReferences, Zs as OpenSeadragonCanvasOverlay, Js as OpenSeadragonViewer, re as PluginContext, hc as PluginHook, zl as PluginProvider, Ar as PrimaryWindow, Pc as RestoreZoomIcon, kr as SanitizedHtml, Fr as ScrollIndicatedDialogContent, As as ScrollTo, go as SearchHit, Nr as SearchPanel, Hr as SearchPanelControls, fi as SearchPanelNavigation, bo as SearchResults, kc as SelectCollection, ga as SidebarIndexItem, Jo as SidebarIndexList, Xi as SidebarIndexTableOfContents, fa as SidebarIndexThumbnail, Bc as TextViewer, br as ThumbnailCanvasGrouping, Ot as ThumbnailFactory, Ti as ThumbnailNavigation, To as ThumbnailNavigationBottomIcon, Ia as ThumbnailNavigationRightIcon, gi as TruncatedHit, Hc as VideoViewer, Ic as ViewerInfo, Nc as ViewerNavigation, Qa as Window, ro as WindowAuthenticationBar, Fc as WindowCanvasNavigationControls, Gr as WindowList, Yi as WindowListButton, Qr as WindowMaxIcon, na as WindowMinIcon, _r as WindowOptionsIcon, Wr as WindowSideBar, so as WindowSideBarAnnotationsPanel, mi as WindowSideBarButtons, ea as WindowSideBarCanvasPanel, Ps as WindowSideBarCollectionPanel, hr as WindowSideBarInfoPanel, is as WindowThumbnailSettings, Tr as WindowTopBar, ua as WindowTopBarPluginArea, oi as WindowTopBarPluginMenu, ui as WindowTopBarTitle, ls as WindowTopMenu, Pi as WindowTopMenuButton, $o as WindowViewSettings, Wc as WindowViewer, di as Workspace, Di as WorkspaceAdd, yi as WorkspaceAddButton, Zo as WorkspaceArea, Sc as WorkspaceContext, Pa as WorkspaceControlPanel, za as WorkspaceControlPanelButtons, mo as WorkspaceDialog, Ra as WorkspaceElastic, gs as WorkspaceElasticWindow, ka as WorkspaceExport, _s as WorkspaceImport, Ss as WorkspaceMenu, zi as WorkspaceMenuButton, Sr as WorkspaceMosaic, Oo as WorkspaceOptionsButton, $a as WorkspaceOptionsMenu, jr as WorkspaceSelectionDialog, yo as WorkspaceTypeElasticIcon, Ci as WorkspaceTypeMosaicIcon, Mc as ZoomControls, i_ as accessTokensReducer, ta as addAuthenticationRequest, Ya as addCompanionWindow, Ro as addError, Uo as addOrUpdateCompanionWindow, Ll as addPluginsToCompanionWindowsRegistry, _o as addResource, cc as addWindow, Dy as annotationPagesItems, F_ as annotationsReducer, Pe as asArray, I_ as authReducer, Jv as backToParentMap, B_ as catalogReducer, S_ as companionWindowsReducer, N_ as configReducer, Il as connectPluginsToStore, Lv as createPluggableStore, Iv as createStore, Fl as createTargetToPluginMapping, mc as cssNs, Jy as default, Gy as defaultMapViewerConfig, Jn as deselectAnnotation, L_ as elasticLayoutReducer, gy as ensurePointVisible, w_ as errorsReducer, ko as expandNodes, Ml as fetchInfoResponse, cs as fetchManifest, ki as fetchSearch, Wp as filterValidPlugins, _y as fitMapToPoints, hy as focusMapOnPoint, ic as focusWindow, vs as getAccessTokens, _t as getAllowedWindowViewTypes, nr as getAnnotationResourcesByMotivation, Pn as getAnnotationResourcesByMotivationForCanvas, Dn as getAnnotationResourcesDataForCanvas, En as getAnnotations, Ns as getAuth, Aa as getAuthProfiles, Qt as getBestThumbnail, cn as getCanvas, Oy as getCanvasAnnotationItems, Ey as getCanvasAnnotationPages, Gt as getCanvasDescription, er as getCanvasForAnnotation, tn as getCanvasGrouping, Nt as getCanvasGroupings, Ve as getCanvasIndex, ht as getCanvasLabel, sr as getCanvasLayers, qt as getCanvasMetadata, an as getCanvases, me as getCatalog, tt as getCompanionAreaVisibility, Oe as getCompanionWindow, M as getCompanionWindowIdsForPosition, Ke as getCompanionWindowLocale, zt as getCompanionWindows, xe as getCompanionWindowsForContent, Lt as getCompanionWindowsForPosition, Wt as getConfig, Jp as getConfigFromPlugins, Mt as getContainerId, ey as getContentLocale, yt as getCurrentCanvas, Ws as getCurrentCanvasWorld, Bi as getDefaultSidebarVariant, Sn as getDestructuredMetadata, De as getElasticLayout, Dr as getExpandedNodeIds, At as getExportableState, Ee as getFocusedWindowId, Ge as getFullScreenEnabled, pn as getIiifThumbnailOpts, mt as getLanguagesFromConfigWithCurrent, Rt as getLatestError, ar as getLayers, ur as getLayersForVisibleCanvases, pr as getLayersForWindow, Wv as getLinkedMapManifestId, Se as getLocale, oe as getManifest, it as getManifestAutocompleteService, je as getManifestDescription, nt as getManifestError, ot as getManifestHomepage, Ae as getManifestLocale, Le as getManifestLogo, $t as getManifestMetadata, Fe as getManifestProviderName, ut as getManifestRelated, ct as getManifestRelatedContent, ft as getManifestRenderings, Je as getManifestSearchService, ye as getManifestSeeAlso, Tt as getManifestStatus, un as getManifestSummary, Kt as getManifestThumbnail, rn as getManifestTitle, Ft as getManifestUrl, gt as getManifestoInstance, ue as getManifests, Cs as getManuallyExpandedNodeIds, vn as getMaximizedWindowsIds, Yt as getMetadataLocales, Be as getMiradorCanvasWrapper, Ze as getMiradorManifestWrapper, Bt as getNextCanvasGrouping, zn as getNextSearchId, Iy as getNextTourStep, Gi as getNodeIdToScrollTo, iy as getOrderedJourneyPois, ay as getPoiPoint, jn as getPresentAnnotationsOnSelectedCanvases, Ay as getPreviewAnnotationId, ky as getPreviewCompanionWindowId, dn as getPreviousCanvasGrouping, sn as getProviderLogo, qp as getReducersFromPlugins, hn as getRequestsConfig, xt as getRequiredStatement, Bn as getResourceAnnotationForSearchHit, Xn as getResourceAnnotationLabel, Ht as getRights, Yp as getSagasFromPlugins, qn as getSearchAnnotationsForCompanionWindow, Hn as getSearchAnnotationsForWindow, Vn as getSearchForWindow, Fn as getSearchIsFetching, tr as getSearchNumTotal, ir as getSearchQuery, Gn as getSelectedAnnotationId, wn as getSelectedAnnotationsOnCanvases, Ln as getSelectedContentSearchAnnotationIds, Ue as getSequence, qe as getSequenceBehaviors, ke as getSequenceTreeStructure, Ne as getSequenceViewingDirection, ze as getSequenceViewingHint, Xe as getSequences, xn as getShowZoomControlsConfig, or as getSortedLayers, rr as getSortedSearchAnnotationsForCompanionWindow, Nn as getSortedSearchHitsForCompanionWindow, Vy as getSwipeDirection, vt as getTheme, yn as getThemeDirection, $e as getThemeIds, wt as getThumbnailFactory, He as getThumbnailNavigationPosition, Te as getThumbnailsConfig, Fy as getTourSteps, ne as getViewer, St as getVisibleCanvasAudioResources, Et as getVisibleCanvasCaptions, Xt as getVisibleCanvasIds, Ut as getVisibleCanvasNonTiledResources, jt as getVisibleCanvasTextResources, kt as getVisibleCanvasVideoResources, pt as getVisibleCanvases, fy as getVisibleMapArea, Lr as getVisibleNodeIds, y as getWindow, Qe as getWindowConfig, we as getWindowDraggability, ce as getWindowIds, fe as getWindowManifests, gn as getWindowTitles, et as getWindowViewType, S as getWindows, ae as getWorkspace, be as getWorkspaceType, qa as handleDrop, oc as hideCollectionDialog, Zn as hoverAnnotation, Ts as htmlRules, Fa as importConfig, wo as importMiradorState, A_ as infoResponsesReducer, It as isFocused, Hs as journeyStopNumbers, z_ as layersReducer, k_ as manifestsReducer, Wy as mapInteractionPlugins, nc as maximizeWindow, Qs as minimizeWindow, E as miradorSlice, Xv as nestedMapPlugins, qv as openNestedMap, jy as openPreview, Ny as poiPreviewPlugins, ds as readImageMetadata, Zr as receiveAccessToken, Zi as receiveAccessTokenFailure, Un as receiveAnnotation, In as receiveAnnotationFailure, Al as receiveDegradedInfoResponse, kl as receiveInfoResponse, jl as receiveInfoResponseFailure, No as receiveManifest, Qo as receiveManifestFailure, Ur as receiveSearch, ti as receiveSearchFailure, ao as removeCompanionWindow, rs as removeError, Nl as removeInfoResponse, uo as removeManifest, _i as removeResource, pi as removeSearch, ac as removeWindow, aa as requestAccessToken, Yn as requestAnnotation, Qn as requestCanvasAnnotations, Ol as requestInfoResponse, Ta as requestManifest, Li as requestSearch, qr as resetAuthenticationState, li as resolveAccessTokenRequest, Yo as resolveAuthenticationRequest, H_ as rootReducer, Fv as rootSaga, R_ as searchesReducer, Rn as selectAnnotation, We as selectCompanionWindowDimensions, Os as selectCurrentAuthServices, mn as selectInfoResponse, bn as selectInfoResponses, pc as setCanvas, sc as setCompanionAreaOpen, ps as setConfig, zs as setContentSearchCurrentAnnotation, dc as setNextCanvas, fc as setPreviousCanvas, $s as setWindowThumbnailPosition, rc as setWindowViewType, ai as setWorkspaceAddVisibility, pa as setWorkspaceViewportDimensions, la as setWorkspaceViewportPosition, k as settings, lc as showCollectionDialog, Tn as sortSearchAnnotationsByCanvasOrder, Kn as toggleAnnotationDisplay, _a as toggleDraggingEnabled, eo as toggleNode, ec as toggleWindowSideBar, Ni as toggleZoomControls, ba as updateCompanionWindow, Ba as updateConfig, wr as updateElasticWindowLayout, xi as updateLayers, uc as updateViewport, tc as updateWindow, gr as updateWorkspace, Wa as updateWorkspaceMosaicLayout, My as usePreviewPosition, al as useTranslation, Ip as validatePlugin, zv as viewer, P_ as viewersReducer, O_ as windowsReducer, ee as withPlugins, ol as withTranslation, D_ as workspaceReducer };
|
|
9861
|
+
export { xs as AccessTokenSender, N as ActionTypes, Wn as AnnotationFactory, An as AnnotationItem, Mn as AnnotationList, kn as AnnotationPage, On as AnnotationResource, zr as AnnotationSettings, Ys as AnnotationsOverlay, Dp as App, wp as AppProviders, Rs as AttributionPanel, Cc as AudioViewer, os as BackgroundPluginArea, Ea as BookViewIcon, Oa as Branding, Ks as CanvasAnnotationDisplay, Ma as CanvasAnnotations, rt as CanvasGroupings, Ri as CanvasIndexIcon, Eo as CanvasInfo, Ki as CanvasLayers, lr as CanvasWorld, ts as ChangeThemeDialog, Go as CollapsibleSection, Ji as CollectionDialog, es as CollectionInfo, So as CompanionArea, bs as CompanionWindow, vo as CompanionWindowFactory, xa as CompanionWindowRegistry, no as CompanionWindowSection, qi as ConnectedAnnotationSettings, Vs as ConnectedAnnotationsOverlay, Tp as ConnectedAppProviders, Ii as ConnectedAttributionPanel, wc as ConnectedAudioViewer, lo as ConnectedBackgroundPluginArea, Co as ConnectedBranding, Fs as ConnectedCanvasAnnotations, La as ConnectedCanvasInfo, ws as ConnectedCanvasLayers, Wi as ConnectedChangeThemeDialog, Za as ConnectedCollapsibleSection, Es as ConnectedCollectionDialog, Fo as ConnectedCollectionInfo, Ei as ConnectedCompanionArea, Sa as ConnectedCompanionWindow, xr as ConnectedCompanionWindowFactory, ja as ConnectedCustomPanel, vi as ConnectedErrorContent, hi as ConnectedErrorDialog, Qi as ConnectedFullScreenButton, Oc as ConnectedGalleryView, Ec as ConnectedGalleryViewThumbnail, Ko as ConnectedIIIFAuthentication, vc as ConnectedIIIFThumbnail, hs as ConnectedLabelValueMetadata, vr as ConnectedLanguageSettings, Vi as ConnectedLayersPanel, Bo as ConnectedLocalePicker, $r as ConnectedManifestForm, po as ConnectedManifestInfo, Vr as ConnectedManifestListItem, da as ConnectedManifestListItemError, Ka as ConnectedManifestRelatedLinks, Na as ConnectedMinimalWindow, xc as ConnectedMiradorMenuButton, Yr as ConnectedMosaicRenderPreview, Xs as ConnectedOpenSeadragonViewer, Ui as ConnectedPrimaryWindow, Hi as ConnectedSanitizedHtml, Br as ConnectedScrollIndicatedDialogContent, yr as ConnectedSearchHit, Rr as ConnectedSearchPanel, Oi as ConnectedSearchPanelControls, ei as ConnectedSearchPanelNavigation, wi as ConnectedSearchResults, Ac as ConnectedSelectCollection, ca as ConnectedSidebarIndexItem, ci as ConnectedSidebarIndexList, Xr as ConnectedSidebarIndexTableOfContents, ii as ConnectedSidebarIndexThumbnail, Vc as ConnectedTextViewer, xo as ConnectedThumbnailCanvasGrouping, Pr as ConnectedThumbnailNavigation, Uc as ConnectedVideoViewer, jc as ConnectedViewerInfo, Lc as ConnectedViewerNavigation, Ua as ConnectedWindow, co as ConnectedWindowAuthenticationBar, zc as ConnectedWindowCanvasNavigationControls, ra as ConnectedWindowList, Ja as ConnectedWindowListButton, Ai as ConnectedWindowSideBar, jo as ConnectedWindowSideBarAnnotationsPanel, ni as ConnectedWindowSideBarButtons, Cr as ConnectedWindowSideBarCanvasPanel, ys as ConnectedWindowSideBarCollectionPanel, Mi as ConnectedWindowSideBarInfoPanel, zo as ConnectedWindowThumbnailSettings, Bs as ConnectedWindowTopBar, ma as ConnectedWindowTopBarPluginArea, Xo as ConnectedWindowTopBarPluginMenu, Jr as ConnectedWindowTopBarTitle, Ga as ConnectedWindowTopMenu, va as ConnectedWindowTopMenuButton, Po as ConnectedWindowViewSettings, Gc as ConnectedWindowViewer, Lo as ConnectedWorkspace, wa as ConnectedWorkspaceAdd, ho as ConnectedWorkspaceAddButton, ss as ConnectedWorkspaceArea, ns as ConnectedWorkspaceControlPanel, fs as ConnectedWorkspaceControlPanelButtons, Fi as ConnectedWorkspaceElastic, Do as ConnectedWorkspaceElasticWindow, Ms as ConnectedWorkspaceExport, ya as ConnectedWorkspaceImport, Er as ConnectedWorkspaceMenu, Ds as ConnectedWorkspaceMenuButton, Ls as ConnectedWorkspaceMosaic, Ho as ConnectedWorkspaceOptionsButton, io as ConnectedWorkspaceOptionsMenu, Ir as ConnectedWorkspaceSelectionDialog, Rc as ConnectedZoomControls, ks as CustomPanel, ge as EMPTY_ARRAY, C as EMPTY_OBJECT, Si as ErrorContent, Io as ErrorDialog, oa as FullScreenButton, Xa as FullScreenContext, Dc as GalleryView, fo as GalleryViewIcon, Tc as GalleryViewThumbnail, Mo as IIIFAuthentication, mr as IIIFDropTarget, Is as IIIFIFrameCommunication, gc as IIIFThumbnail, qs as ImageFailureMessage, Ha as LabelValueMetadata, ji as LanguageSettings, Or as LayersPanel, as as LocalePicker, qy as MAP_VIEWER_LANGUAGES, ha as ManifestForm, Da as ManifestInfo, ri as ManifestListItem, sa as ManifestListItemError, us as ManifestRelatedLinks, Jy as MapViewer, js as MinimalWindow, Ce as MiradorCanvas, Vo as MiradorIcon, Cn as MiradorManifest, bc as MiradorMenuButton, Rv as MiradorViewer, $i as MosaicLayout, qo as MosaicRenderPreview, si as NestedMenu, Ca as NewBrowserWindow, Gs as OSDReferences, Zs as OpenSeadragonCanvasOverlay, Js as OpenSeadragonViewer, re as PluginContext, hc as PluginHook, zl as PluginProvider, Ar as PrimaryWindow, Pc as RestoreZoomIcon, kr as SanitizedHtml, Fr as ScrollIndicatedDialogContent, As as ScrollTo, go as SearchHit, Nr as SearchPanel, Hr as SearchPanelControls, fi as SearchPanelNavigation, bo as SearchResults, kc as SelectCollection, ga as SidebarIndexItem, Jo as SidebarIndexList, Xi as SidebarIndexTableOfContents, fa as SidebarIndexThumbnail, Bc as TextViewer, br as ThumbnailCanvasGrouping, Ot as ThumbnailFactory, Ti as ThumbnailNavigation, To as ThumbnailNavigationBottomIcon, Ia as ThumbnailNavigationRightIcon, gi as TruncatedHit, Hc as VideoViewer, Ic as ViewerInfo, Nc as ViewerNavigation, Qa as Window, ro as WindowAuthenticationBar, Fc as WindowCanvasNavigationControls, Gr as WindowList, Yi as WindowListButton, Qr as WindowMaxIcon, na as WindowMinIcon, _r as WindowOptionsIcon, Wr as WindowSideBar, so as WindowSideBarAnnotationsPanel, mi as WindowSideBarButtons, ea as WindowSideBarCanvasPanel, Ps as WindowSideBarCollectionPanel, hr as WindowSideBarInfoPanel, is as WindowThumbnailSettings, Tr as WindowTopBar, ua as WindowTopBarPluginArea, oi as WindowTopBarPluginMenu, ui as WindowTopBarTitle, ls as WindowTopMenu, Pi as WindowTopMenuButton, $o as WindowViewSettings, Wc as WindowViewer, di as Workspace, Di as WorkspaceAdd, yi as WorkspaceAddButton, Zo as WorkspaceArea, Sc as WorkspaceContext, Pa as WorkspaceControlPanel, za as WorkspaceControlPanelButtons, mo as WorkspaceDialog, Ra as WorkspaceElastic, gs as WorkspaceElasticWindow, ka as WorkspaceExport, _s as WorkspaceImport, Ss as WorkspaceMenu, zi as WorkspaceMenuButton, Sr as WorkspaceMosaic, Oo as WorkspaceOptionsButton, $a as WorkspaceOptionsMenu, jr as WorkspaceSelectionDialog, yo as WorkspaceTypeElasticIcon, Ci as WorkspaceTypeMosaicIcon, Mc as ZoomControls, i_ as accessTokensReducer, ta as addAuthenticationRequest, Ya as addCompanionWindow, Ro as addError, Uo as addOrUpdateCompanionWindow, Ll as addPluginsToCompanionWindowsRegistry, _o as addResource, cc as addWindow, Oy as annotationPagesItems, F_ as annotationsReducer, Pe as asArray, I_ as authReducer, Jv as backToParentMap, B_ as catalogReducer, S_ as companionWindowsReducer, N_ as configReducer, Il as connectPluginsToStore, Lv as createPluggableStore, Iv as createStore, Fl as createTargetToPluginMapping, mc as cssNs, Yy as default, Ky as defaultMapViewerConfig, Jn as deselectAnnotation, ey as editInPlaceOfPreview, L_ as elasticLayoutReducer, _y as ensurePointVisible, w_ as errorsReducer, ko as expandNodes, Ml as fetchInfoResponse, cs as fetchManifest, ki as fetchSearch, Wp as filterValidPlugins, vy as fitMapToPoints, gy as focusMapOnPoint, ic as focusWindow, vs as getAccessTokens, _t as getAllowedWindowViewTypes, nr as getAnnotationResourcesByMotivation, Pn as getAnnotationResourcesByMotivationForCanvas, Dn as getAnnotationResourcesDataForCanvas, En as getAnnotations, Ns as getAuth, Aa as getAuthProfiles, Qt as getBestThumbnail, cn as getCanvas, ky as getCanvasAnnotationItems, Dy as getCanvasAnnotationPages, Gt as getCanvasDescription, er as getCanvasForAnnotation, tn as getCanvasGrouping, Nt as getCanvasGroupings, Ve as getCanvasIndex, ht as getCanvasLabel, sr as getCanvasLayers, qt as getCanvasMetadata, an as getCanvases, me as getCatalog, tt as getCompanionAreaVisibility, Oe as getCompanionWindow, M as getCompanionWindowIdsForPosition, Ke as getCompanionWindowLocale, zt as getCompanionWindows, xe as getCompanionWindowsForContent, Lt as getCompanionWindowsForPosition, Wt as getConfig, Jp as getConfigFromPlugins, Mt as getContainerId, ty as getContentLocale, yt as getCurrentCanvas, Ws as getCurrentCanvasWorld, Bi as getDefaultSidebarVariant, Sn as getDestructuredMetadata, De as getElasticLayout, Dr as getExpandedNodeIds, At as getExportableState, Ee as getFocusedWindowId, Ge as getFullScreenEnabled, pn as getIiifThumbnailOpts, mt as getLanguagesFromConfigWithCurrent, Rt as getLatestError, ar as getLayers, ur as getLayersForVisibleCanvases, pr as getLayersForWindow, Wv as getLinkedMapManifestId, Se as getLocale, oe as getManifest, it as getManifestAutocompleteService, je as getManifestDescription, nt as getManifestError, ot as getManifestHomepage, Ae as getManifestLocale, Le as getManifestLogo, $t as getManifestMetadata, Fe as getManifestProviderName, ut as getManifestRelated, ct as getManifestRelatedContent, ft as getManifestRenderings, Je as getManifestSearchService, ye as getManifestSeeAlso, Tt as getManifestStatus, un as getManifestSummary, Kt as getManifestThumbnail, rn as getManifestTitle, Ft as getManifestUrl, gt as getManifestoInstance, ue as getManifests, Cs as getManuallyExpandedNodeIds, vn as getMaximizedWindowsIds, Yt as getMetadataLocales, Be as getMiradorCanvasWrapper, Ze as getMiradorManifestWrapper, Bt as getNextCanvasGrouping, zn as getNextSearchId, Ly as getNextTourStep, Gi as getNodeIdToScrollTo, ay as getOrderedJourneyPois, oy as getPoiPoint, jn as getPresentAnnotationsOnSelectedCanvases, jy as getPreviewAnnotationId, Ay as getPreviewCompanionWindowId, dn as getPreviousCanvasGrouping, sn as getProviderLogo, qp as getReducersFromPlugins, hn as getRequestsConfig, xt as getRequiredStatement, Bn as getResourceAnnotationForSearchHit, Xn as getResourceAnnotationLabel, Ht as getRights, Yp as getSagasFromPlugins, qn as getSearchAnnotationsForCompanionWindow, Hn as getSearchAnnotationsForWindow, Vn as getSearchForWindow, Fn as getSearchIsFetching, tr as getSearchNumTotal, ir as getSearchQuery, Gn as getSelectedAnnotationId, wn as getSelectedAnnotationsOnCanvases, Ln as getSelectedContentSearchAnnotationIds, Ue as getSequence, qe as getSequenceBehaviors, ke as getSequenceTreeStructure, Ne as getSequenceViewingDirection, ze as getSequenceViewingHint, Xe as getSequences, xn as getShowZoomControlsConfig, or as getSortedLayers, rr as getSortedSearchAnnotationsForCompanionWindow, Nn as getSortedSearchHitsForCompanionWindow, Hy as getSwipeDirection, vt as getTheme, yn as getThemeDirection, $e as getThemeIds, wt as getThumbnailFactory, He as getThumbnailNavigationPosition, Te as getThumbnailsConfig, Iy as getTourSteps, ne as getViewer, St as getVisibleCanvasAudioResources, Et as getVisibleCanvasCaptions, Xt as getVisibleCanvasIds, Ut as getVisibleCanvasNonTiledResources, jt as getVisibleCanvasTextResources, kt as getVisibleCanvasVideoResources, pt as getVisibleCanvases, py as getVisibleMapArea, Lr as getVisibleNodeIds, y as getWindow, Qe as getWindowConfig, we as getWindowDraggability, ce as getWindowIds, fe as getWindowManifests, gn as getWindowTitles, et as getWindowViewType, S as getWindows, ae as getWorkspace, be as getWorkspaceType, qa as handleDrop, oc as hideCollectionDialog, Zn as hoverAnnotation, Ts as htmlRules, Fa as importConfig, wo as importMiradorState, A_ as infoResponsesReducer, It as isFocused, Hs as journeyStopNumbers, z_ as layersReducer, k_ as manifestsReducer, Gy as mapInteractionPlugins, nc as maximizeWindow, Qs as minimizeWindow, E as miradorSlice, Xv as nestedMapPlugins, qv as openNestedMap, My as openPreview, Py as poiPreviewPlugins, ds as readImageMetadata, Zr as receiveAccessToken, Zi as receiveAccessTokenFailure, Un as receiveAnnotation, In as receiveAnnotationFailure, Al as receiveDegradedInfoResponse, kl as receiveInfoResponse, jl as receiveInfoResponseFailure, No as receiveManifest, Qo as receiveManifestFailure, Ur as receiveSearch, ti as receiveSearchFailure, ao as removeCompanionWindow, rs as removeError, Nl as removeInfoResponse, uo as removeManifest, _i as removeResource, pi as removeSearch, ac as removeWindow, aa as requestAccessToken, Yn as requestAnnotation, Qn as requestCanvasAnnotations, Ol as requestInfoResponse, Ta as requestManifest, Li as requestSearch, qr as resetAuthenticationState, li as resolveAccessTokenRequest, Yo as resolveAuthenticationRequest, H_ as rootReducer, Fv as rootSaga, R_ as searchesReducer, Rn as selectAnnotation, We as selectCompanionWindowDimensions, Os as selectCurrentAuthServices, mn as selectInfoResponse, bn as selectInfoResponses, pc as setCanvas, sc as setCompanionAreaOpen, ps as setConfig, zs as setContentSearchCurrentAnnotation, dc as setNextCanvas, fc as setPreviousCanvas, $s as setWindowThumbnailPosition, rc as setWindowViewType, ai as setWorkspaceAddVisibility, pa as setWorkspaceViewportDimensions, la as setWorkspaceViewportPosition, k as settings, lc as showCollectionDialog, Tn as sortSearchAnnotationsByCanvasOrder, Kn as toggleAnnotationDisplay, _a as toggleDraggingEnabled, eo as toggleNode, ec as toggleWindowSideBar, Ni as toggleZoomControls, ba as updateCompanionWindow, Ba as updateConfig, wr as updateElasticWindowLayout, xi as updateLayers, uc as updateViewport, tc as updateWindow, gr as updateWorkspace, Wa as updateWorkspaceMosaicLayout, Ny as usePreviewPosition, al as useTranslation, Ip as validatePlugin, zv as viewer, P_ as viewersReducer, O_ as windowsReducer, ee as withPlugins, ol as withTranslation, D_ as workspaceReducer };
|
|
9855
9862
|
|
|
9856
9863
|
//# sourceMappingURL=mirador.es.js.map
|