@emailmaker/filemanager 0.10.103 → 1.1.70
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/.build-meta.json +5 -0
- package/assets/image-editor/fonts/Rubik-Black.woff2 +0 -0
- package/assets/image-editor/fonts/Rubik-Bold.woff2 +0 -0
- package/assets/image-editor/fonts/Rubik-Light.woff2 +0 -0
- package/assets/image-editor/fonts/Rubik-Regular.woff2 +0 -0
- package/assets/image-editor/fonts/caveat-v23-cyrillic_latin-regular.woff2 +0 -0
- package/assets/image-editor/fonts/commissioner-v24-cyrillic_latin-regular.woff2 +0 -0
- package/assets/image-editor/fonts/inter-v20-cyrillic_latin-regular.woff2 +0 -0
- package/assets/image-editor/fonts/oswald-v57-cyrillic_latin-regular.woff2 +0 -0
- package/assets/image-editor/fonts/pacifico-v23-cyrillic_latin-regular.woff2 +0 -0
- package/assets/image-editor/fonts/playfair-display-v40-cyrillic_latin-regular.woff2 +0 -0
- package/components/PixieEditor/PixieEditor.d.ts +1 -2
- package/components/PixieEditor/index.d.ts +4 -1
- package/core.d.ts +21 -0
- package/core.esm.js +2727 -0
- package/core.js +2 -0
- package/{file-manager-IconsTab-Cv51TWYV.js → file-manager-IconsTab-pUKiId5k.js} +527 -519
- package/{file-manager-ImageCodeGenerator-DroVucLL.js → file-manager-ImageCodeGenerator-sUlzbDys.js} +118 -118
- package/{file-manager-JsBarcode-Cji_rnaG.js → file-manager-JsBarcode-CyaffT5b.js} +28 -29
- package/file-manager-PixieEditor-Doy__jUq.js +597 -0
- package/{file-manager-browser-CweGvoKm.js → file-manager-browser-DDyRNDQk.js} +4 -4
- package/{file-manager-hooks-Dg-OcR_x.js → file-manager-hooks-vqT-4jeg.js} +2593 -2397
- package/{file-manager-rolldown-runtime-DtPi1Y-2.js → file-manager-rolldown-runtime-DAVfCfog.js} +11 -4
- package/file-manager-urls-DN9gaYil.js +37 -0
- package/{file-manager-useMediaListEngine-ByGmaaib.js → file-manager-useMediaListEngine-BitrHuUM.js} +6 -6
- package/file-manager.css +1 -1
- package/file-manager.d.ts +2 -20
- package/file-manager.esm.js +2382 -3049
- package/file-manager.js +11 -11
- package/notification.d.ts +4 -4
- package/package.json +24 -1
- package/utils/iconCssVars.d.ts +12 -0
- package/utils/pixieEditorConfig.d.ts +38 -0
- package/utils/pixieEditorConfig.test.d.ts +1 -0
- package/utils/svgToPng.test.d.ts +1 -0
- package/utils/urlNormalization.d.ts +9 -0
- package/utils/urlNormalization.test.d.ts +1 -0
package/{file-manager-ImageCodeGenerator-DroVucLL.js → file-manager-ImageCodeGenerator-sUlzbDys.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as e } from "./file-manager-rolldown-runtime-DAVfCfog.js";
|
|
2
|
+
import { B as t, G as n, R as r } from "./file-manager-hooks-vqT-4jeg.js";
|
|
3
3
|
import { useCallback as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
4
|
-
import { Alert as l, Button as u, Checkbox as d, ColorPicker as f, Input as p, InputNumber as m, Segmented as
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { Expand01 as
|
|
7
|
-
//#region src/components/ImageCodeGenerator/ImageCodeGenerator.module.scss
|
|
8
|
-
var
|
|
4
|
+
import { Alert as l, Button as u, Checkbox as d, ColorPicker as f, Input as p, InputNumber as m, Segmented as h, Typography as g } from "antd";
|
|
5
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
6
|
+
import { Expand01 as y } from "@untitledui/icons";
|
|
7
|
+
//#region packages/file-manager/src/components/ImageCodeGenerator/ImageCodeGenerator.module.scss
|
|
8
|
+
var ee = r(), b = {
|
|
9
9
|
"em-filemanager": "em-filemanager",
|
|
10
10
|
emFilemanager: "em-filemanager",
|
|
11
11
|
root: "root",
|
|
@@ -30,38 +30,38 @@ var y = n(), b = {
|
|
|
30
30
|
previewCanvas: "previewCanvas",
|
|
31
31
|
previewCanvasBarcode: "previewCanvasBarcode",
|
|
32
32
|
actions: "actions"
|
|
33
|
-
}, x = 80, S = 600,
|
|
34
|
-
function
|
|
33
|
+
}, x = 80, S = 600, C = 200, w = 24, T = 130, E = 60, te = 280, ne = 72;
|
|
34
|
+
function re() {
|
|
35
35
|
return typeof window > "u" ? 2 : Math.min(3, Math.max(2, window.devicePixelRatio || 2));
|
|
36
36
|
}
|
|
37
|
-
var
|
|
38
|
-
let { t:
|
|
37
|
+
var D = ({ customRequest: r, state: D, setState: O }) => {
|
|
38
|
+
let { t: k } = n(), { options: A } = t(), j = A?.config?.iconStrokeWidth ?? 1.75, M = s(null), { mode: N, rawText: P, foregroundHex: F, backgroundHex: I, transparentBackground: L, qrSidePx: R, barcodeBarHeightPx: z } = D, B = i((e) => O((t) => ({
|
|
39
39
|
...t,
|
|
40
40
|
mode: e
|
|
41
|
-
})), [
|
|
41
|
+
})), [O]), V = i((e) => O((t) => ({
|
|
42
42
|
...t,
|
|
43
43
|
rawText: e
|
|
44
|
-
})), [
|
|
44
|
+
})), [O]), H = i((e) => O((t) => ({
|
|
45
45
|
...t,
|
|
46
46
|
foregroundHex: e
|
|
47
|
-
})), [
|
|
47
|
+
})), [O]), U = i((e) => O((t) => ({
|
|
48
48
|
...t,
|
|
49
49
|
backgroundHex: e
|
|
50
|
-
})), [
|
|
50
|
+
})), [O]), ie = i((e) => O((t) => ({
|
|
51
51
|
...t,
|
|
52
52
|
transparentBackground: e
|
|
53
|
-
})), [
|
|
53
|
+
})), [O]), ae = i((e) => O((t) => ({
|
|
54
54
|
...t,
|
|
55
55
|
qrSidePx: e
|
|
56
|
-
})), [
|
|
56
|
+
})), [O]), oe = i((e) => O((t) => ({
|
|
57
57
|
...t,
|
|
58
58
|
barcodeBarHeightPx: e
|
|
59
|
-
})), [
|
|
60
|
-
a(() => (Y(
|
|
59
|
+
})), [O]), [W, se] = c(P), [G, K] = c(null), [q, J] = c(!1), Y = o(() => (0, ee.debounce)((e) => se(e), 300), []);
|
|
60
|
+
a(() => (Y(P), () => {
|
|
61
61
|
Y.cancel();
|
|
62
|
-
}), [
|
|
63
|
-
let X =
|
|
64
|
-
let r = (await import("./file-manager-browser-
|
|
62
|
+
}), [P, Y]);
|
|
63
|
+
let X = L ? "#00000000" : I, Z = i(async (t, n) => {
|
|
64
|
+
let r = (await import("./file-manager-browser-DDyRNDQk.js").then((t) => /* @__PURE__ */ e(t.default))).default, i = n.trim(), a = Math.min(te, Math.max(x, R));
|
|
65
65
|
if (!i) {
|
|
66
66
|
t.width = a, t.height = a;
|
|
67
67
|
let e = t.getContext("2d");
|
|
@@ -72,16 +72,16 @@ var O = ({ customRequest: n, state: O, setState: k }) => {
|
|
|
72
72
|
width: a,
|
|
73
73
|
margin: 2,
|
|
74
74
|
color: {
|
|
75
|
-
dark:
|
|
75
|
+
dark: F,
|
|
76
76
|
light: X
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}, [
|
|
80
|
-
|
|
80
|
+
F,
|
|
81
81
|
X,
|
|
82
|
-
|
|
82
|
+
R
|
|
83
83
|
]), Q = i(async (t, n) => {
|
|
84
|
-
let r = (await import("./file-manager-JsBarcode-
|
|
84
|
+
let r = (await import("./file-manager-JsBarcode-CyaffT5b.js").then((t) => /* @__PURE__ */ e(t.default))).default, i = n.trim(), a = L ? "rgba(0,0,0,0)" : I, o = Math.min(ne, Math.max(w, z)), s = Math.max(1, Math.round(o / 42)), c = Math.max(4, Math.round(o * .07)), l = Math.max(10, Math.round(o * .15));
|
|
85
85
|
if (!i) {
|
|
86
86
|
t.width = Math.round(o * 4), t.height = Math.round(o * 1.65);
|
|
87
87
|
let e = t.getContext("2d");
|
|
@@ -92,29 +92,29 @@ var O = ({ customRequest: n, state: O, setState: k }) => {
|
|
|
92
92
|
format: "CODE128",
|
|
93
93
|
displayValue: !0,
|
|
94
94
|
background: a,
|
|
95
|
-
lineColor:
|
|
95
|
+
lineColor: F,
|
|
96
96
|
margin: c,
|
|
97
97
|
width: s,
|
|
98
98
|
height: o,
|
|
99
99
|
fontSize: l
|
|
100
100
|
});
|
|
101
101
|
}, [
|
|
102
|
+
F,
|
|
102
103
|
I,
|
|
103
104
|
L,
|
|
104
|
-
|
|
105
|
-
B
|
|
105
|
+
z
|
|
106
106
|
]);
|
|
107
107
|
a(() => {
|
|
108
|
-
let e =
|
|
108
|
+
let e = M.current;
|
|
109
109
|
if (!e) return;
|
|
110
110
|
let t = !1;
|
|
111
111
|
return (async () => {
|
|
112
112
|
try {
|
|
113
|
-
|
|
113
|
+
N === "qr" ? await Z(e, W) : await Q(e, W), t || K(null);
|
|
114
114
|
} catch (n) {
|
|
115
115
|
let r = n instanceof Error ? n.message : String(n);
|
|
116
116
|
if (!t) {
|
|
117
|
-
K(
|
|
117
|
+
K(N === "barcode" ? k("Barcode generation failed") : r);
|
|
118
118
|
let t = e.getContext("2d");
|
|
119
119
|
t && t.clearRect(0, 0, e.width, e.height);
|
|
120
120
|
}
|
|
@@ -123,24 +123,24 @@ var O = ({ customRequest: n, state: O, setState: k }) => {
|
|
|
123
123
|
t = !0;
|
|
124
124
|
};
|
|
125
125
|
}, [
|
|
126
|
-
|
|
126
|
+
N,
|
|
127
127
|
W,
|
|
128
128
|
Q,
|
|
129
129
|
Z,
|
|
130
|
-
|
|
130
|
+
k
|
|
131
131
|
]);
|
|
132
132
|
let $ = i(async () => {
|
|
133
133
|
Y.flush();
|
|
134
|
-
let t =
|
|
135
|
-
if (!t) throw Error(
|
|
136
|
-
let n =
|
|
137
|
-
if (
|
|
138
|
-
let r = Math.round(Math.min(S, Math.max(x,
|
|
139
|
-
i.width = r, i.height = r, await (await import("./file-manager-browser-
|
|
134
|
+
let t = P.trim();
|
|
135
|
+
if (!t) throw Error(k("Enter text or URL to preview"));
|
|
136
|
+
let n = re();
|
|
137
|
+
if (N === "qr") {
|
|
138
|
+
let r = Math.round(Math.min(S, Math.max(x, R)) * n), i = document.createElement("canvas");
|
|
139
|
+
i.width = r, i.height = r, await (await import("./file-manager-browser-DDyRNDQk.js").then((t) => /* @__PURE__ */ e(t.default))).default.toCanvas(i, t, {
|
|
140
140
|
width: r,
|
|
141
141
|
margin: 2,
|
|
142
142
|
color: {
|
|
143
|
-
dark:
|
|
143
|
+
dark: F,
|
|
144
144
|
light: X
|
|
145
145
|
}
|
|
146
146
|
});
|
|
@@ -148,12 +148,12 @@ var O = ({ customRequest: n, state: O, setState: k }) => {
|
|
|
148
148
|
if (!a) throw Error("PNG export failed");
|
|
149
149
|
return a;
|
|
150
150
|
}
|
|
151
|
-
let r = (await import("./file-manager-JsBarcode-
|
|
151
|
+
let r = (await import("./file-manager-JsBarcode-CyaffT5b.js").then((t) => /* @__PURE__ */ e(t.default))).default, i = document.createElement("canvas"), a = L ? "rgba(0,0,0,0)" : I, o = Math.min(T, Math.max(w, z)), s = Math.max(6, Math.round(o * .1)), c = Math.max(2, Math.round(o / 36)), l = Math.max(12, Math.round(o * .16));
|
|
152
152
|
r(i, t, {
|
|
153
153
|
format: "CODE128",
|
|
154
154
|
displayValue: !0,
|
|
155
155
|
background: a,
|
|
156
|
-
lineColor:
|
|
156
|
+
lineColor: F,
|
|
157
157
|
margin: Math.round(s * n),
|
|
158
158
|
width: Math.round(c * n),
|
|
159
159
|
height: Math.round(o * n),
|
|
@@ -163,18 +163,18 @@ var O = ({ customRequest: n, state: O, setState: k }) => {
|
|
|
163
163
|
if (!u) throw Error("PNG export failed");
|
|
164
164
|
return u;
|
|
165
165
|
}, [
|
|
166
|
+
N,
|
|
166
167
|
P,
|
|
167
168
|
F,
|
|
168
|
-
I,
|
|
169
169
|
X,
|
|
170
|
+
I,
|
|
170
171
|
L,
|
|
171
172
|
R,
|
|
172
173
|
z,
|
|
173
|
-
B,
|
|
174
174
|
Y,
|
|
175
|
-
|
|
175
|
+
k
|
|
176
176
|
]), ce = i(async () => {
|
|
177
|
-
if (!q &&
|
|
177
|
+
if (!q && P.trim()) {
|
|
178
178
|
J(!0);
|
|
179
179
|
try {
|
|
180
180
|
let e;
|
|
@@ -185,177 +185,177 @@ var O = ({ customRequest: n, state: O, setState: k }) => {
|
|
|
185
185
|
K(t);
|
|
186
186
|
return;
|
|
187
187
|
}
|
|
188
|
-
let t = new File([e], `${
|
|
188
|
+
let t = new File([e], `${N === "qr" ? "qr-code" : "barcode"}-${Date.now()}.png`, {
|
|
189
189
|
type: "image/png",
|
|
190
190
|
lastModified: Date.now()
|
|
191
191
|
});
|
|
192
|
-
await Promise.resolve(
|
|
192
|
+
await Promise.resolve(r({ file: t }));
|
|
193
193
|
} finally {
|
|
194
194
|
J(!1);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
}, [
|
|
198
|
-
|
|
198
|
+
r,
|
|
199
199
|
$,
|
|
200
|
+
N,
|
|
200
201
|
P,
|
|
201
|
-
F,
|
|
202
202
|
q
|
|
203
|
-
]), le = !!
|
|
204
|
-
return /* @__PURE__ */
|
|
203
|
+
]), le = !!P.trim() && !G;
|
|
204
|
+
return /* @__PURE__ */ _("div", {
|
|
205
205
|
className: b.root,
|
|
206
|
-
children: /* @__PURE__ */
|
|
206
|
+
children: /* @__PURE__ */ v("div", {
|
|
207
207
|
className: b.controls,
|
|
208
208
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ _(h, {
|
|
210
210
|
block: !0,
|
|
211
211
|
className: b.segmentedControl,
|
|
212
|
-
value:
|
|
212
|
+
value: N,
|
|
213
213
|
onChange: (e) => {
|
|
214
|
-
|
|
214
|
+
B(e), K(null);
|
|
215
215
|
},
|
|
216
216
|
options: [{
|
|
217
|
-
label:
|
|
217
|
+
label: k("QR code"),
|
|
218
218
|
value: "qr"
|
|
219
219
|
}, {
|
|
220
|
-
label:
|
|
220
|
+
label: k("Barcode"),
|
|
221
221
|
value: "barcode"
|
|
222
222
|
}]
|
|
223
223
|
}),
|
|
224
|
-
G && /* @__PURE__ */
|
|
224
|
+
G && /* @__PURE__ */ _(l, {
|
|
225
225
|
type: "error",
|
|
226
|
-
title:
|
|
226
|
+
title: k("Validation error"),
|
|
227
227
|
description: G,
|
|
228
228
|
showIcon: !0,
|
|
229
229
|
closable: !0,
|
|
230
230
|
onClose: () => K(null)
|
|
231
231
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
value:
|
|
232
|
+
/* @__PURE__ */ _(p.TextArea, {
|
|
233
|
+
value: P,
|
|
234
234
|
onChange: (e) => {
|
|
235
|
-
|
|
235
|
+
V(e.target.value), K(null);
|
|
236
236
|
},
|
|
237
|
-
placeholder:
|
|
237
|
+
placeholder: k("Text or URL"),
|
|
238
238
|
rows: 3,
|
|
239
239
|
spellCheck: !1,
|
|
240
240
|
autoComplete: "off"
|
|
241
241
|
}),
|
|
242
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ v("div", {
|
|
243
243
|
className: b.sizeRow,
|
|
244
|
-
children: [/* @__PURE__ */ g
|
|
244
|
+
children: [/* @__PURE__ */ _(g.Text, {
|
|
245
245
|
type: "secondary",
|
|
246
246
|
className: b.sizeRowLabel,
|
|
247
|
-
children:
|
|
248
|
-
}),
|
|
247
|
+
children: k(N === "qr" ? "QR image size px" : "Barcode bar height px")
|
|
248
|
+
}), N === "qr" ? /* @__PURE__ */ _(m, {
|
|
249
249
|
className: b.sizeInputNumber,
|
|
250
250
|
min: x,
|
|
251
251
|
max: S,
|
|
252
252
|
step: 8,
|
|
253
|
-
value:
|
|
254
|
-
onChange: (e) => ae(typeof e == "number" && !Number.isNaN(e) ? e :
|
|
255
|
-
prefix: /* @__PURE__ */
|
|
253
|
+
value: R,
|
|
254
|
+
onChange: (e) => ae(typeof e == "number" && !Number.isNaN(e) ? e : C),
|
|
255
|
+
prefix: /* @__PURE__ */ _(y, {
|
|
256
256
|
size: 18,
|
|
257
|
-
strokeWidth:
|
|
257
|
+
strokeWidth: j
|
|
258
258
|
}),
|
|
259
|
-
suffix: /* @__PURE__ */
|
|
259
|
+
suffix: /* @__PURE__ */ _("span", {
|
|
260
260
|
className: b.sizeSuffix,
|
|
261
261
|
children: "px"
|
|
262
262
|
}),
|
|
263
|
-
"aria-label":
|
|
264
|
-
}) : /* @__PURE__ */
|
|
263
|
+
"aria-label": k("QR image size px")
|
|
264
|
+
}) : /* @__PURE__ */ _(m, {
|
|
265
265
|
className: b.sizeInputNumber,
|
|
266
|
-
min:
|
|
267
|
-
max:
|
|
266
|
+
min: w,
|
|
267
|
+
max: T,
|
|
268
268
|
step: 4,
|
|
269
|
-
value:
|
|
270
|
-
onChange: (e) => oe(typeof e == "number" && !Number.isNaN(e) ? e :
|
|
271
|
-
prefix: /* @__PURE__ */
|
|
269
|
+
value: z,
|
|
270
|
+
onChange: (e) => oe(typeof e == "number" && !Number.isNaN(e) ? e : E),
|
|
271
|
+
prefix: /* @__PURE__ */ _(y, {
|
|
272
272
|
size: 18,
|
|
273
|
-
strokeWidth:
|
|
273
|
+
strokeWidth: j
|
|
274
274
|
}),
|
|
275
|
-
suffix: /* @__PURE__ */
|
|
275
|
+
suffix: /* @__PURE__ */ _("span", {
|
|
276
276
|
className: b.sizeSuffix,
|
|
277
277
|
children: "px"
|
|
278
278
|
}),
|
|
279
|
-
"aria-label":
|
|
279
|
+
"aria-label": k("Barcode bar height px")
|
|
280
280
|
})]
|
|
281
281
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ v("div", {
|
|
283
283
|
className: b.colorGrid,
|
|
284
284
|
children: [
|
|
285
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ v("div", {
|
|
286
286
|
className: b.colorCell,
|
|
287
|
-
children: [/* @__PURE__ */ g
|
|
287
|
+
children: [/* @__PURE__ */ _(g.Text, {
|
|
288
288
|
type: "secondary",
|
|
289
289
|
className: b.colorCellLabel,
|
|
290
|
-
children:
|
|
291
|
-
}), /* @__PURE__ */
|
|
290
|
+
children: k("Code color", "Code color")
|
|
291
|
+
}), /* @__PURE__ */ _(f, {
|
|
292
292
|
className: b.colorPickerFull,
|
|
293
|
-
value:
|
|
293
|
+
value: F,
|
|
294
294
|
format: "hex",
|
|
295
295
|
disabledAlpha: !0,
|
|
296
296
|
showText: !0,
|
|
297
297
|
onChange: (e, t) => {
|
|
298
298
|
let n = typeof e == "string" ? e : e?.toHexString ? e.toHexString() : t;
|
|
299
|
-
|
|
299
|
+
H(n);
|
|
300
300
|
}
|
|
301
301
|
})]
|
|
302
302
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ v("div", {
|
|
304
304
|
className: b.colorCell,
|
|
305
|
-
children: [/* @__PURE__ */ g
|
|
305
|
+
children: [/* @__PURE__ */ _(g.Text, {
|
|
306
306
|
type: "secondary",
|
|
307
307
|
className: b.colorCellLabel,
|
|
308
|
-
children:
|
|
309
|
-
}), /* @__PURE__ */
|
|
308
|
+
children: k("Background color", "Background color")
|
|
309
|
+
}), /* @__PURE__ */ _(f, {
|
|
310
310
|
className: b.colorPickerFull,
|
|
311
|
-
value:
|
|
311
|
+
value: I,
|
|
312
312
|
format: "hex",
|
|
313
313
|
disabledAlpha: !0,
|
|
314
314
|
showText: !0,
|
|
315
|
-
disabled:
|
|
315
|
+
disabled: L,
|
|
316
316
|
onChange: (e, t) => {
|
|
317
317
|
let n = typeof e == "string" ? e : e?.toHexString ? e.toHexString() : t;
|
|
318
|
-
|
|
318
|
+
U(n);
|
|
319
319
|
}
|
|
320
320
|
})]
|
|
321
321
|
}),
|
|
322
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ v("div", {
|
|
323
323
|
className: b.bgExtras,
|
|
324
|
-
children: [/* @__PURE__ */
|
|
325
|
-
checked:
|
|
324
|
+
children: [/* @__PURE__ */ _(d, {
|
|
325
|
+
checked: L,
|
|
326
326
|
onChange: (e) => ie(e.target.checked),
|
|
327
|
-
children:
|
|
328
|
-
}),
|
|
327
|
+
children: k("Transparent background", "Transparent background")
|
|
328
|
+
}), L && /* @__PURE__ */ _(l, {
|
|
329
329
|
type: "warning",
|
|
330
330
|
showIcon: !0,
|
|
331
|
-
title:
|
|
331
|
+
title: k("QR transparent background hint"),
|
|
332
332
|
className: b.bgWarning
|
|
333
333
|
})]
|
|
334
334
|
})
|
|
335
335
|
]
|
|
336
336
|
}),
|
|
337
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ v("div", {
|
|
338
338
|
className: b.previewSection,
|
|
339
|
-
children: [/* @__PURE__ */ g
|
|
339
|
+
children: [/* @__PURE__ */ _(g.Text, {
|
|
340
340
|
className: b.previewTitle,
|
|
341
|
-
children:
|
|
342
|
-
}), /* @__PURE__ */
|
|
343
|
-
className: [b.previewWrap,
|
|
344
|
-
children: [/* @__PURE__ */
|
|
345
|
-
ref:
|
|
346
|
-
className: [b.previewCanvas,
|
|
347
|
-
"aria-label":
|
|
341
|
+
children: k("Preview", "Preview")
|
|
342
|
+
}), /* @__PURE__ */ v("div", {
|
|
343
|
+
className: [b.previewWrap, N === "barcode" && b.previewWrapBarcode].filter(Boolean).join(" "),
|
|
344
|
+
children: [/* @__PURE__ */ _("div", { className: [b.scanLine, N === "barcode" && b.scanLineBarcode].filter(Boolean).join(" ") }), /* @__PURE__ */ _("canvas", {
|
|
345
|
+
ref: M,
|
|
346
|
+
className: [b.previewCanvas, N === "barcode" && b.previewCanvasBarcode].filter(Boolean).join(" "),
|
|
347
|
+
"aria-label": k("Preview")
|
|
348
348
|
})]
|
|
349
349
|
})]
|
|
350
350
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ _("div", {
|
|
352
352
|
className: b.actions,
|
|
353
|
-
children: /* @__PURE__ */
|
|
353
|
+
children: /* @__PURE__ */ _(u, {
|
|
354
354
|
type: "primary",
|
|
355
355
|
onClick: () => void ce(),
|
|
356
356
|
loading: q,
|
|
357
357
|
disabled: !le,
|
|
358
|
-
children:
|
|
358
|
+
children: k("Add to My files")
|
|
359
359
|
})
|
|
360
360
|
})
|
|
361
361
|
]
|
|
@@ -363,6 +363,6 @@ var O = ({ customRequest: n, state: O, setState: k }) => {
|
|
|
363
363
|
});
|
|
364
364
|
};
|
|
365
365
|
//#endregion
|
|
366
|
-
export {
|
|
366
|
+
export { D as default };
|
|
367
367
|
|
|
368
|
-
//# sourceMappingURL=file-manager-ImageCodeGenerator-
|
|
368
|
+
//# sourceMappingURL=file-manager-ImageCodeGenerator-sUlzbDys.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./file-manager-rolldown-runtime-
|
|
1
|
+
import { t as e } from "./file-manager-rolldown-runtime-DAVfCfog.js";
|
|
2
2
|
//#region node_modules/jsbarcode/bin/barcodes/Barcode.js
|
|
3
3
|
var t = /* @__PURE__ */ e(((e) => {
|
|
4
4
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
@@ -331,8 +331,8 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
331
331
|
if (t === a.SET_A) {
|
|
332
332
|
var n = e.shift();
|
|
333
333
|
return n < 32 ? n + 64 : n - 32;
|
|
334
|
-
}
|
|
335
|
-
return
|
|
334
|
+
} else if (t === a.SET_B) return e.shift() - 32;
|
|
335
|
+
else return (e.shift() - 48) * 10 + e.shift() - 48;
|
|
336
336
|
}
|
|
337
337
|
},
|
|
338
338
|
{
|
|
@@ -802,10 +802,11 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
802
802
|
if (i === void 0) {
|
|
803
803
|
var a = Object.getPrototypeOf(t);
|
|
804
804
|
return a === null ? void 0 : e(a, n, r);
|
|
805
|
+
} else if ("value" in i) return i.value;
|
|
806
|
+
else {
|
|
807
|
+
var o = i.get;
|
|
808
|
+
return o === void 0 ? void 0 : o.call(r);
|
|
805
809
|
}
|
|
806
|
-
if ("value" in i) return i.value;
|
|
807
|
-
var o = i.get;
|
|
808
|
-
return o === void 0 ? void 0 : o.call(r);
|
|
809
810
|
}, r = d(), i = a(p());
|
|
810
811
|
function a(e) {
|
|
811
812
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -911,10 +912,11 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
911
912
|
if (i === void 0) {
|
|
912
913
|
var a = Object.getPrototypeOf(t);
|
|
913
914
|
return a === null ? void 0 : e(a, n, r);
|
|
915
|
+
} else if ("value" in i) return i.value;
|
|
916
|
+
else {
|
|
917
|
+
var o = i.get;
|
|
918
|
+
return o === void 0 ? void 0 : o.call(r);
|
|
914
919
|
}
|
|
915
|
-
if ("value" in i) return i.value;
|
|
916
|
-
var o = i.get;
|
|
917
|
-
return o === void 0 ? void 0 : o.call(r);
|
|
918
920
|
}, r = i(p());
|
|
919
921
|
function i(e) {
|
|
920
922
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -1134,7 +1136,7 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
1134
1136
|
function t(e, n) {
|
|
1135
1137
|
o(this, t), e.search(/^[0-9]{11}$/) !== -1 && (e += u(e));
|
|
1136
1138
|
var r = s(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
1137
|
-
return r.displayValue = n.displayValue,
|
|
1139
|
+
return r.displayValue = n.displayValue, n.fontSize > n.width * 10 ? r.fontSize = n.width * 10 : r.fontSize = n.fontSize, r.guardHeight = n.height + r.fontSize / 2 + n.textMargin, r;
|
|
1138
1140
|
}
|
|
1139
1141
|
return n(t, [
|
|
1140
1142
|
{
|
|
@@ -1266,11 +1268,10 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
1266
1268
|
s(this, t);
|
|
1267
1269
|
var r = c(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
1268
1270
|
if (r.isValid = !1, e.search(/^[0-9]{6}$/) !== -1) r.middleDigits = e, r.upcA = m(e, "0"), r.text = n.text || "" + r.upcA[0] + e + r.upcA[r.upcA.length - 1], r.isValid = !0;
|
|
1269
|
-
else if (e.search(/^[01][0-9]{7}$/) !== -1)
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
return r.displayValue = n.displayValue, r.fontSize = n.fontSize > n.width * 10 ? n.width * 10 : n.fontSize, r.guardHeight = n.height + r.fontSize / 2 + n.textMargin, r;
|
|
1271
|
+
else if (e.search(/^[01][0-9]{7}$/) !== -1) if (r.middleDigits = e.substring(1, e.length - 1), r.upcA = m(r.middleDigits, e[0]), r.upcA[r.upcA.length - 1] === e[e.length - 1]) r.isValid = !0;
|
|
1272
|
+
else return c(r);
|
|
1273
|
+
else return c(r);
|
|
1274
|
+
return r.displayValue = n.displayValue, n.fontSize > n.width * 10 ? r.fontSize = n.width * 10 : r.fontSize = n.fontSize, r.guardHeight = n.height + r.fontSize / 2 + n.textMargin, r;
|
|
1274
1275
|
}
|
|
1275
1276
|
return n(t, [
|
|
1276
1277
|
{
|
|
@@ -1338,7 +1339,7 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
1338
1339
|
function m(e, t) {
|
|
1339
1340
|
for (var n = u[parseInt(e[e.length - 1])], r = "", i = 0, o = 0; o < n.length; o++) {
|
|
1340
1341
|
var s = n[o];
|
|
1341
|
-
|
|
1342
|
+
s === "X" ? r += e[i++] : r += s;
|
|
1342
1343
|
}
|
|
1343
1344
|
return r = "" + t + r, "" + r + (0, a.checksum)(r);
|
|
1344
1345
|
}
|
|
@@ -2529,27 +2530,26 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
2529
2530
|
if (Array.isArray(e)) {
|
|
2530
2531
|
for (var a = [], l = 0; l < e.length; l++) a.push(o(e[l]));
|
|
2531
2532
|
return a;
|
|
2532
|
-
}
|
|
2533
|
-
if (typeof
|
|
2534
|
-
if (e && e.nodeName && e.nodeName.toLowerCase() === "svg" || typeof SVGElement < "u" && e instanceof SVGElement) return {
|
|
2533
|
+
} else if (typeof HTMLCanvasElement < "u" && e instanceof HTMLImageElement) return c(e);
|
|
2534
|
+
else if (e && e.nodeName && e.nodeName.toLowerCase() === "svg" || typeof SVGElement < "u" && e instanceof SVGElement) return {
|
|
2535
2535
|
element: e,
|
|
2536
2536
|
options: (0, n.default)(e),
|
|
2537
2537
|
renderer: r.default.SVGRenderer
|
|
2538
2538
|
};
|
|
2539
|
-
if (typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement) return {
|
|
2539
|
+
else if (typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement) return {
|
|
2540
2540
|
element: e,
|
|
2541
2541
|
options: (0, n.default)(e),
|
|
2542
2542
|
renderer: r.default.CanvasRenderer
|
|
2543
2543
|
};
|
|
2544
|
-
if (e && e.getContext) return {
|
|
2544
|
+
else if (e && e.getContext) return {
|
|
2545
2545
|
element: e,
|
|
2546
2546
|
renderer: r.default.CanvasRenderer
|
|
2547
2547
|
};
|
|
2548
|
-
if (e && (e === void 0 ? "undefined" : t(e)) === "object" && !e.nodeName) return {
|
|
2548
|
+
else if (e && (e === void 0 ? "undefined" : t(e)) === "object" && !e.nodeName) return {
|
|
2549
2549
|
element: e,
|
|
2550
2550
|
renderer: r.default.ObjectRenderer
|
|
2551
2551
|
};
|
|
2552
|
-
throw new i.InvalidElementException();
|
|
2552
|
+
else throw new i.InvalidElementException();
|
|
2553
2553
|
}
|
|
2554
2554
|
function s(e) {
|
|
2555
2555
|
var t = document.querySelectorAll(e);
|
|
@@ -2593,10 +2593,9 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
2593
2593
|
return t(e, [{
|
|
2594
2594
|
key: "handleCatch",
|
|
2595
2595
|
value: function(e) {
|
|
2596
|
-
if (e.name === "InvalidInputException")
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
} else throw e;
|
|
2596
|
+
if (e.name === "InvalidInputException") if (this.api._options.valid !== this.api._defaults.valid) this.api._options.valid(!1);
|
|
2597
|
+
else throw e.message;
|
|
2598
|
+
else throw e;
|
|
2600
2599
|
this.api.render = function() {};
|
|
2601
2600
|
}
|
|
2602
2601
|
}, {
|
|
@@ -2619,7 +2618,7 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
2619
2618
|
var f = function() {}, p = function(e, t, n) {
|
|
2620
2619
|
var r = new f();
|
|
2621
2620
|
if (e === void 0) throw Error("No element to render on was provided.");
|
|
2622
|
-
return r._renderProperties = (0, o.default)(e), r._encodings = [], r._options = u.default, r._errorHandler = new c.default(r), t !== void 0 && (n ||= {}, n.format
|
|
2621
|
+
return r._renderProperties = (0, o.default)(e), r._encodings = [], r._options = u.default, r._errorHandler = new c.default(r), t !== void 0 && (n ||= {}, n.format ||= _(), r.options(n)[n.format](t, n).render()), r;
|
|
2623
2622
|
};
|
|
2624
2623
|
for (var m in p.getModule = function(e) {
|
|
2625
2624
|
return n.default[e];
|
|
@@ -2689,4 +2688,4 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
2689
2688
|
//#endregion
|
|
2690
2689
|
export default ee();
|
|
2691
2690
|
|
|
2692
|
-
//# sourceMappingURL=file-manager-JsBarcode-
|
|
2691
|
+
//# sourceMappingURL=file-manager-JsBarcode-CyaffT5b.js.map
|