@pdf-viewer/react 1.1.1-rc.0 → 1.1.1

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 (54) hide show
  1. package/dist/{RPDefaultLayout-f83c30aa.js → RPDefaultLayout-5e5126fd.js} +3 -3
  2. package/dist/components/RPConfig.js +54 -54
  3. package/dist/components/RPController.js +1 -1
  4. package/dist/components/RPPages.js +1 -1
  5. package/dist/components/RPProvider.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/MenuItem.js +1 -1
  13. package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
  14. package/dist/components/layout/toolbar/MostPageTool.js +2 -2
  15. package/dist/components/layout/toolbar/OtherTool.js +2 -2
  16. package/dist/components/layout/toolbar/Paginate.js +1 -1
  17. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  19. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  20. package/dist/components/layout/toolbar/RotateTool.js +1 -1
  21. package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
  22. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  23. package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
  24. package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
  25. package/dist/components/layout/toolbar/ZoomTool.js +2 -2
  26. package/dist/components/page/AnnotationLayer.js +1 -1
  27. package/dist/components/page/CanvasLayer.js +1 -1
  28. package/dist/components/page/DualPage.js +1 -1
  29. package/dist/components/page/RPPage.js +1 -1
  30. package/dist/components/page/SinglePage.js +1 -1
  31. package/dist/components/page/TextLayer.js +1 -1
  32. package/dist/components/ui/Checkbox.js +1 -1
  33. package/dist/components/ui/DropDown.js +1 -1
  34. package/dist/components/ui/LoadingIndicator.js +1 -1
  35. package/dist/components/ui/RPTooltip.js +410 -197
  36. package/dist/contexts/PaginationContext.js +1 -1
  37. package/dist/contexts/PrintContext.js +1 -1
  38. package/dist/contexts/SearchContext.js +1 -1
  39. package/dist/contexts/ThumbnailsContext.js +1 -1
  40. package/dist/floating-ui.react-dom-88a86594.js +1447 -0
  41. package/dist/{index-3dff3fa8.js → index-48ca3f30.js} +4 -4
  42. package/dist/index-4ba3ab9a.js +1877 -0
  43. package/dist/main.js +1 -1
  44. package/dist/utils/hooks/useFileDownload.js +1 -1
  45. package/dist/utils/hooks/useLicense.js +1 -1
  46. package/dist/utils/hooks/usePaginate.js +1 -1
  47. package/dist/utils/hooks/usePrint.js +1 -1
  48. package/dist/utils/hooks/useScrollToPage.js +1 -1
  49. package/dist/utils/hooks/useSearch.js +1 -1
  50. package/dist/utils/hooks/useThumbnail.js +1 -1
  51. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  52. package/package.json +1 -1
  53. package/dist/index-1db49c1a.js +0 -1664
  54. package/dist/index-4f17fe4d.js +0 -1657
@@ -55,9 +55,9 @@ import { FileUploadTool as nn } from "./components/layout/toolbar/FileUploadTool
55
55
  import { DarkModeTool as Pr } from "./components/layout/toolbar/DarkModeTool.js";
56
56
  import { ThreeDotIcon as Sr } from "./components/icons/ThreeDotIcon.js";
57
57
  import { UIDropDown as vt } from "./components/ui/DropDown.js";
58
- import { c as Ir, a as _t, P as Ae, b as Ee, d as wt, i as yr, k as xr, u as Rr } from "./index-3dff3fa8.js";
59
- import { D as Lr, u as Qe } from "./index-4f17fe4d.js";
60
- import { a as Nr, h as Mr, u as Er, F as Or, b as Dr, G as Ge } from "./index-1db49c1a.js";
58
+ import { c as Ir, u as _t, P as Ae, b as Ee, d as wt, i as yr, k as xr, a as Rr } from "./index-48ca3f30.js";
59
+ import { D as Lr, d as Qe } from "./floating-ui.react-dom-88a86594.js";
60
+ import { a as Nr, h as Mr, u as Er, F as Or, b as Dr, G as Ge } from "./index-4ba3ab9a.js";
61
61
  import { CloseIcon as rn } from "./components/icons/CloseIcon.js";
62
62
  import { PropertyItem as Ar } from "./components/layout/toolbar/PropertyItem.js";
63
63
  import { useOtherToolContext as zr, OtherToolProvider as Fr } from "./contexts/OtherToolContext.js";
