dbf-mirador 4.4.0 → 4.5.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.
@@ -9525,16 +9525,16 @@ var Yv = { viewer: Jv }, Xv = {
9525
9525
  }),
9526
9526
  mode: "add",
9527
9527
  target: "OpenSeadragonViewer"
9528
- }], ob = .3, sb = (e) => {
9528
+ }], ob = .3, sb = .5, cb = (e) => {
9529
9529
  let t = getComputedStyle(e);
9530
9530
  return /^(inline-)?flex$/.test(t.display) && t.flexDirection.startsWith("row");
9531
- }, cb = (e) => Math.abs(e.scrollLeft), lb = (e) => {
9532
- let t = cb(e);
9531
+ }, lb = (e) => Math.abs(e.scrollLeft), ub = (e) => {
9532
+ let t = lb(e);
9533
9533
  return {
9534
9534
  atEnd: t >= e.scrollWidth - e.clientWidth - 1,
9535
9535
  atStart: t <= 1
9536
9536
  };
9537
- }, ub = (e, t, n) => {
9537
+ }, db = (e) => e.scrollTop > 0 && e.scrollTop + e.clientHeight >= e.scrollHeight - 2, fb = (e, t, n) => {
9538
9538
  if (e.length === 0) return null;
9539
9539
  let r = t.getBoundingClientRect();
9540
9540
  if (n) {
@@ -9544,39 +9544,64 @@ var Yv = { viewer: Jv }, Xv = {
9544
9544
  };
9545
9545
  return e.reduce((e, t) => n(t) < n(e) ? t : e);
9546
9546
  }
9547
- if (t.scrollTop > 0 && t.scrollTop + t.clientHeight >= t.scrollHeight - 2) return e[e.length - 1];
9547
+ if (db(t)) return e[e.length - 1];
9548
9548
  let i = parseFloat(getComputedStyle(e[0]).scrollMarginTop) || 0, a = r.top + i + (r.height - i) * ob;
9549
9549
  return e.filter((e) => e.getBoundingClientRect().top <= a).pop() ?? e[0];
9550
- }, db = [
9550
+ }, pb = (e, t) => {
9551
+ if (e.length === 0) return null;
9552
+ let n = t.getBoundingClientRect(), r = parseFloat(getComputedStyle(e[0]).scrollMarginTop) || 0, i = n.top + r, a = n.height - r, o = a * sb, s = e.map((e) => e.getBoundingClientRect()), c = (e) => e.height > a;
9553
+ if (db(t)) {
9554
+ let t = e.length - 1, n = s[t].top - i;
9555
+ return {
9556
+ card: e[t],
9557
+ offset: n < 0 && c(s[t]) ? 0 : n
9558
+ };
9559
+ }
9560
+ let l = s.findIndex((e) => e.top < i && e.bottom > i && c(e)), u = s[0].top > i && t.scrollTop <= o ? {
9561
+ card: null,
9562
+ offset: -t.scrollTop
9563
+ } : null;
9564
+ return e.forEach((e, t) => {
9565
+ if (t <= l) return;
9566
+ let n = s[t].top - i;
9567
+ Math.abs(n) > o || n < 0 && c(s[t]) || (!u || Math.abs(n) < Math.abs(u.offset)) && (u = {
9568
+ card: e,
9569
+ offset: n
9570
+ });
9571
+ }), u;
9572
+ }, mb = 2, hb = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth", gb = [
9551
9573
  "wheel",
9552
9574
  "touchstart",
9553
9575
  "pointerdown",
9554
9576
  "keydown"
