@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.
- package/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/lib/FilePreviewContent.vue.d.ts +9 -1
- package/lib/FilePreviewEmbed.vue.d.ts +6 -1
- package/lib/FilePreviewModal.vue.d.ts +6 -1
- 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
- package/lib/chunks/{avifLoader-CAUzjn-d-CnJpGYJ2.mjs → avifLoader-CAUzjn-d-dPsP28D5.mjs} +1 -1
- package/lib/chunks/{heicLoader-D_9PukkA-g_dLrWLP.mjs → heicLoader-D_9PukkA-T-k1DSgY.mjs} +1 -1
- package/lib/chunks/{index-c-pYJEmH.mjs → index-B5hprvcF.mjs} +1747 -1709
- package/lib/chunks/index-BN__EwfT.mjs +333 -0
- package/lib/chunks/{index-z9RqL2wI.mjs → index-BPutNVAf.mjs} +453 -453
- package/lib/chunks/{index-BfOWoMpY.mjs → index-B_Spz6Wn.mjs} +77 -77
- package/lib/chunks/{index-D5IF9F-D.mjs → index-BjHEHkZ8.mjs} +22 -22
- package/lib/chunks/{index-LPGxJDnT.mjs → index-BlZ6RmeR.mjs} +18 -18
- package/lib/chunks/{index-CrVQPnFj.mjs → index-C95y29OL.mjs} +18 -18
- package/lib/chunks/{index-DFeKS8tR.mjs → index-CegPYMyO.mjs} +22 -22
- package/lib/chunks/{index-C4hIk6pa.mjs → index-CqOGKCyE.mjs} +2 -2
- package/lib/chunks/{index-6XZXYqbp.mjs → index-Cv3Sg87O.mjs} +29 -32
- package/lib/chunks/{index-zLQlyNR2.mjs → index-DHba2Axz.mjs} +62 -62
- package/lib/chunks/{index-CWPdNhoe.mjs → index-DInI3RTN.mjs} +60 -60
- package/lib/chunks/{index-C8lyQPe3.mjs → index-DXzvgRuo.mjs} +3 -3
- package/lib/chunks/{index-BPSzwMOC.mjs → index-DcvlMm9Q.mjs} +46 -46
- package/lib/chunks/index-Dnyl1HQk.mjs +51 -0
- package/lib/chunks/{index-aKiIuKKx.mjs → index-JjVQZbDt.mjs} +50 -50
- package/lib/chunks/{index-DZe0BxAB.mjs → index-QPk2c2Tl.mjs} +20 -20
- package/lib/chunks/{index-DM8Dfl-m.mjs → index-TZv0MqBH.mjs} +15 -15
- package/lib/chunks/{index-BzwJ0VWu.mjs → index-cRhwUlQN.mjs} +33 -33
- package/lib/chunks/{index-BYQ9S7Mk.mjs → index-dOxDeWYi.mjs} +30 -30
- package/lib/chunks/{index-Bg8poMIm.mjs → index-eNZr1h6f.mjs} +29 -29
- package/lib/chunks/{index-Bf94DwQu.mjs → index-oJF-hur2.mjs} +24 -24
- package/lib/chunks/{jp2Loader-Dig19xyo-fCO1knZ0.mjs → jp2Loader-Dig19xyo-hrIg_KJ3.mjs} +1 -1
- package/lib/chunks/{psdLoader-C0tKUXXl-DihMskai.mjs → psdLoader-C0tKUXXl-B2cJ4s7t.mjs} +1 -1
- package/lib/chunks/{rawLoader-C-tPeFAB-BSfDPl-z.mjs → rawLoader-C-tPeFAB-BNV-Wmzr.mjs} +1 -1
- package/lib/chunks/{tiffLoader-BlhByX8w-JY5DaTre.mjs → tiffLoader-BlhByX8w-BzSrLE9Y.mjs} +1 -1
- package/lib/chunks/{useShikiHighlight-C-ztcJBE.mjs → useShikiHighlight-CpL0RAQg.mjs} +1 -1
- package/lib/composables/usePreviewEvents.d.ts +2 -2
- package/lib/composables/useRequest.d.ts +8 -2
- package/lib/core/events.d.ts +18 -1
- package/lib/core/index.d.ts +1 -1
- package/lib/index.cjs +54 -54
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.mjs +5 -5
- package/package.json +1 -1
- package/lib/chunks/index-C41YET0_.mjs +0 -51
- package/lib/chunks/index-GFcSJEwj.mjs +0 -330
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as ke, ref as s, watch as
|
|
2
|
-
import { u as Ue, a as
|
|
3
|
-
import { ZoomOut as We, ZoomIn as $e, Scan as Pe, Maximize2 as je, RotateCcw as He, RotateCw as Ze, RefreshCw as
|
|
1
|
+
import { defineComponent as ke, ref as s, watch as I, onBeforeUnmount as ae, onMounted as Ee, computed as le, openBlock as w, createElementBlock as U, normalizeStyle as oe, createElementVNode as _, createTextVNode as Ce, toDisplayString as b, unref as D, createCommentVNode as E, createBlock as ne, normalizeClass as Te } from "vue";
|
|
2
|
+
import { u as Ue, a as Ye, b as ze, $ as Se, _ as Xe, J as ie, M as Be, I as De, p as se, A as Oe } from "./index-B5hprvcF.mjs";
|
|
3
|
+
import { ZoomOut as We, ZoomIn as $e, Scan as Pe, Maximize2 as je, RotateCcw as He, RotateCw as Ze, RefreshCw as Ie } from "lucide-vue-next";
|
|
4
4
|
import { _ as re } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
|
|
5
|
-
import { T as
|
|
6
|
-
const
|
|
5
|
+
import { T as Ne } from "./base.types-DaftHyg7.mjs";
|
|
6
|
+
const Ae = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "vfp-absolute vfp-inset-0 vfp-renderer-loading vfp-bg-surface-1/80 vfp-z-10"
|
|
9
|
-
},
|
|
9
|
+
}, Ve = { class: "vfp-renderer-loading-content" }, Fe = { class: "vfp-renderer-loading-text" }, Ge = { key: 0 }, Qe = {
|
|
10
10
|
key: 2,
|
|
11
11
|
class: "vfp-renderer-loading"
|
|
12
|
-
},
|
|
12
|
+
}, qe = { class: "vfp-renderer-loading-content" }, Je = { class: "vfp-renderer-loading-text" }, Ke = ["src"], et = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vfp-absolute vfp-bottom-2 vfp-right-3 vfp-text-[10px] vfp-text-fg-disabled hover:vfp-text-fg-secondary vfp-transition-colors vfp-pointer-events-auto vfp-select-none vfp-cursor-default"
|
|
15
15
|
}, tt = {
|
|
@@ -23,11 +23,11 @@ const Ve = {
|
|
|
23
23
|
file: {}
|
|
24
24
|
},
|
|
25
25
|
setup(ue, { expose: ce }) {
|
|
26
|
-
const f = ue,
|
|
27
|
-
let
|
|
26
|
+
const f = ue, V = new Ne(), { t: i } = Ue(), ve = Ye(), B = ze(), r = s(1), C = s(0), T = s(!1), M = s(null), p = s(!1), O = s(0), R = s(null), L = s(""), k = s(1), Y = s(1), F = s(!1), l = s({ x: 0, y: 0 }), y = s(!1);
|
|
27
|
+
let z = { x: 0, y: 0 };
|
|
28
28
|
const m = s(1), v = s({ width: 0, height: 0 });
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
I([r, C], () => {
|
|
30
|
+
V.notify();
|
|
31
31
|
}), ce({
|
|
32
32
|
getToolbarGroups: () => [
|
|
33
33
|
{
|
|
@@ -59,7 +59,7 @@ const Ve = {
|
|
|
59
59
|
type: "button",
|
|
60
60
|
icon: Pe,
|
|
61
61
|
tooltip: i.value("toolbar.fit_to_window"),
|
|
62
|
-
action:
|
|
62
|
+
action: G
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
type: "button",
|
|
@@ -89,14 +89,14 @@ const Ve = {
|
|
|
89
89
|
items: [
|
|
90
90
|
{
|
|
91
91
|
type: "button",
|
|
92
|
-
icon:
|
|
92
|
+
icon: Ie,
|
|
93
93
|
tooltip: i.value("toolbar.reset"),
|
|
94
94
|
action: ge
|
|
95
95
|
}
|
|
96
96
|
]
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
|
-
onToolbarChange: (e) =>
|
|
99
|
+
onToolbarChange: (e) => V.subscribe(e)
|
|
100
100
|
});
|
|
101
101
|
const de = () => {
|
|
102
102
|
r.value = Math.min(r.value + 0.1, 10);
|
|
@@ -109,25 +109,25 @@ const Ve = {
|
|
|
109
109
|
}, me = () => {
|
|
110
110
|
r.value = 1, C.value = 0, l.value = { x: 0, y: 0 };
|
|
111
111
|
}, ge = () => {
|
|
112
|
-
|
|
113
|
-
},
|
|
112
|
+
G();
|
|
113
|
+
}, G = () => {
|
|
114
114
|
if (h.value && v.value.width > 0 && v.value.height > 0) {
|
|
115
115
|
const e = h.value.clientWidth, t = h.value.clientHeight, a = e / v.value.width, u = t / v.value.height;
|
|
116
116
|
r.value = Math.max(0.01, Math.min(10, Math.min(a, u))), l.value = { x: 0, y: 0 };
|
|
117
117
|
}
|
|
118
118
|
}, be = s(null), h = s(null);
|
|
119
|
-
let
|
|
119
|
+
let S = null, W = null, $ = null;
|
|
120
120
|
const g = /* @__PURE__ */ new Map();
|
|
121
|
-
let P = !1, j = 0, Q = 1,
|
|
122
|
-
|
|
121
|
+
let P = !1, j = 0, Q = 1, N = { x: 0, y: 0 }, q = 0;
|
|
122
|
+
I(
|
|
123
123
|
() => [f.url, f.file],
|
|
124
124
|
async () => {
|
|
125
|
-
if (
|
|
125
|
+
if (B.begin(f.url), L.value = "", T.value = !1, M.value = null, p.value = !1, R.value = null, O.value = 0, l.value = { x: 0, y: 0 }, m.value = 1, r.value = 1, k.value = 1, Y.value = 1, F.value = !1, S && (URL.revokeObjectURL(S), S = null), g.forEach((e) => URL.revokeObjectURL(e)), g.clear(), W = null, $ = null, !f.file) {
|
|
126
126
|
L.value = f.url;
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
129
|
try {
|
|
130
|
-
const e = await
|
|
130
|
+
const e = await Se(f.file), t = await Xe(e);
|
|
131
131
|
if (!t || !await t.needsDecode(e)) {
|
|
132
132
|
L.value = f.url;
|
|
133
133
|
return;
|
|
@@ -143,10 +143,10 @@ const Ve = {
|
|
|
143
143
|
if (!n.ok) throw new ie("file.load_failed");
|
|
144
144
|
a = await n.blob();
|
|
145
145
|
}
|
|
146
|
-
if (W = a, $ = t, e.startsWith("image/x-") && (
|
|
146
|
+
if (W = a, $ = t, e.startsWith("image/x-") && (F.value = !0), t.getMetadata)
|
|
147
147
|
try {
|
|
148
148
|
const n = await t.getMetadata(a);
|
|
149
|
-
n.pageCount && n.pageCount > 1 && (
|
|
149
|
+
n.pageCount && n.pageCount > 1 && (Y.value = n.pageCount);
|
|
150
150
|
} catch {
|
|
151
151
|
}
|
|
152
152
|
const c = {
|
|
@@ -170,15 +170,15 @@ const Ve = {
|
|
|
170
170
|
else
|
|
171
171
|
o = await t.decode(a, c);
|
|
172
172
|
const d = typeof o == "string" ? o : URL.createObjectURL(o);
|
|
173
|
-
|
|
173
|
+
S = d, g.set(1, d), L.value = d, p.value = !1;
|
|
174
174
|
} catch (e) {
|
|
175
|
-
R.value = se(i.value, e) || i.value("image.decode_failed"), p.value = !1,
|
|
175
|
+
R.value = se(i.value, e) || i.value("image.decode_failed"), p.value = !1, B.error(e);
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
178
|
{ immediate: !0 }
|
|
179
179
|
);
|
|
180
180
|
const J = async (e) => {
|
|
181
|
-
if (!W || !$ || e < 1 || e >
|
|
181
|
+
if (!W || !$ || e < 1 || e > Y.value) return;
|
|
182
182
|
const t = g.get(e);
|
|
183
183
|
if (t) {
|
|
184
184
|
k.value = e, L.value = t;
|
|
@@ -196,38 +196,38 @@ const Ve = {
|
|
|
196
196
|
}
|
|
197
197
|
g.set(e, u), k.value = e, L.value = u, p.value = !1;
|
|
198
198
|
} catch (a) {
|
|
199
|
-
R.value = se(i.value, a) || i.value("image.page_decode_failed"), p.value = !1,
|
|
199
|
+
R.value = se(i.value, a) || i.value("image.page_decode_failed"), p.value = !1, B.error(a, "render");
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
ae(() => {
|
|
203
|
-
|
|
203
|
+
S && URL.revokeObjectURL(S), g.forEach((t) => URL.revokeObjectURL(t)), g.clear();
|
|
204
204
|
const e = h.value;
|
|
205
|
-
e && e.removeEventListener("wheel",
|
|
206
|
-
}),
|
|
205
|
+
e && e.removeEventListener("wheel", A);
|
|
206
|
+
}), I(r, (e) => {
|
|
207
207
|
m.value = e;
|
|
208
|
-
}),
|
|
208
|
+
}), I(m, (e) => {
|
|
209
209
|
r.value = e;
|
|
210
210
|
});
|
|
211
211
|
const H = (e, t) => {
|
|
212
212
|
const a = h.value;
|
|
213
213
|
if (!a || v.value.width === 0) return e;
|
|
214
|
-
const u = a.clientWidth, c = a.clientHeight, o = v.value.width * t, d = v.value.height * t, n = Math.min(80, u * 0.15, c * 0.15), x = (u + o) / 2 - n,
|
|
214
|
+
const u = a.clientWidth, c = a.clientHeight, o = v.value.width * t, d = v.value.height * t, n = Math.min(80, u * 0.15, c * 0.15), x = (u + o) / 2 - n, X = (c + d) / 2 - n;
|
|
215
215
|
return {
|
|
216
216
|
x: x > 0 ? Math.max(-x, Math.min(x, e.x)) : 0,
|
|
217
|
-
y:
|
|
217
|
+
y: X > 0 ? Math.max(-X, Math.min(X, e.y)) : 0
|
|
218
218
|
};
|
|
219
219
|
}, ye = (e) => {
|
|
220
220
|
T.value = !0;
|
|
221
221
|
const t = e.currentTarget;
|
|
222
|
-
if (v.value = { width: t.naturalWidth, height: t.naturalHeight }, h.value && v.value.width > 0 && v.value.height > 0) {
|
|
222
|
+
if (v.value = { width: t.naturalWidth, height: t.naturalHeight }, B.ready(), h.value && v.value.width > 0 && v.value.height > 0) {
|
|
223
223
|
const a = h.value.clientWidth, u = h.value.clientHeight, c = a / v.value.width, o = u / v.value.height, d = Math.min(c, o);
|
|
224
224
|
r.value = Math.max(0.01, Math.min(10, d)), l.value = { x: 0, y: 0 };
|
|
225
225
|
}
|
|
226
226
|
}, xe = () => {
|
|
227
|
-
M.value = i.value("image.load_failed"), T.value = !0,
|
|
227
|
+
M.value = i.value("image.load_failed"), T.value = !0, B.error(new ie("image.load_failed"), "request");
|
|
228
228
|
}, we = () => {
|
|
229
229
|
l.value = { x: 0, y: 0 }, r.value = 1;
|
|
230
|
-
},
|
|
230
|
+
}, A = (e) => {
|
|
231
231
|
e.preventDefault(), e.stopPropagation();
|
|
232
232
|
const t = h.value;
|
|
233
233
|
if (!t) return;
|
|
@@ -242,21 +242,21 @@ const Ve = {
|
|
|
242
242
|
};
|
|
243
243
|
Ee(() => {
|
|
244
244
|
const e = h.value;
|
|
245
|
-
e && (e.addEventListener("wheel",
|
|
245
|
+
e && (e.addEventListener("wheel", A, { passive: !1 }), e.addEventListener("touchstart", ee, { passive: !1 }), e.addEventListener("touchmove", te, { passive: !1 }), e.addEventListener("touchend", Z), e.addEventListener("touchcancel", Z));
|
|
246
246
|
}), ae(() => {
|
|
247
247
|
const e = h.value;
|
|
248
|
-
e && (e.removeEventListener("wheel",
|
|
248
|
+
e && (e.removeEventListener("wheel", A), e.removeEventListener("touchstart", ee), e.removeEventListener("touchmove", te), e.removeEventListener("touchend", Z), e.removeEventListener("touchcancel", Z));
|
|
249
249
|
});
|
|
250
250
|
const _e = (e) => {
|
|
251
|
-
P || e.button === 0 && (y.value = !0,
|
|
251
|
+
P || e.button === 0 && (y.value = !0, z = {
|
|
252
252
|
x: e.clientX - l.value.x,
|
|
253
253
|
y: e.clientY - l.value.y
|
|
254
254
|
});
|
|
255
255
|
}, Me = (e) => {
|
|
256
256
|
P || y.value && (l.value = H(
|
|
257
257
|
{
|
|
258
|
-
x: e.clientX -
|
|
259
|
-
y: e.clientY -
|
|
258
|
+
x: e.clientX - z.x,
|
|
259
|
+
y: e.clientY - z.y
|
|
260
260
|
},
|
|
261
261
|
m.value
|
|
262
262
|
));
|
|
@@ -266,24 +266,24 @@ const Ve = {
|
|
|
266
266
|
P = !0, e.preventDefault();
|
|
267
267
|
const t = e.touches;
|
|
268
268
|
if (t.length === 1) {
|
|
269
|
-
y.value = !0,
|
|
269
|
+
y.value = !0, z = {
|
|
270
270
|
x: t[0].clientX - l.value.x,
|
|
271
271
|
y: t[0].clientY - l.value.y
|
|
272
272
|
};
|
|
273
273
|
const a = Date.now();
|
|
274
|
-
a -
|
|
274
|
+
a - q < 300 && (l.value = { x: 0, y: 0 }, r.value = 1), q = a;
|
|
275
275
|
} else t.length === 2 && (y.value = !1, j = Math.hypot(
|
|
276
276
|
t[1].clientX - t[0].clientX,
|
|
277
277
|
t[1].clientY - t[0].clientY
|
|
278
|
-
), Q = m.value,
|
|
278
|
+
), Q = m.value, N = { ...l.value });
|
|
279
279
|
}, te = (e) => {
|
|
280
280
|
e.preventDefault();
|
|
281
281
|
const t = e.touches;
|
|
282
282
|
if (t.length === 1 && y.value)
|
|
283
283
|
l.value = H(
|
|
284
284
|
{
|
|
285
|
-
x: t[0].clientX -
|
|
286
|
-
y: t[0].clientY -
|
|
285
|
+
x: t[0].clientX - z.x,
|
|
286
|
+
y: t[0].clientY - z.y
|
|
287
287
|
},
|
|
288
288
|
m.value
|
|
289
289
|
);
|
|
@@ -295,11 +295,11 @@ const Ve = {
|
|
|
295
295
|
t[1].clientY - t[0].clientY
|
|
296
296
|
);
|
|
297
297
|
if (Math.abs(u - j) < 5) return;
|
|
298
|
-
const c = u / j, o = Math.max(0.01, Math.min(10, Q * c)), d = a.getBoundingClientRect(), n = (t[0].clientX + t[1].clientX) / 2 - d.left - d.width / 2, x = (t[0].clientY + t[1].clientY) / 2 - d.top - d.height / 2,
|
|
298
|
+
const c = u / j, o = Math.max(0.01, Math.min(10, Q * c)), d = a.getBoundingClientRect(), n = (t[0].clientX + t[1].clientX) / 2 - d.left - d.width / 2, x = (t[0].clientY + t[1].clientY) / 2 - d.top - d.height / 2, X = o / m.value;
|
|
299
299
|
l.value = H(
|
|
300
300
|
{
|
|
301
|
-
x: n -
|
|
302
|
-
y: x -
|
|
301
|
+
x: n - X * (n - N.x),
|
|
302
|
+
y: x - X * (x - N.y)
|
|
303
303
|
},
|
|
304
304
|
o
|
|
305
305
|
), m.value = o;
|
|
@@ -322,24 +322,24 @@ const Ve = {
|
|
|
322
322
|
onMouseup: K,
|
|
323
323
|
onMouseleave: K
|
|
324
324
|
}, [
|
|
325
|
-
p.value ? (w(), U("div",
|
|
326
|
-
_("div",
|
|
325
|
+
p.value ? (w(), U("div", Ae, [
|
|
326
|
+
_("div", Ve, [
|
|
327
327
|
t[2] || (t[2] = _("div", { class: "vfp-renderer-spinner" }, null, -1)),
|
|
328
|
-
_("p",
|
|
329
|
-
Ce(b(
|
|
330
|
-
O.value > 0 ? (w(), U("span",
|
|
328
|
+
_("p", Fe, [
|
|
329
|
+
Ce(b(D(i)("image.decoding")) + " ", 1),
|
|
330
|
+
O.value > 0 ? (w(), U("span", Ge, b(Math.round(O.value)) + "%", 1)) : E("", !0)
|
|
331
331
|
])
|
|
332
332
|
])
|
|
333
333
|
])) : E("", !0),
|
|
334
334
|
R.value ? (w(), ne(re, {
|
|
335
335
|
key: 1,
|
|
336
|
-
message:
|
|
336
|
+
message: D(i)("image.decode_failed"),
|
|
337
337
|
detail: R.value
|
|
338
338
|
}, null, 8, ["message", "detail"])) : E("", !0),
|
|
339
339
|
!T.value && !M.value && !p.value && !R.value ? (w(), U("div", Qe, [
|
|
340
|
-
_("div",
|
|
340
|
+
_("div", qe, [
|
|
341
341
|
t[3] || (t[3] = _("div", { class: "vfp-renderer-spinner" }, null, -1)),
|
|
342
|
-
_("span", Je, b(
|
|
342
|
+
_("span", Je, b(D(i)("common.loading")), 1)
|
|
343
343
|
])
|
|
344
344
|
])) : E("", !0),
|
|
345
345
|
M.value ? (w(), ne(re, {
|
|
@@ -360,20 +360,20 @@ const Ve = {
|
|
|
360
360
|
onDblclick: we
|
|
361
361
|
}, null, 46, Ke)) : E("", !0),
|
|
362
362
|
T.value && !M.value && v.value.width > 0 ? (w(), U("div", et, b(v.value.width) + " × " + b(v.value.height) + b(Le.value), 1)) : E("", !0),
|
|
363
|
-
|
|
363
|
+
Y.value > 1 ? (w(), U("div", tt, [
|
|
364
364
|
_("button", {
|
|
365
365
|
type: "button",
|
|
366
366
|
disabled: k.value <= 1 || p.value,
|
|
367
367
|
class: "vfp-px-2 vfp-py-0.5 vfp-rounded hover:vfp-bg-surface-nav-hover disabled:vfp-opacity-40 disabled:vfp-cursor-not-allowed",
|
|
368
368
|
onClick: t[0] || (t[0] = (a) => J(k.value - 1))
|
|
369
|
-
}, b(
|
|
370
|
-
_("span", lt, b(k.value) + " / " + b(
|
|
369
|
+
}, b(D(i)("toolbar.prev_page")), 9, at),
|
|
370
|
+
_("span", lt, b(k.value) + " / " + b(Y.value), 1),
|
|
371
371
|
_("button", {
|
|
372
372
|
type: "button",
|
|
373
|
-
disabled: k.value >=
|
|
373
|
+
disabled: k.value >= Y.value || p.value,
|
|
374
374
|
class: "vfp-px-2 vfp-py-0.5 vfp-rounded hover:vfp-bg-surface-nav-hover disabled:vfp-opacity-40 disabled:vfp-cursor-not-allowed",
|
|
375
375
|
onClick: t[1] || (t[1] = (a) => J(k.value + 1))
|
|
376
|
-
}, b(
|
|
376
|
+
}, b(D(i)("toolbar.next_page")), 9, ot)
|
|
377
377
|
])) : E("", !0)
|
|
378
378
|
], 36));
|
|
379
379
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as J, ref as U, watch as C, openBlock as j, createElementBlock as $, createElementVNode as R, toDisplayString as ee, unref as Q, createBlock as W, createVNode as ne, h as g, inject as le, computed as
|
|
2
|
-
import { u as te, a as ie, b as ue,
|
|
1
|
+
import { defineComponent as J, ref as U, watch as C, openBlock as j, createElementBlock as $, createElementVNode as R, toDisplayString as ee, unref as Q, createBlock as W, createVNode as ne, h as g, inject as le, computed as S } from "vue";
|
|
2
|
+
import { u as te, a as ie, b as ue, T as oe, f as se, S as fe, g as ce, h as pe, e as ke } from "./index-B5hprvcF.mjs";
|
|
3
3
|
import { _ as ge } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
|
|
4
|
-
import { _ as re } from "./EmptyState.vue_vue_type_script_setup_true_lang
|
|
4
|
+
import { _ as re } from "./EmptyState.vue_vue_type_script_setup_true_lang-Dna6LmVT.mjs";
|
|
5
5
|
import { ChevronDown as ae, ChevronRight as me } from "lucide-vue-next";
|
|
6
6
|
function be(e, o = !1) {
|
|
7
|
-
const
|
|
8
|
-
let n = 0, t = "",
|
|
7
|
+
const f = e.length;
|
|
8
|
+
let n = 0, t = "", s = 0, i = 16, m = 0, p = 0, v = 0, y = 0, a = 0;
|
|
9
9
|
function _(l, T) {
|
|
10
10
|
let w = 0, k = 0;
|
|
11
11
|
for (; w < l; ) {
|
|
@@ -23,7 +23,7 @@ function be(e, o = !1) {
|
|
|
23
23
|
return w < l && (k = -1), k;
|
|
24
24
|
}
|
|
25
25
|
function b(l) {
|
|
26
|
-
n = l, t = "",
|
|
26
|
+
n = l, t = "", s = 0, i = 16, a = 0;
|
|
27
27
|
}
|
|
28
28
|
function O() {
|
|
29
29
|
let l = n;
|
|
@@ -51,7 +51,7 @@ function be(e, o = !1) {
|
|
|
51
51
|
function L() {
|
|
52
52
|
let l = "", T = n;
|
|
53
53
|
for (; ; ) {
|
|
54
|
-
if (n >=
|
|
54
|
+
if (n >= f) {
|
|
55
55
|
l += e.substring(T, n), a = 2;
|
|
56
56
|
break;
|
|
57
57
|
}
|
|
@@ -61,7 +61,7 @@ function be(e, o = !1) {
|
|
|
61
61
|
break;
|
|
62
62
|
}
|
|
63
63
|
if (w === 92) {
|
|
64
|
-
if (l += e.substring(T, n), n++, n >=
|
|
64
|
+
if (l += e.substring(T, n), n++, n >= f) {
|
|
65
65
|
a = 2;
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
@@ -112,8 +112,8 @@ function be(e, o = !1) {
|
|
|
112
112
|
return l;
|
|
113
113
|
}
|
|
114
114
|
function A() {
|
|
115
|
-
if (t = "", a = 0,
|
|
116
|
-
return
|
|
115
|
+
if (t = "", a = 0, s = n, p = m, y = v, n >= f)
|
|
116
|
+
return s = f, i = 17;
|
|
117
117
|
let l = e.charCodeAt(n);
|
|
118
118
|
if (D(l)) {
|
|
119
119
|
do
|
|
@@ -142,13 +142,13 @@ function be(e, o = !1) {
|
|
|
142
142
|
case 47:
|
|
143
143
|
const T = n - 1;
|
|
144
144
|
if (e.charCodeAt(n + 1) === 47) {
|
|
145
|
-
for (n += 2; n <
|
|
145
|
+
for (n += 2; n < f && !E(e.charCodeAt(n)); )
|
|
146
146
|
n++;
|
|
147
147
|
return t = e.substring(T, n), i = 12;
|
|
148
148
|
}
|
|
149
149
|
if (e.charCodeAt(n + 1) === 42) {
|
|
150
150
|
n += 2;
|
|
151
|
-
const w =
|
|
151
|
+
const w = f - 1;
|
|
152
152
|
let k = !1;
|
|
153
153
|
for (; n < w; ) {
|
|
154
154
|
const u = e.charCodeAt(n);
|
|
@@ -162,7 +162,7 @@ function be(e, o = !1) {
|
|
|
162
162
|
}
|
|
163
163
|
return t += String.fromCharCode(l), n++, i = 16;
|
|
164
164
|
case 45:
|
|
165
|
-
if (t += String.fromCharCode(l), n++, n ===
|
|
165
|
+
if (t += String.fromCharCode(l), n++, n === f || !B(e.charCodeAt(n)))
|
|
166
166
|
return i = 16;
|
|
167
167
|
case 48:
|
|
168
168
|
case 49:
|
|
@@ -176,10 +176,10 @@ function be(e, o = !1) {
|
|
|
176
176
|
case 57:
|
|
177
177
|
return t += O(), i = 11;
|
|
178
178
|
default:
|
|
179
|
-
for (; n <
|
|
179
|
+
for (; n < f && N(l); )
|
|
180
180
|
n++, l = e.charCodeAt(n);
|
|
181
|
-
if (
|
|
182
|
-
switch (t = e.substring(
|
|
181
|
+
if (s !== n) {
|
|
182
|
+
switch (t = e.substring(s, n), t) {
|
|
183
183
|
case "true":
|
|
184
184
|
return i = 8;
|
|
185
185
|
case "false":
|
|
@@ -221,10 +221,10 @@ function be(e, o = !1) {
|
|
|
221
221
|
scan: o ? d : A,
|
|
222
222
|
getToken: () => i,
|
|
223
223
|
getTokenValue: () => t,
|
|
224
|
-
getTokenOffset: () =>
|
|
225
|
-
getTokenLength: () => n -
|
|
224
|
+
getTokenOffset: () => s,
|
|
225
|
+
getTokenLength: () => n - s,
|
|
226
226
|
getTokenStartLine: () => p,
|
|
227
|
-
getTokenStartCharacter: () =>
|
|
227
|
+
getTokenStartCharacter: () => s - y,
|
|
228
228
|
getTokenError: () => a
|
|
229
229
|
};
|
|
230
230
|
}
|
|
@@ -237,69 +237,69 @@ function E(e) {
|
|
|
237
237
|
function B(e) {
|
|
238
238
|
return e >= 48 && e <= 57;
|
|
239
239
|
}
|
|
240
|
-
var
|
|
240
|
+
var Y;
|
|
241
241
|
(function(e) {
|
|
242
242
|
e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.space = 32] = "space", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.asterisk = 42] = "asterisk", e[e.backslash = 92] = "backslash", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.plus = 43] = "plus", e[e.slash = 47] = "slash", e[e.formFeed = 12] = "formFeed", e[e.tab = 9] = "tab";
|
|
243
|
-
})(
|
|
243
|
+
})(Y || (Y = {}));
|
|
244
244
|
var I;
|
|
245
245
|
(function(e) {
|
|
246
246
|
e.DEFAULT = {
|
|
247
247
|
allowTrailingComma: !1
|
|
248
248
|
};
|
|
249
249
|
})(I || (I = {}));
|
|
250
|
-
function Te(e, o = [],
|
|
250
|
+
function Te(e, o = [], f = I.DEFAULT) {
|
|
251
251
|
let n = null, t = [];
|
|
252
|
-
const
|
|
252
|
+
const s = [];
|
|
253
253
|
function i(p) {
|
|
254
254
|
Array.isArray(t) ? t.push(p) : n !== null && (t[n] = p);
|
|
255
255
|
}
|
|
256
256
|
return ve(e, {
|
|
257
257
|
onObjectBegin: () => {
|
|
258
258
|
const p = {};
|
|
259
|
-
i(p),
|
|
259
|
+
i(p), s.push(t), t = p, n = null;
|
|
260
260
|
},
|
|
261
261
|
onObjectProperty: (p) => {
|
|
262
262
|
n = p;
|
|
263
263
|
},
|
|
264
264
|
onObjectEnd: () => {
|
|
265
|
-
t =
|
|
265
|
+
t = s.pop();
|
|
266
266
|
},
|
|
267
267
|
onArrayBegin: () => {
|
|
268
268
|
const p = [];
|
|
269
|
-
i(p),
|
|
269
|
+
i(p), s.push(t), t = p, n = null;
|
|
270
270
|
},
|
|
271
271
|
onArrayEnd: () => {
|
|
272
|
-
t =
|
|
272
|
+
t = s.pop();
|
|
273
273
|
},
|
|
274
274
|
onLiteralValue: i,
|
|
275
275
|
onError: (p, v, y) => {
|
|
276
276
|
o.push({ error: p, offset: v, length: y });
|
|
277
277
|
}
|
|
278
|
-
},
|
|
278
|
+
}, f), t[0];
|
|
279
279
|
}
|
|
280
|
-
function ve(e, o,
|
|
280
|
+
function ve(e, o, f = I.DEFAULT) {
|
|
281
281
|
const n = be(e, !1), t = [];
|
|
282
|
-
let
|
|
282
|
+
let s = 0;
|
|
283
283
|
function i(c) {
|
|
284
|
-
return c ? () =>
|
|
284
|
+
return c ? () => s === 0 && c(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
|
|
285
285
|
}
|
|
286
286
|
function m(c) {
|
|
287
|
-
return c ? (r) =>
|
|
287
|
+
return c ? (r) => s === 0 && c(r, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
|
|
288
288
|
}
|
|
289
289
|
function p(c) {
|
|
290
|
-
return c ? (r) =>
|
|
290
|
+
return c ? (r) => s === 0 && c(r, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => t.slice()) : () => !0;
|
|
291
291
|
}
|
|
292
292
|
function v(c) {
|
|
293
293
|
return c ? () => {
|
|
294
|
-
|
|
294
|
+
s > 0 ? s++ : c(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => t.slice()) === !1 && (s = 1);
|
|
295
295
|
} : () => !0;
|
|
296
296
|
}
|
|
297
297
|
function y(c) {
|
|
298
298
|
return c ? () => {
|
|
299
|
-
|
|
299
|
+
s > 0 && s--, s === 0 && c(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
|
|
300
300
|
} : () => !0;
|
|
301
301
|
}
|
|
302
|
-
const a = v(o.onObjectBegin), _ = p(o.onObjectProperty), b = y(o.onObjectEnd), O = v(o.onArrayBegin), L = y(o.onArrayEnd), A = p(o.onLiteralValue), N = m(o.onSeparator), d = i(o.onComment), l = m(o.onError), T =
|
|
302
|
+
const a = v(o.onObjectBegin), _ = p(o.onObjectProperty), b = y(o.onObjectEnd), O = v(o.onArrayBegin), L = y(o.onArrayEnd), A = p(o.onLiteralValue), N = m(o.onSeparator), d = i(o.onComment), l = m(o.onError), T = f && f.disallowComments, w = f && f.allowTrailingComma;
|
|
303
303
|
function k() {
|
|
304
304
|
for (; ; ) {
|
|
305
305
|
const c = n.scan();
|
|
@@ -469,21 +469,21 @@ function ve(e, o, s = I.DEFAULT) {
|
|
|
469
469
|
return P();
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
return k(), n.getToken() === 17 ?
|
|
472
|
+
return k(), n.getToken() === 17 ? f.allowEmptyContent ? !0 : (u(4, [], []), !1) : F() ? (n.getToken() !== 17 && u(9, [], []), !0) : (u(4, [], []), !1);
|
|
473
473
|
}
|
|
474
|
-
var
|
|
474
|
+
var z;
|
|
475
475
|
(function(e) {
|
|
476
476
|
e[e.None = 0] = "None", e[e.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 4] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 6] = "InvalidCharacter";
|
|
477
|
-
})(
|
|
478
|
-
var
|
|
477
|
+
})(z || (z = {}));
|
|
478
|
+
var M;
|
|
479
479
|
(function(e) {
|
|
480
480
|
e[e.OpenBraceToken = 1] = "OpenBraceToken", e[e.CloseBraceToken = 2] = "CloseBraceToken", e[e.OpenBracketToken = 3] = "OpenBracketToken", e[e.CloseBracketToken = 4] = "CloseBracketToken", e[e.CommaToken = 5] = "CommaToken", e[e.ColonToken = 6] = "ColonToken", e[e.NullKeyword = 7] = "NullKeyword", e[e.TrueKeyword = 8] = "TrueKeyword", e[e.FalseKeyword = 9] = "FalseKeyword", e[e.StringLiteral = 10] = "StringLiteral", e[e.NumericLiteral = 11] = "NumericLiteral", e[e.LineCommentTrivia = 12] = "LineCommentTrivia", e[e.BlockCommentTrivia = 13] = "BlockCommentTrivia", e[e.LineBreakTrivia = 14] = "LineBreakTrivia", e[e.Trivia = 15] = "Trivia", e[e.Unknown = 16] = "Unknown", e[e.EOF = 17] = "EOF";
|
|
481
|
-
})(
|
|
481
|
+
})(M || (M = {}));
|
|
482
482
|
const we = Te;
|
|
483
|
-
var
|
|
483
|
+
var X;
|
|
484
484
|
(function(e) {
|
|
485
485
|
e[e.InvalidSymbol = 1] = "InvalidSymbol", e[e.InvalidNumberFormat = 2] = "InvalidNumberFormat", e[e.PropertyNameExpected = 3] = "PropertyNameExpected", e[e.ValueExpected = 4] = "ValueExpected", e[e.ColonExpected = 5] = "ColonExpected", e[e.CommaExpected = 6] = "CommaExpected", e[e.CloseBraceExpected = 7] = "CloseBraceExpected", e[e.CloseBracketExpected = 8] = "CloseBracketExpected", e[e.EndOfFileExpected = 9] = "EndOfFileExpected", e[e.InvalidCommentToken = 10] = "InvalidCommentToken", e[e.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 14] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 16] = "InvalidCharacter";
|
|
486
|
-
})(
|
|
486
|
+
})(X || (X = {}));
|
|
487
487
|
const ye = {
|
|
488
488
|
key: 0,
|
|
489
489
|
class: "vfp-renderer-loading"
|
|
@@ -518,8 +518,8 @@ function Ee(e) {
|
|
|
518
518
|
function Ue(e, o) {
|
|
519
519
|
return e === null ? g("span", { class: "json-null", style: { color: o.keyword } }, "null") : e === void 0 ? g("span", { class: "json-null", style: { color: o.keyword } }, "undefined") : typeof e == "boolean" ? g("span", { style: { color: o.keyword } }, String(e)) : typeof e == "number" ? g("span", { style: { color: o.number } }, String(e)) : typeof e == "string" ? g("span", { style: { color: o.string } }, `"${e}"`) : g("span", { style: { color: o.bracket } }, String(e));
|
|
520
520
|
}
|
|
521
|
-
function
|
|
522
|
-
return g("div", { class: "json-row", style: { paddingLeft: `${
|
|
521
|
+
function Z(e, o, f, n, t) {
|
|
522
|
+
return g("div", { class: "json-row", style: { paddingLeft: `${f}px` } }, [
|
|
523
523
|
g("span", { class: "json-arrow-placeholder" }),
|
|
524
524
|
e !== void 0 ? g("span", { class: "json-key", style: { color: n.key } }, [
|
|
525
525
|
`"${e}"`,
|
|
@@ -537,18 +537,18 @@ const H = J({
|
|
|
537
537
|
defaultExpanded: { type: Boolean, default: !1 }
|
|
538
538
|
},
|
|
539
539
|
setup(e) {
|
|
540
|
-
const o = U(e.defaultExpanded),
|
|
540
|
+
const o = U(e.defaultExpanded), f = () => {
|
|
541
541
|
o.value = !o.value;
|
|
542
|
-
}, n = le(ce, null), t =
|
|
543
|
-
return { expanded: o, toggle:
|
|
542
|
+
}, n = le(ce, null), t = S(() => (n == null ? void 0 : n.t.value) ?? pe({ locale: "en-US" })), s = ke(), i = S(() => Ee(s.value));
|
|
543
|
+
return { expanded: o, toggle: f, tFunc: t, colors: i };
|
|
544
544
|
},
|
|
545
545
|
render() {
|
|
546
|
-
const { keyName: e, value: o, depth:
|
|
546
|
+
const { keyName: e, value: o, depth: f, expanded: n, toggle: t, tFunc: s, colors: i } = this, m = f * 20;
|
|
547
547
|
if (o == null || typeof o != "object")
|
|
548
|
-
return
|
|
548
|
+
return Z(e, o, m, i);
|
|
549
549
|
const p = Array.isArray(o), y = (p ? o : Object.entries(o)).length, a = p ? "[" : "{", _ = p ? "]" : "}";
|
|
550
550
|
if (y === 0)
|
|
551
|
-
return
|
|
551
|
+
return Z(e, null, m, i, `${a}${_}`);
|
|
552
552
|
const b = [];
|
|
553
553
|
return b.push(
|
|
554
554
|
g("div", {
|
|
@@ -565,17 +565,17 @@ const H = J({
|
|
|
565
565
|
]) : null,
|
|
566
566
|
g("span", { style: { color: i.bracket } }, a),
|
|
567
567
|
n ? null : g("span", { class: "json-collapsed", style: { color: i.collapsed } }, [
|
|
568
|
-
p ? `${y} ${
|
|
568
|
+
p ? `${y} ${s("json.items")}` : `${y} ${s("json.keys")}`,
|
|
569
569
|
g("span", { style: { color: i.bracket } }, ` ${_}`)
|
|
570
570
|
])
|
|
571
571
|
])
|
|
572
572
|
), n && (p ? o.forEach((O, L) => {
|
|
573
573
|
b.push(
|
|
574
|
-
g(H, { key: L, value: O, depth:
|
|
574
|
+
g(H, { key: L, value: O, depth: f + 1, defaultExpanded: f < 1 })
|
|
575
575
|
);
|
|
576
576
|
}) : Object.entries(o).forEach(([O, L]) => {
|
|
577
577
|
b.push(
|
|
578
|
-
g(H, { key: O, keyName: O, value: L, depth:
|
|
578
|
+
g(H, { key: O, keyName: O, value: L, depth: f + 1, defaultExpanded: f < 1 })
|
|
579
579
|
);
|
|
580
580
|
}), b.push(
|
|
581
581
|
g("div", { class: "json-row", style: { paddingLeft: `${m + 20}px` } }, [
|
|
@@ -591,14 +591,14 @@ const H = J({
|
|
|
591
591
|
emptyHint: {}
|
|
592
592
|
},
|
|
593
593
|
setup(e, { expose: o }) {
|
|
594
|
-
const
|
|
595
|
-
return C(() =>
|
|
596
|
-
|
|
594
|
+
const f = e, { t: n } = te(), t = ie(), s = ue(), i = U(null), m = U(!1), p = U(!0), v = U(null), y = () => oe(f.emptyHint, "textual");
|
|
595
|
+
return C(() => f.url, async () => {
|
|
596
|
+
s.begin(f.url), p.value = !0, v.value = null;
|
|
597
597
|
try {
|
|
598
|
-
const b = await se(
|
|
599
|
-
m.value = fe(b), i.value = m.value ? null : we(b);
|
|
598
|
+
const b = await se(f.url, { fetcher: t.value });
|
|
599
|
+
m.value = fe(b), i.value = m.value ? null : we(b), s.ready();
|
|
600
600
|
} catch (b) {
|
|
601
|
-
console.error(b), v.value = n.value("json.load_failed"),
|
|
601
|
+
console.error(b), v.value = n.value("json.load_failed"), s.error(b);
|
|
602
602
|
} finally {
|
|
603
603
|
p.value = !1;
|
|
604
604
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as er, ref as qe, watch as tr, computed as te, openBlock as J, createElementBlock as Q, createElementVNode as F, toDisplayString as ne, unref as ae, createBlock as rr, createVNode as he, createCommentVNode as oe, normalizeStyle as ir, Fragment as nr, renderList as ar, createTextVNode as sr, normalizeClass as or } from "vue";
|
|
2
|
-
import { u as cr, a as fr, b as ur, J as hr,
|
|
2
|
+
import { u as cr, a as fr, b as ur, J as hr, d as lr } from "./index-B5hprvcF.mjs";
|
|
3
3
|
import { User as dr, Users as Ve, Calendar as mt, Clock as Et, Tag as gt, Mail as pr, Paperclip as yr, Hash as br } from "lucide-vue-next";
|
|
4
4
|
import { _ as vr } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
|
|
5
5
|
var fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -12936,7 +12936,7 @@ const Ni = /* @__PURE__ */ mr(Vt), Li = {
|
|
|
12936
12936
|
const S = await c.value(a.url);
|
|
12937
12937
|
if (!S.ok) throw new hr("file.load_failed");
|
|
12938
12938
|
const L = await S.arrayBuffer(), V = new Ni(L);
|
|
12939
|
-
d.value = V.getFileData();
|
|
12939
|
+
d.value = V.getFileData(), u.ready();
|
|
12940
12940
|
} catch (S) {
|
|
12941
12941
|
console.error(n.value("msg.parse_failed") + ":", S), s.value = n.value("msg.parse_failed"), u.error(S);
|
|
12942
12942
|
} finally {
|
|
@@ -13188,7 +13188,7 @@ const Ni = /* @__PURE__ */ mr(Vt), Li = {
|
|
|
13188
13188
|
])
|
|
13189
13189
|
]));
|
|
13190
13190
|
}
|
|
13191
|
-
}), jn = /* @__PURE__ */ lr(kn, [["__scopeId", "data-v-
|
|
13191
|
+
}), jn = /* @__PURE__ */ lr(kn, [["__scopeId", "data-v-f95182ce"]]);
|
|
13192
13192
|
export {
|
|
13193
13193
|
jn as default
|
|
13194
13194
|
};
|