@prose-reader/react-reader 1.244.0 → 1.245.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,21 +2,21 @@ import { jsx as e, jsxs as s, Fragment as ce } from "react/jsx-runtime";
2
2
  import * as y from "react";
3
3
  import He, { createContext as Ne, memo as m, useMemo as Pe, useEffect as ne, useContext as Ve, useState as R, useLayoutEffect as je, useCallback as X } from "react";
4
4
  import { signal as J, useConstant as re, useLiveRef as Ge, useSubscribe as D, useObserve as b, isDefined as Ae, useSignalValue as be, useSignalState as Ye } from "reactjrx";
5
- import { Subject as xe, tap as ve, map as B, filter as ie, switchMap as M, EMPTY as fe, of as ae, withLatestFrom as Ue, NEVER as de, startWith as qe, distinctUntilChanged as Ce, throttleTime as Qe, first as Oe, combineLatest as Ze, finalize as Ee, mergeMap as Ke, skip as ze, merge as Me, timer as De, BehaviorSubject as Xe } from "rxjs";
6
- import { IconButton as x, Portal as ke, Dialog as I, List as w, Link as Ie, Stack as C, Text as p, Tabs as z, Button as F, Presence as se, Box as O, createToaster as Je, Toaster as et, Toast as _, Spinner as tt, Heading as he, HStack as A, Kbd as Te, Popover as $, Progress as ee, chakra as nt, Collapsible as ge, Field as Z, RadioGroup as K, Slider as S, For as ot, Fieldset as pe, Input as rt } from "@chakra-ui/react";
5
+ import { Subject as xe, tap as ve, map as B, filter as ie, switchMap as z, EMPTY as fe, of as ae, withLatestFrom as Ue, NEVER as de, startWith as qe, distinctUntilChanged as Ce, throttleTime as Qe, first as Oe, combineLatest as Ze, finalize as Ee, mergeMap as Ke, skip as Me, merge as ze, timer as De, BehaviorSubject as Xe } from "rxjs";
6
+ import { IconButton as x, Portal as ke, Dialog as S, List as w, Link as Se, Stack as C, Text as p, Tabs as M, Button as F, Presence as se, Box as O, createToaster as Je, Toaster as et, Toast as _, Spinner as tt, Heading as he, HStack as A, Kbd as Te, Popover as $, Progress as ee, chakra as nt, Collapsible as ge, Field as Z, RadioGroup as K, Slider as I, For as ot, Fieldset as pe, Input as rt } from "@chakra-ui/react";
7
7
  import { LuX as it, LuNotebookPen as le, LuBookmark as at, LuArrowBigRight as st, LuArrowBigLeft as lt, LuChevronDown as ct, LuCircleHelp as dt, LuTableOfContents as ut, LuSearch as ht, LuGalleryHorizontal as gt, LuCircleCheck as we } from "react-icons/lu";
8
8
  import { createPortal as pt } from "react-dom";
9
9
  import { isPositionInArea as ft } from "@prose-reader/enhancer-gestures";
10
10
  import { isShallowEqual as mt, observeIntersection as bt, isHtmlTagElement as xt, watchKeys as vt } from "@prose-reader/core";
11
11
  import { BsBookmarks as Ct } from "react-icons/bs";
12
- import { MdOutlineFitScreen as kt, MdFullscreenExit as It, MdFullscreen as St } from "react-icons/md";
12
+ import { MdOutlineFitScreen as kt, MdFullscreenExit as St, MdFullscreen as It } from "react-icons/md";
13
13
  import { RiGalleryView2 as Rt } from "react-icons/ri";
14
14
  import { RxDoubleArrowUp as yt, RxDoubleArrowLeft as Tt, RxDoubleArrowDown as wt, RxDoubleArrowRight as Pt } from "react-icons/rx";
15
15
  import { HiOutlineInformationCircle as At } from "react-icons/hi";
16
16
  import Ot from "rc-slider";
17
17
  import "rc-slider/assets/index.css";
