handy-uploader 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vuetify.cjs +1 -1
- package/dist/vuetify.mjs +380 -373
- package/package.json +1 -1
package/dist/vuetify.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as J, computed as Q, resolveComponent as f, openBlock as
|
|
2
|
-
import { z as Le, m as se, u as re, g as ce, b as
|
|
3
|
-
import { C as
|
|
1
|
+
import { defineComponent as J, computed as Q, resolveComponent as f, openBlock as u, createElementBlock as w, createVNode as s, withCtx as o, createTextVNode as _, toDisplayString as y, ref as Z, watch as U, onMounted as ke, Fragment as H, renderList as W, createBlock as v, createElementVNode as D, unref as G, mergeProps as R, createCommentVNode as A, withDirectives as pe, vShow as ge, reactive as we, onBeforeMount as $e, onDeactivated as Ae } from "vue";
|
|
2
|
+
import { z as Le, m as se, u as re, g as ce, b as Te, A as de, B as ue, c as Ve, f as ze, r as Be, l as Se, j as Ue, a as Ee, y as Ie, x as Pe, i as je, k as me, q as Me } from "./language-CYpPw-mk.mjs";
|
|
3
|
+
import { C as Ut, e as Et, h as It, d as Pt, n as jt, o as Mt, t as Ht, v as Nt, p as Ot, w as qt, s as Rt } from "./language-CYpPw-mk.mjs";
|
|
4
4
|
const te = /* @__PURE__ */ J({
|
|
5
5
|
__name: "SelectFileIconType",
|
|
6
6
|
props: {
|
|
@@ -14,7 +14,7 @@ const te = /* @__PURE__ */ J({
|
|
|
14
14
|
});
|
|
15
15
|
return (e, m) => {
|
|
16
16
|
const C = f("v-icon");
|
|
17
|
-
return
|
|
17
|
+
return u(), w("div", null, [
|
|
18
18
|
s(C, {
|
|
19
19
|
size: i.size,
|
|
20
20
|
color: t.value.color
|
|
@@ -27,23 +27,23 @@ const te = /* @__PURE__ */ J({
|
|
|
27
27
|
]);
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
}),
|
|
30
|
+
}), He = {
|
|
31
31
|
key: 0,
|
|
32
32
|
style: { height: "200px", display: "flex", "align-items": "center", "justify-content": "center", "background-color": "#f5f5f5", overflow: "hidden" }
|
|
33
|
-
},
|
|
33
|
+
}, Ne = ["src", "onError"], Oe = {
|
|
34
34
|
key: 1,
|
|
35
35
|
style: { height: "200px", "background-color": "#f5f5f5", position: "relative", overflow: "hidden", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
36
|
-
},
|
|
36
|
+
}, qe = ["src", "onError"], Re = {
|
|
37
37
|
key: 1,
|
|
38
38
|
style: { width: "100%", height: "100%", background: "#e0e0e0", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
39
|
-
},
|
|
39
|
+
}, We = {
|
|
40
40
|
class: "d-flex justify-center align-center",
|
|
41
41
|
style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", background: "rgba(0,0,0,0.7)", "border-radius": "50%", width: "60px", height: "60px", cursor: "pointer" }
|
|
42
|
-
},
|
|
42
|
+
}, Xe = {
|
|
43
43
|
key: 2,
|
|
44
44
|
class: "d-flex justify-center align-center",
|
|
45
45
|
style: { height: "200px", "background-color": "#f5f5f5" }
|
|
46
|
-
},
|
|
46
|
+
}, Ye = { class: "BYekan" }, Ge = { class: "BYekan" }, Ke = { key: 0 }, he = /* @__PURE__ */ J({
|
|
47
47
|
__name: "ThumbnailUploader",
|
|
48
48
|
props: {
|
|
49
49
|
lang: { default: "en" },
|
|
@@ -67,11 +67,11 @@ const te = /* @__PURE__ */ J({
|
|
|
67
67
|
}, e = l, m = i, C = (n) => {
|
|
68
68
|
const a = ce(n) === "video";
|
|
69
69
|
return console.log("🎥 Checking if video file:", n, "result:", a, "fileType:", ce(n)), a;
|
|
70
|
-
},
|
|
70
|
+
}, T = (n) => {
|
|
71
71
|
var r;
|
|
72
72
|
if (!n.base64 || !n.format)
|
|
73
73
|
return console.error("❌ Missing base64 or format for:", n.name, { base64: !!n.base64, format: n.format }), "";
|
|
74
|
-
const a =
|
|
74
|
+
const a = Te(n.base64, n.format);
|
|
75
75
|
return console.log("🖼️ Image source for:", n.name, {
|
|
76
76
|
format: n.format,
|
|
77
77
|
base64Length: ((r = n.base64) == null ? void 0 : r.length) || 0,
|
|
@@ -85,31 +85,31 @@ const te = /* @__PURE__ */ J({
|
|
|
85
85
|
format: n.format,
|
|
86
86
|
base64Length: ((a = n.base64) == null ? void 0 : a.length) || 0
|
|
87
87
|
});
|
|
88
|
-
}, z = Z(0),
|
|
89
|
-
console.error("Video thumbnail failed to load:", { name: n.name, format: n.format }),
|
|
88
|
+
}, z = Z(0), h = Ve(() => z.value++), g = (n) => (z.value, h.get(n)), B = (n) => {
|
|
89
|
+
console.error("Video thumbnail failed to load:", { name: n.name, format: n.format }), h.invalidate(n);
|
|
90
90
|
}, L = (n) => ({
|
|
91
91
|
icon: ue(n),
|
|
92
92
|
color: de(n)
|
|
93
|
-
}),
|
|
93
|
+
}), S = (n) => n.tags.length > 0 || !!n.description, j = (n) => {
|
|
94
94
|
n.showDetailState = !n.showDetailState;
|
|
95
|
-
},
|
|
95
|
+
}, E = (n, a) => {
|
|
96
96
|
m("openDeleteDialog", n, a);
|
|
97
97
|
}, M = (n, a) => {
|
|
98
98
|
m("openEditDocumentDialog", n, a);
|
|
99
|
-
},
|
|
100
|
-
if (
|
|
99
|
+
}, c = () => {
|
|
100
|
+
if (h.retain(e.documentAttachment.map((a) => a.file)), !e.thumb) return;
|
|
101
101
|
console.log("🎯 Generating thumbnails for videos, total attachments:", e.documentAttachment.length);
|
|
102
102
|
const n = e.documentAttachment.filter((a) => C(a.file.name));
|
|
103
103
|
console.log("📹 Found video attachments:", n.length, n.map((a) => a.file.name)), n.forEach((a) => {
|
|
104
|
-
console.log("🎬 Processing video:", a.file.name),
|
|
104
|
+
console.log("🎬 Processing video:", a.file.name), g(a.file);
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
return
|
|
108
|
-
const r = f("v-icon"),
|
|
109
|
-
return
|
|
107
|
+
return U(() => e.documentAttachment, c, { immediate: !0 }), ke(c), (n, a) => {
|
|
108
|
+
const r = f("v-icon"), d = f("v-card-subtitle"), x = f("v-chip"), b = f("v-divider"), V = f("v-btn"), F = f("v-tooltip"), N = f("v-spacer"), K = f("v-card-actions"), ee = f("v-chip-group"), q = f("v-card-text"), le = f("v-expand-transition"), oe = f("v-card"), ne = f("v-col"), ae = f("v-row");
|
|
109
|
+
return u(), w("div", null, [
|
|
110
110
|
s(ae, null, {
|
|
111
111
|
default: o(() => [
|
|
112
|
-
(
|
|
112
|
+
(u(!0), w(H, null, W(l.documentAttachment, ($, X) => (u(), v(ne, {
|
|
113
113
|
key: `attachment-${X}`,
|
|
114
114
|
cols: "12",
|
|
115
115
|
md: l.cols,
|
|
@@ -125,19 +125,19 @@ const te = /* @__PURE__ */ J({
|
|
|
125
125
|
"max-width": "344"
|
|
126
126
|
}, {
|
|
127
127
|
default: o(() => [
|
|
128
|
-
l.thumb && t($.file.name) ? (
|
|
128
|
+
l.thumb && t($.file.name) ? (u(), w("div", He, [
|
|
129
129
|
D("img", {
|
|
130
|
-
src:
|
|
130
|
+
src: T($.file),
|
|
131
131
|
style: { "max-width": "100%", "max-height": "100%", "object-fit": "contain" },
|
|
132
|
-
onError: (
|
|
133
|
-
}, null, 40,
|
|
134
|
-
])) : l.thumb && C($.file.name) ? (
|
|
135
|
-
|
|
132
|
+
onError: (I) => k($.file)
|
|
133
|
+
}, null, 40, Ne)
|
|
134
|
+
])) : l.thumb && C($.file.name) ? (u(), w("div", Oe, [
|
|
135
|
+
g($.file) ? (u(), w("img", {
|
|
136
136
|
key: 0,
|
|
137
|
-
src:
|
|
137
|
+
src: g($.file),
|
|
138
138
|
style: { width: "100%", height: "100%", "object-fit": "cover" },
|
|
139
|
-
onError: (
|
|
140
|
-
}, null, 40,
|
|
139
|
+
onError: (I) => B($.file)
|
|
140
|
+
}, null, 40, qe)) : (u(), w("div", Re, [
|
|
141
141
|
s(r, {
|
|
142
142
|
size: "60",
|
|
143
143
|
color: "grey"
|
|
@@ -148,7 +148,7 @@ const te = /* @__PURE__ */ J({
|
|
|
148
148
|
_: 1
|
|
149
149
|
})
|
|
150
150
|
])),
|
|
151
|
-
D("div",
|
|
151
|
+
D("div", We, [
|
|
152
152
|
s(r, {
|
|
153
153
|
color: "white",
|
|
154
154
|
size: "30"
|
|
@@ -159,7 +159,7 @@ const te = /* @__PURE__ */ J({
|
|
|
159
159
|
_: 1
|
|
160
160
|
})
|
|
161
161
|
])
|
|
162
|
-
])) : (
|
|
162
|
+
])) : (u(), w("div", Xe, [
|
|
163
163
|
s(r, {
|
|
164
164
|
size: "120",
|
|
165
165
|
color: L($.file.name).color
|
|
@@ -170,13 +170,13 @@ const te = /* @__PURE__ */ J({
|
|
|
170
170
|
_: 2
|
|
171
171
|
}, 1032, ["color"])
|
|
172
172
|
])),
|
|
173
|
-
s(
|
|
173
|
+
s(d, { class: "text-truncate py-2" }, {
|
|
174
174
|
default: o(() => [
|
|
175
175
|
_(y($.file.name), 1)
|
|
176
176
|
]),
|
|
177
177
|
_: 2
|
|
178
178
|
}, 1024),
|
|
179
|
-
s(
|
|
179
|
+
s(d, { class: "pt-2 pb-3" }, {
|
|
180
180
|
default: o(() => [
|
|
181
181
|
s(x, {
|
|
182
182
|
color: G(se)($.file.size).color,
|
|
@@ -201,13 +201,13 @@ const te = /* @__PURE__ */ J({
|
|
|
201
201
|
s(K, { style: { padding: "0" } }, {
|
|
202
202
|
default: o(() => [
|
|
203
203
|
s(F, { right: "" }, {
|
|
204
|
-
activator: o(({ props:
|
|
205
|
-
l.deletePermission ? (
|
|
204
|
+
activator: o(({ props: I }) => [
|
|
205
|
+
l.deletePermission ? (u(), v(V, R({
|
|
206
206
|
key: 0,
|
|
207
207
|
text: "",
|
|
208
208
|
fab: ""
|
|
209
|
-
}, { ref_for: !0 },
|
|
210
|
-
onClick: (Y) =>
|
|
209
|
+
}, { ref_for: !0 }, I, {
|
|
210
|
+
onClick: (Y) => E(X, "")
|
|
211
211
|
}), {
|
|
212
212
|
default: o(() => [
|
|
213
213
|
s(r, { color: "red" }, {
|
|
@@ -221,17 +221,17 @@ const te = /* @__PURE__ */ J({
|
|
|
221
221
|
}, 16, ["onClick"])) : A("", !0)
|
|
222
222
|
]),
|
|
223
223
|
default: o(() => [
|
|
224
|
-
D("span",
|
|
224
|
+
D("span", Ye, y(l.selectedLang[l.lang].delete), 1)
|
|
225
225
|
]),
|
|
226
226
|
_: 2
|
|
227
227
|
}, 1024),
|
|
228
228
|
s(F, { right: "" }, {
|
|
229
|
-
activator: o(({ props:
|
|
230
|
-
l.editPermission ? (
|
|
229
|
+
activator: o(({ props: I }) => [
|
|
230
|
+
l.editPermission ? (u(), v(V, R({
|
|
231
231
|
key: 0,
|
|
232
232
|
text: "",
|
|
233
233
|
fab: ""
|
|
234
|
-
}, { ref_for: !0 },
|
|
234
|
+
}, { ref_for: !0 }, I, {
|
|
235
235
|
onClick: (Y) => M($, X)
|
|
236
236
|
}), {
|
|
237
237
|
default: o(() => [
|
|
@@ -246,15 +246,15 @@ const te = /* @__PURE__ */ J({
|
|
|
246
246
|
}, 16, ["onClick"])) : A("", !0)
|
|
247
247
|
]),
|
|
248
248
|
default: o(() => [
|
|
249
|
-
D("span",
|
|
249
|
+
D("span", Ge, y(l.selectedLang[l.lang].edit), 1)
|
|
250
250
|
]),
|
|
251
251
|
_: 2
|
|
252
252
|
}, 1024),
|
|
253
253
|
s(N),
|
|
254
|
-
|
|
254
|
+
S($.file) ? (u(), v(V, {
|
|
255
255
|
key: 0,
|
|
256
256
|
icon: "",
|
|
257
|
-
onClick: (
|
|
257
|
+
onClick: (I) => j($.file)
|
|
258
258
|
}, {
|
|
259
259
|
default: o(() => [
|
|
260
260
|
s(r, null, {
|
|
@@ -271,28 +271,28 @@ const te = /* @__PURE__ */ J({
|
|
|
271
271
|
}, 1024),
|
|
272
272
|
s(le, null, {
|
|
273
273
|
default: o(() => [
|
|
274
|
-
|
|
274
|
+
S($.file) ? pe((u(), w("div", Ke, [
|
|
275
275
|
s(b),
|
|
276
|
-
$.file.tags.length ? (
|
|
276
|
+
$.file.tags.length ? (u(), v(ee, {
|
|
277
277
|
key: 0,
|
|
278
278
|
multiple: "",
|
|
279
279
|
"active-class": "primary--text",
|
|
280
280
|
class: "pa-2"
|
|
281
281
|
}, {
|
|
282
282
|
default: o(() => [
|
|
283
|
-
(
|
|
283
|
+
(u(!0), w(H, null, W($.file.tags, (I, Y) => (u(), v(x, {
|
|
284
284
|
key: `tag-${Y}`,
|
|
285
285
|
class: "ma-1"
|
|
286
286
|
}, {
|
|
287
287
|
default: o(() => [
|
|
288
|
-
_(y(
|
|
288
|
+
_(y(I), 1)
|
|
289
289
|
]),
|
|
290
290
|
_: 2
|
|
291
291
|
}, 1024))), 128))
|
|
292
292
|
]),
|
|
293
293
|
_: 2
|
|
294
294
|
}, 1024)) : A("", !0),
|
|
295
|
-
$.file.description ? (
|
|
295
|
+
$.file.description ? (u(), v(q, {
|
|
296
296
|
key: 1,
|
|
297
297
|
class: "text-justify"
|
|
298
298
|
}, {
|
|
@@ -319,16 +319,16 @@ const te = /* @__PURE__ */ J({
|
|
|
319
319
|
]);
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
}),
|
|
322
|
+
}), Je = {
|
|
323
323
|
class: "text-left",
|
|
324
324
|
style: { width: "80px" }
|
|
325
|
-
},
|
|
325
|
+
}, Qe = { class: "text-center" }, Ze = {
|
|
326
326
|
class: "text-left",
|
|
327
327
|
style: { width: "120px" }
|
|
328
|
-
},
|
|
328
|
+
}, et = {
|
|
329
329
|
class: "text-left",
|
|
330
330
|
style: { width: "120px" }
|
|
331
|
-
},
|
|
331
|
+
}, tt = { class: "text-center pa-3" }, lt = { class: "text-left pa-3" }, ot = { class: "text-left pa-3" }, nt = { class: "text-center pa-2" }, at = { class: "d-flex justify-center ga-1" }, it = /* @__PURE__ */ J({
|
|
332
332
|
__name: "TableUploader",
|
|
333
333
|
props: {
|
|
334
334
|
documentAttachment: {},
|
|
@@ -344,23 +344,23 @@ const te = /* @__PURE__ */ J({
|
|
|
344
344
|
},
|
|
345
345
|
emits: ["openDeleteDialog", "openEditDocumentDialog"],
|
|
346
346
|
setup(l, { emit: i }) {
|
|
347
|
-
const t = l, e = i, m = (
|
|
348
|
-
const
|
|
349
|
-
return
|
|
350
|
-
},
|
|
351
|
-
const
|
|
352
|
-
return
|
|
353
|
-
}, k = (
|
|
354
|
-
e("openDeleteDialog",
|
|
355
|
-
}, z = (
|
|
356
|
-
e("openEditDocumentDialog",
|
|
347
|
+
const t = l, e = i, m = (h) => h ? re(h) : !1, C = (h) => {
|
|
348
|
+
const g = h / 1e3, B = g / 1024;
|
|
349
|
+
return B >= 1 ? `${B.toFixed(1)} MB` : `${g.toFixed(1)} KB`;
|
|
350
|
+
}, T = (h) => {
|
|
351
|
+
const g = h / 1024e3;
|
|
352
|
+
return g < 1 ? "success" : g < 5 ? "warning" : "error";
|
|
353
|
+
}, k = (h, g) => {
|
|
354
|
+
e("openDeleteDialog", h, g);
|
|
355
|
+
}, z = (h, g) => {
|
|
356
|
+
e("openEditDocumentDialog", h, g);
|
|
357
357
|
};
|
|
358
|
-
return (
|
|
359
|
-
const
|
|
360
|
-
return
|
|
358
|
+
return (h, g) => {
|
|
359
|
+
const B = f("v-img"), L = f("v-icon"), S = f("v-tooltip"), j = f("v-chip"), E = f("v-btn"), M = f("v-table"), c = f("v-col"), n = f("v-row");
|
|
360
|
+
return u(), w("div", null, [
|
|
361
361
|
s(n, null, {
|
|
362
362
|
default: o(() => [
|
|
363
|
-
s(
|
|
363
|
+
s(c, { cols: "12" }, {
|
|
364
364
|
default: o(() => [
|
|
365
365
|
s(M, {
|
|
366
366
|
"fixed-header": t.tableFixedHeader,
|
|
@@ -370,26 +370,26 @@ const te = /* @__PURE__ */ J({
|
|
|
370
370
|
default: o(() => [
|
|
371
371
|
D("thead", null, [
|
|
372
372
|
D("tr", null, [
|
|
373
|
-
D("th",
|
|
374
|
-
D("th",
|
|
375
|
-
D("th",
|
|
376
|
-
D("th",
|
|
373
|
+
D("th", Je, y(t.selectedLang[l.lang].table.thumb), 1),
|
|
374
|
+
D("th", Qe, y(t.selectedLang[l.lang].table.name), 1),
|
|
375
|
+
D("th", Ze, y(t.selectedLang[l.lang].table.size), 1),
|
|
376
|
+
D("th", et, y(t.selectedLang[l.lang].table.action.action), 1)
|
|
377
377
|
])
|
|
378
378
|
]),
|
|
379
379
|
D("tbody", null, [
|
|
380
|
-
(
|
|
380
|
+
(u(!0), w(H, null, W(t.documentAttachment, (a, r) => (u(), w("tr", {
|
|
381
381
|
key: `attachment-${r}`,
|
|
382
382
|
class: "table-row"
|
|
383
383
|
}, [
|
|
384
|
-
D("td",
|
|
385
|
-
s(
|
|
386
|
-
activator: o(({ props:
|
|
384
|
+
D("td", tt, [
|
|
385
|
+
s(S, { location: "top" }, {
|
|
386
|
+
activator: o(({ props: d }) => [
|
|
387
387
|
D("div", R({
|
|
388
388
|
class: "d-flex justify-center align-center",
|
|
389
389
|
style: { height: "60px", width: "60px" }
|
|
390
|
-
}, { ref_for: !0 },
|
|
391
|
-
m(a.file.name) ? (
|
|
392
|
-
t.thumb && a.file.base64 ? (
|
|
390
|
+
}, { ref_for: !0 }, d), [
|
|
391
|
+
m(a.file.name) ? (u(), w(H, { key: 0 }, [
|
|
392
|
+
t.thumb && a.file.base64 ? (u(), v(B, {
|
|
393
393
|
key: 0,
|
|
394
394
|
style: { height: "40px", width: "40px" },
|
|
395
395
|
src: "data:" + a.file.format + ";base64," + a.file.base64,
|
|
@@ -397,17 +397,17 @@ const te = /* @__PURE__ */ J({
|
|
|
397
397
|
width: "40",
|
|
398
398
|
class: "rounded",
|
|
399
399
|
contain: ""
|
|
400
|
-
}, null, 8, ["src"])) : (
|
|
400
|
+
}, null, 8, ["src"])) : (u(), v(L, {
|
|
401
401
|
key: 1,
|
|
402
402
|
size: "40",
|
|
403
403
|
color: "deep-purple"
|
|
404
404
|
}, {
|
|
405
|
-
default: o(() => [...
|
|
405
|
+
default: o(() => [...g[0] || (g[0] = [
|
|
406
406
|
_(" mdi-file-image-outline ", -1)
|
|
407
407
|
])]),
|
|
408
408
|
_: 1
|
|
409
409
|
}))
|
|
410
|
-
], 64)) : (
|
|
410
|
+
], 64)) : (u(), v(L, {
|
|
411
411
|
key: 1,
|
|
412
412
|
icon: G(ue)(a.file.name),
|
|
413
413
|
color: G(de)(a.file.name),
|
|
@@ -421,10 +421,10 @@ const te = /* @__PURE__ */ J({
|
|
|
421
421
|
_: 2
|
|
422
422
|
}, 1024)
|
|
423
423
|
]),
|
|
424
|
-
D("td",
|
|
425
|
-
s(
|
|
426
|
-
activator: o(({ props:
|
|
427
|
-
D("span", R({ ref_for: !0 },
|
|
424
|
+
D("td", lt, [
|
|
425
|
+
s(S, { location: "top" }, {
|
|
426
|
+
activator: o(({ props: d }) => [
|
|
427
|
+
D("span", R({ ref_for: !0 }, d), y((() => {
|
|
428
428
|
const x = a.file.name.split(".").pop(), b = a.file.name.slice(0, a.file.name.lastIndexOf("."));
|
|
429
429
|
return `${b.length > 10 ? b.slice(0, 10) + "..." : b}.${x}`;
|
|
430
430
|
})()), 17)
|
|
@@ -435,9 +435,9 @@ const te = /* @__PURE__ */ J({
|
|
|
435
435
|
_: 2
|
|
436
436
|
}, 1024)
|
|
437
437
|
]),
|
|
438
|
-
D("td",
|
|
438
|
+
D("td", ot, [
|
|
439
439
|
s(j, {
|
|
440
|
-
color:
|
|
440
|
+
color: T(a.file.size),
|
|
441
441
|
variant: "tonal",
|
|
442
442
|
size: "small",
|
|
443
443
|
class: "text-caption"
|
|
@@ -448,24 +448,24 @@ const te = /* @__PURE__ */ J({
|
|
|
448
448
|
_: 2
|
|
449
449
|
}, 1032, ["color"])
|
|
450
450
|
]),
|
|
451
|
-
D("td",
|
|
452
|
-
D("div",
|
|
453
|
-
l.editPermission ? (
|
|
451
|
+
D("td", nt, [
|
|
452
|
+
D("div", at, [
|
|
453
|
+
l.editPermission ? (u(), v(S, {
|
|
454
454
|
key: 0,
|
|
455
455
|
location: "top"
|
|
456
456
|
}, {
|
|
457
|
-
activator: o(({ props:
|
|
458
|
-
s(
|
|
457
|
+
activator: o(({ props: d }) => [
|
|
458
|
+
s(E, R({
|
|
459
459
|
icon: "",
|
|
460
460
|
size: "small",
|
|
461
461
|
color: "success",
|
|
462
462
|
variant: "text"
|
|
463
|
-
}, { ref_for: !0 },
|
|
463
|
+
}, { ref_for: !0 }, d, {
|
|
464
464
|
onClick: (x) => z(a, r)
|
|
465
465
|
}), {
|
|
466
466
|
default: o(() => [
|
|
467
467
|
s(L, { size: "18" }, {
|
|
468
|
-
default: o(() => [...
|
|
468
|
+
default: o(() => [...g[1] || (g[1] = [
|
|
469
469
|
_("mdi-pencil-outline", -1)
|
|
470
470
|
])]),
|
|
471
471
|
_: 1
|
|
@@ -479,22 +479,22 @@ const te = /* @__PURE__ */ J({
|
|
|
479
479
|
]),
|
|
480
480
|
_: 2
|
|
481
481
|
}, 1024)) : A("", !0),
|
|
482
|
-
l.deletePermission ? (
|
|
482
|
+
l.deletePermission ? (u(), v(S, {
|
|
483
483
|
key: 1,
|
|
484
484
|
location: "top"
|
|
485
485
|
}, {
|
|
486
|
-
activator: o(({ props:
|
|
487
|
-
s(
|
|
486
|
+
activator: o(({ props: d }) => [
|
|
487
|
+
s(E, R({
|
|
488
488
|
icon: "",
|
|
489
489
|
size: "small",
|
|
490
490
|
color: "error",
|
|
491
491
|
variant: "text"
|
|
492
|
-
}, { ref_for: !0 },
|
|
492
|
+
}, { ref_for: !0 }, d, {
|
|
493
493
|
onClick: (x) => k(r, "")
|
|
494
494
|
}), {
|
|
495
495
|
default: o(() => [
|
|
496
496
|
s(L, { size: "18" }, {
|
|
497
|
-
default: o(() => [...
|
|
497
|
+
default: o(() => [...g[2] || (g[2] = [
|
|
498
498
|
_("mdi-delete", -1)
|
|
499
499
|
])]),
|
|
500
500
|
_: 1
|
|
@@ -529,25 +529,25 @@ const te = /* @__PURE__ */ J({
|
|
|
529
529
|
for (const [e, m] of i)
|
|
530
530
|
t[e] = m;
|
|
531
531
|
return t;
|
|
532
|
-
}, be = /* @__PURE__ */ ve(
|
|
532
|
+
}, be = /* @__PURE__ */ ve(it, [["__scopeId", "data-v-d05b814b"]]), st = {
|
|
533
533
|
class: "d-flex align-center pa-3",
|
|
534
534
|
style: { height: "100%" }
|
|
535
|
-
},
|
|
535
|
+
}, rt = {
|
|
536
536
|
class: "flex-grow-1 pr-4",
|
|
537
537
|
style: { "max-width": "60%" }
|
|
538
|
-
},
|
|
538
|
+
}, dt = {
|
|
539
539
|
class: "text-subtitle-1 font-weight-medium mb-2",
|
|
540
540
|
style: { overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap", "max-width": "100%" }
|
|
541
|
-
},
|
|
541
|
+
}, ut = {
|
|
542
542
|
class: "flex-shrink-0",
|
|
543
543
|
style: { "min-width": "80px" }
|
|
544
|
-
},
|
|
544
|
+
}, ct = {
|
|
545
545
|
key: 0,
|
|
546
546
|
class: "thumbnail-container"
|
|
547
|
-
},
|
|
547
|
+
}, mt = {
|
|
548
548
|
key: 1,
|
|
549
549
|
class: "d-flex align-center justify-center"
|
|
550
|
-
},
|
|
550
|
+
}, ft = { class: "d-flex gap-2 pb-1" }, pt = /* @__PURE__ */ J({
|
|
551
551
|
__name: "SimpleUploader",
|
|
552
552
|
props: {
|
|
553
553
|
documentAttachment: {},
|
|
@@ -565,20 +565,20 @@ const te = /* @__PURE__ */ J({
|
|
|
565
565
|
},
|
|
566
566
|
emits: ["setCardTheme", "openDeleteDialog", "openEditDocumentDialog"],
|
|
567
567
|
setup(l, { emit: i }) {
|
|
568
|
-
const t = l, e = i, m = (
|
|
569
|
-
const
|
|
570
|
-
return
|
|
571
|
-
}, C = (
|
|
572
|
-
var
|
|
573
|
-
return ["jpg", "jpeg", "png", "tif", "bmp"].includes(((
|
|
574
|
-
},
|
|
575
|
-
return (
|
|
576
|
-
const
|
|
577
|
-
return
|
|
568
|
+
const t = l, e = i, m = (h) => {
|
|
569
|
+
const g = h / 1e3;
|
|
570
|
+
return g < 1024 ? `${g.toFixed(1)} ${t.selectedLang[t.lang].size.kb}` : `${(g / 1024).toFixed(1)} ${t.selectedLang[t.lang].size.mb}`;
|
|
571
|
+
}, C = (h) => {
|
|
572
|
+
var g;
|
|
573
|
+
return ["jpg", "jpeg", "png", "tif", "bmp"].includes(((g = h.split(".").pop()) == null ? void 0 : g.toLowerCase()) || "");
|
|
574
|
+
}, T = (h) => h.base64 ? h.base64.startsWith("data:") ? h.base64 : `data:${h.format};base64,${h.base64}` : "", k = (h, g) => e("openDeleteDialog", h, g), z = (h, g) => e("openEditDocumentDialog", h, g);
|
|
575
|
+
return (h, g) => {
|
|
576
|
+
const B = f("v-icon"), L = f("v-chip"), S = f("v-img"), j = f("v-divider"), E = f("v-btn"), M = f("v-tooltip"), c = f("v-chip-group"), n = f("v-card-text"), a = f("v-expand-transition"), r = f("v-card"), d = f("v-col"), x = f("v-row");
|
|
577
|
+
return u(), w("div", null, [
|
|
578
578
|
s(x, null, {
|
|
579
579
|
default: o(() => [
|
|
580
|
-
(
|
|
581
|
-
key: `attachment-${
|
|
580
|
+
(u(!0), w(H, null, W(t.documentAttachment, (b, V) => (u(), v(d, {
|
|
581
|
+
key: `attachment-${V}`,
|
|
582
582
|
cols: "12",
|
|
583
583
|
sm: "6",
|
|
584
584
|
md: "4",
|
|
@@ -594,9 +594,9 @@ const te = /* @__PURE__ */ J({
|
|
|
594
594
|
height: "180"
|
|
595
595
|
}, {
|
|
596
596
|
default: o(() => [
|
|
597
|
-
D("div",
|
|
598
|
-
D("div",
|
|
599
|
-
D("div",
|
|
597
|
+
D("div", st, [
|
|
598
|
+
D("div", rt, [
|
|
599
|
+
D("div", dt, y(b.file.name), 1),
|
|
600
600
|
s(L, {
|
|
601
601
|
color: "teal",
|
|
602
602
|
variant: "flat",
|
|
@@ -604,11 +604,11 @@ const te = /* @__PURE__ */ J({
|
|
|
604
604
|
class: "text-white mb-2"
|
|
605
605
|
}, {
|
|
606
606
|
default: o(() => [
|
|
607
|
-
s(
|
|
607
|
+
s(B, {
|
|
608
608
|
start: "",
|
|
609
609
|
size: "16"
|
|
610
610
|
}, {
|
|
611
|
-
default: o(() => [...
|
|
611
|
+
default: o(() => [...g[0] || (g[0] = [
|
|
612
612
|
_("mdi-harddisk", -1)
|
|
613
613
|
])]),
|
|
614
614
|
_: 1
|
|
@@ -618,17 +618,17 @@ const te = /* @__PURE__ */ J({
|
|
|
618
618
|
_: 2
|
|
619
619
|
}, 1024)
|
|
620
620
|
]),
|
|
621
|
-
D("div",
|
|
622
|
-
C(b.file.name) && t.thumb ? (
|
|
623
|
-
s(
|
|
624
|
-
src:
|
|
621
|
+
D("div", ut, [
|
|
622
|
+
C(b.file.name) && t.thumb ? (u(), w("div", ct, [
|
|
623
|
+
s(S, {
|
|
624
|
+
src: T(b.file),
|
|
625
625
|
height: "80",
|
|
626
626
|
width: "80",
|
|
627
627
|
cover: "",
|
|
628
628
|
class: "rounded"
|
|
629
629
|
}, null, 8, ["src"])
|
|
630
|
-
])) : (
|
|
631
|
-
s(
|
|
630
|
+
])) : (u(), w("div", mt, [
|
|
631
|
+
s(B, {
|
|
632
632
|
color: G(de)(b.file.name),
|
|
633
633
|
size: "60"
|
|
634
634
|
}, {
|
|
@@ -641,23 +641,23 @@ const te = /* @__PURE__ */ J({
|
|
|
641
641
|
])
|
|
642
642
|
]),
|
|
643
643
|
s(j, { class: "my-2" }),
|
|
644
|
-
D("div",
|
|
644
|
+
D("div", ft, [
|
|
645
645
|
s(M, { bottom: "" }, {
|
|
646
646
|
activator: o(({ props: F }) => [
|
|
647
|
-
t.deletePermission ? (
|
|
647
|
+
t.deletePermission ? (u(), v(E, R({
|
|
648
648
|
key: 0,
|
|
649
649
|
icon: "",
|
|
650
650
|
variant: "text",
|
|
651
651
|
size: "small"
|
|
652
652
|
}, { ref_for: !0 }, F, {
|
|
653
|
-
onClick: (N) => k(
|
|
653
|
+
onClick: (N) => k(V, "")
|
|
654
654
|
}), {
|
|
655
655
|
default: o(() => [
|
|
656
|
-
s(
|
|
656
|
+
s(B, {
|
|
657
657
|
color: "red",
|
|
658
658
|
size: "20"
|
|
659
659
|
}, {
|
|
660
|
-
default: o(() => [...
|
|
660
|
+
default: o(() => [...g[1] || (g[1] = [
|
|
661
661
|
_("mdi-delete-outline", -1)
|
|
662
662
|
])]),
|
|
663
663
|
_: 1
|
|
@@ -673,20 +673,20 @@ const te = /* @__PURE__ */ J({
|
|
|
673
673
|
}, 1024),
|
|
674
674
|
s(M, { bottom: "" }, {
|
|
675
675
|
activator: o(({ props: F }) => [
|
|
676
|
-
t.editPermission ? (
|
|
676
|
+
t.editPermission ? (u(), v(E, R({
|
|
677
677
|
key: 0,
|
|
678
678
|
icon: "",
|
|
679
679
|
variant: "text",
|
|
680
680
|
size: "small"
|
|
681
681
|
}, { ref_for: !0 }, F, {
|
|
682
|
-
onClick: (N) => z(b,
|
|
682
|
+
onClick: (N) => z(b, V)
|
|
683
683
|
}), {
|
|
684
684
|
default: o(() => [
|
|
685
|
-
s(
|
|
685
|
+
s(B, {
|
|
686
686
|
color: "green",
|
|
687
687
|
size: "20"
|
|
688
688
|
}, {
|
|
689
|
-
default: o(() => [...
|
|
689
|
+
default: o(() => [...g[2] || (g[2] = [
|
|
690
690
|
_("mdi-pencil-outline", -1)
|
|
691
691
|
])]),
|
|
692
692
|
_: 1
|
|
@@ -705,14 +705,14 @@ const te = /* @__PURE__ */ J({
|
|
|
705
705
|
default: o(() => [
|
|
706
706
|
pe(D("div", null, [
|
|
707
707
|
s(j),
|
|
708
|
-
b.file.tags.length ? (
|
|
708
|
+
b.file.tags.length ? (u(), v(c, {
|
|
709
709
|
key: 0,
|
|
710
710
|
multiple: "",
|
|
711
711
|
"active-class": "primary--text",
|
|
712
712
|
style: { padding: "8px" }
|
|
713
713
|
}, {
|
|
714
714
|
default: o(() => [
|
|
715
|
-
(
|
|
715
|
+
(u(!0), w(H, null, W(b.file.tags, (F, N) => (u(), v(L, {
|
|
716
716
|
key: `tag-${N}`,
|
|
717
717
|
style: { margin: "5px" }
|
|
718
718
|
}, {
|
|
@@ -724,7 +724,7 @@ const te = /* @__PURE__ */ J({
|
|
|
724
724
|
]),
|
|
725
725
|
_: 2
|
|
726
726
|
}, 1024)) : A("", !0),
|
|
727
|
-
b.file.description ? (
|
|
727
|
+
b.file.description ? (u(), v(n, {
|
|
728
728
|
key: 1,
|
|
729
729
|
style: { "text-align": "justify" }
|
|
730
730
|
}, {
|
|
@@ -751,7 +751,7 @@ const te = /* @__PURE__ */ J({
|
|
|
751
751
|
]);
|
|
752
752
|
};
|
|
753
753
|
}
|
|
754
|
-
}), _e = /* @__PURE__ */ ve(
|
|
754
|
+
}), _e = /* @__PURE__ */ ve(pt, [["__scopeId", "data-v-f7000da4"]]), ye = /* @__PURE__ */ J({
|
|
755
755
|
__name: "InsertButton",
|
|
756
756
|
props: {
|
|
757
757
|
documentAttachment: {},
|
|
@@ -766,11 +766,11 @@ const te = /* @__PURE__ */ J({
|
|
|
766
766
|
const t = i, e = l, m = Q(() => e.documentAttachment.length >= e.maxFileCount), C = () => {
|
|
767
767
|
t("openInputDocumentModal");
|
|
768
768
|
};
|
|
769
|
-
return (
|
|
770
|
-
const z = f("v-btn"),
|
|
771
|
-
return
|
|
772
|
-
e.badgeCounter ? (
|
|
773
|
-
e.documentAttachment.length > 0 ? (
|
|
769
|
+
return (T, k) => {
|
|
770
|
+
const z = f("v-btn"), h = f("v-badge");
|
|
771
|
+
return u(), w("div", null, [
|
|
772
|
+
e.badgeCounter ? (u(), w(H, { key: 0 }, [
|
|
773
|
+
e.documentAttachment.length > 0 ? (u(), v(h, {
|
|
774
774
|
key: 0,
|
|
775
775
|
bordered: "",
|
|
776
776
|
color: m.value ? "error" : "success",
|
|
@@ -791,7 +791,7 @@ const te = /* @__PURE__ */ J({
|
|
|
791
791
|
}, 8, ["color", "disabled"])
|
|
792
792
|
]),
|
|
793
793
|
_: 1
|
|
794
|
-
}, 8, ["color", "content"])) : (
|
|
794
|
+
}, 8, ["color", "content"])) : (u(), v(z, {
|
|
795
795
|
key: 1,
|
|
796
796
|
color: e.btnColor,
|
|
797
797
|
disabled: m.value,
|
|
@@ -804,7 +804,7 @@ const te = /* @__PURE__ */ J({
|
|
|
804
804
|
_: 1
|
|
805
805
|
}, 8, ["color", "disabled"]))
|
|
806
806
|
], 64)) : A("", !0),
|
|
807
|
-
e.badgeCounter ? A("", !0) : (
|
|
807
|
+
e.badgeCounter ? A("", !0) : (u(), v(z, {
|
|
808
808
|
key: 1,
|
|
809
809
|
color: l.btnColor,
|
|
810
810
|
disabled: m.value,
|
|
@@ -820,43 +820,43 @@ const te = /* @__PURE__ */ J({
|
|
|
820
820
|
};
|
|
821
821
|
}
|
|
822
822
|
});
|
|
823
|
-
function
|
|
823
|
+
function gt(l) {
|
|
824
824
|
const i = ["simple", "thumbnail", "table"], t = { isValid: !0, errors: [], warnings: [] };
|
|
825
825
|
return typeof l != "string" ? (t.isValid = !1, t.errors.push("File uploader type must be a string")) : i.includes(l) || (t.isValid = !1, t.errors.push(`File uploader type must be one of: ${i.join(", ")}`)), t;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function ht(l) {
|
|
828
828
|
const i = ["default", "outlined", "shaped", "raised", "tile"], t = { isValid: !0, errors: [], warnings: [] };
|
|
829
829
|
return l !== void 0 && typeof l != "string" ? (t.isValid = !1, t.errors.push("Card type must be a string")) : l && !i.includes(l) && (t.isValid = !1, t.errors.push(`Card type must be one of: ${i.join(", ")}`)), t;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function vt(l) {
|
|
832
832
|
const i = ["en", "fa", "fr", "ch", "ar"], t = { isValid: !0, errors: [], warnings: [] };
|
|
833
833
|
return typeof l != "string" ? (t.isValid = !1, t.errors.push("Language code must be a string")) : i.includes(l) || (t.isValid = !1, t.errors.push(`Language code must be one of: ${i.join(", ")}`)), t;
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function bt(l) {
|
|
836
836
|
const i = { isValid: !0, errors: [], warnings: [] };
|
|
837
837
|
return typeof l != "number" ? (i.isValid = !1, i.errors.push("File size must be a number")) : l <= 0 ? (i.isValid = !1, i.errors.push("File size must be greater than 0")) : l > 100 * 1024 * 1024 && i.warnings.push("File size limit is very large (>100MB), consider reducing for better performance"), i;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function _t(l) {
|
|
840
840
|
const i = { isValid: !0, errors: [], warnings: [] };
|
|
841
841
|
return typeof l != "number" ? (i.isValid = !1, i.errors.push("File count must be a number")) : l < 0 ? (i.isValid = !1, i.errors.push("File count cannot be negative")) : l > 100 && i.warnings.push("File count limit is very high (>100), consider reducing for better performance"), i;
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function yt(l) {
|
|
844
844
|
const i = { isValid: !0, errors: [], warnings: [] };
|
|
845
845
|
return typeof l != "number" ? (i.isValid = !1, i.errors.push("Compression level must be a number")) : l < 0 || l > 1 ? (i.isValid = !1, i.errors.push("Compression level must be between 0 and 1")) : l < 0.1 ? i.warnings.push("Very low compression level may result in poor image quality") : l > 0.9 && i.warnings.push("Very high compression level may not reduce file size significantly"), i;
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function xt(l) {
|
|
848
848
|
const i = { isValid: !0, errors: [], warnings: [] };
|
|
849
849
|
return l !== void 0 && typeof l != "string" ? (i.isValid = !1, i.errors.push("File accept pattern must be a string")) : l && l.trim() === "" && i.warnings.push("Empty file accept pattern will accept all files"), i;
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function Ft(l) {
|
|
852
852
|
const i = { isValid: !0, errors: [], warnings: [] };
|
|
853
853
|
return typeof l != "number" ? (i.isValid = !1, i.errors.push("Columns count must be a number")) : (l < 1 || l > 12) && (i.isValid = !1, i.errors.push("Columns count must be between 1 and 12")), i;
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function Dt(l) {
|
|
856
856
|
const i = { isValid: !0, errors: [], warnings: [] };
|
|
857
857
|
return l !== void 0 && typeof l != "number" ? (i.isValid = !1, i.errors.push("Table height must be a number")) : l && l < 100 ? i.warnings.push("Table height is very small (<100px), content may not be visible") : l && l > 1e3 && i.warnings.push("Table height is very large (>1000px), consider reducing for better UX"), i;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function Ct(l) {
|
|
860
860
|
const i = { isValid: !0, errors: [], warnings: [] };
|
|
861
861
|
return Array.isArray(l) ? (l.forEach((t, e) => {
|
|
862
862
|
if (!t || typeof t != "object") {
|
|
@@ -868,32 +868,32 @@ function Dt(l) {
|
|
|
868
868
|
return;
|
|
869
869
|
}
|
|
870
870
|
const m = t.file;
|
|
871
|
-
["name", "format", "base64", "size"].forEach((
|
|
872
|
-
|
|
871
|
+
["name", "format", "base64", "size"].forEach((T) => {
|
|
872
|
+
T in m || i.errors.push(`File at index ${e} is missing required field: ${T}`);
|
|
873
873
|
}), m.name && typeof m.name != "string" && i.errors.push(`File name at index ${e} must be a string`), m.format && typeof m.format != "string" && i.errors.push(`File format at index ${e} must be a string`), m.base64 && typeof m.base64 != "string" && i.errors.push(`File base64 at index ${e} must be a string`), m.size && typeof m.size != "number" && i.errors.push(`File size at index ${e} must be a number`), m.tags && !Array.isArray(m.tags) && i.errors.push(`File tags at index ${e} must be an array`);
|
|
874
874
|
}), i.errors.length > 0 && (i.isValid = !1), i) : (i.isValid = !1, i.errors.push("Document attachment must be an array"), i);
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function kt(l) {
|
|
877
877
|
const i = { isValid: !0, errors: [], warnings: [] };
|
|
878
878
|
return [
|
|
879
|
-
{ key: "fileUploaderType", validator:
|
|
880
|
-
{ key: "cardType", validator:
|
|
881
|
-
{ key: "lang", validator:
|
|
882
|
-
{ key: "maxFileSize", validator:
|
|
883
|
-
{ key: "maxFileCount", validator:
|
|
884
|
-
{ key: "imageCompressLevel", validator:
|
|
885
|
-
{ key: "fileAccept", validator:
|
|
886
|
-
{ key: "cols", validator:
|
|
887
|
-
{ key: "tableHeight", validator:
|
|
888
|
-
{ key: "documentAttachment", validator:
|
|
879
|
+
{ key: "fileUploaderType", validator: gt },
|
|
880
|
+
{ key: "cardType", validator: ht },
|
|
881
|
+
{ key: "lang", validator: vt },
|
|
882
|
+
{ key: "maxFileSize", validator: bt },
|
|
883
|
+
{ key: "maxFileCount", validator: _t },
|
|
884
|
+
{ key: "imageCompressLevel", validator: yt },
|
|
885
|
+
{ key: "fileAccept", validator: xt },
|
|
886
|
+
{ key: "cols", validator: Ft },
|
|
887
|
+
{ key: "tableHeight", validator: Dt },
|
|
888
|
+
{ key: "documentAttachment", validator: Ct }
|
|
889
889
|
].forEach(({ key: e, validator: m }) => {
|
|
890
890
|
if (e in l) {
|
|
891
891
|
const C = m(l[e]);
|
|
892
|
-
i.errors.push(...C.errors.map((
|
|
892
|
+
i.errors.push(...C.errors.map((T) => `${e}: ${T}`)), i.warnings.push(...C.warnings.map((T) => `${e}: ${T}`)), C.isValid || (i.isValid = !1);
|
|
893
893
|
}
|
|
894
894
|
}), i;
|
|
895
895
|
}
|
|
896
|
-
const
|
|
896
|
+
const wt = /* @__PURE__ */ J({
|
|
897
897
|
__name: "handyUploader",
|
|
898
898
|
props: {
|
|
899
899
|
documentAttachment: {},
|
|
@@ -946,8 +946,8 @@ const kt = /* @__PURE__ */ J({
|
|
|
946
946
|
setup(l, { emit: i }) {
|
|
947
947
|
const t = l;
|
|
948
948
|
if (process.env.NODE_ENV === "development") {
|
|
949
|
-
const
|
|
950
|
-
|
|
949
|
+
const c = kt(t);
|
|
950
|
+
c.isValid || console.error("HandyUploader prop validation failed:", c.errors), c.warnings.length > 0 && console.warn("HandyUploader prop validation warnings:", c.warnings);
|
|
951
951
|
}
|
|
952
952
|
const e = we({
|
|
953
953
|
insertDocumentDialog: !1,
|
|
@@ -976,62 +976,67 @@ const kt = /* @__PURE__ */ J({
|
|
|
976
976
|
attachmentIndex: 0
|
|
977
977
|
}), m = i;
|
|
978
978
|
$e(() => {
|
|
979
|
-
k(), e.registryDocFile = t.documentAttachment, t.rtlSupport && z(),
|
|
979
|
+
k(), e.registryDocFile = t.documentAttachment, t.rtlSupport && z(), h();
|
|
980
980
|
});
|
|
981
981
|
let C = 0;
|
|
982
|
-
|
|
982
|
+
U(
|
|
983
983
|
() => e.tempAttachment,
|
|
984
|
-
async (
|
|
984
|
+
async (c) => {
|
|
985
985
|
const n = ++C;
|
|
986
|
-
if (
|
|
986
|
+
if (c && c.length > 0) {
|
|
987
|
+
const { accepted: a, errors: r } = ze(c, t.fileAccept), d = r[r.length - 1];
|
|
988
|
+
if (d && g(B(d), "red"), a.length === 0) {
|
|
989
|
+
e.tempAttachment = [];
|
|
990
|
+
return;
|
|
991
|
+
}
|
|
987
992
|
e.btnLoader = !0;
|
|
988
|
-
const
|
|
993
|
+
const x = await Be(a);
|
|
989
994
|
if (n !== C || !e.insertDocumentDialog) return;
|
|
990
|
-
e.tempAttachmentChanged =
|
|
995
|
+
e.tempAttachmentChanged = x, e.btnLoader = !1;
|
|
991
996
|
} else
|
|
992
997
|
e.tempAttachmentChanged = [];
|
|
993
998
|
}
|
|
994
|
-
),
|
|
995
|
-
m("updateCardType",
|
|
996
|
-
}),
|
|
997
|
-
m("updateBadgeCounter",
|
|
998
|
-
}),
|
|
999
|
-
m("updateMaxFileCount",
|
|
1000
|
-
}),
|
|
1001
|
-
m("updateMaxFileSize",
|
|
1002
|
-
}),
|
|
1003
|
-
m("updateMaxFileSize",
|
|
1004
|
-
}),
|
|
1005
|
-
m("updateImageCompressor",
|
|
1006
|
-
}),
|
|
1007
|
-
m("updateImageCompressLevel",
|
|
1008
|
-
}),
|
|
1009
|
-
m("updateFileAccept",
|
|
1010
|
-
}),
|
|
1011
|
-
m("updateThumb",
|
|
1012
|
-
}),
|
|
1013
|
-
m("updateChangeFileName",
|
|
1014
|
-
}),
|
|
1015
|
-
m("updateAddFileDescription",
|
|
1016
|
-
}),
|
|
1017
|
-
m("updateAddFileDescription",
|
|
1018
|
-
}),
|
|
1019
|
-
m("updateTableThumbColumn",
|
|
1020
|
-
}),
|
|
1021
|
-
m("updateTableFixedHeader",
|
|
1022
|
-
}),
|
|
1023
|
-
m("updateTableHeight",
|
|
1024
|
-
}),
|
|
1025
|
-
m("updateLang",
|
|
999
|
+
), U(() => t.cardType, (c) => {
|
|
1000
|
+
m("updateCardType", c), h();
|
|
1001
|
+
}), U(() => t.badgeCounter, (c) => {
|
|
1002
|
+
m("updateBadgeCounter", c);
|
|
1003
|
+
}), U(() => t.maxFileCount, (c) => {
|
|
1004
|
+
m("updateMaxFileCount", c);
|
|
1005
|
+
}), U(() => t.maxFileSize, (c) => {
|
|
1006
|
+
m("updateMaxFileSize", c);
|
|
1007
|
+
}), U(() => t.maxFileSize, (c) => {
|
|
1008
|
+
m("updateMaxFileSize", c);
|
|
1009
|
+
}), U(() => t.imageCompressor, (c) => {
|
|
1010
|
+
m("updateImageCompressor", c);
|
|
1011
|
+
}), U(() => t.imageCompressLevel, (c) => {
|
|
1012
|
+
m("updateImageCompressLevel", c);
|
|
1013
|
+
}), U(() => t.fileAccept, (c) => {
|
|
1014
|
+
m("updateFileAccept", c);
|
|
1015
|
+
}), U(() => t.thumb, (c) => {
|
|
1016
|
+
m("updateThumb", c);
|
|
1017
|
+
}), U(() => t.changeFileName, (c) => {
|
|
1018
|
+
m("updateChangeFileName", c);
|
|
1019
|
+
}), U(() => t.addFileDescription, (c) => {
|
|
1020
|
+
m("updateAddFileDescription", c);
|
|
1021
|
+
}), U(() => t.addFileTag, (c) => {
|
|
1022
|
+
m("updateAddFileDescription", c);
|
|
1023
|
+
}), U(() => t.tableThumbColumn, (c) => {
|
|
1024
|
+
m("updateTableThumbColumn", c);
|
|
1025
|
+
}), U(() => t.tableFixedHeader, (c) => {
|
|
1026
|
+
m("updateTableFixedHeader", c);
|
|
1027
|
+
}), U(() => t.tableHeight, (c) => {
|
|
1028
|
+
m("updateTableHeight", c);
|
|
1029
|
+
}), U(() => t.lang, (c) => {
|
|
1030
|
+
m("updateLang", c);
|
|
1026
1031
|
}), Ae(() => {
|
|
1027
1032
|
e.registryDocFile = [];
|
|
1028
1033
|
});
|
|
1029
|
-
const
|
|
1034
|
+
const T = () => {
|
|
1030
1035
|
e.btnLoader = !1, e.tempAttachment = [], e.insertDocumentDialog = !0;
|
|
1031
1036
|
}, k = () => {
|
|
1032
|
-
t.customLang !== null ? e.selectedLang = t.customLang : e.selectedLang =
|
|
1037
|
+
t.customLang !== null ? e.selectedLang = t.customLang : e.selectedLang = Se;
|
|
1033
1038
|
}, z = () => {
|
|
1034
|
-
},
|
|
1039
|
+
}, h = () => {
|
|
1035
1040
|
const n = {
|
|
1036
1041
|
default: { outlined: !1, raised: !1, shaped: !1, tile: !1 },
|
|
1037
1042
|
outlined: { outlined: !0, raised: !1, shaped: !1, tile: !1 },
|
|
@@ -1040,47 +1045,49 @@ const kt = /* @__PURE__ */ J({
|
|
|
1040
1045
|
tile: { outlined: !1, raised: !1, shaped: !1, tile: !0 }
|
|
1041
1046
|
}[t.cardType || "default"];
|
|
1042
1047
|
e.outlined = n.outlined, e.raised = n.raised, e.shaped = n.shaped, e.tile = n.tile;
|
|
1043
|
-
},
|
|
1044
|
-
e.fileUploaderSnackText =
|
|
1045
|
-
},
|
|
1048
|
+
}, g = (c, n) => {
|
|
1049
|
+
e.fileUploaderSnackText = c, e.fileUploaderSnackBarAlertColor = n, e.fileUploaderSnackBarAlert = !0;
|
|
1050
|
+
}, B = (c) => {
|
|
1046
1051
|
const n = e.selectedLang[t.lang];
|
|
1047
|
-
switch (
|
|
1052
|
+
switch (c.code) {
|
|
1048
1053
|
case "maxFileCount":
|
|
1049
1054
|
return `${n.maxFileCountAlert} ${t.maxFileCount}`;
|
|
1050
1055
|
case "maxFileSize":
|
|
1051
1056
|
return `${n.maxFileSizeAlert} ${Number((t.maxFileSize / (1024 * 1024)).toFixed(1))} ${n.size.mb}`;
|
|
1057
|
+
case "fileType":
|
|
1058
|
+
return `${c.fileName}: ${n.fileTypeAlert ?? "File type is not allowed"}`;
|
|
1052
1059
|
default:
|
|
1053
1060
|
return "File could not be processed due to an invalid format.";
|
|
1054
1061
|
}
|
|
1055
1062
|
}, L = async () => {
|
|
1056
1063
|
e.btnLoader = !0;
|
|
1057
|
-
const { accepted:
|
|
1064
|
+
const { accepted: c, errors: n } = await Ee(e.tempAttachmentChanged, {
|
|
1058
1065
|
currentCount: t.documentAttachment.length,
|
|
1059
1066
|
maxFileCount: t.maxFileCount,
|
|
1060
1067
|
maxFileSize: t.maxFileSize,
|
|
1061
1068
|
imageCompressor: t.imageCompressor,
|
|
1062
1069
|
imageCompressLevel: t.imageCompressLevel
|
|
1063
1070
|
});
|
|
1064
|
-
|
|
1071
|
+
c.length > 0 && (e.registryDocFile.push(...c), m("updateDocumentAttachment", e.registryDocFile));
|
|
1065
1072
|
const a = n[n.length - 1];
|
|
1066
|
-
a &&
|
|
1067
|
-
},
|
|
1068
|
-
e.btnLoader = !1, e.selectedIndex =
|
|
1073
|
+
a && g(B(a), "red"), e.documentAttachmentAPI = [], e.tempAttachmentChanged = [], e.insertDocumentDialog = !1, e.btnLoader = !1;
|
|
1074
|
+
}, S = (c, n) => {
|
|
1075
|
+
e.btnLoader = !1, e.selectedIndex = c, e.selectedId = n, e.deleteDocumentDialog = !0;
|
|
1069
1076
|
}, j = () => {
|
|
1070
1077
|
e.registryDocFile.splice(e.selectedIndex, 1), m("updateDocumentAttachment", e.registryDocFile), e.deleteDocumentDialog = !1;
|
|
1071
|
-
},
|
|
1072
|
-
C++, e.btnLoader = !1, e.attachmentIndex = n, e.editDocumentDialog = !0, e.tempAttachmentChanged = [
|
|
1078
|
+
}, E = (c, n) => {
|
|
1079
|
+
C++, e.btnLoader = !1, e.attachmentIndex = n, e.editDocumentDialog = !0, e.tempAttachmentChanged = [c];
|
|
1073
1080
|
}, M = () => {
|
|
1074
|
-
const
|
|
1075
|
-
|
|
1081
|
+
const c = [...t.documentAttachment];
|
|
1082
|
+
c.splice(
|
|
1076
1083
|
e.attachmentIndex,
|
|
1077
1084
|
1,
|
|
1078
1085
|
e.tempAttachmentChanged[0]
|
|
1079
|
-
), m("updateDocumentAttachment",
|
|
1086
|
+
), m("updateDocumentAttachment", c), e.editDocumentDialog = !1;
|
|
1080
1087
|
};
|
|
1081
|
-
return (
|
|
1082
|
-
const a = f("v-col"), r = f("v-row"),
|
|
1083
|
-
return
|
|
1088
|
+
return (c, n) => {
|
|
1089
|
+
const a = f("v-col"), r = f("v-row"), d = f("v-icon"), x = f("v-card-title"), b = f("v-file-input"), V = f("v-expansion-panel-title"), F = f("v-text-field"), N = f("v-textarea"), K = f("v-autocomplete"), ee = f("v-img"), q = f("v-card"), le = f("v-expansion-panel-text"), oe = f("v-expansion-panel"), ne = f("v-expansion-panels"), ae = f("v-list-item-title"), $ = f("v-list-item"), X = f("v-card-text"), I = f("v-btn"), Y = f("v-card-actions"), ie = f("v-dialog"), Fe = f("v-snackbar"), De = f("v-spacer"), Ce = f("v-container");
|
|
1090
|
+
return u(), v(Ce, null, {
|
|
1084
1091
|
default: o(() => [
|
|
1085
1092
|
s(r, null, {
|
|
1086
1093
|
default: o(() => [
|
|
@@ -1090,7 +1097,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1090
1097
|
xs: "12"
|
|
1091
1098
|
}, {
|
|
1092
1099
|
default: o(() => [
|
|
1093
|
-
t.insertPermission ? (
|
|
1100
|
+
t.insertPermission ? (u(), v(ye, {
|
|
1094
1101
|
key: 0,
|
|
1095
1102
|
documentAttachment: t.documentAttachment,
|
|
1096
1103
|
selectedLang: e.selectedLang,
|
|
@@ -1098,9 +1105,9 @@ const kt = /* @__PURE__ */ J({
|
|
|
1098
1105
|
badgeCounter: t.badgeCounter,
|
|
1099
1106
|
btnColor: t.btnColor,
|
|
1100
1107
|
maxFileCount: t.maxFileCount,
|
|
1101
|
-
onOpenInputDocumentModal:
|
|
1108
|
+
onOpenInputDocumentModal: T
|
|
1102
1109
|
}, null, 8, ["documentAttachment", "selectedLang", "lang", "badgeCounter", "btnColor", "maxFileCount"])) : A("", !0),
|
|
1103
|
-
t.fileUploaderType === "simple" ? (
|
|
1110
|
+
t.fileUploaderType === "simple" ? (u(), v(_e, {
|
|
1104
1111
|
key: 1,
|
|
1105
1112
|
documentAttachment: t.documentAttachment,
|
|
1106
1113
|
cols: t.cols,
|
|
@@ -1114,11 +1121,11 @@ const kt = /* @__PURE__ */ J({
|
|
|
1114
1121
|
deletePermission: t.deletePermission,
|
|
1115
1122
|
editPermission: t.editPermission,
|
|
1116
1123
|
selectedLang: e.selectedLang,
|
|
1117
|
-
onSetCardTheme:
|
|
1118
|
-
onOpenDeleteDialog:
|
|
1119
|
-
onOpenEditDocumentDialog:
|
|
1124
|
+
onSetCardTheme: h,
|
|
1125
|
+
onOpenDeleteDialog: S,
|
|
1126
|
+
onOpenEditDocumentDialog: E
|
|
1120
1127
|
}, null, 8, ["documentAttachment", "cols", "thumb", "outlined", "raised", "shaped", "tile", "lang", "cardType", "deletePermission", "editPermission", "selectedLang"])) : A("", !0),
|
|
1121
|
-
t.fileUploaderType === "thumbnail" ? (
|
|
1128
|
+
t.fileUploaderType === "thumbnail" ? (u(), v(he, {
|
|
1122
1129
|
key: 2,
|
|
1123
1130
|
documentAttachment: t.documentAttachment,
|
|
1124
1131
|
cols: t.cols,
|
|
@@ -1132,11 +1139,11 @@ const kt = /* @__PURE__ */ J({
|
|
|
1132
1139
|
deletePermission: t.deletePermission,
|
|
1133
1140
|
editPermission: t.editPermission,
|
|
1134
1141
|
selectedLang: e.selectedLang,
|
|
1135
|
-
onSetCardTheme:
|
|
1136
|
-
onOpenDeleteDialog: n[0] || (n[0] = (p, O) =>
|
|
1137
|
-
onOpenEditDocumentDialog: n[1] || (n[1] = (p, O) =>
|
|
1142
|
+
onSetCardTheme: h,
|
|
1143
|
+
onOpenDeleteDialog: n[0] || (n[0] = (p, O) => S(p, O)),
|
|
1144
|
+
onOpenEditDocumentDialog: n[1] || (n[1] = (p, O) => E(p, O))
|
|
1138
1145
|
}, null, 8, ["documentAttachment", "cols", "thumb", "outlined", "raised", "shaped", "tile", "lang", "cardType", "deletePermission", "editPermission", "selectedLang"])) : A("", !0),
|
|
1139
|
-
t.fileUploaderType === "table" ? (
|
|
1146
|
+
t.fileUploaderType === "table" ? (u(), v(be, {
|
|
1140
1147
|
key: 3,
|
|
1141
1148
|
documentAttachment: t.documentAttachment,
|
|
1142
1149
|
cols: t.cols,
|
|
@@ -1153,9 +1160,9 @@ const kt = /* @__PURE__ */ J({
|
|
|
1153
1160
|
deletePermission: t.deletePermission,
|
|
1154
1161
|
editPermission: t.editPermission,
|
|
1155
1162
|
selectedLang: e.selectedLang,
|
|
1156
|
-
onSetCardTheme:
|
|
1157
|
-
onOpenDeleteDialog:
|
|
1158
|
-
onOpenEditDocumentDialog:
|
|
1163
|
+
onSetCardTheme: h,
|
|
1164
|
+
onOpenDeleteDialog: S,
|
|
1165
|
+
onOpenEditDocumentDialog: E
|
|
1159
1166
|
}, null, 8, ["documentAttachment", "cols", "thumb", "outlined", "raised", "shaped", "tile", "lang", "tableThumbColumn", "tableFixedHeader", "tableHeight", "cardType", "deletePermission", "editPermission", "selectedLang"])) : A("", !0)
|
|
1160
1167
|
]),
|
|
1161
1168
|
_: 1
|
|
@@ -1177,7 +1184,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1177
1184
|
default: o(() => [
|
|
1178
1185
|
s(x, null, {
|
|
1179
1186
|
default: o(() => [
|
|
1180
|
-
s(
|
|
1187
|
+
s(d, {
|
|
1181
1188
|
onClick: n[2] || (n[2] = (p) => e.insertDocumentDialog = !1)
|
|
1182
1189
|
}, {
|
|
1183
1190
|
default: o(() => [...n[12] || (n[12] = [
|
|
@@ -1190,8 +1197,8 @@ const kt = /* @__PURE__ */ J({
|
|
|
1190
1197
|
}),
|
|
1191
1198
|
s(X, null, {
|
|
1192
1199
|
default: o(() => [
|
|
1193
|
-
e.tempAttachment.length === 0 ? (
|
|
1194
|
-
t.fileAccept !== "" ? (
|
|
1200
|
+
e.tempAttachment.length === 0 ? (u(), w(H, { key: 0 }, [
|
|
1201
|
+
t.fileAccept !== "" ? (u(), v(b, {
|
|
1195
1202
|
key: 0,
|
|
1196
1203
|
multiple: "",
|
|
1197
1204
|
accept: t.fileAccept,
|
|
@@ -1199,21 +1206,21 @@ const kt = /* @__PURE__ */ J({
|
|
|
1199
1206
|
modelValue: e.tempAttachment,
|
|
1200
1207
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => e.tempAttachment = p),
|
|
1201
1208
|
label: e.selectedLang[l.lang].insertNewFile
|
|
1202
|
-
}, null, 8, ["accept", "modelValue", "label"])) : (
|
|
1209
|
+
}, null, 8, ["accept", "modelValue", "label"])) : (u(), v(b, {
|
|
1203
1210
|
key: 1,
|
|
1204
1211
|
multiple: "",
|
|
1205
1212
|
modelValue: e.tempAttachment,
|
|
1206
1213
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => e.tempAttachment = p),
|
|
1207
1214
|
label: e.selectedLang[l.lang].insertNewFile
|
|
1208
1215
|
}, null, 8, ["modelValue", "label"]))
|
|
1209
|
-
], 64)) : (
|
|
1210
|
-
t.addFileTag || t.addFileDescription || t.changeFileName ? (
|
|
1216
|
+
], 64)) : (u(), w(H, { key: 1 }, [
|
|
1217
|
+
t.addFileTag || t.addFileDescription || t.changeFileName ? (u(), v(ne, { key: 0 }, {
|
|
1211
1218
|
default: o(() => [
|
|
1212
|
-
(
|
|
1219
|
+
(u(!0), w(H, null, W(e.tempAttachmentChanged, (p, O) => (u(), v(oe, {
|
|
1213
1220
|
key: `attachment-${O}`
|
|
1214
1221
|
}, {
|
|
1215
1222
|
default: o(() => [
|
|
1216
|
-
s(
|
|
1223
|
+
s(V, null, {
|
|
1217
1224
|
default: o(() => [
|
|
1218
1225
|
_(y(p.file.name), 1)
|
|
1219
1226
|
]),
|
|
@@ -1233,13 +1240,13 @@ const kt = /* @__PURE__ */ J({
|
|
|
1233
1240
|
xs: "12"
|
|
1234
1241
|
}, {
|
|
1235
1242
|
default: o(() => [
|
|
1236
|
-
t.changeFileName ? (
|
|
1243
|
+
t.changeFileName ? (u(), v(F, {
|
|
1237
1244
|
key: 0,
|
|
1238
1245
|
label: e.selectedLang[l.lang].fileName,
|
|
1239
1246
|
modelValue: p.file.name,
|
|
1240
1247
|
"onUpdate:modelValue": (P) => p.file.name = P
|
|
1241
1248
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue"])) : A("", !0),
|
|
1242
|
-
t.addFileDescription ? (
|
|
1249
|
+
t.addFileDescription ? (u(), v(N, {
|
|
1243
1250
|
key: 1,
|
|
1244
1251
|
label: e.selectedLang[l.lang].fileDescription,
|
|
1245
1252
|
"auto-grow": "",
|
|
@@ -1247,7 +1254,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1247
1254
|
modelValue: p.file.description,
|
|
1248
1255
|
"onUpdate:modelValue": (P) => p.file.description = P
|
|
1249
1256
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue"])) : A("", !0),
|
|
1250
|
-
t.addFileTag ? (
|
|
1257
|
+
t.addFileTag ? (u(), v(K, {
|
|
1251
1258
|
key: 2,
|
|
1252
1259
|
modelValue: p.file.tags,
|
|
1253
1260
|
"onUpdate:modelValue": (P) => p.file.tags = P,
|
|
@@ -1268,14 +1275,14 @@ const kt = /* @__PURE__ */ J({
|
|
|
1268
1275
|
xs: "12"
|
|
1269
1276
|
}, {
|
|
1270
1277
|
default: o(() => [
|
|
1271
|
-
p.file.format === "jpg" || p.file.format === "jpeg" || p.file.format === "png" || p.file.format === "tif" || p.file.format === "bmp" ? (
|
|
1278
|
+
p.file.format === "jpg" || p.file.format === "jpeg" || p.file.format === "png" || p.file.format === "tif" || p.file.format === "bmp" ? (u(), v(q, { key: 0 }, {
|
|
1272
1279
|
default: o(() => [
|
|
1273
1280
|
s(ee, {
|
|
1274
1281
|
src: "data:" + p.file.format + ";base64," + p.file.base64
|
|
1275
1282
|
}, null, 8, ["src"])
|
|
1276
1283
|
]),
|
|
1277
1284
|
_: 2
|
|
1278
|
-
}, 1024)) : (
|
|
1285
|
+
}, 1024)) : (u(), v(te, {
|
|
1279
1286
|
key: 1,
|
|
1280
1287
|
"file-format": p.file.format,
|
|
1281
1288
|
size: 60
|
|
@@ -1294,13 +1301,13 @@ const kt = /* @__PURE__ */ J({
|
|
|
1294
1301
|
}, 1024))), 128))
|
|
1295
1302
|
]),
|
|
1296
1303
|
_: 1
|
|
1297
|
-
})) : (
|
|
1304
|
+
})) : (u(), v(q, {
|
|
1298
1305
|
key: 1,
|
|
1299
1306
|
class: "mx-auto",
|
|
1300
1307
|
tile: ""
|
|
1301
1308
|
}, {
|
|
1302
1309
|
default: o(() => [
|
|
1303
|
-
(
|
|
1310
|
+
(u(!0), w(H, null, W(e.tempAttachmentChanged, (p, O) => (u(), v($, {
|
|
1304
1311
|
key: `attachment-${O}`,
|
|
1305
1312
|
style: { "border-bottom": "1px solid #E0E0E0" }
|
|
1306
1313
|
}, {
|
|
@@ -1311,7 +1318,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1311
1318
|
"file-format": p.file.format,
|
|
1312
1319
|
size: 24
|
|
1313
1320
|
}, null, 8, ["file-format"]),
|
|
1314
|
-
_(" " + y(G(
|
|
1321
|
+
_(" " + y(G(Ue)(p.file.name, p.file.format)), 1)
|
|
1315
1322
|
]),
|
|
1316
1323
|
_: 2
|
|
1317
1324
|
}, 1024)
|
|
@@ -1327,7 +1334,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1327
1334
|
}),
|
|
1328
1335
|
s(Y, null, {
|
|
1329
1336
|
default: o(() => [
|
|
1330
|
-
s(
|
|
1337
|
+
s(I, {
|
|
1331
1338
|
disabled: e.tempAttachment == null || e.btnLoader,
|
|
1332
1339
|
loading: e.btnLoader,
|
|
1333
1340
|
color: t.btnColor,
|
|
@@ -1364,7 +1371,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1364
1371
|
default: o(() => [
|
|
1365
1372
|
s(x, null, {
|
|
1366
1373
|
default: o(() => [
|
|
1367
|
-
s(
|
|
1374
|
+
s(d, {
|
|
1368
1375
|
onClick: n[6] || (n[6] = (p) => e.editDocumentDialog = !1)
|
|
1369
1376
|
}, {
|
|
1370
1377
|
default: o(() => [...n[13] || (n[13] = [
|
|
@@ -1375,7 +1382,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1375
1382
|
]),
|
|
1376
1383
|
_: 1
|
|
1377
1384
|
}),
|
|
1378
|
-
(
|
|
1385
|
+
(u(!0), w(H, null, W(e.tempAttachmentChanged, (p, O) => (u(), v(X, {
|
|
1379
1386
|
key: `attachment-${O}`
|
|
1380
1387
|
}, {
|
|
1381
1388
|
default: o(() => [
|
|
@@ -1391,13 +1398,13 @@ const kt = /* @__PURE__ */ J({
|
|
|
1391
1398
|
xs: "12"
|
|
1392
1399
|
}, {
|
|
1393
1400
|
default: o(() => [
|
|
1394
|
-
t.changeFileName ? (
|
|
1401
|
+
t.changeFileName ? (u(), v(F, {
|
|
1395
1402
|
key: 0,
|
|
1396
1403
|
label: e.selectedLang[l.lang].fileName,
|
|
1397
1404
|
modelValue: p.file.name,
|
|
1398
1405
|
"onUpdate:modelValue": (P) => p.file.name = P
|
|
1399
1406
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue"])) : A("", !0),
|
|
1400
|
-
t.addFileDescription ? (
|
|
1407
|
+
t.addFileDescription ? (u(), v(N, {
|
|
1401
1408
|
key: 1,
|
|
1402
1409
|
label: e.selectedLang[l.lang].fileDescription,
|
|
1403
1410
|
"auto-grow": "",
|
|
@@ -1405,7 +1412,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1405
1412
|
modelValue: p.file.description,
|
|
1406
1413
|
"onUpdate:modelValue": (P) => p.file.description = P
|
|
1407
1414
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue"])) : A("", !0),
|
|
1408
|
-
t.addFileTag ? (
|
|
1415
|
+
t.addFileTag ? (u(), v(K, {
|
|
1409
1416
|
key: 2,
|
|
1410
1417
|
modelValue: p.file.tags,
|
|
1411
1418
|
"onUpdate:modelValue": (P) => p.file.tags = P,
|
|
@@ -1430,14 +1437,14 @@ const kt = /* @__PURE__ */ J({
|
|
|
1430
1437
|
return [
|
|
1431
1438
|
p.file.name && ["jpg", "jpeg", "png", "tif", "bmp"].includes(
|
|
1432
1439
|
((P = p.file.name.split(".").pop()) == null ? void 0 : P.toLowerCase()) || ""
|
|
1433
|
-
) ? (
|
|
1440
|
+
) ? (u(), v(q, { key: 0 }, {
|
|
1434
1441
|
default: o(() => [
|
|
1435
1442
|
s(ee, {
|
|
1436
1443
|
src: "data:" + p.file.format + ";base64," + p.file.base64
|
|
1437
1444
|
}, null, 8, ["src"])
|
|
1438
1445
|
]),
|
|
1439
1446
|
_: 2
|
|
1440
|
-
}, 1024)) : (
|
|
1447
|
+
}, 1024)) : (u(), v(te, {
|
|
1441
1448
|
key: 1,
|
|
1442
1449
|
"file-format": p.file.format,
|
|
1443
1450
|
size: 60
|
|
@@ -1454,7 +1461,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1454
1461
|
}, 1024))), 128)),
|
|
1455
1462
|
s(Y, null, {
|
|
1456
1463
|
default: o(() => [
|
|
1457
|
-
s(
|
|
1464
|
+
s(I, {
|
|
1458
1465
|
disabled: e.tempAttachment === null || e.btnLoader,
|
|
1459
1466
|
loading: e.btnLoader,
|
|
1460
1467
|
color: t.btnColor,
|
|
@@ -1487,13 +1494,13 @@ const kt = /* @__PURE__ */ J({
|
|
|
1487
1494
|
}, {
|
|
1488
1495
|
default: o(() => [
|
|
1489
1496
|
_(y(e.fileUploaderSnackText) + " ", 1),
|
|
1490
|
-
s(
|
|
1497
|
+
s(I, {
|
|
1491
1498
|
color: "white",
|
|
1492
1499
|
text: "",
|
|
1493
1500
|
onClick: n[8] || (n[8] = (p) => e.fileUploaderSnackBarAlert = !1)
|
|
1494
1501
|
}, {
|
|
1495
1502
|
default: o(() => [
|
|
1496
|
-
s(
|
|
1503
|
+
s(d, null, {
|
|
1497
1504
|
default: o(() => [...n[14] || (n[14] = [
|
|
1498
1505
|
_("mdi-close", -1)
|
|
1499
1506
|
])]),
|
|
@@ -1518,7 +1525,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1518
1525
|
default: o(() => [
|
|
1519
1526
|
s(x, null, {
|
|
1520
1527
|
default: o(() => [
|
|
1521
|
-
s(
|
|
1528
|
+
s(d, { color: "red" })
|
|
1522
1529
|
]),
|
|
1523
1530
|
_: 1
|
|
1524
1531
|
}),
|
|
@@ -1531,7 +1538,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1531
1538
|
s(Y, null, {
|
|
1532
1539
|
default: o(() => [
|
|
1533
1540
|
s(De),
|
|
1534
|
-
s(
|
|
1541
|
+
s(I, {
|
|
1535
1542
|
color: "green darken-1",
|
|
1536
1543
|
text: "",
|
|
1537
1544
|
onClick: n[10] || (n[10] = (p) => e.deleteDocumentDialog = !1)
|
|
@@ -1541,7 +1548,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1541
1548
|
]),
|
|
1542
1549
|
_: 1
|
|
1543
1550
|
}),
|
|
1544
|
-
s(
|
|
1551
|
+
s(I, {
|
|
1545
1552
|
color: "primary",
|
|
1546
1553
|
disabled: e.btnLoader,
|
|
1547
1554
|
loading: e.btnLoader,
|
|
@@ -1575,7 +1582,7 @@ function xe(l, i) {
|
|
|
1575
1582
|
`[handy-uploader] ${l}() is deprecated and will be removed in the next major version. Use ${i} instead.`
|
|
1576
1583
|
));
|
|
1577
1584
|
}
|
|
1578
|
-
function
|
|
1585
|
+
function Tt(l, i = {}) {
|
|
1579
1586
|
xe("useFileUpload", "useUploader");
|
|
1580
1587
|
const {
|
|
1581
1588
|
maxFileSize: t = 5 * 1024 * 1024,
|
|
@@ -1583,35 +1590,35 @@ function Lt(l, i = {}) {
|
|
|
1583
1590
|
maxFileCount: e = 10,
|
|
1584
1591
|
imageCompressor: m = !1,
|
|
1585
1592
|
imageCompressLevel: C = 0.8,
|
|
1586
|
-
fileAccept:
|
|
1593
|
+
fileAccept: T = "*"
|
|
1587
1594
|
} = i, k = Z(!1), z = Z({
|
|
1588
1595
|
show: !1,
|
|
1589
1596
|
text: "",
|
|
1590
1597
|
color: "success"
|
|
1591
|
-
}),
|
|
1598
|
+
}), h = Q(() => l.value.length), g = Q(() => h.value < e), B = Q(
|
|
1592
1599
|
() => l.value.reduce((a, r) => a + r.file.size, 0)
|
|
1593
1600
|
);
|
|
1594
1601
|
function L(a, r = "success") {
|
|
1595
1602
|
z.value = { show: !0, text: a, color: r };
|
|
1596
1603
|
}
|
|
1597
|
-
function
|
|
1604
|
+
function S(a) {
|
|
1598
1605
|
var r;
|
|
1599
1606
|
if (!Ie(a.size, t))
|
|
1600
1607
|
return {
|
|
1601
1608
|
valid: !1,
|
|
1602
1609
|
error: `File size exceeds maximum allowed size of ${(t / 1048576).toFixed(1)}MB`
|
|
1603
1610
|
};
|
|
1604
|
-
if (!
|
|
1611
|
+
if (!Pe(h.value, e))
|
|
1605
1612
|
return {
|
|
1606
1613
|
valid: !1,
|
|
1607
1614
|
error: `Maximum file count of ${e} reached`
|
|
1608
1615
|
};
|
|
1609
|
-
if (
|
|
1610
|
-
const
|
|
1611
|
-
if (!
|
|
1616
|
+
if (T !== "*") {
|
|
1617
|
+
const d = T.split(",").map((F) => F.trim()), x = `.${(r = a.name.split(".").pop()) == null ? void 0 : r.toLowerCase()}`, b = a.type;
|
|
1618
|
+
if (!d.some((F) => F.startsWith(".") ? F === x : F.includes("/*") ? b.startsWith(F.replace("/*", "")) : F === b))
|
|
1612
1619
|
return {
|
|
1613
1620
|
valid: !1,
|
|
1614
|
-
error: `File type not accepted. Allowed types: ${
|
|
1621
|
+
error: `File type not accepted. Allowed types: ${T}`
|
|
1615
1622
|
};
|
|
1616
1623
|
}
|
|
1617
1624
|
return { valid: !0 };
|
|
@@ -1620,16 +1627,16 @@ function Lt(l, i = {}) {
|
|
|
1620
1627
|
let r;
|
|
1621
1628
|
if (m && re(a.name, a.type))
|
|
1622
1629
|
try {
|
|
1623
|
-
r = (await
|
|
1630
|
+
r = (await je(a, C)).split(",")[1];
|
|
1624
1631
|
} catch (b) {
|
|
1625
1632
|
console.warn("Image compression failed, using original file:", b), r = await me(a);
|
|
1626
1633
|
}
|
|
1627
1634
|
else
|
|
1628
1635
|
r = await me(a);
|
|
1629
|
-
const
|
|
1636
|
+
const d = se(a.size), x = Me(a.name);
|
|
1630
1637
|
return {
|
|
1631
1638
|
base64: r,
|
|
1632
|
-
size:
|
|
1639
|
+
size: d.text,
|
|
1633
1640
|
name: a.name,
|
|
1634
1641
|
tags: [],
|
|
1635
1642
|
description: "",
|
|
@@ -1637,19 +1644,19 @@ function Lt(l, i = {}) {
|
|
|
1637
1644
|
format: x
|
|
1638
1645
|
};
|
|
1639
1646
|
}
|
|
1640
|
-
async function
|
|
1647
|
+
async function E(a) {
|
|
1641
1648
|
if (k.value) return !1;
|
|
1642
1649
|
k.value = !0;
|
|
1643
|
-
const r = Array.from(a),
|
|
1650
|
+
const r = Array.from(a), d = [];
|
|
1644
1651
|
for (const x of r) {
|
|
1645
|
-
const b =
|
|
1646
|
-
b.valid ?
|
|
1652
|
+
const b = S(x);
|
|
1653
|
+
b.valid ? d.push(x) : L(b.error, "error");
|
|
1647
1654
|
}
|
|
1648
|
-
if (
|
|
1655
|
+
if (d.length === 0)
|
|
1649
1656
|
return k.value = !1, !1;
|
|
1650
1657
|
try {
|
|
1651
1658
|
const b = (await Promise.all(
|
|
1652
|
-
|
|
1659
|
+
d.map((F) => j(F))
|
|
1653
1660
|
)).map((F) => {
|
|
1654
1661
|
var N;
|
|
1655
1662
|
return {
|
|
@@ -1657,7 +1664,7 @@ function Lt(l, i = {}) {
|
|
|
1657
1664
|
name: F.name,
|
|
1658
1665
|
format: F.format,
|
|
1659
1666
|
base64: F.base64,
|
|
1660
|
-
size: ((N =
|
|
1667
|
+
size: ((N = d.find((K) => K.name === F.name)) == null ? void 0 : N.size) || 0,
|
|
1661
1668
|
tags: F.tags,
|
|
1662
1669
|
description: F.description,
|
|
1663
1670
|
showDetailState: F.showDetailState
|
|
@@ -1665,8 +1672,8 @@ function Lt(l, i = {}) {
|
|
|
1665
1672
|
};
|
|
1666
1673
|
});
|
|
1667
1674
|
l.value.push(...b);
|
|
1668
|
-
const
|
|
1669
|
-
return L(
|
|
1675
|
+
const V = d.length === 1 ? `File "${d[0].name}" uploaded successfully` : `${d.length} files uploaded successfully`;
|
|
1676
|
+
return L(V, "success"), !0;
|
|
1670
1677
|
} catch (x) {
|
|
1671
1678
|
return console.error("File upload error:", x), L("Failed to upload files. Please try again.", "error"), !1;
|
|
1672
1679
|
} finally {
|
|
@@ -1680,10 +1687,10 @@ function Lt(l, i = {}) {
|
|
|
1680
1687
|
}
|
|
1681
1688
|
return !1;
|
|
1682
1689
|
}
|
|
1683
|
-
function
|
|
1690
|
+
function c(a, r) {
|
|
1684
1691
|
if (a >= 0 && a < l.value.length) {
|
|
1685
|
-
const
|
|
1686
|
-
return Object.assign(
|
|
1692
|
+
const d = l.value[a].file;
|
|
1693
|
+
return Object.assign(d, r), L("File updated successfully", "success"), !0;
|
|
1687
1694
|
}
|
|
1688
1695
|
return !1;
|
|
1689
1696
|
}
|
|
@@ -1696,15 +1703,15 @@ function Lt(l, i = {}) {
|
|
|
1696
1703
|
isUploading: k,
|
|
1697
1704
|
snackbar: z,
|
|
1698
1705
|
// Computed
|
|
1699
|
-
fileCount:
|
|
1700
|
-
canAddMoreFiles:
|
|
1701
|
-
totalSize:
|
|
1706
|
+
fileCount: h,
|
|
1707
|
+
canAddMoreFiles: g,
|
|
1708
|
+
totalSize: B,
|
|
1702
1709
|
// Methods
|
|
1703
|
-
uploadFiles:
|
|
1710
|
+
uploadFiles: E,
|
|
1704
1711
|
removeFile: M,
|
|
1705
|
-
updateFileMetadata:
|
|
1712
|
+
updateFileMetadata: c,
|
|
1706
1713
|
clearAllFiles: n,
|
|
1707
|
-
validateFile:
|
|
1714
|
+
validateFile: S,
|
|
1708
1715
|
showSnackbar: L
|
|
1709
1716
|
};
|
|
1710
1717
|
}
|
|
@@ -1715,39 +1722,39 @@ function Vt(l = {}) {
|
|
|
1715
1722
|
autoRemoveTimeout: t = 5e3,
|
|
1716
1723
|
logToConsole: e = !0
|
|
1717
1724
|
} = l, m = Z([]), C = Z(!1);
|
|
1718
|
-
function
|
|
1725
|
+
function T() {
|
|
1719
1726
|
return `error_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
1720
1727
|
}
|
|
1721
|
-
function k(r,
|
|
1722
|
-
const
|
|
1723
|
-
id:
|
|
1728
|
+
function k(r, d = "error", x, b) {
|
|
1729
|
+
const V = {
|
|
1730
|
+
id: T(),
|
|
1724
1731
|
message: r,
|
|
1725
|
-
type:
|
|
1732
|
+
type: d,
|
|
1726
1733
|
timestamp: /* @__PURE__ */ new Date(),
|
|
1727
1734
|
context: x,
|
|
1728
1735
|
action: b
|
|
1729
1736
|
};
|
|
1730
|
-
return e && (
|
|
1731
|
-
z(
|
|
1732
|
-
}, t),
|
|
1737
|
+
return e && (d === "error" ? console.error : d === "warning" ? console.warn : d === "info" ? console.info : console.log)(`[${d.toUpperCase()}] ${r}`, x || ""), m.value.unshift(V), m.value.length > i && (m.value = m.value.slice(0, i)), t > 0 && setTimeout(() => {
|
|
1738
|
+
z(V.id);
|
|
1739
|
+
}, t), V.id;
|
|
1733
1740
|
}
|
|
1734
1741
|
function z(r) {
|
|
1735
|
-
const
|
|
1736
|
-
return
|
|
1742
|
+
const d = m.value.findIndex((x) => x.id === r);
|
|
1743
|
+
return d !== -1 ? (m.value.splice(d, 1), !0) : !1;
|
|
1737
1744
|
}
|
|
1738
|
-
function
|
|
1745
|
+
function h() {
|
|
1739
1746
|
m.value = [];
|
|
1740
1747
|
}
|
|
1741
|
-
function
|
|
1742
|
-
m.value = m.value.filter((
|
|
1748
|
+
function g(r) {
|
|
1749
|
+
m.value = m.value.filter((d) => d.type !== r);
|
|
1743
1750
|
}
|
|
1744
|
-
async function
|
|
1751
|
+
async function B(r, d, x) {
|
|
1745
1752
|
C.value = !0;
|
|
1746
1753
|
try {
|
|
1747
1754
|
return await r();
|
|
1748
1755
|
} catch (b) {
|
|
1749
|
-
const
|
|
1750
|
-
return k(
|
|
1756
|
+
const V = d || (b instanceof Error ? b.message : "An unexpected error occurred");
|
|
1757
|
+
return k(V, "error", {
|
|
1751
1758
|
...x,
|
|
1752
1759
|
originalError: b instanceof Error ? b.message : String(b)
|
|
1753
1760
|
}), null;
|
|
@@ -1755,47 +1762,47 @@ function Vt(l = {}) {
|
|
|
1755
1762
|
C.value = !1;
|
|
1756
1763
|
}
|
|
1757
1764
|
}
|
|
1758
|
-
function L(r,
|
|
1759
|
-
return r || k(
|
|
1765
|
+
function L(r, d, x) {
|
|
1766
|
+
return r || k(d, "error", x), r;
|
|
1760
1767
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return k(r, "success",
|
|
1768
|
+
function S(r, d) {
|
|
1769
|
+
return k(r, "success", d);
|
|
1763
1770
|
}
|
|
1764
|
-
function j(r,
|
|
1765
|
-
return k(r, "warning",
|
|
1771
|
+
function j(r, d) {
|
|
1772
|
+
return k(r, "warning", d);
|
|
1766
1773
|
}
|
|
1767
|
-
function
|
|
1768
|
-
return k(r, "info",
|
|
1774
|
+
function E(r, d) {
|
|
1775
|
+
return k(r, "info", d);
|
|
1769
1776
|
}
|
|
1770
1777
|
function M(r) {
|
|
1771
|
-
return m.value.filter((
|
|
1778
|
+
return m.value.filter((d) => d.type === r);
|
|
1772
1779
|
}
|
|
1773
|
-
function
|
|
1780
|
+
function c() {
|
|
1774
1781
|
return m.value[0] || null;
|
|
1775
1782
|
}
|
|
1776
1783
|
function n(r) {
|
|
1777
|
-
return r ? m.value.some((
|
|
1784
|
+
return r ? m.value.some((d) => d.type === r) : m.value.length > 0;
|
|
1778
1785
|
}
|
|
1779
1786
|
const a = {
|
|
1780
|
-
fileSizeExceeded: (r,
|
|
1781
|
-
`File "${r}" exceeds maximum size of ${(
|
|
1787
|
+
fileSizeExceeded: (r, d) => k(
|
|
1788
|
+
`File "${r}" exceeds maximum size of ${(d / (1024 * 1024)).toFixed(1)}MB`,
|
|
1782
1789
|
"error",
|
|
1783
|
-
{ fileName: r, maxSize:
|
|
1790
|
+
{ fileName: r, maxSize: d, category: "file-upload" }
|
|
1784
1791
|
),
|
|
1785
1792
|
fileCountExceeded: (r) => k(
|
|
1786
1793
|
`Maximum file count of ${r} reached`,
|
|
1787
1794
|
"error",
|
|
1788
1795
|
{ maxCount: r, category: "file-upload" }
|
|
1789
1796
|
),
|
|
1790
|
-
invalidFileType: (r,
|
|
1791
|
-
`File "${r}" type not allowed. Accepted types: ${
|
|
1797
|
+
invalidFileType: (r, d) => k(
|
|
1798
|
+
`File "${r}" type not allowed. Accepted types: ${d}`,
|
|
1792
1799
|
"error",
|
|
1793
|
-
{ fileName: r, allowedTypes:
|
|
1800
|
+
{ fileName: r, allowedTypes: d, category: "file-upload" }
|
|
1794
1801
|
),
|
|
1795
|
-
uploadFailed: (r,
|
|
1796
|
-
`Failed to upload "${r}"${
|
|
1802
|
+
uploadFailed: (r, d) => k(
|
|
1803
|
+
`Failed to upload "${r}"${d ? `: ${d}` : ""}`,
|
|
1797
1804
|
"error",
|
|
1798
|
-
{ fileName: r, reason:
|
|
1805
|
+
{ fileName: r, reason: d, category: "file-upload" }
|
|
1799
1806
|
),
|
|
1800
1807
|
compressionFailed: (r) => k(
|
|
1801
1808
|
`Image compression failed for "${r}", using original file`,
|
|
@@ -1810,66 +1817,66 @@ function Vt(l = {}) {
|
|
|
1810
1817
|
// Methods
|
|
1811
1818
|
addError: k,
|
|
1812
1819
|
removeError: z,
|
|
1813
|
-
clearErrors:
|
|
1814
|
-
clearErrorsByType:
|
|
1815
|
-
handleAsync:
|
|
1820
|
+
clearErrors: h,
|
|
1821
|
+
clearErrorsByType: g,
|
|
1822
|
+
handleAsync: B,
|
|
1816
1823
|
validate: L,
|
|
1817
|
-
showSuccess:
|
|
1824
|
+
showSuccess: S,
|
|
1818
1825
|
showWarning: j,
|
|
1819
|
-
showInfo:
|
|
1826
|
+
showInfo: E,
|
|
1820
1827
|
getErrorsByType: M,
|
|
1821
|
-
getLatestError:
|
|
1828
|
+
getLatestError: c,
|
|
1822
1829
|
hasErrors: n,
|
|
1823
1830
|
// File upload specific
|
|
1824
1831
|
fileUploadErrors: a
|
|
1825
1832
|
};
|
|
1826
1833
|
}
|
|
1827
|
-
const
|
|
1834
|
+
const $t = {
|
|
1828
1835
|
ThumbnailUploader: he,
|
|
1829
1836
|
TableUploader: be,
|
|
1830
1837
|
SimpleUploader: _e,
|
|
1831
|
-
HandyUploader:
|
|
1838
|
+
HandyUploader: wt,
|
|
1832
1839
|
InsertButton: ye,
|
|
1833
1840
|
SelectFileIconType: te
|
|
1834
1841
|
};
|
|
1835
|
-
function
|
|
1836
|
-
for (const [i, t] of Object.entries(
|
|
1842
|
+
function zt(l) {
|
|
1843
|
+
for (const [i, t] of Object.entries($t)) l.component(i, t);
|
|
1837
1844
|
}
|
|
1838
1845
|
export {
|
|
1839
|
-
|
|
1840
|
-
|
|
1846
|
+
Ut as COMPRESSIBLE_EXTENSIONS,
|
|
1847
|
+
wt as HandyUploader,
|
|
1841
1848
|
ye as InsertButton,
|
|
1842
1849
|
te as SelectFileIconType,
|
|
1843
1850
|
_e as SimpleUploader,
|
|
1844
1851
|
be as TableUploader,
|
|
1845
1852
|
he as ThumbnailUploader,
|
|
1846
|
-
|
|
1853
|
+
Et as base64ByteLength,
|
|
1847
1854
|
It as compressDataUrl,
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1855
|
+
je as compressImage,
|
|
1856
|
+
Te as constructImageDataUrl,
|
|
1857
|
+
Ve as createVideoThumbnailCache,
|
|
1858
|
+
$t as default,
|
|
1852
1859
|
me as fileToBase64,
|
|
1853
|
-
|
|
1860
|
+
ze as filterByAccept,
|
|
1854
1861
|
Pt as formatBytes,
|
|
1855
1862
|
se as formatFileSize,
|
|
1856
1863
|
jt as generateVideoThumbnail,
|
|
1857
1864
|
Mt as getFileIcon,
|
|
1858
1865
|
ce as getFileType,
|
|
1859
|
-
|
|
1866
|
+
Me as getMimeTypeFromExtension,
|
|
1860
1867
|
Ht as getVideoDataUrl,
|
|
1861
|
-
|
|
1868
|
+
zt as install,
|
|
1862
1869
|
re as isImageFile,
|
|
1863
|
-
|
|
1864
|
-
|
|
1870
|
+
Ue as joinFileName,
|
|
1871
|
+
Se as languageData,
|
|
1865
1872
|
Nt as matchesAccept,
|
|
1866
1873
|
Ot as precheckFiles,
|
|
1867
|
-
|
|
1874
|
+
Ee as prepareAttachments,
|
|
1868
1875
|
qt as readFileAsDataUrl,
|
|
1869
|
-
|
|
1876
|
+
Be as readFiles,
|
|
1870
1877
|
Rt as splitFileName,
|
|
1871
1878
|
Vt as useErrorHandler,
|
|
1872
|
-
|
|
1873
|
-
|
|
1879
|
+
Tt as useFileUpload,
|
|
1880
|
+
Pe as validateFileCount,
|
|
1874
1881
|
Ie as validateFileSize
|
|
1875
1882
|
};
|