@@ -66,7 +66,7 @@ function qe(t, e) {
66
66
  } = t;
67
67
  if (h) {
68
68
  if (r) {
69
- if (e.queryHash !== Se(h, e.options))
69
+ if (e.queryHash !== Fe(h, e.options))
70
70
  return !1;
71
71
  } else if (!ce(e.queryKey, h))
72
72
  return !1;
@@ -91,13 +91,13 @@ function Ee(t, e) {
91
91
  }
92
92
  return !(r && e.state.status !== r || n && !n(e));
93
93
  }
94
- function Se(t, e) {
94
+ function Fe(t, e) {
95
95
  return ((e == null ? void 0 : e.queryKeyHashFn) || he)(t);
96
96
  }
97
97
  function he(t) {
98
98
  return JSON.stringify(
99
99
  t,
100
- (e, s) => Fe(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
100
+ (e, s) => Se(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
101
101
  );
102
102
  }
103
103
  function ce(t, e) {
@@ -107,7 +107,7 @@ function Oe(t, e) {
107
107
  if (t === e)
108
108
  return t;
109
109
  const s = De(t) && De(e);
110
- if (s || Fe(t) && Fe(e)) {
110
+ if (s || Se(t) && Se(e)) {
111
111
  const r = s ? t : Object.keys(t), n = r.length, u = s ? e : Object.keys(e), h = u.length, a = s ? [] : {};
112
112
  let f = 0;
113
113
  for (let w = 0; w < h; w++) {
@@ -121,7 +121,7 @@ function Oe(t, e) {
121
121
  function De(t) {
122
122
  return Array.isArray(t) && t.length === Object.keys(t).length;
123
123
  }
124
- function Fe(t) {
124
+ function Se(t) {
125
125
  if (!Ae(t))
126
126
  return !1;
127
127
  const e = t.constructor;
@@ -303,7 +303,7 @@ function Ve(t) {
303
303
  }).then(() => {
304
304
  var c;
305
305
  n = void 0, r || (c = t.onContinue) == null || c.call(t);
306
- }), F = () => {
306
+ }), S = () => {
307
307
  if (r)
308
308
  return;
309
309
  let c;
@@ -323,7 +323,7 @@ function Ve(t) {
323
323
  return;
324
324
  }
325
325
  s++, (k = t.onFail) == null || k.call(t, s, E), tt(D).then(() => w() ? void 0 : q()).then(() => {
326
- e ? y(E) : F();
326
+ e ? y(E) : S();
327
327
  });
328
328
  });
329
329
  };
@@ -334,7 +334,7 @@ function Ve(t) {
334
334
  cancelRetry: a,
335
335
  continueRetry: f,
336
336
  canStart: m,
337
- start: () => (m() ? F() : q().then(F), u)
337
+ start: () => (m() ? S() : q().then(S), u)
338
338
  };
339
339
  }
340
340
  function ht() {
@@ -548,7 +548,7 @@ var C = ht(), J, je, $e = (je = class {
548
548
  this
549
549
  ), o(this, re, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((w = h.fetchOptions) == null ? void 0 : w.meta)) && P(this, R, x).call(this, { type: "fetch", meta: (m = h.fetchOptions) == null ? void 0 : m.meta });
550
550
  const a = (d) => {
551
- var y, q, F, c;
551
+ var y, q, S, c;
552
552
  Pe(d) && d.silent || P(this, R, x).call(this, {
553
553
  type: "error",
554
554
  error: d
@@ -556,8 +556,8 @@ var C = ht(), J, je, $e = (je = class {
556
556
  y,
557
557
  d,
558
558
  this
559
- ), (c = (F = i(this, A).config).onSettled) == null || c.call(
560
- F,
559
+ ), (c = (S = i(this, A).config).onSettled) == null || c.call(
560
+ S,
561
561
  this.state.data,
562
562
  d,
563
563
  this
@@ -568,7 +568,7 @@ var C = ht(), J, je, $e = (je = class {
568
568
  fn: h.fetchFn,
569
569
  abort: r.abort.bind(r),
570
570
  onSuccess: (d) => {
571
- var y, q, F, c;
571
+ var y, q, S, c;
572
572
  if (d === void 0) {
573
573
  process.env.NODE_ENV !== "production" && console.error(
574
574
  `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
@@ -581,8 +581,8 @@ var C = ht(), J, je, $e = (je = class {
581
581
  a(p);
582
582
  return;
583
583
  }
584
- (q = (y = i(this, A).config).onSuccess) == null || q.call(y, d, this), (c = (F = i(this, A).config).onSettled) == null || c.call(
585
- F,
584
+ (q = (y = i(this, A).config).onSuccess) == null || q.call(y, d, this), (c = (S = i(this, A).config).onSettled) == null || c.call(
585
+ S,
586
586
  d,
587
587
  this.state.error,
588
588
  this
@@ -709,7 +709,7 @@ var U, Ue, ft = (Ue = class extends ge {
709
709
  this.config = e, o(this, U, /* @__PURE__ */ new Map());
710
710
  }
711
711
  build(e, s, r) {
712
- const n = s.queryKey, u = s.queryHash ?? Se(n, s);
712
+ const n = s.queryKey, u = s.queryHash ?? Fe(n, s);
713
713
  let h = this.get(u);
714
714
  return h || (h = new ct({
715
715
  client: e,
@@ -774,14 +774,14 @@ var U, Ue, ft = (Ue = class extends ge {
774
774
  });
775
775
  });
776
776
  }
777
- }, U = new WeakMap(), Ue), K, S, Y, I, L, Ke, yt = (Ke = class extends $e {
777
+ }, U = new WeakMap(), Ue), K, F, Y, I, L, Ke, yt = (Ke = class extends $e {
778
778
  constructor(e) {
779
779
  super();
780
780
  l(this, I);
781
781
  l(this, K, void 0);
782
- l(this, S, void 0);
782
+ l(this, F, void 0);
783
783
  l(this, Y, void 0);
784
- this.mutationId = e.mutationId, o(this, S, e.mutationCache), o(this, K, []), this.state = e.state || pt(), this.setOptions(e.options), this.scheduleGc();
784
+ this.mutationId = e.mutationId, o(this, F, e.mutationCache), o(this, K, []), this.state = e.state || pt(), this.setOptions(e.options), this.scheduleGc();
785
785
  }
786
786
  setOptions(e) {
787
787
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -790,21 +790,21 @@ var U, Ue, ft = (Ue = class extends ge {
790
790
  return this.options.meta;
791
791
  }
792
792
  addObserver(e) {
793
- i(this, K).includes(e) || (i(this, K).push(e), this.clearGcTimeout(), i(this, S).notify({
793
+ i(this, K).includes(e) || (i(this, K).push(e), this.clearGcTimeout(), i(this, F).notify({
794
794
  type: "observerAdded",
795
795
  mutation: this,
796
796
  observer: e
797
797
  }));
798
798
  }
799
799
  removeObserver(e) {
800
- o(this, K, i(this, K).filter((s) => s !== e)), this.scheduleGc(), i(this, S).notify({
800
+ o(this, K, i(this, K).filter((s) => s !== e)), this.scheduleGc(), i(this, F).notify({
801
801
  type: "observerRemoved",
802
802
  mutation: this,
803
803
  observer: e
804
804
  });
805
805
  }
806
806
  optionalRemove() {
807
- i(this, K).length || (this.state.status === "pending" ? this.scheduleGc() : i(this, S).remove(this));
807
+ i(this, K).length || (this.state.status === "pending" ? this.scheduleGc() : i(this, F).remove(this));
808
808
  }
809
809
  continue() {
810
810
  var e;
@@ -812,7 +812,7 @@ var U, Ue, ft = (Ue = class extends ge {
812
812
  this.execute(this.state.variables);
813
813
  }
814
814
  async execute(e) {
815
- var n, u, h, a, f, w, m, d, y, q, F, c, p, E, M, g, D, j, k, fe;
815
+ var n, u, h, a, f, w, m, d, y, q, S, c, p, E, M, g, D, j, k, fe;
816
816
  o(this, Y, Ve({
817
817
  fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
818
818
  onFail: (b, z) => {
@@ -827,12 +827,12 @@ var U, Ue, ft = (Ue = class extends ge {
827
827
  retry: this.options.retry ?? 0,
828
828
  retryDelay: this.options.retryDelay,
829
829
  networkMode: this.options.networkMode,
830
- canRun: () => i(this, S).canRun(this)
830
+ canRun: () => i(this, F).canRun(this)
831
831
  }));
832
832
  const s = this.state.status === "pending", r = !i(this, Y).canStart();
833
833
  try {
834
834
  if (!s) {
835
- P(this, I, L).call(this, { type: "pending", variables: e, isPaused: r }), await ((u = (n = i(this, S).config).onMutate) == null ? void 0 : u.call(
835
+ P(this, I, L).call(this, { type: "pending", variables: e, isPaused: r }), await ((u = (n = i(this, F).config).onMutate) == null ? void 0 : u.call(
836
836
  n,
837
837
  e,
838
838
  this
@@ -846,23 +846,23 @@ var U, Ue, ft = (Ue = class extends ge {
846
846
  });
847
847
  }
848
848
  const b = await i(this, Y).start();
849
- return await ((w = (f = i(this, S).config).onSuccess) == null ? void 0 : w.call(
849
+ return await ((w = (f = i(this, F).config).onSuccess) == null ? void 0 : w.call(
850
850
  f,
851
851
  b,
852
852
  e,
853
853
  this.state.context,
854
854
  this
855
- )), await ((d = (m = this.options).onSuccess) == null ? void 0 : d.call(m, b, e, this.state.context)), await ((q = (y = i(this, S).config).onSettled) == null ? void 0 : q.call(
855
+ )), await ((d = (m = this.options).onSuccess) == null ? void 0 : d.call(m, b, e, this.state.context)), await ((q = (y = i(this, F).config).onSettled) == null ? void 0 : q.call(
856
856
  y,
857
857
  b,
858
858
  null,
859
859
  this.state.variables,
860
860
  this.state.context,
861
861
  this
862
- )), await ((c = (F = this.options).onSettled) == null ? void 0 : c.call(F, b, null, e, this.state.context)), P(this, I, L).call(this, { type: "success", data: b }), b;
862
+ )), await ((c = (S = this.options).onSettled) == null ? void 0 : c.call(S, b, null, e, this.state.context)), P(this, I, L).call(this, { type: "success", data: b }), b;
863
863
  } catch (b) {
864
864
  try {
865
- throw await ((E = (p = i(this, S).config).onError) == null ? void 0 : E.call(
865
+ throw await ((E = (p = i(this, F).config).onError) == null ? void 0 : E.call(
866
866
  p,
867
867
  b,
868
868
  e,
@@ -873,7 +873,7 @@ var U, Ue, ft = (Ue = class extends ge {
873
873
  b,
874
874
  e,
875
875
  this.state.context
876
- )), await ((j = (D = i(this, S).config).onSettled) == null ? void 0 : j.call(
876
+ )), await ((j = (D = i(this, F).config).onSettled) == null ? void 0 : j.call(
877
877
  D,
878
878
  void 0,
879
879
  b,
@@ -891,10 +891,10 @@ var U, Ue, ft = (Ue = class extends ge {
891
891
  P(this, I, L).call(this, { type: "error", error: b });
892
892
  }
893
893
  } finally {
894
- i(this, S).runNext(this);
894
+ i(this, F).runNext(this);
895
895
  }
896
896
  }
897
- }, K = new WeakMap(), S = new WeakMap(), Y = new WeakMap(), I = new WeakSet(), L = function(e) {
897
+ }, K = new WeakMap(), F = new WeakMap(), Y = new WeakMap(), I = new WeakSet(), L = function(e) {
898
898
  const s = (r) => {
899
899
  switch (e.type) {
900
900
  case "failed":
@@ -951,7 +951,7 @@ var U, Ue, ft = (Ue = class extends ge {
951
951
  this.state = s(this.state), C.batch(() => {
952
952
  i(this, K).forEach((r) => {
953
953
  r.onMutationUpdate(e);
954
- }), i(this, S).notify({
954
+ }), i(this, F).notify({
955
955
  mutation: this,
956
956
  type: "updated",
957
957
  action: e
@@ -1073,8 +1073,8 @@ function pe(t) {
1073
1073
  function Me(t) {
1074
1074
  return {
1075
1075
  onFetch: (e, s) => {
1076
- var m, d, y, q, F;
1077
- const r = e.options, n = (y = (d = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : d.fetchMore) == null ? void 0 : y.direction, u = ((q = e.state.data) == null ? void 0 : q.pages) || [], h = ((F = e.state.data) == null ? void 0 : F.pageParams) || [];
1076
+ var m, d, y, q, S;
1077
+ const r = e.options, n = (y = (d = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : d.fetchMore) == null ? void 0 : y.direction, u = ((q = e.state.data) == null ? void 0 : q.pages) || [], h = ((S = e.state.data) == null ? void 0 : S.pageParams) || [];
1078
1078
  let a = { pages: [], pageParams: [] }, f = 0;
1079
1079
  const w = async () => {
1080
1080
  let c = !1;
@@ -1228,13 +1228,16 @@ var v, _, V, ie, ne, $, ae, ue, xe, gt = (xe = class {
1228
1228
  });
1229
1229
  }
1230
1230
  resetQueries(t, e) {
1231
- const s = i(this, v), r = {
1232
- type: "active",
1233
- ...t
1234
- };
1235
- return C.batch(() => (s.findAll(t).forEach((n) => {
1236
- n.reset();
1237
- }), this.refetchQueries(r, e)));
1231
+ const s = i(this, v);
1232
+ return C.batch(() => (s.findAll(t).forEach((r) => {
1233
+ r.reset();
1234
+ }), this.refetchQueries(
1235
+ {
1236
+ type: "active",
1237
+ ...t
1238
+ },
1239
+ e
1240
+ )));
1238
1241
  }
1239
1242
  cancelQueries(t, e = {}) {
1240
1243
  const s = { revert: !0, ...e }, r = C.batch(
@@ -1243,17 +1246,15 @@ var v, _, V, ie, ne, $, ae, ue, xe, gt = (xe = class {
1243
1246
  return Promise.all(r).then(Q).catch(Q);
1244
1247
  }
1245
1248
  invalidateQueries(t, e = {}) {
1246
- return C.batch(() => {
1247
- if (i(this, v).findAll(t).forEach((r) => {
1248
- r.invalidate();
1249
- }), (t == null ? void 0 : t.refetchType) === "none")
1250
- return Promise.resolve();
1251
- const s = {
1249
+ return C.batch(() => (i(this, v).findAll(t).forEach((s) => {
1250
+ s.invalidate();
1251
+ }), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
1252
+ {
1252
1253
  ...t,
1253
1254
  type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
1254
- };
1255
- return this.refetchQueries(s, e);
1256
- });
1255
+ },
1256
+ e
1257
+ )));
1257
1258
  }
1258
1259
  refetchQueries(t, e = {}) {
1259
1260
  const s = {
@@ -1321,10 +1322,9 @@ var v, _, V, ie, ne, $, ae, ue, xe, gt = (xe = class {
1321
1322
  });
1322
1323
  }
1323
1324
  getMutationDefaults(t) {
1324
- const e = [...i(this, ne).values()];
1325
- let s = {};
1325
+ const e = [...i(this, ne).values()], s = {};
1326
1326
  return e.forEach((r) => {
1327
- ce(t, r.mutationKey) && (s = { ...s, ...r.defaultOptions });
1327
+ ce(t, r.mutationKey) && Object.assign(s, r.defaultOptions);
1328
1328
  }), s;
1329
1329
  }
1330
1330
  defaultQueryOptions(t) {
@@ -1336,7 +1336,7 @@ var v, _, V, ie, ne, $, ae, ue, xe, gt = (xe = class {
1336
1336
  ...t,
1337
1337
  _defaulted: !0
1338
1338
  };
1339
- return e.queryHash || (e.queryHash = Se(
1339
+ return e.queryHash || (e.queryHash = Fe(
1340
1340
  e.queryKey,
1341
1341
  e
1342
1342
  )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === me && (e.enabled = !1), e;
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { useState as e } from "react";
3
- import { P as M, S as R, T as C, a as g } from "../RPDefaultLayout-f83c30aa.js";
3
+ import { P as M, S as R, T as C, a as g } from "../RPDefaultLayout-5e5126fd.js";
4
4
  import { DarkModeProvider as L } from "../contexts/DarkModeContext.js";
5
5
  import { ScrollMode as T, SelectionMode as V } from "../utils/types.js";
6
6
  import { RotateProvider as x } from "../contexts/RotationContext.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { R as F } from "../RPDefaultLayout-f83c30aa.js";
3
+ import { R as F } from "../RPDefaultLayout-5e5126fd.js";
4
4
  import "../utils/hooks/useWatermark.js";
5
5
  import "../contexts/VirtualScrollContext.js";
6
6
  import "../contexts/RPDocumentContext.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { DocumentProvider as c } from "../contexts/RPDocumentContext.js";
3
3
  import { RPController as d } from "./RPController.js";
4
- import "../RPDefaultLayout-f83c30aa.js";
4
+ import "../RPDefaultLayout-5e5126fd.js";
5
5
  import "./RPConfig.js";
6
6
  import "./RPTheme.js";
7
7
  import "./RPDropFileZone.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { b as y } from "../../RPDefaultLayout-f83c30aa.js";
3
+ import { b as y } from "../../RPDefaultLayout-5e5126fd.js";
4
4
  import "../../Container-982378f8.js";
5
5
  import "../../contexts/ToolbarComponentContext.js";
6
6
  import "../../contexts/LayoutContainerContext.js";
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../icons/Thumbnail.js";
4
4
  import "../../ui/Button.js";
5
- import { G as f } from "../../../RPDefaultLayout-f83c30aa.js";
5
+ import { G as f } from "../../../RPDefaultLayout-5e5126fd.js";
6
6
  import "./RPSplitter.js";
7
7
  import "../../../contexts/ToolbarComponentContext.js";
8
8
  import "../../../contexts/IconContext.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { B as a } from "../../../RPDefaultLayout-f83c30aa.js";
3
+ import { B as a } from "../../../RPDefaultLayout-5e5126fd.js";
4
4
  import "../../../clsx-0c6e471a.js";
5
5
  import "../../icons/LoaderIcon.js";
6
6
  export {
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { E as t } from "../../../RPDefaultLayout-f83c30aa.js";
3
+ import { E as t } from "../../../RPDefaultLayout-5e5126fd.js";
4
4
  import "../../../utils/hooks/useInfiniteScroll.js";
5
5
  export {
6
6
  t as Thumbnails
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { v as C } from "../../../RPDefaultLayout-f83c30aa.js";
3
+ import { v as C } from "../../../RPDefaultLayout-5e5126fd.js";
4
4
  import "../../../contexts/LayoutContainerContext.js";
5
5
  import "../../icons/CloseIcon.js";
6
6
  import "../../../utils/dateFormatter.js";
@@ -3,7 +3,7 @@ import "../../icons/FileDownloadDefaultIcon.js";
3
3
  import "../../../contexts/ToolbarComponentContext.js";
4
4
  import "../../../contexts/IconContext.js";
5
5
  import "../../ui/Button.js";
6
- import { F as d } from "../../../RPDefaultLayout-f83c30aa.js";
6
+ import { F as d } from "../../../RPDefaultLayout-5e5126fd.js";
7
7
  import "./MenuItem.js";
8
8
  import "../../../contexts/ViewportContext.js";
9
9
  import "../../ui/RPTooltip.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { I as o } from "../../../index-1db49c1a.js";
2
+ import { I as o } from "../../../index-4ba3ab9a.js";
3
3
  import { c as n } from "../../../clsx-0c6e471a.js";
4
4
  import '../../../assets/MenuItem.css';const c = {
5
5
  "rp-menu-item": "_rp-menu-item_gqbz3_1"
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { S as a } from "../../../index-1db49c1a.js";
2
+ import { S as a } from "../../../index-4ba3ab9a.js";
3
3
  import '../../../assets/MenuSeparator.css';const e = {
4
4
  "rp-menu-separator": "_rp-menu-separator_17dlz_1"
5
5
  }, p = () => /* @__PURE__ */ r(a, { className: e["rp-menu-separator"] });
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
- import "../../../index-1db49c1a.js";
2
+ import "../../../index-4ba3ab9a.js";
3
3
  import "./MenuItem.js";
4
4
  import "../../../contexts/RPDocumentContext.js";
5
5
  import "react";
6
- import { M as C } from "../../../RPDefaultLayout-f83c30aa.js";
6
+ import { M as C } from "../../../RPDefaultLayout-5e5126fd.js";
7
7
  import "../../../contexts/DarkModeContext.js";
8
8
  import "../../../contexts/RotationContext.js";
9
9
  import "../../../contexts/LayerContext.js";
@@ -3,14 +3,14 @@ import "../../../contexts/LayoutContainerContext.js";
3
3
  import "../../icons/ThreeDotIcon.js";
4
4
  import "../../ui/Button.js";
5
5
  import "../../ui/DropDown.js";
6
- import { O as k } from "../../../RPDefaultLayout-f83c30aa.js";
6
+ import { O as k } from "../../../RPDefaultLayout-5e5126fd.js";
7
7
  import "../../../contexts/OtherToolContext.js";
8
8
  import "./DocumentProperties.js";
9
9
  import "./RotateTool.js";
10
10
  import "./ScrollModeTool.js";
11
11
  import "../../../contexts/ViewportContext.js";
12
12
  import "./FileUploadTool.js";
13
- import "../../../index-1db49c1a.js";
13
+ import "../../../index-4ba3ab9a.js";
14
14
  import "./MenuSeparator.js";
15
15
  import "./FullScreenTool.js";
16
16
  import "../../ui/RPTooltip.js";
@@ -3,7 +3,7 @@ import "react";
3
3
  import "../../icons/ChevronUpIcon.js";
4
4
  import "../../ui/Button.js";
5
5
  import "../../ui/Input.js";
6
- import { t as s } from "../../../RPDefaultLayout-f83c30aa.js";
6
+ import { t as s } from "../../../RPDefaultLayout-5e5126fd.js";
7
7
  import "../../../contexts/IconContext.js";
8
8
  import "../../../contexts/ToolbarComponentContext.js";
9
9
  import "../../../contexts/ViewportContext.js";
@@ -3,7 +3,7 @@ import "../../icons/PrintDefaultIcon.js";
3
3
  import "../../../contexts/ToolbarComponentContext.js";
4
4
  import "../../../contexts/IconContext.js";
5
5
  import "../../ui/Button.js";
6
- import { w as n } from "../../../RPDefaultLayout-f83c30aa.js";
6
+ import { w as n } from "../../../RPDefaultLayout-5e5126fd.js";
7
7
  import "../../../contexts/ViewportContext.js";
8
8
  import "./MenuItem.js";
9
9
  import "../../ui/RPTooltip.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { z as a } from "../../../RPDefaultLayout-f83c30aa.js";
3
+ import { z as a } from "../../../RPDefaultLayout-5e5126fd.js";
4
4
  import "../../../contexts/ToolbarComponentContext.js";
5
5
  import "../../../contexts/ViewportContext.js";
6
6
  export {
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "./FileUploadTool.js";
3
3
  import "./DarkModeTool.js";
4
- import { x } from "../../../RPDefaultLayout-f83c30aa.js";
4
+ import { x } from "../../../RPDefaultLayout-5e5126fd.js";
5
5
  import "./FullScreenTool.js";
6
6
  import "../../../contexts/ViewportContext.js";
7
7
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, Fragment as m, jsxs as t } from "react/jsx-runtime";
2
- import { G as a } from "../../../index-1db49c1a.js";
2
+ import { G as a } from "../../../index-4ba3ab9a.js";
3
3
  import { ClockwiseIcon as n } from "../../icons/ClockwiseIcon.js";
4
4
  import { MenuItem as r } from "./MenuItem.js";
5
5
  import { MenuSeparator as u } from "./MenuSeparator.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, Fragment as u, jsxs as n } from "react/jsx-runtime";
2
- import { G as d } from "../../../index-1db49c1a.js";
2
+ import { G as d } from "../../../index-4ba3ab9a.js";
3
3
  import { MenuSeparator as I } from "./MenuSeparator.js";
4
4
  import { MenuItem as c } from "./MenuItem.js";
5
5
  import { useToolbarComponentContext as f } from "../../../contexts/ToolbarComponentContext.js";
@@ -4,7 +4,7 @@ import "../../icons/SearchIcon.js";
4
4
  import "react";
5
5
  import "../../ui/DropDown.js";
6
6
  import "../../../contexts/LayoutContainerContext.js";
7
- import { y as I } from "../../../RPDefaultLayout-f83c30aa.js";
7
+ import { y as I } from "../../../RPDefaultLayout-5e5126fd.js";
8
8
  import "../../ui/Input.js";
9
9
  import "../../icons/CloseIcon.js";
10
10
  import "../../icons/ChevronUpIcon.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, Fragment as a, jsxs as n } from "react/jsx-runtime";
2
- import { G as d } from "../../../index-1db49c1a.js";
2
+ import { G as d } from "../../../index-4ba3ab9a.js";
3
3
  import { TextSelectionDefaultIcon as p } from "../../icons/TextSelectionDefaultIcon.js";
4
4
  import { HandModeDefaultIcon as u } from "../../icons/HandModeDefaultIcon.js";
5
5
  import { CheckIcon as c } from "../../icons/CheckIcon.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, Fragment as u, jsxs as o } from "react/jsx-runtime";
2
- import { G as p } from "../../../index-1db49c1a.js";
2
+ import { G as p } from "../../../index-4ba3ab9a.js";
3
3
  import { MenuSeparator as d } from "./MenuSeparator.js";
4
4
  import { MenuItem as t } from "./MenuItem.js";
5
5
  import { DualPageIcon as f } from "../../icons/SinglePageIcon.js";
@@ -5,10 +5,10 @@ import "../../icons/ChevronUpIcon.js";
5
5
  import "../../icons/ZoomInIcon.js";
6
6
  import "../../icons/ZoomOutIcon.js";
7
7
  import "../../ui/Button.js";
8
- import { Z as L } from "../../../RPDefaultLayout-f83c30aa.js";
8
+ import { Z as L } from "../../../RPDefaultLayout-5e5126fd.js";
9
9
  import "../../ui/DropDown.js";
10
10
  import "../../../contexts/LayoutContainerContext.js";
11
- import "../../../index-1db49c1a.js";
11
+ import "../../../index-4ba3ab9a.js";
12
12
  import "./MenuItem.js";
13
13
  import "./MenuSeparator.js";
14
14
  import "../../../contexts/ToolbarComponentContext.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../contexts/RPDocumentContext.js";
4
- import { A as D } from "../../RPDefaultLayout-f83c30aa.js";
4
+ import { A as D } from "../../RPDefaultLayout-5e5126fd.js";
5
5
  import "../../contexts/DarkModeContext.js";
6
6
  import "../../utils/types.js";
7
7
  import "../../contexts/RotationContext.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../contexts/RPDocumentContext.js";
4
- import { C as w } from "../../RPDefaultLayout-f83c30aa.js";
4
+ import { C as w } from "../../RPDefaultLayout-5e5126fd.js";
5
5
  import "../../contexts/DarkModeContext.js";
6
6
  import "../../contexts/RotationContext.js";
7
7
  import "../../contexts/LayerContext.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { D as a } from "../../RPDefaultLayout-f83c30aa.js";
3
+ import { D as a } from "../../RPDefaultLayout-5e5126fd.js";
4
4
  import "../../contexts/ScrollStateContext.js";
5
5
  export {
6
6
  a as DualPage
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { q as y } from "../../RPDefaultLayout-f83c30aa.js";
3
+ import { q as y } from "../../RPDefaultLayout-5e5126fd.js";
4
4
  import "../../contexts/RPDocumentContext.js";
5
5
  import "../../contexts/DarkModeContext.js";
6
6
  import "../../contexts/RotationContext.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { s as t } from "../../RPDefaultLayout-f83c30aa.js";
3
+ import { s as t } from "../../RPDefaultLayout-5e5126fd.js";
4
4
  import "../../contexts/ScrollStateContext.js";
5
5
  export {
6
6
  t as SinglePage
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../contexts/RPDocumentContext.js";
4
- import { p as z } from "../../RPDefaultLayout-f83c30aa.js";
4
+ import { p as z } from "../../RPDefaultLayout-5e5126fd.js";
5
5
  import "../../contexts/DarkModeContext.js";
6
6
  import "../../contexts/RotationContext.js";
7
7
  import "../../contexts/LayerContext.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as g, jsx as s } from "react/jsx-runtime";
2
2
  import * as c from "react";
3
- import { c as O, a as j, u as A, P as S, b as _, d as B, e as H } from "../../index-3dff3fa8.js";
3
+ import { c as O, u as j, a as A, P as S, b as _, d as B, e as H } from "../../index-48ca3f30.js";
4
4
  import { CheckIcon as K } from "../icons/CheckIcon.js";
5
5
  import '../../assets/Checkbox.css';function L(e) {
6
6
  const r = c.useRef({ value: e, previous: e });
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as d } from "react/jsx-runtime";
2
- import { R as l, T as c, P as p, C as _ } from "../../index-1db49c1a.js";
2
+ import { R as l, T as c, P as p, C as _ } from "../../index-4ba3ab9a.js";
3
3
  import { c as A } from "../../clsx-0c6e471a.js";
4
4
  import '../../assets/DropDown.css';const F = "_slideDownAndFade_1000s_1", w = "_slideLeftAndFade_1000s_1", m = "_slideUpAndFade_1000s_1", f = "_slideRightAndFade_1000s_1", g = {
5
5
  "rp-dropdown-content": "_rp-dropdown-content_1000s_1",