@pdf-viewer/react 1.7.2-rc.0 → 1.7.2-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RPDefaultLayout-83caa88c.js → RPDefaultLayout-8b0d26d6.js} +167 -168
- package/dist/assets/RPDefaultLayout.css +1 -1
- package/dist/components/RPController.js +1 -1
- package/dist/components/RPPages.js +1 -1
- package/dist/components/RPProvider.js +1 -1
- package/dist/components/layout/LayoutContainer.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +1 -1
- package/dist/components/layout/sidebar/RPSidebar.js +1 -1
- package/dist/components/layout/sidebar/Thumbnail.js +1 -1
- package/dist/components/layout/sidebar/Thumbnails.js +1 -1
- package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
- package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/MostPageTool.js +1 -1
- package/dist/components/layout/toolbar/OtherTool.js +1 -1
- package/dist/components/layout/toolbar/Paginate.js +1 -1
- package/dist/components/layout/toolbar/PrintTool.js +1 -1
- package/dist/components/layout/toolbar/RPToolbar.js +1 -1
- package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
- package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
- package/dist/components/layout/toolbar/SearchTool.js +1 -1
- package/dist/components/layout/toolbar/ZoomTool.js +1 -1
- package/dist/components/page/AnnotationLayer.js +1 -1
- package/dist/components/page/CanvasLayer.js +1 -1
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +1 -1
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextHighlightLayer.js +1 -1
- package/dist/components/page/TextLayer.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/main.js +1 -1
- package/dist/utils/hooks/useFileDownload.js +1 -1
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/useLoadPdf.js +32 -31
- package/dist/utils/hooks/usePaginate.js +1 -1
- package/dist/utils/hooks/usePresentPage.js +1 -1
- package/dist/utils/hooks/usePrint.js +1 -1
- package/dist/utils/hooks/useScrollToPage.js +1 -1
- package/dist/utils/hooks/useSearch.js +1 -1
- package/dist/utils/hooks/useThumbnail.js +1 -1
- package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
- package/package.json +1 -1
|
@@ -240,7 +240,7 @@ import './assets/RPDefaultLayout.css';const wn = () => {
|
|
|
240
240
|
}), ie = () => {
|
|
241
241
|
const t = Je(_n);
|
|
242
242
|
return typeof (t == null ? void 0 : t.focusedPage) > "u" && Zr.error("Please use this hooks inside children component of RPProvider"), t;
|
|
243
|
-
},
|
|
243
|
+
}, ks = ({ children: t }) => {
|
|
244
244
|
const { pdf: e } = Q(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: l, nextPage: c, prevPage: d } = To();
|
|
245
245
|
return W(() => {
|
|
246
246
|
e != null && e.numPages && (a(e.numPages), r(1));
|
|
@@ -437,7 +437,7 @@ const So = () => {
|
|
|
437
437
|
console.error("Error in setOnError callback:", e);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
}),
|
|
440
|
+
}), Ms = ({ children: t }) => {
|
|
441
441
|
const [e, n] = $(null), [o, r] = $(null), { print: a, cancel: l, progress: c, isComplete: d, isError: p, error: f } = So(), _ = N((P) => {
|
|
442
442
|
P && typeof P == "function" && r(() => P);
|
|
443
443
|
}, []), h = (P) => {
|
|
@@ -560,7 +560,7 @@ const So = () => {
|
|
|
560
560
|
setActive: (t) => {
|
|
561
561
|
},
|
|
562
562
|
active: !1
|
|
563
|
-
}), Pn = () => Je(Cn),
|
|
563
|
+
}), Pn = () => Je(Cn), Hs = ({
|
|
564
564
|
children: t,
|
|
565
565
|
initialThumbnailsVisible: e
|
|
566
566
|
}) => {
|
|
@@ -686,7 +686,7 @@ const So = () => {
|
|
|
686
686
|
currentMatchElement: null,
|
|
687
687
|
setCurrentMatchElement: (t) => {
|
|
688
688
|
}
|
|
689
|
-
}),
|
|
689
|
+
}), $s = ({
|
|
690
690
|
children: t,
|
|
691
691
|
initialSearch: e
|
|
692
692
|
}) => {
|
|
@@ -763,12 +763,11 @@ const So = () => {
|
|
|
763
763
|
(f = c.current) == null || f.cancel();
|
|
764
764
|
};
|
|
765
765
|
}, [a, e, l, d, o, n]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: r });
|
|
766
|
-
}, Lo = "
|
|
767
|
-
"rp-text-layer": "_rp-text-
|
|
766
|
+
}, Lo = "_selecting_usdup_9", he = {
|
|
767
|
+
"rp-text-layer": "_rp-text-layer_usdup_1",
|
|
768
768
|
selecting: Lo,
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}, Eo = (t) => {
|
|
769
|
+
"rp-text-layer-text": "_rp-text-layer-text_usdup_39"
|
|
770
|
+
}, Ro = (t) => {
|
|
772
771
|
const { pageNumber: e } = t, { pages: n } = Q(), o = H(null), { matches: r, currentMatch: a, setCurrentMatchElement: l } = It(), [c, d] = $(
|
|
773
772
|
[]
|
|
774
773
|
), p = H(), f = H(), _ = H([]), h = k(() => r.filter((m) => m.pageIndex === e - 1), [r, e]), v = N(
|
|
@@ -920,11 +919,11 @@ const So = () => {
|
|
|
920
919
|
onMouseUp: u
|
|
921
920
|
}
|
|
922
921
|
);
|
|
923
|
-
},
|
|
922
|
+
}, Eo = {
|
|
924
923
|
"rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
|
|
925
924
|
};
|
|
926
|
-
let
|
|
927
|
-
const
|
|
925
|
+
let No = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
|
|
926
|
+
const Oo = (t) => {
|
|
928
927
|
const { pageNumber: e } = t, n = H(null), { pages: o, pdf: r } = Q(), a = H(), [l, c] = $(), { setFocusedPage: d, goToPage: p } = ie(), { scrollMode: f } = Re(), { print: _ } = tt(), { download: h } = $n(), v = k(() => o.get(e), [o, e]), w = k(() => v == null ? void 0 : v.page.getViewport(), [v]);
|
|
929
928
|
W(() => {
|
|
930
929
|
a.current && (a.current.div.replaceChildren(), a.current = void 0);
|
|
@@ -987,7 +986,7 @@ const Do = (t) => {
|
|
|
987
986
|
div: n.current,
|
|
988
987
|
viewport: P.clone({ dontFlip: !0 }),
|
|
989
988
|
page: v.page,
|
|
990
|
-
imageResourcesPath:
|
|
989
|
+
imageResourcesPath: No,
|
|
991
990
|
renderForms: !0,
|
|
992
991
|
linkService: new Rr(),
|
|
993
992
|
downloadManager: null,
|
|
@@ -1006,13 +1005,13 @@ const Do = (t) => {
|
|
|
1006
1005
|
{
|
|
1007
1006
|
"data-rp": `page-${e}-annotationLayer`,
|
|
1008
1007
|
style: { width: `${w == null ? void 0 : w.width}px`, height: `${w == null ? void 0 : w.height}px` },
|
|
1009
|
-
className:
|
|
1008
|
+
className: Eo["rp-annotation-layer"],
|
|
1010
1009
|
ref: n
|
|
1011
1010
|
}
|
|
1012
1011
|
);
|
|
1013
|
-
},
|
|
1012
|
+
}, Do = {
|
|
1014
1013
|
"rp-text-highlight": "_rp-text-highlight_jdkf8_1"
|
|
1015
|
-
},
|
|
1014
|
+
}, zo = ({ pageNumber: t, viewport: e }) => {
|
|
1016
1015
|
const [n, o] = $(), { pages: r } = Q(), { highlightKeywords: a } = pr(), l = !0, c = H(null), [d, p] = $(null), [f, _] = $([]);
|
|
1017
1016
|
W(() => {
|
|
1018
1017
|
c.current && p(c.current.parentElement);
|
|
@@ -1170,7 +1169,7 @@ const Do = (t) => {
|
|
|
1170
1169
|
}, [l, a, t, n, e]), /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i("div", { ref: c, "data-rp": `page-${t}-textHighlightLayer`, children: f.map((u, m) => /* @__PURE__ */ i(
|
|
1171
1170
|
"div",
|
|
1172
1171
|
{
|
|
1173
|
-
className:
|
|
1172
|
+
className: Do["rp-text-highlight"],
|
|
1174
1173
|
style: {
|
|
1175
1174
|
top: `${u.top}%`,
|
|
1176
1175
|
left: `${u.left}%`,
|
|
@@ -1232,9 +1231,9 @@ const Do = (t) => {
|
|
|
1232
1231
|
children: [
|
|
1233
1232
|
/* @__PURE__ */ i(xo, { onLoading: P, onLoaded: S, pageNumber: n }),
|
|
1234
1233
|
f && /* @__PURE__ */ i("div", { className: lt["rp-loader-wrapper"], children: /* @__PURE__ */ i(Ct, {}) }),
|
|
1235
|
-
c && /* @__PURE__ */ i(
|
|
1236
|
-
/* @__PURE__ */ i(
|
|
1237
|
-
/* @__PURE__ */ i(
|
|
1234
|
+
c && /* @__PURE__ */ i(Ro, { pageNumber: n }),
|
|
1235
|
+
/* @__PURE__ */ i(zo, { pageNumber: n, viewport: v }),
|
|
1236
|
+
/* @__PURE__ */ i(Oo, { pageNumber: n })
|
|
1238
1237
|
]
|
|
1239
1238
|
}
|
|
1240
1239
|
)
|
|
@@ -1251,25 +1250,25 @@ function wt(t, e) {
|
|
|
1251
1250
|
return n.__proto__ = o, n;
|
|
1252
1251
|
}, wt(t, e);
|
|
1253
1252
|
}
|
|
1254
|
-
function
|
|
1253
|
+
function Ao(t, e) {
|
|
1255
1254
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, wt(t, e);
|
|
1256
1255
|
}
|
|
1257
1256
|
var Vt = Number.isNaN || function(e) {
|
|
1258
1257
|
return typeof e == "number" && e !== e;
|
|
1259
1258
|
};
|
|
1260
|
-
function
|
|
1259
|
+
function Fo(t, e) {
|
|
1261
1260
|
return !!(t === e || Vt(t) && Vt(e));
|
|
1262
1261
|
}
|
|
1263
|
-
function
|
|
1262
|
+
function Wo(t, e) {
|
|
1264
1263
|
if (t.length !== e.length)
|
|
1265
1264
|
return !1;
|
|
1266
1265
|
for (var n = 0; n < t.length; n++)
|
|
1267
|
-
if (!
|
|
1266
|
+
if (!Fo(t[n], e[n]))
|
|
1268
1267
|
return !1;
|
|
1269
1268
|
return !0;
|
|
1270
1269
|
}
|
|
1271
1270
|
function dt(t, e) {
|
|
1272
|
-
e === void 0 && (e =
|
|
1271
|
+
e === void 0 && (e = Wo);
|
|
1273
1272
|
var n, o = [], r, a = !1;
|
|
1274
1273
|
function l() {
|
|
1275
1274
|
for (var c = [], d = 0; d < arguments.length; d++)
|
|
@@ -1290,7 +1289,7 @@ function qt(t, e) {
|
|
|
1290
1289
|
}
|
|
1291
1290
|
return n;
|
|
1292
1291
|
}
|
|
1293
|
-
var
|
|
1292
|
+
var ko = typeof performance == "object" && typeof performance.now == "function", Bt = ko ? function() {
|
|
1294
1293
|
return performance.now();
|
|
1295
1294
|
} : function() {
|
|
1296
1295
|
return Date.now();
|
|
@@ -1298,7 +1297,7 @@ var Mo = typeof performance == "object" && typeof performance.now == "function",
|
|
|
1298
1297
|
function Zt(t) {
|
|
1299
1298
|
cancelAnimationFrame(t.id);
|
|
1300
1299
|
}
|
|
1301
|
-
function
|
|
1300
|
+
function Mo(t, e) {
|
|
1302
1301
|
var n = Bt();
|
|
1303
1302
|
function o() {
|
|
1304
1303
|
Bt() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
|
|
@@ -1309,7 +1308,7 @@ function Ho(t, e) {
|
|
|
1309
1308
|
return r;
|
|
1310
1309
|
}
|
|
1311
1310
|
var ut = -1;
|
|
1312
|
-
function
|
|
1311
|
+
function Ho(t) {
|
|
1313
1312
|
if (t === void 0 && (t = !1), ut === -1 || t) {
|
|
1314
1313
|
var e = document.createElement("div"), n = e.style;
|
|
1315
1314
|
n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), ut = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
|
|
@@ -1326,17 +1325,17 @@ function jt(t) {
|
|
|
1326
1325
|
}
|
|
1327
1326
|
return Oe;
|
|
1328
1327
|
}
|
|
1329
|
-
var
|
|
1328
|
+
var $o = 150, Go = function(e) {
|
|
1330
1329
|
var n = e.columnIndex;
|
|
1331
1330
|
e.data;
|
|
1332
1331
|
var o = e.rowIndex;
|
|
1333
1332
|
return o + ":" + n;
|
|
1334
1333
|
}, Be = null, Ze = null, je = null;
|
|
1335
1334
|
process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Be = /* @__PURE__ */ new WeakSet(), Ze = /* @__PURE__ */ new WeakSet(), je = /* @__PURE__ */ new WeakSet());
|
|
1336
|
-
function
|
|
1335
|
+
function Uo(t) {
|
|
1337
1336
|
var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, l = t.getEstimatedTotalHeight, c = t.getEstimatedTotalWidth, d = t.getOffsetForColumnAndAlignment, p = t.getOffsetForRowAndAlignment, f = t.getRowHeight, _ = t.getRowOffset, h = t.getRowStartIndexForOffset, v = t.getRowStopIndexForStartIndex, w = t.initInstanceProps, T = t.shouldResetStyleCacheOnItemSizeChange, P = t.validateProps;
|
|
1338
1337
|
return e = /* @__PURE__ */ function(S) {
|
|
1339
|
-
|
|
1338
|
+
Ao(u, S);
|
|
1340
1339
|
function u(g) {
|
|
1341
1340
|
var s;
|
|
1342
1341
|
return s = S.call(this, g) || this, s._instanceProps = w(s.props, Ut(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
|
|
@@ -1414,7 +1413,7 @@ function Vo(t) {
|
|
|
1414
1413
|
var b = s.props.outerRef;
|
|
1415
1414
|
s._outerRef = C, typeof b == "function" ? b(C) : b != null && typeof b == "object" && b.hasOwnProperty("current") && (b.current = C);
|
|
1416
1415
|
}, s._resetIsScrollingDebounced = function() {
|
|
1417
|
-
s._resetIsScrollingTimeoutId !== null && Zt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId =
|
|
1416
|
+
s._resetIsScrollingTimeoutId !== null && Zt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = Mo(s._resetIsScrolling, $o);
|
|
1418
1417
|
}, s._resetIsScrolling = function() {
|
|
1419
1418
|
s._resetIsScrollingTimeoutId = null, s.setState({
|
|
1420
1419
|
isScrolling: !1
|
|
@@ -1424,7 +1423,7 @@ function Vo(t) {
|
|
|
1424
1423
|
}, s;
|
|
1425
1424
|
}
|
|
1426
1425
|
u.getDerivedStateFromProps = function(s, C) {
|
|
1427
|
-
return
|
|
1426
|
+
return Vo(s, C), P(s), null;
|
|
1428
1427
|
};
|
|
1429
1428
|
var m = u.prototype;
|
|
1430
1429
|
return m.scrollTo = function(s) {
|
|
@@ -1439,7 +1438,7 @@ function Vo(t) {
|
|
|
1439
1438
|
};
|
|
1440
1439
|
}, this._resetIsScrollingDebounced);
|
|
1441
1440
|
}, m.scrollToItem = function(s) {
|
|
1442
|
-
var C = s.align, b = C === void 0 ? "auto" : C, y = s.columnIndex, E = s.rowIndex, I = this.props, L = I.columnCount, D = I.height, z = I.rowCount, A = I.width, R = this.state, x = R.scrollLeft, O = R.scrollTop, M =
|
|
1441
|
+
var C = s.align, b = C === void 0 ? "auto" : C, y = s.columnIndex, E = s.rowIndex, I = this.props, L = I.columnCount, D = I.height, z = I.rowCount, A = I.width, R = this.state, x = R.scrollLeft, O = R.scrollTop, M = Ho();
|
|
1443
1442
|
y !== void 0 && (y = Math.max(0, Math.min(y, L - 1))), E !== void 0 && (E = Math.max(0, Math.min(E, z - 1)));
|
|
1444
1443
|
var G = l(this.props, this._instanceProps), Z = c(this.props, this._instanceProps), j = Z > A ? M : 0, q = G > D ? M : 0;
|
|
1445
1444
|
this.scrollTo({
|
|
@@ -1478,7 +1477,7 @@ function Vo(t) {
|
|
|
1478
1477
|
}, m.componentWillUnmount = function() {
|
|
1479
1478
|
this._resetIsScrollingTimeoutId !== null && Zt(this._resetIsScrollingTimeoutId);
|
|
1480
1479
|
}, m.render = function() {
|
|
1481
|
-
var s = this.props, C = s.children, b = s.className, y = s.columnCount, E = s.direction, I = s.height, L = s.innerRef, D = s.innerElementType, z = s.innerTagName, A = s.itemData, R = s.itemKey, x = R === void 0 ?
|
|
1480
|
+
var s = this.props, C = s.children, b = s.className, y = s.columnCount, E = s.direction, I = s.height, L = s.innerRef, D = s.innerElementType, z = s.innerTagName, A = s.itemData, R = s.itemKey, x = R === void 0 ? Go : R, O = s.outerElementType, M = s.outerTagName, G = s.rowCount, Z = s.style, j = s.useIsScrolling, q = s.width, ee = this.state.isScrolling, X = this._getHorizontalRangeToRender(), le = X[0], ae = X[1], de = this._getVerticalRangeToRender(), te = de[0], Fe = de[1], Ne = [];
|
|
1482
1481
|
if (y > 0 && G)
|
|
1483
1482
|
for (var Pe = te; Pe <= Fe; Pe++)
|
|
1484
1483
|
for (var we = le; we <= ae; we++)
|
|
@@ -1546,7 +1545,7 @@ function Vo(t) {
|
|
|
1546
1545
|
useIsScrolling: !1
|
|
1547
1546
|
}, e;
|
|
1548
1547
|
}
|
|
1549
|
-
var
|
|
1548
|
+
var Vo = function(e, n) {
|
|
1550
1549
|
var o = e.children, r = e.direction, a = e.height, l = e.innerTagName, c = e.outerTagName, d = e.overscanColumnsCount, p = e.overscanCount, f = e.overscanRowsCount, _ = e.width, h = n.instance;
|
|
1551
1550
|
if (process.env.NODE_ENV !== "production") {
|
|
1552
1551
|
if (typeof p == "number" && Be && !Be.has(h) && (Be.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof f == "number") && Ze && !Ze.has(h) && (Ze.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (l != null || c != 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)
|
|
@@ -1601,7 +1600,7 @@ var qo = function(e, n) {
|
|
|
1601
1600
|
var a, l;
|
|
1602
1601
|
e === "column" ? (a = o.columnMetadataMap, l = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, l = o.lastMeasuredRowIndex);
|
|
1603
1602
|
var c = l > 0 ? a[l].offset : 0;
|
|
1604
|
-
return c >= r ? In(e, n, o, l, 0, r) :
|
|
1603
|
+
return c >= r ? In(e, n, o, l, 0, r) : qo(e, n, o, Math.max(0, l), r);
|
|
1605
1604
|
}, In = function(e, n, o, r, a, l) {
|
|
1606
1605
|
for (; a <= r; ) {
|
|
1607
1606
|
var c = a + Math.floor((r - a) / 2), d = me(e, n, c, o).offset;
|
|
@@ -1610,7 +1609,7 @@ var qo = function(e, n) {
|
|
|
1610
1609
|
d < l ? a = c + 1 : d > l && (r = c - 1);
|
|
1611
1610
|
}
|
|
1612
1611
|
return a > 0 ? a - 1 : 0;
|
|
1613
|
-
},
|
|
1612
|
+
}, qo = function(e, n, o, r, a) {
|
|
1614
1613
|
for (var l = e === "column" ? n.columnCount : n.rowCount, c = 1; r < l && me(e, n, r, o).offset < a; )
|
|
1615
1614
|
r += c, c *= 2;
|
|
1616
1615
|
return In(e, n, o, Math.min(r, l - 1), Math.floor(r / 2), a);
|
|
@@ -1627,7 +1626,7 @@ var qo = function(e, n) {
|
|
|
1627
1626
|
default:
|
|
1628
1627
|
return a >= h && a <= _ ? a : h > _ || a < h ? h : _;
|
|
1629
1628
|
}
|
|
1630
|
-
},
|
|
1629
|
+
}, Bo = /* @__PURE__ */ Uo({
|
|
1631
1630
|
getColumnOffset: function(e, n, o) {
|
|
1632
1631
|
return me("column", e, n, o).offset;
|
|
1633
1632
|
},
|
|
@@ -1709,12 +1708,12 @@ function Jt(t, e) {
|
|
|
1709
1708
|
return !0;
|
|
1710
1709
|
return !1;
|
|
1711
1710
|
}
|
|
1712
|
-
var
|
|
1713
|
-
function
|
|
1714
|
-
var n = t.style, o = qt(t,
|
|
1711
|
+
var Zo = ["style"], jo = ["style"];
|
|
1712
|
+
function Ko(t, e) {
|
|
1713
|
+
var n = t.style, o = qt(t, Zo), r = e.style, a = qt(e, jo);
|
|
1715
1714
|
return !Jt(n, r) && !Jt(o, a);
|
|
1716
1715
|
}
|
|
1717
|
-
const
|
|
1716
|
+
const Xo = () => {
|
|
1718
1717
|
const { viewMode: t } = Ee(), { scrollMode: e } = Re(), { setColumnCount: n } = un(), { virtualScrollableElementRef: o } = et(), r = Ue(), a = k(() => r.heights.length, [r.heights]), l = k(() => e === J.HORIZONTAL_SCROLLING ? a : t === xe.DUAL_PAGE ? 2 : 1, [t, e, e, a, o]), c = k(() => r.widths.reduce((w, T, P) => {
|
|
1719
1718
|
const S = P % l;
|
|
1720
1719
|
return (!w[S] || T > w[S]) && (w[S] = T), w;
|
|
@@ -1758,7 +1757,7 @@ ht == null || tn == null ? (_t = pt, bt = function(e) {
|
|
|
1758
1757
|
}, Qt);
|
|
1759
1758
|
return [n, o];
|
|
1760
1759
|
});
|
|
1761
|
-
function
|
|
1760
|
+
function Yo(t) {
|
|
1762
1761
|
let e, n, o, r, a, l, c;
|
|
1763
1762
|
const d = typeof document < "u" && document.attachEvent;
|
|
1764
1763
|
if (!d) {
|
|
@@ -1830,7 +1829,7 @@ function Jo(t) {
|
|
|
1830
1829
|
}
|
|
1831
1830
|
};
|
|
1832
1831
|
}
|
|
1833
|
-
class
|
|
1832
|
+
class Jo extends er {
|
|
1834
1833
|
constructor(...e) {
|
|
1835
1834
|
super(...e), this.state = {
|
|
1836
1835
|
height: this.props.defaultHeight || 0,
|
|
@@ -1871,7 +1870,7 @@ class Qo extends er {
|
|
|
1871
1870
|
const o = n.ownerDocument.defaultView.ResizeObserver;
|
|
1872
1871
|
o != null ? (this._resizeObserver = new o(() => {
|
|
1873
1872
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
1874
|
-
}), this._resizeObserver.observe(n)) : (this._detectElementResize =
|
|
1873
|
+
}), this._resizeObserver.observe(n)) : (this._detectElementResize = Yo(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
|
|
1875
1874
|
}
|
|
1876
1875
|
}
|
|
1877
1876
|
componentWillUnmount() {
|
|
@@ -1909,7 +1908,7 @@ class Qo extends er {
|
|
|
1909
1908
|
}, !u && e(S));
|
|
1910
1909
|
}
|
|
1911
1910
|
}
|
|
1912
|
-
const
|
|
1911
|
+
const Qo = ln(({ widths: t, heights: e }) => {
|
|
1913
1912
|
const { focusedPage: n, totalPages: o } = ie(), r = k(() => {
|
|
1914
1913
|
const c = [], d = Math.ceil(n / 2) * 2 - 1;
|
|
1915
1914
|
if (c.push(d), d + 1 <= o) {
|
|
@@ -1937,7 +1936,7 @@ const ei = ln(({ widths: t, heights: e }) => {
|
|
|
1937
1936
|
];
|
|
1938
1937
|
}, [t, e, r]), l = k(() => a.reduce((c, d) => c + Number(d.width || 0), 0), [a]);
|
|
1939
1938
|
return /* @__PURE__ */ i("div", { style: { width: l, position: "relative" }, children: r.map((c, d) => /* @__PURE__ */ i(xt, { style: a[d], pageNumber: c }, c)) });
|
|
1940
|
-
}),
|
|
1939
|
+
}), ei = ({ widths: t, heights: e }) => {
|
|
1941
1940
|
const { focusedPage: n } = ie(), o = k(() => ({
|
|
1942
1941
|
position: "absolute",
|
|
1943
1942
|
width: t(n - 1),
|
|
@@ -1953,7 +1952,7 @@ const ei = ln(({ widths: t, heights: e }) => {
|
|
|
1953
1952
|
children: /* @__PURE__ */ i(xt, { style: o, pageNumber: n }, n)
|
|
1954
1953
|
}
|
|
1955
1954
|
);
|
|
1956
|
-
},
|
|
1955
|
+
}, ti = (t, e, n) => {
|
|
1957
1956
|
const o = H(), { contentRef: r } = ge(), { heights: a, widths: l } = Ue(), { setFocusedPage: c } = ie(), [d, p] = $([]), { targetScrollPage: f } = pn(), _ = Pt(d, 0, 500), h = k(() => a.map((w, T) => {
|
|
1958
1957
|
const P = l[T], S = Vr(T + 1, t), u = P * S.columnIndex, m = w * S.rowIndex, g = u + P, s = m + w;
|
|
1959
1958
|
return {
|
|
@@ -2004,10 +2003,10 @@ const ei = ln(({ widths: t, heights: e }) => {
|
|
|
2004
2003
|
n == null || n.removeEventListener("scroll", v);
|
|
2005
2004
|
};
|
|
2006
2005
|
}, [n, v]);
|
|
2007
|
-
},
|
|
2006
|
+
}, ni = ln(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
|
|
2008
2007
|
const r = qr(e, t, n.columnCount);
|
|
2009
2008
|
return /* @__PURE__ */ i(xt, { style: o, pageNumber: r }, r);
|
|
2010
|
-
},
|
|
2009
|
+
}, Ko), Gs = () => {
|
|
2011
2010
|
const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = ar(), { pagesRef: o, setPagesRef: r } = ge(), { scrollToPage: a } = wn(), {
|
|
2012
2011
|
virtualScrollRef: l,
|
|
2013
2012
|
getVirtualScrollRef: c,
|
|
@@ -2030,8 +2029,8 @@ const ei = ln(({ widths: t, heights: e }) => {
|
|
|
2030
2029
|
columnWidth: M,
|
|
2031
2030
|
estimatedColumnWidth: G,
|
|
2032
2031
|
estimatedRowHeight: Z
|
|
2033
|
-
} =
|
|
2034
|
-
|
|
2032
|
+
} = Xo(), j = Pt(h, 100), q = H();
|
|
2033
|
+
ti(O, R, _);
|
|
2035
2034
|
const ee = H({
|
|
2036
2035
|
scrollTop: 0,
|
|
2037
2036
|
scrollLeft: 0
|
|
@@ -2158,16 +2157,16 @@ const ei = ln(({ widths: t, heights: e }) => {
|
|
|
2158
2157
|
S,
|
|
2159
2158
|
j
|
|
2160
2159
|
]), /* @__PURE__ */ F(fe, { children: [
|
|
2161
|
-
/* @__PURE__ */ i("div", { id: n, ref: r, tabIndex: -1, className: rt, children: /* @__PURE__ */ i(
|
|
2160
|
+
/* @__PURE__ */ i("div", { id: n, ref: r, tabIndex: -1, className: rt, children: /* @__PURE__ */ i(Jo, { style: { minHeight: "50px" }, children: ({ width: U, height: V }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: jn, style: { width: U, height: V }, children: m === J.PAGE_SCROLLING ? /* @__PURE__ */ i(
|
|
2162
2161
|
"div",
|
|
2163
2162
|
{
|
|
2164
2163
|
ref: d,
|
|
2165
2164
|
style: { width: U, height: V },
|
|
2166
2165
|
className: ne(ue["rp-pages"], ue["rp-page-scrolling-wrapper"]),
|
|
2167
|
-
children: g === xe.DUAL_PAGE ? /* @__PURE__ */ i(
|
|
2166
|
+
children: g === xe.DUAL_PAGE ? /* @__PURE__ */ i(Qo, { widths: M, heights: x }) : /* @__PURE__ */ i(ei, { widths: M, heights: x })
|
|
2168
2167
|
}
|
|
2169
2168
|
) : G ? /* @__PURE__ */ i(
|
|
2170
|
-
|
|
2169
|
+
Bo,
|
|
2171
2170
|
{
|
|
2172
2171
|
ref: c,
|
|
2173
2172
|
itemData: Fe,
|
|
@@ -2186,7 +2185,7 @@ const ei = ln(({ widths: t, heights: e }) => {
|
|
|
2186
2185
|
ue["rp-pages"],
|
|
2187
2186
|
m === J.HORIZONTAL_SCROLLING ? ue["rp-pages-horizontal-scroll"] : ""
|
|
2188
2187
|
),
|
|
2189
|
-
children:
|
|
2188
|
+
children: ni
|
|
2190
2189
|
}
|
|
2191
2190
|
) : C ? null : /* @__PURE__ */ i(
|
|
2192
2191
|
"div",
|
|
@@ -2214,13 +2213,13 @@ const ei = ln(({ widths: t, heights: e }) => {
|
|
|
2214
2213
|
"rp-paginate": "_rp-paginate_1y9vo_1",
|
|
2215
2214
|
"rp-page-input": "_rp-page-input_1y9vo_6",
|
|
2216
2215
|
"rp-total-page": "_rp-total-page_1y9vo_11"
|
|
2217
|
-
},
|
|
2216
|
+
}, ri = () => {
|
|
2218
2217
|
const { prevIcon: t } = pe();
|
|
2219
2218
|
return t || /* @__PURE__ */ i(He, {});
|
|
2220
|
-
},
|
|
2219
|
+
}, oi = () => {
|
|
2221
2220
|
const { nextIcon: t } = pe();
|
|
2222
2221
|
return t || /* @__PURE__ */ i(He, { style: { transform: "rotate(180deg" } });
|
|
2223
|
-
},
|
|
2222
|
+
}, ii = () => {
|
|
2224
2223
|
const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = ie(), [l, c] = $(t.toString()), { pageNavigationTool: d = !0 } = ve(), { isSmallScreen: p } = Ce(), { localeMessages: f } = se(), { viewMode: _ } = Ee(), { scrollMode: h } = Re();
|
|
2225
2224
|
W(() => {
|
|
2226
2225
|
c(t.toString());
|
|
@@ -2256,7 +2255,7 @@ const ei = ln(({ widths: t, heights: e }) => {
|
|
|
2256
2255
|
onClick: r,
|
|
2257
2256
|
"aria-label": f == null ? void 0 : f.previousPageTooltip,
|
|
2258
2257
|
"aria-disabled": t === 1,
|
|
2259
|
-
children: /* @__PURE__ */ i(
|
|
2258
|
+
children: /* @__PURE__ */ i(ri, {})
|
|
2260
2259
|
}
|
|
2261
2260
|
) }),
|
|
2262
2261
|
/* @__PURE__ */ i(K, { content: f == null ? void 0 : f.currentPageTooltip, children: /* @__PURE__ */ i(
|
|
@@ -2279,12 +2278,12 @@ const ei = ln(({ widths: t, heights: e }) => {
|
|
|
2279
2278
|
onClick: o,
|
|
2280
2279
|
"aria-label": f == null ? void 0 : f.nextPageTooltip,
|
|
2281
2280
|
"aria-disabled": S,
|
|
2282
|
-
children: /* @__PURE__ */ i(
|
|
2281
|
+
children: /* @__PURE__ */ i(oi, {})
|
|
2283
2282
|
}
|
|
2284
2283
|
) })
|
|
2285
2284
|
] }) : null;
|
|
2286
2285
|
};
|
|
2287
|
-
var Lt = "Dialog", [xn,
|
|
2286
|
+
var Lt = "Dialog", [xn, Us] = Xr(Lt), [ai, ce] = xn(Lt), Ln = (t) => {
|
|
2288
2287
|
const {
|
|
2289
2288
|
__scopeDialog: e,
|
|
2290
2289
|
children: n,
|
|
@@ -2298,7 +2297,7 @@ var Lt = "Dialog", [xn, Vs] = Xr(Lt), [si, ce] = xn(Lt), Ln = (t) => {
|
|
|
2298
2297
|
onChange: a
|
|
2299
2298
|
});
|
|
2300
2299
|
return /* @__PURE__ */ i(
|
|
2301
|
-
|
|
2300
|
+
ai,
|
|
2302
2301
|
{
|
|
2303
2302
|
scope: e,
|
|
2304
2303
|
triggerRef: c,
|
|
@@ -2315,7 +2314,7 @@ var Lt = "Dialog", [xn, Vs] = Xr(Lt), [si, ce] = xn(Lt), Ln = (t) => {
|
|
|
2315
2314
|
);
|
|
2316
2315
|
};
|
|
2317
2316
|
Ln.displayName = Lt;
|
|
2318
|
-
var Rn = "DialogTrigger",
|
|
2317
|
+
var Rn = "DialogTrigger", si = B.forwardRef(
|
|
2319
2318
|
(t, e) => {
|
|
2320
2319
|
const { __scopeDialog: n, ...o } = t, r = ce(Rn, n), a = Tt(e, r.triggerRef);
|
|
2321
2320
|
return /* @__PURE__ */ i(
|
|
@@ -2333,22 +2332,22 @@ var Rn = "DialogTrigger", ci = B.forwardRef(
|
|
|
2333
2332
|
);
|
|
2334
2333
|
}
|
|
2335
2334
|
);
|
|
2336
|
-
|
|
2337
|
-
var Rt = "DialogPortal", [
|
|
2335
|
+
si.displayName = Rn;
|
|
2336
|
+
var Rt = "DialogPortal", [ci, En] = xn(Rt, {
|
|
2338
2337
|
forceMount: void 0
|
|
2339
2338
|
}), Nn = (t) => {
|
|
2340
2339
|
const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = ce(Rt, e);
|
|
2341
|
-
return /* @__PURE__ */ i(
|
|
2340
|
+
return /* @__PURE__ */ i(ci, { scope: e, forceMount: n, children: B.Children.map(o, (l) => /* @__PURE__ */ i(St, { present: n || a.open, children: /* @__PURE__ */ i(oo, { asChild: !0, container: r, children: l }) })) });
|
|
2342
2341
|
};
|
|
2343
2342
|
Nn.displayName = Rt;
|
|
2344
2343
|
var Xe = "DialogOverlay", On = B.forwardRef(
|
|
2345
2344
|
(t, e) => {
|
|
2346
2345
|
const n = En(Xe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Xe, t.__scopeDialog);
|
|
2347
|
-
return a.modal ? /* @__PURE__ */ i(St, { present: o || a.open, children: /* @__PURE__ */ i(
|
|
2346
|
+
return a.modal ? /* @__PURE__ */ i(St, { present: o || a.open, children: /* @__PURE__ */ i(li, { ...r, ref: e }) }) : null;
|
|
2348
2347
|
}
|
|
2349
2348
|
);
|
|
2350
2349
|
On.displayName = Xe;
|
|
2351
|
-
var
|
|
2350
|
+
var li = B.forwardRef(
|
|
2352
2351
|
(t, e) => {
|
|
2353
2352
|
const { __scopeDialog: n, ...o } = t, r = ce(Xe, n);
|
|
2354
2353
|
return (
|
|
@@ -2368,11 +2367,11 @@ var di = B.forwardRef(
|
|
|
2368
2367
|
), Le = "DialogContent", Dn = B.forwardRef(
|
|
2369
2368
|
(t, e) => {
|
|
2370
2369
|
const n = En(Le, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Le, t.__scopeDialog);
|
|
2371
|
-
return /* @__PURE__ */ i(St, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(
|
|
2370
|
+
return /* @__PURE__ */ i(St, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(di, { ...r, ref: e }) : /* @__PURE__ */ i(ui, { ...r, ref: e }) });
|
|
2372
2371
|
}
|
|
2373
2372
|
);
|
|
2374
2373
|
Dn.displayName = Le;
|
|
2375
|
-
var
|
|
2374
|
+
var di = B.forwardRef(
|
|
2376
2375
|
(t, e) => {
|
|
2377
2376
|
const n = ce(Le, t.__scopeDialog), o = B.useRef(null), r = Tt(e, n.contentRef, o);
|
|
2378
2377
|
return B.useEffect(() => {
|
|
@@ -2401,7 +2400,7 @@ var ui = B.forwardRef(
|
|
|
2401
2400
|
}
|
|
2402
2401
|
);
|
|
2403
2402
|
}
|
|
2404
|
-
),
|
|
2403
|
+
), ui = B.forwardRef(
|
|
2405
2404
|
(t, e) => {
|
|
2406
2405
|
const n = ce(Le, t.__scopeDialog), o = B.useRef(!1), r = B.useRef(!1);
|
|
2407
2406
|
return /* @__PURE__ */ i(
|
|
@@ -2452,8 +2451,8 @@ var ui = B.forwardRef(
|
|
|
2452
2451
|
}
|
|
2453
2452
|
),
|
|
2454
2453
|
/* @__PURE__ */ F(fe, { children: [
|
|
2455
|
-
/* @__PURE__ */ i(
|
|
2456
|
-
/* @__PURE__ */ i(
|
|
2454
|
+
/* @__PURE__ */ i(hi, { titleId: c.titleId }),
|
|
2455
|
+
/* @__PURE__ */ i(fi, { contentRef: d, descriptionId: c.descriptionId })
|
|
2457
2456
|
] })
|
|
2458
2457
|
] });
|
|
2459
2458
|
}
|
|
@@ -2464,13 +2463,13 @@ var ui = B.forwardRef(
|
|
|
2464
2463
|
}
|
|
2465
2464
|
);
|
|
2466
2465
|
An.displayName = Et;
|
|
2467
|
-
var Fn = "DialogDescription",
|
|
2466
|
+
var Fn = "DialogDescription", pi = B.forwardRef(
|
|
2468
2467
|
(t, e) => {
|
|
2469
2468
|
const { __scopeDialog: n, ...o } = t, r = ce(Fn, n);
|
|
2470
2469
|
return /* @__PURE__ */ i(Ve.p, { id: r.descriptionId, ...o, ref: e });
|
|
2471
2470
|
}
|
|
2472
2471
|
);
|
|
2473
|
-
|
|
2472
|
+
pi.displayName = Fn;
|
|
2474
2473
|
var Wn = "DialogClose", kn = B.forwardRef(
|
|
2475
2474
|
(t, e) => {
|
|
2476
2475
|
const { __scopeDialog: n, ...o } = t, r = ce(Wn, n);
|
|
@@ -2489,11 +2488,11 @@ kn.displayName = Wn;
|
|
|
2489
2488
|
function Nt(t) {
|
|
2490
2489
|
return t ? "open" : "closed";
|
|
2491
2490
|
}
|
|
2492
|
-
var Mn = "DialogTitleWarning", [
|
|
2491
|
+
var Mn = "DialogTitleWarning", [Vs, Hn] = Jr(Mn, {
|
|
2493
2492
|
contentName: Le,
|
|
2494
2493
|
titleName: Et,
|
|
2495
2494
|
docsSlug: "dialog"
|
|
2496
|
-
}),
|
|
2495
|
+
}), hi = ({ titleId: t }) => {
|
|
2497
2496
|
const e = Hn(Mn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
2498
2497
|
|
|
2499
2498
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -2502,14 +2501,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
2502
2501
|
return B.useEffect(() => {
|
|
2503
2502
|
t && (document.getElementById(t) || console.error(n));
|
|
2504
2503
|
}, [n, t]), null;
|
|
2505
|
-
},
|
|
2506
|
-
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hn(
|
|
2504
|
+
}, mi = "DialogDescriptionWarning", fi = ({ contentRef: t, descriptionId: e }) => {
|
|
2505
|
+
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hn(mi).contentName}}.`;
|
|
2507
2506
|
return B.useEffect(() => {
|
|
2508
2507
|
var a;
|
|
2509
2508
|
const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
2510
2509
|
e && r && (document.getElementById(e) || console.warn(o));
|
|
2511
2510
|
}, [o, t, e]), null;
|
|
2512
|
-
},
|
|
2511
|
+
}, gi = Ln, vi = Nn, wi = On, _i = Dn, bi = An, Ci = kn;
|
|
2513
2512
|
const Ie = {
|
|
2514
2513
|
"rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
|
|
2515
2514
|
"rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
|
|
@@ -2518,7 +2517,7 @@ const Ie = {
|
|
|
2518
2517
|
"rp-dialog-title": "_rp-dialog-title_slqo7_39",
|
|
2519
2518
|
"rp-dialog-close": "_rp-dialog-close_slqo7_47",
|
|
2520
2519
|
"rp-properties-divider": "_rp-properties-divider_slqo7_55"
|
|
2521
|
-
},
|
|
2520
|
+
}, Pi = () => {
|
|
2522
2521
|
const { pdfProperties: t } = Q(), { container: e } = ge(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = co(), { localeMessages: r } = se(), a = k(() => {
|
|
2523
2522
|
if (!t)
|
|
2524
2523
|
return [];
|
|
@@ -2559,19 +2558,19 @@ const Ie = {
|
|
|
2559
2558
|
{ label: r == null ? void 0 : r.propertiesPageCountLabel, value: S }
|
|
2560
2559
|
];
|
|
2561
2560
|
}, [t, r]);
|
|
2562
|
-
return /* @__PURE__ */ i(
|
|
2563
|
-
/* @__PURE__ */ i(
|
|
2564
|
-
/* @__PURE__ */ F(
|
|
2565
|
-
/* @__PURE__ */ i(
|
|
2561
|
+
return /* @__PURE__ */ i(gi, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(vi, { container: e, children: /* @__PURE__ */ F("div", { className: Ie["rp-dialog-wrapper"], children: [
|
|
2562
|
+
/* @__PURE__ */ i(wi, { className: Ie["rp-dialog-overlay"] }),
|
|
2563
|
+
/* @__PURE__ */ F(_i, { className: Ie["rp-document-dialog"], children: [
|
|
2564
|
+
/* @__PURE__ */ i(bi, { className: Ie["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
|
|
2566
2565
|
/* @__PURE__ */ i("div", { className: Ie["rp-document-properties"], children: a.map((l, c) => /* @__PURE__ */ i("div", { children: l.separate ? /* @__PURE__ */ i("div", { className: Ie["rp-properties-divider"] }) : /* @__PURE__ */ i(so, { label: l.label, value: l.value }) }, c)) }),
|
|
2567
|
-
/* @__PURE__ */ i(
|
|
2566
|
+
/* @__PURE__ */ i(Ci, { asChild: !0, className: Ie["rp-dialog-close"], children: /* @__PURE__ */ i(ao, {}) })
|
|
2568
2567
|
] })
|
|
2569
2568
|
] }) }) });
|
|
2570
|
-
},
|
|
2569
|
+
}, Ti = {
|
|
2571
2570
|
"rp-other-tool-content": "_rp-other-tool-content_su718_1"
|
|
2572
|
-
}, nn = ".pdf",
|
|
2571
|
+
}, nn = ".pdf", Si = (t) => URL.createObjectURL(t), yi = async (t) => {
|
|
2573
2572
|
const n = await (await fetch(t)).blob();
|
|
2574
|
-
return
|
|
2573
|
+
return Si(n);
|
|
2575
2574
|
}, $n = () => {
|
|
2576
2575
|
const { filename: t, pdfSrc: e } = Q(), { downloadFilename: n } = hr(), o = (a) => {
|
|
2577
2576
|
const l = n || a;
|
|
@@ -2581,26 +2580,26 @@ const Ie = {
|
|
|
2581
2580
|
if (!t || !e)
|
|
2582
2581
|
throw new Error("There is no PDF source to download");
|
|
2583
2582
|
const a = document.createElement("a");
|
|
2584
|
-
a.href = await
|
|
2583
|
+
a.href = await yi(e), a.download = o(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
|
|
2585
2584
|
}, [t, e]) };
|
|
2586
2585
|
}, Gn = () => {
|
|
2587
2586
|
const { downloadIcon: t } = pe();
|
|
2588
2587
|
return t || /* @__PURE__ */ i(fo, {});
|
|
2589
|
-
}, Un = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }),
|
|
2588
|
+
}, Un = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Ii = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Un, { localeMessages: e, children: /* @__PURE__ */ i(re, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Gn, {}) }) }), xi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(be, { onClick: t, children: /* @__PURE__ */ F(Un, { className: "rp-menu-item", localeMessages: e, children: [
|
|
2590
2589
|
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Gn, {}) }),
|
|
2591
2590
|
e == null ? void 0 : e.downloadFileLabel
|
|
2592
2591
|
] }) }), Vn = () => {
|
|
2593
2592
|
const { download: t } = $n(), { downloadTool: e = !0 } = ve(), { isSmallScreen: n } = Ce(), { localeMessages: o } = se();
|
|
2594
|
-
return e ? n ? /* @__PURE__ */ i(
|
|
2593
|
+
return e ? n ? /* @__PURE__ */ i(xi, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(Ii, { download: t, localeMessages: o }) : null : null;
|
|
2595
2594
|
}, qn = () => {
|
|
2596
2595
|
const { printIcon: t } = pe();
|
|
2597
2596
|
return t || /* @__PURE__ */ i(go, {});
|
|
2598
|
-
}, Bn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }),
|
|
2597
|
+
}, Bn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Li = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Bn, { localeMessages: e, children: /* @__PURE__ */ i(re, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(qn, {}) }) }), Ri = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(be, { onClick: t, children: /* @__PURE__ */ F(Bn, { className: "rp-menu-item", localeMessages: e, children: [
|
|
2599
2598
|
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(qn, {}) }),
|
|
2600
2599
|
e == null ? void 0 : e.printLabel
|
|
2601
2600
|
] }) }), Zn = () => {
|
|
2602
2601
|
const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = tt(), { printTool: l = !0 } = ve(), { isSmallScreen: c } = Ce(), { localeMessages: d } = se();
|
|
2603
|
-
return l ? c ? /* @__PURE__ */ i(
|
|
2602
|
+
return l ? c ? /* @__PURE__ */ i(Ri, { print: t, localeMessages: d }) : typeof l == "function" ? /* @__PURE__ */ i(
|
|
2604
2603
|
l,
|
|
2605
2604
|
{
|
|
2606
2605
|
print: t,
|
|
@@ -2610,16 +2609,16 @@ const Ie = {
|
|
|
2610
2609
|
setOnComplete: o,
|
|
2611
2610
|
progress: a
|
|
2612
2611
|
}
|
|
2613
|
-
) : l ? /* @__PURE__ */ i(
|
|
2614
|
-
},
|
|
2612
|
+
) : l ? /* @__PURE__ */ i(Li, { print: t, localeMessages: d }) : null : null;
|
|
2613
|
+
}, Ei = {
|
|
2615
2614
|
"rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
|
|
2616
|
-
},
|
|
2615
|
+
}, Ni = () => {
|
|
2617
2616
|
const { goToFirstPageIcon: t } = pe();
|
|
2618
|
-
return t || /* @__PURE__ */ i(vn, { className:
|
|
2619
|
-
},
|
|
2617
|
+
return t || /* @__PURE__ */ i(vn, { className: Ei["rp-go-to-Top"] });
|
|
2618
|
+
}, Oi = () => {
|
|
2620
2619
|
const { goToLastPageIcon: t } = pe();
|
|
2621
2620
|
return t || /* @__PURE__ */ i(vn, {});
|
|
2622
|
-
}, rn = { width: "100%" },
|
|
2621
|
+
}, rn = { width: "100%" }, Di = () => {
|
|
2623
2622
|
const { goToPage: t, totalPages: e, focusedPage: n } = ie(), { jumpNavigationTool: o = !0 } = ve(), { localeMessages: r } = se(), a = k(() => n === 1, [n]), l = k(() => n === e, [n, e]), c = N(() => {
|
|
2624
2623
|
t(1);
|
|
2625
2624
|
}, [t]), d = N(() => {
|
|
@@ -2627,16 +2626,16 @@ const Ie = {
|
|
|
2627
2626
|
}, [t, e]);
|
|
2628
2627
|
return o ? /* @__PURE__ */ F(Ke, { children: [
|
|
2629
2628
|
/* @__PURE__ */ i(be, { onClick: c, children: /* @__PURE__ */ i(K, { content: r == null ? void 0 : r.firstPageTooltip, style: rn, children: /* @__PURE__ */ F("div", { className: "rp-menu-item", "aria-disabled": a, children: [
|
|
2630
|
-
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(
|
|
2629
|
+
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ni, {}) }),
|
|
2631
2630
|
/* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
|
|
2632
2631
|
] }) }) }),
|
|
2633
2632
|
/* @__PURE__ */ i(be, { onClick: d, children: /* @__PURE__ */ i(K, { content: r == null ? void 0 : r.lastPageTooltip, style: rn, children: /* @__PURE__ */ F("div", { className: "rp-menu-item", "aria-disabled": l, children: [
|
|
2634
|
-
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(
|
|
2633
|
+
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Oi, {}) }),
|
|
2635
2634
|
/* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
|
|
2636
2635
|
] }) }) }),
|
|
2637
2636
|
/* @__PURE__ */ i(yt, {})
|
|
2638
2637
|
] }) : null;
|
|
2639
|
-
},
|
|
2638
|
+
}, zi = () => {
|
|
2640
2639
|
const { container: t } = ge(), { isSmallScreen: e } = Ce(), {
|
|
2641
2640
|
openFileTool: n,
|
|
2642
2641
|
downloadTool: o,
|
|
@@ -2667,7 +2666,7 @@ const Ie = {
|
|
|
2667
2666
|
{
|
|
2668
2667
|
container: t,
|
|
2669
2668
|
triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: _ == null ? void 0 : _.moreOptionTooltip, children: /* @__PURE__ */ i(re, { "aria-label": _ == null ? void 0 : _.moreOptionTooltip, children: /* @__PURE__ */ i(Kr, {}) }) }) }),
|
|
2670
|
-
children: /* @__PURE__ */ F("div", { className:
|
|
2669
|
+
children: /* @__PURE__ */ F("div", { className: Ti["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
|
|
2671
2670
|
e && /* @__PURE__ */ F(Ke, { children: [
|
|
2672
2671
|
/* @__PURE__ */ i(mn, {}),
|
|
2673
2672
|
/* @__PURE__ */ i(Vn, {}),
|
|
@@ -2675,7 +2674,7 @@ const Ie = {
|
|
|
2675
2674
|
/* @__PURE__ */ i(gn, {}),
|
|
2676
2675
|
/* @__PURE__ */ i(yt, {})
|
|
2677
2676
|
] }),
|
|
2678
|
-
/* @__PURE__ */ i(
|
|
2677
|
+
/* @__PURE__ */ i(Di, {}),
|
|
2679
2678
|
/* @__PURE__ */ i(po, {}),
|
|
2680
2679
|
/* @__PURE__ */ i(vo, {}),
|
|
2681
2680
|
/* @__PURE__ */ i(ho, {}),
|
|
@@ -2684,9 +2683,9 @@ const Ie = {
|
|
|
2684
2683
|
] })
|
|
2685
2684
|
}
|
|
2686
2685
|
),
|
|
2687
|
-
/* @__PURE__ */ i(
|
|
2686
|
+
/* @__PURE__ */ i(Pi, {})
|
|
2688
2687
|
] }) : null;
|
|
2689
|
-
},
|
|
2688
|
+
}, Ai = () => {
|
|
2690
2689
|
const { isSmallScreen: t } = Ce();
|
|
2691
2690
|
return /* @__PURE__ */ F(fe, { children: [
|
|
2692
2691
|
/* @__PURE__ */ i(jr, {}),
|
|
@@ -2696,7 +2695,7 @@ const Ie = {
|
|
|
2696
2695
|
/* @__PURE__ */ i(Zn, {}),
|
|
2697
2696
|
/* @__PURE__ */ i(gn, {})
|
|
2698
2697
|
] }),
|
|
2699
|
-
/* @__PURE__ */ i(
|
|
2698
|
+
/* @__PURE__ */ i(zi, {})
|
|
2700
2699
|
] });
|
|
2701
2700
|
}, De = {
|
|
2702
2701
|
"rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
|
|
@@ -2704,13 +2703,13 @@ const Ie = {
|
|
|
2704
2703
|
"rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
|
|
2705
2704
|
"rp-current-zoom-text": "_rp-current-zoom-text_cocqs_16",
|
|
2706
2705
|
"rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
|
|
2707
|
-
},
|
|
2706
|
+
}, Fi = 25, ft = 1e3, Wi = [50, 75, 100, 125, 150, 200, 300, 400], ki = () => {
|
|
2708
2707
|
const { zoomInIcon: t } = pe();
|
|
2709
2708
|
return t || /* @__PURE__ */ i(wo, {});
|
|
2710
|
-
},
|
|
2709
|
+
}, Mi = () => {
|
|
2711
2710
|
const { zoomOutIcon: t } = pe();
|
|
2712
2711
|
return t || /* @__PURE__ */ i(_o, {});
|
|
2713
|
-
},
|
|
2712
|
+
}, Hi = () => {
|
|
2714
2713
|
const { zoomLevel: t, setZoomLevel: e } = Qe(), { container: n, pagesRef: o } = ge(), { zoomTool: r = !0 } = ve(), { focusedPage: a } = ie(), { rotate: l } = Ge(), { pages: c } = Q(), { isSmallScreen: d } = Ce(), { localeMessages: p } = se(), { viewMode: f } = Ee(), _ = N(() => {
|
|
2715
2714
|
e((u) => {
|
|
2716
2715
|
const m = Math.floor(u / 25) * 25;
|
|
@@ -2721,7 +2720,7 @@ const Ie = {
|
|
|
2721
2720
|
const m = Math.ceil(u / 25) * 25;
|
|
2722
2721
|
return Math.min(m - 25, ft);
|
|
2723
2722
|
});
|
|
2724
|
-
}, [e]), v = k(() => t ===
|
|
2723
|
+
}, [e]), v = k(() => t === Fi, [t]), w = k(() => t === ft, [t]), T = k(() => {
|
|
2725
2724
|
var u;
|
|
2726
2725
|
return (u = c.get(a)) == null ? void 0 : u.page.getViewport({ scale: 1, rotation: l });
|
|
2727
2726
|
}, [c, a, l]), P = N(
|
|
@@ -2750,7 +2749,7 @@ const Ie = {
|
|
|
2750
2749
|
disabled: v,
|
|
2751
2750
|
onClick: h,
|
|
2752
2751
|
"aria-label": p == null ? void 0 : p.zoomOutTooltip,
|
|
2753
|
-
children: /* @__PURE__ */ i(
|
|
2752
|
+
children: /* @__PURE__ */ i(Mi, {})
|
|
2754
2753
|
}
|
|
2755
2754
|
) }),
|
|
2756
2755
|
!d && /* @__PURE__ */ i(
|
|
@@ -2778,7 +2777,7 @@ const Ie = {
|
|
|
2778
2777
|
/* @__PURE__ */ i(be, { onClick: () => S(at.PAGE_WIDTH), children: p == null ? void 0 : p.zoomPageWidth })
|
|
2779
2778
|
] }),
|
|
2780
2779
|
/* @__PURE__ */ i(yt, {}),
|
|
2781
|
-
/* @__PURE__ */ i(Ke, { children:
|
|
2780
|
+
/* @__PURE__ */ i(Ke, { children: Wi.map((u) => /* @__PURE__ */ F(be, { onClick: () => S(u), children: [
|
|
2782
2781
|
u,
|
|
2783
2782
|
" %"
|
|
2784
2783
|
] }, u)) })
|
|
@@ -2791,7 +2790,7 @@ const Ie = {
|
|
|
2791
2790
|
disabled: w,
|
|
2792
2791
|
onClick: _,
|
|
2793
2792
|
"aria-label": p == null ? void 0 : p.zoomInTooltip,
|
|
2794
|
-
children: /* @__PURE__ */ i(
|
|
2793
|
+
children: /* @__PURE__ */ i(ki, {})
|
|
2795
2794
|
}
|
|
2796
2795
|
) })
|
|
2797
2796
|
] }) : null;
|
|
@@ -2821,7 +2820,7 @@ const Ie = {
|
|
|
2821
2820
|
}, an = () => {
|
|
2822
2821
|
const { searchIcon: t } = pe();
|
|
2823
2822
|
return t || /* @__PURE__ */ i(Co, {});
|
|
2824
|
-
},
|
|
2823
|
+
}, $i = () => {
|
|
2825
2824
|
const { container: t } = ge(), [e, n] = $(!1), { pdf: o } = Q(), [r, a] = $(null), {
|
|
2826
2825
|
searchOptions: l,
|
|
2827
2826
|
setSearchOptions: c,
|
|
@@ -2912,15 +2911,15 @@ const Ie = {
|
|
|
2912
2911
|
] })
|
|
2913
2912
|
}
|
|
2914
2913
|
) }) : null;
|
|
2915
|
-
},
|
|
2914
|
+
}, Gi = "_loading_wazy2_1", ze = {
|
|
2916
2915
|
"rp-loading-overlay": "_rp-loading-overlay_wazy2_1",
|
|
2917
2916
|
"rp-loading-modal": "_rp-loading-modal_wazy2_14",
|
|
2918
2917
|
"rp-loading-title": "_rp-loading-title_wazy2_27",
|
|
2919
2918
|
"rp-loading-progress-bar": "_rp-loading-progress-bar_wazy2_35",
|
|
2920
2919
|
"rp-loading-progress": "_rp-loading-progress_wazy2_35",
|
|
2921
2920
|
"rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
|
|
2922
|
-
loading:
|
|
2923
|
-
},
|
|
2921
|
+
loading: Gi
|
|
2922
|
+
}, Ui = ({ percentage: t }) => {
|
|
2924
2923
|
const { cancel: e } = tt(), { localeMessages: n } = se();
|
|
2925
2924
|
return t < 1 ? null : /* @__PURE__ */ i("div", { className: ne(ze["rp-loading-overlay"]), children: /* @__PURE__ */ F("div", { className: ne(ze["rp-loading-modal"]), children: [
|
|
2926
2925
|
/* @__PURE__ */ F("div", { className: ne(ze["rp-loading-title"]), children: [
|
|
@@ -2936,18 +2935,18 @@ const Ie = {
|
|
|
2936
2935
|
) }),
|
|
2937
2936
|
/* @__PURE__ */ i("button", { className: ne(ze["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
|
|
2938
2937
|
] }) });
|
|
2939
|
-
},
|
|
2938
|
+
}, Vi = $e((t, e) => {
|
|
2940
2939
|
const { showPrintProgress: n } = ve(), { progress: o } = tt(), { isSmallScreen: r } = Ce(), { percentage: a } = o || {}, l = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
|
|
2941
2940
|
return /* @__PURE__ */ F("div", { children: [
|
|
2942
2941
|
/* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: We["rp-toolbar-content"], children: /* @__PURE__ */ F("div", { className: We["rp-toolbar-wrapper"], style: l(), children: [
|
|
2943
2942
|
/* @__PURE__ */ F("div", { "data-rp": "topBarLeft", className: We["rp-toolbar-start"], children: [
|
|
2944
|
-
/* @__PURE__ */ i(
|
|
2945
|
-
/* @__PURE__ */ i(
|
|
2943
|
+
/* @__PURE__ */ i($i, {}),
|
|
2944
|
+
/* @__PURE__ */ i(ii, {})
|
|
2946
2945
|
] }),
|
|
2947
|
-
/* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: We["rp-toolbar-middle"], children: /* @__PURE__ */ i(
|
|
2948
|
-
/* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: We["rp-toolbar-end"], children: /* @__PURE__ */ i(
|
|
2946
|
+
/* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: We["rp-toolbar-middle"], children: /* @__PURE__ */ i(Hi, {}) }),
|
|
2947
|
+
/* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: We["rp-toolbar-end"], children: /* @__PURE__ */ i(Ai, {}) })
|
|
2949
2948
|
] }) }),
|
|
2950
|
-
n && a ? /* @__PURE__ */ i(
|
|
2949
|
+
n && a ? /* @__PURE__ */ i(Ui, { percentage: a }) : null
|
|
2951
2950
|
] });
|
|
2952
2951
|
}), gt = {
|
|
2953
2952
|
"rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_1sdl6_1",
|
|
@@ -2960,7 +2959,7 @@ const Ie = {
|
|
|
2960
2959
|
"rp-thumbnail": "_rp-thumbnail_3fenb_1",
|
|
2961
2960
|
"rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
|
|
2962
2961
|
"rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
|
|
2963
|
-
},
|
|
2962
|
+
}, qi = (t) => {
|
|
2964
2963
|
const { thumbnailSrc: e, pageNumber: n, isFocused: o, viewport: r } = t, { goToPage: a } = ie(), l = k(() => o ? ke["rp-thumbnail-active"] : "", [o]), c = k(() => ({
|
|
2965
2964
|
width: Math.round(r.width),
|
|
2966
2965
|
height: Math.round(r.height)
|
|
@@ -3000,10 +2999,10 @@ const Ie = {
|
|
|
3000
2999
|
}, sn = {
|
|
3001
3000
|
"rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
|
|
3002
3001
|
"rp-thumbnails": "_rp-thumbnails_16vqr_1"
|
|
3003
|
-
},
|
|
3002
|
+
}, Bi = 16, Zi = (t, e) => {
|
|
3004
3003
|
const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
|
|
3005
|
-
t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) -
|
|
3006
|
-
},
|
|
3004
|
+
t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Bi);
|
|
3005
|
+
}, ji = $e((t, e) => {
|
|
3007
3006
|
const { show: n } = t, { focusedPage: o, totalPages: r } = ie(), { thumbnailPages: a, addPage: l, thumbnailLength: c, addToPage: d } = Pn(), p = H(null), f = H(1);
|
|
3008
3007
|
cn(e, () => p.current);
|
|
3009
3008
|
const _ = k(() => Object.values(a), [a]), h = N(() => {
|
|
@@ -3011,11 +3010,11 @@ const Ie = {
|
|
|
3011
3010
|
v <= r && l(v);
|
|
3012
3011
|
}, [l, r, c]);
|
|
3013
3012
|
return W(() => {
|
|
3014
|
-
o > c ? d(o) : n && f.current !== o && (
|
|
3013
|
+
o > c ? d(o) : n && f.current !== o && (Zi(p.current, o), f.current = o);
|
|
3015
3014
|
}, [o, c, d, n, _]), fr(p.current, h), /* @__PURE__ */ i("div", { ref: p, className: sn["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: sn["rp-thumbnails"], children: n ? _.map((v, w) => {
|
|
3016
3015
|
var T, P;
|
|
3017
3016
|
return /* @__PURE__ */ i(
|
|
3018
|
-
|
|
3017
|
+
qi,
|
|
3019
3018
|
{
|
|
3020
3019
|
isFocused: o === ((T = v.page) == null ? void 0 : T.pageNumber),
|
|
3021
3020
|
pageNumber: (P = v.page) == null ? void 0 : P.pageNumber,
|
|
@@ -3026,10 +3025,10 @@ const Ie = {
|
|
|
3026
3025
|
w
|
|
3027
3026
|
);
|
|
3028
3027
|
}) : null }) });
|
|
3029
|
-
}),
|
|
3028
|
+
}), Ki = () => {
|
|
3030
3029
|
const { thumbnailIcon: t } = pe();
|
|
3031
3030
|
return t || /* @__PURE__ */ i(mr, {});
|
|
3032
|
-
},
|
|
3031
|
+
}, Xi = () => {
|
|
3033
3032
|
const { active: t, setActive: e } = Pn(), [n, o] = $(200), r = H(null), { thumbnailTool: a, sidebarEnable: l } = ve(), { localeMessages: c } = se(), d = N(() => {
|
|
3034
3033
|
e((f) => !f);
|
|
3035
3034
|
}, []), p = k(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: d, active: t }) : a ? /* @__PURE__ */ i(K, { content: c == null ? void 0 : c.thumbnailTooltip, children: /* @__PURE__ */ i(
|
|
@@ -3038,7 +3037,7 @@ const Ie = {
|
|
|
3038
3037
|
onClick: d,
|
|
3039
3038
|
active: t,
|
|
3040
3039
|
"aria-label": c == null ? void 0 : c.thumbnailTooltip,
|
|
3041
|
-
children: /* @__PURE__ */ i(
|
|
3040
|
+
children: /* @__PURE__ */ i(Ki, {})
|
|
3042
3041
|
}
|
|
3043
3042
|
) }) : null, [a, t, d, c]);
|
|
3044
3043
|
return /* @__PURE__ */ i(fe, { children: l && /* @__PURE__ */ F(
|
|
@@ -3056,7 +3055,7 @@ const Ie = {
|
|
|
3056
3055
|
hidden: !t,
|
|
3057
3056
|
className: gt["rp-thumbnails-wrapper"],
|
|
3058
3057
|
children: [
|
|
3059
|
-
/* @__PURE__ */ i(
|
|
3058
|
+
/* @__PURE__ */ i(ji, { show: t, ref: r }),
|
|
3060
3059
|
/* @__PURE__ */ i(gr, { onWidthChange: o, thumbnailRef: r })
|
|
3061
3060
|
]
|
|
3062
3061
|
}
|
|
@@ -3072,7 +3071,7 @@ const Ie = {
|
|
|
3072
3071
|
"rp-loader": "_rp-loader_ah61i_52",
|
|
3073
3072
|
"rp-theme-variables": "_rp-theme-variables_ah61i_56",
|
|
3074
3073
|
"rp-dark-mode": "_rp-dark-mode_ah61i_167"
|
|
3075
|
-
},
|
|
3074
|
+
}, Yi = $e(
|
|
3076
3075
|
(t, e) => {
|
|
3077
3076
|
const { children: n, toolbarRef: o, style: r, className: a } = t, { customVariables: l, customDarkVariables: c } = Tr(), { darkMode: d } = rr();
|
|
3078
3077
|
return /* @__PURE__ */ i(
|
|
@@ -3095,7 +3094,7 @@ const Ie = {
|
|
|
3095
3094
|
}
|
|
3096
3095
|
);
|
|
3097
3096
|
}
|
|
3098
|
-
),
|
|
3097
|
+
), qs = $e((t, e) => {
|
|
3099
3098
|
const {
|
|
3100
3099
|
children: n,
|
|
3101
3100
|
slots: o,
|
|
@@ -3109,12 +3108,12 @@ const Ie = {
|
|
|
3109
3108
|
} = t, [_, h] = $(null), { setContainer: v, setContentRef: w } = ge(), { loading: T } = Q(), { LoaderImageComponent: P } = hn();
|
|
3110
3109
|
return W(() => (d && d(), () => {
|
|
3111
3110
|
p && p();
|
|
3112
|
-
}), [d, p]), /* @__PURE__ */ i(
|
|
3111
|
+
}), [d, p]), /* @__PURE__ */ i(Yi, { toolbarRef: _, ref: e, children: /* @__PURE__ */ i(Pr, { mobileWidth: c, onLayoutWidthChange: f, children: /* @__PURE__ */ i(vr, { slots: o, children: /* @__PURE__ */ i(wr, { icons: r, children: /* @__PURE__ */ F(_r, { getContainerRef: v, style: a, className: l, children: [
|
|
3113
3112
|
/* @__PURE__ */ F(br, { children: [
|
|
3114
3113
|
/* @__PURE__ */ F("div", { className: _e["rp-layout"], children: [
|
|
3115
|
-
/* @__PURE__ */ i(
|
|
3114
|
+
/* @__PURE__ */ i(Vi, { ref: h }),
|
|
3116
3115
|
/* @__PURE__ */ F("div", { className: _e["rp-content"], children: [
|
|
3117
|
-
/* @__PURE__ */ i("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ i(
|
|
3116
|
+
/* @__PURE__ */ i("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ i(Xi, {}) }),
|
|
3118
3117
|
/* @__PURE__ */ i("div", { ref: w, className: _e["rp-pages"], children: n })
|
|
3119
3118
|
] })
|
|
3120
3119
|
] }),
|
|
@@ -3151,27 +3150,27 @@ const Ie = {
|
|
|
3151
3150
|
] }) }) }) }) });
|
|
3152
3151
|
});
|
|
3153
3152
|
export {
|
|
3154
|
-
|
|
3153
|
+
Oo as A,
|
|
3155
3154
|
on as B,
|
|
3156
3155
|
xo as C,
|
|
3157
|
-
|
|
3158
|
-
|
|
3156
|
+
Qo as D,
|
|
3157
|
+
$i as E,
|
|
3159
3158
|
Vn as F,
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3159
|
+
Vi as G,
|
|
3160
|
+
qi as H,
|
|
3161
|
+
ji as I,
|
|
3162
|
+
Xi as J,
|
|
3163
|
+
Yi as K,
|
|
3164
|
+
Ui as L,
|
|
3165
|
+
Di as M,
|
|
3166
|
+
zi as O,
|
|
3167
|
+
ks as P,
|
|
3168
|
+
Gs as R,
|
|
3169
|
+
$s as S,
|
|
3170
|
+
Hs as T,
|
|
3171
|
+
Hi as Z,
|
|
3172
|
+
Ms as a,
|
|
3173
|
+
qs as b,
|
|
3175
3174
|
$n as c,
|
|
3176
3175
|
tt as d,
|
|
3177
3176
|
It as e,
|
|
@@ -3185,15 +3184,15 @@ export {
|
|
|
3185
3184
|
Pn as m,
|
|
3186
3185
|
Io as n,
|
|
3187
3186
|
Tn as o,
|
|
3188
|
-
|
|
3189
|
-
|
|
3187
|
+
Ro as p,
|
|
3188
|
+
zo as q,
|
|
3190
3189
|
xt as r,
|
|
3191
|
-
|
|
3192
|
-
|
|
3190
|
+
Xo as s,
|
|
3191
|
+
ei as t,
|
|
3193
3192
|
ie as u,
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3193
|
+
ti as v,
|
|
3194
|
+
ii as w,
|
|
3195
|
+
Pi as x,
|
|
3197
3196
|
Zn as y,
|
|
3198
|
-
|
|
3197
|
+
Ai as z
|
|
3199
3198
|
};
|