@embedpdf-editor/vue3-chapter-viewer 1.0.8 → 1.0.9-beta.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.
package/dist/index.js CHANGED
@@ -463,13 +463,6 @@ const st$1 = class e extends BasePlugin {
463
463
  }
464
464
  if (0 === a2.size) return;
465
465
  const l = this.virtualPageMap.atIndex(r2);
466
- if (l) {
467
- const e15 = this.findChapter(l.chapterId);
468
- if (e15) {
469
- const t3 = Ze$1(e15, l.localPageIndex);
470
- o2(l.chapterId, t3 + 1);
471
- }
472
- }
473
466
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
474
467
  const h2 = [...i2.entries()].map(([e15, t3]) => {
475
468
  const [s3, n10] = e15.split(":");
@@ -1084,13 +1077,6 @@ const xt$1 = class e2 extends BasePlugin {
1084
1077
  }
1085
1078
  if (0 === a2.size) return;
1086
1079
  const l = this.virtualPageMap.atIndex(r2);
1087
- if (l) {
1088
- const e15 = this.findChapter(l.chapterId);
1089
- if (e15) {
1090
- const t3 = bt$1(e15, l.localPageIndex);
1091
- o2(l.chapterId, t3 + 1);
1092
- }
1093
- }
1094
1080
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
1095
1081
  const h2 = [...i2.entries()].map(([e15, t3]) => {
1096
1082
  const [s3, n10] = e15.split(":");
@@ -1895,13 +1881,6 @@ const jt$1 = class e3 extends BasePlugin {
1895
1881
  }
1896
1882
  if (0 === a2.size) return;
1897
1883
  const l = this.virtualPageMap.atIndex(r2);
1898
- if (l) {
1899
- const e15 = this.findChapter(l.chapterId);
1900
- if (e15) {
1901
- const t3 = Bt$1(e15, l.localPageIndex);
1902
- o2(l.chapterId, t3 + 1);
1903
- }
1904
- }
1905
1884
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
1906
1885
  const h2 = [...i2.entries()].map(([e15, t3]) => {
1907
1886
  const [s3, n10] = e15.split(":");
@@ -2515,13 +2494,6 @@ const ms = class e4 extends BasePlugin {
2515
2494
  }
2516
2495
  if (0 === a2.size) return;
2517
2496
  const l = this.virtualPageMap.atIndex(r2);
2518
- if (l) {
2519
- const e15 = this.findChapter(l.chapterId);
2520
- if (e15) {
2521
- const t3 = hs(e15, l.localPageIndex);
2522
- o2(l.chapterId, t3 + 1);
2523
- }
2524
- }
2525
2497
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
2526
2498
  const h2 = [...i2.entries()].map(([e15, t3]) => {
2527
2499
  const [s3, n10] = e15.split(":");
@@ -3439,13 +3411,6 @@ const zs$1 = class e6 extends BasePlugin {
3439
3411
  }
3440
3412
  if (0 === a2.size) return;
3441
3413
  const l = this.virtualPageMap.atIndex(r2);
3442
- if (l) {
3443
- const e15 = this.findChapter(l.chapterId);
3444
- if (e15) {
3445
- const t3 = Ns$1(e15, l.localPageIndex);
3446
- o2(l.chapterId, t3 + 1);
3447
- }
3448
- }
3449
3414
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
3450
3415
  const h2 = [...i2.entries()].map(([e15, t3]) => {
3451
3416
  const [s3, n10] = e15.split(":");
@@ -4059,13 +4024,6 @@ const ln = class e7 extends BasePlugin {
4059
4024
  }
4060
4025
  if (0 === a2.size) return;
4061
4026
  const l = this.virtualPageMap.atIndex(r2);
4062
- if (l) {
4063
- const e15 = this.findChapter(l.chapterId);
4064
- if (e15) {
4065
- const t3 = tn(e15, l.localPageIndex);
4066
- o2(l.chapterId, t3 + 1);
4067
- }
4068
- }
4069
4027
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
4070
4028
  const h2 = [...i2.entries()].map(([e15, t3]) => {
4071
4029
  const [s3, n10] = e15.split(":");
@@ -5340,13 +5298,6 @@ const pr = class e9 extends BasePlugin {
5340
5298
  }
5341
5299
  if (0 === a2.size) return;
5342
5300
  const l = this.virtualPageMap.atIndex(r2);
5343
- if (l) {
5344
- const e15 = this.findChapter(l.chapterId);
5345
- if (e15) {
5346
- const t3 = or(e15, l.localPageIndex);
5347
- o2(l.chapterId, t3 + 1);
5348
- }
5349
- }
5350
5301
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
5351
5302
  const h2 = [...i2.entries()].map(([e15, t3]) => {
5352
5303
  const [s3, n10] = e15.split(":");
@@ -6172,13 +6123,6 @@ const Tr = class e10 extends BasePlugin {
6172
6123
  }
6173
6124
  if (0 === a2.size) return;
6174
6125
  const l = this.virtualPageMap.atIndex(r2);
6175
- if (l) {
6176
- const e15 = this.findChapter(l.chapterId);
6177
- if (e15) {
6178
- const t3 = kr(e15, l.localPageIndex);
6179
- o2(l.chapterId, t3 + 1);
6180
- }
6181
- }
6182
6126
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
6183
6127
  const h2 = [...i2.entries()].map(([e15, t3]) => {
6184
6128
  const [s3, n10] = e15.split(":");
@@ -6792,13 +6736,6 @@ const sa = class e11 extends BasePlugin {
6792
6736
  }
6793
6737
  if (0 === a2.size) return;
6794
6738
  const l = this.virtualPageMap.atIndex(r2);
6795
- if (l) {
6796
- const e15 = this.findChapter(l.chapterId);
6797
- if (e15) {
6798
- const t3 = Zr(e15, l.localPageIndex);
6799
- o2(l.chapterId, t3 + 1);
6800
- }
6801
- }
6802
6739
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
6803
6740
  const h2 = [...i2.entries()].map(([e15, t3]) => {
6804
6741
  const [s3, n10] = e15.split(":");
@@ -8156,13 +8093,6 @@ const B = class n extends BasePlugin {
8156
8093
  }
8157
8094
  if (0 === a2.size) return;
8158
8095
  const h2 = this.virtualPageMap.atIndex(r2);
8159
- if (h2) {
8160
- const e15 = this.findChapter(h2.chapterId);
8161
- if (e15) {
8162
- const t3 = T(e15, h2.localPageIndex);
8163
- o2(h2.chapterId, t3 + 1);
8164
- }
8165
- }
8166
8096
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
8167
8097
  const l = [...i2.entries()].map(([e15, t3]) => {
8168
8098
  const [s3, n10] = e15.split(":");
@@ -8776,13 +8706,6 @@ const ce = class n2 extends BasePlugin {
8776
8706
  }
8777
8707
  if (0 === a2.size) return;
8778
8708
  const h2 = this.virtualPageMap.atIndex(r2);
8779
- if (h2) {
8780
- const e15 = this.findChapter(h2.chapterId);
8781
- if (e15) {
8782
- const t3 = ae(e15, h2.localPageIndex);
8783
- o2(h2.chapterId, t3 + 1);
8784
- }
8785
- }
8786
8709
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
8787
8710
  const l = [...i2.entries()].map(([e15, t3]) => {
8788
8711
  const [s3, n10] = e15.split(":");
@@ -9584,13 +9507,6 @@ const Ee = class n3 extends BasePlugin {
9584
9507
  }
9585
9508
  if (0 === a2.size) return;
9586
9509
  const h2 = this.virtualPageMap.atIndex(r2);
9587
- if (h2) {
9588
- const e15 = this.findChapter(h2.chapterId);
9589
- if (e15) {
9590
- const t3 = Le(e15, h2.localPageIndex);
9591
- o2(h2.chapterId, t3 + 1);
9592
- }
9593
- }
9594
9510
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
9595
9511
  const l = [...i2.entries()].map(([e15, t3]) => {
9596
9512
  const [s3, n10] = e15.split(":");
@@ -10204,13 +10120,6 @@ const et2 = class n4 extends BasePlugin {
10204
10120
  }
10205
10121
  if (0 === a2.size) return;
10206
10122
  const h2 = this.virtualPageMap.atIndex(r2);
10207
- if (h2) {
10208
- const e15 = this.findChapter(h2.chapterId);
10209
- if (e15) {
10210
- const t3 = je(e15, h2.localPageIndex);
10211
- o2(h2.chapterId, t3 + 1);
10212
- }
10213
- }
10214
10123
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
10215
10124
  const l = [...i2.entries()].map(([e15, t3]) => {
10216
10125
  const [s3, n10] = e15.split(":");
@@ -11127,13 +11036,6 @@ const Mt = class n6 extends BasePlugin {
11127
11036
  }
11128
11037
  if (0 === a2.size) return;
11129
11038
  const h2 = this.virtualPageMap.atIndex(r2);
11130
- if (h2) {
11131
- const e15 = this.findChapter(h2.chapterId);
11132
- if (e15) {
11133
- const t3 = Pt(e15, h2.localPageIndex);
11134
- o2(h2.chapterId, t3 + 1);
11135
- }
11136
- }
11137
11039
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
11138
11040
  const l = [...i2.entries()].map(([e15, t3]) => {
11139
11041
  const [s3, n10] = e15.split(":");
@@ -11747,13 +11649,6 @@ const Kt = class n7 extends BasePlugin {
11747
11649
  }
11748
11650
  if (0 === a2.size) return;
11749
11651
  const h2 = this.virtualPageMap.atIndex(r2);
11750
- if (h2) {
11751
- const e15 = this.findChapter(h2.chapterId);
11752
- if (e15) {
11753
- const t3 = Gt(e15, h2.localPageIndex);
11754
- o2(h2.chapterId, t3 + 1);
11755
- }
11756
- }
11757
11652
  for (const d2 of a2) this.chapterLastUsed.set(d2, n9);
11758
11653
  const l = [...i2.entries()].map(([e15, t3]) => {
11759
11654
  const [s3, n10] = e15.split(":");
@@ -13074,13 +12969,6 @@ const _ChapterManagerPlugin = class _ChapterManagerPlugin2 extends BasePlugin {
13074
12969
  }
13075
12970
  if (visibleChapters.size === 0) return;
13076
12971
  const focalLoc = this.virtualPageMap.atIndex(focalIdx);
13077
- if (focalLoc) {
13078
- const focalChapter = this.findChapter(focalLoc.chapterId);
13079
- if (focalChapter) {
13080
- const focalSeg = i(focalChapter, focalLoc.localPageIndex);
13081
- setSegPriority(focalLoc.chapterId, focalSeg + 1);
13082
- }
13083
- }
13084
12972
  for (const cid of visibleChapters) {
13085
12973
  this.chapterLastUsed.set(cid, now);
13086
12974
  }