@eternalheart/vue-file-preview 1.7.2 → 1.8.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.
- package/README.md +28 -0
- package/README.zh-CN.md +28 -0
- package/lib/FilePreviewContent.vue.d.ts +25 -11
- package/lib/FilePreviewEmbed.vue.d.ts +20 -11
- package/lib/FilePreviewModal.vue.d.ts +20 -11
- package/lib/chunks/{EmptyState.vue_vue_type_script_setup_true_lang-Dna6LmVT.mjs → EmptyState.vue_vue_type_script_setup_true_lang-98G0nOSe.mjs} +1 -1
- package/lib/chunks/{avifLoader-CAUzjn-d-dPsP28D5.mjs → avifLoader-CAUzjn-d-BaqsWKGB.mjs} +1 -1
- package/lib/chunks/{heicLoader-D_9PukkA-T-k1DSgY.mjs → heicLoader-D_9PukkA-C9OkgWGg.mjs} +1 -1
- package/lib/chunks/index-B5B5upNy.mjs +112 -0
- package/lib/chunks/{index-cRhwUlQN.mjs → index-B9xl_UYv.mjs} +26 -26
- package/lib/chunks/{index-B5hprvcF.mjs → index-BKpp6GvN.mjs} +2516 -2085
- package/lib/chunks/{index-oJF-hur2.mjs → index-BNNGXI8X.mjs} +1 -1
- package/lib/chunks/{index-eNZr1h6f.mjs → index-BV5eiYIr.mjs} +23 -23
- package/lib/chunks/{index-BjHEHkZ8.mjs → index-Bghv1art.mjs} +1 -1
- package/lib/chunks/{index-TZv0MqBH.mjs → index-Bl530kxA.mjs} +5 -5
- package/lib/chunks/index-CCHdh2Ta.mjs +220 -0
- package/lib/chunks/{index-QPk2c2Tl.mjs → index-CDd2zFE5.mjs} +2 -2
- package/lib/chunks/{index-C95y29OL.mjs → index-CHpO-VOr.mjs} +19 -19
- package/lib/chunks/index-CSxcgc5S.mjs +401 -0
- package/lib/chunks/{index-Cv3Sg87O.mjs → index-CcyrSSZO.mjs} +17 -17
- package/lib/chunks/{index-JjVQZbDt.mjs → index-CzBIAq6E.mjs} +25 -25
- package/lib/chunks/{index-BPutNVAf.mjs → index-D-18qa-n.mjs} +1 -1
- package/lib/chunks/{index-BN__EwfT.mjs → index-D4OWPWnl.mjs} +1 -1
- package/lib/chunks/{index-Dnyl1HQk.mjs → index-DcEoeHsV.mjs} +10 -10
- package/lib/chunks/{index-DInI3RTN.mjs → index-DjCn0C-U.mjs} +33 -33
- package/lib/chunks/{index-DHba2Axz.mjs → index-Dtr0MERf.mjs} +53 -53
- package/lib/chunks/{index-CqOGKCyE.mjs → index-UBINFnHY.mjs} +1 -1
- package/lib/chunks/{index-BlZ6RmeR.mjs → index-YyZE4Nkm.mjs} +4 -4
- package/lib/chunks/{index-CegPYMyO.mjs → index-mdCIanDM.mjs} +27 -27
- package/lib/chunks/{index-DXzvgRuo.mjs → index-s_jqndx-.mjs} +1 -1
- package/lib/chunks/{jp2Loader-Dig19xyo-hrIg_KJ3.mjs → jp2Loader-Dig19xyo-CD7_CVVV.mjs} +1 -1
- package/lib/chunks/{psdLoader-C0tKUXXl-B2cJ4s7t.mjs → psdLoader-C0tKUXXl-Bf25O3n4.mjs} +1 -1
- package/lib/chunks/{rawLoader-C-tPeFAB-BNV-Wmzr.mjs → rawLoader-C-tPeFAB-CZ65svhu.mjs} +5 -5
- package/lib/chunks/{tiffLoader-BlhByX8w-BzSrLE9Y.mjs → tiffLoader-BlhByX8w-BEFJubN7.mjs} +1 -1
- package/lib/chunks/{useShikiHighlight-CpL0RAQg.mjs → useShikiHighlight-axL5ux5r.mjs} +1 -1
- package/lib/composables/useRendererBridge.d.ts +19 -0
- package/lib/composables/useRequest.d.ts +1 -13
- package/lib/core/index.d.ts +9 -1
- package/lib/core/renderer-bridge/bridge.d.ts +53 -0
- package/lib/core/renderer-bridge/hub.d.ts +58 -0
- package/lib/core/renderer-bridge/types.d.ts +141 -0
- package/lib/core/types.d.ts +0 -7
- package/lib/core/utils/rendererId.d.ts +7 -0
- package/lib/core/utils/spreadsheetSheets.d.ts +17 -0
- package/lib/index.cjs +60 -60
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.mjs +8 -8
- package/lib/renderers/Xlsx/index.vue.d.ts +4 -0
- package/lib/types.d.ts +7 -2
- package/package.json +1 -1
- package/lib/chunks/index-B_Spz6Wn.mjs +0 -359
- package/lib/chunks/index-DcvlMm9Q.mjs +0 -137
- package/lib/chunks/index-dOxDeWYi.mjs +0 -104
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import { defineComponent as q, ref as v, computed as E, onMounted as ue, onBeforeUnmount as Z, watch as O, openBlock as f, createElementBlock as c, normalizeStyle as D, Fragment as N, createElementVNode as s, normalizeClass as I, toDisplayString as R, unref as w, withDirectives as G, renderSlot as H, vShow as J, resolveComponent as pe, createVNode as j, createBlock as F, resolveDynamicComponent as X, renderList as te, createCommentVNode as ne, defineAsyncComponent as ce, withCtx as Y, Teleport as me } from "vue";
|
|
2
|
+
import { u as le, n as oe, F as he, c as ge, a as we, b as be, d as xe, H as ye, J as Q, k as ke, K as Le, N as ze, U as Se, O as Te } from "./index-BKpp6GvN.mjs";
|
|
3
|
+
import { FileImage as Re, FileText as _e, FileCode as $e, File as Ce, ChevronRight as Ee, FolderOpen as Me, Folder as We } from "lucide-vue-next";
|
|
4
|
+
import { _ as ee } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
|
|
5
|
+
import { T as De } from "./base.types-DaftHyg7.mjs";
|
|
6
|
+
const Fe = { class: "vfp-flex vfp-flex-shrink-0 vfp-border-b vfp-border-line-weak vfp-bg-surface-toolbar" }, Ue = { class: "vfp-flex-1 vfp-min-h-0 vfp-min-w-0 vfp-w-full vfp-overflow-hidden" }, Be = { class: "vfp-flex-1 vfp-min-h-0 vfp-min-w-0 vfp-w-full vfp-overflow-hidden" }, Ie = { class: "vfp-flex-1 vfp-min-w-0 vfp-min-h-0 vfp-overflow-hidden" }, Ne = /* @__PURE__ */ q({
|
|
7
|
+
name: "ResizableSplit",
|
|
8
|
+
__name: "ResizableSplit",
|
|
9
|
+
props: {
|
|
10
|
+
initialLeftWidth: { default: 280 },
|
|
11
|
+
minLeftWidth: { default: 160 },
|
|
12
|
+
maxLeftWidth: { default: 640 },
|
|
13
|
+
minRightWidth: { default: 200 },
|
|
14
|
+
storageKey: {},
|
|
15
|
+
desktopMedia: { default: "(min-width: 768px)" },
|
|
16
|
+
mobileTabMode: { type: Boolean, default: !1 },
|
|
17
|
+
leftTabLabel: {},
|
|
18
|
+
rightTabLabel: {}
|
|
19
|
+
},
|
|
20
|
+
setup(r, { expose: U }) {
|
|
21
|
+
const o = r, { t: p } = le(), b = v(null), d = v(
|
|
22
|
+
(() => {
|
|
23
|
+
if (o.storageKey && typeof window < "u") {
|
|
24
|
+
const a = Number(window.localStorage.getItem(o.storageKey));
|
|
25
|
+
if (!isNaN(a) && a > 0) return a;
|
|
26
|
+
}
|
|
27
|
+
return o.initialLeftWidth;
|
|
28
|
+
})()
|
|
29
|
+
), z = v(!1), k = v(!1), _ = v(!0), x = v("left");
|
|
30
|
+
let i = null, t = null;
|
|
31
|
+
const L = () => {
|
|
32
|
+
i && (k.value = i.matches);
|
|
33
|
+
}, y = E(
|
|
34
|
+
() => k.value && _.value ? { width: `${d.value}px` } : void 0
|
|
35
|
+
), l = E(() => k.value && _.value), S = (a) => {
|
|
36
|
+
if (!b.value) return;
|
|
37
|
+
const m = b.value.getBoundingClientRect(), B = a.clientX - m.left, K = m.width - o.minRightWidth - 6, A = Math.min(o.maxLeftWidth, K);
|
|
38
|
+
d.value = Math.max(
|
|
39
|
+
o.minLeftWidth,
|
|
40
|
+
Math.min(A, B)
|
|
41
|
+
);
|
|
42
|
+
}, $ = () => {
|
|
43
|
+
if (z.value && (z.value = !1, window.removeEventListener("mousemove", S), window.removeEventListener("mouseup", $), document.body.style.cursor = "", document.body.style.userSelect = "", o.storageKey))
|
|
44
|
+
try {
|
|
45
|
+
window.localStorage.setItem(o.storageKey, String(d.value));
|
|
46
|
+
} catch {
|
|
47
|
+
}
|
|
48
|
+
}, C = (a) => {
|
|
49
|
+
a.preventDefault(), z.value = !0, window.addEventListener("mousemove", S), window.addEventListener("mouseup", $), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
50
|
+
};
|
|
51
|
+
ue(() => {
|
|
52
|
+
if (typeof window < "u") {
|
|
53
|
+
i = window.matchMedia(o.desktopMedia), L(), i.addEventListener("change", L);
|
|
54
|
+
const a = () => {
|
|
55
|
+
b.value && (_.value = b.value.getBoundingClientRect().width >= o.minLeftWidth + o.minRightWidth + 6);
|
|
56
|
+
};
|
|
57
|
+
a(), t = typeof ResizeObserver < "u" ? new ResizeObserver(a) : null, t == null || t.observe(b.value);
|
|
58
|
+
}
|
|
59
|
+
}), Z(() => {
|
|
60
|
+
i && i.removeEventListener("change", L), t == null || t.disconnect(), t = null, window.removeEventListener("mousemove", S), window.removeEventListener("mouseup", $), z.value && (document.body.style.cursor = "", document.body.style.userSelect = "");
|
|
61
|
+
}), O(
|
|
62
|
+
() => o.initialLeftWidth,
|
|
63
|
+
(a) => {
|
|
64
|
+
o.storageKey || (d.value = a);
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
const M = (a) => {
|
|
68
|
+
x.value = a;
|
|
69
|
+
};
|
|
70
|
+
return U({ switchTab: M }), (a, m) => (f(), c("div", {
|
|
71
|
+
ref_key: "containerRef",
|
|
72
|
+
ref: b,
|
|
73
|
+
class: "vfp-w-full vfp-h-full vfp-flex vfp-flex-col md:vfp-flex-row vfp-min-h-0 vfp-min-w-0",
|
|
74
|
+
style: D(l.value ? void 0 : { flexDirection: "column" })
|
|
75
|
+
}, [
|
|
76
|
+
r.mobileTabMode && !l.value ? (f(), c(N, { key: 0 }, [
|
|
77
|
+
s("div", Fe, [
|
|
78
|
+
s("button", {
|
|
79
|
+
type: "button",
|
|
80
|
+
class: I(["vfp-flex-1 vfp-py-2.5 vfp-text-sm vfp-transition-colors", x.value === "left" ? "vfp-text-fg-primary vfp-border-b-2 vfp-border-fg-primary -vfp-mb-px" : "vfp-text-fg-secondary"]),
|
|
81
|
+
onClick: m[0] || (m[0] = (B) => M("left"))
|
|
82
|
+
}, R(r.leftTabLabel ?? w(p)("zip.file_tree")), 3),
|
|
83
|
+
s("button", {
|
|
84
|
+
type: "button",
|
|
85
|
+
class: I(["vfp-flex-1 vfp-py-2.5 vfp-text-sm vfp-transition-colors", x.value === "right" ? "vfp-text-fg-primary vfp-border-b-2 vfp-border-fg-primary -vfp-mb-px" : "vfp-text-fg-secondary"]),
|
|
86
|
+
onClick: m[1] || (m[1] = (B) => M("right"))
|
|
87
|
+
}, R(r.rightTabLabel ?? w(p)("toolbar.preview")), 3)
|
|
88
|
+
]),
|
|
89
|
+
G(s("div", Ue, [
|
|
90
|
+
H(a.$slots, "left", {}, void 0, !0)
|
|
91
|
+
], 512), [
|
|
92
|
+
[J, x.value === "left"]
|
|
93
|
+
]),
|
|
94
|
+
G(s("div", Be, [
|
|
95
|
+
H(a.$slots, "right", {}, void 0, !0)
|
|
96
|
+
], 512), [
|
|
97
|
+
[J, x.value === "right"]
|
|
98
|
+
])
|
|
99
|
+
], 64)) : (f(), c(N, { key: 1 }, [
|
|
100
|
+
s("div", {
|
|
101
|
+
class: "vfp-min-h-0 vfp-min-w-0 vfp-flex-shrink-0 vfp-w-full vfp-max-h-60 md:vfp-h-full md:vfp-max-h-none",
|
|
102
|
+
style: D(y.value)
|
|
103
|
+
}, [
|
|
104
|
+
H(a.$slots, "left", {}, void 0, !0)
|
|
105
|
+
], 4),
|
|
106
|
+
s("div", {
|
|
107
|
+
role: "separator",
|
|
108
|
+
"aria-orientation": "vertical",
|
|
109
|
+
class: I(["split-divider vfp-hidden md:vfp-block vfp-relative vfp-w-1.5 vfp-flex-shrink-0 vfp-cursor-col-resize vfp-transition-colors", z.value ? "dragging" : ""]),
|
|
110
|
+
style: D(l.value ? void 0 : { display: "none" }),
|
|
111
|
+
onMousedown: C
|
|
112
|
+
}, [...m[2] || (m[2] = [
|
|
113
|
+
s("span", { class: "vfp-absolute vfp-inset-y-0 hit-area" }, null, -1)
|
|
114
|
+
])], 38),
|
|
115
|
+
s("div", Ie, [
|
|
116
|
+
H(a.$slots, "right", {}, void 0, !0)
|
|
117
|
+
])
|
|
118
|
+
], 64))
|
|
119
|
+
], 4));
|
|
120
|
+
}
|
|
121
|
+
}), Ke = /* @__PURE__ */ oe(Ne, [["__scopeId", "data-v-45379cb1"]]), Pe = { key: 0 }, He = { class: "vfp-truncate vfp-flex-1 vfp-min-w-0" }, Oe = { class: "vfp-flex-1 vfp-truncate vfp-min-w-0" }, je = { class: "vfp-text-xs vfp-text-fg-disabled vfp-flex-shrink-0 vfp-ml-2" }, Ve = { name: "ZipTreeItem" }, Ze = /* @__PURE__ */ q({
|
|
122
|
+
...Ve,
|
|
123
|
+
props: {
|
|
124
|
+
node: {},
|
|
125
|
+
depth: {},
|
|
126
|
+
selectedPath: {},
|
|
127
|
+
expanded: {}
|
|
128
|
+
},
|
|
129
|
+
emits: ["toggle", "select", "hover", "leave"],
|
|
130
|
+
setup(r, { emit: U }) {
|
|
131
|
+
const o = r, p = U, b = E(() => ({ paddingLeft: `${o.depth * 14 + 10}px` })), d = E(() => o.expanded.has(o.node.path)), z = E(() => o.selectedPath === o.node.path), k = E(() => {
|
|
132
|
+
const i = he({ name: o.node.name, type: "" });
|
|
133
|
+
return i === "image" ? Re : i === "text" || i === "markdown" || i === "json" || i === "csv" || i === "xml" || i === "subtitle" ? o.node.name.endsWith(".md") || o.node.name.endsWith(".markdown") ? _e : $e : Ce;
|
|
134
|
+
}), _ = (i) => {
|
|
135
|
+
const t = i.currentTarget.getBoundingClientRect();
|
|
136
|
+
p("hover", o.node.name || "/", t);
|
|
137
|
+
}, x = () => p("leave");
|
|
138
|
+
return (i, t) => {
|
|
139
|
+
const L = pe("ZipTreeItem");
|
|
140
|
+
return r.node.isDir ? (f(), c("div", Pe, [
|
|
141
|
+
s("button", {
|
|
142
|
+
type: "button",
|
|
143
|
+
class: "tree-row dir-row",
|
|
144
|
+
style: D(b.value),
|
|
145
|
+
onClick: t[0] || (t[0] = (y) => p("toggle", r.node.path)),
|
|
146
|
+
onMouseenter: _,
|
|
147
|
+
onMouseleave: x
|
|
148
|
+
}, [
|
|
149
|
+
j(w(Ee), {
|
|
150
|
+
class: I(["vfp-w-3.5 vfp-h-3.5 vfp-flex-shrink-0 vfp-transition-transform", { "vfp-rotate-90": d.value }])
|
|
151
|
+
}, null, 8, ["class"]),
|
|
152
|
+
(f(), F(X(d.value ? w(Me) : w(We)), { class: "vfp-w-4 vfp-h-4 vfp-flex-shrink-0 vfp-text-amber-300/80" })),
|
|
153
|
+
s("span", He, R(r.node.name || "/"), 1)
|
|
154
|
+
], 36),
|
|
155
|
+
d.value && r.node.children ? (f(!0), c(N, { key: 0 }, te(r.node.children, (y) => (f(), F(L, {
|
|
156
|
+
key: y.path,
|
|
157
|
+
node: y,
|
|
158
|
+
depth: r.depth + 1,
|
|
159
|
+
"selected-path": r.selectedPath,
|
|
160
|
+
expanded: r.expanded,
|
|
161
|
+
onToggle: t[1] || (t[1] = (l) => p("toggle", l)),
|
|
162
|
+
onSelect: t[2] || (t[2] = (l) => p("select", l)),
|
|
163
|
+
onHover: t[3] || (t[3] = (l, S) => p("hover", l, S)),
|
|
164
|
+
onLeave: t[4] || (t[4] = (l) => p("leave"))
|
|
165
|
+
}, null, 8, ["node", "depth", "selected-path", "expanded"]))), 128)) : ne("", !0)
|
|
166
|
+
])) : (f(), c("button", {
|
|
167
|
+
key: 1,
|
|
168
|
+
type: "button",
|
|
169
|
+
class: I(["tree-row file-row", { selected: z.value }]),
|
|
170
|
+
style: D(b.value),
|
|
171
|
+
onClick: t[5] || (t[5] = (y) => p("select", r.node)),
|
|
172
|
+
onMouseenter: _,
|
|
173
|
+
onMouseleave: x
|
|
174
|
+
}, [
|
|
175
|
+
t[6] || (t[6] = s("span", { class: "vfp-w-3.5 vfp-h-3.5 vfp-flex-shrink-0" }, null, -1)),
|
|
176
|
+
(f(), F(X(k.value), { class: "vfp-w-4 vfp-h-4 vfp-flex-shrink-0 vfp-text-fg-tertiary" })),
|
|
177
|
+
s("span", Oe, R(r.node.name), 1),
|
|
178
|
+
s("span", je, R(w(ge)(r.node.size)), 1)
|
|
179
|
+
], 38));
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
}), qe = /* @__PURE__ */ oe(Ze, [["__scopeId", "data-v-124c382d"]]), Ae = {
|
|
183
|
+
key: 0,
|
|
184
|
+
class: "vfp-renderer-loading"
|
|
185
|
+
}, Ge = { class: "vfp-renderer-loading-content" }, Je = { class: "vfp-renderer-loading-text" }, Xe = { class: "vfp-w-full vfp-h-full vfp-overflow-auto" }, Ye = { class: "vfp-w-full vfp-h-full vfp-flex vfp-flex-col" }, Qe = {
|
|
186
|
+
key: 0,
|
|
187
|
+
class: "vfp-renderer-loading vfp-flex-1"
|
|
188
|
+
}, et = { class: "vfp-renderer-loading-content" }, tt = { class: "vfp-renderer-loading-text" }, nt = {
|
|
189
|
+
key: 1,
|
|
190
|
+
class: "vfp-flex-1"
|
|
191
|
+
}, lt = {
|
|
192
|
+
key: 2,
|
|
193
|
+
class: "vfp-flex-1 vfp-flex vfp-items-center vfp-justify-center vfp-text-fg-muted vfp-text-sm vfp-p-6"
|
|
194
|
+
}, ot = {
|
|
195
|
+
key: 3,
|
|
196
|
+
class: "vfp-flex-1 vfp-min-h-0 vfp-overflow-hidden vfp-flex vfp-relative vfp-z-0"
|
|
197
|
+
}, vt = /* @__PURE__ */ q({
|
|
198
|
+
__name: "index",
|
|
199
|
+
props: {
|
|
200
|
+
url: {},
|
|
201
|
+
nestingDepth: { default: 0 }
|
|
202
|
+
},
|
|
203
|
+
setup(r, { expose: U }) {
|
|
204
|
+
const o = ce(
|
|
205
|
+
() => import("./index-BKpp6GvN.mjs").then((e) => e.a7)
|
|
206
|
+
), p = r, b = new De(), { t: d } = le(), z = we(), k = be(), _ = (e) => {
|
|
207
|
+
k.error(e.error, e.stage);
|
|
208
|
+
}, x = v(null), i = v(null), t = v(!0), L = v(null), y = v(/* @__PURE__ */ new Set([""])), l = v(null), S = v(!1), $ = v(null), C = v(null), M = v(null), a = v(null), m = () => {
|
|
209
|
+
var e;
|
|
210
|
+
(e = l.value) != null && e.blobUrl && URL.revokeObjectURL(l.value.blobUrl);
|
|
211
|
+
}, B = async () => {
|
|
212
|
+
k.begin(p.url), m(), l.value = null, t.value = !0, L.value = null;
|
|
213
|
+
try {
|
|
214
|
+
const e = await z.value(p.url);
|
|
215
|
+
if (!e.ok) throw new ke("common.load_failed");
|
|
216
|
+
const n = await e.arrayBuffer(), u = await Le(n), h = ze(u), g = Se(h);
|
|
217
|
+
x.value = u, i.value = g;
|
|
218
|
+
const W = /* @__PURE__ */ new Set([""]);
|
|
219
|
+
if (g.children)
|
|
220
|
+
for (const P of g.children) P.isDir && W.add(P.path);
|
|
221
|
+
y.value = W, k.ready();
|
|
222
|
+
} catch (e) {
|
|
223
|
+
console.error(e), L.value = d.value("zip.load_failed"), k.error(e);
|
|
224
|
+
} finally {
|
|
225
|
+
t.value = !1;
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
O(() => p.url, (e) => {
|
|
229
|
+
e && B();
|
|
230
|
+
}, { immediate: !0 }), Z(() => {
|
|
231
|
+
m();
|
|
232
|
+
});
|
|
233
|
+
const K = E(() => {
|
|
234
|
+
if (!i.value) return null;
|
|
235
|
+
let e = 0, n = 0, u = 0;
|
|
236
|
+
const h = (g) => {
|
|
237
|
+
var W;
|
|
238
|
+
g.isDir ? (g.path && n++, (W = g.children) == null || W.forEach(h)) : (e++, u += g.size);
|
|
239
|
+
};
|
|
240
|
+
return h(i.value), { files: e, dirs: n, size: u };
|
|
241
|
+
});
|
|
242
|
+
O(K, () => b.notify()), xe({
|
|
243
|
+
id: "zip",
|
|
244
|
+
getState: () => {
|
|
245
|
+
var n;
|
|
246
|
+
const e = K.value;
|
|
247
|
+
return {
|
|
248
|
+
files: (e == null ? void 0 : e.files) ?? 0,
|
|
249
|
+
dirs: (e == null ? void 0 : e.dirs) ?? 0,
|
|
250
|
+
size: (e == null ? void 0 : e.size) ?? 0,
|
|
251
|
+
selectedPath: ((n = l.value) == null ? void 0 : n.path) ?? null
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
attach: () => {
|
|
255
|
+
},
|
|
256
|
+
destroyNative: () => {
|
|
257
|
+
}
|
|
258
|
+
}), U({
|
|
259
|
+
getToolbarGroups: () => [],
|
|
260
|
+
onToolbarChange: (e) => b.subscribe(e)
|
|
261
|
+
});
|
|
262
|
+
const ae = (e) => {
|
|
263
|
+
const n = new Set(y.value);
|
|
264
|
+
n.has(e) ? n.delete(e) : n.add(e), y.value = n;
|
|
265
|
+
}, ie = (e, n) => {
|
|
266
|
+
const u = typeof window < "u" ? window.innerWidth - 328 : n.right + 8;
|
|
267
|
+
C.value = { text: e, x: Math.max(8, Math.min(n.right + 8, u)), y: n.top + n.height / 2 };
|
|
268
|
+
}, se = () => {
|
|
269
|
+
C.value = null;
|
|
270
|
+
}, re = async (e) => {
|
|
271
|
+
var n, u, h;
|
|
272
|
+
if (!(!x.value || e.isDir || ((n = l.value) == null ? void 0 : n.path) === e.path || a.value === e.path)) {
|
|
273
|
+
a.value = e.path, m(), l.value = null, S.value = !0, $.value = null;
|
|
274
|
+
try {
|
|
275
|
+
const g = Q(e.name), W = await Te(x.value, e.path, g !== "application/octet-stream" ? g : void 0), P = URL.createObjectURL(W);
|
|
276
|
+
l.value = { path: e.path, name: e.name, size: e.size, blobUrl: P }, (u = M.value) == null || u.switchTab("right");
|
|
277
|
+
} catch (g) {
|
|
278
|
+
console.error(g), $.value = d.value("zip.entry_read_failed"), (h = M.value) == null || h.switchTab("right");
|
|
279
|
+
} finally {
|
|
280
|
+
S.value = !1, a.value === e.path && (a.value = null);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}, fe = ye(), V = v(null);
|
|
284
|
+
let T = null;
|
|
285
|
+
const ve = () => {
|
|
286
|
+
var u;
|
|
287
|
+
T == null || T(), T = null;
|
|
288
|
+
const e = V.value;
|
|
289
|
+
if (!e) return;
|
|
290
|
+
const n = ((u = l.value) == null ? void 0 : u.path.split("/").filter(Boolean)) ?? [];
|
|
291
|
+
T = e.onAny((h) => {
|
|
292
|
+
fe(
|
|
293
|
+
n.length > 0 ? { ...h, path: n } : h
|
|
294
|
+
);
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
O(
|
|
298
|
+
[V, () => {
|
|
299
|
+
var e;
|
|
300
|
+
return (e = l.value) == null ? void 0 : e.path;
|
|
301
|
+
}],
|
|
302
|
+
() => ve(),
|
|
303
|
+
{ flush: "post" }
|
|
304
|
+
), Z(() => {
|
|
305
|
+
T == null || T(), T = null;
|
|
306
|
+
});
|
|
307
|
+
const de = E(() => l.value ? [{ name: l.value.name, url: l.value.blobUrl, type: Q(l.value.name) }] : []);
|
|
308
|
+
return (e, n) => t.value ? (f(), c("div", Ae, [
|
|
309
|
+
s("div", Ge, [
|
|
310
|
+
n[0] || (n[0] = s("div", { class: "vfp-renderer-spinner" }, null, -1)),
|
|
311
|
+
s("span", Je, R(w(d)("common.loading")), 1)
|
|
312
|
+
])
|
|
313
|
+
])) : L.value || !i.value ? (f(), F(ee, {
|
|
314
|
+
key: 1,
|
|
315
|
+
message: L.value || w(d)("zip.parse_failed")
|
|
316
|
+
}, null, 8, ["message"])) : (f(), c(N, { key: 2 }, [
|
|
317
|
+
j(Ke, {
|
|
318
|
+
ref_key: "splitRef",
|
|
319
|
+
ref: M,
|
|
320
|
+
"initial-left-width": 280,
|
|
321
|
+
"min-left-width": 180,
|
|
322
|
+
"max-left-width": 560,
|
|
323
|
+
"storage-key": "vfp-zip-split-left",
|
|
324
|
+
"mobile-tab-mode": "",
|
|
325
|
+
"left-tab-label": w(d)("zip.file_tree"),
|
|
326
|
+
"right-tab-label": w(d)("toolbar.preview")
|
|
327
|
+
}, {
|
|
328
|
+
left: Y(() => [
|
|
329
|
+
s("div", Xe, [
|
|
330
|
+
(f(!0), c(N, null, te(i.value.children || [], (u) => {
|
|
331
|
+
var h;
|
|
332
|
+
return f(), F(qe, {
|
|
333
|
+
key: u.path,
|
|
334
|
+
node: u,
|
|
335
|
+
depth: 0,
|
|
336
|
+
"selected-path": ((h = l.value) == null ? void 0 : h.path) ?? null,
|
|
337
|
+
expanded: y.value,
|
|
338
|
+
onToggle: ae,
|
|
339
|
+
onSelect: re,
|
|
340
|
+
onHover: ie,
|
|
341
|
+
onLeave: se
|
|
342
|
+
}, null, 8, ["node", "selected-path", "expanded"]);
|
|
343
|
+
}), 128))
|
|
344
|
+
])
|
|
345
|
+
]),
|
|
346
|
+
right: Y(() => [
|
|
347
|
+
s("div", Ye, [
|
|
348
|
+
S.value ? (f(), c("div", Qe, [
|
|
349
|
+
s("div", et, [
|
|
350
|
+
n[1] || (n[1] = s("div", { class: "vfp-renderer-spinner" }, null, -1)),
|
|
351
|
+
s("span", tt, R(w(d)("common.loading")), 1)
|
|
352
|
+
])
|
|
353
|
+
])) : $.value ? (f(), c("div", nt, [
|
|
354
|
+
j(ee, { message: $.value }, null, 8, ["message"])
|
|
355
|
+
])) : l.value ? (f(), c("div", ot, [
|
|
356
|
+
j(w(o), {
|
|
357
|
+
ref_key: "innerContentRef",
|
|
358
|
+
ref: V,
|
|
359
|
+
mode: "embed",
|
|
360
|
+
files: de.value,
|
|
361
|
+
"current-index": 0,
|
|
362
|
+
"zip-nesting-depth": r.nestingDepth + 1,
|
|
363
|
+
onError: _
|
|
364
|
+
}, null, 8, ["files", "zip-nesting-depth"])
|
|
365
|
+
])) : (f(), c("div", lt, R(w(d)("zip.select_file")), 1))
|
|
366
|
+
])
|
|
367
|
+
]),
|
|
368
|
+
_: 1
|
|
369
|
+
}, 8, ["left-tab-label", "right-tab-label"]),
|
|
370
|
+
(f(), F(me, { to: "body" }, [
|
|
371
|
+
C.value ? (f(), c("div", {
|
|
372
|
+
key: 0,
|
|
373
|
+
class: "vfp-zip-tip",
|
|
374
|
+
style: D({
|
|
375
|
+
position: "fixed",
|
|
376
|
+
zIndex: 2147483647,
|
|
377
|
+
pointerEvents: "none",
|
|
378
|
+
display: "block",
|
|
379
|
+
transform: "translateY(-50%)",
|
|
380
|
+
padding: "4px 8px",
|
|
381
|
+
background: "rgba(0, 0, 0, 0.85)",
|
|
382
|
+
color: "#fff",
|
|
383
|
+
fontSize: "12px",
|
|
384
|
+
lineHeight: 1.5,
|
|
385
|
+
borderRadius: "4px",
|
|
386
|
+
whiteSpace: "nowrap",
|
|
387
|
+
maxWidth: "min(320px, calc(100vw - 16px))",
|
|
388
|
+
overflow: "hidden",
|
|
389
|
+
textOverflow: "ellipsis",
|
|
390
|
+
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.3)",
|
|
391
|
+
left: C.value.x + "px",
|
|
392
|
+
top: C.value.y + "px"
|
|
393
|
+
})
|
|
394
|
+
}, R(C.value.text), 5)) : ne("", !0)
|
|
395
|
+
]))
|
|
396
|
+
], 64));
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
export {
|
|
400
|
+
vt as default
|
|
401
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
1
|
+
import { defineComponent as z, ref as h, watch as T, computed as p, openBlock as r, createElementBlock as o, createElementVNode as s, toDisplayString as a, unref as n, createBlock as A, normalizeClass as E, Fragment as w, renderList as B, createCommentVNode as C } from "vue";
|
|
2
|
+
import { u as D, a as I, b as M, Q as O, E as f, t as P, n as R } from "./index-BKpp6GvN.mjs";
|
|
3
3
|
import { _ as X } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
|
|
4
4
|
const Y = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "vfp-renderer-loading vfp-bg-[#0f0f12]"
|
|
7
|
-
}, $ = { class: "vfp-renderer-loading-content" }, j = { class: "vfp-renderer-loading-text" }, q = { class: "content-scroll" }, H = { class: "timeline" },
|
|
7
|
+
}, $ = { class: "vfp-renderer-loading-content" }, j = { class: "vfp-renderer-loading-text" }, q = { class: "content-scroll" }, H = { class: "timeline" }, J = { class: "cues" }, K = { class: "cue-meta" }, U = { class: "cue-time" }, W = { class: "cue-time" }, Z = { class: "cue-id" }, ee = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "cue-style"
|
|
10
10
|
}, se = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "cue-words"
|
|
13
|
-
}, te = ["title"], le = { class: "cue-word-time" }, re = { class: "cue-word-text" }, ae = { class: "status-pill" }, oe = /* @__PURE__ */
|
|
13
|
+
}, te = ["title"], le = { class: "cue-word-time" }, re = { class: "cue-word-text" }, ae = { class: "status-pill" }, oe = /* @__PURE__ */ z({
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
16
16
|
url: {},
|
|
17
17
|
fileName: {}
|
|
18
18
|
},
|
|
19
19
|
setup(F, { expose: N }) {
|
|
20
|
-
const i = F, { t: u } =
|
|
20
|
+
const i = F, { t: u } = D(), L = I(), d = M(), m = h(""), _ = h(!0), v = h(null), S = {
|
|
21
21
|
srt: "srt",
|
|
22
22
|
vtt: "vtt",
|
|
23
23
|
lrc: "lrc",
|
|
@@ -58,7 +58,7 @@ const Y = {
|
|
|
58
58
|
}), b = p(() => {
|
|
59
59
|
var e;
|
|
60
60
|
return ((e = c.value) == null ? void 0 : e.metadata) ?? {};
|
|
61
|
-
}),
|
|
61
|
+
}), Q = (e) => f(e).slice(3, 8);
|
|
62
62
|
return N({
|
|
63
63
|
getToolbarGroups: () => []
|
|
64
64
|
}), (e, t) => _.value ? (r(), o("div", Y, [
|
|
@@ -66,42 +66,42 @@ const Y = {
|
|
|
66
66
|
t[0] || (t[0] = s("div", { class: "vfp-renderer-spinner" }, null, -1)),
|
|
67
67
|
s("span", j, a(n(u)("common.loading")), 1)
|
|
68
68
|
])
|
|
69
|
-
])) : v.value || !c.value ? (r(),
|
|
69
|
+
])) : v.value || !c.value ? (r(), A(X, {
|
|
70
70
|
key: 1,
|
|
71
71
|
message: v.value || n(u)("subtitle.parse_failed"),
|
|
72
72
|
class: "vfp-bg-[#0f0f12]"
|
|
73
73
|
}, null, 8, ["message"])) : (r(), o("div", {
|
|
74
74
|
key: 2,
|
|
75
|
-
class:
|
|
75
|
+
class: E(["vfp-relative vfp-w-full vfp-h-full vfp-bg-[#0f0f12]", y.value ? "flavor-lyric" : "flavor-subtitle"])
|
|
76
76
|
}, [
|
|
77
77
|
s("div", q, [
|
|
78
78
|
s("div", H, [
|
|
79
79
|
t[3] || (t[3] = s("div", { class: "timeline-line" }, null, -1)),
|
|
80
|
-
s("ol",
|
|
81
|
-
(r(!0), o(w, null,
|
|
80
|
+
s("ol", J, [
|
|
81
|
+
(r(!0), o(w, null, B(c.value.cues, (l, k) => (r(), o("li", {
|
|
82
82
|
key: "cue-" + k,
|
|
83
83
|
class: "cue-row"
|
|
84
84
|
}, [
|
|
85
85
|
t[2] || (t[2] = s("div", { class: "cue-dot" }, null, -1)),
|
|
86
|
-
s("div",
|
|
86
|
+
s("div", K, [
|
|
87
87
|
s("span", U, a(n(f)(l.start)), 1),
|
|
88
88
|
t[1] || (t[1] = s("span", { class: "cue-arrow" }, "→", -1)),
|
|
89
89
|
s("span", W, a(n(f)(l.end)), 1),
|
|
90
90
|
s("span", Z, "#" + a(l.id ?? k + 1), 1),
|
|
91
|
-
l.style ? (r(), o("span", ee, a(l.style), 1)) :
|
|
91
|
+
l.style ? (r(), o("span", ee, a(l.style), 1)) : C("", !0)
|
|
92
92
|
]),
|
|
93
93
|
l.words && l.words.length > 0 ? (r(), o("div", se, [
|
|
94
|
-
(r(!0), o(w, null,
|
|
95
|
-
key: "w-" +
|
|
94
|
+
(r(!0), o(w, null, B(l.words, (g, V) => (r(), o("span", {
|
|
95
|
+
key: "w-" + V,
|
|
96
96
|
class: "cue-word",
|
|
97
97
|
title: n(f)(g.start)
|
|
98
98
|
}, [
|
|
99
|
-
s("span", le, a(
|
|
99
|
+
s("span", le, a(Q(g.start)), 1),
|
|
100
100
|
s("span", re, a(g.text), 1)
|
|
101
101
|
], 8, te))), 128))
|
|
102
102
|
])) : (r(), o("p", {
|
|
103
103
|
key: 1,
|
|
104
|
-
class:
|
|
104
|
+
class: E(["cue-text", { lyric: y.value }])
|
|
105
105
|
}, a(l.text), 3))
|
|
106
106
|
]))), 128))
|
|
107
107
|
])
|
|
@@ -112,7 +112,7 @@ const Y = {
|
|
|
112
112
|
b.value.length ? (r(), o(w, { key: 0 }, [
|
|
113
113
|
t[4] || (t[4] = s("span", { class: "dot" }, "·", -1)),
|
|
114
114
|
s("span", null, a(b.value.length), 1)
|
|
115
|
-
], 64)) :
|
|
115
|
+
], 64)) : C("", !0)
|
|
116
116
|
])
|
|
117
117
|
], 2));
|
|
118
118
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as V, ref as v, onMounted as
|
|
2
|
-
import { u as G, a as
|
|
1
|
+
import { defineComponent as V, ref as v, onMounted as $, watch as q, onBeforeUnmount as A, computed as I, openBlock as p, createElementBlock as h, createElementVNode as k, toDisplayString as O, unref as R, createCommentVNode as T, createVNode as z, normalizeStyle as S } from "vue";
|
|
2
|
+
import { u as G, a as U, b as j, l as J, k as D, m as K, h as Q } from "./index-BKpp6GvN.mjs";
|
|
3
3
|
import { init as M } from "pptx-preview";
|
|
4
4
|
import { _ as X } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
|
|
5
|
-
import { _ as Y } from "./EmptyState.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as Y } from "./EmptyState.vue_vue_type_script_setup_true_lang-98G0nOSe.mjs";
|
|
6
6
|
const Z = { class: "vfp-relative vfp-flex vfp-flex-col vfp-items-center vfp-w-full vfp-h-full" }, ee = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "vfp-renderer-overlay vfp-renderer-loading"
|
|
@@ -20,12 +20,12 @@ const Z = { class: "vfp-relative vfp-flex vfp-flex-col vfp-items-center vfp-w-fu
|
|
|
20
20
|
emptyHint: {}
|
|
21
21
|
},
|
|
22
22
|
setup(H, { expose: W }) {
|
|
23
|
-
const o = H, { t: s } = G(), P =
|
|
24
|
-
let l = null, _ = null, c = null, f = null, g = { width: 0, height: 0 },
|
|
23
|
+
const o = H, { t: s } = G(), P = U(), m = j(), n = v(!0), u = v(null), w = v(!1), y = v(0), i = v(null);
|
|
24
|
+
let l = null, _ = null, c = null, f = null, g = { width: 0, height: 0 }, B = 9 / 16;
|
|
25
25
|
const x = () => {
|
|
26
26
|
var d;
|
|
27
27
|
if (!i.value) return { width: 960, height: 540 };
|
|
28
|
-
const t = i.value.clientWidth, e = ((d = i.value.parentElement) == null ? void 0 : d.clientWidth) || 0, r = t > 100 ? t : e > 100 ? e : 300, a = Math.floor(r *
|
|
28
|
+
const t = i.value.clientWidth, e = ((d = i.value.parentElement) == null ? void 0 : d.clientWidth) || 0, r = t > 100 ? t : e > 100 ? e : 300, a = Math.floor(r * B);
|
|
29
29
|
return { width: r, height: a };
|
|
30
30
|
}, F = async () => {
|
|
31
31
|
if (!(!i.value || !c || y.value === 0))
|
|
@@ -44,7 +44,7 @@ const Z = { class: "vfp-relative vfp-flex vfp-flex-col vfp-items-center vfp-w-fu
|
|
|
44
44
|
}), await l.preview(c);
|
|
45
45
|
} catch {
|
|
46
46
|
}
|
|
47
|
-
},
|
|
47
|
+
}, C = async () => {
|
|
48
48
|
if (m.begin(o.url), !i.value) return;
|
|
49
49
|
n.value = !0, u.value = null, w.value = !1;
|
|
50
50
|
let t = window.setTimeout(() => {
|
|
@@ -63,7 +63,7 @@ const Z = { class: "vfp-relative vfp-flex vfp-flex-col vfp-items-center vfp-w-fu
|
|
|
63
63
|
t !== null && clearTimeout(t), w.value = !0, n.value = !1, m.ready();
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
c = r,
|
|
66
|
+
c = r, B = (await K(r)).ratio;
|
|
67
67
|
const a = document.createElement("div");
|
|
68
68
|
a.style.cssText = "position:absolute;left:-9999px;top:-9999px;visibility:hidden", document.body.appendChild(a);
|
|
69
69
|
try {
|
|
@@ -77,13 +77,13 @@ const Z = { class: "vfp-relative vfp-flex vfp-flex-col vfp-items-center vfp-w-fu
|
|
|
77
77
|
} catch {
|
|
78
78
|
throw new Error(s.value("pptx.invalid_format"));
|
|
79
79
|
}
|
|
80
|
-
const
|
|
81
|
-
if (!
|
|
82
|
-
d.destroy(), y.value =
|
|
80
|
+
const b = d.slideCount;
|
|
81
|
+
if (!b || b === 0) throw new Error(s.value("pptx.no_pages"));
|
|
82
|
+
d.destroy(), y.value = b, i.value && (i.value.innerHTML = "");
|
|
83
83
|
const E = x();
|
|
84
84
|
l = M(i.value, {
|
|
85
85
|
width: E.width,
|
|
86
|
-
height: o.tiled ? E.height *
|
|
86
|
+
height: o.tiled ? E.height * b : E.height,
|
|
87
87
|
mode: o.tiled ? "list" : "slide"
|
|
88
88
|
}), await l.preview(r), t !== null && (clearTimeout(t), t = null), n.value = !1, m.ready();
|
|
89
89
|
} finally {
|
|
@@ -95,7 +95,7 @@ const Z = { class: "vfp-relative vfp-flex vfp-flex-col vfp-items-center vfp-w-fu
|
|
|
95
95
|
e instanceof Error ? r = Q(s.value, e) : typeof e == "string" && (r = e), u.value = r, n.value = !1, m.error(e);
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
$(() => {
|
|
99
99
|
if (!i.value) return;
|
|
100
100
|
let t = !0;
|
|
101
101
|
_ = new ResizeObserver(() => {
|
|
@@ -108,14 +108,14 @@ const Z = { class: "vfp-relative vfp-flex vfp-flex-col vfp-items-center vfp-w-fu
|
|
|
108
108
|
l && c && F();
|
|
109
109
|
}, 800));
|
|
110
110
|
}), _.observe(i.value), setTimeout(() => {
|
|
111
|
-
requestAnimationFrame(() => requestAnimationFrame(() =>
|
|
111
|
+
requestAnimationFrame(() => requestAnimationFrame(() => C()));
|
|
112
112
|
}, 150);
|
|
113
|
-
}),
|
|
113
|
+
}), q(
|
|
114
114
|
() => o.url,
|
|
115
115
|
(t) => {
|
|
116
|
-
t &&
|
|
116
|
+
t && C();
|
|
117
117
|
}
|
|
118
|
-
),
|
|
118
|
+
), A(() => {
|
|
119
119
|
if (_ && _.disconnect(), f !== null && clearTimeout(f), c = null, y.value = 0, l)
|
|
120
120
|
try {
|
|
121
121
|
l.destroy();
|
|
@@ -123,31 +123,31 @@ const Z = { class: "vfp-relative vfp-flex vfp-flex-col vfp-items-center vfp-w-fu
|
|
|
123
123
|
}
|
|
124
124
|
l = null;
|
|
125
125
|
});
|
|
126
|
-
const L = () => [], N =
|
|
126
|
+
const L = () => [], N = I(() => J(o.emptyHint, "structured"));
|
|
127
127
|
return W({
|
|
128
128
|
getToolbarGroups: L
|
|
129
129
|
}), (t, e) => (p(), h("div", Z, [
|
|
130
130
|
n.value ? (p(), h("div", ee, [
|
|
131
131
|
k("div", te, [
|
|
132
132
|
e[0] || (e[0] = k("div", { class: "vfp-renderer-spinner" }, null, -1)),
|
|
133
|
-
k("p", re,
|
|
133
|
+
k("p", re, O(R(s)("pptx.loading")), 1)
|
|
134
134
|
])
|
|
135
|
-
])) :
|
|
135
|
+
])) : T("", !0),
|
|
136
136
|
w.value && !n.value && N.value ? (p(), h("div", ie, [
|
|
137
137
|
z(Y)
|
|
138
|
-
])) :
|
|
138
|
+
])) : T("", !0),
|
|
139
139
|
u.value && !n.value ? (p(), h("div", le, [
|
|
140
140
|
z(X, {
|
|
141
|
-
message:
|
|
141
|
+
message: R(s)("pptx.load_failed"),
|
|
142
142
|
detail: u.value
|
|
143
143
|
}, null, 8, ["message", "detail"])
|
|
144
|
-
])) :
|
|
145
|
-
u.value ?
|
|
144
|
+
])) : T("", !0),
|
|
145
|
+
u.value ? T("", !0) : (p(), h("div", {
|
|
146
146
|
key: 3,
|
|
147
147
|
ref_key: "containerRef",
|
|
148
148
|
ref: i,
|
|
149
149
|
class: "pptx-wrapper vfp-w-full vfp-max-w-full md:vfp-max-w-6xl",
|
|
150
|
-
style:
|
|
150
|
+
style: S({ opacity: n.value || w.value ? 0 : 1 })
|
|
151
151
|
}, null, 4))
|
|
152
152
|
]));
|
|
153
153
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ws, ref as Ie, onMounted as Es, onBeforeUnmount as Rs, watch as Pr, openBlock as ge, createElementBlock as ke, normalizeStyle as Br, toDisplayString as Z, computed as mt, createElementVNode as P, unref as K, createBlock as Nr, Fragment as Fn, createCommentVNode as Wt, withDirectives as _r, vModelText as Gr, renderList as Hr, createVNode as qt } from "vue";
|
|
2
|
-
import { u as Vr, a as zr, b as jr,
|
|
2
|
+
import { u as Vr, a as zr, b as jr, p as Wr, k as $t } from "./index-BKpp6GvN.mjs";
|
|
3
3
|
import { _ as qr } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
|
|
4
4
|
var yn = 0, Is = -3;
|
|
5
5
|
function at() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as fe, ref as v, watch as Z, onMounted as pe, onBeforeUnmount as ve, openBlock as d, createElementBlock as g, createBlock as de, createCommentVNode as M, createElementVNode as f, toDisplayString as L, unref as q, normalizeStyle as z, createVNode as he, Fragment as G, renderList as ee } from "vue";
|
|
2
2
|
import me from "@likecoin/epub-ts";
|
|
3
3
|
import { List as ge, ChevronLeft as be, ChevronRight as we, Minimize2 as xe, Maximize2 as ye, X as ke } from "lucide-vue-next";
|
|
4
|
-
import { u as _e, a as Te, b as ze,
|
|
4
|
+
import { u as _e, a as Te, b as ze, o as Ce, k as Se } from "./index-BKpp6GvN.mjs";
|
|
5
5
|
import { _ as Me } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
|
|
6
6
|
import { T as We } from "./base.types-DaftHyg7.mjs";
|
|
7
7
|
const Ee = { class: "vfp-relative vfp-w-full vfp-h-full vfp-flex vfp-justify-center vfp-bg-surface-1 vfp-overflow-hidden" }, $e = {
|