@pdf-viewer/react 1.6.0-beta.8 → 1.6.0-beta.9

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.
Files changed (48) hide show
  1. package/dist/{RPDefaultLayout-0478995c.js → RPDefaultLayout-1ed94040.js} +196 -198
  2. package/dist/components/RPController.js +51 -52
  3. package/dist/components/RPPages.js +1 -1
  4. package/dist/components/RPProvider.js +1 -1
  5. package/dist/components/layout/LayoutContainer.js +1 -1
  6. package/dist/components/layout/RPDefaultLayout.js +1 -1
  7. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  8. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  10. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  11. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  12. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  13. package/dist/components/layout/toolbar/OtherTool.js +2 -3
  14. package/dist/components/layout/toolbar/Paginate.js +1 -1
  15. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  16. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  17. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  18. package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
  19. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  20. package/dist/components/layout/toolbar/ViewModeTool.js +18 -19
  21. package/dist/components/layout/toolbar/ZoomTool.js +1 -1
  22. package/dist/components/page/AnnotationLayer.js +1 -1
  23. package/dist/components/page/CanvasLayer.js +1 -1
  24. package/dist/components/page/DualPage.js +1 -1
  25. package/dist/components/page/RPPage.js +1 -1
  26. package/dist/components/page/SinglePage.js +1 -1
  27. package/dist/components/page/TextHighlightLayer.js +1 -1
  28. package/dist/components/page/TextLayer.js +1 -1
  29. package/dist/components/ui/LoadingIndicator.js +1 -1
  30. package/dist/contexts/PaginationContext.js +1 -1
  31. package/dist/contexts/PrintContext.js +1 -1
  32. package/dist/contexts/SearchContext.js +1 -1
  33. package/dist/contexts/ThumbnailsContext.js +1 -1
  34. package/dist/contexts/ToolbarComponentContext.js +2 -2
  35. package/dist/contexts/ViewModeContext.js +16 -17
  36. package/dist/main.js +1 -1
  37. package/dist/types/components/layout/toolbar/ViewModeTool.d.ts +1 -1
  38. package/dist/types/utils/types.d.ts +2 -3
  39. package/dist/utils/hooks/useFileDownload.js +1 -1
  40. package/dist/utils/hooks/useLicense.js +1 -1
  41. package/dist/utils/hooks/usePaginate.js +1 -1
  42. package/dist/utils/hooks/usePresentPage.js +1 -1
  43. package/dist/utils/hooks/usePrint.js +1 -1
  44. package/dist/utils/hooks/useScrollToPage.js +1 -1
  45. package/dist/utils/hooks/useSearch.js +1 -1
  46. package/dist/utils/hooks/useThumbnail.js +1 -1
  47. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  48. package/package.json +1 -1
@@ -74,23 +74,22 @@ import { PropertyItem as io } from "./components/layout/toolbar/PropertyItem.js"
74
74
  import { useOtherToolContext as ao, OtherToolProvider as so } from "./contexts/OtherToolContext.js";
75
75
  import { DocumentProperties as co } from "./components/layout/toolbar/DocumentProperties.js";
76
76
  import { RotateTool as lo } from "./components/layout/toolbar/RotateTool.js";
77
- import { ViewModeTool as uo } from "./components/layout/toolbar/ViewModeTool.js";
78
- import { ScrollModeTool as po } from "./components/layout/toolbar/ScrollModeTool.js";
77
+ import { ScrollModeTool as uo } from "./components/layout/toolbar/ScrollModeTool.js";
79
78
  import { MenuSeparator as xt } from "./components/layout/toolbar/MenuSeparator.js";
80
- import { FileDownloadDefaultIcon as ho } from "./components/icons/FileDownloadDefaultIcon.js";
79
+ import { FileDownloadDefaultIcon as po } from "./components/icons/FileDownloadDefaultIcon.js";
81
80
  import { MenuItem as we } from "./components/layout/toolbar/MenuItem.js";
82
- import { PrintDefaultTool as mo } from "./components/icons/PrintDefaultIcon.js";
81
+ import { PrintDefaultTool as ho } from "./components/icons/PrintDefaultIcon.js";
83
82
  import { FullScreenTool as _n } from "./components/layout/toolbar/FullScreenTool.js";
84
83
  import { GoToDownIcon as wn } from "./components/icons/GoToDownIcon.js";
85
- import { SelectionModeTool as fo } from "./components/layout/toolbar/SelectionModeTool.js";
86
- import { ZoomInIcon as go } from "./components/icons/ZoomInIcon.js";
87
- import { ZoomOutIcon as vo } from "./components/icons/ZoomOutIcon.js";
84
+ import { SelectionModeTool as mo } from "./components/layout/toolbar/SelectionModeTool.js";
85
+ import { ZoomInIcon as fo } from "./components/icons/ZoomInIcon.js";
86
+ import { ZoomOutIcon as go } from "./components/icons/ZoomOutIcon.js";
88
87
  import { PAGE_PADDING as Ht } from "./utils/constants.js";
89
- import { getZoomLevel as _o } from "./utils/getZoomLevel.js";
90
- import { SearchIcon as wo } from "./components/icons/SearchIcon.js";
88
+ import { getZoomLevel as vo } from "./utils/getZoomLevel.js";
89
+ import { SearchIcon as _o } from "./components/icons/SearchIcon.js";
91
90
  import { c as K, S as $t } from "./SearchCloseButton-959cc1ed.js";
92
91
  import { UICheckbox as Gt } from "./components/ui/Checkbox.js";
93
- import { ClearIcon as bo } from "./components/icons/ClearIcon.js";
92
+ import { ClearIcon as wo } from "./components/icons/ClearIcon.js";
94
93
  import { InfoIcon as Vt } from "./components/icons/InfoIcon.js";
95
94
  import './assets/RPDefaultLayout.css';const bn = () => {
96
95
  const { viewMode: t } = De(), { scrollMode: e } = Oe(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = et(), { setFocusedPage: a } = re(), c = W(), { columnCount: s } = un(), { widths: d, heights: u } = Ve(), p = W(e), f = W(t), h = W(s), { targetScrollPage: g } = hn();
@@ -185,7 +184,7 @@ import './assets/RPDefaultLayout.css';const bn = () => {
185
184
  d
186
185
  ]
187
186
  ) };