9555
- ], fb = ({ enabled: e, getColumnScroller: t, layout: n, listRef: r, onSelect: i, selectedId: a = null }) => {
9556
- let o = P(i), s = P(a), c = P(!1), l = P(null);
9577
+ ], _b = ({ enabled: e, getColumnScroller: t, layout: n, listRef: r, onSelect: i, onSnap: a, selectedId: o = null }) => {
9578
+ let s = P(i), c = P(a), l = P(o), u = P(!1), d = P(null);
9557
9579
  N(() => {
9558
- o.current = i, s.current = a;
9580
+ s.current = i, c.current = a, l.current = o;
9559
9581
  }), N(() => {
9560
- a !== l.current && (c.current = !1), l.current = null;
9561
- }, [a]), N(() => {
9582
+ o !== d.current && (u.current = !1), d.current = null;
9583
+ }, [o]), N(() => {
9562
9584
  let n = r.current;
9563
9585
  if (!e || !n) return;
9564
- let i = t(n), a = [n, ...i && i !== n ? [i] : []], u, d = () => {
9565
- c.current = !0;
9566
- }, f = () => {
9567
- if (!c.current) return;
9568
- let e = sb(n), t = e ? n : i;
9569
- if (!t) return;
9570
- let r = ub(Array.from(n.children).filter((e) => e instanceof HTMLElement && !!e.dataset.poiId), t, e)?.dataset.poiId;
9571
- !r || r === s.current || (l.current = r, o.current(r));
9586
+ let i = t(n), a = [n, ...i && i !== n ? [i] : []], o, f = () => {
9587
+ u.current = !0;
9572
9588
  }, p = () => {
9573
- clearTimeout(u), u = setTimeout(f, 150);
9589
+ if (!u.current) return;
9590
+ let e = cb(n), t = e ? n : i;
9591
+ if (!t) return;
9592
+ let r = Array.from(n.children).filter((e) => e instanceof HTMLElement && !!e.dataset.poiId), a = e || !c.current ? null : pb(r, t), o = (a?.card ?? fb(r, t, e))?.dataset.poiId;
9593
+ o && o !== l.current && (d.current = o, s.current(o)), !(!a || Math.abs(a.offset) < mb) && (a.card ? c.current?.(a.card, hb()) : t.scrollTo?.({
9594
+ behavior: hb(),
9595
+ top: 0
9596
+ }));
9597
+ }, m = () => {
9598
+ clearTimeout(o), o = setTimeout(p, 150);
9574
9599
  };
9575
9600
  return a.forEach((e) => {
9576
- db.forEach((t) => e.addEventListener(t, d, { passive: !0 })), e.addEventListener("scroll", p, { passive: !0 });
9601
+ gb.forEach((t) => e.addEventListener(t, f, { passive: !0 })), e.addEventListener("scroll", m, { passive: !0 });
9577
9602
  }), () => {
9578
- clearTimeout(u), a.forEach((e) => {
9579
- db.forEach((t) => e.removeEventListener(t, d)), e.removeEventListener("scroll", p);
9603
+ clearTimeout(o), a.forEach((e) => {
9604
+ gb.forEach((t) => e.removeEventListener(t, f)), e.removeEventListener("scroll", m);
9580
9605
  });
9581
9606
  };
9582
9607
  }, [
@@ -9584,21 +9609,21 @@ var Yv = { viewer: Jv }, Xv = {
9584
9609
  n,
9585
9610
  r
9586
9611
  ]);
9587
- }, pb = 310, mb = 168, hb = .4, gb = 8, _b = 50, vb = .5, yb = Math.PI / 6, bb = (e) => {
9588
- let t = Math.max(38, e - mb);
9612
+ }, vb = 310, yb = 168, bb = .4, xb = 8, Sb = 50, Cb = .5, wb = Math.PI / 6, Tb = (e) => {
9613
+ let t = Math.max(38, e - yb);
9589
9614
  return {
9590
9615
  collapsed: 38,
9591
9616
  full: t,
9592
- half: Math.min(pb, t)
9617
+ half: Math.min(vb, t)
9593
9618
  };
9594
- }, xb = (e, t, n) => {
9619
+ }, Eb = (e, t, n) => {
9595
9620
  let r = [...fy].sort((e, t) => n[e] - n[t]);
9596
- return t > hb ? r.find((t) => n[t] > e + 1) ?? r[r.length - 1] : t < -.4 ? [...r].reverse().find((t) => n[t] < e - 1) ?? r[0] : r.reduce((t, r) => Math.abs(n[r] - e) < Math.abs(n[t] - e) ? r : t);
9597
- }, Sb = (e, t, n, r) => Math.abs(e) < _b || Math.abs(e) / Math.max(1, n) < vb || Math.abs(t) > Math.abs(e) * Math.tan(yb) ? null : (r ? e > 0 : e < 0) ? 1 : -1, Cb = ({ bodyRef: e, enabled: t, headerRef: n, isRtl: r, windowId: i }) => {
9621
+ return t > bb ? r.find((t) => n[t] > e + 1) ?? r[r.length - 1] : t < -.4 ? [...r].reverse().find((t) => n[t] < e - 1) ?? r[0] : r.reduce((t, r) => Math.abs(n[r] - e) < Math.abs(n[t] - e) ? r : t);
9622
+ }, Db = (e, t, n, r) => Math.abs(e) < Sb || Math.abs(e) / Math.max(1, n) < Cb || Math.abs(t) > Math.abs(e) * Math.tan(wb) ? null : (r ? e > 0 : e < 0) ? 1 : -1, Ob = ({ bodyRef: e, enabled: t, headerRef: n, isRtl: r, windowId: i }) => {
9598
9623
  N(() => {
9599
9624
  let a = e.current, o = n.current;
9600
9625
  if (!t || !a || !o) return;
9601
- let s = () => a.closest("aside"), c = () => a.closest(".mirador-window"), l = () => bb(c()?.clientHeight ?? window.innerHeight), u = null, d = null, f = !1, p = () => {
9626
+ let s = () => a.closest("aside"), c = () => a.closest(".mirador-window"), l = () => Tb(c()?.clientHeight ?? window.innerHeight), u = null, d = null, f = !1, p = () => {
9602
9627
  delete a.dataset.dragging, c()?.style.removeProperty("--dbf-map-sheet-height");
9603
9628
  }, m = (e) => {
9604
9629
  if (!e.isPrimary || e.button !== 0) return;
@@ -9609,7 +9634,7 @@ var Yv = { viewer: Jv }, Xv = {
9609
9634
  let i = t.closest(".dbf-map-panel__list");
9610
9635
  u = {
9611
9636
  axis: null,
9612
- row: i && i.scrollWidth > i.clientWidth + 1 ? lb(i) : null,
9637
+ row: i && i.scrollWidth > i.clientWidth + 1 ? ub(i) : null,
9613
9638
  fromHeader: n,
9614
9639
  height: r,
9615
9640
  lastTime: e.timeStamp,
@@ -9624,7 +9649,7 @@ var Yv = { viewer: Jv }, Xv = {
9624
9649
  if (!u || e.pointerId !== u.pointerId) return;
9625
9650
  let t = e.clientX - u.x, n = e.clientY - u.y;
9626
9651
  if (!u.axis) {
9627
- if (Math.hypot(t, n) < gb) return;
9652
+ if (Math.hypot(t, n) < xb) return;
9628
9653
  if (u.axis = Math.abs(n) > Math.abs(t) ? "y" : "x", u.axis === "y" && !u.fromHeader) {
9629
9654
  u = null;
9630
9655
  return;
@@ -9638,14 +9663,14 @@ var Yv = { viewer: Jv }, Xv = {
9638
9663
  let { collapsed: i, full: s } = l(), d = Math.min(s, Math.max(i, u.height - n));
9639
9664
  c()?.style.setProperty("--dbf-map-sheet-height", `${d}px`);
9640
9665
  }, g = (e, t, n, a) => {
9641
- let o = Sb(t - e.x, n - e.y, a - e.time, r);
9666
+ let o = Db(t - e.x, n - e.y, a - e.time, r);
9642
9667
  o && (e.row && !(o === 1 ? e.row.atEnd : e.row.atStart) || Cy(i, o));
9643
9668
  }, _ = (e) => {
9644
9669
  if (!u || e.pointerId !== u.pointerId) return;
9645
9670
  let t = u;
9646
9671
  if (u = null, t.axis === "y") {
9647
9672
  let e = s()?.getBoundingClientRect().height ?? t.height;
9648
- p(), hy(i, xb(e, t.velocity, l())), f = !0, setTimeout(() => {
9673
+ p(), hy(i, Eb(e, t.velocity, l())), f = !0, setTimeout(() => {
9649
9674
  f = !1;
9650
9675
  }, 0);
9651
9676
  return;
@@ -9671,13 +9696,13 @@ var Yv = { viewer: Jv }, Xv = {
9671
9696
  r,
9672
9697
  i
9673
9698
  ]);
9674
- }, wb = [
9699
+ }, kb = [
9675
9700
  1,
9676
9701
  1.25,
9677
9702
  1.5,
9678
9703
  2,
9679
9704
  .75
9680
- ], Tb = /\.(mp3|m4a|aac|wav|ogg|oga|opus|flac)$/i, Eb = (e) => {
9705
+ ], Ab = /\.(mp3|m4a|aac|wav|ogg|oga|opus|flac)$/i, jb = (e) => {
9681
9706
  if (!e) return null;
9682
9707
  if (e.startsWith("/") && !e.startsWith("//")) return e;
9683
9708
  try {
@@ -9686,21 +9711,21 @@ var Yv = { viewer: Jv }, Xv = {
9686
9711
  } catch {
9687
9712
  return null;
9688
9713
  }
9689
- }, Db = (e) => {
9690
- let t = Eb(e?.url);
9714
+ }, Mb = (e) => {
9715
+ let t = jb(e?.url);
9691
9716
  if (!t || !e) return null;
9692
9717
  if (e.mime) return e.mime.startsWith("audio/") ? t : null;
9693
9718
  if (e.mediaType === "audio") return t;
9694
9719
  try {
9695
- return Tb.test(new URL(t, "http://localhost").pathname) ? t : null;
9720
+ return Ab.test(new URL(t, "http://localhost").pathname) ? t : null;
9696
9721
  } catch {
9697
9722
  return null;
9698
9723
  }
9699
- }, Ob = (e) => {
9724
+ }, Nb = (e) => {
9700
9725
  let t = Number.isFinite(e) && e > 0 ? Math.floor(e) : 0, n = String(t % 60).padStart(2, "0"), r = Math.floor(t / 60) % 60, i = Math.floor(t / 3600);
9701
9726
  return i > 0 ? `${i}:${String(r).padStart(2, "0")}:${n}` : `${r}:${n}`;
9702
- }, kb = null, Ab = ({ duration: e = null, labels: t, mime: n = null, src: r, title: i }) => {
9703
- let a = P(null), [o, s] = il(!1), [c, l] = il(0), [u, d] = il(e && e > 0 ? e : 0), [f, p] = il(!1), [m, h] = il(!1), [g, _] = il(wb[0]);
9727
+ }, Pb = null, Fb = ({ duration: e = null, labels: t, mime: n = null, src: r, title: i }) => {
9728
+ let a = P(null), [o, s] = il(!1), [c, l] = il(0), [u, d] = il(e && e > 0 ? e : 0), [f, p] = il(!1), [m, h] = il(!1), [g, _] = il(kb[0]);
9704
9729
  N(() => {
9705
9730
  let e = a.current;
9706
9731
  e && (e.playbackRate = g, e.loop = f, e.muted = m);
@@ -9711,7 +9736,7 @@ var Yv = { viewer: Jv }, Xv = {
9711
9736
  ]), N(() => {
9712
9737
  let e = a.current;
9713
9738
  return () => {
9714
- kb === e && (kb = null), e?.pause();
9739
+ Pb === e && (Pb = null), e?.pause();
9715
9740
  };
9716
9741
  }, []);
9717
9742
  let v = () => a.current, y = (e) => {
@@ -9722,7 +9747,7 @@ var Yv = { viewer: Jv }, Xv = {
9722
9747
  }, b = () => {
9723
9748
  let e = v();
9724
9749
  e && (e.paused ? e.play()?.catch(() => s(!1)) : e.pause());
9725
- }, x = u > 0 ? Math.min(100, c / u * 100) : 0, S = Ob(c > 0 ? c : u), C = `${g}×`;
9750
+ }, x = u > 0 ? Math.min(100, c / u * 100) : 0, S = Nb(c > 0 ? c : u), C = `${g}×`;
9726
9751
  return /* @__PURE__ */ I("div", {
9727
9752
  "aria-label": `${t.audio}: ${i}`,
9728
9753
  className: "dbf-map-audio",
@@ -9737,10 +9762,10 @@ var Yv = { viewer: Jv }, Xv = {
9737
9762
  },
9738
9763
  onEnded: () => s(!1),
9739
9764
  onPause: () => {
9740
- s(!1), kb === a.current && (kb = null);
9765
+ s(!1), Pb === a.current && (Pb = null);
9741
9766
  },
9742
9767
  onPlay: () => {
9743
- kb && kb !== a.current && kb.pause(), kb = a.current, s(!0);
9768
+ Pb && Pb !== a.current && Pb.pause(), Pb = a.current, s(!0);
9744
9769
  },
9745
9770
  onTimeUpdate: (e) => l(e.currentTarget.currentTime),
9746
9771
  preload: "metadata",
@@ -9799,12 +9824,12 @@ var Yv = { viewer: Jv }, Xv = {
9799
9824
  className: "dbf-map-audio__button",
9800
9825
  "data-action": "speed",
9801
9826
  "data-rate": g === 1 ? void 0 : C,
9802
- onClick: () => _((e) => wb[(wb.indexOf(e) + 1) % wb.length]),
9827
+ onClick: () => _((e) => kb[(kb.indexOf(e) + 1) % kb.length]),
9803
9828
  type: "button"
9804
9829
  }),
9805
9830
  /* @__PURE__ */ F("input", {
9806
9831
  "aria-label": t.seek,
9807
- "aria-valuetext": `${Ob(c)} / ${Ob(u)}`,
9832
+ "aria-valuetext": `${Nb(c)} / ${Nb(u)}`,
9808
9833
  className: "dbf-map-audio__seek",
9809
9834
  disabled: u <= 0,
9810
9835
  max: u > 0 ? u : 0,
@@ -9837,27 +9862,27 @@ var Yv = { viewer: Jv }, Xv = {
9837
9862
  })
9838
9863
  ]
9839
9864
  });
9840
- }, jb = (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, Mb = (e) => {
9841
- 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) => jb({
9865
+ }, Ib = (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, Lb = (e) => {
9866
+ 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) => Ib({
9842
9867
  id: e.id,
9843
9868
  order: e["dbf:journey"]?.order
9844
9869
  }, {
9845
9870
  id: t.id,
9846
9871
  order: t["dbf:journey"]?.order
9847
9872
  }));
9848
- 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) => jb({
9873
+ 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) => Ib({
9849
9874
  id: e.id,
9850
9875
  order: e["dbf:order"]
9851
9876
  }, {
9852
9877
  id: t.id,
9853
9878
  order: t["dbf:order"]
9854
9879
  })).flatMap((e) => e["dbf:kind"] === "Journey" ? r(e.id) : [e]);
9855
- }, Nb = [
9880
+ }, Rb = [
9856
9881
  "fill",
9857
9882
  "halfway",
9858
9883
  "firstPoi"
9859
- ], Pb = (e) => Nb.includes(e) ? e : "fill", Fb = (e, t) => Math.sqrt(e * t), Ib = ({ container: e, fillPixel: t, fillZoom: n, focusPixel: r, focusZoom: i, point: a }) => {
9860
- let o = 1 / (Fb(n, i) * e.x), s = {
9884
+ ], zb = (e) => Rb.includes(e) ? e : "fill", Bb = (e, t) => Math.sqrt(e * t), Vb = ({ container: e, fillPixel: t, fillZoom: n, focusPixel: r, focusZoom: i, point: a }) => {
9885
+ let o = 1 / (Bb(n, i) * e.x), s = {
9861
9886
  x: (t.x + r.x) / 2,
9862
9887
  y: (t.y + r.y) / 2
9863
9888
  };
@@ -9867,7 +9892,7 @@ var Yv = { viewer: Jv }, Xv = {
9867
9892
  x: a.x - s.x * o,
9868
9893
  y: a.y - s.y * o
9869
9894
  };
9870
- }, Lb = 50, Rb = 24, zb = (e, t, n) => {
9895
+ }, Hb = 50, Ub = 24, Wb = (e, t, n) => {
9871
9896
  let r = Math.min(e.width / t.x, e.height / t.y), i = Math.max(e.width / t.x, e.height / t.y);
9872
9897
  if (!(r > 0) || !(i > 0)) return e;
9873
9898
  let a = r, o = null;
@@ -9879,13 +9904,13 @@ var Yv = { viewer: Jv }, Xv = {
9879
9904
  x: Math.min(...e),
9880
9905
  y: Math.min(...r)
9881
9906
  };
9882
- let i = t.x - 98, s = t.y - 48 - Lb;
9907
+ let i = t.x - 98, s = t.y - 48 - Hb;
9883
9908
  i > 0 && s > 0 && (a = Math.max(a, o.width / i, o.height / s));
9884
9909
  }
9885
9910
  a = Math.min(a, i);
9886
9911
  let s = t.x * a, c = t.y * a, l = (e, t, n) => t > n ? (t + n) / 2 : Math.min(n, Math.max(t, e)), u = l(e.x + e.width / 2, e.x + s / 2, e.x + e.width - s / 2), d = l(e.y + e.height / 2, e.y + c / 2, e.y + e.height - c / 2);
9887
9912
  if (o) {
9888
- let e = Rb * a, t = 49 * a, n = Lb * a;
9913
+ let e = Ub * a, t = 49 * a, n = Hb * a;
9889
9914
  u = l(u, o.x + o.width + t - s / 2, o.x - t + s / 2), d = l(d, o.y + o.height + e - c / 2, o.y - e - n + c / 2);
9890
9915
  }
9891
9916
  return {
@@ -9894,7 +9919,7 @@ var Yv = { viewer: Jv }, Xv = {
9894
9919
  x: u - s / 2,
9895
9920
  y: d - c / 2
9896
9921
  };
9897
- }, Bb = /* @__PURE__ */ new WeakMap(), Vb = ({ enabled: e, firstPoint: t = null, focusOnPoint: n, halfwayToPoint: r, initialView: i = "fill", points: a, storeViewport: o, viewer: s, windowId: c }) => {
9922
+ }, Gb = /* @__PURE__ */ new WeakMap(), Kb = ({ enabled: e, firstPoint: t = null, focusOnPoint: n, halfwayToPoint: r, initialView: i = "fill", points: a, storeViewport: o, viewer: s, windowId: c }) => {
9898
9923
  let l = P({
9899
9924
  firstPoint: t,
9900
9925
  focusOnPoint: n,
@@ -9912,10 +9937,10 @@ var Yv = { viewer: Jv }, Xv = {
9912
9937
  };
9913
9938
  });
9914
9939
  let u = (e, t) => {
9915
- let n = l.current, r = zb(t.getBounds(), e.viewport.getContainerSize(), n.points);
9940
+ let n = l.current, r = Wb(t.getBounds(), e.viewport.getContainerSize(), n.points);
9916
9941
  e.viewport.fitBounds(new My.default.Rect(r.x, r.y, r.width, r.height), !0);
9917
9942
  let i = e.viewport.getCenter(!0), a = e.viewport.getZoom(!0);
9918
- if (Bb.set(t, {
9943
+ if (Gb.set(t, {
9919
9944
  center: i,
9920
9945
  count: n.points.length,
9921
9946
  zoom: a
@@ -9934,7 +9959,7 @@ var Yv = { viewer: Jv }, Xv = {
9934
9959
  let t = 0, n = () => {
9935
9960
  t = requestAnimationFrame(() => {
9936
9961
  let e = s.world.getItemAt(0);
9937
- !e || Bb.has(e) || u(s, e);
9962
+ !e || Gb.has(e) || u(s, e);
9938
9963
  });
9939
9964
  }, r = () => {
9940
9965
  Zy(c) || s.addOnceHandler("tile-loaded", n);
@@ -9952,7 +9977,7 @@ var Yv = { viewer: Jv }, Xv = {
9952
9977
  let d = a.map(({ x: e, y: t }) => `${e},${t}`).join(";");
9953
9978
  N(() => {
9954
9979
  if (!e || !s) return;
9955
- let t = s.world.getItemAt(0), n = t ? Bb.get(t) : void 0;
9980
+ let t = s.world.getItemAt(0), n = t ? Gb.get(t) : void 0;
9956
9981
  if (!t || !n || a.length <= n.count) return;
9957
9982
  let r = s.viewport.getCenter(!0), i = s.viewport.getZoom(!0), o = t.getBounds().width * 1e-4;
9958
9983
  Math.abs(i - n.zoom) <= n.zoom * 1e-4 && Math.hypot(r.x - n.center.x, r.y - n.center.y) <= o && u(s, t);
@@ -9961,18 +9986,18 @@ var Yv = { viewer: Jv }, Xv = {
9961
9986
  d,
9962
9987
  s
9963
9988
  ]);
9964
- }, Hb = (e) => Math.min(e.getMaxZoom(), Math.max(e.getZoom(), e.getHomeZoom() * 4)), Ub = "annotationCreation", Wb = (e, t, n) => (r, i) => {
9989
+ }, qb = (e) => Math.min(e.getMaxZoom(), Math.max(e.getZoom(), e.getHomeZoom() * 4)), Jb = "annotationCreation", Yb = (e, t, n) => (r, i) => {
9965
9990
  let a = Object.values(Bt(i())).filter((t) => t.windowId === e), o = a.find((e) => e.id === t);
9966
9991
  a.filter((e) => e.position !== "left").forEach((t) => r(Ss(e, t.id))), r(co(e, {
9967
9992
  annotationid: n,
9968
- content: Ub,
9993
+ content: Jb,
9969
9994
  position: "right",
9970
9995
  ...o?.annotationid ? { returnToPreview: {
9971
9996
  annotationid: o.annotationid,
9972
9997
  position: o.position
9973
9998
  } } : {}
9974
9999
  }));
9975
- }, Gb = (e) => (e ?? "").split("-")[0].toLowerCase() === "ar" ? "ar" : "en", Kb = {
10000
+ }, Xb = (e) => (e ?? "").split("-")[0].toLowerCase() === "ar" ? "ar" : "en", Zb = {
9976
10001
  ar: {
9977
10002
  Journey: "رحلة",
9978
10003
  POI: "نقطة اهتمام",
@@ -10033,7 +10058,7 @@ var Yv = { viewer: Jv }, Xv = {
10033
10058
  audioSeek: "Playback position",
10034
10059
  audioSpeed: "Playback speed"
10035
10060
  }
10036
- }, qb = {
10061
+ }, Qb = {
10037
10062
  ALLOWED_ATTR: [
10038
10063
  "href",
10039
10064
  "title",
@@ -10063,11 +10088,11 @@ var Yv = { viewer: Jv }, Xv = {
10063
10088
  "li",
10064
10089
  "hr"
10065
10090
  ]
10066
- }, Jb, Yb = (e) => e ? (Jb ??= Vr(window), String(Jb.sanitize(e, qb))) : "", Xb = (e, t, n) => e.body?.find((e) => e.type === "TextualBody" && e.purpose === n && e.language === t)?.value ?? "", Zb = (e, t) => t === "en" ? e["dbf:mediaEn"] : e["dbf:mediaAr"], Qb = (e, t) => ((t === "en" ? e["dbf:eyebrowEn"] : e["dbf:eyebrowAr"]) ?? "").trim(), $b = /\.(avif|gif|jpe?g|png|svg|webp)$/i, ex = ({ locale: e, media: t, poiTitle: n }) => {
10067
- let r = Kb[e], i = Db(t);
10091
+ }, $b, ex = (e) => e ? ($b ??= Vr(window), String($b.sanitize(e, Qb))) : "", tx = (e, t, n) => e.body?.find((e) => e.type === "TextualBody" && e.purpose === n && e.language === t)?.value ?? "", nx = (e, t) => t === "en" ? e["dbf:mediaEn"] : e["dbf:mediaAr"], rx = (e, t) => ((t === "en" ? e["dbf:eyebrowEn"] : e["dbf:eyebrowAr"]) ?? "").trim(), ix = /\.(avif|gif|jpe?g|png|svg|webp)$/i, ax = ({ locale: e, media: t, poiTitle: n }) => {
10092
+ let r = Zb[e], i = Mb(t);
10068
10093
  if (t && i) {
10069
10094
  let a = t.source === "media-item" && e === "en" && t.title || n || r.audio;
10070
- return /* @__PURE__ */ F(Zc, { children: /* @__PURE__ */ F(Ab, {
10095
+ return /* @__PURE__ */ F(Zc, { children: /* @__PURE__ */ F(Fb, {
10071
10096
  duration: t.duration,
10072
10097
  labels: {
10073
10098
  audio: r.audio,
@@ -10086,7 +10111,7 @@ var Yv = { viewer: Jv }, Xv = {
10086
10111
  title: a
10087
10112
  }) }, i);
10088
10113
  }
10089
- let a = tx(t);
10114
+ let a = ox(t);
10090
10115
  return a ? /* @__PURE__ */ F("div", {
10091
10116
  className: "dbf-map-poi__media",
10092
10117
  children: /* @__PURE__ */ F("img", {
@@ -10094,31 +10119,31 @@ var Yv = { viewer: Jv }, Xv = {
10094
10119
  src: a
10095
10120
  })
10096
10121
  }) : null;
10097
- }, tx = (e) => {
10122
+ }, ox = (e) => {
10098
10123
  let t = e?.thumbnailUrl;
10099
10124
  if (!t) return null;
10100
10125
  if (e.source !== "upload") return t;
10101
10126
  try {
10102
- return $b.test(new URL(t, "http://localhost").pathname) ? t : null;
10127
+ return ix.test(new URL(t, "http://localhost").pathname) ? t : null;
10103
10128
  } catch {
10104
10129
  return null;
10105
10130
  }
10106
- }, nx = 64, rx = {
10131
+ }, sx = 64, cx = {
10107
10132
  borderRadius: 4,
10108
10133
  flexShrink: 0,
10109
- height: nx,
10134
+ height: sx,
10110
10135
  objectFit: "cover",
10111
- width: nx
10112
- }, ix = (e) => {
10136
+ width: sx
10137
+ }, lx = (e) => {
10113
10138
  let { mediaType: t, mime: n } = e;
10114
10139
  return t === "audio" || n?.startsWith("audio/") ? Zv : t === "uploaded-video" || t === "youtube-video" || n?.startsWith("video/") ? ty : t === "research-pdf" || n === "application/pdf" ? ny : e.source !== "media-item" && !n ? $v : Bo;
10115
- }, ax = ({ media: e }) => {
10116
- let t = tx(e), n = !t && e.url && e.mime?.startsWith("video/") ? e.url : null, r = ix(e), i;
10140
+ }, ux = ({ media: e }) => {
10141
+ let t = ox(e), n = !t && e.url && e.mime?.startsWith("video/") ? e.url : null, r = lx(e), i;
10117
10142
  return i = t ? /* @__PURE__ */ F("img", {
10118
10143
  alt: "",
10119
10144
  "data-testid": "poi-preview-media-thumbnail",
10120
10145
  src: t,
10121
- style: rx
10146
+ style: cx
10122
10147
  }) : n ? /* @__PURE__ */ F("video", {
10123
10148
  "aria-hidden": !0,
10124
10149
  "data-testid": "poi-preview-media-thumbnail",
@@ -10126,13 +10151,13 @@ var Yv = { viewer: Jv }, Xv = {
10126
10151
  preload: "metadata",
10127
10152
  src: n,
10128
10153
  style: {
10129
- ...rx,
10154
+ ...cx,
10130
10155
  background: "#000"
10131
10156
  }
10132
10157
  }) : /* @__PURE__ */ F("span", {
10133
10158
  "aria-hidden": !0,
10134
10159
  style: {
10135
- ...rx,
10160
+ ...cx,
10136
10161
  alignItems: "center",
10137
10162
  background: "rgba(0, 0, 0, 0.04)",
10138
10163
  color: "rgba(0, 0, 0, 0.54)",
@@ -10155,32 +10180,32 @@ var Yv = { viewer: Jv }, Xv = {
10155
10180
  children: [e.title, e.mediaType ? ` (${e.mediaType})` : ""]
10156
10181
  })]
10157
10182
  });
10158
- }, ox = (e, t) => {
10183
+ }, dx = (e, t) => {
10159
10184
  if (!e) return "";
10160
10185
  if (typeof e == "string") return e;
10161
10186
  let n = e[t] ?? e.none ?? Object.values(e).find(Boolean);
10162
10187
  return (Array.isArray(n) ? n.join(" ") : n ?? "").trim();
10163
- }, sx = (e, t, n) => {
10164
- let r = oe(e, { windowId: t })?.json, i = ox(r?.label, n), a = ox(r?.summary, n);
10188
+ }, fx = (e, t, n) => {
10189
+ let r = oe(e, { windowId: t })?.json, i = dx(r?.label, n), a = dx(r?.summary, n);
10165
10190
  return i || a ? {
10166
10191
  summary: a,
10167
10192
  title: i
10168
10193
  } : null;
10169
- }, cx = (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), lx = (e) => {
10194
+ }, px = (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), mx = (e) => {
10170
10195
  if (!e.target) return null;
10171
10196
  let t = new jn(e).pointSelector;
10172
10197
  return typeof t?.x != "number" || typeof t?.y != "number" ? null : {
10173
10198
  x: t.x,
10174
10199
  y: t.y
10175
10200
  };
10176
- }, ux = .2, dx = 32, fx = .25, px = [
10201
+ }, hx = .2, gx = 32, _x = .25, vx = [
10177
10202
  "left",
10178
10203
  "right",
10179
10204
  "far-right",
10180
10205
  "bottom",
10181
10206
  "far-bottom"
10182
- ].map((e) => `aside.mirador-companion-window-${e}`).join(", "), mx = (e) => Ys.get(e)?.current ?? null, hx = (e) => (e.getAnimations?.({ subtree: !0 }) ?? []).filter((e) => e.playState === "running"), gx = (e) => Array.from(e.element?.closest(".mirador-window")?.querySelectorAll(px) ?? []), _x = (e) => {
10183
- let t = hx(e).some((e) => "animationName" in e), n = e.offsetParent;
10207
+ ].map((e) => `aside.mirador-companion-window-${e}`).join(", "), yx = (e) => Ys.get(e)?.current ?? null, bx = (e) => (e.getAnimations?.({ subtree: !0 }) ?? []).filter((e) => e.playState === "running"), xx = (e) => Array.from(e.element?.closest(".mirador-window")?.querySelectorAll(vx) ?? []), Sx = (e) => {
10208
+ let t = bx(e).some((e) => "animationName" in e), n = e.offsetParent;
10184
10209
  if (!t || !n) return e.getBoundingClientRect();
10185
10210
  let r = n.getBoundingClientRect(), i = r.left + n.clientLeft + e.offsetLeft, a = r.top + n.clientTop + e.offsetTop;
10186
10211
  return {
@@ -10189,14 +10214,14 @@ var Yv = { viewer: Jv }, Xv = {
10189
10214
  right: i + e.offsetWidth,
10190
10215
  top: a
10191
10216
  };
10192
- }, vx = (e, t) => {
10193
- let n = gx(e).flatMap(hx).filter((e) => "transitionProperty" in e);
10217
+ }, Cx = (e, t) => {
10218
+ let n = xx(e).flatMap(bx).filter((e) => "transitionProperty" in e);
10194
10219
  if (n.length === 0) {
10195
10220
  t();
10196
10221
  return;
10197
10222
  }
10198
10223
  Promise.all(n.map((e) => e.finished.catch(() => void 0))).then(t);
10199
- }, yx = (e) => {
10224
+ }, wx = (e) => {
10200
10225
  let { element: t, viewport: n } = e;
10201
10226
  if (!n) return null;
10202
10227
  let r = n.getContainerSize(), i = {
@@ -10207,61 +10232,61 @@ var Yv = { viewer: Jv }, Xv = {
10207
10232
  }, a = t?.closest(".mirador-window");
10208
10233
  if (!t || !a) return i;
10209
10234
  let o = t.getBoundingClientRect(), s = 0, c = 0, l = r.x, u = r.y;
10210
- return a.querySelectorAll(px).forEach((e) => {
10211
- let t = _x(e), 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;
10235
+ return a.querySelectorAll(vx).forEach((e) => {
10236
+ let t = Sx(e), 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;
10212
10237
  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)));
10213
- }), l - s < r.x * fx || u - c < r.y * fx ? i : {
10238
+ }), l - s < r.x * _x || u - c < r.y * _x ? i : {
10214
10239
  height: u - c,
10215
10240
  width: l - s,
10216
10241
  x: s,
10217
10242
  y: c
10218
10243
  };
10219
- }, bx = (e) => ({
10244
+ }, Tx = (e) => ({
10220
10245
  x: e.x + e.width / 2,
10221
10246
  y: e.y + e.height / 2
10222
- }), xx = (e, t, n) => {
10223
- let { viewport: r } = e, i = yx(e);
10247
+ }), Ex = (e, t, n) => {
10248
+ let { viewport: r } = e, i = wx(e);
10224
10249
  if (!r || !i) return;
10225
- let a = r.getContainerSize(), o = bx(i);
10250
+ let a = r.getContainerSize(), o = Tx(i);
10226
10251
  r.fitBounds(new My.default.Rect(t.x - o.x * n, t.y - o.y * n, a.x * n, a.y * n));
10227
- }, Sx = (e, t) => 1 / (t * e.getContainerSize().x), Cx = (e, t) => {
10228
- let n = mx(e), r = n?.viewport;
10229
- !n || !r || xx(n, t, Sx(r, Hb(r)));
10230
- }, wx = (e, t) => {
10231
- let n = mx(e), r = n?.viewport, i = n ? yx(n) : null;
10252
+ }, Dx = (e, t) => 1 / (t * e.getContainerSize().x), Ox = (e, t) => {
10253
+ let n = yx(e), r = n?.viewport;
10254
+ !n || !r || Ex(n, t, Dx(r, qb(r)));
10255
+ }, kx = (e, t) => {
10256
+ let n = yx(e), r = n?.viewport, i = n ? wx(n) : null;
10232
10257
  if (!r || !i) return;
10233
- let a = Ib({
10258
+ let a = Vb({
10234
10259
  container: r.getContainerSize(),
10235
10260
  fillPixel: r.pixelFromPoint(new My.default.Point(t.x, t.y), !0),
10236
10261
  fillZoom: r.getZoom(!0),
10237
- focusPixel: bx(i),
10238
- focusZoom: Hb(r),
10262
+ focusPixel: Tx(i),
10263
+ focusZoom: qb(r),
10239
10264
  point: t
10240
10265
  });
10241
10266
  r.fitBounds(new My.default.Rect(a.x, a.y, a.width, a.height));
10242
- }, Tx = (e, t) => {
10243
- let n = mx(e), r = n?.viewport, i = n ? yx(n) : null;
10267
+ }, Ax = (e, t) => {
10268
+ let n = yx(e), r = n?.viewport, i = n ? wx(n) : null;
10244
10269
  if (!n || !r || !i) return;
10245
- let a = r.pixelFromPoint(new My.default.Point(t.x, t.y)), o = Math.min(dx, i.width / 4, i.height / 4);
10246
- a.x >= i.x + o && a.x <= i.x + i.width - o && a.y >= i.y + o && a.y <= i.y + i.height - o || xx(n, t, Sx(r, r.getZoom()));
10247
- }, Ex = (e, t) => {
10270
+ let a = r.pixelFromPoint(new My.default.Point(t.x, t.y)), o = Math.min(gx, i.width / 4, i.height / 4);
10271
+ a.x >= i.x + o && a.x <= i.x + i.width - o && a.y >= i.y + o && a.y <= i.y + i.height - o || Ex(n, t, Dx(r, r.getZoom()));
10272
+ }, jx = (e, t) => {
10248
10273
  if (t.length === 0) return;
10249
10274
  if (t.length === 1) {
10250
- Cx(e, t[0]);
10275
+ Ox(e, t[0]);
10251
10276
  return;
10252
10277
  }
10253
- let n = mx(e), r = n?.viewport, i = n ? yx(n) : null;
10278
+ let n = yx(e), r = n?.viewport, i = n ? wx(n) : null;
10254
10279
  if (!n || !r || !i) return;
10255
- 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 * ux, d.width * .05), p = Math.max(u * ux, d.height * .05), m = Math.max((l + 2 * f) / i.width, (u + 2 * p) / i.height, Sx(r, r.getMaxZoom()));
10256
- xx(n, {
10280
+ 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 * hx, d.width * .05), p = Math.max(u * hx, d.height * .05), m = Math.max((l + 2 * f) / i.width, (u + 2 * p) / i.height, Dx(r, r.getMaxZoom()));
10281
+ Ex(n, {
10257
10282
  x: s + l / 2,
10258
10283
  y: c + u / 2
10259
10284
  }, m);
10260
- }, Dx = (e) => (t, ...n) => {
10261
- let r = mx(t);
10262
- r && vx(r, () => e(t, ...n));
10263
- }, Ox = Dx(Cx), kx = Dx(wx), Ax = Dx(Tx), jx = Dx(Ex), Mx = (e) => e.closest(".mirador-scrollto-scrollable"), Nx = (e, t, n) => {
10264
- let r = Mx(e);
10285
+ }, Mx = (e) => (t, ...n) => {
10286
+ let r = yx(t);
10287
+ r && Cx(r, () => e(t, ...n));
10288
+ }, Nx = Mx(Ox), Px = Mx(kx), Fx = Mx(Ax), Ix = Mx(jx), Lx = (e) => e.closest(".mirador-scrollto-scrollable"), Rx = (e, t, n) => {
10289
+ let r = Lx(e);
10265
10290
  if (!r) return;
10266
10291
  let i = parseFloat(getComputedStyle(e).scrollMarginTop) || 0, a = Math.max(0, r.scrollTop + e.getBoundingClientRect().top - r.getBoundingClientRect().top - i);
10267
10292
  if (t) {
@@ -10272,22 +10297,22 @@ var Yv = { viewer: Jv }, Xv = {
10272
10297
  behavior: n,
10273
10298
  top: a
10274
10299
  });
10275
- }, Px = (e, t, n) => {
10300
+ }, zx = (e, t, n) => {
10276
10301
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = getComputedStyle(e), o = a.direction === "rtl" ? i.right - (r.right - (parseFloat(a.paddingRight) || 0)) : i.left - (r.left + (parseFloat(a.paddingLeft) || 0));
10277
10302
  Math.abs(o) > 1 && e.scrollBy?.({
10278
10303
  behavior: n,
10279
10304
  left: o
10280
- }), Mx(e)?.scrollTo?.({
10305
+ }), Lx(e)?.scrollTo?.({
10281
10306
  behavior: n,
10282
10307
  top: 0
10283
10308
  });
10284
- }, Fx = (e) => e === "ar" ? "rtl" : "ltr", Ix = ({ children: e, id: t, label: n, locale: r, position: i, removeCompanionWindow: a, returnFocusTo: o = null, showing: s, windowId: c }) => {
10285
- let l = Kb[r], u = dy(c), d = by(c), f = i === "bottom";
10309
+ }, Bx = (e) => e === "ar" ? "rtl" : "ltr", Vx = ({ children: e, id: t, label: n, locale: r, position: i, removeCompanionWindow: a, returnFocusTo: o = null, showing: s, windowId: c }) => {
10310
+ let l = Zb[r], u = dy(c), d = by(c), f = i === "bottom";
10286
10311
  N(() => {
10287
10312
  ly(c, vy(c));
10288
10313
  }, [s, c]);
10289
10314
  let p = P(null), m = P(null);
10290
- Cb({
10315
+ Ob({
10291
10316
  bodyRef: p,
10292
10317
  enabled: f,
10293
10318
  headerRef: m,
@@ -10345,7 +10370,7 @@ var Yv = { viewer: Jv }, Xv = {
10345
10370
  "data-collapsed": u ? "true" : void 0,
10346
10371
  "data-position": i,
10347
10372
  "data-snap": f ? d : void 0,
10348
- dir: Fx(r),
10373
+ dir: Bx(r),
10349
10374
  lang: r,
10350
10375
  ref: p,
10351
10376
  children: [/* @__PURE__ */ I("div", {
@@ -10384,13 +10409,13 @@ var Yv = { viewer: Jv }, Xv = {
10384
10409
  }), e]
10385
10410
  })
10386
10411
  });
10387
- }, Lx = {
10412
+ }, Hx = {
10388
10413
  ar: "العربية",
10389
10414
  en: "English"
10390
- }, Rx = ({ canEdit: e, contentLocale: t, isEditing: n, onContentLocaleChange: r, onEdit: i, uiLocale: a }) => {
10391
- let o = Kb[a];
10415
+ }, Ux = ({ canEdit: e, contentLocale: t, isEditing: n, onContentLocaleChange: r, onEdit: i, uiLocale: a }) => {
10416
+ let o = Zb[a];
10392
10417
  return /* @__PURE__ */ I("div", {
10393
- dir: Fx(a),
10418
+ dir: Bx(a),
10394
10419
  style: {
10395
10420
  alignItems: "center",
10396
10421
  display: "flex",
@@ -10410,7 +10435,7 @@ var Yv = { viewer: Jv }, Xv = {
10410
10435
  lang: e,
10411
10436
  sx: { textTransform: "none" },
10412
10437
  value: e,
10413
- children: Lx[e]
10438
+ children: Hx[e]
10414
10439
  }, e))
10415
10440
  }), e && /* @__PURE__ */ F(hl, {
10416
10441
  disabled: n,
@@ -10422,12 +10447,12 @@ var Yv = { viewer: Jv }, Xv = {
10422
10447
  children: o.edit
10423
10448
  })]
10424
10449
  });
10425
- }, zx = ({ canEdit: e, isEditing: t, onEdit: n, onPreview: r, uiLocale: i }) => {
10426
- let a = Kb[i], o = (e) => (t) => {
10450
+ }, Wx = ({ canEdit: e, isEditing: t, onEdit: n, onPreview: r, uiLocale: i }) => {
10451
+ let a = Zb[i], o = (e) => (t) => {
10427
10452
  t.stopPropagation(), e();
10428
10453
  };
10429
10454
  return /* @__PURE__ */ I("div", {
10430
- dir: Fx(i),
10455
+ dir: Bx(i),
10431
10456
  onKeyDown: (e) => e.stopPropagation(),
10432
10457
  role: "toolbar",
10433
10458
  style: {
@@ -10450,10 +10475,10 @@ var Yv = { viewer: Jv }, Xv = {
10450
10475
  children: /* @__PURE__ */ F(Qv, { fontSize: "small" })
10451
10476
  })]
10452
10477
  });
10453
- }, Bx = ({ journeyTitle: e, onClick: t, uiLocale: n }) => {
10454
- let r = Kb[n];
10478
+ }, Gx = ({ journeyTitle: e, onClick: t, uiLocale: n }) => {
10479
+ let r = Zb[n];
10455
10480
  return /* @__PURE__ */ F("div", {
10456
- dir: Fx(n),
10481
+ dir: Bx(n),
10457
10482
  style: { padding: "8px 16px 0" },
10458
10483
  children: /* @__PURE__ */ F(hl, {
10459
10484
  onClick: t,
@@ -10463,15 +10488,15 @@ var Yv = { viewer: Jv }, Xv = {
10463
10488
  children: e ? `${r.backToJourney}: ${e}` : r.backToJourney
10464
10489
  })
10465
10490
  });
10466
- }, Vx = (e, t, n) => ({
10491
+ }, Kx = (e, t, n) => ({
10467
10492
  annotation: e,
10468
10493
  position: n,
10469
10494
  previewAnnotationId: t,
10470
10495
  selectedAnnotationId: e.id
10471
- }), Hx = ({ editorToolbar: e, id: t, journey: n, locale: r, pois: i, openNestedMap: a, position: o, removeCompanionWindow: s, renderStopActions: c, selectAnnotation: l, selectedAnnotationId: u, linkedMapResolver: d = null, site: f = !1, windowId: p }) => {
10472
- let m = Kb[r], h = Xb(n, r, "identifying"), g = P(null), _ = P(null), v = P(null), y = i.find((e) => e.id === u), b = y ? lx(y) : null, x = i.map(lx).filter((e) => e !== null), S = x.map(({ x: e, y: t }) => `${e},${t}`).join(";");
10496
+ }), qx = ({ editorToolbar: e, id: t, journey: n, locale: r, pois: i, openNestedMap: a, position: o, removeCompanionWindow: s, renderStopActions: c, selectAnnotation: l, selectedAnnotationId: u, linkedMapResolver: d = null, site: f = !1, windowId: p }) => {
10497
+ let m = Zb[r], h = tx(n, r, "identifying"), g = P(null), _ = P(null), v = P(null), y = i.find((e) => e.id === u), b = y ? mx(y) : null, x = i.map(mx).filter((e) => e !== null), S = x.map(({ x: e, y: t }) => `${e},${t}`).join(";");
10473
10498
  N(() => {
10474
- b ? Ax(p, b) : jx(p, x);
10499
+ b ? Fx(p, b) : Ix(p, x);
10475
10500
  }, [
10476
10501
  n.id,
10477
10502
  S,
@@ -10482,19 +10507,19 @@ var Yv = { viewer: Jv }, Xv = {
10482
10507
  _.current && (_.current.style.height = "0px");
10483
10508
  return;
10484
10509
  }
10485
- b && Ax(p, b);
10510
+ b && Fx(p, b);
10486
10511
  let t = g.current, n = Array.from(t?.children ?? []).find((e) => e.dataset.poiId === y.id);
10487
10512
  if (!t || !n) return;
10488
- if (f && sb(t)) {
10489
- e ? Mx(t)?.scrollTo?.({
10513
+ if (f && cb(t)) {
10514
+ e ? Lx(t)?.scrollTo?.({
10490
10515
  behavior: "smooth",
10491
10516
  top: 0
10492
- }) : Px(t, n, "smooth");
10517
+ }) : zx(t, n, "smooth");
10493
10518
  return;
10494
10519
  }
10495
10520
  if (e) return;
10496
- Nx(n, _.current, "smooth");
10497
- let r = Mx(n), i = () => Nx(n, _.current, "auto"), a = [
10521
+ Rx(n, _.current, "smooth");
10522
+ let r = Lx(n), i = () => Rx(n, _.current, "auto"), a = [
10498
10523
  "wheel",
10499
10524
  "touchstart",
10500
10525
  "pointerdown",
@@ -10507,26 +10532,27 @@ var Yv = { viewer: Jv }, Xv = {
10507
10532
  let C = (e) => {
10508
10533
  let t = f ? Wy(e["dbf:linkedMap"], d) : null;
10509
10534
  if (t && a) {
10510
- a(p, t, Vx(e, n.id, o));
10535
+ a(p, t, Kx(e, n.id, o));
10511
10536
  return;
10512
10537
  }
10513
- let r = lx(e);
10514
- r && Ox(p, r), l(p, e.id);
10538
+ let r = mx(e);
10539
+ r && Nx(p, r), l(p, e.id);
10515
10540
  };
10516
- return fb({
10541
+ return _b({
10517
10542
  enabled: f,
10518
- getColumnScroller: Mx,
10543
+ getColumnScroller: Lx,
10519
10544
  layout: o,
10520
10545
  listRef: g,
10521
10546
  onSelect: (e) => {
10522
10547
  let t = i.find((t) => t.id === e);
10523
10548
  if (!t) return;
10524
10549
  v.current = e;
10525
- let n = lx(t);
10526
- n && Ox(p, n), l(p, t.id);
10550
+ let n = mx(t);
10551
+ n && Nx(p, n), l(p, t.id);
10527
10552
  },
10553
+ onSnap: (e, t) => Rx(e, _.current, t),
10528
10554
  selectedId: u
10529
- }), f ? /* @__PURE__ */ F(Ix, {
10555
+ }), f ? /* @__PURE__ */ F(Vx, {
10530
10556
  id: t,
10531
10557
  label: m.followJourney,
10532
10558
  locale: r,
@@ -10541,7 +10567,7 @@ var Yv = { viewer: Jv }, Xv = {
10541
10567
  children: [
10542
10568
  i.length === 0 && /* @__PURE__ */ F("p", { children: m.noStops }),
10543
10569
  i.flatMap((e, t) => {
10544
- let n = Xb(e, r, "identifying"), i = Yb(Xb(e, r, "describing")), a = Zb(e, r), o = e.id === u, s = /* @__PURE__ */ I("article", {
10570
+ let n = tx(e, r, "identifying"), i = ex(tx(e, r, "describing")), a = nx(e, r), o = e.id === u, s = /* @__PURE__ */ I("article", {
10545
10571
  className: "dbf-map-poi",
10546
10572
  "data-poi-id": e.id,
10547
10573
  "data-selected": o ? "true" : void 0,
@@ -10555,9 +10581,9 @@ var Yv = { viewer: Jv }, Xv = {
10555
10581
  children: t + 1
10556
10582
  }), /* @__PURE__ */ I("div", {
10557
10583
  className: "dbf-map-poi__heading",
10558
- children: [(Qb(e, r) || h) && /* @__PURE__ */ F("p", {
10584
+ children: [(rx(e, r) || h) && /* @__PURE__ */ F("p", {
10559
10585
  className: "dbf-map-poi__eyebrow",
10560
- children: Qb(e, r) || h
10586
+ children: rx(e, r) || h
10561
10587
  }), /* @__PURE__ */ F("h3", {
10562
10588
  className: "dbf-map-poi__title",
10563
10589
  children: /* @__PURE__ */ F("button", {
@@ -10572,7 +10598,7 @@ var Yv = { viewer: Jv }, Xv = {
10572
10598
  })]
10573
10599
  })]
10574
10600
  }),
10575
- /* @__PURE__ */ F(ex, {
10601
+ /* @__PURE__ */ F(ax, {
10576
10602
  locale: r,
10577
10603
  media: a,
10578
10604
  poiTitle: n
@@ -10600,14 +10626,14 @@ var Yv = { viewer: Jv }, Xv = {
10600
10626
  title: h || m.Journey,
10601
10627
  windowId: p,
10602
10628
  children: [e, /* @__PURE__ */ I("div", {
10603
- dir: Fx(r),
10629
+ dir: Bx(r),
10604
10630
  lang: r,
10605
10631
  ref: g,
10606
10632
  style: { padding: 16 },
10607
10633
  children: [
10608
10634
  i.length === 0 && /* @__PURE__ */ F("p", { children: m.noStops }),
10609
10635
  i.map((e, t) => {
10610
- let n = Xb(e, r, "identifying"), a = Yb(Xb(e, r, "describing")), o = Zb(e, r), s = tx(o), l = t === i.length - 1, d = e.id === u;
10636
+ let n = tx(e, r, "identifying"), a = ex(tx(e, r, "describing")), o = nx(e, r), s = ox(o), l = t === i.length - 1, d = e.id === u;
10611
10637
  return /* @__PURE__ */ I("div", {
10612
10638
  "aria-current": d || void 0,
10613
10639
  "data-poi-id": e.id,
@@ -10687,16 +10713,16 @@ var Yv = { viewer: Jv }, Xv = {
10687
10713
  ]
10688
10714
  })]
10689
10715
  });
10690
- }, Ux = ({ annotation: e, carried: t = !1, editorToolbar: n, id: r, journeyLink: i = null, linkedMapManifestId: a, loading: o = !1, locale: s, openNestedMap: c, position: l, removeCompanionWindow: u, site: d = !1, windowId: f }) => {
10691
- let p = Kb[s], m = e?.["dbf:kind"], h = e ? Xb(e, s, "identifying") : "", g = e ? Yb(Xb(e, s, "describing")) : "", _ = e ? Zb(e, s) : null, v = e && !t ? lx(e) : null;
10716
+ }, Jx = ({ annotation: e, carried: t = !1, editorToolbar: n, id: r, journeyLink: i = null, linkedMapManifestId: a, loading: o = !1, locale: s, openNestedMap: c, position: l, removeCompanionWindow: u, site: d = !1, windowId: f }) => {
10717
+ let p = Zb[s], m = e?.["dbf:kind"], h = e ? tx(e, s, "identifying") : "", g = e ? ex(tx(e, s, "describing")) : "", _ = e ? nx(e, s) : null, v = e && !t ? mx(e) : null;
10692
10718
  return N(() => {
10693
- v && Ax(f, v);
10719
+ v && Fx(f, v);
10694
10720
  }, [
10695
10721
  e?.id,
10696
10722
  v?.x,
10697
10723
  v?.y,
10698
10724
  f
10699
- ]), d ? /* @__PURE__ */ I(Ix, {
10725
+ ]), d ? /* @__PURE__ */ I(Vx, {
10700
10726
  id: r,
10701
10727
  label: p.discover,
10702
10728
  locale: s,
@@ -10720,16 +10746,16 @@ var Yv = { viewer: Jv }, Xv = {
10720
10746
  className: "dbf-map-poi__marker"
10721
10747
  }), /* @__PURE__ */ I("div", {
10722
10748
  className: "dbf-map-poi__heading",
10723
- children: [Qb(e, s) && /* @__PURE__ */ F("p", {
10749
+ children: [rx(e, s) && /* @__PURE__ */ F("p", {
10724
10750
  className: "dbf-map-poi__eyebrow",
10725
- children: Qb(e, s)
10751
+ children: rx(e, s)
10726
10752
  }), /* @__PURE__ */ F("h3", {
10727
10753
  className: "dbf-map-poi__title",
10728
10754
  children: h || p.POI
10729
10755
  })]
10730
10756
  })]
10731
10757
  }),
10732
- /* @__PURE__ */ F(ex, {
10758
+ /* @__PURE__ */ F(ax, {
10733
10759
  locale: s,
10734
10760
  media: _,
10735
10761
  poiTitle: h
@@ -10748,13 +10774,13 @@ var Yv = { viewer: Jv }, Xv = {
10748
10774
  n,
10749
10775
  i,
10750
10776
  /* @__PURE__ */ I("div", {
10751
- dir: Fx(s),
10777
+ dir: Bx(s),
10752
10778
  lang: s,
10753
10779
  style: { padding: 16 },
10754
10780
  children: [
10755
10781
  !e && /* @__PURE__ */ F("p", { children: p.notFound }),
10756
10782
  g && /* @__PURE__ */ F("div", { dangerouslySetInnerHTML: { __html: g } }),
10757
- _ && /* @__PURE__ */ F(ax, { media: _ }),
10783
+ _ && /* @__PURE__ */ F(ux, { media: _ }),
10758
10784
  a && /* @__PURE__ */ F(hl, {
10759
10785
  onClick: () => c(f, a),
10760
10786
  startIcon: /* @__PURE__ */ F(ey, {}),
@@ -10766,11 +10792,11 @@ var Yv = { viewer: Jv }, Xv = {
10766
10792
  })
10767
10793
  ]
10768
10794
  });
10769
- }, Wx = ({ id: e, locale: t, mapInfo: n, position: r, removeCompanionWindow: i, windowId: a }) => {
10770
- let o = Yb(n.summary);
10771
- return /* @__PURE__ */ F(Ix, {
10795
+ }, Yx = ({ id: e, locale: t, mapInfo: n, position: r, removeCompanionWindow: i, windowId: a }) => {
10796
+ let o = ex(n.summary);
10797
+ return /* @__PURE__ */ F(Vx, {
10772
10798
  id: e,
10773
- label: Kb[t].discover,
10799
+ label: Zb[t].discover,
10774
10800
  locale: t,
10775
10801
  position: r,
10776
10802
  removeCompanionWindow: i,
@@ -10794,9 +10820,9 @@ var Yv = { viewer: Jv }, Xv = {
10794
10820
  })]
10795
10821
  })
10796
10822
  });
10797
- }, Gx = {
10823
+ }, Xx = {
10798
10824
  component: ({ annotation: e, canEdit: t = !1, carried: n = !1, canEditAnnotations: r = !1, editInPlaceOfPreview: i, hasAnnotationEditor: a = !1, loading: o = !1, linkedMapResolver: s = null, id: c, isEditing: l = !1, journey: u = null, journeyPois: d, linkedMapManifestId: f, locale: p, mapInfo: m = null, openNestedMap: h, position: g, removeCompanionWindow: _, selectAnnotation: v, selectedAnnotationId: y, site: b, updateCompanionWindow: x, windowId: S }) => {
10799
- let [C, w] = il(p), T = a ? C : p, E = a && /* @__PURE__ */ F(Rx, {
10825
+ let [C, w] = il(p), T = a ? C : p, E = a && /* @__PURE__ */ F(Ux, {
10800
10826
  canEdit: t && !!e,
10801
10827
  contentLocale: C,
10802
10828
  isEditing: l,
@@ -10805,25 +10831,25 @@ var Yv = { viewer: Jv }, Xv = {
10805
10831
  uiLocale: p
10806
10832
  }), D = (e, t) => {
10807
10833
  x?.(S, c, { annotationid: e }), v(S, t);
10808
- }, ee = a && ((e) => /* @__PURE__ */ F(zx, {
10834
+ }, ee = a && ((e) => /* @__PURE__ */ F(Wx, {
10809
10835
  canEdit: r && !!e.maeData,
10810
10836
  isEditing: l,
10811
10837
  onEdit: () => i?.(S, c, e.id),
10812
10838
  onPreview: () => D(e.id, e.id),
10813
10839
  uiLocale: p
10814
- })), te = a && e && u && /* @__PURE__ */ F(Bx, {
10815
- journeyTitle: Xb(u, T, "identifying"),
10840
+ })), te = a && e && u && /* @__PURE__ */ F(Gx, {
10841
+ journeyTitle: tx(u, T, "identifying"),
10816
10842
  onClick: () => D(u.id, e.id),
10817
10843
  uiLocale: p
10818
10844
  });
10819
- return b && m ? /* @__PURE__ */ F(Wx, {
10845
+ return b && m ? /* @__PURE__ */ F(Yx, {
10820
10846
  id: c,
10821
10847
  locale: p,
10822
10848
  mapInfo: m,
10823
10849
  position: g,
10824
10850
  removeCompanionWindow: _,
10825
10851
  windowId: S
10826
- }) : e && e["dbf:kind"] === "Journey" ? /* @__PURE__ */ F(Hx, {
10852
+ }) : e && e["dbf:kind"] === "Journey" ? /* @__PURE__ */ F(qx, {
10827
10853
  editorToolbar: E,
10828
10854
  id: c,
10829
10855
  journey: e,
@@ -10838,7 +10864,7 @@ var Yv = { viewer: Jv }, Xv = {
10838
10864
  linkedMapResolver: s,
10839
10865
  site: b,
10840
10866
  windowId: S
10841
- }) : /* @__PURE__ */ F(Ux, {
10867
+ }) : /* @__PURE__ */ F(Jx, {
10842
10868
  annotation: e,
10843
10869
  carried: n,
10844
10870
  editorToolbar: E,
@@ -10856,7 +10882,7 @@ var Yv = { viewer: Jv }, Xv = {
10856
10882
  },
10857
10883
  companionWindowKey: ry,
10858
10884
  mapStateToProps: (e, { id: t, windowId: n }) => {
10859
- let r = ke(e, { companionWindowId: t }), i = r?.annotationid, a = Jx(e, n), o = i === ay, s = o ? Yy(e, n)?.annotation ?? null : a.find((e) => e.id === i) ?? null, c = Gt(e), l = Gb(c.language), u = !!c.annotation?.adapter, d = s && s["dbf:kind"] === "Journey" ? cx(a, s.id) : [], f = Kn(e, { windowId: n }), p = u && c.annotation?.readonly !== !0, m = s?.["dbf:kind"] === "POI" ? s["dbf:journey"]?.id : void 0;
10885
+ let r = ke(e, { companionWindowId: t }), i = r?.annotationid, a = $x(e, n), o = i === ay, s = o ? Yy(e, n)?.annotation ?? null : a.find((e) => e.id === i) ?? null, c = Gt(e), l = Xb(c.language), u = !!c.annotation?.adapter, d = s && s["dbf:kind"] === "Journey" ? px(a, s.id) : [], f = Kn(e, { windowId: n }), p = u && c.annotation?.readonly !== !0, m = s?.["dbf:kind"] === "POI" ? s["dbf:journey"]?.id : void 0;
10860
10886
  return {
10861
10887
  annotation: s,
10862
10888
  canEdit: p && !!s?.maeData,
@@ -10864,7 +10890,7 @@ var Yv = { viewer: Jv }, Xv = {
10864
10890
  carried: o,
10865
10891
  hasAnnotationEditor: u,
10866
10892
  isEditing: Se(e, {
10867
- content: Ub,
10893
+ content: Jb,
10868
10894
  windowId: n
10869
10895
  }).length > 0,
10870
10896
  journey: m && a.find((e) => e.id === m && e["dbf:kind"] === "Journey") || null,
@@ -10873,26 +10899,26 @@ var Yv = { viewer: Jv }, Xv = {
10873
10899
  loading: !o && i !== "dbf:map-info" && a.length === 0,
10874
10900
  linkedMapResolver: Gy(e),
10875
10901
  locale: l,
10876
- mapInfo: i === "dbf:map-info" ? sx(e, n, l) : null,
10902
+ mapInfo: i === "dbf:map-info" ? fx(e, n, l) : null,
10877
10903
  position: r?.position === "bottom" ? "bottom" : "right",
10878
10904
  selectedAnnotationId: f,
10879
10905
  site: c.maps?.site === !0
10880
10906
  };
10881
10907
  },
10882
10908
  mapDispatchToProps: {
10883
- editInPlaceOfPreview: Wb,
10909
+ editInPlaceOfPreview: Yb,
10884
10910
  openNestedMap: tb,
10885
10911
  removeCompanionWindow: Ss,
10886
10912
  selectAnnotation: zn,
10887
10913
  updateCompanionWindow: Na
10888
10914
  }
10889
- }, Kx = (e, t) => {
10915
+ }, Zx = (e, t) => {
10890
10916
  let n = mt(e, { windowId: t })[0]?.id;
10891
10917
  return n ? Dn(e)[n] : void 0;
10892
- }, qx = (e) => (e ? Object.values(e) : []).flatMap((e) => e.json?.items ?? []), Jx = (e, t) => qx(Kx(e, t)), Yx = (e, t) => Object.values(Bt(e)).find((e) => e.windowId === t && e.content === "mapsPoiPreview")?.id, Xx = (e, t) => {
10918
+ }, Qx = (e) => (e ? Object.values(e) : []).flatMap((e) => e.json?.items ?? []), $x = (e, t) => Qx(Zx(e, t)), eS = (e, t) => Object.values(Bt(e)).find((e) => e.windowId === t && e.content === "mapsPoiPreview")?.id, tS = (e, t) => {
10893
10919
  let n = e["dbf:kind"] === "POI" ? e["dbf:journey"]?.id : void 0;
10894
10920
  return n && t(n) ? n : e.id;
10895
- }, Zx = ({ addCompanionWindow: e, updateCompanionWindow: t }, n, r, i, a) => {
10921
+ }, nS = ({ addCompanionWindow: e, updateCompanionWindow: t }, n, r, i, a) => {
10896
10922
  r ? t(n, r, {
10897
10923
  annotationid: i,
10898
10924
  position: a
@@ -10901,10 +10927,10 @@ var Yv = { viewer: Jv }, Xv = {
10901
10927
  content: ry,
10902
10928
  position: a
10903
10929
  });
10904
- }, Qx = () => {
10930
+ }, rS = () => {
10905
10931
  let e = pl();
10906
10932
  return yl(e.breakpoints.down("sm")) ? "bottom" : "right";
10907
- }, $x = (e) => {
10933
+ }, iS = (e) => {
10908
10934
  let [t, n] = il(null);
10909
10935
  return N(() => {
10910
10936
  if (!e) {
@@ -10919,20 +10945,20 @@ var Yv = { viewer: Jv }, Xv = {
10919
10945
  let r = typeof ResizeObserver > "u" ? null : new ResizeObserver(t);
10920
10946
  return r?.observe(e), () => r?.disconnect();
10921
10947
  }, [e]), t;
10922
- }, eS = [Gx, {
10948
+ }, aS = [Xx, {
10923
10949
  target: "AnnotationsOverlay",
10924
10950
  mode: "wrap",
10925
10951
  component: ({ TargetComponent: e, targetProps: t, addCompanionWindow: n, updateCompanionWindow: r, annotationPages: i, existingPreviewCompanionWindowId: a, initialView: o = "fill", linkedMapResolver: s = null, locale: c = "en", openNestedMap: l, previewShowsMapInfo: u = !1, site: d = !1, updateViewport: f }) => {
10926
- let { annotations: p = [], searchAnnotations: m = [], selectAnnotation: h } = t, g = Qx(), _ = (e, t) => {
10952
+ let { annotations: p = [], searchAnnotations: m = [], selectAnnotation: h } = t, g = rS(), _ = (e, t) => {
10927
10953
  h?.(e, t);
10928
10954
  let o = [...p, ...m].flatMap((e) => e.resources ?? []).find((e) => e.id === t);
10929
10955
  if (!o?.pointSelector && !o?.svgSelector) return;
10930
- let s = qx(i), c = s.find((e) => e.id === t), l = c ? Xx(c, (e) => s.some((t) => t.id === e)) : t;
10931
- Zx({
10956
+ let s = Qx(i), c = s.find((e) => e.id === t), l = c ? tS(c, (e) => s.some((t) => t.id === e)) : t;
10957
+ nS({
10932
10958
  addCompanionWindow: n,
10933
10959
  updateCompanionWindow: r
10934
10960
  }, e, a, l, g);
10935
- }, v = d ? p.flatMap((e) => e.resources ?? []).filter((e) => e.pointSelector) : [], y = rl(() => d ? qx(i) : [], [i, d]), b = rl(() => new Map(y.map((e) => [e.id, Xb(e, c, "identifying")])), [y, c]), x = rl(() => Mb(y).map((e) => e.id), [y]);
10961
+ }, v = d ? p.flatMap((e) => e.resources ?? []).filter((e) => e.pointSelector) : [], y = rl(() => d ? Qx(i) : [], [i, d]), b = rl(() => new Map(y.map((e) => [e.id, tx(e, c, "identifying")])), [y, c]), x = rl(() => Lb(y).map((e) => e.id), [y]);
10936
10962
  Vy({
10937
10963
  canvasWorld: t.canvasWorld,
10938
10964
  enabled: d,
@@ -10947,8 +10973,8 @@ var Yv = { viewer: Jv }, Xv = {
10947
10973
  ly(t.windowId, !1);
10948
10974
  let r = y.find((t) => t.id === e), i = r ? Wy(r["dbf:linkedMap"], s) : null;
10949
10975
  if (r && i && l) {
10950
- let e = Xx(r, (e) => y.some((t) => t.id === e));
10951
- l(t.windowId, i, Vx(r, e, g));
10976
+ let e = tS(r, (e) => y.some((t) => t.id === e));
10977
+ l(t.windowId, i, Kx(r, e, g));
10952
10978
  return;
10953
10979
  }
10954
10980
  _(t.windowId, e);
@@ -10968,18 +10994,18 @@ var Yv = { viewer: Jv }, Xv = {
10968
10994
  y: e.y + r.y
10969
10995
  };
10970
10996
  }, T = C.map(w), E = x.map((e) => C.find((t) => t.id === e)).find(Boolean);
10971
- Vb({
10997
+ Kb({
10972
10998
  enabled: d,
10973
10999
  firstPoint: E ? w(E) : null,
10974
- focusOnPoint: (e) => Ox(t.windowId, e),
10975
- halfwayToPoint: (e) => kx(t.windowId, e),
11000
+ focusOnPoint: (e) => Nx(t.windowId, e),
11001
+ halfwayToPoint: (e) => Px(t.windowId, e),
10976
11002
  initialView: o,
10977
11003
  points: T,
10978
11004
  storeViewport: f,
10979
11005
  viewer: t.viewer,
10980
11006
  windowId: t.windowId
10981
11007
  });
10982
- let D = $x(d ? t.viewer?.element : null);
11008
+ let D = iS(d ? t.viewer?.element : null);
10983
11009
  if (d) {
10984
11010
  let n = p.map((e) => ({
10985
11011
  id: e.id,
@@ -10998,12 +11024,12 @@ var Yv = { viewer: Jv }, Xv = {
10998
11024
  });
10999
11025
  },
11000
11026
  mapStateToProps: (e, { windowId: t }) => ({
11001
- annotationPages: Kx(e, t),
11002
- existingPreviewCompanionWindowId: Yx(e, t),
11027
+ annotationPages: Zx(e, t),
11028
+ existingPreviewCompanionWindowId: eS(e, t),
11003
11029
  linkedMapResolver: Gy(e),
11004
- previewShowsMapInfo: ke(e, { companionWindowId: Yx(e, t) })?.annotationid === iy,
11005
- initialView: Jy(e, t) ? "fill" : Pb(Gt(e).maps?.initialView),
11006
- locale: Gb(Gt(e).language),
11030
+ previewShowsMapInfo: ke(e, { companionWindowId: eS(e, t) })?.annotationid === iy,
11031
+ initialView: Jy(e, t) ? "fill" : zb(Gt(e).maps?.initialView),
11032
+ locale: Xb(Gt(e).language),
11007
11033
  site: Gt(e).maps?.site === !0
11008
11034
  }),
11009
11035
  mapDispatchToProps: {
@@ -11012,27 +11038,27 @@ var Yv = { viewer: Jv }, Xv = {
11012
11038
  updateCompanionWindow: Na,
11013
11039
  updateViewport: mc
11014
11040
  }
11015
- }], tS = (e) => {
11041
+ }], oS = (e) => {
11016
11042
  let t = new Set(e.map((e) => e.id));
11017
- return Mb(e).flatMap((e) => {
11018
- let n = lx(e);
11043
+ return Lb(e).flatMap((e) => {
11044
+ let n = mx(e);
11019
11045
  return n ? [{
11020
11046
  point: n,
11021
11047
  poiId: e.id,
11022
- previewId: Xx(e, (e) => t.has(e))
11048
+ previewId: tS(e, (e) => t.has(e))
11023
11049
  }] : [];
11024
11050
  });
11025
- }, nS = (e, t, n) => {
11051
+ }, sS = (e, t, n) => {
11026
11052
  if (e.length === 0) return null;
11027
11053
  let r = e.findIndex((e) => e.poiId === t);
11028
11054
  if (r === -1) return e[0];
11029
11055
  let i = Math.min(e.length - 1, Math.max(0, r + n));
11030
11056
  return i === r ? null : e[i];
11031
- }, rS = 500, iS = 50, aS = Math.PI / 6, oS = ({ direction: e, speed: t }, n, r) => t < rS || Math.abs(n.x) < iS || Math.abs(n.y) > Math.abs(n.x) * Math.tan(aS) || Math.abs(Math.cos(e)) < Math.cos(aS) || Math.sign(Math.cos(e)) !== Math.sign(n.x) ? null : (r ? n.x > 0 : n.x < 0) ? 1 : -1, sS = [{
11057
+ }, cS = 500, lS = 50, uS = Math.PI / 6, dS = ({ direction: e, speed: t }, n, r) => t < cS || Math.abs(n.x) < lS || Math.abs(n.y) > Math.abs(n.x) * Math.tan(uS) || Math.abs(Math.cos(e)) < Math.cos(uS) || Math.sign(Math.cos(e)) !== Math.sign(n.x) ? null : (r ? n.x > 0 : n.x < 0) ? 1 : -1, fS = [{
11032
11058
  target: "OpenSeadragonViewer",
11033
11059
  mode: "add",
11034
11060
  component: ({ viewer: e, windowId: t, addCompanionWindow: n, annotationPages: r, existingPreviewCompanionWindowId: i, selectAnnotation: a, selectedAnnotationId: o, updateCompanionWindow: s }) => {
11035
- let c = Qx(), l = pl().direction === "rtl", u = P({
11061
+ let c = rS(), l = pl().direction === "rtl", u = P({
11036
11062
  annotationPages: r,
11037
11063
  dispatchAddCompanionWindow: n,
11038
11064
  dispatchSelectAnnotation: a,
@@ -11057,11 +11083,11 @@ var Yv = { viewer: Jv }, Xv = {
11057
11083
  x: 0,
11058
11084
  y: 0
11059
11085
  }, r = !1, i = (e) => {
11060
- let n = u.current, r = nS(tS(qx(n.annotationPages)), n.selectedAnnotationId, e);
11061
- r && (n.dispatchSelectAnnotation(t, r.poiId), Zx({
11086
+ let n = u.current, r = sS(oS(Qx(n.annotationPages)), n.selectedAnnotationId, e);
11087
+ r && (n.dispatchSelectAnnotation(t, r.poiId), nS({
11062
11088
  addCompanionWindow: n.dispatchAddCompanionWindow,
11063
11089
  updateCompanionWindow: n.dispatchUpdateCompanionWindow
11064
- }, t, n.existingPreviewCompanionWindowId, r.previewId, n.previewPosition), requestAnimationFrame(() => requestAnimationFrame(() => Ox(t, r.point))));
11090
+ }, t, n.existingPreviewCompanionWindowId, r.previewId, n.previewPosition), requestAnimationFrame(() => requestAnimationFrame(() => Nx(t, r.point))));
11065
11091
  }, a = (e) => {
11066
11092
  e.pointerType === "touch" && (n = {
11067
11093
  x: 0,
@@ -11076,7 +11102,7 @@ var Yv = { viewer: Jv }, Xv = {
11076
11102
  r = !0;
11077
11103
  }, c = (e) => {
11078
11104
  if (e.pointerType !== "touch" || r) return;
11079
- let t = oS(e, n, u.current.isRtl);
11105
+ let t = dS(e, n, u.current.isRtl);
11080
11106
  t && (e.preventDefaultAction = !0, i(t));
11081
11107
  }, l = Sy(t, i), d = [
11082
11108
  ["canvas-press", a],
@@ -11090,8 +11116,8 @@ var Yv = { viewer: Jv }, Xv = {
11090
11116
  }, [e, t]), null;
11091
11117
  },
11092
11118
  mapStateToProps: (e, { windowId: t }) => ({
11093
- annotationPages: Kx(e, t),
11094
- existingPreviewCompanionWindowId: Yx(e, t),
11119
+ annotationPages: Zx(e, t),
11120
+ existingPreviewCompanionWindowId: eS(e, t),
11095
11121
  selectedAnnotationId: Kn(e, { windowId: t })
11096
11122
  }),
11097
11123
  mapDispatchToProps: {
@@ -11099,7 +11125,7 @@ var Yv = { viewer: Jv }, Xv = {
11099
11125
  selectAnnotation: zn,
11100
11126
  updateCompanionWindow: Na
11101
11127
  }
11102
- }], cS = {
11128
+ }], pS = {
11103
11129
  border: 0,
11104
11130
  clip: "rect(0 0 0 0)",
11105
11131
  height: 1,
@@ -11109,7 +11135,7 @@ var Yv = { viewer: Jv }, Xv = {
11109
11135
  position: "absolute",
11110
11136
  whiteSpace: "nowrap",
11111
11137
  width: 1
11112
- }, lS = {
11138
+ }, mS = {
11113
11139
  ar: {
11114
11140
  ...oy.ar,
11115
11141
  rights: "حقوق الصورة",
@@ -11122,12 +11148,12 @@ var Yv = { viewer: Jv }, Xv = {
11122
11148
  zoomIn: "Zoom in",
11123
11149
  zoomOut: "Zoom out"
11124
11150
  }
11125
- }, uS = 1.5, dS = {
11151
+ }, hS = 1.5, gS = {
11126
11152
  target: "WindowCanvasNavigationControls",
11127
11153
  mode: "wrap",
11128
11154
  component: ({ TargetComponent: e, targetProps: t, addCompanionWindow: n, announcement: r, hasMapInfo: i, locale: a, panelPosition: o, previewAnnotationId: s, previewId: c, requiredStatement: l, rights: u, site: d, updateCompanionWindow: f }) => {
11129
- let { windowId: p } = t, m = dy(p), [h, g] = il(!1), _ = nl(), v = Qx(), y = () => {
11130
- ly(p, !1), Zx({
11155
+ let { windowId: p } = t, m = dy(p), [h, g] = il(!1), _ = nl(), v = rS(), y = () => {
11156
+ ly(p, !1), nS({
11131
11157
  addCompanionWindow: n,
11132
11158
  updateCompanionWindow: f
11133
11159
  }, p, c ?? void 0, iy, v);
@@ -11152,7 +11178,7 @@ var Yv = { viewer: Jv }, Xv = {
11152
11178
  i,
11153
11179
  c
11154
11180
  ]), !d) return /* @__PURE__ */ F(e, { ...t });
11155
- let S = lS[a], C = (e) => {
11181
+ let S = mS[a], C = (e) => {
11156
11182
  let t = Ys.get(p)?.current?.viewport;
11157
11183
  t && (t.zoomBy(e), t.applyConstraints());
11158
11184
  }, w = l.flatMap(({ values: e }) => e).filter(Boolean), T = w.length > 0 || u.length > 0, E = "none";
@@ -11165,7 +11191,7 @@ var Yv = { viewer: Jv }, Xv = {
11165
11191
  "aria-atomic": "true",
11166
11192
  className: "dbf-map-live",
11167
11193
  role: "status",
11168
- style: cS,
11194
+ style: pS,
11169
11195
  children: r
11170
11196
  }),
11171
11197
  o === "right" && /* @__PURE__ */ F("button", {
@@ -11189,14 +11215,14 @@ var Yv = { viewer: Jv }, Xv = {
11189
11215
  "aria-label": S.zoomIn,
11190
11216
  className: "dbf-map-controls__button",
11191
11217
  "data-action": "zoom-in",
11192
- onClick: () => C(uS),
11218
+ onClick: () => C(hS),
11193
11219
  type: "button"
11194
11220
  }),
11195
11221
  /* @__PURE__ */ F("button", {
11196
11222
  "aria-label": S.zoomOut,
11197
11223
  className: "dbf-map-controls__button",
11198
11224
  "data-action": "zoom-out",
11199
- onClick: () => C(1 / uS),
11225
+ onClick: () => C(1 / hS),
11200
11226
  type: "button"
11201
11227
  }),
11202
11228
  T && /* @__PURE__ */ F("button", {
@@ -11216,7 +11242,7 @@ var Yv = { viewer: Jv }, Xv = {
11216
11242
  hidden: !h,
11217
11243
  id: _,
11218
11244
  lang: a,
11219
- children: [w.map((e) => /* @__PURE__ */ F("p", { dangerouslySetInnerHTML: { __html: Yb(e) } }, e)), u.map((e) => /* @__PURE__ */ F("p", { children: /^https?:\/\//.test(e) ? /* @__PURE__ */ F("a", {
11245
+ children: [w.map((e) => /* @__PURE__ */ F("p", { dangerouslySetInnerHTML: { __html: ex(e) } }, e)), u.map((e) => /* @__PURE__ */ F("p", { children: /^https?:\/\//.test(e) ? /* @__PURE__ */ F("a", {
11220
11246
  href: e,
11221
11247
  children: e
11222
11248
  }) : e }, e))]
@@ -11225,13 +11251,13 @@ var Yv = { viewer: Jv }, Xv = {
11225
11251
  });
11226
11252
  },
11227
11253
  mapStateToProps: (e, { windowId: t }) => {
11228
- let n = Gt(e), r = Yx(e, t), i = r ? ke(e, { companionWindowId: r }) : void 0, a = i?.position, o = Gb(n.language), s = Jx(e, t), c = Kn(e, { windowId: t }), l = s.find((e) => e.id === c), u = l?.["dbf:journey"]?.id, d = u ? cx(s, u) : [], f = l ? d.findIndex((e) => e.id === l.id) : -1;
11254
+ let n = Gt(e), r = eS(e, t), i = r ? ke(e, { companionWindowId: r }) : void 0, a = i?.position, o = Xb(n.language), s = $x(e, t), c = Kn(e, { windowId: t }), l = s.find((e) => e.id === c), u = l?.["dbf:journey"]?.id, d = u ? px(s, u) : [], f = l ? d.findIndex((e) => e.id === l.id) : -1;
11229
11255
  return {
11230
- announcement: l ? Ry(Xb(l, o, "identifying"), f >= 0 ? {
11256
+ announcement: l ? Ry(tx(l, o, "identifying"), f >= 0 ? {
11231
11257
  count: d.length,
11232
11258
  number: f + 1
11233
11259
  } : null, o) : "",
11234
- hasMapInfo: sx(e, t, o) !== null,
11260
+ hasMapInfo: fx(e, t, o) !== null,
11235
11261
  locale: o,
11236
11262
  panelPosition: a === "right" || a === "bottom" ? a : null,
11237
11263
  previewAnnotationId: i?.annotationid ?? null,
@@ -11245,7 +11271,7 @@ var Yv = { viewer: Jv }, Xv = {
11245
11271
  addCompanionWindow: co,
11246
11272
  updateCompanionWindow: Na
11247
11273
  }
11248
- }, fS = [dS], pS = {
11274
+ }, _S = [gS], vS = {
11249
11275
  theme: { components: {
11250
11276
  Window: { styleOverrides: {
11251
11277
  bottom: ({ theme: e }) => ({
@@ -11276,14 +11302,14 @@ var Yv = { viewer: Jv }, Xv = {
11276
11302
  panels: { canvas: !1 }
11277
11303
  },
11278
11304
  workspaceControlPanel: { enabled: !1 }
11279
- }, mS = {
11305
+ }, yS = {
11280
11306
  styles: { prepend: !0 },
11281
11307
  window: {
11282
11308
  defaultSidebarPanelWidth: 480,
11283
11309
  defaultSidebarPanelHeight: 310
11284
11310
  }
11285
- }, hS = ["en", "ar"];
11286
- function gS({ getLinkedMapManifestId: e = void 0, initialView: t = "fill", lang: n = "en", manifestId: r, site: i = !1 }) {
11311
+ }, bS = ["en", "ar"];
11312
+ function xS({ getLinkedMapManifestId: e = void 0, initialView: t = "fill", lang: n = "en", manifestId: r, site: i = !1 }) {
11287
11313
  let a = nl().replace(/:/g, ""), o = P(null), s = P(null), c = P(e);
11288
11314
  c.current = e;
11289
11315
  let l = !!e, u = P(n);
@@ -11295,12 +11321,12 @@ function gS({ getLinkedMapManifestId: e = void 0, initialView: t = "fill", lang:
11295
11321
  let t = document.createElement("div");
11296
11322
  t.id = `mirador-map-viewer-${a}`, t.style.position = "absolute", t.style.inset = 0, e.appendChild(t);
11297
11323
  let n = Jv({
11298
- ...pS,
11324
+ ...vS,
11299
11325
  ...i ? {
11300
- styles: mS.styles,
11326
+ styles: yS.styles,
11301
11327
  window: {
11302
- ...pS.window,
11303
- ...mS.window
11328
+ ...vS.window,
11329
+ ...yS.window
11304
11330
  }
11305
11331
  } : {},
11306
11332
  id: t.id,
@@ -11312,10 +11338,10 @@ function gS({ getLinkedMapManifestId: e = void 0, initialView: t = "fill", lang:
11312
11338
  },
11313
11339
  windows: [{ manifestId: r }]
11314
11340
  }, [
11315
- ...eS,
11341
+ ...aS,
11316
11342
  ...ab,
11317
- ...sS,
11318
- ...fS
11343
+ ...fS,
11344
+ ..._S
11319
11345
  ]);
11320
11346
  return s.current = n, () => {
11321
11347
  s.current = null, n.unmount(), t.remove();
@@ -11339,20 +11365,20 @@ function gS({ getLinkedMapManifestId: e = void 0, initialView: t = "fill", lang:
11339
11365
  }
11340
11366
  });
11341
11367
  }
11342
- gS.propTypes = {
11368
+ xS.propTypes = {
11343
11369
  getLinkedMapManifestId: L.default.func,
11344
- initialView: L.default.oneOf(Nb),
11345
- lang: L.default.oneOf(hS),
11370
+ initialView: L.default.oneOf(Rb),
11371
+ lang: L.default.oneOf(bS),
11346
11372
  manifestId: L.default.string.isRequired,
11347
11373
  site: L.default.bool
11348
11374
  };
11349
11375
  //#endregion
11350
11376
  //#region src/index.js
11351
- var _S = {
11377
+ var SS = {
11352
11378
  ...Yv,
11353
11379
  ...Xv
11354
11380
  };
11355
11381
  //#endregion
11356
- export { Bs as AccessTokenSender, M as ActionTypes, Gn as AnnotationFactory, jn as AnnotationItem, Nn as AnnotationList, An as AnnotationPage, kn as AnnotationResource, Oi as AnnotationSettings, $s as AnnotationsOverlay, Pp as App, jp as AppProviders, Tr as AttributionPanel, Dc as AudioViewer, Va as BackgroundPluginArea, Uo as BookViewIcon, Go as Branding, Xs as CanvasAnnotationDisplay, Ps as CanvasAnnotations, it as CanvasGroupings, Ws as CanvasIndexIcon, ys as CanvasInfo, Br as CanvasLayers, ur as CanvasWorld, _o as ChangeThemeDialog, Fo as CollapsibleSection, Hr as CollectionDialog, go as CollectionInfo, Cr as CompanionArea, zs as CompanionWindow, bi as CompanionWindowFactory, Cs as CompanionWindowRegistry, Ta as CompanionWindowSection, Ir as ConnectedAnnotationSettings, Gs as ConnectedAnnotationsOverlay, Mp as ConnectedAppProviders, Hs as ConnectedAttributionPanel, Oc as ConnectedAudioViewer, po as ConnectedBackgroundPluginArea, Do as ConnectedBranding, Fa as ConnectedCanvasAnnotations, Ao as ConnectedCanvasInfo, Yi as ConnectedCanvasLayers, qi as ConnectedChangeThemeDialog, Yo as ConnectedCollapsibleSection, Zi as ConnectedCollectionDialog, is as ConnectedCollectionInfo, Eo as ConnectedCompanionArea, ws as ConnectedCompanionWindow, xo as ConnectedCompanionWindowFactory, Ns as ConnectedCustomPanel, wi as ConnectedErrorContent, _i as ConnectedErrorDialog, la as ConnectedFullScreenButton, Mc as ConnectedGalleryView, Ac as ConnectedGalleryViewThumbnail, Io as ConnectedIIIFAuthentication, Sc as ConnectedIIIFThumbnail, Ga as ConnectedLabelValueMetadata, yr as ConnectedLanguageSettings, Ar as ConnectedLayersPanel, ls as ConnectedLocalePicker, ti as ConnectedManifestForm, Aa as ConnectedManifestInfo, Ur as ConnectedManifestListItem, ma as ConnectedManifestListItemError, ms as ConnectedManifestRelatedLinks, Fs as ConnectedMinimalWindow, Tc as ConnectedMiradorMenuButton, Zr as ConnectedMosaicRenderPreview, ec as ConnectedOpenSeadragonViewer, Mr as ConnectedPrimaryWindow, jr as ConnectedSanitizedHtml, Lr as ConnectedScrollIndicatedDialogContent, yo as ConnectedSearchHit, Fr as ConnectedSearchPanel, Wr as ConnectedSearchPanelControls, mi as ConnectedSearchPanelNavigation, wo as ConnectedSearchResults, Pc as ConnectedSelectCollection, ya as ConnectedSidebarIndexItem, Qo as ConnectedSidebarIndexList, $i as ConnectedSidebarIndexTableOfContents, ha as ConnectedSidebarIndexThumbnail, Gc as ConnectedTextViewer, yi as ConnectedThumbnailCanvasGrouping, Sr as ConnectedThumbnailNavigation, qc as ConnectedVideoViewer, Fc as ConnectedViewerInfo, Vc as ConnectedViewerNavigation, to as ConnectedWindow, oo as ConnectedWindowAuthenticationBar, Uc as ConnectedWindowCanvasNavigationControls, oa as ConnectedWindowList, Za as ConnectedWindowListButton, Kr as ConnectedWindowSideBar, uo as ConnectedWindowSideBarAnnotationsPanel, gi as ConnectedWindowSideBarButtons, ra as ConnectedWindowSideBarCanvasPanel, Rs as ConnectedWindowSideBarCollectionPanel, gr as ConnectedWindowSideBarInfoPanel, cs as ConnectedWindowThumbnailSettings, Dr as ConnectedWindowTopBar, pa as ConnectedWindowTopBarPluginArea, ci as ConnectedWindowTopBarPluginMenu, fi as ConnectedWindowTopBarTitle, ps as ConnectedWindowTopMenu, Li as ConnectedWindowTopMenuButton, rs as ConnectedWindowViewSettings, Yc as ConnectedWindowViewer, Vo as ConnectedWorkspace, Da as ConnectedWorkspaceAdd, vo as ConnectedWorkspaceAddButton, ds as ConnectedWorkspaceArea, os as ConnectedWorkspaceControlPanel, gs as ConnectedWorkspaceControlPanelButtons, Ri as ConnectedWorkspaceElastic, bs as ConnectedWorkspaceElasticWindow, Is as ConnectedWorkspaceExport, Sa as ConnectedWorkspaceImport, Or as ConnectedWorkspaceMenu, js as ConnectedWorkspaceMenuButton, Vs as ConnectedWorkspaceMosaic, Ko as ConnectedWorkspaceOptionsButton, so as ConnectedWorkspaceOptionsMenu, Rr as ConnectedWorkspaceSelectionDialog, Hc as ConnectedZoomControls, Wi as CustomPanel, ge as EMPTY_ARRAY, C as EMPTY_OBJECT, Ni as ErrorContent, as as ErrorDialog, Xr as FullScreenButton, Jo as FullScreenContext, jc as GalleryView, ka as GalleryViewIcon, kc as GalleryViewThumbnail, fo as IIIFAuthentication, hr as IIIFDropTarget, Ia as IIIFIFrameCommunication, bc as IIIFThumbnail, Zs as ImageFailureMessage, eo as LabelValueMetadata, Pi as LanguageSettings, Os as LayersPanel, Ba as LocalePicker, iy as MAP_INFO_ID, hS as MAP_VIEWER_LANGUAGES, va as ManifestForm, Wo as ManifestInfo, ai as ManifestListItem, ua as ManifestListItemError, zo as ManifestRelatedLinks, gS as MapViewer, Ki as MinimalWindow, we as MiradorCanvas, us as MiradorIcon, wn as MiradorManifest, wc as MiradorMenuButton, qv as MiradorViewer, na as MosaicLayout, Zo as MosaicRenderPreview, ay as NESTED_ORIGIN_ID, li as NestedMenu, Ts as NewBrowserWindow, Ys as OSDReferences, tc as OpenSeadragonCanvasOverlay, Qs as OpenSeadragonViewer, oy as PANEL_LABELS, ry as POI_PREVIEW_CONTENT_ID, re as PluginContext, yc as PluginHook, Ul as PluginProvider, As as PrimaryWindow, Rc as RestoreZoomIcon, fy as SHEET_SNAPS, ks as SanitizedHtml, ki as ScrollIndicatedDialogContent, Gi as ScrollTo, vi as SearchHit, Di as SearchPanel, ni as SearchPanelControls, zi as SearchPanelNavigation, xr as SearchResults, Nc as SelectCollection, Fi as SidebarIndexItem, oi as SidebarIndexList, sa as SidebarIndexTableOfContents, da as SidebarIndexThumbnail, Wc as TextViewer, Ci as ThumbnailCanvasGrouping, kt as ThumbnailFactory, bo as ThumbnailNavigation, vs as ThumbnailNavigationBottomIcon, ko as ThumbnailNavigationRightIcon, Si as TruncatedHit, Kc as VideoViewer, Bc as ViewerInfo, Lc as ViewerNavigation, Xo as Window, Ea as WindowAuthenticationBar, zc as WindowCanvasNavigationControls, qr as WindowList, Qi as WindowListButton, ta as WindowMaxIcon, ei as WindowMinIcon, Ja as WindowOptionsIcon, ii as WindowSideBar, ao as WindowSideBarAnnotationsPanel, Vi as WindowSideBarButtons, Qr as WindowSideBarCanvasPanel, Pa as WindowSideBarCollectionPanel, Ya as WindowSideBarInfoPanel, za as WindowThumbnailSettings, aa as WindowTopBar, xa as WindowTopBarPluginArea, _a as WindowTopBarPluginMenu, es as WindowTopBarTitle, Ro as WindowTopMenu, vr as WindowTopMenuButton, ho as WindowViewSettings, Jc as WindowViewer, pi as Workspace, Ai as WorkspaceAdd, xi as WorkspaceAddButton, ts as WorkspaceArea, Ec as WorkspaceContext, La as WorkspaceControlPanel, Ha as WorkspaceControlPanelButtons, ja as WorkspaceDialog, jo as WorkspaceElastic, Ka as WorkspaceElasticWindow, Ma as WorkspaceExport, xs as WorkspaceImport, Es as WorkspaceMenu, Hi as WorkspaceMenuButton, wr as WorkspaceMosaic, Mo as WorkspaceOptionsButton, no as WorkspaceOptionsMenu, Nr as WorkspaceSelectionDialog, So as WorkspaceTypeElasticIcon, Ti as WorkspaceTypeMosaicIcon, Ic as ZoomControls, p_ as accessTokensReducer, ca as addAuthenticationRequest, co as addCompanionWindow, Oo as addError, ro as addOrUpdateCompanionWindow, Vl as addPluginsToCompanionWindowsRegistry, Mi as addResource, fc as addWindow, qx as annotationPagesItems, W_ as annotationsReducer, Fe as asArray, G_ as authReducer, nb as backToParentMap, Y_ as catalogReducer, j_ as companionWindowsReducer, H_ as configReducer, Bl as connectPluginsToStore, vy as consumeOpenMinimised, jy as consumePanelFocus, Kv as createPluggableStore, Gv as createStore, zl as createTargetToPluginMapping, vc as cssNs, _S as default, pS as defaultMapViewerConfig, Yn as deselectAnnotation, Wb as editInPlaceOfPreview, K_ as elasticLayoutReducer, Ax as ensurePointVisible, N_ as errorsReducer, Ca as expandNodes, Qb as eyebrowFor, Il as fetchInfoResponse, mo as fetchManifest, hi as fetchSearch, Zp as filterValidPlugins, jx as fitMapToPoints, Ox as focusMapOnPoint, cc as focusWindow, Ms as getAccessTokens, vt as getAllowedWindowViewTypes, rr as getAnnotationResourcesByMotivation, Fn as getAnnotationResourcesByMotivationForCanvas, On as getAnnotationResourcesDataForCanvas, Dn as getAnnotations, Ui as getAuth, kr as getAuthProfiles, $t as getBestThumbnail, ln as getCanvas, Jx as getCanvasAnnotationItems, Kx as getCanvasAnnotationPages, Kt as getCanvasDescription, tr as getCanvasForAnnotation, nn as getCanvasGrouping, Pt as getCanvasGroupings, He as getCanvasIndex, gt as getCanvasLabel, cr as getCanvasLayers, Jt as getCanvasMetadata, on as getCanvases, me as getCatalog, nt as getCompanionAreaVisibility, ke as getCompanionWindow, j as getCompanionWindowIdsForPosition, qe as getCompanionWindowLocale, Bt as getCompanionWindows, Se as getCompanionWindowsForContent, Rt as getCompanionWindowsForPosition, Gt as getConfig, tm as getConfigFromPlugins, Nt as getContainerId, Gb as getContentLocale, bt as getCurrentCanvas, Js as getCurrentCanvasWorld, Ji as getDefaultSidebarVariant, Cn as getDestructuredMetadata, Oe as getElasticLayout, zr as getExpandedNodeIds, jt as getExportableState, De as getFocusedWindowId, Ke as getFullScreenEnabled, mn as getIiifThumbnailOpts, ht as getLanguagesFromConfigWithCurrent, zt as getLatestError, or as getLayers, dr as getLayersForVisibleCanvases, mr as getLayersForWindow, Ky as getLinkedMapManifestId, Gy as getLinkedMapResolver, Ce as getLocale, oe as getManifest, at as getManifestAutocompleteService, Me as getManifestDescription, rt as getManifestError, st as getManifestHomepage, je as getManifestLocale, Re as getManifestLogo, en as getManifestMetadata, Ie as getManifestProviderName, dt as getManifestRelated, lt as getManifestRelatedContent, pt as getManifestRenderings, Ye as getManifestSearchService, be as getManifestSeeAlso, Et as getManifestStatus, dn as getManifestSummary, qt as getManifestThumbnail, an as getManifestTitle, It as getManifestUrl, _t as getManifestoInstance, ue as getManifests, Pr as getManuallyExpandedNodeIds, sx as getMapInfo, yn as getMaximizedWindowsIds, Xt as getMetadataLocales, Ve as getMiradorCanvasWrapper, Qe as getMiradorManifestWrapper, Yy as getNestedOrigin, Vt as getNextCanvasGrouping, Bn as getNextSearchId, nS as getNextTourStep, Ei as getNodeIdToScrollTo, cx as getOrderedJourneyPois, lx as getPoiPoint, Mn as getPresentAnnotationsOnSelectedCanvases, Xx as getPreviewAnnotationId, Yx as getPreviewCompanionWindowId, fn as getPreviousCanvasGrouping, cn as getProviderLogo, em as getReducersFromPlugins, gn as getRequestsConfig, St as getRequiredStatement, Vn as getResourceAnnotationForSearchHit, Zn as getResourceAnnotationLabel, Ut as getRights, nm as getSagasFromPlugins, Jn as getSearchAnnotationsForCompanionWindow, Un as getSearchAnnotationsForWindow, Hn as getSearchForWindow, In as getSearchIsFetching, nr as getSearchNumTotal, ar as getSearchQuery, Kn as getSelectedAnnotationId, Tn as getSelectedAnnotationsOnCanvases, Rn as getSelectedContentSearchAnnotationIds, We as getSequence, Je as getSequenceBehaviors, Ae as getSequenceTreeStructure, Pe as getSequenceViewingDirection, Be as getSequenceViewingHint, Ze as getSequences, my as getSheetSnap, Sn as getShowZoomControlsConfig, sr as getSortedLayers, ir as getSortedSearchAnnotationsForCompanionWindow, Pn as getSortedSearchHitsForCompanionWindow, oS as getSwipeDirection, yt as getTheme, bn as getThemeDirection, et as getThemeIds, Tt as getThumbnailFactory, Ue as getThumbnailNavigationPosition, Ee as getThumbnailsConfig, tS as getTourSteps, ne as getViewer, Ct as getVisibleCanvasAudioResources, Dt as getVisibleCanvasCaptions, Zt as getVisibleCanvasIds, Wt as getVisibleCanvasNonTiledResources, Mt as getVisibleCanvasTextResources, At as getVisibleCanvasVideoResources, mt as getVisibleCanvases, yx as getVisibleMapArea, Co as getVisibleNodeIds, y as getWindow, $e as getWindowConfig, Te as getWindowDraggability, ce as getWindowIds, fe as getWindowManifests, _n as getWindowTitles, tt as getWindowViewType, S as getWindows, ae as getWorkspace, xe as getWorkspaceType, Xa as handleDrop, Zy as hasPendingParentViewport, uc as hideCollectionDialog, Qn as hoverAnnotation, Xi as htmlRules, Ua as importConfig, Qa as importMiradorState, z_ as infoResponsesReducer, Lt as isFocused, Dy as isInsideMap, Jy as isNestedMap, Ks as journeyStopNumbers, J_ as layersReducer, R_ as manifestsReducer, sS as mapInteractionPlugins, oc as maximizeWindow, tx as mediaImageUrl, nc as minimizeWindow, E as miradorSlice, ab as nestedMapPlugins, tb as openNestedMap, _y as openNextMinimised, Zx as openPreview, eS as poiPreviewPlugins, hs as readImageMetadata, Yr as receiveAccessToken, di as receiveAccessTokenFailure, Wn as receiveAnnotation, Ln as receiveAnnotationFailure, Pl as receiveDegradedInfoResponse, Nl as receiveInfoResponse, Fl as receiveInfoResponseFailure, Oa as receiveManifest, Ho as receiveManifestFailure, Bi as receiveSearch, Us as receiveSearchFailure, Sy as registerTourStepper, Ss as removeCompanionWindow, _s as removeError, Ll as removeInfoResponse, ss as removeManifest, Gr as removeResource, Er as removeSearch, lc as removeWindow, $o as requestAccessToken, Xn as requestAnnotation, $n as requestCanvasAnnotations, Ml as requestInfoResponse, Ra as requestManifest, Oy as requestPanelFocus, ia as requestSearch, si as resetAuthenticationState, yy as resetSheet, ga as resolveAccessTokenRequest, fa as resolveAuthenticationRequest, Wy as resolveLinkedMapManifestId, Z_ as rootReducer, Wv as rootSaga, Yb as sanitizeDescription, q_ as searchesReducer, zn as selectAnnotation, Ge as selectCompanionWindowDimensions, Ds as selectCurrentAuthServices, hn as selectInfoResponse, xn as selectInfoResponses, _c as setCanvas, dc as setCompanionAreaOpen, qo as setConfig, $r as setContentSearchCurrentAnnotation, hc as setNextCanvas, ly as setPanelCollapsed, gc as setPreviousCanvas, hy as setSheetSnap, rc as setWindowThumbnailPosition, sc as setWindowViewType, ba as setWorkspaceAddVisibility, Ii as setWorkspaceViewportDimensions, _r as setWorkspaceViewportPosition, k as settings, pc as showCollectionDialog, dS as siteMapToolsPlugin, fS as siteMapToolsPlugins, mS as siteMapViewerConfig, En as sortSearchAnnotationsByCanvasOrder, Cy as stepTour, Xb as textBody, qn as toggleAnnotationDisplay, qa as toggleDraggingEnabled, Ls as toggleNode, ic as toggleWindowSideBar, fs as toggleZoomControls, Na as updateCompanionWindow, No as updateConfig, ea as updateElasticWindowLayout, ri as updateLayers, mc as updateViewport, ac as updateWindow, Lo as updateWorkspace, ns as updateWorkspaceMosaicLayout, Ty as useMinimiseOnFirstInteraction, dy as usePanelCollapsed, ky as usePanelFocusRequest, Qx as usePreviewPosition, Qy as useRestoreParentViewport, by as useSheetSnap, cl as useTranslation, Up as validatePlugin, Jv as viewer, U_ as viewersReducer, L_ as windowsReducer, ee as withPlugins, ll as withTranslation, I_ as workspaceReducer, kx as zoomMapHalfwayToPoint };
11382
+ export { Bs as AccessTokenSender, M as ActionTypes, Gn as AnnotationFactory, jn as AnnotationItem, Nn as AnnotationList, An as AnnotationPage, kn as AnnotationResource, Oi as AnnotationSettings, $s as AnnotationsOverlay, Pp as App, jp as AppProviders, Tr as AttributionPanel, Dc as AudioViewer, Va as BackgroundPluginArea, Uo as BookViewIcon, Go as Branding, Xs as CanvasAnnotationDisplay, Ps as CanvasAnnotations, it as CanvasGroupings, Ws as CanvasIndexIcon, ys as CanvasInfo, Br as CanvasLayers, ur as CanvasWorld, _o as ChangeThemeDialog, Fo as CollapsibleSection, Hr as CollectionDialog, go as CollectionInfo, Cr as CompanionArea, zs as CompanionWindow, bi as CompanionWindowFactory, Cs as CompanionWindowRegistry, Ta as CompanionWindowSection, Ir as ConnectedAnnotationSettings, Gs as ConnectedAnnotationsOverlay, Mp as ConnectedAppProviders, Hs as ConnectedAttributionPanel, Oc as ConnectedAudioViewer, po as ConnectedBackgroundPluginArea, Do as ConnectedBranding, Fa as ConnectedCanvasAnnotations, Ao as ConnectedCanvasInfo, Yi as ConnectedCanvasLayers, qi as ConnectedChangeThemeDialog, Yo as ConnectedCollapsibleSection, Zi as ConnectedCollectionDialog, is as ConnectedCollectionInfo, Eo as ConnectedCompanionArea, ws as ConnectedCompanionWindow, xo as ConnectedCompanionWindowFactory, Ns as ConnectedCustomPanel, wi as ConnectedErrorContent, _i as ConnectedErrorDialog, la as ConnectedFullScreenButton, Mc as ConnectedGalleryView, Ac as ConnectedGalleryViewThumbnail, Io as ConnectedIIIFAuthentication, Sc as ConnectedIIIFThumbnail, Ga as ConnectedLabelValueMetadata, yr as ConnectedLanguageSettings, Ar as ConnectedLayersPanel, ls as ConnectedLocalePicker, ti as ConnectedManifestForm, Aa as ConnectedManifestInfo, Ur as ConnectedManifestListItem, ma as ConnectedManifestListItemError, ms as ConnectedManifestRelatedLinks, Fs as ConnectedMinimalWindow, Tc as ConnectedMiradorMenuButton, Zr as ConnectedMosaicRenderPreview, ec as ConnectedOpenSeadragonViewer, Mr as ConnectedPrimaryWindow, jr as ConnectedSanitizedHtml, Lr as ConnectedScrollIndicatedDialogContent, yo as ConnectedSearchHit, Fr as ConnectedSearchPanel, Wr as ConnectedSearchPanelControls, mi as ConnectedSearchPanelNavigation, wo as ConnectedSearchResults, Pc as ConnectedSelectCollection, ya as ConnectedSidebarIndexItem, Qo as ConnectedSidebarIndexList, $i as ConnectedSidebarIndexTableOfContents, ha as ConnectedSidebarIndexThumbnail, Gc as ConnectedTextViewer, yi as ConnectedThumbnailCanvasGrouping, Sr as ConnectedThumbnailNavigation, qc as ConnectedVideoViewer, Fc as ConnectedViewerInfo, Vc as ConnectedViewerNavigation, to as ConnectedWindow, oo as ConnectedWindowAuthenticationBar, Uc as ConnectedWindowCanvasNavigationControls, oa as ConnectedWindowList, Za as ConnectedWindowListButton, Kr as ConnectedWindowSideBar, uo as ConnectedWindowSideBarAnnotationsPanel, gi as ConnectedWindowSideBarButtons, ra as ConnectedWindowSideBarCanvasPanel, Rs as ConnectedWindowSideBarCollectionPanel, gr as ConnectedWindowSideBarInfoPanel, cs as ConnectedWindowThumbnailSettings, Dr as ConnectedWindowTopBar, pa as ConnectedWindowTopBarPluginArea, ci as ConnectedWindowTopBarPluginMenu, fi as ConnectedWindowTopBarTitle, ps as ConnectedWindowTopMenu, Li as ConnectedWindowTopMenuButton, rs as ConnectedWindowViewSettings, Yc as ConnectedWindowViewer, Vo as ConnectedWorkspace, Da as ConnectedWorkspaceAdd, vo as ConnectedWorkspaceAddButton, ds as ConnectedWorkspaceArea, os as ConnectedWorkspaceControlPanel, gs as ConnectedWorkspaceControlPanelButtons, Ri as ConnectedWorkspaceElastic, bs as ConnectedWorkspaceElasticWindow, Is as ConnectedWorkspaceExport, Sa as ConnectedWorkspaceImport, Or as ConnectedWorkspaceMenu, js as ConnectedWorkspaceMenuButton, Vs as ConnectedWorkspaceMosaic, Ko as ConnectedWorkspaceOptionsButton, so as ConnectedWorkspaceOptionsMenu, Rr as ConnectedWorkspaceSelectionDialog, Hc as ConnectedZoomControls, Wi as CustomPanel, ge as EMPTY_ARRAY, C as EMPTY_OBJECT, Ni as ErrorContent, as as ErrorDialog, Xr as FullScreenButton, Jo as FullScreenContext, jc as GalleryView, ka as GalleryViewIcon, kc as GalleryViewThumbnail, fo as IIIFAuthentication, hr as IIIFDropTarget, Ia as IIIFIFrameCommunication, bc as IIIFThumbnail, Zs as ImageFailureMessage, eo as LabelValueMetadata, Pi as LanguageSettings, Os as LayersPanel, Ba as LocalePicker, iy as MAP_INFO_ID, bS as MAP_VIEWER_LANGUAGES, va as ManifestForm, Wo as ManifestInfo, ai as ManifestListItem, ua as ManifestListItemError, zo as ManifestRelatedLinks, xS as MapViewer, Ki as MinimalWindow, we as MiradorCanvas, us as MiradorIcon, wn as MiradorManifest, wc as MiradorMenuButton, qv as MiradorViewer, na as MosaicLayout, Zo as MosaicRenderPreview, ay as NESTED_ORIGIN_ID, li as NestedMenu, Ts as NewBrowserWindow, Ys as OSDReferences, tc as OpenSeadragonCanvasOverlay, Qs as OpenSeadragonViewer, oy as PANEL_LABELS, ry as POI_PREVIEW_CONTENT_ID, re as PluginContext, yc as PluginHook, Ul as PluginProvider, As as PrimaryWindow, Rc as RestoreZoomIcon, fy as SHEET_SNAPS, ks as SanitizedHtml, ki as ScrollIndicatedDialogContent, Gi as ScrollTo, vi as SearchHit, Di as SearchPanel, ni as SearchPanelControls, zi as SearchPanelNavigation, xr as SearchResults, Nc as SelectCollection, Fi as SidebarIndexItem, oi as SidebarIndexList, sa as SidebarIndexTableOfContents, da as SidebarIndexThumbnail, Wc as TextViewer, Ci as ThumbnailCanvasGrouping, kt as ThumbnailFactory, bo as ThumbnailNavigation, vs as ThumbnailNavigationBottomIcon, ko as ThumbnailNavigationRightIcon, Si as TruncatedHit, Kc as VideoViewer, Bc as ViewerInfo, Lc as ViewerNavigation, Xo as Window, Ea as WindowAuthenticationBar, zc as WindowCanvasNavigationControls, qr as WindowList, Qi as WindowListButton, ta as WindowMaxIcon, ei as WindowMinIcon, Ja as WindowOptionsIcon, ii as WindowSideBar, ao as WindowSideBarAnnotationsPanel, Vi as WindowSideBarButtons, Qr as WindowSideBarCanvasPanel, Pa as WindowSideBarCollectionPanel, Ya as WindowSideBarInfoPanel, za as WindowThumbnailSettings, aa as WindowTopBar, xa as WindowTopBarPluginArea, _a as WindowTopBarPluginMenu, es as WindowTopBarTitle, Ro as WindowTopMenu, vr as WindowTopMenuButton, ho as WindowViewSettings, Jc as WindowViewer, pi as Workspace, Ai as WorkspaceAdd, xi as WorkspaceAddButton, ts as WorkspaceArea, Ec as WorkspaceContext, La as WorkspaceControlPanel, Ha as WorkspaceControlPanelButtons, ja as WorkspaceDialog, jo as WorkspaceElastic, Ka as WorkspaceElasticWindow, Ma as WorkspaceExport, xs as WorkspaceImport, Es as WorkspaceMenu, Hi as WorkspaceMenuButton, wr as WorkspaceMosaic, Mo as WorkspaceOptionsButton, no as WorkspaceOptionsMenu, Nr as WorkspaceSelectionDialog, So as WorkspaceTypeElasticIcon, Ti as WorkspaceTypeMosaicIcon, Ic as ZoomControls, p_ as accessTokensReducer, ca as addAuthenticationRequest, co as addCompanionWindow, Oo as addError, ro as addOrUpdateCompanionWindow, Vl as addPluginsToCompanionWindowsRegistry, Mi as addResource, fc as addWindow, Qx as annotationPagesItems, W_ as annotationsReducer, Fe as asArray, G_ as authReducer, nb as backToParentMap, Y_ as catalogReducer, j_ as companionWindowsReducer, H_ as configReducer, Bl as connectPluginsToStore, vy as consumeOpenMinimised, jy as consumePanelFocus, Kv as createPluggableStore, Gv as createStore, zl as createTargetToPluginMapping, vc as cssNs, SS as default, vS as defaultMapViewerConfig, Yn as deselectAnnotation, Yb as editInPlaceOfPreview, K_ as elasticLayoutReducer, Fx as ensurePointVisible, N_ as errorsReducer, Ca as expandNodes, rx as eyebrowFor, Il as fetchInfoResponse, mo as fetchManifest, hi as fetchSearch, Zp as filterValidPlugins, Ix as fitMapToPoints, Nx as focusMapOnPoint, cc as focusWindow, Ms as getAccessTokens, vt as getAllowedWindowViewTypes, rr as getAnnotationResourcesByMotivation, Fn as getAnnotationResourcesByMotivationForCanvas, On as getAnnotationResourcesDataForCanvas, Dn as getAnnotations, Ui as getAuth, kr as getAuthProfiles, $t as getBestThumbnail, ln as getCanvas, $x as getCanvasAnnotationItems, Zx as getCanvasAnnotationPages, Kt as getCanvasDescription, tr as getCanvasForAnnotation, nn as getCanvasGrouping, Pt as getCanvasGroupings, He as getCanvasIndex, gt as getCanvasLabel, cr as getCanvasLayers, Jt as getCanvasMetadata, on as getCanvases, me as getCatalog, nt as getCompanionAreaVisibility, ke as getCompanionWindow, j as getCompanionWindowIdsForPosition, qe as getCompanionWindowLocale, Bt as getCompanionWindows, Se as getCompanionWindowsForContent, Rt as getCompanionWindowsForPosition, Gt as getConfig, tm as getConfigFromPlugins, Nt as getContainerId, Xb as getContentLocale, bt as getCurrentCanvas, Js as getCurrentCanvasWorld, Ji as getDefaultSidebarVariant, Cn as getDestructuredMetadata, Oe as getElasticLayout, zr as getExpandedNodeIds, jt as getExportableState, De as getFocusedWindowId, Ke as getFullScreenEnabled, mn as getIiifThumbnailOpts, ht as getLanguagesFromConfigWithCurrent, zt as getLatestError, or as getLayers, dr as getLayersForVisibleCanvases, mr as getLayersForWindow, Ky as getLinkedMapManifestId, Gy as getLinkedMapResolver, Ce as getLocale, oe as getManifest, at as getManifestAutocompleteService, Me as getManifestDescription, rt as getManifestError, st as getManifestHomepage, je as getManifestLocale, Re as getManifestLogo, en as getManifestMetadata, Ie as getManifestProviderName, dt as getManifestRelated, lt as getManifestRelatedContent, pt as getManifestRenderings, Ye as getManifestSearchService, be as getManifestSeeAlso, Et as getManifestStatus, dn as getManifestSummary, qt as getManifestThumbnail, an as getManifestTitle, It as getManifestUrl, _t as getManifestoInstance, ue as getManifests, Pr as getManuallyExpandedNodeIds, fx as getMapInfo, yn as getMaximizedWindowsIds, Xt as getMetadataLocales, Ve as getMiradorCanvasWrapper, Qe as getMiradorManifestWrapper, Yy as getNestedOrigin, Vt as getNextCanvasGrouping, Bn as getNextSearchId, sS as getNextTourStep, Ei as getNodeIdToScrollTo, px as getOrderedJourneyPois, mx as getPoiPoint, Mn as getPresentAnnotationsOnSelectedCanvases, tS as getPreviewAnnotationId, eS as getPreviewCompanionWindowId, fn as getPreviousCanvasGrouping, cn as getProviderLogo, em as getReducersFromPlugins, gn as getRequestsConfig, St as getRequiredStatement, Vn as getResourceAnnotationForSearchHit, Zn as getResourceAnnotationLabel, Ut as getRights, nm as getSagasFromPlugins, Jn as getSearchAnnotationsForCompanionWindow, Un as getSearchAnnotationsForWindow, Hn as getSearchForWindow, In as getSearchIsFetching, nr as getSearchNumTotal, ar as getSearchQuery, Kn as getSelectedAnnotationId, Tn as getSelectedAnnotationsOnCanvases, Rn as getSelectedContentSearchAnnotationIds, We as getSequence, Je as getSequenceBehaviors, Ae as getSequenceTreeStructure, Pe as getSequenceViewingDirection, Be as getSequenceViewingHint, Ze as getSequences, my as getSheetSnap, Sn as getShowZoomControlsConfig, sr as getSortedLayers, ir as getSortedSearchAnnotationsForCompanionWindow, Pn as getSortedSearchHitsForCompanionWindow, dS as getSwipeDirection, yt as getTheme, bn as getThemeDirection, et as getThemeIds, Tt as getThumbnailFactory, Ue as getThumbnailNavigationPosition, Ee as getThumbnailsConfig, oS as getTourSteps, ne as getViewer, Ct as getVisibleCanvasAudioResources, Dt as getVisibleCanvasCaptions, Zt as getVisibleCanvasIds, Wt as getVisibleCanvasNonTiledResources, Mt as getVisibleCanvasTextResources, At as getVisibleCanvasVideoResources, mt as getVisibleCanvases, wx as getVisibleMapArea, Co as getVisibleNodeIds, y as getWindow, $e as getWindowConfig, Te as getWindowDraggability, ce as getWindowIds, fe as getWindowManifests, _n as getWindowTitles, tt as getWindowViewType, S as getWindows, ae as getWorkspace, xe as getWorkspaceType, Xa as handleDrop, Zy as hasPendingParentViewport, uc as hideCollectionDialog, Qn as hoverAnnotation, Xi as htmlRules, Ua as importConfig, Qa as importMiradorState, z_ as infoResponsesReducer, Lt as isFocused, Dy as isInsideMap, Jy as isNestedMap, Ks as journeyStopNumbers, J_ as layersReducer, R_ as manifestsReducer, fS as mapInteractionPlugins, oc as maximizeWindow, ox as mediaImageUrl, nc as minimizeWindow, E as miradorSlice, ab as nestedMapPlugins, tb as openNestedMap, _y as openNextMinimised, nS as openPreview, aS as poiPreviewPlugins, hs as readImageMetadata, Yr as receiveAccessToken, di as receiveAccessTokenFailure, Wn as receiveAnnotation, Ln as receiveAnnotationFailure, Pl as receiveDegradedInfoResponse, Nl as receiveInfoResponse, Fl as receiveInfoResponseFailure, Oa as receiveManifest, Ho as receiveManifestFailure, Bi as receiveSearch, Us as receiveSearchFailure, Sy as registerTourStepper, Ss as removeCompanionWindow, _s as removeError, Ll as removeInfoResponse, ss as removeManifest, Gr as removeResource, Er as removeSearch, lc as removeWindow, $o as requestAccessToken, Xn as requestAnnotation, $n as requestCanvasAnnotations, Ml as requestInfoResponse, Ra as requestManifest, Oy as requestPanelFocus, ia as requestSearch, si as resetAuthenticationState, yy as resetSheet, ga as resolveAccessTokenRequest, fa as resolveAuthenticationRequest, Wy as resolveLinkedMapManifestId, Z_ as rootReducer, Wv as rootSaga, ex as sanitizeDescription, q_ as searchesReducer, zn as selectAnnotation, Ge as selectCompanionWindowDimensions, Ds as selectCurrentAuthServices, hn as selectInfoResponse, xn as selectInfoResponses, _c as setCanvas, dc as setCompanionAreaOpen, qo as setConfig, $r as setContentSearchCurrentAnnotation, hc as setNextCanvas, ly as setPanelCollapsed, gc as setPreviousCanvas, hy as setSheetSnap, rc as setWindowThumbnailPosition, sc as setWindowViewType, ba as setWorkspaceAddVisibility, Ii as setWorkspaceViewportDimensions, _r as setWorkspaceViewportPosition, k as settings, pc as showCollectionDialog, gS as siteMapToolsPlugin, _S as siteMapToolsPlugins, yS as siteMapViewerConfig, En as sortSearchAnnotationsByCanvasOrder, Cy as stepTour, tx as textBody, qn as toggleAnnotationDisplay, qa as toggleDraggingEnabled, Ls as toggleNode, ic as toggleWindowSideBar, fs as toggleZoomControls, Na as updateCompanionWindow, No as updateConfig, ea as updateElasticWindowLayout, ri as updateLayers, mc as updateViewport, ac as updateWindow, Lo as updateWorkspace, ns as updateWorkspaceMosaicLayout, Ty as useMinimiseOnFirstInteraction, dy as usePanelCollapsed, ky as usePanelFocusRequest, rS as usePreviewPosition, Qy as useRestoreParentViewport, by as useSheetSnap, cl as useTranslation, Up as validatePlugin, Jv as viewer, U_ as viewersReducer, L_ as windowsReducer, ee as withPlugins, ll as withTranslation, I_ as workspaceReducer, Px as zoomMapHalfwayToPoint };
11357
11383
 
11358
11384
  //# sourceMappingURL=mirador.es.js.map