@eternalheart/vue-file-preview 1.7.0 → 1.7.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.
Files changed (46) hide show
  1. package/README.md +2 -0
  2. package/README.zh-CN.md +2 -0
  3. package/lib/FilePreviewContent.vue.d.ts +9 -1
  4. package/lib/FilePreviewEmbed.vue.d.ts +6 -1
  5. package/lib/FilePreviewModal.vue.d.ts +6 -1
  6. package/lib/chunks/{EmptyState.vue_vue_type_script_setup_true_lang--ZOobbGi.mjs → EmptyState.vue_vue_type_script_setup_true_lang-Dna6LmVT.mjs} +1 -1
  7. package/lib/chunks/{avifLoader-CAUzjn-d-CnJpGYJ2.mjs → avifLoader-CAUzjn-d-dPsP28D5.mjs} +1 -1
  8. package/lib/chunks/{heicLoader-D_9PukkA-g_dLrWLP.mjs → heicLoader-D_9PukkA-T-k1DSgY.mjs} +1 -1
  9. package/lib/chunks/{index-c-pYJEmH.mjs → index-B5hprvcF.mjs} +1747 -1709
  10. package/lib/chunks/index-BN__EwfT.mjs +333 -0
  11. package/lib/chunks/{index-z9RqL2wI.mjs → index-BPutNVAf.mjs} +453 -453
  12. package/lib/chunks/{index-BfOWoMpY.mjs → index-B_Spz6Wn.mjs} +77 -77
  13. package/lib/chunks/{index-D5IF9F-D.mjs → index-BjHEHkZ8.mjs} +22 -22
  14. package/lib/chunks/{index-LPGxJDnT.mjs → index-BlZ6RmeR.mjs} +18 -18
  15. package/lib/chunks/{index-CrVQPnFj.mjs → index-C95y29OL.mjs} +18 -18
  16. package/lib/chunks/{index-DFeKS8tR.mjs → index-CegPYMyO.mjs} +22 -22
  17. package/lib/chunks/{index-C4hIk6pa.mjs → index-CqOGKCyE.mjs} +2 -2
  18. package/lib/chunks/{index-6XZXYqbp.mjs → index-Cv3Sg87O.mjs} +29 -32
  19. package/lib/chunks/{index-zLQlyNR2.mjs → index-DHba2Axz.mjs} +62 -62
  20. package/lib/chunks/{index-CWPdNhoe.mjs → index-DInI3RTN.mjs} +60 -60
  21. package/lib/chunks/{index-C8lyQPe3.mjs → index-DXzvgRuo.mjs} +3 -3
  22. package/lib/chunks/{index-BPSzwMOC.mjs → index-DcvlMm9Q.mjs} +46 -46
  23. package/lib/chunks/index-Dnyl1HQk.mjs +51 -0
  24. package/lib/chunks/{index-aKiIuKKx.mjs → index-JjVQZbDt.mjs} +50 -50
  25. package/lib/chunks/{index-DZe0BxAB.mjs → index-QPk2c2Tl.mjs} +20 -20
  26. package/lib/chunks/{index-DM8Dfl-m.mjs → index-TZv0MqBH.mjs} +15 -15
  27. package/lib/chunks/{index-BzwJ0VWu.mjs → index-cRhwUlQN.mjs} +33 -33
  28. package/lib/chunks/{index-BYQ9S7Mk.mjs → index-dOxDeWYi.mjs} +30 -30
  29. package/lib/chunks/{index-Bg8poMIm.mjs → index-eNZr1h6f.mjs} +29 -29
  30. package/lib/chunks/{index-Bf94DwQu.mjs → index-oJF-hur2.mjs} +24 -24
  31. package/lib/chunks/{jp2Loader-Dig19xyo-fCO1knZ0.mjs → jp2Loader-Dig19xyo-hrIg_KJ3.mjs} +1 -1
  32. package/lib/chunks/{psdLoader-C0tKUXXl-DihMskai.mjs → psdLoader-C0tKUXXl-B2cJ4s7t.mjs} +1 -1
  33. package/lib/chunks/{rawLoader-C-tPeFAB-BSfDPl-z.mjs → rawLoader-C-tPeFAB-BNV-Wmzr.mjs} +1 -1
  34. package/lib/chunks/{tiffLoader-BlhByX8w-JY5DaTre.mjs → tiffLoader-BlhByX8w-BzSrLE9Y.mjs} +1 -1
  35. package/lib/chunks/{useShikiHighlight-C-ztcJBE.mjs → useShikiHighlight-CpL0RAQg.mjs} +1 -1
  36. package/lib/composables/usePreviewEvents.d.ts +2 -2
  37. package/lib/composables/useRequest.d.ts +8 -2
  38. package/lib/core/events.d.ts +18 -1
  39. package/lib/core/index.d.ts +1 -1
  40. package/lib/index.cjs +54 -54
  41. package/lib/index.css +1 -1
  42. package/lib/index.d.ts +1 -1
  43. package/lib/index.mjs +5 -5
  44. package/package.json +1 -1
  45. package/lib/chunks/index-C41YET0_.mjs +0 -51
  46. package/lib/chunks/index-GFcSJEwj.mjs +0 -330