188
- }, Co = (t = 1) => {
187
+ }, bo = (t = 1) => {
189
188
  const [e, n] = $(t), [o, r] = $(0), { scrollToPage: a } = bn(), c = W(1), { viewMode: s } = De(), { scrollMode: d } = Oe(), { widths: u } = Ve(), { pagesRef: p } = me(), f = Pt(e, 100), h = L(
190
189
  (m) => {
191
190
  if (!/^[0-9]*$/g.test(m.toString()) || !m)
@@ -236,8 +235,8 @@ import './assets/RPDefaultLayout.css';const bn = () => {
236
235
  }), re = () => {
237
236
  const t = Je(Cn);
238
237
  return typeof (t == null ? void 0 : t.focusedPage) > "u" && qr.error("Please use this hooks inside children component of RPProvider"), t;
239
- }, As = ({ children: t }) => {
240
- const { pdf: e } = X(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: c, nextPage: s, prevPage: d } = Co();
238
+ }, Ds = ({ children: t }) => {
239
+ const { pdf: e } = X(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: c, nextPage: s, prevPage: d } = bo();
241
240
  return A(() => {
242
241
  e != null && e.numPages && (a(e.numPages), r(1));
243
242
  }, [e, a, r]), /* @__PURE__ */ i(
@@ -256,7 +255,7 @@ import './assets/RPDefaultLayout.css';const bn = () => {
256
255
  }
257
256
  );
258
257
  };
259
- const To = () => {
258
+ const Co = () => {
260
259
  const { pdf: t, pages: e } = X(), [n, o] = $({
261
260
  loadedPages: 0,
262
261
  totalPages: 0,
@@ -433,8 +432,8 @@ const To = () => {
433
432
  console.error("Error in setOnError callback:", e);
434
433
  }
435
434
  }
436
- }), Fs = ({ children: t }) => {
437
- const [e, n] = $(null), [o, r] = $(null), { print: a, cancel: c, progress: s, isComplete: d, isError: u, error: p } = To(), f = L((_) => {
435
+ }), zs = ({ children: t }) => {
436
+ const [e, n] = $(null), [o, r] = $(null), { print: a, cancel: c, progress: s, isComplete: d, isError: u, error: p } = Co(), f = L((_) => {
438
437
  _ && typeof _ == "function" && r(() => _);
439
438
  }, []), h = (_) => {
440
439
  p && _(p);
@@ -469,7 +468,7 @@ const To = () => {
469
468
  if (!t)
470
469
  throw new Error("usePrintContext must be used within a PrintProvider");
471
470
  return t;
472
- }, Po = () => {
471
+ }, To = () => {
473
472
  const [t, e] = $({}), { pages: n } = X(), { rotate: o } = Ge(), r = F(() => Object.keys(t).length, [t]), a = L(
474
473
  (s) => {
475
474
  if (!n.size || s > n.size)
@@ -556,11 +555,11 @@ const To = () => {
556
555
  setActive: (t) => {
557
556
  },
558
557
  active: !1
559
- }), Sn = () => Je(Pn), ks = ({
558
+ }), Sn = () => Je(Pn), As = ({
560
559
  children: t,
561
560
  initialThumbnailsVisible: e
562
561
  }) => {
563
- const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = Po(), [c, s] = $(e);
562
+ const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = To(), [c, s] = $(e);
564
563
  return /* @__PURE__ */ i(
565
564
  Pn.Provider,
566
565
  {
@@ -568,7 +567,7 @@ const To = () => {
568
567
  children: t
569
568
  }
570
569
  );
571
- }, So = (t = {}, e = "") => {
570
+ }, Po = (t = {}, e = "") => {
572
571
  const [n, o] = $(e), [r, a] = $(!1), { pdf: c, pages: s } = X(), { widths: d, heights: u } = Ve(), p = W(!n), { currentZoom: f } = Qe(), [h, g] = $([]), { setFocusedPage: C } = re(), { columnCount: P } = De(), { rotate: _ } = Ge(), [S, m] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: w } = et(), { scrollMode: l } = Oe(), { pagesRef: b } = me(), [T, y] = $(null), E = W({}), x = F(() => S === 0 ? null : h[S - 1], [S, h]), N = F(() => h.length, [h]);
573
572
  A(() => {
574
573
  if (!x || !s)
@@ -682,7 +681,7 @@ const To = () => {
682
681
  currentMatchElement: null,
683
682
  setCurrentMatchElement: (t) => {
684
683
  }
685
- }), Ms = ({
684
+ }), Fs = ({
686
685
  children: t,
687
686
  initialSearch: e
688
687
  }) => {
@@ -698,7 +697,7 @@ const To = () => {
698
697
  prevMatch: h,
699
698
  currentMatchElement: g,
700
699
  setCurrentMatchElement: C
701
- } = So(n, e);
700
+ } = Po(n, e);
702
701
  return /* @__PURE__ */ i(
703
702
  yn.Provider,
704
703
  {
@@ -733,7 +732,7 @@ const To = () => {
733
732
  "rp-page-wrapper": "_rp-page-wrapper_h7a2q_1",
734
733
  "rp-page": "_rp-page_h7a2q_1",
735
734
  "rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
736
- }, yo = (t) => {
735
+ }, So = (t) => {
737
736
  const { pageNumber: e, onLoaded: n, onLoading: o } = t, r = W(null), { pages: a } = X(), { rotate: c } = Ge(), s = W(), { currentZoom: d } = Qe();
738
737
  return A(() => {
739
738
  if (!a || d === 0)
@@ -759,12 +758,12 @@ const To = () => {
759
758
  (p = s.current) == null || p.cancel();
760
759
  };
761
760
  }, [a, e, c, d, o, n]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: r });
762
- }, xo = "_selecting_1x8te_9", Io = "_endOfContent_1x8te_24", Ae = {
761
+ }, yo = "_selecting_1x8te_9", xo = "_endOfContent_1x8te_24", Ae = {
763
762
  "rp-text-layer": "_rp-text-layer_1x8te_1",
764
- selecting: xo,
765
- endOfContent: Io,
763
+ selecting: yo,
764
+ endOfContent: xo,
766
765
  "rp-text-layer-text": "_rp-text-layer-text_1x8te_38"
767
- }, Lo = (t) => {
766
+ }, Io = (t) => {
768
767
  const { pageNumber: e } = t, { pages: n } = X(), o = W(null), { matches: r, currentMatch: a, setCurrentMatchElement: c } = It(), [s, d] = $(
769
768
  []
770
769
  ), u = W(), p = W(), f = W(), h = F(() => r.filter((v) => v.pageIndex === e - 1), [r, e]), g = L(
@@ -913,11 +912,11 @@ const To = () => {
913
912
  onMouseUp: m
914
913
  }
915
914
  );
916
- }, Ro = {
915
+ }, Lo = {
917
916
  "rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
918
917
  };
919
- let No = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
920
- const Eo = (t) => {
918
+ let Ro = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
919
+ const No = (t) => {
921
920
  const { pageNumber: e } = t, n = W(null), { pages: o, pdf: r } = X(), a = W(), [c, s] = $(), { setFocusedPage: d, goToPage: u } = re(), { scrollMode: p } = Oe(), { print: f } = tt(), { download: h } = Vn(), g = F(() => o.get(e), [o, e]), C = F(() => g == null ? void 0 : g.page.getViewport(), [g]);
922
921
  A(() => {
923
922
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
@@ -980,7 +979,7 @@ const Eo = (t) => {
980
979
  div: n.current,
981
980
  viewport: _.clone({ dontFlip: !0 }),
982
981
  page: g.page,
983
- imageResourcesPath: No,
982
+ imageResourcesPath: Ro,
984
983
  renderForms: !0,
985
984
  linkService: new Nr(),
986
985
  downloadManager: null,
@@ -999,14 +998,14 @@ const Eo = (t) => {
999
998
  {
1000
999
  "data-rp": `page-${e}-annotationLayer`,
1001
1000
  style: { width: `${C == null ? void 0 : C.width}px`, height: `${C == null ? void 0 : C.height}px` },
1002
- className: Ro["rp-annotation-layer"],
1001
+ className: Lo["rp-annotation-layer"],
1003
1002
  ref: n
1004
1003
  }
1005
1004
  );
1006
1005
  }, dt = {
1007
1006
  "rp-text-highlight-layer": "_rp-text-highlight-layer_1fxd3_1",
1008
1007
  "rp-text-highlight-layer-text": "_rp-text-highlight-layer-text_1fxd3_14"
1009
- }, Oo = ({ pageNumber: t }) => {
1008
+ }, Eo = ({ pageNumber: t }) => {
1010
1009
  const e = W(null), n = W(), o = W(), { pages: r } = X(), { highlightMatches: a } = mr(), c = F(() => a.filter((u) => u.pageIndex === t - 1), [a]), s = L(
1011
1010
  (d, u, p = !1) => {
1012
1011
  p && pn(d, u), hr(c, d, u);
@@ -1101,11 +1100,11 @@ const Eo = (t) => {
1101
1100
  },
1102
1101
  className: lt["rp-page"],
1103
1102
  children: [
1104
- /* @__PURE__ */ i(yo, { onLoading: _, onLoaded: S, pageNumber: n }),
1103
+ /* @__PURE__ */ i(So, { onLoading: _, onLoaded: S, pageNumber: n }),
1105
1104
  p && /* @__PURE__ */ i("div", { className: lt["rp-loader-wrapper"], children: /* @__PURE__ */ i(Tt, {}) }),
1106
- s && /* @__PURE__ */ i(Lo, { pageNumber: n }),
1107
- /* @__PURE__ */ i(Oo, { pageNumber: n }),
1108
- /* @__PURE__ */ i(Eo, { pageNumber: n })
1105
+ s && /* @__PURE__ */ i(Io, { pageNumber: n }),
1106
+ /* @__PURE__ */ i(Eo, { pageNumber: n }),
1107
+ /* @__PURE__ */ i(No, { pageNumber: n })
1109
1108
  ]
1110
1109
  }
1111
1110
  )
@@ -1122,25 +1121,25 @@ function wt(t, e) {
1122
1121
  return n.__proto__ = o, n;
1123
1122
  }, wt(t, e);
1124
1123
  }
1125
- function Do(t, e) {
1124
+ function Oo(t, e) {
1126
1125
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, wt(t, e);
1127
1126
  }
1128
1127
  var qt = Number.isNaN || function(e) {
1129
1128
  return typeof e == "number" && e !== e;
1130
1129
  };
1131
- function zo(t, e) {
1130
+ function Do(t, e) {
1132
1131
  return !!(t === e || qt(t) && qt(e));
1133
1132
  }
1134
- function Ao(t, e) {
1133
+ function zo(t, e) {
1135
1134
  if (t.length !== e.length)
1136
1135
  return !1;
1137
1136
  for (var n = 0; n < t.length; n++)
1138
- if (!zo(t[n], e[n]))
1137
+ if (!Do(t[n], e[n]))
1139
1138
  return !1;
1140
1139
  return !0;
1141
1140
  }
1142
1141
  function ut(t, e) {
1143
- e === void 0 && (e = Ao);
1142
+ e === void 0 && (e = zo);
1144
1143
  var n, o = [], r, a = !1;
1145
1144
  function c() {
1146
1145
  for (var s = [], d = 0; d < arguments.length; d++)
@@ -1161,7 +1160,7 @@ function Zt(t, e) {
1161
1160
  }
1162
1161
  return n;
1163
1162
  }
1164
- var Fo = typeof performance == "object" && typeof performance.now == "function", Bt = Fo ? function() {
1163
+ var Ao = typeof performance == "object" && typeof performance.now == "function", Bt = Ao ? function() {
1165
1164
  return performance.now();
1166
1165
  } : function() {
1167
1166
  return Date.now();
@@ -1169,7 +1168,7 @@ var Fo = typeof performance == "object" && typeof performance.now == "function",
1169
1168
  function jt(t) {
1170
1169
  cancelAnimationFrame(t.id);
1171
1170
  }
1172
- function ko(t, e) {
1171
+ function Fo(t, e) {
1173
1172
  var n = Bt();
1174
1173
  function o() {
1175
1174
  Bt() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
@@ -1180,7 +1179,7 @@ function ko(t, e) {
1180
1179
  return r;
1181
1180
  }
1182
1181
  var pt = -1;
1183
- function Mo(t) {
1182
+ function ko(t) {
1184
1183
  if (t === void 0 && (t = !1), pt === -1 || t) {
1185
1184
  var e = document.createElement("div"), n = e.style;
1186
1185
  n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), pt = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
@@ -1197,17 +1196,17 @@ function Kt(t) {
1197
1196
  }
1198
1197
  return Le;
1199
1198
  }
1200
- var Wo = 150, Ho = function(e) {
1199
+ var Mo = 150, Wo = function(e) {
1201
1200
  var n = e.columnIndex;
1202
1201
  e.data;
1203
1202
  var o = e.rowIndex;
1204
1203
  return o + ":" + n;
1205
1204
  }, Ze = null, Be = null, je = null;
1206
1205
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ze = /* @__PURE__ */ new WeakSet(), Be = /* @__PURE__ */ new WeakSet(), je = /* @__PURE__ */ new WeakSet());
1207
- function $o(t) {
1206
+ function Ho(t) {
1208
1207
  var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, s = t.getEstimatedTotalWidth, d = t.getOffsetForColumnAndAlignment, u = t.getOffsetForRowAndAlignment, p = t.getRowHeight, f = t.getRowOffset, h = t.getRowStartIndexForOffset, g = t.getRowStopIndexForStartIndex, C = t.initInstanceProps, P = t.shouldResetStyleCacheOnItemSizeChange, _ = t.validateProps;
1209
1208
  return e = /* @__PURE__ */ function(S) {
1210
- Do(m, S);
1209
+ Oo(m, S);
1211
1210
  function m(w) {
1212
1211
  var l;
1213
1212
  return l = S.call(this, w) || this, l._instanceProps = C(l.props, Ut(l)), l._resetIsScrollingTimeoutId = null, l._outerRef = void 0, l.state = {
@@ -1285,7 +1284,7 @@ function $o(t) {
1285
1284
  var T = l.props.outerRef;
1286
1285
  l._outerRef = b, typeof T == "function" ? T(b) : T != null && typeof T == "object" && T.hasOwnProperty("current") && (T.current = b);
1287
1286
  }, l._resetIsScrollingDebounced = function() {
1288
- l._resetIsScrollingTimeoutId !== null && jt(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = ko(l._resetIsScrolling, Wo);
1287
+ l._resetIsScrollingTimeoutId !== null && jt(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = Fo(l._resetIsScrolling, Mo);
1289
1288
  }, l._resetIsScrolling = function() {
1290
1289
  l._resetIsScrollingTimeoutId = null, l.setState({
1291
1290
  isScrolling: !1
@@ -1295,7 +1294,7 @@ function $o(t) {
1295
1294
  }, l;
1296
1295
  }
1297
1296
  m.getDerivedStateFromProps = function(l, b) {
1298
- return Go(l, b), _(l), null;
1297
+ return $o(l, b), _(l), null;
1299
1298
  };
1300
1299
  var v = m.prototype;
1301
1300
  return v.scrollTo = function(l) {
@@ -1310,7 +1309,7 @@ function $o(t) {
1310
1309
  };
1311
1310
  }, this._resetIsScrollingDebounced);
1312
1311
  }, v.scrollToItem = function(l) {
1313
- var b = l.align, T = b === void 0 ? "auto" : b, y = l.columnIndex, E = l.rowIndex, x = this.props, N = x.columnCount, z = x.height, k = x.rowCount, M = x.width, R = this.state, I = R.scrollLeft, O = R.scrollTop, H = Mo();
1312
+ var b = l.align, T = b === void 0 ? "auto" : b, y = l.columnIndex, E = l.rowIndex, x = this.props, N = x.columnCount, z = x.height, k = x.rowCount, M = x.width, R = this.state, I = R.scrollLeft, O = R.scrollTop, H = ko();
1314
1313
  y !== void 0 && (y = Math.max(0, Math.min(y, N - 1))), E !== void 0 && (E = Math.max(0, Math.min(E, k - 1)));
1315
1314
  var q = c(this.props, this._instanceProps), B = s(this.props, this._instanceProps), J = B > M ? H : 0, j = q > z ? H : 0;
1316
1315
  this.scrollTo({
@@ -1349,7 +1348,7 @@ function $o(t) {
1349
1348
  }, v.componentWillUnmount = function() {
1350
1349
  this._resetIsScrollingTimeoutId !== null && jt(this._resetIsScrollingTimeoutId);
1351
1350
  }, v.render = function() {
1352
- var l = this.props, b = l.children, T = l.className, y = l.columnCount, E = l.direction, x = l.height, N = l.innerRef, z = l.innerElementType, k = l.innerTagName, M = l.itemData, R = l.itemKey, I = R === void 0 ? Ho : R, O = l.outerElementType, H = l.outerTagName, q = l.rowCount, B = l.style, J = l.useIsScrolling, j = l.width, Q = this.state.isScrolling, oe = this._getHorizontalRangeToRender(), ge = oe[0], le = oe[1], de = this._getVerticalRangeToRender(), ue = de[0], ze = de[1], Ie = [];
1351
+ var l = this.props, b = l.children, T = l.className, y = l.columnCount, E = l.direction, x = l.height, N = l.innerRef, z = l.innerElementType, k = l.innerTagName, M = l.itemData, R = l.itemKey, I = R === void 0 ? Wo : R, O = l.outerElementType, H = l.outerTagName, q = l.rowCount, B = l.style, J = l.useIsScrolling, j = l.width, Q = this.state.isScrolling, oe = this._getHorizontalRangeToRender(), ge = oe[0], le = oe[1], de = this._getVerticalRangeToRender(), ue = de[0], ze = de[1], Ie = [];
1353
1352
  if (y > 0 && q)
1354
1353
  for (var Ce = ue; Ce <= ze; Ce++)
1355
1354
  for (var ve = ge; ve <= le; ve++)
@@ -1417,7 +1416,7 @@ function $o(t) {
1417
1416
  useIsScrolling: !1
1418
1417
  }, e;
1419
1418
  }
1420
- var Go = function(e, n) {
1419
+ var $o = function(e, n) {
1421
1420
  var o = e.children, r = e.direction, a = e.height, c = e.innerTagName, s = e.outerTagName, d = e.overscanColumnsCount, u = e.overscanCount, p = e.overscanRowsCount, f = e.width, h = n.instance;
1422
1421
  if (process.env.NODE_ENV !== "production") {
1423
1422
  if (typeof u == "number" && Ze && !Ze.has(h) && (Ze.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof p == "number") && Be && !Be.has(h) && (Be.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || s != null) && je && !je.has(h) && (je.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
@@ -1472,7 +1471,7 @@ var Go = function(e, n) {
1472
1471
  var a, c;
1473
1472
  e === "column" ? (a = o.columnMetadataMap, c = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = o.lastMeasuredRowIndex);
1474
1473
  var s = c > 0 ? a[c].offset : 0;
1475
- return s >= r ? Ln(e, n, o, c, 0, r) : Vo(e, n, o, Math.max(0, c), r);
1474
+ return s >= r ? Ln(e, n, o, c, 0, r) : Go(e, n, o, Math.max(0, c), r);
1476
1475
  }, Ln = function(e, n, o, r, a, c) {
1477
1476
  for (; a <= r; ) {
1478
1477
  var s = a + Math.floor((r - a) / 2), d = pe(e, n, s, o).offset;
@@ -1481,7 +1480,7 @@ var Go = function(e, n) {
1481
1480
  d < c ? a = s + 1 : d > c && (r = s - 1);
1482
1481
  }
1483
1482
  return a > 0 ? a - 1 : 0;
1484
- }, Vo = function(e, n, o, r, a) {
1483
+ }, Go = function(e, n, o, r, a) {
1485
1484
  for (var c = e === "column" ? n.columnCount : n.rowCount, s = 1; r < c && pe(e, n, r, o).offset < a; )
1486
1485
  r += s, s *= 2;
1487
1486
  return Ln(e, n, o, Math.min(r, c - 1), Math.floor(r / 2), a);
@@ -1498,7 +1497,7 @@ var Go = function(e, n) {
1498
1497
  default:
1499
1498
  return a >= h && a <= f ? a : h > f || a < h ? h : f;
1500
1499
  }
1501
- }, Uo = /* @__PURE__ */ $o({
1500
+ }, Vo = /* @__PURE__ */ Ho({
1502
1501
  getColumnOffset: function(e, n, o) {
1503
1502
  return pe("column", e, n, o).offset;
1504
1503
  },
@@ -1580,12 +1579,12 @@ function Qt(t, e) {
1580
1579
  return !0;
1581
1580
  return !1;
1582
1581
  }
1583
- var qo = ["style"], Zo = ["style"];
1584
- function Bo(t, e) {
1585
- var n = t.style, o = Zt(t, qo), r = e.style, a = Zt(e, Zo);
1582
+ var Uo = ["style"], qo = ["style"];
1583
+ function Zo(t, e) {
1584
+ var n = t.style, o = Zt(t, Uo), r = e.style, a = Zt(e, qo);
1586
1585
  return !Qt(n, r) && !Qt(o, a);
1587
1586
  }
1588
- const jo = () => {
1587
+ const Bo = () => {
1589
1588
  const { viewMode: t } = De(), { scrollMode: e } = Oe(), { setColumnCount: n } = un(), { virtualScrollableElementRef: o } = et(), r = Ve(), a = L(
1590
1589
  (g) => r.widths[g] || 0,
1591
1590
  [r.widths]
@@ -1623,7 +1622,7 @@ mt == null || nn == null ? (bt = ht, Ct = function(e) {
1623
1622
  }, en);
1624
1623
  return [n, o];
1625
1624
  });
1626
- function Ko(t) {
1625
+ function jo(t) {
1627
1626
  let e, n, o, r, a, c, s;
1628
1627
  const d = typeof document < "u" && document.attachEvent;
1629
1628
  if (!d) {
@@ -1695,7 +1694,7 @@ function Ko(t) {
1695
1694
  }
1696
1695
  };
1697
1696
  }
1698
- class Xo extends nr {
1697
+ class Ko extends nr {
1699
1698
  constructor(...e) {
1700
1699
  super(...e), this.state = {
1701
1700
  height: this.props.defaultHeight || 0,
@@ -1736,7 +1735,7 @@ class Xo extends nr {
1736
1735
  const o = n.ownerDocument.defaultView.ResizeObserver;
1737
1736
  o != null ? (this._resizeObserver = new o(() => {
1738
1737
  this._timeoutId = setTimeout(this._onResize, 0);
1739
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = Ko(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1738
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = jo(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1740
1739
  }
1741
1740
  }
1742
1741
  componentWillUnmount() {
@@ -1774,7 +1773,7 @@ class Xo extends nr {
1774
1773
  }, !m && e(S));
1775
1774
  }
1776
1775
  }
1777
- const Yo = ({ widths: t, heights: e }) => {
1776
+ const Xo = ({ widths: t, heights: e }) => {
1778
1777
  const { focusedPage: n, totalPages: o } = re(), r = F(() => {
1779
1778
  const s = [], d = Math.ceil(n / 2) * 2 - 1;
1780
1779
  if (s.push(d), d + 1 < o) {
@@ -1798,7 +1797,7 @@ const Yo = ({ widths: t, heights: e }) => {
1798
1797
  }
1799
1798
  ], [t, e, r]), c = F(() => a.reduce((s, d) => s + Number(d.width || 0), 0), [a]);
1800
1799
  return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: r.map((s, d) => /* @__PURE__ */ i(Lt, { style: a[d], pageNumber: s }, s)) });
1801
- }, Jo = ({ widths: t, heights: e }) => {
1800
+ }, Yo = ({ widths: t, heights: e }) => {
1802
1801
  const { focusedPage: n } = re(), o = F(() => ({
1803
1802
  position: "absolute",
1804
1803
  width: t(n - 1),
@@ -1814,7 +1813,7 @@ const Yo = ({ widths: t, heights: e }) => {
1814
1813
  children: /* @__PURE__ */ i(Lt, { style: o, pageNumber: n }, n)
1815
1814
  }
1816
1815
  );
1817
- }, Qo = (t, e, n) => {
1816
+ }, Jo = (t, e, n) => {
1818
1817
  const o = W(), { contentRef: r } = me(), { heights: a, widths: c } = Ve(), { setFocusedPage: s } = re(), [d, u] = $([]), { targetScrollPage: p } = hn(), f = Pt(d, 0, 500), h = F(() => a.map((C, P) => {
1819
1818
  const _ = c[P], S = Gr(P + 1, t), m = _ * S.columnIndex, v = C * S.rowIndex, w = m + _, l = v + C;
1820
1819
  return {
@@ -1865,10 +1864,10 @@ const Yo = ({ widths: t, heights: e }) => {
1865
1864
  n == null || n.removeEventListener("scroll", g);
1866
1865
  };
1867
1866
  }, [n, g]);
1868
- }, ei = rr(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
1867
+ }, Qo = rr(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
1869
1868
  const r = Vr(e, t, n.columnCount);
1870
1869
  return /* @__PURE__ */ i(Lt, { style: o, pageNumber: r }, r);
1871
- }, Bo), Ws = () => {
1870
+ }, Zo), ks = () => {
1872
1871
  const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = lr(), { pagesRef: o, setPagesRef: r } = me(), { scrollToPage: a } = bn(), {
1873
1872
  virtualScrollRef: c,
1874
1873
  getVirtualScrollRef: s,
@@ -1891,8 +1890,8 @@ const Yo = ({ widths: t, heights: e }) => {
1891
1890
  columnWidth: H,
1892
1891
  estimatedColumnWidth: q,
1893
1892
  estimatedRowHeight: B
1894
- } = jo(), J = Pt(h, 100), j = W();
1895
- Qo(O, R, f);
1893
+ } = Bo(), J = Pt(h, 100), j = W();
1894
+ Jo(O, R, f);
1896
1895
  const Q = W({
1897
1896
  scrollTop: 0,
1898
1897
  scrollLeft: 0
@@ -2019,16 +2018,16 @@ const Yo = ({ widths: t, heights: e }) => {
2019
2018
  S,
2020
2019
  J
2021
2020
  ]), /* @__PURE__ */ D(he, { children: [
2022
- /* @__PURE__ */ i("div", { id: n, ref: r, tabIndex: -1, className: rt, children: /* @__PURE__ */ i(Xo, { style: { minHeight: "50px" }, children: ({ width: G, height: V }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Xn, style: { width: G, height: V }, children: v === Y.PAGE_SCROLLING ? /* @__PURE__ */ i(
2021
+ /* @__PURE__ */ i("div", { id: n, ref: r, tabIndex: -1, className: rt, children: /* @__PURE__ */ i(Ko, { style: { minHeight: "50px" }, children: ({ width: G, height: V }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Xn, style: { width: G, height: V }, children: v === Y.PAGE_SCROLLING ? /* @__PURE__ */ i(
2023
2022
  "div",
2024
2023
  {
2025
2024
  ref: d,
2026
2025
  style: { width: G, height: V },
2027
2026
  className: ee(se["rp-pages"], se["rp-page-scrolling-wrapper"]),
2028
- children: w === He.DUAL_PAGE ? /* @__PURE__ */ i(Yo, { widths: H, heights: I }) : /* @__PURE__ */ i(Jo, { widths: H, heights: I })
2027
+ children: w === He.DUAL_PAGE ? /* @__PURE__ */ i(Xo, { widths: H, heights: I }) : /* @__PURE__ */ i(Yo, { widths: H, heights: I })
2029
2028
  }
2030
2029
  ) : q ? /* @__PURE__ */ i(
2031
- Uo,
2030
+ Vo,
2032
2031
  {
2033
2032
  ref: s,
2034
2033
  itemData: ze,
@@ -2047,7 +2046,7 @@ const Yo = ({ widths: t, heights: e }) => {
2047
2046
  se["rp-pages"],
2048
2047
  v === Y.HORIZONTAL_SCROLLING ? se["rp-pages-horizontal-scroll"] : ""
2049
2048
  ),
2050
- children: ei
2049
+ children: Qo
2051
2050
  }
2052
2051
  ) : b ? null : /* @__PURE__ */ i(
2053
2052
  "div",
@@ -2075,13 +2074,13 @@ const Yo = ({ widths: t, heights: e }) => {
2075
2074
  "rp-paginate": "_rp-paginate_1y9vo_1",
2076
2075
  "rp-page-input": "_rp-page-input_1y9vo_6",
2077
2076
  "rp-total-page": "_rp-total-page_1y9vo_11"
2078
- }, ti = () => {
2077
+ }, ei = () => {
2079
2078
  const { prevIcon: t } = ce();
2080
2079
  return t || /* @__PURE__ */ i(We, {});
2081
- }, ni = () => {
2080
+ }, ti = () => {
2082
2081
  const { nextIcon: t } = ce();
2083
2082
  return t || /* @__PURE__ */ i(We, { style: { transform: "rotate(180deg" } });
2084
- }, ri = () => {
2083
+ }, ni = () => {
2085
2084
  const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = re(), [c, s] = $(t.toString()), { pageNavigationTool: d = !0 } = fe(), { isSmallScreen: u } = be(), { localeMessages: p } = ie();
2086
2085
  A(() => {
2087
2086
  s(t.toString());
@@ -2117,7 +2116,7 @@ const Yo = ({ widths: t, heights: e }) => {
2117
2116
  onClick: r,
2118
2117
  "aria-label": p == null ? void 0 : p.previousPageTooltip,
2119
2118
  "aria-disabled": t === 1,
2120
- children: /* @__PURE__ */ i(ti, {})
2119
+ children: /* @__PURE__ */ i(ei, {})
2121
2120
  }
2122
2121
  ) }),
2123
2122
  /* @__PURE__ */ i(Z, { content: p == null ? void 0 : p.currentPageTooltip, children: /* @__PURE__ */ i(
@@ -2140,12 +2139,12 @@ const Yo = ({ widths: t, heights: e }) => {
2140
2139
  onClick: o,
2141
2140
  "aria-label": p == null ? void 0 : p.nextPageTooltip,
2142
2141
  "aria-disabled": t === e,
2143
- children: /* @__PURE__ */ i(ni, {})
2142
+ children: /* @__PURE__ */ i(ti, {})
2144
2143
  }
2145
2144
  ) })
2146
2145
  ] }) : null;
2147
2146
  };
2148
- var Rt = "Dialog", [Rn, Hs] = jr(Rt), [oi, ae] = Rn(Rt), Nn = (t) => {
2147
+ var Rt = "Dialog", [Rn, Ms] = jr(Rt), [ri, ae] = Rn(Rt), Nn = (t) => {
2149
2148
  const {
2150
2149
  __scopeDialog: e,
2151
2150
  children: n,
@@ -2159,7 +2158,7 @@ var Rt = "Dialog", [Rn, Hs] = jr(Rt), [oi, ae] = Rn(Rt), Nn = (t) => {
2159
2158
  onChange: a
2160
2159
  });
2161
2160
  return /* @__PURE__ */ i(
2162
- oi,
2161
+ ri,
2163
2162
  {
2164
2163
  scope: e,
2165
2164
  triggerRef: s,
@@ -2176,7 +2175,7 @@ var Rt = "Dialog", [Rn, Hs] = jr(Rt), [oi, ae] = Rn(Rt), Nn = (t) => {
2176
2175
  );
2177
2176
  };
2178
2177
  Nn.displayName = Rt;
2179
- var En = "DialogTrigger", ii = U.forwardRef(
2178
+ var En = "DialogTrigger", oi = U.forwardRef(
2180
2179
  (t, e) => {
2181
2180
  const { __scopeDialog: n, ...o } = t, r = ae(En, n), a = St(e, r.triggerRef);
2182
2181
  return /* @__PURE__ */ i(
@@ -2194,22 +2193,22 @@ var En = "DialogTrigger", ii = U.forwardRef(
2194
2193
  );
2195
2194
  }
2196
2195
  );
2197
- ii.displayName = En;
2198
- var Nt = "DialogPortal", [ai, On] = Rn(Nt, {
2196
+ oi.displayName = En;
2197
+ var Nt = "DialogPortal", [ii, On] = Rn(Nt, {
2199
2198
  forceMount: void 0
2200
2199
  }), Dn = (t) => {
2201
2200
  const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = ae(Nt, e);
2202
- return /* @__PURE__ */ i(ai, { scope: e, forceMount: n, children: U.Children.map(o, (c) => /* @__PURE__ */ i(yt, { present: n || a.open, children: /* @__PURE__ */ i(no, { asChild: !0, container: r, children: c }) })) });
2201
+ return /* @__PURE__ */ i(ii, { scope: e, forceMount: n, children: U.Children.map(o, (c) => /* @__PURE__ */ i(yt, { present: n || a.open, children: /* @__PURE__ */ i(no, { asChild: !0, container: r, children: c }) })) });
2203
2202
  };
2204
2203
  Dn.displayName = Nt;
2205
2204
  var Xe = "DialogOverlay", zn = U.forwardRef(
2206
2205
  (t, e) => {
2207
2206
  const n = On(Xe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ae(Xe, t.__scopeDialog);
2208
- return a.modal ? /* @__PURE__ */ i(yt, { present: o || a.open, children: /* @__PURE__ */ i(si, { ...r, ref: e }) }) : null;
2207
+ return a.modal ? /* @__PURE__ */ i(yt, { present: o || a.open, children: /* @__PURE__ */ i(ai, { ...r, ref: e }) }) : null;
2209
2208
  }
2210
2209
  );
2211
2210
  zn.displayName = Xe;
2212
- var si = U.forwardRef(
2211
+ var ai = U.forwardRef(
2213
2212
  (t, e) => {
2214
2213
  const { __scopeDialog: n, ...o } = t, r = ae(Xe, n);
2215
2214
  return (
@@ -2229,11 +2228,11 @@ var si = U.forwardRef(
2229
2228
  ), xe = "DialogContent", An = U.forwardRef(
2230
2229
  (t, e) => {
2231
2230
  const n = On(xe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ae(xe, t.__scopeDialog);
2232
- return /* @__PURE__ */ i(yt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(ci, { ...r, ref: e }) : /* @__PURE__ */ i(li, { ...r, ref: e }) });
2231
+ return /* @__PURE__ */ i(yt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(si, { ...r, ref: e }) : /* @__PURE__ */ i(ci, { ...r, ref: e }) });
2233
2232
  }
2234
2233
  );
2235
2234
  An.displayName = xe;
2236
- var ci = U.forwardRef(
2235
+ var si = U.forwardRef(
2237
2236
  (t, e) => {
2238
2237
  const n = ae(xe, t.__scopeDialog), o = U.useRef(null), r = St(e, n.contentRef, o);
2239
2238
  return U.useEffect(() => {
@@ -2262,7 +2261,7 @@ var ci = U.forwardRef(
2262
2261
  }
2263
2262
  );
2264
2263
  }
2265
- ), li = U.forwardRef(
2264
+ ), ci = U.forwardRef(
2266
2265
  (t, e) => {
2267
2266
  const n = ae(xe, t.__scopeDialog), o = U.useRef(!1), r = U.useRef(!1);
2268
2267
  return /* @__PURE__ */ i(
@@ -2313,8 +2312,8 @@ var ci = U.forwardRef(
2313
2312
  }
2314
2313
  ),
2315
2314
  /* @__PURE__ */ D(he, { children: [
2316
- /* @__PURE__ */ i(ui, { titleId: s.titleId }),
2317
- /* @__PURE__ */ i(hi, { contentRef: d, descriptionId: s.descriptionId })
2315
+ /* @__PURE__ */ i(di, { titleId: s.titleId }),
2316
+ /* @__PURE__ */ i(pi, { contentRef: d, descriptionId: s.descriptionId })
2318
2317
  ] })
2319
2318
  ] });
2320
2319
  }
@@ -2325,13 +2324,13 @@ var ci = U.forwardRef(
2325
2324
  }
2326
2325
  );
2327
2326
  kn.displayName = Et;
2328
- var Mn = "DialogDescription", di = U.forwardRef(
2327
+ var Mn = "DialogDescription", li = U.forwardRef(
2329
2328
  (t, e) => {
2330
2329
  const { __scopeDialog: n, ...o } = t, r = ae(Mn, n);
2331
2330
  return /* @__PURE__ */ i(Ue.p, { id: r.descriptionId, ...o, ref: e });
2332
2331
  }
2333
2332
  );
2334
- di.displayName = Mn;
2333
+ li.displayName = Mn;
2335
2334
  var Wn = "DialogClose", Hn = U.forwardRef(
2336
2335
  (t, e) => {
2337
2336
  const { __scopeDialog: n, ...o } = t, r = ae(Wn, n);
@@ -2350,11 +2349,11 @@ Hn.displayName = Wn;
2350
2349
  function Ot(t) {
2351
2350
  return t ? "open" : "closed";
2352
2351
  }
2353
- var $n = "DialogTitleWarning", [$s, Gn] = Xr($n, {
2352
+ var $n = "DialogTitleWarning", [Ws, Gn] = Xr($n, {
2354
2353
  contentName: xe,
2355
2354
  titleName: Et,
2356
2355
  docsSlug: "dialog"
2357
- }), ui = ({ titleId: t }) => {
2356
+ }), di = ({ titleId: t }) => {
2358
2357
  const e = Gn($n), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2359
2358
 
2360
2359
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -2363,14 +2362,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2363
2362
  return U.useEffect(() => {
2364
2363
  t && (document.getElementById(t) || console.error(n));
2365
2364
  }, [n, t]), null;
2366
- }, pi = "DialogDescriptionWarning", hi = ({ contentRef: t, descriptionId: e }) => {
2367
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gn(pi).contentName}}.`;
2365
+ }, ui = "DialogDescriptionWarning", pi = ({ contentRef: t, descriptionId: e }) => {
2366
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gn(ui).contentName}}.`;
2368
2367
  return U.useEffect(() => {
2369
2368
  var a;
2370
2369
  const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2371
2370
  e && r && (document.getElementById(e) || console.warn(o));
2372
2371
  }, [o, t, e]), null;
2373
- }, mi = Nn, fi = Dn, gi = zn, vi = An, _i = kn, wi = Hn;
2372
+ }, hi = Nn, mi = Dn, fi = zn, gi = An, vi = kn, _i = Hn;
2374
2373
  const ye = {
2375
2374
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2376
2375
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2379,7 +2378,7 @@ const ye = {
2379
2378
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2380
2379
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2381
2380
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2382
- }, bi = () => {
2381
+ }, wi = () => {
2383
2382
  const { pdfProperties: t } = X(), { container: e } = me(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = ao(), { localeMessages: r } = ie(), a = F(() => {
2384
2383
  if (!t)
2385
2384
  return [];
@@ -2420,19 +2419,19 @@ const ye = {
2420
2419
  { label: r == null ? void 0 : r.propertiesPageCountLabel, value: S }
2421
2420
  ];
2422
2421
  }, [t, r]);
2423
- return /* @__PURE__ */ i(mi, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(fi, { container: e, children: /* @__PURE__ */ D("div", { className: ye["rp-dialog-wrapper"], children: [
2424
- /* @__PURE__ */ i(gi, { className: ye["rp-dialog-overlay"] }),
2425
- /* @__PURE__ */ D(vi, { className: ye["rp-document-dialog"], children: [
2426
- /* @__PURE__ */ i(_i, { className: ye["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2422
+ return /* @__PURE__ */ i(hi, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(mi, { container: e, children: /* @__PURE__ */ D("div", { className: ye["rp-dialog-wrapper"], children: [
2423
+ /* @__PURE__ */ i(fi, { className: ye["rp-dialog-overlay"] }),
2424
+ /* @__PURE__ */ D(gi, { className: ye["rp-document-dialog"], children: [
2425
+ /* @__PURE__ */ i(vi, { className: ye["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2427
2426
  /* @__PURE__ */ i("div", { className: ye["rp-document-properties"], children: a.map((c, s) => /* @__PURE__ */ i("div", { children: c.separate ? /* @__PURE__ */ i("div", { className: ye["rp-properties-divider"] }) : /* @__PURE__ */ i(io, { label: c.label, value: c.value }) }, s)) }),
2428
- /* @__PURE__ */ i(wi, { asChild: !0, className: ye["rp-dialog-close"], children: /* @__PURE__ */ i(oo, {}) })
2427
+ /* @__PURE__ */ i(_i, { asChild: !0, className: ye["rp-dialog-close"], children: /* @__PURE__ */ i(oo, {}) })
2429
2428
  ] })
2430
2429
  ] }) }) });
2431
- }, Ci = {
2430
+ }, bi = {
2432
2431
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2433
- }, rn = ".pdf", Ti = (t) => URL.createObjectURL(t), Pi = async (t) => {
2432
+ }, rn = ".pdf", Ci = (t) => URL.createObjectURL(t), Ti = async (t) => {
2434
2433
  const n = await (await fetch(t)).blob();
2435
- return Ti(n);
2434
+ return Ci(n);
2436
2435
  }, Vn = () => {
2437
2436
  const { filename: t, pdfSrc: e } = X(), { downloadFilename: n } = fr(), o = (a) => {
2438
2437
  const c = n || a;
@@ -2442,26 +2441,26 @@ const ye = {
2442
2441
  if (!t || !e)
2443
2442
  throw new Error("There is no PDF source to download");
2444
2443
  const a = document.createElement("a");
2445
- a.href = await Pi(e), a.download = o(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2444
+ a.href = await Ti(e), a.download = o(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2446
2445
  }, [t, e]) };
2447
2446
  }, Un = () => {
2448
2447
  const { downloadIcon: t } = ce();
2449
- return t || /* @__PURE__ */ i(ho, {});
2450
- }, qn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(Z, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Si = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(qn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Un, {}) }) }), yi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(qn, { className: "rp-menu-item", localeMessages: e, children: [
2448
+ return t || /* @__PURE__ */ i(po, {});
2449
+ }, qn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(Z, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Pi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(qn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Un, {}) }) }), Si = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(qn, { className: "rp-menu-item", localeMessages: e, children: [
2451
2450
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Un, {}) }),
2452
2451
  e == null ? void 0 : e.downloadFileLabel
2453
2452
  ] }) }), Zn = () => {
2454
2453
  const { download: t } = Vn(), { downloadTool: e = !0 } = fe(), { isSmallScreen: n } = be(), { localeMessages: o } = ie();
2455
- return e ? n ? /* @__PURE__ */ i(yi, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(Si, { download: t, localeMessages: o }) : null : null;
2454
+ return e ? n ? /* @__PURE__ */ i(Si, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(Pi, { download: t, localeMessages: o }) : null : null;
2456
2455
  }, Bn = () => {
2457
2456
  const { printIcon: t } = ce();
2458
- return t || /* @__PURE__ */ i(mo, {});
2459
- }, jn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(Z, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), xi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(jn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Bn, {}) }) }), Ii = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(jn, { className: "rp-menu-item", localeMessages: e, children: [
2457
+ return t || /* @__PURE__ */ i(ho, {});
2458
+ }, jn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(Z, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), yi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(jn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Bn, {}) }) }), xi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(jn, { className: "rp-menu-item", localeMessages: e, children: [
2460
2459
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Bn, {}) }),
2461
2460
  e == null ? void 0 : e.printLabel
2462
2461
  ] }) }), Kn = () => {
2463
2462
  const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = tt(), { printTool: c = !0 } = fe(), { isSmallScreen: s } = be(), { localeMessages: d } = ie();
2464
- return c ? s ? /* @__PURE__ */ i(Ii, { print: t, localeMessages: d }) : typeof c == "function" ? /* @__PURE__ */ i(
2463
+ return c ? s ? /* @__PURE__ */ i(xi, { print: t, localeMessages: d }) : typeof c == "function" ? /* @__PURE__ */ i(
2465
2464
  c,
2466
2465
  {
2467
2466
  print: t,
@@ -2471,16 +2470,16 @@ const ye = {
2471
2470
  setOnComplete: o,
2472
2471
  progress: a
2473
2472
  }
2474
- ) : c ? /* @__PURE__ */ i(xi, { print: t, localeMessages: d }) : null : null;
2475
- }, Li = {
2473
+ ) : c ? /* @__PURE__ */ i(yi, { print: t, localeMessages: d }) : null : null;
2474
+ }, Ii = {
2476
2475
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2477
- }, Ri = () => {
2476
+ }, Li = () => {
2478
2477
  const { goToFirstPageIcon: t } = ce();
2479
- return t || /* @__PURE__ */ i(wn, { className: Li["rp-go-to-Top"] });
2480
- }, Ni = () => {
2478
+ return t || /* @__PURE__ */ i(wn, { className: Ii["rp-go-to-Top"] });
2479
+ }, Ri = () => {
2481
2480
  const { goToLastPageIcon: t } = ce();
2482
2481
  return t || /* @__PURE__ */ i(wn, {});
2483
- }, on = { width: "100%" }, Ei = () => {
2482
+ }, on = { width: "100%" }, Ni = () => {
2484
2483
  const { goToPage: t, totalPages: e, focusedPage: n } = re(), { jumpNavigationTool: o = !0 } = fe(), { localeMessages: r } = ie(), a = F(() => n === 1, [n]), c = F(() => n === e, [n, e]), s = L(() => {
2485
2484
  t(1);
2486
2485
  }, [t]), d = L(() => {
@@ -2488,16 +2487,16 @@ const ye = {
2488
2487
  }, [t, e]);
2489
2488
  return o ? /* @__PURE__ */ D(Ke, { children: [
2490
2489
  /* @__PURE__ */ i(we, { onClick: s, children: /* @__PURE__ */ i(Z, { content: r == null ? void 0 : r.firstPageTooltip, style: on, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2491
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ri, {}) }),
2490
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Li, {}) }),
2492
2491
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
2493
2492
  ] }) }) }),
2494
2493
  /* @__PURE__ */ i(we, { onClick: d, children: /* @__PURE__ */ i(Z, { content: r == null ? void 0 : r.lastPageTooltip, style: on, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2495
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ni, {}) }),
2494
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ri, {}) }),
2496
2495
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
2497
2496
  ] }) }) }),
2498
2497
  /* @__PURE__ */ i(xt, {})
2499
2498
  ] }) : null;
2500
- }, Oi = () => {
2499
+ }, Ei = () => {
2501
2500
  const { container: t } = me(), { isSmallScreen: e } = be(), {
2502
2501
  openFileTool: n,
2503
2502
  downloadTool: o,
@@ -2528,7 +2527,7 @@ const ye = {
2528
2527
  {
2529
2528
  container: t,
2530
2529
  triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(Z, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(te, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Br, {}) }) }) }),
2531
- children: /* @__PURE__ */ D("div", { className: Ci["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2530
+ children: /* @__PURE__ */ D("div", { className: bi["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2532
2531
  e && /* @__PURE__ */ D(Ke, { children: [
2533
2532
  /* @__PURE__ */ i(gn, {}),
2534
2533
  /* @__PURE__ */ i(Zn, {}),
@@ -2536,18 +2535,17 @@ const ye = {
2536
2535
  /* @__PURE__ */ i(_n, {}),
2537
2536
  /* @__PURE__ */ i(xt, {})
2538
2537
  ] }),
2539
- /* @__PURE__ */ i(Ei, {}),
2538
+ /* @__PURE__ */ i(Ni, {}),
2540
2539
  /* @__PURE__ */ i(lo, {}),
2541
- /* @__PURE__ */ i(fo, {}),
2540
+ /* @__PURE__ */ i(mo, {}),
2542
2541
  /* @__PURE__ */ i(uo, {}),
2543
- /* @__PURE__ */ i(po, {}),
2544
2542
  /* @__PURE__ */ i(co, {})
2545
2543
  ] })
2546
2544
  }
2547
2545
  ),
2548
- /* @__PURE__ */ i(bi, {})
2546
+ /* @__PURE__ */ i(wi, {})
2549
2547
  ] }) : null;
2550
- }, Di = () => {
2548
+ }, Oi = () => {
2551
2549
  const { isSmallScreen: t } = be();
2552
2550
  return /* @__PURE__ */ D(he, { children: [
2553
2551
  /* @__PURE__ */ i(Zr, {}),
@@ -2557,7 +2555,7 @@ const ye = {
2557
2555
  /* @__PURE__ */ i(Kn, {}),
2558
2556
  /* @__PURE__ */ i(_n, {})
2559
2557
  ] }),
2560
- /* @__PURE__ */ i(Oi, {})
2558
+ /* @__PURE__ */ i(Ei, {})
2561
2559
  ] });
2562
2560
  }, Re = {
2563
2561
  "rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
@@ -2565,13 +2563,13 @@ const ye = {
2565
2563
  "rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
2566
2564
  "rp-current-zoom-text": "_rp-current-zoom-text_cocqs_16",
2567
2565
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
2568
- }, zi = 25, gt = 1e3, Ai = [50, 75, 100, 125, 150, 200, 300, 400], Fi = () => {
2566
+ }, Di = 25, gt = 1e3, zi = [50, 75, 100, 125, 150, 200, 300, 400], Ai = () => {
2569
2567
  const { zoomInIcon: t } = ce();
2568
+ return t || /* @__PURE__ */ i(fo, {});
2569
+ }, Fi = () => {
2570
+ const { zoomOutIcon: t } = ce();
2570
2571
  return t || /* @__PURE__ */ i(go, {});
2571
2572
  }, ki = () => {
2572
- const { zoomOutIcon: t } = ce();
2573
- return t || /* @__PURE__ */ i(vo, {});
2574
- }, Mi = () => {
2575
2573
  const { zoomLevel: t, setZoomLevel: e } = Qe(), { container: n, contentRef: o } = me(), { zoomTool: r = !0 } = fe(), { focusedPage: a } = re(), { rotate: c } = Ge(), { pages: s } = X(), { isSmallScreen: d } = be(), { localeMessages: u } = ie(), { viewMode: p } = De(), f = L(() => {
2576
2574
  e((m) => {
2577
2575
  const v = Math.floor(m / 25) * 25;
@@ -2582,12 +2580,12 @@ const ye = {
2582
2580
  const v = Math.ceil(m / 25) * 25;
2583
2581
  return Math.min(v - 25, gt);
2584
2582
  });
2585
- }, [e]), g = F(() => t === zi, [t]), C = F(() => t === gt, [t]), P = F(() => {
2583
+ }, [e]), g = F(() => t === Di, [t]), C = F(() => t === gt, [t]), P = F(() => {
2586
2584
  var m;
2587
2585
  return (m = s.get(a)) == null ? void 0 : m.page.getViewport({ scale: 1, rotation: c });
2588
2586
  }, [s, a, c]), _ = L(
2589
2587
  (m) => {
2590
- const v = ((P == null ? void 0 : P.width) || 0) + 2 * Ht, w = ((P == null ? void 0 : P.height) || 0) + 2 * Ht, l = (o == null ? void 0 : o.clientWidth) || 0, b = (o == null ? void 0 : o.clientHeight) || 0, T = _o(
2588
+ const v = ((P == null ? void 0 : P.width) || 0) + 2 * Ht, w = ((P == null ? void 0 : P.height) || 0) + 2 * Ht, l = (o == null ? void 0 : o.clientWidth) || 0, b = (o == null ? void 0 : o.clientHeight) || 0, T = vo(
2591
2589
  m,
2592
2590
  l,
2593
2591
  b,
@@ -2611,7 +2609,7 @@ const ye = {
2611
2609
  disabled: g,
2612
2610
  onClick: h,
2613
2611
  "aria-label": u == null ? void 0 : u.zoomOutTooltip,
2614
- children: /* @__PURE__ */ i(ki, {})
2612
+ children: /* @__PURE__ */ i(Fi, {})
2615
2613
  }
2616
2614
  ) }),
2617
2615
  !d && /* @__PURE__ */ i(
@@ -2639,7 +2637,7 @@ const ye = {
2639
2637
  /* @__PURE__ */ i(we, { onClick: () => S(at.PAGE_WIDTH), children: u == null ? void 0 : u.zoomPageWidth })
2640
2638
  ] }),
2641
2639
  /* @__PURE__ */ i(xt, {}),
2642
- /* @__PURE__ */ i(Ke, { children: Ai.map((m) => /* @__PURE__ */ D(we, { onClick: () => S(m), children: [
2640
+ /* @__PURE__ */ i(Ke, { children: zi.map((m) => /* @__PURE__ */ D(we, { onClick: () => S(m), children: [
2643
2641
  m,
2644
2642
  " %"
2645
2643
  ] }, m)) })
@@ -2652,7 +2650,7 @@ const ye = {
2652
2650
  disabled: C,
2653
2651
  onClick: f,
2654
2652
  "aria-label": u == null ? void 0 : u.zoomInTooltip,
2655
- children: /* @__PURE__ */ i(Fi, {})
2653
+ children: /* @__PURE__ */ i(Ai, {})
2656
2654
  }
2657
2655
  ) })
2658
2656
  ] }) : null;
@@ -2681,8 +2679,8 @@ const ye = {
2681
2679
  ] });
2682
2680
  }, sn = () => {
2683
2681
  const { searchIcon: t } = ce();
2684
- return t || /* @__PURE__ */ i(wo, {});
2685
- }, Wi = () => {
2682
+ return t || /* @__PURE__ */ i(_o, {});
2683
+ }, Mi = () => {
2686
2684
  const { container: t } = me(), [e, n] = $(!1), { pdf: o } = X(), [r, a] = $(null), {
2687
2685
  searchOptions: c,
2688
2686
  setSearchOptions: s,
@@ -2752,7 +2750,7 @@ const ye = {
2752
2750
  placeholder: m == null ? void 0 : m.searchInputPlaceholder,
2753
2751
  className: K["rp-search-input"],
2754
2752
  ref: a,
2755
- children: !!_ && /* @__PURE__ */ i("span", { className: K["rp-search-tool-input-clear"], onClick: x, children: /* @__PURE__ */ i(bo, {}) })
2753
+ children: !!_ && /* @__PURE__ */ i("span", { className: K["rp-search-tool-input-clear"], onClick: x, children: /* @__PURE__ */ i(wo, {}) })
2756
2754
  }
2757
2755
  ) }),
2758
2756
  d ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(Tt, { className: K["rp-search-loader-icon"] }) }) : /* @__PURE__ */ i("span", { children: N }),
@@ -2773,15 +2771,15 @@ const ye = {
2773
2771
  ] })
2774
2772
  }
2775
2773
  ) }) : null;
2776
- }, Hi = "_loading_vpexk_1", Ne = {
2774
+ }, Wi = "_loading_vpexk_1", Ne = {
2777
2775
  "rp-loading-overlay": "_rp-loading-overlay_vpexk_1",
2778
2776
  "rp-loading-modal": "_rp-loading-modal_vpexk_14",
2779
2777
  "rp-loading-title": "_rp-loading-title_vpexk_27",
2780
2778
  "rp-loading-progress-bar": "_rp-loading-progress-bar_vpexk_35",
2781
2779
  "rp-loading-progress": "_rp-loading-progress_vpexk_35",
2782
2780
  "rp-loading-cancel-button": "_rp-loading-cancel-button_vpexk_55",
2783
- loading: Hi
2784
- }, $i = ({ percentage: t }) => {
2781
+ loading: Wi
2782
+ }, Hi = ({ percentage: t }) => {
2785
2783
  const { cancel: e } = tt(), { localeMessages: n } = ie();
2786
2784
  return t < 1 ? null : /* @__PURE__ */ i("div", { className: ee(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ D("div", { className: ee(Ne["rp-loading-modal"]), children: [
2787
2785
  /* @__PURE__ */ D("div", { className: ee(Ne["rp-loading-title"]), children: [
@@ -2797,18 +2795,18 @@ const ye = {
2797
2795
  ) }),
2798
2796
  /* @__PURE__ */ i("button", { className: ee(Ne["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
2799
2797
  ] }) });
2800
- }, Gi = $e((t, e) => {
2798
+ }, $i = $e((t, e) => {
2801
2799
  const { showPrintProgress: n } = fe(), { progress: o } = tt(), { isSmallScreen: r } = be(), { percentage: a } = o || {}, c = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2802
2800
  return /* @__PURE__ */ D("div", { children: [
2803
2801
  /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: Fe["rp-toolbar-content"], children: /* @__PURE__ */ D("div", { className: Fe["rp-toolbar-wrapper"], style: c(), children: [
2804
2802
  /* @__PURE__ */ D("div", { "data-rp": "topBarLeft", className: Fe["rp-toolbar-start"], children: [
2805
- /* @__PURE__ */ i(Wi, {}),
2806
- /* @__PURE__ */ i(ri, {})
2803
+ /* @__PURE__ */ i(Mi, {}),
2804
+ /* @__PURE__ */ i(ni, {})
2807
2805
  ] }),
2808
- /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: Fe["rp-toolbar-middle"], children: /* @__PURE__ */ i(Mi, {}) }),
2809
- /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: Fe["rp-toolbar-end"], children: /* @__PURE__ */ i(Di, {}) })
2806
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: Fe["rp-toolbar-middle"], children: /* @__PURE__ */ i(ki, {}) }),
2807
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: Fe["rp-toolbar-end"], children: /* @__PURE__ */ i(Oi, {}) })
2810
2808
  ] }) }),
2811
- n && a ? /* @__PURE__ */ i($i, { percentage: a }) : null
2809
+ n && a ? /* @__PURE__ */ i(Hi, { percentage: a }) : null
2812
2810
  ] });
2813
2811
  }), vt = {
2814
2812
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_1sdl6_1",
@@ -2821,7 +2819,7 @@ const ye = {
2821
2819
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
2822
2820
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2823
2821
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2824
- }, Vi = (t) => {
2822
+ }, Gi = (t) => {
2825
2823
  const { thumbnailSrc: e, pageNumber: n, isFocused: o, viewport: r } = t, { goToPage: a } = re(), c = F(() => o ? ke["rp-thumbnail-active"] : "", [o]), s = F(() => ({
2826
2824
  width: Math.round(r.width),
2827
2825
  height: Math.round(r.height)
@@ -2861,10 +2859,10 @@ const ye = {
2861
2859
  }, cn = {
2862
2860
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
2863
2861
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
2864
- }, Ui = 16, qi = (t, e) => {
2862
+ }, Vi = 16, Ui = (t, e) => {
2865
2863
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
2866
- t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Ui);
2867
- }, Zi = $e((t, e) => {
2864
+ t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Vi);
2865
+ }, qi = $e((t, e) => {
2868
2866
  const { show: n } = t, { focusedPage: o, totalPages: r } = re(), { thumbnailPages: a, addPage: c, thumbnailLength: s, addToPage: d } = Sn(), u = W(null), p = W(1);
2869
2867
  ln(e, () => u.current);
2870
2868
  const f = F(() => Object.values(a), [a]), h = L(() => {
@@ -2872,11 +2870,11 @@ const ye = {
2872
2870
  g <= r && c(g);
2873
2871
  }, [c, r, s]);
2874
2872
  return A(() => {
2875
- o > s ? d(o) : n && p.current !== o && (qi(u.current, o), p.current = o);
2873
+ o > s ? d(o) : n && p.current !== o && (Ui(u.current, o), p.current = o);
2876
2874
  }, [o, s, d, n, f]), vr(u.current, h), /* @__PURE__ */ i("div", { ref: u, className: cn["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: cn["rp-thumbnails"], children: n ? f.map((g, C) => {
2877
2875
  var P, _;
2878
2876
  return /* @__PURE__ */ i(
2879
- Vi,
2877
+ Gi,
2880
2878
  {
2881
2879
  isFocused: o === ((P = g.page) == null ? void 0 : P.pageNumber),
2882
2880
  pageNumber: (_ = g.page) == null ? void 0 : _.pageNumber,
@@ -2887,10 +2885,10 @@ const ye = {
2887
2885
  C
2888
2886
  );
2889
2887
  }) : null }) });
2890
- }), Bi = () => {
2888
+ }), Zi = () => {
2891
2889
  const { thumbnailIcon: t } = ce();
2892
2890
  return t || /* @__PURE__ */ i(gr, {});
2893
- }, ji = () => {
2891
+ }, Bi = () => {
2894
2892
  const { active: t, setActive: e } = Sn(), [n, o] = $(200), r = W(null), { thumbnailTool: a, sidebarEnable: c } = fe(), { localeMessages: s } = ie(), d = L(() => {
2895
2893
  e((p) => !p);
2896
2894
  }, []), u = F(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: d, active: t }) : a ? /* @__PURE__ */ i(Z, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
@@ -2899,7 +2897,7 @@ const ye = {
2899
2897
  onClick: d,
2900
2898
  active: t,
2901
2899
  "aria-label": s == null ? void 0 : s.thumbnailTooltip,
2902
- children: /* @__PURE__ */ i(Bi, {})
2900
+ children: /* @__PURE__ */ i(Zi, {})
2903
2901
  }
2904
2902
  ) }) : null, [a, t, d, s]);
2905
2903
  return /* @__PURE__ */ i(he, { children: c && /* @__PURE__ */ D(
@@ -2917,7 +2915,7 @@ const ye = {
2917
2915
  hidden: !t,
2918
2916
  className: vt["rp-thumbnails-wrapper"],
2919
2917
  children: [
2920
- /* @__PURE__ */ i(Zi, { show: t, ref: r }),
2918
+ /* @__PURE__ */ i(qi, { show: t, ref: r }),
2921
2919
  /* @__PURE__ */ i(_r, { onWidthChange: o, thumbnailRef: r })
2922
2920
  ]
2923
2921
  }
@@ -2933,7 +2931,7 @@ const ye = {
2933
2931
  "rp-loader": "_rp-loader_bfglg_52",
2934
2932
  "rp-theme-variables": "_rp-theme-variables_bfglg_56",
2935
2933
  "rp-dark-mode": "_rp-dark-mode_bfglg_161"
2936
- }, Ki = $e(
2934
+ }, ji = $e(
2937
2935
  (t, e) => {
2938
2936
  const { children: n, toolbarRef: o, style: r, className: a } = t, { customVariables: c, customDarkVariables: s } = yr(), { darkMode: d } = ar();
2939
2937
  return /* @__PURE__ */ i(
@@ -2956,7 +2954,7 @@ const ye = {
2956
2954
  }
2957
2955
  );
2958
2956
  }
2959
- ), Gs = $e((t, e) => {
2957
+ ), Hs = $e((t, e) => {
2960
2958
  const {
2961
2959
  children: n,
2962
2960
  slots: o,
@@ -2970,12 +2968,12 @@ const ye = {
2970
2968
  } = t, [f, h] = $(null), { setContainer: g, setContentRef: C } = me(), { loading: P } = X(), { LoaderImageComponent: _ } = mn();
2971
2969
  return A(() => (d && d(), () => {
2972
2970
  u && u();
2973
- }), [d, u]), /* @__PURE__ */ i(Ki, { toolbarRef: f, ref: e, children: /* @__PURE__ */ i(Sr, { mobileWidth: s, onLayoutWidthChange: p, children: /* @__PURE__ */ i(wr, { slots: o, children: /* @__PURE__ */ i(br, { icons: r, children: /* @__PURE__ */ D(Cr, { getContainerRef: g, style: a, className: c, children: [
2971
+ }), [d, u]), /* @__PURE__ */ i(ji, { toolbarRef: f, ref: e, children: /* @__PURE__ */ i(Sr, { mobileWidth: s, onLayoutWidthChange: p, children: /* @__PURE__ */ i(wr, { slots: o, children: /* @__PURE__ */ i(br, { icons: r, children: /* @__PURE__ */ D(Cr, { getContainerRef: g, style: a, className: c, children: [
2974
2972
  /* @__PURE__ */ D(Tr, { children: [
2975
2973
  /* @__PURE__ */ D("div", { className: _e["rp-layout"], children: [
2976
- /* @__PURE__ */ i(Gi, { ref: h }),
2974
+ /* @__PURE__ */ i($i, { ref: h }),
2977
2975
  /* @__PURE__ */ D("div", { className: _e["rp-content"], children: [
2978
- /* @__PURE__ */ i("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ i(ji, {}) }),
2976
+ /* @__PURE__ */ i("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ i(Bi, {}) }),
2979
2977
  /* @__PURE__ */ i("div", { ref: C, className: _e["rp-pages"], children: n })
2980
2978
  ] })
2981
2979
  ] }),
@@ -3012,49 +3010,49 @@ const ye = {
3012
3010
  ] }) }) }) }) });
3013
3011
  });
3014
3012
  export {
3015
- Eo as A,
3013
+ No as A,
3016
3014
  an as B,
3017
- yo as C,
3018
- Yo as D,
3019
- Wi as E,
3015
+ So as C,
3016
+ Xo as D,
3017
+ Mi as E,
3020
3018
  Zn as F,
3021
- Gi as G,
3022
- Vi as H,
3023
- Zi as I,
3024
- ji as J,
3025
- Ki as K,
3026
- $i as L,
3027
- Ei as M,
3028
- Oi as O,
3029
- As as P,
3030
- Ws as R,
3031
- Ms as S,
3032
- ks as T,
3033
- Mi as Z,
3034
- Fs as a,
3035
- Gs as b,
3019
+ $i as G,
3020
+ Gi as H,
3021
+ qi as I,
3022
+ Bi as J,
3023
+ ji as K,
3024
+ Hi as L,
3025
+ Ni as M,
3026
+ Ei as O,
3027
+ Ds as P,
3028
+ ks as R,
3029
+ Fs as S,
3030
+ As as T,
3031
+ ki as Z,
3032
+ zs as a,
3033
+ Hs as b,
3036
3034
  Vn as c,
3037
3035
  tt as d,
3038
3036
  It as e,
3039
3037
  bn as f,
3040
- Co as g,
3038
+ bo as g,
3041
3039
  Cn as h,
3042
- To as i,
3040
+ Co as i,
3043
3041
  Tn as j,
3044
- Po as k,
3042
+ To as k,
3045
3043
  Pn as l,
3046
3044
  Sn as m,
3047
- So as n,
3045
+ Po as n,
3048
3046
  yn as o,
3049
- Lo as p,
3050
- Oo as q,
3047
+ Io as p,
3048
+ Eo as q,
3051
3049
  Lt as r,
3052
- jo as s,
3053
- Jo as t,
3050
+ Bo as s,
3051
+ Yo as t,
3054
3052
  re as u,
3055
- Qo as v,
3056
- ri as w,
3057
- bi as x,
3053
+ Jo as v,
3054
+ ni as w,
3055
+ wi as x,
3058
3056
  Kn as y,
3059
- Di as z
3057
+ Oi as z
3060
3058
  };