18
- import { IoIosArrowBack as Et, IoMdMore as zt } from "react-icons/io";
19
- const Mt = "data-bookmark-area", Be = Ne({
18
+ import { IoIosArrowBack as Et, IoMdMore as Mt } from "react-icons/io";
19
+ const zt = "data-bookmark-area", Be = Ne({
20
20
  reader: void 0,
21
21
  quickMenuSignal: J({ default: !1 }),
22
22
  notificationsSubject: new xe(),
@@ -65,12 +65,12 @@ const Mt = "data-bookmark-area", Be = Ne({
65
65
  ...c
66
66
  } = n;
67
67
  return /* @__PURE__ */ s(ke, { disabled: !r, container: a, children: [
68
- l && /* @__PURE__ */ e(I.Backdrop, {}),
69
- /* @__PURE__ */ e(I.Positioner, { children: /* @__PURE__ */ e(I.Content, { ref: o, ...c, asChild: !1, children: i }) })
68
+ l && /* @__PURE__ */ e(S.Backdrop, {}),
69
+ /* @__PURE__ */ e(S.Positioner, { children: /* @__PURE__ */ e(S.Content, { ref: o, ...c, asChild: !1, children: i }) })
70
70
  ] });
71
71
  }), H = y.forwardRef(function(n, o) {
72
72
  return /* @__PURE__ */ e(
73
- I.CloseTrigger,
73
+ S.CloseTrigger,
74
74
  {
75
75
  position: "absolute",
76
76
  top: "2",
@@ -80,12 +80,12 @@ const Mt = "data-bookmark-area", Be = Ne({
80
80
  children: /* @__PURE__ */ e(Dt, { size: "sm", ref: o, children: n.children })
81
81
  }
82
82
  );
83
- }), N = I.Root, V = I.Footer, j = I.Header, G = I.Body;
84
- I.Backdrop;
85
- const Y = I.Title;
86
- I.Description;
87
- I.Trigger;
88
- const U = I.ActionTrigger, E = () => Ve(Be), f = () => {
83
+ }), N = S.Root, V = S.Footer, j = S.Header, G = S.Body;
84
+ S.Backdrop;
85
+ const Y = S.Title;
86
+ S.Description;
87
+ S.Trigger;
88
+ const U = S.ActionTrigger, E = () => Ve(Be), f = () => {
89
89
  const { reader: t } = E();
90
90
  return t;
91
91
  }, Le = (t) => !!t && "__PROSE_READER_ENHANCER_SEARCH" in t, te = (t) => !!t && "__PROSE_READER_ENHANCER_ANNOTATIONS" in t, _e = (t) => !!t && "__PROSE_READER_ENHANCER_GALLERY" in t, $e = (t) => !!t && "__PROSE_READER_ENHANCER_REFIT" in t, Bt = (t) => {
@@ -94,7 +94,7 @@ const U = I.ActionTrigger, E = () => Ve(Be), f = () => {
94
94
  () => o?.annotations.annotations$.pipe(
95
95
  B((r) => r.find((a) => a.id === t)),
96
96
  ie(Ae),
97
- M((r) => o.locateResource(r))
97
+ z((r) => o.locateResource(r))
98
98
  ),
99
99
  [o]
100
100
  ) };
@@ -105,7 +105,7 @@ const U = I.ActionTrigger, E = () => Ve(Be), f = () => {
105
105
  }) => {
106
106
  const i = f(), { data: r } = Bt(t), a = r?.meta.range?.toString() || r?.meta.node?.textContent;
107
107
  return /* @__PURE__ */ e(w.Item, { children: /* @__PURE__ */ s(
108
- Ie,
108
+ Se,
109
109
  {
110
110
  href: "#",
111
111
  onClick: () => {
@@ -135,7 +135,7 @@ const U = I.ActionTrigger, E = () => Ve(Be), f = () => {
135
135
  const t = f(), n = te(t) ? t : void 0;
136
136
  return { data: b(
137
137
  () => n?.annotations.annotations$.pipe(
138
- M(
138
+ z(
139
139
  (i) => n.locateResource(i)
140
140
  )
141
141
  ),
@@ -181,24 +181,24 @@ const U = I.ActionTrigger, E = () => Ve(Be), f = () => {
181
181
  }) => {
182
182
  const [o, i] = R(n ?? "bookmarks");
183
183
  return /* @__PURE__ */ s(
184
- z.Root,
184
+ M.Root,
185
185
  {
186
186
  value: o,
187
187
  onValueChange: (r) => i(r.value),
188
188
  children: [
189
- /* @__PURE__ */ s(z.List, { children: [
190
- /* @__PURE__ */ s(z.Trigger, { value: "bookmarks", children: [
189
+ /* @__PURE__ */ s(M.List, { children: [
190
+ /* @__PURE__ */ s(M.Trigger, { value: "bookmarks", children: [
191
191
  /* @__PURE__ */ e(at, {}),
192
192
  "Bookmarks"
193
193
  ] }),
194
- /* @__PURE__ */ s(z.Trigger, { value: "annotations", children: [
194
+ /* @__PURE__ */ s(M.Trigger, { value: "annotations", children: [
195
195
  /* @__PURE__ */ e(le, {}),
196
196
  "Annotations"
197
197
  ] }),
198
- /* @__PURE__ */ e(z.Indicator, {})
198
+ /* @__PURE__ */ e(M.Indicator, {})
199
199
  ] }),
200
- /* @__PURE__ */ e(z.Content, { value: "bookmarks", children: /* @__PURE__ */ e(Ft, { onNavigate: t }) }),
201
- /* @__PURE__ */ e(z.Content, { value: "annotations", children: /* @__PURE__ */ e(_t, { onNavigate: t }) })
200
+ /* @__PURE__ */ e(M.Content, { value: "bookmarks", children: /* @__PURE__ */ e(Ft, { onNavigate: t }) }),
201
+ /* @__PURE__ */ e(M.Content, { value: "annotations", children: /* @__PURE__ */ e(_t, { onNavigate: t }) })
202
202
  ]
203
203
  }
204
204
  );
@@ -277,7 +277,7 @@ const U = I.ActionTrigger, E = () => Ve(Be), f = () => {
277
277
  children: /* @__PURE__ */ e(
278
278
  O,
279
279
  {
280
- "data-bookmark-area": Mt,
280
+ "data-bookmark-area": zt,
281
281
  position: "absolute",
282
282
  left: n + i,
283
283
  transform: "translateX(-100%)",
@@ -410,14 +410,14 @@ const Xt = (t, n, o) => {
410
410
  ).pipe(B((c) => c.some((d) => d.isIntersecting)));
411
411
  return a.pipe(
412
412
  Qe(100, void 0, { trailing: !0 }),
413
- M(() => l.pipe(
413
+ z(() => l.pipe(
414
414
  ve((c) => {
415
415
  c || (t.innerHTML = "");
416
416
  }),
417
417
  ie((c) => c),
418
418
  Oe()
419
419
  ).pipe(
420
- M(() => (t.innerHTML = "", r?.gallery.snapshot(
420
+ z(() => (t.innerHTML = "", r?.gallery.snapshot(
421
421
  n,
422
422
  t,
423
423
  o
@@ -523,7 +523,7 @@ const Xt = (t, n, o) => {
523
523
  }
524
524
  );
525
525
  }
526
- ), tn = "@prose-reader/react-reader", nn = "1.243.0", on = m(
526
+ ), tn = "@prose-reader/react-reader", nn = "1.244.0", on = m(
527
527
  ({ open: t, setOpen: n }) => /* @__PURE__ */ e(
528
528
  N,
529
529
  {
@@ -615,11 +615,11 @@ const Xt = (t, n, o) => {
615
615
  hour: "2-digit",
616
616
  minute: "2-digit"
617
617
  }) });
618
- }, Se = () => {
618
+ }, Ie = () => {
619
619
  const { quickMenuSignal: t } = E();
620
620
  return [be(t), t.update, t];
621
621
  }, ln = () => {
622
- const [t] = Se();
622
+ const [t] = Ie();
623
623
  return /* @__PURE__ */ e(
624
624
  O,
625
625
  {
@@ -650,7 +650,7 @@ const Xt = (t, n, o) => {
650
650
  D(
651
651
  () => t?.zoom.state$.pipe(
652
652
  vt(["isZooming", "currentScale"]),
653
- M(({ isZooming: o, currentScale: i }) => {
653
+ z(({ isZooming: o, currentScale: i }) => {
654
654
  if (!o || i < 1) return fe;
655
655
  const r = new xe();
656
656
  return n.next({
@@ -673,7 +673,7 @@ const Xt = (t, n, o) => {
673
673
  () => t?.settings.values$.pipe(
674
674
  B(({ fontScale: o }) => o),
675
675
  Ce(),
676
- ze(1),
676
+ Me(1),
677
677
  ve((o) => {
678
678
  n.next({
679
679
  key: "fontScaleChange",
@@ -695,10 +695,10 @@ const Xt = (t, n, o) => {
695
695
  description: n.description,
696
696
  duration: o
697
697
  }), r = t.pipe(
698
- ze(1),
698
+ Me(1),
699
699
  ie((a) => !!n.key && a?.key === n.key)
700
700
  );
701
- return Me(
701
+ return ze(
702
702
  De(o),
703
703
  n.abort ?? de,
704
704
  r
@@ -913,7 +913,7 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
913
913
  min: c,
914
914
  max: d
915
915
  };
916
- }, In = (t) => {
916
+ }, Sn = (t) => {
917
917
  const n = f(), o = q(), { manifest: i } = b(() => n?.context, [n]) ?? {}, r = i?.readingDirection === "rtl", a = o?.isUsingSpread, { totalApproximatePages: l = 0, isBeginWithinChapter: c } = Re(), d = 1, u = c, { value: g, valueSignal: h, min: v, max: T } = kn(), P = X(
918
918
  (Q) => {
919
919
  const [k = 0] = Array.isArray(Q) ? Q : [Q];
@@ -948,12 +948,12 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
948
948
  ...t
949
949
  }
950
950
  );
951
- }, Sn = m(
951
+ }, In = m(
952
952
  ({
953
953
  open: t,
954
954
  onItemClick: n
955
955
  }) => {
956
- const o = f(), { refitMenuSignal: i } = E(), r = b(() => o?.navigation.state$, [o]), a = b(() => o?.settings.values$, [o]), l = b(() => o?.zoom.state$, [o]), c = a?.computedPageTurnDirection === "vertical", [d, u] = R(!0);
956
+ const o = f(), { refitMenuSignal: i } = E(), r = b(() => o?.navigation.state$, [o]), a = b(() => o?.settings.values$, [o]), l = b(() => o?.zoom.state$, [o]), c = a?.computedPageTurnMode === "scrollable", d = a?.computedPageTurnDirection === "vertical", [u, g] = R(!0);
957
957
  return /* @__PURE__ */ s(
958
958
  We,
959
959
  {
@@ -963,6 +963,7 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
963
963
  flexDirection: "column",
964
964
  overflow: "auto",
965
965
  pb: 8,
966
+ px: 0,
966
967
  children: [
967
968
  /* @__PURE__ */ s(
968
969
  A,
@@ -971,6 +972,7 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
971
972
  alignItems: "center",
972
973
  justifyContent: "center",
973
974
  maxWidth: "100%",
975
+ px: 4,
974
976
  children: [
975
977
  /* @__PURE__ */ e(
976
978
  x,
@@ -981,7 +983,7 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
981
983
  flexShrink: 0,
982
984
  onClick: () => o?.navigation.goToLeftOrTopSpineItem(),
983
985
  disabled: !r?.canGoLeftSpineItem && !r?.canGoTopSpineItem,
984
- children: c ? /* @__PURE__ */ e(yt, {}) : /* @__PURE__ */ e(Tt, {})
986
+ children: d ? /* @__PURE__ */ e(yt, {}) : /* @__PURE__ */ e(Tt, {})
985
987
  }
986
988
  ),
987
989
  /* @__PURE__ */ s(
@@ -996,7 +998,7 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
996
998
  children: [
997
999
  /* @__PURE__ */ e(xn, {}),
998
1000
  /* @__PURE__ */ e(
999
- In,
1001
+ Sn,
1000
1002
  {
1001
1003
  style: {
1002
1004
  width: "100%",
@@ -1019,7 +1021,7 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
1019
1021
  onClick: () => {
1020
1022
  o?.navigation.goToRightOrBottomSpineItem();
1021
1023
  },
1022
- children: c ? /* @__PURE__ */ e(wt, {}) : /* @__PURE__ */ e(Pt, {})
1024
+ children: d ? /* @__PURE__ */ e(wt, {}) : /* @__PURE__ */ e(Pt, {})
1023
1025
  }
1024
1026
  )
1025
1027
  ]
@@ -1028,11 +1030,12 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
1028
1030
  /* @__PURE__ */ e(A, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ s(
1029
1031
  ge.Root,
1030
1032
  {
1031
- open: d,
1033
+ open: u,
1032
1034
  flex: 1,
1033
- onOpenChange: ({ open: g }) => {
1034
- u(g);
1035
+ onOpenChange: ({ open: h }) => {
1036
+ g(h);
1035
1037
  },
1038
+ width: "100%",
1036
1039
  children: [
1037
1040
  /* @__PURE__ */ e(
1038
1041
  ge.Trigger,
@@ -1045,13 +1048,13 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
1045
1048
  ct,
1046
1049
  {
1047
1050
  style: {
1048
- transform: d ? "rotate(0deg)" : "rotate(180deg)"
1051
+ transform: u ? "rotate(0deg)" : "rotate(180deg)"
1049
1052
  }
1050
1053
  }
1051
1054
  )
1052
1055
  }
1053
1056
  ),
1054
- /* @__PURE__ */ s(ge.Content, { display: "flex", justifyContent: "center", children: [
1057
+ /* @__PURE__ */ e(ge.Content, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ s(O, { display: "flex", overflowX: "auto", px: 4, children: [
1055
1058
  /* @__PURE__ */ e(
1056
1059
  x,
1057
1060
  {
@@ -1111,6 +1114,7 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
1111
1114
  onClick: () => {
1112
1115
  i.next(!0);
1113
1116
  },
1117
+ disabled: !c,
1114
1118
  children: /* @__PURE__ */ e(kt, {})
1115
1119
  }
1116
1120
  ),
@@ -1139,7 +1143,7 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
1139
1143
  children: /* @__PURE__ */ e(Rt, {})
1140
1144
  }
1141
1145
  )
1142
- ] })
1146
+ ] }) })
1143
1147
  ]
1144
1148
  }
1145
1149
  ) })
@@ -1210,7 +1214,7 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
1210
1214
  flexShrink: 0,
1211
1215
  variant: "ghost",
1212
1216
  onClick: () => n("more"),
1213
- children: /* @__PURE__ */ e(zt, {})
1217
+ children: /* @__PURE__ */ e(Mt, {})
1214
1218
  }
1215
1219
  ),
1216
1220
  /* @__PURE__ */ e(
@@ -1221,7 +1225,7 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
1221
1225
  flexShrink: 0,
1222
1226
  variant: "ghost",
1223
1227
  onClick: a,
1224
- children: r ? /* @__PURE__ */ e(It, {}) : /* @__PURE__ */ e(St, {})
1228
+ children: r ? /* @__PURE__ */ e(St, {}) : /* @__PURE__ */ e(It, {})
1225
1229
  }
1226
1230
  )
1227
1231
  ] })
@@ -1233,11 +1237,11 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
1233
1237
  ({
1234
1238
  onItemClick: t
1235
1239
  }) => {
1236
- const [n] = Se(), { refitMenuSignal: o } = E(), i = be(o);
1240
+ const [n] = Ie(), { refitMenuSignal: o } = E(), i = be(o);
1237
1241
  return /* @__PURE__ */ s(ce, { children: [
1238
1242
  /* @__PURE__ */ e(yn, { open: n && !i, onItemClick: t }),
1239
1243
  /* @__PURE__ */ e(
1240
- Sn,
1244
+ In,
1241
1245
  {
1242
1246
  open: n && !i,
1243
1247
  onItemClick: t
@@ -1270,14 +1274,14 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
1270
1274
  ), Pn = K.Root, An = y.forwardRef(
1271
1275
  function(n, o) {
1272
1276
  const { marks: i, label: r, showValue: a, ...l } = n, c = n.defaultValue ?? n.value, d = i?.map((g) => typeof g == "number" ? { value: g, label: void 0 } : g), u = !!d?.some((g) => g.label);
1273
- return /* @__PURE__ */ s(S.Root, { ref: o, thumbAlignment: "center", ...l, children: [
1274
- r && !a && /* @__PURE__ */ e(S.Label, { children: r }),
1277
+ return /* @__PURE__ */ s(I.Root, { ref: o, thumbAlignment: "center", ...l, children: [
1278
+ r && !a && /* @__PURE__ */ e(I.Label, { children: r }),
1275
1279
  r && a && /* @__PURE__ */ s(A, { justify: "space-between", children: [
1276
- /* @__PURE__ */ e(S.Label, { children: r }),
1277
- /* @__PURE__ */ e(S.ValueText, {})
1280
+ /* @__PURE__ */ e(I.Label, { children: r }),
1281
+ /* @__PURE__ */ e(I.ValueText, {})
1278
1282
  ] }),
1279
- /* @__PURE__ */ s(S.Control, { "data-has-mark-label": u || void 0, children: [
1280
- /* @__PURE__ */ e(S.Track, { children: /* @__PURE__ */ e(S.Range, {}) }),
1283
+ /* @__PURE__ */ s(I.Control, { "data-has-mark-label": u || void 0, children: [
1284
+ /* @__PURE__ */ e(I.Track, { children: /* @__PURE__ */ e(I.Range, {}) }),
1281
1285
  /* @__PURE__ */ e(On, { value: c }),
1282
1286
  /* @__PURE__ */ e(En, { marks: d })
1283
1287
  ] })
@@ -1286,20 +1290,20 @@ const mn = ee.Root, bn = ee.ValueText, Re = () => {
1286
1290
  );
1287
1291
  function On(t) {
1288
1292
  const { value: n } = t;
1289
- return /* @__PURE__ */ e(ot, { each: n, children: (o, i) => /* @__PURE__ */ e(S.Thumb, { index: i, children: /* @__PURE__ */ e(S.HiddenInput, {}) }, i) });
1293
+ return /* @__PURE__ */ e(ot, { each: n, children: (o, i) => /* @__PURE__ */ e(I.Thumb, { index: i, children: /* @__PURE__ */ e(I.HiddenInput, {}) }, i) });
1290
1294
  }
1291
1295
  const En = y.forwardRef(
1292
1296
  function(n, o) {
1293
1297
  const { marks: i } = n;
1294
- return i?.length ? /* @__PURE__ */ e(S.MarkerGroup, { ref: o, children: i.map((r, a) => {
1298
+ return i?.length ? /* @__PURE__ */ e(I.MarkerGroup, { ref: o, children: i.map((r, a) => {
1295
1299
  const l = typeof r == "number" ? r : r.value, c = typeof r == "number" ? void 0 : r.label;
1296
- return /* @__PURE__ */ s(S.Marker, { value: l, children: [
1297
- /* @__PURE__ */ e(S.MarkerIndicator, {}),
1300
+ return /* @__PURE__ */ s(I.Marker, { value: l, children: [
1301
+ /* @__PURE__ */ e(I.MarkerIndicator, {}),
1298
1302
  c
1299
1303
  ] }, a);
1300
1304
  }) }) : null;
1301
1305
  }
1302
- ), zn = m(() => {
1306
+ ), Mn = m(() => {
1303
1307
  const { refitMenuSignal: n } = E(), o = be(n), i = f(), r = $e(i) ? i : void 0, a = b(
1304
1308
  () => r?.refit.settings$,
1305
1309
  [r]
@@ -1361,7 +1365,7 @@ const En = y.forwardRef(
1361
1365
  ] })
1362
1366
  }
1363
1367
  );
1364
- }), Mn = m(
1368
+ }), zn = m(
1365
1369
  ({
1366
1370
  contextText: t = "",
1367
1371
  startOffset: n = 0,
@@ -1381,7 +1385,7 @@ const En = y.forwardRef(
1381
1385
  )
1382
1386
  );
1383
1387
  return /* @__PURE__ */ s(
1384
- Ie,
1388
+ Se,
1385
1389
  {
1386
1390
  href: i,
1387
1391
  style: { margin: 5, overflow: "hidden" },
@@ -1408,14 +1412,14 @@ const En = y.forwardRef(
1408
1412
  ), Dn = 500, Bn = () => {
1409
1413
  const t = re(() => new Xe("")), n = b(t), o = f(), i = Le(o) ? o : void 0, r = b(() => t.pipe(
1410
1414
  Ce(),
1411
- M(
1412
- (a) => a === "" || !i ? ae(void 0) : Me(
1415
+ z(
1416
+ (a) => a === "" || !i ? ae(void 0) : ze(
1413
1417
  ae({
1414
1418
  type: "start",
1415
1419
  data: void 0
1416
1420
  }),
1417
1421
  De(Dn).pipe(
1418
- M(() => i.search.search(a)),
1422
+ z(() => i.search.search(a)),
1419
1423
  B((l) => ({ type: "end", data: l }))
1420
1424
  )
1421
1425
  )
@@ -1472,7 +1476,7 @@ const En = y.forwardRef(
1472
1476
  " result(s)"
1473
1477
  ] }),
1474
1478
  /* @__PURE__ */ e(C, { gap: 0, children: d?.map((u, g) => /* @__PURE__ */ e(
1475
- Mn,
1479
+ zn,
1476
1480
  {
1477
1481
  contextText: u.meta?.range?.startContainer.parentElement?.textContent ?? "",
1478
1482
  pageIndex: u.meta?.itemPageIndex,
@@ -1530,7 +1534,7 @@ const En = y.forwardRef(
1530
1534
  alignItems: "center"
1531
1535
  },
1532
1536
  children: /* @__PURE__ */ s(
1533
- Ie,
1537
+ Se,
1534
1538
  {
1535
1539
  onClick: () => {
1536
1540
  t(), n?.navigation.goToUrl(h.href);
@@ -1589,7 +1593,7 @@ const En = y.forwardRef(
1589
1593
  enableFloatingProgress: n = !0,
1590
1594
  onItemClick: o
1591
1595
  }) => {
1592
- const [i, r] = R(!1), [a, l] = R(!1), [c, d] = R(!1), [u, g] = R(void 0), [h, v] = R(!1), [T, P] = Se(), L = X(() => {
1596
+ const [i, r] = R(!1), [a, l] = R(!1), [c, d] = R(!1), [u, g] = R(void 0), [h, v] = R(!1), [T, P] = Ie(), L = X(() => {
1593
1597
  r(!1), l(!1), d(!1), g(void 0), P(!1), v(!1);
1594
1598
  }, [P]), Q = X(
1595
1599
  (k) => {
@@ -1608,7 +1612,7 @@ const En = y.forwardRef(
1608
1612
  }
1609
1613
  ),
1610
1614
  /* @__PURE__ */ e(en, { open: h, setOpen: v }),
1611
- /* @__PURE__ */ e(zn, {}),
1615
+ /* @__PURE__ */ e(Mn, {}),
1612
1616
  /* @__PURE__ */ e(Tn, { onItemClick: Q }),
1613
1617
  /* @__PURE__ */ e(Yt, {}),
1614
1618
  /* @__PURE__ */ e(on, { open: a, setOpen: l }),
@@ -1650,7 +1654,7 @@ const En = y.forwardRef(
1650
1654
  ] });
1651
1655
  };
1652
1656
  export {
1653
- Mt as BOOKMARK_AREA_DATA_ATTRIBUTE,
1657
+ zt as BOOKMARK_AREA_DATA_ATTRIBUTE,
1654
1658
  ro as ReactReader,
1655
1659
  oo as ReactReaderProvider
1656
1660
  };