package/lib/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { default as FilePreviewContent } from './FilePreviewContent.vue.js';
6
6
  export type { PreviewFile, PreviewFileLink, PreviewFileInput, FileType, PreviewState, ToolbarAction, CustomRenderer, CustomRendererContext, CustomRendererEventPayload, RequestHandler, RequestInitFactory, RequestOptions, Fetcher, ShouldFetchAsBlob, FileContent, FileLoader, } from './types.js';
7
7
  export { normalizeFile, normalizeFiles, getFileType, configurePdfWorker, SUPPORTED_FILE_TYPES, PreviewRequestError, withHeaders, } from './core/index.js';
8
8
  export type { PdfWorkerOptions } from './core/index.js';
9
- export type { PreviewErrorStage, PreviewErrorPayload, PreviewReporter, } from './core/index.js';
9
+ export type { PreviewErrorStage, PreviewErrorPayload, PreviewRenderedPayload, PreviewReporter, } from './core/index.js';
10
10
  export { usePreviewEvents } from './composables/usePreviewEvents.js';
11
11
  export { useTranslator, provideLocale } from './composables/useTranslator.js';
12
12
  export { LOCALE_KEY } from './i18n/localeKey.js';
package/lib/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { G as s, I as r, K as i, i as o, M as l, O as P, P as E, n, S as t, Y as v, Z as F, a0 as w, b as d, u, a1 as m } from "./chunks/index-c-pYJEmH.mjs";
1
+ import { w as s, x as r, y as i, g as o, N as l, C as P, K as E, r as t, j as n, P as v, Z as w, a0 as F, b as d, u, a1 as m } from "./chunks/index-B5hprvcF.mjs";
2
2
  export {
3
3
  s as FilePreviewContent,
4
4
  r as FilePreviewEmbed,
@@ -7,11 +7,11 @@ export {
7
7
  l as PreviewRequestError,
8
8
  P as SUPPORTED_FILE_TYPES,
9
9
  E as VERSION,
10
- n as configurePdfWorker,
11
- t as getFileType,
10
+ t as configurePdfWorker,
11
+ n as getFileType,
12
12
  v as normalizeFile,
13
- F as normalizeFiles,
14
- w as provideLocale,
13
+ w as normalizeFiles,
14
+ F as provideLocale,
15
15
  d as usePreviewEvents,
16
16
  u as useTranslator,
17
17
  m as withHeaders
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eternalheart/vue-file-preview",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "A modern, feature-rich file preview component for Vue 3 with support for images, videos, audio, PDFs, Office documents (Word, Excel, PowerPoint), Markdown, and code files.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.cjs",
@@ -1,51 +0,0 @@
1
- import { defineComponent as m, ref as i, watch as g, openBlock as p, createElementBlock as c, createElementVNode as a, toDisplayString as h, unref as w, createBlock as y } from "vue";
2
- import { u as k, a as x, b, J as T, C as B } from "./index-c-pYJEmH.mjs";
3
- import { _ as E } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
4
- const C = {
5
- key: 0,
6
- class: "vfp-renderer-loading"
7
- }, G = { class: "vfp-renderer-loading-content" }, H = { class: "vfp-renderer-loading-text" }, L = {
8
- key: 2,
9
- class: "vfp-w-full vfp-h-full vfp-overflow-auto vfp-py-6 vfp-px-4"
10
- }, M = ["innerHTML"], J = /* @__PURE__ */ m({
11
- __name: "index",
12
- props: {
13
- url: {}
14
- },
15
- setup(f, { expose: v }) {
16
- const t = f, { t: s } = k(), d = x(), u = b(), l = i(""), n = i(!0), r = i(null), _ = async () => {
17
- u.begin(t.url), n.value = !0, r.value = null, l.value = "";
18
- try {
19
- const e = await d.value(t.url);
20
- if (!e.ok) throw new T("file.load_failed");
21
- const o = await e.arrayBuffer();
22
- l.value = await B(o);
23
- } catch (e) {
24
- console.error(s.value("ppt.parse_failed") + ":", e), r.value = s.value("ppt.parse_failed"), u.error(e);
25
- } finally {
26
- n.value = !1;
27
- }
28
- };
29
- return g(() => t.url, (e) => {
30
- e && _();
31
- }, { immediate: !0 }), v({
32
- getToolbarGroups: () => []
33
- }), (e, o) => n.value ? (p(), c("div", C, [
34
- a("div", G, [
35
- o[0] || (o[0] = a("div", { class: "vfp-renderer-spinner" }, null, -1)),
36
- a("span", H, h(w(s)("common.loading")), 1)
37
- ])
38
- ])) : r.value ? (p(), y(E, {
39
- key: 1,
40
- message: r.value
41
- }, null, 8, ["message"])) : (p(), c("div", L, [
42
- a("div", {
43
- class: "vfp-legacy-ppt-wrap",
44
- innerHTML: l.value
45
- }, null, 8, M)
46
- ]));
47
- }
48
- });
49
- export {
50
- J as default
51
- };
@@ -1,330 +0,0 @@
1
- import { defineComponent as ce, ref as d, watch as Y, onMounted as fe, onBeforeUnmount as pe, openBlock as h, createElementBlock as m, createBlock as ve, createCommentVNode as W, createElementVNode as p, toDisplayString as L, unref as N, normalizeStyle as z, createVNode as de, Fragment as O, renderList as Z } from "vue";
2
- import he from "@likecoin/epub-ts";
3
- import { List as me, ChevronLeft as ge, ChevronRight as be, Minimize2 as xe, Maximize2 as we, X as ye } from "lucide-vue-next";
4
- import { u as ke, a as _e, b as Te } from "./index-c-pYJEmH.mjs";
5
- import { _ as ze } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
6
- import { T as Ce } from "./base.types-DaftHyg7.mjs";
7
- const Se = { class: "vfp-relative vfp-w-full vfp-h-full vfp-flex vfp-justify-center vfp-bg-surface-1 vfp-overflow-hidden" }, We = {
8
- key: 1,
9
- class: "vfp-absolute vfp-inset-0 vfp-renderer-loading vfp-z-10"
10
- }, Me = { class: "vfp-renderer-loading-content" }, Ee = { class: "vfp-renderer-loading-text" }, $e = {
11
- class: "vfp-flex vfp-items-center vfp-justify-between vfp-flex-shrink-0",
12
- style: { padding: "12px 16px", "border-bottom": "1px solid rgba(255,255,255,0.1)" }
13
- }, He = { style: { color: "white", "font-weight": "500", "font-size": "14px" } }, Re = {
14
- class: "vfp-flex-1 vfp-overflow-y-auto",
15
- style: { padding: "8px 4px" }
16
- }, Le = ["title", "onClick", "onMouseenter", "onMouseleave"], Ae = ["title", "onClick", "onMouseenter", "onMouseleave"], Fe = 794, Ie = /* @__PURE__ */ ce({
17
- __name: "index",
18
- props: {
19
- url: {}
20
- },
21
- setup(ee, { expose: te }) {
22
- const C = ee, q = new Ce(), { t: v } = ke(), oe = _e(), G = Te(), g = d(1), w = d(1), r = d(null), M = d(!0), y = d(null), b = d(!1), x = d([]), s = d(!1), A = d("");
23
- Y([g, w, b, s, () => x.value.length], () => {
24
- q.notify();
25
- });
26
- let c = null, e = null, k = 0, _ = null;
27
- const I = () => {
28
- var t;
29
- try {
30
- (t = e == null ? void 0 : e.destroy) == null || t.call(e);
31
- } catch {
32
- }
33
- try {
34
- c == null || c.destroy();
35
- } catch {
36
- }
37
- e = null, c = null, k = 0, _ = null;
38
- }, ae = () => {
39
- e == null || e.prev();
40
- }, re = () => {
41
- e == null || e.next();
42
- }, le = () => {
43
- b.value = !b.value, setTimeout(() => {
44
- r.value && e && (e.resize(r.value.offsetWidth, r.value.offsetHeight), _ && e.display(_), P());
45
- }, 350);
46
- }, ne = () => {
47
- s.value = !s.value;
48
- }, V = (t) => {
49
- A.value = t, e == null || e.display(t), s.value = !1;
50
- }, f = (t) => t === A.value;
51
- te({
52
- getToolbarGroups: () => [
53
- {
54
- items: [
55
- {
56
- type: "button",
57
- icon: me,
58
- tooltip: v.value("toolbar.toc"),
59
- action: ne,
60
- disabled: x.value.length === 0,
61
- active: s.value
62
- }
63
- ]
64
- },
65
- {
66
- items: [
67
- {
68
- type: "button",
69
- icon: ge,
70
- tooltip: v.value("toolbar.prev_page"),
71
- action: ae,
72
- disabled: g.value <= 1
73
- },
74
- {
75
- type: "text",
76
- content: `${g.value} / ${w.value}`,
77
- minWidth: "4rem"
78
- },
79
- {
80
- type: "button",
81
- icon: be,
82
- tooltip: v.value("toolbar.next_page"),
83
- action: re,
84
- disabled: g.value >= w.value
85
- }
86
- ]
87
- },
88
- {
89
- items: [
90
- {
91
- type: "button",
92
- icon: b.value ? xe : we,
93
- tooltip: b.value ? v.value("toolbar.normal_width") : v.value("toolbar.full_width"),
94
- action: le,
95
- active: b.value
96
- }
97
- ]
98
- }
99
- ],
100
- onToolbarChange: (t) => q.subscribe(t)
101
- });
102
- const X = async () => {
103
- if (G.begin(C.url), !!r.value) {
104
- M.value = !0, y.value = null, x.value = [], s.value = !1, r.value.innerHTML = "", I();
105
- try {
106
- let t = C.url;
107
- C.url.startsWith("blob:") && (t = await (await oe.value(C.url)).arrayBuffer());
108
- const l = he(t);
109
- c = l;
110
- const o = new Promise((a, n) => {
111
- l.on("openFailed", (i) => {
112
- n(i instanceof Error ? i : new Error("EPUB open failed"));
113
- });
114
- });
115
- e = l.renderTo(r.value, {
116
- manager: "continuous",
117
- flow: "scrolled",
118
- width: "100%",
119
- height: "100%"
120
- }), e.themes.register("default", {
121
- body: {
122
- background: "#ffffff !important",
123
- color: "#1a1a1a !important",
124
- "font-family": '"Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif !important',
125
- "font-size": "16px !important",
126
- "line-height": "2 !important",
127
- padding: "40px 60px !important",
128
- "max-width": "100% !important",
129
- "box-sizing": "border-box !important",
130
- "word-break": "break-word !important",
131
- "overflow-wrap": "break-word !important"
132
- },
133
- p: { "text-indent": "2em !important", margin: "0.8em 0 !important" },
134
- h1: { "text-align": "center !important", margin: "1.5em 0 1em !important" },
135
- h2: { margin: "1.2em 0 0.8em !important" },
136
- h3: { margin: "1em 0 0.6em !important" },
137
- img: { "max-width": "100% !important", height: "auto !important" },
138
- a: { color: "#2563eb !important", "text-decoration": "none !important" }
139
- }), e.themes.select("default"), await Promise.race([c.ready, o]), c.locations.generate(1024).then(() => {
140
- var i;
141
- if (!c) return;
142
- k = c.locations.length();
143
- const a = e == null ? void 0 : e.currentLocation(), n = ((i = a == null ? void 0 : a.start) == null ? void 0 : i.location) ?? 0;
144
- g.value = n + 1, w.value = k;
145
- }).catch(() => {
146
- });
147
- const T = await Promise.race([c.loaded.navigation, o]);
148
- Array.isArray(T == null ? void 0 : T.toc) && (x.value = T.toc), await Promise.race([e.display(), o]), M.value = !1, g.value = 1, w.value = k || 1, e.on("relocated", (a) => {
149
- var U, J, K;
150
- const n = a;
151
- if ((U = n == null ? void 0 : n.start) != null && U.cfi && (_ = n.start.cfi), (J = n == null ? void 0 : n.start) != null && J.href) {
152
- const B = n.start.href, D = [], Q = (ue) => {
153
- for (const H of ue) {
154
- const R = H.href.split("#")[0];
155
- R && (B === R || B.endsWith("/" + R) || B.endsWith(R)) && D.push(H.href), H.subitems && Q(H.subitems);
156
- }
157
- };
158
- Q(x.value), D.length === 1 && (A.value = D[0]);
159
- }
160
- const i = (K = n == null ? void 0 : n.start) == null ? void 0 : K.location;
161
- typeof i == "number" && k > 0 && (g.value = i + 1, w.value = k);
162
- });
163
- } catch (t) {
164
- console.error(v.value("epub.load_failed") + ":", t), y.value = v.value("epub.load_failed"), M.value = !1, G.error(t);
165
- }
166
- }
167
- };
168
- let E = null, S = null, $ = { width: 0, height: 0 }, j = !0;
169
- const ie = () => {
170
- if (!(!r.value || !e)) {
171
- if (e.resize(r.value.offsetWidth, r.value.offsetHeight), _)
172
- try {
173
- e.display(_);
174
- } catch {
175
- }
176
- P();
177
- }
178
- }, se = () => {
179
- r.value && (E = new ResizeObserver(() => {
180
- if (!r.value) return;
181
- if (j) {
182
- j = !1, $ = { width: r.value.offsetWidth, height: r.value.offsetHeight };
183
- return;
184
- }
185
- const t = { width: r.value.offsetWidth, height: r.value.offsetHeight }, l = Math.abs($.width - t.width), o = Math.abs($.height - t.height);
186
- l < 10 && o < 10 || ($ = t, S !== null && clearTimeout(S), S = window.setTimeout(ie, 350));
187
- }), E.observe(r.value));
188
- };
189
- let u = null;
190
- const F = () => {
191
- var l;
192
- if (!u) return;
193
- const t = u;
194
- if (t.scrollTop + t.clientHeight >= t.scrollHeight - 200)
195
- try {
196
- const o = e == null ? void 0 : e.manager;
197
- (l = o == null ? void 0 : o.check) == null || l.call(o, 500, 500);
198
- } catch {
199
- }
200
- }, P = () => {
201
- u && (u.removeEventListener("scroll", F), u = null);
202
- const t = () => {
203
- var l;
204
- u = ((l = r.value) == null ? void 0 : l.querySelector(".epub-container")) ?? null, u ? u.addEventListener("scroll", F, { passive: !0 }) : requestAnimationFrame(t);
205
- };
206
- requestAnimationFrame(t);
207
- };
208
- return fe(() => {
209
- X(), se(), P();
210
- }), Y(() => C.url, (t) => {
211
- t && X();
212
- }), pe(() => {
213
- E && E.disconnect(), S !== null && clearTimeout(S), u == null || u.removeEventListener("scroll", F), I();
214
- }), (t, l) => (h(), m("div", Se, [
215
- y.value ? (h(), ve(ze, {
216
- key: 0,
217
- message: y.value,
218
- class: "vfp-absolute vfp-inset-0"
219
- }, null, 8, ["message"])) : W("", !0),
220
- M.value && !y.value ? (h(), m("div", We, [
221
- p("div", Me, [
222
- l[2] || (l[2] = p("div", { class: "vfp-renderer-spinner" }, null, -1)),
223
- p("span", Ee, L(N(v)("common.loading")), 1)
224
- ])
225
- ])) : W("", !0),
226
- x.value.length > 0 ? (h(), m("div", {
227
- key: 2,
228
- class: "vfp-absolute vfp-inset-0 vfp-z-20 vfp-flex",
229
- style: z({ opacity: s.value ? 1 : 0, pointerEvents: s.value ? "auto" : "none", transition: "opacity 0.3s" })
230
- }, [
231
- p("div", {
232
- class: "vfp-w-72 vfp-h-full vfp-flex vfp-flex-col",
233
- style: z({
234
- maxWidth: "80%",
235
- background: "rgba(0,0,0,0.9)",
236
- backdropFilter: "blur(12px)",
237
- borderRight: "1px solid rgba(255,255,255,0.1)",
238
- boxShadow: "0 25px 50px -12px rgba(0,0,0,0.25)",
239
- transform: s.value ? "translateX(0)" : "translateX(-100%)",
240
- transition: "transform 0.3s ease"
241
- })
242
- }, [
243
- p("div", $e, [
244
- p("span", He, L(N(v)("toolbar.toc")), 1),
245
- p("button", {
246
- style: { color: "rgba(255,255,255,0.6)", background: "none", border: "none", cursor: "pointer", padding: "4px" },
247
- onClick: l[0] || (l[0] = (o) => s.value = !1)
248
- }, [
249
- de(N(ye), { style: { width: "16px", height: "16px" } })
250
- ])
251
- ]),
252
- p("div", Re, [
253
- (h(!0), m(O, null, Z(x.value, (o, T) => (h(), m(O, {
254
- key: `${o.href}-${T}`
255
- }, [
256
- p("button", {
257
- style: z({
258
- width: "100%",
259
- textAlign: "left",
260
- padding: "8px 12px",
261
- fontSize: "14px",
262
- color: f(o.href) ? "white" : "rgba(255,255,255,0.7)",
263
- fontWeight: f(o.href) ? "500" : "400",
264
- background: f(o.href) ? "rgba(255,255,255,0.15)" : "none",
265
- border: "none",
266
- cursor: "pointer",
267
- borderRadius: "4px",
268
- overflow: "hidden",
269
- textOverflow: "ellipsis",
270
- whiteSpace: "nowrap",
271
- display: "block",
272
- transition: "all 0.15s"
273
- }),
274
- title: o.label,
275
- onClick: (a) => V(o.href),
276
- onMouseenter: (a) => !f(o.href) && (a.target.style.background = "rgba(255,255,255,0.1)"),
277
- onMouseleave: (a) => !f(o.href) && (a.target.style.background = "none")
278
- }, L(o.label.trim()), 45, Le),
279
- o.subitems && o.subitems.length > 0 ? (h(!0), m(O, { key: 0 }, Z(o.subitems, (a, n) => (h(), m("button", {
280
- key: `${a.href}-${n}`,
281
- style: z({
282
- width: "100%",
283
- textAlign: "left",
284
- padding: "8px 12px 8px 28px",
285
- fontSize: "13px",
286
- color: f(a.href) ? "white" : "rgba(255,255,255,0.6)",
287
- fontWeight: f(a.href) ? "500" : "400",
288
- background: f(a.href) ? "rgba(255,255,255,0.15)" : "none",
289
- border: "none",
290
- cursor: "pointer",
291
- borderRadius: "4px",
292
- overflow: "hidden",
293
- textOverflow: "ellipsis",
294
- whiteSpace: "nowrap",
295
- display: "block",
296
- transition: "all 0.15s"
297
- }),
298
- title: a.label,
299
- onClick: (i) => V(a.href),
300
- onMouseenter: (i) => !f(a.href) && (i.target.style.background = "rgba(255,255,255,0.1)"),
301
- onMouseleave: (i) => !f(a.href) && (i.target.style.background = "none")
302
- }, L(a.label.trim()), 45, Ae))), 128)) : W("", !0)
303
- ], 64))), 128))
304
- ])
305
- ], 4),
306
- p("div", {
307
- class: "vfp-flex-1",
308
- style: z({ background: s.value ? "rgba(0,0,0,0.3)" : "transparent", transition: "background 0.3s" }),
309
- onClick: l[1] || (l[1] = (o) => s.value = !1)
310
- }, null, 4)
311
- ], 4)) : W("", !0),
312
- y.value ? W("", !0) : (h(), m("div", {
313
- key: 3,
314
- ref_key: "viewerRef",
315
- ref: r,
316
- class: "vfp-h-full vfp-bg-surface-toolbar",
317
- style: z({
318
- width: b.value ? "100%" : `${Fe}px`,
319
- maxWidth: "100%",
320
- transition: "width 0.3s ease",
321
- boxShadow: "0 1px 3px rgba(0,0,0,0.12)",
322
- overflow: "hidden"
323
- })
324
- }, null, 4))
325
- ]));
326
- }
327
- });
328
- export {
329
- Ie as default
330
- };