useblocks 1.1.53 → 1.1.60

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.
Files changed (68) hide show
  1. package/iframe/js/amp.BP7EklKo.js +1 -1
  2. package/iframe/js/iframe-eblock.js +1 -1
  3. package/iframe/js/iframe.js +1 -1
  4. package/iframe/js/rules.4N5s3OV-.js +1 -1
  5. package/npm-publish.manifest.json +7 -7
  6. package/package.json +1 -7
  7. package/runtime/THIRD_PARTY_LICENSES.txt +0 -235
  8. package/runtime/index.js +0 -2
  9. package/runtime/package.json +0 -6
  10. package/runtime/plugin-dev-manifest.json +0 -4
  11. package/singlepage_headless_plugin.html +1 -1
  12. package/static/core/{5318562c.js → 161d1254.js} +268 -257
  13. package/static/core/{b9f47840.js → 17d3ee0b.js} +8 -8
  14. package/static/core/{6895dd352.js → 195ca4a32.js} +15 -15
  15. package/static/core/{dc1f9e4f.js → 2569fac8.js} +26 -26
  16. package/static/core/{4ca527032.js → 26ddf93e2.js} +2 -2
  17. package/static/core/{9929a348.js → 30c5fe5f.js} +90 -90
  18. package/static/core/{e93d55b92.js → 3af8f3592.js} +4 -4
  19. package/static/core/{ebd852b6.js → 40f73dfb.js} +1019 -1032
  20. package/static/core/{c3058168.js → 43c3f160.js} +3283 -3189
  21. package/static/core/{542ea53f2.js → 4a27bba92.js} +8 -8
  22. package/static/core/4c39852e.js +3150 -0
  23. package/static/core/{e5e07f1d.js → 4e75b331.js} +13 -13
  24. package/static/core/{e1d239ab.js → 5345bef8.js} +42 -42
  25. package/static/core/{31e98e6e.js → 53463a60.js} +707 -712
  26. package/static/core/{27544e7e.js → 581ce428.js} +37 -19
  27. package/static/core/{d8daf1142.js → 6156301b2.js} +3 -3
  28. package/static/core/{c3849484.js → 64bea1a9.js} +5 -5
  29. package/static/core/{ce4fc17f2.js → 680236f4.js} +1 -1
  30. package/static/core/{4b75d16c2.js → 687795b52.js} +4 -4
  31. package/static/core/{70407ac0.js → 72f86b2d.js} +3 -3
  32. package/static/core/{139e4380.js → 7a15fa8b.js} +3 -3
  33. package/static/core/{b77f0769.js → 8432f11e.js} +5 -5
  34. package/static/core/{d1eb3c68.js → 8815eb5b.js} +15670 -15289
  35. package/static/core/{f3cff4c9.js → 8a496b64.js} +158 -158
  36. package/static/core/{4e1b970f.js → 8ba13f332.js} +1 -1
  37. package/static/core/{75737a9d.js → 951903fb.js} +9096 -9074
  38. package/static/core/{a95c02bb.js → a1355a35.js} +5 -5
  39. package/static/core/{7c6fb2162.js → a36c3ab62.js} +3 -3
  40. package/static/core/{2da1d66b.js → abd3f34c.js} +5 -5
  41. package/static/core/{528ad9282.js → ae20f0992.js} +16 -16
  42. package/static/core/ba6c356e.js +466 -0
  43. package/static/core/{ee0ddb51.js → c9e59b34.js} +6884 -4960
  44. package/static/core/{f96d2049.js → d1a1d4902.js} +1 -1
  45. package/static/core/{5b48fd69.js → d8d6485e.js} +5 -5
  46. package/static/core/{59e92cc3.js → d9398296.js} +5 -5
  47. package/static/core/{b408f33a.js → d9baa55e.js} +25 -25
  48. package/static/core/dbf19c2e.js +811 -0
  49. package/static/core/{bc7e3d2b.js → f953827c.js} +10 -10
  50. package/static/core/{1e5bf73c.js → ffee9a77.js} +7 -7
  51. package/static/esm/2474de05.js +131 -0
  52. package/static/esm/{d180c108.js → 53b688bd.js} +66 -85
  53. package/two_step_headless_plugin.html +1 -1
  54. package/useblocks-core.f6bb8947.js +673 -0
  55. package/useblocks-esm.js +875 -552
  56. package/useblocks.d.ts +8 -0
  57. package/useblocks.js +691 -408
  58. package/runtime/prop-types/index.js +0 -4
  59. package/runtime/react-router-dom/index.js +0 -2
  60. package/static/core/1995fb0a2.js +0 -602
  61. package/static/core/1f5e1fc9.js +0 -3097
  62. package/static/core/ce0410b1.js +0 -467
  63. package/static/esm/448d4bb0.js +0 -127
  64. package/static/runtime/dom-export-CHgQ7Ws9.js +0 -8069
  65. package/static/runtime/prop-types-p_yYKrF7.js +0 -47
  66. package/useblocks-core.2a5dade1.js +0 -643
  67. /package/iframe/{iframe-eblock.2a5dade1.html → iframe-eblock.f6bb8947.html} +0 -0
  68. /package/iframe/{iframe.2a5dade1.html → iframe.f6bb8947.html} +0 -0
