useblocks 1.1.49 → 1.1.56
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/iframe/js/amp.BP7EklKo.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.4N5s3OV-.js +1 -1
- package/npm-publish.manifest.json +7 -7
- package/package.json +1 -7
- package/runtime/THIRD_PARTY_LICENSES.txt +1 -236
- package/runtime/index.js +0 -2
- package/runtime/package.json +0 -6
- package/runtime/plugin-dev-manifest.json +0 -4
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/{339377b8.js → 12a9aa4e.js} +15355 -15285
- package/static/core/{b9f47840.js → 17d3ee0b.js} +8 -8
- package/static/core/{6895dd352.js → 195ca4a32.js} +15 -15
- package/static/core/{8e110c69.js → 2569fac8.js} +31 -31
- package/static/core/{4ca527032.js → 26ddf93e2.js} +2 -2
- package/static/core/{de79e0c5.js → 289ba982.js} +543 -518
- package/static/core/{11296a18.js → 30c5fe5f.js} +114 -114
- package/static/core/{e93d55b92.js → 3af8f3592.js} +4 -4
- package/static/core/{542ea53f2.js → 4a27bba92.js} +8 -8
- package/static/core/4a5f1756.js +466 -0
- package/static/core/{13f581cc.js → 4d493eba.js} +3 -3
- package/static/core/{acb049cb.js → 4dadf572.js} +1509 -1520
- package/static/core/{7a229b90.js → 5345bef8.js} +46 -46
- package/static/core/{27544e7e.js → 581ce428.js} +37 -19
- package/static/core/58c4b8d7.js +3150 -0
- package/static/core/{d8daf1142.js → 6156301b2.js} +3 -3
- package/static/core/{c3849484.js → 64bea1a9.js} +5 -5
- package/static/core/{ce4fc17f2.js → 680236f4.js} +1 -1
- package/static/core/{4b75d16c2.js → 687795b52.js} +4 -4
- package/static/core/{70407ac0.js → 72f86b2d.js} +3 -3
- package/static/core/{b77f0769.js → 8432f11e.js} +5 -5
- package/static/core/{59023866.js → 87969347.js} +706 -704
- package/static/core/{13d197af.js → 8a496b64.js} +27 -27
- package/static/core/{4e1b970f.js → 8ba13f332.js} +1 -1
- package/static/core/{386cf7b3.js → 951903fb.js} +9347 -9285
- package/static/core/{3dea3b87.js → 988589a5.js} +10 -10
- package/static/core/{a95c02bb.js → a1355a35.js} +5 -5
- package/static/core/{7c6fb2162.js → a36c3ab62.js} +3 -3
- package/static/core/{aacf134d.js → a4c19e27.js} +523 -503
- package/static/core/{2da1d66b.js → abd3f34c.js} +5 -5
- package/static/core/{528ad9282.js → ae20f0992.js} +16 -16
- package/static/core/{c59f9731.js → b9bb2c5f.js} +6785 -5088
- package/static/core/bf446743.js +761 -0
- package/static/core/{f96d2049.js → d1a1d4902.js} +1 -1
- package/static/core/{5b48fd69.js → d8d6485e.js} +5 -5
- package/static/core/{59e92cc3.js → d9398296.js} +5 -5
- package/static/core/{8c81db36.js → eb23332a.js} +3 -3
- package/static/core/{e7c24fe9.js → fa354fb5.js} +179 -173
- package/static/core/{1e5bf73c.js → ffee9a77.js} +7 -7
- package/static/esm/{d180c108.js → 3cde7cb6.js} +51 -70
- package/static/esm/{448d4bb0.js → 550bf3cb.js} +1 -1
- package/two_step_headless_plugin.html +1 -1
- package/ui-kit/index.js +49 -47
- package/{useblocks-core.15a9129c.js → useblocks-core.1279854f.js} +6 -6
- package/useblocks-esm.js +352 -392
- package/useblocks.js +67 -152
- package/runtime/prop-types/index.js +0 -4
- package/runtime/react-router-dom/index.js +0 -2
- package/static/core/1ca5f3772.js +0 -602
- package/static/core/3b4845f7.js +0 -3097
- package/static/core/a11c28c2.js +0 -467
- package/static/runtime/dom-export-CHgQ7Ws9.js +0 -8069
- package/static/runtime/prop-types-p_yYKrF7.js +0 -47
- /package/iframe/{iframe-eblock.15a9129c.html → iframe-eblock.1279854f.html} +0 -0
- /package/iframe/{iframe.15a9129c.html → iframe.1279854f.html} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/17d3ee0b.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
5
5
|
"static/core/bd36b180.js",
|
|
6
6
|
"static/core/2b39692f.js"
|
|
7
|
-
], function(v, u,
|
|
8
|
-
const
|
|
7
|
+
], function(v, u, x) {
|
|
8
|
+
const w = v("./bd36b180.js"), s = v("./2b39692f.js");
|
|
9
9
|
var P = function(i, e, t, o) {
|
|
10
10
|
var n = arguments.length, r = n < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, t) : o, a;
|
|
11
11
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(i, e, t, o);
|
|
@@ -53,12 +53,12 @@ __useblocks__.define("static/core/b9f47840.js", [
|
|
|
53
53
|
};
|
|
54
54
|
g = P([_(0, s.ILanguageFeaturesService), _(1, s.IEditorWorkerService)], g);
|
|
55
55
|
async function I(i, e, t, o = "auto") {
|
|
56
|
-
return y(new
|
|
56
|
+
return y(new j(), i, e, t, o);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function S(i, e, t, o) {
|
|
59
59
|
return Promise.resolve(t.provideColorPresentations(i, e, o));
|
|
60
60
|
}
|
|
61
|
-
var
|
|
61
|
+
var j = class {
|
|
62
62
|
constructor() {}
|
|
63
63
|
async compute(i, e, t, o) {
|
|
64
64
|
const n = await i.provideDocumentColors(e, t);
|
|
@@ -115,7 +115,7 @@ __useblocks__.define("static/core/b9f47840.js", [
|
|
|
115
115
|
defaultColorDecoratorsEnablement: i.get(s.IConfigurationService).getValue("editor.defaultColorDecorators", { resource: e })
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
var A =
|
|
118
|
+
var A = w.__exportAll({
|
|
119
119
|
ColorDecorationInjectedTextMarker: () => D,
|
|
120
120
|
ColorDetector: () => m,
|
|
121
121
|
DecoratorLimitReporter: () => E
|
|
@@ -304,7 +304,7 @@ __useblocks__.define("static/core/b9f47840.js", [
|
|
|
304
304
|
}), Object.defineProperty(u, "getColorPresentations", {
|
|
305
305
|
enumerable: !0,
|
|
306
306
|
get: function() {
|
|
307
|
-
return
|
|
307
|
+
return S;
|
|
308
308
|
}
|
|
309
309
|
}), Object.defineProperty(u, "getColors", {
|
|
310
310
|
enumerable: !0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/195ca4a32.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
@@ -462,14 +462,14 @@ __useblocks__.define("static/core/6895dd352.js", [
|
|
|
462
462
|
}
|
|
463
463
|
e.is = n;
|
|
464
464
|
})(B || (B = {}));
|
|
465
|
-
var
|
|
465
|
+
var y;
|
|
466
466
|
(function(e) {
|
|
467
467
|
function n(i) {
|
|
468
468
|
const r = i;
|
|
469
469
|
return a.objectLiteral(i) && B.is(r.kind) && a.string(r.value);
|
|
470
470
|
}
|
|
471
471
|
e.is = n;
|
|
472
|
-
})(
|
|
472
|
+
})(y || (y = {}));
|
|
473
473
|
var h;
|
|
474
474
|
(function(e) {
|
|
475
475
|
e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25;
|
|
@@ -543,7 +543,7 @@ __useblocks__.define("static/core/6895dd352.js", [
|
|
|
543
543
|
(function(e) {
|
|
544
544
|
function n(i) {
|
|
545
545
|
let r = i;
|
|
546
|
-
return !!r && a.objectLiteral(r) && (
|
|
546
|
+
return !!r && a.objectLiteral(r) && (y.is(r.contents) || C.is(r.contents) || a.typedArray(r.contents, C.is)) && (i.range === void 0 || g.is(i.range));
|
|
547
547
|
}
|
|
548
548
|
e.is = n;
|
|
549
549
|
})(pe || (pe = {}));
|
|
@@ -565,10 +565,10 @@ __useblocks__.define("static/core/6895dd352.js", [
|
|
|
565
565
|
}
|
|
566
566
|
e.create = n;
|
|
567
567
|
})(be || (be = {}));
|
|
568
|
-
var
|
|
568
|
+
var P;
|
|
569
569
|
(function(e) {
|
|
570
570
|
e.Text = 1, e.Read = 2, e.Write = 3;
|
|
571
|
-
})(
|
|
571
|
+
})(P || (P = {}));
|
|
572
572
|
var _e;
|
|
573
573
|
(function(e) {
|
|
574
574
|
function n(i, r) {
|
|
@@ -699,7 +699,7 @@ __useblocks__.define("static/core/6895dd352.js", [
|
|
|
699
699
|
}
|
|
700
700
|
e.is = i;
|
|
701
701
|
})(je || (je = {}));
|
|
702
|
-
var
|
|
702
|
+
var ye;
|
|
703
703
|
(function(e) {
|
|
704
704
|
function n(r, t, o) {
|
|
705
705
|
return {
|
|
@@ -714,8 +714,8 @@ __useblocks__.define("static/core/6895dd352.js", [
|
|
|
714
714
|
return a.defined(t) && g.is(t.range) && (a.undefined(t.target) || a.string(t.target));
|
|
715
715
|
}
|
|
716
716
|
e.is = i;
|
|
717
|
-
})(
|
|
718
|
-
var
|
|
717
|
+
})(ye || (ye = {}));
|
|
718
|
+
var Pe;
|
|
719
719
|
(function(e) {
|
|
720
720
|
function n(r, t) {
|
|
721
721
|
return {
|
|
@@ -729,7 +729,7 @@ __useblocks__.define("static/core/6895dd352.js", [
|
|
|
729
729
|
return a.objectLiteral(t) && g.is(t.range) && (t.parent === void 0 || e.is(t.parent));
|
|
730
730
|
}
|
|
731
731
|
e.is = i;
|
|
732
|
-
})(
|
|
732
|
+
})(Pe || (Pe = {}));
|
|
733
733
|
var Me;
|
|
734
734
|
(function(e) {
|
|
735
735
|
e.namespace = "namespace", e.type = "type", e.class = "class", e.enum = "enum", e.interface = "interface", e.struct = "struct", e.typeParameter = "typeParameter", e.parameter = "parameter", e.variable = "variable", e.property = "property", e.enumMember = "enumMember", e.event = "event", e.function = "function", e.method = "method", e.macro = "macro", e.keyword = "keyword", e.modifier = "modifier", e.comment = "comment", e.string = "string", e.number = "number", e.regexp = "regexp", e.operator = "operator", e.decorator = "decorator";
|
|
@@ -823,7 +823,7 @@ __useblocks__.define("static/core/6895dd352.js", [
|
|
|
823
823
|
e.create = n;
|
|
824
824
|
function i(r) {
|
|
825
825
|
const t = r;
|
|
826
|
-
return a.objectLiteral(t) && (t.tooltip === void 0 || a.string(t.tooltip) ||
|
|
826
|
+
return a.objectLiteral(t) && (t.tooltip === void 0 || a.string(t.tooltip) || y.is(t.tooltip)) && (t.location === void 0 || D.is(t.location)) && (t.command === void 0 || E.is(t.command));
|
|
827
827
|
}
|
|
828
828
|
e.is = i;
|
|
829
829
|
})(J || (J = {}));
|
|
@@ -839,7 +839,7 @@ __useblocks__.define("static/core/6895dd352.js", [
|
|
|
839
839
|
e.create = n;
|
|
840
840
|
function i(r) {
|
|
841
841
|
const t = r;
|
|
842
|
-
return a.objectLiteral(t) && w.is(t.position) && (a.string(t.label) || a.typedArray(t.label, J.is)) && (t.kind === void 0 || G.is(t.kind)) && t.textEdits === void 0 || a.typedArray(t.textEdits, L.is) && (t.tooltip === void 0 || a.string(t.tooltip) ||
|
|
842
|
+
return a.objectLiteral(t) && w.is(t.position) && (a.string(t.label) || a.typedArray(t.label, J.is)) && (t.kind === void 0 || G.is(t.kind)) && t.textEdits === void 0 || a.typedArray(t.textEdits, L.is) && (t.tooltip === void 0 || a.string(t.tooltip) || y.is(t.tooltip)) && (t.paddingLeft === void 0 || a.boolean(t.paddingLeft)) && (t.paddingRight === void 0 || a.boolean(t.paddingRight));
|
|
843
843
|
}
|
|
844
844
|
e.is = i;
|
|
845
845
|
})(Ue || (Ue = {}));
|
|
@@ -1241,9 +1241,9 @@ __useblocks__.define("static/core/6895dd352.js", [
|
|
|
1241
1241
|
};
|
|
1242
1242
|
function ft(e) {
|
|
1243
1243
|
switch (e) {
|
|
1244
|
-
case
|
|
1245
|
-
case
|
|
1246
|
-
case
|
|
1244
|
+
case P.Read: return f.languages.DocumentHighlightKind.Read;
|
|
1245
|
+
case P.Write: return f.languages.DocumentHighlightKind.Write;
|
|
1246
|
+
case P.Text: return f.languages.DocumentHighlightKind.Text;
|
|
1247
1247
|
}
|
|
1248
1248
|
return f.languages.DocumentHighlightKind.Text;
|
|
1249
1249
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/2569fac8.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
5
5
|
"static/core/bd36b180.js",
|
|
6
|
-
"static/core/
|
|
6
|
+
"static/core/951903fb.js",
|
|
7
7
|
"react",
|
|
8
|
+
"react-dom",
|
|
8
9
|
"react/jsx-runtime",
|
|
9
10
|
"antd",
|
|
10
11
|
"react-dom/client",
|
|
11
12
|
"@ant-design/icons",
|
|
12
|
-
"@ant-design/cssinjs"
|
|
13
|
-
"react-dom"
|
|
13
|
+
"@ant-design/cssinjs"
|
|
14
14
|
], function(c, J, se) {
|
|
15
|
-
const U = c("./bd36b180.js"),
|
|
15
|
+
const U = c("./bd36b180.js"), N = c("./951903fb.js");
|
|
16
16
|
let n = c("react");
|
|
17
17
|
n = U.__toESM(n, 1);
|
|
18
|
+
c("react-dom");
|
|
18
19
|
let t = c("react/jsx-runtime"), d = c("antd");
|
|
19
20
|
c("react-dom/client");
|
|
20
21
|
c("@ant-design/icons");
|
|
21
22
|
c("@ant-design/cssinjs");
|
|
22
|
-
|
|
23
|
-
var _ = ({ size: j = 24, color: N = "currentColor", ...l }) => n.createElement("svg", {
|
|
23
|
+
var _ = ({ size: j = 24, color: S = "currentColor", ...l }) => n.createElement("svg", {
|
|
24
24
|
viewBox: "0 0 24 24",
|
|
25
25
|
width: j,
|
|
26
26
|
height: j,
|
|
27
|
-
stroke:
|
|
27
|
+
stroke: S,
|
|
28
28
|
strokeWidth: "2",
|
|
29
29
|
fill: "none",
|
|
30
30
|
strokeLinecap: "round",
|
|
@@ -56,14 +56,14 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
56
56
|
previewCanvas: "previewCanvas",
|
|
57
57
|
previewCanvasBarcode: "previewCanvasBarcode",
|
|
58
58
|
actions: "actions"
|
|
59
|
-
}, q = ({ customRequest: j, state:
|
|
59
|
+
}, q = ({ customRequest: j, state: S, setState: l }) => {
|
|
60
60
|
var P, z;
|
|
61
|
-
const { t: o } =
|
|
61
|
+
const { t: o } = N.dr(), { options: I } = N.pn(), A = (z = (P = I?.config) === null || P === void 0 ? void 0 : P.iconStrokeWidth) !== null && z !== void 0 ? z : 1.75, G = (0, n.useRef)(null), { mode: h, rawText: g, foregroundHex: x, backgroundHex: f, transparentBackground: p, qrSidePx: C, barcodeBarHeightPx: k } = S, K = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { mode: e })), [l]), X = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { rawText: e })), [l]), Y = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { foregroundHex: e })), [l]), Z = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { backgroundHex: e })), [l]), ee = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { transparentBackground: e })), [l]), ae = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { qrSidePx: e })), [l]), te = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { barcodeBarHeightPx: e })), [l]), [E, re] = (0, n.useState)(g), [T, v] = (0, n.useState)(null), [R, F] = (0, n.useState)(!1), y = (0, n.useMemo)(() => N.En.debounce((e) => re(e), 300), []);
|
|
62
62
|
(0, n.useEffect)(() => (y(g), () => {
|
|
63
63
|
y.cancel();
|
|
64
64
|
}), [g, y]);
|
|
65
|
-
const M = p ? "#00000000" : f,
|
|
66
|
-
const i = (await Promise.resolve().then(() => c("./
|
|
65
|
+
const M = p ? "#00000000" : f, D = (0, n.useCallback)(async (e, a) => {
|
|
66
|
+
const i = (await Promise.resolve().then(() => c("./8a496b64.js")).then(function(s) {
|
|
67
67
|
return s.b;
|
|
68
68
|
})).default, u = a.trim(), m = Math.min(280, Math.max(80, C));
|
|
69
69
|
if (!u) {
|
|
@@ -84,10 +84,10 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
84
84
|
x,
|
|
85
85
|
M,
|
|
86
86
|
C
|
|
87
|
-
]),
|
|
88
|
-
const i = (await Promise.resolve().then(() => c("./
|
|
87
|
+
]), Q = (0, n.useCallback)(async (e, a) => {
|
|
88
|
+
const i = (await Promise.resolve().then(() => c("./5345bef8.js")).then(function(b) {
|
|
89
89
|
return b.J;
|
|
90
|
-
})).default, u = a.trim(), m = p ? "rgba(0,0,0,0)" : f, s = Math.min(72, Math.max(24, k)),
|
|
90
|
+
})).default, u = a.trim(), m = p ? "rgba(0,0,0,0)" : f, s = Math.min(72, Math.max(24, k)), L = Math.max(1, Math.round(s / 42)), O = Math.max(4, Math.round(.07 * s)), W = Math.max(10, Math.round(.15 * s));
|
|
91
91
|
if (!u) {
|
|
92
92
|
e.width = Math.round(4 * s), e.height = Math.round(1.65 * s);
|
|
93
93
|
const b = e.getContext("2d");
|
|
@@ -99,8 +99,8 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
99
99
|
displayValue: !0,
|
|
100
100
|
background: m,
|
|
101
101
|
lineColor: x,
|
|
102
|
-
margin:
|
|
103
|
-
width:
|
|
102
|
+
margin: O,
|
|
103
|
+
width: L,
|
|
104
104
|
height: s,
|
|
105
105
|
fontSize: W
|
|
106
106
|
});
|
|
@@ -111,12 +111,12 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
111
111
|
k
|
|
112
112
|
]);
|
|
113
113
|
(0, n.useEffect)(() => {
|
|
114
|
-
const e =
|
|
114
|
+
const e = G.current;
|
|
115
115
|
if (!e) return;
|
|
116
116
|
let a = !1;
|
|
117
117
|
return (async () => {
|
|
118
118
|
try {
|
|
119
|
-
h === "qr" ? await
|
|
119
|
+
h === "qr" ? await D(e, E) : await Q(e, E), a || v(null);
|
|
120
120
|
} catch (i) {
|
|
121
121
|
const u = i instanceof Error ? i.message : String(i);
|
|
122
122
|
if (!a) {
|
|
@@ -131,8 +131,8 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
131
131
|
}, [
|
|
132
132
|
h,
|
|
133
133
|
E,
|
|
134
|
-
D,
|
|
135
134
|
Q,
|
|
135
|
+
D,
|
|
136
136
|
o
|
|
137
137
|
]);
|
|
138
138
|
const V = (0, n.useCallback)(async () => {
|
|
@@ -142,7 +142,7 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
142
142
|
const a = typeof window > "u" ? 2 : Math.min(3, Math.max(2, window.devicePixelRatio || 2));
|
|
143
143
|
if (h === "qr") {
|
|
144
144
|
const w = Math.round(Math.min(600, Math.max(80, C)) * a), B = document.createElement("canvas");
|
|
145
|
-
B.width = w, B.height = w, await (await Promise.resolve().then(() => c("./
|
|
145
|
+
B.width = w, B.height = w, await (await Promise.resolve().then(() => c("./8a496b64.js")).then(function(H) {
|
|
146
146
|
return H.b;
|
|
147
147
|
})).default.toCanvas(B, e, {
|
|
148
148
|
width: w,
|
|
@@ -156,16 +156,16 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
156
156
|
if (!$) throw new Error("PNG export failed");
|
|
157
157
|
return $;
|
|
158
158
|
}
|
|
159
|
-
const i = (await Promise.resolve().then(() => c("./
|
|
159
|
+
const i = (await Promise.resolve().then(() => c("./5345bef8.js")).then(function(w) {
|
|
160
160
|
return w.J;
|
|
161
|
-
})).default, u = document.createElement("canvas"), m = p ? "rgba(0,0,0,0)" : f, s = Math.min(130, Math.max(24, k)),
|
|
161
|
+
})).default, u = document.createElement("canvas"), m = p ? "rgba(0,0,0,0)" : f, s = Math.min(130, Math.max(24, k)), L = Math.max(6, Math.round(.1 * s)), O = Math.max(2, Math.round(s / 36)), W = Math.max(12, Math.round(.16 * s));
|
|
162
162
|
i(u, e, {
|
|
163
163
|
format: "CODE128",
|
|
164
164
|
displayValue: !0,
|
|
165
165
|
background: m,
|
|
166
166
|
lineColor: x,
|
|
167
|
-
margin: Math.round(
|
|
168
|
-
width: Math.round(
|
|
167
|
+
margin: Math.round(L * a),
|
|
168
|
+
width: Math.round(O * a),
|
|
169
169
|
height: Math.round(s * a),
|
|
170
170
|
fontSize: Math.round(W * a)
|
|
171
171
|
});
|
|
@@ -184,8 +184,8 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
184
184
|
y,
|
|
185
185
|
o
|
|
186
186
|
]), ne = (0, n.useCallback)(async () => {
|
|
187
|
-
if (!
|
|
188
|
-
|
|
187
|
+
if (!R && g.trim()) {
|
|
188
|
+
F(!0);
|
|
189
189
|
try {
|
|
190
190
|
let e;
|
|
191
191
|
try {
|
|
@@ -201,7 +201,7 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
201
201
|
});
|
|
202
202
|
await Promise.resolve(j({ file: a }));
|
|
203
203
|
} finally {
|
|
204
|
-
|
|
204
|
+
F(!1);
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
}, [
|
|
@@ -209,7 +209,7 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
209
209
|
V,
|
|
210
210
|
h,
|
|
211
211
|
g,
|
|
212
|
-
|
|
212
|
+
R
|
|
213
213
|
]), oe = !!g.trim() && !T;
|
|
214
214
|
return (0, t.jsx)("div", {
|
|
215
215
|
className: r.root,
|
|
@@ -352,7 +352,7 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
352
352
|
}), (0, t.jsxs)("div", {
|
|
353
353
|
className: [r.previewWrap, h === "barcode" && r.previewWrapBarcode].filter(Boolean).join(" "),
|
|
354
354
|
children: [(0, t.jsx)("div", { className: [r.scanLine, h === "barcode" && r.scanLineBarcode].filter(Boolean).join(" ") }), (0, t.jsx)("canvas", {
|
|
355
|
-
ref:
|
|
355
|
+
ref: G,
|
|
356
356
|
className: [r.previewCanvas, h === "barcode" && r.previewCanvasBarcode].filter(Boolean).join(" "),
|
|
357
357
|
"aria-label": o("Preview")
|
|
358
358
|
})]
|
|
@@ -365,7 +365,7 @@ __useblocks__.define("static/core/8e110c69.js", [
|
|
|
365
365
|
onClick: () => {
|
|
366
366
|
ne();
|
|
367
367
|
},
|
|
368
|
-
loading:
|
|
368
|
+
loading: R,
|
|
369
369
|
disabled: !oe,
|
|
370
370
|
children: o("Add to My files")
|
|
371
371
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/26ddf93e2.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
@@ -127,7 +127,7 @@ __useblocks__.define("static/core/4ca527032.js", [
|
|
|
127
127
|
onlyVisible: !1
|
|
128
128
|
}, {}, {}, d), x = () => o().then((e) => e.getTypeScriptWorker()), S = () => o().then((e) => e.getJavaScriptWorker());
|
|
129
129
|
function o() {
|
|
130
|
-
return Promise.resolve().then(() => a("./
|
|
130
|
+
return Promise.resolve().then(() => a("./4a27bba92.js"));
|
|
131
131
|
}
|
|
132
132
|
n.languages.onLanguage("typescript", () => o().then((e) => e.setupTypeScript(h))), n.languages.onLanguage("javascript", () => o().then((e) => e.setupJavaScript(v))), Object.defineProperty(u, "register_exports", {
|
|
133
133
|
enumerable: !0,
|