pdf-tsx 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,325 +10,379 @@ import { useOverlayRects as ne } from "../hooks/useOverlayRects.js";
10
10
  import { computeFit as o } from "../utils/pdfFit.js";
11
11
  import { ThemeProvider as re } from "../context/ThemeContext.js";
12
12
  import { LabelsProvider as ie } from "../context/LabelsContext.js";
13
- import s from "./PDFViewer.module.js";
14
- import { useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
13
+ import { useLabels as s } from "../hooks/useLabels.js";
14
+ import c from "./PDFViewer.module.js";
15
+ import { useCallback as l, useEffect as u, useMemo as d, useRef as f, useState as p } from "react";
15
16
  import * as ae from "pdfjs-dist";
16
- import { Fragment as oe, jsx as p, jsxs as m } from "react/jsx-runtime";
17
+ import { Fragment as oe, jsx as m, jsxs as h } from "react/jsx-runtime";
17
18
  //#region src/components/PDFViewer.tsx
18
- var h = 2, g = ({ file: g, workerSrc: _, sidebar: se, toolbar: v, onChangeFile: y, themeOverrides: ce, defaultTheme: le, defaultFit: b, language: ue, className: x, style: de }) => {
19
- l(() => {
19
+ var g = 2;
20
+ function se({ hasRead: e }) {
21
+ let t = s();
22
+ return /* @__PURE__ */ h("div", {
23
+ className: `${c.requireReadBanner} ${e ? c.requireReadDone : ""}`,
24
+ children: [e ? /* @__PURE__ */ m("svg", {
25
+ width: "16",
26
+ height: "16",
27
+ viewBox: "0 0 16 16",
28
+ fill: "none",
29
+ "aria-hidden": "true",
30
+ children: /* @__PURE__ */ m("path", {
31
+ d: "M3 8l3.5 3.5L13 4.5",
32
+ stroke: "currentColor",
33
+ strokeWidth: "2",
34
+ strokeLinecap: "round",
35
+ strokeLinejoin: "round"
36
+ })
37
+ }) : /* @__PURE__ */ m("svg", {
38
+ width: "16",
39
+ height: "16",
40
+ viewBox: "0 0 16 16",
41
+ fill: "none",
42
+ "aria-hidden": "true",
43
+ children: /* @__PURE__ */ m("path", {
44
+ d: "M8 3v10M4 9l4 4 4-4",
45
+ stroke: "currentColor",
46
+ strokeWidth: "2",
47
+ strokeLinecap: "round",
48
+ strokeLinejoin: "round"
49
+ })
50
+ }), /* @__PURE__ */ m("span", { children: e ? t.requireReadDone : t.requireReadPending })]
51
+ });
52
+ }
53
+ var _ = ({ file: s, workerSrc: _, sidebar: ce, toolbar: v, onChangeFile: y, themeOverrides: le, defaultTheme: ue, defaultFit: b, language: de, className: x, style: fe, requireRead: S, onDocumentRead: C }) => {
54
+ u(() => {
20
55
  ae.GlobalWorkerOptions.workerSrc = _;
21
56
  }, [_]);
22
- let [S, C] = f(1), [w, T] = f(0), [E, D] = f(null), [O, k] = f([]), [A, fe] = f(!1), [j, M] = f(b ?? null), [N, P] = f(null), F = d(null), I = d([]), L = d([]), R = d(w);
23
- l(() => {
24
- R.current = w;
25
- }, [w]);
26
- let [z, B] = f(null);
27
- z !== g && (B(g), D(null));
28
- let { pdf: V, numPages: H, loading: pe } = ee(g);
29
- l(() => {
30
- V && (I.current = Array(V.numPages).fill(null), L.current = Array(V.numPages).fill(null));
31
- }, [V]), l(() => {
32
- !V || !b || !F.current || o(b, V, F.current, R.current).then(C);
33
- }, [V, b]);
34
- let U = d(j);
35
- l(() => {
36
- U.current = j;
37
- }, [j]), l(() => {
38
- if (!V || !F.current) return;
39
- let e = F.current, t = new ResizeObserver(() => {
40
- U.current && o(U.current, V, e, R.current).then(C);
57
+ let [w, T] = p(1), [E, D] = p(0), [O, k] = p(null), [A, pe] = p([]), [j, me] = p(!1), [M, N] = p(b ?? null), [P, F] = p(null), [I, L] = p(!1), R = f(!1), z = f(null), B = f([]), V = f([]), H = f(E);
58
+ u(() => {
59
+ H.current = E;
60
+ }, [E]);
61
+ let [he, ge] = p(null);
62
+ he !== s && (ge(s), k(null), L(!1), R.current = !1);
63
+ let { pdf: U, numPages: W, loading: _e } = ee(s);
64
+ u(() => {
65
+ L(!1), R.current = !1;
66
+ }, [S]), u(() => {
67
+ U && (B.current = Array(U.numPages).fill(null), V.current = Array(U.numPages).fill(null));
68
+ }, [U]), u(() => {
69
+ !U || !b || !z.current || o(b, U, z.current, H.current).then(T);
70
+ }, [U, b]);
71
+ let G = f(M);
72
+ u(() => {
73
+ G.current = M;
74
+ }, [M]), u(() => {
75
+ if (!U || !z.current) return;
76
+ let e = z.current, t = new ResizeObserver(() => {
77
+ G.current && o(G.current, U, e, H.current).then(T);
41
78
  });
42
79
  return t.observe(e), () => t.disconnect();
43
- }, [V]);
44
- let { currentPage: W, goToPage: G } = t({
45
- numPages: H,
46
- containerRef: F,
47
- pageRefs: I
48
- }), K = u(() => {
49
- if (H === 0) return [];
50
- let e = /* @__PURE__ */ new Set(), t = Math.max(W - h, 1), n = Math.min(W + h, H);
80
+ }, [U]);
81
+ let { currentPage: K, goToPage: q } = t({
82
+ numPages: W,
83
+ containerRef: z,
84
+ pageRefs: B
85
+ });
86
+ u(() => {
87
+ !S || I || W === 0 || K >= W && (L(!0), R.current || (R.current = !0, C?.()));
88
+ }, [
89
+ K,
90
+ W,
91
+ S,
92
+ I,
93
+ C
94
+ ]);
95
+ let J = d(() => {
96
+ if (W === 0) return [];
97
+ let e = /* @__PURE__ */ new Set(), t = Math.max(K - g, 1), n = Math.min(K + g, W);
51
98
  for (let r = t; r <= n; r++) e.add(r);
52
- E && e.add(E.page);
53
- for (let t of O) e.add(t.page);
99
+ O && e.add(O.page);
100
+ for (let t of A) e.add(t.page);
54
101
  return Array.from(e).sort((e, t) => e - t);
55
102
  }, [
103
+ K,
56
104
  W,
57
- H,
58
- E,
59
- O
60
- ]), { pageSizes: me, renderedPages: q } = te({
61
- pdf: V,
62
- zoom: S,
63
- rotation: w,
64
- visiblePages: K,
65
- canvasRefs: L
66
- }), J = u(() => {
67
- let e = new Set(K);
68
- for (let t of q) e.add(t);
105
+ O,
106
+ A
107
+ ]), { pageSizes: ve, renderedPages: Y } = te({
108
+ pdf: U,
109
+ zoom: w,
110
+ rotation: E,
111
+ visiblePages: J,
112
+ canvasRefs: V
113
+ }), X = d(() => {
114
+ let e = new Set(J);
115
+ for (let t of Y) e.add(t);
69
116
  return Array.from(e).sort((e, t) => e - t);
70
- }, [K, q]);
117
+ }, [J, Y]);
71
118
  n({
72
- pdf: V,
73
- currentPage: W,
74
- goToPage: G,
75
- setZoom: C,
76
- setRotation: T,
77
- setFitMode: M
119
+ pdf: U,
120
+ currentPage: K,
121
+ goToPage: q,
122
+ setZoom: T,
123
+ setRotation: D,
124
+ setFitMode: N
78
125
  });
79
- let he = r({
80
- pdf: V,
81
- zoom: S,
82
- rotation: w,
83
- mountedPages: J,
84
- canvasRefs: L
85
- }), { linkOverlays: ge, noteOverlays: _e } = a({
86
- pdf: V,
87
- zoom: S,
88
- rotation: w,
89
- mountedPages: J,
90
- goToPage: G
126
+ let ye = r({
127
+ pdf: U,
128
+ zoom: w,
129
+ rotation: E,
130
+ mountedPages: X,
131
+ canvasRefs: V
132
+ }), { linkOverlays: be, noteOverlays: xe } = a({
133
+ pdf: U,
134
+ zoom: w,
135
+ rotation: E,
136
+ mountedPages: X,
137
+ goToPage: q
91
138
  });
92
- l(() => {
93
- if (!N) return;
94
- let e = () => P(null), t = (e) => {
95
- e.key === "Escape" && P(null);
139
+ u(() => {
140
+ if (!P) return;
141
+ let e = () => F(null), t = (e) => {
142
+ e.key === "Escape" && F(null);
96
143
  };
97
144
  return document.addEventListener("click", e), document.addEventListener("keydown", t), () => {
98
145
  document.removeEventListener("click", e), document.removeEventListener("keydown", t);
99
146
  };
100
- }, [N]);
101
- let { overlayRect: Y, searchOverlays: ve } = ne({
102
- pdf: V,
103
- highlight: E,
104
- searchMatches: O,
105
- zoom: S,
106
- rotation: w
107
- }), ye = c((e, t) => {
147
+ }, [P]);
148
+ let { overlayRect: Z, searchOverlays: Se } = ne({
149
+ pdf: U,
150
+ highlight: O,
151
+ searchMatches: A,
152
+ zoom: w,
153
+ rotation: E
154
+ }), Ce = l((e, t) => {
108
155
  (!e.url || !i(e.url)) && (t.preventDefault(), e.url || e._handleClick());
109
- }, []), X = d(null), Z = c((e, t) => {
110
- X.current && clearTimeout(X.current);
156
+ }, []), Q = f(null), we = l((e, t) => {
157
+ Q.current && clearTimeout(Q.current);
111
158
  let n = t.clientY > window.innerHeight * .6;
112
- P({
159
+ F({
113
160
  x: Math.min(t.clientX, window.innerWidth - 304),
114
161
  y: n ? window.innerHeight - t.clientY + 8 : t.clientY + 12,
115
162
  above: n,
116
163
  contents: e.contents,
117
164
  title: e.title
118
165
  });
119
- }, []), Q = c(() => {
120
- X.current = setTimeout(() => P(null), 200);
121
- }, []), $ = c((e) => {
122
- D({
166
+ }, []), $ = l(() => {
167
+ Q.current = setTimeout(() => F(null), 200);
168
+ }, []), Te = l((e) => {
169
+ k({
123
170
  page: e.page,
124
171
  pdfRect: e.pdfRect
125
- }), G(e.page);
126
- }, [D, G]), be = u(() => ({
127
- pdf: V,
128
- numPages: H,
129
- zoom: S,
130
- setZoom: C,
131
- rotation: w,
132
- setRotation: T,
133
- currentPage: W,
134
- goToPage: G,
135
- containerRef: F,
136
- canvasRefs: L,
137
- file: g,
138
- highlight: E,
139
- setHighlight: D,
140
- searchMatches: O,
141
- setSearchMatches: k,
172
+ }), q(e.page);
173
+ }, [k, q]), Ee = d(() => ({
174
+ pdf: U,
175
+ numPages: W,
176
+ zoom: w,
177
+ setZoom: T,
178
+ rotation: E,
179
+ setRotation: D,
180
+ currentPage: K,
181
+ goToPage: q,
182
+ containerRef: z,
183
+ canvasRefs: V,
184
+ file: s,
185
+ highlight: O,
186
+ setHighlight: k,
187
+ searchMatches: A,
188
+ setSearchMatches: pe,
142
189
  onChangeFile: y,
143
- sidebarCollapsed: A,
144
- setSidebarCollapsed: fe,
145
- fitMode: j,
146
- setFitMode: M
190
+ sidebarCollapsed: j,
191
+ setSidebarCollapsed: me,
192
+ fitMode: M,
193
+ setFitMode: N,
194
+ navigationLocked: !!S && !I
147
195
  }), [
148
- V,
149
- H,
150
- S,
151
- w,
196
+ U,
152
197
  W,
153
- G,
154
- g,
198
+ w,
155
199
  E,
200
+ K,
201
+ q,
202
+ s,
156
203
  O,
157
- y,
158
204
  A,
159
- j
205
+ y,
206
+ j,
207
+ M,
208
+ S,
209
+ I
160
210
  ]);
161
- return /* @__PURE__ */ p(re, {
162
- themeOverrides: ce,
163
- defaultTheme: le,
164
- children: /* @__PURE__ */ p(ie, {
165
- language: ue,
166
- children: /* @__PURE__ */ m(e.Provider, {
167
- value: be,
168
- children: [/* @__PURE__ */ m("div", {
169
- className: `${s.appLayout}${x ? ` ${x}` : ""}`,
170
- style: de,
171
- children: [v && /* @__PURE__ */ p("div", {
172
- className: s.toolbar,
211
+ return /* @__PURE__ */ m(re, {
212
+ themeOverrides: le,
213
+ defaultTheme: ue,
214
+ children: /* @__PURE__ */ m(ie, {
215
+ language: de,
216
+ children: /* @__PURE__ */ h(e.Provider, {
217
+ value: Ee,
218
+ children: [/* @__PURE__ */ h("div", {
219
+ className: `${c.appLayout}${x ? ` ${x}` : ""}`,
220
+ style: fe,
221
+ children: [v && /* @__PURE__ */ m("div", {
222
+ className: c.toolbar,
173
223
  children: v
174
- }), /* @__PURE__ */ m("div", {
175
- className: s.body,
176
- children: [se, /* @__PURE__ */ m("div", {
177
- className: s.scrollContainer,
178
- ref: F,
179
- children: [pe && /* @__PURE__ */ p("div", { className: s.documentLoading }), Array.from({ length: H }, (e, t) => {
180
- let n = q.has(t + 1), r = me[t], a = J.includes(t + 1);
181
- return /* @__PURE__ */ m("div", {
182
- className: s.pageWrapper,
183
- ref: (e) => {
184
- I.current[t] = e;
185
- },
186
- style: r ? {
187
- width: r.width,
188
- height: r.height
189
- } : void 0,
190
- children: [
191
- r && !n && /* @__PURE__ */ p("div", {
192
- className: s.pageSkeleton,
193
- style: {
194
- width: r.width,
195
- height: r.height
196
- }
197
- }),
198
- a && /* @__PURE__ */ m(oe, { children: [/* @__PURE__ */ p("canvas", {
199
- className: s.pageCanvas,
200
- ref: (e) => {
201
- L.current[t] = e;
202
- },
203
- style: { display: n ? "block" : "none" }
204
- }), /* @__PURE__ */ p("div", {
205
- className: `textLayer ${s.textLayer}`,
206
- ref: (e) => {
207
- he.current[t] = e;
208
- }
209
- })] }),
210
- ge.filter((e) => e.page === t + 1).map((e, t) => /* @__PURE__ */ p("a", {
211
- className: s.linkOverlay,
212
- href: e.url && i(e.url) ? e.url : "#",
213
- target: "_blank",
214
- rel: "noopener noreferrer",
215
- style: {
216
- left: e.x,
217
- top: e.y,
218
- width: e.width,
219
- height: e.height
220
- },
221
- onClick: (t) => ye(e, t)
222
- }, t)),
223
- _e.filter((e) => e.page === t + 1).map((e, t) => e.subtype === "Text" ? /* @__PURE__ */ p("div", {
224
- className: s.noteIconOverlay,
225
- style: {
226
- left: e.x,
227
- top: e.y,
228
- width: Math.max(e.width, 26),
229
- height: Math.max(e.height, 26)
230
- },
231
- onMouseEnter: (t) => Z(e, t),
232
- onMouseLeave: Q,
233
- onClick: () => $(e),
234
- children: /* @__PURE__ */ m("svg", {
235
- width: "22",
236
- height: "22",
237
- viewBox: "0 0 12 12",
238
- fill: "none",
239
- "aria-hidden": "true",
240
- children: [
241
- /* @__PURE__ */ p("rect", {
242
- x: "0.5",
243
- y: "0.5",
244
- width: "9",
245
- height: "8",
246
- rx: "1",
247
- fill: "rgba(255,210,0,0.9)",
248
- stroke: "rgba(160,120,0,0.7)",
249
- strokeWidth: "1"
250
- }),
251
- /* @__PURE__ */ p("path", {
252
- d: "M9.5 5.5v3l2.5-3z",
253
- fill: "rgba(255,210,0,0.9)",
254
- stroke: "rgba(160,120,0,0.7)",
255
- strokeWidth: "1"
256
- }),
257
- /* @__PURE__ */ p("line", {
258
- x1: "2",
259
- y1: "3",
260
- x2: "8",
261
- y2: "3",
262
- stroke: "rgba(90,60,0,0.8)",
263
- strokeWidth: "1",
264
- strokeLinecap: "round"
265
- }),
266
- /* @__PURE__ */ p("line", {
267
- x1: "2",
268
- y1: "5.5",
269
- x2: "7",
270
- y2: "5.5",
271
- stroke: "rgba(90,60,0,0.8)",
272
- strokeWidth: "1",
273
- strokeLinecap: "round"
274
- })
275
- ]
224
+ }), /* @__PURE__ */ h("div", {
225
+ className: c.body,
226
+ children: [ce, /* @__PURE__ */ h("div", {
227
+ className: c.scrollContainer,
228
+ ref: z,
229
+ children: [
230
+ _e && /* @__PURE__ */ m("div", { className: c.documentLoading }),
231
+ Array.from({ length: W }, (e, t) => {
232
+ let n = Y.has(t + 1), r = ve[t], a = X.includes(t + 1);
233
+ return /* @__PURE__ */ h("div", {
234
+ className: c.pageWrapper,
235
+ ref: (e) => {
236
+ B.current[t] = e;
237
+ },
238
+ style: r ? {
239
+ width: r.width,
240
+ height: r.height
241
+ } : void 0,
242
+ children: [
243
+ r && !n && /* @__PURE__ */ m("div", {
244
+ className: c.pageSkeleton,
245
+ style: {
246
+ width: r.width,
247
+ height: r.height
248
+ }
249
+ }),
250
+ a && /* @__PURE__ */ h(oe, { children: [/* @__PURE__ */ m("canvas", {
251
+ className: c.pageCanvas,
252
+ ref: (e) => {
253
+ V.current[t] = e;
254
+ },
255
+ style: { display: n ? "block" : "none" }
256
+ }), /* @__PURE__ */ m("div", {
257
+ className: `textLayer ${c.textLayer}`,
258
+ ref: (e) => {
259
+ ye.current[t] = e;
260
+ }
261
+ })] }),
262
+ be.filter((e) => e.page === t + 1).map((e, t) => /* @__PURE__ */ m("a", {
263
+ className: c.linkOverlay,
264
+ href: e.url && i(e.url) ? e.url : "#",
265
+ target: "_blank",
266
+ rel: "noopener noreferrer",
267
+ style: {
268
+ left: e.x,
269
+ top: e.y,
270
+ width: e.width,
271
+ height: e.height
272
+ },
273
+ onClick: (t) => Ce(e, t)
274
+ }, t)),
275
+ xe.filter((e) => e.page === t + 1).map((e, t) => e.subtype === "Text" ? /* @__PURE__ */ m("div", {
276
+ className: c.noteIconOverlay,
277
+ style: {
278
+ left: e.x,
279
+ top: e.y,
280
+ width: Math.max(e.width, 26),
281
+ height: Math.max(e.height, 26)
282
+ },
283
+ onMouseEnter: (t) => we(e, t),
284
+ onMouseLeave: $,
285
+ onClick: () => Te(e),
286
+ children: /* @__PURE__ */ h("svg", {
287
+ width: "22",
288
+ height: "22",
289
+ viewBox: "0 0 12 12",
290
+ fill: "none",
291
+ "aria-hidden": "true",
292
+ children: [
293
+ /* @__PURE__ */ m("rect", {
294
+ x: "0.5",
295
+ y: "0.5",
296
+ width: "9",
297
+ height: "8",
298
+ rx: "1",
299
+ fill: "rgba(255,210,0,0.9)",
300
+ stroke: "rgba(160,120,0,0.7)",
301
+ strokeWidth: "1"
302
+ }),
303
+ /* @__PURE__ */ m("path", {
304
+ d: "M9.5 5.5v3l2.5-3z",
305
+ fill: "rgba(255,210,0,0.9)",
306
+ stroke: "rgba(160,120,0,0.7)",
307
+ strokeWidth: "1"
308
+ }),
309
+ /* @__PURE__ */ m("line", {
310
+ x1: "2",
311
+ y1: "3",
312
+ x2: "8",
313
+ y2: "3",
314
+ stroke: "rgba(90,60,0,0.8)",
315
+ strokeWidth: "1",
316
+ strokeLinecap: "round"
317
+ }),
318
+ /* @__PURE__ */ m("line", {
319
+ x1: "2",
320
+ y1: "5.5",
321
+ x2: "7",
322
+ y2: "5.5",
323
+ stroke: "rgba(90,60,0,0.8)",
324
+ strokeWidth: "1",
325
+ strokeLinecap: "round"
326
+ })
327
+ ]
328
+ })
329
+ }, t) : /* @__PURE__ */ m("div", {
330
+ className: c.noteOverlay,
331
+ style: {
332
+ left: e.x,
333
+ top: e.y,
334
+ width: e.width,
335
+ height: e.height
336
+ },
337
+ onMouseEnter: (t) => we(e, t),
338
+ onMouseLeave: $,
339
+ onClick: () => Te(e)
340
+ }, t)),
341
+ Se.filter((e) => e.page === t + 1).map((e, t) => /* @__PURE__ */ m("div", {
342
+ className: c.searchMatchOverlay,
343
+ style: {
344
+ left: e.x,
345
+ top: e.y,
346
+ width: e.width,
347
+ height: e.height
348
+ }
349
+ }, t)),
350
+ O && Z?.page === t + 1 && /* @__PURE__ */ m("div", {
351
+ className: c.highlightOverlay,
352
+ style: {
353
+ left: Z.x,
354
+ top: Z.y,
355
+ width: Z.width,
356
+ height: Z.height
357
+ }
276
358
  })
277
- }, t) : /* @__PURE__ */ p("div", {
278
- className: s.noteOverlay,
279
- style: {
280
- left: e.x,
281
- top: e.y,
282
- width: e.width,
283
- height: e.height
284
- },
285
- onMouseEnter: (t) => Z(e, t),
286
- onMouseLeave: Q,
287
- onClick: () => $(e)
288
- }, t)),
289
- ve.filter((e) => e.page === t + 1).map((e, t) => /* @__PURE__ */ p("div", {
290
- className: s.searchMatchOverlay,
291
- style: {
292
- left: e.x,
293
- top: e.y,
294
- width: e.width,
295
- height: e.height
296
- }
297
- }, t)),
298
- E && Y?.page === t + 1 && /* @__PURE__ */ p("div", {
299
- className: s.highlightOverlay,
300
- style: {
301
- left: Y.x,
302
- top: Y.y,
303
- width: Y.width,
304
- height: Y.height
305
- }
306
- })
307
- ]
308
- }, `${t}-${w}`);
309
- })]
359
+ ]
360
+ }, `${t}-${E}`);
361
+ }),
362
+ S && /* @__PURE__ */ m(se, { hasRead: I })
363
+ ]
310
364
  })]
311
365
  })]
312
- }), N && /* @__PURE__ */ m("div", {
313
- className: s.notePopover,
314
- style: N.above ? {
315
- left: N.x,
316
- bottom: N.y
366
+ }), P && /* @__PURE__ */ h("div", {
367
+ className: c.notePopover,
368
+ style: P.above ? {
369
+ left: P.x,
370
+ bottom: P.y
317
371
  } : {
318
- left: N.x,
319
- top: N.y
372
+ left: P.x,
373
+ top: P.y
320
374
  },
321
375
  onMouseEnter: () => {
322
- X.current && clearTimeout(X.current);
376
+ Q.current && clearTimeout(Q.current);
323
377
  },
324
- onMouseLeave: Q,
378
+ onMouseLeave: $,
325
379
  onClick: (e) => e.stopPropagation(),
326
- children: [N.title && /* @__PURE__ */ p("div", {
327
- className: s.notePopoverTitle,
328
- children: N.title
329
- }), /* @__PURE__ */ p("p", {
330
- className: s.notePopoverContent,
331
- children: N.contents
380
+ children: [P.title && /* @__PURE__ */ m("div", {
381
+ className: c.notePopoverTitle,
382
+ children: P.title
383
+ }), /* @__PURE__ */ m("p", {
384
+ className: c.notePopoverContent,
385
+ children: P.contents
332
386
  })]
333
387
  })]
334
388
  })
@@ -336,4 +390,4 @@ var h = 2, g = ({ file: g, workerSrc: _, sidebar: se, toolbar: v, onChangeFile:
336
390
  });
337
391
  };
338
392
  //#endregion
339
- export { g as default };
393
+ export { _ as default };