@@ -1,11 +1,11 @@
1
- __useblocks__.define("static/core/b9f47840.js", [
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, F) {
8
- const S = v("./bd36b180.js"), s = v("./2b39692f.js");
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 w(), i, e, t, o);
56
+ return y(new j(), i, e, t, o);
57
57
  }
58
- function j(i, e, t, o) {
58
+ function S(i, e, t, o) {
59
59
  return Promise.resolve(t.provideColorPresentations(i, e, o));
60
60
  }
61
- var w = class {
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 = S.__exportAll({
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 j;
307
+ return S;
308
308
  }
309
309
  }), Object.defineProperty(u, "getColors", {
310
310
  enumerable: !0,
@@ -1,4 +1,4 @@
1
- __useblocks__.define("static/core/6895dd352.js", [
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 P;
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
- })(P || (P = {}));
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) && (P.is(r.contents) || C.is(r.contents) || a.typedArray(r.contents, C.is)) && (i.range === void 0 || g.is(i.range));
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 y;
568
+ var P;
569
569
  (function(e) {
570
570
  e.Text = 1, e.Read = 2, e.Write = 3;
571
- })(y || (y = {}));
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 Pe;
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
- })(Pe || (Pe = {}));
718
- var ye;
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
- })(ye || (ye = {}));
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) || P.is(t.tooltip)) && (t.location === void 0 || D.is(t.location)) && (t.command === void 0 || E.is(t.command));
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) || P.is(t.tooltip)) && (t.paddingLeft === void 0 || a.boolean(t.paddingLeft)) && (t.paddingRight === void 0 || a.boolean(t.paddingRight));
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 y.Read: return f.languages.DocumentHighlightKind.Read;
1245
- case y.Write: return f.languages.DocumentHighlightKind.Write;
1246
- case y.Text: return f.languages.DocumentHighlightKind.Text;
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,9 +1,9 @@
1
- __useblocks__.define("static/core/dc1f9e4f.js", [
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/75737a9d.js",
6
+ "static/core/951903fb.js",
7
7
  "react",
8
8
  "react-dom",
9
9
  "react/jsx-runtime",
@@ -12,7 +12,7 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
12
12
  "@ant-design/icons",
13
13
  "@ant-design/cssinjs"
14
14
  ], function(c, J, se) {
15
- const U = c("./bd36b180.js"), _ = c("./75737a9d.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
18
  c("react-dom");
@@ -20,7 +20,7 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
20
20
  c("react-dom/client");
21
21
  c("@ant-design/icons");
22
22
  c("@ant-design/cssinjs");
23
- var N = ({ size: j = 24, color: S = "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,
@@ -32,7 +32,7 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
32
32
  "aria-hidden": "true",
33
33
  ...l
34
34
  }, n.createElement("path", { d: "m14 10 7-7m0 0h-6m6 0v6m-11 5-7 7m0 0h6m-6 0v-6" }));
35
- N.displayName = "Expand01";
35
+ _.displayName = "Expand01";
36
36
  var r = {
37
37
  root: "root",
38
38
  controls: "controls",
@@ -58,12 +58,12 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
58
58
  actions: "actions"
59
59
  }, q = ({ customRequest: j, state: S, setState: l }) => {
60
60
  var P, z;
61
- const { t: o } = _.sr(), { options: I } = _.hn(), A = (z = (P = I?.config) === null || P === void 0 ? void 0 : P.iconStrokeWidth) !== null && z !== void 0 ? z : 1.75, F = (0, n.useRef)(null), { mode: h, rawText: g, foregroundHex: x, backgroundHex: f, transparentBackground: p, qrSidePx: C, barcodeBarHeightPx: k } = S, Y = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { mode: e })), [l]), K = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { rawText: e })), [l]), X = (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), [L, G] = (0, n.useState)(!1), y = (0, n.useMemo)(() => _._n.debounce((e) => re(e), 300), []);
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
65
  const M = p ? "#00000000" : f, D = (0, n.useCallback)(async (e, a) => {
66
- const i = (await Promise.resolve().then(() => c("./f3cff4c9.js")).then(function(s) {
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) {
@@ -85,9 +85,9 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
85
85
  M,
86
86
  C
87
87
  ]), Q = (0, n.useCallback)(async (e, a) => {
88
- const i = (await Promise.resolve().then(() => c("./e1d239ab.js")).then(function(b) {
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)), R = Math.max(1, Math.round(s / 42)), O = Math.max(4, Math.round(.07 * s)), W = Math.max(10, Math.round(.15 * s));
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");
@@ -100,7 +100,7 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
100
100
  background: m,
101
101
  lineColor: x,
102
102
  margin: O,
103
- width: R,
103
+ width: L,
104
104
  height: s,
105
105
  fontSize: W
106
106
  });
@@ -111,7 +111,7 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
111
111
  k
112
112
  ]);
113
113
  (0, n.useEffect)(() => {
114
- const e = F.current;
114
+ const e = G.current;
115
115
  if (!e) return;
116
116
  let a = !1;
117
117
  return (async () => {
@@ -142,7 +142,7 @@ __useblocks__.define("static/core/dc1f9e4f.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("./f3cff4c9.js")).then(function(H) {
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,15 +156,15 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
156
156
  if (!$) throw new Error("PNG export failed");
157
157
  return $;
158
158
  }
159
- const i = (await Promise.resolve().then(() => c("./e1d239ab.js")).then(function(w) {
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)), R = Math.max(6, Math.round(.1 * s)), O = Math.max(2, Math.round(s / 36)), W = Math.max(12, Math.round(.16 * s));
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(R * a),
167
+ margin: Math.round(L * a),
168
168
  width: Math.round(O * a),
169
169
  height: Math.round(s * a),
170
170
  fontSize: Math.round(W * a)
@@ -184,8 +184,8 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
184
184
  y,
185
185
  o
186
186
  ]), ne = (0, n.useCallback)(async () => {
187
- if (!L && g.trim()) {
188
- G(!0);
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/dc1f9e4f.js", [
201
201
  });
202
202
  await Promise.resolve(j({ file: a }));
203
203
  } finally {
204
- G(!1);
204
+ F(!1);
205
205
  }
206
206
  }
207
207
  }, [
@@ -209,7 +209,7 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
209
209
  V,
210
210
  h,
211
211
  g,
212
- L
212
+ R
213
213
  ]), oe = !!g.trim() && !T;
214
214
  return (0, t.jsx)("div", {
215
215
  className: r.root,
@@ -221,7 +221,7 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
221
221
  className: r.segmentedControl,
222
222
  value: h,
223
223
  onChange: (e) => {
224
- Y(e), v(null);
224
+ K(e), v(null);
225
225
  },
226
226
  options: [{
227
227
  label: o("QR code"),
@@ -242,7 +242,7 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
242
242
  (0, t.jsx)(d.Input.TextArea, {
243
243
  value: g,
244
244
  onChange: (e) => {
245
- K(e.target.value), v(null);
245
+ X(e.target.value), v(null);
246
246
  },
247
247
  placeholder: o("Text or URL"),
248
248
  rows: 3,
@@ -262,7 +262,7 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
262
262
  step: 8,
263
263
  value: C,
264
264
  onChange: (e) => ae(typeof e != "number" || Number.isNaN(e) ? 200 : e),
265
- prefix: (0, t.jsx)(N, {
265
+ prefix: (0, t.jsx)(_, {
266
266
  size: 18,
267
267
  strokeWidth: A
268
268
  }),
@@ -278,7 +278,7 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
278
278
  step: 4,
279
279
  value: k,
280
280
  onChange: (e) => te(typeof e != "number" || Number.isNaN(e) ? 60 : e),
281
- prefix: (0, t.jsx)(N, {
281
+ prefix: (0, t.jsx)(_, {
282
282
  size: 18,
283
283
  strokeWidth: A
284
284
  }),
@@ -306,7 +306,7 @@ __useblocks__.define("static/core/dc1f9e4f.js", [
306
306
  showText: !0,
307
307
  onChange: (e, a) => {
308
308
  const i = typeof e == "string" ? e : e?.toHexString ? e.toHexString() : a;
309
- X(i);
309
+ Y(i);
310
310
  }
311
311
  })]
312
312
  }),
@@ -352,7 +352,7 @@ __useblocks__.define("static/core/dc1f9e4f.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: F,
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/dc1f9e4f.js", [
365
365
  onClick: () => {
366
366
  ne();
367
367
  },
368
- loading: L,
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/4ca527032.js", [
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("./542ea53f2.js"));
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,